@illinois-grad/grad-vue 3.0.4 → 3.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, guardReactiveProps as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeMount as b, onBeforeUnmount as x, onMounted as S, onUpdated as C, openBlock as w, provide as T, reactive as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as A, shallowReactive as j, shallowRef as M, toDisplayString as N, toRaw as P, toRef as F, toValue as I, unref as L, useAttrs as R, useId as z, useModel as B, useSlots as V, useTemplateRef as H, vModelCheckbox as U, vShow as 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";
3
- import { createFocusTrap as ue } from "focus-trap";
1
+ import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, guardReactiveProps as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeMount as b, onBeforeUnmount as x, onMounted as S, onUnmounted as C, onUpdated as w, openBlock as T, provide as E, reactive as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as j, shallowReactive as M, shallowRef as N, toDisplayString as P, toRaw as F, toRef as I, toValue as L, unref as R, useAttrs as z, useId as B, useModel as V, useSlots as H, useTemplateRef as U, vModelCheckbox as W, vShow as G, watch as K, watchEffect as q, withCtx as J, withDirectives as Y, withModifiers as X } from "vue";
2
+ import { createEventHook as ee, toArray as Z, tryOnScopeDispose as te, unrefElement as ne, useClipboard as re, useDebounceFn as ie, useFocusWithin as ae, useIntersectionObserver as oe, useMediaQuery as se, useMutationObserver as ce, useResizeObserver as le, useSessionStorage as ue } from "@vueuse/core";
3
+ import { createFocusTrap as de } from "focus-trap";
4
4
  //#region src/compose/useCustomElementAttrs.ts
5
- function de() {
5
+ function fe() {
6
6
  return globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0;
7
7
  }
8
- function fe(e = {}) {
9
- let t = R(), n = globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0, i = e.omitInCustomElement ?? [];
8
+ function pe(e = {}) {
9
+ let t = z(), n = globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0, i = e.omitInCustomElement ?? [];
10
10
  return {
11
11
  attrs: t,
12
12
  isCustomElement: n,
@@ -20,7 +20,7 @@ function fe(e = {}) {
20
20
  }
21
21
  //#endregion
22
22
  //#region src/components/GButton.vue?vue&type=script&setup=true&lang.ts
23
- var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PURE__ */ u({
23
+ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PURE__ */ u({
24
24
  inheritAttrs: !1,
25
25
  __name: "GButton",
26
26
  props: {
@@ -51,7 +51,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
51
51
  "mouseleave"
52
52
  ],
53
53
  setup(t) {
54
- let n = t, a = V(), { forwardedAttrs: c } = fe({ omitInCustomElement: ["id"] }), l = r(() => [
54
+ let n = t, a = H(), { forwardedAttrs: c } = pe({ omitInCustomElement: ["id"] }), l = r(() => [
55
55
  "g-btn",
56
56
  `g-btn--${n.size}`,
57
57
  `g-btn--${n.theme}`,
@@ -65,7 +65,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
65
65
  "g-btn-has-icon-svg": !!a.icon
66
66
  }
67
67
  ]);
68
- return (r, u) => (w(), i(A(n.component ? n.component : "button"), h(L(c), {
68
+ return (r, u) => (T(), i(j(n.component ? n.component : "button"), h(R(c), {
69
69
  to: n.to,
70
70
  class: l.value,
71
71
  type: n.to ? void 0 : n.type,
@@ -79,11 +79,11 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
79
79
  onMouseenter: u[7] ||= (e) => r.$emit("mouseenter", e),
80
80
  onMouseleave: u[8] ||= (e) => r.$emit("mouseleave", e)
81
81
  }), {
82
- default: 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: J(() => [t.icon || a.icon ? (T(), o(e, { key: 0 }, [s("span", me, [a.icon ? A(r.$slots, "icon", { key: 0 }) : (T(), o("span", {
83
83
  key: 1,
84
84
  class: _(t.icon + " g-btn--icon-span"),
85
85
  "aria-hidden": "true"
86
- }, null, 2))]), s("span", me, [k(r.$slots, "default")])], 64)) : k(r.$slots, "default", { key: 1 })]),
86
+ }, null, 2))]), s("span", he, [A(r.$slots, "default")])], 64)) : A(r.$slots, "default", { key: 1 })]),
87
87
  _: 3
88
88
  }, 16, [
89
89
  "to",
@@ -91,10 +91,10 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
91
91
  "type"
92
92
  ]));
93
93
  }
94
- }), he = ["id"], ge = { class: "g-tree-menu__divider" }, _e = {
94
+ }), ge = ["id"], _e = { class: "g-tree-menu__divider" }, ve = {
95
95
  key: 0,
96
96
  class: "g-tree-menu__expand-all-wrapper"
97
- }, ve = { class: "g-tree-menu__content" }, ye = /* @__PURE__ */ u({
97
+ }, ye = { class: "g-tree-menu__content" }, be = /* @__PURE__ */ u({
98
98
  __name: "GTreeMenu",
99
99
  props: {
100
100
  heading: {},
@@ -107,33 +107,54 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
107
107
  }
108
108
  },
109
109
  setup(e) {
110
- let t = e, n = z();
111
- T("g-tree-menu-list-type", t.listType), T("g-tree-menu-expanded-storage", t.storageKey ? le(t.storageKey, {}) : null);
112
- let i = E(/* @__PURE__ */ new Map());
113
- T("g-tree-menu-expandable-items", i);
114
- let l = D({
110
+ let t = e, n = B();
111
+ E("g-tree-menu-list-type", t.listType), E("g-tree-menu-expanded-storage", t.storageKey ? ue(t.storageKey, {}) : null);
112
+ let i = U("nav-el"), l = t.storageKey ? ue(`${t.storageKey}:scroll`, 0, { writeDefaults: !1 }) : null;
113
+ function u(e) {
114
+ let t = e.parentElement;
115
+ for (; t && t !== document.documentElement && t !== document.body;) {
116
+ let e = window.getComputedStyle(t);
117
+ if (e.overflowY === "auto" || e.overflowY === "scroll") return t;
118
+ t = t.parentElement;
119
+ }
120
+ return null;
121
+ }
122
+ let d = null;
123
+ function f() {
124
+ l && d && (l.value = d.scrollTop);
125
+ }
126
+ S(() => {
127
+ !l || !i.value || (d = u(i.value), d && (l.value > 0 && g(() => {
128
+ d && (d.scrollTop = l.value);
129
+ }), d.addEventListener("scroll", f)));
130
+ }), C(() => {
131
+ d &&= (d.removeEventListener("scroll", f), null);
132
+ });
133
+ let p = D(/* @__PURE__ */ new Map());
134
+ E("g-tree-menu-expandable-items", p);
135
+ let m = O({
115
136
  expanded: !0,
116
137
  version: 0
117
138
  });
118
- T("g-tree-menu-expand-all-signal", l);
119
- let u = r(() => {
120
- if (i.size === 0) return !1;
121
- for (let e of i.values()) if (!e) return !1;
139
+ E("g-tree-menu-expand-all-signal", m);
140
+ let v = r(() => {
141
+ if (p.size === 0) return !1;
142
+ for (let e of p.values()) if (!e) return !1;
122
143
  return !0;
123
144
  });
124
- function d() {
125
- l.value = {
126
- expanded: !u.value,
127
- version: l.value.version + 1
145
+ function y() {
146
+ m.value = {
147
+ expanded: !v.value,
148
+ version: m.value.version + 1
128
149
  };
129
150
  }
130
- function f(e) {
151
+ function b(e) {
131
152
  return e.querySelector("a, button, [tabindex='0']") || e;
132
153
  }
133
- function p(e) {
154
+ function x(e) {
134
155
  return Array.from(e.querySelectorAll("[data-tree-primary]"));
135
156
  }
136
- function m(e) {
157
+ function w(e) {
137
158
  let t = e.currentTarget, n = document.activeElement;
138
159
  if (!t.contains(n) || ![
139
160
  "ArrowUp",
@@ -143,16 +164,16 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
143
164
  "Home",
144
165
  "End"
145
166
  ].includes(e.key)) return;
146
- let r = n.closest(".g-tree-menu__item"), i = r?.querySelector("[data-tree-primary]") ?? null, a = p(t), o = i ? a.indexOf(i) : -1;
167
+ let r = n.closest(".g-tree-menu__item"), i = r?.querySelector("[data-tree-primary]") ?? null, a = x(t), o = i ? a.indexOf(i) : -1;
147
168
  switch (e.key) {
148
169
  case "ArrowDown": {
149
170
  let e = a[o + 1];
150
- e && f(e).focus();
171
+ e && b(e).focus();
151
172
  break;
152
173
  }
153
174
  case "ArrowUp": {
154
175
  let e = a[o - 1];
155
- e && f(e).focus();
176
+ e && b(e).focus();
156
177
  break;
157
178
  }
158
179
  case "ArrowRight":
@@ -162,67 +183,77 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
162
183
  e && e.click();
163
184
  } else {
164
185
  let e = a[o + 1];
165
- e && f(e).focus();
186
+ e && b(e).focus();
166
187
  }
167
188
  break;
168
189
  case "ArrowLeft":
169
190
  if (!r) break;
170
191
  if (r.querySelector("[aria-expanded='true']") !== null) {
171
192
  let e = r.querySelector(".g-tree-menu__toggle-btn");
172
- e && e.click(), i && g(() => f(i).focus());
193
+ e && e.click(), i && g(() => b(i).focus());
173
194
  } else {
174
195
  let e = r.parentElement?.closest(".g-tree-menu__item");
175
196
  if (e) {
176
197
  let t = e.querySelector("[data-tree-primary]");
177
- t && f(t).focus();
198
+ t && b(t).focus();
178
199
  }
179
200
  }
180
201
  break;
181
202
  case "Home":
182
- a.length > 0 && f(a[0]).focus();
203
+ a.length > 0 && b(a[0]).focus();
183
204
  break;
184
205
  case "End":
185
- a.length > 0 && f(a[a.length - 1]).focus();
206
+ a.length > 0 && b(a[a.length - 1]).focus();
186
207
  break;
187
208
  }
188
209
  e.preventDefault();
189
210
  }
190
- return (r, i) => (w(), o("nav", h({ class: ["g-tree-menu", `g-tree-menu--${t.theme}`] }, {
191
- "aria-labelledby": e.heading ? L(n) : void 0,
211
+ return (r, i) => (T(), o("nav", h({
212
+ ref: "nav-el",
213
+ class: ["g-tree-menu", `g-tree-menu--${t.theme}`]
214
+ }, {
215
+ "aria-labelledby": e.heading ? R(n) : void 0,
192
216
  "aria-label": e.heading ? void 0 : "Tree Menu"
193
- }, { onKeydown: m }), [
194
- e.heading ? (w(), o("h2", {
217
+ }, { onKeydown: w }), [
218
+ e.heading ? (T(), o("h2", {
195
219
  key: 0,
196
- id: L(n),
220
+ id: R(n),
197
221
  class: "g-tree-menu__title"
198
- }, N(e.heading), 9, he)) : a("", !0),
199
- s("div", ge, [i[1] ||= s("div", { class: "g-tree-menu__divider-line" }, null, -1), e.showExpandAll ? (w(), o("div", _e, [s("button", {
222
+ }, P(e.heading), 9, ge)) : a("", !0),
223
+ s("div", _e, [i[1] ||= s("div", { class: "g-tree-menu__divider-line" }, null, -1), e.showExpandAll ? (T(), o("div", ve, [s("button", {
200
224
  class: "g-tree-menu__expand-all-btn",
201
- onClick: d
202
- }, [(w(), o("svg", {
203
- class: _(["g-tree-menu__expand-all-icon", { "g-tree-menu__expand-all-icon--collapse": u.value }]),
204
- role: "none presentation",
225
+ onClick: y
226
+ }, [(T(), o("svg", {
227
+ class: _(["g-tree-menu__expand-all-icon", { "g-tree-menu__expand-all-icon--collapse": v.value }]),
228
+ role: "none",
205
229
  viewBox: "0 0 24 24",
206
230
  fill: "none",
207
231
  stroke: "currentColor",
208
232
  "stroke-width": "2.5",
209
233
  "stroke-linecap": "round",
210
234
  "stroke-linejoin": "round"
211
- }, [...i[0] ||= [s("polyline", { points: "7 8 12 13 17 8" }, null, -1), s("polyline", { points: "7 13 12 18 17 13" }, null, -1)]], 2)), c(" " + N(u.value ? "Collapse all" : "Expand all"), 1)])])) : a("", !0)]),
212
- s("div", ve, [k(r.$slots, "default")])
235
+ }, [...i[0] ||= [s("polyline", { points: "7 8 12 13 17 8" }, null, -1), s("polyline", { points: "7 13 12 18 17 13" }, null, -1)]], 2)), c(" " + P(v.value ? "Collapse all" : "Expand all"), 1)])])) : a("", !0)]),
236
+ s("div", ye, [A(r.$slots, "default")])
213
237
  ], 16));
214
238
  }
215
- }), be = /* @__PURE__ */ u({
239
+ }), xe = /* @__PURE__ */ u({
216
240
  name: "GTreeMenuList",
217
241
  props: { listType: { default: void 0 } },
218
242
  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")]),
243
+ let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o = fe(), s = d();
244
+ return S(() => {
245
+ if (!o) return;
246
+ let e = s?.ce;
247
+ e && e.setAttribute("data-list-type", a.value);
248
+ }), (e, t) => (T(), i(j(R(o) ? "div" : a.value), {
249
+ role: R(o) ? "list" : void 0,
250
+ class: "g-tree-menu__list"
251
+ }, {
252
+ default: J(() => [A(e.$slots, "default")]),
222
253
  _: 3
223
- }));
254
+ }, 8, ["role"]));
224
255
  }
225
- }), xe = ["data-tree-expandable"], Se = {
256
+ }), Se = {
226
257
  key: 0,
227
258
  class: "g-tree-menu__row"
228
259
  }, Ce = { class: "g-tree-menu__row-content-text" }, we = {
@@ -233,6 +264,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
233
264
  "data-tree-primary": ""
234
265
  }, Ee = /* @__PURE__ */ u({
235
266
  name: "GTreeMenuItem",
267
+ inheritAttrs: !1,
236
268
  props: {
237
269
  label: {},
238
270
  expanded: {
@@ -242,87 +274,100 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
242
274
  },
243
275
  emits: ["expand", "collapse"],
244
276
  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);
277
+ let n = e, c = t, l = H(), u = d(), f = B(), m = (u?.ce)?._slots?.children?.length > 0, g = r(() => !!l.children || m), v = p("g-tree-menu-expanded-storage", null);
278
+ function y() {
279
+ if (v && n.label !== void 0) {
280
+ if (v.value[n.label] === !0) return !0;
281
+ n.expanded && (v.value[n.label] = !0);
250
282
  }
251
283
  return n.expanded;
252
284
  }
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();
285
+ let b = O(y());
286
+ K(() => n.expanded, (e) => {
287
+ v && n.label !== void 0 || (b.value = e);
288
+ }), K(b, (e) => {
289
+ v && n.label !== void 0 && (e ? v.value[n.label] = !0 : delete v.value[n.label]), E();
258
290
  });
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);
291
+ let C = O(null);
266
292
  function E() {
267
- y.value = !y.value, y.value ? c("expand") : c("collapse");
293
+ if (!g.value || !C.value) return;
294
+ let e = C.value.querySelector("a, button");
295
+ 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
296
  }
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);
297
+ S(E), w(E);
298
+ function D() {
299
+ b.value = !b.value, b.value ? c("expand") : c("collapse");
272
300
  }
273
- function P() {
274
- A?.delete(O);
301
+ let k = Symbol(), M = p("g-tree-menu-expandable-items", null), N = p("g-tree-menu-expand-all-signal", null), P = O(0);
302
+ function F() {
303
+ M && g.value && M.set(k, b.value);
275
304
  }
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);
305
+ function I() {
306
+ M?.delete(k);
307
+ }
308
+ K(b, (e) => {
309
+ M && g.value && M.set(k, e);
310
+ }), N && K(() => N.value.version, () => {
311
+ g.value && (b.value = N.value.expanded, P.value = N.value.version);
280
312
  }), S(() => {
281
- N(), j && h.value && j.value.version > M.value && j.value.expanded && (y.value = !0, M.value = j.value.version);
313
+ F(), N && g.value && N.value.version > P.value && N.value.expanded && (b.value = !0, P.value = N.value.version);
282
314
  }), x(() => {
283
- P();
315
+ I();
284
316
  });
285
- function F(e) {
286
- e.target.closest("a") || E();
317
+ function L(e) {
318
+ e.target.closest("a") || D();
287
319
  }
288
- function I(e) {
289
- (e.key === "Enter" || e.key === " ") && (E(), e.preventDefault());
320
+ function V(e) {
321
+ (e.key === "Enter" || e.key === " ") && (D(), e.preventDefault());
290
322
  }
291
- return (e, t) => (w(), o("li", {
323
+ let U = fe(), W = u?.ce;
324
+ S(() => {
325
+ U && W && W.setAttribute("role", "listitem");
326
+ });
327
+ let G = z(), q = r(() => {
328
+ if (!U) return G;
329
+ let { role: e, ...t } = G;
330
+ return t;
331
+ });
332
+ return (e, t) => (T(), i(j(R(U) ? "div" : "li"), h(q.value, {
333
+ role: R(U) ? "presentation" : void 0,
292
334
  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")]),
335
+ "data-tree-expandable": g.value ? "true" : void 0
336
+ }), {
337
+ default: J(() => [g.value ? (T(), o("div", Se, [s("div", {
338
+ class: "g-tree-menu__toggle-btn",
339
+ onClick: D
340
+ }, [(T(), o("svg", {
341
+ class: _(["g-tree-menu__chevron", { "g-tree-menu__chevron--expanded": b.value }]),
342
+ role: "none presentation",
343
+ viewBox: "0 0 24 24",
344
+ fill: "none",
345
+ stroke: "currentColor",
346
+ "stroke-width": "2.5",
347
+ "stroke-linecap": "round",
348
+ "stroke-linejoin": "round"
349
+ }, [...t[0] ||= [s("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))]), s("span", {
350
+ ref_key: "contentRef",
351
+ ref: C,
352
+ class: "g-tree-menu__row-content",
353
+ "data-tree-primary": "",
354
+ onClick: L,
355
+ onKeydown: V
356
+ }, [s("span", Ce, [A(e.$slots, "default")])], 544)])) : (T(), o("div", we, [t[1] ||= s("span", { class: "g-tree-menu__spacer" }, null, -1), s("span", Te, [A(e.$slots, "default")])])), g.value && b.value ? (T(), i(xe, {
357
+ key: 2,
358
+ id: R(f) + "-children"
359
+ }, {
360
+ default: J(() => [A(e.$slots, "children")]),
361
+ _: 3
362
+ }, 8, ["id"])) : a("", !0)]),
318
363
  _: 3
319
- }, 8, ["id"])) : a("", !0)], 8, xe));
364
+ }, 16, ["role", "data-tree-expandable"]));
320
365
  }
321
366
  });
322
367
  //#endregion
323
368
  //#region src/compose/useForm.ts
324
369
  function De() {
325
- let e = j({}), t = D(!1), n = r(() => {
370
+ let e = M({}), t = O(!1), n = r(() => {
326
371
  let t = {};
327
372
  return Object.entries(e).forEach(([e, n]) => {
328
373
  n && n.value && (t[e] = n.value.value);
@@ -374,7 +419,7 @@ function ke(e = "default") {
374
419
  //#endregion
375
420
  //#region src/compose/useFormField.ts
376
421
  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(() => {
422
+ let t = z(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (fe() ? ke(i) : null), o = r(() => {
378
423
  let t = [];
379
424
  return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
380
425
  }), s = r(() => o.value.length > 0), c = e.name;
@@ -400,12 +445,12 @@ var Ae = ["id"], je = /* @__PURE__ */ u({
400
445
  id: {}
401
446
  },
402
447
  setup(t) {
403
- return (n, r) => t.errors.length > 0 ? (w(), o("div", {
448
+ return (n, r) => t.errors.length > 0 ? (T(), o("div", {
404
449
  key: 0,
405
450
  class: "g-form-error-messages",
406
451
  id: t.id,
407
452
  role: "alert"
408
- }, [(w(!0), o(e, null, O(t.errors, (e, t) => (w(), o("div", {
453
+ }, [(T(!0), o(e, null, k(t.errors, (e, t) => (T(), o("div", {
409
454
  key: t,
410
455
  class: "g-form-error-message"
411
456
  }, [r[0] ||= s("svg", {
@@ -415,7 +460,7 @@ var Ae = ["id"], je = /* @__PURE__ */ u({
415
460
  }, [s("path", {
416
461
  fill: "currentColor",
417
462
  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);
463
+ })], -1), c(" " + P(e), 1)]))), 128))], 8, Ae)) : a("", !0);
419
464
  }
420
465
  }), Me = ["for"], Ne = {
421
466
  key: 0,
@@ -460,12 +505,12 @@ var Ae = ["id"], je = /* @__PURE__ */ u({
460
505
  }),
461
506
  emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
462
507
  setup(e, { emit: t }) {
463
- let n = e, i = B(e, "modelValue"), u = z(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = fe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: g, hasErrors: v } = $({
508
+ let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = pe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: g, hasErrors: v } = $({
464
509
  name: n.name,
465
510
  value: i,
466
- errors: F(n, "errors"),
511
+ errors: I(n, "errors"),
467
512
  formKey: n.formKey
468
- }), y = t, b = D(i.value ?? ""), x = null;
513
+ }), y = t, b = O(i.value ?? ""), x = null;
469
514
  function S(e) {
470
515
  if (e !== i.value) {
471
516
  let t = i.value;
@@ -480,7 +525,7 @@ var Ae = ["id"], je = /* @__PURE__ */ u({
480
525
  S(b.value), x = null;
481
526
  }, n.debounce);
482
527
  }
483
- function T(e) {
528
+ function w(e) {
484
529
  x &&= (clearTimeout(x), null), S(e.target.value);
485
530
  }
486
531
  function E(e) {
@@ -489,48 +534,48 @@ var Ae = ["id"], je = /* @__PURE__ */ u({
489
534
  S(t);
490
535
  }, 0);
491
536
  }
492
- function O(e) {
537
+ function D(e) {
493
538
  (e.key === "PageUp" || e.key === "PageDown") && (x &&= (clearTimeout(x), null), S(e.target.value)), e.key === "Enter" && S(e.target.value);
494
539
  }
495
- return (t, r) => (w(), o("div", { class: _(["g-text-input-wrap", { "g-text-input-has-error": L(v) }]) }, [
496
- n.label ? (w(), o("label", {
540
+ return (t, r) => (T(), o("div", { class: _(["g-text-input-wrap", { "g-text-input-has-error": R(v) }]) }, [
541
+ n.label ? (T(), o("label", {
497
542
  key: 0,
498
543
  for: m.value,
499
544
  class: "g-text-input-label"
500
- }, [c(N(n.label), 1), n.required ? (w(), o("span", Ne, " *")) : a("", !0)], 8, Me)) : a("", !0),
501
- t.$slots.instructions || e.instructions ? (w(), o("div", {
545
+ }, [c(P(n.label), 1), n.required ? (T(), o("span", Ne, " *")) : a("", !0)], 8, Me)) : a("", !0),
546
+ t.$slots.instructions || e.instructions ? (T(), o("div", {
502
547
  key: 1,
503
- id: "instructions-" + L(u),
548
+ id: "instructions-" + R(u),
504
549
  class: "g-text-input-instructions"
505
- }, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8, Pe)) : a("", !0),
550
+ }, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, Pe)) : a("", !0),
506
551
  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),
552
+ n.prefix ? (T(), o("span", Fe, P(n.prefix), 1)) : a("", !0),
508
553
  s("input", h({
509
554
  value: i.value,
510
555
  placeholder: n.placeholder,
511
556
  disabled: n.disabled,
512
557
  required: n.required,
513
558
  onInput: C,
514
- onBlur: T,
559
+ onBlur: w,
515
560
  onPaste: E,
516
- onKeydown: O,
561
+ onKeydown: D,
517
562
  type: "text",
518
563
  class: "g-text-input"
519
564
  }, {
520
- ...L(p),
565
+ ...R(p),
521
566
  id: m.value,
522
- "aria-describedby": t.$slots.instructions || e.instructions ? "instructions-" + L(u) : void 0,
523
- "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)
567
+ "aria-describedby": t.$slots.instructions || e.instructions ? "instructions-" + R(u) : void 0,
568
+ "aria-errormessage": R(v) ? "error-message-" + R(u) : void 0
569
+ }, { "aria-invalid": R(v) ? "true" : "false" }), null, 16, Ie),
570
+ n.suffix ? (T(), o("span", Le, P(n.suffix), 1)) : a("", !0)
526
571
  ], 2),
527
572
  l(je, {
528
- errors: L(g),
529
- id: "error-message-" + L(u)
573
+ errors: R(g),
574
+ id: "error-message-" + R(u)
530
575
  }, null, 8, ["errors", "id"])
531
576
  ], 2));
532
577
  }
533
- }), ze = 100, Be = 200, Ve = 102, He = D([]), Ue = D([]), We = D([]);
578
+ }), ze = 100, Be = 200, Ve = 102, He = O([]), Ue = O([]), We = O([]);
534
579
  function Ge() {
535
580
  if (!(typeof document > "u")) if (We.value.length > 0) {
536
581
  let e = window.innerWidth - document.documentElement.clientWidth;
@@ -580,12 +625,12 @@ var Ye = (e) => e != null;
580
625
  //#endregion
581
626
  //#region ../../node_modules/@vueuse/integrations/dist/useFocusTrap-lXZ_YG-8.js
582
627
  function Xe(e, t = {}) {
583
- 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) => {
585
- let t = I(e);
586
- return typeof t == "string" ? t : Z(t);
628
+ let n, { immediate: i, ...a } = t, o = N(!1), s = N(!1), c = (e) => n && n.activate(e), l = (e) => n && n.deactivate(e);
629
+ return K(r(() => Z(L(e)).map((e) => {
630
+ let t = L(e);
631
+ return typeof t == "string" ? t : ne(t);
587
632
  }).filter(Ye)), (e) => {
588
- if (e.length) if (!n) n = ue(e, {
633
+ if (e.length) if (!n) n = de(e, {
589
634
  ...a,
590
635
  onActivate() {
591
636
  o.value = !0, t.onActivate && t.onActivate();
@@ -598,7 +643,7 @@ function Xe(e, t = {}) {
598
643
  let t = n?.active;
599
644
  n?.updateContainerElements(e), !t && i && c();
600
645
  }
601
- }, { flush: "post" }), X(() => l()), {
646
+ }, { flush: "post" }), te(() => l()), {
602
647
  hasFocus: o,
603
648
  isPaused: s,
604
649
  activate: c,
@@ -623,7 +668,7 @@ var Ze = [
623
668
  "[contenteditable='true']"
624
669
  ].join(",");
625
670
  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, {
671
+ let r = O(!1), i = () => !!e.value?.querySelector(Ze), { activate: a, deactivate: o, pause: s, unpause: c } = Xe(e, {
627
672
  immediate: !1,
628
673
  clickOutsideDeactivates: n,
629
674
  initialFocus: () => {
@@ -644,7 +689,7 @@ function Qe(e, t, n = !1) {
644
689
  });
645
690
  }
646
691
  });
647
- return W(t, (e) => {
692
+ return K(t, (e) => {
648
693
  e ? g(() => {
649
694
  i() && c();
650
695
  }).catch((e) => {
@@ -721,112 +766,112 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
721
766
  "update:modelValue"
722
767
  ],
723
768
  setup(e, { expose: c, emit: u }) {
724
- let d = e, f = u, p = D(d.modelValue);
725
- W(F(d, "modelValue"), (e) => {
769
+ let d = e, f = u, p = O(d.modelValue);
770
+ K(I(d, "modelValue"), (e) => {
726
771
  p.value = e;
727
772
  });
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) => {
773
+ let m = H(), h = r(() => !!m.trigger), v = U("triggerRef"), b = U("popoverRef"), { isCustomElement: S } = pe(), C = S, w = B(), { push: E, pop: D, isTop: k, zIndex: j } = Ke(w, !0), { activate: M, deactivate: N } = Qe(b, k, !0);
774
+ $e([b, v], k, p, F, D), K(p, (e) => {
730
775
  e ? (g(() => {
731
776
  g(() => M());
732
- }), E(), f("show")) : (N(), O(), f("hide"));
777
+ }), E(), f("show")) : (N(), D(), f("hide"));
733
778
  });
734
779
  function P() {
735
780
  p.value = !0, f("update:modelValue", !0);
736
781
  }
737
- function I() {
782
+ function F() {
738
783
  p.value = !1, f("update:modelValue", !1);
739
784
  }
740
- function R() {
785
+ function L() {
741
786
  p.value = !p.value, f("update:modelValue", p.value);
742
787
  }
743
- let B = D({
788
+ let z = O({
744
789
  top: 0,
745
790
  left: 0
746
- }), U = D({ left: "50%" }), G = D(!1), J = D(!1), Y = null;
747
- function te() {
791
+ }), V = O({ left: "50%" }), W = O(!1), q = O(!1), X = null;
792
+ function ee() {
748
793
  if (v.value) return v.value;
749
794
  let e = b.value?.parentElement ?? null;
750
795
  for (; e && e.tagName.toLowerCase() !== "g-popover";) e = e.parentElement;
751
796
  let t = e?.previousElementSibling;
752
797
  return t instanceof HTMLElement ? t : null;
753
798
  }
754
- function X() {
799
+ function Z() {
755
800
  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();
801
+ let e = new DOMRect(0, 0, b.value.offsetWidth, b.value.offsetHeight), t = new DOMRect(0, 0, window.innerWidth, window.innerHeight), n = ee();
757
802
  if (!n) {
758
- B.value = {
803
+ z.value = {
759
804
  top: Math.max((t.height - e.height) / 2, 8),
760
805
  left: Math.max((t.width - e.width) / 2, 8)
761
- }, J.value = !1, G.value = !1, U.value = { left: "50%" };
806
+ }, q.value = !1, W.value = !1, V.value = { left: "50%" };
762
807
  return;
763
808
  }
764
809
  let { top: r, left: i, xOffset: a, placedAbove: o, overlay: s } = et(n.getBoundingClientRect(), e, t, { gap: d.minimal ? 0 : 8 });
765
- B.value = {
810
+ z.value = {
766
811
  top: r,
767
812
  left: i
768
- }, U.value = {
813
+ }, V.value = {
769
814
  left: `${e.width / 2 - a}px`,
770
815
  top: o ? "auto" : void 0,
771
816
  bottom: o ? "-8px" : void 0
772
- }, G.value = o, J.value = s;
817
+ }, W.value = o, q.value = s;
773
818
  }
774
- return W(p, (e) => {
819
+ return K(p, (e) => {
775
820
  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());
821
+ Z(), window.addEventListener("resize", Z), window.addEventListener("scroll", Z, { capture: !0 }), b.value && (X && X.disconnect(), X = new ResizeObserver(() => Z()), X.observe(b.value));
822
+ }) : (window.removeEventListener("resize", Z), window.removeEventListener("scroll", Z, { capture: !0 }), X && X.disconnect());
778
823
  }), x(() => {
779
- window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }), Y && Y.disconnect();
824
+ window.removeEventListener("resize", Z), window.removeEventListener("scroll", Z, { capture: !0 }), X && X.disconnect();
780
825
  }), c({
781
826
  show: P,
782
- hide: I,
783
- toggle: R
784
- }), (r, c) => (w(), o("div", tt, [h.value ? (w(), o("div", {
827
+ hide: F,
828
+ toggle: L
829
+ }), (r, c) => (T(), o("div", tt, [h.value ? (T(), o("div", {
785
830
  key: 0,
786
831
  ref_key: "triggerRef",
787
832
  ref: v,
788
833
  class: "g-popover-trigger",
789
- id: `${L(T)}-trigger`
790
- }, [k(r.$slots, "trigger", { toggle: R })], 8, nt)) : a("", !0), (w(), i(t, {
834
+ id: `${R(w)}-trigger`
835
+ }, [A(r.$slots, "trigger", { toggle: L })], 8, nt)) : a("", !0), (T(), i(t, {
791
836
  to: "#modal-root",
792
- disabled: L(C)
837
+ disabled: R(C)
793
838
  }, [l(n, {
794
839
  name: "g-popover-expand",
795
840
  appear: ""
796
841
  }, {
797
- default: K(() => [L(S) || p.value ? q((w(), o("div", {
842
+ default: J(() => [R(S) || p.value ? Y((T(), o("div", {
798
843
  key: 0,
799
844
  ref_key: "popoverRef",
800
845
  ref: b,
801
846
  class: _({
802
847
  "g-popover": !0,
803
- "g-popover-above": G.value,
804
- "g-popover-below": !G.value,
848
+ "g-popover-above": W.value,
849
+ "g-popover-below": !W.value,
805
850
  "g-popover-minimal": e.minimal
806
851
  }),
807
852
  role: "dialog",
808
853
  "aria-modal": "true",
809
- "aria-labelledby": h.value ? `${L(T)}-trigger` : void 0,
854
+ "aria-labelledby": h.value ? `${R(w)}-trigger` : void 0,
810
855
  "aria-label": h.value ? void 0 : "Popover",
811
856
  style: y({
812
- top: B.value.top + "px",
813
- left: B.value.left + "px",
814
- zIndex: L(j)
857
+ top: z.value.top + "px",
858
+ left: z.value.left + "px",
859
+ zIndex: R(j)
815
860
  })
816
861
  }, [
817
- !J.value && !e.minimal ? (w(), o("div", {
862
+ !q.value && !e.minimal ? (T(), o("div", {
818
863
  key: 0,
819
- class: _(["g-popover-arrow", { "g-popover-arrow-above": G.value }]),
820
- style: y(U.value),
864
+ class: _(["g-popover-arrow", { "g-popover-arrow-above": W.value }]),
865
+ style: y(V.value),
821
866
  "aria-hidden": "true"
822
867
  }, null, 6)) : a("", !0),
823
- k(r.$slots, "default"),
824
- e.minimal ? a("", !0) : (w(), o("button", {
868
+ A(r.$slots, "default"),
869
+ e.minimal ? a("", !0) : (T(), o("button", {
825
870
  key: 1,
826
871
  class: "g-popover-close",
827
872
  type: "button",
828
873
  "aria-label": "Close popover",
829
- onClick: I
874
+ onClick: F
830
875
  }, [...c[0] ||= [s("svg", {
831
876
  class: "g-popover-close-icon",
832
877
  xmlns: "http://www.w3.org/2000/svg",
@@ -836,7 +881,7 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
836
881
  fill: "currentColor",
837
882
  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
883
  })], -1)]]))
839
- ], 14, rt)), [[ee, p.value]]) : a("", !0)]),
884
+ ], 14, rt)), [[G, p.value]]) : a("", !0)]),
840
885
  _: 3
841
886
  })], 8, ["disabled"]))]));
842
887
  }
@@ -875,7 +920,7 @@ var ft = /* @__PURE__ */ u({
875
920
  props: { text: {} },
876
921
  emits: ["tooltip-hide"],
877
922
  setup(e, { expose: t, emit: n }) {
878
- let i = e, s = n, c = V(), l = r(() => !!c.trigger), u = H("hostRef"), d = H("triggerRef"), f = D(null), p = D(!1), m = D(!1), h = null, g = !1, _ = null, v = null, y = null;
923
+ let i = e, s = n, c = H(), l = r(() => !!c.trigger), u = U("hostRef"), d = U("triggerRef"), f = O(null), p = O(!1), m = O(!1), h = null, g = !1, _ = null, v = null, y = null;
879
924
  function b() {
880
925
  if (l.value && d.value) {
881
926
  let e = d.value.firstElementChild;
@@ -892,20 +937,20 @@ var ft = /* @__PURE__ */ u({
892
937
  function C() {
893
938
  f.value && (p.value || m.value) && y && ut(y, f.value);
894
939
  }
895
- function T() {
940
+ function w() {
896
941
  p.value = !0;
897
942
  }
898
943
  function E() {
899
944
  p.value = !1, m.value = !1;
900
945
  }
901
- function O() {
946
+ function D() {
902
947
  if (p.value || m.value) {
903
948
  E();
904
949
  return;
905
950
  }
906
- T();
951
+ w();
907
952
  }
908
- function A(e) {
953
+ function k(e) {
909
954
  y !== e && (j(), y = e, y && (y.addEventListener("mouseenter", M), y.addEventListener("mouseleave", N), y.addEventListener("focusin", P), y.addEventListener("focusout", F), y.addEventListener("keydown", I)));
910
955
  }
911
956
  function j() {
@@ -926,15 +971,15 @@ var ft = /* @__PURE__ */ u({
926
971
  function I(e) {
927
972
  (e.key === "Escape" || e.key === "Esc") && (p.value = !1, m.value = !1);
928
973
  }
929
- return W(() => [
974
+ return K(() => [
930
975
  u.value,
931
976
  d.value,
932
977
  l.value
933
978
  ], () => {
934
- A(b()), S();
935
- }, { immediate: !0 }), W(() => i.text, (e) => {
979
+ k(b()), S();
980
+ }, { immediate: !0 }), K(() => i.text, (e) => {
936
981
  f.value && (f.value.textContent = e);
937
- }), W(() => p.value || m.value, (e) => {
982
+ }), K(() => p.value || m.value, (e) => {
938
983
  if (e) {
939
984
  S(), f.value && y && ut(y, f.value), g ||= (window.addEventListener("scroll", C, { capture: !0 }), !0);
940
985
  return;
@@ -945,19 +990,19 @@ var ft = /* @__PURE__ */ u({
945
990
  }), x(() => {
946
991
  g && window.removeEventListener("scroll", C, { capture: !0 }), h && h.disconnect(), f.value &&= (f.value.remove(), null), _ && clearTimeout(_), l.value && y && y.removeAttribute("aria-describedby"), j();
947
992
  }), t({
948
- show: T,
993
+ show: w,
949
994
  hide: E,
950
- toggle: O
951
- }), (e, t) => (w(), o("div", {
995
+ toggle: D
996
+ }), (e, t) => (T(), o("div", {
952
997
  ref_key: "hostRef",
953
998
  ref: u,
954
999
  class: "g-tooltip-host"
955
- }, [l.value ? (w(), o("div", {
1000
+ }, [l.value ? (T(), o("div", {
956
1001
  key: 0,
957
1002
  ref_key: "triggerRef",
958
1003
  ref: d,
959
1004
  class: "g-tooltip-trigger"
960
- }, [k(e.$slots, "trigger")], 512)) : a("", !0)], 512));
1005
+ }, [A(e.$slots, "trigger")], 512)) : a("", !0)], 512));
961
1006
  }
962
1007
  }), pt = ["disabled"], mt = { class: "g-select-btn-legend" }, ht = {
963
1008
  key: 0,
@@ -994,10 +1039,10 @@ var ft = /* @__PURE__ */ u({
994
1039
  }),
995
1040
  emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
996
1041
  setup(t, { emit: n }) {
997
- let i = t, u = n, d = B(t, "modelValue"), f = z(), { displayErrors: p, hasErrors: m } = $({
1042
+ let i = t, u = n, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } = $({
998
1043
  name: i.name,
999
1044
  value: d,
1000
- errors: F(i, "errors"),
1045
+ errors: I(i, "errors"),
1001
1046
  formKey: i.formKey
1002
1047
  }), h = r(() => i.options.map((e) => typeof e == "string" ? {
1003
1048
  label: e,
@@ -1010,25 +1055,25 @@ var ft = /* @__PURE__ */ u({
1010
1055
  function y(e) {
1011
1056
  !i.disabled && e !== d.value && (d.value = e, u("change", e));
1012
1057
  }
1013
- return (t, n) => (w(), o("fieldset", {
1058
+ return (t, n) => (T(), o("fieldset", {
1014
1059
  class: _(g.value),
1015
1060
  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", {
1061
+ }, [s("legend", mt, [c(P(i.label), 1), i.required ? (T(), o("span", ht, " *")) : a("", !0)]), s("div", { class: _(["g-select-btn-wrapper", { "g-select-btn-has-error": R(m) }]) }, [s("div", gt, [(T(!0), o(e, null, k(h.value, (t, n) => (T(), o(e, { key: t.value }, [s("input", {
1017
1062
  class: "g-select-btn-radio",
1018
1063
  type: "radio",
1019
- id: `${L(f)}-${t.value}`,
1020
- name: i.name || L(f),
1064
+ id: `${R(f)}-${t.value}`,
1065
+ name: i.name || R(f),
1021
1066
  value: t.value,
1022
1067
  checked: t.value === d.value,
1023
1068
  disabled: i.disabled,
1024
1069
  required: i.required && n === 0,
1025
1070
  onChange: (e) => y(t.value)
1026
1071
  }, null, 40, _t), s("label", {
1027
- for: `${L(f)}-${t.value}`,
1072
+ for: `${R(f)}-${t.value}`,
1028
1073
  class: _(v(t.value === d.value))
1029
- }, N(t.label), 11, vt)], 64))), 128))]), l(je, {
1030
- errors: L(p),
1031
- id: "error-message-" + L(f)
1074
+ }, P(t.label), 11, vt)], 64))), 128))]), l(je, {
1075
+ errors: R(p),
1076
+ id: "error-message-" + R(f)
1032
1077
  }, null, 8, ["errors", "id"])], 2)], 10, pt));
1033
1078
  }
1034
1079
  }), bt = ["width", "height"], xt = [
@@ -1070,7 +1115,7 @@ var ft = /* @__PURE__ */ u({
1070
1115
  role: "status",
1071
1116
  "aria-label": t.label
1072
1117
  });
1073
- return (e, t) => (w(), o("span", h({ class: "g-progress" }, l.value), [(w(), o("svg", {
1118
+ return (e, t) => (T(), o("span", h({ class: "g-progress" }, l.value), [(T(), o("svg", {
1074
1119
  width: i.value * 2 + 4,
1075
1120
  height: i.value * 2 + 4,
1076
1121
  class: _(["g-progress__svg", {
@@ -1086,7 +1131,7 @@ var ft = /* @__PURE__ */ u({
1086
1131
  r: i.value,
1087
1132
  "stroke-width": 4,
1088
1133
  fill: "none"
1089
- }, null, 8, xt), n.value ? (w(), o("circle", {
1134
+ }, null, 8, xt), n.value ? (T(), o("circle", {
1090
1135
  key: 0,
1091
1136
  class: "g-progress__value",
1092
1137
  cx: i.value + 4 / 2,
@@ -1100,7 +1145,7 @@ var ft = /* @__PURE__ */ u({
1100
1145
  transform: "rotate(-90deg)",
1101
1146
  "transform-origin": "center"
1102
1147
  }
1103
- }, null, 8, St)) : (w(), o("circle", {
1148
+ }, null, 8, St)) : (T(), o("circle", {
1104
1149
  key: 1,
1105
1150
  class: "g-progress__spinner",
1106
1151
  cx: i.value + 4 / 2,
@@ -1123,7 +1168,7 @@ var ft = /* @__PURE__ */ u({
1123
1168
  },
1124
1169
  emits: ["cancel", "confirm"],
1125
1170
  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);
1171
+ let a = e, o = r, u = O(null), d = O(!0), f = B(), { pop: p, push: m, isTop: h, zIndex: g } = Ke(f, !0, !0), { deactivate: _, activate: v } = Qe(u, h);
1127
1172
  function x() {
1128
1173
  o("cancel");
1129
1174
  }
@@ -1131,40 +1176,40 @@ var ft = /* @__PURE__ */ u({
1131
1176
  m(), v();
1132
1177
  }), b(() => {
1133
1178
  p(), _();
1134
- }), (e, r) => (w(), i(t, { to: "#modal-root" }, [l(n, {
1179
+ }), (e, r) => (T(), i(t, { to: "#modal-root" }, [l(n, {
1135
1180
  name: "g-fade",
1136
1181
  appear: ""
1137
1182
  }, {
1138
- default: K(() => [s("div", {
1139
- id: "alertdialog-" + L(f),
1183
+ default: J(() => [s("div", {
1184
+ id: "alertdialog-" + R(f),
1140
1185
  class: "g-alertdialog",
1141
1186
  role: "alertdialog",
1142
1187
  "aria-modal": "true",
1143
- "aria-labelledby": "alertdialog-label-" + L(f),
1144
- "aria-describedby": "alertdialog-description-" + L(f),
1188
+ "aria-labelledby": "alertdialog-label-" + R(f),
1189
+ "aria-describedby": "alertdialog-description-" + R(f),
1145
1190
  ref_key: "dialog",
1146
1191
  ref: u,
1147
- style: y({ zIndex: L(g) })
1192
+ style: y({ zIndex: R(g) })
1148
1193
  }, [s("div", Et, [
1149
1194
  s("h2", {
1150
- id: "alertdialog-label-" + L(f),
1195
+ id: "alertdialog-label-" + R(f),
1151
1196
  class: "g-alertdialog-label"
1152
- }, N(a.label), 9, Dt),
1197
+ }, P(a.label), 9, Dt),
1153
1198
  s("div", {
1154
- id: "alertdialog-description-" + L(f),
1199
+ id: "alertdialog-description-" + R(f),
1155
1200
  class: "g-alertdialog-content"
1156
- }, [k(e.$slots, "default")], 8, Ot),
1201
+ }, [A(e.$slots, "default")], 8, Ot),
1157
1202
  s("div", kt, [l(Q, {
1158
1203
  outlined: "",
1159
1204
  onClick: r[0] ||= (e) => o("cancel")
1160
1205
  }, {
1161
- default: K(() => [...r[2] ||= [c("Cancel", -1)]]),
1206
+ default: J(() => [...r[2] ||= [c("Cancel", -1)]]),
1162
1207
  _: 1
1163
1208
  }), l(Q, {
1164
1209
  theme: a.buttonColor,
1165
1210
  onClick: r[1] ||= (e) => o("confirm")
1166
1211
  }, {
1167
- default: K(() => [c(N(a.buttonText), 1)]),
1212
+ default: J(() => [c(P(a.buttonText), 1)]),
1168
1213
  _: 1
1169
1214
  }, 8, ["theme"])])
1170
1215
  ])], 12, Tt)]),
@@ -1181,7 +1226,7 @@ function jt(e) {
1181
1226
  } : e);
1182
1227
  }
1183
1228
  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(() => {
1229
+ let { push: o, pop: s, isTop: c } = Ke(i), l = O("below"), u = O(null), d = r(() => {
1185
1230
  let e = {};
1186
1231
  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
1232
  });
@@ -1204,7 +1249,7 @@ function Mt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a })
1204
1249
  function h() {
1205
1250
  p && p();
1206
1251
  }
1207
- W(e, (e) => {
1252
+ K(e, (e) => {
1208
1253
  e ? (o(), m(), g(() => f())) : (s(), h(), l.value = "below", u.value = null);
1209
1254
  }), x(() => {
1210
1255
  h();
@@ -1283,39 +1328,39 @@ var Nt = ["id"], Pt = {
1283
1328
  }),
1284
1329
  emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
1285
1330
  setup(t, { emit: n }) {
1286
- let i = t, u = n, d = B(t, "modelValue"), f = z(), p = D(null), m = D(null), v = D(null), y = D(!1), b = D(0), x = D(!1), S = D(!1), { displayErrors: C, hasErrors: T } = $({
1331
+ let i = t, u = n, d = V(t, "modelValue"), f = B(), p = O(null), m = O(null), v = O(null), y = O(!1), b = O(0), x = O(!1), S = O(!1), { displayErrors: C, hasErrors: w } = $({
1287
1332
  name: i.name,
1288
1333
  value: d,
1289
- errors: F(i, "errors"),
1334
+ errors: I(i, "errors"),
1290
1335
  formKey: i.formKey
1291
- }), { menuPlacement: E, menuStyle: A, isTop: j, scrollOptionIntoView: M } = Mt({
1336
+ }), { menuPlacement: E, menuStyle: D, isTop: j, scrollOptionIntoView: M } = Mt({
1292
1337
  open: y,
1293
1338
  anchorRef: p,
1294
1339
  listboxRef: m,
1295
1340
  baseId: f,
1296
1341
  activeIndex: b
1297
- }), P = r(() => jt(i.options)), I = D(""), R = r(() => {
1298
- if (!i.searchable || !y.value || !I.value) return P.value;
1299
- let e = I.value.toLowerCase();
1300
- return P.value.filter((t) => t.label.toLowerCase().includes(e));
1301
- }), V = r(() => R.value.findIndex((e) => e.value === d.value));
1302
- W(() => d.value, (e) => {
1303
- let t = R.value.findIndex((t) => t.value === e);
1342
+ }), N = r(() => jt(i.options)), F = O(""), L = r(() => {
1343
+ if (!i.searchable || !y.value || !F.value) return N.value;
1344
+ let e = F.value.toLowerCase();
1345
+ return N.value.filter((t) => t.label.toLowerCase().includes(e));
1346
+ }), z = r(() => L.value.findIndex((e) => e.value === d.value));
1347
+ K(() => d.value, (e) => {
1348
+ let t = L.value.findIndex((t) => t.value === e);
1304
1349
  t !== -1 && (b.value = t);
1305
1350
  });
1306
1351
  function H() {
1307
1352
  if (!i.disabled && (y.value = !0, i.searchable)) {
1308
- I.value = "";
1309
- let e = R.value.findIndex((e) => e.value === d.value);
1353
+ F.value = "";
1354
+ let e = L.value.findIndex((e) => e.value === d.value);
1310
1355
  b.value = e === -1 ? 0 : e, g(() => {
1311
1356
  v.value && v.value.focus();
1312
1357
  });
1313
1358
  }
1314
1359
  }
1315
1360
  function U() {
1316
- y.value = !1, i.searchable && (I.value = "");
1361
+ y.value = !1, i.searchable && (F.value = "");
1317
1362
  }
1318
- function G(e) {
1363
+ function W(e) {
1319
1364
  if (!i.disabled && i.searchable) {
1320
1365
  if (S.value) {
1321
1366
  S.value = !1;
@@ -1324,32 +1369,32 @@ var Nt = ["id"], Pt = {
1324
1369
  H();
1325
1370
  }
1326
1371
  }
1327
- function K(e) {
1372
+ function q(e) {
1328
1373
  if (!i.searchable) return;
1329
- y.value || H(), I.value = e.target.value;
1330
- let t = R.value.findIndex((e) => e.value === d.value);
1374
+ y.value || H(), F.value = e.target.value;
1375
+ let t = L.value.findIndex((e) => e.value === d.value);
1331
1376
  b.value = t === -1 ? 0 : t;
1332
1377
  }
1333
- function Y(e) {
1378
+ function J(e) {
1334
1379
  let t = e.relatedTarget;
1335
1380
  if (x.value) {
1336
1381
  x.value = !1;
1337
1382
  return;
1338
1383
  }
1339
- t && m.value && m.value.contains(t) || (i.searchable && (I.value = ""), U());
1384
+ t && m.value && m.value.contains(t) || (i.searchable && (F.value = ""), U());
1340
1385
  }
1341
- function te(e) {
1342
- let t = R.value[e];
1386
+ function ee(e) {
1387
+ let t = L.value[e];
1343
1388
  t && t.value !== d.value && (d.value = t.value, u("change", t.value)), S.value = !0, U(), setTimeout(() => {
1344
1389
  S.value = !1;
1345
1390
  }, 100);
1346
1391
  }
1347
- function X() {
1392
+ function Z() {
1348
1393
  i.disabled || (y.value ? U() : H());
1349
1394
  }
1350
- function Z(e) {
1395
+ function te(e) {
1351
1396
  if (i.disabled) return;
1352
- let t = R.value.length - 1;
1397
+ let t = L.value.length - 1;
1353
1398
  if (!y.value && [
1354
1399
  "ArrowDown",
1355
1400
  "ArrowUp",
@@ -1374,7 +1419,7 @@ var Nt = ["id"], Pt = {
1374
1419
  break;
1375
1420
  case "Enter":
1376
1421
  case " ":
1377
- e.preventDefault(), y.value ? te(b.value) : H();
1422
+ e.preventDefault(), y.value ? ee(b.value) : H();
1378
1423
  break;
1379
1424
  case "Escape":
1380
1425
  j.value && (e.preventDefault(), setTimeout(() => {
@@ -1384,29 +1429,29 @@ var Nt = ["id"], Pt = {
1384
1429
  }
1385
1430
  }
1386
1431
  function ne(e) {
1387
- te(e);
1432
+ ee(e);
1388
1433
  }
1389
1434
  function re() {
1390
1435
  x.value = !0;
1391
1436
  }
1392
1437
  let ie = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
1393
1438
  function ae() {
1394
- i.disabled || (d.value = null, u("change", null), i.searchable && (I.value = ""));
1439
+ i.disabled || (d.value = null, u("change", null), i.searchable && (F.value = ""));
1395
1440
  }
1396
- return (n, r) => (w(), o("div", { class: _(["g-select-root g-select-combo", {
1441
+ return (n, r) => (T(), o("div", { class: _(["g-select-root g-select-combo", {
1397
1442
  "g-select-open": y.value,
1398
1443
  "g-select-compact": t.compact,
1399
- "g-select-has-error": L(T)
1444
+ "g-select-has-error": R(w)
1400
1445
  }]) }, [
1401
- t.hiddenLabel ? a("", !0) : (w(), o("div", {
1446
+ t.hiddenLabel ? a("", !0) : (T(), o("div", {
1402
1447
  key: 0,
1403
- id: L(f) + "-label",
1448
+ id: R(f) + "-label",
1404
1449
  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", {
1450
+ }, [c(P(i.label), 1), i.required ? (T(), o("span", Pt, " *")) : a("", !0)], 8, Nt)),
1451
+ s("div", Ft, [i.searchable ? (T(), o("div", {
1407
1452
  key: 0,
1408
1453
  class: "g-select-combo-input g-select-control",
1409
- id: L(f)
1454
+ id: R(f)
1410
1455
  }, [
1411
1456
  s("input", h({
1412
1457
  ref_key: "comboRef",
@@ -1414,24 +1459,24 @@ var Nt = ["id"], Pt = {
1414
1459
  type: "text",
1415
1460
  name: "comboInput",
1416
1461
  class: ["g-select-search-input", { "g-select-clearable": t.clearButton }],
1417
- value: y.value ? I.value : P.value[V.value] ? P.value[V.value].label : "",
1462
+ value: y.value ? F.value : N.value[z.value] ? N.value[z.value].label : "",
1418
1463
  placeholder: y.value ? "" : t.placeholder,
1419
1464
  disabled: i.disabled,
1420
- onFocus: G,
1421
- onInput: K,
1422
- onKeydown: Z,
1423
- onBlur: Y,
1465
+ onFocus: W,
1466
+ onInput: q,
1467
+ onKeydown: te,
1468
+ onBlur: J,
1424
1469
  "aria-autocomplete": "list",
1425
- "aria-controls": L(f) + "-listbox",
1470
+ "aria-controls": R(f) + "-listbox",
1426
1471
  "aria-expanded": y.value ? "true" : "false",
1427
1472
  "aria-required": i.required ? "true" : void 0,
1428
1473
  "aria-haspopup": "listbox",
1429
- "aria-activedescendant": y.value ? L(f) + "-option-" + b.value : void 0
1430
- }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": L(f) + "-label" }, {
1474
+ "aria-activedescendant": y.value ? R(f) + "-option-" + b.value : void 0
1475
+ }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": R(f) + "-label" }, {
1431
1476
  role: "combobox",
1432
1477
  autocomplete: "off"
1433
1478
  }), null, 16, Lt),
1434
- ie.value ? (w(), o("button", {
1479
+ ie.value ? (T(), o("button", {
1435
1480
  key: 0,
1436
1481
  type: "button",
1437
1482
  class: "g-select-clear-btn",
@@ -1456,31 +1501,31 @@ var Nt = ["id"], Pt = {
1456
1501
  fill: "currentColor",
1457
1502
  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
1503
  })], -1)
1459
- ], 8, It)) : (w(), o("div", h({
1504
+ ], 8, It)) : (T(), o("div", h({
1460
1505
  key: 1,
1461
1506
  ref_key: "comboRef",
1462
1507
  ref: p,
1463
- id: L(f),
1508
+ id: R(f),
1464
1509
  class: ["g-select-combo-button g-select-control", { "g-select-clearable": t.clearButton }],
1465
1510
  role: "combobox",
1466
- "aria-controls": L(f) + "-listbox",
1511
+ "aria-controls": R(f) + "-listbox",
1467
1512
  "aria-expanded": y.value ? "true" : "false",
1468
1513
  "aria-required": i.required ? "true" : void 0,
1469
1514
  "aria-haspopup": "listbox"
1470
- }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": L(f) + "-label" }, {
1471
- "aria-activedescendant": y.value ? L(f) + "-option-" + b.value : void 0,
1515
+ }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": R(f) + "-label" }, {
1516
+ "aria-activedescendant": y.value ? R(f) + "-option-" + b.value : void 0,
1472
1517
  tabindex: "0",
1473
- onClick: X,
1474
- onKeydown: Z,
1475
- onFocus: G,
1476
- onBlur: Y
1518
+ onClick: Z,
1519
+ onKeydown: te,
1520
+ onFocus: W,
1521
+ onBlur: J
1477
1522
  }), [
1478
- c(N(P.value[V.value] ? P.value[V.value].label : "") + " ", 1),
1479
- ie.value ? (w(), o("button", {
1523
+ c(P(N.value[z.value] ? N.value[z.value].label : "") + " ", 1),
1524
+ ie.value ? (T(), o("button", {
1480
1525
  key: 0,
1481
1526
  type: "button",
1482
1527
  class: "g-select-clear-btn",
1483
- onClick: J(ae, ["stop"])
1528
+ onClick: X(ae, ["stop"])
1484
1529
  }, [...r[2] ||= [s("svg", {
1485
1530
  role: "img",
1486
1531
  "aria-label": "Clear Selection",
@@ -1501,16 +1546,16 @@ var Nt = ["id"], Pt = {
1501
1546
  fill: "currentColor",
1502
1547
  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
1548
  })], -1)
1504
- ], 16, Rt)), q(s("div", h({
1549
+ ], 16, Rt)), Y(s("div", h({
1505
1550
  ref_key: "listboxRef",
1506
1551
  ref: m,
1507
- class: ["g-select-combo-menu g-select-list", { "g-select-combo-menu--above": L(E) === "above" }],
1508
- style: L(A),
1552
+ class: ["g-select-combo-menu g-select-list", { "g-select-combo-menu--above": R(E) === "above" }],
1553
+ style: R(D),
1509
1554
  role: "listbox",
1510
- id: L(f) + "-listbox"
1511
- }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": L(f) + "-label" }, { tabindex: "-1" }), [R.value.length > 0 ? (w(!0), o(e, { key: 0 }, O(R.value, (e, t) => (w(), o("div", {
1555
+ id: R(f) + "-listbox"
1556
+ }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": R(f) + "-label" }, { tabindex: "-1" }), [L.value.length > 0 ? (T(!0), o(e, { key: 0 }, k(L.value, (e, t) => (T(), o("div", {
1512
1557
  key: e.value,
1513
- id: L(f) + "-option-" + t,
1558
+ id: R(f) + "-option-" + t,
1514
1559
  class: _(["g-select-combo-option g-select-option", {
1515
1560
  "g-select-option-current": t === b.value,
1516
1561
  "ilw-theme-blue": e.value === d.value
@@ -1519,14 +1564,14 @@ var Nt = ["id"], Pt = {
1519
1564
  "aria-selected": e.value === d.value ? "true" : "false",
1520
1565
  onMousedown: re,
1521
1566
  onClick: (e) => ne(t)
1522
- }, [k(n.$slots, "option", {
1567
+ }, [A(n.$slots, "option", {
1523
1568
  option: e,
1524
1569
  selected: e.value === d.value,
1525
1570
  index: t
1526
- }, () => [c(N(e.label), 1)])], 42, Bt))), 128)) : (w(), o("div", Vt, " No results found. "))], 16, zt), [[ee, y.value]])]),
1571
+ }, () => [c(P(e.label), 1)])], 42, Bt))), 128)) : (T(), o("div", Vt, " No results found. "))], 16, zt), [[G, y.value]])]),
1527
1572
  l(je, {
1528
- errors: L(C),
1529
- id: "error-message-" + L(f)
1573
+ errors: R(C),
1574
+ id: "error-message-" + R(f)
1530
1575
  }, null, 8, ["errors", "id"])
1531
1576
  ], 2));
1532
1577
  }
@@ -1567,7 +1612,7 @@ var Nt = ["id"], Pt = {
1567
1612
  }),
1568
1613
  emits: /* @__PURE__ */ m(["select", "submit"], ["update:modelValue"]),
1569
1614
  setup(t, { emit: n }) {
1570
- let l = B(t, "modelValue"), u = t, d = n, f = D(null), p = D(null), m = D(!0), h = D(-1), v = r(() => Array.isArray(u.results) && u.results.length && "items" in u.results[0] ? u.results.flatMap((e) => e.items) : u.results), y = r(() => v.value.length);
1615
+ let l = V(t, "modelValue"), u = t, d = n, f = O(null), p = O(null), m = O(!0), h = O(-1), v = r(() => Array.isArray(u.results) && u.results.length && "items" in u.results[0] ? u.results.flatMap((e) => e.items) : u.results), y = r(() => v.value.length);
1571
1616
  function b(e) {
1572
1617
  let t = e.target.value;
1573
1618
  l.value = t, u.auto && t.length > 1 && (m.value = !1);
@@ -1578,7 +1623,7 @@ var Nt = ["id"], Pt = {
1578
1623
  e && e.scrollIntoView({ block: "nearest" });
1579
1624
  });
1580
1625
  }
1581
- let { focused: S } = ie(f);
1626
+ let { focused: S } = ae(f);
1582
1627
  function C(e) {
1583
1628
  let t = e.altKey;
1584
1629
  if (e.key === "ArrowDown") {
@@ -1587,10 +1632,10 @@ var Nt = ["id"], Pt = {
1587
1632
  } else if (e.key === "ArrowUp") {
1588
1633
  if (!y.value) return;
1589
1634
  e.preventDefault(), m.value = !1, h.value = (h.value - 1 + y.value) % y.value, x();
1590
- } else if (e.key === "Enter") m.value ? (d("submit", l.value), m.value = !1, e.preventDefault()) : T(v.value[h.value]);
1635
+ } else if (e.key === "Enter") m.value ? (d("submit", l.value), m.value = !1, e.preventDefault()) : w(v.value[h.value]);
1591
1636
  else if (e.key === "Escape") {
1592
1637
  if (!y.value) return;
1593
- e.preventDefault(), A.value || (l.value = ""), m.value = !0, h.value = -1;
1638
+ e.preventDefault(), D.value || (l.value = ""), m.value = !0, h.value = -1;
1594
1639
  }
1595
1640
  [
1596
1641
  "Backspace",
@@ -1599,23 +1644,23 @@ var Nt = ["id"], Pt = {
1599
1644
  "Undo"
1600
1645
  ].includes(e.key) && (m.value = !0);
1601
1646
  }
1602
- function T(e) {
1647
+ function w(e) {
1603
1648
  d("select", e), l.value = "", m.value = !0, h.value = -1;
1604
1649
  }
1605
- let E = r(() => !!u.loading), A = r(() => S.value && !m.value), j = re(() => {
1650
+ let E = r(() => !!u.loading), D = r(() => S.value && !m.value), j = ie(() => {
1606
1651
  d("submit", l.value);
1607
1652
  }, 300);
1608
- W(() => l.value, (e) => {
1653
+ K(() => l.value, (e) => {
1609
1654
  e ? u.auto && j() : h.value = -1;
1610
1655
  });
1611
- let M = z();
1612
- return (t, n) => (w(), o("div", {
1656
+ let M = B();
1657
+ return (t, n) => (T(), o("div", {
1613
1658
  class: "g-search",
1614
1659
  role: "search",
1615
1660
  "aria-label": u.label
1616
1661
  }, [s("form", {
1617
1662
  class: "g-search-form",
1618
- onSubmit: n[0] ||= J((e) => T(null), ["prevent"])
1663
+ onSubmit: n[0] ||= X((e) => w(null), ["prevent"])
1619
1664
  }, [s("input", {
1620
1665
  ref_key: "inputRef",
1621
1666
  ref: f,
@@ -1627,16 +1672,16 @@ var Nt = ["id"], Pt = {
1627
1672
  onInput: b,
1628
1673
  onKeydown: C,
1629
1674
  role: "combobox",
1630
- "aria-expanded": A.value,
1675
+ "aria-expanded": D.value,
1631
1676
  "aria-autocomplete": "list",
1632
- "aria-controls": `${L(M)}-list`,
1677
+ "aria-controls": `${R(M)}-list`,
1633
1678
  "aria-activedescendant": h.value >= 0 ? "g-search-option-" + v.value[h.value].id : void 0
1634
1679
  }, null, 40, Wt), s("button", {
1635
1680
  type: "submit",
1636
1681
  class: "g-search-submit",
1637
1682
  "aria-label": "Submit search",
1638
1683
  onKeydown: C
1639
- }, [E.value ? (w(), i(wt, {
1684
+ }, [E.value ? (T(), i(wt, {
1640
1685
  key: 0,
1641
1686
  size: "tiny"
1642
1687
  })) : a("", !0), n[1] ||= s("svg", {
@@ -1647,32 +1692,32 @@ var Nt = ["id"], Pt = {
1647
1692
  }, [s("path", {
1648
1693
  fill: "currentColor",
1649
1694
  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", {
1695
+ })], -1)], 32)], 32), D.value ? (T(), o("div", Gt, [s("div", Kt, [E.value ? a("", !0) : (T(), o(e, { key: 0 }, [c(P(y.value) + " result" + P(y.value === 1 ? "" : "s"), 1)], 64))]), s("div", {
1651
1696
  role: "listbox",
1652
- id: `${L(M)}-list`,
1697
+ id: `${R(M)}-list`,
1653
1698
  ref_key: "listboxRef",
1654
1699
  ref: p,
1655
1700
  "aria-label": "Search results"
1656
- }, [y.value > 0 && "items" in u.results[0] ? (w(!0), o(e, { key: 0 }, O(u.results, (n, r) => (w(), o("div", {
1701
+ }, [y.value > 0 && "items" in u.results[0] ? (T(!0), o(e, { key: 0 }, k(u.results, (n, r) => (T(), o("div", {
1657
1702
  key: n.type,
1658
1703
  class: "g-search-group",
1659
1704
  role: "group",
1660
1705
  "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", {
1706
+ }, [A(t.$slots, "group", { group: n }, () => [s("div", Yt, P(n.label), 1)]), (T(!0), o(e, null, k(n.items, (e, n) => (T(), o("div", {
1662
1707
  key: e.id,
1663
1708
  id: "g-search-option-" + e.id,
1664
1709
  class: _(["g-search-option", { "g-search-option-active": v.value[h.value] && v.value[h.value].id === e.id }]),
1665
1710
  role: "option",
1666
- onMousedown: J((t) => T(e), ["prevent"]),
1711
+ onMousedown: X((t) => w(e), ["prevent"]),
1667
1712
  "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", {
1713
+ }, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, Xt))), 128))], 8, Jt))), 128)) : y.value > 0 ? (T(!0), o(e, { key: 1 }, k(v.value, (e, n) => (T(), o("div", {
1669
1714
  key: e.id,
1670
1715
  id: "g-search-option-" + e.id,
1671
1716
  class: _(["g-search-option", { "g-search-option-active": h.value === n }]),
1672
1717
  role: "option",
1673
- onMousedown: J((t) => T(e), ["prevent"]),
1718
+ onMousedown: X((t) => w(e), ["prevent"]),
1674
1719
  "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));
1720
+ }, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, Zt))), 128)) : a("", !0)], 8, qt)])) : a("", !0)], 8, Ut));
1676
1721
  }
1677
1722
  }), $t = { class: /* @__PURE__ */ _({ "g-app-header": !0 }) }, en = { class: "g-app-header__brand" }, tn = {
1678
1723
  class: "g-app-header__brand-text",
@@ -1690,10 +1735,10 @@ var Nt = ["id"], Pt = {
1690
1735
  brand: { default: "GRAD" }
1691
1736
  },
1692
1737
  setup(e) {
1693
- return (t, n) => (w(), o("header", $t, [
1738
+ return (t, n) => (T(), o("header", $t, [
1694
1739
  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", {
1740
+ s("div", en, [A(t.$slots, "left", {}, () => [s("a", tn, P(e.brand), 1)])]),
1741
+ e.illinois ? (T(), o("div", nn, [...n[0] ||= [s("svg", {
1697
1742
  class: "g-app-header__block-i",
1698
1743
  role: "img",
1699
1744
  width: "55",
@@ -1709,9 +1754,9 @@ var Nt = ["id"], Pt = {
1709
1754
  class: "g-app-header__block-i-fill",
1710
1755
  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
1756
  })
1712
- ], -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" })])
1757
+ ], -1)]])) : A(t.$slots, "icon", { key: 1 }),
1758
+ s("div", rn, [A(t.$slots, "title")]),
1759
+ s("div", an, [A(t.$slots, "app-controls", { class: "g-app-header__app-controls" })])
1715
1760
  ]));
1716
1761
  }
1717
1762
  });
@@ -1730,8 +1775,8 @@ function ln(e = "default", t = "(max-width: 800px)") {
1730
1775
  let e = sn(r);
1731
1776
  n.set(r, {
1732
1777
  id: `g-wc-sidebar-${e}`,
1733
- open: D(!1),
1734
- isCollapsible: oe(t, { ssrWidth: 1e3 }),
1778
+ open: O(!1),
1779
+ isCollapsible: se(t, { ssrWidth: 1e3 }),
1735
1780
  toggle: () => void 0
1736
1781
  });
1737
1782
  }
@@ -1752,7 +1797,7 @@ function ln(e = "default", t = "(max-width: 800px)") {
1752
1797
  }, 5));
1753
1798
  }
1754
1799
  return S(() => {
1755
- W(i.isCollapsible, (e) => {
1800
+ K(i.isCollapsible, (e) => {
1756
1801
  e ? (document.addEventListener("mousedown", a), document.addEventListener("focusin", o)) : (document.removeEventListener("mousedown", a), document.removeEventListener("focusin", o));
1757
1802
  }, { immediate: !0 });
1758
1803
  }), x(() => {
@@ -1773,17 +1818,17 @@ var un = ["id"], dn = /* @__PURE__ */ u({
1773
1818
  sidebarKey: { default: "default" }
1774
1819
  },
1775
1820
  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();
1821
+ let t = e, n = p("sidebar", () => void 0, !0) ?? (fe() ? 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 = B();
1777
1822
  function l(e) {
1778
1823
  e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
1779
1824
  }
1780
- return (t, r) => (w(), o("div", {
1825
+ return (t, r) => (T(), o("div", {
1781
1826
  ref: "sidebar-ref",
1782
- id: `${L(n)?.id ?? L(c)}-sidebar`,
1827
+ id: `${R(n)?.id ?? R(c)}-sidebar`,
1783
1828
  class: _(["g-sidebar", [`g-sidebar__${e.theme}`, {
1784
- "g-sidebar--collapsible": L(n)?.isCollapsible?.value,
1785
- "g-sidebar--closed": !L(n)?.open?.value && L(n)?.isCollapsible?.value,
1786
- "g-sidebar--open": L(n)?.open?.value && L(n)?.isCollapsible?.value
1829
+ "g-sidebar--collapsible": R(n)?.isCollapsible?.value,
1830
+ "g-sidebar--closed": !R(n)?.open?.value && R(n)?.isCollapsible?.value,
1831
+ "g-sidebar--open": R(n)?.open?.value && R(n)?.isCollapsible?.value
1787
1832
  }]]),
1788
1833
  style: y({
1789
1834
  backgroundImage: i.value,
@@ -1793,7 +1838,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
1793
1838
  width: "var(--g-sidebar-width)"
1794
1839
  }),
1795
1840
  onKeydown: l
1796
- }, [k(t.$slots, "default")], 46, un));
1841
+ }, [A(t.$slots, "default")], 46, un));
1797
1842
  }
1798
1843
  }), fn = ["id"], pn = { class: "g-sidebar-menu__list" }, mn = [
1799
1844
  "href",
@@ -1823,9 +1868,9 @@ var un = ["id"], dn = /* @__PURE__ */ u({
1823
1868
  }),
1824
1869
  emits: ["update:modelValue"],
1825
1870
  setup(t) {
1826
- let n = t, l = B(t, "modelValue"), u = r(() => n.spy && l.value ? "#" + l.value : null), f = H("content");
1871
+ let n = t, l = V(t, "modelValue"), u = r(() => n.spy && l.value ? "#" + l.value : null), f = U("content");
1827
1872
  S(() => {
1828
- W(l, () => {
1873
+ K(l, () => {
1829
1874
  g(() => {
1830
1875
  let e = f.value?.querySelector(".g-sidebar-menu__is-active");
1831
1876
  e && e.scrollIntoView({ block: "nearest" });
@@ -1838,56 +1883,56 @@ var un = ["id"], dn = /* @__PURE__ */ u({
1838
1883
  let n = t.href.slice(1), r = document.getElementById(n)?.querySelector("h2, h3, h4, h5");
1839
1884
  r && (e.preventDefault(), r.setAttribute("tabindex", "-1"), r.focus(), r.scrollIntoView({ block: "start" }), history.replaceState(null, "", t.href));
1840
1885
  }
1841
- let y = z();
1842
- return (r, l) => (w(), o("nav", h({ class: ["g-sidebar-menu", [`g-sidebar-menu__${n.theme}`, { "g-sidebar-menu--compact": n.compact }]] }, {
1843
- "aria-labelledby": t.heading ? L(y) : void 0,
1886
+ let y = B();
1887
+ return (r, l) => (T(), o("nav", h({ class: ["g-sidebar-menu", [`g-sidebar-menu__${n.theme}`, { "g-sidebar-menu--compact": n.compact }]] }, {
1888
+ "aria-labelledby": t.heading ? R(y) : void 0,
1844
1889
  "aria-label": t.heading ? void 0 : "Sidebar Menu"
1845
1890
  }), [
1846
- t.heading ? (w(), o("h2", {
1891
+ t.heading ? (T(), o("h2", {
1847
1892
  key: 0,
1848
- id: L(y),
1893
+ id: R(y),
1849
1894
  class: "g-sidebar-menu__title"
1850
- }, N(t.heading), 9, fn)) : a("", !0),
1895
+ }, P(t.heading), 9, fn)) : a("", !0),
1851
1896
  l[0] ||= s("div", { class: "g-sidebar-menu__divider" }, null, -1),
1852
1897
  s("div", {
1853
1898
  class: "g-sidebar-menu__content",
1854
1899
  ref_key: "content",
1855
1900
  ref: f
1856
- }, [s("ul", pn, [(w(!0), o(e, null, O(t.items, (e) => (w(), o("li", {
1901
+ }, [s("ul", pn, [(T(!0), o(e, null, k(t.items, (e) => (T(), o("li", {
1857
1902
  key: e.href || e.to,
1858
1903
  class: "g-sidebar-menu__item",
1859
1904
  ref_for: !0,
1860
1905
  ref: "listItems"
1861
- }, [e.to && m.value ? (w(), i(A(m.value), {
1906
+ }, [e.to && m.value ? (T(), i(j(m.value), {
1862
1907
  key: 0,
1863
1908
  class: "g-sidebar-menu__link",
1864
1909
  to: e.to
1865
1910
  }, {
1866
- default: K(() => [c(N(e.label), 1)]),
1911
+ default: J(() => [c(P(e.label), 1)]),
1867
1912
  _: 2
1868
- }, 1032, ["to"])) : (w(), o("a", {
1913
+ }, 1032, ["to"])) : (T(), o("a", {
1869
1914
  key: 1,
1870
1915
  class: _(["g-sidebar-menu__link", { "g-sidebar-menu__is-active": u.value === (e.href || "") }]),
1871
1916
  href: e.href || e.to || "#",
1872
1917
  "aria-current": u.value === (e.href || "") ? "location" : void 0,
1873
1918
  onClick: (t) => v(t, e)
1874
- }, N(e.label), 11, mn))]))), 128))])], 512)
1919
+ }, P(e.label), 11, mn))]))), 128))])], 512)
1875
1920
  ], 16));
1876
1921
  }
1877
1922
  }), gn = {
1878
1923
  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 = () => {
1924
+ let n = O(null), r = O(!1), i = O(!1), a = O(t.value), o = null, s = !1, c = st(e), l = () => {
1880
1925
  n.value || (n.value = ct(a.value, c), lt(n.value), o = new ResizeObserver(() => {
1881
1926
  n.value && (r.value || i.value) && ut(e, n.value);
1882
1927
  }), o.observe(n.value));
1883
1928
  };
1884
- G(() => {
1929
+ q(() => {
1885
1930
  n.value && (n.value.textContent = a.value);
1886
1931
  });
1887
1932
  let u = () => {
1888
1933
  n.value && (r.value || i.value) && ut(e, n.value);
1889
1934
  };
1890
- G(() => {
1935
+ q(() => {
1891
1936
  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(() => {
1892
1937
  e.dispatchEvent(new CustomEvent("tooltip-hide"));
1893
1938
  }, 150)));
@@ -1934,12 +1979,12 @@ var un = ["id"], dn = /* @__PURE__ */ u({
1934
1979
  copyLabel: {}
1935
1980
  },
1936
1981
  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 = () => {
1982
+ let n = t, r = gn, { text: i, copy: l, copied: u, isSupported: d } = re({ source: n.text }), f = O(n.copyLabel ?? "Copy to clipboard"), p = () => {
1938
1983
  d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
1939
1984
  }, m = () => {
1940
1985
  f.value = n.copyLabel ?? "Copy to clipboard";
1941
1986
  };
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", {
1987
+ return (i, l) => (T(), o("div", _n, [t.hideText ? a("", !0) : (T(), o(e, { key: 0 }, [c(P(n.text), 1)], 64)), Y((T(), o("button", {
1943
1988
  type: "button",
1944
1989
  "aria-label": "Copy",
1945
1990
  onClick: p,
@@ -1954,7 +1999,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
1954
1999
  }, [s("path", {
1955
2000
  fill: "currentColor",
1956
2001
  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
- })], -1)]], 32)), [[L(r), f.value]])]));
2002
+ })], -1)]], 32)), [[R(r), f.value]])]));
1958
2003
  }
1959
2004
  }), yn = { class: "g-history-scroller-wrapper" }, bn = {
1960
2005
  key: 0,
@@ -1971,7 +2016,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
1971
2016
  entries: { default: () => [] }
1972
2017
  },
1973
2018
  setup(t) {
1974
- let n = t, i = D(null), c = D(null), u = D(!0), d = D(!0);
2019
+ let n = t, i = O(null), c = O(null), u = O(!0), d = O(!0);
1975
2020
  async function f({ focusLast: e = !1 } = {}) {
1976
2021
  if (i.value && (i.value.scrollTop = i.value.scrollHeight), e && c.value) {
1977
2022
  let e = c.value.querySelectorAll(".g-history-entry");
@@ -1988,17 +2033,17 @@ var un = ["id"], dn = /* @__PURE__ */ u({
1988
2033
  }
1989
2034
  S(() => {
1990
2035
  g(f);
1991
- }), ce(i, () => {
2036
+ }), le(i, () => {
1992
2037
  u.value && f();
1993
- }), ce(c, () => {
2038
+ }), le(c, () => {
1994
2039
  u.value && f();
1995
- }), W(() => n.entries, async () => {
2040
+ }), K(() => n.entries, async () => {
1996
2041
  u.value && (await g(), f());
1997
2042
  });
1998
2043
  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)),
2044
+ return (n, r) => (T(), o("div", yn, [
2045
+ d.value ? a("", !0) : (T(), o("div", bn)),
2046
+ u.value ? a("", !0) : (T(), o("div", xn)),
2002
2047
  s("div", {
2003
2048
  ref_key: "scrollerRef",
2004
2049
  ref: i,
@@ -2013,7 +2058,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2013
2058
  onClick: r[0] ||= () => f({ focusLast: !0 }),
2014
2059
  "aria-label": "Jump to Latest"
2015
2060
  }, {
2016
- default: K(() => [...r[1] ||= [s("svg", {
2061
+ default: J(() => [...r[1] ||= [s("svg", {
2017
2062
  "aria-hidden": "true",
2018
2063
  xmlns: "http://www.w3.org/2000/svg",
2019
2064
  viewBox: "0 0 640 640",
@@ -2028,12 +2073,12 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2028
2073
  ref_key: "contentRef",
2029
2074
  ref: c,
2030
2075
  class: "g-history-list"
2031
- }, [(w(!0), o(e, null, O(m.value, (e) => (w(), o("div", {
2076
+ }, [(T(!0), o(e, null, k(m.value, (e) => (T(), o("div", {
2032
2077
  role: "listitem",
2033
2078
  key: e.id,
2034
2079
  class: "g-history-entry",
2035
2080
  tabindex: "-1"
2036
- }, [k(n.$slots, "default", { entry: e })]))), 128))], 512)], 40, Sn)
2081
+ }, [A(n.$slots, "default", { entry: e })]))), 128))], 512)], 40, Sn)
2037
2082
  ]));
2038
2083
  }
2039
2084
  }), wn = { class: "g-three-way-toggle-wrapper" }, Tn = { class: "g-three-way-toggle-control" }, En = ["id"], Dn = [
@@ -2073,7 +2118,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2073
2118
  }),
2074
2119
  emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
2075
2120
  setup(e, { emit: t }) {
2076
- let n = e, i = B(e, "modelValue"), l = t;
2121
+ let n = e, i = V(e, "modelValue"), l = t;
2077
2122
  function u(e) {
2078
2123
  let t = i.value;
2079
2124
  i.value = e, e !== t && l("change", {
@@ -2087,34 +2132,34 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2087
2132
  function f(e) {
2088
2133
  n.disabled || i.value === e && u(null);
2089
2134
  }
2090
- let p = z(), m = r(() => `g-three-way-toggle-${p}`), h = z(), g = z(), v = z(), y = r(() => i.value === !1 ? "g-left" : i.value === !0 ? "g-right" : "g-center");
2135
+ let p = B(), m = r(() => `g-three-way-toggle-${p}`), h = B(), g = B(), v = B(), y = r(() => i.value === !1 ? "g-left" : i.value === !0 ? "g-right" : "g-center");
2091
2136
  function b(e) {
2092
2137
  n.disabled || (e.key === "n" || e.key === "N" ? (u(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y") && (u(!0), e.preventDefault()));
2093
2138
  }
2094
- return (t, n) => (w(), o("div", wn, [s("div", Tn, [s("span", {
2139
+ return (t, n) => (T(), o("div", wn, [s("div", Tn, [s("span", {
2095
2140
  class: "g-label",
2096
- id: L(p)
2097
- }, [k(t.$slots, "label", {}, () => [c(N(e.label), 1)])], 8, En), s("fieldset", {
2141
+ id: R(p)
2142
+ }, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, En), s("fieldset", {
2098
2143
  class: _(["g-three-way-toggle", { "g-has-error": e.error }]),
2099
2144
  role: "radiogroup",
2100
- "aria-labelledby": L(p),
2145
+ "aria-labelledby": R(p),
2101
2146
  "aria-describedby": e.describedby,
2102
2147
  disabled: e.disabled,
2103
2148
  "aria-invalid": e.error ? "true" : void 0,
2104
- "aria-errormessage": e.error ? L(p) + "-error" : void 0
2149
+ "aria-errormessage": e.error ? R(p) + "-error" : void 0
2105
2150
  }, [s("div", { class: _(["g-toggle-track", [y.value, { "g-disabled": e.disabled }]]) }, [
2106
2151
  s("span", {
2107
2152
  class: _(["g-toggle-thumb", y.value]),
2108
2153
  "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),
2154
+ }, [i.value === !1 ? (T(), o("span", On, "NO")) : i.value === !0 ? (T(), o("span", kn, "YES")) : (T(), o("span", An))], 2),
2110
2155
  s("label", {
2111
- for: L(h),
2156
+ for: R(h),
2112
2157
  class: "g-toggle-option g-left",
2113
2158
  onClick: n[1] ||= (e) => f(!1),
2114
2159
  onKeydown: b
2115
2160
  }, [s("input", {
2116
2161
  type: "radio",
2117
- id: L(h),
2162
+ id: R(h),
2118
2163
  name: m.value,
2119
2164
  checked: i.value === !1,
2120
2165
  value: "false",
@@ -2122,38 +2167,38 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2122
2167
  onChange: n[0] ||= (e) => d(!1)
2123
2168
  }, null, 40, Mn), n[5] ||= s("span", { class: "ilw-sr-only" }, "No", -1)], 40, jn),
2124
2169
  s("label", {
2125
- for: L(g),
2170
+ for: R(g),
2126
2171
  class: "g-toggle-option g-center",
2127
2172
  onKeydown: b
2128
2173
  }, [s("input", {
2129
2174
  type: "radio",
2130
- id: L(g),
2175
+ id: R(g),
2131
2176
  name: m.value,
2132
2177
  checked: i.value === null,
2133
2178
  disabled: e.disabled,
2134
2179
  onChange: n[2] ||= (e) => d(null)
2135
2180
  }, null, 40, Pn), n[6] ||= s("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, Nn),
2136
2181
  s("label", {
2137
- for: L(v),
2182
+ for: R(v),
2138
2183
  class: "g-toggle-option g-right",
2139
2184
  onClick: n[4] ||= (e) => f(!0),
2140
2185
  onKeydown: b
2141
2186
  }, [s("input", {
2142
2187
  type: "radio",
2143
- id: L(v),
2188
+ id: R(v),
2144
2189
  name: m.value,
2145
2190
  value: "true",
2146
2191
  checked: i.value === !0,
2147
2192
  disabled: e.disabled,
2148
2193
  onChange: n[3] ||= (e) => d(!0)
2149
2194
  }, null, 40, In), n[7] ||= s("span", { class: "ilw-sr-only" }, "Yes", -1)], 40, Fn)
2150
- ], 2)], 10, Dn)]), e.error ? (w(), o("div", {
2195
+ ], 2)], 10, Dn)]), e.error ? (T(), o("div", {
2151
2196
  key: 0,
2152
- id: `${L(p)}-error`,
2197
+ id: `${R(p)}-error`,
2153
2198
  class: "g-form-error",
2154
2199
  role: "alert",
2155
2200
  "aria-atomic": "true"
2156
- }, N(e.error), 9, Ln)) : a("", !0)]));
2201
+ }, P(e.error), 9, Ln)) : a("", !0)]));
2157
2202
  }
2158
2203
  }), zn = {
2159
2204
  ref: "tableBodyRef",
@@ -2261,13 +2306,13 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2261
2306
  function C(e, t) {
2262
2307
  if (l.changeTracker) return l.changeTracker.getError(e.key, t.key);
2263
2308
  }
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", {
2309
+ return (n, r) => (T(), o("tbody", zn, [(T(!0), o(e, null, k(t.data, (n, l) => (T(), o(e, { key: n.key }, [t.groupBy && (l === 0 || n[t.groupBy] !== t.data[l - 1][t.groupBy]) ? (T(), o("tr", {
2265
2310
  key: 0,
2266
2311
  "aria-rowindex": t.startIndex + l + 2
2267
- }, [t.bulkSelectionEnabled ? (w(), o("td", Vn)) : a("", !0), s("td", {
2312
+ }, [t.bulkSelectionEnabled ? (T(), o("td", Vn)) : a("", !0), s("td", {
2268
2313
  colspan: t.columns.length,
2269
2314
  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", {
2315
+ }, [t.groupRender ? (T(), i(j(t.groupRender(n[t.groupBy], n)), { key: 0 })) : (T(), o(e, { key: 1 }, [c(P(n[t.groupBy]), 1)], 64))], 8, Hn)], 8, Bn)) : a("", !0), s("tr", {
2271
2316
  class: _([
2272
2317
  "efficient-table-row",
2273
2318
  {
@@ -2279,10 +2324,10 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2279
2324
  "aria-rowindex": t.startIndex + l + 2,
2280
2325
  onMousedown: (e) => d(e, n.key),
2281
2326
  onClick: (e) => f(e, n.key)
2282
- }, [t.bulkSelectionEnabled ? (w(), o("td", {
2327
+ }, [t.bulkSelectionEnabled ? (T(), o("td", {
2283
2328
  key: 0,
2284
2329
  class: "td-checkbox",
2285
- onClick: r[0] ||= J(() => {}, ["stop"])
2330
+ onClick: r[0] ||= X(() => {}, ["stop"])
2286
2331
  }, [s("input", {
2287
2332
  type: "checkbox",
2288
2333
  checked: p(n.key),
@@ -2290,7 +2335,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2290
2335
  "aria-label": `Select row ${n.key}`,
2291
2336
  name: `row-${n.key}-checkbox`,
2292
2337
  class: "g-bulk-select-checkbox"
2293
- }, null, 8, Wn)])) : a("", !0), (w(!0), o(e, null, O(t.columns, (r) => (w(), o("td", {
2338
+ }, null, 8, Wn)])) : a("", !0), (T(!0), o(e, null, k(t.columns, (r) => (T(), o("td", {
2294
2339
  key: r.key,
2295
2340
  id: b(r) ? `${t.tableId}-td-${n.key}-${String(r.key)}` : void 0,
2296
2341
  class: _([
@@ -2299,9 +2344,9 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2299
2344
  S(n, r) ? "g-cell-error" : "",
2300
2345
  typeof r.tdClass == "function" ? r.tdClass(n) : r.tdClass
2301
2346
  ])
2302
- }, [r.editable ? (w(), o("div", Kn, [
2303
- r.editable.prefix ? (w(), o("span", qn, N(r.editable.prefix), 1)) : a("", !0),
2304
- r.editable.type === "select" ? (w(), o("select", {
2347
+ }, [r.editable ? (T(), o("div", Kn, [
2348
+ r.editable.prefix ? (T(), o("span", qn, P(r.editable.prefix), 1)) : a("", !0),
2349
+ r.editable.type === "select" ? (T(), o("select", {
2305
2350
  key: 1,
2306
2351
  value: n[r.key],
2307
2352
  onChange: (e) => g(e, n, r),
@@ -2309,10 +2354,10 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2309
2354
  "aria-invalid": S(n, r),
2310
2355
  name: `row-${n.key}-${String(r.key)}-select`,
2311
2356
  class: "editable-input editable-select"
2312
- }, [(w(!0), o(e, null, O(r.editable.options, (e) => (w(), o("option", {
2357
+ }, [(T(!0), o(e, null, k(r.editable.options, (e) => (T(), o("option", {
2313
2358
  key: e.value,
2314
2359
  value: e.value
2315
- }, N(e.label), 9, Yn))), 128))], 40, Jn)) : (w(), o("input", h({
2360
+ }, P(e.label), 9, Yn))), 128))], 40, Jn)) : (T(), o("input", h({
2316
2361
  key: 2,
2317
2362
  value: n[r.key]
2318
2363
  }, { ref_for: !0 }, r.editable.inputAttributes, {
@@ -2327,13 +2372,13 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2327
2372
  paddingRight: r.editable.suffix ? "2rem" : void 0
2328
2373
  }
2329
2374
  }), null, 16, Xn)),
2330
- r.editable.suffix ? (w(), o("span", Zn, N(r.editable.suffix), 1)) : a("", !0)
2331
- ])) : 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", {
2375
+ r.editable.suffix ? (T(), o("span", Zn, P(r.editable.suffix), 1)) : a("", !0)
2376
+ ])) : r.display ? (T(), i(j(r.display(n)), { key: 1 })) : (T(), o(e, { key: 2 }, [c(P(n[r.key]), 1)], 64)), S(n, r) ? (T(), o("div", {
2332
2377
  key: 3,
2333
2378
  role: "alert",
2334
2379
  class: "g-cell-error-message",
2335
2380
  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));
2381
+ }, P(C(n, r)), 9, Qn)) : a("", !0)], 10, Gn))), 128))], 42, Un)], 64))), 128))], 512));
2337
2382
  }
2338
2383
  }), er = ["id", "for"], tr = {
2339
2384
  key: 0,
@@ -2397,39 +2442,39 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2397
2442
  }),
2398
2443
  emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
2399
2444
  setup(t, { emit: n }) {
2400
- 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 } = $({
2445
+ let i = t, u = n, d = V(t, "modelValue"), f = B(), p = O(null), m = O(null), v = O(null), y = O(!1), b = O(0), x = O(""), S = O(!1), { displayErrors: C, hasErrors: w } = $({
2401
2446
  name: i.name,
2402
2447
  value: d,
2403
- errors: F(i, "errors"),
2448
+ errors: I(i, "errors"),
2404
2449
  formKey: i.formKey
2405
- }), { menuPlacement: E, menuStyle: k, isTop: A, scrollOptionIntoView: j } = Mt({
2450
+ }), { menuPlacement: E, menuStyle: D, isTop: A, scrollOptionIntoView: j } = Mt({
2406
2451
  open: y,
2407
2452
  anchorRef: m,
2408
2453
  listboxRef: v,
2409
2454
  baseId: f,
2410
2455
  activeIndex: b
2411
- }), M = r(() => jt(i.options)), P = r(() => {
2456
+ }), M = r(() => jt(i.options)), N = r(() => {
2412
2457
  if (!x.value) return M.value;
2413
2458
  let e = x.value.toLowerCase();
2414
2459
  return M.value.filter((t) => t.label.toLowerCase().includes(e));
2415
2460
  });
2416
- function I(e) {
2461
+ function F(e) {
2417
2462
  return d.value.includes(e);
2418
2463
  }
2419
- function R(e) {
2464
+ function L(e) {
2420
2465
  let t = M.value.find((t) => t.value === e);
2421
2466
  return t ? t.label : String(e);
2422
2467
  }
2423
- function V() {
2468
+ function z() {
2424
2469
  i.disabled || (y.value = !0, b.value = 0);
2425
2470
  }
2426
2471
  function H() {
2427
2472
  y.value = !1, x.value = "";
2428
2473
  }
2429
2474
  function U(e) {
2430
- let t = P.value[e];
2475
+ let t = N.value[e];
2431
2476
  if (!t) return;
2432
- let n = d.value, r = I(t.value) ? n.filter((e) => e !== t.value) : [...n, t.value];
2477
+ let n = d.value, r = F(t.value) ? n.filter((e) => e !== t.value) : [...n, t.value];
2433
2478
  d.value = r, u("change", r), g(() => p.value?.focus());
2434
2479
  }
2435
2480
  function W(e) {
@@ -2437,16 +2482,16 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2437
2482
  let t = d.value.filter((t) => t !== e);
2438
2483
  d.value = t, u("change", t);
2439
2484
  }
2440
- function G() {
2441
- i.disabled || (p.value?.focus(), y.value || V());
2485
+ function K() {
2486
+ i.disabled || (p.value?.focus(), y.value || z());
2442
2487
  }
2443
- function K(e) {
2444
- x.value = e.target.value, b.value = 0, y.value || V();
2488
+ function q(e) {
2489
+ x.value = e.target.value, b.value = 0, y.value || z();
2445
2490
  }
2446
- function Y() {
2447
- i.disabled || y.value || V();
2491
+ function J() {
2492
+ i.disabled || y.value || z();
2448
2493
  }
2449
- function te(e) {
2494
+ function ee(e) {
2450
2495
  if (S.value) {
2451
2496
  S.value = !1;
2452
2497
  return;
@@ -2454,21 +2499,21 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2454
2499
  let t = e.relatedTarget;
2455
2500
  t && v.value?.contains(t) || t && m.value?.contains(t) || H();
2456
2501
  }
2457
- function X(e) {
2502
+ function Z(e) {
2458
2503
  e.preventDefault();
2459
2504
  }
2460
- function Z() {
2505
+ function te() {
2461
2506
  S.value = !0;
2462
2507
  }
2463
2508
  function ne(e) {
2464
2509
  if (i.disabled) return;
2465
- let t = P.value.length - 1;
2510
+ let t = N.value.length - 1;
2466
2511
  switch (e.key) {
2467
2512
  case "ArrowDown":
2468
- e.preventDefault(), y.value ? (b.value = Math.min(t, b.value + 1), j()) : V();
2513
+ e.preventDefault(), y.value ? (b.value = Math.min(t, b.value + 1), j()) : z();
2469
2514
  break;
2470
2515
  case "ArrowUp":
2471
- e.preventDefault(), y.value ? (b.value = Math.max(0, b.value - 1), j()) : V();
2516
+ e.preventDefault(), y.value ? (b.value = Math.max(0, b.value - 1), j()) : z();
2472
2517
  break;
2473
2518
  case "Home":
2474
2519
  e.preventDefault(), b.value = 0, j();
@@ -2477,10 +2522,10 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2477
2522
  e.preventDefault(), b.value = t, j();
2478
2523
  break;
2479
2524
  case "Enter":
2480
- e.preventDefault(), y.value && P.value.length > 0 ? U(b.value) : y.value || V();
2525
+ e.preventDefault(), y.value && N.value.length > 0 ? U(b.value) : y.value || z();
2481
2526
  break;
2482
2527
  case " ":
2483
- y.value && !x.value && (e.preventDefault(), P.value.length > 0 && U(b.value));
2528
+ y.value && !x.value && (e.preventDefault(), N.value.length > 0 && U(b.value));
2484
2529
  break;
2485
2530
  case "Escape":
2486
2531
  A.value && (e.preventDefault(), setTimeout(() => H(), 0));
@@ -2492,42 +2537,42 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2492
2537
  }
2493
2538
  let re = r(() => `${f}-input`), ie = r(() => `${f}-label`), ae = r(() => `${f}-instructions`), oe = r(() => `error-message-${f}`), se = r(() => {
2494
2539
  let e = [];
2495
- return i.instructions && e.push(ae.value), T.value && e.push(oe.value), e.length > 0 ? e.join(" ") : void 0;
2540
+ return i.instructions && e.push(ae.value), w.value && e.push(oe.value), e.length > 0 ? e.join(" ") : void 0;
2496
2541
  });
2497
- return (n, r) => (w(), o("div", { class: _(["g-multiselect-root", {
2542
+ return (n, r) => (T(), o("div", { class: _(["g-multiselect-root", {
2498
2543
  "g-multiselect-open": y.value,
2499
- "g-multiselect-has-error": L(T)
2544
+ "g-multiselect-has-error": R(w)
2500
2545
  }]) }, [
2501
- t.hiddenLabel ? a("", !0) : (w(), o("label", {
2546
+ t.hiddenLabel ? a("", !0) : (T(), o("label", {
2502
2547
  key: 0,
2503
2548
  id: ie.value,
2504
2549
  for: re.value,
2505
2550
  class: "g-multiselect-label"
2506
- }, [c(N(t.label), 1), t.required ? (w(), o("span", tr, " *")) : a("", !0)], 8, er)),
2507
- t.instructions ? (w(), o("div", {
2551
+ }, [c(P(t.label), 1), t.required ? (T(), o("span", tr, " *")) : a("", !0)], 8, er)),
2552
+ t.instructions ? (T(), o("div", {
2508
2553
  key: 1,
2509
2554
  id: ae.value,
2510
2555
  class: "g-multiselect-instructions"
2511
- }, N(t.instructions), 9, nr)) : a("", !0),
2556
+ }, P(t.instructions), 9, nr)) : a("", !0),
2512
2557
  s("div", {
2513
2558
  ref_key: "controlRef",
2514
2559
  ref: m,
2515
2560
  class: _(["g-multiselect-control", { "g-multiselect-control--disabled": t.disabled }]),
2516
- onClick: G
2561
+ onClick: K
2517
2562
  }, [
2518
2563
  s("ul", {
2519
2564
  class: "g-multiselect-chips",
2520
2565
  "aria-labelledby": ie.value
2521
- }, [(w(!0), o(e, null, O(d.value, (e) => (w(), o("li", {
2566
+ }, [(T(!0), o(e, null, k(d.value, (e) => (T(), o("li", {
2522
2567
  key: e,
2523
2568
  class: "g-multiselect-chip"
2524
- }, [s("span", ir, N(R(e)), 1), s("button", {
2569
+ }, [s("span", ir, P(L(e)), 1), s("button", {
2525
2570
  type: "button",
2526
2571
  class: "g-multiselect-chip-remove",
2527
- "aria-label": `Remove ${R(e)}`,
2572
+ "aria-label": `Remove ${L(e)}`,
2528
2573
  disabled: t.disabled,
2529
- onMousedown: Z,
2530
- onClick: J((t) => W(e), ["stop"])
2574
+ onMousedown: te,
2575
+ onClick: X((t) => W(e), ["stop"])
2531
2576
  }, [...r[0] ||= [s("svg", {
2532
2577
  xmlns: "http://www.w3.org/2000/svg",
2533
2578
  viewBox: "0 0 51.26 51.26",
@@ -2551,15 +2596,15 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2551
2596
  "aria-autocomplete": "list",
2552
2597
  "aria-expanded": y.value ? "true" : "false",
2553
2598
  "aria-haspopup": "listbox",
2554
- "aria-controls": L(f) + "-listbox",
2555
- "aria-activedescendant": y.value && P.value.length > 0 ? L(f) + "-option-" + b.value : void 0
2599
+ "aria-controls": R(f) + "-listbox",
2600
+ "aria-activedescendant": y.value && N.value.length > 0 ? R(f) + "-option-" + b.value : void 0
2556
2601
  }, t.hiddenLabel ? { "aria-label": t.label } : void 0, {
2557
2602
  "aria-describedby": se.value,
2558
2603
  "aria-required": t.required ? "true" : void 0,
2559
- onInput: K,
2604
+ onInput: q,
2560
2605
  onKeydown: ne,
2561
- onFocus: Y,
2562
- onBlur: te
2606
+ onFocus: J,
2607
+ onBlur: ee
2563
2608
  }), null, 16, or),
2564
2609
  r[2] ||= s("svg", {
2565
2610
  class: "g-multiselect-caret",
@@ -2571,31 +2616,31 @@ var un = ["id"], dn = /* @__PURE__ */ u({
2571
2616
  fill: "currentColor",
2572
2617
  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"
2573
2618
  })], -1),
2574
- q(s("div", h({
2619
+ Y(s("div", h({
2575
2620
  ref_key: "listboxRef",
2576
2621
  ref: v,
2577
- id: L(f) + "-listbox",
2622
+ id: R(f) + "-listbox",
2578
2623
  role: "listbox",
2579
2624
  "aria-multiselectable": "true"
2580
2625
  }, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": ie.value }, {
2581
- class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": L(E) === "above" }],
2582
- style: L(k),
2626
+ class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": R(E) === "above" }],
2627
+ style: R(D),
2583
2628
  tabindex: "-1"
2584
- }), [P.value.length > 0 ? (w(!0), o(e, { key: 0 }, O(P.value, (e, t) => (w(), o("div", {
2629
+ }), [N.value.length > 0 ? (T(!0), o(e, { key: 0 }, k(N.value, (e, t) => (T(), o("div", {
2585
2630
  key: e.value,
2586
- id: L(f) + "-option-" + t,
2631
+ id: R(f) + "-option-" + t,
2587
2632
  role: "option",
2588
2633
  class: _(["g-multiselect-option", {
2589
2634
  "g-multiselect-option--active": t === b.value,
2590
- "g-multiselect-option--selected": I(e.value)
2635
+ "g-multiselect-option--selected": F(e.value)
2591
2636
  }]),
2592
- "aria-selected": I(e.value) ? "true" : "false",
2593
- onMousedown: X,
2637
+ "aria-selected": F(e.value) ? "true" : "false",
2638
+ onMousedown: Z,
2594
2639
  onClick: (e) => U(t)
2595
- }, [s("span", lr, [I(e.value) ? (w(), o("svg", ur, [...r[1] ||= [s("path", { d: "M530.8 134.1C545.1 144.5 548.3 164.5 537.9 178.8L281.9 530.8C276.4 538.4 267.9 543.1 258.5 543.9C249.1 544.7 240 541.2 233.4 534.6L105.4 406.6C92.9 394.1 92.9 373.8 105.4 361.3C117.9 348.8 138.2 348.8 150.7 361.3L252.2 462.8L486.2 141.1C496.6 126.8 516.6 123.6 530.9 134z" }, null, -1)]])) : a("", !0)]), c(" " + N(e.label), 1)], 42, cr))), 128)) : (w(), o("div", dr, " No results found. "))], 16, sr), [[ee, y.value]])
2640
+ }, [s("span", lr, [F(e.value) ? (T(), o("svg", ur, [...r[1] ||= [s("path", { d: "M530.8 134.1C545.1 144.5 548.3 164.5 537.9 178.8L281.9 530.8C276.4 538.4 267.9 543.1 258.5 543.9C249.1 544.7 240 541.2 233.4 534.6L105.4 406.6C92.9 394.1 92.9 373.8 105.4 361.3C117.9 348.8 138.2 348.8 150.7 361.3L252.2 462.8L486.2 141.1C496.6 126.8 516.6 123.6 530.9 134z" }, null, -1)]])) : a("", !0)]), c(" " + P(e.label), 1)], 42, cr))), 128)) : (T(), o("div", dr, " No results found. "))], 16, sr), [[G, y.value]])
2596
2641
  ], 2),
2597
2642
  l(je, {
2598
- errors: L(C),
2643
+ errors: R(C),
2599
2644
  id: oe.value
2600
2645
  }, null, 8, ["errors", "id"])
2601
2646
  ], 2));
@@ -2614,7 +2659,7 @@ function hr(e) {
2614
2659
  }
2615
2660
  function gr(e) {
2616
2661
  let t = {};
2617
- 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;
2662
+ for (let [n, r] of Object.entries(F(e))) Array.isArray(r) ? r.length > 0 && (t[n] = r) : r === !0 ? t[n] = "true" : t[n] = r || void 0;
2618
2663
  return t;
2619
2664
  }
2620
2665
  function _r(e) {
@@ -2625,10 +2670,10 @@ function _r(e) {
2625
2670
  }), t;
2626
2671
  }
2627
2672
  function vr(e, t = {}) {
2628
- let n = E(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), i = t.syncWith;
2673
+ let n = D(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), i = t.syncWith;
2629
2674
  if (i) {
2630
2675
  if (i.value) {
2631
- let t = I(i);
2676
+ let t = L(i);
2632
2677
  Object.keys(e).forEach((e) => {
2633
2678
  if (t[e] !== void 0) {
2634
2679
  let r = t[e];
@@ -2636,7 +2681,7 @@ function vr(e, t = {}) {
2636
2681
  }
2637
2682
  });
2638
2683
  }
2639
- W(n, (e) => {
2684
+ K(n, (e) => {
2640
2685
  i.value = _r(e);
2641
2686
  }, { deep: !0 });
2642
2687
  }
@@ -2738,13 +2783,13 @@ var yr = { class: "g-table-outer-wrap" }, br = {
2738
2783
  "update:selectedRows"
2739
2784
  ]),
2740
2785
  setup(t, { emit: n }) {
2741
- let u = B(t, "sortField"), d = B(t, "sortOrder"), f = B(t, "filter"), p = B(t, "selectedRows"), m = t, h = n;
2786
+ let u = V(t, "sortField"), d = V(t, "sortOrder"), f = V(t, "filter"), p = V(t, "selectedRows"), m = t, h = n;
2742
2787
  function g(e) {
2743
2788
  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));
2744
2789
  }
2745
2790
  let v = m.filtering;
2746
2791
  v ||= vr({});
2747
- 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);
2792
+ let { filters: b, filteredColumns: x, isFiltered: C, clearFilters: w } = v, E = r(() => m.data.map((e) => e.key)), D = r(() => p.value.filter((e) => E.value.includes(e))), j = r(() => !m.bulkSelectionEnabled || m.data.length === 0 ? !1 : D.value.length === E.value.length), M = r(() => !m.bulkSelectionEnabled || m.data.length === 0 ? !1 : D.value.length > 0 && D.value.length < E.value.length), N = O(null);
2748
2793
  function I() {
2749
2794
  if (j.value) p.value = p.value.filter((e) => !E.value.includes(e));
2750
2795
  else {
@@ -2752,24 +2797,24 @@ var yr = { class: "g-table-outer-wrap" }, br = {
2752
2797
  E.value.forEach((t) => e.add(t)), p.value = Array.from(e);
2753
2798
  }
2754
2799
  }
2755
- function R(e, t = !1) {
2756
- if (t && F.value) {
2757
- let t = E.value.indexOf(F.value), n = E.value.indexOf(e);
2800
+ function L(e, t = !1) {
2801
+ if (t && N.value) {
2802
+ let t = E.value.indexOf(N.value), n = E.value.indexOf(e);
2758
2803
  if (t !== -1 && n !== -1) {
2759
2804
  let e = Math.min(t, n), r = Math.max(t, n), i = E.value.slice(e, r + 1), a = new Set(p.value);
2760
2805
  i.forEach((e) => a.add(e)), p.value = Array.from(a);
2761
2806
  }
2762
2807
  } else p.value.includes(e) ? p.value = p.value.filter((t) => t !== e) : p.value = [...p.value, e];
2763
- F.value = e;
2808
+ N.value = e;
2764
2809
  }
2765
- function H(e) {
2810
+ function z(e) {
2766
2811
  h("row-click", e);
2767
2812
  }
2768
- function ee(e) {
2813
+ function U(e) {
2769
2814
  h("bulk-action", e, p.value);
2770
2815
  }
2771
2816
  function G(e) {
2772
- let t = e.value, n = e.column.key, r = P(e.row[n]);
2817
+ let t = e.value, n = e.column.key, r = F(e.row[n]);
2773
2818
  e.column.editable?.inputAttributes?.type === "number" && (t = e.value === "" ? null : Number(e.value)), e.row[n] = t, h("cell-change", {
2774
2819
  row: e.row,
2775
2820
  column: e.column,
@@ -2777,28 +2822,28 @@ var yr = { class: "g-table-outer-wrap" }, br = {
2777
2822
  previousValue: r
2778
2823
  });
2779
2824
  }
2780
- let Y = z(), te = V(), X = r(() => m.showPagination ? !0 : !!te.pagination), Z = r(() => !!(C.value || X.value));
2825
+ let q = B(), ee = H(), Z = r(() => m.showPagination ? !0 : !!ee.pagination), te = r(() => !!(C.value || Z.value));
2781
2826
  return S(() => {
2782
2827
  m.rowClickable && m.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
2783
2828
  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])) {
2784
2829
  let t = f.value[e.key];
2785
2830
  f.value[e.key] = t ? [t] : [];
2786
2831
  }
2787
- }), W(() => m.columns, (e) => {
2832
+ }), K(() => m.columns, (e) => {
2788
2833
  for (let t of e) if (t.filter && t.filter.type === "multi-select" && !Array.isArray(f.value[t.key])) {
2789
2834
  let e = f.value[t.key];
2790
2835
  f.value[t.key] = e ? [e] : [];
2791
2836
  }
2792
- }, { immediate: !0 }), (n, r) => (w(), o("div", yr, [
2793
- Z.value ? (w(), o("div", br, [
2794
- s("div", xr, [L(C) ? (w(), i(Q, {
2837
+ }, { immediate: !0 }), (n, r) => (T(), o("div", yr, [
2838
+ te.value ? (T(), o("div", br, [
2839
+ s("div", xr, [R(C) ? (T(), i(Q, {
2795
2840
  key: 0,
2796
2841
  outlined: "",
2797
2842
  size: "small",
2798
2843
  class: "clear-filters",
2799
- onClick: L(T)
2844
+ onClick: R(w)
2800
2845
  }, {
2801
- default: K(() => [...r[0] ||= [s("svg", {
2846
+ default: J(() => [...r[0] ||= [s("svg", {
2802
2847
  xmlns: "http://www.w3.org/2000/svg",
2803
2848
  viewBox: "0 0 51.26 51.26",
2804
2849
  height: "1em",
@@ -2809,37 +2854,37 @@ var yr = { class: "g-table-outer-wrap" }, br = {
2809
2854
  })], -1), s("span", { class: "g-clear-filters-text" }, " Clear Filters ", -1)]]),
2810
2855
  _: 1
2811
2856
  }, 8, ["onClick"])) : a("", !0)]),
2812
- X.value ? (w(), o("div", Sr, [k(n.$slots, "pagination")])) : a("", !0),
2813
- s("span", Cr, N(m.resultCount || t.data.length) + " results", 1)
2857
+ Z.value ? (T(), o("div", Sr, [A(n.$slots, "pagination")])) : a("", !0),
2858
+ s("span", Cr, P(m.resultCount || t.data.length) + " results", 1)
2814
2859
  ])) : a("", !0),
2815
2860
  s("table", {
2816
2861
  class: "g-table",
2817
2862
  ref: "tableRef",
2818
2863
  "aria-label": t.label,
2819
2864
  "aria-rowcount": m.resultCount || t.data.length
2820
- }, [s("thead", Tr, [s("tr", Er, [t.bulkSelectionEnabled ? (w(), o("th", Dr, [s("input", {
2865
+ }, [s("thead", Tr, [s("tr", Er, [t.bulkSelectionEnabled ? (T(), o("th", Dr, [s("input", {
2821
2866
  type: "checkbox",
2822
2867
  checked: j.value,
2823
2868
  indeterminate: M.value,
2824
2869
  onChange: I,
2825
2870
  "aria-label": j.value ? "Deselect all rows" : "Select all rows",
2826
2871
  class: "g-bulk-select-checkbox"
2827
- }, null, 40, Or)])) : a("", !0), (w(!0), o(e, null, O(t.columns, (t) => (w(), o("th", {
2872
+ }, null, 40, Or)])) : a("", !0), (T(!0), o(e, null, k(t.columns, (t) => (T(), o("th", {
2828
2873
  key: t.key,
2829
- id: `${L(Y)}-th-${String(t.key)}`,
2874
+ id: `${R(q)}-th-${String(t.key)}`,
2830
2875
  "aria-sort": u.value === t.key ? d.value === 1 ? "ascending" : "descending" : "none",
2831
2876
  class: _([
2832
2877
  "g-th",
2833
2878
  { sorted: u.value === t.key },
2834
- { filtered: L(x)[t.key] }
2879
+ { filtered: R(x)[t.key] }
2835
2880
  ]),
2836
2881
  scope: "col"
2837
- }, [s("div", Ar, [t.sortable ? (w(), o("button", {
2882
+ }, [s("div", Ar, [t.sortable ? (T(), o("button", {
2838
2883
  key: 0,
2839
2884
  type: "button",
2840
2885
  class: "g-column-head",
2841
2886
  onClick: (e) => g(t)
2842
- }, [c(N(t.label) + " ", 1), u.value === t.key ? (w(), o("span", Mr, [(w(), o("svg", {
2887
+ }, [c(P(t.label) + " ", 1), u.value === t.key ? (T(), o("span", Mr, [(T(), o("svg", {
2843
2888
  xmlns: "http://www.w3.org/2000/svg",
2844
2889
  viewBox: "0 0 640 640",
2845
2890
  height: "1.5em",
@@ -2849,11 +2894,11 @@ var yr = { class: "g-table-outer-wrap" }, br = {
2849
2894
  }, [...r[1] ||= [s("path", {
2850
2895
  fill: "currentColor",
2851
2896
  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"
2852
- }, null, -1)]], 12, Nr))])) : a("", !0)], 8, jr)) : (w(), o("span", Pr, N(t.label), 1)), t.filter ? (w(), i(it, { key: 2 }, {
2853
- trigger: K(({ toggle: e }) => [s("button", {
2854
- onClick: J(e, ["stop"]),
2855
- "aria-label": L(x)[t.key] ? "Column Filtered" : "Filter Column",
2856
- class: _(["g-filter-btn", { "g-active": L(x)[t.key] }]),
2897
+ }, null, -1)]], 12, Nr))])) : a("", !0)], 8, jr)) : (T(), o("span", Pr, P(t.label), 1)), t.filter ? (T(), i(it, { key: 2 }, {
2898
+ trigger: J(({ toggle: e }) => [s("button", {
2899
+ onClick: X(e, ["stop"]),
2900
+ "aria-label": R(x)[t.key] ? "Column Filtered" : "Filter Column",
2901
+ class: _(["g-filter-btn", { "g-active": R(x)[t.key] }]),
2857
2902
  type: "button"
2858
2903
  }, [...r[2] ||= [s("svg", {
2859
2904
  xmlns: "http://www.w3.org/2000/svg",
@@ -2864,7 +2909,7 @@ var yr = { class: "g-table-outer-wrap" }, br = {
2864
2909
  fill: "currentColor",
2865
2910
  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"
2866
2911
  })], -1)]], 10, Fr)]),
2867
- default: K(() => [t.filter.type === "select" ? (w(), i(Ht, {
2912
+ default: J(() => [t.filter.type === "select" ? (T(), i(Ht, {
2868
2913
  key: 0,
2869
2914
  modelValue: f.value[t.key],
2870
2915
  "onUpdate:modelValue": (e) => f.value[t.key] = e,
@@ -2877,20 +2922,20 @@ var yr = { class: "g-table-outer-wrap" }, br = {
2877
2922
  "modelValue",
2878
2923
  "onUpdate:modelValue",
2879
2924
  "options"
2880
- ])) : t.filter.type === "toggle" ? (w(), o("div", Ir, [s("div", Lr, [
2881
- q(s("input", {
2925
+ ])) : t.filter.type === "toggle" ? (T(), o("div", Ir, [s("div", Lr, [
2926
+ Y(s("input", {
2882
2927
  type: "checkbox",
2883
2928
  "onUpdate:modelValue": (e) => f.value[t.key] = e,
2884
- id: `${L(Y)}-filter-${String(t.key)}`,
2885
- "aria-describedby": t.filter.description ? `${L(Y)}-filter-description-${String(t.key)}` : void 0
2886
- }, null, 8, Rr), [[U, f.value[t.key]]]),
2887
- s("label", { for: `${L(Y)}-filter-${String(t.key)}` }, N(t.filter.label), 9, zr),
2888
- t.filter.description ? (w(), o("span", {
2929
+ id: `${R(q)}-filter-${String(t.key)}`,
2930
+ "aria-describedby": t.filter.description ? `${R(q)}-filter-description-${String(t.key)}` : void 0
2931
+ }, null, 8, Rr), [[W, f.value[t.key]]]),
2932
+ s("label", { for: `${R(q)}-filter-${String(t.key)}` }, P(t.filter.label), 9, zr),
2933
+ t.filter.description ? (T(), o("span", {
2889
2934
  key: 0,
2890
2935
  class: "g-filter-description",
2891
- id: `${L(Y)}-filter-description-${String(t.key)}`
2892
- }, N(t.filter.description), 9, Br)) : a("", !0)
2893
- ])])) : t.filter.type === "multi-select" && t.filter.searchable ? (w(), i(fr, {
2936
+ id: `${R(q)}-filter-description-${String(t.key)}`
2937
+ }, P(t.filter.description), 9, Br)) : a("", !0)
2938
+ ])])) : t.filter.type === "multi-select" && t.filter.searchable ? (T(), i(fr, {
2894
2939
  key: 2,
2895
2940
  modelValue: f.value[t.key],
2896
2941
  "onUpdate:modelValue": (e) => f.value[t.key] = e,
@@ -2903,23 +2948,23 @@ var yr = { class: "g-table-outer-wrap" }, br = {
2903
2948
  "onUpdate:modelValue",
2904
2949
  "options",
2905
2950
  "placeholder"
2906
- ])) : t.filter.type === "multi-select" ? (w(), o("fieldset", Vr, [
2951
+ ])) : t.filter.type === "multi-select" ? (T(), o("fieldset", Vr, [
2907
2952
  r[4] ||= s("legend", { class: "g-multi-select-legend" }, " Include values ", -1),
2908
- (w(!0), o(e, null, O(t.filter.options, (e) => (w(), o("div", { key: e.value }, [q(s("input", {
2953
+ (T(!0), o(e, null, k(t.filter.options, (e) => (T(), o("div", { key: e.value }, [Y(s("input", {
2909
2954
  type: "checkbox",
2910
2955
  "onUpdate:modelValue": (e) => f.value[t.key] = e,
2911
2956
  id: `filter-${String(t.key)}-${e.value}`,
2912
2957
  value: e.value,
2913
2958
  name: "filter-multiselect"
2914
- }, null, 8, Hr), [[U, f.value[t.key]]]), s("label", { for: `filter-${String(t.key)}-${e.value}` }, N(e.label), 9, Ur)]))), 128)),
2915
- f.value[t.key] && f.value[t.key].length ? (w(), i(Q, {
2959
+ }, null, 8, Hr), [[W, f.value[t.key]]]), s("label", { for: `filter-${String(t.key)}-${e.value}` }, P(e.label), 9, Ur)]))), 128)),
2960
+ f.value[t.key] && f.value[t.key].length ? (T(), i(Q, {
2916
2961
  key: 0,
2917
2962
  class: "clear-multiselect-btn",
2918
2963
  theme: "accent",
2919
2964
  size: "small",
2920
2965
  onClick: (e) => f.value[t.key] = []
2921
2966
  }, {
2922
- default: K(() => [...r[3] ||= [c(" Clear ", -1)]]),
2967
+ default: J(() => [...r[3] ||= [c(" Clear ", -1)]]),
2923
2968
  _: 1
2924
2969
  }, 8, ["onClick"])) : a("", !0)
2925
2970
  ])) : a("", !0)]),
@@ -2934,10 +2979,10 @@ var yr = { class: "g-table-outer-wrap" }, br = {
2934
2979
  "start-index": t.startIndex,
2935
2980
  "bulk-selection-enabled": t.bulkSelectionEnabled,
2936
2981
  "selected-rows": p.value,
2937
- "table-id": L(Y),
2982
+ "table-id": R(q),
2938
2983
  "change-tracker": t.changeTracker,
2939
- onRowClick: H,
2940
- onToggleRow: R,
2984
+ onRowClick: z,
2985
+ onToggleRow: L,
2941
2986
  onCellChange: G
2942
2987
  }, null, 8, [
2943
2988
  "data",
@@ -2952,12 +2997,12 @@ var yr = { class: "g-table-outer-wrap" }, br = {
2952
2997
  "table-id",
2953
2998
  "change-tracker"
2954
2999
  ])], 8, wr),
2955
- t.bulkSelectionEnabled && p.value.length > 0 ? (w(), o("div", Wr, [s("span", Gr, N(p.value.length) + " row" + N(p.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Kr, [(w(!0), o(e, null, O(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l(Q, {
3000
+ t.bulkSelectionEnabled && p.value.length > 0 ? (T(), o("div", Wr, [s("span", Gr, P(p.value.length) + " row" + P(p.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Kr, [(T(!0), o(e, null, k(t.bulkActions, (e) => (T(), o("li", { key: e.id }, [l(Q, {
2956
3001
  theme: e.theme || "accent",
2957
- onClick: (t) => ee(e.id),
3002
+ onClick: (t) => U(e.id),
2958
3003
  size: "small"
2959
3004
  }, {
2960
- default: K(() => [c(N(e.label) + " " + N(p.value.length) + " row" + N(p.value.length === 1 ? "" : "s"), 1)]),
3005
+ default: J(() => [c(P(e.label) + " " + P(p.value.length) + " row" + P(p.value.length === 1 ? "" : "s"), 1)]),
2961
3006
  _: 2
2962
3007
  }, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
2963
3008
  ]));
@@ -2980,14 +3025,14 @@ var yr = { class: "g-table-outer-wrap" }, br = {
2980
3025
  }),
2981
3026
  emits: ["update:start", "update:pageSize"],
2982
3027
  setup(t) {
2983
- let n = t, i = r(() => Math.max(1, Math.ceil(n.total / n.pageSize))), a = B(t, "start"), c = B(t, "pageSize"), l = r(() => a.value ?? n.start), u = r(() => c.value ?? n.pageSize), d = r(() => n.total === 0 ? 0 : l.value + 1), f = r(() => n.total === 0 ? 0 : Math.min(l.value + u.value, n.total)), p = r(() => Math.floor(l.value / u.value) + 1);
3028
+ let n = t, i = r(() => Math.max(1, Math.ceil(n.total / n.pageSize))), a = V(t, "start"), c = V(t, "pageSize"), l = r(() => a.value ?? n.start), u = r(() => c.value ?? n.pageSize), d = r(() => n.total === 0 ? 0 : l.value + 1), f = r(() => n.total === 0 ? 0 : Math.min(l.value + u.value, n.total)), p = r(() => Math.floor(l.value / u.value) + 1);
2984
3029
  function m(e) {
2985
3030
  e < 1 || e > i.value || (a.value = (e - 1) * u.value);
2986
3031
  }
2987
3032
  function h(e) {
2988
3033
  c.value = parseInt(e.target.value, 10);
2989
3034
  }
2990
- return (t, r) => (w(), o("nav", Jr, [
3035
+ return (t, r) => (T(), o("nav", Jr, [
2991
3036
  s("button", {
2992
3037
  class: "first-page g-pagination-button",
2993
3038
  disabled: p.value === 1,
@@ -3034,7 +3079,7 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3034
3079
  d: "M0 0h24v24H0z",
3035
3080
  fill: "none"
3036
3081
  }), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, Xr),
3037
- s("span", Zr, N(d.value) + " to " + N(f.value), 1),
3082
+ s("span", Zr, P(d.value) + " to " + P(f.value), 1),
3038
3083
  s("button", {
3039
3084
  class: "next-page g-pagination-button",
3040
3085
  disabled: p.value === i.value,
@@ -3086,15 +3131,15 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3086
3131
  class: "page-size-select",
3087
3132
  value: c.value,
3088
3133
  onChange: h
3089
- }, [(w(!0), o(e, null, O(n.pageSizes || [
3134
+ }, [(T(!0), o(e, null, k(n.pageSizes || [
3090
3135
  10,
3091
3136
  25,
3092
3137
  50,
3093
3138
  100
3094
- ], (e) => (w(), o("option", {
3139
+ ], (e) => (T(), o("option", {
3095
3140
  key: e,
3096
3141
  value: e
3097
- }, N(e), 9, ti))), 128))], 40, ei),
3142
+ }, P(e), 9, ti))), 128))], 40, ei),
3098
3143
  r[8] ||= s("label", {
3099
3144
  class: "page-size-label",
3100
3145
  for: "page-size-select"
@@ -3115,11 +3160,11 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3115
3160
  },
3116
3161
  emits: ["close"],
3117
3162
  setup(e, { emit: c }) {
3118
- 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);
3119
- function T() {
3163
+ let u = e, d = c, f = U("dialog"), p = O(!0), m = B(), { pop: g, push: _, isTop: v, zIndex: y } = Ke(m, !0, !0), { deactivate: x, activate: C } = Qe(f, v);
3164
+ function w() {
3120
3165
  d("close");
3121
3166
  }
3122
- $e([f], v, p, T, g), S(() => {
3167
+ $e([f], v, p, w, g), S(() => {
3123
3168
  _(), C();
3124
3169
  }), b(() => {
3125
3170
  g(), x();
@@ -3128,31 +3173,31 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3128
3173
  let e = [`g-modal--${u.size}`];
3129
3174
  return u.classes && (e = e.concat(Array.isArray(u.classes) ? u.classes : [u.classes])), e;
3130
3175
  });
3131
- return (r, c) => (w(), i(t, { to: "#modal-root" }, [l(n, {
3176
+ return (r, c) => (T(), i(t, { to: "#modal-root" }, [l(n, {
3132
3177
  name: "g-fade",
3133
3178
  appear: ""
3134
3179
  }, {
3135
- default: K(() => [s("div", h({
3136
- id: "modal-" + L(m),
3180
+ default: J(() => [s("div", h({
3181
+ id: "modal-" + R(m),
3137
3182
  class: ["g-modal", E.value],
3138
3183
  role: "dialog",
3139
3184
  "aria-modal": "true"
3140
3185
  }, {
3141
- "aria-labelledby": e.hiddenLabel ? void 0 : "modal-label-" + L(m),
3186
+ "aria-labelledby": e.hiddenLabel ? void 0 : "modal-label-" + R(m),
3142
3187
  "aria-label": e.hiddenLabel ? e.label : void 0,
3143
3188
  "aria-describedby": e.describedby ? e.describedby : void 0
3144
3189
  }, {
3145
3190
  ref_key: "dialog",
3146
3191
  ref: f,
3147
- style: { zIndex: L(y) }
3148
- }), [s("div", ii, [s("div", ai, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
3192
+ style: { zIndex: R(y) }
3193
+ }), [s("div", ii, [s("div", ai, [e.hiddenLabel ? a("", !0) : (T(), o("h2", {
3149
3194
  key: 0,
3150
- id: "modal-label-" + L(m),
3195
+ id: "modal-label-" + R(m),
3151
3196
  class: "g-modal-label",
3152
3197
  tabindex: "-1"
3153
- }, N(e.label), 9, oi)), s("button", {
3198
+ }, P(e.label), 9, oi)), s("button", {
3154
3199
  class: "g-modal-close",
3155
- onClick: T,
3200
+ onClick: w,
3156
3201
  "aria-label": "Close"
3157
3202
  }, [...c[0] ||= [s("svg", {
3158
3203
  viewBox: "0 0 24 24",
@@ -3163,9 +3208,9 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3163
3208
  fill: "currentColor",
3164
3209
  d: "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"
3165
3210
  })], -1)]])]), s("div", {
3166
- id: "modal-description-" + L(m),
3211
+ id: "modal-description-" + R(m),
3167
3212
  class: "g-modal-content"
3168
- }, [k(r.$slots, "default")], 8, si)])], 16, ri)]),
3213
+ }, [A(r.$slots, "default")], 8, si)])], 16, ri)]),
3169
3214
  _: 3
3170
3215
  })]));
3171
3216
  }
@@ -3182,25 +3227,25 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3182
3227
  },
3183
3228
  emits: ["toggle"],
3184
3229
  setup(e, { emit: t }) {
3185
- let n = e, r = p("sidebar") ?? (de() ? ln(n.sidebarKey) : void 0), i = t;
3230
+ let n = e, r = p("sidebar") ?? (fe() ? ln(n.sidebarKey) : void 0), i = t;
3186
3231
  function a() {
3187
3232
  i("toggle"), r?.toggle();
3188
3233
  }
3189
3234
  function c(e) {
3190
3235
  e.key === "Escape" && r?.open?.value && (r.open.value = !1);
3191
3236
  }
3192
- let l = z();
3193
- return (t, n) => (w(), o("button", {
3194
- id: `${L(r)?.id ?? L(l)}-hamburger`,
3237
+ let l = B();
3238
+ return (t, n) => (T(), o("button", {
3239
+ id: `${R(r)?.id ?? R(l)}-hamburger`,
3195
3240
  class: _(["g-hamburger-button", {
3196
- "g-hamburger-button--open": L(r)?.open?.value,
3197
- "g-hamburger-button--collapsible": L(r)?.isCollapsible?.value
3241
+ "g-hamburger-button--open": R(r)?.open?.value,
3242
+ "g-hamburger-button--collapsible": R(r)?.isCollapsible?.value
3198
3243
  }]),
3199
3244
  onClick: a,
3200
3245
  onKeydown: c,
3201
- "aria-expanded": L(r)?.open?.value ? "true" : "false",
3246
+ "aria-expanded": R(r)?.open?.value ? "true" : "false",
3202
3247
  "aria-label": e.label,
3203
- "aria-controls": L(r) ? `${L(r).id}-sidebar` : void 0
3248
+ "aria-controls": R(r) ? `${R(r).id}-sidebar` : void 0
3204
3249
  }, [...n[0] ||= [s("svg", {
3205
3250
  xmlns: "http://www.w3.org/2000/svg",
3206
3251
  viewBox: "0 0 51.26 51.26"
@@ -3211,13 +3256,13 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3211
3256
  props: { variant: { default: "grid" } },
3212
3257
  setup(e) {
3213
3258
  let t = e;
3214
- return (e, n) => (w(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [k(e.$slots, "default")], 2));
3259
+ return (e, n) => (T(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [A(e.$slots, "default")], 2));
3215
3260
  }
3216
3261
  }), fi = { class: "g-detail-list-item" }, pi = { class: "g-detail-list-item__label" }, mi = { class: "g-detail-list-item__value" }, hi = /* @__PURE__ */ u({
3217
3262
  __name: "GDetailListItem",
3218
3263
  props: { label: {} },
3219
3264
  setup(e) {
3220
- return (t, n) => (w(), o("div", fi, [s("dt", pi, [k(t.$slots, "label", {}, () => [c(N(e.label), 1)])]), s("dd", mi, [k(t.$slots, "default")])]));
3265
+ return (t, n) => (T(), o("div", fi, [s("dt", pi, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])]), s("dd", mi, [A(t.$slots, "default")])]));
3221
3266
  }
3222
3267
  }), gi = {
3223
3268
  key: 0,
@@ -3226,8 +3271,8 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3226
3271
  __name: "GOverlay",
3227
3272
  setup(e) {
3228
3273
  let { hasScrollLock: t } = qe();
3229
- return (e, r) => (w(), i(n, { name: "g-fade" }, {
3230
- default: K(() => [L(t) ? (w(), o("div", gi)) : a("", !0)]),
3274
+ return (e, r) => (T(), i(n, { name: "g-fade" }, {
3275
+ default: J(() => [R(t) ? (T(), o("div", gi)) : a("", !0)]),
3231
3276
  _: 1
3232
3277
  }));
3233
3278
  }
@@ -3251,8 +3296,8 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3251
3296
  }),
3252
3297
  emits: ["update:modelValue"],
3253
3298
  setup(e) {
3254
- let t = B(e, "modelValue");
3255
- return (n, r) => (w(), o("div", vi, [s("div", yi, [l(Ht, {
3299
+ let t = V(e, "modelValue");
3300
+ return (n, r) => (T(), o("div", vi, [s("div", yi, [l(Ht, {
3256
3301
  modelValue: t.value.year,
3257
3302
  "onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
3258
3303
  options: e.termYears,
@@ -3297,21 +3342,21 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3297
3342
  }),
3298
3343
  emits: ["update:modelValue"],
3299
3344
  setup(e) {
3300
- let t = B(e, "modelValue");
3301
- return (n, r) => (w(), o("div", Si, [l(it, null, {
3302
- trigger: K(({ toggle: e }) => [l(Q, {
3345
+ let t = V(e, "modelValue");
3346
+ return (n, r) => (T(), o("div", Si, [l(it, null, {
3347
+ trigger: J(({ toggle: e }) => [l(Q, {
3303
3348
  class: "g-term-selector-button",
3304
3349
  theme: "none",
3305
3350
  outlined: "",
3306
3351
  onClick: e
3307
3352
  }, {
3308
- default: K(() => [
3353
+ default: J(() => [
3309
3354
  r[0] ||= s("span", { class: "g-calendar-icon" }, [s("svg", {
3310
3355
  role: "none presentation",
3311
3356
  xmlns: "http://www.w3.org/2000/svg",
3312
3357
  viewBox: "0 0 640 640"
3313
3358
  }, [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),
3314
- s("span", Ci, N(t.value?.name) + " " + N(t.value?.year), 1),
3359
+ s("span", Ci, P(t.value?.name) + " " + P(t.value?.year), 1),
3315
3360
  r[1] ||= s("span", { class: "g-caret" }, [s("svg", {
3316
3361
  role: "none presentation",
3317
3362
  xmlns: "http://www.w3.org/2000/svg",
@@ -3320,7 +3365,7 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3320
3365
  ]),
3321
3366
  _: 1
3322
3367
  }, 8, ["onClick"])]),
3323
- default: K(() => [s("h2", wi, N(e.heading), 1), l(xi, v(f(n.$props)), null, 16)]),
3368
+ default: J(() => [s("h2", wi, P(e.heading), 1), l(xi, v(f(n.$props)), null, 16)]),
3324
3369
  _: 1
3325
3370
  })]));
3326
3371
  }
@@ -3337,32 +3382,32 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3337
3382
  label: { default: "User menu" }
3338
3383
  },
3339
3384
  setup(t) {
3340
- let n = `${z()}-email`, r = D(!1), a = H("emailHeading");
3385
+ let n = `${B()}-email`, r = O(!1), a = U("emailHeading");
3341
3386
  d()?.appContext?.components?.RouterLink;
3342
- let c = V();
3343
- return (u, d) => (w(), o("div", Ei, [l(it, {
3387
+ let c = H();
3388
+ return (u, d) => (T(), o("div", Ei, [l(it, {
3344
3389
  modelValue: r.value,
3345
3390
  "onUpdate:modelValue": d[0] ||= (e) => r.value = e,
3346
3391
  minimal: ""
3347
3392
  }, {
3348
- trigger: K(({ toggle: e }) => [s("button", {
3393
+ trigger: J(({ toggle: e }) => [s("button", {
3349
3394
  class: "g-user-menu__avatar",
3350
3395
  style: y({ backgroundColor: t.color }),
3351
3396
  "aria-label": t.initials + " - " + t.label,
3352
3397
  "aria-expanded": r.value,
3353
3398
  "aria-haspopup": "menu",
3354
3399
  onClick: e
3355
- }, N(t.initials), 13, Di)]),
3356
- default: K(() => [s("div", Oi, [s("h2", {
3400
+ }, P(t.initials), 13, Di)]),
3401
+ default: J(() => [s("div", Oi, [s("h2", {
3357
3402
  id: n,
3358
3403
  ref_key: "emailHeading",
3359
3404
  ref: a,
3360
3405
  class: "g-user-menu__email",
3361
3406
  tabindex: "-1"
3362
- }, N(t.email), 513), s("nav", {
3407
+ }, P(t.email), 513), s("nav", {
3363
3408
  class: "g-user-menu__nav",
3364
3409
  "aria-labelledby": n
3365
- }, [s("ul", ki, [(w(!0), o(e, null, O(c.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(A(e)))]))), 128))])])])]),
3410
+ }, [s("ul", ki, [(T(!0), o(e, null, k(c.default(), (e, t) => (T(), o("li", { key: t }, [(T(), i(j(e)))]))), 128))])])])]),
3366
3411
  _: 1
3367
3412
  }, 8, ["modelValue"])]));
3368
3413
  }
@@ -3389,8 +3434,8 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3389
3434
  }),
3390
3435
  emits: ["update:modelValue"],
3391
3436
  setup(e) {
3392
- let t = e, n = B(e, "modelValue");
3393
- return (e, r) => (w(), i(Re, h({
3437
+ let t = e, n = V(e, "modelValue");
3438
+ return (e, r) => (T(), i(Re, h({
3394
3439
  modelValue: n.value,
3395
3440
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
3396
3441
  name: t.name,
@@ -3439,8 +3484,8 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3439
3484
  }),
3440
3485
  emits: ["update:modelValue"],
3441
3486
  setup(e) {
3442
- let t = B(e, "modelValue");
3443
- return (n, r) => (w(), i(Re, h({
3487
+ let t = V(e, "modelValue");
3488
+ return (n, r) => (T(), i(Re, h({
3444
3489
  modelValue: t.value,
3445
3490
  "onUpdate:modelValue": r[0] ||= (e) => t.value = e,
3446
3491
  name: e.name,
@@ -3511,12 +3556,12 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3511
3556
  }),
3512
3557
  emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
3513
3558
  setup(t, { emit: n }) {
3514
- let i = t, u = B(t, "modelValue"), d = z(), { displayErrors: f } = $({
3559
+ let i = t, u = V(t, "modelValue"), d = B(), { displayErrors: f } = $({
3515
3560
  name: i.name,
3516
3561
  value: u,
3517
- errors: F(i, "errors"),
3562
+ errors: I(i, "errors"),
3518
3563
  formKey: i.formKey
3519
- }), p = n, m = D([]);
3564
+ }), p = n, m = O([]);
3520
3565
  function h(e) {
3521
3566
  let t = [];
3522
3567
  if (i.maxFiles !== void 0 && e.length > i.maxFiles && t.push(`You may select at most ${i.maxFiles} file${i.maxFiles === 1 ? "" : "s"}.`), i.maxFileSize !== void 0) {
@@ -3533,19 +3578,19 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3533
3578
  m.value = h(n), u.value = n, p("change", n);
3534
3579
  }
3535
3580
  let v = r(() => [...f.value, ...m.value]), y = r(() => v.value.length > 0), b = r(() => u.value.map((e) => e.name));
3536
- return (n, r) => (w(), o("div", { class: _(["g-file-input-wrap", { "g-file-input-has-error": y.value }]) }, [
3537
- t.label ? (w(), o("label", {
3581
+ return (n, r) => (T(), o("div", { class: _(["g-file-input-wrap", { "g-file-input-has-error": y.value }]) }, [
3582
+ t.label ? (T(), o("label", {
3538
3583
  key: 0,
3539
- for: L(d),
3584
+ for: R(d),
3540
3585
  class: "g-file-input-label"
3541
- }, [c(N(t.label) + " ", 1), t.required ? (w(), o("span", Pi, "*")) : a("", !0)], 8, Ni)) : a("", !0),
3586
+ }, [c(P(t.label) + " ", 1), t.required ? (T(), o("span", Pi, "*")) : a("", !0)], 8, Ni)) : a("", !0),
3542
3587
  s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
3543
- t.instructions ? (w(), o("div", Fi, [s("span", {
3544
- id: "instructions-" + L(d),
3588
+ t.instructions ? (T(), o("div", Fi, [s("span", {
3589
+ id: "instructions-" + R(d),
3545
3590
  class: "g-file-input-instructions"
3546
- }, N(t.instructions), 9, Ii)])) : a("", !0),
3591
+ }, P(t.instructions), 9, Ii)])) : a("", !0),
3547
3592
  s("input", {
3548
- id: L(d),
3593
+ id: R(d),
3549
3594
  type: "file",
3550
3595
  class: "g-file-input",
3551
3596
  disabled: t.disabled,
@@ -3553,11 +3598,11 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3553
3598
  accept: t.accept || void 0,
3554
3599
  multiple: t.multiple,
3555
3600
  "aria-invalid": y.value ? "true" : "false",
3556
- "aria-describedby": t.instructions ? "instructions-" + L(d) : void 0,
3557
- "aria-errormessage": y.value ? "error-message-" + L(d) : void 0,
3601
+ "aria-describedby": t.instructions ? "instructions-" + R(d) : void 0,
3602
+ "aria-errormessage": y.value ? "error-message-" + R(d) : void 0,
3558
3603
  onChange: g
3559
3604
  }, null, 40, Li),
3560
- t.multiple && b.value.length > 0 ? (w(), o("ul", Ri, [(w(!0), o(e, null, O(b.value, (e) => (w(), o("li", {
3605
+ t.multiple && b.value.length > 0 ? (T(), o("ul", Ri, [(T(!0), o(e, null, k(b.value, (e) => (T(), o("li", {
3561
3606
  key: e,
3562
3607
  class: "g-file-input-pill"
3563
3608
  }, [r[0] ||= s("svg", {
@@ -3565,11 +3610,11 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3565
3610
  role: "none presentation",
3566
3611
  xmlns: "http://www.w3.org/2000/svg",
3567
3612
  viewBox: "0 0 640 640"
3568
- }, [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)
3613
+ }, [s("path", { d: "M192 64C156.7 64 128 92.7 128 128L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 234.5C512 217.5 505.3 201.2 493.3 189.2L386.7 82.7C374.7 70.7 358.5 64 341.5 64L192 64zM453.5 240L360 240C346.7 240 336 229.3 336 216L336 122.5L453.5 240z" })], -1), c(" " + P(e), 1)]))), 128))])) : a("", !0)
3569
3614
  ], 2),
3570
3615
  l(je, {
3571
3616
  errors: v.value,
3572
- id: "error-message-" + L(d)
3617
+ id: "error-message-" + R(d)
3573
3618
  }, null, 8, ["errors", "id"])
3574
3619
  ], 2));
3575
3620
  }
@@ -3596,8 +3641,8 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3596
3641
  }),
3597
3642
  emits: ["update:modelValue"],
3598
3643
  setup(e) {
3599
- let t = e, n = B(e, "modelValue");
3600
- return (e, r) => (w(), i(Re, h({
3644
+ let t = e, n = V(e, "modelValue");
3645
+ return (e, r) => (T(), i(Re, h({
3601
3646
  modelValue: n.value,
3602
3647
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
3603
3648
  name: t.name,
@@ -3662,22 +3707,22 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3662
3707
  }),
3663
3708
  emits: ["update:modelValue"],
3664
3709
  setup(t) {
3665
- let n = t, r = B(t, "modelValue"), i = D(r.value.start || null), u = D(r.value.end || null), { displayErrors: d } = $({
3710
+ let n = t, r = V(t, "modelValue"), i = O(r.value.start || null), u = O(r.value.end || null), { displayErrors: d } = $({
3666
3711
  name: n.name,
3667
3712
  value: r,
3668
- errors: F(n, "errors"),
3713
+ errors: I(n, "errors"),
3669
3714
  formKey: n.formKey
3670
3715
  });
3671
- return W([i, u], () => {
3716
+ return K([i, u], () => {
3672
3717
  r.value = {
3673
3718
  start: i.value,
3674
3719
  end: u.value
3675
3720
  };
3676
- }), W(r, (e) => {
3721
+ }), K(r, (e) => {
3677
3722
  e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
3678
- }, { deep: !0 }), (t, r) => (w(), o("div", Vi, [
3679
- n.label ? (w(), o("div", Hi, [c(N(n.label), 1), n.required ? (w(), o("span", Ui, " *")) : a("", !0)])) : a("", !0),
3680
- n.instructions ? (w(), o("div", Wi, N(n.instructions), 1)) : a("", !0),
3723
+ }, { deep: !0 }), (t, r) => (T(), o("div", Vi, [
3724
+ n.label ? (T(), o("div", Hi, [c(P(n.label), 1), n.required ? (T(), o("span", Ui, " *")) : a("", !0)])) : a("", !0),
3725
+ n.instructions ? (T(), o("div", Wi, P(n.instructions), 1)) : a("", !0),
3681
3726
  s("div", Gi, [l(Bi, {
3682
3727
  modelValue: i.value,
3683
3728
  "onUpdate:modelValue": r[0] ||= (e) => i.value = e,
@@ -3703,10 +3748,10 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3703
3748
  "disabled",
3704
3749
  "required"
3705
3750
  ])]),
3706
- L(d).length > 0 ? (w(), o("div", Ki, [(w(!0), o(e, null, O(L(d), (e, t) => (w(), o("div", {
3751
+ R(d).length > 0 ? (T(), o("div", Ki, [(T(!0), o(e, null, k(R(d), (e, t) => (T(), o("div", {
3707
3752
  key: t,
3708
3753
  class: "g-date-range-input__error"
3709
- }, N(e), 1))), 128))])) : a("", !0)
3754
+ }, P(e), 1))), 128))])) : a("", !0)
3710
3755
  ]));
3711
3756
  }
3712
3757
  }), Ji = ["action", "method"], Yi = /* @__PURE__ */ u({
@@ -3721,10 +3766,10 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3721
3766
  }),
3722
3767
  emits: /* @__PURE__ */ m(["submit"], ["update:modelValue"]),
3723
3768
  setup(e, { emit: t }) {
3724
- let n = e, r = B(e, "modelValue"), i = t, a = p("form", null), s = a ?? (de() ? ke(n.formKey) : De());
3725
- a || T("form", s), W(() => s.values.value, (e) => {
3769
+ let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (fe() ? ke(n.formKey) : De());
3770
+ a || E("form", s), K(() => s.values.value, (e) => {
3726
3771
  r.value = { ...e };
3727
- }, { deep: !0 }), W(() => r.value, (e) => {
3772
+ }, { deep: !0 }), K(() => r.value, (e) => {
3728
3773
  e && Object.entries(e).forEach(([e, t]) => {
3729
3774
  let n = s.fields[e];
3730
3775
  n && n.value.value !== t && (n.value.value = t);
@@ -3738,17 +3783,17 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3738
3783
  i("submit", e);
3739
3784
  });
3740
3785
  }
3741
- return (e, t) => (w(), o("form", {
3786
+ return (e, t) => (T(), o("form", {
3742
3787
  onSubmit: c,
3743
3788
  action: n.action,
3744
3789
  method: n.method,
3745
3790
  class: "g-form",
3746
3791
  novalidate: ""
3747
- }, [k(e.$slots, "default", {
3748
- isSubmitting: L(s).isSubmitting.value,
3749
- hasErrors: L(s).hasErrors.value,
3750
- values: L(s).values.value,
3751
- errors: L(s).errors.value
3792
+ }, [A(e.$slots, "default", {
3793
+ isSubmitting: R(s).isSubmitting.value,
3794
+ hasErrors: R(s).hasErrors.value,
3795
+ values: R(s).values.value,
3796
+ errors: R(s).errors.value
3752
3797
  })], 40, Ji));
3753
3798
  }
3754
3799
  }), Xi = /* @__PURE__ */ u({
@@ -3763,14 +3808,14 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3763
3808
  formKey: { default: "default" }
3764
3809
  },
3765
3810
  setup(e) {
3766
- 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);
3767
- return (e, n) => (w(), i(Q, {
3811
+ let t = e, n = z(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (fe() ? ke(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
3812
+ return (e, n) => (T(), i(Q, {
3768
3813
  type: "submit",
3769
3814
  disabled: u.value,
3770
3815
  variant: t.variant,
3771
3816
  class: "g-submit-button"
3772
3817
  }, {
3773
- 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]])]),
3818
+ default: J(() => [Y(s("span", null, P(t.loadingText), 513), [[G, d.value]]), Y(s("span", null, [A(e.$slots, "default", {}, () => [n[0] ||= c("Submit", -1)])], 512), [[G, !d.value]])]),
3774
3819
  _: 3
3775
3820
  }, 8, ["disabled", "variant"]));
3776
3821
  }
@@ -3820,10 +3865,10 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3820
3865
  }),
3821
3866
  emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
3822
3867
  setup(t, { emit: n }) {
3823
- let u = t, d = B(t, "modelValue"), f = z(), { displayErrors: p, hasErrors: m } = $({
3868
+ let u = t, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } = $({
3824
3869
  name: u.name,
3825
3870
  value: d,
3826
- errors: F(u, "errors"),
3871
+ errors: I(u, "errors"),
3827
3872
  formKey: u.formKey
3828
3873
  }), g = n;
3829
3874
  function v(e) {
@@ -3833,7 +3878,7 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3833
3878
  let n;
3834
3879
  n = u.radio ? t ? [e] : [] : t ? d.value.includes(e) ? d.value : [...d.value, e] : d.value.filter((t) => t !== e), d.value = n, g("change", n);
3835
3880
  }
3836
- let b = r(() => u.radio ? "radio" : "checkbox"), x = r(() => `error-message-${f}`), S = r(() => `instructions-${f}`), C = r(() => u.radio || u.options.length > 1), T = r(() => {
3881
+ let b = r(() => u.radio ? "radio" : "checkbox"), x = r(() => `error-message-${f}`), S = r(() => `instructions-${f}`), C = r(() => u.radio || u.options.length > 1), w = r(() => {
3837
3882
  let e = [];
3838
3883
  return u.instructions && e.push(S.value), u.radio ? {
3839
3884
  role: "radiogroup",
@@ -3848,7 +3893,7 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3848
3893
  function D(e) {
3849
3894
  return `${f}-input-${e}`;
3850
3895
  }
3851
- function k(e, t) {
3896
+ function O(e, t) {
3852
3897
  let n = [];
3853
3898
  return !u.radio && u.instructions && n.push(S.value), e.hint && n.push(E(t)), u.radio ? { "aria-describedby": n.length ? n.join(" ") : void 0 } : {
3854
3899
  "aria-describedby": n.length ? n.join(" ") : void 0,
@@ -3857,15 +3902,15 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3857
3902
  "aria-errormessage": m.value ? x.value : void 0
3858
3903
  };
3859
3904
  }
3860
- return (n, r) => (w(), i(A(C.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": L(m) }] }, T.value), {
3861
- default: K(() => [
3862
- C.value && t.label ? (w(), o("legend", Zi, [c(N(t.label), 1), t.required ? (w(), o("span", Qi, "\xA0*")) : a("", !0)])) : !C.value && t.label ? (w(), o("div", $i, [c(N(t.label), 1), t.required ? (w(), o("span", ea, "\xA0*")) : a("", !0)])) : a("", !0),
3863
- t.instructions ? (w(), o("div", {
3905
+ return (n, r) => (T(), i(j(C.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": R(m) }] }, w.value), {
3906
+ default: J(() => [
3907
+ C.value && t.label ? (T(), o("legend", Zi, [c(P(t.label), 1), t.required ? (T(), o("span", Qi, "\xA0*")) : a("", !0)])) : !C.value && t.label ? (T(), o("div", $i, [c(P(t.label), 1), t.required ? (T(), o("span", ea, "\xA0*")) : a("", !0)])) : a("", !0),
3908
+ t.instructions ? (T(), o("div", {
3864
3909
  key: 2,
3865
3910
  id: S.value,
3866
3911
  class: "g-checkbox-group__instructions"
3867
- }, N(t.instructions), 9, ta)) : a("", !0),
3868
- s("div", na, [(w(!0), o(e, null, O(t.options, (e, n) => (w(), o("div", {
3912
+ }, P(t.instructions), 9, ta)) : a("", !0),
3913
+ s("div", na, [(T(!0), o(e, null, k(t.options, (e, n) => (T(), o("div", {
3869
3914
  key: e.value,
3870
3915
  class: _(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": e.disabled }])
3871
3916
  }, [s("label", {
@@ -3874,19 +3919,19 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3874
3919
  }, [s("input", h({
3875
3920
  id: D(n),
3876
3921
  type: b.value,
3877
- name: t.name || L(f),
3922
+ name: t.name || R(f),
3878
3923
  value: e.value,
3879
3924
  checked: v(e.value),
3880
3925
  disabled: e.disabled,
3881
3926
  required: t.required && (t.radio && n === 0 || !t.radio && t.options.length === 1),
3882
3927
  class: "g-checkbox-group__input"
3883
- }, { ref_for: !0 }, k(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16, ia), s("span", aa, N(e.label), 1)], 10, ra), e.hint ? (w(), o("div", {
3928
+ }, { ref_for: !0 }, O(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16, ia), s("span", aa, P(e.label), 1)], 10, ra), e.hint ? (T(), o("div", {
3884
3929
  key: 0,
3885
3930
  id: E(n),
3886
3931
  class: "g-checkbox-group__hint"
3887
- }, N(e.hint), 9, oa)) : a("", !0)], 2))), 128))]),
3932
+ }, P(e.hint), 9, oa)) : a("", !0)], 2))), 128))]),
3888
3933
  l(je, {
3889
- errors: L(p),
3934
+ errors: R(p),
3890
3935
  id: x.value
3891
3936
  }, null, 8, ["errors", "id"])
3892
3937
  ]),
@@ -3944,17 +3989,17 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3944
3989
  }),
3945
3990
  emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
3946
3991
  setup(e, { emit: t }) {
3947
- let n = e, i = B(e, "modelValue"), u = z(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = fe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: v, hasErrors: y } = $({
3992
+ let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = pe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: v, hasErrors: y } = $({
3948
3993
  name: n.name,
3949
3994
  value: i,
3950
- errors: F(n, "errors"),
3995
+ errors: I(n, "errors"),
3951
3996
  formKey: n.formKey
3952
- }), b = t, x = H("textareaEl");
3997
+ }), b = t, x = U("textareaEl");
3953
3998
  function S() {
3954
3999
  let e = x.value;
3955
4000
  e && (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
3956
4001
  }
3957
- W(() => i.value, () => {
4002
+ K(() => i.value, () => {
3958
4003
  n.autoGrow && g(S);
3959
4004
  });
3960
4005
  function C(e) {
@@ -3966,7 +4011,7 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3966
4011
  });
3967
4012
  }
3968
4013
  }
3969
- function T(e) {
4014
+ function w(e) {
3970
4015
  i.value = e.target.value, n.autoGrow && S();
3971
4016
  }
3972
4017
  function E(e) {
@@ -3978,17 +4023,17 @@ var yr = { class: "g-table-outer-wrap" }, br = {
3978
4023
  C(t), n.autoGrow && S();
3979
4024
  }, 0);
3980
4025
  }
3981
- return (t, r) => (w(), o("div", { class: _(["g-textarea-wrap", { "g-textarea-has-error": L(y) }]) }, [
3982
- n.label ? (w(), o("label", {
4026
+ return (t, r) => (T(), o("div", { class: _(["g-textarea-wrap", { "g-textarea-has-error": R(y) }]) }, [
4027
+ n.label ? (T(), o("label", {
3983
4028
  key: 0,
3984
4029
  for: m.value,
3985
4030
  class: "g-textarea-label"
3986
- }, [c(N(n.label), 1), n.required ? (w(), o("span", la, " *")) : a("", !0)], 8, ca)) : a("", !0),
3987
- t.$slots.instructions || e.instructions ? (w(), o("div", {
4031
+ }, [c(P(n.label), 1), n.required ? (T(), o("span", la, " *")) : a("", !0)], 8, ca)) : a("", !0),
4032
+ t.$slots.instructions || e.instructions ? (T(), o("div", {
3988
4033
  key: 1,
3989
- id: "instructions-" + L(u),
4034
+ id: "instructions-" + R(u),
3990
4035
  class: "g-textarea-instructions"
3991
- }, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8, ua)) : a("", !0),
4036
+ }, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, ua)) : a("", !0),
3992
4037
  s("textarea", h({
3993
4038
  ref: "textareaEl",
3994
4039
  value: i.value ?? "",
@@ -4000,20 +4045,20 @@ var yr = { class: "g-table-outer-wrap" }, br = {
4000
4045
  maxlength: n.maxlength ?? void 0,
4001
4046
  class: "g-textarea"
4002
4047
  }, {
4003
- ...L(p),
4048
+ ...R(p),
4004
4049
  id: m.value,
4005
- "aria-describedby": t.$slots.instructions || e.instructions ? "instructions-" + L(u) : void 0,
4006
- "aria-errormessage": L(y) ? "error-message-" + L(u) : void 0
4050
+ "aria-describedby": t.$slots.instructions || e.instructions ? "instructions-" + R(u) : void 0,
4051
+ "aria-errormessage": R(y) ? "error-message-" + R(u) : void 0
4007
4052
  }, {
4008
- "aria-invalid": L(y) ? "true" : "false",
4009
- onInput: T,
4053
+ "aria-invalid": R(y) ? "true" : "false",
4054
+ onInput: w,
4010
4055
  onBlur: E,
4011
4056
  onPaste: D
4012
4057
  }), null, 16, da),
4013
- n.maxlength === void 0 ? a("", !0) : (w(), o("div", fa, N((i.value ?? "").length) + " / " + N(n.maxlength), 1)),
4058
+ n.maxlength === void 0 ? a("", !0) : (T(), o("div", fa, P((i.value ?? "").length) + " / " + P(n.maxlength), 1)),
4014
4059
  l(je, {
4015
- errors: L(v),
4016
- id: "error-message-" + L(u)
4060
+ errors: R(v),
4061
+ id: "error-message-" + R(u)
4017
4062
  }, null, 8, ["errors", "id"])
4018
4063
  ], 2));
4019
4064
  }
@@ -4027,11 +4072,11 @@ function ma(e, t, n) {
4027
4072
  .5,
4028
4073
  .75,
4029
4074
  1
4030
- ], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = D(Array.from(Z(e)?.children || []));
4031
- se(e, () => {
4032
- o.value = Array.from(Z(e)?.children || []);
4075
+ ], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = O(Array.from(ne(e)?.children || []));
4076
+ ce(e, () => {
4077
+ o.value = Array.from(ne(e)?.children || []);
4033
4078
  }, { childList: !0 });
4034
- let { stop: s } = ae(o, (e) => {
4079
+ let { stop: s } = oe(o, (e) => {
4035
4080
  let t = o.value[o.value.length - 1];
4036
4081
  for (let n of e) a.set(n.target, n.isIntersecting ? Math.ceil(100 * n.intersectionRatio) / 100 : 0), n.target === t && n.intersectionRatio === 1 && a.set(n.target, Infinity);
4037
4082
  let r = null, i = 0;
@@ -4051,7 +4096,7 @@ function ma(e, t, n) {
4051
4096
  //#endregion
4052
4097
  //#region src/compose/useSidebar.ts
4053
4098
  function ha(e = "(max-width: 800px)") {
4054
- let t = z(), n = D(!1), r = oe(e, { ssrWidth: 1e3 });
4099
+ let t = B(), n = O(!1), r = se(e, { ssrWidth: 1e3 });
4055
4100
  function i(e) {
4056
4101
  if (!r.value || !n.value) return;
4057
4102
  let i = e.target, a = document.getElementById(`${t}-sidebar`);
@@ -4067,7 +4112,7 @@ function ha(e = "(max-width: 800px)") {
4067
4112
  }, 5));
4068
4113
  }
4069
4114
  return S(() => {
4070
- W(r, (e) => {
4115
+ K(r, (e) => {
4071
4116
  e ? (document.addEventListener("mousedown", i), document.addEventListener("focusin", a)) : (document.removeEventListener("mousedown", i), document.removeEventListener("focusin", a));
4072
4117
  }, { immediate: !0 });
4073
4118
  }), x(() => {
@@ -4082,9 +4127,9 @@ function ha(e = "(max-width: 800px)") {
4082
4127
  //#endregion
4083
4128
  //#region src/compose/useTableChanges.ts
4084
4129
  function ga() {
4085
- let e = j(/* @__PURE__ */ new Map()), t = Y(), n = (n) => {
4130
+ let e = M(/* @__PURE__ */ new Map()), t = ee(), n = (n) => {
4086
4131
  let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
4087
- e.has(i) || e.set(i, j(/* @__PURE__ */ new Map()));
4132
+ e.has(i) || e.set(i, M(/* @__PURE__ */ new Map()));
4088
4133
  let s = e.get(i), c = s.get(r), l = c ? c.previousValue : o, u = c?.error;
4089
4134
  if (a === l) s.delete(r), s.size === 0 && e.delete(i), t.trigger({
4090
4135
  rowKey: i,
@@ -4184,6 +4229,6 @@ function ga() {
4184
4229
  };
4185
4230
  }
4186
4231
  //#endregion
4187
- export { ke as $, $n as A, Ht as B, hr as C, _r as D, mr as E, hn as F, it as G, wt as H, dn as I, Qe as J, et as K, ln as L, Cn as M, vn as N, vr as O, gn as P, $ as Q, on as R, qr as S, gr as T, yt as U, At as V, ft as W, qe as X, Ke as Y, Re as Z, hi as _, sa as a, ci as b, qi as c, Mi as d, De as et, ji as f, _i as g, xi as h, pa as i, Q as it, Rn as j, fr as k, Bi as l, Ti as m, ha as n, be as nt, Xi as o, Ai as p, $e as q, ma as r, ye as rt, Yi as s, ga as t, Ee as tt, zi as u, di as v, pr as w, ni as x, ui as y, Qt as z };
4232
+ export { ke as $, $n as A, Ht as B, hr as C, _r as D, mr as E, hn as F, it as G, wt as H, dn as I, Qe as J, et as K, ln as L, Cn as M, vn as N, vr as O, gn as P, $ as Q, on as R, qr as S, gr as T, yt as U, At as V, ft as W, qe as X, Ke as Y, Re as Z, hi as _, sa as a, ci as b, qi as c, Mi as d, De as et, ji as f, _i as g, xi as h, pa as i, Q as it, Rn as j, fr as k, Bi as l, Ti as m, ha as n, xe as nt, Xi as o, Ai as p, $e as q, ma as r, be as rt, Yi as s, ga as t, Ee as tt, zi as u, di as v, pr as w, ni as x, ui as y, Qt as z };
4188
4233
 
4189
- //# sourceMappingURL=grad-vue-BlLcBFHO.js.map
4234
+ //# sourceMappingURL=grad-vue-CAmKhHhp.js.map