@duyluonganduin/acl-web-components 0.0.17 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,18 +3,18 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const P1 = globalThis, f2 = P1.ShadowRoot && (P1.ShadyCSS === void 0 || P1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, H2 = Symbol(), u5 = /* @__PURE__ */ new WeakMap();
7
- let z5 = class {
6
+ const O1 = globalThis, L2 = O1.ShadowRoot && (O1.ShadyCSS === void 0 || O1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, b2 = Symbol(), f5 = /* @__PURE__ */ new WeakMap();
7
+ let O5 = class {
8
8
  constructor(e, t, i) {
9
- if (this._$cssResult$ = !0, i !== H2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
9
+ if (this._$cssResult$ = !0, i !== b2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
10
  this.cssText = e, this.t = t;
11
11
  }
12
12
  get styleSheet() {
13
13
  let e = this.o;
14
14
  const t = this.t;
15
- if (f2 && e === void 0) {
15
+ if (L2 && e === void 0) {
16
16
  const i = t !== void 0 && t.length === 1;
17
- i && (e = u5.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && u5.set(t, e));
17
+ i && (e = f5.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && f5.set(t, e));
18
18
  }
19
19
  return e;
20
20
  }
@@ -22,33 +22,33 @@ let z5 = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const l4 = (l) => new z5(typeof l == "string" ? l : l + "", void 0, H2), h = (l, ...e) => {
26
- const t = l.length === 1 ? l[0] : e.reduce((i, o, r) => i + ((C) => {
27
- if (C._$cssResult$ === !0) return C.cssText;
28
- if (typeof C == "number") return C;
29
- throw Error("Value passed to 'css' function must be a 'css' function result: " + C + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
25
+ const a4 = (l) => new O5(typeof l == "string" ? l : l + "", void 0, b2), g = (l, ...e) => {
26
+ const t = l.length === 1 ? l[0] : e.reduce((i, o, r) => i + ((n) => {
27
+ if (n._$cssResult$ === !0) return n.cssText;
28
+ if (typeof n == "number") return n;
29
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
30
  })(o) + l[r + 1], l[0]);
31
- return new z5(t, l, H2);
32
- }, r4 = (l, e) => {
33
- if (f2) l.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
31
+ return new O5(t, l, b2);
32
+ }, s4 = (l, e) => {
33
+ if (L2) l.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
34
34
  else for (const t of e) {
35
- const i = document.createElement("style"), o = P1.litNonce;
35
+ const i = document.createElement("style"), o = O1.litNonce;
36
36
  o !== void 0 && i.setAttribute("nonce", o), i.textContent = t.cssText, l.appendChild(i);
37
37
  }
38
- }, h5 = f2 ? (l) => l : (l) => l instanceof CSSStyleSheet ? ((e) => {
38
+ }, H5 = L2 ? (l) => l : (l) => l instanceof CSSStyleSheet ? ((e) => {
39
39
  let t = "";
40
40
  for (const i of e.cssRules) t += i.cssText;
41
- return l4(t);
41
+ return a4(t);
42
42
  })(l) : l;
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: C4, defineProperty: n4, getOwnPropertyDescriptor: a4, getOwnPropertyNames: s4, getOwnPropertySymbols: d4, getPrototypeOf: c4 } = Object, O = globalThis, g5 = O.trustedTypes, p4 = g5 ? g5.emptyScript : "", G1 = O.reactiveElementPolyfillSupport, h1 = (l, e) => l, S1 = { toAttribute(l, e) {
48
+ const { is: d4, defineProperty: c4, getOwnPropertyDescriptor: p4, getOwnPropertyNames: u4, getOwnPropertySymbols: h4, getPrototypeOf: v4 } = Object, N = globalThis, V5 = N.trustedTypes, g4 = V5 ? V5.emptyScript : "", X1 = N.reactiveElementPolyfillSupport, H1 = (l, e) => l, D1 = { toAttribute(l, e) {
49
49
  switch (e) {
50
50
  case Boolean:
51
- l = l ? p4 : null;
51
+ l = l ? g4 : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
@@ -73,44 +73,44 @@ const { is: C4, defineProperty: n4, getOwnPropertyDescriptor: a4, getOwnProperty
73
73
  }
74
74
  }
75
75
  return t;
76
- } }, V2 = (l, e) => !C4(l, e), v5 = { attribute: !0, type: String, converter: S1, reflect: !1, useDefault: !1, hasChanged: V2 };
77
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), O.litPropertyMetadata ?? (O.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
- let r1 = class extends HTMLElement {
76
+ } }, m2 = (l, e) => !d4(l, e), L5 = { attribute: !0, type: String, converter: D1, reflect: !1, useDefault: !1, hasChanged: m2 };
77
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), N.litPropertyMetadata ?? (N.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
+ let a1 = class extends HTMLElement {
79
79
  static addInitializer(e) {
80
80
  this._$Ei(), (this.l ?? (this.l = [])).push(e);
81
81
  }
82
82
  static get observedAttributes() {
83
83
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
84
  }
85
- static createProperty(e, t = v5) {
85
+ static createProperty(e, t = L5) {
86
86
  if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
87
87
  const i = Symbol(), o = this.getPropertyDescriptor(e, i, t);
88
- o !== void 0 && n4(this.prototype, e, o);
88
+ o !== void 0 && c4(this.prototype, e, o);
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(e, t, i) {
92
- const { get: o, set: r } = a4(this.prototype, e) ?? { get() {
92
+ const { get: o, set: r } = p4(this.prototype, e) ?? { get() {
93
93
  return this[t];
94
- }, set(C) {
95
- this[t] = C;
94
+ }, set(n) {
95
+ this[t] = n;
96
96
  } };
97
- return { get: o, set(C) {
97
+ return { get: o, set(n) {
98
98
  const a = o == null ? void 0 : o.call(this);
99
- r == null || r.call(this, C), this.requestUpdate(e, a, i);
99
+ r == null || r.call(this, n), this.requestUpdate(e, a, i);
100
100
  }, configurable: !0, enumerable: !0 };
101
101
  }
102
102
  static getPropertyOptions(e) {
103
- return this.elementProperties.get(e) ?? v5;
103
+ return this.elementProperties.get(e) ?? L5;
104
104
  }
105
105
  static _$Ei() {
106
- if (this.hasOwnProperty(h1("elementProperties"))) return;
107
- const e = c4(this);
106
+ if (this.hasOwnProperty(H1("elementProperties"))) return;
107
+ const e = v4(this);
108
108
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
109
109
  }
110
110
  static finalize() {
111
- if (this.hasOwnProperty(h1("finalized"))) return;
112
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(h1("properties"))) {
113
- const t = this.properties, i = [...s4(t), ...d4(t)];
111
+ if (this.hasOwnProperty(H1("finalized"))) return;
112
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(H1("properties"))) {
113
+ const t = this.properties, i = [...u4(t), ...h4(t)];
114
114
  for (const o of i) this.createProperty(o, t[o]);
115
115
  }
116
116
  const e = this[Symbol.metadata];
@@ -129,8 +129,8 @@ let r1 = class extends HTMLElement {
129
129
  const t = [];
130
130
  if (Array.isArray(e)) {
131
131
  const i = new Set(e.flat(1 / 0).reverse());
132
- for (const o of i) t.unshift(h5(o));
133
- } else e !== void 0 && t.push(h5(e));
132
+ for (const o of i) t.unshift(H5(o));
133
+ } else e !== void 0 && t.push(H5(e));
134
134
  return t;
135
135
  }
136
136
  static _$Eu(e, t) {
@@ -159,7 +159,7 @@ let r1 = class extends HTMLElement {
159
159
  }
160
160
  createRenderRoot() {
161
161
  const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
162
- return r4(e, this.constructor.elementStyles), e;
162
+ return s4(e, this.constructor.elementStyles), e;
163
163
  }
164
164
  connectedCallback() {
165
165
  var e;
@@ -184,31 +184,31 @@ let r1 = class extends HTMLElement {
184
184
  var r;
185
185
  const i = this.constructor.elementProperties.get(e), o = this.constructor._$Eu(e, i);
186
186
  if (o !== void 0 && i.reflect === !0) {
187
- const C = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : S1).toAttribute(t, i.type);
188
- this._$Em = e, C == null ? this.removeAttribute(o) : this.setAttribute(o, C), this._$Em = null;
187
+ const n = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : D1).toAttribute(t, i.type);
188
+ this._$Em = e, n == null ? this.removeAttribute(o) : this.setAttribute(o, n), this._$Em = null;
189
189
  }
190
190
  }
191
191
  _$AK(e, t) {
192
- var r, C;
192
+ var r, n;
193
193
  const i = this.constructor, o = i._$Eh.get(e);
194
194
  if (o !== void 0 && this._$Em !== o) {
195
- const a = i.getPropertyOptions(o), d = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : S1;
195
+ const a = i.getPropertyOptions(o), d = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : D1;
196
196
  this._$Em = o;
197
197
  const p = d.fromAttribute(t, a.type);
198
- this[o] = p ?? ((C = this._$Ej) == null ? void 0 : C.get(o)) ?? p, this._$Em = null;
198
+ this[o] = p ?? ((n = this._$Ej) == null ? void 0 : n.get(o)) ?? p, this._$Em = null;
199
199
  }
200
200
  }
201
201
  requestUpdate(e, t, i, o = !1, r) {
202
- var C;
202
+ var n;
203
203
  if (e !== void 0) {
204
204
  const a = this.constructor;
205
- if (o === !1 && (r = this[e]), i ?? (i = a.getPropertyOptions(e)), !((i.hasChanged ?? V2)(r, t) || i.useDefault && i.reflect && r === ((C = this._$Ej) == null ? void 0 : C.get(e)) && !this.hasAttribute(a._$Eu(e, i)))) return;
205
+ if (o === !1 && (r = this[e]), i ?? (i = a.getPropertyOptions(e)), !((i.hasChanged ?? m2)(r, t) || i.useDefault && i.reflect && r === ((n = this._$Ej) == null ? void 0 : n.get(e)) && !this.hasAttribute(a._$Eu(e, i)))) return;
206
206
  this.C(e, t, i);
207
207
  }
208
208
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
209
209
  }
210
- C(e, t, { useDefault: i, reflect: o, wrapped: r }, C) {
211
- i && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, C ?? t ?? this[e]), r !== !0 || C !== void 0) || (this._$AL.has(e) || (this.hasUpdated || i || (t = void 0), this._$AL.set(e, t)), o === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
210
+ C(e, t, { useDefault: i, reflect: o, wrapped: r }, n) {
211
+ i && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, n ?? t ?? this[e]), r !== !0 || n !== void 0) || (this._$AL.has(e) || (this.hasUpdated || i || (t = void 0), this._$AL.set(e, t)), o === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
212
212
  }
213
213
  async _$EP() {
214
214
  this.isUpdatePending = !0;
@@ -228,13 +228,13 @@ let r1 = class extends HTMLElement {
228
228
  if (!this.isUpdatePending) return;
229
229
  if (!this.hasUpdated) {
230
230
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
231
- for (const [r, C] of this._$Ep) this[r] = C;
231
+ for (const [r, n] of this._$Ep) this[r] = n;
232
232
  this._$Ep = void 0;
233
233
  }
234
234
  const o = this.constructor.elementProperties;
235
- if (o.size > 0) for (const [r, C] of o) {
236
- const { wrapped: a } = C, d = this[r];
237
- a !== !0 || this._$AL.has(r) || d === void 0 || this.C(r, void 0, C, d);
235
+ if (o.size > 0) for (const [r, n] of o) {
236
+ const { wrapped: a } = n, d = this[r];
237
+ a !== !0 || this._$AL.has(r) || d === void 0 || this.C(r, void 0, n, d);
238
238
  }
239
239
  }
240
240
  let e = !1;
@@ -278,76 +278,76 @@ let r1 = class extends HTMLElement {
278
278
  firstUpdated(e) {
279
279
  }
280
280
  };
281
- r1.elementStyles = [], r1.shadowRootOptions = { mode: "open" }, r1[h1("elementProperties")] = /* @__PURE__ */ new Map(), r1[h1("finalized")] = /* @__PURE__ */ new Map(), G1 == null || G1({ ReactiveElement: r1 }), (O.reactiveElementVersions ?? (O.reactiveElementVersions = [])).push("2.1.2");
281
+ a1.elementStyles = [], a1.shadowRootOptions = { mode: "open" }, a1[H1("elementProperties")] = /* @__PURE__ */ new Map(), a1[H1("finalized")] = /* @__PURE__ */ new Map(), X1 == null || X1({ ReactiveElement: a1 }), (N.reactiveElementVersions ?? (N.reactiveElementVersions = [])).push("2.1.2");
282
282
  /**
283
283
  * @license
284
284
  * Copyright 2017 Google LLC
285
285
  * SPDX-License-Identifier: BSD-3-Clause
286
286
  */
287
- const g1 = globalThis, f5 = (l) => l, O1 = g1.trustedTypes, H5 = O1 ? O1.createPolicy("lit-html", { createHTML: (l) => l }) : void 0, F5 = "$lit$", S = `lit$${Math.random().toFixed(9).slice(2)}$`, P5 = "?" + S, u4 = `<${P5}>`, X = document, v1 = () => X.createComment(""), f1 = (l) => l === null || typeof l != "object" && typeof l != "function", L2 = Array.isArray, h4 = (l) => L2(l) || typeof (l == null ? void 0 : l[Symbol.iterator]) == "function", Y1 = `[
288
- \f\r]`, p1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, V5 = /-->/g, L5 = />/g, W = RegExp(`>|${Y1}(?:([^\\s"'>=/]+)(${Y1}*=${Y1}*(?:[^
289
- \f\r"'\`<>=]|("|')|))|$)`, "g"), b5 = /'/g, m5 = /"/g, S5 = /^(?:script|style|textarea|title)$/i, O5 = (l) => (e, ...t) => ({ _$litType$: l, strings: e, values: t }), s = O5(1), t2 = O5(2), K = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), M5 = /* @__PURE__ */ new WeakMap(), G = X.createTreeWalker(X, 129);
290
- function D5(l, e) {
291
- if (!L2(l) || !l.hasOwnProperty("raw")) throw Error("invalid template strings array");
292
- return H5 !== void 0 ? H5.createHTML(e) : e;
287
+ const V1 = globalThis, b5 = (l) => l, I1 = V1.trustedTypes, m5 = I1 ? I1.createPolicy("lit-html", { createHTML: (l) => l }) : void 0, D5 = "$lit$", T = `lit$${Math.random().toFixed(9).slice(2)}$`, I5 = "?" + T, f4 = `<${I5}>`, e1 = document, L1 = () => e1.createComment(""), b1 = (l) => l === null || typeof l != "object" && typeof l != "function", M2 = Array.isArray, H4 = (l) => M2(l) || typeof (l == null ? void 0 : l[Symbol.iterator]) == "function", K1 = `[
288
+ \f\r]`, g1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, M5 = /-->/g, y5 = />/g, K = RegExp(`>|${K1}(?:([^\\s"'>=/]+)(${K1}*=${K1}*(?:[^
289
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Z5 = /'/g, _5 = /"/g, T5 = /^(?:script|style|textarea|title)$/i, N5 = (l) => (e, ...t) => ({ _$litType$: l, strings: e, values: t }), s = N5(1), l2 = N5(2), t1 = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), x5 = /* @__PURE__ */ new WeakMap(), J = e1.createTreeWalker(e1, 129);
290
+ function j5(l, e) {
291
+ if (!M2(l) || !l.hasOwnProperty("raw")) throw Error("invalid template strings array");
292
+ return m5 !== void 0 ? m5.createHTML(e) : e;
293
293
  }
294
- const g4 = (l, e) => {
294
+ const V4 = (l, e) => {
295
295
  const t = l.length - 1, i = [];
296
- let o, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", C = p1;
296
+ let o, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", n = g1;
297
297
  for (let a = 0; a < t; a++) {
298
298
  const d = l[a];
299
- let p, g, v = -1, H = 0;
300
- for (; H < d.length && (C.lastIndex = H, g = C.exec(d), g !== null); ) H = C.lastIndex, C === p1 ? g[1] === "!--" ? C = V5 : g[1] !== void 0 ? C = L5 : g[2] !== void 0 ? (S5.test(g[2]) && (o = RegExp("</" + g[2], "g")), C = W) : g[3] !== void 0 && (C = W) : C === W ? g[0] === ">" ? (C = o ?? p1, v = -1) : g[1] === void 0 ? v = -2 : (v = C.lastIndex - g[2].length, p = g[1], C = g[3] === void 0 ? W : g[3] === '"' ? m5 : b5) : C === m5 || C === b5 ? C = W : C === V5 || C === L5 ? C = p1 : (C = W, o = void 0);
301
- const f = C === W && l[a + 1].startsWith("/>") ? " " : "";
302
- r += C === p1 ? d + u4 : v >= 0 ? (i.push(p), d.slice(0, v) + F5 + d.slice(v) + S + f) : d + S + (v === -2 ? a : f);
299
+ let p, u, v = -1, H = 0;
300
+ for (; H < d.length && (n.lastIndex = H, u = n.exec(d), u !== null); ) H = n.lastIndex, n === g1 ? u[1] === "!--" ? n = M5 : u[1] !== void 0 ? n = y5 : u[2] !== void 0 ? (T5.test(u[2]) && (o = RegExp("</" + u[2], "g")), n = K) : u[3] !== void 0 && (n = K) : n === K ? u[0] === ">" ? (n = o ?? g1, v = -1) : u[1] === void 0 ? v = -2 : (v = n.lastIndex - u[2].length, p = u[1], n = u[3] === void 0 ? K : u[3] === '"' ? _5 : Z5) : n === _5 || n === Z5 ? n = K : n === M5 || n === y5 ? n = g1 : (n = K, o = void 0);
301
+ const f = n === K && l[a + 1].startsWith("/>") ? " " : "";
302
+ r += n === g1 ? d + f4 : v >= 0 ? (i.push(p), d.slice(0, v) + D5 + d.slice(v) + T + f) : d + T + (v === -2 ? a : f);
303
303
  }
304
- return [D5(l, r + (l[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
304
+ return [j5(l, r + (l[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
305
305
  };
306
- class H1 {
306
+ class m1 {
307
307
  constructor({ strings: e, _$litType$: t }, i) {
308
308
  let o;
309
309
  this.parts = [];
310
- let r = 0, C = 0;
311
- const a = e.length - 1, d = this.parts, [p, g] = g4(e, t);
312
- if (this.el = H1.createElement(p, i), G.currentNode = this.el.content, t === 2 || t === 3) {
310
+ let r = 0, n = 0;
311
+ const a = e.length - 1, d = this.parts, [p, u] = V4(e, t);
312
+ if (this.el = m1.createElement(p, i), J.currentNode = this.el.content, t === 2 || t === 3) {
313
313
  const v = this.el.content.firstChild;
314
314
  v.replaceWith(...v.childNodes);
315
315
  }
316
- for (; (o = G.nextNode()) !== null && d.length < a; ) {
316
+ for (; (o = J.nextNode()) !== null && d.length < a; ) {
317
317
  if (o.nodeType === 1) {
318
- if (o.hasAttributes()) for (const v of o.getAttributeNames()) if (v.endsWith(F5)) {
319
- const H = g[C++], f = o.getAttribute(v).split(S), M = /([.?@])?(.*)/.exec(H);
320
- d.push({ type: 1, index: r, name: M[2], strings: f, ctor: M[1] === "." ? f4 : M[1] === "?" ? H4 : M[1] === "@" ? V4 : q1 }), o.removeAttribute(v);
321
- } else v.startsWith(S) && (d.push({ type: 6, index: r }), o.removeAttribute(v));
322
- if (S5.test(o.tagName)) {
323
- const v = o.textContent.split(S), H = v.length - 1;
318
+ if (o.hasAttributes()) for (const v of o.getAttributeNames()) if (v.endsWith(D5)) {
319
+ const H = u[n++], f = o.getAttribute(v).split(T), Z = /([.?@])?(.*)/.exec(H);
320
+ d.push({ type: 1, index: r, name: Z[2], strings: f, ctor: Z[1] === "." ? b4 : Z[1] === "?" ? m4 : Z[1] === "@" ? M4 : G1 }), o.removeAttribute(v);
321
+ } else v.startsWith(T) && (d.push({ type: 6, index: r }), o.removeAttribute(v));
322
+ if (T5.test(o.tagName)) {
323
+ const v = o.textContent.split(T), H = v.length - 1;
324
324
  if (H > 0) {
325
- o.textContent = O1 ? O1.emptyScript : "";
326
- for (let f = 0; f < H; f++) o.append(v[f], v1()), G.nextNode(), d.push({ type: 2, index: ++r });
327
- o.append(v[H], v1());
325
+ o.textContent = I1 ? I1.emptyScript : "";
326
+ for (let f = 0; f < H; f++) o.append(v[f], L1()), J.nextNode(), d.push({ type: 2, index: ++r });
327
+ o.append(v[H], L1());
328
328
  }
329
329
  }
330
- } else if (o.nodeType === 8) if (o.data === P5) d.push({ type: 2, index: r });
330
+ } else if (o.nodeType === 8) if (o.data === I5) d.push({ type: 2, index: r });
331
331
  else {
332
332
  let v = -1;
333
- for (; (v = o.data.indexOf(S, v + 1)) !== -1; ) d.push({ type: 7, index: r }), v += S.length - 1;
333
+ for (; (v = o.data.indexOf(T, v + 1)) !== -1; ) d.push({ type: 7, index: r }), v += T.length - 1;
334
334
  }
335
335
  r++;
336
336
  }
337
337
  }
338
338
  static createElement(e, t) {
339
- const i = X.createElement("template");
339
+ const i = e1.createElement("template");
340
340
  return i.innerHTML = e, i;
341
341
  }
342
342
  }
343
- function C1(l, e, t = l, i) {
344
- var C, a;
345
- if (e === K) return e;
346
- let o = i !== void 0 ? (C = t._$Co) == null ? void 0 : C[i] : t._$Cl;
347
- const r = f1(e) ? void 0 : e._$litDirective$;
348
- return (o == null ? void 0 : o.constructor) !== r && ((a = o == null ? void 0 : o._$AO) == null || a.call(o, !1), r === void 0 ? o = void 0 : (o = new r(l), o._$AT(l, t, i)), i !== void 0 ? (t._$Co ?? (t._$Co = []))[i] = o : t._$Cl = o), o !== void 0 && (e = C1(l, o._$AS(l, e.values), o, i)), e;
343
+ function s1(l, e, t = l, i) {
344
+ var n, a;
345
+ if (e === t1) return e;
346
+ let o = i !== void 0 ? (n = t._$Co) == null ? void 0 : n[i] : t._$Cl;
347
+ const r = b1(e) ? void 0 : e._$litDirective$;
348
+ return (o == null ? void 0 : o.constructor) !== r && ((a = o == null ? void 0 : o._$AO) == null || a.call(o, !1), r === void 0 ? o = void 0 : (o = new r(l), o._$AT(l, t, i)), i !== void 0 ? (t._$Co ?? (t._$Co = []))[i] = o : t._$Cl = o), o !== void 0 && (e = s1(l, o._$AS(l, e.values), o, i)), e;
349
349
  }
350
- class v4 {
350
+ class L4 {
351
351
  constructor(e, t) {
352
352
  this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
353
353
  }
@@ -358,24 +358,24 @@ class v4 {
358
358
  return this._$AM._$AU;
359
359
  }
360
360
  u(e) {
361
- const { el: { content: t }, parts: i } = this._$AD, o = ((e == null ? void 0 : e.creationScope) ?? X).importNode(t, !0);
362
- G.currentNode = o;
363
- let r = G.nextNode(), C = 0, a = 0, d = i[0];
361
+ const { el: { content: t }, parts: i } = this._$AD, o = ((e == null ? void 0 : e.creationScope) ?? e1).importNode(t, !0);
362
+ J.currentNode = o;
363
+ let r = J.nextNode(), n = 0, a = 0, d = i[0];
364
364
  for (; d !== void 0; ) {
365
- if (C === d.index) {
365
+ if (n === d.index) {
366
366
  let p;
367
- d.type === 2 ? p = new $1(r, r.nextSibling, this, e) : d.type === 1 ? p = new d.ctor(r, d.name, d.strings, this, e) : d.type === 6 && (p = new L4(r, this, e)), this._$AV.push(p), d = i[++a];
367
+ d.type === 2 ? p = new z1(r, r.nextSibling, this, e) : d.type === 1 ? p = new d.ctor(r, d.name, d.strings, this, e) : d.type === 6 && (p = new y4(r, this, e)), this._$AV.push(p), d = i[++a];
368
368
  }
369
- C !== (d == null ? void 0 : d.index) && (r = G.nextNode(), C++);
369
+ n !== (d == null ? void 0 : d.index) && (r = J.nextNode(), n++);
370
370
  }
371
- return G.currentNode = X, o;
371
+ return J.currentNode = e1, o;
372
372
  }
373
373
  p(e) {
374
374
  let t = 0;
375
375
  for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(e, i, t), t += i.strings.length - 2) : i._$AI(e[t])), t++;
376
376
  }
377
377
  }
378
- class $1 {
378
+ class z1 {
379
379
  get _$AU() {
380
380
  var e;
381
381
  return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
@@ -395,7 +395,7 @@ class $1 {
395
395
  return this._$AB;
396
396
  }
397
397
  _$AI(e, t = this) {
398
- e = C1(this, e, t), f1(e) ? e === c || e == null || e === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : e !== this._$AH && e !== K && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : h4(e) ? this.k(e) : this._(e);
398
+ e = s1(this, e, t), b1(e) ? e === c || e == null || e === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : e !== this._$AH && e !== t1 && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : H4(e) ? this.k(e) : this._(e);
399
399
  }
400
400
  O(e) {
401
401
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -404,33 +404,33 @@ class $1 {
404
404
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
405
405
  }
406
406
  _(e) {
407
- this._$AH !== c && f1(this._$AH) ? this._$AA.nextSibling.data = e : this.T(X.createTextNode(e)), this._$AH = e;
407
+ this._$AH !== c && b1(this._$AH) ? this._$AA.nextSibling.data = e : this.T(e1.createTextNode(e)), this._$AH = e;
408
408
  }
409
409
  $(e) {
410
410
  var r;
411
- const { values: t, _$litType$: i } = e, o = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = H1.createElement(D5(i.h, i.h[0]), this.options)), i);
411
+ const { values: t, _$litType$: i } = e, o = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = m1.createElement(j5(i.h, i.h[0]), this.options)), i);
412
412
  if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(t);
413
413
  else {
414
- const C = new v4(o, this), a = C.u(this.options);
415
- C.p(t), this.T(a), this._$AH = C;
414
+ const n = new L4(o, this), a = n.u(this.options);
415
+ n.p(t), this.T(a), this._$AH = n;
416
416
  }
417
417
  }
418
418
  _$AC(e) {
419
- let t = M5.get(e.strings);
420
- return t === void 0 && M5.set(e.strings, t = new H1(e)), t;
419
+ let t = x5.get(e.strings);
420
+ return t === void 0 && x5.set(e.strings, t = new m1(e)), t;
421
421
  }
422
422
  k(e) {
423
- L2(this._$AH) || (this._$AH = [], this._$AR());
423
+ M2(this._$AH) || (this._$AH = [], this._$AR());
424
424
  const t = this._$AH;
425
425
  let i, o = 0;
426
- for (const r of e) o === t.length ? t.push(i = new $1(this.O(v1()), this.O(v1()), this, this.options)) : i = t[o], i._$AI(r), o++;
426
+ for (const r of e) o === t.length ? t.push(i = new z1(this.O(L1()), this.O(L1()), this, this.options)) : i = t[o], i._$AI(r), o++;
427
427
  o < t.length && (this._$AR(i && i._$AB.nextSibling, o), t.length = o);
428
428
  }
429
429
  _$AR(e = this._$AA.nextSibling, t) {
430
430
  var i;
431
431
  for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, t); e !== this._$AB; ) {
432
- const o = f5(e).nextSibling;
433
- f5(e).remove(), e = o;
432
+ const o = b5(e).nextSibling;
433
+ b5(e).remove(), e = o;
434
434
  }
435
435
  }
436
436
  setConnected(e) {
@@ -438,7 +438,7 @@ class $1 {
438
438
  this._$AM === void 0 && (this._$Cv = e, (t = this._$AP) == null || t.call(this, e));
439
439
  }
440
440
  }
441
- class q1 {
441
+ class G1 {
442
442
  get tagName() {
443
443
  return this.element.tagName;
444
444
  }
@@ -450,20 +450,20 @@ class q1 {
450
450
  }
451
451
  _$AI(e, t = this, i, o) {
452
452
  const r = this.strings;
453
- let C = !1;
454
- if (r === void 0) e = C1(this, e, t, 0), C = !f1(e) || e !== this._$AH && e !== K, C && (this._$AH = e);
453
+ let n = !1;
454
+ if (r === void 0) e = s1(this, e, t, 0), n = !b1(e) || e !== this._$AH && e !== t1, n && (this._$AH = e);
455
455
  else {
456
456
  const a = e;
457
457
  let d, p;
458
- for (e = r[0], d = 0; d < r.length - 1; d++) p = C1(this, a[i + d], t, d), p === K && (p = this._$AH[d]), C || (C = !f1(p) || p !== this._$AH[d]), p === c ? e = c : e !== c && (e += (p ?? "") + r[d + 1]), this._$AH[d] = p;
458
+ for (e = r[0], d = 0; d < r.length - 1; d++) p = s1(this, a[i + d], t, d), p === t1 && (p = this._$AH[d]), n || (n = !b1(p) || p !== this._$AH[d]), p === c ? e = c : e !== c && (e += (p ?? "") + r[d + 1]), this._$AH[d] = p;
459
459
  }
460
- C && !o && this.j(e);
460
+ n && !o && this.j(e);
461
461
  }
462
462
  j(e) {
463
463
  e === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
464
464
  }
465
465
  }
466
- class f4 extends q1 {
466
+ class b4 extends G1 {
467
467
  constructor() {
468
468
  super(...arguments), this.type = 3;
469
469
  }
@@ -471,7 +471,7 @@ class f4 extends q1 {
471
471
  this.element[this.name] = e === c ? void 0 : e;
472
472
  }
473
473
  }
474
- class H4 extends q1 {
474
+ class m4 extends G1 {
475
475
  constructor() {
476
476
  super(...arguments), this.type = 4;
477
477
  }
@@ -479,12 +479,12 @@ class H4 extends q1 {
479
479
  this.element.toggleAttribute(this.name, !!e && e !== c);
480
480
  }
481
481
  }
482
- class V4 extends q1 {
482
+ class M4 extends G1 {
483
483
  constructor(e, t, i, o, r) {
484
484
  super(e, t, i, o, r), this.type = 5;
485
485
  }
486
486
  _$AI(e, t = this) {
487
- if ((e = C1(this, e, t, 0) ?? c) === K) return;
487
+ if ((e = s1(this, e, t, 0) ?? c) === t1) return;
488
488
  const i = this._$AH, o = e === c && i !== c || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, r = e !== c && (i === c || o);
489
489
  o && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, e), this._$AH = e;
490
490
  }
@@ -493,7 +493,7 @@ class V4 extends q1 {
493
493
  typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
494
494
  }
495
495
  }
496
- class L4 {
496
+ class y4 {
497
497
  constructor(e, t, i) {
498
498
  this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = i;
499
499
  }
@@ -501,17 +501,17 @@ class L4 {
501
501
  return this._$AM._$AU;
502
502
  }
503
503
  _$AI(e) {
504
- C1(this, e);
504
+ s1(this, e);
505
505
  }
506
506
  }
507
- const X1 = g1.litHtmlPolyfillSupport;
508
- X1 == null || X1(H1, $1), (g1.litHtmlVersions ?? (g1.litHtmlVersions = [])).push("3.3.2");
509
- const b4 = (l, e, t) => {
507
+ const J1 = V1.litHtmlPolyfillSupport;
508
+ J1 == null || J1(m1, z1), (V1.litHtmlVersions ?? (V1.litHtmlVersions = [])).push("3.3.2");
509
+ const Z4 = (l, e, t) => {
510
510
  const i = (t == null ? void 0 : t.renderBefore) ?? e;
511
511
  let o = i._$litPart$;
512
512
  if (o === void 0) {
513
513
  const r = (t == null ? void 0 : t.renderBefore) ?? null;
514
- i._$litPart$ = o = new $1(e.insertBefore(v1(), r), r, void 0, t ?? {});
514
+ i._$litPart$ = o = new z1(e.insertBefore(L1(), r), r, void 0, t ?? {});
515
515
  }
516
516
  return o._$AI(l), o;
517
517
  };
@@ -520,8 +520,8 @@ const b4 = (l, e, t) => {
520
520
  * Copyright 2017 Google LLC
521
521
  * SPDX-License-Identifier: BSD-3-Clause
522
522
  */
523
- const Y = globalThis;
524
- let u = class extends r1 {
523
+ const Q = globalThis;
524
+ let h = class extends a1 {
525
525
  constructor() {
526
526
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
527
527
  }
@@ -532,7 +532,7 @@ let u = class extends r1 {
532
532
  }
533
533
  update(e) {
534
534
  const t = this.render();
535
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = b4(t, this.renderRoot, this.renderOptions);
535
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Z4(t, this.renderRoot, this.renderOptions);
536
536
  }
537
537
  connectedCallback() {
538
538
  var e;
@@ -543,44 +543,44 @@ let u = class extends r1 {
543
543
  super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
544
544
  }
545
545
  render() {
546
- return K;
546
+ return t1;
547
547
  }
548
548
  };
549
- var B5;
550
- u._$litElement$ = !0, u.finalized = !0, (B5 = Y.litElementHydrateSupport) == null || B5.call(Y, { LitElement: u });
551
- const K1 = Y.litElementPolyfillSupport;
552
- K1 == null || K1({ LitElement: u });
553
- (Y.litElementVersions ?? (Y.litElementVersions = [])).push("4.2.2");
549
+ var P5;
550
+ h._$litElement$ = !0, h.finalized = !0, (P5 = Q.litElementHydrateSupport) == null || P5.call(Q, { LitElement: h });
551
+ const Q1 = Q.litElementPolyfillSupport;
552
+ Q1 == null || Q1({ LitElement: h });
553
+ (Q.litElementVersions ?? (Q.litElementVersions = [])).push("4.2.2");
554
554
  /**
555
555
  * @license
556
556
  * Copyright 2017 Google LLC
557
557
  * SPDX-License-Identifier: BSD-3-Clause
558
558
  */
559
- const m4 = { attribute: !0, type: String, converter: S1, reflect: !1, hasChanged: V2 }, M4 = (l = m4, e, t) => {
559
+ const _4 = { attribute: !0, type: String, converter: D1, reflect: !1, hasChanged: m2 }, x4 = (l = _4, e, t) => {
560
560
  const { kind: i, metadata: o } = t;
561
561
  let r = globalThis.litPropertyMetadata.get(o);
562
562
  if (r === void 0 && globalThis.litPropertyMetadata.set(o, r = /* @__PURE__ */ new Map()), i === "setter" && ((l = Object.create(l)).wrapped = !0), r.set(t.name, l), i === "accessor") {
563
- const { name: C } = t;
563
+ const { name: n } = t;
564
564
  return { set(a) {
565
565
  const d = e.get.call(this);
566
- e.set.call(this, a), this.requestUpdate(C, d, l, !0, a);
566
+ e.set.call(this, a), this.requestUpdate(n, d, l, !0, a);
567
567
  }, init(a) {
568
- return a !== void 0 && this.C(C, void 0, l, a), a;
568
+ return a !== void 0 && this.C(n, void 0, l, a), a;
569
569
  } };
570
570
  }
571
571
  if (i === "setter") {
572
- const { name: C } = t;
572
+ const { name: n } = t;
573
573
  return function(a) {
574
- const d = this[C];
575
- e.call(this, a), this.requestUpdate(C, d, l, !0, a);
574
+ const d = this[n];
575
+ e.call(this, a), this.requestUpdate(n, d, l, !0, a);
576
576
  };
577
577
  }
578
578
  throw Error("Unsupported decorator location: " + i);
579
579
  };
580
- function n(l) {
581
- return (e, t) => typeof t == "object" ? M4(l, e, t) : ((i, o, r) => {
582
- const C = o.hasOwnProperty(r);
583
- return o.constructor.createProperty(r, i), C ? Object.getOwnPropertyDescriptor(o, r) : void 0;
580
+ function C(l) {
581
+ return (e, t) => typeof t == "object" ? x4(l, e, t) : ((i, o, r) => {
582
+ const n = o.hasOwnProperty(r);
583
+ return o.constructor.createProperty(r, i), n ? Object.getOwnPropertyDescriptor(o, r) : void 0;
584
584
  })(l, e, t);
585
585
  }
586
586
  /**
@@ -588,37 +588,37 @@ function n(l) {
588
588
  * Copyright 2017 Google LLC
589
589
  * SPDX-License-Identifier: BSD-3-Clause
590
590
  */
591
- function y(l) {
592
- return n({ ...l, state: !0, attribute: !1 });
591
+ function M(l) {
592
+ return C({ ...l, state: !0, attribute: !1 });
593
593
  }
594
594
  /**
595
595
  * @license
596
596
  * Copyright 2017 Google LLC
597
597
  * SPDX-License-Identifier: BSD-3-Clause
598
598
  */
599
- const Z4 = (l, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(l, e, t), t);
599
+ const w4 = (l, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(l, e, t), t);
600
600
  /**
601
601
  * @license
602
602
  * Copyright 2017 Google LLC
603
603
  * SPDX-License-Identifier: BSD-3-Clause
604
604
  */
605
- function w(l, e) {
605
+ function R(l, e) {
606
606
  return (t, i, o) => {
607
- const r = (C) => {
607
+ const r = (n) => {
608
608
  var a;
609
- return ((a = C.renderRoot) == null ? void 0 : a.querySelector(l)) ?? null;
609
+ return ((a = n.renderRoot) == null ? void 0 : a.querySelector(l)) ?? null;
610
610
  };
611
- return Z4(t, i, { get() {
611
+ return w4(t, i, { get() {
612
612
  return r(this);
613
613
  } });
614
614
  };
615
615
  }
616
- var y4 = Object.defineProperty, I5 = (l, e, t, i) => {
617
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
618
- (C = l[r]) && (o = C(e, t, o) || o);
619
- return o && y4(e, t, o), o;
616
+ var R4 = Object.defineProperty, U5 = (l, e, t, i) => {
617
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
618
+ (n = l[r]) && (o = n(e, t, o) || o);
619
+ return o && R4(e, t, o), o;
620
620
  };
621
- const Z2 = class Z2 extends u {
621
+ const x2 = class x2 extends h {
622
622
  constructor() {
623
623
  super(...arguments), this.size = "medium", this.percent = "";
624
624
  }
@@ -640,14 +640,14 @@ const Z2 = class Z2 extends u {
640
640
  const [e, t] = this.getSizeParams(this.size), i = this.percent === "" || this.percent === null;
641
641
  let o;
642
642
  i ? o = 0.75 * Math.PI * e : o = (1 - Math.max(0, Math.min(1, parseFloat(this.percent) || 0))) * Math.PI * e;
643
- const r = t / 2, C = t + e, a = e / 2, d = Math.PI * e;
644
- return t2`
643
+ const r = t / 2, n = t + e, a = e / 2, d = Math.PI * e;
644
+ return l2`
645
645
  <svg
646
646
  class=${i ? "spinner" : ""}
647
647
  width="${e}px"
648
648
  height="${e}px"
649
649
  transform="rotate(-90)"
650
- viewBox="-${r} -${r} ${C} ${C}"
650
+ viewBox="-${r} -${r} ${n} ${n}"
651
651
  xmlns="http://www.w3.org/2000/svg"
652
652
  >
653
653
  <circle
@@ -675,20 +675,20 @@ const Z2 = class Z2 extends u {
675
675
  `;
676
676
  }
677
677
  };
678
- Z2.styles = h`
678
+ x2.styles = g`
679
679
  :host { display: inline-block; line-height: 0; font-family: var(--font-sans); }
680
680
  .spinner { animation: circle 0.6s linear infinite; }
681
681
  @keyframes circle { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
682
682
  `;
683
- let V1 = Z2;
684
- I5([
685
- n()
686
- ], V1.prototype, "size");
687
- I5([
688
- n()
689
- ], V1.prototype, "percent");
690
- customElements.get("anduin-spinner") || customElements.define("anduin-spinner", V1);
691
- const Z5 = {
683
+ let M1 = x2;
684
+ U5([
685
+ C()
686
+ ], M1.prototype, "size");
687
+ U5([
688
+ C()
689
+ ], M1.prototype, "percent");
690
+ customElements.get("anduin-spinner") || customElements.define("anduin-spinner", M1);
691
+ const w5 = {
692
692
  access: [{ d: "M13 2.5H3C2.72386 2.5 2.5 2.72386 2.5 3V5.75H1V3C1 1.89543 1.89543 1 3 1H13C14.1046 1 15 1.89543 15 3V13C15 14.1046 14.1046 15 13 15H3C1.89543 15 1 14.1046 1 13V10.25H2.5V13C2.5 13.2761 2.72386 13.5 3 13.5H13C13.2761 13.5 13.5 13.2761 13.5 13V3C13.5 2.72386 13.2761 2.5 13 2.5ZM7.53033 4.21979C7.23744 3.9269 6.76256 3.9269 6.46967 4.21979C6.17678 4.51269 6.17678 4.98756 6.46967 5.28045L8.43922 7.25L0.75 7.25C0.335786 7.25 0 7.58579 0 8C0 8.41421 0.335786 8.75 0.75 8.75L8.43946 8.75L6.46967 10.7198C6.17678 11.0127 6.17678 11.4876 6.46967 11.7805C6.76256 12.0733 7.23744 12.0733 7.53033 11.7805L10.7803 8.53044C11.0732 8.23755 11.0732 7.76268 10.7803 7.46978L7.53033 4.21979Z", fillRule: "evenodd", clipRule: "evenodd" }],
693
693
  alignCenter: [{ d: "M2 1C1.44772 1 1 1.44772 1 2C1 2.55228 1.44772 3 2 3H14C14.5523 3 15 2.55228 15 2C15 1.44772 14.5523 1 14 1H2ZM2 9C1.44772 9 1 9.44771 1 10C1 10.5523 1.44772 11 2 11H14C14.5523 11 15 10.5523 15 10C15 9.44771 14.5523 9 14 9H2ZM4 6C4 5.44772 4.44772 5 5 5H11C11.5523 5 12 5.44772 12 6C12 6.55228 11.5523 7 11 7H5C4.44772 7 4 6.55228 4 6ZM5 13C4.44772 13 4 13.4477 4 14C4 14.5523 4.44772 15 5 15H11C11.5523 15 12 14.5523 12 14C12 13.4477 11.5523 13 11 13H5Z", fillRule: "evenodd", clipRule: "evenodd" }],
694
694
  alignJustify: [{ d: "M2 1C1.44772 1 1 1.44772 1 2C1 2.55228 1.44772 3 2 3H14C14.5523 3 15 2.55228 15 2C15 1.44772 14.5523 1 14 1H2ZM2 9C1.44772 9 1 9.44771 1 10C1 10.5523 1.44772 11 2 11H14C14.5523 11 15 10.5523 15 10C15 9.44771 14.5523 9 14 9H2ZM1 6C1 5.44772 1.44772 5 2 5H14C14.5523 5 15 5.44772 15 6C15 6.55228 14.5523 7 14 7H2C1.44772 7 1 6.55228 1 6ZM2 13C1.44772 13 1 13.4477 1 14C1 14.5523 1.44772 15 2 15H14C14.5523 15 15 14.5523 15 14C15 13.4477 14.5523 13 14 13H2Z", fillRule: "evenodd", clipRule: "evenodd" }],
@@ -1031,18 +1031,18 @@ const Z5 = {
1031
1031
  zoomOut: [{ d: "M4.5 6.25C4.08579 6.25 3.75 6.58579 3.75 7C3.75 7.41421 4.08579 7.75 4.5 7.75H9.5C9.91421 7.75 10.25 7.41421 10.25 7C10.25 6.58579 9.91421 6.25 9.5 6.25H4.5ZM7 14C8.57591 14 10.0302 13.4792 11.2001 12.6004C11.2281 12.6376 11.259 12.6733 11.2929 12.7071L14.2929 15.7071C14.6834 16.0976 15.3166 16.0976 15.7071 15.7071C16.0976 15.3166 16.0976 14.6834 15.7071 14.2929L12.7071 11.2929C12.6733 11.259 12.6376 11.2281 12.6004 11.2001C13.4792 10.0302 14 8.57591 14 7C14 3.13401 10.866 0 7 0C3.13401 0 0 3.13401 0 7C0 10.866 3.13401 14 7 14ZM7 12.5C10.0376 12.5 12.5 10.0376 12.5 7C12.5 3.96243 10.0376 1.5 7 1.5C3.96243 1.5 1.5 3.96243 1.5 7C1.5 10.0376 3.96243 12.5 7 12.5Z", fillRule: "evenodd", clipRule: "evenodd" }],
1032
1032
  zz: [{ d: "M9.75 1.02686C9.33579 1.02686 9 1.36264 9 1.77686C9 2.19107 9.33579 2.52686 9.75 2.52686H12.8186L9.13336 7.84995C8.97457 8.07931 8.9562 8.37784 9.08567 8.62494C9.21513 8.87203 9.47104 9.02686 9.75 9.02686H14.25C14.6642 9.02686 15 8.69107 15 8.27686C15 7.86264 14.6642 7.52686 14.25 7.52686H11.1814L14.8666 2.20376C15.0254 1.97441 15.0438 1.67587 14.9143 1.42878C14.7849 1.18168 14.529 1.02686 14.25 1.02686H9.75ZM1.75 7.02686C1.33579 7.02686 1 7.36264 1 7.77686C1 8.19107 1.33579 8.52686 1.75 8.52686H4.81858L1.13336 13.8499C0.974572 14.0793 0.956201 14.3778 1.08567 14.6249C1.21513 14.872 1.47104 15.0269 1.75 15.0269H6.25C6.66422 15.0269 7 14.6911 7 14.2769C7 13.8626 6.66422 13.5269 6.25 13.5269H3.18143L6.86665 8.20376C7.02543 7.97441 7.0438 7.67587 6.91434 7.42878C6.78487 7.18168 6.52896 7.02686 6.25 7.02686H1.75Z", fillRule: "evenodd", clipRule: "evenodd" }]
1033
1033
  };
1034
- var _4 = Object.defineProperty, T5 = (l, e, t, i) => {
1035
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
1036
- (C = l[r]) && (o = C(e, t, o) || o);
1037
- return o && _4(e, t, o), o;
1034
+ var k4 = Object.defineProperty, q5 = (l, e, t, i) => {
1035
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
1036
+ (n = l[r]) && (o = n(e, t, o) || o);
1037
+ return o && k4(e, t, o), o;
1038
1038
  };
1039
- const y2 = class y2 extends u {
1039
+ const w2 = class w2 extends h {
1040
1040
  constructor() {
1041
1041
  super(...arguments), this.name = "", this.size = 16;
1042
1042
  }
1043
1043
  render() {
1044
- const e = this.name && Z5[this.name] ? Z5[this.name] : [], t = !this.name;
1045
- return t2`
1044
+ const e = this.name && w5[this.name] ? w5[this.name] : [], t = !this.name;
1045
+ return l2`
1046
1046
  <svg
1047
1047
  class=${t ? "icon--hidden" : ""}
1048
1048
  xmlns="http://www.w3.org/2000/svg"
@@ -1052,7 +1052,7 @@ const y2 = class y2 extends u {
1052
1052
  viewBox="0 0 16 16"
1053
1053
  >
1054
1054
  ${e.map(
1055
- (i) => t2`
1055
+ (i) => l2`
1056
1056
  <path
1057
1057
  fill="currentColor"
1058
1058
  d="${i.d}"
@@ -1064,24 +1064,24 @@ const y2 = class y2 extends u {
1064
1064
  `;
1065
1065
  }
1066
1066
  };
1067
- y2.styles = h`
1067
+ w2.styles = g`
1068
1068
  :host { display: block; line-height: 0; font-family: var(--font-sans); }
1069
1069
  .icon--hidden { display: none; }
1070
1070
  `;
1071
- let L1 = y2;
1072
- T5([
1073
- n()
1074
- ], L1.prototype, "name");
1075
- T5([
1076
- n({ type: Number })
1077
- ], L1.prototype, "size");
1078
- customElements.get("anduin-icon") || customElements.define("anduin-icon", L1);
1079
- var x4 = Object.defineProperty, R4 = (l, e, t, i) => {
1080
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
1081
- (C = l[r]) && (o = C(e, t, o) || o);
1082
- return o && x4(e, t, o), o;
1071
+ let y1 = w2;
1072
+ q5([
1073
+ C()
1074
+ ], y1.prototype, "name");
1075
+ q5([
1076
+ C({ type: Number })
1077
+ ], y1.prototype, "size");
1078
+ customElements.get("anduin-icon") || customElements.define("anduin-icon", y1);
1079
+ var $4 = Object.defineProperty, E4 = (l, e, t, i) => {
1080
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
1081
+ (n = l[r]) && (o = n(e, t, o) || o);
1082
+ return o && $4(e, t, o), o;
1083
1083
  };
1084
- const N5 = h`
1084
+ const W5 = g`
1085
1085
  :host { display: inline-block; font-family: var(--font-sans); }
1086
1086
  .badge {
1087
1087
  border-radius: 9999px;
@@ -1108,7 +1108,7 @@ const N5 = h`
1108
1108
  .badge--bold-warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
1109
1109
  .badge--hidden { display: none; }
1110
1110
  `;
1111
- function j5(l) {
1111
+ function G5(l) {
1112
1112
  return {
1113
1113
  gray: "badge--light-gray",
1114
1114
  primary: "badge--light-primary",
@@ -1122,27 +1122,27 @@ function j5(l) {
1122
1122
  boldDanger: "badge--bold-danger"
1123
1123
  }[l || "gray"] || "badge--light-gray";
1124
1124
  }
1125
- const _2 = class _2 extends u {
1125
+ const R2 = class R2 extends h {
1126
1126
  constructor() {
1127
1127
  super(...arguments), this.variant = "gray";
1128
1128
  }
1129
1129
  render() {
1130
- const e = j5(this.variant);
1130
+ const e = G5(this.variant);
1131
1131
  return s`<div class="badge ${e}" part="badge"><slot></slot></div>`;
1132
1132
  }
1133
1133
  };
1134
- _2.styles = [N5];
1135
- let D1 = _2;
1136
- R4([
1137
- n()
1138
- ], D1.prototype, "variant");
1139
- customElements.get("anduin-badge") || customElements.define("anduin-badge", D1);
1140
- var w4 = Object.defineProperty, U5 = (l, e, t, i) => {
1141
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
1142
- (C = l[r]) && (o = C(e, t, o) || o);
1143
- return o && w4(e, t, o), o;
1134
+ R2.styles = [W5];
1135
+ let T1 = R2;
1136
+ E4([
1137
+ C()
1138
+ ], T1.prototype, "variant");
1139
+ customElements.get("anduin-badge") || customElements.define("anduin-badge", T1);
1140
+ var A4 = Object.defineProperty, Y5 = (l, e, t, i) => {
1141
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
1142
+ (n = l[r]) && (o = n(e, t, o) || o);
1143
+ return o && A4(e, t, o), o;
1144
1144
  };
1145
- const x2 = class x2 extends u {
1145
+ const k2 = class k2 extends h {
1146
1146
  constructor() {
1147
1147
  super(...arguments), this.variant = "gray", this.count = 0;
1148
1148
  }
@@ -1150,7 +1150,7 @@ const x2 = class x2 extends u {
1150
1150
  return e > 99 ? "99+" : e.toString();
1151
1151
  }
1152
1152
  render() {
1153
- const e = j5(this.variant), t = this.count === 0, i = this.count > 0 && this.count < 10, o = [
1153
+ const e = G5(this.variant), t = this.count === 0, i = this.count > 0 && this.count < 10, o = [
1154
1154
  "badge",
1155
1155
  e,
1156
1156
  t ? "badge--hidden" : "",
@@ -1159,24 +1159,24 @@ const x2 = class x2 extends u {
1159
1159
  return s`<div class="${o}" part="badge">${this.formatCount(this.count)}</div>`;
1160
1160
  }
1161
1161
  };
1162
- x2.styles = [N5];
1163
- let b1 = x2;
1164
- U5([
1165
- n()
1166
- ], b1.prototype, "variant");
1167
- U5([
1168
- n({ type: Number })
1169
- ], b1.prototype, "count");
1170
- customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", b1);
1171
- var k4 = Object.defineProperty, m = (l, e, t, i) => {
1172
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
1173
- (C = l[r]) && (o = C(e, t, o) || o);
1174
- return o && k4(e, t, o), o;
1162
+ k2.styles = [W5];
1163
+ let Z1 = k2;
1164
+ Y5([
1165
+ C()
1166
+ ], Z1.prototype, "variant");
1167
+ Y5([
1168
+ C({ type: Number })
1169
+ ], Z1.prototype, "count");
1170
+ customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", Z1);
1171
+ var B4 = Object.defineProperty, _ = (l, e, t, i) => {
1172
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
1173
+ (n = l[r]) && (o = n(e, t, o) || o);
1174
+ return o && B4(e, t, o), o;
1175
1175
  };
1176
- function $4(l) {
1176
+ function z4(l) {
1177
1177
  return l.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1178
1178
  }
1179
- const R2 = class R2 extends u {
1179
+ const $2 = class $2 extends h {
1180
1180
  constructor() {
1181
1181
  super(...arguments), this.iconOnly = !1, this.appearance = "filled", this.variant = "", this.size = "medium", this.disabled = !1, this.loading = !1, this.fullWidth = !1, this.pill = !1, this.selected = !1, this.href = "", this.openNewTab = !1, this.download = "", this.startIcon = "", this.endIcon = "", this.label = "";
1182
1182
  }
@@ -1193,7 +1193,7 @@ const R2 = class R2 extends u {
1193
1193
  return this.variant ? this.variant : this.appearance === "filled" ? "gray0" : this.appearance === "text" ? "primary" : "gray9";
1194
1194
  }
1195
1195
  getSizeKebab() {
1196
- return $4(this.size);
1196
+ return z4(this.size);
1197
1197
  }
1198
1198
  iconSize() {
1199
1199
  return this.size === "tiny" || this.size === "extraSmall" || this.size === "small" ? "12" : "16";
@@ -1237,7 +1237,7 @@ const R2 = class R2 extends u {
1237
1237
  `;
1238
1238
  }
1239
1239
  };
1240
- R2.styles = h`
1240
+ $2.styles = g`
1241
1241
  :host { display: inline-block; font-family: var(--font-sans); }
1242
1242
  :host([full-width]) { display: block; width: 100%; }
1243
1243
  .button {
@@ -1339,59 +1339,59 @@ R2.styles = h`
1339
1339
  .button--icon-only.button--medium { width: 32px; min-width: 32px; padding-left: 0; padding-right: 0; }
1340
1340
  .button--icon-only.button--large { width: 40px; min-width: 40px; padding-left: 0; padding-right: 0; }
1341
1341
  `;
1342
- let L = R2;
1343
- m([
1344
- y()
1345
- ], L.prototype, "iconOnly");
1346
- m([
1347
- n({ converter: (l) => l || "filled" })
1348
- ], L.prototype, "appearance");
1349
- m([
1350
- n()
1351
- ], L.prototype, "variant");
1352
- m([
1353
- n()
1354
- ], L.prototype, "size");
1355
- m([
1356
- n({ type: Boolean })
1357
- ], L.prototype, "disabled");
1358
- m([
1359
- n({ type: Boolean })
1360
- ], L.prototype, "loading");
1361
- m([
1362
- n({ type: Boolean, attribute: "full-width", reflect: !0 })
1363
- ], L.prototype, "fullWidth");
1364
- m([
1365
- n({ type: Boolean })
1366
- ], L.prototype, "pill");
1367
- m([
1368
- n({ type: Boolean })
1369
- ], L.prototype, "selected");
1370
- m([
1371
- n()
1372
- ], L.prototype, "href");
1373
- m([
1374
- n({ type: Boolean, attribute: "open-new-tab" })
1375
- ], L.prototype, "openNewTab");
1376
- m([
1377
- n()
1378
- ], L.prototype, "download");
1379
- m([
1380
- n({ attribute: "start-icon" })
1381
- ], L.prototype, "startIcon");
1382
- m([
1383
- n({ attribute: "end-icon" })
1384
- ], L.prototype, "endIcon");
1385
- m([
1386
- n()
1387
- ], L.prototype, "label");
1388
- customElements.get("anduin-button") || customElements.define("anduin-button", L);
1389
- var E4 = Object.defineProperty, A4 = (l, e, t, i) => {
1390
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
1391
- (C = l[r]) && (o = C(e, t, o) || o);
1392
- return o && E4(e, t, o), o;
1342
+ let b = $2;
1343
+ _([
1344
+ M()
1345
+ ], b.prototype, "iconOnly");
1346
+ _([
1347
+ C({ converter: (l) => l || "filled" })
1348
+ ], b.prototype, "appearance");
1349
+ _([
1350
+ C()
1351
+ ], b.prototype, "variant");
1352
+ _([
1353
+ C()
1354
+ ], b.prototype, "size");
1355
+ _([
1356
+ C({ type: Boolean })
1357
+ ], b.prototype, "disabled");
1358
+ _([
1359
+ C({ type: Boolean })
1360
+ ], b.prototype, "loading");
1361
+ _([
1362
+ C({ type: Boolean, attribute: "full-width", reflect: !0 })
1363
+ ], b.prototype, "fullWidth");
1364
+ _([
1365
+ C({ type: Boolean })
1366
+ ], b.prototype, "pill");
1367
+ _([
1368
+ C({ type: Boolean })
1369
+ ], b.prototype, "selected");
1370
+ _([
1371
+ C()
1372
+ ], b.prototype, "href");
1373
+ _([
1374
+ C({ type: Boolean, attribute: "open-new-tab" })
1375
+ ], b.prototype, "openNewTab");
1376
+ _([
1377
+ C()
1378
+ ], b.prototype, "download");
1379
+ _([
1380
+ C({ attribute: "start-icon" })
1381
+ ], b.prototype, "startIcon");
1382
+ _([
1383
+ C({ attribute: "end-icon" })
1384
+ ], b.prototype, "endIcon");
1385
+ _([
1386
+ C()
1387
+ ], b.prototype, "label");
1388
+ customElements.get("anduin-button") || customElements.define("anduin-button", b);
1389
+ var S4 = Object.defineProperty, F4 = (l, e, t, i) => {
1390
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
1391
+ (n = l[r]) && (o = n(e, t, o) || o);
1392
+ return o && S4(e, t, o), o;
1393
1393
  };
1394
- const w2 = class w2 extends u {
1394
+ const E2 = class E2 extends h {
1395
1395
  constructor() {
1396
1396
  super(...arguments), this.variant = "gray";
1397
1397
  }
@@ -1404,7 +1404,7 @@ const w2 = class w2 extends u {
1404
1404
  `;
1405
1405
  }
1406
1406
  };
1407
- w2.styles = h`
1407
+ E2.styles = g`
1408
1408
  :host { display: block; font-family: var(--font-sans); }
1409
1409
  .callout {
1410
1410
  display: flex; align-items: center; justify-content: center;
@@ -1416,17 +1416,17 @@ w2.styles = h`
1416
1416
  .callout--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
1417
1417
  .callout--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
1418
1418
  `;
1419
- let I1 = w2;
1420
- A4([
1421
- n()
1422
- ], I1.prototype, "variant");
1423
- customElements.get("anduin-callout") || customElements.define("anduin-callout", I1);
1424
- var B4 = Object.defineProperty, q5 = (l, e, t, i) => {
1425
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
1426
- (C = l[r]) && (o = C(e, t, o) || o);
1427
- return o && B4(e, t, o), o;
1419
+ let N1 = E2;
1420
+ F4([
1421
+ C()
1422
+ ], N1.prototype, "variant");
1423
+ customElements.get("anduin-callout") || customElements.define("anduin-callout", N1);
1424
+ var P4 = Object.defineProperty, X5 = (l, e, t, i) => {
1425
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
1426
+ (n = l[r]) && (o = n(e, t, o) || o);
1427
+ return o && P4(e, t, o), o;
1428
1428
  };
1429
- const k2 = class k2 extends u {
1429
+ const A2 = class A2 extends h {
1430
1430
  constructor() {
1431
1431
  super(...arguments), this.direction = "horizontal", this.hasContent = !1;
1432
1432
  }
@@ -1457,7 +1457,7 @@ const k2 = class k2 extends u {
1457
1457
  </div>` : s`<div class="divider--horizontal divider--horizontal-empty"><slot @slotchange=${this.onSlotChange}></slot></div>`;
1458
1458
  }
1459
1459
  };
1460
- k2.styles = h`
1460
+ A2.styles = g`
1461
1461
  :host { display: block; width: 100%; font-family: var(--font-sans); }
1462
1462
  :host([direction="vertical"]) { width: auto; height: 100%; }
1463
1463
  .divider--horizontal { margin-top: 8px; margin-bottom: 8px; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 8px; text-align: center; }
@@ -1467,20 +1467,20 @@ k2.styles = h`
1467
1467
  .divider--vertical-empty { background-color: var(--color-gray-3); width: 1px; }
1468
1468
  .divider__line--vertical { border-left: 1px solid var(--color-gray-3); justify-self: center; }
1469
1469
  `;
1470
- let m1 = k2;
1471
- q5([
1472
- n({ reflect: !0 })
1473
- ], m1.prototype, "direction");
1474
- q5([
1475
- y()
1476
- ], m1.prototype, "hasContent");
1477
- customElements.get("anduin-divider") || customElements.define("anduin-divider", m1);
1478
- var z4 = Object.defineProperty, F4 = (l, e, t, i) => {
1479
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
1480
- (C = l[r]) && (o = C(e, t, o) || o);
1481
- return o && z4(e, t, o), o;
1470
+ let _1 = A2;
1471
+ X5([
1472
+ C({ reflect: !0 })
1473
+ ], _1.prototype, "direction");
1474
+ X5([
1475
+ M()
1476
+ ], _1.prototype, "hasContent");
1477
+ customElements.get("anduin-divider") || customElements.define("anduin-divider", _1);
1478
+ var O4 = Object.defineProperty, D4 = (l, e, t, i) => {
1479
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
1480
+ (n = l[r]) && (o = n(e, t, o) || o);
1481
+ return o && O4(e, t, o), o;
1482
1482
  };
1483
- const $2 = class $2 extends u {
1483
+ const B2 = class B2 extends h {
1484
1484
  constructor() {
1485
1485
  super(...arguments), this.variant = "gray";
1486
1486
  }
@@ -1488,7 +1488,7 @@ const $2 = class $2 extends u {
1488
1488
  return s`<div class="dot dot--${this.variant}" part="dot"></div>`;
1489
1489
  }
1490
1490
  };
1491
- $2.styles = h`
1491
+ B2.styles = g`
1492
1492
  :host { display: inline-block; font-family: var(--font-sans); }
1493
1493
  .dot { width: 10px; height: 10px; border-radius: 9999px; }
1494
1494
  .dot--gray { background-color: var(--color-semantic-gray-6); color: var(--color-semantic-gray-0); }
@@ -1497,17 +1497,17 @@ $2.styles = h`
1497
1497
  .dot--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
1498
1498
  .dot--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
1499
1499
  `;
1500
- let T1 = $2;
1501
- F4([
1502
- n()
1503
- ], T1.prototype, "variant");
1504
- customElements.get("anduin-dot") || customElements.define("anduin-dot", T1);
1505
- var P4 = Object.defineProperty, W5 = (l, e, t, i) => {
1506
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
1507
- (C = l[r]) && (o = C(e, t, o) || o);
1508
- return o && P4(e, t, o), o;
1500
+ let j1 = B2;
1501
+ D4([
1502
+ C()
1503
+ ], j1.prototype, "variant");
1504
+ customElements.get("anduin-dot") || customElements.define("anduin-dot", j1);
1505
+ var I4 = Object.defineProperty, K5 = (l, e, t, i) => {
1506
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
1507
+ (n = l[r]) && (o = n(e, t, o) || o);
1508
+ return o && I4(e, t, o), o;
1509
1509
  };
1510
- const E2 = class E2 extends u {
1510
+ const z2 = class z2 extends h {
1511
1511
  constructor() {
1512
1512
  super(...arguments), this.percent = "", this.height = "medium";
1513
1513
  }
@@ -1523,7 +1523,7 @@ const E2 = class E2 extends u {
1523
1523
  `;
1524
1524
  }
1525
1525
  };
1526
- E2.styles = h`
1526
+ z2.styles = g`
1527
1527
  :host { display: block; font-family: var(--font-sans); }
1528
1528
  .progress { overflow-x: hidden; position: relative; border-radius: 9999px; }
1529
1529
  .progress__fill {
@@ -1539,20 +1539,20 @@ E2.styles = h`
1539
1539
  to { transform: translateX(330%); }
1540
1540
  }
1541
1541
  `;
1542
- let M1 = E2;
1543
- W5([
1544
- n()
1545
- ], M1.prototype, "percent");
1546
- W5([
1547
- n()
1548
- ], M1.prototype, "height");
1549
- customElements.get("anduin-progress") || customElements.define("anduin-progress", M1);
1550
- var S4 = Object.defineProperty, c1 = (l, e, t, i) => {
1551
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
1552
- (C = l[r]) && (o = C(e, t, o) || o);
1553
- return o && S4(e, t, o), o;
1542
+ let x1 = z2;
1543
+ K5([
1544
+ C()
1545
+ ], x1.prototype, "percent");
1546
+ K5([
1547
+ C()
1548
+ ], x1.prototype, "height");
1549
+ customElements.get("anduin-progress") || customElements.define("anduin-progress", x1);
1550
+ var T4 = Object.defineProperty, h1 = (l, e, t, i) => {
1551
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
1552
+ (n = l[r]) && (o = n(e, t, o) || o);
1553
+ return o && T4(e, t, o), o;
1554
1554
  };
1555
- const A2 = class A2 extends u {
1555
+ const S2 = class S2 extends h {
1556
1556
  constructor() {
1557
1557
  super(...arguments), this.effect = "pulse", this.shape = "rectangle", this.height = "", this.width = "100%", this.duration = 1500, this.fontSize = "";
1558
1558
  }
@@ -1571,7 +1571,7 @@ const A2 = class A2 extends u {
1571
1571
  `;
1572
1572
  }
1573
1573
  };
1574
- A2.styles = h`
1574
+ S2.styles = g`
1575
1575
  :host { display: block; height: 100%; font-family: var(--font-sans); }
1576
1576
  .skeleton { background-color: var(--color-gray-3); position: relative; overflow: hidden; }
1577
1577
  .skeleton--circle { border-radius: 9999px; }
@@ -1590,32 +1590,32 @@ A2.styles = h`
1590
1590
  0% { transform: translateX(-100%); } 100% { transform: translateX(100%); }
1591
1591
  }
1592
1592
  `;
1593
- let B = A2;
1594
- c1([
1595
- n()
1596
- ], B.prototype, "effect");
1597
- c1([
1598
- n()
1599
- ], B.prototype, "shape");
1600
- c1([
1601
- n()
1602
- ], B.prototype, "height");
1603
- c1([
1604
- n()
1605
- ], B.prototype, "width");
1606
- c1([
1607
- n({ type: Number })
1608
- ], B.prototype, "duration");
1609
- c1([
1610
- n({ attribute: "font-size" })
1611
- ], B.prototype, "fontSize");
1612
- customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", B);
1613
- var O4 = Object.defineProperty, D4 = (l, e, t, i) => {
1614
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
1615
- (C = l[r]) && (o = C(e, t, o) || o);
1616
- return o && O4(e, t, o), o;
1593
+ let F = S2;
1594
+ h1([
1595
+ C()
1596
+ ], F.prototype, "effect");
1597
+ h1([
1598
+ C()
1599
+ ], F.prototype, "shape");
1600
+ h1([
1601
+ C()
1602
+ ], F.prototype, "height");
1603
+ h1([
1604
+ C()
1605
+ ], F.prototype, "width");
1606
+ h1([
1607
+ C({ type: Number })
1608
+ ], F.prototype, "duration");
1609
+ h1([
1610
+ C({ attribute: "font-size" })
1611
+ ], F.prototype, "fontSize");
1612
+ customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", F);
1613
+ var N4 = Object.defineProperty, j4 = (l, e, t, i) => {
1614
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
1615
+ (n = l[r]) && (o = n(e, t, o) || o);
1616
+ return o && N4(e, t, o), o;
1617
1617
  };
1618
- const B2 = class B2 extends u {
1618
+ const F2 = class F2 extends h {
1619
1619
  constructor() {
1620
1620
  super(...arguments), this.height = "256px";
1621
1621
  }
@@ -1630,30 +1630,30 @@ const B2 = class B2 extends u {
1630
1630
  `;
1631
1631
  }
1632
1632
  };
1633
- B2.styles = h`
1633
+ F2.styles = g`
1634
1634
  :host { display: block; height: 100%; font-family: var(--font-sans); }
1635
1635
  .loading-state { display: flex; flex-direction: column; justify-content: center; align-items: center; }
1636
1636
  .loading-state__indicator { color: var(--color-primary-4); }
1637
1637
  .loading-state__content { margin-top: 12px; font-size: 15px; color: var(--color-gray-6); }
1638
1638
  `;
1639
- let N1 = B2;
1640
- D4([
1641
- n()
1642
- ], N1.prototype, "height");
1643
- customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", N1);
1644
- var I4 = Object.defineProperty, b2 = (l, e, t, i) => {
1645
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
1646
- (C = l[r]) && (o = C(e, t, o) || o);
1647
- return o && I4(e, t, o), o;
1639
+ let U1 = F2;
1640
+ j4([
1641
+ C()
1642
+ ], U1.prototype, "height");
1643
+ customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", U1);
1644
+ var U4 = Object.defineProperty, y2 = (l, e, t, i) => {
1645
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
1646
+ (n = l[r]) && (o = n(e, t, o) || o);
1647
+ return o && U4(e, t, o), o;
1648
1648
  };
1649
- const G5 = "anduin-field:label-click", E1 = "anduin-field:label-click-coordinated", z2 = class z2 extends u {
1649
+ const J5 = "anduin-field:label-click", v1 = "anduin-field:label-click-coordinated", P2 = class P2 extends h {
1650
1650
  constructor() {
1651
1651
  super(...arguments), this.orientation = "vertical";
1652
1652
  }
1653
1653
  connectedCallback() {
1654
- super.connectedCallback(), this.addEventListener(G5, (e) => {
1654
+ super.connectedCallback(), this.addEventListener(J5, (e) => {
1655
1655
  const t = e;
1656
- this.dispatchEvent(new CustomEvent(E1, {
1656
+ this.dispatchEvent(new CustomEvent(v1, {
1657
1657
  detail: t.detail,
1658
1658
  bubbles: !1,
1659
1659
  composed: !1
@@ -1669,17 +1669,17 @@ const G5 = "anduin-field:label-click", E1 = "anduin-field:label-click-coordinate
1669
1669
  `;
1670
1670
  }
1671
1671
  };
1672
- z2.styles = h`
1672
+ P2.styles = g`
1673
1673
  :host { display: block; font-family: var(--font-sans); }
1674
1674
  .field { display: flex; flex-wrap: wrap; }
1675
1675
  .field--vertical { flex-direction: column; row-gap: 4px; }
1676
1676
  .field--horizontal { column-gap: 4px; }
1677
1677
  `;
1678
- let j1 = z2;
1679
- b2([
1680
- n()
1681
- ], j1.prototype, "orientation");
1682
- const F2 = class F2 extends u {
1678
+ let q1 = P2;
1679
+ y2([
1680
+ C()
1681
+ ], q1.prototype, "orientation");
1682
+ const O2 = class O2 extends h {
1683
1683
  constructor() {
1684
1684
  super(...arguments), this.htmlfor = "", this.required = !1;
1685
1685
  }
@@ -1687,7 +1687,7 @@ const F2 = class F2 extends u {
1687
1687
  super.connectedCallback();
1688
1688
  }
1689
1689
  onLabelClick(e) {
1690
- this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(G5, {
1690
+ this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(J5, {
1691
1691
  detail: this.htmlfor,
1692
1692
  bubbles: !0,
1693
1693
  composed: !0
@@ -1706,72 +1706,72 @@ const F2 = class F2 extends u {
1706
1706
  `;
1707
1707
  }
1708
1708
  };
1709
- F2.styles = h`
1709
+ O2.styles = g`
1710
1710
  :host { display: inline-block; font-family: var(--font-sans); }
1711
1711
  .field-label { font-size: 13px; line-height: 20px; font-weight: 600; cursor: default; color: var(--color-gray-8, #101828); }
1712
1712
  .field-label__required { color: var(--color-danger-5); }
1713
1713
  `;
1714
- let Z1 = F2;
1715
- b2([
1716
- n()
1717
- ], Z1.prototype, "htmlfor");
1718
- b2([
1719
- n({ type: Boolean })
1720
- ], Z1.prototype, "required");
1721
- const P2 = class P2 extends u {
1714
+ let w1 = O2;
1715
+ y2([
1716
+ C()
1717
+ ], w1.prototype, "htmlfor");
1718
+ y2([
1719
+ C({ type: Boolean })
1720
+ ], w1.prototype, "required");
1721
+ const D2 = class D2 extends h {
1722
1722
  render() {
1723
1723
  return s`<div class="field-description" part="description"><slot></slot></div>`;
1724
1724
  }
1725
1725
  };
1726
- P2.styles = h`
1726
+ D2.styles = g`
1727
1727
  :host { display: inline-block; font-family: var(--font-sans); }
1728
1728
  .field-description { display: block; line-height: 16px; font-size: 11px; color: var(--color-gray-7); }
1729
1729
  `;
1730
- let o2 = P2;
1731
- const S2 = class S2 extends u {
1730
+ let r2 = D2;
1731
+ const I2 = class I2 extends h {
1732
1732
  render() {
1733
1733
  return s`<div class="field-error" part="error"><slot></slot></div>`;
1734
1734
  }
1735
1735
  };
1736
- S2.styles = h`
1736
+ I2.styles = g`
1737
1737
  :host { display: block; font-family: var(--font-sans); }
1738
1738
  .field-error { color: var(--color-danger-4); }
1739
1739
  `;
1740
- let i2 = S2;
1741
- const O2 = class O2 extends u {
1740
+ let n2 = I2;
1741
+ const T2 = class T2 extends h {
1742
1742
  render() {
1743
1743
  return s`<div class="field-group" part="group"><slot></slot></div>`;
1744
1744
  }
1745
1745
  };
1746
- O2.styles = h`
1746
+ T2.styles = g`
1747
1747
  :host { display: block; font-family: var(--font-sans); }
1748
1748
  .field-group { display: flex; flex-direction: column; row-gap: 24px; }
1749
1749
  `;
1750
- let l2 = O2;
1751
- customElements.get("anduin-field") || customElements.define("anduin-field", j1);
1752
- customElements.get("anduin-field-label") || customElements.define("anduin-field-label", Z1);
1753
- customElements.get("anduin-field-description") || customElements.define("anduin-field-description", o2);
1754
- customElements.get("anduin-field-error") || customElements.define("anduin-field-error", i2);
1755
- customElements.get("anduin-field-group") || customElements.define("anduin-field-group", l2);
1756
- var T4 = Object.defineProperty, A1 = (l, e, t, i) => {
1757
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
1758
- (C = l[r]) && (o = C(e, t, o) || o);
1759
- return o && T4(e, t, o), o;
1750
+ let C2 = T2;
1751
+ customElements.get("anduin-field") || customElements.define("anduin-field", q1);
1752
+ customElements.get("anduin-field-label") || customElements.define("anduin-field-label", w1);
1753
+ customElements.get("anduin-field-description") || customElements.define("anduin-field-description", r2);
1754
+ customElements.get("anduin-field-error") || customElements.define("anduin-field-error", n2);
1755
+ customElements.get("anduin-field-group") || customElements.define("anduin-field-group", C2);
1756
+ var q4 = Object.defineProperty, S1 = (l, e, t, i) => {
1757
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
1758
+ (n = l[r]) && (o = n(e, t, o) || o);
1759
+ return o && q4(e, t, o), o;
1760
1760
  };
1761
- const N4 = "anduin-checkbox:change", D2 = class D2 extends u {
1761
+ const W4 = "anduin-checkbox:change", N2 = class N2 extends h {
1762
1762
  constructor() {
1763
1763
  super(...arguments), this.checked = !1, this.disabled = !1, this.indeterminate = !1, this.readonly = !1, this.inputid = "";
1764
1764
  }
1765
1765
  connectedCallback() {
1766
1766
  super.connectedCallback();
1767
1767
  const e = this.closest("anduin-field");
1768
- e && e.addEventListener(E1, (t) => {
1768
+ e && e.addEventListener(v1, (t) => {
1769
1769
  const i = t;
1770
1770
  this.inputid && this.inputid === i.detail && !this.disabled && !this.readonly && this.toggle();
1771
1771
  });
1772
1772
  }
1773
1773
  toggle() {
1774
- this.checked = !this.checked, this.dispatchEvent(new CustomEvent(N4, {
1774
+ this.checked = !this.checked, this.dispatchEvent(new CustomEvent(W4, {
1775
1775
  detail: this.checked,
1776
1776
  bubbles: !0,
1777
1777
  composed: !0
@@ -1812,7 +1812,7 @@ const N4 = "anduin-checkbox:change", D2 = class D2 extends u {
1812
1812
  `;
1813
1813
  }
1814
1814
  };
1815
- D2.styles = h`
1815
+ N2.styles = g`
1816
1816
  :host { display: inline-flex; font-family: var(--font-sans); }
1817
1817
 
1818
1818
  label {
@@ -1850,36 +1850,36 @@ D2.styles = h`
1850
1850
  .checkbox__icon { position: absolute; inset: 0; pointer-events: none; color: var(--color-gray-4); display: flex; align-items: center; justify-content: center; }
1851
1851
  .checkbox__icon--visible { color: var(--color-gray-0); }
1852
1852
  `;
1853
- let I = D2;
1854
- A1([
1855
- n({ type: Boolean })
1856
- ], I.prototype, "checked");
1857
- A1([
1858
- n({ type: Boolean })
1859
- ], I.prototype, "disabled");
1860
- A1([
1861
- n({ type: Boolean })
1862
- ], I.prototype, "indeterminate");
1863
- A1([
1864
- n({ type: Boolean })
1865
- ], I.prototype, "readonly");
1866
- A1([
1867
- n()
1868
- ], I.prototype, "inputid");
1869
- customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", I);
1870
- var j4 = Object.defineProperty, k = (l, e, t, i) => {
1871
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
1872
- (C = l[r]) && (o = C(e, t, o) || o);
1873
- return o && j4(e, t, o), o;
1853
+ let U = N2;
1854
+ S1([
1855
+ C({ type: Boolean })
1856
+ ], U.prototype, "checked");
1857
+ S1([
1858
+ C({ type: Boolean })
1859
+ ], U.prototype, "disabled");
1860
+ S1([
1861
+ C({ type: Boolean })
1862
+ ], U.prototype, "indeterminate");
1863
+ S1([
1864
+ C({ type: Boolean })
1865
+ ], U.prototype, "readonly");
1866
+ S1([
1867
+ C()
1868
+ ], U.prototype, "inputid");
1869
+ customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", U);
1870
+ var G4 = Object.defineProperty, A = (l, e, t, i) => {
1871
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
1872
+ (n = l[r]) && (o = n(e, t, o) || o);
1873
+ return o && G4(e, t, o), o;
1874
1874
  };
1875
- const y5 = "anduin-input:change", U4 = "anduin-input:clear", I2 = class I2 extends u {
1875
+ const R5 = "anduin-input:change", Y4 = "anduin-input:clear", j2 = class j2 extends h {
1876
1876
  constructor() {
1877
1877
  super(...arguments), this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.status = "", this.startIcon = "", this.endIcon = "", this.clearable = !1;
1878
1878
  }
1879
1879
  connectedCallback() {
1880
1880
  super.connectedCallback();
1881
1881
  const e = this.closest("anduin-field");
1882
- e && e.addEventListener(E1, (t) => {
1882
+ e && e.addEventListener(v1, (t) => {
1883
1883
  var o;
1884
1884
  const i = t;
1885
1885
  this.inputid && this.inputid === i.detail && ((o = this.inputEl) == null || o.focus());
@@ -1889,7 +1889,7 @@ const y5 = "anduin-input:change", U4 = "anduin-input:clear", I2 = class I2 exten
1889
1889
  this.inputEl && this.inputEl.value !== this.value && (this.inputEl.value = this.value);
1890
1890
  }
1891
1891
  onInput() {
1892
- this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(y5, {
1892
+ this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(R5, {
1893
1893
  detail: this.value,
1894
1894
  bubbles: !0,
1895
1895
  composed: !0
@@ -1897,15 +1897,15 @@ const y5 = "anduin-input:change", U4 = "anduin-input:clear", I2 = class I2 exten
1897
1897
  }
1898
1898
  onClear() {
1899
1899
  var e;
1900
- this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(y5, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(U4, { bubbles: !0, composed: !0 })), (e = this.inputEl) == null || e.focus();
1900
+ this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(R5, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(Y4, { bubbles: !0, composed: !0 })), (e = this.inputEl) == null || e.focus();
1901
1901
  }
1902
1902
  render() {
1903
- const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", i = !!this.startIcon, o = !!this.endIcon || this.clearable && !!this.value, r = this.clearable && !!this.value && !this.disabled && !this.readonly, C = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", a = this.size === "small" ? "10" : this.size === "large" ? "16" : "14";
1903
+ const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", i = !!this.startIcon, o = !!this.endIcon || this.clearable && !!this.value, r = this.clearable && !!this.value && !this.disabled && !this.readonly, n = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", a = this.size === "small" ? "10" : this.size === "large" ? "16" : "14";
1904
1904
  return s`
1905
1905
  <div class="input-wrapper">
1906
1906
  ${i ? s`
1907
1907
  <span class="input__start">
1908
- <anduin-icon name=${this.startIcon} size=${C}></anduin-icon>
1908
+ <anduin-icon name=${this.startIcon} size=${n}></anduin-icon>
1909
1909
  </span>
1910
1910
  ` : c}
1911
1911
 
@@ -1933,7 +1933,7 @@ const y5 = "anduin-input:change", U4 = "anduin-input:clear", I2 = class I2 exten
1933
1933
  </button>
1934
1934
  ` : c}
1935
1935
  ${this.endIcon ? s`
1936
- <anduin-icon name=${this.endIcon} size=${C}></anduin-icon>
1936
+ <anduin-icon name=${this.endIcon} size=${n}></anduin-icon>
1937
1937
  ` : c}
1938
1938
  </span>
1939
1939
  ` : c}
@@ -1941,7 +1941,7 @@ const y5 = "anduin-input:change", U4 = "anduin-input:clear", I2 = class I2 exten
1941
1941
  `;
1942
1942
  }
1943
1943
  };
1944
- I2.styles = h`
1944
+ j2.styles = g`
1945
1945
  :host { display: block; font-family: var(--font-sans); }
1946
1946
 
1947
1947
  .input-wrapper { position: relative; display: flex; align-items: center; }
@@ -1995,54 +1995,54 @@ I2.styles = h`
1995
1995
  }
1996
1996
  .input__clear:hover { color: var(--color-gray-7); }
1997
1997
  `;
1998
- let Z = I2;
1999
- k([
2000
- n()
2001
- ], Z.prototype, "value");
2002
- k([
2003
- n()
2004
- ], Z.prototype, "size");
2005
- k([
2006
- n({ type: Boolean })
2007
- ], Z.prototype, "disabled");
2008
- k([
2009
- n({ type: Boolean })
2010
- ], Z.prototype, "readonly");
2011
- k([
2012
- n()
2013
- ], Z.prototype, "placeholder");
2014
- k([
2015
- n()
2016
- ], Z.prototype, "inputid");
2017
- k([
2018
- n()
2019
- ], Z.prototype, "status");
2020
- k([
2021
- n({ attribute: "start-icon" })
2022
- ], Z.prototype, "startIcon");
2023
- k([
2024
- n({ attribute: "end-icon" })
2025
- ], Z.prototype, "endIcon");
2026
- k([
2027
- n({ type: Boolean })
2028
- ], Z.prototype, "clearable");
2029
- k([
2030
- w("input")
2031
- ], Z.prototype, "inputEl");
2032
- customElements.get("anduin-input") || customElements.define("anduin-input", Z);
2033
- var q4 = Object.defineProperty, N = (l, e, t, i) => {
2034
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
2035
- (C = l[r]) && (o = C(e, t, o) || o);
2036
- return o && q4(e, t, o), o;
1998
+ let w = j2;
1999
+ A([
2000
+ C()
2001
+ ], w.prototype, "value");
2002
+ A([
2003
+ C()
2004
+ ], w.prototype, "size");
2005
+ A([
2006
+ C({ type: Boolean })
2007
+ ], w.prototype, "disabled");
2008
+ A([
2009
+ C({ type: Boolean })
2010
+ ], w.prototype, "readonly");
2011
+ A([
2012
+ C()
2013
+ ], w.prototype, "placeholder");
2014
+ A([
2015
+ C()
2016
+ ], w.prototype, "inputid");
2017
+ A([
2018
+ C()
2019
+ ], w.prototype, "status");
2020
+ A([
2021
+ C({ attribute: "start-icon" })
2022
+ ], w.prototype, "startIcon");
2023
+ A([
2024
+ C({ attribute: "end-icon" })
2025
+ ], w.prototype, "endIcon");
2026
+ A([
2027
+ C({ type: Boolean })
2028
+ ], w.prototype, "clearable");
2029
+ A([
2030
+ R("input")
2031
+ ], w.prototype, "inputEl");
2032
+ customElements.get("anduin-input") || customElements.define("anduin-input", w);
2033
+ var X4 = Object.defineProperty, W = (l, e, t, i) => {
2034
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
2035
+ (n = l[r]) && (o = n(e, t, o) || o);
2036
+ return o && X4(e, t, o), o;
2037
2037
  };
2038
- const W4 = "anduin-textarea:change", T2 = class T2 extends u {
2038
+ const K4 = "anduin-textarea:change", U2 = class U2 extends h {
2039
2039
  constructor() {
2040
2040
  super(...arguments), this.value = "", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.rows = 3, this.status = "";
2041
2041
  }
2042
2042
  connectedCallback() {
2043
2043
  super.connectedCallback();
2044
2044
  const e = this.closest("anduin-field");
2045
- e && e.addEventListener(E1, (t) => {
2045
+ e && e.addEventListener(v1, (t) => {
2046
2046
  var o;
2047
2047
  const i = t;
2048
2048
  this.inputid && this.inputid === i.detail && ((o = this.textareaEl) == null || o.focus());
@@ -2052,7 +2052,7 @@ const W4 = "anduin-textarea:change", T2 = class T2 extends u {
2052
2052
  this.textareaEl && this.textareaEl.value !== this.value && (this.textareaEl.value = this.value);
2053
2053
  }
2054
2054
  onInput() {
2055
- this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(W4, {
2055
+ this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(K4, {
2056
2056
  detail: this.value,
2057
2057
  bubbles: !0,
2058
2058
  composed: !0
@@ -2077,7 +2077,7 @@ const W4 = "anduin-textarea:change", T2 = class T2 extends u {
2077
2077
  `;
2078
2078
  }
2079
2079
  };
2080
- T2.styles = h`
2080
+ U2.styles = g`
2081
2081
  :host { display: block; font-family: var(--font-sans); }
2082
2082
 
2083
2083
  .textarea {
@@ -2094,46 +2094,46 @@ T2.styles = h`
2094
2094
  .textarea--warning { border-color: var(--color-warning-4); }
2095
2095
  .textarea--loading { border-color: var(--color-gray-4); }
2096
2096
  `;
2097
- let x = T2;
2098
- N([
2099
- n()
2100
- ], x.prototype, "value");
2101
- N([
2102
- n({ type: Boolean })
2103
- ], x.prototype, "disabled");
2104
- N([
2105
- n({ type: Boolean })
2106
- ], x.prototype, "readonly");
2107
- N([
2108
- n()
2109
- ], x.prototype, "placeholder");
2110
- N([
2111
- n()
2112
- ], x.prototype, "inputid");
2113
- N([
2114
- n({ type: Number })
2115
- ], x.prototype, "rows");
2116
- N([
2117
- n()
2118
- ], x.prototype, "status");
2119
- N([
2120
- w("textarea")
2121
- ], x.prototype, "textareaEl");
2122
- customElements.get("anduin-textarea") || customElements.define("anduin-textarea", x);
2123
- var G4 = Object.defineProperty, _ = (l, e, t, i) => {
2124
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
2125
- (C = l[r]) && (o = C(e, t, o) || o);
2126
- return o && G4(e, t, o), o;
2097
+ let $ = U2;
2098
+ W([
2099
+ C()
2100
+ ], $.prototype, "value");
2101
+ W([
2102
+ C({ type: Boolean })
2103
+ ], $.prototype, "disabled");
2104
+ W([
2105
+ C({ type: Boolean })
2106
+ ], $.prototype, "readonly");
2107
+ W([
2108
+ C()
2109
+ ], $.prototype, "placeholder");
2110
+ W([
2111
+ C()
2112
+ ], $.prototype, "inputid");
2113
+ W([
2114
+ C({ type: Number })
2115
+ ], $.prototype, "rows");
2116
+ W([
2117
+ C()
2118
+ ], $.prototype, "status");
2119
+ W([
2120
+ R("textarea")
2121
+ ], $.prototype, "textareaEl");
2122
+ customElements.get("anduin-textarea") || customElements.define("anduin-textarea", $);
2123
+ var J4 = Object.defineProperty, k = (l, e, t, i) => {
2124
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
2125
+ (n = l[r]) && (o = n(e, t, o) || o);
2126
+ return o && J4(e, t, o), o;
2127
2127
  };
2128
- const Y5 = "anduin-tab:trigger-click", W1 = "anduin-tab:value-changed", Y4 = "anduin-tab:change", N2 = class N2 extends u {
2128
+ const Q5 = "anduin-tab:trigger-click", Y1 = "anduin-tab:value-changed", Q4 = "anduin-tab:change", q2 = class q2 extends h {
2129
2129
  constructor() {
2130
2130
  super(...arguments), this.defaultValue = "", this.value = "", this.fill = !1;
2131
2131
  }
2132
2132
  connectedCallback() {
2133
- super.connectedCallback(), this.addEventListener(Y5, (e) => {
2133
+ super.connectedCallback(), this.addEventListener(Q5, (e) => {
2134
2134
  e.stopPropagation();
2135
2135
  const t = e;
2136
- this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(Y4, { detail: t.detail, bubbles: !0, composed: !0 }));
2136
+ this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(Q4, { detail: t.detail, bubbles: !0, composed: !0 }));
2137
2137
  }), requestAnimationFrame(() => {
2138
2138
  const e = this.value || this.defaultValue;
2139
2139
  e && (this.value || (this.value = e), this.broadcastValueChanged(e));
@@ -2143,36 +2143,36 @@ const Y5 = "anduin-tab:trigger-click", W1 = "anduin-tab:value-changed", Y4 = "an
2143
2143
  e.has("value") && this.value && this.broadcastValueChanged(this.value);
2144
2144
  }
2145
2145
  broadcastValueChanged(e) {
2146
- this.dispatchEvent(new CustomEvent(W1, { detail: e, bubbles: !1, composed: !1 }));
2146
+ this.dispatchEvent(new CustomEvent(Y1, { detail: e, bubbles: !1, composed: !1 }));
2147
2147
  }
2148
2148
  render() {
2149
2149
  return s`<div class="tabs" part="tabs"><slot></slot></div>`;
2150
2150
  }
2151
2151
  };
2152
- N2.styles = h`
2152
+ q2.styles = g`
2153
2153
  :host { display: flex; flex-direction: column; font-family: var(--font-sans); }
2154
2154
  :host([fill]) { flex: 1; min-height: 0; --_tab-fill-flex: 1; --_tab-fill-height: 100%; }
2155
2155
  .tabs { display: flex; flex-direction: column; width: 100%; }
2156
2156
  :host([fill]) .tabs { flex: 1; min-height: 0; }
2157
2157
  `;
2158
- let n1 = N2;
2159
- _([
2160
- n({ attribute: "default-value" })
2161
- ], n1.prototype, "defaultValue");
2162
- _([
2163
- n()
2164
- ], n1.prototype, "value");
2165
- _([
2166
- n({ type: Boolean, reflect: !0 })
2167
- ], n1.prototype, "fill");
2168
- const j2 = class j2 extends u {
2158
+ let d1 = q2;
2159
+ k([
2160
+ C({ attribute: "default-value" })
2161
+ ], d1.prototype, "defaultValue");
2162
+ k([
2163
+ C()
2164
+ ], d1.prototype, "value");
2165
+ k([
2166
+ C({ type: Boolean, reflect: !0 })
2167
+ ], d1.prototype, "fill");
2168
+ const W2 = class W2 extends h {
2169
2169
  constructor() {
2170
2170
  super(...arguments), this.alignment = "left", this.lastActiveValue = "", this.resizeObserver = null;
2171
2171
  }
2172
2172
  connectedCallback() {
2173
2173
  super.connectedCallback();
2174
2174
  const e = this.closest("anduin-tabs");
2175
- e && e.addEventListener(W1, (t) => {
2175
+ e && e.addEventListener(Y1, (t) => {
2176
2176
  const i = t;
2177
2177
  this.lastActiveValue = i.detail, requestAnimationFrame(() => {
2178
2178
  this.animateIndicator(i.detail);
@@ -2193,7 +2193,7 @@ const j2 = class j2 extends u {
2193
2193
  for (let i = 0; i < t.length; i++) {
2194
2194
  const o = t[i];
2195
2195
  if (o.getAttribute("value") === e) {
2196
- const r = o.getBoundingClientRect(), C = this.getBoundingClientRect(), a = r.left - C.left + this.scrollLeft;
2196
+ const r = o.getBoundingClientRect(), n = this.getBoundingClientRect(), a = r.left - n.left + this.scrollLeft;
2197
2197
  this.indicator && (this.indicator.style.width = `${r.width}px`, this.indicator.style.transform = `translateX(${a}px)`);
2198
2198
  break;
2199
2199
  }
@@ -2208,7 +2208,7 @@ const j2 = class j2 extends u {
2208
2208
  `;
2209
2209
  }
2210
2210
  };
2211
- j2.styles = h`
2211
+ W2.styles = g`
2212
2212
  :host { display: block; font-family: var(--font-sans); }
2213
2213
  .tabs-list {
2214
2214
  display: flex; background-color: var(--color-gray-0);
@@ -2223,27 +2223,27 @@ j2.styles = h`
2223
2223
  left: 0; height: 2px; transition-duration: 200ms; transition-property: transform, width;
2224
2224
  }
2225
2225
  `;
2226
- let y1 = j2;
2227
- _([
2228
- n()
2229
- ], y1.prototype, "alignment");
2230
- _([
2231
- w(".tabs-list__indicator")
2232
- ], y1.prototype, "indicator");
2233
- const U2 = class U2 extends u {
2226
+ let R1 = W2;
2227
+ k([
2228
+ C()
2229
+ ], R1.prototype, "alignment");
2230
+ k([
2231
+ R(".tabs-list__indicator")
2232
+ ], R1.prototype, "indicator");
2233
+ const G2 = class G2 extends h {
2234
2234
  constructor() {
2235
2235
  super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.showBadge = !1, this.badgeCount = "", this.isActive = !1;
2236
2236
  }
2237
2237
  connectedCallback() {
2238
2238
  super.connectedCallback();
2239
2239
  const e = this.closest("anduin-tabs");
2240
- e && e.addEventListener(W1, (t) => {
2240
+ e && e.addEventListener(Y1, (t) => {
2241
2241
  const i = t;
2242
2242
  this.isActive = i.detail === this.value;
2243
2243
  });
2244
2244
  }
2245
2245
  onClick() {
2246
- this.dispatchEvent(new CustomEvent(Y5, { detail: this.value, bubbles: !0, composed: !0 }));
2246
+ this.dispatchEvent(new CustomEvent(Q5, { detail: this.value, bubbles: !0, composed: !0 }));
2247
2247
  }
2248
2248
  render() {
2249
2249
  return s`
@@ -2264,7 +2264,7 @@ const U2 = class U2 extends u {
2264
2264
  `;
2265
2265
  }
2266
2266
  };
2267
- U2.styles = h`
2267
+ G2.styles = g`
2268
2268
  :host { display: inline-block; font-family: var(--font-sans); }
2269
2269
  .tab-trigger {
2270
2270
  cursor: pointer; background: none; border: none; display: block;
@@ -2287,33 +2287,33 @@ U2.styles = h`
2287
2287
  color: var(--color-gray-7); white-space: nowrap;
2288
2288
  }
2289
2289
  `;
2290
- let z = U2;
2291
- _([
2292
- n()
2293
- ], z.prototype, "value");
2294
- _([
2295
- n({ attribute: "start-icon" })
2296
- ], z.prototype, "startIcon");
2297
- _([
2298
- n({ type: Boolean })
2299
- ], z.prototype, "disabled");
2300
- _([
2301
- n({ type: Boolean, attribute: "show-badge" })
2302
- ], z.prototype, "showBadge");
2303
- _([
2304
- n({ attribute: "badge-count" })
2305
- ], z.prototype, "badgeCount");
2306
- _([
2307
- y()
2308
- ], z.prototype, "isActive");
2309
- const q2 = class q2 extends u {
2290
+ let P = G2;
2291
+ k([
2292
+ C()
2293
+ ], P.prototype, "value");
2294
+ k([
2295
+ C({ attribute: "start-icon" })
2296
+ ], P.prototype, "startIcon");
2297
+ k([
2298
+ C({ type: Boolean })
2299
+ ], P.prototype, "disabled");
2300
+ k([
2301
+ C({ type: Boolean, attribute: "show-badge" })
2302
+ ], P.prototype, "showBadge");
2303
+ k([
2304
+ C({ attribute: "badge-count" })
2305
+ ], P.prototype, "badgeCount");
2306
+ k([
2307
+ M()
2308
+ ], P.prototype, "isActive");
2309
+ const Y2 = class Y2 extends h {
2310
2310
  constructor() {
2311
2311
  super(...arguments), this.value = "", this.isActive = !1;
2312
2312
  }
2313
2313
  connectedCallback() {
2314
2314
  super.connectedCallback();
2315
2315
  const e = this.closest("anduin-tabs");
2316
- e && e.addEventListener(W1, (t) => {
2316
+ e && e.addEventListener(Y1, (t) => {
2317
2317
  const i = t;
2318
2318
  this.isActive = i.detail === this.value;
2319
2319
  });
@@ -2329,28 +2329,28 @@ const q2 = class q2 extends u {
2329
2329
  `;
2330
2330
  }
2331
2331
  };
2332
- q2.styles = h`
2332
+ Y2.styles = g`
2333
2333
  :host { display: block; font-family: var(--font-sans); flex: var(--_tab-fill-flex, 0 0 auto); min-height: 0; }
2334
2334
  :host(:not([active])) { display: none; }
2335
2335
  .tab-content { width: 100%; height: var(--_tab-fill-height, auto); overflow-x: hidden; overflow-y: auto; }
2336
2336
  `;
2337
- let _1 = q2;
2338
- _([
2339
- n()
2340
- ], _1.prototype, "value");
2341
- _([
2342
- y()
2343
- ], _1.prototype, "isActive");
2344
- customElements.get("anduin-tabs") || customElements.define("anduin-tabs", n1);
2345
- customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", y1);
2346
- customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", z);
2347
- customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", _1);
2348
- var X4 = Object.defineProperty, m2 = (l, e, t, i) => {
2349
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
2350
- (C = l[r]) && (o = C(e, t, o) || o);
2351
- return o && X4(e, t, o), o;
2337
+ let k1 = Y2;
2338
+ k([
2339
+ C()
2340
+ ], k1.prototype, "value");
2341
+ k([
2342
+ M()
2343
+ ], k1.prototype, "isActive");
2344
+ customElements.get("anduin-tabs") || customElements.define("anduin-tabs", d1);
2345
+ customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", R1);
2346
+ customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", P);
2347
+ customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", k1);
2348
+ var e3 = Object.defineProperty, Z2 = (l, e, t, i) => {
2349
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
2350
+ (n = l[r]) && (o = n(e, t, o) || o);
2351
+ return o && e3(e, t, o), o;
2352
2352
  };
2353
- const K4 = "anduin-tag-close:click", J4 = {
2353
+ const t3 = "anduin-tag-close:click", o3 = {
2354
2354
  gray: "tag--light-gray",
2355
2355
  primary: "tag--light-primary",
2356
2356
  success: "tag--light-success",
@@ -2375,7 +2375,7 @@ const K4 = "anduin-tag-close:click", J4 = {
2375
2375
  customYellow: "tag--custom-yellow",
2376
2376
  customYellowGreen: "tag--custom-yellow-green",
2377
2377
  customYellowOrange: "tag--custom-yellow-orange"
2378
- }, Q4 = {
2378
+ }, i3 = {
2379
2379
  gray: "tag__icon--light-gray",
2380
2380
  primary: "tag__icon--light-primary",
2381
2381
  success: "tag__icon--light-success",
@@ -2400,12 +2400,12 @@ const K4 = "anduin-tag-close:click", J4 = {
2400
2400
  customMagenta: "tag__icon--custom-magenta",
2401
2401
  customBlueGreen: "tag__icon--custom-blue-green",
2402
2402
  customPink: "tag__icon--custom-pink"
2403
- }, W2 = class W2 extends u {
2403
+ }, X2 = class X2 extends h {
2404
2404
  constructor() {
2405
2405
  super(...arguments), this.variant = "gray", this.icon = "", this.disabled = !1;
2406
2406
  }
2407
2407
  render() {
2408
- const e = J4[this.variant] || "tag--light-gray", t = Q4[this.variant] || "tag__icon--light-gray";
2408
+ const e = o3[this.variant] || "tag--light-gray", t = i3[this.variant] || "tag__icon--light-gray";
2409
2409
  return s`
2410
2410
  <div class="tag ${e} ${this.disabled ? "tag--disabled" : ""}" part="tag">
2411
2411
  ${this.icon ? s`<anduin-icon name="${this.icon}" size="12" class="tag__icon ${t}"></anduin-icon>` : c}
@@ -2415,7 +2415,7 @@ const K4 = "anduin-tag-close:click", J4 = {
2415
2415
  `;
2416
2416
  }
2417
2417
  };
2418
- W2.styles = h`
2418
+ X2.styles = g`
2419
2419
  :host { display: inline-flex; max-width: 100%; font-family: var(--font-sans); }
2420
2420
  .tag {
2421
2421
  font-weight: 500; font-size: 11px; height: 20px; padding-left: 6px; padding-right: 6px;
@@ -2463,19 +2463,19 @@ W2.styles = h`
2463
2463
  .tag--custom-yellow-green { color: var(--color-gray-9); background-color: rgb(174,207,85); }
2464
2464
  .tag--custom-yellow-orange { color: var(--color-gray-9); background-color: rgb(255,193,107); }
2465
2465
  `;
2466
- let a1 = W2;
2467
- m2([
2468
- n()
2469
- ], a1.prototype, "variant");
2470
- m2([
2471
- n()
2472
- ], a1.prototype, "icon");
2473
- m2([
2474
- n({ type: Boolean })
2475
- ], a1.prototype, "disabled");
2476
- const G2 = class G2 extends u {
2466
+ let c1 = X2;
2467
+ Z2([
2468
+ C()
2469
+ ], c1.prototype, "variant");
2470
+ Z2([
2471
+ C()
2472
+ ], c1.prototype, "icon");
2473
+ Z2([
2474
+ C({ type: Boolean })
2475
+ ], c1.prototype, "disabled");
2476
+ const K2 = class K2 extends h {
2477
2477
  onClick() {
2478
- this.dispatchEvent(new CustomEvent(K4, { bubbles: !0, composed: !0 }));
2478
+ this.dispatchEvent(new CustomEvent(t3, { bubbles: !0, composed: !0 }));
2479
2479
  }
2480
2480
  render() {
2481
2481
  return s`
@@ -2485,7 +2485,7 @@ const G2 = class G2 extends u {
2485
2485
  `;
2486
2486
  }
2487
2487
  };
2488
- G2.styles = h`
2488
+ K2.styles = g`
2489
2489
  :host { display: inline-block; font-family: var(--font-sans); }
2490
2490
  .tag-close__button {
2491
2491
  flex: none; width: 16px; height: 16px; display: flex; align-items: center;
@@ -2495,15 +2495,15 @@ G2.styles = h`
2495
2495
  .tag-close__button:hover { opacity: 0.7; }
2496
2496
  .tag-close__button:active { opacity: 0.5; }
2497
2497
  `;
2498
- let r2 = G2;
2499
- customElements.get("anduin-tag") || customElements.define("anduin-tag", a1);
2500
- customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", r2);
2501
- var e3 = Object.defineProperty, X5 = (l, e, t, i) => {
2502
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
2503
- (C = l[r]) && (o = C(e, t, o) || o);
2504
- return o && e3(e, t, o), o;
2498
+ let a2 = K2;
2499
+ customElements.get("anduin-tag") || customElements.define("anduin-tag", c1);
2500
+ customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", a2);
2501
+ var l3 = Object.defineProperty, e4 = (l, e, t, i) => {
2502
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
2503
+ (n = l[r]) && (o = n(e, t, o) || o);
2504
+ return o && l3(e, t, o), o;
2505
2505
  };
2506
- const K5 = "anduin-tooltip:show", M2 = "anduin-tooltip:hide", J5 = "anduin-tooltip:trigger-mounted", Q5 = "anduin-tooltip:content-popup-mounted", e4 = "anduin-tooltip:content-popup-unmounted", t4 = "anduin-tooltip:visibility-changed", t3 = [
2506
+ const t4 = "anduin-tooltip:show", _2 = "anduin-tooltip:hide", o4 = "anduin-tooltip:trigger-mounted", i4 = "anduin-tooltip:content-popup-mounted", l4 = "anduin-tooltip:content-popup-unmounted", r4 = "anduin-tooltip:visibility-changed", r3 = [
2507
2507
  "top-start",
2508
2508
  "top-center",
2509
2509
  "top-end",
@@ -2517,7 +2517,7 @@ const K5 = "anduin-tooltip:show", M2 = "anduin-tooltip:hide", J5 = "anduin-toolt
2517
2517
  "left-center",
2518
2518
  "left-end"
2519
2519
  ];
2520
- function _5(l, e, t, i, o) {
2520
+ function k5(l, e, t, i, o) {
2521
2521
  switch (i) {
2522
2522
  case "top-start":
2523
2523
  return { left: l.left, top: l.top - t - o };
@@ -2547,64 +2547,64 @@ function _5(l, e, t, i, o) {
2547
2547
  return { left: 0, top: 0 };
2548
2548
  }
2549
2549
  }
2550
- function x5(l, e) {
2550
+ function $5(l, e) {
2551
2551
  return e.right >= l.left && e.left <= l.right && e.top <= l.bottom && e.bottom >= l.top;
2552
2552
  }
2553
- function R5(l, e) {
2553
+ function E5(l, e) {
2554
2554
  const t = Math.max(l.left, e.left), i = Math.max(l.top, e.top), o = Math.min(l.right, e.right), r = Math.min(l.bottom, e.bottom);
2555
2555
  return o < t || r < i ? 0 : (o - t) * (r - i);
2556
2556
  }
2557
- function o3(l, e, t, i = 8) {
2558
- const o = window.innerWidth, r = window.innerHeight, C = { left: 0, top: 0, right: o, bottom: r }, a = e.width, d = e.height;
2559
- if (!x5(
2557
+ function n3(l, e, t, i = 8) {
2558
+ const o = window.innerWidth, r = window.innerHeight, n = { left: 0, top: 0, right: o, bottom: r }, a = e.width, d = e.height;
2559
+ if (!$5(
2560
2560
  { left: l.left, top: l.top, right: l.right, bottom: l.bottom },
2561
- C
2561
+ n
2562
2562
  )) return null;
2563
- const p = _5(l, a, d, t, i), g = t3.map((f) => ({ p: f, off: _5(l, a, d, f, i) })).filter(({ off: f }) => x5({ left: f.left, top: f.top, right: f.left + a, bottom: f.top + d }, C));
2564
- if (g.length === 0)
2563
+ const p = k5(l, a, d, t, i), u = r3.map((f) => ({ p: f, off: k5(l, a, d, f, i) })).filter(({ off: f }) => $5({ left: f.left, top: f.top, right: f.left + a, bottom: f.top + d }, n));
2564
+ if (u.length === 0)
2565
2565
  return {
2566
2566
  placement: t,
2567
2567
  left: Math.round(Math.min(Math.max(p.left, 0), o - a)),
2568
2568
  top: Math.round(Math.min(Math.max(p.top, 0), r - d))
2569
2569
  };
2570
- g.sort((f, M) => {
2571
- const l1 = { left: f.off.left, top: f.off.top, right: f.off.left + a, bottom: f.off.top + d }, $ = { left: M.off.left, top: M.off.top, right: M.off.left + a, bottom: M.off.top + d }, q = R5(l1, C), B1 = R5($, C);
2572
- if (B1 !== q) return B1 - q;
2573
- const z1 = Math.abs(f.off.left - p.left) + Math.abs(f.off.top - p.top), F1 = Math.abs(M.off.left - p.left) + Math.abs(M.off.top - p.top);
2574
- return z1 - F1;
2570
+ u.sort((f, Z) => {
2571
+ const I = { left: f.off.left, top: f.off.top, right: f.off.left + a, bottom: f.off.top + d }, x = { left: Z.off.left, top: Z.off.top, right: Z.off.left + a, bottom: Z.off.top + d }, S = E5(I, n), X = E5(x, n);
2572
+ if (X !== S) return X - S;
2573
+ const F1 = Math.abs(f.off.left - p.left) + Math.abs(f.off.top - p.top), P1 = Math.abs(Z.off.left - p.left) + Math.abs(Z.off.top - p.top);
2574
+ return F1 - P1;
2575
2575
  });
2576
- const { p: v, off: H } = g[0];
2576
+ const { p: v, off: H } = u[0];
2577
2577
  return {
2578
2578
  placement: v,
2579
2579
  left: Math.round(Math.min(Math.max(H.left, 0), o - a)),
2580
2580
  top: Math.round(Math.min(Math.max(H.top, 0), r - d))
2581
2581
  };
2582
2582
  }
2583
- function C2(l) {
2583
+ function s2(l) {
2584
2584
  return l.split("-")[0] || "top";
2585
2585
  }
2586
- function i3(l, e, t) {
2586
+ function C3(l, e, t) {
2587
2587
  let i = !1, o = t.length - 1;
2588
2588
  for (let r = 0; r < t.length; r++) {
2589
- const C = t[r][0], a = t[r][1], d = t[o][0], p = t[o][1];
2590
- a > e != p > e && l < (d - C) * (e - a) / (p - a) + C && (i = !i), o = r;
2589
+ const n = t[r][0], a = t[r][1], d = t[o][0], p = t[o][1];
2590
+ a > e != p > e && l < (d - n) * (e - a) / (p - a) + n && (i = !i), o = r;
2591
2591
  }
2592
2592
  return i;
2593
2593
  }
2594
- const Y2 = class Y2 extends u {
2594
+ const J2 = class J2 extends h {
2595
2595
  constructor() {
2596
2596
  super(...arguments), this.disabled = !1, this.placement = "top-center", this.triggerElement = null, this.contentPopupElement = null, this.containingBlockLeft = 0, this.containingBlockTop = 0, this.rafId = 0, this.prevTriggerTop = NaN, this.prevTriggerLeft = NaN, this.isVisible = !1;
2597
2597
  }
2598
2598
  connectedCallback() {
2599
- super.connectedCallback(), this.addEventListener(J5, (e) => {
2599
+ super.connectedCallback(), this.addEventListener(o4, (e) => {
2600
2600
  e.stopPropagation(), this.triggerElement = e.detail, this.maybeStartPositionLoop();
2601
- }), this.addEventListener(Q5, (e) => {
2601
+ }), this.addEventListener(i4, (e) => {
2602
2602
  e.stopPropagation(), this.contentPopupElement = e.detail, this.computeContainingBlockOffset(this.contentPopupElement), this.maybeStartPositionLoop();
2603
- }), this.addEventListener(e4, (e) => {
2603
+ }), this.addEventListener(l4, (e) => {
2604
2604
  e.stopPropagation(), this.stopPositionLoop(), this.contentPopupElement = null;
2605
- }), this.addEventListener(K5, (e) => {
2605
+ }), this.addEventListener(t4, (e) => {
2606
2606
  e.stopPropagation(), !this.disabled && (this.isVisible = !0, this.broadcastVisibilityChanged(`show:${this.placement}`));
2607
- }), this.addEventListener(M2, (e) => {
2607
+ }), this.addEventListener(_2, (e) => {
2608
2608
  e.stopPropagation(), this.isVisible = !1, this.stopPositionLoop(), this.broadcastVisibilityChanged("hide");
2609
2609
  });
2610
2610
  }
@@ -2635,61 +2635,61 @@ const Y2 = class Y2 extends u {
2635
2635
  this.containingBlockLeft = o.left, this.containingBlockTop = o.top, t.style.transform = i;
2636
2636
  }
2637
2637
  positionPopup(e, t, i) {
2638
- const o = t.getBoundingClientRect(), r = e.getBoundingClientRect(), C = o3(o, r, i, 8);
2639
- if (C) {
2638
+ const o = t.getBoundingClientRect(), r = e.getBoundingClientRect(), n = n3(o, r, i, 8);
2639
+ if (n) {
2640
2640
  const a = e;
2641
- a.style.transform = `translate(${C.left - this.containingBlockLeft}px, ${C.top - this.containingBlockTop}px)`;
2642
- const d = C2(C.placement), p = C2(i);
2641
+ a.style.transform = `translate(${n.left - this.containingBlockLeft}px, ${n.top - this.containingBlockTop}px)`;
2642
+ const d = s2(n.placement), p = s2(i);
2643
2643
  if (d !== p) {
2644
- const g = e.querySelector(".tooltip-arrow");
2645
- g && (g.classList.remove(`tooltip-arrow--${p}`), g.classList.add(`tooltip-arrow--${d}`));
2644
+ const u = e.querySelector(".tooltip-arrow");
2645
+ u && (u.classList.remove(`tooltip-arrow--${p}`), u.classList.add(`tooltip-arrow--${d}`));
2646
2646
  }
2647
2647
  }
2648
2648
  }
2649
2649
  broadcastVisibilityChanged(e) {
2650
- this.dispatchEvent(new CustomEvent(t4, { detail: e, bubbles: !1, composed: !1 }));
2650
+ this.dispatchEvent(new CustomEvent(r4, { detail: e, bubbles: !1, composed: !1 }));
2651
2651
  }
2652
2652
  render() {
2653
2653
  return s`<div class="tooltip-root" part="tooltip"><slot></slot></div>`;
2654
2654
  }
2655
2655
  };
2656
- Y2.styles = h`
2656
+ J2.styles = g`
2657
2657
  :host { display: inline-block; position: relative; max-width: 100%; font-family: var(--font-sans); }
2658
2658
  .tooltip-root { display: inline-block; position: relative; max-width: 100%; }
2659
2659
  `;
2660
- let x1 = Y2;
2661
- X5([
2662
- n({ type: Boolean })
2663
- ], x1.prototype, "disabled");
2664
- X5([
2665
- n()
2666
- ], x1.prototype, "placement");
2667
- const X2 = class X2 extends u {
2660
+ let $1 = J2;
2661
+ e4([
2662
+ C({ type: Boolean })
2663
+ ], $1.prototype, "disabled");
2664
+ e4([
2665
+ C()
2666
+ ], $1.prototype, "placement");
2667
+ const Q2 = class Q2 extends h {
2668
2668
  firstUpdated() {
2669
2669
  requestAnimationFrame(() => {
2670
- this.dispatchEvent(new CustomEvent(J5, { detail: this, bubbles: !0, composed: !0 }));
2670
+ this.dispatchEvent(new CustomEvent(o4, { detail: this, bubbles: !0, composed: !0 }));
2671
2671
  }), this.addEventListener("pointerenter", () => {
2672
- this.dispatchEvent(new CustomEvent(K5, { bubbles: !0, composed: !0 }));
2672
+ this.dispatchEvent(new CustomEvent(t4, { bubbles: !0, composed: !0 }));
2673
2673
  }), this.addEventListener("click", () => {
2674
- this.dispatchEvent(new CustomEvent(M2, { bubbles: !0, composed: !0 }));
2674
+ this.dispatchEvent(new CustomEvent(_2, { bubbles: !0, composed: !0 }));
2675
2675
  });
2676
2676
  }
2677
2677
  render() {
2678
2678
  return s`<span class="tooltip-trigger" part="tooltip-trigger"><slot></slot></span>`;
2679
2679
  }
2680
2680
  };
2681
- X2.styles = h`
2681
+ Q2.styles = g`
2682
2682
  :host { display: inline-block; max-width: 100%; font-family: var(--font-sans); }
2683
2683
  .tooltip-trigger { display: flex; align-items: center; max-width: 100%; }
2684
2684
  `;
2685
- let n2 = X2;
2686
- const K2 = class K2 extends u {
2685
+ let d2 = Q2;
2686
+ const e5 = class e5 extends h {
2687
2687
  constructor() {
2688
2688
  super(...arguments), this.graceArea = null, this.triggerEl = null, this.popupEl = null, this.handlePointerMove = (e) => {
2689
- var r, C;
2689
+ var r, n;
2690
2690
  if (!this.graceArea) return;
2691
- const t = e.target, i = ((r = this.triggerEl) == null ? void 0 : r.contains(t)) ?? !1, o = ((C = this.popupEl) == null ? void 0 : C.contains(t)) ?? !1;
2692
- i || o ? this.graceArea = null : i3(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(M2, { bubbles: !0, composed: !0 })));
2691
+ const t = e.target, i = ((r = this.triggerEl) == null ? void 0 : r.contains(t)) ?? !1, o = ((n = this.popupEl) == null ? void 0 : n.contains(t)) ?? !1;
2692
+ i || o ? this.graceArea = null : C3(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(_2, { bubbles: !0, composed: !0 })));
2693
2693
  }, this.handleTriggerLeave = (e) => {
2694
2694
  this.triggerEl && this.popupEl && this.createGraceArea(this.triggerEl, this.popupEl, e);
2695
2695
  }, this.handleContentLeave = (e) => {
@@ -2699,7 +2699,7 @@ const K2 = class K2 extends u {
2699
2699
  connectedCallback() {
2700
2700
  super.connectedCallback();
2701
2701
  const e = this.closest("anduin-tooltip");
2702
- e && e.addEventListener(t4, (t) => {
2702
+ e && e.addEventListener(r4, (t) => {
2703
2703
  const i = t.detail;
2704
2704
  i.startsWith("show:") ? this.showPopup(i.slice(5)) : this.hidePopup();
2705
2705
  });
@@ -2708,9 +2708,9 @@ const K2 = class K2 extends u {
2708
2708
  super.disconnectedCallback(), this.hidePopup();
2709
2709
  }
2710
2710
  createGraceArea(e, t, i) {
2711
- const o = t.getBoundingClientRect(), r = i.clientX, C = i.clientY;
2711
+ const o = t.getBoundingClientRect(), r = i.clientX, n = i.clientY;
2712
2712
  this.graceArea = [
2713
- [r, C],
2713
+ [r, n],
2714
2714
  [o.left, o.top],
2715
2715
  [o.right, o.top],
2716
2716
  [o.right, o.bottom],
@@ -2725,29 +2725,29 @@ const K2 = class K2 extends u {
2725
2725
  }
2726
2726
  showPopup(e) {
2727
2727
  this.hidePopup();
2728
- const t = C2(e), i = document.createElement("div");
2728
+ const t = s2(e), i = document.createElement("div");
2729
2729
  i.className = "tooltip-popup", i.setAttribute("role", "tooltip");
2730
2730
  const o = document.createElement("div");
2731
2731
  o.className = `tooltip-arrow tooltip-arrow--${t}`;
2732
2732
  const r = document.createElement("div");
2733
2733
  r.className = "tooltip-body", r.appendChild(document.createElement("slot")), i.appendChild(o), i.appendChild(r);
2734
- const C = this.shadowRoot.querySelector(".tooltip-content-wrapper");
2735
- C && C.appendChild(i), this.popupEl = i;
2734
+ const n = this.shadowRoot.querySelector(".tooltip-content-wrapper");
2735
+ n && n.appendChild(i), this.popupEl = i;
2736
2736
  const a = this.closest("anduin-tooltip");
2737
2737
  if (a) {
2738
2738
  const d = a.querySelector("anduin-tooltip-trigger");
2739
2739
  d && this.setupGraceAreaListeners(d, i);
2740
2740
  }
2741
- this.dispatchEvent(new CustomEvent(Q5, { detail: i, bubbles: !0, composed: !0 }));
2741
+ this.dispatchEvent(new CustomEvent(i4, { detail: i, bubbles: !0, composed: !0 }));
2742
2742
  }
2743
2743
  hidePopup() {
2744
- this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(e4, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
2744
+ this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(l4, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
2745
2745
  }
2746
2746
  render() {
2747
2747
  return s`<div class="tooltip-content-wrapper"></div>`;
2748
2748
  }
2749
2749
  };
2750
- K2.styles = h`
2750
+ e5.styles = g`
2751
2751
  :host {
2752
2752
  display: contents;
2753
2753
  --tooltip-bg: var(--anduin-tooltip-content-background, var(--color-gray-9));
@@ -2771,16 +2771,16 @@ K2.styles = h`
2771
2771
  .tooltip-arrow--left { right: -4px; top: 50%; transform: translateY(-50%); border-left-color: var(--tooltip-bg); border-right: none; }
2772
2772
  .tooltip-arrow--right { left: -4px; top: 50%; transform: translateY(-50%); border-right-color: var(--tooltip-bg); border-left: none; }
2773
2773
  `;
2774
- let a2 = K2;
2775
- customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", x1);
2776
- customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", n2);
2777
- customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", a2);
2778
- var l3 = Object.defineProperty, r3 = (l, e, t, i) => {
2779
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
2780
- (C = l[r]) && (o = C(e, t, o) || o);
2781
- return o && l3(e, t, o), o;
2774
+ let c2 = e5;
2775
+ customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", $1);
2776
+ customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", d2);
2777
+ customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", c2);
2778
+ var a3 = Object.defineProperty, s3 = (l, e, t, i) => {
2779
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
2780
+ (n = l[r]) && (o = n(e, t, o) || o);
2781
+ return o && a3(e, t, o), o;
2782
2782
  };
2783
- const C3 = "anduin-well-close:click", J2 = class J2 extends u {
2783
+ const d3 = "anduin-well-close:click", t5 = class t5 extends h {
2784
2784
  constructor() {
2785
2785
  super(...arguments), this.variant = "gray";
2786
2786
  }
@@ -2799,7 +2799,7 @@ const C3 = "anduin-well-close:click", J2 = class J2 extends u {
2799
2799
  `;
2800
2800
  }
2801
2801
  };
2802
- J2.styles = h`
2802
+ t5.styles = g`
2803
2803
  :host {
2804
2804
  display: block;
2805
2805
  font-family: var(--font-sans);
@@ -2864,14 +2864,14 @@ J2.styles = h`
2864
2864
  color: var(--color-warning-4);
2865
2865
  }
2866
2866
  `;
2867
- let U1 = J2;
2868
- r3([
2869
- n()
2870
- ], U1.prototype, "variant");
2871
- const Q2 = class Q2 extends u {
2867
+ let W1 = t5;
2868
+ s3([
2869
+ C()
2870
+ ], W1.prototype, "variant");
2871
+ const o5 = class o5 extends h {
2872
2872
  onClick() {
2873
2873
  this.dispatchEvent(
2874
- new CustomEvent(C3, { bubbles: !0, composed: !0 })
2874
+ new CustomEvent(d3, { bubbles: !0, composed: !0 })
2875
2875
  );
2876
2876
  }
2877
2877
  render() {
@@ -2886,7 +2886,7 @@ const Q2 = class Q2 extends u {
2886
2886
  `;
2887
2887
  }
2888
2888
  };
2889
- Q2.styles = h`
2889
+ o5.styles = g`
2890
2890
  :host {
2891
2891
  display: inline-block;
2892
2892
  font-family: var(--font-sans);
@@ -2911,15 +2911,15 @@ Q2.styles = h`
2911
2911
  background-color: var(--color-gray-3);
2912
2912
  }
2913
2913
  `;
2914
- let s2 = Q2;
2915
- customElements.get("anduin-well") || customElements.define("anduin-well", U1);
2916
- customElements.get("anduin-well-close") || customElements.define("anduin-well-close", s2);
2917
- var n3 = Object.defineProperty, Q = (l, e, t, i) => {
2918
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
2919
- (C = l[r]) && (o = C(e, t, o) || o);
2920
- return o && n3(e, t, o), o;
2914
+ let p2 = o5;
2915
+ customElements.get("anduin-well") || customElements.define("anduin-well", W1);
2916
+ customElements.get("anduin-well-close") || customElements.define("anduin-well-close", p2);
2917
+ var c3 = Object.defineProperty, i1 = (l, e, t, i) => {
2918
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
2919
+ (n = l[r]) && (o = n(e, t, o) || o);
2920
+ return o && c3(e, t, o), o;
2921
2921
  };
2922
- const d2 = "anduin-popover:close", e5 = class e5 extends u {
2922
+ const u2 = "anduin-popover:close", i5 = class i5 extends h {
2923
2923
  constructor() {
2924
2924
  super(...arguments), this.open = !1, this.placement = "bottom-start", this.fullWidth = !1, this._visible = !1, this._closing = !1, this._closeTransitionEndHandler = null, this._onOutsideClick = (e) => {
2925
2925
  var t;
@@ -2934,10 +2934,10 @@ const d2 = "anduin-popover:close", e5 = class e5 extends u {
2934
2934
  this.open = !this.open;
2935
2935
  }
2936
2936
  connectedCallback() {
2937
- super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize), this.addEventListener(d2, this._onPopoverClose);
2937
+ super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize), this.addEventListener(u2, this._onPopoverClose);
2938
2938
  }
2939
2939
  disconnectedCallback() {
2940
- super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize), this.removeEventListener(d2, this._onPopoverClose);
2940
+ super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize), this.removeEventListener(u2, this._onPopoverClose);
2941
2941
  }
2942
2942
  updated(e) {
2943
2943
  e.has("open") && (this.open ? (this._cancelCloseAnimation(), this._closing = !1, this._visible = !0, requestAnimationFrame(() => this._updatePosition())) : this._startCloseAnimation());
@@ -2964,12 +2964,12 @@ const d2 = "anduin-popover:close", e5 = class e5 extends u {
2964
2964
  t.style.transform = "none";
2965
2965
  const r = t.getBoundingClientRect();
2966
2966
  t.style.transform = o;
2967
- const C = t.getBoundingClientRect(), a = 4, d = window.innerWidth, p = window.innerHeight, g = 8;
2967
+ const n = t.getBoundingClientRect(), a = 4, d = window.innerWidth, p = window.innerHeight, u = 8;
2968
2968
  let v = 0, H = 0, f = "bottom";
2969
- const M = !this.placement.startsWith("top"), l1 = p - i.bottom - a, $ = i.top - a, q = l1 >= C.height, B1 = $ >= C.height, z1 = M ? q || l1 >= $ : !B1 && q;
2970
- f = z1 ? "bottom" : "top", H = z1 ? i.bottom + a : i.top - C.height - a;
2971
- const F1 = this.placement.endsWith("end") ? "end" : this.placement.endsWith("start") ? "start" : "center";
2972
- F1 === "start" ? v = i.left : F1 === "end" ? v = i.right - C.width : v = i.left + i.width / 2 - C.width / 2, v = Math.max(g, Math.min(v, d - C.width - g)), H = Math.max(g, Math.min(H, p - C.height - g)), t.style.transform = `translate(${Math.round(v - r.left)}px, ${Math.round(H - r.top)}px)`, t.dataset.side = f;
2969
+ const Z = !this.placement.startsWith("top"), I = p - i.bottom - a, x = i.top - a, S = I >= n.height, X = x >= n.height, F1 = Z ? S || I >= x : !X && S;
2970
+ f = F1 ? "bottom" : "top", H = F1 ? i.bottom + a : i.top - n.height - a;
2971
+ const P1 = this.placement.endsWith("end") ? "end" : this.placement.endsWith("start") ? "start" : "center";
2972
+ P1 === "start" ? v = i.left : P1 === "end" ? v = i.right - n.width : v = i.left + i.width / 2 - n.width / 2, v = Math.max(u, Math.min(v, d - n.width - u)), H = Math.max(u, Math.min(H, p - n.height - u)), t.style.transform = `translate(${Math.round(v - r.left)}px, ${Math.round(H - r.top)}px)`, t.dataset.side = f;
2973
2973
  }
2974
2974
  render() {
2975
2975
  return s`
@@ -2984,7 +2984,7 @@ const d2 = "anduin-popover:close", e5 = class e5 extends u {
2984
2984
  `;
2985
2985
  }
2986
2986
  };
2987
- e5.styles = h`
2987
+ i5.styles = g`
2988
2988
  :host { display: inline-block; font-family: var(--font-sans); }
2989
2989
  :host([full-width]) { display: block; width: 100%; }
2990
2990
 
@@ -3033,46 +3033,46 @@ e5.styles = h`
3033
3033
  transform: scale(1) translateY(0);
3034
3034
  }
3035
3035
  `;
3036
- let E = e5;
3037
- Q([
3038
- n({ type: Boolean, reflect: !0 })
3039
- ], E.prototype, "open");
3040
- Q([
3041
- n()
3042
- ], E.prototype, "placement");
3043
- Q([
3044
- n({ type: Boolean, attribute: "full-width", reflect: !0 })
3045
- ], E.prototype, "fullWidth");
3046
- Q([
3047
- y()
3048
- ], E.prototype, "_visible");
3049
- Q([
3050
- y()
3051
- ], E.prototype, "_closing");
3052
- Q([
3053
- w(".popover__trigger")
3054
- ], E.prototype, "_triggerEl");
3055
- Q([
3056
- w(".popover__panel")
3057
- ], E.prototype, "_panelEl");
3058
- customElements.get("anduin-popover") || customElements.define("anduin-popover", E);
3059
- const t5 = class t5 extends u {
3036
+ let B = i5;
3037
+ i1([
3038
+ C({ type: Boolean, reflect: !0 })
3039
+ ], B.prototype, "open");
3040
+ i1([
3041
+ C()
3042
+ ], B.prototype, "placement");
3043
+ i1([
3044
+ C({ type: Boolean, attribute: "full-width", reflect: !0 })
3045
+ ], B.prototype, "fullWidth");
3046
+ i1([
3047
+ M()
3048
+ ], B.prototype, "_visible");
3049
+ i1([
3050
+ M()
3051
+ ], B.prototype, "_closing");
3052
+ i1([
3053
+ R(".popover__trigger")
3054
+ ], B.prototype, "_triggerEl");
3055
+ i1([
3056
+ R(".popover__panel")
3057
+ ], B.prototype, "_panelEl");
3058
+ customElements.get("anduin-popover") || customElements.define("anduin-popover", B);
3059
+ const l5 = class l5 extends h {
3060
3060
  _onClick() {
3061
- this.dispatchEvent(new CustomEvent(d2, { bubbles: !0, composed: !0 }));
3061
+ this.dispatchEvent(new CustomEvent(u2, { bubbles: !0, composed: !0 }));
3062
3062
  }
3063
3063
  render() {
3064
3064
  return s`<span @click=${this._onClick}><slot></slot></span>`;
3065
3065
  }
3066
3066
  };
3067
- t5.styles = h`:host { display: contents; }`;
3068
- let c2 = t5;
3069
- customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close", c2);
3070
- var a3 = Object.defineProperty, e1 = (l, e, t, i) => {
3071
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
3072
- (C = l[r]) && (o = C(e, t, o) || o);
3073
- return o && a3(e, t, o), o;
3067
+ l5.styles = g`:host { display: contents; }`;
3068
+ let h2 = l5;
3069
+ customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close", h2);
3070
+ var p3 = Object.defineProperty, l1 = (l, e, t, i) => {
3071
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
3072
+ (n = l[r]) && (o = n(e, t, o) || o);
3073
+ return o && p3(e, t, o), o;
3074
3074
  };
3075
- const p2 = "anduin-menu-item:click", o5 = class o5 extends u {
3075
+ const v2 = "anduin-menu-item:click", r5 = class r5 extends h {
3076
3076
  constructor() {
3077
3077
  super(...arguments), this.open = !1, this.placement = "bottom-start", this._onOutsideClick = (e) => {
3078
3078
  var t;
@@ -3087,10 +3087,10 @@ const p2 = "anduin-menu-item:click", o5 = class o5 extends u {
3087
3087
  this.open = !this.open;
3088
3088
  }
3089
3089
  connectedCallback() {
3090
- super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(p2, this._onItemClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize);
3090
+ super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(v2, this._onItemClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize);
3091
3091
  }
3092
3092
  disconnectedCallback() {
3093
- super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(p2, this._onItemClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize);
3093
+ super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(v2, this._onItemClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize);
3094
3094
  }
3095
3095
  updated(e) {
3096
3096
  e.has("open") && this.open && requestAnimationFrame(() => this._updatePosition());
@@ -3102,29 +3102,29 @@ const p2 = "anduin-menu-item:click", o5 = class o5 extends u {
3102
3102
  t.style.transform = "none";
3103
3103
  const r = t.getBoundingClientRect();
3104
3104
  t.style.transform = o;
3105
- const C = t.getBoundingClientRect(), a = 4;
3106
- let d = 0, p = 0, g = "bottom";
3105
+ const n = t.getBoundingClientRect(), a = 4;
3106
+ let d = 0, p = 0, u = "bottom";
3107
3107
  switch (this.placement) {
3108
3108
  case "bottom-start":
3109
- d = i.left, p = i.bottom + a, g = "bottom";
3109
+ d = i.left, p = i.bottom + a, u = "bottom";
3110
3110
  break;
3111
3111
  case "bottom-end":
3112
- d = i.right - C.width, p = i.bottom + a, g = "bottom";
3112
+ d = i.right - n.width, p = i.bottom + a, u = "bottom";
3113
3113
  break;
3114
3114
  case "bottom":
3115
- d = i.left + i.width / 2 - C.width / 2, p = i.bottom + a, g = "bottom";
3115
+ d = i.left + i.width / 2 - n.width / 2, p = i.bottom + a, u = "bottom";
3116
3116
  break;
3117
3117
  case "top-start":
3118
- d = i.left, p = i.top - C.height - a, g = "top";
3118
+ d = i.left, p = i.top - n.height - a, u = "top";
3119
3119
  break;
3120
3120
  case "top-end":
3121
- d = i.right - C.width, p = i.top - C.height - a, g = "top";
3121
+ d = i.right - n.width, p = i.top - n.height - a, u = "top";
3122
3122
  break;
3123
3123
  case "top":
3124
- d = i.left + i.width / 2 - C.width / 2, p = i.top - C.height - a, g = "top";
3124
+ d = i.left + i.width / 2 - n.width / 2, p = i.top - n.height - a, u = "top";
3125
3125
  break;
3126
3126
  }
3127
- t.style.transform = `translate(${Math.round(d - r.left)}px, ${Math.round(p - r.top)}px)`, t.dataset.side = g;
3127
+ t.style.transform = `translate(${Math.round(d - r.left)}px, ${Math.round(p - r.top)}px)`, t.dataset.side = u;
3128
3128
  }
3129
3129
  render() {
3130
3130
  return s`
@@ -3139,7 +3139,7 @@ const p2 = "anduin-menu-item:click", o5 = class o5 extends u {
3139
3139
  `;
3140
3140
  }
3141
3141
  };
3142
- o5.styles = h`
3142
+ r5.styles = g`
3143
3143
  :host { display: inline-block; font-family: var(--font-sans); }
3144
3144
 
3145
3145
  .menu__trigger { display: inline-block; }
@@ -3182,25 +3182,25 @@ o5.styles = h`
3182
3182
  transform: scale(1) translateY(0);
3183
3183
  }
3184
3184
  `;
3185
- let J = o5;
3186
- e1([
3187
- n({ type: Boolean, reflect: !0 })
3188
- ], J.prototype, "open");
3189
- e1([
3190
- n()
3191
- ], J.prototype, "placement");
3192
- e1([
3193
- w(".menu__trigger")
3194
- ], J.prototype, "_triggerEl");
3195
- e1([
3196
- w(".menu__panel")
3197
- ], J.prototype, "_panelEl");
3198
- const i5 = class i5 extends u {
3185
+ let o1 = r5;
3186
+ l1([
3187
+ C({ type: Boolean, reflect: !0 })
3188
+ ], o1.prototype, "open");
3189
+ l1([
3190
+ C()
3191
+ ], o1.prototype, "placement");
3192
+ l1([
3193
+ R(".menu__trigger")
3194
+ ], o1.prototype, "_triggerEl");
3195
+ l1([
3196
+ R(".menu__panel")
3197
+ ], o1.prototype, "_panelEl");
3198
+ const n5 = class n5 extends h {
3199
3199
  constructor() {
3200
3200
  super(...arguments), this.icon = "", this.variant = "default", this.disabled = !1;
3201
3201
  }
3202
3202
  _onClick() {
3203
- this.dispatchEvent(new CustomEvent(p2, { bubbles: !0, composed: !0 }));
3203
+ this.dispatchEvent(new CustomEvent(v2, { bubbles: !0, composed: !0 }));
3204
3204
  }
3205
3205
  render() {
3206
3206
  return s`
@@ -3217,7 +3217,7 @@ const i5 = class i5 extends u {
3217
3217
  `;
3218
3218
  }
3219
3219
  };
3220
- i5.styles = h`
3220
+ n5.styles = g`
3221
3221
  :host { display: block; width: 100%; font-family: var(--font-sans); }
3222
3222
  .menu-item {
3223
3223
  display: flex;
@@ -3247,26 +3247,26 @@ i5.styles = h`
3247
3247
  anduin-icon { color: var(--color-gray-7); }
3248
3248
  .menu-item--danger anduin-icon { color: var(--color-danger-4); }
3249
3249
  `;
3250
- let s1 = i5;
3251
- e1([
3252
- n()
3253
- ], s1.prototype, "icon");
3254
- e1([
3255
- n()
3256
- ], s1.prototype, "variant");
3257
- e1([
3258
- n({ type: Boolean })
3259
- ], s1.prototype, "disabled");
3260
- customElements.get("anduin-menu") || customElements.define("anduin-menu", J);
3261
- customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", s1);
3262
- var s3 = Object.defineProperty, t1 = (l, e, t, i) => {
3263
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
3264
- (C = l[r]) && (o = C(e, t, o) || o);
3265
- return o && s3(e, t, o), o;
3250
+ let p1 = n5;
3251
+ l1([
3252
+ C()
3253
+ ], p1.prototype, "icon");
3254
+ l1([
3255
+ C()
3256
+ ], p1.prototype, "variant");
3257
+ l1([
3258
+ C({ type: Boolean })
3259
+ ], p1.prototype, "disabled");
3260
+ customElements.get("anduin-menu") || customElements.define("anduin-menu", o1);
3261
+ customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", p1);
3262
+ var u3 = Object.defineProperty, r1 = (l, e, t, i) => {
3263
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
3264
+ (n = l[r]) && (o = n(e, t, o) || o);
3265
+ return o && u3(e, t, o), o;
3266
3266
  };
3267
- const u1 = "anduin-close", d3 = "anduin-after-close", J1 = 300, Q1 = 200, w5 = 250;
3268
- var D;
3269
- const j = (D = class extends u {
3267
+ const f1 = "anduin-close", h3 = "anduin-after-close", e2 = 300, t2 = 200, A5 = 250;
3268
+ var j;
3269
+ const G = (j = class extends h {
3270
3270
  constructor() {
3271
3271
  super(...arguments), this.open = !1, this.heading = "", this.hideHeader = !1, this.hideFooter = !1, this.maxWidth = "480", this.fullscreen = !1, this._leaving = !1, this.onAnduinClose = (e) => {
3272
3272
  e.target !== this && e.stopPropagation();
@@ -3274,27 +3274,27 @@ const j = (D = class extends u {
3274
3274
  }
3275
3275
  updated(e) {
3276
3276
  if (e.has("maxWidth")) {
3277
- const t = this.maxWidth, i = D._PRESETS.has(t) ? `${t}px` : t;
3277
+ const t = this.maxWidth, i = j._PRESETS.has(t) ? `${t}px` : t;
3278
3278
  this.style.setProperty("--_modal-width", i);
3279
3279
  }
3280
3280
  e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown")) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(() => {
3281
- this._leaving = !1, this.classList.remove("is-shown"), this.dispatchEvent(new CustomEvent(d3, { bubbles: !0, composed: !0 }));
3282
- }, Math.max(Q1, w5))));
3281
+ this._leaving = !1, this.classList.remove("is-shown"), this.dispatchEvent(new CustomEvent(h3, { bubbles: !0, composed: !0 }));
3282
+ }, Math.max(t2, A5))));
3283
3283
  }
3284
3284
  dispatch(e) {
3285
3285
  this.dispatchEvent(new CustomEvent(e, { bubbles: !0, composed: !0 }));
3286
3286
  }
3287
3287
  onOverlayClick() {
3288
- this.dispatch(u1);
3288
+ this.dispatch(f1);
3289
3289
  }
3290
3290
  onClose() {
3291
- this.dispatch(u1);
3291
+ this.dispatch(f1);
3292
3292
  }
3293
3293
  connectedCallback() {
3294
- super.connectedCallback(), this.addEventListener(u1, this.onAnduinClose);
3294
+ super.connectedCallback(), this.addEventListener(f1, this.onAnduinClose);
3295
3295
  }
3296
3296
  disconnectedCallback() {
3297
- super.disconnectedCallback(), this.removeEventListener(u1, this.onAnduinClose);
3297
+ super.disconnectedCallback(), this.removeEventListener(f1, this.onAnduinClose);
3298
3298
  }
3299
3299
  render() {
3300
3300
  const e = this._leaving, t = this.fullscreen;
@@ -3327,7 +3327,7 @@ const j = (D = class extends u {
3327
3327
  </div>
3328
3328
  `;
3329
3329
  }
3330
- }, D.styles = h`
3330
+ }, j.styles = g`
3331
3331
  :host {
3332
3332
  display: none;
3333
3333
  font-family: var(--font-sans);
@@ -3367,10 +3367,10 @@ const j = (D = class extends u {
3367
3367
  inset: 0;
3368
3368
  background: rgba(50, 60, 77, 0.6);
3369
3369
  cursor: default;
3370
- animation: overlayIn ${J1}ms cubic-bezier(0.2, 0, 0, 1) forwards;
3370
+ animation: overlayIn ${e2}ms cubic-bezier(0.2, 0, 0, 1) forwards;
3371
3371
  }
3372
3372
  .overlay.is-leaving {
3373
- animation: overlayOut ${w5}ms cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
3373
+ animation: overlayOut ${A5}ms cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
3374
3374
  }
3375
3375
  .modal-wrapper {
3376
3376
  position: absolute;
@@ -3393,10 +3393,10 @@ const j = (D = class extends u {
3393
3393
  max-height: calc(100vh - 64px);
3394
3394
  box-shadow: 0 8px 24px 0 rgba(29, 41, 57, 0.12), 0 2px 8px 0 rgba(29, 41, 57, 0.08);
3395
3395
  flex-shrink: 0;
3396
- animation: modalIn ${J1}ms cubic-bezier(0.05, 0.7, 0.1, 1) forwards;
3396
+ animation: modalIn ${e2}ms cubic-bezier(0.05, 0.7, 0.1, 1) forwards;
3397
3397
  }
3398
3398
  .modal.is-leaving {
3399
- animation: modalOut ${Q1}ms cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
3399
+ animation: modalOut ${t2}ms cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
3400
3400
  }
3401
3401
  .modal-wrapper--fullscreen {
3402
3402
  padding: 0;
@@ -3425,10 +3425,10 @@ const j = (D = class extends u {
3425
3425
  max-height: 100%;
3426
3426
  height: 100%;
3427
3427
  box-shadow: none;
3428
- animation: modalFullscreenIn ${J1}ms cubic-bezier(0.05, 0.7, 0.1, 1) forwards;
3428
+ animation: modalFullscreenIn ${e2}ms cubic-bezier(0.05, 0.7, 0.1, 1) forwards;
3429
3429
  }
3430
3430
  .modal--fullscreen.is-leaving {
3431
- animation: modalFullscreenOut ${Q1}ms cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
3431
+ animation: modalFullscreenOut ${t2}ms cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
3432
3432
  }
3433
3433
  .header {
3434
3434
  flex-shrink: 0;
@@ -3469,34 +3469,34 @@ const j = (D = class extends u {
3469
3469
  padding: 16px 24px;
3470
3470
  border-top: 1px solid var(--color-gray-3, #e4e7ec);
3471
3471
  }
3472
- `, D._PRESETS = /* @__PURE__ */ new Set(["480", "600", "720", "960", "1160"]), D);
3473
- t1([
3474
- n({ type: Boolean, reflect: !0 })
3475
- ], j.prototype, "open");
3476
- t1([
3477
- n()
3478
- ], j.prototype, "heading");
3479
- t1([
3480
- n({ type: Boolean, attribute: "hide-header" })
3481
- ], j.prototype, "hideHeader");
3482
- t1([
3483
- n({ type: Boolean, attribute: "hide-footer" })
3484
- ], j.prototype, "hideFooter");
3485
- t1([
3486
- n({ attribute: "max-width" })
3487
- ], j.prototype, "maxWidth");
3488
- t1([
3489
- n({ type: Boolean })
3490
- ], j.prototype, "fullscreen");
3491
- t1([
3492
- y()
3493
- ], j.prototype, "_leaving");
3494
- let c3 = j;
3495
- customElements.get("anduin-modal") || customElements.define("anduin-modal", c3);
3496
- class p3 extends HTMLElement {
3472
+ `, j._PRESETS = /* @__PURE__ */ new Set(["480", "600", "720", "960", "1160"]), j);
3473
+ r1([
3474
+ C({ type: Boolean, reflect: !0 })
3475
+ ], G.prototype, "open");
3476
+ r1([
3477
+ C()
3478
+ ], G.prototype, "heading");
3479
+ r1([
3480
+ C({ type: Boolean, attribute: "hide-header" })
3481
+ ], G.prototype, "hideHeader");
3482
+ r1([
3483
+ C({ type: Boolean, attribute: "hide-footer" })
3484
+ ], G.prototype, "hideFooter");
3485
+ r1([
3486
+ C({ attribute: "max-width" })
3487
+ ], G.prototype, "maxWidth");
3488
+ r1([
3489
+ C({ type: Boolean })
3490
+ ], G.prototype, "fullscreen");
3491
+ r1([
3492
+ M()
3493
+ ], G.prototype, "_leaving");
3494
+ let v3 = G;
3495
+ customElements.get("anduin-modal") || customElements.define("anduin-modal", v3);
3496
+ class g3 extends HTMLElement {
3497
3497
  constructor() {
3498
3498
  super(...arguments), this._onClick = () => {
3499
- this.dispatchEvent(new CustomEvent(u1, { bubbles: !0, composed: !0 }));
3499
+ this.dispatchEvent(new CustomEvent(f1, { bubbles: !0, composed: !0 }));
3500
3500
  };
3501
3501
  }
3502
3502
  connectedCallback() {
@@ -3506,26 +3506,26 @@ class p3 extends HTMLElement {
3506
3506
  this.removeEventListener("click", this._onClick);
3507
3507
  }
3508
3508
  }
3509
- customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close", p3);
3510
- var u3 = Object.defineProperty, P = (l, e, t, i) => {
3511
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
3512
- (C = l[r]) && (o = C(e, t, o) || o);
3513
- return o && u3(e, t, o), o;
3509
+ customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close", g3);
3510
+ var f3 = Object.defineProperty, D = (l, e, t, i) => {
3511
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
3512
+ (n = l[r]) && (o = n(e, t, o) || o);
3513
+ return o && f3(e, t, o), o;
3514
3514
  };
3515
- const u2 = "anduin-radio:change", h3 = "anduin-radio-group:change", l5 = class l5 extends u {
3515
+ const g2 = "anduin-radio:change", H3 = "anduin-radio-group:change", C5 = class C5 extends h {
3516
3516
  constructor() {
3517
3517
  super(...arguments), this.checked = !1, this.disabled = !1, this.readonly = !1, this.value = "", this.name = "", this.inputid = "";
3518
3518
  }
3519
3519
  connectedCallback() {
3520
3520
  super.connectedCallback();
3521
3521
  const e = this.closest("anduin-field");
3522
- e && e.addEventListener(E1, (t) => {
3522
+ e && e.addEventListener(v1, (t) => {
3523
3523
  const i = t;
3524
3524
  this.inputid && this.inputid === i.detail && !this.disabled && !this.readonly && this._select();
3525
3525
  });
3526
3526
  }
3527
3527
  _select() {
3528
- this.checked || (this.checked = !0, this.dispatchEvent(new CustomEvent(u2, {
3528
+ this.checked || (this.checked = !0, this.dispatchEvent(new CustomEvent(g2, {
3529
3529
  detail: this.value,
3530
3530
  bubbles: !0,
3531
3531
  composed: !0
@@ -3566,7 +3566,7 @@ const u2 = "anduin-radio:change", h3 = "anduin-radio-group:change", l5 = class l
3566
3566
  `;
3567
3567
  }
3568
3568
  };
3569
- l5.styles = h`
3569
+ C5.styles = g`
3570
3570
  :host { display: inline-flex; font-family: var(--font-sans); }
3571
3571
 
3572
3572
  label {
@@ -3637,34 +3637,34 @@ l5.styles = h`
3637
3637
  transform: scale(1);
3638
3638
  }
3639
3639
  `;
3640
- let F = l5;
3641
- P([
3642
- n({ type: Boolean })
3643
- ], F.prototype, "checked");
3644
- P([
3645
- n({ type: Boolean })
3646
- ], F.prototype, "disabled");
3647
- P([
3648
- n({ type: Boolean })
3649
- ], F.prototype, "readonly");
3650
- P([
3651
- n()
3652
- ], F.prototype, "value");
3653
- P([
3654
- n()
3655
- ], F.prototype, "name");
3656
- P([
3657
- n()
3658
- ], F.prototype, "inputid");
3659
- customElements.get("anduin-radio") || customElements.define("anduin-radio", F);
3660
- const r5 = class r5 extends u {
3640
+ let O = C5;
3641
+ D([
3642
+ C({ type: Boolean })
3643
+ ], O.prototype, "checked");
3644
+ D([
3645
+ C({ type: Boolean })
3646
+ ], O.prototype, "disabled");
3647
+ D([
3648
+ C({ type: Boolean })
3649
+ ], O.prototype, "readonly");
3650
+ D([
3651
+ C()
3652
+ ], O.prototype, "value");
3653
+ D([
3654
+ C()
3655
+ ], O.prototype, "name");
3656
+ D([
3657
+ C()
3658
+ ], O.prototype, "inputid");
3659
+ customElements.get("anduin-radio") || customElements.define("anduin-radio", O);
3660
+ const a5 = class a5 extends h {
3661
3661
  constructor() {
3662
3662
  super(...arguments), this.value = "", this.name = "", this.orientation = "vertical", this._onRadioChange = (e) => {
3663
3663
  const i = e.detail;
3664
3664
  i !== this.value && (this.value = i, this.querySelectorAll("anduin-radio").forEach((o) => {
3665
3665
  const r = o;
3666
3666
  r.checked = r.value === i;
3667
- }), this.dispatchEvent(new CustomEvent(h3, {
3667
+ }), this.dispatchEvent(new CustomEvent(H3, {
3668
3668
  detail: i,
3669
3669
  bubbles: !0,
3670
3670
  composed: !0
@@ -3672,10 +3672,10 @@ const r5 = class r5 extends u {
3672
3672
  };
3673
3673
  }
3674
3674
  connectedCallback() {
3675
- super.connectedCallback(), this.addEventListener(u2, this._onRadioChange);
3675
+ super.connectedCallback(), this.addEventListener(g2, this._onRadioChange);
3676
3676
  }
3677
3677
  disconnectedCallback() {
3678
- super.disconnectedCallback(), this.removeEventListener(u2, this._onRadioChange);
3678
+ super.disconnectedCallback(), this.removeEventListener(g2, this._onRadioChange);
3679
3679
  }
3680
3680
  render() {
3681
3681
  return s`
@@ -3685,7 +3685,7 @@ const r5 = class r5 extends u {
3685
3685
  `;
3686
3686
  }
3687
3687
  };
3688
- r5.styles = h`
3688
+ a5.styles = g`
3689
3689
  :host { display: block; font-family: var(--font-sans); }
3690
3690
 
3691
3691
  .group {
@@ -3695,23 +3695,23 @@ r5.styles = h`
3695
3695
  .group--vertical { flex-direction: column; }
3696
3696
  .group--horizontal { flex-direction: row; flex-wrap: wrap; align-items: center; }
3697
3697
  `;
3698
- let d1 = r5;
3699
- P([
3700
- n()
3701
- ], d1.prototype, "value");
3702
- P([
3703
- n()
3704
- ], d1.prototype, "name");
3705
- P([
3706
- n()
3707
- ], d1.prototype, "orientation");
3708
- customElements.get("anduin-radio-group") || customElements.define("anduin-radio-group", d1);
3709
- var g3 = Object.defineProperty, o1 = (l, e, t, i) => {
3710
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
3711
- (C = l[r]) && (o = C(e, t, o) || o);
3712
- return o && g3(e, t, o), o;
3698
+ let u1 = a5;
3699
+ D([
3700
+ C()
3701
+ ], u1.prototype, "value");
3702
+ D([
3703
+ C()
3704
+ ], u1.prototype, "name");
3705
+ D([
3706
+ C()
3707
+ ], u1.prototype, "orientation");
3708
+ customElements.get("anduin-radio-group") || customElements.define("anduin-radio-group", u1);
3709
+ var V3 = Object.defineProperty, n1 = (l, e, t, i) => {
3710
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
3711
+ (n = l[r]) && (o = n(e, t, o) || o);
3712
+ return o && V3(e, t, o), o;
3713
3713
  };
3714
- const k5 = [
3714
+ const B5 = [
3715
3715
  { bg: "#6172F3", text: "#ffffff" },
3716
3716
  { bg: "#B692F6", text: "#ffffff" },
3717
3717
  { bg: "#F670C7", text: "#ffffff" },
@@ -3721,17 +3721,17 @@ const k5 = [
3721
3721
  { bg: "#F97066", text: "#ffffff" },
3722
3722
  { bg: "#7A5AF8", text: "#ffffff" }
3723
3723
  ];
3724
- function v3(l) {
3724
+ function L3(l) {
3725
3725
  let e = 0;
3726
3726
  for (let t = 0; t < l.length; t++) e = e * 31 + l.charCodeAt(t) >>> 0;
3727
- return k5[e % k5.length];
3727
+ return B5[e % B5.length];
3728
3728
  }
3729
- function f3(l) {
3729
+ function b3(l) {
3730
3730
  var t;
3731
3731
  const e = l.trim().split(/\s+/);
3732
3732
  return e.length === 1 ? ((t = e[0][0]) == null ? void 0 : t.toUpperCase()) ?? "" : ((e[0][0] ?? "") + (e[e.length - 1][0] ?? "")).toUpperCase();
3733
3733
  }
3734
- const C5 = class C5 extends u {
3734
+ const s5 = class s5 extends h {
3735
3735
  constructor() {
3736
3736
  super(...arguments), this.src = "", this.name = "", this.alt = "", this.icon = "", this.size = 32, this.shape = "circle", this._imgError = !1;
3737
3737
  }
@@ -3742,7 +3742,7 @@ const C5 = class C5 extends u {
3742
3742
  return this.size <= 16 ? 10 : this.size <= 20 ? 12 : this.size <= 24 ? 14 : 18;
3743
3743
  }
3744
3744
  render() {
3745
- const e = !!this.src && !this._imgError, t = this.name || this.icon ? v3(this.name || this.icon) : { bg: "#F2F4F7", text: "#667085" }, i = this.name ? f3(this.name) : "";
3745
+ const e = !!this.src && !this._imgError, t = this.name || this.icon ? L3(this.name || this.icon) : { bg: "#F2F4F7", text: "#667085" }, i = this.name ? b3(this.name) : "";
3746
3746
  return s`
3747
3747
  <div
3748
3748
  class="avatar avatar--${this.shape} avatar--${this.size}"
@@ -3760,7 +3760,7 @@ const C5 = class C5 extends u {
3760
3760
  `;
3761
3761
  }
3762
3762
  };
3763
- C5.styles = h`
3763
+ s5.styles = g`
3764
3764
  :host { display: inline-flex; }
3765
3765
 
3766
3766
  .avatar {
@@ -3789,36 +3789,36 @@ C5.styles = h`
3789
3789
  display: block;
3790
3790
  }
3791
3791
  `;
3792
- let A = C5;
3793
- o1([
3794
- n()
3795
- ], A.prototype, "src");
3796
- o1([
3797
- n()
3798
- ], A.prototype, "name");
3799
- o1([
3800
- n()
3801
- ], A.prototype, "alt");
3802
- o1([
3803
- n()
3804
- ], A.prototype, "icon");
3805
- o1([
3806
- n({ type: Number })
3807
- ], A.prototype, "size");
3808
- o1([
3809
- n()
3810
- ], A.prototype, "shape");
3811
- o1([
3812
- y()
3813
- ], A.prototype, "_imgError");
3814
- customElements.get("anduin-avatar") || customElements.define("anduin-avatar", A);
3792
+ let z = s5;
3793
+ n1([
3794
+ C()
3795
+ ], z.prototype, "src");
3796
+ n1([
3797
+ C()
3798
+ ], z.prototype, "name");
3799
+ n1([
3800
+ C()
3801
+ ], z.prototype, "alt");
3802
+ n1([
3803
+ C()
3804
+ ], z.prototype, "icon");
3805
+ n1([
3806
+ C({ type: Number })
3807
+ ], z.prototype, "size");
3808
+ n1([
3809
+ C()
3810
+ ], z.prototype, "shape");
3811
+ n1([
3812
+ M()
3813
+ ], z.prototype, "_imgError");
3814
+ customElements.get("anduin-avatar") || customElements.define("anduin-avatar", z);
3815
3815
  /**
3816
3816
  * @license
3817
3817
  * Copyright 2017 Google LLC
3818
3818
  * SPDX-License-Identifier: BSD-3-Clause
3819
3819
  */
3820
- const H3 = { CHILD: 2 }, V3 = (l) => (...e) => ({ _$litDirective$: l, values: e });
3821
- class L3 {
3820
+ const m3 = { CHILD: 2 }, M3 = (l) => (...e) => ({ _$litDirective$: l, values: e });
3821
+ class y3 {
3822
3822
  constructor(e) {
3823
3823
  }
3824
3824
  get _$AU() {
@@ -3839,13 +3839,13 @@ class L3 {
3839
3839
  * Copyright 2017 Google LLC
3840
3840
  * SPDX-License-Identifier: BSD-3-Clause
3841
3841
  */
3842
- class h2 extends L3 {
3842
+ class f2 extends y3 {
3843
3843
  constructor(e) {
3844
- if (super(e), this.it = c, e.type !== H3.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
3844
+ if (super(e), this.it = c, e.type !== m3.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
3845
3845
  }
3846
3846
  render(e) {
3847
3847
  if (e === c || e == null) return this._t = void 0, this.it = e;
3848
- if (e === K) return e;
3848
+ if (e === t1) return e;
3849
3849
  if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
3850
3850
  if (e === this.it) return this._t;
3851
3851
  this.it = e;
@@ -3853,16 +3853,16 @@ class h2 extends L3 {
3853
3853
  return t.raw = t, this._t = { _$litType$: this.constructor.resultType, strings: t, values: [] };
3854
3854
  }
3855
3855
  }
3856
- h2.directiveName = "unsafeHTML", h2.resultType = 1;
3856
+ f2.directiveName = "unsafeHTML", f2.resultType = 1;
3857
3857
  /**
3858
3858
  * @license
3859
3859
  * Copyright 2017 Google LLC
3860
3860
  * SPDX-License-Identifier: BSD-3-Clause
3861
3861
  */
3862
- class g2 extends h2 {
3862
+ class H2 extends f2 {
3863
3863
  }
3864
- g2.directiveName = "unsafeSVG", g2.resultType = 2;
3865
- const b3 = V3(g2), m3 = {
3864
+ H2.directiveName = "unsafeSVG", H2.resultType = 2;
3865
+ const Z3 = M3(H2), _3 = {
3866
3866
  archive: {
3867
3867
  16: { viewBox: "0 0 16 16", paths: `<path d="M2 1.5C2 0.671573 2.67157 0 3.5 0H9.17157C9.70201 0 10.2107 0.210714 10.5858 0.585786L13.4142 3.41421C13.7893 3.78929 14 4.29799 14 4.82843V14.5C14 15.3284 13.3284 16 12.5 16H3.5C2.67157 16 2 15.3284 2 14.5V1.5Z" fill="white"/>
3868
3868
  <path fill-rule="evenodd" clip-rule="evenodd" d="M13 5.5C13 5.22386 12.7761 5 12.5 5H9.5C9.22386 5 9 4.77614 9 4.5V1.5C9 1.22386 8.77614 1 8.5 1H6H3.5C3.22386 1 3 1.22386 3 1.5V14.5C3 14.7761 3.22386 15 3.5 15H12.5C12.7761 15 13 14.7761 13 14.5V8V5.5ZM14 8V14.5C14 15.3284 13.3284 16 12.5 16H3.5C2.67157 16 2 15.3284 2 14.5V1.5C2 0.671573 2.67157 0 3.5 0H6H9.17157C9.70201 0 10.2107 0.210714 10.5858 0.585786L13.4142 3.41421C13.7893 3.78929 14 4.29799 14 4.82843V8Z" fill="#CCD2DB"/>
@@ -4106,26 +4106,26 @@ const b3 = V3(g2), m3 = {
4106
4106
  <path fill-rule="evenodd" clip-rule="evenodd" d="M6 2H18.5H18.5147C18.8078 2 19.0982 2.02573 19.3829 2.07593C19.7452 2.22622 20 2.58335 20 3V8C20 8.55228 20.4477 9 21 9H26C26.4166 9 26.7738 9.25482 26.9241 9.6171C26.9743 9.90183 27 10.1922 27 10.4853V29C27 29.5523 26.5523 30 26 30H6C5.44772 30 5 29.5523 5 29V3C5 2.44772 5.44772 2 6 2ZM27.9804 10C27.9934 10.1608 28 10.3227 28 10.4853V29C28 30.1046 27.1046 31 26 31H6C4.89543 31 4 30.1046 4 29V3C4 1.89543 4.89543 1 6 1H18.5H18.5147C20.0951 1 21.6113 1.62353 22.7342 2.73435C22.742 2.742 22.7497 2.74967 22.7574 2.75736L26.2426 6.24264L26.5858 6.58579C27.4913 7.49129 28 8.71942 28 10H27.9804Z" fill="#AADAF9"/>
4107
4107
  <path d="M18.875 21.5385L20.3324 13.4117C20.3751 13.1734 20.5825 13 20.8246 13H22.1261C22.4436 13 22.6808 13.2921 22.6154 13.6029L20.3023 24.6029C20.2536 24.8343 20.0494 25 19.813 25H18.2572C18.0243 25 17.8223 24.8393 17.77 24.6124L16.0078 16.9725L14.2457 24.6124C14.1933 24.8393 13.9913 25 13.7584 25H12.2027C11.9662 25 11.762 24.8343 11.7134 24.6029L9.40022 13.6029C9.33487 13.2921 9.57198 13 9.88952 13H11.1916C11.4335 13 11.6406 13.1731 11.6836 13.4111L13.1484 21.522L14.9371 13.3926C14.9875 13.1633 15.1906 13 15.4254 13H16.6053C16.8403 13 17.0436 13.1636 17.0938 13.3932L18.875 21.5385Z" fill="#1075DC"/>` }
4108
4108
  }
4109
- }, M3 = [32, 24, 16];
4110
- function Z3(l, e) {
4111
- const t = m3[l];
4109
+ }, x3 = [32, 24, 16];
4110
+ function w3(l, e) {
4111
+ const t = _3[l];
4112
4112
  if (!t) return null;
4113
4113
  if (t[e]) return t[e];
4114
- for (const i of M3)
4114
+ for (const i of x3)
4115
4115
  if (t[i]) return t[i];
4116
4116
  return null;
4117
4117
  }
4118
- var y3 = Object.defineProperty, o4 = (l, e, t, i) => {
4119
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
4120
- (C = l[r]) && (o = C(e, t, o) || o);
4121
- return o && y3(e, t, o), o;
4118
+ var R3 = Object.defineProperty, n4 = (l, e, t, i) => {
4119
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
4120
+ (n = l[r]) && (o = n(e, t, o) || o);
4121
+ return o && R3(e, t, o), o;
4122
4122
  };
4123
- const n5 = class n5 extends u {
4123
+ const d5 = class d5 extends h {
4124
4124
  constructor() {
4125
4125
  super(...arguments), this.type = "pdf", this.size = 32;
4126
4126
  }
4127
4127
  render() {
4128
- const e = Z3(this.type, this.size);
4128
+ const e = w3(this.type, this.size);
4129
4129
  return e ? s`
4130
4130
  <svg
4131
4131
  width=${this.size}
@@ -4136,35 +4136,35 @@ const n5 = class n5 extends u {
4136
4136
  aria-label="${this.type} file"
4137
4137
  role="img"
4138
4138
  >
4139
- ${b3(e.paths)}
4139
+ ${Z3(e.paths)}
4140
4140
  </svg>
4141
4141
  ` : c;
4142
4142
  }
4143
4143
  };
4144
- n5.styles = h`
4144
+ d5.styles = g`
4145
4145
  :host { display: inline-flex; align-items: center; justify-content: center; }
4146
4146
  svg { display: block; }
4147
4147
  `;
4148
- let R1 = n5;
4149
- o4([
4150
- n()
4151
- ], R1.prototype, "type");
4152
- o4([
4153
- n({ type: Number })
4154
- ], R1.prototype, "size");
4155
- customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon", R1);
4156
- var _3 = Object.defineProperty, i1 = (l, e, t, i) => {
4157
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
4158
- (C = l[r]) && (o = C(e, t, o) || o);
4159
- return o && _3(e, t, o), o;
4148
+ let E1 = d5;
4149
+ n4([
4150
+ C()
4151
+ ], E1.prototype, "type");
4152
+ n4([
4153
+ C({ type: Number })
4154
+ ], E1.prototype, "size");
4155
+ customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon", E1);
4156
+ var k3 = Object.defineProperty, C1 = (l, e, t, i) => {
4157
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
4158
+ (n = l[r]) && (o = n(e, t, o) || o);
4159
+ return o && k3(e, t, o), o;
4160
4160
  };
4161
- const $5 = {
4161
+ const z5 = {
4162
4162
  gray: "info",
4163
4163
  primary: "infoCircleLine",
4164
4164
  success: "checkCircle",
4165
4165
  warning: "warning",
4166
4166
  danger: "error"
4167
- }, x3 = "anduin-toast:dismiss", a5 = class a5 extends u {
4167
+ }, $3 = "anduin-toast:dismiss", c5 = class c5 extends h {
4168
4168
  constructor() {
4169
4169
  super(...arguments), this.variant = "gray", this.heading = "", this.description = "", this._dismissing = !1;
4170
4170
  }
@@ -4175,7 +4175,7 @@ const $5 = {
4175
4175
  const e = (i) => {
4176
4176
  var o;
4177
4177
  i.propertyName === "opacity" && ((o = this._toastEl) == null || o.removeEventListener("transitionend", e), this.dispatchEvent(
4178
- new CustomEvent(x3, { bubbles: !0, composed: !0 })
4178
+ new CustomEvent($3, { bubbles: !0, composed: !0 })
4179
4179
  ));
4180
4180
  };
4181
4181
  (t = this._toastEl) == null || t.addEventListener("transitionend", e);
@@ -4184,7 +4184,7 @@ const $5 = {
4184
4184
  this.dismiss();
4185
4185
  }
4186
4186
  render() {
4187
- const e = $5[this.variant] ?? $5.gray;
4187
+ const e = z5[this.variant] ?? z5.gray;
4188
4188
  return s`
4189
4189
  <div
4190
4190
  class="toast toast--${this.variant} ${this._dismissing ? "toast--dismissing" : ""}"
@@ -4210,7 +4210,7 @@ const $5 = {
4210
4210
  `;
4211
4211
  }
4212
4212
  };
4213
- a5.styles = h`
4213
+ c5.styles = g`
4214
4214
  :host {
4215
4215
  display: block;
4216
4216
  font-family: var(--font-sans);
@@ -4329,24 +4329,24 @@ a5.styles = h`
4329
4329
  background: var(--color-gray-7, #344054);
4330
4330
  }
4331
4331
  `;
4332
- let T = a5;
4333
- i1([
4334
- n()
4335
- ], T.prototype, "variant");
4336
- i1([
4337
- n()
4338
- ], T.prototype, "heading");
4339
- i1([
4340
- n()
4341
- ], T.prototype, "description");
4342
- i1([
4343
- y()
4344
- ], T.prototype, "_dismissing");
4345
- i1([
4346
- w(".toast")
4347
- ], T.prototype, "_toastEl");
4348
- customElements.get("anduin-toast") || customElements.define("anduin-toast", T);
4349
- const s5 = class s5 extends u {
4332
+ let q = c5;
4333
+ C1([
4334
+ C()
4335
+ ], q.prototype, "variant");
4336
+ C1([
4337
+ C()
4338
+ ], q.prototype, "heading");
4339
+ C1([
4340
+ C()
4341
+ ], q.prototype, "description");
4342
+ C1([
4343
+ M()
4344
+ ], q.prototype, "_dismissing");
4345
+ C1([
4346
+ R(".toast")
4347
+ ], q.prototype, "_toastEl");
4348
+ customElements.get("anduin-toast") || customElements.define("anduin-toast", q);
4349
+ const p5 = class p5 extends h {
4350
4350
  constructor() {
4351
4351
  super(...arguments), this.position = "bottom-left", this._toasts = [], this._nextId = 0;
4352
4352
  }
@@ -4390,7 +4390,7 @@ const s5 = class s5 extends u {
4390
4390
  `;
4391
4391
  }
4392
4392
  };
4393
- s5.styles = h`
4393
+ p5.styles = g`
4394
4394
  :host {
4395
4395
  display: contents;
4396
4396
  pointer-events: none;
@@ -4437,17 +4437,17 @@ s5.styles = h`
4437
4437
  align-items: flex-end;
4438
4438
  }
4439
4439
  `;
4440
- let w1 = s5;
4441
- i1([
4442
- n()
4443
- ], w1.prototype, "position");
4444
- i1([
4445
- y()
4446
- ], w1.prototype, "_toasts");
4447
- customElements.get("anduin-toaster") || customElements.define("anduin-toaster", w1);
4448
- const D3 = {
4440
+ let A1 = p5;
4441
+ C1([
4442
+ C()
4443
+ ], A1.prototype, "position");
4444
+ C1([
4445
+ M()
4446
+ ], A1.prototype, "_toasts");
4447
+ customElements.get("anduin-toaster") || customElements.define("anduin-toaster", A1);
4448
+ const W3 = {
4449
4449
  show(l) {
4450
- return R3(l.position).show(l);
4450
+ return E3(l.position).show(l);
4451
4451
  },
4452
4452
  success(l, e, t) {
4453
4453
  return this.show({ ...t, variant: "success", heading: l, description: e });
@@ -4464,23 +4464,23 @@ const D3 = {
4464
4464
  gray(l, e, t) {
4465
4465
  return this.show({ ...t, variant: "gray", heading: l, description: e });
4466
4466
  }
4467
- }, e2 = /* @__PURE__ */ new Map();
4468
- function R3(l = "bottom-left") {
4469
- if (e2.has(l)) return e2.get(l);
4467
+ }, o2 = /* @__PURE__ */ new Map();
4468
+ function E3(l = "bottom-left") {
4469
+ if (o2.has(l)) return o2.get(l);
4470
4470
  const e = document.createElement("anduin-toaster");
4471
- return e.position = l, document.body.appendChild(e), e2.set(l, e), e;
4471
+ return e.position = l, document.body.appendChild(e), o2.set(l, e), e;
4472
4472
  }
4473
- var w3 = Object.defineProperty, i4 = (l, e, t, i) => {
4474
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
4475
- (C = l[r]) && (o = C(e, t, o) || o);
4476
- return o && w3(e, t, o), o;
4473
+ var A3 = Object.defineProperty, C4 = (l, e, t, i) => {
4474
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
4475
+ (n = l[r]) && (o = n(e, t, o) || o);
4476
+ return o && A3(e, t, o), o;
4477
4477
  };
4478
- const k3 = "anduin-switcher:change", d5 = class d5 extends u {
4478
+ const B3 = "anduin-switcher:change", u5 = class u5 extends h {
4479
4479
  constructor() {
4480
4480
  super(...arguments), this.checked = !1, this.disabled = !1;
4481
4481
  }
4482
4482
  onChange() {
4483
- this.checked = !this.checked, this.dispatchEvent(new CustomEvent(k3, {
4483
+ this.checked = !this.checked, this.dispatchEvent(new CustomEvent(B3, {
4484
4484
  detail: this.checked,
4485
4485
  bubbles: !0,
4486
4486
  composed: !0
@@ -4504,7 +4504,7 @@ const k3 = "anduin-switcher:change", d5 = class d5 extends u {
4504
4504
  `;
4505
4505
  }
4506
4506
  };
4507
- d5.styles = h`
4507
+ u5.styles = g`
4508
4508
  :host { display: inline-flex; font-family: var(--font-sans); }
4509
4509
 
4510
4510
  label {
@@ -4568,20 +4568,20 @@ d5.styles = h`
4568
4568
  line-height: 20px;
4569
4569
  }
4570
4570
  `;
4571
- let k1 = d5;
4572
- i4([
4573
- n({ type: Boolean })
4574
- ], k1.prototype, "checked");
4575
- i4([
4576
- n({ type: Boolean })
4577
- ], k1.prototype, "disabled");
4578
- customElements.get("anduin-switcher") || customElements.define("anduin-switcher", k1);
4579
- var $3 = Object.defineProperty, b = (l, e, t, i) => {
4580
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
4581
- (C = l[r]) && (o = C(e, t, o) || o);
4582
- return o && $3(e, t, o), o;
4571
+ let B1 = u5;
4572
+ C4([
4573
+ C({ type: Boolean })
4574
+ ], B1.prototype, "checked");
4575
+ C4([
4576
+ C({ type: Boolean })
4577
+ ], B1.prototype, "disabled");
4578
+ customElements.get("anduin-switcher") || customElements.define("anduin-switcher", B1);
4579
+ var z3 = Object.defineProperty, y = (l, e, t, i) => {
4580
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
4581
+ (n = l[r]) && (o = n(e, t, o) || o);
4582
+ return o && z3(e, t, o), o;
4583
4583
  };
4584
- const E5 = "anduin-dropdown:change", c5 = class c5 extends u {
4584
+ const S5 = "anduin-dropdown:change", h5 = class h5 extends h {
4585
4585
  constructor() {
4586
4586
  super(...arguments), this.value = "", this.placeholder = "Select...", this.options = [], this.icon = "", this.searchable = !0, this.disabled = !1, this.placement = "bottom-start", this.appearance = "filled", this.variant = "gray0", this.size = "default", this.fullWidth = !1, this._open = !1, this._query = "", this._onOutsideClick = (e) => {
4587
4587
  var t;
@@ -4613,14 +4613,14 @@ const E5 = "anduin-dropdown:change", c5 = class c5 extends u {
4613
4613
  e.key === "Escape" && (this._open = !1, this._query = "", (t = this._triggerEl) == null || t.focus());
4614
4614
  }
4615
4615
  _onClear(e) {
4616
- e.stopPropagation(), this.value = "", this.dispatchEvent(new CustomEvent(E5, {
4616
+ e.stopPropagation(), this.value = "", this.dispatchEvent(new CustomEvent(S5, {
4617
4617
  detail: "",
4618
4618
  bubbles: !0,
4619
4619
  composed: !0
4620
4620
  }));
4621
4621
  }
4622
4622
  _selectOption(e) {
4623
- this.value = e.value, this._open = !1, this._query = "", this.dispatchEvent(new CustomEvent(E5, {
4623
+ this.value = e.value, this._open = !1, this._query = "", this.dispatchEvent(new CustomEvent(S5, {
4624
4624
  detail: e.value,
4625
4625
  bubbles: !0,
4626
4626
  composed: !0
@@ -4633,13 +4633,13 @@ const E5 = "anduin-dropdown:change", c5 = class c5 extends u {
4633
4633
  t.style.transform = "none";
4634
4634
  const r = t.getBoundingClientRect();
4635
4635
  t.style.transform = o;
4636
- const C = t.querySelector(".panel__inner");
4637
- C && (C.style.minWidth = `${i.width}px`);
4638
- const a = t.getBoundingClientRect(), d = 4, p = window.innerWidth, g = window.innerHeight, v = 8, H = g - i.bottom - d, f = i.top - d, l1 = a.height <= H || H >= f ? i.bottom + d : i.top - a.height - d;
4639
- let $ = i.left;
4640
- this.placement === "bottom-end" ? $ = i.right - a.width : this.placement === "bottom" && ($ = i.left + i.width / 2 - a.width / 2), $ = Math.max(v, Math.min($, p - a.width - v));
4641
- const q = Math.max(v, Math.min(l1, g - a.height - v));
4642
- t.style.transform = `translate(${Math.round($ - r.left)}px, ${Math.round(q - r.top)}px)`;
4636
+ const n = t.querySelector(".panel__inner");
4637
+ n && (n.style.minWidth = `${i.width}px`);
4638
+ const a = t.getBoundingClientRect(), d = 4, p = window.innerWidth, u = window.innerHeight, v = 8, H = u - i.bottom - d, f = i.top - d, I = a.height <= H || H >= f ? i.bottom + d : i.top - a.height - d;
4639
+ let x = i.left;
4640
+ this.placement === "bottom-end" ? x = i.right - a.width : this.placement === "bottom" && (x = i.left + i.width / 2 - a.width / 2), x = Math.max(v, Math.min(x, p - a.width - v));
4641
+ const S = Math.max(v, Math.min(I, u - a.height - v));
4642
+ t.style.transform = `translate(${Math.round(x - r.left)}px, ${Math.round(S - r.top)}px)`;
4643
4643
  }
4644
4644
  get _filteredOptions() {
4645
4645
  if (!this._query) return this.options;
@@ -4706,7 +4706,7 @@ const E5 = "anduin-dropdown:change", c5 = class c5 extends u {
4706
4706
  `;
4707
4707
  }
4708
4708
  };
4709
- c5.styles = h`
4709
+ h5.styles = g`
4710
4710
  :host { display: inline-block; font-family: var(--font-sans); }
4711
4711
  :host([full-width]) { display: block; width: 100%; }
4712
4712
  :host([full-width]) .trigger { width: 100%; }
@@ -4886,67 +4886,67 @@ c5.styles = h`
4886
4886
  text-align: center;
4887
4887
  }
4888
4888
  `;
4889
- let V = c5;
4890
- b([
4891
- n()
4892
- ], V.prototype, "value");
4893
- b([
4894
- n()
4895
- ], V.prototype, "placeholder");
4896
- b([
4897
- n({ attribute: !1 })
4898
- ], V.prototype, "options");
4899
- b([
4900
- n()
4901
- ], V.prototype, "icon");
4902
- b([
4903
- n({ type: Boolean })
4904
- ], V.prototype, "searchable");
4905
- b([
4906
- n({ type: Boolean })
4907
- ], V.prototype, "disabled");
4908
- b([
4909
- n()
4910
- ], V.prototype, "placement");
4911
- b([
4912
- n()
4913
- ], V.prototype, "appearance");
4914
- b([
4915
- n()
4916
- ], V.prototype, "variant");
4917
- b([
4918
- n()
4919
- ], V.prototype, "size");
4920
- b([
4921
- n({ type: Boolean, attribute: "full-width", reflect: !0 })
4922
- ], V.prototype, "fullWidth");
4923
- b([
4924
- y()
4925
- ], V.prototype, "_open");
4926
- b([
4927
- y()
4928
- ], V.prototype, "_query");
4929
- b([
4930
- w(".trigger")
4931
- ], V.prototype, "_triggerEl");
4932
- b([
4933
- w(".panel")
4934
- ], V.prototype, "_panelEl");
4935
- b([
4936
- w("anduin-input")
4937
- ], V.prototype, "_searchEl");
4938
- customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown", V);
4939
- var E3 = Object.defineProperty, U = (l, e, t, i) => {
4940
- for (var o = void 0, r = l.length - 1, C; r >= 0; r--)
4941
- (C = l[r]) && (o = C(e, t, o) || o);
4942
- return o && E3(e, t, o), o;
4889
+ let L = h5;
4890
+ y([
4891
+ C()
4892
+ ], L.prototype, "value");
4893
+ y([
4894
+ C()
4895
+ ], L.prototype, "placeholder");
4896
+ y([
4897
+ C({ attribute: !1 })
4898
+ ], L.prototype, "options");
4899
+ y([
4900
+ C()
4901
+ ], L.prototype, "icon");
4902
+ y([
4903
+ C({ type: Boolean })
4904
+ ], L.prototype, "searchable");
4905
+ y([
4906
+ C({ type: Boolean })
4907
+ ], L.prototype, "disabled");
4908
+ y([
4909
+ C()
4910
+ ], L.prototype, "placement");
4911
+ y([
4912
+ C()
4913
+ ], L.prototype, "appearance");
4914
+ y([
4915
+ C()
4916
+ ], L.prototype, "variant");
4917
+ y([
4918
+ C()
4919
+ ], L.prototype, "size");
4920
+ y([
4921
+ C({ type: Boolean, attribute: "full-width", reflect: !0 })
4922
+ ], L.prototype, "fullWidth");
4923
+ y([
4924
+ M()
4925
+ ], L.prototype, "_open");
4926
+ y([
4927
+ M()
4928
+ ], L.prototype, "_query");
4929
+ y([
4930
+ R(".trigger")
4931
+ ], L.prototype, "_triggerEl");
4932
+ y([
4933
+ R(".panel")
4934
+ ], L.prototype, "_panelEl");
4935
+ y([
4936
+ R("anduin-input")
4937
+ ], L.prototype, "_searchEl");
4938
+ customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown", L);
4939
+ var S3 = Object.defineProperty, Y = (l, e, t, i) => {
4940
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
4941
+ (n = l[r]) && (o = n(e, t, o) || o);
4942
+ return o && S3(e, t, o), o;
4943
4943
  };
4944
- const v2 = "anduin-close", A3 = "anduin-after-close", B3 = 300, A5 = 250, z3 = /* @__PURE__ */ new Map([
4944
+ const V2 = "anduin-close", F3 = "anduin-after-close", P3 = 300, F5 = 250, O3 = /* @__PURE__ */ new Map([
4945
4945
  ["320", 320],
4946
4946
  ["360", 360],
4947
4947
  ["400", 400],
4948
4948
  ["640", 640]
4949
- ]), p5 = class p5 extends u {
4949
+ ]), v5 = class v5 extends h {
4950
4950
  constructor() {
4951
4951
  super(...arguments), this.open = !1, this.heading = "", this.hideHeader = !1, this.hideFooter = !1, this.defaultWidth = "320", this.allowInteractOutside = !1, this._leaving = !1, this._width = 320, this._resizing = !1, this._startX = 0, this._startWidth = 0, this._onResizeStart = (e) => {
4952
4952
  this._resizing = !0, this._startX = e.clientX, this._startWidth = this._width, e.currentTarget.setPointerCapture(e.pointerId), e.preventDefault();
@@ -4962,21 +4962,21 @@ const v2 = "anduin-close", A3 = "anduin-after-close", B3 = 300, A5 = 250, z3 = /
4962
4962
  };
4963
4963
  }
4964
4964
  willUpdate(e) {
4965
- e.has("defaultWidth") && (this._width = z3.get(this.defaultWidth) ?? (parseInt(this.defaultWidth) || 320));
4965
+ e.has("defaultWidth") && (this._width = O3.get(this.defaultWidth) ?? (parseInt(this.defaultWidth) || 320));
4966
4966
  }
4967
4967
  updated(e) {
4968
4968
  e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown")) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(() => {
4969
- this._leaving = !1, this.classList.remove("is-shown"), this.dispatchEvent(new CustomEvent(A3, { bubbles: !0, composed: !0 }));
4970
- }, A5)));
4969
+ this._leaving = !1, this.classList.remove("is-shown"), this.dispatchEvent(new CustomEvent(F3, { bubbles: !0, composed: !0 }));
4970
+ }, F5)));
4971
4971
  }
4972
4972
  _dispatch(e) {
4973
4973
  this.dispatchEvent(new CustomEvent(e, { bubbles: !0, composed: !0 }));
4974
4974
  }
4975
4975
  _onClose() {
4976
- this._dispatch(v2);
4976
+ this._dispatch(V2);
4977
4977
  }
4978
4978
  _onBackdropClick() {
4979
- this._dispatch(v2);
4979
+ this._dispatch(V2);
4980
4980
  }
4981
4981
  render() {
4982
4982
  const e = this._leaving;
@@ -5018,7 +5018,7 @@ const v2 = "anduin-close", A3 = "anduin-after-close", B3 = 300, A5 = 250, z3 = /
5018
5018
  `;
5019
5019
  }
5020
5020
  };
5021
- p5.styles = h`
5021
+ v5.styles = g`
5022
5022
  :host {
5023
5023
  display: none;
5024
5024
  font-family: var(--font-sans);
@@ -5055,13 +5055,13 @@ p5.styles = h`
5055
5055
  flex-direction: column;
5056
5056
  background: #fff;
5057
5057
  box-shadow: -8px 0 24px 0 rgba(29, 41, 57, 0.12), -2px 0 8px 0 rgba(29, 41, 57, 0.08);
5058
- animation: drawerIn ${B3}ms cubic-bezier(0.05, 0.7, 0.1, 1) forwards;
5058
+ animation: drawerIn ${P3}ms cubic-bezier(0.05, 0.7, 0.1, 1) forwards;
5059
5059
  min-width: 200px;
5060
5060
  max-width: 90vw;
5061
5061
  pointer-events: auto;
5062
5062
  }
5063
5063
  .drawer.is-leaving {
5064
- animation: drawerOut ${A5}ms cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
5064
+ animation: drawerOut ${F5}ms cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
5065
5065
  }
5066
5066
  @media (max-width: 640px) {
5067
5067
  .drawer {
@@ -5122,36 +5122,36 @@ p5.styles = h`
5122
5122
  border-top: 1px solid var(--color-gray-3, #e4e7ec);
5123
5123
  }
5124
5124
  `;
5125
- let R = p5;
5126
- U([
5127
- n({ type: Boolean, reflect: !0 })
5128
- ], R.prototype, "open");
5129
- U([
5130
- n()
5131
- ], R.prototype, "heading");
5132
- U([
5133
- n({ type: Boolean, attribute: "hide-header" })
5134
- ], R.prototype, "hideHeader");
5135
- U([
5136
- n({ type: Boolean, attribute: "hide-footer" })
5137
- ], R.prototype, "hideFooter");
5138
- U([
5139
- n({ attribute: "default-width" })
5140
- ], R.prototype, "defaultWidth");
5141
- U([
5142
- n({ type: Boolean, attribute: "allow-interact-outside" })
5143
- ], R.prototype, "allowInteractOutside");
5144
- U([
5145
- y()
5146
- ], R.prototype, "_leaving");
5147
- U([
5148
- y()
5149
- ], R.prototype, "_width");
5150
- customElements.get("anduin-drawer") || customElements.define("anduin-drawer", R);
5151
- class F3 extends HTMLElement {
5125
+ let E = v5;
5126
+ Y([
5127
+ C({ type: Boolean, reflect: !0 })
5128
+ ], E.prototype, "open");
5129
+ Y([
5130
+ C()
5131
+ ], E.prototype, "heading");
5132
+ Y([
5133
+ C({ type: Boolean, attribute: "hide-header" })
5134
+ ], E.prototype, "hideHeader");
5135
+ Y([
5136
+ C({ type: Boolean, attribute: "hide-footer" })
5137
+ ], E.prototype, "hideFooter");
5138
+ Y([
5139
+ C({ attribute: "default-width" })
5140
+ ], E.prototype, "defaultWidth");
5141
+ Y([
5142
+ C({ type: Boolean, attribute: "allow-interact-outside" })
5143
+ ], E.prototype, "allowInteractOutside");
5144
+ Y([
5145
+ M()
5146
+ ], E.prototype, "_leaving");
5147
+ Y([
5148
+ M()
5149
+ ], E.prototype, "_width");
5150
+ customElements.get("anduin-drawer") || customElements.define("anduin-drawer", E);
5151
+ class D3 extends HTMLElement {
5152
5152
  constructor() {
5153
5153
  super(...arguments), this._onClick = () => {
5154
- this.dispatchEvent(new CustomEvent(v2, { bubbles: !0, composed: !0 }));
5154
+ this.dispatchEvent(new CustomEvent(V2, { bubbles: !0, composed: !0 }));
5155
5155
  };
5156
5156
  }
5157
5157
  connectedCallback() {
@@ -5161,84 +5161,435 @@ class F3 extends HTMLElement {
5161
5161
  this.removeEventListener("click", this._onClick);
5162
5162
  }
5163
5163
  }
5164
- customElements.get("anduin-drawer-close") || customElements.define("anduin-drawer-close", F3);
5164
+ customElements.get("anduin-drawer-close") || customElements.define("anduin-drawer-close", D3);
5165
+ var I3 = Object.defineProperty, m = (l, e, t, i) => {
5166
+ for (var o = void 0, r = l.length - 1, n; r >= 0; r--)
5167
+ (n = l[r]) && (o = n(e, t, o) || o);
5168
+ return o && I3(e, t, o), o;
5169
+ };
5170
+ const i2 = "anduin-suggestion:change", T3 = "anduin-suggestion:select", N3 = "anduin-suggestion:clear", g5 = class g5 extends h {
5171
+ constructor() {
5172
+ super(...arguments), this.value = "", this.size = "default", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.status = "", this.startIcon = "", this.endIcon = "", this.clearable = !1, this.suggestions = [], this.filter = !1, this.hideWhenEmpty = !1, this.emptyText = "No suggestions", this._open = !1, this._activeIndex = -1, this._onDocumentMouseDown = (e) => {
5173
+ var t;
5174
+ !this.contains(e.target) && !((t = this.shadowRoot) != null && t.contains(e.target)) && (this._open = !1);
5175
+ }, this._onScrollOrResize = () => {
5176
+ this._open && this._updatePosition();
5177
+ };
5178
+ }
5179
+ connectedCallback() {
5180
+ super.connectedCallback(), document.addEventListener("mousedown", this._onDocumentMouseDown), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize);
5181
+ const e = this.closest("anduin-field");
5182
+ e && e.addEventListener(v1, (t) => {
5183
+ var o;
5184
+ const i = t;
5185
+ this.inputid && this.inputid === i.detail && ((o = this._inputEl) == null || o.focus());
5186
+ });
5187
+ }
5188
+ disconnectedCallback() {
5189
+ super.disconnectedCallback(), document.removeEventListener("mousedown", this._onDocumentMouseDown), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize);
5190
+ }
5191
+ updated(e) {
5192
+ this._inputEl && this._inputEl.value !== this.value && (this._inputEl.value = this.value), this._open && (e.has("_open") || e.has("value")) && requestAnimationFrame(() => this._updatePosition());
5193
+ }
5194
+ _normalized() {
5195
+ return this.suggestions.map((e) => typeof e == "string" ? { value: e, label: e } : { label: e.value, ...e });
5196
+ }
5197
+ get _filteredSuggestions() {
5198
+ const e = this._normalized();
5199
+ if (!this.filter || !this.value) return e;
5200
+ const t = this.value.toLowerCase();
5201
+ return e.filter((i) => (i.label ?? i.value).toLowerCase().includes(t));
5202
+ }
5203
+ _openPanel() {
5204
+ this.disabled || this.readonly || (this._open = !0, this._activeIndex = -1);
5205
+ }
5206
+ _onFocus() {
5207
+ this._openPanel();
5208
+ }
5209
+ _onInput() {
5210
+ this.value = this._inputEl.value, this._open || this._openPanel(), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(i2, {
5211
+ detail: this.value,
5212
+ bubbles: !0,
5213
+ composed: !0
5214
+ }));
5215
+ }
5216
+ _onKeyDown(e) {
5217
+ const t = this._filteredSuggestions;
5218
+ if (e.key === "ArrowDown") {
5219
+ if (e.preventDefault(), !this._open) {
5220
+ this._openPanel();
5221
+ return;
5222
+ }
5223
+ if (t.length === 0) return;
5224
+ this._activeIndex = (this._activeIndex + 1) % t.length, this._scrollActiveIntoView();
5225
+ } else if (e.key === "ArrowUp") {
5226
+ if (e.preventDefault(), !this._open) {
5227
+ this._openPanel();
5228
+ return;
5229
+ }
5230
+ if (t.length === 0) return;
5231
+ this._activeIndex = this._activeIndex <= 0 ? t.length - 1 : this._activeIndex - 1, this._scrollActiveIntoView();
5232
+ } else e.key === "Enter" ? this._open && this._activeIndex >= 0 && this._activeIndex < t.length && (e.preventDefault(), this._selectSuggestion(t[this._activeIndex])) : e.key === "Escape" && this._open && (e.preventDefault(), this._open = !1);
5233
+ }
5234
+ _scrollActiveIntoView() {
5235
+ requestAnimationFrame(() => {
5236
+ var t;
5237
+ const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector(".option--active");
5238
+ e == null || e.scrollIntoView({ block: "nearest" });
5239
+ });
5240
+ }
5241
+ _selectSuggestion(e) {
5242
+ var t;
5243
+ this.value = e.value, this._inputEl && (this._inputEl.value = e.value), this._open = !1, this.dispatchEvent(new CustomEvent(i2, {
5244
+ detail: this.value,
5245
+ bubbles: !0,
5246
+ composed: !0
5247
+ })), this.dispatchEvent(new CustomEvent(T3, {
5248
+ detail: e,
5249
+ bubbles: !0,
5250
+ composed: !0
5251
+ })), (t = this._inputEl) == null || t.focus();
5252
+ }
5253
+ _onClear() {
5254
+ var e;
5255
+ this.value = "", this._inputEl && (this._inputEl.value = ""), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(i2, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(N3, { bubbles: !0, composed: !0 })), (e = this._inputEl) == null || e.focus();
5256
+ }
5257
+ _updatePosition() {
5258
+ var X;
5259
+ const e = (X = this.shadowRoot) == null ? void 0 : X.querySelector(".input-wrapper"), t = this._panelEl;
5260
+ if (!e || !t) return;
5261
+ const i = e.getBoundingClientRect(), o = t.style.transform;
5262
+ t.style.transform = "none";
5263
+ const r = t.getBoundingClientRect();
5264
+ t.style.transform = o;
5265
+ const n = t.querySelector(".panel__inner");
5266
+ n && (n.style.minWidth = `${i.width}px`);
5267
+ const a = t.getBoundingClientRect(), d = 4, p = window.innerWidth, u = window.innerHeight, v = 8, H = u - i.bottom - d, f = i.top - d, I = a.height <= H || H >= f ? i.bottom + d : i.top - a.height - d;
5268
+ let x = i.left;
5269
+ x = Math.max(v, Math.min(x, p - a.width - v));
5270
+ const S = Math.max(v, Math.min(I, u - a.height - v));
5271
+ t.style.transform = `translate(${Math.round(x - r.left)}px, ${Math.round(S - r.top)}px)`;
5272
+ }
5273
+ render() {
5274
+ const e = this.size === "small" ? "input--small" : this.size === "large" ? "input--large" : "input--default", t = this.status ? `input--${this.status}` : "", i = !!this.startIcon, o = !!this.endIcon || this.clearable && !!this.value, r = this.clearable && !!this.value && !this.disabled && !this.readonly, n = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", a = this.size === "small" ? "10" : this.size === "large" ? "16" : "14", d = this._filteredSuggestions, p = this._open && (!this.hideWhenEmpty || d.length > 0);
5275
+ return s`
5276
+ <div class="input-wrapper">
5277
+ ${i ? s`
5278
+ <span class="input__start">
5279
+ <anduin-icon name=${this.startIcon} size=${n}></anduin-icon>
5280
+ </span>
5281
+ ` : c}
5282
+
5283
+ <input
5284
+ class="input ${e}
5285
+ ${i ? "input--has-start" : ""}
5286
+ ${o ? "input--has-end" : ""}
5287
+ ${this.disabled ? "input--disabled" : ""}
5288
+ ${this.readonly ? "input--readonly" : ""}
5289
+ ${t}"
5290
+ type="text"
5291
+ ?disabled=${this.disabled}
5292
+ ?readonly=${this.readonly}
5293
+ id=${this.inputid || ""}
5294
+ placeholder=${this.placeholder || ""}
5295
+ role="combobox"
5296
+ aria-autocomplete="list"
5297
+ aria-expanded=${this._open}
5298
+ part="input"
5299
+ @input=${this._onInput}
5300
+ @focus=${this._onFocus}
5301
+ @keydown=${this._onKeyDown}
5302
+ />
5303
+
5304
+ ${o ? s`
5305
+ <span class="input__end">
5306
+ ${r ? s`
5307
+ <button class="input__clear" type="button" @click=${this._onClear} aria-label="Clear">
5308
+ <anduin-icon name="cross" size=${a}></anduin-icon>
5309
+ </button>
5310
+ ` : c}
5311
+ ${this.endIcon ? s`
5312
+ <anduin-icon name=${this.endIcon} size=${n}></anduin-icon>
5313
+ ` : c}
5314
+ </span>
5315
+ ` : c}
5316
+ </div>
5317
+
5318
+ <div class="panel${p ? " panel--open" : ""}" part="panel">
5319
+ <div class="panel__inner" role="listbox">
5320
+ <div class="options">
5321
+ ${d.length ? d.map((u, v) => s`
5322
+ <div
5323
+ class="option${v === this._activeIndex ? " option--active" : ""}"
5324
+ role="option"
5325
+ aria-selected=${v === this._activeIndex}
5326
+ @mouseenter=${() => {
5327
+ this._activeIndex = v;
5328
+ }}
5329
+ @mousedown=${(H) => {
5330
+ H.preventDefault(), this._selectSuggestion(u);
5331
+ }}
5332
+ >
5333
+ ${u.icon ? s`<anduin-icon name=${u.icon} size="16"></anduin-icon>` : c}
5334
+ <span class="option__label">${u.label ?? u.value}</span>
5335
+ </div>
5336
+ `) : s`<div class="empty">${this.emptyText}</div>`}
5337
+ </div>
5338
+ </div>
5339
+ </div>
5340
+ `;
5341
+ }
5342
+ };
5343
+ g5.styles = g`
5344
+ :host { display: block; font-family: var(--font-sans); position: relative; }
5345
+
5346
+ .input-wrapper { position: relative; display: flex; align-items: center; }
5347
+
5348
+ .input {
5349
+ display: block; width: 100%; border: 1px solid var(--color-gray-4); border-radius: 4px;
5350
+ transition: all 0.1s, box-shadow 0.3s ease; line-height: 20px;
5351
+ color: var(--color-gray-8); background-color: var(--color-gray-0);
5352
+ box-sizing: border-box; font-family: var(--font-sans);
5353
+ }
5354
+ .input:focus { outline: none; border-color: var(--color-primary-4); }
5355
+ .input:active { box-shadow: 0 0 0 2px var(--color-primary-1); }
5356
+
5357
+ .input--small { height: 24px; padding: 0 6px; font-size: 11px; }
5358
+ .input--default { height: 32px; padding: 0 12px; font-size: 13px; }
5359
+ .input--large { height: 40px; padding: 0 16px; font-size: 15px; }
5360
+
5361
+ .input--has-start.input--small { padding-left: 26px; }
5362
+ .input--has-start.input--default { padding-left: 32px; }
5363
+ .input--has-start.input--large { padding-left: 42px; }
5364
+
5365
+ .input--has-end.input--small { padding-right: 26px; }
5366
+ .input--has-end.input--default { padding-right: 32px; }
5367
+ .input--has-end.input--large { padding-right: 42px; }
5368
+
5369
+ .input--disabled { color: var(--color-gray-7); background-color: var(--color-gray-2); cursor: not-allowed; }
5370
+ .input--readonly { background-color: var(--color-gray-2); }
5371
+ .input--valid { border-color: var(--color-success-4); }
5372
+ .input--invalid { border-color: var(--color-danger-4); }
5373
+ .input--warning { border-color: var(--color-warning-4); }
5374
+ .input--loading { border-color: var(--color-gray-4); }
5375
+
5376
+ .input__start,
5377
+ .input__end {
5378
+ position: absolute; top: 0; bottom: 0;
5379
+ display: flex; align-items: center;
5380
+ pointer-events: none;
5381
+ color: var(--color-gray-6);
5382
+ }
5383
+ .input__start { left: 8px; }
5384
+ .input__end { right: 8px; gap: 2px; }
5385
+
5386
+ .input__clear {
5387
+ display: none; align-items: center; justify-content: center;
5388
+ pointer-events: auto; cursor: pointer;
5389
+ background: none; border: none; padding: 0;
5390
+ color: var(--color-gray-5);
5391
+ border-radius: 3px;
5392
+ line-height: 0;
5393
+ }
5394
+ .input__clear:hover { color: var(--color-gray-7); }
5395
+ :host(:focus-within) .input__clear { display: flex; }
5396
+
5397
+ /* ── Panel ─────────────────────────────────────────────────── */
5398
+ .panel {
5399
+ position: fixed;
5400
+ top: 0;
5401
+ left: 0;
5402
+ z-index: 200;
5403
+ visibility: hidden;
5404
+ pointer-events: none;
5405
+ }
5406
+ .panel--open { visibility: visible; pointer-events: auto; }
5407
+
5408
+ .panel__inner {
5409
+ background: var(--color-white, #fff);
5410
+ border-radius: 8px;
5411
+ box-shadow: 0px 2px 8px 0px rgba(29, 41, 57, 0.08),
5412
+ 0px 8px 24px 0px rgba(29, 41, 57, 0.12);
5413
+ min-width: 200px;
5414
+ max-height: var(--suggestion-max-height, 280px);
5415
+ display: flex;
5416
+ flex-direction: column;
5417
+ overflow: hidden;
5418
+ opacity: 0;
5419
+ transform: scale(0.97) translateY(-4px);
5420
+ transform-origin: top left;
5421
+ transition: opacity 150ms ease, transform 150ms ease;
5422
+ }
5423
+ .panel--open .panel__inner {
5424
+ opacity: 1;
5425
+ transform: scale(1) translateY(0);
5426
+ }
5427
+
5428
+ .options {
5429
+ overflow-y: auto;
5430
+ padding: 4px;
5431
+ }
5432
+ .option {
5433
+ display: flex;
5434
+ align-items: center;
5435
+ gap: 8px;
5436
+ padding: 8px;
5437
+ border-radius: 4px;
5438
+ cursor: pointer;
5439
+ font-size: 13px;
5440
+ line-height: 20px;
5441
+ color: var(--color-gray-9, #101828);
5442
+ user-select: none;
5443
+ }
5444
+ .option:hover,
5445
+ .option--active { background: var(--color-gray-2, #f2f4f7); }
5446
+ .option:active { background: var(--color-gray-3, #e4e7ec); }
5447
+ .option__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
5448
+
5449
+ .empty {
5450
+ padding: 12px 16px;
5451
+ font-size: 13px;
5452
+ color: var(--color-gray-5, #98a1b2);
5453
+ text-align: center;
5454
+ }
5455
+ `;
5456
+ let V = g5;
5457
+ m([
5458
+ C()
5459
+ ], V.prototype, "value");
5460
+ m([
5461
+ C()
5462
+ ], V.prototype, "size");
5463
+ m([
5464
+ C({ type: Boolean })
5465
+ ], V.prototype, "disabled");
5466
+ m([
5467
+ C({ type: Boolean })
5468
+ ], V.prototype, "readonly");
5469
+ m([
5470
+ C()
5471
+ ], V.prototype, "placeholder");
5472
+ m([
5473
+ C()
5474
+ ], V.prototype, "inputid");
5475
+ m([
5476
+ C()
5477
+ ], V.prototype, "status");
5478
+ m([
5479
+ C({ attribute: "start-icon" })
5480
+ ], V.prototype, "startIcon");
5481
+ m([
5482
+ C({ attribute: "end-icon" })
5483
+ ], V.prototype, "endIcon");
5484
+ m([
5485
+ C({ type: Boolean })
5486
+ ], V.prototype, "clearable");
5487
+ m([
5488
+ C({ attribute: !1 })
5489
+ ], V.prototype, "suggestions");
5490
+ m([
5491
+ C({ type: Boolean })
5492
+ ], V.prototype, "filter");
5493
+ m([
5494
+ C({ type: Boolean, attribute: "hide-when-empty" })
5495
+ ], V.prototype, "hideWhenEmpty");
5496
+ m([
5497
+ C({ attribute: "empty-text" })
5498
+ ], V.prototype, "emptyText");
5499
+ m([
5500
+ M()
5501
+ ], V.prototype, "_open");
5502
+ m([
5503
+ M()
5504
+ ], V.prototype, "_activeIndex");
5505
+ m([
5506
+ R("input")
5507
+ ], V.prototype, "_inputEl");
5508
+ m([
5509
+ R(".panel")
5510
+ ], V.prototype, "_panelEl");
5511
+ customElements.get("anduin-suggestion") || customElements.define("anduin-suggestion", V);
5165
5512
  export {
5166
- m3 as $,
5167
- A,
5168
- F as B,
5169
- d1 as C,
5170
- B as D,
5171
- V1 as E,
5172
- k1 as F,
5173
- _1 as G,
5174
- z as H,
5175
- n1 as I,
5176
- y1 as J,
5177
- a1 as K,
5178
- r2 as L,
5179
- x as M,
5180
- T as N,
5181
- w1 as O,
5182
- x1 as P,
5183
- a2 as Q,
5184
- n2 as R,
5185
- U1 as S,
5186
- s2 as T,
5187
- N5 as U,
5188
- N4 as V,
5189
- A3 as W,
5190
- v2 as X,
5191
- E5 as Y,
5192
- G5 as Z,
5193
- E1 as _,
5194
- D1 as a,
5195
- y5 as a0,
5196
- U4 as a1,
5197
- p2 as a2,
5198
- d3 as a3,
5199
- u1 as a4,
5200
- d2 as a5,
5513
+ v1 as $,
5514
+ z as A,
5515
+ O as B,
5516
+ u1 as C,
5517
+ F as D,
5518
+ M1 as E,
5519
+ V as F,
5520
+ B1 as G,
5521
+ k1 as H,
5522
+ P as I,
5523
+ d1 as J,
5524
+ R1 as K,
5525
+ c1 as L,
5526
+ a2 as M,
5527
+ $ as N,
5528
+ q as O,
5529
+ A1 as P,
5530
+ $1 as Q,
5531
+ c2 as R,
5532
+ d2 as S,
5533
+ W1 as T,
5534
+ p2 as U,
5535
+ W5 as V,
5536
+ W4 as W,
5537
+ F3 as X,
5538
+ V2 as Y,
5539
+ S5 as Z,
5540
+ J5 as _,
5541
+ T1 as a,
5542
+ _3 as a0,
5543
+ R5 as a1,
5544
+ Y4 as a2,
5545
+ v2 as a3,
5546
+ h3 as a4,
5547
+ f1 as a5,
5201
5548
  u2 as a6,
5202
- h3 as a7,
5203
- k3 as a8,
5204
- Y4 as a9,
5205
- Y5 as aa,
5206
- W1 as ab,
5207
- K4 as ac,
5208
- W4 as ad,
5549
+ g2 as a7,
5550
+ H3 as a8,
5551
+ i2 as a9,
5552
+ N3 as aa,
5553
+ T3 as ab,
5554
+ B3 as ac,
5555
+ Q4 as ad,
5209
5556
  Q5 as ae,
5210
- e4 as af,
5211
- M2 as ag,
5212
- K5 as ah,
5213
- J5 as ai,
5214
- t4 as aj,
5215
- C3 as ak,
5216
- j5 as al,
5217
- Z3 as am,
5218
- D3 as an,
5219
- b1 as b,
5220
- L as c,
5221
- I1 as d,
5222
- I as e,
5223
- m1 as f,
5224
- T1 as g,
5225
- R as h,
5226
- F3 as i,
5227
- V as j,
5228
- j1 as k,
5229
- o2 as l,
5230
- i2 as m,
5231
- l2 as n,
5232
- Z1 as o,
5233
- R1 as p,
5234
- L1 as q,
5235
- Z as r,
5236
- N1 as s,
5237
- J as t,
5238
- s1 as u,
5239
- c3 as v,
5240
- p3 as w,
5241
- E as x,
5242
- c2 as y,
5243
- M1 as z
5557
+ Y1 as af,
5558
+ t3 as ag,
5559
+ K4 as ah,
5560
+ i4 as ai,
5561
+ l4 as aj,
5562
+ _2 as ak,
5563
+ t4 as al,
5564
+ o4 as am,
5565
+ r4 as an,
5566
+ d3 as ao,
5567
+ G5 as ap,
5568
+ w3 as aq,
5569
+ W3 as ar,
5570
+ Z1 as b,
5571
+ b as c,
5572
+ N1 as d,
5573
+ U as e,
5574
+ _1 as f,
5575
+ j1 as g,
5576
+ E as h,
5577
+ D3 as i,
5578
+ L as j,
5579
+ q1 as k,
5580
+ r2 as l,
5581
+ n2 as m,
5582
+ C2 as n,
5583
+ w1 as o,
5584
+ E1 as p,
5585
+ y1 as q,
5586
+ w as r,
5587
+ U1 as s,
5588
+ o1 as t,
5589
+ p1 as u,
5590
+ v3 as v,
5591
+ g3 as w,
5592
+ B as x,
5593
+ h2 as y,
5594
+ x1 as z
5244
5595
  };