@romainbx/wpic-components 0.0.8 → 0.0.9

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,4 +1,4 @@
1
- import { inject as jl, computed as te, toValue as fe, getCurrentInstance as Hn, defineComponent as gr, toRef as Dr, resolveDynamicComponent as Ts, h as Pt, unref as B, onMounted as yr, provide as Wl, isRef as uo, watch as Wt, onBeforeUnmount as Kr, ref as Ne, reactive as ls, nextTick as Et, warn as Fm, readonly as zm, watchEffect as rf, onUnmounted as sf, shallowRef as of, openBlock as T, createElementBlock as R, createElementVNode as V, createVNode as Oe, normalizeClass as ne, createBlock as Ve, withCtx as je, createCommentVNode as ve, renderSlot as Pe, createTextVNode as wt, toDisplayString as Me, Fragment as xt, Teleport as af, resolveComponent as lf, withModifiers as uf, withDirectives as Ju, vShow as Gu, renderList as jt, normalizeStyle as Hl, useSlots as jm, markRaw as Wm, customRef as Hm } from "vue";
1
+ import { inject as jl, computed as ne, toValue as fe, getCurrentInstance as Hn, defineComponent as gr, toRef as Dr, resolveDynamicComponent as Ts, h as Pt, unref as V, onMounted as yr, provide as Wl, isRef as uo, watch as Wt, onBeforeUnmount as Kr, ref as Ne, reactive as ls, nextTick as Et, warn as Fm, readonly as zm, watchEffect as rf, onUnmounted as sf, shallowRef as of, openBlock as T, createElementBlock as R, createElementVNode as B, createVNode as Oe, normalizeClass as Q, createBlock as Ve, withCtx as je, createCommentVNode as ve, renderSlot as Pe, createTextVNode as wt, toDisplayString as Ce, Fragment as xt, Teleport as af, resolveComponent as lf, withModifiers as uf, withDirectives as Ju, vShow as Gu, renderList as jt, normalizeStyle as Hl, useSlots as jm, markRaw as Wm, customRef as Hm } from "vue";
2
2
  function Ym() {
3
3
  return cf().__VUE_DEVTOOLS_GLOBAL_HOOK__;
4
4
  }
@@ -662,10 +662,10 @@ function Tg(t, e) {
662
662
  type: e.type,
663
663
  validate: e.validate,
664
664
  schema: e.schema
665
- }), o = te(() => s.errors);
665
+ }), o = ne(() => s.errors);
666
666
  function a(l) {
667
667
  var u, c, d;
668
- "value" in l && (n.value = l.value), "errors" in l && ((u = e.form) === null || u === void 0 || u.setFieldError(B(t), l.errors)), "touched" in l && ((c = e.form) === null || c === void 0 || c.setFieldTouched(B(t), (d = l.touched) !== null && d !== void 0 ? d : !1)), "initialValue" in l && i(l.initialValue);
668
+ "value" in l && (n.value = l.value), "errors" in l && ((u = e.form) === null || u === void 0 || u.setFieldError(V(t), l.errors)), "touched" in l && ((c = e.form) === null || c === void 0 || c.setFieldTouched(V(t), (d = l.touched) !== null && d !== void 0 ? d : !1)), "initialValue" in l && i(l.initialValue);
669
669
  }
670
670
  return {
671
671
  id: Array.isArray(s.id) ? s.id[s.id.length - 1] : s.id,
@@ -679,18 +679,18 @@ function Tg(t, e) {
679
679
  };
680
680
  }
681
681
  function Dg(t, e, n) {
682
- const r = Ne(B(e));
682
+ const r = Ne(V(e));
683
683
  function i() {
684
- return n ? kt(n.initialValues.value, B(t), B(r)) : B(r);
684
+ return n ? kt(n.initialValues.value, V(t), V(r)) : V(r);
685
685
  }
686
686
  function s(u) {
687
687
  if (!n) {
688
688
  r.value = u;
689
689
  return;
690
690
  }
691
- n.setFieldInitialValue(B(t), u, !0);
691
+ n.setFieldInitialValue(V(t), u, !0);
692
692
  }
693
- const o = te(i);
693
+ const o = ne(i);
694
694
  if (!n)
695
695
  return {
696
696
  value: Ne(i()),
@@ -698,13 +698,13 @@ function Dg(t, e, n) {
698
698
  setInitialValue: s
699
699
  };
700
700
  const a = Eg(e, n, o, t);
701
- return n.stageInitialValue(B(t), a, !0), {
702
- value: te({
701
+ return n.stageInitialValue(V(t), a, !0), {
702
+ value: ne({
703
703
  get() {
704
- return kt(n.values, B(t));
704
+ return kt(n.values, V(t));
705
705
  },
706
706
  set(u) {
707
- n.setFieldValue(B(t), u, !1);
707
+ n.setFieldValue(V(t), u, !1);
708
708
  }
709
709
  }),
710
710
  initialValue: o,
@@ -712,10 +712,10 @@ function Dg(t, e, n) {
712
712
  };
713
713
  }
714
714
  function Eg(t, e, n, r) {
715
- return uo(t) ? B(t) : t !== void 0 ? t : kt(e.values, B(r), B(n));
715
+ return uo(t) ? V(t) : t !== void 0 ? t : kt(e.values, V(r), V(n));
716
716
  }
717
717
  function _g(t, e, n, r) {
718
- const i = te(() => {
718
+ const i = ne(() => {
719
719
  var o, a, l;
720
720
  return (l = (a = (o = fe(r)) === null || o === void 0 ? void 0 : o.describe) === null || a === void 0 ? void 0 : a.call(o).required) !== null && l !== void 0 ? l : !1;
721
721
  }), s = ls({
@@ -723,9 +723,9 @@ function _g(t, e, n, r) {
723
723
  pending: !1,
724
724
  valid: !0,
725
725
  required: i,
726
- validated: !!B(n).length,
727
- initialValue: te(() => B(e)),
728
- dirty: te(() => !ct(B(t), B(e)))
726
+ validated: !!V(n).length,
727
+ initialValue: ne(() => V(e)),
728
+ dirty: ne(() => !ct(V(t), V(e)))
729
729
  });
730
730
  return Wt(n, (o) => {
731
731
  s.valid = !o.length;
@@ -875,7 +875,7 @@ function Ig(t) {
875
875
  function Rg(t) {
876
876
  const { textColor: e, bgColor: n } = Sf(t.meta.value.valid), r = {};
877
877
  Object.values(t.getAllPathStates()).forEach((o) => {
878
- Pn(r, B(o.path), $g(o, t));
878
+ Pn(r, V(o.path), $g(o, t));
879
879
  });
880
880
  function i(o, a = []) {
881
881
  const l = [...a].pop();
@@ -911,14 +911,14 @@ function Rg(t) {
911
911
  function $g(t, e) {
912
912
  return {
913
913
  id: Gl(e, t),
914
- label: B(t.path),
914
+ label: V(t.path),
915
915
  tags: xf(t.multiple, t.fieldsCount, t.type, t.valid, e)
916
916
  };
917
917
  }
918
918
  function Vg(t, e) {
919
919
  return {
920
920
  id: Gl(e, t),
921
- label: B(t.name),
921
+ label: V(t.name),
922
922
  tags: xf(!1, 1, t.type, t.meta.valid, e)
923
923
  };
924
924
  }
@@ -953,7 +953,7 @@ function xf(t, e, n, r, i) {
953
953
  ].filter(Boolean);
954
954
  }
955
955
  function Gl(t, e) {
956
- const n = e ? "path" in e ? "pathState" : "field" : "form", r = e ? "path" in e ? e == null ? void 0 : e.path : B(e == null ? void 0 : e.name) : "", i = { f: t == null ? void 0 : t.formId, ff: r, type: n };
956
+ const n = e ? "path" in e ? "pathState" : "field" : "form", r = e ? "path" in e ? e == null ? void 0 : e.path : V(e == null ? void 0 : e.name) : "", i = { f: t == null ? void 0 : t.formId, ff: r, type: n };
957
957
  return btoa(encodeURIComponent(JSON.stringify(i)));
958
958
  }
959
959
  function Bg(t) {
@@ -1062,10 +1062,10 @@ function Fg(t, e, n) {
1062
1062
  return Es(n == null ? void 0 : n.type) ? jg(t, e, n) : Of(t, e, n);
1063
1063
  }
1064
1064
  function Of(t, e, n) {
1065
- const { initialValue: r, validateOnMount: i, bails: s, type: o, checkedValue: a, label: l, validateOnValueUpdate: u, uncheckedValue: c, controlled: d, keepValueOnUnmount: f, syncVModel: h, form: p } = zg(n), g = d ? Kl(Ds) : void 0, m = p || g, b = te(() => qi(fe(t))), k = te(() => {
1065
+ const { initialValue: r, validateOnMount: i, bails: s, type: o, checkedValue: a, label: l, validateOnValueUpdate: u, uncheckedValue: c, controlled: d, keepValueOnUnmount: f, syncVModel: h, form: p } = zg(n), g = d ? Kl(Ds) : void 0, m = p || g, b = ne(() => qi(fe(t))), k = ne(() => {
1066
1066
  if (fe(m == null ? void 0 : m.schema))
1067
1067
  return;
1068
- const Z = B(e);
1068
+ const Z = V(e);
1069
1069
  return fo(Z) || Qt(Z) || Ke(Z) || Array.isArray(Z) ? Z : yf(Z);
1070
1070
  }), M = !Ke(k.value) && Qt(fe(e)), { id: y, value: O, initialValue: v, meta: C, setState: A, errors: N, flags: W } = Tg(b, {
1071
1071
  modelValue: r,
@@ -1075,7 +1075,7 @@ function Of(t, e, n) {
1075
1075
  type: o,
1076
1076
  validate: k.value ? Y : void 0,
1077
1077
  schema: M ? e : void 0
1078
- }), ee = te(() => N.value[0]);
1078
+ }), te = ne(() => N.value[0]);
1079
1079
  h && Wg({
1080
1080
  value: O,
1081
1081
  prop: h,
@@ -1131,7 +1131,7 @@ function Of(t, e, n) {
1131
1131
  function Ct($) {
1132
1132
  A({ errors: Array.isArray($) ? $ : [$] });
1133
1133
  }
1134
- const Tt = te({
1134
+ const Tt = ne({
1135
1135
  get() {
1136
1136
  return O.value;
1137
1137
  },
@@ -1145,7 +1145,7 @@ function Of(t, e, n) {
1145
1145
  value: Tt,
1146
1146
  meta: C,
1147
1147
  errors: N,
1148
- errorMessage: ee,
1148
+ errorMessage: te,
1149
1149
  type: o,
1150
1150
  checkedValue: a,
1151
1151
  uncheckedValue: c,
@@ -1161,7 +1161,7 @@ function Of(t, e, n) {
1161
1161
  setErrors: Ct,
1162
1162
  setValue: mt
1163
1163
  };
1164
- if (Wl(hf, De), uo(e) && typeof B(e) != "function" && Wt(e, ($, Z) => {
1164
+ if (Wl(hf, De), uo(e) && typeof V(e) != "function" && Wt(e, ($, Z) => {
1165
1165
  ct($, Z) || (C.validated ? ce() : le());
1166
1166
  }, {
1167
1167
  deep: !0
@@ -1169,7 +1169,7 @@ function Of(t, e, n) {
1169
1169
  deep: !0
1170
1170
  }), m || Pg(De)), !m)
1171
1171
  return De;
1172
- const at = te(() => {
1172
+ const at = ne(() => {
1173
1173
  const $ = k.value;
1174
1174
  return !$ || Ke($) || fo($) || Qt($) || Array.isArray($) ? {} : Object.keys($).reduce((Z, be) => {
1175
1175
  const de = yg($[be]).map((Ye) => Ye.__locatorRef).reduce((Ye, Ue) => {
@@ -1230,7 +1230,7 @@ function zg(t) {
1230
1230
  function jg(t, e, n) {
1231
1231
  const r = n != null && n.standalone ? void 0 : Kl(Ds), i = n == null ? void 0 : n.checkedValue, s = n == null ? void 0 : n.uncheckedValue;
1232
1232
  function o(a) {
1233
- const l = a.handleChange, u = te(() => {
1233
+ const l = a.handleChange, u = ne(() => {
1234
1234
  const d = fe(a.value), f = fe(i);
1235
1235
  return Array.isArray(d) ? d.findIndex((h) => ct(h, f)) >= 0 : ct(f, d);
1236
1236
  });
@@ -1358,8 +1358,8 @@ const Hg = /* @__PURE__ */ gr({
1358
1358
  syncVModel: !0
1359
1359
  }), M = function(N, W = !0) {
1360
1360
  d(N, W);
1361
- }, y = te(() => {
1362
- const { validateOnInput: A, validateOnChange: N, validateOnBlur: W, validateOnModelUpdate: ee } = Yg(t);
1361
+ }, y = ne(() => {
1362
+ const { validateOnInput: A, validateOnChange: N, validateOnBlur: W, validateOnModelUpdate: te } = Yg(t);
1363
1363
  function X(Y) {
1364
1364
  f(Y, W), Ke(e.attrs.onBlur) && e.attrs.onBlur(Y);
1365
1365
  }
@@ -1375,13 +1375,13 @@ const Hg = /* @__PURE__ */ gr({
1375
1375
  onInput: ae,
1376
1376
  onChange: ce
1377
1377
  };
1378
- return le["onUpdate:modelValue"] = (Y) => M(Y, ee), le;
1379
- }), O = te(() => {
1378
+ return le["onUpdate:modelValue"] = (Y) => M(Y, te), le;
1379
+ }), O = ne(() => {
1380
1380
  const A = Object.assign({}, y.value);
1381
1381
  Es(e.attrs.type) && b && (A.checked = b.value);
1382
1382
  const N = ac(t, e);
1383
1383
  return ug(N, e.attrs) && (A.value = l.value), A;
1384
- }), v = te(() => Object.assign(Object.assign({}, y.value), { modelValue: l.value }));
1384
+ }), v = ne(() => Object.assign(Object.assign({}, y.value), { modelValue: l.value }));
1385
1385
  function C() {
1386
1386
  return {
1387
1387
  field: O.value,
@@ -1437,7 +1437,7 @@ const Ws = Hg;
1437
1437
  let qg = 0;
1438
1438
  const Hs = ["bails", "fieldsCount", "id", "multiple", "type", "validate"];
1439
1439
  function Mf(t) {
1440
- const e = (t == null ? void 0 : t.initialValues) || {}, n = Object.assign({}, fe(e)), r = B(t == null ? void 0 : t.validationSchema);
1440
+ const e = (t == null ? void 0 : t.initialValues) || {}, n = Object.assign({}, fe(e)), r = V(t == null ? void 0 : t.validationSchema);
1441
1441
  return r && Qt(r) && Ke(r.cast) ? ke(r.cast(n) || {}) : ke(n);
1442
1442
  }
1443
1443
  function Kg(t) {
@@ -1465,30 +1465,30 @@ function Kg(t) {
1465
1465
  });
1466
1466
  }
1467
1467
  t != null && t.initialErrors && p(t.initialErrors);
1468
- const g = te(() => {
1468
+ const g = ne(() => {
1469
1469
  const S = u.value.reduce((x, E) => (E.errors.length && (x[E.path] = E.errors), x), {});
1470
1470
  return Object.assign(Object.assign({}, c.value), S);
1471
- }), m = te(() => vt(g.value).reduce((S, x) => {
1471
+ }), m = ne(() => vt(g.value).reduce((S, x) => {
1472
1472
  const E = g.value[x];
1473
1473
  return E != null && E.length && (S[x] = E[0]), S;
1474
- }, {})), b = te(() => u.value.reduce((S, x) => (S[x.path] = { name: x.path || "", label: x.label || "" }, S), {})), k = te(() => u.value.reduce((S, x) => {
1474
+ }, {})), b = ne(() => u.value.reduce((S, x) => (S[x.path] = { name: x.path || "", label: x.label || "" }, S), {})), k = ne(() => u.value.reduce((S, x) => {
1475
1475
  var E;
1476
1476
  return S[x.path] = (E = x.bails) !== null && E !== void 0 ? E : !0, S;
1477
- }, {})), M = Object.assign({}, (t == null ? void 0 : t.initialErrors) || {}), y = (e = t == null ? void 0 : t.keepValuesOnUnmount) !== null && e !== void 0 ? e : !1, { initialValues: O, originalInitialValues: v, setInitialValues: C } = Gg(u, l, t), A = Jg(u, l, v, m), N = te(() => u.value.reduce((S, x) => {
1477
+ }, {})), M = Object.assign({}, (t == null ? void 0 : t.initialErrors) || {}), y = (e = t == null ? void 0 : t.keepValuesOnUnmount) !== null && e !== void 0 ? e : !1, { initialValues: O, originalInitialValues: v, setInitialValues: C } = Gg(u, l, t), A = Jg(u, l, v, m), N = ne(() => u.value.reduce((S, x) => {
1478
1478
  const E = kt(l, x.path);
1479
1479
  return Pn(S, x.path, E), S;
1480
1480
  }, {})), W = t == null ? void 0 : t.validationSchema;
1481
- function ee(S, x) {
1481
+ function te(S, x) {
1482
1482
  var E, F;
1483
- const J = te(() => kt(O.value, fe(S))), w = d.value[fe(S)], P = (x == null ? void 0 : x.type) === "checkbox" || (x == null ? void 0 : x.type) === "radio";
1483
+ const J = ne(() => kt(O.value, fe(S))), w = d.value[fe(S)], P = (x == null ? void 0 : x.type) === "checkbox" || (x == null ? void 0 : x.type) === "radio";
1484
1484
  if (w && P) {
1485
1485
  w.multiple = !0;
1486
1486
  const lt = r++;
1487
1487
  return Array.isArray(w.id) ? w.id.push(lt) : w.id = [w.id, lt], w.fieldsCount++, w.__flags.pendingUnmount[lt] = !1, w;
1488
1488
  }
1489
- const z = te(() => kt(l, fe(S))), K = fe(S), G = ye.findIndex((lt) => lt === K);
1489
+ const z = ne(() => kt(l, fe(S))), K = fe(S), G = ye.findIndex((lt) => lt === K);
1490
1490
  G !== -1 && ye.splice(G, 1);
1491
- const re = te(() => {
1491
+ const re = ne(() => {
1492
1492
  var lt, Dt, Mr, Xn;
1493
1493
  const fn = fe(W);
1494
1494
  if (Qt(fn))
@@ -1516,7 +1516,7 @@ function Kg(t) {
1516
1516
  },
1517
1517
  fieldsCount: 1,
1518
1518
  validate: x == null ? void 0 : x.validate,
1519
- dirty: te(() => !ct(B(z), B(J)))
1519
+ dirty: ne(() => !ct(V(z), V(J)))
1520
1520
  });
1521
1521
  return u.value.push(Re), d.value[K] = Re, f(), m.value[K] && !M[K] && Et(() => {
1522
1522
  Bt(K, { mode: "silent" });
@@ -1627,7 +1627,7 @@ function Kg(t) {
1627
1627
  isValidating: s,
1628
1628
  fieldArrays: a,
1629
1629
  keepValuesOnUnmount: y,
1630
- validateSchema: B(W) ? ce : void 0,
1630
+ validateSchema: V(W) ? ce : void 0,
1631
1631
  validate: Gt,
1632
1632
  setFieldError: h,
1633
1633
  validateField: Bt,
@@ -1646,7 +1646,7 @@ function Kg(t) {
1646
1646
  stageInitialValue: cn,
1647
1647
  unsetInitialValue: Lt,
1648
1648
  setFieldInitialValue: _n,
1649
- createPathState: ee,
1649
+ createPathState: te,
1650
1650
  getPathState: Y,
1651
1651
  unsetPathValue: ot,
1652
1652
  removePathState: De,
@@ -1659,7 +1659,7 @@ function Kg(t) {
1659
1659
  };
1660
1660
  function Z(S, x, E = !0) {
1661
1661
  const F = ke(x), J = typeof S == "string" ? S : S.path;
1662
- Y(J) || ee(J), Pn(l, J, F), E && Bt(J);
1662
+ Y(J) || te(J), Pn(l, J, F), E && Bt(J);
1663
1663
  }
1664
1664
  function be(S, x = !0) {
1665
1665
  vt(l).forEach((E) => {
@@ -1672,8 +1672,8 @@ function Kg(t) {
1672
1672
  us(l, S), a.forEach((E) => E && E.reset()), x && Gt();
1673
1673
  }
1674
1674
  function Ye(S, x) {
1675
- const E = Y(fe(S)) || ee(S);
1676
- return te({
1675
+ const E = Y(fe(S)) || te(S);
1676
+ return ne({
1677
1677
  get() {
1678
1678
  return E.value;
1679
1679
  },
@@ -1775,7 +1775,7 @@ function Kg(t) {
1775
1775
  Pn(O.value, S, ke(x)), E && Pn(v.value, S, ke(x));
1776
1776
  }
1777
1777
  async function dn() {
1778
- const S = B(W);
1778
+ const S = V(W);
1779
1779
  if (!S)
1780
1780
  return { valid: !0, results: {}, errors: {} };
1781
1781
  s.value = !0;
@@ -1801,7 +1801,7 @@ function Kg(t) {
1801
1801
  deep: !0
1802
1802
  }));
1803
1803
  function Zn(S, x) {
1804
- const E = Ke(x) || x == null ? void 0 : x.label, F = Y(fe(S)) || ee(S, { label: E }), J = () => Ke(x) ? x(js(F, Hs)) : x || {};
1804
+ const E = Ke(x) || x == null ? void 0 : x.label, F = Y(fe(S)) || te(S, { label: E }), J = () => Ke(x) ? x(js(F, Hs)) : x || {};
1805
1805
  function w() {
1806
1806
  var re;
1807
1807
  F.touched = !0, ((re = J().validateOnBlur) !== null && re !== void 0 ? re : Ar().validateOnBlur) && Bt(F.path);
@@ -1818,7 +1818,7 @@ function Kg(t) {
1818
1818
  Bt(F.path);
1819
1819
  });
1820
1820
  }
1821
- const K = te(() => {
1821
+ const K = ne(() => {
1822
1822
  const re = {
1823
1823
  onChange: z,
1824
1824
  onInput: P,
@@ -1847,7 +1847,7 @@ function Kg(t) {
1847
1847
  const K = ho(z);
1848
1848
  Z(fe(S), K, !1), F.value.onChange();
1849
1849
  }
1850
- return te(() => Object.assign(Object.assign({}, F.value), {
1850
+ return ne(() => Object.assign(Object.assign({}, F.value), {
1851
1851
  onBlur: J,
1852
1852
  onInput: w,
1853
1853
  onChange: P,
@@ -1859,7 +1859,7 @@ function Kg(t) {
1859
1859
  function w(P) {
1860
1860
  E.value = P;
1861
1861
  }
1862
- return te(() => {
1862
+ return ne(() => {
1863
1863
  const P = Ke(x) ? x(js(J, Hs)) : x || {};
1864
1864
  return Object.assign({ [P.model || "modelValue"]: E.value, [`onUpdate:${P.model || "modelValue"}`]: w }, F.value);
1865
1865
  });
@@ -1871,7 +1871,7 @@ function Jg(t, e, n, r) {
1871
1871
  touched: "some",
1872
1872
  pending: "some",
1873
1873
  valid: "every"
1874
- }, s = te(() => !ct(e, B(n)));
1874
+ }, s = ne(() => !ct(e, V(n)));
1875
1875
  function o() {
1876
1876
  const l = t.value;
1877
1877
  return vt(i).reduce((u, c) => {
@@ -1883,7 +1883,7 @@ function Jg(t, e, n, r) {
1883
1883
  return rf(() => {
1884
1884
  const l = o();
1885
1885
  a.touched = l.touched, a.valid = l.valid, a.pending = l.pending;
1886
- }), te(() => Object.assign(Object.assign({ initialValues: B(n) }, a), { valid: a.valid && !vt(r.value).length, dirty: s.value }));
1886
+ }), ne(() => Object.assign(Object.assign({ initialValues: V(n) }, a), { valid: a.valid && !vt(r.value).length, dirty: s.value }));
1887
1887
  }
1888
1888
  function Gg(t, e, n) {
1889
1889
  const r = Mf(n), i = Ne(r), s = Ne(ke(r));
@@ -1962,7 +1962,7 @@ const Xg = /* @__PURE__ */ gr({
1962
1962
  function W(Y) {
1963
1963
  Ul(Y) && Y.preventDefault(), p(), typeof e.attrs.onReset == "function" && e.attrs.onReset();
1964
1964
  }
1965
- function ee(Y, ue) {
1965
+ function te(Y, ue) {
1966
1966
  return m(typeof Y == "function" && !ue ? Y : ue, t.onInvalidSubmit)(Y);
1967
1967
  }
1968
1968
  function X() {
@@ -1986,7 +1986,7 @@ const Xg = /* @__PURE__ */ gr({
1986
1986
  controlledValues: d.value,
1987
1987
  validate: f,
1988
1988
  validateField: h,
1989
- handleSubmit: ee,
1989
+ handleSubmit: te,
1990
1990
  handleReset: p,
1991
1991
  submitForm: A,
1992
1992
  setErrors: b,
@@ -2040,7 +2040,7 @@ const Xg = /* @__PURE__ */ gr({
2040
2040
  }
2041
2041
  },
2042
2042
  setup(t, e) {
2043
- const n = jl(Ds, void 0), r = te(() => n == null ? void 0 : n.errors.value[t.name]);
2043
+ const n = jl(Ds, void 0), r = ne(() => n == null ? void 0 : n.errors.value[t.name]);
2044
2044
  function i() {
2045
2045
  return {
2046
2046
  message: r.value
@@ -2056,7 +2056,7 @@ const Xg = /* @__PURE__ */ gr({
2056
2056
  }), t0 = e0;
2057
2057
  function n0(t) {
2058
2058
  const e = Kl(Ds), n = t ? void 0 : jl(hf);
2059
- return te(() => t ? e == null ? void 0 : e.errors.value[fe(t)] : n == null ? void 0 : n.errorMessage.value);
2059
+ return ne(() => t ? e == null ? void 0 : e.errors.value[fe(t)] : n == null ? void 0 : n.errorMessage.value);
2060
2060
  }
2061
2061
  an("required", (t) => typeof t == "object" && t != null || typeof t == "boolean" && t === !0 ? !0 : !t || !t.length ? "This field is required" : !0);
2062
2062
  an("email", (t) => {
@@ -2084,7 +2084,7 @@ const Te = (t, e) => {
2084
2084
  xmlns: "http://www.w3.org/2000/svg",
2085
2085
  viewBox: "0 0 512 512",
2086
2086
  fill: "currentColor"
2087
- }, s0 = /* @__PURE__ */ V("path", { d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z" }, null, -1), o0 = [
2087
+ }, s0 = /* @__PURE__ */ B("path", { d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z" }, null, -1), o0 = [
2088
2088
  s0
2089
2089
  ];
2090
2090
  function a0(t, e) {
@@ -2094,7 +2094,7 @@ const l0 = /* @__PURE__ */ Te(r0, [["render", a0]]), u0 = {}, c0 = {
2094
2094
  xmlns: "http://www.w3.org/2000/svg",
2095
2095
  viewBox: "0 0 512 512",
2096
2096
  fill: "currentColor"
2097
- }, d0 = /* @__PURE__ */ V("path", { d: "M460.116 373.846l-20.823-12.022c-5.541-3.199-7.54-10.159-4.663-15.874 30.137-59.886 28.343-131.652-5.386-189.946-33.641-58.394-94.896-95.833-161.827-99.676C261.028 55.961 256 50.751 256 44.352V20.309c0-6.904 5.808-12.337 12.703-11.982 83.556 4.306 160.163 50.864 202.11 123.677 42.063 72.696 44.079 162.316 6.031 236.832-3.14 6.148-10.75 8.461-16.728 5.01z" }, null, -1), f0 = [
2097
+ }, d0 = /* @__PURE__ */ B("path", { d: "M460.116 373.846l-20.823-12.022c-5.541-3.199-7.54-10.159-4.663-15.874 30.137-59.886 28.343-131.652-5.386-189.946-33.641-58.394-94.896-95.833-161.827-99.676C261.028 55.961 256 50.751 256 44.352V20.309c0-6.904 5.808-12.337 12.703-11.982 83.556 4.306 160.163 50.864 202.11 123.677 42.063 72.696 44.079 162.316 6.031 236.832-3.14 6.148-10.75 8.461-16.728 5.01z" }, null, -1), f0 = [
2098
2098
  d0
2099
2099
  ];
2100
2100
  function h0(t, e) {
@@ -2113,12 +2113,12 @@ const p0 = /* @__PURE__ */ Te(u0, [["render", h0]]), m0 = { class: "relative" },
2113
2113
  return (e, n) => (T(), R("div", m0, [
2114
2114
  Oe(l0, { class: "absolute opacity-25" }),
2115
2115
  Oe(p0, {
2116
- class: ne(["animate-spin", { [`${t.color}`]: !0 }])
2116
+ class: Q(["animate-spin", { [`${t.color}`]: !0 }])
2117
2117
  }, null, 8, ["class"])
2118
2118
  ]));
2119
2119
  }
2120
2120
  });
2121
- let Ce = {
2121
+ let Me = {
2122
2122
  theme: "pmi"
2123
2123
  };
2124
2124
  const y0 = {
@@ -2152,7 +2152,7 @@ const y0 = {
2152
2152
  to: [String, Object]
2153
2153
  },
2154
2154
  setup(t) {
2155
- const e = t, n = te(() => e.to ? "router-link" : "button"), r = {
2155
+ const e = t, n = ne(() => e.to ? "router-link" : "button"), r = {
2156
2156
  pmi: "bg-violet-800 border border-violet-800 focus:bg-violet-800 text-white disabled:bg-zinc-100 disabled:text-zinc-400 disabled:border-zinc-100 enabled:hover:bg-violet-900 enabled:hover:border-violet-900 active:scale-95 enabled:transform",
2157
2157
  "wpic-tools": "text-white bg-lime-500 border-lime-500 enabled:hover:bg-lime-400 enabled:hover:border-lime-400 enabled:active:bg-lime-500 enabled:active:border-lime-500 enabled:active:shadow-inner disabled:bg-lime-600/25 disabled:text-white disabled:border-0"
2158
2158
  }, i = {
@@ -2172,16 +2172,16 @@ const y0 = {
2172
2172
  to: t.to,
2173
2173
  type: t.type,
2174
2174
  disabled: t.disabled,
2175
- class: ne([{
2175
+ class: Q([{
2176
2176
  "cursor-pointer": !t.disabled && !t.loading,
2177
2177
  "active:outline active:outline-2 active:outline-offset-4": !t.disabled && !t.loading && t.outlining,
2178
2178
  "cursor-not-allowed": t.disabled,
2179
2179
  border: t.outline && !t.plain,
2180
- [`${r[B(Ce).theme]}`]: t.primary && !t.plain && !t.inverse,
2181
- [`${i[B(Ce).theme]}`]: t.secondary,
2182
- [`${s[B(Ce).theme]}`]: !t.primary && !t.secondary && !t.plain,
2183
- [`${o[B(Ce).theme]}`]: t.primary && t.plain,
2184
- [`${a[B(Ce).theme]}`]: !t.primary && t.plain,
2180
+ [`${r[V(Me).theme]}`]: t.primary && !t.plain && !t.inverse,
2181
+ [`${i[V(Me).theme]}`]: t.secondary,
2182
+ [`${s[V(Me).theme]}`]: !t.primary && !t.secondary && !t.plain,
2183
+ [`${o[V(Me).theme]}`]: t.primary && t.plain,
2184
+ [`${a[V(Me).theme]}`]: !t.primary && t.plain,
2185
2185
  "bg-zinc-50 border-violet-800 text-violet-800": t.primary && t.inverse,
2186
2186
  "hover:bg-white": t.primary && t.inverse && !t.disabled && !t.loading,
2187
2187
  "w-full": t.full,
@@ -2197,11 +2197,11 @@ const y0 = {
2197
2197
  t.loading ? (T(), R("div", y0, [
2198
2198
  Oe(Fo, { class: "w-6 h-6" })
2199
2199
  ])) : ve("", !0),
2200
- V("span", {
2201
- class: ne(["flex items-center select-none whitespace-nowrap", { "opacity-0": t.loading }])
2200
+ B("span", {
2201
+ class: Q(["flex items-center select-none whitespace-nowrap", { "opacity-0": t.loading }])
2202
2202
  }, [
2203
2203
  Pe(l.$slots, "default", {}, () => [
2204
- wt(Me(t.label), 1)
2204
+ wt(Ce(t.label), 1)
2205
2205
  ])
2206
2206
  ], 2)
2207
2207
  ]),
@@ -2228,7 +2228,7 @@ const T0 = /* @__PURE__ */ Te(O0, [["render", C0]]), D0 = {
2228
2228
  name: "WpicForm"
2229
2229
  }, E0 = /* @__PURE__ */ Object.assign(D0, {
2230
2230
  setup(t) {
2231
- return (e, n) => (T(), Ve(B(Qg), null, {
2231
+ return (e, n) => (T(), Ve(V(Qg), null, {
2232
2232
  default: je(({ values: r, meta: i, errors: s }) => [
2233
2233
  Pe(e.$slots, "default")
2234
2234
  ]),
@@ -2546,8 +2546,8 @@ const L0 = function(t) {
2546
2546
  if (!ce)
2547
2547
  switch (h) {
2548
2548
  case "bestFit": {
2549
- var ee;
2550
- const le = (ee = A.map((Y) => [Y.placement, Y.overflows.filter((ue) => ue > 0).reduce((ue, ye) => ue + ye, 0)]).sort((Y, ue) => Y[1] - ue[1])[0]) == null ? void 0 : ee[0];
2549
+ var te;
2550
+ const le = (te = A.map((Y) => [Y.placement, Y.overflows.filter((ue) => ue > 0).reduce((ue, ye) => ue + ye, 0)]).sort((Y, ue) => Y[1] - ue[1])[0]) == null ? void 0 : te[0];
2551
2551
  le && (ce = le);
2552
2552
  break;
2553
2553
  }
@@ -3062,7 +3062,7 @@ const dy = {}, fy = {
3062
3062
  viewBox: "0 0 24 24",
3063
3063
  "stroke-width": "2",
3064
3064
  stroke: "currentColor"
3065
- }, hy = /* @__PURE__ */ V("path", {
3065
+ }, hy = /* @__PURE__ */ B("path", {
3066
3066
  "stroke-linecap": "round",
3067
3067
  "stroke-linejoin": "round",
3068
3068
  d: "M6 18L18 6M6 6l12 12"
@@ -3165,7 +3165,7 @@ const wy = { class: "bg-white rounded-t-lg w-full" }, ky = { class: "flex justif
3165
3165
  return e({ hide: c }), (p, g) => (T(), R(xt, null, [
3166
3166
  (T(), R("div", {
3167
3167
  class: "w-full",
3168
- key: `reference_${B(n)}`,
3168
+ key: `reference_${V(n)}`,
3169
3169
  ref_key: "reference",
3170
3170
  ref: o,
3171
3171
  onMouseenter: f,
@@ -3176,20 +3176,20 @@ const wy = { class: "bg-white rounded-t-lg w-full" }, ky = { class: "flex justif
3176
3176
  ], 32)),
3177
3177
  (T(), Ve(af, { to: "body" }, [
3178
3178
  (T(), R("div", {
3179
- key: `floating_${B(n)}`,
3179
+ key: `floating_${V(n)}`,
3180
3180
  ref_key: "floating",
3181
3181
  ref: a,
3182
- class: ne(["z-10 bg-white rounded-md overflow-hidden", { [`${t.customWidth}`]: !0, hidden: l.value, [`${i[B(Ce).theme]}`]: !l.value, "bg-white px-3 py-2 rounded-md": !t.custom }])
3182
+ class: Q(["z-10 bg-white rounded-md overflow-hidden", { [`${t.customWidth}`]: !0, hidden: l.value, [`${i[V(Me).theme]}`]: !l.value, "bg-white px-3 py-2 rounded-md": !t.custom }])
3183
3183
  }, [
3184
3184
  Pe(p.$slots, "content")
3185
3185
  ], 2)),
3186
- V("div", {
3186
+ B("div", {
3187
3187
  onClick: g[1] || (g[1] = (m) => c()),
3188
- class: ne(["fixed z-20 flex items-end w-screen h-screen top-0 bg-black/20", { hidden: l.value, [`${s[B(Ce).theme]}`]: !0 }])
3188
+ class: Q(["fixed z-20 flex items-end w-screen h-screen top-0 bg-black/20", { hidden: l.value, [`${s[V(Me).theme]}`]: !0 }])
3189
3189
  }, [
3190
- V("div", wy, [
3191
- V("div", ky, [
3192
- V("span", null, Me(t.label), 1),
3190
+ B("div", wy, [
3191
+ B("div", ky, [
3192
+ B("span", null, Ce(t.label), 1),
3193
3193
  Oe(Yo, {
3194
3194
  onClick: c,
3195
3195
  class: "w-4 h-4"
@@ -3205,7 +3205,7 @@ const wy = { class: "bg-white rounded-t-lg w-full" }, ky = { class: "flex justif
3205
3205
  xmlns: "http://www.w3.org/2000/svg",
3206
3206
  viewBox: "0 0 24 24",
3207
3207
  fill: "currentColor"
3208
- }, My = /* @__PURE__ */ V("path", { d: "M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z" }, null, -1), Cy = /* @__PURE__ */ V("path", {
3208
+ }, My = /* @__PURE__ */ B("path", { d: "M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z" }, null, -1), Cy = /* @__PURE__ */ B("path", {
3209
3209
  "fill-rule": "evenodd",
3210
3210
  d: "M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 0 1 0-1.113ZM17.25 12a5.25 5.25 0 1 1-10.5 0 5.25 5.25 0 0 1 10.5 0Z",
3211
3211
  "clip-rule": "evenodd"
@@ -3220,7 +3220,7 @@ const Ey = /* @__PURE__ */ Te(Sy, [["render", Dy]]), _y = {}, Ay = {
3220
3220
  xmlns: "http://www.w3.org/2000/svg",
3221
3221
  viewBox: "0 0 24 24",
3222
3222
  fill: "currentColor"
3223
- }, Ny = /* @__PURE__ */ V("path", { d: "M3.53 2.47a.75.75 0 0 0-1.06 1.06l18 18a.75.75 0 1 0 1.06-1.06l-18-18ZM22.676 12.553a11.249 11.249 0 0 1-2.631 4.31l-3.099-3.099a5.25 5.25 0 0 0-6.71-6.71L7.759 4.577a11.217 11.217 0 0 1 4.242-.827c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113Z" }, null, -1), Py = /* @__PURE__ */ V("path", { d: "M15.75 12c0 .18-.013.357-.037.53l-4.244-4.243A3.75 3.75 0 0 1 15.75 12ZM12.53 15.713l-4.243-4.244a3.75 3.75 0 0 0 4.244 4.243Z" }, null, -1), Iy = /* @__PURE__ */ V("path", { d: "M6.75 12c0-.619.107-1.213.304-1.764l-3.1-3.1a11.25 11.25 0 0 0-2.63 4.31c-.12.362-.12.752 0 1.114 1.489 4.467 5.704 7.69 10.675 7.69 1.5 0 2.933-.294 4.242-.827l-2.477-2.477A5.25 5.25 0 0 1 6.75 12Z" }, null, -1), Ry = [
3223
+ }, Ny = /* @__PURE__ */ B("path", { d: "M3.53 2.47a.75.75 0 0 0-1.06 1.06l18 18a.75.75 0 1 0 1.06-1.06l-18-18ZM22.676 12.553a11.249 11.249 0 0 1-2.631 4.31l-3.099-3.099a5.25 5.25 0 0 0-6.71-6.71L7.759 4.577a11.217 11.217 0 0 1 4.242-.827c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113Z" }, null, -1), Py = /* @__PURE__ */ B("path", { d: "M15.75 12c0 .18-.013.357-.037.53l-4.244-4.243A3.75 3.75 0 0 1 15.75 12ZM12.53 15.713l-4.243-4.244a3.75 3.75 0 0 0 4.244 4.243Z" }, null, -1), Iy = /* @__PURE__ */ B("path", { d: "M6.75 12c0-.619.107-1.213.304-1.764l-3.1-3.1a11.25 11.25 0 0 0-2.63 4.31c-.12.362-.12.752 0 1.114 1.489 4.467 5.704 7.69 10.675 7.69 1.5 0 2.933-.294 4.242-.827l-2.477-2.477A5.25 5.25 0 0 1 6.75 12Z" }, null, -1), Ry = [
3224
3224
  Ny,
3225
3225
  Py,
3226
3226
  Iy
@@ -3234,7 +3234,7 @@ const Vy = /* @__PURE__ */ Te(_y, [["render", $y]]), By = {}, Ly = {
3234
3234
  viewBox: "0 0 24 24",
3235
3235
  "stroke-width": "2",
3236
3236
  stroke: "currentColor"
3237
- }, Fy = /* @__PURE__ */ V("path", {
3237
+ }, Fy = /* @__PURE__ */ B("path", {
3238
3238
  "stroke-linecap": "round",
3239
3239
  "stroke-linejoin": "round",
3240
3240
  d: "M4.5 12.75l6 6 9-13.5"
@@ -3248,7 +3248,7 @@ const Lf = /* @__PURE__ */ Te(By, [["render", jy]]), Wy = {}, Hy = {
3248
3248
  xmlns: "http://www.w3.org/2000/svg",
3249
3249
  viewBox: "0 0 24 24",
3250
3250
  fill: "currentColor"
3251
- }, Yy = /* @__PURE__ */ V("path", {
3251
+ }, Yy = /* @__PURE__ */ B("path", {
3252
3252
  "fill-rule": "evenodd",
3253
3253
  d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 0 1 .67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 1 1-.671-1.34l.041-.022ZM12 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",
3254
3254
  "clip-rule": "evenodd"
@@ -3490,16 +3490,16 @@ const Kv = /* @__PURE__ */ Ky(qv), Jv = {
3490
3490
  const r = {
3491
3491
  pmi: "shadow-inner border-zinc-400 focus-within:border-zinc-500 focus-within:outline focus-within:outline-2 focus-within:outline-offset-3 bg-zinc-100 dark:bg-zinc-700/25 dark:border-zinc-700/50 dark:text-zinc-300",
3492
3492
  "wpic-tools": "border-slate-300 bg-white focus-within:border-blue-400 outline-blue-200 focus-within:outline focus-within:outline-[3px]"
3493
- }, i = t, s = te(() => i.name ? i.name : Bf()), o = n0(s.value), a = te(() => {
3493
+ }, i = t, s = ne(() => i.name ? i.name : Bf()), o = n0(s.value), a = ne(() => {
3494
3494
  if (i.label)
3495
3495
  return i.label;
3496
3496
  if (i.name && i.labelName)
3497
3497
  return `${i.name}#${i.labelName}`;
3498
- }), l = Ne(!0), u = te(() => (i.type == "password" || i.password) && l.value ? "password" : i.type);
3498
+ }), l = Ne(!0), u = ne(() => (i.type == "password" || i.password) && l.value ? "password" : i.type);
3499
3499
  function c() {
3500
3500
  l.value = !l.value;
3501
3501
  }
3502
- const d = te(() => {
3502
+ const d = ne(() => {
3503
3503
  if (i.rules && typeof i.rules == "string") {
3504
3504
  let v = i.rules.split("|");
3505
3505
  return i.required && v.push("required"), i.email && v.push("email"), v.join("|");
@@ -3549,19 +3549,19 @@ const Kv = /* @__PURE__ */ Ky(qv), Jv = {
3549
3549
  }), (v, C) => {
3550
3550
  const A = lf("wpic-choice-list");
3551
3551
  return T(), R("div", {
3552
- class: ne(["wpic-form-field", {
3552
+ class: Q(["wpic-form-field", {
3553
3553
  "mb-6": !t.slim
3554
3554
  }])
3555
3555
  }, [
3556
3556
  a.value && !t.checkbox && !t.radio ? (T(), R("div", Jv, [
3557
- wt(Me(a.value) + " ", 1),
3558
- V("div", Gv, [
3557
+ wt(Ce(a.value) + " ", 1),
3558
+ B("div", Gv, [
3559
3559
  t.info ? (T(), Ve(As, {
3560
3560
  key: 0,
3561
3561
  hover: ""
3562
3562
  }, {
3563
3563
  content: je(() => [
3564
- wt(Me(t.info), 1)
3564
+ wt(Ce(t.info), 1)
3565
3565
  ]),
3566
3566
  default: je(() => [
3567
3567
  Oe(Ff, { class: "w-4 h-4 text-zinc-600" })
@@ -3570,7 +3570,7 @@ const Kv = /* @__PURE__ */ Ky(qv), Jv = {
3570
3570
  })) : ve("", !0)
3571
3571
  ])
3572
3572
  ])) : ve("", !0),
3573
- t.checkbox ? (T(), Ve(B(Ws), {
3573
+ t.checkbox ? (T(), Ve(V(Ws), {
3574
3574
  key: 1,
3575
3575
  ref_key: "myInput",
3576
3576
  ref: k,
@@ -3581,12 +3581,12 @@ const Kv = /* @__PURE__ */ Ky(qv), Jv = {
3581
3581
  modelValue: t.modelValue
3582
3582
  }, {
3583
3583
  default: je(({ field: N }) => [
3584
- V("div", {
3584
+ B("div", {
3585
3585
  class: "inline-flex items-center gap-2",
3586
3586
  onClick: C[0] || (C[0] = (W) => t.disabled ? void 0 : p(t.modelValue))
3587
3587
  }, [
3588
- V("div", {
3589
- class: ne(["w-4 h-4 border rounded-sm cursor-pointer", {
3588
+ B("div", {
3589
+ class: Q(["w-4 h-4 border rounded-sm cursor-pointer", {
3590
3590
  "border-zinc-400": !t.disabled && !t.modelValue,
3591
3591
  // 'border-zinc-300': disabled && !modelValue,
3592
3592
  "bg-violet-800 border-violet-800 text-white": t.modelValue === !0,
@@ -3595,17 +3595,17 @@ const Kv = /* @__PURE__ */ Ky(qv), Jv = {
3595
3595
  }, [
3596
3596
  t.modelValue === !0 ? (T(), Ve(Lf, { key: 0 })) : ve("", !0)
3597
3597
  ], 2),
3598
- V("span", {
3599
- class: ne(["text-base cursor-pointer select-none", { "opacity-50": t.disabled }])
3598
+ B("span", {
3599
+ class: Q(["text-base cursor-pointer select-none", { "opacity-50": t.disabled }])
3600
3600
  }, [
3601
3601
  Pe(v.$slots, "default", {}, () => [
3602
- wt(Me(a.value), 1)
3602
+ wt(Ce(a.value), 1)
3603
3603
  ])
3604
3604
  ], 2)
3605
3605
  ])
3606
3606
  ]),
3607
3607
  _: 3
3608
- }, 8, ["name", "rules", "value", "unchecked-value", "modelValue"])) : t.radio ? (T(), Ve(B(Ws), {
3608
+ }, 8, ["name", "rules", "value", "unchecked-value", "modelValue"])) : t.radio ? (T(), Ve(V(Ws), {
3609
3609
  key: 2,
3610
3610
  ref_key: "myInput",
3611
3611
  ref: k,
@@ -3614,21 +3614,21 @@ const Kv = /* @__PURE__ */ Ky(qv), Jv = {
3614
3614
  modelValue: t.modelValue
3615
3615
  }, {
3616
3616
  default: je(({ field: N }) => [
3617
- V("div", {
3617
+ B("div", {
3618
3618
  onClick: C[2] || (C[2] = () => {
3619
3619
  t.disabled || g(t.radioValue);
3620
3620
  }),
3621
- class: ne([{ "cursor-pointer": !t.disabled }, "inline-flex items-center gap-2 select-none"])
3621
+ class: Q([{ "cursor-pointer": !t.disabled }, "inline-flex items-center gap-2 select-none"])
3622
3622
  }, [
3623
- V("span", {
3624
- class: ne(["h-4 w-4 border border-zinc-400 rounded-full p-[2px]", { "border-opacity-50": t.disabled }])
3623
+ B("span", {
3624
+ class: Q(["h-4 w-4 border border-zinc-400 rounded-full p-[2px]", { "border-opacity-50": t.disabled }])
3625
3625
  }, [
3626
3626
  t.radioValue == t.modelValue ? (T(), R("span", {
3627
3627
  key: 0,
3628
- class: ne(["flex rounded-full h-full w-full bg-violet-800", { "bg-opacity-50": t.disabled }])
3628
+ class: Q(["flex rounded-full h-full w-full bg-violet-800", { "bg-opacity-50": t.disabled }])
3629
3629
  }, null, 2)) : ve("", !0)
3630
3630
  ], 2),
3631
- V("input", {
3631
+ B("input", {
3632
3632
  class: "hidden",
3633
3633
  type: "radio",
3634
3634
  name: t.name,
@@ -3638,12 +3638,12 @@ const Kv = /* @__PURE__ */ Ky(qv), Jv = {
3638
3638
  }, null, 40, Zv),
3639
3639
  a.value ? (T(), R("span", {
3640
3640
  key: 0,
3641
- class: ne(["text-base", { "opacity-50": t.disabled }])
3642
- }, Me(a.value), 3)) : ve("", !0)
3641
+ class: Q(["text-base", { "opacity-50": t.disabled }])
3642
+ }, Ce(a.value), 3)) : ve("", !0)
3643
3643
  ], 2)
3644
3644
  ]),
3645
3645
  _: 1
3646
- }, 8, ["name", "value", "modelValue"])) : t.select ? (T(), Ve(B(Ws), {
3646
+ }, 8, ["name", "value", "modelValue"])) : t.select ? (T(), Ve(V(Ws), {
3647
3647
  key: 3,
3648
3648
  ref_key: "myInput",
3649
3649
  ref: k,
@@ -3661,7 +3661,7 @@ const Kv = /* @__PURE__ */ Ky(qv), Jv = {
3661
3661
  options: t.options,
3662
3662
  hideSelect: t.hideSelect,
3663
3663
  multiple: t.multiple,
3664
- isInvalid: !!(t.error && B(o)),
3664
+ isInvalid: !!(t.error && V(o)),
3665
3665
  required: t.required || ((W = d.value) == null ? void 0 : W.indexOf("required")) >= 0,
3666
3666
  label: a.value,
3667
3667
  placeholder: "Select..."
@@ -3671,26 +3671,26 @@ const Kv = /* @__PURE__ */ Ky(qv), Jv = {
3671
3671
  _: 1
3672
3672
  }, 8, ["modelValue", "rules", "name"])) : (T(), R("div", {
3673
3673
  key: 4,
3674
- class: ne(["wpic-input rounded flex relative border", {
3675
- [`${r[B(Ce).theme]}`]: !0,
3674
+ class: Q(["wpic-input rounded flex relative border", {
3675
+ [`${r[V(Me).theme]}`]: !0,
3676
3676
  "h-10": !t.textarea && !t.large,
3677
3677
  "h-12": !t.textarea && t.large,
3678
3678
  "border-opacity-50 border-zinc-300 text-zinc-400": t.disabled,
3679
- "!border-red-600 focus-within:outline-red-600": B(o)
3679
+ "!border-red-600 focus-within:outline-red-600": V(o)
3680
3680
  }])
3681
3681
  }, [
3682
3682
  v.$slots.prepend ? (T(), R("div", Xv, [
3683
- V("div", Qv, [
3683
+ B("div", Qv, [
3684
3684
  Pe(v.$slots, "prepend")
3685
3685
  ])
3686
3686
  ])) : ve("", !0),
3687
- Oe(B(Ws), {
3687
+ Oe(V(Ws), {
3688
3688
  ref_key: "myInput",
3689
3689
  ref: k,
3690
3690
  as: t.textarea ? "textarea" : void 0,
3691
3691
  autocomplete: "off",
3692
3692
  style: { "z-index": "1" },
3693
- class: ne(["flex w-full h-full rounded pr-4 bg-transparent outline-none appearance-none", { "pl-4": !v.$slots.prepend, "pl-12": v.$slots.prepend, "py-2": t.textarea, "cursor-not-allowed": t.disabled }]),
3693
+ class: Q(["flex w-full h-full rounded pr-4 bg-transparent outline-none appearance-none", { "pl-4": !v.$slots.prepend, "pl-12": v.$slots.prepend, "py-2": t.textarea, "cursor-not-allowed": t.disabled }]),
3694
3694
  type: u.value,
3695
3695
  min: t.min,
3696
3696
  max: t.max,
@@ -3700,7 +3700,7 @@ const Kv = /* @__PURE__ */ Ky(qv), Jv = {
3700
3700
  modelValue: t.modelValue,
3701
3701
  onInput: f,
3702
3702
  placeholder: t.placeholder,
3703
- validateOnInput: !!B(o),
3703
+ validateOnInput: !!V(o),
3704
3704
  rules: d.value
3705
3705
  }, null, 8, ["as", "class", "type", "min", "max", "rows", "name", "disabled", "modelValue", "placeholder", "validateOnInput", "rules"]),
3706
3706
  t.loading ? (T(), R("div", {
@@ -3718,7 +3718,7 @@ const Kv = /* @__PURE__ */ Ky(qv), Jv = {
3718
3718
  Oe(Yo, { class: "w-5 h-5 opacity-50" })
3719
3719
  ])) : ve("", !0),
3720
3720
  v.$slots.append || t.password || t.type == "password" ? (T(), R("div", eb, [
3721
- V("div", tb, [
3721
+ B("div", tb, [
3722
3722
  Pe(v.$slots, "append", {}, () => [
3723
3723
  Ju(Oe(Ey, {
3724
3724
  class: "text-zinc-600 select-none",
@@ -3736,20 +3736,20 @@ const Kv = /* @__PURE__ */ Ky(qv), Jv = {
3736
3736
  ])
3737
3737
  ])) : ve("", !0)
3738
3738
  ], 2)),
3739
- t.error && B(o) ? (T(), R("div", nb, [
3740
- Oe(B(t0), { name: s.value }, {
3739
+ t.error && V(o) ? (T(), R("div", nb, [
3740
+ Oe(V(t0), { name: s.value }, {
3741
3741
  default: je((N) => [
3742
- wt(Me(N.message), 1)
3742
+ wt(Ce(N.message), 1)
3743
3743
  ]),
3744
3744
  _: 1
3745
3745
  }, 8, ["name"])
3746
3746
  ])) : ve("", !0),
3747
3747
  v.$slots.help || t.help ? (T(), R("div", {
3748
3748
  key: 6,
3749
- class: ne(["text-base mt-1", { "ml-7": t.type == "checkbox", "opacity-50": t.disabled }])
3749
+ class: Q(["text-base mt-1", { "ml-7": t.type == "checkbox", "opacity-50": t.disabled }])
3750
3750
  }, [
3751
3751
  Pe(v.$slots, "help", {}, () => [
3752
- wt(Me(t.help), 1)
3752
+ wt(Ce(t.help), 1)
3753
3753
  ])
3754
3754
  ], 2)) : ve("", !0)
3755
3755
  ], 2);
@@ -3788,14 +3788,14 @@ const Kv = /* @__PURE__ */ Ky(qv), Jv = {
3788
3788
  const l = lf("wpic-spinner");
3789
3789
  return T(), R(xt, null, [
3790
3790
  t.label ? (T(), R("div", sb, [
3791
- wt(Me(t.label) + " ", 1),
3792
- V("div", ob, [
3791
+ wt(Ce(t.label) + " ", 1),
3792
+ B("div", ob, [
3793
3793
  t.info ? (T(), Ve(As, {
3794
3794
  key: 0,
3795
3795
  hover: ""
3796
3796
  }, {
3797
3797
  content: je(() => [
3798
- wt(Me(t.info), 1)
3798
+ wt(Ce(t.info), 1)
3799
3799
  ]),
3800
3800
  default: je(() => [
3801
3801
  Oe(Ff, { class: "w-4 h-4 text-zinc-600" })
@@ -3804,19 +3804,19 @@ const Kv = /* @__PURE__ */ Ky(qv), Jv = {
3804
3804
  })) : ve("", !0)
3805
3805
  ])
3806
3806
  ])) : ve("", !0),
3807
- V("div", {
3808
- class: ne(["wpic-input rounded flex relative border pr-4 items-center", {
3807
+ B("div", {
3808
+ class: Q(["wpic-input rounded flex relative border pr-4 items-center", {
3809
3809
  "pl-4": !o.$slots.prepend,
3810
3810
  "pl-10": o.$slots.prepend,
3811
- [`${n[B(Ce).theme]}`]: !0,
3811
+ [`${n[V(Me).theme]}`]: !0,
3812
3812
  "h-10": !t.large,
3813
3813
  "h-12": t.large,
3814
- [`${r[B(Ce).theme]}`]: t.disabled,
3814
+ [`${r[V(Me).theme]}`]: t.disabled,
3815
3815
  "cursor-pointer": !t.disabled
3816
3816
  }])
3817
3817
  }, [
3818
3818
  o.$slots.prepend ? (T(), R("div", ab, [
3819
- V("div", lb, [
3819
+ B("div", lb, [
3820
3820
  Pe(o.$slots, "prepend")
3821
3821
  ])
3822
3822
  ])) : ve("", !0),
@@ -3845,7 +3845,7 @@ const Kv = /* @__PURE__ */ Ky(qv), Jv = {
3845
3845
  viewBox: "0 0 24 24",
3846
3846
  "stroke-width": "2",
3847
3847
  stroke: "currentColor"
3848
- }, fb = /* @__PURE__ */ V("path", {
3848
+ }, fb = /* @__PURE__ */ B("path", {
3849
3849
  "stroke-linecap": "round",
3850
3850
  "stroke-linejoin": "round",
3851
3851
  d: "m19.5 8.25-7.5 7.5-7.5-7.5"
@@ -3893,7 +3893,7 @@ const mb = /* @__PURE__ */ Te(cb, [["render", pb]]), gb = ["disabled"], yb = {
3893
3893
  } else
3894
3894
  r("update:modelValue", d), i.value.hide();
3895
3895
  }
3896
- const o = te(() => {
3896
+ const o = ne(() => {
3897
3897
  var d, f, h, p;
3898
3898
  if (n.multiple)
3899
3899
  if (n.maxDisplay) {
@@ -3909,7 +3909,7 @@ const mb = /* @__PURE__ */ Te(cb, [["render", pb]]), gb = ["disabled"], yb = {
3909
3909
  }).map((g) => g.label).join(", ");
3910
3910
  else
3911
3911
  return ((p = (h = n.options) == null ? void 0 : h.find((g) => g.value === n.modelValue)) == null ? void 0 : p.label) || n.modelValue;
3912
- }), a = te(() => {
3912
+ }), a = ne(() => {
3913
3913
  if (n.required)
3914
3914
  return n.options;
3915
3915
  {
@@ -3923,10 +3923,10 @@ const mb = /* @__PURE__ */ Te(cb, [["render", pb]]), gb = ["disabled"], yb = {
3923
3923
  }
3924
3924
  const u = {
3925
3925
  pmi: "text-zinc-800 dark:text-zinc-300 disabled:bg-zinc-50 disabled:border-zinc-300 disabled:text-zinc-400 enabled:bg-zinc-100 enabled:border-zinc-400 enabled:text-zinc-500 enabled:dark:bg-zinc-700/25 enabled:dark:border-zinc-700/50 enabled:dark:text-zinc-300",
3926
- "wpic-tools": "disabled:text-slate-400 disabled:border-slate-200 bg-white border-slate-300 focus-within:border-lime-400 disabled:bg-slate-50"
3926
+ "wpic-tools": "text-slate-800 disabled:text-slate-400 disabled:border-slate-200 bg-white border-slate-300 focus-within:border-lime-400 disabled:bg-slate-50"
3927
3927
  }, c = {
3928
3928
  pmi: "group-[.is-selected]:bg-violet-50 group-[.is-selected]:hover:bg-violet-100",
3929
- "wpic-tools": "hover:bg-slate-50 group-[.is-selected]:text-lime-500 group-[.is-selected]:font-semibold"
3929
+ "wpic-tools": "hover:bg-slate-50 group-[.is-selected]:text-lime-500 group-[.is-selected]:font-medium text-slate-600"
3930
3930
  };
3931
3931
  return (d, f) => (T(), Ve(As, {
3932
3932
  custom: "",
@@ -3938,25 +3938,25 @@ const mb = /* @__PURE__ */ Te(cb, [["render", pb]]), gb = ["disabled"], yb = {
3938
3938
  default: je(({ isHidden: h }) => {
3939
3939
  var p;
3940
3940
  return [
3941
- V("button", {
3942
- class: ne(["flex appearance-none w-full items-center gap-2 px-3 lg:text-base rounded border overflow-hidden leading-none", {
3941
+ B("button", {
3942
+ class: Q(["flex appearance-none w-full items-center gap-2 px-3 lg:text-base rounded border overflow-hidden leading-none", {
3943
3943
  "h-10": !t.small,
3944
3944
  "h-8": t.small,
3945
3945
  "cursor-pointer": !t.disabled,
3946
3946
  "!border-red-600 focus-within:outline-red-600": t.isInvalid,
3947
- [`${u[B(Ce).theme]}`]: !0
3947
+ [`${u[V(Me).theme]}`]: !0
3948
3948
  }]),
3949
3949
  disabled: t.disabled
3950
3950
  }, [
3951
- V("span", {
3952
- class: ne(["select-none w-full text-left flex-1", { "whitespace-pre": !t.multiple }])
3951
+ B("span", {
3952
+ class: Q(["select-none w-full text-left flex-1", { "whitespace-pre": !t.multiple }])
3953
3953
  }, [
3954
- t.modelValue && ((p = t.modelValue) == null ? void 0 : p.length) > 0 && !t.hideSelect ? (T(), R("span", yb, Me(o.value), 1)) : Pe(d.$slots, "default", { key: 1 }, () => [
3955
- wt(Me(t.placeholder), 1)
3954
+ t.modelValue && ((p = t.modelValue) == null ? void 0 : p.length) > 0 && !t.hideSelect ? (T(), R("span", yb, Ce(o.value), 1)) : Pe(d.$slots, "default", { key: 1 }, () => [
3955
+ wt(Ce(t.placeholder), 1)
3956
3956
  ])
3957
3957
  ], 2),
3958
3958
  Oe(mb, {
3959
- class: ne(["h-4 w-4 transition-all transform", { "rotate-180": !h }])
3959
+ class: Q(["h-4 w-4 transition-all transform", { "rotate-180": !h }])
3960
3960
  }, null, 8, ["class"])
3961
3961
  ], 10, gb)
3962
3962
  ];
@@ -3966,17 +3966,19 @@ const mb = /* @__PURE__ */ Te(cb, [["render", pb]]), gb = ["disabled"], yb = {
3966
3966
  return [
3967
3967
  !t.options && ((h = t.options) == null ? void 0 : h.length) == 0 ? (T(), R("span", vb, "No data.")) : (T(), R("div", bb, [
3968
3968
  (T(!0), R(xt, null, jt(a.value, (p) => (T(), R("div", {
3969
- class: ne(["group", { "is-selected": !!l(p.value) }])
3969
+ class: Q(["group", { "is-selected": !!l(p.value) }])
3970
3970
  }, [
3971
- V("div", {
3972
- class: ne(["flex items-center py-2 px-4 min-w-64 text-base", {
3971
+ B("div", {
3972
+ class: Q(["flex items-center py-2 px-4 min-w-64 text-base", {
3973
3973
  "cursor-pointer": !t.multiple || p.value,
3974
- [`${c[B(Ce).theme]}`]: !0
3974
+ [`${c[V(Me).theme]}`]: !0
3975
3975
  }]),
3976
- onClick: (g) => s(p.value)
3976
+ onClick: (g) => p.disabled ? null : s(p.value)
3977
3977
  }, [
3978
- V("div", kb, [
3979
- V("span", null, Me(p.label || p.value), 1),
3978
+ B("div", kb, [
3979
+ B("span", {
3980
+ class: Q(["", { "opacity-25": p.disabled }])
3981
+ }, Ce(p.label || p.value), 3),
3980
3982
  l(p.value) ? (T(), Ve(Lf, {
3981
3983
  key: 0,
3982
3984
  class: "w-4 h-4"
@@ -4011,11 +4013,11 @@ const mb = /* @__PURE__ */ Te(cb, [["render", pb]]), gb = ["disabled"], yb = {
4011
4013
  "wpic-tools": "border border-slate-300"
4012
4014
  };
4013
4015
  return (n, r) => (T(), R("div", {
4014
- class: ne(["bg-white dark:bg-zinc-800/50 rounded-lg wpic-card", [e[B(Ce).theme]]])
4016
+ class: Q(["bg-white dark:bg-zinc-800/50 rounded-lg wpic-card", [e[V(Me).theme]]])
4015
4017
  }, [
4016
4018
  t.title || n.$slots.actions ? (T(), R("div", Ob, [
4017
- t.title ? (T(), R("div", Mb, Me(t.title), 1)) : ve("", !0),
4018
- V("div", Cb, [
4019
+ t.title ? (T(), R("div", Mb, Ce(t.title), 1)) : ve("", !0),
4020
+ B("div", Cb, [
4019
4021
  Pe(n.$slots, "actions")
4020
4022
  ])
4021
4023
  ])) : ve("", !0),
@@ -4056,19 +4058,22 @@ const Pb = /* @__PURE__ */ Te(_b, [["render", Nb]]), Ib = { class: "flex h-2 rou
4056
4058
  },
4057
4059
  emits: ["clear"],
4058
4060
  setup(t, { emit: e }) {
4059
- const n = e;
4060
- function r() {
4061
- n("clear");
4061
+ const n = {
4062
+ pmi: "border-cyan-500 bg-cyan-50 text-cyan-600",
4063
+ "wpic-tools": "border-slate-300 bg-slate-200 text-slate-800"
4064
+ }, r = e;
4065
+ function i() {
4066
+ r("clear");
4062
4067
  }
4063
- return (i, s) => (T(), R("div", {
4064
- class: ne(["wpic-tag select-none border border-cyan-500 bg-cyan-50 inline-flex rounded text-cyan-600 h-8 items-center justify-center pl-3 py-1", { "pr-3": !t.clearable, "pr-2": t.clearable }])
4068
+ return (s, o) => (T(), R("div", {
4069
+ class: Q(["wpic-tag select-none border inline-flex rounded h-8 items-center justify-center pl-3 py-1", { "pr-3": !t.clearable, "pr-2": t.clearable, [n[V(Me).theme]]: !0 }])
4065
4070
  }, [
4066
- V("span", Vb, [
4067
- Pe(i.$slots, "default")
4071
+ B("span", Vb, [
4072
+ Pe(s.$slots, "default")
4068
4073
  ]),
4069
4074
  t.clearable ? (T(), R("span", {
4070
4075
  key: 0,
4071
- onClick: r,
4076
+ onClick: i,
4072
4077
  class: "ml-1 cursor-pointer opacity-75 hover:opacity-100"
4073
4078
  }, [
4074
4079
  Oe(Yo, { class: "w-4 h-4" })
@@ -4083,10 +4088,10 @@ const Pb = /* @__PURE__ */ Te(_b, [["render", Nb]]), Ib = { class: "flex h-2 rou
4083
4088
  },
4084
4089
  setup(t) {
4085
4090
  return (e, n) => (T(), R("div", {
4086
- class: ne({ "w-full": t.full })
4091
+ class: Q({ "w-full": t.full })
4087
4092
  }, [
4088
- V("div", {
4089
- class: ne(["ui-tag-group flex flex-wrap gap-2", { "w-full": t.full }])
4093
+ B("div", {
4094
+ class: Q(["ui-tag-group flex flex-wrap gap-2", { "w-full": t.full }])
4090
4095
  }, [
4091
4096
  Pe(e.$slots, "default")
4092
4097
  ], 2)
@@ -4124,12 +4129,12 @@ const Pb = /* @__PURE__ */ Te(_b, [["render", Nb]]), Ib = { class: "flex h-2 rou
4124
4129
  "wpic-tools": "bg-lime-500 border-lime-500 text-white"
4125
4130
  };
4126
4131
  return (r, i) => (T(), R("div", {
4127
- class: ne(["border rounded flex items-center justify-center w-10 h-10 cursor-pointer", {
4128
- [e[B(Ce).theme]]: !t.active,
4129
- [n[B(Ce).theme]]: t.active
4132
+ class: Q(["border rounded flex items-center justify-center w-10 h-10 cursor-pointer", {
4133
+ [e[V(Me).theme]]: !t.active,
4134
+ [n[V(Me).theme]]: t.active
4130
4135
  }])
4131
4136
  }, [
4132
- V("span", Yb, [
4137
+ B("span", Yb, [
4133
4138
  Pe(r.$slots, "default")
4134
4139
  ])
4135
4140
  ], 2));
@@ -4162,7 +4167,7 @@ const Pb = /* @__PURE__ */ Te(_b, [["render", Nb]]), Ib = { class: "flex h-2 rou
4162
4167
  },
4163
4168
  emits: ["update:perPage", "update:currentPage"],
4164
4169
  setup(t, { expose: e, emit: n }) {
4165
- const r = t, i = n, s = te(() => r.total && r.perPage ? Math.ceil(r.total / r.perPage) : 1);
4170
+ const r = t, i = n, s = ne(() => r.total && r.perPage ? Math.ceil(r.total / r.perPage) : 1);
4166
4171
  function o(u) {
4167
4172
  i("update:currentPage", u);
4168
4173
  }
@@ -4176,14 +4181,14 @@ const Pb = /* @__PURE__ */ Te(_b, [["render", Nb]]), Ib = { class: "flex h-2 rou
4176
4181
  getStart: a,
4177
4182
  getEnd: l
4178
4183
  }), (u, c) => (T(), R("div", Kb, [
4179
- t.info ? (T(), R("div", Jb, Me(a()) + " - " + Me(l()) + " / " + Me(t.total), 1)) : ve("", !0),
4184
+ t.info ? (T(), R("div", Jb, Ce(a()) + " - " + Ce(l()) + " / " + Ce(t.total), 1)) : ve("", !0),
4180
4185
  s.value ? (T(), R("div", Gb, [
4181
4186
  (T(!0), R(xt, null, jt(s.value, (d) => (T(), Ve(qb, {
4182
4187
  onClick: (f) => o(d),
4183
4188
  active: d === t.currentPage
4184
4189
  }, {
4185
4190
  default: je(() => [
4186
- wt(Me(d), 1)
4191
+ wt(Ce(d), 1)
4187
4192
  ]),
4188
4193
  _: 2
4189
4194
  }, 1032, ["onClick", "active"]))), 256))
@@ -4202,7 +4207,7 @@ const qf = Uf, Qb = {}, e1 = {
4202
4207
  xmlns: "http://www.w3.org/2000/svg",
4203
4208
  viewBox: "0 0 16 16",
4204
4209
  fill: "currentColor"
4205
- }, t1 = /* @__PURE__ */ V("path", {
4210
+ }, t1 = /* @__PURE__ */ B("path", {
4206
4211
  "fill-rule": "evenodd",
4207
4212
  d: "M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z",
4208
4213
  "clip-rule": "evenodd"
@@ -4227,8 +4232,8 @@ const i1 = /* @__PURE__ */ Te(Qb, [["render", r1]]), s1 = { class: "font-semibol
4227
4232
  };
4228
4233
  return (n, r) => (T(), R("tr", s1, [
4229
4234
  (T(!0), R(xt, null, jt(t.columns, (i, s) => (T(), Ve(qf, {
4230
- class: ne(["py-3 first:pl-6 pr-6 border-t", {
4231
- [`${e[B(Ce).theme]}`]: !0,
4235
+ class: Q(["py-3 first:pl-6 pr-6 border-t", {
4236
+ [`${e[V(Me).theme]}`]: !0,
4232
4237
  "sticky left-0": s === 0,
4233
4238
  "border-b": t.position === "header",
4234
4239
  "border-t": t.position === "footer",
@@ -4310,7 +4315,7 @@ const i1 = /* @__PURE__ */ Te(Qb, [["render", r1]]), s1 = { class: "font-semibol
4310
4315
  ((y = M.type) == null ? void 0 : y.name) === "WpicTableColumn" && p.push(M);
4311
4316
  });
4312
4317
  }), c.value = p.map((m) => {
4313
- let b = m.children, k = m.props || {}, { field: M, label: y, help: O, width: v, minWidth: C, maxWidth: A, sortable: N, selectable: W, render: ee, type: X, align: ae, visible: ce } = h(m.type.props, k);
4318
+ let b = m.children, k = m.props || {}, { field: M, label: y, help: O, width: v, minWidth: C, maxWidth: A, sortable: N, selectable: W, render: te, type: X, align: ae, visible: ce } = h(m.type.props, k);
4314
4319
  return {
4315
4320
  label: y,
4316
4321
  help: O,
@@ -4322,7 +4327,7 @@ const i1 = /* @__PURE__ */ Te(Qb, [["render", r1]]), s1 = { class: "font-semibol
4322
4327
  sortable: N,
4323
4328
  selectable: W,
4324
4329
  field: M,
4325
- render: ee,
4330
+ render: te,
4326
4331
  children: b,
4327
4332
  visible: ce
4328
4333
  };
@@ -4340,14 +4345,14 @@ const i1 = /* @__PURE__ */ Te(Qb, [["render", r1]]), s1 = { class: "font-semibol
4340
4345
  }), e({
4341
4346
  buildColumns: d
4342
4347
  }), (h, p) => (T(), R("div", {
4343
- class: ne(["relative w-full rounded-lg overflow-hidden", {
4348
+ class: Q(["relative w-full rounded-lg overflow-hidden", {
4344
4349
  border: t.border,
4345
- [`${i[B(Ce).theme]}`]: !0
4350
+ [`${i[V(Me).theme]}`]: !0
4346
4351
  }])
4347
4352
  }, [
4348
- V("div", o1, [
4349
- V("table", a1, [
4350
- V("colgroup", null, [
4353
+ B("div", o1, [
4354
+ B("table", a1, [
4355
+ B("colgroup", null, [
4351
4356
  (T(!0), R(xt, null, jt(c.value, (g, m) => (T(), R("col", {
4352
4357
  style: Hl({ minWidth: `${g.minWidth}px` }),
4353
4358
  width: g.width,
@@ -4356,34 +4361,34 @@ const i1 = /* @__PURE__ */ Te(Qb, [["render", r1]]), s1 = { class: "font-semibol
4356
4361
  }, null, 12, l1))), 128))
4357
4362
  ]),
4358
4363
  t.hideHeaders ? ve("", !0) : (T(), R("thead", u1, [
4359
- V("tr", null, [
4364
+ B("tr", null, [
4360
4365
  (T(!0), R(xt, null, jt(c.value, (g, m) => {
4361
4366
  var b, k;
4362
4367
  return T(), R("th", {
4363
- class: ne(["first:rounded-tl-lg last:rounded-tr-lg py-0border-b first:pl-6 pr-6", {
4364
- [`${s[B(Ce).theme]}`]: !0,
4368
+ class: Q(["first:rounded-tl-lg last:rounded-tr-lg py-0border-b first:pl-6 pr-6", {
4369
+ [`${s[V(Me).theme]}`]: !0,
4365
4370
  "sticky left-0": m === 0
4366
4371
  }])
4367
4372
  }, [
4368
- V("div", {
4373
+ B("div", {
4369
4374
  onClick: () => {
4370
4375
  g.sortable && f(g.field);
4371
4376
  },
4372
- class: ne(["flex items-center py-3 lg:text-base rounded-lg", {
4377
+ class: Q(["flex items-center py-3 lg:text-base rounded-lg", {
4373
4378
  "cursor-pointer": g.sortable && g.field,
4374
4379
  "justify-center": g.align == "center",
4375
4380
  "justify-end": g.align == "right"
4376
4381
  }])
4377
4382
  }, [
4378
- V("span", {
4379
- class: ne(["select-none font-medium", { "text-right": g.align == "right" }])
4380
- }, Me(g.label), 3),
4383
+ B("span", {
4384
+ class: Q(["select-none font-medium", { "text-right": g.align == "right" }])
4385
+ }, Ce(g.label), 3),
4381
4386
  g.sortable && g.field ? (T(), R("span", {
4382
4387
  key: 0,
4383
- class: ne(["ml-1", { "opacity-25": g.field != ((b = t.sortOptions) == null ? void 0 : b.sortBy) }])
4388
+ class: Q(["ml-1", { "opacity-25": g.field != ((b = t.sortOptions) == null ? void 0 : b.sortBy) }])
4384
4389
  }, [
4385
4390
  Oe(i1, {
4386
- class: ne(["w-4 h-4", { "rotate-180": ((k = t.sortOptions) == null ? void 0 : k.sortDirection) === "asc" }])
4391
+ class: Q(["w-4 h-4", { "rotate-180": ((k = t.sortOptions) == null ? void 0 : k.sortDirection) === "asc" }])
4387
4392
  }, null, 8, ["class"])
4388
4393
  ], 2)) : ve("", !0)
4389
4394
  ], 10, c1)
@@ -4391,7 +4396,7 @@ const i1 = /* @__PURE__ */ Te(Qb, [["render", r1]]), s1 = { class: "font-semibol
4391
4396
  }), 256))
4392
4397
  ])
4393
4398
  ])),
4394
- V("tbody", d1, [
4399
+ B("tbody", d1, [
4395
4400
  t.totalItem && t.totalOnTop ? (T(), Ve(wc, {
4396
4401
  key: 0,
4397
4402
  position: "header",
@@ -4406,9 +4411,9 @@ const i1 = /* @__PURE__ */ Te(Qb, [["render", r1]]), s1 = { class: "font-semibol
4406
4411
  (T(!0), R(xt, null, jt(c.value, (b, k) => {
4407
4412
  var M, y;
4408
4413
  return T(), Ve(qf, {
4409
- class: ne(["py-3 first:pl-6 pr-6 lg:text-base", {
4414
+ class: Q(["py-3 first:pl-6 pr-6 lg:text-base", {
4410
4415
  "sticky left-0 shadow": k === 0,
4411
- [`${o[B(Ce).theme]}`]: !0,
4416
+ [`${o[V(Me).theme]}`]: !0,
4412
4417
  "first:pl-0 last:pr-0": t.noXPadding,
4413
4418
  "last:rounded-br-lg": m === ((M = t.data) == null ? void 0 : M.length) - 1 && !t.totalItem,
4414
4419
  "first:rounded-bl-lg": m === ((y = t.data) == null ? void 0 : y.length) - 1 && !t.totalItem,
@@ -8823,7 +8828,7 @@ class oe {
8823
8828
  found.
8824
8829
  */
8825
8830
  static findFrom(e, n, r = !1) {
8826
- let i = e.parent.inlineContent ? new Q(e) : si(e.node(0), e.parent, e.pos, e.index(), n, r);
8831
+ let i = e.parent.inlineContent ? new ee(e) : si(e.node(0), e.parent, e.pos, e.index(), n, r);
8827
8832
  if (i)
8828
8833
  return i;
8829
8834
  for (let s = e.depth - 1; s >= 0; s--) {
@@ -8890,7 +8895,7 @@ class oe {
8890
8895
  returns the bookmark for that.
8891
8896
  */
8892
8897
  getBookmark() {
8893
- return Q.between(this.$anchor, this.$head).getBookmark();
8898
+ return ee.between(this.$anchor, this.$head).getBookmark();
8894
8899
  }
8895
8900
  }
8896
8901
  oe.prototype.visible = !0;
@@ -8906,7 +8911,7 @@ let Ac = !1;
8906
8911
  function Nc(t) {
8907
8912
  !Ac && !t.parent.inlineContent && (Ac = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + t.parent.type.name + ")"));
8908
8913
  }
8909
- class Q extends oe {
8914
+ class ee extends oe {
8910
8915
  /**
8911
8916
  Construct a text selection between the given points.
8912
8917
  */
@@ -8925,7 +8930,7 @@ class Q extends oe {
8925
8930
  if (!r.parent.inlineContent)
8926
8931
  return oe.near(r);
8927
8932
  let i = e.resolve(n.map(this.anchor));
8928
- return new Q(i.parent.inlineContent ? i : r, r);
8933
+ return new ee(i.parent.inlineContent ? i : r, r);
8929
8934
  }
8930
8935
  replace(e, n = L.empty) {
8931
8936
  if (super.replace(e, n), n == L.empty) {
@@ -8934,7 +8939,7 @@ class Q extends oe {
8934
8939
  }
8935
8940
  }
8936
8941
  eq(e) {
8937
- return e instanceof Q && e.anchor == this.anchor && e.head == this.head;
8942
+ return e instanceof ee && e.anchor == this.anchor && e.head == this.head;
8938
8943
  }
8939
8944
  getBookmark() {
8940
8945
  return new Jo(this.anchor, this.head);
@@ -8948,7 +8953,7 @@ class Q extends oe {
8948
8953
  static fromJSON(e, n) {
8949
8954
  if (typeof n.anchor != "number" || typeof n.head != "number")
8950
8955
  throw new RangeError("Invalid input for TextSelection.fromJSON");
8951
- return new Q(e.resolve(n.anchor), e.resolve(n.head));
8956
+ return new ee(e.resolve(n.anchor), e.resolve(n.head));
8952
8957
  }
8953
8958
  /**
8954
8959
  Create a text selection from non-resolved positions.
@@ -8974,10 +8979,10 @@ class Q extends oe {
8974
8979
  else
8975
8980
  return oe.near(n, r);
8976
8981
  }
8977
- return e.parent.inlineContent || (i == 0 ? e = n : (e = (oe.findFrom(e, -r, !0) || oe.findFrom(e, r, !0)).$anchor, e.pos < n.pos != i < 0 && (e = n))), new Q(e, n);
8982
+ return e.parent.inlineContent || (i == 0 ? e = n : (e = (oe.findFrom(e, -r, !0) || oe.findFrom(e, r, !0)).$anchor, e.pos < n.pos != i < 0 && (e = n))), new ee(e, n);
8978
8983
  }
8979
8984
  }
8980
- oe.jsonID("text", Q);
8985
+ oe.jsonID("text", ee);
8981
8986
  class Jo {
8982
8987
  constructor(e, n) {
8983
8988
  this.anchor = e, this.head = n;
@@ -8986,7 +8991,7 @@ class Jo {
8986
8991
  return new Jo(e.map(this.anchor), e.map(this.head));
8987
8992
  }
8988
8993
  resolve(e) {
8989
- return Q.between(e.resolve(this.anchor), e.resolve(this.head));
8994
+ return ee.between(e.resolve(this.anchor), e.resolve(this.head));
8990
8995
  }
8991
8996
  }
8992
8997
  class q extends oe {
@@ -9096,7 +9101,7 @@ const uw = {
9096
9101
  };
9097
9102
  function si(t, e, n, r, i, s = !1) {
9098
9103
  if (e.inlineContent)
9099
- return Q.create(t, n);
9104
+ return ee.create(t, n);
9100
9105
  for (let o = r - (i > 0 ? 0 : 1); i > 0 ? o < e.childCount : o >= 0; o += i) {
9101
9106
  let a = e.child(o);
9102
9107
  if (a.isAtom) {
@@ -10479,7 +10484,7 @@ class ur extends Is {
10479
10484
  }
10480
10485
  localCompositionInfo(e, n) {
10481
10486
  let { from: r, to: i } = e.state.selection;
10482
- if (!(e.state.selection instanceof Q) || r < n || i > n + this.node.content.size)
10487
+ if (!(e.state.selection instanceof ee) || r < n || i > n + this.node.content.size)
10483
10488
  return null;
10484
10489
  let s = e.input.compositionNode;
10485
10490
  if (!s || !this.dom.contains(s.parentNode))
@@ -11030,7 +11035,7 @@ function zn(t, e = !1) {
11030
11035
  qw(t);
11031
11036
  else {
11032
11037
  let { anchor: r, head: i } = n, s, o;
11033
- qc && !(n instanceof Q) && (n.$from.parent.inlineContent || (s = Kc(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (o = Kc(t, n.to))), t.docView.setSelection(r, i, t.root, e), qc && (s && Jc(s), o && Jc(o)), n.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && Uw(t));
11038
+ qc && !(n instanceof ee) && (n.$from.parent.inlineContent || (s = Kc(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (o = Kc(t, n.to))), t.docView.setSelection(r, i, t.root, e), qc && (s && Jc(s), o && Jc(o)), n.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && Uw(t));
11034
11039
  }
11035
11040
  t.domObserver.setCurSelection(), t.domObserver.connectSelection();
11036
11041
  }
@@ -11078,7 +11083,7 @@ function Gc(t) {
11078
11083
  t.lastSelectedViewDesc && (t.lastSelectedViewDesc.parent && t.lastSelectedViewDesc.deselectNode(), t.lastSelectedViewDesc = void 0);
11079
11084
  }
11080
11085
  function su(t, e, n, r) {
11081
- return t.someProp("createSelectionBetween", (i) => i(t, e, n)) || Q.between(e, n, r);
11086
+ return t.someProp("createSelectionBetween", (i) => i(t, e, n)) || ee.between(e, n, r);
11082
11087
  }
11083
11088
  function Zc(t) {
11084
11089
  return t.editable && !t.hasFocus() ? !1 : Bh(t);
@@ -11106,13 +11111,13 @@ function er(t, e) {
11106
11111
  }
11107
11112
  function Xc(t, e, n) {
11108
11113
  let r = t.state.selection;
11109
- if (r instanceof Q)
11114
+ if (r instanceof ee)
11110
11115
  if (n.indexOf("s") > -1) {
11111
11116
  let { $head: i } = r, s = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter;
11112
11117
  if (!s || s.isText || !s.isLeaf)
11113
11118
  return !1;
11114
11119
  let o = t.state.doc.resolve(i.pos + s.nodeSize * (e < 0 ? -1 : 1));
11115
- return er(t, new Q(r.$anchor, o));
11120
+ return er(t, new ee(r.$anchor, o));
11116
11121
  } else if (r.empty) {
11117
11122
  if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
11118
11123
  let i = kl(t.state, e);
@@ -11122,13 +11127,13 @@ function Xc(t, e, n) {
11122
11127
  if (!s || s.isText)
11123
11128
  return !1;
11124
11129
  let a = e < 0 ? i.pos - s.nodeSize : i.pos;
11125
- return s.isAtom || (o = t.docView.descAt(a)) && !o.contentDOM ? q.isSelectable(s) ? er(t, new q(e < 0 ? t.state.doc.resolve(i.pos - s.nodeSize) : i)) : Ps ? er(t, new Q(t.state.doc.resolve(e < 0 ? a : a + s.nodeSize))) : !1 : !1;
11130
+ return s.isAtom || (o = t.docView.descAt(a)) && !o.contentDOM ? q.isSelectable(s) ? er(t, new q(e < 0 ? t.state.doc.resolve(i.pos - s.nodeSize) : i)) : Ps ? er(t, new ee(t.state.doc.resolve(e < 0 ? a : a + s.nodeSize))) : !1 : !1;
11126
11131
  }
11127
11132
  } else
11128
11133
  return !1;
11129
11134
  else {
11130
11135
  if (r instanceof q && r.node.isInline)
11131
- return er(t, new Q(e > 0 ? r.$to : r.$from));
11136
+ return er(t, new ee(e > 0 ? r.$to : r.$from));
11132
11137
  {
11133
11138
  let i = kl(t.state, e);
11134
11139
  return i ? er(t, i) : !1;
@@ -11277,7 +11282,7 @@ function Qc(t, e) {
11277
11282
  }
11278
11283
  function ed(t, e, n) {
11279
11284
  let r = t.state.selection;
11280
- if (r instanceof Q && !r.empty || n.indexOf("s") > -1 || Ft && n.indexOf("m") > -1)
11285
+ if (r instanceof ee && !r.empty || n.indexOf("s") > -1 || Ft && n.indexOf("m") > -1)
11281
11286
  return !1;
11282
11287
  let { $from: i, $to: s } = r;
11283
11288
  if (!i.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
@@ -11292,7 +11297,7 @@ function ed(t, e, n) {
11292
11297
  return !1;
11293
11298
  }
11294
11299
  function td(t, e) {
11295
- if (!(t.state.selection instanceof Q))
11300
+ if (!(t.state.selection instanceof ee))
11296
11301
  return !0;
11297
11302
  let { $head: n, $anchor: r, empty: i } = t.state.selection;
11298
11303
  if (!n.sameParent(r))
@@ -11604,7 +11609,7 @@ ht.keypress = (t, e) => {
11604
11609
  return;
11605
11610
  }
11606
11611
  let r = t.state.selection;
11607
- if (!(r instanceof Q) || !r.$from.sameParent(r.$to)) {
11612
+ if (!(r instanceof ee) || !r.$from.sameParent(r.$to)) {
11608
11613
  let i = String.fromCharCode(n.charCode);
11609
11614
  !/[\r\n]/.test(i) && !t.someProp("handleTextInput", (s) => s(t, r.$from.pos, r.$to.pos, i)) && t.dispatch(t.state.tr.insertText(i).scrollIntoView()), n.preventDefault();
11610
11615
  }
@@ -11665,12 +11670,12 @@ function bk(t, e, n) {
11665
11670
  return !1;
11666
11671
  let r = t.state.doc;
11667
11672
  if (e == -1)
11668
- return r.inlineContent ? (vi(t, Q.create(r, 0, r.content.size)), !0) : !1;
11673
+ return r.inlineContent ? (vi(t, ee.create(r, 0, r.content.size)), !0) : !1;
11669
11674
  let i = r.resolve(e);
11670
11675
  for (let s = i.depth + 1; s > 0; s--) {
11671
11676
  let o = s > i.depth ? i.nodeAfter : i.node(s), a = i.before(s);
11672
11677
  if (o.inlineContent)
11673
- vi(t, Q.create(r, a + 1, a + 1 + o.content.size));
11678
+ vi(t, ee.create(r, a + 1, a + 1 + o.content.size));
11674
11679
  else if (q.isSelectable(o))
11675
11680
  vi(t, q.create(r, a));
11676
11681
  else
@@ -12705,8 +12710,8 @@ function Lk(t, e, n, r, i) {
12705
12710
  if (W && !t.state.selection.eq(W)) {
12706
12711
  if (ut && Zt && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (X) => X(t, Er(13, "Enter"))))
12707
12712
  return;
12708
- let ee = t.state.tr.setSelection(W);
12709
- N == "pointer" ? ee.setMeta("pointer", !0) : N == "key" && ee.scrollIntoView(), s && ee.setMeta("composition", s), t.dispatch(ee);
12713
+ let te = t.state.tr.setSelection(W);
12714
+ N == "pointer" ? te.setMeta("pointer", !0) : N == "key" && te.scrollIntoView(), s && te.setMeta("composition", s), t.dispatch(te);
12710
12715
  }
12711
12716
  return;
12712
12717
  }
@@ -12720,7 +12725,7 @@ function Lk(t, e, n, r, i) {
12720
12725
  return;
12721
12726
  }
12722
12727
  if (!p)
12723
- if (r && l instanceof Q && !l.empty && l.$head.sameParent(l.$anchor) && !t.composing && !(u.sel && u.sel.anchor != u.sel.head))
12728
+ if (r && l instanceof ee && !l.empty && l.$head.sameParent(l.$anchor) && !t.composing && !(u.sel && u.sel.anchor != u.sel.head))
12724
12729
  p = { start: l.from, endA: l.to, endB: l.to };
12725
12730
  else {
12726
12731
  if (u.sel) {
@@ -12732,7 +12737,7 @@ function Lk(t, e, n, r, i) {
12732
12737
  }
12733
12738
  return;
12734
12739
  }
12735
- t.input.domChangeCount++, t.state.selection.from < t.state.selection.to && p.start == p.endB && t.state.selection instanceof Q && (p.start > t.state.selection.from && p.start <= t.state.selection.from + 2 && t.state.selection.from >= u.from ? p.start = t.state.selection.from : p.endA < t.state.selection.to && p.endA >= t.state.selection.to - 2 && t.state.selection.to <= u.to && (p.endB += t.state.selection.to - p.endA, p.endA = t.state.selection.to)), St && lr <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > u.from && u.doc.textBetween(p.start - u.from - 1, p.start - u.from + 1) == "  " && (p.start--, p.endA--, p.endB--);
12740
+ t.input.domChangeCount++, t.state.selection.from < t.state.selection.to && p.start == p.endB && t.state.selection instanceof ee && (p.start > t.state.selection.from && p.start <= t.state.selection.from + 2 && t.state.selection.from >= u.from ? p.start = t.state.selection.from : p.endA < t.state.selection.to && p.endA >= t.state.selection.to - 2 && t.state.selection.to <= u.to && (p.endB += t.state.selection.to - p.endA, p.endA = t.state.selection.to)), St && lr <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > u.from && u.doc.textBetween(p.start - u.from - 1, p.start - u.from + 1) == "  " && (p.start--, p.endA--, p.endB--);
12736
12741
  let g = u.doc.resolveNoCache(p.start - u.from), m = u.doc.resolveNoCache(p.endB - u.from), b = c.resolve(p.start), k = g.sameParent(m) && g.parent.inlineContent && b.end() >= p.endA, M;
12737
12742
  if ((Ti && t.input.lastIOSEnter > Date.now() - 225 && (!k || i.some((N) => N.nodeName == "DIV" || N.nodeName == "P")) || !k && g.pos < u.doc.content.size && !g.sameParent(m) && (M = oe.findFrom(u.doc.resolve(g.pos + 1), 1, !0)) && M.head == m.pos) && t.someProp("handleKeyDown", (N) => N(t, Er(13, "Enter")))) {
12738
12743
  t.input.lastIOSEnter = 0;
@@ -13431,7 +13436,7 @@ function sp(t, e, n) {
13431
13436
  return !1;
13432
13437
  if (n) {
13433
13438
  let c = t.tr.step(u);
13434
- c.setSelection(Q.create(c.doc, s)), n(c.scrollIntoView());
13439
+ c.setSelection(ee.create(c.doc, s)), n(c.scrollIntoView());
13435
13440
  }
13436
13441
  return !0;
13437
13442
  }
@@ -13573,7 +13578,7 @@ const cx = (t, e) => {
13573
13578
  return !1;
13574
13579
  if (e) {
13575
13580
  let o = (!r.parentOffset && i.index() < i.parent.childCount ? r : i).pos, a = t.tr.insert(o, s.createAndFill());
13576
- a.setSelection(Q.create(a.doc, o + 1)), e(a.scrollIntoView());
13581
+ a.setSelection(ee.create(a.doc, o + 1)), e(a.scrollIntoView());
13577
13582
  }
13578
13583
  return !0;
13579
13584
  }, fx = (t, e) => {
@@ -13644,7 +13649,7 @@ function up(t) {
13644
13649
  return !1;
13645
13650
  s--;
13646
13651
  }
13647
- return i.node(s).isTextblock ? (n && n(e.tr.setSelection(Q.create(e.doc, t < 0 ? i.start(s) : i.end(s)))), !0) : !1;
13652
+ return i.node(s).isTextblock ? (n && n(e.tr.setSelection(ee.create(e.doc, t < 0 ? i.start(s) : i.end(s)))), !0) : !1;
13648
13653
  };
13649
13654
  }
13650
13655
  const mx = up(-1), gx = up(1);
@@ -14625,7 +14630,7 @@ const Lx = it.create({
14625
14630
  const { state: i } = n, s = i.doc.slice(t.from, t.to);
14626
14631
  r.deleteRange(t.from, t.to);
14627
14632
  const o = r.mapping.map(e);
14628
- return r.insert(o, s.content), r.setSelection(new Q(r.doc.resolve(o - 1))), !0;
14633
+ return r.insert(o, s.content), r.setSelection(new ee(r.doc.resolve(o - 1))), !0;
14629
14634
  }, Ux = () => ({ tr: t, dispatch: e }) => {
14630
14635
  const { selection: n } = t, r = n.$anchor.node();
14631
14636
  if (r.content.size > 0)
@@ -14697,7 +14702,7 @@ const Qx = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
14697
14702
  if (i) {
14698
14703
  const d = pu(l, s, e);
14699
14704
  if (d && d.from <= u && d.to >= c) {
14700
- const f = Q.create(o, d.from, d.to);
14705
+ const f = ee.create(o, d.from, d.to);
14701
14706
  n.setSelection(f);
14702
14707
  }
14703
14708
  }
@@ -14710,7 +14715,7 @@ const Qx = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
14710
14715
  return !1;
14711
14716
  };
14712
14717
  function mu(t) {
14713
- return t instanceof Q;
14718
+ return t instanceof ee;
14714
14719
  }
14715
14720
  function Bn(t = 0, e = 0, n = 0) {
14716
14721
  return Math.min(Math.max(t, e), n);
@@ -14724,7 +14729,7 @@ function pp(t, e = null) {
14724
14729
  if (e === "end")
14725
14730
  return r;
14726
14731
  const i = n.from, s = r.to;
14727
- return e === "all" ? Q.create(t, Bn(0, i, s), Bn(t.content.size, i, s)) : Q.create(t, Bn(e, i, s), Bn(e, i, s));
14732
+ return e === "all" ? ee.create(t, Bn(0, i, s), Bn(t.content.size, i, s)) : ee.create(t, Bn(e, i, s), Bn(e, i, s));
14728
14733
  }
14729
14734
  function gu() {
14730
14735
  return [
@@ -15127,7 +15132,7 @@ const FS = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
15127
15132
  return !0;
15128
15133
  }, HS = (t) => ({ tr: e, dispatch: n }) => {
15129
15134
  if (n) {
15130
- const { doc: r } = e, { from: i, to: s } = typeof t == "number" ? { from: t, to: t } : t, o = Q.atStart(r).from, a = Q.atEnd(r).to, l = Bn(i, o, a), u = Bn(s, o, a), c = Q.create(r, l, u);
15135
+ const { doc: r } = e, { from: i, to: s } = typeof t == "number" ? { from: t, to: t } : t, o = ee.atStart(r).from, a = ee.atEnd(r).to, l = Bn(i, o, a), u = Bn(s, o, a), c = ee.create(r, l, u);
15131
15136
  e.setSelection(c);
15132
15137
  }
15133
15138
  return !0;
@@ -15150,7 +15155,7 @@ const US = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
15150
15155
  return !1;
15151
15156
  if (r) {
15152
15157
  const d = l.parentOffset === l.parent.content.size;
15153
- s instanceof Q && e.deleteSelection();
15158
+ s instanceof ee && e.deleteSelection();
15154
15159
  const f = a.depth === 0 ? void 0 : _S(a.node(-1).contentMatchAt(a.indexAfter(-1)));
15155
15160
  let h = d && f ? [
15156
15161
  {
@@ -15196,7 +15201,7 @@ const US = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
15196
15201
  if (v > -1)
15197
15202
  return !1;
15198
15203
  C.isTextblock && C.content.size === 0 && (v = A + 1);
15199
- }), v > -1 && e.setSelection(Q.near(e.doc.resolve(v))), e.scrollIntoView();
15204
+ }), v > -1 && e.setSelection(ee.near(e.doc.resolve(v))), e.scrollIntoView();
15200
15205
  }
15201
15206
  return !0;
15202
15207
  }
@@ -16461,7 +16466,7 @@ function Cd(t) {
16461
16466
  h -= W - r.width, h *= l ? 1 : -1;
16462
16467
  }
16463
16468
  }
16464
- var ee = Object.assign({
16469
+ var te = Object.assign({
16465
16470
  position: a
16466
16471
  }, u && RO), X = c === !0 ? $O({
16467
16472
  x: h,
@@ -16472,9 +16477,9 @@ function Cd(t) {
16472
16477
  };
16473
16478
  if (h = X.x, g = X.y, l) {
16474
16479
  var ae;
16475
- return Object.assign({}, ee, (ae = {}, ae[y] = k ? "0" : "", ae[M] = b ? "0" : "", ae.transform = (O.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + g + "px)" : "translate3d(" + h + "px, " + g + "px, 0)", ae));
16480
+ return Object.assign({}, te, (ae = {}, ae[y] = k ? "0" : "", ae[M] = b ? "0" : "", ae.transform = (O.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + g + "px)" : "translate3d(" + h + "px, " + g + "px, 0)", ae));
16476
16481
  }
16477
- return Object.assign({}, ee, (e = {}, e[y] = k ? g + "px" : "", e[M] = b ? h + "px" : "", e.transform = "", e));
16482
+ return Object.assign({}, te, (e = {}, e[y] = k ? g + "px" : "", e[M] = b ? h + "px" : "", e.transform = "", e));
16478
16483
  }
16479
16484
  function VO(t) {
16480
16485
  var e = t.state, n = t.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, s = n.adaptive, o = s === void 0 ? !0 : s, a = n.roundOffsets, l = a === void 0 ? !0 : a, u = {
@@ -16684,9 +16689,9 @@ function ws(t, e) {
16684
16689
  bottom: N.bottom - O.bottom + b.bottom,
16685
16690
  left: O.left - N.left + b.left,
16686
16691
  right: N.right - O.right + b.right
16687
- }, ee = t.modifiersData.offset;
16688
- if (f === Hi && ee) {
16689
- var X = ee[i];
16692
+ }, te = t.modifiersData.offset;
16693
+ if (f === Hi && te) {
16694
+ var X = te[i];
16690
16695
  Object.keys(W).forEach(function(ae) {
16691
16696
  var ce = [qt, Ut].indexOf(ae) >= 0 ? 1 : -1, le = [Ot, Ut].indexOf(ae) >= 0 ? "y" : "x";
16692
16697
  W[ae] += X[le] * ce;
@@ -16733,8 +16738,8 @@ function GO(t) {
16733
16738
  allowedAutoPlacements: g
16734
16739
  }) : at);
16735
16740
  }, []), O = e.rects.reference, v = e.rects.popper, C = /* @__PURE__ */ new Map(), A = !0, N = y[0], W = 0; W < y.length; W++) {
16736
- var ee = y[W], X = bn(ee), ae = Ii(ee) === Ai, ce = [Ot, Ut].indexOf(X) >= 0, le = ce ? "width" : "height", Y = ws(e, {
16737
- placement: ee,
16741
+ var te = y[W], X = bn(te), ae = Ii(te) === Ai, ce = [Ot, Ut].indexOf(X) >= 0, le = ce ? "width" : "height", Y = ws(e, {
16742
+ placement: te,
16738
16743
  boundary: c,
16739
16744
  rootBoundary: d,
16740
16745
  altBoundary: f,
@@ -16745,10 +16750,10 @@ function GO(t) {
16745
16750
  if (s && ze.push(Y[X] <= 0), a && ze.push(Y[ue] <= 0, Y[ye] <= 0), ze.every(function(De) {
16746
16751
  return De;
16747
16752
  })) {
16748
- N = ee, A = !1;
16753
+ N = te, A = !1;
16749
16754
  break;
16750
16755
  }
16751
- C.set(ee, ze);
16756
+ C.set(te, ze);
16752
16757
  }
16753
16758
  if (A)
16754
16759
  for (var ot = p ? 3 : 1, mt = function(at) {
@@ -16876,7 +16881,7 @@ function oM(t) {
16876
16881
  } : Object.assign({
16877
16882
  mainAxis: 0,
16878
16883
  altAxis: 0
16879
- }, N), ee = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, X = {
16884
+ }, N), te = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, X = {
16880
16885
  x: 0,
16881
16886
  y: 0
16882
16887
  };
@@ -16885,11 +16890,11 @@ function oM(t) {
16885
16890
  var ae, ce = y === "y" ? Ot : Mt, le = y === "y" ? Ut : qt, Y = y === "y" ? "height" : "width", ue = v[y], ye = ue + m[ce], ze = ue - m[le], ot = h ? -A[Y] / 2 : 0, mt = k === Ai ? C[Y] : A[Y], Ct = k === Ai ? -A[Y] : -C[Y], Tt = e.elements.arrow, De = h && Tt ? wu(Tt) : {
16886
16891
  width: 0,
16887
16892
  height: 0
16888
- }, at = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Mp(), $ = at[ce], Z = at[le], be = rs(0, C[Y], De[Y]), de = M ? C[Y] / 2 - ot - be - $ - W.mainAxis : mt - be - $ - W.mainAxis, Ye = M ? -C[Y] / 2 + ot + be + Z + W.mainAxis : Ct + be + Z + W.mainAxis, Ue = e.elements.arrow && $s(e.elements.arrow), gt = Ue ? y === "y" ? Ue.clientTop || 0 : Ue.clientLeft || 0 : 0, Sr = (ae = ee == null ? void 0 : ee[y]) != null ? ae : 0, Gr = ue + de - Sr - gt, Jn = ue + Ye - Sr, Gn = rs(h ? Ao(ye, Gr) : ye, ue, h ? Fr(ze, Jn) : ze);
16893
+ }, at = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Mp(), $ = at[ce], Z = at[le], be = rs(0, C[Y], De[Y]), de = M ? C[Y] / 2 - ot - be - $ - W.mainAxis : mt - be - $ - W.mainAxis, Ye = M ? -C[Y] / 2 + ot + be + Z + W.mainAxis : Ct + be + Z + W.mainAxis, Ue = e.elements.arrow && $s(e.elements.arrow), gt = Ue ? y === "y" ? Ue.clientTop || 0 : Ue.clientLeft || 0 : 0, Sr = (ae = te == null ? void 0 : te[y]) != null ? ae : 0, Gr = ue + de - Sr - gt, Jn = ue + Ye - Sr, Gn = rs(h ? Ao(ye, Gr) : ye, ue, h ? Fr(ze, Jn) : ze);
16889
16894
  v[y] = Gn, X[y] = Gn - ue;
16890
16895
  }
16891
16896
  if (a) {
16892
- var En, Gt = y === "x" ? Ot : Mt, Bt = y === "x" ? Ut : qt, Lt = v[O], cn = O === "y" ? "height" : "width", _n = Lt + m[Gt], dn = Lt - m[Bt], Or = [Ot, Mt].indexOf(b) !== -1, Zn = (En = ee == null ? void 0 : ee[O]) != null ? En : 0, Zr = Or ? _n : Lt - C[cn] - A[cn] - Zn + W.altAxis, Xr = Or ? Lt + C[cn] + A[cn] - Zn - W.altAxis : dn, Qr = h && Or ? _O(Zr, Lt, Xr) : rs(h ? Zr : _n, Lt, h ? Xr : dn);
16897
+ var En, Gt = y === "x" ? Ot : Mt, Bt = y === "x" ? Ut : qt, Lt = v[O], cn = O === "y" ? "height" : "width", _n = Lt + m[Gt], dn = Lt - m[Bt], Or = [Ot, Mt].indexOf(b) !== -1, Zn = (En = te == null ? void 0 : te[O]) != null ? En : 0, Zr = Or ? _n : Lt - C[cn] - A[cn] - Zn + W.altAxis, Xr = Or ? Lt + C[cn] + A[cn] - Zn - W.altAxis : dn, Qr = h && Or ? _O(Zr, Lt, Xr) : rs(h ? Zr : _n, Lt, h ? Xr : dn);
16893
16898
  v[O] = Qr, X[O] = Qr - Lt;
16894
16899
  }
16895
16900
  e.modifiersData[r] = X;
@@ -17505,7 +17510,7 @@ function UM(t, e) {
17505
17510
  var w = y.props.touch;
17506
17511
  return Array.isArray(w) ? w : [w, 0];
17507
17512
  }
17508
- function ee() {
17513
+ function te() {
17509
17514
  return W()[0] === "hold";
17510
17515
  }
17511
17516
  function X() {
@@ -17625,7 +17630,7 @@ function UM(t, e) {
17625
17630
  });
17626
17631
  }
17627
17632
  function Ue() {
17628
- ee() && (Ye("touchstart", Sr, {
17633
+ te() && (Ye("touchstart", Sr, {
17629
17634
  passive: !0
17630
17635
  }), Ye("touchend", Jn, {
17631
17636
  passive: !0
@@ -17687,7 +17692,7 @@ function UM(t, e) {
17687
17692
  y.props.trigger.indexOf("focusin") < 0 && w.target !== ae() || y.props.interactive && w.relatedTarget && v.contains(w.relatedTarget) || dn(w);
17688
17693
  }
17689
17694
  function En(w) {
17690
- return pn.isTouch ? ee() !== w.type.indexOf("touch") >= 0 : !1;
17695
+ return pn.isTouch ? te() !== w.type.indexOf("touch") >= 0 : !1;
17691
17696
  }
17692
17697
  function Gt() {
17693
17698
  Bt();
@@ -18210,7 +18215,7 @@ const GM = gr({
18210
18215
  r && r.options.element && e.value && Et(() => {
18211
18216
  if (!e.value || !r.options.element.firstChild)
18212
18217
  return;
18213
- const i = B(e.value);
18218
+ const i = V(e.value);
18214
18219
  e.value.append(...r.options.element.childNodes), r.contentComponent = n.ctx._, r.setOptions({
18215
18220
  element: i
18216
18221
  }), r.createNodeViews();
@@ -18702,7 +18707,7 @@ const ZM = (t = {}) => {
18702
18707
  if (!n || !s)
18703
18708
  return !1;
18704
18709
  const { tr: o } = t.state;
18705
- return t.state.selection.from === t.state.doc.nodeSize - (1 + t.state.selection.$to.depth * 2) ? o.insert(t.state.selection.from - 1, this.type.create({ language: s })) : o.replaceSelectionWith(this.type.create({ language: s })), o.setSelection(Q.near(o.doc.resolve(Math.max(0, o.selection.from - 2)))), o.insertText(n.replace(/\r\n?/g, `
18710
+ return t.state.selection.from === t.state.doc.nodeSize - (1 + t.state.selection.$to.depth * 2) ? o.insert(t.state.selection.from - 1, this.type.create({ language: s })) : o.replaceSelectionWith(this.type.create({ language: s })), o.setSelection(ee.near(o.doc.resolve(Math.max(0, o.selection.from - 2)))), o.insertText(n.replace(/\r\n?/g, `
18706
18711
  `)), o.setMeta("paste", !0), t.dispatch(o), !0;
18707
18712
  }
18708
18713
  }
@@ -18966,7 +18971,7 @@ function Qs(t, e) {
18966
18971
  const n = t == "vert" ? e > 0 ? "down" : "up" : e > 0 ? "right" : "left";
18967
18972
  return function(r, i, s) {
18968
18973
  let o = r.selection, a = e > 0 ? o.$to : o.$from, l = o.empty;
18969
- if (o instanceof Q) {
18974
+ if (o instanceof ee) {
18970
18975
  if (!s.endOfTextblock(n) || a.depth == 0)
18971
18976
  return !1;
18972
18977
  l = !1, a = r.doc.resolve(e > 0 ? a.after() : a.before());
@@ -18994,7 +18999,7 @@ function xC(t, e) {
18994
18999
  for (let o = r.length - 1; o >= 0; o--)
18995
19000
  i = _.from(r[o].createAndFill(null, i));
18996
19001
  let s = t.state.tr.replace(n.pos, n.pos, new L(i, 0, 0));
18997
- return s.setSelection(Q.near(s.doc.resolve(n.pos + 1))), t.dispatch(s), !1;
19002
+ return s.setSelection(ee.near(s.doc.resolve(n.pos + 1))), t.dispatch(s), !1;
18998
19003
  }
18999
19004
  function SC(t) {
19000
19005
  if (!(t.selection instanceof Ie))
@@ -19507,10 +19512,10 @@ const Yp = Hp(!1, !0), Up = Hp(!0, !0), $C = it.create({
19507
19512
  if (s) {
19508
19513
  const { $to: a } = i.selection, l = a.end();
19509
19514
  if (a.nodeAfter)
19510
- a.nodeAfter.isTextblock ? i.setSelection(Q.create(i.doc, a.pos + 1)) : a.nodeAfter.isBlock ? i.setSelection(q.create(i.doc, a.pos)) : i.setSelection(Q.create(i.doc, a.pos));
19515
+ a.nodeAfter.isTextblock ? i.setSelection(ee.create(i.doc, a.pos + 1)) : a.nodeAfter.isBlock ? i.setSelection(q.create(i.doc, a.pos)) : i.setSelection(ee.create(i.doc, a.pos));
19511
19516
  else {
19512
19517
  const u = (o = a.parent.type.contentMatch.defaultType) === null || o === void 0 ? void 0 : o.create();
19513
- u && (i.insert(l, u), i.setSelection(Q.create(i.doc, l + 1)));
19518
+ u && (i.insert(l, u), i.setSelection(ee.create(i.doc, l + 1)));
19514
19519
  }
19515
19520
  i.scrollIntoView();
19516
19521
  }
@@ -19877,7 +19882,7 @@ const Yp = Hp(!1, !0), Up = Hp(!0, !0), $C = it.create({
19877
19882
  xmlns: "http://www.w3.org/2000/svg",
19878
19883
  viewBox: "0 0 16 16",
19879
19884
  fill: "currentColor"
19880
- }, tT = /* @__PURE__ */ V("path", { d: "M3 4.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM6.25 3a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5h-7ZM6.25 7.25a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5h-7ZM6.25 11.5a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5h-7ZM4 12.25a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM3 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" }, null, -1), nT = [
19885
+ }, tT = /* @__PURE__ */ B("path", { d: "M3 4.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM6.25 3a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5h-7ZM6.25 7.25a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5h-7ZM6.25 11.5a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5h-7ZM4 12.25a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM3 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" }, null, -1), nT = [
19881
19886
  tT
19882
19887
  ];
19883
19888
  function rT(t, e) {
@@ -19887,7 +19892,7 @@ const iT = /* @__PURE__ */ Te(QC, [["render", rT]]), sT = {}, oT = {
19887
19892
  xmlns: "http://www.w3.org/2000/svg",
19888
19893
  viewBox: "0 0 16 16",
19889
19894
  fill: "currentColor"
19890
- }, aT = /* @__PURE__ */ V("path", { d: "M2.995 1a.625.625 0 1 0 0 1.25h.38v2.125a.625.625 0 1 0 1.25 0v-2.75A.625.625 0 0 0 4 1H2.995ZM3.208 7.385a2.37 2.37 0 0 1 1.027-.124L2.573 8.923a.625.625 0 0 0 .439 1.067l1.987.011a.625.625 0 0 0 .006-1.25l-.49-.003.777-.776c.215-.215.335-.506.335-.809 0-.465-.297-.957-.842-1.078a3.636 3.636 0 0 0-1.993.121.625.625 0 1 0 .416 1.179ZM2.625 11a.625.625 0 1 0 0 1.25H4.25a.125.125 0 0 1 0 .25H3.5a.625.625 0 1 0 0 1.25h.75a.125.125 0 0 1 0 .25H2.625a.625.625 0 1 0 0 1.25H4.25a1.375 1.375 0 0 0 1.153-2.125A1.375 1.375 0 0 0 4.25 11H2.625ZM7.25 2a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5h-6ZM7.25 7.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5h-6ZM6.5 13.25a.75.75 0 0 1 .75-.75h6a.75.75 0 0 1 0 1.5h-6a.75.75 0 0 1-.75-.75Z" }, null, -1), lT = [
19895
+ }, aT = /* @__PURE__ */ B("path", { d: "M2.995 1a.625.625 0 1 0 0 1.25h.38v2.125a.625.625 0 1 0 1.25 0v-2.75A.625.625 0 0 0 4 1H2.995ZM3.208 7.385a2.37 2.37 0 0 1 1.027-.124L2.573 8.923a.625.625 0 0 0 .439 1.067l1.987.011a.625.625 0 0 0 .006-1.25l-.49-.003.777-.776c.215-.215.335-.506.335-.809 0-.465-.297-.957-.842-1.078a3.636 3.636 0 0 0-1.993.121.625.625 0 1 0 .416 1.179ZM2.625 11a.625.625 0 1 0 0 1.25H4.25a.125.125 0 0 1 0 .25H3.5a.625.625 0 1 0 0 1.25h.75a.125.125 0 0 1 0 .25H2.625a.625.625 0 1 0 0 1.25H4.25a1.375 1.375 0 0 0 1.153-2.125A1.375 1.375 0 0 0 4.25 11H2.625ZM7.25 2a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5h-6ZM7.25 7.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5h-6ZM6.5 13.25a.75.75 0 0 1 .75-.75h6a.75.75 0 0 1 0 1.5h-6a.75.75 0 0 1-.75-.75Z" }, null, -1), lT = [
19891
19896
  aT
19892
19897
  ];
19893
19898
  function uT(t, e) {
@@ -19897,7 +19902,7 @@ const cT = /* @__PURE__ */ Te(sT, [["render", uT]]), dT = {}, fT = {
19897
19902
  xmlns: "http://www.w3.org/2000/svg",
19898
19903
  viewBox: "0 0 16 16",
19899
19904
  fill: "currentColor"
19900
- }, hT = /* @__PURE__ */ V("path", {
19905
+ }, hT = /* @__PURE__ */ B("path", {
19901
19906
  "fill-rule": "evenodd",
19902
19907
  d: "M12.5 9.75A2.75 2.75 0 0 0 9.75 7H4.56l2.22 2.22a.75.75 0 1 1-1.06 1.06l-3.5-3.5a.75.75 0 0 1 0-1.06l3.5-3.5a.75.75 0 0 1 1.06 1.06L4.56 5.5h5.19a4.25 4.25 0 0 1 0 8.5h-1a.75.75 0 0 1 0-1.5h1a2.75 2.75 0 0 0 2.75-2.75Z",
19903
19908
  "clip-rule": "evenodd"
@@ -19911,7 +19916,7 @@ const gT = /* @__PURE__ */ Te(dT, [["render", mT]]), yT = {}, vT = {
19911
19916
  xmlns: "http://www.w3.org/2000/svg",
19912
19917
  viewBox: "0 0 16 16",
19913
19918
  fill: "currentColor"
19914
- }, bT = /* @__PURE__ */ V("path", {
19919
+ }, bT = /* @__PURE__ */ B("path", {
19915
19920
  "fill-rule": "evenodd",
19916
19921
  d: "M3.5 9.75A2.75 2.75 0 0 1 6.25 7h5.19L9.22 9.22a.75.75 0 1 0 1.06 1.06l3.5-3.5a.75.75 0 0 0 0-1.06l-3.5-3.5a.75.75 0 1 0-1.06 1.06l2.22 2.22H6.25a4.25 4.25 0 0 0 0 8.5h1a.75.75 0 0 0 0-1.5h-1A2.75 2.75 0 0 1 3.5 9.75Z",
19917
19922
  "clip-rule": "evenodd"
@@ -19927,7 +19932,7 @@ const xT = /* @__PURE__ */ Te(yT, [["render", kT]]), ST = {}, OT = {
19927
19932
  height: "800px",
19928
19933
  viewBox: "0 0 1920 1920",
19929
19934
  xmlns: "http://www.w3.org/2000/svg"
19930
- }, MT = /* @__PURE__ */ V("path", {
19935
+ }, MT = /* @__PURE__ */ B("path", {
19931
19936
  d: "M754.429 0v274.423h235.885L647.457 1645.85H343V1920h822.994v-274.149H930.11l342.857-1371.428h304.32V0z",
19932
19937
  "fill-rule": "evenodd"
19933
19938
  }, null, -1), CT = [
@@ -19940,7 +19945,7 @@ const DT = /* @__PURE__ */ Te(ST, [["render", TT]]), ET = {}, _T = {
19940
19945
  fill: "#000000",
19941
19946
  viewBox: "0 0 1920 1920",
19942
19947
  xmlns: "http://www.w3.org/2000/svg"
19943
- }, AT = /* @__PURE__ */ V("path", {
19948
+ }, AT = /* @__PURE__ */ B("path", {
19944
19949
  d: "M480.286 822.857h548.571c151.269 0 274.286-123.017 274.286-274.286 0-151.268-123.017-274.285-274.286-274.285H480.286v548.571Zm0 822.857H1166c151.269 0 274.286-123.017 274.286-274.285 0-151.269-123.017-274.286-274.286-274.286H480.286v548.571ZM1166 1920H206V0h822.857c302.537 0 548.572 246.034 548.572 548.571 0 134.263-48.549 257.418-128.778 352.732 159.223 96.137 265.92 270.994 265.92 470.126 0 302.537-246.034 548.571-548.571 548.571Z",
19945
19950
  "fill-rule": "evenodd"
19946
19951
  }, null, -1), NT = [
@@ -19959,9 +19964,9 @@ const IT = /* @__PURE__ */ Te(ET, [["render", PT]]), RT = {}, $T = {
19959
19964
  height: "800px",
19960
19965
  viewBox: "0 0 96.639 96.639",
19961
19966
  "xml:space": "preserve"
19962
- }, VT = /* @__PURE__ */ V("g", null, [
19963
- /* @__PURE__ */ V("g", null, [
19964
- /* @__PURE__ */ V("path", { d: `M95.263,12.29V2.277C95.263,1.019,94.245,0,92.987,0H36.921C25.539,0,17.05,2.442,10.969,7.47\r
19967
+ }, VT = /* @__PURE__ */ B("g", null, [
19968
+ /* @__PURE__ */ B("g", null, [
19969
+ /* @__PURE__ */ B("path", { d: `M95.263,12.29V2.277C95.263,1.019,94.245,0,92.987,0H36.921C25.539,0,17.05,2.442,10.969,7.47\r
19965
19970
  c-6.364,5.265-9.594,12.724-9.594,22.167c0,10.367,3.124,18.054,9.547,23.499c6.399,5.423,15.696,8.175,27.63,8.175h10.38v33.051\r
19966
19971
  c0,1.258,1.02,2.277,2.278,2.277h7.096c1.257,0,2.276-1.02,2.276-2.277V14.566h9.146v79.795c0,1.258,1.021,2.276,2.277,2.276\r
19967
19972
  h6.873c1.257,0,2.277-1.021,2.277-2.276V14.566h11.83C94.247,14.566,95.263,13.547,95.263,12.29z` })
@@ -19978,7 +19983,7 @@ const FT = /* @__PURE__ */ Te(RT, [["render", LT]]), zT = {}, jT = {
19978
19983
  viewBox: "0 0 24 24",
19979
19984
  "stroke-width": "1.5",
19980
19985
  stroke: "currentColor"
19981
- }, WT = /* @__PURE__ */ V("path", {
19986
+ }, WT = /* @__PURE__ */ B("path", {
19982
19987
  "stroke-linecap": "round",
19983
19988
  "stroke-linejoin": "round",
19984
19989
  d: "M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"
@@ -20040,29 +20045,29 @@ const UT = /* @__PURE__ */ Te(zT, [["render", YT]]), qT = { class: "py-1 px-1 bo
20040
20045
  function l(u, c, d, f) {
20041
20046
  return f ? c === "chain" ? d ? !o.value.can().chain().focus()[u](d).run() : !o.value.can().chain().focus()[u]().run() : !o.value.can()[u]().run() : !1;
20042
20047
  }
20043
- return (u, c) => B(o) ? (T(), R("div", {
20048
+ return (u, c) => V(o) ? (T(), R("div", {
20044
20049
  key: 0,
20045
- class: ne(["pt-px relative flex flex-col rounded border", r[B(Ce).theme]])
20050
+ class: Q(["pt-px relative flex flex-col rounded border", r[V(Me).theme]])
20046
20051
  }, [
20047
- V("div", qT, [
20048
- V("div", KT, [
20049
- (T(), R(xt, null, jt(i, (d) => V("div", {
20052
+ B("div", qT, [
20053
+ B("div", KT, [
20054
+ (T(), R(xt, null, jt(i, (d) => B("div", {
20050
20055
  key: d.method,
20051
- class: ne(["w-8 h-8 flex items-center justify-center text-xs rounded", {
20056
+ class: Q(["w-8 h-8 flex items-center justify-center text-xs rounded", {
20052
20057
  "cursor-pointer": !l(d.method, d.type, d.params, d.disableCheck),
20053
- "is-active text-white !bg-zinc-200": B(o).isActive(d.label)
20058
+ "is-active text-white !bg-zinc-200": V(o).isActive(d.label)
20054
20059
  }]),
20055
20060
  onClick: (f) => a(d.method, d.type, d.params)
20056
20061
  }, [
20057
20062
  d.icon ? (T(), Ve(Ts(d.icon), {
20058
20063
  key: 0,
20059
- class: ne(["", { "w-3 h-3": d.smallIcon, "w-4 h-4": !d.smallIcon }])
20060
- }, null, 8, ["class"])) : (T(), R("span", GT, Me(B(ll).capitalize(d.label)), 1))
20064
+ class: Q(["", { "w-3 h-3": d.smallIcon, "w-4 h-4": !d.smallIcon }])
20065
+ }, null, 8, ["class"])) : (T(), R("span", GT, Ce(V(ll).capitalize(d.label)), 1))
20061
20066
  ], 10, JT)), 64))
20062
20067
  ])
20063
20068
  ]),
20064
- V("div", ZT, [
20065
- Oe(B(GM), { editor: B(o) }, null, 8, ["editor"])
20069
+ B("div", ZT, [
20070
+ Oe(V(GM), { editor: V(o) }, null, 8, ["editor"])
20066
20071
  ])
20067
20072
  ], 2)) : ve("", !0);
20068
20073
  }
@@ -20076,7 +20081,7 @@ const UT = /* @__PURE__ */ Te(zT, [["render", YT]]), qT = { class: "py-1 px-1 bo
20076
20081
  },
20077
20082
  setup(t) {
20078
20083
  return (e, n) => (T(), R("span", {
20079
- class: ne(["inline-flex items-center justify-center border font-medium rounded-md h-6 text-xs px-2", {
20084
+ class: Q(["inline-flex items-center justify-center border font-medium rounded-md h-6 text-xs px-2", {
20080
20085
  "bg-green-50 border-green-200 text-green-700 dark:border-green-600/30 dark:bg-green-800 dark:bg-opacity-20 dark:text-opacity-85 dark:text-green-500": t.success,
20081
20086
  "bg-yellow-50 border-yellow-200 text-yellow-700 dark:border-yellow-600/30 dark:bg-yellow-800 dark:bg-opacity-10 dark:text-opacity-85 dark:text-yellow-500": t.warning,
20082
20087
  "bg-red-50 border-red-200 text-red-700 dark:border-red-600/30 dark:bg-red-800 dark:bg-opacity-10 dark:text-opacity-85 dark:text-red-500": t.error,
@@ -22689,22 +22694,22 @@ const nf = {
22689
22694
  "wpic-tools": "bg-slate-100 rounded-r-0"
22690
22695
  };
22691
22696
  return (s, o) => (T(), R("div", {
22692
- class: ne(["relative flex items-center justify-center text-sm py-2 group", { "is-today": t.today && !t.selected, "is-selected": t.selected, "is-disabled": t.disabled, "cursor-pointer": !t.disabled }])
22697
+ class: Q(["relative flex items-center justify-center text-sm py-2 group", { "is-today": t.today && !t.selected, "is-selected": t.selected, "is-disabled": t.disabled, "cursor-pointer": !t.disabled }])
22693
22698
  }, [
22694
- V("div", {
22695
- class: ne(["h-8 w-full flex justify-center items-center", {
22696
- [`${n[B(Ce).theme]}`]: t.between,
22697
- [`${r[B(Ce).theme]}`]: t.firstDay,
22698
- [`${i[B(Ce).theme]}`]: t.lastDay
22699
+ B("div", {
22700
+ class: Q(["h-8 w-full flex justify-center items-center", {
22701
+ [`${n[V(Me).theme]}`]: t.between,
22702
+ [`${r[V(Me).theme]}`]: t.firstDay,
22703
+ [`${i[V(Me).theme]}`]: t.lastDay
22699
22704
  }]),
22700
22705
  style: Hl({ marginLeft: t.firstDay ? "50%" : void 0, marginRight: t.lastDay ? "50%" : void 0 })
22701
22706
  }, [
22702
- V("span", {
22703
- class: ne(["absolute w-8 h-8 flex items-center justify-center", [`${e[B(Ce).theme]}`]]),
22707
+ B("span", {
22708
+ class: Q(["absolute w-8 h-8 flex items-center justify-center", [`${e[V(Me).theme]}`]]),
22704
22709
  style: { left: "50%", transform: "translateX(-50%)" }
22705
22710
  }, [
22706
22711
  Pe(s.$slots, "default", {}, () => [
22707
- wt(Me(t.day), 1)
22712
+ wt(Ce(t.day), 1)
22708
22713
  ])
22709
22714
  ], 2)
22710
22715
  ], 6)
@@ -22714,7 +22719,7 @@ const nf = {
22714
22719
  xmlns: "http://www.w3.org/2000/svg",
22715
22720
  viewBox: "0 0 20 20",
22716
22721
  fill: "currentColor"
22717
- }, iA = /* @__PURE__ */ V("path", {
22722
+ }, iA = /* @__PURE__ */ B("path", {
22718
22723
  "fill-rule": "evenodd",
22719
22724
  d: "M4.72 9.47a.75.75 0 0 0 0 1.06l4.25 4.25a.75.75 0 1 0 1.06-1.06L6.31 10l3.72-3.72a.75.75 0 1 0-1.06-1.06L4.72 9.47Zm9.25-4.25L9.72 9.47a.75.75 0 0 0 0 1.06l4.25 4.25a.75.75 0 1 0 1.06-1.06L11.31 10l3.72-3.72a.75.75 0 0 0-1.06-1.06Z",
22720
22725
  "clip-rule": "evenodd"
@@ -22728,7 +22733,7 @@ const aA = /* @__PURE__ */ Te(nA, [["render", oA]]), lA = {}, uA = {
22728
22733
  xmlns: "http://www.w3.org/2000/svg",
22729
22734
  viewBox: "0 0 20 20",
22730
22735
  fill: "currentColor"
22731
- }, cA = /* @__PURE__ */ V("path", {
22736
+ }, cA = /* @__PURE__ */ B("path", {
22732
22737
  "fill-rule": "evenodd",
22733
22738
  d: "M15.28 9.47a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 1 1-1.06-1.06L13.69 10 9.97 6.28a.75.75 0 0 1 1.06-1.06l4.25 4.25ZM6.03 5.22l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L8.69 10 4.97 6.28a.75.75 0 0 1 1.06-1.06Z",
22734
22739
  "clip-rule": "evenodd"
@@ -22742,7 +22747,7 @@ const hA = /* @__PURE__ */ Te(lA, [["render", fA]]), pA = {}, mA = {
22742
22747
  xmlns: "http://www.w3.org/2000/svg",
22743
22748
  viewBox: "0 0 20 20",
22744
22749
  fill: "currentColor"
22745
- }, gA = /* @__PURE__ */ V("path", {
22750
+ }, gA = /* @__PURE__ */ B("path", {
22746
22751
  "fill-rule": "evenodd",
22747
22752
  d: "M11.78 5.22a.75.75 0 0 1 0 1.06L8.06 10l3.72 3.72a.75.75 0 1 1-1.06 1.06l-4.25-4.25a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Z",
22748
22753
  "clip-rule": "evenodd"
@@ -22756,7 +22761,7 @@ const bA = /* @__PURE__ */ Te(pA, [["render", vA]]), wA = {}, kA = {
22756
22761
  xmlns: "http://www.w3.org/2000/svg",
22757
22762
  viewBox: "0 0 20 20",
22758
22763
  fill: "currentColor"
22759
- }, xA = /* @__PURE__ */ V("path", {
22764
+ }, xA = /* @__PURE__ */ B("path", {
22760
22765
  "fill-rule": "evenodd",
22761
22766
  d: "M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",
22762
22767
  "clip-rule": "evenodd"
@@ -22780,7 +22785,7 @@ const MA = /* @__PURE__ */ Te(wA, [["render", OA]]), CA = { class: "w-full" }, T
22780
22785
  const n = t, r = Ne([D(/* @__PURE__ */ new Date()).subtract(1, "month"), D(/* @__PURE__ */ new Date())]);
22781
22786
  yr(() => {
22782
22787
  });
22783
- const i = e, s = te(() => n.doubleMonths ? [0, 1] : [0]);
22788
+ const i = e, s = ne(() => n.doubleMonths ? [0, 1] : [0]);
22784
22789
  function o(O) {
22785
22790
  var v, C, A;
22786
22791
  if (n.range) {
@@ -22790,7 +22795,7 @@ const MA = /* @__PURE__ */ Te(wA, [["render", OA]]), CA = { class: "w-full" }, T
22790
22795
  i("update:modelValue", [O]);
22791
22796
  else if (((A = n.modelValue) == null ? void 0 : A.length) == 1) {
22792
22797
  let N = [D(n.modelValue[0]), D(O)];
22793
- N = N.sort((W, ee) => W - ee), i("update:modelValue", N);
22798
+ N = N.sort((W, te) => W - te), i("update:modelValue", N);
22794
22799
  }
22795
22800
  } else
22796
22801
  i("update:modelValue", D(O));
@@ -22861,11 +22866,11 @@ const MA = /* @__PURE__ */ Te(wA, [["render", OA]]), CA = { class: "w-full" }, T
22861
22866
  O == 0 ? r.value = [v, r.value[1]] : r.value = [r.value[0], v];
22862
22867
  }
22863
22868
  return (O, v) => (T(), R("div", {
22864
- class: ne(["flex-shrink-0 flex gap-6", { "min-w-96": s.value.length === 1, "min-w-192": s.value.length === 2 }])
22869
+ class: Q(["flex-shrink-0 flex gap-6", { "min-w-96": s.value.length === 1, "min-w-192": s.value.length === 2 }])
22865
22870
  }, [
22866
22871
  (T(!0), R(xt, null, jt(s.value, (C) => (T(), R("div", CA, [
22867
- V("div", TA, [
22868
- V("div", DA, [
22872
+ B("div", TA, [
22873
+ B("div", DA, [
22869
22874
  Oe(aA, {
22870
22875
  class: "w-5 h-5 cursor-pointer select-none opacity-50 hover:opacity-100",
22871
22876
  onClick: (A) => k(C)
@@ -22875,8 +22880,8 @@ const MA = /* @__PURE__ */ Te(wA, [["render", OA]]), CA = { class: "w-full" }, T
22875
22880
  onClick: (A) => m(C)
22876
22881
  }, null, 8, ["onClick"])
22877
22882
  ]),
22878
- V("div", EA, Me(r.value[C].format("YYYY MMMM")), 1),
22879
- V("div", _A, [
22883
+ B("div", EA, Ce(r.value[C].format("YYYY MMMM")), 1),
22884
+ B("div", _A, [
22880
22885
  Oe(MA, {
22881
22886
  class: "w-5 h-5 cursor-pointer select-none opacity-50 hover:opacity-100",
22882
22887
  onClick: (A) => b(C)
@@ -22887,16 +22892,16 @@ const MA = /* @__PURE__ */ Te(wA, [["render", OA]]), CA = { class: "w-full" }, T
22887
22892
  }, null, 8, ["onClick"])
22888
22893
  ])
22889
22894
  ]),
22890
- V("div", AA, [
22895
+ B("div", AA, [
22891
22896
  (T(), R(xt, null, jt(7, (A) => {
22892
22897
  var N;
22893
- return V("div", NA, Me((N = r.value[C]) == null ? void 0 : N.clone().startOf("week").subtract(1, "days").add(A, "days").format("ddd")), 1);
22898
+ return B("div", NA, Ce((N = r.value[C]) == null ? void 0 : N.clone().startOf("week").subtract(1, "days").add(A, "days").format("ddd")), 1);
22894
22899
  }), 64))
22895
22900
  ]),
22896
- V("div", PA, [
22901
+ B("div", PA, [
22897
22902
  l(r.value[C]) > 0 ? (T(!0), R(xt, { key: 0 }, jt(l(r.value[C]), (A) => (T(), Ve(nf, { disabled: "" }, {
22898
22903
  default: je(() => [
22899
- wt(Me(u(r.value[C]).clone().endOf("month").subtract(l(r.value[C]) - A, "days").format("D")), 1)
22904
+ wt(Ce(u(r.value[C]).clone().endOf("month").subtract(l(r.value[C]) - A, "days").format("D")), 1)
22900
22905
  ]),
22901
22906
  _: 2
22902
22907
  }, 1024))), 256)) : ve("", !0),
@@ -22910,7 +22915,7 @@ const MA = /* @__PURE__ */ Te(wA, [["render", OA]]), CA = { class: "w-full" }, T
22910
22915
  disabled: g(A)
22911
22916
  }, {
22912
22917
  default: je(() => [
22913
- wt(Me(B(D)(A).format("D")), 1)
22918
+ wt(Ce(V(D)(A).format("D")), 1)
22914
22919
  ]),
22915
22920
  _: 2
22916
22921
  }, 1032, ["onClick", "today", "selected", "firstDay", "lastDay", "between", "disabled"]))), 256))
@@ -22924,7 +22929,7 @@ const MA = /* @__PURE__ */ Te(wA, [["render", OA]]), CA = { class: "w-full" }, T
22924
22929
  viewBox: "0 0 24 24",
22925
22930
  "stroke-width": "1.5",
22926
22931
  stroke: "currentColor"
22927
- }, VA = /* @__PURE__ */ V("path", {
22932
+ }, VA = /* @__PURE__ */ B("path", {
22928
22933
  "stroke-linecap": "round",
22929
22934
  "stroke-linejoin": "round",
22930
22935
  d: "M6.75 2.994v2.25m10.5-2.25v2.25m-14.252 13.5V7.491a2.25 2.25 0 0 1 2.25-2.25h13.5a2.25 2.25 0 0 1 2.25 2.25v11.251m-18 0a2.25 2.25 0 0 0 2.25 2.25h13.5a2.25 2.25 0 0 0 2.25-2.25m-18 0v-7.5a2.25 2.25 0 0 1 2.25-2.25h13.5a2.25 2.25 0 0 1 2.25 2.25v7.5m-6.75-6h2.25m-9 2.25h4.5m.002-2.25h.005v.006H12v-.006Zm-.001 4.5h.006v.006h-.006v-.005Zm-2.25.001h.005v.006H9.75v-.006Zm-2.25 0h.005v.005h-.006v-.005Zm6.75-2.247h.005v.005h-.005v-.005Zm0 2.247h.006v.006h-.006v-.006Zm2.25-2.248h.006V15H16.5v-.005Z"
@@ -22940,7 +22945,7 @@ const FA = /* @__PURE__ */ Te(RA, [["render", LA]]), zA = {}, jA = {
22940
22945
  viewBox: "0 0 24 24",
22941
22946
  "stroke-width": "1.5",
22942
22947
  stroke: "currentColor"
22943
- }, WA = /* @__PURE__ */ V("path", {
22948
+ }, WA = /* @__PURE__ */ B("path", {
22944
22949
  "stroke-linecap": "round",
22945
22950
  "stroke-linejoin": "round",
22946
22951
  d: "M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5m-9-6h.008v.008H12v-.008ZM12 15h.008v.008H12V15Zm0 2.25h.008v.008H12v-.008ZM9.75 15h.008v.008H9.75V15Zm0 2.25h.008v.008H9.75v-.008ZM7.5 15h.008v.008H7.5V15Zm0 2.25h.008v.008H7.5v-.008Zm6.75-4.5h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V15Zm0 2.25h.008v.008h-.008v-.008Zm2.25-4.5h.008v.008H16.5v-.008Zm0 2.25h.008v.008H16.5V15Z"
@@ -22974,7 +22979,7 @@ const UA = /* @__PURE__ */ Te(zA, [["render", YA]]), qA = {
22974
22979
  function i(o) {
22975
22980
  r("update:modelValue", o);
22976
22981
  }
22977
- const s = te(() => {
22982
+ const s = ne(() => {
22978
22983
  var o;
22979
22984
  if (n.range)
22980
22985
  return (o = n.modelValue) == null ? void 0 : o.map((a) => D(a).format("YYYY-MM-DD")).join(" to ");
@@ -23006,7 +23011,7 @@ const UA = /* @__PURE__ */ Te(zA, [["render", YA]]), qA = {
23006
23011
  t.range ? (T(), Ve(FA, { key: 0 })) : (T(), Ve(UA, { key: 1 }))
23007
23012
  ]),
23008
23013
  default: je(() => [
23009
- wt(" " + Me(s.value || t.placeholder), 1)
23014
+ wt(" " + Ce(s.value || t.placeholder), 1)
23010
23015
  ]),
23011
23016
  _: 1
23012
23017
  }, 8, ["label", "disabled", "large", "info", "clearable"])
@@ -23021,7 +23026,7 @@ function Lm(t, e) {
23021
23026
  Object.prototype.hasOwnProperty.call(e, n) && (typeof e[n] == "object" && t[n] ? Lm(t[n], e[n]) : t[n] = e[n]);
23022
23027
  }
23023
23028
  function JA(t, e) {
23024
- Lm(Ce, e);
23029
+ Lm(Me, e);
23025
23030
  for (const n in Qa)
23026
23031
  if (Qa.hasOwnProperty(n)) {
23027
23032
  const r = Qa[n];
@@ -23030,7 +23035,7 @@ function JA(t, e) {
23030
23035
  }
23031
23036
  const XA = {
23032
23037
  install: JA,
23033
- options: Ce
23038
+ options: Me
23034
23039
  };
23035
23040
  export {
23036
23041
  XA as default