@visma-swno/vsn-navigation 1.2.0-beta.17 → 1.2.0-beta.19
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 +239 -185
- package/dist/custom-elements.json +1 -1
- package/package.json +1 -1
|
@@ -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"), fe = "lit-localize-status", y = (e, ...t) => ({
|
|
200
200
|
strTag: !0,
|
|
201
201
|
strings: e,
|
|
202
202
|
values: t
|
|
203
|
-
}),
|
|
203
|
+
}), pe = (e) => typeof e != "string" && "strTag" in e, me = (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
|
+
}, he = ((e) => pe(e) ? me(e.strings, e.values) : e), b = he, ge = !1;
|
|
208
|
+
function _e(e) {
|
|
209
|
+
if (ge) throw Error("lit-localize can only be configured once");
|
|
210
|
+
b = e, ge = !0;
|
|
211
211
|
}
|
|
212
212
|
//#endregion
|
|
213
213
|
//#region node_modules/@lit/localize/internal/localized-controller.js
|
|
214
|
-
var
|
|
214
|
+
var ve = 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(fe, this.__litLocalizeEventHandler);
|
|
222
222
|
}
|
|
223
223
|
hostDisconnected() {
|
|
224
|
-
window.removeEventListener(
|
|
224
|
+
window.removeEventListener(fe, this.__litLocalizeEventHandler);
|
|
225
225
|
}
|
|
226
|
-
},
|
|
226
|
+
}, ye = (e) => e.addController(new ve(e)), x = () => (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,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
|
+
}, S = [];
|
|
239
|
+
for (let e = 0; e < 256; e++) S[e] = (e >> 4 & 15).toString(16) + (e & 15).toString(16);
|
|
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
|
|
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];
|
|
244
244
|
}
|
|
245
|
-
var
|
|
246
|
-
function
|
|
247
|
-
return (t ?
|
|
245
|
+
var Se = "h", Ce = "s";
|
|
246
|
+
function we(e, t) {
|
|
247
|
+
return (t ? Se : Ce) + xe(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 Te = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new Map();
|
|
252
|
+
function De(e, t, n) {
|
|
253
253
|
if (e) {
|
|
254
|
-
let r = e[n?.id ??
|
|
254
|
+
let r = e[n?.id ?? Oe(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 me(r.strings, t.values, r.values);
|
|
258
258
|
{
|
|
259
|
-
let e =
|
|
260
|
-
return e === void 0 && (e = r.values,
|
|
259
|
+
let e = Te.get(r);
|
|
260
|
+
return e === void 0 && (e = r.values, Te.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 he(t);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
let t = typeof e == "string" ? e : e.strings, n =
|
|
271
|
-
return n === void 0 && (n =
|
|
269
|
+
function Oe(e) {
|
|
270
|
+
let t = typeof e == "string" ? e : e.strings, n = Ee.get(t);
|
|
271
|
+
return n === void 0 && (n = we(t, typeof e != "string" && !("strTag" in e)), Ee.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 C(e) {
|
|
276
|
+
window.dispatchEvent(new CustomEvent(fe, { 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 w = "", T, ke, E, D, Ae, O = new be();
|
|
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");
|
|
287
|
+
k++;
|
|
288
|
+
let t = k;
|
|
289
|
+
return T = e, O.settled && (O = new be()), C({
|
|
290
290
|
status: "loading",
|
|
291
291
|
loadingLocale: e
|
|
292
|
-
}), (e ===
|
|
293
|
-
|
|
292
|
+
}), (e === ke ? Promise.resolve({ templates: void 0 }) : D(e)).then((n) => {
|
|
293
|
+
k === t && (w = e, T = void 0, Ae = n.templates, C({
|
|
294
294
|
status: "ready",
|
|
295
295
|
readyLocale: e
|
|
296
|
-
}),
|
|
296
|
+
}), O.resolve());
|
|
297
297
|
}, (n) => {
|
|
298
|
-
|
|
298
|
+
k === t && (C({
|
|
299
299
|
status: "error",
|
|
300
300
|
errorLocale: e,
|
|
301
301
|
errorMessage: n.toString()
|
|
302
|
-
}),
|
|
303
|
-
}),
|
|
304
|
-
},
|
|
302
|
+
}), O.reject(n));
|
|
303
|
+
}), O.promise;
|
|
304
|
+
}, Pe = () => {
|
|
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
|
+
}, 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`;
|
|
309
309
|
//#endregion
|
|
310
310
|
//#region src/shared/icons.ts
|
|
311
|
-
function
|
|
311
|
+
function M(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 j(e, t = 24, r) {
|
|
|
323
323
|
class=${r ?? ""}
|
|
324
324
|
>${e}</svg>`;
|
|
325
325
|
}
|
|
326
|
-
var
|
|
326
|
+
var Ke = i``, qe = i`
|
|
327
327
|
<path d="M4 5h16"/>
|
|
328
328
|
<path d="M4 12h16"/>
|
|
329
329
|
<path d="M4 19h16"/>
|
|
330
|
-
`,
|
|
330
|
+
`, Je = 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
|
+
`, Ye = 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
|
+
`, Xe = 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
|
+
`, Ze = 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 Qe = 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
|
+
`, $e = 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
|
+
`, et = 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 tt = 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
|
+
`, nt = 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
|
|
384
|
+
var rt = i`
|
|
385
385
|
<path d="m7 15 5 5 5-5"/>
|
|
386
386
|
<path d="m7 9 5-5 5 5"/>
|
|
387
|
-
`,
|
|
387
|
+
`, it = i`
|
|
388
388
|
<path d="m18 15-6-6-6 6"/>
|
|
389
|
-
`,
|
|
389
|
+
`, at = i`
|
|
390
390
|
<path d="m6 9 6 6 6-6"/>
|
|
391
391
|
`, ot = i`
|
|
392
392
|
<circle cx="11" cy="11" r="8"/>
|
|
@@ -474,7 +474,7 @@ var P, F = class extends e {
|
|
|
474
474
|
<div class="ga-tooltip ga-tooltip--right-center w-34 max-w-135">${this.tree?.label}</div>
|
|
475
475
|
</div>
|
|
476
476
|
<span class="ga-side-navigation__item-icon">
|
|
477
|
-
${e ? this._isExpanded ?
|
|
477
|
+
${e ? this._isExpanded ? M(at, 16) : M(lt, 16) : ""}
|
|
478
478
|
</span>
|
|
479
479
|
<div class="ga-side-navigation__item-content">
|
|
480
480
|
<div class="ga-side-navigation__item-label">${this.tree?.label}</div>
|
|
@@ -508,7 +508,7 @@ var P, F = class extends e {
|
|
|
508
508
|
this._isExpanded = !this._isExpanded, e.preventDefault(), e.stopPropagation();
|
|
509
509
|
return;
|
|
510
510
|
}
|
|
511
|
-
if (e.button !== 0 ||
|
|
511
|
+
if (e.button !== 0 || A(e)) return;
|
|
512
512
|
e.preventDefault(), e.stopPropagation();
|
|
513
513
|
let n = new CustomEvent("vsn-menu-item-changed", {
|
|
514
514
|
bubbles: !0,
|
|
@@ -519,7 +519,7 @@ var P, F = class extends e {
|
|
|
519
519
|
}
|
|
520
520
|
};
|
|
521
521
|
N([s({ attribute: !1 })], F.prototype, "tree", void 0), N([s({ type: Number })], F.prototype, "level", void 0), N([ue({
|
|
522
|
-
context:
|
|
522
|
+
context: de,
|
|
523
523
|
subscribe: !0
|
|
524
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);
|
|
525
525
|
//#endregion
|
|
@@ -551,15 +551,15 @@ var I = class extends e {
|
|
|
551
551
|
<vsn-menu-item .tree=${e}></vsn-menu-item>`;
|
|
552
552
|
}
|
|
553
553
|
};
|
|
554
|
-
N([s({ attribute: !1 })], I.prototype, "items", void 0), N([le({ context:
|
|
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);
|
|
555
555
|
//#endregion
|
|
556
556
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-button.ts
|
|
557
557
|
var L = class extends e {
|
|
558
558
|
constructor(...e) {
|
|
559
559
|
super(...e), this.label = "", this.closeOnClick = !1, this._onKeydown = (e) => {
|
|
560
|
-
e.defaultPrevented ||
|
|
560
|
+
e.defaultPrevented || j(e) && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), this.click());
|
|
561
561
|
}, this._onClick = (e) => {
|
|
562
|
-
e.defaultPrevented || e.button !== 0 ||
|
|
562
|
+
e.defaultPrevented || e.button !== 0 || A(e) || this.closeOnClick && this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
|
|
563
563
|
bubbles: !0,
|
|
564
564
|
composed: !0
|
|
565
565
|
}));
|
|
@@ -703,9 +703,9 @@ ut = N([o("vsn-menu-separator")], ut);
|
|
|
703
703
|
var dt = class {
|
|
704
704
|
constructor(e) {
|
|
705
705
|
this._prevExpanded = !1, this.onUserKeydown = (e) => {
|
|
706
|
-
e.defaultPrevented ||
|
|
706
|
+
e.defaultPrevented || A(e) || (e.key === "Enter" || e.key === " " || e.key === "Escape" && this.host.expanded) && (e.preventDefault(), this.host.expanded = !this.host.expanded);
|
|
707
707
|
}, this.onDropdownKeydown = (e) => {
|
|
708
|
-
if (e.defaultPrevented ||
|
|
708
|
+
if (e.defaultPrevented || A(e)) return;
|
|
709
709
|
if (e.key === "Enter" || e.key === " ") {
|
|
710
710
|
let t = e.target;
|
|
711
711
|
t instanceof HTMLElement && t.classList.contains("ga-side-navigation__footer-dropdown-item") && (e.preventDefault(), t.click());
|
|
@@ -778,11 +778,11 @@ var R = class {
|
|
|
778
778
|
this._rootElement == null && this._rootSelector && (this._rootElement = this._host.renderRoot.querySelector(this._rootSelector), this._rootElement != null && this._rootElement.addEventListener("keydown", this._onKeyDown));
|
|
779
779
|
}
|
|
780
780
|
}, ht = {
|
|
781
|
-
profile:
|
|
782
|
-
logout:
|
|
781
|
+
profile: et,
|
|
782
|
+
logout: tt
|
|
783
783
|
}, gt = () => ({
|
|
784
|
-
profile:
|
|
785
|
-
logout:
|
|
784
|
+
profile: b("My profile"),
|
|
785
|
+
logout: b("Log out")
|
|
786
786
|
}), z = class extends e {
|
|
787
787
|
createRenderRoot() {
|
|
788
788
|
return this;
|
|
@@ -836,7 +836,7 @@ var R = class {
|
|
|
836
836
|
</div>
|
|
837
837
|
|
|
838
838
|
<span class="ga-side-navigation__user-action">
|
|
839
|
-
${this.expanded ?
|
|
839
|
+
${this.expanded ? M(it, 16) : M(rt, 16)}
|
|
840
840
|
</span>
|
|
841
841
|
|
|
842
842
|
</div>
|
|
@@ -850,14 +850,14 @@ var R = class {
|
|
|
850
850
|
${this._items.map((e) => {
|
|
851
851
|
let t = n`
|
|
852
852
|
<span class="ga-side-navigation__footer-dropdown-icon">
|
|
853
|
-
${
|
|
853
|
+
${M(ht[e.id], 16)}
|
|
854
854
|
</span>
|
|
855
855
|
<span class="ga-side-navigation__footer-dropdown-title">
|
|
856
856
|
${e.label}
|
|
857
857
|
</span>
|
|
858
858
|
${e.external ? n`
|
|
859
859
|
<span class="ga-side-navigation__footer-dropdown-trail">
|
|
860
|
-
${
|
|
860
|
+
${M(nt, 16)}
|
|
861
861
|
</span>
|
|
862
862
|
` : r}
|
|
863
863
|
`;
|
|
@@ -906,20 +906,20 @@ var R = class {
|
|
|
906
906
|
@error=${() => {
|
|
907
907
|
this._avatarFailed = !0;
|
|
908
908
|
}}/>` : n`<span class="ga-side-navigation__user-avatar vsn-side-navigation__user-avatar--icon">
|
|
909
|
-
${
|
|
909
|
+
${M(et, 24)}
|
|
910
910
|
</span>`;
|
|
911
911
|
}
|
|
912
912
|
};
|
|
913
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({
|
|
914
914
|
type: Boolean,
|
|
915
915
|
reflect: !0
|
|
916
|
-
})], z.prototype, "expanded", void 0), N([l()], z.prototype, "_avatarFailed", void 0), z = N([
|
|
916
|
+
})], z.prototype, "expanded", void 0), N([l()], z.prototype, "_avatarFailed", void 0), z = N([x(), o("vsn-footer")], z);
|
|
917
917
|
//#endregion
|
|
918
918
|
//#region src/components/vsn-side-bar/vsn-header/vsn-header.keyboard.ts
|
|
919
919
|
var _t = class {
|
|
920
920
|
constructor(e) {
|
|
921
921
|
this.onSwitcherKeydown = (e) => {
|
|
922
|
-
e.defaultPrevented ||
|
|
922
|
+
e.defaultPrevented || A(e) || (this.host.expanded && (e.key === "Enter" || e.key === " " || e.key === "Escape") ? this.host.requestClose() && e.preventDefault() : !this.host.expanded && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), (this.host.hasAvailableItems || this.host.modulesLoading) && (this.host.expanded = !this.host.expanded)));
|
|
923
923
|
}, this.host = e, e.addController(this);
|
|
924
924
|
}
|
|
925
925
|
hostConnected() {}
|
|
@@ -927,12 +927,12 @@ var _t = class {
|
|
|
927
927
|
constructor(...e) {
|
|
928
928
|
super(...e), this.items = [], this.loading = !1, this.maxHeight = 0, this._handleKeydown = (e) => {
|
|
929
929
|
if (e.defaultPrevented) return;
|
|
930
|
-
if (
|
|
930
|
+
if (j(e) && (e.key === "Enter" || e.key === " ")) {
|
|
931
931
|
let t = e.target;
|
|
932
932
|
t instanceof HTMLElement && t.classList.contains("ga-side-navigation__switcher-dropdown-item") && (e.preventDefault(), t.click());
|
|
933
933
|
return;
|
|
934
934
|
}
|
|
935
|
-
if (
|
|
935
|
+
if (A(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
936
936
|
e.preventDefault();
|
|
937
937
|
let t = Array.from(this.querySelectorAll(".ga-side-navigation__switcher-dropdown-item"));
|
|
938
938
|
if (t.length === 0) return;
|
|
@@ -947,7 +947,7 @@ var _t = class {
|
|
|
947
947
|
this.loading || this.querySelector(".ga-side-navigation__switcher-dropdown-item")?.focus();
|
|
948
948
|
}
|
|
949
949
|
_handleItemClick(e, t) {
|
|
950
|
-
|
|
950
|
+
A(e) || (e.preventDefault(), this.dispatchEvent(new CustomEvent("item-select", {
|
|
951
951
|
detail: { id: t },
|
|
952
952
|
bubbles: !0,
|
|
953
953
|
composed: !0
|
|
@@ -958,16 +958,16 @@ var _t = class {
|
|
|
958
958
|
<div class="ga-side-navigation__switcher-dropdown vsn-switcher-dropdown--loading"
|
|
959
959
|
role="status"
|
|
960
960
|
aria-busy="true"
|
|
961
|
-
aria-label=${
|
|
961
|
+
aria-label=${b("Loading modules")}>
|
|
962
962
|
<span class="vsn-spinner"></span>
|
|
963
963
|
</div>
|
|
964
964
|
` : n`
|
|
965
965
|
<div class="ga-side-navigation__switcher-dropdown ga-scroll"
|
|
966
966
|
role="menu"
|
|
967
967
|
style=${`max-height: ${Math.max(0, this.maxHeight)}px`}
|
|
968
|
-
aria-label=${
|
|
968
|
+
aria-label=${Ie()}
|
|
969
969
|
@keydown=${this._handleKeydown}>
|
|
970
|
-
<span class="ga-side-navigation__switcher-dropdown-header">${
|
|
970
|
+
<span class="ga-side-navigation__switcher-dropdown-header">${Ie()}</span>
|
|
971
971
|
${this.items.map((e) => n`
|
|
972
972
|
<a class="ga-side-navigation__switcher-dropdown-item"
|
|
973
973
|
href=${e.url ?? ""}
|
|
@@ -980,7 +980,7 @@ var _t = class {
|
|
|
980
980
|
`;
|
|
981
981
|
}
|
|
982
982
|
};
|
|
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([
|
|
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);
|
|
984
984
|
//#endregion
|
|
985
985
|
//#region src/components/vsn-side-bar/vsn-search/vsn-search.ts
|
|
986
986
|
var V = class extends e {
|
|
@@ -1001,7 +1001,7 @@ var V = class extends e {
|
|
|
1001
1001
|
composed: !0
|
|
1002
1002
|
}));
|
|
1003
1003
|
}, this._handleEscape = (e) => {
|
|
1004
|
-
e.defaultPrevented ||
|
|
1004
|
+
e.defaultPrevented || j(e) && e.key === "Escape" && this.value.length > 0 && (e.preventDefault(), this._emitSearchCleared());
|
|
1005
1005
|
};
|
|
1006
1006
|
}
|
|
1007
1007
|
createRenderRoot() {
|
|
@@ -1026,7 +1026,7 @@ var V = class extends e {
|
|
|
1026
1026
|
this._cancelDebounce(), super.disconnectedCallback();
|
|
1027
1027
|
}
|
|
1028
1028
|
_handleEnter(e) {
|
|
1029
|
-
e.defaultPrevented ||
|
|
1029
|
+
e.defaultPrevented || j(e) && e.key === "Enter" && this._emitSearch();
|
|
1030
1030
|
}
|
|
1031
1031
|
render() {
|
|
1032
1032
|
let e = this.value.length > 0 && this.value.length < 3;
|
|
@@ -1035,20 +1035,20 @@ var V = class extends e {
|
|
|
1035
1035
|
<button
|
|
1036
1036
|
type="button"
|
|
1037
1037
|
class="vsn-search__trigger"
|
|
1038
|
-
aria-label=${
|
|
1038
|
+
aria-label=${b("Search")}
|
|
1039
1039
|
?disabled=${!this._canSearch}
|
|
1040
1040
|
@click=${this._emitSearch}>
|
|
1041
|
-
${
|
|
1041
|
+
${M(ot, 24)}
|
|
1042
1042
|
</button>
|
|
1043
1043
|
<input type="search"
|
|
1044
|
-
.placeholder=${
|
|
1044
|
+
.placeholder=${Le()}
|
|
1045
1045
|
.value=${this.value}
|
|
1046
1046
|
@input=${this._handleInput}
|
|
1047
1047
|
@keydown=${this._handleEnter}/>
|
|
1048
1048
|
${this._trailingSlot()}
|
|
1049
1049
|
</div>
|
|
1050
1050
|
${u(e, () => n`
|
|
1051
|
-
<div class="vsn-search__helper">${
|
|
1051
|
+
<div class="vsn-search__helper">${ze(3)}</div>`)}
|
|
1052
1052
|
`;
|
|
1053
1053
|
}
|
|
1054
1054
|
_trailingSlot() {
|
|
@@ -1060,13 +1060,13 @@ var V = class extends e {
|
|
|
1060
1060
|
`;
|
|
1061
1061
|
}
|
|
1062
1062
|
_spinner() {
|
|
1063
|
-
return n`<span class="vsn-spinner" role="status" aria-label=${
|
|
1063
|
+
return n`<span class="vsn-spinner" role="status" aria-label=${b("Searching")}></span>`;
|
|
1064
1064
|
}
|
|
1065
1065
|
_clearButton() {
|
|
1066
1066
|
return n`
|
|
1067
|
-
<button class="vsn-search__clear" aria-label=${
|
|
1067
|
+
<button class="vsn-search__clear" aria-label=${b("Clear search")}
|
|
1068
1068
|
@click=${this._emitSearchCleared}>
|
|
1069
|
-
${
|
|
1069
|
+
${M(st, 16)}
|
|
1070
1070
|
</button>
|
|
1071
1071
|
`;
|
|
1072
1072
|
}
|
|
@@ -1074,7 +1074,7 @@ var V = class extends e {
|
|
|
1074
1074
|
return n`<kbd class="ga-side-navigation__search-shortcut">${this.shortcut}</kbd>`;
|
|
1075
1075
|
}
|
|
1076
1076
|
};
|
|
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([
|
|
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);
|
|
1078
1078
|
//#endregion
|
|
1079
1079
|
//#region src/components/vsn-side-bar/vsn-header/vsn-header.ts
|
|
1080
1080
|
var H = class extends e {
|
|
@@ -1109,7 +1109,7 @@ var H = class extends e {
|
|
|
1109
1109
|
title="">
|
|
1110
1110
|
<span class="ga-side-navigation__switcher-title">${e.title}</span>
|
|
1111
1111
|
<span class="ga-side-navigation__switcher-action">
|
|
1112
|
-
${this.canClose ? this.expanded ?
|
|
1112
|
+
${this.canClose ? this.expanded ? M(at, 16) : M(rt, 16) : M(Ke, 16)}
|
|
1113
1113
|
</span>
|
|
1114
1114
|
</div>
|
|
1115
1115
|
|
|
@@ -1124,7 +1124,7 @@ var H = class extends e {
|
|
|
1124
1124
|
|
|
1125
1125
|
${u(this.search?.enabled, () => n`
|
|
1126
1126
|
<vsn-search
|
|
1127
|
-
.shortcut=${
|
|
1127
|
+
.shortcut=${Re()}
|
|
1128
1128
|
.value=${this.searchValue}
|
|
1129
1129
|
.loading=${this.searchLoading}>
|
|
1130
1130
|
</vsn-search>`)}
|
|
@@ -1134,7 +1134,7 @@ var H = class extends e {
|
|
|
1134
1134
|
get _state() {
|
|
1135
1135
|
if (this.modulesLoading) return {
|
|
1136
1136
|
kind: "loading",
|
|
1137
|
-
title: this.activeModuleLabel ||
|
|
1137
|
+
title: this.activeModuleLabel || He()
|
|
1138
1138
|
};
|
|
1139
1139
|
let e = this.modules.find((e) => e.id === this.activeModuleId);
|
|
1140
1140
|
return e ? {
|
|
@@ -1143,7 +1143,7 @@ var H = class extends e {
|
|
|
1143
1143
|
available: this.modules.filter((t) => t.id !== e.id)
|
|
1144
1144
|
} : {
|
|
1145
1145
|
kind: "no-active",
|
|
1146
|
-
title:
|
|
1146
|
+
title: He(),
|
|
1147
1147
|
available: this.modules
|
|
1148
1148
|
};
|
|
1149
1149
|
}
|
|
@@ -1184,13 +1184,13 @@ var H = class extends e {
|
|
|
1184
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({
|
|
1185
1185
|
type: Boolean,
|
|
1186
1186
|
reflect: !0
|
|
1187
|
-
})], H.prototype, "expanded", void 0), H = N([
|
|
1187
|
+
})], H.prototype, "expanded", void 0), H = N([x(), o("vsn-header")], H);
|
|
1188
1188
|
//#endregion
|
|
1189
1189
|
//#region src/components/vsn-side-bar/vsn-search-results/vsn-search-results.keyboard.ts
|
|
1190
1190
|
var vt = class {
|
|
1191
1191
|
constructor(e) {
|
|
1192
1192
|
this.onResultsKeydown = (e) => {
|
|
1193
|
-
if (e.defaultPrevented ||
|
|
1193
|
+
if (e.defaultPrevented || A(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
1194
1194
|
e.preventDefault();
|
|
1195
1195
|
let t = Array.from(this.host.querySelectorAll(".ga-side-navigation__search-results-item"));
|
|
1196
1196
|
if (t.length === 0) return;
|
|
@@ -1275,10 +1275,10 @@ var G = class extends e {
|
|
|
1275
1275
|
_emptyState() {
|
|
1276
1276
|
return n`
|
|
1277
1277
|
<div class="vsn-search-results__empty" role="status" aria-live="polite">
|
|
1278
|
-
<div class="vsn-search-results__empty-title">${
|
|
1279
|
-
<div class="vsn-search-results__empty-message">${
|
|
1280
|
-
<div class="vsn-search-results__empty-hint">${
|
|
1281
|
-
<div class="vsn-search-results__empty-support">${
|
|
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>
|
|
1282
1282
|
</div>
|
|
1283
1283
|
`;
|
|
1284
1284
|
}
|
|
@@ -1295,7 +1295,7 @@ var G = class extends e {
|
|
|
1295
1295
|
<div class="ga-side-navigation__body h-full ga-scroll"
|
|
1296
1296
|
@keydown=${this._keyboard.onResultsKeydown}>
|
|
1297
1297
|
<div class="ga-side-navigation__search-results-title">
|
|
1298
|
-
${
|
|
1298
|
+
${b(t === 1 ? y`${t} result` : y`${t} results`)}
|
|
1299
1299
|
</div>
|
|
1300
1300
|
${e.map((e) => n`
|
|
1301
1301
|
<vsn-search-result-item .item=${e}></vsn-search-result-item>
|
|
@@ -1306,7 +1306,7 @@ var G = class extends e {
|
|
|
1306
1306
|
class="vsn-search-results__load-more"
|
|
1307
1307
|
?disabled=${this.loadingMore}
|
|
1308
1308
|
@click=${this._onLoadMore}>
|
|
1309
|
-
${
|
|
1309
|
+
${Ve()}
|
|
1310
1310
|
</button>
|
|
1311
1311
|
`)}
|
|
1312
1312
|
</div>
|
|
@@ -1319,7 +1319,7 @@ var G = class extends e {
|
|
|
1319
1319
|
}));
|
|
1320
1320
|
}
|
|
1321
1321
|
};
|
|
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([
|
|
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);
|
|
1323
1323
|
//#endregion
|
|
1324
1324
|
//#region src/components/vsn-side-bar/vsn-template/vsn-template.ts
|
|
1325
1325
|
var yt = [
|
|
@@ -1337,7 +1337,7 @@ var yt = [
|
|
|
1337
1337
|
<div class="ga-side-navigation__body h-full"
|
|
1338
1338
|
role="status"
|
|
1339
1339
|
aria-busy="true"
|
|
1340
|
-
aria-label=${
|
|
1340
|
+
aria-label=${b("Loading results")}>
|
|
1341
1341
|
${yt.map((e) => n`
|
|
1342
1342
|
<div class="vsn-template__row">
|
|
1343
1343
|
<div class="vsn-template__bar" style="width: ${e}px"></div>
|
|
@@ -1347,7 +1347,7 @@ var yt = [
|
|
|
1347
1347
|
`;
|
|
1348
1348
|
}
|
|
1349
1349
|
};
|
|
1350
|
-
bt = N([
|
|
1350
|
+
bt = N([x(), o("vsn-template")], bt);
|
|
1351
1351
|
//#endregion
|
|
1352
1352
|
//#region src/components/vsn-side-bar/vsn-error-state/vsn-error-state.ts
|
|
1353
1353
|
var xt = class extends e {
|
|
@@ -1357,16 +1357,16 @@ var xt = class extends e {
|
|
|
1357
1357
|
render() {
|
|
1358
1358
|
return n`
|
|
1359
1359
|
<div class="vsn-error-state" role="alert" aria-live="assertive">
|
|
1360
|
-
<div class="vsn-error-state__icon">${
|
|
1361
|
-
<div class="vsn-error-state__title">${
|
|
1362
|
-
<div class="vsn-error-state__message">${
|
|
1363
|
-
<div class="vsn-error-state__hint">${
|
|
1364
|
-
<div class="vsn-error-state__support">${
|
|
1360
|
+
<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>
|
|
1365
1365
|
</div>
|
|
1366
1366
|
`;
|
|
1367
1367
|
}
|
|
1368
1368
|
};
|
|
1369
|
-
xt = N([
|
|
1369
|
+
xt = N([x(), o("vsn-error-state")], xt);
|
|
1370
1370
|
//#endregion
|
|
1371
1371
|
//#region src/components/vsn-side-bar/vsn-search-scopes/vsn-search-scopes.ts
|
|
1372
1372
|
var K, q = class extends e {
|
|
@@ -1384,7 +1384,7 @@ var K, q = class extends e {
|
|
|
1384
1384
|
}
|
|
1385
1385
|
render() {
|
|
1386
1386
|
return this.scopes.length <= 1 ? n`` : n`
|
|
1387
|
-
<div class="ga-radio-group" role="radiogroup" aria-label=${
|
|
1387
|
+
<div class="ga-radio-group" role="radiogroup" aria-label=${b("Search scope")}>
|
|
1388
1388
|
${this.scopes.map((e) => this._renderScope(e))}
|
|
1389
1389
|
</div>
|
|
1390
1390
|
`;
|
|
@@ -1413,7 +1413,7 @@ var K, q = class extends e {
|
|
|
1413
1413
|
}));
|
|
1414
1414
|
}
|
|
1415
1415
|
};
|
|
1416
|
-
N([s({ attribute: !1 })], q.prototype, "scopes", void 0), N([s()], q.prototype, "selectedScopeId", void 0), q = K = N([
|
|
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);
|
|
1417
1417
|
//#endregion
|
|
1418
1418
|
//#region src/shared/lang/locale-codes.ts
|
|
1419
1419
|
var St = "en", Ct = [
|
|
@@ -1425,13 +1425,13 @@ var St = "en", Ct = [
|
|
|
1425
1425
|
], wt = /* @__PURE__ */ p({ templates: () => Tt }), Tt = {
|
|
1426
1426
|
s09a45db408570a7a: "Min profil",
|
|
1427
1427
|
s119f9875b7d4cdfc: "Har du brug for hjælp? Kontakt support.",
|
|
1428
|
-
s1228605ee65ddefa:
|
|
1429
|
-
s2bb33291ef8ae3d4:
|
|
1428
|
+
s1228605ee65ddefa: y`${0} resultat`,
|
|
1429
|
+
s2bb33291ef8ae3d4: y`Indtast mindst ${0} tegn for at søge`,
|
|
1430
1430
|
s2be8f715fbd00dcb: "Vi fandt ingen matchende resultater.",
|
|
1431
1431
|
s301876182accccad: " › ",
|
|
1432
1432
|
s3112f1ca236c8a61: "Indlæsningsfejl",
|
|
1433
1433
|
s352719d86112de9a: "Hjælp",
|
|
1434
|
-
s387a4a41718122cb:
|
|
1434
|
+
s387a4a41718122cb: y`${0} resultater`,
|
|
1435
1435
|
s3fb7db4771812f0c: "Hvis problemet fortsætter, genindlæs siden eller kontakt support.",
|
|
1436
1436
|
s4b0c6b66b4efd7d8: "Vælg en tjeneste",
|
|
1437
1437
|
s5be3c6d61cd9182f: "Notifikationer",
|
|
@@ -1455,13 +1455,13 @@ var St = "en", Ct = [
|
|
|
1455
1455
|
}, Et = /* @__PURE__ */ p({ templates: () => Dt }), Dt = {
|
|
1456
1456
|
s09a45db408570a7a: "Oma profiili",
|
|
1457
1457
|
s119f9875b7d4cdfc: "Tarvitsetko apua? Ota yhteyttä tukeen.",
|
|
1458
|
-
s1228605ee65ddefa:
|
|
1459
|
-
s2bb33291ef8ae3d4:
|
|
1458
|
+
s1228605ee65ddefa: y`${0} tulos`,
|
|
1459
|
+
s2bb33291ef8ae3d4: y`Kirjoita vähintään ${0} merkkiä hakua varten`,
|
|
1460
1460
|
s2be8f715fbd00dcb: "Emme löytäneet osumia.",
|
|
1461
1461
|
s301876182accccad: " › ",
|
|
1462
1462
|
s3112f1ca236c8a61: "Latausvirhe",
|
|
1463
1463
|
s352719d86112de9a: "Ohje",
|
|
1464
|
-
s387a4a41718122cb:
|
|
1464
|
+
s387a4a41718122cb: y`${0} tulosta`,
|
|
1465
1465
|
s3fb7db4771812f0c: "Jos ongelma jatkuu, lataa sivu uudelleen tai ota yhteyttä tukeen.",
|
|
1466
1466
|
s4b0c6b66b4efd7d8: "Valitse palvelu",
|
|
1467
1467
|
s5be3c6d61cd9182f: "Ilmoitukset",
|
|
@@ -1485,13 +1485,13 @@ var St = "en", Ct = [
|
|
|
1485
1485
|
}, Ot = /* @__PURE__ */ p({ templates: () => kt }), kt = {
|
|
1486
1486
|
s09a45db408570a7a: "Mijn profiel",
|
|
1487
1487
|
s119f9875b7d4cdfc: "Hulp nodig? Neem contact op met ondersteuning.",
|
|
1488
|
-
s1228605ee65ddefa:
|
|
1489
|
-
s2bb33291ef8ae3d4:
|
|
1488
|
+
s1228605ee65ddefa: y`${0} resultaat`,
|
|
1489
|
+
s2bb33291ef8ae3d4: y`Typ minimaal ${0} tekens om te zoeken`,
|
|
1490
1490
|
s2be8f715fbd00dcb: "We konden geen overeenkomsten vinden.",
|
|
1491
1491
|
s301876182accccad: " › ",
|
|
1492
1492
|
s3112f1ca236c8a61: "Laadingsfout",
|
|
1493
1493
|
s352719d86112de9a: "Hulp",
|
|
1494
|
-
s387a4a41718122cb:
|
|
1494
|
+
s387a4a41718122cb: y`${0} resultaten`,
|
|
1495
1495
|
s3fb7db4771812f0c: "Als het probleem aanhoudt, laad de pagina opnieuw of neem contact op met ondersteuning.",
|
|
1496
1496
|
s4b0c6b66b4efd7d8: "Kies een service",
|
|
1497
1497
|
s5be3c6d61cd9182f: "Meldingen",
|
|
@@ -1515,13 +1515,13 @@ var St = "en", Ct = [
|
|
|
1515
1515
|
}, At = /* @__PURE__ */ p({ templates: () => jt }), jt = {
|
|
1516
1516
|
s09a45db408570a7a: "Min profil",
|
|
1517
1517
|
s119f9875b7d4cdfc: "Trenger du hjelp? Kontakt støtte.",
|
|
1518
|
-
s1228605ee65ddefa:
|
|
1519
|
-
s2bb33291ef8ae3d4:
|
|
1518
|
+
s1228605ee65ddefa: y`${0} resultat`,
|
|
1519
|
+
s2bb33291ef8ae3d4: y`Skriv inn minst ${0} tegn for å søke`,
|
|
1520
1520
|
s2be8f715fbd00dcb: "Vi fant ingen treff.",
|
|
1521
1521
|
s301876182accccad: " › ",
|
|
1522
1522
|
s3112f1ca236c8a61: "Lastingsfeil",
|
|
1523
1523
|
s352719d86112de9a: "Hjelp",
|
|
1524
|
-
s387a4a41718122cb:
|
|
1524
|
+
s387a4a41718122cb: y`${0} resultater`,
|
|
1525
1525
|
s3fb7db4771812f0c: "Hvis problemet vedvarer, last inn siden på nytt eller kontakt støtte.",
|
|
1526
1526
|
s4b0c6b66b4efd7d8: "Velg en tjeneste",
|
|
1527
1527
|
s5be3c6d61cd9182f: "Varsler",
|
|
@@ -1545,13 +1545,13 @@ var St = "en", Ct = [
|
|
|
1545
1545
|
}, Mt = /* @__PURE__ */ p({ templates: () => Nt }), Nt = {
|
|
1546
1546
|
s09a45db408570a7a: "Min profil",
|
|
1547
1547
|
s119f9875b7d4cdfc: "Behöver du hjälp? Kontakta support.",
|
|
1548
|
-
s1228605ee65ddefa:
|
|
1549
|
-
s2bb33291ef8ae3d4:
|
|
1548
|
+
s1228605ee65ddefa: y`${0} resultat`,
|
|
1549
|
+
s2bb33291ef8ae3d4: y`Skriv minst ${0} tecken för att söka`,
|
|
1550
1550
|
s2be8f715fbd00dcb: "Vi hittade inga matchningar.",
|
|
1551
1551
|
s301876182accccad: " › ",
|
|
1552
1552
|
s3112f1ca236c8a61: "Laddningsfel",
|
|
1553
1553
|
s352719d86112de9a: "Hjälp",
|
|
1554
|
-
s387a4a41718122cb:
|
|
1554
|
+
s387a4a41718122cb: y`${0} resultat`,
|
|
1555
1555
|
s3fb7db4771812f0c: "Om problemet kvarstår, ladda om sidan eller kontakta support.",
|
|
1556
1556
|
s4b0c6b66b4efd7d8: "Välj en tjänst",
|
|
1557
1557
|
s5be3c6d61cd9182f: "Aviseringar",
|
|
@@ -1578,7 +1578,7 @@ var St = "en", Ct = [
|
|
|
1578
1578
|
nl: Ot,
|
|
1579
1579
|
no: At,
|
|
1580
1580
|
sv: Mt
|
|
1581
|
-
}, { getLocale: Ft, setLocale: It } =
|
|
1581
|
+
}, { getLocale: Ft, setLocale: It } = je({
|
|
1582
1582
|
sourceLocale: St,
|
|
1583
1583
|
targetLocales: Ct,
|
|
1584
1584
|
loadLocale: (e) => Pt[e] ? Promise.resolve(Pt[e]) : Promise.reject(/* @__PURE__ */ Error(`Unknown locale: ${e}`))
|
|
@@ -1866,7 +1866,7 @@ var St = "en", Ct = [
|
|
|
1866
1866
|
}, Kt = "button:not([disabled]), a[href], [tabindex]:not([tabindex=\"-1\"])", qt = class {
|
|
1867
1867
|
constructor(e) {
|
|
1868
1868
|
this.onKeydown = (e) => {
|
|
1869
|
-
if (e.defaultPrevented ||
|
|
1869
|
+
if (e.defaultPrevented || A(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
1870
1870
|
let t = this.host.renderRoot.querySelector("slot[name=\"nav-footer\"]");
|
|
1871
1871
|
if (!t) return;
|
|
1872
1872
|
let n = [];
|
|
@@ -2016,7 +2016,7 @@ var St = "en", Ct = [
|
|
|
2016
2016
|
this._searchResults = t.results, this._searchNextCursor = t.nextCursor, this._searchLoading = !1, this._searchAbort = void 0;
|
|
2017
2017
|
} catch (e) {
|
|
2018
2018
|
if (this._searchAbort !== r) return;
|
|
2019
|
-
e instanceof
|
|
2019
|
+
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;
|
|
2020
2020
|
}
|
|
2021
2021
|
}
|
|
2022
2022
|
async _loadMore() {
|
|
@@ -2036,7 +2036,7 @@ var St = "en", Ct = [
|
|
|
2036
2036
|
this._searchResults = [...this._searchResults ?? [], ...n.results], this._searchNextCursor = n.nextCursor, this._searchLoadingMore = !1, this._searchAbort = void 0;
|
|
2037
2037
|
} catch (e) {
|
|
2038
2038
|
if (this._searchAbort !== t) return;
|
|
2039
|
-
e instanceof
|
|
2039
|
+
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;
|
|
2040
2040
|
}
|
|
2041
2041
|
}
|
|
2042
2042
|
_filterTree(e) {
|
|
@@ -2122,7 +2122,7 @@ var St = "en", Ct = [
|
|
|
2122
2122
|
<vsn-search-scopes
|
|
2123
2123
|
.scopes=${[{
|
|
2124
2124
|
id: "menu",
|
|
2125
|
-
label:
|
|
2125
|
+
label: Be()
|
|
2126
2126
|
}, ...e.map((e) => ({
|
|
2127
2127
|
id: e.id,
|
|
2128
2128
|
label: e.label
|
|
@@ -2173,12 +2173,16 @@ var Xt, Y = class extends e {
|
|
|
2173
2173
|
}
|
|
2174
2174
|
}, this._onItemMouseLeave = () => {
|
|
2175
2175
|
this._showTooltip = !1;
|
|
2176
|
+
}, this._onKeyDown = (e) => {
|
|
2177
|
+
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)));
|
|
2176
2178
|
}, this._onClick = (e) => {
|
|
2179
|
+
if (e.defaultPrevented) return;
|
|
2177
2180
|
if (this._isParent()) {
|
|
2181
|
+
if (A(e)) return;
|
|
2178
2182
|
e.preventDefault(), e.stopPropagation(), this._isExpanded = !this._isExpanded;
|
|
2179
2183
|
return;
|
|
2180
2184
|
}
|
|
2181
|
-
if (!this.tree || e.button !== 0 ||
|
|
2185
|
+
if (!this.tree || e.button !== 0 || A(e)) return;
|
|
2182
2186
|
e.preventDefault(), e.stopPropagation();
|
|
2183
2187
|
let t = [...this.ancestorPath, this.tree];
|
|
2184
2188
|
this.dispatchEvent(new CustomEvent("vsn-breadcrumb-menu-leaf-select", {
|
|
@@ -2186,7 +2190,7 @@ var Xt, Y = class extends e {
|
|
|
2186
2190
|
bubbles: !0,
|
|
2187
2191
|
composed: !0
|
|
2188
2192
|
}));
|
|
2189
|
-
}, this._tooltipId = `vsn-menu-item-tooltip-${Xt._idCounter++}
|
|
2193
|
+
}, this._tooltipId = `vsn-menu-item-tooltip-${Xt._idCounter++}`, new R(this, () => this._isExpanded);
|
|
2190
2194
|
}
|
|
2191
2195
|
createRenderRoot() {
|
|
2192
2196
|
return this;
|
|
@@ -2212,14 +2216,14 @@ var Xt, Y = class extends e {
|
|
|
2212
2216
|
<div class="ga-tooltip ga-tooltip--right-start" style="white-space: nowrap">${e}</div>
|
|
2213
2217
|
</div>
|
|
2214
2218
|
<span class="ga-side-navigation__item-icon">
|
|
2215
|
-
${this._isParent() ? this._isExpanded ?
|
|
2219
|
+
${this._isParent() ? this._isExpanded ? M(at, 16) : M(lt, 16) : ""}
|
|
2216
2220
|
</span>
|
|
2217
2221
|
<div class="ga-side-navigation__item-content">
|
|
2218
2222
|
<div class="ga-side-navigation__item-label">${e}</div>
|
|
2219
2223
|
</div>
|
|
2220
2224
|
`;
|
|
2221
2225
|
return this._isParent() ? n`
|
|
2222
|
-
<div class="${f(t)}" aria-describedby="${this._tooltipId}" @click=${this._onClick}
|
|
2226
|
+
<div class="${f(t)}" role="button" tabindex="0" aria-expanded=${this._isExpanded} aria-describedby="${this._tooltipId}" @click=${this._onClick} @keydown=${this._onKeyDown}
|
|
2223
2227
|
@mouseenter=${this._onItemMouseEnter} @mouseleave=${this._onItemMouseLeave}>${r}
|
|
2224
2228
|
</div>` : n`<a class="${f(t)}" aria-describedby="${this._tooltipId}"
|
|
2225
2229
|
href="${this.tree && g(this.tree) ? this.tree.url : ""}" @click=${this._onClick}
|
|
@@ -2240,9 +2244,36 @@ N([s({ attribute: !1 })], Y.prototype, "tree", void 0), N([s({ type: Number })],
|
|
|
2240
2244
|
//#endregion
|
|
2241
2245
|
//#region src/components/vsn-top-bar/vsn-breadcrumb-menu.ts
|
|
2242
2246
|
var Zt = class extends e {
|
|
2247
|
+
constructor() {
|
|
2248
|
+
super(), this._handleKeyDown = (e) => {
|
|
2249
|
+
if (e.defaultPrevented || A(e)) return;
|
|
2250
|
+
if (e.key === "Escape") {
|
|
2251
|
+
e.preventDefault(), e.stopPropagation(), this.dispatchEvent(new CustomEvent("vsn-breadcrumb-menu-close", {
|
|
2252
|
+
bubbles: !0,
|
|
2253
|
+
composed: !0
|
|
2254
|
+
}));
|
|
2255
|
+
return;
|
|
2256
|
+
}
|
|
2257
|
+
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
|
|
2258
|
+
e.preventDefault(), e.stopPropagation();
|
|
2259
|
+
return;
|
|
2260
|
+
}
|
|
2261
|
+
if (e.key !== "ArrowUp" && e.key !== "ArrowDown") return;
|
|
2262
|
+
let t = Array.from(this.querySelectorAll("a.ga-side-navigation__item, div.ga-side-navigation__item[tabindex=\"0\"]"));
|
|
2263
|
+
if (!t.length) return;
|
|
2264
|
+
let n = t.indexOf(e.target);
|
|
2265
|
+
n !== -1 && (e.preventDefault(), e.stopPropagation(), e.key === "ArrowDown" ? n < t.length - 1 && t[n + 1].focus() : n > 0 && t[n - 1].focus());
|
|
2266
|
+
}, new R(this, () => !0);
|
|
2267
|
+
}
|
|
2243
2268
|
createRenderRoot() {
|
|
2244
2269
|
return this;
|
|
2245
2270
|
}
|
|
2271
|
+
connectedCallback() {
|
|
2272
|
+
super.connectedCallback(), this.addEventListener("keydown", this._handleKeyDown);
|
|
2273
|
+
}
|
|
2274
|
+
disconnectedCallback() {
|
|
2275
|
+
super.disconnectedCallback(), this.removeEventListener("keydown", this._handleKeyDown);
|
|
2276
|
+
}
|
|
2246
2277
|
menuItem(e) {
|
|
2247
2278
|
return n`
|
|
2248
2279
|
<vsn-breadcrumb-menu-item .tree=${e}></vsn-breadcrumb-menu-item>`;
|
|
@@ -2288,8 +2319,11 @@ var X = class extends e {
|
|
|
2288
2319
|
/* Temporary, until breadcrumb styles are updated */
|
|
2289
2320
|
|
|
2290
2321
|
.ga-breadcrumb {
|
|
2322
|
+
--_focus-ring-offset: calc(0.125rem * var(--ga-base-scaling-factor, 1));
|
|
2291
2323
|
flex-wrap: nowrap;
|
|
2292
2324
|
overflow-x: clip;
|
|
2325
|
+
padding-left: calc(2 * var(--_focus-ring-offset));
|
|
2326
|
+
margin-left: calc(-2 * var(--_focus-ring-offset));
|
|
2293
2327
|
}
|
|
2294
2328
|
|
|
2295
2329
|
/* Dropdowns use the native Popover API — promoted to the top layer on open,
|
|
@@ -2338,6 +2372,14 @@ var X = class extends e {
|
|
|
2338
2372
|
text-decoration: none;
|
|
2339
2373
|
color: var(--ga-color-text-body);
|
|
2340
2374
|
}
|
|
2375
|
+
|
|
2376
|
+
/* Focus indicator for keyboard navigation inside breadcrumb dropdowns */
|
|
2377
|
+
.ga-breadcrumb-item__menu .ga-side-navigation__item:focus-visible {
|
|
2378
|
+
outline: var(--_focus-ring-offset) solid var(--ga-color-border-focus);
|
|
2379
|
+
outline-offset: calc(-1 * var(--_focus-ring-offset));
|
|
2380
|
+
border-radius: var(--ga-radius);
|
|
2381
|
+
background-color: transparent;
|
|
2382
|
+
}
|
|
2341
2383
|
`
|
|
2342
2384
|
];
|
|
2343
2385
|
}
|
|
@@ -2413,10 +2455,19 @@ var X = class extends e {
|
|
|
2413
2455
|
}
|
|
2414
2456
|
_handlePopoverToggle(e, t) {
|
|
2415
2457
|
let n = t.newState === "open";
|
|
2416
|
-
this._openPopoverId = n ? e : null, n
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2458
|
+
if (this._openPopoverId = n ? e : null, n) {
|
|
2459
|
+
this.dispatchEvent(new CustomEvent("vsn-breadcrumb-dropdown-open", {
|
|
2460
|
+
bubbles: !0,
|
|
2461
|
+
composed: !0
|
|
2462
|
+
}));
|
|
2463
|
+
let t = this.shadowRoot?.getElementById(e);
|
|
2464
|
+
t && requestAnimationFrame(() => {
|
|
2465
|
+
t.querySelector("a.ga-side-navigation__item, div.ga-side-navigation__item[tabindex=\"0\"]")?.focus();
|
|
2466
|
+
});
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
_handleMenuClose(e, t) {
|
|
2470
|
+
(this.shadowRoot?.getElementById(t))?.hidePopover?.(), this.shadowRoot?.getElementById(e)?.focus();
|
|
2420
2471
|
}
|
|
2421
2472
|
_handleModuleSelect(e) {
|
|
2422
2473
|
(this.shadowRoot?.getElementById("vsn-bc-modules-popover"))?.hidePopover?.(), this.dispatchEvent(new CustomEvent("vsn-navigate", {
|
|
@@ -2454,6 +2505,7 @@ var X = class extends e {
|
|
|
2454
2505
|
popover="auto"
|
|
2455
2506
|
@beforetoggle=${(e) => this._handlePopoverBeforeToggle("vsn-bc-modules-trigger", e)}
|
|
2456
2507
|
@toggle=${(e) => this._handlePopoverToggle("vsn-bc-modules-popover", e)}
|
|
2508
|
+
@vsn-breadcrumb-menu-close=${() => this._handleMenuClose("vsn-bc-modules-trigger", "vsn-bc-modules-popover")}
|
|
2457
2509
|
>
|
|
2458
2510
|
<vsn-breadcrumb-menu
|
|
2459
2511
|
.treeList=${t}
|
|
@@ -2533,6 +2585,7 @@ var X = class extends e {
|
|
|
2533
2585
|
popover="auto"
|
|
2534
2586
|
@beforetoggle=${(e) => this._handlePopoverBeforeToggle(a, e)}
|
|
2535
2587
|
@toggle=${(e) => this._handlePopoverToggle(i, e)}
|
|
2588
|
+
@vsn-breadcrumb-menu-close=${() => this._handleMenuClose(a, i)}
|
|
2536
2589
|
>
|
|
2537
2590
|
<vsn-breadcrumb-menu
|
|
2538
2591
|
.treeList=${e.items}
|
|
@@ -2571,6 +2624,7 @@ var X = class extends e {
|
|
|
2571
2624
|
popover="auto"
|
|
2572
2625
|
@beforetoggle=${(e) => this._handlePopoverBeforeToggle("vsn-bc-overflow-trigger", e)}
|
|
2573
2626
|
@toggle=${(e) => this._handlePopoverToggle("vsn-bc-overflow-popover", e)}
|
|
2627
|
+
@vsn-breadcrumb-menu-close=${() => this._handleMenuClose("vsn-bc-overflow-trigger", "vsn-bc-overflow-popover")}
|
|
2574
2628
|
>
|
|
2575
2629
|
<vsn-breadcrumb-menu
|
|
2576
2630
|
.treeList=${i}
|
|
@@ -2593,7 +2647,7 @@ var X = class extends e {
|
|
|
2593
2647
|
}
|
|
2594
2648
|
render() {
|
|
2595
2649
|
return n`
|
|
2596
|
-
<nav aria-label=${
|
|
2650
|
+
<nav aria-label=${b("Breadcrumb")}>
|
|
2597
2651
|
<div class="ga-breadcrumb">
|
|
2598
2652
|
${this._displayMode === "full" ? this._renderFullBreadcrumbs() : this._displayMode === "overflow" ? this._renderOverflowBreadcrumbs() : this._renderMobileBreadcrumbs()}
|
|
2599
2653
|
</div>
|
|
@@ -2607,7 +2661,7 @@ var X = class extends e {
|
|
|
2607
2661
|
`;
|
|
2608
2662
|
}
|
|
2609
2663
|
};
|
|
2610
|
-
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([
|
|
2664
|
+
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);
|
|
2611
2665
|
//#endregion
|
|
2612
2666
|
//#region src/components/vsn-top-bar/vsn-ai-assistant.ts
|
|
2613
2667
|
var Qt = class extends e {
|
|
@@ -2624,13 +2678,13 @@ var Qt = class extends e {
|
|
|
2624
2678
|
render() {
|
|
2625
2679
|
return n`
|
|
2626
2680
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2627
|
-
aria-label=${
|
|
2628
|
-
<span class="ga-icon">${
|
|
2681
|
+
aria-label=${b("Open AI assistant")} @click=${this._handleClick}>
|
|
2682
|
+
<span class="ga-icon">${M(Je)}</span>
|
|
2629
2683
|
</button>
|
|
2630
2684
|
`;
|
|
2631
2685
|
}
|
|
2632
2686
|
};
|
|
2633
|
-
Qt = N([
|
|
2687
|
+
Qt = N([x(), o("vsn-ai-assistant")], Qt);
|
|
2634
2688
|
//#endregion
|
|
2635
2689
|
//#region src/components/vsn-top-bar/vsn-feedback.ts
|
|
2636
2690
|
var Z = class extends e {
|
|
@@ -2649,7 +2703,7 @@ var Z = class extends e {
|
|
|
2649
2703
|
if (super.updated(e), e.has("feedback") && this.feedback?.workspaceId && !document.getElementById("survicate-sdk") && !window._sva) {
|
|
2650
2704
|
window._sva = window._sva ?? {}, window._sva.forcedLanguage = this.lang;
|
|
2651
2705
|
let e = document.createElement("script");
|
|
2652
|
-
e.id =
|
|
2706
|
+
e.id = Ue, e.src = Ge(this.feedback.workspaceId), e.async = !0, e.onload = () => this._applyVisitorTraits(), document.head.appendChild(e);
|
|
2653
2707
|
}
|
|
2654
2708
|
if (e.has("auth")) {
|
|
2655
2709
|
let t = e.get("auth");
|
|
@@ -2670,23 +2724,23 @@ var Z = class extends e {
|
|
|
2670
2724
|
this.dispatchEvent(new CustomEvent("vsn-feedback", {
|
|
2671
2725
|
bubbles: !0,
|
|
2672
2726
|
composed: !0
|
|
2673
|
-
})), this.feedback?.surveyId && (this._applyVisitorTraits(), window._sva?.invokeEvent?.(
|
|
2727
|
+
})), this.feedback?.surveyId && (this._applyVisitorTraits(), window._sva?.invokeEvent?.(We));
|
|
2674
2728
|
}
|
|
2675
2729
|
render() {
|
|
2676
2730
|
return this._compact ? n`
|
|
2677
2731
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2678
|
-
aria-label=${
|
|
2679
|
-
<span class="ga-icon">${
|
|
2732
|
+
aria-label=${b("Send feedback")} @click=${this._handleClick}>
|
|
2733
|
+
<span class="ga-icon">${M(Ze)}</span>
|
|
2680
2734
|
</button>
|
|
2681
2735
|
` : n`
|
|
2682
|
-
<button type="button" class="ga-button ga-button--secondary" aria-label=${
|
|
2736
|
+
<button type="button" class="ga-button ga-button--secondary" aria-label=${b("Send feedback")}
|
|
2683
2737
|
@click=${this._handleClick}>
|
|
2684
|
-
${
|
|
2738
|
+
${b("Feedback")}
|
|
2685
2739
|
</button>
|
|
2686
2740
|
`;
|
|
2687
2741
|
}
|
|
2688
2742
|
};
|
|
2689
|
-
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([
|
|
2743
|
+
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);
|
|
2690
2744
|
//#endregion
|
|
2691
2745
|
//#region src/components/vsn-top-bar/vsn-home.ts
|
|
2692
2746
|
var $t = class extends e {
|
|
@@ -2697,7 +2751,7 @@ var $t = class extends e {
|
|
|
2697
2751
|
e.preventDefault(), this.landingPageUrl && this.dispatchEvent(new CustomEvent("vsn-navigate", {
|
|
2698
2752
|
detail: {
|
|
2699
2753
|
id: "home",
|
|
2700
|
-
label:
|
|
2754
|
+
label: b("Home"),
|
|
2701
2755
|
url: this.landingPageUrl
|
|
2702
2756
|
},
|
|
2703
2757
|
bubbles: !0,
|
|
@@ -2706,14 +2760,14 @@ var $t = class extends e {
|
|
|
2706
2760
|
}
|
|
2707
2761
|
render() {
|
|
2708
2762
|
return this.landingPageUrl ? n`
|
|
2709
|
-
<a href=${this.landingPageUrl} class="ga-button ga-button--ghost ga-button--icon-only" aria-label=${
|
|
2763
|
+
<a href=${this.landingPageUrl} class="ga-button ga-button--ghost ga-button--icon-only" aria-label=${b("Home")}
|
|
2710
2764
|
@click=${this._handleClick}>
|
|
2711
|
-
<span class="ga-icon">${
|
|
2765
|
+
<span class="ga-icon">${M(Qe)}</span>
|
|
2712
2766
|
</a>
|
|
2713
2767
|
` : r;
|
|
2714
2768
|
}
|
|
2715
2769
|
};
|
|
2716
|
-
N([s({ attribute: "landing-page-url" })], $t.prototype, "landingPageUrl", void 0), $t = N([
|
|
2770
|
+
N([s({ attribute: "landing-page-url" })], $t.prototype, "landingPageUrl", void 0), $t = N([x(), o("vsn-home")], $t);
|
|
2717
2771
|
//#endregion
|
|
2718
2772
|
//#region src/components/vsn-top-bar/vsn-menu-toggle.ts
|
|
2719
2773
|
var en = class extends e {
|
|
@@ -2738,22 +2792,22 @@ var en = class extends e {
|
|
|
2738
2792
|
}
|
|
2739
2793
|
render() {
|
|
2740
2794
|
return n`
|
|
2741
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2795
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${b("Open menu")}
|
|
2742
2796
|
aria-describedby="vsn-menu-toggle-tooltip"
|
|
2743
2797
|
@click=${this._handleClick}
|
|
2744
2798
|
@mouseenter=${this._onActivate}
|
|
2745
2799
|
@mouseleave=${this._onDeactivate}>
|
|
2746
|
-
<span class="ga-icon">${
|
|
2800
|
+
<span class="ga-icon">${M(qe)}</span>
|
|
2747
2801
|
</button>
|
|
2748
2802
|
<div id="vsn-menu-toggle-tooltip" role="tooltip"
|
|
2749
2803
|
style="position: fixed; inset: unset; margin: 0; padding: 0; border: none; background: transparent; overflow: visible; pointer-events: none; z-index: 9999;"
|
|
2750
2804
|
popover="manual">
|
|
2751
|
-
<div class="ga-tooltip ga-tooltip--bottom-start" style="white-space: nowrap">${
|
|
2805
|
+
<div class="ga-tooltip ga-tooltip--bottom-start" style="white-space: nowrap">${Re()}</div>
|
|
2752
2806
|
</div>
|
|
2753
2807
|
`;
|
|
2754
2808
|
}
|
|
2755
2809
|
};
|
|
2756
|
-
N([c("div[role=\"tooltip\"]", !0)], en.prototype, "_tooltipElement", void 0), en = N([
|
|
2810
|
+
N([c("div[role=\"tooltip\"]", !0)], en.prototype, "_tooltipElement", void 0), en = N([x(), o("vsn-menu-toggle")], en);
|
|
2757
2811
|
//#endregion
|
|
2758
2812
|
//#region src/components/vsn-top-bar/vsn-notifications.ts
|
|
2759
2813
|
var tn = class extends e {
|
|
@@ -2771,11 +2825,11 @@ var tn = class extends e {
|
|
|
2771
2825
|
}));
|
|
2772
2826
|
}
|
|
2773
2827
|
render() {
|
|
2774
|
-
let e = this.notificationActive ?
|
|
2828
|
+
let e = this.notificationActive ? Xe : Ye;
|
|
2775
2829
|
return n`
|
|
2776
2830
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2777
|
-
aria-label=${
|
|
2778
|
-
<span class="ga-icon">${
|
|
2831
|
+
aria-label=${b("Notifications")} @click=${this._handleClick}>
|
|
2832
|
+
<span class="ga-icon">${M(e)}</span>
|
|
2779
2833
|
</button>
|
|
2780
2834
|
`;
|
|
2781
2835
|
}
|
|
@@ -2784,7 +2838,7 @@ N([s({
|
|
|
2784
2838
|
type: Boolean,
|
|
2785
2839
|
attribute: "notification-active",
|
|
2786
2840
|
reflect: !0
|
|
2787
|
-
})], tn.prototype, "notificationActive", void 0), tn = N([
|
|
2841
|
+
})], tn.prototype, "notificationActive", void 0), tn = N([x(), o("vsn-notifications")], tn);
|
|
2788
2842
|
//#endregion
|
|
2789
2843
|
//#region src/components/vsn-top-bar/vsn-help.ts
|
|
2790
2844
|
function nn(e) {
|
|
@@ -2809,23 +2863,23 @@ var rn = class extends e {
|
|
|
2809
2863
|
render() {
|
|
2810
2864
|
return this.helpUrl && nn(this.helpUrl) ? n`
|
|
2811
2865
|
<a href=${this.helpUrl} target="_blank" rel="noopener noreferrer" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2812
|
-
aria-label=${
|
|
2813
|
-
<span class="ga-icon">${
|
|
2866
|
+
aria-label=${b("Help")}>
|
|
2867
|
+
<span class="ga-icon">${M($e)}</span>
|
|
2814
2868
|
</a>
|
|
2815
2869
|
` : n`
|
|
2816
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2870
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${b("Help")}
|
|
2817
2871
|
@click=${this._handleClick}>
|
|
2818
|
-
<span class="ga-icon">${
|
|
2872
|
+
<span class="ga-icon">${M($e)}</span>
|
|
2819
2873
|
</button>
|
|
2820
2874
|
`;
|
|
2821
2875
|
}
|
|
2822
2876
|
};
|
|
2823
|
-
N([s({ attribute: "help-url" })], rn.prototype, "helpUrl", void 0), rn = N([
|
|
2877
|
+
N([s({ attribute: "help-url" })], rn.prototype, "helpUrl", void 0), rn = N([x(), o("vsn-help")], rn);
|
|
2824
2878
|
//#endregion
|
|
2825
2879
|
//#region src/components/vsn-top-bar/vsn-top-bar.ts
|
|
2826
2880
|
var Q = class extends e {
|
|
2827
|
-
constructor(
|
|
2828
|
-
super(
|
|
2881
|
+
constructor() {
|
|
2882
|
+
super(), this.modules = [], this.feedback = null, this.showHelp = !1, this.showNotification = !1, this.notificationActive = !1, this.lang = "en", new R(this, () => !0);
|
|
2829
2883
|
}
|
|
2830
2884
|
willUpdate(e) {
|
|
2831
2885
|
e.has("lang") && It(this.lang).catch(console.error);
|
|
@@ -2945,13 +2999,13 @@ N([s({ attribute: !1 })], Q.prototype, "tree", void 0), N([s({ type: Array })],
|
|
|
2945
2999
|
var $ = class extends e {
|
|
2946
3000
|
constructor(...e) {
|
|
2947
3001
|
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) => {
|
|
2948
|
-
e.defaultPrevented || !
|
|
3002
|
+
e.defaultPrevented || !Fe(e) || e.key.toLowerCase() !== "k" || (e.preventDefault(), this.dispatchEvent(new CustomEvent("vsn-open", {
|
|
2949
3003
|
cancelable: !0,
|
|
2950
3004
|
bubbles: !0,
|
|
2951
3005
|
composed: !0
|
|
2952
3006
|
})) && this._openAndFocusSearch());
|
|
2953
3007
|
}, this._onEscape = (e) => {
|
|
2954
|
-
e.defaultPrevented || this.open &&
|
|
3008
|
+
e.defaultPrevented || this.open && j(e) && e.key === "Escape" && (e.preventDefault(), this.open = !1);
|
|
2955
3009
|
};
|
|
2956
3010
|
}
|
|
2957
3011
|
_resolveModules() {
|
|
@@ -3078,7 +3132,7 @@ var $ = class extends e {
|
|
|
3078
3132
|
>
|
|
3079
3133
|
<slot name="nav-footer" slot="nav-footer"></slot>
|
|
3080
3134
|
</vsn-side-bar>
|
|
3081
|
-
<div class="h-full
|
|
3135
|
+
<div class="h-full">
|
|
3082
3136
|
<slot></slot>
|
|
3083
3137
|
</div>
|
|
3084
3138
|
</div>
|
|
@@ -3100,4 +3154,4 @@ N([s()], $.prototype, "lang", void 0), N([s({ attribute: !1 })], $.prototype, "t
|
|
|
3100
3154
|
reflect: !0
|
|
3101
3155
|
})], $.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")], $);
|
|
3102
3156
|
//#endregion
|
|
3103
|
-
export {
|
|
3157
|
+
export { v as SearchError, $ as VSNNavigation, g as isTreeLeaf, _ as isTreeParent };
|