@visma-swno/vsn-navigation 1.1.0-beta.25 → 1.1.0-beta.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/vsn-navigation.js +285 -293
- package/package.json +2 -2
|
@@ -192,38 +192,38 @@ function g(e) {
|
|
|
192
192
|
function _(e) {
|
|
193
193
|
return "items" in e;
|
|
194
194
|
}
|
|
195
|
-
var
|
|
195
|
+
var v = class e extends Error {
|
|
196
196
|
constructor(t) {
|
|
197
197
|
super(t), this.name = "SearchError", Object.setPrototypeOf(this, e.prototype);
|
|
198
198
|
}
|
|
199
|
-
},
|
|
199
|
+
}, de = ie("activeId"), y = "lit-localize-status", b = (e, ...t) => ({
|
|
200
200
|
strTag: !0,
|
|
201
201
|
strings: e,
|
|
202
202
|
values: t
|
|
203
|
-
}),
|
|
203
|
+
}), fe = (e) => typeof e != "string" && "strTag" in e, pe = (e, t, n) => {
|
|
204
204
|
let r = e[0];
|
|
205
205
|
for (let i = 1; i < e.length; i++) r += t[n ? n[i - 1] : i - 1], r += e[i];
|
|
206
206
|
return r;
|
|
207
|
-
},
|
|
208
|
-
function
|
|
209
|
-
if (
|
|
210
|
-
|
|
207
|
+
}, me = ((e) => fe(e) ? pe(e.strings, e.values) : e), x = me, he = !1;
|
|
208
|
+
function ge(e) {
|
|
209
|
+
if (he) throw Error("lit-localize can only be configured once");
|
|
210
|
+
x = e, he = !0;
|
|
211
211
|
}
|
|
212
212
|
//#endregion
|
|
213
213
|
//#region node_modules/@lit/localize/internal/localized-controller.js
|
|
214
|
-
var
|
|
214
|
+
var _e = class {
|
|
215
215
|
constructor(e) {
|
|
216
216
|
this.__litLocalizeEventHandler = (e) => {
|
|
217
217
|
e.detail.status === "ready" && this.host.requestUpdate();
|
|
218
218
|
}, this.host = e;
|
|
219
219
|
}
|
|
220
220
|
hostConnected() {
|
|
221
|
-
window.addEventListener(
|
|
221
|
+
window.addEventListener(y, this.__litLocalizeEventHandler);
|
|
222
222
|
}
|
|
223
223
|
hostDisconnected() {
|
|
224
|
-
window.removeEventListener(
|
|
224
|
+
window.removeEventListener(y, this.__litLocalizeEventHandler);
|
|
225
225
|
}
|
|
226
|
-
},
|
|
226
|
+
}, ve = (e) => e.addController(new _e(e)), S = () => (e, t) => (e.addInitializer(ve), e), ye = class {
|
|
227
227
|
constructor() {
|
|
228
228
|
this.settled = !1, this.promise = new Promise((e, t) => {
|
|
229
229
|
this._resolve = e, this._reject = t;
|
|
@@ -235,80 +235,80 @@ var ye = class {
|
|
|
235
235
|
reject(e) {
|
|
236
236
|
this.settled = !0, this._reject(e);
|
|
237
237
|
}
|
|
238
|
-
},
|
|
239
|
-
for (let e = 0; e < 256; e++)
|
|
240
|
-
function
|
|
238
|
+
}, C = [];
|
|
239
|
+
for (let e = 0; e < 256; e++) C[e] = (e >> 4 & 15).toString(16) + (e & 15).toString(16);
|
|
240
|
+
function be(e) {
|
|
241
241
|
let t = 0, n = 8997, r = 0, i = 33826, a = 0, o = 40164, s = 0, c = 52210;
|
|
242
242
|
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;
|
|
243
|
-
return
|
|
243
|
+
return C[c >> 8] + C[c & 255] + C[o >> 8] + C[o & 255] + C[i >> 8] + C[i & 255] + C[n >> 8] + C[n & 255];
|
|
244
244
|
}
|
|
245
|
-
var
|
|
246
|
-
function
|
|
247
|
-
return (t ?
|
|
245
|
+
var xe = "h", Se = "s";
|
|
246
|
+
function Ce(e, t) {
|
|
247
|
+
return (t ? xe : Se) + be(typeof e == "string" ? e : e.join(""));
|
|
248
248
|
}
|
|
249
249
|
//#endregion
|
|
250
250
|
//#region node_modules/@lit/localize/internal/runtime-msg.js
|
|
251
|
-
var
|
|
252
|
-
function
|
|
251
|
+
var we = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new Map();
|
|
252
|
+
function Ee(e, t, n) {
|
|
253
253
|
if (e) {
|
|
254
|
-
let r = e[n?.id ??
|
|
254
|
+
let r = e[n?.id ?? De(t)];
|
|
255
255
|
if (r) {
|
|
256
256
|
if (typeof r == "string") return r;
|
|
257
|
-
if ("strTag" in r) return
|
|
257
|
+
if ("strTag" in r) return pe(r.strings, t.values, r.values);
|
|
258
258
|
{
|
|
259
|
-
let e =
|
|
260
|
-
return e === void 0 && (e = r.values,
|
|
259
|
+
let e = we.get(r);
|
|
260
|
+
return e === void 0 && (e = r.values, we.set(r, e)), {
|
|
261
261
|
...r,
|
|
262
262
|
values: e.map((e) => t.values[e])
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
return
|
|
267
|
+
return me(t);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
let t = typeof e == "string" ? e : e.strings, n =
|
|
271
|
-
return n === void 0 && (n =
|
|
269
|
+
function De(e) {
|
|
270
|
+
let t = typeof e == "string" ? e : e.strings, n = Te.get(t);
|
|
271
|
+
return n === void 0 && (n = Ce(t, typeof e != "string" && !("strTag" in e)), Te.set(t, n)), n;
|
|
272
272
|
}
|
|
273
273
|
//#endregion
|
|
274
274
|
//#region node_modules/@lit/localize/init/runtime.js
|
|
275
|
-
function
|
|
276
|
-
window.dispatchEvent(new CustomEvent(
|
|
275
|
+
function w(e) {
|
|
276
|
+
window.dispatchEvent(new CustomEvent(y, { detail: e }));
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
|
|
280
|
-
var
|
|
281
|
-
getLocale:
|
|
282
|
-
setLocale:
|
|
283
|
-
}),
|
|
284
|
-
if (e === (
|
|
285
|
-
if (!
|
|
286
|
-
if (!
|
|
287
|
-
|
|
288
|
-
let t =
|
|
289
|
-
return
|
|
278
|
+
var T = "", E, Oe, D, O, ke, k = new ye();
|
|
279
|
+
k.resolve();
|
|
280
|
+
var A = 0, Ae = (e) => (ge(((e, t) => Ee(ke, e, t))), T = Oe = e.sourceLocale, D = new Set(e.targetLocales), D.add(e.sourceLocale), O = e.loadLocale, {
|
|
281
|
+
getLocale: je,
|
|
282
|
+
setLocale: Me
|
|
283
|
+
}), je = () => T, Me = (e) => {
|
|
284
|
+
if (e === (E ?? T)) return k.promise;
|
|
285
|
+
if (!D || !O) throw Error("Internal error");
|
|
286
|
+
if (!D.has(e)) throw Error("Invalid locale code");
|
|
287
|
+
A++;
|
|
288
|
+
let t = A;
|
|
289
|
+
return E = e, k.settled && (k = new ye()), w({
|
|
290
290
|
status: "loading",
|
|
291
291
|
loadingLocale: e
|
|
292
|
-
}), (e ===
|
|
293
|
-
|
|
292
|
+
}), (e === Oe ? Promise.resolve({ templates: void 0 }) : O(e)).then((n) => {
|
|
293
|
+
A === t && (T = e, E = void 0, ke = n.templates, w({
|
|
294
294
|
status: "ready",
|
|
295
295
|
readyLocale: e
|
|
296
|
-
}),
|
|
296
|
+
}), k.resolve());
|
|
297
297
|
}, (n) => {
|
|
298
|
-
|
|
298
|
+
A === t && (w({
|
|
299
299
|
status: "error",
|
|
300
300
|
errorLocale: e,
|
|
301
301
|
errorMessage: n.toString()
|
|
302
|
-
}),
|
|
303
|
-
}),
|
|
304
|
-
},
|
|
302
|
+
}), k.reject(n));
|
|
303
|
+
}), k.promise;
|
|
304
|
+
}, Ne = () => {
|
|
305
305
|
if (typeof navigator > "u") return !1;
|
|
306
306
|
let e = navigator.userAgentData?.platform ?? navigator.platform ?? "";
|
|
307
307
|
return /mac/i.test(e);
|
|
308
|
-
},
|
|
308
|
+
}, Pe = (e) => Ne() ? e.metaKey : e.ctrlKey, Fe = () => x("Choose a service"), Ie = () => x("Search"), Le = () => Ne() ? "Cmd+K" : "CTRL+K", Re = (e) => x(b`Type at least ${e} characters to search`), ze = () => x("Menu items"), Be = (e) => x(b`Load ${e} more`), Ve = () => x("VSN"), He = "survicate-sdk", Ue = "ui-components-feedback", We = (e) => `https://survey.survicate.com/workspaces/${e}/web_surveys.js`;
|
|
309
309
|
//#endregion
|
|
310
310
|
//#region src/shared/icons.ts
|
|
311
|
-
function
|
|
311
|
+
function j(e, t = 24, r) {
|
|
312
312
|
return n`<svg
|
|
313
313
|
xmlns="http://www.w3.org/2000/svg"
|
|
314
314
|
width="${t}"
|
|
@@ -323,23 +323,23 @@ function k(e, t = 24, r) {
|
|
|
323
323
|
class=${r ?? ""}
|
|
324
324
|
>${e}</svg>`;
|
|
325
325
|
}
|
|
326
|
-
var
|
|
326
|
+
var Ge = i`
|
|
327
327
|
<path d="M4 5h16"/>
|
|
328
328
|
<path d="M4 12h16"/>
|
|
329
329
|
<path d="M4 19h16"/>
|
|
330
|
-
`,
|
|
330
|
+
`, Ke = i`
|
|
331
331
|
<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"/>
|
|
332
332
|
<path d="M20 2v4"/>
|
|
333
333
|
<path d="M22 4h-4"/>
|
|
334
334
|
<circle cx="4" cy="20" r="2"/>
|
|
335
|
-
`,
|
|
335
|
+
`, qe = i`
|
|
336
336
|
<path d="M10.268 21a2 2 0 0 0 3.464 0"/>
|
|
337
337
|
<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"/>
|
|
338
|
-
`,
|
|
338
|
+
`, Je = i`
|
|
339
339
|
<path d="M10.268 21a2 2 0 0 0 3.464 0"/>
|
|
340
340
|
<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"/>
|
|
341
341
|
<circle cx="18" cy="5" r="3"/>
|
|
342
|
-
`,
|
|
342
|
+
`, Ye = i`
|
|
343
343
|
<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"/>
|
|
344
344
|
<path d="M7 10v12"/>
|
|
345
345
|
`;
|
|
@@ -350,14 +350,14 @@ i`
|
|
|
350
350
|
<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"/>
|
|
351
351
|
<path d="M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16"/>
|
|
352
352
|
`;
|
|
353
|
-
var
|
|
353
|
+
var Xe = i`
|
|
354
354
|
<path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"/>
|
|
355
355
|
<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"/>
|
|
356
|
-
`,
|
|
356
|
+
`, Ze = i`
|
|
357
357
|
<circle cx="12" cy="12" r="10"/>
|
|
358
358
|
<path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/>
|
|
359
359
|
<path d="M12 17h.01"/>
|
|
360
|
-
`,
|
|
360
|
+
`, Qe = i`
|
|
361
361
|
<circle cx="12" cy="8" r="5"/>
|
|
362
362
|
<path d="M20 21a8 8 0 0 0-16 0"/>
|
|
363
363
|
`;
|
|
@@ -368,11 +368,11 @@ i`
|
|
|
368
368
|
<path d="M12 17v5"/>
|
|
369
369
|
<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"/>
|
|
370
370
|
`;
|
|
371
|
-
var
|
|
371
|
+
var $e = i`
|
|
372
372
|
<path d="m16 17 5-5-5-5"/>
|
|
373
373
|
<path d="M21 12H9"/>
|
|
374
374
|
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/>
|
|
375
|
-
`,
|
|
375
|
+
`, et = i`
|
|
376
376
|
<path d="M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6"/>
|
|
377
377
|
<path d="m21 3-9 9"/>
|
|
378
378
|
<path d="M15 3h6v6"/>
|
|
@@ -381,17 +381,17 @@ i`
|
|
|
381
381
|
<circle cx="12" cy="12" r="10"/>
|
|
382
382
|
<circle cx="12" cy="12" r="1"/>
|
|
383
383
|
`;
|
|
384
|
-
var
|
|
384
|
+
var tt = i`
|
|
385
385
|
<path d="m7 15 5 5 5-5"/>
|
|
386
386
|
<path d="m7 9 5-5 5 5"/>
|
|
387
|
-
`,
|
|
387
|
+
`, nt = i`
|
|
388
388
|
<path d="m18 15-6-6-6 6"/>
|
|
389
|
-
`,
|
|
389
|
+
`, M = i`
|
|
390
390
|
<path d="m6 9 6 6 6-6"/>
|
|
391
|
-
`,
|
|
391
|
+
`, rt = i`
|
|
392
392
|
<circle cx="11" cy="11" r="8"/>
|
|
393
393
|
<path d="m21 21-4.3-4.3"/>
|
|
394
|
-
`,
|
|
394
|
+
`, it = i`
|
|
395
395
|
<circle cx="12" cy="12" r="10"/>
|
|
396
396
|
<path d="m15 9-6 6"/>
|
|
397
397
|
<path d="m9 9 6 6"/>
|
|
@@ -401,7 +401,7 @@ i`
|
|
|
401
401
|
<line x1="12" x2="12" y1="8" y2="12"/>
|
|
402
402
|
<line x1="12" x2="12.01" y1="16" y2="16"/>
|
|
403
403
|
`;
|
|
404
|
-
var
|
|
404
|
+
var at = i`
|
|
405
405
|
<path d="M12 16h.01"/>
|
|
406
406
|
<path d="M12 8v4"/>
|
|
407
407
|
<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"/>
|
|
@@ -412,12 +412,12 @@ i`
|
|
|
412
412
|
`, i`
|
|
413
413
|
<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"/>
|
|
414
414
|
`;
|
|
415
|
-
var
|
|
415
|
+
var ot = i`
|
|
416
416
|
<path d="m9 18 6-6-6-6"/>
|
|
417
417
|
`;
|
|
418
418
|
//#endregion
|
|
419
419
|
//#region \0@oxc-project+runtime@0.127.0/helpers/decorate.js
|
|
420
|
-
function
|
|
420
|
+
function N(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 j(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 P, F = class extends e {
|
|
429
429
|
static {
|
|
430
|
-
|
|
430
|
+
P = this;
|
|
431
431
|
}
|
|
432
432
|
static {
|
|
433
433
|
this.styles = [h];
|
|
@@ -452,7 +452,7 @@ var M, N = class extends e {
|
|
|
452
452
|
}
|
|
453
453
|
}, this._onItemMouseLeave = () => {
|
|
454
454
|
this._showTooltip = !1;
|
|
455
|
-
}, this._tooltipId = `vsn-side-menu-item-tooltip-${
|
|
455
|
+
}, this._tooltipId = `vsn-side-menu-item-tooltip-${P._idCounter++}`;
|
|
456
456
|
}
|
|
457
457
|
willUpdate(e) {
|
|
458
458
|
let t = this.tree;
|
|
@@ -472,18 +472,17 @@ var M, N = class extends e {
|
|
|
472
472
|
"ga-side-navigation__item--expanded": this._isExpanded,
|
|
473
473
|
"ga-side-navigation__item--active": this._isActive
|
|
474
474
|
}, i = n`
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
`;
|
|
475
|
+
<div id="${this._tooltipId}" role="tooltip"
|
|
476
|
+
style="position: fixed; left: ${this._tooltipPos.x}px; top: ${this._tooltipPos.y}px; transform: translateY(-50%); visibility: ${this._showTooltip ? "visible" : "hidden"}; pointer-events: none; z-index: 9999;">
|
|
477
|
+
<div class="ga-tooltip ga-tooltip--right-center w-34 max-w-135">${this.tree?.label}</div>
|
|
478
|
+
</div>
|
|
479
|
+
<span class="ga-side-navigation__item-icon">
|
|
480
|
+
${e ? this._isExpanded ? j(M, 16) : j(ot, 16) : ""}
|
|
481
|
+
</span>
|
|
482
|
+
<div class="ga-side-navigation__item-content">
|
|
483
|
+
<div class="ga-side-navigation__item-label">${this.tree?.label}</div>
|
|
484
|
+
</div>
|
|
485
|
+
`;
|
|
487
486
|
return e ? n`<div class="${f(r)}" aria-describedby="${this._tooltipId}" data-qa-id="${ee(t)}" @click=${this._handleItemClick} @mouseenter=${this._onItemMouseEnter} @mouseleave=${this._onItemMouseLeave}>${i}</div>` : n`<a class="${f(r)}" aria-describedby="${this._tooltipId}" href="${this.tree && g(this.tree) ? this.tree.url : ""}" data-qa-id="${ee(t)}" @click=${this._handleItemClick} @mouseenter=${this._onItemMouseEnter} @mouseleave=${this._onItemMouseLeave}>${i}</a>`;
|
|
488
487
|
}
|
|
489
488
|
menuItem(e, t) {
|
|
@@ -511,13 +510,13 @@ var M, N = class extends e {
|
|
|
511
510
|
}
|
|
512
511
|
}
|
|
513
512
|
};
|
|
514
|
-
|
|
515
|
-
context:
|
|
513
|
+
N([s({ attribute: !1 })], F.prototype, "tree", void 0), N([s({ type: Number })], F.prototype, "level", void 0), N([ue({
|
|
514
|
+
context: de,
|
|
516
515
|
subscribe: !0
|
|
517
|
-
}), l()],
|
|
516
|
+
}), l()], F.prototype, "_currentActiveId", void 0), N([l()], F.prototype, "_isActive", void 0), N([l()], F.prototype, "_isExpanded", void 0), N([l()], F.prototype, "_showTooltip", void 0), N([l()], F.prototype, "_tooltipPos", void 0), N([c(".ga-side-navigation__item-label")], F.prototype, "_labelEl", void 0), F = P = N([o("vsn-menu-item")], F);
|
|
518
517
|
//#endregion
|
|
519
518
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu.ts
|
|
520
|
-
var
|
|
519
|
+
var I = class extends e {
|
|
521
520
|
constructor(...e) {
|
|
522
521
|
super(...e), this.items = [], this._currentActiveId = "", this.currentItem = "";
|
|
523
522
|
}
|
|
@@ -546,10 +545,10 @@ var P = class extends e {
|
|
|
546
545
|
return n`<vsn-menu-item .tree=${e}></vsn-menu-item>`;
|
|
547
546
|
}
|
|
548
547
|
};
|
|
549
|
-
|
|
548
|
+
N([s({ attribute: !1 })], I.prototype, "items", void 0), N([le({ context: de }), l()], I.prototype, "_currentActiveId", void 0), N([s()], I.prototype, "currentItem", void 0), I = N([o("vsn-menu")], I);
|
|
550
549
|
//#endregion
|
|
551
550
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-button.ts
|
|
552
|
-
var
|
|
551
|
+
var L = class extends e {
|
|
553
552
|
constructor(...e) {
|
|
554
553
|
super(...e), this.label = "", this._onKeydown = (e) => {
|
|
555
554
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.click());
|
|
@@ -647,10 +646,10 @@ var F = class extends e {
|
|
|
647
646
|
`;
|
|
648
647
|
}
|
|
649
648
|
};
|
|
650
|
-
|
|
649
|
+
N([s()], L.prototype, "label", void 0), L = N([o("vsn-menu-button")], L);
|
|
651
650
|
//#endregion
|
|
652
651
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-separator.ts
|
|
653
|
-
var
|
|
652
|
+
var st = class extends e {
|
|
654
653
|
static {
|
|
655
654
|
this.styles = [t`
|
|
656
655
|
/* flow-root establishes a BFC so the .line's margins stay contained.
|
|
@@ -673,10 +672,10 @@ var lt = class extends e {
|
|
|
673
672
|
return n`<div class="line"></div>`;
|
|
674
673
|
}
|
|
675
674
|
};
|
|
676
|
-
|
|
675
|
+
st = N([o("vsn-menu-separator")], st);
|
|
677
676
|
//#endregion
|
|
678
677
|
//#region src/components/vsn-side-bar/vsn-footer/vsn-footer.keyboard.ts
|
|
679
|
-
var
|
|
678
|
+
var ct = class {
|
|
680
679
|
constructor(e) {
|
|
681
680
|
this._prevExpanded = !1, this.onUserKeydown = (e) => {
|
|
682
681
|
e.key === "Enter" || e.key === " " ? (e.preventDefault(), this.host.expanded = !this.host.expanded) : e.key === "Escape" && this.host.expanded && (e.preventDefault(), this.host.expanded = !1);
|
|
@@ -715,7 +714,7 @@ var ut = class {
|
|
|
715
714
|
this.host.querySelector(".ga-side-navigation__user")?.focus();
|
|
716
715
|
});
|
|
717
716
|
}
|
|
718
|
-
},
|
|
717
|
+
}, lt = class {
|
|
719
718
|
constructor(e, t, n) {
|
|
720
719
|
this._onPointerDown = (e) => {
|
|
721
720
|
let t = e.composedPath();
|
|
@@ -732,7 +731,7 @@ var ut = class {
|
|
|
732
731
|
hostDisconnected() {
|
|
733
732
|
document.removeEventListener("pointerdown", this._onPointerDown, !0);
|
|
734
733
|
}
|
|
735
|
-
},
|
|
734
|
+
}, ut = t`
|
|
736
735
|
@layer components {
|
|
737
736
|
:where(.ga-side-navigation__user),
|
|
738
737
|
:where(.ga-side-navigation__footer-dropdown-item) {
|
|
@@ -768,26 +767,26 @@ var ut = class {
|
|
|
768
767
|
justify-content: center;
|
|
769
768
|
}
|
|
770
769
|
}
|
|
771
|
-
`,
|
|
772
|
-
function
|
|
770
|
+
`, dt = "initials";
|
|
771
|
+
function ft(e, t, n, r) {
|
|
773
772
|
if (!t) return;
|
|
774
773
|
let i = new URLSearchParams({
|
|
775
|
-
type:
|
|
774
|
+
type: dt,
|
|
776
775
|
size: r
|
|
777
776
|
});
|
|
778
777
|
return n && i.set("client_id", n), `${e}${t}?${i}`;
|
|
779
778
|
}
|
|
780
779
|
//#endregion
|
|
781
780
|
//#region src/components/vsn-side-bar/vsn-footer/vsn-footer.ts
|
|
782
|
-
var
|
|
783
|
-
profile:
|
|
784
|
-
logout:
|
|
785
|
-
},
|
|
786
|
-
profile:
|
|
787
|
-
logout:
|
|
788
|
-
}),
|
|
781
|
+
var pt = {
|
|
782
|
+
profile: Qe,
|
|
783
|
+
logout: $e
|
|
784
|
+
}, mt = () => ({
|
|
785
|
+
profile: x("My profile"),
|
|
786
|
+
logout: x("Log out")
|
|
787
|
+
}), R = class extends e {
|
|
789
788
|
static {
|
|
790
|
-
this.styles = [h,
|
|
789
|
+
this.styles = [h, ut];
|
|
791
790
|
}
|
|
792
791
|
createRenderRoot() {
|
|
793
792
|
return this;
|
|
@@ -795,16 +794,16 @@ var ht = {
|
|
|
795
794
|
get _items() {
|
|
796
795
|
return [{
|
|
797
796
|
id: "profile",
|
|
798
|
-
label:
|
|
797
|
+
label: mt().profile,
|
|
799
798
|
url: this.myProfileUrl
|
|
800
799
|
}, {
|
|
801
800
|
id: "logout",
|
|
802
|
-
label:
|
|
801
|
+
label: mt().logout,
|
|
803
802
|
url: "/logout"
|
|
804
803
|
}];
|
|
805
804
|
}
|
|
806
805
|
constructor() {
|
|
807
|
-
super(), this.expanded = !1, this._avatarFailed = !1, this._keyboard = new
|
|
806
|
+
super(), this.expanded = !1, this._avatarFailed = !1, this._keyboard = new ct(this), new lt(this, [".ga-side-navigation__footer-dropdown", ".ga-side-navigation__user"], () => {
|
|
808
807
|
this.expanded = !1;
|
|
809
808
|
});
|
|
810
809
|
}
|
|
@@ -841,7 +840,7 @@ var ht = {
|
|
|
841
840
|
</div>
|
|
842
841
|
|
|
843
842
|
<span class="ga-side-navigation__user-action">
|
|
844
|
-
${this.expanded ?
|
|
843
|
+
${this.expanded ? j(nt, 16) : j(tt, 16)}
|
|
845
844
|
</span>
|
|
846
845
|
|
|
847
846
|
</div>
|
|
@@ -855,14 +854,14 @@ var ht = {
|
|
|
855
854
|
${this._items.map((e) => {
|
|
856
855
|
let t = n`
|
|
857
856
|
<span class="ga-side-navigation__footer-dropdown-icon">
|
|
858
|
-
${
|
|
857
|
+
${j(pt[e.id], 16)}
|
|
859
858
|
</span>
|
|
860
859
|
<span class="ga-side-navigation__footer-dropdown-title">
|
|
861
860
|
${e.label}
|
|
862
861
|
</span>
|
|
863
862
|
${e.external ? n`
|
|
864
863
|
<span class="ga-side-navigation__footer-dropdown-trail">
|
|
865
|
-
${
|
|
864
|
+
${j(et, 16)}
|
|
866
865
|
</span>
|
|
867
866
|
` : r}
|
|
868
867
|
`;
|
|
@@ -902,7 +901,7 @@ var ht = {
|
|
|
902
901
|
}));
|
|
903
902
|
}
|
|
904
903
|
renderAvatar() {
|
|
905
|
-
let e =
|
|
904
|
+
let e = ft(this.profilePictureBaseUrl, this.user.userId, this.user.clientId, "small");
|
|
906
905
|
return e && !this._avatarFailed ? n`<img
|
|
907
906
|
class="ga-side-navigation__user-avatar"
|
|
908
907
|
src=${e}
|
|
@@ -910,17 +909,17 @@ var ht = {
|
|
|
910
909
|
@error=${() => {
|
|
911
910
|
this._avatarFailed = !0;
|
|
912
911
|
}} />` : n`<span class="ga-side-navigation__user-avatar vsn-side-navigation__user-avatar--icon">
|
|
913
|
-
${
|
|
912
|
+
${j(Qe, 24)}
|
|
914
913
|
</span>`;
|
|
915
914
|
}
|
|
916
915
|
};
|
|
917
|
-
|
|
916
|
+
N([s({ attribute: !1 })], R.prototype, "user", void 0), N([s()], R.prototype, "profilePictureBaseUrl", void 0), N([s()], R.prototype, "myProfileUrl", void 0), N([s({
|
|
918
917
|
type: Boolean,
|
|
919
918
|
reflect: !0
|
|
920
|
-
})],
|
|
919
|
+
})], R.prototype, "expanded", void 0), N([l()], R.prototype, "_avatarFailed", void 0), R = N([S(), o("vsn-footer")], R);
|
|
921
920
|
//#endregion
|
|
922
921
|
//#region src/components/vsn-side-bar/vsn-header/vsn-header.keyboard.ts
|
|
923
|
-
var
|
|
922
|
+
var ht = class {
|
|
924
923
|
constructor(e) {
|
|
925
924
|
this.onSwitcherKeydown = (e) => {
|
|
926
925
|
if (e.key === "Enter" || e.key === " ") {
|
|
@@ -940,7 +939,7 @@ var _t = class {
|
|
|
940
939
|
}, this.host = e, e.addController(this);
|
|
941
940
|
}
|
|
942
941
|
hostConnected() {}
|
|
943
|
-
},
|
|
942
|
+
}, gt = ".ga-side-navigation__switcher:focus{outline-offset:2px;outline:2px solid #3b82f6}", z = class extends e {
|
|
944
943
|
constructor(...e) {
|
|
945
944
|
super(...e), this.items = [], this.loading = !1, this._handleKeydown = (e) => {
|
|
946
945
|
if (e.key === "Escape") {
|
|
@@ -1000,15 +999,15 @@ var _t = class {
|
|
|
1000
999
|
<div class="ga-side-navigation__switcher-dropdown vsn-switcher-dropdown--loading"
|
|
1001
1000
|
role="status"
|
|
1002
1001
|
aria-busy="true"
|
|
1003
|
-
aria-label=${
|
|
1002
|
+
aria-label=${x("Loading modules")}>
|
|
1004
1003
|
<span class="vsn-spinner"></span>
|
|
1005
1004
|
</div>
|
|
1006
1005
|
` : n`
|
|
1007
1006
|
<div class="ga-side-navigation__switcher-dropdown"
|
|
1008
1007
|
role="menu"
|
|
1009
|
-
aria-label=${
|
|
1008
|
+
aria-label=${Fe()}
|
|
1010
1009
|
@keydown=${this._handleKeydown}>
|
|
1011
|
-
<span class="ga-side-navigation__switcher-dropdown-header">${
|
|
1010
|
+
<span class="ga-side-navigation__switcher-dropdown-header">${Fe()}</span>
|
|
1012
1011
|
${this.items.map((e) => n`
|
|
1013
1012
|
<a class="ga-side-navigation__switcher-dropdown-item"
|
|
1014
1013
|
href=${e.url ?? ""}
|
|
@@ -1021,10 +1020,10 @@ var _t = class {
|
|
|
1021
1020
|
`;
|
|
1022
1021
|
}
|
|
1023
1022
|
};
|
|
1024
|
-
|
|
1023
|
+
N([s({ attribute: !1 })], z.prototype, "items", void 0), N([s({ type: Boolean })], z.prototype, "loading", void 0), z = N([S(), o("vsn-switcher-menu")], z);
|
|
1025
1024
|
//#endregion
|
|
1026
1025
|
//#region src/components/vsn-side-bar/vsn-search/vsn-search.css.ts
|
|
1027
|
-
var
|
|
1026
|
+
var _t = t`
|
|
1028
1027
|
.vsn-search__trigger,
|
|
1029
1028
|
.vsn-search__clear {
|
|
1030
1029
|
display: inline-flex;
|
|
@@ -1073,7 +1072,7 @@ var yt = t`
|
|
|
1073
1072
|
.ga-side-navigation__search input::placeholder {
|
|
1074
1073
|
color: var(--ga-color-text-disable-selected);
|
|
1075
1074
|
}
|
|
1076
|
-
`,
|
|
1075
|
+
`, B = class extends e {
|
|
1077
1076
|
constructor(...e) {
|
|
1078
1077
|
super(...e), this.shortcut = "", this.value = "", this.loading = !1, this._emitSearch = () => {
|
|
1079
1078
|
this._canSearch && this.dispatchEvent(new CustomEvent("vsn-search-submit", {
|
|
@@ -1095,7 +1094,7 @@ var yt = t`
|
|
|
1095
1094
|
return this;
|
|
1096
1095
|
}
|
|
1097
1096
|
static {
|
|
1098
|
-
this.styles = [h,
|
|
1097
|
+
this.styles = [h, _t];
|
|
1099
1098
|
}
|
|
1100
1099
|
focus() {
|
|
1101
1100
|
let e = this.querySelector("input");
|
|
@@ -1122,19 +1121,19 @@ var yt = t`
|
|
|
1122
1121
|
<button
|
|
1123
1122
|
type="button"
|
|
1124
1123
|
class="vsn-search__trigger"
|
|
1125
|
-
aria-label=${
|
|
1124
|
+
aria-label=${x("Search")}
|
|
1126
1125
|
?disabled=${!this._canSearch}
|
|
1127
1126
|
@click=${this._emitSearch}>
|
|
1128
|
-
${
|
|
1127
|
+
${j(rt, 24)}
|
|
1129
1128
|
</button>
|
|
1130
1129
|
<input type="search"
|
|
1131
|
-
.placeholder=${
|
|
1130
|
+
.placeholder=${Ie()}
|
|
1132
1131
|
.value=${this.value}
|
|
1133
1132
|
@input=${this._handleInput}
|
|
1134
1133
|
@keydown=${this._handleEnter} />
|
|
1135
1134
|
${this._trailingSlot()}
|
|
1136
1135
|
</div>
|
|
1137
|
-
${u(e, () => n`<div class="vsn-search__helper">${
|
|
1136
|
+
${u(e, () => n`<div class="vsn-search__helper">${Re(3)}</div>`)}
|
|
1138
1137
|
`;
|
|
1139
1138
|
}
|
|
1140
1139
|
_trailingSlot() {
|
|
@@ -1146,13 +1145,13 @@ var yt = t`
|
|
|
1146
1145
|
`;
|
|
1147
1146
|
}
|
|
1148
1147
|
_spinner() {
|
|
1149
|
-
return n`<span class="vsn-spinner" role="status" aria-label=${
|
|
1148
|
+
return n`<span class="vsn-spinner" role="status" aria-label=${x("Searching")}></span>`;
|
|
1150
1149
|
}
|
|
1151
1150
|
_clearButton() {
|
|
1152
1151
|
return n`
|
|
1153
|
-
<button class="vsn-search__clear" aria-label=${
|
|
1152
|
+
<button class="vsn-search__clear" aria-label=${x("Clear search")}
|
|
1154
1153
|
@click=${this._emitEscape}>
|
|
1155
|
-
${
|
|
1154
|
+
${j(it, 16)}
|
|
1156
1155
|
</button>
|
|
1157
1156
|
`;
|
|
1158
1157
|
}
|
|
@@ -1160,25 +1159,25 @@ var yt = t`
|
|
|
1160
1159
|
return n`<kbd class="ga-side-navigation__search-shortcut">${this.shortcut}</kbd>`;
|
|
1161
1160
|
}
|
|
1162
1161
|
};
|
|
1163
|
-
|
|
1162
|
+
N([s()], B.prototype, "shortcut", void 0), N([s()], B.prototype, "value", void 0), N([s({ type: Boolean })], B.prototype, "loading", void 0), B = N([S(), o("vsn-search")], B);
|
|
1164
1163
|
//#endregion
|
|
1165
1164
|
//#region src/components/vsn-side-bar/vsn-header/vsn-header.ts
|
|
1166
|
-
var
|
|
1165
|
+
var V = class extends e {
|
|
1167
1166
|
createRenderRoot() {
|
|
1168
1167
|
return this;
|
|
1169
1168
|
}
|
|
1170
1169
|
static {
|
|
1171
|
-
this.styles = [h, a(
|
|
1170
|
+
this.styles = [h, a(gt)];
|
|
1172
1171
|
}
|
|
1173
1172
|
constructor() {
|
|
1174
|
-
super(), this.modules = [], this.modulesLoading = !1, this.hasMenu = !1, this.searchValue = "", this.searchLoading = !1, this.expanded = !1, this._keyboard = new
|
|
1173
|
+
super(), this.modules = [], this.modulesLoading = !1, this.hasMenu = !1, this.searchValue = "", this.searchLoading = !1, this.expanded = !1, this._keyboard = new ht(this), new lt(this, [".ga-side-navigation__switcher-dropdown", ".ga-side-navigation__switcher"], () => {
|
|
1175
1174
|
this.canClose && (this.expanded = !1);
|
|
1176
1175
|
});
|
|
1177
1176
|
}
|
|
1178
1177
|
get _state() {
|
|
1179
1178
|
if (this.modulesLoading) return {
|
|
1180
1179
|
kind: "loading",
|
|
1181
|
-
title: this.activeModuleLabel ||
|
|
1180
|
+
title: this.activeModuleLabel || Ve()
|
|
1182
1181
|
};
|
|
1183
1182
|
let e = this.modules.find((e) => e.id === this.activeModuleId);
|
|
1184
1183
|
return e ? {
|
|
@@ -1187,7 +1186,7 @@ var z = class extends e {
|
|
|
1187
1186
|
available: this.modules.filter((t) => t.id !== e.id)
|
|
1188
1187
|
} : {
|
|
1189
1188
|
kind: "no-active",
|
|
1190
|
-
title:
|
|
1189
|
+
title: Ve(),
|
|
1191
1190
|
available: this.modules
|
|
1192
1191
|
};
|
|
1193
1192
|
}
|
|
@@ -1250,7 +1249,7 @@ var z = class extends e {
|
|
|
1250
1249
|
<span class="ga-side-navigation__switcher-title">${e.title}</span>
|
|
1251
1250
|
${u(this.canClose, () => n`
|
|
1252
1251
|
<span class="ga-side-navigation__switcher-action">
|
|
1253
|
-
${this.expanded ?
|
|
1252
|
+
${this.expanded ? j(M, 16) : j(tt, 16)}
|
|
1254
1253
|
</span>
|
|
1255
1254
|
`)}
|
|
1256
1255
|
</div>
|
|
@@ -1268,7 +1267,7 @@ var z = class extends e {
|
|
|
1268
1267
|
|
|
1269
1268
|
${u(this.search?.enabled, () => n`
|
|
1270
1269
|
<vsn-search
|
|
1271
|
-
.shortcut=${this.search?.shortcut ??
|
|
1270
|
+
.shortcut=${this.search?.shortcut ?? Le()}
|
|
1272
1271
|
.value=${this.searchValue}
|
|
1273
1272
|
.loading=${this.searchLoading}>
|
|
1274
1273
|
</vsn-search>`)}
|
|
@@ -1276,13 +1275,13 @@ var z = class extends e {
|
|
|
1276
1275
|
`;
|
|
1277
1276
|
}
|
|
1278
1277
|
};
|
|
1279
|
-
|
|
1278
|
+
N([s({ attribute: !1 })], V.prototype, "modules", void 0), N([s()], V.prototype, "activeModuleId", void 0), N([s()], V.prototype, "activeModuleLabel", void 0), N([s({ type: Boolean })], V.prototype, "modulesLoading", void 0), N([s({ type: Boolean })], V.prototype, "hasMenu", void 0), N([s({ attribute: !1 })], V.prototype, "search", void 0), N([s()], V.prototype, "searchValue", void 0), N([s({ type: Boolean })], V.prototype, "searchLoading", void 0), N([s({
|
|
1280
1279
|
type: Boolean,
|
|
1281
1280
|
reflect: !0
|
|
1282
|
-
})],
|
|
1281
|
+
})], V.prototype, "expanded", void 0), V = N([S(), o("vsn-header")], V);
|
|
1283
1282
|
//#endregion
|
|
1284
1283
|
//#region src/components/vsn-side-bar/vsn-search-results/vsn-search-results.css.ts
|
|
1285
|
-
var
|
|
1284
|
+
var vt = t`
|
|
1286
1285
|
.vsn-search-results__empty {
|
|
1287
1286
|
display: flex;
|
|
1288
1287
|
flex-direction: column;
|
|
@@ -1351,7 +1350,7 @@ var bt = t`
|
|
|
1351
1350
|
cursor: not-allowed;
|
|
1352
1351
|
opacity: 0.5;
|
|
1353
1352
|
}
|
|
1354
|
-
`,
|
|
1353
|
+
`, yt = class {
|
|
1355
1354
|
constructor(e) {
|
|
1356
1355
|
this.onResultsKeydown = (e) => {
|
|
1357
1356
|
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
@@ -1365,15 +1364,15 @@ var bt = t`
|
|
|
1365
1364
|
}, this.host = e, e.addController(this);
|
|
1366
1365
|
}
|
|
1367
1366
|
hostConnected() {}
|
|
1368
|
-
},
|
|
1367
|
+
}, H = class extends e {
|
|
1369
1368
|
constructor(...e) {
|
|
1370
|
-
super(...e), this.loadingMore = !1, this._keyboard = new
|
|
1369
|
+
super(...e), this.loadingMore = !1, this._keyboard = new yt(this);
|
|
1371
1370
|
}
|
|
1372
1371
|
createRenderRoot() {
|
|
1373
1372
|
return this;
|
|
1374
1373
|
}
|
|
1375
1374
|
static {
|
|
1376
|
-
this.styles = [h,
|
|
1375
|
+
this.styles = [h, vt];
|
|
1377
1376
|
}
|
|
1378
1377
|
render() {
|
|
1379
1378
|
return this.errorMessage ? this._errorState(this.errorMessage) : this.results === void 0 ? n`${r}` : this.results.length === 0 ? this._emptyState() : this._resultsList(this.results);
|
|
@@ -1381,10 +1380,10 @@ var bt = t`
|
|
|
1381
1380
|
_emptyState() {
|
|
1382
1381
|
return n`
|
|
1383
1382
|
<div class="vsn-search-results__empty" role="status" aria-live="polite">
|
|
1384
|
-
<div class="vsn-search-results__empty-title">${
|
|
1385
|
-
<div class="vsn-search-results__empty-message">${
|
|
1386
|
-
<div class="vsn-search-results__empty-hint">${
|
|
1387
|
-
<div class="vsn-search-results__empty-support">${
|
|
1383
|
+
<div class="vsn-search-results__empty-title">${x("No results found")}</div>
|
|
1384
|
+
<div class="vsn-search-results__empty-message">${x("We couldn't find any matches.")}</div>
|
|
1385
|
+
<div class="vsn-search-results__empty-hint">${x("Try different keywords or check spelling.")}</div>
|
|
1386
|
+
<div class="vsn-search-results__empty-support">${x("Need help? Contact support.")}</div>
|
|
1388
1387
|
</div>
|
|
1389
1388
|
`;
|
|
1390
1389
|
}
|
|
@@ -1400,7 +1399,7 @@ var bt = t`
|
|
|
1400
1399
|
return n`
|
|
1401
1400
|
<div class="ga-side-navigation__body h-full" @keydown=${this._keyboard.onResultsKeydown}>
|
|
1402
1401
|
<div class="ga-side-navigation__search-results-title">
|
|
1403
|
-
${
|
|
1402
|
+
${x(t === 1 ? b`${t} result` : b`${t} results`)}
|
|
1404
1403
|
</div>
|
|
1405
1404
|
${e.map((e) => this._resultRow(e))}
|
|
1406
1405
|
${u(this.nextCursor, () => n`
|
|
@@ -1409,7 +1408,7 @@ var bt = t`
|
|
|
1409
1408
|
class="vsn-search-results__load-more"
|
|
1410
1409
|
?disabled=${this.loadingMore}
|
|
1411
1410
|
@click=${this._onLoadMore}>
|
|
1412
|
-
${
|
|
1411
|
+
${Be(30)}
|
|
1413
1412
|
</button>
|
|
1414
1413
|
`)}
|
|
1415
1414
|
</div>
|
|
@@ -1444,10 +1443,10 @@ var bt = t`
|
|
|
1444
1443
|
}));
|
|
1445
1444
|
}
|
|
1446
1445
|
};
|
|
1447
|
-
|
|
1446
|
+
N([s({ attribute: !1 })], H.prototype, "results", void 0), N([s()], H.prototype, "errorMessage", void 0), N([s()], H.prototype, "nextCursor", void 0), N([s({ type: Boolean })], H.prototype, "loadingMore", void 0), H = N([S(), o("vsn-search-results")], H);
|
|
1448
1447
|
//#endregion
|
|
1449
1448
|
//#region src/components/vsn-side-bar/vsn-template/vsn-template.css.ts
|
|
1450
|
-
var
|
|
1449
|
+
var bt = t`
|
|
1451
1450
|
.vsn-template__row {
|
|
1452
1451
|
display: flex;
|
|
1453
1452
|
flex-direction: column;
|
|
@@ -1462,26 +1461,26 @@ var St = t`
|
|
|
1462
1461
|
background: var(--ga-color-miscellaneous-skeleton-element, #F2F3F5);
|
|
1463
1462
|
flex-shrink: 0;
|
|
1464
1463
|
}
|
|
1465
|
-
`,
|
|
1464
|
+
`, xt = [
|
|
1466
1465
|
160,
|
|
1467
1466
|
96,
|
|
1468
1467
|
144,
|
|
1469
1468
|
192,
|
|
1470
1469
|
160
|
|
1471
|
-
],
|
|
1470
|
+
], St = class extends e {
|
|
1472
1471
|
createRenderRoot() {
|
|
1473
1472
|
return this;
|
|
1474
1473
|
}
|
|
1475
1474
|
static {
|
|
1476
|
-
this.styles = [h,
|
|
1475
|
+
this.styles = [h, bt];
|
|
1477
1476
|
}
|
|
1478
1477
|
render() {
|
|
1479
1478
|
return n`
|
|
1480
1479
|
<div class="ga-side-navigation__body h-full"
|
|
1481
1480
|
role="status"
|
|
1482
1481
|
aria-busy="true"
|
|
1483
|
-
aria-label=${
|
|
1484
|
-
${
|
|
1482
|
+
aria-label=${x("Loading results")}>
|
|
1483
|
+
${xt.map((e) => n`
|
|
1485
1484
|
<div class="vsn-template__row">
|
|
1486
1485
|
<div class="vsn-template__bar" style="width: ${e}px"></div>
|
|
1487
1486
|
</div>
|
|
@@ -1490,10 +1489,10 @@ var St = t`
|
|
|
1490
1489
|
`;
|
|
1491
1490
|
}
|
|
1492
1491
|
};
|
|
1493
|
-
|
|
1492
|
+
St = N([S(), o("vsn-template")], St);
|
|
1494
1493
|
//#endregion
|
|
1495
1494
|
//#region src/components/vsn-side-bar/vsn-error-state/vsn-error-state.css.ts
|
|
1496
|
-
var
|
|
1495
|
+
var Ct = t`
|
|
1497
1496
|
.vsn-error-state {
|
|
1498
1497
|
display: flex;
|
|
1499
1498
|
flex-direction: column;
|
|
@@ -1532,29 +1531,29 @@ var Tt = t`
|
|
|
1532
1531
|
font-weight: 400;
|
|
1533
1532
|
color: var(--ga-color-text-on-disabled);
|
|
1534
1533
|
}
|
|
1535
|
-
`,
|
|
1534
|
+
`, wt = class extends e {
|
|
1536
1535
|
createRenderRoot() {
|
|
1537
1536
|
return this;
|
|
1538
1537
|
}
|
|
1539
1538
|
static {
|
|
1540
|
-
this.styles = [h,
|
|
1539
|
+
this.styles = [h, Ct];
|
|
1541
1540
|
}
|
|
1542
1541
|
render() {
|
|
1543
1542
|
return n`
|
|
1544
1543
|
<div class="vsn-error-state" role="alert" aria-live="assertive">
|
|
1545
|
-
<div class="vsn-error-state__icon">${
|
|
1546
|
-
<div class="vsn-error-state__title">${
|
|
1547
|
-
<div class="vsn-error-state__message">${
|
|
1548
|
-
<div class="vsn-error-state__hint">${
|
|
1549
|
-
<div class="vsn-error-state__support">${
|
|
1544
|
+
<div class="vsn-error-state__icon">${j(at, 24)}</div>
|
|
1545
|
+
<div class="vsn-error-state__title">${x("Loading error")}</div>
|
|
1546
|
+
<div class="vsn-error-state__message">${x("We're unable to load the menu.")}</div>
|
|
1547
|
+
<div class="vsn-error-state__hint">${x("Please check your internet connection and try again.")}</div>
|
|
1548
|
+
<div class="vsn-error-state__support">${x("If the issue persists, reload the page or contact support.")}</div>
|
|
1550
1549
|
</div>
|
|
1551
1550
|
`;
|
|
1552
1551
|
}
|
|
1553
1552
|
};
|
|
1554
|
-
|
|
1553
|
+
wt = N([S(), o("vsn-error-state")], wt);
|
|
1555
1554
|
//#endregion
|
|
1556
1555
|
//#region src/components/vsn-side-bar/vsn-search-scopes/vsn-search-scopes.css.ts
|
|
1557
|
-
var
|
|
1556
|
+
var Tt = t`
|
|
1558
1557
|
@layer components {
|
|
1559
1558
|
vsn-search-scopes {
|
|
1560
1559
|
display: block;
|
|
@@ -1575,25 +1574,25 @@ var Dt = t`
|
|
|
1575
1574
|
text-overflow: ellipsis;
|
|
1576
1575
|
}
|
|
1577
1576
|
}
|
|
1578
|
-
`,
|
|
1577
|
+
`, U, W = class extends e {
|
|
1579
1578
|
static {
|
|
1580
|
-
|
|
1579
|
+
U = this;
|
|
1581
1580
|
}
|
|
1582
1581
|
constructor(...e) {
|
|
1583
|
-
super(...e), this.scopes = [], this.selectedScopeId = "", this._name = `vsn-search-scope-${++
|
|
1582
|
+
super(...e), this.scopes = [], this.selectedScopeId = "", this._name = `vsn-search-scope-${++U._counter}`;
|
|
1584
1583
|
}
|
|
1585
1584
|
createRenderRoot() {
|
|
1586
1585
|
return this;
|
|
1587
1586
|
}
|
|
1588
1587
|
static {
|
|
1589
|
-
this.styles = [h,
|
|
1588
|
+
this.styles = [h, Tt];
|
|
1590
1589
|
}
|
|
1591
1590
|
static {
|
|
1592
1591
|
this._counter = 0;
|
|
1593
1592
|
}
|
|
1594
1593
|
render() {
|
|
1595
1594
|
return this.scopes.length <= 1 ? n`` : n`
|
|
1596
|
-
<div class="ga-radio-group" role="radiogroup" aria-label=${
|
|
1595
|
+
<div class="ga-radio-group" role="radiogroup" aria-label=${x("Search scope")}>
|
|
1597
1596
|
${this.scopes.map((e) => this._renderScope(e))}
|
|
1598
1597
|
</div>
|
|
1599
1598
|
`;
|
|
@@ -1622,25 +1621,25 @@ var Dt = t`
|
|
|
1622
1621
|
}));
|
|
1623
1622
|
}
|
|
1624
1623
|
};
|
|
1625
|
-
|
|
1624
|
+
N([s({ attribute: !1 })], W.prototype, "scopes", void 0), N([s()], W.prototype, "selectedScopeId", void 0), W = U = N([S(), o("vsn-search-scopes")], W);
|
|
1626
1625
|
//#endregion
|
|
1627
1626
|
//#region src/shared/lang/locale-codes.ts
|
|
1628
|
-
var
|
|
1627
|
+
var Et = "en", Dt = [
|
|
1629
1628
|
"da",
|
|
1630
1629
|
"fi",
|
|
1631
1630
|
"nl",
|
|
1632
1631
|
"no",
|
|
1633
1632
|
"sv"
|
|
1634
|
-
],
|
|
1633
|
+
], Ot = /* @__PURE__ */ p({ templates: () => kt }), kt = {
|
|
1635
1634
|
s09a45db408570a7a: "Min profil",
|
|
1636
1635
|
s119f9875b7d4cdfc: "Har du brug for hjælp? Kontakt support.",
|
|
1637
|
-
s1228605ee65ddefa:
|
|
1638
|
-
s2bb33291ef8ae3d4:
|
|
1636
|
+
s1228605ee65ddefa: b`${0} resultat`,
|
|
1637
|
+
s2bb33291ef8ae3d4: b`Indtast mindst ${0} tegn for at søge`,
|
|
1639
1638
|
s2be8f715fbd00dcb: "Vi fandt ingen matchende resultater.",
|
|
1640
1639
|
s301876182accccad: " › ",
|
|
1641
1640
|
s3112f1ca236c8a61: "Indlæsningsfejl",
|
|
1642
1641
|
s352719d86112de9a: "Hjælp",
|
|
1643
|
-
s387a4a41718122cb:
|
|
1642
|
+
s387a4a41718122cb: b`${0} resultater`,
|
|
1644
1643
|
s3fb7db4771812f0c: "Hvis problemet fortsætter, genindlæs siden eller kontakt support.",
|
|
1645
1644
|
s4b0c6b66b4efd7d8: "Vælg en tjeneste",
|
|
1646
1645
|
s5be3c6d61cd9182f: "Notifikationer",
|
|
@@ -1661,16 +1660,16 @@ var Ot = "en", kt = [
|
|
|
1661
1660
|
sfbf31f663cef6cc2: "Prøv andre søgeord eller tjek stavningen.",
|
|
1662
1661
|
s7c510419ea376840: "VSN",
|
|
1663
1662
|
s38385cd359b17f7a: "Loading modules"
|
|
1664
|
-
},
|
|
1663
|
+
}, At = /* @__PURE__ */ p({ templates: () => jt }), jt = {
|
|
1665
1664
|
s09a45db408570a7a: "Oma profiili",
|
|
1666
1665
|
s119f9875b7d4cdfc: "Tarvitsetko apua? Ota yhteyttä tukeen.",
|
|
1667
|
-
s1228605ee65ddefa:
|
|
1668
|
-
s2bb33291ef8ae3d4:
|
|
1666
|
+
s1228605ee65ddefa: b`${0} tulos`,
|
|
1667
|
+
s2bb33291ef8ae3d4: b`Kirjoita vähintään ${0} merkkiä hakua varten`,
|
|
1669
1668
|
s2be8f715fbd00dcb: "Emme löytäneet osumia.",
|
|
1670
1669
|
s301876182accccad: " › ",
|
|
1671
1670
|
s3112f1ca236c8a61: "Latausvirhe",
|
|
1672
1671
|
s352719d86112de9a: "Ohje",
|
|
1673
|
-
s387a4a41718122cb:
|
|
1672
|
+
s387a4a41718122cb: b`${0} tulosta`,
|
|
1674
1673
|
s3fb7db4771812f0c: "Jos ongelma jatkuu, lataa sivu uudelleen tai ota yhteyttä tukeen.",
|
|
1675
1674
|
s4b0c6b66b4efd7d8: "Valitse palvelu",
|
|
1676
1675
|
s5be3c6d61cd9182f: "Ilmoitukset",
|
|
@@ -1691,16 +1690,16 @@ var Ot = "en", kt = [
|
|
|
1691
1690
|
sfbf31f663cef6cc2: "Kokeile eri hakusanoja tai tarkista kirjoitusasu.",
|
|
1692
1691
|
s7c510419ea376840: "VSN",
|
|
1693
1692
|
s38385cd359b17f7a: "Loading modules"
|
|
1694
|
-
},
|
|
1693
|
+
}, Mt = /* @__PURE__ */ p({ templates: () => Nt }), Nt = {
|
|
1695
1694
|
s09a45db408570a7a: "Mijn profiel",
|
|
1696
1695
|
s119f9875b7d4cdfc: "Hulp nodig? Neem contact op met ondersteuning.",
|
|
1697
|
-
s1228605ee65ddefa:
|
|
1698
|
-
s2bb33291ef8ae3d4:
|
|
1696
|
+
s1228605ee65ddefa: b`${0} resultaat`,
|
|
1697
|
+
s2bb33291ef8ae3d4: b`Typ minimaal ${0} tekens om te zoeken`,
|
|
1699
1698
|
s2be8f715fbd00dcb: "We konden geen overeenkomsten vinden.",
|
|
1700
1699
|
s301876182accccad: " › ",
|
|
1701
1700
|
s3112f1ca236c8a61: "Laadingsfout",
|
|
1702
1701
|
s352719d86112de9a: "Hulp",
|
|
1703
|
-
s387a4a41718122cb:
|
|
1702
|
+
s387a4a41718122cb: b`${0} resultaten`,
|
|
1704
1703
|
s3fb7db4771812f0c: "Als het probleem aanhoudt, laad de pagina opnieuw of neem contact op met ondersteuning.",
|
|
1705
1704
|
s4b0c6b66b4efd7d8: "Kies een service",
|
|
1706
1705
|
s5be3c6d61cd9182f: "Meldingen",
|
|
@@ -1721,16 +1720,16 @@ var Ot = "en", kt = [
|
|
|
1721
1720
|
sfbf31f663cef6cc2: "Probeer andere zoekwoorden of controleer de spelling.",
|
|
1722
1721
|
s7c510419ea376840: "VSN",
|
|
1723
1722
|
s38385cd359b17f7a: "Loading modules"
|
|
1724
|
-
},
|
|
1723
|
+
}, Pt = /* @__PURE__ */ p({ templates: () => Ft }), Ft = {
|
|
1725
1724
|
s09a45db408570a7a: "Min profil",
|
|
1726
1725
|
s119f9875b7d4cdfc: "Trenger du hjelp? Kontakt støtte.",
|
|
1727
|
-
s1228605ee65ddefa:
|
|
1728
|
-
s2bb33291ef8ae3d4:
|
|
1726
|
+
s1228605ee65ddefa: b`${0} resultat`,
|
|
1727
|
+
s2bb33291ef8ae3d4: b`Skriv inn minst ${0} tegn for å søke`,
|
|
1729
1728
|
s2be8f715fbd00dcb: "Vi fant ingen treff.",
|
|
1730
1729
|
s301876182accccad: " › ",
|
|
1731
1730
|
s3112f1ca236c8a61: "Lastingsfeil",
|
|
1732
1731
|
s352719d86112de9a: "Hjelp",
|
|
1733
|
-
s387a4a41718122cb:
|
|
1732
|
+
s387a4a41718122cb: b`${0} resultater`,
|
|
1734
1733
|
s3fb7db4771812f0c: "Hvis problemet vedvarer, last inn siden på nytt eller kontakt støtte.",
|
|
1735
1734
|
s4b0c6b66b4efd7d8: "Velg en tjeneste",
|
|
1736
1735
|
s5be3c6d61cd9182f: "Varsler",
|
|
@@ -1751,16 +1750,16 @@ var Ot = "en", kt = [
|
|
|
1751
1750
|
sfbf31f663cef6cc2: "Prøv andre søkeord eller sjekk stavemåten.",
|
|
1752
1751
|
s7c510419ea376840: "VSN",
|
|
1753
1752
|
s38385cd359b17f7a: "Loading modules"
|
|
1754
|
-
},
|
|
1753
|
+
}, It = /* @__PURE__ */ p({ templates: () => Lt }), Lt = {
|
|
1755
1754
|
s09a45db408570a7a: "Min profil",
|
|
1756
1755
|
s119f9875b7d4cdfc: "Behöver du hjälp? Kontakta support.",
|
|
1757
|
-
s1228605ee65ddefa:
|
|
1758
|
-
s2bb33291ef8ae3d4:
|
|
1756
|
+
s1228605ee65ddefa: b`${0} resultat`,
|
|
1757
|
+
s2bb33291ef8ae3d4: b`Skriv minst ${0} tecken för att söka`,
|
|
1759
1758
|
s2be8f715fbd00dcb: "Vi hittade inga matchningar.",
|
|
1760
1759
|
s301876182accccad: " › ",
|
|
1761
1760
|
s3112f1ca236c8a61: "Laddningsfel",
|
|
1762
1761
|
s352719d86112de9a: "Hjälp",
|
|
1763
|
-
s387a4a41718122cb:
|
|
1762
|
+
s387a4a41718122cb: b`${0} resultat`,
|
|
1764
1763
|
s3fb7db4771812f0c: "Om problemet kvarstår, ladda om sidan eller kontakta support.",
|
|
1765
1764
|
s4b0c6b66b4efd7d8: "Välj en tjänst",
|
|
1766
1765
|
s5be3c6d61cd9182f: "Aviseringar",
|
|
@@ -1781,17 +1780,17 @@ var Ot = "en", kt = [
|
|
|
1781
1780
|
sfbf31f663cef6cc2: "Prova andra sökord eller kontrollera stavningen.",
|
|
1782
1781
|
s7c510419ea376840: "VSN",
|
|
1783
1782
|
s38385cd359b17f7a: "Loading modules"
|
|
1784
|
-
},
|
|
1785
|
-
da:
|
|
1786
|
-
fi:
|
|
1787
|
-
nl:
|
|
1788
|
-
no:
|
|
1789
|
-
sv:
|
|
1790
|
-
}, { getLocale:
|
|
1791
|
-
sourceLocale:
|
|
1792
|
-
targetLocales:
|
|
1793
|
-
loadLocale: (e) =>
|
|
1794
|
-
}),
|
|
1783
|
+
}, Rt = {
|
|
1784
|
+
da: Ot,
|
|
1785
|
+
fi: At,
|
|
1786
|
+
nl: Mt,
|
|
1787
|
+
no: Pt,
|
|
1788
|
+
sv: It
|
|
1789
|
+
}, { getLocale: zt, setLocale: Bt } = Ae({
|
|
1790
|
+
sourceLocale: Et,
|
|
1791
|
+
targetLocales: Dt,
|
|
1792
|
+
loadLocale: (e) => Rt[e] ? Promise.resolve(Rt[e]) : Promise.reject(/* @__PURE__ */ Error(`Unknown locale: ${e}`))
|
|
1793
|
+
}), Vt = t`
|
|
1795
1794
|
@layer components {
|
|
1796
1795
|
.vsn-switcher-anchor {
|
|
1797
1796
|
position: relative;
|
|
@@ -1805,7 +1804,7 @@ var Ot = "en", kt = [
|
|
|
1805
1804
|
z-index: 10;
|
|
1806
1805
|
}
|
|
1807
1806
|
}
|
|
1808
|
-
`,
|
|
1807
|
+
`, Ht = t`
|
|
1809
1808
|
.vsn-spinner {
|
|
1810
1809
|
display: inline-block;
|
|
1811
1810
|
flex-shrink: 0;
|
|
@@ -1825,7 +1824,7 @@ var Ot = "en", kt = [
|
|
|
1825
1824
|
@keyframes vsn-spin {
|
|
1826
1825
|
to { transform: rotate(360deg); }
|
|
1827
1826
|
}
|
|
1828
|
-
`,
|
|
1827
|
+
`, Ut = class {
|
|
1829
1828
|
constructor(e, t, n) {
|
|
1830
1829
|
this._onHostClick = (e) => {
|
|
1831
1830
|
let t = this._host.renderRoot.querySelector(this._clickedSelector);
|
|
@@ -1838,14 +1837,14 @@ var Ot = "en", kt = [
|
|
|
1838
1837
|
hostDisconnected() {
|
|
1839
1838
|
this._host.removeEventListener("click", this._onHostClick);
|
|
1840
1839
|
}
|
|
1841
|
-
},
|
|
1840
|
+
}, Wt = "button:not([disabled]), a[href], [tabindex]:not([tabindex=\"-1\"])", Gt = class {
|
|
1842
1841
|
constructor(e) {
|
|
1843
1842
|
this.onKeydown = (e) => {
|
|
1844
1843
|
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
1845
1844
|
let t = this.host.renderRoot.querySelector("slot[name=\"nav-footer\"]");
|
|
1846
1845
|
if (!t) return;
|
|
1847
1846
|
let n = [];
|
|
1848
|
-
for (let e of t.assignedElements({ flatten: !0 })) e.matches(
|
|
1847
|
+
for (let e of t.assignedElements({ flatten: !0 })) e.matches(Wt) && n.push(e), n.push(...Array.from(e.querySelectorAll(Wt)));
|
|
1849
1848
|
if (n.length === 0) return;
|
|
1850
1849
|
let r = e.composedPath()[0];
|
|
1851
1850
|
if (!(r instanceof HTMLElement)) return;
|
|
@@ -1857,18 +1856,18 @@ var Ot = "en", kt = [
|
|
|
1857
1856
|
}, this.host = e, e.addController(this);
|
|
1858
1857
|
}
|
|
1859
1858
|
hostConnected() {}
|
|
1860
|
-
},
|
|
1859
|
+
}, G = class extends e {
|
|
1861
1860
|
static {
|
|
1862
1861
|
this.styles = [
|
|
1863
1862
|
h,
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
Dt,
|
|
1869
|
-
St,
|
|
1863
|
+
Vt,
|
|
1864
|
+
ut,
|
|
1865
|
+
_t,
|
|
1866
|
+
vt,
|
|
1870
1867
|
Tt,
|
|
1871
|
-
|
|
1868
|
+
bt,
|
|
1869
|
+
Ct,
|
|
1870
|
+
Ht,
|
|
1872
1871
|
t`
|
|
1873
1872
|
:host {
|
|
1874
1873
|
position: absolute;
|
|
@@ -1883,7 +1882,7 @@ var Ot = "en", kt = [
|
|
|
1883
1882
|
];
|
|
1884
1883
|
}
|
|
1885
1884
|
constructor() {
|
|
1886
|
-
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._navFooterKeyboard = new
|
|
1885
|
+
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._navFooterKeyboard = new Gt(this), this._onNavigate = (e) => {
|
|
1887
1886
|
this._searchQuery = "", this._searchResults = void 0, this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
|
|
1888
1887
|
bubbles: !0,
|
|
1889
1888
|
composed: !0
|
|
@@ -1905,13 +1904,13 @@ var Ot = "en", kt = [
|
|
|
1905
1904
|
}));
|
|
1906
1905
|
}, this._onScopeChanged = (e) => {
|
|
1907
1906
|
this._activeScopeId = e.detail.scopeId, this._runSearch(this._searchQuery, this._activeScopeId);
|
|
1908
|
-
}, new
|
|
1907
|
+
}, new Ut(this, ".ga-side-navigation", () => this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
|
|
1909
1908
|
bubbles: !0,
|
|
1910
1909
|
composed: !0
|
|
1911
1910
|
})));
|
|
1912
1911
|
}
|
|
1913
1912
|
willUpdate(e) {
|
|
1914
|
-
e.has("lang") &&
|
|
1913
|
+
e.has("lang") && Bt(this.lang).catch(console.error), e.has("open") && e.get("open") && !this.open && (this._searchQuery = "", this._activeScopeId = "menu", this._clearSearchState(), this.renderRoot.querySelector("vsn-header")?.reset(), this.renderRoot.querySelector("vsn-footer")?.reset());
|
|
1915
1914
|
}
|
|
1916
1915
|
async focusSearch() {
|
|
1917
1916
|
await this.updateComplete, this.menu?.search?.enabled && this.renderRoot.querySelector("vsn-search")?.focus();
|
|
@@ -1956,7 +1955,7 @@ var Ot = "en", kt = [
|
|
|
1956
1955
|
this._searchResults = t.results, this._searchNextCursor = t.nextCursor, this._searchLoading = !1, this._searchAbort = void 0;
|
|
1957
1956
|
} catch (e) {
|
|
1958
1957
|
if (this._searchAbort !== r) return;
|
|
1959
|
-
e instanceof
|
|
1958
|
+
e instanceof v ? (this._searchError = e.message, this._searchResults = void 0) : console.error("Search function rejected with non-SearchError:", e), this._searchLoading = !1, this._searchAbort = void 0;
|
|
1960
1959
|
}
|
|
1961
1960
|
}
|
|
1962
1961
|
async _loadMore() {
|
|
@@ -1976,7 +1975,7 @@ var Ot = "en", kt = [
|
|
|
1976
1975
|
this._searchResults = [...this._searchResults ?? [], ...n.results], this._searchNextCursor = n.nextCursor, this._searchLoadingMore = !1, this._searchAbort = void 0;
|
|
1977
1976
|
} catch (e) {
|
|
1978
1977
|
if (this._searchAbort !== t) return;
|
|
1979
|
-
e instanceof
|
|
1978
|
+
e instanceof v ? (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;
|
|
1980
1979
|
}
|
|
1981
1980
|
}
|
|
1982
1981
|
_filterTree(e) {
|
|
@@ -2058,7 +2057,7 @@ var Ot = "en", kt = [
|
|
|
2058
2057
|
<vsn-search-scopes
|
|
2059
2058
|
.scopes=${[{
|
|
2060
2059
|
id: "menu",
|
|
2061
|
-
label:
|
|
2060
|
+
label: ze()
|
|
2062
2061
|
}, ...e.map((e) => ({
|
|
2063
2062
|
id: e.id,
|
|
2064
2063
|
label: e.label
|
|
@@ -2081,15 +2080,15 @@ var Ot = "en", kt = [
|
|
|
2081
2080
|
`;
|
|
2082
2081
|
}
|
|
2083
2082
|
};
|
|
2084
|
-
|
|
2083
|
+
N([s({ attribute: !1 })], G.prototype, "modules", void 0), N([s()], G.prototype, "activeModuleId", void 0), N([s()], G.prototype, "activeModuleLabel", void 0), N([s({ type: Boolean })], G.prototype, "modulesLoading", void 0), N([s()], G.prototype, "lang", void 0), N([s({ attribute: !1 })], G.prototype, "auth", void 0), N([s({ type: Boolean })], G.prototype, "error", void 0), N([s({
|
|
2085
2084
|
type: Boolean,
|
|
2086
2085
|
reflect: !0
|
|
2087
|
-
})],
|
|
2086
|
+
})], G.prototype, "open", void 0), N([s({ attribute: !1 })], G.prototype, "menu", void 0), N([l()], G.prototype, "_searchQuery", void 0), N([l()], G.prototype, "_searchResults", void 0), N([l()], G.prototype, "_searchLoading", void 0), N([l()], G.prototype, "_activeScopeId", void 0), N([l()], G.prototype, "_searchError", void 0), N([l()], G.prototype, "_searchNextCursor", void 0), N([l()], G.prototype, "_searchLoadingMore", void 0), G = N([o("vsn-side-bar")], G);
|
|
2088
2087
|
//#endregion
|
|
2089
2088
|
//#region src/components/vsn-top-bar/vsn-breadcrumb-menu-item.ts
|
|
2090
|
-
var
|
|
2089
|
+
var K, q = class extends e {
|
|
2091
2090
|
static {
|
|
2092
|
-
|
|
2091
|
+
K = this;
|
|
2093
2092
|
}
|
|
2094
2093
|
static {
|
|
2095
2094
|
this.styles = h;
|
|
@@ -2122,7 +2121,7 @@ var W, G = class extends e {
|
|
|
2122
2121
|
composed: !0
|
|
2123
2122
|
}));
|
|
2124
2123
|
}
|
|
2125
|
-
}, this._tooltipId = `vsn-menu-item-tooltip-${
|
|
2124
|
+
}, this._tooltipId = `vsn-menu-item-tooltip-${K._idCounter++}`;
|
|
2126
2125
|
}
|
|
2127
2126
|
createRenderRoot() {
|
|
2128
2127
|
return this;
|
|
@@ -2146,16 +2145,9 @@ var W, G = class extends e {
|
|
|
2146
2145
|
<div id="${this._tooltipId}" role="tooltip" style="position: fixed; left: ${this._tooltipPos.x}px; top: ${this._tooltipPos.y}px; transform: translateY(-50%); visibility: ${this._showTooltip ? "visible" : "hidden"}; pointer-events: none; z-index: 9999;">
|
|
2147
2146
|
<div class="ga-tooltip ga-tooltip--right-start" style="white-space: nowrap">${e}</div>
|
|
2148
2147
|
</div>
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
</span>
|
|
2153
|
-
`)}
|
|
2154
|
-
${u(this._isParent() && !this._isExpanded, () => n`
|
|
2155
|
-
<span class="ga-side-navigation__item-icon">
|
|
2156
|
-
${k(ct, 16)}
|
|
2157
|
-
</span>
|
|
2158
|
-
`)}
|
|
2148
|
+
<span class="ga-side-navigation__item-icon">
|
|
2149
|
+
${this._isParent() ? this._isExpanded ? j(M, 16) : j(ot, 16) : ""}
|
|
2150
|
+
</span>
|
|
2159
2151
|
<div class="ga-side-navigation__item-content">
|
|
2160
2152
|
<div class="ga-side-navigation__item-label">${e}</div>
|
|
2161
2153
|
</div>
|
|
@@ -2172,10 +2164,10 @@ var W, G = class extends e {
|
|
|
2172
2164
|
if (this.tree && _(this.tree)) return this.tree.items.length > 0;
|
|
2173
2165
|
}
|
|
2174
2166
|
};
|
|
2175
|
-
|
|
2167
|
+
N([s({ attribute: !1 })], q.prototype, "tree", void 0), N([s({ type: Number })], q.prototype, "level", void 0), N([s({ type: Array })], q.prototype, "ancestorPath", void 0), N([l()], q.prototype, "_isExpanded", void 0), N([l()], q.prototype, "_showTooltip", void 0), N([l()], q.prototype, "_tooltipPos", void 0), N([c(".ga-side-navigation__item-label")], q.prototype, "_labelEl", void 0), q = K = N([o("vsn-breadcrumb-menu-item")], q);
|
|
2176
2168
|
//#endregion
|
|
2177
2169
|
//#region src/components/vsn-top-bar/vsn-breadcrumb-menu.ts
|
|
2178
|
-
var
|
|
2170
|
+
var J = class extends e {
|
|
2179
2171
|
static {
|
|
2180
2172
|
this.styles = h;
|
|
2181
2173
|
}
|
|
@@ -2195,10 +2187,10 @@ var K = class extends e {
|
|
|
2195
2187
|
`;
|
|
2196
2188
|
}
|
|
2197
2189
|
};
|
|
2198
|
-
|
|
2190
|
+
N([s({ attribute: !1 })], J.prototype, "treeList", void 0), J = N([o("vsn-breadcrumb-menu")], J);
|
|
2199
2191
|
//#endregion
|
|
2200
2192
|
//#region src/components/vsn-top-bar/vsn-breadcrumbs.ts
|
|
2201
|
-
var
|
|
2193
|
+
var Y = class extends e {
|
|
2202
2194
|
constructor(...e) {
|
|
2203
2195
|
super(...e), this.modules = [], 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 = () => {
|
|
2204
2196
|
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);
|
|
@@ -2465,7 +2457,7 @@ var q = class extends e {
|
|
|
2465
2457
|
}
|
|
2466
2458
|
render() {
|
|
2467
2459
|
return n`
|
|
2468
|
-
<nav aria-label=${
|
|
2460
|
+
<nav aria-label=${x("Breadcrumb")}>
|
|
2469
2461
|
<div class="ga-breadcrumb">
|
|
2470
2462
|
${this._displayMode === "full" ? this._renderFullBreadcrumbs() : this._displayMode === "overflow" ? this._renderOverflowBreadcrumbs() : this._renderMobileBreadcrumbs()}
|
|
2471
2463
|
</div>
|
|
@@ -2478,10 +2470,10 @@ var q = class extends e {
|
|
|
2478
2470
|
`;
|
|
2479
2471
|
}
|
|
2480
2472
|
};
|
|
2481
|
-
|
|
2473
|
+
N([s({ attribute: !1 })], Y.prototype, "tree", void 0), N([s({ type: Array })], Y.prototype, "modules", void 0), N([s()], Y.prototype, "activeModuleId", void 0), N([l()], Y.prototype, "_openPopoverId", void 0), N([l()], Y.prototype, "_displayMode", void 0), N([l()], Y.prototype, "_overflowCount", void 0), N([l()], Y.prototype, "_tooltip", void 0), Y = N([S(), o("vsn-breadcrumbs")], Y);
|
|
2482
2474
|
//#endregion
|
|
2483
2475
|
//#region src/components/vsn-top-bar/vsn-ai-assistant.ts
|
|
2484
|
-
var
|
|
2476
|
+
var Kt = class extends e {
|
|
2485
2477
|
static {
|
|
2486
2478
|
this.styles = h;
|
|
2487
2479
|
}
|
|
@@ -2497,16 +2489,16 @@ var Jt = class extends e {
|
|
|
2497
2489
|
}
|
|
2498
2490
|
render() {
|
|
2499
2491
|
return n`
|
|
2500
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2501
|
-
<span class="ga-icon">${
|
|
2492
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${x("Open AI assistant")} @click=${this._handleClick}>
|
|
2493
|
+
<span class="ga-icon">${j(Ke)}</span>
|
|
2502
2494
|
</button>
|
|
2503
2495
|
`;
|
|
2504
2496
|
}
|
|
2505
2497
|
};
|
|
2506
|
-
|
|
2498
|
+
Kt = N([S(), o("vsn-ai-assistant")], Kt);
|
|
2507
2499
|
//#endregion
|
|
2508
2500
|
//#region src/components/vsn-top-bar/vsn-feedback.ts
|
|
2509
|
-
var
|
|
2501
|
+
var X = class extends e {
|
|
2510
2502
|
constructor(...e) {
|
|
2511
2503
|
super(...e), this._compact = !1, this.feedback = null, this._mqMobile = window.matchMedia("(max-width: 767px)"), this._handleMediaChange = () => {
|
|
2512
2504
|
this._compact = this._mqMobile.matches;
|
|
@@ -2524,7 +2516,7 @@ var J = class extends e {
|
|
|
2524
2516
|
updated(e) {
|
|
2525
2517
|
if (super.updated(e), e.has("feedback") && this.feedback?.workspaceId && !document.getElementById("survicate-sdk") && !window._sva) {
|
|
2526
2518
|
let e = document.createElement("script");
|
|
2527
|
-
e.id =
|
|
2519
|
+
e.id = He, e.src = We(this.feedback.workspaceId), e.async = !0, e.onload = () => this._applyVisitorTraits(), document.head.appendChild(e);
|
|
2528
2520
|
}
|
|
2529
2521
|
if (e.has("auth")) {
|
|
2530
2522
|
let t = e.get("auth");
|
|
@@ -2544,24 +2536,24 @@ var J = class extends e {
|
|
|
2544
2536
|
this.dispatchEvent(new CustomEvent("vsn-feedback", {
|
|
2545
2537
|
bubbles: !0,
|
|
2546
2538
|
composed: !0
|
|
2547
|
-
})), this.feedback?.surveyId && (this._applyVisitorTraits(), window._sva?.invokeEvent(
|
|
2539
|
+
})), this.feedback?.surveyId && (this._applyVisitorTraits(), window._sva?.invokeEvent(Ue));
|
|
2548
2540
|
}
|
|
2549
2541
|
render() {
|
|
2550
2542
|
return this._compact ? n`
|
|
2551
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2552
|
-
<span class="ga-icon">${
|
|
2543
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${x("Send feedback")} @click=${this._handleClick}>
|
|
2544
|
+
<span class="ga-icon">${j(Ye)}</span>
|
|
2553
2545
|
</button>
|
|
2554
2546
|
` : n`
|
|
2555
|
-
<button type="button" class="ga-button ga-button--secondary" aria-label=${
|
|
2556
|
-
${
|
|
2547
|
+
<button type="button" class="ga-button ga-button--secondary" aria-label=${x("Send feedback")} @click=${this._handleClick}>
|
|
2548
|
+
${x("Feedback")}
|
|
2557
2549
|
</button>
|
|
2558
2550
|
`;
|
|
2559
2551
|
}
|
|
2560
2552
|
};
|
|
2561
|
-
|
|
2553
|
+
N([l()], X.prototype, "_compact", void 0), N([s({ attribute: !1 })], X.prototype, "feedback", void 0), N([s({ attribute: !1 })], X.prototype, "auth", void 0), X = N([S(), o("vsn-feedback")], X);
|
|
2562
2554
|
//#endregion
|
|
2563
2555
|
//#region src/components/vsn-top-bar/vsn-home.ts
|
|
2564
|
-
var
|
|
2556
|
+
var Z = class extends e {
|
|
2565
2557
|
static {
|
|
2566
2558
|
this.styles = h;
|
|
2567
2559
|
}
|
|
@@ -2572,7 +2564,7 @@ var Y = class extends e {
|
|
|
2572
2564
|
e.preventDefault(), this.landingPageUrl && this.dispatchEvent(new CustomEvent("vsn-navigate", {
|
|
2573
2565
|
detail: {
|
|
2574
2566
|
id: "home",
|
|
2575
|
-
label:
|
|
2567
|
+
label: x("Home"),
|
|
2576
2568
|
url: this.landingPageUrl
|
|
2577
2569
|
},
|
|
2578
2570
|
bubbles: !0,
|
|
@@ -2581,16 +2573,16 @@ var Y = class extends e {
|
|
|
2581
2573
|
}
|
|
2582
2574
|
render() {
|
|
2583
2575
|
return this.landingPageUrl ? n`
|
|
2584
|
-
<a href=${this.landingPageUrl} class="ga-button ga-button--ghost ga-button--icon-only" aria-label=${
|
|
2585
|
-
<span class="ga-icon">${
|
|
2576
|
+
<a href=${this.landingPageUrl} class="ga-button ga-button--ghost ga-button--icon-only" aria-label=${x("Home")} @click=${this._handleClick}>
|
|
2577
|
+
<span class="ga-icon">${j(Xe)}</span>
|
|
2586
2578
|
</a>
|
|
2587
2579
|
` : r;
|
|
2588
2580
|
}
|
|
2589
2581
|
};
|
|
2590
|
-
|
|
2582
|
+
N([s({ attribute: "landing-page-url" })], Z.prototype, "landingPageUrl", void 0), Z = N([S(), o("vsn-home")], Z);
|
|
2591
2583
|
//#endregion
|
|
2592
2584
|
//#region src/components/vsn-top-bar/vsn-menu-toggle.ts
|
|
2593
|
-
var
|
|
2585
|
+
var qt = class extends e {
|
|
2594
2586
|
constructor(...e) {
|
|
2595
2587
|
super(...e), this._tooltip = null, this._onMouseEnter = (e) => {
|
|
2596
2588
|
let t = e.currentTarget.getBoundingClientRect();
|
|
@@ -2619,21 +2611,21 @@ var X = class extends e {
|
|
|
2619
2611
|
}
|
|
2620
2612
|
render() {
|
|
2621
2613
|
return n`
|
|
2622
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2623
|
-
<span class="ga-icon">${
|
|
2614
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${x("Open menu")} aria-describedby=${this._tooltip ? "vsn-menu-toggle-tooltip" : r} @click=${this._handleClick} @mouseenter=${this._onMouseEnter} @mouseleave=${this._onMouseLeave}>
|
|
2615
|
+
<span class="ga-icon">${j(Ge)}</span>
|
|
2624
2616
|
</button>
|
|
2625
2617
|
${this._tooltip ? n`
|
|
2626
2618
|
<div id="vsn-menu-toggle-tooltip" role="tooltip" style="position: fixed; left: ${this._tooltip.x}px; top: ${this._tooltip.y}px; pointer-events: none; z-index: 9999;">
|
|
2627
|
-
<div class="ga-tooltip ga-tooltip--bottom-start" style="white-space: nowrap">${
|
|
2619
|
+
<div class="ga-tooltip ga-tooltip--bottom-start" style="white-space: nowrap">${Le()}</div>
|
|
2628
2620
|
</div>
|
|
2629
2621
|
` : r}
|
|
2630
2622
|
`;
|
|
2631
2623
|
}
|
|
2632
2624
|
};
|
|
2633
|
-
|
|
2625
|
+
N([l()], qt.prototype, "_tooltip", void 0), qt = N([S(), o("vsn-menu-toggle")], qt);
|
|
2634
2626
|
//#endregion
|
|
2635
2627
|
//#region src/components/vsn-top-bar/vsn-notifications.ts
|
|
2636
|
-
var
|
|
2628
|
+
var Jt = class extends e {
|
|
2637
2629
|
constructor(...e) {
|
|
2638
2630
|
super(...e), this.notificationActive = !1;
|
|
2639
2631
|
}
|
|
@@ -2651,19 +2643,19 @@ var Z = class extends e {
|
|
|
2651
2643
|
}));
|
|
2652
2644
|
}
|
|
2653
2645
|
render() {
|
|
2654
|
-
let e = this.notificationActive ?
|
|
2646
|
+
let e = this.notificationActive ? Je : qe;
|
|
2655
2647
|
return n`
|
|
2656
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2657
|
-
<span class="ga-icon">${
|
|
2648
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${x("Notifications")} @click=${this._handleClick}>
|
|
2649
|
+
<span class="ga-icon">${j(e)}</span>
|
|
2658
2650
|
</button>
|
|
2659
2651
|
`;
|
|
2660
2652
|
}
|
|
2661
2653
|
};
|
|
2662
|
-
|
|
2654
|
+
N([s({
|
|
2663
2655
|
type: Boolean,
|
|
2664
2656
|
attribute: "notification-active",
|
|
2665
2657
|
reflect: !0
|
|
2666
|
-
})],
|
|
2658
|
+
})], Jt.prototype, "notificationActive", void 0), Jt = N([S(), o("vsn-notifications")], Jt);
|
|
2667
2659
|
//#endregion
|
|
2668
2660
|
//#region src/components/vsn-top-bar/vsn-help.ts
|
|
2669
2661
|
function Yt(e) {
|
|
@@ -2690,17 +2682,17 @@ var Xt = class extends e {
|
|
|
2690
2682
|
}
|
|
2691
2683
|
render() {
|
|
2692
2684
|
return this.helpUrl && Yt(this.helpUrl) ? n`
|
|
2693
|
-
<a href=${this.helpUrl} rel="noopener noreferrer" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2694
|
-
<span class="ga-icon">${
|
|
2685
|
+
<a href=${this.helpUrl} rel="noopener noreferrer" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${x("Help")}>
|
|
2686
|
+
<span class="ga-icon">${j(Ze)}</span>
|
|
2695
2687
|
</a>
|
|
2696
2688
|
` : n`
|
|
2697
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2698
|
-
<span class="ga-icon">${
|
|
2689
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${x("Help")} @click=${this._handleClick}>
|
|
2690
|
+
<span class="ga-icon">${j(Ze)}</span>
|
|
2699
2691
|
</button>
|
|
2700
2692
|
`;
|
|
2701
2693
|
}
|
|
2702
2694
|
};
|
|
2703
|
-
|
|
2695
|
+
N([s({ attribute: "help-url" })], Xt.prototype, "helpUrl", void 0), Xt = N([S(), o("vsn-help")], Xt);
|
|
2704
2696
|
//#endregion
|
|
2705
2697
|
//#region src/components/vsn-top-bar/vsn-top-bar.ts
|
|
2706
2698
|
var Q = class extends e {
|
|
@@ -2708,7 +2700,7 @@ var Q = class extends e {
|
|
|
2708
2700
|
super(...e), this.modules = [], this.feedback = null, this.showHelp = !1, this.showNotification = !1, this.notificationActive = !1, this.lang = "en";
|
|
2709
2701
|
}
|
|
2710
2702
|
willUpdate(e) {
|
|
2711
|
-
e.has("lang") &&
|
|
2703
|
+
e.has("lang") && Bt(this.lang).catch(console.error);
|
|
2712
2704
|
}
|
|
2713
2705
|
focusMenuToggle() {
|
|
2714
2706
|
this.renderRoot.querySelector("vsn-menu-toggle")?.focus();
|
|
@@ -2808,22 +2800,22 @@ var Q = class extends e {
|
|
|
2808
2800
|
`;
|
|
2809
2801
|
}
|
|
2810
2802
|
};
|
|
2811
|
-
|
|
2803
|
+
N([s({ attribute: !1 })], Q.prototype, "tree", void 0), N([s({ type: Array })], Q.prototype, "modules", void 0), N([s()], Q.prototype, "activeModuleId", void 0), N([s({ attribute: "landing-page-url" })], Q.prototype, "landingPageUrl", void 0), N([s({ attribute: !1 })], Q.prototype, "feedback", void 0), N([s({ attribute: !1 })], Q.prototype, "auth", void 0), N([s({
|
|
2812
2804
|
type: Boolean,
|
|
2813
2805
|
attribute: "show-help"
|
|
2814
|
-
})], Q.prototype, "showHelp", void 0),
|
|
2806
|
+
})], Q.prototype, "showHelp", void 0), N([s({ attribute: "help-url" })], Q.prototype, "helpUrl", void 0), N([s({
|
|
2815
2807
|
type: Boolean,
|
|
2816
2808
|
attribute: "show-notification"
|
|
2817
|
-
})], Q.prototype, "showNotification", void 0),
|
|
2809
|
+
})], Q.prototype, "showNotification", void 0), N([s({
|
|
2818
2810
|
type: Boolean,
|
|
2819
2811
|
attribute: "notification-active"
|
|
2820
|
-
})], Q.prototype, "notificationActive", void 0),
|
|
2812
|
+
})], Q.prototype, "notificationActive", void 0), N([s()], Q.prototype, "lang", void 0), Q = N([o("vsn-top-bar")], Q);
|
|
2821
2813
|
//#endregion
|
|
2822
2814
|
//#region src/components/vsn-navigation.ts
|
|
2823
2815
|
var $ = class extends e {
|
|
2824
2816
|
constructor(...e) {
|
|
2825
2817
|
super(...e), this.lang = "en", this.showHelp = !1, this.feedback = null, this.showNotification = !1, this.notificationActive = !1, this._currentItem = "", this._sideBarOpen = !1, this._resolvedModules = [], this._modulesLoading = !1, this._modulesLoadToken = 0, this._restoreFocusToToggle = !1, this._onShortcut = (e) => {
|
|
2826
|
-
!
|
|
2818
|
+
!Pe(e) || e.key.toLowerCase() !== "k" || (e.preventDefault(), this._openAndFocusSearch());
|
|
2827
2819
|
}, this._onDocEscape = (e) => {
|
|
2828
2820
|
if (e.key !== "Escape" || !this._sideBarOpen) return;
|
|
2829
2821
|
let t = document.activeElement;
|
|
@@ -2952,15 +2944,15 @@ var $ = class extends e {
|
|
|
2952
2944
|
`;
|
|
2953
2945
|
}
|
|
2954
2946
|
};
|
|
2955
|
-
|
|
2947
|
+
N([s()], $.prototype, "lang", void 0), N([s({ attribute: !1 })], $.prototype, "tree", void 0), N([s({ attribute: !1 })], $.prototype, "modules", void 0), N([s({ attribute: !1 })], $.prototype, "auth", void 0), N([s({ attribute: "landing-page-url" })], $.prototype, "landingPageUrl", void 0), N([s({
|
|
2956
2948
|
type: Boolean,
|
|
2957
2949
|
attribute: "show-help"
|
|
2958
|
-
})], $.prototype, "showHelp", void 0),
|
|
2950
|
+
})], $.prototype, "showHelp", void 0), N([s({ attribute: "help-url" })], $.prototype, "helpUrl", void 0), N([s({ attribute: !1 })], $.prototype, "feedback", void 0), N([s({
|
|
2959
2951
|
type: Boolean,
|
|
2960
2952
|
attribute: "show-notification"
|
|
2961
|
-
})], $.prototype, "showNotification", void 0),
|
|
2953
|
+
})], $.prototype, "showNotification", void 0), N([s({
|
|
2962
2954
|
type: Boolean,
|
|
2963
2955
|
attribute: "notification-active"
|
|
2964
|
-
})], $.prototype, "notificationActive", void 0),
|
|
2956
|
+
})], $.prototype, "notificationActive", void 0), N([l()], $.prototype, "_currentItem", void 0), N([l()], $.prototype, "_sideBarOpen", void 0), N([l()], $.prototype, "_resolvedModules", void 0), N([l()], $.prototype, "_modulesLoading", void 0), $ = N([o("vsn-navigation")], $);
|
|
2965
2957
|
//#endregion
|
|
2966
|
-
export {
|
|
2958
|
+
export { v as SearchError, $ as VSNNavigation, g as isTreeLeaf, _ as isTreeParent };
|