@ewc-lib/ewc-singleselect 1.0.4-alpha → 1.0.6-alpha
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/main.cjs.js +31 -20
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +122 -107
- package/dist/main.es.js.map +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -9,7 +9,7 @@ function v(s, t, e, o) {
|
|
|
9
9
|
* Copyright 2019 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
11
|
*/
|
|
12
|
-
const
|
|
12
|
+
const F = globalThis, Q = F.ShadowRoot && (F.ShadyCSS === void 0 || F.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, $t = Symbol(), ht = /* @__PURE__ */ new WeakMap();
|
|
13
13
|
let Ot = class {
|
|
14
14
|
constructor(t, e, o) {
|
|
15
15
|
if (this._$cssResult$ = !0, o !== $t) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -31,7 +31,7 @@ let Ot = class {
|
|
|
31
31
|
const Ct = (s) => new Ot(typeof s == "string" ? s : s + "", void 0, $t), Rt = (s, t) => {
|
|
32
32
|
if (Q) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
33
33
|
else for (const e of t) {
|
|
34
|
-
const o = document.createElement("style"), i =
|
|
34
|
+
const o = document.createElement("style"), i = F.litNonce;
|
|
35
35
|
i !== void 0 && o.setAttribute("nonce", i), o.textContent = e.cssText, s.appendChild(o);
|
|
36
36
|
}
|
|
37
37
|
}, pt = Q ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
|
@@ -44,10 +44,10 @@ const Ct = (s) => new Ot(typeof s == "string" ? s : s + "", void 0, $t), Rt = (s
|
|
|
44
44
|
* Copyright 2017 Google LLC
|
|
45
45
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
46
46
|
*/
|
|
47
|
-
const { is:
|
|
47
|
+
const { is: zt, defineProperty: Pt, getOwnPropertyDescriptor: Ut, getOwnPropertyNames: It, getOwnPropertySymbols: Tt, getPrototypeOf: Mt } = Object, E = globalThis, ut = E.trustedTypes, Ht = ut ? ut.emptyScript : "", J = E.reactiveElementPolyfillSupport, H = (s, t) => s, W = { toAttribute(s, t) {
|
|
48
48
|
switch (t) {
|
|
49
49
|
case Boolean:
|
|
50
|
-
s = s ?
|
|
50
|
+
s = s ? Ht : null;
|
|
51
51
|
break;
|
|
52
52
|
case Object:
|
|
53
53
|
case Array:
|
|
@@ -72,8 +72,8 @@ const { is: Pt, defineProperty: zt, getOwnPropertyDescriptor: Ut, getOwnProperty
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
return e;
|
|
75
|
-
} }, tt = (s, t) => !
|
|
76
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
75
|
+
} }, tt = (s, t) => !zt(s, t), wt = { attribute: !0, type: String, converter: W, reflect: !1, hasChanged: tt };
|
|
76
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), E.litPropertyMetadata ?? (E.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
77
77
|
class U extends HTMLElement {
|
|
78
78
|
static addInitializer(t) {
|
|
79
79
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
@@ -84,7 +84,7 @@ class U extends HTMLElement {
|
|
|
84
84
|
static createProperty(t, e = wt) {
|
|
85
85
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
86
86
|
const o = Symbol(), i = this.getPropertyDescriptor(t, o, e);
|
|
87
|
-
i !== void 0 &&
|
|
87
|
+
i !== void 0 && Pt(this.prototype, t, i);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
static getPropertyDescriptor(t, e, o) {
|
|
@@ -104,13 +104,13 @@ class U extends HTMLElement {
|
|
|
104
104
|
return this.elementProperties.get(t) ?? wt;
|
|
105
105
|
}
|
|
106
106
|
static _$Ei() {
|
|
107
|
-
if (this.hasOwnProperty(
|
|
108
|
-
const t =
|
|
107
|
+
if (this.hasOwnProperty(H("elementProperties"))) return;
|
|
108
|
+
const t = Mt(this);
|
|
109
109
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
110
110
|
}
|
|
111
111
|
static finalize() {
|
|
112
|
-
if (this.hasOwnProperty(
|
|
113
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
112
|
+
if (this.hasOwnProperty(H("finalized"))) return;
|
|
113
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(H("properties"))) {
|
|
114
114
|
const e = this.properties, o = [...It(e), ...Tt(e)];
|
|
115
115
|
for (const i of o) this.createProperty(i, e[i]);
|
|
116
116
|
}
|
|
@@ -185,7 +185,7 @@ class U extends HTMLElement {
|
|
|
185
185
|
var r;
|
|
186
186
|
const o = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, o);
|
|
187
187
|
if (i !== void 0 && o.reflect === !0) {
|
|
188
|
-
const n = (((r = o.converter) == null ? void 0 : r.toAttribute) !== void 0 ? o.converter :
|
|
188
|
+
const n = (((r = o.converter) == null ? void 0 : r.toAttribute) !== void 0 ? o.converter : W).toAttribute(e, o.type);
|
|
189
189
|
this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
@@ -193,7 +193,7 @@ class U extends HTMLElement {
|
|
|
193
193
|
var r;
|
|
194
194
|
const o = this.constructor, i = o._$Eh.get(t);
|
|
195
195
|
if (i !== void 0 && this._$Em !== i) {
|
|
196
|
-
const n = o.getPropertyOptions(i), c = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((r = n.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? n.converter :
|
|
196
|
+
const n = o.getPropertyOptions(i), c = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((r = n.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? n.converter : W;
|
|
197
197
|
this._$Em = i, this[i] = c.fromAttribute(e, n.type), this._$Em = null;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
@@ -272,30 +272,30 @@ class U extends HTMLElement {
|
|
|
272
272
|
firstUpdated(t) {
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
|
-
U.elementStyles = [], U.shadowRootOptions = { mode: "open" }, U[
|
|
275
|
+
U.elementStyles = [], U.shadowRootOptions = { mode: "open" }, U[H("elementProperties")] = /* @__PURE__ */ new Map(), U[H("finalized")] = /* @__PURE__ */ new Map(), J == null || J({ ReactiveElement: U }), (E.reactiveElementVersions ?? (E.reactiveElementVersions = [])).push("2.0.4");
|
|
276
276
|
/**
|
|
277
277
|
* @license
|
|
278
278
|
* Copyright 2017 Google LLC
|
|
279
279
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
280
280
|
*/
|
|
281
|
-
const
|
|
282
|
-
\f\r]`,
|
|
283
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), mt = /'/g, vt = /"/g,
|
|
284
|
-
function
|
|
281
|
+
const D = globalThis, V = D.trustedTypes, ft = V ? V.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, kt = "$lit$", S = `lit$${Math.random().toFixed(9).slice(2)}$`, _t = "?" + S, Dt = `<${_t}>`, P = document, j = () => P.createComment(""), L = (s) => s === null || typeof s != "object" && typeof s != "function", et = Array.isArray, Nt = (s) => et(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", Y = `[
|
|
282
|
+
\f\r]`, M = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, gt = /-->/g, bt = />/g, R = RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^
|
|
283
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), mt = /'/g, vt = /"/g, At = /^(?:script|style|textarea|title)$/i, jt = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), A = jt(1), I = Symbol.for("lit-noChange"), f = Symbol.for("lit-nothing"), yt = /* @__PURE__ */ new WeakMap(), z = P.createTreeWalker(P, 129);
|
|
284
|
+
function St(s, t) {
|
|
285
285
|
if (!et(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
286
286
|
return ft !== void 0 ? ft.createHTML(t) : t;
|
|
287
287
|
}
|
|
288
288
|
const Lt = (s, t) => {
|
|
289
289
|
const e = s.length - 1, o = [];
|
|
290
|
-
let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n =
|
|
290
|
+
let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = M;
|
|
291
291
|
for (let c = 0; c < e; c++) {
|
|
292
292
|
const a = s[c];
|
|
293
293
|
let d, u, h = -1, y = 0;
|
|
294
|
-
for (; y < a.length && (n.lastIndex = y, u = n.exec(a), u !== null); ) y = n.lastIndex, n ===
|
|
295
|
-
const x = n ===
|
|
296
|
-
r += n ===
|
|
294
|
+
for (; y < a.length && (n.lastIndex = y, u = n.exec(a), u !== null); ) y = n.lastIndex, n === M ? u[1] === "!--" ? n = gt : u[1] !== void 0 ? n = bt : u[2] !== void 0 ? (At.test(u[2]) && (i = RegExp("</" + u[2], "g")), n = R) : u[3] !== void 0 && (n = R) : n === R ? u[0] === ">" ? (n = i ?? M, h = -1) : u[1] === void 0 ? h = -2 : (h = n.lastIndex - u[2].length, d = u[1], n = u[3] === void 0 ? R : u[3] === '"' ? vt : mt) : n === vt || n === mt ? n = R : n === gt || n === bt ? n = M : (n = R, i = void 0);
|
|
295
|
+
const x = n === R && s[c + 1].startsWith("/>") ? " " : "";
|
|
296
|
+
r += n === M ? a + Dt : h >= 0 ? (o.push(d), a.slice(0, h) + kt + a.slice(h) + S + x) : a + S + (h === -2 ? c : x);
|
|
297
297
|
}
|
|
298
|
-
return [
|
|
298
|
+
return [St(s, r + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), o];
|
|
299
299
|
};
|
|
300
300
|
class q {
|
|
301
301
|
constructor({ strings: t, _$litType$: e }, o) {
|
|
@@ -303,25 +303,25 @@ class q {
|
|
|
303
303
|
this.parts = [];
|
|
304
304
|
let r = 0, n = 0;
|
|
305
305
|
const c = t.length - 1, a = this.parts, [d, u] = Lt(t, e);
|
|
306
|
-
if (this.el = q.createElement(d, o),
|
|
306
|
+
if (this.el = q.createElement(d, o), z.currentNode = this.el.content, e === 2 || e === 3) {
|
|
307
307
|
const h = this.el.content.firstChild;
|
|
308
308
|
h.replaceWith(...h.childNodes);
|
|
309
309
|
}
|
|
310
|
-
for (; (i =
|
|
310
|
+
for (; (i = z.nextNode()) !== null && a.length < c; ) {
|
|
311
311
|
if (i.nodeType === 1) {
|
|
312
|
-
if (i.hasAttributes()) for (const h of i.getAttributeNames()) if (h.endsWith(
|
|
313
|
-
const y = u[n++], x = i.getAttribute(h).split(S),
|
|
314
|
-
a.push({ type: 1, index: r, name:
|
|
312
|
+
if (i.hasAttributes()) for (const h of i.getAttributeNames()) if (h.endsWith(kt)) {
|
|
313
|
+
const y = u[n++], x = i.getAttribute(h).split(S), C = /([.?@])?(.*)/.exec(y);
|
|
314
|
+
a.push({ type: 1, index: r, name: C[2], strings: x, ctor: C[1] === "." ? Bt : C[1] === "?" ? Ft : C[1] === "@" ? Wt : K }), i.removeAttribute(h);
|
|
315
315
|
} else h.startsWith(S) && (a.push({ type: 6, index: r }), i.removeAttribute(h));
|
|
316
|
-
if (
|
|
316
|
+
if (At.test(i.tagName)) {
|
|
317
317
|
const h = i.textContent.split(S), y = h.length - 1;
|
|
318
318
|
if (y > 0) {
|
|
319
319
|
i.textContent = V ? V.emptyScript : "";
|
|
320
|
-
for (let x = 0; x < y; x++) i.append(h[x],
|
|
321
|
-
i.append(h[y],
|
|
320
|
+
for (let x = 0; x < y; x++) i.append(h[x], j()), z.nextNode(), a.push({ type: 2, index: ++r });
|
|
321
|
+
i.append(h[y], j());
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
-
} else if (i.nodeType === 8) if (i.data ===
|
|
324
|
+
} else if (i.nodeType === 8) if (i.data === _t) a.push({ type: 2, index: r });
|
|
325
325
|
else {
|
|
326
326
|
let h = -1;
|
|
327
327
|
for (; (h = i.data.indexOf(S, h + 1)) !== -1; ) a.push({ type: 7, index: r }), h += S.length - 1;
|
|
@@ -330,7 +330,7 @@ class q {
|
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
static createElement(t, e) {
|
|
333
|
-
const o =
|
|
333
|
+
const o = P.createElement("template");
|
|
334
334
|
return o.innerHTML = t, o;
|
|
335
335
|
}
|
|
336
336
|
}
|
|
@@ -352,17 +352,17 @@ class qt {
|
|
|
352
352
|
return this._$AM._$AU;
|
|
353
353
|
}
|
|
354
354
|
u(t) {
|
|
355
|
-
const { el: { content: e }, parts: o } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ??
|
|
356
|
-
|
|
357
|
-
let r =
|
|
355
|
+
const { el: { content: e }, parts: o } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? P).importNode(e, !0);
|
|
356
|
+
z.currentNode = i;
|
|
357
|
+
let r = z.nextNode(), n = 0, c = 0, a = o[0];
|
|
358
358
|
for (; a !== void 0; ) {
|
|
359
359
|
if (n === a.index) {
|
|
360
360
|
let d;
|
|
361
361
|
a.type === 2 ? d = new B(r, r.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(r, a.name, a.strings, this, t) : a.type === 6 && (d = new Vt(r, this, t)), this._$AV.push(d), a = o[++c];
|
|
362
362
|
}
|
|
363
|
-
n !== (a == null ? void 0 : a.index) && (r =
|
|
363
|
+
n !== (a == null ? void 0 : a.index) && (r = z.nextNode(), n++);
|
|
364
364
|
}
|
|
365
|
-
return
|
|
365
|
+
return z.currentNode = P, i;
|
|
366
366
|
}
|
|
367
367
|
p(t) {
|
|
368
368
|
let e = 0;
|
|
@@ -389,7 +389,7 @@ class B {
|
|
|
389
389
|
return this._$AB;
|
|
390
390
|
}
|
|
391
391
|
_$AI(t, e = this) {
|
|
392
|
-
t = T(this, t, e), L(t) ? t === f || t == null || t === "" ? (this._$AH !== f && this._$AR(), this._$AH = f) : t !== this._$AH && t !== I && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) :
|
|
392
|
+
t = T(this, t, e), L(t) ? t === f || t == null || t === "" ? (this._$AH !== f && this._$AR(), this._$AH = f) : t !== this._$AH && t !== I && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Nt(t) ? this.k(t) : this._(t);
|
|
393
393
|
}
|
|
394
394
|
O(t) {
|
|
395
395
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -398,11 +398,11 @@ class B {
|
|
|
398
398
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
399
399
|
}
|
|
400
400
|
_(t) {
|
|
401
|
-
this._$AH !== f && L(this._$AH) ? this._$AA.nextSibling.data = t : this.T(
|
|
401
|
+
this._$AH !== f && L(this._$AH) ? this._$AA.nextSibling.data = t : this.T(P.createTextNode(t)), this._$AH = t;
|
|
402
402
|
}
|
|
403
403
|
$(t) {
|
|
404
404
|
var r;
|
|
405
|
-
const { values: e, _$litType$: o } = t, i = typeof o == "number" ? this._$AC(t) : (o.el === void 0 && (o.el = q.createElement(
|
|
405
|
+
const { values: e, _$litType$: o } = t, i = typeof o == "number" ? this._$AC(t) : (o.el === void 0 && (o.el = q.createElement(St(o.h, o.h[0]), this.options)), o);
|
|
406
406
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === i) this._$AH.p(e);
|
|
407
407
|
else {
|
|
408
408
|
const n = new qt(i, this), c = n.u(this.options);
|
|
@@ -417,7 +417,7 @@ class B {
|
|
|
417
417
|
et(this._$AH) || (this._$AH = [], this._$AR());
|
|
418
418
|
const e = this._$AH;
|
|
419
419
|
let o, i = 0;
|
|
420
|
-
for (const r of t) i === e.length ? e.push(o = new B(this.O(
|
|
420
|
+
for (const r of t) i === e.length ? e.push(o = new B(this.O(j()), this.O(j()), this, this.options)) : o = e[i], o._$AI(r), i++;
|
|
421
421
|
i < e.length && (this._$AR(o && o._$AB.nextSibling, i), e.length = i);
|
|
422
422
|
}
|
|
423
423
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -465,7 +465,7 @@ class Bt extends K {
|
|
|
465
465
|
this.element[this.name] = t === f ? void 0 : t;
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
class
|
|
468
|
+
class Ft extends K {
|
|
469
469
|
constructor() {
|
|
470
470
|
super(...arguments), this.type = 4;
|
|
471
471
|
}
|
|
@@ -473,7 +473,7 @@ class Wt extends K {
|
|
|
473
473
|
this.element.toggleAttribute(this.name, !!t && t !== f);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
class
|
|
476
|
+
class Wt extends K {
|
|
477
477
|
constructor(t, e, o, i, r) {
|
|
478
478
|
super(t, e, o, i, r), this.type = 5;
|
|
479
479
|
}
|
|
@@ -498,14 +498,14 @@ class Vt {
|
|
|
498
498
|
T(this, t);
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
const G =
|
|
502
|
-
G == null || G(q, B), (
|
|
501
|
+
const G = D.litHtmlPolyfillSupport;
|
|
502
|
+
G == null || G(q, B), (D.litHtmlVersions ?? (D.litHtmlVersions = [])).push("3.2.0");
|
|
503
503
|
const Kt = (s, t, e) => {
|
|
504
504
|
const o = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
505
505
|
let i = o._$litPart$;
|
|
506
506
|
if (i === void 0) {
|
|
507
507
|
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
508
|
-
o._$litPart$ = i = new B(t.insertBefore(
|
|
508
|
+
o._$litPart$ = i = new B(t.insertBefore(j(), r), r, void 0, e ?? {});
|
|
509
509
|
}
|
|
510
510
|
return i._$AI(s), i;
|
|
511
511
|
};
|
|
@@ -514,7 +514,7 @@ const Kt = (s, t, e) => {
|
|
|
514
514
|
* Copyright 2017 Google LLC
|
|
515
515
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
516
516
|
*/
|
|
517
|
-
class
|
|
517
|
+
class N extends U {
|
|
518
518
|
constructor() {
|
|
519
519
|
super(...arguments), this.renderOptions = { host: this }, this.o = void 0;
|
|
520
520
|
}
|
|
@@ -540,9 +540,9 @@ class j extends U {
|
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
var xt;
|
|
543
|
-
|
|
543
|
+
N._$litElement$ = !0, N.finalized = !0, (xt = globalThis.litElementHydrateSupport) == null || xt.call(globalThis, { LitElement: N });
|
|
544
544
|
const Z = globalThis.litElementPolyfillSupport;
|
|
545
|
-
Z == null || Z({ LitElement:
|
|
545
|
+
Z == null || Z({ LitElement: N });
|
|
546
546
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.0");
|
|
547
547
|
/**
|
|
548
548
|
* @license
|
|
@@ -559,7 +559,7 @@ const Jt = (s) => (t, e) => {
|
|
|
559
559
|
* Copyright 2017 Google LLC
|
|
560
560
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
561
561
|
*/
|
|
562
|
-
const Yt = { attribute: !0, type: String, converter:
|
|
562
|
+
const Yt = { attribute: !0, type: String, converter: W, reflect: !1, hasChanged: tt }, Gt = (s = Yt, t, e) => {
|
|
563
563
|
const { kind: o, metadata: i } = e;
|
|
564
564
|
let r = globalThis.litPropertyMetadata.get(i);
|
|
565
565
|
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(e.name, s), o === "accessor") {
|
|
@@ -580,7 +580,7 @@ const Yt = { attribute: !0, type: String, converter: F, reflect: !1, hasChanged:
|
|
|
580
580
|
}
|
|
581
581
|
throw Error("Unsupported decorator location: " + o);
|
|
582
582
|
};
|
|
583
|
-
function
|
|
583
|
+
function k(s) {
|
|
584
584
|
return (t, e) => typeof e == "object" ? Gt(s, t, e) : ((o, i, r) => {
|
|
585
585
|
const n = i.hasOwnProperty(r);
|
|
586
586
|
return i.constructor.createProperty(r, n ? { ...o, wrapped: !0 } : o), n ? Object.getOwnPropertyDescriptor(i, r) : void 0;
|
|
@@ -603,9 +603,9 @@ function Xt(s) {
|
|
|
603
603
|
return await this.updateComplete, ((o = this.renderRoot) == null ? void 0 : o.querySelector(s)) ?? null;
|
|
604
604
|
} });
|
|
605
605
|
}
|
|
606
|
-
const Qt = `*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.m-2{margin:.5rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.ml-2{margin-left:.5rem}.mt-1{margin-top:.25rem}.box-border{box-sizing:border-box}.block{display:block}.inline{display:inline}.flex{display:flex}.hidden{display:none}.size-5{width:1.25rem;height:1.25rem}.h-10\\.5{height:2.625rem}.h-11{height:2.75rem}.h-full{height:100%}.max-h-48{max-height:12rem}.w-11{width:2.75rem}.w-\\[93\\%\\]{width:93%}.w-full{width:100%}.min-w-11{min-width:2.75rem}.max-w-\\[93\\%\\]{max-width:93%}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.scroll-py-1{scroll-padding-top:.25rem;scroll-padding-bottom:.25rem}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-center{justify-items:center}.overflow-y-auto{overflow-y:auto}.scroll-smooth{scroll-behavior:smooth}.rounded{border-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-br-sm{border-bottom-right-radius:.125rem}.rounded-tr-sm{border-top-right-radius:.125rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-ewc-msBorder{--tw-border-opacity: 1;border-color:rgb(81 85 96 / var(--tw-border-opacity))}.border-ewc-msBorderInvert{--tw-border-opacity: 1;border-color:rgb(168 170 175 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.bg-ewc-availableHover,.bg-ewc-blue{--tw-bg-opacity: 1;background-color:rgb(14 71 203 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.fill-white{fill:#fff}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-2\\.75{padding:.6875}.pl-2{padding-left:.5rem}.pr-12{padding-right:3rem}.text-left{text-align:left}.align-middle{vertical-align:middle}.text-ewc-available,.text-ewc-msText{--tw-text-opacity: 1;color:rgb(23 26 34 / var(--tw-text-opacity))}.text-ewc-notAvailable{--tw-text-opacity: 1;color:rgb(81 85 96 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ewc-focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(14 71 203 / var(--tw-ring-opacity))}.ewc-focus:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ewc-focus-invert{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.ewc-focus-invert:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ewc-hover:hover,.ewc-hover-invert:hover{opacity:.8}.hover\\:bg-ewc-availableHover:hover{--tw-bg-opacity: 1;background-color:rgb(14 71 203 / var(--tw-bg-opacity))}.hover\\:bg-ewc-notAvailableHover:hover{--tw-bg-opacity: 1;background-color:rgb(125 128 136 / var(--tw-bg-opacity))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\\:bg-ewc-availableHover:focus{--tw-bg-opacity: 1;background-color:rgb(14 71 203 / var(--tw-bg-opacity))}.focus\\:bg-ewc-notAvailableHover:focus{--tw-bg-opacity: 1;background-color:rgb(125 128 136 / var(--tw-bg-opacity))}.focus\\:text-white:focus{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}`;
|
|
607
|
-
var X,
|
|
608
|
-
let m = (
|
|
606
|
+
const Qt = `*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.m-2{margin:.5rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.box-border{box-sizing:border-box}.block{display:block}.inline{display:inline}.flex{display:flex}.hidden{display:none}.size-5{width:1.25rem;height:1.25rem}.h-10\\.5{height:2.625rem}.h-11{height:2.75rem}.h-5{height:1.25rem}.h-full{height:100%}.max-h-48{max-height:12rem}.w-11{width:2.75rem}.w-5{width:1.25rem}.w-\\[93\\%\\]{width:93%}.w-full{width:100%}.min-w-11{min-width:2.75rem}.max-w-\\[93\\%\\]{max-width:93%}.shrink-0{flex-shrink:0}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.scroll-py-1{scroll-padding-top:.25rem;scroll-padding-bottom:.25rem}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-center{justify-items:center}.overflow-y-auto{overflow-y:auto}.scroll-smooth{scroll-behavior:smooth}.rounded{border-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-br-sm{border-bottom-right-radius:.125rem}.rounded-tr-sm{border-top-right-radius:.125rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-ewc-msBorder{--tw-border-opacity: 1;border-color:rgb(81 85 96 / var(--tw-border-opacity))}.border-ewc-msBorderInvert{--tw-border-opacity: 1;border-color:rgb(168 170 175 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.bg-ewc-availableHover,.bg-ewc-blue{--tw-bg-opacity: 1;background-color:rgb(14 71 203 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.fill-current{fill:currentColor}.fill-white{fill:#fff}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-2\\.75{padding:.6875}.pl-2{padding-left:.5rem}.pr-12{padding-right:3rem}.text-left{text-align:left}.align-middle{vertical-align:middle}.text-ewc-available,.text-ewc-msText{--tw-text-opacity: 1;color:rgb(23 26 34 / var(--tw-text-opacity))}.text-ewc-notAvailable{--tw-text-opacity: 1;color:rgb(81 85 96 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ewc-focus:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgb(14 71 203 / var(--tw-ring-opacity))}.ewc-focus-invert:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.ewc-hover:hover,.ewc-hover-invert:hover{opacity:.8}.hover\\:bg-\\[\\#CFDAF5\\]:hover{--tw-bg-opacity: 1;background-color:rgb(207 218 245 / var(--tw-bg-opacity))}.hover\\:bg-ewc-notAvailableHover:hover{--tw-bg-opacity: 1;background-color:rgb(125 128 136 / var(--tw-bg-opacity))}.hover\\:text-black:hover{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\\:bg-\\[\\#CFDAF5\\]:focus{--tw-bg-opacity: 1;background-color:rgb(207 218 245 / var(--tw-bg-opacity))}.focus\\:bg-ewc-notAvailableHover:focus{--tw-bg-opacity: 1;background-color:rgb(125 128 136 / var(--tw-bg-opacity))}.focus\\:text-black:focus{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.focus\\:text-white:focus{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}`;
|
|
607
|
+
var X, O;
|
|
608
|
+
let m = (O = class extends N {
|
|
609
609
|
get invertColors() {
|
|
610
610
|
return this._invertColors;
|
|
611
611
|
}
|
|
@@ -727,13 +727,13 @@ let m = (E = class extends j {
|
|
|
727
727
|
})[0] || null;
|
|
728
728
|
}
|
|
729
729
|
handleKeyDown(t, e) {
|
|
730
|
-
var r, n, c, a, d, u, h, y, x,
|
|
730
|
+
var r, n, c, a, d, u, h, y, x, C, ot, it, rt, st, nt, at, ct, lt, dt;
|
|
731
731
|
if (!this.shadowRoot)
|
|
732
732
|
return;
|
|
733
733
|
const o = Array.from(this.shadowRoot.querySelectorAll('div[role="option"]')).filter((p) => {
|
|
734
|
-
const l = p.closest('div[role="option"]'),
|
|
735
|
-
if (
|
|
736
|
-
const w = this.options.flat().find((
|
|
734
|
+
const l = p.closest('div[role="option"]'), b = l == null ? void 0 : l.getAttribute("data-option-code");
|
|
735
|
+
if (b) {
|
|
736
|
+
const w = this.options.flat().find((g) => g.code === b);
|
|
737
737
|
return (w == null ? void 0 : w.status) === "active";
|
|
738
738
|
}
|
|
739
739
|
return !1;
|
|
@@ -763,7 +763,7 @@ let m = (E = class extends j {
|
|
|
763
763
|
case "ArrowUp":
|
|
764
764
|
if (t.preventDefault(), this.isExpanded) {
|
|
765
765
|
const p = (y = this.shadowRoot) == null ? void 0 : y.querySelector("#searchInput"), l = (x = this.shadowRoot) == null ? void 0 : x.activeElement;
|
|
766
|
-
(l == null ? void 0 : l.id) === "searchInput" ? (i = o.length - 1, (
|
|
766
|
+
(l == null ? void 0 : l.id) === "searchInput" ? (i = o.length - 1, (C = o[i]) == null || C.focus()) : i === 0 ? p ? p.focus() : (i = o.length - 1, (ot = o[i]) == null || ot.focus()) : i === -1 ? (i = o.length - 1, (it = o[i]) == null || it.focus()) : (i--, (rt = o[i]) == null || rt.focus());
|
|
767
767
|
}
|
|
768
768
|
break;
|
|
769
769
|
case "ArrowRight":
|
|
@@ -771,8 +771,8 @@ let m = (E = class extends j {
|
|
|
771
771
|
if (t.preventDefault(), this.isExpanded) {
|
|
772
772
|
const l = ((st = this.shadowRoot) == null ? void 0 : st.activeElement).closest('div[role="option"]');
|
|
773
773
|
if (l && t.key === "ArrowRight") {
|
|
774
|
-
const
|
|
775
|
-
|
|
774
|
+
const b = l.querySelector(".favouriteOptionBtn");
|
|
775
|
+
b && b.focus();
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
778
|
break;
|
|
@@ -781,9 +781,9 @@ let m = (E = class extends j {
|
|
|
781
781
|
if (t.preventDefault(), this.isExpanded) {
|
|
782
782
|
let l = ((at = this.shadowRoot) == null ? void 0 : at.activeElement).closest('div[role="option"]');
|
|
783
783
|
if (l != null && l.hasAttribute("data-option-code")) {
|
|
784
|
-
const
|
|
785
|
-
if (
|
|
786
|
-
const w = this.options.flat().find((
|
|
784
|
+
const b = l.getAttribute("data-option-code");
|
|
785
|
+
if (b) {
|
|
786
|
+
const w = this.options.flat().find((g) => g.code === b);
|
|
787
787
|
(w == null ? void 0 : w.status) === "active" && this.toggleSelection(w);
|
|
788
788
|
}
|
|
789
789
|
}
|
|
@@ -803,10 +803,10 @@ let m = (E = class extends j {
|
|
|
803
803
|
const p = (ct = this.shadowRoot) == null ? void 0 : ct.activeElement;
|
|
804
804
|
if ((p == null ? void 0 : p.id) === "searchInput")
|
|
805
805
|
if (t.preventDefault(), t.shiftKey) {
|
|
806
|
-
const l = Array.from(this.shadowRoot.querySelectorAll('div[role="option"]')).filter((
|
|
807
|
-
const w =
|
|
808
|
-
if (
|
|
809
|
-
const $ = this.options.flat().find((
|
|
806
|
+
const l = Array.from(this.shadowRoot.querySelectorAll('div[role="option"]')).filter((b) => {
|
|
807
|
+
const w = b.closest('div[role="option"]'), g = w == null ? void 0 : w.getAttribute("data-option-code");
|
|
808
|
+
if (g) {
|
|
809
|
+
const $ = this.options.flat().find((_) => _.code === g);
|
|
810
810
|
return ($ == null ? void 0 : $.status) === "active";
|
|
811
811
|
}
|
|
812
812
|
return !1;
|
|
@@ -820,31 +820,35 @@ let m = (E = class extends j {
|
|
|
820
820
|
l && l.focus();
|
|
821
821
|
}
|
|
822
822
|
else {
|
|
823
|
-
const l = Array.from(this.shadowRoot.querySelectorAll('div[role="option"]')).filter((
|
|
824
|
-
const $ =
|
|
825
|
-
return (
|
|
826
|
-
}),
|
|
823
|
+
const l = Array.from(this.shadowRoot.querySelectorAll('div[role="option"]')).filter((g) => {
|
|
824
|
+
const $ = g.getAttribute("data-option-code"), _ = this.options.flat().find((Et) => Et.code === $);
|
|
825
|
+
return (_ == null ? void 0 : _.status) === "active";
|
|
826
|
+
}), b = p == null ? void 0 : p.closest('div[role="option"]'), w = b ? l.indexOf(b) : -1;
|
|
827
827
|
if (t.shiftKey)
|
|
828
|
-
|
|
828
|
+
if (w > 0) {
|
|
829
|
+
t.preventDefault();
|
|
830
|
+
const g = l[w - 1];
|
|
831
|
+
g && g.focus();
|
|
832
|
+
} else w === 0 && (t.preventDefault(), this.focusSearchInput());
|
|
829
833
|
else if (w < l.length - 1) {
|
|
830
834
|
t.preventDefault();
|
|
831
|
-
const
|
|
832
|
-
if (
|
|
833
|
-
|
|
835
|
+
const g = l[w + 1];
|
|
836
|
+
if (g)
|
|
837
|
+
g.focus();
|
|
834
838
|
else {
|
|
835
839
|
const $ = (lt = this.shadowRoot) == null ? void 0 : lt.querySelector("#searchInput");
|
|
836
840
|
if ($)
|
|
837
841
|
$.focus();
|
|
838
842
|
else {
|
|
839
|
-
const
|
|
840
|
-
|
|
843
|
+
const _ = this.getFirstFocusableOptionElement();
|
|
844
|
+
_ && _.focus();
|
|
841
845
|
}
|
|
842
846
|
}
|
|
843
847
|
} else if (w === l.length - 1) {
|
|
844
848
|
t.preventDefault();
|
|
845
|
-
const
|
|
846
|
-
if (
|
|
847
|
-
|
|
849
|
+
const g = (dt = this.shadowRoot) == null ? void 0 : dt.querySelector("#searchInput");
|
|
850
|
+
if (g)
|
|
851
|
+
g.focus();
|
|
848
852
|
else {
|
|
849
853
|
const $ = this.getFirstFocusableOptionElement();
|
|
850
854
|
$ && $.focus();
|
|
@@ -862,15 +866,14 @@ let m = (E = class extends j {
|
|
|
862
866
|
return !1;
|
|
863
867
|
}
|
|
864
868
|
renderOptionList() {
|
|
865
|
-
return
|
|
866
|
-
${this.options.map((t, e) =>
|
|
867
|
-
${t.map((o, i) =>
|
|
869
|
+
return A`
|
|
870
|
+
${this.options.map((t, e) => A`
|
|
871
|
+
${t.map((o, i) => A`
|
|
868
872
|
<div
|
|
869
873
|
role="option"
|
|
870
874
|
aria-selected="${o.code === this.selectedOption}"
|
|
871
|
-
class="p-2 scroll-py-1 scroll-smooth flex items-center justify-between
|
|
872
|
-
|
|
873
|
-
${o.code === this.selectedOption ? "bg-ewc-availableHover text-white" : ""}"
|
|
875
|
+
class="p-2 scroll-py-1 scroll-smooth flex items-center justify-between ewc-focus
|
|
876
|
+
${o.status === "inactive" ? "cursor-not-allowed text-ewc-notAvailable hover:bg-ewc-notAvailableHover hover:text-white focus:bg-ewc-notAvailableHover focus:text-white focus:outline-none" : `cursor-pointer text-ewc-available focus:outline-none hover:bg-[#CFDAF5] hover:text-black focus:bg-[#CFDAF5] focus:text-black ${o.code === this.selectedOption ? "bg-ewc-availableHover text-white" : ""}`}"
|
|
874
877
|
data-option-code="${o.code}"
|
|
875
878
|
tabindex="0"
|
|
876
879
|
@click="${(r) => {
|
|
@@ -879,17 +882,29 @@ let m = (E = class extends j {
|
|
|
879
882
|
>
|
|
880
883
|
<label
|
|
881
884
|
for="option-${o.code}"
|
|
882
|
-
class="flex items-center w-full group ${o.status === "active" ? "cursor-pointer" : "cursor-not-allowed text-ewc-disabled"}"
|
|
885
|
+
class="flex items-center w-full group justify-between ${o.status === "active" ? "cursor-pointer" : "cursor-not-allowed text-ewc-disabled"}"
|
|
883
886
|
data-option-code="${o.code}"
|
|
884
887
|
tabindex="-1"
|
|
885
888
|
@click="${(r) => {
|
|
886
889
|
o.status === "active" && (r.preventDefault(), r.stopPropagation(), this.toggleSelection(o));
|
|
887
890
|
}}"
|
|
888
891
|
>
|
|
889
|
-
<span class="
|
|
892
|
+
<span class="ml-2"> ${o.name} </span>
|
|
893
|
+
${o.code === this.selectedOption ? A`<svg
|
|
894
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
895
|
+
class="h-5 w-5 shrink-0 fill-current mr-2"
|
|
896
|
+
viewBox="0 0 20 20"
|
|
897
|
+
fill="currentColor"
|
|
898
|
+
>
|
|
899
|
+
<path
|
|
900
|
+
fill-rule="evenodd"
|
|
901
|
+
d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
|
|
902
|
+
clip-rule="evenodd"
|
|
903
|
+
/>
|
|
904
|
+
</svg>` : ""}
|
|
890
905
|
</label>
|
|
891
906
|
</div>
|
|
892
|
-
${i === t.length - 1 && this.hasVisibleOptionsInNextGroup(e) ?
|
|
907
|
+
${i === t.length - 1 && this.hasVisibleOptionsInNextGroup(e) ? A`<hr class="border-t border-gray-300 my-2" />` : ""}
|
|
893
908
|
`)}
|
|
894
909
|
`)}
|
|
895
910
|
`;
|
|
@@ -920,7 +935,7 @@ let m = (E = class extends j {
|
|
|
920
935
|
});
|
|
921
936
|
e.dispatchEvent(i);
|
|
922
937
|
}
|
|
923
|
-
this.requestUpdate();
|
|
938
|
+
this.requestUpdate(), this.closeDropdown();
|
|
924
939
|
}
|
|
925
940
|
shouldShowSearch() {
|
|
926
941
|
return this._shouldShowSearch;
|
|
@@ -935,7 +950,7 @@ let m = (E = class extends j {
|
|
|
935
950
|
})), this.requestUpdate();
|
|
936
951
|
}
|
|
937
952
|
render() {
|
|
938
|
-
return
|
|
953
|
+
return A`
|
|
939
954
|
<div class="relative bg-white rounded">
|
|
940
955
|
<button
|
|
941
956
|
id="select"
|
|
@@ -960,13 +975,13 @@ let m = (E = class extends j {
|
|
|
960
975
|
</div>
|
|
961
976
|
</div>
|
|
962
977
|
</button>
|
|
963
|
-
${this.isExpanded ?
|
|
978
|
+
${this.isExpanded ? A`
|
|
964
979
|
<div
|
|
965
980
|
id="dropdown"
|
|
966
981
|
class="absolute block justify-items-center left-0 w-full rounded shadow bg-white cursor-auto border-none box-border border-ewc-msBorder mt-1 z-10"
|
|
967
982
|
style="max-height: 80vh; overflow: hidden;"
|
|
968
983
|
>
|
|
969
|
-
${this.shouldShowSearch() ?
|
|
984
|
+
${this.shouldShowSearch() ? A`
|
|
970
985
|
<input
|
|
971
986
|
id="searchInput"
|
|
972
987
|
type="text"
|
|
@@ -992,39 +1007,39 @@ let m = (E = class extends j {
|
|
|
992
1007
|
</div>
|
|
993
1008
|
`;
|
|
994
1009
|
}
|
|
995
|
-
}, X =
|
|
1010
|
+
}, X = O, O.version = "1.0.6-alpha", O.styles = [new CSSStyleSheet()], O);
|
|
996
1011
|
v([
|
|
997
|
-
|
|
1012
|
+
k({ type: Array })
|
|
998
1013
|
], m.prototype, "options", void 0);
|
|
999
1014
|
v([
|
|
1000
|
-
|
|
1015
|
+
k({ type: String })
|
|
1001
1016
|
], m.prototype, "selectedOption", void 0);
|
|
1002
1017
|
v([
|
|
1003
|
-
|
|
1018
|
+
k({ type: Boolean })
|
|
1004
1019
|
], m.prototype, "isExpanded", void 0);
|
|
1005
1020
|
v([
|
|
1006
|
-
|
|
1021
|
+
k({ type: String })
|
|
1007
1022
|
], m.prototype, "defaultOption", void 0);
|
|
1008
1023
|
v([
|
|
1009
|
-
|
|
1024
|
+
k({ type: String })
|
|
1010
1025
|
], m.prototype, "activeOption", void 0);
|
|
1011
1026
|
v([
|
|
1012
|
-
|
|
1027
|
+
k({ type: String })
|
|
1013
1028
|
], m.prototype, "dropdownHeight", void 0);
|
|
1014
1029
|
v([
|
|
1015
|
-
|
|
1030
|
+
k({ type: String })
|
|
1016
1031
|
], m.prototype, "invertColors", null);
|
|
1017
1032
|
v([
|
|
1018
|
-
|
|
1033
|
+
k({ type: String })
|
|
1019
1034
|
], m.prototype, "selectedLabel", void 0);
|
|
1020
1035
|
v([
|
|
1021
|
-
|
|
1036
|
+
k({ type: String })
|
|
1022
1037
|
], m.prototype, "searchMode", void 0);
|
|
1023
1038
|
v([
|
|
1024
|
-
|
|
1039
|
+
k({ type: String })
|
|
1025
1040
|
], m.prototype, "_searchText", void 0);
|
|
1026
1041
|
v([
|
|
1027
|
-
|
|
1042
|
+
k({ type: Boolean })
|
|
1028
1043
|
], m.prototype, "_shouldShowSearch", void 0);
|
|
1029
1044
|
v([
|
|
1030
1045
|
Xt("#dropdown")
|