@illinois-grad/grad-vue 7.2.1 → 7.2.2

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,11 +1,11 @@
1
1
  import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, getCurrentScope as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onBeforeMount as y, onBeforeUnmount as b, onMounted as x, onScopeDispose as S, onUnmounted as C, openBlock as w, provide as T, reactive as E, readonly as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as j, shallowReactive as M, shallowRef as N, toDisplayString as P, toRaw as F, toRef as I, toValue as L, unref as R, useAttrs as z, useId as B, useModel as V, useSlots as H, useTemplateRef as U, vShow as ee, watch as W, watchEffect as G, withCtx as K, withDirectives as te, withModifiers as q } from "vue";
2
- import { createEventHook as ne, toArray as re, tryOnScopeDispose as ie, unrefElement as J, useClipboard as ae, useDebounceFn as Y, useFocusWithin as X, useIntersectionObserver as Z, useLocalStorage as oe, useMediaQuery as se, useMutationObserver as ce, useResizeObserver as le, useSessionStorage as ue } from "@vueuse/core";
3
- import { createFocusTrap as de } from "focus-trap";
2
+ import { createEventHook as ne, toArray as J, tryOnScopeDispose as re, unrefElement as Y, useClipboard as ie, useDebounceFn as X, useFocusWithin as Z, useIntersectionObserver as ae, useLocalStorage as oe, useMediaQuery as se, useMutationObserver as Q, useResizeObserver as ce, useSessionStorage as le } from "@vueuse/core";
3
+ import { createFocusTrap as ue } from "focus-trap";
4
4
  //#region src/compose/useCustomElementAttrs.ts
5
- function fe() {
5
+ function de() {
6
6
  return globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0;
7
7
  }
8
- function pe(e = {}) {
8
+ function fe(e = {}) {
9
9
  let t = z(), n = globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0, i = e.omitInCustomElement ?? [];
10
10
  return {
11
11
  attrs: t,
@@ -20,7 +20,7 @@ function pe(e = {}) {
20
20
  }
21
21
  //#endregion
22
22
  //#region src/components/GButton.vue?vue&type=script&setup=true&lang.ts
23
- var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PURE__ */ u({
23
+ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PURE__ */ u({
24
24
  inheritAttrs: !1,
25
25
  __name: "GButton",
26
26
  props: {
@@ -55,7 +55,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
55
55
  "mouseleave"
56
56
  ],
57
57
  setup(t, { emit: n }) {
58
- let a = t, c = H(), l = n, { forwardedAttrs: u } = pe({ omitInCustomElement: ["id"] }), d = r(() => [
58
+ let a = t, c = H(), l = n, { forwardedAttrs: u } = fe({ omitInCustomElement: ["id"] }), d = r(() => [
59
59
  "g-btn",
60
60
  `g-btn--${a.size}`,
61
61
  `g-btn--${a.theme}`,
@@ -89,11 +89,11 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
89
89
  onMouseenter: r[6] ||= (e) => n.$emit("mouseenter", e),
90
90
  onMouseleave: r[7] ||= (e) => n.$emit("mouseleave", e)
91
91
  }), {
92
- default: K(() => [t.icon || c.icon ? (w(), o(e, { key: 0 }, [s("span", me, [c.icon ? A(n.$slots, "icon", {}, void 0, void 0, 0) : (w(), o("span", {
92
+ default: K(() => [t.icon || c.icon ? (w(), o(e, { key: 0 }, [s("span", pe, [c.icon ? A(n.$slots, "icon", {}, void 0, void 0, 0) : (w(), o("span", {
93
93
  key: 1,
94
94
  class: _(t.icon + " g-btn--icon-span"),
95
95
  "aria-hidden": "true"
96
- }, null, 2))]), s("span", he, [A(n.$slots, "default")])], 64)) : A(n.$slots, "default", {}, void 0, void 0, 1)]),
96
+ }, null, 2))]), s("span", me, [A(n.$slots, "default")])], 64)) : A(n.$slots, "default", {}, void 0, void 0, 1)]),
97
97
  _: 3
98
98
  }, 16, [
99
99
  "to",
@@ -103,13 +103,13 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
103
103
  "aria-disabled"
104
104
  ]));
105
105
  }
106
- }), ge = { class: "g-tree-menu__divider" }, _e = {
106
+ }), he = { class: "g-tree-menu__divider" }, ge = {
107
107
  key: 0,
108
108
  class: "g-tree-menu__divider-line"
109
- }, ve = {
109
+ }, _e = {
110
110
  key: 1,
111
111
  class: "g-tree-menu__expand-all-wrapper"
112
- }, ye = { class: "g-tree-menu__content" }, be = /* @__PURE__ */ u({
112
+ }, ve = { class: "g-tree-menu__content" }, ye = /* @__PURE__ */ u({
113
113
  __name: "GTreeMenu",
114
114
  props: {
115
115
  heading: {},
@@ -129,7 +129,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
129
129
  setup(e) {
130
130
  let t = e, n = H(), l = d(), u = B(), f = (l?.ce)?._slots?.heading?.length > 0, p = r(() => !!t.heading || !!n.heading || f);
131
131
  T("g-tree-menu-list-type", t.listType);
132
- let m = t.storageKey ? ue(t.storageKey, {}) : null;
132
+ let m = t.storageKey ? le(t.storageKey, {}) : null;
133
133
  T("g-tree-menu-expanded-storage", m);
134
134
  let g = E(/* @__PURE__ */ new Map());
135
135
  T("g-tree-menu-expandable-items", g);
@@ -162,7 +162,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
162
162
  default: K(() => [A(n.$slots, "heading", {}, () => [c(P(e.heading), 1)])]),
163
163
  _: 3
164
164
  }, 8, ["id"])) : a("", !0),
165
- s("div", ge, [e.smallHeading ? a("", !0) : (w(), o("div", _e)), e.showExpandAll ? (w(), o("div", ve, [s("button", {
165
+ s("div", he, [e.smallHeading ? a("", !0) : (w(), o("div", ge)), e.showExpandAll ? (w(), o("div", _e, [s("button", {
166
166
  class: "g-tree-menu__expand-all-btn",
167
167
  onClick: b
168
168
  }, [(w(), o("svg", {
@@ -175,14 +175,14 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
175
175
  "stroke-linecap": "round",
176
176
  "stroke-linejoin": "round"
177
177
  }, [...r[0] ||= [s("polyline", { points: "7 8 12 13 17 8" }, null, -1), s("polyline", { points: "7 13 12 18 17 13" }, null, -1)]], 2)), c(" " + P(y.value ? "Collapse all" : "Expand all"), 1)])])) : a("", !0)]),
178
- s("div", ye, [A(n.$slots, "default")])
178
+ s("div", ve, [A(n.$slots, "default")])
179
179
  ], 16));
180
180
  }
181
- }), xe = /* @__PURE__ */ u({
181
+ }), be = /* @__PURE__ */ u({
182
182
  name: "GTreeMenuList",
183
183
  props: { listType: { default: void 0 } },
184
184
  setup(e) {
185
- let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o = fe(), s = d();
185
+ let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o = de(), s = d();
186
186
  return x(() => {
187
187
  if (!o) return;
188
188
  let e = s?.ce;
@@ -195,20 +195,20 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
195
195
  _: 3
196
196
  }, 8, ["role"]));
197
197
  }
198
- }), Se = {
198
+ }), xe = {
199
199
  key: 0,
200
200
  class: "g-tree-menu__row"
201
- }, Ce = { class: "g-tree-menu__row-content-text" }, we = [
201
+ }, Se = { class: "g-tree-menu__row-content-text" }, Ce = [
202
202
  "aria-controls",
203
203
  "aria-expanded",
204
204
  "aria-label"
205
- ], Te = {
205
+ ], we = {
206
206
  key: 1,
207
207
  class: "g-tree-menu__row g-tree-menu__row--leaf"
208
- }, Ee = {
208
+ }, Te = {
209
209
  class: "g-tree-menu__row-content",
210
210
  "data-tree-primary": ""
211
- }, De = /* @__PURE__ */ u({
211
+ }, Ee = /* @__PURE__ */ u({
212
212
  name: "GTreeMenuItem",
213
213
  inheritAttrs: !1,
214
214
  props: {
@@ -259,7 +259,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
259
259
  function F(e) {
260
260
  e.target.closest("a, button") || T();
261
261
  }
262
- let I = fe(), L = u?.ce;
262
+ let I = de(), L = u?.ce;
263
263
  x(() => {
264
264
  I && L && L.setAttribute("role", "listitem");
265
265
  });
@@ -273,11 +273,11 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
273
273
  class: "g-tree-menu__item",
274
274
  "data-tree-expandable": g.value ? "true" : void 0
275
275
  }), {
276
- default: K(() => [g.value ? (w(), o("div", Se, [s("span", {
276
+ default: K(() => [g.value ? (w(), o("div", xe, [s("span", {
277
277
  class: "g-tree-menu__row-content",
278
278
  "data-tree-primary": "",
279
279
  onClick: F
280
- }, [s("span", Ce, [A(e.$slots, "default")])]), s("button", {
280
+ }, [s("span", Se, [A(e.$slots, "default")])]), s("button", {
281
281
  type: "button",
282
282
  class: "g-tree-menu__toggle-btn",
283
283
  "aria-controls": R(f) + "-children",
@@ -295,7 +295,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
295
295
  "stroke-width": "2.5",
296
296
  "stroke-linecap": "round",
297
297
  "stroke-linejoin": "round"
298
- }, [...t[0] ||= [s("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))], 8, we)])) : (w(), o("div", Te, [t[1] ||= s("span", { class: "g-tree-menu__spacer" }, null, -1), s("span", Ee, [A(e.$slots, "default")])])), g.value && C.value ? (w(), i(xe, {
298
+ }, [...t[0] ||= [s("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))], 8, Ce)])) : (w(), o("div", we, [t[1] ||= s("span", { class: "g-tree-menu__spacer" }, null, -1), s("span", Te, [A(e.$slots, "default")])])), g.value && C.value ? (w(), i(be, {
299
299
  key: 2,
300
300
  id: R(f) + "-children"
301
301
  }, {
@@ -308,7 +308,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
308
308
  });
309
309
  //#endregion
310
310
  //#region src/compose/useForm.ts
311
- function Oe() {
311
+ function De() {
312
312
  let e = M({}), t = O(!1), n = r(() => {
313
313
  let t = {};
314
314
  return Object.entries(e).forEach(([e, n]) => {
@@ -350,18 +350,18 @@ function Oe() {
350
350
  }
351
351
  //#endregion
352
352
  //#region src/compose/useWebComponentForm.ts
353
- function ke() {
353
+ function Oe() {
354
354
  let e = globalThis;
355
355
  return e.__GRAD_VUE_WC_FORMS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_FORMS__;
356
356
  }
357
- function Ae(e = "default") {
358
- let t = ke(), n = e || "default";
359
- return t.has(n) || t.set(n, Oe()), t.get(n);
357
+ function ke(e = "default") {
358
+ let t = Oe(), n = e || "default";
359
+ return t.has(n) || t.set(n, De()), t.get(n);
360
360
  }
361
361
  //#endregion
362
362
  //#region src/compose/useFormField.ts
363
- function $(e) {
364
- let t = z(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (fe() ? Ae(i) : null), o = r(() => {
363
+ function Ae(e) {
364
+ let t = z(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (de() ? ke(i) : null), o = r(() => {
365
365
  let t = [];
366
366
  return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
367
367
  }), s = r(() => o.value.length > 0), c = e.name;
@@ -448,7 +448,7 @@ var je = ["id"], Me = /* @__PURE__ */ u({
448
448
  }),
449
449
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
450
450
  setup(e, { emit: t }) {
451
- let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = pe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: g, hasErrors: v } = $({
451
+ let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = fe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: g, hasErrors: v } = Ae({
452
452
  name: n.name,
453
453
  value: i,
454
454
  errors: I(n, "errors"),
@@ -577,14 +577,14 @@ function Ze(e, t = {}) {
577
577
  n && (n.unpause(), s.value = !1);
578
578
  }, f = r(() => {
579
579
  let t = L(e);
580
- return re(t).map((e) => {
580
+ return J(t).map((e) => {
581
581
  let t = L(e);
582
- return typeof t == "string" ? t : J(t);
582
+ return typeof t == "string" ? t : Y(t);
583
583
  }).filter(Xe);
584
584
  });
585
585
  return W(f, (e) => {
586
586
  if (e.length) {
587
- if (!n) n = de(e, {
587
+ if (!n) n = ue(e, {
588
588
  ...a,
589
589
  onActivate(e) {
590
590
  o.value = !0, t.onActivate && t.onActivate(e);
@@ -598,7 +598,7 @@ function Ze(e, t = {}) {
598
598
  n?.updateContainerElements(e), !t && i && c();
599
599
  }
600
600
  }
601
- }, { flush: "post" }), ie(() => l()), {
601
+ }, { flush: "post" }), re(() => l()), {
602
602
  hasFocus: o,
603
603
  isPaused: s,
604
604
  activate: c,
@@ -711,7 +711,7 @@ function rt(e, t, n, r) {
711
711
  var it = /* @__PURE__ */ u({
712
712
  __name: "GClientOnly",
713
713
  setup(e) {
714
- let t = O(fe());
714
+ let t = O(de());
715
715
  return x(() => {
716
716
  t.value = !0;
717
717
  }), (e, n) => t.value ? A(e.$slots, "default", {}, void 0, void 0, 0) : A(e.$slots, "fallback", {}, void 0, void 0, 1);
@@ -743,11 +743,11 @@ var it = /* @__PURE__ */ u({
743
743
  W(I(d, "modelValue"), (e) => {
744
744
  p.value = e;
745
745
  });
746
- let m = H(), h = r(() => !!m.trigger), y = U("triggerRef"), x = U("popoverRef"), S = U("popoverContentRef"), { isCustomElement: C } = pe(), T = C, E = B(), { push: D, pop: k, isTop: j, zIndex: M } = qe(E, !0), { activate: N, deactivate: P } = tt(x, j, !0);
746
+ let m = H(), h = r(() => !!m.trigger), y = U("triggerRef"), x = U("popoverRef"), S = U("popoverContentRef"), { isCustomElement: C } = fe(), T = C, E = B(), { push: D, pop: k, isTop: j, zIndex: M } = qe(E, !0), { activate: N, deactivate: P } = tt(x, j, !0);
747
747
  nt([x, y], j, p, L, k), W(p, (e) => {
748
748
  e ? (g(() => {
749
749
  g(() => N());
750
- }), D(), f("show")) : (P(), k(), f("hide"), re.value = !1, ie.value = null);
750
+ }), D(), f("show")) : (P(), k(), f("hide"), J.value = !1, re.value = null);
751
751
  });
752
752
  function F() {
753
753
  p.value = !0, f("update:modelValue", !0);
@@ -761,19 +761,19 @@ var it = /* @__PURE__ */ u({
761
761
  let V = O({
762
762
  top: 0,
763
763
  left: 0
764
- }), G = O({ left: "50%" }), q = O(!1), ne = O(!1), re = O(!1), ie = O(null), J = null;
765
- function ae() {
764
+ }), G = O({ left: "50%" }), q = O(!1), ne = O(!1), J = O(!1), re = O(null), Y = null;
765
+ function ie() {
766
766
  if (y.value) return y.value;
767
767
  let e = x.value?.parentElement ?? null;
768
768
  for (; e && e.tagName.toLowerCase() !== "g-popover";) e = e.parentElement;
769
769
  let t = e?.previousElementSibling;
770
770
  return t instanceof HTMLElement ? t : null;
771
771
  }
772
- function Y() {
772
+ function X() {
773
773
  if (!x.value || !S.value) return;
774
774
  let e = x.value, t = S.value, n = new DOMRect(0, 0, window.innerWidth, window.innerHeight), r = Math.max(n.height - 32, 0), i = window.getComputedStyle(e), a = t.offsetHeight + Number.parseFloat(i.paddingTop) + Number.parseFloat(i.paddingBottom) + Number.parseFloat(i.borderTopWidth) + Number.parseFloat(i.borderBottomWidth);
775
- re.value = a > r, ie.value = re.value ? r : null;
776
- let o = new DOMRect(0, 0, e.offsetWidth, Math.min(a, r)), s = ae();
775
+ J.value = a > r, re.value = J.value ? r : null;
776
+ let o = new DOMRect(0, 0, e.offsetWidth, Math.min(a, r)), s = ie();
777
777
  if (!s) {
778
778
  V.value = {
779
779
  top: Math.max((n.height - o.height) / 2, 16),
@@ -793,10 +793,10 @@ var it = /* @__PURE__ */ u({
793
793
  }
794
794
  return W(p, (e) => {
795
795
  e ? g(() => {
796
- Y(), window.addEventListener("resize", Y), window.addEventListener("scroll", Y, { capture: !0 }), x.value && (J && J.disconnect(), J = new ResizeObserver(() => Y()), S.value && J.observe(S.value));
797
- }) : (window.removeEventListener("resize", Y), window.removeEventListener("scroll", Y, { capture: !0 }), J && J.disconnect());
796
+ X(), window.addEventListener("resize", X), window.addEventListener("scroll", X, { capture: !0 }), x.value && (Y && Y.disconnect(), Y = new ResizeObserver(() => X()), S.value && Y.observe(S.value));
797
+ }) : (window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }), Y && Y.disconnect());
798
798
  }), b(() => {
799
- window.removeEventListener("resize", Y), window.removeEventListener("scroll", Y, { capture: !0 }), J && J.disconnect();
799
+ window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }), Y && Y.disconnect();
800
800
  }), c({
801
801
  show: F,
802
802
  hide: L,
@@ -829,7 +829,7 @@ var it = /* @__PURE__ */ u({
829
829
  "g-popover-above": q.value,
830
830
  "g-popover-below": !q.value,
831
831
  "g-popover-minimal": e.minimal,
832
- "g-popover-scrollable": re.value
832
+ "g-popover-scrollable": J.value
833
833
  }),
834
834
  role: "dialog",
835
835
  "aria-modal": "true",
@@ -839,10 +839,10 @@ var it = /* @__PURE__ */ u({
839
839
  top: V.value.top + "px",
840
840
  left: V.value.left + "px",
841
841
  zIndex: R(M),
842
- maxHeight: ie.value === null ? void 0 : `${ie.value}px`
842
+ maxHeight: re.value === null ? void 0 : `${re.value}px`
843
843
  })
844
844
  }, [
845
- !ne.value && !e.minimal && !re.value ? (w(), o("div", {
845
+ !ne.value && !e.minimal && !J.value ? (w(), o("div", {
846
846
  key: 0,
847
847
  class: _(["g-popover-arrow", { "g-popover-arrow-above": q.value }]),
848
848
  style: v(G.value),
@@ -1020,7 +1020,7 @@ var gt = /* @__PURE__ */ u({
1020
1020
  }),
1021
1021
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
1022
1022
  setup(t, { emit: n }) {
1023
- let i = t, u = n, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } = $({
1023
+ let i = t, u = n, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } = Ae({
1024
1024
  name: i.name,
1025
1025
  value: d,
1026
1026
  errors: I(i, "errors"),
@@ -1180,13 +1180,13 @@ var gt = /* @__PURE__ */ u({
1180
1180
  id: "alertdialog-description-" + R(f),
1181
1181
  class: "g-alertdialog-content"
1182
1182
  }, [A(e.$slots, "default")], 8, Mt),
1183
- s("div", Nt, [l(Q, {
1183
+ s("div", Nt, [l($, {
1184
1184
  outlined: "",
1185
1185
  onClick: r[0] ||= (e) => o("cancel")
1186
1186
  }, {
1187
1187
  default: K(() => [...r[2] ||= [c("Cancel", -1)]]),
1188
1188
  _: 1
1189
- }), l(Q, {
1189
+ }), l($, {
1190
1190
  theme: a.buttonColor,
1191
1191
  onClick: r[1] ||= (e) => o("confirm")
1192
1192
  }, {
@@ -1316,7 +1316,7 @@ var Lt = ["id"], Rt = {
1316
1316
  }),
1317
1317
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
1318
1318
  setup(t, { emit: n }) {
1319
- let i = t, u = n, d = V(t, "modelValue"), f = B(), p = O(null), m = O(null), v = O(null), y = O(!1), b = O(0), x = O(!1), S = O(!1), { displayErrors: C, hasErrors: T } = $({
1319
+ let i = t, u = n, d = V(t, "modelValue"), f = B(), p = O(null), m = O(null), v = O(null), y = O(!1), b = O(0), x = O(!1), S = O(!1), { displayErrors: C, hasErrors: T } = Ae({
1320
1320
  name: i.name,
1321
1321
  value: d,
1322
1322
  errors: I(i, "errors"),
@@ -1367,16 +1367,16 @@ var Lt = ["id"], Rt = {
1367
1367
  let t = e.relatedTarget;
1368
1368
  x.value ? x.value = !1 : t && m.value && m.value.contains(t) || (i.searchable && (F.value = ""), U());
1369
1369
  }
1370
- function re(e) {
1370
+ function J(e) {
1371
1371
  let t = L.value[e];
1372
1372
  t && t.value !== d.value && (d.value = t.value, u("change", t.value)), S.value = !0, U(), setTimeout(() => {
1373
1373
  S.value = !1;
1374
1374
  }, 100);
1375
1375
  }
1376
- function ie() {
1376
+ function re() {
1377
1377
  i.disabled || (y.value ? U() : H());
1378
1378
  }
1379
- function J(e) {
1379
+ function Y(e) {
1380
1380
  if (i.disabled) return;
1381
1381
  let t = L.value.length - 1;
1382
1382
  if (!y.value && [
@@ -1399,21 +1399,21 @@ var Lt = ["id"], Rt = {
1399
1399
  e.preventDefault(), b.value = t, M();
1400
1400
  break;
1401
1401
  case "Enter":
1402
- e.preventDefault(), y.value ? re(b.value) : H();
1402
+ e.preventDefault(), y.value ? J(b.value) : H();
1403
1403
  break;
1404
1404
  case "Escape": j.value && (e.preventDefault(), setTimeout(() => {
1405
1405
  U();
1406
1406
  }, 0));
1407
1407
  }
1408
1408
  }
1409
- function ae(e) {
1410
- re(e);
1409
+ function ie(e) {
1410
+ J(e);
1411
1411
  }
1412
- function Y() {
1412
+ function X() {
1413
1413
  x.value = !0;
1414
1414
  }
1415
- let X = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
1416
- function Z() {
1415
+ let Z = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
1416
+ function ae() {
1417
1417
  i.disabled || (d.value = null, u("change", null), i.searchable && (F.value = ""));
1418
1418
  }
1419
1419
  return (n, r) => (w(), o("div", { class: _(["g-select-root g-select-combo", {
@@ -1442,7 +1442,7 @@ var Lt = ["id"], Rt = {
1442
1442
  disabled: i.disabled,
1443
1443
  onFocus: G,
1444
1444
  onInput: K,
1445
- onKeydown: J,
1445
+ onKeydown: Y,
1446
1446
  onBlur: ne,
1447
1447
  "aria-autocomplete": "list",
1448
1448
  "aria-controls": R(f) + "-listbox",
@@ -1454,11 +1454,11 @@ var Lt = ["id"], Rt = {
1454
1454
  role: "combobox",
1455
1455
  autocomplete: "off"
1456
1456
  }), null, 16, Vt),
1457
- X.value ? (w(), o("button", {
1457
+ Z.value ? (w(), o("button", {
1458
1458
  key: 0,
1459
1459
  type: "button",
1460
1460
  class: "g-select-clear-btn",
1461
- onClick: Z
1461
+ onClick: ae
1462
1462
  }, [...r[0] ||= [s("svg", {
1463
1463
  role: "img",
1464
1464
  "aria-label": "Clear Selection",
@@ -1493,17 +1493,17 @@ var Lt = ["id"], Rt = {
1493
1493
  }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": R(f) + "-label" }, {
1494
1494
  "aria-activedescendant": y.value ? R(f) + "-option-" + b.value : void 0,
1495
1495
  tabindex: "0",
1496
- onClick: ie,
1497
- onKeydown: J,
1496
+ onClick: re,
1497
+ onKeydown: Y,
1498
1498
  onFocus: G,
1499
1499
  onBlur: ne
1500
1500
  }), [
1501
1501
  c(P(N.value[z.value] ? N.value[z.value].label : "") + " ", 1),
1502
- X.value ? (w(), o("button", {
1502
+ Z.value ? (w(), o("button", {
1503
1503
  key: 0,
1504
1504
  type: "button",
1505
1505
  class: "g-select-clear-btn",
1506
- onClick: q(Z, ["stop"])
1506
+ onClick: q(ae, ["stop"])
1507
1507
  }, [...r[2] ||= [s("svg", {
1508
1508
  role: "img",
1509
1509
  "aria-label": "Clear Selection",
@@ -1540,8 +1540,8 @@ var Lt = ["id"], Rt = {
1540
1540
  }]),
1541
1541
  role: "option",
1542
1542
  "aria-selected": e.value === d.value ? "true" : "false",
1543
- onMousedown: Y,
1544
- onClick: (e) => ae(t)
1543
+ onMousedown: X,
1544
+ onClick: (e) => ie(t)
1545
1545
  }, [A(n.$slots, "option", {
1546
1546
  option: e,
1547
1547
  selected: e.value === d.value,
@@ -1602,7 +1602,7 @@ var Lt = ["id"], Rt = {
1602
1602
  e && e.scrollIntoView({ block: "nearest" });
1603
1603
  });
1604
1604
  }
1605
- let { focused: S } = X(f);
1605
+ let { focused: S } = Z(f);
1606
1606
  function C(e) {
1607
1607
  let t = e.altKey;
1608
1608
  if (e.key === "ArrowDown") {
@@ -1626,7 +1626,7 @@ var Lt = ["id"], Rt = {
1626
1626
  function T(e) {
1627
1627
  d("select", e), l.value = "", m.value = !0, h.value = -1;
1628
1628
  }
1629
- let E = r(() => !!u.loading), D = r(() => S.value && !m.value), j = Y(() => {
1629
+ let E = r(() => !!u.loading), D = r(() => S.value && !m.value), j = X(() => {
1630
1630
  d("submit", l.value);
1631
1631
  }, 300);
1632
1632
  W(() => l.value, (e) => {
@@ -1810,7 +1810,7 @@ var ln = [
1810
1810
  },
1811
1811
  emits: ["toggle", "update:modelValue"],
1812
1812
  setup(e, { expose: t, emit: n }) {
1813
- let a = e, o = p("sidebar", void 0) ?? (fe() ? cn(a.sidebarKey, I(a, "mediaQuery")) : void 0), c = n, u = r(() => a.mode === "popover"), d = O(a.modelValue);
1813
+ let a = e, o = p("sidebar", void 0) ?? (de() ? cn(a.sidebarKey, I(a, "mediaQuery")) : void 0), c = n, u = r(() => a.mode === "popover"), d = O(a.modelValue);
1814
1814
  W(I(a, "modelValue"), (e) => {
1815
1815
  d.value = e;
1816
1816
  });
@@ -1986,7 +1986,7 @@ var ln = [
1986
1986
  //#endregion
1987
1987
  //#region src/compose/useScrollRestore.ts
1988
1988
  function Sn(e, t) {
1989
- let n = t ? ue(`${t}:scroll`, 0, { writeDefaults: !1 }) : null, r = O(!!(n?.value && n.value > 0)), i = null, a = null, o = null, s = !1;
1989
+ let n = t ? le(`${t}:scroll`, 0, { writeDefaults: !1 }) : null, r = O(!!(n?.value && n.value > 0)), i = null, a = null, o = null, s = !1;
1990
1990
  function c(e) {
1991
1991
  let t = window.getComputedStyle(e);
1992
1992
  return t.overflowY === "auto" || t.overflowY === "scroll";
@@ -2056,7 +2056,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2056
2056
  storageKey: {}
2057
2057
  },
2058
2058
  setup(e) {
2059
- let t = e, n = p("sidebar", () => void 0, !0) ?? (fe() ? cn(t.sidebarKey, I(t, "mediaQuery")) : void 0), i = r(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "url('https://gradcdn.blob.core.windows.net/public/sidebar-bg2.jpg')"), a = r(() => t.backgroundColor ? t.backgroundColor : t.theme === "light" ? "#f9f9f9" : "#030913"), s = r(() => t.topOffsetVar ? `var(${t.topOffsetVar})` : t.topOffset ? t.topOffset : "var(--g-toolbar-height)"), c = B(), { isPendingScrollRestore: l } = Sn(U("sidebar-ref"), t.storageKey);
2059
+ let t = e, n = p("sidebar", () => void 0, !0) ?? (de() ? cn(t.sidebarKey, I(t, "mediaQuery")) : void 0), i = r(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "url('https://gradcdn.blob.core.windows.net/public/sidebar-bg2.jpg')"), a = r(() => t.backgroundColor ? t.backgroundColor : t.theme === "light" ? "#f9f9f9" : "#030913"), s = r(() => t.topOffsetVar ? `var(${t.topOffsetVar})` : t.topOffset ? t.topOffset : "var(--g-toolbar-height)"), c = B(), { isPendingScrollRestore: l } = Sn(U("sidebar-ref"), t.storageKey);
2060
2060
  function u(e) {
2061
2061
  e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
2062
2062
  }
@@ -2218,7 +2218,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2218
2218
  copyLabel: {}
2219
2219
  },
2220
2220
  setup(t) {
2221
- let n = t, r = kn, { text: i, copy: l, copied: u, isSupported: d } = ae({ source: n.text }), f = O(n.copyLabel ?? "Copy to clipboard"), p = () => {
2221
+ let n = t, r = kn, { text: i, copy: l, copied: u, isSupported: d } = ie({ source: n.text }), f = O(n.copyLabel ?? "Copy to clipboard"), p = () => {
2222
2222
  d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
2223
2223
  }, m = () => {
2224
2224
  f.value = n.copyLabel ?? "Copy to clipboard";
@@ -2272,9 +2272,9 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2272
2272
  }
2273
2273
  x(() => {
2274
2274
  g(f);
2275
- }), le(i, () => {
2275
+ }), ce(i, () => {
2276
2276
  u.value && f();
2277
- }), le(c, () => {
2277
+ }), ce(c, () => {
2278
2278
  u.value && f();
2279
2279
  }), W(() => n.entries, async () => {
2280
2280
  u.value && (await g(), f());
@@ -2290,7 +2290,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2290
2290
  role: t.label ? "log" : void 0,
2291
2291
  "aria-label": t.label,
2292
2292
  onScroll: p
2293
- }, [l(Q, {
2293
+ }, [l($, {
2294
2294
  class: _(["g-scroll-to-bottom-btn", { "scroll-to-bottom-btn--hidden": u.value }]),
2295
2295
  size: "small",
2296
2296
  type: "button",
@@ -2499,27 +2499,31 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2499
2499
  ],
2500
2500
  setup(t, { emit: n }) {
2501
2501
  let l = t, u = n;
2502
- function d(e, t) {
2503
- l.bulkSelectionEnabled && e.shiftKey && !e.target.closest("a,button,[tabindex],input") && e.preventDefault();
2502
+ function d(e) {
2503
+ let t = e.currentTarget, n = e.target.closest("a,button,[tabindex],input");
2504
+ return !!n && t.contains(n);
2504
2505
  }
2505
2506
  function f(e, t) {
2506
- if (!l.rowClickable && !l.bulkSelectionEnabled || e.target.closest("a,button,[tabindex],input")) return;
2507
+ l.bulkSelectionEnabled && e.shiftKey && !d(e) && e.preventDefault();
2508
+ }
2509
+ function p(e, t) {
2510
+ if (!l.rowClickable && !l.bulkSelectionEnabled || d(e)) return;
2507
2511
  let n = e.target.closest("tr");
2508
2512
  if (n) {
2509
- if (l.bulkSelectionEnabled) n.querySelector("input[type=checkbox]") && m(t, e.shiftKey);
2513
+ if (l.bulkSelectionEnabled) n.querySelector("input[type=checkbox]") && g(t, e.shiftKey);
2510
2514
  else if (l.rowClickable) {
2511
2515
  let e = n.querySelector("a[href]")?.getAttribute("href");
2512
2516
  e && u("row-click", e);
2513
2517
  }
2514
2518
  }
2515
2519
  }
2516
- function p(e) {
2520
+ function m(e) {
2517
2521
  return l.selectedRows?.includes(e) ?? !1;
2518
2522
  }
2519
- function m(e, t = !1) {
2523
+ function g(e, t = !1) {
2520
2524
  u("toggle-row", e, t);
2521
2525
  }
2522
- function g(e, t, n) {
2526
+ function v(e, t, n) {
2523
2527
  let r = e.target.value;
2524
2528
  u("cell-change", {
2525
2529
  row: t,
@@ -2527,30 +2531,30 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2527
2531
  value: r
2528
2532
  });
2529
2533
  }
2530
- function v(e, t) {
2534
+ function y(e, t) {
2531
2535
  let n = `${l.tableId}-th-${String(t.key)}`;
2532
2536
  return t.editable?.labelKey ? `${`${l.tableId}-td-${e.key}-${t.editable.labelKey}`} ${n} ` : n;
2533
2537
  }
2534
- let y = r(() => {
2538
+ let b = r(() => {
2535
2539
  for (let e of l.columns) if (e.editable?.labelKey) return e.editable.labelKey;
2536
- }), b = r(() => Math.max(l.columns.length, 1));
2537
- function x(e) {
2538
- return e.key === y.value;
2540
+ }), x = r(() => Math.max(l.columns.length, 1));
2541
+ function S(e) {
2542
+ return e.key === b.value;
2539
2543
  }
2540
- function S(e, t) {
2544
+ function C(e, t) {
2541
2545
  return l.changeTracker ? l.changeTracker.hasChange(e.key, t.key) : !1;
2542
2546
  }
2543
- function C(e, t) {
2547
+ function T(e, t) {
2544
2548
  return l.changeTracker ? l.changeTracker.hasError(e.key, t.key) : !1;
2545
2549
  }
2546
- function T(e, t) {
2550
+ function E(e, t) {
2547
2551
  if (l.changeTracker) return l.changeTracker.getError(e.key, t.key);
2548
2552
  }
2549
2553
  return (n, r) => (w(), o("tbody", Qn, [(w(!0), o(e, null, k(t.data, (n, l) => (w(), o(e, { key: n.key }, [t.groupBy && (l === 0 || n[t.groupBy] !== t.data[l - 1][t.groupBy]) ? (w(), o("tr", {
2550
2554
  key: 0,
2551
2555
  "aria-rowindex": t.startIndex + l + 2
2552
2556
  }, [t.bulkSelectionEnabled ? (w(), o("td", er)) : a("", !0), s("td", {
2553
- colspan: b.value,
2557
+ colspan: x.value,
2554
2558
  class: "table-group-row"
2555
2559
  }, [t.groupRender ? (w(), i(j(t.groupRender(n[t.groupBy], n)), { key: 0 })) : (w(), o(e, { key: 1 }, [c(P(n[t.groupBy]), 1)], 64))], 8, tr)], 8, $n)) : a("", !0), s("tr", {
2556
2560
  class: _([
@@ -2562,26 +2566,26 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2562
2566
  t.rowClass ? t.rowClass(n) : void 0
2563
2567
  ]),
2564
2568
  "aria-rowindex": t.startIndex + l + 2,
2565
- onMousedown: (e) => d(e, n.key),
2566
- onClick: (e) => f(e, n.key)
2569
+ onMousedown: (e) => f(e, n.key),
2570
+ onClick: (e) => p(e, n.key)
2567
2571
  }, [t.bulkSelectionEnabled ? (w(), o("td", {
2568
2572
  key: 0,
2569
2573
  class: "td-checkbox",
2570
2574
  onClick: r[0] ||= q(() => {}, ["stop"])
2571
2575
  }, [s("input", {
2572
2576
  type: "checkbox",
2573
- checked: p(n.key),
2574
- onClick: (e) => m(n.key, e.shiftKey),
2577
+ checked: m(n.key),
2578
+ onClick: (e) => g(n.key, e.shiftKey),
2575
2579
  "aria-label": `Select row ${n.key}`,
2576
2580
  name: `row-${n.key}-checkbox`,
2577
2581
  class: "g-bulk-select-checkbox"
2578
2582
  }, null, 8, rr)])) : a("", !0), (w(!0), o(e, null, k(t.columns, (r) => (w(), o("td", {
2579
2583
  key: r.key,
2580
- id: x(r) ? `${t.tableId}-td-${n.key}-${String(r.key)}` : void 0,
2584
+ id: S(r) ? `${t.tableId}-td-${n.key}-${String(r.key)}` : void 0,
2581
2585
  class: _([
2582
2586
  r.editable ? "editable-td" : "",
2583
- S(n, r) ? "g-cell-changed" : "",
2584
- C(n, r) ? "g-cell-error" : "",
2587
+ C(n, r) ? "g-cell-changed" : "",
2588
+ T(n, r) ? "g-cell-error" : "",
2585
2589
  typeof r.tdClass == "function" ? r.tdClass(n) : r.tdClass
2586
2590
  ])
2587
2591
  }, [r.editable ? (w(), o("div", ar, [
@@ -2589,10 +2593,10 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2589
2593
  r.editable.type === "select" ? (w(), o("select", {
2590
2594
  key: 1,
2591
2595
  value: n[r.key],
2592
- onChange: (e) => g(e, n, r),
2593
- "aria-labelledby": v(n, r),
2594
- "aria-invalid": C(n, r),
2595
- "aria-errormessage": C(n, r) ? `${t.tableId}-error-${n.key}-${String(r.key)}` : void 0,
2596
+ onChange: (e) => v(e, n, r),
2597
+ "aria-labelledby": y(n, r),
2598
+ "aria-invalid": T(n, r),
2599
+ "aria-errormessage": T(n, r) ? `${t.tableId}-error-${n.key}-${String(r.key)}` : void 0,
2596
2600
  name: `row-${n.key}-${String(r.key)}-select`,
2597
2601
  class: "editable-input editable-select"
2598
2602
  }, [(w(!0), o(e, null, k(r.editable.options, (e) => (w(), o("option", {
@@ -2602,10 +2606,10 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2602
2606
  key: 2,
2603
2607
  value: n[r.key]
2604
2608
  }, { ref_for: !0 }, r.editable.inputAttributes, {
2605
- onInput: (e) => g(e, n, r),
2606
- "aria-labelledby": v(n, r),
2607
- "aria-invalid": C(n, r),
2608
- "aria-errormessage": C(n, r) ? `${t.tableId}-error-${n.key}-${String(r.key)}` : void 0,
2609
+ onInput: (e) => v(e, n, r),
2610
+ "aria-labelledby": y(n, r),
2611
+ "aria-invalid": T(n, r),
2612
+ "aria-errormessage": T(n, r) ? `${t.tableId}-error-${n.key}-${String(r.key)}` : void 0,
2609
2613
  name: `row-${n.key}-${String(r.key)}-input`,
2610
2614
  class: "editable-input",
2611
2615
  style: {
@@ -2614,12 +2618,12 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2614
2618
  }
2615
2619
  }), null, 16, lr)),
2616
2620
  r.editable.suffix ? (w(), o("span", ur, P(r.editable.suffix), 1)) : a("", !0)
2617
- ])) : r.display ? (w(), i(j(r.display(n)), { key: 1 })) : (w(), o(e, { key: 2 }, [c(P(n[r.key]), 1)], 64)), C(n, r) ? (w(), o("div", {
2621
+ ])) : r.display ? (w(), i(j(r.display(n)), { key: 1 })) : (w(), o(e, { key: 2 }, [c(P(n[r.key]), 1)], 64)), T(n, r) ? (w(), o("div", {
2618
2622
  key: 3,
2619
2623
  role: "alert",
2620
2624
  class: "g-cell-error-message",
2621
2625
  id: `${t.tableId}-error-${n.key}-${String(r.key)}`
2622
- }, P(T(n, r)), 9, dr)) : a("", !0)], 10, ir))), 128))], 42, nr)], 64))), 128))], 512));
2626
+ }, P(E(n, r)), 9, dr)) : a("", !0)], 10, ir))), 128))], 42, nr)], 64))), 128))], 512));
2623
2627
  }
2624
2628
  });
2625
2629
  //#endregion
@@ -2762,7 +2766,7 @@ var Cr = ["id", "for"], wr = {
2762
2766
  }),
2763
2767
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
2764
2768
  setup(t, { emit: n }) {
2765
- let i = t, u = n, d = V(t, "modelValue"), f = B(), p = O(null), m = O(null), v = O(null), y = O(!1), b = O(0), x = O(""), S = O(!1), { displayErrors: C, hasErrors: T } = $({
2769
+ let i = t, u = n, d = V(t, "modelValue"), f = B(), p = O(null), m = O(null), v = O(null), y = O(!1), b = O(0), x = O(""), S = O(!1), { displayErrors: C, hasErrors: T } = Ae({
2766
2770
  name: i.name,
2767
2771
  value: d,
2768
2772
  errors: I(i, "errors"),
@@ -2811,7 +2815,7 @@ var Cr = ["id", "for"], wr = {
2811
2815
  function ne() {
2812
2816
  i.disabled || y.value || z();
2813
2817
  }
2814
- function re(e) {
2818
+ function J(e) {
2815
2819
  if (S.value) {
2816
2820
  S.value = !1;
2817
2821
  return;
@@ -2819,13 +2823,13 @@ var Cr = ["id", "for"], wr = {
2819
2823
  let t = e.relatedTarget;
2820
2824
  t && v.value?.contains(t) || t && m.value?.contains(t) || H();
2821
2825
  }
2822
- function ie(e) {
2826
+ function re(e) {
2823
2827
  e.preventDefault();
2824
2828
  }
2825
- function J() {
2829
+ function Y() {
2826
2830
  S.value = !0;
2827
2831
  }
2828
- function ae(e) {
2832
+ function ie(e) {
2829
2833
  if (i.disabled) return;
2830
2834
  let t = N.value.length - 1;
2831
2835
  switch (e.key) {
@@ -2853,9 +2857,9 @@ var Cr = ["id", "for"], wr = {
2853
2857
  case "Backspace": !x.value && d.value.length > 0 && W(d.value[d.value.length - 1]);
2854
2858
  }
2855
2859
  }
2856
- let Y = r(() => `${f}-input`), X = r(() => `${f}-label`), Z = r(() => `${f}-instructions`), oe = r(() => `error-message-${f}`), se = r(() => {
2860
+ let X = r(() => `${f}-input`), Z = r(() => `${f}-label`), ae = r(() => `${f}-instructions`), oe = r(() => `error-message-${f}`), se = r(() => {
2857
2861
  let e = [];
2858
- return i.instructions && e.push(Z.value), T.value && e.push(oe.value), e.length > 0 ? e.join(" ") : void 0;
2862
+ return i.instructions && e.push(ae.value), T.value && e.push(oe.value), e.length > 0 ? e.join(" ") : void 0;
2859
2863
  });
2860
2864
  return (n, r) => (w(), o("div", { class: _(["g-multiselect-root", {
2861
2865
  "g-multiselect-open": y.value,
@@ -2863,13 +2867,13 @@ var Cr = ["id", "for"], wr = {
2863
2867
  }]) }, [
2864
2868
  t.hiddenLabel ? a("", !0) : (w(), o("label", {
2865
2869
  key: 0,
2866
- id: X.value,
2867
- for: Y.value,
2870
+ id: Z.value,
2871
+ for: X.value,
2868
2872
  class: "g-multiselect-label"
2869
2873
  }, [c(P(t.label), 1), t.required ? (w(), o("span", wr, " *")) : a("", !0)], 8, Cr)),
2870
2874
  t.instructions ? (w(), o("div", {
2871
2875
  key: 1,
2872
- id: Z.value,
2876
+ id: ae.value,
2873
2877
  class: "g-multiselect-instructions"
2874
2878
  }, P(t.instructions), 9, Tr)) : a("", !0),
2875
2879
  s("div", {
@@ -2881,7 +2885,7 @@ var Cr = ["id", "for"], wr = {
2881
2885
  d.value.length ? (w(), o("ul", {
2882
2886
  key: 0,
2883
2887
  class: "g-multiselect-chips",
2884
- "aria-labelledby": X.value
2888
+ "aria-labelledby": Z.value
2885
2889
  }, [(w(!0), o(e, null, k(d.value, (e) => (w(), o("li", {
2886
2890
  key: e,
2887
2891
  class: "g-multiselect-chip"
@@ -2890,7 +2894,7 @@ var Cr = ["id", "for"], wr = {
2890
2894
  class: "g-multiselect-chip-remove",
2891
2895
  "aria-label": `Remove ${L(e)}`,
2892
2896
  disabled: t.disabled,
2893
- onMousedown: J,
2897
+ onMousedown: Y,
2894
2898
  onClick: q((t) => W(e), ["stop"])
2895
2899
  }, [...r[0] ||= [s("svg", {
2896
2900
  xmlns: "http://www.w3.org/2000/svg",
@@ -2907,7 +2911,7 @@ var Cr = ["id", "for"], wr = {
2907
2911
  type: "text",
2908
2912
  role: "combobox",
2909
2913
  class: "g-multiselect-input",
2910
- id: Y.value,
2914
+ id: X.value,
2911
2915
  value: x.value,
2912
2916
  placeholder: d.value.length === 0 ? t.placeholder : void 0,
2913
2917
  disabled: t.disabled,
@@ -2921,9 +2925,9 @@ var Cr = ["id", "for"], wr = {
2921
2925
  "aria-describedby": se.value,
2922
2926
  "aria-required": t.required ? "true" : void 0,
2923
2927
  onInput: K,
2924
- onKeydown: ae,
2928
+ onKeydown: ie,
2925
2929
  onFocus: ne,
2926
- onBlur: re
2930
+ onBlur: J
2927
2931
  }), null, 16, kr),
2928
2932
  r[2] ||= s("svg", {
2929
2933
  class: "g-multiselect-caret",
@@ -2941,7 +2945,7 @@ var Cr = ["id", "for"], wr = {
2941
2945
  id: R(f) + "-listbox",
2942
2946
  role: "listbox",
2943
2947
  "aria-multiselectable": "true"
2944
- }, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": X.value }, {
2948
+ }, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": Z.value }, {
2945
2949
  class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": R(E) === "above" }],
2946
2950
  style: R(D),
2947
2951
  tabindex: "-1"
@@ -2954,7 +2958,7 @@ var Cr = ["id", "for"], wr = {
2954
2958
  "g-multiselect-option--selected": F(e.value)
2955
2959
  }]),
2956
2960
  "aria-selected": F(e.value) ? "true" : "false",
2957
- onMousedown: ie,
2961
+ onMousedown: re,
2958
2962
  onClick: (e) => U(t)
2959
2963
  }, [s("span", Mr, [F(e.value) ? (w(), o("svg", Nr, [...r[1] ||= [s("path", { d: "M530.8 134.1C545.1 144.5 548.3 164.5 537.9 178.8L281.9 530.8C276.4 538.4 267.9 543.1 258.5 543.9C249.1 544.7 240 541.2 233.4 534.6L105.4 406.6C92.9 394.1 92.9 373.8 105.4 361.3C117.9 348.8 138.2 348.8 150.7 361.3L252.2 462.8L486.2 141.1C496.6 126.8 516.6 123.6 530.9 134z" }, null, -1)]])) : a("", !0)]), s("span", Pr, [s("span", Fr, P(e.label), 1), e.description ? (w(), o("span", Ir, P(e.description), 1)) : a("", !0)])], 42, jr))), 128)) : (w(), o("div", Lr, " No results found. "))], 16, Ar), [[ee, y.value]])
2960
2964
  ], 2),
@@ -3010,7 +3014,7 @@ var Cr = ["id", "for"], wr = {
3010
3014
  }),
3011
3015
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
3012
3016
  setup(t, { emit: n }) {
3013
- let u = t, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } = $({
3017
+ let u = t, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } = Ae({
3014
3018
  name: u.name,
3015
3019
  value: d,
3016
3020
  errors: I(u, "errors"),
@@ -3489,89 +3493,86 @@ function Ri(e, t = {}) {
3489
3493
  }
3490
3494
  //#endregion
3491
3495
  //#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
3492
- var zi = { class: "g-table-outer-wrap" }, Bi = {
3493
- key: 0,
3494
- class: "g-table-controls"
3495
- }, Vi = { class: "g-table-control-actions" }, Hi = {
3496
+ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions" }, Vi = {
3496
3497
  key: 0,
3497
3498
  class: "g-sort-builder-wrap"
3498
- }, Ui = {
3499
+ }, Hi = {
3499
3500
  key: 0,
3500
3501
  class: "g-sort-builder-count"
3501
- }, Wi = {
3502
+ }, Ui = {
3502
3503
  key: 0,
3503
3504
  class: "g-sort-builder-list"
3504
- }, Gi = ["data-sort-row-key", "aria-label"], Ki = {
3505
+ }, Wi = ["data-sort-row-key", "aria-label"], Gi = {
3505
3506
  class: "g-sort-builder-rule-priority",
3506
3507
  "aria-hidden": "true"
3507
- }, qi = { class: "g-sort-builder-rule-label" }, Ji = ["aria-label", "onClick"], Yi = { class: "g-visually-hidden" }, Xi = {
3508
+ }, Ki = { class: "g-sort-builder-rule-label" }, qi = ["aria-label", "onClick"], Ji = { class: "g-visually-hidden" }, Yi = {
3508
3509
  class: "sort-indicator",
3509
3510
  "aria-hidden": "true"
3510
- }, Zi = ["aria-label", "onClick"], Qi = {
3511
+ }, Xi = ["aria-label", "onClick"], Zi = {
3511
3512
  key: 1,
3512
3513
  class: "g-sort-builder-empty"
3513
- }, $i = {
3514
+ }, Qi = {
3514
3515
  key: 2,
3515
3516
  class: "g-sort-builder-add"
3516
- }, ea = { class: "g-sort-builder-add-list" }, ta = { class: "g-sort-builder-add-name" }, na = { class: "g-sort-builder-add-actions" }, ra = ["aria-label", "onClick"], ia = ["aria-label", "onClick"], aa = {
3517
+ }, $i = { class: "g-sort-builder-add-list" }, ea = { class: "g-sort-builder-add-name" }, ta = { class: "g-sort-builder-add-actions" }, na = ["aria-label", "onClick"], ra = ["aria-label", "onClick"], ia = {
3517
3518
  class: "sort-indicator",
3518
3519
  "aria-hidden": "true"
3519
- }, oa = {
3520
+ }, aa = {
3520
3521
  xmlns: "http://www.w3.org/2000/svg",
3521
3522
  viewBox: "0 0 640 640",
3522
3523
  height: "1.25em",
3523
3524
  style: { transform: "rotate(180deg)" }
3524
- }, sa = {
3525
+ }, oa = {
3525
3526
  key: 1,
3526
3527
  class: "g-column-visibility-wrap"
3527
- }, ca = {
3528
+ }, sa = {
3528
3529
  xmlns: "http://www.w3.org/2000/svg",
3529
3530
  viewBox: "0 0 640 640",
3530
3531
  height: "1.5em",
3531
3532
  style: { transform: "rotate(90deg)" },
3532
3533
  "aria-hidden": "true"
3533
- }, la = ["aria-labelledby"], ua = { class: "g-column-visibility-header" }, da = ["id"], fa = { class: "g-column-visibility-legend-action" }, pa = { class: "g-column-visibility-list" }, ma = ["checked", "onChange"], ha = {
3534
+ }, ca = ["aria-labelledby"], la = { class: "g-column-visibility-header" }, ua = ["id"], da = { class: "g-column-visibility-legend-action" }, fa = { class: "g-column-visibility-list" }, pa = ["checked", "onChange"], ma = {
3534
3535
  key: 2,
3535
3536
  class: "g-table-custom-controls"
3536
- }, ga = { class: "g-clear-filters-wrap" }, _a = {
3537
+ }, ha = { class: "g-clear-filters-wrap" }, ga = {
3537
3538
  key: 0,
3538
3539
  class: "pagination"
3539
- }, va = { class: "g-table-controls-right" }, ya = { class: "g-result-count" }, ba = ["aria-label", "aria-rowcount"], xa = { key: 0 }, Sa = ["data-column-key"], Ca = { class: "g-table-head" }, wa = { "aria-rowindex": "1" }, Ta = {
3540
+ }, _a = { class: "g-table-controls-right" }, va = { class: "g-result-count" }, ya = ["aria-label", "aria-rowcount"], ba = { key: 0 }, xa = ["data-column-key"], Sa = { class: "g-table-head" }, Ca = { "aria-rowindex": "1" }, wa = {
3540
3541
  key: 0,
3541
3542
  scope: "col",
3542
3543
  class: "g-th g-th-checkbox"
3543
- }, Ea = [
3544
+ }, Ta = [
3544
3545
  "checked",
3545
3546
  "indeterminate",
3546
3547
  "aria-label"
3547
- ], Da = ["id", "aria-sort"], Oa = { class: "th-inner" }, ka = ["onClick"], Aa = {
3548
+ ], Ea = ["id", "aria-sort"], Da = { class: "th-inner" }, Oa = ["onClick"], ka = {
3548
3549
  key: 0,
3549
3550
  class: "sort-indicator",
3550
3551
  "aria-hidden": "true"
3551
- }, ja = {
3552
+ }, Aa = {
3552
3553
  key: 1,
3553
3554
  class: "g-visually-hidden"
3554
- }, Ma = {
3555
+ }, ja = {
3555
3556
  key: 1,
3556
3557
  class: "g-column-head"
3557
- }, Na = ["onClick", "aria-label"], Pa = {
3558
+ }, Ma = ["onClick", "aria-label"], Na = {
3558
3559
  key: 1,
3559
3560
  class: "g-filter-search",
3560
3561
  role: "search"
3561
- }, Fa = [
3562
+ }, Pa = [
3562
3563
  "value",
3563
3564
  "onInput",
3564
3565
  "placeholder",
3565
3566
  "aria-label"
3566
- ], Ia = { key: 2 }, La = { class: "g-filter-toggle" }, Ra = [
3567
+ ], Fa = { key: 2 }, Ia = { class: "g-filter-toggle" }, La = [
3567
3568
  "checked",
3568
3569
  "onChange",
3569
3570
  "id",
3570
3571
  "aria-describedby"
3571
- ], za = ["for"], Ba = ["id"], Va = {
3572
+ ], Ra = ["for"], za = ["id"], Ba = {
3572
3573
  key: 4,
3573
3574
  class: "g-multi-select"
3574
- }, Ha = [
3575
+ }, Va = [
3575
3576
  "data-column-key",
3576
3577
  "aria-label",
3577
3578
  "aria-valuemax",
@@ -3579,10 +3580,10 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
3579
3580
  "aria-valuetext",
3580
3581
  "onKeydown",
3581
3582
  "onPointerdown"
3582
- ], Ua = { key: 0 }, Wa = { "aria-rowindex": "2" }, Ga = ["colspan"], Ka = {
3583
+ ], Ha = { key: 0 }, Ua = { "aria-rowindex": "2" }, Wa = ["colspan"], Ga = {
3583
3584
  key: 1,
3584
3585
  class: "g-bulk-actions-toolbar"
3585
- }, qa = { class: "g-selected-count" }, Ja = { class: "g-bulk-actions" }, Ya = /* @__PURE__ */ u({
3586
+ }, Ka = { class: "g-selected-count" }, qa = { class: "g-bulk-actions" }, Ja = /* @__PURE__ */ u({
3586
3587
  __name: "GTable",
3587
3588
  props: /*@__PURE__*/ m({
3588
3589
  label: {},
@@ -3680,247 +3681,262 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
3680
3681
  function W(e) {
3681
3682
  e !== void 0 && y("update:pageSize", e);
3682
3683
  }
3683
- let G = B(), te = d(), ne = O(null), re = O(null), ie = O(null), J = O(null), ae = `${G}-table`;
3684
- function Y(e) {
3684
+ let G = B(), te = d(), ne = O(null), J = O(null), re = O(null), Y = O(null), ie = O(null), X = O(0);
3685
+ ce(ie, (e) => {
3686
+ let t = e[0];
3687
+ X.value = t?.borderBoxSize?.[0]?.blockSize ?? t?.target.getBoundingClientRect().height ?? 0;
3688
+ });
3689
+ let Z = O(null), ae = `${G}-table`;
3690
+ function oe(e) {
3685
3691
  let t = /* @__PURE__ */ new Set();
3686
3692
  return e.filter((e) => !e?.key || t.has(String(e.key)) ? !1 : (t.add(String(e.key)), e.order === 1 || e.order === -1));
3687
3693
  }
3688
- function X(e, t) {
3694
+ function se(e, t) {
3689
3695
  return {
3690
3696
  key: e,
3691
3697
  order: t
3692
3698
  };
3693
3699
  }
3694
- let Z = r(() => Y(u.value));
3695
- function oe(e) {
3696
- u.value = Y(e);
3700
+ let Q = r(() => oe(u.value));
3701
+ function le(e) {
3702
+ u.value = oe(e);
3697
3703
  }
3698
- let se = r(() => h.columns.filter((e) => e.sortable)), ce = r(() => se.value.length > 1), le = r(() => {
3699
- let e = new Set(Z.value.map((e) => String(e.key)));
3700
- return se.value.filter((t) => !e.has(String(t.key)));
3704
+ let ue = r(() => h.columns.filter((e) => e.sortable)), de = r(() => ue.value.length > 1), fe = r(() => {
3705
+ let e = new Set(Q.value.map((e) => String(e.key)));
3706
+ return ue.value.filter((t) => !e.has(String(t.key)));
3701
3707
  });
3702
- function ue(e) {
3703
- return Z.value.findIndex((t) => t.key === e);
3708
+ function pe(e) {
3709
+ return Q.value.findIndex((t) => t.key === e);
3704
3710
  }
3705
- function de(e) {
3706
- return Z.value.find((t) => t.key === e);
3711
+ function me(e) {
3712
+ return Q.value.find((t) => t.key === e);
3707
3713
  }
3708
- function fe(e) {
3714
+ function he(e) {
3709
3715
  return h.columns.find((t) => t.key === e)?.label || String(e);
3710
3716
  }
3711
- function pe(e) {
3712
- let t = ue(e);
3713
- return t === -1 ? "none" : t > 0 ? "other" : Z.value[0]?.order === 1 ? "ascending" : "descending";
3717
+ function ge(e) {
3718
+ let t = pe(e);
3719
+ return t === -1 ? "none" : t > 0 ? "other" : Q.value[0]?.order === 1 ? "ascending" : "descending";
3714
3720
  }
3715
- function me(e) {
3716
- let t = ue(e);
3721
+ function _e(e) {
3722
+ let t = pe(e);
3717
3723
  if (t === -1) return "";
3718
- let n = Z.value[t].order === 1 ? "ascending" : "descending";
3719
- return Z.value.length > 1 ? `Sorted ${n}, priority ${t + 1}` : `Sorted ${n}`;
3724
+ let n = Q.value[t].order === 1 ? "ascending" : "descending";
3725
+ return Q.value.length > 1 ? `Sorted ${n}, priority ${t + 1}` : `Sorted ${n}`;
3720
3726
  }
3721
- function he(e) {
3727
+ function ve(e) {
3722
3728
  return e === 1 ? "Ascending" : "Descending";
3723
3729
  }
3724
- function ge(e) {
3725
- let t = Z.value[0]?.key === e ? Z.value[0] : void 0;
3726
- return t ? t.order === 1 ? [X(e, -1)] : [] : [X(e, 1)];
3730
+ function ye(e) {
3731
+ let t = Q.value[0]?.key === e ? Q.value[0] : void 0;
3732
+ return t ? t.order === 1 ? [se(e, -1)] : [] : [se(e, 1)];
3727
3733
  }
3728
- function _e(e) {
3729
- let t = [...Z.value], n = t.findIndex((t) => t.key === e);
3730
- return n === -1 ? (t.push(X(e, 1)), t) : t[n].order === 1 ? (t[n] = X(e, -1), t) : (t.splice(n, 1), t);
3734
+ function be(e) {
3735
+ let t = [...Q.value], n = t.findIndex((t) => t.key === e);
3736
+ return n === -1 ? (t.push(se(e, 1)), t) : t[n].order === 1 ? (t[n] = se(e, -1), t) : (t.splice(n, 1), t);
3731
3737
  }
3732
- function ve(e, t = !1) {
3738
+ function xe(e, t = !1) {
3733
3739
  if (!e.sortable) return;
3734
3740
  let n = e.key;
3735
- oe(t ? _e(n) : ge(n));
3741
+ le(t ? be(n) : ye(n));
3736
3742
  }
3737
- function ye(e, t) {
3738
- oe([...Z.value, X(e, t)]), g(() => {
3743
+ function Se(e, t) {
3744
+ le([...Q.value, se(e, t)]), g(() => {
3739
3745
  let t = ne.value;
3740
3746
  t && (t.querySelector(`[data-sort-row-key="${String(e)}"]`) ?? t)?.focus();
3741
3747
  }).catch((e) => {
3742
3748
  console.error(e);
3743
3749
  });
3744
3750
  }
3745
- function be(e) {
3746
- oe(Z.value.map((t) => t.key === e ? X(t.key, t.order === 1 ? -1 : 1) : t));
3751
+ function Ce(e) {
3752
+ le(Q.value.map((t) => t.key === e ? se(t.key, t.order === 1 ? -1 : 1) : t));
3747
3753
  }
3748
- function xe(e) {
3749
- oe(Z.value.filter((t) => t.key !== e));
3754
+ function we(e) {
3755
+ le(Q.value.filter((t) => t.key !== e));
3750
3756
  }
3751
- function Se() {
3752
- oe([]);
3757
+ function Te() {
3758
+ le([]);
3753
3759
  }
3754
- function Ce(e) {
3760
+ function Ee(e) {
3755
3761
  return p.value[e] ?? {};
3756
3762
  }
3757
- function we(e, t) {
3763
+ function De(e, t) {
3758
3764
  p.value = {
3759
3765
  ...p.value,
3760
3766
  [e]: {
3761
- ...Ce(e),
3767
+ ...Ee(e),
3762
3768
  ...t
3763
3769
  }
3764
3770
  };
3765
3771
  }
3766
- function Te(e) {
3772
+ function Oe(e) {
3767
3773
  return Math.max(50, Math.round(e));
3768
3774
  }
3769
- function Ee(e) {
3770
- let t = Ce(e).width;
3771
- if (typeof t == "number" && Number.isFinite(t)) return Te(t);
3775
+ function ke(e) {
3776
+ let t = Ee(e).width;
3777
+ if (typeof t == "number" && Number.isFinite(t)) return Oe(t);
3772
3778
  }
3773
- function De(e) {
3779
+ function Ae(e) {
3774
3780
  return document.getElementById(`${G}-th-${String(e)}`);
3775
3781
  }
3776
- function Oe(e) {
3777
- let t = De(e)?.getBoundingClientRect().width;
3778
- return Te(t ?? 50);
3782
+ function je(e) {
3783
+ let t = Ae(e)?.getBoundingClientRect().width;
3784
+ return Oe(t ?? 50);
3779
3785
  }
3780
- function ke(e) {
3781
- return Ee(e) ?? Oe(e);
3786
+ function Me(e) {
3787
+ return ke(e) ?? je(e);
3782
3788
  }
3783
- function Ae(e) {
3784
- let t = ke(e), n = ie.value?.getBoundingClientRect().width ?? re.value?.getBoundingClientRect().width ?? t;
3785
- return Te(Math.max(t, n));
3789
+ function Ne(e) {
3790
+ let t = Me(e), n = re.value?.getBoundingClientRect().width ?? J.value?.getBoundingClientRect().width ?? t;
3791
+ return Oe(Math.max(t, n));
3786
3792
  }
3787
- function $(e, t) {
3788
- we(e, { width: Te(t) });
3793
+ function Pe(e, t) {
3794
+ De(e, { width: Oe(t) });
3789
3795
  }
3790
- function je(e, t) {
3791
- $(e, ke(e) + t);
3796
+ function Fe(e, t) {
3797
+ Pe(e, Me(e) + t);
3792
3798
  }
3793
- function Me() {
3794
- J.value = null, window.removeEventListener("pointermove", Ne), window.removeEventListener("pointerup", Me), window.removeEventListener("pointercancel", Me);
3799
+ function Ie() {
3800
+ Z.value = null, window.removeEventListener("pointermove", Le), window.removeEventListener("pointerup", Ie), window.removeEventListener("pointercancel", Ie);
3795
3801
  }
3796
- function Ne(e) {
3797
- if (!J.value) return;
3798
- let t = J.value.startWidth + (e.clientX - J.value.startX);
3799
- $(J.value.key, t);
3802
+ function Le(e) {
3803
+ if (!Z.value) return;
3804
+ let t = Z.value.startWidth + (e.clientX - Z.value.startX);
3805
+ Pe(Z.value.key, t);
3800
3806
  }
3801
- function Pe(e, t) {
3807
+ function Re(e, t) {
3802
3808
  if (!h.resizableColumns) return;
3803
3809
  e.preventDefault(), e.stopPropagation();
3804
- let n = ke(t);
3805
- $(t, n), J.value = {
3810
+ let n = Me(t);
3811
+ Pe(t, n), Z.value = {
3806
3812
  key: t,
3807
3813
  startX: e.clientX,
3808
3814
  startWidth: n
3809
- }, e.currentTarget?.focus(), window.addEventListener("pointermove", Ne), window.addEventListener("pointerup", Me), window.addEventListener("pointercancel", Me);
3815
+ }, e.currentTarget?.focus(), window.addEventListener("pointermove", Le), window.addEventListener("pointerup", Ie), window.addEventListener("pointercancel", Ie);
3810
3816
  }
3811
- function Fe(e, t) {
3817
+ function ze(e, t) {
3812
3818
  let n = e.shiftKey ? 48 : 16;
3813
3819
  switch (e.key) {
3814
3820
  case "ArrowLeft":
3815
- e.preventDefault(), je(t, -n);
3821
+ e.preventDefault(), Fe(t, -n);
3816
3822
  return;
3817
3823
  case "ArrowRight":
3818
- e.preventDefault(), je(t, n);
3824
+ e.preventDefault(), Fe(t, n);
3819
3825
  return;
3820
3826
  case "Home":
3821
- e.preventDefault(), $(t, 50);
3827
+ e.preventDefault(), Pe(t, 50);
3822
3828
  return;
3823
3829
  case "End":
3824
- e.preventDefault(), $(t, Ae(t));
3830
+ e.preventDefault(), Pe(t, Ne(t));
3825
3831
  return;
3826
3832
  default: return;
3827
3833
  }
3828
3834
  }
3829
- function Ie(e) {
3835
+ function Be(e) {
3830
3836
  if (!h.resizableColumns) return;
3831
- let t = Ee(e.key);
3837
+ let t = ke(e.key);
3832
3838
  if (t !== void 0) return {
3833
3839
  width: `${t}px`,
3834
3840
  minWidth: `${t}px`
3835
3841
  };
3836
3842
  }
3837
- function Le(e) {
3838
- return ke(e);
3843
+ function Ve(e) {
3844
+ return Me(e);
3839
3845
  }
3840
- function Re(e) {
3841
- return `${Le(e)} pixels`;
3846
+ function He(e) {
3847
+ return `${Ve(e)} pixels`;
3842
3848
  }
3843
- let ze = r(() => {
3849
+ let Ue = r(() => {
3844
3850
  let e = te?.vnode.props ?? {};
3845
3851
  return "columnState" in e || "column-state" in e || "onUpdate:columnState" in e;
3846
- }), Be = r(() => h.columns.filter((e) => Ce(e.key).visible !== !1)), Ve = H(), He = r(() => Be.value.length !== h.columns.length), Ue = r(() => ze.value && h.columns.length > 0), We = r(() => !!Ve.controls || !!Ve["right-controls"]), Ge = r(() => h.resultCount ?? h.data.length);
3847
- function Ke(e) {
3848
- return Ce(e.key).visible !== !1;
3852
+ }), We = r(() => h.columns.filter((e) => Ee(e.key).visible !== !1)), Ge = H(), Ke = r(() => We.value.length !== h.columns.length), qe = r(() => Ue.value && h.columns.length > 0), Je = r(() => !!Ge.controls || !!Ge["right-controls"]), Ye = r(() => h.resultCount ?? h.data.length);
3853
+ function Xe(e) {
3854
+ return Ee(e.key).visible !== !1;
3849
3855
  }
3850
- function qe(e, t) {
3851
- we(e.key, { visible: t });
3856
+ function Ze(e, t) {
3857
+ De(e.key, { visible: t });
3852
3858
  }
3853
- function Je() {
3859
+ function Qe() {
3854
3860
  p.value = h.columns.reduce((e, t) => ({
3855
3861
  ...e,
3856
3862
  [t.key]: {
3857
- ...Ce(t.key),
3863
+ ...Ee(t.key),
3858
3864
  visible: !0
3859
3865
  }
3860
3866
  }), { ...p.value });
3861
3867
  }
3862
- let Ye = r(() => h.pagination && typeof h.pageSize == "number"), Xe = r(() => !!(ce.value || S.value || Ye.value || Ue.value || We.value));
3863
- function Ze() {
3868
+ let $e = r(() => h.pagination && typeof h.pageSize == "number"), et = r(() => !!(de.value || S.value || $e.value || qe.value || Je.value));
3869
+ function tt() {
3864
3870
  return f.value;
3865
3871
  }
3866
- function Qe(e) {
3867
- if (e.filter) return yr(e.filter, Ze()[pr(e)]);
3872
+ function nt(e) {
3873
+ if (e.filter) return yr(e.filter, tt()[pr(e)]);
3868
3874
  }
3869
- function $e(e, t) {
3870
- e.filter && (Ze()[pr(e)] = br(e.filter, t));
3875
+ function rt(e, t) {
3876
+ e.filter && (tt()[pr(e)] = br(e.filter, t));
3871
3877
  }
3872
- function et(e) {
3873
- return e.filter ? xr(e.filter, Ze()[pr(e)]) : !1;
3878
+ function it(e) {
3879
+ return e.filter ? xr(e.filter, tt()[pr(e)]) : !1;
3874
3880
  }
3875
- function tt(e) {
3881
+ function at(e) {
3876
3882
  return e.filter?.type !== "select" && e.filter?.type !== "multi-select" ? [] : e.filter.options;
3877
3883
  }
3878
- function nt(e, t) {
3879
- let n = tt(e).findIndex((e) => e.value === t);
3884
+ function ot(e, t) {
3885
+ let n = at(e).findIndex((e) => e.value === t);
3880
3886
  return n === -1 ? void 0 : String(n);
3881
3887
  }
3882
- function rt(e, t) {
3883
- return tt(e)[Number(t)]?.value;
3888
+ function st(e, t) {
3889
+ return at(e)[Number(t)]?.value;
3884
3890
  }
3885
- function it(e) {
3886
- return tt(e).map((e, t) => ({
3891
+ function lt(e) {
3892
+ return at(e).map((e, t) => ({
3887
3893
  label: e.label,
3888
3894
  value: String(t),
3889
3895
  description: e.description
3890
3896
  }));
3891
3897
  }
3892
- function at(e) {
3893
- return tt(e).map((e, t) => ({
3898
+ function ut(e) {
3899
+ return at(e).map((e, t) => ({
3894
3900
  label: e.label,
3895
3901
  value: String(t),
3896
3902
  hint: e.description
3897
3903
  }));
3898
3904
  }
3899
- function ot(e) {
3900
- return nt(e, Qe(e)) ?? null;
3905
+ function dt(e) {
3906
+ return ot(e, nt(e)) ?? null;
3901
3907
  }
3902
- function st(e, t) {
3903
- $e(e, t == null ? void 0 : rt(e, t));
3908
+ function ft(e, t) {
3909
+ rt(e, t == null ? void 0 : st(e, t));
3904
3910
  }
3905
- function lt(e) {
3906
- let t = Qe(e);
3907
- return Array.isArray(t) ? t.map((t) => nt(e, t)).filter((e) => e !== void 0) : [];
3911
+ function pt(e) {
3912
+ let t = nt(e);
3913
+ return Array.isArray(t) ? t.map((t) => ot(e, t)).filter((e) => e !== void 0) : [];
3908
3914
  }
3909
- function ut(e, t) {
3910
- $e(e, t.map((t) => rt(e, t)));
3915
+ function mt(e, t) {
3916
+ rt(e, t.map((t) => st(e, t)));
3911
3917
  }
3912
3918
  return b(() => {
3913
- Me();
3919
+ Ie();
3914
3920
  }), x(() => {
3915
3921
  h.rowClickable && h.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
3916
3922
  for (let e of h.columns) e.editable && e.display && console.warn(`GTable: Column "${String(e.key)}" has both 'editable' and 'display' configured. 'display' will be ignored.`);
3917
- }), (n, r) => (w(), o("div", zi, [
3918
- Xe.value ? (w(), o("div", Bi, [
3919
- s("div", Vi, [
3920
- ce.value ? (w(), o("div", Hi, [l(ct, null, {
3921
- trigger: K(({ toggle: e }) => [l(Q, {
3923
+ }), (n, r) => (w(), o("div", {
3924
+ ref_key: "outerWrapRef",
3925
+ ref: re,
3926
+ class: "g-table-outer-wrap",
3927
+ style: v({ "--g-table-controls-height": `${et.value ? X.value : 0}px` })
3928
+ }, [s("div", zi, [
3929
+ et.value ? (w(), o("div", {
3930
+ key: 0,
3931
+ ref_key: "controlsRef",
3932
+ ref: ie,
3933
+ class: "g-table-controls"
3934
+ }, [
3935
+ s("div", Bi, [
3936
+ de.value ? (w(), o("div", Vi, [l(ct, null, {
3937
+ trigger: K(({ toggle: e }) => [l($, {
3922
3938
  size: "small",
3923
- class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": Z.value.length > 0 }]),
3939
+ class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": Q.value.length > 0 }]),
3924
3940
  "aria-label": "Choose sort order",
3925
3941
  onClick: e
3926
3942
  }, {
@@ -3933,7 +3949,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
3933
3949
  }, [s("path", {
3934
3950
  fill: "currentColor",
3935
3951
  d: "M130.4 268.2C135.4 280.2 147 288 160 288L480 288C492.9 288 504.6 280.2 509.6 268.2C514.6 256.2 511.8 242.5 502.7 233.3L342.7 73.3C330.2 60.8 309.9 60.8 297.4 73.3L137.4 233.3C128.2 242.5 125.5 256.2 130.5 268.2zM130.4 371.7C125.4 383.7 128.2 397.4 137.3 406.6L297.3 566.6C309.8 579.1 330.1 579.1 342.6 566.6L502.6 406.6C511.8 397.4 514.5 383.7 509.5 371.7C504.5 359.7 492.9 352 480 352L160 352C147.1 352 135.4 359.8 130.4 371.8z"
3936
- })], -1), Z.value.length ? (w(), o("span", Ui, P(Z.value.length), 1)) : a("", !0)]),
3952
+ })], -1), Q.value.length ? (w(), o("span", Hi, P(Q.value.length), 1)) : a("", !0)]),
3937
3953
  _: 1
3938
3954
  }, 8, ["class", "onClick"])]),
3939
3955
  default: K(() => [s("fieldset", {
@@ -3945,21 +3961,21 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
3945
3961
  }, [
3946
3962
  r[8] ||= s("legend", { class: "g-sort-builder-legend" }, " Sort order ", -1),
3947
3963
  r[9] ||= s("p", { class: "g-sort-builder-help" }, " Click a column header to change the primary sort. Use Shift-click as a shortcut to add or update secondary sorts. ", -1),
3948
- Z.value.length ? (w(), o("ol", Wi, [(w(!0), o(e, null, k(Z.value, (e, t) => (w(), o("li", {
3964
+ Q.value.length ? (w(), o("ol", Ui, [(w(!0), o(e, null, k(Q.value, (e, t) => (w(), o("li", {
3949
3965
  key: e.key,
3950
3966
  class: "g-sort-builder-rule",
3951
3967
  tabindex: "-1",
3952
3968
  "data-sort-row-key": String(e.key),
3953
- "aria-label": `${fe(e.key)} ${he(e.order)} sort, priority ${t + 1}`
3969
+ "aria-label": `${he(e.key)} ${ve(e.order)} sort, priority ${t + 1}`
3954
3970
  }, [
3955
- s("span", Ki, P(t + 1), 1),
3956
- s("span", qi, P(fe(e.key)), 1),
3971
+ s("span", Gi, P(t + 1), 1),
3972
+ s("span", Ki, P(he(e.key)), 1),
3957
3973
  s("button", {
3958
3974
  type: "button",
3959
3975
  class: "g-sort-builder-direction",
3960
- "aria-label": `Toggle ${fe(e.key)} sort direction`,
3961
- onClick: (t) => be(e.key)
3962
- }, [s("span", Yi, P(he(e.order)), 1), s("span", Xi, [(w(), o("svg", {
3976
+ "aria-label": `Toggle ${he(e.key)} sort direction`,
3977
+ onClick: (t) => Ce(e.key)
3978
+ }, [s("span", Ji, P(ve(e.order)), 1), s("span", Yi, [(w(), o("svg", {
3963
3979
  xmlns: "http://www.w3.org/2000/svg",
3964
3980
  viewBox: "0 0 640 640",
3965
3981
  height: "1.25em",
@@ -3967,22 +3983,22 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
3967
3983
  }, [...r[2] ||= [s("path", {
3968
3984
  fill: "currentColor",
3969
3985
  d: "M300.3 199.2C312.9 188.9 331.4 189.7 343.1 201.4L471.1 329.4C480.3 338.6 483 352.3 478 364.3C473 376.3 461.4 384 448.5 384L192.5 384C179.6 384 167.9 376.2 162.9 364.2C157.9 352.2 160.7 338.5 169.9 329.4L297.9 201.4L300.3 199.2z"
3970
- }, null, -1)]], 4))])], 8, Ji),
3986
+ }, null, -1)]], 4))])], 8, qi),
3971
3987
  s("button", {
3972
3988
  type: "button",
3973
3989
  class: "g-sort-builder-remove",
3974
- "aria-label": `Remove ${fe(e.key)} sort`,
3975
- onClick: (t) => xe(e.key)
3976
- }, " Remove ", 8, Zi)
3977
- ], 8, Gi))), 128))])) : (w(), o("p", Qi, " No active sort rules. ")),
3978
- le.value.length ? (w(), o("div", $i, [r[6] ||= s("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), s("ul", ea, [(w(!0), o(e, null, k(le.value, (e) => (w(), o("li", {
3990
+ "aria-label": `Remove ${he(e.key)} sort`,
3991
+ onClick: (t) => we(e.key)
3992
+ }, " Remove ", 8, Xi)
3993
+ ], 8, Wi))), 128))])) : (w(), o("p", Zi, " No active sort rules. ")),
3994
+ fe.value.length ? (w(), o("div", Qi, [r[6] ||= s("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), s("ul", $i, [(w(!0), o(e, null, k(fe.value, (e) => (w(), o("li", {
3979
3995
  key: e.key,
3980
3996
  class: "g-sort-builder-add-item"
3981
- }, [s("span", ta, P(e.label), 1), s("div", na, [s("button", {
3997
+ }, [s("span", ea, P(e.label), 1), s("div", ta, [s("button", {
3982
3998
  type: "button",
3983
3999
  class: "g-sort-builder-direction",
3984
4000
  "aria-label": `Add ${e.label} ascending sort`,
3985
- onClick: (t) => ye(e.key, 1)
4001
+ onClick: (t) => Se(e.key, 1)
3986
4002
  }, [...r[3] ||= [s("span", { class: "g-visually-hidden" }, " Add ascending sort ", -1), s("span", {
3987
4003
  class: "sort-indicator",
3988
4004
  "aria-hidden": "true"
@@ -3993,21 +4009,21 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
3993
4009
  }, [s("path", {
3994
4010
  fill: "currentColor",
3995
4011
  d: "M300.3 199.2C312.9 188.9 331.4 189.7 343.1 201.4L471.1 329.4C480.3 338.6 483 352.3 478 364.3C473 376.3 461.4 384 448.5 384L192.5 384C179.6 384 167.9 376.2 162.9 364.2C157.9 352.2 160.7 338.5 169.9 329.4L297.9 201.4L300.3 199.2z"
3996
- })])], -1)]], 8, ra), s("button", {
4012
+ })])], -1)]], 8, na), s("button", {
3997
4013
  type: "button",
3998
4014
  class: "g-sort-builder-direction",
3999
4015
  "aria-label": `Add ${e.label} descending sort`,
4000
- onClick: (t) => ye(e.key, -1)
4001
- }, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span", aa, [(w(), o("svg", oa, [...r[4] ||= [s("path", {
4016
+ onClick: (t) => Se(e.key, -1)
4017
+ }, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span", ia, [(w(), o("svg", aa, [...r[4] ||= [s("path", {
4002
4018
  fill: "currentColor",
4003
4019
  d: "M300.3 199.2C312.9 188.9 331.4 189.7 343.1 201.4L471.1 329.4C480.3 338.6 483 352.3 478 364.3C473 376.3 461.4 384 448.5 384L192.5 384C179.6 384 167.9 376.2 162.9 364.2C157.9 352.2 160.7 338.5 169.9 329.4L297.9 201.4L300.3 199.2z"
4004
- }, null, -1)]]))])], 8, ia)])]))), 128))])])) : a("", !0),
4005
- Z.value.length ? (w(), i(Q, {
4020
+ }, null, -1)]]))])], 8, ra)])]))), 128))])])) : a("", !0),
4021
+ Q.value.length ? (w(), i($, {
4006
4022
  key: 3,
4007
4023
  outlined: "",
4008
4024
  size: "small",
4009
4025
  class: "g-sort-builder-clear",
4010
- onClick: Se
4026
+ onClick: Te
4011
4027
  }, {
4012
4028
  default: K(() => [...r[7] ||= [c(" Clear sort ", -1)]]),
4013
4029
  _: 1
@@ -4015,14 +4031,14 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4015
4031
  ], 512)]),
4016
4032
  _: 1
4017
4033
  })])) : a("", !0),
4018
- Ue.value ? (w(), o("div", sa, [l(ct, null, {
4019
- trigger: K(({ toggle: e }) => [l(Q, {
4034
+ qe.value ? (w(), o("div", oa, [l(ct, null, {
4035
+ trigger: K(({ toggle: e }) => [l($, {
4020
4036
  size: "small",
4021
- class: _(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": He.value }]),
4037
+ class: _(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": Ke.value }]),
4022
4038
  "aria-label": "Choose visible columns",
4023
4039
  onClick: e
4024
4040
  }, {
4025
- default: K(() => [(w(), o("svg", ca, [...r[10] ||= [s("path", {
4041
+ default: K(() => [(w(), o("svg", sa, [...r[10] ||= [s("path", {
4026
4042
  fill: "currentColor",
4027
4043
  d: "M64 160C64 142.3 78.3 128 96 128L480 128C497.7 128 512 142.3 512 160C512 177.7 497.7 192 480 192L96 192C78.3 192 64 177.7 64 160zM128 320C128 302.3 142.3 288 160 288L544 288C561.7 288 576 302.3 576 320C576 337.7 561.7 352 544 352L160 352C142.3 352 128 337.7 128 320zM512 480C512 497.7 497.7 512 480 512L96 512C78.3 512 64 497.7 64 480C64 462.3 78.3 448 96 448L480 448C497.7 448 512 462.3 512 480z"
4028
4044
  }, null, -1)]]))]),
@@ -4031,29 +4047,29 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4031
4047
  default: K(() => [s("fieldset", {
4032
4048
  class: "g-column-visibility-popover",
4033
4049
  "aria-labelledby": `${R(G)}-column-visibility-heading`
4034
- }, [s("div", ua, [s("span", {
4050
+ }, [s("div", la, [s("span", {
4035
4051
  id: `${R(G)}-column-visibility-heading`,
4036
4052
  class: "g-column-visibility-heading"
4037
- }, " Shown columns ", 8, da), s("span", fa, [l(Q, {
4053
+ }, " Shown columns ", 8, ua), s("span", da, [l($, {
4038
4054
  text: "",
4039
4055
  size: "small",
4040
- class: _(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !He.value }]),
4041
- onClick: Je
4056
+ class: _(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !Ke.value }]),
4057
+ onClick: Qe
4042
4058
  }, {
4043
4059
  default: K(() => [...r[11] ||= [c(" Show All ", -1)]]),
4044
4060
  _: 1
4045
- }, 8, ["class"])])]), s("div", pa, [(w(!0), o(e, null, k(t.columns, (e) => (w(), o("label", {
4061
+ }, 8, ["class"])])]), s("div", fa, [(w(!0), o(e, null, k(t.columns, (e) => (w(), o("label", {
4046
4062
  key: e.key,
4047
4063
  class: "g-column-visibility-option"
4048
4064
  }, [s("input", {
4049
- checked: Ke(e),
4065
+ checked: Xe(e),
4050
4066
  type: "checkbox",
4051
- onChange: (t) => qe(e, t.target.checked)
4052
- }, null, 40, ma), s("span", null, P(e.label), 1)]))), 128))])], 8, la)]),
4067
+ onChange: (t) => Ze(e, t.target.checked)
4068
+ }, null, 40, pa), s("span", null, P(e.label), 1)]))), 128))])], 8, ca)]),
4053
4069
  _: 1
4054
4070
  })])) : a("", !0),
4055
- We.value ? (w(), o("div", ha, [A(n.$slots, "controls")])) : a("", !0),
4056
- s("div", ga, [R(S) ? (w(), i(Q, {
4071
+ Je.value ? (w(), o("div", ma, [A(n.$slots, "controls")])) : a("", !0),
4072
+ s("div", ha, [R(S) ? (w(), i($, {
4057
4073
  key: 0,
4058
4074
  outlined: "",
4059
4075
  size: "small",
@@ -4073,11 +4089,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4073
4089
  _: 1
4074
4090
  }, 8, ["onClick"])) : a("", !0)])
4075
4091
  ]),
4076
- Ye.value ? (w(), o("div", _a, [l(yi, {
4092
+ $e.value ? (w(), o("div", ga, [l(yi, {
4077
4093
  start: t.startIndex,
4078
4094
  "page-size": t.pageSize,
4079
4095
  "page-sizes": t.pageSizes,
4080
- total: Ge.value,
4096
+ total: Ye.value,
4081
4097
  "onUpdate:start": ee,
4082
4098
  "onUpdate:pageSize": W
4083
4099
  }, null, 8, [
@@ -4086,66 +4102,66 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4086
4102
  "page-sizes",
4087
4103
  "total"
4088
4104
  ])])) : a("", !0),
4089
- s("div", va, [s("span", ya, P(Ge.value) + " results", 1), A(n.$slots, "right-controls")])
4090
- ])) : a("", !0),
4105
+ s("div", _a, [s("span", va, P(Ye.value) + " results", 1), A(n.$slots, "right-controls")])
4106
+ ], 512)) : a("", !0),
4091
4107
  s("div", {
4092
4108
  ref_key: "tableWrapRef",
4093
- ref: ie,
4109
+ ref: Y,
4094
4110
  class: "g-table-table-wrap"
4095
4111
  }, [s("table", {
4096
4112
  id: ae,
4097
4113
  class: _(["g-table", { "g-table--resizable": t.resizableColumns }]),
4098
4114
  ref_key: "tableRef",
4099
- ref: re,
4115
+ ref: J,
4100
4116
  "aria-label": t.label,
4101
- "aria-rowcount": Ge.value
4117
+ "aria-rowcount": Ye.value
4102
4118
  }, [
4103
- s("colgroup", null, [t.bulkSelectionEnabled ? (w(), o("col", xa)) : a("", !0), (w(!0), o(e, null, k(Be.value, (e) => (w(), o("col", {
4119
+ s("colgroup", null, [t.bulkSelectionEnabled ? (w(), o("col", ba)) : a("", !0), (w(!0), o(e, null, k(We.value, (e) => (w(), o("col", {
4104
4120
  key: e.key,
4105
4121
  "data-column-key": String(e.key),
4106
- style: v(Ie(e))
4107
- }, null, 12, Sa))), 128))]),
4108
- s("thead", Ca, [s("tr", wa, [t.bulkSelectionEnabled ? (w(), o("th", Ta, [s("input", {
4122
+ style: v(Be(e))
4123
+ }, null, 12, xa))), 128))]),
4124
+ s("thead", Sa, [s("tr", Ca, [t.bulkSelectionEnabled ? (w(), o("th", wa, [s("input", {
4109
4125
  type: "checkbox",
4110
4126
  checked: D.value,
4111
4127
  indeterminate: j.value,
4112
4128
  onChange: N,
4113
4129
  "aria-label": D.value ? "Deselect all rows" : "Select all rows",
4114
4130
  class: "g-bulk-select-checkbox"
4115
- }, null, 40, Ea)])) : a("", !0), (w(!0), o(e, null, k(Be.value, (e) => (w(), o("th", {
4131
+ }, null, 40, Ta)])) : a("", !0), (w(!0), o(e, null, k(We.value, (e) => (w(), o("th", {
4116
4132
  key: e.key,
4117
4133
  id: `${R(G)}-th-${String(e.key)}`,
4118
- "aria-sort": pe(e.key),
4134
+ "aria-sort": ge(e.key),
4119
4135
  class: _([
4120
4136
  "g-th",
4121
4137
  { "g-th--resizable": t.resizableColumns },
4122
- { sorted: ue(e.key) !== -1 },
4123
- { filtered: et(e) }
4138
+ { sorted: pe(e.key) !== -1 },
4139
+ { filtered: it(e) }
4124
4140
  ]),
4125
4141
  scope: "col"
4126
- }, [s("div", Oa, [e.sortable ? (w(), o("button", {
4142
+ }, [s("div", Da, [e.sortable ? (w(), o("button", {
4127
4143
  key: 0,
4128
4144
  type: "button",
4129
4145
  class: "g-column-head",
4130
- onClick: (t) => ve(e, t.shiftKey)
4146
+ onClick: (t) => xe(e, t.shiftKey)
4131
4147
  }, [
4132
4148
  r[14] ||= s("span", { class: "g-visually-hidden" }, "Sort by ", -1),
4133
4149
  c(" " + P(e.label) + " ", 1),
4134
- ue(e.key) === -1 ? a("", !0) : (w(), o("span", Aa, [(w(), o("svg", {
4150
+ pe(e.key) === -1 ? a("", !0) : (w(), o("span", ka, [(w(), o("svg", {
4135
4151
  xmlns: "http://www.w3.org/2000/svg",
4136
4152
  viewBox: "0 0 640 640",
4137
4153
  height: "1.5em",
4138
- style: v({ transform: `rotate(${de(e.key)?.order === 1 ? 0 : 180}deg)` })
4154
+ style: v({ transform: `rotate(${me(e.key)?.order === 1 ? 0 : 180}deg)` })
4139
4155
  }, [...r[13] ||= [s("path", {
4140
4156
  fill: "currentColor",
4141
4157
  d: "M300.3 199.2C312.9 188.9 331.4 189.7 343.1 201.4L471.1 329.4C480.3 338.6 483 352.3 478 364.3C473 376.3 461.4 384 448.5 384L192.5 384C179.6 384 167.9 376.2 162.9 364.2C157.9 352.2 160.7 338.5 169.9 329.4L297.9 201.4L300.3 199.2z"
4142
4158
  }, null, -1)]], 4))])),
4143
- ue(e.key) === -1 ? a("", !0) : (w(), o("span", ja, P(me(e.key)), 1))
4144
- ], 8, ka)) : (w(), o("span", Ma, P(e.label), 1)), e.filter ? (w(), i(ct, { key: 2 }, {
4159
+ pe(e.key) === -1 ? a("", !0) : (w(), o("span", Aa, P(_e(e.key)), 1))
4160
+ ], 8, Oa)) : (w(), o("span", ja, P(e.label), 1)), e.filter ? (w(), i(ct, { key: 2 }, {
4145
4161
  trigger: K(({ toggle: t }) => [s("button", {
4146
4162
  onClick: q(t, ["stop"]),
4147
- "aria-label": et(e) ? `Filter ${e.label} column (filtered)` : `Filter ${e.label} column`,
4148
- class: _(["g-filter-btn", { "g-active": et(e) }]),
4163
+ "aria-label": it(e) ? `Filter ${e.label} column (filtered)` : `Filter ${e.label} column`,
4164
+ class: _(["g-filter-btn", { "g-active": it(e) }]),
4149
4165
  type: "button"
4150
4166
  }, [...r[15] ||= [s("svg", {
4151
4167
  xmlns: "http://www.w3.org/2000/svg",
@@ -4155,12 +4171,12 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4155
4171
  }, [s("path", {
4156
4172
  fill: "currentColor",
4157
4173
  d: "M96 128C83.1 128 71.4 135.8 66.4 147.8C61.4 159.8 64.2 173.5 73.4 182.6L256 365.3L256 480C256 488.5 259.4 496.6 265.4 502.6L329.4 566.6C338.6 575.8 352.3 578.5 364.3 573.5C376.3 568.5 384 556.9 384 544L384 365.3L566.6 182.7C575.8 173.5 578.5 159.8 573.5 147.8C568.5 135.8 556.9 128 544 128L96 128z"
4158
- })], -1)]], 10, Na)]),
4174
+ })], -1)]], 10, Ma)]),
4159
4175
  default: K(() => [e.filter.type === "select" ? (w(), i(Jt, {
4160
4176
  key: 0,
4161
- "model-value": ot(e),
4162
- "onUpdate:modelValue": (t) => st(e, t),
4163
- options: it(e),
4177
+ "model-value": dt(e),
4178
+ "onUpdate:modelValue": (t) => ft(e, t),
4179
+ options: lt(e),
4164
4180
  class: "g-filter-select",
4165
4181
  label: "Filter select",
4166
4182
  searchable: "",
@@ -4171,7 +4187,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4171
4187
  "onUpdate:modelValue",
4172
4188
  "options",
4173
4189
  "search-description"
4174
- ])) : e.filter.type === "search" ? (w(), o("div", Pa, [r[16] ||= s("span", {
4190
+ ])) : e.filter.type === "search" ? (w(), o("div", Na, [r[16] ||= s("span", {
4175
4191
  class: "g-filter-search-icon",
4176
4192
  "aria-hidden": "true"
4177
4193
  }, [s("svg", {
@@ -4184,29 +4200,29 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4184
4200
  })])], -1), s("input", {
4185
4201
  type: "search",
4186
4202
  class: "g-filter-search-input",
4187
- value: Qe(e),
4188
- onInput: (t) => $e(e, t.target.value),
4203
+ value: nt(e),
4204
+ onInput: (t) => rt(e, t.target.value),
4189
4205
  placeholder: e.filter.placeholder,
4190
4206
  "aria-label": `Search ${e.label}`
4191
- }, null, 40, Fa)])) : e.filter.type === "toggle" ? (w(), o("div", Ia, [s("div", La, [
4207
+ }, null, 40, Pa)])) : e.filter.type === "toggle" ? (w(), o("div", Fa, [s("div", Ia, [
4192
4208
  s("input", {
4193
4209
  type: "checkbox",
4194
- checked: Qe(e) === !0,
4195
- onChange: (t) => $e(e, t.target.checked),
4210
+ checked: nt(e) === !0,
4211
+ onChange: (t) => rt(e, t.target.checked),
4196
4212
  id: `${R(G)}-filter-${String(e.key)}`,
4197
4213
  "aria-describedby": e.filter.description ? `${R(G)}-filter-description-${String(e.key)}` : void 0
4198
- }, null, 40, Ra),
4199
- s("label", { for: `${R(G)}-filter-${String(e.key)}` }, P(e.filter.label), 9, za),
4214
+ }, null, 40, La),
4215
+ s("label", { for: `${R(G)}-filter-${String(e.key)}` }, P(e.filter.label), 9, Ra),
4200
4216
  e.filter.description ? (w(), o("span", {
4201
4217
  key: 0,
4202
4218
  class: "g-filter-description",
4203
4219
  id: `${R(G)}-filter-description-${String(e.key)}`
4204
- }, P(e.filter.description), 9, Ba)) : a("", !0)
4220
+ }, P(e.filter.description), 9, za)) : a("", !0)
4205
4221
  ])])) : e.filter.type === "multi-select" && e.filter.searchable ? (w(), i(Rr, {
4206
4222
  key: 3,
4207
- "model-value": lt(e),
4208
- "onUpdate:modelValue": (t) => ut(e, t),
4209
- options: it(e),
4223
+ "model-value": pt(e),
4224
+ "onUpdate:modelValue": (t) => mt(e, t),
4225
+ options: lt(e),
4210
4226
  label: "Include values",
4211
4227
  placeholder: e.filter.placeholder,
4212
4228
  "search-description": e.filter.searchDescription,
@@ -4217,21 +4233,21 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4217
4233
  "options",
4218
4234
  "placeholder",
4219
4235
  "search-description"
4220
- ])) : e.filter.type === "multi-select" ? (w(), o("div", Va, [l(Yr, {
4221
- "model-value": lt(e),
4222
- "onUpdate:modelValue": (t) => ut(e, t),
4223
- options: at(e),
4236
+ ])) : e.filter.type === "multi-select" ? (w(), o("div", Ba, [l(Yr, {
4237
+ "model-value": pt(e),
4238
+ "onUpdate:modelValue": (t) => mt(e, t),
4239
+ options: ut(e),
4224
4240
  label: "Include values"
4225
4241
  }, null, 8, [
4226
4242
  "model-value",
4227
4243
  "onUpdate:modelValue",
4228
4244
  "options"
4229
- ]), et(e) ? (w(), i(Q, {
4245
+ ]), it(e) ? (w(), i($, {
4230
4246
  key: 0,
4231
4247
  class: "clear-multiselect-btn",
4232
4248
  theme: "accent",
4233
4249
  size: "small",
4234
- onClick: (t) => $e(e, [])
4250
+ onClick: (t) => rt(e, [])
4235
4251
  }, {
4236
4252
  default: K(() => [...r[17] ||= [c(" Clear ", -1)]]),
4237
4253
  _: 1
@@ -4240,27 +4256,27 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4240
4256
  }, 1024)) : a("", !0)]), t.resizableColumns ? (w(), o("div", {
4241
4257
  key: 0,
4242
4258
  "data-column-key": String(e.key),
4243
- class: _(["g-column-resize-handle", { "g-column-resize-handle--active": J.value?.key === e.key }]),
4259
+ class: _(["g-column-resize-handle", { "g-column-resize-handle--active": Z.value?.key === e.key }]),
4244
4260
  role: "separator",
4245
4261
  tabindex: "0",
4246
4262
  "aria-orientation": "vertical",
4247
4263
  "aria-controls": ae,
4248
4264
  "aria-label": `Resize ${e.label} column`,
4249
4265
  "aria-valuemin": 50,
4250
- "aria-valuemax": Ae(e.key),
4251
- "aria-valuenow": Le(e.key),
4252
- "aria-valuetext": Re(e.key),
4266
+ "aria-valuemax": Ne(e.key),
4267
+ "aria-valuenow": Ve(e.key),
4268
+ "aria-valuetext": He(e.key),
4253
4269
  onClick: r[0] ||= q(() => {}, ["stop", "prevent"]),
4254
- onKeydown: (t) => Fe(t, e.key),
4255
- onPointerdown: (t) => Pe(t, e.key)
4256
- }, null, 42, Ha)) : a("", !0)], 10, Da))), 128))])]),
4257
- t.data.length === 0 ? (w(), o("tbody", Ua, [s("tr", Wa, [s("td", {
4270
+ onKeydown: (t) => ze(t, e.key),
4271
+ onPointerdown: (t) => Re(t, e.key)
4272
+ }, null, 42, Va)) : a("", !0)], 10, Ea))), 128))])]),
4273
+ t.data.length === 0 ? (w(), o("tbody", Ha, [s("tr", Ua, [s("td", {
4258
4274
  class: "g-table-empty",
4259
- colspan: Be.value.length + +!!t.bulkSelectionEnabled
4260
- }, [A(n.$slots, "empty")], 8, Ga)])])) : (w(), i(fr, {
4275
+ colspan: We.value.length + +!!t.bulkSelectionEnabled
4276
+ }, [A(n.$slots, "empty")], 8, Wa)])])) : (w(), i(fr, {
4261
4277
  key: 1,
4262
4278
  data: t.data,
4263
- columns: Be.value,
4279
+ columns: We.value,
4264
4280
  "group-by": t.groupBy,
4265
4281
  "group-render": t.groupRender,
4266
4282
  "row-clickable": t.rowClickable,
@@ -4286,8 +4302,8 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4286
4302
  "table-id",
4287
4303
  "change-tracker"
4288
4304
  ]))
4289
- ], 10, ba)], 512),
4290
- t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div", Ka, [s("span", qa, P(m.value.length) + " row" + P(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Ja, [(w(!0), o(e, null, k(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l(Q, {
4305
+ ], 10, ya)], 512),
4306
+ t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div", Ga, [s("span", Ka, P(m.value.length) + " row" + P(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", qa, [(w(!0), o(e, null, k(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l($, {
4291
4307
  theme: e.theme || "accent",
4292
4308
  onClick: (t) => z(e.id),
4293
4309
  size: "small"
@@ -4295,9 +4311,9 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4295
4311
  default: K(() => [c(P(e.label) + " " + P(m.value.length) + " row" + P(m.value.length === 1 ? "" : "s"), 1)]),
4296
4312
  _: 2
4297
4313
  }, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
4298
- ]));
4314
+ ])], 4));
4299
4315
  }
4300
- }), Xa = ["id"], Za = { class: "g-modal-inner" }, Qa = { class: "g-modal-header" }, $a = ["id"], eo = ["id"], to = /* @__PURE__ */ u({
4316
+ }), Ya = ["id"], Xa = { class: "g-modal-inner" }, Za = { class: "g-modal-header" }, Qa = ["id"], $a = ["id"], eo = /* @__PURE__ */ u({
4301
4317
  __name: "GModal",
4302
4318
  props: {
4303
4319
  label: {},
@@ -4341,12 +4357,12 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4341
4357
  ref_key: "dialog",
4342
4358
  ref: f,
4343
4359
  style: { zIndex: R(b) }
4344
- }), [s("div", Za, [s("div", Qa, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
4360
+ }), [s("div", Xa, [s("div", Za, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
4345
4361
  key: 0,
4346
4362
  id: "modal-label-" + R(m),
4347
4363
  class: "g-modal-label",
4348
4364
  tabindex: "-1"
4349
- }, P(e.label), 9, $a)), s("button", {
4365
+ }, P(e.label), 9, Qa)), s("button", {
4350
4366
  class: "g-modal-close",
4351
4367
  onClick: T,
4352
4368
  "aria-label": "Close"
@@ -4361,36 +4377,36 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4361
4377
  })], -1)]])]), s("div", {
4362
4378
  id: "modal-description-" + R(m),
4363
4379
  class: "g-modal-content"
4364
- }, [A(r.$slots, "default")], 8, eo)])], 16, Xa)]),
4380
+ }, [A(r.$slots, "default")], 8, $a)])], 16, Ya)]),
4365
4381
  _: 3
4366
4382
  })]));
4367
4383
  }
4368
- }), no = /* @__PURE__ */ u({
4384
+ }), to = /* @__PURE__ */ u({
4369
4385
  __name: "GDetailList",
4370
4386
  props: { variant: { default: "grid" } },
4371
4387
  setup(e) {
4372
4388
  let t = e;
4373
4389
  return (e, n) => (w(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [A(e.$slots, "default")], 2));
4374
4390
  }
4375
- }), ro = { class: "g-detail-list-item" }, io = { class: "g-detail-list-item__label" }, ao = { class: "g-detail-list-item__value" }, oo = /* @__PURE__ */ u({
4391
+ }), no = { class: "g-detail-list-item" }, ro = { class: "g-detail-list-item__label" }, io = { class: "g-detail-list-item__value" }, ao = /* @__PURE__ */ u({
4376
4392
  __name: "GDetailListItem",
4377
4393
  props: { label: {} },
4378
4394
  setup(e) {
4379
- return (t, n) => (w(), o("div", ro, [s("dt", io, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])]), s("dd", ao, [A(t.$slots, "default")])]));
4395
+ return (t, n) => (w(), o("div", no, [s("dt", ro, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])]), s("dd", io, [A(t.$slots, "default")])]));
4380
4396
  }
4381
- }), so = {
4397
+ }), oo = {
4382
4398
  key: 0,
4383
4399
  class: "g-scroll-lock-overlay"
4384
- }, co = /* @__PURE__ */ u({
4400
+ }, so = /* @__PURE__ */ u({
4385
4401
  __name: "GOverlay",
4386
4402
  setup(e) {
4387
4403
  let { hasScrollLock: t } = Je();
4388
4404
  return (e, r) => (w(), i(n, { name: "g-fade" }, {
4389
- default: K(() => [R(t) ? (w(), o("div", so)) : a("", !0)]),
4405
+ default: K(() => [R(t) ? (w(), o("div", oo)) : a("", !0)]),
4390
4406
  _: 1
4391
4407
  }));
4392
4408
  }
4393
- }), lo = { class: "popover-content" }, uo = { class: "year-dropdown" }, fo = { class: "month-selector" }, po = /* @__PURE__ */ u({
4409
+ }), co = { class: "popover-content" }, lo = { class: "year-dropdown" }, uo = { class: "month-selector" }, fo = /* @__PURE__ */ u({
4394
4410
  __name: "GTermSelectorControl",
4395
4411
  props: /*@__PURE__*/ m({
4396
4412
  termYears: { default: () => ["2026"] },
@@ -4411,7 +4427,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4411
4427
  emits: ["update:modelValue"],
4412
4428
  setup(e) {
4413
4429
  let t = V(e, "modelValue");
4414
- return (n, r) => (w(), o("div", lo, [s("div", uo, [l(Jt, {
4430
+ return (n, r) => (w(), o("div", co, [s("div", lo, [l(Jt, {
4415
4431
  modelValue: t.value.year,
4416
4432
  "onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
4417
4433
  options: e.termYears,
@@ -4420,7 +4436,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4420
4436
  "modelValue",
4421
4437
  "options",
4422
4438
  "label"
4423
- ])]), s("div", fo, [l(Ct, {
4439
+ ])]), s("div", uo, [l(Ct, {
4424
4440
  modelValue: t.value.name,
4425
4441
  "onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
4426
4442
  options: e.termNames,
@@ -4432,7 +4448,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4432
4448
  "label"
4433
4449
  ])])]));
4434
4450
  }
4435
- }), mo = { class: "g-term-selector" }, ho = { class: "g-term-label" }, go = /* @__PURE__ */ u({
4451
+ }), po = { class: "g-term-selector" }, mo = { class: "g-term-label" }, ho = /* @__PURE__ */ u({
4436
4452
  __name: "GTermSelector",
4437
4453
  props: /*@__PURE__*/ m({
4438
4454
  heading: { default: "Period Selection" },
@@ -4454,8 +4470,8 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4454
4470
  emits: ["update:modelValue"],
4455
4471
  setup(e) {
4456
4472
  let t = V(e, "modelValue"), n = `${B()}-heading`;
4457
- return (r, i) => (w(), o("div", mo, [l(ct, { "aria-labelledby": n }, {
4458
- trigger: K(({ toggle: e, open: n, popoverId: r }) => [l(Q, {
4473
+ return (r, i) => (w(), o("div", po, [l(ct, { "aria-labelledby": n }, {
4474
+ trigger: K(({ toggle: e, open: n, popoverId: r }) => [l($, {
4459
4475
  class: "g-term-selector-button",
4460
4476
  theme: "none",
4461
4477
  outlined: "",
@@ -4470,7 +4486,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4470
4486
  xmlns: "http://www.w3.org/2000/svg",
4471
4487
  viewBox: "0 0 640 640"
4472
4488
  }, [s("path", { d: "M224 64C206.3 64 192 78.3 192 96L192 128L160 128C124.7 128 96 156.7 96 192L96 240L544 240L544 192C544 156.7 515.3 128 480 128L448 128L448 96C448 78.3 433.7 64 416 64C398.3 64 384 78.3 384 96L384 128L256 128L256 96C256 78.3 241.7 64 224 64zM96 288L96 480C96 515.3 124.7 544 160 544L480 544C515.3 544 544 515.3 544 480L544 288L96 288z" })])], -1),
4473
- s("span", ho, P(t.value?.name) + " " + P(t.value?.year), 1),
4489
+ s("span", mo, P(t.value?.name) + " " + P(t.value?.year), 1),
4474
4490
  i[2] ||= s("span", { class: "g-caret" }, [s("svg", {
4475
4491
  role: "none",
4476
4492
  xmlns: "http://www.w3.org/2000/svg",
@@ -4487,18 +4503,18 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4487
4503
  id: n,
4488
4504
  class: "g-popover-title",
4489
4505
  tabindex: "-1"
4490
- }, P(e.heading), 1), l(po, h(r.$props, {
4506
+ }, P(e.heading), 1), l(fo, h(r.$props, {
4491
4507
  modelValue: t.value,
4492
4508
  "onUpdate:modelValue": i[0] ||= (e) => t.value = e
4493
4509
  }), null, 16, ["modelValue"])]),
4494
4510
  _: 1
4495
4511
  })]));
4496
4512
  }
4497
- }), _o = { class: "g-user-menu" }, vo = [
4513
+ }), go = { class: "g-user-menu" }, _o = [
4498
4514
  "aria-label",
4499
4515
  "aria-expanded",
4500
4516
  "onClick"
4501
- ], yo = { class: "g-user-menu__popover" }, bo = { class: "g-user-menu__list" }, xo = /* @__PURE__ */ u({
4517
+ ], vo = { class: "g-user-menu__popover" }, yo = { class: "g-user-menu__list" }, bo = /* @__PURE__ */ u({
4502
4518
  __name: "GUserMenu",
4503
4519
  props: {
4504
4520
  initials: {},
@@ -4513,7 +4529,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4513
4529
  e.target?.closest("a") && (r.value = !1);
4514
4530
  }
4515
4531
  let u = H();
4516
- return (d, f) => (w(), o("div", _o, [l(ct, {
4532
+ return (d, f) => (w(), o("div", go, [l(ct, {
4517
4533
  modelValue: r.value,
4518
4534
  "onUpdate:modelValue": f[0] ||= (e) => r.value = e,
4519
4535
  minimal: ""
@@ -4525,8 +4541,8 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4525
4541
  "aria-expanded": r.value,
4526
4542
  "aria-haspopup": "menu",
4527
4543
  onClick: e
4528
- }, P(t.initials), 13, vo)]),
4529
- default: K(() => [s("div", yo, [s("h2", {
4544
+ }, P(t.initials), 13, _o)]),
4545
+ default: K(() => [s("div", vo, [s("h2", {
4530
4546
  id: n,
4531
4547
  ref_key: "emailHeading",
4532
4548
  ref: a,
@@ -4536,11 +4552,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4536
4552
  class: "g-user-menu__nav",
4537
4553
  "aria-labelledby": n,
4538
4554
  onClick: c
4539
- }, [s("ul", bo, [(w(!0), o(e, null, k(u.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(j(e)))]))), 128))])])])]),
4555
+ }, [s("ul", yo, [(w(!0), o(e, null, k(u.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(j(e)))]))), 128))])])])]),
4540
4556
  _: 1
4541
4557
  }, 8, ["modelValue"])]));
4542
4558
  }
4543
- }), So = /* @__PURE__ */ u({
4559
+ }), xo = /* @__PURE__ */ u({
4544
4560
  __name: "GCurrencyInput",
4545
4561
  props: /*@__PURE__*/ m({
4546
4562
  label: { default: void 0 },
@@ -4591,7 +4607,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4591
4607
  "form-key"
4592
4608
  ]));
4593
4609
  }
4594
- }), Co = /* @__PURE__ */ u({
4610
+ }), So = /* @__PURE__ */ u({
4595
4611
  __name: "GEmailInput",
4596
4612
  props: /*@__PURE__*/ m({
4597
4613
  label: { default: void 0 },
@@ -4636,13 +4652,13 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4636
4652
  "instructions"
4637
4653
  ]));
4638
4654
  }
4639
- }), wo = ["for"], To = {
4655
+ }), Co = ["for"], wo = {
4640
4656
  key: 0,
4641
4657
  class: "g-file-input-required"
4642
- }, Eo = {
4658
+ }, To = {
4643
4659
  key: 0,
4644
4660
  class: "g-file-input-box-header"
4645
- }, Do = ["id"], Oo = [
4661
+ }, Eo = ["id"], Do = [
4646
4662
  "id",
4647
4663
  "disabled",
4648
4664
  "required",
@@ -4651,11 +4667,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4651
4667
  "aria-invalid",
4652
4668
  "aria-describedby",
4653
4669
  "aria-errormessage"
4654
- ], ko = {
4670
+ ], Oo = {
4655
4671
  key: 1,
4656
4672
  class: "g-file-input-pills",
4657
4673
  "aria-label": "Selected files"
4658
- }, Ao = /* @__PURE__ */ u({
4674
+ }, ko = /* @__PURE__ */ u({
4659
4675
  inheritAttrs: !1,
4660
4676
  __name: "GFileInput",
4661
4677
  props: /*@__PURE__*/ m({
@@ -4685,7 +4701,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4685
4701
  }),
4686
4702
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
4687
4703
  setup(t, { emit: n }) {
4688
- let i = t, u = V(t, "modelValue"), d = B(), { displayErrors: f } = $({
4704
+ let i = t, u = V(t, "modelValue"), d = B(), { displayErrors: f } = Ae({
4689
4705
  name: i.name,
4690
4706
  value: u,
4691
4707
  errors: I(i, "errors"),
@@ -4712,12 +4728,12 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4712
4728
  key: 0,
4713
4729
  for: R(d),
4714
4730
  class: "g-file-input-label"
4715
- }, [c(P(t.label) + " ", 1), t.required ? (w(), o("span", To, "*")) : a("", !0)], 8, wo)) : a("", !0),
4731
+ }, [c(P(t.label) + " ", 1), t.required ? (w(), o("span", wo, "*")) : a("", !0)], 8, Co)) : a("", !0),
4716
4732
  s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
4717
- t.instructions ? (w(), o("div", Eo, [s("span", {
4733
+ t.instructions ? (w(), o("div", To, [s("span", {
4718
4734
  id: "instructions-" + R(d),
4719
4735
  class: "g-file-input-instructions"
4720
- }, P(t.instructions), 9, Do)])) : a("", !0),
4736
+ }, P(t.instructions), 9, Eo)])) : a("", !0),
4721
4737
  s("input", {
4722
4738
  id: R(d),
4723
4739
  type: "file",
@@ -4730,8 +4746,8 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4730
4746
  "aria-describedby": t.instructions ? "instructions-" + R(d) : void 0,
4731
4747
  "aria-errormessage": y.value ? "error-message-" + R(d) : void 0,
4732
4748
  onChange: g
4733
- }, null, 40, Oo),
4734
- t.multiple && b.value.length > 0 ? (w(), o("ul", ko, [(w(!0), o(e, null, k(b.value, (e) => (w(), o("li", {
4749
+ }, null, 40, Do),
4750
+ t.multiple && b.value.length > 0 ? (w(), o("ul", Oo, [(w(!0), o(e, null, k(b.value, (e) => (w(), o("li", {
4735
4751
  key: e,
4736
4752
  class: "g-file-input-pill"
4737
4753
  }, [r[0] ||= s("svg", {
@@ -4747,7 +4763,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4747
4763
  }, null, 8, ["errors", "id"])
4748
4764
  ], 2));
4749
4765
  }
4750
- }), jo = /* @__PURE__ */ u({
4766
+ }), Ao = /* @__PURE__ */ u({
4751
4767
  __name: "GDateInput",
4752
4768
  props: /*@__PURE__*/ m({
4753
4769
  label: { default: void 0 },
@@ -4795,21 +4811,21 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4795
4811
  "form-key"
4796
4812
  ]));
4797
4813
  }
4798
- }), Mo = { class: "g-date-range-input" }, No = {
4814
+ }), jo = { class: "g-date-range-input" }, Mo = {
4799
4815
  key: 0,
4800
4816
  class: "g-date-range-input__label"
4801
- }, Po = {
4817
+ }, No = {
4802
4818
  key: 0,
4803
4819
  class: "g-date-range-input__required",
4804
4820
  "aria-hidden": "true"
4805
- }, Fo = {
4821
+ }, Po = {
4806
4822
  key: 1,
4807
4823
  class: "g-date-range-input__instructions"
4808
- }, Io = { class: "g-date-range-input__fields" }, Lo = {
4824
+ }, Fo = { class: "g-date-range-input__fields" }, Io = {
4809
4825
  key: 2,
4810
4826
  class: "g-date-range-input__errors",
4811
4827
  role: "alert"
4812
- }, Ro = /* @__PURE__ */ u({
4828
+ }, Lo = /* @__PURE__ */ u({
4813
4829
  __name: "GDateRangeInput",
4814
4830
  props: /*@__PURE__*/ m({
4815
4831
  label: { default: void 0 },
@@ -4836,7 +4852,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4836
4852
  }),
4837
4853
  emits: ["update:modelValue"],
4838
4854
  setup(t) {
4839
- let n = t, r = V(t, "modelValue"), i = O(r.value.start || null), u = O(r.value.end || null), { displayErrors: d } = $({
4855
+ let n = t, r = V(t, "modelValue"), i = O(r.value.start || null), u = O(r.value.end || null), { displayErrors: d } = Ae({
4840
4856
  name: n.name,
4841
4857
  value: r,
4842
4858
  errors: I(n, "errors"),
@@ -4849,10 +4865,10 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4849
4865
  };
4850
4866
  }), W(r, (e) => {
4851
4867
  e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
4852
- }, { deep: !0 }), (t, r) => (w(), o("div", Mo, [
4853
- n.label ? (w(), o("div", No, [c(P(n.label), 1), n.required ? (w(), o("span", Po, " *")) : a("", !0)])) : a("", !0),
4854
- n.instructions ? (w(), o("div", Fo, P(n.instructions), 1)) : a("", !0),
4855
- s("div", Io, [l(jo, {
4868
+ }, { deep: !0 }), (t, r) => (w(), o("div", jo, [
4869
+ n.label ? (w(), o("div", Mo, [c(P(n.label), 1), n.required ? (w(), o("span", No, " *")) : a("", !0)])) : a("", !0),
4870
+ n.instructions ? (w(), o("div", Po, P(n.instructions), 1)) : a("", !0),
4871
+ s("div", Fo, [l(Ao, {
4856
4872
  modelValue: i.value,
4857
4873
  "onUpdate:modelValue": r[0] ||= (e) => i.value = e,
4858
4874
  label: n.startLabel,
@@ -4864,7 +4880,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4864
4880
  "label",
4865
4881
  "disabled",
4866
4882
  "required"
4867
- ]), l(jo, {
4883
+ ]), l(Ao, {
4868
4884
  modelValue: u.value,
4869
4885
  "onUpdate:modelValue": r[1] ||= (e) => u.value = e,
4870
4886
  label: n.endLabel,
@@ -4877,13 +4893,13 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4877
4893
  "disabled",
4878
4894
  "required"
4879
4895
  ])]),
4880
- R(d).length > 0 ? (w(), o("div", Lo, [(w(!0), o(e, null, k(R(d), (e, t) => (w(), o("div", {
4896
+ R(d).length > 0 ? (w(), o("div", Io, [(w(!0), o(e, null, k(R(d), (e, t) => (w(), o("div", {
4881
4897
  key: t,
4882
4898
  class: "g-date-range-input__error"
4883
4899
  }, P(e), 1))), 128))])) : a("", !0)
4884
4900
  ]));
4885
4901
  }
4886
- }), zo = ["action", "method"], Bo = /* @__PURE__ */ u({
4902
+ }), Ro = ["action", "method"], zo = /* @__PURE__ */ u({
4887
4903
  __name: "GForm",
4888
4904
  props: /*@__PURE__*/ m({
4889
4905
  action: { default: void 0 },
@@ -4895,7 +4911,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4895
4911
  }),
4896
4912
  emits: /*@__PURE__*/ m(["submit"], ["update:modelValue"]),
4897
4913
  setup(e, { emit: t }) {
4898
- let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (fe() ? Ae(n.formKey) : Oe());
4914
+ let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (de() ? ke(n.formKey) : De());
4899
4915
  a || T("form", s), W(() => s.values.value, (e) => {
4900
4916
  r.value = { ...e };
4901
4917
  }, { deep: !0 }), W(() => r.value, (e) => {
@@ -4923,9 +4939,9 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4923
4939
  hasErrors: R(s).hasErrors.value,
4924
4940
  values: R(s).values.value,
4925
4941
  errors: R(s).errors.value
4926
- })], 40, zo));
4942
+ })], 40, Ro));
4927
4943
  }
4928
- }), Vo = /* @__PURE__ */ u({
4944
+ }), Bo = /* @__PURE__ */ u({
4929
4945
  __name: "GSubmitButton",
4930
4946
  props: {
4931
4947
  disabled: {
@@ -4937,8 +4953,8 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4937
4953
  formKey: { default: "default" }
4938
4954
  },
4939
4955
  setup(e) {
4940
- let t = e, n = z(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (fe() ? Ae(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
4941
- return (e, n) => (w(), i(Q, {
4956
+ let t = e, n = z(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (de() ? ke(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
4957
+ return (e, n) => (w(), i($, {
4942
4958
  type: "submit",
4943
4959
  disabled: u.value,
4944
4960
  variant: t.variant,
@@ -4948,11 +4964,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4948
4964
  _: 3
4949
4965
  }, 8, ["disabled", "variant"]));
4950
4966
  }
4951
- }), Ho = ["for"], Uo = {
4967
+ }), Vo = ["for"], Ho = {
4952
4968
  key: 0,
4953
4969
  class: "g-textarea-required",
4954
4970
  "aria-hidden": "true"
4955
- }, Wo = ["id"], Go = [
4971
+ }, Uo = ["id"], Wo = [
4956
4972
  "value",
4957
4973
  "placeholder",
4958
4974
  "disabled",
@@ -4961,11 +4977,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4961
4977
  "rows",
4962
4978
  "maxlength",
4963
4979
  "aria-invalid"
4964
- ], Ko = {
4980
+ ], Go = {
4965
4981
  key: 2,
4966
4982
  class: "g-textarea-char-count",
4967
4983
  "aria-live": "polite"
4968
- }, qo = /* @__PURE__ */ u({
4984
+ }, Ko = /* @__PURE__ */ u({
4969
4985
  inheritAttrs: !1,
4970
4986
  __name: "GTextarea",
4971
4987
  props: /*@__PURE__*/ m({
@@ -4999,7 +5015,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
4999
5015
  }),
5000
5016
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
5001
5017
  setup(e, { emit: t }) {
5002
- let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = pe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: v, hasErrors: y } = $({
5018
+ let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = fe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: v, hasErrors: y } = Ae({
5003
5019
  name: n.name,
5004
5020
  value: i,
5005
5021
  errors: I(n, "errors"),
@@ -5039,12 +5055,12 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
5039
5055
  key: 0,
5040
5056
  for: m.value,
5041
5057
  class: "g-textarea-label"
5042
- }, [c(P(n.label), 1), n.required ? (w(), o("span", Uo, " *")) : a("", !0)], 8, Ho)) : a("", !0),
5058
+ }, [c(P(n.label), 1), n.required ? (w(), o("span", Ho, " *")) : a("", !0)], 8, Vo)) : a("", !0),
5043
5059
  t.$slots.instructions || e.instructions ? (w(), o("div", {
5044
5060
  key: 1,
5045
5061
  id: "instructions-" + R(u),
5046
5062
  class: "g-textarea-instructions"
5047
- }, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, Wo)) : a("", !0),
5063
+ }, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, Uo)) : a("", !0),
5048
5064
  s("textarea", h({
5049
5065
  ref: "textareaEl",
5050
5066
  value: i.value ?? "",
@@ -5065,15 +5081,15 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
5065
5081
  onInput: T,
5066
5082
  onBlur: E,
5067
5083
  onPaste: D
5068
- }), null, 16, Go),
5069
- n.maxlength === void 0 ? a("", !0) : (w(), o("div", Ko, P((i.value ?? "").length) + " / " + P(n.maxlength), 1)),
5084
+ }), null, 16, Wo),
5085
+ n.maxlength === void 0 ? a("", !0) : (w(), o("div", Go, P((i.value ?? "").length) + " / " + P(n.maxlength), 1)),
5070
5086
  l(Me, {
5071
5087
  errors: R(v),
5072
5088
  id: "error-message-" + R(u)
5073
5089
  }, null, 8, ["errors", "id"])
5074
5090
  ], 2));
5075
5091
  }
5076
- }), Jo = { class: "g-toggle-wrapper" }, Yo = ["for"], Xo = [
5092
+ }), qo = { class: "g-toggle-wrapper" }, Jo = ["for"], Yo = [
5077
5093
  "id",
5078
5094
  "checked",
5079
5095
  "disabled",
@@ -5081,7 +5097,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
5081
5097
  "aria-describedby",
5082
5098
  "aria-invalid",
5083
5099
  "aria-errormessage"
5084
- ], Zo = ["id"], Qo = /* @__PURE__ */ u({
5100
+ ], Xo = ["id"], Zo = /* @__PURE__ */ u({
5085
5101
  __name: "GToggle",
5086
5102
  props: /*@__PURE__*/ m({
5087
5103
  label: {},
@@ -5116,11 +5132,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
5116
5132
  n.disabled || (e.key === "n" || e.key === "N" || e.key === "ArrowLeft" ? (l(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y" || e.key === "ArrowRight") && (l(!0), e.preventDefault()));
5117
5133
  }
5118
5134
  let p = B(), m = B();
5119
- return (t, n) => (w(), o("div", Jo, [s("div", { class: _(["g-toggle-control", { "g-external-label": e.externalLabel }]) }, [e.externalLabel ? a("", !0) : (w(), o("label", {
5135
+ return (t, n) => (w(), o("div", qo, [s("div", { class: _(["g-toggle-control", { "g-external-label": e.externalLabel }]) }, [e.externalLabel ? a("", !0) : (w(), o("label", {
5120
5136
  key: 0,
5121
5137
  class: "g-label",
5122
5138
  for: R(m)
5123
- }, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, Yo)), s("div", { class: _(["g-toggle", { "g-has-error": e.error }]) }, [s("div", { class: _(["g-toggle-track", [r.value ? "g-right" : "g-left", { "g-disabled": e.disabled }]]) }, [s("span", {
5139
+ }, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, Jo)), s("div", { class: _(["g-toggle", { "g-has-error": e.error }]) }, [s("div", { class: _(["g-toggle-track", [r.value ? "g-right" : "g-left", { "g-disabled": e.disabled }]]) }, [s("span", {
5124
5140
  class: _(["g-toggle-thumb", r.value ? "g-right" : "g-left"]),
5125
5141
  "aria-hidden": "true"
5126
5142
  }, null, 2), s("input", {
@@ -5134,34 +5150,34 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
5134
5150
  "aria-errormessage": e.error ? R(p) + "-error" : void 0,
5135
5151
  onChange: d,
5136
5152
  onKeydown: f
5137
- }, null, 40, Xo)], 2)], 2)], 2), e.error ? (w(), o("div", {
5153
+ }, null, 40, Yo)], 2)], 2)], 2), e.error ? (w(), o("div", {
5138
5154
  key: 0,
5139
5155
  id: `${R(p)}-error`,
5140
5156
  class: "g-form-error",
5141
5157
  role: "alert",
5142
5158
  "aria-atomic": "true"
5143
- }, P(e.error), 9, Zo)) : a("", !0)]));
5159
+ }, P(e.error), 9, Xo)) : a("", !0)]));
5144
5160
  }
5145
- }), $o = "g-route-announcer";
5146
- function es(e) {
5161
+ }), Qo = "g-route-announcer";
5162
+ function $o(e) {
5147
5163
  return document.getElementById(e) ?? document.querySelector("main");
5148
5164
  }
5149
- function ts(e = "main-content", t = !0) {
5165
+ function es(e = "main-content", t = !0) {
5150
5166
  if (typeof document > "u") return !1;
5151
- let n = es(e);
5167
+ let n = $o(e);
5152
5168
  if (!n) return !1;
5153
5169
  let r = t ? n.querySelector("h1") : null;
5154
5170
  for (let e of [r, n]) if (e && (e.hasAttribute("tabindex") || e.setAttribute("tabindex", "-1"), e.focus({ preventScroll: t }), document.activeElement === e)) return !0;
5155
5171
  return !1;
5156
5172
  }
5157
- function ns() {
5158
- let e = document.getElementById($o);
5173
+ function ts() {
5174
+ let e = document.getElementById(Qo);
5159
5175
  if (e) return {
5160
5176
  el: e,
5161
5177
  created: !1
5162
5178
  };
5163
5179
  let t = document.createElement("div");
5164
- return t.id = $o, t.setAttribute("aria-live", "polite"), t.setAttribute("aria-atomic", "true"), Object.assign(t.style, {
5180
+ return t.id = Qo, t.setAttribute("aria-live", "polite"), t.setAttribute("aria-atomic", "true"), Object.assign(t.style, {
5165
5181
  position: "absolute",
5166
5182
  width: "1px",
5167
5183
  height: "1px",
@@ -5176,10 +5192,10 @@ function ns() {
5176
5192
  created: !0
5177
5193
  };
5178
5194
  }
5179
- function rs() {
5195
+ function ns() {
5180
5196
  return new Promise((e) => requestAnimationFrame(() => e()));
5181
5197
  }
5182
- function is(e, t = {}) {
5198
+ function rs(e, t = {}) {
5183
5199
  let n = O(""), { mainId: r = "main-content", isNewPage: i = (e, t) => e.path !== t.path, focus: a = !0, ready: o, message: s = (e, t) => t ? `Navigated to ${t}` : "" } = t;
5184
5200
  if (typeof window > "u") return {
5185
5201
  message: D(n),
@@ -5188,7 +5204,7 @@ function is(e, t = {}) {
5188
5204
  };
5189
5205
  let c = null, l, u = 0;
5190
5206
  function d(e) {
5191
- n.value = e, c ??= ns();
5207
+ n.value = e, c ??= ts();
5192
5208
  let t = c.el;
5193
5209
  t.textContent = "", clearTimeout(l), l = setTimeout(() => {
5194
5210
  t.textContent = e;
@@ -5197,9 +5213,9 @@ function is(e, t = {}) {
5197
5213
  let p = e.afterEach(async (e, t, n) => {
5198
5214
  if (n || !t.matched?.length || !i(e, t)) return;
5199
5215
  let c = ++u, l = document.activeElement;
5200
- if (await g(), await rs(), o && (await o(e, t), await g(), await rs()), c !== u) return;
5201
- let f = typeof a == "function" ? a(e, t) : a, p = document.activeElement, m = !!p && p !== l && !!es(r)?.contains(p);
5202
- f && !e.hash && !m && ts(r);
5216
+ if (await g(), await ns(), o && (await o(e, t), await g(), await ns()), c !== u) return;
5217
+ let f = typeof a == "function" ? a(e, t) : a, p = document.activeElement, m = !!p && p !== l && !!$o(r)?.contains(p);
5218
+ f && !e.hash && !m && es(r);
5203
5219
  let h = s(e, document.title);
5204
5220
  h && d(h);
5205
5221
  });
@@ -5214,7 +5230,7 @@ function is(e, t = {}) {
5214
5230
  }
5215
5231
  //#endregion
5216
5232
  //#region src/components/GSkipLink.vue?vue&type=script&setup=true&lang.ts
5217
- var as = ["href"], os = /*@__PURE__*/ u({
5233
+ var is = ["href"], as = /*@__PURE__*/ u({
5218
5234
  __name: "GSkipLink",
5219
5235
  props: {
5220
5236
  target: { default: "main-content" },
@@ -5223,19 +5239,19 @@ var as = ["href"], os = /*@__PURE__*/ u({
5223
5239
  setup(e) {
5224
5240
  let t = e;
5225
5241
  function n(e) {
5226
- ts(t.target, !1) && e.preventDefault();
5242
+ es(t.target, !1) && e.preventDefault();
5227
5243
  }
5228
5244
  return (e, r) => (w(), o("a", {
5229
5245
  class: "g-skip-link",
5230
5246
  href: `#${t.target}`,
5231
5247
  onClick: n
5232
- }, [A(e.$slots, "default", {}, () => [c(P(t.label), 1)], !0)], 8, as));
5248
+ }, [A(e.$slots, "default", {}, () => [c(P(t.label), 1)], !0)], 8, is));
5233
5249
  }
5234
- }), ss = (e, t) => {
5250
+ }), os = (e, t) => {
5235
5251
  let n = e.__vccOpts || e;
5236
5252
  for (let [e, r] of t) n[e] = r;
5237
5253
  return n;
5238
- }, cs = /*#__PURE__*/ ss(os, [["__scopeId", "data-v-1d350630"]]), ls = ["id"], us = /*#__PURE__*/ ss(/* @__PURE__ */ u({
5254
+ }, ss = /*#__PURE__*/ os(as, [["__scopeId", "data-v-1d350630"]]), cs = ["id"], ls = /*#__PURE__*/ os(/* @__PURE__ */ u({
5239
5255
  __name: "GMain",
5240
5256
  props: { id: { default: "main-content" } },
5241
5257
  setup(e) {
@@ -5244,30 +5260,30 @@ var as = ["href"], os = /*@__PURE__*/ u({
5244
5260
  id: t.id,
5245
5261
  class: "g-main",
5246
5262
  tabindex: "-1"
5247
- }, [A(e.$slots, "default", {}, void 0, !0)], 8, ls));
5263
+ }, [A(e.$slots, "default", {}, void 0, !0)], 8, cs));
5248
5264
  }
5249
5265
  }), [["__scopeId", "data-v-84dc2f3f"]]);
5250
5266
  //#endregion
5251
5267
  //#region src/compose/useActiveLink.ts
5252
- function ds(e, t, n) {
5268
+ function us(e, t, n) {
5253
5269
  let r = [
5254
5270
  0,
5255
5271
  .25,
5256
5272
  .5,
5257
5273
  .75,
5258
5274
  1
5259
- ], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = O(Array.from(J(e)?.children || [])), s = () => {
5260
- let t = Array.from(J(e)?.children || []), n = new Set(t);
5275
+ ], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = O(Array.from(Y(e)?.children || [])), s = () => {
5276
+ let t = Array.from(Y(e)?.children || []), n = new Set(t);
5261
5277
  for (let e of a.keys()) n.has(e) || a.delete(e);
5262
5278
  o.value = t;
5263
5279
  };
5264
- W(() => J(e), () => {
5280
+ W(() => Y(e), () => {
5265
5281
  s();
5266
5282
  }, {
5267
5283
  immediate: !0,
5268
5284
  flush: "post"
5269
- }), ce(e, s, { childList: !0 });
5270
- let { stop: c } = Z(o, (e) => {
5285
+ }), Q(e, s, { childList: !0 });
5286
+ let { stop: c } = ae(o, (e) => {
5271
5287
  let t = o.value[o.value.length - 1];
5272
5288
  for (let n of e) a.set(n.target, n.isIntersecting ? Math.ceil(100 * n.intersectionRatio) / 100 : 0), n.target === t && n.intersectionRatio === 1 && a.set(n.target, Infinity);
5273
5289
  let r = null, i = 0;
@@ -5286,7 +5302,7 @@ function ds(e, t, n) {
5286
5302
  }
5287
5303
  //#endregion
5288
5304
  //#region src/compose/useSidebar.ts
5289
- function fs(e = "(max-width: 800px)") {
5305
+ function ds(e = "(max-width: 800px)") {
5290
5306
  let t = B(), n = O(!1), r = se(e, { ssrWidth: 1e3 });
5291
5307
  function i(e) {
5292
5308
  if (!r.value || !n.value) return;
@@ -5317,41 +5333,41 @@ function fs(e = "(max-width: 800px)") {
5317
5333
  }
5318
5334
  //#endregion
5319
5335
  //#region src/compose/usePaging.ts
5320
- function ps(e) {
5336
+ function fs(e) {
5321
5337
  let t = /* @__PURE__ */ new Set();
5322
5338
  return (e ?? []).filter((e) => !e?.key || t.has(e.key) || e.order !== 1 && e.order !== -1 ? !1 : (t.add(e.key), !0));
5323
5339
  }
5324
- function ms(e) {
5325
- return e == null ? [] : ps((typeof e == "string" ? e.split(",") : e).filter((e) => e !== null).map((e) => e.trim()).filter(Boolean).map((e) => ({
5340
+ function ps(e) {
5341
+ return e == null ? [] : fs((typeof e == "string" ? e.split(",") : e).filter((e) => e !== null).map((e) => e.trim()).filter(Boolean).map((e) => ({
5326
5342
  key: e.replace(/^-/, ""),
5327
5343
  order: e.startsWith("-") ? -1 : 1
5328
5344
  })));
5329
5345
  }
5330
- function hs(e) {
5331
- let t = ps(e);
5346
+ function ms(e) {
5347
+ let t = fs(e);
5332
5348
  if (t.length !== 0) return t.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`);
5333
5349
  }
5334
- function gs(e, t = []) {
5335
- let n = ps(e);
5350
+ function hs(e, t = []) {
5351
+ let n = fs(e);
5336
5352
  if (n.length === 0) return;
5337
5353
  let r = n.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`), i = new Set(n.map(({ key: e }) => String(e))), a = n.length === 1 && n[0].order === -1 ? "-" : "";
5338
5354
  return t.forEach((e) => {
5339
5355
  i.has(e) || r.push(`${a}${e}`);
5340
5356
  }), r.join(",");
5341
5357
  }
5342
- function _s(e) {
5358
+ function gs(e) {
5343
5359
  return Array.isArray(e) ? [...e] : e;
5344
5360
  }
5345
- function vs(e, t) {
5361
+ function _s(e, t) {
5346
5362
  return Array.isArray(e) || Array.isArray(t) ? !Array.isArray(e) || !Array.isArray(t) ? !1 : e.length === t.length && e.every((e, n) => e === t[n]) : e === t;
5347
5363
  }
5348
- function ys(e, t) {
5364
+ function vs(e, t) {
5349
5365
  return e.length === t.length && e.every((e, n) => {
5350
5366
  let r = t[n];
5351
5367
  return e.key === r?.key && e.order === r?.order;
5352
5368
  });
5353
5369
  }
5354
- function bs(e, t) {
5370
+ function ys(e, t) {
5355
5371
  if (typeof e == "string") return Number(e);
5356
5372
  if (Array.isArray(e)) {
5357
5373
  let n = e.find((e) => e !== null);
@@ -5359,35 +5375,35 @@ function bs(e, t) {
5359
5375
  }
5360
5376
  return t;
5361
5377
  }
5362
- function xs(e = {}) {
5378
+ function bs(e = {}) {
5363
5379
  let t = e.defaultPageSize ?? 50, n = e.defaultPageOffset ?? 0, i = e.sortKey ?? "sort", a = e.pageSizeKey ?? "pageSize", o = e.pageOffsetKey ?? "pageOffset", s = N([]), c = O(t), l = O(n);
5364
5380
  return e.route && e.router && (W(() => e.route?.query[i], (e) => {
5365
- let t = ms(e);
5366
- ys(s.value, t) || (s.value = t);
5381
+ let t = ps(e);
5382
+ vs(s.value, t) || (s.value = t);
5367
5383
  }, { immediate: !0 }), W(() => e.route?.query[a], (e) => {
5368
- let n = bs(e, t);
5384
+ let n = ys(e, t);
5369
5385
  c.value !== n && (c.value = n);
5370
5386
  }, { immediate: !0 }), W(() => e.route?.query[o], (e) => {
5371
- let t = bs(e, n);
5387
+ let t = ys(e, n);
5372
5388
  l.value !== t && (l.value = t);
5373
5389
  }, { immediate: !0 }), W([
5374
5390
  s,
5375
5391
  c,
5376
5392
  l
5377
5393
  ], ([r, s, c]) => {
5378
- let l = { ...e.route.query }, u = hs(r);
5379
- u === void 0 ? delete l[i] : l[i] = _s(u), s === t || s === void 0 ? delete l[a] : l[a] = String(s), c === n || c === void 0 ? delete l[o] : l[o] = String(c);
5394
+ let l = { ...e.route.query }, u = ms(r);
5395
+ u === void 0 ? delete l[i] : l[i] = gs(u), s === t || s === void 0 ? delete l[a] : l[a] = String(s), c === n || c === void 0 ? delete l[o] : l[o] = String(c);
5380
5396
  let d = /* @__PURE__ */ new Set([...Object.keys(e.route.query), ...Object.keys(l)]), f = !1;
5381
- for (let t of d) if (!vs(e.route.query[t], l[t])) {
5397
+ for (let t of d) if (!_s(e.route.query[t], l[t])) {
5382
5398
  f = !0;
5383
5399
  break;
5384
5400
  }
5385
5401
  f && e.router.replace({ query: l });
5386
5402
  })), {
5387
5403
  sort: r({
5388
- get: () => ps(s.value),
5404
+ get: () => fs(s.value),
5389
5405
  set: (e) => {
5390
- s.value = ps(e);
5406
+ s.value = fs(e);
5391
5407
  }
5392
5408
  }),
5393
5409
  pageSize: c,
@@ -5396,7 +5412,7 @@ function xs(e = {}) {
5396
5412
  }
5397
5413
  //#endregion
5398
5414
  //#region src/compose/useTableChanges.ts
5399
- function Ss() {
5415
+ function xs() {
5400
5416
  let e = M(/* @__PURE__ */ new Map()), t = ne(), n = (n) => {
5401
5417
  let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
5402
5418
  e.has(i) || e.set(i, M(/* @__PURE__ */ new Map()));
@@ -5500,7 +5516,7 @@ function Ss() {
5500
5516
  }
5501
5517
  //#endregion
5502
5518
  //#region src/compose/usePersistentTableColumnState.ts
5503
- function Cs(e, t) {
5519
+ function Ss(e, t) {
5504
5520
  if (!e || typeof e != "object" || Array.isArray(e)) return {};
5505
5521
  let n = new Set(t.map(({ key: e }) => String(e))), r = {};
5506
5522
  for (let [t, i] of Object.entries(e)) {
@@ -5510,13 +5526,13 @@ function Cs(e, t) {
5510
5526
  }
5511
5527
  return r;
5512
5528
  }
5513
- function ws(e, t) {
5529
+ function Cs(e, t) {
5514
5530
  let n = oe(e, {});
5515
5531
  return W(() => L(t).map(({ key: e }) => String(e)), () => {
5516
- n.value = Cs(n.value, L(t));
5532
+ n.value = Ss(n.value, L(t));
5517
5533
  }, { immediate: !0 }), { columnState: n };
5518
5534
  }
5519
5535
  //#endregion
5520
- export { pn as $, Ya as A, Ri as B, xo as C, oo as D, co as E, ji as F, Zn as G, Yr as H, xi as I, kn as J, In as K, Mi as L, Ai as M, bi as N, no as O, Fi as P, xn as Q, Ii as R, So as S, po as T, Rr as U, Li as V, fr as W, wn as X, On as Y, Sn as Z, Bo as _, De as _t, ms as a, Ct as at, Ao as b, Q as bt, fs as c, rt as ct, cs as d, qe as dt, cn as et, ts as f, Je as ft, Vo as g, Oe as gt, qo as h, Ae as ht, ps as i, Ot as it, Si as j, to as k, ds as l, nt as lt, Qo as m, $ as mt, Ss as n, Jt as nt, hs as o, gt as ot, is as p, ze as pt, jn as q, gs as r, Pt as rt, xs as s, ct as st, ws as t, an as tt, us as u, tt as ut, Ro as v, xe as vt, go as w, Co as x, jo as y, be as yt, Ci as z };
5536
+ export { pn as $, Ja as A, Ri as B, bo as C, ao as D, so as E, ji as F, Zn as G, Yr as H, xi as I, kn as J, In as K, Mi as L, Ai as M, bi as N, to as O, Fi as P, xn as Q, Ii as R, xo as S, fo as T, Rr as U, Li as V, fr as W, wn as X, On as Y, Sn as Z, zo as _, Ee as _t, ps as a, Ct as at, ko as b, $ as bt, ds as c, rt as ct, ss as d, qe as dt, cn as et, es as f, Je as ft, Bo as g, De as gt, Ko as h, ke as ht, fs as i, Ot as it, Si as j, eo as k, us as l, nt as lt, Zo as m, Ae as mt, xs as n, Jt as nt, ms as o, gt as ot, rs as p, ze as pt, jn as q, hs as r, Pt as rt, bs as s, ct as st, Cs as t, an as tt, ls as u, tt as ut, Lo as v, be as vt, ho as w, So as x, Ao as y, ye as yt, Ci as z };
5521
5537
 
5522
- //# sourceMappingURL=grad-vue-DLfX6V2j.js.map
5538
+ //# sourceMappingURL=grad-vue-B8FlsuZs.js.map