@aerogel/core 0.1.1-next.785e2c42ed379bc0f268c637d1023a51f5832d80 → 0.1.1-next.b25730fd2850ebabef064973972dabd342d92769

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,7 +1,7 @@
1
1
  var St = Object.defineProperty;
2
2
  var Tt = (t, s, e) => s in t ? St(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
3
3
  var _ = (t, s, e) => Tt(t, typeof s != "symbol" ? s + "" : s, e);
4
- import { markRaw as E, Comment as Mt, Text as Ht, Static as Et, inject as X, reactive as pe, unref as o, onUnmounted as ge, ref as U, computed as c, readonly as ve, nextTick as Oe, useAttrs as Ne, onMounted as Vt, watch as Me, toRaw as Lt, watchEffect as Y, defineComponent as g, createBlock as h, openBlock as u, mergeProps as H, withCtx as f, renderSlot as w, createPropsRestProxy as N, createVNode as p, normalizeProps as ne, guardReactiveProps as ae, createTextVNode as I, toDisplayString as x, normalizeClass as k, createElementBlock as b, Fragment as D, renderList as F, provide as le, resolveDynamicComponent as W, useSlots as He, createCommentVNode as T, createElementVNode as y, h as It, toRef as Re, useTemplateRef as G, withModifiers as We, withDirectives as Ke, vModelCheckbox as qt, normalizeStyle as zt, resolveComponent as Rt, createApp as Pt, vModelText as At } from "vue";
4
+ import { markRaw as E, Comment as Mt, Text as Ht, Static as Et, inject as X, reactive as pe, unref as l, onUnmounted as ge, ref as U, computed as c, readonly as ve, nextTick as Oe, useAttrs as Ne, onMounted as Vt, watch as Me, toRaw as Lt, watchEffect as Y, defineComponent as g, createBlock as h, openBlock as u, mergeProps as H, withCtx as f, renderSlot as w, createPropsRestProxy as N, createVNode as p, normalizeProps as ne, guardReactiveProps as ae, createTextVNode as I, toDisplayString as x, normalizeClass as k, createElementBlock as b, Fragment as D, renderList as F, provide as le, resolveDynamicComponent as W, useSlots as He, createCommentVNode as T, createElementVNode as y, h as It, toRef as Re, useTemplateRef as G, withModifiers as We, withDirectives as Ke, vModelCheckbox as qt, normalizeStyle as zt, resolveComponent as Rt, createApp as Pt, vModelText as At } from "vue";
5
5
  import { JSError as be, stringToSlug as Dt, tap as ee, MagicObject as Qe, PromisedValue as K, Storage as O, objectOnly as oe, arrayFrom as Je, isEmpty as xe, objectDeepClone as jt, fail as Q, facade as te, arrayRemove as Se, getEnv as Bt, updateLocationQueryParameters as Ft, forever as Ut, toString as B, objectWithout as Ot, noop as Nt, debounce as Wt, stringMatchAll as Ze, isDevelopment as J, isTesting as Ee, after as ue, uuid as re, required as Kt, isObject as ce, objectWithoutEmpty as Xe, value as Qt, isInstanceOf as Pe, stringExcerpt as Jt, arraySorted as Zt, ListenersManager as Xt, toError as Yt, round as Gt } from "@noeldemartin/utils";
6
6
  import j from "virtual:aerogel";
7
7
  import { createPinia as es, setActivePinia as ts, defineStore as ss } from "pinia";
@@ -209,7 +209,7 @@ class Ds extends we {
209
209
  var a;
210
210
  const n = this.listeners[e] ?? { priorities: [], handlers: {} };
211
211
  for (const i of n.priorities)
212
- await Promise.all(((a = n.handlers[i]) == null ? void 0 : a.map((l) => l(r))) ?? []);
212
+ await Promise.all(((a = n.handlers[i]) == null ? void 0 : a.map((o) => o(r))) ?? []);
213
213
  }
214
214
  // prettier-ignore
215
215
  /* eslint-enable max-len */
@@ -221,11 +221,11 @@ class Ds extends we {
221
221
  /* eslint-enable max-len */
222
222
  once(e, r, n) {
223
223
  let a = null;
224
- const i = typeof r == "function" ? {} : r, l = typeof r == "function" ? r : n;
224
+ const i = typeof r == "function" ? {} : r, o = typeof r == "function" ? r : n;
225
225
  return ee(
226
226
  () => a && this.off(e, a),
227
227
  (d) => {
228
- a = (...v) => (d(), l(...v)), this.registerListener(e, i, l);
228
+ a = (...v) => (d(), o(...v)), this.registerListener(e, i, o);
229
229
  }
230
230
  );
231
231
  }
@@ -235,16 +235,16 @@ class Ds extends we {
235
235
  if (!n)
236
236
  return;
237
237
  const a = [...n.priorities];
238
- for (const l of a)
239
- Se(n.handlers[l] ?? [], r), ((i = n.handlers[l]) == null ? void 0 : i.length) === 0 && (delete n.handlers[l], Se(n.priorities, l));
238
+ for (const o of a)
239
+ Se(n.handlers[o] ?? [], r), ((i = n.handlers[o]) == null ? void 0 : i.length) === 0 && (delete n.handlers[o], Se(n.priorities, o));
240
240
  n.priorities.length === 0 && delete this.listeners[e];
241
241
  }
242
242
  registerListener(e, r, n) {
243
243
  var d, v, $;
244
244
  const a = r.priority ?? 0;
245
245
  e in this.listeners || (this.listeners[e] = { priorities: [], handlers: {} });
246
- const i = ((d = this.listeners[e]) == null ? void 0 : d.priorities) ?? Q(`priorities missing for event '${e}'`), l = ((v = this.listeners[e]) == null ? void 0 : v.handlers) ?? Q(`handlers missing for event '${e}'`);
247
- i.includes(a) || (i.push(a), i.sort((m, C) => C - m), l[a] = []), ($ = l[a]) == null || $.push(n);
246
+ const i = ((d = this.listeners[e]) == null ? void 0 : d.priorities) ?? Q(`priorities missing for event '${e}'`), o = ((v = this.listeners[e]) == null ? void 0 : v.handlers) ?? Q(`handlers missing for event '${e}'`);
247
+ i.includes(a) || (i.push(a), i.sort((m, C) => C - m), o[a] = []), ($ = o[a]) == null || $.push(n);
248
248
  }
249
249
  }
250
250
  const R = te(Ds);
@@ -355,7 +355,7 @@ const Ce = /* @__PURE__ */ new WeakMap(), Ws = {
355
355
  };
356
356
  function et(t, s) {
357
357
  const { baseClasses: e, ...r } = t, { baseClasses: n, ...a } = s, i = ls(n, a);
358
- return M(i(r), o(e));
358
+ return M(i(r), l(e));
359
359
  }
360
360
  function M(...t) {
361
361
  return os(as(t));
@@ -476,8 +476,8 @@ class Xs extends Qe {
476
476
  this.setFieldValue(e, r);
477
477
  }
478
478
  getFieldErrors(e, r) {
479
- var l;
480
- const n = [], a = this._data[e], i = ((l = r.rules) == null ? void 0 : l.split("|")) ?? [];
479
+ var o;
480
+ const n = [], a = this._data[e], i = ((o = r.rules) == null ? void 0 : o.split("|")) ?? [];
481
481
  n.push(...Js(a, r));
482
482
  for (const d of i)
483
483
  d !== "required" && a == null || n.push(...Zs(a, d));
@@ -695,7 +695,7 @@ class dr extends cr {
695
695
  title: e,
696
696
  message: r,
697
697
  required: !!(n != null && n.required)
698
- }, l = await this.modalForm(this.requireComponent("confirm-modal"), i), d = typeof l == "object" ? l[0] : l ?? !1, v = typeof l == "object" ? l[1] : Object.entries(i.checkboxes ?? {}).reduce(
698
+ }, o = await this.modalForm(this.requireComponent("confirm-modal"), i), d = typeof o == "object" ? o[0] : o ?? !1, v = typeof o == "object" ? o[1] : Object.entries(i.checkboxes ?? {}).reduce(
699
699
  ($, [m, { default: C }]) => ({
700
700
  [m]: C ?? !1,
701
701
  ...$
@@ -715,8 +715,8 @@ class dr extends cr {
715
715
  title: e,
716
716
  message: r,
717
717
  ...n ?? {}
718
- }, l = await this.modalForm(this.requireComponent("prompt-modal"), i());
719
- return (a && typeof l == "string" ? l == null ? void 0 : l.trim() : l) ?? null;
718
+ }, o = await this.modalForm(this.requireComponent("prompt-modal"), i());
719
+ return (a && typeof o == "string" ? o == null ? void 0 : o.trim() : o) ?? null;
720
720
  }
721
721
  async loading(e, r) {
722
722
  const n = (m) => typeof m == "function" ? Promise.resolve(m()) : m, a = () => {
@@ -730,17 +730,17 @@ class dr extends cr {
730
730
  const { delay: m, ...C } = e;
731
731
  return {
732
732
  props: C,
733
- delay: o(m),
733
+ delay: l(m),
734
734
  operationPromise: n(r)
735
735
  };
736
736
  };
737
737
  let i = !1;
738
- const { operationPromise: l, props: d, delay: v } = a();
739
- if (v && await Promise.race([ue({ ms: v }).then(() => i = !0), l]), v && !i)
740
- return l;
738
+ const { operationPromise: o, props: d, delay: v } = a();
739
+ if (v && await Promise.race([ue({ ms: v }).then(() => i = !0), o]), v && !i)
740
+ return o;
741
741
  const $ = await this.modal(this.requireComponent("loading-modal"), d);
742
742
  try {
743
- const m = await l;
743
+ const m = await o;
744
744
  return await ue({ ms: 500 }), m;
745
745
  } finally {
746
746
  await this.closeModal($.id);
@@ -762,8 +762,8 @@ class dr extends cr {
762
762
  component: E(e),
763
763
  beforeClose: new Promise((d) => a.willClose = d),
764
764
  afterClose: new Promise((d) => a.hasClosed = d)
765
- }, l = this.modals.concat(i);
766
- return this.modalCallbacks[i.id] = a, this.setState({ modals: l }), await Oe(), i;
765
+ }, o = this.modals.concat(i);
766
+ return this.modalCallbacks[i.id] = a, this.setState({ modals: o }), await Oe(), i;
767
767
  }
768
768
  async modalForm(e, r) {
769
769
  return await (await this.modal(e, r)).beforeClose;
@@ -792,7 +792,7 @@ class dr extends cr {
792
792
  watchModalEvents() {
793
793
  R.on("modal-will-close", ({ modal: { id: e }, result: r }) => {
794
794
  var a, i;
795
- const n = this.modals.find((l) => e === l.id);
795
+ const n = this.modals.find((o) => e === o.id);
796
796
  n && (n.closing = !0), (i = (a = this.modalCallbacks[e]) == null ? void 0 : a.willClose) == null || i.call(a, r);
797
797
  }), R.on("modal-has-closed", async ({ modal: { id: e }, result: r }) => {
798
798
  await this.removeModal(e, r);
@@ -1026,7 +1026,7 @@ const ut = te(gr), ct = /* @__PURE__ */ g({
1026
1026
  as: "button",
1027
1027
  type: t.submit ? "submit" : "button"
1028
1028
  });
1029
- return (e, r) => (u(), h(o(is), H({
1029
+ return (e, r) => (u(), h(l(is), H({
1030
1030
  class: t.class,
1031
1031
  "as-child": e.asChild,
1032
1032
  disabled: e.disabled
@@ -1169,17 +1169,17 @@ const dt = /* @__PURE__ */ g({
1169
1169
  "select",
1170
1170
  "<HeadlessSelectValue> must be a child of a <HeadlessSelect>"
1171
1171
  );
1172
- return (e, r) => e.$slots.default ? (u(), h(o(De), {
1172
+ return (e, r) => e.$slots.default ? (u(), h(l(De), {
1173
1173
  key: 0,
1174
- placeholder: o(s).placeholder
1174
+ placeholder: l(s).placeholder
1175
1175
  }, {
1176
1176
  default: f(() => [
1177
1177
  w(e.$slots, "default")
1178
1178
  ]),
1179
1179
  _: 3
1180
- }, 8, ["placeholder"])) : (u(), h(o(De), {
1180
+ }, 8, ["placeholder"])) : (u(), h(l(De), {
1181
1181
  key: 1,
1182
- placeholder: o(s).placeholder
1182
+ placeholder: l(s).placeholder
1183
1183
  }, null, 8, ["placeholder"]));
1184
1184
  }
1185
1185
  }), pt = /* @__PURE__ */ g({
@@ -1189,15 +1189,15 @@ const dt = /* @__PURE__ */ g({
1189
1189
  "select",
1190
1190
  "<HeadlessSelectTrigger> must be a child of a <HeadlessSelect>"
1191
1191
  );
1192
- return (e, r) => (u(), h(o(us), {
1193
- id: o(s).id
1192
+ return (e, r) => (u(), h(l(us), {
1193
+ id: l(s).id
1194
1194
  }, {
1195
1195
  default: f(() => [
1196
1196
  w(e.$slots, "default", {}, () => [
1197
1197
  p(dt, {
1198
- placeholder: o(s).placeholder
1198
+ placeholder: l(s).placeholder
1199
1199
  }, null, 8, ["placeholder"]),
1200
- p(o(cs))
1200
+ p(l(cs))
1201
1201
  ])
1202
1202
  ]),
1203
1203
  _: 3
@@ -1221,9 +1221,9 @@ const dt = /* @__PURE__ */ g({
1221
1221
  const r = (n = s.options) == null ? void 0 : n.find((a) => a.value === t.value);
1222
1222
  return r ? r.label : B(t.value);
1223
1223
  });
1224
- return (r, n) => (u(), h(o(ds), ne(ae(r.$props)), {
1224
+ return (r, n) => (u(), h(l(ds), ne(ae(r.$props)), {
1225
1225
  default: f(() => [
1226
- p(o(ps), null, {
1226
+ p(l(ps), null, {
1227
1227
  default: f(() => [
1228
1228
  w(r.$slots, "default", {}, () => [
1229
1229
  I(x(e.value), 1)
@@ -1246,22 +1246,22 @@ const dt = /* @__PURE__ */ g({
1246
1246
  "select",
1247
1247
  "<HeadlessSelectOptions> must be a child of a <HeadlessSelect>"
1248
1248
  ), e = c(() => M("min-w-(--reka-select-trigger-width) max-h-(--reka-select-content-available-height)", t.class));
1249
- return (r, n) => (u(), h(o(ms), null, {
1249
+ return (r, n) => (u(), h(l(ms), null, {
1250
1250
  default: f(() => [
1251
- p(o(fs), {
1251
+ p(l(fs), {
1252
1252
  position: "popper",
1253
1253
  class: k(e.value),
1254
- align: o(s).align,
1255
- side: o(s).side,
1254
+ align: l(s).align,
1255
+ side: l(s).side,
1256
1256
  "side-offset": 4
1257
1257
  }, {
1258
1258
  default: f(() => [
1259
- p(o(hs), {
1259
+ p(l(hs), {
1260
1260
  class: k(r.innerClass)
1261
1261
  }, {
1262
1262
  default: f(() => [
1263
1263
  w(r.$slots, "default", {}, () => [
1264
- (u(!0), b(D, null, F(o(s).options ?? [], (a) => (u(), h(mt, {
1264
+ (u(!0), b(D, null, F(l(s).options ?? [], (a) => (u(), h(mt, {
1265
1265
  key: a.key,
1266
1266
  value: a.value
1267
1267
  }, null, 8, ["value"]))), 128))
@@ -1296,7 +1296,7 @@ const dt = /* @__PURE__ */ g({
1296
1296
  },
1297
1297
  emits: ["update:modelValue"],
1298
1298
  setup(t, { expose: s, emit: e }) {
1299
- const r = e, n = X("form", null), a = c(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue), i = c(() => a.value), l = c(() => !n || !t.name ? null : n.errors[t.name] ?? null), d = c(() => t.options ? t.options.map((m) => ({
1299
+ const r = e, n = X("form", null), a = c(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue), i = c(() => a.value), o = c(() => !n || !t.name ? null : n.errors[t.name] ?? null), d = c(() => t.options ? t.options.map((m) => ({
1300
1300
  key: re(),
1301
1301
  label: t.renderOption ? t.renderOption(m) : vr(m) ? Qt(m.label) : B(m),
1302
1302
  value: m
@@ -1316,7 +1316,7 @@ const dt = /* @__PURE__ */ g({
1316
1316
  var m;
1317
1317
  return (m = d.value) == null ? void 0 : m.find((C) => C.value === t.modelValue);
1318
1318
  }),
1319
- errors: ve(l),
1319
+ errors: ve(o),
1320
1320
  required: c(() => {
1321
1321
  if (!(!t.name || !n))
1322
1322
  return n.getFieldRules(t.name).includes("required");
@@ -1332,7 +1332,7 @@ const dt = /* @__PURE__ */ g({
1332
1332
  function $(m) {
1333
1333
  v.update(m);
1334
1334
  }
1335
- return le("select", v), s(v), (m, C) => (u(), h(o(gs), {
1335
+ return le("select", v), s(v), (m, C) => (u(), h(l(gs), {
1336
1336
  "model-value": i.value,
1337
1337
  by: m.compareOptions,
1338
1338
  "onUpdate:modelValue": C[0] || (C[0] = (L) => $(L))
@@ -1365,13 +1365,13 @@ const dt = /* @__PURE__ */ g({
1365
1365
  "select",
1366
1366
  "<HeadlessSelectLabel> must be a child of a <HeadlessSelect>"
1367
1367
  ), e = He(), r = c(() => !!(s.label || e.default));
1368
- return (n, a) => r.value ? (u(), h(o(vs), H({
1368
+ return (n, a) => r.value ? (u(), h(l(vs), H({
1369
1369
  key: 0,
1370
- for: o(s).id
1370
+ for: l(s).id
1371
1371
  }, n.$props), {
1372
1372
  default: f(() => [
1373
1373
  w(n.$slots, "default", {}, () => [
1374
- I(x(o(s).label), 1)
1374
+ I(x(l(s).label), 1)
1375
1375
  ])
1376
1376
  ]),
1377
1377
  _: 3
@@ -1441,15 +1441,15 @@ const dt = /* @__PURE__ */ g({
1441
1441
  default: f(() => {
1442
1442
  var a;
1443
1443
  return [
1444
- (a = o(s).options) != null && a.length ? w(r.$slots, "default", { key: 0 }, () => {
1444
+ (a = l(s).options) != null && a.length ? w(r.$slots, "default", { key: 0 }, () => {
1445
1445
  var i;
1446
1446
  return [
1447
- (u(!0), b(D, null, F(((i = o(s)) == null ? void 0 : i.options) ?? [], (l) => (u(), h(Fe, {
1448
- key: l.key,
1449
- value: l.value
1447
+ (u(!0), b(D, null, F(((i = l(s)) == null ? void 0 : i.options) ?? [], (o) => (u(), h(Fe, {
1448
+ key: o.key,
1449
+ value: o.value
1450
1450
  }, {
1451
1451
  default: f(() => [
1452
- I(x(l.label), 1)
1452
+ I(x(o.label), 1)
1453
1453
  ]),
1454
1454
  _: 2
1455
1455
  }, 1032, ["value"]))), 128))
@@ -1500,7 +1500,7 @@ const $r = E({ name: "zondicons-cheveron-down", render: wr }), vt = /* @__PURE__
1500
1500
  }, {
1501
1501
  default: f(() => [
1502
1502
  p(dt, { class: "col-start-1 row-start-1 truncate pr-6" }),
1503
- p(o($r), { class: "col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4" })
1503
+ p(l($r), { class: "col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4" })
1504
1504
  ]),
1505
1505
  _: 1
1506
1506
  }, 8, ["class"]));
@@ -1525,7 +1525,7 @@ const $r = E({ name: "zondicons-cheveron-down", render: wr }), vt = /* @__PURE__
1525
1525
  emits: ["update:modelValue"],
1526
1526
  setup(t) {
1527
1527
  const { forwardRef: s } = Ve();
1528
- return (e, r) => (u(), h(br, H({ ref: o(s) }, e.$props, {
1528
+ return (e, r) => (u(), h(br, H({ ref: l(s) }, e.$props, {
1529
1529
  "onUpdate:modelValue": r[0] || (r[0] = (n) => e.$emit("update:modelValue", n))
1530
1530
  }), {
1531
1531
  default: f(() => [
@@ -1604,28 +1604,28 @@ const $r = E({ name: "zondicons-cheveron-down", render: wr }), vt = /* @__PURE__
1604
1604
  const s = Ne(), e = He(), r = c(() => e.default ? e.default().map(Ge).join("") : t.text ?? (t.langKey && (t.langDefault ? S(t.langKey, t.langDefault, t.langParams ?? {}) : it(t.langKey, t.langParams ?? {})))), n = c(() => {
1605
1605
  if (!r.value)
1606
1606
  return null;
1607
- let l = sr(r.value);
1608
- return t.inline && (l = l.replace("<p>", "<span>").replace("</p>", "</span>")), l;
1607
+ let o = sr(r.value);
1608
+ return t.inline && (o = o.replace("<p>", "<span>").replace("</p>", "</span>")), o;
1609
1609
  }), a = () => It(t.as ?? (t.inline ? "span" : "div"), {
1610
1610
  innerHTML: n.value,
1611
1611
  onClick: i,
1612
1612
  ...s,
1613
1613
  class: `${s.class ?? ""} ${t.inline ? "" : "prose"}`
1614
1614
  });
1615
- async function i(l) {
1615
+ async function i(o) {
1616
1616
  var v, $;
1617
- const { target: d } = l;
1617
+ const { target: d } = o;
1618
1618
  if (Pe(d, HTMLElement) && d.dataset.markdownAction) {
1619
1619
  ($ = (v = t.actions) == null ? void 0 : v[d.dataset.markdownAction]) == null || $.call(v);
1620
1620
  return;
1621
1621
  }
1622
1622
  if (Pe(d, HTMLAnchorElement) && d.dataset.markdownRoute) {
1623
1623
  const m = tr();
1624
- m && (l.preventDefault(), m.visit(d.dataset.markdownRoute));
1624
+ m && (o.preventDefault(), m.visit(d.dataset.markdownRoute));
1625
1625
  return;
1626
1626
  }
1627
1627
  }
1628
- return (l, d) => (u(), h(a));
1628
+ return (o, d) => (u(), h(a));
1629
1629
  }
1630
1630
  }), Hr = (t, s) => {
1631
1631
  const e = t.__vccOpts || t;
@@ -1690,35 +1690,35 @@ const $r = E({ name: "zondicons-cheveron-down", render: wr }), vt = /* @__PURE__
1690
1690
  if (!(!t.name || !n))
1691
1691
  return n.getFieldRules(t.name).includes("required");
1692
1692
  }),
1693
- update(l) {
1693
+ update(o) {
1694
1694
  if (n && t.name) {
1695
- n.setFieldValue(t.name, l);
1695
+ n.setFieldValue(t.name, o);
1696
1696
  return;
1697
1697
  }
1698
- r("update:modelValue", l);
1698
+ r("update:modelValue", o);
1699
1699
  }
1700
1700
  };
1701
1701
  return s(i), Y(() => {
1702
1702
  !t.description && !a.value || console.warn("Errors and description not implemented in <HeadlessSwitch>");
1703
- }), (l, d) => (u(), b("div", {
1703
+ }), (o, d) => (u(), b("div", {
1704
1704
  class: k(t.class)
1705
1705
  }, [
1706
- l.label ? (u(), b("label", {
1706
+ o.label ? (u(), b("label", {
1707
1707
  key: 0,
1708
1708
  for: i.id,
1709
- class: k(l.labelClass)
1710
- }, x(l.label), 11, Ir)) : T("", !0),
1711
- p(o(bs), H({
1709
+ class: k(o.labelClass)
1710
+ }, x(o.label), 11, Ir)) : T("", !0),
1711
+ p(l(bs), H({
1712
1712
  id: i.id,
1713
- name: l.name,
1713
+ name: o.name,
1714
1714
  "model-value": i.value.value
1715
- }, l.$attrs, {
1716
- class: l.inputClass,
1717
- "onUpdate:modelValue": d[0] || (d[0] = (v) => l.$emit("update:modelValue", v))
1715
+ }, o.$attrs, {
1716
+ class: o.inputClass,
1717
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => o.$emit("update:modelValue", v))
1718
1718
  }), {
1719
1719
  default: f(() => [
1720
- p(o(ys), {
1721
- class: k(l.thumbClass)
1720
+ p(l(ys), {
1721
+ class: k(o.thumbClass)
1722
1722
  }, null, 8, ["class"])
1723
1723
  ]),
1724
1724
  _: 1
@@ -1774,7 +1774,7 @@ class Ue extends be {
1774
1774
  const Ar = { $errors: ut }, Dr = (t) => (ut.report(t), !0);
1775
1775
  function jr(t, s = () => !1) {
1776
1776
  const e = (r) => s(r) || Dr(r);
1777
- t.config.errorHandler = e, globalThis.onerror = (r, n, a, i, l) => e(l ?? r), globalThis.onunhandledrejection = (r) => e(r.reason);
1777
+ t.config.errorHandler = e, globalThis.onerror = (r, n, a, i, o) => e(o ?? r), globalThis.onunhandledrejection = (r) => e(r.reason);
1778
1778
  }
1779
1779
  const Br = {
1780
1780
  async install(t, s) {
@@ -1816,21 +1816,21 @@ const Nr = E({ name: "zondicons-close", render: Or }), Wr = /* @__PURE__ */ g({
1816
1816
  );
1817
1817
  s({ close: i, $content: e });
1818
1818
  const { forwardRef: n } = Ve(), a = U(!1);
1819
- le("$modalContentRef", e), tt("close-modal", async ({ id: l, result: d }) => {
1820
- l === r.id && await i(d);
1819
+ le("$modalContentRef", e), tt("close-modal", async ({ id: o, result: d }) => {
1820
+ o === r.id && await i(d);
1821
1821
  });
1822
- async function i(l) {
1823
- a.value || (await R.emit("modal-will-close", { modal: r, result: l }), a.value = !0, await R.emit("modal-has-closed", { modal: r, result: l }));
1822
+ async function i(o) {
1823
+ a.value || (await R.emit("modal-will-close", { modal: r, result: o }), a.value = !0, await R.emit("modal-has-closed", { modal: r, result: o }));
1824
1824
  }
1825
- return (l, d) => (u(), h(o(ws), {
1826
- ref: o(n),
1825
+ return (o, d) => (u(), h(l(ws), {
1826
+ ref: l(n),
1827
1827
  open: "",
1828
- "onUpdate:open": d[0] || (d[0] = (v) => l.persistent || i())
1828
+ "onUpdate:open": d[0] || (d[0] = (v) => o.persistent || i())
1829
1829
  }, {
1830
1830
  default: f(() => [
1831
- p(o($s), null, {
1831
+ p(l($s), null, {
1832
1832
  default: f(() => [
1833
- w(l.$slots, "default", { close: i })
1833
+ w(o.$slots, "default", { close: i })
1834
1834
  ]),
1835
1835
  _: 3
1836
1836
  })
@@ -1848,7 +1848,7 @@ const Nr = E({ name: "zondicons-close", render: Or }), Wr = /* @__PURE__ */ g({
1848
1848
  const s = t, e = c(() => {
1849
1849
  const r = {};
1850
1850
  for (const n in s.modal.properties)
1851
- r[n] = o(s.modal.properties[n]);
1851
+ r[n] = l(s.modal.properties[n]);
1852
1852
  return r;
1853
1853
  });
1854
1854
  return le("modal", {
@@ -1863,12 +1863,12 @@ const Nr = E({ name: "zondicons-close", render: Or }), Wr = /* @__PURE__ */ g({
1863
1863
  "modal",
1864
1864
  "could not obtain modal reference from <HeadlessModalContent>, did you render this component manually? Show it using $ui.modal() instead"
1865
1865
  ), e = Ns("$modalContentRef"), r = G("$contentRef"), n = c(() => z.modals[s] ?? null);
1866
- return Y(() => e.value = r.value), (a, i) => (u(), h(o(_s), { ref: "$contentRef" }, {
1866
+ return Y(() => e.value = r.value), (a, i) => (u(), h(l(_s), { ref: "$contentRef" }, {
1867
1867
  default: f(() => [
1868
1868
  w(a.$slots, "default"),
1869
1869
  n.value ? (u(), h(wt, {
1870
1870
  key: 0,
1871
- "child-index": o(s) + 1,
1871
+ "child-index": l(s) + 1,
1872
1872
  modal: n.value
1873
1873
  }, null, 8, ["child-index", "modal"])) : T("", !0)
1874
1874
  ]),
@@ -1882,7 +1882,7 @@ const Nr = E({ name: "zondicons-close", render: Or }), Wr = /* @__PURE__ */ g({
1882
1882
  as: {}
1883
1883
  },
1884
1884
  setup(t) {
1885
- return (s, e) => (u(), h(o(xs), ne(ae(s.$props)), {
1885
+ return (s, e) => (u(), h(l(xs), ne(ae(s.$props)), {
1886
1886
  default: f(() => [
1887
1887
  w(s.$slots, "default")
1888
1888
  ]),
@@ -1897,7 +1897,7 @@ const Nr = E({ name: "zondicons-close", render: Or }), Wr = /* @__PURE__ */ g({
1897
1897
  as: {}
1898
1898
  },
1899
1899
  setup(t) {
1900
- return (s, e) => (u(), h(o(Cs), ne(ae(s.$props)), {
1900
+ return (s, e) => (u(), h(l(Cs), ne(ae(s.$props)), {
1901
1901
  default: f(() => [
1902
1902
  w(s.$slots, "default")
1903
1903
  ]),
@@ -1911,7 +1911,7 @@ const Nr = E({ name: "zondicons-close", render: Or }), Wr = /* @__PURE__ */ g({
1911
1911
  as: {}
1912
1912
  },
1913
1913
  setup(t) {
1914
- return (s, e) => (u(), h(o(ks), ne(ae(s.$props)), {
1914
+ return (s, e) => (u(), h(l(ks), ne(ae(s.$props)), {
1915
1915
  default: f(() => [
1916
1916
  w(s.$slots, "default")
1917
1917
  ]),
@@ -1945,28 +1945,28 @@ const Nr = E({ name: "zondicons-close", render: Or }), Wr = /* @__PURE__ */ g({
1945
1945
  return (m = a.value) == null ? void 0 : m.$content;
1946
1946
  })
1947
1947
  });
1948
- const { forwardRef: r, currentRef: n } = Ve(), a = n, i = V("modal"), l = c(() => !i.modal.closing && i.childIndex === z.openModals.length), d = c(() => t.description ? {} : { "aria-describedby": void 0 }), v = c(() => M("max-h-[90vh] overflow-auto px-4 pb-4", { "pt-4": !t.title || t.titleHidden }, t.class)), $ = c(() => M(
1948
+ const { forwardRef: r, currentRef: n } = Ve(), a = n, i = V("modal"), o = c(() => !i.modal.closing && i.childIndex === z.openModals.length), d = c(() => t.description ? {} : { "aria-describedby": void 0 }), v = c(() => M("max-h-[90vh] overflow-auto px-4 pb-4", { "pt-4": !t.title || t.titleHidden }, t.class)), $ = c(() => M(
1949
1949
  "isolate fixed top-1/2 left-1/2 z-50 w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2",
1950
1950
  "overflow-hidden rounded-lg bg-white text-left shadow-xl sm:max-w-lg",
1951
1951
  "animate-[fade-in_var(--tw-duration)_ease-in-out,grow_var(--tw-duration)_ease-in-out]",
1952
1952
  "transition-[scale,opacity] will-change-[scale,opacity] duration-300",
1953
1953
  {
1954
- "scale-50 opacity-0": !l.value,
1955
- "scale-100 opacity-100": l.value
1954
+ "scale-50 opacity-0": !o.value,
1955
+ "scale-100 opacity-100": o.value
1956
1956
  },
1957
1957
  t.wrapperClass
1958
1958
  ));
1959
1959
  return tt("modal-will-close", async ({ modal: { id: m } }) => {
1960
1960
  m === i.modal.id && await ue({ ms: 300 });
1961
1961
  }), (m, C) => (u(), h(Wr, H(e, {
1962
- ref: (L) => o(r)(L),
1962
+ ref: (L) => l(r)(L),
1963
1963
  persistent: m.persistent
1964
1964
  }), {
1965
1965
  default: f(({ close: L }) => [
1966
1966
  p(Jr, {
1967
1967
  class: k(["fixed inset-0 animate-[fade-in_var(--tw-duration)_ease-in-out] transition-opacity duration-300 will-change-[opacity]", {
1968
- "bg-black/30": o(i).childIndex === 1,
1969
- "opacity-0": o(i).childIndex === 1 && o(i).modal.closing
1968
+ "bg-black/30": l(i).childIndex === 1,
1969
+ "opacity-0": l(i).childIndex === 1 && l(i).modal.closing
1970
1970
  }])
1971
1971
  }, null, 8, ["class"]),
1972
1972
  p(Kr, H(d.value, { class: $.value }), {
@@ -1978,7 +1978,7 @@ const Nr = E({ name: "zondicons-close", render: Or }), Wr = /* @__PURE__ */ g({
1978
1978
  onClick: (_e) => L()
1979
1979
  }, [
1980
1980
  y("span", Gr, x(m.$td("ui.close", "Close")), 1),
1981
- p(o(Nr), { class: "size-4" })
1981
+ p(l(Nr), { class: "size-4" })
1982
1982
  ], 8, Yr)
1983
1983
  ])) : T("", !0),
1984
1984
  m.title ? (u(), h(Zr, {
@@ -2035,8 +2035,8 @@ const tn = /* @__PURE__ */ g({
2035
2035
  setup(t, { expose: s }) {
2036
2036
  const e = t, { renderedTitle: r, titleHidden: n } = en(e);
2037
2037
  return s(), (a, i) => (u(), h(se, {
2038
- title: o(r),
2039
- "title-hidden": o(n)
2038
+ title: l(r),
2039
+ "title-hidden": l(n)
2040
2040
  }, {
2041
2041
  default: f(() => [
2042
2042
  p(P, { text: a.message }, null, 8, ["text"])
@@ -2057,10 +2057,7 @@ const tn = /* @__PURE__ */ g({
2057
2057
  var a;
2058
2058
  e == null || e(), e = (a = t.form) == null ? void 0 : a.on("submit", () => r("submit")), n(() => e == null ? void 0 : e());
2059
2059
  }), le("form", t.form), (n, a) => (u(), b("form", {
2060
- onSubmit: a[0] || (a[0] = We((i) => {
2061
- var l;
2062
- return (l = n.form) == null ? void 0 : l.submit();
2063
- }, ["prevent"]))
2060
+ onSubmit: a[0] || (a[0] = We((i) => n.form ? n.form.submit() : n.$emit("submit"), ["prevent"]))
2064
2061
  }, [
2065
2062
  w(n.$slots, "default")
2066
2063
  ], 32));
@@ -2069,8 +2066,8 @@ const tn = /* @__PURE__ */ g({
2069
2066
  function sn(t) {
2070
2067
  const s = rt(
2071
2068
  Object.entries(t.checkboxes ?? {}).reduce(
2072
- (i, [l, d]) => ({
2073
- [l]: {
2069
+ (i, [o, d]) => ({
2070
+ [o]: {
2074
2071
  type: "boolean",
2075
2072
  default: d.default,
2076
2073
  required: d.required ? "required" : void 0
@@ -2099,16 +2096,16 @@ const rn = {
2099
2096
  required: { type: Boolean }
2100
2097
  },
2101
2098
  setup(t, { expose: s }) {
2102
- const e = N(t, ["cancelVariant"]), { form: r, renderedTitle: n, titleHidden: a, renderedAcceptText: i, renderedCancelText: l } = sn(e);
2099
+ const e = N(t, ["cancelVariant"]), { form: r, renderedTitle: n, titleHidden: a, renderedAcceptText: i, renderedCancelText: o } = sn(e);
2103
2100
  return s(), (d, v) => (u(), h(se, {
2104
- title: o(n),
2105
- "title-hidden": o(a),
2101
+ title: l(n),
2102
+ "title-hidden": l(a),
2106
2103
  persistent: ""
2107
2104
  }, {
2108
2105
  default: f(({ close: $ }) => [
2109
2106
  p($t, {
2110
- form: o(r),
2111
- onSubmit: (m) => $([!0, o(r).data()])
2107
+ form: l(r),
2108
+ onSubmit: (m) => $([!0, l(r).data()])
2112
2109
  }, {
2113
2110
  default: f(() => [
2114
2111
  p(P, {
@@ -2119,12 +2116,12 @@ const rn = {
2119
2116
  (u(!0), b(D, null, F(d.checkboxes, (m, C) => (u(), b("li", { key: C }, [
2120
2117
  y("label", nn, [
2121
2118
  Ke(y("input", {
2122
- "onUpdate:modelValue": (L) => o(r)[C] = L,
2119
+ "onUpdate:modelValue": (L) => l(r)[C] = L,
2123
2120
  type: "checkbox",
2124
2121
  required: m.required,
2125
2122
  class: "border-primary-600 text-primary-600 hover:bg-primary-50 hover:checked:bg-primary-500 focus:ring-primary-600 focus-visible:ring-primary-600 rounded border-2"
2126
2123
  }, null, 8, an), [
2127
- [qt, o(r)[C]]
2124
+ [qt, l(r)[C]]
2128
2125
  ]),
2129
2126
  y("span", ln, x(m.label), 1)
2130
2127
  ])
@@ -2136,7 +2133,7 @@ const rn = {
2136
2133
  submit: ""
2137
2134
  }, {
2138
2135
  default: f(() => [
2139
- I(x(o(i)), 1)
2136
+ I(x(l(i)), 1)
2140
2137
  ]),
2141
2138
  _: 1
2142
2139
  }, 8, ["variant"]),
@@ -2146,7 +2143,7 @@ const rn = {
2146
2143
  onClick: (m) => $(!1)
2147
2144
  }, {
2148
2145
  default: f(() => [
2149
- I(x(o(l)), 1)
2146
+ I(x(l(o)), 1)
2150
2147
  ]),
2151
2148
  _: 2
2152
2149
  }, 1032, ["variant", "onClick"]))
@@ -2297,18 +2294,18 @@ ${s.report.details}`), z.toast(S("errors.copiedToClipboard", "Debug information
2297
2294
  }
2298
2295
  ));
2299
2296
  return (a, i) => (u(), b("div", Sn, [
2300
- (u(!0), b(D, null, F(n.value, (l) => w(a.$slots, "default", H({ ref_for: !0 }, l), () => [
2297
+ (u(!0), b(D, null, F(n.value, (o) => w(a.$slots, "default", H({ ref_for: !0 }, o), () => [
2301
2298
  p(q, {
2302
2299
  size: "icon",
2303
2300
  variant: "ghost",
2304
2301
  class: "group whitespace-nowrap",
2305
- href: l.url,
2306
- title: a.$td(`errors.report_${l.id}`, l.description),
2307
- onClick: l.click
2302
+ href: o.url,
2303
+ title: a.$td(`errors.report_${o.id}`, o.description),
2304
+ onClick: o.click
2308
2305
  }, {
2309
2306
  default: f(() => [
2310
- y("span", Tn, x(a.$td(`errors.report_${l.id}`, l.description)), 1),
2311
- (u(), h(W(l.iconComponent), {
2307
+ y("span", Tn, x(a.$td(`errors.report_${o.id}`, o.description)), 1),
2308
+ (u(), h(W(o.iconComponent), {
2312
2309
  class: "size-4",
2313
2310
  "aria-hidden": "true"
2314
2311
  }))
@@ -2358,7 +2355,7 @@ const Vn = { class: "px-4 pt-5 pb-4" }, Ln = { class: "flex justify-between gap-
2358
2355
  reports: {}
2359
2356
  },
2360
2357
  setup(t, { expose: s }) {
2361
- const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: i, activeReport: l } = En(e);
2358
+ const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: i, activeReport: o } = En(e);
2362
2359
  return s(), (d, v) => (u(), h(se, {
2363
2360
  title: d.$td("errors.report", "Error report"),
2364
2361
  "title-hidden": "",
@@ -2370,57 +2367,57 @@ const Vn = { class: "px-4 pt-5 pb-4" }, Ln = { class: "flex justify-between gap-
2370
2367
  y("div", Vn, [
2371
2368
  y("h2", Ln, [
2372
2369
  y("div", In, [
2373
- p(o(qe), { class: "size-5 text-red-600" }),
2370
+ p(l(qe), { class: "size-5 text-red-600" }),
2374
2371
  p(Hn, {
2375
2372
  class: "text-lg leading-6 font-semibold text-gray-900",
2376
- report: o(l),
2377
- "current-report": o(r) + 1,
2373
+ report: l(o),
2374
+ "current-report": l(r) + 1,
2378
2375
  "total-reports": d.reports.length
2379
2376
  }, null, 8, ["report", "current-report", "total-reports"]),
2380
2377
  d.reports.length > 1 ? (u(), b("span", qn, [
2381
2378
  p(q, {
2382
2379
  size: "icon",
2383
2380
  variant: "ghost",
2384
- disabled: o(r) === 0,
2385
- "aria-label": o(i),
2386
- title: o(i),
2381
+ disabled: l(r) === 0,
2382
+ "aria-label": l(i),
2383
+ title: l(i),
2387
2384
  onClick: v[0] || (v[0] = ($) => r.value--)
2388
2385
  }, {
2389
2386
  default: f(() => [
2390
- p(o(pn), { class: "size-4" })
2387
+ p(l(pn), { class: "size-4" })
2391
2388
  ]),
2392
2389
  _: 1
2393
2390
  }, 8, ["disabled", "aria-label", "title"]),
2394
2391
  p(q, {
2395
2392
  size: "icon",
2396
2393
  variant: "ghost",
2397
- disabled: o(r) === d.reports.length - 1,
2398
- "aria-label": o(a),
2399
- title: o(a),
2394
+ disabled: l(r) === d.reports.length - 1,
2395
+ "aria-label": l(a),
2396
+ title: l(a),
2400
2397
  onClick: v[1] || (v[1] = ($) => r.value++)
2401
2398
  }, {
2402
2399
  default: f(() => [
2403
- p(o(_t), { class: "size-4" })
2400
+ p(l(_t), { class: "size-4" })
2404
2401
  ]),
2405
2402
  _: 1
2406
2403
  }, 8, ["disabled", "aria-label", "title"])
2407
2404
  ])) : T("", !0)
2408
2405
  ]),
2409
2406
  p(Mn, {
2410
- report: o(l),
2407
+ report: l(o),
2411
2408
  class: "gap-0.5"
2412
2409
  }, null, 8, ["report"])
2413
2410
  ]),
2414
- o(l).description ? (u(), h(P, {
2411
+ l(o).description ? (u(), h(P, {
2415
2412
  key: 0,
2416
- text: o(l).description,
2413
+ text: l(o).description,
2417
2414
  class: "text-gray-600"
2418
2415
  }, null, 8, ["text"])) : T("", !0)
2419
2416
  ]),
2420
2417
  y("div", zn, [
2421
2418
  y("pre", {
2422
2419
  class: "p-4 text-xs text-red-800",
2423
- textContent: x(o(n))
2420
+ textContent: x(l(n))
2424
2421
  }, null, 8, Rn)
2425
2422
  ])
2426
2423
  ]),
@@ -2496,24 +2493,24 @@ const Nn = /* @__PURE__ */ g({
2496
2493
  },
2497
2494
  setup(t, { expose: s }) {
2498
2495
  const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: i } = On(e);
2499
- return s(), (l, d) => (u(), h(se, {
2496
+ return s(), (o, d) => (u(), h(se, {
2500
2497
  persistent: "",
2501
- class: k(["flex", { "flex-col-reverse": o(i), "items-center justify-center gap-2": !o(i) }]),
2498
+ class: k(["flex", { "flex-col-reverse": l(i), "items-center justify-center gap-2": !l(i) }]),
2502
2499
  "wrapper-class": "w-auto",
2503
- title: o(r),
2504
- "title-hidden": o(a)
2500
+ title: l(r),
2501
+ "title-hidden": l(a)
2505
2502
  }, {
2506
2503
  default: f(() => [
2507
- o(i) ? (u(), h(Un, {
2504
+ l(i) ? (u(), h(Un, {
2508
2505
  key: 0,
2509
- progress: l.progress,
2510
- job: l.job,
2506
+ progress: o.progress,
2507
+ job: o.job,
2511
2508
  class: "min-w-[min(400px,80vw)]"
2512
- }, null, 8, ["progress", "job"])) : (u(), h(o(jn), {
2509
+ }, null, 8, ["progress", "job"])) : (u(), h(l(jn), {
2513
2510
  key: 1,
2514
2511
  class: "text-primary-600 mr-1 size-6"
2515
2512
  })),
2516
- p(P, { text: o(n) }, null, 8, ["text"])
2513
+ p(P, { text: l(n) }, null, 8, ["text"])
2517
2514
  ]),
2518
2515
  _: 1
2519
2516
  }, 8, ["title", "title-hidden", "class"]));
@@ -2540,17 +2537,17 @@ const Nn = /* @__PURE__ */ g({
2540
2537
  if (!(!t.name || !n))
2541
2538
  return n.getFieldRules(t.name).includes("required");
2542
2539
  }),
2543
- update(l) {
2540
+ update(o) {
2544
2541
  if (n && t.name) {
2545
- n.setFieldValue(t.name, l);
2542
+ n.setFieldValue(t.name, o);
2546
2543
  return;
2547
2544
  }
2548
- r("update:modelValue", l);
2545
+ r("update:modelValue", o);
2549
2546
  }
2550
2547
  };
2551
- return le("input", i), s(i), (l, d) => (u(), h(W(l.as), null, {
2548
+ return le("input", i), s(i), (o, d) => (u(), h(W(o.as), null, {
2552
2549
  default: f(() => [
2553
- w(l.$slots, "default")
2550
+ w(o.$slots, "default")
2554
2551
  ]),
2555
2552
  _: 3
2556
2553
  }));
@@ -2561,10 +2558,10 @@ const Nn = /* @__PURE__ */ g({
2561
2558
  const s = V("input", "<HeadlessInputLabel> must be a child of a <HeadlessInput>"), e = He(), r = c(() => !!(s.label || e.default));
2562
2559
  return (n, a) => r.value ? (u(), b("label", {
2563
2560
  key: 0,
2564
- for: o(s).id
2561
+ for: l(s).id
2565
2562
  }, [
2566
2563
  w(n.$slots, "default", {}, () => [
2567
- I(x(o(s).label), 1)
2564
+ I(x(l(s).label), 1)
2568
2565
  ])
2569
2566
  ], 8, Wn)) : T("", !0);
2570
2567
  }
@@ -2579,7 +2576,7 @@ const Nn = /* @__PURE__ */ g({
2579
2576
  return t.type;
2580
2577
  const $ = (n.value && (r == null ? void 0 : r.getFieldType(n.value))) ?? "";
2581
2578
  return ["text", "email", "number", "tel", "url"].includes($) ? $ : "text";
2582
- }), l = c(() => {
2579
+ }), o = c(() => {
2583
2580
  if (t.type === "checkbox")
2584
2581
  return !!a.value;
2585
2582
  });
@@ -2610,14 +2607,14 @@ const Nn = /* @__PURE__ */ g({
2610
2607
  s.value.value = a.value ?? null;
2611
2608
  }
2612
2609
  }), ($, m) => (u(), b("input", {
2613
- id: o(e).id,
2610
+ id: l(e).id,
2614
2611
  ref: "$inputRef",
2615
2612
  name: n.value,
2616
- checked: l.value,
2613
+ checked: o.value,
2617
2614
  type: i.value,
2618
- required: o(e).required ?? void 0,
2619
- "aria-invalid": o(e).errors ? "true" : "false",
2620
- "aria-describedby": o(e).errors ? `${o(e).id}-error` : o(e).description ? `${o(e).id}-description` : void 0,
2615
+ required: l(e).required ?? void 0,
2616
+ "aria-invalid": l(e).errors ? "true" : "false",
2617
+ "aria-describedby": l(e).errors ? `${l(e).id}-error` : l(e).description ? `${l(e).id}-description` : void 0,
2621
2618
  onInput: d
2622
2619
  }, null, 40, Kn));
2623
2620
  }
@@ -2630,10 +2627,10 @@ const Nn = /* @__PURE__ */ g({
2630
2627
  "<HeadlessInputDescription> must be a child of a <HeadlessInput>"
2631
2628
  ), e = c(() => typeof s.description == "string" ? s.description : ""), r = c(() => !!s.description);
2632
2629
  return (n, a) => w(n.$slots, "default", {
2633
- id: `${o(s).id}-description`
2630
+ id: `${l(s).id}-description`
2634
2631
  }, () => [
2635
2632
  r.value ? (u(), h(P, H({ key: 0 }, n.$attrs, {
2636
- id: `${o(s).id}-description`,
2633
+ id: `${l(s).id}-description`,
2637
2634
  text: e.value
2638
2635
  }), null, 16, ["id", "text"])) : T("", !0)
2639
2636
  ]);
@@ -2644,7 +2641,7 @@ const Nn = /* @__PURE__ */ g({
2644
2641
  const s = V("input", "<HeadlessInputError> must be a child of a <HeadlessInput>"), e = c(() => s.errors ? S(`errors.${s.errors[0]}`, `Error: ${s.errors[0]}`) : null);
2645
2642
  return (r, n) => e.value ? (u(), b("p", {
2646
2643
  key: 0,
2647
- id: `${o(s).id}-error`
2644
+ id: `${l(s).id}-error`
2648
2645
  }, x(e.value), 9, Qn)) : T("", !0);
2649
2646
  }
2650
2647
  }), Jn = {
@@ -2664,24 +2661,24 @@ const Nn = /* @__PURE__ */ g({
2664
2661
  emits: ["update:modelValue"],
2665
2662
  setup(t) {
2666
2663
  const s = N(t, ["label", "inputClass", "wrapperClass"]), e = G("$inputRef"), [r, n] = Ie(), a = c(() => M("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), i = c(() => {
2667
- var l, d, v;
2664
+ var o, d, v;
2668
2665
  return M(
2669
2666
  // eslint-disable-next-line vue/max-len
2670
2667
  "block w-full rounded-md border-0 py-1.5 ring-1 ring-inset focus:ring-2 focus:ring-inset sm:text-sm sm:leading-6",
2671
2668
  {
2672
- "focus:ring-primary-600": !((l = e.value) != null && l.errors),
2669
+ "focus:ring-primary-600": !((o = e.value) != null && o.errors),
2673
2670
  "text-gray-900 shadow-2xs ring-gray-900/10 placeholder:text-gray-400": !((d = e.value) != null && d.errors),
2674
2671
  "pr-10 text-red-900 ring-red-900/10 placeholder:text-red-300 focus:ring-red-500": (v = e.value) == null ? void 0 : v.errors
2675
2672
  },
2676
2673
  t.inputClass
2677
2674
  );
2678
2675
  });
2679
- return (l, d) => (u(), h(ze, H({
2676
+ return (o, d) => (u(), h(ze, H({
2680
2677
  ref: "$inputRef",
2681
- label: l.label,
2682
- class: o(n)
2678
+ label: o.label,
2679
+ class: l(n)
2683
2680
  }, s, {
2684
- "onUpdate:modelValue": d[0] || (d[0] = (v) => l.$emit("update:modelValue", v))
2681
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => o.$emit("update:modelValue", v))
2685
2682
  }), {
2686
2683
  default: f(() => {
2687
2684
  var v;
@@ -2690,9 +2687,9 @@ const Nn = /* @__PURE__ */ g({
2690
2687
  y("div", {
2691
2688
  class: k(a.value)
2692
2689
  }, [
2693
- p(xt, H(o(r), { class: i.value }), null, 16, ["class"]),
2690
+ p(xt, H(l(r), { class: i.value }), null, 16, ["class"]),
2694
2691
  (v = e.value) != null && v.errors ? (u(), b("div", Jn, [
2695
- p(o(qe), { class: "size-5 text-red-500" })
2692
+ p(l(qe), { class: "size-5 text-red-500" })
2696
2693
  ])) : T("", !0)
2697
2694
  ], 2),
2698
2695
  p(Ct, { class: "mt-2 text-sm text-gray-600" }),
@@ -2809,20 +2806,20 @@ const Gn = { class: "mt-4 flex flex-row-reverse gap-2" }, ea = /* @__PURE__ */ g
2809
2806
  cancelVariant: { default: "secondary" }
2810
2807
  },
2811
2808
  setup(t, { expose: s }) {
2812
- const e = N(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText: i, renderedCancelText: l } = Yn(e);
2809
+ const e = N(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText: i, renderedCancelText: o } = Yn(e);
2813
2810
  return s(), (d, v) => (u(), h(se, {
2814
- title: o(n),
2811
+ title: l(n),
2815
2812
  persistent: ""
2816
2813
  }, {
2817
2814
  default: f(({ close: $ }) => [
2818
2815
  p($t, {
2819
- form: o(r),
2820
- onSubmit: (m) => $(o(r).draft)
2816
+ form: l(r),
2817
+ onSubmit: (m) => $(l(r).draft)
2821
2818
  }, {
2822
2819
  default: f(() => [
2823
- o(a) ? (u(), h(P, {
2820
+ l(a) ? (u(), h(P, {
2824
2821
  key: 0,
2825
- text: o(a)
2822
+ text: l(a)
2826
2823
  }, null, 8, ["text"])) : T("", !0),
2827
2824
  p(Zn, {
2828
2825
  name: "draft",
@@ -2836,7 +2833,7 @@ const Gn = { class: "mt-4 flex flex-row-reverse gap-2" }, ea = /* @__PURE__ */ g
2836
2833
  submit: ""
2837
2834
  }, {
2838
2835
  default: f(() => [
2839
- I(x(o(i)), 1)
2836
+ I(x(l(i)), 1)
2840
2837
  ]),
2841
2838
  _: 1
2842
2839
  }, 8, ["variant"]),
@@ -2845,7 +2842,7 @@ const Gn = { class: "mt-4 flex flex-row-reverse gap-2" }, ea = /* @__PURE__ */ g
2845
2842
  onClick: (m) => $()
2846
2843
  }, {
2847
2844
  default: f(() => [
2848
- I(x(o(l)), 1)
2845
+ I(x(l(o)), 1)
2849
2846
  ]),
2850
2847
  _: 2
2851
2848
  }, 1032, ["variant", "onClick"])
@@ -2946,7 +2943,7 @@ Do you still want to proceed?`
2946
2943
  onClick: r[0] || (r[0] = (a) => e.$app.reload())
2947
2944
  }, {
2948
2945
  default: f(() => [
2949
- p(o(pa)),
2946
+ p(l(pa)),
2950
2947
  I(" " + x(e.$td("startupCrash.reload", "Try again")), 1)
2951
2948
  ]),
2952
2949
  _: 1
@@ -2956,7 +2953,7 @@ Do you still want to proceed?`
2956
2953
  onClick: r[1] || (r[1] = (a) => e.$errors.inspect(e.$errors.startupErrors))
2957
2954
  }, {
2958
2955
  default: f(() => [
2959
- p(o(ra)),
2956
+ p(l(ra)),
2960
2957
  I(" " + x(e.$td("startupCrash.inspect", "View error details")), 1)
2961
2958
  ]),
2962
2959
  _: 1
@@ -2966,7 +2963,7 @@ Do you still want to proceed?`
2966
2963
  onClick: r[2] || (r[2] = (a) => s())
2967
2964
  }, {
2968
2965
  default: f(() => [
2969
- p(o(la)),
2966
+ p(l(la)),
2970
2967
  I(" " + x(e.$td("startupCrash.purge", "Purge device")), 1)
2971
2968
  ]),
2972
2969
  _: 1
@@ -2976,7 +2973,7 @@ Do you still want to proceed?`
2976
2973
  onClick: r[3] || (r[3] = (a) => e.$errors.debug = !e.$errors.debug)
2977
2974
  }, {
2978
2975
  default: f(() => [
2979
- p(o(ua)),
2976
+ p(l(ua)),
2980
2977
  I(" " + x(e.$td("startupCrash.debug", "Toggle debugging")), 1)
2981
2978
  ]),
2982
2979
  _: 1
@@ -2992,7 +2989,7 @@ Do you still want to proceed?`
2992
2989
  action: {}
2993
2990
  },
2994
2991
  setup(t) {
2995
- return (s, e) => (u(), h(W(s.action.dismiss ? o(Ss) : "button"), {
2992
+ return (s, e) => (u(), h(W(s.action.dismiss ? l(Ss) : "button"), {
2996
2993
  type: "button",
2997
2994
  onClick: s.action.click
2998
2995
  }, {
@@ -3010,7 +3007,7 @@ Do you still want to proceed?`
3010
3007
  variant: {}
3011
3008
  },
3012
3009
  setup(t) {
3013
- return (s, e) => (u(), h(o(Ts), null, {
3010
+ return (s, e) => (u(), h(l(Ts), null, {
3014
3011
  default: f(() => [
3015
3012
  w(s.$slots, "default", {}, () => [
3016
3013
  s.message ? (u(), b("span", ba, x(s.message), 1)) : T("", !0),
@@ -3107,14 +3104,14 @@ const Ca = { key: 0 }, ka = /* @__PURE__ */ g({
3107
3104
  }), Sa = /* @__PURE__ */ g({
3108
3105
  __name: "AppToasts",
3109
3106
  setup(t) {
3110
- return (s, e) => (u(), h(o(Ms), null, {
3107
+ return (s, e) => (u(), h(l(Ms), null, {
3111
3108
  default: f(() => [
3112
3109
  (u(!0), b(D, null, F(s.$ui.toasts, (r) => (u(), h(W(r.component), H({
3113
3110
  id: r.id,
3114
3111
  key: r.id,
3115
3112
  ref_for: !0
3116
3113
  }, r.properties), null, 16, ["id"]))), 128)),
3117
- p(o(Hs), { class: "fixed right-0 bottom-0 z-50 flex flex-col items-end space-y-4 px-4 py-6 sm:p-6" })
3114
+ p(l(Hs), { class: "fixed right-0 bottom-0 z-50 flex flex-col items-end space-y-4 px-4 py-6 sm:p-6" })
3118
3115
  ]),
3119
3116
  _: 1
3120
3117
  }));
@@ -3150,14 +3147,14 @@ const Ca = { key: 0 }, ka = /* @__PURE__ */ g({
3150
3147
  return st(e, () => {
3151
3148
  var i;
3152
3149
  return (i = s.value) == null ? void 0 : i.focus();
3153
- }), (i, l) => (u(), b("textarea", {
3154
- id: o(e).id,
3150
+ }), (i, o) => (u(), b("textarea", {
3151
+ id: l(e).id,
3155
3152
  ref: "$textAreaRef",
3156
3153
  name: r.value,
3157
3154
  value: n.value,
3158
- required: o(e).required ?? void 0,
3159
- "aria-invalid": o(e).errors ? "true" : "false",
3160
- "aria-describedby": o(e).errors ? `${o(e).id}-error` : o(e).description ? `${o(e).id}-description` : void 0,
3155
+ required: l(e).required ?? void 0,
3156
+ "aria-invalid": l(e).errors ? "true" : "false",
3157
+ "aria-describedby": l(e).errors ? `${l(e).id}-error` : l(e).description ? `${l(e).id}-description` : void 0,
3161
3158
  onInput: a
3162
3159
  }, null, 40, Ha));
3163
3160
  }
@@ -3166,7 +3163,7 @@ const Ca = { key: 0 }, ka = /* @__PURE__ */ g({
3166
3163
  setup(t) {
3167
3164
  return (s, e) => (u(), b("details", Va, [
3168
3165
  y("summary", La, [
3169
- p(o(_t), { class: "size-6 transition-transform group-open:rotate-90" }),
3166
+ p(l(_t), { class: "size-6 transition-transform group-open:rotate-90" }),
3170
3167
  y("span", null, x(s.$td("ui.advancedOptions", "Advanced options")), 1)
3171
3168
  ]),
3172
3169
  y("div", Ia, [
@@ -3197,7 +3194,7 @@ const Ca = { key: 0 }, ka = /* @__PURE__ */ g({
3197
3194
  },
3198
3195
  t.inputClass
3199
3196
  );
3200
- }), l = c(() => M("ml-2 text-sm leading-6", t.labelClass));
3197
+ }), o = c(() => M("ml-2 text-sm leading-6", t.labelClass));
3201
3198
  return (d, v) => (u(), h(ze, H({
3202
3199
  ref: "$inputRef",
3203
3200
  class: a.value
@@ -3206,14 +3203,14 @@ const Ca = { key: 0 }, ka = /* @__PURE__ */ g({
3206
3203
  }), {
3207
3204
  default: f(() => [
3208
3205
  y("div", qa, [
3209
- p(xt, H(o(r), {
3206
+ p(xt, H(l(r), {
3210
3207
  type: "checkbox",
3211
3208
  class: i.value
3212
3209
  }), null, 16, ["class"])
3213
3210
  ]),
3214
3211
  d.$slots.default ? (u(), b("div", {
3215
3212
  key: 0,
3216
- class: k(l.value)
3213
+ class: k(o.value)
3217
3214
  }, [
3218
3215
  p(fe, { class: "text-gray-900" }, {
3219
3216
  default: f(() => [
@@ -3224,7 +3221,7 @@ const Ca = { key: 0 }, ka = /* @__PURE__ */ g({
3224
3221
  p(he, { class: "text-red-600" })
3225
3222
  ], 2)) : d.label ? (u(), b("div", {
3226
3223
  key: 1,
3227
- class: k(l.value)
3224
+ class: k(o.value)
3228
3225
  }, [
3229
3226
  p(fe, { class: "text-gray-900" }),
3230
3227
  p(he, { class: "text-red-600" })
@@ -3246,7 +3243,7 @@ const Ca = { key: 0 }, ka = /* @__PURE__ */ g({
3246
3243
  "flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm text-gray-900 data-[highlighted]:bg-gray-100",
3247
3244
  t.class
3248
3245
  ));
3249
- return (r, n) => (u(), h(o(Es), H({ class: e.value }, s, {
3246
+ return (r, n) => (u(), h(l(Es), H({ class: e.value }, s, {
3250
3247
  onSelect: n[0] || (n[0] = (a) => r.$emit("select"))
3251
3248
  }), {
3252
3249
  default: f(() => [
@@ -3262,14 +3259,14 @@ const Ca = { key: 0 }, ka = /* @__PURE__ */ g({
3262
3259
  "dropdown-menu",
3263
3260
  "<DropdownMenuOptions> must be a child of a <DropdownMenu>"
3264
3261
  );
3265
- return (e, r) => (u(), h(o(Vs), {
3262
+ return (e, r) => (u(), h(l(Vs), {
3266
3263
  class: "gap-y-0.5 rounded-lg bg-white p-1.5 shadow-lg ring-1 ring-black/5",
3267
- align: o(s).align,
3268
- side: o(s).side
3264
+ align: l(s).align,
3265
+ side: l(s).side
3269
3266
  }, {
3270
3267
  default: f(() => [
3271
3268
  w(e.$slots, "default", {}, () => [
3272
- (u(!0), b(D, null, F(o(s).options, (n, a) => (u(), h(za, H(
3269
+ (u(!0), b(D, null, F(l(s).options, (n, a) => (u(), h(za, H(
3273
3270
  {
3274
3271
  key: a,
3275
3272
  as: n.route || n.href ? ct : void 0,
@@ -3284,8 +3281,8 @@ const Ca = { key: 0 }, ka = /* @__PURE__ */ g({
3284
3281
  } : {},
3285
3282
  {
3286
3283
  onSelect: (i) => {
3287
- var l;
3288
- return (l = n.click) == null ? void 0 : l.call(n);
3284
+ var o;
3285
+ return (o = n.click) == null ? void 0 : o.call(n);
3289
3286
  }
3290
3287
  }
3291
3288
  ), {
@@ -3315,15 +3312,15 @@ const Ca = { key: 0 }, ka = /* @__PURE__ */ g({
3315
3312
  return (r = t.options) == null ? void 0 : r.filter(Boolean);
3316
3313
  })
3317
3314
  };
3318
- return le("dropdown-menu", e), s(e), (r, n) => (u(), h(o(Ls), null, {
3315
+ return le("dropdown-menu", e), s(e), (r, n) => (u(), h(l(Ls), null, {
3319
3316
  default: f(() => [
3320
- p(o(Is), null, {
3317
+ p(l(Is), null, {
3321
3318
  default: f(() => [
3322
3319
  w(r.$slots, "default")
3323
3320
  ]),
3324
3321
  _: 3
3325
3322
  }),
3326
- p(o(qs), null, {
3323
+ p(l(qs), null, {
3327
3324
  default: f(() => [
3328
3325
  w(r.$slots, "options", {}, () => [
3329
3326
  p(Ra)
@@ -3348,7 +3345,7 @@ const Ca = { key: 0 }, ka = /* @__PURE__ */ g({
3348
3345
  },
3349
3346
  emits: ["update", "save"],
3350
3347
  setup(t, { emit: s }) {
3351
- const e = s, r = G("$inputRef"), n = U(null), a = U(t.text), i = c(() => M("inline whitespace-pre", t.contentClass)), l = c(() => M("invisible whitespace-pre", t.contentClass)), d = c(() => M("absolute inset-0 h-full w-full resize-none border-0 bg-transparent p-0 focus:ring-0", t.contentClass));
3348
+ const e = s, r = G("$inputRef"), n = U(null), a = U(t.text), i = c(() => M("inline whitespace-pre", t.contentClass)), o = c(() => M("invisible whitespace-pre", t.contentClass)), d = c(() => M("absolute inset-0 h-full w-full resize-none border-0 bg-transparent p-0 focus:ring-0", t.contentClass));
3352
3349
  function v() {
3353
3350
  n.value = t.text;
3354
3351
  }
@@ -3360,7 +3357,7 @@ const Ca = { key: 0 }, ka = /* @__PURE__ */ g({
3360
3357
  }, [
3361
3358
  n.value ? (u(), b("span", {
3362
3359
  key: 1,
3363
- class: k(l.value)
3360
+ class: k(o.value)
3364
3361
  }, x(a.value), 3)) : (u(), b("div", {
3365
3362
  key: 0,
3366
3363
  class: k(i.value)
@@ -3444,7 +3441,7 @@ const Oa = E({ name: "zondicons-view-show", render: Ua }), Na = { class: "font-m
3444
3441
  }, x(r.date.toLocaleTimeString()), 9, Wa),
3445
3442
  p(P, {
3446
3443
  class: "text-sm text-gray-500",
3447
- text: r.report.description ?? o(yt)(r.report)
3444
+ text: r.report.description ?? l(yt)(r.report)
3448
3445
  }, null, 8, ["text"])
3449
3446
  ]),
3450
3447
  p(q, {
@@ -3459,7 +3456,7 @@ const Oa = E({ name: "zondicons-view-show", render: Ua }), Na = { class: "font-m
3459
3456
  )
3460
3457
  }, {
3461
3458
  default: f(() => [
3462
- p(o(Oa), {
3459
+ p(l(Oa), {
3463
3460
  class: "size-4",
3464
3461
  "aria-hidden": "true"
3465
3462
  })
@@ -3484,7 +3481,7 @@ const Oa = E({ name: "zondicons-view-show", render: Ua }), Na = { class: "font-m
3484
3481
  onClick: e[0] || (e[0] = (r) => s.$ui.modal(Ka))
3485
3482
  }, {
3486
3483
  default: f(() => [
3487
- p(o(Ba), { class: "size-6 text-red-500" })
3484
+ p(l(Ba), { class: "size-6 text-red-500" })
3488
3485
  ]),
3489
3486
  _: 1
3490
3487
  }, 8, ["title", "aria-label"])) : T("", !0);
@@ -3553,24 +3550,24 @@ const Oa = E({ name: "zondicons-view-show", render: Ua }), Na = { class: "font-m
3553
3550
  emits: ["update:modelValue"],
3554
3551
  setup(t) {
3555
3552
  const s = N(t, ["label", "inputClass", "wrapperClass"]), e = G("$inputRef"), [r, n] = Ie(), a = c(() => M("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), i = c(() => {
3556
- var l, d, v;
3553
+ var o, d, v;
3557
3554
  return M(
3558
3555
  // eslint-disable-next-line vue/max-len
3559
3556
  "block w-full rounded-md border-0 py-1.5 ring-1 ring-inset focus:ring-2 focus:ring-inset sm:text-sm sm:leading-6",
3560
3557
  {
3561
- "focus:ring-primary-600": !((l = e.value) != null && l.errors),
3558
+ "focus:ring-primary-600": !((o = e.value) != null && o.errors),
3562
3559
  "text-gray-900 shadow-2xs ring-gray-900/10 placeholder:text-gray-400": !((d = e.value) != null && d.errors),
3563
3560
  "pr-10 text-red-900 ring-red-900/10 placeholder:text-red-300 focus:ring-red-500": (v = e.value) == null ? void 0 : v.errors
3564
3561
  },
3565
3562
  t.inputClass
3566
3563
  );
3567
3564
  });
3568
- return (l, d) => (u(), h(ze, H({
3565
+ return (o, d) => (u(), h(ze, H({
3569
3566
  ref: "$inputRef",
3570
- label: l.label,
3571
- class: o(n)
3567
+ label: o.label,
3568
+ class: l(n)
3572
3569
  }, s, {
3573
- "onUpdate:modelValue": d[0] || (d[0] = (v) => l.$emit("update:modelValue", v))
3570
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => o.$emit("update:modelValue", v))
3574
3571
  }), {
3575
3572
  default: f(() => {
3576
3573
  var v;
@@ -3579,9 +3576,9 @@ const Oa = E({ name: "zondicons-view-show", render: Ua }), Na = { class: "font-m
3579
3576
  y("div", {
3580
3577
  class: k(a.value)
3581
3578
  }, [
3582
- p(Ea, H(o(r), { class: i.value }), null, 16, ["class"]),
3579
+ p(Ea, H(l(r), { class: i.value }), null, 16, ["class"]),
3583
3580
  (v = e.value) != null && v.errors ? (u(), b("div", Qa, [
3584
- p(o(qe), { class: "size-5 text-red-500" })
3581
+ p(l(qe), { class: "size-5 text-red-500" })
3585
3582
  ])) : T("", !0)
3586
3583
  ], 2),
3587
3584
  p(Ct, { class: "mt-2 text-sm text-gray-600" }),
@@ -3750,6 +3747,7 @@ export {
3750
3747
  z as UI,
3751
3748
  dr as UIService,
3752
3749
  pl as __valueType,
3750
+ nr as aerogelDirectives,
3753
3751
  zs as appNamespace,
3754
3752
  $l as booleanInput,
3755
3753
  $e as bootServices,