@visma-swno/vsn-navigation 1.5.0-beta.2 → 1.5.0-beta.4
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 +399 -345
- package/dist/custom-elements.json +1 -1
- package/package.json +1 -1
|
@@ -20,34 +20,34 @@ if (m.styleSheet != null && !document[ne]) {
|
|
|
20
20
|
n instanceof CSSPropertyRule && (e.insertRule(n.cssText), m.styleSheet.deleteRule(t - 1 - r));
|
|
21
21
|
}), document.adoptedStyleSheets.push(e);
|
|
22
22
|
}
|
|
23
|
-
var h = m,
|
|
23
|
+
var h = m, re = "lit-localize-status", g = (e, ...t) => ({
|
|
24
24
|
strTag: !0,
|
|
25
25
|
strings: e,
|
|
26
26
|
values: t
|
|
27
|
-
}),
|
|
27
|
+
}), ie = (e) => typeof e != "string" && "strTag" in e, ae = (e, t, n) => {
|
|
28
28
|
let r = e[0];
|
|
29
29
|
for (let i = 1; i < e.length; i++) r += t[n ? n[i - 1] : i - 1], r += e[i];
|
|
30
30
|
return r;
|
|
31
|
-
},
|
|
32
|
-
function
|
|
33
|
-
if (
|
|
34
|
-
|
|
31
|
+
}, oe = ((e) => ie(e) ? ae(e.strings, e.values) : e), _ = oe, se = !1;
|
|
32
|
+
function ce(e) {
|
|
33
|
+
if (se) throw Error("lit-localize can only be configured once");
|
|
34
|
+
_ = e, se = !0;
|
|
35
35
|
}
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region node_modules/@lit/localize/internal/localized-controller.js
|
|
38
|
-
var
|
|
38
|
+
var le = class {
|
|
39
39
|
constructor(e) {
|
|
40
40
|
this.__litLocalizeEventHandler = (e) => {
|
|
41
41
|
e.detail.status === "ready" && this.host.requestUpdate();
|
|
42
42
|
}, this.host = e;
|
|
43
43
|
}
|
|
44
44
|
hostConnected() {
|
|
45
|
-
window.addEventListener(
|
|
45
|
+
window.addEventListener(re, this.__litLocalizeEventHandler);
|
|
46
46
|
}
|
|
47
47
|
hostDisconnected() {
|
|
48
|
-
window.removeEventListener(
|
|
48
|
+
window.removeEventListener(re, this.__litLocalizeEventHandler);
|
|
49
49
|
}
|
|
50
|
-
},
|
|
50
|
+
}, ue = (e) => e.addController(new le(e)), v = () => (e, t) => (e.addInitializer(ue), e), de = class {
|
|
51
51
|
constructor() {
|
|
52
52
|
this.settled = !1, this.promise = new Promise((e, t) => {
|
|
53
53
|
this._resolve = e, this._reject = t;
|
|
@@ -59,67 +59,67 @@ var ce = class {
|
|
|
59
59
|
reject(e) {
|
|
60
60
|
this.settled = !0, this._reject(e);
|
|
61
61
|
}
|
|
62
|
-
},
|
|
63
|
-
for (let e = 0; e < 256; e++)
|
|
64
|
-
function
|
|
62
|
+
}, y = [];
|
|
63
|
+
for (let e = 0; e < 256; e++) y[e] = (e >> 4 & 15).toString(16) + (e & 15).toString(16);
|
|
64
|
+
function fe(e) {
|
|
65
65
|
let t = 0, n = 8997, r = 0, i = 33826, a = 0, o = 40164, s = 0, c = 52210;
|
|
66
66
|
for (let l = 0; l < e.length; l++) n ^= e.charCodeAt(l), t = n * 435, r = i * 435, a = o * 435, s = c * 435, a += n << 8, s += i << 8, r += t >>> 16, n = t & 65535, a += r >>> 16, i = r & 65535, c = s + (a >>> 16) & 65535, o = a & 65535;
|
|
67
|
-
return
|
|
67
|
+
return y[c >> 8] + y[c & 255] + y[o >> 8] + y[o & 255] + y[i >> 8] + y[i & 255] + y[n >> 8] + y[n & 255];
|
|
68
68
|
}
|
|
69
|
-
var
|
|
70
|
-
function
|
|
71
|
-
return (t ?
|
|
69
|
+
var pe = "h", me = "s";
|
|
70
|
+
function he(e, t) {
|
|
71
|
+
return (t ? pe : me) + fe(typeof e == "string" ? e : e.join(""));
|
|
72
72
|
}
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region node_modules/@lit/localize/internal/runtime-msg.js
|
|
75
|
-
var
|
|
76
|
-
function
|
|
75
|
+
var ge = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new Map();
|
|
76
|
+
function ve(e, t, n) {
|
|
77
77
|
if (e) {
|
|
78
|
-
let r = e[n?.id ??
|
|
78
|
+
let r = e[n?.id ?? ye(t)];
|
|
79
79
|
if (r) {
|
|
80
80
|
if (typeof r == "string") return r;
|
|
81
|
-
if ("strTag" in r) return
|
|
81
|
+
if ("strTag" in r) return ae(r.strings, t.values, r.values);
|
|
82
82
|
{
|
|
83
|
-
let e =
|
|
84
|
-
return e === void 0 && (e = r.values,
|
|
83
|
+
let e = ge.get(r);
|
|
84
|
+
return e === void 0 && (e = r.values, ge.set(r, e)), {
|
|
85
85
|
...r,
|
|
86
86
|
values: e.map((e) => t.values[e])
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
return
|
|
91
|
+
return oe(t);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
let t = typeof e == "string" ? e : e.strings, n =
|
|
95
|
-
return n === void 0 && (n =
|
|
93
|
+
function ye(e) {
|
|
94
|
+
let t = typeof e == "string" ? e : e.strings, n = _e.get(t);
|
|
95
|
+
return n === void 0 && (n = he(t, typeof e != "string" && !("strTag" in e)), _e.set(t, n)), n;
|
|
96
96
|
}
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region node_modules/@lit/localize/init/runtime.js
|
|
99
|
-
function
|
|
100
|
-
window.dispatchEvent(new CustomEvent(
|
|
99
|
+
function be(e) {
|
|
100
|
+
window.dispatchEvent(new CustomEvent(re, { detail: e }));
|
|
101
101
|
}
|
|
102
|
-
var
|
|
102
|
+
var b = "", x, xe, S, Se, Ce, C = new de();
|
|
103
103
|
C.resolve();
|
|
104
|
-
var w = 0, we = (e) => (
|
|
104
|
+
var w = 0, we = (e) => (ce(((e, t) => ve(Ce, e, t))), b = xe = e.sourceLocale, S = new Set(e.targetLocales), S.add(e.sourceLocale), Se = e.loadLocale, {
|
|
105
105
|
getLocale: Te,
|
|
106
106
|
setLocale: Ee
|
|
107
|
-
}), Te = () =>
|
|
108
|
-
if (e === (
|
|
107
|
+
}), Te = () => b, Ee = (e) => {
|
|
108
|
+
if (e === (x ?? b)) return C.promise;
|
|
109
109
|
if (!S || !Se) throw Error("Internal error");
|
|
110
110
|
if (!S.has(e)) throw Error("Invalid locale code");
|
|
111
111
|
w++;
|
|
112
112
|
let t = w;
|
|
113
|
-
return
|
|
113
|
+
return x = e, C.settled && (C = new de()), be({
|
|
114
114
|
status: "loading",
|
|
115
115
|
loadingLocale: e
|
|
116
116
|
}), (e === xe ? Promise.resolve({ templates: void 0 }) : Se(e)).then((n) => {
|
|
117
|
-
w === t && (
|
|
117
|
+
w === t && (b = e, x = void 0, Ce = n.templates, be({
|
|
118
118
|
status: "ready",
|
|
119
119
|
readyLocale: e
|
|
120
120
|
}), C.resolve());
|
|
121
121
|
}, (n) => {
|
|
122
|
-
w === t && (
|
|
122
|
+
w === t && (be({
|
|
123
123
|
status: "error",
|
|
124
124
|
errorLocale: e,
|
|
125
125
|
errorMessage: n.toString()
|
|
@@ -129,11 +129,12 @@ var w = 0, we = (e) => (se(((e, t) => _e(Ce, e, t))), x = xe = e.sourceLocale, S
|
|
|
129
129
|
if (typeof navigator > "u") return !1;
|
|
130
130
|
let e = navigator.userAgentData?.platform ?? navigator.platform ?? "";
|
|
131
131
|
return /mac/i.test(e);
|
|
132
|
-
}, Oe = (e) => !e.shiftKey && !e.altKey && (De() ? e.ctrlKey !== e.metaKey : e.ctrlKey && !e.metaKey), T = (e) => e.shiftKey || e.altKey || e.ctrlKey || e.metaKey, E = (e) => !T(e), ke = () =>
|
|
132
|
+
}, Oe = (e) => !e.shiftKey && !e.altKey && (De() ? e.ctrlKey !== e.metaKey : e.ctrlKey && !e.metaKey), T = (e) => e.shiftKey || e.altKey || e.ctrlKey || e.metaKey, E = (e) => !T(e), ke = () => _("Choose a service"), Ae = () => _("Search"), je = () => De() ? "⌘O / Ctrl+O" : "Ctrl+O", Me = () => De() ? n`<kbd><kbd>⌘</kbd><kbd>O</kbd></kbd>/<kbd><kbd>Ctrl</kbd>+<kbd>O</kbd></kbd>` : n`<kbd><kbd>Ctrl</kbd>+<kbd>O</kbd></kbd>`, Ne = (e) => e.split(" ").filter((e) => e.length > 0), D = (e) => Ne(e).join("").length >= 3, Pe = (e) => _(g`Type at least ${e} characters to search`), Fe = () => _("Menu items"), Ie = () => _("Load more"), Le = () => _("Services"), Re = () => _("Services"), O = "menu", ze = "survicate-sdk", Be = "ui-components-feedback", Ve = (e) => `https://survey.survicate.com/workspaces/${e}/web_surveys.js`;
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region src/shared/icons.ts
|
|
135
|
-
function
|
|
136
|
-
return n
|
|
135
|
+
function k(e, t = 24, r) {
|
|
136
|
+
return n`
|
|
137
|
+
<svg
|
|
137
138
|
xmlns="http://www.w3.org/2000/svg"
|
|
138
139
|
width="${t}"
|
|
139
140
|
height="${t}"
|
|
@@ -145,25 +146,26 @@ function O(e, t = 24, r) {
|
|
|
145
146
|
stroke-linejoin="round"
|
|
146
147
|
aria-hidden="true"
|
|
147
148
|
class=${r ?? ""}
|
|
148
|
-
|
|
149
|
+
>${e}
|
|
150
|
+
</svg>`;
|
|
149
151
|
}
|
|
150
|
-
var
|
|
152
|
+
var He = i``, Ue = i`
|
|
151
153
|
<path d="M4 5h16"/>
|
|
152
154
|
<path d="M4 12h16"/>
|
|
153
155
|
<path d="M4 19h16"/>
|
|
154
|
-
`,
|
|
156
|
+
`, We = i`
|
|
155
157
|
<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"/>
|
|
156
158
|
<path d="M20 2v4"/>
|
|
157
159
|
<path d="M22 4h-4"/>
|
|
158
160
|
<circle cx="4" cy="20" r="2"/>
|
|
159
|
-
`,
|
|
161
|
+
`, Ge = i`
|
|
160
162
|
<path d="M10.268 21a2 2 0 0 0 3.464 0"/>
|
|
161
163
|
<path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"/>
|
|
162
|
-
`,
|
|
164
|
+
`, Ke = i`
|
|
163
165
|
<path d="M10.268 21a2 2 0 0 0 3.464 0"/>
|
|
164
166
|
<path d="M11.68 2.009A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673c-.824-.85-1.678-1.731-2.21-3.348"/>
|
|
165
167
|
<circle cx="18" cy="5" r="3"/>
|
|
166
|
-
`,
|
|
168
|
+
`, qe = i`
|
|
167
169
|
<path d="M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"/>
|
|
168
170
|
<path d="M7 10v12"/>
|
|
169
171
|
`;
|
|
@@ -174,14 +176,14 @@ i`
|
|
|
174
176
|
<path d="M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2"/>
|
|
175
177
|
<path d="M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16"/>
|
|
176
178
|
`;
|
|
177
|
-
var
|
|
179
|
+
var Je = i`
|
|
178
180
|
<path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"/>
|
|
179
181
|
<path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>
|
|
180
|
-
`,
|
|
182
|
+
`, Ye = i`
|
|
181
183
|
<circle cx="12" cy="12" r="10"/>
|
|
182
184
|
<path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/>
|
|
183
185
|
<path d="M12 17h.01"/>
|
|
184
|
-
`,
|
|
186
|
+
`, Xe = i`
|
|
185
187
|
<circle cx="12" cy="8" r="5"/>
|
|
186
188
|
<path d="M20 21a8 8 0 0 0-16 0"/>
|
|
187
189
|
`;
|
|
@@ -192,11 +194,11 @@ i`
|
|
|
192
194
|
<path d="M12 17v5"/>
|
|
193
195
|
<path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/>
|
|
194
196
|
`;
|
|
195
|
-
var
|
|
197
|
+
var Ze = i`
|
|
196
198
|
<path d="m16 17 5-5-5-5"/>
|
|
197
199
|
<path d="M21 12H9"/>
|
|
198
200
|
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/>
|
|
199
|
-
`,
|
|
201
|
+
`, Qe = i`
|
|
200
202
|
<path d="M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6"/>
|
|
201
203
|
<path d="m21 3-9 9"/>
|
|
202
204
|
<path d="M15 3h6v6"/>
|
|
@@ -205,17 +207,17 @@ i`
|
|
|
205
207
|
<circle cx="12" cy="12" r="10"/>
|
|
206
208
|
<circle cx="12" cy="12" r="1"/>
|
|
207
209
|
`;
|
|
208
|
-
var
|
|
210
|
+
var $e = i`
|
|
209
211
|
<path d="m7 15 5 5 5-5"/>
|
|
210
212
|
<path d="m7 9 5-5 5 5"/>
|
|
211
|
-
`,
|
|
213
|
+
`, et = i`
|
|
212
214
|
<path d="m18 15-6-6-6 6"/>
|
|
213
|
-
`,
|
|
215
|
+
`, A = i`
|
|
214
216
|
<path d="m6 9 6 6 6-6"/>
|
|
215
|
-
`,
|
|
217
|
+
`, tt = i`
|
|
216
218
|
<circle cx="11" cy="11" r="8"/>
|
|
217
219
|
<path d="m21 21-4.3-4.3"/>
|
|
218
|
-
`,
|
|
220
|
+
`, nt = i`
|
|
219
221
|
<circle cx="12" cy="12" r="10"/>
|
|
220
222
|
<path d="m15 9-6 6"/>
|
|
221
223
|
<path d="m9 9 6 6"/>
|
|
@@ -225,7 +227,7 @@ i`
|
|
|
225
227
|
<line x1="12" x2="12" y1="8" y2="12"/>
|
|
226
228
|
<line x1="12" x2="12.01" y1="16" y2="16"/>
|
|
227
229
|
`;
|
|
228
|
-
var
|
|
230
|
+
var rt = i`
|
|
229
231
|
<path d="M12 16h.01"/>
|
|
230
232
|
<path d="M12 8v4"/>
|
|
231
233
|
<path d="M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z"/>
|
|
@@ -236,9 +238,13 @@ i`
|
|
|
236
238
|
`, i`
|
|
237
239
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.60982 1.03843C2.99778 0.96126 3.39992 1.00087 3.76537 1.15224C4.13082 1.30362 4.44318 1.55996 4.66294 1.88886C4.8827 2.21776 5 2.60444 5 3V4H7V3C7 2.60444 7.1173 2.21776 7.33706 1.88886C7.55682 1.55996 7.86918 1.30362 8.23463 1.15224C8.60009 1.00087 9.00222 0.96126 9.39018 1.03843C9.77814 1.1156 10.1345 1.30608 10.4142 1.58579C10.6939 1.86549 10.8844 2.22186 10.9616 2.60982C11.0387 2.99778 10.9991 3.39992 10.8478 3.76537C10.6964 4.13082 10.44 4.44318 10.1111 4.66294C9.78224 4.8827 9.39556 5 9 5H8V7H9C9.39556 7 9.78224 7.1173 10.1111 7.33706C10.44 7.55682 10.6964 7.86918 10.8478 8.23463C10.9991 8.60009 11.0387 9.00222 10.9616 9.39018C10.8844 9.77814 10.6939 10.1345 10.4142 10.4142C10.1345 10.6939 9.77814 10.8844 9.39018 10.9616C9.00222 11.0387 8.60009 10.9991 8.23463 10.8478C7.86918 10.6964 7.55682 10.44 7.33706 10.1111C7.1173 9.78224 7 9.39556 7 9V8H5V9C5 9.39556 4.8827 9.78224 4.66294 10.1111C4.44318 10.44 4.13082 10.6964 3.76537 10.8478C3.39992 10.9991 2.99778 11.0387 2.60982 10.9616C2.22186 10.8844 1.86549 10.6939 1.58579 10.4142C1.30608 10.1345 1.1156 9.77814 1.03843 9.39018C0.96126 9.00222 1.00087 8.60009 1.15224 8.23463C1.30362 7.86918 1.55996 7.55682 1.88886 7.33706C2.21776 7.1173 2.60444 7 3 7H4V5H3C2.60444 5 2.21776 4.8827 1.88886 4.66294C1.55996 4.44318 1.30362 4.13082 1.15224 3.76537C1.00087 3.39992 0.96126 2.99778 1.03843 2.60982C1.1156 2.22186 1.30608 1.86549 1.58579 1.58579C1.86549 1.30608 2.22186 1.1156 2.60982 1.03843ZM4 4V3C4 2.80222 3.94135 2.60888 3.83147 2.44443C3.72159 2.27998 3.56541 2.15181 3.38268 2.07612C3.19996 2.00043 2.99889 1.98063 2.80491 2.01922C2.61093 2.0578 2.43275 2.15304 2.29289 2.29289C2.15304 2.43275 2.0578 2.61093 2.01922 2.80491C1.98063 2.99889 2.00043 3.19996 2.07612 3.38268C2.15181 3.56541 2.27998 3.72159 2.44443 3.83147C2.60888 3.94135 2.80222 4 3 4H4ZM5 5V7H7V5H5ZM4 8H3C2.80222 8 2.60888 8.05865 2.44443 8.16853C2.27998 8.27841 2.15181 8.43459 2.07612 8.61732C2.00043 8.80004 1.98063 9.00111 2.01922 9.19509C2.0578 9.38907 2.15304 9.56726 2.29289 9.70711C2.43275 9.84696 2.61093 9.9422 2.80491 9.98079C2.99889 10.0194 3.19996 9.99957 3.38268 9.92388C3.56541 9.84819 3.72159 9.72002 3.83147 9.55557C3.94135 9.39112 4 9.19778 4 9V8ZM8 8V9C8 9.19778 8.05865 9.39112 8.16853 9.55557C8.27841 9.72002 8.43459 9.84819 8.61732 9.92388C8.80004 9.99957 9.00111 10.0194 9.19509 9.98079C9.38907 9.9422 9.56726 9.84696 9.70711 9.70711C9.84696 9.56726 9.9422 9.38907 9.98079 9.19509C10.0194 9.00111 9.99957 8.80004 9.92388 8.61732C9.84819 8.43459 9.72002 8.27841 9.55557 8.16853C9.39112 8.05865 9.19778 8 9 8H8ZM8 4H9C9.19778 4 9.39112 3.94135 9.55557 3.83147C9.72002 3.72159 9.84819 3.56541 9.92388 3.38268C9.99957 3.19996 10.0194 2.99889 9.98079 2.80491C9.9422 2.61093 9.84696 2.43275 9.70711 2.29289C9.56726 2.15304 9.38907 2.0578 9.19509 2.01922C9.00111 1.98063 8.80004 2.00043 8.61732 2.07612C8.43459 2.15181 8.27841 2.27998 8.16853 2.44443C8.05865 2.60888 8 2.80222 8 3V4Z"/>
|
|
238
240
|
`;
|
|
239
|
-
var
|
|
241
|
+
var it = i`
|
|
240
242
|
<path d="m9 18 6-6-6-6"/>
|
|
241
|
-
|
|
243
|
+
`;
|
|
244
|
+
i`<path d="M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3"/>`, i`<path d="M9 19a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-6a1 1 0 0 1 1-1h3.293a.707.707 0 0 0 .5-1.207l-7.086-7.086a1 1 0 0 0-1.414 0l-7.086 7.086a.707.707 0 0 0 .5 1.207H8a1 1 0 0 1 1 1z"/>`;
|
|
245
|
+
//#endregion
|
|
246
|
+
//#region node_modules/@lit/context/lib/context-request-event.js
|
|
247
|
+
var at = class extends Event {
|
|
242
248
|
constructor(e, t, n, r) {
|
|
243
249
|
super("context-request", {
|
|
244
250
|
bubbles: !0,
|
|
@@ -248,12 +254,12 @@ var rt = i`
|
|
|
248
254
|
};
|
|
249
255
|
//#endregion
|
|
250
256
|
//#region node_modules/@lit/context/lib/create-context.js
|
|
251
|
-
function
|
|
257
|
+
function ot(e) {
|
|
252
258
|
return e;
|
|
253
259
|
}
|
|
254
260
|
//#endregion
|
|
255
261
|
//#region node_modules/@lit/context/lib/controllers/context-consumer.js
|
|
256
|
-
var
|
|
262
|
+
var st = class {
|
|
257
263
|
constructor(e, t, n, r) {
|
|
258
264
|
if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (e, t) => {
|
|
259
265
|
this.unsubscribe && (this.unsubscribe !== t && (this.provided = !1, this.unsubscribe()), this.subscribe || this.unsubscribe()), this.value = e, this.host.requestUpdate(), this.provided && !this.subscribe || (this.provided = !0, this.callback && this.callback(e, t)), this.unsubscribe = t;
|
|
@@ -270,9 +276,9 @@ var ot = class {
|
|
|
270
276
|
this.unsubscribe &&= (this.unsubscribe(), void 0);
|
|
271
277
|
}
|
|
272
278
|
dispatchRequest() {
|
|
273
|
-
this.host.dispatchEvent(new
|
|
279
|
+
this.host.dispatchEvent(new at(this.context, this.host, this.t, this.subscribe));
|
|
274
280
|
}
|
|
275
|
-
},
|
|
281
|
+
}, ct = class {
|
|
276
282
|
get value() {
|
|
277
283
|
return this.o;
|
|
278
284
|
}
|
|
@@ -302,14 +308,14 @@ var ot = class {
|
|
|
302
308
|
clearCallbacks() {
|
|
303
309
|
this.subscriptions.clear();
|
|
304
310
|
}
|
|
305
|
-
},
|
|
311
|
+
}, lt = class extends Event {
|
|
306
312
|
constructor(e, t) {
|
|
307
313
|
super("context-provider", {
|
|
308
314
|
bubbles: !0,
|
|
309
315
|
composed: !0
|
|
310
316
|
}), this.context = e, this.contextTarget = t;
|
|
311
317
|
}
|
|
312
|
-
},
|
|
318
|
+
}, ut = class extends ct {
|
|
313
319
|
constructor(e, t, n) {
|
|
314
320
|
super(t.context === void 0 ? n : t.initialValue), this.onContextRequest = (e) => {
|
|
315
321
|
if (e.context !== this.context) return;
|
|
@@ -318,7 +324,7 @@ var ot = class {
|
|
|
318
324
|
}, this.onProviderRequest = (e) => {
|
|
319
325
|
if (e.context !== this.context || (e.contextTarget ?? e.composedPath()[0]) === this.host) return;
|
|
320
326
|
let t = /* @__PURE__ */ new Set();
|
|
321
|
-
for (let [e, { consumerHost: n }] of this.subscriptions) t.has(e) || (t.add(e), n.dispatchEvent(new
|
|
327
|
+
for (let [e, { consumerHost: n }] of this.subscriptions) t.has(e) || (t.add(e), n.dispatchEvent(new at(this.context, n, e, !0)));
|
|
322
328
|
e.stopPropagation();
|
|
323
329
|
}, this.host = e, t.context === void 0 ? this.context = t : this.context = t.context, this.attachListeners(), this.host.addController?.(this);
|
|
324
330
|
}
|
|
@@ -326,12 +332,12 @@ var ot = class {
|
|
|
326
332
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
327
333
|
}
|
|
328
334
|
hostConnected() {
|
|
329
|
-
this.host.dispatchEvent(new
|
|
335
|
+
this.host.dispatchEvent(new lt(this.context, this.host));
|
|
330
336
|
}
|
|
331
337
|
};
|
|
332
338
|
//#endregion
|
|
333
339
|
//#region node_modules/@lit/context/lib/decorators/provide.js
|
|
334
|
-
function
|
|
340
|
+
function dt({ context: e }) {
|
|
335
341
|
return (t, n) => {
|
|
336
342
|
let r = /* @__PURE__ */ new WeakMap();
|
|
337
343
|
if (typeof n == "object") return {
|
|
@@ -342,7 +348,7 @@ function ut({ context: e }) {
|
|
|
342
348
|
return r.get(this).setValue(e), t.set.call(this, e);
|
|
343
349
|
},
|
|
344
350
|
init(t) {
|
|
345
|
-
return r.set(this, new
|
|
351
|
+
return r.set(this, new ut(this, {
|
|
346
352
|
context: e,
|
|
347
353
|
initialValue: t
|
|
348
354
|
})), t;
|
|
@@ -350,7 +356,7 @@ function ut({ context: e }) {
|
|
|
350
356
|
};
|
|
351
357
|
{
|
|
352
358
|
t.constructor.addInitializer(((t) => {
|
|
353
|
-
r.set(t, new
|
|
359
|
+
r.set(t, new ut(t, { context: e }));
|
|
354
360
|
}));
|
|
355
361
|
let i = Object.getOwnPropertyDescriptor(t, n), a;
|
|
356
362
|
if (i === void 0) {
|
|
@@ -381,10 +387,10 @@ function ut({ context: e }) {
|
|
|
381
387
|
}
|
|
382
388
|
//#endregion
|
|
383
389
|
//#region node_modules/@lit/context/lib/decorators/consume.js
|
|
384
|
-
function
|
|
390
|
+
function ft({ context: e, subscribe: t }) {
|
|
385
391
|
return (n, r) => {
|
|
386
392
|
typeof r == "object" ? r.addInitializer((function() {
|
|
387
|
-
new
|
|
393
|
+
new st(this, {
|
|
388
394
|
context: e,
|
|
389
395
|
callback: (e) => {
|
|
390
396
|
n.set.call(this, e);
|
|
@@ -392,7 +398,7 @@ function dt({ context: e, subscribe: t }) {
|
|
|
392
398
|
subscribe: t
|
|
393
399
|
});
|
|
394
400
|
})) : n.constructor.addInitializer(((n) => {
|
|
395
|
-
new
|
|
401
|
+
new st(n, {
|
|
396
402
|
context: e,
|
|
397
403
|
callback: (e) => {
|
|
398
404
|
n[r] = e;
|
|
@@ -404,20 +410,20 @@ function dt({ context: e, subscribe: t }) {
|
|
|
404
410
|
}
|
|
405
411
|
//#endregion
|
|
406
412
|
//#region src/shared/types/index.ts
|
|
407
|
-
function
|
|
413
|
+
function j(e) {
|
|
408
414
|
return "url" in e;
|
|
409
415
|
}
|
|
410
|
-
function
|
|
416
|
+
function M(e) {
|
|
411
417
|
return "items" in e;
|
|
412
418
|
}
|
|
413
|
-
var
|
|
419
|
+
var pt = class e extends Error {
|
|
414
420
|
constructor(t) {
|
|
415
421
|
super(t), this.name = "SearchError", Object.setPrototypeOf(this, e.prototype);
|
|
416
422
|
}
|
|
417
|
-
},
|
|
423
|
+
}, mt = ot("activeId"), ht = ot(Symbol("focus-manager"));
|
|
418
424
|
//#endregion
|
|
419
425
|
//#region \0@oxc-project+runtime@0.127.0/helpers/decorate.js
|
|
420
|
-
function
|
|
426
|
+
function N(e, t, n, r) {
|
|
421
427
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
422
428
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
423
429
|
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
@@ -425,9 +431,9 @@ function j(e, t, n, r) {
|
|
|
425
431
|
}
|
|
426
432
|
//#endregion
|
|
427
433
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-item.ts
|
|
428
|
-
var
|
|
434
|
+
var P, F = class extends e {
|
|
429
435
|
static {
|
|
430
|
-
|
|
436
|
+
P = this;
|
|
431
437
|
}
|
|
432
438
|
static {
|
|
433
439
|
this._idCounter = 0;
|
|
@@ -462,7 +468,7 @@ var M, N = class extends e {
|
|
|
462
468
|
}, this._onKeyDown = (e) => {
|
|
463
469
|
let t = this.tree;
|
|
464
470
|
if (t !== void 0 && !(e.defaultPrevented || T(e))) {
|
|
465
|
-
if (
|
|
471
|
+
if (P.menuShortcuts.includes(e.key) && (e.preventDefault(), e.stopPropagation()), e.key === "ArrowUp") {
|
|
466
472
|
this._focusManager?.focusPrev(this);
|
|
467
473
|
return;
|
|
468
474
|
}
|
|
@@ -470,10 +476,10 @@ var M, N = class extends e {
|
|
|
470
476
|
this._focusManager?.focusNext(this);
|
|
471
477
|
return;
|
|
472
478
|
}
|
|
473
|
-
|
|
479
|
+
M(t) ? this.handleKeyForParent(e.key) : this.handleKeyForLeaf(e.key);
|
|
474
480
|
}
|
|
475
481
|
};
|
|
476
|
-
let e =
|
|
482
|
+
let e = P._idCounter++;
|
|
477
483
|
this._tooltipId = `vsn-side-menu-item-tooltip-${e}`, this._childListId = `vsn-side-menu-item-list-${e}`;
|
|
478
484
|
}
|
|
479
485
|
focusSelf() {
|
|
@@ -481,10 +487,10 @@ var M, N = class extends e {
|
|
|
481
487
|
}
|
|
482
488
|
willUpdate(e) {
|
|
483
489
|
let t = this.tree;
|
|
484
|
-
t !== void 0 && e.has("_currentActiveId") && (this._isActive = this._currentActiveId === t.id,
|
|
490
|
+
t !== void 0 && e.has("_currentActiveId") && (this._isActive = this._currentActiveId === t.id, M(t) && (this._isExpanded = this.isActiveNode(t) !== null));
|
|
485
491
|
}
|
|
486
492
|
render() {
|
|
487
|
-
let e = this.tree !== void 0 &&
|
|
493
|
+
let e = this.tree !== void 0 && M(this.tree), t = this.tree && M(this.tree) ? this.tree.items : [];
|
|
488
494
|
return n`
|
|
489
495
|
${this.menuItemMarkup()}
|
|
490
496
|
${e ? n`
|
|
@@ -494,7 +500,7 @@ var M, N = class extends e {
|
|
|
494
500
|
`;
|
|
495
501
|
}
|
|
496
502
|
menuItemMarkup() {
|
|
497
|
-
let e = this.tree !== void 0 &&
|
|
503
|
+
let e = this.tree !== void 0 && M(this.tree), t = this.tree?.["data-qa-id"], r = {
|
|
498
504
|
"ga-side-navigation__item": !0,
|
|
499
505
|
[`ga-side-navigation__item--level-${this.level}`]: this.level > 1,
|
|
500
506
|
"ga-side-navigation__item--expanded": this._isExpanded,
|
|
@@ -505,7 +511,7 @@ var M, N = class extends e {
|
|
|
505
511
|
<div class="ga-tooltip ga-tooltip--right-center w-34 max-w-135">${this.tree?.label}</div>
|
|
506
512
|
</div>
|
|
507
513
|
<span class="ga-side-navigation__item-icon">
|
|
508
|
-
${e ? this._isExpanded ?
|
|
514
|
+
${e ? this._isExpanded ? k(A, 16) : k(it, 16) : ""}
|
|
509
515
|
</span>
|
|
510
516
|
<div class="ga-side-navigation__item-content">
|
|
511
517
|
<div class="ga-side-navigation__item-label">${this.tree?.label}</div>
|
|
@@ -517,7 +523,7 @@ var M, N = class extends e {
|
|
|
517
523
|
@mouseleave=${this._onItemMouseLeave} @keydown=${this._onKeyDown}>${i}
|
|
518
524
|
</button>` : n`<a class="${d(r)}" aria-describedby="${this._tooltipId}"
|
|
519
525
|
aria-current=${ee(this._isActive ? "page" : void 0)}
|
|
520
|
-
href="${this.tree &&
|
|
526
|
+
href="${this.tree && j(this.tree) ? this.tree.url : ""}" data-qa-id="${ee(t)}"
|
|
521
527
|
@click=${this._handleItemClick} @mouseenter=${this._onItemMouseEnter}
|
|
522
528
|
@mouseleave=${this._onItemMouseLeave} @keydown=${this._onKeyDown}>${i}</a>`;
|
|
523
529
|
}
|
|
@@ -553,7 +559,7 @@ var M, N = class extends e {
|
|
|
553
559
|
}
|
|
554
560
|
isActiveNode(e) {
|
|
555
561
|
if (e.id === this._currentActiveId) return e;
|
|
556
|
-
if (
|
|
562
|
+
if (M(e)) for (let t of e.items) {
|
|
557
563
|
let e = this.isActiveNode(t);
|
|
558
564
|
if (e) return e;
|
|
559
565
|
}
|
|
@@ -562,7 +568,7 @@ var M, N = class extends e {
|
|
|
562
568
|
_handleItemClick(e) {
|
|
563
569
|
let t = this.tree;
|
|
564
570
|
if (t !== void 0) {
|
|
565
|
-
if (
|
|
571
|
+
if (M(t)) {
|
|
566
572
|
this._isExpanded = !this._isExpanded, e.preventDefault(), e.stopPropagation();
|
|
567
573
|
return;
|
|
568
574
|
}
|
|
@@ -574,13 +580,13 @@ var M, N = class extends e {
|
|
|
574
580
|
}
|
|
575
581
|
}
|
|
576
582
|
};
|
|
577
|
-
|
|
578
|
-
context:
|
|
583
|
+
N([s({ attribute: !1 })], F.prototype, "tree", void 0), N([s({ type: Number })], F.prototype, "level", void 0), N([ft({
|
|
584
|
+
context: mt,
|
|
579
585
|
subscribe: !0
|
|
580
|
-
}), l()],
|
|
586
|
+
}), 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), N([ft({ context: ht })], F.prototype, "_focusManager", void 0), N([s({ type: Boolean })], F.prototype, "hasPageTitle", void 0), F = P = N([o("vsn-menu-item")], F);
|
|
581
587
|
//#endregion
|
|
582
588
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu.ts
|
|
583
|
-
var
|
|
589
|
+
var I = class extends e {
|
|
584
590
|
constructor(...e) {
|
|
585
591
|
super(...e), this.items = [], this._currentActiveId = "", this.currentItem = "", this.hasPageTitle = !1, this._focusManager = {
|
|
586
592
|
focusPrev: (e) => {
|
|
@@ -602,7 +608,7 @@ var P = class extends e {
|
|
|
602
608
|
render() {
|
|
603
609
|
return n`
|
|
604
610
|
<div class="flex flex-col ga-side-navigation__body h-full overflow-y-hidden">
|
|
605
|
-
<nav class="flex-1 overflow-y-auto ga-scroll" aria-label=${
|
|
611
|
+
<nav class="flex-1 overflow-y-auto ga-scroll" aria-label=${_("Side navigation")}>
|
|
606
612
|
<ul class="vsn-menu__list">
|
|
607
613
|
${u(this.items, (e) => n`<li class="vsn-menu__item">${this.menuItem(e)}</li>`)}
|
|
608
614
|
</ul>
|
|
@@ -618,10 +624,10 @@ var P = class extends e {
|
|
|
618
624
|
<vsn-menu-item .tree=${e} .hasPageTitle=${this.hasPageTitle}></vsn-menu-item>`;
|
|
619
625
|
}
|
|
620
626
|
};
|
|
621
|
-
|
|
627
|
+
N([s({ attribute: !1 })], I.prototype, "items", void 0), N([dt({ context: mt }), l()], I.prototype, "_currentActiveId", void 0), N([s()], I.prototype, "currentItem", void 0), N([s({ type: Boolean })], I.prototype, "hasPageTitle", void 0), N([dt({ context: ht })], I.prototype, "_focusManager", void 0), I = N([v(), o("vsn-menu")], I);
|
|
622
628
|
//#endregion
|
|
623
629
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-button.ts
|
|
624
|
-
var
|
|
630
|
+
var L = class extends e {
|
|
625
631
|
constructor(...e) {
|
|
626
632
|
super(...e), this.label = "", this.closeOnClick = !1, this._onKeydown = (e) => {
|
|
627
633
|
e.defaultPrevented || E(e) && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), this.click());
|
|
@@ -737,13 +743,13 @@ var F = class extends e {
|
|
|
737
743
|
`;
|
|
738
744
|
}
|
|
739
745
|
};
|
|
740
|
-
|
|
746
|
+
N([s()], L.prototype, "label", void 0), N([s({
|
|
741
747
|
type: Boolean,
|
|
742
748
|
attribute: "close-on-click"
|
|
743
|
-
})],
|
|
749
|
+
})], L.prototype, "closeOnClick", void 0), L = N([o("vsn-menu-button")], L);
|
|
744
750
|
//#endregion
|
|
745
751
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-separator.ts
|
|
746
|
-
var
|
|
752
|
+
var gt = class extends e {
|
|
747
753
|
static {
|
|
748
754
|
this.styles = [t`
|
|
749
755
|
/* flow-root establishes a BFC so the .line's margins stay contained.
|
|
@@ -767,10 +773,10 @@ var ht = class extends e {
|
|
|
767
773
|
return n`<div class="line"></div>`;
|
|
768
774
|
}
|
|
769
775
|
};
|
|
770
|
-
|
|
776
|
+
gt = N([o("vsn-menu-separator")], gt);
|
|
771
777
|
//#endregion
|
|
772
778
|
//#region src/components/vsn-side-bar/vsn-footer/vsn-footer.keyboard.ts
|
|
773
|
-
var
|
|
779
|
+
var _t = class {
|
|
774
780
|
constructor(e) {
|
|
775
781
|
this._prevExpanded = !1, this.onUserKeydown = (e) => {
|
|
776
782
|
e.defaultPrevented || T(e) || e.key === "Escape" && this.host.expanded && (e.preventDefault(), this.host.expanded = !1);
|
|
@@ -794,7 +800,7 @@ var gt = class {
|
|
|
794
800
|
} else !this.host.expanded && this._prevExpanded && this.host.querySelector(".ga-side-navigation__user")?.focus();
|
|
795
801
|
this._prevExpanded = this.host.expanded;
|
|
796
802
|
}
|
|
797
|
-
},
|
|
803
|
+
}, vt = class {
|
|
798
804
|
constructor(e, t, n) {
|
|
799
805
|
this._onPointerDown = (e) => {
|
|
800
806
|
let t = e.composedPath();
|
|
@@ -811,18 +817,18 @@ var gt = class {
|
|
|
811
817
|
hostDisconnected() {
|
|
812
818
|
document.removeEventListener("pointerdown", this._onPointerDown, !0);
|
|
813
819
|
}
|
|
814
|
-
},
|
|
815
|
-
function
|
|
820
|
+
}, yt = "initials";
|
|
821
|
+
function bt(e, t, n, r) {
|
|
816
822
|
if (!t) return;
|
|
817
823
|
let i = new URLSearchParams({
|
|
818
|
-
type:
|
|
824
|
+
type: yt,
|
|
819
825
|
size: r
|
|
820
826
|
});
|
|
821
827
|
return n && i.set("client_id", n), `${e}${t}?${i}`;
|
|
822
828
|
}
|
|
823
829
|
//#endregion
|
|
824
830
|
//#region src/components/controllers/focus-trapping-controller.ts
|
|
825
|
-
var
|
|
831
|
+
var R = class {
|
|
826
832
|
constructor(e, t, n = void 0) {
|
|
827
833
|
this._rootElement = null, this._onKeyDown = (e) => {
|
|
828
834
|
if (e.defaultPrevented || e.key !== "Tab" || e.ctrlKey || e.altKey || e.metaKey || !this._appliesCallback() || this._rootElement == null) return;
|
|
@@ -841,24 +847,24 @@ var I = class {
|
|
|
841
847
|
hostUpdated() {
|
|
842
848
|
this._rootElement == null && this._rootSelector && (this._rootElement = this._host.renderRoot.querySelector(this._rootSelector), this._rootElement != null && this._rootElement.addEventListener("keydown", this._onKeyDown));
|
|
843
849
|
}
|
|
844
|
-
},
|
|
845
|
-
profile:
|
|
846
|
-
logout:
|
|
847
|
-
},
|
|
848
|
-
profile:
|
|
849
|
-
logout:
|
|
850
|
-
}),
|
|
850
|
+
}, xt = {
|
|
851
|
+
profile: Xe,
|
|
852
|
+
logout: Ze
|
|
853
|
+
}, St = () => ({
|
|
854
|
+
profile: _("My profile"),
|
|
855
|
+
logout: _("Log out")
|
|
856
|
+
}), z = class extends e {
|
|
851
857
|
createRenderRoot() {
|
|
852
858
|
return this;
|
|
853
859
|
}
|
|
854
860
|
get _items() {
|
|
855
861
|
return [{
|
|
856
862
|
id: "profile",
|
|
857
|
-
label:
|
|
863
|
+
label: St().profile,
|
|
858
864
|
url: this.myProfileUrl
|
|
859
865
|
}, {
|
|
860
866
|
id: "logout",
|
|
861
|
-
label:
|
|
867
|
+
label: St().logout,
|
|
862
868
|
url: "/logout"
|
|
863
869
|
}];
|
|
864
870
|
}
|
|
@@ -888,9 +894,9 @@ var I = class {
|
|
|
888
894
|
});
|
|
889
895
|
}, this._onLabelMouseLeave = () => {
|
|
890
896
|
this._showTooltip = !1;
|
|
891
|
-
}, this._keyboard = new
|
|
897
|
+
}, this._keyboard = new _t(this), new vt(this, [".ga-side-navigation__footer-dropdown", ".ga-side-navigation__user"], () => {
|
|
892
898
|
this.expanded = !1;
|
|
893
|
-
}), new
|
|
899
|
+
}), new R(this, () => this.expanded);
|
|
894
900
|
}
|
|
895
901
|
willUpdate(e) {
|
|
896
902
|
(e.has("user") || e.has("profilePictureBaseUrl")) && (this._avatarFailed = !1);
|
|
@@ -906,7 +912,7 @@ var I = class {
|
|
|
906
912
|
|
|
907
913
|
<button
|
|
908
914
|
type="button"
|
|
909
|
-
aria-label=${this.user.userEmail ?
|
|
915
|
+
aria-label=${this.user.userEmail ? _(g`User menu, ${this.user.userName}, ${this.user.userEmail}`) : _(g`User menu, ${this.user.userName}`)}
|
|
910
916
|
aria-expanded="${this.expanded}"
|
|
911
917
|
class="ga-side-navigation__user
|
|
912
918
|
${this.expanded ? "ga-side-navigation__user--active" : ""}"
|
|
@@ -928,7 +934,7 @@ var I = class {
|
|
|
928
934
|
</div>
|
|
929
935
|
|
|
930
936
|
<span class="ga-side-navigation__user-action">
|
|
931
|
-
${this.expanded ?
|
|
937
|
+
${this.expanded ? k(et, 16) : k($e, 16)}
|
|
932
938
|
</span>
|
|
933
939
|
|
|
934
940
|
</button>
|
|
@@ -944,20 +950,20 @@ var I = class {
|
|
|
944
950
|
return n`
|
|
945
951
|
<div class="ga-side-navigation__footer-dropdown"
|
|
946
952
|
role="group"
|
|
947
|
-
aria-label=${
|
|
953
|
+
aria-label=${_("User menu")}
|
|
948
954
|
@keydown=${this._keyboard.onDropdownKeydown}>
|
|
949
955
|
|
|
950
956
|
${this._items.map((e) => {
|
|
951
957
|
let t = n`
|
|
952
958
|
<span class="ga-side-navigation__footer-dropdown-icon">
|
|
953
|
-
${
|
|
959
|
+
${k(xt[e.id], 16)}
|
|
954
960
|
</span>
|
|
955
961
|
<span class="ga-side-navigation__footer-dropdown-title">
|
|
956
962
|
${e.label}
|
|
957
963
|
</span>
|
|
958
964
|
${e.external ? n`
|
|
959
965
|
<span class="ga-side-navigation__footer-dropdown-trail">
|
|
960
|
-
${
|
|
966
|
+
${k(Qe, 16)}
|
|
961
967
|
</span>
|
|
962
968
|
` : r}
|
|
963
969
|
`;
|
|
@@ -997,7 +1003,7 @@ var I = class {
|
|
|
997
1003
|
}));
|
|
998
1004
|
}
|
|
999
1005
|
renderAvatar() {
|
|
1000
|
-
let e =
|
|
1006
|
+
let e = bt(this.profilePictureBaseUrl, this.user.userId, this.user.clientId, "small");
|
|
1001
1007
|
return e && !this._avatarFailed ? n`<img
|
|
1002
1008
|
class="ga-side-navigation__user-avatar"
|
|
1003
1009
|
src=${e}
|
|
@@ -1005,26 +1011,26 @@ var I = class {
|
|
|
1005
1011
|
@error=${() => {
|
|
1006
1012
|
this._avatarFailed = !0;
|
|
1007
1013
|
}}/>` : n`<span class="ga-side-navigation__user-avatar vsn-side-navigation__user-avatar--icon">
|
|
1008
|
-
${
|
|
1014
|
+
${k(Xe, 24)}
|
|
1009
1015
|
</span>`;
|
|
1010
1016
|
}
|
|
1011
1017
|
};
|
|
1012
|
-
|
|
1018
|
+
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({
|
|
1013
1019
|
type: Boolean,
|
|
1014
1020
|
reflect: !0
|
|
1015
|
-
})],
|
|
1021
|
+
})], z.prototype, "expanded", void 0), N([l()], z.prototype, "_avatarFailed", void 0), N([l()], z.prototype, "_showTooltip", void 0), N([l()], z.prototype, "_tooltipLabel", void 0), N([l()], z.prototype, "_tooltipPos", void 0), z = N([v(), o("vsn-footer")], z);
|
|
1016
1022
|
//#endregion
|
|
1017
1023
|
//#region src/components/vsn-side-bar/vsn-header/vsn-header.keyboard.ts
|
|
1018
|
-
var
|
|
1024
|
+
var Ct = class {
|
|
1019
1025
|
constructor(e) {
|
|
1020
1026
|
this.onSwitcherKeydown = (e) => {
|
|
1021
1027
|
e.defaultPrevented || T(e) || this.host.expanded && e.key === "Escape" && this.host.requestClose() && e.preventDefault();
|
|
1022
1028
|
}, this.host = e, e.addController(this);
|
|
1023
1029
|
}
|
|
1024
1030
|
hostConnected() {}
|
|
1025
|
-
},
|
|
1031
|
+
}, B, V = class extends e {
|
|
1026
1032
|
static {
|
|
1027
|
-
|
|
1033
|
+
B = this;
|
|
1028
1034
|
}
|
|
1029
1035
|
createRenderRoot() {
|
|
1030
1036
|
return this;
|
|
@@ -1046,7 +1052,7 @@ var St = class {
|
|
|
1046
1052
|
if (t.length === 0) return;
|
|
1047
1053
|
let n = this.getRootNode().activeElement, r = n instanceof HTMLElement ? t.indexOf(n) : -1, i = null;
|
|
1048
1054
|
e.key === "ArrowUp" && r > 0 ? i = t[r - 1] : e.key === "ArrowDown" && r < t.length - 1 && (i = t[r + 1]), i?.focus();
|
|
1049
|
-
}, this._headerId = `vsn-switcher-dropdown-header-${
|
|
1055
|
+
}, this._headerId = `vsn-switcher-dropdown-header-${B._idCounter++}`;
|
|
1050
1056
|
}
|
|
1051
1057
|
firstUpdated() {
|
|
1052
1058
|
this.focus();
|
|
@@ -1069,7 +1075,7 @@ var St = class {
|
|
|
1069
1075
|
<div class="ga-side-navigation__switcher-dropdown vsn-switcher-dropdown--loading"
|
|
1070
1076
|
role="status"
|
|
1071
1077
|
aria-busy="true"
|
|
1072
|
-
aria-label=${
|
|
1078
|
+
aria-label=${_("Loading modules")}>
|
|
1073
1079
|
<span class="vsn-spinner"></span>
|
|
1074
1080
|
</div>
|
|
1075
1081
|
` : n`
|
|
@@ -1090,10 +1096,10 @@ var St = class {
|
|
|
1090
1096
|
`;
|
|
1091
1097
|
}
|
|
1092
1098
|
};
|
|
1093
|
-
|
|
1099
|
+
N([s({ attribute: !1 })], V.prototype, "items", void 0), N([s({ type: Boolean })], V.prototype, "loading", void 0), N([s({ attribute: !1 })], V.prototype, "maxHeight", void 0), V = B = N([v(), o("vsn-switcher-menu")], V);
|
|
1094
1100
|
//#endregion
|
|
1095
1101
|
//#region src/components/vsn-side-bar/vsn-search/vsn-search.ts
|
|
1096
|
-
var
|
|
1102
|
+
var H = class extends e {
|
|
1097
1103
|
constructor(...e) {
|
|
1098
1104
|
super(...e), this.shortcut = "", this.value = "", this.loading = !1, this._scheduleAutoSearch = () => {
|
|
1099
1105
|
this._cancelDebounce(), this._debounceTimer = window.setTimeout(this._emitSearch, 200);
|
|
@@ -1118,16 +1124,16 @@ var z = class extends e {
|
|
|
1118
1124
|
return this;
|
|
1119
1125
|
}
|
|
1120
1126
|
render() {
|
|
1121
|
-
let e = this.value.length > 0 && this.value
|
|
1127
|
+
let e = this.value.length > 0 && !D(this.value);
|
|
1122
1128
|
return n`
|
|
1123
1129
|
<div class="ga-input ga-side-navigation__search" @keydown=${this._handleEscape}>
|
|
1124
1130
|
<button
|
|
1125
1131
|
type="button"
|
|
1126
1132
|
class="vsn-search__trigger"
|
|
1127
|
-
aria-label=${
|
|
1133
|
+
aria-label=${_("Search")}
|
|
1128
1134
|
?disabled=${!this._canSearch}
|
|
1129
1135
|
@click=${this._emitSearch}>
|
|
1130
|
-
${
|
|
1136
|
+
${k(tt, 24)}
|
|
1131
1137
|
</button>
|
|
1132
1138
|
<input type="search"
|
|
1133
1139
|
.placeholder=${Ae()}
|
|
@@ -1137,7 +1143,7 @@ var z = class extends e {
|
|
|
1137
1143
|
${this._trailingSlot()}
|
|
1138
1144
|
</div>
|
|
1139
1145
|
${f(e, () => n`
|
|
1140
|
-
<div class="vsn-search__helper">${
|
|
1146
|
+
<div class="vsn-search__helper">${Pe(3)}</div>`)}
|
|
1141
1147
|
`;
|
|
1142
1148
|
}
|
|
1143
1149
|
focus() {
|
|
@@ -1145,7 +1151,7 @@ var z = class extends e {
|
|
|
1145
1151
|
e?.focus(), e?.select();
|
|
1146
1152
|
}
|
|
1147
1153
|
get _canSearch() {
|
|
1148
|
-
return this.value
|
|
1154
|
+
return D(this.value);
|
|
1149
1155
|
}
|
|
1150
1156
|
_handleInput(e) {
|
|
1151
1157
|
let t = e.target.value;
|
|
@@ -1170,13 +1176,13 @@ var z = class extends e {
|
|
|
1170
1176
|
`;
|
|
1171
1177
|
}
|
|
1172
1178
|
_spinner() {
|
|
1173
|
-
return n`<span class="vsn-spinner" role="status" aria-label=${
|
|
1179
|
+
return n`<span class="vsn-spinner" role="status" aria-label=${_("Searching")}></span>`;
|
|
1174
1180
|
}
|
|
1175
1181
|
_clearButton() {
|
|
1176
1182
|
return n`
|
|
1177
|
-
<button class="vsn-search__clear" aria-label=${
|
|
1183
|
+
<button class="vsn-search__clear" aria-label=${_("Clear search")}
|
|
1178
1184
|
@click=${this._emitSearchCleared}>
|
|
1179
|
-
${
|
|
1185
|
+
${k(nt, 16)}
|
|
1180
1186
|
</button>
|
|
1181
1187
|
`;
|
|
1182
1188
|
}
|
|
@@ -1184,17 +1190,17 @@ var z = class extends e {
|
|
|
1184
1190
|
return n`<kbd class="ga-side-navigation__search-shortcut">${this.shortcut}</kbd>`;
|
|
1185
1191
|
}
|
|
1186
1192
|
};
|
|
1187
|
-
|
|
1193
|
+
N([s()], H.prototype, "shortcut", void 0), N([s()], H.prototype, "value", void 0), N([s({ type: Boolean })], H.prototype, "loading", void 0), H = N([v(), o("vsn-search")], H);
|
|
1188
1194
|
//#endregion
|
|
1189
1195
|
//#region src/components/vsn-side-bar/vsn-header/vsn-header.ts
|
|
1190
|
-
var
|
|
1196
|
+
var U = class extends e {
|
|
1191
1197
|
createRenderRoot() {
|
|
1192
1198
|
return this;
|
|
1193
1199
|
}
|
|
1194
1200
|
constructor() {
|
|
1195
|
-
super(), this.modules = [], this.modulesLoading = !1, this.moduleSwitcherAlwaysOpen = !1, this.moduleSwitcherMaxHeight = 0, this.searchValue = "", this.searchLoading = !1, this.expanded = !1, this._keyboard = new
|
|
1201
|
+
super(), this.modules = [], this.modulesLoading = !1, this.moduleSwitcherAlwaysOpen = !1, this.moduleSwitcherMaxHeight = 0, this.searchValue = "", this.searchLoading = !1, this.expanded = !1, this._keyboard = new Ct(this), new vt(this, [".ga-side-navigation__switcher-dropdown", ".ga-side-navigation__switcher"], () => {
|
|
1196
1202
|
this.canClose && (this.expanded = !1);
|
|
1197
|
-
}), new
|
|
1203
|
+
}), new R(this, () => this.canClose && this.expanded, ".vsn-switcher-anchor");
|
|
1198
1204
|
}
|
|
1199
1205
|
focus() {
|
|
1200
1206
|
let e = this.querySelector("vsn-search") || this.querySelector("button.ga-side-navigation__switcher") || this.querySelector("vsn-switcher-menu");
|
|
@@ -1209,13 +1215,13 @@ var B = class extends e {
|
|
|
1209
1215
|
${this.canToggle ? n`
|
|
1210
1216
|
<button type="button"
|
|
1211
1217
|
class="ga-side-navigation__switcher ${this.expanded ? "ga-side-navigation__switcher--active" : ""}"
|
|
1212
|
-
aria-label=${
|
|
1218
|
+
aria-label=${_(g`Service menu, ${e.title}`)}
|
|
1213
1219
|
aria-expanded="${this.expanded}"
|
|
1214
1220
|
@click=${this._toggle}
|
|
1215
1221
|
title="">
|
|
1216
1222
|
<span class="ga-side-navigation__switcher-title">${e.title}</span>
|
|
1217
1223
|
<span class="ga-side-navigation__switcher-action">
|
|
1218
|
-
${this.expanded ?
|
|
1224
|
+
${this.expanded ? k(A, 16) : k($e, 16)}
|
|
1219
1225
|
</span>
|
|
1220
1226
|
</button>
|
|
1221
1227
|
` : n`
|
|
@@ -1225,7 +1231,7 @@ var B = class extends e {
|
|
|
1225
1231
|
title="">
|
|
1226
1232
|
<span class="ga-side-navigation__switcher-title">${e.title}</span>
|
|
1227
1233
|
<span class="ga-side-navigation__switcher-action">
|
|
1228
|
-
${
|
|
1234
|
+
${k(He, 16)}
|
|
1229
1235
|
</span>
|
|
1230
1236
|
</div>
|
|
1231
1237
|
`}
|
|
@@ -1251,7 +1257,7 @@ var B = class extends e {
|
|
|
1251
1257
|
get _state() {
|
|
1252
1258
|
if (this.modulesLoading) return {
|
|
1253
1259
|
kind: "module-loading",
|
|
1254
|
-
title: this.activeModuleLabel ||
|
|
1260
|
+
title: this.activeModuleLabel || Le()
|
|
1255
1261
|
};
|
|
1256
1262
|
let e = this.modules.find((e) => e.id === this.activeModuleId);
|
|
1257
1263
|
return e ? {
|
|
@@ -1260,7 +1266,7 @@ var B = class extends e {
|
|
|
1260
1266
|
available: this.modules.filter((t) => t.id !== e.id)
|
|
1261
1267
|
} : {
|
|
1262
1268
|
kind: "module-unmatched",
|
|
1263
|
-
title: this.activeModuleId && this.activeModuleLabel ? this.activeModuleLabel :
|
|
1269
|
+
title: this.activeModuleId && this.activeModuleLabel ? this.activeModuleLabel : Le(),
|
|
1264
1270
|
available: this.modules
|
|
1265
1271
|
};
|
|
1266
1272
|
}
|
|
@@ -1300,10 +1306,10 @@ var B = class extends e {
|
|
|
1300
1306
|
}), !0);
|
|
1301
1307
|
}
|
|
1302
1308
|
};
|
|
1303
|
-
|
|
1309
|
+
N([s({ attribute: !1 })], U.prototype, "modules", void 0), N([s()], U.prototype, "activeModuleId", void 0), N([s()], U.prototype, "activeModuleLabel", void 0), N([s({ type: Boolean })], U.prototype, "modulesLoading", void 0), N([s({ type: Boolean })], U.prototype, "moduleSwitcherAlwaysOpen", void 0), N([s({ attribute: !1 })], U.prototype, "moduleSwitcherMaxHeight", void 0), N([s({ attribute: !1 })], U.prototype, "search", void 0), N([s()], U.prototype, "searchValue", void 0), N([s({ type: Boolean })], U.prototype, "searchLoading", void 0), N([s({
|
|
1304
1310
|
type: Boolean,
|
|
1305
1311
|
reflect: !0
|
|
1306
|
-
})],
|
|
1312
|
+
})], U.prototype, "expanded", void 0), U = N([v(), o("vsn-header")], U);
|
|
1307
1313
|
//#endregion
|
|
1308
1314
|
//#region src/components/vsn-side-bar/vsn-search-results/vsn-search-results.keyboard.ts
|
|
1309
1315
|
var wt = class {
|
|
@@ -1320,7 +1326,7 @@ var wt = class {
|
|
|
1320
1326
|
}, this.host = e, e.addController(this);
|
|
1321
1327
|
}
|
|
1322
1328
|
hostConnected() {}
|
|
1323
|
-
}, Tt,
|
|
1329
|
+
}, Tt, W = class extends e {
|
|
1324
1330
|
static {
|
|
1325
1331
|
Tt = this;
|
|
1326
1332
|
}
|
|
@@ -1378,10 +1384,10 @@ var wt = class {
|
|
|
1378
1384
|
}));
|
|
1379
1385
|
}
|
|
1380
1386
|
};
|
|
1381
|
-
|
|
1387
|
+
N([s({ attribute: !1 })], W.prototype, "item", void 0), N([l()], W.prototype, "_showTooltip", void 0), N([l()], W.prototype, "_tooltipPos", void 0), N([c(".ga-side-navigation__search-results-item-label")], W.prototype, "_labelEl", void 0), W = Tt = N([o("vsn-search-result-item")], W);
|
|
1382
1388
|
//#endregion
|
|
1383
1389
|
//#region src/components/vsn-side-bar/vsn-search-results/vsn-search-results.ts
|
|
1384
|
-
var
|
|
1390
|
+
var G = class extends e {
|
|
1385
1391
|
constructor(...e) {
|
|
1386
1392
|
super(...e), this.loadingMore = !1, this._keyboard = new wt(this);
|
|
1387
1393
|
}
|
|
@@ -1394,10 +1400,10 @@ var H = class extends e {
|
|
|
1394
1400
|
_emptyState() {
|
|
1395
1401
|
return n`
|
|
1396
1402
|
<div class="vsn-search-results__empty" role="status" aria-live="polite">
|
|
1397
|
-
<div class="vsn-search-results__empty-title">${
|
|
1398
|
-
<div class="vsn-search-results__empty-message">${
|
|
1399
|
-
<div class="vsn-search-results__empty-hint">${
|
|
1400
|
-
<div class="vsn-search-results__empty-support">${
|
|
1403
|
+
<div class="vsn-search-results__empty-title">${_("No results found")}</div>
|
|
1404
|
+
<div class="vsn-search-results__empty-message">${_("We couldn't find any matches.")}</div>
|
|
1405
|
+
<div class="vsn-search-results__empty-hint">${_("Try different keywords or check spelling.")}</div>
|
|
1406
|
+
<div class="vsn-search-results__empty-support">${_("Need help? Contact support.")}</div>
|
|
1401
1407
|
</div>
|
|
1402
1408
|
`;
|
|
1403
1409
|
}
|
|
@@ -1414,7 +1420,7 @@ var H = class extends e {
|
|
|
1414
1420
|
<div class="ga-side-navigation__body h-full ga-scroll"
|
|
1415
1421
|
@keydown=${this._keyboard.onResultsKeydown}>
|
|
1416
1422
|
<div class="ga-side-navigation__search-results-title" role="status" aria-live="polite" aria-atomic="true">
|
|
1417
|
-
${
|
|
1423
|
+
${_(t === 1 ? g`${t} result` : g`${t} results`)}
|
|
1418
1424
|
</div>
|
|
1419
1425
|
${e.map((e) => n`
|
|
1420
1426
|
<vsn-search-result-item .item=${e}></vsn-search-result-item>
|
|
@@ -1425,7 +1431,7 @@ var H = class extends e {
|
|
|
1425
1431
|
class="vsn-search-results__load-more"
|
|
1426
1432
|
?disabled=${this.loadingMore}
|
|
1427
1433
|
@click=${this._onLoadMore}>
|
|
1428
|
-
${
|
|
1434
|
+
${Ie()}
|
|
1429
1435
|
</button>
|
|
1430
1436
|
`)}
|
|
1431
1437
|
</div>
|
|
@@ -1438,7 +1444,7 @@ var H = class extends e {
|
|
|
1438
1444
|
}));
|
|
1439
1445
|
}
|
|
1440
1446
|
};
|
|
1441
|
-
|
|
1447
|
+
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([v(), o("vsn-search-results")], G);
|
|
1442
1448
|
//#endregion
|
|
1443
1449
|
//#region src/components/vsn-side-bar/vsn-template/vsn-template.ts
|
|
1444
1450
|
var Et = [
|
|
@@ -1456,7 +1462,7 @@ var Et = [
|
|
|
1456
1462
|
<div class="ga-side-navigation__body h-full"
|
|
1457
1463
|
role="status"
|
|
1458
1464
|
aria-busy="true"
|
|
1459
|
-
aria-label=${
|
|
1465
|
+
aria-label=${_("Loading results")}>
|
|
1460
1466
|
${Et.map((e) => n`
|
|
1461
1467
|
<div class="vsn-template__row">
|
|
1462
1468
|
<div class="vsn-template__bar" style="width: ${e}px"></div>
|
|
@@ -1466,7 +1472,7 @@ var Et = [
|
|
|
1466
1472
|
`;
|
|
1467
1473
|
}
|
|
1468
1474
|
};
|
|
1469
|
-
Dt =
|
|
1475
|
+
Dt = N([v(), o("vsn-template")], Dt);
|
|
1470
1476
|
//#endregion
|
|
1471
1477
|
//#region src/components/vsn-side-bar/vsn-error-state/vsn-error-state.ts
|
|
1472
1478
|
var Ot = class extends e {
|
|
@@ -1476,24 +1482,24 @@ var Ot = class extends e {
|
|
|
1476
1482
|
render() {
|
|
1477
1483
|
return n`
|
|
1478
1484
|
<div class="vsn-error-state" role="alert" aria-live="assertive">
|
|
1479
|
-
<div class="vsn-error-state__icon">${
|
|
1480
|
-
<div class="vsn-error-state__title">${
|
|
1481
|
-
<div class="vsn-error-state__message">${
|
|
1482
|
-
<div class="vsn-error-state__hint">${
|
|
1483
|
-
<div class="vsn-error-state__support">${
|
|
1485
|
+
<div class="vsn-error-state__icon">${k(rt, 24)}</div>
|
|
1486
|
+
<div class="vsn-error-state__title">${_("Loading error")}</div>
|
|
1487
|
+
<div class="vsn-error-state__message">${_("We're unable to load the menu.")}</div>
|
|
1488
|
+
<div class="vsn-error-state__hint">${_("Please check your internet connection and try again.")}</div>
|
|
1489
|
+
<div class="vsn-error-state__support">${_("If the issue persists, reload the page or contact support.")}</div>
|
|
1484
1490
|
</div>
|
|
1485
1491
|
`;
|
|
1486
1492
|
}
|
|
1487
1493
|
};
|
|
1488
|
-
Ot =
|
|
1494
|
+
Ot = N([v(), o("vsn-error-state")], Ot);
|
|
1489
1495
|
//#endregion
|
|
1490
1496
|
//#region src/components/vsn-side-bar/vsn-search-scopes/vsn-search-scopes.ts
|
|
1491
|
-
var
|
|
1497
|
+
var kt, K = class extends e {
|
|
1492
1498
|
static {
|
|
1493
|
-
|
|
1499
|
+
kt = this;
|
|
1494
1500
|
}
|
|
1495
1501
|
constructor(...e) {
|
|
1496
|
-
super(...e), this.scopes = [], this.selectedScopeId = "", this._name = `vsn-search-scope-${++
|
|
1502
|
+
super(...e), this.scopes = [], this.selectedScopeId = "", this._name = `vsn-search-scope-${++kt._counter}`;
|
|
1497
1503
|
}
|
|
1498
1504
|
createRenderRoot() {
|
|
1499
1505
|
return this;
|
|
@@ -1503,7 +1509,7 @@ var U, W = class extends e {
|
|
|
1503
1509
|
}
|
|
1504
1510
|
render() {
|
|
1505
1511
|
return this.scopes.length <= 1 ? n`` : n`
|
|
1506
|
-
<div class="ga-radio-group" role="radiogroup" aria-label=${
|
|
1512
|
+
<div class="ga-radio-group" role="radiogroup" aria-label=${_("Search scope")} @change=${this._onChange}>
|
|
1507
1513
|
${this.scopes.map((e) => this._renderScope(e))}
|
|
1508
1514
|
</div>
|
|
1509
1515
|
`;
|
|
@@ -1531,30 +1537,30 @@ var U, W = class extends e {
|
|
|
1531
1537
|
}));
|
|
1532
1538
|
}
|
|
1533
1539
|
};
|
|
1534
|
-
|
|
1540
|
+
N([s({ attribute: !1 })], K.prototype, "scopes", void 0), N([s()], K.prototype, "selectedScopeId", void 0), K = kt = N([v(), o("vsn-search-scopes")], K);
|
|
1535
1541
|
//#endregion
|
|
1536
1542
|
//#region src/shared/lang/locale-codes.ts
|
|
1537
|
-
var
|
|
1543
|
+
var At = "en", jt = [
|
|
1538
1544
|
"da",
|
|
1539
1545
|
"fi",
|
|
1540
1546
|
"nl",
|
|
1541
1547
|
"no",
|
|
1542
1548
|
"sv"
|
|
1543
|
-
],
|
|
1549
|
+
], Mt = /* @__PURE__ */ p({ templates: () => Nt }), Nt = {
|
|
1544
1550
|
s09a45db408570a7a: "Min profil",
|
|
1545
1551
|
s119f9875b7d4cdfc: "Har du brug for hjælp? Kontakt support.",
|
|
1546
|
-
s1228605ee65ddefa:
|
|
1547
|
-
s2bb33291ef8ae3d4:
|
|
1552
|
+
s1228605ee65ddefa: g`${0} resultat`,
|
|
1553
|
+
s2bb33291ef8ae3d4: g`Indtast mindst ${0} tegn for at søge`,
|
|
1548
1554
|
s2be8f715fbd00dcb: "Vi fandt ingen matchende resultater.",
|
|
1549
1555
|
s3112f1ca236c8a61: "Indlæsningsfejl",
|
|
1550
1556
|
s352719d86112de9a: "Hjælp",
|
|
1551
|
-
s387a4a41718122cb:
|
|
1557
|
+
s387a4a41718122cb: g`${0} resultater`,
|
|
1552
1558
|
s3fb7db4771812f0c: "Hvis problemet fortsætter, genindlæs siden eller kontakt support.",
|
|
1553
1559
|
s442010a1a0adb81d: "Vis skjulte brødkrummer",
|
|
1554
1560
|
s457d59d649765619: "Gå til hovedindhold",
|
|
1555
|
-
s4863fb8024781ae9:
|
|
1561
|
+
s4863fb8024781ae9: g`Brugermenu, ${0}, ${1}`,
|
|
1556
1562
|
s4b0c6b66b4efd7d8: "Vælg en tjeneste",
|
|
1557
|
-
s58a1dace5a9acc5b:
|
|
1563
|
+
s58a1dace5a9acc5b: g`Tjenestemenu, ${0}`,
|
|
1558
1564
|
s5be3c6d61cd9182f: "Notifikationer",
|
|
1559
1565
|
s5d369be551a4dd7a: "Menupunkter",
|
|
1560
1566
|
s5d929ff1619ac0c9: "Søg",
|
|
@@ -1568,7 +1574,7 @@ var kt = "en", At = [
|
|
|
1568
1574
|
s8d91340b5caa2d5c: "Åbn menu",
|
|
1569
1575
|
s9094c0cde8fb5058: "Ingen resultater fundet",
|
|
1570
1576
|
s970de9ba0cf07677: "Søger",
|
|
1571
|
-
s97b95ad19ebb75a9:
|
|
1577
|
+
s97b95ad19ebb75a9: g`Brugermenu, ${0}`,
|
|
1572
1578
|
sacde528ad7d2d031: "Vi kan ikke indlæse menuen.",
|
|
1573
1579
|
sb560e5cd092ef2e5: "Indlæser resultater",
|
|
1574
1580
|
sb64127e4e4f0b575: "Log ud",
|
|
@@ -1579,21 +1585,21 @@ var kt = "en", At = [
|
|
|
1579
1585
|
sf55d634dcc743595: "Tjenester",
|
|
1580
1586
|
sfbf31f663cef6cc2: "Prøv andre søgeord eller tjek stavningen.",
|
|
1581
1587
|
s38385cd359b17f7a: "Loading modules"
|
|
1582
|
-
},
|
|
1588
|
+
}, Pt = /* @__PURE__ */ p({ templates: () => Ft }), Ft = {
|
|
1583
1589
|
s09a45db408570a7a: "Oma profiili",
|
|
1584
1590
|
s119f9875b7d4cdfc: "Tarvitsetko apua? Ota yhteyttä tukeen.",
|
|
1585
|
-
s1228605ee65ddefa:
|
|
1586
|
-
s2bb33291ef8ae3d4:
|
|
1591
|
+
s1228605ee65ddefa: g`${0} tulos`,
|
|
1592
|
+
s2bb33291ef8ae3d4: g`Kirjoita vähintään ${0} merkkiä hakua varten`,
|
|
1587
1593
|
s2be8f715fbd00dcb: "Emme löytäneet osumia.",
|
|
1588
1594
|
s3112f1ca236c8a61: "Latausvirhe",
|
|
1589
1595
|
s352719d86112de9a: "Ohje",
|
|
1590
|
-
s387a4a41718122cb:
|
|
1596
|
+
s387a4a41718122cb: g`${0} tulosta`,
|
|
1591
1597
|
s3fb7db4771812f0c: "Jos ongelma jatkuu, lataa sivu uudelleen tai ota yhteyttä tukeen.",
|
|
1592
1598
|
s442010a1a0adb81d: "Näytä piilotetut murupolun kohteet",
|
|
1593
1599
|
s457d59d649765619: "Siirry pääsisältöön",
|
|
1594
|
-
s4863fb8024781ae9:
|
|
1600
|
+
s4863fb8024781ae9: g`Käyttäjävalikko, ${0}, ${1}`,
|
|
1595
1601
|
s4b0c6b66b4efd7d8: "Valitse palvelu",
|
|
1596
|
-
s58a1dace5a9acc5b:
|
|
1602
|
+
s58a1dace5a9acc5b: g`Palveluvalikko, ${0}`,
|
|
1597
1603
|
s5be3c6d61cd9182f: "Ilmoitukset",
|
|
1598
1604
|
s5d369be551a4dd7a: "Valikkokohteet",
|
|
1599
1605
|
s5d929ff1619ac0c9: "Hae",
|
|
@@ -1607,7 +1613,7 @@ var kt = "en", At = [
|
|
|
1607
1613
|
s8d91340b5caa2d5c: "Avaa valikko",
|
|
1608
1614
|
s9094c0cde8fb5058: "Tuloksia ei löytynyt",
|
|
1609
1615
|
s970de9ba0cf07677: "Haetaan",
|
|
1610
|
-
s97b95ad19ebb75a9:
|
|
1616
|
+
s97b95ad19ebb75a9: g`Käyttäjävalikko, ${0}`,
|
|
1611
1617
|
sacde528ad7d2d031: "Valikko ei lataudu.",
|
|
1612
1618
|
sb560e5cd092ef2e5: "Ladataan tuloksia",
|
|
1613
1619
|
sb64127e4e4f0b575: "Kirjaudu ulos",
|
|
@@ -1618,21 +1624,21 @@ var kt = "en", At = [
|
|
|
1618
1624
|
sf55d634dcc743595: "Palvelut",
|
|
1619
1625
|
sfbf31f663cef6cc2: "Kokeile eri hakusanoja tai tarkista kirjoitusasu.",
|
|
1620
1626
|
s38385cd359b17f7a: "Loading modules"
|
|
1621
|
-
},
|
|
1627
|
+
}, It = /* @__PURE__ */ p({ templates: () => Lt }), Lt = {
|
|
1622
1628
|
s09a45db408570a7a: "Mijn profiel",
|
|
1623
1629
|
s119f9875b7d4cdfc: "Hulp nodig? Neem contact op met ondersteuning.",
|
|
1624
|
-
s1228605ee65ddefa:
|
|
1625
|
-
s2bb33291ef8ae3d4:
|
|
1630
|
+
s1228605ee65ddefa: g`${0} resultaat`,
|
|
1631
|
+
s2bb33291ef8ae3d4: g`Typ minimaal ${0} tekens om te zoeken`,
|
|
1626
1632
|
s2be8f715fbd00dcb: "We konden geen overeenkomsten vinden.",
|
|
1627
1633
|
s3112f1ca236c8a61: "Laadingsfout",
|
|
1628
1634
|
s352719d86112de9a: "Hulp",
|
|
1629
|
-
s387a4a41718122cb:
|
|
1635
|
+
s387a4a41718122cb: g`${0} resultaten`,
|
|
1630
1636
|
s3fb7db4771812f0c: "Als het probleem aanhoudt, laad de pagina opnieuw of neem contact op met ondersteuning.",
|
|
1631
1637
|
s442010a1a0adb81d: "Toon verborgen broodkruimels",
|
|
1632
1638
|
s457d59d649765619: "Ga naar hoofdinhoud",
|
|
1633
|
-
s4863fb8024781ae9:
|
|
1639
|
+
s4863fb8024781ae9: g`Gebruikersmenu, ${0}, ${1}`,
|
|
1634
1640
|
s4b0c6b66b4efd7d8: "Kies een service",
|
|
1635
|
-
s58a1dace5a9acc5b:
|
|
1641
|
+
s58a1dace5a9acc5b: g`Servicemenu, ${0}`,
|
|
1636
1642
|
s5be3c6d61cd9182f: "Meldingen",
|
|
1637
1643
|
s5d369be551a4dd7a: "Menu-items",
|
|
1638
1644
|
s5d929ff1619ac0c9: "Zoeken",
|
|
@@ -1646,7 +1652,7 @@ var kt = "en", At = [
|
|
|
1646
1652
|
s8d91340b5caa2d5c: "Menu openen",
|
|
1647
1653
|
s9094c0cde8fb5058: "Geen resultaten gevonden",
|
|
1648
1654
|
s970de9ba0cf07677: "Zoeken",
|
|
1649
|
-
s97b95ad19ebb75a9:
|
|
1655
|
+
s97b95ad19ebb75a9: g`Gebruikersmenu, ${0}`,
|
|
1650
1656
|
sacde528ad7d2d031: "We kunnen het menu niet laden.",
|
|
1651
1657
|
sb560e5cd092ef2e5: "Resultaten laden",
|
|
1652
1658
|
sb64127e4e4f0b575: "Uitloggen",
|
|
@@ -1657,21 +1663,21 @@ var kt = "en", At = [
|
|
|
1657
1663
|
sf55d634dcc743595: "Services",
|
|
1658
1664
|
sfbf31f663cef6cc2: "Probeer andere zoekwoorden of controleer de spelling.",
|
|
1659
1665
|
s38385cd359b17f7a: "Loading modules"
|
|
1660
|
-
},
|
|
1666
|
+
}, Rt = /* @__PURE__ */ p({ templates: () => zt }), zt = {
|
|
1661
1667
|
s09a45db408570a7a: "Min profil",
|
|
1662
1668
|
s119f9875b7d4cdfc: "Trenger du hjelp? Kontakt støtte.",
|
|
1663
|
-
s1228605ee65ddefa:
|
|
1664
|
-
s2bb33291ef8ae3d4:
|
|
1669
|
+
s1228605ee65ddefa: g`${0} resultat`,
|
|
1670
|
+
s2bb33291ef8ae3d4: g`Skriv inn minst ${0} tegn for å søke`,
|
|
1665
1671
|
s2be8f715fbd00dcb: "Vi fant ingen treff.",
|
|
1666
1672
|
s3112f1ca236c8a61: "Lastingsfeil",
|
|
1667
1673
|
s352719d86112de9a: "Hjelp",
|
|
1668
|
-
s387a4a41718122cb:
|
|
1674
|
+
s387a4a41718122cb: g`${0} resultater`,
|
|
1669
1675
|
s3fb7db4771812f0c: "Hvis problemet vedvarer, last inn siden på nytt eller kontakt støtte.",
|
|
1670
1676
|
s442010a1a0adb81d: "Vis skjulte brødsmuleelementer",
|
|
1671
1677
|
s457d59d649765619: "Hopp til hovedinnhold",
|
|
1672
|
-
s4863fb8024781ae9:
|
|
1678
|
+
s4863fb8024781ae9: g`Brukermeny, ${0}, ${1}`,
|
|
1673
1679
|
s4b0c6b66b4efd7d8: "Velg en tjeneste",
|
|
1674
|
-
s58a1dace5a9acc5b:
|
|
1680
|
+
s58a1dace5a9acc5b: g`Tjenestemeny, ${0}`,
|
|
1675
1681
|
s5be3c6d61cd9182f: "Varsler",
|
|
1676
1682
|
s5d369be551a4dd7a: "Menyelementer",
|
|
1677
1683
|
s5d929ff1619ac0c9: "Søk",
|
|
@@ -1685,7 +1691,7 @@ var kt = "en", At = [
|
|
|
1685
1691
|
s8d91340b5caa2d5c: "Åpne meny",
|
|
1686
1692
|
s9094c0cde8fb5058: "Ingen resultater funnet",
|
|
1687
1693
|
s970de9ba0cf07677: "Søker",
|
|
1688
|
-
s97b95ad19ebb75a9:
|
|
1694
|
+
s97b95ad19ebb75a9: g`Brukermeny, ${0}`,
|
|
1689
1695
|
sacde528ad7d2d031: "Vi kan ikke laste menyen.",
|
|
1690
1696
|
sb560e5cd092ef2e5: "Laster resultater",
|
|
1691
1697
|
sb64127e4e4f0b575: "Logg ut",
|
|
@@ -1696,21 +1702,21 @@ var kt = "en", At = [
|
|
|
1696
1702
|
sf55d634dcc743595: "Tjenester",
|
|
1697
1703
|
sfbf31f663cef6cc2: "Prøv andre søkeord eller sjekk stavemåten.",
|
|
1698
1704
|
s38385cd359b17f7a: "Loading modules"
|
|
1699
|
-
},
|
|
1705
|
+
}, Bt = /* @__PURE__ */ p({ templates: () => Vt }), Vt = {
|
|
1700
1706
|
s09a45db408570a7a: "Min profil",
|
|
1701
1707
|
s119f9875b7d4cdfc: "Behöver du hjälp? Kontakta support.",
|
|
1702
|
-
s1228605ee65ddefa:
|
|
1703
|
-
s2bb33291ef8ae3d4:
|
|
1708
|
+
s1228605ee65ddefa: g`${0} resultat`,
|
|
1709
|
+
s2bb33291ef8ae3d4: g`Skriv minst ${0} tecken för att söka`,
|
|
1704
1710
|
s2be8f715fbd00dcb: "Vi hittade inga matchningar.",
|
|
1705
1711
|
s3112f1ca236c8a61: "Laddningsfel",
|
|
1706
1712
|
s352719d86112de9a: "Hjälp",
|
|
1707
|
-
s387a4a41718122cb:
|
|
1713
|
+
s387a4a41718122cb: g`${0} resultat`,
|
|
1708
1714
|
s3fb7db4771812f0c: "Om problemet kvarstår, ladda om sidan eller kontakta support.",
|
|
1709
1715
|
s442010a1a0adb81d: "Visa dolda brödsmulor",
|
|
1710
1716
|
s457d59d649765619: "Hoppa till huvudinnehåll",
|
|
1711
|
-
s4863fb8024781ae9:
|
|
1717
|
+
s4863fb8024781ae9: g`Användarmeny, ${0}, ${1}`,
|
|
1712
1718
|
s4b0c6b66b4efd7d8: "Välj en tjänst",
|
|
1713
|
-
s58a1dace5a9acc5b:
|
|
1719
|
+
s58a1dace5a9acc5b: g`Tjänstemeny, ${0}`,
|
|
1714
1720
|
s5be3c6d61cd9182f: "Aviseringar",
|
|
1715
1721
|
s5d369be551a4dd7a: "Menyalternativ",
|
|
1716
1722
|
s5d929ff1619ac0c9: "Sök",
|
|
@@ -1724,7 +1730,7 @@ var kt = "en", At = [
|
|
|
1724
1730
|
s8d91340b5caa2d5c: "Öppna meny",
|
|
1725
1731
|
s9094c0cde8fb5058: "Inga resultat hittades",
|
|
1726
1732
|
s970de9ba0cf07677: "Söker",
|
|
1727
|
-
s97b95ad19ebb75a9:
|
|
1733
|
+
s97b95ad19ebb75a9: g`Användarmeny, ${0}`,
|
|
1728
1734
|
sacde528ad7d2d031: "Vi kan inte ladda menyn.",
|
|
1729
1735
|
sb560e5cd092ef2e5: "Laddar resultat",
|
|
1730
1736
|
sb64127e4e4f0b575: "Logga ut",
|
|
@@ -1735,17 +1741,17 @@ var kt = "en", At = [
|
|
|
1735
1741
|
sf55d634dcc743595: "Tjänster",
|
|
1736
1742
|
sfbf31f663cef6cc2: "Prova andra sökord eller kontrollera stavningen.",
|
|
1737
1743
|
s38385cd359b17f7a: "Loading modules"
|
|
1738
|
-
},
|
|
1739
|
-
da:
|
|
1740
|
-
fi:
|
|
1741
|
-
nl:
|
|
1742
|
-
no:
|
|
1743
|
-
sv:
|
|
1744
|
-
}, { getLocale:
|
|
1745
|
-
sourceLocale:
|
|
1746
|
-
targetLocales:
|
|
1747
|
-
loadLocale: (e) =>
|
|
1748
|
-
}),
|
|
1744
|
+
}, Ht = {
|
|
1745
|
+
da: Mt,
|
|
1746
|
+
fi: Pt,
|
|
1747
|
+
nl: It,
|
|
1748
|
+
no: Rt,
|
|
1749
|
+
sv: Bt
|
|
1750
|
+
}, { getLocale: Ut, setLocale: Wt } = we({
|
|
1751
|
+
sourceLocale: At,
|
|
1752
|
+
targetLocales: jt,
|
|
1753
|
+
loadLocale: (e) => Ht[e] ? Promise.resolve(Ht[e]) : Promise.reject(/* @__PURE__ */ Error(`Unknown locale: ${e}`))
|
|
1754
|
+
}), Gt = t`
|
|
1749
1755
|
@layer components {
|
|
1750
1756
|
vsn-footer {
|
|
1751
1757
|
display: block;
|
|
@@ -1795,7 +1801,7 @@ var kt = "en", At = [
|
|
|
1795
1801
|
justify-content: center;
|
|
1796
1802
|
}
|
|
1797
1803
|
}
|
|
1798
|
-
`,
|
|
1804
|
+
`, Kt = t`
|
|
1799
1805
|
@layer components {
|
|
1800
1806
|
.vsn-switcher-anchor {
|
|
1801
1807
|
position: relative;
|
|
@@ -1809,7 +1815,7 @@ var kt = "en", At = [
|
|
|
1809
1815
|
z-index: 10;
|
|
1810
1816
|
}
|
|
1811
1817
|
}
|
|
1812
|
-
`,
|
|
1818
|
+
`, qt = t`
|
|
1813
1819
|
.vsn-search__trigger,
|
|
1814
1820
|
.vsn-search__clear {
|
|
1815
1821
|
display: inline-flex;
|
|
@@ -1858,7 +1864,7 @@ var kt = "en", At = [
|
|
|
1858
1864
|
.ga-side-navigation__search input::placeholder {
|
|
1859
1865
|
color: var(--ga-color-text-disable-selected);
|
|
1860
1866
|
}
|
|
1861
|
-
`,
|
|
1867
|
+
`, Jt = t`
|
|
1862
1868
|
.vsn-search-results__empty {
|
|
1863
1869
|
display: flex;
|
|
1864
1870
|
flex-direction: column;
|
|
@@ -1927,7 +1933,7 @@ var kt = "en", At = [
|
|
|
1927
1933
|
cursor: not-allowed;
|
|
1928
1934
|
opacity: 0.5;
|
|
1929
1935
|
}
|
|
1930
|
-
`,
|
|
1936
|
+
`, Yt = t`
|
|
1931
1937
|
@layer components {
|
|
1932
1938
|
vsn-search-scopes {
|
|
1933
1939
|
display: block;
|
|
@@ -1948,7 +1954,7 @@ var kt = "en", At = [
|
|
|
1948
1954
|
text-overflow: ellipsis;
|
|
1949
1955
|
}
|
|
1950
1956
|
}
|
|
1951
|
-
`,
|
|
1957
|
+
`, Xt = t`
|
|
1952
1958
|
.vsn-template__row {
|
|
1953
1959
|
display: flex;
|
|
1954
1960
|
flex-direction: column;
|
|
@@ -1963,7 +1969,7 @@ var kt = "en", At = [
|
|
|
1963
1969
|
background: var(--ga-color-miscellaneous-skeleton-element, #F2F3F5);
|
|
1964
1970
|
flex-shrink: 0;
|
|
1965
1971
|
}
|
|
1966
|
-
`,
|
|
1972
|
+
`, Zt = t`
|
|
1967
1973
|
.vsn-error-state {
|
|
1968
1974
|
display: flex;
|
|
1969
1975
|
flex-direction: column;
|
|
@@ -2002,7 +2008,7 @@ var kt = "en", At = [
|
|
|
2002
2008
|
font-weight: 400;
|
|
2003
2009
|
color: var(--ga-color-text-on-disabled);
|
|
2004
2010
|
}
|
|
2005
|
-
`,
|
|
2011
|
+
`, Qt = t`
|
|
2006
2012
|
.vsn-spinner {
|
|
2007
2013
|
display: inline-block;
|
|
2008
2014
|
flex-shrink: 0;
|
|
@@ -2022,14 +2028,14 @@ var kt = "en", At = [
|
|
|
2022
2028
|
@keyframes vsn-spin {
|
|
2023
2029
|
to { transform: rotate(360deg); }
|
|
2024
2030
|
}
|
|
2025
|
-
`,
|
|
2031
|
+
`, $t = "button:not([disabled]), a[href], [tabindex]:not([tabindex=\"-1\"])", en = class {
|
|
2026
2032
|
constructor(e) {
|
|
2027
2033
|
this.onKeydown = (e) => {
|
|
2028
2034
|
if (e.defaultPrevented || T(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
2029
2035
|
let t = this.host.renderRoot.querySelector("slot[name=\"nav-footer\"]");
|
|
2030
2036
|
if (!t) return;
|
|
2031
2037
|
let n = [];
|
|
2032
|
-
for (let e of t.assignedElements({ flatten: !0 })) e.matches(
|
|
2038
|
+
for (let e of t.assignedElements({ flatten: !0 })) e.matches($t) && n.push(e), n.push(...Array.from(e.querySelectorAll($t)));
|
|
2033
2039
|
if (n.length === 0) return;
|
|
2034
2040
|
let r = e.composedPath()[0];
|
|
2035
2041
|
if (!(r instanceof HTMLElement)) return;
|
|
@@ -2041,12 +2047,12 @@ var kt = "en", At = [
|
|
|
2041
2047
|
}, this.host = e, e.addController(this);
|
|
2042
2048
|
}
|
|
2043
2049
|
hostConnected() {}
|
|
2044
|
-
},
|
|
2050
|
+
}, tn = t`
|
|
2045
2051
|
.ga-scroll {
|
|
2046
2052
|
scrollbar-color: var(--ga-color-text-disabled) var(--ga-color-surface-page);
|
|
2047
2053
|
scrollbar-width: thin;
|
|
2048
2054
|
}
|
|
2049
|
-
`,
|
|
2055
|
+
`, nn = t`
|
|
2050
2056
|
@layer components {
|
|
2051
2057
|
.vsn-menu__list {
|
|
2052
2058
|
list-style: none;
|
|
@@ -2070,7 +2076,7 @@ var kt = "en", At = [
|
|
|
2070
2076
|
content: var(--tw-content);
|
|
2071
2077
|
}
|
|
2072
2078
|
}
|
|
2073
|
-
`,
|
|
2079
|
+
`, rn = t`
|
|
2074
2080
|
@layer base {
|
|
2075
2081
|
button:where(.ga-side-navigation__item),
|
|
2076
2082
|
button:where(.ga-side-navigation__switcher),
|
|
@@ -2087,21 +2093,21 @@ var kt = "en", At = [
|
|
|
2087
2093
|
color: inherit;
|
|
2088
2094
|
}
|
|
2089
2095
|
}
|
|
2090
|
-
`,
|
|
2096
|
+
`, q = class extends e {
|
|
2091
2097
|
static {
|
|
2092
2098
|
this.styles = [
|
|
2093
2099
|
h,
|
|
2094
|
-
G,
|
|
2095
|
-
Gt,
|
|
2096
|
-
en,
|
|
2097
|
-
Wt,
|
|
2098
2100
|
tn,
|
|
2099
2101
|
Kt,
|
|
2102
|
+
nn,
|
|
2103
|
+
Gt,
|
|
2104
|
+
rn,
|
|
2100
2105
|
qt,
|
|
2101
2106
|
Jt,
|
|
2102
2107
|
Yt,
|
|
2103
2108
|
Xt,
|
|
2104
2109
|
Zt,
|
|
2110
|
+
Qt,
|
|
2105
2111
|
t`
|
|
2106
2112
|
:host {
|
|
2107
2113
|
position: absolute;
|
|
@@ -2126,7 +2132,7 @@ var kt = "en", At = [
|
|
|
2126
2132
|
};
|
|
2127
2133
|
}
|
|
2128
2134
|
constructor() {
|
|
2129
|
-
super(), this.modules = [], this.modulesLoading = !1, this.moduleSwitcherAlwaysOpen = !1, this.lang = "en", this.error = !1, this.open = !1, this._searchQuery = "", this._searchLoading = !1, this._activeScopeId =
|
|
2135
|
+
super(), this.modules = [], this.modulesLoading = !1, this.moduleSwitcherAlwaysOpen = !1, this.lang = "en", this.error = !1, this.open = !1, this._searchQuery = "", this._searchLoading = !1, this._activeScopeId = O, this._searchLoadingMore = !1, this._moduleSwitcherMaxHeight = 0, this._hasPageTitle = !1, this._navFooterKeyboard = new en(this), this._customWidthPerLanguage = { fi: "30em" }, this._onNavigate = (e) => {
|
|
2130
2136
|
this._searchQuery = "", this._searchResults = void 0, this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
|
|
2131
2137
|
bubbles: !0,
|
|
2132
2138
|
composed: !0
|
|
@@ -2145,24 +2151,24 @@ var kt = "en", At = [
|
|
|
2145
2151
|
this._activeScopeId = e.detail.scopeId, this._runSearch(this._searchQuery, this._activeScopeId);
|
|
2146
2152
|
}, this._resizeObserver = new ResizeObserver((e) => {
|
|
2147
2153
|
this._observeMenuSize(e);
|
|
2148
|
-
}), this._resizeObserver.observe(this), new
|
|
2154
|
+
}), this._resizeObserver.observe(this), new R(this, () => this.open);
|
|
2149
2155
|
}
|
|
2150
2156
|
downLevelTree(e) {
|
|
2151
2157
|
if (!e) return;
|
|
2152
2158
|
let t = e[0];
|
|
2153
|
-
if (!(!t || !
|
|
2159
|
+
if (!(!t || !M(t))) return t;
|
|
2154
2160
|
}
|
|
2155
2161
|
_observeMenuSize(e) {
|
|
2156
2162
|
this._moduleSwitcherMaxHeight = Math.max(0, e[0].contentRect.height - 134);
|
|
2157
2163
|
}
|
|
2158
2164
|
willUpdate(e) {
|
|
2159
|
-
e.has("lang") &&
|
|
2165
|
+
e.has("lang") && Wt(this.lang).catch(console.error), e.has("open") && e.get("open") && !this.open && this.resetSidebarToInitialState(), e.has("menu") && (this._hasPageTitle = this.menu?.pageTitle !== void 0, e.get("menu")?.items !== this.menu?.items && this._runSearch(this._searchQuery, this._activeScopeId));
|
|
2160
2166
|
}
|
|
2161
2167
|
updated(e) {
|
|
2162
2168
|
e.has("open") && this.open && this._scrollActiveItemIntoView(), e.has("menu") && this.open && this.menu?.currentItem && (e.get("menu")?.currentItem || this._scrollActiveItemIntoView());
|
|
2163
2169
|
}
|
|
2164
2170
|
resetSidebarToInitialState() {
|
|
2165
|
-
this._searchQuery = "", this._activeScopeId =
|
|
2171
|
+
this._searchQuery = "", this._activeScopeId = O, this._clearSearchState(), this.renderRoot.querySelector("vsn-header")?.reset(), this.renderRoot.querySelector("vsn-footer")?.reset();
|
|
2166
2172
|
}
|
|
2167
2173
|
render() {
|
|
2168
2174
|
let e = this._viewMode();
|
|
@@ -2204,19 +2210,19 @@ var kt = "en", At = [
|
|
|
2204
2210
|
await this.updateComplete, this.renderRoot.querySelector("vsn-header")?.focus();
|
|
2205
2211
|
}
|
|
2206
2212
|
_onSearchInput(e) {
|
|
2207
|
-
this._searchQuery = e.detail.value, e.detail.value
|
|
2213
|
+
this._searchQuery = e.detail.value, D(e.detail.value) || this._clearSearchState();
|
|
2208
2214
|
}
|
|
2209
2215
|
_onSearchSubmit(e) {
|
|
2210
2216
|
this._runSearch(e.detail.query, this._activeScopeId);
|
|
2211
2217
|
}
|
|
2212
2218
|
_onSearchCleared() {
|
|
2213
|
-
this._searchQuery = "", this._activeScopeId =
|
|
2219
|
+
this._searchQuery = "", this._activeScopeId = O, this._clearSearchState(), this.focusSearch();
|
|
2214
2220
|
}
|
|
2215
2221
|
_clearSearchState() {
|
|
2216
2222
|
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;
|
|
2217
2223
|
}
|
|
2218
2224
|
async _runSearch(e, t) {
|
|
2219
|
-
if (this._searchAbort?.abort(), this._searchAbort = void 0, this._searchError = void 0, this._searchNextCursor = void 0, this._searchLoadingMore = !1, e
|
|
2225
|
+
if (this._searchAbort?.abort(), this._searchAbort = void 0, this._searchError = void 0, this._searchNextCursor = void 0, this._searchLoadingMore = !1, !D(e)) {
|
|
2220
2226
|
this._searchResults = void 0, this._searchLoading = !1;
|
|
2221
2227
|
return;
|
|
2222
2228
|
}
|
|
@@ -2240,7 +2246,7 @@ var kt = "en", At = [
|
|
|
2240
2246
|
this._searchResults = t.results, this._searchNextCursor = t.nextCursor, this._searchLoading = !1, this._searchAbort = void 0;
|
|
2241
2247
|
} catch (e) {
|
|
2242
2248
|
if (this._searchAbort !== r) return;
|
|
2243
|
-
e instanceof
|
|
2249
|
+
e instanceof pt ? (this._searchError = e.message, this._searchResults = void 0) : console.error("Search function rejected with non-SearchError:", e), this._searchLoading = !1, this._searchAbort = void 0;
|
|
2244
2250
|
}
|
|
2245
2251
|
}
|
|
2246
2252
|
async _loadMore() {
|
|
@@ -2260,29 +2266,29 @@ var kt = "en", At = [
|
|
|
2260
2266
|
this._searchResults = [...this._searchResults ?? [], ...n.results], this._searchNextCursor = n.nextCursor, this._searchLoadingMore = !1, this._searchAbort = void 0;
|
|
2261
2267
|
} catch (e) {
|
|
2262
2268
|
if (this._searchAbort !== t) return;
|
|
2263
|
-
e instanceof
|
|
2269
|
+
e instanceof pt ? (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;
|
|
2264
2270
|
}
|
|
2265
2271
|
}
|
|
2266
2272
|
_filterTree(e) {
|
|
2267
|
-
let t = this._menu?.items;
|
|
2268
|
-
if (!t?.length ||
|
|
2269
|
-
let
|
|
2270
|
-
for (let a of e) if (
|
|
2271
|
-
else
|
|
2272
|
-
let e =
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2273
|
+
let t = this._menu?.items, n = Ne(e.toLowerCase());
|
|
2274
|
+
if (!t?.length || n.length === 0) return [];
|
|
2275
|
+
let r = [], i = (e, t) => {
|
|
2276
|
+
for (let a of e) if (M(a)) i(a.items, [...t, a]);
|
|
2277
|
+
else {
|
|
2278
|
+
let e = `${a.label} ${a.keywords ?? ""}`.toLowerCase();
|
|
2279
|
+
if (n.every((t) => e.includes(t))) {
|
|
2280
|
+
let e = t.length > 0 ? [t.map((e) => e.label).join(" › ")] : void 0;
|
|
2281
|
+
r.push({
|
|
2282
|
+
id: a.id,
|
|
2283
|
+
label: a.label,
|
|
2284
|
+
url: a.url,
|
|
2285
|
+
lines: e
|
|
2286
|
+
});
|
|
2287
|
+
}
|
|
2279
2288
|
}
|
|
2280
2289
|
};
|
|
2281
2290
|
return i(t, []), r;
|
|
2282
2291
|
}
|
|
2283
|
-
matchInKeywords(e, t) {
|
|
2284
|
-
return e ? e.trim().split(/\s+/).some((e) => e.toLowerCase().includes(t)) : !1;
|
|
2285
|
-
}
|
|
2286
2292
|
_viewMode() {
|
|
2287
2293
|
return this.error ? "error" : this._searchLoading ? "loading" : this._searchError !== void 0 || this._searchResults !== void 0 ? "results" : "menu";
|
|
2288
2294
|
}
|
|
@@ -2329,8 +2335,8 @@ var kt = "en", At = [
|
|
|
2329
2335
|
return e.length === 0 ? n`` : n`
|
|
2330
2336
|
<vsn-search-scopes
|
|
2331
2337
|
.scopes=${[{
|
|
2332
|
-
id:
|
|
2333
|
-
label:
|
|
2338
|
+
id: O,
|
|
2339
|
+
label: Fe()
|
|
2334
2340
|
}, ...e.map((e) => ({
|
|
2335
2341
|
id: e.id,
|
|
2336
2342
|
label: e.label
|
|
@@ -2354,15 +2360,15 @@ var kt = "en", At = [
|
|
|
2354
2360
|
`;
|
|
2355
2361
|
}
|
|
2356
2362
|
};
|
|
2357
|
-
|
|
2363
|
+
N([s({ attribute: !1 })], q.prototype, "modules", void 0), N([s()], q.prototype, "activeModuleId", void 0), N([s()], q.prototype, "activeModuleLabel", void 0), N([s({ type: Boolean })], q.prototype, "modulesLoading", void 0), N([s({ type: Boolean })], q.prototype, "moduleSwitcherAlwaysOpen", void 0), N([s()], q.prototype, "lang", void 0), N([s({ attribute: !1 })], q.prototype, "auth", void 0), N([s({ type: Boolean })], q.prototype, "error", void 0), N([s({
|
|
2358
2364
|
type: Boolean,
|
|
2359
2365
|
reflect: !0
|
|
2360
|
-
})],
|
|
2366
|
+
})], q.prototype, "open", void 0), N([s({ attribute: !1 })], q.prototype, "menu", void 0), N([l()], q.prototype, "_searchQuery", void 0), N([l()], q.prototype, "_searchResults", void 0), N([l()], q.prototype, "_searchLoading", void 0), N([l()], q.prototype, "_activeScopeId", void 0), N([l()], q.prototype, "_searchError", void 0), N([l()], q.prototype, "_searchNextCursor", void 0), N([l()], q.prototype, "_searchLoadingMore", void 0), N([l()], q.prototype, "_moduleSwitcherMaxHeight", void 0), N([l()], q.prototype, "_hasPageTitle", void 0), q = N([o("vsn-side-bar")], q);
|
|
2361
2367
|
//#endregion
|
|
2362
2368
|
//#region src/components/vsn-top-bar/vsn-breadcrumb-menu-item.ts
|
|
2363
|
-
var
|
|
2369
|
+
var an, J = class extends e {
|
|
2364
2370
|
static {
|
|
2365
|
-
|
|
2371
|
+
an = this;
|
|
2366
2372
|
}
|
|
2367
2373
|
static {
|
|
2368
2374
|
this._idCounter = 0;
|
|
@@ -2398,7 +2404,7 @@ var nn, q = class extends e {
|
|
|
2398
2404
|
bubbles: !0,
|
|
2399
2405
|
composed: !0
|
|
2400
2406
|
}));
|
|
2401
|
-
}, this._tooltipId = `vsn-menu-item-tooltip-${
|
|
2407
|
+
}, this._tooltipId = `vsn-menu-item-tooltip-${an._idCounter++}`, new R(this, () => this._isExpanded);
|
|
2402
2408
|
}
|
|
2403
2409
|
createRenderRoot() {
|
|
2404
2410
|
return this;
|
|
@@ -2424,7 +2430,7 @@ var nn, q = class extends e {
|
|
|
2424
2430
|
<div class="ga-tooltip ga-tooltip--right-start" style="white-space: nowrap">${e}</div>
|
|
2425
2431
|
</div>
|
|
2426
2432
|
<span class="ga-side-navigation__item-icon">
|
|
2427
|
-
${this._isParent() ? this._isExpanded ?
|
|
2433
|
+
${this._isParent() ? this._isExpanded ? k(A, 16) : k(it, 16) : ""}
|
|
2428
2434
|
</span>
|
|
2429
2435
|
<div class="ga-side-navigation__item-content">
|
|
2430
2436
|
<div class="ga-side-navigation__item-label">${e}</div>
|
|
@@ -2434,7 +2440,7 @@ var nn, q = class extends e {
|
|
|
2434
2440
|
<div class="${d(t)}" role="button" tabindex="0" aria-expanded=${this._isExpanded} aria-describedby="${this._tooltipId}" @click=${this._onClick} @keydown=${this._onKeyDown}
|
|
2435
2441
|
@mouseenter=${this._onItemMouseEnter} @mouseleave=${this._onItemMouseLeave}>${r}
|
|
2436
2442
|
</div>` : n`<a class="${d(t)}" aria-describedby="${this._tooltipId}"
|
|
2437
|
-
href="${this.tree &&
|
|
2443
|
+
href="${this.tree && j(this.tree) ? this.tree.url : ""}" @click=${this._onClick}
|
|
2438
2444
|
@mouseenter=${this._onItemMouseEnter} @mouseleave=${this._onItemMouseLeave}>${r}</a>`;
|
|
2439
2445
|
}
|
|
2440
2446
|
_menuItem(e, t) {
|
|
@@ -2442,16 +2448,16 @@ var nn, q = class extends e {
|
|
|
2442
2448
|
<vsn-breadcrumb-menu-item .tree=${e} .level=${t} .ancestorPath=${this.tree ? [...this.ancestorPath, this.tree] : this.ancestorPath}></vsn-breadcrumb-menu-item>`;
|
|
2443
2449
|
}
|
|
2444
2450
|
_getTreeItems(e) {
|
|
2445
|
-
if (e !== void 0 &&
|
|
2451
|
+
if (e !== void 0 && M(e)) return e.items;
|
|
2446
2452
|
}
|
|
2447
2453
|
_isParent() {
|
|
2448
|
-
if (this.tree &&
|
|
2454
|
+
if (this.tree && M(this.tree)) return this.tree.items.length > 0;
|
|
2449
2455
|
}
|
|
2450
2456
|
};
|
|
2451
|
-
|
|
2457
|
+
N([s({ attribute: !1 })], J.prototype, "tree", void 0), N([s({ type: Number })], J.prototype, "level", void 0), N([s({ type: Array })], J.prototype, "ancestorPath", void 0), N([l()], J.prototype, "_isExpanded", void 0), N([l()], J.prototype, "_showTooltip", void 0), N([l()], J.prototype, "_tooltipPos", void 0), N([c(".ga-side-navigation__item-label")], J.prototype, "_labelEl", void 0), J = an = N([o("vsn-breadcrumb-menu-item")], J);
|
|
2452
2458
|
//#endregion
|
|
2453
2459
|
//#region src/components/vsn-top-bar/vsn-breadcrumb-menu.ts
|
|
2454
|
-
var
|
|
2460
|
+
var on = class extends e {
|
|
2455
2461
|
constructor() {
|
|
2456
2462
|
super(), this._handleKeyDown = (e) => {
|
|
2457
2463
|
if (e.defaultPrevented || T(e)) return;
|
|
@@ -2471,7 +2477,7 @@ var rn = class extends e {
|
|
|
2471
2477
|
if (!t.length) return;
|
|
2472
2478
|
let n = t.indexOf(e.target);
|
|
2473
2479
|
n !== -1 && (e.preventDefault(), e.key === "ArrowDown" ? n < t.length - 1 && t[n + 1].focus() : n > 0 && t[n - 1].focus());
|
|
2474
|
-
}, new
|
|
2480
|
+
}, new R(this, () => !0);
|
|
2475
2481
|
}
|
|
2476
2482
|
createRenderRoot() {
|
|
2477
2483
|
return this;
|
|
@@ -2498,10 +2504,10 @@ var rn = class extends e {
|
|
|
2498
2504
|
`;
|
|
2499
2505
|
}
|
|
2500
2506
|
};
|
|
2501
|
-
|
|
2507
|
+
N([s({ attribute: !1 })], on.prototype, "treeList", void 0), on = N([o("vsn-breadcrumb-menu")], on);
|
|
2502
2508
|
//#endregion
|
|
2503
2509
|
//#region src/components/vsn-top-bar/vsn-breadcrumbs.ts
|
|
2504
|
-
var
|
|
2510
|
+
var Y = class extends e {
|
|
2505
2511
|
constructor(...e) {
|
|
2506
2512
|
super(...e), this.modules = [], this.modulesLoading = !1, this._openPopoverId = null, this._displayMode = "full", this._overflowCount = 0, this._tooltip = null, this._mqDesktop = window.matchMedia("(min-width: 1440px)"), this._mqTablet = window.matchMedia("(min-width: 768px) and (max-width: 1439px)"), this._ro = null, this._lastContainerWidth = 0, this._mounted = !1, this._handleMediaChange = () => {
|
|
2507
2513
|
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);
|
|
@@ -2522,8 +2528,8 @@ var J = class extends e {
|
|
|
2522
2528
|
static {
|
|
2523
2529
|
this.styles = [
|
|
2524
2530
|
h,
|
|
2525
|
-
|
|
2526
|
-
|
|
2531
|
+
tn,
|
|
2532
|
+
Qt,
|
|
2527
2533
|
t`
|
|
2528
2534
|
.vsn-bc-modules-loading {
|
|
2529
2535
|
display: flex;
|
|
@@ -2646,7 +2652,7 @@ var J = class extends e {
|
|
|
2646
2652
|
_findPath(e, t, n = []) {
|
|
2647
2653
|
let r = [...n, e];
|
|
2648
2654
|
if (e.id === t) return r;
|
|
2649
|
-
for (let n of
|
|
2655
|
+
for (let n of M(e) ? e.items : []) {
|
|
2650
2656
|
let e = this._findPath(n, t, r);
|
|
2651
2657
|
if (e) return e;
|
|
2652
2658
|
}
|
|
@@ -2711,7 +2717,7 @@ var J = class extends e {
|
|
|
2711
2717
|
aria-haspopup="menu"
|
|
2712
2718
|
popovertarget="vsn-bc-modules-popover"
|
|
2713
2719
|
>
|
|
2714
|
-
<span class="ga-breadcrumb-item__label">${
|
|
2720
|
+
<span class="ga-breadcrumb-item__label">${Re()}</span>
|
|
2715
2721
|
</button>
|
|
2716
2722
|
${t}
|
|
2717
2723
|
<div
|
|
@@ -2741,7 +2747,7 @@ var J = class extends e {
|
|
|
2741
2747
|
aria-haspopup="menu"
|
|
2742
2748
|
popovertarget="vsn-bc-modules-popover"
|
|
2743
2749
|
>
|
|
2744
|
-
<span class="ga-breadcrumb-item__label">${
|
|
2750
|
+
<span class="ga-breadcrumb-item__label">${Re()}</span>
|
|
2745
2751
|
</button>
|
|
2746
2752
|
${t}
|
|
2747
2753
|
<div
|
|
@@ -2765,14 +2771,14 @@ var J = class extends e {
|
|
|
2765
2771
|
_handleLeafSelect(e, t) {
|
|
2766
2772
|
(this.shadowRoot?.getElementById(t))?.hidePopover?.();
|
|
2767
2773
|
let n = e.detail.path, r = n[n.length - 1];
|
|
2768
|
-
r &&
|
|
2774
|
+
r && j(r) && this.dispatchEvent(new CustomEvent("vsn-menu-item-changed", {
|
|
2769
2775
|
detail: r,
|
|
2770
2776
|
bubbles: !0,
|
|
2771
2777
|
composed: !0
|
|
2772
2778
|
}));
|
|
2773
2779
|
}
|
|
2774
2780
|
_renderLeafAsAncestor(e) {
|
|
2775
|
-
let t =
|
|
2781
|
+
let t = j(e) ? n`<a class="ga-breadcrumb-item__trigger" href=${e.url} @click=${(t) => this._onLeafAsAncestorClick(t, e)}>
|
|
2776
2782
|
<span class="ga-breadcrumb-item__label">${e.label ?? ""}</span>
|
|
2777
2783
|
</a>` : n`<span class="ga-breadcrumb-item__trigger">
|
|
2778
2784
|
<span class="ga-breadcrumb-item__label">${e.label ?? ""}</span>
|
|
@@ -2787,7 +2793,7 @@ var J = class extends e {
|
|
|
2787
2793
|
</div>`;
|
|
2788
2794
|
}
|
|
2789
2795
|
_renderLastItem(e, t, r) {
|
|
2790
|
-
return r ? n`${
|
|
2796
|
+
return r ? n`${M(e) && e.items.length > 0 ? this._renderBreadcrumbItem(e, t) : this._renderLeafAsAncestor(e)}${this._renderPageTitle(r)}` : this._renderCurrentItem(e);
|
|
2791
2797
|
}
|
|
2792
2798
|
_renderPageTitle(e) {
|
|
2793
2799
|
return n`
|
|
@@ -2809,7 +2815,7 @@ var J = class extends e {
|
|
|
2809
2815
|
</div>`;
|
|
2810
2816
|
}
|
|
2811
2817
|
_renderBreadcrumbItem(e, t) {
|
|
2812
|
-
if (!
|
|
2818
|
+
if (!M(e) || e.items.length === 0) return n``;
|
|
2813
2819
|
let i = this._popoverItemId(t), a = this._popoverItemTriggerId(t);
|
|
2814
2820
|
return n`
|
|
2815
2821
|
<div class="ga-breadcrumb-item ga-breadcrumb-item--link"
|
|
@@ -2853,7 +2859,7 @@ var J = class extends e {
|
|
|
2853
2859
|
id="vsn-bc-overflow-trigger"
|
|
2854
2860
|
class="ga-breadcrumb-item__trigger"
|
|
2855
2861
|
type="button"
|
|
2856
|
-
aria-label=${
|
|
2862
|
+
aria-label=${_("Show hidden breadcrumb items")}
|
|
2857
2863
|
aria-expanded=${this._openPopoverId === "vsn-bc-overflow-popover"}
|
|
2858
2864
|
aria-haspopup="menu"
|
|
2859
2865
|
popovertarget="vsn-bc-overflow-popover"
|
|
@@ -2897,7 +2903,7 @@ var J = class extends e {
|
|
|
2897
2903
|
}
|
|
2898
2904
|
render() {
|
|
2899
2905
|
return n`
|
|
2900
|
-
<nav aria-label=${
|
|
2906
|
+
<nav aria-label=${_("Breadcrumb")}>
|
|
2901
2907
|
<div class="ga-breadcrumb">
|
|
2902
2908
|
${this._displayMode === "full" ? this._renderFullBreadcrumbs() : this._displayMode === "overflow" ? this._renderOverflowBreadcrumbs() : this._renderMobileBreadcrumbs()}
|
|
2903
2909
|
</div>
|
|
@@ -2911,10 +2917,10 @@ var J = class extends e {
|
|
|
2911
2917
|
`;
|
|
2912
2918
|
}
|
|
2913
2919
|
};
|
|
2914
|
-
|
|
2920
|
+
N([s({ attribute: !1 })], Y.prototype, "tree", void 0), N([s({ type: Array })], Y.prototype, "modules", void 0), N([s()], Y.prototype, "activeModuleId", void 0), N([s({ type: Boolean })], Y.prototype, "modulesLoading", void 0), N([l()], Y.prototype, "_openPopoverId", void 0), N([l()], Y.prototype, "_displayMode", void 0), N([l()], Y.prototype, "_overflowCount", void 0), N([l()], Y.prototype, "_tooltip", void 0), Y = N([v(), o("vsn-breadcrumbs")], Y);
|
|
2915
2921
|
//#endregion
|
|
2916
2922
|
//#region src/components/vsn-top-bar/vsn-ai-assistant.ts
|
|
2917
|
-
var
|
|
2923
|
+
var sn = class extends e {
|
|
2918
2924
|
createRenderRoot() {
|
|
2919
2925
|
return this;
|
|
2920
2926
|
}
|
|
@@ -2928,16 +2934,16 @@ var an = class extends e {
|
|
|
2928
2934
|
render() {
|
|
2929
2935
|
return n`
|
|
2930
2936
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2931
|
-
aria-label=${
|
|
2932
|
-
<span class="ga-icon">${
|
|
2937
|
+
aria-label=${_("Open AI assistant")} @click=${this._handleClick}>
|
|
2938
|
+
<span class="ga-icon">${k(We)}</span>
|
|
2933
2939
|
</button>
|
|
2934
2940
|
`;
|
|
2935
2941
|
}
|
|
2936
2942
|
};
|
|
2937
|
-
|
|
2943
|
+
sn = N([v(), o("vsn-ai-assistant")], sn);
|
|
2938
2944
|
//#endregion
|
|
2939
2945
|
//#region src/components/vsn-top-bar/vsn-feedback.ts
|
|
2940
|
-
var
|
|
2946
|
+
var X = class extends e {
|
|
2941
2947
|
constructor(...e) {
|
|
2942
2948
|
super(...e), this._compact = !1, this.feedback = null, this.lang = "en", this._mqMobile = window.matchMedia("(max-width: 767px)"), this._handleMediaChange = () => {
|
|
2943
2949
|
this._compact = this._mqMobile.matches;
|
|
@@ -2977,7 +2983,7 @@ var Y = class extends e {
|
|
|
2977
2983
|
if (super.updated(e), e.has("feedback") && this.feedback?.workspaceId && !document.getElementById("survicate-sdk") && !window._sva) {
|
|
2978
2984
|
window._sva = window._sva ?? {}, window._sva.forcedLanguage = this.lang;
|
|
2979
2985
|
let e = document.createElement("script");
|
|
2980
|
-
e.id =
|
|
2986
|
+
e.id = ze, e.src = Ve(this.feedback.workspaceId), e.async = !0, e.onload = () => this._applyVisitorTraits(), e.onerror = () => {
|
|
2981
2987
|
e.remove(), window._sva = void 0;
|
|
2982
2988
|
}, document.head.appendChild(e);
|
|
2983
2989
|
}
|
|
@@ -3032,27 +3038,27 @@ var Y = class extends e {
|
|
|
3032
3038
|
}) : document.body && this._observer.observe(document.body, {
|
|
3033
3039
|
childList: !0,
|
|
3034
3040
|
subtree: !0
|
|
3035
|
-
}), this._surveyFocusCleanupTimer = setTimeout(() => this._clearFocusListener(), 15e3), window._sva?.invokeEvent?.(
|
|
3041
|
+
}), this._surveyFocusCleanupTimer = setTimeout(() => this._clearFocusListener(), 15e3), window._sva?.invokeEvent?.(Be);
|
|
3036
3042
|
}
|
|
3037
3043
|
}
|
|
3038
3044
|
render() {
|
|
3039
3045
|
return this._compact ? n`
|
|
3040
3046
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
3041
|
-
aria-label=${
|
|
3042
|
-
<span class="ga-icon">${
|
|
3047
|
+
aria-label=${_("Send feedback")} @click=${this._handleClick}>
|
|
3048
|
+
<span class="ga-icon">${k(qe)}</span>
|
|
3043
3049
|
</button>
|
|
3044
3050
|
` : n`
|
|
3045
|
-
<button type="button" class="ga-button ga-button--secondary" aria-label=${
|
|
3051
|
+
<button type="button" class="ga-button ga-button--secondary" aria-label=${_("Send feedback")}
|
|
3046
3052
|
@click=${this._handleClick}>
|
|
3047
|
-
${
|
|
3053
|
+
${_("Feedback")}
|
|
3048
3054
|
</button>
|
|
3049
3055
|
`;
|
|
3050
3056
|
}
|
|
3051
3057
|
};
|
|
3052
|
-
|
|
3058
|
+
N([l()], X.prototype, "_compact", void 0), N([s({ attribute: !1 })], X.prototype, "feedback", void 0), N([s({ attribute: !1 })], X.prototype, "auth", void 0), N([s()], X.prototype, "lang", void 0), X = N([v(), o("vsn-feedback")], X);
|
|
3053
3059
|
//#endregion
|
|
3054
3060
|
//#region src/components/vsn-top-bar/vsn-home.ts
|
|
3055
|
-
var
|
|
3061
|
+
var cn = class extends e {
|
|
3056
3062
|
createRenderRoot() {
|
|
3057
3063
|
return this;
|
|
3058
3064
|
}
|
|
@@ -3060,7 +3066,7 @@ var on = class extends e {
|
|
|
3060
3066
|
e.metaKey || e.ctrlKey || e.shiftKey || (e.preventDefault(), this.landingPageUrl && this.dispatchEvent(new CustomEvent("vsn-navigate", {
|
|
3061
3067
|
detail: {
|
|
3062
3068
|
id: "home",
|
|
3063
|
-
label:
|
|
3069
|
+
label: _("Home"),
|
|
3064
3070
|
url: this.landingPageUrl
|
|
3065
3071
|
},
|
|
3066
3072
|
bubbles: !0,
|
|
@@ -3069,17 +3075,17 @@ var on = class extends e {
|
|
|
3069
3075
|
}
|
|
3070
3076
|
render() {
|
|
3071
3077
|
return this.landingPageUrl ? n`
|
|
3072
|
-
<a href=${this.landingPageUrl} class="ga-button ga-button--ghost ga-button--icon-only" aria-label=${
|
|
3078
|
+
<a href=${this.landingPageUrl} class="ga-button ga-button--ghost ga-button--icon-only" aria-label=${_("Home")}
|
|
3073
3079
|
@click=${this._handleClick}>
|
|
3074
|
-
<span class="ga-icon">${
|
|
3080
|
+
<span class="ga-icon">${k(Je)}</span>
|
|
3075
3081
|
</a>
|
|
3076
3082
|
` : r;
|
|
3077
3083
|
}
|
|
3078
3084
|
};
|
|
3079
|
-
|
|
3085
|
+
N([s({ attribute: "landing-page-url" })], cn.prototype, "landingPageUrl", void 0), cn = N([v(), o("vsn-home")], cn);
|
|
3080
3086
|
//#endregion
|
|
3081
3087
|
//#region src/components/vsn-top-bar/vsn-menu-toggle.ts
|
|
3082
|
-
var
|
|
3088
|
+
var ln = class extends e {
|
|
3083
3089
|
createRenderRoot() {
|
|
3084
3090
|
return this;
|
|
3085
3091
|
}
|
|
@@ -3101,25 +3107,26 @@ var sn = class extends e {
|
|
|
3101
3107
|
}
|
|
3102
3108
|
render() {
|
|
3103
3109
|
return n`
|
|
3104
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
3110
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${_("Open menu")}
|
|
3105
3111
|
aria-describedby="vsn-menu-toggle-tooltip"
|
|
3106
3112
|
@click=${this._handleClick}
|
|
3107
3113
|
@mouseenter=${this._onActivate}
|
|
3108
3114
|
@mouseleave=${this._onDeactivate}>
|
|
3109
|
-
<span class="ga-icon">${
|
|
3115
|
+
<span class="ga-icon">${k(Ue)}</span>
|
|
3110
3116
|
</button>
|
|
3111
3117
|
<div id="vsn-menu-toggle-tooltip" role="tooltip"
|
|
3112
3118
|
style="position: fixed; inset: unset; margin: 0; padding: 0; border: none; background: transparent; overflow: visible; pointer-events: none; z-index: 9999;"
|
|
3113
3119
|
popover="manual">
|
|
3114
|
-
<div class="ga-tooltip ga-tooltip--bottom-start" style="white-space: nowrap"
|
|
3120
|
+
<div class="ga-tooltip ga-tooltip--bottom-start kbd-only" style="white-space: nowrap;">
|
|
3121
|
+
<span class="content">${Me()}</span></div>
|
|
3115
3122
|
</div>
|
|
3116
3123
|
`;
|
|
3117
3124
|
}
|
|
3118
3125
|
};
|
|
3119
|
-
|
|
3126
|
+
N([c("div[role=\"tooltip\"]", !0)], ln.prototype, "_tooltipElement", void 0), ln = N([v(), o("vsn-menu-toggle")], ln);
|
|
3120
3127
|
//#endregion
|
|
3121
3128
|
//#region src/components/vsn-top-bar/vsn-notifications.ts
|
|
3122
|
-
var
|
|
3129
|
+
var un = class extends e {
|
|
3123
3130
|
constructor(...e) {
|
|
3124
3131
|
super(...e), this.notificationActive = !1;
|
|
3125
3132
|
}
|
|
@@ -3134,23 +3141,23 @@ var cn = class extends e {
|
|
|
3134
3141
|
}));
|
|
3135
3142
|
}
|
|
3136
3143
|
render() {
|
|
3137
|
-
let e = this.notificationActive ?
|
|
3144
|
+
let e = this.notificationActive ? Ke : Ge;
|
|
3138
3145
|
return n`
|
|
3139
3146
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
3140
|
-
aria-label=${
|
|
3141
|
-
<span class="ga-icon">${
|
|
3147
|
+
aria-label=${_("Notifications")} @click=${this._handleClick}>
|
|
3148
|
+
<span class="ga-icon">${k(e)}</span>
|
|
3142
3149
|
</button>
|
|
3143
3150
|
`;
|
|
3144
3151
|
}
|
|
3145
3152
|
};
|
|
3146
|
-
|
|
3153
|
+
N([s({
|
|
3147
3154
|
type: Boolean,
|
|
3148
3155
|
attribute: "notification-active",
|
|
3149
3156
|
reflect: !0
|
|
3150
|
-
})],
|
|
3157
|
+
})], un.prototype, "notificationActive", void 0), un = N([v(), o("vsn-notifications")], un);
|
|
3151
3158
|
//#endregion
|
|
3152
3159
|
//#region src/components/vsn-top-bar/vsn-help.ts
|
|
3153
|
-
function
|
|
3160
|
+
function dn(e) {
|
|
3154
3161
|
try {
|
|
3155
3162
|
let t = new URL(e);
|
|
3156
3163
|
return t.protocol === "https:" || t.protocol === "http:";
|
|
@@ -3158,7 +3165,7 @@ function ln(e) {
|
|
|
3158
3165
|
return !1;
|
|
3159
3166
|
}
|
|
3160
3167
|
}
|
|
3161
|
-
var
|
|
3168
|
+
var fn = class extends e {
|
|
3162
3169
|
createRenderRoot() {
|
|
3163
3170
|
return this;
|
|
3164
3171
|
}
|
|
@@ -3170,20 +3177,20 @@ var X = class extends e {
|
|
|
3170
3177
|
}));
|
|
3171
3178
|
}
|
|
3172
3179
|
render() {
|
|
3173
|
-
return this.helpUrl &&
|
|
3180
|
+
return this.helpUrl && dn(this.helpUrl) ? n`
|
|
3174
3181
|
<a href=${this.helpUrl} target="_blank" rel="noopener noreferrer" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
3175
|
-
aria-label=${
|
|
3176
|
-
<span class="ga-icon">${
|
|
3182
|
+
aria-label=${_("Help")}>
|
|
3183
|
+
<span class="ga-icon">${k(Ye)}</span>
|
|
3177
3184
|
</a>
|
|
3178
3185
|
` : n`
|
|
3179
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
3186
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${_("Help")}
|
|
3180
3187
|
@click=${this._handleClick}>
|
|
3181
|
-
<span class="ga-icon">${
|
|
3188
|
+
<span class="ga-icon">${k(Ye)}</span>
|
|
3182
3189
|
</button>
|
|
3183
3190
|
`;
|
|
3184
3191
|
}
|
|
3185
3192
|
};
|
|
3186
|
-
|
|
3193
|
+
N([s({ attribute: "help-url" })], fn.prototype, "helpUrl", void 0), fn = N([v(), o("vsn-help")], fn);
|
|
3187
3194
|
//#endregion
|
|
3188
3195
|
//#region src/components/vsn-top-bar/vsn-top-bar.ts
|
|
3189
3196
|
var Z = class extends e {
|
|
@@ -3191,7 +3198,7 @@ var Z = class extends e {
|
|
|
3191
3198
|
super(...e), this.modules = [], this.feedback = null, this.showHelp = !1, this.showNotification = !1, this.notificationActive = !1, this.modulesLoading = !1, this.lang = "en";
|
|
3192
3199
|
}
|
|
3193
3200
|
willUpdate(e) {
|
|
3194
|
-
e.has("lang") &&
|
|
3201
|
+
e.has("lang") && Wt(this.lang).catch(console.error);
|
|
3195
3202
|
}
|
|
3196
3203
|
focusMenuToggle() {
|
|
3197
3204
|
this.renderRoot.querySelector("vsn-menu-toggle")?.focus();
|
|
@@ -3233,6 +3240,53 @@ var Z = class extends e {
|
|
|
3233
3240
|
border-color: transparent;
|
|
3234
3241
|
}
|
|
3235
3242
|
|
|
3243
|
+
.ga-tooltip {
|
|
3244
|
+
padding: calc(var(--ga-size-spacing-03) * var(--ga-base-scaling-factor, 1));
|
|
3245
|
+
}
|
|
3246
|
+
|
|
3247
|
+
.ga-tooltip .content {
|
|
3248
|
+
line-height: 24px;
|
|
3249
|
+
width: 172px;
|
|
3250
|
+
display: flex;
|
|
3251
|
+
padding-left: calc(var(--ga-size-spacing-02) * var(--ga-base-scaling-factor, 1));
|
|
3252
|
+
padding-right: calc(var(--ga-size-spacing-02) * var(--ga-base-scaling-factor, 1));
|
|
3253
|
+
gap: calc(var(--ga-size-spacing-01) * var(--ga-base-scaling-factor, 1));
|
|
3254
|
+
font-size: calc(var(--ga-text-xs-font-size) * var(--ga-base-scaling-factor, 1)) !important;
|
|
3255
|
+
align-items: center;
|
|
3256
|
+
}
|
|
3257
|
+
|
|
3258
|
+
.ga-tooltip.kbd-only .content {
|
|
3259
|
+
line-height: 16px;
|
|
3260
|
+
width: auto;
|
|
3261
|
+
justify-content: center;
|
|
3262
|
+
}
|
|
3263
|
+
|
|
3264
|
+
.ga-tooltip kbd {
|
|
3265
|
+
border: 0 !important;
|
|
3266
|
+
border-radius: var(--ga-radius) !important;
|
|
3267
|
+
background-color: var(--ga-color-surface-action) !important;
|
|
3268
|
+
color: var(--ga-color-text-on-action) !important;
|
|
3269
|
+
padding-inline: calc(var(--ga-size-spacing-02) * var(--ga-base-scaling-factor, 1)) !important;
|
|
3270
|
+
padding-block: 1px !important;
|
|
3271
|
+
font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
|
|
3272
|
+
font-size: calc(var(--ga-text-xs-font-size) * var(--ga-base-scaling-factor, 1)) !important;
|
|
3273
|
+
line-height: calc(var(--ga-text-xs-line-height) * var(--ga-base-scaling-factor, 1)) !important;
|
|
3274
|
+
letter-spacing: calc(var(--ga-text-xs-letter-spacing) * var(--ga-base-scaling-factor, 1)) !important;
|
|
3275
|
+
box-shadow: none !important;
|
|
3276
|
+
font-variant-numeric: tabular-nums;
|
|
3277
|
+
display: flex;
|
|
3278
|
+
gap: calc(var(--ga-size-spacing-01) * var(--ga-base-scaling-factor, 1));
|
|
3279
|
+
}
|
|
3280
|
+
|
|
3281
|
+
.ga-tooltip.kbd-only kbd {
|
|
3282
|
+
padding-block: 0 !important;
|
|
3283
|
+
background: transparent !important;
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
.ga-tooltip kbd > kbd {
|
|
3287
|
+
padding: 0 !important;
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3236
3290
|
@media (max-width: 767px) {
|
|
3237
3291
|
.ga-page-header__global-navigation {
|
|
3238
3292
|
flex-wrap: wrap;
|
|
@@ -3296,19 +3350,19 @@ var Z = class extends e {
|
|
|
3296
3350
|
`;
|
|
3297
3351
|
}
|
|
3298
3352
|
};
|
|
3299
|
-
|
|
3353
|
+
N([s({ attribute: !1 })], Z.prototype, "tree", void 0), N([s({ type: Array })], Z.prototype, "modules", void 0), N([s()], Z.prototype, "activeModuleId", void 0), N([s({ attribute: "landing-page-url" })], Z.prototype, "landingPageUrl", void 0), N([s({ attribute: !1 })], Z.prototype, "feedback", void 0), N([s({ attribute: !1 })], Z.prototype, "auth", void 0), N([s({
|
|
3300
3354
|
type: Boolean,
|
|
3301
3355
|
attribute: "show-help"
|
|
3302
|
-
})], Z.prototype, "showHelp", void 0),
|
|
3356
|
+
})], Z.prototype, "showHelp", void 0), N([s({ attribute: "help-url" })], Z.prototype, "helpUrl", void 0), N([s({
|
|
3303
3357
|
type: Boolean,
|
|
3304
3358
|
attribute: "show-notification"
|
|
3305
|
-
})], Z.prototype, "showNotification", void 0),
|
|
3359
|
+
})], Z.prototype, "showNotification", void 0), N([s({
|
|
3306
3360
|
type: Boolean,
|
|
3307
3361
|
attribute: "notification-active"
|
|
3308
|
-
})], Z.prototype, "notificationActive", void 0),
|
|
3362
|
+
})], Z.prototype, "notificationActive", void 0), N([s({ type: Boolean })], Z.prototype, "modulesLoading", void 0), N([s()], Z.prototype, "lang", void 0), Z = N([o("vsn-top-bar")], Z);
|
|
3309
3363
|
//#endregion
|
|
3310
3364
|
//#region src/components/vsn-card.ts
|
|
3311
|
-
var
|
|
3365
|
+
var pn = class extends e {
|
|
3312
3366
|
static {
|
|
3313
3367
|
this.styles = [h, t`
|
|
3314
3368
|
:host {
|
|
@@ -3329,7 +3383,7 @@ var un = class extends e {
|
|
|
3329
3383
|
return n`<slot></slot>`;
|
|
3330
3384
|
}
|
|
3331
3385
|
};
|
|
3332
|
-
|
|
3386
|
+
pn = N([o("vsn-card")], pn);
|
|
3333
3387
|
//#endregion
|
|
3334
3388
|
//#region src/components/vsn-skip-to-main.ts
|
|
3335
3389
|
var Q = class extends e {
|
|
@@ -3387,7 +3441,7 @@ var Q = class extends e {
|
|
|
3387
3441
|
render() {
|
|
3388
3442
|
return n`
|
|
3389
3443
|
<a href=${`#${this.href}`} @click=${this._handleClick}>
|
|
3390
|
-
<vsn-card>${
|
|
3444
|
+
<vsn-card>${_("Skip to main content")}</vsn-card>
|
|
3391
3445
|
</a>
|
|
3392
3446
|
`;
|
|
3393
3447
|
}
|
|
@@ -3397,7 +3451,7 @@ var Q = class extends e {
|
|
|
3397
3451
|
t && (t.tabIndex < 0 && t.setAttribute("tabindex", "-1"), t.focus());
|
|
3398
3452
|
}
|
|
3399
3453
|
};
|
|
3400
|
-
|
|
3454
|
+
N([s()], Q.prototype, "href", void 0), Q = N([v(), o("vsn-skip-to-main")], Q);
|
|
3401
3455
|
//#endregion
|
|
3402
3456
|
//#region src/components/vsn-navigation.ts
|
|
3403
3457
|
var $ = class extends e {
|
|
@@ -3453,7 +3507,7 @@ var $ = class extends e {
|
|
|
3453
3507
|
static {
|
|
3454
3508
|
this.styles = [
|
|
3455
3509
|
h,
|
|
3456
|
-
|
|
3510
|
+
tn,
|
|
3457
3511
|
t`
|
|
3458
3512
|
:host {
|
|
3459
3513
|
display: flex;
|
|
@@ -3570,22 +3624,22 @@ var $ = class extends e {
|
|
|
3570
3624
|
`;
|
|
3571
3625
|
}
|
|
3572
3626
|
};
|
|
3573
|
-
|
|
3627
|
+
N([s()], $.prototype, "lang", void 0), N([s({ attribute: !1 })], $.prototype, "tree", void 0), N([s({ attribute: !1 })], $.prototype, "modules", void 0), N([s({ attribute: !1 })], $.prototype, "auth", void 0), N([s({ attribute: "landing-page-url" })], $.prototype, "landingPageUrl", void 0), N([s({
|
|
3574
3628
|
type: Boolean,
|
|
3575
3629
|
attribute: "show-help"
|
|
3576
|
-
})], $.prototype, "showHelp", void 0),
|
|
3630
|
+
})], $.prototype, "showHelp", void 0), N([s({ attribute: "help-url" })], $.prototype, "helpUrl", void 0), N([s({ attribute: !1 })], $.prototype, "feedback", void 0), N([s({
|
|
3577
3631
|
type: Boolean,
|
|
3578
3632
|
attribute: "module-switcher-always-open"
|
|
3579
|
-
})], $.prototype, "moduleSwitcherAlwaysOpen", void 0),
|
|
3633
|
+
})], $.prototype, "moduleSwitcherAlwaysOpen", void 0), N([s({
|
|
3580
3634
|
type: Boolean,
|
|
3581
3635
|
attribute: "show-notification"
|
|
3582
|
-
})], $.prototype, "showNotification", void 0),
|
|
3636
|
+
})], $.prototype, "showNotification", void 0), N([s({
|
|
3583
3637
|
type: Boolean,
|
|
3584
3638
|
attribute: "notification-active"
|
|
3585
|
-
})], $.prototype, "notificationActive", void 0),
|
|
3639
|
+
})], $.prototype, "notificationActive", void 0), N([s({
|
|
3586
3640
|
type: Boolean,
|
|
3587
3641
|
attribute: "open",
|
|
3588
3642
|
reflect: !0
|
|
3589
|
-
})], $.prototype, "open", void 0),
|
|
3643
|
+
})], $.prototype, "open", void 0), N([l()], $.prototype, "_resolvedModules", void 0), N([l()], $.prototype, "_modulesLoading", void 0), $ = N([o("vsn-navigation")], $);
|
|
3590
3644
|
//#endregion
|
|
3591
|
-
export {
|
|
3645
|
+
export { pt as SearchError, $ as VSNNavigation, Q as VSNSkipToMain, j as isTreeLeaf, M as isTreeParent };
|