@illinois-grad/grad-vue 3.0.10 → 3.0.12

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.
@@ -91,95 +91,13 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
91
91
  "type"
92
92
  ]));
93
93
  }
94
- });
95
- //#endregion
96
- //#region src/compose/useScrollRestore.ts
97
- function ge(e, t) {
98
- let n = t ? ue(`${t}:scroll`, 0, { writeDefaults: !1 }) : null, r = O(!!(n?.value && n.value > 0)), i = null, a = null, o = null, s = !1;
99
- function c(e) {
100
- if (typeof window > "u") return null;
101
- let t = e.parentElement;
102
- for (; t && t !== document.documentElement && t !== document.body;) {
103
- let e = window.getComputedStyle(t);
104
- if (e.overflowY === "auto" || e.overflowY === "scroll") return t;
105
- t = t.parentElement;
106
- }
107
- return null;
108
- }
109
- function l() {
110
- n && i && (n.value = i.scrollTop);
111
- }
112
- function u() {
113
- a &&= (a.disconnect(), null), o &&= (o.disconnect(), null);
114
- }
115
- function d() {
116
- r.value = !1;
117
- }
118
- function f() {
119
- return !e.value || !i ? !1 : e.value.getClientRects().length > 0 && i.getClientRects().length > 0 && i.clientHeight > 0;
120
- }
121
- function p() {
122
- if (!n || !i || s) {
123
- d();
124
- return;
125
- }
126
- if (n.value <= 0) {
127
- d();
128
- return;
129
- }
130
- if (f()) {
131
- if (i.scrollHeight - i.clientHeight <= 0) {
132
- d(), u();
133
- return;
134
- }
135
- i.scrollTop = n.value, s = i.scrollTop > 0, s && (d(), u());
136
- }
137
- }
138
- function m(e) {
139
- if (typeof MutationObserver > "u") return;
140
- o = new MutationObserver(() => {
141
- p();
142
- });
143
- let t = e;
144
- for (; t;) o.observe(t, {
145
- attributes: !0,
146
- attributeFilter: [
147
- "class",
148
- "style",
149
- "hidden",
150
- "open"
151
- ]
152
- }), t = t.parentElement;
153
- }
154
- return S(() => {
155
- if (!e.value) {
156
- d();
157
- return;
158
- }
159
- if (!n) {
160
- d();
161
- return;
162
- }
163
- if (i = c(e.value), !i) {
164
- d();
165
- return;
166
- }
167
- p(), typeof ResizeObserver < "u" && (a = new ResizeObserver(() => {
168
- p();
169
- }), a.observe(e.value), a.observe(i)), m(e.value), i.addEventListener("scroll", l);
170
- }), C(() => {
171
- u(), i &&= (i.removeEventListener("scroll", l), null), s = !1;
172
- }), { isPendingScrollRestore: r };
173
- }
174
- //#endregion
175
- //#region src/components/GTreeMenu.vue?vue&type=script&setup=true&lang.ts
176
- var _e = { class: "g-tree-menu__divider" }, ve = {
94
+ }), ge = { class: "g-tree-menu__divider" }, _e = {
177
95
  key: 0,
178
96
  class: "g-tree-menu__divider-line"
179
- }, ye = {
97
+ }, ve = {
180
98
  key: 1,
181
99
  class: "g-tree-menu__expand-all-wrapper"
182
- }, be = { class: "g-tree-menu__content" }, xe = /* @__PURE__ */ u({
100
+ }, ye = { class: "g-tree-menu__content" }, be = /* @__PURE__ */ u({
183
101
  __name: "GTreeMenu",
184
102
  props: {
185
103
  heading: {},
@@ -199,31 +117,31 @@ var _e = { class: "g-tree-menu__divider" }, ve = {
199
117
  setup(e) {
200
118
  let t = e, n = B();
201
119
  E("g-tree-menu-list-type", t.listType), E("g-tree-menu-expanded-storage", t.storageKey ? ue(t.storageKey, {}) : null);
202
- let { isPendingScrollRestore: l } = ge(U("nav-el"), t.storageKey), u = D(/* @__PURE__ */ new Map());
203
- E("g-tree-menu-expandable-items", u);
204
- let d = O({
120
+ let l = D(/* @__PURE__ */ new Map());
121
+ E("g-tree-menu-expandable-items", l);
122
+ let u = O({
205
123
  expanded: !0,
206
124
  version: 0
207
125
  });
208
- E("g-tree-menu-expand-all-signal", d);
209
- let f = r(() => {
210
- if (u.size === 0) return !1;
211
- for (let e of u.values()) if (!e) return !1;
126
+ E("g-tree-menu-expand-all-signal", u);
127
+ let d = r(() => {
128
+ if (l.size === 0) return !1;
129
+ for (let e of l.values()) if (!e) return !1;
212
130
  return !0;
213
131
  });
214
- function p() {
215
- d.value = {
216
- expanded: !f.value,
217
- version: d.value.version + 1
132
+ function f() {
133
+ u.value = {
134
+ expanded: !d.value,
135
+ version: u.value.version + 1
218
136
  };
219
137
  }
220
- function m(e) {
138
+ function p(e) {
221
139
  return e.querySelector("a, button, [tabindex='0']") || e;
222
140
  }
223
- function v(e) {
141
+ function m(e) {
224
142
  return Array.from(e.querySelectorAll("[data-tree-primary]"));
225
143
  }
226
- function y(e) {
144
+ function v(e) {
227
145
  let t = e.currentTarget, n = document.activeElement;
228
146
  if (!t.contains(n) || ![
229
147
  "ArrowUp",
@@ -233,16 +151,16 @@ var _e = { class: "g-tree-menu__divider" }, ve = {
233
151
  "Home",
234
152
  "End"
235
153
  ].includes(e.key)) return;
236
- let r = n.closest(".g-tree-menu__item"), i = r?.querySelector("[data-tree-primary]") ?? null, a = v(t), o = i ? a.indexOf(i) : -1;
154
+ let r = n.closest(".g-tree-menu__item"), i = r?.querySelector("[data-tree-primary]") ?? null, a = m(t), o = i ? a.indexOf(i) : -1;
237
155
  switch (e.key) {
238
156
  case "ArrowDown": {
239
157
  let e = a[o + 1];
240
- e && m(e).focus();
158
+ e && p(e).focus();
241
159
  break;
242
160
  }
243
161
  case "ArrowUp": {
244
162
  let e = a[o - 1];
245
- e && m(e).focus();
163
+ e && p(e).focus();
246
164
  break;
247
165
  }
248
166
  case "ArrowRight":
@@ -252,42 +170,35 @@ var _e = { class: "g-tree-menu__divider" }, ve = {
252
170
  e && e.click();
253
171
  } else {
254
172
  let e = a[o + 1];
255
- e && m(e).focus();
173
+ e && p(e).focus();
256
174
  }
257
175
  break;
258
176
  case "ArrowLeft":
259
177
  if (!r) break;
260
178
  if (r.querySelector("[aria-expanded='true']") !== null) {
261
179
  let e = r.querySelector(".g-tree-menu__toggle-btn");
262
- e && e.click(), i && g(() => m(i).focus());
180
+ e && e.click(), i && g(() => p(i).focus());
263
181
  } else {
264
182
  let e = r.parentElement?.closest(".g-tree-menu__item");
265
183
  if (e) {
266
184
  let t = e.querySelector("[data-tree-primary]");
267
- t && m(t).focus();
185
+ t && p(t).focus();
268
186
  }
269
187
  }
270
188
  break;
271
189
  case "Home":
272
- a.length > 0 && m(a[0]).focus();
190
+ a.length > 0 && p(a[0]).focus();
273
191
  break;
274
192
  case "End":
275
- a.length > 0 && m(a[a.length - 1]).focus();
193
+ a.length > 0 && p(a[a.length - 1]).focus();
276
194
  break;
277
195
  }
278
196
  e.preventDefault();
279
197
  }
280
- return (r, u) => (T(), o("nav", h({
281
- ref: "nav-el",
282
- class: ["g-tree-menu", [
283
- `g-tree-menu--${t.theme}`,
284
- { "g-tree-menu--restore-pending": R(l) },
285
- { "g-tree-menu--small-heading": e.smallHeading }
286
- ]]
287
- }, {
198
+ return (r, l) => (T(), o("nav", h({ class: ["g-tree-menu", [`g-tree-menu--${t.theme}`, { "g-tree-menu--small-heading": e.smallHeading }]] }, {
288
199
  "aria-labelledby": e.heading ? R(n) : void 0,
289
200
  "aria-label": e.heading ? void 0 : "Tree Menu"
290
- }, { onKeydown: y }), [
201
+ }, { onKeydown: v }), [
291
202
  e.heading ? (T(), i(j(e.headingLevel), {
292
203
  key: 0,
293
204
  id: R(n),
@@ -296,11 +207,11 @@ var _e = { class: "g-tree-menu__divider" }, ve = {
296
207
  default: J(() => [c(P(e.heading), 1)]),
297
208
  _: 1
298
209
  }, 8, ["id"])) : a("", !0),
299
- s("div", _e, [e.smallHeading ? a("", !0) : (T(), o("div", ve)), e.showExpandAll ? (T(), o("div", ye, [s("button", {
210
+ s("div", ge, [e.smallHeading ? a("", !0) : (T(), o("div", _e)), e.showExpandAll ? (T(), o("div", ve, [s("button", {
300
211
  class: "g-tree-menu__expand-all-btn",
301
- onClick: p
212
+ onClick: f
302
213
  }, [(T(), o("svg", {
303
- class: _(["g-tree-menu__expand-all-icon", { "g-tree-menu__expand-all-icon--collapse": f.value }]),
214
+ class: _(["g-tree-menu__expand-all-icon", { "g-tree-menu__expand-all-icon--collapse": d.value }]),
304
215
  role: "none",
305
216
  viewBox: "0 0 24 24",
306
217
  fill: "none",
@@ -308,11 +219,11 @@ var _e = { class: "g-tree-menu__divider" }, ve = {
308
219
  "stroke-width": "2.5",
309
220
  "stroke-linecap": "round",
310
221
  "stroke-linejoin": "round"
311
- }, [...u[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(f.value ? "Collapse all" : "Expand all"), 1)])])) : a("", !0)]),
312
- s("div", be, [A(r.$slots, "default")])
222
+ }, [...l[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(d.value ? "Collapse all" : "Expand all"), 1)])])) : a("", !0)]),
223
+ s("div", ye, [A(r.$slots, "default")])
313
224
  ], 16));
314
225
  }
315
- }), Se = /* @__PURE__ */ u({
226
+ }), xe = /* @__PURE__ */ u({
316
227
  name: "GTreeMenuList",
317
228
  props: { listType: { default: void 0 } },
318
229
  setup(e) {
@@ -329,16 +240,13 @@ var _e = { class: "g-tree-menu__divider" }, ve = {
329
240
  _: 3
330
241
  }, 8, ["role"]));
331
242
  }
332
- }), Ce = {
243
+ }), Se = {
333
244
  key: 0,
334
245
  class: "g-tree-menu__row"
335
- }, we = { class: "g-tree-menu__row-content-text" }, Te = {
246
+ }, Ce = { class: "g-tree-menu__row-content-text" }, we = {
336
247
  key: 1,
337
248
  class: "g-tree-menu__row g-tree-menu__row--leaf"
338
- }, Ee = {
339
- class: "g-tree-menu__row-content",
340
- "data-tree-primary": ""
341
- }, De = /* @__PURE__ */ u({
249
+ }, Te = /* @__PURE__ */ u({
342
250
  name: "GTreeMenuItem",
343
251
  inheritAttrs: !1,
344
252
  props: {
@@ -410,12 +318,12 @@ var _e = { class: "g-tree-menu__divider" }, ve = {
410
318
  class: "g-tree-menu__item",
411
319
  "data-tree-expandable": g.value ? "true" : void 0
412
320
  }), {
413
- default: J(() => [g.value ? (T(), o("div", Ce, [s("div", {
321
+ default: J(() => [g.value ? (T(), o("div", Se, [s("div", {
414
322
  class: "g-tree-menu__toggle-btn",
415
323
  onClick: D
416
324
  }, [(T(), o("svg", {
417
325
  class: _(["g-tree-menu__chevron", { "g-tree-menu__chevron--expanded": b.value }]),
418
- role: "none presentation",
326
+ role: "none",
419
327
  viewBox: "0 0 24 24",
420
328
  fill: "none",
421
329
  stroke: "currentColor",
@@ -429,7 +337,12 @@ var _e = { class: "g-tree-menu__divider" }, ve = {
429
337
  "data-tree-primary": "",
430
338
  onClick: L,
431
339
  onKeydown: V
432
- }, [s("span", we, [A(e.$slots, "default")])], 544)])) : (T(), o("div", Te, [t[1] ||= s("span", { class: "g-tree-menu__spacer" }, null, -1), s("span", Ee, [A(e.$slots, "default")])])), g.value && b.value ? (T(), i(Se, {
340
+ }, [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", {
341
+ class: "g-tree-menu__row-content",
342
+ ref_key: "contentRef",
343
+ ref: C,
344
+ "data-tree-primary": ""
345
+ }, [A(e.$slots, "default")], 512)])), g.value && b.value ? (T(), i(xe, {
433
346
  key: 2,
434
347
  id: R(f) + "-children"
435
348
  }, {
@@ -442,7 +355,7 @@ var _e = { class: "g-tree-menu__divider" }, ve = {
442
355
  });
443
356
  //#endregion
444
357
  //#region src/compose/useForm.ts
445
- function Oe() {
358
+ function Ee() {
446
359
  let e = M({}), t = O(!1), n = r(() => {
447
360
  let t = {};
448
361
  return Object.entries(e).forEach(([e, n]) => {
@@ -484,18 +397,18 @@ function Oe() {
484
397
  }
485
398
  //#endregion
486
399
  //#region src/compose/useWebComponentForm.ts
487
- function ke() {
400
+ function De() {
488
401
  let e = globalThis;
489
402
  return e.__GRAD_VUE_WC_FORMS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_FORMS__;
490
403
  }
491
- function Ae(e = "default") {
492
- let t = ke(), n = e || "default";
493
- return t.has(n) || t.set(n, Oe()), t.get(n);
404
+ function Oe(e = "default") {
405
+ let t = De(), n = e || "default";
406
+ return t.has(n) || t.set(n, Ee()), t.get(n);
494
407
  }
495
408
  //#endregion
496
409
  //#region src/compose/useFormField.ts
497
410
  function $(e) {
498
- let t = z(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (fe() ? Ae(i) : null), o = r(() => {
411
+ let t = z(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (fe() ? Oe(i) : null), o = r(() => {
499
412
  let t = [];
500
413
  return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
501
414
  }), s = r(() => o.value.length > 0), c = e.name;
@@ -514,7 +427,7 @@ function $(e) {
514
427
  }
515
428
  //#endregion
516
429
  //#region src/components/form/GFormErrorMessages.vue?vue&type=script&setup=true&lang.ts
517
- var je = ["id"], Me = /* @__PURE__ */ u({
430
+ var ke = ["id"], Ae = /* @__PURE__ */ u({
518
431
  __name: "GFormErrorMessages",
519
432
  props: {
520
433
  errors: {},
@@ -531,30 +444,31 @@ var je = ["id"], Me = /* @__PURE__ */ u({
531
444
  class: "g-form-error-message"
532
445
  }, [r[0] ||= s("svg", {
533
446
  class: "g-form-error-icon",
447
+ role: "none",
534
448
  xmlns: "http://www.w3.org/2000/svg",
535
449
  viewBox: "0 0 640 640"
536
450
  }, [s("path", {
537
451
  fill: "currentColor",
538
452
  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"
539
- })], -1), c(" " + P(e), 1)]))), 128))], 8, je)) : a("", !0);
453
+ })], -1), c(" " + P(e), 1)]))), 128))], 8, ke)) : a("", !0);
540
454
  }
541
- }), Ne = ["for"], Pe = {
455
+ }), je = ["for"], Me = {
542
456
  key: 0,
543
457
  class: "g-text-input-required",
544
458
  "aria-hidden": "true"
545
- }, Fe = ["id"], Ie = {
459
+ }, Ne = ["id"], Pe = {
546
460
  key: 0,
547
461
  class: "g-text-input-prefix"
548
- }, Le = [
462
+ }, Fe = [
549
463
  "value",
550
464
  "placeholder",
551
465
  "disabled",
552
466
  "required",
553
467
  "aria-invalid"
554
- ], Re = {
468
+ ], Ie = {
555
469
  key: 1,
556
470
  class: "g-text-input-suffix"
557
- }, ze = /* @__PURE__ */ u({
471
+ }, Le = /* @__PURE__ */ u({
558
472
  inheritAttrs: !1,
559
473
  __name: "GTextInput",
560
474
  props: /*@__PURE__*/ m({
@@ -618,14 +532,14 @@ var je = ["id"], Me = /* @__PURE__ */ u({
618
532
  key: 0,
619
533
  for: m.value,
620
534
  class: "g-text-input-label"
621
- }, [c(P(n.label), 1), n.required ? (T(), o("span", Pe, " *")) : a("", !0)], 8, Ne)) : a("", !0),
535
+ }, [c(P(n.label), 1), n.required ? (T(), o("span", Me, " *")) : a("", !0)], 8, je)) : a("", !0),
622
536
  t.$slots.instructions || e.instructions ? (T(), o("div", {
623
537
  key: 1,
624
538
  id: "instructions-" + R(u),
625
539
  class: "g-text-input-instructions"
626
- }, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, Fe)) : a("", !0),
540
+ }, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, Ne)) : a("", !0),
627
541
  s("div", { class: _([{ "g-text-input-field-wrapper": !0 }, `g-text-input-field-wrapper--${e.name || "nameless"}`]) }, [
628
- n.prefix ? (T(), o("span", Ie, P(n.prefix), 1)) : a("", !0),
542
+ n.prefix ? (T(), o("span", Pe, P(n.prefix), 1)) : a("", !0),
629
543
  s("input", h({
630
544
  value: i.value,
631
545
  placeholder: n.placeholder,
@@ -642,37 +556,37 @@ var je = ["id"], Me = /* @__PURE__ */ u({
642
556
  id: m.value,
643
557
  "aria-describedby": t.$slots.instructions || e.instructions ? "instructions-" + R(u) : void 0,
644
558
  "aria-errormessage": R(v) ? "error-message-" + R(u) : void 0
645
- }, { "aria-invalid": R(v) ? "true" : "false" }), null, 16, Le),
646
- n.suffix ? (T(), o("span", Re, P(n.suffix), 1)) : a("", !0)
559
+ }, { "aria-invalid": R(v) ? "true" : "false" }), null, 16, Fe),
560
+ n.suffix ? (T(), o("span", Ie, P(n.suffix), 1)) : a("", !0)
647
561
  ], 2),
648
- l(Me, {
562
+ l(Ae, {
649
563
  errors: R(g),
650
564
  id: "error-message-" + R(u)
651
565
  }, null, 8, ["errors", "id"])
652
566
  ], 2));
653
567
  }
654
- }), Be = 100, Ve = 200, He = 102, Ue = O([]), We = O([]), Ge = O([]);
655
- function Ke() {
656
- if (!(typeof document > "u")) if (Ge.value.length > 0) {
568
+ }), Re = 100, ze = 200, Be = 102, Ve = O([]), He = O([]), Ue = O([]);
569
+ function We() {
570
+ if (!(typeof document > "u")) if (Ue.value.length > 0) {
657
571
  let e = window.innerWidth - document.documentElement.clientWidth;
658
572
  document.body.classList.add("g-scroll-lock"), document.body.style.paddingRight = `${e}px`, document.body.style.setProperty("--g-scrollbar-width", `${e}px`);
659
573
  } else document.body.style.paddingRight = "0", document.body.classList.remove("g-scroll-lock"), document.body.style.removeProperty("--g-scrollbar-width");
660
574
  }
661
- function qe(e, t = !1, n = !1) {
575
+ function Ge(e, t = !1, n = !1) {
662
576
  if (typeof document > "u") return {};
663
- let i = t ? We : Ue;
577
+ let i = t ? He : Ve;
664
578
  function a() {
665
- i.value.push(e), n && !Ge.value.includes(e) && (Ge.value.push(e), Ke());
579
+ i.value.push(e), n && !Ue.value.includes(e) && (Ue.value.push(e), We());
666
580
  }
667
581
  function o() {
668
582
  let t = i.value.lastIndexOf(e);
669
583
  t !== -1 && i.value.splice(t, 1);
670
- let n = Ge.value.lastIndexOf(e);
671
- n !== -1 && (Ge.value.splice(n, 1), Ke());
584
+ let n = Ue.value.lastIndexOf(e);
585
+ n !== -1 && (Ue.value.splice(n, 1), We());
672
586
  }
673
- let s = r(() => !t && We.value.length > 0 ? !1 : i.value.length > 0 && i.value[i.value.length - 1] === e), c = r(() => {
587
+ let s = r(() => !t && He.value.length > 0 ? !1 : i.value.length > 0 && i.value[i.value.length - 1] === e), c = r(() => {
674
588
  let n = i.value.indexOf(e);
675
- return n === -1 ? 0 : (t ? Ve : Be) + n;
589
+ return n === -1 ? 0 : (t ? ze : Re) + n;
676
590
  });
677
591
  return x(o), {
678
592
  push: a,
@@ -681,31 +595,31 @@ function qe(e, t = !1, n = !1) {
681
595
  zIndex: c
682
596
  };
683
597
  }
684
- function Je() {
598
+ function Ke() {
685
599
  return typeof document > "u" ? {} : {
686
- hasModal: r(() => We.value.length > 0),
687
- hasOverlay: r(() => Ue.value.length > 0 || We.value.length > 0),
688
- hasScrollLock: r(() => Ge.value.length > 0)
600
+ hasModal: r(() => He.value.length > 0),
601
+ hasOverlay: r(() => Ve.value.length > 0 || He.value.length > 0),
602
+ hasScrollLock: r(() => Ue.value.length > 0)
689
603
  };
690
604
  }
691
- function Ye() {
605
+ function qe() {
692
606
  let e = 0;
693
- return Ue.value.forEach((t, n) => {
694
- e = Math.max(e, Be + n);
695
- }), We.value.forEach((t, n) => {
696
- e = Math.max(e, Ve + n);
697
- }), e > 0 ? e + 1 : He;
607
+ return Ve.value.forEach((t, n) => {
608
+ e = Math.max(e, Re + n);
609
+ }), He.value.forEach((t, n) => {
610
+ e = Math.max(e, ze + n);
611
+ }), e > 0 ? e + 1 : Be;
698
612
  }
699
613
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
700
- var Xe = (e) => e != null;
614
+ var Je = (e) => e != null;
701
615
  //#endregion
702
616
  //#region ../../node_modules/@vueuse/integrations/dist/useFocusTrap-lXZ_YG-8.js
703
- function Ze(e, t = {}) {
617
+ function Ye(e, t = {}) {
704
618
  let n, { immediate: i, ...a } = t, o = N(!1), s = N(!1), c = (e) => n && n.activate(e), l = (e) => n && n.deactivate(e);
705
619
  return K(r(() => Z(L(e)).map((e) => {
706
620
  let t = L(e);
707
621
  return typeof t == "string" ? t : ne(t);
708
- }).filter(Xe)), (e) => {
622
+ }).filter(Je)), (e) => {
709
623
  if (e.length) if (!n) n = de(e, {
710
624
  ...a,
711
625
  onActivate() {
@@ -734,7 +648,7 @@ function Ze(e, t = {}) {
734
648
  }
735
649
  //#endregion
736
650
  //#region src/compose/useOverlayFocus.ts
737
- var Qe = [
651
+ var Xe = [
738
652
  "a[href]",
739
653
  "button:not([disabled])",
740
654
  "input:not([disabled])",
@@ -743,8 +657,8 @@ var Qe = [
743
657
  "[tabindex]:not([tabindex='-1'])",
744
658
  "[contenteditable='true']"
745
659
  ].join(",");
746
- function $e(e, t, n = !1) {
747
- let r = O(!1), i = () => !!e.value?.querySelector(Qe), { activate: a, deactivate: o, pause: s, unpause: c } = Ze(e, {
660
+ function Ze(e, t, n = !1) {
661
+ let r = O(!1), i = () => !!e.value?.querySelector(Xe), { activate: a, deactivate: o, pause: s, unpause: c } = Ye(e, {
748
662
  immediate: !1,
749
663
  clickOutsideDeactivates: n,
750
664
  initialFocus: () => {
@@ -788,7 +702,7 @@ function $e(e, t, n = !1) {
788
702
  }
789
703
  //#endregion
790
704
  //#region src/compose/useOverlayEscape.ts
791
- function et(e, t, n, r, i) {
705
+ function Qe(e, t, n, r, i) {
792
706
  function a(i) {
793
707
  if (!(!n.value || !t.value)) {
794
708
  for (let t of e) if (t.value?.contains(i.target)) return;
@@ -808,7 +722,7 @@ function et(e, t, n, r, i) {
808
722
  }
809
723
  //#endregion
810
724
  //#region src/compose/popoverPosition.ts
811
- function tt(e, t, n, r) {
725
+ function $e(e, t, n, r) {
812
726
  let i = r?.gap ?? 8, a = r?.margin ?? 16, o = r?.preferAbove ?? !1, s = !1, c = !1, l;
813
727
  o ? e.top - t.height - i > n.top + a ? (l = e.top - t.height - i, s = !0) : e.bottom + t.height + i <= n.bottom - a ? l = e.bottom + i : (l = n.top + a, c = !0) : e.bottom + t.height + i > n.bottom - a && e.top - t.height - i > n.top + a ? (l = e.top - t.height - i, s = !0) : e.bottom + t.height + i > n.bottom - a && e.top - t.height - i <= n.top + a ? (l = n.top + a, c = !0) : l = e.bottom + i;
814
728
  let u = e.left + (e.width - t.width) / 2;
@@ -823,8 +737,16 @@ function tt(e, t, n, r) {
823
737
  };
824
738
  }
825
739
  //#endregion
826
- //#region src/components/GPopover.vue?vue&type=script&setup=true&lang.ts
827
- var nt = { class: "g-popover-wrap" }, rt = ["id"], it = ["aria-labelledby", "aria-label"], at = /* @__PURE__ */ u({
740
+ //#region src/components/GClientOnly.vue
741
+ var et = /* @__PURE__ */ u({
742
+ __name: "GClientOnly",
743
+ setup(e) {
744
+ let t = O(fe());
745
+ return S(() => {
746
+ t.value = !0;
747
+ }), (e, n) => t.value ? A(e.$slots, "default", { key: 0 }) : A(e.$slots, "fallback", { key: 1 });
748
+ }
749
+ }), tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "aria-label"], it = /* @__PURE__ */ u({
828
750
  __name: "GPopover",
829
751
  props: {
830
752
  minimal: {
@@ -846,8 +768,8 @@ var nt = { class: "g-popover-wrap" }, rt = ["id"], it = ["aria-labelledby", "ari
846
768
  K(I(d, "modelValue"), (e) => {
847
769
  p.value = e;
848
770
  });
849
- 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 } = qe(w, !0), { activate: M, deactivate: N } = $e(b, k, !0);
850
- et([b, v], k, p, F, D), K(p, (e) => {
771
+ 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 } = Ge(w, !0), { activate: M, deactivate: N } = Ze(b, k, !0);
772
+ Qe([b, v], k, p, F, D), K(p, (e) => {
851
773
  e ? (g(() => {
852
774
  g(() => M());
853
775
  }), E(), f("show")) : (N(), D(), f("hide"));
@@ -882,7 +804,7 @@ var nt = { class: "g-popover-wrap" }, rt = ["id"], it = ["aria-labelledby", "ari
882
804
  }, q.value = !1, W.value = !1, V.value = { left: "50%" };
883
805
  return;
884
806
  }
885
- let { top: r, left: i, xOffset: a, placedAbove: o, overlay: s } = tt(n.getBoundingClientRect(), e, t, { gap: d.minimal ? 0 : 8 });
807
+ let { top: r, left: i, xOffset: a, placedAbove: o, overlay: s } = $e(n.getBoundingClientRect(), e, t, { gap: d.minimal ? 0 : 8 });
886
808
  z.value = {
887
809
  top: r,
888
810
  left: i
@@ -902,96 +824,99 @@ var nt = { class: "g-popover-wrap" }, rt = ["id"], it = ["aria-labelledby", "ari
902
824
  show: P,
903
825
  hide: F,
904
826
  toggle: L
905
- }), (r, c) => (T(), o("div", nt, [h.value ? (T(), o("div", {
827
+ }), (r, c) => (T(), o("div", tt, [h.value ? (T(), o("div", {
906
828
  key: 0,
907
829
  ref_key: "triggerRef",
908
830
  ref: v,
909
831
  class: "g-popover-trigger",
910
832
  id: `${R(w)}-trigger`
911
- }, [A(r.$slots, "trigger", { toggle: L })], 8, rt)) : a("", !0), (T(), i(t, {
912
- to: "#modal-root",
913
- disabled: R(C)
914
- }, [l(n, {
915
- name: "g-popover-expand",
916
- appear: ""
917
- }, {
918
- default: J(() => [R(S) || p.value ? Y((T(), o("div", {
919
- key: 0,
920
- ref_key: "popoverRef",
921
- ref: b,
922
- class: _({
923
- "g-popover": !0,
924
- "g-popover-above": W.value,
925
- "g-popover-below": !W.value,
926
- "g-popover-minimal": e.minimal
927
- }),
928
- role: "dialog",
929
- "aria-modal": "true",
930
- "aria-labelledby": h.value ? `${R(w)}-trigger` : void 0,
931
- "aria-label": h.value ? void 0 : "Popover",
932
- style: y({
933
- top: z.value.top + "px",
934
- left: z.value.left + "px",
935
- zIndex: R(j)
936
- })
937
- }, [
938
- !q.value && !e.minimal ? (T(), o("div", {
833
+ }, [A(r.$slots, "trigger", { toggle: L })], 8, nt)) : a("", !0), l(et, null, {
834
+ default: J(() => [(T(), i(t, {
835
+ to: "#modal-root",
836
+ disabled: R(C)
837
+ }, [l(n, {
838
+ name: "g-popover-expand",
839
+ appear: ""
840
+ }, {
841
+ default: J(() => [R(S) || p.value ? Y((T(), o("div", {
939
842
  key: 0,
940
- class: _(["g-popover-arrow", { "g-popover-arrow-above": W.value }]),
941
- style: y(V.value),
942
- "aria-hidden": "true"
943
- }, null, 6)) : a("", !0),
944
- A(r.$slots, "default"),
945
- e.minimal ? a("", !0) : (T(), o("button", {
946
- key: 1,
947
- class: "g-popover-close",
948
- type: "button",
949
- "aria-label": "Close popover",
950
- onClick: F
951
- }, [...c[0] ||= [s("svg", {
952
- class: "g-popover-close-icon",
953
- xmlns: "http://www.w3.org/2000/svg",
954
- viewBox: "0 0 51.26 51.26",
955
- "aria-hidden": "true"
956
- }, [s("path", {
957
- fill: "currentColor",
958
- 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"
959
- })], -1)]]))
960
- ], 14, it)), [[G, p.value]]) : a("", !0)]),
843
+ ref_key: "popoverRef",
844
+ ref: b,
845
+ class: _({
846
+ "g-popover": !0,
847
+ "g-popover-above": W.value,
848
+ "g-popover-below": !W.value,
849
+ "g-popover-minimal": e.minimal
850
+ }),
851
+ role: "dialog",
852
+ "aria-modal": "true",
853
+ "aria-labelledby": h.value ? `${R(w)}-trigger` : void 0,
854
+ "aria-label": h.value ? void 0 : "Popover",
855
+ style: y({
856
+ top: z.value.top + "px",
857
+ left: z.value.left + "px",
858
+ zIndex: R(j)
859
+ })
860
+ }, [
861
+ !q.value && !e.minimal ? (T(), o("div", {
862
+ key: 0,
863
+ class: _(["g-popover-arrow", { "g-popover-arrow-above": W.value }]),
864
+ style: y(V.value),
865
+ "aria-hidden": "true"
866
+ }, null, 6)) : a("", !0),
867
+ A(r.$slots, "default"),
868
+ e.minimal ? a("", !0) : (T(), o("button", {
869
+ key: 1,
870
+ class: "g-popover-close",
871
+ type: "button",
872
+ "aria-label": "Close popover",
873
+ onClick: F
874
+ }, [...c[0] ||= [s("svg", {
875
+ class: "g-popover-close-icon",
876
+ xmlns: "http://www.w3.org/2000/svg",
877
+ viewBox: "0 0 51.26 51.26",
878
+ "aria-hidden": "true"
879
+ }, [s("path", {
880
+ fill: "currentColor",
881
+ 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"
882
+ })], -1)]]))
883
+ ], 14, rt)), [[G, p.value]]) : a("", !0)]),
884
+ _: 3
885
+ })], 8, ["disabled"]))]),
961
886
  _: 3
962
- })], 8, ["disabled"]))]));
887
+ })]));
963
888
  }
964
- }), ot = 1;
965
- function st(e = "v-gtooltip") {
966
- return `${e}-${++ot}`;
889
+ }), at = 1;
890
+ function ot(e = "v-gtooltip") {
891
+ return `${e}-${++at}`;
967
892
  }
968
- function ct(e, t = "v-gtooltip") {
893
+ function st(e, t = "v-gtooltip") {
969
894
  let n = e.getAttribute("aria-describedby");
970
895
  if (n) return n;
971
- let r = st(t);
896
+ let r = ot(t);
972
897
  return e.setAttribute("aria-describedby", r), r;
973
898
  }
974
- function lt(e, t) {
899
+ function ct(e, t) {
975
900
  let n = document.createElement("div");
976
901
  return n.className = "v-gtooltip", n.textContent = e, n.setAttribute("role", "tooltip"), n.setAttribute("id", t), n;
977
902
  }
978
- function ut(e) {
903
+ function lt(e) {
979
904
  (document.getElementById("modal-root") ?? document.body).appendChild(e);
980
905
  }
981
- function dt(e, t) {
982
- let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } = tt(n, r, new DOMRect(0, 0, window.innerWidth, window.innerHeight), {
906
+ function ut(e, t) {
907
+ let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } = $e(n, r, new DOMRect(0, 0, window.innerWidth, window.innerHeight), {
983
908
  gap: 8,
984
909
  margin: 8,
985
910
  preferAbove: !0
986
911
  }), s = (n.left + n.width / 2 - a) / r.width * 100;
987
- t.style.setProperty("--v-gtooltip-arrow-x", `${s}%`), t.classList.remove("v-gtooltip-bottom"), o || t.classList.add("v-gtooltip-bottom"), t.style.left = `${a}px`, t.style.top = `${i}px`, t.style.zIndex = `${Ye()}`, t.style.opacity = "1";
912
+ t.style.setProperty("--v-gtooltip-arrow-x", `${s}%`), t.classList.remove("v-gtooltip-bottom"), o || t.classList.add("v-gtooltip-bottom"), t.style.left = `${a}px`, t.style.top = `${i}px`, t.style.zIndex = `${qe()}`, t.style.visibility = "visible", t.style.opacity = "1";
988
913
  }
989
- function ft(e) {
990
- e.style.opacity = "0";
914
+ function dt(e) {
915
+ e.style.opacity = "0", e.style.visibility = "hidden";
991
916
  }
992
917
  //#endregion
993
918
  //#region src/components/GTooltip.vue
994
- var pt = /* @__PURE__ */ u({
919
+ var ft = /* @__PURE__ */ u({
995
920
  __name: "GTooltip",
996
921
  props: { text: {} },
997
922
  emits: ["tooltip-hide"],
@@ -1006,12 +931,12 @@ var pt = /* @__PURE__ */ u({
1006
931
  return t instanceof HTMLElement ? t : null;
1007
932
  }
1008
933
  function S() {
1009
- y && (v || (v = l.value ? st("g-tooltip") : ct(y, "g-tooltip"), l.value && y.setAttribute("aria-describedby", v)), f.value || (f.value = lt(i.text, v), ut(f.value), h = new ResizeObserver(() => {
1010
- f.value && (p.value || m.value) && y && dt(y, f.value);
934
+ y && (v || (v = l.value ? ot("g-tooltip") : st(y, "g-tooltip"), l.value && y.setAttribute("aria-describedby", v)), f.value || (f.value = ct(i.text, v), lt(f.value), h = new ResizeObserver(() => {
935
+ f.value && (p.value || m.value) && y && ut(y, f.value);
1011
936
  }), h.observe(f.value)));
1012
937
  }
1013
938
  function C() {
1014
- f.value && (p.value || m.value) && y && dt(y, f.value);
939
+ f.value && (p.value || m.value) && y && ut(y, f.value);
1015
940
  }
1016
941
  function w() {
1017
942
  p.value = !0;
@@ -1057,10 +982,10 @@ var pt = /* @__PURE__ */ u({
1057
982
  f.value && (f.value.textContent = e);
1058
983
  }), K(() => p.value || m.value, (e) => {
1059
984
  if (e) {
1060
- S(), f.value && y && dt(y, f.value), g ||= (window.addEventListener("scroll", C, { capture: !0 }), !0);
985
+ S(), f.value && y && ut(y, f.value), g ||= (window.addEventListener("scroll", C, { capture: !0 }), !0);
1061
986
  return;
1062
987
  }
1063
- g &&= (window.removeEventListener("scroll", C, { capture: !0 }), !1), f.value && (ft(f.value), _ && clearTimeout(_), _ = window.setTimeout(() => {
988
+ g &&= (window.removeEventListener("scroll", C, { capture: !0 }), !1), f.value && (dt(f.value), _ && clearTimeout(_), _ = window.setTimeout(() => {
1064
989
  s("tooltip-hide");
1065
990
  }, 150));
1066
991
  }), x(() => {
@@ -1080,11 +1005,11 @@ var pt = /* @__PURE__ */ u({
1080
1005
  class: "g-tooltip-trigger"
1081
1006
  }, [A(e.$slots, "trigger")], 512)) : a("", !0)], 512));
1082
1007
  }
1083
- }), mt = ["disabled"], ht = { class: "g-select-btn-legend" }, gt = {
1008
+ }), pt = ["disabled"], mt = { class: "g-select-btn-legend" }, ht = {
1084
1009
  key: 0,
1085
1010
  class: "g-select-btn-required",
1086
1011
  "aria-hidden": "true"
1087
- }, _t = { class: "g-select-btn-row" }, vt = [
1012
+ }, gt = { class: "g-select-btn-row" }, _t = [
1088
1013
  "id",
1089
1014
  "name",
1090
1015
  "value",
@@ -1092,7 +1017,7 @@ var pt = /* @__PURE__ */ u({
1092
1017
  "disabled",
1093
1018
  "required",
1094
1019
  "onChange"
1095
- ], yt = ["for"], bt = /* @__PURE__ */ u({
1020
+ ], vt = ["for"], yt = /* @__PURE__ */ u({
1096
1021
  __name: "GSelectButton",
1097
1022
  props: /*@__PURE__*/ m({
1098
1023
  options: {},
@@ -1134,7 +1059,7 @@ var pt = /* @__PURE__ */ u({
1134
1059
  return (t, n) => (T(), o("fieldset", {
1135
1060
  class: _(g.value),
1136
1061
  disabled: i.disabled
1137
- }, [s("legend", ht, [c(P(i.label), 1), i.required ? (T(), o("span", gt, " *")) : a("", !0)]), s("div", { class: _(["g-select-btn-wrapper", { "g-select-btn-has-error": R(m) }]) }, [s("div", _t, [(T(!0), o(e, null, k(h.value, (t, n) => (T(), o(e, { key: t.value }, [s("input", {
1062
+ }, [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", {
1138
1063
  class: "g-select-btn-radio",
1139
1064
  type: "radio",
1140
1065
  id: `${R(f)}-${t.value}`,
@@ -1144,29 +1069,29 @@ var pt = /* @__PURE__ */ u({
1144
1069
  disabled: i.disabled,
1145
1070
  required: i.required && n === 0,
1146
1071
  onChange: (e) => y(t.value)
1147
- }, null, 40, vt), s("label", {
1072
+ }, null, 40, _t), s("label", {
1148
1073
  for: `${R(f)}-${t.value}`,
1149
1074
  class: _(v(t.value === d.value))
1150
- }, P(t.label), 11, yt)], 64))), 128))]), l(Me, {
1075
+ }, P(t.label), 11, vt)], 64))), 128))]), l(Ae, {
1151
1076
  errors: R(p),
1152
1077
  id: "error-message-" + R(f)
1153
- }, null, 8, ["errors", "id"])], 2)], 10, mt));
1078
+ }, null, 8, ["errors", "id"])], 2)], 10, pt));
1154
1079
  }
1155
- }), xt = ["width", "height"], St = [
1080
+ }), bt = ["width", "height"], xt = [
1156
1081
  "cx",
1157
1082
  "cy",
1158
1083
  "r"
1159
- ], Ct = [
1084
+ ], St = [
1160
1085
  "cx",
1161
1086
  "cy",
1162
1087
  "r",
1163
1088
  "stroke-dasharray",
1164
1089
  "stroke-dashoffset"
1165
- ], wt = [
1090
+ ], Ct = [
1166
1091
  "cx",
1167
1092
  "cy",
1168
1093
  "r"
1169
- ], Tt = /* @__PURE__ */ u({
1094
+ ], wt = /* @__PURE__ */ u({
1170
1095
  __name: "GProgress",
1171
1096
  props: {
1172
1097
  label: { default: "Loading" },
@@ -1207,7 +1132,7 @@ var pt = /* @__PURE__ */ u({
1207
1132
  r: i.value,
1208
1133
  "stroke-width": 4,
1209
1134
  fill: "none"
1210
- }, null, 8, St), n.value ? (T(), o("circle", {
1135
+ }, null, 8, xt), n.value ? (T(), o("circle", {
1211
1136
  key: 0,
1212
1137
  class: "g-progress__value",
1213
1138
  cx: i.value + 4 / 2,
@@ -1221,7 +1146,7 @@ var pt = /* @__PURE__ */ u({
1221
1146
  transform: "rotate(-90deg)",
1222
1147
  "transform-origin": "center"
1223
1148
  }
1224
- }, null, 8, Ct)) : (T(), o("circle", {
1149
+ }, null, 8, St)) : (T(), o("circle", {
1225
1150
  key: 1,
1226
1151
  class: "g-progress__spinner",
1227
1152
  cx: i.value + 4 / 2,
@@ -1229,13 +1154,13 @@ var pt = /* @__PURE__ */ u({
1229
1154
  r: i.value,
1230
1155
  "stroke-width": 4,
1231
1156
  fill: "none"
1232
- }, null, 8, wt))], 10, xt))], 16));
1157
+ }, null, 8, Ct))], 10, bt))], 16));
1233
1158
  }
1234
- }), Et = [
1159
+ }), Tt = [
1235
1160
  "id",
1236
1161
  "aria-labelledby",
1237
1162
  "aria-describedby"
1238
- ], Dt = { class: "g-alertdialog-inner" }, Ot = ["id"], kt = ["id"], At = { class: "g-alertdialog-actions" }, jt = /* @__PURE__ */ u({
1163
+ ], Et = { class: "g-alertdialog-inner" }, Dt = ["id"], Ot = ["id"], kt = { class: "g-alertdialog-actions" }, At = /* @__PURE__ */ u({
1239
1164
  __name: "GAlertDialog",
1240
1165
  props: {
1241
1166
  label: { default: "Confirmation" },
@@ -1244,11 +1169,11 @@ var pt = /* @__PURE__ */ u({
1244
1169
  },
1245
1170
  emits: ["cancel", "confirm"],
1246
1171
  setup(e, { emit: r }) {
1247
- let a = e, o = r, u = O(null), d = O(!0), f = B(), { pop: p, push: m, isTop: h, zIndex: g } = qe(f, !0, !0), { deactivate: _, activate: v } = $e(u, h);
1172
+ let a = e, o = r, u = O(null), d = O(!0), f = B(), { pop: p, push: m, isTop: h, zIndex: g } = Ge(f, !0, !0), { deactivate: _, activate: v } = Ze(u, h);
1248
1173
  function x() {
1249
1174
  o("cancel");
1250
1175
  }
1251
- return et([u], h, d, x, p), S(() => {
1176
+ return Qe([u], h, d, x, p), S(() => {
1252
1177
  m(), v();
1253
1178
  }), b(() => {
1254
1179
  p(), _();
@@ -1266,16 +1191,16 @@ var pt = /* @__PURE__ */ u({
1266
1191
  ref_key: "dialog",
1267
1192
  ref: u,
1268
1193
  style: y({ zIndex: R(g) })
1269
- }, [s("div", Dt, [
1194
+ }, [s("div", Et, [
1270
1195
  s("h2", {
1271
1196
  id: "alertdialog-label-" + R(f),
1272
1197
  class: "g-alertdialog-label"
1273
- }, P(a.label), 9, Ot),
1198
+ }, P(a.label), 9, Dt),
1274
1199
  s("div", {
1275
1200
  id: "alertdialog-description-" + R(f),
1276
1201
  class: "g-alertdialog-content"
1277
- }, [A(e.$slots, "default")], 8, kt),
1278
- s("div", At, [l(Q, {
1202
+ }, [A(e.$slots, "default")], 8, Ot),
1203
+ s("div", kt, [l(Q, {
1279
1204
  outlined: "",
1280
1205
  onClick: r[0] ||= (e) => o("cancel")
1281
1206
  }, {
@@ -1288,21 +1213,21 @@ var pt = /* @__PURE__ */ u({
1288
1213
  default: J(() => [c(P(a.buttonText), 1)]),
1289
1214
  _: 1
1290
1215
  }, 8, ["theme"])])
1291
- ])], 12, Et)]),
1216
+ ])], 12, Tt)]),
1292
1217
  _: 3
1293
1218
  })]));
1294
1219
  }
1295
1220
  });
1296
1221
  //#endregion
1297
1222
  //#region src/compose/useSelectDropdown.ts
1298
- function Mt(e) {
1223
+ function jt(e) {
1299
1224
  return e.map((e) => typeof e == "string" ? {
1300
1225
  label: e,
1301
1226
  value: e
1302
1227
  } : e);
1303
1228
  }
1304
- function Nt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a }) {
1305
- let { push: o, pop: s, isTop: c } = qe(i), l = O("below"), u = O(null), d = r(() => {
1229
+ function Mt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a }) {
1230
+ let { push: o, pop: s, isTop: c } = Ge(i), l = O("below"), u = O(null), d = r(() => {
1306
1231
  let e = {};
1307
1232
  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;
1308
1233
  });
@@ -1345,11 +1270,11 @@ function Nt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a })
1345
1270
  }
1346
1271
  //#endregion
1347
1272
  //#region src/components/GSelect.vue?vue&type=script&setup=true&lang.ts
1348
- var Pt = ["id"], Ft = {
1273
+ var Nt = ["id"], Pt = {
1349
1274
  key: 0,
1350
1275
  class: "g-select-required",
1351
1276
  "aria-hidden": "true"
1352
- }, It = { class: "g-select-input-wrap" }, Lt = ["id"], Rt = [
1277
+ }, Ft = { class: "g-select-input-wrap" }, It = ["id"], Lt = [
1353
1278
  "value",
1354
1279
  "placeholder",
1355
1280
  "disabled",
@@ -1357,21 +1282,21 @@ var Pt = ["id"], Ft = {
1357
1282
  "aria-expanded",
1358
1283
  "aria-required",
1359
1284
  "aria-activedescendant"
1360
- ], zt = [
1285
+ ], Rt = [
1361
1286
  "id",
1362
1287
  "aria-controls",
1363
1288
  "aria-expanded",
1364
1289
  "aria-required",
1365
1290
  "aria-activedescendant"
1366
- ], Bt = ["id"], Vt = [
1291
+ ], zt = ["id"], Bt = [
1367
1292
  "id",
1368
1293
  "aria-selected",
1369
1294
  "onClick"
1370
- ], Ht = {
1295
+ ], Vt = {
1371
1296
  key: 1,
1372
1297
  "aria-live": "polite",
1373
1298
  class: "g-select-combo-option g-select-option g-select-no-results"
1374
- }, Ut = /* @__PURE__ */ u({
1299
+ }, Ht = /* @__PURE__ */ u({
1375
1300
  __name: "GSelect",
1376
1301
  props: /*@__PURE__*/ m({
1377
1302
  options: {},
@@ -1409,13 +1334,13 @@ var Pt = ["id"], Ft = {
1409
1334
  value: d,
1410
1335
  errors: I(i, "errors"),
1411
1336
  formKey: i.formKey
1412
- }), { menuPlacement: E, menuStyle: D, isTop: j, scrollOptionIntoView: M } = Nt({
1337
+ }), { menuPlacement: E, menuStyle: D, isTop: j, scrollOptionIntoView: M } = Mt({
1413
1338
  open: y,
1414
1339
  anchorRef: p,
1415
1340
  listboxRef: m,
1416
1341
  baseId: f,
1417
1342
  activeIndex: b
1418
- }), N = r(() => Mt(i.options)), F = O(""), L = r(() => {
1343
+ }), N = r(() => jt(i.options)), F = O(""), L = r(() => {
1419
1344
  if (!i.searchable || !y.value || !F.value) return N.value;
1420
1345
  let e = F.value.toLowerCase();
1421
1346
  return N.value.filter((t) => t.label.toLowerCase().includes(e));
@@ -1523,8 +1448,8 @@ var Pt = ["id"], Ft = {
1523
1448
  key: 0,
1524
1449
  id: R(f) + "-label",
1525
1450
  class: "g-select-combo-label g-select-label"
1526
- }, [c(P(i.label), 1), i.required ? (T(), o("span", Ft, " *")) : a("", !0)], 8, Pt)),
1527
- s("div", It, [i.searchable ? (T(), o("div", {
1451
+ }, [c(P(i.label), 1), i.required ? (T(), o("span", Pt, " *")) : a("", !0)], 8, Nt)),
1452
+ s("div", Ft, [i.searchable ? (T(), o("div", {
1528
1453
  key: 0,
1529
1454
  class: "g-select-combo-input g-select-control",
1530
1455
  id: R(f)
@@ -1551,7 +1476,7 @@ var Pt = ["id"], Ft = {
1551
1476
  }, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": R(f) + "-label" }, {
1552
1477
  role: "combobox",
1553
1478
  autocomplete: "off"
1554
- }), null, 16, Rt),
1479
+ }), null, 16, Lt),
1555
1480
  ie.value ? (T(), o("button", {
1556
1481
  key: 0,
1557
1482
  type: "button",
@@ -1577,7 +1502,7 @@ var Pt = ["id"], Ft = {
1577
1502
  fill: "currentColor",
1578
1503
  d: "M38.75 24.13a1.36 1.36 0 0 1 0 2.36l-12.44 7.18-12.43 7.18a1.36 1.36 0 0 1-2.05-1.18V11a1.36 1.36 0 0 1 2.05-1.18L26.31 17Z"
1579
1504
  })], -1)
1580
- ], 8, Lt)) : (T(), o("div", h({
1505
+ ], 8, It)) : (T(), o("div", h({
1581
1506
  key: 1,
1582
1507
  ref_key: "comboRef",
1583
1508
  ref: p,
@@ -1622,7 +1547,7 @@ var Pt = ["id"], Ft = {
1622
1547
  fill: "currentColor",
1623
1548
  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"
1624
1549
  })], -1)
1625
- ], 16, zt)), Y(s("div", h({
1550
+ ], 16, Rt)), Y(s("div", h({
1626
1551
  ref_key: "listboxRef",
1627
1552
  ref: m,
1628
1553
  class: ["g-select-combo-menu g-select-list", { "g-select-combo-menu--above": R(E) === "above" }],
@@ -1644,34 +1569,34 @@ var Pt = ["id"], Ft = {
1644
1569
  option: e,
1645
1570
  selected: e.value === d.value,
1646
1571
  index: t
1647
- }, () => [c(P(e.label), 1)])], 42, Vt))), 128)) : (T(), o("div", Ht, " No results found. "))], 16, Bt), [[G, y.value]])]),
1648
- l(Me, {
1572
+ }, () => [c(P(e.label), 1)])], 42, Bt))), 128)) : (T(), o("div", Vt, " No results found. "))], 16, zt), [[G, y.value]])]),
1573
+ l(Ae, {
1649
1574
  errors: R(C),
1650
1575
  id: "error-message-" + R(f)
1651
1576
  }, null, 8, ["errors", "id"])
1652
1577
  ], 2));
1653
1578
  }
1654
- }), Wt = ["aria-label"], Gt = [
1579
+ }), Ut = ["aria-label"], Wt = [
1655
1580
  "placeholder",
1656
1581
  "value",
1657
1582
  "aria-expanded",
1658
1583
  "aria-controls",
1659
1584
  "aria-activedescendant"
1660
- ], Kt = {
1585
+ ], Gt = {
1661
1586
  key: 0,
1662
1587
  class: "g-search-dropdown"
1663
- }, qt = {
1588
+ }, Kt = {
1664
1589
  "aria-live": "polite",
1665
1590
  class: "g-search-result-count"
1666
- }, Jt = ["id"], Yt = ["aria-label"], Xt = { class: "g-search-group-label" }, Zt = [
1591
+ }, qt = ["id"], Jt = ["aria-label"], Yt = { class: "g-search-group-label" }, Xt = [
1667
1592
  "id",
1668
1593
  "onMousedown",
1669
1594
  "aria-selected"
1670
- ], Qt = [
1595
+ ], Zt = [
1671
1596
  "id",
1672
1597
  "onMousedown",
1673
1598
  "aria-selected"
1674
- ], $t = /* @__PURE__ */ u({
1599
+ ], Qt = /* @__PURE__ */ u({
1675
1600
  __name: "GSearch",
1676
1601
  props: /*@__PURE__*/ m({
1677
1602
  results: {},
@@ -1752,12 +1677,12 @@ var Pt = ["id"], Ft = {
1752
1677
  "aria-autocomplete": "list",
1753
1678
  "aria-controls": `${R(M)}-list`,
1754
1679
  "aria-activedescendant": h.value >= 0 ? "g-search-option-" + v.value[h.value].id : void 0
1755
- }, null, 40, Gt), s("button", {
1680
+ }, null, 40, Wt), s("button", {
1756
1681
  type: "submit",
1757
1682
  class: "g-search-submit",
1758
1683
  "aria-label": "Submit search",
1759
1684
  onKeydown: C
1760
- }, [E.value ? (T(), i(Tt, {
1685
+ }, [E.value ? (T(), i(wt, {
1761
1686
  key: 0,
1762
1687
  size: "tiny"
1763
1688
  })) : a("", !0), n[1] ||= s("svg", {
@@ -1768,7 +1693,7 @@ var Pt = ["id"], Ft = {
1768
1693
  }, [s("path", {
1769
1694
  fill: "currentColor",
1770
1695
  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"
1771
- })], -1)], 32)], 32), D.value ? (T(), o("div", Kt, [s("div", qt, [E.value ? a("", !0) : (T(), o(e, { key: 0 }, [c(P(y.value) + " result" + P(y.value === 1 ? "" : "s"), 1)], 64))]), s("div", {
1696
+ })], -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", {
1772
1697
  role: "listbox",
1773
1698
  id: `${R(M)}-list`,
1774
1699
  ref_key: "listboxRef",
@@ -1779,29 +1704,29 @@ var Pt = ["id"], Ft = {
1779
1704
  class: "g-search-group",
1780
1705
  role: "group",
1781
1706
  "aria-label": n.label
1782
- }, [A(t.$slots, "group", { group: n }, () => [s("div", Xt, P(n.label), 1)]), (T(!0), o(e, null, k(n.items, (e, n) => (T(), o("div", {
1707
+ }, [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", {
1783
1708
  key: e.id,
1784
1709
  id: "g-search-option-" + e.id,
1785
1710
  class: _(["g-search-option", { "g-search-option-active": v.value[h.value] && v.value[h.value].id === e.id }]),
1786
1711
  role: "option",
1787
1712
  onMousedown: X((t) => w(e), ["prevent"]),
1788
1713
  "aria-selected": v.value[h.value] && v.value[h.value].id === e.id
1789
- }, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, Zt))), 128))], 8, Yt))), 128)) : y.value > 0 ? (T(!0), o(e, { key: 1 }, k(v.value, (e, n) => (T(), o("div", {
1714
+ }, [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", {
1790
1715
  key: e.id,
1791
1716
  id: "g-search-option-" + e.id,
1792
1717
  class: _(["g-search-option", { "g-search-option-active": h.value === n }]),
1793
1718
  role: "option",
1794
1719
  onMousedown: X((t) => w(e), ["prevent"]),
1795
1720
  "aria-selected": h.value === n
1796
- }, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, Qt))), 128)) : a("", !0)], 8, Jt)])) : a("", !0)], 8, Wt));
1721
+ }, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, Zt))), 128)) : a("", !0)], 8, qt)])) : a("", !0)], 8, Ut));
1797
1722
  }
1798
- }), en = { class: /*@__PURE__*/ _({ "g-app-header": !0 }) }, tn = { class: "g-app-header__brand" }, nn = {
1723
+ }), $t = { class: /*@__PURE__*/ _({ "g-app-header": !0 }) }, en = { class: "g-app-header__brand" }, tn = {
1799
1724
  class: "g-app-header__brand-text",
1800
1725
  href: "/"
1801
- }, rn = {
1726
+ }, nn = {
1802
1727
  key: 0,
1803
1728
  class: "g-app-header__block-i-container"
1804
- }, an = { class: "g-app-header__title" }, on = { class: "g-app-header__app-controls-wrap" }, sn = /* @__PURE__ */ u({
1729
+ }, rn = { class: "g-app-header__title" }, an = { class: "g-app-header__app-controls-wrap" }, on = /* @__PURE__ */ u({
1805
1730
  __name: "GAppHeader",
1806
1731
  props: {
1807
1732
  illinois: {
@@ -1811,10 +1736,10 @@ var Pt = ["id"], Ft = {
1811
1736
  brand: { default: "GRAD" }
1812
1737
  },
1813
1738
  setup(e) {
1814
- return (t, n) => (T(), o("header", en, [
1739
+ return (t, n) => (T(), o("header", $t, [
1815
1740
  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),
1816
- s("div", tn, [A(t.$slots, "left", {}, () => [s("a", nn, P(e.brand), 1)])]),
1817
- e.illinois ? (T(), o("div", rn, [...n[0] ||= [s("svg", {
1741
+ s("div", en, [A(t.$slots, "left", {}, () => [s("a", tn, P(e.brand), 1)])]),
1742
+ e.illinois ? (T(), o("div", nn, [...n[0] ||= [s("svg", {
1818
1743
  class: "g-app-header__block-i",
1819
1744
  role: "img",
1820
1745
  width: "55",
@@ -1831,24 +1756,24 @@ var Pt = ["id"], Ft = {
1831
1756
  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"
1832
1757
  })
1833
1758
  ], -1)]])) : A(t.$slots, "icon", { key: 1 }),
1834
- s("div", an, [A(t.$slots, "title")]),
1835
- s("div", on, [A(t.$slots, "app-controls", { class: "g-app-header__app-controls" })])
1759
+ s("div", rn, [A(t.$slots, "title")]),
1760
+ s("div", an, [A(t.$slots, "app-controls", { class: "g-app-header__app-controls" })])
1836
1761
  ]));
1837
1762
  }
1838
1763
  });
1839
1764
  //#endregion
1840
1765
  //#region src/compose/useWebComponentSidebar.ts
1841
- function cn(e) {
1766
+ function sn(e) {
1842
1767
  return e.replace(/[^a-zA-Z0-9_-]/g, "-");
1843
1768
  }
1844
- function ln() {
1769
+ function cn() {
1845
1770
  let e = globalThis;
1846
1771
  return e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__;
1847
1772
  }
1848
- function un(e = "default", t) {
1849
- let n = ln(), r = e || "default", i = typeof t == "string" ? t : t?.value, a = i && i.trim() ? i : "(max-width: 800px)";
1773
+ function ln(e = "default", t) {
1774
+ let n = cn(), r = e || "default", i = typeof t == "string" ? t : t?.value, a = i && i.trim() ? i : "(max-width: 800px)";
1850
1775
  if (!n.has(r)) {
1851
- let e = cn(r), t = O(a);
1776
+ let e = sn(r), t = O(a);
1852
1777
  n.set(r, {
1853
1778
  id: `g-wc-sidebar-${e}`,
1854
1779
  open: O(!1),
@@ -1884,6 +1809,89 @@ function un(e = "default", t) {
1884
1809
  }), o;
1885
1810
  }
1886
1811
  //#endregion
1812
+ //#region src/compose/useScrollRestore.ts
1813
+ function un(e, t) {
1814
+ let n = t ? ue(`${t}:scroll`, 0, { writeDefaults: !1 }) : null, r = O(!!(n?.value && n.value > 0)), i = null, a = null, o = null, s = !1;
1815
+ function c(e) {
1816
+ let t = window.getComputedStyle(e);
1817
+ return t.overflowY === "auto" || t.overflowY === "scroll";
1818
+ }
1819
+ function l(e) {
1820
+ if (typeof window > "u") return null;
1821
+ if (c(e)) return e;
1822
+ let t = e.parentElement;
1823
+ for (; t && t !== document.documentElement && t !== document.body;) {
1824
+ if (c(t)) return t;
1825
+ t = t.parentElement;
1826
+ }
1827
+ return null;
1828
+ }
1829
+ function u() {
1830
+ n && i && (n.value = i.scrollTop);
1831
+ }
1832
+ function d() {
1833
+ a &&= (a.disconnect(), null), o &&= (o.disconnect(), null);
1834
+ }
1835
+ function f() {
1836
+ r.value = !1;
1837
+ }
1838
+ function p() {
1839
+ return !e.value || !i ? !1 : e.value.getClientRects().length > 0 && i.getClientRects().length > 0 && i.clientHeight > 0;
1840
+ }
1841
+ function m() {
1842
+ if (!n || !i || s) {
1843
+ f();
1844
+ return;
1845
+ }
1846
+ if (n.value <= 0) {
1847
+ f();
1848
+ return;
1849
+ }
1850
+ if (p()) {
1851
+ if (i.scrollHeight - i.clientHeight <= 0) {
1852
+ f(), d();
1853
+ return;
1854
+ }
1855
+ i.scrollTop = n.value, s = i.scrollTop > 0, s && (f(), d());
1856
+ }
1857
+ }
1858
+ function h(e) {
1859
+ if (typeof MutationObserver > "u") return;
1860
+ o = new MutationObserver(() => {
1861
+ m();
1862
+ });
1863
+ let t = e;
1864
+ for (; t;) o.observe(t, {
1865
+ attributes: !0,
1866
+ attributeFilter: [
1867
+ "class",
1868
+ "style",
1869
+ "hidden",
1870
+ "open"
1871
+ ]
1872
+ }), t = t.parentElement;
1873
+ }
1874
+ return S(() => {
1875
+ if (!e.value) {
1876
+ f();
1877
+ return;
1878
+ }
1879
+ if (!n) {
1880
+ f();
1881
+ return;
1882
+ }
1883
+ if (i = l(e.value), !i) {
1884
+ f();
1885
+ return;
1886
+ }
1887
+ m(), typeof ResizeObserver < "u" && (a = new ResizeObserver(() => {
1888
+ m();
1889
+ }), a.observe(e.value), a.observe(i)), h(e.value), i.addEventListener("scroll", u);
1890
+ }), C(() => {
1891
+ d(), i &&= (i.removeEventListener("scroll", u), null), s = !1;
1892
+ }), { isPendingScrollRestore: r };
1893
+ }
1894
+ //#endregion
1887
1895
  //#region src/components/GSidebar.vue?vue&type=script&setup=true&lang.ts
1888
1896
  var dn = ["id"], fn = /* @__PURE__ */ u({
1889
1897
  __name: "GSidebar",
@@ -1895,11 +1903,12 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
1895
1903
  topOffsetVar: { default: "" },
1896
1904
  width: { default: "300px" },
1897
1905
  sidebarKey: { default: "default" },
1898
- mediaQuery: {}
1906
+ mediaQuery: {},
1907
+ storageKey: {}
1899
1908
  },
1900
1909
  setup(e) {
1901
- let t = e, n = p("sidebar", () => void 0, !0) ?? (fe() ? un(t.sidebarKey, I(t, "mediaQuery")) : void 0), i = r(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "url('https://gradcdn.blob.core.windows.net/public/sidebar-bg2.jpg')"), a = r(() => t.backgroundColor ? t.backgroundColor : t.theme === "light" ? "#f9f9f9" : "#030913"), s = r(() => t.topOffsetVar ? `var(${t.topOffsetVar})` : t.topOffset ? t.topOffset : "var(--g-toolbar-height)"), c = B();
1902
- function l(e) {
1910
+ let t = e, n = p("sidebar", () => void 0, !0) ?? (fe() ? ln(t.sidebarKey, I(t, "mediaQuery")) : void 0), i = r(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "url('https://gradcdn.blob.core.windows.net/public/sidebar-bg2.jpg')"), a = r(() => t.backgroundColor ? t.backgroundColor : t.theme === "light" ? "#f9f9f9" : "#030913"), s = r(() => t.topOffsetVar ? `var(${t.topOffsetVar})` : t.topOffset ? t.topOffset : "var(--g-toolbar-height)"), c = B(), { isPendingScrollRestore: l } = un(U("sidebar-ref"), t.storageKey);
1911
+ function u(e) {
1903
1912
  e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
1904
1913
  }
1905
1914
  return (t, r) => (T(), o("div", {
@@ -1908,7 +1917,8 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
1908
1917
  class: _(["g-sidebar", [`g-sidebar__${e.theme}`, {
1909
1918
  "g-sidebar--collapsible": R(n)?.isCollapsible?.value,
1910
1919
  "g-sidebar--closed": !R(n)?.open?.value && R(n)?.isCollapsible?.value,
1911
- "g-sidebar--open": R(n)?.open?.value && R(n)?.isCollapsible?.value
1920
+ "g-sidebar--open": R(n)?.open?.value && R(n)?.isCollapsible?.value,
1921
+ "g-sidebar--restore-pending": R(l)
1912
1922
  }]]),
1913
1923
  style: y({
1914
1924
  backgroundImage: i.value,
@@ -1917,7 +1927,7 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
1917
1927
  "--g-sidebar-width": e.width ?? "300px",
1918
1928
  width: "var(--g-sidebar-width)"
1919
1929
  }),
1920
- onKeydown: l
1930
+ onKeydown: u
1921
1931
  }, [A(t.$slots, "default")], 46, dn));
1922
1932
  }
1923
1933
  }), pn = ["id"], mn = { class: "g-sidebar-menu__list" }, hn = [
@@ -2001,19 +2011,19 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
2001
2011
  }
2002
2012
  }), _n = {
2003
2013
  mounted(e, t) {
2004
- let n = O(null), r = O(!1), i = O(!1), a = O(t.value), o = null, s = !1, c = ct(e), l = () => {
2005
- n.value || (n.value = lt(a.value, c), ut(n.value), o = new ResizeObserver(() => {
2006
- n.value && (r.value || i.value) && dt(e, n.value);
2014
+ let n = O(null), r = O(!1), i = O(!1), a = O(t.value), o = null, s = !1, c = st(e), l = () => {
2015
+ n.value || (n.value = ct(a.value, c), lt(n.value), o = new ResizeObserver(() => {
2016
+ n.value && (r.value || i.value) && ut(e, n.value);
2007
2017
  }), o.observe(n.value));
2008
2018
  };
2009
2019
  q(() => {
2010
2020
  n.value && (n.value.textContent = a.value);
2011
2021
  });
2012
2022
  let u = () => {
2013
- n.value && (r.value || i.value) && dt(e, n.value);
2023
+ n.value && (r.value || i.value) && ut(e, n.value);
2014
2024
  };
2015
2025
  q(() => {
2016
- r.value || i.value ? (l(), n.value && dt(e, n.value), s ||= (window.addEventListener("scroll", u, { capture: !0 }), !0)) : (s &&= (window.removeEventListener("scroll", u, { capture: !0 }), !1), n.value && (ft(n.value), setTimeout(() => {
2026
+ 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(() => {
2017
2027
  e.dispatchEvent(new CustomEvent("tooltip-hide"));
2018
2028
  }, 150)));
2019
2029
  });
@@ -2075,7 +2085,7 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
2075
2085
  xmlns: "http://www.w3.org/2000/svg",
2076
2086
  viewBox: "0 0 640 640",
2077
2087
  height: "1.125rem",
2078
- role: "none presentation"
2088
+ role: "none"
2079
2089
  }, [s("path", {
2080
2090
  fill: "currentColor",
2081
2091
  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"
@@ -2306,6 +2316,7 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
2306
2316
  "onChange",
2307
2317
  "aria-labelledby",
2308
2318
  "aria-invalid",
2319
+ "aria-errormessage",
2309
2320
  "name"
2310
2321
  ], Xn = ["value"], Zn = [
2311
2322
  "value",
@@ -2432,6 +2443,7 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
2432
2443
  onChange: (e) => g(e, n, r),
2433
2444
  "aria-labelledby": v(n, r),
2434
2445
  "aria-invalid": S(n, r),
2446
+ "aria-errormessage": S(n, r) ? `${t.tableId}-error-${n.key}-${String(r.key)}` : void 0,
2435
2447
  name: `row-${n.key}-${String(r.key)}-select`,
2436
2448
  class: "editable-input editable-select"
2437
2449
  }, [(T(!0), o(e, null, k(r.editable.options, (e) => (T(), o("option", {
@@ -2527,13 +2539,13 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
2527
2539
  value: d,
2528
2540
  errors: I(i, "errors"),
2529
2541
  formKey: i.formKey
2530
- }), { menuPlacement: E, menuStyle: D, isTop: A, scrollOptionIntoView: j } = Nt({
2542
+ }), { menuPlacement: E, menuStyle: D, isTop: A, scrollOptionIntoView: j } = Mt({
2531
2543
  open: y,
2532
2544
  anchorRef: m,
2533
2545
  listboxRef: v,
2534
2546
  baseId: f,
2535
2547
  activeIndex: b
2536
- }), M = r(() => Mt(i.options)), N = r(() => {
2548
+ }), M = r(() => jt(i.options)), N = r(() => {
2537
2549
  if (!x.value) return M.value;
2538
2550
  let e = x.value.toLowerCase();
2539
2551
  return M.value.filter((t) => t.label.toLowerCase().includes(e));
@@ -2640,7 +2652,8 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
2640
2652
  class: _(["g-multiselect-control", { "g-multiselect-control--disabled": t.disabled }]),
2641
2653
  onClick: K
2642
2654
  }, [
2643
- s("ul", {
2655
+ d.value.length ? (T(), o("ul", {
2656
+ key: 0,
2644
2657
  class: "g-multiselect-chips",
2645
2658
  "aria-labelledby": ie.value
2646
2659
  }, [(T(!0), o(e, null, k(d.value, (e) => (T(), o("li", {
@@ -2657,11 +2670,11 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
2657
2670
  xmlns: "http://www.w3.org/2000/svg",
2658
2671
  viewBox: "0 0 51.26 51.26",
2659
2672
  width: "1em",
2660
- role: "none presentation"
2673
+ role: "none"
2661
2674
  }, [s("path", {
2662
2675
  fill: "currentColor",
2663
2676
  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"
2664
- })], -1)]], 40, or)]))), 128))], 8, ir),
2677
+ })], -1)]], 40, or)]))), 128))], 8, ir)) : a("", !0),
2665
2678
  s("input", h({
2666
2679
  ref_key: "inputRef",
2667
2680
  ref: p,
@@ -2719,7 +2732,7 @@ var dn = ["id"], fn = /* @__PURE__ */ u({
2719
2732
  onClick: (e) => U(t)
2720
2733
  }, [s("span", ur, [F(e.value) ? (T(), o("svg", dr, [...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, lr))), 128)) : (T(), o("div", fr, " No results found. "))], 16, cr), [[G, y.value]])
2721
2734
  ], 2),
2722
- l(Me, {
2735
+ l(Ae, {
2723
2736
  errors: R(C),
2724
2737
  id: oe.value
2725
2738
  }, null, 8, ["errors", "id"])
@@ -2974,7 +2987,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
2974
2987
  }, [...r[1] ||= [s("path", {
2975
2988
  fill: "currentColor",
2976
2989
  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"
2977
- }, null, -1)]], 12, Pr))])) : a("", !0)], 8, Mr)) : (T(), o("span", Fr, P(t.label), 1)), t.filter ? (T(), i(at, { key: 2 }, {
2990
+ }, null, -1)]], 12, Pr))])) : a("", !0)], 8, Mr)) : (T(), o("span", Fr, P(t.label), 1)), t.filter ? (T(), i(it, { key: 2 }, {
2978
2991
  trigger: J(({ toggle: e }) => [s("button", {
2979
2992
  onClick: X(e, ["stop"]),
2980
2993
  "aria-label": R(x)[t.key] ? "Column Filtered" : "Filter Column",
@@ -2989,7 +3002,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
2989
3002
  fill: "currentColor",
2990
3003
  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"
2991
3004
  })], -1)]], 10, Ir)]),
2992
- default: J(() => [t.filter.type === "select" ? (T(), i(Ut, {
3005
+ default: J(() => [t.filter.type === "select" ? (T(), i(Ht, {
2993
3006
  key: 0,
2994
3007
  modelValue: f.value[t.key],
2995
3008
  "onUpdate:modelValue": (e) => f.value[t.key] = e,
@@ -3240,11 +3253,11 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3240
3253
  },
3241
3254
  emits: ["close"],
3242
3255
  setup(e, { emit: c }) {
3243
- let u = e, d = c, f = U("dialog"), p = O(!0), m = B(), { pop: g, push: _, isTop: v, zIndex: y } = qe(m, !0, !0), { deactivate: x, activate: C } = $e(f, v);
3256
+ let u = e, d = c, f = U("dialog"), p = O(!0), m = B(), { pop: g, push: _, isTop: v, zIndex: y } = Ge(m, !0, !0), { deactivate: x, activate: C } = Ze(f, v);
3244
3257
  function w() {
3245
3258
  d("close");
3246
3259
  }
3247
- et([f], v, p, w, g), S(() => {
3260
+ Qe([f], v, p, w, g), S(() => {
3248
3261
  _(), C();
3249
3262
  }), b(() => {
3250
3263
  g(), x();
@@ -3315,7 +3328,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3315
3328
  },
3316
3329
  emits: ["toggle"],
3317
3330
  setup(e, { emit: t }) {
3318
- let n = e, r = p("sidebar") ?? (fe() ? un(n.sidebarKey, I(n, "mediaQuery")) : void 0), i = t;
3331
+ let n = e, r = p("sidebar") ?? (fe() ? ln(n.sidebarKey, I(n, "mediaQuery")) : void 0), i = t;
3319
3332
  function c() {
3320
3333
  i("toggle"), r?.toggle();
3321
3334
  }
@@ -3359,7 +3372,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3359
3372
  }, yi = /* @__PURE__ */ u({
3360
3373
  __name: "GOverlay",
3361
3374
  setup(e) {
3362
- let { hasScrollLock: t } = Je();
3375
+ let { hasScrollLock: t } = Ke();
3363
3376
  return (e, r) => (T(), i(n, { name: "g-fade" }, {
3364
3377
  default: J(() => [R(t) ? (T(), o("div", vi)) : a("", !0)]),
3365
3378
  _: 1
@@ -3386,7 +3399,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3386
3399
  emits: ["update:modelValue"],
3387
3400
  setup(e) {
3388
3401
  let t = V(e, "modelValue");
3389
- return (n, r) => (T(), o("div", bi, [s("div", xi, [l(Ut, {
3402
+ return (n, r) => (T(), o("div", bi, [s("div", xi, [l(Ht, {
3390
3403
  modelValue: t.value.year,
3391
3404
  "onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
3392
3405
  options: e.termYears,
@@ -3395,7 +3408,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3395
3408
  "modelValue",
3396
3409
  "options",
3397
3410
  "label"
3398
- ])]), s("div", Si, [l(bt, {
3411
+ ])]), s("div", Si, [l(yt, {
3399
3412
  modelValue: t.value.name,
3400
3413
  "onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
3401
3414
  options: e.termNames,
@@ -3432,7 +3445,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3432
3445
  emits: ["update:modelValue"],
3433
3446
  setup(e) {
3434
3447
  let t = V(e, "modelValue");
3435
- return (n, r) => (T(), o("div", wi, [l(at, null, {
3448
+ return (n, r) => (T(), o("div", wi, [l(it, null, {
3436
3449
  trigger: J(({ toggle: e }) => [l(Q, {
3437
3450
  class: "g-term-selector-button",
3438
3451
  theme: "none",
@@ -3441,13 +3454,13 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3441
3454
  }, {
3442
3455
  default: J(() => [
3443
3456
  r[0] ||= s("span", { class: "g-calendar-icon" }, [s("svg", {
3444
- role: "none presentation",
3457
+ role: "none",
3445
3458
  xmlns: "http://www.w3.org/2000/svg",
3446
3459
  viewBox: "0 0 640 640"
3447
3460
  }, [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),
3448
3461
  s("span", Ti, P(t.value?.name) + " " + P(t.value?.year), 1),
3449
3462
  r[1] ||= s("span", { class: "g-caret" }, [s("svg", {
3450
- role: "none presentation",
3463
+ role: "none",
3451
3464
  xmlns: "http://www.w3.org/2000/svg",
3452
3465
  viewBox: "0 0 640 640"
3453
3466
  }, [s("path", { d: "M300.3 440.8C312.9 451 331.4 450.3 343.1 438.6L471.1 310.6C480.3 301.4 483 287.7 478 275.7C473 263.7 461.4 256 448.5 256L192.5 256C179.6 256 167.9 263.8 162.9 275.8C157.9 287.8 160.7 301.5 169.9 310.6L297.9 438.6L300.3 440.8z" })])], -1)
@@ -3474,7 +3487,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3474
3487
  let n = `${B()}-email`, r = O(!1), a = U("emailHeading");
3475
3488
  d()?.appContext?.components?.RouterLink;
3476
3489
  let c = H();
3477
- return (u, d) => (T(), o("div", Oi, [l(at, {
3490
+ return (u, d) => (T(), o("div", Oi, [l(it, {
3478
3491
  modelValue: r.value,
3479
3492
  "onUpdate:modelValue": d[0] ||= (e) => r.value = e,
3480
3493
  minimal: ""
@@ -3524,7 +3537,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3524
3537
  emits: ["update:modelValue"],
3525
3538
  setup(e) {
3526
3539
  let t = e, n = V(e, "modelValue");
3527
- return (e, r) => (T(), i(ze, h({
3540
+ return (e, r) => (T(), i(Le, h({
3528
3541
  modelValue: n.value,
3529
3542
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
3530
3543
  name: t.name,
@@ -3574,7 +3587,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3574
3587
  emits: ["update:modelValue"],
3575
3588
  setup(e) {
3576
3589
  let t = V(e, "modelValue");
3577
- return (n, r) => (T(), i(ze, h({
3590
+ return (n, r) => (T(), i(Le, h({
3578
3591
  modelValue: t.value,
3579
3592
  "onUpdate:modelValue": r[0] ||= (e) => t.value = e,
3580
3593
  name: e.name,
@@ -3696,12 +3709,12 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3696
3709
  class: "g-file-input-pill"
3697
3710
  }, [r[0] ||= s("svg", {
3698
3711
  class: "g-file-input-pill-icon",
3699
- role: "none presentation",
3712
+ role: "none",
3700
3713
  xmlns: "http://www.w3.org/2000/svg",
3701
3714
  viewBox: "0 0 640 640"
3702
3715
  }, [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)
3703
3716
  ], 2),
3704
- l(Me, {
3717
+ l(Ae, {
3705
3718
  errors: v.value,
3706
3719
  id: "error-message-" + R(d)
3707
3720
  }, null, 8, ["errors", "id"])
@@ -3731,7 +3744,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3731
3744
  emits: ["update:modelValue"],
3732
3745
  setup(e) {
3733
3746
  let t = e, n = V(e, "modelValue");
3734
- return (e, r) => (T(), i(ze, h({
3747
+ return (e, r) => (T(), i(Le, h({
3735
3748
  modelValue: n.value,
3736
3749
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
3737
3750
  name: t.name,
@@ -3855,7 +3868,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3855
3868
  }),
3856
3869
  emits: /*@__PURE__*/ m(["submit"], ["update:modelValue"]),
3857
3870
  setup(e, { emit: t }) {
3858
- let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (fe() ? Ae(n.formKey) : Oe());
3871
+ let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (fe() ? Oe(n.formKey) : Ee());
3859
3872
  a || E("form", s), K(() => s.values.value, (e) => {
3860
3873
  r.value = { ...e };
3861
3874
  }, { deep: !0 }), K(() => r.value, (e) => {
@@ -3897,7 +3910,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3897
3910
  formKey: { default: "default" }
3898
3911
  },
3899
3912
  setup(e) {
3900
- let t = e, n = z(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (fe() ? Ae(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
3913
+ 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() ? Oe(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
3901
3914
  return (e, n) => (T(), i(Q, {
3902
3915
  type: "submit",
3903
3916
  disabled: u.value,
@@ -3986,7 +3999,6 @@ var br = { class: "g-table-outer-wrap" }, xr = {
3986
3999
  let n = [];
3987
4000
  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 } : {
3988
4001
  "aria-describedby": n.length ? n.join(" ") : void 0,
3989
- "aria-required": u.required && u.options.length > 1 ? "true" : void 0,
3990
4002
  "aria-invalid": m.value ? "true" : "false",
3991
4003
  "aria-errormessage": m.value ? x.value : void 0
3992
4004
  };
@@ -4019,7 +4031,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
4019
4031
  id: E(n),
4020
4032
  class: "g-checkbox-group__hint"
4021
4033
  }, P(e.hint), 9, ca)) : a("", !0)], 2))), 128))]),
4022
- l(Me, {
4034
+ l(Ae, {
4023
4035
  errors: R(p),
4024
4036
  id: x.value
4025
4037
  }, null, 8, ["errors", "id"])
@@ -4145,7 +4157,7 @@ var br = { class: "g-table-outer-wrap" }, xr = {
4145
4157
  onPaste: D
4146
4158
  }), null, 16, pa),
4147
4159
  n.maxlength === void 0 ? a("", !0) : (T(), o("div", ma, P((i.value ?? "").length) + " / " + P(n.maxlength), 1)),
4148
- l(Me, {
4160
+ l(Ae, {
4149
4161
  errors: R(v),
4150
4162
  id: "error-message-" + R(u)
4151
4163
  }, null, 8, ["errors", "id"])
@@ -4318,6 +4330,6 @@ function va() {
4318
4330
  };
4319
4331
  }
4320
4332
  //#endregion
4321
- export { Ae as $, er as A, Ut as B, gr as C, vr as D, hr as E, gn as F, at as G, Tt as H, fn as I, $e as J, tt as K, un as L, wn as M, yn as N, yr as O, _n as P, $ as Q, sn as R, Jr as S, _r as T, bt as U, jt as V, pt as W, Je as X, qe as Y, ze as Z, _i as _, la as a, Q as at, li as b, Yi as c, Pi as d, Oe as et, Ni as f, yi as g, Ci as h, ha as i, ge as it, zn as j, pr as k, Hi as l, Di as m, _a as n, Se as nt, Qi as o, Mi as p, et as q, ga as r, xe as rt, Zi as s, va as t, De as tt, Vi as u, pi as v, mr as w, ri as x, fi as y, $t as z };
4333
+ export { $, er as A, Qt as B, gr as C, vr as D, hr as E, gn as F, ft as G, At as H, fn as I, Qe as J, it as K, un as L, wn as M, yn as N, yr as O, _n as P, Le as Q, ln as R, Jr as S, _r as T, wt as U, Ht as V, yt as W, Ge as X, Ze as Y, Ke as Z, _i as _, la as a, Q as at, li as b, Yi as c, Pi as d, Oe as et, Ni as f, yi as g, Ci as h, ha as i, be as it, zn as j, pr as k, Hi as l, Di as m, _a as n, Te as nt, Qi as o, Mi as p, $e as q, ga as r, xe as rt, Zi as s, va as t, Ee as tt, Vi as u, pi as v, mr as w, ri as x, fi as y, on as z };
4322
4334
 
4323
- //# sourceMappingURL=grad-vue-SmHF581D.js.map
4335
+ //# sourceMappingURL=grad-vue-85A5znlz.js.map