@visma-swno/vsn-navigation 1.5.0-beta.3 → 1.5.0-beta.5
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 +228 -173
- package/dist/custom-elements.json +1 -1
- package/package.json +1 -1
|
@@ -129,11 +129,12 @@ var C = 0, Te = (e) => (ce(((e, t) => ve(we, e, t))), b = Se = e.sourceLocale, x
|
|
|
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
|
-
}, ke = (e) => !e.shiftKey && !e.altKey && (Oe() ? e.ctrlKey !== e.metaKey : e.ctrlKey && !e.metaKey), w = (e) => e.shiftKey || e.altKey || e.ctrlKey || e.metaKey, T = (e) => !w(e), Ae = () => _("Choose a service"), je = () => _("Search"), Me = () => Oe() ? "
|
|
132
|
+
}, ke = (e) => !e.shiftKey && !e.altKey && (Oe() ? e.ctrlKey !== e.metaKey : e.ctrlKey && !e.metaKey), w = (e) => e.shiftKey || e.altKey || e.ctrlKey || e.metaKey, T = (e) => !w(e), Ae = () => _("Choose a service"), je = () => _("Search"), Me = () => Oe() ? "⌘O / Ctrl+O" : "Ctrl+O", Ne = () => Oe() ? n`<kbd><kbd>⌘</kbd><kbd>O</kbd></kbd>/<kbd><kbd>Ctrl</kbd>+<kbd>O</kbd></kbd>` : n`<kbd><kbd>Ctrl</kbd>+<kbd>O</kbd></kbd>`, Pe = (e) => e.split(" ").filter((e) => e.length > 0), E = (e) => Pe(e).join("").length >= 3, Fe = (e) => _(g`Type at least ${e} characters to search`), Ie = () => _("Menu items"), Le = () => _("Load more"), Re = () => _("Services"), ze = () => _("Services"), D = "menu", Be = "survicate-sdk", Ve = "ui-components-feedback", He = (e) => `https://survey.survicate.com/workspaces/${e}/web_surveys.js`;
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region src/shared/icons.ts
|
|
135
135
|
function O(e, t = 24, r) {
|
|
136
|
-
return n
|
|
136
|
+
return n`
|
|
137
|
+
<svg
|
|
137
138
|
xmlns="http://www.w3.org/2000/svg"
|
|
138
139
|
width="${t}"
|
|
139
140
|
height="${t}"
|
|
@@ -145,25 +146,26 @@ function O(e, t = 24, r) {
|
|
|
145
146
|
stroke-linejoin="round"
|
|
146
147
|
aria-hidden="true"
|
|
147
148
|
class=${r ?? ""}
|
|
148
|
-
|
|
149
|
+
>${e}
|
|
150
|
+
</svg>`;
|
|
149
151
|
}
|
|
150
|
-
var
|
|
152
|
+
var Ue = i``, We = i`
|
|
151
153
|
<path d="M4 5h16"/>
|
|
152
154
|
<path d="M4 12h16"/>
|
|
153
155
|
<path d="M4 19h16"/>
|
|
154
|
-
`,
|
|
156
|
+
`, Ge = i`
|
|
155
157
|
<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"/>
|
|
156
158
|
<path d="M20 2v4"/>
|
|
157
159
|
<path d="M22 4h-4"/>
|
|
158
160
|
<circle cx="4" cy="20" r="2"/>
|
|
159
|
-
`,
|
|
161
|
+
`, Ke = i`
|
|
160
162
|
<path d="M10.268 21a2 2 0 0 0 3.464 0"/>
|
|
161
163
|
<path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"/>
|
|
162
|
-
`,
|
|
164
|
+
`, qe = i`
|
|
163
165
|
<path d="M10.268 21a2 2 0 0 0 3.464 0"/>
|
|
164
166
|
<path d="M11.68 2.009A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673c-.824-.85-1.678-1.731-2.21-3.348"/>
|
|
165
167
|
<circle cx="18" cy="5" r="3"/>
|
|
166
|
-
`,
|
|
168
|
+
`, Je = i`
|
|
167
169
|
<path d="M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"/>
|
|
168
170
|
<path d="M7 10v12"/>
|
|
169
171
|
`;
|
|
@@ -174,14 +176,14 @@ i`
|
|
|
174
176
|
<path d="M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2"/>
|
|
175
177
|
<path d="M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16"/>
|
|
176
178
|
`;
|
|
177
|
-
var
|
|
179
|
+
var Ye = i`
|
|
178
180
|
<path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"/>
|
|
179
181
|
<path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>
|
|
180
|
-
`,
|
|
182
|
+
`, Xe = i`
|
|
181
183
|
<circle cx="12" cy="12" r="10"/>
|
|
182
184
|
<path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/>
|
|
183
185
|
<path d="M12 17h.01"/>
|
|
184
|
-
`,
|
|
186
|
+
`, Ze = i`
|
|
185
187
|
<circle cx="12" cy="8" r="5"/>
|
|
186
188
|
<path d="M20 21a8 8 0 0 0-16 0"/>
|
|
187
189
|
`;
|
|
@@ -192,11 +194,11 @@ i`
|
|
|
192
194
|
<path d="M12 17v5"/>
|
|
193
195
|
<path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/>
|
|
194
196
|
`;
|
|
195
|
-
var
|
|
197
|
+
var Qe = i`
|
|
196
198
|
<path d="m16 17 5-5-5-5"/>
|
|
197
199
|
<path d="M21 12H9"/>
|
|
198
200
|
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/>
|
|
199
|
-
`,
|
|
201
|
+
`, $e = i`
|
|
200
202
|
<path d="M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6"/>
|
|
201
203
|
<path d="m21 3-9 9"/>
|
|
202
204
|
<path d="M15 3h6v6"/>
|
|
@@ -205,17 +207,17 @@ i`
|
|
|
205
207
|
<circle cx="12" cy="12" r="10"/>
|
|
206
208
|
<circle cx="12" cy="12" r="1"/>
|
|
207
209
|
`;
|
|
208
|
-
var
|
|
210
|
+
var et = i`
|
|
209
211
|
<path d="m7 15 5 5 5-5"/>
|
|
210
212
|
<path d="m7 9 5-5 5 5"/>
|
|
211
|
-
`,
|
|
213
|
+
`, tt = i`
|
|
212
214
|
<path d="m18 15-6-6-6 6"/>
|
|
213
215
|
`, k = i`
|
|
214
216
|
<path d="m6 9 6 6 6-6"/>
|
|
215
|
-
`,
|
|
217
|
+
`, nt = i`
|
|
216
218
|
<circle cx="11" cy="11" r="8"/>
|
|
217
219
|
<path d="m21 21-4.3-4.3"/>
|
|
218
|
-
`,
|
|
220
|
+
`, rt = i`
|
|
219
221
|
<circle cx="12" cy="12" r="10"/>
|
|
220
222
|
<path d="m15 9-6 6"/>
|
|
221
223
|
<path d="m9 9 6 6"/>
|
|
@@ -225,7 +227,7 @@ i`
|
|
|
225
227
|
<line x1="12" x2="12" y1="8" y2="12"/>
|
|
226
228
|
<line x1="12" x2="12.01" y1="16" y2="16"/>
|
|
227
229
|
`;
|
|
228
|
-
var
|
|
230
|
+
var it = i`
|
|
229
231
|
<path d="M12 16h.01"/>
|
|
230
232
|
<path d="M12 8v4"/>
|
|
231
233
|
<path d="M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z"/>
|
|
@@ -236,9 +238,13 @@ i`
|
|
|
236
238
|
`, i`
|
|
237
239
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.60982 1.03843C2.99778 0.96126 3.39992 1.00087 3.76537 1.15224C4.13082 1.30362 4.44318 1.55996 4.66294 1.88886C4.8827 2.21776 5 2.60444 5 3V4H7V3C7 2.60444 7.1173 2.21776 7.33706 1.88886C7.55682 1.55996 7.86918 1.30362 8.23463 1.15224C8.60009 1.00087 9.00222 0.96126 9.39018 1.03843C9.77814 1.1156 10.1345 1.30608 10.4142 1.58579C10.6939 1.86549 10.8844 2.22186 10.9616 2.60982C11.0387 2.99778 10.9991 3.39992 10.8478 3.76537C10.6964 4.13082 10.44 4.44318 10.1111 4.66294C9.78224 4.8827 9.39556 5 9 5H8V7H9C9.39556 7 9.78224 7.1173 10.1111 7.33706C10.44 7.55682 10.6964 7.86918 10.8478 8.23463C10.9991 8.60009 11.0387 9.00222 10.9616 9.39018C10.8844 9.77814 10.6939 10.1345 10.4142 10.4142C10.1345 10.6939 9.77814 10.8844 9.39018 10.9616C9.00222 11.0387 8.60009 10.9991 8.23463 10.8478C7.86918 10.6964 7.55682 10.44 7.33706 10.1111C7.1173 9.78224 7 9.39556 7 9V8H5V9C5 9.39556 4.8827 9.78224 4.66294 10.1111C4.44318 10.44 4.13082 10.6964 3.76537 10.8478C3.39992 10.9991 2.99778 11.0387 2.60982 10.9616C2.22186 10.8844 1.86549 10.6939 1.58579 10.4142C1.30608 10.1345 1.1156 9.77814 1.03843 9.39018C0.96126 9.00222 1.00087 8.60009 1.15224 8.23463C1.30362 7.86918 1.55996 7.55682 1.88886 7.33706C2.21776 7.1173 2.60444 7 3 7H4V5H3C2.60444 5 2.21776 4.8827 1.88886 4.66294C1.55996 4.44318 1.30362 4.13082 1.15224 3.76537C1.00087 3.39992 0.96126 2.99778 1.03843 2.60982C1.1156 2.22186 1.30608 1.86549 1.58579 1.58579C1.86549 1.30608 2.22186 1.1156 2.60982 1.03843ZM4 4V3C4 2.80222 3.94135 2.60888 3.83147 2.44443C3.72159 2.27998 3.56541 2.15181 3.38268 2.07612C3.19996 2.00043 2.99889 1.98063 2.80491 2.01922C2.61093 2.0578 2.43275 2.15304 2.29289 2.29289C2.15304 2.43275 2.0578 2.61093 2.01922 2.80491C1.98063 2.99889 2.00043 3.19996 2.07612 3.38268C2.15181 3.56541 2.27998 3.72159 2.44443 3.83147C2.60888 3.94135 2.80222 4 3 4H4ZM5 5V7H7V5H5ZM4 8H3C2.80222 8 2.60888 8.05865 2.44443 8.16853C2.27998 8.27841 2.15181 8.43459 2.07612 8.61732C2.00043 8.80004 1.98063 9.00111 2.01922 9.19509C2.0578 9.38907 2.15304 9.56726 2.29289 9.70711C2.43275 9.84696 2.61093 9.9422 2.80491 9.98079C2.99889 10.0194 3.19996 9.99957 3.38268 9.92388C3.56541 9.84819 3.72159 9.72002 3.83147 9.55557C3.94135 9.39112 4 9.19778 4 9V8ZM8 8V9C8 9.19778 8.05865 9.39112 8.16853 9.55557C8.27841 9.72002 8.43459 9.84819 8.61732 9.92388C8.80004 9.99957 9.00111 10.0194 9.19509 9.98079C9.38907 9.9422 9.56726 9.84696 9.70711 9.70711C9.84696 9.56726 9.9422 9.38907 9.98079 9.19509C10.0194 9.00111 9.99957 8.80004 9.92388 8.61732C9.84819 8.43459 9.72002 8.27841 9.55557 8.16853C9.39112 8.05865 9.19778 8 9 8H8ZM8 4H9C9.19778 4 9.39112 3.94135 9.55557 3.83147C9.72002 3.72159 9.84819 3.56541 9.92388 3.38268C9.99957 3.19996 10.0194 2.99889 9.98079 2.80491C9.9422 2.61093 9.84696 2.43275 9.70711 2.29289C9.56726 2.15304 9.38907 2.0578 9.19509 2.01922C9.00111 1.98063 8.80004 2.00043 8.61732 2.07612C8.43459 2.15181 8.27841 2.27998 8.16853 2.44443C8.05865 2.60888 8 2.80222 8 3V4Z"/>
|
|
238
240
|
`;
|
|
239
|
-
var
|
|
241
|
+
var at = i`
|
|
240
242
|
<path d="m9 18 6-6-6-6"/>
|
|
241
|
-
|
|
243
|
+
`;
|
|
244
|
+
i`<path d="M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3"/>`, i`<path d="M9 19a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-6a1 1 0 0 1 1-1h3.293a.707.707 0 0 0 .5-1.207l-7.086-7.086a1 1 0 0 0-1.414 0l-7.086 7.086a.707.707 0 0 0 .5 1.207H8a1 1 0 0 1 1 1z"/>`;
|
|
245
|
+
//#endregion
|
|
246
|
+
//#region node_modules/@lit/context/lib/context-request-event.js
|
|
247
|
+
var ot = class extends Event {
|
|
242
248
|
constructor(e, t, n, r) {
|
|
243
249
|
super("context-request", {
|
|
244
250
|
bubbles: !0,
|
|
@@ -248,12 +254,12 @@ var it = i`
|
|
|
248
254
|
};
|
|
249
255
|
//#endregion
|
|
250
256
|
//#region node_modules/@lit/context/lib/create-context.js
|
|
251
|
-
function
|
|
257
|
+
function st(e) {
|
|
252
258
|
return e;
|
|
253
259
|
}
|
|
254
260
|
//#endregion
|
|
255
261
|
//#region node_modules/@lit/context/lib/controllers/context-consumer.js
|
|
256
|
-
var
|
|
262
|
+
var ct = class {
|
|
257
263
|
constructor(e, t, n, r) {
|
|
258
264
|
if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (e, t) => {
|
|
259
265
|
this.unsubscribe && (this.unsubscribe !== t && (this.provided = !1, this.unsubscribe()), this.subscribe || this.unsubscribe()), this.value = e, this.host.requestUpdate(), this.provided && !this.subscribe || (this.provided = !0, this.callback && this.callback(e, t)), this.unsubscribe = t;
|
|
@@ -270,9 +276,9 @@ var st = class {
|
|
|
270
276
|
this.unsubscribe &&= (this.unsubscribe(), void 0);
|
|
271
277
|
}
|
|
272
278
|
dispatchRequest() {
|
|
273
|
-
this.host.dispatchEvent(new
|
|
279
|
+
this.host.dispatchEvent(new ot(this.context, this.host, this.t, this.subscribe));
|
|
274
280
|
}
|
|
275
|
-
},
|
|
281
|
+
}, lt = class {
|
|
276
282
|
get value() {
|
|
277
283
|
return this.o;
|
|
278
284
|
}
|
|
@@ -302,14 +308,14 @@ var st = class {
|
|
|
302
308
|
clearCallbacks() {
|
|
303
309
|
this.subscriptions.clear();
|
|
304
310
|
}
|
|
305
|
-
},
|
|
311
|
+
}, ut = class extends Event {
|
|
306
312
|
constructor(e, t) {
|
|
307
313
|
super("context-provider", {
|
|
308
314
|
bubbles: !0,
|
|
309
315
|
composed: !0
|
|
310
316
|
}), this.context = e, this.contextTarget = t;
|
|
311
317
|
}
|
|
312
|
-
},
|
|
318
|
+
}, dt = class extends lt {
|
|
313
319
|
constructor(e, t, n) {
|
|
314
320
|
super(t.context === void 0 ? n : t.initialValue), this.onContextRequest = (e) => {
|
|
315
321
|
if (e.context !== this.context) return;
|
|
@@ -318,7 +324,7 @@ var st = class {
|
|
|
318
324
|
}, this.onProviderRequest = (e) => {
|
|
319
325
|
if (e.context !== this.context || (e.contextTarget ?? e.composedPath()[0]) === this.host) return;
|
|
320
326
|
let t = /* @__PURE__ */ new Set();
|
|
321
|
-
for (let [e, { consumerHost: n }] of this.subscriptions) t.has(e) || (t.add(e), n.dispatchEvent(new
|
|
327
|
+
for (let [e, { consumerHost: n }] of this.subscriptions) t.has(e) || (t.add(e), n.dispatchEvent(new ot(this.context, n, e, !0)));
|
|
322
328
|
e.stopPropagation();
|
|
323
329
|
}, this.host = e, t.context === void 0 ? this.context = t : this.context = t.context, this.attachListeners(), this.host.addController?.(this);
|
|
324
330
|
}
|
|
@@ -326,12 +332,12 @@ var st = class {
|
|
|
326
332
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
327
333
|
}
|
|
328
334
|
hostConnected() {
|
|
329
|
-
this.host.dispatchEvent(new
|
|
335
|
+
this.host.dispatchEvent(new ut(this.context, this.host));
|
|
330
336
|
}
|
|
331
337
|
};
|
|
332
338
|
//#endregion
|
|
333
339
|
//#region node_modules/@lit/context/lib/decorators/provide.js
|
|
334
|
-
function
|
|
340
|
+
function ft({ context: e }) {
|
|
335
341
|
return (t, n) => {
|
|
336
342
|
let r = /* @__PURE__ */ new WeakMap();
|
|
337
343
|
if (typeof n == "object") return {
|
|
@@ -342,7 +348,7 @@ function dt({ context: e }) {
|
|
|
342
348
|
return r.get(this).setValue(e), t.set.call(this, e);
|
|
343
349
|
},
|
|
344
350
|
init(t) {
|
|
345
|
-
return r.set(this, new
|
|
351
|
+
return r.set(this, new dt(this, {
|
|
346
352
|
context: e,
|
|
347
353
|
initialValue: t
|
|
348
354
|
})), t;
|
|
@@ -350,7 +356,7 @@ function dt({ context: e }) {
|
|
|
350
356
|
};
|
|
351
357
|
{
|
|
352
358
|
t.constructor.addInitializer(((t) => {
|
|
353
|
-
r.set(t, new
|
|
359
|
+
r.set(t, new dt(t, { context: e }));
|
|
354
360
|
}));
|
|
355
361
|
let i = Object.getOwnPropertyDescriptor(t, n), a;
|
|
356
362
|
if (i === void 0) {
|
|
@@ -381,10 +387,10 @@ function dt({ context: e }) {
|
|
|
381
387
|
}
|
|
382
388
|
//#endregion
|
|
383
389
|
//#region node_modules/@lit/context/lib/decorators/consume.js
|
|
384
|
-
function
|
|
390
|
+
function pt({ context: e, subscribe: t }) {
|
|
385
391
|
return (n, r) => {
|
|
386
392
|
typeof r == "object" ? r.addInitializer((function() {
|
|
387
|
-
new
|
|
393
|
+
new ct(this, {
|
|
388
394
|
context: e,
|
|
389
395
|
callback: (e) => {
|
|
390
396
|
n.set.call(this, e);
|
|
@@ -392,7 +398,7 @@ function ft({ context: e, subscribe: t }) {
|
|
|
392
398
|
subscribe: t
|
|
393
399
|
});
|
|
394
400
|
})) : n.constructor.addInitializer(((n) => {
|
|
395
|
-
new
|
|
401
|
+
new ct(n, {
|
|
396
402
|
context: e,
|
|
397
403
|
callback: (e) => {
|
|
398
404
|
n[r] = e;
|
|
@@ -410,11 +416,11 @@ function A(e) {
|
|
|
410
416
|
function j(e) {
|
|
411
417
|
return "items" in e;
|
|
412
418
|
}
|
|
413
|
-
var
|
|
419
|
+
var mt = class e extends Error {
|
|
414
420
|
constructor(t) {
|
|
415
421
|
super(t), this.name = "SearchError", Object.setPrototypeOf(this, e.prototype);
|
|
416
422
|
}
|
|
417
|
-
},
|
|
423
|
+
}, ht = st("activeId"), gt = st(Symbol("focus-manager"));
|
|
418
424
|
//#endregion
|
|
419
425
|
//#region \0@oxc-project+runtime@0.127.0/helpers/decorate.js
|
|
420
426
|
function M(e, t, n, r) {
|
|
@@ -505,7 +511,7 @@ var N, P = class extends e {
|
|
|
505
511
|
<div class="ga-tooltip ga-tooltip--right-center w-34 max-w-135">${this.tree?.label}</div>
|
|
506
512
|
</div>
|
|
507
513
|
<span class="ga-side-navigation__item-icon">
|
|
508
|
-
${e ? this._isExpanded ? O(k, 16) : O(
|
|
514
|
+
${e ? this._isExpanded ? O(k, 16) : O(at, 16) : ""}
|
|
509
515
|
</span>
|
|
510
516
|
<div class="ga-side-navigation__item-content">
|
|
511
517
|
<div class="ga-side-navigation__item-label">${this.tree?.label}</div>
|
|
@@ -574,10 +580,10 @@ var N, P = class extends e {
|
|
|
574
580
|
}
|
|
575
581
|
}
|
|
576
582
|
};
|
|
577
|
-
M([s({ attribute: !1 })], P.prototype, "tree", void 0), M([s({ type: Number })], P.prototype, "level", void 0), M([
|
|
578
|
-
context:
|
|
583
|
+
M([s({ attribute: !1 })], P.prototype, "tree", void 0), M([s({ type: Number })], P.prototype, "level", void 0), M([pt({
|
|
584
|
+
context: ht,
|
|
579
585
|
subscribe: !0
|
|
580
|
-
}), l()], P.prototype, "_currentActiveId", void 0), M([l()], P.prototype, "_isActive", void 0), M([l()], P.prototype, "_isExpanded", void 0), M([l()], P.prototype, "_showTooltip", void 0), M([l()], P.prototype, "_tooltipPos", void 0), M([c(".ga-side-navigation__item-label")], P.prototype, "_labelEl", void 0), M([
|
|
586
|
+
}), l()], P.prototype, "_currentActiveId", void 0), M([l()], P.prototype, "_isActive", void 0), M([l()], P.prototype, "_isExpanded", void 0), M([l()], P.prototype, "_showTooltip", void 0), M([l()], P.prototype, "_tooltipPos", void 0), M([c(".ga-side-navigation__item-label")], P.prototype, "_labelEl", void 0), M([pt({ context: gt })], P.prototype, "_focusManager", void 0), M([s({ type: Boolean })], P.prototype, "hasPageTitle", void 0), P = N = M([o("vsn-menu-item")], P);
|
|
581
587
|
//#endregion
|
|
582
588
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu.ts
|
|
583
589
|
var F = class extends e {
|
|
@@ -618,7 +624,7 @@ var F = class extends e {
|
|
|
618
624
|
<vsn-menu-item .tree=${e} .hasPageTitle=${this.hasPageTitle}></vsn-menu-item>`;
|
|
619
625
|
}
|
|
620
626
|
};
|
|
621
|
-
M([s({ attribute: !1 })], F.prototype, "items", void 0), M([
|
|
627
|
+
M([s({ attribute: !1 })], F.prototype, "items", void 0), M([ft({ context: ht }), l()], F.prototype, "_currentActiveId", void 0), M([s()], F.prototype, "currentItem", void 0), M([s({ type: Boolean })], F.prototype, "hasPageTitle", void 0), M([ft({ context: gt })], F.prototype, "_focusManager", void 0), F = M([v(), o("vsn-menu")], F);
|
|
622
628
|
//#endregion
|
|
623
629
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-button.ts
|
|
624
630
|
var I = class extends e {
|
|
@@ -743,7 +749,7 @@ M([s()], I.prototype, "label", void 0), M([s({
|
|
|
743
749
|
})], I.prototype, "closeOnClick", void 0), I = M([o("vsn-menu-button")], I);
|
|
744
750
|
//#endregion
|
|
745
751
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-separator.ts
|
|
746
|
-
var
|
|
752
|
+
var _t = class extends e {
|
|
747
753
|
static {
|
|
748
754
|
this.styles = [t`
|
|
749
755
|
/* flow-root establishes a BFC so the .line's margins stay contained.
|
|
@@ -767,10 +773,10 @@ var gt = class extends e {
|
|
|
767
773
|
return n`<div class="line"></div>`;
|
|
768
774
|
}
|
|
769
775
|
};
|
|
770
|
-
|
|
776
|
+
_t = M([o("vsn-menu-separator")], _t);
|
|
771
777
|
//#endregion
|
|
772
778
|
//#region src/components/vsn-side-bar/vsn-footer/vsn-footer.keyboard.ts
|
|
773
|
-
var
|
|
779
|
+
var vt = class {
|
|
774
780
|
constructor(e) {
|
|
775
781
|
this._prevExpanded = !1, this.onUserKeydown = (e) => {
|
|
776
782
|
e.defaultPrevented || w(e) || e.key === "Escape" && this.host.expanded && (e.preventDefault(), this.host.expanded = !1);
|
|
@@ -794,7 +800,7 @@ var _t = class {
|
|
|
794
800
|
} else !this.host.expanded && this._prevExpanded && this.host.querySelector(".ga-side-navigation__user")?.focus();
|
|
795
801
|
this._prevExpanded = this.host.expanded;
|
|
796
802
|
}
|
|
797
|
-
},
|
|
803
|
+
}, yt = class {
|
|
798
804
|
constructor(e, t, n) {
|
|
799
805
|
this._onPointerDown = (e) => {
|
|
800
806
|
let t = e.composedPath();
|
|
@@ -811,11 +817,11 @@ var _t = class {
|
|
|
811
817
|
hostDisconnected() {
|
|
812
818
|
document.removeEventListener("pointerdown", this._onPointerDown, !0);
|
|
813
819
|
}
|
|
814
|
-
},
|
|
815
|
-
function
|
|
820
|
+
}, bt = "initials";
|
|
821
|
+
function xt(e, t, n, r) {
|
|
816
822
|
if (!t) return;
|
|
817
823
|
let i = new URLSearchParams({
|
|
818
|
-
type:
|
|
824
|
+
type: bt,
|
|
819
825
|
size: r
|
|
820
826
|
});
|
|
821
827
|
return n && i.set("client_id", n), `${e}${t}?${i}`;
|
|
@@ -841,10 +847,10 @@ var L = class {
|
|
|
841
847
|
hostUpdated() {
|
|
842
848
|
this._rootElement == null && this._rootSelector && (this._rootElement = this._host.renderRoot.querySelector(this._rootSelector), this._rootElement != null && this._rootElement.addEventListener("keydown", this._onKeyDown));
|
|
843
849
|
}
|
|
844
|
-
},
|
|
845
|
-
profile:
|
|
846
|
-
logout:
|
|
847
|
-
},
|
|
850
|
+
}, St = {
|
|
851
|
+
profile: Ze,
|
|
852
|
+
logout: Qe
|
|
853
|
+
}, Ct = () => ({
|
|
848
854
|
profile: _("My profile"),
|
|
849
855
|
logout: _("Log out")
|
|
850
856
|
}), R = class extends e {
|
|
@@ -854,11 +860,11 @@ var L = class {
|
|
|
854
860
|
get _items() {
|
|
855
861
|
return [{
|
|
856
862
|
id: "profile",
|
|
857
|
-
label:
|
|
863
|
+
label: Ct().profile,
|
|
858
864
|
url: this.myProfileUrl
|
|
859
865
|
}, {
|
|
860
866
|
id: "logout",
|
|
861
|
-
label:
|
|
867
|
+
label: Ct().logout,
|
|
862
868
|
url: "/logout"
|
|
863
869
|
}];
|
|
864
870
|
}
|
|
@@ -888,7 +894,7 @@ var L = class {
|
|
|
888
894
|
});
|
|
889
895
|
}, this._onLabelMouseLeave = () => {
|
|
890
896
|
this._showTooltip = !1;
|
|
891
|
-
}, this._keyboard = new
|
|
897
|
+
}, this._keyboard = new vt(this), new yt(this, [".ga-side-navigation__footer-dropdown", ".ga-side-navigation__user"], () => {
|
|
892
898
|
this.expanded = !1;
|
|
893
899
|
}), new L(this, () => this.expanded);
|
|
894
900
|
}
|
|
@@ -928,7 +934,7 @@ var L = class {
|
|
|
928
934
|
</div>
|
|
929
935
|
|
|
930
936
|
<span class="ga-side-navigation__user-action">
|
|
931
|
-
${this.expanded ? O(
|
|
937
|
+
${this.expanded ? O(tt, 16) : O(et, 16)}
|
|
932
938
|
</span>
|
|
933
939
|
|
|
934
940
|
</button>
|
|
@@ -950,14 +956,14 @@ var L = class {
|
|
|
950
956
|
${this._items.map((e) => {
|
|
951
957
|
let t = n`
|
|
952
958
|
<span class="ga-side-navigation__footer-dropdown-icon">
|
|
953
|
-
${O(
|
|
959
|
+
${O(St[e.id], 16)}
|
|
954
960
|
</span>
|
|
955
961
|
<span class="ga-side-navigation__footer-dropdown-title">
|
|
956
962
|
${e.label}
|
|
957
963
|
</span>
|
|
958
964
|
${e.external ? n`
|
|
959
965
|
<span class="ga-side-navigation__footer-dropdown-trail">
|
|
960
|
-
${O(
|
|
966
|
+
${O($e, 16)}
|
|
961
967
|
</span>
|
|
962
968
|
` : r}
|
|
963
969
|
`;
|
|
@@ -997,7 +1003,7 @@ var L = class {
|
|
|
997
1003
|
}));
|
|
998
1004
|
}
|
|
999
1005
|
renderAvatar() {
|
|
1000
|
-
let e =
|
|
1006
|
+
let e = xt(this.profilePictureBaseUrl, this.user.userId, this.user.clientId, "small");
|
|
1001
1007
|
return e && !this._avatarFailed ? n`<img
|
|
1002
1008
|
class="ga-side-navigation__user-avatar"
|
|
1003
1009
|
src=${e}
|
|
@@ -1005,7 +1011,7 @@ var L = class {
|
|
|
1005
1011
|
@error=${() => {
|
|
1006
1012
|
this._avatarFailed = !0;
|
|
1007
1013
|
}}/>` : n`<span class="ga-side-navigation__user-avatar vsn-side-navigation__user-avatar--icon">
|
|
1008
|
-
${O(
|
|
1014
|
+
${O(Ze, 24)}
|
|
1009
1015
|
</span>`;
|
|
1010
1016
|
}
|
|
1011
1017
|
};
|
|
@@ -1015,16 +1021,16 @@ M([s({ attribute: !1 })], R.prototype, "user", void 0), M([s()], R.prototype, "p
|
|
|
1015
1021
|
})], R.prototype, "expanded", void 0), M([l()], R.prototype, "_avatarFailed", void 0), M([l()], R.prototype, "_showTooltip", void 0), M([l()], R.prototype, "_tooltipLabel", void 0), M([l()], R.prototype, "_tooltipPos", void 0), R = M([v(), o("vsn-footer")], R);
|
|
1016
1022
|
//#endregion
|
|
1017
1023
|
//#region src/components/vsn-side-bar/vsn-header/vsn-header.keyboard.ts
|
|
1018
|
-
var
|
|
1024
|
+
var wt = class {
|
|
1019
1025
|
constructor(e) {
|
|
1020
1026
|
this.onSwitcherKeydown = (e) => {
|
|
1021
1027
|
e.defaultPrevented || w(e) || this.host.expanded && e.key === "Escape" && this.host.requestClose() && e.preventDefault();
|
|
1022
1028
|
}, this.host = e, e.addController(this);
|
|
1023
1029
|
}
|
|
1024
1030
|
hostConnected() {}
|
|
1025
|
-
},
|
|
1031
|
+
}, Tt, z = class extends e {
|
|
1026
1032
|
static {
|
|
1027
|
-
|
|
1033
|
+
Tt = this;
|
|
1028
1034
|
}
|
|
1029
1035
|
createRenderRoot() {
|
|
1030
1036
|
return this;
|
|
@@ -1046,7 +1052,7 @@ var Ct = class {
|
|
|
1046
1052
|
if (t.length === 0) return;
|
|
1047
1053
|
let n = this.getRootNode().activeElement, r = n instanceof HTMLElement ? t.indexOf(n) : -1, i = null;
|
|
1048
1054
|
e.key === "ArrowUp" && r > 0 ? i = t[r - 1] : e.key === "ArrowDown" && r < t.length - 1 && (i = t[r + 1]), i?.focus();
|
|
1049
|
-
}, this._headerId = `vsn-switcher-dropdown-header-${
|
|
1055
|
+
}, this._headerId = `vsn-switcher-dropdown-header-${Tt._idCounter++}`;
|
|
1050
1056
|
}
|
|
1051
1057
|
firstUpdated() {
|
|
1052
1058
|
this.focus();
|
|
@@ -1090,7 +1096,7 @@ var Ct = class {
|
|
|
1090
1096
|
`;
|
|
1091
1097
|
}
|
|
1092
1098
|
};
|
|
1093
|
-
M([s({ attribute: !1 })], z.prototype, "items", void 0), M([s({ type: Boolean })], z.prototype, "loading", void 0), M([s({ attribute: !1 })], z.prototype, "maxHeight", void 0), z =
|
|
1099
|
+
M([s({ attribute: !1 })], z.prototype, "items", void 0), M([s({ type: Boolean })], z.prototype, "loading", void 0), M([s({ attribute: !1 })], z.prototype, "maxHeight", void 0), z = Tt = M([v(), o("vsn-switcher-menu")], z);
|
|
1094
1100
|
//#endregion
|
|
1095
1101
|
//#region src/components/vsn-side-bar/vsn-search/vsn-search.ts
|
|
1096
1102
|
var B = class extends e {
|
|
@@ -1127,7 +1133,7 @@ var B = class extends e {
|
|
|
1127
1133
|
aria-label=${_("Search")}
|
|
1128
1134
|
?disabled=${!this._canSearch}
|
|
1129
1135
|
@click=${this._emitSearch}>
|
|
1130
|
-
${O(
|
|
1136
|
+
${O(nt, 24)}
|
|
1131
1137
|
</button>
|
|
1132
1138
|
<input type="search"
|
|
1133
1139
|
.placeholder=${je()}
|
|
@@ -1137,7 +1143,7 @@ var B = class extends e {
|
|
|
1137
1143
|
${this._trailingSlot()}
|
|
1138
1144
|
</div>
|
|
1139
1145
|
${f(e, () => n`
|
|
1140
|
-
<div class="vsn-search__helper">${
|
|
1146
|
+
<div class="vsn-search__helper">${Fe(3)}</div>`)}
|
|
1141
1147
|
`;
|
|
1142
1148
|
}
|
|
1143
1149
|
focus() {
|
|
@@ -1176,7 +1182,7 @@ var B = class extends e {
|
|
|
1176
1182
|
return n`
|
|
1177
1183
|
<button class="vsn-search__clear" aria-label=${_("Clear search")}
|
|
1178
1184
|
@click=${this._emitSearchCleared}>
|
|
1179
|
-
${O(
|
|
1185
|
+
${O(rt, 16)}
|
|
1180
1186
|
</button>
|
|
1181
1187
|
`;
|
|
1182
1188
|
}
|
|
@@ -1192,7 +1198,7 @@ var V = class extends e {
|
|
|
1192
1198
|
return this;
|
|
1193
1199
|
}
|
|
1194
1200
|
constructor() {
|
|
1195
|
-
super(), this.modules = [], this.modulesLoading = !1, this.moduleSwitcherAlwaysOpen = !1, this.moduleSwitcherMaxHeight = 0, this.searchValue = "", this.searchLoading = !1, this.expanded = !1, this._keyboard = new
|
|
1201
|
+
super(), this.modules = [], this.modulesLoading = !1, this.moduleSwitcherAlwaysOpen = !1, this.moduleSwitcherMaxHeight = 0, this.searchValue = "", this.searchLoading = !1, this.expanded = !1, this._keyboard = new wt(this), new yt(this, [".ga-side-navigation__switcher-dropdown", ".ga-side-navigation__switcher"], () => {
|
|
1196
1202
|
this.canClose && (this.expanded = !1);
|
|
1197
1203
|
}), new L(this, () => this.canClose && this.expanded, ".vsn-switcher-anchor");
|
|
1198
1204
|
}
|
|
@@ -1215,7 +1221,7 @@ var V = class extends e {
|
|
|
1215
1221
|
title="">
|
|
1216
1222
|
<span class="ga-side-navigation__switcher-title">${e.title}</span>
|
|
1217
1223
|
<span class="ga-side-navigation__switcher-action">
|
|
1218
|
-
${this.expanded ? O(k, 16) : O(
|
|
1224
|
+
${this.expanded ? O(k, 16) : O(et, 16)}
|
|
1219
1225
|
</span>
|
|
1220
1226
|
</button>
|
|
1221
1227
|
` : n`
|
|
@@ -1225,7 +1231,7 @@ var V = class extends e {
|
|
|
1225
1231
|
title="">
|
|
1226
1232
|
<span class="ga-side-navigation__switcher-title">${e.title}</span>
|
|
1227
1233
|
<span class="ga-side-navigation__switcher-action">
|
|
1228
|
-
${O(
|
|
1234
|
+
${O(Ue, 16)}
|
|
1229
1235
|
</span>
|
|
1230
1236
|
</div>
|
|
1231
1237
|
`}
|
|
@@ -1251,7 +1257,7 @@ var V = class extends e {
|
|
|
1251
1257
|
get _state() {
|
|
1252
1258
|
if (this.modulesLoading) return {
|
|
1253
1259
|
kind: "module-loading",
|
|
1254
|
-
title: this.activeModuleLabel ||
|
|
1260
|
+
title: this.activeModuleLabel || Re()
|
|
1255
1261
|
};
|
|
1256
1262
|
let e = this.modules.find((e) => e.id === this.activeModuleId);
|
|
1257
1263
|
return e ? {
|
|
@@ -1260,7 +1266,7 @@ var V = class extends e {
|
|
|
1260
1266
|
available: this.modules.filter((t) => t.id !== e.id)
|
|
1261
1267
|
} : {
|
|
1262
1268
|
kind: "module-unmatched",
|
|
1263
|
-
title: this.activeModuleId && this.activeModuleLabel ? this.activeModuleLabel :
|
|
1269
|
+
title: this.activeModuleId && this.activeModuleLabel ? this.activeModuleLabel : Re(),
|
|
1264
1270
|
available: this.modules
|
|
1265
1271
|
};
|
|
1266
1272
|
}
|
|
@@ -1306,7 +1312,7 @@ M([s({ attribute: !1 })], V.prototype, "modules", void 0), M([s()], V.prototype,
|
|
|
1306
1312
|
})], V.prototype, "expanded", void 0), V = M([v(), o("vsn-header")], V);
|
|
1307
1313
|
//#endregion
|
|
1308
1314
|
//#region src/components/vsn-side-bar/vsn-search-results/vsn-search-results.keyboard.ts
|
|
1309
|
-
var
|
|
1315
|
+
var Et = class {
|
|
1310
1316
|
constructor(e) {
|
|
1311
1317
|
this.onResultsKeydown = (e) => {
|
|
1312
1318
|
if (e.defaultPrevented || w(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
@@ -1320,9 +1326,9 @@ var Tt = class {
|
|
|
1320
1326
|
}, this.host = e, e.addController(this);
|
|
1321
1327
|
}
|
|
1322
1328
|
hostConnected() {}
|
|
1323
|
-
},
|
|
1329
|
+
}, Dt, H = class extends e {
|
|
1324
1330
|
static {
|
|
1325
|
-
|
|
1331
|
+
Dt = this;
|
|
1326
1332
|
}
|
|
1327
1333
|
createRenderRoot() {
|
|
1328
1334
|
return this;
|
|
@@ -1344,7 +1350,7 @@ var Tt = class {
|
|
|
1344
1350
|
}
|
|
1345
1351
|
}, this._onItemMouseLeave = () => {
|
|
1346
1352
|
this._showTooltip = !1;
|
|
1347
|
-
}, this._tooltipId = `vsn-search-result-item-tooltip-${
|
|
1353
|
+
}, this._tooltipId = `vsn-search-result-item-tooltip-${Dt._idCounter++}`;
|
|
1348
1354
|
}
|
|
1349
1355
|
render() {
|
|
1350
1356
|
let e = this.item;
|
|
@@ -1378,12 +1384,12 @@ var Tt = class {
|
|
|
1378
1384
|
}));
|
|
1379
1385
|
}
|
|
1380
1386
|
};
|
|
1381
|
-
M([s({ attribute: !1 })], H.prototype, "item", void 0), M([l()], H.prototype, "_showTooltip", void 0), M([l()], H.prototype, "_tooltipPos", void 0), M([c(".ga-side-navigation__search-results-item-label")], H.prototype, "_labelEl", void 0), H =
|
|
1387
|
+
M([s({ attribute: !1 })], H.prototype, "item", void 0), M([l()], H.prototype, "_showTooltip", void 0), M([l()], H.prototype, "_tooltipPos", void 0), M([c(".ga-side-navigation__search-results-item-label")], H.prototype, "_labelEl", void 0), H = Dt = M([o("vsn-search-result-item")], H);
|
|
1382
1388
|
//#endregion
|
|
1383
1389
|
//#region src/components/vsn-side-bar/vsn-search-results/vsn-search-results.ts
|
|
1384
1390
|
var U = class extends e {
|
|
1385
1391
|
constructor(...e) {
|
|
1386
|
-
super(...e), this.loadingMore = !1, this._keyboard = new
|
|
1392
|
+
super(...e), this.loadingMore = !1, this._keyboard = new Et(this);
|
|
1387
1393
|
}
|
|
1388
1394
|
createRenderRoot() {
|
|
1389
1395
|
return this;
|
|
@@ -1425,7 +1431,7 @@ var U = class extends e {
|
|
|
1425
1431
|
class="vsn-search-results__load-more"
|
|
1426
1432
|
?disabled=${this.loadingMore}
|
|
1427
1433
|
@click=${this._onLoadMore}>
|
|
1428
|
-
${
|
|
1434
|
+
${Le()}
|
|
1429
1435
|
</button>
|
|
1430
1436
|
`)}
|
|
1431
1437
|
</div>
|
|
@@ -1441,13 +1447,13 @@ var U = class extends e {
|
|
|
1441
1447
|
M([s({ attribute: !1 })], U.prototype, "results", void 0), M([s()], U.prototype, "errorMessage", void 0), M([s()], U.prototype, "nextCursor", void 0), M([s({ type: Boolean })], U.prototype, "loadingMore", void 0), U = M([v(), o("vsn-search-results")], U);
|
|
1442
1448
|
//#endregion
|
|
1443
1449
|
//#region src/components/vsn-side-bar/vsn-template/vsn-template.ts
|
|
1444
|
-
var
|
|
1450
|
+
var Ot = [
|
|
1445
1451
|
160,
|
|
1446
1452
|
96,
|
|
1447
1453
|
144,
|
|
1448
1454
|
192,
|
|
1449
1455
|
160
|
|
1450
|
-
],
|
|
1456
|
+
], kt = class extends e {
|
|
1451
1457
|
createRenderRoot() {
|
|
1452
1458
|
return this;
|
|
1453
1459
|
}
|
|
@@ -1457,7 +1463,7 @@ var Dt = [
|
|
|
1457
1463
|
role="status"
|
|
1458
1464
|
aria-busy="true"
|
|
1459
1465
|
aria-label=${_("Loading results")}>
|
|
1460
|
-
${
|
|
1466
|
+
${Ot.map((e) => n`
|
|
1461
1467
|
<div class="vsn-template__row">
|
|
1462
1468
|
<div class="vsn-template__bar" style="width: ${e}px"></div>
|
|
1463
1469
|
</div>
|
|
@@ -1466,17 +1472,17 @@ var Dt = [
|
|
|
1466
1472
|
`;
|
|
1467
1473
|
}
|
|
1468
1474
|
};
|
|
1469
|
-
|
|
1475
|
+
kt = M([v(), o("vsn-template")], kt);
|
|
1470
1476
|
//#endregion
|
|
1471
1477
|
//#region src/components/vsn-side-bar/vsn-error-state/vsn-error-state.ts
|
|
1472
|
-
var
|
|
1478
|
+
var At = class extends e {
|
|
1473
1479
|
createRenderRoot() {
|
|
1474
1480
|
return this;
|
|
1475
1481
|
}
|
|
1476
1482
|
render() {
|
|
1477
1483
|
return n`
|
|
1478
1484
|
<div class="vsn-error-state" role="alert" aria-live="assertive">
|
|
1479
|
-
<div class="vsn-error-state__icon">${O(
|
|
1485
|
+
<div class="vsn-error-state__icon">${O(it, 24)}</div>
|
|
1480
1486
|
<div class="vsn-error-state__title">${_("Loading error")}</div>
|
|
1481
1487
|
<div class="vsn-error-state__message">${_("We're unable to load the menu.")}</div>
|
|
1482
1488
|
<div class="vsn-error-state__hint">${_("Please check your internet connection and try again.")}</div>
|
|
@@ -1485,15 +1491,15 @@ var kt = class extends e {
|
|
|
1485
1491
|
`;
|
|
1486
1492
|
}
|
|
1487
1493
|
};
|
|
1488
|
-
|
|
1494
|
+
At = M([v(), o("vsn-error-state")], At);
|
|
1489
1495
|
//#endregion
|
|
1490
1496
|
//#region src/components/vsn-side-bar/vsn-search-scopes/vsn-search-scopes.ts
|
|
1491
|
-
var
|
|
1497
|
+
var jt, W = class extends e {
|
|
1492
1498
|
static {
|
|
1493
|
-
|
|
1499
|
+
jt = this;
|
|
1494
1500
|
}
|
|
1495
1501
|
constructor(...e) {
|
|
1496
|
-
super(...e), this.scopes = [], this.selectedScopeId = "", this._name = `vsn-search-scope-${++
|
|
1502
|
+
super(...e), this.scopes = [], this.selectedScopeId = "", this._name = `vsn-search-scope-${++jt._counter}`;
|
|
1497
1503
|
}
|
|
1498
1504
|
createRenderRoot() {
|
|
1499
1505
|
return this;
|
|
@@ -1531,16 +1537,16 @@ var At, W = class extends e {
|
|
|
1531
1537
|
}));
|
|
1532
1538
|
}
|
|
1533
1539
|
};
|
|
1534
|
-
M([s({ attribute: !1 })], W.prototype, "scopes", void 0), M([s()], W.prototype, "selectedScopeId", void 0), W =
|
|
1540
|
+
M([s({ attribute: !1 })], W.prototype, "scopes", void 0), M([s()], W.prototype, "selectedScopeId", void 0), W = jt = M([v(), o("vsn-search-scopes")], W);
|
|
1535
1541
|
//#endregion
|
|
1536
1542
|
//#region src/shared/lang/locale-codes.ts
|
|
1537
|
-
var
|
|
1543
|
+
var Mt = "en", Nt = [
|
|
1538
1544
|
"da",
|
|
1539
1545
|
"fi",
|
|
1540
1546
|
"nl",
|
|
1541
1547
|
"no",
|
|
1542
1548
|
"sv"
|
|
1543
|
-
],
|
|
1549
|
+
], Pt = /* @__PURE__ */ p({ templates: () => Ft }), Ft = {
|
|
1544
1550
|
s09a45db408570a7a: "Min profil",
|
|
1545
1551
|
s119f9875b7d4cdfc: "Har du brug for hjælp? Kontakt support.",
|
|
1546
1552
|
s1228605ee65ddefa: g`${0} resultat`,
|
|
@@ -1579,7 +1585,7 @@ var jt = "en", Mt = [
|
|
|
1579
1585
|
sf55d634dcc743595: "Tjenester",
|
|
1580
1586
|
sfbf31f663cef6cc2: "Prøv andre søgeord eller tjek stavningen.",
|
|
1581
1587
|
s38385cd359b17f7a: "Loading modules"
|
|
1582
|
-
},
|
|
1588
|
+
}, It = /* @__PURE__ */ p({ templates: () => Lt }), Lt = {
|
|
1583
1589
|
s09a45db408570a7a: "Oma profiili",
|
|
1584
1590
|
s119f9875b7d4cdfc: "Tarvitsetko apua? Ota yhteyttä tukeen.",
|
|
1585
1591
|
s1228605ee65ddefa: g`${0} tulos`,
|
|
@@ -1618,7 +1624,7 @@ var jt = "en", Mt = [
|
|
|
1618
1624
|
sf55d634dcc743595: "Palvelut",
|
|
1619
1625
|
sfbf31f663cef6cc2: "Kokeile eri hakusanoja tai tarkista kirjoitusasu.",
|
|
1620
1626
|
s38385cd359b17f7a: "Loading modules"
|
|
1621
|
-
},
|
|
1627
|
+
}, Rt = /* @__PURE__ */ p({ templates: () => zt }), zt = {
|
|
1622
1628
|
s09a45db408570a7a: "Mijn profiel",
|
|
1623
1629
|
s119f9875b7d4cdfc: "Hulp nodig? Neem contact op met ondersteuning.",
|
|
1624
1630
|
s1228605ee65ddefa: g`${0} resultaat`,
|
|
@@ -1657,7 +1663,7 @@ var jt = "en", Mt = [
|
|
|
1657
1663
|
sf55d634dcc743595: "Services",
|
|
1658
1664
|
sfbf31f663cef6cc2: "Probeer andere zoekwoorden of controleer de spelling.",
|
|
1659
1665
|
s38385cd359b17f7a: "Loading modules"
|
|
1660
|
-
},
|
|
1666
|
+
}, Bt = /* @__PURE__ */ p({ templates: () => Vt }), Vt = {
|
|
1661
1667
|
s09a45db408570a7a: "Min profil",
|
|
1662
1668
|
s119f9875b7d4cdfc: "Trenger du hjelp? Kontakt støtte.",
|
|
1663
1669
|
s1228605ee65ddefa: g`${0} resultat`,
|
|
@@ -1696,7 +1702,7 @@ var jt = "en", Mt = [
|
|
|
1696
1702
|
sf55d634dcc743595: "Tjenester",
|
|
1697
1703
|
sfbf31f663cef6cc2: "Prøv andre søkeord eller sjekk stavemåten.",
|
|
1698
1704
|
s38385cd359b17f7a: "Loading modules"
|
|
1699
|
-
},
|
|
1705
|
+
}, Ht = /* @__PURE__ */ p({ templates: () => Ut }), Ut = {
|
|
1700
1706
|
s09a45db408570a7a: "Min profil",
|
|
1701
1707
|
s119f9875b7d4cdfc: "Behöver du hjälp? Kontakta support.",
|
|
1702
1708
|
s1228605ee65ddefa: g`${0} resultat`,
|
|
@@ -1735,17 +1741,17 @@ var jt = "en", Mt = [
|
|
|
1735
1741
|
sf55d634dcc743595: "Tjänster",
|
|
1736
1742
|
sfbf31f663cef6cc2: "Prova andra sökord eller kontrollera stavningen.",
|
|
1737
1743
|
s38385cd359b17f7a: "Loading modules"
|
|
1738
|
-
},
|
|
1739
|
-
da:
|
|
1740
|
-
fi:
|
|
1741
|
-
nl:
|
|
1742
|
-
no:
|
|
1743
|
-
sv:
|
|
1744
|
-
}, { getLocale:
|
|
1745
|
-
sourceLocale:
|
|
1746
|
-
targetLocales:
|
|
1747
|
-
loadLocale: (e) =>
|
|
1748
|
-
}),
|
|
1744
|
+
}, Wt = {
|
|
1745
|
+
da: Pt,
|
|
1746
|
+
fi: It,
|
|
1747
|
+
nl: Rt,
|
|
1748
|
+
no: Bt,
|
|
1749
|
+
sv: Ht
|
|
1750
|
+
}, { getLocale: Gt, setLocale: Kt } = Te({
|
|
1751
|
+
sourceLocale: Mt,
|
|
1752
|
+
targetLocales: Nt,
|
|
1753
|
+
loadLocale: (e) => Wt[e] ? Promise.resolve(Wt[e]) : Promise.reject(/* @__PURE__ */ Error(`Unknown locale: ${e}`))
|
|
1754
|
+
}), qt = t`
|
|
1749
1755
|
@layer components {
|
|
1750
1756
|
vsn-footer {
|
|
1751
1757
|
display: block;
|
|
@@ -1795,7 +1801,7 @@ var jt = "en", Mt = [
|
|
|
1795
1801
|
justify-content: center;
|
|
1796
1802
|
}
|
|
1797
1803
|
}
|
|
1798
|
-
`,
|
|
1804
|
+
`, Jt = t`
|
|
1799
1805
|
@layer components {
|
|
1800
1806
|
.vsn-switcher-anchor {
|
|
1801
1807
|
position: relative;
|
|
@@ -1809,7 +1815,7 @@ var jt = "en", Mt = [
|
|
|
1809
1815
|
z-index: 10;
|
|
1810
1816
|
}
|
|
1811
1817
|
}
|
|
1812
|
-
`,
|
|
1818
|
+
`, Yt = t`
|
|
1813
1819
|
.vsn-search__trigger,
|
|
1814
1820
|
.vsn-search__clear {
|
|
1815
1821
|
display: inline-flex;
|
|
@@ -1858,7 +1864,7 @@ var jt = "en", Mt = [
|
|
|
1858
1864
|
.ga-side-navigation__search input::placeholder {
|
|
1859
1865
|
color: var(--ga-color-text-disable-selected);
|
|
1860
1866
|
}
|
|
1861
|
-
`,
|
|
1867
|
+
`, Xt = t`
|
|
1862
1868
|
.vsn-search-results__empty {
|
|
1863
1869
|
display: flex;
|
|
1864
1870
|
flex-direction: column;
|
|
@@ -1927,7 +1933,7 @@ var jt = "en", Mt = [
|
|
|
1927
1933
|
cursor: not-allowed;
|
|
1928
1934
|
opacity: 0.5;
|
|
1929
1935
|
}
|
|
1930
|
-
`,
|
|
1936
|
+
`, Zt = t`
|
|
1931
1937
|
@layer components {
|
|
1932
1938
|
vsn-search-scopes {
|
|
1933
1939
|
display: block;
|
|
@@ -1948,7 +1954,7 @@ var jt = "en", Mt = [
|
|
|
1948
1954
|
text-overflow: ellipsis;
|
|
1949
1955
|
}
|
|
1950
1956
|
}
|
|
1951
|
-
`,
|
|
1957
|
+
`, Qt = t`
|
|
1952
1958
|
.vsn-template__row {
|
|
1953
1959
|
display: flex;
|
|
1954
1960
|
flex-direction: column;
|
|
@@ -1963,7 +1969,7 @@ var jt = "en", Mt = [
|
|
|
1963
1969
|
background: var(--ga-color-miscellaneous-skeleton-element, #F2F3F5);
|
|
1964
1970
|
flex-shrink: 0;
|
|
1965
1971
|
}
|
|
1966
|
-
`,
|
|
1972
|
+
`, $t = t`
|
|
1967
1973
|
.vsn-error-state {
|
|
1968
1974
|
display: flex;
|
|
1969
1975
|
flex-direction: column;
|
|
@@ -2002,7 +2008,7 @@ var jt = "en", Mt = [
|
|
|
2002
2008
|
font-weight: 400;
|
|
2003
2009
|
color: var(--ga-color-text-on-disabled);
|
|
2004
2010
|
}
|
|
2005
|
-
`,
|
|
2011
|
+
`, en = t`
|
|
2006
2012
|
.vsn-spinner {
|
|
2007
2013
|
display: inline-block;
|
|
2008
2014
|
flex-shrink: 0;
|
|
@@ -2022,14 +2028,14 @@ var jt = "en", Mt = [
|
|
|
2022
2028
|
@keyframes vsn-spin {
|
|
2023
2029
|
to { transform: rotate(360deg); }
|
|
2024
2030
|
}
|
|
2025
|
-
`,
|
|
2031
|
+
`, tn = "button:not([disabled]), a[href], [tabindex]:not([tabindex=\"-1\"])", nn = class {
|
|
2026
2032
|
constructor(e) {
|
|
2027
2033
|
this.onKeydown = (e) => {
|
|
2028
2034
|
if (e.defaultPrevented || w(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
2029
2035
|
let t = this.host.renderRoot.querySelector("slot[name=\"nav-footer\"]");
|
|
2030
2036
|
if (!t) return;
|
|
2031
2037
|
let n = [];
|
|
2032
|
-
for (let e of t.assignedElements({ flatten: !0 })) e.matches(
|
|
2038
|
+
for (let e of t.assignedElements({ flatten: !0 })) e.matches(tn) && n.push(e), n.push(...Array.from(e.querySelectorAll(tn)));
|
|
2033
2039
|
if (n.length === 0) return;
|
|
2034
2040
|
let r = e.composedPath()[0];
|
|
2035
2041
|
if (!(r instanceof HTMLElement)) return;
|
|
@@ -2041,12 +2047,12 @@ var jt = "en", Mt = [
|
|
|
2041
2047
|
}, this.host = e, e.addController(this);
|
|
2042
2048
|
}
|
|
2043
2049
|
hostConnected() {}
|
|
2044
|
-
},
|
|
2050
|
+
}, rn = t`
|
|
2045
2051
|
.ga-scroll {
|
|
2046
2052
|
scrollbar-color: var(--ga-color-text-disabled) var(--ga-color-surface-page);
|
|
2047
2053
|
scrollbar-width: thin;
|
|
2048
2054
|
}
|
|
2049
|
-
`,
|
|
2055
|
+
`, an = t`
|
|
2050
2056
|
@layer components {
|
|
2051
2057
|
.vsn-menu__list {
|
|
2052
2058
|
list-style: none;
|
|
@@ -2070,7 +2076,7 @@ var jt = "en", Mt = [
|
|
|
2070
2076
|
content: var(--tw-content);
|
|
2071
2077
|
}
|
|
2072
2078
|
}
|
|
2073
|
-
`,
|
|
2079
|
+
`, on = t`
|
|
2074
2080
|
@layer base {
|
|
2075
2081
|
button:where(.ga-side-navigation__item),
|
|
2076
2082
|
button:where(.ga-side-navigation__switcher),
|
|
@@ -2087,21 +2093,21 @@ var jt = "en", Mt = [
|
|
|
2087
2093
|
color: inherit;
|
|
2088
2094
|
}
|
|
2089
2095
|
}
|
|
2090
|
-
`,
|
|
2096
|
+
`, G = class extends e {
|
|
2091
2097
|
static {
|
|
2092
2098
|
this.styles = [
|
|
2093
2099
|
h,
|
|
2094
|
-
G,
|
|
2095
|
-
qt,
|
|
2096
|
-
nn,
|
|
2097
|
-
Kt,
|
|
2098
2100
|
rn,
|
|
2099
2101
|
Jt,
|
|
2102
|
+
an,
|
|
2103
|
+
qt,
|
|
2104
|
+
on,
|
|
2100
2105
|
Yt,
|
|
2101
2106
|
Xt,
|
|
2102
2107
|
Zt,
|
|
2103
2108
|
Qt,
|
|
2104
2109
|
$t,
|
|
2110
|
+
en,
|
|
2105
2111
|
t`
|
|
2106
2112
|
:host {
|
|
2107
2113
|
position: absolute;
|
|
@@ -2126,7 +2132,7 @@ var jt = "en", Mt = [
|
|
|
2126
2132
|
};
|
|
2127
2133
|
}
|
|
2128
2134
|
constructor() {
|
|
2129
|
-
super(), this.modules = [], this.modulesLoading = !1, this.moduleSwitcherAlwaysOpen = !1, this.lang = "en", this.error = !1, this.open = !1, this._searchQuery = "", this._searchLoading = !1, this._activeScopeId = D, this._searchLoadingMore = !1, this._moduleSwitcherMaxHeight = 0, this._hasPageTitle = !1, this._navFooterKeyboard = new
|
|
2135
|
+
super(), this.modules = [], this.modulesLoading = !1, this.moduleSwitcherAlwaysOpen = !1, this.lang = "en", this.error = !1, this.open = !1, this._searchQuery = "", this._searchLoading = !1, this._activeScopeId = D, this._searchLoadingMore = !1, this._moduleSwitcherMaxHeight = 0, this._hasPageTitle = !1, this._navFooterKeyboard = new nn(this), this._customWidthPerLanguage = { fi: "30em" }, this._onNavigate = (e) => {
|
|
2130
2136
|
this._searchQuery = "", this._searchResults = void 0, this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
|
|
2131
2137
|
bubbles: !0,
|
|
2132
2138
|
composed: !0
|
|
@@ -2156,7 +2162,7 @@ var jt = "en", Mt = [
|
|
|
2156
2162
|
this._moduleSwitcherMaxHeight = Math.max(0, e[0].contentRect.height - 134);
|
|
2157
2163
|
}
|
|
2158
2164
|
willUpdate(e) {
|
|
2159
|
-
e.has("lang") &&
|
|
2165
|
+
e.has("lang") && Kt(this.lang).catch(console.error), e.has("open") && e.get("open") && !this.open && this.resetSidebarToInitialState(), e.has("menu") && (this._hasPageTitle = this.menu?.pageTitle !== void 0, e.get("menu")?.items !== this.menu?.items && this._runSearch(this._searchQuery, this._activeScopeId));
|
|
2160
2166
|
}
|
|
2161
2167
|
updated(e) {
|
|
2162
2168
|
e.has("open") && this.open && this._scrollActiveItemIntoView(), e.has("menu") && this.open && this.menu?.currentItem && (e.get("menu")?.currentItem || this._scrollActiveItemIntoView());
|
|
@@ -2240,7 +2246,7 @@ var jt = "en", Mt = [
|
|
|
2240
2246
|
this._searchResults = t.results, this._searchNextCursor = t.nextCursor, this._searchLoading = !1, this._searchAbort = void 0;
|
|
2241
2247
|
} catch (e) {
|
|
2242
2248
|
if (this._searchAbort !== r) return;
|
|
2243
|
-
e instanceof
|
|
2249
|
+
e instanceof mt ? (this._searchError = e.message, this._searchResults = void 0) : console.error("Search function rejected with non-SearchError:", e), this._searchLoading = !1, this._searchAbort = void 0;
|
|
2244
2250
|
}
|
|
2245
2251
|
}
|
|
2246
2252
|
async _loadMore() {
|
|
@@ -2260,11 +2266,11 @@ var jt = "en", Mt = [
|
|
|
2260
2266
|
this._searchResults = [...this._searchResults ?? [], ...n.results], this._searchNextCursor = n.nextCursor, this._searchLoadingMore = !1, this._searchAbort = void 0;
|
|
2261
2267
|
} catch (e) {
|
|
2262
2268
|
if (this._searchAbort !== t) return;
|
|
2263
|
-
e instanceof
|
|
2269
|
+
e instanceof mt ? (this._searchError = e.message, this._searchResults = void 0, this._searchNextCursor = void 0) : console.error("Load-more function rejected with non-SearchError:", e), this._searchLoadingMore = !1, this._searchAbort = void 0;
|
|
2264
2270
|
}
|
|
2265
2271
|
}
|
|
2266
2272
|
_filterTree(e) {
|
|
2267
|
-
let t = this._menu?.items, n =
|
|
2273
|
+
let t = this._menu?.items, n = Pe(e.toLowerCase());
|
|
2268
2274
|
if (!t?.length || n.length === 0) return [];
|
|
2269
2275
|
let r = [], i = (e, t) => {
|
|
2270
2276
|
for (let a of e) if (j(a)) i(a.items, [...t, a]);
|
|
@@ -2330,7 +2336,7 @@ var jt = "en", Mt = [
|
|
|
2330
2336
|
<vsn-search-scopes
|
|
2331
2337
|
.scopes=${[{
|
|
2332
2338
|
id: D,
|
|
2333
|
-
label:
|
|
2339
|
+
label: Ie()
|
|
2334
2340
|
}, ...e.map((e) => ({
|
|
2335
2341
|
id: e.id,
|
|
2336
2342
|
label: e.label
|
|
@@ -2354,15 +2360,15 @@ var jt = "en", Mt = [
|
|
|
2354
2360
|
`;
|
|
2355
2361
|
}
|
|
2356
2362
|
};
|
|
2357
|
-
M([s({ attribute: !1 })],
|
|
2363
|
+
M([s({ attribute: !1 })], G.prototype, "modules", void 0), M([s()], G.prototype, "activeModuleId", void 0), M([s()], G.prototype, "activeModuleLabel", void 0), M([s({ type: Boolean })], G.prototype, "modulesLoading", void 0), M([s({ type: Boolean })], G.prototype, "moduleSwitcherAlwaysOpen", void 0), M([s()], G.prototype, "lang", void 0), M([s({ attribute: !1 })], G.prototype, "auth", void 0), M([s({ type: Boolean })], G.prototype, "error", void 0), M([s({
|
|
2358
2364
|
type: Boolean,
|
|
2359
2365
|
reflect: !0
|
|
2360
|
-
})],
|
|
2366
|
+
})], G.prototype, "open", void 0), M([s({ attribute: !1 })], G.prototype, "menu", void 0), M([l()], G.prototype, "_searchQuery", void 0), M([l()], G.prototype, "_searchResults", void 0), M([l()], G.prototype, "_searchLoading", void 0), M([l()], G.prototype, "_activeScopeId", void 0), M([l()], G.prototype, "_searchError", void 0), M([l()], G.prototype, "_searchNextCursor", void 0), M([l()], G.prototype, "_searchLoadingMore", void 0), M([l()], G.prototype, "_moduleSwitcherMaxHeight", void 0), M([l()], G.prototype, "_hasPageTitle", void 0), G = M([o("vsn-side-bar")], G);
|
|
2361
2367
|
//#endregion
|
|
2362
2368
|
//#region src/components/vsn-top-bar/vsn-breadcrumb-menu-item.ts
|
|
2363
|
-
var
|
|
2369
|
+
var sn, cn = "height: 0; overflow: hidden; visibility: hidden; white-space: nowrap; pointer-events: none; font-weight: 600;", K = class extends e {
|
|
2364
2370
|
static {
|
|
2365
|
-
|
|
2371
|
+
sn = this;
|
|
2366
2372
|
}
|
|
2367
2373
|
static {
|
|
2368
2374
|
this._idCounter = 0;
|
|
@@ -2398,7 +2404,7 @@ var an, q = class extends e {
|
|
|
2398
2404
|
bubbles: !0,
|
|
2399
2405
|
composed: !0
|
|
2400
2406
|
}));
|
|
2401
|
-
}, this._tooltipId = `vsn-menu-item-tooltip-${
|
|
2407
|
+
}, this._tooltipId = `vsn-menu-item-tooltip-${sn._idCounter++}`, new L(this, () => this._isExpanded);
|
|
2402
2408
|
}
|
|
2403
2409
|
createRenderRoot() {
|
|
2404
2410
|
return this;
|
|
@@ -2424,10 +2430,11 @@ var an, q = class extends e {
|
|
|
2424
2430
|
<div class="ga-tooltip ga-tooltip--right-start" style="white-space: nowrap">${e}</div>
|
|
2425
2431
|
</div>
|
|
2426
2432
|
<span class="ga-side-navigation__item-icon">
|
|
2427
|
-
${this._isParent() ? this._isExpanded ? O(k, 16) : O(
|
|
2433
|
+
${this._isParent() ? this._isExpanded ? O(k, 16) : O(at, 16) : ""}
|
|
2428
2434
|
</span>
|
|
2429
2435
|
<div class="ga-side-navigation__item-content">
|
|
2430
2436
|
<div class="ga-side-navigation__item-label">${e}</div>
|
|
2437
|
+
<div class="ga-side-navigation__item-label-sizer" aria-hidden="true" style=${cn}>${e}</div>
|
|
2431
2438
|
</div>
|
|
2432
2439
|
`;
|
|
2433
2440
|
return this._isParent() ? n`
|
|
@@ -2448,10 +2455,10 @@ var an, q = class extends e {
|
|
|
2448
2455
|
if (this.tree && j(this.tree)) return this.tree.items.length > 0;
|
|
2449
2456
|
}
|
|
2450
2457
|
};
|
|
2451
|
-
M([s({ attribute: !1 })],
|
|
2458
|
+
M([s({ attribute: !1 })], K.prototype, "tree", void 0), M([s({ type: Number })], K.prototype, "level", void 0), M([s({ type: Array })], K.prototype, "ancestorPath", void 0), M([l()], K.prototype, "_isExpanded", void 0), M([l()], K.prototype, "_showTooltip", void 0), M([l()], K.prototype, "_tooltipPos", void 0), M([c(".ga-side-navigation__item-label")], K.prototype, "_labelEl", void 0), K = sn = M([o("vsn-breadcrumb-menu-item")], K);
|
|
2452
2459
|
//#endregion
|
|
2453
2460
|
//#region src/components/vsn-top-bar/vsn-breadcrumb-menu.ts
|
|
2454
|
-
var
|
|
2461
|
+
var ln = class extends e {
|
|
2455
2462
|
constructor() {
|
|
2456
2463
|
super(), this._handleKeyDown = (e) => {
|
|
2457
2464
|
if (e.defaultPrevented || w(e)) return;
|
|
@@ -2498,10 +2505,10 @@ var on = class extends e {
|
|
|
2498
2505
|
`;
|
|
2499
2506
|
}
|
|
2500
2507
|
};
|
|
2501
|
-
M([s({ attribute: !1 })],
|
|
2508
|
+
M([s({ attribute: !1 })], ln.prototype, "treeList", void 0), ln = M([o("vsn-breadcrumb-menu")], ln);
|
|
2502
2509
|
//#endregion
|
|
2503
2510
|
//#region src/components/vsn-top-bar/vsn-breadcrumbs.ts
|
|
2504
|
-
var
|
|
2511
|
+
var q = class extends e {
|
|
2505
2512
|
constructor(...e) {
|
|
2506
2513
|
super(...e), this.modules = [], this.modulesLoading = !1, this._openPopoverId = null, this._displayMode = "full", this._overflowCount = 0, this._tooltip = null, this._mqDesktop = window.matchMedia("(min-width: 1440px)"), this._mqTablet = window.matchMedia("(min-width: 768px) and (max-width: 1439px)"), this._ro = null, this._lastContainerWidth = 0, this._mounted = !1, this._handleMediaChange = () => {
|
|
2507
2514
|
this._mqDesktop.matches ? (this._displayMode = "full", this._overflowCount = 0) : this._mqTablet.matches ? (this._displayMode = "overflow", this._overflowCount = 0, this._mounted && this.updateComplete.then(() => this._recalculateOverflow())) : (this._displayMode = "mobile", this._overflowCount = 0);
|
|
@@ -2522,8 +2529,8 @@ var J = class extends e {
|
|
|
2522
2529
|
static {
|
|
2523
2530
|
this.styles = [
|
|
2524
2531
|
h,
|
|
2525
|
-
|
|
2526
|
-
|
|
2532
|
+
rn,
|
|
2533
|
+
en,
|
|
2527
2534
|
t`
|
|
2528
2535
|
.vsn-bc-modules-loading {
|
|
2529
2536
|
display: flex;
|
|
@@ -2711,7 +2718,7 @@ var J = class extends e {
|
|
|
2711
2718
|
aria-haspopup="menu"
|
|
2712
2719
|
popovertarget="vsn-bc-modules-popover"
|
|
2713
2720
|
>
|
|
2714
|
-
<span class="ga-breadcrumb-item__label">${
|
|
2721
|
+
<span class="ga-breadcrumb-item__label">${ze()}</span>
|
|
2715
2722
|
</button>
|
|
2716
2723
|
${t}
|
|
2717
2724
|
<div
|
|
@@ -2741,7 +2748,7 @@ var J = class extends e {
|
|
|
2741
2748
|
aria-haspopup="menu"
|
|
2742
2749
|
popovertarget="vsn-bc-modules-popover"
|
|
2743
2750
|
>
|
|
2744
|
-
<span class="ga-breadcrumb-item__label">${
|
|
2751
|
+
<span class="ga-breadcrumb-item__label">${ze()}</span>
|
|
2745
2752
|
</button>
|
|
2746
2753
|
${t}
|
|
2747
2754
|
<div
|
|
@@ -2911,10 +2918,10 @@ var J = class extends e {
|
|
|
2911
2918
|
`;
|
|
2912
2919
|
}
|
|
2913
2920
|
};
|
|
2914
|
-
M([s({ attribute: !1 })],
|
|
2921
|
+
M([s({ attribute: !1 })], q.prototype, "tree", void 0), M([s({ type: Array })], q.prototype, "modules", void 0), M([s()], q.prototype, "activeModuleId", void 0), M([s({ type: Boolean })], q.prototype, "modulesLoading", void 0), M([l()], q.prototype, "_openPopoverId", void 0), M([l()], q.prototype, "_displayMode", void 0), M([l()], q.prototype, "_overflowCount", void 0), M([l()], q.prototype, "_tooltip", void 0), q = M([v(), o("vsn-breadcrumbs")], q);
|
|
2915
2922
|
//#endregion
|
|
2916
2923
|
//#region src/components/vsn-top-bar/vsn-ai-assistant.ts
|
|
2917
|
-
var
|
|
2924
|
+
var un = class extends e {
|
|
2918
2925
|
createRenderRoot() {
|
|
2919
2926
|
return this;
|
|
2920
2927
|
}
|
|
@@ -2929,15 +2936,15 @@ var sn = class extends e {
|
|
|
2929
2936
|
return n`
|
|
2930
2937
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2931
2938
|
aria-label=${_("Open AI assistant")} @click=${this._handleClick}>
|
|
2932
|
-
<span class="ga-icon">${O(
|
|
2939
|
+
<span class="ga-icon">${O(Ge)}</span>
|
|
2933
2940
|
</button>
|
|
2934
2941
|
`;
|
|
2935
2942
|
}
|
|
2936
2943
|
};
|
|
2937
|
-
|
|
2944
|
+
un = M([v(), o("vsn-ai-assistant")], un);
|
|
2938
2945
|
//#endregion
|
|
2939
2946
|
//#region src/components/vsn-top-bar/vsn-feedback.ts
|
|
2940
|
-
var
|
|
2947
|
+
var J = class extends e {
|
|
2941
2948
|
constructor(...e) {
|
|
2942
2949
|
super(...e), this._compact = !1, this.feedback = null, this.lang = "en", this._mqMobile = window.matchMedia("(max-width: 767px)"), this._handleMediaChange = () => {
|
|
2943
2950
|
this._compact = this._mqMobile.matches;
|
|
@@ -2977,7 +2984,7 @@ var Y = class extends e {
|
|
|
2977
2984
|
if (super.updated(e), e.has("feedback") && this.feedback?.workspaceId && !document.getElementById("survicate-sdk") && !window._sva) {
|
|
2978
2985
|
window._sva = window._sva ?? {}, window._sva.forcedLanguage = this.lang;
|
|
2979
2986
|
let e = document.createElement("script");
|
|
2980
|
-
e.id =
|
|
2987
|
+
e.id = Be, e.src = He(this.feedback.workspaceId), e.async = !0, e.onload = () => this._applyVisitorTraits(), e.onerror = () => {
|
|
2981
2988
|
e.remove(), window._sva = void 0;
|
|
2982
2989
|
}, document.head.appendChild(e);
|
|
2983
2990
|
}
|
|
@@ -3032,14 +3039,14 @@ var Y = class extends e {
|
|
|
3032
3039
|
}) : document.body && this._observer.observe(document.body, {
|
|
3033
3040
|
childList: !0,
|
|
3034
3041
|
subtree: !0
|
|
3035
|
-
}), this._surveyFocusCleanupTimer = setTimeout(() => this._clearFocusListener(), 15e3), window._sva?.invokeEvent?.(
|
|
3042
|
+
}), this._surveyFocusCleanupTimer = setTimeout(() => this._clearFocusListener(), 15e3), window._sva?.invokeEvent?.(Ve);
|
|
3036
3043
|
}
|
|
3037
3044
|
}
|
|
3038
3045
|
render() {
|
|
3039
3046
|
return this._compact ? n`
|
|
3040
3047
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
3041
3048
|
aria-label=${_("Send feedback")} @click=${this._handleClick}>
|
|
3042
|
-
<span class="ga-icon">${O(
|
|
3049
|
+
<span class="ga-icon">${O(Je)}</span>
|
|
3043
3050
|
</button>
|
|
3044
3051
|
` : n`
|
|
3045
3052
|
<button type="button" class="ga-button ga-button--secondary" aria-label=${_("Send feedback")}
|
|
@@ -3049,10 +3056,10 @@ var Y = class extends e {
|
|
|
3049
3056
|
`;
|
|
3050
3057
|
}
|
|
3051
3058
|
};
|
|
3052
|
-
M([l()],
|
|
3059
|
+
M([l()], J.prototype, "_compact", void 0), M([s({ attribute: !1 })], J.prototype, "feedback", void 0), M([s({ attribute: !1 })], J.prototype, "auth", void 0), M([s()], J.prototype, "lang", void 0), J = M([v(), o("vsn-feedback")], J);
|
|
3053
3060
|
//#endregion
|
|
3054
3061
|
//#region src/components/vsn-top-bar/vsn-home.ts
|
|
3055
|
-
var
|
|
3062
|
+
var dn = class extends e {
|
|
3056
3063
|
createRenderRoot() {
|
|
3057
3064
|
return this;
|
|
3058
3065
|
}
|
|
@@ -3071,15 +3078,15 @@ var cn = class extends e {
|
|
|
3071
3078
|
return this.landingPageUrl ? n`
|
|
3072
3079
|
<a href=${this.landingPageUrl} class="ga-button ga-button--ghost ga-button--icon-only" aria-label=${_("Home")}
|
|
3073
3080
|
@click=${this._handleClick}>
|
|
3074
|
-
<span class="ga-icon">${O(
|
|
3081
|
+
<span class="ga-icon">${O(Ye)}</span>
|
|
3075
3082
|
</a>
|
|
3076
3083
|
` : r;
|
|
3077
3084
|
}
|
|
3078
3085
|
};
|
|
3079
|
-
M([s({ attribute: "landing-page-url" })],
|
|
3086
|
+
M([s({ attribute: "landing-page-url" })], dn.prototype, "landingPageUrl", void 0), dn = M([v(), o("vsn-home")], dn);
|
|
3080
3087
|
//#endregion
|
|
3081
3088
|
//#region src/components/vsn-top-bar/vsn-menu-toggle.ts
|
|
3082
|
-
var
|
|
3089
|
+
var Y = class extends e {
|
|
3083
3090
|
createRenderRoot() {
|
|
3084
3091
|
return this;
|
|
3085
3092
|
}
|
|
@@ -3106,20 +3113,21 @@ var ln = class extends e {
|
|
|
3106
3113
|
@click=${this._handleClick}
|
|
3107
3114
|
@mouseenter=${this._onActivate}
|
|
3108
3115
|
@mouseleave=${this._onDeactivate}>
|
|
3109
|
-
<span class="ga-icon">${O(
|
|
3116
|
+
<span class="ga-icon">${O(We)}</span>
|
|
3110
3117
|
</button>
|
|
3111
3118
|
<div id="vsn-menu-toggle-tooltip" role="tooltip"
|
|
3112
3119
|
style="position: fixed; inset: unset; margin: 0; padding: 0; border: none; background: transparent; overflow: visible; pointer-events: none; z-index: 9999;"
|
|
3113
3120
|
popover="manual">
|
|
3114
|
-
<div class="ga-tooltip ga-tooltip--bottom-start" style="white-space: nowrap"
|
|
3121
|
+
<div class="ga-tooltip ga-tooltip--bottom-start kbd-only" style="white-space: nowrap;">
|
|
3122
|
+
<span class="content">${Ne()}</span></div>
|
|
3115
3123
|
</div>
|
|
3116
3124
|
`;
|
|
3117
3125
|
}
|
|
3118
3126
|
};
|
|
3119
|
-
M([c("div[role=\"tooltip\"]", !0)],
|
|
3127
|
+
M([c("div[role=\"tooltip\"]", !0)], Y.prototype, "_tooltipElement", void 0), Y = M([v(), o("vsn-menu-toggle")], Y);
|
|
3120
3128
|
//#endregion
|
|
3121
3129
|
//#region src/components/vsn-top-bar/vsn-notifications.ts
|
|
3122
|
-
var
|
|
3130
|
+
var fn = class extends e {
|
|
3123
3131
|
constructor(...e) {
|
|
3124
3132
|
super(...e), this.notificationActive = !1;
|
|
3125
3133
|
}
|
|
@@ -3134,7 +3142,7 @@ var un = class extends e {
|
|
|
3134
3142
|
}));
|
|
3135
3143
|
}
|
|
3136
3144
|
render() {
|
|
3137
|
-
let e = this.notificationActive ?
|
|
3145
|
+
let e = this.notificationActive ? qe : Ke;
|
|
3138
3146
|
return n`
|
|
3139
3147
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
3140
3148
|
aria-label=${_("Notifications")} @click=${this._handleClick}>
|
|
@@ -3147,10 +3155,10 @@ M([s({
|
|
|
3147
3155
|
type: Boolean,
|
|
3148
3156
|
attribute: "notification-active",
|
|
3149
3157
|
reflect: !0
|
|
3150
|
-
})],
|
|
3158
|
+
})], fn.prototype, "notificationActive", void 0), fn = M([v(), o("vsn-notifications")], fn);
|
|
3151
3159
|
//#endregion
|
|
3152
3160
|
//#region src/components/vsn-top-bar/vsn-help.ts
|
|
3153
|
-
function
|
|
3161
|
+
function pn(e) {
|
|
3154
3162
|
try {
|
|
3155
3163
|
let t = new URL(e);
|
|
3156
3164
|
return t.protocol === "https:" || t.protocol === "http:";
|
|
@@ -3170,15 +3178,15 @@ var X = class extends e {
|
|
|
3170
3178
|
}));
|
|
3171
3179
|
}
|
|
3172
3180
|
render() {
|
|
3173
|
-
return this.helpUrl &&
|
|
3181
|
+
return this.helpUrl && pn(this.helpUrl) ? n`
|
|
3174
3182
|
<a href=${this.helpUrl} target="_blank" rel="noopener noreferrer" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
3175
3183
|
aria-label=${_("Help")}>
|
|
3176
|
-
<span class="ga-icon">${O(
|
|
3184
|
+
<span class="ga-icon">${O(Xe)}</span>
|
|
3177
3185
|
</a>
|
|
3178
3186
|
` : n`
|
|
3179
3187
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${_("Help")}
|
|
3180
3188
|
@click=${this._handleClick}>
|
|
3181
|
-
<span class="ga-icon">${O(
|
|
3189
|
+
<span class="ga-icon">${O(Xe)}</span>
|
|
3182
3190
|
</button>
|
|
3183
3191
|
`;
|
|
3184
3192
|
}
|
|
@@ -3191,7 +3199,7 @@ var Z = class extends e {
|
|
|
3191
3199
|
super(...e), this.modules = [], this.feedback = null, this.showHelp = !1, this.showNotification = !1, this.notificationActive = !1, this.modulesLoading = !1, this.lang = "en";
|
|
3192
3200
|
}
|
|
3193
3201
|
willUpdate(e) {
|
|
3194
|
-
e.has("lang") &&
|
|
3202
|
+
e.has("lang") && Kt(this.lang).catch(console.error);
|
|
3195
3203
|
}
|
|
3196
3204
|
focusMenuToggle() {
|
|
3197
3205
|
this.renderRoot.querySelector("vsn-menu-toggle")?.focus();
|
|
@@ -3233,6 +3241,53 @@ var Z = class extends e {
|
|
|
3233
3241
|
border-color: transparent;
|
|
3234
3242
|
}
|
|
3235
3243
|
|
|
3244
|
+
.ga-tooltip {
|
|
3245
|
+
padding: calc(var(--ga-size-spacing-03) * var(--ga-base-scaling-factor, 1));
|
|
3246
|
+
}
|
|
3247
|
+
|
|
3248
|
+
.ga-tooltip .content {
|
|
3249
|
+
line-height: 24px;
|
|
3250
|
+
width: 172px;
|
|
3251
|
+
display: flex;
|
|
3252
|
+
padding-left: calc(var(--ga-size-spacing-02) * var(--ga-base-scaling-factor, 1));
|
|
3253
|
+
padding-right: calc(var(--ga-size-spacing-02) * var(--ga-base-scaling-factor, 1));
|
|
3254
|
+
gap: calc(var(--ga-size-spacing-01) * var(--ga-base-scaling-factor, 1));
|
|
3255
|
+
font-size: calc(var(--ga-text-xs-font-size) * var(--ga-base-scaling-factor, 1)) !important;
|
|
3256
|
+
align-items: center;
|
|
3257
|
+
}
|
|
3258
|
+
|
|
3259
|
+
.ga-tooltip.kbd-only .content {
|
|
3260
|
+
line-height: 16px;
|
|
3261
|
+
width: auto;
|
|
3262
|
+
justify-content: center;
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3265
|
+
.ga-tooltip kbd {
|
|
3266
|
+
border: 0 !important;
|
|
3267
|
+
border-radius: var(--ga-radius) !important;
|
|
3268
|
+
background-color: var(--ga-color-surface-action) !important;
|
|
3269
|
+
color: var(--ga-color-text-on-action) !important;
|
|
3270
|
+
padding-inline: calc(var(--ga-size-spacing-02) * var(--ga-base-scaling-factor, 1)) !important;
|
|
3271
|
+
padding-block: 1px !important;
|
|
3272
|
+
font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
|
|
3273
|
+
font-size: calc(var(--ga-text-xs-font-size) * var(--ga-base-scaling-factor, 1)) !important;
|
|
3274
|
+
line-height: calc(var(--ga-text-xs-line-height) * var(--ga-base-scaling-factor, 1)) !important;
|
|
3275
|
+
letter-spacing: calc(var(--ga-text-xs-letter-spacing) * var(--ga-base-scaling-factor, 1)) !important;
|
|
3276
|
+
box-shadow: none !important;
|
|
3277
|
+
font-variant-numeric: tabular-nums;
|
|
3278
|
+
display: flex;
|
|
3279
|
+
gap: calc(var(--ga-size-spacing-01) * var(--ga-base-scaling-factor, 1));
|
|
3280
|
+
}
|
|
3281
|
+
|
|
3282
|
+
.ga-tooltip.kbd-only kbd {
|
|
3283
|
+
padding-block: 0 !important;
|
|
3284
|
+
background: transparent !important;
|
|
3285
|
+
}
|
|
3286
|
+
|
|
3287
|
+
.ga-tooltip kbd > kbd {
|
|
3288
|
+
padding: 0 !important;
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3236
3291
|
@media (max-width: 767px) {
|
|
3237
3292
|
.ga-page-header__global-navigation {
|
|
3238
3293
|
flex-wrap: wrap;
|
|
@@ -3308,7 +3363,7 @@ M([s({ attribute: !1 })], Z.prototype, "tree", void 0), M([s({ type: Array })],
|
|
|
3308
3363
|
})], Z.prototype, "notificationActive", void 0), M([s({ type: Boolean })], Z.prototype, "modulesLoading", void 0), M([s()], Z.prototype, "lang", void 0), Z = M([o("vsn-top-bar")], Z);
|
|
3309
3364
|
//#endregion
|
|
3310
3365
|
//#region src/components/vsn-card.ts
|
|
3311
|
-
var
|
|
3366
|
+
var mn = class extends e {
|
|
3312
3367
|
static {
|
|
3313
3368
|
this.styles = [h, t`
|
|
3314
3369
|
:host {
|
|
@@ -3329,7 +3384,7 @@ var fn = class extends e {
|
|
|
3329
3384
|
return n`<slot></slot>`;
|
|
3330
3385
|
}
|
|
3331
3386
|
};
|
|
3332
|
-
|
|
3387
|
+
mn = M([o("vsn-card")], mn);
|
|
3333
3388
|
//#endregion
|
|
3334
3389
|
//#region src/components/vsn-skip-to-main.ts
|
|
3335
3390
|
var Q = class extends e {
|
|
@@ -3453,7 +3508,7 @@ var $ = class extends e {
|
|
|
3453
3508
|
static {
|
|
3454
3509
|
this.styles = [
|
|
3455
3510
|
h,
|
|
3456
|
-
|
|
3511
|
+
rn,
|
|
3457
3512
|
t`
|
|
3458
3513
|
:host {
|
|
3459
3514
|
display: flex;
|
|
@@ -3588,4 +3643,4 @@ M([s()], $.prototype, "lang", void 0), M([s({ attribute: !1 })], $.prototype, "t
|
|
|
3588
3643
|
reflect: !0
|
|
3589
3644
|
})], $.prototype, "open", void 0), M([l()], $.prototype, "_resolvedModules", void 0), M([l()], $.prototype, "_modulesLoading", void 0), $ = M([o("vsn-navigation")], $);
|
|
3590
3645
|
//#endregion
|
|
3591
|
-
export {
|
|
3646
|
+
export { mt as SearchError, $ as VSNNavigation, Q as VSNSkipToMain, A as isTreeLeaf, j as isTreeParent };
|