@duyluonganduin/acl-web-components 0.0.43 → 0.0.44

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 Q1 = globalThis, O2 = Q1.ShadowRoot && (Q1.ShadyCSS === void 0 || Q1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, I2 = Symbol(), G5 = /* @__PURE__ */ new WeakMap();
7
- let f4 = class {
6
+ const e2 = globalThis, G2 = e2.ShadowRoot && (e2.ShadyCSS === void 0 || e2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, q2 = Symbol(), n4 = /* @__PURE__ */ new WeakMap();
7
+ let $4 = class {
8
8
  constructor(e, t, i) {
9
- if (this._$cssResult$ = !0, i !== I2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
9
+ if (this._$cssResult$ = !0, i !== q2) 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 (O2 && e === void 0) {
15
+ if (G2 && e === void 0) {
16
16
  const i = t !== void 0 && t.length === 1;
17
- i && (e = G5.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && G5.set(t, e));
17
+ i && (e = n4.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && n4.set(t, e));
18
18
  }
19
19
  return e;
20
20
  }
@@ -22,58 +22,58 @@ let f4 = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const T4 = (r) => new f4(typeof r == "string" ? r : r + "", void 0, I2), g = (r, ...e) => {
26
- const t = r.length === 1 ? r[0] : e.reduce((i, o, l) => 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
- })(o) + r[l + 1], r[0]);
31
- return new f4(t, r, I2);
32
- }, N4 = (r, e) => {
33
- if (O2) r.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
25
+ const i3 = (n) => new $4(typeof n == "string" ? n : n + "", void 0, q2), h = (n, ...e) => {
26
+ const t = n.length === 1 ? n[0] : e.reduce((i, o, l) => i + ((r) => {
27
+ if (r._$cssResult$ === !0) return r.cssText;
28
+ if (typeof r == "number") return r;
29
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + r + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
+ })(o) + n[l + 1], n[0]);
31
+ return new $4(t, n, q2);
32
+ }, l3 = (n, e) => {
33
+ if (G2) n.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 = Q1.litNonce;
36
- o !== void 0 && i.setAttribute("nonce", o), i.textContent = t.cssText, r.appendChild(i);
35
+ const i = document.createElement("style"), o = e2.litNonce;
36
+ o !== void 0 && i.setAttribute("nonce", o), i.textContent = t.cssText, n.appendChild(i);
37
37
  }
38
- }, q5 = O2 ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((e) => {
38
+ }, r4 = G2 ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
39
39
  let t = "";
40
40
  for (const i of e.cssRules) t += i.cssText;
41
- return T4(t);
42
- })(r) : r;
41
+ return i3(t);
42
+ })(n) : n;
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: j4, defineProperty: U4, getOwnPropertyDescriptor: G4, getOwnPropertyNames: q4, getOwnPropertySymbols: W4, getPrototypeOf: Y4 } = Object, W = globalThis, W5 = W.trustedTypes, X4 = W5 ? W5.emptyScript : "", p2 = W.reactiveElementPolyfillSupport, k1 = (r, e) => r, e2 = { toAttribute(r, e) {
48
+ const { is: n3, defineProperty: r3, getOwnPropertyDescriptor: a3, getOwnPropertyNames: s3, getOwnPropertySymbols: C3, getPrototypeOf: d3 } = Object, W = globalThis, a4 = W.trustedTypes, c3 = a4 ? a4.emptyScript : "", u2 = W.reactiveElementPolyfillSupport, k1 = (n, e) => n, t2 = { toAttribute(n, e) {
49
49
  switch (e) {
50
50
  case Boolean:
51
- r = r ? X4 : null;
51
+ n = n ? c3 : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
55
- r = r == null ? r : JSON.stringify(r);
55
+ n = n == null ? n : JSON.stringify(n);
56
56
  }
57
- return r;
58
- }, fromAttribute(r, e) {
59
- let t = r;
57
+ return n;
58
+ }, fromAttribute(n, e) {
59
+ let t = n;
60
60
  switch (e) {
61
61
  case Boolean:
62
- t = r !== null;
62
+ t = n !== null;
63
63
  break;
64
64
  case Number:
65
- t = r === null ? null : Number(r);
65
+ t = n === null ? null : Number(n);
66
66
  break;
67
67
  case Object:
68
68
  case Array:
69
69
  try {
70
- t = JSON.parse(r);
70
+ t = JSON.parse(n);
71
71
  } catch {
72
72
  t = null;
73
73
  }
74
74
  }
75
75
  return t;
76
- } }, D2 = (r, e) => !j4(r, e), Y5 = { attribute: !0, type: String, converter: e2, reflect: !1, useDefault: !1, hasChanged: D2 };
76
+ } }, W2 = (n, e) => !n3(n, e), s4 = { attribute: !0, type: String, converter: t2, reflect: !1, useDefault: !1, hasChanged: W2 };
77
77
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), W.litPropertyMetadata ?? (W.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  let v1 = class extends HTMLElement {
79
79
  static addInitializer(e) {
@@ -82,35 +82,35 @@ let v1 = class extends HTMLElement {
82
82
  static get observedAttributes() {
83
83
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
84
  }
85
- static createProperty(e, t = Y5) {
85
+ static createProperty(e, t = s4) {
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 && U4(this.prototype, e, o);
88
+ o !== void 0 && r3(this.prototype, e, o);
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(e, t, i) {
92
- const { get: o, set: l } = G4(this.prototype, e) ?? { get() {
92
+ const { get: o, set: l } = a3(this.prototype, e) ?? { get() {
93
93
  return this[t];
94
- }, set(n) {
95
- this[t] = n;
94
+ }, set(r) {
95
+ this[t] = r;
96
96
  } };
97
- return { get: o, set(n) {
98
- const s = o == null ? void 0 : o.call(this);
99
- l == null || l.call(this, n), this.requestUpdate(e, s, i);
97
+ return { get: o, set(r) {
98
+ const C = o == null ? void 0 : o.call(this);
99
+ l == null || l.call(this, r), this.requestUpdate(e, C, i);
100
100
  }, configurable: !0, enumerable: !0 };
101
101
  }
102
102
  static getPropertyOptions(e) {
103
- return this.elementProperties.get(e) ?? Y5;
103
+ return this.elementProperties.get(e) ?? s4;
104
104
  }
105
105
  static _$Ei() {
106
106
  if (this.hasOwnProperty(k1("elementProperties"))) return;
107
- const e = Y4(this);
107
+ const e = d3(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
111
  if (this.hasOwnProperty(k1("finalized"))) return;
112
112
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(k1("properties"))) {
113
- const t = this.properties, i = [...q4(t), ...W4(t)];
113
+ const t = this.properties, i = [...s3(t), ...C3(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 v1 = 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(q5(o));
133
- } else e !== void 0 && t.push(q5(e));
132
+ for (const o of i) t.unshift(r4(o));
133
+ } else e !== void 0 && t.push(r4(e));
134
134
  return t;
135
135
  }
136
136
  static _$Eu(e, t) {
@@ -159,7 +159,7 @@ let v1 = class extends HTMLElement {
159
159
  }
160
160
  createRenderRoot() {
161
161
  const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
162
- return N4(e, this.constructor.elementStyles), e;
162
+ return l3(e, this.constructor.elementStyles), e;
163
163
  }
164
164
  connectedCallback() {
165
165
  var e;
@@ -184,31 +184,31 @@ let v1 = class extends HTMLElement {
184
184
  var l;
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 n = (((l = i.converter) == null ? void 0 : l.toAttribute) !== void 0 ? i.converter : e2).toAttribute(t, i.type);
188
- this._$Em = e, n == null ? this.removeAttribute(o) : this.setAttribute(o, n), this._$Em = null;
187
+ const r = (((l = i.converter) == null ? void 0 : l.toAttribute) !== void 0 ? i.converter : t2).toAttribute(t, i.type);
188
+ this._$Em = e, r == null ? this.removeAttribute(o) : this.setAttribute(o, r), this._$Em = null;
189
189
  }
190
190
  }
191
191
  _$AK(e, t) {
192
- var l, n;
192
+ var l, r;
193
193
  const i = this.constructor, o = i._$Eh.get(e);
194
194
  if (o !== void 0 && this._$Em !== o) {
195
- const s = i.getPropertyOptions(o), d = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((l = s.converter) == null ? void 0 : l.fromAttribute) !== void 0 ? s.converter : e2;
195
+ const C = i.getPropertyOptions(o), d = typeof C.converter == "function" ? { fromAttribute: C.converter } : ((l = C.converter) == null ? void 0 : l.fromAttribute) !== void 0 ? C.converter : t2;
196
196
  this._$Em = o;
197
- const p = d.fromAttribute(t, s.type);
198
- this[o] = p ?? ((n = this._$Ej) == null ? void 0 : n.get(o)) ?? p, this._$Em = null;
197
+ const u = d.fromAttribute(t, C.type);
198
+ this[o] = u ?? ((r = this._$Ej) == null ? void 0 : r.get(o)) ?? u, this._$Em = null;
199
199
  }
200
200
  }
201
201
  requestUpdate(e, t, i, o = !1, l) {
202
- var n;
202
+ var r;
203
203
  if (e !== void 0) {
204
- const s = this.constructor;
205
- if (o === !1 && (l = this[e]), i ?? (i = s.getPropertyOptions(e)), !((i.hasChanged ?? D2)(l, t) || i.useDefault && i.reflect && l === ((n = this._$Ej) == null ? void 0 : n.get(e)) && !this.hasAttribute(s._$Eu(e, i)))) return;
204
+ const C = this.constructor;
205
+ if (o === !1 && (l = this[e]), i ?? (i = C.getPropertyOptions(e)), !((i.hasChanged ?? W2)(l, t) || i.useDefault && i.reflect && l === ((r = this._$Ej) == null ? void 0 : r.get(e)) && !this.hasAttribute(C._$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: l }, n) {
211
- i && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, n ?? t ?? this[e]), l !== !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));
210
+ C(e, t, { useDefault: i, reflect: o, wrapped: l }, r) {
211
+ i && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, r ?? t ?? this[e]), l !== !0 || r !== 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 v1 = 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 [l, n] of this._$Ep) this[l] = n;
231
+ for (const [l, r] of this._$Ep) this[l] = r;
232
232
  this._$Ep = void 0;
233
233
  }
234
234
  const o = this.constructor.elementProperties;
235
- if (o.size > 0) for (const [l, n] of o) {
236
- const { wrapped: s } = n, d = this[l];
237
- s !== !0 || this._$AL.has(l) || d === void 0 || this.C(l, void 0, n, d);
235
+ if (o.size > 0) for (const [l, r] of o) {
236
+ const { wrapped: C } = r, d = this[l];
237
+ C !== !0 || this._$AL.has(l) || d === void 0 || this.C(l, void 0, r, d);
238
238
  }
239
239
  }
240
240
  let e = !1;
@@ -278,56 +278,56 @@ let v1 = class extends HTMLElement {
278
278
  firstUpdated(e) {
279
279
  }
280
280
  };
281
- v1.elementStyles = [], v1.shadowRootOptions = { mode: "open" }, v1[k1("elementProperties")] = /* @__PURE__ */ new Map(), v1[k1("finalized")] = /* @__PURE__ */ new Map(), p2 == null || p2({ ReactiveElement: v1 }), (W.reactiveElementVersions ?? (W.reactiveElementVersions = [])).push("2.1.2");
281
+ v1.elementStyles = [], v1.shadowRootOptions = { mode: "open" }, v1[k1("elementProperties")] = /* @__PURE__ */ new Map(), v1[k1("finalized")] = /* @__PURE__ */ new Map(), u2 == null || u2({ ReactiveElement: v1 }), (W.reactiveElementVersions ?? (W.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 $1 = globalThis, X5 = (r) => r, t2 = $1.trustedTypes, K5 = t2 ? t2.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, H4 = "$lit$", q = `lit$${Math.random().toFixed(9).slice(2)}$`, m4 = "?" + q, K4 = `<${m4}>`, a1 = document, E1 = () => a1.createComment(""), z1 = (r) => r === null || typeof r != "object" && typeof r != "function", T2 = Array.isArray, J4 = (r) => T2(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", u2 = `[
288
- \f\r]`, x1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, J5 = /-->/g, Q5 = />/g, l1 = RegExp(`>|${u2}(?:([^\\s"'>=/]+)(${u2}*=${u2}*(?:[^
289
- \f\r"'\`<>=]|("|')|))|$)`, "g"), e4 = /'/g, t4 = /"/g, V4 = /^(?:script|style|textarea|title)$/i, b4 = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), C = b4(1), o2 = b4(2), s1 = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), o4 = /* @__PURE__ */ new WeakMap(), r1 = a1.createTreeWalker(a1, 129);
290
- function L4(r, e) {
291
- if (!T2(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
292
- return K5 !== void 0 ? K5.createHTML(e) : e;
287
+ const $1 = globalThis, C4 = (n) => n, o2 = $1.trustedTypes, d4 = o2 ? o2.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, E4 = "$lit$", q = `lit$${Math.random().toFixed(9).slice(2)}$`, z4 = "?" + q, p3 = `<${z4}>`, a1 = document, z1 = () => a1.createComment(""), A1 = (n) => n === null || typeof n != "object" && typeof n != "function", Y2 = Array.isArray, u3 = (n) => Y2(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", h2 = `[
288
+ \f\r]`, Z1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, c4 = /-->/g, p4 = />/g, l1 = RegExp(`>|${h2}(?:([^\\s"'>=/]+)(${h2}*=${h2}*(?:[^
289
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), u4 = /'/g, h4 = /"/g, A4 = /^(?:script|style|textarea|title)$/i, B4 = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), s = B4(1), i2 = B4(2), s1 = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), g4 = /* @__PURE__ */ new WeakMap(), n1 = a1.createTreeWalker(a1, 129);
290
+ function P4(n, e) {
291
+ if (!Y2(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
292
+ return d4 !== void 0 ? d4.createHTML(e) : e;
293
293
  }
294
- const Q4 = (r, e) => {
295
- const t = r.length - 1, i = [];
296
- let o, l = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", n = x1;
297
- for (let s = 0; s < t; s++) {
298
- const d = r[s];
299
- let p, h, v = -1, H = 0;
300
- for (; H < d.length && (n.lastIndex = H, h = n.exec(d), h !== null); ) H = n.lastIndex, n === x1 ? h[1] === "!--" ? n = J5 : h[1] !== void 0 ? n = Q5 : h[2] !== void 0 ? (V4.test(h[2]) && (o = RegExp("</" + h[2], "g")), n = l1) : h[3] !== void 0 && (n = l1) : n === l1 ? h[0] === ">" ? (n = o ?? x1, v = -1) : h[1] === void 0 ? v = -2 : (v = n.lastIndex - h[2].length, p = h[1], n = h[3] === void 0 ? l1 : h[3] === '"' ? t4 : e4) : n === t4 || n === e4 ? n = l1 : n === J5 || n === Q5 ? n = x1 : (n = l1, o = void 0);
301
- const f = n === l1 && r[s + 1].startsWith("/>") ? " " : "";
302
- l += n === x1 ? d + K4 : v >= 0 ? (i.push(p), d.slice(0, v) + H4 + d.slice(v) + q + f) : d + q + (v === -2 ? s : f);
303
- }
304
- return [L4(r, l + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
294
+ const h3 = (n, e) => {
295
+ const t = n.length - 1, i = [];
296
+ let o, l = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", r = Z1;
297
+ for (let C = 0; C < t; C++) {
298
+ const d = n[C];
299
+ let u, g, v = -1, H = 0;
300
+ for (; H < d.length && (r.lastIndex = H, g = r.exec(d), g !== null); ) H = r.lastIndex, r === Z1 ? g[1] === "!--" ? r = c4 : g[1] !== void 0 ? r = p4 : g[2] !== void 0 ? (A4.test(g[2]) && (o = RegExp("</" + g[2], "g")), r = l1) : g[3] !== void 0 && (r = l1) : r === l1 ? g[0] === ">" ? (r = o ?? Z1, v = -1) : g[1] === void 0 ? v = -2 : (v = r.lastIndex - g[2].length, u = g[1], r = g[3] === void 0 ? l1 : g[3] === '"' ? h4 : u4) : r === h4 || r === u4 ? r = l1 : r === c4 || r === p4 ? r = Z1 : (r = l1, o = void 0);
301
+ const f = r === l1 && n[C + 1].startsWith("/>") ? " " : "";
302
+ l += r === Z1 ? d + p3 : v >= 0 ? (i.push(u), d.slice(0, v) + E4 + d.slice(v) + q + f) : d + q + (v === -2 ? C : f);
303
+ }
304
+ return [P4(n, l + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
305
305
  };
306
- class A1 {
306
+ class B1 {
307
307
  constructor({ strings: e, _$litType$: t }, i) {
308
308
  let o;
309
309
  this.parts = [];
310
- let l = 0, n = 0;
311
- const s = e.length - 1, d = this.parts, [p, h] = Q4(e, t);
312
- if (this.el = A1.createElement(p, i), r1.currentNode = this.el.content, t === 2 || t === 3) {
310
+ let l = 0, r = 0;
311
+ const C = e.length - 1, d = this.parts, [u, g] = h3(e, t);
312
+ if (this.el = B1.createElement(u, i), n1.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 = r1.nextNode()) !== null && d.length < s; ) {
316
+ for (; (o = n1.nextNode()) !== null && d.length < C; ) {
317
317
  if (o.nodeType === 1) {
318
- if (o.hasAttributes()) for (const v of o.getAttributeNames()) if (v.endsWith(H4)) {
319
- const H = h[n++], f = o.getAttribute(v).split(q), Z = /([.?@])?(.*)/.exec(H);
320
- d.push({ type: 1, index: l, name: Z[2], strings: f, ctor: Z[1] === "." ? t3 : Z[1] === "?" ? o3 : Z[1] === "@" ? i3 : d2 }), o.removeAttribute(v);
318
+ if (o.hasAttributes()) for (const v of o.getAttributeNames()) if (v.endsWith(E4)) {
319
+ const H = g[r++], f = o.getAttribute(v).split(q), x = /([.?@])?(.*)/.exec(H);
320
+ d.push({ type: 1, index: l, name: x[2], strings: f, ctor: x[1] === "." ? v3 : x[1] === "?" ? f3 : x[1] === "@" ? H3 : c2 }), o.removeAttribute(v);
321
321
  } else v.startsWith(q) && (d.push({ type: 6, index: l }), o.removeAttribute(v));
322
- if (V4.test(o.tagName)) {
322
+ if (A4.test(o.tagName)) {
323
323
  const v = o.textContent.split(q), H = v.length - 1;
324
324
  if (H > 0) {
325
- o.textContent = t2 ? t2.emptyScript : "";
326
- for (let f = 0; f < H; f++) o.append(v[f], E1()), r1.nextNode(), d.push({ type: 2, index: ++l });
327
- o.append(v[H], E1());
325
+ o.textContent = o2 ? o2.emptyScript : "";
326
+ for (let f = 0; f < H; f++) o.append(v[f], z1()), n1.nextNode(), d.push({ type: 2, index: ++l });
327
+ o.append(v[H], z1());
328
328
  }
329
329
  }
330
- } else if (o.nodeType === 8) if (o.data === m4) d.push({ type: 2, index: l });
330
+ } else if (o.nodeType === 8) if (o.data === z4) d.push({ type: 2, index: l });
331
331
  else {
332
332
  let v = -1;
333
333
  for (; (v = o.data.indexOf(q, v + 1)) !== -1; ) d.push({ type: 7, index: l }), v += q.length - 1;
@@ -340,14 +340,14 @@ class A1 {
340
340
  return i.innerHTML = e, i;
341
341
  }
342
342
  }
343
- function f1(r, e, t = r, i) {
344
- var n, s;
343
+ function f1(n, e, t = n, i) {
344
+ var r, C;
345
345
  if (e === s1) return e;
346
- let o = i !== void 0 ? (n = t._$Co) == null ? void 0 : n[i] : t._$Cl;
347
- const l = z1(e) ? void 0 : e._$litDirective$;
348
- return (o == null ? void 0 : o.constructor) !== l && ((s = o == null ? void 0 : o._$AO) == null || s.call(o, !1), l === void 0 ? o = void 0 : (o = new l(r), o._$AT(r, t, i)), i !== void 0 ? (t._$Co ?? (t._$Co = []))[i] = o : t._$Cl = o), o !== void 0 && (e = f1(r, o._$AS(r, e.values), o, i)), e;
346
+ let o = i !== void 0 ? (r = t._$Co) == null ? void 0 : r[i] : t._$Cl;
347
+ const l = A1(e) ? void 0 : e._$litDirective$;
348
+ return (o == null ? void 0 : o.constructor) !== l && ((C = o == null ? void 0 : o._$AO) == null || C.call(o, !1), l === void 0 ? o = void 0 : (o = new l(n), o._$AT(n, t, i)), i !== void 0 ? (t._$Co ?? (t._$Co = []))[i] = o : t._$Cl = o), o !== void 0 && (e = f1(n, o._$AS(n, e.values), o, i)), e;
349
349
  }
350
- class e3 {
350
+ class g3 {
351
351
  constructor(e, t) {
352
352
  this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
353
353
  }
@@ -359,23 +359,23 @@ class e3 {
359
359
  }
360
360
  u(e) {
361
361
  const { el: { content: t }, parts: i } = this._$AD, o = ((e == null ? void 0 : e.creationScope) ?? a1).importNode(t, !0);
362
- r1.currentNode = o;
363
- let l = r1.nextNode(), n = 0, s = 0, d = i[0];
362
+ n1.currentNode = o;
363
+ let l = n1.nextNode(), r = 0, C = 0, d = i[0];
364
364
  for (; d !== void 0; ) {
365
- if (n === d.index) {
366
- let p;
367
- d.type === 2 ? p = new Y1(l, l.nextSibling, this, e) : d.type === 1 ? p = new d.ctor(l, d.name, d.strings, this, e) : d.type === 6 && (p = new l3(l, this, e)), this._$AV.push(p), d = i[++s];
365
+ if (r === d.index) {
366
+ let u;
367
+ d.type === 2 ? u = new X1(l, l.nextSibling, this, e) : d.type === 1 ? u = new d.ctor(l, d.name, d.strings, this, e) : d.type === 6 && (u = new m3(l, this, e)), this._$AV.push(u), d = i[++C];
368
368
  }
369
- n !== (d == null ? void 0 : d.index) && (l = r1.nextNode(), n++);
369
+ r !== (d == null ? void 0 : d.index) && (l = n1.nextNode(), r++);
370
370
  }
371
- return r1.currentNode = a1, o;
371
+ return n1.currentNode = a1, 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 Y1 {
378
+ class X1 {
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 Y1 {
395
395
  return this._$AB;
396
396
  }
397
397
  _$AI(e, t = this) {
398
- e = f1(this, e, t), z1(e) ? e === c || e == null || e === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : e !== this._$AH && e !== s1 && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : J4(e) ? this.k(e) : this._(e);
398
+ e = f1(this, e, t), A1(e) ? e === c || e == null || e === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : e !== this._$AH && e !== s1 && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : u3(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 Y1 {
404
404
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
405
405
  }
406
406
  _(e) {
407
- this._$AH !== c && z1(this._$AH) ? this._$AA.nextSibling.data = e : this.T(a1.createTextNode(e)), this._$AH = e;
407
+ this._$AH !== c && A1(this._$AH) ? this._$AA.nextSibling.data = e : this.T(a1.createTextNode(e)), this._$AH = e;
408
408
  }
409
409
  $(e) {
410
410
  var l;
411
- const { values: t, _$litType$: i } = e, o = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = A1.createElement(L4(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 = B1.createElement(P4(i.h, i.h[0]), this.options)), i);
412
412
  if (((l = this._$AH) == null ? void 0 : l._$AD) === o) this._$AH.p(t);
413
413
  else {
414
- const n = new e3(o, this), s = n.u(this.options);
415
- n.p(t), this.T(s), this._$AH = n;
414
+ const r = new g3(o, this), C = r.u(this.options);
415
+ r.p(t), this.T(C), this._$AH = r;
416
416
  }
417
417
  }
418
418
  _$AC(e) {
419
- let t = o4.get(e.strings);
420
- return t === void 0 && o4.set(e.strings, t = new A1(e)), t;
419
+ let t = g4.get(e.strings);
420
+ return t === void 0 && g4.set(e.strings, t = new B1(e)), t;
421
421
  }
422
422
  k(e) {
423
- T2(this._$AH) || (this._$AH = [], this._$AR());
423
+ Y2(this._$AH) || (this._$AH = [], this._$AR());
424
424
  const t = this._$AH;
425
425
  let i, o = 0;
426
- for (const l of e) o === t.length ? t.push(i = new Y1(this.O(E1()), this.O(E1()), this, this.options)) : i = t[o], i._$AI(l), o++;
426
+ for (const l of e) o === t.length ? t.push(i = new X1(this.O(z1()), this.O(z1()), this, this.options)) : i = t[o], i._$AI(l), 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 = X5(e).nextSibling;
433
- X5(e).remove(), e = o;
432
+ const o = C4(e).nextSibling;
433
+ C4(e).remove(), e = o;
434
434
  }
435
435
  }
436
436
  setConnected(e) {
@@ -438,7 +438,7 @@ class Y1 {
438
438
  this._$AM === void 0 && (this._$Cv = e, (t = this._$AP) == null || t.call(this, e));
439
439
  }
440
440
  }
441
- class d2 {
441
+ class c2 {
442
442
  get tagName() {
443
443
  return this.element.tagName;
444
444
  }
@@ -450,20 +450,20 @@ class d2 {
450
450
  }
451
451
  _$AI(e, t = this, i, o) {
452
452
  const l = this.strings;
453
- let n = !1;
454
- if (l === void 0) e = f1(this, e, t, 0), n = !z1(e) || e !== this._$AH && e !== s1, n && (this._$AH = e);
453
+ let r = !1;
454
+ if (l === void 0) e = f1(this, e, t, 0), r = !A1(e) || e !== this._$AH && e !== s1, r && (this._$AH = e);
455
455
  else {
456
- const s = e;
457
- let d, p;
458
- for (e = l[0], d = 0; d < l.length - 1; d++) p = f1(this, s[i + d], t, d), p === s1 && (p = this._$AH[d]), n || (n = !z1(p) || p !== this._$AH[d]), p === c ? e = c : e !== c && (e += (p ?? "") + l[d + 1]), this._$AH[d] = p;
456
+ const C = e;
457
+ let d, u;
458
+ for (e = l[0], d = 0; d < l.length - 1; d++) u = f1(this, C[i + d], t, d), u === s1 && (u = this._$AH[d]), r || (r = !A1(u) || u !== this._$AH[d]), u === c ? e = c : e !== c && (e += (u ?? "") + l[d + 1]), this._$AH[d] = u;
459
459
  }
460
- n && !o && this.j(e);
460
+ r && !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 t3 extends d2 {
466
+ class v3 extends c2 {
467
467
  constructor() {
468
468
  super(...arguments), this.type = 3;
469
469
  }
@@ -471,7 +471,7 @@ class t3 extends d2 {
471
471
  this.element[this.name] = e === c ? void 0 : e;
472
472
  }
473
473
  }
474
- class o3 extends d2 {
474
+ class f3 extends c2 {
475
475
  constructor() {
476
476
  super(...arguments), this.type = 4;
477
477
  }
@@ -479,7 +479,7 @@ class o3 extends d2 {
479
479
  this.element.toggleAttribute(this.name, !!e && e !== c);
480
480
  }
481
481
  }
482
- class i3 extends d2 {
482
+ class H3 extends c2 {
483
483
  constructor(e, t, i, o, l) {
484
484
  super(e, t, i, o, l), this.type = 5;
485
485
  }
@@ -493,7 +493,7 @@ class i3 extends d2 {
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 l3 {
496
+ class m3 {
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
  }
@@ -504,24 +504,24 @@ class l3 {
504
504
  f1(this, e);
505
505
  }
506
506
  }
507
- const h2 = $1.litHtmlPolyfillSupport;
508
- h2 == null || h2(A1, Y1), ($1.litHtmlVersions ?? ($1.litHtmlVersions = [])).push("3.3.2");
509
- const r3 = (r, e, t) => {
507
+ const g2 = $1.litHtmlPolyfillSupport;
508
+ g2 == null || g2(B1, X1), ($1.litHtmlVersions ?? ($1.litHtmlVersions = [])).push("3.3.2");
509
+ const b3 = (n, 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 l = (t == null ? void 0 : t.renderBefore) ?? null;
514
- i._$litPart$ = o = new Y1(e.insertBefore(E1(), l), l, void 0, t ?? {});
514
+ i._$litPart$ = o = new X1(e.insertBefore(z1(), l), l, void 0, t ?? {});
515
515
  }
516
- return o._$AI(r), o;
516
+ return o._$AI(n), o;
517
517
  };
518
518
  /**
519
519
  * @license
520
520
  * Copyright 2017 Google LLC
521
521
  * SPDX-License-Identifier: BSD-3-Clause
522
522
  */
523
- const n1 = globalThis;
524
- let u = class extends v1 {
523
+ const r1 = globalThis;
524
+ let p = class extends v1 {
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 v1 {
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 = r3(t, this.renderRoot, this.renderOptions);
535
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = b3(t, this.renderRoot, this.renderOptions);
536
536
  }
537
537
  connectedCallback() {
538
538
  var e;
@@ -546,79 +546,79 @@ let u = class extends v1 {
546
546
  return s1;
547
547
  }
548
548
  };
549
- var v4;
550
- u._$litElement$ = !0, u.finalized = !0, (v4 = n1.litElementHydrateSupport) == null || v4.call(n1, { LitElement: u });
551
- const g2 = n1.litElementPolyfillSupport;
552
- g2 == null || g2({ LitElement: u });
553
- (n1.litElementVersions ?? (n1.litElementVersions = [])).push("4.2.2");
549
+ var k4;
550
+ p._$litElement$ = !0, p.finalized = !0, (k4 = r1.litElementHydrateSupport) == null || k4.call(r1, { LitElement: p });
551
+ const v2 = r1.litElementPolyfillSupport;
552
+ v2 == null || v2({ LitElement: p });
553
+ (r1.litElementVersions ?? (r1.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 n3 = { attribute: !0, type: String, converter: e2, reflect: !1, hasChanged: D2 }, a3 = (r = n3, e, t) => {
559
+ const V3 = { attribute: !0, type: String, converter: t2, reflect: !1, hasChanged: W2 }, L3 = (n = V3, e, t) => {
560
560
  const { kind: i, metadata: o } = t;
561
561
  let l = globalThis.litPropertyMetadata.get(o);
562
- if (l === void 0 && globalThis.litPropertyMetadata.set(o, l = /* @__PURE__ */ new Map()), i === "setter" && ((r = Object.create(r)).wrapped = !0), l.set(t.name, r), i === "accessor") {
563
- const { name: n } = t;
564
- return { set(s) {
562
+ if (l === void 0 && globalThis.litPropertyMetadata.set(o, l = /* @__PURE__ */ new Map()), i === "setter" && ((n = Object.create(n)).wrapped = !0), l.set(t.name, n), i === "accessor") {
563
+ const { name: r } = t;
564
+ return { set(C) {
565
565
  const d = e.get.call(this);
566
- e.set.call(this, s), this.requestUpdate(n, d, r, !0, s);
567
- }, init(s) {
568
- return s !== void 0 && this.C(n, void 0, r, s), s;
566
+ e.set.call(this, C), this.requestUpdate(r, d, n, !0, C);
567
+ }, init(C) {
568
+ return C !== void 0 && this.C(r, void 0, n, C), C;
569
569
  } };
570
570
  }
571
571
  if (i === "setter") {
572
- const { name: n } = t;
573
- return function(s) {
574
- const d = this[n];
575
- e.call(this, s), this.requestUpdate(n, d, r, !0, s);
572
+ const { name: r } = t;
573
+ return function(C) {
574
+ const d = this[r];
575
+ e.call(this, C), this.requestUpdate(r, d, n, !0, C);
576
576
  };
577
577
  }
578
578
  throw Error("Unsupported decorator location: " + i);
579
579
  };
580
- function a(r) {
581
- return (e, t) => typeof t == "object" ? a3(r, e, t) : ((i, o, l) => {
582
- const n = o.hasOwnProperty(l);
583
- return o.constructor.createProperty(l, i), n ? Object.getOwnPropertyDescriptor(o, l) : void 0;
584
- })(r, e, t);
580
+ function a(n) {
581
+ return (e, t) => typeof t == "object" ? L3(n, e, t) : ((i, o, l) => {
582
+ const r = o.hasOwnProperty(l);
583
+ return o.constructor.createProperty(l, i), r ? Object.getOwnPropertyDescriptor(o, l) : void 0;
584
+ })(n, e, t);
585
585
  }
586
586
  /**
587
587
  * @license
588
588
  * Copyright 2017 Google LLC
589
589
  * SPDX-License-Identifier: BSD-3-Clause
590
590
  */
591
- function V(r) {
592
- return a({ ...r, state: !0, attribute: !1 });
591
+ function b(n) {
592
+ return a({ ...n, 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 s3 = (r, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(r, e, t), t);
599
+ const y3 = (n, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(n, 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 R(r, e) {
605
+ function R(n, e) {
606
606
  return (t, i, o) => {
607
- const l = (n) => {
608
- var s;
609
- return ((s = n.renderRoot) == null ? void 0 : s.querySelector(r)) ?? null;
607
+ const l = (r) => {
608
+ var C;
609
+ return ((C = r.renderRoot) == null ? void 0 : C.querySelector(n)) ?? null;
610
610
  };
611
- return s3(t, i, { get() {
611
+ return y3(t, i, { get() {
612
612
  return l(this);
613
613
  } });
614
614
  };
615
615
  }
616
- var C3 = Object.defineProperty, y4 = (r, e, t, i) => {
617
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
618
- (n = r[l]) && (o = n(e, t, o) || o);
619
- return o && C3(e, t, o), o;
616
+ var M3 = Object.defineProperty, S4 = (n, e, t, i) => {
617
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
618
+ (r = n[l]) && (o = r(e, t, o) || o);
619
+ return o && M3(e, t, o), o;
620
620
  };
621
- const G2 = class G2 extends u {
621
+ const Q2 = class Q2 extends p {
622
622
  constructor() {
623
623
  super(...arguments), this.size = "medium", this.percent = "";
624
624
  }
@@ -640,23 +640,23 @@ const G2 = class G2 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 l = t / 2, n = t + e, s = e / 2, d = Math.PI * e;
644
- return o2`
643
+ const l = t / 2, r = t + e, C = e / 2, d = Math.PI * e;
644
+ return i2`
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="-${l} -${l} ${n} ${n}"
650
+ viewBox="-${l} -${l} ${r} ${r}"
651
651
  xmlns="http://www.w3.org/2000/svg"
652
652
  >
653
653
  <circle
654
654
  stroke="currentColor"
655
655
  stroke-linecap="round"
656
656
  stroke-width="${t}px"
657
- cx="${s}"
658
- cy="${s}"
659
- r="${s}"
657
+ cx="${C}"
658
+ cy="${C}"
659
+ r="${C}"
660
660
  stroke-opacity="0.2"
661
661
  fill-opacity="0"
662
662
  />
@@ -664,9 +664,9 @@ const G2 = class G2 extends u {
664
664
  stroke="currentColor"
665
665
  stroke-linecap="round"
666
666
  stroke-width="${t}px"
667
- cx="${s}"
668
- cy="${s}"
669
- r="${s}"
667
+ cx="${C}"
668
+ cy="${C}"
669
+ r="${C}"
670
670
  fill-opacity="0"
671
671
  stroke-dasharray="${d}"
672
672
  stroke-dashoffset="${o}"
@@ -675,31 +675,31 @@ const G2 = class G2 extends u {
675
675
  `;
676
676
  }
677
677
  };
678
- G2.styles = g`
678
+ Q2.styles = h`
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 B1 = G2;
684
- y4([
683
+ let P1 = Q2;
684
+ S4([
685
685
  a()
686
- ], B1.prototype, "size");
687
- y4([
686
+ ], P1.prototype, "size");
687
+ S4([
688
688
  a()
689
- ], B1.prototype, "percent");
690
- customElements.get("anduin-spinner") || customElements.define("anduin-spinner", B1);
691
- var d3 = Object.defineProperty, M4 = (r, e, t, i) => {
692
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
693
- (n = r[l]) && (o = n(e, t, o) || o);
694
- return o && d3(e, t, o), o;
689
+ ], P1.prototype, "percent");
690
+ customElements.get("anduin-spinner") || customElements.define("anduin-spinner", P1);
691
+ var x3 = Object.defineProperty, F4 = (n, e, t, i) => {
692
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
693
+ (r = n[l]) && (o = r(e, t, o) || o);
694
+ return o && x3(e, t, o), o;
695
695
  };
696
- const i4 = "M7.23359 3.5336C7.49685 2.82213 8.50314 2.82213 8.76641 3.5336L9.63534 5.88184C9.71811 6.10553 9.89447 6.28189 10.1182 6.36466L12.4664 7.23359C13.1779 7.49685 13.1779 8.50314 12.4664 8.76641L10.1182 9.63534C9.89447 9.71811 9.71811 9.89447 9.63534 10.1182L8.76641 12.4664C8.50314 13.1779 7.49685 13.1779 7.23359 12.4664L6.36466 10.1182C6.28189 9.89447 6.10553 9.71811 5.88185 9.63534L3.5336 8.76641C2.82213 8.50314 2.82213 7.49685 3.5336 7.23359L5.88184 6.36466C6.10553 6.28189 6.28189 6.10553 6.36466 5.88185L7.23359 3.5336Z", c3 = { small: 16, medium: 24, large: 32 }, q2 = class q2 extends u {
696
+ const v4 = "M7.23359 3.5336C7.49685 2.82213 8.50314 2.82213 8.76641 3.5336L9.63534 5.88184C9.71811 6.10553 9.89447 6.28189 10.1182 6.36466L12.4664 7.23359C13.1779 7.49685 13.1779 8.50314 12.4664 8.76641L10.1182 9.63534C9.89447 9.71811 9.71811 9.89447 9.63534 10.1182L8.76641 12.4664C8.50314 13.1779 7.49685 13.1779 7.23359 12.4664L6.36466 10.1182C6.28189 9.89447 6.10553 9.71811 5.88185 9.63534L3.5336 8.76641C2.82213 8.50314 2.82213 7.49685 3.5336 7.23359L5.88184 6.36466C6.10553 6.28189 6.28189 6.10553 6.36466 5.88185L7.23359 3.5336Z", _3 = { small: 16, medium: 24, large: 32 }, e5 = class e5 extends p {
697
697
  constructor() {
698
698
  super(...arguments), this.size = "small", this.color = "default";
699
699
  }
700
700
  render() {
701
- const e = c3[this.size] ?? 16;
702
- return o2`
701
+ const e = _3[this.size] ?? 16;
702
+ return i2`
703
703
  <svg
704
704
  xmlns="http://www.w3.org/2000/svg"
705
705
  width="${e}"
@@ -708,13 +708,13 @@ const i4 = "M7.23359 3.5336C7.49685 2.82213 8.50314 2.82213 8.76641 3.5336L9.635
708
708
  fill="currentColor"
709
709
  overflow="visible"
710
710
  >
711
- <path class="star" d="${i4}"/>
712
- <path class="star star-2" d="${i4}"/>
711
+ <path class="star" d="${v4}"/>
712
+ <path class="star star-2" d="${v4}"/>
713
713
  </svg>
714
714
  `;
715
715
  }
716
716
  };
717
- q2.styles = g`
717
+ e5.styles = h`
718
718
  :host { display: inline-block; line-height: 0; }
719
719
 
720
720
  /* ── Colors ─────────────────────────────────────────────────── */
@@ -753,15 +753,15 @@ q2.styles = g`
753
753
  100% { transform: translate(12px, 12px) scale(0.5); opacity: 0; }
754
754
  }
755
755
  `;
756
- let P1 = q2;
757
- M4([
756
+ let S1 = e5;
757
+ F4([
758
758
  a({ reflect: !0 })
759
- ], P1.prototype, "size");
760
- M4([
759
+ ], S1.prototype, "size");
760
+ F4([
761
761
  a({ reflect: !0 })
762
- ], P1.prototype, "color");
763
- customElements.get("anduin-sparkle-spinner") || customElements.define("anduin-sparkle-spinner", P1);
764
- const l4 = {
762
+ ], S1.prototype, "color");
763
+ customElements.get("anduin-sparkle-spinner") || customElements.define("anduin-sparkle-spinner", S1);
764
+ const f4 = {
765
765
  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" }],
766
766
  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" }],
767
767
  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" }],
@@ -1118,18 +1118,18 @@ const l4 = {
1118
1118
  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" }],
1119
1119
  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" }]
1120
1120
  };
1121
- var p3 = Object.defineProperty, Z4 = (r, e, t, i) => {
1122
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
1123
- (n = r[l]) && (o = n(e, t, o) || o);
1124
- return o && p3(e, t, o), o;
1121
+ var Z3 = Object.defineProperty, O4 = (n, e, t, i) => {
1122
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
1123
+ (r = n[l]) && (o = r(e, t, o) || o);
1124
+ return o && Z3(e, t, o), o;
1125
1125
  };
1126
- const W2 = class W2 extends u {
1126
+ const t5 = class t5 extends p {
1127
1127
  constructor() {
1128
1128
  super(...arguments), this.name = "", this.size = 16;
1129
1129
  }
1130
1130
  render() {
1131
- const e = this.name && l4[this.name] ? l4[this.name] : [], t = !this.name;
1132
- return o2`
1131
+ const e = this.name && f4[this.name] ? f4[this.name] : [], t = !this.name;
1132
+ return i2`
1133
1133
  <svg
1134
1134
  class=${t ? "icon--hidden" : ""}
1135
1135
  xmlns="http://www.w3.org/2000/svg"
@@ -1139,7 +1139,7 @@ const W2 = class W2 extends u {
1139
1139
  viewBox="0 0 16 16"
1140
1140
  >
1141
1141
  ${e.map(
1142
- (i) => o2`
1142
+ (i) => i2`
1143
1143
  <path
1144
1144
  fill="currentColor"
1145
1145
  d="${i.d}"
@@ -1151,24 +1151,24 @@ const W2 = class W2 extends u {
1151
1151
  `;
1152
1152
  }
1153
1153
  };
1154
- W2.styles = g`
1154
+ t5.styles = h`
1155
1155
  :host { display: block; line-height: 0; font-family: var(--font-sans); }
1156
1156
  .icon--hidden { display: none; }
1157
1157
  `;
1158
- let S1 = W2;
1159
- Z4([
1158
+ let F1 = t5;
1159
+ O4([
1160
1160
  a()
1161
- ], S1.prototype, "name");
1162
- Z4([
1161
+ ], F1.prototype, "name");
1162
+ O4([
1163
1163
  a({ type: Number })
1164
- ], S1.prototype, "size");
1165
- customElements.get("anduin-icon") || customElements.define("anduin-icon", S1);
1166
- var u3 = Object.defineProperty, h3 = (r, e, t, i) => {
1167
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
1168
- (n = r[l]) && (o = n(e, t, o) || o);
1169
- return o && u3(e, t, o), o;
1164
+ ], F1.prototype, "size");
1165
+ customElements.get("anduin-icon") || customElements.define("anduin-icon", F1);
1166
+ var w3 = Object.defineProperty, R3 = (n, e, t, i) => {
1167
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
1168
+ (r = n[l]) && (o = r(e, t, o) || o);
1169
+ return o && w3(e, t, o), o;
1170
1170
  };
1171
- const _4 = g`
1171
+ const I4 = h`
1172
1172
  :host { display: inline-block; font-family: var(--font-sans); }
1173
1173
  .badge {
1174
1174
  border-radius: 9999px;
@@ -1195,7 +1195,7 @@ const _4 = g`
1195
1195
  .badge--bold-warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
1196
1196
  .badge--hidden { display: none; }
1197
1197
  `;
1198
- function x4(r) {
1198
+ function D4(n) {
1199
1199
  return {
1200
1200
  gray: "badge--light-gray",
1201
1201
  primary: "badge--light-primary",
@@ -1207,29 +1207,29 @@ function x4(r) {
1207
1207
  boldSuccess: "badge--bold-success",
1208
1208
  boldWarning: "badge--bold-warning",
1209
1209
  boldDanger: "badge--bold-danger"
1210
- }[r || "gray"] || "badge--light-gray";
1210
+ }[n || "gray"] || "badge--light-gray";
1211
1211
  }
1212
- const Y2 = class Y2 extends u {
1212
+ const o5 = class o5 extends p {
1213
1213
  constructor() {
1214
1214
  super(...arguments), this.variant = "gray";
1215
1215
  }
1216
1216
  render() {
1217
- const e = x4(this.variant);
1218
- return C`<div class="badge ${e}" part="badge"><slot></slot></div>`;
1217
+ const e = D4(this.variant);
1218
+ return s`<div class="badge ${e}" part="badge"><slot></slot></div>`;
1219
1219
  }
1220
1220
  };
1221
- Y2.styles = [_4];
1222
- let i2 = Y2;
1223
- h3([
1221
+ o5.styles = [I4];
1222
+ let l2 = o5;
1223
+ R3([
1224
1224
  a()
1225
- ], i2.prototype, "variant");
1226
- customElements.get("anduin-badge") || customElements.define("anduin-badge", i2);
1227
- var g3 = Object.defineProperty, w4 = (r, e, t, i) => {
1228
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
1229
- (n = r[l]) && (o = n(e, t, o) || o);
1230
- return o && g3(e, t, o), o;
1225
+ ], l2.prototype, "variant");
1226
+ customElements.get("anduin-badge") || customElements.define("anduin-badge", l2);
1227
+ var k3 = Object.defineProperty, T4 = (n, e, t, i) => {
1228
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
1229
+ (r = n[l]) && (o = r(e, t, o) || o);
1230
+ return o && k3(e, t, o), o;
1231
1231
  };
1232
- const X2 = class X2 extends u {
1232
+ const i5 = class i5 extends p {
1233
1233
  constructor() {
1234
1234
  super(...arguments), this.variant = "gray", this.count = 0;
1235
1235
  }
@@ -1237,33 +1237,33 @@ const X2 = class X2 extends u {
1237
1237
  return e > 99 ? "99+" : e.toString();
1238
1238
  }
1239
1239
  render() {
1240
- const e = x4(this.variant), t = this.count === 0, i = this.count > 0 && this.count < 10, o = [
1240
+ const e = D4(this.variant), t = this.count === 0, i = this.count > 0 && this.count < 10, o = [
1241
1241
  "badge",
1242
1242
  e,
1243
1243
  t ? "badge--hidden" : "",
1244
1244
  i ? "badge--square" : ""
1245
1245
  ].filter(Boolean).join(" ");
1246
- return C`<div class="${o}" part="badge">${this.formatCount(this.count)}</div>`;
1246
+ return s`<div class="${o}" part="badge">${this.formatCount(this.count)}</div>`;
1247
1247
  }
1248
1248
  };
1249
- X2.styles = [_4];
1250
- let F1 = X2;
1251
- w4([
1249
+ i5.styles = [I4];
1250
+ let O1 = i5;
1251
+ T4([
1252
1252
  a()
1253
- ], F1.prototype, "variant");
1254
- w4([
1253
+ ], O1.prototype, "variant");
1254
+ T4([
1255
1255
  a({ type: Number })
1256
- ], F1.prototype, "count");
1257
- customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", F1);
1258
- var v3 = Object.defineProperty, _ = (r, e, t, i) => {
1259
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
1260
- (n = r[l]) && (o = n(e, t, o) || o);
1261
- return o && v3(e, t, o), o;
1256
+ ], O1.prototype, "count");
1257
+ customElements.get("anduin-badge-count") || customElements.define("anduin-badge-count", O1);
1258
+ var $3 = Object.defineProperty, _ = (n, e, t, i) => {
1259
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
1260
+ (r = n[l]) && (o = r(e, t, o) || o);
1261
+ return o && $3(e, t, o), o;
1262
1262
  };
1263
- function f3(r) {
1264
- return r.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1263
+ function E3(n) {
1264
+ return n.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1265
1265
  }
1266
- const K2 = class K2 extends u {
1266
+ const l5 = class l5 extends p {
1267
1267
  constructor() {
1268
1268
  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 = "";
1269
1269
  }
@@ -1280,7 +1280,7 @@ const K2 = class K2 extends u {
1280
1280
  return this.variant ? this.variant : this.appearance === "filled" ? "gray0" : this.appearance === "text" ? "primary" : "gray9";
1281
1281
  }
1282
1282
  getSizeKebab() {
1283
- return f3(this.size);
1283
+ return E3(this.size);
1284
1284
  }
1285
1285
  iconSize() {
1286
1286
  return this.size === "tiny" || this.size === "extraSmall" || this.size === "small" ? "12" : "16";
@@ -1297,15 +1297,15 @@ const K2 = class K2 extends u {
1297
1297
  this.loading ? "button--loading" : "",
1298
1298
  this.selected ? "button--selected" : "",
1299
1299
  this.iconOnly && this.appearance !== "text" && !this.fullWidth ? "button--icon-only" : ""
1300
- ].filter(Boolean).join(" "), o = C`
1300
+ ].filter(Boolean).join(" "), o = s`
1301
1301
  <div class="button__content button__content--${t}">
1302
- ${this.startIcon ? C`<anduin-icon name="${this.startIcon}" size="${this.iconSize()}"></anduin-icon>` : c}
1302
+ ${this.startIcon ? s`<anduin-icon name="${this.startIcon}" size="${this.iconSize()}"></anduin-icon>` : c}
1303
1303
  <slot @slotchange=${this.onSlotChange}></slot>
1304
- ${this.endIcon ? C`<anduin-icon name="${this.endIcon}" size="${this.iconSize()}"></anduin-icon>` : c}
1304
+ ${this.endIcon ? s`<anduin-icon name="${this.endIcon}" size="${this.iconSize()}"></anduin-icon>` : c}
1305
1305
  </div>
1306
- ${this.loading && this.appearance !== "text" ? C`<div class="button__loading"><anduin-spinner size="small"></anduin-spinner></div>` : c}
1306
+ ${this.loading && this.appearance !== "text" ? s`<div class="button__loading"><anduin-spinner size="small"></anduin-spinner></div>` : c}
1307
1307
  `;
1308
- return this.href ? C`
1308
+ return this.href ? s`
1309
1309
  <a
1310
1310
  class="${i}"
1311
1311
  href="${this.disabled ? "" : this.href}"
@@ -1314,7 +1314,7 @@ const K2 = class K2 extends u {
1314
1314
  download="${this.download || c}"
1315
1315
  aria-label="${this.label || c}"
1316
1316
  >${o}</a>
1317
- ` : C`
1317
+ ` : s`
1318
1318
  <button
1319
1319
  type="button"
1320
1320
  class="${i}"
@@ -1324,7 +1324,7 @@ const K2 = class K2 extends u {
1324
1324
  `;
1325
1325
  }
1326
1326
  };
1327
- K2.styles = g`
1327
+ l5.styles = h`
1328
1328
  :host { display: inline-block; font-family: var(--font-sans); }
1329
1329
  :host([full-width]) { display: block; width: 100%; }
1330
1330
  .button {
@@ -1437,12 +1437,12 @@ K2.styles = g`
1437
1437
  .button--icon-only.button--medium { width: 32px; min-width: 32px; padding-left: 0; padding-right: 0; }
1438
1438
  .button--icon-only.button--large { width: 40px; min-width: 40px; padding-left: 0; padding-right: 0; }
1439
1439
  `;
1440
- let L = K2;
1440
+ let L = l5;
1441
1441
  _([
1442
- V()
1442
+ b()
1443
1443
  ], L.prototype, "iconOnly");
1444
1444
  _([
1445
- a({ converter: (r) => r || "filled" })
1445
+ a({ converter: (n) => n || "filled" })
1446
1446
  ], L.prototype, "appearance");
1447
1447
  _([
1448
1448
  a()
@@ -1484,17 +1484,17 @@ _([
1484
1484
  a()
1485
1485
  ], L.prototype, "label");
1486
1486
  customElements.get("anduin-button") || customElements.define("anduin-button", L);
1487
- var H3 = Object.defineProperty, m3 = (r, e, t, i) => {
1488
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
1489
- (n = r[l]) && (o = n(e, t, o) || o);
1490
- return o && H3(e, t, o), o;
1487
+ var z3 = Object.defineProperty, A3 = (n, e, t, i) => {
1488
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
1489
+ (r = n[l]) && (o = r(e, t, o) || o);
1490
+ return o && z3(e, t, o), o;
1491
1491
  };
1492
- const J2 = class J2 extends u {
1492
+ const n5 = class n5 extends p {
1493
1493
  constructor() {
1494
1494
  super(...arguments), this.variant = "gray";
1495
1495
  }
1496
1496
  render() {
1497
- return C`
1497
+ return s`
1498
1498
  <div class="callout callout--${this.variant}" part="callout">
1499
1499
  <slot name="icon"></slot>
1500
1500
  <div><slot></slot></div>
@@ -1502,7 +1502,7 @@ const J2 = class J2 extends u {
1502
1502
  `;
1503
1503
  }
1504
1504
  };
1505
- J2.styles = g`
1505
+ n5.styles = h`
1506
1506
  :host { display: block; font-family: var(--font-sans); }
1507
1507
  .callout {
1508
1508
  display: flex; align-items: center; justify-content: center;
@@ -1514,17 +1514,17 @@ J2.styles = g`
1514
1514
  .callout--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
1515
1515
  .callout--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
1516
1516
  `;
1517
- let l2 = J2;
1518
- m3([
1517
+ let n2 = n5;
1518
+ A3([
1519
1519
  a()
1520
- ], l2.prototype, "variant");
1521
- customElements.get("anduin-callout") || customElements.define("anduin-callout", l2);
1522
- var V3 = Object.defineProperty, R4 = (r, e, t, i) => {
1523
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
1524
- (n = r[l]) && (o = n(e, t, o) || o);
1525
- return o && V3(e, t, o), o;
1520
+ ], n2.prototype, "variant");
1521
+ customElements.get("anduin-callout") || customElements.define("anduin-callout", n2);
1522
+ var B3 = Object.defineProperty, N4 = (n, e, t, i) => {
1523
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
1524
+ (r = n[l]) && (o = r(e, t, o) || o);
1525
+ return o && B3(e, t, o), o;
1526
1526
  };
1527
- const Q2 = class Q2 extends u {
1527
+ const r5 = class r5 extends p {
1528
1528
  constructor() {
1529
1529
  super(...arguments), this.direction = "horizontal", this.hasContent = !1;
1530
1530
  }
@@ -1542,20 +1542,20 @@ const Q2 = class Q2 extends u {
1542
1542
  });
1543
1543
  }
1544
1544
  render() {
1545
- return this.direction === "vertical" ? this.hasContent ? C`
1545
+ return this.direction === "vertical" ? this.hasContent ? s`
1546
1546
  <div class="divider--vertical">
1547
1547
  <div class="divider__line--vertical"></div>
1548
1548
  <div><slot @slotchange=${this.onSlotChange}></slot></div>
1549
1549
  <div class="divider__line--vertical"></div>
1550
- </div>` : C`<div class="divider--vertical divider--vertical-empty"><slot @slotchange=${this.onSlotChange}></slot></div>` : this.hasContent ? C`
1550
+ </div>` : s`<div class="divider--vertical divider--vertical-empty"><slot @slotchange=${this.onSlotChange}></slot></div>` : this.hasContent ? s`
1551
1551
  <div class="divider--horizontal">
1552
1552
  <div class="divider__line--horizontal"></div>
1553
1553
  <div><slot @slotchange=${this.onSlotChange}></slot></div>
1554
1554
  <div class="divider__line--horizontal"></div>
1555
- </div>` : C`<div class="divider--horizontal divider--horizontal-empty"><slot @slotchange=${this.onSlotChange}></slot></div>`;
1555
+ </div>` : s`<div class="divider--horizontal divider--horizontal-empty"><slot @slotchange=${this.onSlotChange}></slot></div>`;
1556
1556
  }
1557
1557
  };
1558
- Q2.styles = g`
1558
+ r5.styles = h`
1559
1559
  :host { display: block; width: 100%; font-family: var(--font-sans); }
1560
1560
  :host([direction="vertical"]) { width: auto; height: 100%; }
1561
1561
  .divider--horizontal { margin-top: 8px; margin-bottom: 8px; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 8px; text-align: center; }
@@ -1565,28 +1565,28 @@ Q2.styles = g`
1565
1565
  .divider--vertical-empty { background-color: var(--color-gray-3); width: 1px; }
1566
1566
  .divider__line--vertical { border-left: 1px solid var(--color-gray-3); justify-self: center; }
1567
1567
  `;
1568
- let O1 = Q2;
1569
- R4([
1568
+ let I1 = r5;
1569
+ N4([
1570
1570
  a({ reflect: !0 })
1571
- ], O1.prototype, "direction");
1572
- R4([
1573
- V()
1574
- ], O1.prototype, "hasContent");
1575
- customElements.get("anduin-divider") || customElements.define("anduin-divider", O1);
1576
- var b3 = Object.defineProperty, L3 = (r, e, t, i) => {
1577
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
1578
- (n = r[l]) && (o = n(e, t, o) || o);
1579
- return o && b3(e, t, o), o;
1571
+ ], I1.prototype, "direction");
1572
+ N4([
1573
+ b()
1574
+ ], I1.prototype, "hasContent");
1575
+ customElements.get("anduin-divider") || customElements.define("anduin-divider", I1);
1576
+ var P3 = Object.defineProperty, S3 = (n, e, t, i) => {
1577
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
1578
+ (r = n[l]) && (o = r(e, t, o) || o);
1579
+ return o && P3(e, t, o), o;
1580
1580
  };
1581
- const e5 = class e5 extends u {
1581
+ const a5 = class a5 extends p {
1582
1582
  constructor() {
1583
1583
  super(...arguments), this.variant = "gray";
1584
1584
  }
1585
1585
  render() {
1586
- return C`<div class="dot dot--${this.variant}" part="dot"></div>`;
1586
+ return s`<div class="dot dot--${this.variant}" part="dot"></div>`;
1587
1587
  }
1588
1588
  };
1589
- e5.styles = g`
1589
+ a5.styles = h`
1590
1590
  :host { display: inline-block; font-family: var(--font-sans); }
1591
1591
  .dot { width: 10px; height: 10px; border-radius: 9999px; }
1592
1592
  .dot--gray { background-color: var(--color-semantic-gray-6); color: var(--color-semantic-gray-0); }
@@ -1595,17 +1595,17 @@ e5.styles = g`
1595
1595
  .dot--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
1596
1596
  .dot--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
1597
1597
  `;
1598
- let r2 = e5;
1599
- L3([
1598
+ let r2 = a5;
1599
+ S3([
1600
1600
  a()
1601
1601
  ], r2.prototype, "variant");
1602
1602
  customElements.get("anduin-dot") || customElements.define("anduin-dot", r2);
1603
- var y3 = Object.defineProperty, k4 = (r, e, t, i) => {
1604
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
1605
- (n = r[l]) && (o = n(e, t, o) || o);
1606
- return o && y3(e, t, o), o;
1603
+ var F3 = Object.defineProperty, j4 = (n, e, t, i) => {
1604
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
1605
+ (r = n[l]) && (o = r(e, t, o) || o);
1606
+ return o && F3(e, t, o), o;
1607
1607
  };
1608
- const t5 = class t5 extends u {
1608
+ const s5 = class s5 extends p {
1609
1609
  constructor() {
1610
1610
  super(...arguments), this.percent = "", this.height = "medium";
1611
1611
  }
@@ -1613,7 +1613,7 @@ const t5 = class t5 extends u {
1613
1613
  const e = this.height === "large" ? 8 : 3, t = this.percent === "" || this.percent === null;
1614
1614
  let i = "";
1615
1615
  const o = ["progress__fill"];
1616
- return t ? o.push("progress__fill--indeterminate") : i = `width: ${Math.max(0, Math.min(1, parseFloat(this.percent) || 0)) * 100}%;`, C`
1616
+ return t ? o.push("progress__fill--indeterminate") : i = `width: ${Math.max(0, Math.min(1, parseFloat(this.percent) || 0)) * 100}%;`, s`
1617
1617
  <div class="progress" style="height: ${e}px;" part="progress">
1618
1618
  <div class="${o.join(" ")}" style="${i}"></div>
1619
1619
  <div class="progress__background"></div>
@@ -1621,7 +1621,7 @@ const t5 = class t5 extends u {
1621
1621
  `;
1622
1622
  }
1623
1623
  };
1624
- t5.styles = g`
1624
+ s5.styles = h`
1625
1625
  :host { display: block; font-family: var(--font-sans); }
1626
1626
  .progress { overflow-x: hidden; position: relative; border-radius: 9999px; }
1627
1627
  .progress__fill {
@@ -1637,20 +1637,20 @@ t5.styles = g`
1637
1637
  to { transform: translateX(330%); }
1638
1638
  }
1639
1639
  `;
1640
- let I1 = t5;
1641
- k4([
1640
+ let D1 = s5;
1641
+ j4([
1642
1642
  a()
1643
- ], I1.prototype, "percent");
1644
- k4([
1643
+ ], D1.prototype, "percent");
1644
+ j4([
1645
1645
  a()
1646
- ], I1.prototype, "height");
1647
- customElements.get("anduin-progress") || customElements.define("anduin-progress", I1);
1648
- var M3 = Object.defineProperty, M1 = (r, e, t, i) => {
1649
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
1650
- (n = r[l]) && (o = n(e, t, o) || o);
1651
- return o && M3(e, t, o), o;
1646
+ ], D1.prototype, "height");
1647
+ customElements.get("anduin-progress") || customElements.define("anduin-progress", D1);
1648
+ var O3 = Object.defineProperty, M1 = (n, e, t, i) => {
1649
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
1650
+ (r = n[l]) && (o = r(e, t, o) || o);
1651
+ return o && O3(e, t, o), o;
1652
1652
  };
1653
- const o5 = class o5 extends u {
1653
+ const C5 = class C5 extends p {
1654
1654
  constructor() {
1655
1655
  super(...arguments), this.effect = "pulse", this.shape = "rectangle", this.height = "", this.width = "100%", this.duration = 1500, this.fontSize = "";
1656
1656
  }
@@ -1662,14 +1662,14 @@ const o5 = class o5 extends u {
1662
1662
  this.shape === "rectangle" ? "skeleton--rectangle" : "",
1663
1663
  this.shape === "text" && this.fontSize ? "skeleton--text" : ""
1664
1664
  ].filter(Boolean).join(" "), t = this.shape === "text" && this.fontSize ? `--anduin-skeleton-font-size: ${this.fontSize};` : "", i = `${this.height ? `height: ${this.height};` : ""} width: ${this.width};`, o = this.effect === "pulse" ? `animation: skeleton-pulse ${this.duration}ms ease-in-out infinite;` : "";
1665
- return C`
1665
+ return s`
1666
1666
  <div class="${e}" style="${t} ${i} ${o}" part="skeleton">
1667
- ${this.effect === "wave" ? C`<div class="skeleton__wave" style="animation: skeleton-wave ${this.duration}ms linear infinite;"></div>` : ""}
1667
+ ${this.effect === "wave" ? s`<div class="skeleton__wave" style="animation: skeleton-wave ${this.duration}ms linear infinite;"></div>` : ""}
1668
1668
  </div>
1669
1669
  `;
1670
1670
  }
1671
1671
  };
1672
- o5.styles = g`
1672
+ C5.styles = h`
1673
1673
  :host { display: block; height: 100%; font-family: var(--font-sans); }
1674
1674
  .skeleton { background-color: var(--color-gray-3); position: relative; overflow: hidden; }
1675
1675
  .skeleton--circle { border-radius: 9999px; }
@@ -1688,7 +1688,7 @@ o5.styles = g`
1688
1688
  0% { transform: translateX(-100%); } 100% { transform: translateX(100%); }
1689
1689
  }
1690
1690
  `;
1691
- let D = o5;
1691
+ let D = C5;
1692
1692
  M1([
1693
1693
  a()
1694
1694
  ], D.prototype, "effect");
@@ -1708,17 +1708,17 @@ M1([
1708
1708
  a({ attribute: "font-size" })
1709
1709
  ], D.prototype, "fontSize");
1710
1710
  customElements.get("anduin-skeleton") || customElements.define("anduin-skeleton", D);
1711
- var Z3 = Object.defineProperty, _3 = (r, e, t, i) => {
1712
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
1713
- (n = r[l]) && (o = n(e, t, o) || o);
1714
- return o && Z3(e, t, o), o;
1711
+ var I3 = Object.defineProperty, D3 = (n, e, t, i) => {
1712
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
1713
+ (r = n[l]) && (o = r(e, t, o) || o);
1714
+ return o && I3(e, t, o), o;
1715
1715
  };
1716
- const i5 = class i5 extends u {
1716
+ const d5 = class d5 extends p {
1717
1717
  constructor() {
1718
1718
  super(...arguments), this.height = "256px";
1719
1719
  }
1720
1720
  render() {
1721
- return C`
1721
+ return s`
1722
1722
  <div class="loading-state" style="height: ${this.height};" part="loading-state">
1723
1723
  <div class="loading-state__indicator">
1724
1724
  <anduin-spinner size="large"></anduin-spinner>
@@ -1728,30 +1728,30 @@ const i5 = class i5 extends u {
1728
1728
  `;
1729
1729
  }
1730
1730
  };
1731
- i5.styles = g`
1731
+ d5.styles = h`
1732
1732
  :host { display: block; height: 100%; font-family: var(--font-sans); }
1733
1733
  .loading-state { display: flex; flex-direction: column; justify-content: center; align-items: center; }
1734
1734
  .loading-state__indicator { color: var(--color-primary-4); }
1735
1735
  .loading-state__content { margin-top: 12px; font-size: 15px; color: var(--color-gray-6); }
1736
1736
  `;
1737
- let n2 = i5;
1738
- _3([
1737
+ let a2 = d5;
1738
+ D3([
1739
1739
  a()
1740
- ], n2.prototype, "height");
1741
- customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", n2);
1742
- var x3 = Object.defineProperty, N2 = (r, e, t, i) => {
1743
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
1744
- (n = r[l]) && (o = n(e, t, o) || o);
1745
- return o && x3(e, t, o), o;
1740
+ ], a2.prototype, "height");
1741
+ customElements.get("anduin-loading-state") || customElements.define("anduin-loading-state", a2);
1742
+ var T3 = Object.defineProperty, X2 = (n, e, t, i) => {
1743
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
1744
+ (r = n[l]) && (o = r(e, t, o) || o);
1745
+ return o && T3(e, t, o), o;
1746
1746
  };
1747
- const $4 = "anduin-field:label-click", Z1 = "anduin-field:label-click-coordinated", l5 = class l5 extends u {
1747
+ const U4 = "anduin-field:label-click", x1 = "anduin-field:label-click-coordinated", c5 = class c5 extends p {
1748
1748
  constructor() {
1749
1749
  super(...arguments), this.orientation = "vertical";
1750
1750
  }
1751
1751
  connectedCallback() {
1752
- super.connectedCallback(), this.addEventListener($4, (e) => {
1752
+ super.connectedCallback(), this.addEventListener(U4, (e) => {
1753
1753
  const t = e;
1754
- this.dispatchEvent(new CustomEvent(Z1, {
1754
+ this.dispatchEvent(new CustomEvent(x1, {
1755
1755
  detail: t.detail,
1756
1756
  bubbles: !1,
1757
1757
  composed: !1
@@ -1760,24 +1760,24 @@ const $4 = "anduin-field:label-click", Z1 = "anduin-field:label-click-coordinate
1760
1760
  }
1761
1761
  render() {
1762
1762
  const e = this.orientation === "horizontal";
1763
- return C`
1763
+ return s`
1764
1764
  <div class="field ${e ? "field--horizontal" : "field--vertical"}" part="field">
1765
1765
  <slot></slot>
1766
1766
  </div>
1767
1767
  `;
1768
1768
  }
1769
1769
  };
1770
- l5.styles = g`
1770
+ c5.styles = h`
1771
1771
  :host { display: block; font-family: var(--font-sans); }
1772
1772
  .field { display: flex; flex-wrap: wrap; }
1773
1773
  .field--vertical { flex-direction: column; row-gap: 4px; }
1774
1774
  .field--horizontal { column-gap: 4px; }
1775
1775
  `;
1776
- let a2 = l5;
1777
- N2([
1776
+ let s2 = c5;
1777
+ X2([
1778
1778
  a()
1779
- ], a2.prototype, "orientation");
1780
- const r5 = class r5 extends u {
1779
+ ], s2.prototype, "orientation");
1780
+ const p5 = class p5 extends p {
1781
1781
  constructor() {
1782
1782
  super(...arguments), this.htmlfor = "", this.required = !1;
1783
1783
  }
@@ -1785,91 +1785,91 @@ const r5 = class r5 extends u {
1785
1785
  super.connectedCallback();
1786
1786
  }
1787
1787
  onLabelClick(e) {
1788
- this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent($4, {
1788
+ this.htmlfor && (e.preventDefault(), this.dispatchEvent(new CustomEvent(U4, {
1789
1789
  detail: this.htmlfor,
1790
1790
  bubbles: !0,
1791
1791
  composed: !0
1792
1792
  })));
1793
1793
  }
1794
1794
  render() {
1795
- return C`
1795
+ return s`
1796
1796
  <label
1797
1797
  class="field-label"
1798
1798
  part="label"
1799
1799
  for=${this.htmlfor || ""}
1800
1800
  @click=${this.onLabelClick}
1801
1801
  >
1802
- <slot></slot>${this.required ? C`<span class="field-label__required"> *</span>` : ""}
1802
+ <slot></slot>${this.required ? s`<span class="field-label__required"> *</span>` : ""}
1803
1803
  </label>
1804
1804
  `;
1805
1805
  }
1806
1806
  };
1807
- r5.styles = g`
1807
+ p5.styles = h`
1808
1808
  :host { display: inline-block; font-family: var(--font-sans); }
1809
1809
  .field-label { font-size: 13px; line-height: 20px; font-weight: 600; cursor: default; color: var(--color-gray-8, #101828); }
1810
1810
  .field-label__required { color: var(--color-danger-5); }
1811
1811
  `;
1812
- let D1 = r5;
1813
- N2([
1812
+ let T1 = p5;
1813
+ X2([
1814
1814
  a()
1815
- ], D1.prototype, "htmlfor");
1816
- N2([
1815
+ ], T1.prototype, "htmlfor");
1816
+ X2([
1817
1817
  a({ type: Boolean })
1818
- ], D1.prototype, "required");
1819
- const n5 = class n5 extends u {
1818
+ ], T1.prototype, "required");
1819
+ const u5 = class u5 extends p {
1820
1820
  render() {
1821
- return C`<div class="field-description" part="description"><slot></slot></div>`;
1821
+ return s`<div class="field-description" part="description"><slot></slot></div>`;
1822
1822
  }
1823
1823
  };
1824
- n5.styles = g`
1824
+ u5.styles = h`
1825
1825
  :host { display: inline-block; font-family: var(--font-sans); }
1826
1826
  .field-description { display: block; line-height: 16px; font-size: 11px; color: var(--color-gray-7); }
1827
1827
  `;
1828
- let b2 = n5;
1829
- const a5 = class a5 extends u {
1828
+ let L2 = u5;
1829
+ const h5 = class h5 extends p {
1830
1830
  render() {
1831
- return C`<div class="field-error" part="error"><slot></slot></div>`;
1831
+ return s`<div class="field-error" part="error"><slot></slot></div>`;
1832
1832
  }
1833
1833
  };
1834
- a5.styles = g`
1834
+ h5.styles = h`
1835
1835
  :host { display: block; font-family: var(--font-sans); }
1836
1836
  .field-error { color: var(--color-danger-4); }
1837
1837
  `;
1838
- let L2 = a5;
1839
- const s5 = class s5 extends u {
1838
+ let y2 = h5;
1839
+ const g5 = class g5 extends p {
1840
1840
  render() {
1841
- return C`<div class="field-group" part="group"><slot></slot></div>`;
1841
+ return s`<div class="field-group" part="group"><slot></slot></div>`;
1842
1842
  }
1843
1843
  };
1844
- s5.styles = g`
1844
+ g5.styles = h`
1845
1845
  :host { display: block; font-family: var(--font-sans); }
1846
1846
  .field-group { display: flex; flex-direction: column; row-gap: 24px; }
1847
1847
  `;
1848
- let y2 = s5;
1849
- customElements.get("anduin-field") || customElements.define("anduin-field", a2);
1850
- customElements.get("anduin-field-label") || customElements.define("anduin-field-label", D1);
1851
- customElements.get("anduin-field-description") || customElements.define("anduin-field-description", b2);
1852
- customElements.get("anduin-field-error") || customElements.define("anduin-field-error", L2);
1853
- customElements.get("anduin-field-group") || customElements.define("anduin-field-group", y2);
1854
- var w3 = Object.defineProperty, X1 = (r, e, t, i) => {
1855
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
1856
- (n = r[l]) && (o = n(e, t, o) || o);
1857
- return o && w3(e, t, o), o;
1848
+ let M2 = g5;
1849
+ customElements.get("anduin-field") || customElements.define("anduin-field", s2);
1850
+ customElements.get("anduin-field-label") || customElements.define("anduin-field-label", T1);
1851
+ customElements.get("anduin-field-description") || customElements.define("anduin-field-description", L2);
1852
+ customElements.get("anduin-field-error") || customElements.define("anduin-field-error", y2);
1853
+ customElements.get("anduin-field-group") || customElements.define("anduin-field-group", M2);
1854
+ var N3 = Object.defineProperty, K1 = (n, e, t, i) => {
1855
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
1856
+ (r = n[l]) && (o = r(e, t, o) || o);
1857
+ return o && N3(e, t, o), o;
1858
1858
  };
1859
- const R3 = "anduin-checkbox:change", C5 = class C5 extends u {
1859
+ const j3 = "anduin-checkbox:change", v5 = class v5 extends p {
1860
1860
  constructor() {
1861
1861
  super(...arguments), this.checked = !1, this.disabled = !1, this.indeterminate = !1, this.readonly = !1, this.inputid = "";
1862
1862
  }
1863
1863
  connectedCallback() {
1864
1864
  super.connectedCallback();
1865
1865
  const e = this.closest("anduin-field");
1866
- e && e.addEventListener(Z1, (t) => {
1866
+ e && e.addEventListener(x1, (t) => {
1867
1867
  const i = t;
1868
1868
  this.inputid && this.inputid === i.detail && !this.disabled && !this.readonly && this.toggle();
1869
1869
  });
1870
1870
  }
1871
1871
  toggle() {
1872
- this.checked = !this.checked, this.dispatchEvent(new CustomEvent(R3, {
1872
+ this.checked = !this.checked, this.dispatchEvent(new CustomEvent(j3, {
1873
1873
  detail: this.checked,
1874
1874
  bubbles: !0,
1875
1875
  composed: !0
@@ -1886,7 +1886,7 @@ const R3 = "anduin-checkbox:change", C5 = class C5 extends u {
1886
1886
  this.disabled && !this.indeterminate && !this.checked ? "checkbox__box--disabled" : "",
1887
1887
  !this.indeterminate && !this.checked && !this.readonly && !this.disabled ? "checkbox__box--unchecked" : ""
1888
1888
  ].filter(Boolean).join(" "), t = this.indeterminate ? "minusBold" : this.checked ? "checkBold" : "", i = !this.disabled && !this.readonly, o = i ? 0 : -1;
1889
- return C`
1889
+ return s`
1890
1890
  <label class="${this.disabled ? "is-disabled" : ""}">
1891
1891
  <div
1892
1892
  class="checkbox ${i ? "checkbox--interactive" : ""} ${this.disabled ? "checkbox--disabled" : ""}"
@@ -1902,7 +1902,7 @@ const R3 = "anduin-checkbox:change", C5 = class C5 extends u {
1902
1902
  />
1903
1903
  <div class="${e}" tabindex="${o}"></div>
1904
1904
  <div class="checkbox__icon ${this.indeterminate || this.checked ? "checkbox__icon--visible" : ""}">
1905
- ${t ? C`<anduin-icon name="${t}" size="16"></anduin-icon>` : c}
1905
+ ${t ? s`<anduin-icon name="${t}" size="16"></anduin-icon>` : c}
1906
1906
  </div>
1907
1907
  </div>
1908
1908
  <span class="checkbox__label"><slot></slot></span>
@@ -1910,7 +1910,7 @@ const R3 = "anduin-checkbox:change", C5 = class C5 extends u {
1910
1910
  `;
1911
1911
  }
1912
1912
  };
1913
- C5.styles = g`
1913
+ v5.styles = h`
1914
1914
  :host { display: inline-flex; font-family: var(--font-sans); }
1915
1915
 
1916
1916
  label {
@@ -1948,36 +1948,36 @@ C5.styles = g`
1948
1948
  .checkbox__icon { position: absolute; inset: 0; pointer-events: none; color: var(--color-gray-4); display: flex; align-items: center; justify-content: center; }
1949
1949
  .checkbox__icon--visible { color: var(--color-gray-0); }
1950
1950
  `;
1951
- let X = C5;
1952
- X1([
1951
+ let X = v5;
1952
+ K1([
1953
1953
  a({ type: Boolean })
1954
1954
  ], X.prototype, "checked");
1955
- X1([
1955
+ K1([
1956
1956
  a({ type: Boolean })
1957
1957
  ], X.prototype, "disabled");
1958
- X1([
1958
+ K1([
1959
1959
  a({ type: Boolean })
1960
1960
  ], X.prototype, "indeterminate");
1961
- X1([
1961
+ K1([
1962
1962
  a({ type: Boolean })
1963
1963
  ], X.prototype, "readonly");
1964
- X1([
1964
+ K1([
1965
1965
  a()
1966
1966
  ], X.prototype, "inputid");
1967
1967
  customElements.get("anduin-checkbox") || customElements.define("anduin-checkbox", X);
1968
- var k3 = Object.defineProperty, A = (r, e, t, i) => {
1969
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
1970
- (n = r[l]) && (o = n(e, t, o) || o);
1971
- return o && k3(e, t, o), o;
1968
+ var U3 = Object.defineProperty, A = (n, e, t, i) => {
1969
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
1970
+ (r = n[l]) && (o = r(e, t, o) || o);
1971
+ return o && U3(e, t, o), o;
1972
1972
  };
1973
- const r4 = "anduin-input:change", $3 = "anduin-input:clear", d5 = class d5 extends u {
1973
+ const H4 = "anduin-input:change", G3 = "anduin-input:clear", f5 = class f5 extends p {
1974
1974
  constructor() {
1975
1975
  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;
1976
1976
  }
1977
1977
  connectedCallback() {
1978
1978
  super.connectedCallback();
1979
1979
  const e = this.closest("anduin-field");
1980
- e && e.addEventListener(Z1, (t) => {
1980
+ e && e.addEventListener(x1, (t) => {
1981
1981
  var o;
1982
1982
  const i = t;
1983
1983
  this.inputid && this.inputid === i.detail && ((o = this.inputEl) == null || o.focus());
@@ -1987,7 +1987,7 @@ const r4 = "anduin-input:change", $3 = "anduin-input:clear", d5 = class d5 exten
1987
1987
  this.inputEl && this.inputEl.value !== this.value && (this.inputEl.value = this.value);
1988
1988
  }
1989
1989
  onInput() {
1990
- this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(r4, {
1990
+ this.value = this.inputEl.value, this.dispatchEvent(new CustomEvent(H4, {
1991
1991
  detail: this.value,
1992
1992
  bubbles: !0,
1993
1993
  composed: !0
@@ -1995,15 +1995,15 @@ const r4 = "anduin-input:change", $3 = "anduin-input:clear", d5 = class d5 exten
1995
1995
  }
1996
1996
  onClear() {
1997
1997
  var e;
1998
- this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(r4, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent($3, { bubbles: !0, composed: !0 })), (e = this.inputEl) == null || e.focus();
1998
+ this.value = "", this.inputEl && (this.inputEl.value = ""), this.dispatchEvent(new CustomEvent(H4, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(G3, { bubbles: !0, composed: !0 })), (e = this.inputEl) == null || e.focus();
1999
1999
  }
2000
2000
  render() {
2001
- 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, l = this.clearable && !!this.value && !this.disabled && !this.readonly, n = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", s = this.size === "small" ? "10" : this.size === "large" ? "16" : "14";
2002
- return C`
2001
+ 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, l = this.clearable && !!this.value && !this.disabled && !this.readonly, r = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", C = this.size === "small" ? "10" : this.size === "large" ? "16" : "14";
2002
+ return s`
2003
2003
  <div class="input-wrapper">
2004
- ${i ? C`
2004
+ ${i ? s`
2005
2005
  <span class="input__start">
2006
- <anduin-icon name=${this.startIcon} size=${n}></anduin-icon>
2006
+ <anduin-icon name=${this.startIcon} size=${r}></anduin-icon>
2007
2007
  </span>
2008
2008
  ` : c}
2009
2009
 
@@ -2023,15 +2023,15 @@ const r4 = "anduin-input:change", $3 = "anduin-input:clear", d5 = class d5 exten
2023
2023
  @input=${this.onInput}
2024
2024
  />
2025
2025
 
2026
- ${o ? C`
2026
+ ${o ? s`
2027
2027
  <span class="input__end">
2028
- ${l ? C`
2028
+ ${l ? s`
2029
2029
  <button class="input__clear" type="button" @click=${this.onClear} aria-label="Clear">
2030
- <anduin-icon name="cross" size=${s}></anduin-icon>
2030
+ <anduin-icon name="cross" size=${C}></anduin-icon>
2031
2031
  </button>
2032
2032
  ` : c}
2033
- ${this.endIcon ? C`
2034
- <anduin-icon name=${this.endIcon} size=${n}></anduin-icon>
2033
+ ${this.endIcon ? s`
2034
+ <anduin-icon name=${this.endIcon} size=${r}></anduin-icon>
2035
2035
  ` : c}
2036
2036
  </span>
2037
2037
  ` : c}
@@ -2039,7 +2039,7 @@ const r4 = "anduin-input:change", $3 = "anduin-input:clear", d5 = class d5 exten
2039
2039
  `;
2040
2040
  }
2041
2041
  };
2042
- d5.styles = g`
2042
+ f5.styles = h`
2043
2043
  :host { display: block; font-family: var(--font-sans); }
2044
2044
 
2045
2045
  .input-wrapper { position: relative; display: flex; align-items: center; }
@@ -2093,7 +2093,7 @@ d5.styles = g`
2093
2093
  }
2094
2094
  .input__clear:hover { color: var(--color-gray-7); }
2095
2095
  `;
2096
- let w = d5;
2096
+ let w = f5;
2097
2097
  A([
2098
2098
  a()
2099
2099
  ], w.prototype, "value");
@@ -2128,19 +2128,19 @@ A([
2128
2128
  R("input")
2129
2129
  ], w.prototype, "inputEl");
2130
2130
  customElements.get("anduin-input") || customElements.define("anduin-input", w);
2131
- var E3 = Object.defineProperty, e1 = (r, e, t, i) => {
2132
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
2133
- (n = r[l]) && (o = n(e, t, o) || o);
2134
- return o && E3(e, t, o), o;
2131
+ var q3 = Object.defineProperty, e1 = (n, e, t, i) => {
2132
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
2133
+ (r = n[l]) && (o = r(e, t, o) || o);
2134
+ return o && q3(e, t, o), o;
2135
2135
  };
2136
- const z3 = "anduin-textarea:change", c5 = class c5 extends u {
2136
+ const W3 = "anduin-textarea:change", H5 = class H5 extends p {
2137
2137
  constructor() {
2138
2138
  super(...arguments), this.value = "", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.inputid = "", this.rows = 3, this.status = "";
2139
2139
  }
2140
2140
  connectedCallback() {
2141
2141
  super.connectedCallback();
2142
2142
  const e = this.closest("anduin-field");
2143
- e && e.addEventListener(Z1, (t) => {
2143
+ e && e.addEventListener(x1, (t) => {
2144
2144
  var o;
2145
2145
  const i = t;
2146
2146
  this.inputid && this.inputid === i.detail && ((o = this.textareaEl) == null || o.focus());
@@ -2150,7 +2150,7 @@ const z3 = "anduin-textarea:change", c5 = class c5 extends u {
2150
2150
  this.textareaEl && this.textareaEl.value !== this.value && (this.textareaEl.value = this.value);
2151
2151
  }
2152
2152
  onInput() {
2153
- this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(z3, {
2153
+ this.value = this.textareaEl.value, this.dispatchEvent(new CustomEvent(W3, {
2154
2154
  detail: this.value,
2155
2155
  bubbles: !0,
2156
2156
  composed: !0
@@ -2158,7 +2158,7 @@ const z3 = "anduin-textarea:change", c5 = class c5 extends u {
2158
2158
  }
2159
2159
  render() {
2160
2160
  const e = this.status ? `textarea--${this.status}` : "";
2161
- return C`
2161
+ return s`
2162
2162
  <textarea
2163
2163
  class="textarea
2164
2164
  ${this.disabled ? "textarea--disabled" : ""}
@@ -2175,7 +2175,7 @@ const z3 = "anduin-textarea:change", c5 = class c5 extends u {
2175
2175
  `;
2176
2176
  }
2177
2177
  };
2178
- c5.styles = g`
2178
+ H5.styles = h`
2179
2179
  :host { display: block; font-family: var(--font-sans); }
2180
2180
 
2181
2181
  .textarea {
@@ -2192,7 +2192,7 @@ c5.styles = g`
2192
2192
  .textarea--warning { border-color: var(--color-warning-4); }
2193
2193
  .textarea--loading { border-color: var(--color-gray-4); }
2194
2194
  `;
2195
- let E = c5;
2195
+ let E = H5;
2196
2196
  e1([
2197
2197
  a()
2198
2198
  ], E.prototype, "value");
@@ -2218,20 +2218,20 @@ e1([
2218
2218
  R("textarea")
2219
2219
  ], E.prototype, "textareaEl");
2220
2220
  customElements.get("anduin-textarea") || customElements.define("anduin-textarea", E);
2221
- var A3 = Object.defineProperty, $ = (r, e, t, i) => {
2222
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
2223
- (n = r[l]) && (o = n(e, t, o) || o);
2224
- return o && A3(e, t, o), o;
2221
+ var Y3 = Object.defineProperty, $ = (n, e, t, i) => {
2222
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
2223
+ (r = n[l]) && (o = r(e, t, o) || o);
2224
+ return o && Y3(e, t, o), o;
2225
2225
  };
2226
- const E4 = "anduin-tab:trigger-click", c2 = "anduin-tab:value-changed", B3 = "anduin-tab:change", p5 = class p5 extends u {
2226
+ const G4 = "anduin-tab:trigger-click", p2 = "anduin-tab:value-changed", X3 = "anduin-tab:change", m5 = class m5 extends p {
2227
2227
  constructor() {
2228
2228
  super(...arguments), this.defaultValue = "", this.value = "", this.fill = !1;
2229
2229
  }
2230
2230
  connectedCallback() {
2231
- super.connectedCallback(), this.addEventListener(E4, (e) => {
2231
+ super.connectedCallback(), this.addEventListener(G4, (e) => {
2232
2232
  e.stopPropagation();
2233
2233
  const t = e;
2234
- this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(B3, { detail: t.detail, bubbles: !0, composed: !0 }));
2234
+ this.value = t.detail, this.broadcastValueChanged(t.detail), this.dispatchEvent(new CustomEvent(X3, { detail: t.detail, bubbles: !0, composed: !0 }));
2235
2235
  }), requestAnimationFrame(() => {
2236
2236
  const e = this.value || this.defaultValue;
2237
2237
  e && (this.value || (this.value = e), this.broadcastValueChanged(e));
@@ -2244,19 +2244,19 @@ const E4 = "anduin-tab:trigger-click", c2 = "anduin-tab:value-changed", B3 = "an
2244
2244
  }
2245
2245
  }
2246
2246
  broadcastValueChanged(e) {
2247
- this.dispatchEvent(new CustomEvent(c2, { detail: e, bubbles: !1, composed: !1 }));
2247
+ this.dispatchEvent(new CustomEvent(p2, { detail: e, bubbles: !1, composed: !1 }));
2248
2248
  }
2249
2249
  render() {
2250
- return C`<div class="tabs" part="tabs"><slot></slot></div>`;
2250
+ return s`<div class="tabs" part="tabs"><slot></slot></div>`;
2251
2251
  }
2252
2252
  };
2253
- p5.styles = g`
2253
+ m5.styles = h`
2254
2254
  :host { display: flex; flex-direction: column; font-family: var(--font-sans); }
2255
2255
  :host([fill]) { flex: 1; min-height: 0; --_tab-fill-flex: 1; --_tab-fill-height: 100%; }
2256
2256
  .tabs { display: flex; flex-direction: column; width: 100%; }
2257
2257
  :host([fill]) .tabs { flex: 1; min-height: 0; }
2258
2258
  `;
2259
- let H1 = p5;
2259
+ let H1 = m5;
2260
2260
  $([
2261
2261
  a({ attribute: "default-value" })
2262
2262
  ], H1.prototype, "defaultValue");
@@ -2266,14 +2266,14 @@ $([
2266
2266
  $([
2267
2267
  a({ type: Boolean, reflect: !0 })
2268
2268
  ], H1.prototype, "fill");
2269
- const u5 = class u5 extends u {
2269
+ const b5 = class b5 extends p {
2270
2270
  constructor() {
2271
2271
  super(...arguments), this.alignment = "left", this.lastActiveValue = "", this.resizeObserver = null;
2272
2272
  }
2273
2273
  connectedCallback() {
2274
2274
  super.connectedCallback();
2275
2275
  const e = this.closest("anduin-tabs");
2276
- e && e.addEventListener(c2, (t) => {
2276
+ e && e.addEventListener(p2, (t) => {
2277
2277
  const i = t;
2278
2278
  this.lastActiveValue = i.detail, requestAnimationFrame(() => {
2279
2279
  this.animateIndicator(i.detail);
@@ -2295,14 +2295,14 @@ const u5 = class u5 extends u {
2295
2295
  for (let i = 0; i < t.length; i++) {
2296
2296
  const o = t[i];
2297
2297
  if ((o.value || o.getAttribute("value")) === e) {
2298
- const n = o.getBoundingClientRect(), s = this.getBoundingClientRect(), d = n.left - s.left + this.scrollLeft;
2299
- this.indicator && (this.indicator.style.width = `${n.width}px`, this.indicator.style.transform = `translateX(${d}px)`);
2298
+ const r = o.getBoundingClientRect(), C = this.getBoundingClientRect(), d = r.left - C.left + this.scrollLeft;
2299
+ this.indicator && (this.indicator.style.width = `${r.width}px`, this.indicator.style.transform = `translateX(${d}px)`);
2300
2300
  break;
2301
2301
  }
2302
2302
  }
2303
2303
  }
2304
2304
  render() {
2305
- return C`
2305
+ return s`
2306
2306
  <div class="tabs-list tabs-list--${this.alignment}" role="tablist" aria-orientation="horizontal" part="tabs-list">
2307
2307
  <slot></slot>
2308
2308
  <div class="tabs-list__indicator"></div>
@@ -2310,7 +2310,7 @@ const u5 = class u5 extends u {
2310
2310
  `;
2311
2311
  }
2312
2312
  };
2313
- u5.styles = g`
2313
+ b5.styles = h`
2314
2314
  :host { display: block; font-family: var(--font-sans); }
2315
2315
  .tabs-list {
2316
2316
  display: flex; background-color: var(--color-gray-0);
@@ -2325,30 +2325,30 @@ u5.styles = g`
2325
2325
  left: 0; height: 2px; transition-duration: 200ms; transition-property: transform, width;
2326
2326
  }
2327
2327
  `;
2328
- let T1 = u5;
2328
+ let N1 = b5;
2329
2329
  $([
2330
2330
  a()
2331
- ], T1.prototype, "alignment");
2331
+ ], N1.prototype, "alignment");
2332
2332
  $([
2333
2333
  R(".tabs-list__indicator")
2334
- ], T1.prototype, "indicator");
2335
- const h5 = class h5 extends u {
2334
+ ], N1.prototype, "indicator");
2335
+ const V5 = class V5 extends p {
2336
2336
  constructor() {
2337
2337
  super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.showBadge = !1, this.badgeCount = "", this.isActive = !1;
2338
2338
  }
2339
2339
  connectedCallback() {
2340
2340
  super.connectedCallback();
2341
2341
  const e = this.closest("anduin-tabs");
2342
- e && e.addEventListener(c2, (t) => {
2342
+ e && e.addEventListener(p2, (t) => {
2343
2343
  const i = t;
2344
2344
  this.isActive = i.detail === this.value;
2345
2345
  });
2346
2346
  }
2347
2347
  onClick() {
2348
- this.dispatchEvent(new CustomEvent(E4, { detail: this.value, bubbles: !0, composed: !0 }));
2348
+ this.dispatchEvent(new CustomEvent(G4, { detail: this.value, bubbles: !0, composed: !0 }));
2349
2349
  }
2350
2350
  render() {
2351
- return C`
2351
+ return s`
2352
2352
  <button
2353
2353
  class="tab-trigger ${this.isActive ? "tab-trigger--active" : "tab-trigger--normal"}"
2354
2354
  role="tab"
@@ -2358,15 +2358,15 @@ const h5 = class h5 extends u {
2358
2358
  @click=${this.onClick}
2359
2359
  >
2360
2360
  <div class="tab-trigger__content">
2361
- ${this.startIcon ? C`<anduin-icon name="${this.startIcon}" size="16"></anduin-icon>` : c}
2361
+ ${this.startIcon ? s`<anduin-icon name="${this.startIcon}" size="16"></anduin-icon>` : c}
2362
2362
  <slot></slot>
2363
- ${this.showBadge ? C`<span class="tab-trigger__badge">${this.badgeCount}</span>` : c}
2363
+ ${this.showBadge ? s`<span class="tab-trigger__badge">${this.badgeCount}</span>` : c}
2364
2364
  </div>
2365
2365
  </button>
2366
2366
  `;
2367
2367
  }
2368
2368
  };
2369
- h5.styles = g`
2369
+ V5.styles = h`
2370
2370
  :host { display: inline-block; font-family: var(--font-sans); }
2371
2371
  .tab-trigger {
2372
2372
  cursor: pointer; background: none; border: none; display: block;
@@ -2389,7 +2389,7 @@ h5.styles = g`
2389
2389
  color: var(--color-gray-7); white-space: nowrap;
2390
2390
  }
2391
2391
  `;
2392
- let T = h5;
2392
+ let T = V5;
2393
2393
  $([
2394
2394
  a({ reflect: !0 })
2395
2395
  ], T.prototype, "value");
@@ -2406,16 +2406,16 @@ $([
2406
2406
  a({ attribute: "badge-count" })
2407
2407
  ], T.prototype, "badgeCount");
2408
2408
  $([
2409
- V()
2409
+ b()
2410
2410
  ], T.prototype, "isActive");
2411
- const g5 = class g5 extends u {
2411
+ const L5 = class L5 extends p {
2412
2412
  constructor() {
2413
2413
  super(...arguments), this.value = "", this.isActive = !1;
2414
2414
  }
2415
2415
  connectedCallback() {
2416
2416
  super.connectedCallback();
2417
2417
  const e = this.closest("anduin-tabs");
2418
- e && e.addEventListener(c2, (t) => {
2418
+ e && e.addEventListener(p2, (t) => {
2419
2419
  const i = t;
2420
2420
  this.isActive = i.detail === this.value;
2421
2421
  });
@@ -2424,35 +2424,35 @@ const g5 = class g5 extends u {
2424
2424
  e.has("isActive") && this.toggleAttribute("active", this.isActive);
2425
2425
  }
2426
2426
  render() {
2427
- return C`
2427
+ return s`
2428
2428
  <div class="tab-content" role="tabpanel" tabindex="0" part="tab-content">
2429
2429
  <slot></slot>
2430
2430
  </div>
2431
2431
  `;
2432
2432
  }
2433
2433
  };
2434
- g5.styles = g`
2434
+ L5.styles = h`
2435
2435
  :host { display: block; font-family: var(--font-sans); flex: var(--_tab-fill-flex, 0 0 auto); min-height: 0; }
2436
2436
  :host(:not([active])) { display: none; }
2437
2437
  .tab-content { width: 100%; height: var(--_tab-fill-height, auto); overflow-x: hidden; overflow-y: auto; }
2438
2438
  `;
2439
- let N1 = g5;
2439
+ let j1 = L5;
2440
2440
  $([
2441
2441
  a()
2442
- ], N1.prototype, "value");
2442
+ ], j1.prototype, "value");
2443
2443
  $([
2444
- V()
2445
- ], N1.prototype, "isActive");
2444
+ b()
2445
+ ], j1.prototype, "isActive");
2446
2446
  customElements.get("anduin-tabs") || customElements.define("anduin-tabs", H1);
2447
- customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", T1);
2447
+ customElements.get("anduin-tabs-list") || customElements.define("anduin-tabs-list", N1);
2448
2448
  customElements.get("anduin-tab-trigger") || customElements.define("anduin-tab-trigger", T);
2449
- customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", N1);
2450
- var P3 = Object.defineProperty, j2 = (r, e, t, i) => {
2451
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
2452
- (n = r[l]) && (o = n(e, t, o) || o);
2453
- return o && P3(e, t, o), o;
2449
+ customElements.get("anduin-tab-content") || customElements.define("anduin-tab-content", j1);
2450
+ var K3 = Object.defineProperty, K2 = (n, e, t, i) => {
2451
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
2452
+ (r = n[l]) && (o = r(e, t, o) || o);
2453
+ return o && K3(e, t, o), o;
2454
2454
  };
2455
- const S3 = "anduin-tag-close:click", F3 = {
2455
+ const J3 = "anduin-tag-close:click", Q3 = {
2456
2456
  gray: "tag--light-gray",
2457
2457
  primary: "tag--light-primary",
2458
2458
  success: "tag--light-success",
@@ -2477,7 +2477,7 @@ const S3 = "anduin-tag-close:click", F3 = {
2477
2477
  customYellow: "tag--custom-yellow",
2478
2478
  customYellowGreen: "tag--custom-yellow-green",
2479
2479
  customYellowOrange: "tag--custom-yellow-orange"
2480
- }, O3 = {
2480
+ }, e7 = {
2481
2481
  gray: "tag__icon--light-gray",
2482
2482
  primary: "tag__icon--light-primary",
2483
2483
  success: "tag__icon--light-success",
@@ -2502,22 +2502,22 @@ const S3 = "anduin-tag-close:click", F3 = {
2502
2502
  customMagenta: "tag__icon--custom-magenta",
2503
2503
  customBlueGreen: "tag__icon--custom-blue-green",
2504
2504
  customPink: "tag__icon--custom-pink"
2505
- }, v5 = class v5 extends u {
2505
+ }, y5 = class y5 extends p {
2506
2506
  constructor() {
2507
2507
  super(...arguments), this.variant = "gray", this.icon = "", this.disabled = !1;
2508
2508
  }
2509
2509
  render() {
2510
- const e = F3[this.variant] || "tag--light-gray", t = O3[this.variant] || "tag__icon--light-gray";
2511
- return C`
2510
+ const e = Q3[this.variant] || "tag--light-gray", t = e7[this.variant] || "tag__icon--light-gray";
2511
+ return s`
2512
2512
  <div class="tag ${e} ${this.disabled ? "tag--disabled" : ""}" part="tag">
2513
- ${this.icon ? C`<anduin-icon name="${this.icon}" size="12" class="tag__icon ${t}"></anduin-icon>` : c}
2513
+ ${this.icon ? s`<anduin-icon name="${this.icon}" size="12" class="tag__icon ${t}"></anduin-icon>` : c}
2514
2514
  <div class="tag__label"><slot></slot></div>
2515
2515
  <slot name="closeButton" class="tag__close"></slot>
2516
2516
  </div>
2517
2517
  `;
2518
2518
  }
2519
2519
  };
2520
- v5.styles = g`
2520
+ y5.styles = h`
2521
2521
  :host { display: inline-flex; max-width: 100%; font-family: var(--font-sans); }
2522
2522
  .tag {
2523
2523
  font-weight: 500; font-size: 11px; height: 20px; padding-left: 6px; padding-right: 6px;
@@ -2565,29 +2565,29 @@ v5.styles = g`
2565
2565
  .tag--custom-yellow-green { color: var(--color-gray-9); background-color: rgb(174,207,85); }
2566
2566
  .tag--custom-yellow-orange { color: var(--color-gray-9); background-color: rgb(255,193,107); }
2567
2567
  `;
2568
- let m1 = v5;
2569
- j2([
2568
+ let m1 = y5;
2569
+ K2([
2570
2570
  a()
2571
2571
  ], m1.prototype, "variant");
2572
- j2([
2572
+ K2([
2573
2573
  a()
2574
2574
  ], m1.prototype, "icon");
2575
- j2([
2575
+ K2([
2576
2576
  a({ type: Boolean })
2577
2577
  ], m1.prototype, "disabled");
2578
- const f5 = class f5 extends u {
2578
+ const M5 = class M5 extends p {
2579
2579
  onClick() {
2580
- this.dispatchEvent(new CustomEvent(S3, { bubbles: !0, composed: !0 }));
2580
+ this.dispatchEvent(new CustomEvent(J3, { bubbles: !0, composed: !0 }));
2581
2581
  }
2582
2582
  render() {
2583
- return C`
2583
+ return s`
2584
2584
  <button class="tag-close__button" part="tag-close" @click=${this.onClick}>
2585
2585
  <anduin-icon name="crossSmall" size="12"></anduin-icon>
2586
2586
  </button>
2587
2587
  `;
2588
2588
  }
2589
2589
  };
2590
- f5.styles = g`
2590
+ M5.styles = h`
2591
2591
  :host { display: inline-block; font-family: var(--font-sans); }
2592
2592
  .tag-close__button {
2593
2593
  flex: none; width: 16px; height: 16px; display: flex; align-items: center;
@@ -2597,47 +2597,47 @@ f5.styles = g`
2597
2597
  .tag-close__button:hover { opacity: 0.7; }
2598
2598
  .tag-close__button:active { opacity: 0.5; }
2599
2599
  `;
2600
- let M2 = f5;
2600
+ let x2 = M5;
2601
2601
  customElements.get("anduin-tag") || customElements.define("anduin-tag", m1);
2602
- customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", M2);
2603
- var I3 = Object.defineProperty, k = (r, e, t, i) => {
2604
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
2605
- (n = r[l]) && (o = n(e, t, o) || o);
2606
- return o && I3(e, t, o), o;
2602
+ customElements.get("anduin-tag-close") || customElements.define("anduin-tag-close", x2);
2603
+ var t7 = Object.defineProperty, k = (n, e, t, i) => {
2604
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
2605
+ (r = n[l]) && (o = r(e, t, o) || o);
2606
+ return o && t7(e, t, o), o;
2607
2607
  };
2608
- const D3 = "anduin-toggle-group:change", T3 = "anduin-toggle-group-item:change", N3 = "anduin-toggle-group-item:select", j3 = "anduin-toggle-group-item:deselect", Z2 = "anduin-toggle-group-item:item-click", H5 = class H5 extends u {
2608
+ const o7 = "anduin-toggle-group:change", i7 = "anduin-toggle-group-item:change", l7 = "anduin-toggle-group-item:select", n7 = "anduin-toggle-group-item:deselect", _2 = "anduin-toggle-group-item:item-click", x5 = class x5 extends p {
2609
2609
  constructor() {
2610
2610
  super(...arguments), this.mode = "single", this.defaultValue = "", this.value = null, this.size = "medium", this.variant = "gray", this.gap = !1, this.internalValue = [], this.userInteracted = !1, this.onItemClick = (e) => {
2611
2611
  var d;
2612
2612
  e.stopPropagation();
2613
2613
  const i = e.detail, o = this.selection, l = o.includes(i);
2614
- let n;
2615
- this.mode === "multiple" ? n = l ? o.filter((p) => p !== i) : [...o, i] : n = l ? [] : [i];
2616
- const s = this.items.find((p) => p.value === i);
2617
- if (s == null || s.emitSelectionChange(!l), this.mode === "single" && !l)
2618
- for (const p of o)
2619
- (d = this.items.find((h) => h.value === p)) == null || d.emitSelectionChange(!1);
2620
- this.dispatchEvent(new CustomEvent(D3, {
2621
- detail: n.join(" "),
2614
+ let r;
2615
+ this.mode === "multiple" ? r = l ? o.filter((u) => u !== i) : [...o, i] : r = l ? [] : [i];
2616
+ const C = this.items.find((u) => u.value === i);
2617
+ if (C == null || C.emitSelectionChange(!l), this.mode === "single" && !l)
2618
+ for (const u of o)
2619
+ (d = this.items.find((g) => g.value === u)) == null || d.emitSelectionChange(!1);
2620
+ this.dispatchEvent(new CustomEvent(o7, {
2621
+ detail: r.join(" "),
2622
2622
  bubbles: !0,
2623
2623
  composed: !0
2624
- })), this.isControlled || (this.userInteracted = !0, this.internalValue = n);
2624
+ })), this.isControlled || (this.userInteracted = !0, this.internalValue = r);
2625
2625
  };
2626
2626
  }
2627
2627
  get isControlled() {
2628
2628
  return this.value != null;
2629
2629
  }
2630
2630
  get selection() {
2631
- return this.isControlled ? v2(this.value) : this.internalValue;
2631
+ return this.isControlled ? f2(this.value) : this.internalValue;
2632
2632
  }
2633
2633
  connectedCallback() {
2634
- super.connectedCallback(), this.hasUpdated || (this.internalValue = v2(this.defaultValue)), this.addEventListener(Z2, this.onItemClick);
2634
+ super.connectedCallback(), this.hasUpdated || (this.internalValue = f2(this.defaultValue)), this.addEventListener(_2, this.onItemClick);
2635
2635
  }
2636
2636
  willUpdate(e) {
2637
- e.has("defaultValue") && !this.isControlled && !this.userInteracted && (this.internalValue = v2(this.defaultValue));
2637
+ e.has("defaultValue") && !this.isControlled && !this.userInteracted && (this.internalValue = f2(this.defaultValue));
2638
2638
  }
2639
2639
  disconnectedCallback() {
2640
- super.disconnectedCallback(), this.removeEventListener(Z2, this.onItemClick);
2640
+ super.disconnectedCallback(), this.removeEventListener(_2, this.onItemClick);
2641
2641
  }
2642
2642
  updated() {
2643
2643
  this.syncItems();
@@ -2651,14 +2651,14 @@ const D3 = "anduin-toggle-group:change", T3 = "anduin-toggle-group-item:change",
2651
2651
  t.selected = e.includes(t.value), t.groupSize = this.size, t.groupVariant = this.variant, t.groupMode = this.mode;
2652
2652
  }
2653
2653
  render() {
2654
- return C`
2654
+ return s`
2655
2655
  <div class="toggle-group toggle-group--${this.size} ${this.gap ? "toggle-group--gap" : ""}" role="group" part="toggle-group">
2656
2656
  <slot @slotchange=${this.syncItems}></slot>
2657
2657
  </div>
2658
2658
  `;
2659
2659
  }
2660
2660
  };
2661
- H5.styles = g`
2661
+ x5.styles = h`
2662
2662
  :host { display: inline-flex; font-family: var(--font-sans); }
2663
2663
  .toggle-group { display: inline-flex; align-items: center; }
2664
2664
  .toggle-group--small {
@@ -2692,7 +2692,7 @@ H5.styles = g`
2692
2692
  /* Gapped pills stand alone, so each keeps all four borders. */
2693
2693
  .toggle-group--gap ::slotted(anduin-toggle-group-item) { --toggle-group-item-radius: 4px; --toggle-group-item-border-left: 1px; }
2694
2694
  `;
2695
- let P = H5;
2695
+ let P = x5;
2696
2696
  k([
2697
2697
  a()
2698
2698
  ], P.prototype, "mode");
@@ -2712,19 +2712,19 @@ k([
2712
2712
  a({ type: Boolean })
2713
2713
  ], P.prototype, "gap");
2714
2714
  k([
2715
- V()
2715
+ b()
2716
2716
  ], P.prototype, "internalValue");
2717
- const m5 = class m5 extends u {
2717
+ const _5 = class _5 extends p {
2718
2718
  constructor() {
2719
2719
  super(...arguments), this.value = "", this.startIcon = "", this.disabled = !1, this.selected = !1, this.groupSize = "medium", this.groupVariant = "gray", this.groupMode = "single";
2720
2720
  }
2721
2721
  /** Called by the parent group when the user's action changes this item's selection. */
2722
2722
  emitSelectionChange(e) {
2723
- this.dispatchEvent(new CustomEvent(T3, {
2723
+ this.dispatchEvent(new CustomEvent(i7, {
2724
2724
  detail: e,
2725
2725
  bubbles: !0,
2726
2726
  composed: !0
2727
- })), this.dispatchEvent(new CustomEvent(e ? N3 : j3, {
2727
+ })), this.dispatchEvent(new CustomEvent(e ? l7 : n7, {
2728
2728
  detail: this.value,
2729
2729
  bubbles: !0,
2730
2730
  composed: !0
@@ -2734,7 +2734,7 @@ const m5 = class m5 extends u {
2734
2734
  (e.has("selected") || e.has("groupMode")) && (this.groupMode === "single" ? (this.setAttribute("role", "radio"), this.setAttribute("aria-checked", String(this.selected))) : (this.removeAttribute("role"), this.removeAttribute("aria-checked")));
2735
2735
  }
2736
2736
  onClick() {
2737
- this.dispatchEvent(new CustomEvent(Z2, {
2737
+ this.dispatchEvent(new CustomEvent(_2, {
2738
2738
  detail: this.value,
2739
2739
  bubbles: !0,
2740
2740
  composed: !0
@@ -2747,7 +2747,7 @@ const m5 = class m5 extends u {
2747
2747
  this.disabled ? "toggle-item--disabled" : "",
2748
2748
  `toggle-item--variant-${this.groupVariant}`
2749
2749
  ].filter(Boolean).join(" ");
2750
- return C`
2750
+ return s`
2751
2751
  <button
2752
2752
  type="button"
2753
2753
  class="${e}"
@@ -2757,14 +2757,14 @@ const m5 = class m5 extends u {
2757
2757
  @click=${this.onClick}
2758
2758
  >
2759
2759
  <div class="toggle-item__content">
2760
- ${this.startIcon ? C`<div class="toggle-item__icon"><anduin-icon name="${this.startIcon}" size="${this.groupSize === "small" ? 12 : 16}"></anduin-icon></div>` : c}
2760
+ ${this.startIcon ? s`<div class="toggle-item__icon"><anduin-icon name="${this.startIcon}" size="${this.groupSize === "small" ? 12 : 16}"></anduin-icon></div>` : c}
2761
2761
  <slot></slot>
2762
2762
  </div>
2763
2763
  </button>
2764
2764
  `;
2765
2765
  }
2766
2766
  };
2767
- m5.styles = g`
2767
+ _5.styles = h`
2768
2768
  :host { display: inline-block; font-family: var(--font-sans); }
2769
2769
  .toggle-item {
2770
2770
  position: relative; z-index: 0; box-sizing: border-box;
@@ -2800,7 +2800,7 @@ m5.styles = g`
2800
2800
  .toggle-item--selected .toggle-item__icon { color: var(--color-gray-7); }
2801
2801
  .toggle-item--variant-primary.toggle-item--selected .toggle-item__icon { color: var(--color-primary-4); }
2802
2802
  `;
2803
- let S = m5;
2803
+ let S = _5;
2804
2804
  k([
2805
2805
  a({ reflect: !0 })
2806
2806
  ], S.prototype, "value");
@@ -2822,17 +2822,17 @@ k([
2822
2822
  k([
2823
2823
  a({ attribute: !1 })
2824
2824
  ], S.prototype, "groupMode");
2825
- function v2(r) {
2826
- return r.split(" ").map((e) => e.trim()).filter(Boolean);
2825
+ function f2(n) {
2826
+ return n.split(" ").map((e) => e.trim()).filter(Boolean);
2827
2827
  }
2828
2828
  customElements.get("anduin-toggle-group") || customElements.define("anduin-toggle-group", P);
2829
2829
  customElements.get("anduin-toggle-group-item") || customElements.define("anduin-toggle-group-item", S);
2830
- var U3 = Object.defineProperty, z4 = (r, e, t, i) => {
2831
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
2832
- (n = r[l]) && (o = n(e, t, o) || o);
2833
- return o && U3(e, t, o), o;
2830
+ var r7 = Object.defineProperty, q4 = (n, e, t, i) => {
2831
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
2832
+ (r = n[l]) && (o = r(e, t, o) || o);
2833
+ return o && r7(e, t, o), o;
2834
2834
  };
2835
- const A4 = "anduin-tooltip:show", U2 = "anduin-tooltip:hide", B4 = "anduin-tooltip:trigger-mounted", P4 = "anduin-tooltip:content-popup-mounted", S4 = "anduin-tooltip:content-popup-unmounted", F4 = "anduin-tooltip:visibility-changed", G3 = [
2835
+ const W4 = "anduin-tooltip:show", J2 = "anduin-tooltip:hide", Y4 = "anduin-tooltip:trigger-mounted", X4 = "anduin-tooltip:content-popup-mounted", K4 = "anduin-tooltip:content-popup-unmounted", J4 = "anduin-tooltip:visibility-changed", a7 = [
2836
2836
  "top-start",
2837
2837
  "top-center",
2838
2838
  "top-end",
@@ -2846,94 +2846,94 @@ const A4 = "anduin-tooltip:show", U2 = "anduin-tooltip:hide", B4 = "anduin-toolt
2846
2846
  "left-center",
2847
2847
  "left-end"
2848
2848
  ];
2849
- function n4(r, e, t, i, o) {
2849
+ function m4(n, e, t, i, o) {
2850
2850
  switch (i) {
2851
2851
  case "top-start":
2852
- return { left: r.left, top: r.top - t - o };
2852
+ return { left: n.left, top: n.top - t - o };
2853
2853
  case "top-center":
2854
- return { left: r.left + r.width / 2 - e / 2, top: r.top - t - o };
2854
+ return { left: n.left + n.width / 2 - e / 2, top: n.top - t - o };
2855
2855
  case "top-end":
2856
- return { left: r.left + r.width - e, top: r.top - t - o };
2856
+ return { left: n.left + n.width - e, top: n.top - t - o };
2857
2857
  case "right-start":
2858
- return { left: r.right + o, top: r.top };
2858
+ return { left: n.right + o, top: n.top };
2859
2859
  case "right-center":
2860
- return { left: r.right + o, top: r.top + r.height / 2 - t / 2 };
2860
+ return { left: n.right + o, top: n.top + n.height / 2 - t / 2 };
2861
2861
  case "right-end":
2862
- return { left: r.right + o, top: r.top + r.height - t };
2862
+ return { left: n.right + o, top: n.top + n.height - t };
2863
2863
  case "bottom-start":
2864
- return { left: r.left, top: r.bottom + o };
2864
+ return { left: n.left, top: n.bottom + o };
2865
2865
  case "bottom-center":
2866
- return { left: r.left + r.width / 2 - e / 2, top: r.bottom + o };
2866
+ return { left: n.left + n.width / 2 - e / 2, top: n.bottom + o };
2867
2867
  case "bottom-end":
2868
- return { left: r.left + r.width - e, top: r.bottom + o };
2868
+ return { left: n.left + n.width - e, top: n.bottom + o };
2869
2869
  case "left-start":
2870
- return { left: r.left - e - o, top: r.top };
2870
+ return { left: n.left - e - o, top: n.top };
2871
2871
  case "left-center":
2872
- return { left: r.left - e - o, top: r.top + r.height / 2 - t / 2 };
2872
+ return { left: n.left - e - o, top: n.top + n.height / 2 - t / 2 };
2873
2873
  case "left-end":
2874
- return { left: r.left - e - o, top: r.top + r.height - t };
2874
+ return { left: n.left - e - o, top: n.top + n.height - t };
2875
2875
  default:
2876
2876
  return { left: 0, top: 0 };
2877
2877
  }
2878
2878
  }
2879
- function a4(r, e) {
2880
- return e.right >= r.left && e.left <= r.right && e.top <= r.bottom && e.bottom >= r.top;
2879
+ function b4(n, e) {
2880
+ return e.right >= n.left && e.left <= n.right && e.top <= n.bottom && e.bottom >= n.top;
2881
2881
  }
2882
- function s4(r, e) {
2883
- const t = Math.max(r.left, e.left), i = Math.max(r.top, e.top), o = Math.min(r.right, e.right), l = Math.min(r.bottom, e.bottom);
2882
+ function V4(n, e) {
2883
+ const t = Math.max(n.left, e.left), i = Math.max(n.top, e.top), o = Math.min(n.right, e.right), l = Math.min(n.bottom, e.bottom);
2884
2884
  return o < t || l < i ? 0 : (o - t) * (l - i);
2885
2885
  }
2886
- function q3(r, e, t, i = 8) {
2887
- const o = window.innerWidth, l = window.innerHeight, n = { left: 0, top: 0, right: o, bottom: l }, s = e.width, d = e.height;
2888
- if (!a4(
2889
- { left: r.left, top: r.top, right: r.right, bottom: r.bottom },
2890
- n
2886
+ function s7(n, e, t, i = 8) {
2887
+ const o = window.innerWidth, l = window.innerHeight, r = { left: 0, top: 0, right: o, bottom: l }, C = e.width, d = e.height;
2888
+ if (!b4(
2889
+ { left: n.left, top: n.top, right: n.right, bottom: n.bottom },
2890
+ r
2891
2891
  )) return null;
2892
- const p = n4(r, s, d, t, i), h = G3.map((f) => ({ p: f, off: n4(r, s, d, f, i) })).filter(({ off: f }) => a4({ left: f.left, top: f.top, right: f.left + s, bottom: f.top + d }, n));
2893
- if (h.length === 0)
2892
+ const u = m4(n, C, d, t, i), g = a7.map((f) => ({ p: f, off: m4(n, C, d, f, i) })).filter(({ off: f }) => b4({ left: f.left, top: f.top, right: f.left + C, bottom: f.top + d }, r));
2893
+ if (g.length === 0)
2894
2894
  return {
2895
2895
  placement: t,
2896
- left: Math.round(Math.min(Math.max(p.left, 0), o - s)),
2897
- top: Math.round(Math.min(Math.max(p.top, 0), l - d))
2896
+ left: Math.round(Math.min(Math.max(u.left, 0), o - C)),
2897
+ top: Math.round(Math.min(Math.max(u.top, 0), l - d))
2898
2898
  };
2899
- h.sort((f, Z) => {
2900
- const G = { left: f.off.left, top: f.off.top, right: f.off.left + s, bottom: f.off.top + d }, x = { left: Z.off.left, top: Z.off.top, right: Z.off.left + s, bottom: Z.off.top + d }, I = s4(G, n), i1 = s4(x, n);
2899
+ g.sort((f, x) => {
2900
+ const G = { left: f.off.left, top: f.off.top, right: f.off.left + C, bottom: f.off.top + d }, Z = { left: x.off.left, top: x.off.top, right: x.off.left + C, bottom: x.off.top + d }, I = V4(G, r), i1 = V4(Z, r);
2901
2901
  if (i1 !== I) return i1 - I;
2902
- const K1 = Math.abs(f.off.left - p.left) + Math.abs(f.off.top - p.top), J1 = Math.abs(Z.off.left - p.left) + Math.abs(Z.off.top - p.top);
2903
- return K1 - J1;
2902
+ const J1 = Math.abs(f.off.left - u.left) + Math.abs(f.off.top - u.top), Q1 = Math.abs(x.off.left - u.left) + Math.abs(x.off.top - u.top);
2903
+ return J1 - Q1;
2904
2904
  });
2905
- const { p: v, off: H } = h[0];
2905
+ const { p: v, off: H } = g[0];
2906
2906
  return {
2907
2907
  placement: v,
2908
- left: Math.round(Math.min(Math.max(H.left, 0), o - s)),
2908
+ left: Math.round(Math.min(Math.max(H.left, 0), o - C)),
2909
2909
  top: Math.round(Math.min(Math.max(H.top, 0), l - d))
2910
2910
  };
2911
2911
  }
2912
- function _2(r) {
2913
- return r.split("-")[0] || "top";
2912
+ function Z2(n) {
2913
+ return n.split("-")[0] || "top";
2914
2914
  }
2915
- function W3(r, e, t) {
2915
+ function C7(n, e, t) {
2916
2916
  let i = !1, o = t.length - 1;
2917
2917
  for (let l = 0; l < t.length; l++) {
2918
- const n = t[l][0], s = t[l][1], d = t[o][0], p = t[o][1];
2919
- s > e != p > e && r < (d - n) * (e - s) / (p - s) + n && (i = !i), o = l;
2918
+ const r = t[l][0], C = t[l][1], d = t[o][0], u = t[o][1];
2919
+ C > e != u > e && n < (d - r) * (e - C) / (u - C) + r && (i = !i), o = l;
2920
2920
  }
2921
2921
  return i;
2922
2922
  }
2923
- const V5 = class V5 extends u {
2923
+ const Z5 = class Z5 extends p {
2924
2924
  constructor() {
2925
2925
  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;
2926
2926
  }
2927
2927
  connectedCallback() {
2928
- super.connectedCallback(), this.addEventListener(B4, (e) => {
2928
+ super.connectedCallback(), this.addEventListener(Y4, (e) => {
2929
2929
  e.stopPropagation(), this.triggerElement = e.detail, this.maybeStartPositionLoop();
2930
- }), this.addEventListener(P4, (e) => {
2930
+ }), this.addEventListener(X4, (e) => {
2931
2931
  e.stopPropagation(), this.contentPopupElement = e.detail, this.computeContainingBlockOffset(this.contentPopupElement), this.maybeStartPositionLoop();
2932
- }), this.addEventListener(S4, (e) => {
2932
+ }), this.addEventListener(K4, (e) => {
2933
2933
  e.stopPropagation(), this.stopPositionLoop(), this.contentPopupElement = null;
2934
- }), this.addEventListener(A4, (e) => {
2934
+ }), this.addEventListener(W4, (e) => {
2935
2935
  e.stopPropagation(), !this.disabled && (this.isVisible = !0, this.broadcastVisibilityChanged(`show:${this.placement}`));
2936
- }), this.addEventListener(U2, (e) => {
2936
+ }), this.addEventListener(J2, (e) => {
2937
2937
  e.stopPropagation(), this.isVisible = !1, this.stopPositionLoop(), this.broadcastVisibilityChanged("hide");
2938
2938
  });
2939
2939
  }
@@ -2964,61 +2964,61 @@ const V5 = class V5 extends u {
2964
2964
  this.containingBlockLeft = o.left, this.containingBlockTop = o.top, t.style.transform = i;
2965
2965
  }
2966
2966
  positionPopup(e, t, i) {
2967
- const o = t.getBoundingClientRect(), l = e.getBoundingClientRect(), n = q3(o, l, i, 8);
2968
- if (n) {
2969
- const s = e;
2970
- s.style.transform = `translate(${n.left - this.containingBlockLeft}px, ${n.top - this.containingBlockTop}px)`;
2971
- const d = _2(n.placement), p = _2(i);
2972
- if (d !== p) {
2973
- const h = e.querySelector(".tooltip-arrow");
2974
- h && (h.classList.remove(`tooltip-arrow--${p}`), h.classList.add(`tooltip-arrow--${d}`));
2967
+ const o = t.getBoundingClientRect(), l = e.getBoundingClientRect(), r = s7(o, l, i, 8);
2968
+ if (r) {
2969
+ const C = e;
2970
+ C.style.transform = `translate(${r.left - this.containingBlockLeft}px, ${r.top - this.containingBlockTop}px)`;
2971
+ const d = Z2(r.placement), u = Z2(i);
2972
+ if (d !== u) {
2973
+ const g = e.querySelector(".tooltip-arrow");
2974
+ g && (g.classList.remove(`tooltip-arrow--${u}`), g.classList.add(`tooltip-arrow--${d}`));
2975
2975
  }
2976
2976
  }
2977
2977
  }
2978
2978
  broadcastVisibilityChanged(e) {
2979
- this.dispatchEvent(new CustomEvent(F4, { detail: e, bubbles: !1, composed: !1 }));
2979
+ this.dispatchEvent(new CustomEvent(J4, { detail: e, bubbles: !1, composed: !1 }));
2980
2980
  }
2981
2981
  render() {
2982
- return C`<div class="tooltip-root" part="tooltip"><slot></slot></div>`;
2982
+ return s`<div class="tooltip-root" part="tooltip"><slot></slot></div>`;
2983
2983
  }
2984
2984
  };
2985
- V5.styles = g`
2985
+ Z5.styles = h`
2986
2986
  :host { display: inline-block; position: relative; max-width: 100%; font-family: var(--font-sans); }
2987
2987
  .tooltip-root { display: inline-block; position: relative; max-width: 100%; }
2988
2988
  `;
2989
- let j1 = V5;
2990
- z4([
2989
+ let U1 = Z5;
2990
+ q4([
2991
2991
  a({ type: Boolean })
2992
- ], j1.prototype, "disabled");
2993
- z4([
2992
+ ], U1.prototype, "disabled");
2993
+ q4([
2994
2994
  a()
2995
- ], j1.prototype, "placement");
2996
- const b5 = class b5 extends u {
2995
+ ], U1.prototype, "placement");
2996
+ const w5 = class w5 extends p {
2997
2997
  firstUpdated() {
2998
2998
  requestAnimationFrame(() => {
2999
- this.dispatchEvent(new CustomEvent(B4, { detail: this, bubbles: !0, composed: !0 }));
2999
+ this.dispatchEvent(new CustomEvent(Y4, { detail: this, bubbles: !0, composed: !0 }));
3000
3000
  }), this.addEventListener("pointerenter", () => {
3001
- this.dispatchEvent(new CustomEvent(A4, { bubbles: !0, composed: !0 }));
3001
+ this.dispatchEvent(new CustomEvent(W4, { bubbles: !0, composed: !0 }));
3002
3002
  }), this.addEventListener("click", () => {
3003
- this.dispatchEvent(new CustomEvent(U2, { bubbles: !0, composed: !0 }));
3003
+ this.dispatchEvent(new CustomEvent(J2, { bubbles: !0, composed: !0 }));
3004
3004
  });
3005
3005
  }
3006
3006
  render() {
3007
- return C`<span class="tooltip-trigger" part="tooltip-trigger"><slot></slot></span>`;
3007
+ return s`<span class="tooltip-trigger" part="tooltip-trigger"><slot></slot></span>`;
3008
3008
  }
3009
3009
  };
3010
- b5.styles = g`
3010
+ w5.styles = h`
3011
3011
  :host { display: inline-block; max-width: 100%; font-family: var(--font-sans); }
3012
3012
  .tooltip-trigger { display: flex; align-items: center; max-width: 100%; }
3013
3013
  `;
3014
- let x2 = b5;
3015
- const L5 = class L5 extends u {
3014
+ let w2 = w5;
3015
+ const R5 = class R5 extends p {
3016
3016
  constructor() {
3017
3017
  super(...arguments), this.graceArea = null, this.triggerEl = null, this.popupEl = null, this.handlePointerMove = (e) => {
3018
- var l, n;
3018
+ var l, r;
3019
3019
  if (!this.graceArea) return;
3020
- const t = e.target, i = ((l = this.triggerEl) == null ? void 0 : l.contains(t)) ?? !1, o = ((n = this.popupEl) == null ? void 0 : n.contains(t)) ?? !1;
3021
- i || o ? this.graceArea = null : W3(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(U2, { bubbles: !0, composed: !0 })));
3020
+ const t = e.target, i = ((l = this.triggerEl) == null ? void 0 : l.contains(t)) ?? !1, o = ((r = this.popupEl) == null ? void 0 : r.contains(t)) ?? !1;
3021
+ i || o ? this.graceArea = null : C7(e.clientX, e.clientY, this.graceArea) || (this.graceArea = null, this.dispatchEvent(new CustomEvent(J2, { bubbles: !0, composed: !0 })));
3022
3022
  }, this.handleTriggerLeave = (e) => {
3023
3023
  this.triggerEl && this.popupEl && this.createGraceArea(this.triggerEl, this.popupEl, e);
3024
3024
  }, this.handleContentLeave = (e) => {
@@ -3028,7 +3028,7 @@ const L5 = class L5 extends u {
3028
3028
  connectedCallback() {
3029
3029
  super.connectedCallback();
3030
3030
  const e = this.closest("anduin-tooltip");
3031
- e && e.addEventListener(F4, (t) => {
3031
+ e && e.addEventListener(J4, (t) => {
3032
3032
  const i = t.detail;
3033
3033
  i.startsWith("show:") ? this.showPopup(i.slice(5)) : this.hidePopup();
3034
3034
  });
@@ -3037,9 +3037,9 @@ const L5 = class L5 extends u {
3037
3037
  super.disconnectedCallback(), this.hidePopup();
3038
3038
  }
3039
3039
  createGraceArea(e, t, i) {
3040
- const o = t.getBoundingClientRect(), l = i.clientX, n = i.clientY;
3040
+ const o = t.getBoundingClientRect(), l = i.clientX, r = i.clientY;
3041
3041
  this.graceArea = [
3042
- [l, n],
3042
+ [l, r],
3043
3043
  [o.left, o.top],
3044
3044
  [o.right, o.top],
3045
3045
  [o.right, o.bottom],
@@ -3054,29 +3054,29 @@ const L5 = class L5 extends u {
3054
3054
  }
3055
3055
  showPopup(e) {
3056
3056
  this.hidePopup();
3057
- const t = _2(e), i = document.createElement("div");
3057
+ const t = Z2(e), i = document.createElement("div");
3058
3058
  i.className = "tooltip-popup", i.setAttribute("role", "tooltip");
3059
3059
  const o = document.createElement("div");
3060
3060
  o.className = `tooltip-arrow tooltip-arrow--${t}`;
3061
3061
  const l = document.createElement("div");
3062
3062
  l.className = "tooltip-body", l.appendChild(document.createElement("slot")), i.appendChild(o), i.appendChild(l);
3063
- const n = this.shadowRoot.querySelector(".tooltip-content-wrapper");
3064
- n && n.appendChild(i), this.popupEl = i;
3065
- const s = this.closest("anduin-tooltip");
3066
- if (s) {
3067
- const d = s.querySelector("anduin-tooltip-trigger");
3063
+ const r = this.shadowRoot.querySelector(".tooltip-content-wrapper");
3064
+ r && r.appendChild(i), this.popupEl = i;
3065
+ const C = this.closest("anduin-tooltip");
3066
+ if (C) {
3067
+ const d = C.querySelector("anduin-tooltip-trigger");
3068
3068
  d && this.setupGraceAreaListeners(d, i);
3069
3069
  }
3070
- this.dispatchEvent(new CustomEvent(P4, { detail: i, bubbles: !0, composed: !0 }));
3070
+ this.dispatchEvent(new CustomEvent(X4, { detail: i, bubbles: !0, composed: !0 }));
3071
3071
  }
3072
3072
  hidePopup() {
3073
- this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(S4, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
3073
+ this.popupEl && (this.popupEl.remove(), this.popupEl = null, this.dispatchEvent(new CustomEvent(K4, { bubbles: !0, composed: !0 }))), this.cleanupGraceAreaListeners();
3074
3074
  }
3075
3075
  render() {
3076
- return C`<div class="tooltip-content-wrapper"></div>`;
3076
+ return s`<div class="tooltip-content-wrapper"></div>`;
3077
3077
  }
3078
3078
  };
3079
- L5.styles = g`
3079
+ R5.styles = h`
3080
3080
  :host {
3081
3081
  display: contents;
3082
3082
  --tooltip-bg: var(--anduin-tooltip-content-background, var(--color-gray-9));
@@ -3100,21 +3100,21 @@ L5.styles = g`
3100
3100
  .tooltip-arrow--left { right: -4px; top: 50%; transform: translateY(-50%); border-left-color: var(--tooltip-bg); border-right: none; }
3101
3101
  .tooltip-arrow--right { left: -4px; top: 50%; transform: translateY(-50%); border-right-color: var(--tooltip-bg); border-left: none; }
3102
3102
  `;
3103
- let w2 = L5;
3104
- customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", j1);
3105
- customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", x2);
3106
- customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", w2);
3107
- var Y3 = Object.defineProperty, X3 = (r, e, t, i) => {
3108
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
3109
- (n = r[l]) && (o = n(e, t, o) || o);
3110
- return o && Y3(e, t, o), o;
3103
+ let R2 = R5;
3104
+ customElements.get("anduin-tooltip") || customElements.define("anduin-tooltip", U1);
3105
+ customElements.get("anduin-tooltip-trigger") || customElements.define("anduin-tooltip-trigger", w2);
3106
+ customElements.get("anduin-tooltip-content") || customElements.define("anduin-tooltip-content", R2);
3107
+ var d7 = Object.defineProperty, c7 = (n, e, t, i) => {
3108
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
3109
+ (r = n[l]) && (o = r(e, t, o) || o);
3110
+ return o && d7(e, t, o), o;
3111
3111
  };
3112
- const K3 = "anduin-well-close:click", y5 = class y5 extends u {
3112
+ const p7 = "anduin-well-close:click", k5 = class k5 extends p {
3113
3113
  constructor() {
3114
3114
  super(...arguments), this.variant = "gray";
3115
3115
  }
3116
3116
  render() {
3117
- return C`
3117
+ return s`
3118
3118
  <div class="well well--${this.variant}" part="well">
3119
3119
  <div class="well__icon well__icon--${this.variant}">
3120
3120
  <slot name="icon"></slot>
@@ -3128,7 +3128,7 @@ const K3 = "anduin-well-close:click", y5 = class y5 extends u {
3128
3128
  `;
3129
3129
  }
3130
3130
  };
3131
- y5.styles = g`
3131
+ k5.styles = h`
3132
3132
  :host {
3133
3133
  display: block;
3134
3134
  font-family: var(--font-sans);
@@ -3193,18 +3193,18 @@ y5.styles = g`
3193
3193
  color: var(--color-warning-4);
3194
3194
  }
3195
3195
  `;
3196
- let s2 = y5;
3197
- X3([
3196
+ let C2 = k5;
3197
+ c7([
3198
3198
  a()
3199
- ], s2.prototype, "variant");
3200
- const M5 = class M5 extends u {
3199
+ ], C2.prototype, "variant");
3200
+ const $5 = class $5 extends p {
3201
3201
  onClick() {
3202
3202
  this.dispatchEvent(
3203
- new CustomEvent(K3, { bubbles: !0, composed: !0 })
3203
+ new CustomEvent(p7, { bubbles: !0, composed: !0 })
3204
3204
  );
3205
3205
  }
3206
3206
  render() {
3207
- return C`
3207
+ return s`
3208
3208
  <button
3209
3209
  class="well-close__button"
3210
3210
  part="well-close"
@@ -3215,7 +3215,7 @@ const M5 = class M5 extends u {
3215
3215
  `;
3216
3216
  }
3217
3217
  };
3218
- M5.styles = g`
3218
+ $5.styles = h`
3219
3219
  :host {
3220
3220
  display: inline-block;
3221
3221
  font-family: var(--font-sans);
@@ -3240,15 +3240,15 @@ M5.styles = g`
3240
3240
  background-color: var(--color-gray-3);
3241
3241
  }
3242
3242
  `;
3243
- let R2 = M5;
3244
- customElements.get("anduin-well") || customElements.define("anduin-well", s2);
3245
- customElements.get("anduin-well-close") || customElements.define("anduin-well-close", R2);
3246
- var J3 = Object.defineProperty, d1 = (r, e, t, i) => {
3247
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
3248
- (n = r[l]) && (o = n(e, t, o) || o);
3249
- return o && J3(e, t, o), o;
3243
+ let k2 = $5;
3244
+ customElements.get("anduin-well") || customElements.define("anduin-well", C2);
3245
+ customElements.get("anduin-well-close") || customElements.define("anduin-well-close", k2);
3246
+ var u7 = Object.defineProperty, d1 = (n, e, t, i) => {
3247
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
3248
+ (r = n[l]) && (o = r(e, t, o) || o);
3249
+ return o && u7(e, t, o), o;
3250
3250
  };
3251
- const k2 = "anduin-popover:close", Z5 = class Z5 extends u {
3251
+ const $2 = "anduin-popover:close", E5 = class E5 extends p {
3252
3252
  constructor() {
3253
3253
  super(...arguments), this.open = !1, this.placement = "bottom-start", this.fullWidth = !1, this._visible = !1, this._closing = !1, this._closeTransitionEndHandler = null, this._onOutsideClick = (e) => {
3254
3254
  var t;
@@ -3263,10 +3263,10 @@ const k2 = "anduin-popover:close", Z5 = class Z5 extends u {
3263
3263
  this.open = !this.open;
3264
3264
  }
3265
3265
  connectedCallback() {
3266
- super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize), this.addEventListener(k2, this._onPopoverClose);
3266
+ super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize), this.addEventListener($2, this._onPopoverClose);
3267
3267
  }
3268
3268
  disconnectedCallback() {
3269
- super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize), this.removeEventListener(k2, this._onPopoverClose);
3269
+ super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize), this.removeEventListener($2, this._onPopoverClose);
3270
3270
  }
3271
3271
  updated(e) {
3272
3272
  e.has("open") && (this.open ? (this._cancelCloseAnimation(), this._closing = !1, this._visible = !0, requestAnimationFrame(() => this._updatePosition())) : this._startCloseAnimation());
@@ -3293,15 +3293,15 @@ const k2 = "anduin-popover:close", Z5 = class Z5 extends u {
3293
3293
  t.style.transform = "none";
3294
3294
  const l = t.getBoundingClientRect();
3295
3295
  t.style.transform = o;
3296
- const n = t.getBoundingClientRect(), s = 4, d = window.innerWidth, p = window.innerHeight, h = 8;
3296
+ const r = t.getBoundingClientRect(), C = 4, d = window.innerWidth, u = window.innerHeight, g = 8;
3297
3297
  let v = 0, H = 0, f = "bottom";
3298
- const Z = !this.placement.startsWith("top"), G = p - i.bottom - s, x = i.top - s, I = G >= n.height, i1 = x >= n.height, K1 = Z ? I || G >= x : !i1 && I;
3299
- f = K1 ? "bottom" : "top", H = K1 ? i.bottom + s : i.top - n.height - s;
3300
- const J1 = this.placement.endsWith("end") ? "end" : this.placement.endsWith("start") ? "start" : "center";
3301
- J1 === "start" ? v = i.left : J1 === "end" ? v = i.right - n.width : v = i.left + i.width / 2 - n.width / 2, v = Math.max(h, Math.min(v, d - n.width - h)), H = Math.max(h, Math.min(H, p - n.height - h)), t.style.transform = `translate(${Math.round(v - l.left)}px, ${Math.round(H - l.top)}px)`, t.dataset.side = f;
3298
+ const x = !this.placement.startsWith("top"), G = u - i.bottom - C, Z = i.top - C, I = G >= r.height, i1 = Z >= r.height, J1 = x ? I || G >= Z : !i1 && I;
3299
+ f = J1 ? "bottom" : "top", H = J1 ? i.bottom + C : i.top - r.height - C;
3300
+ const Q1 = this.placement.endsWith("end") ? "end" : this.placement.endsWith("start") ? "start" : "center";
3301
+ Q1 === "start" ? v = i.left : Q1 === "end" ? v = i.right - r.width : v = i.left + i.width / 2 - r.width / 2, v = Math.max(g, Math.min(v, d - r.width - g)), H = Math.max(g, Math.min(H, u - r.height - g)), t.style.transform = `translate(${Math.round(v - l.left)}px, ${Math.round(H - l.top)}px)`, t.dataset.side = f;
3302
3302
  }
3303
3303
  render() {
3304
- return C`
3304
+ return s`
3305
3305
  <div class="popover__trigger" @click=${this._onTriggerClick} part="trigger">
3306
3306
  <slot name="trigger"></slot>
3307
3307
  </div>
@@ -3313,7 +3313,7 @@ const k2 = "anduin-popover:close", Z5 = class Z5 extends u {
3313
3313
  `;
3314
3314
  }
3315
3315
  };
3316
- Z5.styles = g`
3316
+ E5.styles = h`
3317
3317
  :host { display: inline-block; font-family: var(--font-sans); }
3318
3318
  :host([full-width]) { display: block; width: 100%; }
3319
3319
 
@@ -3366,7 +3366,7 @@ Z5.styles = g`
3366
3366
  transform: none;
3367
3367
  }
3368
3368
  `;
3369
- let F = Z5;
3369
+ let F = E5;
3370
3370
  d1([
3371
3371
  a({ type: Boolean, reflect: !0 })
3372
3372
  ], F.prototype, "open");
@@ -3377,10 +3377,10 @@ d1([
3377
3377
  a({ type: Boolean, attribute: "full-width", reflect: !0 })
3378
3378
  ], F.prototype, "fullWidth");
3379
3379
  d1([
3380
- V()
3380
+ b()
3381
3381
  ], F.prototype, "_visible");
3382
3382
  d1([
3383
- V()
3383
+ b()
3384
3384
  ], F.prototype, "_closing");
3385
3385
  d1([
3386
3386
  R(".popover__trigger")
@@ -3389,23 +3389,23 @@ d1([
3389
3389
  R(".popover__panel")
3390
3390
  ], F.prototype, "_panelEl");
3391
3391
  customElements.get("anduin-popover") || customElements.define("anduin-popover", F);
3392
- const _5 = class _5 extends u {
3392
+ const z5 = class z5 extends p {
3393
3393
  _onClick() {
3394
- this.dispatchEvent(new CustomEvent(k2, { bubbles: !0, composed: !0 }));
3394
+ this.dispatchEvent(new CustomEvent($2, { bubbles: !0, composed: !0 }));
3395
3395
  }
3396
3396
  render() {
3397
- return C`<span @click=${this._onClick}><slot></slot></span>`;
3397
+ return s`<span @click=${this._onClick}><slot></slot></span>`;
3398
3398
  }
3399
3399
  };
3400
- _5.styles = g`:host { display: contents; }`;
3401
- let $2 = _5;
3402
- customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close", $2);
3403
- var Q3 = Object.defineProperty, c1 = (r, e, t, i) => {
3404
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
3405
- (n = r[l]) && (o = n(e, t, o) || o);
3406
- return o && Q3(e, t, o), o;
3400
+ z5.styles = h`:host { display: contents; }`;
3401
+ let E2 = z5;
3402
+ customElements.get("anduin-popover-close") || customElements.define("anduin-popover-close", E2);
3403
+ var h7 = Object.defineProperty, c1 = (n, e, t, i) => {
3404
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
3405
+ (r = n[l]) && (o = r(e, t, o) || o);
3406
+ return o && h7(e, t, o), o;
3407
3407
  };
3408
- const E2 = "anduin-menu-item:click", x5 = class x5 extends u {
3408
+ const z2 = "anduin-menu-item:click", A5 = class A5 extends p {
3409
3409
  constructor() {
3410
3410
  super(...arguments), this.open = !1, this.placement = "bottom-start", this._onOutsideClick = (e) => {
3411
3411
  e.composedPath().includes(this) || (this.open = !1);
@@ -3419,10 +3419,10 @@ const E2 = "anduin-menu-item:click", x5 = class x5 extends u {
3419
3419
  this.open = !this.open;
3420
3420
  }
3421
3421
  connectedCallback() {
3422
- super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(E2, this._onItemClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize);
3422
+ super.connectedCallback(), document.addEventListener("click", this._onOutsideClick), this.addEventListener(z2, this._onItemClick), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize);
3423
3423
  }
3424
3424
  disconnectedCallback() {
3425
- super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(E2, this._onItemClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize);
3425
+ super.disconnectedCallback(), document.removeEventListener("click", this._onOutsideClick), this.removeEventListener(z2, this._onItemClick), window.removeEventListener("scroll", this._onScrollOrResize, { capture: !0 }), window.removeEventListener("resize", this._onScrollOrResize);
3426
3426
  }
3427
3427
  updated(e) {
3428
3428
  e.has("open") && this.open && requestAnimationFrame(() => this._updatePosition());
@@ -3434,32 +3434,32 @@ const E2 = "anduin-menu-item:click", x5 = class x5 extends u {
3434
3434
  t.style.transform = "none";
3435
3435
  const l = t.getBoundingClientRect();
3436
3436
  t.style.transform = o;
3437
- const n = t.getBoundingClientRect(), s = 4;
3438
- let d = 0, p = 0, h = "bottom";
3437
+ const r = t.getBoundingClientRect(), C = 4;
3438
+ let d = 0, u = 0, g = "bottom";
3439
3439
  switch (this.placement) {
3440
3440
  case "bottom-start":
3441
- d = i.left, p = i.bottom + s, h = "bottom";
3441
+ d = i.left, u = i.bottom + C, g = "bottom";
3442
3442
  break;
3443
3443
  case "bottom-end":
3444
- d = i.right - n.width, p = i.bottom + s, h = "bottom";
3444
+ d = i.right - r.width, u = i.bottom + C, g = "bottom";
3445
3445
  break;
3446
3446
  case "bottom":
3447
- d = i.left + i.width / 2 - n.width / 2, p = i.bottom + s, h = "bottom";
3447
+ d = i.left + i.width / 2 - r.width / 2, u = i.bottom + C, g = "bottom";
3448
3448
  break;
3449
3449
  case "top-start":
3450
- d = i.left, p = i.top - n.height - s, h = "top";
3450
+ d = i.left, u = i.top - r.height - C, g = "top";
3451
3451
  break;
3452
3452
  case "top-end":
3453
- d = i.right - n.width, p = i.top - n.height - s, h = "top";
3453
+ d = i.right - r.width, u = i.top - r.height - C, g = "top";
3454
3454
  break;
3455
3455
  case "top":
3456
- d = i.left + i.width / 2 - n.width / 2, p = i.top - n.height - s, h = "top";
3456
+ d = i.left + i.width / 2 - r.width / 2, u = i.top - r.height - C, g = "top";
3457
3457
  break;
3458
3458
  }
3459
- t.style.transform = `translate(${Math.round(d - l.left)}px, ${Math.round(p - l.top)}px)`, t.dataset.side = h;
3459
+ t.style.transform = `translate(${Math.round(d - l.left)}px, ${Math.round(u - l.top)}px)`, t.dataset.side = g;
3460
3460
  }
3461
3461
  render() {
3462
- return C`
3462
+ return s`
3463
3463
  <div class="menu__trigger" @click=${this._onTriggerClick} part="trigger">
3464
3464
  <slot name="trigger"></slot>
3465
3465
  </div>
@@ -3471,7 +3471,7 @@ const E2 = "anduin-menu-item:click", x5 = class x5 extends u {
3471
3471
  `;
3472
3472
  }
3473
3473
  };
3474
- x5.styles = g`
3474
+ A5.styles = h`
3475
3475
  :host { display: inline-block; font-family: var(--font-sans); }
3476
3476
 
3477
3477
  .menu__trigger { display: inline-block; }
@@ -3514,7 +3514,7 @@ x5.styles = g`
3514
3514
  transform: scale(1) translateY(0);
3515
3515
  }
3516
3516
  `;
3517
- let C1 = x5;
3517
+ let C1 = A5;
3518
3518
  c1([
3519
3519
  a({ type: Boolean, reflect: !0 })
3520
3520
  ], C1.prototype, "open");
@@ -3527,15 +3527,15 @@ c1([
3527
3527
  c1([
3528
3528
  R(".menu__panel")
3529
3529
  ], C1.prototype, "_panelEl");
3530
- const w5 = class w5 extends u {
3530
+ const B5 = class B5 extends p {
3531
3531
  constructor() {
3532
3532
  super(...arguments), this.icon = "", this.variant = "default", this.disabled = !1;
3533
3533
  }
3534
3534
  _onClick() {
3535
- this.dispatchEvent(new CustomEvent(E2, { bubbles: !0, composed: !0 }));
3535
+ this.dispatchEvent(new CustomEvent(z2, { bubbles: !0, composed: !0 }));
3536
3536
  }
3537
3537
  render() {
3538
- return C`
3538
+ return s`
3539
3539
  <button
3540
3540
  class="menu-item ${this.variant === "danger" ? "menu-item--danger" : ""}"
3541
3541
  role="menuitem"
@@ -3543,13 +3543,13 @@ const w5 = class w5 extends u {
3543
3543
  part="menu-item"
3544
3544
  @click=${this._onClick}
3545
3545
  >
3546
- ${this.icon ? C`<anduin-icon name="${this.icon}" size="16"></anduin-icon>` : c}
3546
+ ${this.icon ? s`<anduin-icon name="${this.icon}" size="16"></anduin-icon>` : c}
3547
3547
  <span class="menu-item__label"><slot></slot></span>
3548
3548
  </button>
3549
3549
  `;
3550
3550
  }
3551
3551
  };
3552
- w5.styles = g`
3552
+ B5.styles = h`
3553
3553
  :host { display: block; width: 100%; font-family: var(--font-sans); }
3554
3554
  .menu-item {
3555
3555
  display: flex;
@@ -3579,28 +3579,35 @@ w5.styles = g`
3579
3579
  anduin-icon { color: var(--color-gray-7); }
3580
3580
  .menu-item--danger anduin-icon { color: var(--color-danger-4); }
3581
3581
  `;
3582
- let V1 = w5;
3582
+ let b1 = B5;
3583
3583
  c1([
3584
3584
  a()
3585
- ], V1.prototype, "icon");
3585
+ ], b1.prototype, "icon");
3586
3586
  c1([
3587
3587
  a()
3588
- ], V1.prototype, "variant");
3588
+ ], b1.prototype, "variant");
3589
3589
  c1([
3590
3590
  a({ type: Boolean })
3591
- ], V1.prototype, "disabled");
3591
+ ], b1.prototype, "disabled");
3592
3592
  customElements.get("anduin-menu") || customElements.define("anduin-menu", C1);
3593
- customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", V1);
3594
- var e7 = Object.defineProperty, p1 = (r, e, t, i) => {
3595
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
3596
- (n = r[l]) && (o = n(e, t, o) || o);
3597
- return o && e7(e, t, o), o;
3593
+ customElements.get("anduin-menu-item") || customElements.define("anduin-menu-item", b1);
3594
+ var g7 = Object.defineProperty, p1 = (n, e, t, i) => {
3595
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
3596
+ (r = n[l]) && (o = r(e, t, o) || o);
3597
+ return o && g7(e, t, o), o;
3598
3598
  };
3599
- const R1 = "anduin-close", t7 = "anduin-after-close", f2 = 300, H2 = 200, C4 = 250;
3599
+ const R1 = "anduin-close", v7 = "anduin-after-close", H2 = 300, m2 = 200, L4 = 250;
3600
+ let E1 = 0, Q4 = "";
3601
+ function f7() {
3602
+ typeof document > "u" || (E1 === 0 && (Q4 = document.body.style.overflow, document.body.style.overflow = "hidden"), E1++);
3603
+ }
3604
+ function y4() {
3605
+ typeof document > "u" || E1 !== 0 && (E1--, E1 === 0 && (document.body.style.overflow = Q4));
3606
+ }
3600
3607
  var Y;
3601
- const t1 = (Y = class extends u {
3608
+ const t1 = (Y = class extends p {
3602
3609
  constructor() {
3603
- 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) => {
3610
+ super(...arguments), this.open = !1, this.heading = "", this.hideHeader = !1, this.hideFooter = !1, this.maxWidth = "480", this.fullscreen = !1, this._leaving = !1, this._holdsScrollLock = !1, this.onAnduinClose = (e) => {
3604
3611
  e.target !== this && e.stopPropagation();
3605
3612
  };
3606
3613
  }
@@ -3609,16 +3616,16 @@ const t1 = (Y = class extends u {
3609
3616
  const t = this.maxWidth, i = Y._PRESETS.has(t) ? `${t}px` : t;
3610
3617
  this.style.setProperty("--_modal-width", i);
3611
3618
  }
3612
- e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown")) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(
3619
+ e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown"), this._holdsScrollLock || (this._holdsScrollLock = !0, f7())) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(
3613
3620
  () => {
3614
- this._leaving = !1, this.classList.remove("is-shown"), this.dispatchEvent(
3615
- new CustomEvent(t7, {
3621
+ this._leaving = !1, this.classList.remove("is-shown"), this._holdsScrollLock && (this._holdsScrollLock = !1, y4()), this.dispatchEvent(
3622
+ new CustomEvent(v7, {
3616
3623
  bubbles: !0,
3617
3624
  composed: !0
3618
3625
  })
3619
3626
  );
3620
3627
  },
3621
- Math.max(H2, C4)
3628
+ Math.max(m2, L4)
3622
3629
  )));
3623
3630
  }
3624
3631
  dispatch(e) {
@@ -3636,11 +3643,11 @@ const t1 = (Y = class extends u {
3636
3643
  super.connectedCallback(), this.addEventListener(R1, this.onAnduinClose);
3637
3644
  }
3638
3645
  disconnectedCallback() {
3639
- super.disconnectedCallback(), this.removeEventListener(R1, this.onAnduinClose);
3646
+ super.disconnectedCallback(), this.removeEventListener(R1, this.onAnduinClose), this._holdsScrollLock && (this._holdsScrollLock = !1, y4());
3640
3647
  }
3641
3648
  render() {
3642
3649
  const e = this._leaving, t = this.fullscreen;
3643
- return C`
3650
+ return s`
3644
3651
  <div
3645
3652
  class=${`overlay${e ? " is-leaving" : ""}`}
3646
3653
  @click=${this.onOverlayClick}
@@ -3652,10 +3659,10 @@ const t1 = (Y = class extends u {
3652
3659
  aria-modal="true"
3653
3660
  aria-labelledby="modal-title"
3654
3661
  >
3655
- ${this.hideHeader ? c : C` <div class="header">
3662
+ ${this.hideHeader ? c : s` <div class="header">
3656
3663
  <div class="header-slot">
3657
3664
  <slot name="header">
3658
- ${this.heading ? C`<span id="modal-title" class="title"
3665
+ ${this.heading ? s`<span id="modal-title" class="title"
3659
3666
  >${this.heading}</span
3660
3667
  >` : c}
3661
3668
  </slot>
@@ -3673,12 +3680,12 @@ const t1 = (Y = class extends u {
3673
3680
  <div class="body">
3674
3681
  <slot></slot>
3675
3682
  </div>
3676
- ${this.hideFooter ? c : C`<div class="footer"><slot name="footer"></slot></div>`}
3683
+ ${this.hideFooter ? c : s`<div class="footer"><slot name="footer"></slot></div>`}
3677
3684
  </div>
3678
3685
  </div>
3679
3686
  `;
3680
3687
  }
3681
- }, Y.styles = g`
3688
+ }, Y.styles = h`
3682
3689
  :host {
3683
3690
  display: none;
3684
3691
  font-family: var(--font-sans);
@@ -3750,11 +3757,11 @@ const t1 = (Y = class extends u {
3750
3757
  inset: 0;
3751
3758
  background: rgba(50, 60, 77, 0.6);
3752
3759
  cursor: default;
3753
- animation: overlayIn ${f2}ms cubic-bezier(0.2, 0, 0, 1)
3760
+ animation: overlayIn ${H2}ms cubic-bezier(0.2, 0, 0, 1)
3754
3761
  forwards;
3755
3762
  }
3756
3763
  .overlay.is-leaving {
3757
- animation: overlayOut ${C4}ms
3764
+ animation: overlayOut ${L4}ms
3758
3765
  cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
3759
3766
  }
3760
3767
  .modal-wrapper {
@@ -3780,11 +3787,11 @@ const t1 = (Y = class extends u {
3780
3787
  0 8px 24px 0 rgba(29, 41, 57, 0.12),
3781
3788
  0 2px 8px 0 rgba(29, 41, 57, 0.08);
3782
3789
  flex-shrink: 0;
3783
- animation: modalIn ${f2}ms cubic-bezier(0.05, 0.7, 0.1, 1)
3790
+ animation: modalIn ${H2}ms cubic-bezier(0.05, 0.7, 0.1, 1)
3784
3791
  forwards;
3785
3792
  }
3786
3793
  .modal.is-leaving {
3787
- animation: modalOut ${H2}ms
3794
+ animation: modalOut ${m2}ms
3788
3795
  cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
3789
3796
  }
3790
3797
  .modal-wrapper--fullscreen {
@@ -3814,11 +3821,11 @@ const t1 = (Y = class extends u {
3814
3821
  max-height: 100%;
3815
3822
  height: 100%;
3816
3823
  box-shadow: none;
3817
- animation: modalFullscreenIn ${f2}ms
3824
+ animation: modalFullscreenIn ${H2}ms
3818
3825
  cubic-bezier(0.05, 0.7, 0.1, 1) forwards;
3819
3826
  }
3820
3827
  .modal--fullscreen.is-leaving {
3821
- animation: modalFullscreenOut ${H2}ms
3828
+ animation: modalFullscreenOut ${m2}ms
3822
3829
  cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
3823
3830
  }
3824
3831
  .header {
@@ -3890,11 +3897,11 @@ p1([
3890
3897
  a({ type: Boolean })
3891
3898
  ], t1.prototype, "fullscreen");
3892
3899
  p1([
3893
- V()
3900
+ b()
3894
3901
  ], t1.prototype, "_leaving");
3895
- let o7 = t1;
3896
- customElements.get("anduin-modal") || customElements.define("anduin-modal", o7);
3897
- class i7 extends HTMLElement {
3902
+ let H7 = t1;
3903
+ customElements.get("anduin-modal") || customElements.define("anduin-modal", H7);
3904
+ class m7 extends HTMLElement {
3898
3905
  constructor() {
3899
3906
  super(...arguments), this._onClick = () => {
3900
3907
  this.dispatchEvent(
@@ -3909,26 +3916,26 @@ class i7 extends HTMLElement {
3909
3916
  this.removeEventListener("click", this._onClick);
3910
3917
  }
3911
3918
  }
3912
- customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close", i7);
3913
- var l7 = Object.defineProperty, U = (r, e, t, i) => {
3914
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
3915
- (n = r[l]) && (o = n(e, t, o) || o);
3916
- return o && l7(e, t, o), o;
3919
+ customElements.get("anduin-modal-close") || customElements.define("anduin-modal-close", m7);
3920
+ var b7 = Object.defineProperty, U = (n, e, t, i) => {
3921
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
3922
+ (r = n[l]) && (o = r(e, t, o) || o);
3923
+ return o && b7(e, t, o), o;
3917
3924
  };
3918
- const z2 = "anduin-radio:change", r7 = "anduin-radio-group:change", R5 = class R5 extends u {
3925
+ const A2 = "anduin-radio:change", V7 = "anduin-radio-group:change", P5 = class P5 extends p {
3919
3926
  constructor() {
3920
3927
  super(...arguments), this.checked = !1, this.disabled = !1, this.readonly = !1, this.value = "", this.name = "", this.inputid = "";
3921
3928
  }
3922
3929
  connectedCallback() {
3923
3930
  super.connectedCallback();
3924
3931
  const e = this.closest("anduin-field");
3925
- e && e.addEventListener(Z1, (t) => {
3932
+ e && e.addEventListener(x1, (t) => {
3926
3933
  const i = t;
3927
3934
  this.inputid && this.inputid === i.detail && !this.disabled && !this.readonly && this._select();
3928
3935
  });
3929
3936
  }
3930
3937
  _select() {
3931
- this.checked || (this.checked = !0, this.dispatchEvent(new CustomEvent(z2, {
3938
+ this.checked || (this.checked = !0, this.dispatchEvent(new CustomEvent(A2, {
3932
3939
  detail: this.value,
3933
3940
  bubbles: !0,
3934
3941
  composed: !0
@@ -3945,7 +3952,7 @@ const z2 = "anduin-radio:change", r7 = "anduin-radio-group:change", R5 = class R
3945
3952
  !this.checked && this.disabled ? "radio__circle--disabled" : "",
3946
3953
  !this.checked && !this.readonly && !this.disabled ? "radio__circle--unchecked" : ""
3947
3954
  ].filter(Boolean).join(" ");
3948
- return C`
3955
+ return s`
3949
3956
  <label class="${this.disabled ? "is-disabled" : ""}">
3950
3957
  <div
3951
3958
  class="radio ${e ? "radio--interactive" : ""} ${this.disabled ? "radio--disabled" : ""}"
@@ -3969,7 +3976,7 @@ const z2 = "anduin-radio:change", r7 = "anduin-radio-group:change", R5 = class R
3969
3976
  `;
3970
3977
  }
3971
3978
  };
3972
- R5.styles = g`
3979
+ P5.styles = h`
3973
3980
  :host { display: inline-flex; font-family: var(--font-sans); }
3974
3981
 
3975
3982
  label {
@@ -4040,7 +4047,7 @@ R5.styles = g`
4040
4047
  transform: scale(1);
4041
4048
  }
4042
4049
  `;
4043
- let N = R5;
4050
+ let N = P5;
4044
4051
  U([
4045
4052
  a({ type: Boolean })
4046
4053
  ], N.prototype, "checked");
@@ -4060,14 +4067,14 @@ U([
4060
4067
  a()
4061
4068
  ], N.prototype, "inputid");
4062
4069
  customElements.get("anduin-radio") || customElements.define("anduin-radio", N);
4063
- const k5 = class k5 extends u {
4070
+ const S5 = class S5 extends p {
4064
4071
  constructor() {
4065
4072
  super(...arguments), this.value = "", this.name = "", this.orientation = "vertical", this._onRadioChange = (e) => {
4066
4073
  const i = e.detail;
4067
4074
  i !== this.value && (this.value = i, this.querySelectorAll("anduin-radio").forEach((o) => {
4068
4075
  const l = o;
4069
4076
  l.checked = l.value === i;
4070
- }), this.dispatchEvent(new CustomEvent(r7, {
4077
+ }), this.dispatchEvent(new CustomEvent(V7, {
4071
4078
  detail: i,
4072
4079
  bubbles: !0,
4073
4080
  composed: !0
@@ -4075,20 +4082,20 @@ const k5 = class k5 extends u {
4075
4082
  };
4076
4083
  }
4077
4084
  connectedCallback() {
4078
- super.connectedCallback(), this.addEventListener(z2, this._onRadioChange);
4085
+ super.connectedCallback(), this.addEventListener(A2, this._onRadioChange);
4079
4086
  }
4080
4087
  disconnectedCallback() {
4081
- super.disconnectedCallback(), this.removeEventListener(z2, this._onRadioChange);
4088
+ super.disconnectedCallback(), this.removeEventListener(A2, this._onRadioChange);
4082
4089
  }
4083
4090
  render() {
4084
- return C`
4091
+ return s`
4085
4092
  <div class="group group--${this.orientation}" role="radiogroup" part="group">
4086
4093
  <slot></slot>
4087
4094
  </div>
4088
4095
  `;
4089
4096
  }
4090
4097
  };
4091
- k5.styles = g`
4098
+ S5.styles = h`
4092
4099
  :host { display: block; font-family: var(--font-sans); }
4093
4100
 
4094
4101
  .group {
@@ -4098,23 +4105,23 @@ k5.styles = g`
4098
4105
  .group--vertical { flex-direction: column; }
4099
4106
  .group--horizontal { flex-direction: row; flex-wrap: wrap; align-items: center; }
4100
4107
  `;
4101
- let b1 = k5;
4108
+ let V1 = S5;
4102
4109
  U([
4103
4110
  a()
4104
- ], b1.prototype, "value");
4111
+ ], V1.prototype, "value");
4105
4112
  U([
4106
4113
  a()
4107
- ], b1.prototype, "name");
4114
+ ], V1.prototype, "name");
4108
4115
  U([
4109
4116
  a()
4110
- ], b1.prototype, "orientation");
4111
- customElements.get("anduin-radio-group") || customElements.define("anduin-radio-group", b1);
4112
- var n7 = Object.defineProperty, u1 = (r, e, t, i) => {
4113
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
4114
- (n = r[l]) && (o = n(e, t, o) || o);
4115
- return o && n7(e, t, o), o;
4117
+ ], V1.prototype, "orientation");
4118
+ customElements.get("anduin-radio-group") || customElements.define("anduin-radio-group", V1);
4119
+ var L7 = Object.defineProperty, u1 = (n, e, t, i) => {
4120
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
4121
+ (r = n[l]) && (o = r(e, t, o) || o);
4122
+ return o && L7(e, t, o), o;
4116
4123
  };
4117
- const d4 = [
4124
+ const M4 = [
4118
4125
  { bg: "#6172F3", text: "#ffffff" },
4119
4126
  { bg: "#B692F6", text: "#ffffff" },
4120
4127
  { bg: "#F670C7", text: "#ffffff" },
@@ -4124,17 +4131,17 @@ const d4 = [
4124
4131
  { bg: "#F97066", text: "#ffffff" },
4125
4132
  { bg: "#7A5AF8", text: "#ffffff" }
4126
4133
  ];
4127
- function a7(r) {
4134
+ function y7(n) {
4128
4135
  let e = 0;
4129
- for (let t = 0; t < r.length; t++) e = e * 31 + r.charCodeAt(t) >>> 0;
4130
- return d4[e % d4.length];
4136
+ for (let t = 0; t < n.length; t++) e = e * 31 + n.charCodeAt(t) >>> 0;
4137
+ return M4[e % M4.length];
4131
4138
  }
4132
- function s7(r) {
4139
+ function M7(n) {
4133
4140
  var t;
4134
- const e = r.trim().split(/\s+/);
4141
+ const e = n.trim().split(/\s+/);
4135
4142
  return e.length === 1 ? ((t = e[0][0]) == null ? void 0 : t.toUpperCase()) ?? "" : ((e[0][0] ?? "") + (e[e.length - 1][0] ?? "")).toUpperCase();
4136
4143
  }
4137
- const $5 = class $5 extends u {
4144
+ const F5 = class F5 extends p {
4138
4145
  constructor() {
4139
4146
  super(...arguments), this.src = "", this.name = "", this.alt = "", this.icon = "", this.size = 32, this.shape = "circle", this._imgError = !1;
4140
4147
  }
@@ -4145,8 +4152,8 @@ const $5 = class $5 extends u {
4145
4152
  return this.size <= 16 ? 10 : this.size <= 20 ? 12 : this.size <= 24 ? 14 : 18;
4146
4153
  }
4147
4154
  render() {
4148
- const e = !!this.src && !this._imgError, t = this.name || this.icon ? a7(this.name || this.icon) : { bg: "#F2F4F7", text: "#667085" }, i = this.name ? s7(this.name) : "";
4149
- return C`
4155
+ const e = !!this.src && !this._imgError, t = this.name || this.icon ? y7(this.name || this.icon) : { bg: "#F2F4F7", text: "#667085" }, i = this.name ? M7(this.name) : "";
4156
+ return s`
4150
4157
  <div
4151
4158
  class="avatar avatar--${this.shape} avatar--${this.size}"
4152
4159
  style=${e ? "" : `background:${t.bg}`}
@@ -4154,7 +4161,7 @@ const $5 = class $5 extends u {
4154
4161
  role="img"
4155
4162
  part="avatar"
4156
4163
  >
4157
- ${e ? C`<img src=${this.src} alt=${this.alt || this.name} @error=${this._onImgError} />` : this.icon ? C`<span style="color:${t.text};width:100%;height:100%;display:flex;align-items:center;justify-content:center"><anduin-icon name=${this.icon} size=${this._iconSize()}></anduin-icon></span>` : i ? C`<span style="color:${t.text};background:${t.bg};width:100%;height:100%;display:flex;align-items:center;justify-content:center">${i}</span>` : C`<span style="color:#98A2B3;background:#F2F4F7;width:100%;height:100%;display:flex;align-items:center;justify-content:center">
4164
+ ${e ? s`<img src=${this.src} alt=${this.alt || this.name} @error=${this._onImgError} />` : this.icon ? s`<span style="color:${t.text};width:100%;height:100%;display:flex;align-items:center;justify-content:center"><anduin-icon name=${this.icon} size=${this._iconSize()}></anduin-icon></span>` : i ? s`<span style="color:${t.text};background:${t.bg};width:100%;height:100%;display:flex;align-items:center;justify-content:center">${i}</span>` : s`<span style="color:#98A2B3;background:#F2F4F7;width:100%;height:100%;display:flex;align-items:center;justify-content:center">
4158
4165
  <svg width="60%" height="60%" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
4159
4166
  <path d="M8 8C9.93 8 11.5 6.43 11.5 4.5S9.93 1 8 1 4.5 2.57 4.5 4.5 6.07 8 8 8zm0 1.5C5.66 9.5 1 10.67 1 13v1h14v-1c0-2.33-4.66-3.5-7-3.5z" fill="currentColor"/>
4160
4167
  </svg>
@@ -4163,7 +4170,7 @@ const $5 = class $5 extends u {
4163
4170
  `;
4164
4171
  }
4165
4172
  };
4166
- $5.styles = g`
4173
+ F5.styles = h`
4167
4174
  :host { display: inline-flex; }
4168
4175
 
4169
4176
  .avatar {
@@ -4192,7 +4199,7 @@ $5.styles = g`
4192
4199
  display: block;
4193
4200
  }
4194
4201
  `;
4195
- let O = $5;
4202
+ let O = F5;
4196
4203
  u1([
4197
4204
  a()
4198
4205
  ], O.prototype, "src");
@@ -4212,7 +4219,7 @@ u1([
4212
4219
  a()
4213
4220
  ], O.prototype, "shape");
4214
4221
  u1([
4215
- V()
4222
+ b()
4216
4223
  ], O.prototype, "_imgError");
4217
4224
  customElements.get("anduin-avatar") || customElements.define("anduin-avatar", O);
4218
4225
  /**
@@ -4220,8 +4227,8 @@ customElements.get("anduin-avatar") || customElements.define("anduin-avatar", O)
4220
4227
  * Copyright 2017 Google LLC
4221
4228
  * SPDX-License-Identifier: BSD-3-Clause
4222
4229
  */
4223
- const C7 = { CHILD: 2 }, d7 = (r) => (...e) => ({ _$litDirective$: r, values: e });
4224
- class c7 {
4230
+ const x7 = { CHILD: 2 }, _7 = (n) => (...e) => ({ _$litDirective$: n, values: e });
4231
+ class Z7 {
4225
4232
  constructor(e) {
4226
4233
  }
4227
4234
  get _$AU() {
@@ -4242,9 +4249,9 @@ class c7 {
4242
4249
  * Copyright 2017 Google LLC
4243
4250
  * SPDX-License-Identifier: BSD-3-Clause
4244
4251
  */
4245
- class A2 extends c7 {
4252
+ class B2 extends Z7 {
4246
4253
  constructor(e) {
4247
- if (super(e), this.it = c, e.type !== C7.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
4254
+ if (super(e), this.it = c, e.type !== x7.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
4248
4255
  }
4249
4256
  render(e) {
4250
4257
  if (e === c || e == null) return this._t = void 0, this.it = e;
@@ -4256,16 +4263,16 @@ class A2 extends c7 {
4256
4263
  return t.raw = t, this._t = { _$litType$: this.constructor.resultType, strings: t, values: [] };
4257
4264
  }
4258
4265
  }
4259
- A2.directiveName = "unsafeHTML", A2.resultType = 1;
4266
+ B2.directiveName = "unsafeHTML", B2.resultType = 1;
4260
4267
  /**
4261
4268
  * @license
4262
4269
  * Copyright 2017 Google LLC
4263
4270
  * SPDX-License-Identifier: BSD-3-Clause
4264
4271
  */
4265
- class B2 extends A2 {
4272
+ class P2 extends B2 {
4266
4273
  }
4267
- B2.directiveName = "unsafeSVG", B2.resultType = 2;
4268
- const p7 = d7(B2), u7 = {
4274
+ P2.directiveName = "unsafeSVG", P2.resultType = 2;
4275
+ const w7 = _7(P2), R7 = {
4269
4276
  archive: {
4270
4277
  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"/>
4271
4278
  <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"/>
@@ -4509,27 +4516,27 @@ const p7 = d7(B2), u7 = {
4509
4516
  <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"/>
4510
4517
  <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"/>` }
4511
4518
  }
4512
- }, h7 = [32, 24, 16];
4513
- function g7(r, e) {
4514
- const t = u7[r];
4519
+ }, k7 = [32, 24, 16];
4520
+ function $7(n, e) {
4521
+ const t = R7[n];
4515
4522
  if (!t) return null;
4516
4523
  if (t[e]) return t[e];
4517
- for (const i of h7)
4524
+ for (const i of k7)
4518
4525
  if (t[i]) return t[i];
4519
4526
  return null;
4520
4527
  }
4521
- var v7 = Object.defineProperty, O4 = (r, e, t, i) => {
4522
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
4523
- (n = r[l]) && (o = n(e, t, o) || o);
4524
- return o && v7(e, t, o), o;
4528
+ var E7 = Object.defineProperty, e3 = (n, e, t, i) => {
4529
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
4530
+ (r = n[l]) && (o = r(e, t, o) || o);
4531
+ return o && E7(e, t, o), o;
4525
4532
  };
4526
- const E5 = class E5 extends u {
4533
+ const O5 = class O5 extends p {
4527
4534
  constructor() {
4528
4535
  super(...arguments), this.type = "pdf", this.size = 32;
4529
4536
  }
4530
4537
  render() {
4531
- const e = g7(this.type, this.size);
4532
- return e ? C`
4538
+ const e = $7(this.type, this.size);
4539
+ return e ? s`
4533
4540
  <svg
4534
4541
  width=${this.size}
4535
4542
  height=${this.size}
@@ -4539,35 +4546,35 @@ const E5 = class E5 extends u {
4539
4546
  aria-label="${this.type} file"
4540
4547
  role="img"
4541
4548
  >
4542
- ${p7(e.paths)}
4549
+ ${w7(e.paths)}
4543
4550
  </svg>
4544
4551
  ` : c;
4545
4552
  }
4546
4553
  };
4547
- E5.styles = g`
4554
+ O5.styles = h`
4548
4555
  :host { display: inline-flex; align-items: center; justify-content: center; }
4549
4556
  svg { display: block; }
4550
4557
  `;
4551
- let U1 = E5;
4552
- O4([
4558
+ let G1 = O5;
4559
+ e3([
4553
4560
  a()
4554
- ], U1.prototype, "type");
4555
- O4([
4561
+ ], G1.prototype, "type");
4562
+ e3([
4556
4563
  a({ type: Number })
4557
- ], U1.prototype, "size");
4558
- customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon", U1);
4559
- var f7 = Object.defineProperty, h1 = (r, e, t, i) => {
4560
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
4561
- (n = r[l]) && (o = n(e, t, o) || o);
4562
- return o && f7(e, t, o), o;
4564
+ ], G1.prototype, "size");
4565
+ customElements.get("anduin-file-icon") || customElements.define("anduin-file-icon", G1);
4566
+ var z7 = Object.defineProperty, h1 = (n, e, t, i) => {
4567
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
4568
+ (r = n[l]) && (o = r(e, t, o) || o);
4569
+ return o && z7(e, t, o), o;
4563
4570
  };
4564
- const c4 = {
4571
+ const x4 = {
4565
4572
  gray: "info",
4566
4573
  primary: "infoCircleLine",
4567
4574
  success: "checkCircle",
4568
4575
  warning: "warning",
4569
4576
  danger: "error"
4570
- }, H7 = "anduin-toast:dismiss", z5 = class z5 extends u {
4577
+ }, A7 = "anduin-toast:dismiss", I5 = class I5 extends p {
4571
4578
  constructor() {
4572
4579
  super(...arguments), this.variant = "gray", this.heading = "", this.description = "", this._dismissing = !1;
4573
4580
  }
@@ -4578,7 +4585,7 @@ const c4 = {
4578
4585
  const e = (i) => {
4579
4586
  var o;
4580
4587
  i.propertyName === "opacity" && ((o = this._toastEl) == null || o.removeEventListener("transitionend", e), this.dispatchEvent(
4581
- new CustomEvent(H7, { bubbles: !0, composed: !0 })
4588
+ new CustomEvent(A7, { bubbles: !0, composed: !0 })
4582
4589
  ));
4583
4590
  };
4584
4591
  (t = this._toastEl) == null || t.addEventListener("transitionend", e);
@@ -4587,8 +4594,8 @@ const c4 = {
4587
4594
  this.dismiss();
4588
4595
  }
4589
4596
  render() {
4590
- const e = c4[this.variant] ?? c4.gray;
4591
- return C`
4597
+ const e = x4[this.variant] ?? x4.gray;
4598
+ return s`
4592
4599
  <div
4593
4600
  class="toast toast--${this.variant} ${this._dismissing ? "toast--dismissing" : ""}"
4594
4601
  part="toast"
@@ -4599,8 +4606,8 @@ const c4 = {
4599
4606
  <anduin-icon name=${e} size="16"></anduin-icon>
4600
4607
  </div>
4601
4608
  <div class="toast__body">
4602
- ${this.heading ? C`<div class="toast__title">${this.heading}</div>` : ""}
4603
- ${this.description ? C`<div class="toast__description">${this.description}</div>` : C`<div class="toast__description"><slot></slot></div>`}
4609
+ ${this.heading ? s`<div class="toast__title">${this.heading}</div>` : ""}
4610
+ ${this.description ? s`<div class="toast__description">${this.description}</div>` : s`<div class="toast__description"><slot></slot></div>`}
4604
4611
  </div>
4605
4612
  <button
4606
4613
  class="toast__close"
@@ -4613,7 +4620,7 @@ const c4 = {
4613
4620
  `;
4614
4621
  }
4615
4622
  };
4616
- z5.styles = g`
4623
+ I5.styles = h`
4617
4624
  :host {
4618
4625
  display: block;
4619
4626
  font-family: var(--font-sans);
@@ -4741,7 +4748,7 @@ z5.styles = g`
4741
4748
  background: var(--color-gray-3, #d0d5dd);
4742
4749
  }
4743
4750
  `;
4744
- let K = z5;
4751
+ let K = I5;
4745
4752
  h1([
4746
4753
  a()
4747
4754
  ], K.prototype, "variant");
@@ -4752,13 +4759,13 @@ h1([
4752
4759
  a()
4753
4760
  ], K.prototype, "description");
4754
4761
  h1([
4755
- V()
4762
+ b()
4756
4763
  ], K.prototype, "_dismissing");
4757
4764
  h1([
4758
4765
  R(".toast")
4759
4766
  ], K.prototype, "_toastEl");
4760
4767
  customElements.get("anduin-toast") || customElements.define("anduin-toast", K);
4761
- const A5 = class A5 extends u {
4768
+ const D5 = class D5 extends p {
4762
4769
  constructor() {
4763
4770
  super(...arguments), this.position = "bottom-left", this._toasts = [], this._nextId = 0;
4764
4771
  }
@@ -4785,10 +4792,10 @@ const A5 = class A5 extends u {
4785
4792
  e.stopPropagation(), this._removeById(t);
4786
4793
  }
4787
4794
  render() {
4788
- return C`
4795
+ return s`
4789
4796
  <div class="toaster toaster--${this.position}" part="toaster">
4790
4797
  ${this._toasts.map(
4791
- ({ id: e, opts: t }) => C`
4798
+ ({ id: e, opts: t }) => s`
4792
4799
  <anduin-toast
4793
4800
  data-id=${e}
4794
4801
  variant=${t.variant ?? "gray"}
@@ -4802,7 +4809,7 @@ const A5 = class A5 extends u {
4802
4809
  `;
4803
4810
  }
4804
4811
  };
4805
- A5.styles = g`
4812
+ D5.styles = h`
4806
4813
  :host {
4807
4814
  display: contents;
4808
4815
  pointer-events: none;
@@ -4849,57 +4856,57 @@ A5.styles = g`
4849
4856
  align-items: flex-end;
4850
4857
  }
4851
4858
  `;
4852
- let G1 = A5;
4859
+ let q1 = D5;
4853
4860
  h1([
4854
4861
  a()
4855
- ], G1.prototype, "position");
4862
+ ], q1.prototype, "position");
4856
4863
  h1([
4857
- V()
4858
- ], G1.prototype, "_toasts");
4859
- customElements.get("anduin-toaster") || customElements.define("anduin-toaster", G1);
4860
- const T7 = {
4861
- show(r) {
4862
- return m7(r.position).show(r);
4864
+ b()
4865
+ ], q1.prototype, "_toasts");
4866
+ customElements.get("anduin-toaster") || customElements.define("anduin-toaster", q1);
4867
+ const l0 = {
4868
+ show(n) {
4869
+ return B7(n.position).show(n);
4863
4870
  },
4864
- success(r, e, t) {
4865
- return this.show({ ...t, variant: "success", heading: r, description: e });
4871
+ success(n, e, t) {
4872
+ return this.show({ ...t, variant: "success", heading: n, description: e });
4866
4873
  },
4867
- danger(r, e, t) {
4868
- return this.show({ ...t, variant: "danger", heading: r, description: e });
4874
+ danger(n, e, t) {
4875
+ return this.show({ ...t, variant: "danger", heading: n, description: e });
4869
4876
  },
4870
- warning(r, e, t) {
4871
- return this.show({ ...t, variant: "warning", heading: r, description: e });
4877
+ warning(n, e, t) {
4878
+ return this.show({ ...t, variant: "warning", heading: n, description: e });
4872
4879
  },
4873
- primary(r, e, t) {
4874
- return this.show({ ...t, variant: "primary", heading: r, description: e });
4880
+ primary(n, e, t) {
4881
+ return this.show({ ...t, variant: "primary", heading: n, description: e });
4875
4882
  },
4876
- gray(r, e, t) {
4877
- return this.show({ ...t, variant: "gray", heading: r, description: e });
4883
+ gray(n, e, t) {
4884
+ return this.show({ ...t, variant: "gray", heading: n, description: e });
4878
4885
  }
4879
- }, m2 = /* @__PURE__ */ new Map();
4880
- function m7(r = "bottom-left") {
4881
- if (m2.has(r)) return m2.get(r);
4886
+ }, b2 = /* @__PURE__ */ new Map();
4887
+ function B7(n = "bottom-left") {
4888
+ if (b2.has(n)) return b2.get(n);
4882
4889
  const e = document.createElement("anduin-toaster");
4883
- return e.position = r, document.body.appendChild(e), m2.set(r, e), e;
4890
+ return e.position = n, document.body.appendChild(e), b2.set(n, e), e;
4884
4891
  }
4885
- var V7 = Object.defineProperty, I4 = (r, e, t, i) => {
4886
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
4887
- (n = r[l]) && (o = n(e, t, o) || o);
4888
- return o && V7(e, t, o), o;
4892
+ var P7 = Object.defineProperty, t3 = (n, e, t, i) => {
4893
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
4894
+ (r = n[l]) && (o = r(e, t, o) || o);
4895
+ return o && P7(e, t, o), o;
4889
4896
  };
4890
- const b7 = "anduin-switcher:change", B5 = class B5 extends u {
4897
+ const S7 = "anduin-switcher:change", T5 = class T5 extends p {
4891
4898
  constructor() {
4892
4899
  super(...arguments), this.checked = !1, this.disabled = !1;
4893
4900
  }
4894
4901
  onChange() {
4895
- this.checked = !this.checked, this.dispatchEvent(new CustomEvent(b7, {
4902
+ this.checked = !this.checked, this.dispatchEvent(new CustomEvent(S7, {
4896
4903
  detail: this.checked,
4897
4904
  bubbles: !0,
4898
4905
  composed: !0
4899
4906
  }));
4900
4907
  }
4901
4908
  render() {
4902
- return C`
4909
+ return s`
4903
4910
  <label class="${this.disabled ? "is-disabled" : ""}">
4904
4911
  <div class="track${this.checked ? " track--checked" : ""}" part="track">
4905
4912
  <input
@@ -4916,7 +4923,7 @@ const b7 = "anduin-switcher:change", B5 = class B5 extends u {
4916
4923
  `;
4917
4924
  }
4918
4925
  };
4919
- B5.styles = g`
4926
+ T5.styles = h`
4920
4927
  :host { display: inline-flex; font-family: var(--font-sans); }
4921
4928
 
4922
4929
  label {
@@ -4980,20 +4987,20 @@ B5.styles = g`
4980
4987
  line-height: 20px;
4981
4988
  }
4982
4989
  `;
4983
- let q1 = B5;
4984
- I4([
4990
+ let W1 = T5;
4991
+ t3([
4985
4992
  a({ type: Boolean })
4986
- ], q1.prototype, "checked");
4987
- I4([
4993
+ ], W1.prototype, "checked");
4994
+ t3([
4988
4995
  a({ type: Boolean })
4989
- ], q1.prototype, "disabled");
4990
- customElements.get("anduin-switcher") || customElements.define("anduin-switcher", q1);
4991
- var L7 = Object.defineProperty, M = (r, e, t, i) => {
4992
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
4993
- (n = r[l]) && (o = n(e, t, o) || o);
4994
- return o && L7(e, t, o), o;
4996
+ ], W1.prototype, "disabled");
4997
+ customElements.get("anduin-switcher") || customElements.define("anduin-switcher", W1);
4998
+ var F7 = Object.defineProperty, M = (n, e, t, i) => {
4999
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
5000
+ (r = n[l]) && (o = r(e, t, o) || o);
5001
+ return o && F7(e, t, o), o;
4995
5002
  };
4996
- const p4 = "anduin-dropdown:change", P5 = class P5 extends u {
5003
+ const _4 = "anduin-dropdown:change", N5 = class N5 extends p {
4997
5004
  constructor() {
4998
5005
  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) => {
4999
5006
  var t;
@@ -5025,14 +5032,14 @@ const p4 = "anduin-dropdown:change", P5 = class P5 extends u {
5025
5032
  e.key === "Escape" && (this._open = !1, this._query = "", (t = this._triggerEl) == null || t.focus());
5026
5033
  }
5027
5034
  _onClear(e) {
5028
- e.stopPropagation(), this.value = "", this.dispatchEvent(new CustomEvent(p4, {
5035
+ e.stopPropagation(), this.value = "", this.dispatchEvent(new CustomEvent(_4, {
5029
5036
  detail: "",
5030
5037
  bubbles: !0,
5031
5038
  composed: !0
5032
5039
  }));
5033
5040
  }
5034
5041
  _selectOption(e) {
5035
- this.value = e.value, this._open = !1, this._query = "", this.dispatchEvent(new CustomEvent(p4, {
5042
+ this.value = e.value, this._open = !1, this._query = "", this.dispatchEvent(new CustomEvent(_4, {
5036
5043
  detail: e.value,
5037
5044
  bubbles: !0,
5038
5045
  composed: !0
@@ -5045,13 +5052,13 @@ const p4 = "anduin-dropdown:change", P5 = class P5 extends u {
5045
5052
  t.style.transform = "none";
5046
5053
  const l = t.getBoundingClientRect();
5047
5054
  t.style.transform = o;
5048
- const n = t.querySelector(".panel__inner");
5049
- n && (n.style.minWidth = `${i.width}px`);
5050
- const s = t.getBoundingClientRect(), d = 4, p = window.innerWidth, h = window.innerHeight, v = 8, H = h - i.bottom - d, f = i.top - d, G = s.height <= H || H >= f ? i.bottom + d : i.top - s.height - d;
5051
- let x = i.left;
5052
- this.placement === "bottom-end" ? x = i.right - s.width : this.placement === "bottom" && (x = i.left + i.width / 2 - s.width / 2), x = Math.max(v, Math.min(x, p - s.width - v));
5053
- const I = Math.max(v, Math.min(G, h - s.height - v));
5054
- t.style.transform = `translate(${Math.round(x - l.left)}px, ${Math.round(I - l.top)}px)`;
5055
+ const r = t.querySelector(".panel__inner");
5056
+ r && (r.style.minWidth = `${i.width}px`);
5057
+ const C = t.getBoundingClientRect(), d = 4, u = window.innerWidth, g = window.innerHeight, v = 8, H = g - i.bottom - d, f = i.top - d, G = C.height <= H || H >= f ? i.bottom + d : i.top - C.height - d;
5058
+ let Z = i.left;
5059
+ this.placement === "bottom-end" ? Z = i.right - C.width : this.placement === "bottom" && (Z = i.left + i.width / 2 - C.width / 2), Z = Math.max(v, Math.min(Z, u - C.width - v));
5060
+ const I = Math.max(v, Math.min(G, g - C.height - v));
5061
+ t.style.transform = `translate(${Math.round(Z - l.left)}px, ${Math.round(I - l.top)}px)`;
5055
5062
  }
5056
5063
  get _filteredOptions() {
5057
5064
  if (!this._query) return this.options;
@@ -5060,7 +5067,7 @@ const p4 = "anduin-dropdown:change", P5 = class P5 extends u {
5060
5067
  }
5061
5068
  render() {
5062
5069
  const e = this.options.find((l) => l.value === this.value), t = (e == null ? void 0 : e.label) ?? "", i = e ? e.icon ?? "" : this.icon, o = this._filteredOptions;
5063
- return C`
5070
+ return s`
5064
5071
  <button
5065
5072
  class="trigger trigger--${this.appearance} trigger--${this.variant}${this.size === "small" ? " trigger--small" : ""}${this.value ? " has-value" : ""}"
5066
5073
  part="trigger"
@@ -5070,13 +5077,13 @@ const p4 = "anduin-dropdown:change", P5 = class P5 extends u {
5070
5077
  @click=${this._onTriggerClick}
5071
5078
  @keydown=${this._onKeyDown}
5072
5079
  >
5073
- ${i && t ? C`<anduin-icon name="${i}" size="16"></anduin-icon>` : c}
5080
+ ${i && t ? s`<anduin-icon name="${i}" size="16"></anduin-icon>` : c}
5074
5081
  <span class="trigger__label${t ? "" : " trigger__label--placeholder"}">${t || this.placeholder}</span>
5075
5082
  <span class="trigger__caret">
5076
5083
  <span class="trigger__chevron">
5077
5084
  <anduin-icon name="caretDown" size="16"></anduin-icon>
5078
5085
  </span>
5079
- ${this.value && !this.disabled ? C`
5086
+ ${this.value && !this.disabled ? s`
5080
5087
  <span class="trigger__clear" @click=${this._onClear}>
5081
5088
  <anduin-icon name="crossSmall" size="16"></anduin-icon>
5082
5089
  </span>
@@ -5086,7 +5093,7 @@ const p4 = "anduin-dropdown:change", P5 = class P5 extends u {
5086
5093
 
5087
5094
  <div class="panel${this._open ? " panel--open" : ""}" part="panel" @keydown=${this._onKeyDown}>
5088
5095
  <div class="panel__inner" role="listbox">
5089
- ${this.searchable ? C`
5096
+ ${this.searchable ? s`
5090
5097
  <div class="search-wrap">
5091
5098
  <anduin-input
5092
5099
  placeholder="Search ..."
@@ -5098,7 +5105,7 @@ const p4 = "anduin-dropdown:change", P5 = class P5 extends u {
5098
5105
  </div>
5099
5106
  ` : c}
5100
5107
  <div class="options">
5101
- ${o.length ? o.map((l) => C`
5108
+ ${o.length ? o.map((l) => s`
5102
5109
  <div
5103
5110
  class="option"
5104
5111
  role="option"
@@ -5106,19 +5113,19 @@ const p4 = "anduin-dropdown:change", P5 = class P5 extends u {
5106
5113
  @click=${() => this._selectOption(l)}
5107
5114
  >
5108
5115
  <span class="option__check">
5109
- ${l.value === this.value ? C`<anduin-icon name="checkSmall" size="16"></anduin-icon>` : c}
5116
+ ${l.value === this.value ? s`<anduin-icon name="checkSmall" size="16"></anduin-icon>` : c}
5110
5117
  </span>
5111
- ${l.icon ? C`<anduin-icon name="${l.icon}" size="16"></anduin-icon>` : c}
5118
+ ${l.icon ? s`<anduin-icon name="${l.icon}" size="16"></anduin-icon>` : c}
5112
5119
  <span class="option__label">${l.label}</span>
5113
5120
  </div>
5114
- `) : C`<div class="empty">No results</div>`}
5121
+ `) : s`<div class="empty">No results</div>`}
5115
5122
  </div>
5116
5123
  </div>
5117
5124
  </div>
5118
5125
  `;
5119
5126
  }
5120
5127
  };
5121
- P5.styles = g`
5128
+ N5.styles = h`
5122
5129
  :host { display: inline-block; font-family: var(--font-sans); }
5123
5130
  :host([full-width]) { display: block; width: 100%; }
5124
5131
  :host([full-width]) .trigger { width: 100%; }
@@ -5298,67 +5305,67 @@ P5.styles = g`
5298
5305
  text-align: center;
5299
5306
  }
5300
5307
  `;
5301
- let b = P5;
5308
+ let V = N5;
5302
5309
  M([
5303
5310
  a()
5304
- ], b.prototype, "value");
5311
+ ], V.prototype, "value");
5305
5312
  M([
5306
5313
  a()
5307
- ], b.prototype, "placeholder");
5314
+ ], V.prototype, "placeholder");
5308
5315
  M([
5309
5316
  a({ attribute: !1 })
5310
- ], b.prototype, "options");
5317
+ ], V.prototype, "options");
5311
5318
  M([
5312
5319
  a()
5313
- ], b.prototype, "icon");
5320
+ ], V.prototype, "icon");
5314
5321
  M([
5315
5322
  a({ type: Boolean })
5316
- ], b.prototype, "searchable");
5323
+ ], V.prototype, "searchable");
5317
5324
  M([
5318
5325
  a({ type: Boolean })
5319
- ], b.prototype, "disabled");
5326
+ ], V.prototype, "disabled");
5320
5327
  M([
5321
5328
  a()
5322
- ], b.prototype, "placement");
5329
+ ], V.prototype, "placement");
5323
5330
  M([
5324
5331
  a()
5325
- ], b.prototype, "appearance");
5332
+ ], V.prototype, "appearance");
5326
5333
  M([
5327
5334
  a()
5328
- ], b.prototype, "variant");
5335
+ ], V.prototype, "variant");
5329
5336
  M([
5330
5337
  a()
5331
- ], b.prototype, "size");
5338
+ ], V.prototype, "size");
5332
5339
  M([
5333
5340
  a({ type: Boolean, attribute: "full-width", reflect: !0 })
5334
- ], b.prototype, "fullWidth");
5341
+ ], V.prototype, "fullWidth");
5335
5342
  M([
5336
- V()
5337
- ], b.prototype, "_open");
5343
+ b()
5344
+ ], V.prototype, "_open");
5338
5345
  M([
5339
- V()
5340
- ], b.prototype, "_query");
5346
+ b()
5347
+ ], V.prototype, "_query");
5341
5348
  M([
5342
5349
  R(".trigger")
5343
- ], b.prototype, "_triggerEl");
5350
+ ], V.prototype, "_triggerEl");
5344
5351
  M([
5345
5352
  R(".panel")
5346
- ], b.prototype, "_panelEl");
5353
+ ], V.prototype, "_panelEl");
5347
5354
  M([
5348
5355
  R("anduin-input")
5349
- ], b.prototype, "_searchEl");
5350
- customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown", b);
5351
- var y7 = Object.defineProperty, o1 = (r, e, t, i) => {
5352
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
5353
- (n = r[l]) && (o = n(e, t, o) || o);
5354
- return o && y7(e, t, o), o;
5356
+ ], V.prototype, "_searchEl");
5357
+ customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown", V);
5358
+ var O7 = Object.defineProperty, o1 = (n, e, t, i) => {
5359
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
5360
+ (r = n[l]) && (o = r(e, t, o) || o);
5361
+ return o && O7(e, t, o), o;
5355
5362
  };
5356
- const P2 = "anduin-close", M7 = "anduin-after-close", Z7 = 300, u4 = 250, _7 = /* @__PURE__ */ new Map([
5363
+ const S2 = "anduin-close", I7 = "anduin-after-close", D7 = 300, Z4 = 250, T7 = /* @__PURE__ */ new Map([
5357
5364
  ["320", 320],
5358
5365
  ["360", 360],
5359
5366
  ["400", 400],
5360
5367
  ["640", 640]
5361
- ]), S5 = class S5 extends u {
5368
+ ]), j5 = class j5 extends p {
5362
5369
  constructor() {
5363
5370
  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) => {
5364
5371
  this._resizing = !0, this._startX = e.clientX, this._startWidth = this._width, e.currentTarget.setPointerCapture(e.pointerId), e.preventDefault();
@@ -5377,17 +5384,17 @@ const P2 = "anduin-close", M7 = "anduin-after-close", Z7 = 300, u4 = 250, _7 = /
5377
5384
  };
5378
5385
  }
5379
5386
  willUpdate(e) {
5380
- e.has("defaultWidth") && (this._width = _7.get(this.defaultWidth) ?? (parseInt(this.defaultWidth) || 320));
5387
+ e.has("defaultWidth") && (this._width = T7.get(this.defaultWidth) ?? (parseInt(this.defaultWidth) || 320));
5381
5388
  }
5382
5389
  updated(e) {
5383
5390
  e.has("open") && (this.open ? (this._leaving = !1, this.classList.add("is-shown")) : this.classList.contains("is-shown") && (this._leaving = !0, setTimeout(() => {
5384
5391
  this._leaving = !1, this.classList.remove("is-shown"), this.dispatchEvent(
5385
- new CustomEvent(M7, {
5392
+ new CustomEvent(I7, {
5386
5393
  bubbles: !0,
5387
5394
  composed: !0
5388
5395
  })
5389
5396
  );
5390
- }, u4)));
5397
+ }, Z4)));
5391
5398
  }
5392
5399
  _dispatch(e) {
5393
5400
  this.dispatchEvent(
@@ -5395,15 +5402,15 @@ const P2 = "anduin-close", M7 = "anduin-after-close", Z7 = 300, u4 = 250, _7 = /
5395
5402
  );
5396
5403
  }
5397
5404
  _onClose() {
5398
- this._dispatch(P2);
5405
+ this._dispatch(S2);
5399
5406
  }
5400
5407
  _onBackdropClick() {
5401
- this._dispatch(P2);
5408
+ this._dispatch(S2);
5402
5409
  }
5403
5410
  render() {
5404
5411
  const e = this._leaving;
5405
- return C`
5406
- ${this.allowInteractOutside ? c : C`<div class="backdrop" @click=${this._onBackdropClick}></div>`}
5412
+ return s`
5413
+ ${this.allowInteractOutside ? c : s`<div class="backdrop" @click=${this._onBackdropClick}></div>`}
5407
5414
  <div
5408
5415
  class=${`drawer${e ? " is-leaving" : ""}`}
5409
5416
  style="width: ${this._width}px"
@@ -5418,9 +5425,9 @@ const P2 = "anduin-close", M7 = "anduin-after-close", Z7 = 300, u4 = 250, _7 = /
5418
5425
  @pointerup=${this._onResizeEnd}
5419
5426
  @pointercancel=${this._onResizeEnd}
5420
5427
  ></div>
5421
- ${this.hideHeader ? c : C` <div class="header">
5428
+ ${this.hideHeader ? c : s` <div class="header">
5422
5429
  <slot name="header">
5423
- ${this.heading ? C`<span id="drawer-title" class="title"
5430
+ ${this.heading ? s`<span id="drawer-title" class="title"
5424
5431
  >${this.heading}</span
5425
5432
  >` : c}
5426
5433
  </slot>
@@ -5436,12 +5443,12 @@ const P2 = "anduin-close", M7 = "anduin-after-close", Z7 = 300, u4 = 250, _7 = /
5436
5443
  <div class="body">
5437
5444
  <slot></slot>
5438
5445
  </div>
5439
- ${this.hideFooter ? c : C`<div class="footer"><slot name="footer"></slot></div>`}
5446
+ ${this.hideFooter ? c : s`<div class="footer"><slot name="footer"></slot></div>`}
5440
5447
  </div>
5441
5448
  `;
5442
5449
  }
5443
5450
  };
5444
- S5.styles = g`
5451
+ j5.styles = h`
5445
5452
  :host {
5446
5453
  display: none;
5447
5454
  font-family: var(--font-sans);
@@ -5488,14 +5495,14 @@ S5.styles = g`
5488
5495
  box-shadow:
5489
5496
  -8px 0 24px 0 rgba(29, 41, 57, 0.12),
5490
5497
  -2px 0 8px 0 rgba(29, 41, 57, 0.08);
5491
- animation: drawerIn ${Z7}ms cubic-bezier(0.05, 0.7, 0.1, 1)
5498
+ animation: drawerIn ${D7}ms cubic-bezier(0.05, 0.7, 0.1, 1)
5492
5499
  forwards;
5493
5500
  min-width: 200px;
5494
5501
  max-width: 90vw;
5495
5502
  pointer-events: auto;
5496
5503
  }
5497
5504
  .drawer.is-leaving {
5498
- animation: drawerOut ${u4}ms
5505
+ animation: drawerOut ${Z4}ms
5499
5506
  cubic-bezier(0.3, 0, 0.8, 0.15) forwards;
5500
5507
  }
5501
5508
  @media (max-width: 640px) {
@@ -5559,7 +5566,7 @@ S5.styles = g`
5559
5566
  border-top: 1px solid var(--color-gray-3, #e4e7ec);
5560
5567
  }
5561
5568
  `;
5562
- let z = S5;
5569
+ let z = j5;
5563
5570
  o1([
5564
5571
  a({ type: Boolean, reflect: !0 })
5565
5572
  ], z.prototype, "open");
@@ -5579,17 +5586,17 @@ o1([
5579
5586
  a({ type: Boolean, attribute: "allow-interact-outside" })
5580
5587
  ], z.prototype, "allowInteractOutside");
5581
5588
  o1([
5582
- V()
5589
+ b()
5583
5590
  ], z.prototype, "_leaving");
5584
5591
  o1([
5585
- V()
5592
+ b()
5586
5593
  ], z.prototype, "_width");
5587
5594
  customElements.get("anduin-drawer") || customElements.define("anduin-drawer", z);
5588
- class x7 extends HTMLElement {
5595
+ class N7 extends HTMLElement {
5589
5596
  constructor() {
5590
5597
  super(...arguments), this._onClick = () => {
5591
5598
  this.dispatchEvent(
5592
- new CustomEvent(P2, { bubbles: !0, composed: !0 })
5599
+ new CustomEvent(S2, { bubbles: !0, composed: !0 })
5593
5600
  );
5594
5601
  };
5595
5602
  }
@@ -5600,13 +5607,13 @@ class x7 extends HTMLElement {
5600
5607
  this.removeEventListener("click", this._onClick);
5601
5608
  }
5602
5609
  }
5603
- customElements.get("anduin-drawer-close") || customElements.define("anduin-drawer-close", x7);
5604
- var w7 = Object.defineProperty, y = (r, e, t, i) => {
5605
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
5606
- (n = r[l]) && (o = n(e, t, o) || o);
5607
- return o && w7(e, t, o), o;
5610
+ customElements.get("anduin-drawer-close") || customElements.define("anduin-drawer-close", N7);
5611
+ var j7 = Object.defineProperty, y = (n, e, t, i) => {
5612
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
5613
+ (r = n[l]) && (o = r(e, t, o) || o);
5614
+ return o && j7(e, t, o), o;
5608
5615
  };
5609
- const V2 = "anduin-suggestion:change", R7 = "anduin-suggestion:select", k7 = "anduin-suggestion:clear", F5 = class F5 extends u {
5616
+ const V2 = "anduin-suggestion:change", U7 = "anduin-suggestion:select", G7 = "anduin-suggestion:clear", U5 = class U5 extends p {
5610
5617
  constructor() {
5611
5618
  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) => {
5612
5619
  var t;
@@ -5618,7 +5625,7 @@ const V2 = "anduin-suggestion:change", R7 = "anduin-suggestion:select", k7 = "an
5618
5625
  connectedCallback() {
5619
5626
  super.connectedCallback(), document.addEventListener("mousedown", this._onDocumentMouseDown), window.addEventListener("scroll", this._onScrollOrResize, { passive: !0, capture: !0 }), window.addEventListener("resize", this._onScrollOrResize);
5620
5627
  const e = this.closest("anduin-field");
5621
- e && e.addEventListener(Z1, (t) => {
5628
+ e && e.addEventListener(x1, (t) => {
5622
5629
  var o;
5623
5630
  const i = t;
5624
5631
  this.inputid && this.inputid === i.detail && ((o = this._inputEl) == null || o.focus());
@@ -5683,7 +5690,7 @@ const V2 = "anduin-suggestion:change", R7 = "anduin-suggestion:select", k7 = "an
5683
5690
  detail: this.value,
5684
5691
  bubbles: !0,
5685
5692
  composed: !0
5686
- })), this.dispatchEvent(new CustomEvent(R7, {
5693
+ })), this.dispatchEvent(new CustomEvent(U7, {
5687
5694
  detail: e,
5688
5695
  bubbles: !0,
5689
5696
  composed: !0
@@ -5691,7 +5698,7 @@ const V2 = "anduin-suggestion:change", R7 = "anduin-suggestion:select", k7 = "an
5691
5698
  }
5692
5699
  _onClear() {
5693
5700
  var e;
5694
- this.value = "", this._inputEl && (this._inputEl.value = ""), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(V2, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(k7, { bubbles: !0, composed: !0 })), (e = this._inputEl) == null || e.focus();
5701
+ this.value = "", this._inputEl && (this._inputEl.value = ""), this._activeIndex = -1, this.dispatchEvent(new CustomEvent(V2, { detail: "", bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent(G7, { bubbles: !0, composed: !0 })), (e = this._inputEl) == null || e.focus();
5695
5702
  }
5696
5703
  _updatePosition() {
5697
5704
  var i1;
@@ -5701,21 +5708,21 @@ const V2 = "anduin-suggestion:change", R7 = "anduin-suggestion:select", k7 = "an
5701
5708
  t.style.transform = "none";
5702
5709
  const l = t.getBoundingClientRect();
5703
5710
  t.style.transform = o;
5704
- const n = t.querySelector(".panel__inner");
5705
- n && (n.style.minWidth = `${i.width}px`);
5706
- const s = t.getBoundingClientRect(), d = 4, p = window.innerWidth, h = window.innerHeight, v = 8, H = h - i.bottom - d, f = i.top - d, G = s.height <= H || H >= f ? i.bottom + d : i.top - s.height - d;
5707
- let x = i.left;
5708
- x = Math.max(v, Math.min(x, p - s.width - v));
5709
- const I = Math.max(v, Math.min(G, h - s.height - v));
5710
- t.style.transform = `translate(${Math.round(x - l.left)}px, ${Math.round(I - l.top)}px)`;
5711
+ const r = t.querySelector(".panel__inner");
5712
+ r && (r.style.minWidth = `${i.width}px`);
5713
+ const C = t.getBoundingClientRect(), d = 4, u = window.innerWidth, g = window.innerHeight, v = 8, H = g - i.bottom - d, f = i.top - d, G = C.height <= H || H >= f ? i.bottom + d : i.top - C.height - d;
5714
+ let Z = i.left;
5715
+ Z = Math.max(v, Math.min(Z, u - C.width - v));
5716
+ const I = Math.max(v, Math.min(G, g - C.height - v));
5717
+ t.style.transform = `translate(${Math.round(Z - l.left)}px, ${Math.round(I - l.top)}px)`;
5711
5718
  }
5712
5719
  render() {
5713
- 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, l = this.clearable && !!this.value && !this.disabled && !this.readonly, n = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", s = this.size === "small" ? "10" : this.size === "large" ? "16" : "14", d = this._filteredSuggestions, p = this._open && (!this.hideWhenEmpty || d.length > 0);
5714
- return C`
5720
+ 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, l = this.clearable && !!this.value && !this.disabled && !this.readonly, r = this.size === "small" ? "12" : this.size === "large" ? "20" : "16", C = this.size === "small" ? "10" : this.size === "large" ? "16" : "14", d = this._filteredSuggestions, u = this._open && (!this.hideWhenEmpty || d.length > 0);
5721
+ return s`
5715
5722
  <div class="input-wrapper">
5716
- ${i ? C`
5723
+ ${i ? s`
5717
5724
  <span class="input__start">
5718
- <anduin-icon name=${this.startIcon} size=${n}></anduin-icon>
5725
+ <anduin-icon name=${this.startIcon} size=${r}></anduin-icon>
5719
5726
  </span>
5720
5727
  ` : c}
5721
5728
 
@@ -5740,24 +5747,24 @@ const V2 = "anduin-suggestion:change", R7 = "anduin-suggestion:select", k7 = "an
5740
5747
  @keydown=${this._onKeyDown}
5741
5748
  />
5742
5749
 
5743
- ${o ? C`
5750
+ ${o ? s`
5744
5751
  <span class="input__end">
5745
- ${l ? C`
5752
+ ${l ? s`
5746
5753
  <button class="input__clear" type="button" @click=${this._onClear} aria-label="Clear">
5747
- <anduin-icon name="cross" size=${s}></anduin-icon>
5754
+ <anduin-icon name="cross" size=${C}></anduin-icon>
5748
5755
  </button>
5749
5756
  ` : c}
5750
- ${this.endIcon ? C`
5751
- <anduin-icon name=${this.endIcon} size=${n}></anduin-icon>
5757
+ ${this.endIcon ? s`
5758
+ <anduin-icon name=${this.endIcon} size=${r}></anduin-icon>
5752
5759
  ` : c}
5753
5760
  </span>
5754
5761
  ` : c}
5755
5762
  </div>
5756
5763
 
5757
- <div class="panel${p ? " panel--open" : ""}" part="panel">
5764
+ <div class="panel${u ? " panel--open" : ""}" part="panel">
5758
5765
  <div class="panel__inner" role="listbox">
5759
5766
  <div class="options">
5760
- ${d.length ? d.map((h, v) => C`
5767
+ ${d.length ? d.map((g, v) => s`
5761
5768
  <div
5762
5769
  class="option${v === this._activeIndex ? " option--active" : ""}"
5763
5770
  role="option"
@@ -5766,20 +5773,20 @@ const V2 = "anduin-suggestion:change", R7 = "anduin-suggestion:select", k7 = "an
5766
5773
  this._activeIndex = v;
5767
5774
  }}
5768
5775
  @mousedown=${(H) => {
5769
- H.preventDefault(), this._selectSuggestion(h);
5776
+ H.preventDefault(), this._selectSuggestion(g);
5770
5777
  }}
5771
5778
  >
5772
- ${h.icon ? C`<anduin-icon name=${h.icon} size="16"></anduin-icon>` : c}
5773
- <span class="option__label">${h.label ?? h.value}</span>
5779
+ ${g.icon ? s`<anduin-icon name=${g.icon} size="16"></anduin-icon>` : c}
5780
+ <span class="option__label">${g.label ?? g.value}</span>
5774
5781
  </div>
5775
- `) : C`<div class="empty">${this.emptyText}</div>`}
5782
+ `) : s`<div class="empty">${this.emptyText}</div>`}
5776
5783
  </div>
5777
5784
  </div>
5778
5785
  </div>
5779
5786
  `;
5780
5787
  }
5781
5788
  };
5782
- F5.styles = g`
5789
+ U5.styles = h`
5783
5790
  :host { display: block; font-family: var(--font-sans); position: relative; }
5784
5791
 
5785
5792
  .input-wrapper { position: relative; display: flex; align-items: center; }
@@ -5892,7 +5899,7 @@ F5.styles = g`
5892
5899
  text-align: center;
5893
5900
  }
5894
5901
  `;
5895
- let m = F5;
5902
+ let m = U5;
5896
5903
  y([
5897
5904
  a()
5898
5905
  ], m.prototype, "value");
@@ -5936,10 +5943,10 @@ y([
5936
5943
  a({ attribute: "empty-text" })
5937
5944
  ], m.prototype, "emptyText");
5938
5945
  y([
5939
- V()
5946
+ b()
5940
5947
  ], m.prototype, "_open");
5941
5948
  y([
5942
- V()
5949
+ b()
5943
5950
  ], m.prototype, "_activeIndex");
5944
5951
  y([
5945
5952
  R("input")
@@ -5948,17 +5955,17 @@ y([
5948
5955
  R(".panel")
5949
5956
  ], m.prototype, "_panelEl");
5950
5957
  customElements.get("anduin-suggestion") || customElements.define("anduin-suggestion", m);
5951
- var $7 = Object.defineProperty, B = (r, e, t, i) => {
5952
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
5953
- (n = r[l]) && (o = n(e, t, o) || o);
5954
- return o && $7(e, t, o), o;
5958
+ var q7 = Object.defineProperty, B = (n, e, t, i) => {
5959
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
5960
+ (r = n[l]) && (o = r(e, t, o) || o);
5961
+ return o && q7(e, t, o), o;
5955
5962
  };
5956
- const E7 = "anduin-navigation:change", S2 = "anduin-navigation-item:item-click", O5 = class O5 extends u {
5963
+ const W7 = "anduin-navigation:change", F2 = "anduin-navigation-item:item-click", G5 = class G5 extends p {
5957
5964
  constructor() {
5958
5965
  super(...arguments), this.defaultValue = "", this.value = null, this.theme = "light", this.alignment = "left", this.internalValue = "", this.onItemClick = (e) => {
5959
5966
  e.stopPropagation();
5960
5967
  const i = e.detail;
5961
- i !== this.selection && (this.dispatchEvent(new CustomEvent(E7, {
5968
+ i !== this.selection && (this.dispatchEvent(new CustomEvent(W7, {
5962
5969
  detail: i,
5963
5970
  bubbles: !0,
5964
5971
  composed: !0
@@ -5972,10 +5979,10 @@ const E7 = "anduin-navigation:change", S2 = "anduin-navigation-item:item-click",
5972
5979
  return this.isControlled ? this.value : this.internalValue;
5973
5980
  }
5974
5981
  connectedCallback() {
5975
- super.connectedCallback(), this.hasUpdated || (this.internalValue = this.defaultValue), this.addEventListener(S2, this.onItemClick);
5982
+ super.connectedCallback(), this.hasUpdated || (this.internalValue = this.defaultValue), this.addEventListener(F2, this.onItemClick);
5976
5983
  }
5977
5984
  disconnectedCallback() {
5978
- super.disconnectedCallback(), this.removeEventListener(S2, this.onItemClick);
5985
+ super.disconnectedCallback(), this.removeEventListener(F2, this.onItemClick);
5979
5986
  }
5980
5987
  updated() {
5981
5988
  this.syncItems();
@@ -5989,14 +5996,14 @@ const E7 = "anduin-navigation:change", S2 = "anduin-navigation-item:item-click",
5989
5996
  t.selected = t.value === e, t.theme = this.theme;
5990
5997
  }
5991
5998
  render() {
5992
- return C`
5999
+ return s`
5993
6000
  <div class="navigation navigation--${this.alignment}" role="navigation" part="navigation">
5994
6001
  <slot @slotchange=${this.syncItems}></slot>
5995
6002
  </div>
5996
6003
  `;
5997
6004
  }
5998
6005
  };
5999
- O5.styles = g`
6006
+ G5.styles = h`
6000
6007
  :host {
6001
6008
  display: block;
6002
6009
  font-family: var(--font-sans);
@@ -6039,7 +6046,7 @@ O5.styles = g`
6039
6046
  .navigation--center { justify-content: center; }
6040
6047
  .navigation--right { justify-content: flex-end; }
6041
6048
  `;
6042
- let J = O5;
6049
+ let J = G5;
6043
6050
  B([
6044
6051
  a({ attribute: "default-value" })
6045
6052
  ], J.prototype, "defaultValue");
@@ -6053,9 +6060,9 @@ B([
6053
6060
  a()
6054
6061
  ], J.prototype, "alignment");
6055
6062
  B([
6056
- V()
6063
+ b()
6057
6064
  ], J.prototype, "internalValue");
6058
- const I5 = class I5 extends u {
6065
+ const q5 = class q5 extends p {
6059
6066
  constructor() {
6060
6067
  super(...arguments), this.value = "", this.startIcon = "", this.href = "", this.disabled = !1, this.selected = !1, this.theme = "light";
6061
6068
  }
@@ -6064,7 +6071,7 @@ const I5 = class I5 extends u {
6064
6071
  e.preventDefault();
6065
6072
  return;
6066
6073
  }
6067
- this.dispatchEvent(new CustomEvent(S2, {
6074
+ this.dispatchEvent(new CustomEvent(F2, {
6068
6075
  detail: this.value,
6069
6076
  bubbles: !0,
6070
6077
  composed: !0
@@ -6078,11 +6085,11 @@ const I5 = class I5 extends u {
6078
6085
  "nav-item",
6079
6086
  this.selected ? "nav-item--active" : "",
6080
6087
  this.disabled ? "nav-item--disabled" : ""
6081
- ].filter(Boolean).join(" "), t = C`
6082
- ${this.startIcon ? C`<span class="nav-item__icon"><anduin-icon name="${this.startIcon}" size="16"></anduin-icon></span>` : c}
6088
+ ].filter(Boolean).join(" "), t = s`
6089
+ ${this.startIcon ? s`<span class="nav-item__icon"><anduin-icon name="${this.startIcon}" size="16"></anduin-icon></span>` : c}
6083
6090
  <slot></slot>
6084
6091
  `;
6085
- return this.href ? C`
6092
+ return this.href ? s`
6086
6093
  <a
6087
6094
  class="${e}"
6088
6095
  href="${this.href}"
@@ -6090,7 +6097,7 @@ const I5 = class I5 extends u {
6090
6097
  aria-current="${this.selected ? "page" : "false"}"
6091
6098
  @click=${this.onClick}
6092
6099
  >${t}</a>
6093
- ` : C`
6100
+ ` : s`
6094
6101
  <button
6095
6102
  type="button"
6096
6103
  class="${e}"
@@ -6102,7 +6109,7 @@ const I5 = class I5 extends u {
6102
6109
  `;
6103
6110
  }
6104
6111
  };
6105
- I5.styles = g`
6112
+ q5.styles = h`
6106
6113
  :host { display: inline-block; font-family: var(--font-sans); }
6107
6114
  .nav-item {
6108
6115
  box-sizing: border-box;
@@ -6147,7 +6154,7 @@ I5.styles = g`
6147
6154
  }
6148
6155
  .nav-item__icon { display: flex; }
6149
6156
  `;
6150
- let j = I5;
6157
+ let j = q5;
6151
6158
  B([
6152
6159
  a()
6153
6160
  ], j.prototype, "value");
@@ -6168,19 +6175,19 @@ B([
6168
6175
  ], j.prototype, "theme");
6169
6176
  customElements.get("anduin-navigation") || customElements.define("anduin-navigation", J);
6170
6177
  customElements.get("anduin-navigation-item") || customElements.define("anduin-navigation-item", j);
6171
- var z7 = Object.defineProperty, g1 = (r, e, t, i) => {
6172
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
6173
- (n = r[l]) && (o = n(e, t, o) || o);
6174
- return o && z7(e, t, o), o;
6178
+ var Y7 = Object.defineProperty, g1 = (n, e, t, i) => {
6179
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
6180
+ (r = n[l]) && (o = r(e, t, o) || o);
6181
+ return o && Y7(e, t, o), o;
6175
6182
  };
6176
- const A7 = "anduin-resizable:resize", D4 = "anduin-resizable-panel", h4 = (r) => !!r && r.tagName.toLowerCase() === D4;
6177
- function g4(r, e, t) {
6178
- const i = (r || "").trim();
6183
+ const X7 = "anduin-resizable:resize", o3 = "anduin-resizable-panel", w4 = (n) => !!n && n.tagName.toLowerCase() === o3;
6184
+ function R4(n, e, t) {
6185
+ const i = (n || "").trim();
6179
6186
  if (!i) return t;
6180
6187
  const o = parseFloat(i);
6181
6188
  return Number.isNaN(o) ? t : i.endsWith("%") ? o / 100 * e : o;
6182
6189
  }
6183
- const D5 = class D5 extends u {
6190
+ const W5 = class W5 extends p {
6184
6191
  constructor() {
6185
6192
  super(...arguments), this.orientation = "horizontal";
6186
6193
  }
@@ -6196,7 +6203,7 @@ const D5 = class D5 extends u {
6196
6203
  return this.isVertical ? e.height : e.width;
6197
6204
  }
6198
6205
  get panels() {
6199
- return Array.from(this.querySelectorAll(`:scope > ${D4}`));
6206
+ return Array.from(this.querySelectorAll(`:scope > ${o3}`));
6200
6207
  }
6201
6208
  updated() {
6202
6209
  for (const e of this.querySelectorAll(":scope > anduin-resizable-handle"))
@@ -6214,14 +6221,14 @@ const D5 = class D5 extends u {
6214
6221
  t.forEach((o, l) => o.setGrow(i[l] / e * 100));
6215
6222
  }
6216
6223
  render() {
6217
- return C`
6224
+ return s`
6218
6225
  <div class="panel-group ${this.isVertical ? "panel-group--vertical" : ""}" part="panel-group">
6219
6226
  <slot></slot>
6220
6227
  </div>
6221
6228
  `;
6222
6229
  }
6223
6230
  };
6224
- D5.styles = g`
6231
+ W5.styles = h`
6225
6232
  :host { display: block; width: 100%; height: 100%; font-family: var(--font-sans); }
6226
6233
  .panel-group {
6227
6234
  display: flex; flex-direction: row;
@@ -6229,11 +6236,11 @@ D5.styles = g`
6229
6236
  }
6230
6237
  .panel-group--vertical { flex-direction: column; }
6231
6238
  `;
6232
- let C2 = D5;
6239
+ let d2 = W5;
6233
6240
  g1([
6234
6241
  a({ reflect: !0 })
6235
- ], C2.prototype, "orientation");
6236
- const T5 = class T5 extends u {
6242
+ ], d2.prototype, "orientation");
6243
+ const Y5 = class Y5 extends p {
6237
6244
  constructor() {
6238
6245
  super(...arguments), this.defaultSize = "", this.minSize = "", this.maxSize = "", this.applied = !1;
6239
6246
  }
@@ -6256,20 +6263,20 @@ const T5 = class T5 extends u {
6256
6263
  return e ? t.height : t.width;
6257
6264
  }
6258
6265
  minPx(e) {
6259
- return g4(this.minSize, e, 0);
6266
+ return R4(this.minSize, e, 0);
6260
6267
  }
6261
6268
  maxPx(e) {
6262
- return g4(this.maxSize, e, e);
6269
+ return R4(this.maxSize, e, e);
6263
6270
  }
6264
6271
  render() {
6265
- return C`<div class="panel" part="panel"><slot></slot></div>`;
6272
+ return s`<div class="panel" part="panel"><slot></slot></div>`;
6266
6273
  }
6267
6274
  };
6268
- T5.styles = g`
6275
+ Y5.styles = h`
6269
6276
  :host { display: block; flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; font-family: var(--font-sans); }
6270
6277
  .panel { width: 100%; height: 100%; overflow: hidden; }
6271
6278
  `;
6272
- let L1 = T5;
6279
+ let L1 = Y5;
6273
6280
  g1([
6274
6281
  a({ attribute: "default-size" })
6275
6282
  ], L1.prototype, "defaultSize");
@@ -6279,7 +6286,7 @@ g1([
6279
6286
  g1([
6280
6287
  a({ attribute: "max-size" })
6281
6288
  ], L1.prototype, "maxSize");
6282
- const N5 = class N5 extends u {
6289
+ const X5 = class X5 extends p {
6283
6290
  constructor() {
6284
6291
  super(...arguments), this.withHandle = !1, this.groupVertical = !1, this.dragging = !1, this.group = null, this.startPos = 0, this.startPrevPx = 0, this.combinedPx = 0, this.combinedGrow = 0, this.activePointerId = null, this.onPointerDown = (e) => {
6285
6292
  const t = this.closest("anduin-resizable-panel-group"), i = this.prevPanel, o = this.nextPanel;
@@ -6303,13 +6310,13 @@ const N5 = class N5 extends u {
6303
6310
  else if (i && e.key === "ArrowDown") o = 1;
6304
6311
  else if (i && e.key === "ArrowUp") o = -1;
6305
6312
  else return;
6306
- const l = this.prevPanel, n = this.nextPanel;
6307
- if (!l || !n) return;
6313
+ const l = this.prevPanel, r = this.nextPanel;
6314
+ if (!l || !r) return;
6308
6315
  e.preventDefault(), this.group = t, t.normalizeToGrow();
6309
- const s = l.axisSize(i);
6310
- this.combinedPx = s + n.axisSize(i), this.combinedGrow = (parseFloat(l.style.flexGrow) || 0) + (parseFloat(n.style.flexGrow) || 0);
6316
+ const C = l.axisSize(i);
6317
+ this.combinedPx = C + r.axisSize(i), this.combinedGrow = (parseFloat(l.style.flexGrow) || 0) + (parseFloat(r.style.flexGrow) || 0);
6311
6318
  const d = Math.max(t.axisSize * 0.02, 8);
6312
- this.resizeTo(s + o * d), this.emitResize();
6319
+ this.resizeTo(C + o * d), this.emitResize();
6313
6320
  };
6314
6321
  }
6315
6322
  connectedCallback() {
@@ -6325,10 +6332,10 @@ const N5 = class N5 extends u {
6325
6332
  this.groupVertical = e, this.setAttribute("aria-orientation", e ? "horizontal" : "vertical");
6326
6333
  }
6327
6334
  get prevPanel() {
6328
- return h4(this.previousElementSibling) ? this.previousElementSibling : null;
6335
+ return w4(this.previousElementSibling) ? this.previousElementSibling : null;
6329
6336
  }
6330
6337
  get nextPanel() {
6331
- return h4(this.nextElementSibling) ? this.nextElementSibling : null;
6338
+ return w4(this.nextElementSibling) ? this.nextElementSibling : null;
6332
6339
  }
6333
6340
  endDrag() {
6334
6341
  if (!(!this.dragging && this.activePointerId === null)) {
@@ -6347,8 +6354,8 @@ const N5 = class N5 extends u {
6347
6354
  resizeTo(e) {
6348
6355
  const t = this.group, i = this.prevPanel, o = this.nextPanel;
6349
6356
  if (!t || !i || !o || this.combinedPx <= 0) return;
6350
- const l = t.axisSize, n = Math.max(i.minPx(l), this.combinedPx - o.maxPx(l), 0), s = Math.min(i.maxPx(l), this.combinedPx - o.minPx(l), this.combinedPx), d = Math.max(n, Math.min(s, e)), p = this.combinedGrow * (d / this.combinedPx);
6351
- i.setGrow(p), o.setGrow(this.combinedGrow - p);
6357
+ const l = t.axisSize, r = Math.max(i.minPx(l), this.combinedPx - o.maxPx(l), 0), C = Math.min(i.maxPx(l), this.combinedPx - o.minPx(l), this.combinedPx), d = Math.max(r, Math.min(C, e)), u = this.combinedGrow * (d / this.combinedPx);
6358
+ i.setGrow(u), o.setGrow(this.combinedGrow - u);
6352
6359
  }
6353
6360
  emitResize() {
6354
6361
  const e = this.group, t = this.prevPanel, i = this.nextPanel;
@@ -6356,7 +6363,7 @@ const N5 = class N5 extends u {
6356
6363
  const o = e.axisSize;
6357
6364
  if (o <= 0) return;
6358
6365
  const l = e.isVertical;
6359
- this.dispatchEvent(new CustomEvent(A7, {
6366
+ this.dispatchEvent(new CustomEvent(X7, {
6360
6367
  detail: { sizes: [t.axisSize(l) / o * 100, i.axisSize(l) / o * 100] },
6361
6368
  bubbles: !0,
6362
6369
  composed: !0
@@ -6368,14 +6375,14 @@ const N5 = class N5 extends u {
6368
6375
  this.groupVertical ? "handle--vertical" : "",
6369
6376
  this.dragging ? "handle--dragging" : ""
6370
6377
  ].filter(Boolean).join(" ");
6371
- return C`
6378
+ return s`
6372
6379
  <div class="${e}" part="handle">
6373
- ${this.withHandle ? C`<div class="handle__grip" part="grip"><anduin-icon name="ellipsisVertical" size="12" aria-label="Drag"></anduin-icon></div>` : c}
6380
+ ${this.withHandle ? s`<div class="handle__grip" part="grip"><anduin-icon name="ellipsisVertical" size="12" aria-label="Drag"></anduin-icon></div>` : c}
6374
6381
  </div>
6375
6382
  `;
6376
6383
  }
6377
6384
  };
6378
- N5.styles = g`
6385
+ X5.styles = h`
6379
6386
  :host { display: block; flex: 0 0 auto; position: relative; z-index: 1; outline: none; font-family: var(--font-sans); }
6380
6387
  .handle {
6381
6388
  position: relative; display: flex; align-items: center; justify-content: center;
@@ -6396,30 +6403,30 @@ N5.styles = g`
6396
6403
  .handle:hover .handle__grip, .handle--dragging .handle__grip, :host(:focus-visible) .handle__grip { opacity: 1; }
6397
6404
  .handle--vertical .handle__grip { transform: rotate(90deg); }
6398
6405
  `;
6399
- let y1 = N5;
6406
+ let y1 = X5;
6400
6407
  g1([
6401
6408
  a({ type: Boolean, attribute: "with-handle" })
6402
6409
  ], y1.prototype, "withHandle");
6403
6410
  g1([
6404
- V()
6411
+ b()
6405
6412
  ], y1.prototype, "groupVertical");
6406
6413
  g1([
6407
- V()
6414
+ b()
6408
6415
  ], y1.prototype, "dragging");
6409
- customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group", C2);
6416
+ customElements.get("anduin-resizable-panel-group") || customElements.define("anduin-resizable-panel-group", d2);
6410
6417
  customElements.get("anduin-resizable-panel") || customElements.define("anduin-resizable-panel", L1);
6411
6418
  customElements.get("anduin-resizable-handle") || customElements.define("anduin-resizable-handle", y1);
6412
- var B7 = Object.defineProperty, _1 = (r, e, t, i) => {
6413
- for (var o = void 0, l = r.length - 1, n; l >= 0; l--)
6414
- (n = r[l]) && (o = n(e, t, o) || o);
6415
- return o && B7(e, t, o), o;
6419
+ var K7 = Object.defineProperty, _1 = (n, e, t, i) => {
6420
+ for (var o = void 0, l = n.length - 1, r; l >= 0; l--)
6421
+ (r = n[l]) && (o = r(e, t, o) || o);
6422
+ return o && K7(e, t, o), o;
6416
6423
  };
6417
- const P7 = "anduin-pagination:change", F2 = "anduin-pagination:jump";
6418
- function w1(r, e) {
6419
- const t = Math.max(e - r + 1, 0);
6420
- return Array.from({ length: t }, (i, o) => r + o);
6424
+ const J7 = "anduin-pagination:change", O2 = "anduin-pagination:jump";
6425
+ function w1(n, e) {
6426
+ const t = Math.max(e - n + 1, 0);
6427
+ return Array.from({ length: t }, (i, o) => n + o);
6421
6428
  }
6422
- const j5 = class j5 extends u {
6429
+ const K5 = class K5 extends p {
6423
6430
  constructor() {
6424
6431
  super(...arguments), this.numberOfPages = 0, this.defaultValue = 1, this.value = null, this.internalValue = 1, this.indicatorReady = !1, this.onJump = (e) => {
6425
6432
  e.stopPropagation(), this.goTo(e.detail === "first" ? 1 : this.count);
@@ -6436,31 +6443,31 @@ const j5 = class j5 extends u {
6436
6443
  return Math.min(Math.max(Math.floor(e || 1), 1), Math.max(this.count, 1));
6437
6444
  }
6438
6445
  connectedCallback() {
6439
- super.connectedCallback(), this.hasUpdated || (this.internalValue = this.defaultValue || 1), this.addEventListener(F2, this.onJump);
6446
+ super.connectedCallback(), this.hasUpdated || (this.internalValue = this.defaultValue || 1), this.addEventListener(O2, this.onJump);
6440
6447
  }
6441
6448
  disconnectedCallback() {
6442
- super.disconnectedCallback(), this.removeEventListener(F2, this.onJump);
6449
+ super.disconnectedCallback(), this.removeEventListener(O2, this.onJump);
6443
6450
  }
6444
6451
  /** MUI-style windowing: boundaryCount = 1, siblingCount = 1. */
6445
6452
  buildItems() {
6446
- const e = this.count, t = this.selection, i = 1, o = 1, l = w1(1, Math.min(i, e)), n = w1(Math.max(e - i + 1, i + 1), e), s = Math.max(
6453
+ const e = this.count, t = this.selection, i = 1, o = 1, l = w1(1, Math.min(i, e)), r = w1(Math.max(e - i + 1, i + 1), e), C = Math.max(
6447
6454
  Math.min(t - o, e - i - o * 2 - 1),
6448
6455
  i + 2
6449
6456
  ), d = Math.min(
6450
6457
  Math.max(t + o, i + o * 2 + 2),
6451
- n.length > 0 ? n[0] - 2 : e - 1
6458
+ r.length > 0 ? r[0] - 2 : e - 1
6452
6459
  );
6453
6460
  return [
6454
6461
  ...l,
6455
- ...s > i + 2 ? ["start-ellipsis"] : i + 1 < e - i ? [i + 1] : [],
6456
- ...w1(s, d),
6462
+ ...C > i + 2 ? ["start-ellipsis"] : i + 1 < e - i ? [i + 1] : [],
6463
+ ...w1(C, d),
6457
6464
  ...d < e - i - 1 ? ["end-ellipsis"] : e - i > i ? [e - i] : [],
6458
- ...n
6459
- ].map((h) => h === "start-ellipsis" ? { type: "ellipsis", pages: w1(i + 1, s - 1) } : h === "end-ellipsis" ? { type: "ellipsis", pages: w1(d + 1, e - i) } : { type: "page", page: h });
6465
+ ...r
6466
+ ].map((g) => g === "start-ellipsis" ? { type: "ellipsis", pages: w1(i + 1, C - 1) } : g === "end-ellipsis" ? { type: "ellipsis", pages: w1(d + 1, e - i) } : { type: "page", page: g });
6460
6467
  }
6461
6468
  goTo(e) {
6462
6469
  const t = this.count, i = Math.min(Math.max(Math.floor(e), 1), t);
6463
- i !== this.selection && (this.isControlled || (this.internalValue = i), this.dispatchEvent(new CustomEvent(P7, {
6470
+ i !== this.selection && (this.isControlled || (this.internalValue = i), this.dispatchEvent(new CustomEvent(J7, {
6464
6471
  detail: i,
6465
6472
  bubbles: !0,
6466
6473
  composed: !0
@@ -6493,7 +6500,7 @@ const j5 = class j5 extends u {
6493
6500
  const e = this.count;
6494
6501
  if (e < 2) return c;
6495
6502
  const t = this.selection, i = this.buildItems();
6496
- return C`
6503
+ return s`
6497
6504
  <div class="pagination">
6498
6505
  <div class="pagination__indicator"></div>
6499
6506
  <slot name="start" @slotchange=${this.onSlotChange}></slot>
@@ -6521,7 +6528,7 @@ const j5 = class j5 extends u {
6521
6528
  renderItem(e, t) {
6522
6529
  if (e.type === "page") {
6523
6530
  const l = e.page === t;
6524
- return C`
6531
+ return s`
6525
6532
  <button
6526
6533
  class="pagination__button ${l ? "pagination__button--active" : ""}"
6527
6534
  aria-current=${l ? "page" : c}
@@ -6531,7 +6538,7 @@ const j5 = class j5 extends u {
6531
6538
  `;
6532
6539
  }
6533
6540
  const { pages: i } = e, o = i.length > 1 ? `Pages ${i[0]} to ${i[i.length - 1]}` : `Page ${i[0]}`;
6534
- return C`
6541
+ return s`
6535
6542
  <anduin-menu placement="bottom">
6536
6543
  <anduin-button
6537
6544
  slot="trigger"
@@ -6541,7 +6548,7 @@ const j5 = class j5 extends u {
6541
6548
  label=${o}
6542
6549
  ></anduin-button>
6543
6550
  <div class="pagination__ellipsis-list">
6544
- ${i.map((l) => C`
6551
+ ${i.map((l) => s`
6545
6552
  <anduin-menu-item @click=${() => this.goTo(l)}>${l}</anduin-menu-item>
6546
6553
  `)}
6547
6554
  </div>
@@ -6549,7 +6556,7 @@ const j5 = class j5 extends u {
6549
6556
  `;
6550
6557
  }
6551
6558
  };
6552
- j5.styles = g`
6559
+ K5.styles = h`
6553
6560
  :host { display: inline-block; font-family: var(--font-sans); }
6554
6561
  :host(:not([number-of-pages])),
6555
6562
  :host([number-of-pages='0']),
@@ -6612,7 +6619,7 @@ j5.styles = g`
6612
6619
  align-items: stretch;
6613
6620
  }
6614
6621
  `;
6615
- let Q = j5;
6622
+ let Q = K5;
6616
6623
  _1([
6617
6624
  a({ type: Number, attribute: "number-of-pages", reflect: !0 })
6618
6625
  ], Q.prototype, "numberOfPages");
@@ -6623,15 +6630,15 @@ _1([
6623
6630
  a({ type: Number })
6624
6631
  ], Q.prototype, "value");
6625
6632
  _1([
6626
- V()
6633
+ b()
6627
6634
  ], Q.prototype, "internalValue");
6628
6635
  _1([
6629
6636
  R(".pagination__indicator")
6630
6637
  ], Q.prototype, "indicatorEl");
6631
- const U5 = class U5 extends u {
6638
+ const J5 = class J5 extends p {
6632
6639
  constructor() {
6633
6640
  super(...arguments), this.disabled = !1, this.icon = "", this.label = "", this.target = "first", this.onClick = () => {
6634
- this.disabled || this.dispatchEvent(new CustomEvent(F2, {
6641
+ this.disabled || this.dispatchEvent(new CustomEvent(O2, {
6635
6642
  detail: this.target,
6636
6643
  bubbles: !0,
6637
6644
  composed: !0
@@ -6642,7 +6649,7 @@ const U5 = class U5 extends u {
6642
6649
  super.connectedCallback(), this.getAttribute("slot") || this.setAttribute("slot", this.target === "first" ? "start" : "end");
6643
6650
  }
6644
6651
  render() {
6645
- return C`
6652
+ return s`
6646
6653
  <anduin-button
6647
6654
  appearance="plain"
6648
6655
  size="medium"
@@ -6654,127 +6661,379 @@ const U5 = class U5 extends u {
6654
6661
  `;
6655
6662
  }
6656
6663
  };
6657
- U5.styles = g`
6664
+ J5.styles = h`
6658
6665
  :host { display: inline-flex; }
6659
6666
  `;
6660
- let W1 = U5;
6667
+ let Y1 = J5;
6661
6668
  _1([
6662
6669
  a({ type: Boolean })
6663
- ], W1.prototype, "disabled");
6664
- class S7 extends W1 {
6670
+ ], Y1.prototype, "disabled");
6671
+ class Q7 extends Y1 {
6665
6672
  constructor() {
6666
6673
  super(...arguments), this.icon = "chevronVerticalLeft", this.label = "Go to first page", this.target = "first";
6667
6674
  }
6668
6675
  }
6669
- class F7 extends W1 {
6676
+ class e0 extends Y1 {
6670
6677
  constructor() {
6671
6678
  super(...arguments), this.icon = "chevronVerticalRight", this.label = "Go to last page", this.target = "last";
6672
6679
  }
6673
6680
  }
6674
6681
  customElements.get("anduin-pagination") || customElements.define("anduin-pagination", Q);
6675
- customElements.get("anduin-pagination-first-page") || customElements.define("anduin-pagination-first-page", S7);
6676
- customElements.get("anduin-pagination-last-page") || customElements.define("anduin-pagination-last-page", F7);
6682
+ customElements.get("anduin-pagination-first-page") || customElements.define("anduin-pagination-first-page", Q7);
6683
+ customElements.get("anduin-pagination-last-page") || customElements.define("anduin-pagination-last-page", e0);
6684
+ const Q5 = class Q5 extends p {
6685
+ render() {
6686
+ return s`<div class="timeline"><slot></slot></div>`;
6687
+ }
6688
+ };
6689
+ Q5.styles = h`
6690
+ :host {
6691
+ display: block;
6692
+ }
6693
+
6694
+ /* Flex column with no gap — each child (item or group) manages its own
6695
+ * vertical spacing via padding-bottom on the content area. This lets the
6696
+ * per-item rail column stretch continuously through the spacing, producing
6697
+ * a seamless vertical connector line with no gaps. */
6698
+ .timeline {
6699
+ display: flex;
6700
+ flex-direction: column;
6701
+ }
6702
+ `;
6703
+ let I2 = Q5;
6704
+ const e4 = class e4 extends p {
6705
+ render() {
6706
+ return s`
6707
+ <div class="item">
6708
+ <div class="item__rail"><div class="item__dot"></div></div>
6709
+ <div class="item__content"><slot></slot></div>
6710
+ </div>
6711
+ `;
6712
+ }
6713
+ };
6714
+ e4.styles = h`
6715
+ /* Host padding-left: 29px positions the rail so the dot center
6716
+ * (29 + 7 = 36px from left edge) aligns with the timeline axis. */
6717
+ :host {
6718
+ display: block;
6719
+ padding-left: 29px;
6720
+ }
6721
+
6722
+ /* Grid layout: 14px rail column + 1fr content column.
6723
+ * column-gap: 16px separates dot from content text. */
6724
+ .item {
6725
+ display: grid;
6726
+ grid-template-columns: 14px 1fr;
6727
+ column-gap: 16px;
6728
+ }
6729
+
6730
+ /* Rail column — a flex column that stretches the full height of the grid
6731
+ * row. The dot sits in the middle (vertically), and ::before / ::after
6732
+ * pseudo-elements draw the top and bottom line segments. The rail stretches
6733
+ * through the content's padding-bottom, so the line is seamless between
6734
+ * consecutive items. */
6735
+ .item__rail {
6736
+ display: flex;
6737
+ flex-direction: column;
6738
+ align-items: center;
6739
+ }
6740
+
6741
+ /* Top line segment — extends from the top of the rail down to the dot.
6742
+ * min-height: 2px matches the dot's visual offset from the first line of
6743
+ * text. flex-shrink: 0 prevents collapse when content is short. */
6744
+ .item__rail::before {
6745
+ content: "";
6746
+ display: block;
6747
+ width: 1px;
6748
+ min-height: 2px;
6749
+ flex-shrink: 0;
6750
+ background-color: var(--color-gray-4);
6751
+ }
6752
+
6753
+ /* Bottom line segment — extends from below the dot to the bottom of the
6754
+ * rail. flex: 1 makes it fill all remaining vertical space, including the
6755
+ * content area's padding-bottom spacing. */
6756
+ .item__rail::after {
6757
+ content: "";
6758
+ display: block;
6759
+ width: 1px;
6760
+ flex: 1;
6761
+ background-color: var(--color-gray-4);
6762
+ }
6763
+
6764
+ /* The dot indicator. A 10px filled circle with a 2px transparent border
6765
+ * creating a 14px total box that visually separates the dot from the line
6766
+ * segments above and below. */
6767
+ .item__dot {
6768
+ flex-shrink: 0;
6769
+ box-sizing: border-box;
6770
+ width: 14px;
6771
+ height: 14px;
6772
+ padding: 2px;
6773
+ border-radius: 9999px;
6774
+ background-color: var(--color-gray-4);
6775
+ background-clip: content-box;
6776
+ }
6777
+
6778
+ /* Content area. padding-bottom: 24px provides inter-item spacing. Because
6779
+ * the grid row stretches to include this padding, the rail's ::after line
6780
+ * segment extends through it seamlessly. min-width: 0 prevents long text
6781
+ * from overflowing. */
6782
+ .item__content {
6783
+ min-width: 0;
6784
+ display: flex;
6785
+ flex-direction: column;
6786
+ gap: 4px;
6787
+ padding-bottom: 24px;
6788
+ }
6789
+
6790
+ /* Hide the top line for the first item in a flat (ungrouped) timeline.
6791
+ * :first-child targets the first anduin-timeline-item slotted directly into
6792
+ * anduin-timeline. Inside a group the label precedes the items, so the
6793
+ * first item keeps its top line to connect up to the label. */
6794
+ :host(:first-child) .item__rail::before {
6795
+ background-color: transparent;
6796
+ }
6797
+
6798
+ /* Remove bottom spacing for the last item. The ::after line segment
6799
+ * naturally shrinks when there's no extra space below the dot. */
6800
+ :host(:last-child) .item__content {
6801
+ padding-bottom: 0;
6802
+ }
6803
+ `;
6804
+ let D2 = e4;
6805
+ const t4 = class t4 extends p {
6806
+ render() {
6807
+ return s`<div class="date"><slot></slot></div>`;
6808
+ }
6809
+ };
6810
+ t4.styles = h`
6811
+ :host {
6812
+ display: block;
6813
+ }
6814
+
6815
+ /* Muted date text — 12px/16px matches the design system's textSmall token. */
6816
+ .date {
6817
+ font-size: 12px;
6818
+ line-height: 16px;
6819
+ color: var(--color-gray-7);
6820
+ }
6821
+ `;
6822
+ let T2 = t4;
6823
+ const o4 = class o4 extends p {
6824
+ render() {
6825
+ return s`<div class="title"><slot></slot></div>`;
6826
+ }
6827
+ };
6828
+ o4.styles = h`
6829
+ /* Block-level element inheriting the parent's font size and color. */
6830
+ :host {
6831
+ display: block;
6832
+ }
6833
+ `;
6834
+ let N2 = o4;
6835
+ const i4 = class i4 extends p {
6836
+ render() {
6837
+ return s`<div class="group__items"><slot></slot></div>`;
6838
+ }
6839
+ };
6840
+ i4.styles = h`
6841
+ :host {
6842
+ display: block;
6843
+ }
6844
+
6845
+ /* First group hides the label's top line via a custom property that
6846
+ * inherits across the shadow boundary into anduin-timeline-label. */
6847
+ :host(:first-child) {
6848
+ --_timeline-label-top-line: transparent;
6849
+ }
6850
+
6851
+ /* Items container below the label. No gap or padding needed — each
6852
+ * anduin-timeline-item manages its own spacing via padding-bottom on its
6853
+ * content area, and the per-item rail draws a continuous line. */
6854
+ .group__items {
6855
+ display: flex;
6856
+ flex-direction: column;
6857
+ }
6858
+ `;
6859
+ let j2 = i4;
6860
+ const l4 = class l4 extends p {
6861
+ render() {
6862
+ return s`<div class="label-center"><div class="label-pill"><slot></slot></div></div>`;
6863
+ }
6864
+ };
6865
+ l4.styles = h`
6866
+ /* Sticky positioning keeps the label visible while scrolling. The gray-0
6867
+ * background covers content behind it during scroll. z-index: 1 ensures the
6868
+ * label sits above item dots and rails. */
6869
+ :host {
6870
+ display: block;
6871
+ position: sticky;
6872
+ top: 0;
6873
+ background-color: var(--color-gray-0);
6874
+ z-index: 1;
6875
+ }
6876
+
6877
+ /* Flex column centered at the timeline axis (36px from left edge).
6878
+ * margin-left: 36px positions the left edge at the axis, then
6879
+ * transform: translateX(-50%) shifts it left by half its width, centering
6880
+ * the pill on the axis. width: fit-content keeps the container tight around
6881
+ * the pill. */
6882
+ .label-center {
6883
+ display: flex;
6884
+ flex-direction: column;
6885
+ align-items: center;
6886
+ width: fit-content;
6887
+ margin-left: 36px;
6888
+ transform: translateX(-50%);
6889
+ }
6890
+
6891
+ /* Top line segment — connects from the previous group's last item down to
6892
+ * the pill. Reads --_timeline-label-top-line from the parent group; the
6893
+ * first group sets it to transparent to hide this line. */
6894
+ .label-center::before {
6895
+ content: "";
6896
+ width: 1px;
6897
+ height: 12px;
6898
+ background-color: var(--_timeline-label-top-line, var(--color-gray-4));
6899
+ }
6900
+
6901
+ /* Bottom line segment — connects from the pill down to the first item in
6902
+ * this group. Provides spacing below the pill. */
6903
+ .label-center::after {
6904
+ content: "";
6905
+ width: 1px;
6906
+ height: 20px;
6907
+ background-color: var(--color-gray-4);
6908
+ }
6909
+
6910
+ /* Pill badge styling. Inline-flex keeps the pill width proportional to
6911
+ * text. Rounded corners (9999px) create a full pill shape. */
6912
+ .label-pill {
6913
+ display: inline-flex;
6914
+ align-items: center;
6915
+ padding: 4px 20px;
6916
+ background-color: var(--color-gray-2);
6917
+ border-radius: 9999px;
6918
+ font-size: 12px;
6919
+ line-height: 16px;
6920
+ font-weight: 600;
6921
+ }
6922
+ `;
6923
+ let U2 = l4;
6924
+ customElements.get("anduin-timeline") || customElements.define("anduin-timeline", I2);
6925
+ customElements.get("anduin-timeline-item") || customElements.define("anduin-timeline-item", D2);
6926
+ customElements.get("anduin-timeline-date") || customElements.define("anduin-timeline-date", T2);
6927
+ customElements.get("anduin-timeline-title") || customElements.define("anduin-timeline-title", N2);
6928
+ customElements.get("anduin-timeline-group") || customElements.define("anduin-timeline-group", j2);
6929
+ customElements.get("anduin-timeline-label") || customElements.define("anduin-timeline-label", U2);
6677
6930
  export {
6678
- j1 as $,
6931
+ U2 as $,
6679
6932
  O as A,
6680
- S7 as B,
6681
- F7 as C,
6933
+ Q7 as B,
6934
+ e0 as C,
6682
6935
  F as D,
6683
- $2 as E,
6684
- I1 as F,
6936
+ E2 as E,
6937
+ D1 as F,
6685
6938
  N as G,
6686
- b1 as H,
6939
+ V1 as H,
6687
6940
  y1 as I,
6688
6941
  L1 as J,
6689
- C2 as K,
6942
+ d2 as K,
6690
6943
  D as L,
6691
- P1 as M,
6692
- B1 as N,
6944
+ S1 as M,
6945
+ P1 as N,
6693
6946
  m as O,
6694
- q1 as P,
6695
- N1 as Q,
6947
+ W1 as P,
6948
+ j1 as Q,
6696
6949
  T as R,
6697
6950
  H1 as S,
6698
- T1 as T,
6951
+ N1 as T,
6699
6952
  m1 as U,
6700
- M2 as V,
6953
+ x2 as V,
6701
6954
  E as W,
6702
- K as X,
6703
- G1 as Y,
6704
- P as Z,
6705
- S as _,
6706
- i2 as a,
6707
- w2 as a0,
6708
- x2 as a1,
6709
- s2 as a2,
6710
- R2 as a3,
6711
- _4 as a4,
6712
- R3 as a5,
6713
- M7 as a6,
6714
- P2 as a7,
6715
- p4 as a8,
6716
- $4 as a9,
6717
- Z2 as aA,
6718
- j3 as aB,
6719
- N3 as aC,
6720
- P4 as aD,
6721
- S4 as aE,
6722
- U2 as aF,
6723
- A4 as aG,
6724
- B4 as aH,
6725
- F4 as aI,
6726
- K3 as aJ,
6727
- x4 as aK,
6728
- g7 as aL,
6729
- T7 as aM,
6730
- Z1 as aa,
6731
- u7 as ab,
6732
- r4 as ac,
6733
- $3 as ad,
6734
- E2 as ae,
6735
- t7 as af,
6736
- R1 as ag,
6737
- E7 as ah,
6738
- S2 as ai,
6739
- P7 as aj,
6740
- F2 as ak,
6741
- k2 as al,
6742
- z2 as am,
6743
- r7 as an,
6744
- A7 as ao,
6745
- V2 as ap,
6746
- k7 as aq,
6747
- R7 as ar,
6748
- b7 as as,
6749
- B3 as at,
6750
- E4 as au,
6751
- c2 as av,
6752
- S3 as aw,
6753
- z3 as ax,
6754
- D3 as ay,
6755
- T3 as az,
6756
- F1 as b,
6955
+ I2 as X,
6956
+ T2 as Y,
6957
+ j2 as Z,
6958
+ D2 as _,
6959
+ l2 as a,
6960
+ N2 as a0,
6961
+ K as a1,
6962
+ q1 as a2,
6963
+ P as a3,
6964
+ S as a4,
6965
+ U1 as a5,
6966
+ R2 as a6,
6967
+ w2 as a7,
6968
+ C2 as a8,
6969
+ k2 as a9,
6970
+ G4 as aA,
6971
+ p2 as aB,
6972
+ J3 as aC,
6973
+ W3 as aD,
6974
+ o7 as aE,
6975
+ i7 as aF,
6976
+ _2 as aG,
6977
+ n7 as aH,
6978
+ l7 as aI,
6979
+ X4 as aJ,
6980
+ K4 as aK,
6981
+ J2 as aL,
6982
+ W4 as aM,
6983
+ Y4 as aN,
6984
+ J4 as aO,
6985
+ p7 as aP,
6986
+ D4 as aQ,
6987
+ $7 as aR,
6988
+ l0 as aS,
6989
+ I4 as aa,
6990
+ j3 as ab,
6991
+ I7 as ac,
6992
+ S2 as ad,
6993
+ _4 as ae,
6994
+ U4 as af,
6995
+ x1 as ag,
6996
+ R7 as ah,
6997
+ H4 as ai,
6998
+ G3 as aj,
6999
+ z2 as ak,
7000
+ v7 as al,
7001
+ R1 as am,
7002
+ W7 as an,
7003
+ F2 as ao,
7004
+ J7 as ap,
7005
+ O2 as aq,
7006
+ $2 as ar,
7007
+ A2 as as,
7008
+ V7 as at,
7009
+ X7 as au,
7010
+ V2 as av,
7011
+ G7 as aw,
7012
+ U7 as ax,
7013
+ S7 as ay,
7014
+ X3 as az,
7015
+ O1 as b,
6757
7016
  L as c,
6758
- l2 as d,
7017
+ n2 as d,
6759
7018
  X as e,
6760
- O1 as f,
7019
+ I1 as f,
6761
7020
  r2 as g,
6762
7021
  z as h,
6763
- x7 as i,
6764
- b as j,
6765
- a2 as k,
6766
- b2 as l,
6767
- L2 as m,
6768
- y2 as n,
6769
- D1 as o,
6770
- U1 as p,
6771
- S1 as q,
7022
+ N7 as i,
7023
+ V as j,
7024
+ s2 as k,
7025
+ L2 as l,
7026
+ y2 as m,
7027
+ M2 as n,
7028
+ T1 as o,
7029
+ G1 as p,
7030
+ F1 as q,
6772
7031
  w as r,
6773
- n2 as s,
7032
+ a2 as s,
6774
7033
  C1 as t,
6775
- V1 as u,
6776
- o7 as v,
6777
- i7 as w,
7034
+ b1 as u,
7035
+ H7 as v,
7036
+ m7 as w,
6778
7037
  J as x,
6779
7038
  j as y,
6780
7039
  Q as z