@triptease/tt-navbar 0.0.20 → 0.0.22
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/README.md +50 -1
- package/dist/src/Routes.d.ts +4 -0
- package/dist/src/Routes.js +5 -0
- package/dist/src/Routes.js.map +1 -0
- package/dist/src/TtNavbar.d.ts +8 -0
- package/dist/src/TtNavbar.js +45 -6
- package/dist/src/TtNavbar.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/styles.js +27 -2
- package/dist/src/styles.js.map +1 -1
- package/dist/stories/index.stories.d.ts +30 -3
- package/dist/stories/index.stories.js +26 -8
- package/dist/stories/index.stories.js.map +1 -1
- package/dist/test/tt-navbar.test.js +25 -5
- package/dist/test/tt-navbar.test.js.map +1 -1
- package/dist/web/Routes.js +12 -0
- package/dist/web/Routes.js.map +7 -0
- package/dist/web/TtNavbar.js +1348 -356
- package/dist/web/TtNavbar.js.map +4 -4
- package/dist/web/index.js +1349 -356
- package/dist/web/index.js.map +4 -4
- package/dist/web/styles.js +28 -3
- package/dist/web/styles.js.map +2 -2
- package/dist/web/triptease-logo.js +1 -1
- package/dist/web/tt-navbar.js +1348 -356
- package/dist/web/tt-navbar.js.map +4 -4
- package/dist/web/urlMappings.js +1 -1
- package/package.json +2 -1
- package/src/Routes.ts +5 -0
- package/src/TtNavbar.ts +45 -11
- package/src/index.ts +1 -0
- package/src/styles.ts +27 -2
- package/stories/index.stories.ts +51 -9
- package/test/tt-navbar.test.ts +30 -5
package/dist/web/TtNavbar.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @triptease/tt-navbar v0.0.
|
|
2
|
+
* @triptease/tt-navbar v0.0.22
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
6
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
7
7
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
8
|
-
for (var
|
|
9
|
-
if (decorator = decorators[
|
|
8
|
+
for (var i7 = decorators.length - 1, decorator; i7 >= 0; i7--)
|
|
9
|
+
if (decorator = decorators[i7])
|
|
10
10
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11
11
|
if (kind && result) __defProp(target, key, result);
|
|
12
12
|
return result;
|
|
@@ -18,44 +18,44 @@ var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "a
|
|
|
18
18
|
var s = Symbol();
|
|
19
19
|
var o = /* @__PURE__ */ new WeakMap();
|
|
20
20
|
var n = class {
|
|
21
|
-
constructor(
|
|
22
|
-
if (this._$cssResult$ = true,
|
|
23
|
-
this.cssText =
|
|
21
|
+
constructor(t6, e10, o10) {
|
|
22
|
+
if (this._$cssResult$ = true, o10 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
23
|
+
this.cssText = t6, this.t = e10;
|
|
24
24
|
}
|
|
25
25
|
get styleSheet() {
|
|
26
|
-
let
|
|
27
|
-
const
|
|
28
|
-
if (e && void 0 ===
|
|
29
|
-
const
|
|
30
|
-
|
|
26
|
+
let t6 = this.o;
|
|
27
|
+
const s5 = this.t;
|
|
28
|
+
if (e && void 0 === t6) {
|
|
29
|
+
const e10 = void 0 !== s5 && 1 === s5.length;
|
|
30
|
+
e10 && (t6 = o.get(s5)), void 0 === t6 && ((this.o = t6 = new CSSStyleSheet()).replaceSync(this.cssText), e10 && o.set(s5, t6));
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return t6;
|
|
33
33
|
}
|
|
34
34
|
toString() {
|
|
35
35
|
return this.cssText;
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
var r = (
|
|
39
|
-
var i = (
|
|
40
|
-
const
|
|
41
|
-
if (true ===
|
|
42
|
-
if ("number" == typeof
|
|
43
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
|
44
|
-
})(
|
|
45
|
-
return new n(
|
|
38
|
+
var r = (t6) => new n("string" == typeof t6 ? t6 : t6 + "", void 0, s);
|
|
39
|
+
var i = (t6, ...e10) => {
|
|
40
|
+
const o10 = 1 === t6.length ? t6[0] : e10.reduce((e11, s5, o11) => e11 + ((t7) => {
|
|
41
|
+
if (true === t7._$cssResult$) return t7.cssText;
|
|
42
|
+
if ("number" == typeof t7) return t7;
|
|
43
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + t7 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
44
|
+
})(s5) + t6[o11 + 1], t6[0]);
|
|
45
|
+
return new n(o10, t6, s);
|
|
46
46
|
};
|
|
47
|
-
var S = (
|
|
48
|
-
if (e)
|
|
49
|
-
else for (const
|
|
50
|
-
const
|
|
51
|
-
void 0 !== n5 &&
|
|
47
|
+
var S = (s5, o10) => {
|
|
48
|
+
if (e) s5.adoptedStyleSheets = o10.map((t6) => t6 instanceof CSSStyleSheet ? t6 : t6.styleSheet);
|
|
49
|
+
else for (const e10 of o10) {
|
|
50
|
+
const o11 = document.createElement("style"), n5 = t.litNonce;
|
|
51
|
+
void 0 !== n5 && o11.setAttribute("nonce", n5), o11.textContent = e10.cssText, s5.appendChild(o11);
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
var c = e ? (
|
|
55
|
-
let
|
|
56
|
-
for (const
|
|
57
|
-
return r(
|
|
58
|
-
})(
|
|
54
|
+
var c = e ? (t6) => t6 : (t6) => t6 instanceof CSSStyleSheet ? ((t7) => {
|
|
55
|
+
let e10 = "";
|
|
56
|
+
for (const s5 of t7.cssRules) e10 += s5.cssText;
|
|
57
|
+
return r(e10);
|
|
58
|
+
})(t6) : t6;
|
|
59
59
|
|
|
60
60
|
// ../../node_modules/@lit/reactive-element/reactive-element.js
|
|
61
61
|
var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: h, getOwnPropertyNames: r2, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object;
|
|
@@ -63,167 +63,167 @@ var a = globalThis;
|
|
|
63
63
|
var c2 = a.trustedTypes;
|
|
64
64
|
var l = c2 ? c2.emptyScript : "";
|
|
65
65
|
var p = a.reactiveElementPolyfillSupport;
|
|
66
|
-
var d = (
|
|
67
|
-
var u = { toAttribute(
|
|
68
|
-
switch (
|
|
66
|
+
var d = (t6, s5) => t6;
|
|
67
|
+
var u = { toAttribute(t6, s5) {
|
|
68
|
+
switch (s5) {
|
|
69
69
|
case Boolean:
|
|
70
|
-
|
|
70
|
+
t6 = t6 ? l : null;
|
|
71
71
|
break;
|
|
72
72
|
case Object:
|
|
73
73
|
case Array:
|
|
74
|
-
|
|
74
|
+
t6 = null == t6 ? t6 : JSON.stringify(t6);
|
|
75
75
|
}
|
|
76
|
-
return
|
|
77
|
-
}, fromAttribute(
|
|
78
|
-
let
|
|
79
|
-
switch (
|
|
76
|
+
return t6;
|
|
77
|
+
}, fromAttribute(t6, s5) {
|
|
78
|
+
let i7 = t6;
|
|
79
|
+
switch (s5) {
|
|
80
80
|
case Boolean:
|
|
81
|
-
|
|
81
|
+
i7 = null !== t6;
|
|
82
82
|
break;
|
|
83
83
|
case Number:
|
|
84
|
-
|
|
84
|
+
i7 = null === t6 ? null : Number(t6);
|
|
85
85
|
break;
|
|
86
86
|
case Object:
|
|
87
87
|
case Array:
|
|
88
88
|
try {
|
|
89
|
-
|
|
90
|
-
} catch (
|
|
91
|
-
|
|
89
|
+
i7 = JSON.parse(t6);
|
|
90
|
+
} catch (t7) {
|
|
91
|
+
i7 = null;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
return
|
|
94
|
+
return i7;
|
|
95
95
|
} };
|
|
96
|
-
var f = (
|
|
96
|
+
var f = (t6, s5) => !i2(t6, s5);
|
|
97
97
|
var b = { attribute: true, type: String, converter: u, reflect: false, useDefault: false, hasChanged: f };
|
|
98
98
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), a.litPropertyMetadata ?? (a.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
99
99
|
var y = class extends HTMLElement {
|
|
100
|
-
static addInitializer(
|
|
101
|
-
this._$Ei(), (this.l ?? (this.l = [])).push(
|
|
100
|
+
static addInitializer(t6) {
|
|
101
|
+
this._$Ei(), (this.l ?? (this.l = [])).push(t6);
|
|
102
102
|
}
|
|
103
103
|
static get observedAttributes() {
|
|
104
104
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
105
105
|
}
|
|
106
|
-
static createProperty(
|
|
107
|
-
if (
|
|
108
|
-
const
|
|
109
|
-
void 0 !== h3 && e2(this.prototype,
|
|
106
|
+
static createProperty(t6, s5 = b) {
|
|
107
|
+
if (s5.state && (s5.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t6) && ((s5 = Object.create(s5)).wrapped = true), this.elementProperties.set(t6, s5), !s5.noAccessor) {
|
|
108
|
+
const i7 = Symbol(), h3 = this.getPropertyDescriptor(t6, i7, s5);
|
|
109
|
+
void 0 !== h3 && e2(this.prototype, t6, h3);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
static getPropertyDescriptor(
|
|
113
|
-
const { get:
|
|
114
|
-
return this[
|
|
115
|
-
}, set(
|
|
116
|
-
this[
|
|
112
|
+
static getPropertyDescriptor(t6, s5, i7) {
|
|
113
|
+
const { get: e10, set: r8 } = h(this.prototype, t6) ?? { get() {
|
|
114
|
+
return this[s5];
|
|
115
|
+
}, set(t7) {
|
|
116
|
+
this[s5] = t7;
|
|
117
117
|
} };
|
|
118
|
-
return { get:
|
|
119
|
-
const h3 =
|
|
120
|
-
|
|
118
|
+
return { get: e10, set(s6) {
|
|
119
|
+
const h3 = e10?.call(this);
|
|
120
|
+
r8?.call(this, s6), this.requestUpdate(t6, h3, i7);
|
|
121
121
|
}, configurable: true, enumerable: true };
|
|
122
122
|
}
|
|
123
|
-
static getPropertyOptions(
|
|
124
|
-
return this.elementProperties.get(
|
|
123
|
+
static getPropertyOptions(t6) {
|
|
124
|
+
return this.elementProperties.get(t6) ?? b;
|
|
125
125
|
}
|
|
126
126
|
static _$Ei() {
|
|
127
127
|
if (this.hasOwnProperty(d("elementProperties"))) return;
|
|
128
|
-
const
|
|
129
|
-
|
|
128
|
+
const t6 = n2(this);
|
|
129
|
+
t6.finalize(), void 0 !== t6.l && (this.l = [...t6.l]), this.elementProperties = new Map(t6.elementProperties);
|
|
130
130
|
}
|
|
131
131
|
static finalize() {
|
|
132
132
|
if (this.hasOwnProperty(d("finalized"))) return;
|
|
133
133
|
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
|
|
134
|
-
const
|
|
135
|
-
for (const
|
|
134
|
+
const t7 = this.properties, s5 = [...r2(t7), ...o2(t7)];
|
|
135
|
+
for (const i7 of s5) this.createProperty(i7, t7[i7]);
|
|
136
136
|
}
|
|
137
|
-
const
|
|
138
|
-
if (null !==
|
|
139
|
-
const
|
|
140
|
-
if (void 0 !==
|
|
137
|
+
const t6 = this[Symbol.metadata];
|
|
138
|
+
if (null !== t6) {
|
|
139
|
+
const s5 = litPropertyMetadata.get(t6);
|
|
140
|
+
if (void 0 !== s5) for (const [t7, i7] of s5) this.elementProperties.set(t7, i7);
|
|
141
141
|
}
|
|
142
142
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
143
|
-
for (const [
|
|
144
|
-
const
|
|
145
|
-
void 0 !==
|
|
143
|
+
for (const [t7, s5] of this.elementProperties) {
|
|
144
|
+
const i7 = this._$Eu(t7, s5);
|
|
145
|
+
void 0 !== i7 && this._$Eh.set(i7, t7);
|
|
146
146
|
}
|
|
147
147
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
148
148
|
}
|
|
149
|
-
static finalizeStyles(
|
|
150
|
-
const
|
|
151
|
-
if (Array.isArray(
|
|
152
|
-
const
|
|
153
|
-
for (const
|
|
154
|
-
} else void 0 !==
|
|
155
|
-
return
|
|
149
|
+
static finalizeStyles(s5) {
|
|
150
|
+
const i7 = [];
|
|
151
|
+
if (Array.isArray(s5)) {
|
|
152
|
+
const e10 = new Set(s5.flat(1 / 0).reverse());
|
|
153
|
+
for (const s6 of e10) i7.unshift(c(s6));
|
|
154
|
+
} else void 0 !== s5 && i7.push(c(s5));
|
|
155
|
+
return i7;
|
|
156
156
|
}
|
|
157
|
-
static _$Eu(
|
|
158
|
-
const
|
|
159
|
-
return false ===
|
|
157
|
+
static _$Eu(t6, s5) {
|
|
158
|
+
const i7 = s5.attribute;
|
|
159
|
+
return false === i7 ? void 0 : "string" == typeof i7 ? i7 : "string" == typeof t6 ? t6.toLowerCase() : void 0;
|
|
160
160
|
}
|
|
161
161
|
constructor() {
|
|
162
162
|
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
163
163
|
}
|
|
164
164
|
_$Ev() {
|
|
165
|
-
this._$ES = new Promise((
|
|
165
|
+
this._$ES = new Promise((t6) => this.enableUpdating = t6), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t6) => t6(this));
|
|
166
166
|
}
|
|
167
|
-
addController(
|
|
168
|
-
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(
|
|
167
|
+
addController(t6) {
|
|
168
|
+
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t6), void 0 !== this.renderRoot && this.isConnected && t6.hostConnected?.();
|
|
169
169
|
}
|
|
170
|
-
removeController(
|
|
171
|
-
this._$EO?.delete(
|
|
170
|
+
removeController(t6) {
|
|
171
|
+
this._$EO?.delete(t6);
|
|
172
172
|
}
|
|
173
173
|
_$E_() {
|
|
174
|
-
const
|
|
175
|
-
for (const
|
|
176
|
-
|
|
174
|
+
const t6 = /* @__PURE__ */ new Map(), s5 = this.constructor.elementProperties;
|
|
175
|
+
for (const i7 of s5.keys()) this.hasOwnProperty(i7) && (t6.set(i7, this[i7]), delete this[i7]);
|
|
176
|
+
t6.size > 0 && (this._$Ep = t6);
|
|
177
177
|
}
|
|
178
178
|
createRenderRoot() {
|
|
179
|
-
const
|
|
180
|
-
return S(
|
|
179
|
+
const t6 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
180
|
+
return S(t6, this.constructor.elementStyles), t6;
|
|
181
181
|
}
|
|
182
182
|
connectedCallback() {
|
|
183
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), this._$EO?.forEach((
|
|
183
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), this._$EO?.forEach((t6) => t6.hostConnected?.());
|
|
184
184
|
}
|
|
185
|
-
enableUpdating(
|
|
185
|
+
enableUpdating(t6) {
|
|
186
186
|
}
|
|
187
187
|
disconnectedCallback() {
|
|
188
|
-
this._$EO?.forEach((
|
|
188
|
+
this._$EO?.forEach((t6) => t6.hostDisconnected?.());
|
|
189
189
|
}
|
|
190
|
-
attributeChangedCallback(
|
|
191
|
-
this._$AK(
|
|
190
|
+
attributeChangedCallback(t6, s5, i7) {
|
|
191
|
+
this._$AK(t6, i7);
|
|
192
192
|
}
|
|
193
|
-
_$ET(
|
|
194
|
-
const
|
|
195
|
-
if (void 0 !==
|
|
196
|
-
const h3 = (void 0 !==
|
|
197
|
-
this._$Em =
|
|
193
|
+
_$ET(t6, s5) {
|
|
194
|
+
const i7 = this.constructor.elementProperties.get(t6), e10 = this.constructor._$Eu(t6, i7);
|
|
195
|
+
if (void 0 !== e10 && true === i7.reflect) {
|
|
196
|
+
const h3 = (void 0 !== i7.converter?.toAttribute ? i7.converter : u).toAttribute(s5, i7.type);
|
|
197
|
+
this._$Em = t6, null == h3 ? this.removeAttribute(e10) : this.setAttribute(e10, h3), this._$Em = null;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
_$AK(
|
|
201
|
-
const
|
|
202
|
-
if (void 0 !==
|
|
203
|
-
const
|
|
204
|
-
this._$Em =
|
|
200
|
+
_$AK(t6, s5) {
|
|
201
|
+
const i7 = this.constructor, e10 = i7._$Eh.get(t6);
|
|
202
|
+
if (void 0 !== e10 && this._$Em !== e10) {
|
|
203
|
+
const t7 = i7.getPropertyOptions(e10), h3 = "function" == typeof t7.converter ? { fromAttribute: t7.converter } : void 0 !== t7.converter?.fromAttribute ? t7.converter : u;
|
|
204
|
+
this._$Em = e10, this[e10] = h3.fromAttribute(s5, t7.type) ?? this._$Ej?.get(e10) ?? null, this._$Em = null;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
requestUpdate(
|
|
208
|
-
if (void 0 !==
|
|
209
|
-
const
|
|
210
|
-
if (
|
|
211
|
-
this.C(
|
|
207
|
+
requestUpdate(t6, s5, i7) {
|
|
208
|
+
if (void 0 !== t6) {
|
|
209
|
+
const e10 = this.constructor, h3 = this[t6];
|
|
210
|
+
if (i7 ?? (i7 = e10.getPropertyOptions(t6)), !((i7.hasChanged ?? f)(h3, s5) || i7.useDefault && i7.reflect && h3 === this._$Ej?.get(t6) && !this.hasAttribute(e10._$Eu(t6, i7)))) return;
|
|
211
|
+
this.C(t6, s5, i7);
|
|
212
212
|
}
|
|
213
213
|
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
214
214
|
}
|
|
215
|
-
C(
|
|
216
|
-
|
|
215
|
+
C(t6, s5, { useDefault: i7, reflect: e10, wrapped: h3 }, r8) {
|
|
216
|
+
i7 && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t6) && (this._$Ej.set(t6, r8 ?? s5 ?? this[t6]), true !== h3 || void 0 !== r8) || (this._$AL.has(t6) || (this.hasUpdated || i7 || (s5 = void 0), this._$AL.set(t6, s5)), true === e10 && this._$Em !== t6 && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t6));
|
|
217
217
|
}
|
|
218
218
|
async _$EP() {
|
|
219
219
|
this.isUpdatePending = true;
|
|
220
220
|
try {
|
|
221
221
|
await this._$ES;
|
|
222
|
-
} catch (
|
|
223
|
-
Promise.reject(
|
|
222
|
+
} catch (t7) {
|
|
223
|
+
Promise.reject(t7);
|
|
224
224
|
}
|
|
225
|
-
const
|
|
226
|
-
return null !=
|
|
225
|
+
const t6 = this.scheduleUpdate();
|
|
226
|
+
return null != t6 && await t6, !this.isUpdatePending;
|
|
227
227
|
}
|
|
228
228
|
scheduleUpdate() {
|
|
229
229
|
return this.performUpdate();
|
|
@@ -232,28 +232,28 @@ var y = class extends HTMLElement {
|
|
|
232
232
|
if (!this.isUpdatePending) return;
|
|
233
233
|
if (!this.hasUpdated) {
|
|
234
234
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
235
|
-
for (const [
|
|
235
|
+
for (const [t8, s6] of this._$Ep) this[t8] = s6;
|
|
236
236
|
this._$Ep = void 0;
|
|
237
237
|
}
|
|
238
|
-
const
|
|
239
|
-
if (
|
|
240
|
-
const { wrapped:
|
|
241
|
-
true !==
|
|
238
|
+
const t7 = this.constructor.elementProperties;
|
|
239
|
+
if (t7.size > 0) for (const [s6, i7] of t7) {
|
|
240
|
+
const { wrapped: t8 } = i7, e10 = this[s6];
|
|
241
|
+
true !== t8 || this._$AL.has(s6) || void 0 === e10 || this.C(s6, void 0, i7, e10);
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
let
|
|
245
|
-
const
|
|
244
|
+
let t6 = false;
|
|
245
|
+
const s5 = this._$AL;
|
|
246
246
|
try {
|
|
247
|
-
|
|
248
|
-
} catch (
|
|
249
|
-
throw
|
|
247
|
+
t6 = this.shouldUpdate(s5), t6 ? (this.willUpdate(s5), this._$EO?.forEach((t7) => t7.hostUpdate?.()), this.update(s5)) : this._$EM();
|
|
248
|
+
} catch (s6) {
|
|
249
|
+
throw t6 = false, this._$EM(), s6;
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
t6 && this._$AE(s5);
|
|
252
252
|
}
|
|
253
|
-
willUpdate(
|
|
253
|
+
willUpdate(t6) {
|
|
254
254
|
}
|
|
255
|
-
_$AE(
|
|
256
|
-
this._$EO?.forEach((
|
|
255
|
+
_$AE(t6) {
|
|
256
|
+
this._$EO?.forEach((t7) => t7.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t6)), this.updated(t6);
|
|
257
257
|
}
|
|
258
258
|
_$EM() {
|
|
259
259
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
@@ -264,15 +264,15 @@ var y = class extends HTMLElement {
|
|
|
264
264
|
getUpdateComplete() {
|
|
265
265
|
return this._$ES;
|
|
266
266
|
}
|
|
267
|
-
shouldUpdate(
|
|
267
|
+
shouldUpdate(t6) {
|
|
268
268
|
return true;
|
|
269
269
|
}
|
|
270
|
-
update(
|
|
271
|
-
this._$Eq && (this._$Eq = this._$Eq.forEach((
|
|
270
|
+
update(t6) {
|
|
271
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach((t7) => this._$ET(t7, this[t7]))), this._$EM();
|
|
272
272
|
}
|
|
273
|
-
updated(
|
|
273
|
+
updated(t6) {
|
|
274
274
|
}
|
|
275
|
-
firstUpdated(
|
|
275
|
+
firstUpdated(t6) {
|
|
276
276
|
}
|
|
277
277
|
};
|
|
278
278
|
y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProperties")] = /* @__PURE__ */ new Map(), y[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: y }), (a.reactiveElementVersions ?? (a.reactiveElementVersions = [])).push("2.1.0");
|
|
@@ -280,16 +280,16 @@ y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProper
|
|
|
280
280
|
// ../../node_modules/lit-html/lit-html.js
|
|
281
281
|
var t2 = globalThis;
|
|
282
282
|
var i3 = t2.trustedTypes;
|
|
283
|
-
var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (
|
|
283
|
+
var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t6) => t6 }) : void 0;
|
|
284
284
|
var e3 = "$lit$";
|
|
285
285
|
var h2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
|
|
286
286
|
var o3 = "?" + h2;
|
|
287
287
|
var n3 = `<${o3}>`;
|
|
288
288
|
var r3 = document;
|
|
289
289
|
var l2 = () => r3.createComment("");
|
|
290
|
-
var c3 = (
|
|
290
|
+
var c3 = (t6) => null === t6 || "object" != typeof t6 && "function" != typeof t6;
|
|
291
291
|
var a2 = Array.isArray;
|
|
292
|
-
var u2 = (
|
|
292
|
+
var u2 = (t6) => a2(t6) || "function" == typeof t6?.[Symbol.iterator];
|
|
293
293
|
var d2 = "[ \n\f\r]";
|
|
294
294
|
var f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
295
295
|
var v = /-->/g;
|
|
@@ -299,7 +299,7 @@ var m = RegExp(`>|${d2}(?:([^\\s"'>=/]+)(${d2}*=${d2}*(?:[^
|
|
|
299
299
|
var p2 = /'/g;
|
|
300
300
|
var g = /"/g;
|
|
301
301
|
var $ = /^(?:script|style|textarea|title)$/i;
|
|
302
|
-
var y2 = (
|
|
302
|
+
var y2 = (t6) => (i7, ...s5) => ({ _$litType$: t6, strings: i7, values: s5 });
|
|
303
303
|
var x = y2(1);
|
|
304
304
|
var b2 = y2(2);
|
|
305
305
|
var w = y2(3);
|
|
@@ -307,68 +307,68 @@ var T = Symbol.for("lit-noChange");
|
|
|
307
307
|
var E = Symbol.for("lit-nothing");
|
|
308
308
|
var A = /* @__PURE__ */ new WeakMap();
|
|
309
309
|
var C = r3.createTreeWalker(r3, 129);
|
|
310
|
-
function P(
|
|
311
|
-
if (!a2(
|
|
312
|
-
return void 0 !== s2 ? s2.createHTML(
|
|
310
|
+
function P(t6, i7) {
|
|
311
|
+
if (!a2(t6) || !t6.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
312
|
+
return void 0 !== s2 ? s2.createHTML(i7) : i7;
|
|
313
313
|
}
|
|
314
|
-
var V = (
|
|
315
|
-
const
|
|
316
|
-
let
|
|
317
|
-
for (let
|
|
318
|
-
const
|
|
319
|
-
let a3,
|
|
320
|
-
for (; y3 <
|
|
321
|
-
const x2 =
|
|
322
|
-
l3 +=
|
|
323
|
-
}
|
|
324
|
-
return [P(
|
|
314
|
+
var V = (t6, i7) => {
|
|
315
|
+
const s5 = t6.length - 1, o10 = [];
|
|
316
|
+
let r8, l3 = 2 === i7 ? "<svg>" : 3 === i7 ? "<math>" : "", c5 = f2;
|
|
317
|
+
for (let i8 = 0; i8 < s5; i8++) {
|
|
318
|
+
const s6 = t6[i8];
|
|
319
|
+
let a3, u5, d3 = -1, y3 = 0;
|
|
320
|
+
for (; y3 < s6.length && (c5.lastIndex = y3, u5 = c5.exec(s6), null !== u5); ) y3 = c5.lastIndex, c5 === f2 ? "!--" === u5[1] ? c5 = v : void 0 !== u5[1] ? c5 = _ : void 0 !== u5[2] ? ($.test(u5[2]) && (r8 = RegExp("</" + u5[2], "g")), c5 = m) : void 0 !== u5[3] && (c5 = m) : c5 === m ? ">" === u5[0] ? (c5 = r8 ?? f2, d3 = -1) : void 0 === u5[1] ? d3 = -2 : (d3 = c5.lastIndex - u5[2].length, a3 = u5[1], c5 = void 0 === u5[3] ? m : '"' === u5[3] ? g : p2) : c5 === g || c5 === p2 ? c5 = m : c5 === v || c5 === _ ? c5 = f2 : (c5 = m, r8 = void 0);
|
|
321
|
+
const x2 = c5 === m && t6[i8 + 1].startsWith("/>") ? " " : "";
|
|
322
|
+
l3 += c5 === f2 ? s6 + n3 : d3 >= 0 ? (o10.push(a3), s6.slice(0, d3) + e3 + s6.slice(d3) + h2 + x2) : s6 + h2 + (-2 === d3 ? i8 : x2);
|
|
323
|
+
}
|
|
324
|
+
return [P(t6, l3 + (t6[s5] || "<?>") + (2 === i7 ? "</svg>" : 3 === i7 ? "</math>" : "")), o10];
|
|
325
325
|
};
|
|
326
326
|
var N = class _N {
|
|
327
|
-
constructor({ strings:
|
|
328
|
-
let
|
|
327
|
+
constructor({ strings: t6, _$litType$: s5 }, n5) {
|
|
328
|
+
let r8;
|
|
329
329
|
this.parts = [];
|
|
330
|
-
let
|
|
331
|
-
const
|
|
332
|
-
if (this.el = _N.createElement(f3, n5), C.currentNode = this.el.content, 2 ===
|
|
333
|
-
const
|
|
334
|
-
|
|
330
|
+
let c5 = 0, a3 = 0;
|
|
331
|
+
const u5 = t6.length - 1, d3 = this.parts, [f3, v3] = V(t6, s5);
|
|
332
|
+
if (this.el = _N.createElement(f3, n5), C.currentNode = this.el.content, 2 === s5 || 3 === s5) {
|
|
333
|
+
const t7 = this.el.content.firstChild;
|
|
334
|
+
t7.replaceWith(...t7.childNodes);
|
|
335
335
|
}
|
|
336
|
-
for (; null !== (
|
|
337
|
-
if (1 ===
|
|
338
|
-
if (
|
|
339
|
-
const
|
|
340
|
-
d3.push({ type: 1, index:
|
|
341
|
-
} else
|
|
342
|
-
if ($.test(
|
|
343
|
-
const
|
|
344
|
-
if (
|
|
345
|
-
|
|
346
|
-
for (let
|
|
347
|
-
|
|
336
|
+
for (; null !== (r8 = C.nextNode()) && d3.length < u5; ) {
|
|
337
|
+
if (1 === r8.nodeType) {
|
|
338
|
+
if (r8.hasAttributes()) for (const t7 of r8.getAttributeNames()) if (t7.endsWith(e3)) {
|
|
339
|
+
const i7 = v3[a3++], s6 = r8.getAttribute(t7).split(h2), e10 = /([.?@])?(.*)/.exec(i7);
|
|
340
|
+
d3.push({ type: 1, index: c5, name: e10[2], strings: s6, ctor: "." === e10[1] ? H : "?" === e10[1] ? I : "@" === e10[1] ? L : k }), r8.removeAttribute(t7);
|
|
341
|
+
} else t7.startsWith(h2) && (d3.push({ type: 6, index: c5 }), r8.removeAttribute(t7));
|
|
342
|
+
if ($.test(r8.tagName)) {
|
|
343
|
+
const t7 = r8.textContent.split(h2), s6 = t7.length - 1;
|
|
344
|
+
if (s6 > 0) {
|
|
345
|
+
r8.textContent = i3 ? i3.emptyScript : "";
|
|
346
|
+
for (let i7 = 0; i7 < s6; i7++) r8.append(t7[i7], l2()), C.nextNode(), d3.push({ type: 2, index: ++c5 });
|
|
347
|
+
r8.append(t7[s6], l2());
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
} else if (8 ===
|
|
350
|
+
} else if (8 === r8.nodeType) if (r8.data === o3) d3.push({ type: 2, index: c5 });
|
|
351
351
|
else {
|
|
352
|
-
let
|
|
353
|
-
for (; -1 !== (
|
|
352
|
+
let t7 = -1;
|
|
353
|
+
for (; -1 !== (t7 = r8.data.indexOf(h2, t7 + 1)); ) d3.push({ type: 7, index: c5 }), t7 += h2.length - 1;
|
|
354
354
|
}
|
|
355
|
-
|
|
355
|
+
c5++;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
static createElement(
|
|
359
|
-
const
|
|
360
|
-
return
|
|
358
|
+
static createElement(t6, i7) {
|
|
359
|
+
const s5 = r3.createElement("template");
|
|
360
|
+
return s5.innerHTML = t6, s5;
|
|
361
361
|
}
|
|
362
362
|
};
|
|
363
|
-
function S2(
|
|
364
|
-
if (
|
|
365
|
-
let h3 = void 0 !==
|
|
366
|
-
const
|
|
367
|
-
return h3?.constructor !==
|
|
363
|
+
function S2(t6, i7, s5 = t6, e10) {
|
|
364
|
+
if (i7 === T) return i7;
|
|
365
|
+
let h3 = void 0 !== e10 ? s5._$Co?.[e10] : s5._$Cl;
|
|
366
|
+
const o10 = c3(i7) ? void 0 : i7._$litDirective$;
|
|
367
|
+
return h3?.constructor !== o10 && (h3?._$AO?.(false), void 0 === o10 ? h3 = void 0 : (h3 = new o10(t6), h3._$AT(t6, s5, e10)), void 0 !== e10 ? (s5._$Co ?? (s5._$Co = []))[e10] = h3 : s5._$Cl = h3), void 0 !== h3 && (i7 = S2(t6, h3._$AS(t6, i7.values), h3, e10)), i7;
|
|
368
368
|
}
|
|
369
369
|
var M = class {
|
|
370
|
-
constructor(
|
|
371
|
-
this._$AV = [], this._$AN = void 0, this._$AD =
|
|
370
|
+
constructor(t6, i7) {
|
|
371
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t6, this._$AM = i7;
|
|
372
372
|
}
|
|
373
373
|
get parentNode() {
|
|
374
374
|
return this._$AM.parentNode;
|
|
@@ -376,35 +376,35 @@ var M = class {
|
|
|
376
376
|
get _$AU() {
|
|
377
377
|
return this._$AM._$AU;
|
|
378
378
|
}
|
|
379
|
-
u(
|
|
380
|
-
const { el: { content:
|
|
381
|
-
C.currentNode =
|
|
382
|
-
let h3 = C.nextNode(),
|
|
379
|
+
u(t6) {
|
|
380
|
+
const { el: { content: i7 }, parts: s5 } = this._$AD, e10 = (t6?.creationScope ?? r3).importNode(i7, true);
|
|
381
|
+
C.currentNode = e10;
|
|
382
|
+
let h3 = C.nextNode(), o10 = 0, n5 = 0, l3 = s5[0];
|
|
383
383
|
for (; void 0 !== l3; ) {
|
|
384
|
-
if (
|
|
385
|
-
let
|
|
386
|
-
2 === l3.type ?
|
|
384
|
+
if (o10 === l3.index) {
|
|
385
|
+
let i8;
|
|
386
|
+
2 === l3.type ? i8 = new R(h3, h3.nextSibling, this, t6) : 1 === l3.type ? i8 = new l3.ctor(h3, l3.name, l3.strings, this, t6) : 6 === l3.type && (i8 = new z(h3, this, t6)), this._$AV.push(i8), l3 = s5[++n5];
|
|
387
387
|
}
|
|
388
|
-
|
|
388
|
+
o10 !== l3?.index && (h3 = C.nextNode(), o10++);
|
|
389
389
|
}
|
|
390
|
-
return C.currentNode = r3,
|
|
390
|
+
return C.currentNode = r3, e10;
|
|
391
391
|
}
|
|
392
|
-
p(
|
|
393
|
-
let
|
|
394
|
-
for (const
|
|
392
|
+
p(t6) {
|
|
393
|
+
let i7 = 0;
|
|
394
|
+
for (const s5 of this._$AV) void 0 !== s5 && (void 0 !== s5.strings ? (s5._$AI(t6, s5, i7), i7 += s5.strings.length - 2) : s5._$AI(t6[i7])), i7++;
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
var R = class _R {
|
|
398
398
|
get _$AU() {
|
|
399
399
|
return this._$AM?._$AU ?? this._$Cv;
|
|
400
400
|
}
|
|
401
|
-
constructor(
|
|
402
|
-
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA =
|
|
401
|
+
constructor(t6, i7, s5, e10) {
|
|
402
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t6, this._$AB = i7, this._$AM = s5, this.options = e10, this._$Cv = e10?.isConnected ?? true;
|
|
403
403
|
}
|
|
404
404
|
get parentNode() {
|
|
405
|
-
let
|
|
406
|
-
const
|
|
407
|
-
return void 0 !==
|
|
405
|
+
let t6 = this._$AA.parentNode;
|
|
406
|
+
const i7 = this._$AM;
|
|
407
|
+
return void 0 !== i7 && 11 === t6?.nodeType && (t6 = i7.parentNode), t6;
|
|
408
408
|
}
|
|
409
409
|
get startNode() {
|
|
410
410
|
return this._$AA;
|
|
@@ -412,45 +412,45 @@ var R = class _R {
|
|
|
412
412
|
get endNode() {
|
|
413
413
|
return this._$AB;
|
|
414
414
|
}
|
|
415
|
-
_$AI(
|
|
416
|
-
|
|
415
|
+
_$AI(t6, i7 = this) {
|
|
416
|
+
t6 = S2(this, t6, i7), c3(t6) ? t6 === E || null == t6 || "" === t6 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t6 !== this._$AH && t6 !== T && this._(t6) : void 0 !== t6._$litType$ ? this.$(t6) : void 0 !== t6.nodeType ? this.T(t6) : u2(t6) ? this.k(t6) : this._(t6);
|
|
417
417
|
}
|
|
418
|
-
O(
|
|
419
|
-
return this._$AA.parentNode.insertBefore(
|
|
418
|
+
O(t6) {
|
|
419
|
+
return this._$AA.parentNode.insertBefore(t6, this._$AB);
|
|
420
420
|
}
|
|
421
|
-
T(
|
|
422
|
-
this._$AH !==
|
|
421
|
+
T(t6) {
|
|
422
|
+
this._$AH !== t6 && (this._$AR(), this._$AH = this.O(t6));
|
|
423
423
|
}
|
|
424
|
-
_(
|
|
425
|
-
this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data =
|
|
424
|
+
_(t6) {
|
|
425
|
+
this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data = t6 : this.T(r3.createTextNode(t6)), this._$AH = t6;
|
|
426
426
|
}
|
|
427
|
-
$(
|
|
428
|
-
const { values:
|
|
429
|
-
if (this._$AH?._$AD ===
|
|
427
|
+
$(t6) {
|
|
428
|
+
const { values: i7, _$litType$: s5 } = t6, e10 = "number" == typeof s5 ? this._$AC(t6) : (void 0 === s5.el && (s5.el = N.createElement(P(s5.h, s5.h[0]), this.options)), s5);
|
|
429
|
+
if (this._$AH?._$AD === e10) this._$AH.p(i7);
|
|
430
430
|
else {
|
|
431
|
-
const
|
|
432
|
-
|
|
431
|
+
const t7 = new M(e10, this), s6 = t7.u(this.options);
|
|
432
|
+
t7.p(i7), this.T(s6), this._$AH = t7;
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
-
_$AC(
|
|
436
|
-
let
|
|
437
|
-
return void 0 ===
|
|
435
|
+
_$AC(t6) {
|
|
436
|
+
let i7 = A.get(t6.strings);
|
|
437
|
+
return void 0 === i7 && A.set(t6.strings, i7 = new N(t6)), i7;
|
|
438
438
|
}
|
|
439
|
-
k(
|
|
439
|
+
k(t6) {
|
|
440
440
|
a2(this._$AH) || (this._$AH = [], this._$AR());
|
|
441
|
-
const
|
|
442
|
-
let
|
|
443
|
-
for (const h3 of
|
|
444
|
-
|
|
445
|
-
}
|
|
446
|
-
_$AR(
|
|
447
|
-
for (this._$AP?.(false, true,
|
|
448
|
-
const
|
|
449
|
-
|
|
441
|
+
const i7 = this._$AH;
|
|
442
|
+
let s5, e10 = 0;
|
|
443
|
+
for (const h3 of t6) e10 === i7.length ? i7.push(s5 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s5 = i7[e10], s5._$AI(h3), e10++;
|
|
444
|
+
e10 < i7.length && (this._$AR(s5 && s5._$AB.nextSibling, e10), i7.length = e10);
|
|
445
|
+
}
|
|
446
|
+
_$AR(t6 = this._$AA.nextSibling, i7) {
|
|
447
|
+
for (this._$AP?.(false, true, i7); t6 && t6 !== this._$AB; ) {
|
|
448
|
+
const i8 = t6.nextSibling;
|
|
449
|
+
t6.remove(), t6 = i8;
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
setConnected(
|
|
453
|
-
void 0 === this._$AM && (this._$Cv =
|
|
452
|
+
setConnected(t6) {
|
|
453
|
+
void 0 === this._$AM && (this._$Cv = t6, this._$AP?.(t6));
|
|
454
454
|
}
|
|
455
455
|
};
|
|
456
456
|
var k = class {
|
|
@@ -460,74 +460,75 @@ var k = class {
|
|
|
460
460
|
get _$AU() {
|
|
461
461
|
return this._$AM._$AU;
|
|
462
462
|
}
|
|
463
|
-
constructor(
|
|
464
|
-
this.type = 1, this._$AH = E, this._$AN = void 0, this.element =
|
|
463
|
+
constructor(t6, i7, s5, e10, h3) {
|
|
464
|
+
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t6, this.name = i7, this._$AM = e10, this.options = h3, s5.length > 2 || "" !== s5[0] || "" !== s5[1] ? (this._$AH = Array(s5.length - 1).fill(new String()), this.strings = s5) : this._$AH = E;
|
|
465
465
|
}
|
|
466
|
-
_$AI(
|
|
466
|
+
_$AI(t6, i7 = this, s5, e10) {
|
|
467
467
|
const h3 = this.strings;
|
|
468
|
-
let
|
|
469
|
-
if (void 0 === h3)
|
|
468
|
+
let o10 = false;
|
|
469
|
+
if (void 0 === h3) t6 = S2(this, t6, i7, 0), o10 = !c3(t6) || t6 !== this._$AH && t6 !== T, o10 && (this._$AH = t6);
|
|
470
470
|
else {
|
|
471
|
-
const
|
|
472
|
-
let n5,
|
|
473
|
-
for (
|
|
471
|
+
const e11 = t6;
|
|
472
|
+
let n5, r8;
|
|
473
|
+
for (t6 = h3[0], n5 = 0; n5 < h3.length - 1; n5++) r8 = S2(this, e11[s5 + n5], i7, n5), r8 === T && (r8 = this._$AH[n5]), o10 || (o10 = !c3(r8) || r8 !== this._$AH[n5]), r8 === E ? t6 = E : t6 !== E && (t6 += (r8 ?? "") + h3[n5 + 1]), this._$AH[n5] = r8;
|
|
474
474
|
}
|
|
475
|
-
|
|
475
|
+
o10 && !e10 && this.j(t6);
|
|
476
476
|
}
|
|
477
|
-
j(
|
|
478
|
-
|
|
477
|
+
j(t6) {
|
|
478
|
+
t6 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t6 ?? "");
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
481
|
var H = class extends k {
|
|
482
482
|
constructor() {
|
|
483
483
|
super(...arguments), this.type = 3;
|
|
484
484
|
}
|
|
485
|
-
j(
|
|
486
|
-
this.element[this.name] =
|
|
485
|
+
j(t6) {
|
|
486
|
+
this.element[this.name] = t6 === E ? void 0 : t6;
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
489
|
var I = class extends k {
|
|
490
490
|
constructor() {
|
|
491
491
|
super(...arguments), this.type = 4;
|
|
492
492
|
}
|
|
493
|
-
j(
|
|
494
|
-
this.element.toggleAttribute(this.name, !!
|
|
493
|
+
j(t6) {
|
|
494
|
+
this.element.toggleAttribute(this.name, !!t6 && t6 !== E);
|
|
495
495
|
}
|
|
496
496
|
};
|
|
497
497
|
var L = class extends k {
|
|
498
|
-
constructor(
|
|
499
|
-
super(
|
|
498
|
+
constructor(t6, i7, s5, e10, h3) {
|
|
499
|
+
super(t6, i7, s5, e10, h3), this.type = 5;
|
|
500
500
|
}
|
|
501
|
-
_$AI(
|
|
502
|
-
if ((
|
|
503
|
-
const
|
|
504
|
-
|
|
501
|
+
_$AI(t6, i7 = this) {
|
|
502
|
+
if ((t6 = S2(this, t6, i7, 0) ?? E) === T) return;
|
|
503
|
+
const s5 = this._$AH, e10 = t6 === E && s5 !== E || t6.capture !== s5.capture || t6.once !== s5.once || t6.passive !== s5.passive, h3 = t6 !== E && (s5 === E || e10);
|
|
504
|
+
e10 && this.element.removeEventListener(this.name, this, s5), h3 && this.element.addEventListener(this.name, this, t6), this._$AH = t6;
|
|
505
505
|
}
|
|
506
|
-
handleEvent(
|
|
507
|
-
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element,
|
|
506
|
+
handleEvent(t6) {
|
|
507
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t6) : this._$AH.handleEvent(t6);
|
|
508
508
|
}
|
|
509
509
|
};
|
|
510
510
|
var z = class {
|
|
511
|
-
constructor(
|
|
512
|
-
this.element =
|
|
511
|
+
constructor(t6, i7, s5) {
|
|
512
|
+
this.element = t6, this.type = 6, this._$AN = void 0, this._$AM = i7, this.options = s5;
|
|
513
513
|
}
|
|
514
514
|
get _$AU() {
|
|
515
515
|
return this._$AM._$AU;
|
|
516
516
|
}
|
|
517
|
-
_$AI(
|
|
518
|
-
S2(this,
|
|
517
|
+
_$AI(t6) {
|
|
518
|
+
S2(this, t6);
|
|
519
519
|
}
|
|
520
520
|
};
|
|
521
|
+
var Z = { M: e3, P: h2, A: o3, C: 1, L: V, R: M, D: u2, V: S2, I: R, H: k, N: I, U: L, B: H, F: z };
|
|
521
522
|
var j = t2.litHtmlPolyfillSupport;
|
|
522
523
|
j?.(N, R), (t2.litHtmlVersions ?? (t2.litHtmlVersions = [])).push("3.3.0");
|
|
523
|
-
var B = (
|
|
524
|
-
const
|
|
525
|
-
let h3 =
|
|
524
|
+
var B = (t6, i7, s5) => {
|
|
525
|
+
const e10 = s5?.renderBefore ?? i7;
|
|
526
|
+
let h3 = e10._$litPart$;
|
|
526
527
|
if (void 0 === h3) {
|
|
527
|
-
const
|
|
528
|
-
|
|
528
|
+
const t7 = s5?.renderBefore ?? null;
|
|
529
|
+
e10._$litPart$ = h3 = new R(i7.insertBefore(l2(), t7), t7, void 0, s5 ?? {});
|
|
529
530
|
}
|
|
530
|
-
return h3._$AI(
|
|
531
|
+
return h3._$AI(t6), h3;
|
|
531
532
|
};
|
|
532
533
|
|
|
533
534
|
// ../../node_modules/lit-element/lit-element.js
|
|
@@ -538,12 +539,12 @@ var i4 = class extends y {
|
|
|
538
539
|
}
|
|
539
540
|
createRenderRoot() {
|
|
540
541
|
var _a;
|
|
541
|
-
const
|
|
542
|
-
return (_a = this.renderOptions).renderBefore ?? (_a.renderBefore =
|
|
542
|
+
const t6 = super.createRenderRoot();
|
|
543
|
+
return (_a = this.renderOptions).renderBefore ?? (_a.renderBefore = t6.firstChild), t6;
|
|
543
544
|
}
|
|
544
|
-
update(
|
|
545
|
-
const
|
|
546
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(
|
|
545
|
+
update(t6) {
|
|
546
|
+
const r8 = this.render();
|
|
547
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t6), this._$Do = B(r8, this.renderRoot, this.renderOptions);
|
|
547
548
|
}
|
|
548
549
|
connectedCallback() {
|
|
549
550
|
super.connectedCallback(), this._$Do?.setConnected(true);
|
|
@@ -562,93 +563,128 @@ o4?.({ LitElement: i4 });
|
|
|
562
563
|
|
|
563
564
|
// ../../node_modules/@lit/reactive-element/decorators/property.js
|
|
564
565
|
var o5 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
|
|
565
|
-
var r4 = (
|
|
566
|
-
const { kind: n5, metadata:
|
|
567
|
-
let
|
|
568
|
-
if (void 0 ===
|
|
569
|
-
const { name:
|
|
570
|
-
return { set(
|
|
571
|
-
const n6 =
|
|
572
|
-
|
|
573
|
-
}, init(
|
|
574
|
-
return void 0 !==
|
|
566
|
+
var r4 = (t6 = o5, e10, r8) => {
|
|
567
|
+
const { kind: n5, metadata: i7 } = r8;
|
|
568
|
+
let s5 = globalThis.litPropertyMetadata.get(i7);
|
|
569
|
+
if (void 0 === s5 && globalThis.litPropertyMetadata.set(i7, s5 = /* @__PURE__ */ new Map()), "setter" === n5 && ((t6 = Object.create(t6)).wrapped = true), s5.set(r8.name, t6), "accessor" === n5) {
|
|
570
|
+
const { name: o10 } = r8;
|
|
571
|
+
return { set(r9) {
|
|
572
|
+
const n6 = e10.get.call(this);
|
|
573
|
+
e10.set.call(this, r9), this.requestUpdate(o10, n6, t6);
|
|
574
|
+
}, init(e11) {
|
|
575
|
+
return void 0 !== e11 && this.C(o10, void 0, t6, e11), e11;
|
|
575
576
|
} };
|
|
576
577
|
}
|
|
577
578
|
if ("setter" === n5) {
|
|
578
|
-
const { name:
|
|
579
|
-
return function(
|
|
580
|
-
const n6 = this[
|
|
581
|
-
|
|
579
|
+
const { name: o10 } = r8;
|
|
580
|
+
return function(r9) {
|
|
581
|
+
const n6 = this[o10];
|
|
582
|
+
e10.call(this, r9), this.requestUpdate(o10, n6, t6);
|
|
582
583
|
};
|
|
583
584
|
}
|
|
584
585
|
throw Error("Unsupported decorator location: " + n5);
|
|
585
586
|
};
|
|
586
|
-
function n4(
|
|
587
|
-
return (
|
|
588
|
-
const
|
|
589
|
-
return
|
|
590
|
-
})(
|
|
587
|
+
function n4(t6) {
|
|
588
|
+
return (e10, o10) => "object" == typeof o10 ? r4(t6, e10, o10) : ((t7, e11, o11) => {
|
|
589
|
+
const r8 = e11.hasOwnProperty(o11);
|
|
590
|
+
return e11.constructor.createProperty(o11, t7), r8 ? Object.getOwnPropertyDescriptor(e11, o11) : void 0;
|
|
591
|
+
})(t6, e10, o10);
|
|
591
592
|
}
|
|
592
593
|
|
|
593
594
|
// ../../node_modules/@lit/reactive-element/decorators/state.js
|
|
594
|
-
function r5(
|
|
595
|
-
return n4({ ...
|
|
595
|
+
function r5(r8) {
|
|
596
|
+
return n4({ ...r8, state: true, attribute: false });
|
|
596
597
|
}
|
|
597
598
|
|
|
598
599
|
// ../../node_modules/@lit/reactive-element/decorators/base.js
|
|
599
|
-
var e4 = (
|
|
600
|
+
var e4 = (e10, t6, c5) => (c5.configurable = true, c5.enumerable = true, Reflect.decorate && "object" != typeof t6 && Object.defineProperty(e10, t6, c5), c5);
|
|
601
|
+
|
|
602
|
+
// ../../node_modules/@lit/reactive-element/decorators/query.js
|
|
603
|
+
function e5(e10, r8) {
|
|
604
|
+
return (n5, s5, i7) => {
|
|
605
|
+
const o10 = (t6) => t6.renderRoot?.querySelector(e10) ?? null;
|
|
606
|
+
if (r8) {
|
|
607
|
+
const { get: e11, set: r9 } = "object" == typeof s5 ? n5 : i7 ?? (() => {
|
|
608
|
+
const t6 = Symbol();
|
|
609
|
+
return { get() {
|
|
610
|
+
return this[t6];
|
|
611
|
+
}, set(e12) {
|
|
612
|
+
this[t6] = e12;
|
|
613
|
+
} };
|
|
614
|
+
})();
|
|
615
|
+
return e4(n5, s5, { get() {
|
|
616
|
+
let t6 = e11.call(this);
|
|
617
|
+
return void 0 === t6 && (t6 = o10(this), (null !== t6 || this.hasUpdated) && r9.call(this, t6)), t6;
|
|
618
|
+
} });
|
|
619
|
+
}
|
|
620
|
+
return e4(n5, s5, { get() {
|
|
621
|
+
return o10(this);
|
|
622
|
+
} });
|
|
623
|
+
};
|
|
624
|
+
}
|
|
600
625
|
|
|
601
626
|
// ../../node_modules/@lit/reactive-element/decorators/query-all.js
|
|
602
|
-
var
|
|
603
|
-
function r6(
|
|
604
|
-
return (n5,
|
|
605
|
-
return (this.renderRoot ?? (
|
|
627
|
+
var e6;
|
|
628
|
+
function r6(r8) {
|
|
629
|
+
return (n5, o10) => e4(n5, o10, { get() {
|
|
630
|
+
return (this.renderRoot ?? (e6 ?? (e6 = document.createDocumentFragment()))).querySelectorAll(r8);
|
|
606
631
|
} });
|
|
607
632
|
}
|
|
608
633
|
|
|
634
|
+
// ../../node_modules/@lit/reactive-element/decorators/query-assigned-elements.js
|
|
635
|
+
function o6(o10) {
|
|
636
|
+
return (e10, n5) => {
|
|
637
|
+
const { slot: r8, selector: s5 } = o10 ?? {}, c5 = "slot" + (r8 ? `[name=${r8}]` : ":not([name])");
|
|
638
|
+
return e4(e10, n5, { get() {
|
|
639
|
+
const t6 = this.renderRoot?.querySelector(c5), e11 = t6?.assignedElements(o10) ?? [];
|
|
640
|
+
return void 0 === s5 ? e11 : e11.filter((t7) => t7.matches(s5));
|
|
641
|
+
} });
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
|
|
609
645
|
// ../../node_modules/lit-html/directive.js
|
|
610
646
|
var t3 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
|
|
611
|
-
var
|
|
647
|
+
var e7 = (t6) => (...e10) => ({ _$litDirective$: t6, values: e10 });
|
|
612
648
|
var i5 = class {
|
|
613
|
-
constructor(
|
|
649
|
+
constructor(t6) {
|
|
614
650
|
}
|
|
615
651
|
get _$AU() {
|
|
616
652
|
return this._$AM._$AU;
|
|
617
653
|
}
|
|
618
|
-
_$AT(
|
|
619
|
-
this._$Ct =
|
|
654
|
+
_$AT(t6, e10, i7) {
|
|
655
|
+
this._$Ct = t6, this._$AM = e10, this._$Ci = i7;
|
|
620
656
|
}
|
|
621
|
-
_$AS(
|
|
622
|
-
return this.update(
|
|
657
|
+
_$AS(t6, e10) {
|
|
658
|
+
return this.update(t6, e10);
|
|
623
659
|
}
|
|
624
|
-
update(
|
|
625
|
-
return this.render(...
|
|
660
|
+
update(t6, e10) {
|
|
661
|
+
return this.render(...e10);
|
|
626
662
|
}
|
|
627
663
|
};
|
|
628
664
|
|
|
629
665
|
// ../../node_modules/lit-html/directives/unsafe-html.js
|
|
630
|
-
var
|
|
631
|
-
constructor(
|
|
632
|
-
if (super(
|
|
633
|
-
}
|
|
634
|
-
render(
|
|
635
|
-
if (
|
|
636
|
-
if (
|
|
637
|
-
if ("string" != typeof
|
|
638
|
-
if (
|
|
639
|
-
this.it =
|
|
640
|
-
const
|
|
641
|
-
return
|
|
666
|
+
var e8 = class extends i5 {
|
|
667
|
+
constructor(i7) {
|
|
668
|
+
if (super(i7), this.it = E, i7.type !== t3.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
669
|
+
}
|
|
670
|
+
render(r8) {
|
|
671
|
+
if (r8 === E || null == r8) return this._t = void 0, this.it = r8;
|
|
672
|
+
if (r8 === T) return r8;
|
|
673
|
+
if ("string" != typeof r8) throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
674
|
+
if (r8 === this.it) return this._t;
|
|
675
|
+
this.it = r8;
|
|
676
|
+
const s5 = [r8];
|
|
677
|
+
return s5.raw = s5, this._t = { _$litType$: this.constructor.resultType, strings: s5, values: [] };
|
|
642
678
|
}
|
|
643
679
|
};
|
|
644
|
-
|
|
645
|
-
var
|
|
680
|
+
e8.directiveName = "unsafeHTML", e8.resultType = 1;
|
|
681
|
+
var o7 = e7(e8);
|
|
646
682
|
|
|
647
683
|
// ../../node_modules/lit-html/directives/unsafe-svg.js
|
|
648
|
-
var t4 = class extends
|
|
684
|
+
var t4 = class extends e8 {
|
|
649
685
|
};
|
|
650
686
|
t4.directiveName = "unsafeSVG", t4.resultType = 2;
|
|
651
|
-
var
|
|
687
|
+
var o8 = e7(t4);
|
|
652
688
|
|
|
653
689
|
// node_modules/@triptease/icons/dist/src/icons/chevron-down.js
|
|
654
690
|
var chevronDown = `
|
|
@@ -710,6 +746,871 @@ var wallet = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor
|
|
|
710
746
|
<path d="M14.2275 3.02681C16.5581 2.53634 18.7497 4.3152 18.75 6.69674V7.09518C20.0437 7.42823 20.9998 8.60187 21 9.99948V16.9995C21 18.6046 19.7394 19.9153 18.1543 19.9956L18 19.9995H6C4.39489 19.9995 3.08421 18.7389 3.00391 17.1538L3 16.9995V8.43405C3.00022 6.66092 4.2424 5.12941 5.97754 4.76412L14.2275 3.02681ZM6 8.49948C5.17173 8.49948 4.50026 9.17127 4.5 9.99948V16.9995C4.5 17.8279 5.17157 18.4995 6 18.4995H18C18.8284 18.4995 19.5 17.8279 19.5 16.9995V9.99948C19.4997 9.17127 18.8283 8.49948 18 8.49948H6ZM16.5 11.9995C17.3283 11.9995 17.9997 12.6713 18 13.4995C18 14.3279 17.3284 14.9995 16.5 14.9995C15.6716 14.9995 15 14.3279 15 13.4995C15.0003 12.6713 15.6717 11.9995 16.5 11.9995ZM17.25 6.69674C17.2497 5.26791 15.9344 4.20028 14.5361 4.49459L6.28613 6.2319C5.67607 6.36042 5.16896 6.73055 4.85254 7.22799C5.20609 7.08147 5.59347 6.99948 6 6.99948H17.25V6.69674Z" />
|
|
711
747
|
</svg>`;
|
|
712
748
|
|
|
749
|
+
// ../../node_modules/tslib/tslib.es6.mjs
|
|
750
|
+
function __decorate(decorators, target, key, desc) {
|
|
751
|
+
var c5 = arguments.length, r8 = c5 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d3;
|
|
752
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r8 = Reflect.decorate(decorators, target, key, desc);
|
|
753
|
+
else for (var i7 = decorators.length - 1; i7 >= 0; i7--) if (d3 = decorators[i7]) r8 = (c5 < 3 ? d3(r8) : c5 > 3 ? d3(target, key, r8) : d3(target, key)) || r8;
|
|
754
|
+
return c5 > 3 && r8 && Object.defineProperty(target, key, r8), r8;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
// ../../node_modules/lit-html/directives/if-defined.js
|
|
758
|
+
var o9 = (o10) => o10 ?? E;
|
|
759
|
+
|
|
760
|
+
// ../../node_modules/lit-html/directive-helpers.js
|
|
761
|
+
var { I: t5 } = Z;
|
|
762
|
+
var s4 = () => document.createComment("");
|
|
763
|
+
var r7 = (o10, i7, n5) => {
|
|
764
|
+
const e10 = o10._$AA.parentNode, l3 = void 0 === i7 ? o10._$AB : i7._$AA;
|
|
765
|
+
if (void 0 === n5) {
|
|
766
|
+
const i8 = e10.insertBefore(s4(), l3), c5 = e10.insertBefore(s4(), l3);
|
|
767
|
+
n5 = new t5(i8, c5, o10, o10.options);
|
|
768
|
+
} else {
|
|
769
|
+
const t6 = n5._$AB.nextSibling, i8 = n5._$AM, c5 = i8 !== o10;
|
|
770
|
+
if (c5) {
|
|
771
|
+
let t7;
|
|
772
|
+
n5._$AQ?.(o10), n5._$AM = o10, void 0 !== n5._$AP && (t7 = o10._$AU) !== i8._$AU && n5._$AP(t7);
|
|
773
|
+
}
|
|
774
|
+
if (t6 !== l3 || c5) {
|
|
775
|
+
let o11 = n5._$AA;
|
|
776
|
+
for (; o11 !== t6; ) {
|
|
777
|
+
const t7 = o11.nextSibling;
|
|
778
|
+
e10.insertBefore(o11, l3), o11 = t7;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
return n5;
|
|
783
|
+
};
|
|
784
|
+
var v2 = (o10, t6, i7 = o10) => (o10._$AI(t6, i7), o10);
|
|
785
|
+
var u3 = {};
|
|
786
|
+
var m2 = (o10, t6 = u3) => o10._$AH = t6;
|
|
787
|
+
var p3 = (o10) => o10._$AH;
|
|
788
|
+
var M2 = (o10) => {
|
|
789
|
+
o10._$AP?.(false, true);
|
|
790
|
+
let t6 = o10._$AA;
|
|
791
|
+
const i7 = o10._$AB.nextSibling;
|
|
792
|
+
for (; t6 !== i7; ) {
|
|
793
|
+
const o11 = t6.nextSibling;
|
|
794
|
+
t6.remove(), t6 = o11;
|
|
795
|
+
}
|
|
796
|
+
};
|
|
797
|
+
|
|
798
|
+
// ../../node_modules/lit-html/directives/repeat.js
|
|
799
|
+
var u4 = (e10, s5, t6) => {
|
|
800
|
+
const r8 = /* @__PURE__ */ new Map();
|
|
801
|
+
for (let l3 = s5; l3 <= t6; l3++) r8.set(e10[l3], l3);
|
|
802
|
+
return r8;
|
|
803
|
+
};
|
|
804
|
+
var c4 = e7(class extends i5 {
|
|
805
|
+
constructor(e10) {
|
|
806
|
+
if (super(e10), e10.type !== t3.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
807
|
+
}
|
|
808
|
+
dt(e10, s5, t6) {
|
|
809
|
+
let r8;
|
|
810
|
+
void 0 === t6 ? t6 = s5 : void 0 !== s5 && (r8 = s5);
|
|
811
|
+
const l3 = [], o10 = [];
|
|
812
|
+
let i7 = 0;
|
|
813
|
+
for (const s6 of e10) l3[i7] = r8 ? r8(s6, i7) : i7, o10[i7] = t6(s6, i7), i7++;
|
|
814
|
+
return { values: o10, keys: l3 };
|
|
815
|
+
}
|
|
816
|
+
render(e10, s5, t6) {
|
|
817
|
+
return this.dt(e10, s5, t6).values;
|
|
818
|
+
}
|
|
819
|
+
update(s5, [t6, r8, c5]) {
|
|
820
|
+
const d3 = p3(s5), { values: p4, keys: a3 } = this.dt(t6, r8, c5);
|
|
821
|
+
if (!Array.isArray(d3)) return this.ut = a3, p4;
|
|
822
|
+
const h3 = this.ut ?? (this.ut = []), v3 = [];
|
|
823
|
+
let m3, y3, x2 = 0, j2 = d3.length - 1, k2 = 0, w2 = p4.length - 1;
|
|
824
|
+
for (; x2 <= j2 && k2 <= w2; ) if (null === d3[x2]) x2++;
|
|
825
|
+
else if (null === d3[j2]) j2--;
|
|
826
|
+
else if (h3[x2] === a3[k2]) v3[k2] = v2(d3[x2], p4[k2]), x2++, k2++;
|
|
827
|
+
else if (h3[j2] === a3[w2]) v3[w2] = v2(d3[j2], p4[w2]), j2--, w2--;
|
|
828
|
+
else if (h3[x2] === a3[w2]) v3[w2] = v2(d3[x2], p4[w2]), r7(s5, v3[w2 + 1], d3[x2]), x2++, w2--;
|
|
829
|
+
else if (h3[j2] === a3[k2]) v3[k2] = v2(d3[j2], p4[k2]), r7(s5, d3[x2], d3[j2]), j2--, k2++;
|
|
830
|
+
else if (void 0 === m3 && (m3 = u4(a3, k2, w2), y3 = u4(h3, x2, j2)), m3.has(h3[x2])) if (m3.has(h3[j2])) {
|
|
831
|
+
const e10 = y3.get(a3[k2]), t7 = void 0 !== e10 ? d3[e10] : null;
|
|
832
|
+
if (null === t7) {
|
|
833
|
+
const e11 = r7(s5, d3[x2]);
|
|
834
|
+
v2(e11, p4[k2]), v3[k2] = e11;
|
|
835
|
+
} else v3[k2] = v2(t7, p4[k2]), r7(s5, d3[x2], t7), d3[e10] = null;
|
|
836
|
+
k2++;
|
|
837
|
+
} else M2(d3[j2]), j2--;
|
|
838
|
+
else M2(d3[x2]), x2++;
|
|
839
|
+
for (; k2 <= w2; ) {
|
|
840
|
+
const e10 = r7(s5, v3[w2 + 1]);
|
|
841
|
+
v2(e10, p4[k2]), v3[k2++] = e10;
|
|
842
|
+
}
|
|
843
|
+
for (; x2 <= j2; ) {
|
|
844
|
+
const e10 = d3[x2++];
|
|
845
|
+
null !== e10 && M2(e10);
|
|
846
|
+
}
|
|
847
|
+
return this.ut = a3, m2(s5, v3), T;
|
|
848
|
+
}
|
|
849
|
+
});
|
|
850
|
+
|
|
851
|
+
// ../../node_modules/lit-html/directives/guard.js
|
|
852
|
+
var e9 = {};
|
|
853
|
+
var i6 = e7(class extends i5 {
|
|
854
|
+
constructor() {
|
|
855
|
+
super(...arguments), this.ot = e9;
|
|
856
|
+
}
|
|
857
|
+
render(r8, t6) {
|
|
858
|
+
return t6();
|
|
859
|
+
}
|
|
860
|
+
update(t6, [s5, e10]) {
|
|
861
|
+
if (Array.isArray(s5)) {
|
|
862
|
+
if (Array.isArray(this.ot) && this.ot.length === s5.length && s5.every((r8, t7) => r8 === this.ot[t7])) return T;
|
|
863
|
+
} else if (this.ot === s5) return T;
|
|
864
|
+
return this.ot = Array.isArray(s5) ? Array.from(s5) : s5, this.render(s5, e10);
|
|
865
|
+
}
|
|
866
|
+
});
|
|
867
|
+
|
|
868
|
+
// ../../node_modules/@triptease/icons/dist/src/icons/chevron-down.js
|
|
869
|
+
var chevronDown2 = `
|
|
870
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" class="bi bi-chevron-down chevron-down"
|
|
871
|
+
viewBox="0 0 16 16" role="presentation">
|
|
872
|
+
<path fill-rule="evenodd"
|
|
873
|
+
d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"
|
|
874
|
+
stroke="currentColor"/>
|
|
875
|
+
</svg>`;
|
|
876
|
+
|
|
877
|
+
// ../../node_modules/@triptease/icons/dist/src/icons/alert.js
|
|
878
|
+
var alert2 = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
879
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20ZM9.25 5.75C9.25 5.33579 9.58579 5 10 5C10.4142 5 10.75 5.33579 10.75 5.75V11.25C10.75 11.6642 10.4142 12 10 12C9.58579 12 9.25 11.6642 9.25 11.25V5.75ZM10.75 13.75C10.75 14.1642 10.4142 14.5 10 14.5C9.58579 14.5 9.25 14.1642 9.25 13.75C9.25 13.3358 9.58579 13 10 13C10.4142 13 10.75 13.3358 10.75 13.75Z" fill="#3B353B"/>
|
|
880
|
+
</svg>`;
|
|
881
|
+
|
|
882
|
+
// ../../node_modules/@triptease/tt-combobox/dist/src/styles.js
|
|
883
|
+
var styles = i`
|
|
884
|
+
:host {
|
|
885
|
+
display: flex;
|
|
886
|
+
flex-direction: var(--tt-combobox-flex-direction, row);
|
|
887
|
+
align-items: var(--tt-combobox-align-items, center);
|
|
888
|
+
justify-content: var(--tt-combobox-justify-content, initial);
|
|
889
|
+
align-content: var(--tt-combobox-align-content, initial);
|
|
890
|
+
gap: var(--tt-combobox-gap, 0.5rem);
|
|
891
|
+
font-size: var(--tt-combobox-font-size, var(--font-size-200));
|
|
892
|
+
color: var(--tt-combobox-color, var(--color-text-400));
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
:host([disabled]) .tt-combobox-container {
|
|
896
|
+
border-color: var(--tt-combobox-disabled-border-color, var(--color-border-200));
|
|
897
|
+
color: var(--tt-combobox-disabled-color, var(--color-text-200));
|
|
898
|
+
background-color: var(--tt-combobox-disabled-background-color, var(--color-surface-200));
|
|
899
|
+
pointer-events: none;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
.tt-combobox-container:focus-within {
|
|
903
|
+
outline: 5px auto Highlight;
|
|
904
|
+
outline: 5px auto -webkit-focus-ring-color;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
.tt-combobox-container:hover {
|
|
908
|
+
background-color: var(--tt-combobox-hover-background-color, var(--color-surface-300));
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
:host([invalid]) .tt-combobox-container,
|
|
912
|
+
:host(:state(interacted):invalid) .tt-combobox-container {
|
|
913
|
+
outline: 1px solid var(--color-alert-400, red);
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
.errormessage {
|
|
917
|
+
visibility: hidden;
|
|
918
|
+
display: flex;
|
|
919
|
+
align-items: center;
|
|
920
|
+
gap: var(--space-scale-0-5);
|
|
921
|
+
color: var(--color-alert-400, red);
|
|
922
|
+
|
|
923
|
+
&[data-hidden] {
|
|
924
|
+
display: none;
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
.errormessage svg path {
|
|
929
|
+
fill: var(--color-alert-400, red);
|
|
930
|
+
height: 20px;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
.tt-combobox-container:has([role="combobox"][aria-invalid="true"]) ~ .errormessage {
|
|
934
|
+
visibility: visible;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
:has([role="combobox"][aria-invalid="true"]) ::slotted([slot="error"]) {
|
|
938
|
+
color: var(--color-alert-400, darkred);
|
|
939
|
+
font-size: var(--font-size-100);
|
|
940
|
+
margin: 0;
|
|
941
|
+
font-weight: var(--font-weight-regular);
|
|
942
|
+
line-height: 1.2;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
slot[name="option"]::slotted(*) {
|
|
946
|
+
display: none;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
* {
|
|
950
|
+
box-sizing: border-box;
|
|
951
|
+
font-family: var(--font-family-sans);
|
|
952
|
+
cursor: inherit;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
.tt-combobox-container {
|
|
956
|
+
position: relative;
|
|
957
|
+
max-width: var(--tt-combobox-max-width, 300px);
|
|
958
|
+
min-width: var(--tt-combobox-min-width, 250px);
|
|
959
|
+
display: flex;
|
|
960
|
+
flex-direction: row;
|
|
961
|
+
align-items: center;
|
|
962
|
+
border-radius: var(--border-radius);
|
|
963
|
+
border-color: var(--tt-combobox-border-color, var(--color-border-400));
|
|
964
|
+
border-style: solid;
|
|
965
|
+
border-width: var(--tt-combobox-border-width, 1px);
|
|
966
|
+
background-color: var(--tt-combobox-background-color, var(--color-surface-100));
|
|
967
|
+
padding: 0.5rem;
|
|
968
|
+
gap: 0.25rem;
|
|
969
|
+
//width: 100%;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
[role="listbox"] {
|
|
973
|
+
display: none;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
[role="combobox"] {
|
|
977
|
+
width: 100%;
|
|
978
|
+
border-style: none;
|
|
979
|
+
background-color: transparent;
|
|
980
|
+
font-size: var(--tt-combobox-font-size, var(--font-size-200));
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
.hide-caret {
|
|
984
|
+
caret-color: transparent;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
[role="combobox"]::placeholder {
|
|
988
|
+
color: var(--tt-combobox-placeholder-color, var(--color-text-300));
|
|
989
|
+
font-family: var(--font-family-inter);
|
|
990
|
+
font-size: var(--tt-combobox-font-size, var(--font-size-200));
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
:host([disabled]) [role="combobox"]::placeholder {
|
|
994
|
+
color: var(--tt-combobox-disabled-placeholder-color, var(--color-text-200));
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
[role="combobox"]:placeholder-shown {
|
|
998
|
+
text-overflow: ellipsis;
|
|
999
|
+
overflow: clip;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
[role="combobox"]:focus {
|
|
1003
|
+
outline: none;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
[role="combobox"] ~ button {
|
|
1007
|
+
appearance: none;
|
|
1008
|
+
padding: 0;
|
|
1009
|
+
border-width: 0;
|
|
1010
|
+
background-color: transparent;
|
|
1011
|
+
aspect-ratio: 1;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
[role="combobox"] ~ button svg {
|
|
1015
|
+
transition: transform 0.2s ease-in-out;
|
|
1016
|
+
color: var(--tt-combobox-dropdown-color, var(--color-text-400));
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
[role="combobox"][aria-expanded="true"] ~ button svg {
|
|
1020
|
+
transform: rotate(180deg);
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
[role="combobox"][aria-expanded="true"] ~ [role="listbox"] {
|
|
1024
|
+
display: block;
|
|
1025
|
+
width: max-content;
|
|
1026
|
+
max-width: var(--tt-combobox-list-max-width, 35ch);
|
|
1027
|
+
min-width: 100%;
|
|
1028
|
+
background-color: var(--tt-combobox-list-background-color, var(--color-surface-100, white));
|
|
1029
|
+
border: 1px solid var(--tt-combobox-border-color, var(--color-border-300));
|
|
1030
|
+
border-radius: var(--border-radius);
|
|
1031
|
+
box-shadow: var(--box-shadow-lg);
|
|
1032
|
+
padding: 0;
|
|
1033
|
+
position: absolute;
|
|
1034
|
+
top: var(--tt-combobox-top, calc(100% + 0.5rem));
|
|
1035
|
+
left: var(--tt-combobox-left, 0);
|
|
1036
|
+
right: var(--tt-combobox-right, unset);
|
|
1037
|
+
bottom: var(--tt-combobox-bottom, unset);
|
|
1038
|
+
z-index: 2;
|
|
1039
|
+
margin: 0;
|
|
1040
|
+
list-style: none;
|
|
1041
|
+
max-height: var(--tt-combobox-max-height, 400px);
|
|
1042
|
+
overflow-y: auto;
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
li {
|
|
1046
|
+
display: flex;
|
|
1047
|
+
padding: 0.5rem;
|
|
1048
|
+
box-sizing: border-box;
|
|
1049
|
+
text-align: left;
|
|
1050
|
+
text-overflow: ellipsis;
|
|
1051
|
+
text-wrap: nowrap;
|
|
1052
|
+
align-items: center;
|
|
1053
|
+
gap: 0.25rem;
|
|
1054
|
+
max-width: 100%;
|
|
1055
|
+
width: 100%;
|
|
1056
|
+
overflow-y: visible;
|
|
1057
|
+
flex: 1;
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
input[type="checkbox"] {
|
|
1061
|
+
width: var(--checkbox-size, var(--space-scale-2));
|
|
1062
|
+
aspect-ratio: 1;
|
|
1063
|
+
flex: 0 0 auto;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
span {
|
|
1067
|
+
overflow: hidden;
|
|
1068
|
+
text-overflow: ellipsis;
|
|
1069
|
+
white-space: nowrap;
|
|
1070
|
+
flex: 1;
|
|
1071
|
+
line-height: 1.1;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
&.no-results {
|
|
1075
|
+
display: none;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
&[aria-hidden="true"] {
|
|
1079
|
+
visibility: hidden;
|
|
1080
|
+
display: none;
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
&:not(:has([role="option"]:not([data-value="select-all"]))) {
|
|
1085
|
+
.no-results {
|
|
1086
|
+
display: flex;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
.select-all {
|
|
1090
|
+
display: none;
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
[role="combobox"][aria-expanded="true"] ~ [role="listbox"][data-open-upward] {
|
|
1098
|
+
top: unset;
|
|
1099
|
+
bottom: calc(100% + 0.5rem);
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
slot[name="icon"] {
|
|
1103
|
+
display: inline-block;
|
|
1104
|
+
max-width: var(--tt-combobox-icon-size, 1rem);
|
|
1105
|
+
aspect-ratio: 1;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
[role="option"].select-all {
|
|
1109
|
+
border-bottom: 1px solid var(--color-border-300);
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
[aria-multiselectable="false"] [role="option"][aria-selected="true"] {
|
|
1113
|
+
color: var(--color-primary-400);
|
|
1114
|
+
font-weight: var(--font-weight-medium);
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
[role="option"]:is(:hover, [data-active="true"]) {
|
|
1118
|
+
background-color: var(--tt-combobox-option-background-color-hover, inherit);
|
|
1119
|
+
color: var(--tt-combobox-option-color-hover, inherit);
|
|
1120
|
+
|
|
1121
|
+
&:first-child {
|
|
1122
|
+
border-top-left-radius: var(--border-radius);
|
|
1123
|
+
border-top-right-radius: var(--border-radius);
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
&:last-child {
|
|
1127
|
+
border-bottom-left-radius: var(--border-radius);
|
|
1128
|
+
border-bottom-right-radius: var(--border-radius);
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
[role="option"]:hover {
|
|
1133
|
+
cursor: pointer;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
[role="option"][aria-disabled="true"] {
|
|
1137
|
+
pointer-events: none;
|
|
1138
|
+
opacity: 0.5;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
[role="listbox"][aria-multiselectable="true"] [role="option"] input[type="checkbox"] {
|
|
1142
|
+
accent-color: var(--color-primary-400);
|
|
1143
|
+
width: var(--checkbox-size, var(--space-scale-2));
|
|
1144
|
+
aspect-ratio: 1;
|
|
1145
|
+
pointer-events: none;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
[role="listbox"][aria-multiselectable="true"] [role="option"][aria-disabled="true"] input[type="checkbox"] {
|
|
1149
|
+
pointer-events: none;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
label {
|
|
1153
|
+
font-size: var(--tt-combobox-label-font-size, inherit);
|
|
1154
|
+
color: var(--tt-combobox-label-color, inherit);
|
|
1155
|
+
font-weight: var(--tt-combobox-label-font-weight, inherit);
|
|
1156
|
+
|
|
1157
|
+
&[data-hidden] {
|
|
1158
|
+
display: none;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
}
|
|
1162
|
+
`;
|
|
1163
|
+
|
|
1164
|
+
// ../../node_modules/@triptease/tt-combobox/dist/src/TtCombobox.js
|
|
1165
|
+
var TtCombobox = class extends i4 {
|
|
1166
|
+
get form() {
|
|
1167
|
+
return this.internals.form;
|
|
1168
|
+
}
|
|
1169
|
+
get _isAllSelected() {
|
|
1170
|
+
return Array.from(this._selectableVisibleOptions).every((option) => Array.from(this._selectedVisibleOptions).includes(option));
|
|
1171
|
+
}
|
|
1172
|
+
constructor() {
|
|
1173
|
+
super();
|
|
1174
|
+
this.multiselect = false;
|
|
1175
|
+
this.disabled = false;
|
|
1176
|
+
this.invalid = false;
|
|
1177
|
+
this.displaySelectAll = false;
|
|
1178
|
+
this.required = false;
|
|
1179
|
+
this.name = "";
|
|
1180
|
+
this.ariaLabelledby = E;
|
|
1181
|
+
this.hideCaret = false;
|
|
1182
|
+
this.openUpward = false;
|
|
1183
|
+
this._activeOption = -1;
|
|
1184
|
+
this._expanded = false;
|
|
1185
|
+
this._filter = "";
|
|
1186
|
+
this.value = [];
|
|
1187
|
+
this._slotObserver = new MutationObserver((mutations) => {
|
|
1188
|
+
mutations.forEach((mutation) => {
|
|
1189
|
+
if (mutation.type === "attributes") {
|
|
1190
|
+
this.requestUpdate("options");
|
|
1191
|
+
}
|
|
1192
|
+
});
|
|
1193
|
+
});
|
|
1194
|
+
this._valueChanged = () => {
|
|
1195
|
+
this._selectableOptions.forEach((option) => {
|
|
1196
|
+
if (this.value.includes(option.dataset.value)) {
|
|
1197
|
+
this._checkOption(option);
|
|
1198
|
+
} else {
|
|
1199
|
+
this._uncheckOption(option);
|
|
1200
|
+
}
|
|
1201
|
+
});
|
|
1202
|
+
this.internals.setFormValue(JSON.stringify(this.value));
|
|
1203
|
+
};
|
|
1204
|
+
this._listenForOptionChange = () => {
|
|
1205
|
+
this.options.forEach((option) => {
|
|
1206
|
+
this._slotObserver.observe(option, { attributes: true, attributeFilter: ["selected", "disabled", "hidden"] });
|
|
1207
|
+
});
|
|
1208
|
+
};
|
|
1209
|
+
this._selectAll = (event) => {
|
|
1210
|
+
event.preventDefault();
|
|
1211
|
+
event.stopPropagation();
|
|
1212
|
+
if (this.value.length === this._selectableOptions.length) {
|
|
1213
|
+
this.value = [];
|
|
1214
|
+
} else {
|
|
1215
|
+
this.value = Array.from(this._selectableOptions).map((option) => option.dataset.value);
|
|
1216
|
+
}
|
|
1217
|
+
};
|
|
1218
|
+
this._renderSelectAll = () => {
|
|
1219
|
+
if (!this.multiselect || !this.displaySelectAll) {
|
|
1220
|
+
return E;
|
|
1221
|
+
}
|
|
1222
|
+
const id = `${this.id}-option-select-all`;
|
|
1223
|
+
const active = this._getActiveOptionId() === id;
|
|
1224
|
+
const selected = this._isAllSelected;
|
|
1225
|
+
return x`
|
|
1226
|
+
<li
|
|
1227
|
+
class="select-all"
|
|
1228
|
+
role="option"
|
|
1229
|
+
id="${this.id}-option-select-all"
|
|
1230
|
+
aria-selected="${selected}"
|
|
1231
|
+
data-active=${active}
|
|
1232
|
+
@click="${this._selectAll}"
|
|
1233
|
+
@mousedown="${(evt) => evt.preventDefault()}"
|
|
1234
|
+
data-value="select-all"
|
|
1235
|
+
part="option"
|
|
1236
|
+
>
|
|
1237
|
+
<input type="checkbox" ?checked=${selected} role="presentation" tabindex="-1" part="checkbox">
|
|
1238
|
+
Select all
|
|
1239
|
+
</li>`;
|
|
1240
|
+
};
|
|
1241
|
+
this._renderChevron = () => x`
|
|
1242
|
+
<button type="button" aria-label="Expand" @click="${this._onChevronClick}" aria-expanded="${this._expanded}"
|
|
1243
|
+
aria-controls="${this.id}-list" tabindex="-1" ?disabled=${this.disabled} part="arrow">
|
|
1244
|
+
${o8(chevronDown2)}
|
|
1245
|
+
</button>
|
|
1246
|
+
`;
|
|
1247
|
+
this.internals = this.attachInternals();
|
|
1248
|
+
}
|
|
1249
|
+
_handleFocusOut(e10) {
|
|
1250
|
+
if (!this.shadowRoot.contains(e10.relatedTarget)) {
|
|
1251
|
+
this._expanded = false;
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
_onFocus() {
|
|
1255
|
+
this._comboboxInput.focus();
|
|
1256
|
+
}
|
|
1257
|
+
connectedCallback() {
|
|
1258
|
+
super.connectedCallback();
|
|
1259
|
+
this.addEventListener("focus", this._onFocus);
|
|
1260
|
+
}
|
|
1261
|
+
disconnectedCallback() {
|
|
1262
|
+
super.disconnectedCallback();
|
|
1263
|
+
this.removeEventListener("focus", this._onFocus);
|
|
1264
|
+
}
|
|
1265
|
+
firstUpdated(changedProperties) {
|
|
1266
|
+
this.internals.setFormValue(JSON.stringify(this.value));
|
|
1267
|
+
this._reportValidity();
|
|
1268
|
+
this._listenForOptionChange();
|
|
1269
|
+
super.firstUpdated(changedProperties);
|
|
1270
|
+
}
|
|
1271
|
+
update(changedProperties) {
|
|
1272
|
+
if (changedProperties.has("value")) {
|
|
1273
|
+
this._valueChanged();
|
|
1274
|
+
if (changedProperties.get("value") !== void 0 && JSON.stringify(changedProperties.get("value")) !== JSON.stringify(this.value)) {
|
|
1275
|
+
this._dispatchSelectedOptions();
|
|
1276
|
+
this._reportValidity();
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
if (changedProperties.has("_expanded") && changedProperties.get("_expanded") && !this._expanded) {
|
|
1280
|
+
this.internals.states.add("interacted");
|
|
1281
|
+
}
|
|
1282
|
+
if (changedProperties.has("options")) {
|
|
1283
|
+
this.updateComplete.then(() => {
|
|
1284
|
+
this.value = Array.from(/* @__PURE__ */ new Set([...this.value, ...Array.from(this._selectedOptions).map((option) => option.dataset.value)]));
|
|
1285
|
+
this._listenForOptionChange();
|
|
1286
|
+
});
|
|
1287
|
+
}
|
|
1288
|
+
super.update(changedProperties);
|
|
1289
|
+
}
|
|
1290
|
+
_reportValidity() {
|
|
1291
|
+
if (this.required && !this.value.length) {
|
|
1292
|
+
const errorMessage = this.multiselect ? "Please select at least one option" : "Please select an option";
|
|
1293
|
+
this.internals.setValidity({
|
|
1294
|
+
valueMissing: true
|
|
1295
|
+
}, errorMessage, this._comboboxInput);
|
|
1296
|
+
this.internals.states.add("--invalid");
|
|
1297
|
+
} else if (!this.internals.validity.valid) {
|
|
1298
|
+
this.internals.setValidity({});
|
|
1299
|
+
if (this.internals.states.has("--invalid")) {
|
|
1300
|
+
this.internals.states.delete("--invalid");
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
get labels() {
|
|
1305
|
+
return [...this.internals.labels];
|
|
1306
|
+
}
|
|
1307
|
+
get labelContent() {
|
|
1308
|
+
if (this.ariaLabel !== null) {
|
|
1309
|
+
return this.ariaLabel;
|
|
1310
|
+
}
|
|
1311
|
+
return this.labels.map((label) => label.innerText).join(", ");
|
|
1312
|
+
}
|
|
1313
|
+
_onKeyUp(event) {
|
|
1314
|
+
switch (event.key) {
|
|
1315
|
+
case "ArrowDown":
|
|
1316
|
+
event.preventDefault();
|
|
1317
|
+
if (!this._expanded) {
|
|
1318
|
+
this._expanded = true;
|
|
1319
|
+
this._activeOption = -1;
|
|
1320
|
+
} else {
|
|
1321
|
+
this._activeOption = Math.min(this._visibleOptions.length - 1, this._activeOption + 1);
|
|
1322
|
+
}
|
|
1323
|
+
break;
|
|
1324
|
+
case "ArrowUp":
|
|
1325
|
+
event.preventDefault();
|
|
1326
|
+
if (this._expanded) {
|
|
1327
|
+
this._activeOption = Math.max(0, this._activeOption - 1);
|
|
1328
|
+
}
|
|
1329
|
+
break;
|
|
1330
|
+
case "Escape":
|
|
1331
|
+
event.preventDefault();
|
|
1332
|
+
if (this._expanded) {
|
|
1333
|
+
this._expanded = false;
|
|
1334
|
+
} else if (this._filter !== "") {
|
|
1335
|
+
this._filter = "";
|
|
1336
|
+
}
|
|
1337
|
+
break;
|
|
1338
|
+
case "Enter":
|
|
1339
|
+
event.preventDefault();
|
|
1340
|
+
if (this._expanded) {
|
|
1341
|
+
this._visibleOptions[this._activeOption].click();
|
|
1342
|
+
}
|
|
1343
|
+
break;
|
|
1344
|
+
default:
|
|
1345
|
+
break;
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
_uncheckOption(option) {
|
|
1349
|
+
if (option.dataset.deselectable !== "true")
|
|
1350
|
+
return;
|
|
1351
|
+
option.setAttribute("aria-selected", "false");
|
|
1352
|
+
const checkbox = option.querySelector('input[type="checkbox"]');
|
|
1353
|
+
if (checkbox) {
|
|
1354
|
+
checkbox.checked = false;
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
_checkOption(option) {
|
|
1358
|
+
if (!this.multiselect) {
|
|
1359
|
+
this._selectableOptions.forEach((opt) => {
|
|
1360
|
+
this._uncheckOption(opt);
|
|
1361
|
+
});
|
|
1362
|
+
}
|
|
1363
|
+
option.setAttribute("aria-selected", "true");
|
|
1364
|
+
const checkbox = option.querySelector('input[type="checkbox"]');
|
|
1365
|
+
if (checkbox) {
|
|
1366
|
+
checkbox.checked = true;
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
_getActiveOptionId() {
|
|
1370
|
+
if (this._activeOption === -1 || this._visibleOptions.length === 0) {
|
|
1371
|
+
return void 0;
|
|
1372
|
+
}
|
|
1373
|
+
const option = this._visibleOptions[this._activeOption];
|
|
1374
|
+
return option.id;
|
|
1375
|
+
}
|
|
1376
|
+
_onClick() {
|
|
1377
|
+
this._expanded = !this._expanded;
|
|
1378
|
+
if (this._expanded) {
|
|
1379
|
+
this.shadowRoot?.querySelector('input[role="combobox"]')?.focus();
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
_onChevronClick() {
|
|
1383
|
+
this.shadowRoot?.querySelector('input[role="combobox"]')?.focus();
|
|
1384
|
+
}
|
|
1385
|
+
_onClickOption(event) {
|
|
1386
|
+
event.preventDefault();
|
|
1387
|
+
event.stopPropagation();
|
|
1388
|
+
const option = event.currentTarget;
|
|
1389
|
+
const selectedValue = option.dataset.value;
|
|
1390
|
+
if (this.multiselect) {
|
|
1391
|
+
if (this.value.includes(selectedValue)) {
|
|
1392
|
+
this.value = this.value.filter((value) => value !== selectedValue);
|
|
1393
|
+
} else {
|
|
1394
|
+
this.value = [...this.value, selectedValue];
|
|
1395
|
+
}
|
|
1396
|
+
} else {
|
|
1397
|
+
this.value = [selectedValue];
|
|
1398
|
+
this._expanded = false;
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
_onInput(event) {
|
|
1402
|
+
const input = event.target;
|
|
1403
|
+
const filter = input.value.toLowerCase();
|
|
1404
|
+
if (filter !== "" && !this._expanded) {
|
|
1405
|
+
this._expanded = true;
|
|
1406
|
+
}
|
|
1407
|
+
this._activeOption = -1;
|
|
1408
|
+
this._filter = filter;
|
|
1409
|
+
}
|
|
1410
|
+
_dispatchSelectedOptions() {
|
|
1411
|
+
this.dispatchEvent(new Event("change", {
|
|
1412
|
+
bubbles: true,
|
|
1413
|
+
composed: true
|
|
1414
|
+
}));
|
|
1415
|
+
}
|
|
1416
|
+
get _isValid() {
|
|
1417
|
+
return this.internals.validity.valid && !this.invalid;
|
|
1418
|
+
}
|
|
1419
|
+
_renderCombobox() {
|
|
1420
|
+
const placeHolderValue = i6([this.placeholder, this.disabled, this.value, this.activeOptions.length, this.selectAllPlaceholder], () => {
|
|
1421
|
+
if (this.placeholder) {
|
|
1422
|
+
return this.placeholder;
|
|
1423
|
+
}
|
|
1424
|
+
if (this.disabled) {
|
|
1425
|
+
return "Disabled";
|
|
1426
|
+
}
|
|
1427
|
+
if (!this._selectedVisibleOptions.length) {
|
|
1428
|
+
return "No options selected";
|
|
1429
|
+
}
|
|
1430
|
+
if (this._selectedVisibleOptions.length === 1) {
|
|
1431
|
+
return this._selectedVisibleOptions[0].textContent?.trim();
|
|
1432
|
+
}
|
|
1433
|
+
if (this._isAllSelected) {
|
|
1434
|
+
return this.selectAllPlaceholder || "All options selected";
|
|
1435
|
+
}
|
|
1436
|
+
return `${this._selectedVisibleOptions.length} options selected`;
|
|
1437
|
+
});
|
|
1438
|
+
return x`
|
|
1439
|
+
<input
|
|
1440
|
+
type="text"
|
|
1441
|
+
id="${this.id}"
|
|
1442
|
+
name="${this.name}"
|
|
1443
|
+
autocomplete="off"
|
|
1444
|
+
aria-label="${this.labelContent}"
|
|
1445
|
+
aria-labelledby="${this.ariaLabelledby}"
|
|
1446
|
+
role="combobox"
|
|
1447
|
+
aria-controls="${this.id}-list"
|
|
1448
|
+
aria-expanded="${this._expanded}"
|
|
1449
|
+
aria-autocomplete="list"
|
|
1450
|
+
aria-haspopup="listbox"
|
|
1451
|
+
aria-disabled="${this.disabled}"
|
|
1452
|
+
aria-invalid="${!this._isValid}"
|
|
1453
|
+
aria-errormessage="${!this._isValid ? `error-msg-${this.id}` : E}"
|
|
1454
|
+
aria-required="${this.required}"
|
|
1455
|
+
?disabled=${this.disabled}
|
|
1456
|
+
aria-activedescendant="${o9(this._getActiveOptionId())}"
|
|
1457
|
+
@input="${this._onInput}"
|
|
1458
|
+
.value="${this._filter}"
|
|
1459
|
+
.placeholder="${placeHolderValue}"
|
|
1460
|
+
@focusout="${this._handleFocusOut}"
|
|
1461
|
+
part="input"
|
|
1462
|
+
class=${this.hideCaret ? "hide-caret" : ""}
|
|
1463
|
+
/>`;
|
|
1464
|
+
}
|
|
1465
|
+
_renderOption(option) {
|
|
1466
|
+
if (this._filter !== "" && !option.value.toLowerCase().includes(this._filter) && !option.innerText.toLowerCase().includes(this._filter)) {
|
|
1467
|
+
return E;
|
|
1468
|
+
}
|
|
1469
|
+
const id = `${this.id}-option-${option.value}`;
|
|
1470
|
+
const active = this._getActiveOptionId() === id;
|
|
1471
|
+
const selected = Boolean(this.multiselect && option.selected);
|
|
1472
|
+
return x`
|
|
1473
|
+
<li
|
|
1474
|
+
role="option"
|
|
1475
|
+
id="${this.id}-option-${option.value}"
|
|
1476
|
+
aria-selected=${this.multiselect && option.selected}
|
|
1477
|
+
data-active=${active}
|
|
1478
|
+
@click="${this._onClickOption}"
|
|
1479
|
+
@mousedown="${(event) => event.preventDefault()}"
|
|
1480
|
+
data-value="${option.value}"
|
|
1481
|
+
aria-disabled=${option.disabled}
|
|
1482
|
+
aria-hidden=${option.hidden || E}
|
|
1483
|
+
data-deselectable=${!option.selected}
|
|
1484
|
+
part="option"
|
|
1485
|
+
>
|
|
1486
|
+
${this.multiselect ? x`<input type="checkbox" ?checked=${selected}
|
|
1487
|
+
role="presentation" tabindex="-1" part="checkbox">` : E}
|
|
1488
|
+
<span>${o7(option.innerHTML)}</span>
|
|
1489
|
+
</li>`;
|
|
1490
|
+
}
|
|
1491
|
+
_hasErrorContent() {
|
|
1492
|
+
return this.errorElements?.length > 0;
|
|
1493
|
+
}
|
|
1494
|
+
render() {
|
|
1495
|
+
return x`
|
|
1496
|
+
<div class="tt-combobox-container" @focus="${this._onFocus}" @keydown="${this._onKeyUp}" @click="${this._onClick}"
|
|
1497
|
+
aria-disabled="${this.disabled}" part="container">
|
|
1498
|
+
<slot name="icon" part="icon"></slot>
|
|
1499
|
+
${this._renderCombobox()}
|
|
1500
|
+
${this._renderChevron()}
|
|
1501
|
+
<ul
|
|
1502
|
+
id="${this.id}-list"
|
|
1503
|
+
role="listbox"
|
|
1504
|
+
aria-multiselectable="${this.multiselect}"
|
|
1505
|
+
aria-label="${this.labelContent}"
|
|
1506
|
+
part="listbox"
|
|
1507
|
+
?data-open-upward="${this.openUpward}"
|
|
1508
|
+
>
|
|
1509
|
+
${this._renderSelectAll()}
|
|
1510
|
+
|
|
1511
|
+
${c4(this.options, (opt) => opt.value, this._renderOption.bind(this))}
|
|
1512
|
+
|
|
1513
|
+
<li part="no-results" class="no-results">No results</li>
|
|
1514
|
+
</ul>
|
|
1515
|
+
</div>
|
|
1516
|
+
<slot name="option" @slotchange=${() => this.requestUpdate("options")}></slot>
|
|
1517
|
+
<div class="errormessage" id="error-msg-${this.id}" role="alert" aria-atomic="true"
|
|
1518
|
+
?data-hidden="${!this._hasErrorContent()}" part="error">
|
|
1519
|
+
${o8(alert2)}
|
|
1520
|
+
<slot name="error"></slot>
|
|
1521
|
+
</div>
|
|
1522
|
+
`;
|
|
1523
|
+
}
|
|
1524
|
+
};
|
|
1525
|
+
TtCombobox.styles = styles;
|
|
1526
|
+
TtCombobox.formAssociated = true;
|
|
1527
|
+
TtCombobox.shadowRootOptions = {
|
|
1528
|
+
...i4.shadowRootOptions,
|
|
1529
|
+
delegatesFocus: true
|
|
1530
|
+
};
|
|
1531
|
+
__decorate([
|
|
1532
|
+
n4({ type: Boolean })
|
|
1533
|
+
], TtCombobox.prototype, "multiselect", void 0);
|
|
1534
|
+
__decorate([
|
|
1535
|
+
n4({ type: Boolean })
|
|
1536
|
+
], TtCombobox.prototype, "disabled", void 0);
|
|
1537
|
+
__decorate([
|
|
1538
|
+
n4({ type: Boolean })
|
|
1539
|
+
], TtCombobox.prototype, "invalid", void 0);
|
|
1540
|
+
__decorate([
|
|
1541
|
+
n4({ type: Boolean, attribute: "display-select-all" })
|
|
1542
|
+
], TtCombobox.prototype, "displaySelectAll", void 0);
|
|
1543
|
+
__decorate([
|
|
1544
|
+
n4({ type: Boolean })
|
|
1545
|
+
], TtCombobox.prototype, "required", void 0);
|
|
1546
|
+
__decorate([
|
|
1547
|
+
n4({ type: String })
|
|
1548
|
+
], TtCombobox.prototype, "name", void 0);
|
|
1549
|
+
__decorate([
|
|
1550
|
+
n4({ type: String, attribute: "aria-labelledby" })
|
|
1551
|
+
], TtCombobox.prototype, "ariaLabelledby", void 0);
|
|
1552
|
+
__decorate([
|
|
1553
|
+
n4({ type: Boolean, attribute: "hide-caret" })
|
|
1554
|
+
], TtCombobox.prototype, "hideCaret", void 0);
|
|
1555
|
+
__decorate([
|
|
1556
|
+
n4({ type: String })
|
|
1557
|
+
], TtCombobox.prototype, "placeholder", void 0);
|
|
1558
|
+
__decorate([
|
|
1559
|
+
n4({ type: String, attribute: "select-all-placeholder" })
|
|
1560
|
+
], TtCombobox.prototype, "selectAllPlaceholder", void 0);
|
|
1561
|
+
__decorate([
|
|
1562
|
+
n4({ type: Boolean, attribute: "open-upward" })
|
|
1563
|
+
], TtCombobox.prototype, "openUpward", void 0);
|
|
1564
|
+
__decorate([
|
|
1565
|
+
r5()
|
|
1566
|
+
], TtCombobox.prototype, "_activeOption", void 0);
|
|
1567
|
+
__decorate([
|
|
1568
|
+
r5()
|
|
1569
|
+
], TtCombobox.prototype, "_expanded", void 0);
|
|
1570
|
+
__decorate([
|
|
1571
|
+
r5()
|
|
1572
|
+
], TtCombobox.prototype, "_filter", void 0);
|
|
1573
|
+
__decorate([
|
|
1574
|
+
o6({ slot: "option", selector: "option" })
|
|
1575
|
+
], TtCombobox.prototype, "options", void 0);
|
|
1576
|
+
__decorate([
|
|
1577
|
+
o6({ slot: "option", selector: "option:not([disabled])" })
|
|
1578
|
+
], TtCombobox.prototype, "activeOptions", void 0);
|
|
1579
|
+
__decorate([
|
|
1580
|
+
o6({ slot: "error" })
|
|
1581
|
+
], TtCombobox.prototype, "errorElements", void 0);
|
|
1582
|
+
__decorate([
|
|
1583
|
+
r6('li[role="option"]:not([aria-disabled="true"], [aria-hidden="true"])')
|
|
1584
|
+
], TtCombobox.prototype, "_visibleOptions", void 0);
|
|
1585
|
+
__decorate([
|
|
1586
|
+
r6('li[role="option"]:not([aria-disabled="true"], [data-value="select-all"])')
|
|
1587
|
+
], TtCombobox.prototype, "_selectableOptions", void 0);
|
|
1588
|
+
__decorate([
|
|
1589
|
+
r6('li[role="option"]:not([aria-disabled="true"], [data-value="select-all"], [aria-hidden="true"])')
|
|
1590
|
+
], TtCombobox.prototype, "_selectableVisibleOptions", void 0);
|
|
1591
|
+
__decorate([
|
|
1592
|
+
r6('li[role="option"]:not([data-value="select-all"])[aria-selected="true"]')
|
|
1593
|
+
], TtCombobox.prototype, "_selectedOptions", void 0);
|
|
1594
|
+
__decorate([
|
|
1595
|
+
r6('li[role="option"]:not([data-value="select-all"], [aria-hidden="true"])[aria-selected="true"]')
|
|
1596
|
+
], TtCombobox.prototype, "_selectedVisibleOptions", void 0);
|
|
1597
|
+
__decorate([
|
|
1598
|
+
e5('input[role="combobox"]')
|
|
1599
|
+
], TtCombobox.prototype, "_comboboxInput", void 0);
|
|
1600
|
+
__decorate([
|
|
1601
|
+
e5("button:has(svg)")
|
|
1602
|
+
], TtCombobox.prototype, "_chevronButton", void 0);
|
|
1603
|
+
__decorate([
|
|
1604
|
+
n4({ type: Array, attribute: "value" })
|
|
1605
|
+
], TtCombobox.prototype, "value", void 0);
|
|
1606
|
+
|
|
1607
|
+
// ../../node_modules/@triptease/tt-combobox/dist/src/tt-combobox.js
|
|
1608
|
+
if (typeof window !== "undefined") {
|
|
1609
|
+
if (!window.customElements.get("tt-combobox")) {
|
|
1610
|
+
window.customElements.define("tt-combobox", TtCombobox);
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
|
|
713
1614
|
// src/styles.ts
|
|
714
1615
|
var visuallyHiddenCss = i`
|
|
715
1616
|
position: absolute;
|
|
@@ -723,7 +1624,7 @@ var visuallyHiddenCss = i`
|
|
|
723
1624
|
clip-path: inset(50%);
|
|
724
1625
|
white-space: nowrap;
|
|
725
1626
|
`;
|
|
726
|
-
var
|
|
1627
|
+
var styles2 = i`
|
|
727
1628
|
:host {
|
|
728
1629
|
--nav-bar-width: 260px;
|
|
729
1630
|
|
|
@@ -817,8 +1718,8 @@ var styles = i`
|
|
|
817
1718
|
|
|
818
1719
|
.tertiary-nav.sidebar-closed {
|
|
819
1720
|
.external-link,
|
|
820
|
-
|
|
821
|
-
|
|
1721
|
+
hr,
|
|
1722
|
+
#client-selector {
|
|
822
1723
|
display: none;
|
|
823
1724
|
visibility: hidden;
|
|
824
1725
|
}
|
|
@@ -1046,6 +1947,31 @@ var styles = i`
|
|
|
1046
1947
|
visibility: visible;
|
|
1047
1948
|
opacity: 1;
|
|
1048
1949
|
}
|
|
1950
|
+
|
|
1951
|
+
#client-selector {
|
|
1952
|
+
display: flex;
|
|
1953
|
+
align-items: center;
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
#client-selector tt-combobox {
|
|
1957
|
+
--tt-combobox-color: var(--color-text-inverted-400);
|
|
1958
|
+
--tt-combobox-dropdown-color: var(--color-text-inverted-400);
|
|
1959
|
+
--tt-combobox-list-background-color: var(--color-surface-inverted-100);
|
|
1960
|
+
--tt-combobox-option-background-color-hover: var(--color-surface-inverted-200);
|
|
1961
|
+
--tt-combobox-placeholder-color: var(--color-text-inverted-300);
|
|
1962
|
+
--tt-combobox-background-color: var(--color-surface-inverted-100);
|
|
1963
|
+
--tt-combobox-hover-background-color: var(--color-surface-inverted-200);
|
|
1964
|
+
--tt-combobox-list-max-width: 80ch;
|
|
1965
|
+
--tt-combobox-min-width: 244px;
|
|
1966
|
+
--tt-combobox-max-width: 244px;
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
.single-client-name {
|
|
1970
|
+
height: 39px;
|
|
1971
|
+
padding: var(--space-scale-1); /* match tt-combobox height */
|
|
1972
|
+
font-size: var(--font-size-100);
|
|
1973
|
+
color: var(--color-text-inverted-400);
|
|
1974
|
+
}
|
|
1049
1975
|
`;
|
|
1050
1976
|
|
|
1051
1977
|
// src/triptease-logo.ts
|
|
@@ -1070,11 +1996,25 @@ var urlMappings = {
|
|
|
1070
1996
|
"/chat/insights/$CLIENT_KEY": "/channels"
|
|
1071
1997
|
};
|
|
1072
1998
|
|
|
1999
|
+
// src/Routes.ts
|
|
2000
|
+
var Routes = {
|
|
2001
|
+
CampaignManager: "CampaignManager"
|
|
2002
|
+
};
|
|
2003
|
+
|
|
1073
2004
|
// src/TtNavbar.ts
|
|
2005
|
+
var jsonArrayConverter = (value) => {
|
|
2006
|
+
if (!value) return [];
|
|
2007
|
+
try {
|
|
2008
|
+
return JSON.parse(value);
|
|
2009
|
+
} catch {
|
|
2010
|
+
return [];
|
|
2011
|
+
}
|
|
2012
|
+
};
|
|
1074
2013
|
var TtNavbar = class extends i4 {
|
|
1075
2014
|
constructor() {
|
|
1076
2015
|
super(...arguments);
|
|
1077
2016
|
this.campaignManagerUrl = "https://app.campaign-manager.triptease.io";
|
|
2017
|
+
this.clients = [];
|
|
1078
2018
|
this.sidebarOpen = true;
|
|
1079
2019
|
/*
|
|
1080
2020
|
* Set the active state for the current page.
|
|
@@ -1100,11 +2040,9 @@ var TtNavbar = class extends i4 {
|
|
|
1100
2040
|
const currentPath = window.location.pathname;
|
|
1101
2041
|
let bestMatch;
|
|
1102
2042
|
let bestMatchLength = 0;
|
|
1103
|
-
if (this.
|
|
2043
|
+
if (this.activeRoute === Routes.CampaignManager) {
|
|
1104
2044
|
const links = Object.values(this.allNavLinks);
|
|
1105
|
-
bestMatch = links.find(
|
|
1106
|
-
(link) => link.href.includes(this.campaignManagerUrl)
|
|
1107
|
-
);
|
|
2045
|
+
bestMatch = links.find((link) => link.id === Routes.CampaignManager);
|
|
1108
2046
|
}
|
|
1109
2047
|
if (!bestMatch && this.clientKey) {
|
|
1110
2048
|
const parsedPath = currentPath.replace(this.clientKey, "$CLIENT_KEY");
|
|
@@ -1149,9 +2087,9 @@ var TtNavbar = class extends i4 {
|
|
|
1149
2087
|
this.closeAllDetails();
|
|
1150
2088
|
this.sidebarOpen = !this.sidebarOpen;
|
|
1151
2089
|
};
|
|
1152
|
-
this.handleToggle = (
|
|
1153
|
-
const { newState } =
|
|
1154
|
-
const target =
|
|
2090
|
+
this.handleToggle = (e10) => {
|
|
2091
|
+
const { newState } = e10;
|
|
2092
|
+
const target = e10.currentTarget;
|
|
1155
2093
|
if (newState === "open") {
|
|
1156
2094
|
if (!this.sidebarOpen) {
|
|
1157
2095
|
this.sidebarOpen = true;
|
|
@@ -1165,9 +2103,9 @@ var TtNavbar = class extends i4 {
|
|
|
1165
2103
|
if (!this.platformUrl) return formattedPath;
|
|
1166
2104
|
return new URL(formattedPath, this.platformUrl).toString();
|
|
1167
2105
|
};
|
|
1168
|
-
this.onAnchorClick = (
|
|
2106
|
+
this.onAnchorClick = (e10) => {
|
|
1169
2107
|
if (this.navigate) {
|
|
1170
|
-
this.navigate(
|
|
2108
|
+
this.navigate(e10);
|
|
1171
2109
|
this.setActiveState();
|
|
1172
2110
|
}
|
|
1173
2111
|
};
|
|
@@ -1180,12 +2118,12 @@ var TtNavbar = class extends i4 {
|
|
|
1180
2118
|
<nav id=${this.id} class="${this.sidebarOpen ? "" : "sidebar-closed"}">
|
|
1181
2119
|
<div class="sidebar-header ${this.sidebarOpen ? "" : "sidebar-closed"}">
|
|
1182
2120
|
<div class="logo">
|
|
1183
|
-
${
|
|
2121
|
+
${o8(tripteaseLogo)}
|
|
1184
2122
|
</div>
|
|
1185
2123
|
<button id="navbar-toggle-btn" class="nav-item nav-toggle-button" @click=${this.toggleSidebar}>
|
|
1186
|
-
${
|
|
2124
|
+
${o8(sidebarCollapsed)}
|
|
1187
2125
|
<span class="tooltip nav-toggle-tooltip">
|
|
1188
|
-
${
|
|
2126
|
+
${o8(sidebarCollapsed)}
|
|
1189
2127
|
<span>Collapse sidebar</span>
|
|
1190
2128
|
</span>
|
|
1191
2129
|
</button>
|
|
@@ -1196,22 +2134,22 @@ var TtNavbar = class extends i4 {
|
|
|
1196
2134
|
class="nav-item"
|
|
1197
2135
|
href=${this.buildUrl("/")}
|
|
1198
2136
|
@click=${this.onAnchorClick}
|
|
1199
|
-
>${
|
|
2137
|
+
>${o8(home)}<span>Dashboard</span></a
|
|
1200
2138
|
>
|
|
1201
|
-
<a class="nav-item" href=${this.campaignManagerUrl}
|
|
1202
|
-
>${
|
|
2139
|
+
<a id="${Routes.CampaignManager}" class="nav-item" href=${this.campaignManagerUrl}
|
|
2140
|
+
>${o8(campaigns)}<span>Campaigns</span></a
|
|
1203
2141
|
>
|
|
1204
2142
|
<a
|
|
1205
2143
|
class="nav-item"
|
|
1206
2144
|
href=${this.buildUrl("/channels")}
|
|
1207
2145
|
@click=${this.onAnchorClick}
|
|
1208
|
-
>${
|
|
2146
|
+
>${o8(channels)}<span>Channels</span></a
|
|
1209
2147
|
>
|
|
1210
2148
|
<details id="market-insights" @toggle=${this.handleToggle}>
|
|
1211
2149
|
<summary>
|
|
1212
|
-
${
|
|
2150
|
+
${o8(graph)}
|
|
1213
2151
|
<span>Market Insights</span>
|
|
1214
|
-
<span class="icon chevron"> ${
|
|
2152
|
+
<span class="icon chevron"> ${o8(chevronDown)}</span>
|
|
1215
2153
|
</summary>
|
|
1216
2154
|
<div class="dropdown-items">
|
|
1217
2155
|
<a
|
|
@@ -1230,9 +2168,9 @@ var TtNavbar = class extends i4 {
|
|
|
1230
2168
|
</details>
|
|
1231
2169
|
<details id="settings" @toggle=${this.handleToggle}>
|
|
1232
2170
|
<summary>
|
|
1233
|
-
${
|
|
2171
|
+
${o8(gear)}
|
|
1234
2172
|
<span>Settings</span>
|
|
1235
|
-
<span class="icon chevron"> ${
|
|
2173
|
+
<span class="icon chevron"> ${o8(chevronDown)}</span>
|
|
1236
2174
|
</summary>
|
|
1237
2175
|
<div class="dropdown-items">
|
|
1238
2176
|
<a
|
|
@@ -1264,9 +2202,9 @@ var TtNavbar = class extends i4 {
|
|
|
1264
2202
|
<hr />
|
|
1265
2203
|
<details id="account" @toggle=${this.handleToggle}>
|
|
1266
2204
|
<summary>
|
|
1267
|
-
${
|
|
2205
|
+
${o8(user)}
|
|
1268
2206
|
<span>Account</span>
|
|
1269
|
-
<span class="icon chevron"> ${
|
|
2207
|
+
<span class="icon chevron"> ${o8(chevronDown)}</span>
|
|
1270
2208
|
</summary>
|
|
1271
2209
|
<div class="dropdown-items">
|
|
1272
2210
|
<a
|
|
@@ -1285,9 +2223,9 @@ var TtNavbar = class extends i4 {
|
|
|
1285
2223
|
</details>
|
|
1286
2224
|
<details id="billing-routes" @toggle=${this.handleToggle}>
|
|
1287
2225
|
<summary>
|
|
1288
|
-
${
|
|
2226
|
+
${o8(wallet)}
|
|
1289
2227
|
<span>Billing</span>
|
|
1290
|
-
<span class="icon chevron"> ${
|
|
2228
|
+
<span class="icon chevron"> ${o8(chevronDown)}</span>
|
|
1291
2229
|
</summary>
|
|
1292
2230
|
<div>
|
|
1293
2231
|
<a
|
|
@@ -1314,7 +2252,7 @@ var TtNavbar = class extends i4 {
|
|
|
1314
2252
|
rel="noreferrer"
|
|
1315
2253
|
>
|
|
1316
2254
|
Feature requests
|
|
1317
|
-
${
|
|
2255
|
+
${o8(external)}
|
|
1318
2256
|
</a>
|
|
1319
2257
|
<a
|
|
1320
2258
|
class='nav-item external-link'
|
|
@@ -1323,7 +2261,7 @@ var TtNavbar = class extends i4 {
|
|
|
1323
2261
|
rel="noreferrer"
|
|
1324
2262
|
>
|
|
1325
2263
|
Product updates
|
|
1326
|
-
${
|
|
2264
|
+
${o8(external)}
|
|
1327
2265
|
</a>
|
|
1328
2266
|
<a
|
|
1329
2267
|
class='nav-item external-link'
|
|
@@ -1332,25 +2270,42 @@ var TtNavbar = class extends i4 {
|
|
|
1332
2270
|
rel="noreferrer"
|
|
1333
2271
|
>
|
|
1334
2272
|
Help center
|
|
1335
|
-
${
|
|
2273
|
+
${o8(external)}
|
|
1336
2274
|
</a>
|
|
1337
2275
|
<hr />
|
|
1338
2276
|
</div>
|
|
1339
2277
|
<div class='nav-items'>
|
|
1340
|
-
<
|
|
2278
|
+
<div id="client-selector">
|
|
2279
|
+
${this.clients.length > 1 ? x`
|
|
2280
|
+
<tt-combobox
|
|
2281
|
+
.openUpward=${true}
|
|
2282
|
+
.value=${this.clientKey}
|
|
2283
|
+
.onChange=${this.onClientChange}
|
|
2284
|
+
>
|
|
2285
|
+
${this.clients.map((client) => x`
|
|
2286
|
+
<option slot="option" value=${client.clientKey}>
|
|
2287
|
+
${client.displayName}
|
|
2288
|
+
</option>
|
|
2289
|
+
`)}
|
|
2290
|
+
</tt-combobox>
|
|
2291
|
+
` : x`
|
|
2292
|
+
<div class="single-client-name">
|
|
2293
|
+
${this.clients.find((m3) => m3.clientKey === this.clientKey)?.displayName}
|
|
2294
|
+
</div>
|
|
2295
|
+
`}
|
|
2296
|
+
</div>
|
|
1341
2297
|
<a
|
|
1342
2298
|
id="logout-link"
|
|
1343
2299
|
class="nav-item"
|
|
1344
2300
|
href=${this.buildUrl("/logout")}
|
|
1345
2301
|
@click=${this.onAnchorClick}
|
|
1346
|
-
>${
|
|
2302
|
+
>${o8(logout)}<span>Logout</span></a>
|
|
1347
2303
|
</div>
|
|
1348
|
-
<div>
|
|
1349
2304
|
</nav>
|
|
1350
2305
|
`;
|
|
1351
2306
|
}
|
|
1352
2307
|
};
|
|
1353
|
-
TtNavbar.styles =
|
|
2308
|
+
TtNavbar.styles = styles2;
|
|
1354
2309
|
__decorateClass([
|
|
1355
2310
|
n4({ type: Function })
|
|
1356
2311
|
], TtNavbar.prototype, "navigate", 2);
|
|
@@ -1363,6 +2318,15 @@ __decorateClass([
|
|
|
1363
2318
|
__decorateClass([
|
|
1364
2319
|
n4({ type: String, attribute: "client-key" })
|
|
1365
2320
|
], TtNavbar.prototype, "clientKey", 2);
|
|
2321
|
+
__decorateClass([
|
|
2322
|
+
n4({ type: String, attribute: "active-route" })
|
|
2323
|
+
], TtNavbar.prototype, "activeRoute", 2);
|
|
2324
|
+
__decorateClass([
|
|
2325
|
+
n4({ type: Array, converter: jsonArrayConverter })
|
|
2326
|
+
], TtNavbar.prototype, "clients", 2);
|
|
2327
|
+
__decorateClass([
|
|
2328
|
+
n4({ type: Object })
|
|
2329
|
+
], TtNavbar.prototype, "onClientChange", 2);
|
|
1366
2330
|
__decorateClass([
|
|
1367
2331
|
r6("details")
|
|
1368
2332
|
], TtNavbar.prototype, "allDetailsElements", 2);
|
|
@@ -1502,5 +2466,33 @@ lit-html/directives/unsafe-svg.js:
|
|
|
1502
2466
|
* Copyright 2017 Google LLC
|
|
1503
2467
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1504
2468
|
*)
|
|
2469
|
+
|
|
2470
|
+
lit-html/directives/if-defined.js:
|
|
2471
|
+
(**
|
|
2472
|
+
* @license
|
|
2473
|
+
* Copyright 2018 Google LLC
|
|
2474
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2475
|
+
*)
|
|
2476
|
+
|
|
2477
|
+
lit-html/directive-helpers.js:
|
|
2478
|
+
(**
|
|
2479
|
+
* @license
|
|
2480
|
+
* Copyright 2020 Google LLC
|
|
2481
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2482
|
+
*)
|
|
2483
|
+
|
|
2484
|
+
lit-html/directives/repeat.js:
|
|
2485
|
+
(**
|
|
2486
|
+
* @license
|
|
2487
|
+
* Copyright 2017 Google LLC
|
|
2488
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2489
|
+
*)
|
|
2490
|
+
|
|
2491
|
+
lit-html/directives/guard.js:
|
|
2492
|
+
(**
|
|
2493
|
+
* @license
|
|
2494
|
+
* Copyright 2018 Google LLC
|
|
2495
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2496
|
+
*)
|
|
1505
2497
|
*/
|
|
1506
2498
|
//# sourceMappingURL=TtNavbar.js.map
|