@illinois-grad/grad-vue 3.0.5 → 3.0.7

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,12 +1,12 @@
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, guardReactiveProps as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeMount as b, onBeforeUnmount as x, onMounted as S, onUpdated as C, openBlock as w, provide as T, reactive as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as A, shallowReactive as j, shallowRef as M, toDisplayString as N, toRaw as P, toRef as F, toValue as I, unref as L, useAttrs as R, useId as z, useModel as B, useSlots as V, useTemplateRef as H, vModelCheckbox as U, vShow as W, watch as G, watchEffect as K, withCtx as q, withDirectives as J, withModifiers as Y } from "vue";
2
- import { createEventHook as X, toArray as ee, tryOnScopeDispose as Z, unrefElement as te, useClipboard as ne, useDebounceFn as re, useFocusWithin as ie, useIntersectionObserver as ae, useMediaQuery as oe, useMutationObserver as se, useResizeObserver as ce, useSessionStorage as le } from "@vueuse/core";
3
- import { createFocusTrap as ue } from "focus-trap";
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, guardReactiveProps as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeMount as b, onBeforeUnmount as x, onMounted as S, onUnmounted as C, onUpdated as w, openBlock as T, provide as E, reactive 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, vModelCheckbox as W, vShow as G, watch as K, watchEffect as q, withCtx as J, withDirectives as Y, withModifiers as X } from "vue";
2
+ import { createEventHook as ee, toArray as Z, tryOnScopeDispose as te, unrefElement as ne, useClipboard as re, useDebounceFn as ie, useFocusWithin as ae, useIntersectionObserver as oe, useMediaQuery as se, useMutationObserver as ce, useResizeObserver as le, useSessionStorage as ue } from "@vueuse/core";
3
+ import { createFocusTrap as de } from "focus-trap";
4
4
  //#region src/compose/useCustomElementAttrs.ts
5
- function de() {
5
+ function fe() {
6
6
  return globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0;
7
7
  }
8
- function fe(e = {}) {
9
- let t = R(), n = globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0, i = e.omitInCustomElement ?? [];
8
+ function pe(e = {}) {
9
+ let t = z(), n = globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0, i = e.omitInCustomElement ?? [];
10
10
  return {
11
11
  attrs: t,
12
12
  isCustomElement: n,
@@ -20,7 +20,7 @@ function fe(e = {}) {
20
20
  }
21
21
  //#endregion
22
22
  //#region src/components/GButton.vue?vue&type=script&setup=true&lang.ts
23
- var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PURE__ */ u({
23
+ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PURE__ */ u({
24
24
  inheritAttrs: !1,
25
25
  __name: "GButton",
26
26
  props: {
@@ -51,7 +51,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
51
51
  "mouseleave"
52
52
  ],
53
53
  setup(t) {
54
- let n = t, a = V(), { forwardedAttrs: c } = fe({ omitInCustomElement: ["id"] }), l = r(() => [
54
+ let n = t, a = H(), { forwardedAttrs: c } = pe({ omitInCustomElement: ["id"] }), l = r(() => [
55
55
  "g-btn",
56
56
  `g-btn--${n.size}`,
57
57
  `g-btn--${n.theme}`,
@@ -65,7 +65,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
65
65
  "g-btn-has-icon-svg": !!a.icon
66
66
  }
67
67
  ]);
68
- return (r, u) => (w(), i(A(n.component ? n.component : "button"), h(L(c), {
68
+ return (r, u) => (T(), i(j(n.component ? n.component : "button"), h(R(c), {
69
69
  to: n.to,
70
70
  class: l.value,
71
71
  type: n.to ? void 0 : n.type,
@@ -79,11 +79,11 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
79
79
  onMouseenter: u[7] ||= (e) => r.$emit("mouseenter", e),
80
80
  onMouseleave: u[8] ||= (e) => r.$emit("mouseleave", e)
81
81
  }), {
82
- default: q(() => [t.icon || a.icon ? (w(), o(e, { key: 0 }, [s("span", pe, [a.icon ? k(r.$slots, "icon", { key: 0 }) : (w(), o("span", {
82
+ default: J(() => [t.icon || a.icon ? (T(), o(e, { key: 0 }, [s("span", me, [a.icon ? A(r.$slots, "icon", { key: 0 }) : (T(), o("span", {
83
83
  key: 1,
84
84
  class: _(t.icon + " g-btn--icon-span"),
85
85
  "aria-hidden": "true"
86
- }, null, 2))]), s("span", me, [k(r.$slots, "default")])], 64)) : k(r.$slots, "default", { key: 1 })]),
86
+ }, null, 2))]), s("span", he, [A(r.$slots, "default")])], 64)) : A(r.$slots, "default", { key: 1 })]),
87
87
  _: 3
88
88
  }, 16, [
89
89
  "to",
@@ -91,10 +91,10 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
91
91
  "type"
92
92
  ]));
93
93
  }
94
- }), he = ["id"], ge = { class: "g-tree-menu__divider" }, _e = {
94
+ }), ge = ["id"], _e = { class: "g-tree-menu__divider" }, ve = {
95
95
  key: 0,
96
96
  class: "g-tree-menu__expand-all-wrapper"
97
- }, ve = { class: "g-tree-menu__content" }, ye = /* @__PURE__ */ u({
97
+ }, ye = { class: "g-tree-menu__content" }, be = /* @__PURE__ */ u({
98
98
  __name: "GTreeMenu",
99
99
  props: {
100
100
  heading: {},
@@ -107,33 +107,78 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
107
107
  }
108
108
  },
109
109
  setup(e) {
110
- let t = e, n = z();
111
- T("g-tree-menu-list-type", t.listType), T("g-tree-menu-expanded-storage", t.storageKey ? le(t.storageKey, {}) : null);
112
- let i = E(/* @__PURE__ */ new Map());
113
- T("g-tree-menu-expandable-items", i);
114
- let l = D({
110
+ let t = e, n = B();
111
+ E("g-tree-menu-list-type", t.listType), E("g-tree-menu-expanded-storage", t.storageKey ? ue(t.storageKey, {}) : null);
112
+ let i = U("nav-el"), l = t.storageKey ? ue(`${t.storageKey}:scroll`, 0, { writeDefaults: !1 }) : null;
113
+ function u(e) {
114
+ let t = e.parentElement;
115
+ for (; t && t !== document.documentElement && t !== document.body;) {
116
+ let e = window.getComputedStyle(t);
117
+ if (e.overflowY === "auto" || e.overflowY === "scroll") return t;
118
+ t = t.parentElement;
119
+ }
120
+ return null;
121
+ }
122
+ let d = null, f = null, p = null, m = !1;
123
+ function v() {
124
+ l && d && (l.value = d.scrollTop);
125
+ }
126
+ function y() {
127
+ f &&= (f.disconnect(), null), p &&= (p.disconnect(), null);
128
+ }
129
+ function b() {
130
+ !l || !d || m || l.value <= 0 || (d.scrollTop = l.value, m = d.scrollTop > 0, m && y());
131
+ }
132
+ function x(e) {
133
+ if (typeof MutationObserver > "u") return;
134
+ p = new MutationObserver(() => {
135
+ b();
136
+ });
137
+ let t = e;
138
+ for (; t;) p.observe(t, {
139
+ attributes: !0,
140
+ attributeFilter: [
141
+ "class",
142
+ "style",
143
+ "hidden",
144
+ "open"
145
+ ]
146
+ }), t = t.parentElement;
147
+ }
148
+ S(() => {
149
+ !l || !i.value || (d = u(i.value), d && (g(() => {
150
+ b();
151
+ }), typeof ResizeObserver < "u" && (f = new ResizeObserver(() => {
152
+ b();
153
+ }), f.observe(i.value), f.observe(d)), x(i.value), d.addEventListener("scroll", v)));
154
+ }), C(() => {
155
+ y(), d &&= (d.removeEventListener("scroll", v), null), m = !1;
156
+ });
157
+ let w = D(/* @__PURE__ */ new Map());
158
+ E("g-tree-menu-expandable-items", w);
159
+ let k = O({
115
160
  expanded: !0,
116
161
  version: 0
117
162
  });
118
- T("g-tree-menu-expand-all-signal", l);
119
- let u = r(() => {
120
- if (i.size === 0) return !1;
121
- for (let e of i.values()) if (!e) return !1;
163
+ E("g-tree-menu-expand-all-signal", k);
164
+ let j = r(() => {
165
+ if (w.size === 0) return !1;
166
+ for (let e of w.values()) if (!e) return !1;
122
167
  return !0;
123
168
  });
124
- function d() {
125
- l.value = {
126
- expanded: !u.value,
127
- version: l.value.version + 1
169
+ function M() {
170
+ k.value = {
171
+ expanded: !j.value,
172
+ version: k.value.version + 1
128
173
  };
129
174
  }
130
- function f(e) {
175
+ function N(e) {
131
176
  return e.querySelector("a, button, [tabindex='0']") || e;
132
177
  }
133
- function p(e) {
178
+ function F(e) {
134
179
  return Array.from(e.querySelectorAll("[data-tree-primary]"));
135
180
  }
136
- function m(e) {
181
+ function I(e) {
137
182
  let t = e.currentTarget, n = document.activeElement;
138
183
  if (!t.contains(n) || ![
139
184
  "ArrowUp",
@@ -143,16 +188,16 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
143
188
  "Home",
144
189
  "End"
145
190
  ].includes(e.key)) return;
146
- let r = n.closest(".g-tree-menu__item"), i = r?.querySelector("[data-tree-primary]") ?? null, a = p(t), o = i ? a.indexOf(i) : -1;
191
+ let r = n.closest(".g-tree-menu__item"), i = r?.querySelector("[data-tree-primary]") ?? null, a = F(t), o = i ? a.indexOf(i) : -1;
147
192
  switch (e.key) {
148
193
  case "ArrowDown": {
149
194
  let e = a[o + 1];
150
- e && f(e).focus();
195
+ e && N(e).focus();
151
196
  break;
152
197
  }
153
198
  case "ArrowUp": {
154
199
  let e = a[o - 1];
155
- e && f(e).focus();
200
+ e && N(e).focus();
156
201
  break;
157
202
  }
158
203
  case "ArrowRight":
@@ -162,83 +207,86 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
162
207
  e && e.click();
163
208
  } else {
164
209
  let e = a[o + 1];
165
- e && f(e).focus();
210
+ e && N(e).focus();
166
211
  }
167
212
  break;
168
213
  case "ArrowLeft":
169
214
  if (!r) break;
170
215
  if (r.querySelector("[aria-expanded='true']") !== null) {
171
216
  let e = r.querySelector(".g-tree-menu__toggle-btn");
172
- e && e.click(), i && g(() => f(i).focus());
217
+ e && e.click(), i && g(() => N(i).focus());
173
218
  } else {
174
219
  let e = r.parentElement?.closest(".g-tree-menu__item");
175
220
  if (e) {
176
221
  let t = e.querySelector("[data-tree-primary]");
177
- t && f(t).focus();
222
+ t && N(t).focus();
178
223
  }
179
224
  }
180
225
  break;
181
226
  case "Home":
182
- a.length > 0 && f(a[0]).focus();
227
+ a.length > 0 && N(a[0]).focus();
183
228
  break;
184
229
  case "End":
185
- a.length > 0 && f(a[a.length - 1]).focus();
230
+ a.length > 0 && N(a[a.length - 1]).focus();
186
231
  break;
187
232
  }
188
233
  e.preventDefault();
189
234
  }
190
- return (r, i) => (w(), o("nav", h({ class: ["g-tree-menu", `g-tree-menu--${t.theme}`] }, {
191
- "aria-labelledby": e.heading ? L(n) : void 0,
235
+ return (r, i) => (T(), o("nav", h({
236
+ ref: "nav-el",
237
+ class: ["g-tree-menu", `g-tree-menu--${t.theme}`]
238
+ }, {
239
+ "aria-labelledby": e.heading ? R(n) : void 0,
192
240
  "aria-label": e.heading ? void 0 : "Tree Menu"
193
- }, { onKeydown: m }), [
194
- e.heading ? (w(), o("h2", {
241
+ }, { onKeydown: I }), [
242
+ e.heading ? (T(), o("h2", {
195
243
  key: 0,
196
- id: L(n),
244
+ id: R(n),
197
245
  class: "g-tree-menu__title"
198
- }, N(e.heading), 9, he)) : a("", !0),
199
- s("div", ge, [i[1] ||= s("div", { class: "g-tree-menu__divider-line" }, null, -1), e.showExpandAll ? (w(), o("div", _e, [s("button", {
246
+ }, P(e.heading), 9, ge)) : a("", !0),
247
+ s("div", _e, [i[1] ||= s("div", { class: "g-tree-menu__divider-line" }, null, -1), e.showExpandAll ? (T(), o("div", ve, [s("button", {
200
248
  class: "g-tree-menu__expand-all-btn",
201
- onClick: d
202
- }, [(w(), o("svg", {
203
- class: _(["g-tree-menu__expand-all-icon", { "g-tree-menu__expand-all-icon--collapse": u.value }]),
204
- role: "none presentation",
249
+ onClick: M
250
+ }, [(T(), o("svg", {
251
+ class: _(["g-tree-menu__expand-all-icon", { "g-tree-menu__expand-all-icon--collapse": j.value }]),
252
+ role: "none",
205
253
  viewBox: "0 0 24 24",
206
254
  fill: "none",
207
255
  stroke: "currentColor",
208
256
  "stroke-width": "2.5",
209
257
  "stroke-linecap": "round",
210
258
  "stroke-linejoin": "round"
211
- }, [...i[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(" " + N(u.value ? "Collapse all" : "Expand all"), 1)])])) : a("", !0)]),
212
- s("div", ve, [k(r.$slots, "default")])
259
+ }, [...i[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(j.value ? "Collapse all" : "Expand all"), 1)])])) : a("", !0)]),
260
+ s("div", ye, [A(r.$slots, "default")])
213
261
  ], 16));
214
262
  }
215
- }), be = /* @__PURE__ */ u({
263
+ }), xe = /* @__PURE__ */ u({
216
264
  name: "GTreeMenuList",
217
265
  props: { listType: { default: void 0 } },
218
266
  setup(e) {
219
- let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o = de(), s = d();
267
+ let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o = fe(), s = d();
220
268
  return S(() => {
221
269
  if (!o) return;
222
270
  let e = s?.ce;
223
271
  e && e.setAttribute("data-list-type", a.value);
224
- }), (e, t) => (w(), i(A(L(o) ? "div" : a.value), {
225
- role: L(o) ? "list" : void 0,
272
+ }), (e, t) => (T(), i(j(R(o) ? "div" : a.value), {
273
+ role: R(o) ? "list" : void 0,
226
274
  class: "g-tree-menu__list"
227
275
  }, {
228
- default: q(() => [k(e.$slots, "default")]),
276
+ default: J(() => [A(e.$slots, "default")]),
229
277
  _: 3
230
278
  }, 8, ["role"]));
231
279
  }
232
- }), xe = {
280
+ }), Se = {
233
281
  key: 0,
234
282
  class: "g-tree-menu__row"
235
- }, Se = { class: "g-tree-menu__row-content-text" }, Ce = {
283
+ }, Ce = { class: "g-tree-menu__row-content-text" }, we = {
236
284
  key: 1,
237
285
  class: "g-tree-menu__row g-tree-menu__row--leaf"
238
- }, we = {
286
+ }, Te = {
239
287
  class: "g-tree-menu__row-content",
240
288
  "data-tree-primary": ""
241
- }, Te = /* @__PURE__ */ u({
289
+ }, Ee = /* @__PURE__ */ u({
242
290
  name: "GTreeMenuItem",
243
291
  inheritAttrs: !1,
244
292
  props: {
@@ -250,7 +298,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
250
298
  },
251
299
  emits: ["expand", "collapse"],
252
300
  setup(e, { emit: t }) {
253
- let n = e, c = t, l = V(), u = d(), f = z(), m = (u?.ce)?._slots?.children?.length > 0, g = r(() => !!l.children || m), v = p("g-tree-menu-expanded-storage", null);
301
+ let n = e, c = t, l = H(), u = d(), f = B(), m = (u?.ce)?._slots?.children?.length > 0, g = r(() => !!l.children || m), v = p("g-tree-menu-expanded-storage", null);
254
302
  function y() {
255
303
  if (v && n.label !== void 0) {
256
304
  if (v.value[n.label] === !0) return !0;
@@ -258,62 +306,62 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
258
306
  }
259
307
  return n.expanded;
260
308
  }
261
- let b = D(y());
262
- G(() => n.expanded, (e) => {
309
+ let b = O(y());
310
+ K(() => n.expanded, (e) => {
263
311
  v && n.label !== void 0 || (b.value = e);
264
- }), G(b, (e) => {
312
+ }), K(b, (e) => {
265
313
  v && n.label !== void 0 && (e ? v.value[n.label] = !0 : delete v.value[n.label]), E();
266
314
  });
267
- let T = D(null);
315
+ let C = O(null);
268
316
  function E() {
269
- if (!g.value || !T.value) return;
270
- let e = T.value.querySelector("a, button");
317
+ if (!g.value || !C.value) return;
318
+ let e = C.value.querySelector("a, button");
271
319
  e ? (e.setAttribute("aria-controls", f + "-children"), e.setAttribute("aria-expanded", b.value ? "true" : "false")) : console.warn("No focusable element found for GTreeMenuItem with label:", n.label, "Every item must at least have a plain button to properly work for accessibility.");
272
320
  }
273
- S(E), C(E);
274
- function O() {
321
+ S(E), w(E);
322
+ function D() {
275
323
  b.value = !b.value, b.value ? c("expand") : c("collapse");
276
324
  }
277
- let j = Symbol(), M = p("g-tree-menu-expandable-items", null), N = p("g-tree-menu-expand-all-signal", null), P = D(0);
325
+ let k = Symbol(), M = p("g-tree-menu-expandable-items", null), N = p("g-tree-menu-expand-all-signal", null), P = O(0);
278
326
  function F() {
279
- M && g.value && M.set(j, b.value);
327
+ M && g.value && M.set(k, b.value);
280
328
  }
281
329
  function I() {
282
- M?.delete(j);
330
+ M?.delete(k);
283
331
  }
284
- G(b, (e) => {
285
- M && g.value && M.set(j, e);
286
- }), N && G(() => N.value.version, () => {
332
+ K(b, (e) => {
333
+ M && g.value && M.set(k, e);
334
+ }), N && K(() => N.value.version, () => {
287
335
  g.value && (b.value = N.value.expanded, P.value = N.value.version);
288
336
  }), S(() => {
289
337
  F(), N && g.value && N.value.version > P.value && N.value.expanded && (b.value = !0, P.value = N.value.version);
290
338
  }), x(() => {
291
339
  I();
292
340
  });
293
- function B(e) {
294
- e.target.closest("a") || O();
341
+ function L(e) {
342
+ e.target.closest("a") || D();
295
343
  }
296
- function H(e) {
297
- (e.key === "Enter" || e.key === " ") && (O(), e.preventDefault());
344
+ function V(e) {
345
+ (e.key === "Enter" || e.key === " ") && (D(), e.preventDefault());
298
346
  }
299
- let U = de(), W = u?.ce;
347
+ let U = fe(), W = u?.ce;
300
348
  S(() => {
301
349
  U && W && W.setAttribute("role", "listitem");
302
350
  });
303
- let K = R(), J = r(() => {
304
- if (!U) return K;
305
- let { role: e, ...t } = K;
351
+ let G = z(), q = r(() => {
352
+ if (!U) return G;
353
+ let { role: e, ...t } = G;
306
354
  return t;
307
355
  });
308
- return (e, t) => (w(), i(A(L(U) ? "div" : "li"), h(J.value, {
309
- role: L(U) ? "presentation" : void 0,
356
+ return (e, t) => (T(), i(j(R(U) ? "div" : "li"), h(q.value, {
357
+ role: R(U) ? "presentation" : void 0,
310
358
  class: "g-tree-menu__item",
311
359
  "data-tree-expandable": g.value ? "true" : void 0
312
360
  }), {
313
- default: q(() => [g.value ? (w(), o("div", xe, [s("div", {
361
+ default: J(() => [g.value ? (T(), o("div", Se, [s("div", {
314
362
  class: "g-tree-menu__toggle-btn",
315
- onClick: O
316
- }, [(w(), o("svg", {
363
+ onClick: D
364
+ }, [(T(), o("svg", {
317
365
  class: _(["g-tree-menu__chevron", { "g-tree-menu__chevron--expanded": b.value }]),
318
366
  role: "none presentation",
319
367
  viewBox: "0 0 24 24",
@@ -324,16 +372,16 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
324
372
  "stroke-linejoin": "round"
325
373
  }, [...t[0] ||= [s("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))]), s("span", {
326
374
  ref_key: "contentRef",
327
- ref: T,
375
+ ref: C,
328
376
  class: "g-tree-menu__row-content",
329
377
  "data-tree-primary": "",
330
- onClick: B,
331
- onKeydown: H
332
- }, [s("span", Se, [k(e.$slots, "default")])], 544)])) : (w(), o("div", Ce, [t[1] ||= s("span", { class: "g-tree-menu__spacer" }, null, -1), s("span", we, [k(e.$slots, "default")])])), g.value && b.value ? (w(), i(be, {
378
+ onClick: L,
379
+ onKeydown: V
380
+ }, [s("span", Ce, [A(e.$slots, "default")])], 544)])) : (T(), o("div", we, [t[1] ||= s("span", { class: "g-tree-menu__spacer" }, null, -1), s("span", Te, [A(e.$slots, "default")])])), g.value && b.value ? (T(), i(xe, {
333
381
  key: 2,
334
- id: L(f) + "-children"
382
+ id: R(f) + "-children"
335
383
  }, {
336
- default: q(() => [k(e.$slots, "children")]),
384
+ default: J(() => [A(e.$slots, "children")]),
337
385
  _: 3
338
386
  }, 8, ["id"])) : a("", !0)]),
339
387
  _: 3
@@ -342,8 +390,8 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
342
390
  });
343
391
  //#endregion
344
392
  //#region src/compose/useForm.ts
345
- function Ee() {
346
- let e = j({}), t = D(!1), n = r(() => {
393
+ function De() {
394
+ let e = M({}), t = O(!1), n = r(() => {
347
395
  let t = {};
348
396
  return Object.entries(e).forEach(([e, n]) => {
349
397
  n && n.value && (t[e] = n.value.value);
@@ -384,18 +432,18 @@ function Ee() {
384
432
  }
385
433
  //#endregion
386
434
  //#region src/compose/useWebComponentForm.ts
387
- function De() {
435
+ function Oe() {
388
436
  let e = globalThis;
389
437
  return e.__GRAD_VUE_WC_FORMS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_FORMS__;
390
438
  }
391
- function Oe(e = "default") {
392
- let t = De(), n = e || "default";
393
- return t.has(n) || t.set(n, Ee()), t.get(n);
439
+ function ke(e = "default") {
440
+ let t = Oe(), n = e || "default";
441
+ return t.has(n) || t.set(n, De()), t.get(n);
394
442
  }
395
443
  //#endregion
396
444
  //#region src/compose/useFormField.ts
397
445
  function $(e) {
398
- let t = R(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (de() ? Oe(i) : null), o = r(() => {
446
+ let t = z(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (fe() ? ke(i) : null), o = r(() => {
399
447
  let t = [];
400
448
  return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
401
449
  }), s = r(() => o.value.length > 0), c = e.name;
@@ -414,19 +462,19 @@ function $(e) {
414
462
  }
415
463
  //#endregion
416
464
  //#region src/components/form/GFormErrorMessages.vue?vue&type=script&setup=true&lang.ts
417
- var ke = ["id"], Ae = /* @__PURE__ */ u({
465
+ var Ae = ["id"], je = /* @__PURE__ */ u({
418
466
  __name: "GFormErrorMessages",
419
467
  props: {
420
468
  errors: {},
421
469
  id: {}
422
470
  },
423
471
  setup(t) {
424
- return (n, r) => t.errors.length > 0 ? (w(), o("div", {
472
+ return (n, r) => t.errors.length > 0 ? (T(), o("div", {
425
473
  key: 0,
426
474
  class: "g-form-error-messages",
427
475
  id: t.id,
428
476
  role: "alert"
429
- }, [(w(!0), o(e, null, O(t.errors, (e, t) => (w(), o("div", {
477
+ }, [(T(!0), o(e, null, k(t.errors, (e, t) => (T(), o("div", {
430
478
  key: t,
431
479
  class: "g-form-error-message"
432
480
  }, [r[0] ||= s("svg", {
@@ -436,25 +484,25 @@ var ke = ["id"], Ae = /* @__PURE__ */ u({
436
484
  }, [s("path", {
437
485
  fill: "currentColor",
438
486
  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"
439
- })], -1), c(" " + N(e), 1)]))), 128))], 8, ke)) : a("", !0);
487
+ })], -1), c(" " + P(e), 1)]))), 128))], 8, Ae)) : a("", !0);
440
488
  }
441
- }), je = ["for"], Me = {
489
+ }), Me = ["for"], Ne = {
442
490
  key: 0,
443
491
  class: "g-text-input-required",
444
492
  "aria-hidden": "true"
445
- }, Ne = ["id"], Pe = {
493
+ }, Pe = ["id"], Fe = {
446
494
  key: 0,
447
495
  class: "g-text-input-prefix"
448
- }, Fe = [
496
+ }, Ie = [
449
497
  "value",
450
498
  "placeholder",
451
499
  "disabled",
452
500
  "required",
453
501
  "aria-invalid"
454
- ], Ie = {
502
+ ], Le = {
455
503
  key: 1,
456
504
  class: "g-text-input-suffix"
457
- }, Le = /* @__PURE__ */ u({
505
+ }, Re = /* @__PURE__ */ u({
458
506
  inheritAttrs: !1,
459
507
  __name: "GTextInput",
460
508
  props: /* @__PURE__ */ m({
@@ -481,12 +529,12 @@ var ke = ["id"], Ae = /* @__PURE__ */ u({
481
529
  }),
482
530
  emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
483
531
  setup(e, { emit: t }) {
484
- let n = e, i = B(e, "modelValue"), u = z(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = fe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: g, hasErrors: v } = $({
532
+ 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 } = $({
485
533
  name: n.name,
486
534
  value: i,
487
- errors: F(n, "errors"),
535
+ errors: I(n, "errors"),
488
536
  formKey: n.formKey
489
- }), y = t, b = D(i.value ?? ""), x = null;
537
+ }), y = t, b = O(i.value ?? ""), x = null;
490
538
  function S(e) {
491
539
  if (e !== i.value) {
492
540
  let t = i.value;
@@ -501,7 +549,7 @@ var ke = ["id"], Ae = /* @__PURE__ */ u({
501
549
  S(b.value), x = null;
502
550
  }, n.debounce);
503
551
  }
504
- function T(e) {
552
+ function w(e) {
505
553
  x &&= (clearTimeout(x), null), S(e.target.value);
506
554
  }
507
555
  function E(e) {
@@ -510,69 +558,69 @@ var ke = ["id"], Ae = /* @__PURE__ */ u({
510
558
  S(t);
511
559
  }, 0);
512
560
  }
513
- function O(e) {
561
+ function D(e) {
514
562
  (e.key === "PageUp" || e.key === "PageDown") && (x &&= (clearTimeout(x), null), S(e.target.value)), e.key === "Enter" && S(e.target.value);
515
563
  }
516
- return (t, r) => (w(), o("div", { class: _(["g-text-input-wrap", { "g-text-input-has-error": L(v) }]) }, [
517
- n.label ? (w(), o("label", {
564
+ return (t, r) => (T(), o("div", { class: _(["g-text-input-wrap", { "g-text-input-has-error": R(v) }]) }, [
565
+ n.label ? (T(), o("label", {
518
566
  key: 0,
519
567
  for: m.value,
520
568
  class: "g-text-input-label"
521
- }, [c(N(n.label), 1), n.required ? (w(), o("span", Me, " *")) : a("", !0)], 8, je)) : a("", !0),
522
- t.$slots.instructions || e.instructions ? (w(), o("div", {
569
+ }, [c(P(n.label), 1), n.required ? (T(), o("span", Ne, " *")) : a("", !0)], 8, Me)) : a("", !0),
570
+ t.$slots.instructions || e.instructions ? (T(), o("div", {
523
571
  key: 1,
524
- id: "instructions-" + L(u),
572
+ id: "instructions-" + R(u),
525
573
  class: "g-text-input-instructions"
526
- }, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8, Ne)) : a("", !0),
574
+ }, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, Pe)) : a("", !0),
527
575
  s("div", { class: _([{ "g-text-input-field-wrapper": !0 }, `g-text-input-field-wrapper--${e.name || "nameless"}`]) }, [
528
- n.prefix ? (w(), o("span", Pe, N(n.prefix), 1)) : a("", !0),
576
+ n.prefix ? (T(), o("span", Fe, P(n.prefix), 1)) : a("", !0),
529
577
  s("input", h({
530
578
  value: i.value,
531
579
  placeholder: n.placeholder,
532
580
  disabled: n.disabled,
533
581
  required: n.required,
534
582
  onInput: C,
535
- onBlur: T,
583
+ onBlur: w,
536
584
  onPaste: E,
537
- onKeydown: O,
585
+ onKeydown: D,
538
586
  type: "text",
539
587
  class: "g-text-input"
540
588
  }, {
541
- ...L(p),
589
+ ...R(p),
542
590
  id: m.value,
543
- "aria-describedby": t.$slots.instructions || e.instructions ? "instructions-" + L(u) : void 0,
544
- "aria-errormessage": L(v) ? "error-message-" + L(u) : void 0
545
- }, { "aria-invalid": L(v) ? "true" : "false" }), null, 16, Fe),
546
- n.suffix ? (w(), o("span", Ie, N(n.suffix), 1)) : a("", !0)
591
+ "aria-describedby": t.$slots.instructions || e.instructions ? "instructions-" + R(u) : void 0,
592
+ "aria-errormessage": R(v) ? "error-message-" + R(u) : void 0
593
+ }, { "aria-invalid": R(v) ? "true" : "false" }), null, 16, Ie),
594
+ n.suffix ? (T(), o("span", Le, P(n.suffix), 1)) : a("", !0)
547
595
  ], 2),
548
- l(Ae, {
549
- errors: L(g),
550
- id: "error-message-" + L(u)
596
+ l(je, {
597
+ errors: R(g),
598
+ id: "error-message-" + R(u)
551
599
  }, null, 8, ["errors", "id"])
552
600
  ], 2));
553
601
  }
554
- }), Re = 100, ze = 200, Be = 102, Ve = D([]), He = D([]), Ue = D([]);
555
- function We() {
556
- if (!(typeof document > "u")) if (Ue.value.length > 0) {
602
+ }), ze = 100, Be = 200, Ve = 102, He = O([]), Ue = O([]), We = O([]);
603
+ function Ge() {
604
+ if (!(typeof document > "u")) if (We.value.length > 0) {
557
605
  let e = window.innerWidth - document.documentElement.clientWidth;
558
606
  document.body.classList.add("g-scroll-lock"), document.body.style.paddingRight = `${e}px`, document.body.style.setProperty("--g-scrollbar-width", `${e}px`);
559
607
  } else document.body.style.paddingRight = "0", document.body.classList.remove("g-scroll-lock"), document.body.style.removeProperty("--g-scrollbar-width");
560
608
  }
561
- function Ge(e, t = !1, n = !1) {
609
+ function Ke(e, t = !1, n = !1) {
562
610
  if (typeof document > "u") return {};
563
- let i = t ? He : Ve;
611
+ let i = t ? Ue : He;
564
612
  function a() {
565
- i.value.push(e), n && !Ue.value.includes(e) && (Ue.value.push(e), We());
613
+ i.value.push(e), n && !We.value.includes(e) && (We.value.push(e), Ge());
566
614
  }
567
615
  function o() {
568
616
  let t = i.value.lastIndexOf(e);
569
617
  t !== -1 && i.value.splice(t, 1);
570
- let n = Ue.value.lastIndexOf(e);
571
- n !== -1 && (Ue.value.splice(n, 1), We());
618
+ let n = We.value.lastIndexOf(e);
619
+ n !== -1 && (We.value.splice(n, 1), Ge());
572
620
  }
573
- let s = r(() => !t && He.value.length > 0 ? !1 : i.value.length > 0 && i.value[i.value.length - 1] === e), c = r(() => {
621
+ let s = r(() => !t && Ue.value.length > 0 ? !1 : i.value.length > 0 && i.value[i.value.length - 1] === e), c = r(() => {
574
622
  let n = i.value.indexOf(e);
575
- return n === -1 ? 0 : (t ? ze : Re) + n;
623
+ return n === -1 ? 0 : (t ? Be : ze) + n;
576
624
  });
577
625
  return x(o), {
578
626
  push: a,
@@ -581,32 +629,32 @@ function Ge(e, t = !1, n = !1) {
581
629
  zIndex: c
582
630
  };
583
631
  }
584
- function Ke() {
632
+ function qe() {
585
633
  return typeof document > "u" ? {} : {
586
- hasModal: r(() => He.value.length > 0),
587
- hasOverlay: r(() => Ve.value.length > 0 || He.value.length > 0),
588
- hasScrollLock: r(() => Ue.value.length > 0)
634
+ hasModal: r(() => Ue.value.length > 0),
635
+ hasOverlay: r(() => He.value.length > 0 || Ue.value.length > 0),
636
+ hasScrollLock: r(() => We.value.length > 0)
589
637
  };
590
638
  }
591
- function qe() {
639
+ function Je() {
592
640
  let e = 0;
593
- return Ve.value.forEach((t, n) => {
594
- e = Math.max(e, Re + n);
595
- }), He.value.forEach((t, n) => {
641
+ return He.value.forEach((t, n) => {
596
642
  e = Math.max(e, ze + n);
597
- }), e > 0 ? e + 1 : Be;
643
+ }), Ue.value.forEach((t, n) => {
644
+ e = Math.max(e, Be + n);
645
+ }), e > 0 ? e + 1 : Ve;
598
646
  }
599
647
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
600
- var Je = (e) => e != null;
648
+ var Ye = (e) => e != null;
601
649
  //#endregion
602
650
  //#region ../../node_modules/@vueuse/integrations/dist/useFocusTrap-lXZ_YG-8.js
603
- function Ye(e, t = {}) {
604
- let n, { immediate: i, ...a } = t, o = M(!1), s = M(!1), c = (e) => n && n.activate(e), l = (e) => n && n.deactivate(e);
605
- return G(r(() => ee(I(e)).map((e) => {
606
- let t = I(e);
607
- return typeof t == "string" ? t : te(t);
608
- }).filter(Je)), (e) => {
609
- if (e.length) if (!n) n = ue(e, {
651
+ function Xe(e, t = {}) {
652
+ let n, { immediate: i, ...a } = t, o = N(!1), s = N(!1), c = (e) => n && n.activate(e), l = (e) => n && n.deactivate(e);
653
+ return K(r(() => Z(L(e)).map((e) => {
654
+ let t = L(e);
655
+ return typeof t == "string" ? t : ne(t);
656
+ }).filter(Ye)), (e) => {
657
+ if (e.length) if (!n) n = de(e, {
610
658
  ...a,
611
659
  onActivate() {
612
660
  o.value = !0, t.onActivate && t.onActivate();
@@ -619,7 +667,7 @@ function Ye(e, t = {}) {
619
667
  let t = n?.active;
620
668
  n?.updateContainerElements(e), !t && i && c();
621
669
  }
622
- }, { flush: "post" }), Z(() => l()), {
670
+ }, { flush: "post" }), te(() => l()), {
623
671
  hasFocus: o,
624
672
  isPaused: s,
625
673
  activate: c,
@@ -634,7 +682,7 @@ function Ye(e, t = {}) {
634
682
  }
635
683
  //#endregion
636
684
  //#region src/compose/useOverlayFocus.ts
637
- var Xe = [
685
+ var Ze = [
638
686
  "a[href]",
639
687
  "button:not([disabled])",
640
688
  "input:not([disabled])",
@@ -643,8 +691,8 @@ var Xe = [
643
691
  "[tabindex]:not([tabindex='-1'])",
644
692
  "[contenteditable='true']"
645
693
  ].join(",");
646
- function Ze(e, t, n = !1) {
647
- let r = D(!1), i = () => !!e.value?.querySelector(Xe), { activate: a, deactivate: o, pause: s, unpause: c } = Ye(e, {
694
+ function Qe(e, t, n = !1) {
695
+ let r = O(!1), i = () => !!e.value?.querySelector(Ze), { activate: a, deactivate: o, pause: s, unpause: c } = Xe(e, {
648
696
  immediate: !1,
649
697
  clickOutsideDeactivates: n,
650
698
  initialFocus: () => {
@@ -665,7 +713,7 @@ function Ze(e, t, n = !1) {
665
713
  });
666
714
  }
667
715
  });
668
- return G(t, (e) => {
716
+ return K(t, (e) => {
669
717
  e ? g(() => {
670
718
  i() && c();
671
719
  }).catch((e) => {
@@ -688,7 +736,7 @@ function Ze(e, t, n = !1) {
688
736
  }
689
737
  //#endregion
690
738
  //#region src/compose/useOverlayEscape.ts
691
- function Qe(e, t, n, r, i) {
739
+ function $e(e, t, n, r, i) {
692
740
  function a(i) {
693
741
  if (!(!n.value || !t.value)) {
694
742
  for (let t of e) if (t.value?.contains(i.target)) return;
@@ -708,7 +756,7 @@ function Qe(e, t, n, r, i) {
708
756
  }
709
757
  //#endregion
710
758
  //#region src/compose/popoverPosition.ts
711
- function $e(e, t, n, r) {
759
+ function et(e, t, n, r) {
712
760
  let i = r?.gap ?? 8, a = r?.margin ?? 16, o = r?.preferAbove ?? !1, s = !1, c = !1, l;
713
761
  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;
714
762
  let u = e.left + (e.width - t.width) / 2;
@@ -724,7 +772,7 @@ function $e(e, t, n, r) {
724
772
  }
725
773
  //#endregion
726
774
  //#region src/components/GPopover.vue?vue&type=script&setup=true&lang.ts
727
- var et = { class: "g-popover-wrap" }, tt = ["id"], nt = ["aria-labelledby", "aria-label"], rt = /* @__PURE__ */ u({
775
+ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "aria-label"], it = /* @__PURE__ */ u({
728
776
  __name: "GPopover",
729
777
  props: {
730
778
  minimal: {
@@ -742,29 +790,29 @@ var et = { class: "g-popover-wrap" }, tt = ["id"], nt = ["aria-labelledby", "ari
742
790
  "update:modelValue"
743
791
  ],
744
792
  setup(e, { expose: c, emit: u }) {
745
- let d = e, f = u, p = D(d.modelValue);
746
- G(F(d, "modelValue"), (e) => {
793
+ let d = e, f = u, p = O(d.modelValue);
794
+ K(I(d, "modelValue"), (e) => {
747
795
  p.value = e;
748
796
  });
749
- let m = V(), h = r(() => !!m.trigger), v = H("triggerRef"), b = H("popoverRef"), { isCustomElement: S } = fe(), C = S, T = z(), { push: E, pop: O, isTop: A, zIndex: j } = Ge(T, !0), { activate: M, deactivate: N } = Ze(b, A, !0);
750
- Qe([b, v], A, p, I, O), G(p, (e) => {
797
+ let m = H(), h = r(() => !!m.trigger), v = U("triggerRef"), b = U("popoverRef"), { isCustomElement: S } = pe(), C = S, w = B(), { push: E, pop: D, isTop: k, zIndex: j } = Ke(w, !0), { activate: M, deactivate: N } = Qe(b, k, !0);
798
+ $e([b, v], k, p, F, D), K(p, (e) => {
751
799
  e ? (g(() => {
752
800
  g(() => M());
753
- }), E(), f("show")) : (N(), O(), f("hide"));
801
+ }), E(), f("show")) : (N(), D(), f("hide"));
754
802
  });
755
803
  function P() {
756
804
  p.value = !0, f("update:modelValue", !0);
757
805
  }
758
- function I() {
806
+ function F() {
759
807
  p.value = !1, f("update:modelValue", !1);
760
808
  }
761
- function R() {
809
+ function L() {
762
810
  p.value = !p.value, f("update:modelValue", p.value);
763
811
  }
764
- let B = D({
812
+ let z = O({
765
813
  top: 0,
766
814
  left: 0
767
- }), U = D({ left: "50%" }), K = D(!1), Y = D(!1), X = null;
815
+ }), V = O({ left: "50%" }), W = O(!1), q = O(!1), X = null;
768
816
  function ee() {
769
817
  if (v.value) return v.value;
770
818
  let e = b.value?.parentElement ?? null;
@@ -776,23 +824,23 @@ var et = { class: "g-popover-wrap" }, tt = ["id"], nt = ["aria-labelledby", "ari
776
824
  if (!b.value) return;
777
825
  let e = new DOMRect(0, 0, b.value.offsetWidth, b.value.offsetHeight), t = new DOMRect(0, 0, window.innerWidth, window.innerHeight), n = ee();
778
826
  if (!n) {
779
- B.value = {
827
+ z.value = {
780
828
  top: Math.max((t.height - e.height) / 2, 8),
781
829
  left: Math.max((t.width - e.width) / 2, 8)
782
- }, Y.value = !1, K.value = !1, U.value = { left: "50%" };
830
+ }, q.value = !1, W.value = !1, V.value = { left: "50%" };
783
831
  return;
784
832
  }
785
- let { top: r, left: i, xOffset: a, placedAbove: o, overlay: s } = $e(n.getBoundingClientRect(), e, t, { gap: d.minimal ? 0 : 8 });
786
- B.value = {
833
+ let { top: r, left: i, xOffset: a, placedAbove: o, overlay: s } = et(n.getBoundingClientRect(), e, t, { gap: d.minimal ? 0 : 8 });
834
+ z.value = {
787
835
  top: r,
788
836
  left: i
789
- }, U.value = {
837
+ }, V.value = {
790
838
  left: `${e.width / 2 - a}px`,
791
839
  top: o ? "auto" : void 0,
792
840
  bottom: o ? "-8px" : void 0
793
- }, K.value = o, Y.value = s;
841
+ }, W.value = o, q.value = s;
794
842
  }
795
- return G(p, (e) => {
843
+ return K(p, (e) => {
796
844
  e ? g(() => {
797
845
  Z(), window.addEventListener("resize", Z), window.addEventListener("scroll", Z, { capture: !0 }), b.value && (X && X.disconnect(), X = new ResizeObserver(() => Z()), X.observe(b.value));
798
846
  }) : (window.removeEventListener("resize", Z), window.removeEventListener("scroll", Z, { capture: !0 }), X && X.disconnect());
@@ -800,54 +848,54 @@ var et = { class: "g-popover-wrap" }, tt = ["id"], nt = ["aria-labelledby", "ari
800
848
  window.removeEventListener("resize", Z), window.removeEventListener("scroll", Z, { capture: !0 }), X && X.disconnect();
801
849
  }), c({
802
850
  show: P,
803
- hide: I,
804
- toggle: R
805
- }), (r, c) => (w(), o("div", et, [h.value ? (w(), o("div", {
851
+ hide: F,
852
+ toggle: L
853
+ }), (r, c) => (T(), o("div", tt, [h.value ? (T(), o("div", {
806
854
  key: 0,
807
855
  ref_key: "triggerRef",
808
856
  ref: v,
809
857
  class: "g-popover-trigger",
810
- id: `${L(T)}-trigger`
811
- }, [k(r.$slots, "trigger", { toggle: R })], 8, tt)) : a("", !0), (w(), i(t, {
858
+ id: `${R(w)}-trigger`
859
+ }, [A(r.$slots, "trigger", { toggle: L })], 8, nt)) : a("", !0), (T(), i(t, {
812
860
  to: "#modal-root",
813
- disabled: L(C)
861
+ disabled: R(C)
814
862
  }, [l(n, {
815
863
  name: "g-popover-expand",
816
864
  appear: ""
817
865
  }, {
818
- default: q(() => [L(S) || p.value ? J((w(), o("div", {
866
+ default: J(() => [R(S) || p.value ? Y((T(), o("div", {
819
867
  key: 0,
820
868
  ref_key: "popoverRef",
821
869
  ref: b,
822
870
  class: _({
823
871
  "g-popover": !0,
824
- "g-popover-above": K.value,
825
- "g-popover-below": !K.value,
872
+ "g-popover-above": W.value,
873
+ "g-popover-below": !W.value,
826
874
  "g-popover-minimal": e.minimal
827
875
  }),
828
876
  role: "dialog",
829
877
  "aria-modal": "true",
830
- "aria-labelledby": h.value ? `${L(T)}-trigger` : void 0,
878
+ "aria-labelledby": h.value ? `${R(w)}-trigger` : void 0,
831
879
  "aria-label": h.value ? void 0 : "Popover",
832
880
  style: y({
833
- top: B.value.top + "px",
834
- left: B.value.left + "px",
835
- zIndex: L(j)
881
+ top: z.value.top + "px",
882
+ left: z.value.left + "px",
883
+ zIndex: R(j)
836
884
  })
837
885
  }, [
838
- !Y.value && !e.minimal ? (w(), o("div", {
886
+ !q.value && !e.minimal ? (T(), o("div", {
839
887
  key: 0,
840
- class: _(["g-popover-arrow", { "g-popover-arrow-above": K.value }]),
841
- style: y(U.value),
888
+ class: _(["g-popover-arrow", { "g-popover-arrow-above": W.value }]),
889
+ style: y(V.value),
842
890
  "aria-hidden": "true"
843
891
  }, null, 6)) : a("", !0),
844
- k(r.$slots, "default"),
845
- e.minimal ? a("", !0) : (w(), o("button", {
892
+ A(r.$slots, "default"),
893
+ e.minimal ? a("", !0) : (T(), o("button", {
846
894
  key: 1,
847
895
  class: "g-popover-close",
848
896
  type: "button",
849
897
  "aria-label": "Close popover",
850
- onClick: I
898
+ onClick: F
851
899
  }, [...c[0] ||= [s("svg", {
852
900
  class: "g-popover-close-icon",
853
901
  xmlns: "http://www.w3.org/2000/svg",
@@ -857,46 +905,46 @@ var et = { class: "g-popover-wrap" }, tt = ["id"], nt = ["aria-labelledby", "ari
857
905
  fill: "currentColor",
858
906
  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"
859
907
  })], -1)]]))
860
- ], 14, nt)), [[W, p.value]]) : a("", !0)]),
908
+ ], 14, rt)), [[G, p.value]]) : a("", !0)]),
861
909
  _: 3
862
910
  })], 8, ["disabled"]))]));
863
911
  }
864
- }), it = 1;
865
- function at(e = "v-gtooltip") {
866
- return `${e}-${++it}`;
912
+ }), at = 1;
913
+ function ot(e = "v-gtooltip") {
914
+ return `${e}-${++at}`;
867
915
  }
868
- function ot(e, t = "v-gtooltip") {
916
+ function st(e, t = "v-gtooltip") {
869
917
  let n = e.getAttribute("aria-describedby");
870
918
  if (n) return n;
871
- let r = at(t);
919
+ let r = ot(t);
872
920
  return e.setAttribute("aria-describedby", r), r;
873
921
  }
874
- function st(e, t) {
922
+ function ct(e, t) {
875
923
  let n = document.createElement("div");
876
924
  return n.className = "v-gtooltip", n.textContent = e, n.setAttribute("role", "tooltip"), n.setAttribute("id", t), n;
877
925
  }
878
- function ct(e) {
926
+ function lt(e) {
879
927
  (document.getElementById("modal-root") ?? document.body).appendChild(e);
880
928
  }
881
- function lt(e, t) {
882
- let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } = $e(n, r, new DOMRect(0, 0, window.innerWidth, window.innerHeight), {
929
+ function ut(e, t) {
930
+ let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } = et(n, r, new DOMRect(0, 0, window.innerWidth, window.innerHeight), {
883
931
  gap: 8,
884
932
  margin: 8,
885
933
  preferAbove: !0
886
934
  }), s = (n.left + n.width / 2 - a) / r.width * 100;
887
- 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 = `${qe()}`, t.style.opacity = "1";
935
+ 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 = `${Je()}`, t.style.opacity = "1";
888
936
  }
889
- function ut(e) {
937
+ function dt(e) {
890
938
  e.style.opacity = "0";
891
939
  }
892
940
  //#endregion
893
941
  //#region src/components/GTooltip.vue
894
- var dt = /* @__PURE__ */ u({
942
+ var ft = /* @__PURE__ */ u({
895
943
  __name: "GTooltip",
896
944
  props: { text: {} },
897
945
  emits: ["tooltip-hide"],
898
946
  setup(e, { expose: t, emit: n }) {
899
- let i = e, s = n, c = V(), l = r(() => !!c.trigger), u = H("hostRef"), d = H("triggerRef"), f = D(null), p = D(!1), m = D(!1), h = null, g = !1, _ = null, v = null, y = null;
947
+ let i = e, s = n, c = H(), l = r(() => !!c.trigger), u = U("hostRef"), d = U("triggerRef"), f = O(null), p = O(!1), m = O(!1), h = null, g = !1, _ = null, v = null, y = null;
900
948
  function b() {
901
949
  if (l.value && d.value) {
902
950
  let e = d.value.firstElementChild;
@@ -906,27 +954,27 @@ var dt = /* @__PURE__ */ u({
906
954
  return t instanceof HTMLElement ? t : null;
907
955
  }
908
956
  function S() {
909
- y && (v || (v = l.value ? at("g-tooltip") : ot(y, "g-tooltip"), l.value && y.setAttribute("aria-describedby", v)), f.value || (f.value = st(i.text, v), ct(f.value), h = new ResizeObserver(() => {
910
- f.value && (p.value || m.value) && y && lt(y, f.value);
957
+ y && (v || (v = l.value ? ot("g-tooltip") : st(y, "g-tooltip"), l.value && y.setAttribute("aria-describedby", v)), f.value || (f.value = ct(i.text, v), lt(f.value), h = new ResizeObserver(() => {
958
+ f.value && (p.value || m.value) && y && ut(y, f.value);
911
959
  }), h.observe(f.value)));
912
960
  }
913
961
  function C() {
914
- f.value && (p.value || m.value) && y && lt(y, f.value);
962
+ f.value && (p.value || m.value) && y && ut(y, f.value);
915
963
  }
916
- function T() {
964
+ function w() {
917
965
  p.value = !0;
918
966
  }
919
967
  function E() {
920
968
  p.value = !1, m.value = !1;
921
969
  }
922
- function O() {
970
+ function D() {
923
971
  if (p.value || m.value) {
924
972
  E();
925
973
  return;
926
974
  }
927
- T();
975
+ w();
928
976
  }
929
- function A(e) {
977
+ function k(e) {
930
978
  y !== e && (j(), y = e, y && (y.addEventListener("mouseenter", M), y.addEventListener("mouseleave", N), y.addEventListener("focusin", P), y.addEventListener("focusout", F), y.addEventListener("keydown", I)));
931
979
  }
932
980
  function j() {
@@ -947,44 +995,44 @@ var dt = /* @__PURE__ */ u({
947
995
  function I(e) {
948
996
  (e.key === "Escape" || e.key === "Esc") && (p.value = !1, m.value = !1);
949
997
  }
950
- return G(() => [
998
+ return K(() => [
951
999
  u.value,
952
1000
  d.value,
953
1001
  l.value
954
1002
  ], () => {
955
- A(b()), S();
956
- }, { immediate: !0 }), G(() => i.text, (e) => {
1003
+ k(b()), S();
1004
+ }, { immediate: !0 }), K(() => i.text, (e) => {
957
1005
  f.value && (f.value.textContent = e);
958
- }), G(() => p.value || m.value, (e) => {
1006
+ }), K(() => p.value || m.value, (e) => {
959
1007
  if (e) {
960
- S(), f.value && y && lt(y, f.value), g ||= (window.addEventListener("scroll", C, { capture: !0 }), !0);
1008
+ S(), f.value && y && ut(y, f.value), g ||= (window.addEventListener("scroll", C, { capture: !0 }), !0);
961
1009
  return;
962
1010
  }
963
- g &&= (window.removeEventListener("scroll", C, { capture: !0 }), !1), f.value && (ut(f.value), _ && clearTimeout(_), _ = window.setTimeout(() => {
1011
+ g &&= (window.removeEventListener("scroll", C, { capture: !0 }), !1), f.value && (dt(f.value), _ && clearTimeout(_), _ = window.setTimeout(() => {
964
1012
  s("tooltip-hide");
965
1013
  }, 150));
966
1014
  }), x(() => {
967
1015
  g && window.removeEventListener("scroll", C, { capture: !0 }), h && h.disconnect(), f.value &&= (f.value.remove(), null), _ && clearTimeout(_), l.value && y && y.removeAttribute("aria-describedby"), j();
968
1016
  }), t({
969
- show: T,
1017
+ show: w,
970
1018
  hide: E,
971
- toggle: O
972
- }), (e, t) => (w(), o("div", {
1019
+ toggle: D
1020
+ }), (e, t) => (T(), o("div", {
973
1021
  ref_key: "hostRef",
974
1022
  ref: u,
975
1023
  class: "g-tooltip-host"
976
- }, [l.value ? (w(), o("div", {
1024
+ }, [l.value ? (T(), o("div", {
977
1025
  key: 0,
978
1026
  ref_key: "triggerRef",
979
1027
  ref: d,
980
1028
  class: "g-tooltip-trigger"
981
- }, [k(e.$slots, "trigger")], 512)) : a("", !0)], 512));
1029
+ }, [A(e.$slots, "trigger")], 512)) : a("", !0)], 512));
982
1030
  }
983
- }), ft = ["disabled"], pt = { class: "g-select-btn-legend" }, mt = {
1031
+ }), pt = ["disabled"], mt = { class: "g-select-btn-legend" }, ht = {
984
1032
  key: 0,
985
1033
  class: "g-select-btn-required",
986
1034
  "aria-hidden": "true"
987
- }, ht = { class: "g-select-btn-row" }, gt = [
1035
+ }, gt = { class: "g-select-btn-row" }, _t = [
988
1036
  "id",
989
1037
  "name",
990
1038
  "value",
@@ -992,7 +1040,7 @@ var dt = /* @__PURE__ */ u({
992
1040
  "disabled",
993
1041
  "required",
994
1042
  "onChange"
995
- ], _t = ["for"], vt = /* @__PURE__ */ u({
1043
+ ], vt = ["for"], yt = /* @__PURE__ */ u({
996
1044
  __name: "GSelectButton",
997
1045
  props: /* @__PURE__ */ m({
998
1046
  options: {},
@@ -1015,10 +1063,10 @@ var dt = /* @__PURE__ */ u({
1015
1063
  }),
1016
1064
  emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
1017
1065
  setup(t, { emit: n }) {
1018
- let i = t, u = n, d = B(t, "modelValue"), f = z(), { displayErrors: p, hasErrors: m } = $({
1066
+ let i = t, u = n, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } = $({
1019
1067
  name: i.name,
1020
1068
  value: d,
1021
- errors: F(i, "errors"),
1069
+ errors: I(i, "errors"),
1022
1070
  formKey: i.formKey
1023
1071
  }), h = r(() => i.options.map((e) => typeof e == "string" ? {
1024
1072
  label: e,
@@ -1031,42 +1079,42 @@ var dt = /* @__PURE__ */ u({
1031
1079
  function y(e) {
1032
1080
  !i.disabled && e !== d.value && (d.value = e, u("change", e));
1033
1081
  }
1034
- return (t, n) => (w(), o("fieldset", {
1082
+ return (t, n) => (T(), o("fieldset", {
1035
1083
  class: _(g.value),
1036
1084
  disabled: i.disabled
1037
- }, [s("legend", pt, [c(N(i.label), 1), i.required ? (w(), o("span", mt, " *")) : a("", !0)]), s("div", { class: _(["g-select-btn-wrapper", { "g-select-btn-has-error": L(m) }]) }, [s("div", ht, [(w(!0), o(e, null, O(h.value, (t, n) => (w(), o(e, { key: t.value }, [s("input", {
1085
+ }, [s("legend", mt, [c(P(i.label), 1), i.required ? (T(), o("span", ht, " *")) : a("", !0)]), s("div", { class: _(["g-select-btn-wrapper", { "g-select-btn-has-error": R(m) }]) }, [s("div", gt, [(T(!0), o(e, null, k(h.value, (t, n) => (T(), o(e, { key: t.value }, [s("input", {
1038
1086
  class: "g-select-btn-radio",
1039
1087
  type: "radio",
1040
- id: `${L(f)}-${t.value}`,
1041
- name: i.name || L(f),
1088
+ id: `${R(f)}-${t.value}`,
1089
+ name: i.name || R(f),
1042
1090
  value: t.value,
1043
1091
  checked: t.value === d.value,
1044
1092
  disabled: i.disabled,
1045
1093
  required: i.required && n === 0,
1046
1094
  onChange: (e) => y(t.value)
1047
- }, null, 40, gt), s("label", {
1048
- for: `${L(f)}-${t.value}`,
1095
+ }, null, 40, _t), s("label", {
1096
+ for: `${R(f)}-${t.value}`,
1049
1097
  class: _(v(t.value === d.value))
1050
- }, N(t.label), 11, _t)], 64))), 128))]), l(Ae, {
1051
- errors: L(p),
1052
- id: "error-message-" + L(f)
1053
- }, null, 8, ["errors", "id"])], 2)], 10, ft));
1098
+ }, P(t.label), 11, vt)], 64))), 128))]), l(je, {
1099
+ errors: R(p),
1100
+ id: "error-message-" + R(f)
1101
+ }, null, 8, ["errors", "id"])], 2)], 10, pt));
1054
1102
  }
1055
- }), yt = ["width", "height"], bt = [
1103
+ }), bt = ["width", "height"], xt = [
1056
1104
  "cx",
1057
1105
  "cy",
1058
1106
  "r"
1059
- ], xt = [
1107
+ ], St = [
1060
1108
  "cx",
1061
1109
  "cy",
1062
1110
  "r",
1063
1111
  "stroke-dasharray",
1064
1112
  "stroke-dashoffset"
1065
- ], St = [
1113
+ ], Ct = [
1066
1114
  "cx",
1067
1115
  "cy",
1068
1116
  "r"
1069
- ], Ct = /* @__PURE__ */ u({
1117
+ ], wt = /* @__PURE__ */ u({
1070
1118
  __name: "GProgress",
1071
1119
  props: {
1072
1120
  label: { default: "Loading" },
@@ -1091,7 +1139,7 @@ var dt = /* @__PURE__ */ u({
1091
1139
  role: "status",
1092
1140
  "aria-label": t.label
1093
1141
  });
1094
- return (e, t) => (w(), o("span", h({ class: "g-progress" }, l.value), [(w(), o("svg", {
1142
+ return (e, t) => (T(), o("span", h({ class: "g-progress" }, l.value), [(T(), o("svg", {
1095
1143
  width: i.value * 2 + 4,
1096
1144
  height: i.value * 2 + 4,
1097
1145
  class: _(["g-progress__svg", {
@@ -1107,7 +1155,7 @@ var dt = /* @__PURE__ */ u({
1107
1155
  r: i.value,
1108
1156
  "stroke-width": 4,
1109
1157
  fill: "none"
1110
- }, null, 8, bt), n.value ? (w(), o("circle", {
1158
+ }, null, 8, xt), n.value ? (T(), o("circle", {
1111
1159
  key: 0,
1112
1160
  class: "g-progress__value",
1113
1161
  cx: i.value + 4 / 2,
@@ -1121,7 +1169,7 @@ var dt = /* @__PURE__ */ u({
1121
1169
  transform: "rotate(-90deg)",
1122
1170
  "transform-origin": "center"
1123
1171
  }
1124
- }, null, 8, xt)) : (w(), o("circle", {
1172
+ }, null, 8, St)) : (T(), o("circle", {
1125
1173
  key: 1,
1126
1174
  class: "g-progress__spinner",
1127
1175
  cx: i.value + 4 / 2,
@@ -1129,13 +1177,13 @@ var dt = /* @__PURE__ */ u({
1129
1177
  r: i.value,
1130
1178
  "stroke-width": 4,
1131
1179
  fill: "none"
1132
- }, null, 8, St))], 10, yt))], 16));
1180
+ }, null, 8, Ct))], 10, bt))], 16));
1133
1181
  }
1134
- }), wt = [
1182
+ }), Tt = [
1135
1183
  "id",
1136
1184
  "aria-labelledby",
1137
1185
  "aria-describedby"
1138
- ], Tt = { class: "g-alertdialog-inner" }, Et = ["id"], Dt = ["id"], Ot = { class: "g-alertdialog-actions" }, kt = /* @__PURE__ */ u({
1186
+ ], Et = { class: "g-alertdialog-inner" }, Dt = ["id"], Ot = ["id"], kt = { class: "g-alertdialog-actions" }, At = /* @__PURE__ */ u({
1139
1187
  __name: "GAlertDialog",
1140
1188
  props: {
1141
1189
  label: { default: "Confirmation" },
@@ -1144,65 +1192,65 @@ var dt = /* @__PURE__ */ u({
1144
1192
  },
1145
1193
  emits: ["cancel", "confirm"],
1146
1194
  setup(e, { emit: r }) {
1147
- let a = e, o = r, u = D(null), d = D(!0), f = z(), { pop: p, push: m, isTop: h, zIndex: g } = Ge(f, !0, !0), { deactivate: _, activate: v } = Ze(u, h);
1195
+ let a = e, o = r, u = O(null), d = O(!0), f = B(), { pop: p, push: m, isTop: h, zIndex: g } = Ke(f, !0, !0), { deactivate: _, activate: v } = Qe(u, h);
1148
1196
  function x() {
1149
1197
  o("cancel");
1150
1198
  }
1151
- return Qe([u], h, d, x, p), S(() => {
1199
+ return $e([u], h, d, x, p), S(() => {
1152
1200
  m(), v();
1153
1201
  }), b(() => {
1154
1202
  p(), _();
1155
- }), (e, r) => (w(), i(t, { to: "#modal-root" }, [l(n, {
1203
+ }), (e, r) => (T(), i(t, { to: "#modal-root" }, [l(n, {
1156
1204
  name: "g-fade",
1157
1205
  appear: ""
1158
1206
  }, {
1159
- default: q(() => [s("div", {
1160
- id: "alertdialog-" + L(f),
1207
+ default: J(() => [s("div", {
1208
+ id: "alertdialog-" + R(f),
1161
1209
  class: "g-alertdialog",
1162
1210
  role: "alertdialog",
1163
1211
  "aria-modal": "true",
1164
- "aria-labelledby": "alertdialog-label-" + L(f),
1165
- "aria-describedby": "alertdialog-description-" + L(f),
1212
+ "aria-labelledby": "alertdialog-label-" + R(f),
1213
+ "aria-describedby": "alertdialog-description-" + R(f),
1166
1214
  ref_key: "dialog",
1167
1215
  ref: u,
1168
- style: y({ zIndex: L(g) })
1169
- }, [s("div", Tt, [
1216
+ style: y({ zIndex: R(g) })
1217
+ }, [s("div", Et, [
1170
1218
  s("h2", {
1171
- id: "alertdialog-label-" + L(f),
1219
+ id: "alertdialog-label-" + R(f),
1172
1220
  class: "g-alertdialog-label"
1173
- }, N(a.label), 9, Et),
1221
+ }, P(a.label), 9, Dt),
1174
1222
  s("div", {
1175
- id: "alertdialog-description-" + L(f),
1223
+ id: "alertdialog-description-" + R(f),
1176
1224
  class: "g-alertdialog-content"
1177
- }, [k(e.$slots, "default")], 8, Dt),
1178
- s("div", Ot, [l(Q, {
1225
+ }, [A(e.$slots, "default")], 8, Ot),
1226
+ s("div", kt, [l(Q, {
1179
1227
  outlined: "",
1180
1228
  onClick: r[0] ||= (e) => o("cancel")
1181
1229
  }, {
1182
- default: q(() => [...r[2] ||= [c("Cancel", -1)]]),
1230
+ default: J(() => [...r[2] ||= [c("Cancel", -1)]]),
1183
1231
  _: 1
1184
1232
  }), l(Q, {
1185
1233
  theme: a.buttonColor,
1186
1234
  onClick: r[1] ||= (e) => o("confirm")
1187
1235
  }, {
1188
- default: q(() => [c(N(a.buttonText), 1)]),
1236
+ default: J(() => [c(P(a.buttonText), 1)]),
1189
1237
  _: 1
1190
1238
  }, 8, ["theme"])])
1191
- ])], 12, wt)]),
1239
+ ])], 12, Tt)]),
1192
1240
  _: 3
1193
1241
  })]));
1194
1242
  }
1195
1243
  });
1196
1244
  //#endregion
1197
1245
  //#region src/compose/useSelectDropdown.ts
1198
- function At(e) {
1246
+ function jt(e) {
1199
1247
  return e.map((e) => typeof e == "string" ? {
1200
1248
  label: e,
1201
1249
  value: e
1202
1250
  } : e);
1203
1251
  }
1204
- function jt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a }) {
1205
- let { push: o, pop: s, isTop: c } = Ge(i), l = D("below"), u = D(null), d = r(() => {
1252
+ function Mt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a }) {
1253
+ let { push: o, pop: s, isTop: c } = Ke(i), l = O("below"), u = O(null), d = r(() => {
1206
1254
  let e = {};
1207
1255
  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;
1208
1256
  });
@@ -1225,7 +1273,7 @@ function jt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a })
1225
1273
  function h() {
1226
1274
  p && p();
1227
1275
  }
1228
- G(e, (e) => {
1276
+ K(e, (e) => {
1229
1277
  e ? (o(), m(), g(() => f())) : (s(), h(), l.value = "below", u.value = null);
1230
1278
  }), x(() => {
1231
1279
  h();
@@ -1245,11 +1293,11 @@ function jt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a })
1245
1293
  }
1246
1294
  //#endregion
1247
1295
  //#region src/components/GSelect.vue?vue&type=script&setup=true&lang.ts
1248
- var Mt = ["id"], Nt = {
1296
+ var Nt = ["id"], Pt = {
1249
1297
  key: 0,
1250
1298
  class: "g-select-required",
1251
1299
  "aria-hidden": "true"
1252
- }, Pt = { class: "g-select-input-wrap" }, Ft = ["id"], It = [
1300
+ }, Ft = { class: "g-select-input-wrap" }, It = ["id"], Lt = [
1253
1301
  "value",
1254
1302
  "placeholder",
1255
1303
  "disabled",
@@ -1257,21 +1305,21 @@ var Mt = ["id"], Nt = {
1257
1305
  "aria-expanded",
1258
1306
  "aria-required",
1259
1307
  "aria-activedescendant"
1260
- ], Lt = [
1308
+ ], Rt = [
1261
1309
  "id",
1262
1310
  "aria-controls",
1263
1311
  "aria-expanded",
1264
1312
  "aria-required",
1265
1313
  "aria-activedescendant"
1266
- ], Rt = ["id"], zt = [
1314
+ ], zt = ["id"], Bt = [
1267
1315
  "id",
1268
1316
  "aria-selected",
1269
1317
  "onClick"
1270
- ], Bt = {
1318
+ ], Vt = {
1271
1319
  key: 1,
1272
1320
  "aria-live": "polite",
1273
1321
  class: "g-select-combo-option g-select-option g-select-no-results"
1274
- }, Vt = /* @__PURE__ */ u({
1322
+ }, Ht = /* @__PURE__ */ u({
1275
1323
  __name: "GSelect",
1276
1324
  props: /* @__PURE__ */ m({
1277
1325
  options: {},
@@ -1304,39 +1352,39 @@ var Mt = ["id"], Nt = {
1304
1352
  }),
1305
1353
  emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
1306
1354
  setup(t, { emit: n }) {
1307
- let i = t, u = n, d = B(t, "modelValue"), f = z(), p = D(null), m = D(null), v = D(null), y = D(!1), b = D(0), x = D(!1), S = D(!1), { displayErrors: C, hasErrors: T } = $({
1355
+ 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: w } = $({
1308
1356
  name: i.name,
1309
1357
  value: d,
1310
- errors: F(i, "errors"),
1358
+ errors: I(i, "errors"),
1311
1359
  formKey: i.formKey
1312
- }), { menuPlacement: E, menuStyle: A, isTop: j, scrollOptionIntoView: M } = jt({
1360
+ }), { menuPlacement: E, menuStyle: D, isTop: j, scrollOptionIntoView: M } = Mt({
1313
1361
  open: y,
1314
1362
  anchorRef: p,
1315
1363
  listboxRef: m,
1316
1364
  baseId: f,
1317
1365
  activeIndex: b
1318
- }), P = r(() => At(i.options)), I = D(""), R = r(() => {
1319
- if (!i.searchable || !y.value || !I.value) return P.value;
1320
- let e = I.value.toLowerCase();
1321
- return P.value.filter((t) => t.label.toLowerCase().includes(e));
1322
- }), V = r(() => R.value.findIndex((e) => e.value === d.value));
1323
- G(() => d.value, (e) => {
1324
- let t = R.value.findIndex((t) => t.value === e);
1366
+ }), N = r(() => jt(i.options)), F = O(""), L = r(() => {
1367
+ if (!i.searchable || !y.value || !F.value) return N.value;
1368
+ let e = F.value.toLowerCase();
1369
+ return N.value.filter((t) => t.label.toLowerCase().includes(e));
1370
+ }), z = r(() => L.value.findIndex((e) => e.value === d.value));
1371
+ K(() => d.value, (e) => {
1372
+ let t = L.value.findIndex((t) => t.value === e);
1325
1373
  t !== -1 && (b.value = t);
1326
1374
  });
1327
1375
  function H() {
1328
1376
  if (!i.disabled && (y.value = !0, i.searchable)) {
1329
- I.value = "";
1330
- let e = R.value.findIndex((e) => e.value === d.value);
1377
+ F.value = "";
1378
+ let e = L.value.findIndex((e) => e.value === d.value);
1331
1379
  b.value = e === -1 ? 0 : e, g(() => {
1332
1380
  v.value && v.value.focus();
1333
1381
  });
1334
1382
  }
1335
1383
  }
1336
1384
  function U() {
1337
- y.value = !1, i.searchable && (I.value = "");
1385
+ y.value = !1, i.searchable && (F.value = "");
1338
1386
  }
1339
- function K(e) {
1387
+ function W(e) {
1340
1388
  if (!i.disabled && i.searchable) {
1341
1389
  if (S.value) {
1342
1390
  S.value = !1;
@@ -1347,20 +1395,20 @@ var Mt = ["id"], Nt = {
1347
1395
  }
1348
1396
  function q(e) {
1349
1397
  if (!i.searchable) return;
1350
- y.value || H(), I.value = e.target.value;
1351
- let t = R.value.findIndex((e) => e.value === d.value);
1398
+ y.value || H(), F.value = e.target.value;
1399
+ let t = L.value.findIndex((e) => e.value === d.value);
1352
1400
  b.value = t === -1 ? 0 : t;
1353
1401
  }
1354
- function X(e) {
1402
+ function J(e) {
1355
1403
  let t = e.relatedTarget;
1356
1404
  if (x.value) {
1357
1405
  x.value = !1;
1358
1406
  return;
1359
1407
  }
1360
- t && m.value && m.value.contains(t) || (i.searchable && (I.value = ""), U());
1408
+ t && m.value && m.value.contains(t) || (i.searchable && (F.value = ""), U());
1361
1409
  }
1362
1410
  function ee(e) {
1363
- let t = R.value[e];
1411
+ let t = L.value[e];
1364
1412
  t && t.value !== d.value && (d.value = t.value, u("change", t.value)), S.value = !0, U(), setTimeout(() => {
1365
1413
  S.value = !1;
1366
1414
  }, 100);
@@ -1370,7 +1418,7 @@ var Mt = ["id"], Nt = {
1370
1418
  }
1371
1419
  function te(e) {
1372
1420
  if (i.disabled) return;
1373
- let t = R.value.length - 1;
1421
+ let t = L.value.length - 1;
1374
1422
  if (!y.value && [
1375
1423
  "ArrowDown",
1376
1424
  "ArrowUp",
@@ -1412,22 +1460,22 @@ var Mt = ["id"], Nt = {
1412
1460
  }
1413
1461
  let ie = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
1414
1462
  function ae() {
1415
- i.disabled || (d.value = null, u("change", null), i.searchable && (I.value = ""));
1463
+ i.disabled || (d.value = null, u("change", null), i.searchable && (F.value = ""));
1416
1464
  }
1417
- return (n, r) => (w(), o("div", { class: _(["g-select-root g-select-combo", {
1465
+ return (n, r) => (T(), o("div", { class: _(["g-select-root g-select-combo", {
1418
1466
  "g-select-open": y.value,
1419
1467
  "g-select-compact": t.compact,
1420
- "g-select-has-error": L(T)
1468
+ "g-select-has-error": R(w)
1421
1469
  }]) }, [
1422
- t.hiddenLabel ? a("", !0) : (w(), o("div", {
1470
+ t.hiddenLabel ? a("", !0) : (T(), o("div", {
1423
1471
  key: 0,
1424
- id: L(f) + "-label",
1472
+ id: R(f) + "-label",
1425
1473
  class: "g-select-combo-label g-select-label"
1426
- }, [c(N(i.label), 1), i.required ? (w(), o("span", Nt, " *")) : a("", !0)], 8, Mt)),
1427
- s("div", Pt, [i.searchable ? (w(), o("div", {
1474
+ }, [c(P(i.label), 1), i.required ? (T(), o("span", Pt, " *")) : a("", !0)], 8, Nt)),
1475
+ s("div", Ft, [i.searchable ? (T(), o("div", {
1428
1476
  key: 0,
1429
1477
  class: "g-select-combo-input g-select-control",
1430
- id: L(f)
1478
+ id: R(f)
1431
1479
  }, [
1432
1480
  s("input", h({
1433
1481
  ref_key: "comboRef",
@@ -1435,24 +1483,24 @@ var Mt = ["id"], Nt = {
1435
1483
  type: "text",
1436
1484
  name: "comboInput",
1437
1485
  class: ["g-select-search-input", { "g-select-clearable": t.clearButton }],
1438
- value: y.value ? I.value : P.value[V.value] ? P.value[V.value].label : "",
1486
+ value: y.value ? F.value : N.value[z.value] ? N.value[z.value].label : "",
1439
1487
  placeholder: y.value ? "" : t.placeholder,
1440
1488
  disabled: i.disabled,
1441
- onFocus: K,
1489
+ onFocus: W,
1442
1490
  onInput: q,
1443
1491
  onKeydown: te,
1444
- onBlur: X,
1492
+ onBlur: J,
1445
1493
  "aria-autocomplete": "list",
1446
- "aria-controls": L(f) + "-listbox",
1494
+ "aria-controls": R(f) + "-listbox",
1447
1495
  "aria-expanded": y.value ? "true" : "false",
1448
1496
  "aria-required": i.required ? "true" : void 0,
1449
1497
  "aria-haspopup": "listbox",
1450
- "aria-activedescendant": y.value ? L(f) + "-option-" + b.value : void 0
1451
- }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": L(f) + "-label" }, {
1498
+ "aria-activedescendant": y.value ? R(f) + "-option-" + b.value : void 0
1499
+ }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": R(f) + "-label" }, {
1452
1500
  role: "combobox",
1453
1501
  autocomplete: "off"
1454
- }), null, 16, It),
1455
- ie.value ? (w(), o("button", {
1502
+ }), null, 16, Lt),
1503
+ ie.value ? (T(), o("button", {
1456
1504
  key: 0,
1457
1505
  type: "button",
1458
1506
  class: "g-select-clear-btn",
@@ -1477,31 +1525,31 @@ var Mt = ["id"], Nt = {
1477
1525
  fill: "currentColor",
1478
1526
  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"
1479
1527
  })], -1)
1480
- ], 8, Ft)) : (w(), o("div", h({
1528
+ ], 8, It)) : (T(), o("div", h({
1481
1529
  key: 1,
1482
1530
  ref_key: "comboRef",
1483
1531
  ref: p,
1484
- id: L(f),
1532
+ id: R(f),
1485
1533
  class: ["g-select-combo-button g-select-control", { "g-select-clearable": t.clearButton }],
1486
1534
  role: "combobox",
1487
- "aria-controls": L(f) + "-listbox",
1535
+ "aria-controls": R(f) + "-listbox",
1488
1536
  "aria-expanded": y.value ? "true" : "false",
1489
1537
  "aria-required": i.required ? "true" : void 0,
1490
1538
  "aria-haspopup": "listbox"
1491
- }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": L(f) + "-label" }, {
1492
- "aria-activedescendant": y.value ? L(f) + "-option-" + b.value : void 0,
1539
+ }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": R(f) + "-label" }, {
1540
+ "aria-activedescendant": y.value ? R(f) + "-option-" + b.value : void 0,
1493
1541
  tabindex: "0",
1494
1542
  onClick: Z,
1495
1543
  onKeydown: te,
1496
- onFocus: K,
1497
- onBlur: X
1544
+ onFocus: W,
1545
+ onBlur: J
1498
1546
  }), [
1499
- c(N(P.value[V.value] ? P.value[V.value].label : "") + " ", 1),
1500
- ie.value ? (w(), o("button", {
1547
+ c(P(N.value[z.value] ? N.value[z.value].label : "") + " ", 1),
1548
+ ie.value ? (T(), o("button", {
1501
1549
  key: 0,
1502
1550
  type: "button",
1503
1551
  class: "g-select-clear-btn",
1504
- onClick: Y(ae, ["stop"])
1552
+ onClick: X(ae, ["stop"])
1505
1553
  }, [...r[2] ||= [s("svg", {
1506
1554
  role: "img",
1507
1555
  "aria-label": "Clear Selection",
@@ -1522,16 +1570,16 @@ var Mt = ["id"], Nt = {
1522
1570
  fill: "currentColor",
1523
1571
  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"
1524
1572
  })], -1)
1525
- ], 16, Lt)), J(s("div", h({
1573
+ ], 16, Rt)), Y(s("div", h({
1526
1574
  ref_key: "listboxRef",
1527
1575
  ref: m,
1528
- class: ["g-select-combo-menu g-select-list", { "g-select-combo-menu--above": L(E) === "above" }],
1529
- style: L(A),
1576
+ class: ["g-select-combo-menu g-select-list", { "g-select-combo-menu--above": R(E) === "above" }],
1577
+ style: R(D),
1530
1578
  role: "listbox",
1531
- id: L(f) + "-listbox"
1532
- }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": L(f) + "-label" }, { tabindex: "-1" }), [R.value.length > 0 ? (w(!0), o(e, { key: 0 }, O(R.value, (e, t) => (w(), o("div", {
1579
+ id: R(f) + "-listbox"
1580
+ }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": R(f) + "-label" }, { tabindex: "-1" }), [L.value.length > 0 ? (T(!0), o(e, { key: 0 }, k(L.value, (e, t) => (T(), o("div", {
1533
1581
  key: e.value,
1534
- id: L(f) + "-option-" + t,
1582
+ id: R(f) + "-option-" + t,
1535
1583
  class: _(["g-select-combo-option g-select-option", {
1536
1584
  "g-select-option-current": t === b.value,
1537
1585
  "ilw-theme-blue": e.value === d.value
@@ -1540,38 +1588,38 @@ var Mt = ["id"], Nt = {
1540
1588
  "aria-selected": e.value === d.value ? "true" : "false",
1541
1589
  onMousedown: re,
1542
1590
  onClick: (e) => ne(t)
1543
- }, [k(n.$slots, "option", {
1591
+ }, [A(n.$slots, "option", {
1544
1592
  option: e,
1545
1593
  selected: e.value === d.value,
1546
1594
  index: t
1547
- }, () => [c(N(e.label), 1)])], 42, zt))), 128)) : (w(), o("div", Bt, " No results found. "))], 16, Rt), [[W, y.value]])]),
1548
- l(Ae, {
1549
- errors: L(C),
1550
- id: "error-message-" + L(f)
1595
+ }, () => [c(P(e.label), 1)])], 42, Bt))), 128)) : (T(), o("div", Vt, " No results found. "))], 16, zt), [[G, y.value]])]),
1596
+ l(je, {
1597
+ errors: R(C),
1598
+ id: "error-message-" + R(f)
1551
1599
  }, null, 8, ["errors", "id"])
1552
1600
  ], 2));
1553
1601
  }
1554
- }), Ht = ["aria-label"], Ut = [
1602
+ }), Ut = ["aria-label"], Wt = [
1555
1603
  "placeholder",
1556
1604
  "value",
1557
1605
  "aria-expanded",
1558
1606
  "aria-controls",
1559
1607
  "aria-activedescendant"
1560
- ], Wt = {
1608
+ ], Gt = {
1561
1609
  key: 0,
1562
1610
  class: "g-search-dropdown"
1563
- }, Gt = {
1611
+ }, Kt = {
1564
1612
  "aria-live": "polite",
1565
1613
  class: "g-search-result-count"
1566
- }, Kt = ["id"], qt = ["aria-label"], Jt = { class: "g-search-group-label" }, Yt = [
1614
+ }, qt = ["id"], Jt = ["aria-label"], Yt = { class: "g-search-group-label" }, Xt = [
1567
1615
  "id",
1568
1616
  "onMousedown",
1569
1617
  "aria-selected"
1570
- ], Xt = [
1618
+ ], Zt = [
1571
1619
  "id",
1572
1620
  "onMousedown",
1573
1621
  "aria-selected"
1574
- ], Zt = /* @__PURE__ */ u({
1622
+ ], Qt = /* @__PURE__ */ u({
1575
1623
  __name: "GSearch",
1576
1624
  props: /* @__PURE__ */ m({
1577
1625
  results: {},
@@ -1588,7 +1636,7 @@ var Mt = ["id"], Nt = {
1588
1636
  }),
1589
1637
  emits: /* @__PURE__ */ m(["select", "submit"], ["update:modelValue"]),
1590
1638
  setup(t, { emit: n }) {
1591
- let l = B(t, "modelValue"), u = t, d = n, f = D(null), p = D(null), m = D(!0), h = D(-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);
1639
+ 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);
1592
1640
  function b(e) {
1593
1641
  let t = e.target.value;
1594
1642
  l.value = t, u.auto && t.length > 1 && (m.value = !1);
@@ -1599,7 +1647,7 @@ var Mt = ["id"], Nt = {
1599
1647
  e && e.scrollIntoView({ block: "nearest" });
1600
1648
  });
1601
1649
  }
1602
- let { focused: S } = ie(f);
1650
+ let { focused: S } = ae(f);
1603
1651
  function C(e) {
1604
1652
  let t = e.altKey;
1605
1653
  if (e.key === "ArrowDown") {
@@ -1608,10 +1656,10 @@ var Mt = ["id"], Nt = {
1608
1656
  } else if (e.key === "ArrowUp") {
1609
1657
  if (!y.value) return;
1610
1658
  e.preventDefault(), m.value = !1, h.value = (h.value - 1 + y.value) % y.value, x();
1611
- } else if (e.key === "Enter") m.value ? (d("submit", l.value), m.value = !1, e.preventDefault()) : T(v.value[h.value]);
1659
+ } else if (e.key === "Enter") m.value ? (d("submit", l.value), m.value = !1, e.preventDefault()) : w(v.value[h.value]);
1612
1660
  else if (e.key === "Escape") {
1613
1661
  if (!y.value) return;
1614
- e.preventDefault(), A.value || (l.value = ""), m.value = !0, h.value = -1;
1662
+ e.preventDefault(), D.value || (l.value = ""), m.value = !0, h.value = -1;
1615
1663
  }
1616
1664
  [
1617
1665
  "Backspace",
@@ -1620,23 +1668,23 @@ var Mt = ["id"], Nt = {
1620
1668
  "Undo"
1621
1669
  ].includes(e.key) && (m.value = !0);
1622
1670
  }
1623
- function T(e) {
1671
+ function w(e) {
1624
1672
  d("select", e), l.value = "", m.value = !0, h.value = -1;
1625
1673
  }
1626
- let E = r(() => !!u.loading), A = r(() => S.value && !m.value), j = re(() => {
1674
+ let E = r(() => !!u.loading), D = r(() => S.value && !m.value), j = ie(() => {
1627
1675
  d("submit", l.value);
1628
1676
  }, 300);
1629
- G(() => l.value, (e) => {
1677
+ K(() => l.value, (e) => {
1630
1678
  e ? u.auto && j() : h.value = -1;
1631
1679
  });
1632
- let M = z();
1633
- return (t, n) => (w(), o("div", {
1680
+ let M = B();
1681
+ return (t, n) => (T(), o("div", {
1634
1682
  class: "g-search",
1635
1683
  role: "search",
1636
1684
  "aria-label": u.label
1637
1685
  }, [s("form", {
1638
1686
  class: "g-search-form",
1639
- onSubmit: n[0] ||= Y((e) => T(null), ["prevent"])
1687
+ onSubmit: n[0] ||= X((e) => w(null), ["prevent"])
1640
1688
  }, [s("input", {
1641
1689
  ref_key: "inputRef",
1642
1690
  ref: f,
@@ -1648,16 +1696,16 @@ var Mt = ["id"], Nt = {
1648
1696
  onInput: b,
1649
1697
  onKeydown: C,
1650
1698
  role: "combobox",
1651
- "aria-expanded": A.value,
1699
+ "aria-expanded": D.value,
1652
1700
  "aria-autocomplete": "list",
1653
- "aria-controls": `${L(M)}-list`,
1701
+ "aria-controls": `${R(M)}-list`,
1654
1702
  "aria-activedescendant": h.value >= 0 ? "g-search-option-" + v.value[h.value].id : void 0
1655
- }, null, 40, Ut), s("button", {
1703
+ }, null, 40, Wt), s("button", {
1656
1704
  type: "submit",
1657
1705
  class: "g-search-submit",
1658
1706
  "aria-label": "Submit search",
1659
1707
  onKeydown: C
1660
- }, [E.value ? (w(), i(Ct, {
1708
+ }, [E.value ? (T(), i(wt, {
1661
1709
  key: 0,
1662
1710
  size: "tiny"
1663
1711
  })) : a("", !0), n[1] ||= s("svg", {
@@ -1668,40 +1716,40 @@ var Mt = ["id"], Nt = {
1668
1716
  }, [s("path", {
1669
1717
  fill: "currentColor",
1670
1718
  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"
1671
- })], -1)], 32)], 32), A.value ? (w(), o("div", Wt, [s("div", Gt, [E.value ? a("", !0) : (w(), o(e, { key: 0 }, [c(N(y.value) + " result" + N(y.value === 1 ? "" : "s"), 1)], 64))]), s("div", {
1719
+ })], -1)], 32)], 32), D.value ? (T(), o("div", Gt, [s("div", Kt, [E.value ? a("", !0) : (T(), o(e, { key: 0 }, [c(P(y.value) + " result" + P(y.value === 1 ? "" : "s"), 1)], 64))]), s("div", {
1672
1720
  role: "listbox",
1673
- id: `${L(M)}-list`,
1721
+ id: `${R(M)}-list`,
1674
1722
  ref_key: "listboxRef",
1675
1723
  ref: p,
1676
1724
  "aria-label": "Search results"
1677
- }, [y.value > 0 && "items" in u.results[0] ? (w(!0), o(e, { key: 0 }, O(u.results, (n, r) => (w(), o("div", {
1725
+ }, [y.value > 0 && "items" in u.results[0] ? (T(!0), o(e, { key: 0 }, k(u.results, (n, r) => (T(), o("div", {
1678
1726
  key: n.type,
1679
1727
  class: "g-search-group",
1680
1728
  role: "group",
1681
1729
  "aria-label": n.label
1682
- }, [k(t.$slots, "group", { group: n }, () => [s("div", Jt, N(n.label), 1)]), (w(!0), o(e, null, O(n.items, (e, n) => (w(), o("div", {
1730
+ }, [A(t.$slots, "group", { group: n }, () => [s("div", Yt, P(n.label), 1)]), (T(!0), o(e, null, k(n.items, (e, n) => (T(), o("div", {
1683
1731
  key: e.id,
1684
1732
  id: "g-search-option-" + e.id,
1685
1733
  class: _(["g-search-option", { "g-search-option-active": v.value[h.value] && v.value[h.value].id === e.id }]),
1686
1734
  role: "option",
1687
- onMousedown: Y((t) => T(e), ["prevent"]),
1735
+ onMousedown: X((t) => w(e), ["prevent"]),
1688
1736
  "aria-selected": v.value[h.value] && v.value[h.value].id === e.id
1689
- }, [k(t.$slots, "option", { option: e }, () => [c(N(e.title), 1)])], 42, Yt))), 128))], 8, qt))), 128)) : y.value > 0 ? (w(!0), o(e, { key: 1 }, O(v.value, (e, n) => (w(), o("div", {
1737
+ }, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, Xt))), 128))], 8, Jt))), 128)) : y.value > 0 ? (T(!0), o(e, { key: 1 }, k(v.value, (e, n) => (T(), o("div", {
1690
1738
  key: e.id,
1691
1739
  id: "g-search-option-" + e.id,
1692
1740
  class: _(["g-search-option", { "g-search-option-active": h.value === n }]),
1693
1741
  role: "option",
1694
- onMousedown: Y((t) => T(e), ["prevent"]),
1742
+ onMousedown: X((t) => w(e), ["prevent"]),
1695
1743
  "aria-selected": h.value === n
1696
- }, [k(t.$slots, "option", { option: e }, () => [c(N(e.title), 1)])], 42, Xt))), 128)) : a("", !0)], 8, Kt)])) : a("", !0)], 8, Ht));
1744
+ }, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, Zt))), 128)) : a("", !0)], 8, qt)])) : a("", !0)], 8, Ut));
1697
1745
  }
1698
- }), Qt = { class: /* @__PURE__ */ _({ "g-app-header": !0 }) }, $t = { class: "g-app-header__brand" }, en = {
1746
+ }), $t = { class: /* @__PURE__ */ _({ "g-app-header": !0 }) }, en = { class: "g-app-header__brand" }, tn = {
1699
1747
  class: "g-app-header__brand-text",
1700
1748
  href: "/"
1701
- }, tn = {
1749
+ }, nn = {
1702
1750
  key: 0,
1703
1751
  class: "g-app-header__block-i-container"
1704
- }, nn = { class: "g-app-header__title" }, rn = { class: "g-app-header__app-controls-wrap" }, an = /* @__PURE__ */ u({
1752
+ }, rn = { class: "g-app-header__title" }, an = { class: "g-app-header__app-controls-wrap" }, on = /* @__PURE__ */ u({
1705
1753
  __name: "GAppHeader",
1706
1754
  props: {
1707
1755
  illinois: {
@@ -1711,10 +1759,10 @@ var Mt = ["id"], Nt = {
1711
1759
  brand: { default: "GRAD" }
1712
1760
  },
1713
1761
  setup(e) {
1714
- return (t, n) => (w(), o("header", Qt, [
1762
+ return (t, n) => (T(), o("header", $t, [
1715
1763
  n[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),
1716
- s("div", $t, [k(t.$slots, "left", {}, () => [s("a", en, N(e.brand), 1)])]),
1717
- e.illinois ? (w(), o("div", tn, [...n[0] ||= [s("svg", {
1764
+ s("div", en, [A(t.$slots, "left", {}, () => [s("a", tn, P(e.brand), 1)])]),
1765
+ e.illinois ? (T(), o("div", nn, [...n[0] ||= [s("svg", {
1718
1766
  class: "g-app-header__block-i",
1719
1767
  role: "img",
1720
1768
  width: "55",
@@ -1730,59 +1778,62 @@ var Mt = ["id"], Nt = {
1730
1778
  class: "g-app-header__block-i-fill",
1731
1779
  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"
1732
1780
  })
1733
- ], -1)]])) : k(t.$slots, "icon", { key: 1 }),
1734
- s("div", nn, [k(t.$slots, "title")]),
1735
- s("div", rn, [k(t.$slots, "app-controls", { class: "g-app-header__app-controls" })])
1781
+ ], -1)]])) : A(t.$slots, "icon", { key: 1 }),
1782
+ s("div", rn, [A(t.$slots, "title")]),
1783
+ s("div", an, [A(t.$slots, "app-controls", { class: "g-app-header__app-controls" })])
1736
1784
  ]));
1737
1785
  }
1738
1786
  });
1739
1787
  //#endregion
1740
1788
  //#region src/compose/useWebComponentSidebar.ts
1741
- function on(e) {
1789
+ function sn(e) {
1742
1790
  return e.replace(/[^a-zA-Z0-9_-]/g, "-");
1743
1791
  }
1744
- function sn() {
1792
+ function cn() {
1745
1793
  let e = globalThis;
1746
1794
  return e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__;
1747
1795
  }
1748
- function cn(e = "default", t = "(max-width: 800px)") {
1749
- let n = sn(), r = e || "default";
1796
+ function ln(e = "default", t) {
1797
+ let n = cn(), r = e || "default", i = typeof t == "string" ? t : t?.value, a = i && i.trim() ? i : "(max-width: 800px)";
1750
1798
  if (!n.has(r)) {
1751
- let e = on(r);
1799
+ let e = sn(r), t = O(a);
1752
1800
  n.set(r, {
1753
1801
  id: `g-wc-sidebar-${e}`,
1754
- open: D(!1),
1755
- isCollapsible: oe(t, { ssrWidth: 1e3 }),
1802
+ open: O(!1),
1803
+ breakpoint: t,
1804
+ isCollapsible: se(t, { ssrWidth: 1e3 }),
1756
1805
  toggle: () => void 0
1757
1806
  });
1758
1807
  }
1759
- let i = n.get(r);
1760
- i.toggle = () => i.open.value = !i.open.value;
1761
- function a(e) {
1762
- if (!i.isCollapsible.value || !i.open.value) return;
1763
- let t = e.target, n = document.getElementById(`${i.id}-sidebar`);
1808
+ let o = n.get(r);
1809
+ o.toggle = () => o.open.value = !o.open.value, typeof t == "string" ? t.trim() && (o.breakpoint.value = t) : t && K(t, (e) => {
1810
+ e && e.trim() && (o.breakpoint.value = e);
1811
+ }, { immediate: !0 });
1812
+ function s(e) {
1813
+ if (!o.isCollapsible.value || !o.open.value) return;
1814
+ let t = e.target, n = document.getElementById(`${o.id}-sidebar`);
1764
1815
  n && (n.contains(t) || setTimeout(() => {
1765
- i.open.value = !1;
1816
+ o.open.value = !1;
1766
1817
  }, 5));
1767
1818
  }
1768
- function o(e) {
1769
- if (!i.isCollapsible.value || !i.open.value) return;
1770
- let t = e.target, n = document.getElementById(`${i.id}-sidebar`), r = document.getElementById(`${i.id}-hamburger`);
1819
+ function c(e) {
1820
+ if (!o.isCollapsible.value || !o.open.value) return;
1821
+ let t = e.target, n = document.getElementById(`${o.id}-sidebar`), r = document.getElementById(`${o.id}-hamburger`);
1771
1822
  n && (n.contains(t) || r?.contains(t) || setTimeout(() => {
1772
- i.open.value = !1;
1823
+ o.open.value = !1;
1773
1824
  }, 5));
1774
1825
  }
1775
1826
  return S(() => {
1776
- G(i.isCollapsible, (e) => {
1777
- e ? (document.addEventListener("mousedown", a), document.addEventListener("focusin", o)) : (document.removeEventListener("mousedown", a), document.removeEventListener("focusin", o));
1827
+ K(o.isCollapsible, (e) => {
1828
+ e ? (document.addEventListener("mousedown", s), document.addEventListener("focusin", c)) : (document.removeEventListener("mousedown", s), document.removeEventListener("focusin", c));
1778
1829
  }, { immediate: !0 });
1779
1830
  }), x(() => {
1780
- document.removeEventListener("mousedown", a), document.removeEventListener("focusin", o);
1781
- }), i;
1831
+ document.removeEventListener("mousedown", s), document.removeEventListener("focusin", c);
1832
+ }), o;
1782
1833
  }
1783
1834
  //#endregion
1784
1835
  //#region src/components/GSidebar.vue?vue&type=script&setup=true&lang.ts
1785
- var ln = ["id"], un = /* @__PURE__ */ u({
1836
+ var un = ["id"], dn = /* @__PURE__ */ u({
1786
1837
  __name: "GSidebar",
1787
1838
  props: {
1788
1839
  backgroundColor: { default: "" },
@@ -1791,20 +1842,21 @@ var ln = ["id"], un = /* @__PURE__ */ u({
1791
1842
  topOffset: { default: "" },
1792
1843
  topOffsetVar: { default: "" },
1793
1844
  width: { default: "300px" },
1794
- sidebarKey: { default: "default" }
1845
+ sidebarKey: { default: "default" },
1846
+ mediaQuery: {}
1795
1847
  },
1796
1848
  setup(e) {
1797
- let t = e, n = p("sidebar", () => void 0, !0) ?? (de() ? cn(t.sidebarKey) : void 0), i = r(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "url('https://gradcdn.blob.core.windows.net/public/sidebar-bg2.jpg')"), a = r(() => t.backgroundColor ? t.backgroundColor : t.theme === "light" ? "#f9f9f9" : "#030913"), s = r(() => t.topOffsetVar ? `var(${t.topOffsetVar})` : t.topOffset ? t.topOffset : "var(--g-toolbar-height)"), c = z();
1849
+ let t = e, n = p("sidebar", () => void 0, !0) ?? (fe() ? ln(t.sidebarKey, I(t, "mediaQuery")) : void 0), i = r(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "url('https://gradcdn.blob.core.windows.net/public/sidebar-bg2.jpg')"), a = r(() => t.backgroundColor ? t.backgroundColor : t.theme === "light" ? "#f9f9f9" : "#030913"), s = r(() => t.topOffsetVar ? `var(${t.topOffsetVar})` : t.topOffset ? t.topOffset : "var(--g-toolbar-height)"), c = B();
1798
1850
  function l(e) {
1799
1851
  e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
1800
1852
  }
1801
- return (t, r) => (w(), o("div", {
1853
+ return (t, r) => (T(), o("div", {
1802
1854
  ref: "sidebar-ref",
1803
- id: `${L(n)?.id ?? L(c)}-sidebar`,
1855
+ id: `${R(n)?.id ?? R(c)}-sidebar`,
1804
1856
  class: _(["g-sidebar", [`g-sidebar__${e.theme}`, {
1805
- "g-sidebar--collapsible": L(n)?.isCollapsible?.value,
1806
- "g-sidebar--closed": !L(n)?.open?.value && L(n)?.isCollapsible?.value,
1807
- "g-sidebar--open": L(n)?.open?.value && L(n)?.isCollapsible?.value
1857
+ "g-sidebar--collapsible": R(n)?.isCollapsible?.value,
1858
+ "g-sidebar--closed": !R(n)?.open?.value && R(n)?.isCollapsible?.value,
1859
+ "g-sidebar--open": R(n)?.open?.value && R(n)?.isCollapsible?.value
1808
1860
  }]]),
1809
1861
  style: y({
1810
1862
  backgroundImage: i.value,
@@ -1814,13 +1866,13 @@ var ln = ["id"], un = /* @__PURE__ */ u({
1814
1866
  width: "var(--g-sidebar-width)"
1815
1867
  }),
1816
1868
  onKeydown: l
1817
- }, [k(t.$slots, "default")], 46, ln));
1869
+ }, [A(t.$slots, "default")], 46, un));
1818
1870
  }
1819
- }), dn = ["id"], fn = { class: "g-sidebar-menu__list" }, pn = [
1871
+ }), fn = ["id"], pn = { class: "g-sidebar-menu__list" }, mn = [
1820
1872
  "href",
1821
1873
  "aria-current",
1822
1874
  "onClick"
1823
- ], mn = /* @__PURE__ */ u({
1875
+ ], hn = /* @__PURE__ */ u({
1824
1876
  __name: "GSidebarMenu",
1825
1877
  props: /* @__PURE__ */ m({
1826
1878
  heading: {},
@@ -1844,9 +1896,9 @@ var ln = ["id"], un = /* @__PURE__ */ u({
1844
1896
  }),
1845
1897
  emits: ["update:modelValue"],
1846
1898
  setup(t) {
1847
- let n = t, l = B(t, "modelValue"), u = r(() => n.spy && l.value ? "#" + l.value : null), f = H("content");
1899
+ let n = t, l = V(t, "modelValue"), u = r(() => n.spy && l.value ? "#" + l.value : null), f = U("content");
1848
1900
  S(() => {
1849
- G(l, () => {
1901
+ K(l, () => {
1850
1902
  g(() => {
1851
1903
  let e = f.value?.querySelector(".g-sidebar-menu__is-active");
1852
1904
  e && e.scrollIntoView({ block: "nearest" });
@@ -1859,57 +1911,57 @@ var ln = ["id"], un = /* @__PURE__ */ u({
1859
1911
  let n = t.href.slice(1), r = document.getElementById(n)?.querySelector("h2, h3, h4, h5");
1860
1912
  r && (e.preventDefault(), r.setAttribute("tabindex", "-1"), r.focus(), r.scrollIntoView({ block: "start" }), history.replaceState(null, "", t.href));
1861
1913
  }
1862
- let y = z();
1863
- return (r, l) => (w(), o("nav", h({ class: ["g-sidebar-menu", [`g-sidebar-menu__${n.theme}`, { "g-sidebar-menu--compact": n.compact }]] }, {
1864
- "aria-labelledby": t.heading ? L(y) : void 0,
1914
+ let y = B();
1915
+ return (r, l) => (T(), o("nav", h({ class: ["g-sidebar-menu", [`g-sidebar-menu__${n.theme}`, { "g-sidebar-menu--compact": n.compact }]] }, {
1916
+ "aria-labelledby": t.heading ? R(y) : void 0,
1865
1917
  "aria-label": t.heading ? void 0 : "Sidebar Menu"
1866
1918
  }), [
1867
- t.heading ? (w(), o("h2", {
1919
+ t.heading ? (T(), o("h2", {
1868
1920
  key: 0,
1869
- id: L(y),
1921
+ id: R(y),
1870
1922
  class: "g-sidebar-menu__title"
1871
- }, N(t.heading), 9, dn)) : a("", !0),
1923
+ }, P(t.heading), 9, fn)) : a("", !0),
1872
1924
  l[0] ||= s("div", { class: "g-sidebar-menu__divider" }, null, -1),
1873
1925
  s("div", {
1874
1926
  class: "g-sidebar-menu__content",
1875
1927
  ref_key: "content",
1876
1928
  ref: f
1877
- }, [s("ul", fn, [(w(!0), o(e, null, O(t.items, (e) => (w(), o("li", {
1929
+ }, [s("ul", pn, [(T(!0), o(e, null, k(t.items, (e) => (T(), o("li", {
1878
1930
  key: e.href || e.to,
1879
1931
  class: "g-sidebar-menu__item",
1880
1932
  ref_for: !0,
1881
1933
  ref: "listItems"
1882
- }, [e.to && m.value ? (w(), i(A(m.value), {
1934
+ }, [e.to && m.value ? (T(), i(j(m.value), {
1883
1935
  key: 0,
1884
1936
  class: "g-sidebar-menu__link",
1885
1937
  to: e.to
1886
1938
  }, {
1887
- default: q(() => [c(N(e.label), 1)]),
1939
+ default: J(() => [c(P(e.label), 1)]),
1888
1940
  _: 2
1889
- }, 1032, ["to"])) : (w(), o("a", {
1941
+ }, 1032, ["to"])) : (T(), o("a", {
1890
1942
  key: 1,
1891
1943
  class: _(["g-sidebar-menu__link", { "g-sidebar-menu__is-active": u.value === (e.href || "") }]),
1892
1944
  href: e.href || e.to || "#",
1893
1945
  "aria-current": u.value === (e.href || "") ? "location" : void 0,
1894
1946
  onClick: (t) => v(t, e)
1895
- }, N(e.label), 11, pn))]))), 128))])], 512)
1947
+ }, P(e.label), 11, mn))]))), 128))])], 512)
1896
1948
  ], 16));
1897
1949
  }
1898
- }), hn = {
1950
+ }), gn = {
1899
1951
  mounted(e, t) {
1900
- let n = D(null), r = D(!1), i = D(!1), a = D(t.value), o = null, s = !1, c = ot(e), l = () => {
1901
- n.value || (n.value = st(a.value, c), ct(n.value), o = new ResizeObserver(() => {
1902
- n.value && (r.value || i.value) && lt(e, n.value);
1952
+ let n = O(null), r = O(!1), i = O(!1), a = O(t.value), o = null, s = !1, c = st(e), l = () => {
1953
+ n.value || (n.value = ct(a.value, c), lt(n.value), o = new ResizeObserver(() => {
1954
+ n.value && (r.value || i.value) && ut(e, n.value);
1903
1955
  }), o.observe(n.value));
1904
1956
  };
1905
- K(() => {
1957
+ q(() => {
1906
1958
  n.value && (n.value.textContent = a.value);
1907
1959
  });
1908
1960
  let u = () => {
1909
- n.value && (r.value || i.value) && lt(e, n.value);
1961
+ n.value && (r.value || i.value) && ut(e, n.value);
1910
1962
  };
1911
- K(() => {
1912
- r.value || i.value ? (l(), n.value && lt(e, n.value), s ||= (window.addEventListener("scroll", u, { capture: !0 }), !0)) : (s &&= (window.removeEventListener("scroll", u, { capture: !0 }), !1), n.value && (ut(n.value), setTimeout(() => {
1963
+ q(() => {
1964
+ r.value || i.value ? (l(), n.value && ut(e, n.value), s ||= (window.addEventListener("scroll", u, { capture: !0 }), !0)) : (s &&= (window.removeEventListener("scroll", u, { capture: !0 }), !1), n.value && (dt(n.value), setTimeout(() => {
1913
1965
  e.dispatchEvent(new CustomEvent("tooltip-hide"));
1914
1966
  }, 150)));
1915
1967
  });
@@ -1947,7 +1999,7 @@ var ln = ["id"], un = /* @__PURE__ */ u({
1947
1999
  let t = e._v_gtooltip;
1948
2000
  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");
1949
2001
  }
1950
- }, gn = { class: "g-clipboard-text" }, _n = /* @__PURE__ */ u({
2002
+ }, _n = { class: "g-clipboard-text" }, vn = /* @__PURE__ */ u({
1951
2003
  __name: "GClipboard",
1952
2004
  props: {
1953
2005
  text: {},
@@ -1955,12 +2007,12 @@ var ln = ["id"], un = /* @__PURE__ */ u({
1955
2007
  copyLabel: {}
1956
2008
  },
1957
2009
  setup(t) {
1958
- let n = t, r = hn, { text: i, copy: l, copied: u, isSupported: d } = ne({ source: n.text }), f = D(n.copyLabel ?? "Copy to clipboard"), p = () => {
2010
+ let n = t, r = gn, { text: i, copy: l, copied: u, isSupported: d } = re({ source: n.text }), f = O(n.copyLabel ?? "Copy to clipboard"), p = () => {
1959
2011
  d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
1960
2012
  }, m = () => {
1961
2013
  f.value = n.copyLabel ?? "Copy to clipboard";
1962
2014
  };
1963
- return (i, l) => (w(), o("div", gn, [t.hideText ? a("", !0) : (w(), o(e, { key: 0 }, [c(N(n.text), 1)], 64)), J((w(), o("button", {
2015
+ return (i, l) => (T(), o("div", _n, [t.hideText ? a("", !0) : (T(), o(e, { key: 0 }, [c(P(n.text), 1)], 64)), Y((T(), o("button", {
1964
2016
  type: "button",
1965
2017
  "aria-label": "Copy",
1966
2018
  onClick: p,
@@ -1975,24 +2027,24 @@ var ln = ["id"], un = /* @__PURE__ */ u({
1975
2027
  }, [s("path", {
1976
2028
  fill: "currentColor",
1977
2029
  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"
1978
- })], -1)]], 32)), [[L(r), f.value]])]));
2030
+ })], -1)]], 32)), [[R(r), f.value]])]));
1979
2031
  }
1980
- }), vn = { class: "g-history-scroller-wrapper" }, yn = {
2032
+ }), yn = { class: "g-history-scroller-wrapper" }, bn = {
1981
2033
  key: 0,
1982
2034
  class: "g-history-shadow g-history-shadow--top",
1983
2035
  "aria-hidden": "true"
1984
- }, bn = {
2036
+ }, xn = {
1985
2037
  key: 1,
1986
2038
  class: "g-history-shadow g-history-shadow--bottom",
1987
2039
  "aria-hidden": "true"
1988
- }, xn = ["role", "aria-label"], Sn = /* @__PURE__ */ u({
2040
+ }, Sn = ["role", "aria-label"], Cn = /* @__PURE__ */ u({
1989
2041
  __name: "GHistoryScroller",
1990
2042
  props: {
1991
2043
  label: {},
1992
2044
  entries: { default: () => [] }
1993
2045
  },
1994
2046
  setup(t) {
1995
- let n = t, i = D(null), c = D(null), u = D(!0), d = D(!0);
2047
+ let n = t, i = O(null), c = O(null), u = O(!0), d = O(!0);
1996
2048
  async function f({ focusLast: e = !1 } = {}) {
1997
2049
  if (i.value && (i.value.scrollTop = i.value.scrollHeight), e && c.value) {
1998
2050
  let e = c.value.querySelectorAll(".g-history-entry");
@@ -2009,17 +2061,17 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2009
2061
  }
2010
2062
  S(() => {
2011
2063
  g(f);
2012
- }), ce(i, () => {
2064
+ }), le(i, () => {
2013
2065
  u.value && f();
2014
- }), ce(c, () => {
2066
+ }), le(c, () => {
2015
2067
  u.value && f();
2016
- }), G(() => n.entries, async () => {
2068
+ }), K(() => n.entries, async () => {
2017
2069
  u.value && (await g(), f());
2018
2070
  });
2019
2071
  let m = r(() => [...n.entries].reverse());
2020
- return (n, r) => (w(), o("div", vn, [
2021
- d.value ? a("", !0) : (w(), o("div", yn)),
2022
- u.value ? a("", !0) : (w(), o("div", bn)),
2072
+ return (n, r) => (T(), o("div", yn, [
2073
+ d.value ? a("", !0) : (T(), o("div", bn)),
2074
+ u.value ? a("", !0) : (T(), o("div", xn)),
2023
2075
  s("div", {
2024
2076
  ref_key: "scrollerRef",
2025
2077
  ref: i,
@@ -2034,7 +2086,7 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2034
2086
  onClick: r[0] ||= () => f({ focusLast: !0 }),
2035
2087
  "aria-label": "Jump to Latest"
2036
2088
  }, {
2037
- default: q(() => [...r[1] ||= [s("svg", {
2089
+ default: J(() => [...r[1] ||= [s("svg", {
2038
2090
  "aria-hidden": "true",
2039
2091
  xmlns: "http://www.w3.org/2000/svg",
2040
2092
  viewBox: "0 0 640 640",
@@ -2049,36 +2101,36 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2049
2101
  ref_key: "contentRef",
2050
2102
  ref: c,
2051
2103
  class: "g-history-list"
2052
- }, [(w(!0), o(e, null, O(m.value, (e) => (w(), o("div", {
2104
+ }, [(T(!0), o(e, null, k(m.value, (e) => (T(), o("div", {
2053
2105
  role: "listitem",
2054
2106
  key: e.id,
2055
2107
  class: "g-history-entry",
2056
2108
  tabindex: "-1"
2057
- }, [k(n.$slots, "default", { entry: e })]))), 128))], 512)], 40, xn)
2109
+ }, [A(n.$slots, "default", { entry: e })]))), 128))], 512)], 40, Sn)
2058
2110
  ]));
2059
2111
  }
2060
- }), Cn = { class: "g-three-way-toggle-wrapper" }, wn = { class: "g-three-way-toggle-control" }, Tn = ["id"], En = [
2112
+ }), wn = { class: "g-three-way-toggle-wrapper" }, Tn = { class: "g-three-way-toggle-control" }, En = ["id"], Dn = [
2061
2113
  "aria-labelledby",
2062
2114
  "aria-describedby",
2063
2115
  "disabled",
2064
2116
  "aria-invalid",
2065
2117
  "aria-errormessage"
2066
- ], Dn = { key: 0 }, On = { key: 1 }, kn = { key: 2 }, An = ["for"], jn = [
2118
+ ], On = { key: 0 }, kn = { key: 1 }, An = { key: 2 }, jn = ["for"], Mn = [
2067
2119
  "id",
2068
2120
  "name",
2069
2121
  "checked",
2070
2122
  "disabled"
2071
- ], Mn = ["for"], Nn = [
2123
+ ], Nn = ["for"], Pn = [
2072
2124
  "id",
2073
2125
  "name",
2074
2126
  "checked",
2075
2127
  "disabled"
2076
- ], Pn = ["for"], Fn = [
2128
+ ], Fn = ["for"], In = [
2077
2129
  "id",
2078
2130
  "name",
2079
2131
  "checked",
2080
2132
  "disabled"
2081
- ], In = ["id"], Ln = /* @__PURE__ */ u({
2133
+ ], Ln = ["id"], Rn = /* @__PURE__ */ u({
2082
2134
  __name: "GThreeWayToggle",
2083
2135
  props: /* @__PURE__ */ m({
2084
2136
  label: {},
@@ -2094,7 +2146,7 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2094
2146
  }),
2095
2147
  emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
2096
2148
  setup(e, { emit: t }) {
2097
- let n = e, i = B(e, "modelValue"), l = t;
2149
+ let n = e, i = V(e, "modelValue"), l = t;
2098
2150
  function u(e) {
2099
2151
  let t = i.value;
2100
2152
  i.value = e, e !== t && l("change", {
@@ -2108,112 +2160,112 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2108
2160
  function f(e) {
2109
2161
  n.disabled || i.value === e && u(null);
2110
2162
  }
2111
- let p = z(), m = r(() => `g-three-way-toggle-${p}`), h = z(), g = z(), v = z(), y = r(() => i.value === !1 ? "g-left" : i.value === !0 ? "g-right" : "g-center");
2163
+ let p = B(), m = r(() => `g-three-way-toggle-${p}`), h = B(), g = B(), v = B(), y = r(() => i.value === !1 ? "g-left" : i.value === !0 ? "g-right" : "g-center");
2112
2164
  function b(e) {
2113
2165
  n.disabled || (e.key === "n" || e.key === "N" ? (u(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y") && (u(!0), e.preventDefault()));
2114
2166
  }
2115
- return (t, n) => (w(), o("div", Cn, [s("div", wn, [s("span", {
2167
+ return (t, n) => (T(), o("div", wn, [s("div", Tn, [s("span", {
2116
2168
  class: "g-label",
2117
- id: L(p)
2118
- }, [k(t.$slots, "label", {}, () => [c(N(e.label), 1)])], 8, Tn), s("fieldset", {
2169
+ id: R(p)
2170
+ }, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, En), s("fieldset", {
2119
2171
  class: _(["g-three-way-toggle", { "g-has-error": e.error }]),
2120
2172
  role: "radiogroup",
2121
- "aria-labelledby": L(p),
2173
+ "aria-labelledby": R(p),
2122
2174
  "aria-describedby": e.describedby,
2123
2175
  disabled: e.disabled,
2124
2176
  "aria-invalid": e.error ? "true" : void 0,
2125
- "aria-errormessage": e.error ? L(p) + "-error" : void 0
2177
+ "aria-errormessage": e.error ? R(p) + "-error" : void 0
2126
2178
  }, [s("div", { class: _(["g-toggle-track", [y.value, { "g-disabled": e.disabled }]]) }, [
2127
2179
  s("span", {
2128
2180
  class: _(["g-toggle-thumb", y.value]),
2129
2181
  "aria-hidden": "true"
2130
- }, [i.value === !1 ? (w(), o("span", Dn, "NO")) : i.value === !0 ? (w(), o("span", On, "YES")) : (w(), o("span", kn))], 2),
2182
+ }, [i.value === !1 ? (T(), o("span", On, "NO")) : i.value === !0 ? (T(), o("span", kn, "YES")) : (T(), o("span", An))], 2),
2131
2183
  s("label", {
2132
- for: L(h),
2184
+ for: R(h),
2133
2185
  class: "g-toggle-option g-left",
2134
2186
  onClick: n[1] ||= (e) => f(!1),
2135
2187
  onKeydown: b
2136
2188
  }, [s("input", {
2137
2189
  type: "radio",
2138
- id: L(h),
2190
+ id: R(h),
2139
2191
  name: m.value,
2140
2192
  checked: i.value === !1,
2141
2193
  value: "false",
2142
2194
  disabled: e.disabled,
2143
2195
  onChange: n[0] ||= (e) => d(!1)
2144
- }, null, 40, jn), n[5] ||= s("span", { class: "ilw-sr-only" }, "No", -1)], 40, An),
2196
+ }, null, 40, Mn), n[5] ||= s("span", { class: "ilw-sr-only" }, "No", -1)], 40, jn),
2145
2197
  s("label", {
2146
- for: L(g),
2198
+ for: R(g),
2147
2199
  class: "g-toggle-option g-center",
2148
2200
  onKeydown: b
2149
2201
  }, [s("input", {
2150
2202
  type: "radio",
2151
- id: L(g),
2203
+ id: R(g),
2152
2204
  name: m.value,
2153
2205
  checked: i.value === null,
2154
2206
  disabled: e.disabled,
2155
2207
  onChange: n[2] ||= (e) => d(null)
2156
- }, null, 40, Nn), n[6] ||= s("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, Mn),
2208
+ }, null, 40, Pn), n[6] ||= s("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, Nn),
2157
2209
  s("label", {
2158
- for: L(v),
2210
+ for: R(v),
2159
2211
  class: "g-toggle-option g-right",
2160
2212
  onClick: n[4] ||= (e) => f(!0),
2161
2213
  onKeydown: b
2162
2214
  }, [s("input", {
2163
2215
  type: "radio",
2164
- id: L(v),
2216
+ id: R(v),
2165
2217
  name: m.value,
2166
2218
  value: "true",
2167
2219
  checked: i.value === !0,
2168
2220
  disabled: e.disabled,
2169
2221
  onChange: n[3] ||= (e) => d(!0)
2170
- }, null, 40, Fn), n[7] ||= s("span", { class: "ilw-sr-only" }, "Yes", -1)], 40, Pn)
2171
- ], 2)], 10, En)]), e.error ? (w(), o("div", {
2222
+ }, null, 40, In), n[7] ||= s("span", { class: "ilw-sr-only" }, "Yes", -1)], 40, Fn)
2223
+ ], 2)], 10, Dn)]), e.error ? (T(), o("div", {
2172
2224
  key: 0,
2173
- id: `${L(p)}-error`,
2225
+ id: `${R(p)}-error`,
2174
2226
  class: "g-form-error",
2175
2227
  role: "alert",
2176
2228
  "aria-atomic": "true"
2177
- }, N(e.error), 9, In)) : a("", !0)]));
2229
+ }, P(e.error), 9, Ln)) : a("", !0)]));
2178
2230
  }
2179
- }), Rn = {
2231
+ }), zn = {
2180
2232
  ref: "tableBodyRef",
2181
2233
  class: "efficient-table-body"
2182
- }, zn = ["aria-rowindex"], Bn = {
2234
+ }, Bn = ["aria-rowindex"], Vn = {
2183
2235
  key: 0,
2184
2236
  class: "table-group-checkbox"
2185
- }, Vn = ["colspan"], Hn = [
2237
+ }, Hn = ["colspan"], Un = [
2186
2238
  "aria-rowindex",
2187
2239
  "onMousedown",
2188
2240
  "onClick"
2189
- ], Un = [
2241
+ ], Wn = [
2190
2242
  "checked",
2191
2243
  "onClick",
2192
2244
  "aria-label",
2193
2245
  "name"
2194
- ], Wn = ["id"], Gn = {
2246
+ ], Gn = ["id"], Kn = {
2195
2247
  key: 0,
2196
2248
  class: "editable-cell"
2197
- }, Kn = {
2249
+ }, qn = {
2198
2250
  key: 0,
2199
2251
  class: "cell-prefix"
2200
- }, qn = [
2252
+ }, Jn = [
2201
2253
  "value",
2202
2254
  "onChange",
2203
2255
  "aria-labelledby",
2204
2256
  "aria-invalid",
2205
2257
  "name"
2206
- ], Jn = ["value"], Yn = [
2258
+ ], Yn = ["value"], Xn = [
2207
2259
  "value",
2208
2260
  "onInput",
2209
2261
  "aria-labelledby",
2210
2262
  "aria-invalid",
2211
2263
  "aria-errormessage",
2212
2264
  "name"
2213
- ], Xn = {
2265
+ ], Zn = {
2214
2266
  key: 3,
2215
2267
  class: "cell-suffix"
2216
- }, Zn = ["id"], Qn = /* @__PURE__ */ u({
2268
+ }, Qn = ["id"], $n = /* @__PURE__ */ u({
2217
2269
  __name: "GTableBody",
2218
2270
  props: {
2219
2271
  data: {},
@@ -2282,13 +2334,13 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2282
2334
  function C(e, t) {
2283
2335
  if (l.changeTracker) return l.changeTracker.getError(e.key, t.key);
2284
2336
  }
2285
- return (n, r) => (w(), o("tbody", Rn, [(w(!0), o(e, null, O(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", {
2337
+ return (n, r) => (T(), o("tbody", zn, [(T(!0), o(e, null, k(t.data, (n, l) => (T(), o(e, { key: n.key }, [t.groupBy && (l === 0 || n[t.groupBy] !== t.data[l - 1][t.groupBy]) ? (T(), o("tr", {
2286
2338
  key: 0,
2287
2339
  "aria-rowindex": t.startIndex + l + 2
2288
- }, [t.bulkSelectionEnabled ? (w(), o("td", Bn)) : a("", !0), s("td", {
2340
+ }, [t.bulkSelectionEnabled ? (T(), o("td", Vn)) : a("", !0), s("td", {
2289
2341
  colspan: t.columns.length,
2290
2342
  class: "table-group-row"
2291
- }, [t.groupRender ? (w(), i(A(t.groupRender(n[t.groupBy], n)), { key: 0 })) : (w(), o(e, { key: 1 }, [c(N(n[t.groupBy]), 1)], 64))], 8, Vn)], 8, zn)) : a("", !0), s("tr", {
2343
+ }, [t.groupRender ? (T(), i(j(t.groupRender(n[t.groupBy], n)), { key: 0 })) : (T(), o(e, { key: 1 }, [c(P(n[t.groupBy]), 1)], 64))], 8, Hn)], 8, Bn)) : a("", !0), s("tr", {
2292
2344
  class: _([
2293
2345
  "efficient-table-row",
2294
2346
  {
@@ -2300,10 +2352,10 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2300
2352
  "aria-rowindex": t.startIndex + l + 2,
2301
2353
  onMousedown: (e) => d(e, n.key),
2302
2354
  onClick: (e) => f(e, n.key)
2303
- }, [t.bulkSelectionEnabled ? (w(), o("td", {
2355
+ }, [t.bulkSelectionEnabled ? (T(), o("td", {
2304
2356
  key: 0,
2305
2357
  class: "td-checkbox",
2306
- onClick: r[0] ||= Y(() => {}, ["stop"])
2358
+ onClick: r[0] ||= X(() => {}, ["stop"])
2307
2359
  }, [s("input", {
2308
2360
  type: "checkbox",
2309
2361
  checked: p(n.key),
@@ -2311,7 +2363,7 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2311
2363
  "aria-label": `Select row ${n.key}`,
2312
2364
  name: `row-${n.key}-checkbox`,
2313
2365
  class: "g-bulk-select-checkbox"
2314
- }, null, 8, Un)])) : a("", !0), (w(!0), o(e, null, O(t.columns, (r) => (w(), o("td", {
2366
+ }, null, 8, Wn)])) : a("", !0), (T(!0), o(e, null, k(t.columns, (r) => (T(), o("td", {
2315
2367
  key: r.key,
2316
2368
  id: b(r) ? `${t.tableId}-td-${n.key}-${String(r.key)}` : void 0,
2317
2369
  class: _([
@@ -2320,9 +2372,9 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2320
2372
  S(n, r) ? "g-cell-error" : "",
2321
2373
  typeof r.tdClass == "function" ? r.tdClass(n) : r.tdClass
2322
2374
  ])
2323
- }, [r.editable ? (w(), o("div", Gn, [
2324
- r.editable.prefix ? (w(), o("span", Kn, N(r.editable.prefix), 1)) : a("", !0),
2325
- r.editable.type === "select" ? (w(), o("select", {
2375
+ }, [r.editable ? (T(), o("div", Kn, [
2376
+ r.editable.prefix ? (T(), o("span", qn, P(r.editable.prefix), 1)) : a("", !0),
2377
+ r.editable.type === "select" ? (T(), o("select", {
2326
2378
  key: 1,
2327
2379
  value: n[r.key],
2328
2380
  onChange: (e) => g(e, n, r),
@@ -2330,10 +2382,10 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2330
2382
  "aria-invalid": S(n, r),
2331
2383
  name: `row-${n.key}-${String(r.key)}-select`,
2332
2384
  class: "editable-input editable-select"
2333
- }, [(w(!0), o(e, null, O(r.editable.options, (e) => (w(), o("option", {
2385
+ }, [(T(!0), o(e, null, k(r.editable.options, (e) => (T(), o("option", {
2334
2386
  key: e.value,
2335
2387
  value: e.value
2336
- }, N(e.label), 9, Jn))), 128))], 40, qn)) : (w(), o("input", h({
2388
+ }, P(e.label), 9, Yn))), 128))], 40, Jn)) : (T(), o("input", h({
2337
2389
  key: 2,
2338
2390
  value: n[r.key]
2339
2391
  }, { ref_for: !0 }, r.editable.inputAttributes, {
@@ -2347,24 +2399,24 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2347
2399
  paddingLeft: r.editable.prefix ? "1.5rem" : void 0,
2348
2400
  paddingRight: r.editable.suffix ? "2rem" : void 0
2349
2401
  }
2350
- }), null, 16, Yn)),
2351
- r.editable.suffix ? (w(), o("span", Xn, N(r.editable.suffix), 1)) : a("", !0)
2352
- ])) : r.display ? (w(), i(A(r.display(n)), { key: 1 })) : (w(), o(e, { key: 2 }, [c(N(n[r.key]), 1)], 64)), S(n, r) ? (w(), o("div", {
2402
+ }), null, 16, Xn)),
2403
+ r.editable.suffix ? (T(), o("span", Zn, P(r.editable.suffix), 1)) : a("", !0)
2404
+ ])) : r.display ? (T(), i(j(r.display(n)), { key: 1 })) : (T(), o(e, { key: 2 }, [c(P(n[r.key]), 1)], 64)), S(n, r) ? (T(), o("div", {
2353
2405
  key: 3,
2354
2406
  role: "alert",
2355
2407
  class: "g-cell-error-message",
2356
2408
  id: `${t.tableId}-error-${n.key}-${String(r.key)}`
2357
- }, N(C(n, r)), 9, Zn)) : a("", !0)], 10, Wn))), 128))], 42, Hn)], 64))), 128))], 512));
2409
+ }, P(C(n, r)), 9, Qn)) : a("", !0)], 10, Gn))), 128))], 42, Un)], 64))), 128))], 512));
2358
2410
  }
2359
- }), $n = ["id", "for"], er = {
2411
+ }), er = ["id", "for"], tr = {
2360
2412
  key: 0,
2361
2413
  class: "g-multiselect-required",
2362
2414
  "aria-hidden": "true"
2363
- }, tr = ["id"], nr = ["aria-labelledby"], rr = { class: "g-multiselect-chip-label" }, ir = [
2415
+ }, nr = ["id"], rr = ["aria-labelledby"], ir = { class: "g-multiselect-chip-label" }, ar = [
2364
2416
  "aria-label",
2365
2417
  "disabled",
2366
2418
  "onClick"
2367
- ], ar = [
2419
+ ], or = [
2368
2420
  "id",
2369
2421
  "value",
2370
2422
  "placeholder",
@@ -2374,23 +2426,23 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2374
2426
  "aria-activedescendant",
2375
2427
  "aria-describedby",
2376
2428
  "aria-required"
2377
- ], or = ["id"], sr = [
2429
+ ], sr = ["id"], cr = [
2378
2430
  "id",
2379
2431
  "aria-selected",
2380
2432
  "onClick"
2381
- ], cr = {
2433
+ ], lr = {
2382
2434
  class: "g-multiselect-option-check",
2383
2435
  "aria-hidden": "true"
2384
- }, lr = {
2436
+ }, ur = {
2385
2437
  key: 0,
2386
2438
  xmlns: "http://www.w3.org/2000/svg",
2387
2439
  viewBox: "0 0 640 640",
2388
2440
  width: "1.25em"
2389
- }, ur = {
2441
+ }, dr = {
2390
2442
  key: 1,
2391
2443
  "aria-live": "polite",
2392
2444
  class: "g-multiselect-option g-multiselect-no-results"
2393
- }, dr = /* @__PURE__ */ u({
2445
+ }, fr = /* @__PURE__ */ u({
2394
2446
  __name: "GMultiSelect",
2395
2447
  props: /* @__PURE__ */ m({
2396
2448
  options: {},
@@ -2418,54 +2470,54 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2418
2470
  }),
2419
2471
  emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
2420
2472
  setup(t, { emit: n }) {
2421
- let i = t, u = n, d = B(t, "modelValue"), f = z(), p = D(null), m = D(null), v = D(null), y = D(!1), b = D(0), x = D(""), S = D(!1), { displayErrors: C, hasErrors: T } = $({
2473
+ 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: w } = $({
2422
2474
  name: i.name,
2423
2475
  value: d,
2424
- errors: F(i, "errors"),
2476
+ errors: I(i, "errors"),
2425
2477
  formKey: i.formKey
2426
- }), { menuPlacement: E, menuStyle: k, isTop: A, scrollOptionIntoView: j } = jt({
2478
+ }), { menuPlacement: E, menuStyle: D, isTop: A, scrollOptionIntoView: j } = Mt({
2427
2479
  open: y,
2428
2480
  anchorRef: m,
2429
2481
  listboxRef: v,
2430
2482
  baseId: f,
2431
2483
  activeIndex: b
2432
- }), M = r(() => At(i.options)), P = r(() => {
2484
+ }), M = r(() => jt(i.options)), N = r(() => {
2433
2485
  if (!x.value) return M.value;
2434
2486
  let e = x.value.toLowerCase();
2435
2487
  return M.value.filter((t) => t.label.toLowerCase().includes(e));
2436
2488
  });
2437
- function I(e) {
2489
+ function F(e) {
2438
2490
  return d.value.includes(e);
2439
2491
  }
2440
- function R(e) {
2492
+ function L(e) {
2441
2493
  let t = M.value.find((t) => t.value === e);
2442
2494
  return t ? t.label : String(e);
2443
2495
  }
2444
- function V() {
2496
+ function z() {
2445
2497
  i.disabled || (y.value = !0, b.value = 0);
2446
2498
  }
2447
2499
  function H() {
2448
2500
  y.value = !1, x.value = "";
2449
2501
  }
2450
2502
  function U(e) {
2451
- let t = P.value[e];
2503
+ let t = N.value[e];
2452
2504
  if (!t) return;
2453
- let n = d.value, r = I(t.value) ? n.filter((e) => e !== t.value) : [...n, t.value];
2505
+ let n = d.value, r = F(t.value) ? n.filter((e) => e !== t.value) : [...n, t.value];
2454
2506
  d.value = r, u("change", r), g(() => p.value?.focus());
2455
2507
  }
2456
- function G(e) {
2508
+ function W(e) {
2457
2509
  if (i.disabled) return;
2458
2510
  let t = d.value.filter((t) => t !== e);
2459
2511
  d.value = t, u("change", t);
2460
2512
  }
2461
2513
  function K() {
2462
- i.disabled || (p.value?.focus(), y.value || V());
2514
+ i.disabled || (p.value?.focus(), y.value || z());
2463
2515
  }
2464
2516
  function q(e) {
2465
- x.value = e.target.value, b.value = 0, y.value || V();
2517
+ x.value = e.target.value, b.value = 0, y.value || z();
2466
2518
  }
2467
- function X() {
2468
- i.disabled || y.value || V();
2519
+ function J() {
2520
+ i.disabled || y.value || z();
2469
2521
  }
2470
2522
  function ee(e) {
2471
2523
  if (S.value) {
@@ -2483,13 +2535,13 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2483
2535
  }
2484
2536
  function ne(e) {
2485
2537
  if (i.disabled) return;
2486
- let t = P.value.length - 1;
2538
+ let t = N.value.length - 1;
2487
2539
  switch (e.key) {
2488
2540
  case "ArrowDown":
2489
- e.preventDefault(), y.value ? (b.value = Math.min(t, b.value + 1), j()) : V();
2541
+ e.preventDefault(), y.value ? (b.value = Math.min(t, b.value + 1), j()) : z();
2490
2542
  break;
2491
2543
  case "ArrowUp":
2492
- e.preventDefault(), y.value ? (b.value = Math.max(0, b.value - 1), j()) : V();
2544
+ e.preventDefault(), y.value ? (b.value = Math.max(0, b.value - 1), j()) : z();
2493
2545
  break;
2494
2546
  case "Home":
2495
2547
  e.preventDefault(), b.value = 0, j();
@@ -2498,38 +2550,38 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2498
2550
  e.preventDefault(), b.value = t, j();
2499
2551
  break;
2500
2552
  case "Enter":
2501
- e.preventDefault(), y.value && P.value.length > 0 ? U(b.value) : y.value || V();
2553
+ e.preventDefault(), y.value && N.value.length > 0 ? U(b.value) : y.value || z();
2502
2554
  break;
2503
2555
  case " ":
2504
- y.value && !x.value && (e.preventDefault(), P.value.length > 0 && U(b.value));
2556
+ y.value && !x.value && (e.preventDefault(), N.value.length > 0 && U(b.value));
2505
2557
  break;
2506
2558
  case "Escape":
2507
2559
  A.value && (e.preventDefault(), setTimeout(() => H(), 0));
2508
2560
  break;
2509
2561
  case "Backspace":
2510
- !x.value && d.value.length > 0 && G(d.value[d.value.length - 1]);
2562
+ !x.value && d.value.length > 0 && W(d.value[d.value.length - 1]);
2511
2563
  break;
2512
2564
  }
2513
2565
  }
2514
2566
  let re = r(() => `${f}-input`), ie = r(() => `${f}-label`), ae = r(() => `${f}-instructions`), oe = r(() => `error-message-${f}`), se = r(() => {
2515
2567
  let e = [];
2516
- return i.instructions && e.push(ae.value), T.value && e.push(oe.value), e.length > 0 ? e.join(" ") : void 0;
2568
+ return i.instructions && e.push(ae.value), w.value && e.push(oe.value), e.length > 0 ? e.join(" ") : void 0;
2517
2569
  });
2518
- return (n, r) => (w(), o("div", { class: _(["g-multiselect-root", {
2570
+ return (n, r) => (T(), o("div", { class: _(["g-multiselect-root", {
2519
2571
  "g-multiselect-open": y.value,
2520
- "g-multiselect-has-error": L(T)
2572
+ "g-multiselect-has-error": R(w)
2521
2573
  }]) }, [
2522
- t.hiddenLabel ? a("", !0) : (w(), o("label", {
2574
+ t.hiddenLabel ? a("", !0) : (T(), o("label", {
2523
2575
  key: 0,
2524
2576
  id: ie.value,
2525
2577
  for: re.value,
2526
2578
  class: "g-multiselect-label"
2527
- }, [c(N(t.label), 1), t.required ? (w(), o("span", er, " *")) : a("", !0)], 8, $n)),
2528
- t.instructions ? (w(), o("div", {
2579
+ }, [c(P(t.label), 1), t.required ? (T(), o("span", tr, " *")) : a("", !0)], 8, er)),
2580
+ t.instructions ? (T(), o("div", {
2529
2581
  key: 1,
2530
2582
  id: ae.value,
2531
2583
  class: "g-multiselect-instructions"
2532
- }, N(t.instructions), 9, tr)) : a("", !0),
2584
+ }, P(t.instructions), 9, nr)) : a("", !0),
2533
2585
  s("div", {
2534
2586
  ref_key: "controlRef",
2535
2587
  ref: m,
@@ -2539,16 +2591,16 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2539
2591
  s("ul", {
2540
2592
  class: "g-multiselect-chips",
2541
2593
  "aria-labelledby": ie.value
2542
- }, [(w(!0), o(e, null, O(d.value, (e) => (w(), o("li", {
2594
+ }, [(T(!0), o(e, null, k(d.value, (e) => (T(), o("li", {
2543
2595
  key: e,
2544
2596
  class: "g-multiselect-chip"
2545
- }, [s("span", rr, N(R(e)), 1), s("button", {
2597
+ }, [s("span", ir, P(L(e)), 1), s("button", {
2546
2598
  type: "button",
2547
2599
  class: "g-multiselect-chip-remove",
2548
- "aria-label": `Remove ${R(e)}`,
2600
+ "aria-label": `Remove ${L(e)}`,
2549
2601
  disabled: t.disabled,
2550
2602
  onMousedown: te,
2551
- onClick: Y((t) => G(e), ["stop"])
2603
+ onClick: X((t) => W(e), ["stop"])
2552
2604
  }, [...r[0] ||= [s("svg", {
2553
2605
  xmlns: "http://www.w3.org/2000/svg",
2554
2606
  viewBox: "0 0 51.26 51.26",
@@ -2557,7 +2609,7 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2557
2609
  }, [s("path", {
2558
2610
  fill: "currentColor",
2559
2611
  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"
2560
- })], -1)]], 40, ir)]))), 128))], 8, nr),
2612
+ })], -1)]], 40, ar)]))), 128))], 8, rr),
2561
2613
  s("input", h({
2562
2614
  ref_key: "inputRef",
2563
2615
  ref: p,
@@ -2572,16 +2624,16 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2572
2624
  "aria-autocomplete": "list",
2573
2625
  "aria-expanded": y.value ? "true" : "false",
2574
2626
  "aria-haspopup": "listbox",
2575
- "aria-controls": L(f) + "-listbox",
2576
- "aria-activedescendant": y.value && P.value.length > 0 ? L(f) + "-option-" + b.value : void 0
2627
+ "aria-controls": R(f) + "-listbox",
2628
+ "aria-activedescendant": y.value && N.value.length > 0 ? R(f) + "-option-" + b.value : void 0
2577
2629
  }, t.hiddenLabel ? { "aria-label": t.label } : void 0, {
2578
2630
  "aria-describedby": se.value,
2579
2631
  "aria-required": t.required ? "true" : void 0,
2580
2632
  onInput: q,
2581
2633
  onKeydown: ne,
2582
- onFocus: X,
2634
+ onFocus: J,
2583
2635
  onBlur: ee
2584
- }), null, 16, ar),
2636
+ }), null, 16, or),
2585
2637
  r[2] ||= s("svg", {
2586
2638
  class: "g-multiselect-caret",
2587
2639
  xmlns: "http://www.w3.org/2000/svg",
@@ -2592,31 +2644,31 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2592
2644
  fill: "currentColor",
2593
2645
  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"
2594
2646
  })], -1),
2595
- J(s("div", h({
2647
+ Y(s("div", h({
2596
2648
  ref_key: "listboxRef",
2597
2649
  ref: v,
2598
- id: L(f) + "-listbox",
2650
+ id: R(f) + "-listbox",
2599
2651
  role: "listbox",
2600
2652
  "aria-multiselectable": "true"
2601
2653
  }, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": ie.value }, {
2602
- class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": L(E) === "above" }],
2603
- style: L(k),
2654
+ class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": R(E) === "above" }],
2655
+ style: R(D),
2604
2656
  tabindex: "-1"
2605
- }), [P.value.length > 0 ? (w(!0), o(e, { key: 0 }, O(P.value, (e, t) => (w(), o("div", {
2657
+ }), [N.value.length > 0 ? (T(!0), o(e, { key: 0 }, k(N.value, (e, t) => (T(), o("div", {
2606
2658
  key: e.value,
2607
- id: L(f) + "-option-" + t,
2659
+ id: R(f) + "-option-" + t,
2608
2660
  role: "option",
2609
2661
  class: _(["g-multiselect-option", {
2610
2662
  "g-multiselect-option--active": t === b.value,
2611
- "g-multiselect-option--selected": I(e.value)
2663
+ "g-multiselect-option--selected": F(e.value)
2612
2664
  }]),
2613
- "aria-selected": I(e.value) ? "true" : "false",
2665
+ "aria-selected": F(e.value) ? "true" : "false",
2614
2666
  onMousedown: Z,
2615
2667
  onClick: (e) => U(t)
2616
- }, [s("span", cr, [I(e.value) ? (w(), o("svg", lr, [...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)]), c(" " + N(e.label), 1)], 42, sr))), 128)) : (w(), o("div", ur, " No results found. "))], 16, or), [[W, y.value]])
2668
+ }, [s("span", lr, [F(e.value) ? (T(), 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)]), c(" " + P(e.label), 1)], 42, cr))), 128)) : (T(), o("div", dr, " No results found. "))], 16, sr), [[G, y.value]])
2617
2669
  ], 2),
2618
- l(Ae, {
2619
- errors: L(C),
2670
+ l(je, {
2671
+ errors: R(C),
2620
2672
  id: oe.value
2621
2673
  }, null, 8, ["errors", "id"])
2622
2674
  ], 2));
@@ -2624,32 +2676,32 @@ var ln = ["id"], un = /* @__PURE__ */ u({
2624
2676
  });
2625
2677
  //#endregion
2626
2678
  //#region src/compose/useFiltering.ts
2627
- function fr(e) {
2679
+ function pr(e) {
2628
2680
  if (!(Array.isArray(e) && e.length === 0) && !(e === null || e === !1 || e === "")) return e;
2629
2681
  }
2630
- function pr(e) {
2682
+ function mr(e) {
2631
2683
  return Object.fromEntries(Object.entries(e).filter(([e, t]) => t && (!Array.isArray(t) || t.length > 0)));
2632
2684
  }
2633
- function mr(e) {
2685
+ function hr(e) {
2634
2686
  if (e != null) return Array.isArray(e) ? e.filter((e) => e != null) : [e];
2635
2687
  }
2636
- function hr(e) {
2688
+ function gr(e) {
2637
2689
  let t = {};
2638
- for (let [n, r] of Object.entries(P(e))) Array.isArray(r) ? r.length > 0 && (t[n] = r) : r === !0 ? t[n] = "true" : t[n] = r || void 0;
2690
+ for (let [n, r] of Object.entries(F(e))) Array.isArray(r) ? r.length > 0 && (t[n] = r) : r === !0 ? t[n] = "true" : t[n] = r || void 0;
2639
2691
  return t;
2640
2692
  }
2641
- function gr(e) {
2693
+ function _r(e) {
2642
2694
  let t = {};
2643
2695
  return Object.keys(e).forEach((n) => {
2644
2696
  let r = e[n];
2645
2697
  r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
2646
2698
  }), t;
2647
2699
  }
2648
- function _r(e, t = {}) {
2649
- let n = E(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), i = t.syncWith;
2700
+ function vr(e, t = {}) {
2701
+ let n = D(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), i = t.syncWith;
2650
2702
  if (i) {
2651
2703
  if (i.value) {
2652
- let t = I(i);
2704
+ let t = L(i);
2653
2705
  Object.keys(e).forEach((e) => {
2654
2706
  if (t[e] !== void 0) {
2655
2707
  let r = t[e];
@@ -2657,14 +2709,14 @@ function _r(e, t = {}) {
2657
2709
  }
2658
2710
  });
2659
2711
  }
2660
- G(n, (e) => {
2661
- i.value = gr(e);
2712
+ K(n, (e) => {
2713
+ i.value = _r(e);
2662
2714
  }, { deep: !0 });
2663
2715
  }
2664
2716
  return {
2665
2717
  filters: n,
2666
2718
  isFiltered: r(() => {
2667
- for (let t of Object.keys(e)) if (fr(n[t])) return !0;
2719
+ for (let t of Object.keys(e)) if (pr(n[t])) return !0;
2668
2720
  return !1;
2669
2721
  }),
2670
2722
  clearFilters: () => {
@@ -2674,48 +2726,48 @@ function _r(e, t = {}) {
2674
2726
  },
2675
2727
  filteredColumns: r(() => {
2676
2728
  let t = {};
2677
- for (let r of Object.keys(e)) t[r] = !!fr(n[r]);
2729
+ for (let r of Object.keys(e)) t[r] = !!pr(n[r]);
2678
2730
  return t;
2679
2731
  })
2680
2732
  };
2681
2733
  }
2682
2734
  //#endregion
2683
2735
  //#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
2684
- var vr = { class: "g-table-outer-wrap" }, yr = {
2736
+ var yr = { class: "g-table-outer-wrap" }, br = {
2685
2737
  key: 0,
2686
2738
  class: "g-table-controls"
2687
- }, br = { class: "g-clear-filters-wrap" }, xr = {
2739
+ }, xr = { class: "g-clear-filters-wrap" }, Sr = {
2688
2740
  key: 0,
2689
2741
  class: "pagination"
2690
- }, Sr = { class: "g-result-count" }, Cr = ["aria-label", "aria-rowcount"], wr = { class: "g-table-head" }, Tr = { "aria-rowindex": "1" }, Er = {
2742
+ }, Cr = { class: "g-result-count" }, wr = ["aria-label", "aria-rowcount"], Tr = { class: "g-table-head" }, Er = { "aria-rowindex": "1" }, Dr = {
2691
2743
  key: 0,
2692
2744
  scope: "col",
2693
2745
  class: "g-th g-th-checkbox"
2694
- }, Dr = [
2746
+ }, Or = [
2695
2747
  "checked",
2696
2748
  "indeterminate",
2697
2749
  "aria-label"
2698
- ], Or = ["id", "aria-sort"], kr = { class: "th-inner" }, Ar = ["onClick"], jr = {
2750
+ ], kr = ["id", "aria-sort"], Ar = { class: "th-inner" }, jr = ["onClick"], Mr = {
2699
2751
  key: 0,
2700
2752
  class: "sort-indicator"
2701
- }, Mr = ["aria-label"], Nr = {
2753
+ }, Nr = ["aria-label"], Pr = {
2702
2754
  key: 1,
2703
2755
  class: "g-column-head"
2704
- }, Pr = ["onClick", "aria-label"], Fr = { key: 1 }, Ir = { class: "g-filter-toggle" }, Lr = [
2756
+ }, Fr = ["onClick", "aria-label"], Ir = { key: 1 }, Lr = { class: "g-filter-toggle" }, Rr = [
2705
2757
  "onUpdate:modelValue",
2706
2758
  "id",
2707
2759
  "aria-describedby"
2708
- ], Rr = ["for"], zr = ["id"], Br = {
2760
+ ], zr = ["for"], Br = ["id"], Vr = {
2709
2761
  key: 3,
2710
2762
  class: "g-multi-select"
2711
- }, Vr = [
2763
+ }, Hr = [
2712
2764
  "onUpdate:modelValue",
2713
2765
  "id",
2714
2766
  "value"
2715
- ], Hr = ["for"], Ur = {
2767
+ ], Ur = ["for"], Wr = {
2716
2768
  key: 1,
2717
2769
  class: "g-bulk-actions-toolbar"
2718
- }, Wr = { class: "g-selected-count" }, Gr = { class: "g-bulk-actions" }, Kr = /* @__PURE__ */ u({
2770
+ }, Gr = { class: "g-selected-count" }, Kr = { class: "g-bulk-actions" }, qr = /* @__PURE__ */ u({
2719
2771
  __name: "GTable",
2720
2772
  props: /* @__PURE__ */ m({
2721
2773
  label: {},
@@ -2759,13 +2811,13 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
2759
2811
  "update:selectedRows"
2760
2812
  ]),
2761
2813
  setup(t, { emit: n }) {
2762
- let u = B(t, "sortField"), d = B(t, "sortOrder"), f = B(t, "filter"), p = B(t, "selectedRows"), m = t, h = n;
2814
+ let u = V(t, "sortField"), d = V(t, "sortOrder"), f = V(t, "filter"), p = V(t, "selectedRows"), m = t, h = n;
2763
2815
  function g(e) {
2764
2816
  e.sortable && (u.value === e.key ? d.value === 1 ? d.value = -1 : d.value === -1 && (u.value = void 0, d.value = 1) : (u.value = e.key, d.value = 1));
2765
2817
  }
2766
2818
  let v = m.filtering;
2767
- v ||= _r({});
2768
- let { filters: b, filteredColumns: x, isFiltered: C, clearFilters: T } = v, E = r(() => m.data.map((e) => e.key)), A = r(() => p.value.filter((e) => E.value.includes(e))), j = r(() => !m.bulkSelectionEnabled || m.data.length === 0 ? !1 : A.value.length === E.value.length), M = r(() => !m.bulkSelectionEnabled || m.data.length === 0 ? !1 : A.value.length > 0 && A.value.length < E.value.length), F = D(null);
2819
+ v ||= vr({});
2820
+ let { filters: b, filteredColumns: x, isFiltered: C, clearFilters: w } = v, E = r(() => m.data.map((e) => e.key)), D = r(() => p.value.filter((e) => E.value.includes(e))), j = r(() => !m.bulkSelectionEnabled || m.data.length === 0 ? !1 : D.value.length === E.value.length), M = r(() => !m.bulkSelectionEnabled || m.data.length === 0 ? !1 : D.value.length > 0 && D.value.length < E.value.length), N = O(null);
2769
2821
  function I() {
2770
2822
  if (j.value) p.value = p.value.filter((e) => !E.value.includes(e));
2771
2823
  else {
@@ -2773,24 +2825,24 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
2773
2825
  E.value.forEach((t) => e.add(t)), p.value = Array.from(e);
2774
2826
  }
2775
2827
  }
2776
- function R(e, t = !1) {
2777
- if (t && F.value) {
2778
- let t = E.value.indexOf(F.value), n = E.value.indexOf(e);
2828
+ function L(e, t = !1) {
2829
+ if (t && N.value) {
2830
+ let t = E.value.indexOf(N.value), n = E.value.indexOf(e);
2779
2831
  if (t !== -1 && n !== -1) {
2780
2832
  let e = Math.min(t, n), r = Math.max(t, n), i = E.value.slice(e, r + 1), a = new Set(p.value);
2781
2833
  i.forEach((e) => a.add(e)), p.value = Array.from(a);
2782
2834
  }
2783
2835
  } else p.value.includes(e) ? p.value = p.value.filter((t) => t !== e) : p.value = [...p.value, e];
2784
- F.value = e;
2836
+ N.value = e;
2785
2837
  }
2786
- function H(e) {
2838
+ function z(e) {
2787
2839
  h("row-click", e);
2788
2840
  }
2789
- function W(e) {
2841
+ function U(e) {
2790
2842
  h("bulk-action", e, p.value);
2791
2843
  }
2792
- function K(e) {
2793
- let t = e.value, n = e.column.key, r = P(e.row[n]);
2844
+ function G(e) {
2845
+ let t = e.value, n = e.column.key, r = F(e.row[n]);
2794
2846
  e.column.editable?.inputAttributes?.type === "number" && (t = e.value === "" ? null : Number(e.value)), e.row[n] = t, h("cell-change", {
2795
2847
  row: e.row,
2796
2848
  column: e.column,
@@ -2798,28 +2850,28 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
2798
2850
  previousValue: r
2799
2851
  });
2800
2852
  }
2801
- let X = z(), ee = V(), Z = r(() => m.showPagination ? !0 : !!ee.pagination), te = r(() => !!(C.value || Z.value));
2853
+ let q = B(), ee = H(), Z = r(() => m.showPagination ? !0 : !!ee.pagination), te = r(() => !!(C.value || Z.value));
2802
2854
  return S(() => {
2803
2855
  m.rowClickable && m.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
2804
2856
  for (let e of m.columns) if (e.editable && e.display && console.warn(`GTable: Column "${String(e.key)}" has both 'editable' and 'display' configured. 'display' will be ignored.`), e.filter && e.filter.type === "multi-select" && !Array.isArray(f.value[e.key])) {
2805
2857
  let t = f.value[e.key];
2806
2858
  f.value[e.key] = t ? [t] : [];
2807
2859
  }
2808
- }), G(() => m.columns, (e) => {
2860
+ }), K(() => m.columns, (e) => {
2809
2861
  for (let t of e) if (t.filter && t.filter.type === "multi-select" && !Array.isArray(f.value[t.key])) {
2810
2862
  let e = f.value[t.key];
2811
2863
  f.value[t.key] = e ? [e] : [];
2812
2864
  }
2813
- }, { immediate: !0 }), (n, r) => (w(), o("div", vr, [
2814
- te.value ? (w(), o("div", yr, [
2815
- s("div", br, [L(C) ? (w(), i(Q, {
2865
+ }, { immediate: !0 }), (n, r) => (T(), o("div", yr, [
2866
+ te.value ? (T(), o("div", br, [
2867
+ s("div", xr, [R(C) ? (T(), i(Q, {
2816
2868
  key: 0,
2817
2869
  outlined: "",
2818
2870
  size: "small",
2819
2871
  class: "clear-filters",
2820
- onClick: L(T)
2872
+ onClick: R(w)
2821
2873
  }, {
2822
- default: q(() => [...r[0] ||= [s("svg", {
2874
+ default: J(() => [...r[0] ||= [s("svg", {
2823
2875
  xmlns: "http://www.w3.org/2000/svg",
2824
2876
  viewBox: "0 0 51.26 51.26",
2825
2877
  height: "1em",
@@ -2830,37 +2882,37 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
2830
2882
  })], -1), s("span", { class: "g-clear-filters-text" }, " Clear Filters ", -1)]]),
2831
2883
  _: 1
2832
2884
  }, 8, ["onClick"])) : a("", !0)]),
2833
- Z.value ? (w(), o("div", xr, [k(n.$slots, "pagination")])) : a("", !0),
2834
- s("span", Sr, N(m.resultCount || t.data.length) + " results", 1)
2885
+ Z.value ? (T(), o("div", Sr, [A(n.$slots, "pagination")])) : a("", !0),
2886
+ s("span", Cr, P(m.resultCount || t.data.length) + " results", 1)
2835
2887
  ])) : a("", !0),
2836
2888
  s("table", {
2837
2889
  class: "g-table",
2838
2890
  ref: "tableRef",
2839
2891
  "aria-label": t.label,
2840
2892
  "aria-rowcount": m.resultCount || t.data.length
2841
- }, [s("thead", wr, [s("tr", Tr, [t.bulkSelectionEnabled ? (w(), o("th", Er, [s("input", {
2893
+ }, [s("thead", Tr, [s("tr", Er, [t.bulkSelectionEnabled ? (T(), o("th", Dr, [s("input", {
2842
2894
  type: "checkbox",
2843
2895
  checked: j.value,
2844
2896
  indeterminate: M.value,
2845
2897
  onChange: I,
2846
2898
  "aria-label": j.value ? "Deselect all rows" : "Select all rows",
2847
2899
  class: "g-bulk-select-checkbox"
2848
- }, null, 40, Dr)])) : a("", !0), (w(!0), o(e, null, O(t.columns, (t) => (w(), o("th", {
2900
+ }, null, 40, Or)])) : a("", !0), (T(!0), o(e, null, k(t.columns, (t) => (T(), o("th", {
2849
2901
  key: t.key,
2850
- id: `${L(X)}-th-${String(t.key)}`,
2902
+ id: `${R(q)}-th-${String(t.key)}`,
2851
2903
  "aria-sort": u.value === t.key ? d.value === 1 ? "ascending" : "descending" : "none",
2852
2904
  class: _([
2853
2905
  "g-th",
2854
2906
  { sorted: u.value === t.key },
2855
- { filtered: L(x)[t.key] }
2907
+ { filtered: R(x)[t.key] }
2856
2908
  ]),
2857
2909
  scope: "col"
2858
- }, [s("div", kr, [t.sortable ? (w(), o("button", {
2910
+ }, [s("div", Ar, [t.sortable ? (T(), o("button", {
2859
2911
  key: 0,
2860
2912
  type: "button",
2861
2913
  class: "g-column-head",
2862
2914
  onClick: (e) => g(t)
2863
- }, [c(N(t.label) + " ", 1), u.value === t.key ? (w(), o("span", jr, [(w(), o("svg", {
2915
+ }, [c(P(t.label) + " ", 1), u.value === t.key ? (T(), o("span", Mr, [(T(), o("svg", {
2864
2916
  xmlns: "http://www.w3.org/2000/svg",
2865
2917
  viewBox: "0 0 640 640",
2866
2918
  height: "1.5em",
@@ -2870,11 +2922,11 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
2870
2922
  }, [...r[1] ||= [s("path", {
2871
2923
  fill: "currentColor",
2872
2924
  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"
2873
- }, null, -1)]], 12, Mr))])) : a("", !0)], 8, Ar)) : (w(), o("span", Nr, N(t.label), 1)), t.filter ? (w(), i(rt, { key: 2 }, {
2874
- trigger: q(({ toggle: e }) => [s("button", {
2875
- onClick: Y(e, ["stop"]),
2876
- "aria-label": L(x)[t.key] ? "Column Filtered" : "Filter Column",
2877
- class: _(["g-filter-btn", { "g-active": L(x)[t.key] }]),
2925
+ }, null, -1)]], 12, Nr))])) : a("", !0)], 8, jr)) : (T(), o("span", Pr, P(t.label), 1)), t.filter ? (T(), i(it, { key: 2 }, {
2926
+ trigger: J(({ toggle: e }) => [s("button", {
2927
+ onClick: X(e, ["stop"]),
2928
+ "aria-label": R(x)[t.key] ? "Column Filtered" : "Filter Column",
2929
+ class: _(["g-filter-btn", { "g-active": R(x)[t.key] }]),
2878
2930
  type: "button"
2879
2931
  }, [...r[2] ||= [s("svg", {
2880
2932
  xmlns: "http://www.w3.org/2000/svg",
@@ -2884,8 +2936,8 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
2884
2936
  }, [s("path", {
2885
2937
  fill: "currentColor",
2886
2938
  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"
2887
- })], -1)]], 10, Pr)]),
2888
- default: q(() => [t.filter.type === "select" ? (w(), i(Vt, {
2939
+ })], -1)]], 10, Fr)]),
2940
+ default: J(() => [t.filter.type === "select" ? (T(), i(Ht, {
2889
2941
  key: 0,
2890
2942
  modelValue: f.value[t.key],
2891
2943
  "onUpdate:modelValue": (e) => f.value[t.key] = e,
@@ -2898,20 +2950,20 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
2898
2950
  "modelValue",
2899
2951
  "onUpdate:modelValue",
2900
2952
  "options"
2901
- ])) : t.filter.type === "toggle" ? (w(), o("div", Fr, [s("div", Ir, [
2902
- J(s("input", {
2953
+ ])) : t.filter.type === "toggle" ? (T(), o("div", Ir, [s("div", Lr, [
2954
+ Y(s("input", {
2903
2955
  type: "checkbox",
2904
2956
  "onUpdate:modelValue": (e) => f.value[t.key] = e,
2905
- id: `${L(X)}-filter-${String(t.key)}`,
2906
- "aria-describedby": t.filter.description ? `${L(X)}-filter-description-${String(t.key)}` : void 0
2907
- }, null, 8, Lr), [[U, f.value[t.key]]]),
2908
- s("label", { for: `${L(X)}-filter-${String(t.key)}` }, N(t.filter.label), 9, Rr),
2909
- t.filter.description ? (w(), o("span", {
2957
+ id: `${R(q)}-filter-${String(t.key)}`,
2958
+ "aria-describedby": t.filter.description ? `${R(q)}-filter-description-${String(t.key)}` : void 0
2959
+ }, null, 8, Rr), [[W, f.value[t.key]]]),
2960
+ s("label", { for: `${R(q)}-filter-${String(t.key)}` }, P(t.filter.label), 9, zr),
2961
+ t.filter.description ? (T(), o("span", {
2910
2962
  key: 0,
2911
2963
  class: "g-filter-description",
2912
- id: `${L(X)}-filter-description-${String(t.key)}`
2913
- }, N(t.filter.description), 9, zr)) : a("", !0)
2914
- ])])) : t.filter.type === "multi-select" && t.filter.searchable ? (w(), i(dr, {
2964
+ id: `${R(q)}-filter-description-${String(t.key)}`
2965
+ }, P(t.filter.description), 9, Br)) : a("", !0)
2966
+ ])])) : t.filter.type === "multi-select" && t.filter.searchable ? (T(), i(fr, {
2915
2967
  key: 2,
2916
2968
  modelValue: f.value[t.key],
2917
2969
  "onUpdate:modelValue": (e) => f.value[t.key] = e,
@@ -2924,28 +2976,28 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
2924
2976
  "onUpdate:modelValue",
2925
2977
  "options",
2926
2978
  "placeholder"
2927
- ])) : t.filter.type === "multi-select" ? (w(), o("fieldset", Br, [
2979
+ ])) : t.filter.type === "multi-select" ? (T(), o("fieldset", Vr, [
2928
2980
  r[4] ||= s("legend", { class: "g-multi-select-legend" }, " Include values ", -1),
2929
- (w(!0), o(e, null, O(t.filter.options, (e) => (w(), o("div", { key: e.value }, [J(s("input", {
2981
+ (T(!0), o(e, null, k(t.filter.options, (e) => (T(), o("div", { key: e.value }, [Y(s("input", {
2930
2982
  type: "checkbox",
2931
2983
  "onUpdate:modelValue": (e) => f.value[t.key] = e,
2932
2984
  id: `filter-${String(t.key)}-${e.value}`,
2933
2985
  value: e.value,
2934
2986
  name: "filter-multiselect"
2935
- }, null, 8, Vr), [[U, f.value[t.key]]]), s("label", { for: `filter-${String(t.key)}-${e.value}` }, N(e.label), 9, Hr)]))), 128)),
2936
- f.value[t.key] && f.value[t.key].length ? (w(), i(Q, {
2987
+ }, null, 8, Hr), [[W, f.value[t.key]]]), s("label", { for: `filter-${String(t.key)}-${e.value}` }, P(e.label), 9, Ur)]))), 128)),
2988
+ f.value[t.key] && f.value[t.key].length ? (T(), i(Q, {
2937
2989
  key: 0,
2938
2990
  class: "clear-multiselect-btn",
2939
2991
  theme: "accent",
2940
2992
  size: "small",
2941
2993
  onClick: (e) => f.value[t.key] = []
2942
2994
  }, {
2943
- default: q(() => [...r[3] ||= [c(" Clear ", -1)]]),
2995
+ default: J(() => [...r[3] ||= [c(" Clear ", -1)]]),
2944
2996
  _: 1
2945
2997
  }, 8, ["onClick"])) : a("", !0)
2946
2998
  ])) : a("", !0)]),
2947
2999
  _: 2
2948
- }, 1024)) : a("", !0)])], 10, Or))), 128))])]), l(Qn, {
3000
+ }, 1024)) : a("", !0)])], 10, kr))), 128))])]), l($n, {
2949
3001
  data: t.data,
2950
3002
  columns: t.columns,
2951
3003
  "group-by": t.groupBy,
@@ -2955,11 +3007,11 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
2955
3007
  "start-index": t.startIndex,
2956
3008
  "bulk-selection-enabled": t.bulkSelectionEnabled,
2957
3009
  "selected-rows": p.value,
2958
- "table-id": L(X),
3010
+ "table-id": R(q),
2959
3011
  "change-tracker": t.changeTracker,
2960
- onRowClick: H,
2961
- onToggleRow: R,
2962
- onCellChange: K
3012
+ onRowClick: z,
3013
+ onToggleRow: L,
3014
+ onCellChange: G
2963
3015
  }, null, 8, [
2964
3016
  "data",
2965
3017
  "columns",
@@ -2972,21 +3024,21 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
2972
3024
  "selected-rows",
2973
3025
  "table-id",
2974
3026
  "change-tracker"
2975
- ])], 8, Cr),
2976
- t.bulkSelectionEnabled && p.value.length > 0 ? (w(), o("div", Ur, [s("span", Wr, N(p.value.length) + " row" + N(p.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Gr, [(w(!0), o(e, null, O(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l(Q, {
3027
+ ])], 8, wr),
3028
+ t.bulkSelectionEnabled && p.value.length > 0 ? (T(), o("div", Wr, [s("span", Gr, P(p.value.length) + " row" + P(p.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Kr, [(T(!0), o(e, null, k(t.bulkActions, (e) => (T(), o("li", { key: e.id }, [l(Q, {
2977
3029
  theme: e.theme || "accent",
2978
- onClick: (t) => W(e.id),
3030
+ onClick: (t) => U(e.id),
2979
3031
  size: "small"
2980
3032
  }, {
2981
- default: q(() => [c(N(e.label) + " " + N(p.value.length) + " row" + N(p.value.length === 1 ? "" : "s"), 1)]),
3033
+ default: J(() => [c(P(e.label) + " " + P(p.value.length) + " row" + P(p.value.length === 1 ? "" : "s"), 1)]),
2982
3034
  _: 2
2983
3035
  }, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
2984
3036
  ]));
2985
3037
  }
2986
- }), qr = {
3038
+ }), Jr = {
2987
3039
  class: "g-pagination",
2988
3040
  "aria-label": "Pagination"
2989
- }, Jr = ["disabled"], Yr = ["disabled"], Xr = { class: "page-range" }, Zr = ["disabled"], Qr = ["disabled"], $r = ["value"], ei = ["value"], ti = /* @__PURE__ */ u({
3041
+ }, Yr = ["disabled"], Xr = ["disabled"], Zr = { class: "page-range" }, Qr = ["disabled"], $r = ["disabled"], ei = ["value"], ti = ["value"], ni = /* @__PURE__ */ u({
2990
3042
  __name: "GTablePagination",
2991
3043
  props: /* @__PURE__ */ m({
2992
3044
  start: {},
@@ -3001,14 +3053,14 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3001
3053
  }),
3002
3054
  emits: ["update:start", "update:pageSize"],
3003
3055
  setup(t) {
3004
- let n = t, i = r(() => Math.max(1, Math.ceil(n.total / n.pageSize))), a = B(t, "start"), c = B(t, "pageSize"), l = r(() => a.value ?? n.start), u = r(() => c.value ?? n.pageSize), d = r(() => n.total === 0 ? 0 : l.value + 1), f = r(() => n.total === 0 ? 0 : Math.min(l.value + u.value, n.total)), p = r(() => Math.floor(l.value / u.value) + 1);
3056
+ let n = t, i = r(() => Math.max(1, Math.ceil(n.total / n.pageSize))), a = V(t, "start"), c = V(t, "pageSize"), l = r(() => a.value ?? n.start), u = r(() => c.value ?? n.pageSize), d = r(() => n.total === 0 ? 0 : l.value + 1), f = r(() => n.total === 0 ? 0 : Math.min(l.value + u.value, n.total)), p = r(() => Math.floor(l.value / u.value) + 1);
3005
3057
  function m(e) {
3006
3058
  e < 1 || e > i.value || (a.value = (e - 1) * u.value);
3007
3059
  }
3008
3060
  function h(e) {
3009
3061
  c.value = parseInt(e.target.value, 10);
3010
3062
  }
3011
- return (t, r) => (w(), o("nav", qr, [
3063
+ return (t, r) => (T(), o("nav", Jr, [
3012
3064
  s("button", {
3013
3065
  class: "first-page g-pagination-button",
3014
3066
  disabled: p.value === 1,
@@ -3033,7 +3085,7 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3033
3085
  }),
3034
3086
  s("path", { d: "M11 7l-5 5l5 5" }),
3035
3087
  s("path", { d: "M17 7l-5 5l5 5" })
3036
- ], -1)]], 8, Jr),
3088
+ ], -1)]], 8, Yr),
3037
3089
  s("button", {
3038
3090
  class: "prev-page g-pagination-button",
3039
3091
  disabled: p.value === 1,
@@ -3054,8 +3106,8 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3054
3106
  stroke: "none",
3055
3107
  d: "M0 0h24v24H0z",
3056
3108
  fill: "none"
3057
- }), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, Yr),
3058
- s("span", Xr, N(d.value) + " to " + N(f.value), 1),
3109
+ }), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, Xr),
3110
+ s("span", Zr, P(d.value) + " to " + P(f.value), 1),
3059
3111
  s("button", {
3060
3112
  class: "next-page g-pagination-button",
3061
3113
  disabled: p.value === i.value,
@@ -3076,7 +3128,7 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3076
3128
  stroke: "none",
3077
3129
  d: "M0 0h24v24H0z",
3078
3130
  fill: "none"
3079
- }), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, Zr),
3131
+ }), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, Qr),
3080
3132
  s("button", {
3081
3133
  class: "last-page g-pagination-button",
3082
3134
  disabled: p.value === i.value,
@@ -3101,28 +3153,28 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3101
3153
  }),
3102
3154
  s("path", { d: "M7 7l5 5l-5 5" }),
3103
3155
  s("path", { d: "M13 7l5 5l-5 5" })
3104
- ], -1)]], 8, Qr),
3156
+ ], -1)]], 8, $r),
3105
3157
  s("select", {
3106
3158
  id: "page-size-select",
3107
3159
  class: "page-size-select",
3108
3160
  value: c.value,
3109
3161
  onChange: h
3110
- }, [(w(!0), o(e, null, O(n.pageSizes || [
3162
+ }, [(T(!0), o(e, null, k(n.pageSizes || [
3111
3163
  10,
3112
3164
  25,
3113
3165
  50,
3114
3166
  100
3115
- ], (e) => (w(), o("option", {
3167
+ ], (e) => (T(), o("option", {
3116
3168
  key: e,
3117
3169
  value: e
3118
- }, N(e), 9, ei))), 128))], 40, $r),
3170
+ }, P(e), 9, ti))), 128))], 40, ei),
3119
3171
  r[8] ||= s("label", {
3120
3172
  class: "page-size-label",
3121
3173
  for: "page-size-select"
3122
3174
  }, "per page", -1)
3123
3175
  ]));
3124
3176
  }
3125
- }), ni = ["id"], ri = { class: "g-modal-inner" }, ii = { class: "g-modal-header" }, ai = ["id"], oi = ["id"], si = /* @__PURE__ */ u({
3177
+ }), ri = ["id"], ii = { class: "g-modal-inner" }, ai = { class: "g-modal-header" }, oi = ["id"], si = ["id"], ci = /* @__PURE__ */ u({
3126
3178
  __name: "GModal",
3127
3179
  props: {
3128
3180
  label: {},
@@ -3136,11 +3188,11 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3136
3188
  },
3137
3189
  emits: ["close"],
3138
3190
  setup(e, { emit: c }) {
3139
- let u = e, d = c, f = H("dialog"), p = D(!0), m = z(), { pop: g, push: _, isTop: v, zIndex: y } = Ge(m, !0, !0), { deactivate: x, activate: C } = Ze(f, v);
3140
- function T() {
3191
+ let u = e, d = c, f = U("dialog"), p = O(!0), m = B(), { pop: g, push: _, isTop: v, zIndex: y } = Ke(m, !0, !0), { deactivate: x, activate: C } = Qe(f, v);
3192
+ function w() {
3141
3193
  d("close");
3142
3194
  }
3143
- Qe([f], v, p, T, g), S(() => {
3195
+ $e([f], v, p, w, g), S(() => {
3144
3196
  _(), C();
3145
3197
  }), b(() => {
3146
3198
  g(), x();
@@ -3149,31 +3201,31 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3149
3201
  let e = [`g-modal--${u.size}`];
3150
3202
  return u.classes && (e = e.concat(Array.isArray(u.classes) ? u.classes : [u.classes])), e;
3151
3203
  });
3152
- return (r, c) => (w(), i(t, { to: "#modal-root" }, [l(n, {
3204
+ return (r, c) => (T(), i(t, { to: "#modal-root" }, [l(n, {
3153
3205
  name: "g-fade",
3154
3206
  appear: ""
3155
3207
  }, {
3156
- default: q(() => [s("div", h({
3157
- id: "modal-" + L(m),
3208
+ default: J(() => [s("div", h({
3209
+ id: "modal-" + R(m),
3158
3210
  class: ["g-modal", E.value],
3159
3211
  role: "dialog",
3160
3212
  "aria-modal": "true"
3161
3213
  }, {
3162
- "aria-labelledby": e.hiddenLabel ? void 0 : "modal-label-" + L(m),
3214
+ "aria-labelledby": e.hiddenLabel ? void 0 : "modal-label-" + R(m),
3163
3215
  "aria-label": e.hiddenLabel ? e.label : void 0,
3164
3216
  "aria-describedby": e.describedby ? e.describedby : void 0
3165
3217
  }, {
3166
3218
  ref_key: "dialog",
3167
3219
  ref: f,
3168
- style: { zIndex: L(y) }
3169
- }), [s("div", ri, [s("div", ii, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
3220
+ style: { zIndex: R(y) }
3221
+ }), [s("div", ii, [s("div", ai, [e.hiddenLabel ? a("", !0) : (T(), o("h2", {
3170
3222
  key: 0,
3171
- id: "modal-label-" + L(m),
3223
+ id: "modal-label-" + R(m),
3172
3224
  class: "g-modal-label",
3173
3225
  tabindex: "-1"
3174
- }, N(e.label), 9, ai)), s("button", {
3226
+ }, P(e.label), 9, oi)), s("button", {
3175
3227
  class: "g-modal-close",
3176
- onClick: T,
3228
+ onClick: w,
3177
3229
  "aria-label": "Close"
3178
3230
  }, [...c[0] ||= [s("svg", {
3179
3231
  viewBox: "0 0 24 24",
@@ -3184,75 +3236,76 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3184
3236
  fill: "currentColor",
3185
3237
  d: "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"
3186
3238
  })], -1)]])]), s("div", {
3187
- id: "modal-description-" + L(m),
3239
+ id: "modal-description-" + R(m),
3188
3240
  class: "g-modal-content"
3189
- }, [k(r.$slots, "default")], 8, oi)])], 16, ni)]),
3241
+ }, [A(r.$slots, "default")], 8, si)])], 16, ri)]),
3190
3242
  _: 3
3191
3243
  })]));
3192
3244
  }
3193
- }), ci = [
3245
+ }), li = [
3194
3246
  "id",
3195
3247
  "aria-expanded",
3196
3248
  "aria-label",
3197
3249
  "aria-controls"
3198
- ], li = /* @__PURE__ */ u({
3250
+ ], ui = /* @__PURE__ */ u({
3199
3251
  __name: "GHamburgerMenu",
3200
3252
  props: {
3201
3253
  label: { default: "Main Navigation" },
3202
- sidebarKey: { default: "default" }
3254
+ sidebarKey: { default: "default" },
3255
+ mediaQuery: {}
3203
3256
  },
3204
3257
  emits: ["toggle"],
3205
3258
  setup(e, { emit: t }) {
3206
- let n = e, r = p("sidebar") ?? (de() ? cn(n.sidebarKey) : void 0), i = t;
3259
+ let n = e, r = p("sidebar") ?? (fe() ? ln(n.sidebarKey, I(n, "mediaQuery")) : void 0), i = t;
3207
3260
  function a() {
3208
3261
  i("toggle"), r?.toggle();
3209
3262
  }
3210
3263
  function c(e) {
3211
3264
  e.key === "Escape" && r?.open?.value && (r.open.value = !1);
3212
3265
  }
3213
- let l = z();
3214
- return (t, n) => (w(), o("button", {
3215
- id: `${L(r)?.id ?? L(l)}-hamburger`,
3266
+ let l = B();
3267
+ return (t, n) => (T(), o("button", {
3268
+ id: `${R(r)?.id ?? R(l)}-hamburger`,
3216
3269
  class: _(["g-hamburger-button", {
3217
- "g-hamburger-button--open": L(r)?.open?.value,
3218
- "g-hamburger-button--collapsible": L(r)?.isCollapsible?.value
3270
+ "g-hamburger-button--open": R(r)?.open?.value,
3271
+ "g-hamburger-button--collapsible": R(r)?.isCollapsible?.value
3219
3272
  }]),
3220
3273
  onClick: a,
3221
3274
  onKeydown: c,
3222
- "aria-expanded": L(r)?.open?.value ? "true" : "false",
3275
+ "aria-expanded": R(r)?.open?.value ? "true" : "false",
3223
3276
  "aria-label": e.label,
3224
- "aria-controls": L(r) ? `${L(r).id}-sidebar` : void 0
3277
+ "aria-controls": R(r) ? `${R(r).id}-sidebar` : void 0
3225
3278
  }, [...n[0] ||= [s("svg", {
3226
3279
  xmlns: "http://www.w3.org/2000/svg",
3227
3280
  viewBox: "0 0 51.26 51.26"
3228
- }, [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)]], 42, ci));
3281
+ }, [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)]], 42, li));
3229
3282
  }
3230
- }), ui = /* @__PURE__ */ u({
3283
+ }), di = /* @__PURE__ */ u({
3231
3284
  __name: "GDetailList",
3232
3285
  props: { variant: { default: "grid" } },
3233
3286
  setup(e) {
3234
3287
  let t = e;
3235
- return (e, n) => (w(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [k(e.$slots, "default")], 2));
3288
+ return (e, n) => (T(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [A(e.$slots, "default")], 2));
3236
3289
  }
3237
- }), di = { class: "g-detail-list-item" }, fi = { class: "g-detail-list-item__label" }, pi = { class: "g-detail-list-item__value" }, mi = /* @__PURE__ */ u({
3290
+ }), fi = { class: "g-detail-list-item" }, pi = { class: "g-detail-list-item__label" }, mi = { class: "g-detail-list-item__value" }, hi = /* @__PURE__ */ u({
3238
3291
  __name: "GDetailListItem",
3239
3292
  props: { label: {} },
3240
3293
  setup(e) {
3241
- return (t, n) => (w(), o("div", di, [s("dt", fi, [k(t.$slots, "label", {}, () => [c(N(e.label), 1)])]), s("dd", pi, [k(t.$slots, "default")])]));
3294
+ return (t, n) => (T(), o("div", fi, [s("dt", pi, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])]), s("dd", mi, [A(t.$slots, "default")])]));
3242
3295
  }
3243
- }), hi = {
3296
+ }), gi = {
3244
3297
  key: 0,
3245
3298
  class: "g-scroll-lock-overlay"
3246
- }, gi = /* @__PURE__ */ u({
3299
+ }, _i = /* @__PURE__ */ u({
3247
3300
  __name: "GOverlay",
3248
3301
  setup(e) {
3249
- let { hasScrollLock: t } = Ke();
3250
- return (e, r) => (w(), i(n, { name: "g-fade" }, {
3251
- default: q(() => [L(t) ? (w(), o("div", hi)) : a("", !0)]),
3302
+ let { hasScrollLock: t } = qe();
3303
+ return (e, r) => (T(), i(n, { name: "g-fade" }, {
3304
+ default: J(() => [R(t) ? (T(), o("div", gi)) : a("", !0)]),
3252
3305
  _: 1
3253
3306
  }));
3254
3307
  }
3255
- }), _i = { class: "popover-content" }, vi = { class: "year-dropdown" }, yi = { class: "month-selector" }, bi = /* @__PURE__ */ u({
3308
+ }), vi = { class: "popover-content" }, yi = { class: "year-dropdown" }, bi = { class: "month-selector" }, xi = /* @__PURE__ */ u({
3256
3309
  __name: "GTermSelectorControl",
3257
3310
  props: /* @__PURE__ */ m({
3258
3311
  termYears: { default: () => ["2026"] },
@@ -3272,8 +3325,8 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3272
3325
  }),
3273
3326
  emits: ["update:modelValue"],
3274
3327
  setup(e) {
3275
- let t = B(e, "modelValue");
3276
- return (n, r) => (w(), o("div", _i, [s("div", vi, [l(Vt, {
3328
+ let t = V(e, "modelValue");
3329
+ return (n, r) => (T(), o("div", vi, [s("div", yi, [l(Ht, {
3277
3330
  modelValue: t.value.year,
3278
3331
  "onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
3279
3332
  options: e.termYears,
@@ -3282,7 +3335,7 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3282
3335
  "modelValue",
3283
3336
  "options",
3284
3337
  "label"
3285
- ])]), s("div", yi, [l(vt, {
3338
+ ])]), s("div", bi, [l(yt, {
3286
3339
  modelValue: t.value.name,
3287
3340
  "onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
3288
3341
  options: e.termNames,
@@ -3294,10 +3347,10 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3294
3347
  "label"
3295
3348
  ])])]));
3296
3349
  }
3297
- }), xi = { class: "g-term-selector" }, Si = { class: "g-term-label" }, Ci = {
3350
+ }), Si = { class: "g-term-selector" }, Ci = { class: "g-term-label" }, wi = {
3298
3351
  class: "g-popover-title",
3299
3352
  tabindex: "-1"
3300
- }, wi = /* @__PURE__ */ u({
3353
+ }, Ti = /* @__PURE__ */ u({
3301
3354
  __name: "GTermSelector",
3302
3355
  props: /* @__PURE__ */ m({
3303
3356
  heading: { default: "Period Selection" },
@@ -3318,21 +3371,21 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3318
3371
  }),
3319
3372
  emits: ["update:modelValue"],
3320
3373
  setup(e) {
3321
- let t = B(e, "modelValue");
3322
- return (n, r) => (w(), o("div", xi, [l(rt, null, {
3323
- trigger: q(({ toggle: e }) => [l(Q, {
3374
+ let t = V(e, "modelValue");
3375
+ return (n, r) => (T(), o("div", Si, [l(it, null, {
3376
+ trigger: J(({ toggle: e }) => [l(Q, {
3324
3377
  class: "g-term-selector-button",
3325
3378
  theme: "none",
3326
3379
  outlined: "",
3327
3380
  onClick: e
3328
3381
  }, {
3329
- default: q(() => [
3382
+ default: J(() => [
3330
3383
  r[0] ||= s("span", { class: "g-calendar-icon" }, [s("svg", {
3331
3384
  role: "none presentation",
3332
3385
  xmlns: "http://www.w3.org/2000/svg",
3333
3386
  viewBox: "0 0 640 640"
3334
3387
  }, [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),
3335
- s("span", Si, N(t.value?.name) + " " + N(t.value?.year), 1),
3388
+ s("span", Ci, P(t.value?.name) + " " + P(t.value?.year), 1),
3336
3389
  r[1] ||= s("span", { class: "g-caret" }, [s("svg", {
3337
3390
  role: "none presentation",
3338
3391
  xmlns: "http://www.w3.org/2000/svg",
@@ -3341,15 +3394,15 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3341
3394
  ]),
3342
3395
  _: 1
3343
3396
  }, 8, ["onClick"])]),
3344
- default: q(() => [s("h2", Ci, N(e.heading), 1), l(bi, v(f(n.$props)), null, 16)]),
3397
+ default: J(() => [s("h2", wi, P(e.heading), 1), l(xi, v(f(n.$props)), null, 16)]),
3345
3398
  _: 1
3346
3399
  })]));
3347
3400
  }
3348
- }), Ti = { class: "g-user-menu" }, Ei = [
3401
+ }), Ei = { class: "g-user-menu" }, Di = [
3349
3402
  "aria-label",
3350
3403
  "aria-expanded",
3351
3404
  "onClick"
3352
- ], Di = { class: "g-user-menu__popover" }, Oi = { class: "g-user-menu__list" }, ki = /* @__PURE__ */ u({
3405
+ ], Oi = { class: "g-user-menu__popover" }, ki = { class: "g-user-menu__list" }, Ai = /* @__PURE__ */ u({
3353
3406
  __name: "GUserMenu",
3354
3407
  props: {
3355
3408
  initials: {},
@@ -3358,36 +3411,36 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3358
3411
  label: { default: "User menu" }
3359
3412
  },
3360
3413
  setup(t) {
3361
- let n = `${z()}-email`, r = D(!1), a = H("emailHeading");
3414
+ let n = `${B()}-email`, r = O(!1), a = U("emailHeading");
3362
3415
  d()?.appContext?.components?.RouterLink;
3363
- let c = V();
3364
- return (u, d) => (w(), o("div", Ti, [l(rt, {
3416
+ let c = H();
3417
+ return (u, d) => (T(), o("div", Ei, [l(it, {
3365
3418
  modelValue: r.value,
3366
3419
  "onUpdate:modelValue": d[0] ||= (e) => r.value = e,
3367
3420
  minimal: ""
3368
3421
  }, {
3369
- trigger: q(({ toggle: e }) => [s("button", {
3422
+ trigger: J(({ toggle: e }) => [s("button", {
3370
3423
  class: "g-user-menu__avatar",
3371
3424
  style: y({ backgroundColor: t.color }),
3372
3425
  "aria-label": t.initials + " - " + t.label,
3373
3426
  "aria-expanded": r.value,
3374
3427
  "aria-haspopup": "menu",
3375
3428
  onClick: e
3376
- }, N(t.initials), 13, Ei)]),
3377
- default: q(() => [s("div", Di, [s("h2", {
3429
+ }, P(t.initials), 13, Di)]),
3430
+ default: J(() => [s("div", Oi, [s("h2", {
3378
3431
  id: n,
3379
3432
  ref_key: "emailHeading",
3380
3433
  ref: a,
3381
3434
  class: "g-user-menu__email",
3382
3435
  tabindex: "-1"
3383
- }, N(t.email), 513), s("nav", {
3436
+ }, P(t.email), 513), s("nav", {
3384
3437
  class: "g-user-menu__nav",
3385
3438
  "aria-labelledby": n
3386
- }, [s("ul", Oi, [(w(!0), o(e, null, O(c.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(A(e)))]))), 128))])])])]),
3439
+ }, [s("ul", ki, [(T(!0), o(e, null, k(c.default(), (e, t) => (T(), o("li", { key: t }, [(T(), i(j(e)))]))), 128))])])])]),
3387
3440
  _: 1
3388
3441
  }, 8, ["modelValue"])]));
3389
3442
  }
3390
- }), Ai = /* @__PURE__ */ u({
3443
+ }), ji = /* @__PURE__ */ u({
3391
3444
  __name: "GCurrencyInput",
3392
3445
  props: /* @__PURE__ */ m({
3393
3446
  label: { default: void 0 },
@@ -3410,8 +3463,8 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3410
3463
  }),
3411
3464
  emits: ["update:modelValue"],
3412
3465
  setup(e) {
3413
- let t = e, n = B(e, "modelValue");
3414
- return (e, r) => (w(), i(Le, h({
3466
+ let t = e, n = V(e, "modelValue");
3467
+ return (e, r) => (T(), i(Re, h({
3415
3468
  modelValue: n.value,
3416
3469
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
3417
3470
  name: t.name,
@@ -3438,7 +3491,7 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3438
3491
  "form-key"
3439
3492
  ]));
3440
3493
  }
3441
- }), ji = /* @__PURE__ */ u({
3494
+ }), Mi = /* @__PURE__ */ u({
3442
3495
  __name: "GEmailInput",
3443
3496
  props: /* @__PURE__ */ m({
3444
3497
  label: { default: void 0 },
@@ -3460,8 +3513,8 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3460
3513
  }),
3461
3514
  emits: ["update:modelValue"],
3462
3515
  setup(e) {
3463
- let t = B(e, "modelValue");
3464
- return (n, r) => (w(), i(Le, h({
3516
+ let t = V(e, "modelValue");
3517
+ return (n, r) => (T(), i(Re, h({
3465
3518
  modelValue: t.value,
3466
3519
  "onUpdate:modelValue": r[0] ||= (e) => t.value = e,
3467
3520
  name: e.name,
@@ -3483,13 +3536,13 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3483
3536
  "instructions"
3484
3537
  ]));
3485
3538
  }
3486
- }), Mi = ["for"], Ni = {
3539
+ }), Ni = ["for"], Pi = {
3487
3540
  key: 0,
3488
3541
  class: "g-file-input-required"
3489
- }, Pi = {
3542
+ }, Fi = {
3490
3543
  key: 0,
3491
3544
  class: "g-file-input-box-header"
3492
- }, Fi = ["id"], Ii = [
3545
+ }, Ii = ["id"], Li = [
3493
3546
  "id",
3494
3547
  "disabled",
3495
3548
  "required",
@@ -3498,11 +3551,11 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3498
3551
  "aria-invalid",
3499
3552
  "aria-describedby",
3500
3553
  "aria-errormessage"
3501
- ], Li = {
3554
+ ], Ri = {
3502
3555
  key: 1,
3503
3556
  class: "g-file-input-pills",
3504
3557
  "aria-label": "Selected files"
3505
- }, Ri = /* @__PURE__ */ u({
3558
+ }, zi = /* @__PURE__ */ u({
3506
3559
  inheritAttrs: !1,
3507
3560
  __name: "GFileInput",
3508
3561
  props: /* @__PURE__ */ m({
@@ -3532,12 +3585,12 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3532
3585
  }),
3533
3586
  emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
3534
3587
  setup(t, { emit: n }) {
3535
- let i = t, u = B(t, "modelValue"), d = z(), { displayErrors: f } = $({
3588
+ let i = t, u = V(t, "modelValue"), d = B(), { displayErrors: f } = $({
3536
3589
  name: i.name,
3537
3590
  value: u,
3538
- errors: F(i, "errors"),
3591
+ errors: I(i, "errors"),
3539
3592
  formKey: i.formKey
3540
- }), p = n, m = D([]);
3593
+ }), p = n, m = O([]);
3541
3594
  function h(e) {
3542
3595
  let t = [];
3543
3596
  if (i.maxFiles !== void 0 && e.length > i.maxFiles && t.push(`You may select at most ${i.maxFiles} file${i.maxFiles === 1 ? "" : "s"}.`), i.maxFileSize !== void 0) {
@@ -3554,19 +3607,19 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3554
3607
  m.value = h(n), u.value = n, p("change", n);
3555
3608
  }
3556
3609
  let v = r(() => [...f.value, ...m.value]), y = r(() => v.value.length > 0), b = r(() => u.value.map((e) => e.name));
3557
- return (n, r) => (w(), o("div", { class: _(["g-file-input-wrap", { "g-file-input-has-error": y.value }]) }, [
3558
- t.label ? (w(), o("label", {
3610
+ return (n, r) => (T(), o("div", { class: _(["g-file-input-wrap", { "g-file-input-has-error": y.value }]) }, [
3611
+ t.label ? (T(), o("label", {
3559
3612
  key: 0,
3560
- for: L(d),
3613
+ for: R(d),
3561
3614
  class: "g-file-input-label"
3562
- }, [c(N(t.label) + " ", 1), t.required ? (w(), o("span", Ni, "*")) : a("", !0)], 8, Mi)) : a("", !0),
3615
+ }, [c(P(t.label) + " ", 1), t.required ? (T(), o("span", Pi, "*")) : a("", !0)], 8, Ni)) : a("", !0),
3563
3616
  s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
3564
- t.instructions ? (w(), o("div", Pi, [s("span", {
3565
- id: "instructions-" + L(d),
3617
+ t.instructions ? (T(), o("div", Fi, [s("span", {
3618
+ id: "instructions-" + R(d),
3566
3619
  class: "g-file-input-instructions"
3567
- }, N(t.instructions), 9, Fi)])) : a("", !0),
3620
+ }, P(t.instructions), 9, Ii)])) : a("", !0),
3568
3621
  s("input", {
3569
- id: L(d),
3622
+ id: R(d),
3570
3623
  type: "file",
3571
3624
  class: "g-file-input",
3572
3625
  disabled: t.disabled,
@@ -3574,11 +3627,11 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3574
3627
  accept: t.accept || void 0,
3575
3628
  multiple: t.multiple,
3576
3629
  "aria-invalid": y.value ? "true" : "false",
3577
- "aria-describedby": t.instructions ? "instructions-" + L(d) : void 0,
3578
- "aria-errormessage": y.value ? "error-message-" + L(d) : void 0,
3630
+ "aria-describedby": t.instructions ? "instructions-" + R(d) : void 0,
3631
+ "aria-errormessage": y.value ? "error-message-" + R(d) : void 0,
3579
3632
  onChange: g
3580
- }, null, 40, Ii),
3581
- t.multiple && b.value.length > 0 ? (w(), o("ul", Li, [(w(!0), o(e, null, O(b.value, (e) => (w(), o("li", {
3633
+ }, null, 40, Li),
3634
+ t.multiple && b.value.length > 0 ? (T(), o("ul", Ri, [(T(!0), o(e, null, k(b.value, (e) => (T(), o("li", {
3582
3635
  key: e,
3583
3636
  class: "g-file-input-pill"
3584
3637
  }, [r[0] ||= s("svg", {
@@ -3586,15 +3639,15 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3586
3639
  role: "none presentation",
3587
3640
  xmlns: "http://www.w3.org/2000/svg",
3588
3641
  viewBox: "0 0 640 640"
3589
- }, [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(" " + N(e), 1)]))), 128))])) : a("", !0)
3642
+ }, [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)
3590
3643
  ], 2),
3591
- l(Ae, {
3644
+ l(je, {
3592
3645
  errors: v.value,
3593
- id: "error-message-" + L(d)
3646
+ id: "error-message-" + R(d)
3594
3647
  }, null, 8, ["errors", "id"])
3595
3648
  ], 2));
3596
3649
  }
3597
- }), zi = /* @__PURE__ */ u({
3650
+ }), Bi = /* @__PURE__ */ u({
3598
3651
  __name: "GDateInput",
3599
3652
  props: /* @__PURE__ */ m({
3600
3653
  label: { default: void 0 },
@@ -3617,8 +3670,8 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3617
3670
  }),
3618
3671
  emits: ["update:modelValue"],
3619
3672
  setup(e) {
3620
- let t = e, n = B(e, "modelValue");
3621
- return (e, r) => (w(), i(Le, h({
3673
+ let t = e, n = V(e, "modelValue");
3674
+ return (e, r) => (T(), i(Re, h({
3622
3675
  modelValue: n.value,
3623
3676
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
3624
3677
  name: t.name,
@@ -3642,21 +3695,21 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3642
3695
  "form-key"
3643
3696
  ]));
3644
3697
  }
3645
- }), Bi = { class: "g-date-range-input" }, Vi = {
3698
+ }), Vi = { class: "g-date-range-input" }, Hi = {
3646
3699
  key: 0,
3647
3700
  class: "g-date-range-input__label"
3648
- }, Hi = {
3701
+ }, Ui = {
3649
3702
  key: 0,
3650
3703
  class: "g-date-range-input__required",
3651
3704
  "aria-hidden": "true"
3652
- }, Ui = {
3705
+ }, Wi = {
3653
3706
  key: 1,
3654
3707
  class: "g-date-range-input__instructions"
3655
- }, Wi = { class: "g-date-range-input__fields" }, Gi = {
3708
+ }, Gi = { class: "g-date-range-input__fields" }, Ki = {
3656
3709
  key: 2,
3657
3710
  class: "g-date-range-input__errors",
3658
3711
  role: "alert"
3659
- }, Ki = /* @__PURE__ */ u({
3712
+ }, qi = /* @__PURE__ */ u({
3660
3713
  __name: "GDateRangeInput",
3661
3714
  props: /* @__PURE__ */ m({
3662
3715
  label: { default: void 0 },
@@ -3683,23 +3736,23 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3683
3736
  }),
3684
3737
  emits: ["update:modelValue"],
3685
3738
  setup(t) {
3686
- let n = t, r = B(t, "modelValue"), i = D(r.value.start || null), u = D(r.value.end || null), { displayErrors: d } = $({
3739
+ let n = t, r = V(t, "modelValue"), i = O(r.value.start || null), u = O(r.value.end || null), { displayErrors: d } = $({
3687
3740
  name: n.name,
3688
3741
  value: r,
3689
- errors: F(n, "errors"),
3742
+ errors: I(n, "errors"),
3690
3743
  formKey: n.formKey
3691
3744
  });
3692
- return G([i, u], () => {
3745
+ return K([i, u], () => {
3693
3746
  r.value = {
3694
3747
  start: i.value,
3695
3748
  end: u.value
3696
3749
  };
3697
- }), G(r, (e) => {
3750
+ }), K(r, (e) => {
3698
3751
  e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
3699
- }, { deep: !0 }), (t, r) => (w(), o("div", Bi, [
3700
- n.label ? (w(), o("div", Vi, [c(N(n.label), 1), n.required ? (w(), o("span", Hi, " *")) : a("", !0)])) : a("", !0),
3701
- n.instructions ? (w(), o("div", Ui, N(n.instructions), 1)) : a("", !0),
3702
- s("div", Wi, [l(zi, {
3752
+ }, { deep: !0 }), (t, r) => (T(), o("div", Vi, [
3753
+ n.label ? (T(), o("div", Hi, [c(P(n.label), 1), n.required ? (T(), o("span", Ui, " *")) : a("", !0)])) : a("", !0),
3754
+ n.instructions ? (T(), o("div", Wi, P(n.instructions), 1)) : a("", !0),
3755
+ s("div", Gi, [l(Bi, {
3703
3756
  modelValue: i.value,
3704
3757
  "onUpdate:modelValue": r[0] ||= (e) => i.value = e,
3705
3758
  label: n.startLabel,
@@ -3711,7 +3764,7 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3711
3764
  "label",
3712
3765
  "disabled",
3713
3766
  "required"
3714
- ]), l(zi, {
3767
+ ]), l(Bi, {
3715
3768
  modelValue: u.value,
3716
3769
  "onUpdate:modelValue": r[1] ||= (e) => u.value = e,
3717
3770
  label: n.endLabel,
@@ -3724,13 +3777,13 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3724
3777
  "disabled",
3725
3778
  "required"
3726
3779
  ])]),
3727
- L(d).length > 0 ? (w(), o("div", Gi, [(w(!0), o(e, null, O(L(d), (e, t) => (w(), o("div", {
3780
+ R(d).length > 0 ? (T(), o("div", Ki, [(T(!0), o(e, null, k(R(d), (e, t) => (T(), o("div", {
3728
3781
  key: t,
3729
3782
  class: "g-date-range-input__error"
3730
- }, N(e), 1))), 128))])) : a("", !0)
3783
+ }, P(e), 1))), 128))])) : a("", !0)
3731
3784
  ]));
3732
3785
  }
3733
- }), qi = ["action", "method"], Ji = /* @__PURE__ */ u({
3786
+ }), Ji = ["action", "method"], Yi = /* @__PURE__ */ u({
3734
3787
  __name: "GForm",
3735
3788
  props: /* @__PURE__ */ m({
3736
3789
  action: { default: void 0 },
@@ -3742,10 +3795,10 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3742
3795
  }),
3743
3796
  emits: /* @__PURE__ */ m(["submit"], ["update:modelValue"]),
3744
3797
  setup(e, { emit: t }) {
3745
- let n = e, r = B(e, "modelValue"), i = t, a = p("form", null), s = a ?? (de() ? Oe(n.formKey) : Ee());
3746
- a || T("form", s), G(() => s.values.value, (e) => {
3798
+ let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (fe() ? ke(n.formKey) : De());
3799
+ a || E("form", s), K(() => s.values.value, (e) => {
3747
3800
  r.value = { ...e };
3748
- }, { deep: !0 }), G(() => r.value, (e) => {
3801
+ }, { deep: !0 }), K(() => r.value, (e) => {
3749
3802
  e && Object.entries(e).forEach(([e, t]) => {
3750
3803
  let n = s.fields[e];
3751
3804
  n && n.value.value !== t && (n.value.value = t);
@@ -3759,20 +3812,20 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3759
3812
  i("submit", e);
3760
3813
  });
3761
3814
  }
3762
- return (e, t) => (w(), o("form", {
3815
+ return (e, t) => (T(), o("form", {
3763
3816
  onSubmit: c,
3764
3817
  action: n.action,
3765
3818
  method: n.method,
3766
3819
  class: "g-form",
3767
3820
  novalidate: ""
3768
- }, [k(e.$slots, "default", {
3769
- isSubmitting: L(s).isSubmitting.value,
3770
- hasErrors: L(s).hasErrors.value,
3771
- values: L(s).values.value,
3772
- errors: L(s).errors.value
3773
- })], 40, qi));
3821
+ }, [A(e.$slots, "default", {
3822
+ isSubmitting: R(s).isSubmitting.value,
3823
+ hasErrors: R(s).hasErrors.value,
3824
+ values: R(s).values.value,
3825
+ errors: R(s).errors.value
3826
+ })], 40, Ji));
3774
3827
  }
3775
- }), Yi = /* @__PURE__ */ u({
3828
+ }), Xi = /* @__PURE__ */ u({
3776
3829
  __name: "GSubmitButton",
3777
3830
  props: {
3778
3831
  disabled: {
@@ -3784,32 +3837,32 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3784
3837
  formKey: { default: "default" }
3785
3838
  },
3786
3839
  setup(e) {
3787
- let t = e, n = R(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (de() ? Oe(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
3788
- return (e, n) => (w(), i(Q, {
3840
+ 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() ? ke(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
3841
+ return (e, n) => (T(), i(Q, {
3789
3842
  type: "submit",
3790
3843
  disabled: u.value,
3791
3844
  variant: t.variant,
3792
3845
  class: "g-submit-button"
3793
3846
  }, {
3794
- default: q(() => [J(s("span", null, N(t.loadingText), 513), [[W, d.value]]), J(s("span", null, [k(e.$slots, "default", {}, () => [n[0] ||= c("Submit", -1)])], 512), [[W, !d.value]])]),
3847
+ default: J(() => [Y(s("span", null, P(t.loadingText), 513), [[G, d.value]]), Y(s("span", null, [A(e.$slots, "default", {}, () => [n[0] ||= c("Submit", -1)])], 512), [[G, !d.value]])]),
3795
3848
  _: 3
3796
3849
  }, 8, ["disabled", "variant"]));
3797
3850
  }
3798
- }), Xi = {
3851
+ }), Zi = {
3799
3852
  key: 0,
3800
3853
  class: "g-checkbox-group__legend"
3801
- }, Zi = {
3854
+ }, Qi = {
3802
3855
  key: 0,
3803
3856
  class: "g-checkbox-group__required",
3804
3857
  "aria-hidden": "true"
3805
- }, Qi = {
3858
+ }, $i = {
3806
3859
  key: 1,
3807
3860
  class: "g-checkbox-group__label"
3808
- }, $i = {
3861
+ }, ea = {
3809
3862
  key: 0,
3810
3863
  class: "g-checkbox-group__required",
3811
3864
  "aria-hidden": "true"
3812
- }, ea = ["id"], ta = { class: "g-checkbox-group__options" }, na = ["for"], ra = [
3865
+ }, ta = ["id"], na = { class: "g-checkbox-group__options" }, ra = ["for"], ia = [
3813
3866
  "id",
3814
3867
  "type",
3815
3868
  "name",
@@ -3818,7 +3871,7 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3818
3871
  "disabled",
3819
3872
  "required",
3820
3873
  "onChange"
3821
- ], ia = { class: "g-checkbox-group__label-text" }, aa = ["id"], oa = /* @__PURE__ */ u({
3874
+ ], aa = { class: "g-checkbox-group__label-text" }, oa = ["id"], sa = /* @__PURE__ */ u({
3822
3875
  __name: "GCheckboxGroup",
3823
3876
  props: /* @__PURE__ */ m({
3824
3877
  label: { default: void 0 },
@@ -3841,10 +3894,10 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3841
3894
  }),
3842
3895
  emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
3843
3896
  setup(t, { emit: n }) {
3844
- let u = t, d = B(t, "modelValue"), f = z(), { displayErrors: p, hasErrors: m } = $({
3897
+ let u = t, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } = $({
3845
3898
  name: u.name,
3846
3899
  value: d,
3847
- errors: F(u, "errors"),
3900
+ errors: I(u, "errors"),
3848
3901
  formKey: u.formKey
3849
3902
  }), g = n;
3850
3903
  function v(e) {
@@ -3854,7 +3907,7 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3854
3907
  let n;
3855
3908
  n = u.radio ? t ? [e] : [] : t ? d.value.includes(e) ? d.value : [...d.value, e] : d.value.filter((t) => t !== e), d.value = n, g("change", n);
3856
3909
  }
3857
- let b = r(() => u.radio ? "radio" : "checkbox"), x = r(() => `error-message-${f}`), S = r(() => `instructions-${f}`), C = r(() => u.radio || u.options.length > 1), T = r(() => {
3910
+ let b = r(() => u.radio ? "radio" : "checkbox"), x = r(() => `error-message-${f}`), S = r(() => `instructions-${f}`), C = r(() => u.radio || u.options.length > 1), w = r(() => {
3858
3911
  let e = [];
3859
3912
  return u.instructions && e.push(S.value), u.radio ? {
3860
3913
  role: "radiogroup",
@@ -3869,7 +3922,7 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3869
3922
  function D(e) {
3870
3923
  return `${f}-input-${e}`;
3871
3924
  }
3872
- function k(e, t) {
3925
+ function O(e, t) {
3873
3926
  let n = [];
3874
3927
  return !u.radio && u.instructions && n.push(S.value), e.hint && n.push(E(t)), u.radio ? { "aria-describedby": n.length ? n.join(" ") : void 0 } : {
3875
3928
  "aria-describedby": n.length ? n.join(" ") : void 0,
@@ -3878,15 +3931,15 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3878
3931
  "aria-errormessage": m.value ? x.value : void 0
3879
3932
  };
3880
3933
  }
3881
- return (n, r) => (w(), i(A(C.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": L(m) }] }, T.value), {
3882
- default: q(() => [
3883
- C.value && t.label ? (w(), o("legend", Xi, [c(N(t.label), 1), t.required ? (w(), o("span", Zi, "\xA0*")) : a("", !0)])) : !C.value && t.label ? (w(), o("div", Qi, [c(N(t.label), 1), t.required ? (w(), o("span", $i, "\xA0*")) : a("", !0)])) : a("", !0),
3884
- t.instructions ? (w(), o("div", {
3934
+ return (n, r) => (T(), i(j(C.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": R(m) }] }, w.value), {
3935
+ default: J(() => [
3936
+ C.value && t.label ? (T(), o("legend", Zi, [c(P(t.label), 1), t.required ? (T(), o("span", Qi, "\xA0*")) : a("", !0)])) : !C.value && t.label ? (T(), o("div", $i, [c(P(t.label), 1), t.required ? (T(), o("span", ea, "\xA0*")) : a("", !0)])) : a("", !0),
3937
+ t.instructions ? (T(), o("div", {
3885
3938
  key: 2,
3886
3939
  id: S.value,
3887
3940
  class: "g-checkbox-group__instructions"
3888
- }, N(t.instructions), 9, ea)) : a("", !0),
3889
- s("div", ta, [(w(!0), o(e, null, O(t.options, (e, n) => (w(), o("div", {
3941
+ }, P(t.instructions), 9, ta)) : a("", !0),
3942
+ s("div", na, [(T(!0), o(e, null, k(t.options, (e, n) => (T(), o("div", {
3890
3943
  key: e.value,
3891
3944
  class: _(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": e.disabled }])
3892
3945
  }, [s("label", {
@@ -3895,30 +3948,30 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3895
3948
  }, [s("input", h({
3896
3949
  id: D(n),
3897
3950
  type: b.value,
3898
- name: t.name || L(f),
3951
+ name: t.name || R(f),
3899
3952
  value: e.value,
3900
3953
  checked: v(e.value),
3901
3954
  disabled: e.disabled,
3902
3955
  required: t.required && (t.radio && n === 0 || !t.radio && t.options.length === 1),
3903
3956
  class: "g-checkbox-group__input"
3904
- }, { ref_for: !0 }, k(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16, ra), s("span", ia, N(e.label), 1)], 10, na), e.hint ? (w(), o("div", {
3957
+ }, { ref_for: !0 }, O(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16, ia), s("span", aa, P(e.label), 1)], 10, ra), e.hint ? (T(), o("div", {
3905
3958
  key: 0,
3906
3959
  id: E(n),
3907
3960
  class: "g-checkbox-group__hint"
3908
- }, N(e.hint), 9, aa)) : a("", !0)], 2))), 128))]),
3909
- l(Ae, {
3910
- errors: L(p),
3961
+ }, P(e.hint), 9, oa)) : a("", !0)], 2))), 128))]),
3962
+ l(je, {
3963
+ errors: R(p),
3911
3964
  id: x.value
3912
3965
  }, null, 8, ["errors", "id"])
3913
3966
  ]),
3914
3967
  _: 1
3915
3968
  }, 16, ["class"]));
3916
3969
  }
3917
- }), sa = ["for"], ca = {
3970
+ }), ca = ["for"], la = {
3918
3971
  key: 0,
3919
3972
  class: "g-textarea-required",
3920
3973
  "aria-hidden": "true"
3921
- }, la = ["id"], ua = [
3974
+ }, ua = ["id"], da = [
3922
3975
  "value",
3923
3976
  "placeholder",
3924
3977
  "disabled",
@@ -3927,11 +3980,11 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3927
3980
  "rows",
3928
3981
  "maxlength",
3929
3982
  "aria-invalid"
3930
- ], da = {
3983
+ ], fa = {
3931
3984
  key: 2,
3932
3985
  class: "g-textarea-char-count",
3933
3986
  "aria-live": "polite"
3934
- }, fa = /* @__PURE__ */ u({
3987
+ }, pa = /* @__PURE__ */ u({
3935
3988
  inheritAttrs: !1,
3936
3989
  __name: "GTextarea",
3937
3990
  props: /* @__PURE__ */ m({
@@ -3965,17 +4018,17 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3965
4018
  }),
3966
4019
  emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
3967
4020
  setup(e, { emit: t }) {
3968
- let n = e, i = B(e, "modelValue"), u = z(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = fe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: v, hasErrors: y } = $({
4021
+ 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 } = $({
3969
4022
  name: n.name,
3970
4023
  value: i,
3971
- errors: F(n, "errors"),
4024
+ errors: I(n, "errors"),
3972
4025
  formKey: n.formKey
3973
- }), b = t, x = H("textareaEl");
4026
+ }), b = t, x = U("textareaEl");
3974
4027
  function S() {
3975
4028
  let e = x.value;
3976
4029
  e && (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
3977
4030
  }
3978
- G(() => i.value, () => {
4031
+ K(() => i.value, () => {
3979
4032
  n.autoGrow && g(S);
3980
4033
  });
3981
4034
  function C(e) {
@@ -3987,7 +4040,7 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3987
4040
  });
3988
4041
  }
3989
4042
  }
3990
- function T(e) {
4043
+ function w(e) {
3991
4044
  i.value = e.target.value, n.autoGrow && S();
3992
4045
  }
3993
4046
  function E(e) {
@@ -3999,17 +4052,17 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
3999
4052
  C(t), n.autoGrow && S();
4000
4053
  }, 0);
4001
4054
  }
4002
- return (t, r) => (w(), o("div", { class: _(["g-textarea-wrap", { "g-textarea-has-error": L(y) }]) }, [
4003
- n.label ? (w(), o("label", {
4055
+ return (t, r) => (T(), o("div", { class: _(["g-textarea-wrap", { "g-textarea-has-error": R(y) }]) }, [
4056
+ n.label ? (T(), o("label", {
4004
4057
  key: 0,
4005
4058
  for: m.value,
4006
4059
  class: "g-textarea-label"
4007
- }, [c(N(n.label), 1), n.required ? (w(), o("span", ca, " *")) : a("", !0)], 8, sa)) : a("", !0),
4008
- t.$slots.instructions || e.instructions ? (w(), o("div", {
4060
+ }, [c(P(n.label), 1), n.required ? (T(), o("span", la, " *")) : a("", !0)], 8, ca)) : a("", !0),
4061
+ t.$slots.instructions || e.instructions ? (T(), o("div", {
4009
4062
  key: 1,
4010
- id: "instructions-" + L(u),
4063
+ id: "instructions-" + R(u),
4011
4064
  class: "g-textarea-instructions"
4012
- }, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8, la)) : a("", !0),
4065
+ }, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, ua)) : a("", !0),
4013
4066
  s("textarea", h({
4014
4067
  ref: "textareaEl",
4015
4068
  value: i.value ?? "",
@@ -4021,38 +4074,38 @@ var vr = { class: "g-table-outer-wrap" }, yr = {
4021
4074
  maxlength: n.maxlength ?? void 0,
4022
4075
  class: "g-textarea"
4023
4076
  }, {
4024
- ...L(p),
4077
+ ...R(p),
4025
4078
  id: m.value,
4026
- "aria-describedby": t.$slots.instructions || e.instructions ? "instructions-" + L(u) : void 0,
4027
- "aria-errormessage": L(y) ? "error-message-" + L(u) : void 0
4079
+ "aria-describedby": t.$slots.instructions || e.instructions ? "instructions-" + R(u) : void 0,
4080
+ "aria-errormessage": R(y) ? "error-message-" + R(u) : void 0
4028
4081
  }, {
4029
- "aria-invalid": L(y) ? "true" : "false",
4030
- onInput: T,
4082
+ "aria-invalid": R(y) ? "true" : "false",
4083
+ onInput: w,
4031
4084
  onBlur: E,
4032
4085
  onPaste: D
4033
- }), null, 16, ua),
4034
- n.maxlength === void 0 ? a("", !0) : (w(), o("div", da, N((i.value ?? "").length) + " / " + N(n.maxlength), 1)),
4035
- l(Ae, {
4036
- errors: L(v),
4037
- id: "error-message-" + L(u)
4086
+ }), null, 16, da),
4087
+ n.maxlength === void 0 ? a("", !0) : (T(), o("div", fa, P((i.value ?? "").length) + " / " + P(n.maxlength), 1)),
4088
+ l(je, {
4089
+ errors: R(v),
4090
+ id: "error-message-" + R(u)
4038
4091
  }, null, 8, ["errors", "id"])
4039
4092
  ], 2));
4040
4093
  }
4041
4094
  });
4042
4095
  //#endregion
4043
4096
  //#region src/compose/useActiveLink.ts
4044
- function pa(e, t, n) {
4097
+ function ma(e, t, n) {
4045
4098
  let r = [
4046
4099
  0,
4047
4100
  .25,
4048
4101
  .5,
4049
4102
  .75,
4050
4103
  1
4051
- ], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = D(Array.from(te(e)?.children || []));
4052
- se(e, () => {
4053
- o.value = Array.from(te(e)?.children || []);
4104
+ ], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = O(Array.from(ne(e)?.children || []));
4105
+ ce(e, () => {
4106
+ o.value = Array.from(ne(e)?.children || []);
4054
4107
  }, { childList: !0 });
4055
- let { stop: s } = ae(o, (e) => {
4108
+ let { stop: s } = oe(o, (e) => {
4056
4109
  let t = o.value[o.value.length - 1];
4057
4110
  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);
4058
4111
  let r = null, i = 0;
@@ -4071,8 +4124,8 @@ function pa(e, t, n) {
4071
4124
  }
4072
4125
  //#endregion
4073
4126
  //#region src/compose/useSidebar.ts
4074
- function ma(e = "(max-width: 800px)") {
4075
- let t = z(), n = D(!1), r = oe(e, { ssrWidth: 1e3 });
4127
+ function ha(e = "(max-width: 800px)") {
4128
+ let t = B(), n = O(!1), r = se(e, { ssrWidth: 1e3 });
4076
4129
  function i(e) {
4077
4130
  if (!r.value || !n.value) return;
4078
4131
  let i = e.target, a = document.getElementById(`${t}-sidebar`);
@@ -4088,7 +4141,7 @@ function ma(e = "(max-width: 800px)") {
4088
4141
  }, 5));
4089
4142
  }
4090
4143
  return S(() => {
4091
- G(r, (e) => {
4144
+ K(r, (e) => {
4092
4145
  e ? (document.addEventListener("mousedown", i), document.addEventListener("focusin", a)) : (document.removeEventListener("mousedown", i), document.removeEventListener("focusin", a));
4093
4146
  }, { immediate: !0 });
4094
4147
  }), x(() => {
@@ -4102,10 +4155,10 @@ function ma(e = "(max-width: 800px)") {
4102
4155
  }
4103
4156
  //#endregion
4104
4157
  //#region src/compose/useTableChanges.ts
4105
- function ha() {
4106
- let e = j(/* @__PURE__ */ new Map()), t = X(), n = (n) => {
4158
+ function ga() {
4159
+ let e = M(/* @__PURE__ */ new Map()), t = ee(), n = (n) => {
4107
4160
  let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
4108
- e.has(i) || e.set(i, j(/* @__PURE__ */ new Map()));
4161
+ e.has(i) || e.set(i, M(/* @__PURE__ */ new Map()));
4109
4162
  let s = e.get(i), c = s.get(r), l = c ? c.previousValue : o, u = c?.error;
4110
4163
  if (a === l) s.delete(r), s.size === 0 && e.delete(i), t.trigger({
4111
4164
  rowKey: i,
@@ -4205,6 +4258,6 @@ function ha() {
4205
4258
  };
4206
4259
  }
4207
4260
  //#endregion
4208
- export { Oe as $, Qn as A, Vt as B, mr as C, gr as D, pr as E, mn as F, rt as G, Ct as H, un as I, Ze as J, $e as K, cn as L, Sn as M, _n as N, _r as O, hn as P, $ as Q, an as R, Kr as S, hr as T, vt as U, kt as V, dt as W, Ke as X, Ge as Y, Le as Z, mi as _, oa as a, si as b, Ki as c, ji as d, Ee as et, Ai as f, gi as g, bi as h, fa as i, Q as it, Ln as j, dr as k, zi as l, wi as m, ma as n, be as nt, Yi as o, ki as p, Qe as q, pa as r, ye as rt, Ji as s, ha as t, Te as tt, Ri as u, ui as v, fr as w, ti as x, li as y, Zt as z };
4261
+ export { ke as $, $n as A, Ht as B, hr as C, _r as D, mr as E, hn as F, it as G, wt as H, dn as I, Qe as J, et as K, ln as L, Cn as M, vn as N, vr as O, gn as P, $ as Q, on as R, qr as S, gr as T, yt as U, At as V, ft as W, qe as X, Ke as Y, Re as Z, hi as _, sa as a, ci as b, qi as c, Mi as d, De as et, ji as f, _i as g, xi as h, pa as i, Q as it, Rn as j, fr as k, Bi as l, Ti as m, ha as n, xe as nt, Xi as o, Ai as p, $e as q, ma as r, be as rt, Yi as s, ga as t, Ee as tt, zi as u, di as v, pr as w, ni as x, ui as y, Qt as z };
4209
4262
 
4210
- //# sourceMappingURL=grad-vue-DuwqGzJU.js.map
4263
+ //# sourceMappingURL=grad-vue-DmUhI4Ja.js.map