@visma-swno/vsn-navigation 1.2.0-beta.5 → 1.2.0-beta.7
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 +329 -323
- package/dist/custom-elements.json +1 -1
- package/package.json +1 -1
|
@@ -192,38 +192,38 @@ function g(e) {
|
|
|
192
192
|
function _(e) {
|
|
193
193
|
return "items" in e;
|
|
194
194
|
}
|
|
195
|
-
var
|
|
195
|
+
var de = class e extends Error {
|
|
196
196
|
constructor(t) {
|
|
197
197
|
super(t), this.name = "SearchError", Object.setPrototypeOf(this, e.prototype);
|
|
198
198
|
}
|
|
199
|
-
},
|
|
199
|
+
}, fe = ie("activeId"), v = "lit-localize-status", y = (e, ...t) => ({
|
|
200
200
|
strTag: !0,
|
|
201
201
|
strings: e,
|
|
202
202
|
values: t
|
|
203
|
-
}),
|
|
203
|
+
}), pe = (e) => typeof e != "string" && "strTag" in e, me = (e, t, n) => {
|
|
204
204
|
let r = e[0];
|
|
205
205
|
for (let i = 1; i < e.length; i++) r += t[n ? n[i - 1] : i - 1], r += e[i];
|
|
206
206
|
return r;
|
|
207
|
-
},
|
|
208
|
-
function
|
|
209
|
-
if (
|
|
210
|
-
|
|
207
|
+
}, he = ((e) => pe(e) ? me(e.strings, e.values) : e), b = he, ge = !1;
|
|
208
|
+
function _e(e) {
|
|
209
|
+
if (ge) throw Error("lit-localize can only be configured once");
|
|
210
|
+
b = e, ge = !0;
|
|
211
211
|
}
|
|
212
212
|
//#endregion
|
|
213
213
|
//#region node_modules/@lit/localize/internal/localized-controller.js
|
|
214
|
-
var
|
|
214
|
+
var ve = class {
|
|
215
215
|
constructor(e) {
|
|
216
216
|
this.__litLocalizeEventHandler = (e) => {
|
|
217
217
|
e.detail.status === "ready" && this.host.requestUpdate();
|
|
218
218
|
}, this.host = e;
|
|
219
219
|
}
|
|
220
220
|
hostConnected() {
|
|
221
|
-
window.addEventListener(
|
|
221
|
+
window.addEventListener(v, this.__litLocalizeEventHandler);
|
|
222
222
|
}
|
|
223
223
|
hostDisconnected() {
|
|
224
|
-
window.removeEventListener(
|
|
224
|
+
window.removeEventListener(v, this.__litLocalizeEventHandler);
|
|
225
225
|
}
|
|
226
|
-
},
|
|
226
|
+
}, ye = (e) => e.addController(new ve(e)), x = () => (e, t) => (e.addInitializer(ye), e), be = class {
|
|
227
227
|
constructor() {
|
|
228
228
|
this.settled = !1, this.promise = new Promise((e, t) => {
|
|
229
229
|
this._resolve = e, this._reject = t;
|
|
@@ -235,80 +235,80 @@ var _e = class {
|
|
|
235
235
|
reject(e) {
|
|
236
236
|
this.settled = !0, this._reject(e);
|
|
237
237
|
}
|
|
238
|
-
},
|
|
239
|
-
for (let e = 0; e < 256; e++)
|
|
240
|
-
function
|
|
238
|
+
}, S = [];
|
|
239
|
+
for (let e = 0; e < 256; e++) S[e] = (e >> 4 & 15).toString(16) + (e & 15).toString(16);
|
|
240
|
+
function xe(e) {
|
|
241
241
|
let t = 0, n = 8997, r = 0, i = 33826, a = 0, o = 40164, s = 0, c = 52210;
|
|
242
242
|
for (let l = 0; l < e.length; l++) n ^= e.charCodeAt(l), t = n * 435, r = i * 435, a = o * 435, s = c * 435, a += n << 8, s += i << 8, r += t >>> 16, n = t & 65535, a += r >>> 16, i = r & 65535, c = s + (a >>> 16) & 65535, o = a & 65535;
|
|
243
|
-
return
|
|
243
|
+
return S[c >> 8] + S[c & 255] + S[o >> 8] + S[o & 255] + S[i >> 8] + S[i & 255] + S[n >> 8] + S[n & 255];
|
|
244
244
|
}
|
|
245
|
-
var
|
|
246
|
-
function
|
|
247
|
-
return (t ?
|
|
245
|
+
var Se = "h", Ce = "s";
|
|
246
|
+
function we(e, t) {
|
|
247
|
+
return (t ? Se : Ce) + xe(typeof e == "string" ? e : e.join(""));
|
|
248
248
|
}
|
|
249
249
|
//#endregion
|
|
250
250
|
//#region node_modules/@lit/localize/internal/runtime-msg.js
|
|
251
|
-
var
|
|
252
|
-
function
|
|
251
|
+
var Te = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new Map();
|
|
252
|
+
function De(e, t, n) {
|
|
253
253
|
if (e) {
|
|
254
|
-
let r = e[n?.id ??
|
|
254
|
+
let r = e[n?.id ?? Oe(t)];
|
|
255
255
|
if (r) {
|
|
256
256
|
if (typeof r == "string") return r;
|
|
257
|
-
if ("strTag" in r) return
|
|
257
|
+
if ("strTag" in r) return me(r.strings, t.values, r.values);
|
|
258
258
|
{
|
|
259
|
-
let e =
|
|
260
|
-
return e === void 0 && (e = r.values,
|
|
259
|
+
let e = Te.get(r);
|
|
260
|
+
return e === void 0 && (e = r.values, Te.set(r, e)), {
|
|
261
261
|
...r,
|
|
262
262
|
values: e.map((e) => t.values[e])
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
return
|
|
267
|
+
return he(t);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
let t = typeof e == "string" ? e : e.strings, n =
|
|
271
|
-
return n === void 0 && (n =
|
|
269
|
+
function Oe(e) {
|
|
270
|
+
let t = typeof e == "string" ? e : e.strings, n = Ee.get(t);
|
|
271
|
+
return n === void 0 && (n = we(t, typeof e != "string" && !("strTag" in e)), Ee.set(t, n)), n;
|
|
272
272
|
}
|
|
273
273
|
//#endregion
|
|
274
274
|
//#region node_modules/@lit/localize/init/runtime.js
|
|
275
|
-
function
|
|
276
|
-
window.dispatchEvent(new CustomEvent(
|
|
275
|
+
function C(e) {
|
|
276
|
+
window.dispatchEvent(new CustomEvent(v, { detail: e }));
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
|
|
280
|
-
var
|
|
281
|
-
getLocale:
|
|
282
|
-
setLocale:
|
|
283
|
-
}),
|
|
284
|
-
if (e === (
|
|
285
|
-
if (!
|
|
286
|
-
if (!
|
|
287
|
-
|
|
288
|
-
let t =
|
|
289
|
-
return
|
|
278
|
+
var w = "", T, ke, E, D, Ae, O = new be();
|
|
279
|
+
O.resolve();
|
|
280
|
+
var k = 0, je = (e) => (_e(((e, t) => De(Ae, e, t))), w = ke = e.sourceLocale, E = new Set(e.targetLocales), E.add(e.sourceLocale), D = e.loadLocale, {
|
|
281
|
+
getLocale: Me,
|
|
282
|
+
setLocale: Ne
|
|
283
|
+
}), Me = () => w, Ne = (e) => {
|
|
284
|
+
if (e === (T ?? w)) return O.promise;
|
|
285
|
+
if (!E || !D) throw Error("Internal error");
|
|
286
|
+
if (!E.has(e)) throw Error("Invalid locale code");
|
|
287
|
+
k++;
|
|
288
|
+
let t = k;
|
|
289
|
+
return T = e, O.settled && (O = new be()), C({
|
|
290
290
|
status: "loading",
|
|
291
291
|
loadingLocale: e
|
|
292
|
-
}), (e ===
|
|
293
|
-
|
|
292
|
+
}), (e === ke ? Promise.resolve({ templates: void 0 }) : D(e)).then((n) => {
|
|
293
|
+
k === t && (w = e, T = void 0, Ae = n.templates, C({
|
|
294
294
|
status: "ready",
|
|
295
295
|
readyLocale: e
|
|
296
|
-
}),
|
|
296
|
+
}), O.resolve());
|
|
297
297
|
}, (n) => {
|
|
298
|
-
|
|
298
|
+
k === t && (C({
|
|
299
299
|
status: "error",
|
|
300
300
|
errorLocale: e,
|
|
301
301
|
errorMessage: n.toString()
|
|
302
|
-
}),
|
|
303
|
-
}),
|
|
304
|
-
},
|
|
302
|
+
}), O.reject(n));
|
|
303
|
+
}), O.promise;
|
|
304
|
+
}, Pe = () => {
|
|
305
305
|
if (typeof navigator > "u") return !1;
|
|
306
306
|
let e = navigator.userAgentData?.platform ?? navigator.platform ?? "";
|
|
307
307
|
return /mac/i.test(e);
|
|
308
|
-
},
|
|
308
|
+
}, Fe = (e) => !e.shiftKey && !e.altKey && (Pe() ? e.metaKey && !e.ctrlKey : e.ctrlKey && !e.metaKey), A = (e) => e.shiftKey || e.altKey || e.ctrlKey || e.metaKey, j = (e) => !A(e), Ie = () => b("Choose a service"), Le = () => b("Search"), Re = () => Pe() ? "Cmd+K" : "CTRL+K", ze = (e) => b(y`Type at least ${e} characters to search`), Be = () => b("Menu items"), Ve = (e) => b(y`Load ${e} more`), He = () => b("VSN"), Ue = "survicate-sdk", We = "ui-components-feedback", Ge = (e) => `https://survey.survicate.com/workspaces/${e}/web_surveys.js`;
|
|
309
309
|
//#endregion
|
|
310
310
|
//#region src/shared/icons.ts
|
|
311
|
-
function
|
|
311
|
+
function M(e, t = 24, r) {
|
|
312
312
|
return n`<svg
|
|
313
313
|
xmlns="http://www.w3.org/2000/svg"
|
|
314
314
|
width="${t}"
|
|
@@ -323,23 +323,23 @@ function N(e, t = 24, r) {
|
|
|
323
323
|
class=${r ?? ""}
|
|
324
324
|
>${e}</svg>`;
|
|
325
325
|
}
|
|
326
|
-
var
|
|
326
|
+
var Ke = i``, qe = i`
|
|
327
327
|
<path d="M4 5h16"/>
|
|
328
328
|
<path d="M4 12h16"/>
|
|
329
329
|
<path d="M4 19h16"/>
|
|
330
|
-
`,
|
|
330
|
+
`, Je = i`
|
|
331
331
|
<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"/>
|
|
332
332
|
<path d="M20 2v4"/>
|
|
333
333
|
<path d="M22 4h-4"/>
|
|
334
334
|
<circle cx="4" cy="20" r="2"/>
|
|
335
|
-
`,
|
|
335
|
+
`, Ye = i`
|
|
336
336
|
<path d="M10.268 21a2 2 0 0 0 3.464 0"/>
|
|
337
337
|
<path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"/>
|
|
338
|
-
`,
|
|
338
|
+
`, Xe = i`
|
|
339
339
|
<path d="M10.268 21a2 2 0 0 0 3.464 0"/>
|
|
340
340
|
<path d="M11.68 2.009A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673c-.824-.85-1.678-1.731-2.21-3.348"/>
|
|
341
341
|
<circle cx="18" cy="5" r="3"/>
|
|
342
|
-
`,
|
|
342
|
+
`, Ze = i`
|
|
343
343
|
<path d="M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"/>
|
|
344
344
|
<path d="M7 10v12"/>
|
|
345
345
|
`;
|
|
@@ -350,14 +350,14 @@ i`
|
|
|
350
350
|
<path d="M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2"/>
|
|
351
351
|
<path d="M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16"/>
|
|
352
352
|
`;
|
|
353
|
-
var
|
|
353
|
+
var Qe = i`
|
|
354
354
|
<path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"/>
|
|
355
355
|
<path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>
|
|
356
|
-
`,
|
|
356
|
+
`, $e = i`
|
|
357
357
|
<circle cx="12" cy="12" r="10"/>
|
|
358
358
|
<path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/>
|
|
359
359
|
<path d="M12 17h.01"/>
|
|
360
|
-
`,
|
|
360
|
+
`, et = i`
|
|
361
361
|
<circle cx="12" cy="8" r="5"/>
|
|
362
362
|
<path d="M20 21a8 8 0 0 0-16 0"/>
|
|
363
363
|
`;
|
|
@@ -368,11 +368,11 @@ i`
|
|
|
368
368
|
<path d="M12 17v5"/>
|
|
369
369
|
<path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/>
|
|
370
370
|
`;
|
|
371
|
-
var
|
|
371
|
+
var tt = i`
|
|
372
372
|
<path d="m16 17 5-5-5-5"/>
|
|
373
373
|
<path d="M21 12H9"/>
|
|
374
374
|
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/>
|
|
375
|
-
`,
|
|
375
|
+
`, nt = i`
|
|
376
376
|
<path d="M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6"/>
|
|
377
377
|
<path d="m21 3-9 9"/>
|
|
378
378
|
<path d="M15 3h6v6"/>
|
|
@@ -381,17 +381,17 @@ i`
|
|
|
381
381
|
<circle cx="12" cy="12" r="10"/>
|
|
382
382
|
<circle cx="12" cy="12" r="1"/>
|
|
383
383
|
`;
|
|
384
|
-
var
|
|
384
|
+
var rt = i`
|
|
385
385
|
<path d="m7 15 5 5 5-5"/>
|
|
386
386
|
<path d="m7 9 5-5 5 5"/>
|
|
387
|
-
`,
|
|
387
|
+
`, it = i`
|
|
388
388
|
<path d="m18 15-6-6-6 6"/>
|
|
389
|
-
`,
|
|
389
|
+
`, N = i`
|
|
390
390
|
<path d="m6 9 6 6 6-6"/>
|
|
391
|
-
`,
|
|
391
|
+
`, at = i`
|
|
392
392
|
<circle cx="11" cy="11" r="8"/>
|
|
393
393
|
<path d="m21 21-4.3-4.3"/>
|
|
394
|
-
`,
|
|
394
|
+
`, ot = i`
|
|
395
395
|
<circle cx="12" cy="12" r="10"/>
|
|
396
396
|
<path d="m15 9-6 6"/>
|
|
397
397
|
<path d="m9 9 6 6"/>
|
|
@@ -401,7 +401,7 @@ i`
|
|
|
401
401
|
<line x1="12" x2="12" y1="8" y2="12"/>
|
|
402
402
|
<line x1="12" x2="12.01" y1="16" y2="16"/>
|
|
403
403
|
`;
|
|
404
|
-
var
|
|
404
|
+
var st = i`
|
|
405
405
|
<path d="M12 16h.01"/>
|
|
406
406
|
<path d="M12 8v4"/>
|
|
407
407
|
<path d="M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z"/>
|
|
@@ -412,12 +412,12 @@ i`
|
|
|
412
412
|
`, i`
|
|
413
413
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.60982 1.03843C2.99778 0.96126 3.39992 1.00087 3.76537 1.15224C4.13082 1.30362 4.44318 1.55996 4.66294 1.88886C4.8827 2.21776 5 2.60444 5 3V4H7V3C7 2.60444 7.1173 2.21776 7.33706 1.88886C7.55682 1.55996 7.86918 1.30362 8.23463 1.15224C8.60009 1.00087 9.00222 0.96126 9.39018 1.03843C9.77814 1.1156 10.1345 1.30608 10.4142 1.58579C10.6939 1.86549 10.8844 2.22186 10.9616 2.60982C11.0387 2.99778 10.9991 3.39992 10.8478 3.76537C10.6964 4.13082 10.44 4.44318 10.1111 4.66294C9.78224 4.8827 9.39556 5 9 5H8V7H9C9.39556 7 9.78224 7.1173 10.1111 7.33706C10.44 7.55682 10.6964 7.86918 10.8478 8.23463C10.9991 8.60009 11.0387 9.00222 10.9616 9.39018C10.8844 9.77814 10.6939 10.1345 10.4142 10.4142C10.1345 10.6939 9.77814 10.8844 9.39018 10.9616C9.00222 11.0387 8.60009 10.9991 8.23463 10.8478C7.86918 10.6964 7.55682 10.44 7.33706 10.1111C7.1173 9.78224 7 9.39556 7 9V8H5V9C5 9.39556 4.8827 9.78224 4.66294 10.1111C4.44318 10.44 4.13082 10.6964 3.76537 10.8478C3.39992 10.9991 2.99778 11.0387 2.60982 10.9616C2.22186 10.8844 1.86549 10.6939 1.58579 10.4142C1.30608 10.1345 1.1156 9.77814 1.03843 9.39018C0.96126 9.00222 1.00087 8.60009 1.15224 8.23463C1.30362 7.86918 1.55996 7.55682 1.88886 7.33706C2.21776 7.1173 2.60444 7 3 7H4V5H3C2.60444 5 2.21776 4.8827 1.88886 4.66294C1.55996 4.44318 1.30362 4.13082 1.15224 3.76537C1.00087 3.39992 0.96126 2.99778 1.03843 2.60982C1.1156 2.22186 1.30608 1.86549 1.58579 1.58579C1.86549 1.30608 2.22186 1.1156 2.60982 1.03843ZM4 4V3C4 2.80222 3.94135 2.60888 3.83147 2.44443C3.72159 2.27998 3.56541 2.15181 3.38268 2.07612C3.19996 2.00043 2.99889 1.98063 2.80491 2.01922C2.61093 2.0578 2.43275 2.15304 2.29289 2.29289C2.15304 2.43275 2.0578 2.61093 2.01922 2.80491C1.98063 2.99889 2.00043 3.19996 2.07612 3.38268C2.15181 3.56541 2.27998 3.72159 2.44443 3.83147C2.60888 3.94135 2.80222 4 3 4H4ZM5 5V7H7V5H5ZM4 8H3C2.80222 8 2.60888 8.05865 2.44443 8.16853C2.27998 8.27841 2.15181 8.43459 2.07612 8.61732C2.00043 8.80004 1.98063 9.00111 2.01922 9.19509C2.0578 9.38907 2.15304 9.56726 2.29289 9.70711C2.43275 9.84696 2.61093 9.9422 2.80491 9.98079C2.99889 10.0194 3.19996 9.99957 3.38268 9.92388C3.56541 9.84819 3.72159 9.72002 3.83147 9.55557C3.94135 9.39112 4 9.19778 4 9V8ZM8 8V9C8 9.19778 8.05865 9.39112 8.16853 9.55557C8.27841 9.72002 8.43459 9.84819 8.61732 9.92388C8.80004 9.99957 9.00111 10.0194 9.19509 9.98079C9.38907 9.9422 9.56726 9.84696 9.70711 9.70711C9.84696 9.56726 9.9422 9.38907 9.98079 9.19509C10.0194 9.00111 9.99957 8.80004 9.92388 8.61732C9.84819 8.43459 9.72002 8.27841 9.55557 8.16853C9.39112 8.05865 9.19778 8 9 8H8ZM8 4H9C9.19778 4 9.39112 3.94135 9.55557 3.83147C9.72002 3.72159 9.84819 3.56541 9.92388 3.38268C9.99957 3.19996 10.0194 2.99889 9.98079 2.80491C9.9422 2.61093 9.84696 2.43275 9.70711 2.29289C9.56726 2.15304 9.38907 2.0578 9.19509 2.01922C9.00111 1.98063 8.80004 2.00043 8.61732 2.07612C8.43459 2.15181 8.27841 2.27998 8.16853 2.44443C8.05865 2.60888 8 2.80222 8 3V4Z"/>
|
|
414
414
|
`;
|
|
415
|
-
var
|
|
415
|
+
var ct = i`
|
|
416
416
|
<path d="m9 18 6-6-6-6"/>
|
|
417
417
|
`;
|
|
418
418
|
//#endregion
|
|
419
419
|
//#region \0@oxc-project+runtime@0.127.0/helpers/decorate.js
|
|
420
|
-
function
|
|
420
|
+
function P(e, t, n, r) {
|
|
421
421
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
422
422
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
423
423
|
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
@@ -425,9 +425,9 @@ function F(e, t, n, r) {
|
|
|
425
425
|
}
|
|
426
426
|
//#endregion
|
|
427
427
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-item.ts
|
|
428
|
-
var
|
|
428
|
+
var F, I = class extends e {
|
|
429
429
|
static {
|
|
430
|
-
|
|
430
|
+
F = this;
|
|
431
431
|
}
|
|
432
432
|
static {
|
|
433
433
|
this.styles = [h];
|
|
@@ -452,7 +452,7 @@ var I, L = class extends e {
|
|
|
452
452
|
}
|
|
453
453
|
}, this._onItemMouseLeave = () => {
|
|
454
454
|
this._showTooltip = !1;
|
|
455
|
-
}, this._tooltipId = `vsn-side-menu-item-tooltip-${
|
|
455
|
+
}, this._tooltipId = `vsn-side-menu-item-tooltip-${F._idCounter++}`;
|
|
456
456
|
}
|
|
457
457
|
willUpdate(e) {
|
|
458
458
|
let t = this.tree;
|
|
@@ -477,7 +477,7 @@ var I, L = class extends e {
|
|
|
477
477
|
<div class="ga-tooltip ga-tooltip--right-center w-34 max-w-135">${this.tree?.label}</div>
|
|
478
478
|
</div>
|
|
479
479
|
<span class="ga-side-navigation__item-icon">
|
|
480
|
-
${e ? this._isExpanded ? N
|
|
480
|
+
${e ? this._isExpanded ? M(N, 16) : M(ct, 16) : ""}
|
|
481
481
|
</span>
|
|
482
482
|
<div class="ga-side-navigation__item-content">
|
|
483
483
|
<div class="ga-side-navigation__item-label">${this.tree?.label}</div>
|
|
@@ -511,7 +511,7 @@ var I, L = class extends e {
|
|
|
511
511
|
this._isExpanded = !this._isExpanded, e.preventDefault(), e.stopPropagation();
|
|
512
512
|
return;
|
|
513
513
|
}
|
|
514
|
-
if (e.button !== 0 ||
|
|
514
|
+
if (e.button !== 0 || A(e)) return;
|
|
515
515
|
e.preventDefault(), e.stopPropagation();
|
|
516
516
|
let n = new CustomEvent("vsn-menu-item-changed", {
|
|
517
517
|
bubbles: !0,
|
|
@@ -521,13 +521,13 @@ var I, L = class extends e {
|
|
|
521
521
|
this.dispatchEvent(n);
|
|
522
522
|
}
|
|
523
523
|
};
|
|
524
|
-
|
|
525
|
-
context:
|
|
524
|
+
P([s({ attribute: !1 })], I.prototype, "tree", void 0), P([s({ type: Number })], I.prototype, "level", void 0), P([ue({
|
|
525
|
+
context: fe,
|
|
526
526
|
subscribe: !0
|
|
527
|
-
}), l()],
|
|
527
|
+
}), l()], I.prototype, "_currentActiveId", void 0), P([l()], I.prototype, "_isActive", void 0), P([l()], I.prototype, "_isExpanded", void 0), P([l()], I.prototype, "_showTooltip", void 0), P([l()], I.prototype, "_tooltipPos", void 0), P([c(".ga-side-navigation__item-label")], I.prototype, "_labelEl", void 0), I = F = P([o("vsn-menu-item")], I);
|
|
528
528
|
//#endregion
|
|
529
529
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu.ts
|
|
530
|
-
var
|
|
530
|
+
var L = class extends e {
|
|
531
531
|
constructor(...e) {
|
|
532
532
|
super(...e), this.items = [], this._currentActiveId = "", this.currentItem = "";
|
|
533
533
|
}
|
|
@@ -556,15 +556,15 @@ var R = class extends e {
|
|
|
556
556
|
return n`<vsn-menu-item .tree=${e}></vsn-menu-item>`;
|
|
557
557
|
}
|
|
558
558
|
};
|
|
559
|
-
|
|
559
|
+
P([s({ attribute: !1 })], L.prototype, "items", void 0), P([le({ context: fe }), l()], L.prototype, "_currentActiveId", void 0), P([s()], L.prototype, "currentItem", void 0), L = P([o("vsn-menu")], L);
|
|
560
560
|
//#endregion
|
|
561
561
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-button.ts
|
|
562
|
-
var
|
|
562
|
+
var R = class extends e {
|
|
563
563
|
constructor(...e) {
|
|
564
564
|
super(...e), this.label = "", this.closeOnClick = !1, this._onKeydown = (e) => {
|
|
565
|
-
e.defaultPrevented ||
|
|
565
|
+
e.defaultPrevented || j(e) && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), this.click());
|
|
566
566
|
}, this._onClick = (e) => {
|
|
567
|
-
e.defaultPrevented || e.button !== 0 ||
|
|
567
|
+
e.defaultPrevented || e.button !== 0 || A(e) || this.closeOnClick && this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
|
|
568
568
|
bubbles: !0,
|
|
569
569
|
composed: !0
|
|
570
570
|
}));
|
|
@@ -671,13 +671,13 @@ var z = class extends e {
|
|
|
671
671
|
`;
|
|
672
672
|
}
|
|
673
673
|
};
|
|
674
|
-
|
|
674
|
+
P([s()], R.prototype, "label", void 0), P([s({
|
|
675
675
|
type: Boolean,
|
|
676
676
|
attribute: "close-on-click"
|
|
677
|
-
})],
|
|
677
|
+
})], R.prototype, "closeOnClick", void 0), R = P([o("vsn-menu-button")], R);
|
|
678
678
|
//#endregion
|
|
679
679
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-separator.ts
|
|
680
|
-
var
|
|
680
|
+
var lt = class extends e {
|
|
681
681
|
static {
|
|
682
682
|
this.styles = [t`
|
|
683
683
|
/* flow-root establishes a BFC so the .line's margins stay contained.
|
|
@@ -700,30 +700,30 @@ var st = class extends e {
|
|
|
700
700
|
return n`<div class="line"></div>`;
|
|
701
701
|
}
|
|
702
702
|
};
|
|
703
|
-
|
|
703
|
+
lt = P([o("vsn-menu-separator")], lt);
|
|
704
704
|
//#endregion
|
|
705
705
|
//#region src/components/vsn-side-bar/vsn-footer/vsn-footer.keyboard.ts
|
|
706
|
-
var
|
|
706
|
+
var ut = class {
|
|
707
707
|
constructor(e) {
|
|
708
708
|
this._prevExpanded = !1, this.onUserKeydown = (e) => {
|
|
709
|
-
e.defaultPrevented || (
|
|
709
|
+
e.defaultPrevented || (j(e) && (e.key === "Enter" || e.key === " ") ? (e.preventDefault(), this.host.expanded = !this.host.expanded) : j(e) && e.key === "Escape" && this.host.expanded && (e.preventDefault(), this.host.expanded = !1));
|
|
710
710
|
}, this.onDropdownKeydown = (e) => {
|
|
711
711
|
if (e.defaultPrevented) return;
|
|
712
|
-
if (
|
|
712
|
+
if (j(e) && e.key === "Escape") {
|
|
713
713
|
e.preventDefault(), this._closeAndRefocus();
|
|
714
714
|
return;
|
|
715
715
|
}
|
|
716
|
-
if (
|
|
716
|
+
if (j(e) && (e.key === "Enter" || e.key === " ")) {
|
|
717
717
|
let t = e.target;
|
|
718
718
|
t instanceof HTMLElement && t.classList.contains("ga-side-navigation__footer-dropdown-item") && (e.preventDefault(), t.click());
|
|
719
719
|
return;
|
|
720
720
|
}
|
|
721
|
-
if (
|
|
721
|
+
if (j(e) && e.key === "Tab") {
|
|
722
722
|
let t = Array.from(this.host.querySelectorAll(".ga-side-navigation__footer-dropdown-item")), n = t[t.length - 1];
|
|
723
723
|
n && e.target === n && (this.host.expanded = !1);
|
|
724
724
|
return;
|
|
725
725
|
}
|
|
726
|
-
if (
|
|
726
|
+
if (A(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
727
727
|
e.preventDefault();
|
|
728
728
|
let t = this.host.querySelector(".ga-side-navigation__footer-dropdown");
|
|
729
729
|
if (!t) return;
|
|
@@ -743,7 +743,7 @@ var ct = class {
|
|
|
743
743
|
this.host.querySelector(".ga-side-navigation__user")?.focus();
|
|
744
744
|
});
|
|
745
745
|
}
|
|
746
|
-
},
|
|
746
|
+
}, dt = class {
|
|
747
747
|
constructor(e, t, n) {
|
|
748
748
|
this._onPointerDown = (e) => {
|
|
749
749
|
let t = e.composedPath();
|
|
@@ -760,7 +760,7 @@ var ct = class {
|
|
|
760
760
|
hostDisconnected() {
|
|
761
761
|
document.removeEventListener("pointerdown", this._onPointerDown, !0);
|
|
762
762
|
}
|
|
763
|
-
},
|
|
763
|
+
}, ft = t`
|
|
764
764
|
@layer components {
|
|
765
765
|
:where(.ga-side-navigation__user),
|
|
766
766
|
:where(.ga-side-navigation__footer-dropdown-item) {
|
|
@@ -796,26 +796,26 @@ var ct = class {
|
|
|
796
796
|
justify-content: center;
|
|
797
797
|
}
|
|
798
798
|
}
|
|
799
|
-
`,
|
|
800
|
-
function
|
|
799
|
+
`, pt = "initials";
|
|
800
|
+
function mt(e, t, n, r) {
|
|
801
801
|
if (!t) return;
|
|
802
802
|
let i = new URLSearchParams({
|
|
803
|
-
type:
|
|
803
|
+
type: pt,
|
|
804
804
|
size: r
|
|
805
805
|
});
|
|
806
806
|
return n && i.set("client_id", n), `${e}${t}?${i}`;
|
|
807
807
|
}
|
|
808
808
|
//#endregion
|
|
809
809
|
//#region src/components/vsn-side-bar/vsn-footer/vsn-footer.ts
|
|
810
|
-
var
|
|
811
|
-
profile:
|
|
812
|
-
logout:
|
|
813
|
-
},
|
|
814
|
-
profile:
|
|
815
|
-
logout:
|
|
816
|
-
}),
|
|
810
|
+
var ht = {
|
|
811
|
+
profile: et,
|
|
812
|
+
logout: tt
|
|
813
|
+
}, gt = () => ({
|
|
814
|
+
profile: b("My profile"),
|
|
815
|
+
logout: b("Log out")
|
|
816
|
+
}), z = class extends e {
|
|
817
817
|
static {
|
|
818
|
-
this.styles = [h,
|
|
818
|
+
this.styles = [h, ft];
|
|
819
819
|
}
|
|
820
820
|
createRenderRoot() {
|
|
821
821
|
return this;
|
|
@@ -823,16 +823,16 @@ var pt = {
|
|
|
823
823
|
get _items() {
|
|
824
824
|
return [{
|
|
825
825
|
id: "profile",
|
|
826
|
-
label:
|
|
826
|
+
label: gt().profile,
|
|
827
827
|
url: this.myProfileUrl
|
|
828
828
|
}, {
|
|
829
829
|
id: "logout",
|
|
830
|
-
label:
|
|
830
|
+
label: gt().logout,
|
|
831
831
|
url: "/logout"
|
|
832
832
|
}];
|
|
833
833
|
}
|
|
834
834
|
constructor() {
|
|
835
|
-
super(), this.expanded = !1, this._avatarFailed = !1, this._keyboard = new
|
|
835
|
+
super(), this.expanded = !1, this._avatarFailed = !1, this._keyboard = new ut(this), new dt(this, [".ga-side-navigation__footer-dropdown", ".ga-side-navigation__user"], () => {
|
|
836
836
|
this.expanded = !1;
|
|
837
837
|
});
|
|
838
838
|
}
|
|
@@ -869,7 +869,7 @@ var pt = {
|
|
|
869
869
|
</div>
|
|
870
870
|
|
|
871
871
|
<span class="ga-side-navigation__user-action">
|
|
872
|
-
${this.expanded ?
|
|
872
|
+
${this.expanded ? M(it, 16) : M(rt, 16)}
|
|
873
873
|
</span>
|
|
874
874
|
|
|
875
875
|
</div>
|
|
@@ -883,14 +883,14 @@ var pt = {
|
|
|
883
883
|
${this._items.map((e) => {
|
|
884
884
|
let t = n`
|
|
885
885
|
<span class="ga-side-navigation__footer-dropdown-icon">
|
|
886
|
-
${
|
|
886
|
+
${M(ht[e.id], 16)}
|
|
887
887
|
</span>
|
|
888
888
|
<span class="ga-side-navigation__footer-dropdown-title">
|
|
889
889
|
${e.label}
|
|
890
890
|
</span>
|
|
891
891
|
${e.external ? n`
|
|
892
892
|
<span class="ga-side-navigation__footer-dropdown-trail">
|
|
893
|
-
${
|
|
893
|
+
${M(nt, 16)}
|
|
894
894
|
</span>
|
|
895
895
|
` : r}
|
|
896
896
|
`;
|
|
@@ -930,7 +930,7 @@ var pt = {
|
|
|
930
930
|
}));
|
|
931
931
|
}
|
|
932
932
|
renderAvatar() {
|
|
933
|
-
let e =
|
|
933
|
+
let e = mt(this.profilePictureBaseUrl, this.user.userId, this.user.clientId, "small");
|
|
934
934
|
return e && !this._avatarFailed ? n`<img
|
|
935
935
|
class="ga-side-navigation__user-avatar"
|
|
936
936
|
src=${e}
|
|
@@ -938,31 +938,31 @@ var pt = {
|
|
|
938
938
|
@error=${() => {
|
|
939
939
|
this._avatarFailed = !0;
|
|
940
940
|
}} />` : n`<span class="ga-side-navigation__user-avatar vsn-side-navigation__user-avatar--icon">
|
|
941
|
-
${
|
|
941
|
+
${M(et, 24)}
|
|
942
942
|
</span>`;
|
|
943
943
|
}
|
|
944
944
|
};
|
|
945
|
-
|
|
945
|
+
P([s({ attribute: !1 })], z.prototype, "user", void 0), P([s()], z.prototype, "profilePictureBaseUrl", void 0), P([s()], z.prototype, "myProfileUrl", void 0), P([s({
|
|
946
946
|
type: Boolean,
|
|
947
947
|
reflect: !0
|
|
948
|
-
})],
|
|
948
|
+
})], z.prototype, "expanded", void 0), P([l()], z.prototype, "_avatarFailed", void 0), z = P([x(), o("vsn-footer")], z);
|
|
949
949
|
//#endregion
|
|
950
950
|
//#region src/components/vsn-side-bar/vsn-header/vsn-header.keyboard.ts
|
|
951
|
-
var
|
|
951
|
+
var _t = class {
|
|
952
952
|
constructor(e) {
|
|
953
953
|
this.onSwitcherKeydown = (e) => {
|
|
954
954
|
if (!e.defaultPrevented) {
|
|
955
|
-
if (
|
|
955
|
+
if (j(e) && (e.key === "Enter" || e.key === " ")) {
|
|
956
956
|
if (e.preventDefault(), this.host.expanded && !this.host.canClose) return;
|
|
957
957
|
(this.host.expanded || this.host.hasAvailableItems || this.host.modulesLoading) && (this.host.expanded = !this.host.expanded);
|
|
958
958
|
return;
|
|
959
959
|
}
|
|
960
|
-
if (
|
|
960
|
+
if (j(e) && e.key === "ArrowDown" && !this.host.expanded) {
|
|
961
961
|
if (!this.host.hasAvailableItems) return;
|
|
962
962
|
e.preventDefault(), this.host.expanded = !0;
|
|
963
963
|
return;
|
|
964
964
|
}
|
|
965
|
-
if (
|
|
965
|
+
if (j(e) && e.key === "Escape" && this.host.expanded) {
|
|
966
966
|
if (!this.host.canClose) return;
|
|
967
967
|
e.preventDefault(), this.host.expanded = !1;
|
|
968
968
|
}
|
|
@@ -970,23 +970,23 @@ var ht = class {
|
|
|
970
970
|
}, this.host = e, e.addController(this);
|
|
971
971
|
}
|
|
972
972
|
hostConnected() {}
|
|
973
|
-
},
|
|
973
|
+
}, vt = ".ga-side-navigation__switcher:focus{outline-offset:2px;outline:2px solid #3b82f6}", B = class extends e {
|
|
974
974
|
constructor(...e) {
|
|
975
|
-
super(...e), this.items = [], this.loading = !1, this._handleKeydown = (e) => {
|
|
975
|
+
super(...e), this.items = [], this.loading = !1, this.maxHeight = 0, this._handleKeydown = (e) => {
|
|
976
976
|
if (e.defaultPrevented) return;
|
|
977
|
-
if (
|
|
977
|
+
if (j(e) && e.key === "Escape") {
|
|
978
978
|
e.preventDefault(), this.dispatchEvent(new CustomEvent("close-request", {
|
|
979
979
|
bubbles: !0,
|
|
980
980
|
composed: !0
|
|
981
981
|
}));
|
|
982
982
|
return;
|
|
983
983
|
}
|
|
984
|
-
if (
|
|
984
|
+
if (j(e) && (e.key === "Enter" || e.key === " ")) {
|
|
985
985
|
let t = e.target;
|
|
986
986
|
t instanceof HTMLElement && t.classList.contains("ga-side-navigation__switcher-dropdown-item") && (e.preventDefault(), t.click());
|
|
987
987
|
return;
|
|
988
988
|
}
|
|
989
|
-
if (
|
|
989
|
+
if (j(e) && e.key === "Tab") {
|
|
990
990
|
let t = Array.from(this.querySelectorAll(".ga-side-navigation__switcher-dropdown-item")), n = t[t.length - 1];
|
|
991
991
|
n && e.target === n && this.dispatchEvent(new CustomEvent("tab-exit", {
|
|
992
992
|
bubbles: !0,
|
|
@@ -994,7 +994,7 @@ var ht = class {
|
|
|
994
994
|
}));
|
|
995
995
|
return;
|
|
996
996
|
}
|
|
997
|
-
if (
|
|
997
|
+
if (A(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
998
998
|
e.preventDefault();
|
|
999
999
|
let t = Array.from(this.querySelectorAll(".ga-side-navigation__switcher-dropdown-item"));
|
|
1000
1000
|
if (t.length === 0) return;
|
|
@@ -1031,15 +1031,16 @@ var ht = class {
|
|
|
1031
1031
|
<div class="ga-side-navigation__switcher-dropdown vsn-switcher-dropdown--loading"
|
|
1032
1032
|
role="status"
|
|
1033
1033
|
aria-busy="true"
|
|
1034
|
-
aria-label=${
|
|
1034
|
+
aria-label=${b("Loading modules")}>
|
|
1035
1035
|
<span class="vsn-spinner"></span>
|
|
1036
1036
|
</div>
|
|
1037
1037
|
` : n`
|
|
1038
1038
|
<div class="ga-side-navigation__switcher-dropdown"
|
|
1039
1039
|
role="menu"
|
|
1040
|
-
|
|
1040
|
+
style=${`max-height: ${Math.max(0, this.maxHeight)}px`}
|
|
1041
|
+
aria-label=${Ie()}
|
|
1041
1042
|
@keydown=${this._handleKeydown}>
|
|
1042
|
-
<span class="ga-side-navigation__switcher-dropdown-header">${
|
|
1043
|
+
<span class="ga-side-navigation__switcher-dropdown-header">${Ie()}</span>
|
|
1043
1044
|
${this.items.map((e) => n`
|
|
1044
1045
|
<a class="ga-side-navigation__switcher-dropdown-item"
|
|
1045
1046
|
href=${e.url ?? ""}
|
|
@@ -1052,10 +1053,10 @@ var ht = class {
|
|
|
1052
1053
|
`;
|
|
1053
1054
|
}
|
|
1054
1055
|
};
|
|
1055
|
-
|
|
1056
|
+
P([s({ attribute: !1 })], B.prototype, "items", void 0), P([s({ type: Boolean })], B.prototype, "loading", void 0), P([s({ attribute: !1 })], B.prototype, "maxHeight", void 0), B = P([x(), o("vsn-switcher-menu")], B);
|
|
1056
1057
|
//#endregion
|
|
1057
1058
|
//#region src/components/vsn-side-bar/vsn-search/vsn-search.css.ts
|
|
1058
|
-
var
|
|
1059
|
+
var yt = t`
|
|
1059
1060
|
.vsn-search__trigger,
|
|
1060
1061
|
.vsn-search__clear {
|
|
1061
1062
|
display: inline-flex;
|
|
@@ -1104,7 +1105,7 @@ var _t = t`
|
|
|
1104
1105
|
.ga-side-navigation__search input::placeholder {
|
|
1105
1106
|
color: var(--ga-color-text-disable-selected);
|
|
1106
1107
|
}
|
|
1107
|
-
`,
|
|
1108
|
+
`, V = class extends e {
|
|
1108
1109
|
constructor(...e) {
|
|
1109
1110
|
super(...e), this.shortcut = "", this.value = "", this.loading = !1, this._emitSearch = () => {
|
|
1110
1111
|
this._canSearch && this.dispatchEvent(new CustomEvent("vsn-search-submit", {
|
|
@@ -1118,14 +1119,14 @@ var _t = t`
|
|
|
1118
1119
|
composed: !0
|
|
1119
1120
|
}));
|
|
1120
1121
|
}, this._handleEscape = (e) => {
|
|
1121
|
-
e.defaultPrevented ||
|
|
1122
|
+
e.defaultPrevented || j(e) && e.key === "Escape" && this.value.length > 0 && (e.preventDefault(), this._emitSearchCleared());
|
|
1122
1123
|
};
|
|
1123
1124
|
}
|
|
1124
1125
|
createRenderRoot() {
|
|
1125
1126
|
return this;
|
|
1126
1127
|
}
|
|
1127
1128
|
static {
|
|
1128
|
-
this.styles = [h,
|
|
1129
|
+
this.styles = [h, yt];
|
|
1129
1130
|
}
|
|
1130
1131
|
focus() {
|
|
1131
1132
|
let e = this.querySelector("input");
|
|
@@ -1143,7 +1144,7 @@ var _t = t`
|
|
|
1143
1144
|
}));
|
|
1144
1145
|
}
|
|
1145
1146
|
_handleEnter(e) {
|
|
1146
|
-
e.defaultPrevented ||
|
|
1147
|
+
e.defaultPrevented || j(e) && e.key === "Enter" && this._emitSearch();
|
|
1147
1148
|
}
|
|
1148
1149
|
render() {
|
|
1149
1150
|
let e = this.value.length > 0 && this.value.length < 3;
|
|
@@ -1152,20 +1153,20 @@ var _t = t`
|
|
|
1152
1153
|
<button
|
|
1153
1154
|
type="button"
|
|
1154
1155
|
class="vsn-search__trigger"
|
|
1155
|
-
aria-label=${
|
|
1156
|
+
aria-label=${b("Search")}
|
|
1156
1157
|
?disabled=${!this._canSearch}
|
|
1157
1158
|
@click=${this._emitSearch}>
|
|
1158
|
-
${
|
|
1159
|
+
${M(at, 24)}
|
|
1159
1160
|
</button>
|
|
1160
1161
|
<input type="search"
|
|
1161
|
-
.placeholder=${
|
|
1162
|
+
.placeholder=${Le()}
|
|
1162
1163
|
.value=${this.value}
|
|
1163
1164
|
@input=${this._handleInput}
|
|
1164
1165
|
@keydown=${this._handleEnter}/>
|
|
1165
1166
|
${this._trailingSlot()}
|
|
1166
1167
|
</div>
|
|
1167
1168
|
${u(e, () => n`
|
|
1168
|
-
<div class="vsn-search__helper">${
|
|
1169
|
+
<div class="vsn-search__helper">${ze(3)}</div>`)}
|
|
1169
1170
|
`;
|
|
1170
1171
|
}
|
|
1171
1172
|
_trailingSlot() {
|
|
@@ -1177,13 +1178,13 @@ var _t = t`
|
|
|
1177
1178
|
`;
|
|
1178
1179
|
}
|
|
1179
1180
|
_spinner() {
|
|
1180
|
-
return n`<span class="vsn-spinner" role="status" aria-label=${
|
|
1181
|
+
return n`<span class="vsn-spinner" role="status" aria-label=${b("Searching")}></span>`;
|
|
1181
1182
|
}
|
|
1182
1183
|
_clearButton() {
|
|
1183
1184
|
return n`
|
|
1184
|
-
<button class="vsn-search__clear" aria-label=${
|
|
1185
|
+
<button class="vsn-search__clear" aria-label=${b("Clear search")}
|
|
1185
1186
|
@click=${this._emitSearchCleared}>
|
|
1186
|
-
${
|
|
1187
|
+
${M(ot, 16)}
|
|
1187
1188
|
</button>
|
|
1188
1189
|
`;
|
|
1189
1190
|
}
|
|
@@ -1191,18 +1192,18 @@ var _t = t`
|
|
|
1191
1192
|
return n`<kbd class="ga-side-navigation__search-shortcut">${this.shortcut}</kbd>`;
|
|
1192
1193
|
}
|
|
1193
1194
|
};
|
|
1194
|
-
|
|
1195
|
+
P([s()], V.prototype, "shortcut", void 0), P([s()], V.prototype, "value", void 0), P([s({ type: Boolean })], V.prototype, "loading", void 0), V = P([x(), o("vsn-search")], V);
|
|
1195
1196
|
//#endregion
|
|
1196
1197
|
//#region src/components/vsn-side-bar/vsn-header/vsn-header.ts
|
|
1197
|
-
var
|
|
1198
|
+
var H = class extends e {
|
|
1198
1199
|
createRenderRoot() {
|
|
1199
1200
|
return this;
|
|
1200
1201
|
}
|
|
1201
1202
|
static {
|
|
1202
|
-
this.styles = [h, a(
|
|
1203
|
+
this.styles = [h, a(vt)];
|
|
1203
1204
|
}
|
|
1204
1205
|
constructor() {
|
|
1205
|
-
super(), this.modules = [], this.modulesLoading = !1, this.hasMenu = !1, this.searchValue = "", this.searchLoading = !1, this.expanded = !1, this._keyboard = new
|
|
1206
|
+
super(), this.modules = [], this.modulesLoading = !1, this.hasMenu = !1, this.moduleSwitcherMaxHeight = 0, this.searchValue = "", this.searchLoading = !1, this.expanded = !1, this._keyboard = new _t(this), new dt(this, [".ga-side-navigation__switcher-dropdown", ".ga-side-navigation__switcher"], () => {
|
|
1206
1207
|
this.canClose && (this.expanded = !1);
|
|
1207
1208
|
});
|
|
1208
1209
|
}
|
|
@@ -1220,29 +1221,28 @@ var U = class extends e {
|
|
|
1220
1221
|
@keydown=${this._keyboard.onSwitcherKeydown}
|
|
1221
1222
|
title="">
|
|
1222
1223
|
<span class="ga-side-navigation__switcher-title">${e.title}</span>
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
</span>
|
|
1227
|
-
`)}
|
|
1224
|
+
<span class="ga-side-navigation__switcher-action">
|
|
1225
|
+
${this.canClose ? this.expanded ? M(N, 16) : M(rt, 16) : M(Ke, 16)}
|
|
1226
|
+
</span>
|
|
1228
1227
|
</div>
|
|
1229
1228
|
|
|
1230
1229
|
${u(this.expanded, () => n`
|
|
1231
1230
|
<vsn-switcher-menu
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1231
|
+
.items=${e.kind === "loading" ? [] : e.available}
|
|
1232
|
+
.loading=${e.kind === "loading"}
|
|
1233
|
+
.maxHeight=${this.moduleSwitcherMaxHeight}
|
|
1234
|
+
@item-select=${this._onItemSelect}
|
|
1235
|
+
@close-request=${this._onCloseRequest}
|
|
1236
|
+
@focus-switcher=${this._onFocusSwitcher}
|
|
1237
|
+
@tab-exit=${this._onTabExit}>
|
|
1238
1238
|
</vsn-switcher-menu>`)}
|
|
1239
1239
|
</div>
|
|
1240
1240
|
|
|
1241
1241
|
${u(this.search?.enabled, () => n`
|
|
1242
1242
|
<vsn-search
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1243
|
+
.shortcut=${Re()}
|
|
1244
|
+
.value=${this.searchValue}
|
|
1245
|
+
.loading=${this.searchLoading}>
|
|
1246
1246
|
</vsn-search>`)}
|
|
1247
1247
|
</div>
|
|
1248
1248
|
`;
|
|
@@ -1250,7 +1250,7 @@ var U = class extends e {
|
|
|
1250
1250
|
get _state() {
|
|
1251
1251
|
if (this.modulesLoading) return {
|
|
1252
1252
|
kind: "loading",
|
|
1253
|
-
title: this.activeModuleLabel ||
|
|
1253
|
+
title: this.activeModuleLabel || He()
|
|
1254
1254
|
};
|
|
1255
1255
|
let e = this.modules.find((e) => e.id === this.activeModuleId);
|
|
1256
1256
|
return e ? {
|
|
@@ -1259,7 +1259,7 @@ var U = class extends e {
|
|
|
1259
1259
|
available: this.modules.filter((t) => t.id !== e.id)
|
|
1260
1260
|
} : {
|
|
1261
1261
|
kind: "no-active",
|
|
1262
|
-
title:
|
|
1262
|
+
title: He(),
|
|
1263
1263
|
available: this.modules
|
|
1264
1264
|
};
|
|
1265
1265
|
}
|
|
@@ -1303,13 +1303,13 @@ var U = class extends e {
|
|
|
1303
1303
|
this.canClose && (this.expanded = !1);
|
|
1304
1304
|
}
|
|
1305
1305
|
};
|
|
1306
|
-
|
|
1306
|
+
P([s({ attribute: !1 })], H.prototype, "modules", void 0), P([s()], H.prototype, "activeModuleId", void 0), P([s()], H.prototype, "activeModuleLabel", void 0), P([s({ type: Boolean })], H.prototype, "modulesLoading", void 0), P([s({ type: Boolean })], H.prototype, "hasMenu", void 0), P([s({ attribute: !1 })], H.prototype, "moduleSwitcherMaxHeight", void 0), P([s({ attribute: !1 })], H.prototype, "search", void 0), P([s()], H.prototype, "searchValue", void 0), P([s({ type: Boolean })], H.prototype, "searchLoading", void 0), P([s({
|
|
1307
1307
|
type: Boolean,
|
|
1308
1308
|
reflect: !0
|
|
1309
|
-
})],
|
|
1309
|
+
})], H.prototype, "expanded", void 0), H = P([x(), o("vsn-header")], H);
|
|
1310
1310
|
//#endregion
|
|
1311
1311
|
//#region src/components/vsn-side-bar/vsn-search-results/vsn-search-results.css.ts
|
|
1312
|
-
var
|
|
1312
|
+
var bt = t`
|
|
1313
1313
|
.vsn-search-results__empty {
|
|
1314
1314
|
display: flex;
|
|
1315
1315
|
flex-direction: column;
|
|
@@ -1378,10 +1378,10 @@ var vt = t`
|
|
|
1378
1378
|
cursor: not-allowed;
|
|
1379
1379
|
opacity: 0.5;
|
|
1380
1380
|
}
|
|
1381
|
-
`,
|
|
1381
|
+
`, xt = class {
|
|
1382
1382
|
constructor(e) {
|
|
1383
1383
|
this.onResultsKeydown = (e) => {
|
|
1384
|
-
if (e.defaultPrevented ||
|
|
1384
|
+
if (e.defaultPrevented || A(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
1385
1385
|
e.preventDefault();
|
|
1386
1386
|
let t = Array.from(this.host.querySelectorAll(".ga-side-navigation__search-results-item"));
|
|
1387
1387
|
if (t.length === 0) return;
|
|
@@ -1392,15 +1392,15 @@ var vt = t`
|
|
|
1392
1392
|
}, this.host = e, e.addController(this);
|
|
1393
1393
|
}
|
|
1394
1394
|
hostConnected() {}
|
|
1395
|
-
},
|
|
1395
|
+
}, U = class extends e {
|
|
1396
1396
|
constructor(...e) {
|
|
1397
|
-
super(...e), this.loadingMore = !1, this._keyboard = new
|
|
1397
|
+
super(...e), this.loadingMore = !1, this._keyboard = new xt(this);
|
|
1398
1398
|
}
|
|
1399
1399
|
createRenderRoot() {
|
|
1400
1400
|
return this;
|
|
1401
1401
|
}
|
|
1402
1402
|
static {
|
|
1403
|
-
this.styles = [h,
|
|
1403
|
+
this.styles = [h, bt];
|
|
1404
1404
|
}
|
|
1405
1405
|
render() {
|
|
1406
1406
|
return this.errorMessage ? this._errorState(this.errorMessage) : this.results === void 0 ? n`${r}` : this.results.length === 0 ? this._emptyState() : this._resultsList(this.results);
|
|
@@ -1408,10 +1408,10 @@ var vt = t`
|
|
|
1408
1408
|
_emptyState() {
|
|
1409
1409
|
return n`
|
|
1410
1410
|
<div class="vsn-search-results__empty" role="status" aria-live="polite">
|
|
1411
|
-
<div class="vsn-search-results__empty-title">${
|
|
1412
|
-
<div class="vsn-search-results__empty-message">${
|
|
1413
|
-
<div class="vsn-search-results__empty-hint">${
|
|
1414
|
-
<div class="vsn-search-results__empty-support">${
|
|
1411
|
+
<div class="vsn-search-results__empty-title">${b("No results found")}</div>
|
|
1412
|
+
<div class="vsn-search-results__empty-message">${b("We couldn't find any matches.")}</div>
|
|
1413
|
+
<div class="vsn-search-results__empty-hint">${b("Try different keywords or check spelling.")}</div>
|
|
1414
|
+
<div class="vsn-search-results__empty-support">${b("Need help? Contact support.")}</div>
|
|
1415
1415
|
</div>
|
|
1416
1416
|
`;
|
|
1417
1417
|
}
|
|
@@ -1427,7 +1427,7 @@ var vt = t`
|
|
|
1427
1427
|
return n`
|
|
1428
1428
|
<div class="ga-side-navigation__body h-full" @keydown=${this._keyboard.onResultsKeydown}>
|
|
1429
1429
|
<div class="ga-side-navigation__search-results-title">
|
|
1430
|
-
${
|
|
1430
|
+
${b(t === 1 ? y`${t} result` : y`${t} results`)}
|
|
1431
1431
|
</div>
|
|
1432
1432
|
${e.map((e) => this._resultRow(e))}
|
|
1433
1433
|
${u(this.nextCursor, () => n`
|
|
@@ -1436,7 +1436,7 @@ var vt = t`
|
|
|
1436
1436
|
class="vsn-search-results__load-more"
|
|
1437
1437
|
?disabled=${this.loadingMore}
|
|
1438
1438
|
@click=${this._onLoadMore}>
|
|
1439
|
-
${
|
|
1439
|
+
${Ve(30)}
|
|
1440
1440
|
</button>
|
|
1441
1441
|
`)}
|
|
1442
1442
|
</div>
|
|
@@ -1471,10 +1471,10 @@ var vt = t`
|
|
|
1471
1471
|
}));
|
|
1472
1472
|
}
|
|
1473
1473
|
};
|
|
1474
|
-
|
|
1474
|
+
P([s({ attribute: !1 })], U.prototype, "results", void 0), P([s()], U.prototype, "errorMessage", void 0), P([s()], U.prototype, "nextCursor", void 0), P([s({ type: Boolean })], U.prototype, "loadingMore", void 0), U = P([x(), o("vsn-search-results")], U);
|
|
1475
1475
|
//#endregion
|
|
1476
1476
|
//#region src/components/vsn-side-bar/vsn-template/vsn-template.css.ts
|
|
1477
|
-
var
|
|
1477
|
+
var St = t`
|
|
1478
1478
|
.vsn-template__row {
|
|
1479
1479
|
display: flex;
|
|
1480
1480
|
flex-direction: column;
|
|
@@ -1489,26 +1489,26 @@ var bt = t`
|
|
|
1489
1489
|
background: var(--ga-color-miscellaneous-skeleton-element, #F2F3F5);
|
|
1490
1490
|
flex-shrink: 0;
|
|
1491
1491
|
}
|
|
1492
|
-
`,
|
|
1492
|
+
`, Ct = [
|
|
1493
1493
|
160,
|
|
1494
1494
|
96,
|
|
1495
1495
|
144,
|
|
1496
1496
|
192,
|
|
1497
1497
|
160
|
|
1498
|
-
],
|
|
1498
|
+
], wt = class extends e {
|
|
1499
1499
|
createRenderRoot() {
|
|
1500
1500
|
return this;
|
|
1501
1501
|
}
|
|
1502
1502
|
static {
|
|
1503
|
-
this.styles = [h,
|
|
1503
|
+
this.styles = [h, St];
|
|
1504
1504
|
}
|
|
1505
1505
|
render() {
|
|
1506
1506
|
return n`
|
|
1507
1507
|
<div class="ga-side-navigation__body h-full"
|
|
1508
1508
|
role="status"
|
|
1509
1509
|
aria-busy="true"
|
|
1510
|
-
aria-label=${
|
|
1511
|
-
${
|
|
1510
|
+
aria-label=${b("Loading results")}>
|
|
1511
|
+
${Ct.map((e) => n`
|
|
1512
1512
|
<div class="vsn-template__row">
|
|
1513
1513
|
<div class="vsn-template__bar" style="width: ${e}px"></div>
|
|
1514
1514
|
</div>
|
|
@@ -1517,10 +1517,10 @@ var bt = t`
|
|
|
1517
1517
|
`;
|
|
1518
1518
|
}
|
|
1519
1519
|
};
|
|
1520
|
-
|
|
1520
|
+
wt = P([x(), o("vsn-template")], wt);
|
|
1521
1521
|
//#endregion
|
|
1522
1522
|
//#region src/components/vsn-side-bar/vsn-error-state/vsn-error-state.css.ts
|
|
1523
|
-
var
|
|
1523
|
+
var Tt = t`
|
|
1524
1524
|
.vsn-error-state {
|
|
1525
1525
|
display: flex;
|
|
1526
1526
|
flex-direction: column;
|
|
@@ -1559,29 +1559,29 @@ var Ct = t`
|
|
|
1559
1559
|
font-weight: 400;
|
|
1560
1560
|
color: var(--ga-color-text-on-disabled);
|
|
1561
1561
|
}
|
|
1562
|
-
`,
|
|
1562
|
+
`, Et = class extends e {
|
|
1563
1563
|
createRenderRoot() {
|
|
1564
1564
|
return this;
|
|
1565
1565
|
}
|
|
1566
1566
|
static {
|
|
1567
|
-
this.styles = [h,
|
|
1567
|
+
this.styles = [h, Tt];
|
|
1568
1568
|
}
|
|
1569
1569
|
render() {
|
|
1570
1570
|
return n`
|
|
1571
1571
|
<div class="vsn-error-state" role="alert" aria-live="assertive">
|
|
1572
|
-
<div class="vsn-error-state__icon">${
|
|
1573
|
-
<div class="vsn-error-state__title">${
|
|
1574
|
-
<div class="vsn-error-state__message">${
|
|
1575
|
-
<div class="vsn-error-state__hint">${
|
|
1576
|
-
<div class="vsn-error-state__support">${
|
|
1572
|
+
<div class="vsn-error-state__icon">${M(st, 24)}</div>
|
|
1573
|
+
<div class="vsn-error-state__title">${b("Loading error")}</div>
|
|
1574
|
+
<div class="vsn-error-state__message">${b("We're unable to load the menu.")}</div>
|
|
1575
|
+
<div class="vsn-error-state__hint">${b("Please check your internet connection and try again.")}</div>
|
|
1576
|
+
<div class="vsn-error-state__support">${b("If the issue persists, reload the page or contact support.")}</div>
|
|
1577
1577
|
</div>
|
|
1578
1578
|
`;
|
|
1579
1579
|
}
|
|
1580
1580
|
};
|
|
1581
|
-
|
|
1581
|
+
Et = P([x(), o("vsn-error-state")], Et);
|
|
1582
1582
|
//#endregion
|
|
1583
1583
|
//#region src/components/vsn-side-bar/vsn-search-scopes/vsn-search-scopes.css.ts
|
|
1584
|
-
var
|
|
1584
|
+
var Dt = t`
|
|
1585
1585
|
@layer components {
|
|
1586
1586
|
vsn-search-scopes {
|
|
1587
1587
|
display: block;
|
|
@@ -1602,25 +1602,25 @@ var Tt = t`
|
|
|
1602
1602
|
text-overflow: ellipsis;
|
|
1603
1603
|
}
|
|
1604
1604
|
}
|
|
1605
|
-
`,
|
|
1605
|
+
`, W, G = class extends e {
|
|
1606
1606
|
static {
|
|
1607
|
-
|
|
1607
|
+
W = this;
|
|
1608
1608
|
}
|
|
1609
1609
|
constructor(...e) {
|
|
1610
|
-
super(...e), this.scopes = [], this.selectedScopeId = "", this._name = `vsn-search-scope-${++
|
|
1610
|
+
super(...e), this.scopes = [], this.selectedScopeId = "", this._name = `vsn-search-scope-${++W._counter}`;
|
|
1611
1611
|
}
|
|
1612
1612
|
createRenderRoot() {
|
|
1613
1613
|
return this;
|
|
1614
1614
|
}
|
|
1615
1615
|
static {
|
|
1616
|
-
this.styles = [h,
|
|
1616
|
+
this.styles = [h, Dt];
|
|
1617
1617
|
}
|
|
1618
1618
|
static {
|
|
1619
1619
|
this._counter = 0;
|
|
1620
1620
|
}
|
|
1621
1621
|
render() {
|
|
1622
1622
|
return this.scopes.length <= 1 ? n`` : n`
|
|
1623
|
-
<div class="ga-radio-group" role="radiogroup" aria-label=${
|
|
1623
|
+
<div class="ga-radio-group" role="radiogroup" aria-label=${b("Search scope")}>
|
|
1624
1624
|
${this.scopes.map((e) => this._renderScope(e))}
|
|
1625
1625
|
</div>
|
|
1626
1626
|
`;
|
|
@@ -1649,25 +1649,25 @@ var Tt = t`
|
|
|
1649
1649
|
}));
|
|
1650
1650
|
}
|
|
1651
1651
|
};
|
|
1652
|
-
|
|
1652
|
+
P([s({ attribute: !1 })], G.prototype, "scopes", void 0), P([s()], G.prototype, "selectedScopeId", void 0), G = W = P([x(), o("vsn-search-scopes")], G);
|
|
1653
1653
|
//#endregion
|
|
1654
1654
|
//#region src/shared/lang/locale-codes.ts
|
|
1655
|
-
var
|
|
1655
|
+
var Ot = "en", kt = [
|
|
1656
1656
|
"da",
|
|
1657
1657
|
"fi",
|
|
1658
1658
|
"nl",
|
|
1659
1659
|
"no",
|
|
1660
1660
|
"sv"
|
|
1661
|
-
],
|
|
1661
|
+
], At = /* @__PURE__ */ p({ templates: () => jt }), jt = {
|
|
1662
1662
|
s09a45db408570a7a: "Min profil",
|
|
1663
1663
|
s119f9875b7d4cdfc: "Har du brug for hjælp? Kontakt support.",
|
|
1664
|
-
s1228605ee65ddefa:
|
|
1665
|
-
s2bb33291ef8ae3d4:
|
|
1664
|
+
s1228605ee65ddefa: y`${0} resultat`,
|
|
1665
|
+
s2bb33291ef8ae3d4: y`Indtast mindst ${0} tegn for at søge`,
|
|
1666
1666
|
s2be8f715fbd00dcb: "Vi fandt ingen matchende resultater.",
|
|
1667
1667
|
s301876182accccad: " › ",
|
|
1668
1668
|
s3112f1ca236c8a61: "Indlæsningsfejl",
|
|
1669
1669
|
s352719d86112de9a: "Hjælp",
|
|
1670
|
-
s387a4a41718122cb:
|
|
1670
|
+
s387a4a41718122cb: y`${0} resultater`,
|
|
1671
1671
|
s3fb7db4771812f0c: "Hvis problemet fortsætter, genindlæs siden eller kontakt support.",
|
|
1672
1672
|
s4b0c6b66b4efd7d8: "Vælg en tjeneste",
|
|
1673
1673
|
s5be3c6d61cd9182f: "Notifikationer",
|
|
@@ -1688,16 +1688,16 @@ var Dt = "en", Ot = [
|
|
|
1688
1688
|
sfbf31f663cef6cc2: "Prøv andre søgeord eller tjek stavningen.",
|
|
1689
1689
|
s7c510419ea376840: "VSN",
|
|
1690
1690
|
s38385cd359b17f7a: "Loading modules"
|
|
1691
|
-
},
|
|
1691
|
+
}, Mt = /* @__PURE__ */ p({ templates: () => Nt }), Nt = {
|
|
1692
1692
|
s09a45db408570a7a: "Oma profiili",
|
|
1693
1693
|
s119f9875b7d4cdfc: "Tarvitsetko apua? Ota yhteyttä tukeen.",
|
|
1694
|
-
s1228605ee65ddefa:
|
|
1695
|
-
s2bb33291ef8ae3d4:
|
|
1694
|
+
s1228605ee65ddefa: y`${0} tulos`,
|
|
1695
|
+
s2bb33291ef8ae3d4: y`Kirjoita vähintään ${0} merkkiä hakua varten`,
|
|
1696
1696
|
s2be8f715fbd00dcb: "Emme löytäneet osumia.",
|
|
1697
1697
|
s301876182accccad: " › ",
|
|
1698
1698
|
s3112f1ca236c8a61: "Latausvirhe",
|
|
1699
1699
|
s352719d86112de9a: "Ohje",
|
|
1700
|
-
s387a4a41718122cb:
|
|
1700
|
+
s387a4a41718122cb: y`${0} tulosta`,
|
|
1701
1701
|
s3fb7db4771812f0c: "Jos ongelma jatkuu, lataa sivu uudelleen tai ota yhteyttä tukeen.",
|
|
1702
1702
|
s4b0c6b66b4efd7d8: "Valitse palvelu",
|
|
1703
1703
|
s5be3c6d61cd9182f: "Ilmoitukset",
|
|
@@ -1718,16 +1718,16 @@ var Dt = "en", Ot = [
|
|
|
1718
1718
|
sfbf31f663cef6cc2: "Kokeile eri hakusanoja tai tarkista kirjoitusasu.",
|
|
1719
1719
|
s7c510419ea376840: "VSN",
|
|
1720
1720
|
s38385cd359b17f7a: "Loading modules"
|
|
1721
|
-
},
|
|
1721
|
+
}, Pt = /* @__PURE__ */ p({ templates: () => Ft }), Ft = {
|
|
1722
1722
|
s09a45db408570a7a: "Mijn profiel",
|
|
1723
1723
|
s119f9875b7d4cdfc: "Hulp nodig? Neem contact op met ondersteuning.",
|
|
1724
|
-
s1228605ee65ddefa:
|
|
1725
|
-
s2bb33291ef8ae3d4:
|
|
1724
|
+
s1228605ee65ddefa: y`${0} resultaat`,
|
|
1725
|
+
s2bb33291ef8ae3d4: y`Typ minimaal ${0} tekens om te zoeken`,
|
|
1726
1726
|
s2be8f715fbd00dcb: "We konden geen overeenkomsten vinden.",
|
|
1727
1727
|
s301876182accccad: " › ",
|
|
1728
1728
|
s3112f1ca236c8a61: "Laadingsfout",
|
|
1729
1729
|
s352719d86112de9a: "Hulp",
|
|
1730
|
-
s387a4a41718122cb:
|
|
1730
|
+
s387a4a41718122cb: y`${0} resultaten`,
|
|
1731
1731
|
s3fb7db4771812f0c: "Als het probleem aanhoudt, laad de pagina opnieuw of neem contact op met ondersteuning.",
|
|
1732
1732
|
s4b0c6b66b4efd7d8: "Kies een service",
|
|
1733
1733
|
s5be3c6d61cd9182f: "Meldingen",
|
|
@@ -1748,16 +1748,16 @@ var Dt = "en", Ot = [
|
|
|
1748
1748
|
sfbf31f663cef6cc2: "Probeer andere zoekwoorden of controleer de spelling.",
|
|
1749
1749
|
s7c510419ea376840: "VSN",
|
|
1750
1750
|
s38385cd359b17f7a: "Loading modules"
|
|
1751
|
-
},
|
|
1751
|
+
}, It = /* @__PURE__ */ p({ templates: () => Lt }), Lt = {
|
|
1752
1752
|
s09a45db408570a7a: "Min profil",
|
|
1753
1753
|
s119f9875b7d4cdfc: "Trenger du hjelp? Kontakt støtte.",
|
|
1754
|
-
s1228605ee65ddefa:
|
|
1755
|
-
s2bb33291ef8ae3d4:
|
|
1754
|
+
s1228605ee65ddefa: y`${0} resultat`,
|
|
1755
|
+
s2bb33291ef8ae3d4: y`Skriv inn minst ${0} tegn for å søke`,
|
|
1756
1756
|
s2be8f715fbd00dcb: "Vi fant ingen treff.",
|
|
1757
1757
|
s301876182accccad: " › ",
|
|
1758
1758
|
s3112f1ca236c8a61: "Lastingsfeil",
|
|
1759
1759
|
s352719d86112de9a: "Hjelp",
|
|
1760
|
-
s387a4a41718122cb:
|
|
1760
|
+
s387a4a41718122cb: y`${0} resultater`,
|
|
1761
1761
|
s3fb7db4771812f0c: "Hvis problemet vedvarer, last inn siden på nytt eller kontakt støtte.",
|
|
1762
1762
|
s4b0c6b66b4efd7d8: "Velg en tjeneste",
|
|
1763
1763
|
s5be3c6d61cd9182f: "Varsler",
|
|
@@ -1778,16 +1778,16 @@ var Dt = "en", Ot = [
|
|
|
1778
1778
|
sfbf31f663cef6cc2: "Prøv andre søkeord eller sjekk stavemåten.",
|
|
1779
1779
|
s7c510419ea376840: "VSN",
|
|
1780
1780
|
s38385cd359b17f7a: "Loading modules"
|
|
1781
|
-
},
|
|
1781
|
+
}, Rt = /* @__PURE__ */ p({ templates: () => zt }), zt = {
|
|
1782
1782
|
s09a45db408570a7a: "Min profil",
|
|
1783
1783
|
s119f9875b7d4cdfc: "Behöver du hjälp? Kontakta support.",
|
|
1784
|
-
s1228605ee65ddefa:
|
|
1785
|
-
s2bb33291ef8ae3d4:
|
|
1784
|
+
s1228605ee65ddefa: y`${0} resultat`,
|
|
1785
|
+
s2bb33291ef8ae3d4: y`Skriv minst ${0} tecken för att söka`,
|
|
1786
1786
|
s2be8f715fbd00dcb: "Vi hittade inga matchningar.",
|
|
1787
1787
|
s301876182accccad: " › ",
|
|
1788
1788
|
s3112f1ca236c8a61: "Laddningsfel",
|
|
1789
1789
|
s352719d86112de9a: "Hjälp",
|
|
1790
|
-
s387a4a41718122cb:
|
|
1790
|
+
s387a4a41718122cb: y`${0} resultat`,
|
|
1791
1791
|
s3fb7db4771812f0c: "Om problemet kvarstår, ladda om sidan eller kontakta support.",
|
|
1792
1792
|
s4b0c6b66b4efd7d8: "Välj en tjänst",
|
|
1793
1793
|
s5be3c6d61cd9182f: "Aviseringar",
|
|
@@ -1808,17 +1808,17 @@ var Dt = "en", Ot = [
|
|
|
1808
1808
|
sfbf31f663cef6cc2: "Prova andra sökord eller kontrollera stavningen.",
|
|
1809
1809
|
s7c510419ea376840: "VSN",
|
|
1810
1810
|
s38385cd359b17f7a: "Loading modules"
|
|
1811
|
-
},
|
|
1812
|
-
da:
|
|
1813
|
-
fi:
|
|
1814
|
-
nl:
|
|
1815
|
-
no:
|
|
1816
|
-
sv:
|
|
1817
|
-
}, { getLocale:
|
|
1818
|
-
sourceLocale:
|
|
1819
|
-
targetLocales:
|
|
1820
|
-
loadLocale: (e) =>
|
|
1821
|
-
}),
|
|
1811
|
+
}, Bt = {
|
|
1812
|
+
da: At,
|
|
1813
|
+
fi: Mt,
|
|
1814
|
+
nl: Pt,
|
|
1815
|
+
no: It,
|
|
1816
|
+
sv: Rt
|
|
1817
|
+
}, { getLocale: Vt, setLocale: Ht } = je({
|
|
1818
|
+
sourceLocale: Ot,
|
|
1819
|
+
targetLocales: kt,
|
|
1820
|
+
loadLocale: (e) => Bt[e] ? Promise.resolve(Bt[e]) : Promise.reject(/* @__PURE__ */ Error(`Unknown locale: ${e}`))
|
|
1821
|
+
}), Ut = t`
|
|
1822
1822
|
@layer components {
|
|
1823
1823
|
.vsn-switcher-anchor {
|
|
1824
1824
|
position: relative;
|
|
@@ -1832,7 +1832,7 @@ var Dt = "en", Ot = [
|
|
|
1832
1832
|
z-index: 10;
|
|
1833
1833
|
}
|
|
1834
1834
|
}
|
|
1835
|
-
`,
|
|
1835
|
+
`, Wt = t`
|
|
1836
1836
|
.vsn-spinner {
|
|
1837
1837
|
display: inline-block;
|
|
1838
1838
|
flex-shrink: 0;
|
|
@@ -1852,7 +1852,7 @@ var Dt = "en", Ot = [
|
|
|
1852
1852
|
@keyframes vsn-spin {
|
|
1853
1853
|
to { transform: rotate(360deg); }
|
|
1854
1854
|
}
|
|
1855
|
-
`,
|
|
1855
|
+
`, Gt = class {
|
|
1856
1856
|
constructor(e, t, n) {
|
|
1857
1857
|
this._onHostClick = (e) => {
|
|
1858
1858
|
let t = this._host.renderRoot.querySelector(this._clickedSelector);
|
|
@@ -1865,14 +1865,14 @@ var Dt = "en", Ot = [
|
|
|
1865
1865
|
hostDisconnected() {
|
|
1866
1866
|
this._host.removeEventListener("click", this._onHostClick);
|
|
1867
1867
|
}
|
|
1868
|
-
},
|
|
1868
|
+
}, Kt = "button:not([disabled]), a[href], [tabindex]:not([tabindex=\"-1\"])", qt = class {
|
|
1869
1869
|
constructor(e) {
|
|
1870
1870
|
this.onKeydown = (e) => {
|
|
1871
|
-
if (e.defaultPrevented ||
|
|
1871
|
+
if (e.defaultPrevented || A(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
1872
1872
|
let t = this.host.renderRoot.querySelector("slot[name=\"nav-footer\"]");
|
|
1873
1873
|
if (!t) return;
|
|
1874
1874
|
let n = [];
|
|
1875
|
-
for (let e of t.assignedElements({ flatten: !0 })) e.matches(
|
|
1875
|
+
for (let e of t.assignedElements({ flatten: !0 })) e.matches(Kt) && n.push(e), n.push(...Array.from(e.querySelectorAll(Kt)));
|
|
1876
1876
|
if (n.length === 0) return;
|
|
1877
1877
|
let r = e.composedPath()[0];
|
|
1878
1878
|
if (!(r instanceof HTMLElement)) return;
|
|
@@ -1888,14 +1888,14 @@ var Dt = "en", Ot = [
|
|
|
1888
1888
|
static {
|
|
1889
1889
|
this.styles = [
|
|
1890
1890
|
h,
|
|
1891
|
-
Ht,
|
|
1892
|
-
ut,
|
|
1893
|
-
_t,
|
|
1894
|
-
vt,
|
|
1895
|
-
Tt,
|
|
1896
|
-
bt,
|
|
1897
|
-
Ct,
|
|
1898
1891
|
Ut,
|
|
1892
|
+
ft,
|
|
1893
|
+
yt,
|
|
1894
|
+
bt,
|
|
1895
|
+
Dt,
|
|
1896
|
+
St,
|
|
1897
|
+
Tt,
|
|
1898
|
+
Wt,
|
|
1899
1899
|
t`
|
|
1900
1900
|
:host {
|
|
1901
1901
|
position: absolute;
|
|
@@ -1910,7 +1910,7 @@ var Dt = "en", Ot = [
|
|
|
1910
1910
|
];
|
|
1911
1911
|
}
|
|
1912
1912
|
constructor() {
|
|
1913
|
-
super(), this.modules = [], this.modulesLoading = !1, this.lang = "en", this.error = !1, this.open = !1, this._searchQuery = "", this._searchLoading = !1, this._activeScopeId = "menu", this._searchLoadingMore = !1, this._navFooterKeyboard = new
|
|
1913
|
+
super(), this.modules = [], this.modulesLoading = !1, this.lang = "en", this.error = !1, this.open = !1, this._searchQuery = "", this._searchLoading = !1, this._activeScopeId = "menu", this._searchLoadingMore = !1, this._moduleSwitcherMaxHeight = 0, this._navFooterKeyboard = new qt(this), this._onNavigate = (e) => {
|
|
1914
1914
|
this._searchQuery = "", this._searchResults = void 0, this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
|
|
1915
1915
|
bubbles: !0,
|
|
1916
1916
|
composed: !0
|
|
@@ -1927,13 +1927,18 @@ var Dt = "en", Ot = [
|
|
|
1927
1927
|
}));
|
|
1928
1928
|
}, this._onScopeChanged = (e) => {
|
|
1929
1929
|
this._activeScopeId = e.detail.scopeId, this._runSearch(this._searchQuery, this._activeScopeId);
|
|
1930
|
-
}, new
|
|
1930
|
+
}, new Gt(this, ".ga-side-navigation", () => this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
|
|
1931
1931
|
bubbles: !0,
|
|
1932
1932
|
composed: !0
|
|
1933
|
-
})))
|
|
1933
|
+
}))), this._resizeObserver = new ResizeObserver((e) => {
|
|
1934
|
+
this._observeMenuSize(e);
|
|
1935
|
+
}), this._resizeObserver.observe(this);
|
|
1936
|
+
}
|
|
1937
|
+
_observeMenuSize(e) {
|
|
1938
|
+
this._moduleSwitcherMaxHeight = Math.max(0, e[0].contentRect.height - 134);
|
|
1934
1939
|
}
|
|
1935
1940
|
willUpdate(e) {
|
|
1936
|
-
e.has("lang") &&
|
|
1941
|
+
e.has("lang") && Ht(this.lang).catch(console.error), e.has("open") && e.get("open") && !this.open && (this._searchQuery = "", this._activeScopeId = "menu", this._clearSearchState(), this.renderRoot.querySelector("vsn-header")?.reset(), this.renderRoot.querySelector("vsn-footer")?.reset());
|
|
1937
1942
|
}
|
|
1938
1943
|
async focusSearch() {
|
|
1939
1944
|
await this.updateComplete, this.menu?.search?.enabled && this.renderRoot.querySelector("vsn-search")?.focus();
|
|
@@ -1975,7 +1980,7 @@ var Dt = "en", Ot = [
|
|
|
1975
1980
|
this._searchResults = t.results, this._searchNextCursor = t.nextCursor, this._searchLoading = !1, this._searchAbort = void 0;
|
|
1976
1981
|
} catch (e) {
|
|
1977
1982
|
if (this._searchAbort !== r) return;
|
|
1978
|
-
e instanceof
|
|
1983
|
+
e instanceof de ? (this._searchError = e.message, this._searchResults = void 0) : console.error("Search function rejected with non-SearchError:", e), this._searchLoading = !1, this._searchAbort = void 0;
|
|
1979
1984
|
}
|
|
1980
1985
|
}
|
|
1981
1986
|
async _loadMore() {
|
|
@@ -1995,7 +2000,7 @@ var Dt = "en", Ot = [
|
|
|
1995
2000
|
this._searchResults = [...this._searchResults ?? [], ...n.results], this._searchNextCursor = n.nextCursor, this._searchLoadingMore = !1, this._searchAbort = void 0;
|
|
1996
2001
|
} catch (e) {
|
|
1997
2002
|
if (this._searchAbort !== t) return;
|
|
1998
|
-
e instanceof
|
|
2003
|
+
e instanceof de ? (this._searchError = e.message, this._searchResults = void 0, this._searchNextCursor = void 0) : console.error("Load-more function rejected with non-SearchError:", e), this._searchLoadingMore = !1, this._searchAbort = void 0;
|
|
1999
2004
|
}
|
|
2000
2005
|
}
|
|
2001
2006
|
_filterTree(e) {
|
|
@@ -2067,6 +2072,7 @@ var Dt = "en", Ot = [
|
|
|
2067
2072
|
.search=${e}
|
|
2068
2073
|
.searchValue=${this._searchQuery}
|
|
2069
2074
|
.searchLoading=${this._searchLoading}
|
|
2075
|
+
.moduleSwitcherMaxHeight=${this._moduleSwitcherMaxHeight}
|
|
2070
2076
|
@vsn-search-input=${this._onSearchInput}
|
|
2071
2077
|
@vsn-search-submit=${this._onSearchSubmit}
|
|
2072
2078
|
@vsn-search-cleared=${this._onSearchCleared}
|
|
@@ -2080,7 +2086,7 @@ var Dt = "en", Ot = [
|
|
|
2080
2086
|
<vsn-search-scopes
|
|
2081
2087
|
.scopes=${[{
|
|
2082
2088
|
id: "menu",
|
|
2083
|
-
label:
|
|
2089
|
+
label: Be()
|
|
2084
2090
|
}, ...e.map((e) => ({
|
|
2085
2091
|
id: e.id,
|
|
2086
2092
|
label: e.label
|
|
@@ -2104,10 +2110,10 @@ var Dt = "en", Ot = [
|
|
|
2104
2110
|
`;
|
|
2105
2111
|
}
|
|
2106
2112
|
};
|
|
2107
|
-
|
|
2113
|
+
P([s({ attribute: !1 })], K.prototype, "modules", void 0), P([s()], K.prototype, "activeModuleId", void 0), P([s()], K.prototype, "activeModuleLabel", void 0), P([s({ type: Boolean })], K.prototype, "modulesLoading", void 0), P([s()], K.prototype, "lang", void 0), P([s({ attribute: !1 })], K.prototype, "auth", void 0), P([s({ type: Boolean })], K.prototype, "error", void 0), P([s({
|
|
2108
2114
|
type: Boolean,
|
|
2109
2115
|
reflect: !0
|
|
2110
|
-
})], K.prototype, "open", void 0),
|
|
2116
|
+
})], K.prototype, "open", void 0), P([s({ attribute: !1 })], K.prototype, "menu", void 0), P([l()], K.prototype, "_searchQuery", void 0), P([l()], K.prototype, "_searchResults", void 0), P([l()], K.prototype, "_searchLoading", void 0), P([l()], K.prototype, "_activeScopeId", void 0), P([l()], K.prototype, "_searchError", void 0), P([l()], K.prototype, "_searchNextCursor", void 0), P([l()], K.prototype, "_searchLoadingMore", void 0), P([l()], K.prototype, "_moduleSwitcherMaxHeight", void 0), K = P([o("vsn-side-bar")], K);
|
|
2111
2117
|
//#endregion
|
|
2112
2118
|
//#region src/components/vsn-top-bar/vsn-breadcrumb-menu-item.ts
|
|
2113
2119
|
var q, J = class extends e {
|
|
@@ -2139,7 +2145,7 @@ var q, J = class extends e {
|
|
|
2139
2145
|
e.preventDefault(), e.stopPropagation(), this._isExpanded = !this._isExpanded;
|
|
2140
2146
|
return;
|
|
2141
2147
|
}
|
|
2142
|
-
if (!this.tree || e.button !== 0 ||
|
|
2148
|
+
if (!this.tree || e.button !== 0 || A(e)) return;
|
|
2143
2149
|
e.preventDefault(), e.stopPropagation();
|
|
2144
2150
|
let t = [...this.ancestorPath, this.tree];
|
|
2145
2151
|
this.dispatchEvent(new CustomEvent("vsn-breadcrumb-menu-leaf-select", {
|
|
@@ -2173,7 +2179,7 @@ var q, J = class extends e {
|
|
|
2173
2179
|
<div class="ga-tooltip ga-tooltip--right-start" style="white-space: nowrap">${e}</div>
|
|
2174
2180
|
</div>
|
|
2175
2181
|
<span class="ga-side-navigation__item-icon">
|
|
2176
|
-
${this._isParent() ? this._isExpanded ? N
|
|
2182
|
+
${this._isParent() ? this._isExpanded ? M(N, 16) : M(ct, 16) : ""}
|
|
2177
2183
|
</span>
|
|
2178
2184
|
<div class="ga-side-navigation__item-content">
|
|
2179
2185
|
<div class="ga-side-navigation__item-label">${e}</div>
|
|
@@ -2197,10 +2203,10 @@ var q, J = class extends e {
|
|
|
2197
2203
|
if (this.tree && _(this.tree)) return this.tree.items.length > 0;
|
|
2198
2204
|
}
|
|
2199
2205
|
};
|
|
2200
|
-
|
|
2206
|
+
P([s({ attribute: !1 })], J.prototype, "tree", void 0), P([s({ type: Number })], J.prototype, "level", void 0), P([s({ type: Array })], J.prototype, "ancestorPath", void 0), P([l()], J.prototype, "_isExpanded", void 0), P([l()], J.prototype, "_showTooltip", void 0), P([l()], J.prototype, "_tooltipPos", void 0), P([c(".ga-side-navigation__item-label")], J.prototype, "_labelEl", void 0), J = q = P([o("vsn-breadcrumb-menu-item")], J);
|
|
2201
2207
|
//#endregion
|
|
2202
2208
|
//#region src/components/vsn-top-bar/vsn-breadcrumb-menu.ts
|
|
2203
|
-
var
|
|
2209
|
+
var Y = class extends e {
|
|
2204
2210
|
static {
|
|
2205
2211
|
this.styles = h;
|
|
2206
2212
|
}
|
|
@@ -2220,10 +2226,10 @@ var qt = class extends e {
|
|
|
2220
2226
|
`;
|
|
2221
2227
|
}
|
|
2222
2228
|
};
|
|
2223
|
-
|
|
2229
|
+
P([s({ attribute: !1 })], Y.prototype, "treeList", void 0), Y = P([o("vsn-breadcrumb-menu")], Y);
|
|
2224
2230
|
//#endregion
|
|
2225
2231
|
//#region src/components/vsn-top-bar/vsn-breadcrumbs.ts
|
|
2226
|
-
var
|
|
2232
|
+
var X = class extends e {
|
|
2227
2233
|
constructor(...e) {
|
|
2228
2234
|
super(...e), this.modules = [], this._openPopoverId = null, this._displayMode = "full", this._overflowCount = 0, this._tooltip = null, this._mqDesktop = window.matchMedia("(min-width: 1440px)"), this._mqTablet = window.matchMedia("(min-width: 768px) and (max-width: 1439px)"), this._ro = null, this._lastContainerWidth = 0, this._mounted = !1, this._handleMediaChange = () => {
|
|
2229
2235
|
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);
|
|
@@ -2530,7 +2536,7 @@ var Y = class extends e {
|
|
|
2530
2536
|
}
|
|
2531
2537
|
render() {
|
|
2532
2538
|
return n`
|
|
2533
|
-
<nav aria-label=${
|
|
2539
|
+
<nav aria-label=${b("Breadcrumb")}>
|
|
2534
2540
|
<div class="ga-breadcrumb">
|
|
2535
2541
|
${this._displayMode === "full" ? this._renderFullBreadcrumbs() : this._displayMode === "overflow" ? this._renderOverflowBreadcrumbs() : this._renderMobileBreadcrumbs()}
|
|
2536
2542
|
</div>
|
|
@@ -2543,7 +2549,7 @@ var Y = class extends e {
|
|
|
2543
2549
|
`;
|
|
2544
2550
|
}
|
|
2545
2551
|
};
|
|
2546
|
-
|
|
2552
|
+
P([s({ attribute: !1 })], X.prototype, "tree", void 0), P([s({ type: Array })], X.prototype, "modules", void 0), P([s()], X.prototype, "activeModuleId", void 0), P([l()], X.prototype, "_openPopoverId", void 0), P([l()], X.prototype, "_displayMode", void 0), P([l()], X.prototype, "_overflowCount", void 0), P([l()], X.prototype, "_tooltip", void 0), X = P([x(), o("vsn-breadcrumbs")], X);
|
|
2547
2553
|
//#endregion
|
|
2548
2554
|
//#region src/components/vsn-top-bar/vsn-ai-assistant.ts
|
|
2549
2555
|
var Jt = class extends e {
|
|
@@ -2562,16 +2568,16 @@ var Jt = class extends e {
|
|
|
2562
2568
|
}
|
|
2563
2569
|
render() {
|
|
2564
2570
|
return n`
|
|
2565
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2566
|
-
<span class="ga-icon">${
|
|
2571
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${b("Open AI assistant")} @click=${this._handleClick}>
|
|
2572
|
+
<span class="ga-icon">${M(Je)}</span>
|
|
2567
2573
|
</button>
|
|
2568
2574
|
`;
|
|
2569
2575
|
}
|
|
2570
2576
|
};
|
|
2571
|
-
Jt =
|
|
2577
|
+
Jt = P([x(), o("vsn-ai-assistant")], Jt);
|
|
2572
2578
|
//#endregion
|
|
2573
2579
|
//#region src/components/vsn-top-bar/vsn-feedback.ts
|
|
2574
|
-
var
|
|
2580
|
+
var Z = class extends e {
|
|
2575
2581
|
constructor(...e) {
|
|
2576
2582
|
super(...e), this._compact = !1, this.feedback = null, this._mqMobile = window.matchMedia("(max-width: 767px)"), this._handleMediaChange = () => {
|
|
2577
2583
|
this._compact = this._mqMobile.matches;
|
|
@@ -2589,7 +2595,7 @@ var X = class extends e {
|
|
|
2589
2595
|
updated(e) {
|
|
2590
2596
|
if (super.updated(e), e.has("feedback") && this.feedback?.workspaceId && !document.getElementById("survicate-sdk") && !window._sva) {
|
|
2591
2597
|
let e = document.createElement("script");
|
|
2592
|
-
e.id =
|
|
2598
|
+
e.id = Ue, e.src = Ge(this.feedback.workspaceId), e.async = !0, e.onload = () => this._applyVisitorTraits(), document.head.appendChild(e);
|
|
2593
2599
|
}
|
|
2594
2600
|
if (e.has("auth")) {
|
|
2595
2601
|
let t = e.get("auth");
|
|
@@ -2609,21 +2615,21 @@ var X = class extends e {
|
|
|
2609
2615
|
this.dispatchEvent(new CustomEvent("vsn-feedback", {
|
|
2610
2616
|
bubbles: !0,
|
|
2611
2617
|
composed: !0
|
|
2612
|
-
})), this.feedback?.surveyId && (this._applyVisitorTraits(), window._sva?.invokeEvent(
|
|
2618
|
+
})), this.feedback?.surveyId && (this._applyVisitorTraits(), window._sva?.invokeEvent(We));
|
|
2613
2619
|
}
|
|
2614
2620
|
render() {
|
|
2615
2621
|
return this._compact ? n`
|
|
2616
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2617
|
-
<span class="ga-icon">${
|
|
2622
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${b("Send feedback")} @click=${this._handleClick}>
|
|
2623
|
+
<span class="ga-icon">${M(Ze)}</span>
|
|
2618
2624
|
</button>
|
|
2619
2625
|
` : n`
|
|
2620
|
-
<button type="button" class="ga-button ga-button--secondary" aria-label=${
|
|
2621
|
-
${
|
|
2626
|
+
<button type="button" class="ga-button ga-button--secondary" aria-label=${b("Send feedback")} @click=${this._handleClick}>
|
|
2627
|
+
${b("Feedback")}
|
|
2622
2628
|
</button>
|
|
2623
2629
|
`;
|
|
2624
2630
|
}
|
|
2625
2631
|
};
|
|
2626
|
-
|
|
2632
|
+
P([l()], Z.prototype, "_compact", void 0), P([s({ attribute: !1 })], Z.prototype, "feedback", void 0), P([s({ attribute: !1 })], Z.prototype, "auth", void 0), Z = P([x(), o("vsn-feedback")], Z);
|
|
2627
2633
|
//#endregion
|
|
2628
2634
|
//#region src/components/vsn-top-bar/vsn-home.ts
|
|
2629
2635
|
var Yt = class extends e {
|
|
@@ -2637,7 +2643,7 @@ var Yt = class extends e {
|
|
|
2637
2643
|
e.preventDefault(), this.landingPageUrl && this.dispatchEvent(new CustomEvent("vsn-navigate", {
|
|
2638
2644
|
detail: {
|
|
2639
2645
|
id: "home",
|
|
2640
|
-
label:
|
|
2646
|
+
label: b("Home"),
|
|
2641
2647
|
url: this.landingPageUrl
|
|
2642
2648
|
},
|
|
2643
2649
|
bubbles: !0,
|
|
@@ -2646,29 +2652,18 @@ var Yt = class extends e {
|
|
|
2646
2652
|
}
|
|
2647
2653
|
render() {
|
|
2648
2654
|
return this.landingPageUrl ? n`
|
|
2649
|
-
<a href=${this.landingPageUrl} class="ga-button ga-button--ghost ga-button--icon-only" aria-label=${
|
|
2650
|
-
<span class="ga-icon">${
|
|
2655
|
+
<a href=${this.landingPageUrl} class="ga-button ga-button--ghost ga-button--icon-only" aria-label=${b("Home")} @click=${this._handleClick}>
|
|
2656
|
+
<span class="ga-icon">${M(Qe)}</span>
|
|
2651
2657
|
</a>
|
|
2652
2658
|
` : r;
|
|
2653
2659
|
}
|
|
2654
2660
|
};
|
|
2655
|
-
|
|
2661
|
+
P([s({ attribute: "landing-page-url" })], Yt.prototype, "landingPageUrl", void 0), Yt = P([x(), o("vsn-home")], Yt);
|
|
2656
2662
|
//#endregion
|
|
2657
2663
|
//#region src/components/vsn-top-bar/vsn-menu-toggle.ts
|
|
2658
2664
|
var Xt = class extends e {
|
|
2659
|
-
constructor(...e) {
|
|
2660
|
-
super(...e), this._tooltip = null, this._onMouseEnter = (e) => {
|
|
2661
|
-
let t = e.currentTarget.getBoundingClientRect();
|
|
2662
|
-
this._tooltip = {
|
|
2663
|
-
x: t.left,
|
|
2664
|
-
y: t.bottom + 4
|
|
2665
|
-
};
|
|
2666
|
-
}, this._onMouseLeave = () => {
|
|
2667
|
-
this._tooltip = null;
|
|
2668
|
-
};
|
|
2669
|
-
}
|
|
2670
2665
|
static {
|
|
2671
|
-
this.styles = h;
|
|
2666
|
+
this.styles = [h];
|
|
2672
2667
|
}
|
|
2673
2668
|
createRenderRoot() {
|
|
2674
2669
|
return this;
|
|
@@ -2677,28 +2672,39 @@ var Xt = class extends e {
|
|
|
2677
2672
|
this.querySelector("button")?.focus(e);
|
|
2678
2673
|
}
|
|
2679
2674
|
_handleClick() {
|
|
2680
|
-
this.
|
|
2675
|
+
this._tooltipElement.hidePopover?.(), this.dispatchEvent(new CustomEvent("toggle-side-bar", {
|
|
2681
2676
|
bubbles: !0,
|
|
2682
2677
|
composed: !0
|
|
2683
2678
|
}));
|
|
2684
2679
|
}
|
|
2680
|
+
_onActivate(e) {
|
|
2681
|
+
let t = e.currentTarget.getBoundingClientRect();
|
|
2682
|
+
this._tooltipElement.style.left = `${t.left}px`, this._tooltipElement.style.top = `${t.bottom + 4}px`, this._tooltipElement.showPopover?.();
|
|
2683
|
+
}
|
|
2684
|
+
_onDeactivate() {
|
|
2685
|
+
this._tooltipElement.hidePopover?.();
|
|
2686
|
+
}
|
|
2685
2687
|
render() {
|
|
2686
2688
|
return n`
|
|
2687
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2688
|
-
|
|
2689
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${b("Open menu")}
|
|
2690
|
+
aria-describedby="vsn-menu-toggle-tooltip"
|
|
2691
|
+
@click=${this._handleClick}
|
|
2692
|
+
@mouseenter=${this._onActivate}
|
|
2693
|
+
@mouseleave=${this._onDeactivate}>
|
|
2694
|
+
<span class="ga-icon">${M(qe)}</span>
|
|
2689
2695
|
</button>
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
</div>
|
|
2694
|
-
|
|
2696
|
+
<div id="vsn-menu-toggle-tooltip" role="tooltip"
|
|
2697
|
+
style="position: fixed; inset: unset; margin: 0; padding: 0; border: none; background: transparent; overflow: visible; pointer-events: none; z-index: 9999;"
|
|
2698
|
+
popover="manual">
|
|
2699
|
+
<div class="ga-tooltip ga-tooltip--bottom-start" style="white-space: nowrap">${Re()}</div>
|
|
2700
|
+
</div>
|
|
2695
2701
|
`;
|
|
2696
2702
|
}
|
|
2697
2703
|
};
|
|
2698
|
-
|
|
2704
|
+
P([c("div[role=\"tooltip\"]", !0)], Xt.prototype, "_tooltipElement", void 0), Xt = P([x(), o("vsn-menu-toggle")], Xt);
|
|
2699
2705
|
//#endregion
|
|
2700
2706
|
//#region src/components/vsn-top-bar/vsn-notifications.ts
|
|
2701
|
-
var
|
|
2707
|
+
var Zt = class extends e {
|
|
2702
2708
|
constructor(...e) {
|
|
2703
2709
|
super(...e), this.notificationActive = !1;
|
|
2704
2710
|
}
|
|
@@ -2716,22 +2722,22 @@ var Z = class extends e {
|
|
|
2716
2722
|
}));
|
|
2717
2723
|
}
|
|
2718
2724
|
render() {
|
|
2719
|
-
let e = this.notificationActive ?
|
|
2725
|
+
let e = this.notificationActive ? Xe : Ye;
|
|
2720
2726
|
return n`
|
|
2721
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2722
|
-
<span class="ga-icon">${
|
|
2727
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${b("Notifications")} @click=${this._handleClick}>
|
|
2728
|
+
<span class="ga-icon">${M(e)}</span>
|
|
2723
2729
|
</button>
|
|
2724
2730
|
`;
|
|
2725
2731
|
}
|
|
2726
2732
|
};
|
|
2727
|
-
|
|
2733
|
+
P([s({
|
|
2728
2734
|
type: Boolean,
|
|
2729
2735
|
attribute: "notification-active",
|
|
2730
2736
|
reflect: !0
|
|
2731
|
-
})],
|
|
2737
|
+
})], Zt.prototype, "notificationActive", void 0), Zt = P([x(), o("vsn-notifications")], Zt);
|
|
2732
2738
|
//#endregion
|
|
2733
2739
|
//#region src/components/vsn-top-bar/vsn-help.ts
|
|
2734
|
-
function
|
|
2740
|
+
function Qt(e) {
|
|
2735
2741
|
try {
|
|
2736
2742
|
let t = new URL(e);
|
|
2737
2743
|
return t.protocol === "https:" || t.protocol === "http:";
|
|
@@ -2739,7 +2745,7 @@ function Zt(e) {
|
|
|
2739
2745
|
return !1;
|
|
2740
2746
|
}
|
|
2741
2747
|
}
|
|
2742
|
-
var
|
|
2748
|
+
var $t = class extends e {
|
|
2743
2749
|
static {
|
|
2744
2750
|
this.styles = h;
|
|
2745
2751
|
}
|
|
@@ -2754,18 +2760,18 @@ var Qt = class extends e {
|
|
|
2754
2760
|
}));
|
|
2755
2761
|
}
|
|
2756
2762
|
render() {
|
|
2757
|
-
return this.helpUrl &&
|
|
2758
|
-
<a href=${this.helpUrl} rel="noopener noreferrer" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2759
|
-
<span class="ga-icon">${
|
|
2763
|
+
return this.helpUrl && Qt(this.helpUrl) ? n`
|
|
2764
|
+
<a href=${this.helpUrl} rel="noopener noreferrer" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${b("Help")}>
|
|
2765
|
+
<span class="ga-icon">${M($e)}</span>
|
|
2760
2766
|
</a>
|
|
2761
2767
|
` : n`
|
|
2762
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2763
|
-
<span class="ga-icon">${
|
|
2768
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${b("Help")} @click=${this._handleClick}>
|
|
2769
|
+
<span class="ga-icon">${M($e)}</span>
|
|
2764
2770
|
</button>
|
|
2765
2771
|
`;
|
|
2766
2772
|
}
|
|
2767
2773
|
};
|
|
2768
|
-
|
|
2774
|
+
P([s({ attribute: "help-url" })], $t.prototype, "helpUrl", void 0), $t = P([x(), o("vsn-help")], $t);
|
|
2769
2775
|
//#endregion
|
|
2770
2776
|
//#region src/components/vsn-top-bar/vsn-top-bar.ts
|
|
2771
2777
|
var Q = class extends e {
|
|
@@ -2773,7 +2779,7 @@ var Q = class extends e {
|
|
|
2773
2779
|
super(...e), this.modules = [], this.feedback = null, this.showHelp = !1, this.showNotification = !1, this.notificationActive = !1, this.lang = "en";
|
|
2774
2780
|
}
|
|
2775
2781
|
willUpdate(e) {
|
|
2776
|
-
e.has("lang") &&
|
|
2782
|
+
e.has("lang") && Ht(this.lang).catch(console.error);
|
|
2777
2783
|
}
|
|
2778
2784
|
focusMenuToggle() {
|
|
2779
2785
|
this.renderRoot.querySelector("vsn-menu-toggle")?.focus();
|
|
@@ -2875,28 +2881,28 @@ var Q = class extends e {
|
|
|
2875
2881
|
`;
|
|
2876
2882
|
}
|
|
2877
2883
|
};
|
|
2878
|
-
|
|
2884
|
+
P([s({ attribute: !1 })], Q.prototype, "tree", void 0), P([s({ type: Array })], Q.prototype, "modules", void 0), P([s()], Q.prototype, "activeModuleId", void 0), P([s({ attribute: "landing-page-url" })], Q.prototype, "landingPageUrl", void 0), P([s({ attribute: !1 })], Q.prototype, "feedback", void 0), P([s({ attribute: !1 })], Q.prototype, "auth", void 0), P([s({
|
|
2879
2885
|
type: Boolean,
|
|
2880
2886
|
attribute: "show-help"
|
|
2881
|
-
})], Q.prototype, "showHelp", void 0),
|
|
2887
|
+
})], Q.prototype, "showHelp", void 0), P([s({ attribute: "help-url" })], Q.prototype, "helpUrl", void 0), P([s({
|
|
2882
2888
|
type: Boolean,
|
|
2883
2889
|
attribute: "show-notification"
|
|
2884
|
-
})], Q.prototype, "showNotification", void 0),
|
|
2890
|
+
})], Q.prototype, "showNotification", void 0), P([s({
|
|
2885
2891
|
type: Boolean,
|
|
2886
2892
|
attribute: "notification-active"
|
|
2887
|
-
})], Q.prototype, "notificationActive", void 0),
|
|
2893
|
+
})], Q.prototype, "notificationActive", void 0), P([s()], Q.prototype, "lang", void 0), Q = P([o("vsn-top-bar")], Q);
|
|
2888
2894
|
//#endregion
|
|
2889
2895
|
//#region src/components/vsn-navigation.ts
|
|
2890
2896
|
var $ = class extends e {
|
|
2891
2897
|
constructor(...e) {
|
|
2892
2898
|
super(...e), this.lang = "en", this.showHelp = !1, this.feedback = null, this.showNotification = !1, this.notificationActive = !1, this.open = !1, this._currentItem = "", this._resolvedModules = [], this._modulesLoading = !1, this._modulesLoadToken = 0, this._restoreFocusToToggle = !1, this._onShortcut = (e) => {
|
|
2893
|
-
e.defaultPrevented || !
|
|
2899
|
+
e.defaultPrevented || !Fe(e) || e.key.toLowerCase() !== "k" || (e.preventDefault(), this.dispatchEvent(new CustomEvent("vsn-open", {
|
|
2894
2900
|
cancelable: !0,
|
|
2895
2901
|
bubbles: !0,
|
|
2896
2902
|
composed: !0
|
|
2897
2903
|
})) && this._openAndFocusSearch());
|
|
2898
2904
|
}, this._onEscape = (e) => {
|
|
2899
|
-
e.defaultPrevented || this.open &&
|
|
2905
|
+
e.defaultPrevented || this.open && j(e) && e.key === "Escape" && (e.preventDefault(), this.open = !1);
|
|
2900
2906
|
};
|
|
2901
2907
|
}
|
|
2902
2908
|
_resolveModules() {
|
|
@@ -3031,19 +3037,19 @@ var $ = class extends e {
|
|
|
3031
3037
|
`;
|
|
3032
3038
|
}
|
|
3033
3039
|
};
|
|
3034
|
-
|
|
3040
|
+
P([s()], $.prototype, "lang", void 0), P([s({ attribute: !1 })], $.prototype, "tree", void 0), P([s({ attribute: !1 })], $.prototype, "modules", void 0), P([s({ attribute: !1 })], $.prototype, "auth", void 0), P([s({ attribute: "landing-page-url" })], $.prototype, "landingPageUrl", void 0), P([s({
|
|
3035
3041
|
type: Boolean,
|
|
3036
3042
|
attribute: "show-help"
|
|
3037
|
-
})], $.prototype, "showHelp", void 0),
|
|
3043
|
+
})], $.prototype, "showHelp", void 0), P([s({ attribute: "help-url" })], $.prototype, "helpUrl", void 0), P([s({ attribute: !1 })], $.prototype, "feedback", void 0), P([s({
|
|
3038
3044
|
type: Boolean,
|
|
3039
3045
|
attribute: "show-notification"
|
|
3040
|
-
})], $.prototype, "showNotification", void 0),
|
|
3046
|
+
})], $.prototype, "showNotification", void 0), P([s({
|
|
3041
3047
|
type: Boolean,
|
|
3042
3048
|
attribute: "notification-active"
|
|
3043
|
-
})], $.prototype, "notificationActive", void 0),
|
|
3049
|
+
})], $.prototype, "notificationActive", void 0), P([s({
|
|
3044
3050
|
type: Boolean,
|
|
3045
3051
|
attribute: "open",
|
|
3046
3052
|
reflect: !0
|
|
3047
|
-
})], $.prototype, "open", void 0),
|
|
3053
|
+
})], $.prototype, "open", void 0), P([l()], $.prototype, "_currentItem", void 0), P([l()], $.prototype, "_resolvedModules", void 0), P([l()], $.prototype, "_modulesLoading", void 0), $ = P([o("vsn-navigation")], $);
|
|
3048
3054
|
//#endregion
|
|
3049
|
-
export {
|
|
3055
|
+
export { de as SearchError, $ as VSNNavigation, g as isTreeLeaf, _ as isTreeParent };
|