@illinois-grad/grad-vue 7.2.7 → 7.2.9

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 oe, useLocalStorage as se, useMediaQuery as ce, useMutationObserver as Z, 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 Y, unrefElement as X, useClipboard as re, useDebounceFn as ie, useEventListener as Z, useFocusWithin as ae, useIntersectionObserver as oe, useIntervalFn as se, useLocalStorage as Q, useMediaQuery as ce, useMutationObserver as le, useResizeObserver as ue, useSessionStorage as de } from "@vueuse/core";
3
+ import { createFocusTrap as fe } from "focus-trap";
4
4
  // src/compose/useCustomElementAttrs.ts
5
- function fe() {
5
+ function pe() {
6
6
  return globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0;
7
7
  }
8
- function pe(e = {}) {
8
+ function me(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,
@@ -19,7 +19,7 @@ function pe(e = {}) {
19
19
  };
20
20
  }
21
21
  // src/components/GButton.vue?vue&type=script&setup=true&lang.ts
22
- var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PURE__ */ u({
22
+ var he = { class: "g-btn--icon" }, ge = { class: "g-btn--label" }, $ = /* @__PURE__ */ u({
23
23
  inheritAttrs: !1,
24
24
  __name: "GButton",
25
25
  props: {
@@ -54,7 +54,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
54
54
  "mouseleave"
55
55
  ],
56
56
  setup(t, { emit: n }) {
57
- let a = t, c = H(), l = n, { forwardedAttrs: u } = pe({ omitInCustomElement: ["id"] }), d = r(() => [
57
+ let a = t, c = H(), l = n, { forwardedAttrs: u } = me({ omitInCustomElement: ["id"] }), d = r(() => [
58
58
  "g-btn",
59
59
  `g-btn--${a.size}`,
60
60
  `g-btn--${a.theme}`,
@@ -88,11 +88,11 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
88
88
  onMouseenter: r[6] ||= (e) => n.$emit("mouseenter", e),
89
89
  onMouseleave: r[7] ||= (e) => n.$emit("mouseleave", e)
90
90
  }), {
91
- 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", {
91
+ default: K(() => [t.icon || c.icon ? (w(), o(e, { key: 0 }, [s("span", he, [c.icon ? A(n.$slots, "icon", {}, void 0, void 0, 0) : (w(), o("span", {
92
92
  key: 1,
93
93
  class: _(t.icon + " g-btn--icon-span"),
94
94
  "aria-hidden": "true"
95
- }, null, 2))]), s("span", he, [A(n.$slots, "default")])], 64)) : A(n.$slots, "default", {}, void 0, void 0, 1)]),
95
+ }, null, 2))]), s("span", ge, [A(n.$slots, "default")])], 64)) : A(n.$slots, "default", {}, void 0, void 0, 1)]),
96
96
  _: 3
97
97
  }, 16, [
98
98
  "to",
@@ -102,13 +102,13 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
102
102
  "aria-disabled"
103
103
  ]));
104
104
  }
105
- }), ge = { class: "g-tree-menu__divider" }, _e = {
105
+ }), _e = { class: "g-tree-menu__divider" }, ve = {
106
106
  key: 0,
107
107
  class: "g-tree-menu__divider-line"
108
- }, ve = {
108
+ }, ye = {
109
109
  key: 1,
110
110
  class: "g-tree-menu__expand-all-wrapper"
111
- }, ye = { class: "g-tree-menu__content" }, be = /* @__PURE__ */ u({
111
+ }, be = { class: "g-tree-menu__content" }, xe = /* @__PURE__ */ u({
112
112
  __name: "GTreeMenu",
113
113
  props: {
114
114
  heading: {},
@@ -128,7 +128,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
128
128
  setup(e) {
129
129
  let t = e, n = H(), l = d(), u = B(), f = (l?.ce)?._slots?.heading?.length > 0, p = r(() => !!t.heading || !!n.heading || f);
130
130
  T("g-tree-menu-list-type", t.listType);
131
- let m = t.storageKey ? ue(t.storageKey, {}) : null;
131
+ let m = t.storageKey ? de(t.storageKey, {}) : null;
132
132
  T("g-tree-menu-expanded-storage", m);
133
133
  let g = E(/* @__PURE__ */ new Map());
134
134
  T("g-tree-menu-expandable-items", g);
@@ -161,7 +161,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
161
161
  default: K(() => [A(n.$slots, "heading", {}, () => [c(P(e.heading), 1)])]),
162
162
  _: 3
163
163
  }, 8, ["id"])) : a("", !0),
164
- s("div", ge, [e.smallHeading ? a("", !0) : (w(), o("div", _e)), e.showExpandAll ? (w(), o("div", ve, [s("button", {
164
+ s("div", _e, [e.smallHeading ? a("", !0) : (w(), o("div", ve)), e.showExpandAll ? (w(), o("div", ye, [s("button", {
165
165
  class: "g-tree-menu__expand-all-btn",
166
166
  onClick: b
167
167
  }, [(w(), o("svg", {
@@ -174,14 +174,14 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
174
174
  "stroke-linecap": "round",
175
175
  "stroke-linejoin": "round"
176
176
  }, [...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)]),
177
- s("div", ye, [A(n.$slots, "default")])
177
+ s("div", be, [A(n.$slots, "default")])
178
178
  ], 16));
179
179
  }
180
- }), xe = /* @__PURE__ */ u({
180
+ }), Se = /* @__PURE__ */ u({
181
181
  name: "GTreeMenuList",
182
182
  props: { listType: { default: void 0 } },
183
183
  setup(e) {
184
- let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o = fe(), s = d();
184
+ let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o = pe(), s = d();
185
185
  return x(() => {
186
186
  if (!o) return;
187
187
  let e = s?.ce;
@@ -194,20 +194,20 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
194
194
  _: 3
195
195
  }, 8, ["role"]));
196
196
  }
197
- }), Se = {
197
+ }), Ce = {
198
198
  key: 0,
199
199
  class: "g-tree-menu__row"
200
- }, Ce = { class: "g-tree-menu__row-content-text" }, we = [
200
+ }, we = { class: "g-tree-menu__row-content-text" }, Te = [
201
201
  "aria-controls",
202
202
  "aria-expanded",
203
203
  "aria-label"
204
- ], Te = {
204
+ ], Ee = {
205
205
  key: 1,
206
206
  class: "g-tree-menu__row g-tree-menu__row--leaf"
207
- }, Ee = {
207
+ }, De = {
208
208
  class: "g-tree-menu__row-content",
209
209
  "data-tree-primary": ""
210
- }, De = /* @__PURE__ */ u({
210
+ }, Oe = /* @__PURE__ */ u({
211
211
  name: "GTreeMenuItem",
212
212
  inheritAttrs: !1,
213
213
  props: {
@@ -258,7 +258,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
258
258
  function F(e) {
259
259
  e.target.closest("a, button") || T();
260
260
  }
261
- let I = fe(), L = u?.ce;
261
+ let I = pe(), L = u?.ce;
262
262
  x(() => {
263
263
  I && L && L.setAttribute("role", "listitem");
264
264
  });
@@ -272,11 +272,11 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
272
272
  class: "g-tree-menu__item",
273
273
  "data-tree-expandable": g.value ? "true" : void 0
274
274
  }), {
275
- default: K(() => [g.value ? (w(), o("div", Se, [s("span", {
275
+ default: K(() => [g.value ? (w(), o("div", Ce, [s("span", {
276
276
  class: "g-tree-menu__row-content",
277
277
  "data-tree-primary": "",
278
278
  onClick: F
279
- }, [s("span", Ce, [A(e.$slots, "default")])]), s("button", {
279
+ }, [s("span", we, [A(e.$slots, "default")])]), s("button", {
280
280
  type: "button",
281
281
  class: "g-tree-menu__toggle-btn",
282
282
  "aria-controls": R(f) + "-children",
@@ -294,7 +294,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
294
294
  "stroke-width": "2.5",
295
295
  "stroke-linecap": "round",
296
296
  "stroke-linejoin": "round"
297
- }, [...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, {
297
+ }, [...t[0] ||= [s("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))], 8, Te)])) : (w(), o("div", Ee, [t[1] ||= s("span", { class: "g-tree-menu__spacer" }, null, -1), s("span", De, [A(e.$slots, "default")])])), g.value && C.value ? (w(), i(Se, {
298
298
  key: 2,
299
299
  id: R(f) + "-children"
300
300
  }, {
@@ -306,7 +306,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
306
306
  }
307
307
  });
308
308
  // src/compose/useForm.ts
309
- function Oe() {
309
+ function ke() {
310
310
  let e = M({}), t = O(!1), n = r(() => {
311
311
  let t = {};
312
312
  return Object.entries(e).forEach(([e, n]) => {
@@ -347,17 +347,17 @@ function Oe() {
347
347
  };
348
348
  }
349
349
  // src/compose/useWebComponentForm.ts
350
- function ke() {
350
+ function Ae() {
351
351
  let e = globalThis;
352
352
  return e.__GRAD_VUE_WC_FORMS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_FORMS__;
353
353
  }
354
- function Ae(e = "default") {
355
- let t = ke(), n = e || "default";
356
- return t.has(n) || t.set(n, Oe()), t.get(n);
354
+ function je(e = "default") {
355
+ let t = Ae(), n = e || "default";
356
+ return t.has(n) || t.set(n, ke()), t.get(n);
357
357
  }
358
358
  // src/compose/useFormField.ts
359
- function $(e) {
360
- 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(() => {
359
+ function Me(e) {
360
+ let t = z(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (pe() ? je(i) : null), o = r(() => {
361
361
  let t = [];
362
362
  return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
363
363
  }), s = r(() => o.value.length > 0), c = e.name;
@@ -375,7 +375,7 @@ function $(e) {
375
375
  };
376
376
  }
377
377
  // src/components/form/GFormErrorMessages.vue?vue&type=script&setup=true&lang.ts
378
- var je = ["id"], Me = /* @__PURE__ */ u({
378
+ var Ne = ["id"], Pe = /* @__PURE__ */ u({
379
379
  __name: "GFormErrorMessages",
380
380
  props: {
381
381
  errors: {},
@@ -398,25 +398,25 @@ var je = ["id"], Me = /* @__PURE__ */ u({
398
398
  }, [s("path", {
399
399
  fill: "currentColor",
400
400
  d: "M320 64C334.7 64 348.2 72.1 355.2 85L571.2 485C577.9 497.4 577.6 512.4 570.4 524.5C563.2 536.6 550.1 544 536 544L104 544C89.9 544 76.8 536.6 69.6 524.5C62.4 512.4 62.1 497.4 68.8 485L284.8 85C291.8 72.1 305.3 64 320 64zM320 416C302.3 416 288 430.3 288 448C288 465.7 302.3 480 320 480C337.7 480 352 465.7 352 448C352 430.3 337.7 416 320 416zM320 224C301.8 224 287.3 239.5 288.6 257.7L296 361.7C296.9 374.2 307.4 384 319.9 384C332.5 384 342.9 374.3 343.8 361.7L351.2 257.7C352.5 239.5 338.1 224 319.8 224z"
401
- })], -1), c(" " + P(e), 1)]))), 128))], 8, je)) : a("", !0);
401
+ })], -1), c(" " + P(e), 1)]))), 128))], 8, Ne)) : a("", !0);
402
402
  }
403
- }), Ne = ["for"], Pe = {
403
+ }), Fe = ["for"], Ie = {
404
404
  key: 0,
405
405
  class: "g-text-input-required",
406
406
  "aria-hidden": "true"
407
- }, Fe = ["id"], Ie = {
407
+ }, Le = ["id"], Re = {
408
408
  key: 0,
409
409
  class: "g-text-input-prefix"
410
- }, Le = [
410
+ }, ze = [
411
411
  "value",
412
412
  "placeholder",
413
413
  "disabled",
414
414
  "required",
415
415
  "aria-invalid"
416
- ], Re = {
416
+ ], Be = {
417
417
  key: 1,
418
418
  class: "g-text-input-suffix"
419
- }, ze = /* @__PURE__ */ u({
419
+ }, Ve = /* @__PURE__ */ u({
420
420
  inheritAttrs: !1,
421
421
  __name: "GTextInput",
422
422
  props: /*@__PURE__*/ m({
@@ -443,7 +443,7 @@ var je = ["id"], Me = /* @__PURE__ */ u({
443
443
  }),
444
444
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
445
445
  setup(e, { emit: t }) {
446
- 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 } = $({
446
+ let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = me({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: g, hasErrors: v } = Me({
447
447
  name: n.name,
448
448
  value: i,
449
449
  errors: I(n, "errors"),
@@ -481,14 +481,14 @@ var je = ["id"], Me = /* @__PURE__ */ u({
481
481
  key: 0,
482
482
  for: m.value,
483
483
  class: "g-text-input-label"
484
- }, [c(P(n.label), 1), n.required ? (w(), o("span", Pe, " *")) : a("", !0)], 8, Ne)) : a("", !0),
484
+ }, [c(P(n.label), 1), n.required ? (w(), o("span", Ie, " *")) : a("", !0)], 8, Fe)) : a("", !0),
485
485
  t.$slots.instructions || e.instructions ? (w(), o("div", {
486
486
  key: 1,
487
487
  id: "instructions-" + R(u),
488
488
  class: "g-text-input-instructions"
489
- }, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, Fe)) : a("", !0),
489
+ }, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, Le)) : a("", !0),
490
490
  s("div", { class: _([{ "g-text-input-field-wrapper": !0 }, `g-text-input-field-wrapper--${e.name || "nameless"}`]) }, [
491
- n.prefix ? (w(), o("span", Ie, P(n.prefix), 1)) : a("", !0),
491
+ n.prefix ? (w(), o("span", Re, P(n.prefix), 1)) : a("", !0),
492
492
  s("input", h({
493
493
  value: i.value,
494
494
  placeholder: n.placeholder,
@@ -505,39 +505,39 @@ var je = ["id"], Me = /* @__PURE__ */ u({
505
505
  id: m.value,
506
506
  "aria-describedby": t.$slots.instructions || e.instructions ? "instructions-" + R(u) : void 0,
507
507
  "aria-errormessage": R(v) ? "error-message-" + R(u) : void 0
508
- }, { "aria-invalid": R(v) ? "true" : "false" }), null, 16, Le),
509
- n.suffix ? (w(), o("span", Re, P(n.suffix), 1)) : a("", !0)
508
+ }, { "aria-invalid": R(v) ? "true" : "false" }), null, 16, ze),
509
+ n.suffix ? (w(), o("span", Be, P(n.suffix), 1)) : a("", !0)
510
510
  ], 2),
511
- l(Me, {
511
+ l(Pe, {
512
512
  errors: R(g),
513
513
  id: "error-message-" + R(u)
514
514
  }, null, 8, ["errors", "id"])
515
515
  ], 2));
516
516
  }
517
- }), Be = 100, Ve = 200, He = 102, Ue = O([]), We = O([]), Ge = O([]);
518
- function Ke() {
517
+ }), He = 100, Ue = 200, We = 102, Ge = O([]), Ke = O([]), qe = O([]);
518
+ function Je() {
519
519
  if (typeof document < "u") {
520
- if (Ge.value.length > 0) {
520
+ if (qe.value.length > 0) {
521
521
  let e = window.innerWidth - document.documentElement.clientWidth;
522
522
  document.body.classList.add("g-scroll-lock"), document.body.style.paddingRight = `${e}px`, document.body.style.setProperty("--g-scrollbar-width", `${e}px`);
523
523
  } else document.body.style.paddingRight = "0", document.body.classList.remove("g-scroll-lock"), document.body.style.removeProperty("--g-scrollbar-width");
524
524
  }
525
525
  }
526
- function qe(e, t = !1, n = !1) {
526
+ function Ye(e, t = !1, n = !1) {
527
527
  if (typeof document > "u") return {};
528
- let i = t ? We : Ue;
528
+ let i = t ? Ke : Ge;
529
529
  function a() {
530
- i.value.push(e), n && !Ge.value.includes(e) && (Ge.value.push(e), Ke());
530
+ i.value.push(e), n && !qe.value.includes(e) && (qe.value.push(e), Je());
531
531
  }
532
532
  function o() {
533
533
  let t = i.value.lastIndexOf(e);
534
534
  t !== -1 && i.value.splice(t, 1);
535
- let n = Ge.value.lastIndexOf(e);
536
- n !== -1 && (Ge.value.splice(n, 1), Ke());
535
+ let n = qe.value.lastIndexOf(e);
536
+ n !== -1 && (qe.value.splice(n, 1), Je());
537
537
  }
538
- let s = r(() => !t && We.value.length > 0 ? !1 : i.value.length > 0 && i.value[i.value.length - 1] === e), c = r(() => {
538
+ let s = r(() => !t && Ke.value.length > 0 ? !1 : i.value.length > 0 && i.value[i.value.length - 1] === e), c = r(() => {
539
539
  let n = i.value.indexOf(e);
540
- return n === -1 ? 0 : (t ? Ve : Be) + n;
540
+ return n === -1 ? 0 : (t ? Ue : He) + n;
541
541
  });
542
542
  return b(o), {
543
543
  push: a,
@@ -546,39 +546,39 @@ function qe(e, t = !1, n = !1) {
546
546
  zIndex: c
547
547
  };
548
548
  }
549
- function Je() {
549
+ function Xe() {
550
550
  return typeof document > "u" ? {} : {
551
- hasModal: r(() => We.value.length > 0),
552
- hasOverlay: r(() => Ue.value.length > 0 || We.value.length > 0),
553
- hasScrollLock: r(() => Ge.value.length > 0)
551
+ hasModal: r(() => Ke.value.length > 0),
552
+ hasOverlay: r(() => Ge.value.length > 0 || Ke.value.length > 0),
553
+ hasScrollLock: r(() => qe.value.length > 0)
554
554
  };
555
555
  }
556
- function Ye() {
556
+ function Ze() {
557
557
  let e = 0;
558
- return Ue.value.forEach((t, n) => {
559
- e = Math.max(e, Be + n);
560
- }), We.value.forEach((t, n) => {
561
- e = Math.max(e, Ve + n);
562
- }), e > 0 ? e + 1 : He;
558
+ return Ge.value.forEach((t, n) => {
559
+ e = Math.max(e, He + n);
560
+ }), Ke.value.forEach((t, n) => {
561
+ e = Math.max(e, Ue + n);
562
+ }), e > 0 ? e + 1 : We;
563
563
  }
564
564
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
565
- var Xe = (e) => e != null;
565
+ var Qe = (e) => e != null;
566
566
  // ../../node_modules/@vueuse/integrations/dist/useFocusTrap.js
567
- function Ze(e, t = {}) {
567
+ function $e(e, t = {}) {
568
568
  let n, { immediate: i, ...a } = t, o = N(!1), s = N(!1), c = (e) => n && n.activate(e), l = (e) => n && n.deactivate(e), u = () => {
569
569
  n && (n.pause(), s.value = !0);
570
570
  }, d = () => {
571
571
  n && (n.unpause(), s.value = !1);
572
572
  }, f = r(() => {
573
573
  let t = L(e);
574
- return re(t).map((e) => {
574
+ return J(t).map((e) => {
575
575
  let t = L(e);
576
- return typeof t == "string" ? t : J(t);
577
- }).filter(Xe);
576
+ return typeof t == "string" ? t : X(t);
577
+ }).filter(Qe);
578
578
  });
579
579
  return W(f, (e) => {
580
580
  if (e.length) {
581
- if (!n) n = de(e, {
581
+ if (!n) n = fe(e, {
582
582
  ...a,
583
583
  onActivate(e) {
584
584
  o.value = !0, t.onActivate && t.onActivate(e);
@@ -592,7 +592,7 @@ function Ze(e, t = {}) {
592
592
  n?.updateContainerElements(e), !t && i && c();
593
593
  }
594
594
  }
595
- }, { flush: "post" }), ie(() => l()), {
595
+ }, { flush: "post" }), Y(() => l()), {
596
596
  hasFocus: o,
597
597
  isPaused: s,
598
598
  activate: c,
@@ -602,17 +602,17 @@ function Ze(e, t = {}) {
602
602
  };
603
603
  }
604
604
  // src/compose/focusable.ts
605
- var Qe = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex='-1']),[contenteditable='true']";
606
- function $e(e) {
607
- return e ? Array.from(e.querySelectorAll(Qe)) : [];
605
+ var et = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex='-1']),[contenteditable='true']";
606
+ function tt(e) {
607
+ return e ? Array.from(e.querySelectorAll(et)) : [];
608
608
  }
609
- function et(e) {
609
+ function nt(e) {
610
610
  let t = document.activeElement;
611
611
  return t ? e.findIndex((e) => e === t || e.contains(t)) : -1;
612
612
  }
613
613
  // src/compose/useOverlayFocus.ts
614
- function tt(e, t, n = !1) {
615
- let r = O(!1), i = () => !!e.value?.querySelector(Qe), { activate: a, deactivate: o, pause: s, unpause: c } = Ze(e, {
614
+ function rt(e, t, n = !1) {
615
+ let r = O(!1), i = () => !!e.value?.querySelector(et), { activate: a, deactivate: o, pause: s, unpause: c } = $e(e, {
616
616
  immediate: !1,
617
617
  clickOutsideDeactivates: n,
618
618
  initialFocus: () => {
@@ -655,7 +655,7 @@ function tt(e, t, n = !1) {
655
655
  };
656
656
  }
657
657
  // src/compose/useOverlayEscape.ts
658
- function nt(e, t, n, r, i) {
658
+ function it(e, t, n, r, i) {
659
659
  function a(i) {
660
660
  if (n.value && t.value) {
661
661
  for (let t of e) if (t.value?.contains(i.target)) return;
@@ -674,7 +674,7 @@ function nt(e, t, n, r, i) {
674
674
  });
675
675
  }
676
676
  // src/compose/popoverPosition.ts
677
- function rt(e, t, n, r) {
677
+ function at(e, t, n, r) {
678
678
  let i = r?.gap ?? 8, a = r?.margin ?? 16, o = r?.preferAbove ?? !1, s = !1, c = !1, l;
679
679
  o ? e.top - t.height - i > n.top + a ? (l = e.top - t.height - i, s = !0) : e.bottom + t.height + i <= n.bottom - a ? l = e.bottom + i : (l = n.top + a, c = !0) : e.bottom + t.height + i > n.bottom - a && e.top - t.height - i > n.top + a ? (l = e.top - t.height - i, s = !0) : e.bottom + t.height + i > n.bottom - a && e.top - t.height - i <= n.top + a ? (l = n.top + a, c = !0) : l = e.bottom + i;
680
680
  let u = e.left + (e.width - t.width) / 2;
@@ -689,19 +689,19 @@ function rt(e, t, n, r) {
689
689
  };
690
690
  }
691
691
  // src/components/GClientOnly.vue
692
- var it = /* @__PURE__ */ u({
692
+ var ot = /* @__PURE__ */ u({
693
693
  __name: "GClientOnly",
694
694
  setup(e) {
695
- let t = O(fe());
695
+ let t = O(pe());
696
696
  return x(() => {
697
697
  t.value = !0;
698
698
  }), (e, n) => t.value ? A(e.$slots, "default", {}, void 0, void 0, 0) : A(e.$slots, "fallback", {}, void 0, void 0, 1);
699
699
  }
700
- }), at = { class: "g-popover-wrap" }, ot = ["id"], st = [
700
+ }), st = { class: "g-popover-wrap" }, ct = ["id"], lt = [
701
701
  "id",
702
702
  "aria-labelledby",
703
703
  "aria-label"
704
- ], ct = /* @__PURE__ */ u({
704
+ ], ut = /* @__PURE__ */ u({
705
705
  __name: "GPopover",
706
706
  props: {
707
707
  ariaLabelledby: {},
@@ -724,11 +724,11 @@ var it = /* @__PURE__ */ u({
724
724
  W(I(d, "modelValue"), (e) => {
725
725
  p.value = e;
726
726
  });
727
- 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);
728
- nt([x, y], j, p, L, k), W(p, (e) => {
727
+ let m = H(), h = r(() => !!m.trigger), y = U("triggerRef"), x = U("popoverRef"), S = U("popoverContentRef"), { isCustomElement: C } = me(), T = C, E = B(), { push: D, pop: k, isTop: j, zIndex: M } = Ye(E, !0), { activate: N, deactivate: P } = rt(x, j, !0);
728
+ it([x, y], j, p, L, k), W(p, (e) => {
729
729
  e ? (g(() => {
730
730
  g(() => N());
731
- }), D(), f("show")) : (P(), k(), f("hide"), re.value = !1, ie.value = null);
731
+ }), D(), f("show")) : (P(), k(), f("hide"), J.value = !1, Y.value = null);
732
732
  });
733
733
  function F() {
734
734
  p.value = !0, f("update:modelValue", !0);
@@ -742,19 +742,19 @@ var it = /* @__PURE__ */ u({
742
742
  let V = O({
743
743
  top: 0,
744
744
  left: 0
745
- }), G = O({ left: "50%" }), q = O(!1), ne = O(!1), re = O(!1), ie = O(null), J = null;
746
- function ae() {
745
+ }), G = O({ left: "50%" }), q = O(!1), ne = O(!1), J = O(!1), Y = O(null), X = null;
746
+ function re() {
747
747
  if (y.value) return y.value;
748
748
  let e = x.value?.parentElement ?? null;
749
749
  for (; e && e.tagName.toLowerCase() !== "g-popover";) e = e.parentElement;
750
750
  let t = e?.previousElementSibling;
751
751
  return t instanceof HTMLElement ? t : null;
752
752
  }
753
- function Y() {
753
+ function ie() {
754
754
  if (!x.value || !S.value) return;
755
755
  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);
756
- re.value = a > r, ie.value = re.value ? r : null;
757
- let o = new DOMRect(0, 0, e.offsetWidth, Math.min(a, r)), s = ae();
756
+ J.value = a > r, Y.value = J.value ? r : null;
757
+ let o = new DOMRect(0, 0, e.offsetWidth, Math.min(a, r)), s = re();
758
758
  if (!s) {
759
759
  V.value = {
760
760
  top: Math.max((n.height - o.height) / 2, 16),
@@ -762,7 +762,7 @@ var it = /* @__PURE__ */ u({
762
762
  }, ne.value = !1, q.value = !1, G.value = { left: "50%" };
763
763
  return;
764
764
  }
765
- let { top: c, left: l, xOffset: u, placedAbove: f, overlay: p } = rt(s.getBoundingClientRect(), o, n, { gap: d.minimal ? 0 : 8 });
765
+ let { top: c, left: l, xOffset: u, placedAbove: f, overlay: p } = at(s.getBoundingClientRect(), o, n, { gap: d.minimal ? 0 : 8 });
766
766
  V.value = {
767
767
  top: c,
768
768
  left: l
@@ -774,15 +774,15 @@ var it = /* @__PURE__ */ u({
774
774
  }
775
775
  return W(p, (e) => {
776
776
  e ? g(() => {
777
- 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));
778
- }) : (window.removeEventListener("resize", Y), window.removeEventListener("scroll", Y, { capture: !0 }), J && J.disconnect());
777
+ ie(), window.addEventListener("resize", ie), window.addEventListener("scroll", ie, { capture: !0 }), x.value && (X && X.disconnect(), X = new ResizeObserver(() => ie()), S.value && X.observe(S.value));
778
+ }) : (window.removeEventListener("resize", ie), window.removeEventListener("scroll", ie, { capture: !0 }), X && X.disconnect());
779
779
  }), b(() => {
780
- window.removeEventListener("resize", Y), window.removeEventListener("scroll", Y, { capture: !0 }), J && J.disconnect();
780
+ window.removeEventListener("resize", ie), window.removeEventListener("scroll", ie, { capture: !0 }), X && X.disconnect();
781
781
  }), c({
782
782
  show: F,
783
783
  hide: L,
784
784
  toggle: z
785
- }), (r, c) => (w(), o("div", at, [h.value ? (w(), o("div", {
785
+ }), (r, c) => (w(), o("div", st, [h.value ? (w(), o("div", {
786
786
  key: 0,
787
787
  ref_key: "triggerRef",
788
788
  ref: y,
@@ -792,7 +792,7 @@ var it = /* @__PURE__ */ u({
792
792
  toggle: z,
793
793
  open: p.value,
794
794
  popoverId: `${R(E)}-popover`
795
- })], 8, ot)) : a("", !0), l(it, null, {
795
+ })], 8, ct)) : a("", !0), l(ot, null, {
796
796
  default: K(() => [(w(), i(t, {
797
797
  to: "#modal-root",
798
798
  disabled: R(T)
@@ -810,7 +810,7 @@ var it = /* @__PURE__ */ u({
810
810
  "g-popover-above": q.value,
811
811
  "g-popover-below": !q.value,
812
812
  "g-popover-minimal": e.minimal,
813
- "g-popover-scrollable": re.value
813
+ "g-popover-scrollable": J.value
814
814
  }),
815
815
  role: "dialog",
816
816
  "aria-modal": "true",
@@ -820,10 +820,10 @@ var it = /* @__PURE__ */ u({
820
820
  top: V.value.top + "px",
821
821
  left: V.value.left + "px",
822
822
  zIndex: R(M),
823
- maxHeight: ie.value === null ? void 0 : `${ie.value}px`
823
+ maxHeight: Y.value === null ? void 0 : `${Y.value}px`
824
824
  })
825
825
  }, [
826
- !ne.value && !e.minimal && !re.value ? (w(), o("div", {
826
+ !ne.value && !e.minimal && !J.value ? (w(), o("div", {
827
827
  key: 0,
828
828
  class: _(["g-popover-arrow", { "g-popover-arrow-above": q.value }]),
829
829
  style: v(G.value),
@@ -849,42 +849,42 @@ var it = /* @__PURE__ */ u({
849
849
  fill: "currentColor",
850
850
  d: "m37.84 32.94-7.63-7.63 7.63-7.63a3.24 3.24 0 0 0-4.58-4.58l-7.63 7.63L18 13.1a3.24 3.24 0 0 0-4.58 4.58L21 25.31l-7.62 7.63A3.24 3.24 0 1 0 18 37.52l7.63-7.63 7.63 7.63a3.24 3.24 0 0 0 4.58-4.58Z"
851
851
  })], -1)]]))
852
- ], 14, st)), [[ee, p.value]]) : a("", !0)]),
852
+ ], 14, lt)), [[ee, p.value]]) : a("", !0)]),
853
853
  _: 3
854
854
  })], 8, ["disabled"]))]),
855
855
  _: 3
856
856
  })]));
857
857
  }
858
- }), lt = 1;
859
- function ut(e = "v-gtooltip") {
860
- return `${e}-${++lt}`;
858
+ }), dt = 1;
859
+ function ft(e = "v-gtooltip") {
860
+ return `${e}-${++dt}`;
861
861
  }
862
- function dt(e, t = "v-gtooltip") {
862
+ function pt(e, t = "v-gtooltip") {
863
863
  let n = e.getAttribute("aria-describedby");
864
864
  if (n) return n;
865
- let r = ut(t);
865
+ let r = ft(t);
866
866
  return e.setAttribute("aria-describedby", r), r;
867
867
  }
868
- function ft(e, t) {
868
+ function mt(e, t) {
869
869
  let n = document.createElement("div");
870
870
  return n.className = "v-gtooltip", n.textContent = e, n.setAttribute("role", "tooltip"), n.setAttribute("id", t), n;
871
871
  }
872
- function pt(e) {
872
+ function ht(e) {
873
873
  (document.getElementById("modal-root") ?? document.body).appendChild(e);
874
874
  }
875
- function mt(e, t) {
876
- let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } = rt(n, r, new DOMRect(0, 0, window.innerWidth, window.innerHeight), {
875
+ function gt(e, t) {
876
+ let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } = at(n, r, new DOMRect(0, 0, window.innerWidth, window.innerHeight), {
877
877
  gap: 8,
878
878
  margin: 8,
879
879
  preferAbove: !0
880
880
  }), s = (n.left + n.width / 2 - a) / r.width * 100;
881
- t.style.setProperty("--v-gtooltip-arrow-x", `${s}%`), t.classList.remove("v-gtooltip-bottom"), o || t.classList.add("v-gtooltip-bottom"), t.style.left = `${a}px`, t.style.top = `${i}px`, t.style.zIndex = `${Ye()}`, t.style.visibility = "visible", t.style.opacity = "1";
881
+ t.style.setProperty("--v-gtooltip-arrow-x", `${s}%`), t.classList.remove("v-gtooltip-bottom"), o || t.classList.add("v-gtooltip-bottom"), t.style.left = `${a}px`, t.style.top = `${i}px`, t.style.zIndex = `${Ze()}`, t.style.visibility = "visible", t.style.opacity = "1";
882
882
  }
883
- function ht(e) {
883
+ function _t(e) {
884
884
  e.style.opacity = "0", e.style.visibility = "hidden";
885
885
  }
886
886
  // src/components/GTooltip.vue
887
- var gt = /* @__PURE__ */ u({
887
+ var vt = /* @__PURE__ */ u({
888
888
  __name: "GTooltip",
889
889
  props: { text: {} },
890
890
  emits: ["tooltip-hide"],
@@ -899,12 +899,12 @@ var gt = /* @__PURE__ */ u({
899
899
  return t instanceof HTMLElement ? t : null;
900
900
  }
901
901
  function S() {
902
- y && (v || (v = l.value ? ut("g-tooltip") : dt(y, "g-tooltip"), l.value && y.setAttribute("aria-describedby", v)), f.value || (f.value = ft(i.text, v), pt(f.value), h = new ResizeObserver(() => {
903
- f.value && (p.value || m.value) && y && mt(y, f.value);
902
+ y && (v || (v = l.value ? ft("g-tooltip") : pt(y, "g-tooltip"), l.value && y.setAttribute("aria-describedby", v)), f.value || (f.value = mt(i.text, v), ht(f.value), h = new ResizeObserver(() => {
903
+ f.value && (p.value || m.value) && y && gt(y, f.value);
904
904
  }), h.observe(f.value)));
905
905
  }
906
906
  function C() {
907
- f.value && (p.value || m.value) && y && mt(y, f.value);
907
+ f.value && (p.value || m.value) && y && gt(y, f.value);
908
908
  }
909
909
  function T() {
910
910
  p.value = !0;
@@ -945,7 +945,7 @@ var gt = /* @__PURE__ */ u({
945
945
  }, { immediate: !0 }), W(() => i.text, (e) => {
946
946
  f.value && (f.value.textContent = e);
947
947
  }), W(() => p.value || m.value, (e) => {
948
- e ? (S(), f.value && y && mt(y, f.value), g ||= (window.addEventListener("scroll", C, { capture: !0 }), !0)) : (g &&= (window.removeEventListener("scroll", C, { capture: !0 }), !1), f.value && (ht(f.value), _ && clearTimeout(_), _ = window.setTimeout(() => {
948
+ e ? (S(), f.value && y && gt(y, f.value), g ||= (window.addEventListener("scroll", C, { capture: !0 }), !0)) : (g &&= (window.removeEventListener("scroll", C, { capture: !0 }), !1), f.value && (_t(f.value), _ && clearTimeout(_), _ = window.setTimeout(() => {
949
949
  s("tooltip-hide");
950
950
  }, 150)));
951
951
  }), b(() => {
@@ -965,11 +965,11 @@ var gt = /* @__PURE__ */ u({
965
965
  class: "g-tooltip-trigger"
966
966
  }, [A(e.$slots, "trigger")], 512)) : a("", !0)], 512));
967
967
  }
968
- }), _t = ["disabled"], vt = { class: "g-select-btn-legend" }, yt = {
968
+ }), yt = ["disabled"], bt = { class: "g-select-btn-legend" }, xt = {
969
969
  key: 0,
970
970
  class: "g-select-btn-required",
971
971
  "aria-hidden": "true"
972
- }, bt = { class: "g-select-btn-row" }, xt = [
972
+ }, St = { class: "g-select-btn-row" }, Ct = [
973
973
  "id",
974
974
  "name",
975
975
  "value",
@@ -977,7 +977,7 @@ var gt = /* @__PURE__ */ u({
977
977
  "disabled",
978
978
  "required",
979
979
  "onChange"
980
- ], St = ["for"], Ct = /* @__PURE__ */ u({
980
+ ], wt = ["for"], Tt = /* @__PURE__ */ u({
981
981
  __name: "GSelectButton",
982
982
  props: /*@__PURE__*/ m({
983
983
  options: {},
@@ -1000,7 +1000,7 @@ var gt = /* @__PURE__ */ u({
1000
1000
  }),
1001
1001
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
1002
1002
  setup(t, { emit: n }) {
1003
- let i = t, u = n, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } = $({
1003
+ let i = t, u = n, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } = Me({
1004
1004
  name: i.name,
1005
1005
  value: d,
1006
1006
  errors: I(i, "errors"),
@@ -1019,7 +1019,7 @@ var gt = /* @__PURE__ */ u({
1019
1019
  return (t, n) => (w(), o("fieldset", {
1020
1020
  class: _(g.value),
1021
1021
  disabled: i.disabled
1022
- }, [s("legend", vt, [c(P(i.label), 1), i.required ? (w(), o("span", yt, " *")) : a("", !0)]), s("div", { class: _(["g-select-btn-wrapper", { "g-select-btn-has-error": R(m) }]) }, [s("div", bt, [(w(!0), o(e, null, k(h.value, (t, n) => (w(), o(e, { key: t.value }, [s("input", {
1022
+ }, [s("legend", bt, [c(P(i.label), 1), i.required ? (w(), o("span", xt, " *")) : a("", !0)]), s("div", { class: _(["g-select-btn-wrapper", { "g-select-btn-has-error": R(m) }]) }, [s("div", St, [(w(!0), o(e, null, k(h.value, (t, n) => (w(), o(e, { key: t.value }, [s("input", {
1023
1023
  class: "g-select-btn-radio",
1024
1024
  type: "radio",
1025
1025
  id: `${R(f)}-${t.value}`,
@@ -1029,29 +1029,29 @@ var gt = /* @__PURE__ */ u({
1029
1029
  disabled: i.disabled,
1030
1030
  required: i.required && n === 0,
1031
1031
  onChange: (e) => y(t.value)
1032
- }, null, 40, xt), s("label", {
1032
+ }, null, 40, Ct), s("label", {
1033
1033
  for: `${R(f)}-${t.value}`,
1034
1034
  class: _(v(t.value === d.value))
1035
- }, P(t.label), 11, St)], 64))), 128))]), l(Me, {
1035
+ }, P(t.label), 11, wt)], 64))), 128))]), l(Pe, {
1036
1036
  errors: R(p),
1037
1037
  id: "error-message-" + R(f)
1038
- }, null, 8, ["errors", "id"])], 2)], 10, _t));
1038
+ }, null, 8, ["errors", "id"])], 2)], 10, yt));
1039
1039
  }
1040
- }), wt = ["width", "height"], Tt = [
1040
+ }), Et = ["width", "height"], Dt = [
1041
1041
  "cx",
1042
1042
  "cy",
1043
1043
  "r"
1044
- ], Et = [
1044
+ ], Ot = [
1045
1045
  "cx",
1046
1046
  "cy",
1047
1047
  "r",
1048
1048
  "stroke-dasharray",
1049
1049
  "stroke-dashoffset"
1050
- ], Dt = [
1050
+ ], kt = [
1051
1051
  "cx",
1052
1052
  "cy",
1053
1053
  "r"
1054
- ], Ot = /* @__PURE__ */ u({
1054
+ ], At = /* @__PURE__ */ u({
1055
1055
  __name: "GProgress",
1056
1056
  props: {
1057
1057
  label: { default: "Loading" },
@@ -1092,7 +1092,7 @@ var gt = /* @__PURE__ */ u({
1092
1092
  r: i.value,
1093
1093
  "stroke-width": 4,
1094
1094
  fill: "none"
1095
- }, null, 8, Tt), n.value ? (w(), o("circle", {
1095
+ }, null, 8, Dt), n.value ? (w(), o("circle", {
1096
1096
  key: 0,
1097
1097
  class: "g-progress__value",
1098
1098
  cx: i.value + 2,
@@ -1106,7 +1106,7 @@ var gt = /* @__PURE__ */ u({
1106
1106
  transform: "rotate(-90deg)",
1107
1107
  "transform-origin": "center"
1108
1108
  }
1109
- }, null, 8, Et)) : (w(), o("circle", {
1109
+ }, null, 8, Ot)) : (w(), o("circle", {
1110
1110
  key: 1,
1111
1111
  class: "g-progress__spinner",
1112
1112
  cx: i.value + 2,
@@ -1114,13 +1114,13 @@ var gt = /* @__PURE__ */ u({
1114
1114
  r: i.value,
1115
1115
  "stroke-width": 4,
1116
1116
  fill: "none"
1117
- }, null, 8, Dt))], 10, wt))], 16));
1117
+ }, null, 8, kt))], 10, Et))], 16));
1118
1118
  }
1119
- }), kt = [
1119
+ }), jt = [
1120
1120
  "id",
1121
1121
  "aria-labelledby",
1122
1122
  "aria-describedby"
1123
- ], At = { class: "g-alertdialog-inner" }, jt = ["id"], Mt = ["id"], Nt = { class: "g-alertdialog-actions" }, Pt = /* @__PURE__ */ u({
1123
+ ], Mt = { class: "g-alertdialog-inner" }, Nt = ["id"], Pt = ["id"], Ft = { class: "g-alertdialog-actions" }, It = /* @__PURE__ */ u({
1124
1124
  __name: "GAlertDialog",
1125
1125
  props: {
1126
1126
  label: { default: "Confirmation" },
@@ -1129,11 +1129,11 @@ var gt = /* @__PURE__ */ u({
1129
1129
  },
1130
1130
  emits: ["cancel", "confirm"],
1131
1131
  setup(e, { emit: r }) {
1132
- let a = e, o = r, u = O(null), d = O(!0), f = B(), { pop: p, push: m, isTop: h, zIndex: g } = qe(f, !0, !0), { deactivate: _, activate: b } = tt(u, h);
1132
+ let a = e, o = r, u = O(null), d = O(!0), f = B(), { pop: p, push: m, isTop: h, zIndex: g } = Ye(f, !0, !0), { deactivate: _, activate: b } = rt(u, h);
1133
1133
  function S() {
1134
1134
  o("cancel");
1135
1135
  }
1136
- return nt([u], h, d, S, p), x(() => {
1136
+ return it([u], h, d, S, p), x(() => {
1137
1137
  m(), b();
1138
1138
  }), y(() => {
1139
1139
  p(), _();
@@ -1151,42 +1151,42 @@ var gt = /* @__PURE__ */ u({
1151
1151
  ref_key: "dialog",
1152
1152
  ref: u,
1153
1153
  style: v({ zIndex: R(g) })
1154
- }, [s("div", At, [
1154
+ }, [s("div", Mt, [
1155
1155
  s("h2", {
1156
1156
  id: "alertdialog-label-" + R(f),
1157
1157
  class: "g-alertdialog-label"
1158
- }, P(a.label), 9, jt),
1158
+ }, P(a.label), 9, Nt),
1159
1159
  s("div", {
1160
1160
  id: "alertdialog-description-" + R(f),
1161
1161
  class: "g-alertdialog-content"
1162
- }, [A(e.$slots, "default")], 8, Mt),
1163
- s("div", Nt, [l(Q, {
1162
+ }, [A(e.$slots, "default")], 8, Pt),
1163
+ s("div", Ft, [l($, {
1164
1164
  outlined: "",
1165
1165
  onClick: r[0] ||= (e) => o("cancel")
1166
1166
  }, {
1167
1167
  default: K(() => [...r[2] ||= [c("Cancel", -1)]]),
1168
1168
  _: 1
1169
- }), l(Q, {
1169
+ }), l($, {
1170
1170
  theme: a.buttonColor,
1171
1171
  onClick: r[1] ||= (e) => o("confirm")
1172
1172
  }, {
1173
1173
  default: K(() => [c(P(a.buttonText), 1)]),
1174
1174
  _: 1
1175
1175
  }, 8, ["theme"])])
1176
- ])], 12, kt)]),
1176
+ ])], 12, jt)]),
1177
1177
  _: 3
1178
1178
  })]));
1179
1179
  }
1180
1180
  });
1181
1181
  // src/compose/useSelectDropdown.ts
1182
- function Ft(e) {
1182
+ function Lt(e) {
1183
1183
  return e.map((e) => typeof e == "string" ? {
1184
1184
  label: e,
1185
1185
  value: e
1186
1186
  } : e);
1187
1187
  }
1188
- function It({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a }) {
1189
- let { push: o, pop: s, isTop: c } = qe(i), l = O("below"), u = O(null), d = r(() => {
1188
+ function Rt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a }) {
1189
+ let { push: o, pop: s, isTop: c } = Ye(i), l = O("below"), u = O(null), d = r(() => {
1190
1190
  let e = {};
1191
1191
  return u.value !== null && (e.maxHeight = `${u.value}px`), l.value === "above" ? (e.top = "auto", e.bottom = "100%") : (e.top = "100%", e.bottom = "auto"), e;
1192
1192
  });
@@ -1228,11 +1228,11 @@ function It({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a })
1228
1228
  };
1229
1229
  }
1230
1230
  // src/components/GSelect.vue?vue&type=script&setup=true&lang.ts
1231
- var Lt = ["id"], Rt = {
1231
+ var zt = ["id"], Bt = {
1232
1232
  key: 0,
1233
1233
  class: "g-select-required",
1234
1234
  "aria-hidden": "true"
1235
- }, zt = { class: "g-select-input-wrap" }, Bt = ["id"], Vt = [
1235
+ }, Vt = { class: "g-select-input-wrap" }, Ht = ["id"], Ut = [
1236
1236
  "value",
1237
1237
  "placeholder",
1238
1238
  "disabled",
@@ -1240,24 +1240,24 @@ var Lt = ["id"], Rt = {
1240
1240
  "aria-expanded",
1241
1241
  "aria-required",
1242
1242
  "aria-activedescendant"
1243
- ], Ht = [
1243
+ ], Wt = [
1244
1244
  "id",
1245
1245
  "aria-controls",
1246
1246
  "aria-expanded",
1247
1247
  "aria-required",
1248
1248
  "aria-activedescendant"
1249
- ], Ut = ["id"], Wt = [
1249
+ ], Gt = ["id"], Kt = [
1250
1250
  "id",
1251
1251
  "aria-selected",
1252
1252
  "onClick"
1253
- ], Gt = { class: "g-select-option-label" }, Kt = {
1253
+ ], qt = { class: "g-select-option-label" }, Jt = {
1254
1254
  key: 0,
1255
1255
  class: "g-select-option-description"
1256
- }, qt = {
1256
+ }, Yt = {
1257
1257
  key: 1,
1258
1258
  "aria-live": "polite",
1259
1259
  class: "g-select-combo-option g-select-option g-select-no-results"
1260
- }, Jt = /* @__PURE__ */ u({
1260
+ }, Xt = /* @__PURE__ */ u({
1261
1261
  __name: "GSelect",
1262
1262
  props: /*@__PURE__*/ m({
1263
1263
  options: {},
@@ -1294,18 +1294,18 @@ var Lt = ["id"], Rt = {
1294
1294
  }),
1295
1295
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
1296
1296
  setup(t, { emit: n }) {
1297
- 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 } = $({
1297
+ 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 } = Me({
1298
1298
  name: i.name,
1299
1299
  value: d,
1300
1300
  errors: I(i, "errors"),
1301
1301
  formKey: i.formKey
1302
- }), { menuPlacement: E, menuStyle: D, isTop: j, scrollOptionIntoView: M } = It({
1302
+ }), { menuPlacement: E, menuStyle: D, isTop: j, scrollOptionIntoView: M } = Rt({
1303
1303
  open: y,
1304
1304
  anchorRef: p,
1305
1305
  listboxRef: m,
1306
1306
  baseId: f,
1307
1307
  activeIndex: b
1308
- }), N = r(() => Ft(i.options)), F = O(""), L = r(() => {
1308
+ }), N = r(() => Lt(i.options)), F = O(""), L = r(() => {
1309
1309
  if (!i.searchable || !y.value || !F.value) return N.value;
1310
1310
  let e = F.value.toLowerCase();
1311
1311
  return N.value.filter((t) => t.label.toLowerCase().includes(e) || i.searchDescription && !!t.description && t.description.toLowerCase().includes(e));
@@ -1345,16 +1345,16 @@ var Lt = ["id"], Rt = {
1345
1345
  let t = e.relatedTarget;
1346
1346
  x.value ? x.value = !1 : t && m.value && m.value.contains(t) || (i.searchable && (F.value = ""), U());
1347
1347
  }
1348
- function re(e) {
1348
+ function J(e) {
1349
1349
  let t = L.value[e];
1350
1350
  t && t.value !== d.value && (d.value = t.value, u("change", t.value)), S.value = !0, U(), setTimeout(() => {
1351
1351
  S.value = !1;
1352
1352
  }, 100);
1353
1353
  }
1354
- function ie() {
1354
+ function Y() {
1355
1355
  i.disabled || (y.value ? U() : H());
1356
1356
  }
1357
- function J(e) {
1357
+ function X(e) {
1358
1358
  if (i.disabled) return;
1359
1359
  let t = L.value.length - 1;
1360
1360
  if (!y.value && [
@@ -1377,21 +1377,21 @@ var Lt = ["id"], Rt = {
1377
1377
  e.preventDefault(), b.value = t, M();
1378
1378
  break;
1379
1379
  case "Enter":
1380
- e.preventDefault(), y.value ? re(b.value) : H();
1380
+ e.preventDefault(), y.value ? J(b.value) : H();
1381
1381
  break;
1382
1382
  case "Escape": j.value && (e.preventDefault(), setTimeout(() => {
1383
1383
  U();
1384
1384
  }, 0));
1385
1385
  }
1386
1386
  }
1387
- function ae(e) {
1388
- re(e);
1387
+ function re(e) {
1388
+ J(e);
1389
1389
  }
1390
- function Y() {
1390
+ function ie() {
1391
1391
  x.value = !0;
1392
1392
  }
1393
- let X = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
1394
- function oe() {
1393
+ let Z = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
1394
+ function ae() {
1395
1395
  i.disabled || (d.value = null, u("change", null), i.searchable && (F.value = ""));
1396
1396
  }
1397
1397
  return (n, r) => (w(), o("div", { class: _(["g-select-root g-select-combo", {
@@ -1403,8 +1403,8 @@ var Lt = ["id"], Rt = {
1403
1403
  key: 0,
1404
1404
  id: R(f) + "-label",
1405
1405
  class: "g-select-combo-label g-select-label"
1406
- }, [c(P(i.label), 1), i.required ? (w(), o("span", Rt, " *")) : a("", !0)], 8, Lt)),
1407
- s("div", zt, [i.searchable ? (w(), o("div", {
1406
+ }, [c(P(i.label), 1), i.required ? (w(), o("span", Bt, " *")) : a("", !0)], 8, zt)),
1407
+ s("div", Vt, [i.searchable ? (w(), o("div", {
1408
1408
  key: 0,
1409
1409
  class: "g-select-combo-input g-select-control",
1410
1410
  id: R(f)
@@ -1420,7 +1420,7 @@ var Lt = ["id"], Rt = {
1420
1420
  disabled: i.disabled,
1421
1421
  onFocus: G,
1422
1422
  onInput: K,
1423
- onKeydown: J,
1423
+ onKeydown: X,
1424
1424
  onBlur: ne,
1425
1425
  "aria-autocomplete": "list",
1426
1426
  "aria-controls": R(f) + "-listbox",
@@ -1431,12 +1431,12 @@ var Lt = ["id"], Rt = {
1431
1431
  }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": R(f) + "-label" }, {
1432
1432
  role: "combobox",
1433
1433
  autocomplete: "off"
1434
- }), null, 16, Vt),
1435
- X.value ? (w(), o("button", {
1434
+ }), null, 16, Ut),
1435
+ Z.value ? (w(), o("button", {
1436
1436
  key: 0,
1437
1437
  type: "button",
1438
1438
  class: "g-select-clear-btn",
1439
- onClick: oe
1439
+ onClick: ae
1440
1440
  }, [...r[0] ||= [s("svg", {
1441
1441
  role: "img",
1442
1442
  "aria-label": "Clear Selection",
@@ -1457,7 +1457,7 @@ var Lt = ["id"], Rt = {
1457
1457
  fill: "currentColor",
1458
1458
  d: "M38.75 24.13a1.36 1.36 0 0 1 0 2.36l-12.44 7.18-12.43 7.18a1.36 1.36 0 0 1-2.05-1.18V11a1.36 1.36 0 0 1 2.05-1.18L26.31 17Z"
1459
1459
  })], -1)
1460
- ], 8, Bt)) : (w(), o("div", h({
1460
+ ], 8, Ht)) : (w(), o("div", h({
1461
1461
  key: 1,
1462
1462
  ref_key: "comboRef",
1463
1463
  ref: p,
@@ -1471,17 +1471,17 @@ var Lt = ["id"], Rt = {
1471
1471
  }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": R(f) + "-label" }, {
1472
1472
  "aria-activedescendant": y.value ? R(f) + "-option-" + b.value : void 0,
1473
1473
  tabindex: "0",
1474
- onClick: ie,
1475
- onKeydown: J,
1474
+ onClick: Y,
1475
+ onKeydown: X,
1476
1476
  onFocus: G,
1477
1477
  onBlur: ne
1478
1478
  }), [
1479
1479
  c(P(N.value[z.value] ? N.value[z.value].label : "") + " ", 1),
1480
- X.value ? (w(), o("button", {
1480
+ Z.value ? (w(), o("button", {
1481
1481
  key: 0,
1482
1482
  type: "button",
1483
1483
  class: "g-select-clear-btn",
1484
- onClick: q(oe, ["stop"])
1484
+ onClick: q(ae, ["stop"])
1485
1485
  }, [...r[2] ||= [s("svg", {
1486
1486
  role: "img",
1487
1487
  "aria-label": "Clear Selection",
@@ -1502,7 +1502,7 @@ var Lt = ["id"], Rt = {
1502
1502
  fill: "currentColor",
1503
1503
  d: "M38.75 24.13a1.36 1.36 0 0 1 0 2.36l-12.44 7.18-12.43 7.18a1.36 1.36 0 0 1-2.05-1.18V11a1.36 1.36 0 0 1 2.05-1.18L26.31 17Z"
1504
1504
  })], -1)
1505
- ], 16, Ht)), te(s("div", h({
1505
+ ], 16, Wt)), te(s("div", h({
1506
1506
  ref_key: "listboxRef",
1507
1507
  ref: m,
1508
1508
  class: ["g-select-combo-menu g-select-list", { "g-select-combo-menu--above": R(E) === "above" }],
@@ -1518,44 +1518,68 @@ var Lt = ["id"], Rt = {
1518
1518
  }]),
1519
1519
  role: "option",
1520
1520
  "aria-selected": e.value === d.value ? "true" : "false",
1521
- onMousedown: Y,
1522
- onClick: (e) => ae(t)
1521
+ onMousedown: ie,
1522
+ onClick: (e) => re(t)
1523
1523
  }, [A(n.$slots, "option", {
1524
1524
  option: e,
1525
1525
  selected: e.value === d.value,
1526
1526
  index: t
1527
- }, () => [s("span", Gt, P(e.label), 1), e.description ? (w(), o("span", Kt, P(e.description), 1)) : a("", !0)])], 42, Wt))), 128)) : (w(), o("div", qt, " No results found. "))], 16, Ut), [[ee, y.value]])]),
1528
- l(Me, {
1527
+ }, () => [s("span", qt, P(e.label), 1), e.description ? (w(), o("span", Jt, P(e.description), 1)) : a("", !0)])], 42, Kt))), 128)) : (w(), o("div", Yt, " No results found. "))], 16, Gt), [[ee, y.value]])]),
1528
+ l(Pe, {
1529
1529
  errors: R(C),
1530
1530
  id: "error-message-" + R(f)
1531
1531
  }, null, 8, ["errors", "id"])
1532
1532
  ], 2));
1533
1533
  }
1534
- }), Yt = ["aria-label"], Xt = [
1534
+ }), Zt = ["aria-label"], Qt = [
1535
1535
  "placeholder",
1536
1536
  "value",
1537
1537
  "aria-label",
1538
1538
  "aria-expanded",
1539
1539
  "aria-controls",
1540
1540
  "aria-activedescendant"
1541
- ], Zt = {
1541
+ ], $t = {
1542
+ type: "submit",
1543
+ class: "g-search-submit"
1544
+ }, en = {
1545
+ class: "ilw-sr-only",
1546
+ role: "status",
1547
+ "aria-live": "polite",
1548
+ "aria-atomic": "true"
1549
+ }, tn = {
1542
1550
  key: 0,
1543
1551
  class: "g-search-dropdown"
1544
- }, Qt = {
1545
- "aria-live": "polite",
1546
- class: "g-search-result-count"
1547
- }, $t = ["id"], en = ["aria-label"], tn = { class: "g-search-group-label" }, nn = [
1552
+ }, nn = { class: "g-search-result-count" }, rn = ["id"], an = ["aria-label"], on = { class: "g-search-group-label" }, sn = [
1548
1553
  "id",
1549
- "onMousedown",
1554
+ "onClick",
1550
1555
  "aria-selected"
1551
- ], rn = [
1556
+ ], cn = [
1552
1557
  "id",
1553
- "onMousedown",
1558
+ "onClick",
1559
+ "aria-selected"
1560
+ ], ln = ["aria-label"], un = { class: "g-search-group-label" }, dn = [
1561
+ "id",
1562
+ "onClick",
1554
1563
  "aria-selected"
1555
- ], an = /* @__PURE__ */ u({
1564
+ ], fn = {
1565
+ key: 0,
1566
+ class: "g-search-action-icon",
1567
+ "aria-hidden": "true"
1568
+ }, pn = {
1569
+ key: 1,
1570
+ role: "none",
1571
+ xmlns: "http://www.w3.org/2000/svg",
1572
+ viewBox: "0 0 640 640"
1573
+ }, mn = { class: "g-search-action-label" }, hn = /* @__PURE__ */ u({
1556
1574
  __name: "GSearch",
1557
1575
  props: /*@__PURE__*/ m({
1558
1576
  results: {},
1577
+ actions: { default: () => [] },
1578
+ actionsLabel: { default: "Actions" },
1579
+ actionIcon: {
1580
+ type: [String, Boolean],
1581
+ default: void 0
1582
+ },
1559
1583
  placeholder: { default: "Search..." },
1560
1584
  label: { default: "Search" },
1561
1585
  auto: {
@@ -1567,128 +1591,193 @@ var Lt = ["id"], Rt = {
1567
1591
  modelValue: { default: () => "" },
1568
1592
  modelModifiers: {}
1569
1593
  }),
1570
- emits: /*@__PURE__*/ m(["select", "submit"], ["update:modelValue"]),
1594
+ emits: /*@__PURE__*/ m([
1595
+ "select",
1596
+ "submit",
1597
+ "action",
1598
+ "close"
1599
+ ], ["update:modelValue"]),
1571
1600
  setup(t, { emit: n }) {
1572
- let l = V(t, "modelValue"), u = t, d = n, f = O(null), p = O(null), m = O(!0), h = O(-1), v = r(() => Array.isArray(u.results) && u.results.length && "items" in u.results[0] ? u.results.flatMap((e) => e.items) : u.results), y = r(() => v.value.length);
1573
- function b(e) {
1601
+ let l = V(t, "modelValue"), u = t, d = H(), f = n;
1602
+ function p(e) {
1603
+ return e.icon === !1 ? !1 : e.icon || d["action-icon"] ? !0 : u.actionIcon !== !1;
1604
+ }
1605
+ function m(e) {
1606
+ if (e.icon) return e.icon;
1607
+ if (u.actionIcon) return u.actionIcon;
1608
+ }
1609
+ let h = B(), v = O(null), y = O(null), x = O(!0), S = O(-1), C = r(() => Array.isArray(u.results) && u.results.length > 0 && "items" in u.results[0]), T = r(() => C.value ? u.results : []), E = r(() => T.value.filter((e) => e.items.length > 0)), D = r(() => C.value ? T.value.flatMap((e) => e.items) : u.results ?? []), j = r(() => D.value.length), M = r(() => u.actions.length);
1610
+ function N(e) {
1611
+ return `${h}-option-${e.id}`;
1612
+ }
1613
+ function F(e) {
1614
+ return `${h}-action-${e.id}`;
1615
+ }
1616
+ let I = r(() => [...D.value.map((e) => ({
1617
+ kind: "result",
1618
+ optionId: N(e),
1619
+ item: e
1620
+ })), ...u.actions.map((e) => ({
1621
+ kind: "action",
1622
+ optionId: F(e),
1623
+ action: e
1624
+ }))]), L = r(() => I.value.length), z = r(() => S.value >= 0 && S.value < I.value.length ? I.value[S.value] : void 0), U = ie(() => {
1625
+ f("submit", l.value);
1626
+ }, 300);
1627
+ function ee() {
1628
+ U.cancel(), f("submit", l.value), x.value = !1;
1629
+ }
1630
+ function G() {
1631
+ v.value?.focus(), ee();
1632
+ }
1633
+ b(U.cancel);
1634
+ function K(e) {
1574
1635
  let t = e.target.value;
1575
- l.value = t, u.auto && t.length > 1 && (m.value = !1);
1636
+ l.value = t, u.auto ? x.value = t.length <= 1 : t || (x.value = !0);
1576
1637
  }
1577
- function x() {
1638
+ function te() {
1578
1639
  g(() => {
1579
- let e = p.value?.querySelector("[aria-selected=\"true\"]");
1640
+ let e = y.value?.querySelector("[aria-selected=\"true\"]");
1580
1641
  e && e.scrollIntoView({ block: "nearest" });
1581
1642
  });
1582
1643
  }
1583
- let { focused: S } = X(f);
1584
- function C(e) {
1644
+ let { focused: ne } = ae(v), J = r(() => u.loading), Y = r(() => ne.value && !x.value);
1645
+ W(ne, (e) => {
1646
+ e || (S.value = -1);
1647
+ }), W(Y, (e, t) => {
1648
+ t && !e && f("close");
1649
+ });
1650
+ let X = r(() => `${j.value} result${j.value === 1 ? "" : "s"}`), re = r(() => {
1651
+ if (!Y.value || J.value) return "";
1652
+ let e = T.value.length === 1 && T.value[0].label ? `${X.value} in ${T.value[0].label}` : X.value;
1653
+ return M.value > 0 ? `${e}, ${`${M.value} action${M.value === 1 ? "" : "s"} available`}` : e;
1654
+ });
1655
+ function Z(e) {
1585
1656
  let t = e.altKey;
1586
1657
  if (e.key === "ArrowDown") {
1587
- if (!y.value) return;
1588
- e.preventDefault(), m.value = !1, t || (h.value = (h.value + 1) % y.value, x());
1658
+ if (!L.value) return;
1659
+ e.preventDefault(), x.value = !1, t || (S.value = (S.value + 1) % L.value, te());
1589
1660
  } else if (e.key === "ArrowUp") {
1590
- if (!y.value) return;
1591
- e.preventDefault(), m.value = !1, h.value = (h.value - 1 + y.value) % y.value, x();
1592
- } else if (e.key === "Enter") m.value ? (d("submit", l.value), m.value = !1, e.preventDefault()) : T(v.value[h.value]);
1593
- else if (e.key === "Escape") {
1594
- if (!y.value) return;
1595
- e.preventDefault(), D.value || (l.value = ""), m.value = !0, h.value = -1;
1596
- }
1661
+ if (!L.value) return;
1662
+ e.preventDefault(), x.value = !1, S.value = S.value < 0 ? L.value - 1 : (S.value - 1 + L.value) % L.value, te();
1663
+ } else e.key === "Enter" ? (e.preventDefault(), Y.value && z.value ? z.value.kind === "result" ? oe(z.value.item) : se(z.value.action) : ee()) : e.key === "Escape" && (Y.value ? (e.preventDefault(), x.value = !0, S.value = -1) : l.value && (e.preventDefault(), l.value = "", x.value = !0, S.value = -1));
1597
1664
  [
1598
1665
  "Backspace",
1599
1666
  "Delete",
1600
1667
  "Clear",
1601
1668
  "Undo"
1602
- ].includes(e.key) && (m.value = !0);
1669
+ ].includes(e.key) && (u.auto || (x.value = !0), S.value = -1);
1603
1670
  }
1604
- function T(e) {
1605
- d("select", e), l.value = "", m.value = !0, h.value = -1;
1671
+ function oe(e) {
1672
+ U.cancel(), f("select", e), l.value = "", x.value = !0, S.value = -1;
1606
1673
  }
1607
- let E = r(() => !!u.loading), D = r(() => S.value && !m.value), j = Y(() => {
1608
- d("submit", l.value);
1609
- }, 300);
1610
- W(() => l.value, (e) => {
1611
- e ? u.auto && j() : h.value = -1;
1612
- });
1613
- let M = B();
1614
- return (t, n) => (w(), o("div", {
1674
+ function se(e) {
1675
+ U.cancel(), v.value?.focus(), f("action", e);
1676
+ }
1677
+ let Q = r(() => `${T.value.map((e) => `${e.type}:${e.label}`).join("|")}::${I.value.map((e) => e.optionId).join("|")}`);
1678
+ return W(Q, () => {
1679
+ S.value = -1;
1680
+ }), W(() => l.value, (e) => {
1681
+ e ? u.auto && U() : (U.cancel(), S.value = -1);
1682
+ }), (t, n) => (w(), o("div", {
1615
1683
  class: "g-search",
1616
1684
  role: "search",
1617
1685
  "aria-label": u.label
1618
- }, [s("form", {
1619
- class: "g-search-form",
1620
- onSubmit: n[0] ||= q((e) => T(null), ["prevent"])
1621
- }, [s("input", {
1622
- ref_key: "inputRef",
1623
- ref: f,
1624
- class: "g-search-input",
1625
- name: "search",
1626
- type: "search",
1627
- placeholder: u.placeholder,
1628
- value: l.value,
1629
- onInput: b,
1630
- onKeydown: C,
1631
- role: "combobox",
1632
- "aria-label": u.label,
1633
- "aria-expanded": D.value,
1634
- "aria-autocomplete": "list",
1635
- "aria-controls": `${R(M)}-list`,
1636
- "aria-activedescendant": h.value >= 0 ? "g-search-option-" + v.value[h.value].id : void 0
1637
- }, null, 40, Xt), s("button", {
1638
- type: "submit",
1639
- class: "g-search-submit",
1640
- onKeydown: C
1641
- }, [E.value ? (w(), i(Ot, {
1642
- key: 0,
1643
- size: "tiny"
1644
- })) : a("", !0), n[1] ||= s("svg", {
1645
- role: "img",
1646
- "aria-label": "Submit Search",
1647
- xmlns: "http://www.w3.org/2000/svg",
1648
- viewBox: "0 0 51.26 51.26"
1649
- }, [s("path", {
1650
- fill: "currentColor",
1651
- d: "M30 9.76A14.05 14.05 0 1 0 28.3 31l11.3 13a3.34 3.34 0 0 0 4.72-4.72L31.44 27.86A14.05 14.05 0 0 0 30 9.76ZM27.27 27a10.26 10.26 0 1 1 0-14.5 10.25 10.25 0 0 1 0 14.5Z"
1652
- })], -1)], 32)], 32), D.value ? (w(), o("div", Zt, [s("div", Qt, [E.value ? a("", !0) : (w(), o(e, { key: 0 }, [c(P(y.value) + " result" + P(y.value === 1 ? "" : "s"), 1)], 64))]), s("div", {
1653
- role: "listbox",
1654
- id: `${R(M)}-list`,
1655
- ref_key: "listboxRef",
1656
- ref: p,
1657
- "aria-label": "Search results"
1658
- }, [y.value > 0 && "items" in u.results[0] ? (w(!0), o(e, { key: 0 }, k(u.results, (n, r) => (w(), o("div", {
1659
- key: n.type,
1660
- class: "g-search-group",
1661
- role: "group",
1662
- "aria-label": n.label
1663
- }, [A(t.$slots, "group", { group: n }, () => [s("div", tn, P(n.label), 1)]), (w(!0), o(e, null, k(n.items, (e, n) => (w(), o("div", {
1664
- key: e.id,
1665
- id: "g-search-option-" + e.id,
1666
- class: _(["g-search-option", { "g-search-option-active": v.value[h.value] && v.value[h.value].id === e.id }]),
1667
- role: "option",
1668
- onMousedown: q((t) => T(e), ["prevent"]),
1669
- "aria-selected": v.value[h.value] && v.value[h.value].id === e.id
1670
- }, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, nn))), 128))], 8, en))), 128)) : y.value > 0 ? (w(!0), o(e, { key: 1 }, k(v.value, (e, n) => (w(), o("div", {
1671
- key: e.id,
1672
- id: "g-search-option-" + e.id,
1673
- class: _(["g-search-option", { "g-search-option-active": h.value === n }]),
1674
- role: "option",
1675
- onMousedown: q((t) => T(e), ["prevent"]),
1676
- "aria-selected": h.value === n
1677
- }, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, rn))), 128)) : a("", !0)], 8, $t)])) : a("", !0)], 8, Yt));
1686
+ }, [
1687
+ s("form", {
1688
+ class: "g-search-form",
1689
+ onSubmit: q(G, ["prevent"])
1690
+ }, [s("input", {
1691
+ ref_key: "inputRef",
1692
+ ref: v,
1693
+ class: "g-search-input",
1694
+ name: "search",
1695
+ type: "search",
1696
+ placeholder: u.placeholder,
1697
+ value: l.value,
1698
+ onInput: K,
1699
+ onKeydown: Z,
1700
+ role: "combobox",
1701
+ "aria-label": u.label,
1702
+ "aria-expanded": Y.value,
1703
+ "aria-autocomplete": "list",
1704
+ "aria-controls": `${R(h)}-list`,
1705
+ "aria-activedescendant": Y.value && z.value ? z.value.optionId : void 0
1706
+ }, null, 40, Qt), s("button", $t, [J.value ? (w(), i(At, {
1707
+ key: 0,
1708
+ size: "tiny"
1709
+ })) : a("", !0), n[3] ||= s("svg", {
1710
+ role: "img",
1711
+ "aria-label": "Submit Search",
1712
+ xmlns: "http://www.w3.org/2000/svg",
1713
+ viewBox: "0 0 51.26 51.26"
1714
+ }, [s("path", {
1715
+ fill: "currentColor",
1716
+ d: "M30 9.76A14.05 14.05 0 1 0 28.3 31l11.3 13a3.34 3.34 0 0 0 4.72-4.72L31.44 27.86A14.05 14.05 0 0 0 30 9.76ZM27.27 27a10.26 10.26 0 1 1 0-14.5 10.25 10.25 0 0 1 0 14.5Z"
1717
+ })], -1)])], 32),
1718
+ s("div", en, P(re.value), 1),
1719
+ Y.value ? (w(), o("div", tn, [s("div", nn, [J.value ? a("", !0) : (w(), o(e, { key: 0 }, [c(P(X.value), 1)], 64))]), s("div", {
1720
+ role: "listbox",
1721
+ id: `${R(h)}-list`,
1722
+ ref_key: "listboxRef",
1723
+ ref: y,
1724
+ "aria-label": "Search results"
1725
+ }, [E.value.length > 0 ? (w(!0), o(e, { key: 0 }, k(E.value, (r) => (w(), o("div", {
1726
+ key: r.type,
1727
+ class: "g-search-group",
1728
+ role: "group",
1729
+ "aria-label": r.label
1730
+ }, [A(t.$slots, "group", { group: r }, () => [s("div", on, P(r.label), 1)]), (w(!0), o(e, null, k(r.items, (e) => (w(), o("div", {
1731
+ key: e.id,
1732
+ id: N(e),
1733
+ class: _(["g-search-option", { "g-search-option-active": z.value?.optionId === N(e) }]),
1734
+ role: "option",
1735
+ onMousedown: n[0] ||= q(() => {}, ["prevent"]),
1736
+ onClick: (t) => oe(e),
1737
+ "aria-selected": z.value?.optionId === N(e)
1738
+ }, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, sn))), 128))], 8, an))), 128)) : j.value > 0 ? (w(!0), o(e, { key: 1 }, k(D.value, (e) => (w(), o("div", {
1739
+ key: e.id,
1740
+ id: N(e),
1741
+ class: _(["g-search-option", { "g-search-option-active": z.value?.optionId === N(e) }]),
1742
+ role: "option",
1743
+ onMousedown: n[1] ||= q(() => {}, ["prevent"]),
1744
+ onClick: (t) => oe(e),
1745
+ "aria-selected": z.value?.optionId === N(e)
1746
+ }, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, cn))), 128)) : a("", !0), M.value > 0 ? (w(), o("div", {
1747
+ key: 2,
1748
+ class: "g-search-group g-search-actions-group",
1749
+ role: "group",
1750
+ "aria-label": u.actionsLabel
1751
+ }, [s("div", un, P(u.actionsLabel), 1), (w(!0), o(e, null, k(u.actions, (e) => (w(), o("div", {
1752
+ key: e.id,
1753
+ id: F(e),
1754
+ class: _(["g-search-option g-search-action", { "g-search-option-active": z.value?.optionId === F(e) }]),
1755
+ role: "option",
1756
+ onMousedown: n[2] ||= q(() => {}, ["prevent"]),
1757
+ onClick: (t) => se(e),
1758
+ "aria-selected": z.value?.optionId === F(e)
1759
+ }, [A(t.$slots, "action", { action: e }, () => [p(e) ? (w(), o("span", fn, [A(t.$slots, "action-icon", { action: e }, () => [m(e) ? (w(), o("span", {
1760
+ key: 0,
1761
+ class: _(m(e) + " g-search-action-icon-span")
1762
+ }, null, 2)) : (w(), o("svg", pn, [...n[4] ||= [s("path", {
1763
+ fill: "currentColor",
1764
+ d: "M566.6 342.6C579.1 330.1 579.1 309.8 566.6 297.3L406.6 137.3C394.1 124.8 373.8 124.8 361.3 137.3C348.8 149.8 348.8 170.1 361.3 182.6L466.7 288L96 288C78.3 288 64 302.3 64 320C64 337.7 78.3 352 96 352L466.7 352L361.3 457.4C348.8 469.9 348.8 490.2 361.3 502.7C373.8 515.2 394.1 515.2 406.6 502.7L566.6 342.7z"
1765
+ }, null, -1)]]))])])) : a("", !0), s("span", mn, P(e.label), 1)])], 42, dn))), 128))], 8, ln)) : a("", !0)], 8, rn)])) : a("", !0)
1766
+ ], 8, Zt));
1678
1767
  }
1679
1768
  });
1680
1769
  // src/compose/useWebComponentSidebar.ts
1681
- function on(e) {
1770
+ function gn(e) {
1682
1771
  return e.replace(/[^a-zA-Z0-9_-]/g, "-");
1683
1772
  }
1684
- function sn() {
1773
+ function _n() {
1685
1774
  let e = globalThis;
1686
1775
  return e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__;
1687
1776
  }
1688
- function cn(e = "default", t) {
1689
- let n = sn(), r = e || "default", i = typeof t == "string" ? t : t?.value, a = i && i.trim() ? i : "(max-width: 800px)";
1777
+ function vn(e = "default", t) {
1778
+ let n = _n(), r = e || "default", i = typeof t == "string" ? t : t?.value, a = i && i.trim() ? i : "(max-width: 800px)";
1690
1779
  if (!n.has(r)) {
1691
- let e = on(r), t = O(a);
1780
+ let e = gn(r), t = O(a);
1692
1781
  n.set(r, {
1693
1782
  id: `g-wc-sidebar-${e}`,
1694
1783
  open: O(!1),
@@ -1724,16 +1813,16 @@ function cn(e = "default", t) {
1724
1813
  }), o;
1725
1814
  }
1726
1815
  // src/components/hamburger/GHamburgerMenuButton.vue?vue&type=script&setup=true&lang.ts
1727
- var ln = [
1816
+ var yn = [
1728
1817
  "id",
1729
1818
  "aria-controls",
1730
1819
  "aria-expanded",
1731
1820
  "aria-haspopup",
1732
1821
  "aria-label"
1733
- ], un = {
1822
+ ], bn = {
1734
1823
  key: 0,
1735
1824
  class: "g-hamburger-label"
1736
- }, dn = /* @__PURE__ */ u({
1825
+ }, xn = /* @__PURE__ */ u({
1737
1826
  __name: "GHamburgerMenuButton",
1738
1827
  props: {
1739
1828
  id: {},
@@ -1766,9 +1855,9 @@ var ln = [
1766
1855
  xmlns: "http://www.w3.org/2000/svg",
1767
1856
  viewBox: "0 0 51.26 51.26",
1768
1857
  role: "none"
1769
- }, [s("g", { fill: "currentColor" }, [s("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1), e.labelVisible ? (w(), o("span", un, P(e.label), 1)) : a("", !0)], 10, ln));
1858
+ }, [s("g", { fill: "currentColor" }, [s("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1), e.labelVisible ? (w(), o("span", bn, P(e.label), 1)) : a("", !0)], 10, yn));
1770
1859
  }
1771
- }), fn = ["id"], pn = /* @__PURE__ */ u({
1860
+ }), Sn = ["id"], Cn = /* @__PURE__ */ u({
1772
1861
  __name: "GHamburgerMenu",
1773
1862
  props: {
1774
1863
  label: { default: "Main Navigation" },
@@ -1786,7 +1875,7 @@ var ln = [
1786
1875
  },
1787
1876
  emits: ["toggle", "update:modelValue"],
1788
1877
  setup(e, { expose: t, emit: n }) {
1789
- 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);
1878
+ let a = e, o = p("sidebar", void 0) ?? (pe() ? vn(a.sidebarKey, I(a, "mediaQuery")) : void 0), c = n, u = r(() => a.mode === "popover"), d = O(a.modelValue);
1790
1879
  W(I(a, "modelValue"), (e) => {
1791
1880
  d.value = e;
1792
1881
  });
@@ -1808,12 +1897,12 @@ var ln = [
1808
1897
  }
1809
1898
  let x = B(), S = r(() => `${o?.id ?? x}-hamburger`), C = r(() => u.value ? d.value : !!o?.open?.value), T = r(() => u.value ? `${x}-popover` : o ? `${o.id}-sidebar` : void 0);
1810
1899
  function E() {
1811
- return et($e(m.value));
1900
+ return nt(tt(m.value));
1812
1901
  }
1813
1902
  async function D(e) {
1814
1903
  if (e < 0) return !1;
1815
1904
  await g();
1816
- let t = $e(m.value)[e];
1905
+ let t = tt(m.value)[e];
1817
1906
  return t ? (t.focus(), !0) : !1;
1818
1907
  }
1819
1908
  function k() {
@@ -1826,13 +1915,13 @@ var ln = [
1826
1915
  focusItem: D,
1827
1916
  focusTrigger: k,
1828
1917
  getFocusedItemIndex: E
1829
- }), (t, n) => u.value ? (w(), i(ct, {
1918
+ }), (t, n) => u.value ? (w(), i(ut, {
1830
1919
  key: 0,
1831
1920
  minimal: "",
1832
1921
  "model-value": d.value,
1833
1922
  "onUpdate:modelValue": h
1834
1923
  }, {
1835
- trigger: K(() => [l(dn, {
1924
+ trigger: K(() => [l(xn, {
1836
1925
  ref_key: "triggerButtonRef",
1837
1926
  ref: f,
1838
1927
  id: S.value,
@@ -1855,9 +1944,9 @@ var ln = [
1855
1944
  ref_key: "popoverMenuRef",
1856
1945
  ref: m,
1857
1946
  class: "g-hamburger-popover"
1858
- }, [A(t.$slots, "default")], 8, fn)]),
1947
+ }, [A(t.$slots, "default")], 8, Sn)]),
1859
1948
  _: 3
1860
- }, 8, ["model-value"])) : (w(), i(dn, {
1949
+ }, 8, ["model-value"])) : (w(), i(xn, {
1861
1950
  key: 1,
1862
1951
  ref_key: "triggerButtonRef",
1863
1952
  ref: f,
@@ -1878,16 +1967,16 @@ var ln = [
1878
1967
  "collapsible"
1879
1968
  ]));
1880
1969
  }
1881
- }), mn = { class: "g-app-header__brand" }, hn = {
1970
+ }), wn = { class: "g-app-header__brand" }, Tn = {
1882
1971
  class: "g-app-header__brand-text",
1883
1972
  href: "/"
1884
- }, gn = {
1973
+ }, En = {
1885
1974
  key: 0,
1886
1975
  class: "g-app-header__block-i-container"
1887
- }, _n = { class: "g-app-header__title" }, vn = ["aria-label"], yn = ["aria-label"], bn = {
1976
+ }, Dn = { class: "g-app-header__title" }, On = ["aria-label"], kn = ["aria-label"], An = {
1888
1977
  key: 4,
1889
1978
  class: "g-app-header__app-controls-wrap"
1890
- }, xn = /* @__PURE__ */ u({
1979
+ }, jn = /* @__PURE__ */ u({
1891
1980
  __name: "GAppHeader",
1892
1981
  props: {
1893
1982
  illinois: {
@@ -1901,13 +1990,13 @@ var ln = [
1901
1990
  setup(e) {
1902
1991
  let t = ce(I(e, "navigationMediaQuery"), { ssrWidth: 1e3 }), n = U("desktopNavigationRef"), r = U("mobileNavigationRef");
1903
1992
  function c() {
1904
- return $e(n.value);
1993
+ return tt(n.value);
1905
1994
  }
1906
1995
  function l(e) {
1907
1996
  e < 0 || c()[e]?.focus();
1908
1997
  }
1909
1998
  return W(t, async (e) => {
1910
- let t = e ? et(c()) : r.value?.getFocusedItemIndex() ?? -1;
1999
+ let t = e ? nt(c()) : r.value?.getFocusedItemIndex() ?? -1;
1911
2000
  if (t !== -1) {
1912
2001
  if (e) {
1913
2002
  if (t < 0) return;
@@ -1916,8 +2005,8 @@ var ln = [
1916
2005
  }
1917
2006
  }), (c, l) => (w(), o("header", { class: _(["g-app-header", { "g-app-header--no-app-controls": !c.$slots["app-controls"] }]) }, [
1918
2007
  l[1] ||= s("div", { class: "g-app-header__background" }, [s("div", { class: "g-app-header__background-pattern" }), s("div", { class: "g-app-header__background-gradient" })], -1),
1919
- s("div", mn, [A(c.$slots, "left", {}, () => [s("a", hn, P(e.brand), 1)])]),
1920
- e.illinois ? (w(), o("div", gn, [...l[0] ||= [s("svg", {
2008
+ s("div", wn, [A(c.$slots, "left", {}, () => [s("a", Tn, P(e.brand), 1)])]),
2009
+ e.illinois ? (w(), o("div", En, [...l[0] ||= [s("svg", {
1921
2010
  class: "g-app-header__block-i",
1922
2011
  role: "img",
1923
2012
  width: "55",
@@ -1934,14 +2023,14 @@ var ln = [
1934
2023
  d: "M42.1 18.1h9V3H3v15h9c1.7 0 3 1.3 3 3v36.1c0 1.7-1.3 3-3 3H3v15h48.1v-15h-9c-1.7 0-3-1.3-3-3v-36c0-1.7 1.4-3 3-3z"
1935
2024
  })
1936
2025
  ], -1)]])) : A(c.$slots, "icon", {}, void 0, void 0, 1),
1937
- s("div", _n, [A(c.$slots, "title")]),
2026
+ s("div", Dn, [A(c.$slots, "title")]),
1938
2027
  c.$slots.navigation && !R(t) ? (w(), o("nav", {
1939
2028
  key: 2,
1940
2029
  ref_key: "desktopNavigationRef",
1941
2030
  ref: n,
1942
2031
  class: "g-app-header__navigation",
1943
2032
  "aria-label": e.navigationLabel
1944
- }, [A(c.$slots, "navigation")], 8, vn)) : c.$slots.navigation ? (w(), i(pn, {
2033
+ }, [A(c.$slots, "navigation")], 8, On)) : c.$slots.navigation ? (w(), i(Cn, {
1945
2034
  key: 3,
1946
2035
  ref_key: "mobileNavigationRef",
1947
2036
  ref: r,
@@ -1952,16 +2041,16 @@ var ln = [
1952
2041
  default: K(() => [s("nav", {
1953
2042
  class: "g-app-header__navigation-popover",
1954
2043
  "aria-label": e.navigationLabel
1955
- }, [A(c.$slots, "navigation")], 8, yn)]),
2044
+ }, [A(c.$slots, "navigation")], 8, kn)]),
1956
2045
  _: 3
1957
2046
  }, 8, ["label"])) : a("", !0),
1958
- c.$slots["app-controls"] ? (w(), o("div", bn, [A(c.$slots, "app-controls")])) : a("", !0)
2047
+ c.$slots["app-controls"] ? (w(), o("div", An, [A(c.$slots, "app-controls")])) : a("", !0)
1959
2048
  ], 2));
1960
2049
  }
1961
2050
  });
1962
2051
  // src/compose/useScrollRestore.ts
1963
- function Sn(e, t) {
1964
- 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;
2052
+ function Mn(e, t) {
2053
+ let n = t ? de(`${t}:scroll`, 0, { writeDefaults: !1 }) : null, r = O(!!(n?.value && n.value > 0)), i = null, a = null, o = null, s = !1;
1965
2054
  function c(e) {
1966
2055
  let t = window.getComputedStyle(e);
1967
2056
  return t.overflowY === "auto" || t.overflowY === "scroll";
@@ -2016,7 +2105,7 @@ function Sn(e, t) {
2016
2105
  }), { isPendingScrollRestore: r };
2017
2106
  }
2018
2107
  // src/components/GSidebar.vue?vue&type=script&setup=true&lang.ts
2019
- var Cn = ["id"], wn = /* @__PURE__ */ u({
2108
+ var Nn = ["id"], Pn = /* @__PURE__ */ u({
2020
2109
  __name: "GSidebar",
2021
2110
  props: {
2022
2111
  backgroundColor: { default: "" },
@@ -2030,7 +2119,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2030
2119
  storageKey: {}
2031
2120
  },
2032
2121
  setup(e) {
2033
- 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" : "var(--g-sidebar-background-image, none)"), 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);
2122
+ let t = e, n = p("sidebar", () => void 0, !0) ?? (pe() ? vn(t.sidebarKey, I(t, "mediaQuery")) : void 0), i = r(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "var(--g-sidebar-background-image, none)"), 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 } = Mn(U("sidebar-ref"), t.storageKey);
2034
2123
  function u(e) {
2035
2124
  e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
2036
2125
  }
@@ -2051,13 +2140,13 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2051
2140
  width: "var(--g-sidebar-width)"
2052
2141
  }),
2053
2142
  onKeydown: u
2054
- }, [A(t.$slots, "default")], 46, Cn));
2143
+ }, [A(t.$slots, "default")], 46, Nn));
2055
2144
  }
2056
- }), Tn = ["id"], En = { class: "g-sidebar-menu__list" }, Dn = [
2145
+ }), Fn = ["id"], In = { class: "g-sidebar-menu__list" }, Ln = [
2057
2146
  "href",
2058
2147
  "aria-current",
2059
2148
  "onClick"
2060
- ], On = /* @__PURE__ */ u({
2149
+ ], Rn = /* @__PURE__ */ u({
2061
2150
  __name: "GSidebarMenu",
2062
2151
  props: /*@__PURE__*/ m({
2063
2152
  heading: {},
@@ -2105,13 +2194,13 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2105
2194
  key: 0,
2106
2195
  id: R(y),
2107
2196
  class: "g-sidebar-menu__title"
2108
- }, P(t.heading), 9, Tn)) : a("", !0),
2197
+ }, P(t.heading), 9, Fn)) : a("", !0),
2109
2198
  l[0] ||= s("div", { class: "g-sidebar-menu__divider" }, null, -1),
2110
2199
  s("div", {
2111
2200
  class: "g-sidebar-menu__content",
2112
2201
  ref_key: "content",
2113
2202
  ref: f
2114
- }, [s("ul", En, [(w(!0), o(e, null, k(t.items, (e) => (w(), o("li", {
2203
+ }, [s("ul", In, [(w(!0), o(e, null, k(t.items, (e) => (w(), o("li", {
2115
2204
  key: e.href || e.to,
2116
2205
  class: "g-sidebar-menu__item",
2117
2206
  ref_for: !0,
@@ -2129,24 +2218,24 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2129
2218
  href: e.href || e.to || "#",
2130
2219
  "aria-current": u.value === (e.href || "") ? "location" : void 0,
2131
2220
  onClick: (t) => v(t, e)
2132
- }, P(e.label), 11, Dn))]))), 128))])], 512)
2221
+ }, P(e.label), 11, Ln))]))), 128))])], 512)
2133
2222
  ], 16));
2134
2223
  }
2135
- }), kn = {
2224
+ }), zn = {
2136
2225
  mounted(e, t) {
2137
- let n = O(null), r = O(!1), i = O(!1), a = O(t.value), o = null, s = !1, c = dt(e), l = () => {
2138
- n.value || (n.value = ft(a.value, c), pt(n.value), o = new ResizeObserver(() => {
2139
- n.value && (r.value || i.value) && mt(e, n.value);
2226
+ let n = O(null), r = O(!1), i = O(!1), a = O(t.value), o = null, s = !1, c = pt(e), l = () => {
2227
+ n.value || (n.value = mt(a.value, c), ht(n.value), o = new ResizeObserver(() => {
2228
+ n.value && (r.value || i.value) && gt(e, n.value);
2140
2229
  }), o.observe(n.value));
2141
2230
  };
2142
2231
  G(() => {
2143
2232
  n.value && (n.value.textContent = a.value);
2144
2233
  });
2145
2234
  let u = () => {
2146
- n.value && (r.value || i.value) && mt(e, n.value);
2235
+ n.value && (r.value || i.value) && gt(e, n.value);
2147
2236
  };
2148
2237
  G(() => {
2149
- r.value || i.value ? (l(), n.value && mt(e, n.value), s ||= (window.addEventListener("scroll", u, { capture: !0 }), !0)) : (s &&= (window.removeEventListener("scroll", u, { capture: !0 }), !1), n.value && (ht(n.value), setTimeout(() => {
2238
+ r.value || i.value ? (l(), n.value && gt(e, n.value), s ||= (window.addEventListener("scroll", u, { capture: !0 }), !0)) : (s &&= (window.removeEventListener("scroll", u, { capture: !0 }), !1), n.value && (_t(n.value), setTimeout(() => {
2150
2239
  e.dispatchEvent(new CustomEvent("tooltip-hide"));
2151
2240
  }, 150)));
2152
2241
  });
@@ -2184,7 +2273,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2184
2273
  let t = e._v_gtooltip;
2185
2274
  t && t.tooltip && t.tooltip.value && (t.resizeObserver && t.resizeObserver.disconnect(), t.tooltip.value.remove(), t.tooltip.value = null), t && t.onScroll && window.removeEventListener("scroll", t.onScroll, { capture: !0 }), e.removeEventListener("mouseenter", t.onMouseEnter), e.removeEventListener("mouseleave", t.onMouseLeave), e.removeEventListener("focus", t.onFocus), e.removeEventListener("blur", t.onBlur), e.removeEventListener("keydown", t.onKeyDown), e.removeAttribute("aria-describedby");
2186
2275
  }
2187
- }, An = { class: "g-clipboard-text" }, jn = /* @__PURE__ */ u({
2276
+ }, Bn = { class: "g-clipboard-text" }, Vn = /* @__PURE__ */ u({
2188
2277
  __name: "GClipboard",
2189
2278
  props: {
2190
2279
  text: {},
@@ -2192,12 +2281,12 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2192
2281
  copyLabel: {}
2193
2282
  },
2194
2283
  setup(t) {
2195
- 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 = () => {
2284
+ let n = t, r = zn, { text: i, copy: l, copied: u, isSupported: d } = re({ source: n.text }), f = O(n.copyLabel ?? "Copy to clipboard"), p = () => {
2196
2285
  d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
2197
2286
  }, m = () => {
2198
2287
  f.value = n.copyLabel ?? "Copy to clipboard";
2199
2288
  };
2200
- return (i, l) => (w(), o("div", An, [t.hideText ? a("", !0) : (w(), o(e, { key: 0 }, [c(P(n.text), 1)], 64)), te((w(), o("button", {
2289
+ return (i, l) => (w(), o("div", Bn, [t.hideText ? a("", !0) : (w(), o(e, { key: 0 }, [c(P(n.text), 1)], 64)), te((w(), o("button", {
2201
2290
  type: "button",
2202
2291
  "aria-label": "Copy",
2203
2292
  onClick: p,
@@ -2214,15 +2303,15 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2214
2303
  d: "M480 400L288 400C279.2 400 272 392.8 272 384L272 128C272 119.2 279.2 112 288 112L421.5 112C425.7 112 429.8 113.7 432.8 116.7L491.3 175.2C494.3 178.2 496 182.3 496 186.5L496 384C496 392.8 488.8 400 480 400zM288 448L480 448C515.3 448 544 419.3 544 384L544 186.5C544 169.5 537.3 153.2 525.3 141.2L466.7 82.7C454.7 70.7 438.5 64 421.5 64L288 64C252.7 64 224 92.7 224 128L224 384C224 419.3 252.7 448 288 448zM160 192C124.7 192 96 220.7 96 256L96 512C96 547.3 124.7 576 160 576L352 576C387.3 576 416 547.3 416 512L416 496L368 496L368 512C368 520.8 360.8 528 352 528L160 528C151.2 528 144 520.8 144 512L144 256C144 247.2 151.2 240 160 240L176 240L176 192L160 192z"
2215
2304
  })], -1)]], 32)), [[R(r), f.value]])]));
2216
2305
  }
2217
- }), Mn = { class: "g-history-scroller-wrapper" }, Nn = {
2306
+ }), Hn = { class: "g-history-scroller-wrapper" }, Un = {
2218
2307
  key: 0,
2219
2308
  class: "g-history-shadow g-history-shadow--top",
2220
2309
  "aria-hidden": "true"
2221
- }, Pn = {
2310
+ }, Wn = {
2222
2311
  key: 1,
2223
2312
  class: "g-history-shadow g-history-shadow--bottom",
2224
2313
  "aria-hidden": "true"
2225
- }, Fn = ["role", "aria-label"], In = /* @__PURE__ */ u({
2314
+ }, Gn = ["role", "aria-label"], Kn = /* @__PURE__ */ u({
2226
2315
  __name: "GHistoryScroller",
2227
2316
  props: {
2228
2317
  label: {},
@@ -2246,17 +2335,17 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2246
2335
  }
2247
2336
  x(() => {
2248
2337
  g(f);
2249
- }), le(i, () => {
2338
+ }), ue(i, () => {
2250
2339
  u.value && f();
2251
- }), le(c, () => {
2340
+ }), ue(c, () => {
2252
2341
  u.value && f();
2253
2342
  }), W(() => n.entries, async () => {
2254
2343
  u.value && (await g(), f());
2255
2344
  });
2256
2345
  let m = r(() => [...n.entries].reverse());
2257
- return (n, r) => (w(), o("div", Mn, [
2258
- d.value ? a("", !0) : (w(), o("div", Nn)),
2259
- u.value ? a("", !0) : (w(), o("div", Pn)),
2346
+ return (n, r) => (w(), o("div", Hn, [
2347
+ d.value ? a("", !0) : (w(), o("div", Un)),
2348
+ u.value ? a("", !0) : (w(), o("div", Wn)),
2260
2349
  s("div", {
2261
2350
  ref_key: "scrollerRef",
2262
2351
  ref: i,
@@ -2264,7 +2353,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2264
2353
  role: t.label ? "log" : void 0,
2265
2354
  "aria-label": t.label,
2266
2355
  onScroll: p
2267
- }, [l(Q, {
2356
+ }, [l($, {
2268
2357
  class: _(["g-scroll-to-bottom-btn", { "scroll-to-bottom-btn--hidden": u.value }]),
2269
2358
  size: "small",
2270
2359
  type: "button",
@@ -2291,31 +2380,31 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2291
2380
  key: e.id,
2292
2381
  class: "g-history-entry",
2293
2382
  tabindex: "-1"
2294
- }, [A(n.$slots, "default", { entry: e })]))), 128))], 512)], 40, Fn)
2383
+ }, [A(n.$slots, "default", { entry: e })]))), 128))], 512)], 40, Gn)
2295
2384
  ]));
2296
2385
  }
2297
- }), Ln = { class: "g-three-way-toggle-wrapper" }, Rn = { class: "g-three-way-toggle-control" }, zn = ["id"], Bn = [
2386
+ }), qn = { class: "g-three-way-toggle-wrapper" }, Jn = { class: "g-three-way-toggle-control" }, Yn = ["id"], Xn = [
2298
2387
  "aria-labelledby",
2299
2388
  "aria-describedby",
2300
2389
  "disabled",
2301
2390
  "aria-invalid",
2302
2391
  "aria-errormessage"
2303
- ], Vn = { key: 0 }, Hn = { key: 1 }, Un = { key: 2 }, Wn = ["for"], Gn = [
2392
+ ], Zn = { key: 0 }, Qn = { key: 1 }, $n = { key: 2 }, er = ["for"], tr = [
2304
2393
  "id",
2305
2394
  "name",
2306
2395
  "checked",
2307
2396
  "disabled"
2308
- ], Kn = ["for"], qn = [
2397
+ ], nr = ["for"], rr = [
2309
2398
  "id",
2310
2399
  "name",
2311
2400
  "checked",
2312
2401
  "disabled"
2313
- ], Jn = ["for"], Yn = [
2402
+ ], ir = ["for"], ar = [
2314
2403
  "id",
2315
2404
  "name",
2316
2405
  "checked",
2317
2406
  "disabled"
2318
- ], Xn = ["id"], Zn = /* @__PURE__ */ u({
2407
+ ], or = ["id"], sr = /* @__PURE__ */ u({
2319
2408
  __name: "GThreeWayToggle",
2320
2409
  props: /*@__PURE__*/ m({
2321
2410
  label: {},
@@ -2349,10 +2438,10 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2349
2438
  function b(e) {
2350
2439
  n.disabled || (e.key === "n" || e.key === "N" ? (u(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y") && (u(!0), e.preventDefault()));
2351
2440
  }
2352
- return (t, n) => (w(), o("div", Ln, [s("div", Rn, [s("span", {
2441
+ return (t, n) => (w(), o("div", qn, [s("div", Jn, [s("span", {
2353
2442
  class: "g-label",
2354
2443
  id: R(p)
2355
- }, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, zn), s("fieldset", {
2444
+ }, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, Yn), s("fieldset", {
2356
2445
  class: _(["g-three-way-toggle", { "g-has-error": e.error }]),
2357
2446
  role: "radiogroup",
2358
2447
  "aria-labelledby": R(p),
@@ -2364,7 +2453,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2364
2453
  s("span", {
2365
2454
  class: _(["g-toggle-thumb", y.value]),
2366
2455
  "aria-hidden": "true"
2367
- }, [i.value === !1 ? (w(), o("span", Vn, "NO")) : i.value === !0 ? (w(), o("span", Hn, "YES")) : (w(), o("span", Un))], 2),
2456
+ }, [i.value === !1 ? (w(), o("span", Zn, "NO")) : i.value === !0 ? (w(), o("span", Qn, "YES")) : (w(), o("span", $n))], 2),
2368
2457
  s("label", {
2369
2458
  for: R(h),
2370
2459
  class: "g-toggle-option g-left",
@@ -2378,7 +2467,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2378
2467
  value: "false",
2379
2468
  disabled: e.disabled,
2380
2469
  onChange: n[0] ||= (e) => d(!1)
2381
- }, null, 40, Gn), n[5] ||= s("span", { class: "ilw-sr-only" }, "No", -1)], 40, Wn),
2470
+ }, null, 40, tr), n[5] ||= s("span", { class: "ilw-sr-only" }, "No", -1)], 40, er),
2382
2471
  s("label", {
2383
2472
  for: R(g),
2384
2473
  class: "g-toggle-option g-center",
@@ -2390,7 +2479,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2390
2479
  checked: i.value === null,
2391
2480
  disabled: e.disabled,
2392
2481
  onChange: n[2] ||= (e) => d(null)
2393
- }, null, 40, qn), n[6] ||= s("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, Kn),
2482
+ }, null, 40, rr), n[6] ||= s("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, nr),
2394
2483
  s("label", {
2395
2484
  for: R(v),
2396
2485
  class: "g-toggle-option g-right",
@@ -2404,54 +2493,54 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2404
2493
  checked: i.value === !0,
2405
2494
  disabled: e.disabled,
2406
2495
  onChange: n[3] ||= (e) => d(!0)
2407
- }, null, 40, Yn), n[7] ||= s("span", { class: "ilw-sr-only" }, "Yes", -1)], 40, Jn)
2408
- ], 2)], 10, Bn)]), e.error ? (w(), o("div", {
2496
+ }, null, 40, ar), n[7] ||= s("span", { class: "ilw-sr-only" }, "Yes", -1)], 40, ir)
2497
+ ], 2)], 10, Xn)]), e.error ? (w(), o("div", {
2409
2498
  key: 0,
2410
2499
  id: `${R(p)}-error`,
2411
2500
  class: "g-form-error",
2412
2501
  role: "alert",
2413
2502
  "aria-atomic": "true"
2414
- }, P(e.error), 9, Xn)) : a("", !0)]));
2503
+ }, P(e.error), 9, or)) : a("", !0)]));
2415
2504
  }
2416
- }), Qn = {
2505
+ }), cr = {
2417
2506
  ref: "tableBodyRef",
2418
2507
  class: "efficient-table-body"
2419
- }, $n = ["aria-rowindex"], er = {
2508
+ }, lr = ["aria-rowindex"], ur = {
2420
2509
  key: 0,
2421
2510
  class: "table-group-checkbox"
2422
- }, tr = ["colspan"], nr = [
2511
+ }, dr = ["colspan"], fr = [
2423
2512
  "aria-rowindex",
2424
2513
  "onMousedown",
2425
2514
  "onClick"
2426
- ], rr = [
2515
+ ], pr = [
2427
2516
  "checked",
2428
2517
  "onClick",
2429
2518
  "aria-label",
2430
2519
  "name"
2431
- ], ir = ["id"], ar = {
2520
+ ], mr = ["id"], hr = {
2432
2521
  key: 0,
2433
2522
  class: "editable-cell"
2434
- }, or = {
2523
+ }, gr = {
2435
2524
  key: 0,
2436
2525
  class: "cell-prefix"
2437
- }, sr = [
2526
+ }, _r = [
2438
2527
  "value",
2439
2528
  "onChange",
2440
2529
  "aria-labelledby",
2441
2530
  "aria-invalid",
2442
2531
  "aria-errormessage",
2443
2532
  "name"
2444
- ], cr = ["value"], lr = [
2533
+ ], vr = ["value"], yr = [
2445
2534
  "value",
2446
2535
  "onInput",
2447
2536
  "aria-labelledby",
2448
2537
  "aria-invalid",
2449
2538
  "aria-errormessage",
2450
2539
  "name"
2451
- ], ur = {
2540
+ ], br = {
2452
2541
  key: 3,
2453
2542
  class: "cell-suffix"
2454
- }, dr = ["id"], fr = /* @__PURE__ */ u({
2543
+ }, xr = ["id"], Sr = /* @__PURE__ */ u({
2455
2544
  __name: "GTableBody",
2456
2545
  props: {
2457
2546
  data: {},
@@ -2524,13 +2613,13 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2524
2613
  function E(e, t) {
2525
2614
  if (l.changeTracker) return l.changeTracker.getError(e.key, t.key);
2526
2615
  }
2527
- 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", {
2616
+ return (n, r) => (w(), o("tbody", cr, [(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", {
2528
2617
  key: 0,
2529
2618
  "aria-rowindex": t.startIndex + l + 2
2530
- }, [t.bulkSelectionEnabled ? (w(), o("td", er)) : a("", !0), s("td", {
2619
+ }, [t.bulkSelectionEnabled ? (w(), o("td", ur)) : a("", !0), s("td", {
2531
2620
  colspan: x.value,
2532
2621
  class: "table-group-row"
2533
- }, [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", {
2622
+ }, [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, dr)], 8, lr)) : a("", !0), s("tr", {
2534
2623
  class: _([
2535
2624
  "efficient-table-row",
2536
2625
  {
@@ -2553,7 +2642,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2553
2642
  "aria-label": `Select row ${n.key}`,
2554
2643
  name: `row-${n.key}-checkbox`,
2555
2644
  class: "g-bulk-select-checkbox"
2556
- }, null, 8, rr)])) : a("", !0), (w(!0), o(e, null, k(t.columns, (r) => (w(), o("td", {
2645
+ }, null, 8, pr)])) : a("", !0), (w(!0), o(e, null, k(t.columns, (r) => (w(), o("td", {
2557
2646
  key: r.key,
2558
2647
  id: S(r) ? `${t.tableId}-td-${n.key}-${String(r.key)}` : void 0,
2559
2648
  class: _([
@@ -2562,8 +2651,8 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2562
2651
  T(n, r) ? "g-cell-error" : "",
2563
2652
  typeof r.tdClass == "function" ? r.tdClass(n) : r.tdClass
2564
2653
  ])
2565
- }, [r.editable ? (w(), o("div", ar, [
2566
- r.editable.prefix ? (w(), o("span", or, P(r.editable.prefix), 1)) : a("", !0),
2654
+ }, [r.editable ? (w(), o("div", hr, [
2655
+ r.editable.prefix ? (w(), o("span", gr, P(r.editable.prefix), 1)) : a("", !0),
2567
2656
  r.editable.type === "select" ? (w(), o("select", {
2568
2657
  key: 1,
2569
2658
  value: n[r.key],
@@ -2576,7 +2665,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2576
2665
  }, [(w(!0), o(e, null, k(r.editable.options, (e) => (w(), o("option", {
2577
2666
  key: e.value,
2578
2667
  value: e.value
2579
- }, P(e.label), 9, cr))), 128))], 40, sr)) : (w(), o("input", h({
2668
+ }, P(e.label), 9, vr))), 128))], 40, _r)) : (w(), o("input", h({
2580
2669
  key: 2,
2581
2670
  value: n[r.key]
2582
2671
  }, { ref_for: !0 }, r.editable.inputAttributes, {
@@ -2590,36 +2679,36 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
2590
2679
  paddingLeft: r.editable.prefix ? "1.5rem" : void 0,
2591
2680
  paddingRight: r.editable.suffix ? "2rem" : void 0
2592
2681
  }
2593
- }), null, 16, lr)),
2594
- r.editable.suffix ? (w(), o("span", ur, P(r.editable.suffix), 1)) : a("", !0)
2682
+ }), null, 16, yr)),
2683
+ r.editable.suffix ? (w(), o("span", br, P(r.editable.suffix), 1)) : a("", !0)
2595
2684
  ])) : 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", {
2596
2685
  key: 3,
2597
2686
  role: "alert",
2598
2687
  class: "g-cell-error-message",
2599
2688
  id: `${t.tableId}-error-${n.key}-${String(r.key)}`
2600
- }, P(E(n, r)), 9, dr)) : a("", !0)], 10, ir))), 128))], 42, nr)], 64))), 128))], 512));
2689
+ }, P(E(n, r)), 9, xr)) : a("", !0)], 10, mr))), 128))], 42, fr)], 64))), 128))], 512));
2601
2690
  }
2602
2691
  });
2603
2692
  // src/components/table/columnFilters.ts
2604
- function pr(e) {
2693
+ function Cr(e) {
2605
2694
  return e.filter?.key ?? e.key;
2606
2695
  }
2607
- function mr(e) {
2696
+ function wr(e) {
2608
2697
  return e == null || e === "";
2609
2698
  }
2610
- function hr(e, t) {
2699
+ function Tr(e, t) {
2611
2700
  let n = e.find((e) => e.value === t);
2612
2701
  if (n) return n.value;
2613
2702
  let r = String(t), i = e.find((e) => String(e.value) === r);
2614
2703
  return i ? i.value : t;
2615
2704
  }
2616
- function gr(e) {
2617
- return mr(e) ? "" : Array.isArray(e) ? e.join(",") : String(e);
2705
+ function Er(e) {
2706
+ return wr(e) ? "" : Array.isArray(e) ? e.join(",") : String(e);
2618
2707
  }
2619
- function _r(e) {
2620
- return mr(e) ? [] : (Array.isArray(e) ? e : [e]).filter((e) => !mr(e));
2708
+ function Dr(e) {
2709
+ return wr(e) ? [] : (Array.isArray(e) ? e : [e]).filter((e) => !wr(e));
2621
2710
  }
2622
- function vr(e, t) {
2711
+ function Or(e, t) {
2623
2712
  switch (t) {
2624
2713
  case "contains": return `%${e}%`;
2625
2714
  case "startsWith": return `${e}%`;
@@ -2627,57 +2716,57 @@ function vr(e, t) {
2627
2716
  default: return e;
2628
2717
  }
2629
2718
  }
2630
- function yr(e, t) {
2719
+ function kr(e, t) {
2631
2720
  switch (e.type) {
2632
- case "search": return gr(t);
2721
+ case "search": return Er(t);
2633
2722
  case "select": {
2634
- if (mr(t) || Array.isArray(t) && t.length === 0) return;
2723
+ if (wr(t) || Array.isArray(t) && t.length === 0) return;
2635
2724
  let n = Array.isArray(t) ? t.join(",") : t;
2636
- return hr(e.options, n);
2725
+ return Tr(e.options, n);
2637
2726
  }
2638
- case "multi-select": return _r(t).map((t) => hr(e.options, t));
2727
+ case "multi-select": return Dr(t).map((t) => Tr(e.options, t));
2639
2728
  case "toggle": return t === !0 || t === "true";
2640
2729
  }
2641
2730
  }
2642
- function br(e, t) {
2731
+ function Ar(e, t) {
2643
2732
  switch (e.type) {
2644
2733
  case "search": return typeof t == "string" && t !== "" ? t : void 0;
2645
- case "select": return mr(t) ? void 0 : t;
2734
+ case "select": return wr(t) ? void 0 : t;
2646
2735
  case "multi-select": return Array.isArray(t) ? [...t] : void 0;
2647
2736
  case "toggle": return t === !0 || void 0;
2648
2737
  }
2649
2738
  }
2650
- function xr(e, t) {
2651
- let n = yr(e, t);
2652
- return Array.isArray(n) ? n.length > 0 : e.type === "toggle" ? n === !0 : !mr(n);
2739
+ function jr(e, t) {
2740
+ let n = kr(e, t);
2741
+ return Array.isArray(n) ? n.length > 0 : e.type === "toggle" ? n === !0 : !wr(n);
2653
2742
  }
2654
- function Sr(e, t) {
2743
+ function Mr(e, t) {
2655
2744
  switch (e.type) {
2656
2745
  case "search": {
2657
- let n = gr(t).trim();
2658
- return n ? e.transform ? e.transform(n) : vr(n, e.match ?? "exact") : void 0;
2746
+ let n = Er(t).trim();
2747
+ return n ? e.transform ? e.transform(n) : Or(n, e.match ?? "exact") : void 0;
2659
2748
  }
2660
2749
  case "select": {
2661
- let n = yr(e, t);
2662
- return mr(n) || Array.isArray(n) ? void 0 : e.transform ? e.transform(n) : n;
2750
+ let n = kr(e, t);
2751
+ return wr(n) || Array.isArray(n) ? void 0 : e.transform ? e.transform(n) : n;
2663
2752
  }
2664
2753
  case "multi-select": {
2665
- let n = _r(t).map((t) => hr(e.options, t));
2754
+ let n = Dr(t).map((t) => Tr(e.options, t));
2666
2755
  return n.length === 0 ? void 0 : e.transform ? e.transform(n) : n;
2667
2756
  }
2668
- case "toggle": return yr(e, t) === !0 ? !e.transform || e.transform(!0) : void 0;
2757
+ case "toggle": return kr(e, t) === !0 ? !e.transform || e.transform(!0) : void 0;
2669
2758
  }
2670
2759
  }
2671
2760
  // src/components/GMultiSelect.vue?vue&type=script&setup=true&lang.ts
2672
- var Cr = ["id", "for"], wr = {
2761
+ var Nr = ["id", "for"], Pr = {
2673
2762
  key: 0,
2674
2763
  class: "g-multiselect-required",
2675
2764
  "aria-hidden": "true"
2676
- }, Tr = ["id"], Er = ["aria-labelledby"], Dr = { class: "g-multiselect-chip-label" }, Or = [
2765
+ }, Fr = ["id"], Ir = ["aria-labelledby"], Lr = { class: "g-multiselect-chip-label" }, Rr = [
2677
2766
  "aria-label",
2678
2767
  "disabled",
2679
2768
  "onClick"
2680
- ], kr = [
2769
+ ], zr = [
2681
2770
  "id",
2682
2771
  "value",
2683
2772
  "placeholder",
@@ -2687,26 +2776,26 @@ var Cr = ["id", "for"], wr = {
2687
2776
  "aria-activedescendant",
2688
2777
  "aria-describedby",
2689
2778
  "aria-required"
2690
- ], Ar = ["id"], jr = [
2779
+ ], Br = ["id"], Vr = [
2691
2780
  "id",
2692
2781
  "aria-selected",
2693
2782
  "onClick"
2694
- ], Mr = {
2783
+ ], Hr = {
2695
2784
  class: "g-multiselect-option-check",
2696
2785
  "aria-hidden": "true"
2697
- }, Nr = {
2786
+ }, Ur = {
2698
2787
  key: 0,
2699
2788
  xmlns: "http://www.w3.org/2000/svg",
2700
2789
  viewBox: "0 0 640 640",
2701
2790
  width: "1.25em"
2702
- }, Pr = { class: "g-multiselect-option-text" }, Fr = { class: "g-multiselect-option-label" }, Ir = {
2791
+ }, Wr = { class: "g-multiselect-option-text" }, Gr = { class: "g-multiselect-option-label" }, Kr = {
2703
2792
  key: 0,
2704
2793
  class: "g-multiselect-option-description"
2705
- }, Lr = {
2794
+ }, qr = {
2706
2795
  key: 1,
2707
2796
  "aria-live": "polite",
2708
2797
  class: "g-multiselect-option g-multiselect-no-results"
2709
- }, Rr = /* @__PURE__ */ u({
2798
+ }, Jr = /* @__PURE__ */ u({
2710
2799
  __name: "GMultiSelect",
2711
2800
  props: /*@__PURE__*/ m({
2712
2801
  options: {},
@@ -2738,18 +2827,18 @@ var Cr = ["id", "for"], wr = {
2738
2827
  }),
2739
2828
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
2740
2829
  setup(t, { emit: n }) {
2741
- 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 } = $({
2830
+ 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 } = Me({
2742
2831
  name: i.name,
2743
2832
  value: d,
2744
2833
  errors: I(i, "errors"),
2745
2834
  formKey: i.formKey
2746
- }), { menuPlacement: E, menuStyle: D, isTop: A, scrollOptionIntoView: j } = It({
2835
+ }), { menuPlacement: E, menuStyle: D, isTop: A, scrollOptionIntoView: j } = Rt({
2747
2836
  open: y,
2748
2837
  anchorRef: m,
2749
2838
  listboxRef: v,
2750
2839
  baseId: f,
2751
2840
  activeIndex: b
2752
- }), M = r(() => Ft(i.options)), N = r(() => {
2841
+ }), M = r(() => Lt(i.options)), N = r(() => {
2753
2842
  if (!x.value) return M.value;
2754
2843
  let e = x.value.toLowerCase();
2755
2844
  return M.value.filter((t) => t.label.toLowerCase().includes(e) || i.searchDescription && !!t.description && t.description.toLowerCase().includes(e));
@@ -2787,7 +2876,7 @@ var Cr = ["id", "for"], wr = {
2787
2876
  function ne() {
2788
2877
  i.disabled || y.value || z();
2789
2878
  }
2790
- function re(e) {
2879
+ function J(e) {
2791
2880
  if (S.value) {
2792
2881
  S.value = !1;
2793
2882
  return;
@@ -2795,13 +2884,13 @@ var Cr = ["id", "for"], wr = {
2795
2884
  let t = e.relatedTarget;
2796
2885
  t && v.value?.contains(t) || t && m.value?.contains(t) || H();
2797
2886
  }
2798
- function ie(e) {
2887
+ function Y(e) {
2799
2888
  e.preventDefault();
2800
2889
  }
2801
- function J() {
2890
+ function X() {
2802
2891
  S.value = !0;
2803
2892
  }
2804
- function ae(e) {
2893
+ function re(e) {
2805
2894
  if (i.disabled) return;
2806
2895
  let t = N.value.length - 1;
2807
2896
  switch (e.key) {
@@ -2829,9 +2918,9 @@ var Cr = ["id", "for"], wr = {
2829
2918
  case "Backspace": !x.value && d.value.length > 0 && W(d.value[d.value.length - 1]);
2830
2919
  }
2831
2920
  }
2832
- let Y = r(() => `${f}-input`), X = r(() => `${f}-label`), oe = r(() => `${f}-instructions`), se = r(() => `error-message-${f}`), ce = r(() => {
2921
+ let ie = r(() => `${f}-input`), Z = r(() => `${f}-label`), ae = r(() => `${f}-instructions`), oe = r(() => `error-message-${f}`), se = r(() => {
2833
2922
  let e = [];
2834
- return i.instructions && e.push(oe.value), T.value && e.push(se.value), e.length > 0 ? e.join(" ") : void 0;
2923
+ return i.instructions && e.push(ae.value), T.value && e.push(oe.value), e.length > 0 ? e.join(" ") : void 0;
2835
2924
  });
2836
2925
  return (n, r) => (w(), o("div", { class: _(["g-multiselect-root", {
2837
2926
  "g-multiselect-open": y.value,
@@ -2839,15 +2928,15 @@ var Cr = ["id", "for"], wr = {
2839
2928
  }]) }, [
2840
2929
  t.hiddenLabel ? a("", !0) : (w(), o("label", {
2841
2930
  key: 0,
2842
- id: X.value,
2843
- for: Y.value,
2931
+ id: Z.value,
2932
+ for: ie.value,
2844
2933
  class: "g-multiselect-label"
2845
- }, [c(P(t.label), 1), t.required ? (w(), o("span", wr, " *")) : a("", !0)], 8, Cr)),
2934
+ }, [c(P(t.label), 1), t.required ? (w(), o("span", Pr, " *")) : a("", !0)], 8, Nr)),
2846
2935
  t.instructions ? (w(), o("div", {
2847
2936
  key: 1,
2848
- id: oe.value,
2937
+ id: ae.value,
2849
2938
  class: "g-multiselect-instructions"
2850
- }, P(t.instructions), 9, Tr)) : a("", !0),
2939
+ }, P(t.instructions), 9, Fr)) : a("", !0),
2851
2940
  s("div", {
2852
2941
  ref_key: "controlRef",
2853
2942
  ref: m,
@@ -2857,16 +2946,16 @@ var Cr = ["id", "for"], wr = {
2857
2946
  d.value.length ? (w(), o("ul", {
2858
2947
  key: 0,
2859
2948
  class: "g-multiselect-chips",
2860
- "aria-labelledby": X.value
2949
+ "aria-labelledby": Z.value
2861
2950
  }, [(w(!0), o(e, null, k(d.value, (e) => (w(), o("li", {
2862
2951
  key: e,
2863
2952
  class: "g-multiselect-chip"
2864
- }, [s("span", Dr, P(L(e)), 1), s("button", {
2953
+ }, [s("span", Lr, P(L(e)), 1), s("button", {
2865
2954
  type: "button",
2866
2955
  class: "g-multiselect-chip-remove",
2867
2956
  "aria-label": `Remove ${L(e)}`,
2868
2957
  disabled: t.disabled,
2869
- onMousedown: J,
2958
+ onMousedown: X,
2870
2959
  onClick: q((t) => W(e), ["stop"])
2871
2960
  }, [...r[0] ||= [s("svg", {
2872
2961
  xmlns: "http://www.w3.org/2000/svg",
@@ -2876,14 +2965,14 @@ var Cr = ["id", "for"], wr = {
2876
2965
  }, [s("path", {
2877
2966
  fill: "currentColor",
2878
2967
  d: "m37.84 32.94-7.63-7.63 7.63-7.63a3.24 3.24 0 0 0-4.58-4.58l-7.63 7.63L18 13.1a3.24 3.24 0 0 0-4.58 4.58L21 25.31l-7.62 7.63A3.24 3.24 0 1 0 18 37.52l7.63-7.63 7.63 7.63a3.24 3.24 0 0 0 4.58-4.58Z"
2879
- })], -1)]], 40, Or)]))), 128))], 8, Er)) : a("", !0),
2968
+ })], -1)]], 40, Rr)]))), 128))], 8, Ir)) : a("", !0),
2880
2969
  s("input", h({
2881
2970
  ref_key: "inputRef",
2882
2971
  ref: p,
2883
2972
  type: "text",
2884
2973
  role: "combobox",
2885
2974
  class: "g-multiselect-input",
2886
- id: Y.value,
2975
+ id: ie.value,
2887
2976
  value: x.value,
2888
2977
  placeholder: d.value.length === 0 ? t.placeholder : void 0,
2889
2978
  disabled: t.disabled,
@@ -2894,13 +2983,13 @@ var Cr = ["id", "for"], wr = {
2894
2983
  "aria-controls": R(f) + "-listbox",
2895
2984
  "aria-activedescendant": y.value && N.value.length > 0 ? R(f) + "-option-" + b.value : void 0
2896
2985
  }, t.hiddenLabel ? { "aria-label": t.label } : void 0, {
2897
- "aria-describedby": ce.value,
2986
+ "aria-describedby": se.value,
2898
2987
  "aria-required": t.required ? "true" : void 0,
2899
2988
  onInput: K,
2900
- onKeydown: ae,
2989
+ onKeydown: re,
2901
2990
  onFocus: ne,
2902
- onBlur: re
2903
- }), null, 16, kr),
2991
+ onBlur: J
2992
+ }), null, 16, zr),
2904
2993
  r[2] ||= s("svg", {
2905
2994
  class: "g-multiselect-caret",
2906
2995
  xmlns: "http://www.w3.org/2000/svg",
@@ -2917,7 +3006,7 @@ var Cr = ["id", "for"], wr = {
2917
3006
  id: R(f) + "-listbox",
2918
3007
  role: "listbox",
2919
3008
  "aria-multiselectable": "true"
2920
- }, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": X.value }, {
3009
+ }, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": Z.value }, {
2921
3010
  class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": R(E) === "above" }],
2922
3011
  style: R(D),
2923
3012
  tabindex: "-1"
@@ -2930,31 +3019,31 @@ var Cr = ["id", "for"], wr = {
2930
3019
  "g-multiselect-option--selected": F(e.value)
2931
3020
  }]),
2932
3021
  "aria-selected": F(e.value) ? "true" : "false",
2933
- onMousedown: ie,
3022
+ onMousedown: Y,
2934
3023
  onClick: (e) => U(t)
2935
- }, [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]])
3024
+ }, [s("span", Hr, [F(e.value) ? (w(), o("svg", Ur, [...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", Wr, [s("span", Gr, P(e.label), 1), e.description ? (w(), o("span", Kr, P(e.description), 1)) : a("", !0)])], 42, Vr))), 128)) : (w(), o("div", qr, " No results found. "))], 16, Br), [[ee, y.value]])
2936
3025
  ], 2),
2937
- l(Me, {
3026
+ l(Pe, {
2938
3027
  errors: R(C),
2939
- id: se.value
3028
+ id: oe.value
2940
3029
  }, null, 8, ["errors", "id"])
2941
3030
  ], 2));
2942
3031
  }
2943
- }), zr = {
3032
+ }), Yr = {
2944
3033
  key: 0,
2945
3034
  class: "g-checkbox-group__legend"
2946
- }, Br = {
3035
+ }, Xr = {
2947
3036
  key: 0,
2948
3037
  class: "g-checkbox-group__required",
2949
3038
  "aria-hidden": "true"
2950
- }, Vr = {
3039
+ }, Zr = {
2951
3040
  key: 1,
2952
3041
  class: "g-checkbox-group__label"
2953
- }, Hr = {
3042
+ }, Qr = {
2954
3043
  key: 0,
2955
3044
  class: "g-checkbox-group__required",
2956
3045
  "aria-hidden": "true"
2957
- }, Ur = ["id"], Wr = { class: "g-checkbox-group__options" }, Gr = ["for"], Kr = [
3046
+ }, $r = ["id"], ei = { class: "g-checkbox-group__options" }, ti = ["for"], ni = [
2958
3047
  "id",
2959
3048
  "type",
2960
3049
  "name",
@@ -2963,7 +3052,7 @@ var Cr = ["id", "for"], wr = {
2963
3052
  "disabled",
2964
3053
  "required",
2965
3054
  "onChange"
2966
- ], qr = { class: "g-checkbox-group__label-text" }, Jr = ["id"], Yr = /* @__PURE__ */ u({
3055
+ ], ri = { class: "g-checkbox-group__label-text" }, ii = ["id"], ai = /* @__PURE__ */ u({
2967
3056
  __name: "GCheckboxGroup",
2968
3057
  props: /*@__PURE__*/ m({
2969
3058
  label: { default: void 0 },
@@ -2986,7 +3075,7 @@ var Cr = ["id", "for"], wr = {
2986
3075
  }),
2987
3076
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
2988
3077
  setup(t, { emit: n }) {
2989
- let u = t, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } = $({
3078
+ let u = t, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } = Me({
2990
3079
  name: u.name,
2991
3080
  value: d,
2992
3081
  errors: I(u, "errors"),
@@ -3024,13 +3113,13 @@ var Cr = ["id", "for"], wr = {
3024
3113
  }
3025
3114
  return (n, r) => (w(), i(j(C.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": R(m) }] }, T.value), {
3026
3115
  default: K(() => [
3027
- C.value && t.label ? (w(), o("legend", zr, [c(P(t.label), 1), t.required ? (w(), o("span", Br, "\xA0*")) : a("", !0)])) : !C.value && t.label ? (w(), o("div", Vr, [c(P(t.label), 1), t.required ? (w(), o("span", Hr, "\xA0*")) : a("", !0)])) : a("", !0),
3116
+ C.value && t.label ? (w(), o("legend", Yr, [c(P(t.label), 1), t.required ? (w(), o("span", Xr, "\xA0*")) : a("", !0)])) : !C.value && t.label ? (w(), o("div", Zr, [c(P(t.label), 1), t.required ? (w(), o("span", Qr, "\xA0*")) : a("", !0)])) : a("", !0),
3028
3117
  t.instructions ? (w(), o("div", {
3029
3118
  key: 2,
3030
3119
  id: S.value,
3031
3120
  class: "g-checkbox-group__instructions"
3032
- }, P(t.instructions), 9, Ur)) : a("", !0),
3033
- s("div", Wr, [(w(!0), o(e, null, k(t.options, (e, n) => (w(), o("div", {
3121
+ }, P(t.instructions), 9, $r)) : a("", !0),
3122
+ s("div", ei, [(w(!0), o(e, null, k(t.options, (e, n) => (w(), o("div", {
3034
3123
  key: e.value,
3035
3124
  class: _(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": e.disabled }])
3036
3125
  }, [s("label", {
@@ -3045,12 +3134,12 @@ var Cr = ["id", "for"], wr = {
3045
3134
  disabled: e.disabled,
3046
3135
  required: t.required && (t.radio && n === 0 || !t.radio && t.options.length === 1),
3047
3136
  class: "g-checkbox-group__input"
3048
- }, { ref_for: !0 }, O(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16, Kr), s("span", qr, P(e.label), 1)], 10, Gr), e.hint ? (w(), o("div", {
3137
+ }, { ref_for: !0 }, O(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16, ni), s("span", ri, P(e.label), 1)], 10, ti), e.hint ? (w(), o("div", {
3049
3138
  key: 0,
3050
3139
  id: E(n),
3051
3140
  class: "g-checkbox-group__hint"
3052
- }, P(e.hint), 9, Jr)) : a("", !0)], 2))), 128))]),
3053
- l(Me, {
3141
+ }, P(e.hint), 9, ii)) : a("", !0)], 2))), 128))]),
3142
+ l(Pe, {
3054
3143
  errors: R(p),
3055
3144
  id: x.value
3056
3145
  }, null, 8, ["errors", "id"])
@@ -3058,15 +3147,15 @@ var Cr = ["id", "for"], wr = {
3058
3147
  _: 1
3059
3148
  }, 16, ["class"]));
3060
3149
  }
3061
- }), Xr = {
3150
+ }), oi = {
3062
3151
  class: "g-pagination",
3063
3152
  "aria-label": "Pagination"
3064
- }, Zr = ["disabled"], Qr = ["disabled"], $r = { class: "page-range" }, ei = ["disabled"], ti = ["disabled"], ni = { class: "g-pagination-page-size" }, ri = { class: "page-size-select-wrap" }, ii = ["id", "value"], ai = ["value"], oi = ["for"], si = { class: "g-pagination-overflow" }, ci = ["onClick"], li = { class: "g-pagination-overflow-popover" }, ui = { class: "g-pagination-overflow-page-size" }, di = ["for"], fi = { class: "page-size-select-wrap" }, pi = ["id", "value"], mi = ["value"], hi = { class: "g-pagination-overflow-actions" }, gi = ["disabled"], _i = ["disabled"], vi = {
3153
+ }, si = ["disabled"], ci = ["disabled"], li = { class: "page-range" }, ui = ["disabled"], di = ["disabled"], fi = { class: "g-pagination-page-size" }, pi = { class: "page-size-select-wrap" }, mi = ["id", "value"], hi = ["value"], gi = ["for"], _i = { class: "g-pagination-overflow" }, vi = ["onClick"], yi = { class: "g-pagination-overflow-popover" }, bi = { class: "g-pagination-overflow-page-size" }, xi = ["for"], Si = { class: "page-size-select-wrap" }, Ci = ["id", "value"], wi = ["value"], Ti = { class: "g-pagination-overflow-actions" }, Ei = ["disabled"], Di = ["disabled"], Oi = {
3065
3154
  class: "ilw-sr-only",
3066
3155
  role: "status",
3067
3156
  "aria-live": "polite",
3068
3157
  "aria-atomic": "true"
3069
- }, yi = /* @__PURE__ */ u({
3158
+ }, ki = /* @__PURE__ */ u({
3070
3159
  __name: "GTablePagination",
3071
3160
  props: /*@__PURE__*/ m({
3072
3161
  start: {},
@@ -3097,7 +3186,7 @@ var Cr = ["id", "for"], wr = {
3097
3186
  function C(e) {
3098
3187
  u.value = parseInt(e.target.value, 10), a.value = 0;
3099
3188
  }
3100
- return (t, n) => (w(), o("nav", Xr, [
3189
+ return (t, n) => (w(), o("nav", oi, [
3101
3190
  s("button", {
3102
3191
  class: "first-page g-pagination-button",
3103
3192
  type: "button",
@@ -3124,7 +3213,7 @@ var Cr = ["id", "for"], wr = {
3124
3213
  }),
3125
3214
  s("path", { d: "M11 7l-5 5l5 5" }),
3126
3215
  s("path", { d: "M17 7l-5 5l5 5" })
3127
- ], -1)]], 8, Zr),
3216
+ ], -1)]], 8, si),
3128
3217
  s("button", {
3129
3218
  class: "prev-page g-pagination-button",
3130
3219
  type: "button",
@@ -3147,8 +3236,8 @@ var Cr = ["id", "for"], wr = {
3147
3236
  stroke: "none",
3148
3237
  d: "M0 0h24v24H0z",
3149
3238
  fill: "none"
3150
- }), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, Qr),
3151
- s("span", $r, P(v.value) + " to " + P(y.value), 1),
3239
+ }), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, ci),
3240
+ s("span", li, P(v.value) + " to " + P(y.value), 1),
3152
3241
  s("button", {
3153
3242
  class: "next-page g-pagination-button",
3154
3243
  type: "button",
@@ -3171,7 +3260,7 @@ var Cr = ["id", "for"], wr = {
3171
3260
  stroke: "none",
3172
3261
  d: "M0 0h24v24H0z",
3173
3262
  fill: "none"
3174
- }), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, ei),
3263
+ }), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, ui),
3175
3264
  s("button", {
3176
3265
  class: "last-page g-pagination-button",
3177
3266
  type: "button",
@@ -3198,8 +3287,8 @@ var Cr = ["id", "for"], wr = {
3198
3287
  }),
3199
3288
  s("path", { d: "M7 7l5 5l-5 5" }),
3200
3289
  s("path", { d: "M13 7l5 5l-5 5" })
3201
- ], -1)]], 8, ti),
3202
- s("div", ni, [s("div", ri, [s("select", {
3290
+ ], -1)]], 8, di),
3291
+ s("div", fi, [s("div", pi, [s("select", {
3203
3292
  id: R(d),
3204
3293
  class: "page-size-select",
3205
3294
  value: m.value,
@@ -3207,7 +3296,7 @@ var Cr = ["id", "for"], wr = {
3207
3296
  }, [(w(!0), o(e, null, k(h.value, (e) => (w(), o("option", {
3208
3297
  key: e,
3209
3298
  value: e
3210
- }, P(e), 9, ai))), 128))], 40, ii), n[10] ||= s("span", {
3299
+ }, P(e), 9, hi))), 128))], 40, mi), n[10] ||= s("span", {
3211
3300
  class: "page-size-select-caret",
3212
3301
  "aria-hidden": "true"
3213
3302
  }, [s("svg", {
@@ -3221,8 +3310,8 @@ var Cr = ["id", "for"], wr = {
3221
3310
  })])], -1)]), s("label", {
3222
3311
  class: "page-size-label",
3223
3312
  for: R(d)
3224
- }, " per page ", 8, oi)]),
3225
- s("div", si, [l(ct, null, {
3313
+ }, " per page ", 8, gi)]),
3314
+ s("div", _i, [l(ut, null, {
3226
3315
  trigger: K(({ toggle: e }) => [s("button", {
3227
3316
  type: "button",
3228
3317
  class: "g-pagination-button g-pagination-overflow-trigger",
@@ -3237,17 +3326,17 @@ var Cr = ["id", "for"], wr = {
3237
3326
  }, [s("path", {
3238
3327
  fill: "currentColor",
3239
3328
  d: "M96 320C96 284.7 124.7 256 160 256C195.3 256 224 284.7 224 320C224 355.3 195.3 384 160 384C124.7 384 96 355.3 96 320zM256 320C256 284.7 284.7 256 320 256C355.3 256 384 284.7 384 320C384 355.3 355.3 384 320 384C284.7 384 256 355.3 256 320zM480 256C515.3 256 544 284.7 544 320C544 355.3 515.3 384 480 384C444.7 384 416 355.3 416 320C416 284.7 444.7 256 480 256z"
3240
- })], -1)]], 8, ci)]),
3241
- default: K(() => [s("div", li, [
3329
+ })], -1)]], 8, vi)]),
3330
+ default: K(() => [s("div", yi, [
3242
3331
  n[15] ||= s("h2", {
3243
3332
  class: "g-pagination-overflow-title",
3244
3333
  tabindex: "-1",
3245
3334
  "popover-focus": ""
3246
3335
  }, " Pagination options ", -1),
3247
- s("div", ui, [s("label", {
3336
+ s("div", bi, [s("label", {
3248
3337
  class: "page-size-label",
3249
3338
  for: R(f)
3250
- }, " Rows per page ", 8, di), s("div", fi, [s("select", {
3339
+ }, " Rows per page ", 8, xi), s("div", Si, [s("select", {
3251
3340
  id: R(f),
3252
3341
  class: "page-size-select",
3253
3342
  value: m.value,
@@ -3255,7 +3344,7 @@ var Cr = ["id", "for"], wr = {
3255
3344
  }, [(w(!0), o(e, null, k(h.value, (e) => (w(), o("option", {
3256
3345
  key: `overflow-${e}`,
3257
3346
  value: e
3258
- }, P(e), 9, mi))), 128))], 40, pi), n[12] ||= s("span", {
3347
+ }, P(e), 9, wi))), 128))], 40, Ci), n[12] ||= s("span", {
3259
3348
  class: "page-size-select-caret",
3260
3349
  "aria-hidden": "true"
3261
3350
  }, [s("svg", {
@@ -3267,7 +3356,7 @@ var Cr = ["id", "for"], wr = {
3267
3356
  fill: "currentColor",
3268
3357
  d: "M300.3 439.8C312.8 450.1 331.3 449.3 343.1 437.6L471.1 309.6C480.3 300.4 483 286.7 478 274.7C473 262.7 461.4 255 448.5 255L192.5 255C179.6 255 167.9 262.8 162.9 274.8C157.9 286.8 160.7 300.5 169.9 309.6L297.9 437.6L300.3 439.8z"
3269
3358
  })])], -1)])]),
3270
- s("div", hi, [s("button", {
3359
+ s("div", Ti, [s("button", {
3271
3360
  type: "button",
3272
3361
  class: "g-pagination-overflow-action",
3273
3362
  disabled: g.value,
@@ -3293,7 +3382,7 @@ var Cr = ["id", "for"], wr = {
3293
3382
  }),
3294
3383
  s("path", { d: "M11 7l-5 5l5 5" }),
3295
3384
  s("path", { d: "M17 7l-5 5l5 5" })
3296
- ])], -1), c(" First Page ", -1)]], 8, gi), s("button", {
3385
+ ])], -1), c(" First Page ", -1)]], 8, Ei), s("button", {
3297
3386
  type: "button",
3298
3387
  class: "g-pagination-overflow-action",
3299
3388
  disabled: _.value,
@@ -3319,43 +3408,43 @@ var Cr = ["id", "for"], wr = {
3319
3408
  }),
3320
3409
  s("path", { d: "M7 7l5 5l-5 5" }),
3321
3410
  s("path", { d: "M13 7l5 5l-5 5" })
3322
- ])], -1), c(" Last Page ", -1)]], 8, _i)])
3411
+ ])], -1), c(" Last Page ", -1)]], 8, Di)])
3323
3412
  ])]),
3324
3413
  _: 1
3325
3414
  })]),
3326
- s("span", vi, P(x.value), 1)
3415
+ s("span", Oi, P(x.value), 1)
3327
3416
  ]));
3328
3417
  }
3329
3418
  });
3330
3419
  // src/compose/useFiltering.ts
3331
- function bi(e) {
3420
+ function Ai(e) {
3332
3421
  if (!(Array.isArray(e) && e.length === 0) && e !== null && e !== !1 && e !== "") return e;
3333
3422
  }
3334
- function xi(e) {
3423
+ function ji(e) {
3335
3424
  return Object.fromEntries(Object.entries(e).filter(([, e]) => e && (!Array.isArray(e) || e.length > 0)));
3336
3425
  }
3337
- function Si(e) {
3426
+ function Mi(e) {
3338
3427
  if (e != null) return Array.isArray(e) ? e.filter((e) => e != null) : [e];
3339
3428
  }
3340
- function Ci(e) {
3429
+ function Ni(e) {
3341
3430
  if (e == null) return;
3342
3431
  if (typeof e == "string") return e.includes(",") ? e.split(",") : [e];
3343
3432
  let t = [];
3344
3433
  for (let n of e) n !== null && t.push(n);
3345
3434
  return t.length > 0 ? t : void 0;
3346
3435
  }
3347
- function wi(e) {
3436
+ function Pi(e) {
3348
3437
  return Array.isArray(e) ? [...e] : e;
3349
3438
  }
3350
- function Ti(e, t) {
3439
+ function Fi(e, t) {
3351
3440
  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;
3352
3441
  }
3353
- function Ei(e, t) {
3442
+ function Ii(e, t) {
3354
3443
  let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
3355
- for (let r of n) if (!Ti(e[r], t[r])) return !1;
3444
+ for (let r of n) if (!Fi(e[r], t[r])) return !1;
3356
3445
  return !0;
3357
3446
  }
3358
- function Di(e) {
3447
+ function Li(e) {
3359
3448
  if (e != null && e !== "") {
3360
3449
  if (Array.isArray(e)) {
3361
3450
  let t = e.filter((e) => e != null && e !== "").map((e) => String(e));
@@ -3364,76 +3453,76 @@ function Di(e) {
3364
3453
  return String(e);
3365
3454
  }
3366
3455
  }
3367
- function Oi(e) {
3368
- return Di(e) !== void 0;
3456
+ function Ri(e) {
3457
+ return Li(e) !== void 0;
3369
3458
  }
3370
- function ki(e) {
3459
+ function zi(e) {
3371
3460
  let t = {};
3372
3461
  for (let [n, r] of Object.entries(F(e))) {
3373
- let e = Di(r);
3462
+ let e = Li(r);
3374
3463
  e !== void 0 && (t[n] = e);
3375
3464
  }
3376
3465
  return t;
3377
3466
  }
3378
- function Ai(e, t) {
3467
+ function Bi(e, t) {
3379
3468
  let n = {}, r = t, i = n;
3380
3469
  for (let t of e) {
3381
3470
  if (!t.filter) continue;
3382
- let e = pr(t), n = Sr(t.filter, r[e]);
3471
+ let e = Cr(t), n = Mr(t.filter, r[e]);
3383
3472
  n !== void 0 && (i[e] = n);
3384
3473
  }
3385
3474
  return n;
3386
3475
  }
3387
- function ji(e) {
3476
+ function Vi(e) {
3388
3477
  let t = {};
3389
- for (let n of e) n.filter && (t[pr(n)] = n.filter.type === "multi-select" ? [] : void 0);
3478
+ for (let n of e) n.filter && (t[Cr(n)] = n.filter.type === "multi-select" ? [] : void 0);
3390
3479
  return t;
3391
3480
  }
3392
- function Mi(e, t, n = {}) {
3481
+ function Hi(e, t, n = {}) {
3393
3482
  let r = e, i = new Set(n.booleanArrayKeys ?? []), a = {};
3394
3483
  for (let e of Object.keys(r)) {
3395
- let n = Ni(t[e], Array.isArray(r[e]));
3396
- a[e] = i.has(e) && n !== void 0 ? Pi(n) : n;
3484
+ let n = Ui(t[e], Array.isArray(r[e]));
3485
+ a[e] = i.has(e) && n !== void 0 ? Wi(n) : n;
3397
3486
  }
3398
3487
  return a;
3399
3488
  }
3400
- function Ni(e, t) {
3401
- if (e != null) return !t && typeof e == "string" ? e.includes(",") ? e.split(",") : e : Ci(e);
3489
+ function Ui(e, t) {
3490
+ if (e != null) return !t && typeof e == "string" ? e.includes(",") ? e.split(",") : e : Ni(e);
3402
3491
  }
3403
- function Pi(e) {
3492
+ function Wi(e) {
3404
3493
  return (Array.isArray(e) ? e : [e]).flatMap((e) => e === "true" ? [!0] : e === "false" ? [!1] : []);
3405
3494
  }
3406
- function Fi(e) {
3495
+ function Gi(e) {
3407
3496
  let t = {};
3408
3497
  for (let [n, r] of Object.entries(F(e))) Array.isArray(r) ? r.length > 0 && (t[n] = r) : t[n] = r === !0 ? "true" : r || void 0;
3409
3498
  return t;
3410
3499
  }
3411
- function Ii(e) {
3500
+ function Ki(e) {
3412
3501
  let t = {};
3413
3502
  return Object.keys(e).forEach((n) => {
3414
3503
  let r = e[n];
3415
3504
  r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
3416
3505
  }), t;
3417
3506
  }
3418
- function Li(e, t) {
3507
+ function qi(e, t) {
3419
3508
  let n = e, r = Object.keys(e), i = O(((e) => {
3420
3509
  let t = {};
3421
3510
  for (let i of r) {
3422
3511
  let r = e[i];
3423
- r !== void 0 && (t[i] = Ni(r, Array.isArray(n[i])));
3512
+ r !== void 0 && (t[i] = Ui(r, Array.isArray(n[i])));
3424
3513
  }
3425
3514
  return t;
3426
- })(t.route.query)), a = Ri(e, { syncWith: i }), o = a.filters;
3427
- return W(() => Mi(e, t.route.query, t), (e) => {
3515
+ })(t.route.query)), a = Ji(e, { syncWith: i }), o = a.filters;
3516
+ return W(() => Hi(e, t.route.query, t), (e) => {
3428
3517
  let t = e;
3429
- for (let e of r) Ti(o[e], t[e]) || (o[e] = t[e]);
3518
+ for (let e of r) Fi(o[e], t[e]) || (o[e] = t[e]);
3430
3519
  }, { immediate: !0 }), W(i, (e) => {
3431
3520
  let n = { ...t.route.query };
3432
- for (let t of r) e[t] === void 0 ? delete n[t] : n[t] = wi(e[t]);
3433
- Ei(t.route.query, n) || t.router.replace({ query: n });
3521
+ for (let t of r) e[t] === void 0 ? delete n[t] : n[t] = Pi(e[t]);
3522
+ Ii(t.route.query, n) || t.router.replace({ query: n });
3434
3523
  }), a;
3435
3524
  }
3436
- function Ri(e, t = {}) {
3525
+ function Ji(e, t = {}) {
3437
3526
  let n = Object.keys(e), i = E({ ...e }), a = t.syncWith;
3438
3527
  if (a) {
3439
3528
  if (a.value) {
@@ -3444,12 +3533,12 @@ function Ri(e, t = {}) {
3444
3533
  });
3445
3534
  }
3446
3535
  W(i, (e) => {
3447
- a.value = ki(e);
3536
+ a.value = zi(e);
3448
3537
  }, { deep: !0 });
3449
3538
  }
3450
3539
  return {
3451
3540
  filters: i,
3452
- isFiltered: r(() => n.some((e) => Oi(i[e]))),
3541
+ isFiltered: r(() => n.some((e) => Ri(i[e]))),
3453
3542
  clearFilters: () => {
3454
3543
  Object.keys(i).forEach((e) => {
3455
3544
  i[e] = void 0;
@@ -3457,93 +3546,93 @@ function Ri(e, t = {}) {
3457
3546
  },
3458
3547
  filteredColumns: r(() => {
3459
3548
  let e = {};
3460
- for (let t of n) e[t] = Oi(i[t]);
3549
+ for (let t of n) e[t] = Ri(i[t]);
3461
3550
  return e;
3462
3551
  })
3463
3552
  };
3464
3553
  }
3465
3554
  // src/components/GTable.vue?vue&type=script&setup=true&lang.ts
3466
- var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions" }, Vi = {
3555
+ var Yi = { class: "g-table-inner-wrap" }, Xi = { class: "g-table-control-actions" }, Zi = {
3467
3556
  key: 0,
3468
3557
  class: "g-sort-builder-wrap"
3469
- }, Hi = {
3558
+ }, Qi = {
3470
3559
  key: 0,
3471
3560
  class: "g-sort-builder-count"
3472
- }, Ui = {
3561
+ }, $i = {
3473
3562
  key: 0,
3474
3563
  class: "g-sort-builder-list"
3475
- }, Wi = ["data-sort-row-key", "aria-label"], Gi = {
3564
+ }, ea = ["data-sort-row-key", "aria-label"], ta = {
3476
3565
  class: "g-sort-builder-rule-priority",
3477
3566
  "aria-hidden": "true"
3478
- }, Ki = { class: "g-sort-builder-rule-label" }, qi = ["aria-label", "onClick"], Ji = { class: "g-visually-hidden" }, Yi = {
3567
+ }, na = { class: "g-sort-builder-rule-label" }, ra = ["aria-label", "onClick"], ia = { class: "g-visually-hidden" }, aa = {
3479
3568
  class: "sort-indicator",
3480
3569
  "aria-hidden": "true"
3481
- }, Xi = ["aria-label", "onClick"], Zi = {
3570
+ }, oa = ["aria-label", "onClick"], sa = {
3482
3571
  key: 1,
3483
3572
  class: "g-sort-builder-empty"
3484
- }, Qi = {
3573
+ }, ca = {
3485
3574
  key: 2,
3486
3575
  class: "g-sort-builder-add"
3487
- }, $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 = {
3576
+ }, la = { class: "g-sort-builder-add-list" }, ua = { class: "g-sort-builder-add-name" }, da = { class: "g-sort-builder-add-actions" }, fa = ["aria-label", "onClick"], pa = ["aria-label", "onClick"], ma = {
3488
3577
  class: "sort-indicator",
3489
3578
  "aria-hidden": "true"
3490
- }, aa = {
3579
+ }, ha = {
3491
3580
  xmlns: "http://www.w3.org/2000/svg",
3492
3581
  viewBox: "0 0 640 640",
3493
3582
  height: "1.25em",
3494
3583
  style: { transform: "rotate(180deg)" }
3495
- }, oa = {
3584
+ }, ga = {
3496
3585
  key: 1,
3497
3586
  class: "g-column-visibility-wrap"
3498
- }, sa = {
3587
+ }, _a = {
3499
3588
  xmlns: "http://www.w3.org/2000/svg",
3500
3589
  viewBox: "0 0 640 640",
3501
3590
  height: "1.5em",
3502
3591
  style: { transform: "rotate(90deg)" },
3503
3592
  "aria-hidden": "true"
3504
- }, 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 = {
3593
+ }, va = ["aria-labelledby"], ya = { class: "g-column-visibility-header" }, ba = ["id"], xa = { class: "g-column-visibility-legend-action" }, Sa = { class: "g-column-visibility-list" }, Ca = ["checked", "onChange"], wa = {
3505
3594
  key: 2,
3506
3595
  class: "g-table-custom-controls"
3507
- }, ha = { class: "g-clear-filters-wrap" }, ga = {
3596
+ }, Ta = { class: "g-clear-filters-wrap" }, Ea = {
3508
3597
  key: 0,
3509
3598
  class: "pagination"
3510
- }, _a = { class: "g-table-controls-right" }, va = { class: "g-result-count" }, ya = ["aria-rowcount"], ba = { class: "g-visually-hidden" }, xa = { key: 0 }, Sa = ["data-column-key"], Ca = { class: "g-table-head" }, wa = { "aria-rowindex": "1" }, Ta = {
3599
+ }, Da = { class: "g-table-controls-right" }, Oa = { class: "g-result-count" }, ka = ["aria-rowcount"], Aa = { class: "g-visually-hidden" }, ja = { key: 0 }, Ma = ["data-column-key"], Na = { class: "g-table-head" }, Pa = { "aria-rowindex": "1" }, Fa = {
3511
3600
  key: 0,
3512
3601
  scope: "col",
3513
3602
  class: "g-th g-th-checkbox"
3514
- }, Ea = [
3603
+ }, Ia = [
3515
3604
  "checked",
3516
3605
  "indeterminate",
3517
3606
  "aria-label"
3518
- ], Da = ["id", "aria-sort"], Oa = { class: "th-inner" }, ka = ["aria-describedby", "onClick"], Aa = {
3607
+ ], La = ["id", "aria-sort"], Ra = { class: "th-inner" }, za = ["aria-describedby", "onClick"], Ba = {
3519
3608
  key: 0,
3520
3609
  class: "sort-indicator",
3521
3610
  "aria-hidden": "true"
3522
- }, ja = {
3611
+ }, Va = {
3523
3612
  key: 1,
3524
3613
  class: "g-column-head"
3525
- }, Ma = [
3614
+ }, Ha = [
3526
3615
  "onClick",
3527
3616
  "aria-describedby",
3528
3617
  "aria-expanded"
3529
- ], Na = {
3618
+ ], Ua = {
3530
3619
  key: 1,
3531
3620
  class: "g-filter-search",
3532
3621
  role: "search"
3533
- }, Pa = [
3622
+ }, Wa = [
3534
3623
  "value",
3535
3624
  "onInput",
3536
3625
  "placeholder",
3537
3626
  "aria-label"
3538
- ], Fa = { key: 2 }, Ia = { class: "g-filter-toggle" }, La = [
3627
+ ], Ga = { key: 2 }, Ka = { class: "g-filter-toggle" }, qa = [
3539
3628
  "checked",
3540
3629
  "onChange",
3541
3630
  "id",
3542
3631
  "aria-describedby"
3543
- ], Ra = ["for"], za = ["id"], Ba = {
3632
+ ], Ja = ["for"], Ya = ["id"], Xa = {
3544
3633
  key: 4,
3545
3634
  class: "g-multi-select"
3546
- }, Va = [
3635
+ }, Za = [
3547
3636
  "data-column-key",
3548
3637
  "aria-label",
3549
3638
  "aria-valuemax",
@@ -3551,10 +3640,10 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
3551
3640
  "aria-valuetext",
3552
3641
  "onKeydown",
3553
3642
  "onPointerdown"
3554
- ], Ha = { key: 0 }, Ua = { "aria-rowindex": "2" }, Wa = ["colspan"], Ga = { hidden: "" }, Ka = ["id"], qa = ["id"], Ja = ["id"], Ya = {
3643
+ ], Qa = { key: 0 }, $a = { "aria-rowindex": "2" }, eo = ["colspan"], to = { hidden: "" }, no = ["id"], ro = ["id"], io = ["id"], ao = {
3555
3644
  key: 1,
3556
3645
  class: "g-bulk-actions-toolbar"
3557
- }, Xa = { class: "g-selected-count" }, Za = { class: "g-bulk-actions" }, Qa = /* @__PURE__ */ u({
3646
+ }, oo = { class: "g-selected-count" }, so = { class: "g-bulk-actions" }, co = /* @__PURE__ */ u({
3558
3647
  __name: "GTable",
3559
3648
  props: /*@__PURE__*/ m({
3560
3649
  label: {},
@@ -3611,7 +3700,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
3611
3700
  "update:selectedRows"
3612
3701
  ]),
3613
3702
  setup(t, { emit: n }) {
3614
- let u = V(t, "sort"), f = V(t, "filter"), p = V(t, "columnState"), m = V(t, "selectedRows"), h = t, y = n, { isFiltered: S, clearFilters: C } = h.filtering ?? Ri({}), T = r(() => h.data.map((e) => e.key)), E = r(() => m.value.filter((e) => T.value.includes(e))), D = r(() => !h.bulkSelectionEnabled || h.data.length === 0 ? !1 : E.value.length === T.value.length), j = r(() => !h.bulkSelectionEnabled || h.data.length === 0 ? !1 : E.value.length > 0 && E.value.length < T.value.length), M = O(null);
3703
+ let u = V(t, "sort"), f = V(t, "filter"), p = V(t, "columnState"), m = V(t, "selectedRows"), h = t, y = n, { isFiltered: S, clearFilters: C } = h.filtering ?? Ji({}), T = r(() => h.data.map((e) => e.key)), E = r(() => m.value.filter((e) => T.value.includes(e))), D = r(() => !h.bulkSelectionEnabled || h.data.length === 0 ? !1 : E.value.length === T.value.length), j = r(() => !h.bulkSelectionEnabled || h.data.length === 0 ? !1 : E.value.length > 0 && E.value.length < T.value.length), M = O(null);
3615
3704
  function N() {
3616
3705
  if (D.value) m.value = m.value.filter((e) => !T.value.includes(e));
3617
3706
  else {
@@ -3652,138 +3741,138 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
3652
3741
  function W(e) {
3653
3742
  e !== void 0 && y("update:pageSize", e);
3654
3743
  }
3655
- let G = B(), te = d(), ne = O(null), re = O(null), ie = O(null), J = O(null), ae = O(null), Y = O(0);
3656
- le(ae, (e) => {
3744
+ let G = B(), te = d(), ne = O(null), J = O(null), Y = O(null), X = O(null), re = O(null), ie = O(0);
3745
+ ue(re, (e) => {
3657
3746
  let t = e[0];
3658
- Y.value = t?.borderBoxSize?.[0]?.blockSize ?? t?.target.getBoundingClientRect().height ?? 0;
3747
+ ie.value = t?.borderBoxSize?.[0]?.blockSize ?? t?.target.getBoundingClientRect().height ?? 0;
3659
3748
  });
3660
- let X = O(null), oe = `${G}-table`;
3661
- function se(e) {
3749
+ let Z = O(null), ae = `${G}-table`;
3750
+ function oe(e) {
3662
3751
  let t = /* @__PURE__ */ new Set();
3663
3752
  return e.filter((e) => !e?.key || t.has(String(e.key)) ? !1 : (t.add(String(e.key)), e.order === 1 || e.order === -1));
3664
3753
  }
3665
- function ce(e, t) {
3754
+ function se(e, t) {
3666
3755
  return {
3667
3756
  key: e,
3668
3757
  order: t
3669
3758
  };
3670
3759
  }
3671
- let Z = r(() => se(u.value));
3672
- function ue(e) {
3673
- u.value = se(e);
3760
+ let Q = r(() => oe(u.value));
3761
+ function ce(e) {
3762
+ u.value = oe(e);
3674
3763
  }
3675
- let de = r(() => h.columns.filter((e) => e.sortable)), fe = r(() => de.value.length > 1), pe = r(() => {
3676
- let e = new Set(Z.value.map((e) => String(e.key)));
3677
- return de.value.filter((t) => !e.has(String(t.key)));
3764
+ let le = r(() => h.columns.filter((e) => e.sortable)), de = r(() => le.value.length > 1), fe = r(() => {
3765
+ let e = new Set(Q.value.map((e) => String(e.key)));
3766
+ return le.value.filter((t) => !e.has(String(t.key)));
3678
3767
  });
3768
+ function pe(e) {
3769
+ return Q.value.findIndex((t) => t.key === e);
3770
+ }
3679
3771
  function me(e) {
3680
- return Z.value.findIndex((t) => t.key === e);
3772
+ return Q.value.find((t) => t.key === e);
3681
3773
  }
3682
3774
  function he(e) {
3683
- return Z.value.find((t) => t.key === e);
3775
+ return h.columns.find((t) => t.key === e)?.label || String(e);
3684
3776
  }
3685
3777
  function ge(e) {
3686
- return h.columns.find((t) => t.key === e)?.label || String(e);
3778
+ let t = pe(e);
3779
+ return t === -1 ? "none" : t > 0 ? "other" : Q.value[0]?.order === 1 ? "ascending" : "descending";
3687
3780
  }
3688
3781
  function _e(e) {
3689
- let t = me(e);
3690
- return t === -1 ? "none" : t > 0 ? "other" : Z.value[0]?.order === 1 ? "ascending" : "descending";
3691
- }
3692
- function ve(e) {
3693
- let t = me(e);
3782
+ let t = pe(e);
3694
3783
  if (t === -1) return "Sortable, not sorted";
3695
- let n = Z.value[t].order === 1 ? "ascending" : "descending";
3696
- return Z.value.length > 1 ? `Sorted ${n}, priority ${t + 1}` : `Sorted ${n}`;
3784
+ let n = Q.value[t].order === 1 ? "ascending" : "descending";
3785
+ return Q.value.length > 1 ? `Sorted ${n}, priority ${t + 1}` : `Sorted ${n}`;
3697
3786
  }
3698
- let ye = r(() => Z.value.length === 0 ? "" : `sorted by ${Z.value.map((e) => `${ge(e.key)} ${e.order === 1 ? "ascending" : "descending"}`).join(", then ")}`), be = r(() => {
3787
+ let ve = r(() => Q.value.length === 0 ? "" : `sorted by ${Q.value.map((e) => `${he(e.key)} ${e.order === 1 ? "ascending" : "descending"}`).join(", then ")}`), ye = r(() => {
3699
3788
  let e = h.columns.filter((e) => ot(e));
3700
3789
  return e.length === 0 ? "" : `filtered by ${e.map((e) => e.label).join(", ")}`;
3701
3790
  });
3702
- function xe(e) {
3791
+ function be(e) {
3703
3792
  return e === 1 ? "Ascending" : "Descending";
3704
3793
  }
3705
- function Se(e) {
3706
- let t = Z.value[0]?.key === e ? Z.value[0] : void 0;
3707
- return t ? t.order === 1 ? [ce(e, -1)] : [] : [ce(e, 1)];
3794
+ function xe(e) {
3795
+ let t = Q.value[0]?.key === e ? Q.value[0] : void 0;
3796
+ return t ? t.order === 1 ? [se(e, -1)] : [] : [se(e, 1)];
3708
3797
  }
3709
- function Ce(e) {
3710
- let t = [...Z.value], n = t.findIndex((t) => t.key === e);
3711
- return n === -1 ? (t.push(ce(e, 1)), t) : t[n].order === 1 ? (t[n] = ce(e, -1), t) : (t.splice(n, 1), t);
3798
+ function Se(e) {
3799
+ let t = [...Q.value], n = t.findIndex((t) => t.key === e);
3800
+ return n === -1 ? (t.push(se(e, 1)), t) : t[n].order === 1 ? (t[n] = se(e, -1), t) : (t.splice(n, 1), t);
3712
3801
  }
3713
- function we(e, t = !1) {
3802
+ function Ce(e, t = !1) {
3714
3803
  if (!e.sortable) return;
3715
3804
  let n = e.key;
3716
- ue(t ? Ce(n) : Se(n));
3805
+ ce(t ? Se(n) : xe(n));
3717
3806
  }
3718
- function Te(e, t) {
3719
- ue([...Z.value, ce(e, t)]), g(() => {
3807
+ function we(e, t) {
3808
+ ce([...Q.value, se(e, t)]), g(() => {
3720
3809
  let t = ne.value;
3721
3810
  t && (t.querySelector(`[data-sort-row-key="${String(e)}"]`) ?? t)?.focus();
3722
3811
  }).catch((e) => {
3723
3812
  console.error(e);
3724
3813
  });
3725
3814
  }
3726
- function Ee(e) {
3727
- ue(Z.value.map((t) => t.key === e ? ce(t.key, t.order === 1 ? -1 : 1) : t));
3815
+ function Te(e) {
3816
+ ce(Q.value.map((t) => t.key === e ? se(t.key, t.order === 1 ? -1 : 1) : t));
3728
3817
  }
3729
- function De(e) {
3730
- ue(Z.value.filter((t) => t.key !== e));
3818
+ function Ee(e) {
3819
+ ce(Q.value.filter((t) => t.key !== e));
3731
3820
  }
3732
- function Oe() {
3733
- ue([]);
3821
+ function De() {
3822
+ ce([]);
3734
3823
  }
3735
- function ke(e) {
3824
+ function Oe(e) {
3736
3825
  return p.value[e] ?? {};
3737
3826
  }
3738
- function Ae(e, t) {
3827
+ function ke(e, t) {
3739
3828
  p.value = {
3740
3829
  ...p.value,
3741
3830
  [e]: {
3742
- ...ke(e),
3831
+ ...Oe(e),
3743
3832
  ...t
3744
3833
  }
3745
3834
  };
3746
3835
  }
3747
- function $(e) {
3836
+ function Ae(e) {
3748
3837
  return Math.max(50, Math.round(e));
3749
3838
  }
3750
3839
  function je(e) {
3751
- let t = ke(e).width;
3752
- if (typeof t == "number" && Number.isFinite(t)) return $(t);
3840
+ let t = Oe(e).width;
3841
+ if (typeof t == "number" && Number.isFinite(t)) return Ae(t);
3753
3842
  }
3754
3843
  function Me(e) {
3755
3844
  return document.getElementById(`${G}-th-${String(e)}`);
3756
3845
  }
3757
3846
  function Ne(e) {
3758
3847
  let t = Me(e)?.getBoundingClientRect().width;
3759
- return $(t ?? 50);
3848
+ return Ae(t ?? 50);
3760
3849
  }
3761
3850
  function Pe(e) {
3762
3851
  return je(e) ?? Ne(e);
3763
3852
  }
3764
3853
  function Fe(e) {
3765
- let t = Pe(e), n = ie.value?.getBoundingClientRect().width ?? re.value?.getBoundingClientRect().width ?? t;
3766
- return $(Math.max(t, n));
3854
+ let t = Pe(e), n = Y.value?.getBoundingClientRect().width ?? J.value?.getBoundingClientRect().width ?? t;
3855
+ return Ae(Math.max(t, n));
3767
3856
  }
3768
3857
  function Ie(e, t) {
3769
- Ae(e, { width: $(t) });
3858
+ ke(e, { width: Ae(t) });
3770
3859
  }
3771
3860
  function Le(e, t) {
3772
3861
  Ie(e, Pe(e) + t);
3773
3862
  }
3774
3863
  function Re() {
3775
- X.value = null, window.removeEventListener("pointermove", ze), window.removeEventListener("pointerup", Re), window.removeEventListener("pointercancel", Re);
3864
+ Z.value = null, window.removeEventListener("pointermove", ze), window.removeEventListener("pointerup", Re), window.removeEventListener("pointercancel", Re);
3776
3865
  }
3777
3866
  function ze(e) {
3778
- if (!X.value) return;
3779
- let t = X.value.startWidth + (e.clientX - X.value.startX);
3780
- Ie(X.value.key, t);
3867
+ if (!Z.value) return;
3868
+ let t = Z.value.startWidth + (e.clientX - Z.value.startX);
3869
+ Ie(Z.value.key, t);
3781
3870
  }
3782
3871
  function Be(e, t) {
3783
3872
  if (!h.resizableColumns) return;
3784
3873
  e.preventDefault(), e.stopPropagation();
3785
3874
  let n = Pe(t);
3786
- Ie(t, n), X.value = {
3875
+ Ie(t, n), Z.value = {
3787
3876
  key: t,
3788
3877
  startX: e.clientX,
3789
3878
  startWidth: n
@@ -3824,43 +3913,43 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
3824
3913
  let Ge = r(() => {
3825
3914
  let e = te?.vnode.props ?? {};
3826
3915
  return "columnState" in e || "column-state" in e || "onUpdate:columnState" in e;
3827
- }), Ke = r(() => h.columns.filter((e) => ke(e.key).visible !== !1)), qe = H(), Je = r(() => Ke.value.length !== h.columns.length), Ye = r(() => Ge.value && h.columns.length > 0), Xe = r(() => !!qe.controls || !!qe["right-controls"]), Ze = r(() => h.resultCount ?? h.data.length);
3916
+ }), Ke = r(() => h.columns.filter((e) => Oe(e.key).visible !== !1)), qe = H(), Je = r(() => Ke.value.length !== h.columns.length), Ye = r(() => Ge.value && h.columns.length > 0), Xe = r(() => !!qe.controls || !!qe["right-controls"]), Ze = r(() => h.resultCount ?? h.data.length);
3828
3917
  function Qe(e) {
3829
- return ke(e.key).visible !== !1;
3918
+ return Oe(e.key).visible !== !1;
3830
3919
  }
3831
3920
  function $e(e, t) {
3832
- Ae(e.key, { visible: t });
3921
+ ke(e.key, { visible: t });
3833
3922
  }
3834
3923
  function et() {
3835
3924
  p.value = h.columns.reduce((e, t) => ({
3836
3925
  ...e,
3837
3926
  [t.key]: {
3838
- ...ke(t.key),
3927
+ ...Oe(t.key),
3839
3928
  visible: !0
3840
3929
  }
3841
3930
  }), { ...p.value });
3842
3931
  }
3843
- let tt = r(() => h.pagination && typeof h.pageSize == "number"), nt = r(() => !!(fe.value || S.value || tt.value || Ye.value || Xe.value));
3932
+ let tt = r(() => h.pagination && typeof h.pageSize == "number"), nt = r(() => !!(de.value || S.value || tt.value || Ye.value || Xe.value));
3844
3933
  function rt() {
3845
3934
  return f.value;
3846
3935
  }
3847
3936
  function it(e) {
3848
- if (e.filter) return yr(e.filter, rt()[pr(e)]);
3937
+ if (e.filter) return kr(e.filter, rt()[Cr(e)]);
3849
3938
  }
3850
3939
  function at(e, t) {
3851
- e.filter && (rt()[pr(e)] = br(e.filter, t));
3940
+ e.filter && (rt()[Cr(e)] = Ar(e.filter, t));
3852
3941
  }
3853
3942
  function ot(e) {
3854
- return e.filter ? xr(e.filter, rt()[pr(e)]) : !1;
3943
+ return e.filter ? jr(e.filter, rt()[Cr(e)]) : !1;
3855
3944
  }
3856
3945
  function st(e) {
3857
3946
  return e.filter?.type !== "select" && e.filter?.type !== "multi-select" ? [] : e.filter.options;
3858
3947
  }
3859
- function lt(e, t) {
3948
+ function ct(e, t) {
3860
3949
  let n = st(e).findIndex((e) => e.value === t);
3861
3950
  return n === -1 ? void 0 : String(n);
3862
3951
  }
3863
- function ut(e, t) {
3952
+ function lt(e, t) {
3864
3953
  return st(e)[Number(t)]?.value;
3865
3954
  }
3866
3955
  function dt(e) {
@@ -3878,17 +3967,17 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
3878
3967
  }));
3879
3968
  }
3880
3969
  function pt(e) {
3881
- return lt(e, it(e)) ?? null;
3970
+ return ct(e, it(e)) ?? null;
3882
3971
  }
3883
3972
  function mt(e, t) {
3884
- at(e, t == null ? void 0 : ut(e, t));
3973
+ at(e, t == null ? void 0 : lt(e, t));
3885
3974
  }
3886
3975
  function ht(e) {
3887
3976
  let t = it(e);
3888
- return Array.isArray(t) ? t.map((t) => lt(e, t)).filter((e) => e !== void 0) : [];
3977
+ return Array.isArray(t) ? t.map((t) => ct(e, t)).filter((e) => e !== void 0) : [];
3889
3978
  }
3890
3979
  function gt(e, t) {
3891
- at(e, t.map((t) => ut(e, t)));
3980
+ at(e, t.map((t) => lt(e, t)));
3892
3981
  }
3893
3982
  return b(() => {
3894
3983
  Re();
@@ -3897,21 +3986,21 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
3897
3986
  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.`);
3898
3987
  }), (n, r) => (w(), o("div", {
3899
3988
  ref_key: "outerWrapRef",
3900
- ref: ie,
3989
+ ref: Y,
3901
3990
  class: "g-table-outer-wrap",
3902
- style: v({ "--g-table-controls-height": `${nt.value ? Y.value : 0}px` })
3903
- }, [s("div", zi, [
3991
+ style: v({ "--g-table-controls-height": `${nt.value ? ie.value : 0}px` })
3992
+ }, [s("div", Yi, [
3904
3993
  nt.value ? (w(), o("div", {
3905
3994
  key: 0,
3906
3995
  ref_key: "controlsRef",
3907
- ref: ae,
3996
+ ref: re,
3908
3997
  class: "g-table-controls"
3909
3998
  }, [
3910
- s("div", Bi, [
3911
- fe.value ? (w(), o("div", Vi, [l(ct, null, {
3912
- trigger: K(({ toggle: e }) => [l(Q, {
3999
+ s("div", Xi, [
4000
+ de.value ? (w(), o("div", Zi, [l(ut, null, {
4001
+ trigger: K(({ toggle: e }) => [l($, {
3913
4002
  size: "small",
3914
- class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": Z.value.length > 0 }]),
4003
+ class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": Q.value.length > 0 }]),
3915
4004
  "aria-label": "Choose sort order",
3916
4005
  onClick: e
3917
4006
  }, {
@@ -3924,7 +4013,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
3924
4013
  }, [s("path", {
3925
4014
  fill: "currentColor",
3926
4015
  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"
3927
- })], -1), Z.value.length ? (w(), o("span", Hi, P(Z.value.length), 1)) : a("", !0)]),
4016
+ })], -1), Q.value.length ? (w(), o("span", Qi, P(Q.value.length), 1)) : a("", !0)]),
3928
4017
  _: 1
3929
4018
  }, 8, ["class", "onClick"])]),
3930
4019
  default: K(() => [s("fieldset", {
@@ -3936,21 +4025,21 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
3936
4025
  }, [
3937
4026
  r[8] ||= s("legend", { class: "g-sort-builder-legend" }, " Sort order ", -1),
3938
4027
  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),
3939
- Z.value.length ? (w(), o("ol", Ui, [(w(!0), o(e, null, k(Z.value, (e, t) => (w(), o("li", {
4028
+ Q.value.length ? (w(), o("ol", $i, [(w(!0), o(e, null, k(Q.value, (e, t) => (w(), o("li", {
3940
4029
  key: e.key,
3941
4030
  class: "g-sort-builder-rule",
3942
4031
  tabindex: "-1",
3943
4032
  "data-sort-row-key": String(e.key),
3944
- "aria-label": `${ge(e.key)} ${xe(e.order)} sort, priority ${t + 1}`
4033
+ "aria-label": `${he(e.key)} ${be(e.order)} sort, priority ${t + 1}`
3945
4034
  }, [
3946
- s("span", Gi, P(t + 1), 1),
3947
- s("span", Ki, P(ge(e.key)), 1),
4035
+ s("span", ta, P(t + 1), 1),
4036
+ s("span", na, P(he(e.key)), 1),
3948
4037
  s("button", {
3949
4038
  type: "button",
3950
4039
  class: "g-sort-builder-direction",
3951
- "aria-label": `Toggle ${ge(e.key)} sort direction`,
3952
- onClick: (t) => Ee(e.key)
3953
- }, [s("span", Ji, P(xe(e.order)), 1), s("span", Yi, [(w(), o("svg", {
4040
+ "aria-label": `Toggle ${he(e.key)} sort direction`,
4041
+ onClick: (t) => Te(e.key)
4042
+ }, [s("span", ia, P(be(e.order)), 1), s("span", aa, [(w(), o("svg", {
3954
4043
  xmlns: "http://www.w3.org/2000/svg",
3955
4044
  viewBox: "0 0 640 640",
3956
4045
  height: "1.25em",
@@ -3958,22 +4047,22 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
3958
4047
  }, [...r[2] ||= [s("path", {
3959
4048
  fill: "currentColor",
3960
4049
  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"
3961
- }, null, -1)]], 4))])], 8, qi),
4050
+ }, null, -1)]], 4))])], 8, ra),
3962
4051
  s("button", {
3963
4052
  type: "button",
3964
4053
  class: "g-sort-builder-remove",
3965
- "aria-label": `Remove ${ge(e.key)} sort`,
3966
- onClick: (t) => De(e.key)
3967
- }, " Remove ", 8, Xi)
3968
- ], 8, Wi))), 128))])) : (w(), o("p", Zi, " No active sort rules. ")),
3969
- pe.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(pe.value, (e) => (w(), o("li", {
4054
+ "aria-label": `Remove ${he(e.key)} sort`,
4055
+ onClick: (t) => Ee(e.key)
4056
+ }, " Remove ", 8, oa)
4057
+ ], 8, ea))), 128))])) : (w(), o("p", sa, " No active sort rules. ")),
4058
+ fe.value.length ? (w(), o("div", ca, [r[6] ||= s("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), s("ul", la, [(w(!0), o(e, null, k(fe.value, (e) => (w(), o("li", {
3970
4059
  key: e.key,
3971
4060
  class: "g-sort-builder-add-item"
3972
- }, [s("span", ea, P(e.label), 1), s("div", ta, [s("button", {
4061
+ }, [s("span", ua, P(e.label), 1), s("div", da, [s("button", {
3973
4062
  type: "button",
3974
4063
  class: "g-sort-builder-direction",
3975
4064
  "aria-label": `Add ${e.label} ascending sort`,
3976
- onClick: (t) => Te(e.key, 1)
4065
+ onClick: (t) => we(e.key, 1)
3977
4066
  }, [...r[3] ||= [s("span", { class: "g-visually-hidden" }, " Add ascending sort ", -1), s("span", {
3978
4067
  class: "sort-indicator",
3979
4068
  "aria-hidden": "true"
@@ -3984,21 +4073,21 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
3984
4073
  }, [s("path", {
3985
4074
  fill: "currentColor",
3986
4075
  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"
3987
- })])], -1)]], 8, na), s("button", {
4076
+ })])], -1)]], 8, fa), s("button", {
3988
4077
  type: "button",
3989
4078
  class: "g-sort-builder-direction",
3990
4079
  "aria-label": `Add ${e.label} descending sort`,
3991
- onClick: (t) => Te(e.key, -1)
3992
- }, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span", ia, [(w(), o("svg", aa, [...r[4] ||= [s("path", {
4080
+ onClick: (t) => we(e.key, -1)
4081
+ }, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span", ma, [(w(), o("svg", ha, [...r[4] ||= [s("path", {
3993
4082
  fill: "currentColor",
3994
4083
  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"
3995
- }, null, -1)]]))])], 8, ra)])]))), 128))])])) : a("", !0),
3996
- Z.value.length ? (w(), i(Q, {
4084
+ }, null, -1)]]))])], 8, pa)])]))), 128))])])) : a("", !0),
4085
+ Q.value.length ? (w(), i($, {
3997
4086
  key: 3,
3998
4087
  outlined: "",
3999
4088
  size: "small",
4000
4089
  class: "g-sort-builder-clear",
4001
- onClick: Oe
4090
+ onClick: De
4002
4091
  }, {
4003
4092
  default: K(() => [...r[7] ||= [c(" Clear sort ", -1)]]),
4004
4093
  _: 1
@@ -4006,14 +4095,14 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4006
4095
  ], 512)]),
4007
4096
  _: 1
4008
4097
  })])) : a("", !0),
4009
- Ye.value ? (w(), o("div", oa, [l(ct, null, {
4010
- trigger: K(({ toggle: e }) => [l(Q, {
4098
+ Ye.value ? (w(), o("div", ga, [l(ut, null, {
4099
+ trigger: K(({ toggle: e }) => [l($, {
4011
4100
  size: "small",
4012
4101
  class: _(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": Je.value }]),
4013
4102
  "aria-label": "Choose visible columns",
4014
4103
  onClick: e
4015
4104
  }, {
4016
- default: K(() => [(w(), o("svg", sa, [...r[10] ||= [s("path", {
4105
+ default: K(() => [(w(), o("svg", _a, [...r[10] ||= [s("path", {
4017
4106
  fill: "currentColor",
4018
4107
  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"
4019
4108
  }, null, -1)]]))]),
@@ -4022,10 +4111,10 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4022
4111
  default: K(() => [s("fieldset", {
4023
4112
  class: "g-column-visibility-popover",
4024
4113
  "aria-labelledby": `${R(G)}-column-visibility-heading`
4025
- }, [s("div", la, [s("span", {
4114
+ }, [s("div", ya, [s("span", {
4026
4115
  id: `${R(G)}-column-visibility-heading`,
4027
4116
  class: "g-column-visibility-heading"
4028
- }, " Shown columns ", 8, ua), s("span", da, [l(Q, {
4117
+ }, " Shown columns ", 8, ba), s("span", xa, [l($, {
4029
4118
  text: "",
4030
4119
  size: "small",
4031
4120
  class: _(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !Je.value }]),
@@ -4033,18 +4122,18 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4033
4122
  }, {
4034
4123
  default: K(() => [...r[11] ||= [c(" Show All ", -1)]]),
4035
4124
  _: 1
4036
- }, 8, ["class"])])]), s("div", fa, [(w(!0), o(e, null, k(t.columns, (e) => (w(), o("label", {
4125
+ }, 8, ["class"])])]), s("div", Sa, [(w(!0), o(e, null, k(t.columns, (e) => (w(), o("label", {
4037
4126
  key: e.key,
4038
4127
  class: "g-column-visibility-option"
4039
4128
  }, [s("input", {
4040
4129
  checked: Qe(e),
4041
4130
  type: "checkbox",
4042
4131
  onChange: (t) => $e(e, t.target.checked)
4043
- }, null, 40, pa), s("span", null, P(e.label), 1)]))), 128))])], 8, ca)]),
4132
+ }, null, 40, Ca), s("span", null, P(e.label), 1)]))), 128))])], 8, va)]),
4044
4133
  _: 1
4045
4134
  })])) : a("", !0),
4046
- Xe.value ? (w(), o("div", ma, [A(n.$slots, "controls")])) : a("", !0),
4047
- s("div", ha, [R(S) ? (w(), i(Q, {
4135
+ Xe.value ? (w(), o("div", wa, [A(n.$slots, "controls")])) : a("", !0),
4136
+ s("div", Ta, [R(S) ? (w(), i($, {
4048
4137
  key: 0,
4049
4138
  outlined: "",
4050
4139
  size: "small",
@@ -4064,7 +4153,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4064
4153
  _: 1
4065
4154
  }, 8, ["onClick"])) : a("", !0)])
4066
4155
  ]),
4067
- tt.value ? (w(), o("div", ga, [l(yi, {
4156
+ tt.value ? (w(), o("div", Ea, [l(ki, {
4068
4157
  start: t.startIndex,
4069
4158
  "page-size": t.pageSize,
4070
4159
  "page-sizes": t.pageSizes,
@@ -4077,62 +4166,62 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4077
4166
  "page-sizes",
4078
4167
  "total"
4079
4168
  ])])) : a("", !0),
4080
- s("div", _a, [s("span", va, P(Ze.value) + " results", 1), A(n.$slots, "right-controls")])
4169
+ s("div", Da, [s("span", Oa, P(Ze.value) + " results", 1), A(n.$slots, "right-controls")])
4081
4170
  ], 512)) : a("", !0),
4082
4171
  s("div", {
4083
4172
  ref_key: "tableWrapRef",
4084
- ref: J,
4173
+ ref: X,
4085
4174
  class: "g-table-table-wrap"
4086
4175
  }, [s("table", {
4087
- id: oe,
4176
+ id: ae,
4088
4177
  class: _(["g-table", { "g-table--resizable": t.resizableColumns }]),
4089
4178
  ref_key: "tableRef",
4090
- ref: re,
4179
+ ref: J,
4091
4180
  "aria-rowcount": Ze.value
4092
4181
  }, [
4093
- s("caption", ba, P([
4182
+ s("caption", Aa, P([
4094
4183
  t.label,
4095
- ye.value,
4096
- be.value
4184
+ ve.value,
4185
+ ye.value
4097
4186
  ].filter(Boolean).join(", ")), 1),
4098
- s("colgroup", null, [t.bulkSelectionEnabled ? (w(), o("col", xa)) : a("", !0), (w(!0), o(e, null, k(Ke.value, (e) => (w(), o("col", {
4187
+ s("colgroup", null, [t.bulkSelectionEnabled ? (w(), o("col", ja)) : a("", !0), (w(!0), o(e, null, k(Ke.value, (e) => (w(), o("col", {
4099
4188
  key: e.key,
4100
4189
  "data-column-key": String(e.key),
4101
4190
  style: v(He(e))
4102
- }, null, 12, Sa))), 128))]),
4103
- s("thead", Ca, [s("tr", wa, [t.bulkSelectionEnabled ? (w(), o("th", Ta, [s("input", {
4191
+ }, null, 12, Ma))), 128))]),
4192
+ s("thead", Na, [s("tr", Pa, [t.bulkSelectionEnabled ? (w(), o("th", Fa, [s("input", {
4104
4193
  type: "checkbox",
4105
4194
  checked: D.value,
4106
4195
  indeterminate: j.value,
4107
4196
  onChange: N,
4108
4197
  "aria-label": D.value ? "Deselect all rows" : "Select all rows",
4109
4198
  class: "g-bulk-select-checkbox"
4110
- }, null, 40, Ea)])) : a("", !0), (w(!0), o(e, null, k(Ke.value, (e) => (w(), o("th", {
4199
+ }, null, 40, Ia)])) : a("", !0), (w(!0), o(e, null, k(Ke.value, (e) => (w(), o("th", {
4111
4200
  key: e.key,
4112
4201
  id: `${R(G)}-th-${String(e.key)}`,
4113
- "aria-sort": _e(e.key),
4202
+ "aria-sort": ge(e.key),
4114
4203
  class: _([
4115
4204
  "g-th",
4116
4205
  { "g-th--resizable": t.resizableColumns },
4117
- { sorted: me(e.key) !== -1 },
4206
+ { sorted: pe(e.key) !== -1 },
4118
4207
  { filtered: ot(e) }
4119
4208
  ]),
4120
4209
  scope: "col"
4121
- }, [s("div", Oa, [e.sortable ? (w(), o("button", {
4210
+ }, [s("div", Ra, [e.sortable ? (w(), o("button", {
4122
4211
  key: 0,
4123
4212
  type: "button",
4124
4213
  class: "g-column-head",
4125
4214
  "aria-describedby": `${R(G)}-sort-desc-${String(e.key)}`,
4126
- onClick: (t) => we(e, t.shiftKey)
4127
- }, [c(P(e.label) + " ", 1), me(e.key) === -1 ? a("", !0) : (w(), o("span", Aa, [(w(), o("svg", {
4215
+ onClick: (t) => Ce(e, t.shiftKey)
4216
+ }, [c(P(e.label) + " ", 1), pe(e.key) === -1 ? a("", !0) : (w(), o("span", Ba, [(w(), o("svg", {
4128
4217
  xmlns: "http://www.w3.org/2000/svg",
4129
4218
  viewBox: "0 0 640 640",
4130
4219
  height: "1.5em",
4131
- style: v({ transform: `rotate(${he(e.key)?.order === 1 ? 0 : 180}deg)` })
4220
+ style: v({ transform: `rotate(${me(e.key)?.order === 1 ? 0 : 180}deg)` })
4132
4221
  }, [...r[13] ||= [s("path", {
4133
4222
  fill: "currentColor",
4134
4223
  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"
4135
- }, null, -1)]], 4))]))], 8, ka)) : (w(), o("span", ja, P(e.label), 1)), e.filter ? (w(), i(ct, {
4224
+ }, null, -1)]], 4))]))], 8, za)) : (w(), o("span", Va, P(e.label), 1)), e.filter ? (w(), i(ut, {
4136
4225
  key: 2,
4137
4226
  "aria-labelledby": `${R(G)}-filter-label-${String(e.key)}`
4138
4227
  }, {
@@ -4151,8 +4240,8 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4151
4240
  }, [s("path", {
4152
4241
  fill: "currentColor",
4153
4242
  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"
4154
- })], -1)]], 10, Ma)]),
4155
- default: K(() => [e.filter.type === "select" ? (w(), i(Jt, {
4243
+ })], -1)]], 10, Ha)]),
4244
+ default: K(() => [e.filter.type === "select" ? (w(), i(Xt, {
4156
4245
  key: 0,
4157
4246
  "model-value": pt(e),
4158
4247
  "onUpdate:modelValue": (t) => mt(e, t),
@@ -4167,7 +4256,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4167
4256
  "onUpdate:modelValue",
4168
4257
  "options",
4169
4258
  "search-description"
4170
- ])) : e.filter.type === "search" ? (w(), o("div", Na, [r[15] ||= s("span", {
4259
+ ])) : e.filter.type === "search" ? (w(), o("div", Ua, [r[15] ||= s("span", {
4171
4260
  class: "g-filter-search-icon",
4172
4261
  "aria-hidden": "true"
4173
4262
  }, [s("svg", {
@@ -4184,21 +4273,21 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4184
4273
  onInput: (t) => at(e, t.target.value),
4185
4274
  placeholder: e.filter.placeholder,
4186
4275
  "aria-label": `Search ${e.label}`
4187
- }, null, 40, Pa)])) : e.filter.type === "toggle" ? (w(), o("div", Fa, [s("div", Ia, [
4276
+ }, null, 40, Wa)])) : e.filter.type === "toggle" ? (w(), o("div", Ga, [s("div", Ka, [
4188
4277
  s("input", {
4189
4278
  type: "checkbox",
4190
4279
  checked: it(e) === !0,
4191
4280
  onChange: (t) => at(e, t.target.checked),
4192
4281
  id: `${R(G)}-filter-${String(e.key)}`,
4193
4282
  "aria-describedby": e.filter.description ? `${R(G)}-filter-description-${String(e.key)}` : void 0
4194
- }, null, 40, La),
4195
- s("label", { for: `${R(G)}-filter-${String(e.key)}` }, P(e.filter.label), 9, Ra),
4283
+ }, null, 40, qa),
4284
+ s("label", { for: `${R(G)}-filter-${String(e.key)}` }, P(e.filter.label), 9, Ja),
4196
4285
  e.filter.description ? (w(), o("span", {
4197
4286
  key: 0,
4198
4287
  class: "g-filter-description",
4199
4288
  id: `${R(G)}-filter-description-${String(e.key)}`
4200
- }, P(e.filter.description), 9, za)) : a("", !0)
4201
- ])])) : e.filter.type === "multi-select" && e.filter.searchable ? (w(), i(Rr, {
4289
+ }, P(e.filter.description), 9, Ya)) : a("", !0)
4290
+ ])])) : e.filter.type === "multi-select" && e.filter.searchable ? (w(), i(Jr, {
4202
4291
  key: 3,
4203
4292
  "model-value": ht(e),
4204
4293
  "onUpdate:modelValue": (t) => gt(e, t),
@@ -4213,7 +4302,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4213
4302
  "options",
4214
4303
  "placeholder",
4215
4304
  "search-description"
4216
- ])) : e.filter.type === "multi-select" ? (w(), o("div", Ba, [l(Yr, {
4305
+ ])) : e.filter.type === "multi-select" ? (w(), o("div", Xa, [l(ai, {
4217
4306
  "model-value": ht(e),
4218
4307
  "onUpdate:modelValue": (t) => gt(e, t),
4219
4308
  options: ft(e),
@@ -4222,7 +4311,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4222
4311
  "model-value",
4223
4312
  "onUpdate:modelValue",
4224
4313
  "options"
4225
- ]), ot(e) ? (w(), i(Q, {
4314
+ ]), ot(e) ? (w(), i($, {
4226
4315
  key: 0,
4227
4316
  class: "clear-multiselect-btn",
4228
4317
  theme: "accent",
@@ -4236,11 +4325,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4236
4325
  }, 1032, ["aria-labelledby"])) : a("", !0)]), t.resizableColumns ? (w(), o("div", {
4237
4326
  key: 0,
4238
4327
  "data-column-key": String(e.key),
4239
- class: _(["g-column-resize-handle", { "g-column-resize-handle--active": X.value?.key === e.key }]),
4328
+ class: _(["g-column-resize-handle", { "g-column-resize-handle--active": Z.value?.key === e.key }]),
4240
4329
  role: "separator",
4241
4330
  tabindex: "0",
4242
4331
  "aria-orientation": "vertical",
4243
- "aria-controls": oe,
4332
+ "aria-controls": ae,
4244
4333
  "aria-label": `Resize ${e.label} column`,
4245
4334
  "aria-valuemin": 50,
4246
4335
  "aria-valuemax": Fe(e.key),
@@ -4249,11 +4338,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4249
4338
  onClick: r[0] ||= q(() => {}, ["stop", "prevent"]),
4250
4339
  onKeydown: (t) => Ve(t, e.key),
4251
4340
  onPointerdown: (t) => Be(t, e.key)
4252
- }, null, 42, Va)) : a("", !0)], 10, Da))), 128))])]),
4253
- t.data.length === 0 ? (w(), o("tbody", Ha, [s("tr", Ua, [s("td", {
4341
+ }, null, 42, Za)) : a("", !0)], 10, La))), 128))])]),
4342
+ t.data.length === 0 ? (w(), o("tbody", Qa, [s("tr", $a, [s("td", {
4254
4343
  class: "g-table-empty",
4255
4344
  colspan: Ke.value.length + +!!t.bulkSelectionEnabled
4256
- }, [A(n.$slots, "empty")], 8, Wa)])])) : (w(), i(fr, {
4345
+ }, [A(n.$slots, "empty")], 8, eo)])])) : (w(), i(Sr, {
4257
4346
  key: 1,
4258
4347
  data: t.data,
4259
4348
  columns: Ke.value,
@@ -4282,11 +4371,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4282
4371
  "table-id",
4283
4372
  "change-tracker"
4284
4373
  ]))
4285
- ], 10, ya), s("div", Ga, [(w(!0), o(e, null, k(Ke.value, (t) => (w(), o(e, { key: t.key }, [t.sortable ? (w(), o("span", {
4374
+ ], 10, ka), s("div", to, [(w(!0), o(e, null, k(Ke.value, (t) => (w(), o(e, { key: t.key }, [t.sortable ? (w(), o("span", {
4286
4375
  key: 0,
4287
4376
  id: `${R(G)}-sort-desc-${String(t.key)}`
4288
- }, P(ve(t.key)), 9, Ka)) : a("", !0), t.filter ? (w(), o(e, { key: 1 }, [s("span", { id: `${R(G)}-filter-desc-${String(t.key)}` }, P(t.label) + " column" + P(ot(t) ? ", filtered" : ""), 9, qa), s("span", { id: `${R(G)}-filter-label-${String(t.key)}` }, "Filter " + P(t.label) + " column", 9, Ja)], 64)) : a("", !0)], 64))), 128))])], 512),
4289
- t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div", Ya, [s("span", Xa, P(m.value.length) + " row" + P(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Za, [(w(!0), o(e, null, k(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l(Q, {
4377
+ }, P(_e(t.key)), 9, no)) : a("", !0), t.filter ? (w(), o(e, { key: 1 }, [s("span", { id: `${R(G)}-filter-desc-${String(t.key)}` }, P(t.label) + " column" + P(ot(t) ? ", filtered" : ""), 9, ro), s("span", { id: `${R(G)}-filter-label-${String(t.key)}` }, "Filter " + P(t.label) + " column", 9, io)], 64)) : a("", !0)], 64))), 128))])], 512),
4378
+ t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div", ao, [s("span", oo, P(m.value.length) + " row" + P(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", so, [(w(!0), o(e, null, k(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l($, {
4290
4379
  theme: e.theme || "accent",
4291
4380
  onClick: (t) => z(e.id),
4292
4381
  size: "small"
@@ -4296,7 +4385,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4296
4385
  }, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
4297
4386
  ])], 4));
4298
4387
  }
4299
- }), $a = ["id"], eo = { class: "g-modal-inner" }, to = { class: "g-modal-header" }, no = ["id"], ro = ["id"], io = /* @__PURE__ */ u({
4388
+ }), lo = ["id"], uo = { class: "g-modal-inner" }, fo = { class: "g-modal-header" }, po = ["id"], mo = ["id"], ho = /* @__PURE__ */ u({
4300
4389
  __name: "GModal",
4301
4390
  props: {
4302
4391
  label: {},
@@ -4310,11 +4399,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4310
4399
  },
4311
4400
  emits: ["close"],
4312
4401
  setup(e, { emit: c }) {
4313
- let u = e, d = c, f = U("dialog"), p = O(!0), m = B(), { pop: g, push: _, isTop: v, zIndex: b } = qe(m, !0, !0), { deactivate: S, activate: C } = tt(f, v);
4402
+ let u = e, d = c, f = U("dialog"), p = O(!0), m = B(), { pop: g, push: _, isTop: v, zIndex: b } = Ye(m, !0, !0), { deactivate: S, activate: C } = rt(f, v);
4314
4403
  function T() {
4315
4404
  d("close");
4316
4405
  }
4317
- nt([f], v, p, T, g), x(() => {
4406
+ it([f], v, p, T, g), x(() => {
4318
4407
  _(), C();
4319
4408
  }), y(() => {
4320
4409
  g(), S();
@@ -4340,12 +4429,12 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4340
4429
  ref_key: "dialog",
4341
4430
  ref: f,
4342
4431
  style: { zIndex: R(b) }
4343
- }), [s("div", eo, [s("div", to, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
4432
+ }), [s("div", uo, [s("div", fo, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
4344
4433
  key: 0,
4345
4434
  id: "modal-label-" + R(m),
4346
4435
  class: "g-modal-label",
4347
4436
  tabindex: "-1"
4348
- }, P(e.label), 9, no)), s("button", {
4437
+ }, P(e.label), 9, po)), s("button", {
4349
4438
  class: "g-modal-close",
4350
4439
  onClick: T,
4351
4440
  "aria-label": "Close"
@@ -4360,36 +4449,36 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4360
4449
  })], -1)]])]), s("div", {
4361
4450
  id: "modal-description-" + R(m),
4362
4451
  class: "g-modal-content"
4363
- }, [A(r.$slots, "default")], 8, ro)])], 16, $a)]),
4452
+ }, [A(r.$slots, "default")], 8, mo)])], 16, lo)]),
4364
4453
  _: 3
4365
4454
  })]));
4366
4455
  }
4367
- }), ao = /* @__PURE__ */ u({
4456
+ }), go = /* @__PURE__ */ u({
4368
4457
  __name: "GDetailList",
4369
4458
  props: { variant: { default: "grid" } },
4370
4459
  setup(e) {
4371
4460
  let t = e;
4372
4461
  return (e, n) => (w(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [A(e.$slots, "default")], 2));
4373
4462
  }
4374
- }), oo = { class: "g-detail-list-item" }, so = { class: "g-detail-list-item__label" }, co = { class: "g-detail-list-item__value" }, lo = /* @__PURE__ */ u({
4463
+ }), _o = { class: "g-detail-list-item" }, vo = { class: "g-detail-list-item__label" }, yo = { class: "g-detail-list-item__value" }, bo = /* @__PURE__ */ u({
4375
4464
  __name: "GDetailListItem",
4376
4465
  props: { label: {} },
4377
4466
  setup(e) {
4378
- return (t, n) => (w(), o("div", oo, [s("dt", so, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])]), s("dd", co, [A(t.$slots, "default")])]));
4467
+ return (t, n) => (w(), o("div", _o, [s("dt", vo, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])]), s("dd", yo, [A(t.$slots, "default")])]));
4379
4468
  }
4380
- }), uo = {
4469
+ }), xo = {
4381
4470
  key: 0,
4382
4471
  class: "g-scroll-lock-overlay"
4383
- }, fo = /* @__PURE__ */ u({
4472
+ }, So = /* @__PURE__ */ u({
4384
4473
  __name: "GOverlay",
4385
4474
  setup(e) {
4386
- let { hasScrollLock: t } = Je();
4475
+ let { hasScrollLock: t } = Xe();
4387
4476
  return (e, r) => (w(), i(n, { name: "g-fade" }, {
4388
- default: K(() => [R(t) ? (w(), o("div", uo)) : a("", !0)]),
4477
+ default: K(() => [R(t) ? (w(), o("div", xo)) : a("", !0)]),
4389
4478
  _: 1
4390
4479
  }));
4391
4480
  }
4392
- }), po = { class: "popover-content" }, mo = { class: "year-dropdown" }, ho = { class: "month-selector" }, go = /* @__PURE__ */ u({
4481
+ }), Co = { class: "popover-content" }, wo = { class: "year-dropdown" }, To = { class: "month-selector" }, Eo = /* @__PURE__ */ u({
4393
4482
  __name: "GTermSelectorControl",
4394
4483
  props: /*@__PURE__*/ m({
4395
4484
  termYears: { default: () => ["2026"] },
@@ -4410,7 +4499,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4410
4499
  emits: ["update:modelValue"],
4411
4500
  setup(e) {
4412
4501
  let t = V(e, "modelValue");
4413
- return (n, r) => (w(), o("div", po, [s("div", mo, [l(Jt, {
4502
+ return (n, r) => (w(), o("div", Co, [s("div", wo, [l(Xt, {
4414
4503
  modelValue: t.value.year,
4415
4504
  "onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
4416
4505
  options: e.termYears,
@@ -4419,7 +4508,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4419
4508
  "modelValue",
4420
4509
  "options",
4421
4510
  "label"
4422
- ])]), s("div", ho, [l(Ct, {
4511
+ ])]), s("div", To, [l(Tt, {
4423
4512
  modelValue: t.value.name,
4424
4513
  "onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
4425
4514
  options: e.termNames,
@@ -4431,7 +4520,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4431
4520
  "label"
4432
4521
  ])])]));
4433
4522
  }
4434
- }), _o = { class: "g-term-selector" }, vo = { class: "g-term-label" }, yo = /* @__PURE__ */ u({
4523
+ }), Do = { class: "g-term-selector" }, Oo = { class: "g-term-label" }, ko = /* @__PURE__ */ u({
4435
4524
  __name: "GTermSelector",
4436
4525
  props: /*@__PURE__*/ m({
4437
4526
  heading: { default: "Period Selection" },
@@ -4453,8 +4542,8 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4453
4542
  emits: ["update:modelValue"],
4454
4543
  setup(e) {
4455
4544
  let t = V(e, "modelValue"), n = `${B()}-heading`;
4456
- return (r, i) => (w(), o("div", _o, [l(ct, { "aria-labelledby": n }, {
4457
- trigger: K(({ toggle: e, open: n, popoverId: r }) => [l(Q, {
4545
+ return (r, i) => (w(), o("div", Do, [l(ut, { "aria-labelledby": n }, {
4546
+ trigger: K(({ toggle: e, open: n, popoverId: r }) => [l($, {
4458
4547
  class: "g-term-selector-button",
4459
4548
  theme: "none",
4460
4549
  outlined: "",
@@ -4469,7 +4558,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4469
4558
  xmlns: "http://www.w3.org/2000/svg",
4470
4559
  viewBox: "0 0 640 640"
4471
4560
  }, [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),
4472
- s("span", vo, P(t.value?.name) + " " + P(t.value?.year), 1),
4561
+ s("span", Oo, P(t.value?.name) + " " + P(t.value?.year), 1),
4473
4562
  i[2] ||= s("span", { class: "g-caret" }, [s("svg", {
4474
4563
  role: "none",
4475
4564
  xmlns: "http://www.w3.org/2000/svg",
@@ -4486,18 +4575,18 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4486
4575
  id: n,
4487
4576
  class: "g-popover-title",
4488
4577
  tabindex: "-1"
4489
- }, P(e.heading), 1), l(go, h(r.$props, {
4578
+ }, P(e.heading), 1), l(Eo, h(r.$props, {
4490
4579
  modelValue: t.value,
4491
4580
  "onUpdate:modelValue": i[0] ||= (e) => t.value = e
4492
4581
  }), null, 16, ["modelValue"])]),
4493
4582
  _: 1
4494
4583
  })]));
4495
4584
  }
4496
- }), bo = { class: "g-user-menu" }, xo = [
4585
+ }), Ao = { class: "g-user-menu" }, jo = [
4497
4586
  "aria-label",
4498
4587
  "aria-expanded",
4499
4588
  "onClick"
4500
- ], So = { class: "g-user-menu__popover" }, Co = { class: "g-user-menu__list" }, wo = /* @__PURE__ */ u({
4589
+ ], Mo = { class: "g-user-menu__popover" }, No = { class: "g-user-menu__list" }, Po = /* @__PURE__ */ u({
4501
4590
  __name: "GUserMenu",
4502
4591
  props: {
4503
4592
  initials: {},
@@ -4512,7 +4601,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4512
4601
  e.target?.closest("a") && (r.value = !1);
4513
4602
  }
4514
4603
  let u = H();
4515
- return (d, f) => (w(), o("div", bo, [l(ct, {
4604
+ return (d, f) => (w(), o("div", Ao, [l(ut, {
4516
4605
  modelValue: r.value,
4517
4606
  "onUpdate:modelValue": f[0] ||= (e) => r.value = e,
4518
4607
  minimal: ""
@@ -4524,8 +4613,8 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4524
4613
  "aria-expanded": r.value,
4525
4614
  "aria-haspopup": "menu",
4526
4615
  onClick: e
4527
- }, P(t.initials), 13, xo)]),
4528
- default: K(() => [s("div", So, [s("h2", {
4616
+ }, P(t.initials), 13, jo)]),
4617
+ default: K(() => [s("div", Mo, [s("h2", {
4529
4618
  id: n,
4530
4619
  ref_key: "emailHeading",
4531
4620
  ref: a,
@@ -4535,11 +4624,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4535
4624
  class: "g-user-menu__nav",
4536
4625
  "aria-labelledby": n,
4537
4626
  onClick: c
4538
- }, [s("ul", Co, [(w(!0), o(e, null, k(u.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(j(e)))]))), 128))])])])]),
4627
+ }, [s("ul", No, [(w(!0), o(e, null, k(u.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(j(e)))]))), 128))])])])]),
4539
4628
  _: 1
4540
4629
  }, 8, ["modelValue"])]));
4541
4630
  }
4542
- }), To = /* @__PURE__ */ u({
4631
+ }), Fo = /* @__PURE__ */ u({
4543
4632
  __name: "GCurrencyInput",
4544
4633
  props: /*@__PURE__*/ m({
4545
4634
  label: { default: void 0 },
@@ -4563,7 +4652,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4563
4652
  emits: ["update:modelValue"],
4564
4653
  setup(e) {
4565
4654
  let t = e, n = V(e, "modelValue");
4566
- return (e, r) => (w(), i(ze, h({
4655
+ return (e, r) => (w(), i(Ve, h({
4567
4656
  modelValue: n.value,
4568
4657
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
4569
4658
  name: t.name,
@@ -4590,7 +4679,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4590
4679
  "form-key"
4591
4680
  ]));
4592
4681
  }
4593
- }), Eo = /* @__PURE__ */ u({
4682
+ }), Io = /* @__PURE__ */ u({
4594
4683
  __name: "GEmailInput",
4595
4684
  props: /*@__PURE__*/ m({
4596
4685
  label: { default: void 0 },
@@ -4613,7 +4702,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4613
4702
  emits: ["update:modelValue"],
4614
4703
  setup(e) {
4615
4704
  let t = V(e, "modelValue");
4616
- return (n, r) => (w(), i(ze, h({
4705
+ return (n, r) => (w(), i(Ve, h({
4617
4706
  modelValue: t.value,
4618
4707
  "onUpdate:modelValue": r[0] ||= (e) => t.value = e,
4619
4708
  name: e.name,
@@ -4635,13 +4724,13 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4635
4724
  "instructions"
4636
4725
  ]));
4637
4726
  }
4638
- }), Do = ["for"], Oo = {
4727
+ }), Lo = ["for"], Ro = {
4639
4728
  key: 0,
4640
4729
  class: "g-file-input-required"
4641
- }, ko = {
4730
+ }, zo = {
4642
4731
  key: 0,
4643
4732
  class: "g-file-input-box-header"
4644
- }, Ao = ["id"], jo = [
4733
+ }, Bo = ["id"], Vo = [
4645
4734
  "id",
4646
4735
  "disabled",
4647
4736
  "required",
@@ -4650,11 +4739,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4650
4739
  "aria-invalid",
4651
4740
  "aria-describedby",
4652
4741
  "aria-errormessage"
4653
- ], Mo = {
4742
+ ], Ho = {
4654
4743
  key: 1,
4655
4744
  class: "g-file-input-pills",
4656
4745
  "aria-label": "Selected files"
4657
- }, No = /* @__PURE__ */ u({
4746
+ }, Uo = /* @__PURE__ */ u({
4658
4747
  inheritAttrs: !1,
4659
4748
  __name: "GFileInput",
4660
4749
  props: /*@__PURE__*/ m({
@@ -4684,7 +4773,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4684
4773
  }),
4685
4774
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
4686
4775
  setup(t, { emit: n }) {
4687
- let i = t, u = V(t, "modelValue"), d = B(), { displayErrors: f } = $({
4776
+ let i = t, u = V(t, "modelValue"), d = B(), { displayErrors: f } = Me({
4688
4777
  name: i.name,
4689
4778
  value: u,
4690
4779
  errors: I(i, "errors"),
@@ -4711,12 +4800,12 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4711
4800
  key: 0,
4712
4801
  for: R(d),
4713
4802
  class: "g-file-input-label"
4714
- }, [c(P(t.label) + " ", 1), t.required ? (w(), o("span", Oo, "*")) : a("", !0)], 8, Do)) : a("", !0),
4803
+ }, [c(P(t.label) + " ", 1), t.required ? (w(), o("span", Ro, "*")) : a("", !0)], 8, Lo)) : a("", !0),
4715
4804
  s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
4716
- t.instructions ? (w(), o("div", ko, [s("span", {
4805
+ t.instructions ? (w(), o("div", zo, [s("span", {
4717
4806
  id: "instructions-" + R(d),
4718
4807
  class: "g-file-input-instructions"
4719
- }, P(t.instructions), 9, Ao)])) : a("", !0),
4808
+ }, P(t.instructions), 9, Bo)])) : a("", !0),
4720
4809
  s("input", {
4721
4810
  id: R(d),
4722
4811
  type: "file",
@@ -4729,8 +4818,8 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4729
4818
  "aria-describedby": t.instructions ? "instructions-" + R(d) : void 0,
4730
4819
  "aria-errormessage": y.value ? "error-message-" + R(d) : void 0,
4731
4820
  onChange: g
4732
- }, null, 40, jo),
4733
- t.multiple && b.value.length > 0 ? (w(), o("ul", Mo, [(w(!0), o(e, null, k(b.value, (e) => (w(), o("li", {
4821
+ }, null, 40, Vo),
4822
+ t.multiple && b.value.length > 0 ? (w(), o("ul", Ho, [(w(!0), o(e, null, k(b.value, (e) => (w(), o("li", {
4734
4823
  key: e,
4735
4824
  class: "g-file-input-pill"
4736
4825
  }, [r[0] ||= s("svg", {
@@ -4740,13 +4829,13 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4740
4829
  viewBox: "0 0 640 640"
4741
4830
  }, [s("path", { d: "M192 64C156.7 64 128 92.7 128 128L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 234.5C512 217.5 505.3 201.2 493.3 189.2L386.7 82.7C374.7 70.7 358.5 64 341.5 64L192 64zM453.5 240L360 240C346.7 240 336 229.3 336 216L336 122.5L453.5 240z" })], -1), c(" " + P(e), 1)]))), 128))])) : a("", !0)
4742
4831
  ], 2),
4743
- l(Me, {
4832
+ l(Pe, {
4744
4833
  errors: v.value,
4745
4834
  id: "error-message-" + R(d)
4746
4835
  }, null, 8, ["errors", "id"])
4747
4836
  ], 2));
4748
4837
  }
4749
- }), Po = /* @__PURE__ */ u({
4838
+ }), Wo = /* @__PURE__ */ u({
4750
4839
  __name: "GDateInput",
4751
4840
  props: /*@__PURE__*/ m({
4752
4841
  label: { default: void 0 },
@@ -4770,7 +4859,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4770
4859
  emits: ["update:modelValue"],
4771
4860
  setup(e) {
4772
4861
  let t = e, n = V(e, "modelValue");
4773
- return (e, r) => (w(), i(ze, h({
4862
+ return (e, r) => (w(), i(Ve, h({
4774
4863
  modelValue: n.value,
4775
4864
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
4776
4865
  name: t.name,
@@ -4794,21 +4883,21 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4794
4883
  "form-key"
4795
4884
  ]));
4796
4885
  }
4797
- }), Fo = { class: "g-date-range-input" }, Io = {
4886
+ }), Go = { class: "g-date-range-input" }, Ko = {
4798
4887
  key: 0,
4799
4888
  class: "g-date-range-input__label"
4800
- }, Lo = {
4889
+ }, qo = {
4801
4890
  key: 0,
4802
4891
  class: "g-date-range-input__required",
4803
4892
  "aria-hidden": "true"
4804
- }, Ro = {
4893
+ }, Jo = {
4805
4894
  key: 1,
4806
4895
  class: "g-date-range-input__instructions"
4807
- }, zo = { class: "g-date-range-input__fields" }, Bo = {
4896
+ }, Yo = { class: "g-date-range-input__fields" }, Xo = {
4808
4897
  key: 2,
4809
4898
  class: "g-date-range-input__errors",
4810
4899
  role: "alert"
4811
- }, Vo = /* @__PURE__ */ u({
4900
+ }, Zo = /* @__PURE__ */ u({
4812
4901
  __name: "GDateRangeInput",
4813
4902
  props: /*@__PURE__*/ m({
4814
4903
  label: { default: void 0 },
@@ -4835,7 +4924,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4835
4924
  }),
4836
4925
  emits: ["update:modelValue"],
4837
4926
  setup(t) {
4838
- let n = t, r = V(t, "modelValue"), i = O(r.value.start || null), u = O(r.value.end || null), { displayErrors: d } = $({
4927
+ let n = t, r = V(t, "modelValue"), i = O(r.value.start || null), u = O(r.value.end || null), { displayErrors: d } = Me({
4839
4928
  name: n.name,
4840
4929
  value: r,
4841
4930
  errors: I(n, "errors"),
@@ -4848,10 +4937,10 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4848
4937
  };
4849
4938
  }), W(r, (e) => {
4850
4939
  e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
4851
- }, { deep: !0 }), (t, r) => (w(), o("div", Fo, [
4852
- n.label ? (w(), o("div", Io, [c(P(n.label), 1), n.required ? (w(), o("span", Lo, " *")) : a("", !0)])) : a("", !0),
4853
- n.instructions ? (w(), o("div", Ro, P(n.instructions), 1)) : a("", !0),
4854
- s("div", zo, [l(Po, {
4940
+ }, { deep: !0 }), (t, r) => (w(), o("div", Go, [
4941
+ n.label ? (w(), o("div", Ko, [c(P(n.label), 1), n.required ? (w(), o("span", qo, " *")) : a("", !0)])) : a("", !0),
4942
+ n.instructions ? (w(), o("div", Jo, P(n.instructions), 1)) : a("", !0),
4943
+ s("div", Yo, [l(Wo, {
4855
4944
  modelValue: i.value,
4856
4945
  "onUpdate:modelValue": r[0] ||= (e) => i.value = e,
4857
4946
  label: n.startLabel,
@@ -4863,7 +4952,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4863
4952
  "label",
4864
4953
  "disabled",
4865
4954
  "required"
4866
- ]), l(Po, {
4955
+ ]), l(Wo, {
4867
4956
  modelValue: u.value,
4868
4957
  "onUpdate:modelValue": r[1] ||= (e) => u.value = e,
4869
4958
  label: n.endLabel,
@@ -4876,13 +4965,13 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4876
4965
  "disabled",
4877
4966
  "required"
4878
4967
  ])]),
4879
- R(d).length > 0 ? (w(), o("div", Bo, [(w(!0), o(e, null, k(R(d), (e, t) => (w(), o("div", {
4968
+ R(d).length > 0 ? (w(), o("div", Xo, [(w(!0), o(e, null, k(R(d), (e, t) => (w(), o("div", {
4880
4969
  key: t,
4881
4970
  class: "g-date-range-input__error"
4882
4971
  }, P(e), 1))), 128))])) : a("", !0)
4883
4972
  ]));
4884
4973
  }
4885
- }), Ho = ["action", "method"], Uo = /* @__PURE__ */ u({
4974
+ }), Qo = ["action", "method"], $o = /* @__PURE__ */ u({
4886
4975
  __name: "GForm",
4887
4976
  props: /*@__PURE__*/ m({
4888
4977
  action: { default: void 0 },
@@ -4894,7 +4983,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4894
4983
  }),
4895
4984
  emits: /*@__PURE__*/ m(["submit"], ["update:modelValue"]),
4896
4985
  setup(e, { emit: t }) {
4897
- let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (fe() ? Ae(n.formKey) : Oe());
4986
+ let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (pe() ? je(n.formKey) : ke());
4898
4987
  a || T("form", s), W(() => s.values.value, (e) => {
4899
4988
  r.value = { ...e };
4900
4989
  }, { deep: !0 }), W(() => r.value, (e) => {
@@ -4922,9 +5011,9 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4922
5011
  hasErrors: R(s).hasErrors.value,
4923
5012
  values: R(s).values.value,
4924
5013
  errors: R(s).errors.value
4925
- })], 40, Ho));
5014
+ })], 40, Qo));
4926
5015
  }
4927
- }), Wo = /* @__PURE__ */ u({
5016
+ }), es = /* @__PURE__ */ u({
4928
5017
  __name: "GSubmitButton",
4929
5018
  props: {
4930
5019
  disabled: {
@@ -4936,8 +5025,8 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4936
5025
  formKey: { default: "default" }
4937
5026
  },
4938
5027
  setup(e) {
4939
- 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);
4940
- return (e, n) => (w(), i(Q, {
5028
+ 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) ?? (pe() ? je(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
5029
+ return (e, n) => (w(), i($, {
4941
5030
  type: "submit",
4942
5031
  disabled: u.value,
4943
5032
  variant: t.variant,
@@ -4947,11 +5036,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4947
5036
  _: 3
4948
5037
  }, 8, ["disabled", "variant"]));
4949
5038
  }
4950
- }), Go = ["for"], Ko = {
5039
+ }), ts = ["for"], ns = {
4951
5040
  key: 0,
4952
5041
  class: "g-textarea-required",
4953
5042
  "aria-hidden": "true"
4954
- }, qo = ["id"], Jo = [
5043
+ }, rs = ["id"], is = [
4955
5044
  "value",
4956
5045
  "placeholder",
4957
5046
  "disabled",
@@ -4960,11 +5049,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4960
5049
  "rows",
4961
5050
  "maxlength",
4962
5051
  "aria-invalid"
4963
- ], Yo = {
5052
+ ], as = {
4964
5053
  key: 2,
4965
5054
  class: "g-textarea-char-count",
4966
5055
  "aria-live": "polite"
4967
- }, Xo = /* @__PURE__ */ u({
5056
+ }, os = /* @__PURE__ */ u({
4968
5057
  inheritAttrs: !1,
4969
5058
  __name: "GTextarea",
4970
5059
  props: /*@__PURE__*/ m({
@@ -4998,7 +5087,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
4998
5087
  }),
4999
5088
  emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
5000
5089
  setup(e, { emit: t }) {
5001
- 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 } = $({
5090
+ let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = me({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: v, hasErrors: y } = Me({
5002
5091
  name: n.name,
5003
5092
  value: i,
5004
5093
  errors: I(n, "errors"),
@@ -5038,12 +5127,12 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
5038
5127
  key: 0,
5039
5128
  for: m.value,
5040
5129
  class: "g-textarea-label"
5041
- }, [c(P(n.label), 1), n.required ? (w(), o("span", Ko, " *")) : a("", !0)], 8, Go)) : a("", !0),
5130
+ }, [c(P(n.label), 1), n.required ? (w(), o("span", ns, " *")) : a("", !0)], 8, ts)) : a("", !0),
5042
5131
  t.$slots.instructions || e.instructions ? (w(), o("div", {
5043
5132
  key: 1,
5044
5133
  id: "instructions-" + R(u),
5045
5134
  class: "g-textarea-instructions"
5046
- }, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, qo)) : a("", !0),
5135
+ }, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, rs)) : a("", !0),
5047
5136
  s("textarea", h({
5048
5137
  ref: "textareaEl",
5049
5138
  value: i.value ?? "",
@@ -5064,15 +5153,15 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
5064
5153
  onInput: T,
5065
5154
  onBlur: E,
5066
5155
  onPaste: D
5067
- }), null, 16, Jo),
5068
- n.maxlength === void 0 ? a("", !0) : (w(), o("div", Yo, P((i.value ?? "").length) + " / " + P(n.maxlength), 1)),
5069
- l(Me, {
5156
+ }), null, 16, is),
5157
+ n.maxlength === void 0 ? a("", !0) : (w(), o("div", as, P((i.value ?? "").length) + " / " + P(n.maxlength), 1)),
5158
+ l(Pe, {
5070
5159
  errors: R(v),
5071
5160
  id: "error-message-" + R(u)
5072
5161
  }, null, 8, ["errors", "id"])
5073
5162
  ], 2));
5074
5163
  }
5075
- }), Zo = { class: "g-toggle-wrapper" }, Qo = ["for"], $o = [
5164
+ }), ss = { class: "g-toggle-wrapper" }, cs = ["for"], ls = [
5076
5165
  "id",
5077
5166
  "checked",
5078
5167
  "disabled",
@@ -5080,7 +5169,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
5080
5169
  "aria-describedby",
5081
5170
  "aria-invalid",
5082
5171
  "aria-errormessage"
5083
- ], es = ["id"], ts = /* @__PURE__ */ u({
5172
+ ], us = ["id"], ds = /* @__PURE__ */ u({
5084
5173
  __name: "GToggle",
5085
5174
  props: /*@__PURE__*/ m({
5086
5175
  label: {},
@@ -5115,11 +5204,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
5115
5204
  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()));
5116
5205
  }
5117
5206
  let p = B(), m = B();
5118
- return (t, n) => (w(), o("div", Zo, [s("div", { class: _(["g-toggle-control", { "g-external-label": e.externalLabel }]) }, [e.externalLabel ? a("", !0) : (w(), o("label", {
5207
+ return (t, n) => (w(), o("div", ss, [s("div", { class: _(["g-toggle-control", { "g-external-label": e.externalLabel }]) }, [e.externalLabel ? a("", !0) : (w(), o("label", {
5119
5208
  key: 0,
5120
5209
  class: "g-label",
5121
5210
  for: R(m)
5122
- }, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, Qo)), 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", {
5211
+ }, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, cs)), 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", {
5123
5212
  class: _(["g-toggle-thumb", r.value ? "g-right" : "g-left"]),
5124
5213
  "aria-hidden": "true"
5125
5214
  }, null, 2), s("input", {
@@ -5133,44 +5222,44 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
5133
5222
  "aria-errormessage": e.error ? R(p) + "-error" : void 0,
5134
5223
  onChange: d,
5135
5224
  onKeydown: f
5136
- }, null, 40, $o)], 2)], 2)], 2), e.error ? (w(), o("div", {
5225
+ }, null, 40, ls)], 2)], 2)], 2), e.error ? (w(), o("div", {
5137
5226
  key: 0,
5138
5227
  id: `${R(p)}-error`,
5139
5228
  class: "g-form-error",
5140
5229
  role: "alert",
5141
5230
  "aria-atomic": "true"
5142
- }, P(e.error), 9, es)) : a("", !0)]));
5231
+ }, P(e.error), 9, us)) : a("", !0)]));
5143
5232
  }
5144
- }), ns = "g-route-announcer";
5145
- function rs(e) {
5233
+ }), fs = "g-route-announcer";
5234
+ function ps(e) {
5146
5235
  return document.getElementById(e) ?? document.querySelector("main");
5147
5236
  }
5148
- function is(e) {
5237
+ function ms(e) {
5149
5238
  e.hasAttribute("tabindex") || (e.setAttribute("tabindex", "-1"), e.addEventListener("blur", () => {
5150
5239
  e.getAttribute("tabindex") === "-1" && e.removeAttribute("tabindex");
5151
5240
  }, { once: !0 }));
5152
5241
  }
5153
- function as(e = "main-content", t = !0) {
5242
+ function hs(e = "main-content", t = !0) {
5154
5243
  if (typeof document > "u") return !1;
5155
- let n = rs(e);
5244
+ let n = ps(e);
5156
5245
  if (!n) return !1;
5157
5246
  let r = t ? n.querySelector("h1") : null;
5158
5247
  for (let e of [r, n]) {
5159
5248
  if (!e) continue;
5160
5249
  let n = e.hasAttribute("tabindex");
5161
- if (is(e), e.focus({ preventScroll: t }), document.activeElement === e) return !0;
5250
+ if (ms(e), e.focus({ preventScroll: t }), document.activeElement === e) return !0;
5162
5251
  n || e.removeAttribute("tabindex");
5163
5252
  }
5164
5253
  return !1;
5165
5254
  }
5166
- function os() {
5167
- let e = document.getElementById(ns);
5255
+ function gs() {
5256
+ let e = document.getElementById(fs);
5168
5257
  if (e) return {
5169
5258
  el: e,
5170
5259
  created: !1
5171
5260
  };
5172
5261
  let t = document.createElement("div");
5173
- return t.id = ns, t.setAttribute("aria-live", "polite"), t.setAttribute("aria-atomic", "true"), Object.assign(t.style, {
5262
+ return t.id = fs, t.setAttribute("aria-live", "polite"), t.setAttribute("aria-atomic", "true"), Object.assign(t.style, {
5174
5263
  position: "absolute",
5175
5264
  width: "1px",
5176
5265
  height: "1px",
@@ -5185,10 +5274,10 @@ function os() {
5185
5274
  created: !0
5186
5275
  };
5187
5276
  }
5188
- function ss() {
5277
+ function _s() {
5189
5278
  return new Promise((e) => requestAnimationFrame(() => e()));
5190
5279
  }
5191
- function cs(e, t = {}) {
5280
+ function vs(e, t = {}) {
5192
5281
  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;
5193
5282
  if (typeof window > "u") return {
5194
5283
  message: D(n),
@@ -5197,7 +5286,7 @@ function cs(e, t = {}) {
5197
5286
  };
5198
5287
  let c = null, l, u = 0;
5199
5288
  function d(e) {
5200
- n.value = e, c ??= os();
5289
+ n.value = e, c ??= gs();
5201
5290
  let t = c.el;
5202
5291
  t.textContent = "", clearTimeout(l), l = setTimeout(() => {
5203
5292
  t.textContent = e;
@@ -5206,9 +5295,9 @@ function cs(e, t = {}) {
5206
5295
  let p = e.afterEach(async (e, t, n) => {
5207
5296
  if (n || !t.matched?.length || !i(e, t)) return;
5208
5297
  let c = ++u, l = document.activeElement;
5209
- if (await g(), await ss(), o && (await o(e, t), await g(), await ss()), c !== u) return;
5210
- let f = typeof a == "function" ? a(e, t) : a, p = document.activeElement, m = !!p && p !== l && !!rs(r)?.contains(p);
5211
- f && !e.hash && !m && as(r);
5298
+ if (await g(), await _s(), o && (await o(e, t), await g(), await _s()), c !== u) return;
5299
+ let f = typeof a == "function" ? a(e, t) : a, p = document.activeElement, m = !!p && p !== l && !!ps(r)?.contains(p);
5300
+ f && !e.hash && !m && hs(r);
5212
5301
  let h = s(e, document.title);
5213
5302
  h && d(h);
5214
5303
  });
@@ -5222,7 +5311,7 @@ function cs(e, t = {}) {
5222
5311
  };
5223
5312
  }
5224
5313
  // src/components/GSkipLink.vue?vue&type=script&setup=true&lang.ts
5225
- var ls = ["href"], us = /*@__PURE__*/ u({
5314
+ var ys = ["href"], bs = /*@__PURE__*/ u({
5226
5315
  __name: "GSkipLink",
5227
5316
  props: {
5228
5317
  target: { default: "main-content" },
@@ -5231,19 +5320,19 @@ var ls = ["href"], us = /*@__PURE__*/ u({
5231
5320
  setup(e) {
5232
5321
  let t = e;
5233
5322
  function n(e) {
5234
- as(t.target, !1) && e.preventDefault();
5323
+ hs(t.target, !1) && e.preventDefault();
5235
5324
  }
5236
5325
  return (e, r) => (w(), o("a", {
5237
5326
  class: "g-skip-link",
5238
5327
  href: `#${t.target}`,
5239
5328
  onClick: n
5240
- }, [A(e.$slots, "default", {}, () => [c(P(t.label), 1)], !0)], 8, ls));
5329
+ }, [A(e.$slots, "default", {}, () => [c(P(t.label), 1)], !0)], 8, ys));
5241
5330
  }
5242
- }), ds = (e, t) => {
5331
+ }), xs = (e, t) => {
5243
5332
  let n = e.__vccOpts || e;
5244
5333
  for (let [e, r] of t) n[e] = r;
5245
5334
  return n;
5246
- }, fs = /*#__PURE__*/ ds(us, [["__scopeId", "data-v-1d350630"]]), ps = ["id"], ms = /*#__PURE__*/ ds(/* @__PURE__ */ u({
5335
+ }, Ss = /*#__PURE__*/ xs(bs, [["__scopeId", "data-v-1d350630"]]), Cs = ["id"], ws = /*#__PURE__*/ xs(/* @__PURE__ */ u({
5247
5336
  __name: "GMain",
5248
5337
  props: { id: { default: "main-content" } },
5249
5338
  setup(e) {
@@ -5251,28 +5340,110 @@ var ls = ["href"], us = /*@__PURE__*/ u({
5251
5340
  return (e, n) => (w(), o("main", {
5252
5341
  id: t.id,
5253
5342
  class: "g-main"
5254
- }, [A(e.$slots, "default", {}, void 0, !0)], 8, ps));
5343
+ }, [A(e.$slots, "default", {}, void 0, !0)], 8, Cs));
5344
+ }
5345
+ }), [["__scopeId", "data-v-139f5ef2"]]), Ts = "app-build-id", Es = typeof window < "u" && typeof document < "u";
5346
+ function Ds() {
5347
+ return {
5348
+ buildId: document.querySelector("meta[name=\"app-build-id\"]")?.content || void 0,
5349
+ versionUrl: globalThis.__GRAD_VUE_APP_VERSION_URL__
5350
+ };
5351
+ }
5352
+ function Os(e = {}) {
5353
+ let t = Es ? Ds() : {}, n = e.intervalMs ?? 6e5, r = e.currentBuildId ?? t.buildId, i = e.versionUrl ?? t.versionUrl, a = Es && !!(r && i), o = O(!1), s = !1;
5354
+ async function c() {
5355
+ if (!(!a || o.value || s || document.visibilityState !== "visible")) {
5356
+ s = !0;
5357
+ try {
5358
+ let e = await fetch(i, { cache: "no-store" });
5359
+ if (!e.ok) return;
5360
+ let { buildId: t } = await e.json();
5361
+ typeof t == "string" && t !== r && (o.value = !0);
5362
+ } catch {} finally {
5363
+ s = !1;
5364
+ }
5365
+ }
5366
+ }
5367
+ a && (Z(document, "visibilitychange", c), Z(window, "focus", c), se(c, n));
5368
+ function l() {
5369
+ window.location.reload();
5370
+ }
5371
+ return {
5372
+ updateAvailable: o,
5373
+ check: c,
5374
+ reload: l
5375
+ };
5376
+ }
5377
+ var ks = "g-app-update:stale-chunk-reload-at";
5378
+ function As() {
5379
+ Es && window.addEventListener("vite:preloadError", (e) => {
5380
+ try {
5381
+ let e = Number(sessionStorage.getItem(ks) ?? 0);
5382
+ if (Date.now() - e < 1e4) return;
5383
+ sessionStorage.setItem(ks, String(Date.now()));
5384
+ } catch {
5385
+ return;
5386
+ }
5387
+ e.preventDefault(), window.location.reload();
5388
+ });
5389
+ }
5390
+ // src/components/GAppUpdateNotice.vue?vue&type=script&setup=true&lang.ts
5391
+ var js = { role: "status" }, Ms = {
5392
+ key: 0,
5393
+ class: "g-app-update-notice"
5394
+ }, Ns = { class: "g-app-update-notice__actions" }, Ps = /*#__PURE__*/ xs(/* @__PURE__ */ u({
5395
+ __name: "GAppUpdateNotice",
5396
+ props: {
5397
+ message: { default: "This app has been updated. Refresh the page to see the latest changes." },
5398
+ reloadLabel: { default: "Refresh page" },
5399
+ dismissLabel: { default: "Not now" },
5400
+ intervalMs: { default: 6e5 },
5401
+ versionUrl: {},
5402
+ currentBuildId: {}
5403
+ },
5404
+ setup(e, { expose: t }) {
5405
+ let n = e, { updateAvailable: r, check: i, reload: u } = Os({
5406
+ intervalMs: n.intervalMs,
5407
+ versionUrl: n.versionUrl,
5408
+ currentBuildId: n.currentBuildId
5409
+ }), d = O(!1);
5410
+ return t({ check: i }), (e, t) => (w(), o("div", js, [R(r) && !d.value ? (w(), o("div", Ms, [s("span", null, P(n.message), 1), s("div", Ns, [l($, {
5411
+ size: "small",
5412
+ theme: "accent",
5413
+ onClick: R(u)
5414
+ }, {
5415
+ default: K(() => [c(P(n.reloadLabel), 1)]),
5416
+ _: 1
5417
+ }, 8, ["onClick"]), l($, {
5418
+ size: "small",
5419
+ theme: "primary",
5420
+ outlined: "",
5421
+ onClick: t[0] ||= (e) => d.value = !0
5422
+ }, {
5423
+ default: K(() => [c(P(n.dismissLabel), 1)]),
5424
+ _: 1
5425
+ })])])) : a("", !0)]));
5255
5426
  }
5256
- }), [["__scopeId", "data-v-139f5ef2"]]);
5427
+ }), [["__scopeId", "data-v-bd5a72ec"]]);
5257
5428
  // src/compose/useActiveLink.ts
5258
- function hs(e, t, n) {
5429
+ function Fs(e, t, n) {
5259
5430
  let r = [
5260
5431
  0,
5261
5432
  .25,
5262
5433
  .5,
5263
5434
  .75,
5264
5435
  1
5265
- ], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = O(Array.from(J(e)?.children || [])), s = () => {
5266
- let t = Array.from(J(e)?.children || []), n = new Set(t);
5436
+ ], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = O(Array.from(X(e)?.children || [])), s = () => {
5437
+ let t = Array.from(X(e)?.children || []), n = new Set(t);
5267
5438
  for (let e of a.keys()) n.has(e) || a.delete(e);
5268
5439
  o.value = t;
5269
5440
  };
5270
- W(() => J(e), () => {
5441
+ W(() => X(e), () => {
5271
5442
  s();
5272
5443
  }, {
5273
5444
  immediate: !0,
5274
5445
  flush: "post"
5275
- }), Z(e, s, { childList: !0 });
5446
+ }), le(e, s, { childList: !0 });
5276
5447
  let { stop: c } = oe(o, (e) => {
5277
5448
  let t = o.value[o.value.length - 1];
5278
5449
  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);
@@ -5291,7 +5462,7 @@ function hs(e, t, n) {
5291
5462
  return { stop: c };
5292
5463
  }
5293
5464
  // src/compose/useSidebar.ts
5294
- function gs(e = "(max-width: 800px)") {
5465
+ function Is(e = "(max-width: 800px)") {
5295
5466
  let t = B(), n = O(!1), r = ce(e, { ssrWidth: 1e3 });
5296
5467
  function i(e) {
5297
5468
  if (!r.value || !n.value) return;
@@ -5321,41 +5492,41 @@ function gs(e = "(max-width: 800px)") {
5321
5492
  };
5322
5493
  }
5323
5494
  // src/compose/usePaging.ts
5324
- function _s(e) {
5495
+ function Ls(e) {
5325
5496
  let t = /* @__PURE__ */ new Set();
5326
5497
  return (e ?? []).filter((e) => !e?.key || t.has(e.key) || e.order !== 1 && e.order !== -1 ? !1 : (t.add(e.key), !0));
5327
5498
  }
5328
- function vs(e) {
5329
- return e == null ? [] : _s((typeof e == "string" ? e.split(",") : e).filter((e) => e !== null).map((e) => e.trim()).filter(Boolean).map((e) => ({
5499
+ function Rs(e) {
5500
+ return e == null ? [] : Ls((typeof e == "string" ? e.split(",") : e).filter((e) => e !== null).map((e) => e.trim()).filter(Boolean).map((e) => ({
5330
5501
  key: e.replace(/^-/, ""),
5331
5502
  order: e.startsWith("-") ? -1 : 1
5332
5503
  })));
5333
5504
  }
5334
- function ys(e) {
5335
- let t = _s(e);
5505
+ function zs(e) {
5506
+ let t = Ls(e);
5336
5507
  if (t.length !== 0) return t.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`);
5337
5508
  }
5338
- function bs(e, t = []) {
5339
- let n = _s(e);
5509
+ function Bs(e, t = []) {
5510
+ let n = Ls(e);
5340
5511
  if (n.length === 0) return;
5341
5512
  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 ? "-" : "";
5342
5513
  return t.forEach((e) => {
5343
5514
  i.has(e) || r.push(`${a}${e}`);
5344
5515
  }), r.join(",");
5345
5516
  }
5346
- function xs(e) {
5517
+ function Vs(e) {
5347
5518
  return Array.isArray(e) ? [...e] : e;
5348
5519
  }
5349
- function Ss(e, t) {
5520
+ function Hs(e, t) {
5350
5521
  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;
5351
5522
  }
5352
- function Cs(e, t) {
5523
+ function Us(e, t) {
5353
5524
  return e.length === t.length && e.every((e, n) => {
5354
5525
  let r = t[n];
5355
5526
  return e.key === r?.key && e.order === r?.order;
5356
5527
  });
5357
5528
  }
5358
- function ws(e, t) {
5529
+ function Ws(e, t) {
5359
5530
  if (typeof e == "string") return Number(e);
5360
5531
  if (Array.isArray(e)) {
5361
5532
  let n = e.find((e) => e !== null);
@@ -5363,35 +5534,35 @@ function ws(e, t) {
5363
5534
  }
5364
5535
  return t;
5365
5536
  }
5366
- function Ts(e = {}) {
5537
+ function Gs(e = {}) {
5367
5538
  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);
5368
5539
  return e.route && e.router && (W(() => e.route?.query[i], (e) => {
5369
- let t = vs(e);
5370
- Cs(s.value, t) || (s.value = t);
5540
+ let t = Rs(e);
5541
+ Us(s.value, t) || (s.value = t);
5371
5542
  }, { immediate: !0 }), W(() => e.route?.query[a], (e) => {
5372
- let n = ws(e, t);
5543
+ let n = Ws(e, t);
5373
5544
  c.value !== n && (c.value = n);
5374
5545
  }, { immediate: !0 }), W(() => e.route?.query[o], (e) => {
5375
- let t = ws(e, n);
5546
+ let t = Ws(e, n);
5376
5547
  l.value !== t && (l.value = t);
5377
5548
  }, { immediate: !0 }), W([
5378
5549
  s,
5379
5550
  c,
5380
5551
  l
5381
5552
  ], ([r, s, c]) => {
5382
- let l = { ...e.route.query }, u = ys(r);
5383
- u === void 0 ? delete l[i] : l[i] = xs(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);
5553
+ let l = { ...e.route.query }, u = zs(r);
5554
+ u === void 0 ? delete l[i] : l[i] = Vs(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);
5384
5555
  let d = /* @__PURE__ */ new Set([...Object.keys(e.route.query), ...Object.keys(l)]), f = !1;
5385
- for (let t of d) if (!Ss(e.route.query[t], l[t])) {
5556
+ for (let t of d) if (!Hs(e.route.query[t], l[t])) {
5386
5557
  f = !0;
5387
5558
  break;
5388
5559
  }
5389
5560
  f && e.router.replace({ query: l });
5390
5561
  })), {
5391
5562
  sort: r({
5392
- get: () => _s(s.value),
5563
+ get: () => Ls(s.value),
5393
5564
  set: (e) => {
5394
- s.value = _s(e);
5565
+ s.value = Ls(e);
5395
5566
  }
5396
5567
  }),
5397
5568
  pageSize: c,
@@ -5399,7 +5570,7 @@ function Ts(e = {}) {
5399
5570
  };
5400
5571
  }
5401
5572
  // src/compose/useTableChanges.ts
5402
- function Es() {
5573
+ function Ks() {
5403
5574
  let e = M(/* @__PURE__ */ new Map()), t = ne(), n = (n) => {
5404
5575
  let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
5405
5576
  e.has(i) || e.set(i, M(/* @__PURE__ */ new Map()));
@@ -5502,7 +5673,7 @@ function Es() {
5502
5673
  };
5503
5674
  }
5504
5675
  // src/compose/usePersistentTableColumnState.ts
5505
- function Ds(e, t) {
5676
+ function qs(e, t) {
5506
5677
  if (!e || typeof e != "object" || Array.isArray(e)) return {};
5507
5678
  let n = new Set(t.map(({ key: e }) => String(e))), r = {};
5508
5679
  for (let [t, i] of Object.entries(e)) {
@@ -5512,12 +5683,12 @@ function Ds(e, t) {
5512
5683
  }
5513
5684
  return r;
5514
5685
  }
5515
- function Os(e, t) {
5516
- let n = se(e, {});
5686
+ function Js(e, t) {
5687
+ let n = Q(e, {});
5517
5688
  return W(() => L(t).map(({ key: e }) => String(e)), () => {
5518
- n.value = Ds(n.value, L(t));
5689
+ n.value = qs(n.value, L(t));
5519
5690
  }, { immediate: !0 }), { columnState: n };
5520
5691
  }
5521
- export { pn as $, Qa as A, Ri as B, wo as C, lo as D, fo 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, ao as O, Fi as P, xn as Q, Ii as R, To as S, go as T, Rr as U, Li as V, fr as W, wn as X, On as Y, Sn as Z, Uo as _, De as _t, vs as a, Ct as at, No as b, Q as bt, gs as c, rt as ct, fs as d, qe as dt, cn as et, as as f, Je as ft, Wo as g, Oe as gt, Xo as h, Ae as ht, _s as i, Ot as it, Si as j, io as k, hs as l, nt as lt, ts as m, $ as mt, Es as n, Jt as nt, ys as o, gt as ot, cs as p, ze as pt, jn as q, bs as r, Pt as rt, Ts as s, ct as st, Os as t, an as tt, ms as u, tt as ut, Vo as v, xe as vt, yo as w, Eo as x, Po as y, be as yt, Ci as z };
5692
+ export { Rn as $, So as A, ji as B, Wo as C, xe as Ct, Po as D, Fo as E, Mi as F, qi as G, Ki as H, Bi as I, Sr as J, ai as K, Ai as L, go as M, ho as N, ko as O, co as P, zn as Q, Gi as R, Zo as S, Se as St, Io as T, Ni as U, Hi as V, Ji as W, Kn as X, sr as Y, Vn as Z, vs as _, Ve as _t, Rs as a, hn as at, es as b, ke as bt, Is as c, At as ct, Ts as d, ut as dt, Pn as et, As as f, at as ft, hs as g, Xe as gt, Ss as h, Ye as ht, Ls as i, vn as it, bo as j, Eo as k, Fs as l, Tt as lt, ws as m, rt as mt, Ks as n, jn as nt, zs as o, Xt as ot, Os as p, it as pt, Jr as q, Bs as r, Cn as rt, Gs as s, It as st, Js as t, Mn as tt, Ps as u, vt as ut, ds as v, Me as vt, Uo as w, $ as wt, $o as x, Oe as xt, os as y, je as yt, Vi as z };
5522
5693
 
5523
- //# sourceMappingURL=grad-vue-COt_mmY9.js.map
5694
+ //# sourceMappingURL=grad-vue-CtUm1dK7.js.map