@visma-swno/vsn-navigation 1.2.0-beta.11 → 1.2.0-beta.13
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 -219
- 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 de = class e extends Error {
|
|
196
196
|
constructor(t) {
|
|
197
197
|
super(t), this.name = "SearchError", Object.setPrototypeOf(this, e.prototype);
|
|
198
198
|
}
|
|
199
|
-
},
|
|
199
|
+
}, fe = ie("activeId"), v = "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(v, this.__litLocalizeEventHandler);
|
|
222
222
|
}
|
|
223
223
|
hostDisconnected() {
|
|
224
|
-
window.removeEventListener(
|
|
224
|
+
window.removeEventListener(v, 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,67 +235,67 @@ var _e = 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(v, { detail: e }));
|
|
277
277
|
}
|
|
278
|
-
var
|
|
278
|
+
var w = "", T, ke, E, D, Ae, O = new be();
|
|
279
279
|
O.resolve();
|
|
280
|
-
var k = 0, je = (e) => (
|
|
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
281
|
getLocale: Me,
|
|
282
282
|
setLocale: Ne
|
|
283
|
-
}), Me = () =>
|
|
284
|
-
if (e === (
|
|
285
|
-
if (!
|
|
286
|
-
if (!
|
|
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
287
|
k++;
|
|
288
288
|
let t = k;
|
|
289
|
-
return
|
|
289
|
+
return T = e, O.settled && (O = new be()), C({
|
|
290
290
|
status: "loading",
|
|
291
291
|
loadingLocale: e
|
|
292
|
-
}), (e ===
|
|
293
|
-
k === t && (
|
|
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
|
-
k === t && (
|
|
298
|
+
k === t && (C({
|
|
299
299
|
status: "error",
|
|
300
300
|
errorLocale: e,
|
|
301
301
|
errorMessage: n.toString()
|
|
@@ -305,7 +305,7 @@ var k = 0, je = (e) => (ge(((e, t) => Ee(Ae, e, t))), T = Oe = e.sourceLocale, D
|
|
|
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 = () =>
|
|
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 = (e) => b(y`Load ${e} 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
311
|
function M(e, t = 24, r) {
|
|
@@ -519,7 +519,7 @@ var F, I = class extends e {
|
|
|
519
519
|
}
|
|
520
520
|
};
|
|
521
521
|
P([s({ attribute: !1 })], I.prototype, "tree", void 0), P([s({ type: Number })], I.prototype, "level", void 0), P([ue({
|
|
522
|
-
context:
|
|
522
|
+
context: fe,
|
|
523
523
|
subscribe: !0
|
|
524
524
|
}), 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), I = F = P([o("vsn-menu-item")], I);
|
|
525
525
|
//#endregion
|
|
@@ -551,7 +551,7 @@ var L = class extends e {
|
|
|
551
551
|
<vsn-menu-item .tree=${e}></vsn-menu-item>`;
|
|
552
552
|
}
|
|
553
553
|
};
|
|
554
|
-
P([s({ attribute: !1 })], L.prototype, "items", void 0), P([le({ context:
|
|
554
|
+
P([s({ attribute: !1 })], L.prototype, "items", void 0), P([le({ context: fe }), l()], L.prototype, "_currentActiveId", void 0), P([s()], L.prototype, "currentItem", void 0), L = P([o("vsn-menu")], L);
|
|
555
555
|
//#endregion
|
|
556
556
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-button.ts
|
|
557
557
|
var R = class extends e {
|
|
@@ -715,11 +715,6 @@ var ut = class {
|
|
|
715
715
|
t instanceof HTMLElement && t.classList.contains("ga-side-navigation__footer-dropdown-item") && (e.preventDefault(), t.click());
|
|
716
716
|
return;
|
|
717
717
|
}
|
|
718
|
-
if (j(e) && e.key === "Tab") {
|
|
719
|
-
let t = Array.from(this.host.querySelectorAll(".ga-side-navigation__footer-dropdown-item")), n = t[t.length - 1];
|
|
720
|
-
n && e.target === n && (this.host.expanded = !1);
|
|
721
|
-
return;
|
|
722
|
-
}
|
|
723
718
|
if (A(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
724
719
|
e.preventDefault();
|
|
725
720
|
let t = this.host.querySelector(".ga-side-navigation__footer-dropdown");
|
|
@@ -767,13 +762,32 @@ function pt(e, t, n, r) {
|
|
|
767
762
|
return n && i.set("client_id", n), `${e}${t}?${i}`;
|
|
768
763
|
}
|
|
769
764
|
//#endregion
|
|
770
|
-
//#region src/components/
|
|
771
|
-
var mt = {
|
|
765
|
+
//#region src/components/controllers/focus-trapping-controller.ts
|
|
766
|
+
var mt = class {
|
|
767
|
+
constructor(e, t, n = void 0) {
|
|
768
|
+
this._rootElement = null, this._onKeyDown = (e) => {
|
|
769
|
+
if (e.defaultPrevented || e.key !== "Tab" || e.ctrlKey || e.altKey || e.metaKey || !this._appliesCallback() || this._rootElement == null) return;
|
|
770
|
+
let t = Array.from(this._rootElement.querySelectorAll("a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex=\"-1\"])"));
|
|
771
|
+
if (t.length === 0) return;
|
|
772
|
+
let n = t[0], r = t[t.length - 1], i = this._host.shadowRoot;
|
|
773
|
+
i ??= this._host.getRootNode(), i ??= document, e.shiftKey ? i.activeElement === n && (r.focus(), e.preventDefault()) : i.activeElement === r && (n.focus(), e.preventDefault());
|
|
774
|
+
}, this._host = e, this._appliesCallback = t, this._rootSelector = n, e.addController(this);
|
|
775
|
+
}
|
|
776
|
+
hostConnected() {
|
|
777
|
+
this._rootSelector ? this._rootElement = this._host.renderRoot.querySelector(this._rootSelector) : this._rootElement = this._host.renderRoot, this._rootElement != null && this._rootElement.addEventListener("keydown", this._onKeyDown);
|
|
778
|
+
}
|
|
779
|
+
hostDisconnected() {
|
|
780
|
+
this._rootElement != null && this._rootElement.removeEventListener("keydown", this._onKeyDown);
|
|
781
|
+
}
|
|
782
|
+
hostUpdated() {
|
|
783
|
+
this._rootElement == null && this._rootSelector && (this._rootElement = this._host.renderRoot.querySelector(this._rootSelector), this._rootElement != null && this._rootElement.addEventListener("keydown", this._onKeyDown));
|
|
784
|
+
}
|
|
785
|
+
}, ht = {
|
|
772
786
|
profile: et,
|
|
773
787
|
logout: tt
|
|
774
|
-
},
|
|
775
|
-
profile:
|
|
776
|
-
logout:
|
|
788
|
+
}, gt = () => ({
|
|
789
|
+
profile: b("My profile"),
|
|
790
|
+
logout: b("Log out")
|
|
777
791
|
}), z = class extends e {
|
|
778
792
|
createRenderRoot() {
|
|
779
793
|
return this;
|
|
@@ -781,18 +795,18 @@ var mt = {
|
|
|
781
795
|
get _items() {
|
|
782
796
|
return [{
|
|
783
797
|
id: "profile",
|
|
784
|
-
label:
|
|
798
|
+
label: gt().profile,
|
|
785
799
|
url: this.myProfileUrl
|
|
786
800
|
}, {
|
|
787
801
|
id: "logout",
|
|
788
|
-
label:
|
|
802
|
+
label: gt().logout,
|
|
789
803
|
url: "/logout"
|
|
790
804
|
}];
|
|
791
805
|
}
|
|
792
806
|
constructor() {
|
|
793
807
|
super(), this.expanded = !1, this._avatarFailed = !1, this._keyboard = new ut(this), new dt(this, [".ga-side-navigation__footer-dropdown", ".ga-side-navigation__user"], () => {
|
|
794
808
|
this.expanded = !1;
|
|
795
|
-
});
|
|
809
|
+
}), new mt(this, () => this.expanded);
|
|
796
810
|
}
|
|
797
811
|
willUpdate(e) {
|
|
798
812
|
(e.has("user") || e.has("profilePictureBaseUrl")) && (this._avatarFailed = !1);
|
|
@@ -841,7 +855,7 @@ var mt = {
|
|
|
841
855
|
${this._items.map((e) => {
|
|
842
856
|
let t = n`
|
|
843
857
|
<span class="ga-side-navigation__footer-dropdown-icon">
|
|
844
|
-
${M(
|
|
858
|
+
${M(ht[e.id], 16)}
|
|
845
859
|
</span>
|
|
846
860
|
<span class="ga-side-navigation__footer-dropdown-title">
|
|
847
861
|
${e.label}
|
|
@@ -904,10 +918,10 @@ var mt = {
|
|
|
904
918
|
P([s({ attribute: !1 })], z.prototype, "user", void 0), P([s()], z.prototype, "profilePictureBaseUrl", void 0), P([s()], z.prototype, "myProfileUrl", void 0), P([s({
|
|
905
919
|
type: Boolean,
|
|
906
920
|
reflect: !0
|
|
907
|
-
})], z.prototype, "expanded", void 0), P([l()], z.prototype, "_avatarFailed", void 0), z = P([
|
|
921
|
+
})], z.prototype, "expanded", void 0), P([l()], z.prototype, "_avatarFailed", void 0), z = P([x(), o("vsn-footer")], z);
|
|
908
922
|
//#endregion
|
|
909
923
|
//#region src/components/vsn-side-bar/vsn-header/vsn-header.keyboard.ts
|
|
910
|
-
var
|
|
924
|
+
var _t = class {
|
|
911
925
|
constructor(e) {
|
|
912
926
|
this.onSwitcherKeydown = (e) => {
|
|
913
927
|
if (!e.defaultPrevented) {
|
|
@@ -945,28 +959,13 @@ var gt = class {
|
|
|
945
959
|
t instanceof HTMLElement && t.classList.contains("ga-side-navigation__switcher-dropdown-item") && (e.preventDefault(), t.click());
|
|
946
960
|
return;
|
|
947
961
|
}
|
|
948
|
-
if (j(e) && e.key === "Tab") {
|
|
949
|
-
let t = Array.from(this.querySelectorAll(".ga-side-navigation__switcher-dropdown-item")), n = t[t.length - 1];
|
|
950
|
-
n && e.target === n && this.dispatchEvent(new CustomEvent("tab-exit", {
|
|
951
|
-
bubbles: !0,
|
|
952
|
-
composed: !0
|
|
953
|
-
}));
|
|
954
|
-
return;
|
|
955
|
-
}
|
|
956
962
|
if (A(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
957
963
|
e.preventDefault();
|
|
958
964
|
let t = Array.from(this.querySelectorAll(".ga-side-navigation__switcher-dropdown-item"));
|
|
959
965
|
if (t.length === 0) return;
|
|
960
966
|
let n = this.getRootNode().activeElement, r = n instanceof HTMLElement ? t.indexOf(n) : -1;
|
|
961
967
|
if (e.key === "ArrowUp") {
|
|
962
|
-
|
|
963
|
-
this.dispatchEvent(new CustomEvent("focus-switcher", {
|
|
964
|
-
bubbles: !0,
|
|
965
|
-
composed: !0
|
|
966
|
-
}));
|
|
967
|
-
return;
|
|
968
|
-
}
|
|
969
|
-
t[r - 1].focus();
|
|
968
|
+
r < 0 ? t[0].focus() : r > 0 && t[r - 1].focus();
|
|
970
969
|
return;
|
|
971
970
|
}
|
|
972
971
|
r === -1 ? t[0].focus() : r < t.length - 1 && t[r + 1].focus();
|
|
@@ -990,7 +989,7 @@ var gt = class {
|
|
|
990
989
|
<div class="ga-side-navigation__switcher-dropdown vsn-switcher-dropdown--loading"
|
|
991
990
|
role="status"
|
|
992
991
|
aria-busy="true"
|
|
993
|
-
aria-label=${
|
|
992
|
+
aria-label=${b("Loading modules")}>
|
|
994
993
|
<span class="vsn-spinner"></span>
|
|
995
994
|
</div>
|
|
996
995
|
` : n`
|
|
@@ -1012,19 +1011,23 @@ var gt = class {
|
|
|
1012
1011
|
`;
|
|
1013
1012
|
}
|
|
1014
1013
|
};
|
|
1015
|
-
P([s({ attribute: !1 })], B.prototype, "items", void 0), P([s({ type: Boolean })], B.prototype, "loading", void 0), P([s({ attribute: !1 })], B.prototype, "maxHeight", void 0), B = P([
|
|
1014
|
+
P([s({ attribute: !1 })], B.prototype, "items", void 0), P([s({ type: Boolean })], B.prototype, "loading", void 0), P([s({ attribute: !1 })], B.prototype, "maxHeight", void 0), B = P([x(), o("vsn-switcher-menu")], B);
|
|
1016
1015
|
//#endregion
|
|
1017
1016
|
//#region src/components/vsn-side-bar/vsn-search/vsn-search.ts
|
|
1018
1017
|
var V = class extends e {
|
|
1019
1018
|
constructor(...e) {
|
|
1020
|
-
super(...e), this.shortcut = "", this.value = "", this.loading = !1, this.
|
|
1021
|
-
this.
|
|
1019
|
+
super(...e), this.shortcut = "", this.value = "", this.loading = !1, this._scheduleAutoSearch = () => {
|
|
1020
|
+
this._cancelDebounce(), this._debounceTimer = window.setTimeout(this._emitSearch, 200);
|
|
1021
|
+
}, this._cancelDebounce = () => {
|
|
1022
|
+
this._debounceTimer != null && (window.clearTimeout(this._debounceTimer), this._debounceTimer = void 0);
|
|
1023
|
+
}, this._emitSearch = () => {
|
|
1024
|
+
this._cancelDebounce(), this._canSearch && this.dispatchEvent(new CustomEvent("vsn-search-submit", {
|
|
1022
1025
|
detail: { query: this.value },
|
|
1023
1026
|
bubbles: !0,
|
|
1024
1027
|
composed: !0
|
|
1025
1028
|
}));
|
|
1026
1029
|
}, this._emitSearchCleared = () => {
|
|
1027
|
-
this.dispatchEvent(new CustomEvent("vsn-search-cleared", {
|
|
1030
|
+
this._cancelDebounce(), this.dispatchEvent(new CustomEvent("vsn-search-cleared", {
|
|
1028
1031
|
bubbles: !0,
|
|
1029
1032
|
composed: !0
|
|
1030
1033
|
}));
|
|
@@ -1048,7 +1051,10 @@ var V = class extends e {
|
|
|
1048
1051
|
detail: { value: t },
|
|
1049
1052
|
bubbles: !0,
|
|
1050
1053
|
composed: !0
|
|
1051
|
-
}));
|
|
1054
|
+
})), this._scheduleAutoSearch();
|
|
1055
|
+
}
|
|
1056
|
+
disconnectedCallback() {
|
|
1057
|
+
this._cancelDebounce(), super.disconnectedCallback();
|
|
1052
1058
|
}
|
|
1053
1059
|
_handleEnter(e) {
|
|
1054
1060
|
e.defaultPrevented || j(e) && e.key === "Enter" && this._emitSearch();
|
|
@@ -1060,7 +1066,7 @@ var V = class extends e {
|
|
|
1060
1066
|
<button
|
|
1061
1067
|
type="button"
|
|
1062
1068
|
class="vsn-search__trigger"
|
|
1063
|
-
aria-label=${
|
|
1069
|
+
aria-label=${b("Search")}
|
|
1064
1070
|
?disabled=${!this._canSearch}
|
|
1065
1071
|
@click=${this._emitSearch}>
|
|
1066
1072
|
${M(at, 24)}
|
|
@@ -1085,11 +1091,11 @@ var V = class extends e {
|
|
|
1085
1091
|
`;
|
|
1086
1092
|
}
|
|
1087
1093
|
_spinner() {
|
|
1088
|
-
return n`<span class="vsn-spinner" role="status" aria-label=${
|
|
1094
|
+
return n`<span class="vsn-spinner" role="status" aria-label=${b("Searching")}></span>`;
|
|
1089
1095
|
}
|
|
1090
1096
|
_clearButton() {
|
|
1091
1097
|
return n`
|
|
1092
|
-
<button class="vsn-search__clear" aria-label=${
|
|
1098
|
+
<button class="vsn-search__clear" aria-label=${b("Clear search")}
|
|
1093
1099
|
@click=${this._emitSearchCleared}>
|
|
1094
1100
|
${M(ot, 16)}
|
|
1095
1101
|
</button>
|
|
@@ -1099,7 +1105,7 @@ var V = class extends e {
|
|
|
1099
1105
|
return n`<kbd class="ga-side-navigation__search-shortcut">${this.shortcut}</kbd>`;
|
|
1100
1106
|
}
|
|
1101
1107
|
};
|
|
1102
|
-
P([s()], V.prototype, "shortcut", void 0), P([s()], V.prototype, "value", void 0), P([s({ type: Boolean })], V.prototype, "loading", void 0), V = P([
|
|
1108
|
+
P([s()], V.prototype, "shortcut", void 0), P([s()], V.prototype, "value", void 0), P([s({ type: Boolean })], V.prototype, "loading", void 0), V = P([x(), o("vsn-search")], V);
|
|
1103
1109
|
//#endregion
|
|
1104
1110
|
//#region src/components/vsn-side-bar/vsn-header/vsn-header.ts
|
|
1105
1111
|
var H = class extends e {
|
|
@@ -1107,9 +1113,17 @@ var H = class extends e {
|
|
|
1107
1113
|
return this;
|
|
1108
1114
|
}
|
|
1109
1115
|
constructor() {
|
|
1110
|
-
super(), this.modules = [], this.modulesLoading = !1, this.hasMenu = !1, this.moduleSwitcherMaxHeight = 0, this.searchValue = "", this.searchLoading = !1, this.expanded = !1, this._keyboard = new
|
|
1116
|
+
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 dt(this, [".ga-side-navigation__switcher-dropdown", ".ga-side-navigation__switcher"], () => {
|
|
1111
1117
|
this.canClose && (this.expanded = !1);
|
|
1112
|
-
});
|
|
1118
|
+
}), new mt(this, () => this.expanded, ".vsn-switcher-anchor");
|
|
1119
|
+
}
|
|
1120
|
+
focus() {
|
|
1121
|
+
let e = this.querySelector("vsn-search");
|
|
1122
|
+
if (e) {
|
|
1123
|
+
e.focus();
|
|
1124
|
+
return;
|
|
1125
|
+
}
|
|
1126
|
+
e = this.querySelector(".ga-side-navigation__switcher"), e && e.focus();
|
|
1113
1127
|
}
|
|
1114
1128
|
render() {
|
|
1115
1129
|
let e = this._state;
|
|
@@ -1136,9 +1150,7 @@ var H = class extends e {
|
|
|
1136
1150
|
.loading=${e.kind === "loading"}
|
|
1137
1151
|
.maxHeight=${this.moduleSwitcherMaxHeight}
|
|
1138
1152
|
@item-select=${this._onItemSelect}
|
|
1139
|
-
@close-request=${this._onCloseRequest}
|
|
1140
|
-
@focus-switcher=${this._onFocusSwitcher}
|
|
1141
|
-
@tab-exit=${this._onTabExit}>
|
|
1153
|
+
@close-request=${this._onCloseRequest}>
|
|
1142
1154
|
</vsn-switcher-menu>`)}
|
|
1143
1155
|
</div>
|
|
1144
1156
|
|
|
@@ -1200,20 +1212,14 @@ var H = class extends e {
|
|
|
1200
1212
|
this.querySelector(".ga-side-navigation__switcher")?.focus();
|
|
1201
1213
|
}));
|
|
1202
1214
|
}
|
|
1203
|
-
_onFocusSwitcher() {
|
|
1204
|
-
this.querySelector(".ga-side-navigation__switcher")?.focus();
|
|
1205
|
-
}
|
|
1206
|
-
_onTabExit() {
|
|
1207
|
-
this.canClose && (this.expanded = !1);
|
|
1208
|
-
}
|
|
1209
1215
|
};
|
|
1210
1216
|
P([s({ attribute: !1 })], H.prototype, "modules", void 0), P([s()], H.prototype, "activeModuleId", void 0), P([s()], H.prototype, "activeModuleLabel", void 0), P([s({ type: Boolean })], H.prototype, "modulesLoading", void 0), P([s({ type: Boolean })], H.prototype, "hasMenu", void 0), P([s({ attribute: !1 })], H.prototype, "moduleSwitcherMaxHeight", void 0), P([s({ attribute: !1 })], H.prototype, "search", void 0), P([s()], H.prototype, "searchValue", void 0), P([s({ type: Boolean })], H.prototype, "searchLoading", void 0), P([s({
|
|
1211
1217
|
type: Boolean,
|
|
1212
1218
|
reflect: !0
|
|
1213
|
-
})], H.prototype, "expanded", void 0), H = P([
|
|
1219
|
+
})], H.prototype, "expanded", void 0), H = P([x(), o("vsn-header")], H);
|
|
1214
1220
|
//#endregion
|
|
1215
1221
|
//#region src/components/vsn-side-bar/vsn-search-results/vsn-search-results.keyboard.ts
|
|
1216
|
-
var
|
|
1222
|
+
var vt = class {
|
|
1217
1223
|
constructor(e) {
|
|
1218
1224
|
this.onResultsKeydown = (e) => {
|
|
1219
1225
|
if (e.defaultPrevented || A(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
@@ -1229,7 +1235,7 @@ var _t = class {
|
|
|
1229
1235
|
hostConnected() {}
|
|
1230
1236
|
}, U = class extends e {
|
|
1231
1237
|
constructor(...e) {
|
|
1232
|
-
super(...e), this.loadingMore = !1, this._keyboard = new
|
|
1238
|
+
super(...e), this.loadingMore = !1, this._keyboard = new vt(this);
|
|
1233
1239
|
}
|
|
1234
1240
|
createRenderRoot() {
|
|
1235
1241
|
return this;
|
|
@@ -1240,10 +1246,10 @@ var _t = class {
|
|
|
1240
1246
|
_emptyState() {
|
|
1241
1247
|
return n`
|
|
1242
1248
|
<div class="vsn-search-results__empty" role="status" aria-live="polite">
|
|
1243
|
-
<div class="vsn-search-results__empty-title">${
|
|
1244
|
-
<div class="vsn-search-results__empty-message">${
|
|
1245
|
-
<div class="vsn-search-results__empty-hint">${
|
|
1246
|
-
<div class="vsn-search-results__empty-support">${
|
|
1249
|
+
<div class="vsn-search-results__empty-title">${b("No results found")}</div>
|
|
1250
|
+
<div class="vsn-search-results__empty-message">${b("We couldn't find any matches.")}</div>
|
|
1251
|
+
<div class="vsn-search-results__empty-hint">${b("Try different keywords or check spelling.")}</div>
|
|
1252
|
+
<div class="vsn-search-results__empty-support">${b("Need help? Contact support.")}</div>
|
|
1247
1253
|
</div>
|
|
1248
1254
|
`;
|
|
1249
1255
|
}
|
|
@@ -1260,7 +1266,7 @@ var _t = class {
|
|
|
1260
1266
|
<div class="ga-side-navigation__body h-full ga-scroll"
|
|
1261
1267
|
@keydown=${this._keyboard.onResultsKeydown}>
|
|
1262
1268
|
<div class="ga-side-navigation__search-results-title">
|
|
1263
|
-
${
|
|
1269
|
+
${b(t === 1 ? y`${t} result` : y`${t} results`)}
|
|
1264
1270
|
</div>
|
|
1265
1271
|
${e.map((e) => this._resultRow(e))}
|
|
1266
1272
|
${u(this.nextCursor, () => n`
|
|
@@ -1304,16 +1310,16 @@ var _t = class {
|
|
|
1304
1310
|
}));
|
|
1305
1311
|
}
|
|
1306
1312
|
};
|
|
1307
|
-
P([s({ attribute: !1 })], U.prototype, "results", void 0), P([s()], U.prototype, "errorMessage", void 0), P([s()], U.prototype, "nextCursor", void 0), P([s({ type: Boolean })], U.prototype, "loadingMore", void 0), U = P([
|
|
1313
|
+
P([s({ attribute: !1 })], U.prototype, "results", void 0), P([s()], U.prototype, "errorMessage", void 0), P([s()], U.prototype, "nextCursor", void 0), P([s({ type: Boolean })], U.prototype, "loadingMore", void 0), U = P([x(), o("vsn-search-results")], U);
|
|
1308
1314
|
//#endregion
|
|
1309
1315
|
//#region src/components/vsn-side-bar/vsn-template/vsn-template.ts
|
|
1310
|
-
var
|
|
1316
|
+
var yt = [
|
|
1311
1317
|
160,
|
|
1312
1318
|
96,
|
|
1313
1319
|
144,
|
|
1314
1320
|
192,
|
|
1315
1321
|
160
|
|
1316
|
-
],
|
|
1322
|
+
], bt = class extends e {
|
|
1317
1323
|
createRenderRoot() {
|
|
1318
1324
|
return this;
|
|
1319
1325
|
}
|
|
@@ -1322,8 +1328,8 @@ var vt = [
|
|
|
1322
1328
|
<div class="ga-side-navigation__body h-full"
|
|
1323
1329
|
role="status"
|
|
1324
1330
|
aria-busy="true"
|
|
1325
|
-
aria-label=${
|
|
1326
|
-
${
|
|
1331
|
+
aria-label=${b("Loading results")}>
|
|
1332
|
+
${yt.map((e) => n`
|
|
1327
1333
|
<div class="vsn-template__row">
|
|
1328
1334
|
<div class="vsn-template__bar" style="width: ${e}px"></div>
|
|
1329
1335
|
</div>
|
|
@@ -1332,10 +1338,10 @@ var vt = [
|
|
|
1332
1338
|
`;
|
|
1333
1339
|
}
|
|
1334
1340
|
};
|
|
1335
|
-
|
|
1341
|
+
bt = P([x(), o("vsn-template")], bt);
|
|
1336
1342
|
//#endregion
|
|
1337
1343
|
//#region src/components/vsn-side-bar/vsn-error-state/vsn-error-state.ts
|
|
1338
|
-
var
|
|
1344
|
+
var xt = class extends e {
|
|
1339
1345
|
createRenderRoot() {
|
|
1340
1346
|
return this;
|
|
1341
1347
|
}
|
|
@@ -1343,23 +1349,23 @@ var bt = class extends e {
|
|
|
1343
1349
|
return n`
|
|
1344
1350
|
<div class="vsn-error-state" role="alert" aria-live="assertive">
|
|
1345
1351
|
<div class="vsn-error-state__icon">${M(st, 24)}</div>
|
|
1346
|
-
<div class="vsn-error-state__title">${
|
|
1347
|
-
<div class="vsn-error-state__message">${
|
|
1348
|
-
<div class="vsn-error-state__hint">${
|
|
1349
|
-
<div class="vsn-error-state__support">${
|
|
1352
|
+
<div class="vsn-error-state__title">${b("Loading error")}</div>
|
|
1353
|
+
<div class="vsn-error-state__message">${b("We're unable to load the menu.")}</div>
|
|
1354
|
+
<div class="vsn-error-state__hint">${b("Please check your internet connection and try again.")}</div>
|
|
1355
|
+
<div class="vsn-error-state__support">${b("If the issue persists, reload the page or contact support.")}</div>
|
|
1350
1356
|
</div>
|
|
1351
1357
|
`;
|
|
1352
1358
|
}
|
|
1353
1359
|
};
|
|
1354
|
-
|
|
1360
|
+
xt = P([x(), o("vsn-error-state")], xt);
|
|
1355
1361
|
//#endregion
|
|
1356
1362
|
//#region src/components/vsn-side-bar/vsn-search-scopes/vsn-search-scopes.ts
|
|
1357
|
-
var
|
|
1363
|
+
var St, W = class extends e {
|
|
1358
1364
|
static {
|
|
1359
|
-
|
|
1365
|
+
St = this;
|
|
1360
1366
|
}
|
|
1361
1367
|
constructor(...e) {
|
|
1362
|
-
super(...e), this.scopes = [], this.selectedScopeId = "", this._name = `vsn-search-scope-${++
|
|
1368
|
+
super(...e), this.scopes = [], this.selectedScopeId = "", this._name = `vsn-search-scope-${++St._counter}`;
|
|
1363
1369
|
}
|
|
1364
1370
|
createRenderRoot() {
|
|
1365
1371
|
return this;
|
|
@@ -1369,7 +1375,7 @@ var W, G = class extends e {
|
|
|
1369
1375
|
}
|
|
1370
1376
|
render() {
|
|
1371
1377
|
return this.scopes.length <= 1 ? n`` : n`
|
|
1372
|
-
<div class="ga-radio-group" role="radiogroup" aria-label=${
|
|
1378
|
+
<div class="ga-radio-group" role="radiogroup" aria-label=${b("Search scope")}>
|
|
1373
1379
|
${this.scopes.map((e) => this._renderScope(e))}
|
|
1374
1380
|
</div>
|
|
1375
1381
|
`;
|
|
@@ -1382,7 +1388,7 @@ var W, G = class extends e {
|
|
|
1382
1388
|
class="ga-radio-button__native"
|
|
1383
1389
|
name=${this._name}
|
|
1384
1390
|
.value=${e.id}
|
|
1385
|
-
|
|
1391
|
+
.checked=${e.id === this.selectedScopeId}
|
|
1386
1392
|
@change=${() => this._onChange(e.id)}
|
|
1387
1393
|
/>
|
|
1388
1394
|
<span class="ga-radio-button__marker"></span>
|
|
@@ -1398,25 +1404,25 @@ var W, G = class extends e {
|
|
|
1398
1404
|
}));
|
|
1399
1405
|
}
|
|
1400
1406
|
};
|
|
1401
|
-
P([s({ attribute: !1 })],
|
|
1407
|
+
P([s({ attribute: !1 })], W.prototype, "scopes", void 0), P([s()], W.prototype, "selectedScopeId", void 0), W = St = P([x(), o("vsn-search-scopes")], W);
|
|
1402
1408
|
//#endregion
|
|
1403
1409
|
//#region src/shared/lang/locale-codes.ts
|
|
1404
|
-
var
|
|
1410
|
+
var Ct = "en", wt = [
|
|
1405
1411
|
"da",
|
|
1406
1412
|
"fi",
|
|
1407
1413
|
"nl",
|
|
1408
1414
|
"no",
|
|
1409
1415
|
"sv"
|
|
1410
|
-
],
|
|
1416
|
+
], Tt = /* @__PURE__ */ p({ templates: () => Et }), Et = {
|
|
1411
1417
|
s09a45db408570a7a: "Min profil",
|
|
1412
1418
|
s119f9875b7d4cdfc: "Har du brug for hjælp? Kontakt support.",
|
|
1413
|
-
s1228605ee65ddefa:
|
|
1414
|
-
s2bb33291ef8ae3d4:
|
|
1419
|
+
s1228605ee65ddefa: y`${0} resultat`,
|
|
1420
|
+
s2bb33291ef8ae3d4: y`Indtast mindst ${0} tegn for at søge`,
|
|
1415
1421
|
s2be8f715fbd00dcb: "Vi fandt ingen matchende resultater.",
|
|
1416
1422
|
s301876182accccad: " › ",
|
|
1417
1423
|
s3112f1ca236c8a61: "Indlæsningsfejl",
|
|
1418
1424
|
s352719d86112de9a: "Hjælp",
|
|
1419
|
-
s387a4a41718122cb:
|
|
1425
|
+
s387a4a41718122cb: y`${0} resultater`,
|
|
1420
1426
|
s3fb7db4771812f0c: "Hvis problemet fortsætter, genindlæs siden eller kontakt support.",
|
|
1421
1427
|
s4b0c6b66b4efd7d8: "Vælg en tjeneste",
|
|
1422
1428
|
s5be3c6d61cd9182f: "Notifikationer",
|
|
@@ -1437,16 +1443,16 @@ var xt = "en", St = [
|
|
|
1437
1443
|
sfbf31f663cef6cc2: "Prøv andre søgeord eller tjek stavningen.",
|
|
1438
1444
|
s7c510419ea376840: "VSN",
|
|
1439
1445
|
s38385cd359b17f7a: "Loading modules"
|
|
1440
|
-
},
|
|
1446
|
+
}, Dt = /* @__PURE__ */ p({ templates: () => Ot }), Ot = {
|
|
1441
1447
|
s09a45db408570a7a: "Oma profiili",
|
|
1442
1448
|
s119f9875b7d4cdfc: "Tarvitsetko apua? Ota yhteyttä tukeen.",
|
|
1443
|
-
s1228605ee65ddefa:
|
|
1444
|
-
s2bb33291ef8ae3d4:
|
|
1449
|
+
s1228605ee65ddefa: y`${0} tulos`,
|
|
1450
|
+
s2bb33291ef8ae3d4: y`Kirjoita vähintään ${0} merkkiä hakua varten`,
|
|
1445
1451
|
s2be8f715fbd00dcb: "Emme löytäneet osumia.",
|
|
1446
1452
|
s301876182accccad: " › ",
|
|
1447
1453
|
s3112f1ca236c8a61: "Latausvirhe",
|
|
1448
1454
|
s352719d86112de9a: "Ohje",
|
|
1449
|
-
s387a4a41718122cb:
|
|
1455
|
+
s387a4a41718122cb: y`${0} tulosta`,
|
|
1450
1456
|
s3fb7db4771812f0c: "Jos ongelma jatkuu, lataa sivu uudelleen tai ota yhteyttä tukeen.",
|
|
1451
1457
|
s4b0c6b66b4efd7d8: "Valitse palvelu",
|
|
1452
1458
|
s5be3c6d61cd9182f: "Ilmoitukset",
|
|
@@ -1467,16 +1473,16 @@ var xt = "en", St = [
|
|
|
1467
1473
|
sfbf31f663cef6cc2: "Kokeile eri hakusanoja tai tarkista kirjoitusasu.",
|
|
1468
1474
|
s7c510419ea376840: "VSN",
|
|
1469
1475
|
s38385cd359b17f7a: "Loading modules"
|
|
1470
|
-
},
|
|
1476
|
+
}, kt = /* @__PURE__ */ p({ templates: () => At }), At = {
|
|
1471
1477
|
s09a45db408570a7a: "Mijn profiel",
|
|
1472
1478
|
s119f9875b7d4cdfc: "Hulp nodig? Neem contact op met ondersteuning.",
|
|
1473
|
-
s1228605ee65ddefa:
|
|
1474
|
-
s2bb33291ef8ae3d4:
|
|
1479
|
+
s1228605ee65ddefa: y`${0} resultaat`,
|
|
1480
|
+
s2bb33291ef8ae3d4: y`Typ minimaal ${0} tekens om te zoeken`,
|
|
1475
1481
|
s2be8f715fbd00dcb: "We konden geen overeenkomsten vinden.",
|
|
1476
1482
|
s301876182accccad: " › ",
|
|
1477
1483
|
s3112f1ca236c8a61: "Laadingsfout",
|
|
1478
1484
|
s352719d86112de9a: "Hulp",
|
|
1479
|
-
s387a4a41718122cb:
|
|
1485
|
+
s387a4a41718122cb: y`${0} resultaten`,
|
|
1480
1486
|
s3fb7db4771812f0c: "Als het probleem aanhoudt, laad de pagina opnieuw of neem contact op met ondersteuning.",
|
|
1481
1487
|
s4b0c6b66b4efd7d8: "Kies een service",
|
|
1482
1488
|
s5be3c6d61cd9182f: "Meldingen",
|
|
@@ -1497,16 +1503,16 @@ var xt = "en", St = [
|
|
|
1497
1503
|
sfbf31f663cef6cc2: "Probeer andere zoekwoorden of controleer de spelling.",
|
|
1498
1504
|
s7c510419ea376840: "VSN",
|
|
1499
1505
|
s38385cd359b17f7a: "Loading modules"
|
|
1500
|
-
},
|
|
1506
|
+
}, jt = /* @__PURE__ */ p({ templates: () => Mt }), Mt = {
|
|
1501
1507
|
s09a45db408570a7a: "Min profil",
|
|
1502
1508
|
s119f9875b7d4cdfc: "Trenger du hjelp? Kontakt støtte.",
|
|
1503
|
-
s1228605ee65ddefa:
|
|
1504
|
-
s2bb33291ef8ae3d4:
|
|
1509
|
+
s1228605ee65ddefa: y`${0} resultat`,
|
|
1510
|
+
s2bb33291ef8ae3d4: y`Skriv inn minst ${0} tegn for å søke`,
|
|
1505
1511
|
s2be8f715fbd00dcb: "Vi fant ingen treff.",
|
|
1506
1512
|
s301876182accccad: " › ",
|
|
1507
1513
|
s3112f1ca236c8a61: "Lastingsfeil",
|
|
1508
1514
|
s352719d86112de9a: "Hjelp",
|
|
1509
|
-
s387a4a41718122cb:
|
|
1515
|
+
s387a4a41718122cb: y`${0} resultater`,
|
|
1510
1516
|
s3fb7db4771812f0c: "Hvis problemet vedvarer, last inn siden på nytt eller kontakt støtte.",
|
|
1511
1517
|
s4b0c6b66b4efd7d8: "Velg en tjeneste",
|
|
1512
1518
|
s5be3c6d61cd9182f: "Varsler",
|
|
@@ -1527,16 +1533,16 @@ var xt = "en", St = [
|
|
|
1527
1533
|
sfbf31f663cef6cc2: "Prøv andre søkeord eller sjekk stavemåten.",
|
|
1528
1534
|
s7c510419ea376840: "VSN",
|
|
1529
1535
|
s38385cd359b17f7a: "Loading modules"
|
|
1530
|
-
},
|
|
1536
|
+
}, Nt = /* @__PURE__ */ p({ templates: () => Pt }), Pt = {
|
|
1531
1537
|
s09a45db408570a7a: "Min profil",
|
|
1532
1538
|
s119f9875b7d4cdfc: "Behöver du hjälp? Kontakta support.",
|
|
1533
|
-
s1228605ee65ddefa:
|
|
1534
|
-
s2bb33291ef8ae3d4:
|
|
1539
|
+
s1228605ee65ddefa: y`${0} resultat`,
|
|
1540
|
+
s2bb33291ef8ae3d4: y`Skriv minst ${0} tecken för att söka`,
|
|
1535
1541
|
s2be8f715fbd00dcb: "Vi hittade inga matchningar.",
|
|
1536
1542
|
s301876182accccad: " › ",
|
|
1537
1543
|
s3112f1ca236c8a61: "Laddningsfel",
|
|
1538
1544
|
s352719d86112de9a: "Hjälp",
|
|
1539
|
-
s387a4a41718122cb:
|
|
1545
|
+
s387a4a41718122cb: y`${0} resultat`,
|
|
1540
1546
|
s3fb7db4771812f0c: "Om problemet kvarstår, ladda om sidan eller kontakta support.",
|
|
1541
1547
|
s4b0c6b66b4efd7d8: "Välj en tjänst",
|
|
1542
1548
|
s5be3c6d61cd9182f: "Aviseringar",
|
|
@@ -1557,17 +1563,17 @@ var xt = "en", St = [
|
|
|
1557
1563
|
sfbf31f663cef6cc2: "Prova andra sökord eller kontrollera stavningen.",
|
|
1558
1564
|
s7c510419ea376840: "VSN",
|
|
1559
1565
|
s38385cd359b17f7a: "Loading modules"
|
|
1560
|
-
},
|
|
1561
|
-
da:
|
|
1562
|
-
fi:
|
|
1563
|
-
nl:
|
|
1564
|
-
no:
|
|
1565
|
-
sv:
|
|
1566
|
-
}, { getLocale:
|
|
1567
|
-
sourceLocale:
|
|
1568
|
-
targetLocales:
|
|
1569
|
-
loadLocale: (e) =>
|
|
1570
|
-
}),
|
|
1566
|
+
}, Ft = {
|
|
1567
|
+
da: Tt,
|
|
1568
|
+
fi: Dt,
|
|
1569
|
+
nl: kt,
|
|
1570
|
+
no: jt,
|
|
1571
|
+
sv: Nt
|
|
1572
|
+
}, { getLocale: It, setLocale: Lt } = je({
|
|
1573
|
+
sourceLocale: Ct,
|
|
1574
|
+
targetLocales: wt,
|
|
1575
|
+
loadLocale: (e) => Ft[e] ? Promise.resolve(Ft[e]) : Promise.reject(/* @__PURE__ */ Error(`Unknown locale: ${e}`))
|
|
1576
|
+
}), Rt = t`
|
|
1571
1577
|
@layer components {
|
|
1572
1578
|
vsn-footer {
|
|
1573
1579
|
display: block;
|
|
@@ -1608,7 +1614,7 @@ var xt = "en", St = [
|
|
|
1608
1614
|
justify-content: center;
|
|
1609
1615
|
}
|
|
1610
1616
|
}
|
|
1611
|
-
`,
|
|
1617
|
+
`, zt = t`
|
|
1612
1618
|
@layer components {
|
|
1613
1619
|
.vsn-switcher-anchor {
|
|
1614
1620
|
position: relative;
|
|
@@ -1622,7 +1628,7 @@ var xt = "en", St = [
|
|
|
1622
1628
|
z-index: 10;
|
|
1623
1629
|
}
|
|
1624
1630
|
}
|
|
1625
|
-
`,
|
|
1631
|
+
`, Bt = t`
|
|
1626
1632
|
.vsn-search__trigger,
|
|
1627
1633
|
.vsn-search__clear {
|
|
1628
1634
|
display: inline-flex;
|
|
@@ -1671,7 +1677,7 @@ var xt = "en", St = [
|
|
|
1671
1677
|
.ga-side-navigation__search input::placeholder {
|
|
1672
1678
|
color: var(--ga-color-text-disable-selected);
|
|
1673
1679
|
}
|
|
1674
|
-
`,
|
|
1680
|
+
`, Vt = t`
|
|
1675
1681
|
.vsn-search-results__empty {
|
|
1676
1682
|
display: flex;
|
|
1677
1683
|
flex-direction: column;
|
|
@@ -1740,7 +1746,7 @@ var xt = "en", St = [
|
|
|
1740
1746
|
cursor: not-allowed;
|
|
1741
1747
|
opacity: 0.5;
|
|
1742
1748
|
}
|
|
1743
|
-
`,
|
|
1749
|
+
`, Ht = t`
|
|
1744
1750
|
@layer components {
|
|
1745
1751
|
vsn-search-scopes {
|
|
1746
1752
|
display: block;
|
|
@@ -1761,7 +1767,7 @@ var xt = "en", St = [
|
|
|
1761
1767
|
text-overflow: ellipsis;
|
|
1762
1768
|
}
|
|
1763
1769
|
}
|
|
1764
|
-
`,
|
|
1770
|
+
`, Ut = t`
|
|
1765
1771
|
.vsn-template__row {
|
|
1766
1772
|
display: flex;
|
|
1767
1773
|
flex-direction: column;
|
|
@@ -1776,7 +1782,7 @@ var xt = "en", St = [
|
|
|
1776
1782
|
background: var(--ga-color-miscellaneous-skeleton-element, #F2F3F5);
|
|
1777
1783
|
flex-shrink: 0;
|
|
1778
1784
|
}
|
|
1779
|
-
`,
|
|
1785
|
+
`, Wt = t`
|
|
1780
1786
|
.vsn-error-state {
|
|
1781
1787
|
display: flex;
|
|
1782
1788
|
flex-direction: column;
|
|
@@ -1815,7 +1821,7 @@ var xt = "en", St = [
|
|
|
1815
1821
|
font-weight: 400;
|
|
1816
1822
|
color: var(--ga-color-text-on-disabled);
|
|
1817
1823
|
}
|
|
1818
|
-
`,
|
|
1824
|
+
`, Gt = t`
|
|
1819
1825
|
.vsn-spinner {
|
|
1820
1826
|
display: inline-block;
|
|
1821
1827
|
flex-shrink: 0;
|
|
@@ -1835,7 +1841,7 @@ var xt = "en", St = [
|
|
|
1835
1841
|
@keyframes vsn-spin {
|
|
1836
1842
|
to { transform: rotate(360deg); }
|
|
1837
1843
|
}
|
|
1838
|
-
`,
|
|
1844
|
+
`, Kt = class {
|
|
1839
1845
|
constructor(e, t, n) {
|
|
1840
1846
|
this._onHostClick = (e) => {
|
|
1841
1847
|
let t = this._host.renderRoot.querySelector(this._clickedSelector);
|
|
@@ -1848,14 +1854,14 @@ var xt = "en", St = [
|
|
|
1848
1854
|
hostDisconnected() {
|
|
1849
1855
|
this._host.removeEventListener("click", this._onHostClick);
|
|
1850
1856
|
}
|
|
1851
|
-
},
|
|
1857
|
+
}, qt = "button:not([disabled]), a[href], [tabindex]:not([tabindex=\"-1\"])", Jt = class {
|
|
1852
1858
|
constructor(e) {
|
|
1853
1859
|
this.onKeydown = (e) => {
|
|
1854
1860
|
if (e.defaultPrevented || A(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
1855
1861
|
let t = this.host.renderRoot.querySelector("slot[name=\"nav-footer\"]");
|
|
1856
1862
|
if (!t) return;
|
|
1857
1863
|
let n = [];
|
|
1858
|
-
for (let e of t.assignedElements({ flatten: !0 })) e.matches(
|
|
1864
|
+
for (let e of t.assignedElements({ flatten: !0 })) e.matches(qt) && n.push(e), n.push(...Array.from(e.querySelectorAll(qt)));
|
|
1859
1865
|
if (n.length === 0) return;
|
|
1860
1866
|
let r = e.composedPath()[0];
|
|
1861
1867
|
if (!(r instanceof HTMLElement)) return;
|
|
@@ -1867,24 +1873,38 @@ var xt = "en", St = [
|
|
|
1867
1873
|
}, this.host = e, e.addController(this);
|
|
1868
1874
|
}
|
|
1869
1875
|
hostConnected() {}
|
|
1870
|
-
},
|
|
1876
|
+
}, G = t`
|
|
1871
1877
|
.ga-scroll {
|
|
1872
1878
|
scrollbar-color: var(--ga-color-text-disabled) var(--ga-color-surface-page);
|
|
1873
1879
|
scrollbar-width: thin;
|
|
1874
1880
|
}
|
|
1875
|
-
`,
|
|
1881
|
+
`, Yt = t`
|
|
1882
|
+
@layer components {
|
|
1883
|
+
.ga-side-navigation__item:focus-visible::after {
|
|
1884
|
+
position: absolute;
|
|
1885
|
+
inset: 3px;
|
|
1886
|
+
border-radius: calc(var(--ga-radius) * var(--ga-base-scaling-factor, 1));
|
|
1887
|
+
border-style: var(--tw-border-style);
|
|
1888
|
+
border-width: 2px;
|
|
1889
|
+
border-color: var(--ga-color-border-focus);
|
|
1890
|
+
--tw-content: '';
|
|
1891
|
+
content: var(--tw-content);
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
`, K = class extends e {
|
|
1876
1895
|
static {
|
|
1877
1896
|
this.styles = [
|
|
1878
1897
|
h,
|
|
1879
|
-
|
|
1880
|
-
Lt,
|
|
1881
|
-
It,
|
|
1882
|
-
Rt,
|
|
1898
|
+
G,
|
|
1883
1899
|
zt,
|
|
1900
|
+
Yt,
|
|
1901
|
+
Rt,
|
|
1884
1902
|
Bt,
|
|
1885
1903
|
Vt,
|
|
1886
1904
|
Ht,
|
|
1887
1905
|
Ut,
|
|
1906
|
+
Wt,
|
|
1907
|
+
Gt,
|
|
1888
1908
|
t`
|
|
1889
1909
|
:host {
|
|
1890
1910
|
position: absolute;
|
|
@@ -1899,7 +1919,7 @@ var xt = "en", St = [
|
|
|
1899
1919
|
];
|
|
1900
1920
|
}
|
|
1901
1921
|
constructor() {
|
|
1902
|
-
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
|
|
1922
|
+
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 Jt(this), this._onNavigate = (e) => {
|
|
1903
1923
|
this._searchQuery = "", this._searchResults = void 0, this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
|
|
1904
1924
|
bubbles: !0,
|
|
1905
1925
|
composed: !0
|
|
@@ -1915,25 +1935,25 @@ var xt = "en", St = [
|
|
|
1915
1935
|
composed: !0
|
|
1916
1936
|
}));
|
|
1917
1937
|
}, this._onScopeChanged = (e) => {
|
|
1918
|
-
this._activeScopeId = e.detail.scopeId, this._runSearch(this._searchQuery, this._activeScopeId);
|
|
1919
|
-
}, new
|
|
1938
|
+
this._activeScopeId = e.detail.scopeId, this._runSearch(this._searchQuery, this._activeScopeId), this.focusSearch();
|
|
1939
|
+
}, new Kt(this, ".ga-side-navigation", () => this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
|
|
1920
1940
|
bubbles: !0,
|
|
1921
1941
|
composed: !0
|
|
1922
1942
|
}))), this._resizeObserver = new ResizeObserver((e) => {
|
|
1923
1943
|
this._observeMenuSize(e);
|
|
1924
|
-
}), this._resizeObserver.observe(this);
|
|
1944
|
+
}), this._resizeObserver.observe(this), new mt(this, () => this.open);
|
|
1925
1945
|
}
|
|
1926
1946
|
_observeMenuSize(e) {
|
|
1927
1947
|
this._moduleSwitcherMaxHeight = Math.max(0, e[0].contentRect.height - 134);
|
|
1928
1948
|
}
|
|
1929
1949
|
willUpdate(e) {
|
|
1930
|
-
e.has("lang") &&
|
|
1950
|
+
e.has("lang") && Lt(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());
|
|
1931
1951
|
}
|
|
1932
1952
|
async focusSearch() {
|
|
1933
|
-
await this.updateComplete, this.
|
|
1953
|
+
await this.updateComplete, this.renderRoot.querySelector("vsn-header")?.focus();
|
|
1934
1954
|
}
|
|
1935
1955
|
_onSearchInput(e) {
|
|
1936
|
-
this._searchQuery = e.detail.value, e.detail.value
|
|
1956
|
+
this._searchQuery = e.detail.value, e.detail.value.length < 3 && this._clearSearchState();
|
|
1937
1957
|
}
|
|
1938
1958
|
_onSearchSubmit(e) {
|
|
1939
1959
|
this._runSearch(e.detail.query, this._activeScopeId);
|
|
@@ -1945,7 +1965,7 @@ var xt = "en", St = [
|
|
|
1945
1965
|
this._searchAbort?.abort(), this._searchAbort = void 0, this._searchResults = void 0, this._searchLoading = !1, this._searchLoadingMore = !1, this._searchError = void 0, this._searchNextCursor = void 0;
|
|
1946
1966
|
}
|
|
1947
1967
|
async _runSearch(e, t) {
|
|
1948
|
-
if (this._searchAbort?.abort(), this._searchAbort = void 0, this._searchError = void 0, this._searchNextCursor = void 0, this._searchLoadingMore = !1,
|
|
1968
|
+
if (this._searchAbort?.abort(), this._searchAbort = void 0, this._searchError = void 0, this._searchNextCursor = void 0, this._searchLoadingMore = !1, e.length < 3) {
|
|
1949
1969
|
this._searchResults = void 0, this._searchLoading = !1;
|
|
1950
1970
|
return;
|
|
1951
1971
|
}
|
|
@@ -1969,7 +1989,7 @@ var xt = "en", St = [
|
|
|
1969
1989
|
this._searchResults = t.results, this._searchNextCursor = t.nextCursor, this._searchLoading = !1, this._searchAbort = void 0;
|
|
1970
1990
|
} catch (e) {
|
|
1971
1991
|
if (this._searchAbort !== r) return;
|
|
1972
|
-
e instanceof
|
|
1992
|
+
e instanceof de ? (this._searchError = e.message, this._searchResults = void 0) : console.error("Search function rejected with non-SearchError:", e), this._searchLoading = !1, this._searchAbort = void 0;
|
|
1973
1993
|
}
|
|
1974
1994
|
}
|
|
1975
1995
|
async _loadMore() {
|
|
@@ -1989,7 +2009,7 @@ var xt = "en", St = [
|
|
|
1989
2009
|
this._searchResults = [...this._searchResults ?? [], ...n.results], this._searchNextCursor = n.nextCursor, this._searchLoadingMore = !1, this._searchAbort = void 0;
|
|
1990
2010
|
} catch (e) {
|
|
1991
2011
|
if (this._searchAbort !== t) return;
|
|
1992
|
-
e instanceof
|
|
2012
|
+
e instanceof de ? (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;
|
|
1993
2013
|
}
|
|
1994
2014
|
}
|
|
1995
2015
|
_filterTree(e) {
|
|
@@ -2099,15 +2119,15 @@ var xt = "en", St = [
|
|
|
2099
2119
|
`;
|
|
2100
2120
|
}
|
|
2101
2121
|
};
|
|
2102
|
-
P([s({ attribute: !1 })],
|
|
2122
|
+
P([s({ attribute: !1 })], K.prototype, "modules", void 0), P([s()], K.prototype, "activeModuleId", void 0), P([s()], K.prototype, "activeModuleLabel", void 0), P([s({ type: Boolean })], K.prototype, "modulesLoading", void 0), P([s()], K.prototype, "lang", void 0), P([s({ attribute: !1 })], K.prototype, "auth", void 0), P([s({ type: Boolean })], K.prototype, "error", void 0), P([s({
|
|
2103
2123
|
type: Boolean,
|
|
2104
2124
|
reflect: !0
|
|
2105
|
-
})],
|
|
2125
|
+
})], K.prototype, "open", void 0), P([s({ attribute: !1 })], K.prototype, "menu", void 0), P([l()], K.prototype, "_searchQuery", void 0), P([l()], K.prototype, "_searchResults", void 0), P([l()], K.prototype, "_searchLoading", void 0), P([l()], K.prototype, "_activeScopeId", void 0), P([l()], K.prototype, "_searchError", void 0), P([l()], K.prototype, "_searchNextCursor", void 0), P([l()], K.prototype, "_searchLoadingMore", void 0), P([l()], K.prototype, "_moduleSwitcherMaxHeight", void 0), K = P([o("vsn-side-bar")], K);
|
|
2106
2126
|
//#endregion
|
|
2107
2127
|
//#region src/components/vsn-top-bar/vsn-breadcrumb-menu-item.ts
|
|
2108
|
-
var
|
|
2128
|
+
var Xt, q = class extends e {
|
|
2109
2129
|
static {
|
|
2110
|
-
|
|
2130
|
+
Xt = this;
|
|
2111
2131
|
}
|
|
2112
2132
|
static {
|
|
2113
2133
|
this._idCounter = 0;
|
|
@@ -2139,7 +2159,7 @@ var J, Y = class extends e {
|
|
|
2139
2159
|
bubbles: !0,
|
|
2140
2160
|
composed: !0
|
|
2141
2161
|
}));
|
|
2142
|
-
}, this._tooltipId = `vsn-menu-item-tooltip-${
|
|
2162
|
+
}, this._tooltipId = `vsn-menu-item-tooltip-${Xt._idCounter++}`;
|
|
2143
2163
|
}
|
|
2144
2164
|
createRenderRoot() {
|
|
2145
2165
|
return this;
|
|
@@ -2189,10 +2209,10 @@ var J, Y = class extends e {
|
|
|
2189
2209
|
if (this.tree && _(this.tree)) return this.tree.items.length > 0;
|
|
2190
2210
|
}
|
|
2191
2211
|
};
|
|
2192
|
-
P([s({ attribute: !1 })],
|
|
2212
|
+
P([s({ attribute: !1 })], q.prototype, "tree", void 0), P([s({ type: Number })], q.prototype, "level", void 0), P([s({ type: Array })], q.prototype, "ancestorPath", void 0), P([l()], q.prototype, "_isExpanded", void 0), P([l()], q.prototype, "_showTooltip", void 0), P([l()], q.prototype, "_tooltipPos", void 0), P([c(".ga-side-navigation__item-label")], q.prototype, "_labelEl", void 0), q = Xt = P([o("vsn-breadcrumb-menu-item")], q);
|
|
2193
2213
|
//#endregion
|
|
2194
2214
|
//#region src/components/vsn-top-bar/vsn-breadcrumb-menu.ts
|
|
2195
|
-
var
|
|
2215
|
+
var Zt = class extends e {
|
|
2196
2216
|
createRenderRoot() {
|
|
2197
2217
|
return this;
|
|
2198
2218
|
}
|
|
@@ -2212,10 +2232,10 @@ var qt = class extends e {
|
|
|
2212
2232
|
`;
|
|
2213
2233
|
}
|
|
2214
2234
|
};
|
|
2215
|
-
P([s({ attribute: !1 })],
|
|
2235
|
+
P([s({ attribute: !1 })], Zt.prototype, "treeList", void 0), Zt = P([o("vsn-breadcrumb-menu")], Zt);
|
|
2216
2236
|
//#endregion
|
|
2217
2237
|
//#region src/components/vsn-top-bar/vsn-breadcrumbs.ts
|
|
2218
|
-
var
|
|
2238
|
+
var J = class extends e {
|
|
2219
2239
|
constructor(...e) {
|
|
2220
2240
|
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 = () => {
|
|
2221
2241
|
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);
|
|
@@ -2236,7 +2256,7 @@ var X = class extends e {
|
|
|
2236
2256
|
static {
|
|
2237
2257
|
this.styles = [
|
|
2238
2258
|
h,
|
|
2239
|
-
|
|
2259
|
+
G,
|
|
2240
2260
|
t`
|
|
2241
2261
|
/* Temporary, until breadcrumb styles are updated */
|
|
2242
2262
|
|
|
@@ -2546,7 +2566,7 @@ var X = class extends e {
|
|
|
2546
2566
|
}
|
|
2547
2567
|
render() {
|
|
2548
2568
|
return n`
|
|
2549
|
-
<nav aria-label=${
|
|
2569
|
+
<nav aria-label=${b("Breadcrumb")}>
|
|
2550
2570
|
<div class="ga-breadcrumb">
|
|
2551
2571
|
${this._displayMode === "full" ? this._renderFullBreadcrumbs() : this._displayMode === "overflow" ? this._renderOverflowBreadcrumbs() : this._renderMobileBreadcrumbs()}
|
|
2552
2572
|
</div>
|
|
@@ -2560,10 +2580,10 @@ var X = class extends e {
|
|
|
2560
2580
|
`;
|
|
2561
2581
|
}
|
|
2562
2582
|
};
|
|
2563
|
-
P([s({ attribute: !1 })],
|
|
2583
|
+
P([s({ attribute: !1 })], J.prototype, "tree", void 0), P([s({ type: Array })], J.prototype, "modules", void 0), P([s()], J.prototype, "activeModuleId", void 0), P([l()], J.prototype, "_openPopoverId", void 0), P([l()], J.prototype, "_displayMode", void 0), P([l()], J.prototype, "_overflowCount", void 0), P([l()], J.prototype, "_tooltip", void 0), J = P([x(), o("vsn-breadcrumbs")], J);
|
|
2564
2584
|
//#endregion
|
|
2565
2585
|
//#region src/components/vsn-top-bar/vsn-ai-assistant.ts
|
|
2566
|
-
var
|
|
2586
|
+
var Qt = class extends e {
|
|
2567
2587
|
createRenderRoot() {
|
|
2568
2588
|
return this;
|
|
2569
2589
|
}
|
|
@@ -2577,16 +2597,16 @@ var Jt = class extends e {
|
|
|
2577
2597
|
render() {
|
|
2578
2598
|
return n`
|
|
2579
2599
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2580
|
-
aria-label=${
|
|
2600
|
+
aria-label=${b("Open AI assistant")} @click=${this._handleClick}>
|
|
2581
2601
|
<span class="ga-icon">${M(Je)}</span>
|
|
2582
2602
|
</button>
|
|
2583
2603
|
`;
|
|
2584
2604
|
}
|
|
2585
2605
|
};
|
|
2586
|
-
|
|
2606
|
+
Qt = P([x(), o("vsn-ai-assistant")], Qt);
|
|
2587
2607
|
//#endregion
|
|
2588
2608
|
//#region src/components/vsn-top-bar/vsn-feedback.ts
|
|
2589
|
-
var
|
|
2609
|
+
var Y = class extends e {
|
|
2590
2610
|
constructor(...e) {
|
|
2591
2611
|
super(...e), this._compact = !1, this.feedback = null, this._mqMobile = window.matchMedia("(max-width: 767px)"), this._handleMediaChange = () => {
|
|
2592
2612
|
this._compact = this._mqMobile.matches;
|
|
@@ -2626,21 +2646,21 @@ var Z = class extends e {
|
|
|
2626
2646
|
render() {
|
|
2627
2647
|
return this._compact ? n`
|
|
2628
2648
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2629
|
-
aria-label=${
|
|
2649
|
+
aria-label=${b("Send feedback")} @click=${this._handleClick}>
|
|
2630
2650
|
<span class="ga-icon">${M(Ze)}</span>
|
|
2631
2651
|
</button>
|
|
2632
2652
|
` : n`
|
|
2633
|
-
<button type="button" class="ga-button ga-button--secondary" aria-label=${
|
|
2653
|
+
<button type="button" class="ga-button ga-button--secondary" aria-label=${b("Send feedback")}
|
|
2634
2654
|
@click=${this._handleClick}>
|
|
2635
|
-
${
|
|
2655
|
+
${b("Feedback")}
|
|
2636
2656
|
</button>
|
|
2637
2657
|
`;
|
|
2638
2658
|
}
|
|
2639
2659
|
};
|
|
2640
|
-
P([l()],
|
|
2660
|
+
P([l()], Y.prototype, "_compact", void 0), P([s({ attribute: !1 })], Y.prototype, "feedback", void 0), P([s({ attribute: !1 })], Y.prototype, "auth", void 0), Y = P([x(), o("vsn-feedback")], Y);
|
|
2641
2661
|
//#endregion
|
|
2642
2662
|
//#region src/components/vsn-top-bar/vsn-home.ts
|
|
2643
|
-
var
|
|
2663
|
+
var $t = class extends e {
|
|
2644
2664
|
createRenderRoot() {
|
|
2645
2665
|
return this;
|
|
2646
2666
|
}
|
|
@@ -2648,7 +2668,7 @@ var Yt = class extends e {
|
|
|
2648
2668
|
e.preventDefault(), this.landingPageUrl && this.dispatchEvent(new CustomEvent("vsn-navigate", {
|
|
2649
2669
|
detail: {
|
|
2650
2670
|
id: "home",
|
|
2651
|
-
label:
|
|
2671
|
+
label: b("Home"),
|
|
2652
2672
|
url: this.landingPageUrl
|
|
2653
2673
|
},
|
|
2654
2674
|
bubbles: !0,
|
|
@@ -2657,17 +2677,17 @@ var Yt = class extends e {
|
|
|
2657
2677
|
}
|
|
2658
2678
|
render() {
|
|
2659
2679
|
return this.landingPageUrl ? n`
|
|
2660
|
-
<a href=${this.landingPageUrl} class="ga-button ga-button--ghost ga-button--icon-only" aria-label=${
|
|
2680
|
+
<a href=${this.landingPageUrl} class="ga-button ga-button--ghost ga-button--icon-only" aria-label=${b("Home")}
|
|
2661
2681
|
@click=${this._handleClick}>
|
|
2662
2682
|
<span class="ga-icon">${M(Qe)}</span>
|
|
2663
2683
|
</a>
|
|
2664
2684
|
` : r;
|
|
2665
2685
|
}
|
|
2666
2686
|
};
|
|
2667
|
-
P([s({ attribute: "landing-page-url" })],
|
|
2687
|
+
P([s({ attribute: "landing-page-url" })], $t.prototype, "landingPageUrl", void 0), $t = P([x(), o("vsn-home")], $t);
|
|
2668
2688
|
//#endregion
|
|
2669
2689
|
//#region src/components/vsn-top-bar/vsn-menu-toggle.ts
|
|
2670
|
-
var
|
|
2690
|
+
var en = class extends e {
|
|
2671
2691
|
createRenderRoot() {
|
|
2672
2692
|
return this;
|
|
2673
2693
|
}
|
|
@@ -2689,7 +2709,7 @@ var Xt = class extends e {
|
|
|
2689
2709
|
}
|
|
2690
2710
|
render() {
|
|
2691
2711
|
return n`
|
|
2692
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2712
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${b("Open menu")}
|
|
2693
2713
|
aria-describedby="vsn-menu-toggle-tooltip"
|
|
2694
2714
|
@click=${this._handleClick}
|
|
2695
2715
|
@mouseenter=${this._onActivate}
|
|
@@ -2704,10 +2724,10 @@ var Xt = class extends e {
|
|
|
2704
2724
|
`;
|
|
2705
2725
|
}
|
|
2706
2726
|
};
|
|
2707
|
-
P([c("div[role=\"tooltip\"]", !0)],
|
|
2727
|
+
P([c("div[role=\"tooltip\"]", !0)], en.prototype, "_tooltipElement", void 0), en = P([x(), o("vsn-menu-toggle")], en);
|
|
2708
2728
|
//#endregion
|
|
2709
2729
|
//#region src/components/vsn-top-bar/vsn-notifications.ts
|
|
2710
|
-
var
|
|
2730
|
+
var X = class extends e {
|
|
2711
2731
|
constructor(...e) {
|
|
2712
2732
|
super(...e), this.notificationActive = !1;
|
|
2713
2733
|
}
|
|
@@ -2725,7 +2745,7 @@ var Zt = class extends e {
|
|
|
2725
2745
|
let e = this.notificationActive ? Xe : Ye;
|
|
2726
2746
|
return n`
|
|
2727
2747
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2728
|
-
aria-label=${
|
|
2748
|
+
aria-label=${b("Notifications")} @click=${this._handleClick}>
|
|
2729
2749
|
<span class="ga-icon">${M(e)}</span>
|
|
2730
2750
|
</button>
|
|
2731
2751
|
`;
|
|
@@ -2735,10 +2755,10 @@ P([s({
|
|
|
2735
2755
|
type: Boolean,
|
|
2736
2756
|
attribute: "notification-active",
|
|
2737
2757
|
reflect: !0
|
|
2738
|
-
})],
|
|
2758
|
+
})], X.prototype, "notificationActive", void 0), X = P([x(), o("vsn-notifications")], X);
|
|
2739
2759
|
//#endregion
|
|
2740
2760
|
//#region src/components/vsn-top-bar/vsn-help.ts
|
|
2741
|
-
function
|
|
2761
|
+
function tn(e) {
|
|
2742
2762
|
try {
|
|
2743
2763
|
let t = new URL(e);
|
|
2744
2764
|
return t.protocol === "https:" || t.protocol === "http:";
|
|
@@ -2746,7 +2766,7 @@ function Qt(e) {
|
|
|
2746
2766
|
return !1;
|
|
2747
2767
|
}
|
|
2748
2768
|
}
|
|
2749
|
-
var
|
|
2769
|
+
var Z = class extends e {
|
|
2750
2770
|
createRenderRoot() {
|
|
2751
2771
|
return this;
|
|
2752
2772
|
}
|
|
@@ -2758,20 +2778,20 @@ var $t = class extends e {
|
|
|
2758
2778
|
}));
|
|
2759
2779
|
}
|
|
2760
2780
|
render() {
|
|
2761
|
-
return this.helpUrl &&
|
|
2781
|
+
return this.helpUrl && tn(this.helpUrl) ? n`
|
|
2762
2782
|
<a href=${this.helpUrl} target="_blank" rel="noopener noreferrer" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2763
|
-
aria-label=${
|
|
2783
|
+
aria-label=${b("Help")}>
|
|
2764
2784
|
<span class="ga-icon">${M($e)}</span>
|
|
2765
2785
|
</a>
|
|
2766
2786
|
` : n`
|
|
2767
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2787
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${b("Help")}
|
|
2768
2788
|
@click=${this._handleClick}>
|
|
2769
2789
|
<span class="ga-icon">${M($e)}</span>
|
|
2770
2790
|
</button>
|
|
2771
2791
|
`;
|
|
2772
2792
|
}
|
|
2773
2793
|
};
|
|
2774
|
-
P([s({ attribute: "help-url" })],
|
|
2794
|
+
P([s({ attribute: "help-url" })], Z.prototype, "helpUrl", void 0), Z = P([x(), o("vsn-help")], Z);
|
|
2775
2795
|
//#endregion
|
|
2776
2796
|
//#region src/components/vsn-top-bar/vsn-top-bar.ts
|
|
2777
2797
|
var Q = class extends e {
|
|
@@ -2779,7 +2799,7 @@ var Q = class extends e {
|
|
|
2779
2799
|
super(...e), this.modules = [], this.feedback = null, this.showHelp = !1, this.showNotification = !1, this.notificationActive = !1, this.lang = "en";
|
|
2780
2800
|
}
|
|
2781
2801
|
willUpdate(e) {
|
|
2782
|
-
e.has("lang") &&
|
|
2802
|
+
e.has("lang") && Lt(this.lang).catch(console.error);
|
|
2783
2803
|
}
|
|
2784
2804
|
focusMenuToggle() {
|
|
2785
2805
|
this.renderRoot.querySelector("vsn-menu-toggle")?.focus();
|
|
@@ -2925,7 +2945,7 @@ var $ = class extends e {
|
|
|
2925
2945
|
static {
|
|
2926
2946
|
this.styles = [
|
|
2927
2947
|
h,
|
|
2928
|
-
|
|
2948
|
+
G,
|
|
2929
2949
|
t`
|
|
2930
2950
|
:host {
|
|
2931
2951
|
display: flex;
|
|
@@ -3051,4 +3071,4 @@ P([s()], $.prototype, "lang", void 0), P([s({ attribute: !1 })], $.prototype, "t
|
|
|
3051
3071
|
reflect: !0
|
|
3052
3072
|
})], $.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")], $);
|
|
3053
3073
|
//#endregion
|
|
3054
|
-
export {
|
|
3074
|
+
export { de as SearchError, $ as VSNNavigation, g as isTreeLeaf, _ as isTreeParent };
|