@visma-swno/vsn-navigation 1.4.0-beta.2 → 1.4.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.
|
@@ -99,40 +99,40 @@ function ve(e) {
|
|
|
99
99
|
function ye(e) {
|
|
100
100
|
window.dispatchEvent(new CustomEvent(ne, { detail: e }));
|
|
101
101
|
}
|
|
102
|
-
var x = "", be,
|
|
103
|
-
|
|
104
|
-
var
|
|
105
|
-
getLocale:
|
|
106
|
-
setLocale:
|
|
107
|
-
}),
|
|
108
|
-
if (e === (
|
|
109
|
-
if (!
|
|
110
|
-
if (!
|
|
111
|
-
|
|
112
|
-
let t =
|
|
113
|
-
return
|
|
102
|
+
var x = "", S, be, C, xe, Se, w = new ue();
|
|
103
|
+
w.resolve();
|
|
104
|
+
var T = 0, Ce = (e) => (se(((e, t) => _e(Se, e, t))), x = be = e.sourceLocale, C = new Set(e.targetLocales), C.add(e.sourceLocale), xe = e.loadLocale, {
|
|
105
|
+
getLocale: we,
|
|
106
|
+
setLocale: Te
|
|
107
|
+
}), we = () => x, Te = (e) => {
|
|
108
|
+
if (e === (S ?? x)) return w.promise;
|
|
109
|
+
if (!C || !xe) throw Error("Internal error");
|
|
110
|
+
if (!C.has(e)) throw Error("Invalid locale code");
|
|
111
|
+
T++;
|
|
112
|
+
let t = T;
|
|
113
|
+
return S = e, w.settled && (w = new ue()), ye({
|
|
114
114
|
status: "loading",
|
|
115
115
|
loadingLocale: e
|
|
116
|
-
}), (e ===
|
|
117
|
-
|
|
116
|
+
}), (e === be ? Promise.resolve({ templates: void 0 }) : xe(e)).then((n) => {
|
|
117
|
+
T === t && (x = e, S = void 0, Se = n.templates, ye({
|
|
118
118
|
status: "ready",
|
|
119
119
|
readyLocale: e
|
|
120
|
-
}),
|
|
120
|
+
}), w.resolve());
|
|
121
121
|
}, (n) => {
|
|
122
|
-
|
|
122
|
+
T === t && (ye({
|
|
123
123
|
status: "error",
|
|
124
124
|
errorLocale: e,
|
|
125
125
|
errorMessage: n.toString()
|
|
126
|
-
}),
|
|
127
|
-
}),
|
|
128
|
-
},
|
|
126
|
+
}), w.reject(n));
|
|
127
|
+
}), w.promise;
|
|
128
|
+
}, Ee = () => {
|
|
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
|
-
},
|
|
132
|
+
}, De = (e) => !e.shiftKey && !e.altKey && (Ee() ? e.metaKey && !e.ctrlKey : e.ctrlKey && !e.metaKey), E = (e) => e.shiftKey || e.altKey || e.ctrlKey || e.metaKey, D = (e) => !E(e), Oe = () => v("Choose a service"), ke = () => v("Search"), Ae = () => Ee() ? "Cmd+O" : "CTRL+O", je = (e) => v(_`Type at least ${e} characters to search`), Me = () => v("Menu items"), Ne = () => v("Load more"), Pe = () => v("VSN"), O = "menu", Fe = "survicate-sdk", Ie = "ui-components-feedback", Le = (e) => `https://survey.survicate.com/workspaces/${e}/web_surveys.js`;
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region src/shared/icons.ts
|
|
135
|
-
function
|
|
135
|
+
function k(e, t = 24, r) {
|
|
136
136
|
return n`<svg
|
|
137
137
|
xmlns="http://www.w3.org/2000/svg"
|
|
138
138
|
width="${t}"
|
|
@@ -147,23 +147,23 @@ function D(e, t = 24, r) {
|
|
|
147
147
|
class=${r ?? ""}
|
|
148
148
|
>${e}</svg>`;
|
|
149
149
|
}
|
|
150
|
-
var
|
|
150
|
+
var Re = i``, ze = i`
|
|
151
151
|
<path d="M4 5h16"/>
|
|
152
152
|
<path d="M4 12h16"/>
|
|
153
153
|
<path d="M4 19h16"/>
|
|
154
|
-
`,
|
|
154
|
+
`, Be = i`
|
|
155
155
|
<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
156
|
<path d="M20 2v4"/>
|
|
157
157
|
<path d="M22 4h-4"/>
|
|
158
158
|
<circle cx="4" cy="20" r="2"/>
|
|
159
|
-
`,
|
|
159
|
+
`, Ve = i`
|
|
160
160
|
<path d="M10.268 21a2 2 0 0 0 3.464 0"/>
|
|
161
161
|
<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
|
-
`,
|
|
162
|
+
`, He = i`
|
|
163
163
|
<path d="M10.268 21a2 2 0 0 0 3.464 0"/>
|
|
164
164
|
<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
165
|
<circle cx="18" cy="5" r="3"/>
|
|
166
|
-
`,
|
|
166
|
+
`, Ue = i`
|
|
167
167
|
<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
168
|
<path d="M7 10v12"/>
|
|
169
169
|
`;
|
|
@@ -174,14 +174,14 @@ i`
|
|
|
174
174
|
<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
175
|
<path d="M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16"/>
|
|
176
176
|
`;
|
|
177
|
-
var
|
|
177
|
+
var We = i`
|
|
178
178
|
<path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"/>
|
|
179
179
|
<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
|
-
`,
|
|
180
|
+
`, Ge = i`
|
|
181
181
|
<circle cx="12" cy="12" r="10"/>
|
|
182
182
|
<path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/>
|
|
183
183
|
<path d="M12 17h.01"/>
|
|
184
|
-
`,
|
|
184
|
+
`, Ke = i`
|
|
185
185
|
<circle cx="12" cy="8" r="5"/>
|
|
186
186
|
<path d="M20 21a8 8 0 0 0-16 0"/>
|
|
187
187
|
`;
|
|
@@ -192,11 +192,11 @@ i`
|
|
|
192
192
|
<path d="M12 17v5"/>
|
|
193
193
|
<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
194
|
`;
|
|
195
|
-
var
|
|
195
|
+
var qe = i`
|
|
196
196
|
<path d="m16 17 5-5-5-5"/>
|
|
197
197
|
<path d="M21 12H9"/>
|
|
198
198
|
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/>
|
|
199
|
-
`,
|
|
199
|
+
`, Je = i`
|
|
200
200
|
<path d="M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6"/>
|
|
201
201
|
<path d="m21 3-9 9"/>
|
|
202
202
|
<path d="M15 3h6v6"/>
|
|
@@ -205,17 +205,17 @@ i`
|
|
|
205
205
|
<circle cx="12" cy="12" r="10"/>
|
|
206
206
|
<circle cx="12" cy="12" r="1"/>
|
|
207
207
|
`;
|
|
208
|
-
var
|
|
208
|
+
var Ye = i`
|
|
209
209
|
<path d="m7 15 5 5 5-5"/>
|
|
210
210
|
<path d="m7 9 5-5 5 5"/>
|
|
211
|
-
`,
|
|
211
|
+
`, Xe = i`
|
|
212
212
|
<path d="m18 15-6-6-6 6"/>
|
|
213
|
-
`,
|
|
213
|
+
`, A = i`
|
|
214
214
|
<path d="m6 9 6 6 6-6"/>
|
|
215
|
-
`,
|
|
215
|
+
`, Ze = i`
|
|
216
216
|
<circle cx="11" cy="11" r="8"/>
|
|
217
217
|
<path d="m21 21-4.3-4.3"/>
|
|
218
|
-
`,
|
|
218
|
+
`, Qe = i`
|
|
219
219
|
<circle cx="12" cy="12" r="10"/>
|
|
220
220
|
<path d="m15 9-6 6"/>
|
|
221
221
|
<path d="m9 9 6 6"/>
|
|
@@ -225,7 +225,7 @@ i`
|
|
|
225
225
|
<line x1="12" x2="12" y1="8" y2="12"/>
|
|
226
226
|
<line x1="12" x2="12.01" y1="16" y2="16"/>
|
|
227
227
|
`;
|
|
228
|
-
var
|
|
228
|
+
var $e = i`
|
|
229
229
|
<path d="M12 16h.01"/>
|
|
230
230
|
<path d="M12 8v4"/>
|
|
231
231
|
<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 +236,9 @@ i`
|
|
|
236
236
|
`, i`
|
|
237
237
|
<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
238
|
`;
|
|
239
|
-
var
|
|
239
|
+
var et = i`
|
|
240
240
|
<path d="m9 18 6-6-6-6"/>
|
|
241
|
-
`,
|
|
241
|
+
`, tt = class extends Event {
|
|
242
242
|
constructor(e, t, n, r) {
|
|
243
243
|
super("context-request", {
|
|
244
244
|
bubbles: !0,
|
|
@@ -248,12 +248,12 @@ var tt = i`
|
|
|
248
248
|
};
|
|
249
249
|
//#endregion
|
|
250
250
|
//#region node_modules/@lit/context/lib/create-context.js
|
|
251
|
-
function
|
|
251
|
+
function nt(e) {
|
|
252
252
|
return e;
|
|
253
253
|
}
|
|
254
254
|
//#endregion
|
|
255
255
|
//#region node_modules/@lit/context/lib/controllers/context-consumer.js
|
|
256
|
-
var
|
|
256
|
+
var rt = class {
|
|
257
257
|
constructor(e, t, n, r) {
|
|
258
258
|
if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (e, t) => {
|
|
259
259
|
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 +270,9 @@ var it = class {
|
|
|
270
270
|
this.unsubscribe &&= (this.unsubscribe(), void 0);
|
|
271
271
|
}
|
|
272
272
|
dispatchRequest() {
|
|
273
|
-
this.host.dispatchEvent(new
|
|
273
|
+
this.host.dispatchEvent(new tt(this.context, this.host, this.t, this.subscribe));
|
|
274
274
|
}
|
|
275
|
-
},
|
|
275
|
+
}, it = class {
|
|
276
276
|
get value() {
|
|
277
277
|
return this.o;
|
|
278
278
|
}
|
|
@@ -302,14 +302,14 @@ var it = class {
|
|
|
302
302
|
clearCallbacks() {
|
|
303
303
|
this.subscriptions.clear();
|
|
304
304
|
}
|
|
305
|
-
},
|
|
305
|
+
}, at = class extends Event {
|
|
306
306
|
constructor(e, t) {
|
|
307
307
|
super("context-provider", {
|
|
308
308
|
bubbles: !0,
|
|
309
309
|
composed: !0
|
|
310
310
|
}), this.context = e, this.contextTarget = t;
|
|
311
311
|
}
|
|
312
|
-
},
|
|
312
|
+
}, ot = class extends it {
|
|
313
313
|
constructor(e, t, n) {
|
|
314
314
|
super(t.context === void 0 ? n : t.initialValue), this.onContextRequest = (e) => {
|
|
315
315
|
if (e.context !== this.context) return;
|
|
@@ -318,7 +318,7 @@ var it = class {
|
|
|
318
318
|
}, this.onProviderRequest = (e) => {
|
|
319
319
|
if (e.context !== this.context || (e.contextTarget ?? e.composedPath()[0]) === this.host) return;
|
|
320
320
|
let t = /* @__PURE__ */ new Set();
|
|
321
|
-
for (let [e, { consumerHost: n }] of this.subscriptions) t.has(e) || (t.add(e), n.dispatchEvent(new
|
|
321
|
+
for (let [e, { consumerHost: n }] of this.subscriptions) t.has(e) || (t.add(e), n.dispatchEvent(new tt(this.context, n, e, !0)));
|
|
322
322
|
e.stopPropagation();
|
|
323
323
|
}, this.host = e, t.context === void 0 ? this.context = t : this.context = t.context, this.attachListeners(), this.host.addController?.(this);
|
|
324
324
|
}
|
|
@@ -326,12 +326,12 @@ var it = class {
|
|
|
326
326
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
327
327
|
}
|
|
328
328
|
hostConnected() {
|
|
329
|
-
this.host.dispatchEvent(new
|
|
329
|
+
this.host.dispatchEvent(new at(this.context, this.host));
|
|
330
330
|
}
|
|
331
331
|
};
|
|
332
332
|
//#endregion
|
|
333
333
|
//#region node_modules/@lit/context/lib/decorators/provide.js
|
|
334
|
-
function
|
|
334
|
+
function st({ context: e }) {
|
|
335
335
|
return (t, n) => {
|
|
336
336
|
let r = /* @__PURE__ */ new WeakMap();
|
|
337
337
|
if (typeof n == "object") return {
|
|
@@ -342,7 +342,7 @@ function ct({ context: e }) {
|
|
|
342
342
|
return r.get(this).setValue(e), t.set.call(this, e);
|
|
343
343
|
},
|
|
344
344
|
init(t) {
|
|
345
|
-
return r.set(this, new
|
|
345
|
+
return r.set(this, new ot(this, {
|
|
346
346
|
context: e,
|
|
347
347
|
initialValue: t
|
|
348
348
|
})), t;
|
|
@@ -350,7 +350,7 @@ function ct({ context: e }) {
|
|
|
350
350
|
};
|
|
351
351
|
{
|
|
352
352
|
t.constructor.addInitializer(((t) => {
|
|
353
|
-
r.set(t, new
|
|
353
|
+
r.set(t, new ot(t, { context: e }));
|
|
354
354
|
}));
|
|
355
355
|
let i = Object.getOwnPropertyDescriptor(t, n), a;
|
|
356
356
|
if (i === void 0) {
|
|
@@ -381,10 +381,10 @@ function ct({ context: e }) {
|
|
|
381
381
|
}
|
|
382
382
|
//#endregion
|
|
383
383
|
//#region node_modules/@lit/context/lib/decorators/consume.js
|
|
384
|
-
function
|
|
384
|
+
function ct({ context: e, subscribe: t }) {
|
|
385
385
|
return (n, r) => {
|
|
386
386
|
typeof r == "object" ? r.addInitializer((function() {
|
|
387
|
-
new
|
|
387
|
+
new rt(this, {
|
|
388
388
|
context: e,
|
|
389
389
|
callback: (e) => {
|
|
390
390
|
n.set.call(this, e);
|
|
@@ -392,7 +392,7 @@ function lt({ context: e, subscribe: t }) {
|
|
|
392
392
|
subscribe: t
|
|
393
393
|
});
|
|
394
394
|
})) : n.constructor.addInitializer(((n) => {
|
|
395
|
-
new
|
|
395
|
+
new rt(n, {
|
|
396
396
|
context: e,
|
|
397
397
|
callback: (e) => {
|
|
398
398
|
n[r] = e;
|
|
@@ -404,20 +404,20 @@ function lt({ context: e, subscribe: t }) {
|
|
|
404
404
|
}
|
|
405
405
|
//#endregion
|
|
406
406
|
//#region src/shared/types/index.ts
|
|
407
|
-
function
|
|
407
|
+
function j(e) {
|
|
408
408
|
return "url" in e;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function M(e) {
|
|
411
411
|
return "items" in e;
|
|
412
412
|
}
|
|
413
|
-
var
|
|
413
|
+
var N = class e extends Error {
|
|
414
414
|
constructor(t) {
|
|
415
415
|
super(t), this.name = "SearchError", Object.setPrototypeOf(this, e.prototype);
|
|
416
416
|
}
|
|
417
|
-
},
|
|
417
|
+
}, lt = nt("activeId"), ut = nt(Symbol("focus-manager"));
|
|
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 M(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._idCounter = 0;
|
|
@@ -461,8 +461,8 @@ var N, P = class extends e {
|
|
|
461
461
|
this._showTooltip = !1;
|
|
462
462
|
}, this._onKeyDown = (e) => {
|
|
463
463
|
let t = this.tree;
|
|
464
|
-
if (t !== void 0 && !(e.defaultPrevented ||
|
|
465
|
-
if (
|
|
464
|
+
if (t !== void 0 && !(e.defaultPrevented || E(e))) {
|
|
465
|
+
if (F.menuShortcuts.includes(e.key) && (e.preventDefault(), e.stopPropagation()), e.key === "ArrowUp") {
|
|
466
466
|
this._focusManager?.focusPrev(this);
|
|
467
467
|
return;
|
|
468
468
|
}
|
|
@@ -470,10 +470,10 @@ var N, P = class extends e {
|
|
|
470
470
|
this._focusManager?.focusNext(this);
|
|
471
471
|
return;
|
|
472
472
|
}
|
|
473
|
-
|
|
473
|
+
M(t) ? this.handleKeyForParent(e.key) : this.handleKeyForLeaf(e.key);
|
|
474
474
|
}
|
|
475
475
|
};
|
|
476
|
-
let e =
|
|
476
|
+
let e = F._idCounter++;
|
|
477
477
|
this._tooltipId = `vsn-side-menu-item-tooltip-${e}`, this._childListId = `vsn-side-menu-item-list-${e}`;
|
|
478
478
|
}
|
|
479
479
|
focusSelf() {
|
|
@@ -481,10 +481,10 @@ var N, P = class extends e {
|
|
|
481
481
|
}
|
|
482
482
|
willUpdate(e) {
|
|
483
483
|
let t = this.tree;
|
|
484
|
-
t !== void 0 && e.has("_currentActiveId") && (this._isActive = this._currentActiveId === t.id,
|
|
484
|
+
t !== void 0 && e.has("_currentActiveId") && (this._isActive = this._currentActiveId === t.id, M(t) && (this._isExpanded = this.isActiveNode(t) !== null));
|
|
485
485
|
}
|
|
486
486
|
render() {
|
|
487
|
-
let e = this.tree !== void 0 &&
|
|
487
|
+
let e = this.tree !== void 0 && M(this.tree), t = this.tree && M(this.tree) ? this.tree.items : [];
|
|
488
488
|
return n`
|
|
489
489
|
${this.menuItemMarkup()}
|
|
490
490
|
${e ? n`
|
|
@@ -494,7 +494,7 @@ var N, P = class extends e {
|
|
|
494
494
|
`;
|
|
495
495
|
}
|
|
496
496
|
menuItemMarkup() {
|
|
497
|
-
let e = this.tree !== void 0 &&
|
|
497
|
+
let e = this.tree !== void 0 && M(this.tree), t = this.tree?.["data-qa-id"], r = {
|
|
498
498
|
"ga-side-navigation__item": !0,
|
|
499
499
|
[`ga-side-navigation__item--level-${this.level}`]: this.level > 1,
|
|
500
500
|
"ga-side-navigation__item--expanded": this._isExpanded,
|
|
@@ -505,7 +505,7 @@ var N, P = class extends e {
|
|
|
505
505
|
<div class="ga-tooltip ga-tooltip--right-center w-34 max-w-135">${this.tree?.label}</div>
|
|
506
506
|
</div>
|
|
507
507
|
<span class="ga-side-navigation__item-icon">
|
|
508
|
-
${e ? this._isExpanded ?
|
|
508
|
+
${e ? this._isExpanded ? k(A, 16) : k(et, 16) : ""}
|
|
509
509
|
</span>
|
|
510
510
|
<div class="ga-side-navigation__item-content">
|
|
511
511
|
<div class="ga-side-navigation__item-label">${this.tree?.label}</div>
|
|
@@ -517,7 +517,7 @@ var N, P = class extends e {
|
|
|
517
517
|
@mouseleave=${this._onItemMouseLeave} @keydown=${this._onKeyDown}>${i}
|
|
518
518
|
</button>` : n`<a class="${d(r)}" aria-describedby="${this._tooltipId}"
|
|
519
519
|
aria-current=${f(this._isActive ? "page" : void 0)}
|
|
520
|
-
href="${this.tree &&
|
|
520
|
+
href="${this.tree && j(this.tree) ? this.tree.url : ""}" data-qa-id="${f(t)}"
|
|
521
521
|
@click=${this._handleItemClick} @mouseenter=${this._onItemMouseEnter}
|
|
522
522
|
@mouseleave=${this._onItemMouseLeave} @keydown=${this._onKeyDown}>${i}</a>`;
|
|
523
523
|
}
|
|
@@ -553,7 +553,7 @@ var N, P = class extends e {
|
|
|
553
553
|
}
|
|
554
554
|
isActiveNode(e) {
|
|
555
555
|
if (e.id === this._currentActiveId) return e;
|
|
556
|
-
if (
|
|
556
|
+
if (M(e)) for (let t of e.items) {
|
|
557
557
|
let e = this.isActiveNode(t);
|
|
558
558
|
if (e) return e;
|
|
559
559
|
}
|
|
@@ -562,11 +562,11 @@ var N, P = class extends e {
|
|
|
562
562
|
_handleItemClick(e) {
|
|
563
563
|
let t = this.tree;
|
|
564
564
|
if (t !== void 0) {
|
|
565
|
-
if (
|
|
565
|
+
if (M(t)) {
|
|
566
566
|
this._isExpanded = !this._isExpanded, e.preventDefault(), e.stopPropagation();
|
|
567
567
|
return;
|
|
568
568
|
}
|
|
569
|
-
e.button !== 0 ||
|
|
569
|
+
e.button !== 0 || E(e) || (e.preventDefault(), e.stopPropagation(), (!this._isActive || this.hasPageTitle) && this.dispatchEvent(new CustomEvent("vsn-menu-item-changed", {
|
|
570
570
|
bubbles: !0,
|
|
571
571
|
composed: !0,
|
|
572
572
|
detail: t
|
|
@@ -574,13 +574,13 @@ var N, P = class extends e {
|
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
};
|
|
577
|
-
|
|
578
|
-
context:
|
|
577
|
+
P([s({ attribute: !1 })], I.prototype, "tree", void 0), P([s({ type: Number })], I.prototype, "level", void 0), P([ct({
|
|
578
|
+
context: lt,
|
|
579
579
|
subscribe: !0
|
|
580
|
-
}), l()],
|
|
580
|
+
}), l()], I.prototype, "_currentActiveId", void 0), P([l()], I.prototype, "_isActive", void 0), P([l()], I.prototype, "_isExpanded", void 0), P([l()], I.prototype, "_showTooltip", void 0), P([l()], I.prototype, "_tooltipPos", void 0), P([c(".ga-side-navigation__item-label")], I.prototype, "_labelEl", void 0), P([ct({ context: ut })], I.prototype, "_focusManager", void 0), P([s({ type: Boolean })], I.prototype, "hasPageTitle", void 0), I = F = P([o("vsn-menu-item")], I);
|
|
581
581
|
//#endregion
|
|
582
582
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu.ts
|
|
583
|
-
var
|
|
583
|
+
var L = class extends e {
|
|
584
584
|
constructor(...e) {
|
|
585
585
|
super(...e), this.items = [], this._currentActiveId = "", this.currentItem = "", this.hasPageTitle = !1, this._focusManager = {
|
|
586
586
|
focusPrev: (e) => {
|
|
@@ -618,15 +618,15 @@ var F = class extends e {
|
|
|
618
618
|
<vsn-menu-item .tree=${e} .hasPageTitle=${this.hasPageTitle}></vsn-menu-item>`;
|
|
619
619
|
}
|
|
620
620
|
};
|
|
621
|
-
|
|
621
|
+
P([s({ attribute: !1 })], L.prototype, "items", void 0), P([st({ context: lt }), l()], L.prototype, "_currentActiveId", void 0), P([s()], L.prototype, "currentItem", void 0), P([s({ type: Boolean })], L.prototype, "hasPageTitle", void 0), P([st({ context: ut })], L.prototype, "_focusManager", void 0), L = P([y(), o("vsn-menu")], L);
|
|
622
622
|
//#endregion
|
|
623
623
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-button.ts
|
|
624
|
-
var
|
|
624
|
+
var R = class extends e {
|
|
625
625
|
constructor(...e) {
|
|
626
626
|
super(...e), this.label = "", this.closeOnClick = !1, this._onKeydown = (e) => {
|
|
627
|
-
e.defaultPrevented ||
|
|
627
|
+
e.defaultPrevented || D(e) && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), this.click());
|
|
628
628
|
}, this._onClick = (e) => {
|
|
629
|
-
e.defaultPrevented || e.button !== 0 ||
|
|
629
|
+
e.defaultPrevented || e.button !== 0 || E(e) || this.closeOnClick && this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
|
|
630
630
|
bubbles: !0,
|
|
631
631
|
composed: !0
|
|
632
632
|
}));
|
|
@@ -735,13 +735,13 @@ var I = class extends e {
|
|
|
735
735
|
`;
|
|
736
736
|
}
|
|
737
737
|
};
|
|
738
|
-
|
|
738
|
+
P([s()], R.prototype, "label", void 0), P([s({
|
|
739
739
|
type: Boolean,
|
|
740
740
|
attribute: "close-on-click"
|
|
741
|
-
})],
|
|
741
|
+
})], R.prototype, "closeOnClick", void 0), R = P([o("vsn-menu-button")], R);
|
|
742
742
|
//#endregion
|
|
743
743
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-separator.ts
|
|
744
|
-
var
|
|
744
|
+
var dt = class extends e {
|
|
745
745
|
static {
|
|
746
746
|
this.styles = [t`
|
|
747
747
|
/* flow-root establishes a BFC so the .line's margins stay contained.
|
|
@@ -765,15 +765,15 @@ var ft = class extends e {
|
|
|
765
765
|
return n`<div class="line"></div>`;
|
|
766
766
|
}
|
|
767
767
|
};
|
|
768
|
-
|
|
768
|
+
dt = P([o("vsn-menu-separator")], dt);
|
|
769
769
|
//#endregion
|
|
770
770
|
//#region src/components/vsn-side-bar/vsn-footer/vsn-footer.keyboard.ts
|
|
771
|
-
var
|
|
771
|
+
var ft = class {
|
|
772
772
|
constructor(e) {
|
|
773
773
|
this._prevExpanded = !1, this.onUserKeydown = (e) => {
|
|
774
|
-
e.defaultPrevented ||
|
|
774
|
+
e.defaultPrevented || E(e) || e.key === "Escape" && this.host.expanded && (e.preventDefault(), this.host.expanded = !1);
|
|
775
775
|
}, this.onDropdownKeydown = (e) => {
|
|
776
|
-
if (e.defaultPrevented ||
|
|
776
|
+
if (e.defaultPrevented || E(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
777
777
|
e.preventDefault();
|
|
778
778
|
let t = this.host.querySelector(".ga-side-navigation__footer-dropdown");
|
|
779
779
|
if (!t) return;
|
|
@@ -792,7 +792,7 @@ var pt = class {
|
|
|
792
792
|
} else !this.host.expanded && this._prevExpanded && this.host.querySelector(".ga-side-navigation__user")?.focus();
|
|
793
793
|
this._prevExpanded = this.host.expanded;
|
|
794
794
|
}
|
|
795
|
-
},
|
|
795
|
+
}, pt = class {
|
|
796
796
|
constructor(e, t, n) {
|
|
797
797
|
this._onPointerDown = (e) => {
|
|
798
798
|
let t = e.composedPath();
|
|
@@ -809,18 +809,18 @@ var pt = class {
|
|
|
809
809
|
hostDisconnected() {
|
|
810
810
|
document.removeEventListener("pointerdown", this._onPointerDown, !0);
|
|
811
811
|
}
|
|
812
|
-
},
|
|
813
|
-
function
|
|
812
|
+
}, mt = "initials";
|
|
813
|
+
function ht(e, t, n, r) {
|
|
814
814
|
if (!t) return;
|
|
815
815
|
let i = new URLSearchParams({
|
|
816
|
-
type:
|
|
816
|
+
type: mt,
|
|
817
817
|
size: r
|
|
818
818
|
});
|
|
819
819
|
return n && i.set("client_id", n), `${e}${t}?${i}`;
|
|
820
820
|
}
|
|
821
821
|
//#endregion
|
|
822
822
|
//#region src/components/controllers/focus-trapping-controller.ts
|
|
823
|
-
var
|
|
823
|
+
var z = class {
|
|
824
824
|
constructor(e, t, n = void 0) {
|
|
825
825
|
this._rootElement = null, this._onKeyDown = (e) => {
|
|
826
826
|
if (e.defaultPrevented || e.key !== "Tab" || e.ctrlKey || e.altKey || e.metaKey || !this._appliesCallback() || this._rootElement == null) return;
|
|
@@ -839,31 +839,31 @@ var L = class {
|
|
|
839
839
|
hostUpdated() {
|
|
840
840
|
this._rootElement == null && this._rootSelector && (this._rootElement = this._host.renderRoot.querySelector(this._rootSelector), this._rootElement != null && this._rootElement.addEventListener("keydown", this._onKeyDown));
|
|
841
841
|
}
|
|
842
|
-
},
|
|
843
|
-
profile:
|
|
844
|
-
logout:
|
|
845
|
-
},
|
|
842
|
+
}, gt = {
|
|
843
|
+
profile: Ke,
|
|
844
|
+
logout: qe
|
|
845
|
+
}, _t = () => ({
|
|
846
846
|
profile: v("My profile"),
|
|
847
847
|
logout: v("Log out")
|
|
848
|
-
}),
|
|
848
|
+
}), B = class extends e {
|
|
849
849
|
createRenderRoot() {
|
|
850
850
|
return this;
|
|
851
851
|
}
|
|
852
852
|
get _items() {
|
|
853
853
|
return [{
|
|
854
854
|
id: "profile",
|
|
855
|
-
label:
|
|
855
|
+
label: _t().profile,
|
|
856
856
|
url: this.myProfileUrl
|
|
857
857
|
}, {
|
|
858
858
|
id: "logout",
|
|
859
|
-
label:
|
|
859
|
+
label: _t().logout,
|
|
860
860
|
url: "/logout"
|
|
861
861
|
}];
|
|
862
862
|
}
|
|
863
863
|
constructor() {
|
|
864
|
-
super(), this.expanded = !1, this._avatarFailed = !1, this._keyboard = new
|
|
864
|
+
super(), this.expanded = !1, this._avatarFailed = !1, this._keyboard = new ft(this), new pt(this, [".ga-side-navigation__footer-dropdown", ".ga-side-navigation__user"], () => {
|
|
865
865
|
this.expanded = !1;
|
|
866
|
-
}), new
|
|
866
|
+
}), new z(this, () => this.expanded);
|
|
867
867
|
}
|
|
868
868
|
willUpdate(e) {
|
|
869
869
|
(e.has("user") || e.has("profilePictureBaseUrl")) && (this._avatarFailed = !1);
|
|
@@ -879,8 +879,8 @@ var L = class {
|
|
|
879
879
|
|
|
880
880
|
<button
|
|
881
881
|
type="button"
|
|
882
|
+
aria-label=${v(_`User menu, ${this.user.userName}`)}
|
|
882
883
|
aria-expanded="${this.expanded}"
|
|
883
|
-
aria-haspopup="menu"
|
|
884
884
|
class="ga-side-navigation__user
|
|
885
885
|
${this.expanded ? "ga-side-navigation__user--active" : ""}"
|
|
886
886
|
@click=${this._toggle}>
|
|
@@ -897,7 +897,7 @@ var L = class {
|
|
|
897
897
|
</div>
|
|
898
898
|
|
|
899
899
|
<span class="ga-side-navigation__user-action">
|
|
900
|
-
${this.expanded ?
|
|
900
|
+
${this.expanded ? k(Xe, 16) : k(Ye, 16)}
|
|
901
901
|
</span>
|
|
902
902
|
|
|
903
903
|
</button>
|
|
@@ -906,19 +906,22 @@ var L = class {
|
|
|
906
906
|
}
|
|
907
907
|
renderDropdown() {
|
|
908
908
|
return n`
|
|
909
|
-
<div class="ga-side-navigation__footer-dropdown"
|
|
909
|
+
<div class="ga-side-navigation__footer-dropdown"
|
|
910
|
+
role="group"
|
|
911
|
+
aria-label=${v("User menu")}
|
|
912
|
+
@keydown=${this._keyboard.onDropdownKeydown}>
|
|
910
913
|
|
|
911
914
|
${this._items.map((e) => {
|
|
912
915
|
let t = n`
|
|
913
916
|
<span class="ga-side-navigation__footer-dropdown-icon">
|
|
914
|
-
${
|
|
917
|
+
${k(gt[e.id], 16)}
|
|
915
918
|
</span>
|
|
916
919
|
<span class="ga-side-navigation__footer-dropdown-title">
|
|
917
920
|
${e.label}
|
|
918
921
|
</span>
|
|
919
922
|
${e.external ? n`
|
|
920
923
|
<span class="ga-side-navigation__footer-dropdown-trail">
|
|
921
|
-
${
|
|
924
|
+
${k(Je, 16)}
|
|
922
925
|
</span>
|
|
923
926
|
` : r}
|
|
924
927
|
`;
|
|
@@ -958,7 +961,7 @@ var L = class {
|
|
|
958
961
|
}));
|
|
959
962
|
}
|
|
960
963
|
renderAvatar() {
|
|
961
|
-
let e =
|
|
964
|
+
let e = ht(this.profilePictureBaseUrl, this.user.userId, this.user.clientId, "small");
|
|
962
965
|
return e && !this._avatarFailed ? n`<img
|
|
963
966
|
class="ga-side-navigation__user-avatar"
|
|
964
967
|
src=${e}
|
|
@@ -966,48 +969,54 @@ var L = class {
|
|
|
966
969
|
@error=${() => {
|
|
967
970
|
this._avatarFailed = !0;
|
|
968
971
|
}}/>` : n`<span class="ga-side-navigation__user-avatar vsn-side-navigation__user-avatar--icon">
|
|
969
|
-
${
|
|
972
|
+
${k(Ke, 24)}
|
|
970
973
|
</span>`;
|
|
971
974
|
}
|
|
972
975
|
};
|
|
973
|
-
|
|
976
|
+
P([s({ attribute: !1 })], B.prototype, "user", void 0), P([s()], B.prototype, "profilePictureBaseUrl", void 0), P([s()], B.prototype, "myProfileUrl", void 0), P([s({
|
|
974
977
|
type: Boolean,
|
|
975
978
|
reflect: !0
|
|
976
|
-
})],
|
|
979
|
+
})], B.prototype, "expanded", void 0), P([l()], B.prototype, "_avatarFailed", void 0), B = P([y(), o("vsn-footer")], B);
|
|
977
980
|
//#endregion
|
|
978
981
|
//#region src/components/vsn-side-bar/vsn-header/vsn-header.keyboard.ts
|
|
979
|
-
var
|
|
982
|
+
var vt = class {
|
|
980
983
|
constructor(e) {
|
|
981
984
|
this.onSwitcherKeydown = (e) => {
|
|
982
|
-
e.defaultPrevented ||
|
|
985
|
+
e.defaultPrevented || E(e) || this.host.expanded && e.key === "Escape" && this.host.requestClose() && e.preventDefault();
|
|
983
986
|
}, this.host = e, e.addController(this);
|
|
984
987
|
}
|
|
985
988
|
hostConnected() {}
|
|
986
|
-
},
|
|
987
|
-
|
|
988
|
-
|
|
989
|
+
}, yt, V = class extends e {
|
|
990
|
+
static {
|
|
991
|
+
yt = this;
|
|
992
|
+
}
|
|
993
|
+
createRenderRoot() {
|
|
994
|
+
return this;
|
|
995
|
+
}
|
|
996
|
+
static {
|
|
997
|
+
this._idCounter = 0;
|
|
998
|
+
}
|
|
999
|
+
constructor() {
|
|
1000
|
+
super(), this.items = [], this.loading = !1, this.maxHeight = 0, this._handleKeydown = (e) => {
|
|
989
1001
|
if (e.defaultPrevented) return;
|
|
990
|
-
if (
|
|
1002
|
+
if (D(e) && (e.key === "Enter" || e.key === " ")) {
|
|
991
1003
|
let t = e.target;
|
|
992
1004
|
t instanceof HTMLElement && t.classList.contains("ga-side-navigation__switcher-dropdown-item") && (e.preventDefault(), t.click());
|
|
993
1005
|
return;
|
|
994
1006
|
}
|
|
995
|
-
if (
|
|
1007
|
+
if (E(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
996
1008
|
e.preventDefault();
|
|
997
1009
|
let t = Array.from(this.querySelectorAll(".ga-side-navigation__switcher-dropdown-item"));
|
|
998
1010
|
if (t.length === 0) return;
|
|
999
1011
|
let n = this.getRootNode().activeElement, r = n instanceof HTMLElement ? t.indexOf(n) : -1, i = null;
|
|
1000
1012
|
e.key === "ArrowUp" && r > 0 ? i = t[r - 1] : e.key === "ArrowDown" && r < t.length - 1 && (i = t[r + 1]), i?.focus();
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
createRenderRoot() {
|
|
1004
|
-
return this;
|
|
1013
|
+
}, this._headerId = `vsn-switcher-dropdown-header-${yt._idCounter++}`;
|
|
1005
1014
|
}
|
|
1006
1015
|
firstUpdated() {
|
|
1007
1016
|
this.loading || this.querySelector(".ga-side-navigation__switcher-dropdown-item")?.focus();
|
|
1008
1017
|
}
|
|
1009
1018
|
_handleItemClick(e, t) {
|
|
1010
|
-
|
|
1019
|
+
E(e) || (e.preventDefault(), this.dispatchEvent(new CustomEvent("item-select", {
|
|
1011
1020
|
detail: { id: t },
|
|
1012
1021
|
bubbles: !0,
|
|
1013
1022
|
composed: !0
|
|
@@ -1022,28 +1031,26 @@ var yt = class {
|
|
|
1022
1031
|
<span class="vsn-spinner"></span>
|
|
1023
1032
|
</div>
|
|
1024
1033
|
` : n`
|
|
1025
|
-
<
|
|
1026
|
-
role="menu"
|
|
1034
|
+
<nav class="ga-side-navigation__switcher-dropdown ga-scroll"
|
|
1027
1035
|
style=${`max-height: ${Math.max(0, this.maxHeight)}px`}
|
|
1028
|
-
aria-
|
|
1036
|
+
aria-labelledby=${this._headerId}
|
|
1029
1037
|
@keydown=${this._handleKeydown}>
|
|
1030
|
-
<span class="ga-side-navigation__switcher-dropdown-header">${
|
|
1038
|
+
<span id=${this._headerId} class="ga-side-navigation__switcher-dropdown-header">${Oe()}</span>
|
|
1031
1039
|
${this.items.map((e) => n`
|
|
1032
1040
|
<a class="ga-side-navigation__switcher-dropdown-item"
|
|
1033
1041
|
href=${e.url ?? ""}
|
|
1034
|
-
role="menuitem"
|
|
1035
1042
|
@click=${(t) => this._handleItemClick(t, e.id)}>
|
|
1036
1043
|
<span class="ga-side-navigation__switcher-dropdown-title">${e.label}</span>
|
|
1037
1044
|
</a>
|
|
1038
1045
|
`)}
|
|
1039
|
-
</
|
|
1046
|
+
</nav>
|
|
1040
1047
|
`;
|
|
1041
1048
|
}
|
|
1042
1049
|
};
|
|
1043
|
-
|
|
1050
|
+
P([s({ attribute: !1 })], V.prototype, "items", void 0), P([s({ type: Boolean })], V.prototype, "loading", void 0), P([s({ attribute: !1 })], V.prototype, "maxHeight", void 0), V = yt = P([y(), o("vsn-switcher-menu")], V);
|
|
1044
1051
|
//#endregion
|
|
1045
1052
|
//#region src/components/vsn-side-bar/vsn-search/vsn-search.ts
|
|
1046
|
-
var
|
|
1053
|
+
var H = class extends e {
|
|
1047
1054
|
constructor(...e) {
|
|
1048
1055
|
super(...e), this.shortcut = "", this.value = "", this.loading = !1, this._scheduleAutoSearch = () => {
|
|
1049
1056
|
this._cancelDebounce(), this._debounceTimer = window.setTimeout(this._emitSearch, 200);
|
|
@@ -1061,33 +1068,12 @@ var B = class extends e {
|
|
|
1061
1068
|
composed: !0
|
|
1062
1069
|
}));
|
|
1063
1070
|
}, this._handleEscape = (e) => {
|
|
1064
|
-
e.defaultPrevented ||
|
|
1071
|
+
e.defaultPrevented || D(e) && e.key === "Escape" && this.value.length > 0 && (e.preventDefault(), this._emitSearchCleared());
|
|
1065
1072
|
};
|
|
1066
1073
|
}
|
|
1067
1074
|
createRenderRoot() {
|
|
1068
1075
|
return this;
|
|
1069
1076
|
}
|
|
1070
|
-
focus() {
|
|
1071
|
-
let e = this.querySelector("input");
|
|
1072
|
-
e?.focus(), e?.select();
|
|
1073
|
-
}
|
|
1074
|
-
get _canSearch() {
|
|
1075
|
-
return this.value.length >= 3;
|
|
1076
|
-
}
|
|
1077
|
-
_handleInput(e) {
|
|
1078
|
-
let t = e.target.value;
|
|
1079
|
-
this.dispatchEvent(new CustomEvent("vsn-search-input", {
|
|
1080
|
-
detail: { value: t },
|
|
1081
|
-
bubbles: !0,
|
|
1082
|
-
composed: !0
|
|
1083
|
-
})), this._scheduleAutoSearch();
|
|
1084
|
-
}
|
|
1085
|
-
disconnectedCallback() {
|
|
1086
|
-
this._cancelDebounce(), super.disconnectedCallback();
|
|
1087
|
-
}
|
|
1088
|
-
_handleEnter(e) {
|
|
1089
|
-
e.defaultPrevented || E(e) && e.key === "Enter" && this._emitSearch();
|
|
1090
|
-
}
|
|
1091
1077
|
render() {
|
|
1092
1078
|
let e = this.value.length > 0 && this.value.length < 3;
|
|
1093
1079
|
return n`
|
|
@@ -1098,19 +1084,40 @@ var B = class extends e {
|
|
|
1098
1084
|
aria-label=${v("Search")}
|
|
1099
1085
|
?disabled=${!this._canSearch}
|
|
1100
1086
|
@click=${this._emitSearch}>
|
|
1101
|
-
${
|
|
1087
|
+
${k(Ze, 24)}
|
|
1102
1088
|
</button>
|
|
1103
1089
|
<input type="search"
|
|
1104
|
-
.placeholder=${
|
|
1090
|
+
.placeholder=${ke()}
|
|
1105
1091
|
.value=${this.value}
|
|
1106
1092
|
@input=${this._handleInput}
|
|
1107
1093
|
@keydown=${this._handleEnter}/>
|
|
1108
1094
|
${this._trailingSlot()}
|
|
1109
1095
|
</div>
|
|
1110
1096
|
${p(e, () => n`
|
|
1111
|
-
<div class="vsn-search__helper">${
|
|
1097
|
+
<div class="vsn-search__helper">${je(3)}</div>`)}
|
|
1112
1098
|
`;
|
|
1113
1099
|
}
|
|
1100
|
+
focus() {
|
|
1101
|
+
let e = this.querySelector("input");
|
|
1102
|
+
e?.focus(), e?.select();
|
|
1103
|
+
}
|
|
1104
|
+
get _canSearch() {
|
|
1105
|
+
return this.value.length >= 3;
|
|
1106
|
+
}
|
|
1107
|
+
_handleInput(e) {
|
|
1108
|
+
let t = e.target.value;
|
|
1109
|
+
this.dispatchEvent(new CustomEvent("vsn-search-input", {
|
|
1110
|
+
detail: { value: t },
|
|
1111
|
+
bubbles: !0,
|
|
1112
|
+
composed: !0
|
|
1113
|
+
})), this._scheduleAutoSearch();
|
|
1114
|
+
}
|
|
1115
|
+
disconnectedCallback() {
|
|
1116
|
+
this._cancelDebounce(), super.disconnectedCallback();
|
|
1117
|
+
}
|
|
1118
|
+
_handleEnter(e) {
|
|
1119
|
+
e.defaultPrevented || D(e) && e.key === "Enter" && this._emitSearch();
|
|
1120
|
+
}
|
|
1114
1121
|
_trailingSlot() {
|
|
1115
1122
|
let e = this.loading, t = this.value.length > 0, i = !this.loading && this.value.length === 0 && this.shortcut.length > 0;
|
|
1116
1123
|
return n`
|
|
@@ -1126,7 +1133,7 @@ var B = class extends e {
|
|
|
1126
1133
|
return n`
|
|
1127
1134
|
<button class="vsn-search__clear" aria-label=${v("Clear search")}
|
|
1128
1135
|
@click=${this._emitSearchCleared}>
|
|
1129
|
-
${
|
|
1136
|
+
${k(Qe, 16)}
|
|
1130
1137
|
</button>
|
|
1131
1138
|
`;
|
|
1132
1139
|
}
|
|
@@ -1134,17 +1141,17 @@ var B = class extends e {
|
|
|
1134
1141
|
return n`<kbd class="ga-side-navigation__search-shortcut">${this.shortcut}</kbd>`;
|
|
1135
1142
|
}
|
|
1136
1143
|
};
|
|
1137
|
-
|
|
1144
|
+
P([s()], H.prototype, "shortcut", void 0), P([s()], H.prototype, "value", void 0), P([s({ type: Boolean })], H.prototype, "loading", void 0), H = P([y(), o("vsn-search")], H);
|
|
1138
1145
|
//#endregion
|
|
1139
1146
|
//#region src/components/vsn-side-bar/vsn-header/vsn-header.ts
|
|
1140
|
-
var
|
|
1147
|
+
var U = class extends e {
|
|
1141
1148
|
createRenderRoot() {
|
|
1142
1149
|
return this;
|
|
1143
1150
|
}
|
|
1144
1151
|
constructor() {
|
|
1145
|
-
super(), this.modules = [], this.modulesLoading = !1, this.hasMenu = !1, this.moduleSwitcherMaxHeight = 0, this.searchValue = "", this.searchLoading = !1, this.expanded = !1, this._keyboard = new
|
|
1152
|
+
super(), this.modules = [], this.modulesLoading = !1, this.hasMenu = !1, this.moduleSwitcherMaxHeight = 0, this.searchValue = "", this.searchLoading = !1, this.expanded = !1, this._keyboard = new vt(this), new pt(this, [".ga-side-navigation__switcher-dropdown", ".ga-side-navigation__switcher"], () => {
|
|
1146
1153
|
this.canClose && (this.expanded = !1);
|
|
1147
|
-
}), new
|
|
1154
|
+
}), new z(this, () => this.expanded, ".vsn-switcher-anchor");
|
|
1148
1155
|
}
|
|
1149
1156
|
focus() {
|
|
1150
1157
|
let e = this.querySelector("vsn-search");
|
|
@@ -1161,13 +1168,13 @@ var V = class extends e {
|
|
|
1161
1168
|
<div class="vsn-switcher-anchor"
|
|
1162
1169
|
@keydown=${this._keyboard.onSwitcherKeydown}>
|
|
1163
1170
|
<button type="button" class="ga-side-navigation__switcher ${this.expanded ? "ga-side-navigation__switcher--active" : ""}"
|
|
1171
|
+
aria-label=${v(_`Service menu, ${e.title}`)}
|
|
1164
1172
|
aria-expanded="${this.expanded}"
|
|
1165
|
-
aria-haspopup="menu"
|
|
1166
1173
|
@click=${this._toggle}
|
|
1167
1174
|
title="">
|
|
1168
1175
|
<span class="ga-side-navigation__switcher-title">${e.title}</span>
|
|
1169
1176
|
<span class="ga-side-navigation__switcher-action">
|
|
1170
|
-
${this.canClose ? this.expanded ?
|
|
1177
|
+
${this.canClose ? this.expanded ? k(A, 16) : k(Ye, 16) : k(Re, 16)}
|
|
1171
1178
|
</span>
|
|
1172
1179
|
</button>
|
|
1173
1180
|
|
|
@@ -1182,7 +1189,7 @@ var V = class extends e {
|
|
|
1182
1189
|
|
|
1183
1190
|
${p(this.search?.enabled, () => n`
|
|
1184
1191
|
<vsn-search
|
|
1185
|
-
.shortcut=${
|
|
1192
|
+
.shortcut=${Ae()}
|
|
1186
1193
|
.value=${this.searchValue}
|
|
1187
1194
|
.loading=${this.searchLoading}>
|
|
1188
1195
|
</vsn-search>`)}
|
|
@@ -1192,7 +1199,7 @@ var V = class extends e {
|
|
|
1192
1199
|
get _state() {
|
|
1193
1200
|
if (this.modulesLoading) return {
|
|
1194
1201
|
kind: "loading",
|
|
1195
|
-
title: this.activeModuleLabel ||
|
|
1202
|
+
title: this.activeModuleLabel || Pe()
|
|
1196
1203
|
};
|
|
1197
1204
|
let e = this.modules.find((e) => e.id === this.activeModuleId);
|
|
1198
1205
|
return e ? {
|
|
@@ -1201,7 +1208,7 @@ var V = class extends e {
|
|
|
1201
1208
|
available: this.modules.filter((t) => t.id !== e.id)
|
|
1202
1209
|
} : {
|
|
1203
1210
|
kind: "no-active",
|
|
1204
|
-
title:
|
|
1211
|
+
title: Pe(),
|
|
1205
1212
|
available: this.modules
|
|
1206
1213
|
};
|
|
1207
1214
|
}
|
|
@@ -1239,16 +1246,16 @@ var V = class extends e {
|
|
|
1239
1246
|
}), !0);
|
|
1240
1247
|
}
|
|
1241
1248
|
};
|
|
1242
|
-
|
|
1249
|
+
P([s({ attribute: !1 })], U.prototype, "modules", void 0), P([s()], U.prototype, "activeModuleId", void 0), P([s()], U.prototype, "activeModuleLabel", void 0), P([s({ type: Boolean })], U.prototype, "modulesLoading", void 0), P([s({ type: Boolean })], U.prototype, "hasMenu", void 0), P([s({ attribute: !1 })], U.prototype, "moduleSwitcherMaxHeight", void 0), P([s({ attribute: !1 })], U.prototype, "search", void 0), P([s()], U.prototype, "searchValue", void 0), P([s({ type: Boolean })], U.prototype, "searchLoading", void 0), P([s({
|
|
1243
1250
|
type: Boolean,
|
|
1244
1251
|
reflect: !0
|
|
1245
|
-
})],
|
|
1252
|
+
})], U.prototype, "expanded", void 0), U = P([y(), o("vsn-header")], U);
|
|
1246
1253
|
//#endregion
|
|
1247
1254
|
//#region src/components/vsn-side-bar/vsn-search-results/vsn-search-results.keyboard.ts
|
|
1248
1255
|
var bt = class {
|
|
1249
1256
|
constructor(e) {
|
|
1250
1257
|
this.onResultsKeydown = (e) => {
|
|
1251
|
-
if (e.defaultPrevented ||
|
|
1258
|
+
if (e.defaultPrevented || E(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
1252
1259
|
e.preventDefault();
|
|
1253
1260
|
let t = Array.from(this.host.querySelectorAll(".ga-side-navigation__search-results-item"));
|
|
1254
1261
|
if (t.length === 0) return;
|
|
@@ -1259,7 +1266,7 @@ var bt = class {
|
|
|
1259
1266
|
}, this.host = e, e.addController(this);
|
|
1260
1267
|
}
|
|
1261
1268
|
hostConnected() {}
|
|
1262
|
-
}, xt,
|
|
1269
|
+
}, xt, W = class extends e {
|
|
1263
1270
|
static {
|
|
1264
1271
|
xt = this;
|
|
1265
1272
|
}
|
|
@@ -1317,10 +1324,10 @@ var bt = class {
|
|
|
1317
1324
|
}));
|
|
1318
1325
|
}
|
|
1319
1326
|
};
|
|
1320
|
-
|
|
1327
|
+
P([s({ attribute: !1 })], W.prototype, "item", void 0), P([l()], W.prototype, "_showTooltip", void 0), P([l()], W.prototype, "_tooltipPos", void 0), P([c(".ga-side-navigation__search-results-item-label")], W.prototype, "_labelEl", void 0), W = xt = P([o("vsn-search-result-item")], W);
|
|
1321
1328
|
//#endregion
|
|
1322
1329
|
//#region src/components/vsn-side-bar/vsn-search-results/vsn-search-results.ts
|
|
1323
|
-
var
|
|
1330
|
+
var G = class extends e {
|
|
1324
1331
|
constructor(...e) {
|
|
1325
1332
|
super(...e), this.loadingMore = !1, this._keyboard = new bt(this);
|
|
1326
1333
|
}
|
|
@@ -1364,7 +1371,7 @@ var U = class extends e {
|
|
|
1364
1371
|
class="vsn-search-results__load-more"
|
|
1365
1372
|
?disabled=${this.loadingMore}
|
|
1366
1373
|
@click=${this._onLoadMore}>
|
|
1367
|
-
${
|
|
1374
|
+
${Ne()}
|
|
1368
1375
|
</button>
|
|
1369
1376
|
`)}
|
|
1370
1377
|
</div>
|
|
@@ -1377,7 +1384,7 @@ var U = class extends e {
|
|
|
1377
1384
|
}));
|
|
1378
1385
|
}
|
|
1379
1386
|
};
|
|
1380
|
-
|
|
1387
|
+
P([s({ attribute: !1 })], G.prototype, "results", void 0), P([s()], G.prototype, "errorMessage", void 0), P([s()], G.prototype, "nextCursor", void 0), P([s({ type: Boolean })], G.prototype, "loadingMore", void 0), G = P([y(), o("vsn-search-results")], G);
|
|
1381
1388
|
//#endregion
|
|
1382
1389
|
//#region src/components/vsn-side-bar/vsn-template/vsn-template.ts
|
|
1383
1390
|
var St = [
|
|
@@ -1405,7 +1412,7 @@ var St = [
|
|
|
1405
1412
|
`;
|
|
1406
1413
|
}
|
|
1407
1414
|
};
|
|
1408
|
-
Ct =
|
|
1415
|
+
Ct = P([y(), o("vsn-template")], Ct);
|
|
1409
1416
|
//#endregion
|
|
1410
1417
|
//#region src/components/vsn-side-bar/vsn-error-state/vsn-error-state.ts
|
|
1411
1418
|
var wt = class extends e {
|
|
@@ -1415,7 +1422,7 @@ var wt = class extends e {
|
|
|
1415
1422
|
render() {
|
|
1416
1423
|
return n`
|
|
1417
1424
|
<div class="vsn-error-state" role="alert" aria-live="assertive">
|
|
1418
|
-
<div class="vsn-error-state__icon">${
|
|
1425
|
+
<div class="vsn-error-state__icon">${k($e, 24)}</div>
|
|
1419
1426
|
<div class="vsn-error-state__title">${v("Loading error")}</div>
|
|
1420
1427
|
<div class="vsn-error-state__message">${v("We're unable to load the menu.")}</div>
|
|
1421
1428
|
<div class="vsn-error-state__hint">${v("Please check your internet connection and try again.")}</div>
|
|
@@ -1424,10 +1431,10 @@ var wt = class extends e {
|
|
|
1424
1431
|
`;
|
|
1425
1432
|
}
|
|
1426
1433
|
};
|
|
1427
|
-
wt =
|
|
1434
|
+
wt = P([y(), o("vsn-error-state")], wt);
|
|
1428
1435
|
//#endregion
|
|
1429
1436
|
//#region src/components/vsn-side-bar/vsn-search-scopes/vsn-search-scopes.ts
|
|
1430
|
-
var Tt,
|
|
1437
|
+
var Tt, K = class extends e {
|
|
1431
1438
|
static {
|
|
1432
1439
|
Tt = this;
|
|
1433
1440
|
}
|
|
@@ -1470,7 +1477,7 @@ var Tt, W = class extends e {
|
|
|
1470
1477
|
}));
|
|
1471
1478
|
}
|
|
1472
1479
|
};
|
|
1473
|
-
|
|
1480
|
+
P([s({ attribute: !1 })], K.prototype, "scopes", void 0), P([s()], K.prototype, "selectedScopeId", void 0), K = Tt = P([y(), o("vsn-search-scopes")], K);
|
|
1474
1481
|
//#endregion
|
|
1475
1482
|
//#region src/shared/lang/locale-codes.ts
|
|
1476
1483
|
var Et = "en", Dt = [
|
|
@@ -1491,6 +1498,7 @@ var Et = "en", Dt = [
|
|
|
1491
1498
|
s3fb7db4771812f0c: "Hvis problemet fortsætter, genindlæs siden eller kontakt support.",
|
|
1492
1499
|
s457d59d649765619: "Gå til hovedindhold",
|
|
1493
1500
|
s4b0c6b66b4efd7d8: "Vælg en tjeneste",
|
|
1501
|
+
s58a1dace5a9acc5b: _`Tjenestemenu, ${0}`,
|
|
1494
1502
|
s5be3c6d61cd9182f: "Notifikationer",
|
|
1495
1503
|
s5d369be551a4dd7a: "Menupunkter",
|
|
1496
1504
|
s5d929ff1619ac0c9: "Søg",
|
|
@@ -1498,11 +1506,13 @@ var Et = "en", Dt = [
|
|
|
1498
1506
|
s60fb9db2c6c14775: "Tjek din internetforbindelse og prøv igen.",
|
|
1499
1507
|
s6abb1cd87fe0114e: "Hjem",
|
|
1500
1508
|
s7584ded3d749c75e: "Indlæs mere",
|
|
1509
|
+
s82b383a30bc685e9: "Brugermenu",
|
|
1501
1510
|
s842e9f4f6fdb5901: "Søgeomfang",
|
|
1502
1511
|
s8a1cc2725e462c2a: "Send feedback",
|
|
1503
1512
|
s8d91340b5caa2d5c: "Åbn menu",
|
|
1504
1513
|
s9094c0cde8fb5058: "Ingen resultater fundet",
|
|
1505
1514
|
s970de9ba0cf07677: "Søger",
|
|
1515
|
+
s97b95ad19ebb75a9: _`Brugermenu, ${0}`,
|
|
1506
1516
|
sacde528ad7d2d031: "Vi kan ikke indlæse menuen.",
|
|
1507
1517
|
sb560e5cd092ef2e5: "Indlæser resultater",
|
|
1508
1518
|
sb64127e4e4f0b575: "Log ud",
|
|
@@ -1525,6 +1535,7 @@ var Et = "en", Dt = [
|
|
|
1525
1535
|
s3fb7db4771812f0c: "Jos ongelma jatkuu, lataa sivu uudelleen tai ota yhteyttä tukeen.",
|
|
1526
1536
|
s457d59d649765619: "Siirry pääsisältöön",
|
|
1527
1537
|
s4b0c6b66b4efd7d8: "Valitse palvelu",
|
|
1538
|
+
s58a1dace5a9acc5b: _`Palveluvalikko, ${0}`,
|
|
1528
1539
|
s5be3c6d61cd9182f: "Ilmoitukset",
|
|
1529
1540
|
s5d369be551a4dd7a: "Valikkokohteet",
|
|
1530
1541
|
s5d929ff1619ac0c9: "Hae",
|
|
@@ -1532,11 +1543,13 @@ var Et = "en", Dt = [
|
|
|
1532
1543
|
s60fb9db2c6c14775: "Tarkista internetyhteytesi ja yritä uudelleen.",
|
|
1533
1544
|
s6abb1cd87fe0114e: "Etusivu",
|
|
1534
1545
|
s7584ded3d749c75e: "Lataa lisää",
|
|
1546
|
+
s82b383a30bc685e9: "Käyttäjävalikko",
|
|
1535
1547
|
s842e9f4f6fdb5901: "Hakuala",
|
|
1536
1548
|
s8a1cc2725e462c2a: "Lähetä palautetta",
|
|
1537
1549
|
s8d91340b5caa2d5c: "Avaa valikko",
|
|
1538
1550
|
s9094c0cde8fb5058: "Tuloksia ei löytynyt",
|
|
1539
1551
|
s970de9ba0cf07677: "Haetaan",
|
|
1552
|
+
s97b95ad19ebb75a9: _`Käyttäjävalikko, ${0}`,
|
|
1540
1553
|
sacde528ad7d2d031: "Valikko ei lataudu.",
|
|
1541
1554
|
sb560e5cd092ef2e5: "Ladataan tuloksia",
|
|
1542
1555
|
sb64127e4e4f0b575: "Kirjaudu ulos",
|
|
@@ -1559,6 +1572,7 @@ var Et = "en", Dt = [
|
|
|
1559
1572
|
s3fb7db4771812f0c: "Als het probleem aanhoudt, laad de pagina opnieuw of neem contact op met ondersteuning.",
|
|
1560
1573
|
s457d59d649765619: "Ga naar hoofdinhoud",
|
|
1561
1574
|
s4b0c6b66b4efd7d8: "Kies een service",
|
|
1575
|
+
s58a1dace5a9acc5b: _`Servicemenu, ${0}`,
|
|
1562
1576
|
s5be3c6d61cd9182f: "Meldingen",
|
|
1563
1577
|
s5d369be551a4dd7a: "Menu-items",
|
|
1564
1578
|
s5d929ff1619ac0c9: "Zoeken",
|
|
@@ -1566,11 +1580,13 @@ var Et = "en", Dt = [
|
|
|
1566
1580
|
s60fb9db2c6c14775: "Controleer uw internetverbinding en probeer het opnieuw.",
|
|
1567
1581
|
s6abb1cd87fe0114e: "Home",
|
|
1568
1582
|
s7584ded3d749c75e: "Meer laden",
|
|
1583
|
+
s82b383a30bc685e9: "Gebruikersmenu",
|
|
1569
1584
|
s842e9f4f6fdb5901: "Zoekbereik",
|
|
1570
1585
|
s8a1cc2725e462c2a: "Feedback sturen",
|
|
1571
1586
|
s8d91340b5caa2d5c: "Menu openen",
|
|
1572
1587
|
s9094c0cde8fb5058: "Geen resultaten gevonden",
|
|
1573
1588
|
s970de9ba0cf07677: "Zoeken",
|
|
1589
|
+
s97b95ad19ebb75a9: _`Gebruikersmenu, ${0}`,
|
|
1574
1590
|
sacde528ad7d2d031: "We kunnen het menu niet laden.",
|
|
1575
1591
|
sb560e5cd092ef2e5: "Resultaten laden",
|
|
1576
1592
|
sb64127e4e4f0b575: "Uitloggen",
|
|
@@ -1593,6 +1609,7 @@ var Et = "en", Dt = [
|
|
|
1593
1609
|
s3fb7db4771812f0c: "Hvis problemet vedvarer, last inn siden på nytt eller kontakt støtte.",
|
|
1594
1610
|
s457d59d649765619: "Hopp til hovedinnhold",
|
|
1595
1611
|
s4b0c6b66b4efd7d8: "Velg en tjeneste",
|
|
1612
|
+
s58a1dace5a9acc5b: _`Tjenestemeny, ${0}`,
|
|
1596
1613
|
s5be3c6d61cd9182f: "Varsler",
|
|
1597
1614
|
s5d369be551a4dd7a: "Menyelementer",
|
|
1598
1615
|
s5d929ff1619ac0c9: "Søk",
|
|
@@ -1600,11 +1617,13 @@ var Et = "en", Dt = [
|
|
|
1600
1617
|
s60fb9db2c6c14775: "Sjekk internettforbindelsen din og prøv igjen.",
|
|
1601
1618
|
s6abb1cd87fe0114e: "Hjem",
|
|
1602
1619
|
s7584ded3d749c75e: "Last inn mer",
|
|
1620
|
+
s82b383a30bc685e9: "Brukermeny",
|
|
1603
1621
|
s842e9f4f6fdb5901: "Søkeomfang",
|
|
1604
1622
|
s8a1cc2725e462c2a: "Send tilbakemelding",
|
|
1605
1623
|
s8d91340b5caa2d5c: "Åpne meny",
|
|
1606
1624
|
s9094c0cde8fb5058: "Ingen resultater funnet",
|
|
1607
1625
|
s970de9ba0cf07677: "Søker",
|
|
1626
|
+
s97b95ad19ebb75a9: _`Brukermeny, ${0}`,
|
|
1608
1627
|
sacde528ad7d2d031: "Vi kan ikke laste menyen.",
|
|
1609
1628
|
sb560e5cd092ef2e5: "Laster resultater",
|
|
1610
1629
|
sb64127e4e4f0b575: "Logg ut",
|
|
@@ -1627,6 +1646,7 @@ var Et = "en", Dt = [
|
|
|
1627
1646
|
s3fb7db4771812f0c: "Om problemet kvarstår, ladda om sidan eller kontakta support.",
|
|
1628
1647
|
s457d59d649765619: "Hoppa till huvudinnehåll",
|
|
1629
1648
|
s4b0c6b66b4efd7d8: "Välj en tjänst",
|
|
1649
|
+
s58a1dace5a9acc5b: _`Tjänstemeny, ${0}`,
|
|
1630
1650
|
s5be3c6d61cd9182f: "Aviseringar",
|
|
1631
1651
|
s5d369be551a4dd7a: "Menyalternativ",
|
|
1632
1652
|
s5d929ff1619ac0c9: "Sök",
|
|
@@ -1634,11 +1654,13 @@ var Et = "en", Dt = [
|
|
|
1634
1654
|
s60fb9db2c6c14775: "Kontrollera din internetanslutning och försök igen.",
|
|
1635
1655
|
s6abb1cd87fe0114e: "Hem",
|
|
1636
1656
|
s7584ded3d749c75e: "Läs in mer",
|
|
1657
|
+
s82b383a30bc685e9: "Användarmeny",
|
|
1637
1658
|
s842e9f4f6fdb5901: "Sökområde",
|
|
1638
1659
|
s8a1cc2725e462c2a: "Skicka feedback",
|
|
1639
1660
|
s8d91340b5caa2d5c: "Öppna meny",
|
|
1640
1661
|
s9094c0cde8fb5058: "Inga resultat hittades",
|
|
1641
1662
|
s970de9ba0cf07677: "Söker",
|
|
1663
|
+
s97b95ad19ebb75a9: _`Användarmeny, ${0}`,
|
|
1642
1664
|
sacde528ad7d2d031: "Vi kan inte ladda menyn.",
|
|
1643
1665
|
sb560e5cd092ef2e5: "Laddar resultat",
|
|
1644
1666
|
sb64127e4e4f0b575: "Logga ut",
|
|
@@ -1655,7 +1677,7 @@ var Et = "en", Dt = [
|
|
|
1655
1677
|
nl: Mt,
|
|
1656
1678
|
no: Pt,
|
|
1657
1679
|
sv: It
|
|
1658
|
-
}, { getLocale: zt, setLocale: Bt } =
|
|
1680
|
+
}, { getLocale: zt, setLocale: Bt } = Ce({
|
|
1659
1681
|
sourceLocale: Et,
|
|
1660
1682
|
targetLocales: Dt,
|
|
1661
1683
|
loadLocale: (e) => Rt[e] ? Promise.resolve(Rt[e]) : Promise.reject(/* @__PURE__ */ Error(`Unknown locale: ${e}`))
|
|
@@ -1927,27 +1949,14 @@ var Et = "en", Dt = [
|
|
|
1927
1949
|
@keyframes vsn-spin {
|
|
1928
1950
|
to { transform: rotate(360deg); }
|
|
1929
1951
|
}
|
|
1930
|
-
`, Yt = class {
|
|
1931
|
-
constructor(e, t, n) {
|
|
1932
|
-
this._onHostClick = (e) => {
|
|
1933
|
-
let t = this._host.renderRoot.querySelector(this._clickedSelector);
|
|
1934
|
-
t && !e.composedPath().includes(t) && this._callback();
|
|
1935
|
-
}, this._host = e, this._clickedSelector = t, this._callback = n, e.addController(this);
|
|
1936
|
-
}
|
|
1937
|
-
hostConnected() {
|
|
1938
|
-
this._host.addEventListener("click", this._onHostClick);
|
|
1939
|
-
}
|
|
1940
|
-
hostDisconnected() {
|
|
1941
|
-
this._host.removeEventListener("click", this._onHostClick);
|
|
1942
|
-
}
|
|
1943
|
-
}, Xt = "button:not([disabled]), a[href], [tabindex]:not([tabindex=\"-1\"])", Zt = class {
|
|
1952
|
+
`, Yt = "button:not([disabled]), a[href], [tabindex]:not([tabindex=\"-1\"])", Xt = class {
|
|
1944
1953
|
constructor(e) {
|
|
1945
1954
|
this.onKeydown = (e) => {
|
|
1946
|
-
if (e.defaultPrevented ||
|
|
1955
|
+
if (e.defaultPrevented || E(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
1947
1956
|
let t = this.host.renderRoot.querySelector("slot[name=\"nav-footer\"]");
|
|
1948
1957
|
if (!t) return;
|
|
1949
1958
|
let n = [];
|
|
1950
|
-
for (let e of t.assignedElements({ flatten: !0 })) e.matches(
|
|
1959
|
+
for (let e of t.assignedElements({ flatten: !0 })) e.matches(Yt) && n.push(e), n.push(...Array.from(e.querySelectorAll(Yt)));
|
|
1951
1960
|
if (n.length === 0) return;
|
|
1952
1961
|
let r = e.composedPath()[0];
|
|
1953
1962
|
if (!(r instanceof HTMLElement)) return;
|
|
@@ -1959,12 +1968,12 @@ var Et = "en", Dt = [
|
|
|
1959
1968
|
}, this.host = e, e.addController(this);
|
|
1960
1969
|
}
|
|
1961
1970
|
hostConnected() {}
|
|
1962
|
-
},
|
|
1971
|
+
}, Zt = t`
|
|
1963
1972
|
.ga-scroll {
|
|
1964
1973
|
scrollbar-color: var(--ga-color-text-disabled) var(--ga-color-surface-page);
|
|
1965
1974
|
scrollbar-width: thin;
|
|
1966
1975
|
}
|
|
1967
|
-
`,
|
|
1976
|
+
`, Qt = t`
|
|
1968
1977
|
@layer components {
|
|
1969
1978
|
.vsn-menu__list {
|
|
1970
1979
|
list-style: none;
|
|
@@ -1988,7 +1997,7 @@ var Et = "en", Dt = [
|
|
|
1988
1997
|
content: var(--tw-content);
|
|
1989
1998
|
}
|
|
1990
1999
|
}
|
|
1991
|
-
`,
|
|
2000
|
+
`, $t = t`
|
|
1992
2001
|
@layer base {
|
|
1993
2002
|
button:where(.ga-side-navigation__item),
|
|
1994
2003
|
button:where(.ga-side-navigation__switcher),
|
|
@@ -2005,15 +2014,15 @@ var Et = "en", Dt = [
|
|
|
2005
2014
|
color: inherit;
|
|
2006
2015
|
}
|
|
2007
2016
|
}
|
|
2008
|
-
`,
|
|
2017
|
+
`, q = class extends e {
|
|
2009
2018
|
static {
|
|
2010
2019
|
this.styles = [
|
|
2011
2020
|
g,
|
|
2012
|
-
|
|
2021
|
+
Zt,
|
|
2013
2022
|
Ht,
|
|
2014
|
-
|
|
2023
|
+
Qt,
|
|
2015
2024
|
Vt,
|
|
2016
|
-
|
|
2025
|
+
$t,
|
|
2017
2026
|
Ut,
|
|
2018
2027
|
Wt,
|
|
2019
2028
|
Gt,
|
|
@@ -2023,7 +2032,9 @@ var Et = "en", Dt = [
|
|
|
2023
2032
|
t`
|
|
2024
2033
|
:host {
|
|
2025
2034
|
position: absolute;
|
|
2026
|
-
|
|
2035
|
+
top: 0;
|
|
2036
|
+
bottom: calc(calc(.25rem * var(--ga-base-scaling-factor, 1)) * 4);
|
|
2037
|
+
left: calc(calc(.25rem * var(--ga-base-scaling-factor, 1)) * 4);
|
|
2027
2038
|
z-index: 100;
|
|
2028
2039
|
}
|
|
2029
2040
|
|
|
@@ -2033,11 +2044,6 @@ var Et = "en", Dt = [
|
|
|
2033
2044
|
`
|
|
2034
2045
|
];
|
|
2035
2046
|
}
|
|
2036
|
-
downLevelTree(e) {
|
|
2037
|
-
if (!e) return;
|
|
2038
|
-
let t = e[0];
|
|
2039
|
-
if (!(!t || !A(t))) return t;
|
|
2040
|
-
}
|
|
2041
2047
|
get _menu() {
|
|
2042
2048
|
let e = this.downLevelTree(this.menu?.items);
|
|
2043
2049
|
if (e !== void 0) return {
|
|
@@ -2047,7 +2053,7 @@ var Et = "en", Dt = [
|
|
|
2047
2053
|
};
|
|
2048
2054
|
}
|
|
2049
2055
|
constructor() {
|
|
2050
|
-
super(), this.modules = [], this.modulesLoading = !1, this.lang = "en", this.error = !1, this.open = !1, this._searchQuery = "", this._searchLoading = !1, this._activeScopeId =
|
|
2056
|
+
super(), this.modules = [], this.modulesLoading = !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 Xt(this), this._customWidthPerLanguage = { fi: "30em" }, this._onNavigate = (e) => {
|
|
2051
2057
|
this._searchQuery = "", this._searchResults = void 0, this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
|
|
2052
2058
|
bubbles: !0,
|
|
2053
2059
|
composed: !0
|
|
@@ -2064,12 +2070,14 @@ var Et = "en", Dt = [
|
|
|
2064
2070
|
}));
|
|
2065
2071
|
}, this._onScopeChanged = (e) => {
|
|
2066
2072
|
this._activeScopeId = e.detail.scopeId, this._runSearch(this._searchQuery, this._activeScopeId);
|
|
2067
|
-
},
|
|
2068
|
-
bubbles: !0,
|
|
2069
|
-
composed: !0
|
|
2070
|
-
}))), this._resizeObserver = new ResizeObserver((e) => {
|
|
2073
|
+
}, this._resizeObserver = new ResizeObserver((e) => {
|
|
2071
2074
|
this._observeMenuSize(e);
|
|
2072
|
-
}), this._resizeObserver.observe(this), new
|
|
2075
|
+
}), this._resizeObserver.observe(this), new z(this, () => this.open);
|
|
2076
|
+
}
|
|
2077
|
+
downLevelTree(e) {
|
|
2078
|
+
if (!e) return;
|
|
2079
|
+
let t = e[0];
|
|
2080
|
+
if (!(!t || !M(t))) return t;
|
|
2073
2081
|
}
|
|
2074
2082
|
_observeMenuSize(e) {
|
|
2075
2083
|
this._moduleSwitcherMaxHeight = Math.max(0, e[0].contentRect.height - 134);
|
|
@@ -2081,7 +2089,7 @@ var Et = "en", Dt = [
|
|
|
2081
2089
|
e.has("open") && this.open && this._scrollActiveItemIntoView(), e.has("menu") && this.open && this.menu?.currentItem && (e.get("menu")?.currentItem || this._scrollActiveItemIntoView());
|
|
2082
2090
|
}
|
|
2083
2091
|
resetSidebarToInitialState() {
|
|
2084
|
-
this._searchQuery = "", this._activeScopeId =
|
|
2092
|
+
this._searchQuery = "", this._activeScopeId = O, this._clearSearchState(), this.renderRoot.querySelector("vsn-header")?.reset(), this.renderRoot.querySelector("vsn-footer")?.reset();
|
|
2085
2093
|
}
|
|
2086
2094
|
render() {
|
|
2087
2095
|
let e = this._viewMode();
|
|
@@ -2129,7 +2137,7 @@ var Et = "en", Dt = [
|
|
|
2129
2137
|
this._runSearch(e.detail.query, this._activeScopeId);
|
|
2130
2138
|
}
|
|
2131
2139
|
_onSearchCleared() {
|
|
2132
|
-
this._searchQuery = "", this._clearSearchState(), this.focusSearch();
|
|
2140
|
+
this._searchQuery = "", this._activeScopeId = O, this._clearSearchState(), this.focusSearch();
|
|
2133
2141
|
}
|
|
2134
2142
|
_clearSearchState() {
|
|
2135
2143
|
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;
|
|
@@ -2159,7 +2167,7 @@ var Et = "en", Dt = [
|
|
|
2159
2167
|
this._searchResults = t.results, this._searchNextCursor = t.nextCursor, this._searchLoading = !1, this._searchAbort = void 0;
|
|
2160
2168
|
} catch (e) {
|
|
2161
2169
|
if (this._searchAbort !== r) return;
|
|
2162
|
-
e instanceof
|
|
2170
|
+
e instanceof N ? (this._searchError = e.message, this._searchResults = void 0) : console.error("Search function rejected with non-SearchError:", e), this._searchLoading = !1, this._searchAbort = void 0;
|
|
2163
2171
|
}
|
|
2164
2172
|
}
|
|
2165
2173
|
async _loadMore() {
|
|
@@ -2179,14 +2187,14 @@ var Et = "en", Dt = [
|
|
|
2179
2187
|
this._searchResults = [...this._searchResults ?? [], ...n.results], this._searchNextCursor = n.nextCursor, this._searchLoadingMore = !1, this._searchAbort = void 0;
|
|
2180
2188
|
} catch (e) {
|
|
2181
2189
|
if (this._searchAbort !== t) return;
|
|
2182
|
-
e instanceof
|
|
2190
|
+
e instanceof N ? (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;
|
|
2183
2191
|
}
|
|
2184
2192
|
}
|
|
2185
2193
|
_filterTree(e) {
|
|
2186
2194
|
let t = this._menu?.items;
|
|
2187
2195
|
if (!t?.length || !e) return [];
|
|
2188
2196
|
let n = e.toLowerCase(), r = [], i = (e, t) => {
|
|
2189
|
-
for (let a of e) if (
|
|
2197
|
+
for (let a of e) if (M(a)) i(a.items, [...t, a]);
|
|
2190
2198
|
else if (a.label.toLowerCase().includes(n) || this.matchInKeywords(a.keywords, n)) {
|
|
2191
2199
|
let e = t.length > 0 ? [t.map((e) => e.label).join(" › ")] : void 0;
|
|
2192
2200
|
r.push({
|
|
@@ -2243,13 +2251,13 @@ var Et = "en", Dt = [
|
|
|
2243
2251
|
</vsn-header>`;
|
|
2244
2252
|
}
|
|
2245
2253
|
scopesGroup() {
|
|
2246
|
-
if (!this.menu?.search?.enabled) return n``;
|
|
2254
|
+
if (!this.menu?.search?.enabled || this._searchQuery.length === 0) return n``;
|
|
2247
2255
|
let e = this.menu.search.extraDataSets ?? [];
|
|
2248
2256
|
return e.length === 0 ? n`` : n`
|
|
2249
2257
|
<vsn-search-scopes
|
|
2250
2258
|
.scopes=${[{
|
|
2251
|
-
id:
|
|
2252
|
-
label:
|
|
2259
|
+
id: O,
|
|
2260
|
+
label: Me()
|
|
2253
2261
|
}, ...e.map((e) => ({
|
|
2254
2262
|
id: e.id,
|
|
2255
2263
|
label: e.label
|
|
@@ -2273,15 +2281,15 @@ var Et = "en", Dt = [
|
|
|
2273
2281
|
`;
|
|
2274
2282
|
}
|
|
2275
2283
|
};
|
|
2276
|
-
|
|
2284
|
+
P([s({ attribute: !1 })], q.prototype, "modules", void 0), P([s()], q.prototype, "activeModuleId", void 0), P([s()], q.prototype, "activeModuleLabel", void 0), P([s({ type: Boolean })], q.prototype, "modulesLoading", void 0), P([s()], q.prototype, "lang", void 0), P([s({ attribute: !1 })], q.prototype, "auth", void 0), P([s({ type: Boolean })], q.prototype, "error", void 0), P([s({
|
|
2277
2285
|
type: Boolean,
|
|
2278
2286
|
reflect: !0
|
|
2279
|
-
})],
|
|
2287
|
+
})], q.prototype, "open", void 0), P([s({ attribute: !1 })], q.prototype, "menu", void 0), P([l()], q.prototype, "_searchQuery", void 0), P([l()], q.prototype, "_searchResults", void 0), P([l()], q.prototype, "_searchLoading", void 0), P([l()], q.prototype, "_activeScopeId", void 0), P([l()], q.prototype, "_searchError", void 0), P([l()], q.prototype, "_searchNextCursor", void 0), P([l()], q.prototype, "_searchLoadingMore", void 0), P([l()], q.prototype, "_moduleSwitcherMaxHeight", void 0), P([l()], q.prototype, "_hasPageTitle", void 0), q = P([o("vsn-side-bar")], q);
|
|
2280
2288
|
//#endregion
|
|
2281
2289
|
//#region src/components/vsn-top-bar/vsn-breadcrumb-menu-item.ts
|
|
2282
|
-
var
|
|
2290
|
+
var en, J = class extends e {
|
|
2283
2291
|
static {
|
|
2284
|
-
|
|
2292
|
+
en = this;
|
|
2285
2293
|
}
|
|
2286
2294
|
static {
|
|
2287
2295
|
this._idCounter = 0;
|
|
@@ -2301,15 +2309,15 @@ var K, q = class extends e {
|
|
|
2301
2309
|
}, this._onItemMouseLeave = () => {
|
|
2302
2310
|
this._showTooltip = !1;
|
|
2303
2311
|
}, this._onKeyDown = (e) => {
|
|
2304
|
-
e.defaultPrevented ||
|
|
2312
|
+
e.defaultPrevented || E(e) || (e.key === "Enter" || e.key === " " ? (e.preventDefault(), this._isExpanded = !this._isExpanded) : e.key === "ArrowRight" ? (e.preventDefault(), this._isExpanded = !0) : e.key === "ArrowLeft" && (e.preventDefault(), this._isExpanded = !1));
|
|
2305
2313
|
}, this._onClick = (e) => {
|
|
2306
2314
|
if (e.defaultPrevented) return;
|
|
2307
2315
|
if (this._isParent()) {
|
|
2308
|
-
if (
|
|
2316
|
+
if (E(e)) return;
|
|
2309
2317
|
e.preventDefault(), this._isExpanded = !this._isExpanded;
|
|
2310
2318
|
return;
|
|
2311
2319
|
}
|
|
2312
|
-
if (!this.tree || e.button !== 0 ||
|
|
2320
|
+
if (!this.tree || e.button !== 0 || E(e)) return;
|
|
2313
2321
|
e.preventDefault();
|
|
2314
2322
|
let t = [...this.ancestorPath, this.tree];
|
|
2315
2323
|
this.dispatchEvent(new CustomEvent("vsn-breadcrumb-menu-leaf-select", {
|
|
@@ -2317,7 +2325,7 @@ var K, q = class extends e {
|
|
|
2317
2325
|
bubbles: !0,
|
|
2318
2326
|
composed: !0
|
|
2319
2327
|
}));
|
|
2320
|
-
}, this._tooltipId = `vsn-menu-item-tooltip-${
|
|
2328
|
+
}, this._tooltipId = `vsn-menu-item-tooltip-${en._idCounter++}`, new z(this, () => this._isExpanded);
|
|
2321
2329
|
}
|
|
2322
2330
|
createRenderRoot() {
|
|
2323
2331
|
return this;
|
|
@@ -2343,7 +2351,7 @@ var K, q = class extends e {
|
|
|
2343
2351
|
<div class="ga-tooltip ga-tooltip--right-start" style="white-space: nowrap">${e}</div>
|
|
2344
2352
|
</div>
|
|
2345
2353
|
<span class="ga-side-navigation__item-icon">
|
|
2346
|
-
${this._isParent() ? this._isExpanded ?
|
|
2354
|
+
${this._isParent() ? this._isExpanded ? k(A, 16) : k(et, 16) : ""}
|
|
2347
2355
|
</span>
|
|
2348
2356
|
<div class="ga-side-navigation__item-content">
|
|
2349
2357
|
<div class="ga-side-navigation__item-label">${e}</div>
|
|
@@ -2353,7 +2361,7 @@ var K, q = class extends e {
|
|
|
2353
2361
|
<div class="${d(t)}" role="button" tabindex="0" aria-expanded=${this._isExpanded} aria-describedby="${this._tooltipId}" @click=${this._onClick} @keydown=${this._onKeyDown}
|
|
2354
2362
|
@mouseenter=${this._onItemMouseEnter} @mouseleave=${this._onItemMouseLeave}>${r}
|
|
2355
2363
|
</div>` : n`<a class="${d(t)}" aria-describedby="${this._tooltipId}"
|
|
2356
|
-
href="${this.tree &&
|
|
2364
|
+
href="${this.tree && j(this.tree) ? this.tree.url : ""}" @click=${this._onClick}
|
|
2357
2365
|
@mouseenter=${this._onItemMouseEnter} @mouseleave=${this._onItemMouseLeave}>${r}</a>`;
|
|
2358
2366
|
}
|
|
2359
2367
|
_menuItem(e, t) {
|
|
@@ -2361,19 +2369,19 @@ var K, q = class extends e {
|
|
|
2361
2369
|
<vsn-breadcrumb-menu-item .tree=${e} .level=${t} .ancestorPath=${this.tree ? [...this.ancestorPath, this.tree] : this.ancestorPath}></vsn-breadcrumb-menu-item>`;
|
|
2362
2370
|
}
|
|
2363
2371
|
_getTreeItems(e) {
|
|
2364
|
-
if (e !== void 0 &&
|
|
2372
|
+
if (e !== void 0 && M(e)) return e.items;
|
|
2365
2373
|
}
|
|
2366
2374
|
_isParent() {
|
|
2367
|
-
if (this.tree &&
|
|
2375
|
+
if (this.tree && M(this.tree)) return this.tree.items.length > 0;
|
|
2368
2376
|
}
|
|
2369
2377
|
};
|
|
2370
|
-
|
|
2378
|
+
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 = en = P([o("vsn-breadcrumb-menu-item")], J);
|
|
2371
2379
|
//#endregion
|
|
2372
2380
|
//#region src/components/vsn-top-bar/vsn-breadcrumb-menu.ts
|
|
2373
2381
|
var tn = class extends e {
|
|
2374
2382
|
constructor() {
|
|
2375
2383
|
super(), this._handleKeyDown = (e) => {
|
|
2376
|
-
if (e.defaultPrevented ||
|
|
2384
|
+
if (e.defaultPrevented || E(e)) return;
|
|
2377
2385
|
if (e.key === "Escape") {
|
|
2378
2386
|
e.preventDefault(), this.dispatchEvent(new CustomEvent("vsn-breadcrumb-menu-close", {
|
|
2379
2387
|
bubbles: !0,
|
|
@@ -2390,7 +2398,7 @@ var tn = class extends e {
|
|
|
2390
2398
|
if (!t.length) return;
|
|
2391
2399
|
let n = t.indexOf(e.target);
|
|
2392
2400
|
n !== -1 && (e.preventDefault(), e.key === "ArrowDown" ? n < t.length - 1 && t[n + 1].focus() : n > 0 && t[n - 1].focus());
|
|
2393
|
-
}, new
|
|
2401
|
+
}, new z(this, () => !0);
|
|
2394
2402
|
}
|
|
2395
2403
|
createRenderRoot() {
|
|
2396
2404
|
return this;
|
|
@@ -2417,10 +2425,10 @@ var tn = class extends e {
|
|
|
2417
2425
|
`;
|
|
2418
2426
|
}
|
|
2419
2427
|
};
|
|
2420
|
-
|
|
2428
|
+
P([s({ attribute: !1 })], tn.prototype, "treeList", void 0), tn = P([o("vsn-breadcrumb-menu")], tn);
|
|
2421
2429
|
//#endregion
|
|
2422
2430
|
//#region src/components/vsn-top-bar/vsn-breadcrumbs.ts
|
|
2423
|
-
var
|
|
2431
|
+
var Y = class extends e {
|
|
2424
2432
|
constructor(...e) {
|
|
2425
2433
|
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 = () => {
|
|
2426
2434
|
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);
|
|
@@ -2441,7 +2449,7 @@ var J = class extends e {
|
|
|
2441
2449
|
static {
|
|
2442
2450
|
this.styles = [
|
|
2443
2451
|
g,
|
|
2444
|
-
|
|
2452
|
+
Zt,
|
|
2445
2453
|
Jt,
|
|
2446
2454
|
t`
|
|
2447
2455
|
.vsn-bc-modules-loading {
|
|
@@ -2560,7 +2568,7 @@ var J = class extends e {
|
|
|
2560
2568
|
_findPath(e, t, n = []) {
|
|
2561
2569
|
let r = [...n, e];
|
|
2562
2570
|
if (e.id === t) return r;
|
|
2563
|
-
for (let n of
|
|
2571
|
+
for (let n of M(e) ? e.items : []) {
|
|
2564
2572
|
let e = this._findPath(n, t, r);
|
|
2565
2573
|
if (e) return e;
|
|
2566
2574
|
}
|
|
@@ -2679,7 +2687,7 @@ var J = class extends e {
|
|
|
2679
2687
|
_handleLeafSelect(e, t) {
|
|
2680
2688
|
(this.shadowRoot?.getElementById(t))?.hidePopover?.();
|
|
2681
2689
|
let n = e.detail.path, r = n[n.length - 1];
|
|
2682
|
-
r &&
|
|
2690
|
+
r && j(r) && this.dispatchEvent(new CustomEvent("vsn-menu-item-changed", {
|
|
2683
2691
|
detail: r,
|
|
2684
2692
|
bubbles: !0,
|
|
2685
2693
|
composed: !0
|
|
@@ -2698,7 +2706,7 @@ var J = class extends e {
|
|
|
2698
2706
|
</div>`;
|
|
2699
2707
|
}
|
|
2700
2708
|
_renderLastItem(e, t, r) {
|
|
2701
|
-
return r ? n`${
|
|
2709
|
+
return r ? n`${M(e) && e.items.length > 0 ? this._renderBreadcrumbItem(e, t) : this._renderLeafAsAncestor(e)}${this._renderPageTitle(r)}` : this._renderCurrentItem(e);
|
|
2702
2710
|
}
|
|
2703
2711
|
_renderPageTitle(e) {
|
|
2704
2712
|
return n`
|
|
@@ -2720,7 +2728,7 @@ var J = class extends e {
|
|
|
2720
2728
|
</div>`;
|
|
2721
2729
|
}
|
|
2722
2730
|
_renderBreadcrumbItem(e, t) {
|
|
2723
|
-
if (!
|
|
2731
|
+
if (!M(e) || e.items.length === 0) return n``;
|
|
2724
2732
|
let i = this._popoverItemId(t), a = this._popoverItemTriggerId(t);
|
|
2725
2733
|
return n`
|
|
2726
2734
|
<div class="ga-breadcrumb-item ga-breadcrumb-item--link"
|
|
@@ -2820,7 +2828,7 @@ var J = class extends e {
|
|
|
2820
2828
|
`;
|
|
2821
2829
|
}
|
|
2822
2830
|
};
|
|
2823
|
-
|
|
2831
|
+
P([s({ attribute: !1 })], Y.prototype, "tree", void 0), P([s({ type: Array })], Y.prototype, "modules", void 0), P([s()], Y.prototype, "activeModuleId", void 0), P([s({ type: Boolean })], Y.prototype, "modulesLoading", void 0), P([l()], Y.prototype, "_openPopoverId", void 0), P([l()], Y.prototype, "_displayMode", void 0), P([l()], Y.prototype, "_overflowCount", void 0), P([l()], Y.prototype, "_tooltip", void 0), Y = P([y(), o("vsn-breadcrumbs")], Y);
|
|
2824
2832
|
//#endregion
|
|
2825
2833
|
//#region src/components/vsn-top-bar/vsn-ai-assistant.ts
|
|
2826
2834
|
var nn = class extends e {
|
|
@@ -2838,15 +2846,15 @@ var nn = class extends e {
|
|
|
2838
2846
|
return n`
|
|
2839
2847
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2840
2848
|
aria-label=${v("Open AI assistant")} @click=${this._handleClick}>
|
|
2841
|
-
<span class="ga-icon">${
|
|
2849
|
+
<span class="ga-icon">${k(Be)}</span>
|
|
2842
2850
|
</button>
|
|
2843
2851
|
`;
|
|
2844
2852
|
}
|
|
2845
2853
|
};
|
|
2846
|
-
nn =
|
|
2854
|
+
nn = P([y(), o("vsn-ai-assistant")], nn);
|
|
2847
2855
|
//#endregion
|
|
2848
2856
|
//#region src/components/vsn-top-bar/vsn-feedback.ts
|
|
2849
|
-
var
|
|
2857
|
+
var X = class extends e {
|
|
2850
2858
|
constructor(...e) {
|
|
2851
2859
|
super(...e), this._compact = !1, this.feedback = null, this.lang = "en", this._mqMobile = window.matchMedia("(max-width: 767px)"), this._handleMediaChange = () => {
|
|
2852
2860
|
this._compact = this._mqMobile.matches;
|
|
@@ -2862,7 +2870,7 @@ var Y = class extends e {
|
|
|
2862
2870
|
if (super.updated(e), e.has("feedback") && this.feedback?.workspaceId && !document.getElementById("survicate-sdk") && !window._sva) {
|
|
2863
2871
|
window._sva = window._sva ?? {}, window._sva.forcedLanguage = this.lang;
|
|
2864
2872
|
let e = document.createElement("script");
|
|
2865
|
-
e.id =
|
|
2873
|
+
e.id = Fe, e.src = Le(this.feedback.workspaceId), e.async = !0, e.onload = () => this._applyVisitorTraits(), e.onerror = () => {
|
|
2866
2874
|
e.remove(), window._sva = void 0;
|
|
2867
2875
|
}, document.head.appendChild(e);
|
|
2868
2876
|
}
|
|
@@ -2885,13 +2893,13 @@ var Y = class extends e {
|
|
|
2885
2893
|
this.dispatchEvent(new CustomEvent("vsn-feedback", {
|
|
2886
2894
|
bubbles: !0,
|
|
2887
2895
|
composed: !0
|
|
2888
|
-
})), this.feedback?.surveyId && (this._applyVisitorTraits(), window._sva?.invokeEvent?.(
|
|
2896
|
+
})), this.feedback?.surveyId && (this._applyVisitorTraits(), window._sva?.invokeEvent?.(Ie));
|
|
2889
2897
|
}
|
|
2890
2898
|
render() {
|
|
2891
2899
|
return this._compact ? n`
|
|
2892
2900
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2893
2901
|
aria-label=${v("Send feedback")} @click=${this._handleClick}>
|
|
2894
|
-
<span class="ga-icon">${
|
|
2902
|
+
<span class="ga-icon">${k(Ue)}</span>
|
|
2895
2903
|
</button>
|
|
2896
2904
|
` : n`
|
|
2897
2905
|
<button type="button" class="ga-button ga-button--secondary" aria-label=${v("Send feedback")}
|
|
@@ -2901,7 +2909,7 @@ var Y = class extends e {
|
|
|
2901
2909
|
`;
|
|
2902
2910
|
}
|
|
2903
2911
|
};
|
|
2904
|
-
|
|
2912
|
+
P([l()], X.prototype, "_compact", void 0), P([s({ attribute: !1 })], X.prototype, "feedback", void 0), P([s({ attribute: !1 })], X.prototype, "auth", void 0), P([s()], X.prototype, "lang", void 0), X = P([y(), o("vsn-feedback")], X);
|
|
2905
2913
|
//#endregion
|
|
2906
2914
|
//#region src/components/vsn-top-bar/vsn-home.ts
|
|
2907
2915
|
var rn = class extends e {
|
|
@@ -2923,12 +2931,12 @@ var rn = class extends e {
|
|
|
2923
2931
|
return this.landingPageUrl ? n`
|
|
2924
2932
|
<a href=${this.landingPageUrl} class="ga-button ga-button--ghost ga-button--icon-only" aria-label=${v("Home")}
|
|
2925
2933
|
@click=${this._handleClick}>
|
|
2926
|
-
<span class="ga-icon">${
|
|
2934
|
+
<span class="ga-icon">${k(We)}</span>
|
|
2927
2935
|
</a>
|
|
2928
2936
|
` : r;
|
|
2929
2937
|
}
|
|
2930
2938
|
};
|
|
2931
|
-
|
|
2939
|
+
P([s({ attribute: "landing-page-url" })], rn.prototype, "landingPageUrl", void 0), rn = P([y(), o("vsn-home")], rn);
|
|
2932
2940
|
//#endregion
|
|
2933
2941
|
//#region src/components/vsn-top-bar/vsn-menu-toggle.ts
|
|
2934
2942
|
var an = class extends e {
|
|
@@ -2958,17 +2966,17 @@ var an = class extends e {
|
|
|
2958
2966
|
@click=${this._handleClick}
|
|
2959
2967
|
@mouseenter=${this._onActivate}
|
|
2960
2968
|
@mouseleave=${this._onDeactivate}>
|
|
2961
|
-
<span class="ga-icon">${
|
|
2969
|
+
<span class="ga-icon">${k(ze)}</span>
|
|
2962
2970
|
</button>
|
|
2963
2971
|
<div id="vsn-menu-toggle-tooltip" role="tooltip"
|
|
2964
2972
|
style="position: fixed; inset: unset; margin: 0; padding: 0; border: none; background: transparent; overflow: visible; pointer-events: none; z-index: 9999;"
|
|
2965
2973
|
popover="manual">
|
|
2966
|
-
<div class="ga-tooltip ga-tooltip--bottom-start" style="white-space: nowrap">${
|
|
2974
|
+
<div class="ga-tooltip ga-tooltip--bottom-start" style="white-space: nowrap">${Ae()}</div>
|
|
2967
2975
|
</div>
|
|
2968
2976
|
`;
|
|
2969
2977
|
}
|
|
2970
2978
|
};
|
|
2971
|
-
|
|
2979
|
+
P([c("div[role=\"tooltip\"]", !0)], an.prototype, "_tooltipElement", void 0), an = P([y(), o("vsn-menu-toggle")], an);
|
|
2972
2980
|
//#endregion
|
|
2973
2981
|
//#region src/components/vsn-top-bar/vsn-notifications.ts
|
|
2974
2982
|
var on = class extends e {
|
|
@@ -2986,20 +2994,20 @@ var on = class extends e {
|
|
|
2986
2994
|
}));
|
|
2987
2995
|
}
|
|
2988
2996
|
render() {
|
|
2989
|
-
let e = this.notificationActive ?
|
|
2997
|
+
let e = this.notificationActive ? He : Ve;
|
|
2990
2998
|
return n`
|
|
2991
2999
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2992
3000
|
aria-label=${v("Notifications")} @click=${this._handleClick}>
|
|
2993
|
-
<span class="ga-icon">${
|
|
3001
|
+
<span class="ga-icon">${k(e)}</span>
|
|
2994
3002
|
</button>
|
|
2995
3003
|
`;
|
|
2996
3004
|
}
|
|
2997
3005
|
};
|
|
2998
|
-
|
|
3006
|
+
P([s({
|
|
2999
3007
|
type: Boolean,
|
|
3000
3008
|
attribute: "notification-active",
|
|
3001
3009
|
reflect: !0
|
|
3002
|
-
})], on.prototype, "notificationActive", void 0), on =
|
|
3010
|
+
})], on.prototype, "notificationActive", void 0), on = P([y(), o("vsn-notifications")], on);
|
|
3003
3011
|
//#endregion
|
|
3004
3012
|
//#region src/components/vsn-top-bar/vsn-help.ts
|
|
3005
3013
|
function sn(e) {
|
|
@@ -3010,7 +3018,7 @@ function sn(e) {
|
|
|
3010
3018
|
return !1;
|
|
3011
3019
|
}
|
|
3012
3020
|
}
|
|
3013
|
-
var
|
|
3021
|
+
var cn = class extends e {
|
|
3014
3022
|
createRenderRoot() {
|
|
3015
3023
|
return this;
|
|
3016
3024
|
}
|
|
@@ -3025,22 +3033,22 @@ var X = class extends e {
|
|
|
3025
3033
|
return this.helpUrl && sn(this.helpUrl) ? n`
|
|
3026
3034
|
<a href=${this.helpUrl} target="_blank" rel="noopener noreferrer" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
3027
3035
|
aria-label=${v("Help")}>
|
|
3028
|
-
<span class="ga-icon">${
|
|
3036
|
+
<span class="ga-icon">${k(Ge)}</span>
|
|
3029
3037
|
</a>
|
|
3030
3038
|
` : n`
|
|
3031
3039
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${v("Help")}
|
|
3032
3040
|
@click=${this._handleClick}>
|
|
3033
|
-
<span class="ga-icon">${
|
|
3041
|
+
<span class="ga-icon">${k(Ge)}</span>
|
|
3034
3042
|
</button>
|
|
3035
3043
|
`;
|
|
3036
3044
|
}
|
|
3037
3045
|
};
|
|
3038
|
-
|
|
3046
|
+
P([s({ attribute: "help-url" })], cn.prototype, "helpUrl", void 0), cn = P([y(), o("vsn-help")], cn);
|
|
3039
3047
|
//#endregion
|
|
3040
3048
|
//#region src/components/vsn-top-bar/vsn-top-bar.ts
|
|
3041
3049
|
var Z = class extends e {
|
|
3042
3050
|
constructor() {
|
|
3043
|
-
super(), this.modules = [], this.feedback = null, this.showHelp = !1, this.showNotification = !1, this.notificationActive = !1, this.modulesLoading = !1, this.lang = "en", new
|
|
3051
|
+
super(), this.modules = [], this.feedback = null, this.showHelp = !1, this.showNotification = !1, this.notificationActive = !1, this.modulesLoading = !1, this.lang = "en", new z(this, () => !0);
|
|
3044
3052
|
}
|
|
3045
3053
|
willUpdate(e) {
|
|
3046
3054
|
e.has("lang") && Bt(this.lang).catch(console.error);
|
|
@@ -3145,19 +3153,19 @@ var Z = class extends e {
|
|
|
3145
3153
|
`;
|
|
3146
3154
|
}
|
|
3147
3155
|
};
|
|
3148
|
-
|
|
3156
|
+
P([s({ attribute: !1 })], Z.prototype, "tree", void 0), P([s({ type: Array })], Z.prototype, "modules", void 0), P([s()], Z.prototype, "activeModuleId", void 0), P([s({ attribute: "landing-page-url" })], Z.prototype, "landingPageUrl", void 0), P([s({ attribute: !1 })], Z.prototype, "feedback", void 0), P([s({ attribute: !1 })], Z.prototype, "auth", void 0), P([s({
|
|
3149
3157
|
type: Boolean,
|
|
3150
3158
|
attribute: "show-help"
|
|
3151
|
-
})], Z.prototype, "showHelp", void 0),
|
|
3159
|
+
})], Z.prototype, "showHelp", void 0), P([s({ attribute: "help-url" })], Z.prototype, "helpUrl", void 0), P([s({
|
|
3152
3160
|
type: Boolean,
|
|
3153
3161
|
attribute: "show-notification"
|
|
3154
|
-
})], Z.prototype, "showNotification", void 0),
|
|
3162
|
+
})], Z.prototype, "showNotification", void 0), P([s({
|
|
3155
3163
|
type: Boolean,
|
|
3156
3164
|
attribute: "notification-active"
|
|
3157
|
-
})], Z.prototype, "notificationActive", void 0),
|
|
3165
|
+
})], Z.prototype, "notificationActive", void 0), P([s({ type: Boolean })], Z.prototype, "modulesLoading", void 0), P([s()], Z.prototype, "lang", void 0), Z = P([o("vsn-top-bar")], Z);
|
|
3158
3166
|
//#endregion
|
|
3159
3167
|
//#region src/components/vsn-card.ts
|
|
3160
|
-
var
|
|
3168
|
+
var ln = class extends e {
|
|
3161
3169
|
static {
|
|
3162
3170
|
this.styles = [g, t`
|
|
3163
3171
|
:host {
|
|
@@ -3178,7 +3186,7 @@ var cn = class extends e {
|
|
|
3178
3186
|
return n`<slot></slot>`;
|
|
3179
3187
|
}
|
|
3180
3188
|
};
|
|
3181
|
-
|
|
3189
|
+
ln = P([o("vsn-card")], ln);
|
|
3182
3190
|
//#endregion
|
|
3183
3191
|
//#region src/components/vsn-skip-to-main.ts
|
|
3184
3192
|
var Q = class extends e {
|
|
@@ -3246,7 +3254,7 @@ var Q = class extends e {
|
|
|
3246
3254
|
t && (t.tabIndex < 0 && t.setAttribute("tabindex", "-1"), t.focus());
|
|
3247
3255
|
}
|
|
3248
3256
|
};
|
|
3249
|
-
|
|
3257
|
+
P([s()], Q.prototype, "href", void 0), Q = P([y(), o("vsn-skip-to-main")], Q);
|
|
3250
3258
|
//#endregion
|
|
3251
3259
|
//#region src/components/vsn-navigation.ts
|
|
3252
3260
|
var $ = class extends e {
|
|
@@ -3269,13 +3277,13 @@ var $ = class extends e {
|
|
|
3269
3277
|
detail: t
|
|
3270
3278
|
}));
|
|
3271
3279
|
}, this._onShortcut = (e) => {
|
|
3272
|
-
e.defaultPrevented || !
|
|
3280
|
+
e.defaultPrevented || !De(e) || e.key.toLowerCase() !== "o" || (e.preventDefault(), this.dispatchEvent(new CustomEvent("vsn-open", {
|
|
3273
3281
|
cancelable: !0,
|
|
3274
3282
|
bubbles: !0,
|
|
3275
3283
|
composed: !0
|
|
3276
3284
|
})) && this._openAndFocusSearch());
|
|
3277
3285
|
}, this._onEscape = (e) => {
|
|
3278
|
-
e.defaultPrevented || this.open &&
|
|
3286
|
+
e.defaultPrevented || this.open && D(e) && e.key === "Escape" && (e.preventDefault(), this.open = !1);
|
|
3279
3287
|
};
|
|
3280
3288
|
}
|
|
3281
3289
|
_resolveModules() {
|
|
@@ -3298,7 +3306,7 @@ var $ = class extends e {
|
|
|
3298
3306
|
static {
|
|
3299
3307
|
this.styles = [
|
|
3300
3308
|
g,
|
|
3301
|
-
|
|
3309
|
+
Zt,
|
|
3302
3310
|
t`
|
|
3303
3311
|
:host {
|
|
3304
3312
|
display: flex;
|
|
@@ -3368,6 +3376,9 @@ var $ = class extends e {
|
|
|
3368
3376
|
_onTopBarClick(e) {
|
|
3369
3377
|
this.open && (e.composedPath().some((e) => e.tagName?.toUpperCase() === "VSN-MENU-TOGGLE") || (this.open = !1));
|
|
3370
3378
|
}
|
|
3379
|
+
_onSlotContentClick() {
|
|
3380
|
+
this.open &&= !1;
|
|
3381
|
+
}
|
|
3371
3382
|
render() {
|
|
3372
3383
|
return n`
|
|
3373
3384
|
<vsn-top-bar
|
|
@@ -3404,26 +3415,26 @@ var $ = class extends e {
|
|
|
3404
3415
|
<slot name="side-context-selector" slot="side-context-selector"></slot>
|
|
3405
3416
|
<slot name="nav-footer" slot="nav-footer"></slot>
|
|
3406
3417
|
</vsn-side-bar>
|
|
3407
|
-
<div class="h-full">
|
|
3418
|
+
<div class="h-full" @click=${this._onSlotContentClick}>
|
|
3408
3419
|
<slot></slot>
|
|
3409
3420
|
</div>
|
|
3410
3421
|
</div>
|
|
3411
3422
|
`;
|
|
3412
3423
|
}
|
|
3413
3424
|
};
|
|
3414
|
-
|
|
3425
|
+
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({
|
|
3415
3426
|
type: Boolean,
|
|
3416
3427
|
attribute: "show-help"
|
|
3417
|
-
})], $.prototype, "showHelp", void 0),
|
|
3428
|
+
})], $.prototype, "showHelp", void 0), P([s({ attribute: "help-url" })], $.prototype, "helpUrl", void 0), P([s({ attribute: !1 })], $.prototype, "feedback", void 0), P([s({
|
|
3418
3429
|
type: Boolean,
|
|
3419
3430
|
attribute: "show-notification"
|
|
3420
|
-
})], $.prototype, "showNotification", void 0),
|
|
3431
|
+
})], $.prototype, "showNotification", void 0), P([s({
|
|
3421
3432
|
type: Boolean,
|
|
3422
3433
|
attribute: "notification-active"
|
|
3423
|
-
})], $.prototype, "notificationActive", void 0),
|
|
3434
|
+
})], $.prototype, "notificationActive", void 0), P([s({
|
|
3424
3435
|
type: Boolean,
|
|
3425
3436
|
attribute: "open",
|
|
3426
3437
|
reflect: !0
|
|
3427
|
-
})], $.prototype, "open", void 0),
|
|
3438
|
+
})], $.prototype, "open", void 0), P([l()], $.prototype, "_resolvedModules", void 0), P([l()], $.prototype, "_modulesLoading", void 0), $ = P([o("vsn-navigation")], $);
|
|
3428
3439
|
//#endregion
|
|
3429
|
-
export {
|
|
3440
|
+
export { N as SearchError, $ as VSNNavigation, Q as VSNSkipToMain, j as isTreeLeaf, M as isTreeParent };
|