@illinois-grad/grad-vue 3.0.3 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
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 ee, watch as W, watchEffect as G, withCtx as K, withDirectives as q, withModifiers as J } from "vue";
2
- import { createEventHook as Y, toArray as te, tryOnScopeDispose as X, unrefElement as Z, 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";
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
3
  import { createFocusTrap as ue } from "focus-trap";
4
4
  //#region src/compose/useCustomElementAttrs.ts
5
5
  function de() {
@@ -79,7 +79,7 @@ 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: K(() => [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: q(() => [t.icon || a.icon ? (w(), o(e, { key: 0 }, [s("span", pe, [a.icon ? k(r.$slots, "icon", { key: 0 }) : (w(), o("span", {
83
83
  key: 1,
84
84
  class: _(t.icon + " g-btn--icon-span"),
85
85
  "aria-hidden": "true"
@@ -216,23 +216,31 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
216
216
  name: "GTreeMenuList",
217
217
  props: { listType: { default: void 0 } },
218
218
  setup(e) {
219
- let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul");
220
- return (e, t) => (w(), i(A(a.value), { class: "g-tree-menu__list" }, {
221
- default: K(() => [k(e.$slots, "default")]),
219
+ let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o = de(), s = d();
220
+ return S(() => {
221
+ if (!o) return;
222
+ let e = s?.ce;
223
+ 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,
226
+ class: "g-tree-menu__list"
227
+ }, {
228
+ default: q(() => [k(e.$slots, "default")]),
222
229
  _: 3
223
- }));
230
+ }, 8, ["role"]));
224
231
  }
225
- }), xe = ["data-tree-expandable"], Se = {
232
+ }), xe = {
226
233
  key: 0,
227
234
  class: "g-tree-menu__row"
228
- }, Ce = { class: "g-tree-menu__row-content-text" }, we = {
235
+ }, Se = { class: "g-tree-menu__row-content-text" }, Ce = {
229
236
  key: 1,
230
237
  class: "g-tree-menu__row g-tree-menu__row--leaf"
231
- }, Te = {
238
+ }, we = {
232
239
  class: "g-tree-menu__row-content",
233
240
  "data-tree-primary": ""
234
- }, Ee = /* @__PURE__ */ u({
241
+ }, Te = /* @__PURE__ */ u({
235
242
  name: "GTreeMenuItem",
243
+ inheritAttrs: !1,
236
244
  props: {
237
245
  label: {},
238
246
  expanded: {
@@ -242,86 +250,99 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
242
250
  },
243
251
  emits: ["expand", "collapse"],
244
252
  setup(e, { emit: t }) {
245
- let n = e, c = t, l = V(), u = d(), f = z(), m = (u?.ce)?._slots?.children?.length > 0, h = r(() => !!l.children || m), g = p("g-tree-menu-expanded-storage", null);
246
- function v() {
247
- if (g && n.label !== void 0) {
248
- if (g.value[n.label] === !0) return !0;
249
- n.expanded && (g.value[n.label] = !0);
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);
254
+ function y() {
255
+ if (v && n.label !== void 0) {
256
+ if (v.value[n.label] === !0) return !0;
257
+ n.expanded && (v.value[n.label] = !0);
250
258
  }
251
259
  return n.expanded;
252
260
  }
253
- let y = D(v());
254
- W(() => n.expanded, (e) => {
255
- g && n.label !== void 0 || (y.value = e);
256
- }), W(y, (e) => {
257
- g && n.label !== void 0 && (e ? g.value[n.label] = !0 : delete g.value[n.label]), T();
261
+ let b = D(y());
262
+ G(() => n.expanded, (e) => {
263
+ v && n.label !== void 0 || (b.value = e);
264
+ }), G(b, (e) => {
265
+ v && n.label !== void 0 && (e ? v.value[n.label] = !0 : delete v.value[n.label]), E();
258
266
  });
259
- let b = D(null);
260
- function T() {
261
- if (!h.value || !b.value) return;
262
- let e = b.value.querySelector("a, button");
263
- e ? (e.setAttribute("aria-controls", f + "-children"), e.setAttribute("aria-expanded", y.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.");
264
- }
265
- S(T), C(T);
267
+ let T = D(null);
266
268
  function E() {
267
- y.value = !y.value, y.value ? c("expand") : c("collapse");
269
+ if (!g.value || !T.value) return;
270
+ let e = T.value.querySelector("a, button");
271
+ 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.");
268
272
  }
269
- let O = Symbol(), A = p("g-tree-menu-expandable-items", null), j = p("g-tree-menu-expand-all-signal", null), M = D(0);
270
- function N() {
271
- A && h.value && A.set(O, y.value);
273
+ S(E), C(E);
274
+ function O() {
275
+ b.value = !b.value, b.value ? c("expand") : c("collapse");
272
276
  }
273
- function P() {
274
- A?.delete(O);
277
+ let j = Symbol(), M = p("g-tree-menu-expandable-items", null), N = p("g-tree-menu-expand-all-signal", null), P = D(0);
278
+ function F() {
279
+ M && g.value && M.set(j, b.value);
280
+ }
281
+ function I() {
282
+ M?.delete(j);
275
283
  }
276
- W(y, (e) => {
277
- A && h.value && A.set(O, e);
278
- }), j && W(() => j.value.version, () => {
279
- h.value && (y.value = j.value.expanded, M.value = j.value.version);
284
+ G(b, (e) => {
285
+ M && g.value && M.set(j, e);
286
+ }), N && G(() => N.value.version, () => {
287
+ g.value && (b.value = N.value.expanded, P.value = N.value.version);
280
288
  }), S(() => {
281
- N(), j && h.value && j.value.version > M.value && j.value.expanded && (y.value = !0, M.value = j.value.version);
289
+ F(), N && g.value && N.value.version > P.value && N.value.expanded && (b.value = !0, P.value = N.value.version);
282
290
  }), x(() => {
283
- P();
291
+ I();
284
292
  });
285
- function F(e) {
286
- e.target.closest("a") || E();
293
+ function B(e) {
294
+ e.target.closest("a") || O();
287
295
  }
288
- function I(e) {
289
- (e.key === "Enter" || e.key === " ") && (E(), e.preventDefault());
296
+ function H(e) {
297
+ (e.key === "Enter" || e.key === " ") && (O(), e.preventDefault());
290
298
  }
291
- return (e, t) => (w(), o("li", {
299
+ let U = de(), W = u?.ce;
300
+ S(() => {
301
+ U && W && W.setAttribute("role", "listitem");
302
+ });
303
+ let K = R(), J = r(() => {
304
+ if (!U) return K;
305
+ let { role: e, ...t } = K;
306
+ return t;
307
+ });
308
+ return (e, t) => (w(), i(A(L(U) ? "div" : "li"), h(J.value, {
309
+ role: L(U) ? "presentation" : void 0,
292
310
  class: "g-tree-menu__item",
293
- "data-tree-expandable": h.value ? "true" : void 0
294
- }, [h.value ? (w(), o("div", Se, [s("div", {
295
- class: "g-tree-menu__toggle-btn",
296
- onClick: E
297
- }, [(w(), o("svg", {
298
- class: _(["g-tree-menu__chevron", { "g-tree-menu__chevron--expanded": y.value }]),
299
- role: "none presentation",
300
- viewBox: "0 0 24 24",
301
- fill: "none",
302
- stroke: "currentColor",
303
- "stroke-width": "2.5",
304
- "stroke-linecap": "round",
305
- "stroke-linejoin": "round"
306
- }, [...t[0] ||= [s("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))]), s("span", {
307
- ref_key: "contentRef",
308
- ref: b,
309
- class: "g-tree-menu__row-content",
310
- "data-tree-primary": "",
311
- onClick: F,
312
- onKeydown: I
313
- }, [s("span", Ce, [k(e.$slots, "default")])], 544)])) : (w(), o("div", we, [t[1] ||= s("span", { class: "g-tree-menu__spacer" }, null, -1), s("span", Te, [k(e.$slots, "default")])])), h.value && y.value ? (w(), i(be, {
314
- key: 2,
315
- id: L(f) + "-children"
316
- }, {
317
- default: K(() => [k(e.$slots, "children")]),
311
+ "data-tree-expandable": g.value ? "true" : void 0
312
+ }), {
313
+ default: q(() => [g.value ? (w(), o("div", xe, [s("div", {
314
+ class: "g-tree-menu__toggle-btn",
315
+ onClick: O
316
+ }, [(w(), o("svg", {
317
+ class: _(["g-tree-menu__chevron", { "g-tree-menu__chevron--expanded": b.value }]),
318
+ role: "none presentation",
319
+ viewBox: "0 0 24 24",
320
+ fill: "none",
321
+ stroke: "currentColor",
322
+ "stroke-width": "2.5",
323
+ "stroke-linecap": "round",
324
+ "stroke-linejoin": "round"
325
+ }, [...t[0] ||= [s("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))]), s("span", {
326
+ ref_key: "contentRef",
327
+ ref: T,
328
+ class: "g-tree-menu__row-content",
329
+ "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, {
333
+ key: 2,
334
+ id: L(f) + "-children"
335
+ }, {
336
+ default: q(() => [k(e.$slots, "children")]),
337
+ _: 3
338
+ }, 8, ["id"])) : a("", !0)]),
318
339
  _: 3
319
- }, 8, ["id"])) : a("", !0)], 8, xe));
340
+ }, 16, ["role", "data-tree-expandable"]));
320
341
  }
321
342
  });
322
343
  //#endregion
323
344
  //#region src/compose/useForm.ts
324
- function De() {
345
+ function Ee() {
325
346
  let e = j({}), t = D(!1), n = r(() => {
326
347
  let t = {};
327
348
  return Object.entries(e).forEach(([e, n]) => {
@@ -363,18 +384,18 @@ function De() {
363
384
  }
364
385
  //#endregion
365
386
  //#region src/compose/useWebComponentForm.ts
366
- function Oe() {
387
+ function De() {
367
388
  let e = globalThis;
368
389
  return e.__GRAD_VUE_WC_FORMS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_FORMS__;
369
390
  }
370
- function ke(e = "default") {
371
- let t = Oe(), n = e || "default";
372
- return t.has(n) || t.set(n, De()), t.get(n);
391
+ function Oe(e = "default") {
392
+ let t = De(), n = e || "default";
393
+ return t.has(n) || t.set(n, Ee()), t.get(n);
373
394
  }
374
395
  //#endregion
375
396
  //#region src/compose/useFormField.ts
376
397
  function $(e) {
377
- let t = R(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (de() ? ke(i) : null), o = r(() => {
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(() => {
378
399
  let t = [];
379
400
  return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
380
401
  }), s = r(() => o.value.length > 0), c = e.name;
@@ -393,7 +414,7 @@ function $(e) {
393
414
  }
394
415
  //#endregion
395
416
  //#region src/components/form/GFormErrorMessages.vue?vue&type=script&setup=true&lang.ts
396
- var Ae = ["id"], je = /* @__PURE__ */ u({
417
+ var ke = ["id"], Ae = /* @__PURE__ */ u({
397
418
  __name: "GFormErrorMessages",
398
419
  props: {
399
420
  errors: {},
@@ -415,25 +436,25 @@ var Ae = ["id"], je = /* @__PURE__ */ u({
415
436
  }, [s("path", {
416
437
  fill: "currentColor",
417
438
  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"
418
- })], -1), c(" " + N(e), 1)]))), 128))], 8, Ae)) : a("", !0);
439
+ })], -1), c(" " + N(e), 1)]))), 128))], 8, ke)) : a("", !0);
419
440
  }
420
- }), Me = ["for"], Ne = {
441
+ }), je = ["for"], Me = {
421
442
  key: 0,
422
443
  class: "g-text-input-required",
423
444
  "aria-hidden": "true"
424
- }, Pe = ["id"], Fe = {
445
+ }, Ne = ["id"], Pe = {
425
446
  key: 0,
426
447
  class: "g-text-input-prefix"
427
- }, Ie = [
448
+ }, Fe = [
428
449
  "value",
429
450
  "placeholder",
430
451
  "disabled",
431
452
  "required",
432
453
  "aria-invalid"
433
- ], Le = {
454
+ ], Ie = {
434
455
  key: 1,
435
456
  class: "g-text-input-suffix"
436
- }, Re = /* @__PURE__ */ u({
457
+ }, Le = /* @__PURE__ */ u({
437
458
  inheritAttrs: !1,
438
459
  __name: "GTextInput",
439
460
  props: /* @__PURE__ */ m({
@@ -497,14 +518,14 @@ var Ae = ["id"], je = /* @__PURE__ */ u({
497
518
  key: 0,
498
519
  for: m.value,
499
520
  class: "g-text-input-label"
500
- }, [c(N(n.label), 1), n.required ? (w(), o("span", Ne, " *")) : a("", !0)], 8, Me)) : a("", !0),
521
+ }, [c(N(n.label), 1), n.required ? (w(), o("span", Me, " *")) : a("", !0)], 8, je)) : a("", !0),
501
522
  t.$slots.instructions || e.instructions ? (w(), o("div", {
502
523
  key: 1,
503
524
  id: "instructions-" + L(u),
504
525
  class: "g-text-input-instructions"
505
- }, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8, Pe)) : a("", !0),
526
+ }, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8, Ne)) : a("", !0),
506
527
  s("div", { class: _([{ "g-text-input-field-wrapper": !0 }, `g-text-input-field-wrapper--${e.name || "nameless"}`]) }, [
507
- n.prefix ? (w(), o("span", Fe, N(n.prefix), 1)) : a("", !0),
528
+ n.prefix ? (w(), o("span", Pe, N(n.prefix), 1)) : a("", !0),
508
529
  s("input", h({
509
530
  value: i.value,
510
531
  placeholder: n.placeholder,
@@ -521,37 +542,37 @@ var Ae = ["id"], je = /* @__PURE__ */ u({
521
542
  id: m.value,
522
543
  "aria-describedby": t.$slots.instructions || e.instructions ? "instructions-" + L(u) : void 0,
523
544
  "aria-errormessage": L(v) ? "error-message-" + L(u) : void 0
524
- }, { "aria-invalid": L(v) ? "true" : "false" }), null, 16, Ie),
525
- n.suffix ? (w(), o("span", Le, N(n.suffix), 1)) : a("", !0)
545
+ }, { "aria-invalid": L(v) ? "true" : "false" }), null, 16, Fe),
546
+ n.suffix ? (w(), o("span", Ie, N(n.suffix), 1)) : a("", !0)
526
547
  ], 2),
527
- l(je, {
548
+ l(Ae, {
528
549
  errors: L(g),
529
550
  id: "error-message-" + L(u)
530
551
  }, null, 8, ["errors", "id"])
531
552
  ], 2));
532
553
  }
533
- }), ze = 100, Be = 200, Ve = 102, He = D([]), Ue = D([]), We = D([]);
534
- function Ge() {
535
- if (!(typeof document > "u")) if (We.value.length > 0) {
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) {
536
557
  let e = window.innerWidth - document.documentElement.clientWidth;
537
558
  document.body.classList.add("g-scroll-lock"), document.body.style.paddingRight = `${e}px`, document.body.style.setProperty("--g-scrollbar-width", `${e}px`);
538
559
  } else document.body.style.paddingRight = "0", document.body.classList.remove("g-scroll-lock"), document.body.style.removeProperty("--g-scrollbar-width");
539
560
  }
540
- function Ke(e, t = !1, n = !1) {
561
+ function Ge(e, t = !1, n = !1) {
541
562
  if (typeof document > "u") return {};
542
- let i = t ? Ue : He;
563
+ let i = t ? He : Ve;
543
564
  function a() {
544
- i.value.push(e), n && !We.value.includes(e) && (We.value.push(e), Ge());
565
+ i.value.push(e), n && !Ue.value.includes(e) && (Ue.value.push(e), We());
545
566
  }
546
567
  function o() {
547
568
  let t = i.value.lastIndexOf(e);
548
569
  t !== -1 && i.value.splice(t, 1);
549
- let n = We.value.lastIndexOf(e);
550
- n !== -1 && (We.value.splice(n, 1), Ge());
570
+ let n = Ue.value.lastIndexOf(e);
571
+ n !== -1 && (Ue.value.splice(n, 1), We());
551
572
  }
552
- let s = r(() => !t && Ue.value.length > 0 ? !1 : i.value.length > 0 && i.value[i.value.length - 1] === e), c = r(() => {
573
+ let s = r(() => !t && He.value.length > 0 ? !1 : i.value.length > 0 && i.value[i.value.length - 1] === e), c = r(() => {
553
574
  let n = i.value.indexOf(e);
554
- return n === -1 ? 0 : (t ? Be : ze) + n;
575
+ return n === -1 ? 0 : (t ? ze : Re) + n;
555
576
  });
556
577
  return x(o), {
557
578
  push: a,
@@ -560,31 +581,31 @@ function Ke(e, t = !1, n = !1) {
560
581
  zIndex: c
561
582
  };
562
583
  }
563
- function qe() {
584
+ function Ke() {
564
585
  return typeof document > "u" ? {} : {
565
- hasModal: r(() => Ue.value.length > 0),
566
- hasOverlay: r(() => He.value.length > 0 || Ue.value.length > 0),
567
- hasScrollLock: r(() => We.value.length > 0)
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)
568
589
  };
569
590
  }
570
- function Je() {
591
+ function qe() {
571
592
  let e = 0;
572
- return He.value.forEach((t, n) => {
593
+ return Ve.value.forEach((t, n) => {
594
+ e = Math.max(e, Re + n);
595
+ }), He.value.forEach((t, n) => {
573
596
  e = Math.max(e, ze + n);
574
- }), Ue.value.forEach((t, n) => {
575
- e = Math.max(e, Be + n);
576
- }), e > 0 ? e + 1 : Ve;
597
+ }), e > 0 ? e + 1 : Be;
577
598
  }
578
599
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
579
- var Ye = (e) => e != null;
600
+ var Je = (e) => e != null;
580
601
  //#endregion
581
602
  //#region ../../node_modules/@vueuse/integrations/dist/useFocusTrap-lXZ_YG-8.js
582
- function Xe(e, t = {}) {
603
+ function Ye(e, t = {}) {
583
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);
584
- return W(r(() => te(I(e)).map((e) => {
605
+ return G(r(() => ee(I(e)).map((e) => {
585
606
  let t = I(e);
586
- return typeof t == "string" ? t : Z(t);
587
- }).filter(Ye)), (e) => {
607
+ return typeof t == "string" ? t : te(t);
608
+ }).filter(Je)), (e) => {
588
609
  if (e.length) if (!n) n = ue(e, {
589
610
  ...a,
590
611
  onActivate() {
@@ -598,7 +619,7 @@ function Xe(e, t = {}) {
598
619
  let t = n?.active;
599
620
  n?.updateContainerElements(e), !t && i && c();
600
621
  }
601
- }, { flush: "post" }), X(() => l()), {
622
+ }, { flush: "post" }), Z(() => l()), {
602
623
  hasFocus: o,
603
624
  isPaused: s,
604
625
  activate: c,
@@ -613,7 +634,7 @@ function Xe(e, t = {}) {
613
634
  }
614
635
  //#endregion
615
636
  //#region src/compose/useOverlayFocus.ts
616
- var Ze = [
637
+ var Xe = [
617
638
  "a[href]",
618
639
  "button:not([disabled])",
619
640
  "input:not([disabled])",
@@ -622,8 +643,8 @@ var Ze = [
622
643
  "[tabindex]:not([tabindex='-1'])",
623
644
  "[contenteditable='true']"
624
645
  ].join(",");
625
- function Qe(e, t, n = !1) {
626
- let r = D(!1), i = () => !!e.value?.querySelector(Ze), { activate: a, deactivate: o, pause: s, unpause: c } = Xe(e, {
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, {
627
648
  immediate: !1,
628
649
  clickOutsideDeactivates: n,
629
650
  initialFocus: () => {
@@ -644,7 +665,7 @@ function Qe(e, t, n = !1) {
644
665
  });
645
666
  }
646
667
  });
647
- return W(t, (e) => {
668
+ return G(t, (e) => {
648
669
  e ? g(() => {
649
670
  i() && c();
650
671
  }).catch((e) => {
@@ -667,7 +688,7 @@ function Qe(e, t, n = !1) {
667
688
  }
668
689
  //#endregion
669
690
  //#region src/compose/useOverlayEscape.ts
670
- function $e(e, t, n, r, i) {
691
+ function Qe(e, t, n, r, i) {
671
692
  function a(i) {
672
693
  if (!(!n.value || !t.value)) {
673
694
  for (let t of e) if (t.value?.contains(i.target)) return;
@@ -687,7 +708,7 @@ function $e(e, t, n, r, i) {
687
708
  }
688
709
  //#endregion
689
710
  //#region src/compose/popoverPosition.ts
690
- function et(e, t, n, r) {
711
+ function $e(e, t, n, r) {
691
712
  let i = r?.gap ?? 8, a = r?.margin ?? 16, o = r?.preferAbove ?? !1, s = !1, c = !1, l;
692
713
  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;
693
714
  let u = e.left + (e.width - t.width) / 2;
@@ -703,7 +724,7 @@ function et(e, t, n, r) {
703
724
  }
704
725
  //#endregion
705
726
  //#region src/components/GPopover.vue?vue&type=script&setup=true&lang.ts
706
- var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "aria-label"], it = /* @__PURE__ */ u({
727
+ var et = { class: "g-popover-wrap" }, tt = ["id"], nt = ["aria-labelledby", "aria-label"], rt = /* @__PURE__ */ u({
707
728
  __name: "GPopover",
708
729
  props: {
709
730
  minimal: {
@@ -722,11 +743,11 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
722
743
  ],
723
744
  setup(e, { expose: c, emit: u }) {
724
745
  let d = e, f = u, p = D(d.modelValue);
725
- W(F(d, "modelValue"), (e) => {
746
+ G(F(d, "modelValue"), (e) => {
726
747
  p.value = e;
727
748
  });
728
- 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 } = Ke(T, !0), { activate: M, deactivate: N } = Qe(b, A, !0);
729
- $e([b, v], A, p, I, O), W(p, (e) => {
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) => {
730
751
  e ? (g(() => {
731
752
  g(() => M());
732
753
  }), E(), f("show")) : (N(), O(), f("hide"));
@@ -743,25 +764,25 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
743
764
  let B = D({
744
765
  top: 0,
745
766
  left: 0
746
- }), U = D({ left: "50%" }), G = D(!1), J = D(!1), Y = null;
747
- function te() {
767
+ }), U = D({ left: "50%" }), K = D(!1), Y = D(!1), X = null;
768
+ function ee() {
748
769
  if (v.value) return v.value;
749
770
  let e = b.value?.parentElement ?? null;
750
771
  for (; e && e.tagName.toLowerCase() !== "g-popover";) e = e.parentElement;
751
772
  let t = e?.previousElementSibling;
752
773
  return t instanceof HTMLElement ? t : null;
753
774
  }
754
- function X() {
775
+ function Z() {
755
776
  if (!b.value) return;
756
- let e = new DOMRect(0, 0, b.value.offsetWidth, b.value.offsetHeight), t = new DOMRect(0, 0, window.innerWidth, window.innerHeight), n = te();
777
+ let e = new DOMRect(0, 0, b.value.offsetWidth, b.value.offsetHeight), t = new DOMRect(0, 0, window.innerWidth, window.innerHeight), n = ee();
757
778
  if (!n) {
758
779
  B.value = {
759
780
  top: Math.max((t.height - e.height) / 2, 8),
760
781
  left: Math.max((t.width - e.width) / 2, 8)
761
- }, J.value = !1, G.value = !1, U.value = { left: "50%" };
782
+ }, Y.value = !1, K.value = !1, U.value = { left: "50%" };
762
783
  return;
763
784
  }
764
- let { top: r, left: i, xOffset: a, placedAbove: o, overlay: s } = et(n.getBoundingClientRect(), e, t, { gap: d.minimal ? 0 : 8 });
785
+ let { top: r, left: i, xOffset: a, placedAbove: o, overlay: s } = $e(n.getBoundingClientRect(), e, t, { gap: d.minimal ? 0 : 8 });
765
786
  B.value = {
766
787
  top: r,
767
788
  left: i
@@ -769,39 +790,39 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
769
790
  left: `${e.width / 2 - a}px`,
770
791
  top: o ? "auto" : void 0,
771
792
  bottom: o ? "-8px" : void 0
772
- }, G.value = o, J.value = s;
793
+ }, K.value = o, Y.value = s;
773
794
  }
774
- return W(p, (e) => {
795
+ return G(p, (e) => {
775
796
  e ? g(() => {
776
- X(), window.addEventListener("resize", X), window.addEventListener("scroll", X, { capture: !0 }), b.value && (Y && Y.disconnect(), Y = new ResizeObserver(() => X()), Y.observe(b.value));
777
- }) : (window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }), Y && Y.disconnect());
797
+ 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
+ }) : (window.removeEventListener("resize", Z), window.removeEventListener("scroll", Z, { capture: !0 }), X && X.disconnect());
778
799
  }), x(() => {
779
- window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }), Y && Y.disconnect();
800
+ window.removeEventListener("resize", Z), window.removeEventListener("scroll", Z, { capture: !0 }), X && X.disconnect();
780
801
  }), c({
781
802
  show: P,
782
803
  hide: I,
783
804
  toggle: R
784
- }), (r, c) => (w(), o("div", tt, [h.value ? (w(), o("div", {
805
+ }), (r, c) => (w(), o("div", et, [h.value ? (w(), o("div", {
785
806
  key: 0,
786
807
  ref_key: "triggerRef",
787
808
  ref: v,
788
809
  class: "g-popover-trigger",
789
810
  id: `${L(T)}-trigger`
790
- }, [k(r.$slots, "trigger", { toggle: R })], 8, nt)) : a("", !0), (w(), i(t, {
811
+ }, [k(r.$slots, "trigger", { toggle: R })], 8, tt)) : a("", !0), (w(), i(t, {
791
812
  to: "#modal-root",
792
813
  disabled: L(C)
793
814
  }, [l(n, {
794
815
  name: "g-popover-expand",
795
816
  appear: ""
796
817
  }, {
797
- default: K(() => [L(S) || p.value ? q((w(), o("div", {
818
+ default: q(() => [L(S) || p.value ? J((w(), o("div", {
798
819
  key: 0,
799
820
  ref_key: "popoverRef",
800
821
  ref: b,
801
822
  class: _({
802
823
  "g-popover": !0,
803
- "g-popover-above": G.value,
804
- "g-popover-below": !G.value,
824
+ "g-popover-above": K.value,
825
+ "g-popover-below": !K.value,
805
826
  "g-popover-minimal": e.minimal
806
827
  }),
807
828
  role: "dialog",
@@ -814,9 +835,9 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
814
835
  zIndex: L(j)
815
836
  })
816
837
  }, [
817
- !J.value && !e.minimal ? (w(), o("div", {
838
+ !Y.value && !e.minimal ? (w(), o("div", {
818
839
  key: 0,
819
- class: _(["g-popover-arrow", { "g-popover-arrow-above": G.value }]),
840
+ class: _(["g-popover-arrow", { "g-popover-arrow-above": K.value }]),
820
841
  style: y(U.value),
821
842
  "aria-hidden": "true"
822
843
  }, null, 6)) : a("", !0),
@@ -836,41 +857,41 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
836
857
  fill: "currentColor",
837
858
  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"
838
859
  })], -1)]]))
839
- ], 14, rt)), [[ee, p.value]]) : a("", !0)]),
860
+ ], 14, nt)), [[W, p.value]]) : a("", !0)]),
840
861
  _: 3
841
862
  })], 8, ["disabled"]))]));
842
863
  }
843
- }), at = 1;
844
- function ot(e = "v-gtooltip") {
845
- return `${e}-${++at}`;
864
+ }), it = 1;
865
+ function at(e = "v-gtooltip") {
866
+ return `${e}-${++it}`;
846
867
  }
847
- function st(e, t = "v-gtooltip") {
868
+ function ot(e, t = "v-gtooltip") {
848
869
  let n = e.getAttribute("aria-describedby");
849
870
  if (n) return n;
850
- let r = ot(t);
871
+ let r = at(t);
851
872
  return e.setAttribute("aria-describedby", r), r;
852
873
  }
853
- function ct(e, t) {
874
+ function st(e, t) {
854
875
  let n = document.createElement("div");
855
876
  return n.className = "v-gtooltip", n.textContent = e, n.setAttribute("role", "tooltip"), n.setAttribute("id", t), n;
856
877
  }
857
- function lt(e) {
878
+ function ct(e) {
858
879
  (document.getElementById("modal-root") ?? document.body).appendChild(e);
859
880
  }
860
- function ut(e, t) {
861
- let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } = et(n, r, new DOMRect(0, 0, window.innerWidth, window.innerHeight), {
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), {
862
883
  gap: 8,
863
884
  margin: 8,
864
885
  preferAbove: !0
865
886
  }), s = (n.left + n.width / 2 - a) / r.width * 100;
866
- 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";
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";
867
888
  }
868
- function dt(e) {
889
+ function ut(e) {
869
890
  e.style.opacity = "0";
870
891
  }
871
892
  //#endregion
872
893
  //#region src/components/GTooltip.vue
873
- var ft = /* @__PURE__ */ u({
894
+ var dt = /* @__PURE__ */ u({
874
895
  __name: "GTooltip",
875
896
  props: { text: {} },
876
897
  emits: ["tooltip-hide"],
@@ -885,12 +906,12 @@ var ft = /* @__PURE__ */ u({
885
906
  return t instanceof HTMLElement ? t : null;
886
907
  }
887
908
  function S() {
888
- 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(() => {
889
- f.value && (p.value || m.value) && y && ut(y, f.value);
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);
890
911
  }), h.observe(f.value)));
891
912
  }
892
913
  function C() {
893
- f.value && (p.value || m.value) && y && ut(y, f.value);
914
+ f.value && (p.value || m.value) && y && lt(y, f.value);
894
915
  }
895
916
  function T() {
896
917
  p.value = !0;
@@ -926,20 +947,20 @@ var ft = /* @__PURE__ */ u({
926
947
  function I(e) {
927
948
  (e.key === "Escape" || e.key === "Esc") && (p.value = !1, m.value = !1);
928
949
  }
929
- return W(() => [
950
+ return G(() => [
930
951
  u.value,
931
952
  d.value,
932
953
  l.value
933
954
  ], () => {
934
955
  A(b()), S();
935
- }, { immediate: !0 }), W(() => i.text, (e) => {
956
+ }, { immediate: !0 }), G(() => i.text, (e) => {
936
957
  f.value && (f.value.textContent = e);
937
- }), W(() => p.value || m.value, (e) => {
958
+ }), G(() => p.value || m.value, (e) => {
938
959
  if (e) {
939
- S(), f.value && y && ut(y, f.value), g ||= (window.addEventListener("scroll", C, { capture: !0 }), !0);
960
+ S(), f.value && y && lt(y, f.value), g ||= (window.addEventListener("scroll", C, { capture: !0 }), !0);
940
961
  return;
941
962
  }
942
- g &&= (window.removeEventListener("scroll", C, { capture: !0 }), !1), f.value && (dt(f.value), _ && clearTimeout(_), _ = window.setTimeout(() => {
963
+ g &&= (window.removeEventListener("scroll", C, { capture: !0 }), !1), f.value && (ut(f.value), _ && clearTimeout(_), _ = window.setTimeout(() => {
943
964
  s("tooltip-hide");
944
965
  }, 150));
945
966
  }), x(() => {
@@ -959,11 +980,11 @@ var ft = /* @__PURE__ */ u({
959
980
  class: "g-tooltip-trigger"
960
981
  }, [k(e.$slots, "trigger")], 512)) : a("", !0)], 512));
961
982
  }
962
- }), pt = ["disabled"], mt = { class: "g-select-btn-legend" }, ht = {
983
+ }), ft = ["disabled"], pt = { class: "g-select-btn-legend" }, mt = {
963
984
  key: 0,
964
985
  class: "g-select-btn-required",
965
986
  "aria-hidden": "true"
966
- }, gt = { class: "g-select-btn-row" }, _t = [
987
+ }, ht = { class: "g-select-btn-row" }, gt = [
967
988
  "id",
968
989
  "name",
969
990
  "value",
@@ -971,7 +992,7 @@ var ft = /* @__PURE__ */ u({
971
992
  "disabled",
972
993
  "required",
973
994
  "onChange"
974
- ], vt = ["for"], yt = /* @__PURE__ */ u({
995
+ ], _t = ["for"], vt = /* @__PURE__ */ u({
975
996
  __name: "GSelectButton",
976
997
  props: /* @__PURE__ */ m({
977
998
  options: {},
@@ -1013,7 +1034,7 @@ var ft = /* @__PURE__ */ u({
1013
1034
  return (t, n) => (w(), o("fieldset", {
1014
1035
  class: _(g.value),
1015
1036
  disabled: i.disabled
1016
- }, [s("legend", mt, [c(N(i.label), 1), i.required ? (w(), o("span", ht, " *")) : a("", !0)]), s("div", { class: _(["g-select-btn-wrapper", { "g-select-btn-has-error": L(m) }]) }, [s("div", gt, [(w(!0), o(e, null, O(h.value, (t, n) => (w(), o(e, { key: t.value }, [s("input", {
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", {
1017
1038
  class: "g-select-btn-radio",
1018
1039
  type: "radio",
1019
1040
  id: `${L(f)}-${t.value}`,
@@ -1023,29 +1044,29 @@ var ft = /* @__PURE__ */ u({
1023
1044
  disabled: i.disabled,
1024
1045
  required: i.required && n === 0,
1025
1046
  onChange: (e) => y(t.value)
1026
- }, null, 40, _t), s("label", {
1047
+ }, null, 40, gt), s("label", {
1027
1048
  for: `${L(f)}-${t.value}`,
1028
1049
  class: _(v(t.value === d.value))
1029
- }, N(t.label), 11, vt)], 64))), 128))]), l(je, {
1050
+ }, N(t.label), 11, _t)], 64))), 128))]), l(Ae, {
1030
1051
  errors: L(p),
1031
1052
  id: "error-message-" + L(f)
1032
- }, null, 8, ["errors", "id"])], 2)], 10, pt));
1053
+ }, null, 8, ["errors", "id"])], 2)], 10, ft));
1033
1054
  }
1034
- }), bt = ["width", "height"], xt = [
1055
+ }), yt = ["width", "height"], bt = [
1035
1056
  "cx",
1036
1057
  "cy",
1037
1058
  "r"
1038
- ], St = [
1059
+ ], xt = [
1039
1060
  "cx",
1040
1061
  "cy",
1041
1062
  "r",
1042
1063
  "stroke-dasharray",
1043
1064
  "stroke-dashoffset"
1044
- ], Ct = [
1065
+ ], St = [
1045
1066
  "cx",
1046
1067
  "cy",
1047
1068
  "r"
1048
- ], wt = /* @__PURE__ */ u({
1069
+ ], Ct = /* @__PURE__ */ u({
1049
1070
  __name: "GProgress",
1050
1071
  props: {
1051
1072
  label: { default: "Loading" },
@@ -1086,7 +1107,7 @@ var ft = /* @__PURE__ */ u({
1086
1107
  r: i.value,
1087
1108
  "stroke-width": 4,
1088
1109
  fill: "none"
1089
- }, null, 8, xt), n.value ? (w(), o("circle", {
1110
+ }, null, 8, bt), n.value ? (w(), o("circle", {
1090
1111
  key: 0,
1091
1112
  class: "g-progress__value",
1092
1113
  cx: i.value + 4 / 2,
@@ -1100,7 +1121,7 @@ var ft = /* @__PURE__ */ u({
1100
1121
  transform: "rotate(-90deg)",
1101
1122
  "transform-origin": "center"
1102
1123
  }
1103
- }, null, 8, St)) : (w(), o("circle", {
1124
+ }, null, 8, xt)) : (w(), o("circle", {
1104
1125
  key: 1,
1105
1126
  class: "g-progress__spinner",
1106
1127
  cx: i.value + 4 / 2,
@@ -1108,13 +1129,13 @@ var ft = /* @__PURE__ */ u({
1108
1129
  r: i.value,
1109
1130
  "stroke-width": 4,
1110
1131
  fill: "none"
1111
- }, null, 8, Ct))], 10, bt))], 16));
1132
+ }, null, 8, St))], 10, yt))], 16));
1112
1133
  }
1113
- }), Tt = [
1134
+ }), wt = [
1114
1135
  "id",
1115
1136
  "aria-labelledby",
1116
1137
  "aria-describedby"
1117
- ], Et = { class: "g-alertdialog-inner" }, Dt = ["id"], Ot = ["id"], kt = { class: "g-alertdialog-actions" }, At = /* @__PURE__ */ u({
1138
+ ], Tt = { class: "g-alertdialog-inner" }, Et = ["id"], Dt = ["id"], Ot = { class: "g-alertdialog-actions" }, kt = /* @__PURE__ */ u({
1118
1139
  __name: "GAlertDialog",
1119
1140
  props: {
1120
1141
  label: { default: "Confirmation" },
@@ -1123,11 +1144,11 @@ var ft = /* @__PURE__ */ u({
1123
1144
  },
1124
1145
  emits: ["cancel", "confirm"],
1125
1146
  setup(e, { emit: r }) {
1126
- let a = e, o = r, u = D(null), d = D(!0), f = z(), { pop: p, push: m, isTop: h, zIndex: g } = Ke(f, !0, !0), { deactivate: _, activate: v } = Qe(u, h);
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);
1127
1148
  function x() {
1128
1149
  o("cancel");
1129
1150
  }
1130
- return $e([u], h, d, x, p), S(() => {
1151
+ return Qe([u], h, d, x, p), S(() => {
1131
1152
  m(), v();
1132
1153
  }), b(() => {
1133
1154
  p(), _();
@@ -1135,7 +1156,7 @@ var ft = /* @__PURE__ */ u({
1135
1156
  name: "g-fade",
1136
1157
  appear: ""
1137
1158
  }, {
1138
- default: K(() => [s("div", {
1159
+ default: q(() => [s("div", {
1139
1160
  id: "alertdialog-" + L(f),
1140
1161
  class: "g-alertdialog",
1141
1162
  role: "alertdialog",
@@ -1145,43 +1166,43 @@ var ft = /* @__PURE__ */ u({
1145
1166
  ref_key: "dialog",
1146
1167
  ref: u,
1147
1168
  style: y({ zIndex: L(g) })
1148
- }, [s("div", Et, [
1169
+ }, [s("div", Tt, [
1149
1170
  s("h2", {
1150
1171
  id: "alertdialog-label-" + L(f),
1151
1172
  class: "g-alertdialog-label"
1152
- }, N(a.label), 9, Dt),
1173
+ }, N(a.label), 9, Et),
1153
1174
  s("div", {
1154
1175
  id: "alertdialog-description-" + L(f),
1155
1176
  class: "g-alertdialog-content"
1156
- }, [k(e.$slots, "default")], 8, Ot),
1157
- s("div", kt, [l(Q, {
1177
+ }, [k(e.$slots, "default")], 8, Dt),
1178
+ s("div", Ot, [l(Q, {
1158
1179
  outlined: "",
1159
1180
  onClick: r[0] ||= (e) => o("cancel")
1160
1181
  }, {
1161
- default: K(() => [...r[2] ||= [c("Cancel", -1)]]),
1182
+ default: q(() => [...r[2] ||= [c("Cancel", -1)]]),
1162
1183
  _: 1
1163
1184
  }), l(Q, {
1164
1185
  theme: a.buttonColor,
1165
1186
  onClick: r[1] ||= (e) => o("confirm")
1166
1187
  }, {
1167
- default: K(() => [c(N(a.buttonText), 1)]),
1188
+ default: q(() => [c(N(a.buttonText), 1)]),
1168
1189
  _: 1
1169
1190
  }, 8, ["theme"])])
1170
- ])], 12, Tt)]),
1191
+ ])], 12, wt)]),
1171
1192
  _: 3
1172
1193
  })]));
1173
1194
  }
1174
1195
  });
1175
1196
  //#endregion
1176
1197
  //#region src/compose/useSelectDropdown.ts
1177
- function jt(e) {
1198
+ function At(e) {
1178
1199
  return e.map((e) => typeof e == "string" ? {
1179
1200
  label: e,
1180
1201
  value: e
1181
1202
  } : e);
1182
1203
  }
1183
- function Mt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a }) {
1184
- let { push: o, pop: s, isTop: c } = Ke(i), l = D("below"), u = D(null), d = r(() => {
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(() => {
1185
1206
  let e = {};
1186
1207
  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;
1187
1208
  });
@@ -1204,7 +1225,7 @@ function Mt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a })
1204
1225
  function h() {
1205
1226
  p && p();
1206
1227
  }
1207
- W(e, (e) => {
1228
+ G(e, (e) => {
1208
1229
  e ? (o(), m(), g(() => f())) : (s(), h(), l.value = "below", u.value = null);
1209
1230
  }), x(() => {
1210
1231
  h();
@@ -1224,11 +1245,11 @@ function Mt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a })
1224
1245
  }
1225
1246
  //#endregion
1226
1247
  //#region src/components/GSelect.vue?vue&type=script&setup=true&lang.ts
1227
- var Nt = ["id"], Pt = {
1248
+ var Mt = ["id"], Nt = {
1228
1249
  key: 0,
1229
1250
  class: "g-select-required",
1230
1251
  "aria-hidden": "true"
1231
- }, Ft = { class: "g-select-input-wrap" }, It = ["id"], Lt = [
1252
+ }, Pt = { class: "g-select-input-wrap" }, Ft = ["id"], It = [
1232
1253
  "value",
1233
1254
  "placeholder",
1234
1255
  "disabled",
@@ -1236,21 +1257,21 @@ var Nt = ["id"], Pt = {
1236
1257
  "aria-expanded",
1237
1258
  "aria-required",
1238
1259
  "aria-activedescendant"
1239
- ], Rt = [
1260
+ ], Lt = [
1240
1261
  "id",
1241
1262
  "aria-controls",
1242
1263
  "aria-expanded",
1243
1264
  "aria-required",
1244
1265
  "aria-activedescendant"
1245
- ], zt = ["id"], Bt = [
1266
+ ], Rt = ["id"], zt = [
1246
1267
  "id",
1247
1268
  "aria-selected",
1248
1269
  "onClick"
1249
- ], Vt = {
1270
+ ], Bt = {
1250
1271
  key: 1,
1251
1272
  "aria-live": "polite",
1252
1273
  class: "g-select-combo-option g-select-option g-select-no-results"
1253
- }, Ht = /* @__PURE__ */ u({
1274
+ }, Vt = /* @__PURE__ */ u({
1254
1275
  __name: "GSelect",
1255
1276
  props: /* @__PURE__ */ m({
1256
1277
  options: {},
@@ -1288,18 +1309,18 @@ var Nt = ["id"], Pt = {
1288
1309
  value: d,
1289
1310
  errors: F(i, "errors"),
1290
1311
  formKey: i.formKey
1291
- }), { menuPlacement: E, menuStyle: A, isTop: j, scrollOptionIntoView: M } = Mt({
1312
+ }), { menuPlacement: E, menuStyle: A, isTop: j, scrollOptionIntoView: M } = jt({
1292
1313
  open: y,
1293
1314
  anchorRef: p,
1294
1315
  listboxRef: m,
1295
1316
  baseId: f,
1296
1317
  activeIndex: b
1297
- }), P = r(() => jt(i.options)), I = D(""), R = r(() => {
1318
+ }), P = r(() => At(i.options)), I = D(""), R = r(() => {
1298
1319
  if (!i.searchable || !y.value || !I.value) return P.value;
1299
1320
  let e = I.value.toLowerCase();
1300
1321
  return P.value.filter((t) => t.label.toLowerCase().includes(e));
1301
1322
  }), V = r(() => R.value.findIndex((e) => e.value === d.value));
1302
- W(() => d.value, (e) => {
1323
+ G(() => d.value, (e) => {
1303
1324
  let t = R.value.findIndex((t) => t.value === e);
1304
1325
  t !== -1 && (b.value = t);
1305
1326
  });
@@ -1315,7 +1336,7 @@ var Nt = ["id"], Pt = {
1315
1336
  function U() {
1316
1337
  y.value = !1, i.searchable && (I.value = "");
1317
1338
  }
1318
- function G(e) {
1339
+ function K(e) {
1319
1340
  if (!i.disabled && i.searchable) {
1320
1341
  if (S.value) {
1321
1342
  S.value = !1;
@@ -1324,13 +1345,13 @@ var Nt = ["id"], Pt = {
1324
1345
  H();
1325
1346
  }
1326
1347
  }
1327
- function K(e) {
1348
+ function q(e) {
1328
1349
  if (!i.searchable) return;
1329
1350
  y.value || H(), I.value = e.target.value;
1330
1351
  let t = R.value.findIndex((e) => e.value === d.value);
1331
1352
  b.value = t === -1 ? 0 : t;
1332
1353
  }
1333
- function Y(e) {
1354
+ function X(e) {
1334
1355
  let t = e.relatedTarget;
1335
1356
  if (x.value) {
1336
1357
  x.value = !1;
@@ -1338,16 +1359,16 @@ var Nt = ["id"], Pt = {
1338
1359
  }
1339
1360
  t && m.value && m.value.contains(t) || (i.searchable && (I.value = ""), U());
1340
1361
  }
1341
- function te(e) {
1362
+ function ee(e) {
1342
1363
  let t = R.value[e];
1343
1364
  t && t.value !== d.value && (d.value = t.value, u("change", t.value)), S.value = !0, U(), setTimeout(() => {
1344
1365
  S.value = !1;
1345
1366
  }, 100);
1346
1367
  }
1347
- function X() {
1368
+ function Z() {
1348
1369
  i.disabled || (y.value ? U() : H());
1349
1370
  }
1350
- function Z(e) {
1371
+ function te(e) {
1351
1372
  if (i.disabled) return;
1352
1373
  let t = R.value.length - 1;
1353
1374
  if (!y.value && [
@@ -1374,7 +1395,7 @@ var Nt = ["id"], Pt = {
1374
1395
  break;
1375
1396
  case "Enter":
1376
1397
  case " ":
1377
- e.preventDefault(), y.value ? te(b.value) : H();
1398
+ e.preventDefault(), y.value ? ee(b.value) : H();
1378
1399
  break;
1379
1400
  case "Escape":
1380
1401
  j.value && (e.preventDefault(), setTimeout(() => {
@@ -1384,7 +1405,7 @@ var Nt = ["id"], Pt = {
1384
1405
  }
1385
1406
  }
1386
1407
  function ne(e) {
1387
- te(e);
1408
+ ee(e);
1388
1409
  }
1389
1410
  function re() {
1390
1411
  x.value = !0;
@@ -1402,8 +1423,8 @@ var Nt = ["id"], Pt = {
1402
1423
  key: 0,
1403
1424
  id: L(f) + "-label",
1404
1425
  class: "g-select-combo-label g-select-label"
1405
- }, [c(N(i.label), 1), i.required ? (w(), o("span", Pt, " *")) : a("", !0)], 8, Nt)),
1406
- s("div", Ft, [i.searchable ? (w(), o("div", {
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", {
1407
1428
  key: 0,
1408
1429
  class: "g-select-combo-input g-select-control",
1409
1430
  id: L(f)
@@ -1417,10 +1438,10 @@ var Nt = ["id"], Pt = {
1417
1438
  value: y.value ? I.value : P.value[V.value] ? P.value[V.value].label : "",
1418
1439
  placeholder: y.value ? "" : t.placeholder,
1419
1440
  disabled: i.disabled,
1420
- onFocus: G,
1421
- onInput: K,
1422
- onKeydown: Z,
1423
- onBlur: Y,
1441
+ onFocus: K,
1442
+ onInput: q,
1443
+ onKeydown: te,
1444
+ onBlur: X,
1424
1445
  "aria-autocomplete": "list",
1425
1446
  "aria-controls": L(f) + "-listbox",
1426
1447
  "aria-expanded": y.value ? "true" : "false",
@@ -1430,7 +1451,7 @@ var Nt = ["id"], Pt = {
1430
1451
  }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": L(f) + "-label" }, {
1431
1452
  role: "combobox",
1432
1453
  autocomplete: "off"
1433
- }), null, 16, Lt),
1454
+ }), null, 16, It),
1434
1455
  ie.value ? (w(), o("button", {
1435
1456
  key: 0,
1436
1457
  type: "button",
@@ -1456,7 +1477,7 @@ var Nt = ["id"], Pt = {
1456
1477
  fill: "currentColor",
1457
1478
  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"
1458
1479
  })], -1)
1459
- ], 8, It)) : (w(), o("div", h({
1480
+ ], 8, Ft)) : (w(), o("div", h({
1460
1481
  key: 1,
1461
1482
  ref_key: "comboRef",
1462
1483
  ref: p,
@@ -1470,17 +1491,17 @@ var Nt = ["id"], Pt = {
1470
1491
  }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": L(f) + "-label" }, {
1471
1492
  "aria-activedescendant": y.value ? L(f) + "-option-" + b.value : void 0,
1472
1493
  tabindex: "0",
1473
- onClick: X,
1474
- onKeydown: Z,
1475
- onFocus: G,
1476
- onBlur: Y
1494
+ onClick: Z,
1495
+ onKeydown: te,
1496
+ onFocus: K,
1497
+ onBlur: X
1477
1498
  }), [
1478
1499
  c(N(P.value[V.value] ? P.value[V.value].label : "") + " ", 1),
1479
1500
  ie.value ? (w(), o("button", {
1480
1501
  key: 0,
1481
1502
  type: "button",
1482
1503
  class: "g-select-clear-btn",
1483
- onClick: J(ae, ["stop"])
1504
+ onClick: Y(ae, ["stop"])
1484
1505
  }, [...r[2] ||= [s("svg", {
1485
1506
  role: "img",
1486
1507
  "aria-label": "Clear Selection",
@@ -1501,7 +1522,7 @@ var Nt = ["id"], Pt = {
1501
1522
  fill: "currentColor",
1502
1523
  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"
1503
1524
  })], -1)
1504
- ], 16, Rt)), q(s("div", h({
1525
+ ], 16, Lt)), J(s("div", h({
1505
1526
  ref_key: "listboxRef",
1506
1527
  ref: m,
1507
1528
  class: ["g-select-combo-menu g-select-list", { "g-select-combo-menu--above": L(E) === "above" }],
@@ -1523,34 +1544,34 @@ var Nt = ["id"], Pt = {
1523
1544
  option: e,
1524
1545
  selected: e.value === d.value,
1525
1546
  index: t
1526
- }, () => [c(N(e.label), 1)])], 42, Bt))), 128)) : (w(), o("div", Vt, " No results found. "))], 16, zt), [[ee, y.value]])]),
1527
- l(je, {
1547
+ }, () => [c(N(e.label), 1)])], 42, zt))), 128)) : (w(), o("div", Bt, " No results found. "))], 16, Rt), [[W, y.value]])]),
1548
+ l(Ae, {
1528
1549
  errors: L(C),
1529
1550
  id: "error-message-" + L(f)
1530
1551
  }, null, 8, ["errors", "id"])
1531
1552
  ], 2));
1532
1553
  }
1533
- }), Ut = ["aria-label"], Wt = [
1554
+ }), Ht = ["aria-label"], Ut = [
1534
1555
  "placeholder",
1535
1556
  "value",
1536
1557
  "aria-expanded",
1537
1558
  "aria-controls",
1538
1559
  "aria-activedescendant"
1539
- ], Gt = {
1560
+ ], Wt = {
1540
1561
  key: 0,
1541
1562
  class: "g-search-dropdown"
1542
- }, Kt = {
1563
+ }, Gt = {
1543
1564
  "aria-live": "polite",
1544
1565
  class: "g-search-result-count"
1545
- }, qt = ["id"], Jt = ["aria-label"], Yt = { class: "g-search-group-label" }, Xt = [
1566
+ }, Kt = ["id"], qt = ["aria-label"], Jt = { class: "g-search-group-label" }, Yt = [
1546
1567
  "id",
1547
1568
  "onMousedown",
1548
1569
  "aria-selected"
1549
- ], Zt = [
1570
+ ], Xt = [
1550
1571
  "id",
1551
1572
  "onMousedown",
1552
1573
  "aria-selected"
1553
- ], Qt = /* @__PURE__ */ u({
1574
+ ], Zt = /* @__PURE__ */ u({
1554
1575
  __name: "GSearch",
1555
1576
  props: /* @__PURE__ */ m({
1556
1577
  results: {},
@@ -1605,7 +1626,7 @@ var Nt = ["id"], Pt = {
1605
1626
  let E = r(() => !!u.loading), A = r(() => S.value && !m.value), j = re(() => {
1606
1627
  d("submit", l.value);
1607
1628
  }, 300);
1608
- W(() => l.value, (e) => {
1629
+ G(() => l.value, (e) => {
1609
1630
  e ? u.auto && j() : h.value = -1;
1610
1631
  });
1611
1632
  let M = z();
@@ -1615,7 +1636,7 @@ var Nt = ["id"], Pt = {
1615
1636
  "aria-label": u.label
1616
1637
  }, [s("form", {
1617
1638
  class: "g-search-form",
1618
- onSubmit: n[0] ||= J((e) => T(null), ["prevent"])
1639
+ onSubmit: n[0] ||= Y((e) => T(null), ["prevent"])
1619
1640
  }, [s("input", {
1620
1641
  ref_key: "inputRef",
1621
1642
  ref: f,
@@ -1631,12 +1652,12 @@ var Nt = ["id"], Pt = {
1631
1652
  "aria-autocomplete": "list",
1632
1653
  "aria-controls": `${L(M)}-list`,
1633
1654
  "aria-activedescendant": h.value >= 0 ? "g-search-option-" + v.value[h.value].id : void 0
1634
- }, null, 40, Wt), s("button", {
1655
+ }, null, 40, Ut), s("button", {
1635
1656
  type: "submit",
1636
1657
  class: "g-search-submit",
1637
1658
  "aria-label": "Submit search",
1638
1659
  onKeydown: C
1639
- }, [E.value ? (w(), i(wt, {
1660
+ }, [E.value ? (w(), i(Ct, {
1640
1661
  key: 0,
1641
1662
  size: "tiny"
1642
1663
  })) : a("", !0), n[1] ||= s("svg", {
@@ -1647,7 +1668,7 @@ var Nt = ["id"], Pt = {
1647
1668
  }, [s("path", {
1648
1669
  fill: "currentColor",
1649
1670
  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"
1650
- })], -1)], 32)], 32), A.value ? (w(), o("div", Gt, [s("div", Kt, [E.value ? a("", !0) : (w(), o(e, { key: 0 }, [c(N(y.value) + " result" + N(y.value === 1 ? "" : "s"), 1)], 64))]), s("div", {
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", {
1651
1672
  role: "listbox",
1652
1673
  id: `${L(M)}-list`,
1653
1674
  ref_key: "listboxRef",
@@ -1658,29 +1679,29 @@ var Nt = ["id"], Pt = {
1658
1679
  class: "g-search-group",
1659
1680
  role: "group",
1660
1681
  "aria-label": n.label
1661
- }, [k(t.$slots, "group", { group: n }, () => [s("div", Yt, N(n.label), 1)]), (w(!0), o(e, null, O(n.items, (e, n) => (w(), o("div", {
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", {
1662
1683
  key: e.id,
1663
1684
  id: "g-search-option-" + e.id,
1664
1685
  class: _(["g-search-option", { "g-search-option-active": v.value[h.value] && v.value[h.value].id === e.id }]),
1665
1686
  role: "option",
1666
- onMousedown: J((t) => T(e), ["prevent"]),
1687
+ onMousedown: Y((t) => T(e), ["prevent"]),
1667
1688
  "aria-selected": v.value[h.value] && v.value[h.value].id === e.id
1668
- }, [k(t.$slots, "option", { option: e }, () => [c(N(e.title), 1)])], 42, Xt))), 128))], 8, Jt))), 128)) : y.value > 0 ? (w(!0), o(e, { key: 1 }, O(v.value, (e, n) => (w(), o("div", {
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", {
1669
1690
  key: e.id,
1670
1691
  id: "g-search-option-" + e.id,
1671
1692
  class: _(["g-search-option", { "g-search-option-active": h.value === n }]),
1672
1693
  role: "option",
1673
- onMousedown: J((t) => T(e), ["prevent"]),
1694
+ onMousedown: Y((t) => T(e), ["prevent"]),
1674
1695
  "aria-selected": h.value === n
1675
- }, [k(t.$slots, "option", { option: e }, () => [c(N(e.title), 1)])], 42, Zt))), 128)) : a("", !0)], 8, qt)])) : a("", !0)], 8, Ut));
1696
+ }, [k(t.$slots, "option", { option: e }, () => [c(N(e.title), 1)])], 42, Xt))), 128)) : a("", !0)], 8, Kt)])) : a("", !0)], 8, Ht));
1676
1697
  }
1677
- }), $t = { class: /* @__PURE__ */ _({ "g-app-header": !0 }) }, en = { class: "g-app-header__brand" }, tn = {
1698
+ }), Qt = { class: /* @__PURE__ */ _({ "g-app-header": !0 }) }, $t = { class: "g-app-header__brand" }, en = {
1678
1699
  class: "g-app-header__brand-text",
1679
1700
  href: "/"
1680
- }, nn = {
1701
+ }, tn = {
1681
1702
  key: 0,
1682
1703
  class: "g-app-header__block-i-container"
1683
- }, rn = { class: "g-app-header__title" }, an = { class: "g-app-header__app-controls-wrap" }, on = /* @__PURE__ */ u({
1704
+ }, nn = { class: "g-app-header__title" }, rn = { class: "g-app-header__app-controls-wrap" }, an = /* @__PURE__ */ u({
1684
1705
  __name: "GAppHeader",
1685
1706
  props: {
1686
1707
  illinois: {
@@ -1690,10 +1711,10 @@ var Nt = ["id"], Pt = {
1690
1711
  brand: { default: "GRAD" }
1691
1712
  },
1692
1713
  setup(e) {
1693
- return (t, n) => (w(), o("header", $t, [
1714
+ return (t, n) => (w(), o("header", Qt, [
1694
1715
  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),
1695
- s("div", en, [k(t.$slots, "left", {}, () => [s("a", tn, N(e.brand), 1)])]),
1696
- e.illinois ? (w(), o("div", nn, [...n[0] ||= [s("svg", {
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", {
1697
1718
  class: "g-app-header__block-i",
1698
1719
  role: "img",
1699
1720
  width: "55",
@@ -1710,24 +1731,24 @@ var Nt = ["id"], Pt = {
1710
1731
  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"
1711
1732
  })
1712
1733
  ], -1)]])) : k(t.$slots, "icon", { key: 1 }),
1713
- s("div", rn, [k(t.$slots, "title")]),
1714
- s("div", an, [k(t.$slots, "app-controls", { class: "g-app-header__app-controls" })])
1734
+ s("div", nn, [k(t.$slots, "title")]),
1735
+ s("div", rn, [k(t.$slots, "app-controls", { class: "g-app-header__app-controls" })])
1715
1736
  ]));
1716
1737
  }
1717
1738
  });
1718
1739
  //#endregion
1719
1740
  //#region src/compose/useWebComponentSidebar.ts
1720
- function sn(e) {
1741
+ function on(e) {
1721
1742
  return e.replace(/[^a-zA-Z0-9_-]/g, "-");
1722
1743
  }
1723
- function cn() {
1744
+ function sn() {
1724
1745
  let e = globalThis;
1725
1746
  return e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__;
1726
1747
  }
1727
- function ln(e = "default", t = "(max-width: 800px)") {
1728
- let n = cn(), r = e || "default";
1748
+ function cn(e = "default", t = "(max-width: 800px)") {
1749
+ let n = sn(), r = e || "default";
1729
1750
  if (!n.has(r)) {
1730
- let e = sn(r);
1751
+ let e = on(r);
1731
1752
  n.set(r, {
1732
1753
  id: `g-wc-sidebar-${e}`,
1733
1754
  open: D(!1),
@@ -1752,7 +1773,7 @@ function ln(e = "default", t = "(max-width: 800px)") {
1752
1773
  }, 5));
1753
1774
  }
1754
1775
  return S(() => {
1755
- W(i.isCollapsible, (e) => {
1776
+ G(i.isCollapsible, (e) => {
1756
1777
  e ? (document.addEventListener("mousedown", a), document.addEventListener("focusin", o)) : (document.removeEventListener("mousedown", a), document.removeEventListener("focusin", o));
1757
1778
  }, { immediate: !0 });
1758
1779
  }), x(() => {
@@ -1761,7 +1782,7 @@ function ln(e = "default", t = "(max-width: 800px)") {
1761
1782
  }
1762
1783
  //#endregion
1763
1784
  //#region src/components/GSidebar.vue?vue&type=script&setup=true&lang.ts
1764
- var un = ["id"], dn = /* @__PURE__ */ u({
1785
+ var ln = ["id"], un = /* @__PURE__ */ u({
1765
1786
  __name: "GSidebar",
1766
1787
  props: {
1767
1788
  backgroundColor: { default: "" },
@@ -1773,7 +1794,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
1773
1794
  sidebarKey: { default: "default" }
1774
1795
  },
1775
1796
  setup(e) {
1776
- let t = e, n = p("sidebar", () => void 0, !0) ?? (de() ? ln(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();
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();
1777
1798
  function l(e) {
1778
1799
  e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
1779
1800
  }
@@ -1793,13 +1814,13 @@ var un = ["id"], dn = /* @__PURE__ */ u({
1793
1814
  width: "var(--g-sidebar-width)"
1794
1815
  }),
1795
1816
  onKeydown: l
1796
- }, [k(t.$slots, "default")], 46, un));
1817
+ }, [k(t.$slots, "default")], 46, ln));
1797
1818
  }
1798
- }), fn = ["id"], pn = { class: "g-sidebar-menu__list" }, mn = [
1819
+ }), dn = ["id"], fn = { class: "g-sidebar-menu__list" }, pn = [
1799
1820
  "href",
1800
1821
  "aria-current",
1801
1822
  "onClick"
1802
- ], hn = /* @__PURE__ */ u({
1823
+ ], mn = /* @__PURE__ */ u({
1803
1824
  __name: "GSidebarMenu",
1804
1825
  props: /* @__PURE__ */ m({
1805
1826
  heading: {},
@@ -1825,7 +1846,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
1825
1846
  setup(t) {
1826
1847
  let n = t, l = B(t, "modelValue"), u = r(() => n.spy && l.value ? "#" + l.value : null), f = H("content");
1827
1848
  S(() => {
1828
- W(l, () => {
1849
+ G(l, () => {
1829
1850
  g(() => {
1830
1851
  let e = f.value?.querySelector(".g-sidebar-menu__is-active");
1831
1852
  e && e.scrollIntoView({ block: "nearest" });
@@ -1847,13 +1868,13 @@ var un = ["id"], dn = /* @__PURE__ */ u({
1847
1868
  key: 0,
1848
1869
  id: L(y),
1849
1870
  class: "g-sidebar-menu__title"
1850
- }, N(t.heading), 9, fn)) : a("", !0),
1871
+ }, N(t.heading), 9, dn)) : a("", !0),
1851
1872
  l[0] ||= s("div", { class: "g-sidebar-menu__divider" }, null, -1),
1852
1873
  s("div", {
1853
1874
  class: "g-sidebar-menu__content",
1854
1875
  ref_key: "content",
1855
1876
  ref: f
1856
- }, [s("ul", pn, [(w(!0), o(e, null, O(t.items, (e) => (w(), o("li", {
1877
+ }, [s("ul", fn, [(w(!0), o(e, null, O(t.items, (e) => (w(), o("li", {
1857
1878
  key: e.href || e.to,
1858
1879
  class: "g-sidebar-menu__item",
1859
1880
  ref_for: !0,
@@ -1863,7 +1884,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
1863
1884
  class: "g-sidebar-menu__link",
1864
1885
  to: e.to
1865
1886
  }, {
1866
- default: K(() => [c(N(e.label), 1)]),
1887
+ default: q(() => [c(N(e.label), 1)]),
1867
1888
  _: 2
1868
1889
  }, 1032, ["to"])) : (w(), o("a", {
1869
1890
  key: 1,
@@ -1871,24 +1892,24 @@ var un = ["id"], dn = /* @__PURE__ */ u({
1871
1892
  href: e.href || e.to || "#",
1872
1893
  "aria-current": u.value === (e.href || "") ? "location" : void 0,
1873
1894
  onClick: (t) => v(t, e)
1874
- }, N(e.label), 11, mn))]))), 128))])], 512)
1895
+ }, N(e.label), 11, pn))]))), 128))])], 512)
1875
1896
  ], 16));
1876
1897
  }
1877
- }), gn = {
1898
+ }), hn = {
1878
1899
  mounted(e, t) {
1879
- let n = D(null), r = D(!1), i = D(!1), a = D(t.value), o = null, s = !1, c = st(e), l = () => {
1880
- n.value || (n.value = ct(a.value, c), lt(n.value), o = new ResizeObserver(() => {
1881
- n.value && (r.value || i.value) && ut(e, n.value);
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);
1882
1903
  }), o.observe(n.value));
1883
1904
  };
1884
- G(() => {
1905
+ K(() => {
1885
1906
  n.value && (n.value.textContent = a.value);
1886
1907
  });
1887
1908
  let u = () => {
1888
- n.value && (r.value || i.value) && ut(e, n.value);
1909
+ n.value && (r.value || i.value) && lt(e, n.value);
1889
1910
  };
1890
- G(() => {
1891
- 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(() => {
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(() => {
1892
1913
  e.dispatchEvent(new CustomEvent("tooltip-hide"));
1893
1914
  }, 150)));
1894
1915
  });
@@ -1926,7 +1947,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
1926
1947
  let t = e._v_gtooltip;
1927
1948
  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");
1928
1949
  }
1929
- }, _n = { class: "g-clipboard-text" }, vn = /* @__PURE__ */ u({
1950
+ }, gn = { class: "g-clipboard-text" }, _n = /* @__PURE__ */ u({
1930
1951
  __name: "GClipboard",
1931
1952
  props: {
1932
1953
  text: {},
@@ -1934,12 +1955,12 @@ var un = ["id"], dn = /* @__PURE__ */ u({
1934
1955
  copyLabel: {}
1935
1956
  },
1936
1957
  setup(t) {
1937
- let n = t, r = gn, { text: i, copy: l, copied: u, isSupported: d } = ne({ source: n.text }), f = D(n.copyLabel ?? "Copy to clipboard"), p = () => {
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 = () => {
1938
1959
  d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
1939
1960
  }, m = () => {
1940
1961
  f.value = n.copyLabel ?? "Copy to clipboard";
1941
1962
  };
1942
- return (i, l) => (w(), o("div", _n, [t.hideText ? a("", !0) : (w(), o(e, { key: 0 }, [c(N(n.text), 1)], 64)), q((w(), o("button", {
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", {
1943
1964
  type: "button",
1944
1965
  "aria-label": "Copy",
1945
1966
  onClick: p,
@@ -1956,15 +1977,15 @@ var un = ["id"], dn = /* @__PURE__ */ u({
1956
1977
  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"
1957
1978
  })], -1)]], 32)), [[L(r), f.value]])]));
1958
1979
  }
1959
- }), yn = { class: "g-history-scroller-wrapper" }, bn = {
1980
+ }), vn = { class: "g-history-scroller-wrapper" }, yn = {
1960
1981
  key: 0,
1961
1982
  class: "g-history-shadow g-history-shadow--top",
1962
1983
  "aria-hidden": "true"
1963
- }, xn = {
1984
+ }, bn = {
1964
1985
  key: 1,
1965
1986
  class: "g-history-shadow g-history-shadow--bottom",
1966
1987
  "aria-hidden": "true"
1967
- }, Sn = ["role", "aria-label"], Cn = /* @__PURE__ */ u({
1988
+ }, xn = ["role", "aria-label"], Sn = /* @__PURE__ */ u({
1968
1989
  __name: "GHistoryScroller",
1969
1990
  props: {
1970
1991
  label: {},
@@ -1992,13 +2013,13 @@ var un = ["id"], dn = /* @__PURE__ */ u({
1992
2013
  u.value && f();
1993
2014
  }), ce(c, () => {
1994
2015
  u.value && f();
1995
- }), W(() => n.entries, async () => {
2016
+ }), G(() => n.entries, async () => {
1996
2017
  u.value && (await g(), f());
1997
2018
  });
1998
2019
  let m = r(() => [...n.entries].reverse());
1999
- return (n, r) => (w(), o("div", yn, [
2000
- d.value ? a("", !0) : (w(), o("div", bn)),
2001
- u.value ? a("", !0) : (w(), o("div", xn)),
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)),
2002
2023
  s("div", {
2003
2024
  ref_key: "scrollerRef",
2004
2025
  ref: i,
@@ -2013,7 +2034,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2013
2034
  onClick: r[0] ||= () => f({ focusLast: !0 }),
2014
2035
  "aria-label": "Jump to Latest"
2015
2036
  }, {
2016
- default: K(() => [...r[1] ||= [s("svg", {
2037
+ default: q(() => [...r[1] ||= [s("svg", {
2017
2038
  "aria-hidden": "true",
2018
2039
  xmlns: "http://www.w3.org/2000/svg",
2019
2040
  viewBox: "0 0 640 640",
@@ -2033,31 +2054,31 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2033
2054
  key: e.id,
2034
2055
  class: "g-history-entry",
2035
2056
  tabindex: "-1"
2036
- }, [k(n.$slots, "default", { entry: e })]))), 128))], 512)], 40, Sn)
2057
+ }, [k(n.$slots, "default", { entry: e })]))), 128))], 512)], 40, xn)
2037
2058
  ]));
2038
2059
  }
2039
- }), wn = { class: "g-three-way-toggle-wrapper" }, Tn = { class: "g-three-way-toggle-control" }, En = ["id"], Dn = [
2060
+ }), Cn = { class: "g-three-way-toggle-wrapper" }, wn = { class: "g-three-way-toggle-control" }, Tn = ["id"], En = [
2040
2061
  "aria-labelledby",
2041
2062
  "aria-describedby",
2042
2063
  "disabled",
2043
2064
  "aria-invalid",
2044
2065
  "aria-errormessage"
2045
- ], On = { key: 0 }, kn = { key: 1 }, An = { key: 2 }, jn = ["for"], Mn = [
2066
+ ], Dn = { key: 0 }, On = { key: 1 }, kn = { key: 2 }, An = ["for"], jn = [
2046
2067
  "id",
2047
2068
  "name",
2048
2069
  "checked",
2049
2070
  "disabled"
2050
- ], Nn = ["for"], Pn = [
2071
+ ], Mn = ["for"], Nn = [
2051
2072
  "id",
2052
2073
  "name",
2053
2074
  "checked",
2054
2075
  "disabled"
2055
- ], Fn = ["for"], In = [
2076
+ ], Pn = ["for"], Fn = [
2056
2077
  "id",
2057
2078
  "name",
2058
2079
  "checked",
2059
2080
  "disabled"
2060
- ], Ln = ["id"], Rn = /* @__PURE__ */ u({
2081
+ ], In = ["id"], Ln = /* @__PURE__ */ u({
2061
2082
  __name: "GThreeWayToggle",
2062
2083
  props: /* @__PURE__ */ m({
2063
2084
  label: {},
@@ -2091,10 +2112,10 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2091
2112
  function b(e) {
2092
2113
  n.disabled || (e.key === "n" || e.key === "N" ? (u(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y") && (u(!0), e.preventDefault()));
2093
2114
  }
2094
- return (t, n) => (w(), o("div", wn, [s("div", Tn, [s("span", {
2115
+ return (t, n) => (w(), o("div", Cn, [s("div", wn, [s("span", {
2095
2116
  class: "g-label",
2096
2117
  id: L(p)
2097
- }, [k(t.$slots, "label", {}, () => [c(N(e.label), 1)])], 8, En), s("fieldset", {
2118
+ }, [k(t.$slots, "label", {}, () => [c(N(e.label), 1)])], 8, Tn), s("fieldset", {
2098
2119
  class: _(["g-three-way-toggle", { "g-has-error": e.error }]),
2099
2120
  role: "radiogroup",
2100
2121
  "aria-labelledby": L(p),
@@ -2106,7 +2127,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2106
2127
  s("span", {
2107
2128
  class: _(["g-toggle-thumb", y.value]),
2108
2129
  "aria-hidden": "true"
2109
- }, [i.value === !1 ? (w(), o("span", On, "NO")) : i.value === !0 ? (w(), o("span", kn, "YES")) : (w(), o("span", An))], 2),
2130
+ }, [i.value === !1 ? (w(), o("span", Dn, "NO")) : i.value === !0 ? (w(), o("span", On, "YES")) : (w(), o("span", kn))], 2),
2110
2131
  s("label", {
2111
2132
  for: L(h),
2112
2133
  class: "g-toggle-option g-left",
@@ -2120,7 +2141,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2120
2141
  value: "false",
2121
2142
  disabled: e.disabled,
2122
2143
  onChange: n[0] ||= (e) => d(!1)
2123
- }, null, 40, Mn), n[5] ||= s("span", { class: "ilw-sr-only" }, "No", -1)], 40, jn),
2144
+ }, null, 40, jn), n[5] ||= s("span", { class: "ilw-sr-only" }, "No", -1)], 40, An),
2124
2145
  s("label", {
2125
2146
  for: L(g),
2126
2147
  class: "g-toggle-option g-center",
@@ -2132,7 +2153,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2132
2153
  checked: i.value === null,
2133
2154
  disabled: e.disabled,
2134
2155
  onChange: n[2] ||= (e) => d(null)
2135
- }, null, 40, Pn), n[6] ||= s("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, Nn),
2156
+ }, null, 40, Nn), n[6] ||= s("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, Mn),
2136
2157
  s("label", {
2137
2158
  for: L(v),
2138
2159
  class: "g-toggle-option g-right",
@@ -2146,53 +2167,53 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2146
2167
  checked: i.value === !0,
2147
2168
  disabled: e.disabled,
2148
2169
  onChange: n[3] ||= (e) => d(!0)
2149
- }, null, 40, In), n[7] ||= s("span", { class: "ilw-sr-only" }, "Yes", -1)], 40, Fn)
2150
- ], 2)], 10, Dn)]), e.error ? (w(), o("div", {
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", {
2151
2172
  key: 0,
2152
2173
  id: `${L(p)}-error`,
2153
2174
  class: "g-form-error",
2154
2175
  role: "alert",
2155
2176
  "aria-atomic": "true"
2156
- }, N(e.error), 9, Ln)) : a("", !0)]));
2177
+ }, N(e.error), 9, In)) : a("", !0)]));
2157
2178
  }
2158
- }), zn = {
2179
+ }), Rn = {
2159
2180
  ref: "tableBodyRef",
2160
2181
  class: "efficient-table-body"
2161
- }, Bn = ["aria-rowindex"], Vn = {
2182
+ }, zn = ["aria-rowindex"], Bn = {
2162
2183
  key: 0,
2163
2184
  class: "table-group-checkbox"
2164
- }, Hn = ["colspan"], Un = [
2185
+ }, Vn = ["colspan"], Hn = [
2165
2186
  "aria-rowindex",
2166
2187
  "onMousedown",
2167
2188
  "onClick"
2168
- ], Wn = [
2189
+ ], Un = [
2169
2190
  "checked",
2170
2191
  "onClick",
2171
2192
  "aria-label",
2172
2193
  "name"
2173
- ], Gn = ["id"], Kn = {
2194
+ ], Wn = ["id"], Gn = {
2174
2195
  key: 0,
2175
2196
  class: "editable-cell"
2176
- }, qn = {
2197
+ }, Kn = {
2177
2198
  key: 0,
2178
2199
  class: "cell-prefix"
2179
- }, Jn = [
2200
+ }, qn = [
2180
2201
  "value",
2181
2202
  "onChange",
2182
2203
  "aria-labelledby",
2183
2204
  "aria-invalid",
2184
2205
  "name"
2185
- ], Yn = ["value"], Xn = [
2206
+ ], Jn = ["value"], Yn = [
2186
2207
  "value",
2187
2208
  "onInput",
2188
2209
  "aria-labelledby",
2189
2210
  "aria-invalid",
2190
2211
  "aria-errormessage",
2191
2212
  "name"
2192
- ], Zn = {
2213
+ ], Xn = {
2193
2214
  key: 3,
2194
2215
  class: "cell-suffix"
2195
- }, Qn = ["id"], $n = /* @__PURE__ */ u({
2216
+ }, Zn = ["id"], Qn = /* @__PURE__ */ u({
2196
2217
  __name: "GTableBody",
2197
2218
  props: {
2198
2219
  data: {},
@@ -2261,13 +2282,13 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2261
2282
  function C(e, t) {
2262
2283
  if (l.changeTracker) return l.changeTracker.getError(e.key, t.key);
2263
2284
  }
2264
- return (n, r) => (w(), o("tbody", zn, [(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", {
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", {
2265
2286
  key: 0,
2266
2287
  "aria-rowindex": t.startIndex + l + 2
2267
- }, [t.bulkSelectionEnabled ? (w(), o("td", Vn)) : a("", !0), s("td", {
2288
+ }, [t.bulkSelectionEnabled ? (w(), o("td", Bn)) : a("", !0), s("td", {
2268
2289
  colspan: t.columns.length,
2269
2290
  class: "table-group-row"
2270
- }, [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, Hn)], 8, Bn)) : a("", !0), s("tr", {
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", {
2271
2292
  class: _([
2272
2293
  "efficient-table-row",
2273
2294
  {
@@ -2282,7 +2303,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2282
2303
  }, [t.bulkSelectionEnabled ? (w(), o("td", {
2283
2304
  key: 0,
2284
2305
  class: "td-checkbox",
2285
- onClick: r[0] ||= J(() => {}, ["stop"])
2306
+ onClick: r[0] ||= Y(() => {}, ["stop"])
2286
2307
  }, [s("input", {
2287
2308
  type: "checkbox",
2288
2309
  checked: p(n.key),
@@ -2290,7 +2311,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2290
2311
  "aria-label": `Select row ${n.key}`,
2291
2312
  name: `row-${n.key}-checkbox`,
2292
2313
  class: "g-bulk-select-checkbox"
2293
- }, null, 8, Wn)])) : a("", !0), (w(!0), o(e, null, O(t.columns, (r) => (w(), o("td", {
2314
+ }, null, 8, Un)])) : a("", !0), (w(!0), o(e, null, O(t.columns, (r) => (w(), o("td", {
2294
2315
  key: r.key,
2295
2316
  id: b(r) ? `${t.tableId}-td-${n.key}-${String(r.key)}` : void 0,
2296
2317
  class: _([
@@ -2299,8 +2320,8 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2299
2320
  S(n, r) ? "g-cell-error" : "",
2300
2321
  typeof r.tdClass == "function" ? r.tdClass(n) : r.tdClass
2301
2322
  ])
2302
- }, [r.editable ? (w(), o("div", Kn, [
2303
- r.editable.prefix ? (w(), o("span", qn, N(r.editable.prefix), 1)) : a("", !0),
2323
+ }, [r.editable ? (w(), o("div", Gn, [
2324
+ r.editable.prefix ? (w(), o("span", Kn, N(r.editable.prefix), 1)) : a("", !0),
2304
2325
  r.editable.type === "select" ? (w(), o("select", {
2305
2326
  key: 1,
2306
2327
  value: n[r.key],
@@ -2312,7 +2333,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2312
2333
  }, [(w(!0), o(e, null, O(r.editable.options, (e) => (w(), o("option", {
2313
2334
  key: e.value,
2314
2335
  value: e.value
2315
- }, N(e.label), 9, Yn))), 128))], 40, Jn)) : (w(), o("input", h({
2336
+ }, N(e.label), 9, Jn))), 128))], 40, qn)) : (w(), o("input", h({
2316
2337
  key: 2,
2317
2338
  value: n[r.key]
2318
2339
  }, { ref_for: !0 }, r.editable.inputAttributes, {
@@ -2326,214 +2347,479 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2326
2347
  paddingLeft: r.editable.prefix ? "1.5rem" : void 0,
2327
2348
  paddingRight: r.editable.suffix ? "2rem" : void 0
2328
2349
  }
2329
- }), null, 16, Xn)),
2330
- r.editable.suffix ? (w(), o("span", Zn, N(r.editable.suffix), 1)) : a("", !0)
2350
+ }), null, 16, Yn)),
2351
+ r.editable.suffix ? (w(), o("span", Xn, N(r.editable.suffix), 1)) : a("", !0)
2331
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", {
2332
2353
  key: 3,
2333
2354
  role: "alert",
2334
2355
  class: "g-cell-error-message",
2335
2356
  id: `${t.tableId}-error-${n.key}-${String(r.key)}`
2336
- }, N(C(n, r)), 9, Qn)) : a("", !0)], 10, Gn))), 128))], 42, Un)], 64))), 128))], 512));
2337
- }
2338
- });
2339
- //#endregion
2340
- //#region src/compose/useFiltering.ts
2341
- function er(e) {
2342
- if (!(Array.isArray(e) && e.length === 0) && !(e === null || e === !1 || e === "")) return e;
2343
- }
2344
- function tr(e) {
2345
- return Object.fromEntries(Object.entries(e).filter(([e, t]) => t && (!Array.isArray(t) || t.length > 0)));
2346
- }
2347
- function nr(e) {
2348
- if (e != null) return Array.isArray(e) ? e.filter((e) => e != null) : [e];
2349
- }
2350
- function rr(e) {
2351
- let t = {};
2352
- 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;
2353
- return t;
2354
- }
2355
- function ir(e) {
2356
- let t = {};
2357
- return Object.keys(e).forEach((n) => {
2358
- let r = e[n];
2359
- r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
2360
- }), t;
2361
- }
2362
- function ar(e, t = {}) {
2363
- let n = E(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), i = t.syncWith;
2364
- if (i) {
2365
- if (i.value) {
2366
- let t = I(i);
2367
- Object.keys(e).forEach((e) => {
2368
- if (t[e] !== void 0) {
2369
- let r = t[e];
2370
- typeof r == "string" && (r.includes(",") ? n[e] = r.split(",") : n[e] = r);
2371
- }
2372
- });
2373
- }
2374
- W(n, (e) => {
2375
- i.value = ir(e);
2376
- }, { deep: !0 });
2357
+ }, N(C(n, r)), 9, Zn)) : a("", !0)], 10, Wn))), 128))], 42, Hn)], 64))), 128))], 512));
2377
2358
  }
2378
- return {
2379
- filters: n,
2380
- isFiltered: r(() => {
2381
- for (let t of Object.keys(e)) if (er(n[t])) return !0;
2382
- return !1;
2383
- }),
2384
- clearFilters: () => {
2385
- Object.keys(n).forEach((e) => {
2386
- n[e] = void 0;
2387
- });
2388
- },
2389
- filteredColumns: r(() => {
2390
- let t = {};
2391
- for (let r of Object.keys(e)) t[r] = !!er(n[r]);
2392
- return t;
2393
- })
2394
- };
2395
- }
2396
- //#endregion
2397
- //#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
2398
- var or = { class: "g-table-outer-wrap" }, sr = {
2399
- key: 0,
2400
- class: "g-table-controls"
2401
- }, cr = { class: "g-clear-filters-wrap" }, lr = {
2402
- key: 0,
2403
- class: "pagination"
2404
- }, ur = { class: "g-result-count" }, dr = ["aria-label", "aria-rowcount"], fr = { class: "g-table-head" }, pr = { "aria-rowindex": "1" }, mr = {
2405
- key: 0,
2406
- scope: "col",
2407
- class: "g-th g-th-checkbox"
2408
- }, hr = [
2409
- "checked",
2410
- "indeterminate",
2411
- "aria-label"
2412
- ], gr = ["id", "aria-sort"], _r = { class: "th-inner" }, vr = ["onClick"], yr = {
2359
+ }), $n = ["id", "for"], er = {
2413
2360
  key: 0,
2414
- class: "sort-indicator"
2415
- }, br = ["aria-label"], xr = {
2416
- key: 1,
2417
- class: "g-column-head"
2418
- }, Sr = ["onClick", "aria-label"], Cr = { key: 1 }, wr = { class: "g-filter-toggle" }, Tr = [
2419
- "onUpdate:modelValue",
2361
+ class: "g-multiselect-required",
2362
+ "aria-hidden": "true"
2363
+ }, tr = ["id"], nr = ["aria-labelledby"], rr = { class: "g-multiselect-chip-label" }, ir = [
2364
+ "aria-label",
2365
+ "disabled",
2366
+ "onClick"
2367
+ ], ar = [
2420
2368
  "id",
2421
- "aria-describedby"
2422
- ], Er = ["for"], Dr = ["id"], Or = {
2423
- key: 2,
2424
- class: "g-multi-select"
2425
- }, kr = [
2426
- "onUpdate:modelValue",
2369
+ "value",
2370
+ "placeholder",
2371
+ "disabled",
2372
+ "aria-expanded",
2373
+ "aria-controls",
2374
+ "aria-activedescendant",
2375
+ "aria-describedby",
2376
+ "aria-required"
2377
+ ], or = ["id"], sr = [
2427
2378
  "id",
2428
- "value"
2429
- ], Ar = ["for"], jr = {
2379
+ "aria-selected",
2380
+ "onClick"
2381
+ ], cr = {
2382
+ class: "g-multiselect-option-check",
2383
+ "aria-hidden": "true"
2384
+ }, lr = {
2385
+ key: 0,
2386
+ xmlns: "http://www.w3.org/2000/svg",
2387
+ viewBox: "0 0 640 640",
2388
+ width: "1.25em"
2389
+ }, ur = {
2430
2390
  key: 1,
2431
- class: "g-bulk-actions-toolbar"
2432
- }, Mr = { class: "g-selected-count" }, Nr = { class: "g-bulk-actions" }, Pr = /* @__PURE__ */ u({
2433
- __name: "GTable",
2391
+ "aria-live": "polite",
2392
+ class: "g-multiselect-option g-multiselect-no-results"
2393
+ }, dr = /* @__PURE__ */ u({
2394
+ __name: "GMultiSelect",
2434
2395
  props: /* @__PURE__ */ m({
2396
+ options: {},
2435
2397
  label: {},
2436
- data: {},
2437
- columns: {},
2438
- resultCount: {},
2439
- groupBy: {},
2440
- groupRender: {},
2441
- filtering: {},
2442
- rowClickable: { type: Boolean },
2443
- rowClass: {},
2444
- startIndex: {},
2445
- bulkSelectionEnabled: {
2398
+ hiddenLabel: {
2446
2399
  type: Boolean,
2447
2400
  default: !1
2448
2401
  },
2449
- bulkActions: { default: () => [] },
2450
- changeTracker: {},
2451
- showPagination: {
2402
+ placeholder: {},
2403
+ disabled: {
2452
2404
  type: Boolean,
2453
2405
  default: !1
2454
- }
2406
+ },
2407
+ required: {
2408
+ type: Boolean,
2409
+ default: !1
2410
+ },
2411
+ name: {},
2412
+ errors: { default: () => [] },
2413
+ instructions: {},
2414
+ formKey: {}
2455
2415
  }, {
2456
- sortField: {},
2457
- sortFieldModifiers: {},
2458
- sortOrder: {},
2459
- sortOrderModifiers: {},
2460
- filter: { default: () => ({}) },
2461
- filterModifiers: {},
2462
- selectedRows: { default: () => [] },
2463
- selectedRowsModifiers: {}
2416
+ modelValue: { default: () => [] },
2417
+ modelModifiers: {}
2464
2418
  }),
2465
- emits: /* @__PURE__ */ m([
2466
- "row-click",
2467
- "bulk-action",
2468
- "cell-change"
2469
- ], [
2470
- "update:sortField",
2471
- "update:sortOrder",
2472
- "update:filter",
2473
- "update:selectedRows"
2474
- ]),
2419
+ emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
2475
2420
  setup(t, { emit: n }) {
2476
- let u = B(t, "sortField"), d = B(t, "sortOrder"), f = B(t, "filter"), p = B(t, "selectedRows"), m = t, h = n;
2477
- function g(e) {
2478
- 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));
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 } = $({
2422
+ name: i.name,
2423
+ value: d,
2424
+ errors: F(i, "errors"),
2425
+ formKey: i.formKey
2426
+ }), { menuPlacement: E, menuStyle: k, isTop: A, scrollOptionIntoView: j } = jt({
2427
+ open: y,
2428
+ anchorRef: m,
2429
+ listboxRef: v,
2430
+ baseId: f,
2431
+ activeIndex: b
2432
+ }), M = r(() => At(i.options)), P = r(() => {
2433
+ if (!x.value) return M.value;
2434
+ let e = x.value.toLowerCase();
2435
+ return M.value.filter((t) => t.label.toLowerCase().includes(e));
2436
+ });
2437
+ function I(e) {
2438
+ return d.value.includes(e);
2479
2439
  }
2480
- let v = m.filtering;
2481
- v ||= ar({});
2482
- 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);
2483
- function I() {
2484
- if (j.value) p.value = p.value.filter((e) => !E.value.includes(e));
2485
- else {
2486
- let e = new Set(p.value);
2487
- E.value.forEach((t) => e.add(t)), p.value = Array.from(e);
2488
- }
2440
+ function R(e) {
2441
+ let t = M.value.find((t) => t.value === e);
2442
+ return t ? t.label : String(e);
2489
2443
  }
2490
- function R(e, t = !1) {
2491
- if (t && F.value) {
2492
- let t = E.value.indexOf(F.value), n = E.value.indexOf(e);
2493
- if (t !== -1 && n !== -1) {
2494
- let e = Math.min(t, n), r = Math.max(t, n), i = E.value.slice(e, r + 1), a = new Set(p.value);
2495
- i.forEach((e) => a.add(e)), p.value = Array.from(a);
2496
- }
2497
- } else p.value.includes(e) ? p.value = p.value.filter((t) => t !== e) : p.value = [...p.value, e];
2498
- F.value = e;
2444
+ function V() {
2445
+ i.disabled || (y.value = !0, b.value = 0);
2499
2446
  }
2500
- function H(e) {
2501
- h("row-click", e);
2447
+ function H() {
2448
+ y.value = !1, x.value = "";
2502
2449
  }
2503
- function ee(e) {
2504
- h("bulk-action", e, p.value);
2450
+ function U(e) {
2451
+ let t = P.value[e];
2452
+ if (!t) return;
2453
+ let n = d.value, r = I(t.value) ? n.filter((e) => e !== t.value) : [...n, t.value];
2454
+ d.value = r, u("change", r), g(() => p.value?.focus());
2505
2455
  }
2506
2456
  function G(e) {
2507
- let t = e.value, n = e.column.key, r = P(e.row[n]);
2508
- e.column.editable?.inputAttributes?.type === "number" && (t = e.value === "" ? null : Number(e.value)), e.row[n] = t, h("cell-change", {
2509
- row: e.row,
2510
- column: e.column,
2511
- value: t,
2512
- previousValue: r
2513
- });
2457
+ if (i.disabled) return;
2458
+ let t = d.value.filter((t) => t !== e);
2459
+ d.value = t, u("change", t);
2514
2460
  }
2515
- let Y = z(), te = V(), X = r(() => m.showPagination ? !0 : !!te.pagination), Z = r(() => !!(C.value || X.value));
2461
+ function K() {
2462
+ i.disabled || (p.value?.focus(), y.value || V());
2463
+ }
2464
+ function q(e) {
2465
+ x.value = e.target.value, b.value = 0, y.value || V();
2466
+ }
2467
+ function X() {
2468
+ i.disabled || y.value || V();
2469
+ }
2470
+ function ee(e) {
2471
+ if (S.value) {
2472
+ S.value = !1;
2473
+ return;
2474
+ }
2475
+ let t = e.relatedTarget;
2476
+ t && v.value?.contains(t) || t && m.value?.contains(t) || H();
2477
+ }
2478
+ function Z(e) {
2479
+ e.preventDefault();
2480
+ }
2481
+ function te() {
2482
+ S.value = !0;
2483
+ }
2484
+ function ne(e) {
2485
+ if (i.disabled) return;
2486
+ let t = P.value.length - 1;
2487
+ switch (e.key) {
2488
+ case "ArrowDown":
2489
+ e.preventDefault(), y.value ? (b.value = Math.min(t, b.value + 1), j()) : V();
2490
+ break;
2491
+ case "ArrowUp":
2492
+ e.preventDefault(), y.value ? (b.value = Math.max(0, b.value - 1), j()) : V();
2493
+ break;
2494
+ case "Home":
2495
+ e.preventDefault(), b.value = 0, j();
2496
+ break;
2497
+ case "End":
2498
+ e.preventDefault(), b.value = t, j();
2499
+ break;
2500
+ case "Enter":
2501
+ e.preventDefault(), y.value && P.value.length > 0 ? U(b.value) : y.value || V();
2502
+ break;
2503
+ case " ":
2504
+ y.value && !x.value && (e.preventDefault(), P.value.length > 0 && U(b.value));
2505
+ break;
2506
+ case "Escape":
2507
+ A.value && (e.preventDefault(), setTimeout(() => H(), 0));
2508
+ break;
2509
+ case "Backspace":
2510
+ !x.value && d.value.length > 0 && G(d.value[d.value.length - 1]);
2511
+ break;
2512
+ }
2513
+ }
2514
+ let re = r(() => `${f}-input`), ie = r(() => `${f}-label`), ae = r(() => `${f}-instructions`), oe = r(() => `error-message-${f}`), se = r(() => {
2515
+ let e = [];
2516
+ return i.instructions && e.push(ae.value), T.value && e.push(oe.value), e.length > 0 ? e.join(" ") : void 0;
2517
+ });
2518
+ return (n, r) => (w(), o("div", { class: _(["g-multiselect-root", {
2519
+ "g-multiselect-open": y.value,
2520
+ "g-multiselect-has-error": L(T)
2521
+ }]) }, [
2522
+ t.hiddenLabel ? a("", !0) : (w(), o("label", {
2523
+ key: 0,
2524
+ id: ie.value,
2525
+ for: re.value,
2526
+ 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", {
2529
+ key: 1,
2530
+ id: ae.value,
2531
+ class: "g-multiselect-instructions"
2532
+ }, N(t.instructions), 9, tr)) : a("", !0),
2533
+ s("div", {
2534
+ ref_key: "controlRef",
2535
+ ref: m,
2536
+ class: _(["g-multiselect-control", { "g-multiselect-control--disabled": t.disabled }]),
2537
+ onClick: K
2538
+ }, [
2539
+ s("ul", {
2540
+ class: "g-multiselect-chips",
2541
+ "aria-labelledby": ie.value
2542
+ }, [(w(!0), o(e, null, O(d.value, (e) => (w(), o("li", {
2543
+ key: e,
2544
+ class: "g-multiselect-chip"
2545
+ }, [s("span", rr, N(R(e)), 1), s("button", {
2546
+ type: "button",
2547
+ class: "g-multiselect-chip-remove",
2548
+ "aria-label": `Remove ${R(e)}`,
2549
+ disabled: t.disabled,
2550
+ onMousedown: te,
2551
+ onClick: Y((t) => G(e), ["stop"])
2552
+ }, [...r[0] ||= [s("svg", {
2553
+ xmlns: "http://www.w3.org/2000/svg",
2554
+ viewBox: "0 0 51.26 51.26",
2555
+ width: "1em",
2556
+ role: "none presentation"
2557
+ }, [s("path", {
2558
+ fill: "currentColor",
2559
+ 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),
2561
+ s("input", h({
2562
+ ref_key: "inputRef",
2563
+ ref: p,
2564
+ type: "text",
2565
+ role: "combobox",
2566
+ class: "g-multiselect-input",
2567
+ id: re.value,
2568
+ value: x.value,
2569
+ placeholder: d.value.length === 0 ? t.placeholder : void 0,
2570
+ disabled: t.disabled,
2571
+ autocomplete: "off",
2572
+ "aria-autocomplete": "list",
2573
+ "aria-expanded": y.value ? "true" : "false",
2574
+ "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
2577
+ }, t.hiddenLabel ? { "aria-label": t.label } : void 0, {
2578
+ "aria-describedby": se.value,
2579
+ "aria-required": t.required ? "true" : void 0,
2580
+ onInput: q,
2581
+ onKeydown: ne,
2582
+ onFocus: X,
2583
+ onBlur: ee
2584
+ }), null, 16, ar),
2585
+ r[2] ||= s("svg", {
2586
+ class: "g-multiselect-caret",
2587
+ xmlns: "http://www.w3.org/2000/svg",
2588
+ viewBox: "0 0 51.26 51.26",
2589
+ "aria-hidden": "true",
2590
+ width: "1.125em"
2591
+ }, [s("path", {
2592
+ fill: "currentColor",
2593
+ 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
+ })], -1),
2595
+ J(s("div", h({
2596
+ ref_key: "listboxRef",
2597
+ ref: v,
2598
+ id: L(f) + "-listbox",
2599
+ role: "listbox",
2600
+ "aria-multiselectable": "true"
2601
+ }, 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),
2604
+ tabindex: "-1"
2605
+ }), [P.value.length > 0 ? (w(!0), o(e, { key: 0 }, O(P.value, (e, t) => (w(), o("div", {
2606
+ key: e.value,
2607
+ id: L(f) + "-option-" + t,
2608
+ role: "option",
2609
+ class: _(["g-multiselect-option", {
2610
+ "g-multiselect-option--active": t === b.value,
2611
+ "g-multiselect-option--selected": I(e.value)
2612
+ }]),
2613
+ "aria-selected": I(e.value) ? "true" : "false",
2614
+ onMousedown: Z,
2615
+ 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]])
2617
+ ], 2),
2618
+ l(Ae, {
2619
+ errors: L(C),
2620
+ id: oe.value
2621
+ }, null, 8, ["errors", "id"])
2622
+ ], 2));
2623
+ }
2624
+ });
2625
+ //#endregion
2626
+ //#region src/compose/useFiltering.ts
2627
+ function fr(e) {
2628
+ if (!(Array.isArray(e) && e.length === 0) && !(e === null || e === !1 || e === "")) return e;
2629
+ }
2630
+ function pr(e) {
2631
+ return Object.fromEntries(Object.entries(e).filter(([e, t]) => t && (!Array.isArray(t) || t.length > 0)));
2632
+ }
2633
+ function mr(e) {
2634
+ if (e != null) return Array.isArray(e) ? e.filter((e) => e != null) : [e];
2635
+ }
2636
+ function hr(e) {
2637
+ 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;
2639
+ return t;
2640
+ }
2641
+ function gr(e) {
2642
+ let t = {};
2643
+ return Object.keys(e).forEach((n) => {
2644
+ let r = e[n];
2645
+ r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
2646
+ }), t;
2647
+ }
2648
+ function _r(e, t = {}) {
2649
+ let n = E(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), i = t.syncWith;
2650
+ if (i) {
2651
+ if (i.value) {
2652
+ let t = I(i);
2653
+ Object.keys(e).forEach((e) => {
2654
+ if (t[e] !== void 0) {
2655
+ let r = t[e];
2656
+ typeof r == "string" && (r.includes(",") ? n[e] = r.split(",") : n[e] = r);
2657
+ }
2658
+ });
2659
+ }
2660
+ G(n, (e) => {
2661
+ i.value = gr(e);
2662
+ }, { deep: !0 });
2663
+ }
2664
+ return {
2665
+ filters: n,
2666
+ isFiltered: r(() => {
2667
+ for (let t of Object.keys(e)) if (fr(n[t])) return !0;
2668
+ return !1;
2669
+ }),
2670
+ clearFilters: () => {
2671
+ Object.keys(n).forEach((e) => {
2672
+ n[e] = void 0;
2673
+ });
2674
+ },
2675
+ filteredColumns: r(() => {
2676
+ let t = {};
2677
+ for (let r of Object.keys(e)) t[r] = !!fr(n[r]);
2678
+ return t;
2679
+ })
2680
+ };
2681
+ }
2682
+ //#endregion
2683
+ //#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
2684
+ var vr = { class: "g-table-outer-wrap" }, yr = {
2685
+ key: 0,
2686
+ class: "g-table-controls"
2687
+ }, br = { class: "g-clear-filters-wrap" }, xr = {
2688
+ key: 0,
2689
+ class: "pagination"
2690
+ }, Sr = { class: "g-result-count" }, Cr = ["aria-label", "aria-rowcount"], wr = { class: "g-table-head" }, Tr = { "aria-rowindex": "1" }, Er = {
2691
+ key: 0,
2692
+ scope: "col",
2693
+ class: "g-th g-th-checkbox"
2694
+ }, Dr = [
2695
+ "checked",
2696
+ "indeterminate",
2697
+ "aria-label"
2698
+ ], Or = ["id", "aria-sort"], kr = { class: "th-inner" }, Ar = ["onClick"], jr = {
2699
+ key: 0,
2700
+ class: "sort-indicator"
2701
+ }, Mr = ["aria-label"], Nr = {
2702
+ key: 1,
2703
+ class: "g-column-head"
2704
+ }, Pr = ["onClick", "aria-label"], Fr = { key: 1 }, Ir = { class: "g-filter-toggle" }, Lr = [
2705
+ "onUpdate:modelValue",
2706
+ "id",
2707
+ "aria-describedby"
2708
+ ], Rr = ["for"], zr = ["id"], Br = {
2709
+ key: 3,
2710
+ class: "g-multi-select"
2711
+ }, Vr = [
2712
+ "onUpdate:modelValue",
2713
+ "id",
2714
+ "value"
2715
+ ], Hr = ["for"], Ur = {
2716
+ key: 1,
2717
+ class: "g-bulk-actions-toolbar"
2718
+ }, Wr = { class: "g-selected-count" }, Gr = { class: "g-bulk-actions" }, Kr = /* @__PURE__ */ u({
2719
+ __name: "GTable",
2720
+ props: /* @__PURE__ */ m({
2721
+ label: {},
2722
+ data: {},
2723
+ columns: {},
2724
+ resultCount: {},
2725
+ groupBy: {},
2726
+ groupRender: {},
2727
+ filtering: {},
2728
+ rowClickable: { type: Boolean },
2729
+ rowClass: {},
2730
+ startIndex: {},
2731
+ bulkSelectionEnabled: {
2732
+ type: Boolean,
2733
+ default: !1
2734
+ },
2735
+ bulkActions: { default: () => [] },
2736
+ changeTracker: {},
2737
+ showPagination: {
2738
+ type: Boolean,
2739
+ default: !1
2740
+ }
2741
+ }, {
2742
+ sortField: {},
2743
+ sortFieldModifiers: {},
2744
+ sortOrder: {},
2745
+ sortOrderModifiers: {},
2746
+ filter: { default: () => ({}) },
2747
+ filterModifiers: {},
2748
+ selectedRows: { default: () => [] },
2749
+ selectedRowsModifiers: {}
2750
+ }),
2751
+ emits: /* @__PURE__ */ m([
2752
+ "row-click",
2753
+ "bulk-action",
2754
+ "cell-change"
2755
+ ], [
2756
+ "update:sortField",
2757
+ "update:sortOrder",
2758
+ "update:filter",
2759
+ "update:selectedRows"
2760
+ ]),
2761
+ 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;
2763
+ function g(e) {
2764
+ 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
+ }
2766
+ 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);
2769
+ function I() {
2770
+ if (j.value) p.value = p.value.filter((e) => !E.value.includes(e));
2771
+ else {
2772
+ let e = new Set(p.value);
2773
+ E.value.forEach((t) => e.add(t)), p.value = Array.from(e);
2774
+ }
2775
+ }
2776
+ function R(e, t = !1) {
2777
+ if (t && F.value) {
2778
+ let t = E.value.indexOf(F.value), n = E.value.indexOf(e);
2779
+ if (t !== -1 && n !== -1) {
2780
+ let e = Math.min(t, n), r = Math.max(t, n), i = E.value.slice(e, r + 1), a = new Set(p.value);
2781
+ i.forEach((e) => a.add(e)), p.value = Array.from(a);
2782
+ }
2783
+ } else p.value.includes(e) ? p.value = p.value.filter((t) => t !== e) : p.value = [...p.value, e];
2784
+ F.value = e;
2785
+ }
2786
+ function H(e) {
2787
+ h("row-click", e);
2788
+ }
2789
+ function W(e) {
2790
+ h("bulk-action", e, p.value);
2791
+ }
2792
+ function K(e) {
2793
+ let t = e.value, n = e.column.key, r = P(e.row[n]);
2794
+ e.column.editable?.inputAttributes?.type === "number" && (t = e.value === "" ? null : Number(e.value)), e.row[n] = t, h("cell-change", {
2795
+ row: e.row,
2796
+ column: e.column,
2797
+ value: t,
2798
+ previousValue: r
2799
+ });
2800
+ }
2801
+ let X = z(), ee = V(), Z = r(() => m.showPagination ? !0 : !!ee.pagination), te = r(() => !!(C.value || Z.value));
2516
2802
  return S(() => {
2517
2803
  m.rowClickable && m.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
2518
2804
  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])) {
2519
2805
  let t = f.value[e.key];
2520
2806
  f.value[e.key] = t ? [t] : [];
2521
2807
  }
2522
- }), W(() => m.columns, (e) => {
2808
+ }), G(() => m.columns, (e) => {
2523
2809
  for (let t of e) if (t.filter && t.filter.type === "multi-select" && !Array.isArray(f.value[t.key])) {
2524
2810
  let e = f.value[t.key];
2525
2811
  f.value[t.key] = e ? [e] : [];
2526
2812
  }
2527
- }, { immediate: !0 }), (n, r) => (w(), o("div", or, [
2528
- Z.value ? (w(), o("div", sr, [
2529
- s("div", cr, [L(C) ? (w(), i(Q, {
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, {
2530
2816
  key: 0,
2531
2817
  outlined: "",
2532
2818
  size: "small",
2533
2819
  class: "clear-filters",
2534
2820
  onClick: L(T)
2535
2821
  }, {
2536
- default: K(() => [...r[0] ||= [s("svg", {
2822
+ default: q(() => [...r[0] ||= [s("svg", {
2537
2823
  xmlns: "http://www.w3.org/2000/svg",
2538
2824
  viewBox: "0 0 51.26 51.26",
2539
2825
  height: "1em",
@@ -2544,24 +2830,24 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2544
2830
  })], -1), s("span", { class: "g-clear-filters-text" }, " Clear Filters ", -1)]]),
2545
2831
  _: 1
2546
2832
  }, 8, ["onClick"])) : a("", !0)]),
2547
- X.value ? (w(), o("div", lr, [k(n.$slots, "pagination")])) : a("", !0),
2548
- s("span", ur, N(m.resultCount || t.data.length) + " results", 1)
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)
2549
2835
  ])) : a("", !0),
2550
2836
  s("table", {
2551
2837
  class: "g-table",
2552
2838
  ref: "tableRef",
2553
2839
  "aria-label": t.label,
2554
2840
  "aria-rowcount": m.resultCount || t.data.length
2555
- }, [s("thead", fr, [s("tr", pr, [t.bulkSelectionEnabled ? (w(), o("th", mr, [s("input", {
2841
+ }, [s("thead", wr, [s("tr", Tr, [t.bulkSelectionEnabled ? (w(), o("th", Er, [s("input", {
2556
2842
  type: "checkbox",
2557
2843
  checked: j.value,
2558
2844
  indeterminate: M.value,
2559
2845
  onChange: I,
2560
2846
  "aria-label": j.value ? "Deselect all rows" : "Select all rows",
2561
2847
  class: "g-bulk-select-checkbox"
2562
- }, null, 40, hr)])) : a("", !0), (w(!0), o(e, null, O(t.columns, (t) => (w(), o("th", {
2848
+ }, null, 40, Dr)])) : a("", !0), (w(!0), o(e, null, O(t.columns, (t) => (w(), o("th", {
2563
2849
  key: t.key,
2564
- id: `${L(Y)}-th-${String(t.key)}`,
2850
+ id: `${L(X)}-th-${String(t.key)}`,
2565
2851
  "aria-sort": u.value === t.key ? d.value === 1 ? "ascending" : "descending" : "none",
2566
2852
  class: _([
2567
2853
  "g-th",
@@ -2569,12 +2855,12 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2569
2855
  { filtered: L(x)[t.key] }
2570
2856
  ]),
2571
2857
  scope: "col"
2572
- }, [s("div", _r, [t.sortable ? (w(), o("button", {
2858
+ }, [s("div", kr, [t.sortable ? (w(), o("button", {
2573
2859
  key: 0,
2574
2860
  type: "button",
2575
2861
  class: "g-column-head",
2576
2862
  onClick: (e) => g(t)
2577
- }, [c(N(t.label) + " ", 1), u.value === t.key ? (w(), o("span", yr, [(w(), o("svg", {
2863
+ }, [c(N(t.label) + " ", 1), u.value === t.key ? (w(), o("span", jr, [(w(), o("svg", {
2578
2864
  xmlns: "http://www.w3.org/2000/svg",
2579
2865
  viewBox: "0 0 640 640",
2580
2866
  height: "1.5em",
@@ -2584,9 +2870,9 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2584
2870
  }, [...r[1] ||= [s("path", {
2585
2871
  fill: "currentColor",
2586
2872
  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"
2587
- }, null, -1)]], 12, br))])) : a("", !0)], 8, vr)) : (w(), o("span", xr, N(t.label), 1)), t.filter ? (w(), i(it, { key: 2 }, {
2588
- trigger: K(({ toggle: e }) => [s("button", {
2589
- onClick: J(e, ["stop"]),
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"]),
2590
2876
  "aria-label": L(x)[t.key] ? "Column Filtered" : "Filter Column",
2591
2877
  class: _(["g-filter-btn", { "g-active": L(x)[t.key] }]),
2592
2878
  type: "button"
@@ -2598,8 +2884,8 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2598
2884
  }, [s("path", {
2599
2885
  fill: "currentColor",
2600
2886
  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"
2601
- })], -1)]], 10, Sr)]),
2602
- default: K(() => [t.filter.type === "select" ? (w(), i(Ht, {
2887
+ })], -1)]], 10, Pr)]),
2888
+ default: q(() => [t.filter.type === "select" ? (w(), i(Vt, {
2603
2889
  key: 0,
2604
2890
  modelValue: f.value[t.key],
2605
2891
  "onUpdate:modelValue": (e) => f.value[t.key] = e,
@@ -2612,28 +2898,41 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2612
2898
  "modelValue",
2613
2899
  "onUpdate:modelValue",
2614
2900
  "options"
2615
- ])) : t.filter.type === "toggle" ? (w(), o("div", Cr, [s("div", wr, [
2616
- q(s("input", {
2901
+ ])) : t.filter.type === "toggle" ? (w(), o("div", Fr, [s("div", Ir, [
2902
+ J(s("input", {
2617
2903
  type: "checkbox",
2618
2904
  "onUpdate:modelValue": (e) => f.value[t.key] = e,
2619
- id: `${L(Y)}-filter-${String(t.key)}`,
2620
- "aria-describedby": t.filter.description ? `${L(Y)}-filter-description-${String(t.key)}` : void 0
2621
- }, null, 8, Tr), [[U, f.value[t.key]]]),
2622
- s("label", { for: `${L(Y)}-filter-${String(t.key)}` }, N(t.filter.label), 9, Er),
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),
2623
2909
  t.filter.description ? (w(), o("span", {
2624
2910
  key: 0,
2625
2911
  class: "g-filter-description",
2626
- id: `${L(Y)}-filter-description-${String(t.key)}`
2627
- }, N(t.filter.description), 9, Dr)) : a("", !0)
2628
- ])])) : t.filter.type === "multi-select" ? (w(), o("fieldset", Or, [
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, {
2915
+ key: 2,
2916
+ modelValue: f.value[t.key],
2917
+ "onUpdate:modelValue": (e) => f.value[t.key] = e,
2918
+ options: t.filter.options,
2919
+ label: "Include values",
2920
+ placeholder: t.filter.placeholder,
2921
+ class: "g-multi-select-searchable"
2922
+ }, null, 8, [
2923
+ "modelValue",
2924
+ "onUpdate:modelValue",
2925
+ "options",
2926
+ "placeholder"
2927
+ ])) : t.filter.type === "multi-select" ? (w(), o("fieldset", Br, [
2629
2928
  r[4] ||= s("legend", { class: "g-multi-select-legend" }, " Include values ", -1),
2630
- (w(!0), o(e, null, O(t.filter.options, (e) => (w(), o("div", { key: e.value }, [q(s("input", {
2929
+ (w(!0), o(e, null, O(t.filter.options, (e) => (w(), o("div", { key: e.value }, [J(s("input", {
2631
2930
  type: "checkbox",
2632
2931
  "onUpdate:modelValue": (e) => f.value[t.key] = e,
2633
2932
  id: `filter-${String(t.key)}-${e.value}`,
2634
2933
  value: e.value,
2635
2934
  name: "filter-multiselect"
2636
- }, null, 8, kr), [[U, f.value[t.key]]]), s("label", { for: `filter-${String(t.key)}-${e.value}` }, N(e.label), 9, Ar)]))), 128)),
2935
+ }, null, 8, Vr), [[U, f.value[t.key]]]), s("label", { for: `filter-${String(t.key)}-${e.value}` }, N(e.label), 9, Hr)]))), 128)),
2637
2936
  f.value[t.key] && f.value[t.key].length ? (w(), i(Q, {
2638
2937
  key: 0,
2639
2938
  class: "clear-multiselect-btn",
@@ -2641,12 +2940,12 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2641
2940
  size: "small",
2642
2941
  onClick: (e) => f.value[t.key] = []
2643
2942
  }, {
2644
- default: K(() => [...r[3] ||= [c(" Clear ", -1)]]),
2943
+ default: q(() => [...r[3] ||= [c(" Clear ", -1)]]),
2645
2944
  _: 1
2646
2945
  }, 8, ["onClick"])) : a("", !0)
2647
2946
  ])) : a("", !0)]),
2648
2947
  _: 2
2649
- }, 1024)) : a("", !0)])], 10, gr))), 128))])]), l($n, {
2948
+ }, 1024)) : a("", !0)])], 10, Or))), 128))])]), l(Qn, {
2650
2949
  data: t.data,
2651
2950
  columns: t.columns,
2652
2951
  "group-by": t.groupBy,
@@ -2656,11 +2955,11 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2656
2955
  "start-index": t.startIndex,
2657
2956
  "bulk-selection-enabled": t.bulkSelectionEnabled,
2658
2957
  "selected-rows": p.value,
2659
- "table-id": L(Y),
2958
+ "table-id": L(X),
2660
2959
  "change-tracker": t.changeTracker,
2661
2960
  onRowClick: H,
2662
2961
  onToggleRow: R,
2663
- onCellChange: G
2962
+ onCellChange: K
2664
2963
  }, null, 8, [
2665
2964
  "data",
2666
2965
  "columns",
@@ -2673,21 +2972,21 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2673
2972
  "selected-rows",
2674
2973
  "table-id",
2675
2974
  "change-tracker"
2676
- ])], 8, dr),
2677
- t.bulkSelectionEnabled && p.value.length > 0 ? (w(), o("div", jr, [s("span", Mr, N(p.value.length) + " row" + N(p.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Nr, [(w(!0), o(e, null, O(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l(Q, {
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, {
2678
2977
  theme: e.theme || "accent",
2679
- onClick: (t) => ee(e.id),
2978
+ onClick: (t) => W(e.id),
2680
2979
  size: "small"
2681
2980
  }, {
2682
- default: K(() => [c(N(e.label) + " " + N(p.value.length) + " row" + N(p.value.length === 1 ? "" : "s"), 1)]),
2981
+ default: q(() => [c(N(e.label) + " " + N(p.value.length) + " row" + N(p.value.length === 1 ? "" : "s"), 1)]),
2683
2982
  _: 2
2684
2983
  }, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
2685
2984
  ]));
2686
2985
  }
2687
- }), Fr = {
2986
+ }), qr = {
2688
2987
  class: "g-pagination",
2689
2988
  "aria-label": "Pagination"
2690
- }, Ir = ["disabled"], Lr = ["disabled"], Rr = { class: "page-range" }, zr = ["disabled"], Br = ["disabled"], Vr = ["value"], Hr = ["value"], Ur = /* @__PURE__ */ u({
2989
+ }, Jr = ["disabled"], Yr = ["disabled"], Xr = { class: "page-range" }, Zr = ["disabled"], Qr = ["disabled"], $r = ["value"], ei = ["value"], ti = /* @__PURE__ */ u({
2691
2990
  __name: "GTablePagination",
2692
2991
  props: /* @__PURE__ */ m({
2693
2992
  start: {},
@@ -2709,7 +3008,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2709
3008
  function h(e) {
2710
3009
  c.value = parseInt(e.target.value, 10);
2711
3010
  }
2712
- return (t, r) => (w(), o("nav", Fr, [
3011
+ return (t, r) => (w(), o("nav", qr, [
2713
3012
  s("button", {
2714
3013
  class: "first-page g-pagination-button",
2715
3014
  disabled: p.value === 1,
@@ -2734,7 +3033,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2734
3033
  }),
2735
3034
  s("path", { d: "M11 7l-5 5l5 5" }),
2736
3035
  s("path", { d: "M17 7l-5 5l5 5" })
2737
- ], -1)]], 8, Ir),
3036
+ ], -1)]], 8, Jr),
2738
3037
  s("button", {
2739
3038
  class: "prev-page g-pagination-button",
2740
3039
  disabled: p.value === 1,
@@ -2755,8 +3054,8 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2755
3054
  stroke: "none",
2756
3055
  d: "M0 0h24v24H0z",
2757
3056
  fill: "none"
2758
- }), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, Lr),
2759
- s("span", Rr, N(d.value) + " to " + N(f.value), 1),
3057
+ }), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, Yr),
3058
+ s("span", Xr, N(d.value) + " to " + N(f.value), 1),
2760
3059
  s("button", {
2761
3060
  class: "next-page g-pagination-button",
2762
3061
  disabled: p.value === i.value,
@@ -2777,7 +3076,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2777
3076
  stroke: "none",
2778
3077
  d: "M0 0h24v24H0z",
2779
3078
  fill: "none"
2780
- }), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, zr),
3079
+ }), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, Zr),
2781
3080
  s("button", {
2782
3081
  class: "last-page g-pagination-button",
2783
3082
  disabled: p.value === i.value,
@@ -2802,7 +3101,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2802
3101
  }),
2803
3102
  s("path", { d: "M7 7l5 5l-5 5" }),
2804
3103
  s("path", { d: "M13 7l5 5l-5 5" })
2805
- ], -1)]], 8, Br),
3104
+ ], -1)]], 8, Qr),
2806
3105
  s("select", {
2807
3106
  id: "page-size-select",
2808
3107
  class: "page-size-select",
@@ -2816,14 +3115,14 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2816
3115
  ], (e) => (w(), o("option", {
2817
3116
  key: e,
2818
3117
  value: e
2819
- }, N(e), 9, Hr))), 128))], 40, Vr),
3118
+ }, N(e), 9, ei))), 128))], 40, $r),
2820
3119
  r[8] ||= s("label", {
2821
3120
  class: "page-size-label",
2822
3121
  for: "page-size-select"
2823
3122
  }, "per page", -1)
2824
3123
  ]));
2825
3124
  }
2826
- }), Wr = ["id"], Gr = { class: "g-modal-inner" }, Kr = { class: "g-modal-header" }, qr = ["id"], Jr = ["id"], Yr = /* @__PURE__ */ u({
3125
+ }), ni = ["id"], ri = { class: "g-modal-inner" }, ii = { class: "g-modal-header" }, ai = ["id"], oi = ["id"], si = /* @__PURE__ */ u({
2827
3126
  __name: "GModal",
2828
3127
  props: {
2829
3128
  label: {},
@@ -2837,11 +3136,11 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2837
3136
  },
2838
3137
  emits: ["close"],
2839
3138
  setup(e, { emit: c }) {
2840
- let u = e, d = c, f = H("dialog"), p = D(!0), m = z(), { pop: g, push: _, isTop: v, zIndex: y } = Ke(m, !0, !0), { deactivate: x, activate: C } = Qe(f, v);
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);
2841
3140
  function T() {
2842
3141
  d("close");
2843
3142
  }
2844
- $e([f], v, p, T, g), S(() => {
3143
+ Qe([f], v, p, T, g), S(() => {
2845
3144
  _(), C();
2846
3145
  }), b(() => {
2847
3146
  g(), x();
@@ -2854,7 +3153,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2854
3153
  name: "g-fade",
2855
3154
  appear: ""
2856
3155
  }, {
2857
- default: K(() => [s("div", h({
3156
+ default: q(() => [s("div", h({
2858
3157
  id: "modal-" + L(m),
2859
3158
  class: ["g-modal", E.value],
2860
3159
  role: "dialog",
@@ -2867,12 +3166,12 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2867
3166
  ref_key: "dialog",
2868
3167
  ref: f,
2869
3168
  style: { zIndex: L(y) }
2870
- }), [s("div", Gr, [s("div", Kr, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
3169
+ }), [s("div", ri, [s("div", ii, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
2871
3170
  key: 0,
2872
3171
  id: "modal-label-" + L(m),
2873
3172
  class: "g-modal-label",
2874
3173
  tabindex: "-1"
2875
- }, N(e.label), 9, qr)), s("button", {
3174
+ }, N(e.label), 9, ai)), s("button", {
2876
3175
  class: "g-modal-close",
2877
3176
  onClick: T,
2878
3177
  "aria-label": "Close"
@@ -2887,16 +3186,16 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2887
3186
  })], -1)]])]), s("div", {
2888
3187
  id: "modal-description-" + L(m),
2889
3188
  class: "g-modal-content"
2890
- }, [k(r.$slots, "default")], 8, Jr)])], 16, Wr)]),
3189
+ }, [k(r.$slots, "default")], 8, oi)])], 16, ni)]),
2891
3190
  _: 3
2892
3191
  })]));
2893
3192
  }
2894
- }), Xr = [
3193
+ }), ci = [
2895
3194
  "id",
2896
3195
  "aria-expanded",
2897
3196
  "aria-label",
2898
3197
  "aria-controls"
2899
- ], Zr = /* @__PURE__ */ u({
3198
+ ], li = /* @__PURE__ */ u({
2900
3199
  __name: "GHamburgerMenu",
2901
3200
  props: {
2902
3201
  label: { default: "Main Navigation" },
@@ -2904,7 +3203,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2904
3203
  },
2905
3204
  emits: ["toggle"],
2906
3205
  setup(e, { emit: t }) {
2907
- let n = e, r = p("sidebar") ?? (de() ? ln(n.sidebarKey) : void 0), i = t;
3206
+ let n = e, r = p("sidebar") ?? (de() ? cn(n.sidebarKey) : void 0), i = t;
2908
3207
  function a() {
2909
3208
  i("toggle"), r?.toggle();
2910
3209
  }
@@ -2926,34 +3225,34 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2926
3225
  }, [...n[0] ||= [s("svg", {
2927
3226
  xmlns: "http://www.w3.org/2000/svg",
2928
3227
  viewBox: "0 0 51.26 51.26"
2929
- }, [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, Xr));
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));
2930
3229
  }
2931
- }), Qr = /* @__PURE__ */ u({
3230
+ }), ui = /* @__PURE__ */ u({
2932
3231
  __name: "GDetailList",
2933
3232
  props: { variant: { default: "grid" } },
2934
3233
  setup(e) {
2935
3234
  let t = e;
2936
3235
  return (e, n) => (w(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [k(e.$slots, "default")], 2));
2937
3236
  }
2938
- }), $r = { class: "g-detail-list-item" }, ei = { class: "g-detail-list-item__label" }, ti = { class: "g-detail-list-item__value" }, ni = /* @__PURE__ */ u({
3237
+ }), di = { class: "g-detail-list-item" }, fi = { class: "g-detail-list-item__label" }, pi = { class: "g-detail-list-item__value" }, mi = /* @__PURE__ */ u({
2939
3238
  __name: "GDetailListItem",
2940
3239
  props: { label: {} },
2941
3240
  setup(e) {
2942
- return (t, n) => (w(), o("div", $r, [s("dt", ei, [k(t.$slots, "label", {}, () => [c(N(e.label), 1)])]), s("dd", ti, [k(t.$slots, "default")])]));
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")])]));
2943
3242
  }
2944
- }), ri = {
3243
+ }), hi = {
2945
3244
  key: 0,
2946
3245
  class: "g-scroll-lock-overlay"
2947
- }, ii = /* @__PURE__ */ u({
3246
+ }, gi = /* @__PURE__ */ u({
2948
3247
  __name: "GOverlay",
2949
3248
  setup(e) {
2950
- let { hasScrollLock: t } = qe();
3249
+ let { hasScrollLock: t } = Ke();
2951
3250
  return (e, r) => (w(), i(n, { name: "g-fade" }, {
2952
- default: K(() => [L(t) ? (w(), o("div", ri)) : a("", !0)]),
3251
+ default: q(() => [L(t) ? (w(), o("div", hi)) : a("", !0)]),
2953
3252
  _: 1
2954
3253
  }));
2955
3254
  }
2956
- }), ai = { class: "popover-content" }, oi = { class: "year-dropdown" }, si = { class: "month-selector" }, ci = /* @__PURE__ */ u({
3255
+ }), _i = { class: "popover-content" }, vi = { class: "year-dropdown" }, yi = { class: "month-selector" }, bi = /* @__PURE__ */ u({
2957
3256
  __name: "GTermSelectorControl",
2958
3257
  props: /* @__PURE__ */ m({
2959
3258
  termYears: { default: () => ["2026"] },
@@ -2974,7 +3273,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2974
3273
  emits: ["update:modelValue"],
2975
3274
  setup(e) {
2976
3275
  let t = B(e, "modelValue");
2977
- return (n, r) => (w(), o("div", ai, [s("div", oi, [l(Ht, {
3276
+ return (n, r) => (w(), o("div", _i, [s("div", vi, [l(Vt, {
2978
3277
  modelValue: t.value.year,
2979
3278
  "onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
2980
3279
  options: e.termYears,
@@ -2983,7 +3282,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2983
3282
  "modelValue",
2984
3283
  "options",
2985
3284
  "label"
2986
- ])]), s("div", si, [l(yt, {
3285
+ ])]), s("div", yi, [l(vt, {
2987
3286
  modelValue: t.value.name,
2988
3287
  "onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
2989
3288
  options: e.termNames,
@@ -2995,10 +3294,10 @@ var or = { class: "g-table-outer-wrap" }, sr = {
2995
3294
  "label"
2996
3295
  ])])]));
2997
3296
  }
2998
- }), li = { class: "g-term-selector" }, ui = { class: "g-term-label" }, di = {
3297
+ }), xi = { class: "g-term-selector" }, Si = { class: "g-term-label" }, Ci = {
2999
3298
  class: "g-popover-title",
3000
3299
  tabindex: "-1"
3001
- }, fi = /* @__PURE__ */ u({
3300
+ }, wi = /* @__PURE__ */ u({
3002
3301
  __name: "GTermSelector",
3003
3302
  props: /* @__PURE__ */ m({
3004
3303
  heading: { default: "Period Selection" },
@@ -3020,20 +3319,20 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3020
3319
  emits: ["update:modelValue"],
3021
3320
  setup(e) {
3022
3321
  let t = B(e, "modelValue");
3023
- return (n, r) => (w(), o("div", li, [l(it, null, {
3024
- trigger: K(({ toggle: e }) => [l(Q, {
3322
+ return (n, r) => (w(), o("div", xi, [l(rt, null, {
3323
+ trigger: q(({ toggle: e }) => [l(Q, {
3025
3324
  class: "g-term-selector-button",
3026
3325
  theme: "none",
3027
3326
  outlined: "",
3028
3327
  onClick: e
3029
3328
  }, {
3030
- default: K(() => [
3329
+ default: q(() => [
3031
3330
  r[0] ||= s("span", { class: "g-calendar-icon" }, [s("svg", {
3032
3331
  role: "none presentation",
3033
3332
  xmlns: "http://www.w3.org/2000/svg",
3034
3333
  viewBox: "0 0 640 640"
3035
3334
  }, [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),
3036
- s("span", ui, N(t.value?.name) + " " + N(t.value?.year), 1),
3335
+ s("span", Si, N(t.value?.name) + " " + N(t.value?.year), 1),
3037
3336
  r[1] ||= s("span", { class: "g-caret" }, [s("svg", {
3038
3337
  role: "none presentation",
3039
3338
  xmlns: "http://www.w3.org/2000/svg",
@@ -3042,15 +3341,15 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3042
3341
  ]),
3043
3342
  _: 1
3044
3343
  }, 8, ["onClick"])]),
3045
- default: K(() => [s("h2", di, N(e.heading), 1), l(ci, v(f(n.$props)), null, 16)]),
3344
+ default: q(() => [s("h2", Ci, N(e.heading), 1), l(bi, v(f(n.$props)), null, 16)]),
3046
3345
  _: 1
3047
3346
  })]));
3048
3347
  }
3049
- }), pi = { class: "g-user-menu" }, mi = [
3348
+ }), Ti = { class: "g-user-menu" }, Ei = [
3050
3349
  "aria-label",
3051
3350
  "aria-expanded",
3052
3351
  "onClick"
3053
- ], hi = { class: "g-user-menu__popover" }, gi = { class: "g-user-menu__list" }, _i = /* @__PURE__ */ u({
3352
+ ], Di = { class: "g-user-menu__popover" }, Oi = { class: "g-user-menu__list" }, ki = /* @__PURE__ */ u({
3054
3353
  __name: "GUserMenu",
3055
3354
  props: {
3056
3355
  initials: {},
@@ -3062,20 +3361,20 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3062
3361
  let n = `${z()}-email`, r = D(!1), a = H("emailHeading");
3063
3362
  d()?.appContext?.components?.RouterLink;
3064
3363
  let c = V();
3065
- return (u, d) => (w(), o("div", pi, [l(it, {
3364
+ return (u, d) => (w(), o("div", Ti, [l(rt, {
3066
3365
  modelValue: r.value,
3067
3366
  "onUpdate:modelValue": d[0] ||= (e) => r.value = e,
3068
3367
  minimal: ""
3069
3368
  }, {
3070
- trigger: K(({ toggle: e }) => [s("button", {
3369
+ trigger: q(({ toggle: e }) => [s("button", {
3071
3370
  class: "g-user-menu__avatar",
3072
3371
  style: y({ backgroundColor: t.color }),
3073
3372
  "aria-label": t.initials + " - " + t.label,
3074
3373
  "aria-expanded": r.value,
3075
3374
  "aria-haspopup": "menu",
3076
3375
  onClick: e
3077
- }, N(t.initials), 13, mi)]),
3078
- default: K(() => [s("div", hi, [s("h2", {
3376
+ }, N(t.initials), 13, Ei)]),
3377
+ default: q(() => [s("div", Di, [s("h2", {
3079
3378
  id: n,
3080
3379
  ref_key: "emailHeading",
3081
3380
  ref: a,
@@ -3084,11 +3383,11 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3084
3383
  }, N(t.email), 513), s("nav", {
3085
3384
  class: "g-user-menu__nav",
3086
3385
  "aria-labelledby": n
3087
- }, [s("ul", gi, [(w(!0), o(e, null, O(c.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(A(e)))]))), 128))])])])]),
3386
+ }, [s("ul", Oi, [(w(!0), o(e, null, O(c.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(A(e)))]))), 128))])])])]),
3088
3387
  _: 1
3089
3388
  }, 8, ["modelValue"])]));
3090
3389
  }
3091
- }), vi = /* @__PURE__ */ u({
3390
+ }), Ai = /* @__PURE__ */ u({
3092
3391
  __name: "GCurrencyInput",
3093
3392
  props: /* @__PURE__ */ m({
3094
3393
  label: { default: void 0 },
@@ -3112,7 +3411,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3112
3411
  emits: ["update:modelValue"],
3113
3412
  setup(e) {
3114
3413
  let t = e, n = B(e, "modelValue");
3115
- return (e, r) => (w(), i(Re, h({
3414
+ return (e, r) => (w(), i(Le, h({
3116
3415
  modelValue: n.value,
3117
3416
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
3118
3417
  name: t.name,
@@ -3139,7 +3438,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3139
3438
  "form-key"
3140
3439
  ]));
3141
3440
  }
3142
- }), yi = /* @__PURE__ */ u({
3441
+ }), ji = /* @__PURE__ */ u({
3143
3442
  __name: "GEmailInput",
3144
3443
  props: /* @__PURE__ */ m({
3145
3444
  label: { default: void 0 },
@@ -3162,7 +3461,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3162
3461
  emits: ["update:modelValue"],
3163
3462
  setup(e) {
3164
3463
  let t = B(e, "modelValue");
3165
- return (n, r) => (w(), i(Re, h({
3464
+ return (n, r) => (w(), i(Le, h({
3166
3465
  modelValue: t.value,
3167
3466
  "onUpdate:modelValue": r[0] ||= (e) => t.value = e,
3168
3467
  name: e.name,
@@ -3184,13 +3483,13 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3184
3483
  "instructions"
3185
3484
  ]));
3186
3485
  }
3187
- }), bi = ["for"], xi = {
3486
+ }), Mi = ["for"], Ni = {
3188
3487
  key: 0,
3189
3488
  class: "g-file-input-required"
3190
- }, Si = {
3489
+ }, Pi = {
3191
3490
  key: 0,
3192
3491
  class: "g-file-input-box-header"
3193
- }, Ci = ["id"], wi = [
3492
+ }, Fi = ["id"], Ii = [
3194
3493
  "id",
3195
3494
  "disabled",
3196
3495
  "required",
@@ -3199,11 +3498,11 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3199
3498
  "aria-invalid",
3200
3499
  "aria-describedby",
3201
3500
  "aria-errormessage"
3202
- ], Ti = {
3501
+ ], Li = {
3203
3502
  key: 1,
3204
3503
  class: "g-file-input-pills",
3205
3504
  "aria-label": "Selected files"
3206
- }, Ei = /* @__PURE__ */ u({
3505
+ }, Ri = /* @__PURE__ */ u({
3207
3506
  inheritAttrs: !1,
3208
3507
  __name: "GFileInput",
3209
3508
  props: /* @__PURE__ */ m({
@@ -3260,12 +3559,12 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3260
3559
  key: 0,
3261
3560
  for: L(d),
3262
3561
  class: "g-file-input-label"
3263
- }, [c(N(t.label) + " ", 1), t.required ? (w(), o("span", xi, "*")) : a("", !0)], 8, bi)) : a("", !0),
3562
+ }, [c(N(t.label) + " ", 1), t.required ? (w(), o("span", Ni, "*")) : a("", !0)], 8, Mi)) : a("", !0),
3264
3563
  s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
3265
- t.instructions ? (w(), o("div", Si, [s("span", {
3564
+ t.instructions ? (w(), o("div", Pi, [s("span", {
3266
3565
  id: "instructions-" + L(d),
3267
3566
  class: "g-file-input-instructions"
3268
- }, N(t.instructions), 9, Ci)])) : a("", !0),
3567
+ }, N(t.instructions), 9, Fi)])) : a("", !0),
3269
3568
  s("input", {
3270
3569
  id: L(d),
3271
3570
  type: "file",
@@ -3278,8 +3577,8 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3278
3577
  "aria-describedby": t.instructions ? "instructions-" + L(d) : void 0,
3279
3578
  "aria-errormessage": y.value ? "error-message-" + L(d) : void 0,
3280
3579
  onChange: g
3281
- }, null, 40, wi),
3282
- t.multiple && b.value.length > 0 ? (w(), o("ul", Ti, [(w(!0), o(e, null, O(b.value, (e) => (w(), o("li", {
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", {
3283
3582
  key: e,
3284
3583
  class: "g-file-input-pill"
3285
3584
  }, [r[0] ||= s("svg", {
@@ -3289,13 +3588,13 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3289
3588
  viewBox: "0 0 640 640"
3290
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)
3291
3590
  ], 2),
3292
- l(je, {
3591
+ l(Ae, {
3293
3592
  errors: v.value,
3294
3593
  id: "error-message-" + L(d)
3295
3594
  }, null, 8, ["errors", "id"])
3296
3595
  ], 2));
3297
3596
  }
3298
- }), Di = /* @__PURE__ */ u({
3597
+ }), zi = /* @__PURE__ */ u({
3299
3598
  __name: "GDateInput",
3300
3599
  props: /* @__PURE__ */ m({
3301
3600
  label: { default: void 0 },
@@ -3319,7 +3618,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3319
3618
  emits: ["update:modelValue"],
3320
3619
  setup(e) {
3321
3620
  let t = e, n = B(e, "modelValue");
3322
- return (e, r) => (w(), i(Re, h({
3621
+ return (e, r) => (w(), i(Le, h({
3323
3622
  modelValue: n.value,
3324
3623
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
3325
3624
  name: t.name,
@@ -3343,21 +3642,21 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3343
3642
  "form-key"
3344
3643
  ]));
3345
3644
  }
3346
- }), Oi = { class: "g-date-range-input" }, ki = {
3645
+ }), Bi = { class: "g-date-range-input" }, Vi = {
3347
3646
  key: 0,
3348
3647
  class: "g-date-range-input__label"
3349
- }, Ai = {
3648
+ }, Hi = {
3350
3649
  key: 0,
3351
3650
  class: "g-date-range-input__required",
3352
3651
  "aria-hidden": "true"
3353
- }, ji = {
3652
+ }, Ui = {
3354
3653
  key: 1,
3355
3654
  class: "g-date-range-input__instructions"
3356
- }, Mi = { class: "g-date-range-input__fields" }, Ni = {
3655
+ }, Wi = { class: "g-date-range-input__fields" }, Gi = {
3357
3656
  key: 2,
3358
3657
  class: "g-date-range-input__errors",
3359
3658
  role: "alert"
3360
- }, Pi = /* @__PURE__ */ u({
3659
+ }, Ki = /* @__PURE__ */ u({
3361
3660
  __name: "GDateRangeInput",
3362
3661
  props: /* @__PURE__ */ m({
3363
3662
  label: { default: void 0 },
@@ -3390,17 +3689,17 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3390
3689
  errors: F(n, "errors"),
3391
3690
  formKey: n.formKey
3392
3691
  });
3393
- return W([i, u], () => {
3692
+ return G([i, u], () => {
3394
3693
  r.value = {
3395
3694
  start: i.value,
3396
3695
  end: u.value
3397
3696
  };
3398
- }), W(r, (e) => {
3697
+ }), G(r, (e) => {
3399
3698
  e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
3400
- }, { deep: !0 }), (t, r) => (w(), o("div", Oi, [
3401
- n.label ? (w(), o("div", ki, [c(N(n.label), 1), n.required ? (w(), o("span", Ai, " *")) : a("", !0)])) : a("", !0),
3402
- n.instructions ? (w(), o("div", ji, N(n.instructions), 1)) : a("", !0),
3403
- s("div", Mi, [l(Di, {
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, {
3404
3703
  modelValue: i.value,
3405
3704
  "onUpdate:modelValue": r[0] ||= (e) => i.value = e,
3406
3705
  label: n.startLabel,
@@ -3412,7 +3711,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3412
3711
  "label",
3413
3712
  "disabled",
3414
3713
  "required"
3415
- ]), l(Di, {
3714
+ ]), l(zi, {
3416
3715
  modelValue: u.value,
3417
3716
  "onUpdate:modelValue": r[1] ||= (e) => u.value = e,
3418
3717
  label: n.endLabel,
@@ -3425,13 +3724,13 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3425
3724
  "disabled",
3426
3725
  "required"
3427
3726
  ])]),
3428
- L(d).length > 0 ? (w(), o("div", Ni, [(w(!0), o(e, null, O(L(d), (e, t) => (w(), o("div", {
3727
+ L(d).length > 0 ? (w(), o("div", Gi, [(w(!0), o(e, null, O(L(d), (e, t) => (w(), o("div", {
3429
3728
  key: t,
3430
3729
  class: "g-date-range-input__error"
3431
3730
  }, N(e), 1))), 128))])) : a("", !0)
3432
3731
  ]));
3433
3732
  }
3434
- }), Fi = ["action", "method"], Ii = /* @__PURE__ */ u({
3733
+ }), qi = ["action", "method"], Ji = /* @__PURE__ */ u({
3435
3734
  __name: "GForm",
3436
3735
  props: /* @__PURE__ */ m({
3437
3736
  action: { default: void 0 },
@@ -3443,10 +3742,10 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3443
3742
  }),
3444
3743
  emits: /* @__PURE__ */ m(["submit"], ["update:modelValue"]),
3445
3744
  setup(e, { emit: t }) {
3446
- let n = e, r = B(e, "modelValue"), i = t, a = p("form", null), s = a ?? (de() ? ke(n.formKey) : De());
3447
- a || T("form", s), W(() => s.values.value, (e) => {
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) => {
3448
3747
  r.value = { ...e };
3449
- }, { deep: !0 }), W(() => r.value, (e) => {
3748
+ }, { deep: !0 }), G(() => r.value, (e) => {
3450
3749
  e && Object.entries(e).forEach(([e, t]) => {
3451
3750
  let n = s.fields[e];
3452
3751
  n && n.value.value !== t && (n.value.value = t);
@@ -3471,9 +3770,9 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3471
3770
  hasErrors: L(s).hasErrors.value,
3472
3771
  values: L(s).values.value,
3473
3772
  errors: L(s).errors.value
3474
- })], 40, Fi));
3773
+ })], 40, qi));
3475
3774
  }
3476
- }), Li = /* @__PURE__ */ u({
3775
+ }), Yi = /* @__PURE__ */ u({
3477
3776
  __name: "GSubmitButton",
3478
3777
  props: {
3479
3778
  disabled: {
@@ -3485,32 +3784,32 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3485
3784
  formKey: { default: "default" }
3486
3785
  },
3487
3786
  setup(e) {
3488
- 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() ? ke(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
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);
3489
3788
  return (e, n) => (w(), i(Q, {
3490
3789
  type: "submit",
3491
3790
  disabled: u.value,
3492
3791
  variant: t.variant,
3493
3792
  class: "g-submit-button"
3494
3793
  }, {
3495
- default: K(() => [q(s("span", null, N(t.loadingText), 513), [[ee, d.value]]), q(s("span", null, [k(e.$slots, "default", {}, () => [n[0] ||= c("Submit", -1)])], 512), [[ee, !d.value]])]),
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]])]),
3496
3795
  _: 3
3497
3796
  }, 8, ["disabled", "variant"]));
3498
3797
  }
3499
- }), Ri = {
3798
+ }), Xi = {
3500
3799
  key: 0,
3501
3800
  class: "g-checkbox-group__legend"
3502
- }, zi = {
3801
+ }, Zi = {
3503
3802
  key: 0,
3504
3803
  class: "g-checkbox-group__required",
3505
3804
  "aria-hidden": "true"
3506
- }, Bi = {
3805
+ }, Qi = {
3507
3806
  key: 1,
3508
3807
  class: "g-checkbox-group__label"
3509
- }, Vi = {
3808
+ }, $i = {
3510
3809
  key: 0,
3511
3810
  class: "g-checkbox-group__required",
3512
3811
  "aria-hidden": "true"
3513
- }, Hi = ["id"], Ui = { class: "g-checkbox-group__options" }, Wi = ["for"], Gi = [
3812
+ }, ea = ["id"], ta = { class: "g-checkbox-group__options" }, na = ["for"], ra = [
3514
3813
  "id",
3515
3814
  "type",
3516
3815
  "name",
@@ -3519,7 +3818,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3519
3818
  "disabled",
3520
3819
  "required",
3521
3820
  "onChange"
3522
- ], Ki = { class: "g-checkbox-group__label-text" }, qi = ["id"], Ji = /* @__PURE__ */ u({
3821
+ ], ia = { class: "g-checkbox-group__label-text" }, aa = ["id"], oa = /* @__PURE__ */ u({
3523
3822
  __name: "GCheckboxGroup",
3524
3823
  props: /* @__PURE__ */ m({
3525
3824
  label: { default: void 0 },
@@ -3580,14 +3879,14 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3580
3879
  };
3581
3880
  }
3582
3881
  return (n, r) => (w(), i(A(C.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": L(m) }] }, T.value), {
3583
- default: K(() => [
3584
- C.value && t.label ? (w(), o("legend", Ri, [c(N(t.label), 1), t.required ? (w(), o("span", zi, "\xA0*")) : a("", !0)])) : !C.value && t.label ? (w(), o("div", Bi, [c(N(t.label), 1), t.required ? (w(), o("span", Vi, "\xA0*")) : a("", !0)])) : a("", !0),
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),
3585
3884
  t.instructions ? (w(), o("div", {
3586
3885
  key: 2,
3587
3886
  id: S.value,
3588
3887
  class: "g-checkbox-group__instructions"
3589
- }, N(t.instructions), 9, Hi)) : a("", !0),
3590
- s("div", Ui, [(w(!0), o(e, null, O(t.options, (e, n) => (w(), o("div", {
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", {
3591
3890
  key: e.value,
3592
3891
  class: _(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": e.disabled }])
3593
3892
  }, [s("label", {
@@ -3602,12 +3901,12 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3602
3901
  disabled: e.disabled,
3603
3902
  required: t.required && (t.radio && n === 0 || !t.radio && t.options.length === 1),
3604
3903
  class: "g-checkbox-group__input"
3605
- }, { ref_for: !0 }, k(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16, Gi), s("span", Ki, N(e.label), 1)], 10, Wi), e.hint ? (w(), o("div", {
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", {
3606
3905
  key: 0,
3607
3906
  id: E(n),
3608
3907
  class: "g-checkbox-group__hint"
3609
- }, N(e.hint), 9, qi)) : a("", !0)], 2))), 128))]),
3610
- l(je, {
3908
+ }, N(e.hint), 9, aa)) : a("", !0)], 2))), 128))]),
3909
+ l(Ae, {
3611
3910
  errors: L(p),
3612
3911
  id: x.value
3613
3912
  }, null, 8, ["errors", "id"])
@@ -3615,11 +3914,11 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3615
3914
  _: 1
3616
3915
  }, 16, ["class"]));
3617
3916
  }
3618
- }), Yi = ["for"], Xi = {
3917
+ }), sa = ["for"], ca = {
3619
3918
  key: 0,
3620
3919
  class: "g-textarea-required",
3621
3920
  "aria-hidden": "true"
3622
- }, Zi = ["id"], Qi = [
3921
+ }, la = ["id"], ua = [
3623
3922
  "value",
3624
3923
  "placeholder",
3625
3924
  "disabled",
@@ -3628,11 +3927,11 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3628
3927
  "rows",
3629
3928
  "maxlength",
3630
3929
  "aria-invalid"
3631
- ], $i = {
3930
+ ], da = {
3632
3931
  key: 2,
3633
3932
  class: "g-textarea-char-count",
3634
3933
  "aria-live": "polite"
3635
- }, ea = /* @__PURE__ */ u({
3934
+ }, fa = /* @__PURE__ */ u({
3636
3935
  inheritAttrs: !1,
3637
3936
  __name: "GTextarea",
3638
3937
  props: /* @__PURE__ */ m({
@@ -3676,7 +3975,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3676
3975
  let e = x.value;
3677
3976
  e && (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
3678
3977
  }
3679
- W(() => i.value, () => {
3978
+ G(() => i.value, () => {
3680
3979
  n.autoGrow && g(S);
3681
3980
  });
3682
3981
  function C(e) {
@@ -3705,12 +4004,12 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3705
4004
  key: 0,
3706
4005
  for: m.value,
3707
4006
  class: "g-textarea-label"
3708
- }, [c(N(n.label), 1), n.required ? (w(), o("span", Xi, " *")) : a("", !0)], 8, Yi)) : a("", !0),
4007
+ }, [c(N(n.label), 1), n.required ? (w(), o("span", ca, " *")) : a("", !0)], 8, sa)) : a("", !0),
3709
4008
  t.$slots.instructions || e.instructions ? (w(), o("div", {
3710
4009
  key: 1,
3711
4010
  id: "instructions-" + L(u),
3712
4011
  class: "g-textarea-instructions"
3713
- }, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8, Zi)) : a("", !0),
4012
+ }, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8, la)) : a("", !0),
3714
4013
  s("textarea", h({
3715
4014
  ref: "textareaEl",
3716
4015
  value: i.value ?? "",
@@ -3731,292 +4030,27 @@ var or = { class: "g-table-outer-wrap" }, sr = {
3731
4030
  onInput: T,
3732
4031
  onBlur: E,
3733
4032
  onPaste: D
3734
- }), null, 16, Qi),
3735
- n.maxlength === void 0 ? a("", !0) : (w(), o("div", $i, N((i.value ?? "").length) + " / " + N(n.maxlength), 1)),
3736
- l(je, {
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, {
3737
4036
  errors: L(v),
3738
4037
  id: "error-message-" + L(u)
3739
4038
  }, null, 8, ["errors", "id"])
3740
4039
  ], 2));
3741
4040
  }
3742
- }), ta = ["id", "for"], na = {
3743
- key: 0,
3744
- class: "g-multiselect-required",
3745
- "aria-hidden": "true"
3746
- }, ra = ["id"], ia = ["aria-labelledby"], aa = { class: "g-multiselect-chip-label" }, oa = [
3747
- "aria-label",
3748
- "disabled",
3749
- "onClick"
3750
- ], sa = [
3751
- "id",
3752
- "value",
3753
- "placeholder",
3754
- "disabled",
3755
- "aria-expanded",
3756
- "aria-controls",
3757
- "aria-activedescendant",
3758
- "aria-describedby",
3759
- "aria-required"
3760
- ], ca = ["id"], la = [
3761
- "id",
3762
- "aria-selected",
3763
- "onClick"
3764
- ], ua = {
3765
- class: "g-multiselect-option-check",
3766
- "aria-hidden": "true"
3767
- }, da = {
3768
- key: 0,
3769
- xmlns: "http://www.w3.org/2000/svg",
3770
- viewBox: "0 0 640 640",
3771
- width: "1.25em"
3772
- }, fa = {
3773
- key: 1,
3774
- "aria-live": "polite",
3775
- class: "g-multiselect-option g-multiselect-no-results"
3776
- }, pa = /* @__PURE__ */ u({
3777
- __name: "GMultiSelect",
3778
- props: /* @__PURE__ */ m({
3779
- options: {},
3780
- label: {},
3781
- hiddenLabel: {
3782
- type: Boolean,
3783
- default: !1
3784
- },
3785
- placeholder: {},
3786
- disabled: {
3787
- type: Boolean,
3788
- default: !1
3789
- },
3790
- required: {
3791
- type: Boolean,
3792
- default: !1
3793
- },
3794
- name: {},
3795
- errors: { default: () => [] },
3796
- instructions: {},
3797
- formKey: {}
3798
- }, {
3799
- modelValue: { default: () => [] },
3800
- modelModifiers: {}
3801
- }),
3802
- emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
3803
- setup(t, { emit: n }) {
3804
- 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 } = $({
3805
- name: i.name,
3806
- value: d,
3807
- errors: F(i, "errors"),
3808
- formKey: i.formKey
3809
- }), { menuPlacement: E, menuStyle: k, isTop: A, scrollOptionIntoView: j } = Mt({
3810
- open: y,
3811
- anchorRef: m,
3812
- listboxRef: v,
3813
- baseId: f,
3814
- activeIndex: b
3815
- }), M = r(() => jt(i.options)), P = r(() => {
3816
- if (!x.value) return M.value;
3817
- let e = x.value.toLowerCase();
3818
- return M.value.filter((t) => t.label.toLowerCase().includes(e));
3819
- });
3820
- function I(e) {
3821
- return d.value.includes(e);
3822
- }
3823
- function R(e) {
3824
- let t = M.value.find((t) => t.value === e);
3825
- return t ? t.label : String(e);
3826
- }
3827
- function V() {
3828
- i.disabled || (y.value = !0, b.value = 0);
3829
- }
3830
- function H() {
3831
- y.value = !1, x.value = "";
3832
- }
3833
- function U(e) {
3834
- let t = P.value[e];
3835
- if (!t) return;
3836
- let n = d.value, r = I(t.value) ? n.filter((e) => e !== t.value) : [...n, t.value];
3837
- d.value = r, u("change", r), g(() => p.value?.focus());
3838
- }
3839
- function W(e) {
3840
- if (i.disabled) return;
3841
- let t = d.value.filter((t) => t !== e);
3842
- d.value = t, u("change", t);
3843
- }
3844
- function G() {
3845
- i.disabled || (p.value?.focus(), y.value || V());
3846
- }
3847
- function K(e) {
3848
- x.value = e.target.value, b.value = 0, y.value || V();
3849
- }
3850
- function Y() {
3851
- i.disabled || y.value || V();
3852
- }
3853
- function te(e) {
3854
- if (S.value) {
3855
- S.value = !1;
3856
- return;
3857
- }
3858
- let t = e.relatedTarget;
3859
- t && v.value?.contains(t) || t && m.value?.contains(t) || H();
3860
- }
3861
- function X(e) {
3862
- e.preventDefault();
3863
- }
3864
- function Z() {
3865
- S.value = !0;
3866
- }
3867
- function ne(e) {
3868
- if (i.disabled) return;
3869
- let t = P.value.length - 1;
3870
- switch (e.key) {
3871
- case "ArrowDown":
3872
- e.preventDefault(), y.value ? (b.value = Math.min(t, b.value + 1), j()) : V();
3873
- break;
3874
- case "ArrowUp":
3875
- e.preventDefault(), y.value ? (b.value = Math.max(0, b.value - 1), j()) : V();
3876
- break;
3877
- case "Home":
3878
- e.preventDefault(), b.value = 0, j();
3879
- break;
3880
- case "End":
3881
- e.preventDefault(), b.value = t, j();
3882
- break;
3883
- case "Enter":
3884
- e.preventDefault(), y.value && P.value.length > 0 ? U(b.value) : y.value || V();
3885
- break;
3886
- case " ":
3887
- y.value && !x.value && (e.preventDefault(), P.value.length > 0 && U(b.value));
3888
- break;
3889
- case "Escape":
3890
- A.value && (e.preventDefault(), setTimeout(() => H(), 0));
3891
- break;
3892
- case "Backspace":
3893
- !x.value && d.value.length > 0 && W(d.value[d.value.length - 1]);
3894
- break;
3895
- }
3896
- }
3897
- let re = r(() => `${f}-input`), ie = r(() => `${f}-label`), ae = r(() => `${f}-instructions`), oe = r(() => `error-message-${f}`), se = r(() => {
3898
- let e = [];
3899
- return i.instructions && e.push(ae.value), T.value && e.push(oe.value), e.length > 0 ? e.join(" ") : void 0;
3900
- });
3901
- return (n, r) => (w(), o("div", { class: _(["g-multiselect-root", {
3902
- "g-multiselect-open": y.value,
3903
- "g-multiselect-has-error": L(T)
3904
- }]) }, [
3905
- t.hiddenLabel ? a("", !0) : (w(), o("label", {
3906
- key: 0,
3907
- id: ie.value,
3908
- for: re.value,
3909
- class: "g-multiselect-label"
3910
- }, [c(N(t.label), 1), t.required ? (w(), o("span", na, " *")) : a("", !0)], 8, ta)),
3911
- t.instructions ? (w(), o("div", {
3912
- key: 1,
3913
- id: ae.value,
3914
- class: "g-multiselect-instructions"
3915
- }, N(t.instructions), 9, ra)) : a("", !0),
3916
- s("div", {
3917
- ref_key: "controlRef",
3918
- ref: m,
3919
- class: _(["g-multiselect-control", { "g-multiselect-control--disabled": t.disabled }]),
3920
- onClick: G
3921
- }, [
3922
- s("ul", {
3923
- class: "g-multiselect-chips",
3924
- "aria-labelledby": ie.value
3925
- }, [(w(!0), o(e, null, O(d.value, (e) => (w(), o("li", {
3926
- key: e,
3927
- class: "g-multiselect-chip"
3928
- }, [s("span", aa, N(R(e)), 1), s("button", {
3929
- type: "button",
3930
- class: "g-multiselect-chip-remove",
3931
- "aria-label": `Remove ${R(e)}`,
3932
- disabled: t.disabled,
3933
- onMousedown: Z,
3934
- onClick: J((t) => W(e), ["stop"])
3935
- }, [...r[0] ||= [s("svg", {
3936
- xmlns: "http://www.w3.org/2000/svg",
3937
- viewBox: "0 0 51.26 51.26",
3938
- width: "1em",
3939
- role: "none presentation"
3940
- }, [s("path", {
3941
- fill: "currentColor",
3942
- 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"
3943
- })], -1)]], 40, oa)]))), 128))], 8, ia),
3944
- s("input", h({
3945
- ref_key: "inputRef",
3946
- ref: p,
3947
- type: "text",
3948
- role: "combobox",
3949
- class: "g-multiselect-input",
3950
- id: re.value,
3951
- value: x.value,
3952
- placeholder: d.value.length === 0 ? t.placeholder : void 0,
3953
- disabled: t.disabled,
3954
- autocomplete: "off",
3955
- "aria-autocomplete": "list",
3956
- "aria-expanded": y.value ? "true" : "false",
3957
- "aria-haspopup": "listbox",
3958
- "aria-controls": L(f) + "-listbox",
3959
- "aria-activedescendant": y.value && P.value.length > 0 ? L(f) + "-option-" + b.value : void 0
3960
- }, t.hiddenLabel ? { "aria-label": t.label } : void 0, {
3961
- "aria-describedby": se.value,
3962
- "aria-required": t.required ? "true" : void 0,
3963
- onInput: K,
3964
- onKeydown: ne,
3965
- onFocus: Y,
3966
- onBlur: te
3967
- }), null, 16, sa),
3968
- r[2] ||= s("svg", {
3969
- class: "g-multiselect-caret",
3970
- xmlns: "http://www.w3.org/2000/svg",
3971
- viewBox: "0 0 51.26 51.26",
3972
- "aria-hidden": "true",
3973
- width: "1.125em"
3974
- }, [s("path", {
3975
- fill: "currentColor",
3976
- 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"
3977
- })], -1),
3978
- q(s("div", h({
3979
- ref_key: "listboxRef",
3980
- ref: v,
3981
- id: L(f) + "-listbox",
3982
- role: "listbox",
3983
- "aria-multiselectable": "true"
3984
- }, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": ie.value }, {
3985
- class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": L(E) === "above" }],
3986
- style: L(k),
3987
- tabindex: "-1"
3988
- }), [P.value.length > 0 ? (w(!0), o(e, { key: 0 }, O(P.value, (e, t) => (w(), o("div", {
3989
- key: e.value,
3990
- id: L(f) + "-option-" + t,
3991
- role: "option",
3992
- class: _(["g-multiselect-option", {
3993
- "g-multiselect-option--active": t === b.value,
3994
- "g-multiselect-option--selected": I(e.value)
3995
- }]),
3996
- "aria-selected": I(e.value) ? "true" : "false",
3997
- onMousedown: X,
3998
- onClick: (e) => U(t)
3999
- }, [s("span", ua, [I(e.value) ? (w(), o("svg", da, [...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, la))), 128)) : (w(), o("div", fa, " No results found. "))], 16, ca), [[ee, y.value]])
4000
- ], 2),
4001
- l(je, {
4002
- errors: L(C),
4003
- id: oe.value
4004
- }, null, 8, ["errors", "id"])
4005
- ], 2));
4006
- }
4007
4041
  });
4008
4042
  //#endregion
4009
4043
  //#region src/compose/useActiveLink.ts
4010
- function ma(e, t, n) {
4044
+ function pa(e, t, n) {
4011
4045
  let r = [
4012
4046
  0,
4013
4047
  .25,
4014
4048
  .5,
4015
4049
  .75,
4016
4050
  1
4017
- ], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = D(Array.from(Z(e)?.children || []));
4051
+ ], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = D(Array.from(te(e)?.children || []));
4018
4052
  se(e, () => {
4019
- o.value = Array.from(Z(e)?.children || []);
4053
+ o.value = Array.from(te(e)?.children || []);
4020
4054
  }, { childList: !0 });
4021
4055
  let { stop: s } = ae(o, (e) => {
4022
4056
  let t = o.value[o.value.length - 1];
@@ -4037,7 +4071,7 @@ function ma(e, t, n) {
4037
4071
  }
4038
4072
  //#endregion
4039
4073
  //#region src/compose/useSidebar.ts
4040
- function ha(e = "(max-width: 800px)") {
4074
+ function ma(e = "(max-width: 800px)") {
4041
4075
  let t = z(), n = D(!1), r = oe(e, { ssrWidth: 1e3 });
4042
4076
  function i(e) {
4043
4077
  if (!r.value || !n.value) return;
@@ -4054,7 +4088,7 @@ function ha(e = "(max-width: 800px)") {
4054
4088
  }, 5));
4055
4089
  }
4056
4090
  return S(() => {
4057
- W(r, (e) => {
4091
+ G(r, (e) => {
4058
4092
  e ? (document.addEventListener("mousedown", i), document.addEventListener("focusin", a)) : (document.removeEventListener("mousedown", i), document.removeEventListener("focusin", a));
4059
4093
  }, { immediate: !0 });
4060
4094
  }), x(() => {
@@ -4068,8 +4102,8 @@ function ha(e = "(max-width: 800px)") {
4068
4102
  }
4069
4103
  //#endregion
4070
4104
  //#region src/compose/useTableChanges.ts
4071
- function ga() {
4072
- let e = j(/* @__PURE__ */ new Map()), t = Y(), n = (n) => {
4105
+ function ha() {
4106
+ let e = j(/* @__PURE__ */ new Map()), t = X(), n = (n) => {
4073
4107
  let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
4074
4108
  e.has(i) || e.set(i, j(/* @__PURE__ */ new Map()));
4075
4109
  let s = e.get(i), c = s.get(r), l = c ? c.previousValue : o, u = c?.error;
@@ -4171,6 +4205,6 @@ function ga() {
4171
4205
  };
4172
4206
  }
4173
4207
  //#endregion
4174
- export { ke as $, $n as A, Ht as B, Pr as C, tr as D, rr 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, ir as O, gn as P, $ as Q, on as R, Ur as S, er as T, yt as U, At as V, ft as W, qe as X, Ke as Y, Re as Z, ii as _, ea as a, Zr as b, Ii as c, Ei as d, De as et, yi as f, ci as g, fi as h, pa as i, Q as it, Rn as j, ar as k, Pi as l, _i as m, ha as n, be as nt, Ji as o, vi as p, $e as q, ma as r, ye as rt, Li as s, ga as t, Ee as tt, Di as u, ni as v, nr as w, Yr as x, Qr as y, Qt as z };
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 };
4175
4209
 
4176
- //# sourceMappingURL=grad-vue-SX-RHHr3.js.map
4210
+ //# sourceMappingURL=grad-vue-DuwqGzJU.js.map