@visma-swno/vsn-navigation 1.3.0-beta.4 → 1.3.0-beta.6
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.
|
@@ -20,34 +20,34 @@ if (h.styleSheet != null && !document[te]) {
|
|
|
20
20
|
n instanceof CSSPropertyRule && (e.insertRule(n.cssText), h.styleSheet.deleteRule(t - 1 - r));
|
|
21
21
|
}), document.adoptedStyleSheets.push(e);
|
|
22
22
|
}
|
|
23
|
-
var g = h,
|
|
23
|
+
var g = h, ne = "lit-localize-status", _ = (e, ...t) => ({
|
|
24
24
|
strTag: !0,
|
|
25
25
|
strings: e,
|
|
26
26
|
values: t
|
|
27
|
-
}),
|
|
27
|
+
}), re = (e) => typeof e != "string" && "strTag" in e, ie = (e, t, n) => {
|
|
28
28
|
let r = e[0];
|
|
29
29
|
for (let i = 1; i < e.length; i++) r += t[n ? n[i - 1] : i - 1], r += e[i];
|
|
30
30
|
return r;
|
|
31
|
-
},
|
|
32
|
-
function
|
|
33
|
-
if (
|
|
34
|
-
|
|
31
|
+
}, ae = ((e) => re(e) ? ie(e.strings, e.values) : e), v = ae, oe = !1;
|
|
32
|
+
function se(e) {
|
|
33
|
+
if (oe) throw Error("lit-localize can only be configured once");
|
|
34
|
+
v = e, oe = !0;
|
|
35
35
|
}
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region node_modules/@lit/localize/internal/localized-controller.js
|
|
38
|
-
var
|
|
38
|
+
var ce = class {
|
|
39
39
|
constructor(e) {
|
|
40
40
|
this.__litLocalizeEventHandler = (e) => {
|
|
41
41
|
e.detail.status === "ready" && this.host.requestUpdate();
|
|
42
42
|
}, this.host = e;
|
|
43
43
|
}
|
|
44
44
|
hostConnected() {
|
|
45
|
-
window.addEventListener(
|
|
45
|
+
window.addEventListener(ne, this.__litLocalizeEventHandler);
|
|
46
46
|
}
|
|
47
47
|
hostDisconnected() {
|
|
48
|
-
window.removeEventListener(
|
|
48
|
+
window.removeEventListener(ne, this.__litLocalizeEventHandler);
|
|
49
49
|
}
|
|
50
|
-
},
|
|
50
|
+
}, le = (e) => e.addController(new ce(e)), y = () => (e, t) => (e.addInitializer(le), e), ue = class {
|
|
51
51
|
constructor() {
|
|
52
52
|
this.settled = !1, this.promise = new Promise((e, t) => {
|
|
53
53
|
this._resolve = e, this._reject = t;
|
|
@@ -59,80 +59,80 @@ var se = class {
|
|
|
59
59
|
reject(e) {
|
|
60
60
|
this.settled = !0, this._reject(e);
|
|
61
61
|
}
|
|
62
|
-
},
|
|
63
|
-
for (let e = 0; e < 256; e++)
|
|
64
|
-
function
|
|
62
|
+
}, b = [];
|
|
63
|
+
for (let e = 0; e < 256; e++) b[e] = (e >> 4 & 15).toString(16) + (e & 15).toString(16);
|
|
64
|
+
function de(e) {
|
|
65
65
|
let t = 0, n = 8997, r = 0, i = 33826, a = 0, o = 40164, s = 0, c = 52210;
|
|
66
66
|
for (let l = 0; l < e.length; l++) n ^= e.charCodeAt(l), t = n * 435, r = i * 435, a = o * 435, s = c * 435, a += n << 8, s += i << 8, r += t >>> 16, n = t & 65535, a += r >>> 16, i = r & 65535, c = s + (a >>> 16) & 65535, o = a & 65535;
|
|
67
|
-
return
|
|
67
|
+
return b[c >> 8] + b[c & 255] + b[o >> 8] + b[o & 255] + b[i >> 8] + b[i & 255] + b[n >> 8] + b[n & 255];
|
|
68
68
|
}
|
|
69
|
-
var
|
|
70
|
-
function
|
|
71
|
-
return (t ?
|
|
69
|
+
var fe = "h", pe = "s";
|
|
70
|
+
function me(e, t) {
|
|
71
|
+
return (t ? fe : pe) + de(typeof e == "string" ? e : e.join(""));
|
|
72
72
|
}
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region node_modules/@lit/localize/internal/runtime-msg.js
|
|
75
|
-
var
|
|
76
|
-
function
|
|
75
|
+
var he = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new Map();
|
|
76
|
+
function _e(e, t, n) {
|
|
77
77
|
if (e) {
|
|
78
|
-
let r = e[n?.id ??
|
|
78
|
+
let r = e[n?.id ?? ve(t)];
|
|
79
79
|
if (r) {
|
|
80
80
|
if (typeof r == "string") return r;
|
|
81
|
-
if ("strTag" in r) return
|
|
81
|
+
if ("strTag" in r) return ie(r.strings, t.values, r.values);
|
|
82
82
|
{
|
|
83
|
-
let e =
|
|
84
|
-
return e === void 0 && (e = r.values,
|
|
83
|
+
let e = he.get(r);
|
|
84
|
+
return e === void 0 && (e = r.values, he.set(r, e)), {
|
|
85
85
|
...r,
|
|
86
86
|
values: e.map((e) => t.values[e])
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
return
|
|
91
|
+
return ae(t);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
let t = typeof e == "string" ? e : e.strings, n =
|
|
95
|
-
return n === void 0 && (n =
|
|
93
|
+
function ve(e) {
|
|
94
|
+
let t = typeof e == "string" ? e : e.strings, n = ge.get(t);
|
|
95
|
+
return n === void 0 && (n = me(t, typeof e != "string" && !("strTag" in e)), ge.set(t, n)), n;
|
|
96
96
|
}
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region node_modules/@lit/localize/init/runtime.js
|
|
99
|
-
function
|
|
100
|
-
window.dispatchEvent(new CustomEvent(
|
|
99
|
+
function ye(e) {
|
|
100
|
+
window.dispatchEvent(new CustomEvent(ne, { detail: e }));
|
|
101
101
|
}
|
|
102
|
-
var
|
|
103
|
-
|
|
104
|
-
var
|
|
105
|
-
getLocale:
|
|
106
|
-
setLocale:
|
|
107
|
-
}),
|
|
108
|
-
if (e === (
|
|
109
|
-
if (!
|
|
110
|
-
if (!
|
|
111
|
-
|
|
112
|
-
let t =
|
|
113
|
-
return
|
|
102
|
+
var x = "", be, xe, S, Se, Ce, C = new ue();
|
|
103
|
+
C.resolve();
|
|
104
|
+
var w = 0, we = (e) => (se(((e, t) => _e(Ce, e, t))), x = xe = e.sourceLocale, S = new Set(e.targetLocales), S.add(e.sourceLocale), Se = e.loadLocale, {
|
|
105
|
+
getLocale: Te,
|
|
106
|
+
setLocale: Ee
|
|
107
|
+
}), Te = () => x, Ee = (e) => {
|
|
108
|
+
if (e === (be ?? x)) return C.promise;
|
|
109
|
+
if (!S || !Se) throw Error("Internal error");
|
|
110
|
+
if (!S.has(e)) throw Error("Invalid locale code");
|
|
111
|
+
w++;
|
|
112
|
+
let t = w;
|
|
113
|
+
return be = e, C.settled && (C = new ue()), ye({
|
|
114
114
|
status: "loading",
|
|
115
115
|
loadingLocale: e
|
|
116
|
-
}), (e ===
|
|
117
|
-
|
|
116
|
+
}), (e === xe ? Promise.resolve({ templates: void 0 }) : Se(e)).then((n) => {
|
|
117
|
+
w === t && (x = e, be = void 0, Ce = n.templates, ye({
|
|
118
118
|
status: "ready",
|
|
119
119
|
readyLocale: e
|
|
120
|
-
}),
|
|
120
|
+
}), C.resolve());
|
|
121
121
|
}, (n) => {
|
|
122
|
-
|
|
122
|
+
w === t && (ye({
|
|
123
123
|
status: "error",
|
|
124
124
|
errorLocale: e,
|
|
125
125
|
errorMessage: n.toString()
|
|
126
|
-
}),
|
|
127
|
-
}),
|
|
128
|
-
},
|
|
126
|
+
}), C.reject(n));
|
|
127
|
+
}), C.promise;
|
|
128
|
+
}, De = () => {
|
|
129
129
|
if (typeof navigator > "u") return !1;
|
|
130
130
|
let e = navigator.userAgentData?.platform ?? navigator.platform ?? "";
|
|
131
131
|
return /mac/i.test(e);
|
|
132
|
-
},
|
|
132
|
+
}, Oe = (e) => !e.shiftKey && !e.altKey && (De() ? e.metaKey && !e.ctrlKey : e.ctrlKey && !e.metaKey), T = (e) => e.shiftKey || e.altKey || e.ctrlKey || e.metaKey, E = (e) => !T(e), ke = () => v("Choose a service"), Ae = () => v("Search"), je = () => De() ? "Cmd+O" : "CTRL+O", Me = (e) => v(_`Type at least ${e} characters to search`), Ne = () => v("Menu items"), Pe = () => v("Load more"), Fe = () => v("VSN"), Ie = "survicate-sdk", Le = "ui-components-feedback", Re = (e) => `https://survey.survicate.com/workspaces/${e}/web_surveys.js`;
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region src/shared/icons.ts
|
|
135
|
-
function
|
|
135
|
+
function D(e, t = 24, r) {
|
|
136
136
|
return n`<svg
|
|
137
137
|
xmlns="http://www.w3.org/2000/svg"
|
|
138
138
|
width="${t}"
|
|
@@ -147,23 +147,23 @@ function O(e, t = 24, r) {
|
|
|
147
147
|
class=${r ?? ""}
|
|
148
148
|
>${e}</svg>`;
|
|
149
149
|
}
|
|
150
|
-
var
|
|
150
|
+
var ze = i``, Be = i`
|
|
151
151
|
<path d="M4 5h16"/>
|
|
152
152
|
<path d="M4 12h16"/>
|
|
153
153
|
<path d="M4 19h16"/>
|
|
154
|
-
`,
|
|
154
|
+
`, Ve = i`
|
|
155
155
|
<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"/>
|
|
156
156
|
<path d="M20 2v4"/>
|
|
157
157
|
<path d="M22 4h-4"/>
|
|
158
158
|
<circle cx="4" cy="20" r="2"/>
|
|
159
|
-
`,
|
|
159
|
+
`, He = i`
|
|
160
160
|
<path d="M10.268 21a2 2 0 0 0 3.464 0"/>
|
|
161
161
|
<path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"/>
|
|
162
|
-
`,
|
|
162
|
+
`, Ue = i`
|
|
163
163
|
<path d="M10.268 21a2 2 0 0 0 3.464 0"/>
|
|
164
164
|
<path d="M11.68 2.009A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673c-.824-.85-1.678-1.731-2.21-3.348"/>
|
|
165
165
|
<circle cx="18" cy="5" r="3"/>
|
|
166
|
-
`,
|
|
166
|
+
`, We = i`
|
|
167
167
|
<path d="M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"/>
|
|
168
168
|
<path d="M7 10v12"/>
|
|
169
169
|
`;
|
|
@@ -174,14 +174,14 @@ i`
|
|
|
174
174
|
<path d="M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2"/>
|
|
175
175
|
<path d="M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16"/>
|
|
176
176
|
`;
|
|
177
|
-
var
|
|
177
|
+
var Ge = i`
|
|
178
178
|
<path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"/>
|
|
179
179
|
<path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>
|
|
180
|
-
`,
|
|
180
|
+
`, Ke = i`
|
|
181
181
|
<circle cx="12" cy="12" r="10"/>
|
|
182
182
|
<path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/>
|
|
183
183
|
<path d="M12 17h.01"/>
|
|
184
|
-
`,
|
|
184
|
+
`, qe = i`
|
|
185
185
|
<circle cx="12" cy="8" r="5"/>
|
|
186
186
|
<path d="M20 21a8 8 0 0 0-16 0"/>
|
|
187
187
|
`;
|
|
@@ -192,11 +192,11 @@ i`
|
|
|
192
192
|
<path d="M12 17v5"/>
|
|
193
193
|
<path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/>
|
|
194
194
|
`;
|
|
195
|
-
var
|
|
195
|
+
var Je = i`
|
|
196
196
|
<path d="m16 17 5-5-5-5"/>
|
|
197
197
|
<path d="M21 12H9"/>
|
|
198
198
|
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/>
|
|
199
|
-
`,
|
|
199
|
+
`, Ye = i`
|
|
200
200
|
<path d="M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6"/>
|
|
201
201
|
<path d="m21 3-9 9"/>
|
|
202
202
|
<path d="M15 3h6v6"/>
|
|
@@ -205,17 +205,17 @@ i`
|
|
|
205
205
|
<circle cx="12" cy="12" r="10"/>
|
|
206
206
|
<circle cx="12" cy="12" r="1"/>
|
|
207
207
|
`;
|
|
208
|
-
var
|
|
208
|
+
var Xe = i`
|
|
209
209
|
<path d="m7 15 5 5 5-5"/>
|
|
210
210
|
<path d="m7 9 5-5 5 5"/>
|
|
211
|
-
`,
|
|
211
|
+
`, Ze = i`
|
|
212
212
|
<path d="m18 15-6-6-6 6"/>
|
|
213
|
-
`,
|
|
213
|
+
`, O = i`
|
|
214
214
|
<path d="m6 9 6 6 6-6"/>
|
|
215
|
-
`,
|
|
215
|
+
`, Qe = i`
|
|
216
216
|
<circle cx="11" cy="11" r="8"/>
|
|
217
217
|
<path d="m21 21-4.3-4.3"/>
|
|
218
|
-
`,
|
|
218
|
+
`, $e = i`
|
|
219
219
|
<circle cx="12" cy="12" r="10"/>
|
|
220
220
|
<path d="m15 9-6 6"/>
|
|
221
221
|
<path d="m9 9 6 6"/>
|
|
@@ -225,7 +225,7 @@ i`
|
|
|
225
225
|
<line x1="12" x2="12" y1="8" y2="12"/>
|
|
226
226
|
<line x1="12" x2="12.01" y1="16" y2="16"/>
|
|
227
227
|
`;
|
|
228
|
-
var
|
|
228
|
+
var et = i`
|
|
229
229
|
<path d="M12 16h.01"/>
|
|
230
230
|
<path d="M12 8v4"/>
|
|
231
231
|
<path d="M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z"/>
|
|
@@ -236,9 +236,9 @@ i`
|
|
|
236
236
|
`, i`
|
|
237
237
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.60982 1.03843C2.99778 0.96126 3.39992 1.00087 3.76537 1.15224C4.13082 1.30362 4.44318 1.55996 4.66294 1.88886C4.8827 2.21776 5 2.60444 5 3V4H7V3C7 2.60444 7.1173 2.21776 7.33706 1.88886C7.55682 1.55996 7.86918 1.30362 8.23463 1.15224C8.60009 1.00087 9.00222 0.96126 9.39018 1.03843C9.77814 1.1156 10.1345 1.30608 10.4142 1.58579C10.6939 1.86549 10.8844 2.22186 10.9616 2.60982C11.0387 2.99778 10.9991 3.39992 10.8478 3.76537C10.6964 4.13082 10.44 4.44318 10.1111 4.66294C9.78224 4.8827 9.39556 5 9 5H8V7H9C9.39556 7 9.78224 7.1173 10.1111 7.33706C10.44 7.55682 10.6964 7.86918 10.8478 8.23463C10.9991 8.60009 11.0387 9.00222 10.9616 9.39018C10.8844 9.77814 10.6939 10.1345 10.4142 10.4142C10.1345 10.6939 9.77814 10.8844 9.39018 10.9616C9.00222 11.0387 8.60009 10.9991 8.23463 10.8478C7.86918 10.6964 7.55682 10.44 7.33706 10.1111C7.1173 9.78224 7 9.39556 7 9V8H5V9C5 9.39556 4.8827 9.78224 4.66294 10.1111C4.44318 10.44 4.13082 10.6964 3.76537 10.8478C3.39992 10.9991 2.99778 11.0387 2.60982 10.9616C2.22186 10.8844 1.86549 10.6939 1.58579 10.4142C1.30608 10.1345 1.1156 9.77814 1.03843 9.39018C0.96126 9.00222 1.00087 8.60009 1.15224 8.23463C1.30362 7.86918 1.55996 7.55682 1.88886 7.33706C2.21776 7.1173 2.60444 7 3 7H4V5H3C2.60444 5 2.21776 4.8827 1.88886 4.66294C1.55996 4.44318 1.30362 4.13082 1.15224 3.76537C1.00087 3.39992 0.96126 2.99778 1.03843 2.60982C1.1156 2.22186 1.30608 1.86549 1.58579 1.58579C1.86549 1.30608 2.22186 1.1156 2.60982 1.03843ZM4 4V3C4 2.80222 3.94135 2.60888 3.83147 2.44443C3.72159 2.27998 3.56541 2.15181 3.38268 2.07612C3.19996 2.00043 2.99889 1.98063 2.80491 2.01922C2.61093 2.0578 2.43275 2.15304 2.29289 2.29289C2.15304 2.43275 2.0578 2.61093 2.01922 2.80491C1.98063 2.99889 2.00043 3.19996 2.07612 3.38268C2.15181 3.56541 2.27998 3.72159 2.44443 3.83147C2.60888 3.94135 2.80222 4 3 4H4ZM5 5V7H7V5H5ZM4 8H3C2.80222 8 2.60888 8.05865 2.44443 8.16853C2.27998 8.27841 2.15181 8.43459 2.07612 8.61732C2.00043 8.80004 1.98063 9.00111 2.01922 9.19509C2.0578 9.38907 2.15304 9.56726 2.29289 9.70711C2.43275 9.84696 2.61093 9.9422 2.80491 9.98079C2.99889 10.0194 3.19996 9.99957 3.38268 9.92388C3.56541 9.84819 3.72159 9.72002 3.83147 9.55557C3.94135 9.39112 4 9.19778 4 9V8ZM8 8V9C8 9.19778 8.05865 9.39112 8.16853 9.55557C8.27841 9.72002 8.43459 9.84819 8.61732 9.92388C8.80004 9.99957 9.00111 10.0194 9.19509 9.98079C9.38907 9.9422 9.56726 9.84696 9.70711 9.70711C9.84696 9.56726 9.9422 9.38907 9.98079 9.19509C10.0194 9.00111 9.99957 8.80004 9.92388 8.61732C9.84819 8.43459 9.72002 8.27841 9.55557 8.16853C9.39112 8.05865 9.19778 8 9 8H8ZM8 4H9C9.19778 4 9.39112 3.94135 9.55557 3.83147C9.72002 3.72159 9.84819 3.56541 9.92388 3.38268C9.99957 3.19996 10.0194 2.99889 9.98079 2.80491C9.9422 2.61093 9.84696 2.43275 9.70711 2.29289C9.56726 2.15304 9.38907 2.0578 9.19509 2.01922C9.00111 1.98063 8.80004 2.00043 8.61732 2.07612C8.43459 2.15181 8.27841 2.27998 8.16853 2.44443C8.05865 2.60888 8 2.80222 8 3V4Z"/>
|
|
238
238
|
`;
|
|
239
|
-
var
|
|
239
|
+
var tt = i`
|
|
240
240
|
<path d="m9 18 6-6-6-6"/>
|
|
241
|
-
`,
|
|
241
|
+
`, nt = class extends Event {
|
|
242
242
|
constructor(e, t, n, r) {
|
|
243
243
|
super("context-request", {
|
|
244
244
|
bubbles: !0,
|
|
@@ -248,12 +248,12 @@ var et = i`
|
|
|
248
248
|
};
|
|
249
249
|
//#endregion
|
|
250
250
|
//#region node_modules/@lit/context/lib/create-context.js
|
|
251
|
-
function
|
|
251
|
+
function rt(e) {
|
|
252
252
|
return e;
|
|
253
253
|
}
|
|
254
254
|
//#endregion
|
|
255
255
|
//#region node_modules/@lit/context/lib/controllers/context-consumer.js
|
|
256
|
-
var
|
|
256
|
+
var it = class {
|
|
257
257
|
constructor(e, t, n, r) {
|
|
258
258
|
if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (e, t) => {
|
|
259
259
|
this.unsubscribe && (this.unsubscribe !== t && (this.provided = !1, this.unsubscribe()), this.subscribe || this.unsubscribe()), this.value = e, this.host.requestUpdate(), this.provided && !this.subscribe || (this.provided = !0, this.callback && this.callback(e, t)), this.unsubscribe = t;
|
|
@@ -270,9 +270,9 @@ var rt = class {
|
|
|
270
270
|
this.unsubscribe &&= (this.unsubscribe(), void 0);
|
|
271
271
|
}
|
|
272
272
|
dispatchRequest() {
|
|
273
|
-
this.host.dispatchEvent(new
|
|
273
|
+
this.host.dispatchEvent(new nt(this.context, this.host, this.t, this.subscribe));
|
|
274
274
|
}
|
|
275
|
-
},
|
|
275
|
+
}, at = class {
|
|
276
276
|
get value() {
|
|
277
277
|
return this.o;
|
|
278
278
|
}
|
|
@@ -302,14 +302,14 @@ var rt = class {
|
|
|
302
302
|
clearCallbacks() {
|
|
303
303
|
this.subscriptions.clear();
|
|
304
304
|
}
|
|
305
|
-
},
|
|
305
|
+
}, ot = class extends Event {
|
|
306
306
|
constructor(e, t) {
|
|
307
307
|
super("context-provider", {
|
|
308
308
|
bubbles: !0,
|
|
309
309
|
composed: !0
|
|
310
310
|
}), this.context = e, this.contextTarget = t;
|
|
311
311
|
}
|
|
312
|
-
},
|
|
312
|
+
}, st = class extends at {
|
|
313
313
|
constructor(e, t, n) {
|
|
314
314
|
super(t.context === void 0 ? n : t.initialValue), this.onContextRequest = (e) => {
|
|
315
315
|
if (e.context !== this.context) return;
|
|
@@ -318,7 +318,7 @@ var rt = class {
|
|
|
318
318
|
}, this.onProviderRequest = (e) => {
|
|
319
319
|
if (e.context !== this.context || (e.contextTarget ?? e.composedPath()[0]) === this.host) return;
|
|
320
320
|
let t = /* @__PURE__ */ new Set();
|
|
321
|
-
for (let [e, { consumerHost: n }] of this.subscriptions) t.has(e) || (t.add(e), n.dispatchEvent(new
|
|
321
|
+
for (let [e, { consumerHost: n }] of this.subscriptions) t.has(e) || (t.add(e), n.dispatchEvent(new nt(this.context, n, e, !0)));
|
|
322
322
|
e.stopPropagation();
|
|
323
323
|
}, this.host = e, t.context === void 0 ? this.context = t : this.context = t.context, this.attachListeners(), this.host.addController?.(this);
|
|
324
324
|
}
|
|
@@ -326,12 +326,12 @@ var rt = class {
|
|
|
326
326
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
327
327
|
}
|
|
328
328
|
hostConnected() {
|
|
329
|
-
this.host.dispatchEvent(new
|
|
329
|
+
this.host.dispatchEvent(new ot(this.context, this.host));
|
|
330
330
|
}
|
|
331
331
|
};
|
|
332
332
|
//#endregion
|
|
333
333
|
//#region node_modules/@lit/context/lib/decorators/provide.js
|
|
334
|
-
function
|
|
334
|
+
function ct({ context: e }) {
|
|
335
335
|
return (t, n) => {
|
|
336
336
|
let r = /* @__PURE__ */ new WeakMap();
|
|
337
337
|
if (typeof n == "object") return {
|
|
@@ -342,7 +342,7 @@ function st({ context: e }) {
|
|
|
342
342
|
return r.get(this).setValue(e), t.set.call(this, e);
|
|
343
343
|
},
|
|
344
344
|
init(t) {
|
|
345
|
-
return r.set(this, new
|
|
345
|
+
return r.set(this, new st(this, {
|
|
346
346
|
context: e,
|
|
347
347
|
initialValue: t
|
|
348
348
|
})), t;
|
|
@@ -350,7 +350,7 @@ function st({ context: e }) {
|
|
|
350
350
|
};
|
|
351
351
|
{
|
|
352
352
|
t.constructor.addInitializer(((t) => {
|
|
353
|
-
r.set(t, new
|
|
353
|
+
r.set(t, new st(t, { context: e }));
|
|
354
354
|
}));
|
|
355
355
|
let i = Object.getOwnPropertyDescriptor(t, n), a;
|
|
356
356
|
if (i === void 0) {
|
|
@@ -381,10 +381,10 @@ function st({ context: e }) {
|
|
|
381
381
|
}
|
|
382
382
|
//#endregion
|
|
383
383
|
//#region node_modules/@lit/context/lib/decorators/consume.js
|
|
384
|
-
function
|
|
384
|
+
function lt({ context: e, subscribe: t }) {
|
|
385
385
|
return (n, r) => {
|
|
386
386
|
typeof r == "object" ? r.addInitializer((function() {
|
|
387
|
-
new
|
|
387
|
+
new it(this, {
|
|
388
388
|
context: e,
|
|
389
389
|
callback: (e) => {
|
|
390
390
|
n.set.call(this, e);
|
|
@@ -392,7 +392,7 @@ function ct({ context: e, subscribe: t }) {
|
|
|
392
392
|
subscribe: t
|
|
393
393
|
});
|
|
394
394
|
})) : n.constructor.addInitializer(((n) => {
|
|
395
|
-
new
|
|
395
|
+
new it(n, {
|
|
396
396
|
context: e,
|
|
397
397
|
callback: (e) => {
|
|
398
398
|
n[r] = e;
|
|
@@ -404,20 +404,20 @@ function ct({ context: e, subscribe: t }) {
|
|
|
404
404
|
}
|
|
405
405
|
//#endregion
|
|
406
406
|
//#region src/shared/types/index.ts
|
|
407
|
-
function
|
|
407
|
+
function k(e) {
|
|
408
408
|
return "url" in e;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function A(e) {
|
|
411
411
|
return "items" in e;
|
|
412
412
|
}
|
|
413
|
-
var
|
|
413
|
+
var j = class e extends Error {
|
|
414
414
|
constructor(t) {
|
|
415
415
|
super(t), this.name = "SearchError", Object.setPrototypeOf(this, e.prototype);
|
|
416
416
|
}
|
|
417
|
-
},
|
|
417
|
+
}, ut = rt("activeId"), dt = rt(Symbol("focus-manager"));
|
|
418
418
|
//#endregion
|
|
419
419
|
//#region \0@oxc-project+runtime@0.127.0/helpers/decorate.js
|
|
420
|
-
function
|
|
420
|
+
function M(e, t, n, r) {
|
|
421
421
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
422
422
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
423
423
|
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
@@ -425,9 +425,9 @@ function N(e, t, n, r) {
|
|
|
425
425
|
}
|
|
426
426
|
//#endregion
|
|
427
427
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-item.ts
|
|
428
|
-
var
|
|
428
|
+
var N, P = class extends e {
|
|
429
429
|
static {
|
|
430
|
-
|
|
430
|
+
N = this;
|
|
431
431
|
}
|
|
432
432
|
static {
|
|
433
433
|
this._idCounter = 0;
|
|
@@ -461,8 +461,8 @@ var P, F = class extends e {
|
|
|
461
461
|
this._showTooltip = !1;
|
|
462
462
|
}, this._onKeyDown = (e) => {
|
|
463
463
|
let t = this.tree;
|
|
464
|
-
if (t !== void 0 && !(e.defaultPrevented ||
|
|
465
|
-
if (
|
|
464
|
+
if (t !== void 0 && !(e.defaultPrevented || T(e))) {
|
|
465
|
+
if (N.menuShortcuts.includes(e.key) && (e.preventDefault(), e.stopPropagation()), e.key === "ArrowUp") {
|
|
466
466
|
this._focusManager?.focusPrev(this);
|
|
467
467
|
return;
|
|
468
468
|
}
|
|
@@ -470,10 +470,10 @@ var P, F = class extends e {
|
|
|
470
470
|
this._focusManager?.focusNext(this);
|
|
471
471
|
return;
|
|
472
472
|
}
|
|
473
|
-
|
|
473
|
+
A(t) ? this.handleKeyForParent(e.key) : this.handleKeyForLeaf(e.key);
|
|
474
474
|
}
|
|
475
475
|
};
|
|
476
|
-
let e =
|
|
476
|
+
let e = N._idCounter++;
|
|
477
477
|
this._tooltipId = `vsn-side-menu-item-tooltip-${e}`, this._childListId = `vsn-side-menu-item-list-${e}`;
|
|
478
478
|
}
|
|
479
479
|
focusSelf() {
|
|
@@ -481,10 +481,10 @@ var P, F = class extends e {
|
|
|
481
481
|
}
|
|
482
482
|
willUpdate(e) {
|
|
483
483
|
let t = this.tree;
|
|
484
|
-
t !== void 0 && e.has("_currentActiveId") && (this._isActive = this._currentActiveId === t.id,
|
|
484
|
+
t !== void 0 && e.has("_currentActiveId") && (this._isActive = this._currentActiveId === t.id, A(t) && (this._isExpanded = this.isActiveNode(t) !== null));
|
|
485
485
|
}
|
|
486
486
|
render() {
|
|
487
|
-
let e = this.tree !== void 0 &&
|
|
487
|
+
let e = this.tree !== void 0 && A(this.tree), t = this.tree && A(this.tree) ? this.tree.items : [];
|
|
488
488
|
return n`
|
|
489
489
|
${this.menuItemMarkup()}
|
|
490
490
|
${e ? n`
|
|
@@ -494,7 +494,7 @@ var P, F = class extends e {
|
|
|
494
494
|
`;
|
|
495
495
|
}
|
|
496
496
|
menuItemMarkup() {
|
|
497
|
-
let e = this.tree !== void 0 &&
|
|
497
|
+
let e = this.tree !== void 0 && A(this.tree), t = this.tree?.["data-qa-id"], r = {
|
|
498
498
|
"ga-side-navigation__item": !0,
|
|
499
499
|
[`ga-side-navigation__item--level-${this.level}`]: this.level > 1,
|
|
500
500
|
"ga-side-navigation__item--expanded": this._isExpanded,
|
|
@@ -505,7 +505,7 @@ var P, F = class extends e {
|
|
|
505
505
|
<div class="ga-tooltip ga-tooltip--right-center w-34 max-w-135">${this.tree?.label}</div>
|
|
506
506
|
</div>
|
|
507
507
|
<span class="ga-side-navigation__item-icon">
|
|
508
|
-
${e ? this._isExpanded ? O
|
|
508
|
+
${e ? this._isExpanded ? D(O, 16) : D(tt, 16) : ""}
|
|
509
509
|
</span>
|
|
510
510
|
<div class="ga-side-navigation__item-content">
|
|
511
511
|
<div class="ga-side-navigation__item-label">${this.tree?.label}</div>
|
|
@@ -517,7 +517,7 @@ var P, F = class extends e {
|
|
|
517
517
|
@mouseleave=${this._onItemMouseLeave} @keydown=${this._onKeyDown}>${i}
|
|
518
518
|
</button>` : n`<a class="${d(r)}" aria-describedby="${this._tooltipId}"
|
|
519
519
|
aria-current=${f(this._isActive ? "page" : void 0)}
|
|
520
|
-
href="${this.tree &&
|
|
520
|
+
href="${this.tree && k(this.tree) ? this.tree.url : ""}" data-qa-id="${f(t)}"
|
|
521
521
|
@click=${this._handleItemClick} @mouseenter=${this._onItemMouseEnter}
|
|
522
522
|
@mouseleave=${this._onItemMouseLeave} @keydown=${this._onKeyDown}>${i}</a>`;
|
|
523
523
|
}
|
|
@@ -553,7 +553,7 @@ var P, F = class extends e {
|
|
|
553
553
|
}
|
|
554
554
|
isActiveNode(e) {
|
|
555
555
|
if (e.id === this._currentActiveId) return e;
|
|
556
|
-
if (
|
|
556
|
+
if (A(e)) for (let t of e.items) {
|
|
557
557
|
let e = this.isActiveNode(t);
|
|
558
558
|
if (e) return e;
|
|
559
559
|
}
|
|
@@ -562,11 +562,11 @@ var P, F = class extends e {
|
|
|
562
562
|
_handleItemClick(e) {
|
|
563
563
|
let t = this.tree;
|
|
564
564
|
if (t !== void 0) {
|
|
565
|
-
if (
|
|
565
|
+
if (A(t)) {
|
|
566
566
|
this._isExpanded = !this._isExpanded, e.preventDefault(), e.stopPropagation();
|
|
567
567
|
return;
|
|
568
568
|
}
|
|
569
|
-
e.button !== 0 ||
|
|
569
|
+
e.button !== 0 || T(e) || (e.preventDefault(), e.stopPropagation(), (!this._isActive || this.hasPageTitle) && this.dispatchEvent(new CustomEvent("vsn-menu-item-changed", {
|
|
570
570
|
bubbles: !0,
|
|
571
571
|
composed: !0,
|
|
572
572
|
detail: t
|
|
@@ -574,13 +574,13 @@ var P, F = class extends e {
|
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
};
|
|
577
|
-
|
|
578
|
-
context:
|
|
577
|
+
M([s({ attribute: !1 })], P.prototype, "tree", void 0), M([s({ type: Number })], P.prototype, "level", void 0), M([lt({
|
|
578
|
+
context: ut,
|
|
579
579
|
subscribe: !0
|
|
580
|
-
}), l()],
|
|
580
|
+
}), l()], P.prototype, "_currentActiveId", void 0), M([l()], P.prototype, "_isActive", void 0), M([l()], P.prototype, "_isExpanded", void 0), M([l()], P.prototype, "_showTooltip", void 0), M([l()], P.prototype, "_tooltipPos", void 0), M([c(".ga-side-navigation__item-label")], P.prototype, "_labelEl", void 0), M([lt({ context: dt })], P.prototype, "_focusManager", void 0), M([s({ type: Boolean })], P.prototype, "hasPageTitle", void 0), P = N = M([o("vsn-menu-item")], P);
|
|
581
581
|
//#endregion
|
|
582
582
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu.ts
|
|
583
|
-
var
|
|
583
|
+
var F = class extends e {
|
|
584
584
|
constructor(...e) {
|
|
585
585
|
super(...e), this.items = [], this._currentActiveId = "", this.currentItem = "", this.hasPageTitle = !1, this._focusManager = {
|
|
586
586
|
focusPrev: (e) => {
|
|
@@ -602,7 +602,7 @@ var I = class extends e {
|
|
|
602
602
|
render() {
|
|
603
603
|
return n`
|
|
604
604
|
<div class="flex flex-col ga-side-navigation__body h-full overflow-y-hidden">
|
|
605
|
-
<nav class="flex-1 overflow-y-auto ga-scroll" aria-label=${
|
|
605
|
+
<nav class="flex-1 overflow-y-auto ga-scroll" aria-label=${v("Side navigation")}>
|
|
606
606
|
<ul class="vsn-menu__list">
|
|
607
607
|
${u(this.items, (e) => n`<li class="vsn-menu__item">${this.menuItem(e)}</li>`)}
|
|
608
608
|
</ul>
|
|
@@ -618,15 +618,15 @@ var I = class extends e {
|
|
|
618
618
|
<vsn-menu-item .tree=${e} .hasPageTitle=${this.hasPageTitle}></vsn-menu-item>`;
|
|
619
619
|
}
|
|
620
620
|
};
|
|
621
|
-
|
|
621
|
+
M([s({ attribute: !1 })], F.prototype, "items", void 0), M([ct({ context: ut }), l()], F.prototype, "_currentActiveId", void 0), M([s()], F.prototype, "currentItem", void 0), M([s({ type: Boolean })], F.prototype, "hasPageTitle", void 0), M([ct({ context: dt })], F.prototype, "_focusManager", void 0), F = M([y(), o("vsn-menu")], F);
|
|
622
622
|
//#endregion
|
|
623
623
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-button.ts
|
|
624
|
-
var
|
|
624
|
+
var I = class extends e {
|
|
625
625
|
constructor(...e) {
|
|
626
626
|
super(...e), this.label = "", this.closeOnClick = !1, this._onKeydown = (e) => {
|
|
627
|
-
e.defaultPrevented ||
|
|
627
|
+
e.defaultPrevented || E(e) && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), this.click());
|
|
628
628
|
}, this._onClick = (e) => {
|
|
629
|
-
e.defaultPrevented || e.button !== 0 ||
|
|
629
|
+
e.defaultPrevented || e.button !== 0 || T(e) || this.closeOnClick && this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
|
|
630
630
|
bubbles: !0,
|
|
631
631
|
composed: !0
|
|
632
632
|
}));
|
|
@@ -734,13 +734,13 @@ var L = class extends e {
|
|
|
734
734
|
`;
|
|
735
735
|
}
|
|
736
736
|
};
|
|
737
|
-
|
|
737
|
+
M([s()], I.prototype, "label", void 0), M([s({
|
|
738
738
|
type: Boolean,
|
|
739
739
|
attribute: "close-on-click"
|
|
740
|
-
})],
|
|
740
|
+
})], I.prototype, "closeOnClick", void 0), I = M([o("vsn-menu-button")], I);
|
|
741
741
|
//#endregion
|
|
742
742
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-separator.ts
|
|
743
|
-
var
|
|
743
|
+
var ft = class extends e {
|
|
744
744
|
static {
|
|
745
745
|
this.styles = [t`
|
|
746
746
|
/* flow-root establishes a BFC so the .line's margins stay contained.
|
|
@@ -764,15 +764,15 @@ var dt = class extends e {
|
|
|
764
764
|
return n`<div class="line"></div>`;
|
|
765
765
|
}
|
|
766
766
|
};
|
|
767
|
-
|
|
767
|
+
ft = M([o("vsn-menu-separator")], ft);
|
|
768
768
|
//#endregion
|
|
769
769
|
//#region src/components/vsn-side-bar/vsn-footer/vsn-footer.keyboard.ts
|
|
770
|
-
var
|
|
770
|
+
var pt = class {
|
|
771
771
|
constructor(e) {
|
|
772
772
|
this._prevExpanded = !1, this.onUserKeydown = (e) => {
|
|
773
|
-
e.defaultPrevented ||
|
|
773
|
+
e.defaultPrevented || T(e) || e.key === "Escape" && this.host.expanded && (e.preventDefault(), this.host.expanded = !1);
|
|
774
774
|
}, this.onDropdownKeydown = (e) => {
|
|
775
|
-
if (e.defaultPrevented ||
|
|
775
|
+
if (e.defaultPrevented || T(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
776
776
|
e.preventDefault();
|
|
777
777
|
let t = this.host.querySelector(".ga-side-navigation__footer-dropdown");
|
|
778
778
|
if (!t) return;
|
|
@@ -791,7 +791,7 @@ var ft = class {
|
|
|
791
791
|
} else !this.host.expanded && this._prevExpanded && this.host.querySelector(".ga-side-navigation__user")?.focus();
|
|
792
792
|
this._prevExpanded = this.host.expanded;
|
|
793
793
|
}
|
|
794
|
-
},
|
|
794
|
+
}, mt = class {
|
|
795
795
|
constructor(e, t, n) {
|
|
796
796
|
this._onPointerDown = (e) => {
|
|
797
797
|
let t = e.composedPath();
|
|
@@ -808,18 +808,18 @@ var ft = class {
|
|
|
808
808
|
hostDisconnected() {
|
|
809
809
|
document.removeEventListener("pointerdown", this._onPointerDown, !0);
|
|
810
810
|
}
|
|
811
|
-
},
|
|
812
|
-
function
|
|
811
|
+
}, ht = "initials";
|
|
812
|
+
function gt(e, t, n, r) {
|
|
813
813
|
if (!t) return;
|
|
814
814
|
let i = new URLSearchParams({
|
|
815
|
-
type:
|
|
815
|
+
type: ht,
|
|
816
816
|
size: r
|
|
817
817
|
});
|
|
818
818
|
return n && i.set("client_id", n), `${e}${t}?${i}`;
|
|
819
819
|
}
|
|
820
820
|
//#endregion
|
|
821
821
|
//#region src/components/controllers/focus-trapping-controller.ts
|
|
822
|
-
var
|
|
822
|
+
var L = class {
|
|
823
823
|
constructor(e, t, n = void 0) {
|
|
824
824
|
this._rootElement = null, this._onKeyDown = (e) => {
|
|
825
825
|
if (e.defaultPrevented || e.key !== "Tab" || e.ctrlKey || e.altKey || e.metaKey || !this._appliesCallback() || this._rootElement == null) return;
|
|
@@ -838,31 +838,31 @@ var R = class {
|
|
|
838
838
|
hostUpdated() {
|
|
839
839
|
this._rootElement == null && this._rootSelector && (this._rootElement = this._host.renderRoot.querySelector(this._rootSelector), this._rootElement != null && this._rootElement.addEventListener("keydown", this._onKeyDown));
|
|
840
840
|
}
|
|
841
|
-
},
|
|
842
|
-
profile:
|
|
843
|
-
logout:
|
|
844
|
-
},
|
|
845
|
-
profile:
|
|
846
|
-
logout:
|
|
847
|
-
}),
|
|
841
|
+
}, _t = {
|
|
842
|
+
profile: qe,
|
|
843
|
+
logout: Je
|
|
844
|
+
}, vt = () => ({
|
|
845
|
+
profile: v("My profile"),
|
|
846
|
+
logout: v("Log out")
|
|
847
|
+
}), R = class extends e {
|
|
848
848
|
createRenderRoot() {
|
|
849
849
|
return this;
|
|
850
850
|
}
|
|
851
851
|
get _items() {
|
|
852
852
|
return [{
|
|
853
853
|
id: "profile",
|
|
854
|
-
label:
|
|
854
|
+
label: vt().profile,
|
|
855
855
|
url: this.myProfileUrl
|
|
856
856
|
}, {
|
|
857
857
|
id: "logout",
|
|
858
|
-
label:
|
|
858
|
+
label: vt().logout,
|
|
859
859
|
url: "/logout"
|
|
860
860
|
}];
|
|
861
861
|
}
|
|
862
862
|
constructor() {
|
|
863
|
-
super(), this.expanded = !1, this._avatarFailed = !1, this._keyboard = new
|
|
863
|
+
super(), this.expanded = !1, this._avatarFailed = !1, this._keyboard = new pt(this), new mt(this, [".ga-side-navigation__footer-dropdown", ".ga-side-navigation__user"], () => {
|
|
864
864
|
this.expanded = !1;
|
|
865
|
-
}), new
|
|
865
|
+
}), new L(this, () => this.expanded);
|
|
866
866
|
}
|
|
867
867
|
willUpdate(e) {
|
|
868
868
|
(e.has("user") || e.has("profilePictureBaseUrl")) && (this._avatarFailed = !1);
|
|
@@ -896,7 +896,7 @@ var R = class {
|
|
|
896
896
|
</div>
|
|
897
897
|
|
|
898
898
|
<span class="ga-side-navigation__user-action">
|
|
899
|
-
${this.expanded ?
|
|
899
|
+
${this.expanded ? D(Ze, 16) : D(Xe, 16)}
|
|
900
900
|
</span>
|
|
901
901
|
|
|
902
902
|
</button>
|
|
@@ -910,14 +910,14 @@ var R = class {
|
|
|
910
910
|
${this._items.map((e) => {
|
|
911
911
|
let t = n`
|
|
912
912
|
<span class="ga-side-navigation__footer-dropdown-icon">
|
|
913
|
-
${
|
|
913
|
+
${D(_t[e.id], 16)}
|
|
914
914
|
</span>
|
|
915
915
|
<span class="ga-side-navigation__footer-dropdown-title">
|
|
916
916
|
${e.label}
|
|
917
917
|
</span>
|
|
918
918
|
${e.external ? n`
|
|
919
919
|
<span class="ga-side-navigation__footer-dropdown-trail">
|
|
920
|
-
${
|
|
920
|
+
${D(Ye, 16)}
|
|
921
921
|
</span>
|
|
922
922
|
` : r}
|
|
923
923
|
`;
|
|
@@ -957,7 +957,7 @@ var R = class {
|
|
|
957
957
|
}));
|
|
958
958
|
}
|
|
959
959
|
renderAvatar() {
|
|
960
|
-
let e =
|
|
960
|
+
let e = gt(this.profilePictureBaseUrl, this.user.userId, this.user.clientId, "small");
|
|
961
961
|
return e && !this._avatarFailed ? n`<img
|
|
962
962
|
class="ga-side-navigation__user-avatar"
|
|
963
963
|
src=${e}
|
|
@@ -965,33 +965,33 @@ var R = class {
|
|
|
965
965
|
@error=${() => {
|
|
966
966
|
this._avatarFailed = !0;
|
|
967
967
|
}}/>` : n`<span class="ga-side-navigation__user-avatar vsn-side-navigation__user-avatar--icon">
|
|
968
|
-
${
|
|
968
|
+
${D(qe, 24)}
|
|
969
969
|
</span>`;
|
|
970
970
|
}
|
|
971
971
|
};
|
|
972
|
-
|
|
972
|
+
M([s({ attribute: !1 })], R.prototype, "user", void 0), M([s()], R.prototype, "profilePictureBaseUrl", void 0), M([s()], R.prototype, "myProfileUrl", void 0), M([s({
|
|
973
973
|
type: Boolean,
|
|
974
974
|
reflect: !0
|
|
975
|
-
})],
|
|
975
|
+
})], R.prototype, "expanded", void 0), M([l()], R.prototype, "_avatarFailed", void 0), R = M([y(), o("vsn-footer")], R);
|
|
976
976
|
//#endregion
|
|
977
977
|
//#region src/components/vsn-side-bar/vsn-header/vsn-header.keyboard.ts
|
|
978
|
-
var
|
|
978
|
+
var yt = class {
|
|
979
979
|
constructor(e) {
|
|
980
980
|
this.onSwitcherKeydown = (e) => {
|
|
981
|
-
e.defaultPrevented ||
|
|
981
|
+
e.defaultPrevented || T(e) || this.host.expanded && e.key === "Escape" && this.host.requestClose() && e.preventDefault();
|
|
982
982
|
}, this.host = e, e.addController(this);
|
|
983
983
|
}
|
|
984
984
|
hostConnected() {}
|
|
985
|
-
},
|
|
985
|
+
}, z = class extends e {
|
|
986
986
|
constructor(...e) {
|
|
987
987
|
super(...e), this.items = [], this.loading = !1, this.maxHeight = 0, this._handleKeydown = (e) => {
|
|
988
988
|
if (e.defaultPrevented) return;
|
|
989
|
-
if (
|
|
989
|
+
if (E(e) && (e.key === "Enter" || e.key === " ")) {
|
|
990
990
|
let t = e.target;
|
|
991
991
|
t instanceof HTMLElement && t.classList.contains("ga-side-navigation__switcher-dropdown-item") && (e.preventDefault(), t.click());
|
|
992
992
|
return;
|
|
993
993
|
}
|
|
994
|
-
if (
|
|
994
|
+
if (T(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
995
995
|
e.preventDefault();
|
|
996
996
|
let t = Array.from(this.querySelectorAll(".ga-side-navigation__switcher-dropdown-item"));
|
|
997
997
|
if (t.length === 0) return;
|
|
@@ -1006,7 +1006,7 @@ var vt = class {
|
|
|
1006
1006
|
this.loading || this.querySelector(".ga-side-navigation__switcher-dropdown-item")?.focus();
|
|
1007
1007
|
}
|
|
1008
1008
|
_handleItemClick(e, t) {
|
|
1009
|
-
|
|
1009
|
+
T(e) || (e.preventDefault(), this.dispatchEvent(new CustomEvent("item-select", {
|
|
1010
1010
|
detail: { id: t },
|
|
1011
1011
|
bubbles: !0,
|
|
1012
1012
|
composed: !0
|
|
@@ -1017,16 +1017,16 @@ var vt = class {
|
|
|
1017
1017
|
<div class="ga-side-navigation__switcher-dropdown vsn-switcher-dropdown--loading"
|
|
1018
1018
|
role="status"
|
|
1019
1019
|
aria-busy="true"
|
|
1020
|
-
aria-label=${
|
|
1020
|
+
aria-label=${v("Loading modules")}>
|
|
1021
1021
|
<span class="vsn-spinner"></span>
|
|
1022
1022
|
</div>
|
|
1023
1023
|
` : n`
|
|
1024
1024
|
<div class="ga-side-navigation__switcher-dropdown ga-scroll"
|
|
1025
1025
|
role="menu"
|
|
1026
1026
|
style=${`max-height: ${Math.max(0, this.maxHeight)}px`}
|
|
1027
|
-
aria-label=${
|
|
1027
|
+
aria-label=${ke()}
|
|
1028
1028
|
@keydown=${this._handleKeydown}>
|
|
1029
|
-
<span class="ga-side-navigation__switcher-dropdown-header">${
|
|
1029
|
+
<span class="ga-side-navigation__switcher-dropdown-header">${ke()}</span>
|
|
1030
1030
|
${this.items.map((e) => n`
|
|
1031
1031
|
<a class="ga-side-navigation__switcher-dropdown-item"
|
|
1032
1032
|
href=${e.url ?? ""}
|
|
@@ -1039,10 +1039,10 @@ var vt = class {
|
|
|
1039
1039
|
`;
|
|
1040
1040
|
}
|
|
1041
1041
|
};
|
|
1042
|
-
|
|
1042
|
+
M([s({ attribute: !1 })], z.prototype, "items", void 0), M([s({ type: Boolean })], z.prototype, "loading", void 0), M([s({ attribute: !1 })], z.prototype, "maxHeight", void 0), z = M([y(), o("vsn-switcher-menu")], z);
|
|
1043
1043
|
//#endregion
|
|
1044
1044
|
//#region src/components/vsn-side-bar/vsn-search/vsn-search.ts
|
|
1045
|
-
var
|
|
1045
|
+
var B = class extends e {
|
|
1046
1046
|
constructor(...e) {
|
|
1047
1047
|
super(...e), this.shortcut = "", this.value = "", this.loading = !1, this._scheduleAutoSearch = () => {
|
|
1048
1048
|
this._cancelDebounce(), this._debounceTimer = window.setTimeout(this._emitSearch, 200);
|
|
@@ -1060,7 +1060,7 @@ var V = class extends e {
|
|
|
1060
1060
|
composed: !0
|
|
1061
1061
|
}));
|
|
1062
1062
|
}, this._handleEscape = (e) => {
|
|
1063
|
-
e.defaultPrevented ||
|
|
1063
|
+
e.defaultPrevented || E(e) && e.key === "Escape" && this.value.length > 0 && (e.preventDefault(), this._emitSearchCleared());
|
|
1064
1064
|
};
|
|
1065
1065
|
}
|
|
1066
1066
|
createRenderRoot() {
|
|
@@ -1085,7 +1085,7 @@ var V = class extends e {
|
|
|
1085
1085
|
this._cancelDebounce(), super.disconnectedCallback();
|
|
1086
1086
|
}
|
|
1087
1087
|
_handleEnter(e) {
|
|
1088
|
-
e.defaultPrevented ||
|
|
1088
|
+
e.defaultPrevented || E(e) && e.key === "Enter" && this._emitSearch();
|
|
1089
1089
|
}
|
|
1090
1090
|
render() {
|
|
1091
1091
|
let e = this.value.length > 0 && this.value.length < 3;
|
|
@@ -1094,20 +1094,20 @@ var V = class extends e {
|
|
|
1094
1094
|
<button
|
|
1095
1095
|
type="button"
|
|
1096
1096
|
class="vsn-search__trigger"
|
|
1097
|
-
aria-label=${
|
|
1097
|
+
aria-label=${v("Search")}
|
|
1098
1098
|
?disabled=${!this._canSearch}
|
|
1099
1099
|
@click=${this._emitSearch}>
|
|
1100
|
-
${
|
|
1100
|
+
${D(Qe, 24)}
|
|
1101
1101
|
</button>
|
|
1102
1102
|
<input type="search"
|
|
1103
|
-
.placeholder=${
|
|
1103
|
+
.placeholder=${Ae()}
|
|
1104
1104
|
.value=${this.value}
|
|
1105
1105
|
@input=${this._handleInput}
|
|
1106
1106
|
@keydown=${this._handleEnter}/>
|
|
1107
1107
|
${this._trailingSlot()}
|
|
1108
1108
|
</div>
|
|
1109
1109
|
${p(e, () => n`
|
|
1110
|
-
<div class="vsn-search__helper">${
|
|
1110
|
+
<div class="vsn-search__helper">${Me(3)}</div>`)}
|
|
1111
1111
|
`;
|
|
1112
1112
|
}
|
|
1113
1113
|
_trailingSlot() {
|
|
@@ -1119,13 +1119,13 @@ var V = class extends e {
|
|
|
1119
1119
|
`;
|
|
1120
1120
|
}
|
|
1121
1121
|
_spinner() {
|
|
1122
|
-
return n`<span class="vsn-spinner" role="status" aria-label=${
|
|
1122
|
+
return n`<span class="vsn-spinner" role="status" aria-label=${v("Searching")}></span>`;
|
|
1123
1123
|
}
|
|
1124
1124
|
_clearButton() {
|
|
1125
1125
|
return n`
|
|
1126
|
-
<button class="vsn-search__clear" aria-label=${
|
|
1126
|
+
<button class="vsn-search__clear" aria-label=${v("Clear search")}
|
|
1127
1127
|
@click=${this._emitSearchCleared}>
|
|
1128
|
-
${
|
|
1128
|
+
${D($e, 16)}
|
|
1129
1129
|
</button>
|
|
1130
1130
|
`;
|
|
1131
1131
|
}
|
|
@@ -1133,17 +1133,17 @@ var V = class extends e {
|
|
|
1133
1133
|
return n`<kbd class="ga-side-navigation__search-shortcut">${this.shortcut}</kbd>`;
|
|
1134
1134
|
}
|
|
1135
1135
|
};
|
|
1136
|
-
|
|
1136
|
+
M([s()], B.prototype, "shortcut", void 0), M([s()], B.prototype, "value", void 0), M([s({ type: Boolean })], B.prototype, "loading", void 0), B = M([y(), o("vsn-search")], B);
|
|
1137
1137
|
//#endregion
|
|
1138
1138
|
//#region src/components/vsn-side-bar/vsn-header/vsn-header.ts
|
|
1139
|
-
var
|
|
1139
|
+
var V = class extends e {
|
|
1140
1140
|
createRenderRoot() {
|
|
1141
1141
|
return this;
|
|
1142
1142
|
}
|
|
1143
1143
|
constructor() {
|
|
1144
|
-
super(), this.modules = [], this.modulesLoading = !1, this.hasMenu = !1, this.moduleSwitcherMaxHeight = 0, this.searchValue = "", this.searchLoading = !1, this.expanded = !1, this._keyboard = new
|
|
1144
|
+
super(), this.modules = [], this.modulesLoading = !1, this.hasMenu = !1, this.moduleSwitcherMaxHeight = 0, this.searchValue = "", this.searchLoading = !1, this.expanded = !1, this._keyboard = new yt(this), new mt(this, [".ga-side-navigation__switcher-dropdown", ".ga-side-navigation__switcher"], () => {
|
|
1145
1145
|
this.canClose && (this.expanded = !1);
|
|
1146
|
-
}), new
|
|
1146
|
+
}), new L(this, () => this.expanded, ".vsn-switcher-anchor");
|
|
1147
1147
|
}
|
|
1148
1148
|
focus() {
|
|
1149
1149
|
let e = this.querySelector("vsn-search");
|
|
@@ -1166,7 +1166,7 @@ var H = class extends e {
|
|
|
1166
1166
|
title="">
|
|
1167
1167
|
<span class="ga-side-navigation__switcher-title">${e.title}</span>
|
|
1168
1168
|
<span class="ga-side-navigation__switcher-action">
|
|
1169
|
-
${this.canClose ? this.expanded ? O
|
|
1169
|
+
${this.canClose ? this.expanded ? D(O, 16) : D(Xe, 16) : D(ze, 16)}
|
|
1170
1170
|
</span>
|
|
1171
1171
|
</button>
|
|
1172
1172
|
|
|
@@ -1181,7 +1181,7 @@ var H = class extends e {
|
|
|
1181
1181
|
|
|
1182
1182
|
${p(this.search?.enabled, () => n`
|
|
1183
1183
|
<vsn-search
|
|
1184
|
-
.shortcut=${
|
|
1184
|
+
.shortcut=${je()}
|
|
1185
1185
|
.value=${this.searchValue}
|
|
1186
1186
|
.loading=${this.searchLoading}>
|
|
1187
1187
|
</vsn-search>`)}
|
|
@@ -1191,7 +1191,7 @@ var H = class extends e {
|
|
|
1191
1191
|
get _state() {
|
|
1192
1192
|
if (this.modulesLoading) return {
|
|
1193
1193
|
kind: "loading",
|
|
1194
|
-
title: this.activeModuleLabel ||
|
|
1194
|
+
title: this.activeModuleLabel || Fe()
|
|
1195
1195
|
};
|
|
1196
1196
|
let e = this.modules.find((e) => e.id === this.activeModuleId);
|
|
1197
1197
|
return e ? {
|
|
@@ -1200,7 +1200,7 @@ var H = class extends e {
|
|
|
1200
1200
|
available: this.modules.filter((t) => t.id !== e.id)
|
|
1201
1201
|
} : {
|
|
1202
1202
|
kind: "no-active",
|
|
1203
|
-
title:
|
|
1203
|
+
title: Fe(),
|
|
1204
1204
|
available: this.modules
|
|
1205
1205
|
};
|
|
1206
1206
|
}
|
|
@@ -1238,16 +1238,16 @@ var H = class extends e {
|
|
|
1238
1238
|
}), !0);
|
|
1239
1239
|
}
|
|
1240
1240
|
};
|
|
1241
|
-
|
|
1241
|
+
M([s({ attribute: !1 })], V.prototype, "modules", void 0), M([s()], V.prototype, "activeModuleId", void 0), M([s()], V.prototype, "activeModuleLabel", void 0), M([s({ type: Boolean })], V.prototype, "modulesLoading", void 0), M([s({ type: Boolean })], V.prototype, "hasMenu", void 0), M([s({ attribute: !1 })], V.prototype, "moduleSwitcherMaxHeight", void 0), M([s({ attribute: !1 })], V.prototype, "search", void 0), M([s()], V.prototype, "searchValue", void 0), M([s({ type: Boolean })], V.prototype, "searchLoading", void 0), M([s({
|
|
1242
1242
|
type: Boolean,
|
|
1243
1243
|
reflect: !0
|
|
1244
|
-
})],
|
|
1244
|
+
})], V.prototype, "expanded", void 0), V = M([y(), o("vsn-header")], V);
|
|
1245
1245
|
//#endregion
|
|
1246
1246
|
//#region src/components/vsn-side-bar/vsn-search-results/vsn-search-results.keyboard.ts
|
|
1247
|
-
var
|
|
1247
|
+
var bt = class {
|
|
1248
1248
|
constructor(e) {
|
|
1249
1249
|
this.onResultsKeydown = (e) => {
|
|
1250
|
-
if (e.defaultPrevented ||
|
|
1250
|
+
if (e.defaultPrevented || T(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
1251
1251
|
e.preventDefault();
|
|
1252
1252
|
let t = Array.from(this.host.querySelectorAll(".ga-side-navigation__search-results-item"));
|
|
1253
1253
|
if (t.length === 0) return;
|
|
@@ -1258,9 +1258,9 @@ var yt = class {
|
|
|
1258
1258
|
}, this.host = e, e.addController(this);
|
|
1259
1259
|
}
|
|
1260
1260
|
hostConnected() {}
|
|
1261
|
-
},
|
|
1261
|
+
}, xt, H = class extends e {
|
|
1262
1262
|
static {
|
|
1263
|
-
|
|
1263
|
+
xt = this;
|
|
1264
1264
|
}
|
|
1265
1265
|
createRenderRoot() {
|
|
1266
1266
|
return this;
|
|
@@ -1282,7 +1282,7 @@ var yt = class {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
}, this._onItemMouseLeave = () => {
|
|
1284
1284
|
this._showTooltip = !1;
|
|
1285
|
-
}, this._tooltipId = `vsn-search-result-item-tooltip-${
|
|
1285
|
+
}, this._tooltipId = `vsn-search-result-item-tooltip-${xt._idCounter++}`;
|
|
1286
1286
|
}
|
|
1287
1287
|
render() {
|
|
1288
1288
|
let e = this.item;
|
|
@@ -1316,12 +1316,12 @@ var yt = class {
|
|
|
1316
1316
|
}));
|
|
1317
1317
|
}
|
|
1318
1318
|
};
|
|
1319
|
-
|
|
1319
|
+
M([s({ attribute: !1 })], H.prototype, "item", void 0), M([l()], H.prototype, "_showTooltip", void 0), M([l()], H.prototype, "_tooltipPos", void 0), M([c(".ga-side-navigation__search-results-item-label")], H.prototype, "_labelEl", void 0), H = xt = M([o("vsn-search-result-item")], H);
|
|
1320
1320
|
//#endregion
|
|
1321
1321
|
//#region src/components/vsn-side-bar/vsn-search-results/vsn-search-results.ts
|
|
1322
|
-
var
|
|
1322
|
+
var U = class extends e {
|
|
1323
1323
|
constructor(...e) {
|
|
1324
|
-
super(...e), this.loadingMore = !1, this._keyboard = new
|
|
1324
|
+
super(...e), this.loadingMore = !1, this._keyboard = new bt(this);
|
|
1325
1325
|
}
|
|
1326
1326
|
createRenderRoot() {
|
|
1327
1327
|
return this;
|
|
@@ -1332,10 +1332,10 @@ var W = class extends e {
|
|
|
1332
1332
|
_emptyState() {
|
|
1333
1333
|
return n`
|
|
1334
1334
|
<div class="vsn-search-results__empty" role="status" aria-live="polite">
|
|
1335
|
-
<div class="vsn-search-results__empty-title">${
|
|
1336
|
-
<div class="vsn-search-results__empty-message">${
|
|
1337
|
-
<div class="vsn-search-results__empty-hint">${
|
|
1338
|
-
<div class="vsn-search-results__empty-support">${
|
|
1335
|
+
<div class="vsn-search-results__empty-title">${v("No results found")}</div>
|
|
1336
|
+
<div class="vsn-search-results__empty-message">${v("We couldn't find any matches.")}</div>
|
|
1337
|
+
<div class="vsn-search-results__empty-hint">${v("Try different keywords or check spelling.")}</div>
|
|
1338
|
+
<div class="vsn-search-results__empty-support">${v("Need help? Contact support.")}</div>
|
|
1339
1339
|
</div>
|
|
1340
1340
|
`;
|
|
1341
1341
|
}
|
|
@@ -1352,7 +1352,7 @@ var W = class extends e {
|
|
|
1352
1352
|
<div class="ga-side-navigation__body h-full ga-scroll"
|
|
1353
1353
|
@keydown=${this._keyboard.onResultsKeydown}>
|
|
1354
1354
|
<div class="ga-side-navigation__search-results-title" role="status" aria-live="polite" aria-atomic="true">
|
|
1355
|
-
${
|
|
1355
|
+
${v(t === 1 ? _`${t} result` : _`${t} results`)}
|
|
1356
1356
|
</div>
|
|
1357
1357
|
${e.map((e) => n`
|
|
1358
1358
|
<vsn-search-result-item .item=${e}></vsn-search-result-item>
|
|
@@ -1363,7 +1363,7 @@ var W = class extends e {
|
|
|
1363
1363
|
class="vsn-search-results__load-more"
|
|
1364
1364
|
?disabled=${this.loadingMore}
|
|
1365
1365
|
@click=${this._onLoadMore}>
|
|
1366
|
-
${
|
|
1366
|
+
${Pe()}
|
|
1367
1367
|
</button>
|
|
1368
1368
|
`)}
|
|
1369
1369
|
</div>
|
|
@@ -1376,16 +1376,16 @@ var W = class extends e {
|
|
|
1376
1376
|
}));
|
|
1377
1377
|
}
|
|
1378
1378
|
};
|
|
1379
|
-
|
|
1379
|
+
M([s({ attribute: !1 })], U.prototype, "results", void 0), M([s()], U.prototype, "errorMessage", void 0), M([s()], U.prototype, "nextCursor", void 0), M([s({ type: Boolean })], U.prototype, "loadingMore", void 0), U = M([y(), o("vsn-search-results")], U);
|
|
1380
1380
|
//#endregion
|
|
1381
1381
|
//#region src/components/vsn-side-bar/vsn-template/vsn-template.ts
|
|
1382
|
-
var
|
|
1382
|
+
var St = [
|
|
1383
1383
|
160,
|
|
1384
1384
|
96,
|
|
1385
1385
|
144,
|
|
1386
1386
|
192,
|
|
1387
1387
|
160
|
|
1388
|
-
],
|
|
1388
|
+
], Ct = class extends e {
|
|
1389
1389
|
createRenderRoot() {
|
|
1390
1390
|
return this;
|
|
1391
1391
|
}
|
|
@@ -1394,8 +1394,8 @@ var xt = [
|
|
|
1394
1394
|
<div class="ga-side-navigation__body h-full"
|
|
1395
1395
|
role="status"
|
|
1396
1396
|
aria-busy="true"
|
|
1397
|
-
aria-label=${
|
|
1398
|
-
${
|
|
1397
|
+
aria-label=${v("Loading results")}>
|
|
1398
|
+
${St.map((e) => n`
|
|
1399
1399
|
<div class="vsn-template__row">
|
|
1400
1400
|
<div class="vsn-template__bar" style="width: ${e}px"></div>
|
|
1401
1401
|
</div>
|
|
@@ -1404,34 +1404,34 @@ var xt = [
|
|
|
1404
1404
|
`;
|
|
1405
1405
|
}
|
|
1406
1406
|
};
|
|
1407
|
-
|
|
1407
|
+
Ct = M([y(), o("vsn-template")], Ct);
|
|
1408
1408
|
//#endregion
|
|
1409
1409
|
//#region src/components/vsn-side-bar/vsn-error-state/vsn-error-state.ts
|
|
1410
|
-
var
|
|
1410
|
+
var wt = class extends e {
|
|
1411
1411
|
createRenderRoot() {
|
|
1412
1412
|
return this;
|
|
1413
1413
|
}
|
|
1414
1414
|
render() {
|
|
1415
1415
|
return n`
|
|
1416
1416
|
<div class="vsn-error-state" role="alert" aria-live="assertive">
|
|
1417
|
-
<div class="vsn-error-state__icon">${
|
|
1418
|
-
<div class="vsn-error-state__title">${
|
|
1419
|
-
<div class="vsn-error-state__message">${
|
|
1420
|
-
<div class="vsn-error-state__hint">${
|
|
1421
|
-
<div class="vsn-error-state__support">${
|
|
1417
|
+
<div class="vsn-error-state__icon">${D(et, 24)}</div>
|
|
1418
|
+
<div class="vsn-error-state__title">${v("Loading error")}</div>
|
|
1419
|
+
<div class="vsn-error-state__message">${v("We're unable to load the menu.")}</div>
|
|
1420
|
+
<div class="vsn-error-state__hint">${v("Please check your internet connection and try again.")}</div>
|
|
1421
|
+
<div class="vsn-error-state__support">${v("If the issue persists, reload the page or contact support.")}</div>
|
|
1422
1422
|
</div>
|
|
1423
1423
|
`;
|
|
1424
1424
|
}
|
|
1425
1425
|
};
|
|
1426
|
-
|
|
1426
|
+
wt = M([y(), o("vsn-error-state")], wt);
|
|
1427
1427
|
//#endregion
|
|
1428
1428
|
//#region src/components/vsn-side-bar/vsn-search-scopes/vsn-search-scopes.ts
|
|
1429
|
-
var
|
|
1429
|
+
var Tt, W = class extends e {
|
|
1430
1430
|
static {
|
|
1431
|
-
|
|
1431
|
+
Tt = this;
|
|
1432
1432
|
}
|
|
1433
1433
|
constructor(...e) {
|
|
1434
|
-
super(...e), this.scopes = [], this.selectedScopeId = "", this._name = `vsn-search-scope-${++
|
|
1434
|
+
super(...e), this.scopes = [], this.selectedScopeId = "", this._name = `vsn-search-scope-${++Tt._counter}`;
|
|
1435
1435
|
}
|
|
1436
1436
|
createRenderRoot() {
|
|
1437
1437
|
return this;
|
|
@@ -1441,7 +1441,7 @@ var wt, G = class extends e {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
render() {
|
|
1443
1443
|
return this.scopes.length <= 1 ? n`` : n`
|
|
1444
|
-
<div class="ga-radio-group" role="radiogroup" aria-label=${
|
|
1444
|
+
<div class="ga-radio-group" role="radiogroup" aria-label=${v("Search scope")}>
|
|
1445
1445
|
${this.scopes.map((e) => this._renderScope(e))}
|
|
1446
1446
|
</div>
|
|
1447
1447
|
`;
|
|
@@ -1470,31 +1470,35 @@ var wt, G = class extends e {
|
|
|
1470
1470
|
}));
|
|
1471
1471
|
}
|
|
1472
1472
|
};
|
|
1473
|
-
|
|
1473
|
+
M([s({ attribute: !1 })], W.prototype, "scopes", void 0), M([s()], W.prototype, "selectedScopeId", void 0), W = Tt = M([y(), o("vsn-search-scopes")], W);
|
|
1474
1474
|
//#endregion
|
|
1475
1475
|
//#region src/shared/lang/locale-codes.ts
|
|
1476
|
-
var
|
|
1476
|
+
var Et = "en", Dt = [
|
|
1477
1477
|
"da",
|
|
1478
1478
|
"fi",
|
|
1479
1479
|
"nl",
|
|
1480
1480
|
"no",
|
|
1481
1481
|
"sv"
|
|
1482
|
-
],
|
|
1482
|
+
], Ot = /* @__PURE__ */ m({ templates: () => kt }), kt = {
|
|
1483
1483
|
s09a45db408570a7a: "Min profil",
|
|
1484
1484
|
s119f9875b7d4cdfc: "Har du brug for hjælp? Kontakt support.",
|
|
1485
|
-
s1228605ee65ddefa:
|
|
1486
|
-
s2bb33291ef8ae3d4:
|
|
1485
|
+
s1228605ee65ddefa: _`${0} resultat`,
|
|
1486
|
+
s2bb33291ef8ae3d4: _`Indtast mindst ${0} tegn for at søge`,
|
|
1487
1487
|
s2be8f715fbd00dcb: "Vi fandt ingen matchende resultater.",
|
|
1488
1488
|
s3112f1ca236c8a61: "Indlæsningsfejl",
|
|
1489
1489
|
s352719d86112de9a: "Hjælp",
|
|
1490
|
-
s387a4a41718122cb:
|
|
1490
|
+
s387a4a41718122cb: _`${0} resultater`,
|
|
1491
1491
|
s3fb7db4771812f0c: "Hvis problemet fortsætter, genindlæs siden eller kontakt support.",
|
|
1492
|
+
s457d59d649765619: "Gå til hovedindhold",
|
|
1492
1493
|
s4b0c6b66b4efd7d8: "Vælg en tjeneste",
|
|
1493
1494
|
s5be3c6d61cd9182f: "Notifikationer",
|
|
1495
|
+
s5d369be551a4dd7a: "Menupunkter",
|
|
1494
1496
|
s5d929ff1619ac0c9: "Søg",
|
|
1495
1497
|
s5f4586bc1e2740e6: "Ryd søgning",
|
|
1496
1498
|
s60fb9db2c6c14775: "Tjek din internetforbindelse og prøv igen.",
|
|
1497
1499
|
s6abb1cd87fe0114e: "Hjem",
|
|
1500
|
+
s7584ded3d749c75e: "Indlæs mere",
|
|
1501
|
+
s842e9f4f6fdb5901: "Søgeomfang",
|
|
1498
1502
|
s8a1cc2725e462c2a: "Send feedback",
|
|
1499
1503
|
s8d91340b5caa2d5c: "Åbn menu",
|
|
1500
1504
|
s9094c0cde8fb5058: "Ingen resultater fundet",
|
|
@@ -1503,31 +1507,32 @@ var Tt = "en", Et = [
|
|
|
1503
1507
|
sb560e5cd092ef2e5: "Indlæser resultater",
|
|
1504
1508
|
sb64127e4e4f0b575: "Log ud",
|
|
1505
1509
|
sbb588bb505779122: "Feedback",
|
|
1506
|
-
sd9582ea5f8f8ac5d: "Åbn AI-assistent",
|
|
1507
1510
|
sd1b2ae9109b29cf0: "Sidenavigation",
|
|
1511
|
+
sd9582ea5f8f8ac5d: "Åbn AI-assistent",
|
|
1508
1512
|
sdb2bf46270cfda6c: "Brødkrumme",
|
|
1509
1513
|
sfbf31f663cef6cc2: "Prøv andre søgeord eller tjek stavningen.",
|
|
1510
1514
|
s7c510419ea376840: "VSN",
|
|
1511
|
-
s38385cd359b17f7a: "Loading modules"
|
|
1512
|
-
|
|
1513
|
-
s5d369be551a4dd7a: "Menupunkter",
|
|
1514
|
-
s7584ded3d749c75e: "Indlæs mere"
|
|
1515
|
-
}, kt = /* @__PURE__ */ m({ templates: () => At }), At = {
|
|
1515
|
+
s38385cd359b17f7a: "Loading modules"
|
|
1516
|
+
}, At = /* @__PURE__ */ m({ templates: () => jt }), jt = {
|
|
1516
1517
|
s09a45db408570a7a: "Oma profiili",
|
|
1517
1518
|
s119f9875b7d4cdfc: "Tarvitsetko apua? Ota yhteyttä tukeen.",
|
|
1518
|
-
s1228605ee65ddefa:
|
|
1519
|
-
s2bb33291ef8ae3d4:
|
|
1519
|
+
s1228605ee65ddefa: _`${0} tulos`,
|
|
1520
|
+
s2bb33291ef8ae3d4: _`Kirjoita vähintään ${0} merkkiä hakua varten`,
|
|
1520
1521
|
s2be8f715fbd00dcb: "Emme löytäneet osumia.",
|
|
1521
1522
|
s3112f1ca236c8a61: "Latausvirhe",
|
|
1522
1523
|
s352719d86112de9a: "Ohje",
|
|
1523
|
-
s387a4a41718122cb:
|
|
1524
|
+
s387a4a41718122cb: _`${0} tulosta`,
|
|
1524
1525
|
s3fb7db4771812f0c: "Jos ongelma jatkuu, lataa sivu uudelleen tai ota yhteyttä tukeen.",
|
|
1526
|
+
s457d59d649765619: "Siirry pääsisältöön",
|
|
1525
1527
|
s4b0c6b66b4efd7d8: "Valitse palvelu",
|
|
1526
1528
|
s5be3c6d61cd9182f: "Ilmoitukset",
|
|
1529
|
+
s5d369be551a4dd7a: "Valikkokohteet",
|
|
1527
1530
|
s5d929ff1619ac0c9: "Hae",
|
|
1528
1531
|
s5f4586bc1e2740e6: "Tyhjennä haku",
|
|
1529
1532
|
s60fb9db2c6c14775: "Tarkista internetyhteytesi ja yritä uudelleen.",
|
|
1530
1533
|
s6abb1cd87fe0114e: "Etusivu",
|
|
1534
|
+
s7584ded3d749c75e: "Lataa lisää",
|
|
1535
|
+
s842e9f4f6fdb5901: "Hakuala",
|
|
1531
1536
|
s8a1cc2725e462c2a: "Lähetä palautetta",
|
|
1532
1537
|
s8d91340b5caa2d5c: "Avaa valikko",
|
|
1533
1538
|
s9094c0cde8fb5058: "Tuloksia ei löytynyt",
|
|
@@ -1536,31 +1541,32 @@ var Tt = "en", Et = [
|
|
|
1536
1541
|
sb560e5cd092ef2e5: "Ladataan tuloksia",
|
|
1537
1542
|
sb64127e4e4f0b575: "Kirjaudu ulos",
|
|
1538
1543
|
sbb588bb505779122: "Palaute",
|
|
1539
|
-
sd9582ea5f8f8ac5d: "Avaa AI-avustaja",
|
|
1540
1544
|
sd1b2ae9109b29cf0: "Sivunavigaatio",
|
|
1545
|
+
sd9582ea5f8f8ac5d: "Avaa AI-avustaja",
|
|
1541
1546
|
sdb2bf46270cfda6c: "Murupolku",
|
|
1542
1547
|
sfbf31f663cef6cc2: "Kokeile eri hakusanoja tai tarkista kirjoitusasu.",
|
|
1543
1548
|
s7c510419ea376840: "VSN",
|
|
1544
|
-
s38385cd359b17f7a: "Loading modules"
|
|
1545
|
-
|
|
1546
|
-
s5d369be551a4dd7a: "Valikkokohteet",
|
|
1547
|
-
s7584ded3d749c75e: "Lataa lisää"
|
|
1548
|
-
}, jt = /* @__PURE__ */ m({ templates: () => Mt }), Mt = {
|
|
1549
|
+
s38385cd359b17f7a: "Loading modules"
|
|
1550
|
+
}, Mt = /* @__PURE__ */ m({ templates: () => Nt }), Nt = {
|
|
1549
1551
|
s09a45db408570a7a: "Mijn profiel",
|
|
1550
1552
|
s119f9875b7d4cdfc: "Hulp nodig? Neem contact op met ondersteuning.",
|
|
1551
|
-
s1228605ee65ddefa:
|
|
1552
|
-
s2bb33291ef8ae3d4:
|
|
1553
|
+
s1228605ee65ddefa: _`${0} resultaat`,
|
|
1554
|
+
s2bb33291ef8ae3d4: _`Typ minimaal ${0} tekens om te zoeken`,
|
|
1553
1555
|
s2be8f715fbd00dcb: "We konden geen overeenkomsten vinden.",
|
|
1554
1556
|
s3112f1ca236c8a61: "Laadingsfout",
|
|
1555
1557
|
s352719d86112de9a: "Hulp",
|
|
1556
|
-
s387a4a41718122cb:
|
|
1558
|
+
s387a4a41718122cb: _`${0} resultaten`,
|
|
1557
1559
|
s3fb7db4771812f0c: "Als het probleem aanhoudt, laad de pagina opnieuw of neem contact op met ondersteuning.",
|
|
1560
|
+
s457d59d649765619: "Ga naar hoofdinhoud",
|
|
1558
1561
|
s4b0c6b66b4efd7d8: "Kies een service",
|
|
1559
1562
|
s5be3c6d61cd9182f: "Meldingen",
|
|
1563
|
+
s5d369be551a4dd7a: "Menu-items",
|
|
1560
1564
|
s5d929ff1619ac0c9: "Zoeken",
|
|
1561
1565
|
s5f4586bc1e2740e6: "Zoekopdracht wissen",
|
|
1562
1566
|
s60fb9db2c6c14775: "Controleer uw internetverbinding en probeer het opnieuw.",
|
|
1563
1567
|
s6abb1cd87fe0114e: "Home",
|
|
1568
|
+
s7584ded3d749c75e: "Meer laden",
|
|
1569
|
+
s842e9f4f6fdb5901: "Zoekbereik",
|
|
1564
1570
|
s8a1cc2725e462c2a: "Feedback sturen",
|
|
1565
1571
|
s8d91340b5caa2d5c: "Menu openen",
|
|
1566
1572
|
s9094c0cde8fb5058: "Geen resultaten gevonden",
|
|
@@ -1569,31 +1575,32 @@ var Tt = "en", Et = [
|
|
|
1569
1575
|
sb560e5cd092ef2e5: "Resultaten laden",
|
|
1570
1576
|
sb64127e4e4f0b575: "Uitloggen",
|
|
1571
1577
|
sbb588bb505779122: "Feedback",
|
|
1572
|
-
sd9582ea5f8f8ac5d: "AI-assistent openen",
|
|
1573
1578
|
sd1b2ae9109b29cf0: "Zijnavigatie",
|
|
1579
|
+
sd9582ea5f8f8ac5d: "AI-assistent openen",
|
|
1574
1580
|
sdb2bf46270cfda6c: "Broodkruimel",
|
|
1575
1581
|
sfbf31f663cef6cc2: "Probeer andere zoekwoorden of controleer de spelling.",
|
|
1576
1582
|
s7c510419ea376840: "VSN",
|
|
1577
|
-
s38385cd359b17f7a: "Loading modules"
|
|
1578
|
-
|
|
1579
|
-
s5d369be551a4dd7a: "Menu-items",
|
|
1580
|
-
s7584ded3d749c75e: "Meer laden"
|
|
1581
|
-
}, Nt = /* @__PURE__ */ m({ templates: () => Pt }), Pt = {
|
|
1583
|
+
s38385cd359b17f7a: "Loading modules"
|
|
1584
|
+
}, Pt = /* @__PURE__ */ m({ templates: () => Ft }), Ft = {
|
|
1582
1585
|
s09a45db408570a7a: "Min profil",
|
|
1583
1586
|
s119f9875b7d4cdfc: "Trenger du hjelp? Kontakt støtte.",
|
|
1584
|
-
s1228605ee65ddefa:
|
|
1585
|
-
s2bb33291ef8ae3d4:
|
|
1587
|
+
s1228605ee65ddefa: _`${0} resultat`,
|
|
1588
|
+
s2bb33291ef8ae3d4: _`Skriv inn minst ${0} tegn for å søke`,
|
|
1586
1589
|
s2be8f715fbd00dcb: "Vi fant ingen treff.",
|
|
1587
1590
|
s3112f1ca236c8a61: "Lastingsfeil",
|
|
1588
1591
|
s352719d86112de9a: "Hjelp",
|
|
1589
|
-
s387a4a41718122cb:
|
|
1592
|
+
s387a4a41718122cb: _`${0} resultater`,
|
|
1590
1593
|
s3fb7db4771812f0c: "Hvis problemet vedvarer, last inn siden på nytt eller kontakt støtte.",
|
|
1594
|
+
s457d59d649765619: "Hopp til hovedinnhold",
|
|
1591
1595
|
s4b0c6b66b4efd7d8: "Velg en tjeneste",
|
|
1592
1596
|
s5be3c6d61cd9182f: "Varsler",
|
|
1597
|
+
s5d369be551a4dd7a: "Menyelementer",
|
|
1593
1598
|
s5d929ff1619ac0c9: "Søk",
|
|
1594
1599
|
s5f4586bc1e2740e6: "Tøm søk",
|
|
1595
1600
|
s60fb9db2c6c14775: "Sjekk internettforbindelsen din og prøv igjen.",
|
|
1596
1601
|
s6abb1cd87fe0114e: "Hjem",
|
|
1602
|
+
s7584ded3d749c75e: "Last inn mer",
|
|
1603
|
+
s842e9f4f6fdb5901: "Søkeomfang",
|
|
1597
1604
|
s8a1cc2725e462c2a: "Send tilbakemelding",
|
|
1598
1605
|
s8d91340b5caa2d5c: "Åpne meny",
|
|
1599
1606
|
s9094c0cde8fb5058: "Ingen resultater funnet",
|
|
@@ -1602,31 +1609,32 @@ var Tt = "en", Et = [
|
|
|
1602
1609
|
sb560e5cd092ef2e5: "Laster resultater",
|
|
1603
1610
|
sb64127e4e4f0b575: "Logg ut",
|
|
1604
1611
|
sbb588bb505779122: "Tilbakemelding",
|
|
1605
|
-
sd9582ea5f8f8ac5d: "Åpne AI-assistent",
|
|
1606
1612
|
sd1b2ae9109b29cf0: "Sidenavigasjon",
|
|
1613
|
+
sd9582ea5f8f8ac5d: "Åpne AI-assistent",
|
|
1607
1614
|
sdb2bf46270cfda6c: "Brødsmule",
|
|
1608
1615
|
sfbf31f663cef6cc2: "Prøv andre søkeord eller sjekk stavemåten.",
|
|
1609
1616
|
s7c510419ea376840: "VSN",
|
|
1610
|
-
s38385cd359b17f7a: "Loading modules"
|
|
1611
|
-
|
|
1612
|
-
s5d369be551a4dd7a: "Menyelementer",
|
|
1613
|
-
s7584ded3d749c75e: "Last inn mer"
|
|
1614
|
-
}, Ft = /* @__PURE__ */ m({ templates: () => It }), It = {
|
|
1617
|
+
s38385cd359b17f7a: "Loading modules"
|
|
1618
|
+
}, It = /* @__PURE__ */ m({ templates: () => Lt }), Lt = {
|
|
1615
1619
|
s09a45db408570a7a: "Min profil",
|
|
1616
1620
|
s119f9875b7d4cdfc: "Behöver du hjälp? Kontakta support.",
|
|
1617
|
-
s1228605ee65ddefa:
|
|
1618
|
-
s2bb33291ef8ae3d4:
|
|
1621
|
+
s1228605ee65ddefa: _`${0} resultat`,
|
|
1622
|
+
s2bb33291ef8ae3d4: _`Skriv minst ${0} tecken för att söka`,
|
|
1619
1623
|
s2be8f715fbd00dcb: "Vi hittade inga matchningar.",
|
|
1620
1624
|
s3112f1ca236c8a61: "Laddningsfel",
|
|
1621
1625
|
s352719d86112de9a: "Hjälp",
|
|
1622
|
-
s387a4a41718122cb:
|
|
1626
|
+
s387a4a41718122cb: _`${0} resultat`,
|
|
1623
1627
|
s3fb7db4771812f0c: "Om problemet kvarstår, ladda om sidan eller kontakta support.",
|
|
1628
|
+
s457d59d649765619: "Hoppa till huvudinnehåll",
|
|
1624
1629
|
s4b0c6b66b4efd7d8: "Välj en tjänst",
|
|
1625
1630
|
s5be3c6d61cd9182f: "Aviseringar",
|
|
1631
|
+
s5d369be551a4dd7a: "Menyalternativ",
|
|
1626
1632
|
s5d929ff1619ac0c9: "Sök",
|
|
1627
1633
|
s5f4586bc1e2740e6: "Rensa sökning",
|
|
1628
1634
|
s60fb9db2c6c14775: "Kontrollera din internetanslutning och försök igen.",
|
|
1629
1635
|
s6abb1cd87fe0114e: "Hem",
|
|
1636
|
+
s7584ded3d749c75e: "Läs in mer",
|
|
1637
|
+
s842e9f4f6fdb5901: "Sökområde",
|
|
1630
1638
|
s8a1cc2725e462c2a: "Skicka feedback",
|
|
1631
1639
|
s8d91340b5caa2d5c: "Öppna meny",
|
|
1632
1640
|
s9094c0cde8fb5058: "Inga resultat hittades",
|
|
@@ -1635,26 +1643,23 @@ var Tt = "en", Et = [
|
|
|
1635
1643
|
sb560e5cd092ef2e5: "Laddar resultat",
|
|
1636
1644
|
sb64127e4e4f0b575: "Logga ut",
|
|
1637
1645
|
sbb588bb505779122: "Feedback",
|
|
1638
|
-
sd9582ea5f8f8ac5d: "Öppna AI-assistent",
|
|
1639
1646
|
sd1b2ae9109b29cf0: "Sidnavigering",
|
|
1647
|
+
sd9582ea5f8f8ac5d: "Öppna AI-assistent",
|
|
1640
1648
|
sdb2bf46270cfda6c: "Brödsmula",
|
|
1641
1649
|
sfbf31f663cef6cc2: "Prova andra sökord eller kontrollera stavningen.",
|
|
1642
1650
|
s7c510419ea376840: "VSN",
|
|
1643
|
-
s38385cd359b17f7a: "Loading modules"
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
targetLocales: Et,
|
|
1656
|
-
loadLocale: (e) => Lt[e] ? Promise.resolve(Lt[e]) : Promise.reject(/* @__PURE__ */ Error(`Unknown locale: ${e}`))
|
|
1657
|
-
}), Bt = t`
|
|
1651
|
+
s38385cd359b17f7a: "Loading modules"
|
|
1652
|
+
}, Rt = {
|
|
1653
|
+
da: Ot,
|
|
1654
|
+
fi: At,
|
|
1655
|
+
nl: Mt,
|
|
1656
|
+
no: Pt,
|
|
1657
|
+
sv: It
|
|
1658
|
+
}, { getLocale: zt, setLocale: Bt } = we({
|
|
1659
|
+
sourceLocale: Et,
|
|
1660
|
+
targetLocales: Dt,
|
|
1661
|
+
loadLocale: (e) => Rt[e] ? Promise.resolve(Rt[e]) : Promise.reject(/* @__PURE__ */ Error(`Unknown locale: ${e}`))
|
|
1662
|
+
}), Vt = t`
|
|
1658
1663
|
@layer components {
|
|
1659
1664
|
vsn-footer {
|
|
1660
1665
|
display: block;
|
|
@@ -1695,7 +1700,7 @@ var Tt = "en", Et = [
|
|
|
1695
1700
|
justify-content: center;
|
|
1696
1701
|
}
|
|
1697
1702
|
}
|
|
1698
|
-
`,
|
|
1703
|
+
`, Ht = t`
|
|
1699
1704
|
@layer components {
|
|
1700
1705
|
.vsn-switcher-anchor {
|
|
1701
1706
|
position: relative;
|
|
@@ -1709,7 +1714,7 @@ var Tt = "en", Et = [
|
|
|
1709
1714
|
z-index: 10;
|
|
1710
1715
|
}
|
|
1711
1716
|
}
|
|
1712
|
-
`,
|
|
1717
|
+
`, Ut = t`
|
|
1713
1718
|
.vsn-search__trigger,
|
|
1714
1719
|
.vsn-search__clear {
|
|
1715
1720
|
display: inline-flex;
|
|
@@ -1758,7 +1763,7 @@ var Tt = "en", Et = [
|
|
|
1758
1763
|
.ga-side-navigation__search input::placeholder {
|
|
1759
1764
|
color: var(--ga-color-text-disable-selected);
|
|
1760
1765
|
}
|
|
1761
|
-
`,
|
|
1766
|
+
`, Wt = t`
|
|
1762
1767
|
.vsn-search-results__empty {
|
|
1763
1768
|
display: flex;
|
|
1764
1769
|
flex-direction: column;
|
|
@@ -1827,7 +1832,7 @@ var Tt = "en", Et = [
|
|
|
1827
1832
|
cursor: not-allowed;
|
|
1828
1833
|
opacity: 0.5;
|
|
1829
1834
|
}
|
|
1830
|
-
`,
|
|
1835
|
+
`, Gt = t`
|
|
1831
1836
|
@layer components {
|
|
1832
1837
|
vsn-search-scopes {
|
|
1833
1838
|
display: block;
|
|
@@ -1848,7 +1853,7 @@ var Tt = "en", Et = [
|
|
|
1848
1853
|
text-overflow: ellipsis;
|
|
1849
1854
|
}
|
|
1850
1855
|
}
|
|
1851
|
-
`,
|
|
1856
|
+
`, Kt = t`
|
|
1852
1857
|
.vsn-template__row {
|
|
1853
1858
|
display: flex;
|
|
1854
1859
|
flex-direction: column;
|
|
@@ -1863,7 +1868,7 @@ var Tt = "en", Et = [
|
|
|
1863
1868
|
background: var(--ga-color-miscellaneous-skeleton-element, #F2F3F5);
|
|
1864
1869
|
flex-shrink: 0;
|
|
1865
1870
|
}
|
|
1866
|
-
`,
|
|
1871
|
+
`, qt = t`
|
|
1867
1872
|
.vsn-error-state {
|
|
1868
1873
|
display: flex;
|
|
1869
1874
|
flex-direction: column;
|
|
@@ -1902,7 +1907,7 @@ var Tt = "en", Et = [
|
|
|
1902
1907
|
font-weight: 400;
|
|
1903
1908
|
color: var(--ga-color-text-on-disabled);
|
|
1904
1909
|
}
|
|
1905
|
-
`,
|
|
1910
|
+
`, Jt = t`
|
|
1906
1911
|
.vsn-spinner {
|
|
1907
1912
|
display: inline-block;
|
|
1908
1913
|
flex-shrink: 0;
|
|
@@ -1922,7 +1927,7 @@ var Tt = "en", Et = [
|
|
|
1922
1927
|
@keyframes vsn-spin {
|
|
1923
1928
|
to { transform: rotate(360deg); }
|
|
1924
1929
|
}
|
|
1925
|
-
`,
|
|
1930
|
+
`, Yt = class {
|
|
1926
1931
|
constructor(e, t, n) {
|
|
1927
1932
|
this._onHostClick = (e) => {
|
|
1928
1933
|
let t = this._host.renderRoot.querySelector(this._clickedSelector);
|
|
@@ -1935,14 +1940,14 @@ var Tt = "en", Et = [
|
|
|
1935
1940
|
hostDisconnected() {
|
|
1936
1941
|
this._host.removeEventListener("click", this._onHostClick);
|
|
1937
1942
|
}
|
|
1938
|
-
},
|
|
1943
|
+
}, Xt = "button:not([disabled]), a[href], [tabindex]:not([tabindex=\"-1\"])", Zt = class {
|
|
1939
1944
|
constructor(e) {
|
|
1940
1945
|
this.onKeydown = (e) => {
|
|
1941
|
-
if (e.defaultPrevented ||
|
|
1946
|
+
if (e.defaultPrevented || T(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
1942
1947
|
let t = this.host.renderRoot.querySelector("slot[name=\"nav-footer\"]");
|
|
1943
1948
|
if (!t) return;
|
|
1944
1949
|
let n = [];
|
|
1945
|
-
for (let e of t.assignedElements({ flatten: !0 })) e.matches(
|
|
1950
|
+
for (let e of t.assignedElements({ flatten: !0 })) e.matches(Xt) && n.push(e), n.push(...Array.from(e.querySelectorAll(Xt)));
|
|
1946
1951
|
if (n.length === 0) return;
|
|
1947
1952
|
let r = e.composedPath()[0];
|
|
1948
1953
|
if (!(r instanceof HTMLElement)) return;
|
|
@@ -1954,12 +1959,12 @@ var Tt = "en", Et = [
|
|
|
1954
1959
|
}, this.host = e, e.addController(this);
|
|
1955
1960
|
}
|
|
1956
1961
|
hostConnected() {}
|
|
1957
|
-
},
|
|
1962
|
+
}, Qt = t`
|
|
1958
1963
|
.ga-scroll {
|
|
1959
1964
|
scrollbar-color: var(--ga-color-text-disabled) var(--ga-color-surface-page);
|
|
1960
1965
|
scrollbar-width: thin;
|
|
1961
1966
|
}
|
|
1962
|
-
`,
|
|
1967
|
+
`, $t = t`
|
|
1963
1968
|
@layer components {
|
|
1964
1969
|
.vsn-menu__list {
|
|
1965
1970
|
list-style: none;
|
|
@@ -1983,7 +1988,7 @@ var Tt = "en", Et = [
|
|
|
1983
1988
|
content: var(--tw-content);
|
|
1984
1989
|
}
|
|
1985
1990
|
}
|
|
1986
|
-
`,
|
|
1991
|
+
`, en = t`
|
|
1987
1992
|
@layer base {
|
|
1988
1993
|
button:where(.ga-side-navigation__item),
|
|
1989
1994
|
button:where(.ga-side-navigation__switcher),
|
|
@@ -2000,21 +2005,21 @@ var Tt = "en", Et = [
|
|
|
2000
2005
|
color: inherit;
|
|
2001
2006
|
}
|
|
2002
2007
|
}
|
|
2003
|
-
`,
|
|
2008
|
+
`, G = class extends e {
|
|
2004
2009
|
static {
|
|
2005
2010
|
this.styles = [
|
|
2006
2011
|
g,
|
|
2007
|
-
Zt,
|
|
2008
|
-
Vt,
|
|
2009
2012
|
Qt,
|
|
2010
|
-
Bt,
|
|
2011
|
-
$t,
|
|
2012
2013
|
Ht,
|
|
2014
|
+
$t,
|
|
2015
|
+
Vt,
|
|
2016
|
+
en,
|
|
2013
2017
|
Ut,
|
|
2014
2018
|
Wt,
|
|
2015
2019
|
Gt,
|
|
2016
2020
|
Kt,
|
|
2017
2021
|
qt,
|
|
2022
|
+
Jt,
|
|
2018
2023
|
t`
|
|
2019
2024
|
:host {
|
|
2020
2025
|
position: absolute;
|
|
@@ -2031,7 +2036,7 @@ var Tt = "en", Et = [
|
|
|
2031
2036
|
downLevelTree(e) {
|
|
2032
2037
|
if (!e) return;
|
|
2033
2038
|
let t = e[0];
|
|
2034
|
-
if (!(!t || !
|
|
2039
|
+
if (!(!t || !A(t))) return t;
|
|
2035
2040
|
}
|
|
2036
2041
|
get _menu() {
|
|
2037
2042
|
let e = this.downLevelTree(this.menu?.items);
|
|
@@ -2042,7 +2047,7 @@ var Tt = "en", Et = [
|
|
|
2042
2047
|
};
|
|
2043
2048
|
}
|
|
2044
2049
|
constructor() {
|
|
2045
|
-
super(), this.modules = [], this.modulesLoading = !1, this.lang = "en", this.error = !1, this.open = !1, this._searchQuery = "", this._searchLoading = !1, this._activeScopeId = "menu", this._searchLoadingMore = !1, this._moduleSwitcherMaxHeight = 0, this._hasPageTitle = !1, this._navFooterKeyboard = new
|
|
2050
|
+
super(), this.modules = [], this.modulesLoading = !1, this.lang = "en", this.error = !1, this.open = !1, this._searchQuery = "", this._searchLoading = !1, this._activeScopeId = "menu", this._searchLoadingMore = !1, this._moduleSwitcherMaxHeight = 0, this._hasPageTitle = !1, this._navFooterKeyboard = new Zt(this), this._customWidthPerLanguage = { fi: "30em" }, this._onNavigate = (e) => {
|
|
2046
2051
|
this._searchQuery = "", this._searchResults = void 0, this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
|
|
2047
2052
|
bubbles: !0,
|
|
2048
2053
|
composed: !0
|
|
@@ -2059,18 +2064,18 @@ var Tt = "en", Et = [
|
|
|
2059
2064
|
}));
|
|
2060
2065
|
}, this._onScopeChanged = (e) => {
|
|
2061
2066
|
this._activeScopeId = e.detail.scopeId, this._runSearch(this._searchQuery, this._activeScopeId), this.focusSearch();
|
|
2062
|
-
}, new
|
|
2067
|
+
}, new Yt(this, ".ga-side-navigation", () => this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
|
|
2063
2068
|
bubbles: !0,
|
|
2064
2069
|
composed: !0
|
|
2065
2070
|
}))), this._resizeObserver = new ResizeObserver((e) => {
|
|
2066
2071
|
this._observeMenuSize(e);
|
|
2067
|
-
}), this._resizeObserver.observe(this), new
|
|
2072
|
+
}), this._resizeObserver.observe(this), new L(this, () => this.open);
|
|
2068
2073
|
}
|
|
2069
2074
|
_observeMenuSize(e) {
|
|
2070
2075
|
this._moduleSwitcherMaxHeight = Math.max(0, e[0].contentRect.height - 134);
|
|
2071
2076
|
}
|
|
2072
2077
|
willUpdate(e) {
|
|
2073
|
-
e.has("lang") &&
|
|
2078
|
+
e.has("lang") && Bt(this.lang).catch(console.error), e.has("open") && e.get("open") && !this.open && this.resetSidebarToInitialState(), e.has("menu") && (this._hasPageTitle = this.menu?.pageTitle !== void 0, e.get("menu")?.items !== this.menu?.items && this._runSearch(this._searchQuery, this._activeScopeId));
|
|
2074
2079
|
}
|
|
2075
2080
|
updated(e) {
|
|
2076
2081
|
e.has("open") && this.open && this._scrollActiveItemIntoView(), e.has("menu") && this.open && this.menu?.currentItem && (e.get("menu")?.currentItem || this._scrollActiveItemIntoView());
|
|
@@ -2154,7 +2159,7 @@ var Tt = "en", Et = [
|
|
|
2154
2159
|
this._searchResults = t.results, this._searchNextCursor = t.nextCursor, this._searchLoading = !1, this._searchAbort = void 0;
|
|
2155
2160
|
} catch (e) {
|
|
2156
2161
|
if (this._searchAbort !== r) return;
|
|
2157
|
-
e instanceof
|
|
2162
|
+
e instanceof j ? (this._searchError = e.message, this._searchResults = void 0) : console.error("Search function rejected with non-SearchError:", e), this._searchLoading = !1, this._searchAbort = void 0;
|
|
2158
2163
|
}
|
|
2159
2164
|
}
|
|
2160
2165
|
async _loadMore() {
|
|
@@ -2174,15 +2179,15 @@ var Tt = "en", Et = [
|
|
|
2174
2179
|
this._searchResults = [...this._searchResults ?? [], ...n.results], this._searchNextCursor = n.nextCursor, this._searchLoadingMore = !1, this._searchAbort = void 0;
|
|
2175
2180
|
} catch (e) {
|
|
2176
2181
|
if (this._searchAbort !== t) return;
|
|
2177
|
-
e instanceof
|
|
2182
|
+
e instanceof j ? (this._searchError = e.message, this._searchResults = void 0, this._searchNextCursor = void 0) : console.error("Load-more function rejected with non-SearchError:", e), this._searchLoadingMore = !1, this._searchAbort = void 0;
|
|
2178
2183
|
}
|
|
2179
2184
|
}
|
|
2180
2185
|
_filterTree(e) {
|
|
2181
2186
|
let t = this._menu?.items;
|
|
2182
2187
|
if (!t?.length || !e) return [];
|
|
2183
2188
|
let n = e.toLowerCase(), r = [], i = (e, t) => {
|
|
2184
|
-
for (let a of e) if (
|
|
2185
|
-
else if (a.label.toLowerCase().includes(n)) {
|
|
2189
|
+
for (let a of e) if (A(a)) i(a.items, [...t, a]);
|
|
2190
|
+
else if (a.label.toLowerCase().includes(n) || this.matchInKeywords(a.keywords, n)) {
|
|
2186
2191
|
let e = t.length > 0 ? [t.map((e) => e.label).join(" › ")] : void 0;
|
|
2187
2192
|
r.push({
|
|
2188
2193
|
id: a.id,
|
|
@@ -2194,6 +2199,9 @@ var Tt = "en", Et = [
|
|
|
2194
2199
|
};
|
|
2195
2200
|
return i(t, []), r;
|
|
2196
2201
|
}
|
|
2202
|
+
matchInKeywords(e, t) {
|
|
2203
|
+
return e ? e.trim().split(/\s+/).some((e) => e.toLowerCase().includes(t)) : !1;
|
|
2204
|
+
}
|
|
2197
2205
|
_viewMode() {
|
|
2198
2206
|
return this.error ? "error" : this._searchLoading ? "loading" : this._searchError !== void 0 || this._searchResults !== void 0 ? "results" : "menu";
|
|
2199
2207
|
}
|
|
@@ -2241,7 +2249,7 @@ var Tt = "en", Et = [
|
|
|
2241
2249
|
<vsn-search-scopes
|
|
2242
2250
|
.scopes=${[{
|
|
2243
2251
|
id: "menu",
|
|
2244
|
-
label:
|
|
2252
|
+
label: Ne()
|
|
2245
2253
|
}, ...e.map((e) => ({
|
|
2246
2254
|
id: e.id,
|
|
2247
2255
|
label: e.label
|
|
@@ -2265,15 +2273,15 @@ var Tt = "en", Et = [
|
|
|
2265
2273
|
`;
|
|
2266
2274
|
}
|
|
2267
2275
|
};
|
|
2268
|
-
|
|
2276
|
+
M([s({ attribute: !1 })], G.prototype, "modules", void 0), M([s()], G.prototype, "activeModuleId", void 0), M([s()], G.prototype, "activeModuleLabel", void 0), M([s({ type: Boolean })], G.prototype, "modulesLoading", void 0), M([s()], G.prototype, "lang", void 0), M([s({ attribute: !1 })], G.prototype, "auth", void 0), M([s({ type: Boolean })], G.prototype, "error", void 0), M([s({
|
|
2269
2277
|
type: Boolean,
|
|
2270
2278
|
reflect: !0
|
|
2271
|
-
})],
|
|
2279
|
+
})], G.prototype, "open", void 0), M([s({ attribute: !1 })], G.prototype, "menu", void 0), M([l()], G.prototype, "_searchQuery", void 0), M([l()], G.prototype, "_searchResults", void 0), M([l()], G.prototype, "_searchLoading", void 0), M([l()], G.prototype, "_activeScopeId", void 0), M([l()], G.prototype, "_searchError", void 0), M([l()], G.prototype, "_searchNextCursor", void 0), M([l()], G.prototype, "_searchLoadingMore", void 0), M([l()], G.prototype, "_moduleSwitcherMaxHeight", void 0), M([l()], G.prototype, "_hasPageTitle", void 0), G = M([o("vsn-side-bar")], G);
|
|
2272
2280
|
//#endregion
|
|
2273
2281
|
//#region src/components/vsn-top-bar/vsn-breadcrumb-menu-item.ts
|
|
2274
|
-
var
|
|
2282
|
+
var K, q = class extends e {
|
|
2275
2283
|
static {
|
|
2276
|
-
|
|
2284
|
+
K = this;
|
|
2277
2285
|
}
|
|
2278
2286
|
static {
|
|
2279
2287
|
this._idCounter = 0;
|
|
@@ -2293,15 +2301,15 @@ var q, J = class extends e {
|
|
|
2293
2301
|
}, this._onItemMouseLeave = () => {
|
|
2294
2302
|
this._showTooltip = !1;
|
|
2295
2303
|
}, this._onKeyDown = (e) => {
|
|
2296
|
-
e.defaultPrevented ||
|
|
2304
|
+
e.defaultPrevented || T(e) || (e.key === "Enter" || e.key === " " ? (e.preventDefault(), this._isExpanded = !this._isExpanded) : e.key === "ArrowRight" ? (e.preventDefault(), this._isExpanded = !0) : e.key === "ArrowLeft" && (e.preventDefault(), this._isExpanded = !1));
|
|
2297
2305
|
}, this._onClick = (e) => {
|
|
2298
2306
|
if (e.defaultPrevented) return;
|
|
2299
2307
|
if (this._isParent()) {
|
|
2300
|
-
if (
|
|
2308
|
+
if (T(e)) return;
|
|
2301
2309
|
e.preventDefault(), this._isExpanded = !this._isExpanded;
|
|
2302
2310
|
return;
|
|
2303
2311
|
}
|
|
2304
|
-
if (!this.tree || e.button !== 0 ||
|
|
2312
|
+
if (!this.tree || e.button !== 0 || T(e)) return;
|
|
2305
2313
|
e.preventDefault();
|
|
2306
2314
|
let t = [...this.ancestorPath, this.tree];
|
|
2307
2315
|
this.dispatchEvent(new CustomEvent("vsn-breadcrumb-menu-leaf-select", {
|
|
@@ -2309,7 +2317,7 @@ var q, J = class extends e {
|
|
|
2309
2317
|
bubbles: !0,
|
|
2310
2318
|
composed: !0
|
|
2311
2319
|
}));
|
|
2312
|
-
}, this._tooltipId = `vsn-menu-item-tooltip-${
|
|
2320
|
+
}, this._tooltipId = `vsn-menu-item-tooltip-${K._idCounter++}`, new L(this, () => this._isExpanded);
|
|
2313
2321
|
}
|
|
2314
2322
|
createRenderRoot() {
|
|
2315
2323
|
return this;
|
|
@@ -2335,7 +2343,7 @@ var q, J = class extends e {
|
|
|
2335
2343
|
<div class="ga-tooltip ga-tooltip--right-start" style="white-space: nowrap">${e}</div>
|
|
2336
2344
|
</div>
|
|
2337
2345
|
<span class="ga-side-navigation__item-icon">
|
|
2338
|
-
${this._isParent() ? this._isExpanded ? O
|
|
2346
|
+
${this._isParent() ? this._isExpanded ? D(O, 16) : D(tt, 16) : ""}
|
|
2339
2347
|
</span>
|
|
2340
2348
|
<div class="ga-side-navigation__item-content">
|
|
2341
2349
|
<div class="ga-side-navigation__item-label">${e}</div>
|
|
@@ -2345,7 +2353,7 @@ var q, J = class extends e {
|
|
|
2345
2353
|
<div class="${d(t)}" role="button" tabindex="0" aria-expanded=${this._isExpanded} aria-describedby="${this._tooltipId}" @click=${this._onClick} @keydown=${this._onKeyDown}
|
|
2346
2354
|
@mouseenter=${this._onItemMouseEnter} @mouseleave=${this._onItemMouseLeave}>${r}
|
|
2347
2355
|
</div>` : n`<a class="${d(t)}" aria-describedby="${this._tooltipId}"
|
|
2348
|
-
href="${this.tree &&
|
|
2356
|
+
href="${this.tree && k(this.tree) ? this.tree.url : ""}" @click=${this._onClick}
|
|
2349
2357
|
@mouseenter=${this._onItemMouseEnter} @mouseleave=${this._onItemMouseLeave}>${r}</a>`;
|
|
2350
2358
|
}
|
|
2351
2359
|
_menuItem(e, t) {
|
|
@@ -2353,19 +2361,19 @@ var q, J = class extends e {
|
|
|
2353
2361
|
<vsn-breadcrumb-menu-item .tree=${e} .level=${t} .ancestorPath=${this.tree ? [...this.ancestorPath, this.tree] : this.ancestorPath}></vsn-breadcrumb-menu-item>`;
|
|
2354
2362
|
}
|
|
2355
2363
|
_getTreeItems(e) {
|
|
2356
|
-
if (e !== void 0 &&
|
|
2364
|
+
if (e !== void 0 && A(e)) return e.items;
|
|
2357
2365
|
}
|
|
2358
2366
|
_isParent() {
|
|
2359
|
-
if (this.tree &&
|
|
2367
|
+
if (this.tree && A(this.tree)) return this.tree.items.length > 0;
|
|
2360
2368
|
}
|
|
2361
2369
|
};
|
|
2362
|
-
|
|
2370
|
+
M([s({ attribute: !1 })], q.prototype, "tree", void 0), M([s({ type: Number })], q.prototype, "level", void 0), M([s({ type: Array })], q.prototype, "ancestorPath", void 0), M([l()], q.prototype, "_isExpanded", void 0), M([l()], q.prototype, "_showTooltip", void 0), M([l()], q.prototype, "_tooltipPos", void 0), M([c(".ga-side-navigation__item-label")], q.prototype, "_labelEl", void 0), q = K = M([o("vsn-breadcrumb-menu-item")], q);
|
|
2363
2371
|
//#endregion
|
|
2364
2372
|
//#region src/components/vsn-top-bar/vsn-breadcrumb-menu.ts
|
|
2365
|
-
var
|
|
2373
|
+
var tn = class extends e {
|
|
2366
2374
|
constructor() {
|
|
2367
2375
|
super(), this._handleKeyDown = (e) => {
|
|
2368
|
-
if (e.defaultPrevented ||
|
|
2376
|
+
if (e.defaultPrevented || T(e)) return;
|
|
2369
2377
|
if (e.key === "Escape") {
|
|
2370
2378
|
e.preventDefault(), this.dispatchEvent(new CustomEvent("vsn-breadcrumb-menu-close", {
|
|
2371
2379
|
bubbles: !0,
|
|
@@ -2382,7 +2390,7 @@ var en = class extends e {
|
|
|
2382
2390
|
if (!t.length) return;
|
|
2383
2391
|
let n = t.indexOf(e.target);
|
|
2384
2392
|
n !== -1 && (e.preventDefault(), e.key === "ArrowDown" ? n < t.length - 1 && t[n + 1].focus() : n > 0 && t[n - 1].focus());
|
|
2385
|
-
}, new
|
|
2393
|
+
}, new L(this, () => !0);
|
|
2386
2394
|
}
|
|
2387
2395
|
createRenderRoot() {
|
|
2388
2396
|
return this;
|
|
@@ -2409,10 +2417,10 @@ var en = class extends e {
|
|
|
2409
2417
|
`;
|
|
2410
2418
|
}
|
|
2411
2419
|
};
|
|
2412
|
-
|
|
2420
|
+
M([s({ attribute: !1 })], tn.prototype, "treeList", void 0), tn = M([o("vsn-breadcrumb-menu")], tn);
|
|
2413
2421
|
//#endregion
|
|
2414
2422
|
//#region src/components/vsn-top-bar/vsn-breadcrumbs.ts
|
|
2415
|
-
var
|
|
2423
|
+
var J = class extends e {
|
|
2416
2424
|
constructor(...e) {
|
|
2417
2425
|
super(...e), this.modules = [], this.modulesLoading = !1, this._openPopoverId = null, this._displayMode = "full", this._overflowCount = 0, this._tooltip = null, this._mqDesktop = window.matchMedia("(min-width: 1440px)"), this._mqTablet = window.matchMedia("(min-width: 768px) and (max-width: 1439px)"), this._ro = null, this._lastContainerWidth = 0, this._mounted = !1, this._handleMediaChange = () => {
|
|
2418
2426
|
this._mqDesktop.matches ? (this._displayMode = "full", this._overflowCount = 0) : this._mqTablet.matches ? (this._displayMode = "overflow", this._overflowCount = 0, this._mounted && this.updateComplete.then(() => this._recalculateOverflow())) : (this._displayMode = "mobile", this._overflowCount = 0);
|
|
@@ -2433,8 +2441,8 @@ var Y = class extends e {
|
|
|
2433
2441
|
static {
|
|
2434
2442
|
this.styles = [
|
|
2435
2443
|
g,
|
|
2436
|
-
|
|
2437
|
-
|
|
2444
|
+
Qt,
|
|
2445
|
+
Jt,
|
|
2438
2446
|
t`
|
|
2439
2447
|
.vsn-bc-modules-loading {
|
|
2440
2448
|
display: flex;
|
|
@@ -2546,7 +2554,7 @@ var Y = class extends e {
|
|
|
2546
2554
|
_findPath(e, t, n = []) {
|
|
2547
2555
|
let r = [...n, e];
|
|
2548
2556
|
if (e.id === t) return r;
|
|
2549
|
-
for (let n of
|
|
2557
|
+
for (let n of A(e) ? e.items : []) {
|
|
2550
2558
|
let e = this._findPath(n, t, r);
|
|
2551
2559
|
if (e) return e;
|
|
2552
2560
|
}
|
|
@@ -2665,7 +2673,7 @@ var Y = class extends e {
|
|
|
2665
2673
|
_handleLeafSelect(e, t) {
|
|
2666
2674
|
(this.shadowRoot?.getElementById(t))?.hidePopover?.();
|
|
2667
2675
|
let n = e.detail.path, r = n[n.length - 1];
|
|
2668
|
-
r &&
|
|
2676
|
+
r && k(r) && this.dispatchEvent(new CustomEvent("vsn-menu-item-changed", {
|
|
2669
2677
|
detail: r,
|
|
2670
2678
|
bubbles: !0,
|
|
2671
2679
|
composed: !0
|
|
@@ -2684,7 +2692,7 @@ var Y = class extends e {
|
|
|
2684
2692
|
</div>`;
|
|
2685
2693
|
}
|
|
2686
2694
|
_renderLastItem(e, t, r) {
|
|
2687
|
-
return r ? n`${
|
|
2695
|
+
return r ? n`${A(e) && e.items.length > 0 ? this._renderBreadcrumbItem(e, t) : this._renderLeafAsAncestor(e)}${this._renderPageTitle(r)}` : this._renderCurrentItem(e);
|
|
2688
2696
|
}
|
|
2689
2697
|
_renderPageTitle(e) {
|
|
2690
2698
|
return n`
|
|
@@ -2706,7 +2714,7 @@ var Y = class extends e {
|
|
|
2706
2714
|
</div>`;
|
|
2707
2715
|
}
|
|
2708
2716
|
_renderBreadcrumbItem(e, t) {
|
|
2709
|
-
if (!
|
|
2717
|
+
if (!A(e) || e.items.length === 0) return n``;
|
|
2710
2718
|
let i = this._popoverItemId(t), a = this._popoverItemTriggerId(t);
|
|
2711
2719
|
return n`
|
|
2712
2720
|
<div class="ga-breadcrumb-item ga-breadcrumb-item--link"
|
|
@@ -2792,7 +2800,7 @@ var Y = class extends e {
|
|
|
2792
2800
|
}
|
|
2793
2801
|
render() {
|
|
2794
2802
|
return n`
|
|
2795
|
-
<nav aria-label=${
|
|
2803
|
+
<nav aria-label=${v("Breadcrumb")}>
|
|
2796
2804
|
<div class="ga-breadcrumb">
|
|
2797
2805
|
${this._displayMode === "full" ? this._renderFullBreadcrumbs() : this._displayMode === "overflow" ? this._renderOverflowBreadcrumbs() : this._renderMobileBreadcrumbs()}
|
|
2798
2806
|
</div>
|
|
@@ -2806,10 +2814,10 @@ var Y = class extends e {
|
|
|
2806
2814
|
`;
|
|
2807
2815
|
}
|
|
2808
2816
|
};
|
|
2809
|
-
|
|
2817
|
+
M([s({ attribute: !1 })], J.prototype, "tree", void 0), M([s({ type: Array })], J.prototype, "modules", void 0), M([s()], J.prototype, "activeModuleId", void 0), M([s({ type: Boolean })], J.prototype, "modulesLoading", void 0), M([l()], J.prototype, "_openPopoverId", void 0), M([l()], J.prototype, "_displayMode", void 0), M([l()], J.prototype, "_overflowCount", void 0), M([l()], J.prototype, "_tooltip", void 0), J = M([y(), o("vsn-breadcrumbs")], J);
|
|
2810
2818
|
//#endregion
|
|
2811
2819
|
//#region src/components/vsn-top-bar/vsn-ai-assistant.ts
|
|
2812
|
-
var
|
|
2820
|
+
var nn = class extends e {
|
|
2813
2821
|
createRenderRoot() {
|
|
2814
2822
|
return this;
|
|
2815
2823
|
}
|
|
@@ -2823,16 +2831,16 @@ var tn = class extends e {
|
|
|
2823
2831
|
render() {
|
|
2824
2832
|
return n`
|
|
2825
2833
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2826
|
-
aria-label=${
|
|
2827
|
-
<span class="ga-icon">${
|
|
2834
|
+
aria-label=${v("Open AI assistant")} @click=${this._handleClick}>
|
|
2835
|
+
<span class="ga-icon">${D(Ve)}</span>
|
|
2828
2836
|
</button>
|
|
2829
2837
|
`;
|
|
2830
2838
|
}
|
|
2831
2839
|
};
|
|
2832
|
-
|
|
2840
|
+
nn = M([y(), o("vsn-ai-assistant")], nn);
|
|
2833
2841
|
//#endregion
|
|
2834
2842
|
//#region src/components/vsn-top-bar/vsn-feedback.ts
|
|
2835
|
-
var
|
|
2843
|
+
var Y = class extends e {
|
|
2836
2844
|
constructor(...e) {
|
|
2837
2845
|
super(...e), this._compact = !1, this.feedback = null, this.lang = "en", this._mqMobile = window.matchMedia("(max-width: 767px)"), this._handleMediaChange = () => {
|
|
2838
2846
|
this._compact = this._mqMobile.matches;
|
|
@@ -2848,7 +2856,7 @@ var X = class extends e {
|
|
|
2848
2856
|
if (super.updated(e), e.has("feedback") && this.feedback?.workspaceId && !document.getElementById("survicate-sdk") && !window._sva) {
|
|
2849
2857
|
window._sva = window._sva ?? {}, window._sva.forcedLanguage = this.lang;
|
|
2850
2858
|
let e = document.createElement("script");
|
|
2851
|
-
e.id =
|
|
2859
|
+
e.id = Ie, e.src = Re(this.feedback.workspaceId), e.async = !0, e.onload = () => this._applyVisitorTraits(), e.onerror = () => {
|
|
2852
2860
|
e.remove(), window._sva = void 0;
|
|
2853
2861
|
}, document.head.appendChild(e);
|
|
2854
2862
|
}
|
|
@@ -2871,26 +2879,26 @@ var X = class extends e {
|
|
|
2871
2879
|
this.dispatchEvent(new CustomEvent("vsn-feedback", {
|
|
2872
2880
|
bubbles: !0,
|
|
2873
2881
|
composed: !0
|
|
2874
|
-
})), this.feedback?.surveyId && (this._applyVisitorTraits(), window._sva?.invokeEvent?.(
|
|
2882
|
+
})), this.feedback?.surveyId && (this._applyVisitorTraits(), window._sva?.invokeEvent?.(Le));
|
|
2875
2883
|
}
|
|
2876
2884
|
render() {
|
|
2877
2885
|
return this._compact ? n`
|
|
2878
2886
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2879
|
-
aria-label=${
|
|
2880
|
-
<span class="ga-icon">${
|
|
2887
|
+
aria-label=${v("Send feedback")} @click=${this._handleClick}>
|
|
2888
|
+
<span class="ga-icon">${D(We)}</span>
|
|
2881
2889
|
</button>
|
|
2882
2890
|
` : n`
|
|
2883
|
-
<button type="button" class="ga-button ga-button--secondary" aria-label=${
|
|
2891
|
+
<button type="button" class="ga-button ga-button--secondary" aria-label=${v("Send feedback")}
|
|
2884
2892
|
@click=${this._handleClick}>
|
|
2885
|
-
${
|
|
2893
|
+
${v("Feedback")}
|
|
2886
2894
|
</button>
|
|
2887
2895
|
`;
|
|
2888
2896
|
}
|
|
2889
2897
|
};
|
|
2890
|
-
|
|
2898
|
+
M([l()], Y.prototype, "_compact", void 0), M([s({ attribute: !1 })], Y.prototype, "feedback", void 0), M([s({ attribute: !1 })], Y.prototype, "auth", void 0), M([s()], Y.prototype, "lang", void 0), Y = M([y(), o("vsn-feedback")], Y);
|
|
2891
2899
|
//#endregion
|
|
2892
2900
|
//#region src/components/vsn-top-bar/vsn-home.ts
|
|
2893
|
-
var
|
|
2901
|
+
var rn = class extends e {
|
|
2894
2902
|
createRenderRoot() {
|
|
2895
2903
|
return this;
|
|
2896
2904
|
}
|
|
@@ -2898,7 +2906,7 @@ var nn = class extends e {
|
|
|
2898
2906
|
e.preventDefault(), this.landingPageUrl && this.dispatchEvent(new CustomEvent("vsn-navigate", {
|
|
2899
2907
|
detail: {
|
|
2900
2908
|
id: "home",
|
|
2901
|
-
label:
|
|
2909
|
+
label: v("Home"),
|
|
2902
2910
|
url: this.landingPageUrl
|
|
2903
2911
|
},
|
|
2904
2912
|
bubbles: !0,
|
|
@@ -2907,17 +2915,17 @@ var nn = class extends e {
|
|
|
2907
2915
|
}
|
|
2908
2916
|
render() {
|
|
2909
2917
|
return this.landingPageUrl ? n`
|
|
2910
|
-
<a href=${this.landingPageUrl} class="ga-button ga-button--ghost ga-button--icon-only" aria-label=${
|
|
2918
|
+
<a href=${this.landingPageUrl} class="ga-button ga-button--ghost ga-button--icon-only" aria-label=${v("Home")}
|
|
2911
2919
|
@click=${this._handleClick}>
|
|
2912
|
-
<span class="ga-icon">${
|
|
2920
|
+
<span class="ga-icon">${D(Ge)}</span>
|
|
2913
2921
|
</a>
|
|
2914
2922
|
` : r;
|
|
2915
2923
|
}
|
|
2916
2924
|
};
|
|
2917
|
-
|
|
2925
|
+
M([s({ attribute: "landing-page-url" })], rn.prototype, "landingPageUrl", void 0), rn = M([y(), o("vsn-home")], rn);
|
|
2918
2926
|
//#endregion
|
|
2919
2927
|
//#region src/components/vsn-top-bar/vsn-menu-toggle.ts
|
|
2920
|
-
var
|
|
2928
|
+
var an = class extends e {
|
|
2921
2929
|
createRenderRoot() {
|
|
2922
2930
|
return this;
|
|
2923
2931
|
}
|
|
@@ -2939,25 +2947,25 @@ var rn = class extends e {
|
|
|
2939
2947
|
}
|
|
2940
2948
|
render() {
|
|
2941
2949
|
return n`
|
|
2942
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2950
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${v("Open menu")}
|
|
2943
2951
|
aria-describedby="vsn-menu-toggle-tooltip"
|
|
2944
2952
|
@click=${this._handleClick}
|
|
2945
2953
|
@mouseenter=${this._onActivate}
|
|
2946
2954
|
@mouseleave=${this._onDeactivate}>
|
|
2947
|
-
<span class="ga-icon">${
|
|
2955
|
+
<span class="ga-icon">${D(Be)}</span>
|
|
2948
2956
|
</button>
|
|
2949
2957
|
<div id="vsn-menu-toggle-tooltip" role="tooltip"
|
|
2950
2958
|
style="position: fixed; inset: unset; margin: 0; padding: 0; border: none; background: transparent; overflow: visible; pointer-events: none; z-index: 9999;"
|
|
2951
2959
|
popover="manual">
|
|
2952
|
-
<div class="ga-tooltip ga-tooltip--bottom-start" style="white-space: nowrap">${
|
|
2960
|
+
<div class="ga-tooltip ga-tooltip--bottom-start" style="white-space: nowrap">${je()}</div>
|
|
2953
2961
|
</div>
|
|
2954
2962
|
`;
|
|
2955
2963
|
}
|
|
2956
2964
|
};
|
|
2957
|
-
|
|
2965
|
+
M([c("div[role=\"tooltip\"]", !0)], an.prototype, "_tooltipElement", void 0), an = M([y(), o("vsn-menu-toggle")], an);
|
|
2958
2966
|
//#endregion
|
|
2959
2967
|
//#region src/components/vsn-top-bar/vsn-notifications.ts
|
|
2960
|
-
var
|
|
2968
|
+
var on = class extends e {
|
|
2961
2969
|
constructor(...e) {
|
|
2962
2970
|
super(...e), this.notificationActive = !1;
|
|
2963
2971
|
}
|
|
@@ -2972,23 +2980,23 @@ var an = class extends e {
|
|
|
2972
2980
|
}));
|
|
2973
2981
|
}
|
|
2974
2982
|
render() {
|
|
2975
|
-
let e = this.notificationActive ?
|
|
2983
|
+
let e = this.notificationActive ? Ue : He;
|
|
2976
2984
|
return n`
|
|
2977
2985
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2978
|
-
aria-label=${
|
|
2979
|
-
<span class="ga-icon">${
|
|
2986
|
+
aria-label=${v("Notifications")} @click=${this._handleClick}>
|
|
2987
|
+
<span class="ga-icon">${D(e)}</span>
|
|
2980
2988
|
</button>
|
|
2981
2989
|
`;
|
|
2982
2990
|
}
|
|
2983
2991
|
};
|
|
2984
|
-
|
|
2992
|
+
M([s({
|
|
2985
2993
|
type: Boolean,
|
|
2986
2994
|
attribute: "notification-active",
|
|
2987
2995
|
reflect: !0
|
|
2988
|
-
})],
|
|
2996
|
+
})], on.prototype, "notificationActive", void 0), on = M([y(), o("vsn-notifications")], on);
|
|
2989
2997
|
//#endregion
|
|
2990
2998
|
//#region src/components/vsn-top-bar/vsn-help.ts
|
|
2991
|
-
function
|
|
2999
|
+
function sn(e) {
|
|
2992
3000
|
try {
|
|
2993
3001
|
let t = new URL(e);
|
|
2994
3002
|
return t.protocol === "https:" || t.protocol === "http:";
|
|
@@ -2996,7 +3004,7 @@ function on(e) {
|
|
|
2996
3004
|
return !1;
|
|
2997
3005
|
}
|
|
2998
3006
|
}
|
|
2999
|
-
var
|
|
3007
|
+
var X = class extends e {
|
|
3000
3008
|
createRenderRoot() {
|
|
3001
3009
|
return this;
|
|
3002
3010
|
}
|
|
@@ -3008,28 +3016,28 @@ var Z = class extends e {
|
|
|
3008
3016
|
}));
|
|
3009
3017
|
}
|
|
3010
3018
|
render() {
|
|
3011
|
-
return this.helpUrl &&
|
|
3019
|
+
return this.helpUrl && sn(this.helpUrl) ? n`
|
|
3012
3020
|
<a href=${this.helpUrl} target="_blank" rel="noopener noreferrer" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
3013
|
-
aria-label=${
|
|
3014
|
-
<span class="ga-icon">${
|
|
3021
|
+
aria-label=${v("Help")}>
|
|
3022
|
+
<span class="ga-icon">${D(Ke)}</span>
|
|
3015
3023
|
</a>
|
|
3016
3024
|
` : n`
|
|
3017
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
3025
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${v("Help")}
|
|
3018
3026
|
@click=${this._handleClick}>
|
|
3019
|
-
<span class="ga-icon">${
|
|
3027
|
+
<span class="ga-icon">${D(Ke)}</span>
|
|
3020
3028
|
</button>
|
|
3021
3029
|
`;
|
|
3022
3030
|
}
|
|
3023
3031
|
};
|
|
3024
|
-
|
|
3032
|
+
M([s({ attribute: "help-url" })], X.prototype, "helpUrl", void 0), X = M([y(), o("vsn-help")], X);
|
|
3025
3033
|
//#endregion
|
|
3026
3034
|
//#region src/components/vsn-top-bar/vsn-top-bar.ts
|
|
3027
|
-
var
|
|
3035
|
+
var Z = class extends e {
|
|
3028
3036
|
constructor() {
|
|
3029
|
-
super(), this.modules = [], this.feedback = null, this.showHelp = !1, this.showNotification = !1, this.notificationActive = !1, this.modulesLoading = !1, this.lang = "en", new
|
|
3037
|
+
super(), this.modules = [], this.feedback = null, this.showHelp = !1, this.showNotification = !1, this.notificationActive = !1, this.modulesLoading = !1, this.lang = "en", new L(this, () => !0);
|
|
3030
3038
|
}
|
|
3031
3039
|
willUpdate(e) {
|
|
3032
|
-
e.has("lang") &&
|
|
3040
|
+
e.has("lang") && Bt(this.lang).catch(console.error);
|
|
3033
3041
|
}
|
|
3034
3042
|
focusMenuToggle() {
|
|
3035
3043
|
this.renderRoot.querySelector("vsn-menu-toggle")?.focus();
|
|
@@ -3131,16 +3139,108 @@ var Q = class extends e {
|
|
|
3131
3139
|
`;
|
|
3132
3140
|
}
|
|
3133
3141
|
};
|
|
3134
|
-
|
|
3142
|
+
M([s({ attribute: !1 })], Z.prototype, "tree", void 0), M([s({ type: Array })], Z.prototype, "modules", void 0), M([s()], Z.prototype, "activeModuleId", void 0), M([s({ attribute: "landing-page-url" })], Z.prototype, "landingPageUrl", void 0), M([s({ attribute: !1 })], Z.prototype, "feedback", void 0), M([s({ attribute: !1 })], Z.prototype, "auth", void 0), M([s({
|
|
3135
3143
|
type: Boolean,
|
|
3136
3144
|
attribute: "show-help"
|
|
3137
|
-
})],
|
|
3145
|
+
})], Z.prototype, "showHelp", void 0), M([s({ attribute: "help-url" })], Z.prototype, "helpUrl", void 0), M([s({
|
|
3138
3146
|
type: Boolean,
|
|
3139
3147
|
attribute: "show-notification"
|
|
3140
|
-
})],
|
|
3148
|
+
})], Z.prototype, "showNotification", void 0), M([s({
|
|
3141
3149
|
type: Boolean,
|
|
3142
3150
|
attribute: "notification-active"
|
|
3143
|
-
})],
|
|
3151
|
+
})], Z.prototype, "notificationActive", void 0), M([s({ type: Boolean })], Z.prototype, "modulesLoading", void 0), M([s()], Z.prototype, "lang", void 0), Z = M([o("vsn-top-bar")], Z);
|
|
3152
|
+
//#endregion
|
|
3153
|
+
//#region src/components/vsn-card.ts
|
|
3154
|
+
var cn = class extends e {
|
|
3155
|
+
static {
|
|
3156
|
+
this.styles = [g, t`
|
|
3157
|
+
:host {
|
|
3158
|
+
display: inline-block;
|
|
3159
|
+
border-radius: var(--ga-radius);
|
|
3160
|
+
border-style: var(--tw-border-style);
|
|
3161
|
+
border-width: calc(1px * var(--ga-base-scaling-factor, 1));
|
|
3162
|
+
border-color: var(--ga-color-border-tertiary);
|
|
3163
|
+
background-color: var(--ga-color-background);
|
|
3164
|
+
padding: var(--vsn-card-padding, calc(calc(0.25rem * var(--ga-base-scaling-factor, 1)) * 4));
|
|
3165
|
+
font-size: calc(var(--ga-text-lg-font-size) * var(--ga-base-scaling-factor, 1));
|
|
3166
|
+
line-height: calc(var(--ga-text-lg-line-height) * var(--ga-base-scaling-factor, 1));
|
|
3167
|
+
letter-spacing: calc(var(--ga-text-lg-letter-spacing) * var(--ga-base-scaling-factor, 1));
|
|
3168
|
+
}
|
|
3169
|
+
`];
|
|
3170
|
+
}
|
|
3171
|
+
render() {
|
|
3172
|
+
return n`<slot></slot>`;
|
|
3173
|
+
}
|
|
3174
|
+
};
|
|
3175
|
+
cn = M([o("vsn-card")], cn);
|
|
3176
|
+
//#endregion
|
|
3177
|
+
//#region src/components/vsn-skip-to-main.ts
|
|
3178
|
+
var Q = class extends e {
|
|
3179
|
+
constructor(...e) {
|
|
3180
|
+
super(...e), this.href = "main-content";
|
|
3181
|
+
}
|
|
3182
|
+
static {
|
|
3183
|
+
this.styles = t`
|
|
3184
|
+
:host {
|
|
3185
|
+
display: block;
|
|
3186
|
+
position: absolute;
|
|
3187
|
+
z-index: 9999;
|
|
3188
|
+
top: 0;
|
|
3189
|
+
left: 0;
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3192
|
+
a {
|
|
3193
|
+
display: block;
|
|
3194
|
+
position: absolute;
|
|
3195
|
+
width: 1px;
|
|
3196
|
+
height: 1px;
|
|
3197
|
+
padding: 0;
|
|
3198
|
+
margin: -1px;
|
|
3199
|
+
overflow: hidden;
|
|
3200
|
+
clip: rect(0, 0, 0, 0);
|
|
3201
|
+
white-space: nowrap;
|
|
3202
|
+
border: 0;
|
|
3203
|
+
text-decoration: none;
|
|
3204
|
+
color: var(--ga-color-text-action);
|
|
3205
|
+
font-weight: 400;
|
|
3206
|
+
outline: none;
|
|
3207
|
+
}
|
|
3208
|
+
|
|
3209
|
+
a:focus {
|
|
3210
|
+
/* Apps can override positioning via --vsn-skip-top / --vsn-skip-left on the host. */
|
|
3211
|
+
position: fixed;
|
|
3212
|
+
top: var(--vsn-skip-top, calc(4rem * var(--ga-base-scaling-factor, 1)));
|
|
3213
|
+
left: var(--vsn-skip-left, calc(1rem * var(--ga-base-scaling-factor, 1)));
|
|
3214
|
+
width: auto;
|
|
3215
|
+
height: auto;
|
|
3216
|
+
margin: 0;
|
|
3217
|
+
overflow: visible;
|
|
3218
|
+
clip: auto;
|
|
3219
|
+
white-space: normal;
|
|
3220
|
+
}
|
|
3221
|
+
|
|
3222
|
+
a:focus-visible vsn-card {
|
|
3223
|
+
outline: 2px solid var(--ga-color-border-focus);
|
|
3224
|
+
outline-offset: 2px;
|
|
3225
|
+
max-width: calc(7rem * var(--ga-base-scaling-factor, 1));
|
|
3226
|
+
--vsn-card-padding: calc(0.375rem * var(--ga-base-scaling-factor, 1)) calc(0.625rem * var(--ga-base-scaling-factor, 1));
|
|
3227
|
+
}
|
|
3228
|
+
`;
|
|
3229
|
+
}
|
|
3230
|
+
render() {
|
|
3231
|
+
return n`
|
|
3232
|
+
<a href=${`#${this.href}`} @click=${this._handleClick}>
|
|
3233
|
+
<vsn-card>${v("Skip to main content")}</vsn-card>
|
|
3234
|
+
</a>
|
|
3235
|
+
`;
|
|
3236
|
+
}
|
|
3237
|
+
_handleClick(e) {
|
|
3238
|
+
e.preventDefault();
|
|
3239
|
+
let t = document.getElementById(this.href);
|
|
3240
|
+
t && (t.tabIndex < 0 && t.setAttribute("tabindex", "-1"), t.focus());
|
|
3241
|
+
}
|
|
3242
|
+
};
|
|
3243
|
+
M([s()], Q.prototype, "href", void 0), Q = M([y(), o("vsn-skip-to-main")], Q);
|
|
3144
3244
|
//#endregion
|
|
3145
3245
|
//#region src/components/vsn-navigation.ts
|
|
3146
3246
|
var $ = class extends e {
|
|
@@ -3163,13 +3263,13 @@ var $ = class extends e {
|
|
|
3163
3263
|
detail: t
|
|
3164
3264
|
}));
|
|
3165
3265
|
}, this._onShortcut = (e) => {
|
|
3166
|
-
e.defaultPrevented || !
|
|
3266
|
+
e.defaultPrevented || !Oe(e) || e.key.toLowerCase() !== "o" || (e.preventDefault(), this.dispatchEvent(new CustomEvent("vsn-open", {
|
|
3167
3267
|
cancelable: !0,
|
|
3168
3268
|
bubbles: !0,
|
|
3169
3269
|
composed: !0
|
|
3170
3270
|
})) && this._openAndFocusSearch());
|
|
3171
3271
|
}, this._onEscape = (e) => {
|
|
3172
|
-
e.defaultPrevented || this.open &&
|
|
3272
|
+
e.defaultPrevented || this.open && E(e) && e.key === "Escape" && (e.preventDefault(), this.open = !1);
|
|
3173
3273
|
};
|
|
3174
3274
|
}
|
|
3175
3275
|
_resolveModules() {
|
|
@@ -3192,7 +3292,7 @@ var $ = class extends e {
|
|
|
3192
3292
|
static {
|
|
3193
3293
|
this.styles = [
|
|
3194
3294
|
g,
|
|
3195
|
-
|
|
3295
|
+
Qt,
|
|
3196
3296
|
t`
|
|
3197
3297
|
:host {
|
|
3198
3298
|
display: flex;
|
|
@@ -3305,19 +3405,19 @@ var $ = class extends e {
|
|
|
3305
3405
|
`;
|
|
3306
3406
|
}
|
|
3307
3407
|
};
|
|
3308
|
-
|
|
3408
|
+
M([s()], $.prototype, "lang", void 0), M([s({ attribute: !1 })], $.prototype, "tree", void 0), M([s({ attribute: !1 })], $.prototype, "modules", void 0), M([s({ attribute: !1 })], $.prototype, "auth", void 0), M([s({ attribute: "landing-page-url" })], $.prototype, "landingPageUrl", void 0), M([s({
|
|
3309
3409
|
type: Boolean,
|
|
3310
3410
|
attribute: "show-help"
|
|
3311
|
-
})], $.prototype, "showHelp", void 0),
|
|
3411
|
+
})], $.prototype, "showHelp", void 0), M([s({ attribute: "help-url" })], $.prototype, "helpUrl", void 0), M([s({ attribute: !1 })], $.prototype, "feedback", void 0), M([s({
|
|
3312
3412
|
type: Boolean,
|
|
3313
3413
|
attribute: "show-notification"
|
|
3314
|
-
})], $.prototype, "showNotification", void 0),
|
|
3414
|
+
})], $.prototype, "showNotification", void 0), M([s({
|
|
3315
3415
|
type: Boolean,
|
|
3316
3416
|
attribute: "notification-active"
|
|
3317
|
-
})], $.prototype, "notificationActive", void 0),
|
|
3417
|
+
})], $.prototype, "notificationActive", void 0), M([s({
|
|
3318
3418
|
type: Boolean,
|
|
3319
3419
|
attribute: "open",
|
|
3320
3420
|
reflect: !0
|
|
3321
|
-
})], $.prototype, "open", void 0),
|
|
3421
|
+
})], $.prototype, "open", void 0), M([l()], $.prototype, "_resolvedModules", void 0), M([l()], $.prototype, "_modulesLoading", void 0), $ = M([o("vsn-navigation")], $);
|
|
3322
3422
|
//#endregion
|
|
3323
|
-
export {
|
|
3423
|
+
export { j as SearchError, $ as VSNNavigation, Q as VSNSkipToMain, k as isTreeLeaf, A as isTreeParent };
|