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