@kong-ui-public/app-layout 0.15.3 → 0.15.4-pr.281.7ee2ba7.0

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.
@@ -1,5 +1,5 @@
1
- import { defineComponent as Q, useCssVars as et, unref as m, useSlots as tt, computed as _, reactive as Ee, onMounted as Ze, openBlock as p, createElementBlock as A, createElementVNode as w, renderSlot as D, createCommentVNode as B, toDisplayString as ie, resolveComponent as te, normalizeClass as ee, createBlock as j, resolveDynamicComponent as hn, withCtx as L, withKeys as mn, createVNode as Pe, Fragment as ue, renderList as he, withModifiers as Zt, ref as W, watch as Fe, onUnmounted as gn, Comment as yn, cloneVNode as _n, onBeforeUnmount as Pt, createTextVNode as Te, nextTick as wn, pushScopeId as at, popScopeId as nt, watchEffect as Tn, toRef as kn, createSlots as $t, createStaticVNode as Sn } from "vue";
2
- const In = { class: "kong-ui-app-navbar" }, Cn = { class: "header-content" }, On = { class: "mobile-header-left" }, xn = {
1
+ import { defineComponent as Q, useCssVars as et, unref as m, useSlots as tt, computed as _, reactive as Ee, onMounted as Pe, openBlock as p, createElementBlock as $, createElementVNode as w, renderSlot as D, createCommentVNode as B, toDisplayString as ie, resolveComponent as te, normalizeClass as ee, createBlock as j, resolveDynamicComponent as hn, withCtx as L, withKeys as mn, createVNode as Ze, Fragment as ue, renderList as he, withModifiers as Pt, ref as W, watch as Fe, onUnmounted as gn, Comment as yn, cloneVNode as _n, onBeforeUnmount as Zt, createTextVNode as Te, nextTick as wn, pushScopeId as at, popScopeId as nt, watchEffect as Tn, toRef as kn, createSlots as $t, createStaticVNode as Sn } from "vue";
2
+ const In = { class: "kong-ui-app-navbar" }, Cn = { class: "header-content" }, xn = { class: "mobile-header-left" }, On = {
3
3
  key: 0,
4
4
  class: "app-navbar-logo"
5
5
  }, An = { class: "navbar-content" }, $n = { class: "navbar-content-left" }, Nn = { class: "navbar-content-center" }, En = { class: "navbar-content-right" }, Fn = /* @__PURE__ */ Q({
@@ -22,9 +22,9 @@ const In = { class: "kong-ui-app-navbar" }, Cn = { class: "header-content" }, On
22
22
  setup(n) {
23
23
  const t = n;
24
24
  et((o) => ({
25
- e7993570: m(l).top,
26
- "591d67a5": m(l).zIndex,
27
- "0b950b18": m(l).left,
25
+ e7993570: m(u).top,
26
+ "591d67a5": m(u).zIndex,
27
+ "0b950b18": m(u).left,
28
28
  74170388: c.marginRight,
29
29
  "482efd74": c.width
30
30
  }));
@@ -32,22 +32,22 @@ const In = { class: "kong-ui-app-navbar" }, Cn = { class: "header-content" }, On
32
32
  marginRight: "0",
33
33
  width: "0"
34
34
  });
35
- Ze(() => {
36
- var o, d;
37
- (d = (o = document == null ? void 0 : document.querySelector(".kong-ui-app-navbar .app-navbar-logo")) == null ? void 0 : o.children) != null && d.length ? (c.marginRight = "32px", c.width = "calc(240px - 32px)") : (c.marginRight = "0", c.width = "0");
35
+ Pe(() => {
36
+ var o, f;
37
+ (f = (o = document == null ? void 0 : document.querySelector(".kong-ui-app-navbar .app-navbar-logo")) == null ? void 0 : o.children) != null && f.length ? (c.marginRight = "32px", c.width = "calc(240px - 32px)") : (c.marginRight = "0", c.width = "0");
38
38
  });
39
- const l = _(() => ({
39
+ const u = _(() => ({
40
40
  top: t.topOffset ? `${t.topOffset}px` : "0",
41
41
  left: t.leftOffset ? `${t.leftOffset}px` : "0",
42
42
  zIndex: t.zIndex
43
43
  }));
44
- return (o, d) => (p(), A("header", In, [
44
+ return (o, f) => (p(), $("header", In, [
45
45
  w("div", Cn, [
46
- w("div", On, [
46
+ w("div", xn, [
47
47
  D(o.$slots, "mobile-sidebar-toggle"),
48
48
  D(o.$slots, "mobile-logo")
49
49
  ]),
50
- m(r) ? (p(), A("div", xn, [
50
+ m(r) ? (p(), $("div", On, [
51
51
  D(o.$slots, "logo")
52
52
  ])) : B("", !0),
53
53
  w("div", An, [
@@ -81,14 +81,14 @@ const Y = (n, t) => {
81
81
  },
82
82
  setup(n) {
83
83
  const t = n, a = 99, r = _(() => t.count ? t.count > a ? `${a}+` : t.count.toString() : "");
84
- return (c, l) => m(r) ? (p(), A("div", {
84
+ return (c, u) => m(r) ? (p(), $("div", {
85
85
  key: 0,
86
86
  class: "item-badge",
87
87
  title: (n.count || 0) > a ? String(n.count) : void 0
88
88
  }, ie(m(r)), 9, Mn)) : B("", !0);
89
89
  }
90
90
  });
91
- const Ln = /* @__PURE__ */ Y(Bn, [["__scopeId", "data-v-9e48c714"]]), Rn = ["data-testid"], Zn = ["aria-controls", "aria-expanded", "href", "target", "onClick", "onKeypress"], Pn = {
91
+ const Ln = /* @__PURE__ */ Y(Bn, [["__scopeId", "data-v-9e48c714"]]), Rn = ["data-testid"], Pn = ["aria-controls", "aria-expanded", "href", "target", "onClick", "onKeypress"], Zn = {
92
92
  key: 0,
93
93
  class: "sidebar-item-icon"
94
94
  }, jn = { class: "sidebar-item-name-container" }, Kn = { class: "sidebar-item-name has-tooltip" }, Hn = {
@@ -108,15 +108,15 @@ const Ln = /* @__PURE__ */ Y(Bn, [["__scopeId", "data-v-9e48c714"]]), Rn = ["dat
108
108
  },
109
109
  emits: ["click"],
110
110
  setup(n, { emit: t }) {
111
- const a = n, r = _(() => typeof a.item.to != "string" ? !1 : !!a.item.newWindow || !!a.item.external || a.item.to.startsWith("http")), c = _(() => !a.item.to || typeof a.item.to != "string" || !a.item.newWindow ? !1 : a.item.newWindow && (a.item.to.startsWith("http") || a.item.to.startsWith("/"))), l = _(() => a.subnavItem && a.item.badgeCount !== void 0), o = (g) => {
111
+ const a = n, r = _(() => typeof a.item.to != "string" ? !1 : !!a.item.newWindow || !!a.item.external || a.item.to.startsWith("http")), c = _(() => !a.item.to || typeof a.item.to != "string" || !a.item.newWindow ? !1 : a.item.newWindow && (a.item.to.startsWith("http") || a.item.to.startsWith("/"))), u = _(() => a.subnavItem && a.item.badgeCount !== void 0), o = (g) => {
112
112
  t("click", g);
113
- }, d = (g, T, C) => {
113
+ }, f = (g, T, C) => {
114
114
  o(T), typeof C == "function" && (g.preventDefault(), C());
115
115
  };
116
116
  return (g, T) => {
117
- var $;
117
+ var N;
118
118
  const C = te("KIcon"), S = te("KTooltip"), M = te("SidebarItem", !0);
119
- return p(), A("li", {
119
+ return p(), $("li", {
120
120
  class: ee([n.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: n.item.expanded }, { active: n.item.active }]),
121
121
  "data-testid": n.item.testId ? `sidebar-item-${n.item.testId}` : void 0
122
122
  }, [
@@ -133,21 +133,21 @@ const Ln = /* @__PURE__ */ Y(Bn, [["__scopeId", "data-v-9e48c714"]]), Rn = ["dat
133
133
  class: ee(["sidebar-item-link", { "sidebar-item-external-link": m(c), "router-link": !m(r) }]),
134
134
  href: m(r) ? String(n.item.to || "#") : E == null ? void 0 : E.href,
135
135
  target: m(c) ? "_blank" : void 0,
136
- onClick: (K) => d(K, n.item, E == null ? void 0 : E.navigate),
137
- onKeypress: mn((K) => d(K, n.item, E == null ? void 0 : E.navigate), ["enter"])
136
+ onClick: (K) => f(K, n.item, E == null ? void 0 : E.navigate),
137
+ onKeypress: mn((K) => f(K, n.item, E == null ? void 0 : E.navigate), ["enter"])
138
138
  }, [
139
139
  w("div", {
140
- class: ee(["sidebar-item-display", { "has-label": !!n.item.label && n.item.expanded, "has-badge": m(l) }])
140
+ class: ee(["sidebar-item-display", { "has-label": !!n.item.label && n.item.expanded, "has-badge": m(u) }])
141
141
  }, [
142
- n.item.icon ? (p(), A("div", Pn, [
143
- Pe(C, {
142
+ n.item.icon ? (p(), $("div", Zn, [
143
+ Ze(C, {
144
144
  color: n.item.active || n.item.expanded ? "var(--white, #fff)" : "#B5BECD",
145
145
  icon: String(n.item.icon),
146
146
  size: "20"
147
147
  }, null, 8, ["color", "icon"])
148
148
  ])) : B("", !0),
149
149
  w("div", jn, [
150
- (n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (p(), A("div", {
150
+ (n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (p(), $("div", {
151
151
  key: 0,
152
152
  class: ee(["sidebar-item-name truncate-text", [n.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
153
153
  }, ie(n.item.name), 3)) : (p(), j(S, {
@@ -160,30 +160,30 @@ const Ln = /* @__PURE__ */ Y(Bn, [["__scopeId", "data-v-9e48c714"]]), Rn = ["dat
160
160
  default: L(() => [
161
161
  w("div", Kn, [
162
162
  w("span", {
163
- class: ee(["truncate-text", [n.subnavItem ? "truncate-20" : "truncate-17", { "has-badge-max-width": m(l) }]])
163
+ class: ee(["truncate-text", [n.subnavItem ? "truncate-20" : "truncate-17", { "has-badge-max-width": m(u) }]])
164
164
  }, ie(n.item.name), 3)
165
165
  ])
166
166
  ]),
167
167
  _: 1
168
168
  }, 8, ["label"])),
169
- n.item.label && n.item.expanded ? (p(), A("div", Hn, ie(n.item.label), 1)) : B("", !0)
169
+ n.item.label && n.item.expanded ? (p(), $("div", Hn, ie(n.item.label), 1)) : B("", !0)
170
170
  ]),
171
- m(l) ? (p(), j(Ln, {
171
+ m(u) ? (p(), j(Ln, {
172
172
  key: 1,
173
173
  count: n.item.badgeCount
174
174
  }, null, 8, ["count"])) : B("", !0)
175
175
  ], 2)
176
- ], 42, Zn)
176
+ ], 42, Pn)
177
177
  ];
178
178
  }),
179
179
  _: 1
180
180
  }, 8, ["custom", "to"])),
181
- ($ = n.item.items) != null && $.length && n.item.expanded ? (p(), A("ul", {
181
+ (N = n.item.items) != null && N.length && n.item.expanded ? (p(), $("ul", {
182
182
  key: 0,
183
183
  id: `subnav-${n.item.key}`,
184
184
  class: "level-secondary"
185
185
  }, [
186
- (p(!0), A(ue, null, he(n.item.items, (E) => (p(), j(M, {
186
+ (p(!0), $(ue, null, he(n.item.items, (E) => (p(), j(M, {
187
187
  key: E.name,
188
188
  item: E,
189
189
  "subnav-item": !0,
@@ -200,18 +200,18 @@ const Nt = /* @__PURE__ */ Y(Vn, [["__scopeId", "data-v-b0428668"]]), Wn = {}, G
200
200
  height: "30",
201
201
  width: "30",
202
202
  xmlns: "http://www.w3.org/2000/svg"
203
- }, qn = /* @__PURE__ */ w("path", {
203
+ }, Un = /* @__PURE__ */ w("path", {
204
204
  d: "M0 15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15Z",
205
205
  fill: "#0A7FAE"
206
- }, null, -1), Un = /* @__PURE__ */ w("path", {
206
+ }, null, -1), qn = /* @__PURE__ */ w("path", {
207
207
  d: "M12.613 15 8.5 18.115V23h13v-4.885L17.648 15h-5.035ZM15 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",
208
208
  fill: "#fff"
209
209
  }, null, -1), Yn = [
210
- qn,
211
- Un
210
+ Un,
211
+ qn
212
212
  ];
213
213
  function Xn(n, t) {
214
- return p(), A("svg", Gn, Yn);
214
+ return p(), $("svg", Gn, Yn);
215
215
  }
216
216
  const Jn = /* @__PURE__ */ Y(Wn, [["render", Xn]]), Qn = {
217
217
  "aria-haspopup": "true",
@@ -236,15 +236,15 @@ const Jn = /* @__PURE__ */ Y(Wn, [["render", Xn]]), Qn = {
236
236
  setup(n) {
237
237
  const t = n, a = _(() => t.itemCount > 0);
238
238
  return (r, c) => {
239
- const l = te("KDropdownMenu");
240
- return p(), A("nav", Qn, [
239
+ const u = te("KDropdownMenu");
240
+ return p(), $("nav", Qn, [
241
241
  w("div", er, [
242
242
  w("div", tr, [
243
- Pe(Jn)
243
+ Ze(Jn)
244
244
  ]),
245
245
  w("div", ar, [
246
246
  w("div", nr, [
247
- m(a) ? (p(), j(l, {
247
+ m(a) ? (p(), j(u, {
248
248
  key: 1,
249
249
  "kpop-attributes": { placement: "right", popoverClasses: "ml-5 sidebar-profile-menu-popover", target: ".sidebar-footer-nav" },
250
250
  width: "240"
@@ -258,14 +258,14 @@ const Jn = /* @__PURE__ */ Y(Wn, [["render", Xn]]), Qn = {
258
258
  class: "profile-dropdown-trigger",
259
259
  role: "button",
260
260
  tabindex: "0",
261
- onClick: c[0] || (c[0] = Zt(() => {
261
+ onClick: c[0] || (c[0] = Pt(() => {
262
262
  }, ["prevent"]))
263
263
  }, [
264
264
  w("span", ir, ie(n.name), 1)
265
265
  ])
266
266
  ]),
267
267
  _: 3
268
- }, 8, ["kpop-attributes"])) : (p(), A("div", rr, ie(n.name), 1))
268
+ }, 8, ["kpop-attributes"])) : (p(), $("div", rr, ie(n.name), 1))
269
269
  ])
270
270
  ])
271
271
  ])
@@ -287,7 +287,7 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
287
287
  }, Be = function n(t, a) {
288
288
  var r;
289
289
  a === void 0 && (a = !0);
290
- var c = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), l = c === "" || c === "true", o = l || a && t && n(t.parentNode);
290
+ var c = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), u = c === "" || c === "true", o = u || a && t && n(t.parentNode);
291
291
  return o;
292
292
  }, cr = function(t) {
293
293
  var a, r = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "contenteditable");
@@ -298,11 +298,11 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
298
298
  var c = Array.prototype.slice.apply(t.querySelectorAll(De));
299
299
  return a && de.call(t, De) && c.unshift(t), c = c.filter(r), c;
300
300
  }, zt = function n(t, a, r) {
301
- for (var c = [], l = Array.from(t); l.length; ) {
302
- var o = l.shift();
301
+ for (var c = [], u = Array.from(t); u.length; ) {
302
+ var o = u.shift();
303
303
  if (!Be(o, !1))
304
304
  if (o.tagName === "SLOT") {
305
- var d = o.assignedElements(), g = d.length ? d : o.children, T = n(g, !0, r);
305
+ var f = o.assignedElements(), g = f.length ? f : o.children, T = n(g, !0, r);
306
306
  r.flatten ? c.push.apply(c, T) : c.push({
307
307
  scopeParent: o,
308
308
  candidates: T
@@ -313,13 +313,13 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
313
313
  var S = o.shadowRoot || // check for an undisclosed shadow
314
314
  typeof r.getShadowRoot == "function" && r.getShadowRoot(o), M = !Be(S, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
315
315
  if (S && M) {
316
- var $ = n(S === !0 ? o.children : S.children, !0, r);
317
- r.flatten ? c.push.apply(c, $) : c.push({
316
+ var N = n(S === !0 ? o.children : S.children, !0, r);
317
+ r.flatten ? c.push.apply(c, N) : c.push({
318
318
  scopeParent: o,
319
- candidates: $
319
+ candidates: N
320
320
  });
321
321
  } else
322
- l.unshift.apply(l, o.children);
322
+ u.unshift.apply(u, o.children);
323
323
  }
324
324
  }
325
325
  return c;
@@ -343,8 +343,8 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
343
343
  }, vr = function(t) {
344
344
  if (!t.name)
345
345
  return !0;
346
- var a = t.form || Me(t), r = function(d) {
347
- return a.querySelectorAll('input[type="radio"][name="' + d + '"]');
346
+ var a = t.form || Me(t), r = function(f) {
347
+ return a.querySelectorAll('input[type="radio"][name="' + f + '"]');
348
348
  }, c;
349
349
  if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
350
350
  c = r(window.CSS.escape(t.name));
@@ -354,22 +354,22 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
354
354
  } catch (o) {
355
355
  return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", o.message), !1;
356
356
  }
357
- var l = fr(c, t.form);
358
- return !l || l === t;
357
+ var u = fr(c, t.form);
358
+ return !u || u === t;
359
359
  }, br = function(t) {
360
360
  return Wt(t) && t.type === "radio";
361
361
  }, pr = function(t) {
362
362
  return br(t) && !vr(t);
363
363
  }, hr = function(t) {
364
- var a, r = t && Me(t), c = (a = r) === null || a === void 0 ? void 0 : a.host, l = !1;
364
+ var a, r = t && Me(t), c = (a = r) === null || a === void 0 ? void 0 : a.host, u = !1;
365
365
  if (r && r !== t) {
366
- var o, d, g;
367
- for (l = !!((o = c) !== null && o !== void 0 && (d = o.ownerDocument) !== null && d !== void 0 && d.contains(c) || t != null && (g = t.ownerDocument) !== null && g !== void 0 && g.contains(t)); !l && c; ) {
366
+ var o, f, g;
367
+ for (u = !!((o = c) !== null && o !== void 0 && (f = o.ownerDocument) !== null && f !== void 0 && f.contains(c) || t != null && (g = t.ownerDocument) !== null && g !== void 0 && g.contains(t)); !u && c; ) {
368
368
  var T, C, S;
369
- r = Me(c), c = (T = r) === null || T === void 0 ? void 0 : T.host, l = !!((C = c) !== null && C !== void 0 && (S = C.ownerDocument) !== null && S !== void 0 && S.contains(c));
369
+ r = Me(c), c = (T = r) === null || T === void 0 ? void 0 : T.host, u = !!((C = c) !== null && C !== void 0 && (S = C.ownerDocument) !== null && S !== void 0 && S.contains(c));
370
370
  }
371
371
  }
372
- return l;
372
+ return u;
373
373
  }, Et = function(t) {
374
374
  var a = t.getBoundingClientRect(), r = a.width, c = a.height;
375
375
  return r === 0 && c === 0;
@@ -377,18 +377,18 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
377
377
  var r = a.displayCheck, c = a.getShadowRoot;
378
378
  if (getComputedStyle(t).visibility === "hidden")
379
379
  return !0;
380
- var l = de.call(t, "details>summary:first-of-type"), o = l ? t.parentElement : t;
380
+ var u = de.call(t, "details>summary:first-of-type"), o = u ? t.parentElement : t;
381
381
  if (de.call(o, "details:not([open]) *"))
382
382
  return !0;
383
383
  if (!r || r === "full" || r === "legacy-full") {
384
384
  if (typeof c == "function") {
385
- for (var d = t; t; ) {
385
+ for (var f = t; t; ) {
386
386
  var g = t.parentElement, T = Me(t);
387
387
  if (g && !g.shadowRoot && c(g) === !0)
388
388
  return Et(t);
389
389
  t.assignedSlot ? t = t.assignedSlot : !g && T !== t.ownerDocument ? t = T.host : t = g;
390
390
  }
391
- t = d;
391
+ t = f;
392
392
  }
393
393
  if (hr(t))
394
394
  return !t.getClientRects().length;
@@ -424,17 +424,17 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
424
424
  return !!(isNaN(a) || a >= 0);
425
425
  }, _r = function n(t) {
426
426
  var a = [], r = [];
427
- return t.forEach(function(c, l) {
428
- var o = !!c.scopeParent, d = o ? c.scopeParent : c, g = Vt(d, o), T = o ? n(c.candidates) : d;
429
- g === 0 ? o ? a.push.apply(a, T) : a.push(d) : r.push({
430
- documentOrder: l,
427
+ return t.forEach(function(c, u) {
428
+ var o = !!c.scopeParent, f = o ? c.scopeParent : c, g = Vt(f, o), T = o ? n(c.candidates) : f;
429
+ g === 0 ? o ? a.push.apply(a, T) : a.push(f) : r.push({
430
+ documentOrder: u,
431
431
  tabIndex: g,
432
432
  item: c,
433
433
  isScope: o,
434
434
  content: T
435
435
  });
436
- }), r.sort(lr).reduce(function(c, l) {
437
- return l.isScope ? c.push.apply(c, l.content) : c.push(l.content), c;
436
+ }), r.sort(lr).reduce(function(c, u) {
437
+ return u.isScope ? c.push.apply(c, u.content) : c.push(u.content), c;
438
438
  }, []).concat(a);
439
439
  }, wr = function(t, a) {
440
440
  a = a || {};
@@ -463,7 +463,7 @@ var jt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
463
463
  return de.call(t, kr) === !1 ? !1 : Le(a, t);
464
464
  };
465
465
  /*!
466
- * focus-trap 7.3.1
466
+ * focus-trap 7.4.0
467
467
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
468
468
  */
469
469
  function Dt(n, t) {
@@ -524,9 +524,9 @@ var Bt = {
524
524
  var r = t.indexOf(a);
525
525
  r !== -1 && t.splice(r, 1), t.length > 0 && t[t.length - 1].unpause();
526
526
  }
527
- }, Or = function(t) {
528
- return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
529
527
  }, xr = function(t) {
528
+ return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
529
+ }, Or = function(t) {
530
530
  return t.key === "Escape" || t.key === "Esc" || t.keyCode === 27;
531
531
  }, we = function(t) {
532
532
  return t.key === "Tab" || t.keyCode === 9;
@@ -538,8 +538,8 @@ var Bt = {
538
538
  return setTimeout(t, 0);
539
539
  }, Rt = function(t, a) {
540
540
  var r = -1;
541
- return t.every(function(c, l) {
542
- return a(c) ? (r = l, !1) : !0;
541
+ return t.every(function(c, u) {
542
+ return a(c) ? (r = u, !1) : !0;
543
543
  }), r;
544
544
  }, _e = function(t) {
545
545
  for (var a = arguments.length, r = new Array(a > 1 ? a - 1 : 0), c = 1; c < a; c++)
@@ -548,7 +548,7 @@ var Bt = {
548
548
  }, $e = function(t) {
549
549
  return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
550
550
  }, Nr = [], Er = function(t, a) {
551
- var r = (a == null ? void 0 : a.document) || document, c = (a == null ? void 0 : a.trapStack) || Nr, l = Mt({
551
+ var r = (a == null ? void 0 : a.document) || document, c = (a == null ? void 0 : a.trapStack) || Nr, u = Mt({
552
552
  returnFocusOnDeactivate: !0,
553
553
  escapeDeactivates: !0,
554
554
  delayInitialFocus: !0,
@@ -585,58 +585,58 @@ var Bt = {
585
585
  // timer ID for when delayInitialFocus is true and initial focus in this trap
586
586
  // has been delayed during activation
587
587
  delayInitialFocusTimer: void 0
588
- }, d, g = function(u, f, b) {
589
- return u && u[f] !== void 0 ? u[f] : l[b || f];
590
- }, T = function(u) {
591
- return o.containerGroups.findIndex(function(f) {
592
- var b = f.container, N = f.tabbableNodes;
593
- return b.contains(u) || // fall back to explicit tabbable search which will take into consideration any
588
+ }, f, g = function(l, d, b) {
589
+ return l && l[d] !== void 0 ? l[d] : u[b || d];
590
+ }, T = function(l) {
591
+ return o.containerGroups.findIndex(function(d) {
592
+ var b = d.container, O = d.tabbableNodes;
593
+ return b.contains(l) || // fall back to explicit tabbable search which will take into consideration any
594
594
  // web components if the `tabbableOptions.getShadowRoot` option was used for
595
595
  // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
596
596
  // look inside web components even if open)
597
- N.find(function(h) {
598
- return h === u;
597
+ O.find(function(h) {
598
+ return h === l;
599
599
  });
600
600
  });
601
- }, C = function(u) {
602
- var f = l[u];
603
- if (typeof f == "function") {
604
- for (var b = arguments.length, N = new Array(b > 1 ? b - 1 : 0), h = 1; h < b; h++)
605
- N[h - 1] = arguments[h];
606
- f = f.apply(void 0, N);
601
+ }, C = function(l) {
602
+ var d = u[l];
603
+ if (typeof d == "function") {
604
+ for (var b = arguments.length, O = new Array(b > 1 ? b - 1 : 0), h = 1; h < b; h++)
605
+ O[h - 1] = arguments[h];
606
+ d = d.apply(void 0, O);
607
607
  }
608
- if (f === !0 && (f = void 0), !f) {
609
- if (f === void 0 || f === !1)
610
- return f;
611
- throw new Error("`".concat(u, "` was specified but was not a node, or did not return a node"));
608
+ if (d === !0 && (d = void 0), !d) {
609
+ if (d === void 0 || d === !1)
610
+ return d;
611
+ throw new Error("`".concat(l, "` was specified but was not a node, or did not return a node"));
612
612
  }
613
- var F = f;
614
- if (typeof f == "string" && (F = r.querySelector(f), !F))
615
- throw new Error("`".concat(u, "` as selector refers to no known node"));
613
+ var F = d;
614
+ if (typeof d == "string" && (F = r.querySelector(d), !F))
615
+ throw new Error("`".concat(l, "` as selector refers to no known node"));
616
616
  return F;
617
617
  }, S = function() {
618
- var u = C("initialFocus");
619
- if (u === !1)
618
+ var l = C("initialFocus");
619
+ if (l === !1)
620
620
  return !1;
621
- if (u === void 0)
621
+ if (l === void 0)
622
622
  if (T(r.activeElement) >= 0)
623
- u = r.activeElement;
623
+ l = r.activeElement;
624
624
  else {
625
- var f = o.tabbableGroups[0], b = f && f.firstTabbableNode;
626
- u = b || C("fallbackFocus");
625
+ var d = o.tabbableGroups[0], b = d && d.firstTabbableNode;
626
+ l = b || C("fallbackFocus");
627
627
  }
628
- if (!u)
628
+ if (!l)
629
629
  throw new Error("Your focus-trap needs to have at least one focusable element");
630
- return u;
630
+ return l;
631
631
  }, M = function() {
632
- if (o.containerGroups = o.containers.map(function(u) {
633
- var f = wr(u, l.tabbableOptions), b = Tr(u, l.tabbableOptions);
632
+ if (o.containerGroups = o.containers.map(function(l) {
633
+ var d = wr(l, u.tabbableOptions), b = Tr(l, u.tabbableOptions);
634
634
  return {
635
- container: u,
636
- tabbableNodes: f,
635
+ container: l,
636
+ tabbableNodes: d,
637
637
  focusableNodes: b,
638
- firstTabbableNode: f.length > 0 ? f[0] : null,
639
- lastTabbableNode: f.length > 0 ? f[f.length - 1] : null,
638
+ firstTabbableNode: d.length > 0 ? d[0] : null,
639
+ lastTabbableNode: d.length > 0 ? d[d.length - 1] : null,
640
640
  /**
641
641
  * Finds the __tabbable__ node that follows the given node in the specified direction,
642
642
  * in this container, if any.
@@ -651,159 +651,165 @@ var Bt = {
651
651
  });
652
652
  if (!(y < 0))
653
653
  return F ? b.slice(y + 1).find(function(R) {
654
- return Ae(R, l.tabbableOptions);
654
+ return Ae(R, u.tabbableOptions);
655
655
  }) : b.slice(0, y).reverse().find(function(R) {
656
- return Ae(R, l.tabbableOptions);
656
+ return Ae(R, u.tabbableOptions);
657
657
  });
658
658
  }
659
659
  };
660
- }), o.tabbableGroups = o.containerGroups.filter(function(u) {
661
- return u.tabbableNodes.length > 0;
660
+ }), o.tabbableGroups = o.containerGroups.filter(function(l) {
661
+ return l.tabbableNodes.length > 0;
662
662
  }), o.tabbableGroups.length <= 0 && !C("fallbackFocus"))
663
663
  throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
664
- }, $ = function O(u) {
665
- if (u !== !1 && u !== r.activeElement) {
666
- if (!u || !u.focus) {
667
- O(S());
664
+ }, N = function x(l) {
665
+ if (l !== !1 && l !== r.activeElement) {
666
+ if (!l || !l.focus) {
667
+ x(S());
668
668
  return;
669
669
  }
670
- u.focus({
671
- preventScroll: !!l.preventScroll
672
- }), o.mostRecentlyFocusedNode = u, Or(u) && u.select();
670
+ l.focus({
671
+ preventScroll: !!u.preventScroll
672
+ }), o.mostRecentlyFocusedNode = l, xr(l) && l.select();
673
673
  }
674
- }, E = function(u) {
675
- var f = C("setReturnFocus", u);
676
- return f || (f === !1 ? !1 : u);
677
- }, H = function(u) {
678
- var f = $e(u);
679
- if (!(T(f) >= 0)) {
680
- if (_e(l.clickOutsideDeactivates, u)) {
681
- d.deactivate({
674
+ }, E = function(l) {
675
+ var d = C("setReturnFocus", l);
676
+ return d || (d === !1 ? !1 : l);
677
+ }, H = function(l) {
678
+ var d = $e(l);
679
+ if (!(T(d) >= 0)) {
680
+ if (_e(u.clickOutsideDeactivates, l)) {
681
+ f.deactivate({
682
682
  // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
683
683
  // which will result in the outside click setting focus to the node
684
684
  // that was clicked (and if not focusable, to "nothing"); by setting
685
685
  // `returnFocus: true`, we'll attempt to re-focus the node originally-focused
686
686
  // on activation (or the configured `setReturnFocus` node), whether the
687
687
  // outside click was on a focusable node or not
688
- returnFocus: l.returnFocusOnDeactivate
688
+ returnFocus: u.returnFocusOnDeactivate
689
689
  });
690
690
  return;
691
691
  }
692
- _e(l.allowOutsideClick, u) || u.preventDefault();
692
+ _e(u.allowOutsideClick, l) || l.preventDefault();
693
693
  }
694
- }, G = function(u) {
695
- var f = $e(u), b = T(f) >= 0;
696
- b || f instanceof Document ? b && (o.mostRecentlyFocusedNode = f) : (u.stopImmediatePropagation(), $(o.mostRecentlyFocusedNode || S()));
697
- }, K = function(u) {
698
- var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, b = $e(u);
694
+ }, G = function(l) {
695
+ var d = $e(l), b = T(d) >= 0;
696
+ b || d instanceof Document ? b && (o.mostRecentlyFocusedNode = d) : (l.stopImmediatePropagation(), N(o.mostRecentlyFocusedNode || S()));
697
+ }, K = function(l) {
698
+ var d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, b = $e(l);
699
699
  M();
700
- var N = null;
700
+ var O = null;
701
701
  if (o.tabbableGroups.length > 0) {
702
702
  var h = T(b), F = h >= 0 ? o.containerGroups[h] : void 0;
703
703
  if (h < 0)
704
- f ? N = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : N = o.tabbableGroups[0].firstTabbableNode;
705
- else if (f) {
704
+ d ? O = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : O = o.tabbableGroups[0].firstTabbableNode;
705
+ else if (d) {
706
706
  var y = Rt(o.tabbableGroups, function(me) {
707
- var x = me.firstTabbableNode;
708
- return b === x;
707
+ var A = me.firstTabbableNode;
708
+ return b === A;
709
709
  });
710
- if (y < 0 && (F.container === b || Ft(b, l.tabbableOptions) && !Ae(b, l.tabbableOptions) && !F.nextTabbableNode(b, !1)) && (y = h), y >= 0) {
710
+ if (y < 0 && (F.container === b || Ft(b, u.tabbableOptions) && !Ae(b, u.tabbableOptions) && !F.nextTabbableNode(b, !1)) && (y = h), y >= 0) {
711
711
  var R = y === 0 ? o.tabbableGroups.length - 1 : y - 1, k = o.tabbableGroups[R];
712
- N = k.lastTabbableNode;
712
+ O = k.lastTabbableNode;
713
713
  } else
714
- we(u) || (N = F.nextTabbableNode(b, !1));
714
+ we(l) || (O = F.nextTabbableNode(b, !1));
715
715
  } else {
716
716
  var J = Rt(o.tabbableGroups, function(me) {
717
- var x = me.lastTabbableNode;
718
- return b === x;
717
+ var A = me.lastTabbableNode;
718
+ return b === A;
719
719
  });
720
- if (J < 0 && (F.container === b || Ft(b, l.tabbableOptions) && !Ae(b, l.tabbableOptions) && !F.nextTabbableNode(b)) && (J = h), J >= 0) {
720
+ if (J < 0 && (F.container === b || Ft(b, u.tabbableOptions) && !Ae(b, u.tabbableOptions) && !F.nextTabbableNode(b)) && (J = h), J >= 0) {
721
721
  var ae = J === o.tabbableGroups.length - 1 ? 0 : J + 1, je = o.tabbableGroups[ae];
722
- N = je.firstTabbableNode;
722
+ O = je.firstTabbableNode;
723
723
  } else
724
- we(u) || (N = F.nextTabbableNode(b));
724
+ we(l) || (O = F.nextTabbableNode(b));
725
725
  }
726
726
  } else
727
- N = C("fallbackFocus");
728
- N && (we(u) && u.preventDefault(), $(N));
729
- }, X = function(u) {
730
- if (xr(u) && _e(l.escapeDeactivates, u) !== !1) {
731
- u.preventDefault(), d.deactivate();
727
+ O = C("fallbackFocus");
728
+ O && (we(l) && l.preventDefault(), N(O));
729
+ }, X = function(l) {
730
+ if (Or(l) && _e(u.escapeDeactivates, l) !== !1) {
731
+ l.preventDefault(), f.deactivate();
732
732
  return;
733
733
  }
734
- (l.isKeyForward(u) || l.isKeyBackward(u)) && K(u, l.isKeyBackward(u));
735
- }, q = function(u) {
736
- var f = $e(u);
737
- T(f) >= 0 || _e(l.clickOutsideDeactivates, u) || _e(l.allowOutsideClick, u) || (u.preventDefault(), u.stopImmediatePropagation());
734
+ (u.isKeyForward(l) || u.isKeyBackward(l)) && K(l, u.isKeyBackward(l));
735
+ }, U = function(l) {
736
+ var d = $e(l);
737
+ T(d) >= 0 || _e(u.clickOutsideDeactivates, l) || _e(u.allowOutsideClick, l) || (l.preventDefault(), l.stopImmediatePropagation());
738
738
  }, I = function() {
739
739
  if (o.active)
740
- return Bt.activateTrap(c, d), o.delayInitialFocusTimer = l.delayInitialFocus ? Lt(function() {
741
- $(S());
742
- }) : $(S()), r.addEventListener("focusin", G, !0), r.addEventListener("mousedown", H, {
740
+ return Bt.activateTrap(c, f), o.delayInitialFocusTimer = u.delayInitialFocus ? Lt(function() {
741
+ N(S());
742
+ }) : N(S()), r.addEventListener("focusin", G, !0), r.addEventListener("mousedown", H, {
743
743
  capture: !0,
744
744
  passive: !1
745
745
  }), r.addEventListener("touchstart", H, {
746
746
  capture: !0,
747
747
  passive: !1
748
- }), r.addEventListener("click", q, {
748
+ }), r.addEventListener("click", U, {
749
749
  capture: !0,
750
750
  passive: !1
751
751
  }), r.addEventListener("keydown", X, {
752
752
  capture: !0,
753
753
  passive: !1
754
- }), d;
755
- }, P = function() {
754
+ }), f;
755
+ }, Z = function() {
756
756
  if (o.active)
757
- return r.removeEventListener("focusin", G, !0), r.removeEventListener("mousedown", H, !0), r.removeEventListener("touchstart", H, !0), r.removeEventListener("click", q, !0), r.removeEventListener("keydown", X, !0), d;
757
+ return r.removeEventListener("focusin", G, !0), r.removeEventListener("mousedown", H, !0), r.removeEventListener("touchstart", H, !0), r.removeEventListener("click", U, !0), r.removeEventListener("keydown", X, !0), f;
758
758
  };
759
- return d = {
759
+ return f = {
760
760
  get active() {
761
761
  return o.active;
762
762
  },
763
763
  get paused() {
764
764
  return o.paused;
765
765
  },
766
- activate: function(u) {
766
+ activate: function(l) {
767
767
  if (o.active)
768
768
  return this;
769
- var f = g(u, "onActivate"), b = g(u, "onPostActivate"), N = g(u, "checkCanFocusTrap");
770
- N || M(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, f && f();
769
+ var d = g(l, "onActivate"), b = g(l, "onPostActivate"), O = g(l, "checkCanFocusTrap");
770
+ O || M(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, d == null || d();
771
771
  var h = function() {
772
- N && M(), I(), b && b();
772
+ O && M(), I(), b == null || b();
773
773
  };
774
- return N ? (N(o.containers.concat()).then(h, h), this) : (h(), this);
774
+ return O ? (O(o.containers.concat()).then(h, h), this) : (h(), this);
775
775
  },
776
- deactivate: function(u) {
776
+ deactivate: function(l) {
777
777
  if (!o.active)
778
778
  return this;
779
- var f = Mt({
780
- onDeactivate: l.onDeactivate,
781
- onPostDeactivate: l.onPostDeactivate,
782
- checkCanReturnFocus: l.checkCanReturnFocus
783
- }, u);
784
- clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, P(), o.active = !1, o.paused = !1, Bt.deactivateTrap(c, d);
785
- var b = g(f, "onDeactivate"), N = g(f, "onPostDeactivate"), h = g(f, "checkCanReturnFocus"), F = g(f, "returnFocus", "returnFocusOnDeactivate");
786
- b && b();
779
+ var d = Mt({
780
+ onDeactivate: u.onDeactivate,
781
+ onPostDeactivate: u.onPostDeactivate,
782
+ checkCanReturnFocus: u.checkCanReturnFocus
783
+ }, l);
784
+ clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, Z(), o.active = !1, o.paused = !1, Bt.deactivateTrap(c, f);
785
+ var b = g(d, "onDeactivate"), O = g(d, "onPostDeactivate"), h = g(d, "checkCanReturnFocus"), F = g(d, "returnFocus", "returnFocusOnDeactivate");
786
+ b == null || b();
787
787
  var y = function() {
788
788
  Lt(function() {
789
- F && $(E(o.nodeFocusedBeforeActivation)), N && N();
789
+ F && N(E(o.nodeFocusedBeforeActivation)), O == null || O();
790
790
  });
791
791
  };
792
792
  return F && h ? (h(E(o.nodeFocusedBeforeActivation)).then(y, y), this) : (y(), this);
793
793
  },
794
- pause: function() {
795
- return o.paused || !o.active ? this : (o.paused = !0, P(), this);
794
+ pause: function(l) {
795
+ if (o.paused || !o.active)
796
+ return this;
797
+ var d = g(l, "onPause"), b = g(l, "onPostPause");
798
+ return o.paused = !0, d == null || d(), Z(), b == null || b(), this;
796
799
  },
797
- unpause: function() {
798
- return !o.paused || !o.active ? this : (o.paused = !1, M(), I(), this);
800
+ unpause: function(l) {
801
+ if (!o.paused || !o.active)
802
+ return this;
803
+ var d = g(l, "onUnpause"), b = g(l, "onPostUnpause");
804
+ return o.paused = !1, d == null || d(), M(), I(), b == null || b(), this;
799
805
  },
800
- updateContainerElements: function(u) {
801
- var f = [].concat(u).filter(Boolean);
802
- return o.containers = f.map(function(b) {
806
+ updateContainerElements: function(l) {
807
+ var d = [].concat(l).filter(Boolean);
808
+ return o.containers = d.map(function(b) {
803
809
  return typeof b == "string" ? r.querySelector(b) : b;
804
810
  }), o.active && M(), this;
805
811
  }
806
- }, d.updateContainerElements(t), d;
812
+ }, f.updateContainerElements(t), f;
807
813
  };
808
814
  /*!
809
815
  * focus-trap-vue v4.0.1
@@ -856,12 +862,12 @@ const Fr = {
856
862
  },
857
863
  setup(n, { slots: t, emit: a }) {
858
864
  let r;
859
- const c = W(null), l = _(() => {
860
- const d = c.value;
861
- return d && (d instanceof HTMLElement ? d : d.$el);
865
+ const c = W(null), u = _(() => {
866
+ const f = c.value;
867
+ return f && (f instanceof HTMLElement ? f : f.$el);
862
868
  });
863
869
  function o() {
864
- return r || (r = Er(l.value, {
870
+ return r || (r = Er(u.value, {
865
871
  escapeDeactivates: n.escapeDeactivates,
866
872
  allowOutsideClick: n.allowOutsideClick,
867
873
  returnFocusOnDeactivate: n.returnFocusOnDeactivate,
@@ -880,9 +886,9 @@ const Fr = {
880
886
  delayInitialFocus: n.delayInitialFocus
881
887
  }));
882
888
  }
883
- return Ze(() => {
884
- Fe(() => n.active, (d) => {
885
- d && l.value ? o().activate() : r && (r.deactivate(), (!l.value || l.value.nodeType === Node.COMMENT_NODE) && (r = null));
889
+ return Pe(() => {
890
+ Fe(() => n.active, (f) => {
891
+ f && u.value ? o().activate() : r && (r.deactivate(), (!u.value || u.value.nodeType === Node.COMMENT_NODE) && (r = null));
886
892
  }, { immediate: !0, flush: "post" });
887
893
  }), gn(() => {
888
894
  r && r.deactivate(), r = null;
@@ -896,8 +902,8 @@ const Fr = {
896
902
  renderImpl() {
897
903
  if (!t.default)
898
904
  return null;
899
- const d = t.default().filter((T) => T.type !== yn);
900
- return !d || !d.length || d.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), d) : _n(d[0], { ref: c });
905
+ const f = t.default().filter((T) => T.type !== yn);
906
+ return !f || !f.length || f.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), f) : _n(f[0], { ref: c });
901
907
  }
902
908
  };
903
909
  }
@@ -923,9 +929,9 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
923
929
  }
924
930
  };
925
931
  (function(n, t) {
926
- var a = 200, r = "__lodash_hash_undefined__", c = 9007199254740991, l = "[object Arguments]", o = "[object Array]", d = "[object Boolean]", g = "[object Date]", T = "[object Error]", C = "[object Function]", S = "[object GeneratorFunction]", M = "[object Map]", $ = "[object Number]", E = "[object Object]", H = "[object Promise]", G = "[object RegExp]", K = "[object Set]", X = "[object String]", q = "[object Symbol]", I = "[object WeakMap]", P = "[object ArrayBuffer]", O = "[object DataView]", u = "[object Float32Array]", f = "[object Float64Array]", b = "[object Int8Array]", N = "[object Int16Array]", h = "[object Int32Array]", F = "[object Uint8Array]", y = "[object Uint8ClampedArray]", R = "[object Uint16Array]", k = "[object Uint32Array]", J = /[\\^$.*+?()[\]{}|]/g, ae = /\w*$/, je = /^\[object .+?Constructor\]$/, me = /^(?:0|[1-9]\d*)$/, x = {};
927
- x[l] = x[o] = x[P] = x[O] = x[d] = x[g] = x[u] = x[f] = x[b] = x[N] = x[h] = x[M] = x[$] = x[E] = x[G] = x[K] = x[X] = x[q] = x[F] = x[y] = x[R] = x[k] = !0, x[T] = x[C] = x[I] = !1;
928
- var Ut = typeof Ne == "object" && Ne && Ne.Object === Object && Ne, Yt = typeof self == "object" && self && self.Object === Object && self, ne = Ut || Yt || Function("return this")(), it = t && !t.nodeType && t, ot = it && !0 && n && !n.nodeType && n, Xt = ot && ot.exports === it;
932
+ var a = 200, r = "__lodash_hash_undefined__", c = 9007199254740991, u = "[object Arguments]", o = "[object Array]", f = "[object Boolean]", g = "[object Date]", T = "[object Error]", C = "[object Function]", S = "[object GeneratorFunction]", M = "[object Map]", N = "[object Number]", E = "[object Object]", H = "[object Promise]", G = "[object RegExp]", K = "[object Set]", X = "[object String]", U = "[object Symbol]", I = "[object WeakMap]", Z = "[object ArrayBuffer]", x = "[object DataView]", l = "[object Float32Array]", d = "[object Float64Array]", b = "[object Int8Array]", O = "[object Int16Array]", h = "[object Int32Array]", F = "[object Uint8Array]", y = "[object Uint8ClampedArray]", R = "[object Uint16Array]", k = "[object Uint32Array]", J = /[\\^$.*+?()[\]{}|]/g, ae = /\w*$/, je = /^\[object .+?Constructor\]$/, me = /^(?:0|[1-9]\d*)$/, A = {};
933
+ A[u] = A[o] = A[Z] = A[x] = A[f] = A[g] = A[l] = A[d] = A[b] = A[O] = A[h] = A[M] = A[N] = A[E] = A[G] = A[K] = A[X] = A[U] = A[F] = A[y] = A[R] = A[k] = !0, A[T] = A[C] = A[I] = !1;
934
+ var qt = typeof Ne == "object" && Ne && Ne.Object === Object && Ne, Yt = typeof self == "object" && self && self.Object === Object && self, ne = qt || Yt || Function("return this")(), it = t && !t.nodeType && t, ot = it && !0 && n && !n.nodeType && n, Xt = ot && ot.exports === it;
929
935
  function Jt(e, i) {
930
936
  return e.set(i[0], i[1]), e;
931
937
  }
@@ -938,14 +944,14 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
938
944
  return e;
939
945
  }
940
946
  function ta(e, i) {
941
- for (var s = -1, v = i.length, Z = e.length; ++s < v; )
942
- e[Z + s] = i[s];
947
+ for (var s = -1, v = i.length, P = e.length; ++s < v; )
948
+ e[P + s] = i[s];
943
949
  return e;
944
950
  }
945
951
  function st(e, i, s, v) {
946
- var Z = -1, z = e ? e.length : 0;
947
- for (v && z && (s = e[++Z]); ++Z < z; )
948
- s = i(s, e[Z], Z, e);
952
+ var P = -1, z = e ? e.length : 0;
953
+ for (v && z && (s = e[++P]); ++P < z; )
954
+ s = i(s, e[P], P, e);
949
955
  return s;
950
956
  }
951
957
  function aa(e, i) {
@@ -967,8 +973,8 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
967
973
  }
968
974
  function lt(e) {
969
975
  var i = -1, s = Array(e.size);
970
- return e.forEach(function(v, Z) {
971
- s[++i] = [Z, v];
976
+ return e.forEach(function(v, P) {
977
+ s[++i] = [P, v];
972
978
  }), s;
973
979
  }
974
980
  function Ke(e, i) {
@@ -1042,11 +1048,11 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1042
1048
  function Ca(e) {
1043
1049
  return Ie(this.__data__, e) > -1;
1044
1050
  }
1045
- function Oa(e, i) {
1051
+ function xa(e, i) {
1046
1052
  var s = this.__data__, v = Ie(s, e);
1047
1053
  return v < 0 ? s.push([e, i]) : s[v][1] = i, this;
1048
1054
  }
1049
- re.prototype.clear = ka, re.prototype.delete = Sa, re.prototype.get = Ia, re.prototype.has = Ca, re.prototype.set = Oa;
1055
+ re.prototype.clear = ka, re.prototype.delete = Sa, re.prototype.get = Ia, re.prototype.has = Ca, re.prototype.set = xa;
1050
1056
  function fe(e) {
1051
1057
  var i = -1, s = e ? e.length : 0;
1052
1058
  for (this.clear(); ++i < s; ) {
@@ -1054,7 +1060,7 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1054
1060
  this.set(v[0], v[1]);
1055
1061
  }
1056
1062
  }
1057
- function xa() {
1063
+ function Oa() {
1058
1064
  this.__data__ = {
1059
1065
  hash: new se(),
1060
1066
  map: new (ge || re)(),
@@ -1073,7 +1079,7 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1073
1079
  function Ea(e, i) {
1074
1080
  return Ce(this, e).set(e, i), this;
1075
1081
  }
1076
- fe.prototype.clear = xa, fe.prototype.delete = Aa, fe.prototype.get = $a, fe.prototype.has = Na, fe.prototype.set = Ea;
1082
+ fe.prototype.clear = Oa, fe.prototype.delete = Aa, fe.prototype.get = $a, fe.prototype.has = Na, fe.prototype.set = Ea;
1077
1083
  function ve(e) {
1078
1084
  this.__data__ = new re(e);
1079
1085
  }
@@ -1101,9 +1107,9 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1101
1107
  }
1102
1108
  ve.prototype.clear = Fa, ve.prototype.delete = Da, ve.prototype.get = Ma, ve.prototype.has = Ba, ve.prototype.set = La;
1103
1109
  function Ra(e, i) {
1104
- var s = Ye(e) || ln(e) ? aa(e.length, String) : [], v = s.length, Z = !!v;
1110
+ var s = Ye(e) || ln(e) ? aa(e.length, String) : [], v = s.length, P = !!v;
1105
1111
  for (var z in e)
1106
- (i || oe.call(e, z)) && !(Z && (z == "length" || rn(z, v))) && s.push(z);
1112
+ (i || oe.call(e, z)) && !(P && (z == "length" || rn(z, v))) && s.push(z);
1107
1113
  return s;
1108
1114
  }
1109
1115
  function yt(e, i, s) {
@@ -1116,46 +1122,46 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1116
1122
  return s;
1117
1123
  return -1;
1118
1124
  }
1119
- function Za(e, i) {
1125
+ function Pa(e, i) {
1120
1126
  return e && _t(i, Xe(i), e);
1121
1127
  }
1122
- function qe(e, i, s, v, Z, z, U) {
1128
+ function Ue(e, i, s, v, P, z, q) {
1123
1129
  var V;
1124
- if (v && (V = z ? v(e, Z, z, U) : v(e)), V !== void 0)
1130
+ if (v && (V = z ? v(e, P, z, q) : v(e)), V !== void 0)
1125
1131
  return V;
1126
- if (!Oe(e))
1132
+ if (!xe(e))
1127
1133
  return e;
1128
1134
  var Ct = Ye(e);
1129
1135
  if (Ct) {
1130
1136
  if (V = tn(e), !i)
1131
1137
  return Ja(e, V);
1132
1138
  } else {
1133
- var pe = ce(e), Ot = pe == C || pe == S;
1139
+ var pe = ce(e), xt = pe == C || pe == S;
1134
1140
  if (dn(e))
1135
1141
  return Va(e, i);
1136
- if (pe == E || pe == l || Ot && !z) {
1142
+ if (pe == E || pe == u || xt && !z) {
1137
1143
  if (ct(e))
1138
1144
  return z ? e : {};
1139
- if (V = an(Ot ? {} : e), !i)
1140
- return Qa(e, Za(V, e));
1145
+ if (V = an(xt ? {} : e), !i)
1146
+ return Qa(e, Pa(V, e));
1141
1147
  } else {
1142
- if (!x[pe])
1148
+ if (!A[pe])
1143
1149
  return z ? e : {};
1144
- V = nn(e, pe, qe, i);
1150
+ V = nn(e, pe, Ue, i);
1145
1151
  }
1146
1152
  }
1147
- U || (U = new ve());
1148
- var xt = U.get(e);
1149
- if (xt)
1150
- return xt;
1151
- if (U.set(e, V), !Ct)
1153
+ q || (q = new ve());
1154
+ var Ot = q.get(e);
1155
+ if (Ot)
1156
+ return Ot;
1157
+ if (q.set(e, V), !Ct)
1152
1158
  var At = s ? en(e) : Xe(e);
1153
- return ea(At || e, function(Je, xe) {
1154
- At && (xe = Je, Je = e[xe]), yt(V, xe, qe(Je, i, s, v, xe, e, U));
1159
+ return ea(At || e, function(Je, Oe) {
1160
+ At && (Oe = Je, Je = e[Oe]), yt(V, Oe, Ue(Je, i, s, v, Oe, e, q));
1155
1161
  }), V;
1156
1162
  }
1157
- function Pa(e) {
1158
- return Oe(e) ? ca(e) : {};
1163
+ function Za(e) {
1164
+ return xe(e) ? ca(e) : {};
1159
1165
  }
1160
1166
  function ja(e, i, s) {
1161
1167
  var v = i(e);
@@ -1165,7 +1171,7 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1165
1171
  return Se.call(e);
1166
1172
  }
1167
1173
  function Ha(e) {
1168
- if (!Oe(e) || sn(e))
1174
+ if (!xe(e) || sn(e))
1169
1175
  return !1;
1170
1176
  var i = It(e) || ct(e) ? oa : je;
1171
1177
  return i.test(le(e));
@@ -1184,23 +1190,23 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1184
1190
  var s = new e.constructor(e.length);
1185
1191
  return e.copy(s), s;
1186
1192
  }
1187
- function Ue(e) {
1193
+ function qe(e) {
1188
1194
  var i = new e.constructor(e.byteLength);
1189
1195
  return new pt(i).set(new pt(e)), i;
1190
1196
  }
1191
1197
  function Wa(e, i) {
1192
- var s = i ? Ue(e.buffer) : e.buffer;
1198
+ var s = i ? qe(e.buffer) : e.buffer;
1193
1199
  return new e.constructor(s, e.byteOffset, e.byteLength);
1194
1200
  }
1195
1201
  function Ga(e, i, s) {
1196
1202
  var v = i ? s(lt(e), !0) : lt(e);
1197
1203
  return st(v, Jt, new e.constructor());
1198
1204
  }
1199
- function qa(e) {
1205
+ function Ua(e) {
1200
1206
  var i = new e.constructor(e.source, ae.exec(e));
1201
1207
  return i.lastIndex = e.lastIndex, i;
1202
1208
  }
1203
- function Ua(e, i, s) {
1209
+ function qa(e, i, s) {
1204
1210
  var v = i ? s(ut(e), !0) : ut(e);
1205
1211
  return st(v, Qt, new e.constructor());
1206
1212
  }
@@ -1208,7 +1214,7 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1208
1214
  return gt ? Object(gt.call(e)) : {};
1209
1215
  }
1210
1216
  function Xa(e, i) {
1211
- var s = i ? Ue(e.buffer) : e.buffer;
1217
+ var s = i ? qe(e.buffer) : e.buffer;
1212
1218
  return new e.constructor(s, e.byteOffset, e.length);
1213
1219
  }
1214
1220
  function Ja(e, i) {
@@ -1219,9 +1225,9 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1219
1225
  }
1220
1226
  function _t(e, i, s, v) {
1221
1227
  s || (s = {});
1222
- for (var Z = -1, z = i.length; ++Z < z; ) {
1223
- var U = i[Z], V = v ? v(s[U], e[U], U, s, e) : void 0;
1224
- yt(s, U, V === void 0 ? e[U] : V);
1228
+ for (var P = -1, z = i.length; ++P < z; ) {
1229
+ var q = i[P], V = v ? v(s[q], e[q], q, s, e) : void 0;
1230
+ yt(s, q, V === void 0 ? e[q] : V);
1225
1231
  }
1226
1232
  return s;
1227
1233
  }
@@ -1240,12 +1246,12 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1240
1246
  return Ha(s) ? s : void 0;
1241
1247
  }
1242
1248
  var wt = ht ? Ke(ht, Object) : bn, ce = Ka;
1243
- (ze && ce(new ze(new ArrayBuffer(1))) != O || ge && ce(new ge()) != M || Ve && ce(Ve.resolve()) != H || We && ce(new We()) != K || Ge && ce(new Ge()) != I) && (ce = function(e) {
1249
+ (ze && ce(new ze(new ArrayBuffer(1))) != x || ge && ce(new ge()) != M || Ve && ce(Ve.resolve()) != H || We && ce(new We()) != K || Ge && ce(new Ge()) != I) && (ce = function(e) {
1244
1250
  var i = Se.call(e), s = i == E ? e.constructor : void 0, v = s ? le(s) : void 0;
1245
1251
  if (v)
1246
1252
  switch (v) {
1247
1253
  case va:
1248
- return O;
1254
+ return x;
1249
1255
  case ba:
1250
1256
  return M;
1251
1257
  case pa:
@@ -1262,22 +1268,22 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1262
1268
  return i && typeof e[0] == "string" && oe.call(e, "index") && (s.index = e.index, s.input = e.input), s;
1263
1269
  }
1264
1270
  function an(e) {
1265
- return typeof e.constructor == "function" && !Tt(e) ? Pa(sa(e)) : {};
1271
+ return typeof e.constructor == "function" && !Tt(e) ? Za(sa(e)) : {};
1266
1272
  }
1267
1273
  function nn(e, i, s, v) {
1268
- var Z = e.constructor;
1274
+ var P = e.constructor;
1269
1275
  switch (i) {
1270
- case P:
1271
- return Ue(e);
1272
- case d:
1276
+ case Z:
1277
+ return qe(e);
1278
+ case f:
1273
1279
  case g:
1274
- return new Z(+e);
1275
- case O:
1280
+ return new P(+e);
1281
+ case x:
1276
1282
  return Wa(e, v);
1277
- case u:
1278
- case f:
1283
+ case l:
1284
+ case d:
1279
1285
  case b:
1280
- case N:
1286
+ case O:
1281
1287
  case h:
1282
1288
  case F:
1283
1289
  case y:
@@ -1286,14 +1292,14 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1286
1292
  return Xa(e, v);
1287
1293
  case M:
1288
1294
  return Ga(e, v, s);
1289
- case $:
1295
+ case N:
1290
1296
  case X:
1291
- return new Z(e);
1297
+ return new P(e);
1292
1298
  case G:
1293
- return qa(e);
1299
+ return Ua(e);
1294
1300
  case K:
1295
- return Ua(e, v, s);
1296
- case q:
1301
+ return qa(e, v, s);
1302
+ case U:
1297
1303
  return Ya(e);
1298
1304
  }
1299
1305
  }
@@ -1325,13 +1331,13 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1325
1331
  return "";
1326
1332
  }
1327
1333
  function cn(e) {
1328
- return qe(e, !0, !0);
1334
+ return Ue(e, !0, !0);
1329
1335
  }
1330
1336
  function kt(e, i) {
1331
1337
  return e === i || e !== e && i !== i;
1332
1338
  }
1333
1339
  function ln(e) {
1334
- return un(e) && oe.call(e, "callee") && (!la.call(e, "callee") || Se.call(e) == l);
1340
+ return un(e) && oe.call(e, "callee") && (!la.call(e, "callee") || Se.call(e) == u);
1335
1341
  }
1336
1342
  var Ye = Array.isArray;
1337
1343
  function St(e) {
@@ -1342,13 +1348,13 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1342
1348
  }
1343
1349
  var dn = da || pn;
1344
1350
  function It(e) {
1345
- var i = Oe(e) ? Se.call(e) : "";
1351
+ var i = xe(e) ? Se.call(e) : "";
1346
1352
  return i == C || i == S;
1347
1353
  }
1348
1354
  function fn(e) {
1349
1355
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= c;
1350
1356
  }
1351
- function Oe(e) {
1357
+ function xe(e) {
1352
1358
  var i = typeof e;
1353
1359
  return !!e && (i == "object" || i == "function");
1354
1360
  }
@@ -1369,10 +1375,10 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1369
1375
  const Br = Re, Lr = {
1370
1376
  key: 0,
1371
1377
  class: "sidebar-header"
1372
- }, Rr = { class: "sidebar-content-container" }, Zr = {
1378
+ }, Rr = { class: "sidebar-content-container" }, Pr = {
1373
1379
  key: 0,
1374
1380
  class: "sidebar-top"
1375
- }, Pr = { "aria-label": "Main menu" }, jr = {
1381
+ }, Zr = { "aria-label": "Main menu" }, jr = {
1376
1382
  key: 0,
1377
1383
  class: "level-primary top-items"
1378
1384
  }, Kr = {
@@ -1457,17 +1463,17 @@ const Br = Re, Lr = {
1457
1463
  f14d803c: m(o).height,
1458
1464
  "2c47047a": m(o).top,
1459
1465
  "5bea84ce": m(g).marginTop,
1460
- "24d345fe": m(d).display,
1461
- "26616c55": m(d).minHeight,
1466
+ "24d345fe": m(f).display,
1467
+ "26616c55": m(f).minHeight,
1462
1468
  f27d8cee: m(T).top,
1463
1469
  d026c078: m(T).zIndex
1464
1470
  }));
1465
- const r = tt(), c = _(() => !!r.header), l = _(() => !!r.top), o = _(() => ({
1471
+ const r = tt(), c = _(() => !!r.header), u = _(() => !!r.top), o = _(() => ({
1466
1472
  mobileTop: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : a.topOffset ? `${a.topOffset}px` : "0",
1467
1473
  top: a.topOffset ? `${a.topOffset}px` : "0",
1468
1474
  mobileHeight: a.mobileTopOffset && a.mobileEnabled ? `calc(100% - ${a.mobileTopOffset}px)` : "100%",
1469
1475
  height: a.topOffset ? `calc(100% - ${a.topOffset}px)` : "100%"
1470
- })), d = _(() => ({
1476
+ })), f = _(() => ({
1471
1477
  display: !a.mobileHeaderVisible && a.mobileEnabled ? "none" : "flex",
1472
1478
  minHeight: `${a.headerHeight}px`
1473
1479
  })), g = _(() => ({
@@ -1483,9 +1489,9 @@ const Br = Re, Lr = {
1483
1489
  ae.parentKey = y.key, (!ae.testId || !((J = ae.testId) != null && J.trim())) && (ae.testId = String(ae.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
1484
1490
  }
1485
1491
  return y;
1486
- }), S = _(() => a.topItems.length ? C(a.topItems) : []), M = _(() => a.bottomItems.length ? C(a.bottomItems) : []), $ = W(a.open), E = (h) => {
1492
+ }), S = _(() => a.topItems.length ? C(a.topItems) : []), M = _(() => a.bottomItems.length ? C(a.bottomItems) : []), N = W(a.open), E = (h) => {
1487
1493
  var F, y;
1488
- $.value !== h && ($.value = h, t("toggle", h)), h ? (F = document == null ? void 0 : document.body) == null || F.classList.add("kong-ui-app-sidebar-open") : (y = document == null ? void 0 : document.body) == null || y.classList.remove("kong-ui-app-sidebar-open"), G.value = !1;
1494
+ N.value !== h && (N.value = h, t("toggle", h)), h ? (F = document == null ? void 0 : document.body) == null || F.classList.add("kong-ui-app-sidebar-open") : (y = document == null ? void 0 : document.body) == null || y.classList.remove("kong-ui-app-sidebar-open"), G.value = !1;
1489
1495
  }, H = () => {
1490
1496
  a.mobileOverlayCloseOnClick && E(!1);
1491
1497
  }, G = W(!1), K = (h) => {
@@ -1496,31 +1502,31 @@ const Br = Re, Lr = {
1496
1502
  Fe(() => a.open, (h) => {
1497
1503
  E(h);
1498
1504
  });
1499
- const { debounce: X } = Gt(), q = X(() => {
1500
- $.value && I.value !== (window == null ? void 0 : window.innerWidth) && (I.value = window == null ? void 0 : window.innerWidth, E(!1));
1501
- }, 200), I = W(), P = W(!1), O = W(), u = () => {
1502
- P.value || (P.value = !0, clearTimeout(O.value), O.value = setTimeout(() => P.value = !1, 1300));
1503
- }, f = W(null), b = _(() => $.value && a.mobileEnabled), N = async (h) => {
1505
+ const { debounce: X } = Gt(), U = X(() => {
1506
+ N.value && I.value !== (window == null ? void 0 : window.innerWidth) && (I.value = window == null ? void 0 : window.innerWidth, E(!1));
1507
+ }, 200), I = W(), Z = W(!1), x = W(), l = () => {
1508
+ Z.value || (Z.value = !0, clearTimeout(x.value), x.value = setTimeout(() => Z.value = !1, 1300));
1509
+ }, d = W(null), b = _(() => N.value && a.mobileEnabled), O = async (h) => {
1504
1510
  var F, y;
1505
- h ? (await wn(), await new Promise((R) => setTimeout(R, 300)), (F = f.value) == null || F.activate()) : (y = f.value) == null || y.deactivate();
1511
+ h ? (await wn(), await new Promise((R) => setTimeout(R, 300)), (F = d.value) == null || F.activate()) : (y = d.value) == null || y.deactivate();
1506
1512
  };
1507
1513
  return Fe(b, async (h) => {
1508
- h ? await N(!0) : await N(!1);
1509
- }, { immediate: !0 }), Ze(() => {
1510
- I.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", q), window.addEventListener("resize", u);
1511
- }), Pt(() => {
1512
- window.removeEventListener("resize", q), window.removeEventListener("resize", u);
1514
+ h ? await O(!0) : await O(!1);
1515
+ }, { immediate: !0 }), Pe(() => {
1516
+ I.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", U), window.addEventListener("resize", l);
1517
+ }), Zt(() => {
1518
+ window.removeEventListener("resize", U), window.removeEventListener("resize", l);
1513
1519
  }), (h, F) => {
1514
1520
  const y = te("KIcon"), R = te("KDropdownItem");
1515
- return p(), A(ue, null, [
1516
- $.value && n.mobileOverlay && n.mobileEnabled ? (p(), A("div", {
1521
+ return p(), $(ue, null, [
1522
+ N.value && n.mobileOverlay && n.mobileEnabled ? (p(), $("div", {
1517
1523
  key: 0,
1518
1524
  class: "kong-ui-app-sidebar-overlay",
1519
1525
  onClick: H
1520
1526
  })) : B("", !0),
1521
- Pe(m(Dr), {
1527
+ Ze(m(Dr), {
1522
1528
  ref_key: "focusTrap",
1523
- ref: f,
1529
+ ref: d,
1524
1530
  active: !1,
1525
1531
  "allow-outside-click": "",
1526
1532
  "fallback-focus": ".kong-ui-app-sidebar"
@@ -1528,32 +1534,32 @@ const Br = Re, Lr = {
1528
1534
  default: L(() => [
1529
1535
  w("aside", {
1530
1536
  class: ee(["kong-ui-app-sidebar", {
1531
- "sidebar-open": $.value,
1537
+ "sidebar-open": N.value,
1532
1538
  "no-sidebar-header": !m(c),
1533
1539
  "mobile-header-hidden": n.mobileEnabled && (!m(c) || !n.mobileHeaderVisible),
1534
1540
  "mobile-disabled": !n.mobileEnabled,
1535
- "disable-transitions": P.value
1541
+ "disable-transitions": Z.value
1536
1542
  }]),
1537
1543
  tabindex: "-1"
1538
1544
  }, [
1539
- m(c) ? (p(), A("div", Lr, [
1545
+ m(c) ? (p(), $("div", Lr, [
1540
1546
  D(h.$slots, "header", {}, void 0, !0)
1541
1547
  ])) : B("", !0),
1542
1548
  w("div", Rr, [
1543
- m(l) ? (p(), A("div", Zr, [
1549
+ m(u) ? (p(), $("div", Pr, [
1544
1550
  D(h.$slots, "top", {}, void 0, !0)
1545
1551
  ])) : B("", !0),
1546
- w("nav", Pr, [
1547
- m(S).length ? (p(), A("ul", jr, [
1548
- (p(!0), A(ue, null, he(m(S), (k) => (p(), j(Nt, {
1552
+ w("nav", Zr, [
1553
+ m(S).length ? (p(), $("ul", jr, [
1554
+ (p(!0), $(ue, null, he(m(S), (k) => (p(), j(Nt, {
1549
1555
  key: k.name,
1550
1556
  item: k,
1551
1557
  onClick: K
1552
1558
  }, null, 8, ["item"]))), 128))
1553
1559
  ])) : B("", !0),
1554
- m(S).length && m(M).length ? (p(), A("div", Kr)) : B("", !0),
1555
- m(M).length ? (p(), A("ul", Hr, [
1556
- (p(!0), A(ue, null, he(m(M), (k) => (p(), j(Nt, {
1560
+ m(S).length && m(M).length ? (p(), $("div", Kr)) : B("", !0),
1561
+ m(M).length ? (p(), $("ul", Hr, [
1562
+ (p(!0), $(ue, null, he(m(M), (k) => (p(), j(Nt, {
1557
1563
  key: k.name,
1558
1564
  item: k,
1559
1565
  onClick: K
@@ -1570,7 +1576,7 @@ const Br = Re, Lr = {
1570
1576
  name: n.profileName
1571
1577
  }, {
1572
1578
  default: L(() => [
1573
- (p(!0), A(ue, null, he(n.profileItems, (k) => (p(), j(R, {
1579
+ (p(!0), $(ue, null, he(n.profileItems, (k) => (p(), j(R, {
1574
1580
  key: k.name,
1575
1581
  class: ee([{ "has-divider": k.hasDivider }, { "external-profile-dropdown-link": (k.external || k.newWindow) && typeof k.to == "string" }]),
1576
1582
  "has-divider": k.hasDivider,
@@ -1578,7 +1584,7 @@ const Br = Re, Lr = {
1578
1584
  onClick: (J) => K(k)
1579
1585
  }, {
1580
1586
  default: L(() => [
1581
- (k.external || k.newWindow) && typeof k.to == "string" ? (p(), A("a", {
1587
+ (k.external || k.newWindow) && typeof k.to == "string" ? (p(), $("a", {
1582
1588
  key: 0,
1583
1589
  class: "sidebar-item-external-link",
1584
1590
  href: k.to,
@@ -1609,8 +1615,8 @@ const Br = Re, Lr = {
1609
1615
  };
1610
1616
  }
1611
1617
  });
1612
- const Gr = /* @__PURE__ */ Y(Wr, [["__scopeId", "data-v-46293c41"]]), rt = (n) => (at("data-v-33b3f7c3"), n = n(), nt(), n), qr = ["aria-label", "onClick"], Ur = /* @__PURE__ */ rt(() => /* @__PURE__ */ w("span", { class: "line" }, null, -1)), Yr = /* @__PURE__ */ rt(() => /* @__PURE__ */ w("span", { class: "line" }, null, -1)), Xr = /* @__PURE__ */ rt(() => /* @__PURE__ */ w("span", { class: "line" }, null, -1)), Jr = [
1613
- Ur,
1618
+ const Gr = /* @__PURE__ */ Y(Wr, [["__scopeId", "data-v-46293c41"]]), rt = (n) => (at("data-v-33b3f7c3"), n = n(), nt(), n), Ur = ["aria-label", "onClick"], qr = /* @__PURE__ */ rt(() => /* @__PURE__ */ w("span", { class: "line" }, null, -1)), Yr = /* @__PURE__ */ rt(() => /* @__PURE__ */ w("span", { class: "line" }, null, -1)), Xr = /* @__PURE__ */ rt(() => /* @__PURE__ */ w("span", { class: "line" }, null, -1)), Jr = [
1619
+ qr,
1614
1620
  Yr,
1615
1621
  Xr
1616
1622
  ], Qr = /* @__PURE__ */ Q({
@@ -1626,16 +1632,16 @@ const Gr = /* @__PURE__ */ Y(Wr, [["__scopeId", "data-v-46293c41"]]), rt = (n) =
1626
1632
  const a = n, r = W(a.active || !1), c = () => {
1627
1633
  r.value = !r.value, t("toggle", r.value);
1628
1634
  };
1629
- return Fe(() => a.active, (l) => {
1630
- r.value = l;
1631
- }), (l, o) => (p(), A("a", {
1635
+ return Fe(() => a.active, (u) => {
1636
+ r.value = u;
1637
+ }), (u, o) => (p(), $("a", {
1632
1638
  "aria-haspopup": "true",
1633
1639
  "aria-label": r.value ? "Close Main Menu" : "Open Main Menu",
1634
1640
  class: ee(["sidebar-menu-toggle", { active: r.value }]),
1635
1641
  href: "#",
1636
1642
  role: "button",
1637
- onClick: Zt(c, ["prevent"])
1638
- }, Jr, 10, qr));
1643
+ onClick: Pt(c, ["prevent"])
1644
+ }, Jr, 10, Ur));
1639
1645
  }
1640
1646
  });
1641
1647
  const ei = /* @__PURE__ */ Y(Qr, [["__scopeId", "data-v-33b3f7c3"]]), ti = (n) => (at("data-v-421b8aac"), n = n(), nt(), n), ai = { id: "kong-ui-app-layout-notification" }, ni = { class: "mobile-logo" }, ri = {
@@ -1698,9 +1704,9 @@ const ei = /* @__PURE__ */ Y(Qr, [["__scopeId", "data-v-33b3f7c3"]]), ti = (n) =
1698
1704
  sidebarHeader: _(() => !!r["sidebar-header"]),
1699
1705
  sidebarTop: _(() => !!r["sidebar-top"]),
1700
1706
  sidebarFooter: _(() => !!r["sidebar-footer"])
1701
- }), l = _(() => a.hideDefaultSlot), o = Ee({
1707
+ }), u = _(() => a.hideDefaultSlot), o = Ee({
1702
1708
  hidden: _(() => a.navbarHidden)
1703
- }), d = Ee({
1709
+ }), f = Ee({
1704
1710
  topItems: _(() => a.sidebarTopItems),
1705
1711
  bottomItems: _(() => a.sidebarBottomItems),
1706
1712
  profileItems: _(() => a.sidebarProfileItems),
@@ -1713,42 +1719,42 @@ const ei = /* @__PURE__ */ Y(Qr, [["__scopeId", "data-v-33b3f7c3"]]), ti = (n) =
1713
1719
  T.value = I;
1714
1720
  };
1715
1721
  Tn(() => {
1716
- T.value = kn(d, "open").value || !1;
1722
+ T.value = kn(f, "open").value || !1;
1717
1723
  });
1718
- const S = W(0), M = W(60), $ = W(0), E = _(() => o.hidden ? $.value : M.value + $.value), H = _(() => `${E.value}px`), G = _(() => d.hidden || o.hidden ? "0" : "16px"), { debounce: K } = Gt(), X = K((I = !1) => {
1724
+ const S = W(0), M = W(60), N = W(0), E = _(() => o.hidden ? N.value : M.value + N.value), H = _(() => `${E.value}px`), G = _(() => f.hidden || o.hidden ? "0" : "16px"), { debounce: K } = Gt(), X = K((I = !1) => {
1719
1725
  if (I || S.value !== (window == null ? void 0 : window.innerWidth)) {
1720
- const P = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
1721
- P && ($.value = P.offsetHeight);
1726
+ const Z = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
1727
+ Z && (N.value = Z.offsetHeight);
1722
1728
  }
1723
- }, 200), q = W();
1724
- return Ze(() => {
1725
- var P, O;
1726
- (P = document == null ? void 0 : document.body) == null || P.classList.add("kong-ui-app-layout-body"), (O = document == null ? void 0 : document.documentElement) == null || O.classList.add("kong-ui-app-layout-html"), S.value = window == null ? void 0 : window.innerWidth, X(!0);
1729
+ }, 200), U = W();
1730
+ return Pe(() => {
1731
+ var Z, x;
1732
+ (Z = document == null ? void 0 : document.body) == null || Z.classList.add("kong-ui-app-layout-body"), (x = document == null ? void 0 : document.documentElement) == null || x.classList.add("kong-ui-app-layout-html"), S.value = window == null ? void 0 : window.innerWidth, X(!0);
1727
1733
  const I = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
1728
- I && (q.value = new ResizeObserver((u) => {
1729
- for (const f of u) {
1730
- const b = f.contentRect.height;
1731
- $.value !== b && ($.value = b);
1734
+ I && (U.value = new ResizeObserver((l) => {
1735
+ for (const d of l) {
1736
+ const b = d.contentRect.height;
1737
+ N.value !== b && (N.value = b);
1732
1738
  }
1733
- }), q.value.observe(I)), window.addEventListener("resize", X);
1734
- }), Pt(() => {
1735
- q.value && q.value.disconnect(), window.removeEventListener("resize", X);
1736
- }), (I, P) => (p(), A("div", {
1739
+ }), U.value.observe(I)), window.addEventListener("resize", X);
1740
+ }), Zt(() => {
1741
+ U.value && U.value.disconnect(), window.removeEventListener("resize", X);
1742
+ }), (I, Z) => (p(), $("div", {
1737
1743
  class: ee(["kong-ui-app-layout", [
1738
1744
  { "navbar-hidden": o.hidden },
1739
- { "sidebar-hidden": d.hidden }
1745
+ { "sidebar-hidden": f.hidden }
1740
1746
  ]])
1741
1747
  }, [
1742
1748
  w("div", ai, [
1743
1749
  D(I.$slots, "notification", {}, void 0, !0)
1744
1750
  ]),
1745
1751
  o.hidden ? B("", !0) : (p(), j(Dn, {
1746
- key: String(d.hidden),
1747
- "left-offset": d.hidden ? 0 : void 0,
1748
- "top-offset": $.value
1752
+ key: String(f.hidden),
1753
+ "left-offset": f.hidden ? 0 : void 0,
1754
+ "top-offset": N.value
1749
1755
  }, $t({
1750
1756
  "mobile-sidebar-toggle": L(() => [
1751
- d.hidden ? B("", !0) : (p(), j(ei, {
1757
+ f.hidden ? B("", !0) : (p(), j(ei, {
1752
1758
  key: 0,
1753
1759
  active: T.value,
1754
1760
  onToggle: C
@@ -1768,7 +1774,7 @@ const ei = /* @__PURE__ */ Y(Qr, [["__scopeId", "data-v-33b3f7c3"]]), ti = (n) =
1768
1774
  c.navbarLogo ? {
1769
1775
  name: "logo",
1770
1776
  fn: L(() => [
1771
- d.hidden ? (p(), A("div", ri, [
1777
+ f.hidden ? (p(), $("div", ri, [
1772
1778
  D(I.$slots, "navbar-logo", {}, void 0, !0)
1773
1779
  ])) : B("", !0)
1774
1780
  ]),
@@ -1796,18 +1802,18 @@ const ei = /* @__PURE__ */ Y(Qr, [["__scopeId", "data-v-33b3f7c3"]]), ti = (n) =
1796
1802
  key: "4"
1797
1803
  } : void 0
1798
1804
  ]), 1032, ["left-offset", "top-offset"])),
1799
- d.hidden ? B("", !0) : (p(), j(Gr, {
1805
+ f.hidden ? B("", !0) : (p(), j(Gr, {
1800
1806
  key: 1,
1801
- "bottom-items": d.bottomItems,
1807
+ "bottom-items": f.bottomItems,
1802
1808
  "header-height": M.value,
1803
1809
  "mobile-enabled": "",
1804
1810
  "mobile-header-visible": !1,
1805
1811
  "mobile-top-offset": m(E),
1806
1812
  open: T.value,
1807
- "profile-items": d.profileItems,
1808
- "profile-name": d.profileName,
1809
- "top-items": d.topItems,
1810
- "top-offset": $.value,
1813
+ "profile-items": f.profileItems,
1814
+ "profile-name": f.profileName,
1815
+ "top-items": f.topItems,
1816
+ "top-offset": N.value,
1811
1817
  onClick: g,
1812
1818
  onToggle: C
1813
1819
  }, $t({ _: 2 }, [
@@ -1837,7 +1843,7 @@ const ei = /* @__PURE__ */ Y(Qr, [["__scopeId", "data-v-33b3f7c3"]]), ti = (n) =
1837
1843
  w("div", oi, [
1838
1844
  si,
1839
1845
  D(I.$slots, "app-error", {}, void 0, !0),
1840
- m(l) ? B("", !0) : D(I.$slots, "default", { key: 0 }, void 0, !0)
1846
+ m(u) ? B("", !0) : D(I.$slots, "default", { key: 0 }, void 0, !0)
1841
1847
  ])
1842
1848
  ])
1843
1849
  ], 2));
@@ -1865,11 +1871,11 @@ const li = /* @__PURE__ */ Y(ci, [["__scopeId", "data-v-421b8aac"]]), ui = /* @_
1865
1871
  },
1866
1872
  emits: ["change"],
1867
1873
  setup(n, { emit: t }) {
1868
- var l;
1869
- const a = n, r = W(((l = a.options) == null ? void 0 : l.filter((o) => !!o.selected)[0]) || a.options[0]), c = (o) => {
1874
+ var u;
1875
+ const a = n, r = W(((u = a.options) == null ? void 0 : u.filter((o) => !!o.selected)[0]) || a.options[0]), c = (o) => {
1870
1876
  r.value = o, t("change", r.value);
1871
1877
  };
1872
- return (o, d) => {
1878
+ return (o, f) => {
1873
1879
  const g = te("KDropdownItem"), T = te("KDropdownMenu");
1874
1880
  return p(), j(T, {
1875
1881
  appearance: "selectionMenu",
@@ -1879,11 +1885,11 @@ const li = /* @__PURE__ */ Y(ci, [["__scopeId", "data-v-421b8aac"]]), ui = /* @_
1879
1885
  "kpop-attributes": { placement: "bottomStart", disabled: n.disabled },
1880
1886
  label: r.value.label,
1881
1887
  width: n.width,
1882
- onChange: d[0] || (d[0] = (C) => c(C))
1888
+ onChange: f[0] || (f[0] = (C) => c(C))
1883
1889
  }, {
1884
1890
  items: L(({ handleSelection: C }) => [
1885
1891
  D(o.$slots, "default", {}, () => [
1886
- (p(!0), A(ue, null, he(n.options, (S) => (p(), j(g, {
1892
+ (p(!0), $(ue, null, he(n.options, (S) => (p(), j(g, {
1887
1893
  key: S.value,
1888
1894
  "data-testid": "select-" + S.value,
1889
1895
  selected: r.value.value === S.value,
@@ -1931,14 +1937,14 @@ const Ii = /* @__PURE__ */ Y(ui, [["__scopeId", "data-v-760cb07f"]]), di = /* @_
1931
1937
  size: "small",
1932
1938
  width: n.width
1933
1939
  }, {
1934
- items: L(({ handleSelection: l }) => [
1940
+ items: L(({ handleSelection: u }) => [
1935
1941
  D(t.$slots, "default", {}, () => [
1936
- (p(!0), A(ue, null, he(n.options, (o) => (p(), j(r, {
1942
+ (p(!0), $(ue, null, he(n.options, (o) => (p(), j(r, {
1937
1943
  key: o.value,
1938
1944
  class: ee({ "has-divider": o.hasDivider }),
1939
1945
  "data-testid": "select-" + o.value,
1940
1946
  "has-divider": o.hasDivider,
1941
- onClick: (d) => l(o)
1947
+ onClick: (f) => u(o)
1942
1948
  }, {
1943
1949
  default: L(() => [
1944
1950
  D(t.$slots, "default", { option: o }, () => [
@@ -1963,18 +1969,18 @@ const Ci = /* @__PURE__ */ Y(di, [["__scopeId", "data-v-a67a46ee"]]), fi = {}, v
1963
1969
  bi
1964
1970
  ];
1965
1971
  function hi(n, t) {
1966
- return p(), A("svg", vi, pi);
1972
+ return p(), $("svg", vi, pi);
1967
1973
  }
1968
- const mi = /* @__PURE__ */ Y(fi, [["render", hi]]), qt = (n) => (at("data-v-ff05f71e"), n = n(), nt(), n), gi = { class: "kong-ui-app-error" }, yi = { class: "banana-icon" }, _i = { class: "kong-ui-app-error-content" }, wi = /* @__PURE__ */ qt(() => /* @__PURE__ */ w("h2", null, "An unexpected error has occurred", -1)), Ti = /* @__PURE__ */ qt(() => /* @__PURE__ */ w("p", null, [
1974
+ const mi = /* @__PURE__ */ Y(fi, [["render", hi]]), Ut = (n) => (at("data-v-ff05f71e"), n = n(), nt(), n), gi = { class: "kong-ui-app-error" }, yi = { class: "banana-icon" }, _i = { class: "kong-ui-app-error-content" }, wi = /* @__PURE__ */ Ut(() => /* @__PURE__ */ w("h2", null, "An unexpected error has occurred", -1)), Ti = /* @__PURE__ */ Ut(() => /* @__PURE__ */ w("p", null, [
1969
1975
  /* @__PURE__ */ Te("Go back to the previous page or "),
1970
1976
  /* @__PURE__ */ w("a", { href: "/" }, "return home"),
1971
1977
  /* @__PURE__ */ Te(".")
1972
1978
  ], -1)), ki = /* @__PURE__ */ Q({
1973
1979
  __name: "AppError",
1974
1980
  setup(n) {
1975
- return (t, a) => (p(), A("section", gi, [
1981
+ return (t, a) => (p(), $("section", gi, [
1976
1982
  w("div", yi, [
1977
- Pe(mi)
1983
+ Ze(mi)
1978
1984
  ]),
1979
1985
  w("div", _i, [
1980
1986
  D(t.$slots, "default", {}, () => [
@@ -1985,7 +1991,7 @@ const mi = /* @__PURE__ */ Y(fi, [["render", hi]]), qt = (n) => (at("data-v-ff05
1985
1991
  ]));
1986
1992
  }
1987
1993
  });
1988
- const Oi = /* @__PURE__ */ Y(ki, [["__scopeId", "data-v-ff05f71e"]]), xi = {
1994
+ const xi = /* @__PURE__ */ Y(ki, [["__scopeId", "data-v-ff05f71e"]]), Oi = {
1989
1995
  // Customize Vue plugin options as desired
1990
1996
  // Providing a `name` property allows for customizing the registered
1991
1997
  // name of your component (useful if exporting a single component).
@@ -1995,12 +2001,12 @@ const Oi = /* @__PURE__ */ Y(ki, [["__scopeId", "data-v-ff05f71e"]]), xi = {
1995
2001
  };
1996
2002
  export {
1997
2003
  Ci as AccountDropdown,
1998
- Oi as AppError,
2004
+ xi as AppError,
1999
2005
  li as AppLayout,
2000
2006
  Dn as AppNavbar,
2001
2007
  Gr as AppSidebar,
2002
2008
  Ii as NavbarDropdownMenu,
2003
2009
  ei as SidebarToggle,
2004
- xi as default
2010
+ Oi as default
2005
2011
  };
2006
2012
  //# sourceMappingURL=app-layout.es.js.map