@visma-swno/vsn-navigation 1.2.0-beta.20 → 1.2.0-beta.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -196,7 +196,7 @@ 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
- }, de = ie("activeId"), fe = "lit-localize-status", y = (e, ...t) => ({
199
+ }, de = ie("activeId"), fe = ie(Symbol("focus-manager")), y = "lit-localize-status", b = (e, ...t) => ({
200
200
  strTag: !0,
201
201
  strings: e,
202
202
  values: t
@@ -204,10 +204,10 @@ var v = class e extends Error {
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
- }, he = ((e) => pe(e) ? me(e.strings, e.values) : e), b = he, ge = !1;
207
+ }, he = ((e) => pe(e) ? me(e.strings, e.values) : e), x = he, ge = !1;
208
208
  function _e(e) {
209
209
  if (ge) throw Error("lit-localize can only be configured once");
210
- b = e, ge = !0;
210
+ x = e, ge = !0;
211
211
  }
212
212
  //#endregion
213
213
  //#region node_modules/@lit/localize/internal/localized-controller.js
@@ -218,12 +218,12 @@ var ve = class {
218
218
  }, this.host = e;
219
219
  }
220
220
  hostConnected() {
221
- window.addEventListener(fe, this.__litLocalizeEventHandler);
221
+ window.addEventListener(y, this.__litLocalizeEventHandler);
222
222
  }
223
223
  hostDisconnected() {
224
- window.removeEventListener(fe, this.__litLocalizeEventHandler);
224
+ window.removeEventListener(y, this.__litLocalizeEventHandler);
225
225
  }
226
- }, ye = (e) => e.addController(new ve(e)), x = () => (e, t) => (e.addInitializer(ye), e), be = class {
226
+ }, ye = (e) => e.addController(new ve(e)), S = () => (e, t) => (e.addInitializer(ye), e), be = class {
227
227
  constructor() {
228
228
  this.settled = !1, this.promise = new Promise((e, t) => {
229
229
  this._resolve = e, this._reject = t;
@@ -235,12 +235,12 @@ var ve = class {
235
235
  reject(e) {
236
236
  this.settled = !0, this._reject(e);
237
237
  }
238
- }, S = [];
239
- for (let e = 0; e < 256; e++) S[e] = (e >> 4 & 15).toString(16) + (e & 15).toString(16);
238
+ }, C = [];
239
+ for (let e = 0; e < 256; e++) C[e] = (e >> 4 & 15).toString(16) + (e & 15).toString(16);
240
240
  function xe(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 S[c >> 8] + S[c & 255] + S[o >> 8] + S[o & 255] + S[i >> 8] + S[i & 255] + S[n >> 8] + S[n & 255];
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
245
  var Se = "h", Ce = "s";
246
246
  function we(e, t) {
@@ -272,40 +272,40 @@ function Oe(e) {
272
272
  }
273
273
  //#endregion
274
274
  //#region node_modules/@lit/localize/init/runtime.js
275
- function C(e) {
276
- window.dispatchEvent(new CustomEvent(fe, { detail: e }));
275
+ function w(e) {
276
+ window.dispatchEvent(new CustomEvent(y, { detail: e }));
277
277
  }
278
- var w = "", T, ke, E, D, Ae, O = new be();
278
+ var T = "", E, ke, D, Ae, je, O = new be();
279
279
  O.resolve();
280
- var k = 0, je = (e) => (_e(((e, t) => De(Ae, e, t))), w = ke = e.sourceLocale, E = new Set(e.targetLocales), E.add(e.sourceLocale), D = e.loadLocale, {
281
- getLocale: Me,
282
- setLocale: Ne
283
- }), Me = () => w, Ne = (e) => {
284
- if (e === (T ?? w)) return O.promise;
285
- if (!E || !D) throw Error("Internal error");
286
- if (!E.has(e)) throw Error("Invalid locale code");
280
+ var k = 0, Me = (e) => (_e(((e, t) => De(je, e, t))), T = ke = e.sourceLocale, D = new Set(e.targetLocales), D.add(e.sourceLocale), Ae = e.loadLocale, {
281
+ getLocale: Ne,
282
+ setLocale: Pe
283
+ }), Ne = () => T, Pe = (e) => {
284
+ if (e === (E ?? T)) return O.promise;
285
+ if (!D || !Ae) throw Error("Internal error");
286
+ if (!D.has(e)) throw Error("Invalid locale code");
287
287
  k++;
288
288
  let t = k;
289
- return T = e, O.settled && (O = new be()), C({
289
+ return E = e, O.settled && (O = new be()), w({
290
290
  status: "loading",
291
291
  loadingLocale: e
292
- }), (e === ke ? Promise.resolve({ templates: void 0 }) : D(e)).then((n) => {
293
- k === t && (w = e, T = void 0, Ae = n.templates, C({
292
+ }), (e === ke ? Promise.resolve({ templates: void 0 }) : Ae(e)).then((n) => {
293
+ k === t && (T = e, E = void 0, je = n.templates, w({
294
294
  status: "ready",
295
295
  readyLocale: e
296
296
  }), O.resolve());
297
297
  }, (n) => {
298
- k === t && (C({
298
+ k === t && (w({
299
299
  status: "error",
300
300
  errorLocale: e,
301
301
  errorMessage: n.toString()
302
302
  }), O.reject(n));
303
303
  }), O.promise;
304
- }, Pe = () => {
304
+ }, Fe = () => {
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
- }, Fe = (e) => !e.shiftKey && !e.altKey && (Pe() ? e.metaKey && !e.ctrlKey : e.ctrlKey && !e.metaKey), A = (e) => e.shiftKey || e.altKey || e.ctrlKey || e.metaKey, j = (e) => !A(e), Ie = () => b("Choose a service"), Le = () => b("Search"), Re = () => Pe() ? "Cmd+K" : "CTRL+K", ze = (e) => b(y`Type at least ${e} characters to search`), Be = () => b("Menu items"), Ve = () => b("Load more"), He = () => b("VSN"), Ue = "survicate-sdk", We = "ui-components-feedback", Ge = (e) => `https://survey.survicate.com/workspaces/${e}/web_surveys.js`;
308
+ }, Ie = (e) => !e.shiftKey && !e.altKey && (Fe() ? e.metaKey && !e.ctrlKey : e.ctrlKey && !e.metaKey), A = (e) => e.shiftKey || e.altKey || e.ctrlKey || e.metaKey, j = (e) => !A(e), Le = () => x("Choose a service"), Re = () => x("Search"), ze = () => Fe() ? "Cmd+K" : "CTRL+K", Be = (e) => x(b`Type at least ${e} characters to search`), Ve = () => x("Menu items"), He = () => x("Load more"), Ue = () => x("VSN"), We = "survicate-sdk", Ge = "ui-components-feedback", Ke = (e) => `https://survey.survicate.com/workspaces/${e}/web_surveys.js`;
309
309
  //#endregion
310
310
  //#region src/shared/icons.ts
311
311
  function M(e, t = 24, r) {
@@ -323,23 +323,23 @@ function M(e, t = 24, r) {
323
323
  class=${r ?? ""}
324
324
  >${e}</svg>`;
325
325
  }
326
- var Ke = i``, qe = i`
326
+ var qe = i``, Je = i`
327
327
  <path d="M4 5h16"/>
328
328
  <path d="M4 12h16"/>
329
329
  <path d="M4 19h16"/>
330
- `, Je = i`
330
+ `, Ye = 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
- `, Ye = i`
335
+ `, Xe = 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
- `, Xe = i`
338
+ `, Ze = 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
- `, Ze = i`
342
+ `, Qe = 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 Qe = i`
353
+ var $e = 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
- `, $e = i`
356
+ `, et = 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
- `, et = i`
360
+ `, tt = 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 tt = i`
371
+ var nt = 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
- `, nt = i`
375
+ `, rt = 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,12 +381,12 @@ i`
381
381
  <circle cx="12" cy="12" r="10"/>
382
382
  <circle cx="12" cy="12" r="1"/>
383
383
  `;
384
- var rt = i`
384
+ var it = i`
385
385
  <path d="m7 15 5 5 5-5"/>
386
386
  <path d="m7 9 5-5 5 5"/>
387
- `, it = i`
388
- <path d="m18 15-6-6-6 6"/>
389
387
  `, at = i`
388
+ <path d="m18 15-6-6-6 6"/>
389
+ `, N = i`
390
390
  <path d="m6 9 6 6 6-6"/>
391
391
  `, ot = i`
392
392
  <circle cx="11" cy="11" r="8"/>
@@ -417,7 +417,7 @@ var lt = i`
417
417
  `;
418
418
  //#endregion
419
419
  //#region \0@oxc-project+runtime@0.127.0/helpers/decorate.js
420
- function N(e, t, n, r) {
420
+ function P(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,13 +425,23 @@ 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 P, F = class extends e {
428
+ var F, I = class extends e {
429
429
  static {
430
- P = this;
430
+ F = this;
431
431
  }
432
432
  static {
433
433
  this._idCounter = 0;
434
434
  }
435
+ static {
436
+ this.menuShortcuts = [
437
+ "ArrowRight",
438
+ "ArrowLeft",
439
+ "ArrowUp",
440
+ "ArrowDown",
441
+ "Enter",
442
+ " "
443
+ ];
444
+ }
435
445
  createRenderRoot() {
436
446
  return this;
437
447
  }
@@ -449,7 +459,23 @@ var P, F = class extends e {
449
459
  }
450
460
  }, this._onItemMouseLeave = () => {
451
461
  this._showTooltip = !1;
452
- }, this._tooltipId = `vsn-side-menu-item-tooltip-${P._idCounter++}`;
462
+ }, this._onKeyDown = (e) => {
463
+ let t = this.tree;
464
+ if (t !== void 0 && !(e.defaultPrevented || A(e))) {
465
+ if (F.menuShortcuts.includes(e.key) && (e.preventDefault(), e.stopPropagation()), e.key === "ArrowUp") {
466
+ this._focusManager?.focusPrev(this);
467
+ return;
468
+ }
469
+ if (e.key === "ArrowDown") {
470
+ this._focusManager?.focusNext(this);
471
+ return;
472
+ }
473
+ _(t) ? this.handleKeyForParent(e.key) : this.handleKeyForLeaf(e.key);
474
+ }
475
+ }, this._tooltipId = `vsn-side-menu-item-tooltip-${F._idCounter++}`;
476
+ }
477
+ focusSelf() {
478
+ this.querySelector("a.ga-side-navigation__item, div.ga-side-navigation__item[tabindex=\"0\"]")?.focus();
453
479
  }
454
480
  willUpdate(e) {
455
481
  let t = this.tree;
@@ -474,20 +500,46 @@ var P, F = class extends e {
474
500
  <div class="ga-tooltip ga-tooltip--right-center w-34 max-w-135">${this.tree?.label}</div>
475
501
  </div>
476
502
  <span class="ga-side-navigation__item-icon">
477
- ${e ? this._isExpanded ? M(at, 16) : M(lt, 16) : ""}
503
+ ${e ? this._isExpanded ? M(N, 16) : M(lt, 16) : ""}
478
504
  </span>
479
505
  <div class="ga-side-navigation__item-content">
480
506
  <div class="ga-side-navigation__item-label">${this.tree?.label}</div>
481
507
  </div>
482
508
  `;
483
509
  return e ? n`
484
- <div class="${f(r)}" aria-describedby="${this._tooltipId}" data-qa-id="${ee(t)}"
510
+ <div class="${f(r)}" tabindex="0" aria-describedby="${this._tooltipId}" data-qa-id="${ee(t)}"
485
511
  @click=${this._handleItemClick} @mouseenter=${this._onItemMouseEnter}
486
- @mouseleave=${this._onItemMouseLeave}>${i}
512
+ @mouseleave=${this._onItemMouseLeave} @keydown=${this._onKeyDown}>${i}
487
513
  </div>` : n`<a class="${f(r)}" aria-describedby="${this._tooltipId}"
488
514
  href="${this.tree && g(this.tree) ? this.tree.url : ""}" data-qa-id="${ee(t)}"
489
515
  @click=${this._handleItemClick} @mouseenter=${this._onItemMouseEnter}
490
- @mouseleave=${this._onItemMouseLeave}>${i}</a>`;
516
+ @mouseleave=${this._onItemMouseLeave} @keydown=${this._onKeyDown}>${i}</a>`;
517
+ }
518
+ handleKeyForLeaf(e) {
519
+ switch (e) {
520
+ case " ":
521
+ case "Enter":
522
+ this._isActive || this.dispatchEvent(new CustomEvent("vsn-menu-item-changed", {
523
+ bubbles: !0,
524
+ composed: !0,
525
+ detail: this.tree
526
+ }));
527
+ break;
528
+ }
529
+ }
530
+ handleKeyForParent(e) {
531
+ switch (e) {
532
+ case " ":
533
+ case "Enter":
534
+ this._isExpanded = !this._isExpanded;
535
+ break;
536
+ case "ArrowRight":
537
+ this._isExpanded = !0;
538
+ break;
539
+ case "ArrowLeft":
540
+ this._isExpanded = !1;
541
+ break;
542
+ }
491
543
  }
492
544
  menuItem(e, t) {
493
545
  return n`
@@ -503,30 +555,37 @@ var P, F = class extends e {
503
555
  }
504
556
  _handleItemClick(e) {
505
557
  let t = this.tree;
506
- if (t === void 0) return;
507
- if (_(t)) {
508
- this._isExpanded = !this._isExpanded, e.preventDefault(), e.stopPropagation();
509
- return;
558
+ if (t !== void 0) {
559
+ if (_(t)) {
560
+ this._isExpanded = !this._isExpanded, e.preventDefault(), e.stopPropagation();
561
+ return;
562
+ }
563
+ e.button !== 0 || A(e) || (e.preventDefault(), e.stopPropagation(), this._isActive || this.dispatchEvent(new CustomEvent("vsn-menu-item-changed", {
564
+ bubbles: !0,
565
+ composed: !0,
566
+ detail: t
567
+ })));
510
568
  }
511
- if (e.button !== 0 || A(e)) return;
512
- e.preventDefault(), e.stopPropagation();
513
- let n = new CustomEvent("vsn-menu-item-changed", {
514
- bubbles: !0,
515
- composed: !0,
516
- detail: t
517
- });
518
- this.dispatchEvent(n);
519
569
  }
520
570
  };
521
- N([s({ attribute: !1 })], F.prototype, "tree", void 0), N([s({ type: Number })], F.prototype, "level", void 0), N([ue({
571
+ P([s({ attribute: !1 })], I.prototype, "tree", void 0), P([s({ type: Number })], I.prototype, "level", void 0), P([ue({
522
572
  context: de,
523
573
  subscribe: !0
524
- }), 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);
574
+ }), l()], I.prototype, "_currentActiveId", void 0), P([l()], I.prototype, "_isActive", void 0), P([l()], I.prototype, "_isExpanded", void 0), P([l()], I.prototype, "_showTooltip", void 0), P([l()], I.prototype, "_tooltipPos", void 0), P([c(".ga-side-navigation__item-label")], I.prototype, "_labelEl", void 0), P([ue({ context: fe })], I.prototype, "_focusManager", void 0), I = F = P([o("vsn-menu-item")], I);
525
575
  //#endregion
526
576
  //#region src/components/vsn-side-bar/vsn-menu/vsn-menu.ts
527
- var I = class extends e {
577
+ var L = class extends e {
528
578
  constructor(...e) {
529
- super(...e), this.items = [], this._currentActiveId = "", this.currentItem = "";
579
+ super(...e), this.items = [], this._currentActiveId = "", this.currentItem = "", this._focusManager = {
580
+ focusPrev: (e) => {
581
+ let t = Array.from(this.querySelectorAll("vsn-menu-item"));
582
+ t[t.indexOf(e) - 1]?.focusSelf();
583
+ },
584
+ focusNext: (e) => {
585
+ let t = Array.from(this.querySelectorAll("vsn-menu-item"));
586
+ t[t.indexOf(e) + 1]?.focusSelf();
587
+ }
588
+ };
530
589
  }
531
590
  createRenderRoot() {
532
591
  return this;
@@ -551,10 +610,10 @@ var I = class extends e {
551
610
  <vsn-menu-item .tree=${e}></vsn-menu-item>`;
552
611
  }
553
612
  };
554
- 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);
613
+ P([s({ attribute: !1 })], L.prototype, "items", void 0), P([le({ context: de }), l()], L.prototype, "_currentActiveId", void 0), P([s()], L.prototype, "currentItem", void 0), P([le({ context: fe })], L.prototype, "_focusManager", void 0), L = P([o("vsn-menu")], L);
555
614
  //#endregion
556
615
  //#region src/components/vsn-side-bar/vsn-menu/vsn-menu-button.ts
557
- var L = class extends e {
616
+ var R = class extends e {
558
617
  constructor(...e) {
559
618
  super(...e), this.label = "", this.closeOnClick = !1, this._onKeydown = (e) => {
560
619
  e.defaultPrevented || j(e) && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), this.click());
@@ -667,10 +726,10 @@ var L = class extends e {
667
726
  `;
668
727
  }
669
728
  };
670
- N([s()], L.prototype, "label", void 0), N([s({
729
+ P([s()], R.prototype, "label", void 0), P([s({
671
730
  type: Boolean,
672
731
  attribute: "close-on-click"
673
- })], L.prototype, "closeOnClick", void 0), L = N([o("vsn-menu-button")], L);
732
+ })], R.prototype, "closeOnClick", void 0), R = P([o("vsn-menu-button")], R);
674
733
  //#endregion
675
734
  //#region src/components/vsn-side-bar/vsn-menu/vsn-menu-separator.ts
676
735
  var ut = class extends e {
@@ -697,7 +756,7 @@ var ut = class extends e {
697
756
  return n`<div class="line"></div>`;
698
757
  }
699
758
  };
700
- ut = N([o("vsn-menu-separator")], ut);
759
+ ut = P([o("vsn-menu-separator")], ut);
701
760
  //#endregion
702
761
  //#region src/components/vsn-side-bar/vsn-footer/vsn-footer.keyboard.ts
703
762
  var dt = class {
@@ -758,7 +817,7 @@ function mt(e, t, n, r) {
758
817
  }
759
818
  //#endregion
760
819
  //#region src/components/controllers/focus-trapping-controller.ts
761
- var R = class {
820
+ var z = class {
762
821
  constructor(e, t, n = void 0) {
763
822
  this._rootElement = null, this._onKeyDown = (e) => {
764
823
  if (e.defaultPrevented || e.key !== "Tab" || e.ctrlKey || e.altKey || e.metaKey || !this._appliesCallback() || this._rootElement == null) return;
@@ -778,12 +837,12 @@ var R = class {
778
837
  this._rootElement == null && this._rootSelector && (this._rootElement = this._host.renderRoot.querySelector(this._rootSelector), this._rootElement != null && this._rootElement.addEventListener("keydown", this._onKeyDown));
779
838
  }
780
839
  }, ht = {
781
- profile: et,
782
- logout: tt
840
+ profile: tt,
841
+ logout: nt
783
842
  }, gt = () => ({
784
- profile: b("My profile"),
785
- logout: b("Log out")
786
- }), z = class extends e {
843
+ profile: x("My profile"),
844
+ logout: x("Log out")
845
+ }), B = class extends e {
787
846
  createRenderRoot() {
788
847
  return this;
789
848
  }
@@ -801,7 +860,7 @@ var R = class {
801
860
  constructor() {
802
861
  super(), this.expanded = !1, this._avatarFailed = !1, this._keyboard = new dt(this), new ft(this, [".ga-side-navigation__footer-dropdown", ".ga-side-navigation__user"], () => {
803
862
  this.expanded = !1;
804
- }), new R(this, () => this.expanded);
863
+ }), new z(this, () => this.expanded);
805
864
  }
806
865
  willUpdate(e) {
807
866
  (e.has("user") || e.has("profilePictureBaseUrl")) && (this._avatarFailed = !1);
@@ -836,7 +895,7 @@ var R = class {
836
895
  </div>
837
896
 
838
897
  <span class="ga-side-navigation__user-action">
839
- ${this.expanded ? M(it, 16) : M(rt, 16)}
898
+ ${this.expanded ? M(at, 16) : M(it, 16)}
840
899
  </span>
841
900
 
842
901
  </div>
@@ -857,7 +916,7 @@ var R = class {
857
916
  </span>
858
917
  ${e.external ? n`
859
918
  <span class="ga-side-navigation__footer-dropdown-trail">
860
- ${M(nt, 16)}
919
+ ${M(rt, 16)}
861
920
  </span>
862
921
  ` : r}
863
922
  `;
@@ -906,14 +965,14 @@ var R = class {
906
965
  @error=${() => {
907
966
  this._avatarFailed = !0;
908
967
  }}/>` : n`<span class="ga-side-navigation__user-avatar vsn-side-navigation__user-avatar--icon">
909
- ${M(et, 24)}
968
+ ${M(tt, 24)}
910
969
  </span>`;
911
970
  }
912
971
  };
913
- N([s({ attribute: !1 })], z.prototype, "user", void 0), N([s()], z.prototype, "profilePictureBaseUrl", void 0), N([s()], z.prototype, "myProfileUrl", void 0), N([s({
972
+ P([s({ attribute: !1 })], B.prototype, "user", void 0), P([s()], B.prototype, "profilePictureBaseUrl", void 0), P([s()], B.prototype, "myProfileUrl", void 0), P([s({
914
973
  type: Boolean,
915
974
  reflect: !0
916
- })], z.prototype, "expanded", void 0), N([l()], z.prototype, "_avatarFailed", void 0), z = N([x(), o("vsn-footer")], z);
975
+ })], B.prototype, "expanded", void 0), P([l()], B.prototype, "_avatarFailed", void 0), B = P([S(), o("vsn-footer")], B);
917
976
  //#endregion
918
977
  //#region src/components/vsn-side-bar/vsn-header/vsn-header.keyboard.ts
919
978
  var _t = class {
@@ -923,7 +982,7 @@ var _t = class {
923
982
  }, this.host = e, e.addController(this);
924
983
  }
925
984
  hostConnected() {}
926
- }, B = class extends e {
985
+ }, V = class extends e {
927
986
  constructor(...e) {
928
987
  super(...e), this.items = [], this.loading = !1, this.maxHeight = 0, this._handleKeydown = (e) => {
929
988
  if (e.defaultPrevented) return;
@@ -958,16 +1017,16 @@ var _t = class {
958
1017
  <div class="ga-side-navigation__switcher-dropdown vsn-switcher-dropdown--loading"
959
1018
  role="status"
960
1019
  aria-busy="true"
961
- aria-label=${b("Loading modules")}>
1020
+ aria-label=${x("Loading modules")}>
962
1021
  <span class="vsn-spinner"></span>
963
1022
  </div>
964
1023
  ` : n`
965
1024
  <div class="ga-side-navigation__switcher-dropdown ga-scroll"
966
1025
  role="menu"
967
1026
  style=${`max-height: ${Math.max(0, this.maxHeight)}px`}
968
- aria-label=${Ie()}
1027
+ aria-label=${Le()}
969
1028
  @keydown=${this._handleKeydown}>
970
- <span class="ga-side-navigation__switcher-dropdown-header">${Ie()}</span>
1029
+ <span class="ga-side-navigation__switcher-dropdown-header">${Le()}</span>
971
1030
  ${this.items.map((e) => n`
972
1031
  <a class="ga-side-navigation__switcher-dropdown-item"
973
1032
  href=${e.url ?? ""}
@@ -980,10 +1039,10 @@ var _t = class {
980
1039
  `;
981
1040
  }
982
1041
  };
983
- N([s({ attribute: !1 })], B.prototype, "items", void 0), N([s({ type: Boolean })], B.prototype, "loading", void 0), N([s({ attribute: !1 })], B.prototype, "maxHeight", void 0), B = N([x(), o("vsn-switcher-menu")], B);
1042
+ P([s({ attribute: !1 })], V.prototype, "items", void 0), P([s({ type: Boolean })], V.prototype, "loading", void 0), P([s({ attribute: !1 })], V.prototype, "maxHeight", void 0), V = P([S(), o("vsn-switcher-menu")], V);
984
1043
  //#endregion
985
1044
  //#region src/components/vsn-side-bar/vsn-search/vsn-search.ts
986
- var V = class extends e {
1045
+ var H = class extends e {
987
1046
  constructor(...e) {
988
1047
  super(...e), this.shortcut = "", this.value = "", this.loading = !1, this._scheduleAutoSearch = () => {
989
1048
  this._cancelDebounce(), this._debounceTimer = window.setTimeout(this._emitSearch, 200);
@@ -1035,20 +1094,20 @@ var V = class extends e {
1035
1094
  <button
1036
1095
  type="button"
1037
1096
  class="vsn-search__trigger"
1038
- aria-label=${b("Search")}
1097
+ aria-label=${x("Search")}
1039
1098
  ?disabled=${!this._canSearch}
1040
1099
  @click=${this._emitSearch}>
1041
1100
  ${M(ot, 24)}
1042
1101
  </button>
1043
1102
  <input type="search"
1044
- .placeholder=${Le()}
1103
+ .placeholder=${Re()}
1045
1104
  .value=${this.value}
1046
1105
  @input=${this._handleInput}
1047
1106
  @keydown=${this._handleEnter}/>
1048
1107
  ${this._trailingSlot()}
1049
1108
  </div>
1050
1109
  ${u(e, () => n`
1051
- <div class="vsn-search__helper">${ze(3)}</div>`)}
1110
+ <div class="vsn-search__helper">${Be(3)}</div>`)}
1052
1111
  `;
1053
1112
  }
1054
1113
  _trailingSlot() {
@@ -1060,11 +1119,11 @@ var V = class extends e {
1060
1119
  `;
1061
1120
  }
1062
1121
  _spinner() {
1063
- return n`<span class="vsn-spinner" role="status" aria-label=${b("Searching")}></span>`;
1122
+ return n`<span class="vsn-spinner" role="status" aria-label=${x("Searching")}></span>`;
1064
1123
  }
1065
1124
  _clearButton() {
1066
1125
  return n`
1067
- <button class="vsn-search__clear" aria-label=${b("Clear search")}
1126
+ <button class="vsn-search__clear" aria-label=${x("Clear search")}
1068
1127
  @click=${this._emitSearchCleared}>
1069
1128
  ${M(st, 16)}
1070
1129
  </button>
@@ -1074,17 +1133,17 @@ var V = class extends e {
1074
1133
  return n`<kbd class="ga-side-navigation__search-shortcut">${this.shortcut}</kbd>`;
1075
1134
  }
1076
1135
  };
1077
- N([s()], V.prototype, "shortcut", void 0), N([s()], V.prototype, "value", void 0), N([s({ type: Boolean })], V.prototype, "loading", void 0), V = N([x(), o("vsn-search")], V);
1136
+ P([s()], H.prototype, "shortcut", void 0), P([s()], H.prototype, "value", void 0), P([s({ type: Boolean })], H.prototype, "loading", void 0), H = P([S(), o("vsn-search")], H);
1078
1137
  //#endregion
1079
1138
  //#region src/components/vsn-side-bar/vsn-header/vsn-header.ts
1080
- var H = class extends e {
1139
+ var U = class extends e {
1081
1140
  createRenderRoot() {
1082
1141
  return this;
1083
1142
  }
1084
1143
  constructor() {
1085
1144
  super(), this.modules = [], this.modulesLoading = !1, this.hasMenu = !1, this.moduleSwitcherMaxHeight = 0, this.searchValue = "", this.searchLoading = !1, this.expanded = !1, this._keyboard = new _t(this), new ft(this, [".ga-side-navigation__switcher-dropdown", ".ga-side-navigation__switcher"], () => {
1086
1145
  this.canClose && (this.expanded = !1);
1087
- }), new R(this, () => this.expanded, ".vsn-switcher-anchor");
1146
+ }), new z(this, () => this.expanded, ".vsn-switcher-anchor");
1088
1147
  }
1089
1148
  focus() {
1090
1149
  let e = this.querySelector("vsn-search");
@@ -1109,7 +1168,7 @@ var H = class extends e {
1109
1168
  title="">
1110
1169
  <span class="ga-side-navigation__switcher-title">${e.title}</span>
1111
1170
  <span class="ga-side-navigation__switcher-action">
1112
- ${this.canClose ? this.expanded ? M(at, 16) : M(rt, 16) : M(Ke, 16)}
1171
+ ${this.canClose ? this.expanded ? M(N, 16) : M(it, 16) : M(qe, 16)}
1113
1172
  </span>
1114
1173
  </div>
1115
1174
 
@@ -1124,7 +1183,7 @@ var H = class extends e {
1124
1183
 
1125
1184
  ${u(this.search?.enabled, () => n`
1126
1185
  <vsn-search
1127
- .shortcut=${Re()}
1186
+ .shortcut=${ze()}
1128
1187
  .value=${this.searchValue}
1129
1188
  .loading=${this.searchLoading}>
1130
1189
  </vsn-search>`)}
@@ -1134,7 +1193,7 @@ var H = class extends e {
1134
1193
  get _state() {
1135
1194
  if (this.modulesLoading) return {
1136
1195
  kind: "loading",
1137
- title: this.activeModuleLabel || He()
1196
+ title: this.activeModuleLabel || Ue()
1138
1197
  };
1139
1198
  let e = this.modules.find((e) => e.id === this.activeModuleId);
1140
1199
  return e ? {
@@ -1143,7 +1202,7 @@ var H = class extends e {
1143
1202
  available: this.modules.filter((t) => t.id !== e.id)
1144
1203
  } : {
1145
1204
  kind: "no-active",
1146
- title: He(),
1205
+ title: Ue(),
1147
1206
  available: this.modules
1148
1207
  };
1149
1208
  }
@@ -1181,10 +1240,10 @@ var H = class extends e {
1181
1240
  }), !0);
1182
1241
  }
1183
1242
  };
1184
- N([s({ attribute: !1 })], H.prototype, "modules", void 0), N([s()], H.prototype, "activeModuleId", void 0), N([s()], H.prototype, "activeModuleLabel", void 0), N([s({ type: Boolean })], H.prototype, "modulesLoading", void 0), N([s({ type: Boolean })], H.prototype, "hasMenu", void 0), N([s({ attribute: !1 })], H.prototype, "moduleSwitcherMaxHeight", void 0), N([s({ attribute: !1 })], H.prototype, "search", void 0), N([s()], H.prototype, "searchValue", void 0), N([s({ type: Boolean })], H.prototype, "searchLoading", void 0), N([s({
1243
+ P([s({ attribute: !1 })], U.prototype, "modules", void 0), P([s()], U.prototype, "activeModuleId", void 0), P([s()], U.prototype, "activeModuleLabel", void 0), P([s({ type: Boolean })], U.prototype, "modulesLoading", void 0), P([s({ type: Boolean })], U.prototype, "hasMenu", void 0), P([s({ attribute: !1 })], U.prototype, "moduleSwitcherMaxHeight", void 0), P([s({ attribute: !1 })], U.prototype, "search", void 0), P([s()], U.prototype, "searchValue", void 0), P([s({ type: Boolean })], U.prototype, "searchLoading", void 0), P([s({
1185
1244
  type: Boolean,
1186
1245
  reflect: !0
1187
- })], H.prototype, "expanded", void 0), H = N([x(), o("vsn-header")], H);
1246
+ })], U.prototype, "expanded", void 0), U = P([S(), o("vsn-header")], U);
1188
1247
  //#endregion
1189
1248
  //#region src/components/vsn-side-bar/vsn-search-results/vsn-search-results.keyboard.ts
1190
1249
  var vt = class {
@@ -1201,9 +1260,9 @@ var vt = class {
1201
1260
  }, this.host = e, e.addController(this);
1202
1261
  }
1203
1262
  hostConnected() {}
1204
- }, U, W = class extends e {
1263
+ }, yt, W = class extends e {
1205
1264
  static {
1206
- U = this;
1265
+ yt = this;
1207
1266
  }
1208
1267
  createRenderRoot() {
1209
1268
  return this;
@@ -1225,7 +1284,7 @@ var vt = class {
1225
1284
  }
1226
1285
  }, this._onItemMouseLeave = () => {
1227
1286
  this._showTooltip = !1;
1228
- }, this._tooltipId = `vsn-search-result-item-tooltip-${U._idCounter++}`;
1287
+ }, this._tooltipId = `vsn-search-result-item-tooltip-${yt._idCounter++}`;
1229
1288
  }
1230
1289
  render() {
1231
1290
  let e = this.item;
@@ -1259,7 +1318,7 @@ var vt = class {
1259
1318
  }));
1260
1319
  }
1261
1320
  };
1262
- N([s({ attribute: !1 })], W.prototype, "item", void 0), N([l()], W.prototype, "_showTooltip", void 0), N([l()], W.prototype, "_tooltipPos", void 0), N([c(".ga-side-navigation__search-results-item-label")], W.prototype, "_labelEl", void 0), W = U = N([o("vsn-search-result-item")], W);
1321
+ P([s({ attribute: !1 })], W.prototype, "item", void 0), P([l()], W.prototype, "_showTooltip", void 0), P([l()], W.prototype, "_tooltipPos", void 0), P([c(".ga-side-navigation__search-results-item-label")], W.prototype, "_labelEl", void 0), W = yt = P([o("vsn-search-result-item")], W);
1263
1322
  //#endregion
1264
1323
  //#region src/components/vsn-side-bar/vsn-search-results/vsn-search-results.ts
1265
1324
  var G = class extends e {
@@ -1275,10 +1334,10 @@ var G = class extends e {
1275
1334
  _emptyState() {
1276
1335
  return n`
1277
1336
  <div class="vsn-search-results__empty" role="status" aria-live="polite">
1278
- <div class="vsn-search-results__empty-title">${b("No results found")}</div>
1279
- <div class="vsn-search-results__empty-message">${b("We couldn't find any matches.")}</div>
1280
- <div class="vsn-search-results__empty-hint">${b("Try different keywords or check spelling.")}</div>
1281
- <div class="vsn-search-results__empty-support">${b("Need help? Contact support.")}</div>
1337
+ <div class="vsn-search-results__empty-title">${x("No results found")}</div>
1338
+ <div class="vsn-search-results__empty-message">${x("We couldn't find any matches.")}</div>
1339
+ <div class="vsn-search-results__empty-hint">${x("Try different keywords or check spelling.")}</div>
1340
+ <div class="vsn-search-results__empty-support">${x("Need help? Contact support.")}</div>
1282
1341
  </div>
1283
1342
  `;
1284
1343
  }
@@ -1295,7 +1354,7 @@ var G = class extends e {
1295
1354
  <div class="ga-side-navigation__body h-full ga-scroll"
1296
1355
  @keydown=${this._keyboard.onResultsKeydown}>
1297
1356
  <div class="ga-side-navigation__search-results-title">
1298
- ${b(t === 1 ? y`${t} result` : y`${t} results`)}
1357
+ ${x(t === 1 ? b`${t} result` : b`${t} results`)}
1299
1358
  </div>
1300
1359
  ${e.map((e) => n`
1301
1360
  <vsn-search-result-item .item=${e}></vsn-search-result-item>
@@ -1306,7 +1365,7 @@ var G = class extends e {
1306
1365
  class="vsn-search-results__load-more"
1307
1366
  ?disabled=${this.loadingMore}
1308
1367
  @click=${this._onLoadMore}>
1309
- ${Ve()}
1368
+ ${He()}
1310
1369
  </button>
1311
1370
  `)}
1312
1371
  </div>
@@ -1319,16 +1378,16 @@ var G = class extends e {
1319
1378
  }));
1320
1379
  }
1321
1380
  };
1322
- N([s({ attribute: !1 })], G.prototype, "results", void 0), N([s()], G.prototype, "errorMessage", void 0), N([s()], G.prototype, "nextCursor", void 0), N([s({ type: Boolean })], G.prototype, "loadingMore", void 0), G = N([x(), o("vsn-search-results")], G);
1381
+ P([s({ attribute: !1 })], G.prototype, "results", void 0), P([s()], G.prototype, "errorMessage", void 0), P([s()], G.prototype, "nextCursor", void 0), P([s({ type: Boolean })], G.prototype, "loadingMore", void 0), G = P([S(), o("vsn-search-results")], G);
1323
1382
  //#endregion
1324
1383
  //#region src/components/vsn-side-bar/vsn-template/vsn-template.ts
1325
- var yt = [
1384
+ var bt = [
1326
1385
  160,
1327
1386
  96,
1328
1387
  144,
1329
1388
  192,
1330
1389
  160
1331
- ], bt = class extends e {
1390
+ ], xt = class extends e {
1332
1391
  createRenderRoot() {
1333
1392
  return this;
1334
1393
  }
@@ -1337,8 +1396,8 @@ var yt = [
1337
1396
  <div class="ga-side-navigation__body h-full"
1338
1397
  role="status"
1339
1398
  aria-busy="true"
1340
- aria-label=${b("Loading results")}>
1341
- ${yt.map((e) => n`
1399
+ aria-label=${x("Loading results")}>
1400
+ ${bt.map((e) => n`
1342
1401
  <div class="vsn-template__row">
1343
1402
  <div class="vsn-template__bar" style="width: ${e}px"></div>
1344
1403
  </div>
@@ -1347,10 +1406,10 @@ var yt = [
1347
1406
  `;
1348
1407
  }
1349
1408
  };
1350
- bt = N([x(), o("vsn-template")], bt);
1409
+ xt = P([S(), o("vsn-template")], xt);
1351
1410
  //#endregion
1352
1411
  //#region src/components/vsn-side-bar/vsn-error-state/vsn-error-state.ts
1353
- var xt = class extends e {
1412
+ var St = class extends e {
1354
1413
  createRenderRoot() {
1355
1414
  return this;
1356
1415
  }
@@ -1358,23 +1417,23 @@ var xt = class extends e {
1358
1417
  return n`
1359
1418
  <div class="vsn-error-state" role="alert" aria-live="assertive">
1360
1419
  <div class="vsn-error-state__icon">${M(ct, 24)}</div>
1361
- <div class="vsn-error-state__title">${b("Loading error")}</div>
1362
- <div class="vsn-error-state__message">${b("We're unable to load the menu.")}</div>
1363
- <div class="vsn-error-state__hint">${b("Please check your internet connection and try again.")}</div>
1364
- <div class="vsn-error-state__support">${b("If the issue persists, reload the page or contact support.")}</div>
1420
+ <div class="vsn-error-state__title">${x("Loading error")}</div>
1421
+ <div class="vsn-error-state__message">${x("We're unable to load the menu.")}</div>
1422
+ <div class="vsn-error-state__hint">${x("Please check your internet connection and try again.")}</div>
1423
+ <div class="vsn-error-state__support">${x("If the issue persists, reload the page or contact support.")}</div>
1365
1424
  </div>
1366
1425
  `;
1367
1426
  }
1368
1427
  };
1369
- xt = N([x(), o("vsn-error-state")], xt);
1428
+ St = P([S(), o("vsn-error-state")], St);
1370
1429
  //#endregion
1371
1430
  //#region src/components/vsn-side-bar/vsn-search-scopes/vsn-search-scopes.ts
1372
- var K, q = class extends e {
1431
+ var Ct, K = class extends e {
1373
1432
  static {
1374
- K = this;
1433
+ Ct = this;
1375
1434
  }
1376
1435
  constructor(...e) {
1377
- super(...e), this.scopes = [], this.selectedScopeId = "", this._name = `vsn-search-scope-${++K._counter}`;
1436
+ super(...e), this.scopes = [], this.selectedScopeId = "", this._name = `vsn-search-scope-${++Ct._counter}`;
1378
1437
  }
1379
1438
  createRenderRoot() {
1380
1439
  return this;
@@ -1384,7 +1443,7 @@ var K, q = class extends e {
1384
1443
  }
1385
1444
  render() {
1386
1445
  return this.scopes.length <= 1 ? n`` : n`
1387
- <div class="ga-radio-group" role="radiogroup" aria-label=${b("Search scope")}>
1446
+ <div class="ga-radio-group" role="radiogroup" aria-label=${x("Search scope")}>
1388
1447
  ${this.scopes.map((e) => this._renderScope(e))}
1389
1448
  </div>
1390
1449
  `;
@@ -1413,25 +1472,25 @@ var K, q = class extends e {
1413
1472
  }));
1414
1473
  }
1415
1474
  };
1416
- N([s({ attribute: !1 })], q.prototype, "scopes", void 0), N([s()], q.prototype, "selectedScopeId", void 0), q = K = N([x(), o("vsn-search-scopes")], q);
1475
+ P([s({ attribute: !1 })], K.prototype, "scopes", void 0), P([s()], K.prototype, "selectedScopeId", void 0), K = Ct = P([S(), o("vsn-search-scopes")], K);
1417
1476
  //#endregion
1418
1477
  //#region src/shared/lang/locale-codes.ts
1419
- var St = "en", Ct = [
1478
+ var wt = "en", Tt = [
1420
1479
  "da",
1421
1480
  "fi",
1422
1481
  "nl",
1423
1482
  "no",
1424
1483
  "sv"
1425
- ], wt = /* @__PURE__ */ p({ templates: () => Tt }), Tt = {
1484
+ ], Et = /* @__PURE__ */ p({ templates: () => Dt }), Dt = {
1426
1485
  s09a45db408570a7a: "Min profil",
1427
1486
  s119f9875b7d4cdfc: "Har du brug for hjælp? Kontakt support.",
1428
- s1228605ee65ddefa: y`${0} resultat`,
1429
- s2bb33291ef8ae3d4: y`Indtast mindst ${0} tegn for at søge`,
1487
+ s1228605ee65ddefa: b`${0} resultat`,
1488
+ s2bb33291ef8ae3d4: b`Indtast mindst ${0} tegn for at søge`,
1430
1489
  s2be8f715fbd00dcb: "Vi fandt ingen matchende resultater.",
1431
1490
  s301876182accccad: " › ",
1432
1491
  s3112f1ca236c8a61: "Indlæsningsfejl",
1433
1492
  s352719d86112de9a: "Hjælp",
1434
- s387a4a41718122cb: y`${0} resultater`,
1493
+ s387a4a41718122cb: b`${0} resultater`,
1435
1494
  s3fb7db4771812f0c: "Hvis problemet fortsætter, genindlæs siden eller kontakt support.",
1436
1495
  s4b0c6b66b4efd7d8: "Vælg en tjeneste",
1437
1496
  s5be3c6d61cd9182f: "Notifikationer",
@@ -1452,16 +1511,16 @@ var St = "en", Ct = [
1452
1511
  sfbf31f663cef6cc2: "Prøv andre søgeord eller tjek stavningen.",
1453
1512
  s7c510419ea376840: "VSN",
1454
1513
  s38385cd359b17f7a: "Loading modules"
1455
- }, Et = /* @__PURE__ */ p({ templates: () => Dt }), Dt = {
1514
+ }, Ot = /* @__PURE__ */ p({ templates: () => kt }), kt = {
1456
1515
  s09a45db408570a7a: "Oma profiili",
1457
1516
  s119f9875b7d4cdfc: "Tarvitsetko apua? Ota yhteyttä tukeen.",
1458
- s1228605ee65ddefa: y`${0} tulos`,
1459
- s2bb33291ef8ae3d4: y`Kirjoita vähintään ${0} merkkiä hakua varten`,
1517
+ s1228605ee65ddefa: b`${0} tulos`,
1518
+ s2bb33291ef8ae3d4: b`Kirjoita vähintään ${0} merkkiä hakua varten`,
1460
1519
  s2be8f715fbd00dcb: "Emme löytäneet osumia.",
1461
1520
  s301876182accccad: " › ",
1462
1521
  s3112f1ca236c8a61: "Latausvirhe",
1463
1522
  s352719d86112de9a: "Ohje",
1464
- s387a4a41718122cb: y`${0} tulosta`,
1523
+ s387a4a41718122cb: b`${0} tulosta`,
1465
1524
  s3fb7db4771812f0c: "Jos ongelma jatkuu, lataa sivu uudelleen tai ota yhteyttä tukeen.",
1466
1525
  s4b0c6b66b4efd7d8: "Valitse palvelu",
1467
1526
  s5be3c6d61cd9182f: "Ilmoitukset",
@@ -1482,16 +1541,16 @@ var St = "en", Ct = [
1482
1541
  sfbf31f663cef6cc2: "Kokeile eri hakusanoja tai tarkista kirjoitusasu.",
1483
1542
  s7c510419ea376840: "VSN",
1484
1543
  s38385cd359b17f7a: "Loading modules"
1485
- }, Ot = /* @__PURE__ */ p({ templates: () => kt }), kt = {
1544
+ }, At = /* @__PURE__ */ p({ templates: () => jt }), jt = {
1486
1545
  s09a45db408570a7a: "Mijn profiel",
1487
1546
  s119f9875b7d4cdfc: "Hulp nodig? Neem contact op met ondersteuning.",
1488
- s1228605ee65ddefa: y`${0} resultaat`,
1489
- s2bb33291ef8ae3d4: y`Typ minimaal ${0} tekens om te zoeken`,
1547
+ s1228605ee65ddefa: b`${0} resultaat`,
1548
+ s2bb33291ef8ae3d4: b`Typ minimaal ${0} tekens om te zoeken`,
1490
1549
  s2be8f715fbd00dcb: "We konden geen overeenkomsten vinden.",
1491
1550
  s301876182accccad: " › ",
1492
1551
  s3112f1ca236c8a61: "Laadingsfout",
1493
1552
  s352719d86112de9a: "Hulp",
1494
- s387a4a41718122cb: y`${0} resultaten`,
1553
+ s387a4a41718122cb: b`${0} resultaten`,
1495
1554
  s3fb7db4771812f0c: "Als het probleem aanhoudt, laad de pagina opnieuw of neem contact op met ondersteuning.",
1496
1555
  s4b0c6b66b4efd7d8: "Kies een service",
1497
1556
  s5be3c6d61cd9182f: "Meldingen",
@@ -1512,16 +1571,16 @@ var St = "en", Ct = [
1512
1571
  sfbf31f663cef6cc2: "Probeer andere zoekwoorden of controleer de spelling.",
1513
1572
  s7c510419ea376840: "VSN",
1514
1573
  s38385cd359b17f7a: "Loading modules"
1515
- }, At = /* @__PURE__ */ p({ templates: () => jt }), jt = {
1574
+ }, Mt = /* @__PURE__ */ p({ templates: () => Nt }), Nt = {
1516
1575
  s09a45db408570a7a: "Min profil",
1517
1576
  s119f9875b7d4cdfc: "Trenger du hjelp? Kontakt støtte.",
1518
- s1228605ee65ddefa: y`${0} resultat`,
1519
- s2bb33291ef8ae3d4: y`Skriv inn minst ${0} tegn for å søke`,
1577
+ s1228605ee65ddefa: b`${0} resultat`,
1578
+ s2bb33291ef8ae3d4: b`Skriv inn minst ${0} tegn for å søke`,
1520
1579
  s2be8f715fbd00dcb: "Vi fant ingen treff.",
1521
1580
  s301876182accccad: " › ",
1522
1581
  s3112f1ca236c8a61: "Lastingsfeil",
1523
1582
  s352719d86112de9a: "Hjelp",
1524
- s387a4a41718122cb: y`${0} resultater`,
1583
+ s387a4a41718122cb: b`${0} resultater`,
1525
1584
  s3fb7db4771812f0c: "Hvis problemet vedvarer, last inn siden på nytt eller kontakt støtte.",
1526
1585
  s4b0c6b66b4efd7d8: "Velg en tjeneste",
1527
1586
  s5be3c6d61cd9182f: "Varsler",
@@ -1542,16 +1601,16 @@ var St = "en", Ct = [
1542
1601
  sfbf31f663cef6cc2: "Prøv andre søkeord eller sjekk stavemåten.",
1543
1602
  s7c510419ea376840: "VSN",
1544
1603
  s38385cd359b17f7a: "Loading modules"
1545
- }, Mt = /* @__PURE__ */ p({ templates: () => Nt }), Nt = {
1604
+ }, Pt = /* @__PURE__ */ p({ templates: () => Ft }), Ft = {
1546
1605
  s09a45db408570a7a: "Min profil",
1547
1606
  s119f9875b7d4cdfc: "Behöver du hjälp? Kontakta support.",
1548
- s1228605ee65ddefa: y`${0} resultat`,
1549
- s2bb33291ef8ae3d4: y`Skriv minst ${0} tecken för att söka`,
1607
+ s1228605ee65ddefa: b`${0} resultat`,
1608
+ s2bb33291ef8ae3d4: b`Skriv minst ${0} tecken för att söka`,
1550
1609
  s2be8f715fbd00dcb: "Vi hittade inga matchningar.",
1551
1610
  s301876182accccad: " › ",
1552
1611
  s3112f1ca236c8a61: "Laddningsfel",
1553
1612
  s352719d86112de9a: "Hjälp",
1554
- s387a4a41718122cb: y`${0} resultat`,
1613
+ s387a4a41718122cb: b`${0} resultat`,
1555
1614
  s3fb7db4771812f0c: "Om problemet kvarstår, ladda om sidan eller kontakta support.",
1556
1615
  s4b0c6b66b4efd7d8: "Välj en tjänst",
1557
1616
  s5be3c6d61cd9182f: "Aviseringar",
@@ -1572,17 +1631,17 @@ var St = "en", Ct = [
1572
1631
  sfbf31f663cef6cc2: "Prova andra sökord eller kontrollera stavningen.",
1573
1632
  s7c510419ea376840: "VSN",
1574
1633
  s38385cd359b17f7a: "Loading modules"
1575
- }, Pt = {
1576
- da: wt,
1577
- fi: Et,
1578
- nl: Ot,
1579
- no: At,
1580
- sv: Mt
1581
- }, { getLocale: Ft, setLocale: It } = je({
1582
- sourceLocale: St,
1583
- targetLocales: Ct,
1584
- loadLocale: (e) => Pt[e] ? Promise.resolve(Pt[e]) : Promise.reject(/* @__PURE__ */ Error(`Unknown locale: ${e}`))
1585
- }), Lt = t`
1634
+ }, It = {
1635
+ da: Et,
1636
+ fi: Ot,
1637
+ nl: At,
1638
+ no: Mt,
1639
+ sv: Pt
1640
+ }, { getLocale: Lt, setLocale: Rt } = Me({
1641
+ sourceLocale: wt,
1642
+ targetLocales: Tt,
1643
+ loadLocale: (e) => It[e] ? Promise.resolve(It[e]) : Promise.reject(/* @__PURE__ */ Error(`Unknown locale: ${e}`))
1644
+ }), zt = t`
1586
1645
  @layer components {
1587
1646
  vsn-footer {
1588
1647
  display: block;
@@ -1623,7 +1682,7 @@ var St = "en", Ct = [
1623
1682
  justify-content: center;
1624
1683
  }
1625
1684
  }
1626
- `, Rt = t`
1685
+ `, Bt = t`
1627
1686
  @layer components {
1628
1687
  .vsn-switcher-anchor {
1629
1688
  position: relative;
@@ -1637,7 +1696,7 @@ var St = "en", Ct = [
1637
1696
  z-index: 10;
1638
1697
  }
1639
1698
  }
1640
- `, zt = t`
1699
+ `, Vt = t`
1641
1700
  .vsn-search__trigger,
1642
1701
  .vsn-search__clear {
1643
1702
  display: inline-flex;
@@ -1686,7 +1745,7 @@ var St = "en", Ct = [
1686
1745
  .ga-side-navigation__search input::placeholder {
1687
1746
  color: var(--ga-color-text-disable-selected);
1688
1747
  }
1689
- `, Bt = t`
1748
+ `, Ht = t`
1690
1749
  .vsn-search-results__empty {
1691
1750
  display: flex;
1692
1751
  flex-direction: column;
@@ -1755,7 +1814,7 @@ var St = "en", Ct = [
1755
1814
  cursor: not-allowed;
1756
1815
  opacity: 0.5;
1757
1816
  }
1758
- `, Vt = t`
1817
+ `, Ut = t`
1759
1818
  @layer components {
1760
1819
  vsn-search-scopes {
1761
1820
  display: block;
@@ -1776,7 +1835,7 @@ var St = "en", Ct = [
1776
1835
  text-overflow: ellipsis;
1777
1836
  }
1778
1837
  }
1779
- `, Ht = t`
1838
+ `, Wt = t`
1780
1839
  .vsn-template__row {
1781
1840
  display: flex;
1782
1841
  flex-direction: column;
@@ -1791,7 +1850,7 @@ var St = "en", Ct = [
1791
1850
  background: var(--ga-color-miscellaneous-skeleton-element, #F2F3F5);
1792
1851
  flex-shrink: 0;
1793
1852
  }
1794
- `, Ut = t`
1853
+ `, Gt = t`
1795
1854
  .vsn-error-state {
1796
1855
  display: flex;
1797
1856
  flex-direction: column;
@@ -1830,7 +1889,7 @@ var St = "en", Ct = [
1830
1889
  font-weight: 400;
1831
1890
  color: var(--ga-color-text-on-disabled);
1832
1891
  }
1833
- `, Wt = t`
1892
+ `, Kt = t`
1834
1893
  .vsn-spinner {
1835
1894
  display: inline-block;
1836
1895
  flex-shrink: 0;
@@ -1850,7 +1909,7 @@ var St = "en", Ct = [
1850
1909
  @keyframes vsn-spin {
1851
1910
  to { transform: rotate(360deg); }
1852
1911
  }
1853
- `, Gt = class {
1912
+ `, qt = class {
1854
1913
  constructor(e, t, n) {
1855
1914
  this._onHostClick = (e) => {
1856
1915
  let t = this._host.renderRoot.querySelector(this._clickedSelector);
@@ -1863,14 +1922,14 @@ var St = "en", Ct = [
1863
1922
  hostDisconnected() {
1864
1923
  this._host.removeEventListener("click", this._onHostClick);
1865
1924
  }
1866
- }, Kt = "button:not([disabled]), a[href], [tabindex]:not([tabindex=\"-1\"])", qt = class {
1925
+ }, Jt = "button:not([disabled]), a[href], [tabindex]:not([tabindex=\"-1\"])", Yt = class {
1867
1926
  constructor(e) {
1868
1927
  this.onKeydown = (e) => {
1869
1928
  if (e.defaultPrevented || A(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
1870
1929
  let t = this.host.renderRoot.querySelector("slot[name=\"nav-footer\"]");
1871
1930
  if (!t) return;
1872
1931
  let n = [];
1873
- for (let e of t.assignedElements({ flatten: !0 })) e.matches(Kt) && n.push(e), n.push(...Array.from(e.querySelectorAll(Kt)));
1932
+ for (let e of t.assignedElements({ flatten: !0 })) e.matches(Jt) && n.push(e), n.push(...Array.from(e.querySelectorAll(Jt)));
1874
1933
  if (n.length === 0) return;
1875
1934
  let r = e.composedPath()[0];
1876
1935
  if (!(r instanceof HTMLElement)) return;
@@ -1882,12 +1941,12 @@ var St = "en", Ct = [
1882
1941
  }, this.host = e, e.addController(this);
1883
1942
  }
1884
1943
  hostConnected() {}
1885
- }, Jt = t`
1944
+ }, Xt = t`
1886
1945
  .ga-scroll {
1887
1946
  scrollbar-color: var(--ga-color-text-disabled) var(--ga-color-surface-page);
1888
1947
  scrollbar-width: thin;
1889
1948
  }
1890
- `, Yt = t`
1949
+ `, Zt = t`
1891
1950
  @layer components {
1892
1951
  .ga-side-navigation__item:focus-visible::after {
1893
1952
  position: absolute;
@@ -1900,20 +1959,20 @@ var St = "en", Ct = [
1900
1959
  content: var(--tw-content);
1901
1960
  }
1902
1961
  }
1903
- `, J = class extends e {
1962
+ `, q = class extends e {
1904
1963
  static {
1905
1964
  this.styles = [
1906
1965
  h,
1907
- Jt,
1908
- Rt,
1909
- Yt,
1910
- Lt,
1911
- zt,
1966
+ Xt,
1912
1967
  Bt,
1968
+ Zt,
1969
+ zt,
1913
1970
  Vt,
1914
1971
  Ht,
1915
1972
  Ut,
1916
1973
  Wt,
1974
+ Gt,
1975
+ Kt,
1917
1976
  t`
1918
1977
  :host {
1919
1978
  position: absolute;
@@ -1928,7 +1987,7 @@ var St = "en", Ct = [
1928
1987
  ];
1929
1988
  }
1930
1989
  constructor() {
1931
- 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._navFooterKeyboard = new qt(this), this._customWidthPerLanguage = { fi: "30em" }, this._onNavigate = (e) => {
1990
+ 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._navFooterKeyboard = new Yt(this), this._customWidthPerLanguage = { fi: "30em" }, this._onNavigate = (e) => {
1932
1991
  this._searchQuery = "", this._searchResults = void 0, this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
1933
1992
  bubbles: !0,
1934
1993
  composed: !0
@@ -1945,18 +2004,18 @@ var St = "en", Ct = [
1945
2004
  }));
1946
2005
  }, this._onScopeChanged = (e) => {
1947
2006
  this._activeScopeId = e.detail.scopeId, this._runSearch(this._searchQuery, this._activeScopeId), this.focusSearch();
1948
- }, new Gt(this, ".ga-side-navigation", () => this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
2007
+ }, new qt(this, ".ga-side-navigation", () => this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
1949
2008
  bubbles: !0,
1950
2009
  composed: !0
1951
2010
  }))), this._resizeObserver = new ResizeObserver((e) => {
1952
2011
  this._observeMenuSize(e);
1953
- }), this._resizeObserver.observe(this), new R(this, () => this.open);
2012
+ }), this._resizeObserver.observe(this), new z(this, () => this.open);
1954
2013
  }
1955
2014
  _observeMenuSize(e) {
1956
2015
  this._moduleSwitcherMaxHeight = Math.max(0, e[0].contentRect.height - 134);
1957
2016
  }
1958
2017
  willUpdate(e) {
1959
- e.has("lang") && It(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());
2018
+ e.has("lang") && Rt(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());
1960
2019
  }
1961
2020
  updated(e) {
1962
2021
  e.has("open") && this.open && this._scrollActiveItemIntoView(), e.has("menu") && this.open && this.menu?.currentItem && (e.get("menu")?.currentItem || this._scrollActiveItemIntoView());
@@ -2123,7 +2182,7 @@ var St = "en", Ct = [
2123
2182
  <vsn-search-scopes
2124
2183
  .scopes=${[{
2125
2184
  id: "menu",
2126
- label: Be()
2185
+ label: Ve()
2127
2186
  }, ...e.map((e) => ({
2128
2187
  id: e.id,
2129
2188
  label: e.label
@@ -2147,15 +2206,15 @@ var St = "en", Ct = [
2147
2206
  `;
2148
2207
  }
2149
2208
  };
2150
- N([s({ attribute: !1 })], J.prototype, "modules", void 0), N([s()], J.prototype, "activeModuleId", void 0), N([s()], J.prototype, "activeModuleLabel", void 0), N([s({ type: Boolean })], J.prototype, "modulesLoading", void 0), N([s()], J.prototype, "lang", void 0), N([s({ attribute: !1 })], J.prototype, "auth", void 0), N([s({ type: Boolean })], J.prototype, "error", void 0), N([s({
2209
+ P([s({ attribute: !1 })], q.prototype, "modules", void 0), P([s()], q.prototype, "activeModuleId", void 0), P([s()], q.prototype, "activeModuleLabel", void 0), P([s({ type: Boolean })], q.prototype, "modulesLoading", void 0), P([s()], q.prototype, "lang", void 0), P([s({ attribute: !1 })], q.prototype, "auth", void 0), P([s({ type: Boolean })], q.prototype, "error", void 0), P([s({
2151
2210
  type: Boolean,
2152
2211
  reflect: !0
2153
- })], J.prototype, "open", void 0), N([s({ attribute: !1 })], J.prototype, "menu", void 0), N([l()], J.prototype, "_searchQuery", void 0), N([l()], J.prototype, "_searchResults", void 0), N([l()], J.prototype, "_searchLoading", void 0), N([l()], J.prototype, "_activeScopeId", void 0), N([l()], J.prototype, "_searchError", void 0), N([l()], J.prototype, "_searchNextCursor", void 0), N([l()], J.prototype, "_searchLoadingMore", void 0), N([l()], J.prototype, "_moduleSwitcherMaxHeight", void 0), J = N([o("vsn-side-bar")], J);
2212
+ })], q.prototype, "open", void 0), P([s({ attribute: !1 })], q.prototype, "menu", void 0), P([l()], q.prototype, "_searchQuery", void 0), P([l()], q.prototype, "_searchResults", void 0), P([l()], q.prototype, "_searchLoading", void 0), P([l()], q.prototype, "_activeScopeId", void 0), P([l()], q.prototype, "_searchError", void 0), P([l()], q.prototype, "_searchNextCursor", void 0), P([l()], q.prototype, "_searchLoadingMore", void 0), P([l()], q.prototype, "_moduleSwitcherMaxHeight", void 0), q = P([o("vsn-side-bar")], q);
2154
2213
  //#endregion
2155
2214
  //#region src/components/vsn-top-bar/vsn-breadcrumb-menu-item.ts
2156
- var Xt, Y = class extends e {
2215
+ var Qt, J = class extends e {
2157
2216
  static {
2158
- Xt = this;
2217
+ Qt = this;
2159
2218
  }
2160
2219
  static {
2161
2220
  this._idCounter = 0;
@@ -2175,23 +2234,23 @@ var Xt, Y = class extends e {
2175
2234
  }, this._onItemMouseLeave = () => {
2176
2235
  this._showTooltip = !1;
2177
2236
  }, this._onKeyDown = (e) => {
2178
- e.defaultPrevented || A(e) || (e.key === "Enter" || e.key === " " ? (e.preventDefault(), e.stopPropagation(), this._isExpanded = !this._isExpanded) : e.key === "ArrowRight" ? (e.preventDefault(), e.stopPropagation(), this._isExpanded = !0) : e.key === "ArrowLeft" ? (e.preventDefault(), e.stopPropagation(), this._isExpanded = !1) : e.key === "Escape" && (this._isExpanded &&= (e.preventDefault(), e.stopPropagation(), !1)));
2237
+ e.defaultPrevented || A(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));
2179
2238
  }, this._onClick = (e) => {
2180
2239
  if (e.defaultPrevented) return;
2181
2240
  if (this._isParent()) {
2182
2241
  if (A(e)) return;
2183
- e.preventDefault(), e.stopPropagation(), this._isExpanded = !this._isExpanded;
2242
+ e.preventDefault(), this._isExpanded = !this._isExpanded;
2184
2243
  return;
2185
2244
  }
2186
2245
  if (!this.tree || e.button !== 0 || A(e)) return;
2187
- e.preventDefault(), e.stopPropagation();
2246
+ e.preventDefault();
2188
2247
  let t = [...this.ancestorPath, this.tree];
2189
2248
  this.dispatchEvent(new CustomEvent("vsn-breadcrumb-menu-leaf-select", {
2190
2249
  detail: { path: t },
2191
2250
  bubbles: !0,
2192
2251
  composed: !0
2193
2252
  }));
2194
- }, this._tooltipId = `vsn-menu-item-tooltip-${Xt._idCounter++}`, new R(this, () => this._isExpanded);
2253
+ }, this._tooltipId = `vsn-menu-item-tooltip-${Qt._idCounter++}`, new z(this, () => this._isExpanded);
2195
2254
  }
2196
2255
  createRenderRoot() {
2197
2256
  return this;
@@ -2217,7 +2276,7 @@ var Xt, Y = class extends e {
2217
2276
  <div class="ga-tooltip ga-tooltip--right-start" style="white-space: nowrap">${e}</div>
2218
2277
  </div>
2219
2278
  <span class="ga-side-navigation__item-icon">
2220
- ${this._isParent() ? this._isExpanded ? M(at, 16) : M(lt, 16) : ""}
2279
+ ${this._isParent() ? this._isExpanded ? M(N, 16) : M(lt, 16) : ""}
2221
2280
  </span>
2222
2281
  <div class="ga-side-navigation__item-content">
2223
2282
  <div class="ga-side-navigation__item-label">${e}</div>
@@ -2241,30 +2300,30 @@ var Xt, Y = class extends e {
2241
2300
  if (this.tree && _(this.tree)) return this.tree.items.length > 0;
2242
2301
  }
2243
2302
  };
2244
- N([s({ attribute: !1 })], Y.prototype, "tree", void 0), N([s({ type: Number })], Y.prototype, "level", void 0), N([s({ type: Array })], Y.prototype, "ancestorPath", void 0), N([l()], Y.prototype, "_isExpanded", void 0), N([l()], Y.prototype, "_showTooltip", void 0), N([l()], Y.prototype, "_tooltipPos", void 0), N([c(".ga-side-navigation__item-label")], Y.prototype, "_labelEl", void 0), Y = Xt = N([o("vsn-breadcrumb-menu-item")], Y);
2303
+ P([s({ attribute: !1 })], J.prototype, "tree", void 0), P([s({ type: Number })], J.prototype, "level", void 0), P([s({ type: Array })], J.prototype, "ancestorPath", void 0), P([l()], J.prototype, "_isExpanded", void 0), P([l()], J.prototype, "_showTooltip", void 0), P([l()], J.prototype, "_tooltipPos", void 0), P([c(".ga-side-navigation__item-label")], J.prototype, "_labelEl", void 0), J = Qt = P([o("vsn-breadcrumb-menu-item")], J);
2245
2304
  //#endregion
2246
2305
  //#region src/components/vsn-top-bar/vsn-breadcrumb-menu.ts
2247
- var Zt = class extends e {
2306
+ var $t = class extends e {
2248
2307
  constructor() {
2249
2308
  super(), this._handleKeyDown = (e) => {
2250
2309
  if (e.defaultPrevented || A(e)) return;
2251
2310
  if (e.key === "Escape") {
2252
- e.preventDefault(), e.stopPropagation(), this.dispatchEvent(new CustomEvent("vsn-breadcrumb-menu-close", {
2311
+ e.preventDefault(), this.dispatchEvent(new CustomEvent("vsn-breadcrumb-menu-close", {
2253
2312
  bubbles: !0,
2254
2313
  composed: !0
2255
2314
  }));
2256
2315
  return;
2257
2316
  }
2258
2317
  if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
2259
- e.preventDefault(), e.stopPropagation();
2318
+ e.preventDefault();
2260
2319
  return;
2261
2320
  }
2262
2321
  if (e.key !== "ArrowUp" && e.key !== "ArrowDown") return;
2263
2322
  let t = Array.from(this.querySelectorAll("a.ga-side-navigation__item, div.ga-side-navigation__item[tabindex=\"0\"]"));
2264
2323
  if (!t.length) return;
2265
2324
  let n = t.indexOf(e.target);
2266
- n !== -1 && (e.preventDefault(), e.stopPropagation(), e.key === "ArrowDown" ? n < t.length - 1 && t[n + 1].focus() : n > 0 && t[n - 1].focus());
2267
- }, new R(this, () => !0);
2325
+ n !== -1 && (e.preventDefault(), e.key === "ArrowDown" ? n < t.length - 1 && t[n + 1].focus() : n > 0 && t[n - 1].focus());
2326
+ }, new z(this, () => !0);
2268
2327
  }
2269
2328
  createRenderRoot() {
2270
2329
  return this;
@@ -2291,12 +2350,12 @@ var Zt = class extends e {
2291
2350
  `;
2292
2351
  }
2293
2352
  };
2294
- N([s({ attribute: !1 })], Zt.prototype, "treeList", void 0), Zt = N([o("vsn-breadcrumb-menu")], Zt);
2353
+ P([s({ attribute: !1 })], $t.prototype, "treeList", void 0), $t = P([o("vsn-breadcrumb-menu")], $t);
2295
2354
  //#endregion
2296
2355
  //#region src/components/vsn-top-bar/vsn-breadcrumbs.ts
2297
- var X = class extends e {
2356
+ var Y = class extends e {
2298
2357
  constructor(...e) {
2299
- 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 = () => {
2358
+ 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 = () => {
2300
2359
  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);
2301
2360
  }, this._onBreadcrumbMouseEnter = (e) => {
2302
2361
  let t = e.currentTarget, n = t.querySelector(".ga-breadcrumb-item__label");
@@ -2315,7 +2374,20 @@ var X = class extends e {
2315
2374
  static {
2316
2375
  this.styles = [
2317
2376
  h,
2318
- Jt,
2377
+ Xt,
2378
+ Kt,
2379
+ t`
2380
+ .vsn-bc-modules-loading {
2381
+ display: flex;
2382
+ align-items: center;
2383
+ justify-content: center;
2384
+ padding: calc(0.75rem * var(--ga-base-scaling-factor, 1));
2385
+ min-width: var(--ga-size-160);
2386
+ border-radius: var(--ga-radius);
2387
+ border: var(--ga-size-border-width-sm) solid var(--ga-color-border-primary);
2388
+ background: var(--ga-color-surface-primary);
2389
+ }
2390
+ `,
2319
2391
  t`
2320
2392
  /* Temporary, until breadcrumb styles are updated */
2321
2393
 
@@ -2478,10 +2550,36 @@ var X = class extends e {
2478
2550
  }));
2479
2551
  }
2480
2552
  _renderModules() {
2481
- if (!this.modules?.length) return n``;
2553
+ if (!this.modules?.length && !this.modulesLoading) return n``;
2482
2554
  let e = this.activeModuleId ? this.modules.filter((e) => e.id !== this.activeModuleId) : this.modules;
2483
- if (!e.length) return n``;
2484
- let t = e.map((e) => ({
2555
+ if (!e.length && !this.modulesLoading) return n``;
2556
+ let t = this._breadcrumbPath.length > 0 ? n`<span class="ga-breadcrumb-item__separator" aria-hidden="true">/</span>` : "";
2557
+ if (this.modulesLoading || !e.length) return n`
2558
+ <div class="ga-breadcrumb-item ga-breadcrumb-item--link">
2559
+ <button
2560
+ id="vsn-bc-modules-trigger"
2561
+ class="ga-breadcrumb-item__trigger"
2562
+ type="button"
2563
+ aria-expanded=${this._openPopoverId === "vsn-bc-modules-popover"}
2564
+ aria-haspopup="menu"
2565
+ popovertarget="vsn-bc-modules-popover"
2566
+ >
2567
+ <span class="ga-breadcrumb-item__label">${"VSN"}</span>
2568
+ </button>
2569
+ ${t}
2570
+ <div
2571
+ id="vsn-bc-modules-popover"
2572
+ class="ga-breadcrumb-item__menu"
2573
+ popover="auto"
2574
+ @beforetoggle=${(e) => this._handlePopoverBeforeToggle("vsn-bc-modules-trigger", e)}
2575
+ @toggle=${(e) => this._handlePopoverToggle("vsn-bc-modules-popover", e)}
2576
+ >
2577
+ <div class="vsn-bc-modules-loading" role="status" aria-busy="true">
2578
+ <span class="vsn-spinner"></span>
2579
+ </div>
2580
+ </div>
2581
+ </div>`;
2582
+ let r = e.map((e) => ({
2485
2583
  id: e.id,
2486
2584
  label: e.label,
2487
2585
  url: e.url
@@ -2498,8 +2596,7 @@ var X = class extends e {
2498
2596
  >
2499
2597
  <span class="ga-breadcrumb-item__label">${"VSN"}</span>
2500
2598
  </button>
2501
- ${this._breadcrumbPath.length > 0 ? n`<span class="ga-breadcrumb-item__separator"
2502
- aria-hidden="true">/</span>` : ""}
2599
+ ${t}
2503
2600
  <div
2504
2601
  id="vsn-bc-modules-popover"
2505
2602
  class="ga-breadcrumb-item__menu ga-scroll"
@@ -2509,7 +2606,7 @@ var X = class extends e {
2509
2606
  @vsn-breadcrumb-menu-close=${() => this._handleMenuClose("vsn-bc-modules-trigger", "vsn-bc-modules-popover")}
2510
2607
  >
2511
2608
  <vsn-breadcrumb-menu
2512
- .treeList=${t}
2609
+ .treeList=${r}
2513
2610
  @vsn-breadcrumb-menu-leaf-select=${(e) => {
2514
2611
  let t = e.detail, n = t.path?.[t.path.length - 1], r = n?.id ? this.modules.find((e) => e.id === n.id) : void 0;
2515
2612
  r && this._handleModuleSelect(r);
@@ -2648,7 +2745,7 @@ var X = class extends e {
2648
2745
  }
2649
2746
  render() {
2650
2747
  return n`
2651
- <nav aria-label=${b("Breadcrumb")}>
2748
+ <nav aria-label=${x("Breadcrumb")}>
2652
2749
  <div class="ga-breadcrumb">
2653
2750
  ${this._displayMode === "full" ? this._renderFullBreadcrumbs() : this._displayMode === "overflow" ? this._renderOverflowBreadcrumbs() : this._renderMobileBreadcrumbs()}
2654
2751
  </div>
@@ -2662,10 +2759,10 @@ var X = class extends e {
2662
2759
  `;
2663
2760
  }
2664
2761
  };
2665
- N([s({ attribute: !1 })], X.prototype, "tree", void 0), N([s({ type: Array })], X.prototype, "modules", void 0), N([s()], X.prototype, "activeModuleId", void 0), N([l()], X.prototype, "_openPopoverId", void 0), N([l()], X.prototype, "_displayMode", void 0), N([l()], X.prototype, "_overflowCount", void 0), N([l()], X.prototype, "_tooltip", void 0), X = N([x(), o("vsn-breadcrumbs")], X);
2762
+ P([s({ attribute: !1 })], Y.prototype, "tree", void 0), P([s({ type: Array })], Y.prototype, "modules", void 0), P([s()], Y.prototype, "activeModuleId", void 0), P([s({ type: Boolean })], Y.prototype, "modulesLoading", void 0), P([l()], Y.prototype, "_openPopoverId", void 0), P([l()], Y.prototype, "_displayMode", void 0), P([l()], Y.prototype, "_overflowCount", void 0), P([l()], Y.prototype, "_tooltip", void 0), Y = P([S(), o("vsn-breadcrumbs")], Y);
2666
2763
  //#endregion
2667
2764
  //#region src/components/vsn-top-bar/vsn-ai-assistant.ts
2668
- var Qt = class extends e {
2765
+ var en = class extends e {
2669
2766
  createRenderRoot() {
2670
2767
  return this;
2671
2768
  }
@@ -2679,16 +2776,16 @@ var Qt = class extends e {
2679
2776
  render() {
2680
2777
  return n`
2681
2778
  <button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
2682
- aria-label=${b("Open AI assistant")} @click=${this._handleClick}>
2683
- <span class="ga-icon">${M(Je)}</span>
2779
+ aria-label=${x("Open AI assistant")} @click=${this._handleClick}>
2780
+ <span class="ga-icon">${M(Ye)}</span>
2684
2781
  </button>
2685
2782
  `;
2686
2783
  }
2687
2784
  };
2688
- Qt = N([x(), o("vsn-ai-assistant")], Qt);
2785
+ en = P([S(), o("vsn-ai-assistant")], en);
2689
2786
  //#endregion
2690
2787
  //#region src/components/vsn-top-bar/vsn-feedback.ts
2691
- var Z = class extends e {
2788
+ var X = class extends e {
2692
2789
  constructor(...e) {
2693
2790
  super(...e), this._compact = !1, this.feedback = null, this.lang = "en", this._mqMobile = window.matchMedia("(max-width: 767px)"), this._handleMediaChange = () => {
2694
2791
  this._compact = this._mqMobile.matches;
@@ -2704,7 +2801,7 @@ var Z = class extends e {
2704
2801
  if (super.updated(e), e.has("feedback") && this.feedback?.workspaceId && !document.getElementById("survicate-sdk") && !window._sva) {
2705
2802
  window._sva = window._sva ?? {}, window._sva.forcedLanguage = this.lang;
2706
2803
  let e = document.createElement("script");
2707
- e.id = Ue, e.src = Ge(this.feedback.workspaceId), e.async = !0, e.onload = () => this._applyVisitorTraits(), document.head.appendChild(e);
2804
+ e.id = We, e.src = Ke(this.feedback.workspaceId), e.async = !0, e.onload = () => this._applyVisitorTraits(), document.head.appendChild(e);
2708
2805
  }
2709
2806
  if (e.has("auth")) {
2710
2807
  let t = e.get("auth");
@@ -2725,26 +2822,26 @@ var Z = class extends e {
2725
2822
  this.dispatchEvent(new CustomEvent("vsn-feedback", {
2726
2823
  bubbles: !0,
2727
2824
  composed: !0
2728
- })), this.feedback?.surveyId && (this._applyVisitorTraits(), window._sva?.invokeEvent?.(We));
2825
+ })), this.feedback?.surveyId && (this._applyVisitorTraits(), window._sva?.invokeEvent?.(Ge));
2729
2826
  }
2730
2827
  render() {
2731
2828
  return this._compact ? n`
2732
2829
  <button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
2733
- aria-label=${b("Send feedback")} @click=${this._handleClick}>
2734
- <span class="ga-icon">${M(Ze)}</span>
2830
+ aria-label=${x("Send feedback")} @click=${this._handleClick}>
2831
+ <span class="ga-icon">${M(Qe)}</span>
2735
2832
  </button>
2736
2833
  ` : n`
2737
- <button type="button" class="ga-button ga-button--secondary" aria-label=${b("Send feedback")}
2834
+ <button type="button" class="ga-button ga-button--secondary" aria-label=${x("Send feedback")}
2738
2835
  @click=${this._handleClick}>
2739
- ${b("Feedback")}
2836
+ ${x("Feedback")}
2740
2837
  </button>
2741
2838
  `;
2742
2839
  }
2743
2840
  };
2744
- N([l()], Z.prototype, "_compact", void 0), N([s({ attribute: !1 })], Z.prototype, "feedback", void 0), N([s({ attribute: !1 })], Z.prototype, "auth", void 0), N([s()], Z.prototype, "lang", void 0), Z = N([x(), o("vsn-feedback")], Z);
2841
+ P([l()], X.prototype, "_compact", void 0), P([s({ attribute: !1 })], X.prototype, "feedback", void 0), P([s({ attribute: !1 })], X.prototype, "auth", void 0), P([s()], X.prototype, "lang", void 0), X = P([S(), o("vsn-feedback")], X);
2745
2842
  //#endregion
2746
2843
  //#region src/components/vsn-top-bar/vsn-home.ts
2747
- var $t = class extends e {
2844
+ var tn = class extends e {
2748
2845
  createRenderRoot() {
2749
2846
  return this;
2750
2847
  }
@@ -2752,7 +2849,7 @@ var $t = class extends e {
2752
2849
  e.preventDefault(), this.landingPageUrl && this.dispatchEvent(new CustomEvent("vsn-navigate", {
2753
2850
  detail: {
2754
2851
  id: "home",
2755
- label: b("Home"),
2852
+ label: x("Home"),
2756
2853
  url: this.landingPageUrl
2757
2854
  },
2758
2855
  bubbles: !0,
@@ -2761,17 +2858,17 @@ var $t = class extends e {
2761
2858
  }
2762
2859
  render() {
2763
2860
  return this.landingPageUrl ? n`
2764
- <a href=${this.landingPageUrl} class="ga-button ga-button--ghost ga-button--icon-only" aria-label=${b("Home")}
2861
+ <a href=${this.landingPageUrl} class="ga-button ga-button--ghost ga-button--icon-only" aria-label=${x("Home")}
2765
2862
  @click=${this._handleClick}>
2766
- <span class="ga-icon">${M(Qe)}</span>
2863
+ <span class="ga-icon">${M($e)}</span>
2767
2864
  </a>
2768
2865
  ` : r;
2769
2866
  }
2770
2867
  };
2771
- N([s({ attribute: "landing-page-url" })], $t.prototype, "landingPageUrl", void 0), $t = N([x(), o("vsn-home")], $t);
2868
+ P([s({ attribute: "landing-page-url" })], tn.prototype, "landingPageUrl", void 0), tn = P([S(), o("vsn-home")], tn);
2772
2869
  //#endregion
2773
2870
  //#region src/components/vsn-top-bar/vsn-menu-toggle.ts
2774
- var en = class extends e {
2871
+ var nn = class extends e {
2775
2872
  createRenderRoot() {
2776
2873
  return this;
2777
2874
  }
@@ -2793,25 +2890,25 @@ var en = class extends e {
2793
2890
  }
2794
2891
  render() {
2795
2892
  return n`
2796
- <button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${b("Open menu")}
2893
+ <button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${x("Open menu")}
2797
2894
  aria-describedby="vsn-menu-toggle-tooltip"
2798
2895
  @click=${this._handleClick}
2799
2896
  @mouseenter=${this._onActivate}
2800
2897
  @mouseleave=${this._onDeactivate}>
2801
- <span class="ga-icon">${M(qe)}</span>
2898
+ <span class="ga-icon">${M(Je)}</span>
2802
2899
  </button>
2803
2900
  <div id="vsn-menu-toggle-tooltip" role="tooltip"
2804
2901
  style="position: fixed; inset: unset; margin: 0; padding: 0; border: none; background: transparent; overflow: visible; pointer-events: none; z-index: 9999;"
2805
2902
  popover="manual">
2806
- <div class="ga-tooltip ga-tooltip--bottom-start" style="white-space: nowrap">${Re()}</div>
2903
+ <div class="ga-tooltip ga-tooltip--bottom-start" style="white-space: nowrap">${ze()}</div>
2807
2904
  </div>
2808
2905
  `;
2809
2906
  }
2810
2907
  };
2811
- N([c("div[role=\"tooltip\"]", !0)], en.prototype, "_tooltipElement", void 0), en = N([x(), o("vsn-menu-toggle")], en);
2908
+ P([c("div[role=\"tooltip\"]", !0)], nn.prototype, "_tooltipElement", void 0), nn = P([S(), o("vsn-menu-toggle")], nn);
2812
2909
  //#endregion
2813
2910
  //#region src/components/vsn-top-bar/vsn-notifications.ts
2814
- var tn = class extends e {
2911
+ var rn = class extends e {
2815
2912
  constructor(...e) {
2816
2913
  super(...e), this.notificationActive = !1;
2817
2914
  }
@@ -2826,23 +2923,23 @@ var tn = class extends e {
2826
2923
  }));
2827
2924
  }
2828
2925
  render() {
2829
- let e = this.notificationActive ? Xe : Ye;
2926
+ let e = this.notificationActive ? Ze : Xe;
2830
2927
  return n`
2831
2928
  <button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
2832
- aria-label=${b("Notifications")} @click=${this._handleClick}>
2929
+ aria-label=${x("Notifications")} @click=${this._handleClick}>
2833
2930
  <span class="ga-icon">${M(e)}</span>
2834
2931
  </button>
2835
2932
  `;
2836
2933
  }
2837
2934
  };
2838
- N([s({
2935
+ P([s({
2839
2936
  type: Boolean,
2840
2937
  attribute: "notification-active",
2841
2938
  reflect: !0
2842
- })], tn.prototype, "notificationActive", void 0), tn = N([x(), o("vsn-notifications")], tn);
2939
+ })], rn.prototype, "notificationActive", void 0), rn = P([S(), o("vsn-notifications")], rn);
2843
2940
  //#endregion
2844
2941
  //#region src/components/vsn-top-bar/vsn-help.ts
2845
- function nn(e) {
2942
+ function an(e) {
2846
2943
  try {
2847
2944
  let t = new URL(e);
2848
2945
  return t.protocol === "https:" || t.protocol === "http:";
@@ -2850,7 +2947,7 @@ function nn(e) {
2850
2947
  return !1;
2851
2948
  }
2852
2949
  }
2853
- var rn = class extends e {
2950
+ var Z = class extends e {
2854
2951
  createRenderRoot() {
2855
2952
  return this;
2856
2953
  }
@@ -2862,28 +2959,28 @@ var rn = class extends e {
2862
2959
  }));
2863
2960
  }
2864
2961
  render() {
2865
- return this.helpUrl && nn(this.helpUrl) ? n`
2962
+ return this.helpUrl && an(this.helpUrl) ? n`
2866
2963
  <a href=${this.helpUrl} target="_blank" rel="noopener noreferrer" class="ga-button ga-button--secondary ga-button--icon-only"
2867
- aria-label=${b("Help")}>
2868
- <span class="ga-icon">${M($e)}</span>
2964
+ aria-label=${x("Help")}>
2965
+ <span class="ga-icon">${M(et)}</span>
2869
2966
  </a>
2870
2967
  ` : n`
2871
- <button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${b("Help")}
2968
+ <button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${x("Help")}
2872
2969
  @click=${this._handleClick}>
2873
- <span class="ga-icon">${M($e)}</span>
2970
+ <span class="ga-icon">${M(et)}</span>
2874
2971
  </button>
2875
2972
  `;
2876
2973
  }
2877
2974
  };
2878
- N([s({ attribute: "help-url" })], rn.prototype, "helpUrl", void 0), rn = N([x(), o("vsn-help")], rn);
2975
+ P([s({ attribute: "help-url" })], Z.prototype, "helpUrl", void 0), Z = P([S(), o("vsn-help")], Z);
2879
2976
  //#endregion
2880
2977
  //#region src/components/vsn-top-bar/vsn-top-bar.ts
2881
2978
  var Q = class extends e {
2882
2979
  constructor() {
2883
- super(), this.modules = [], this.feedback = null, this.showHelp = !1, this.showNotification = !1, this.notificationActive = !1, this.lang = "en", new R(this, () => !0);
2980
+ super(), this.modules = [], this.feedback = null, this.showHelp = !1, this.showNotification = !1, this.notificationActive = !1, this.modulesLoading = !1, this.lang = "en", new z(this, () => !0);
2884
2981
  }
2885
2982
  willUpdate(e) {
2886
- e.has("lang") && It(this.lang).catch(console.error);
2983
+ e.has("lang") && Rt(this.lang).catch(console.error);
2887
2984
  }
2888
2985
  focusMenuToggle() {
2889
2986
  this.renderRoot.querySelector("vsn-menu-toggle")?.focus();
@@ -2969,7 +3066,7 @@ var Q = class extends e {
2969
3066
  <div class="ga-page-header__menu-breadcrumbs">
2970
3067
  <vsn-menu-toggle></vsn-menu-toggle>
2971
3068
  <vsn-home .landingPageUrl=${this.landingPageUrl}></vsn-home>
2972
- <vsn-breadcrumbs .tree=${this.tree} .modules=${this.modules} .activeModuleId=${this.activeModuleId}></vsn-breadcrumbs>
3069
+ <vsn-breadcrumbs .tree=${this.tree} .modules=${this.modules} .activeModuleId=${this.activeModuleId} .modulesLoading=${this.modulesLoading}></vsn-breadcrumbs>
2973
3070
  </div>
2974
3071
  <div class="ga-page-header__context-selector">
2975
3072
  <slot name="context-selector"></slot>
@@ -2985,22 +3082,22 @@ var Q = class extends e {
2985
3082
  `;
2986
3083
  }
2987
3084
  };
2988
- 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({
3085
+ P([s({ attribute: !1 })], Q.prototype, "tree", void 0), P([s({ type: Array })], Q.prototype, "modules", void 0), P([s()], Q.prototype, "activeModuleId", void 0), P([s({ attribute: "landing-page-url" })], Q.prototype, "landingPageUrl", void 0), P([s({ attribute: !1 })], Q.prototype, "feedback", void 0), P([s({ attribute: !1 })], Q.prototype, "auth", void 0), P([s({
2989
3086
  type: Boolean,
2990
3087
  attribute: "show-help"
2991
- })], Q.prototype, "showHelp", void 0), N([s({ attribute: "help-url" })], Q.prototype, "helpUrl", void 0), N([s({
3088
+ })], Q.prototype, "showHelp", void 0), P([s({ attribute: "help-url" })], Q.prototype, "helpUrl", void 0), P([s({
2992
3089
  type: Boolean,
2993
3090
  attribute: "show-notification"
2994
- })], Q.prototype, "showNotification", void 0), N([s({
3091
+ })], Q.prototype, "showNotification", void 0), P([s({
2995
3092
  type: Boolean,
2996
3093
  attribute: "notification-active"
2997
- })], Q.prototype, "notificationActive", void 0), N([s()], Q.prototype, "lang", void 0), Q = N([o("vsn-top-bar")], Q);
3094
+ })], Q.prototype, "notificationActive", void 0), P([s({ type: Boolean })], Q.prototype, "modulesLoading", void 0), P([s()], Q.prototype, "lang", void 0), Q = P([o("vsn-top-bar")], Q);
2998
3095
  //#endregion
2999
3096
  //#region src/components/vsn-navigation.ts
3000
3097
  var $ = class extends e {
3001
3098
  constructor(...e) {
3002
3099
  super(...e), this.lang = "en", this.showHelp = !1, this.feedback = null, this.showNotification = !1, this.notificationActive = !1, this.open = !1, this._currentItem = "", this._resolvedModules = [], this._modulesLoading = !1, this._modulesLoadToken = 0, this._restoreFocusToToggle = !1, this._onShortcut = (e) => {
3003
- e.defaultPrevented || !Fe(e) || e.key.toLowerCase() !== "k" || (e.preventDefault(), this.dispatchEvent(new CustomEvent("vsn-open", {
3100
+ e.defaultPrevented || !Ie(e) || e.key.toLowerCase() !== "k" || (e.preventDefault(), this.dispatchEvent(new CustomEvent("vsn-open", {
3004
3101
  cancelable: !0,
3005
3102
  bubbles: !0,
3006
3103
  composed: !0
@@ -3029,7 +3126,7 @@ var $ = class extends e {
3029
3126
  static {
3030
3127
  this.styles = [
3031
3128
  h,
3032
- Jt,
3129
+ Xt,
3033
3130
  t`
3034
3131
  :host {
3035
3132
  display: flex;
@@ -3105,6 +3202,7 @@ var $ = class extends e {
3105
3202
  .tree=${this.tree}
3106
3203
  .modules=${this._resolvedModules}
3107
3204
  .activeModuleId=${this.modules?.activeModuleId}
3205
+ .modulesLoading=${this._modulesLoading}
3108
3206
  lang=${this._resolvedLang}
3109
3207
  landing-page-url=${this.landingPageUrl ?? ""}
3110
3208
  ?show-help=${this.showHelp}
@@ -3140,19 +3238,19 @@ var $ = class extends e {
3140
3238
  `;
3141
3239
  }
3142
3240
  };
3143
- 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({
3241
+ P([s()], $.prototype, "lang", void 0), P([s({ attribute: !1 })], $.prototype, "tree", void 0), P([s({ attribute: !1 })], $.prototype, "modules", void 0), P([s({ attribute: !1 })], $.prototype, "auth", void 0), P([s({ attribute: "landing-page-url" })], $.prototype, "landingPageUrl", void 0), P([s({
3144
3242
  type: Boolean,
3145
3243
  attribute: "show-help"
3146
- })], $.prototype, "showHelp", void 0), N([s({ attribute: "help-url" })], $.prototype, "helpUrl", void 0), N([s({ attribute: !1 })], $.prototype, "feedback", void 0), N([s({
3244
+ })], $.prototype, "showHelp", void 0), P([s({ attribute: "help-url" })], $.prototype, "helpUrl", void 0), P([s({ attribute: !1 })], $.prototype, "feedback", void 0), P([s({
3147
3245
  type: Boolean,
3148
3246
  attribute: "show-notification"
3149
- })], $.prototype, "showNotification", void 0), N([s({
3247
+ })], $.prototype, "showNotification", void 0), P([s({
3150
3248
  type: Boolean,
3151
3249
  attribute: "notification-active"
3152
- })], $.prototype, "notificationActive", void 0), N([s({
3250
+ })], $.prototype, "notificationActive", void 0), P([s({
3153
3251
  type: Boolean,
3154
3252
  attribute: "open",
3155
3253
  reflect: !0
3156
- })], $.prototype, "open", void 0), N([l()], $.prototype, "_currentItem", void 0), N([l()], $.prototype, "_resolvedModules", void 0), N([l()], $.prototype, "_modulesLoading", void 0), $ = N([o("vsn-navigation")], $);
3254
+ })], $.prototype, "open", void 0), P([l()], $.prototype, "_currentItem", void 0), P([l()], $.prototype, "_resolvedModules", void 0), P([l()], $.prototype, "_modulesLoading", void 0), $ = P([o("vsn-navigation")], $);
3157
3255
  //#endregion
3158
3256
  export { v as SearchError, $ as VSNNavigation, g as isTreeLeaf, _ as isTreeParent };