@romainbx/wpic-components 0.0.114 → 0.0.115

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 { defineComponent as xn, inject as Ci, computed as ae, toValue as Ve, toRef as Pr, resolveDynamicComponent as Wi, h as Ut, getCurrentInstance as dn, ref as se, reactive as vr, unref as W, onMounted as Sn, isRef as Ts, watch as Qe, provide as bo, readonly as O0, onBeforeUnmount as ni, watchEffect as kh, nextTick as _t, shallowRef as rl, warn as C0, onUnmounted as Wo, createElementBlock as L, openBlock as S, createElementVNode as F, createVNode as ve, normalizeClass as re, createCommentVNode as ce, createBlock as Te, withCtx as Ae, renderSlot as Fe, createTextVNode as tt, toDisplayString as Ee, Fragment as je, renderList as ut, withModifiers as Ei, Teleport as xh, normalizeStyle as Un, onBeforeMount as E0, Text as T0, withDirectives as Ti, vModelText as va, vShow as ba, resolveComponent as _s, createStaticVNode as il, pushScopeId as _0, popScopeId as M0, useSlots as Sh, markRaw as N0, customRef as A0 } from "vue";
1
+ import { defineComponent as xn, inject as Ci, computed as ae, toValue as Ve, toRef as Pr, resolveDynamicComponent as Wi, h as Ut, getCurrentInstance as dn, ref as se, reactive as vr, unref as U, onMounted as Sn, isRef as Ts, watch as Qe, provide as bo, readonly as O0, onBeforeUnmount as ni, watchEffect as kh, nextTick as _t, shallowRef as rl, warn as C0, onUnmounted as Wo, createElementBlock as L, openBlock as S, createElementVNode as F, createVNode as ve, normalizeClass as re, createCommentVNode as ce, createBlock as Te, withCtx as Ae, renderSlot as Fe, createTextVNode as tt, toDisplayString as Ee, Fragment as je, renderList as ut, withModifiers as Ei, Teleport as xh, normalizeStyle as Un, onBeforeMount as E0, Text as T0, withDirectives as Ti, vModelText as va, vShow as ba, resolveComponent as _s, createStaticVNode as il, pushScopeId as _0, popScopeId as M0, useSlots as Sh, markRaw as N0, customRef as A0 } from "vue";
2
2
  function L0() {
3
3
  return Oh().__VUE_DEVTOOLS_GLOBAL_HOOK__;
4
4
  }
@@ -664,7 +664,7 @@ function py(t, e) {
664
664
  }), s = ae(() => o.errors);
665
665
  function l(a) {
666
666
  var c, u, d;
667
- "value" in a && (n.value = a.value), "errors" in a && ((c = e.form) === null || c === void 0 || c.setFieldError(W(t), a.errors)), "touched" in a && ((u = e.form) === null || u === void 0 || u.setFieldTouched(W(t), (d = a.touched) !== null && d !== void 0 ? d : !1)), "initialValue" in a && i(a.initialValue);
667
+ "value" in a && (n.value = a.value), "errors" in a && ((c = e.form) === null || c === void 0 || c.setFieldError(U(t), a.errors)), "touched" in a && ((u = e.form) === null || u === void 0 || u.setFieldTouched(U(t), (d = a.touched) !== null && d !== void 0 ? d : !1)), "initialValue" in a && i(a.initialValue);
668
668
  }
669
669
  return {
670
670
  id: Array.isArray(o.id) ? o.id[o.id.length - 1] : o.id,
@@ -678,16 +678,16 @@ function py(t, e) {
678
678
  };
679
679
  }
680
680
  function my(t, e, n) {
681
- const r = se(W(e));
681
+ const r = se(U(e));
682
682
  function i() {
683
- return n ? Wt(n.initialValues.value, W(t), W(r)) : W(r);
683
+ return n ? Wt(n.initialValues.value, U(t), U(r)) : U(r);
684
684
  }
685
685
  function o(c) {
686
686
  if (!n) {
687
687
  r.value = c;
688
688
  return;
689
689
  }
690
- n.setFieldInitialValue(W(t), c, !0);
690
+ n.setFieldInitialValue(U(t), c, !0);
691
691
  }
692
692
  const s = ae(i);
693
693
  if (!n)
@@ -697,13 +697,13 @@ function my(t, e, n) {
697
697
  setInitialValue: o
698
698
  };
699
699
  const l = gy(e, n, s, t);
700
- return n.stageInitialValue(W(t), l, !0), {
700
+ return n.stageInitialValue(U(t), l, !0), {
701
701
  value: ae({
702
702
  get() {
703
- return Wt(n.values, W(t));
703
+ return Wt(n.values, U(t));
704
704
  },
705
705
  set(c) {
706
- n.setFieldValue(W(t), c, !1);
706
+ n.setFieldValue(U(t), c, !1);
707
707
  }
708
708
  }),
709
709
  initialValue: s,
@@ -711,7 +711,7 @@ function my(t, e, n) {
711
711
  };
712
712
  }
713
713
  function gy(t, e, n, r) {
714
- return Ts(t) ? W(t) : t !== void 0 ? t : Wt(e.values, W(r), W(n));
714
+ return Ts(t) ? U(t) : t !== void 0 ? t : Wt(e.values, U(r), U(n));
715
715
  }
716
716
  function yy(t, e, n, r) {
717
717
  const i = ae(() => {
@@ -722,9 +722,9 @@ function yy(t, e, n, r) {
722
722
  pending: !1,
723
723
  valid: !0,
724
724
  required: i,
725
- validated: !!W(n).length,
726
- initialValue: ae(() => W(e)),
727
- dirty: ae(() => !$t(W(t), W(e)))
725
+ validated: !!U(n).length,
726
+ initialValue: ae(() => U(e)),
727
+ dirty: ae(() => !$t(U(t), U(e)))
728
728
  });
729
729
  return Qe(n, (s) => {
730
730
  o.valid = !s.length;
@@ -874,7 +874,7 @@ function ky(t) {
874
874
  function xy(t) {
875
875
  const { textColor: e, bgColor: n } = Rh(t.meta.value.valid), r = {};
876
876
  Object.values(t.getAllPathStates()).forEach((s) => {
877
- Fn(r, W(s.path), Sy(s, t));
877
+ Fn(r, U(s.path), Sy(s, t));
878
878
  });
879
879
  function i(s, l = []) {
880
880
  const a = [...l].pop();
@@ -910,14 +910,14 @@ function xy(t) {
910
910
  function Sy(t, e) {
911
911
  return {
912
912
  id: kc(e, t),
913
- label: W(t.path),
913
+ label: U(t.path),
914
914
  tags: Ph(t.multiple, t.fieldsCount, t.type, t.valid, e)
915
915
  };
916
916
  }
917
917
  function Oy(t, e) {
918
918
  return {
919
919
  id: kc(e, t),
920
- label: W(t.name),
920
+ label: U(t.name),
921
921
  tags: Ph(!1, 1, t.type, t.meta.valid, e)
922
922
  };
923
923
  }
@@ -952,7 +952,7 @@ function Ph(t, e, n, r, i) {
952
952
  ].filter(Boolean);
953
953
  }
954
954
  function kc(t, e) {
955
- const n = e ? "path" in e ? "pathState" : "field" : "form", r = e ? "path" in e ? e == null ? void 0 : e.path : W(e == null ? void 0 : e.name) : "", i = { f: t == null ? void 0 : t.formId, ff: r, type: n };
955
+ const n = e ? "path" in e ? "pathState" : "field" : "form", r = e ? "path" in e ? e == null ? void 0 : e.path : U(e == null ? void 0 : e.name) : "", i = { f: t == null ? void 0 : t.formId, ff: r, type: n };
956
956
  return btoa(encodeURIComponent(JSON.stringify(i)));
957
957
  }
958
958
  function Cy(t) {
@@ -1064,7 +1064,7 @@ function Vh(t, e, n) {
1064
1064
  const { initialValue: r, validateOnMount: i, bails: o, type: s, checkedValue: l, label: a, validateOnValueUpdate: c, uncheckedValue: u, controlled: d, keepValueOnUnmount: f, syncVModel: h, form: p } = _y(n), m = d ? bc(Uo) : void 0, g = p || m, v = ae(() => oo(Ve(t))), k = ae(() => {
1065
1065
  if (Ve(g == null ? void 0 : g.schema))
1066
1066
  return;
1067
- const Y = W(e);
1067
+ const Y = U(e);
1068
1068
  return Ns(Y) || yn(Y) || pt(Y) || Array.isArray(Y) ? Y : Ah(Y);
1069
1069
  }), b = !pt(k.value) && yn(Ve(e)), { id: y, value: C, initialValue: w, meta: T, setState: $, errors: A, flags: B } = py(v, {
1070
1070
  modelValue: r,
@@ -1084,7 +1084,7 @@ function Vh(t, e, n) {
1084
1084
  const I = (J, Y = !1) => {
1085
1085
  T.touched = !0, Y && z();
1086
1086
  };
1087
- async function U(J) {
1087
+ async function W(J) {
1088
1088
  var Y, ye;
1089
1089
  if (g != null && g.validateSchema) {
1090
1090
  const { results: me } = await g.validateSchema(J);
@@ -1097,7 +1097,7 @@ function Vh(t, e, n) {
1097
1097
  bails: o
1098
1098
  }) : { valid: !0, errors: [] };
1099
1099
  }
1100
- const z = xa(async () => (T.pending = !0, T.validated = !0, U("validated-only")), (J) => (B.pendingUnmount[q.id] || ($({ errors: J.errors }), T.pending = !1, T.valid = J.valid), J)), D = xa(async () => U("silent"), (J) => (T.valid = J.valid, J));
1100
+ const z = xa(async () => (T.pending = !0, T.validated = !0, W("validated-only")), (J) => (B.pendingUnmount[q.id] || ($({ errors: J.errors }), T.pending = !1, T.valid = J.valid), J)), D = xa(async () => W("silent"), (J) => (T.valid = J.valid, J));
1101
1101
  function O(J) {
1102
1102
  return (J == null ? void 0 : J.mode) === "silent" ? D() : z();
1103
1103
  }
@@ -1160,7 +1160,7 @@ function Vh(t, e, n) {
1160
1160
  setErrors: be,
1161
1161
  setValue: ge
1162
1162
  };
1163
- if (bo(Th, q), Ts(e) && typeof W(e) != "function" && Qe(e, (J, Y) => {
1163
+ if (bo(Th, q), Ts(e) && typeof U(e) != "function" && Qe(e, (J, Y) => {
1164
1164
  $t(J, Y) || (T.validated ? z() : D());
1165
1165
  }, {
1166
1166
  deep: !0
@@ -1362,7 +1362,7 @@ const Ay = /* @__PURE__ */ xn({
1362
1362
  function I(O) {
1363
1363
  f(O, B), pt(e.attrs.onBlur) && e.attrs.onBlur(O);
1364
1364
  }
1365
- function U(O) {
1365
+ function W(O) {
1366
1366
  b(O, $), pt(e.attrs.onInput) && e.attrs.onInput(O);
1367
1367
  }
1368
1368
  function z(O) {
@@ -1371,7 +1371,7 @@ const Ay = /* @__PURE__ */ xn({
1371
1371
  const D = {
1372
1372
  name: t.name,
1373
1373
  onBlur: I,
1374
- onInput: U,
1374
+ onInput: W,
1375
1375
  onChange: z
1376
1376
  };
1377
1377
  return D["onUpdate:modelValue"] = (O) => b(O, P), D;
@@ -1436,7 +1436,7 @@ const Lr = Ay;
1436
1436
  let Iy = 0;
1437
1437
  const ss = ["bails", "fieldsCount", "id", "multiple", "type", "validate"];
1438
1438
  function Bh(t) {
1439
- const e = (t == null ? void 0 : t.initialValues) || {}, n = Object.assign({}, Ve(e)), r = W(t == null ? void 0 : t.validationSchema);
1439
+ const e = (t == null ? void 0 : t.initialValues) || {}, n = Object.assign({}, Ve(e)), r = U(t == null ? void 0 : t.validationSchema);
1440
1440
  return r && yn(r) && pt(r.cast) ? Ye(r.cast(n) || {}) : Ye(n);
1441
1441
  }
1442
1442
  function $y(t) {
@@ -1515,7 +1515,7 @@ function $y(t) {
1515
1515
  },
1516
1516
  fieldsCount: 1,
1517
1517
  validate: N == null ? void 0 : N.validate,
1518
- dirty: ae(() => !$t(W(ue), W(we)))
1518
+ dirty: ae(() => !$t(U(ue), U(we)))
1519
1519
  });
1520
1520
  return c.value.push(it), d.value[Se] = it, f(), g.value[Se] && !b[Se] && _t(() => {
1521
1521
  Et(Se, { mode: "silent" });
@@ -1527,7 +1527,7 @@ function $y(t) {
1527
1527
  });
1528
1528
  }), it;
1529
1529
  }
1530
- const I = Cu(fe, 5), U = Cu(fe, 5), z = xa(async (_) => await (_ === "silent" ? I() : U()), (_, [N]) => {
1530
+ const I = Cu(fe, 5), W = Cu(fe, 5), z = xa(async (_) => await (_ === "silent" ? I() : W()), (_, [N]) => {
1531
1531
  const G = Ht(J.errorBag.value), we = [
1532
1532
  .../* @__PURE__ */ new Set([...Ht(_.results), ...c.value.map((M) => M.path), ...G])
1533
1533
  ].sort().reduce((M, te) => {
@@ -1626,7 +1626,7 @@ function $y(t) {
1626
1626
  isValidating: o,
1627
1627
  fieldArrays: l,
1628
1628
  keepValuesOnUnmount: y,
1629
- validateSchema: W(B) ? z : void 0,
1629
+ validateSchema: U(B) ? z : void 0,
1630
1630
  validate: wt,
1631
1631
  setFieldError: h,
1632
1632
  validateField: Et,
@@ -1774,7 +1774,7 @@ function $y(t) {
1774
1774
  Fn(C.value, _, Ye(N)), G && Fn(w.value, _, Ye(N));
1775
1775
  }
1776
1776
  async function fe() {
1777
- const _ = W(B);
1777
+ const _ = U(B);
1778
1778
  if (!_)
1779
1779
  return { valid: !0, results: {}, errors: {} };
1780
1780
  o.value = !0;
@@ -1870,7 +1870,7 @@ function Py(t, e, n, r) {
1870
1870
  touched: "some",
1871
1871
  pending: "some",
1872
1872
  valid: "every"
1873
- }, o = ae(() => !$t(e, W(n)));
1873
+ }, o = ae(() => !$t(e, U(n)));
1874
1874
  function s() {
1875
1875
  const a = t.value;
1876
1876
  return Ht(i).reduce((c, u) => {
@@ -1882,7 +1882,7 @@ function Py(t, e, n, r) {
1882
1882
  return kh(() => {
1883
1883
  const a = s();
1884
1884
  l.touched = a.touched, l.valid = a.valid, l.pending = a.pending;
1885
- }), ae(() => Object.assign(Object.assign({ initialValues: W(n) }, l), { valid: l.valid && !Ht(r.value).length, dirty: o.value }));
1885
+ }), ae(() => Object.assign(Object.assign({ initialValues: U(n) }, l), { valid: l.valid && !Ht(r.value).length, dirty: o.value }));
1886
1886
  }
1887
1887
  function Ry(t, e, n) {
1888
1888
  const r = Bh(n), i = se(r), o = se(Ye(r));
@@ -1967,7 +1967,7 @@ const By = /* @__PURE__ */ xn({
1967
1967
  function I() {
1968
1968
  return Ye(s);
1969
1969
  }
1970
- function U() {
1970
+ function W() {
1971
1971
  return Ye(l.value);
1972
1972
  }
1973
1973
  function z() {
@@ -1997,7 +1997,7 @@ const By = /* @__PURE__ */ xn({
1997
1997
  resetForm: m,
1998
1998
  resetField: T,
1999
1999
  getValues: I,
2000
- getMeta: U,
2000
+ getMeta: W,
2001
2001
  getErrors: z
2002
2002
  };
2003
2003
  }
@@ -2013,7 +2013,7 @@ const By = /* @__PURE__ */ xn({
2013
2013
  validateField: h,
2014
2014
  resetField: T,
2015
2015
  getValues: I,
2016
- getMeta: U,
2016
+ getMeta: W,
2017
2017
  getErrors: z,
2018
2018
  values: s,
2019
2019
  meta: l,
@@ -2215,16 +2215,16 @@ const i1 = ["is", "type", "disabled"], o1 = {
2215
2215
  "cursor-not-allowed": t.disabled && !t.hideDisabled,
2216
2216
  "": t.outline && !t.plain,
2217
2217
  "ring-0!": !t.outline,
2218
- [`${l[W(ke).theme]}`]: !0,
2219
- [`${u[W(ke).theme]}`]: t.primary && !t.plain && !t.inverse,
2220
- [`${d[W(ke).theme]}`]: t.secondary,
2221
- [`${h[W(ke).theme]}`]: !t.primary && !t.secondary && !t.plain && !t.colorless && !t.destructive,
2222
- [`${p[W(ke).theme]}`]: t.primary && t.plain,
2223
- [`${g[W(ke).theme]}`]: !t.primary && !t.destructive && t.plain,
2224
- [`${a[W(ke).theme]}`]: t.colorless,
2225
- [`${f[W(ke).theme]}`]: t.destructive && !t.plain && !t.colorless,
2226
- [`${m[W(ke).theme]}`]: t.destructive && t.plain,
2227
- [`${c[W(ke).theme]}`]: t.destructive && t.colorless,
2218
+ [`${l[U(ke).theme]}`]: !0,
2219
+ [`${u[U(ke).theme]}`]: t.primary && !t.plain && !t.inverse,
2220
+ [`${d[U(ke).theme]}`]: t.secondary,
2221
+ [`${h[U(ke).theme]}`]: !t.primary && !t.secondary && !t.plain && !t.colorless && !t.destructive,
2222
+ [`${p[U(ke).theme]}`]: t.primary && t.plain,
2223
+ [`${g[U(ke).theme]}`]: !t.primary && !t.destructive && t.plain,
2224
+ [`${a[U(ke).theme]}`]: t.colorless,
2225
+ [`${f[U(ke).theme]}`]: t.destructive && !t.plain && !t.colorless,
2226
+ [`${m[U(ke).theme]}`]: t.destructive && t.plain,
2227
+ [`${c[U(ke).theme]}`]: t.destructive && t.colorless,
2228
2228
  "bg-zinc-50 border-violet-800 text-violet-800": t.primary && t.inverse,
2229
2229
  "hover:bg-white": t.primary && t.inverse && !t.disabled && !t.loading,
2230
2230
  "w-full": t.full,
@@ -2281,7 +2281,7 @@ const i1 = ["is", "type", "disabled"], o1 = {
2281
2281
  "wpic-tools": "border-gray-300"
2282
2282
  };
2283
2283
  return (n, r) => (S(), L("div", {
2284
- class: re(["wpic-button-group flex flex-wrap h-10", [e[W(ke).theme]]])
2284
+ class: re(["wpic-button-group flex flex-wrap h-10", [e[U(ke).theme]]])
2285
2285
  }, [
2286
2286
  Fe(n.$slots, "default")
2287
2287
  ], 2));
@@ -2316,7 +2316,7 @@ const p1 = /* @__PURE__ */ Me(d1, [["render", h1]]), m1 = {
2316
2316
  resetForm: i,
2317
2317
  getForm: o,
2318
2318
  errors: s
2319
- }), (l, a) => (S(), Te(W(Fy), {
2319
+ }), (l, a) => (S(), Te(U(Fy), {
2320
2320
  ref_key: "myForm",
2321
2321
  ref: n
2322
2322
  }, {
@@ -2609,7 +2609,7 @@ const C1 = (t) => ({
2609
2609
  }, h = Sc(i), p = xc(h), m = await s.getDimensions(c), g = h === "y", v = g ? "top" : "left", k = g ? "bottom" : "right", b = g ? "clientHeight" : "clientWidth", y = o.reference[p] + o.reference[h] - f[h] - o.floating[p], C = f[h] - o.reference[h], w = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
2610
2610
  let T = w ? w[b] : 0;
2611
2611
  (!T || !await (s.isElement == null ? void 0 : s.isElement(w))) && (T = l.floating[b] || o.floating[p]);
2612
- const $ = y / 2 - C / 2, A = T / 2 - m[p] / 2 - 1, B = xo(d[v], A), P = xo(d[k], A), I = B, U = T - m[p] - P, z = T / 2 - m[p] / 2 + $, D = Ca(I, z, U), O = !a.arrow && Ko(i) != null && z !== D && o.reference[p] / 2 - (z < I ? B : P) - m[p] / 2 < 0, R = O ? z < I ? z - I : z - U : 0;
2612
+ const $ = y / 2 - C / 2, A = T / 2 - m[p] / 2 - 1, B = xo(d[v], A), P = xo(d[k], A), I = B, W = T - m[p] - P, z = T / 2 - m[p] / 2 + $, D = Ca(I, z, W), O = !a.arrow && Ko(i) != null && z !== D && o.reference[p] / 2 - (z < I ? B : P) - m[p] / 2 < 0, R = O ? z < I ? z - I : z - W : 0;
2613
2613
  return {
2614
2614
  [h]: f[h] + R,
2615
2615
  data: {
@@ -2659,15 +2659,15 @@ const C1 = (t) => ({
2659
2659
  overflows: T
2660
2660
  }], !T.every((I) => I <= 0)) {
2661
2661
  var A, B;
2662
- const I = (((A = o.flip) == null ? void 0 : A.index) || 0) + 1, U = C[I];
2663
- if (U)
2662
+ const I = (((A = o.flip) == null ? void 0 : A.index) || 0) + 1, W = C[I];
2663
+ if (W)
2664
2664
  return {
2665
2665
  data: {
2666
2666
  index: I,
2667
2667
  overflows: $
2668
2668
  },
2669
2669
  reset: {
2670
- placement: U
2670
+ placement: W
2671
2671
  }
2672
2672
  };
2673
2673
  let z = (B = $.filter((D) => D.overflows[0] <= 0).sort((D, O) => D.overflows[1] - O.overflows[1])[0]) == null ? void 0 : B.placement;
@@ -3184,7 +3184,7 @@ function J1(t) {
3184
3184
  name: "arrow",
3185
3185
  options: t,
3186
3186
  fn(e) {
3187
- const n = G1(W(t.element));
3187
+ const n = G1(U(t.element));
3188
3188
  return n == null ? {} : q1({
3189
3189
  element: n,
3190
3190
  padding: t.padding
@@ -3333,7 +3333,7 @@ const lv = {
3333
3333
  return e({ hide: f }), (v, k) => (S(), L(je, null, [
3334
3334
  (S(), L("div", {
3335
3335
  class: "flex-1",
3336
- key: `reference_${W(r)}`,
3336
+ key: `reference_${U(r)}`,
3337
3337
  ref_key: "reference",
3338
3338
  ref: l,
3339
3339
  onMouseenter: m,
@@ -3343,17 +3343,17 @@ const lv = {
3343
3343
  Fe(v.$slots, "default", { isHidden: c.value })
3344
3344
  ], 32)),
3345
3345
  (S(), Te(xh, {
3346
- to: W(ke).popoverTarget
3346
+ to: U(ke).popoverTarget
3347
3347
  }, [
3348
3348
  (S(), L("div", {
3349
- key: `floating_${W(r)}`,
3349
+ key: `floating_${U(r)}`,
3350
3350
  ref_key: "floating",
3351
3351
  ref: a,
3352
3352
  style: Un({ maxWidth: t.maxWidth }),
3353
3353
  class: re(["z-30 rounded-md overflow-hidden", {
3354
3354
  [`${t.customWidth}`]: !0,
3355
3355
  hidden: c.value,
3356
- [`${s[W(ke).theme]}`]: !c.value,
3356
+ [`${s[U(ke).theme]}`]: !c.value,
3357
3357
  "bg-transparent!": t.transparent,
3358
3358
  "border-none!": t.noBorder,
3359
3359
  "shadow-none": t.noShadow,
@@ -3736,7 +3736,7 @@ function Iv(t, e = {}) {
3736
3736
  }, fe = K();
3737
3737
  return E && x.resetPeek(), fe;
3738
3738
  }
3739
- function U(x, E) {
3739
+ function W(x, E) {
3740
3740
  const K = x.currentChar();
3741
3741
  return K === nr ? nr : E(K) ? (x.next(), K) : null;
3742
3742
  }
@@ -3749,7 +3749,7 @@ function Iv(t, e = {}) {
3749
3749
  E === 36;
3750
3750
  }
3751
3751
  function D(x) {
3752
- return U(x, z);
3752
+ return W(x, z);
3753
3753
  }
3754
3754
  function O(x) {
3755
3755
  const E = x.charCodeAt(0);
@@ -3761,14 +3761,14 @@ function Iv(t, e = {}) {
3761
3761
  E === 45;
3762
3762
  }
3763
3763
  function R(x) {
3764
- return U(x, O);
3764
+ return W(x, O);
3765
3765
  }
3766
3766
  function j(x) {
3767
3767
  const E = x.charCodeAt(0);
3768
3768
  return E >= 48 && E <= 57;
3769
3769
  }
3770
3770
  function ie(x) {
3771
- return U(x, j);
3771
+ return W(x, j);
3772
3772
  }
3773
3773
  function oe(x) {
3774
3774
  const E = x.charCodeAt(0);
@@ -3777,7 +3777,7 @@ function Iv(t, e = {}) {
3777
3777
  E >= 97 && E <= 102;
3778
3778
  }
3779
3779
  function ge(x) {
3780
- return U(x, oe);
3780
+ return W(x, oe);
3781
3781
  }
3782
3782
  function be(x) {
3783
3783
  let E = "", K = "";
@@ -3832,7 +3832,7 @@ function Iv(t, e = {}) {
3832
3832
  function ye(x) {
3833
3833
  g(x), p(x, "'");
3834
3834
  let E = "", K = "";
3835
- for (; E = U(x, Y); )
3835
+ for (; E = W(x, Y); )
3836
3836
  E === "\\" ? K += me(x) : K += E;
3837
3837
  const fe = x.currentChar();
3838
3838
  return fe === Dt || fe === nr ? (d(Ce.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), fe === Dt && (x.next(), p(x, "'")), K) : (p(x, "'"), K);
@@ -3870,7 +3870,7 @@ function Iv(t, e = {}) {
3870
3870
  function Je(x) {
3871
3871
  g(x);
3872
3872
  let E = "", K = "";
3873
- for (; E = U(x, He); )
3873
+ for (; E = W(x, He); )
3874
3874
  K += E;
3875
3875
  return K;
3876
3876
  }
@@ -4137,8 +4137,8 @@ function Vv(t = {}) {
4137
4137
  I.value == null && i(b, Ce.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, mn(I)), T.items.push(d(b, I.value || ""));
4138
4138
  break;
4139
4139
  case 8: {
4140
- const U = p(b);
4141
- T.items.push(U.node), $ = U.nextConsumeToken || null;
4140
+ const W = p(b);
4141
+ T.items.push(W.node), $ = W.nextConsumeToken || null;
4142
4142
  break;
4143
4143
  }
4144
4144
  }
@@ -5238,14 +5238,14 @@ function Qu(t, ...e) {
5238
5238
  return y;
5239
5239
  const A = Yb(t, k, b, c), B = bb(A), P = zb(t, $, B), I = r ? r(P, a) : P;
5240
5240
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
5241
- const U = {
5241
+ const W = {
5242
5242
  timestamp: Date.now(),
5243
5243
  key: he(a) ? a : ln(y) ? y.key : "",
5244
5244
  locale: k || (ln(y) ? y.locale : ""),
5245
5245
  format: he(y) ? y : ln(y) ? y.source : "",
5246
5246
  message: I
5247
5247
  };
5248
- U.meta = Nt({}, t.__meta, /* @__PURE__ */ Ib() || {}), xb(U);
5248
+ W.meta = Nt({}, t.__meta, /* @__PURE__ */ Ib() || {}), xb(W);
5249
5249
  }
5250
5250
  return I;
5251
5251
  }
@@ -5816,7 +5816,7 @@ function t2(t = {}, e) {
5816
5816
  set: (H) => {
5817
5817
  c.value = H, A.locale = c.value;
5818
5818
  }
5819
- }), U = ae({
5819
+ }), W = ae({
5820
5820
  get: () => u.value,
5821
5821
  set: (H) => {
5822
5822
  u.value = H, A.fallbackLocale = u.value, Qi(A, c.value, H);
@@ -6005,7 +6005,7 @@ function t2(t = {}, e) {
6005
6005
  const Re = {
6006
6006
  id: ad,
6007
6007
  locale: I,
6008
- fallbackLocale: U,
6008
+ fallbackLocale: W,
6009
6009
  get inheritLocale() {
6010
6010
  return a;
6011
6011
  },
@@ -6269,7 +6269,7 @@ function d2(t, e, n, r = {}) {
6269
6269
  function I() {
6270
6270
  return o.value ? o.value.getPostTranslationHandler() : v;
6271
6271
  }
6272
- function U(ne) {
6272
+ function W(ne) {
6273
6273
  o.value && o.value.setPostTranslationHandler(ne);
6274
6274
  }
6275
6275
  function z() {
@@ -6391,7 +6391,7 @@ function d2(t, e, n, r = {}) {
6391
6391
  },
6392
6392
  t: R,
6393
6393
  getPostTranslationHandler: I,
6394
- setPostTranslationHandler: U,
6394
+ setPostTranslationHandler: W,
6395
6395
  getMissingHandler: z,
6396
6396
  setMissingHandler: D,
6397
6397
  rt: j,
@@ -6534,11 +6534,11 @@ const Pc = /* @__PURE__ */ Me(y2, [["render", k2]]), x2 = {
6534
6534
  "border-b": t.material,
6535
6535
  "pl-4": !s.$slots.prepend,
6536
6536
  "pl-8": s.$slots.prepend,
6537
- [`${n[W(ke).theme]}`]: !0,
6537
+ [`${n[U(ke).theme]}`]: !0,
6538
6538
  "h-8 text-sm": t.small,
6539
6539
  "h-10": !t.large && !t.small,
6540
6540
  "h-12": t.large,
6541
- [`${r[W(ke).theme]}`]: t.disabled,
6541
+ [`${r[U(ke).theme]}`]: t.disabled,
6542
6542
  "cursor-pointer": !t.disabled,
6543
6543
  "border-red-600! focus-within:outline-red-600": t.invalid
6544
6544
  }])
@@ -7245,28 +7245,37 @@ const Px = /* @__PURE__ */ Me(Ax, [["render", $x]]), Rx = {
7245
7245
  () => r.placeholder === "Select..." ? i("wpiccomponents.placeholder_select") : r.placeholder
7246
7246
  ), s = se(!1), l = se(r.options);
7247
7247
  Qe(() => r.options, () => {
7248
- const U = [...(Array.isArray(r.modelValue) ? r.modelValue : r.modelValue !== null && r.modelValue !== void 0 ? [r.modelValue] : []).map((z) => l.value.find((D) => to(D.value, z)) || r.options.find((D) => to(D.value, z))).filter(Boolean)];
7249
- for (const z of r.options)
7250
- U.some((D) => to(D.value, z.value)) || U.push(z);
7251
- l.value = U;
7248
+ const I = (Array.isArray(r.modelValue) ? r.modelValue : r.modelValue !== null && r.modelValue !== void 0 ? [r.modelValue] : []).map((W) => l.value.find((z) => to(z.value, W)) || r.options.find((z) => to(z.value, W))).filter(Boolean);
7249
+ if (!r.groupSelected || !r.multiple) {
7250
+ const W = /* @__PURE__ */ new Set();
7251
+ l.value = [...r.options, ...I].filter((z) => {
7252
+ const D = JSON.stringify(z.value);
7253
+ return W.has(D) ? !1 : (W.add(D), !0);
7254
+ });
7255
+ } else {
7256
+ const W = [...I];
7257
+ for (const z of r.options)
7258
+ W.some((D) => to(D.value, z.value)) || W.push(z);
7259
+ l.value = W;
7260
+ }
7252
7261
  }, {
7253
7262
  immediate: !0,
7254
7263
  deep: !0
7255
7264
  });
7256
7265
  const a = n, c = se(), u = se();
7257
7266
  function d(P) {
7258
- var I, U;
7267
+ var I, W;
7259
7268
  if (r.multiple) {
7260
7269
  if (P) {
7261
7270
  let z = r.modelValue || [];
7262
- z.indexOf(P) >= 0 ? z.splice(z.indexOf(P), 1) : z.push(P), a("update:modelValue", z), m(z), ((I = r.modelValue) == null ? void 0 : I.length) === ((U = r.options) == null ? void 0 : U.length) ? s.value = !0 : s.value = !1;
7271
+ z.indexOf(P) >= 0 ? z.splice(z.indexOf(P), 1) : z.push(P), a("update:modelValue", z), m(z), ((I = r.modelValue) == null ? void 0 : I.length) === ((W = r.options) == null ? void 0 : W.length) ? s.value = !0 : s.value = !1;
7263
7272
  }
7264
7273
  } else
7265
7274
  a("update:modelValue", P), m(P), c.value = null, u.value.hide();
7266
7275
  }
7267
7276
  async function f(P) {
7268
- var I, U;
7269
- a("update:modelValue", P), m(P), await _t(), ((I = r.modelValue) == null ? void 0 : I.length) === ((U = r.options) == null ? void 0 : U.length) && (s.value = !0);
7277
+ var I, W;
7278
+ a("update:modelValue", P), m(P), await _t(), ((I = r.modelValue) == null ? void 0 : I.length) === ((W = r.options) == null ? void 0 : W.length) && (s.value = !0);
7270
7279
  }
7271
7280
  function h(P) {
7272
7281
  a("update:modelValue", P), s.value = !1, m(P);
@@ -7277,7 +7286,7 @@ const Px = /* @__PURE__ */ Me(Ax, [["render", $x]]), Rx = {
7277
7286
  const m = za(function(P) {
7278
7287
  a("change", P);
7279
7288
  }, r.debounce), g = ae(() => {
7280
- var P, I, U, z;
7289
+ var P, I, W, z;
7281
7290
  if (r.multiple) {
7282
7291
  const D = ((P = l.value) == null ? void 0 : P.filter(
7283
7292
  (R) => {
@@ -7298,14 +7307,14 @@ const Px = /* @__PURE__ */ Me(Ax, [["render", $x]]), Rx = {
7298
7307
  } else
7299
7308
  return D.map((R) => R.label).join(", ");
7300
7309
  } else
7301
- return ((z = (U = l.value) == null ? void 0 : U.find((D) => D.value === r.modelValue)) == null ? void 0 : z.label) || r.modelValue;
7310
+ return ((z = (W = l.value) == null ? void 0 : W.find((D) => D.value === r.modelValue)) == null ? void 0 : z.label) || r.modelValue;
7302
7311
  });
7303
7312
  function v(P) {
7304
7313
  var I;
7305
7314
  try {
7306
- return r.multiple ? r.modelValue !== null && ((I = r.modelValue) == null ? void 0 : I.some((U) => to(U, P))) : r.modelValue !== null && to(P, r.modelValue);
7307
- } catch (U) {
7308
- return console.log(U), !1;
7315
+ return r.multiple ? r.modelValue !== null && ((I = r.modelValue) == null ? void 0 : I.some((W) => to(W, P))) : r.modelValue !== null && to(P, r.modelValue);
7316
+ } catch (W) {
7317
+ return console.log(W), !1;
7309
7318
  }
7310
7319
  }
7311
7320
  const k = {
@@ -7331,8 +7340,8 @@ const Px = /* @__PURE__ */ Me(Ax, [["render", $x]]), Rx = {
7331
7340
  }
7332
7341
  if (!r.groupSelected || !r.multiple)
7333
7342
  return P;
7334
- const I = r.modelValue || [], U = P.filter((O) => I.includes(O.value)), z = P.filter((O) => !I.includes(O.value));
7335
- return [...U, ...z];
7343
+ const I = r.modelValue || [], W = P.filter((O) => I.includes(O.value)), z = P.filter((O) => !I.includes(O.value));
7344
+ return [...W, ...z];
7336
7345
  });
7337
7346
  function C() {
7338
7347
  w.value = 1, r.remoteMethod && (T.value = !0, B(c.value, w.value, () => {
@@ -7349,9 +7358,9 @@ const Px = /* @__PURE__ */ Me(Ax, [["render", $x]]), Rx = {
7349
7358
  T.value = !1;
7350
7359
  }));
7351
7360
  }
7352
- const B = za((P, I, U) => {
7361
+ const B = za((P, I, W) => {
7353
7362
  r.remoteMethod(P, I).finally(() => {
7354
- U == null || U();
7363
+ W == null || W();
7355
7364
  });
7356
7365
  }, r.debounce || 300);
7357
7366
  return e({
@@ -7364,7 +7373,7 @@ const Px = /* @__PURE__ */ Me(Ax, [["render", $x]]), Rx = {
7364
7373
  label: t.label,
7365
7374
  disabled: t.disabled
7366
7375
  }, {
7367
- default: Ae(({ isHidden: U }) => [
7376
+ default: Ae(({ isHidden: W }) => [
7368
7377
  ve(Zo, {
7369
7378
  material: t.material,
7370
7379
  naked: t.naked,
@@ -7407,7 +7416,7 @@ const Px = /* @__PURE__ */ Me(Ax, [["render", $x]]), Rx = {
7407
7416
  }, 8, ["material", "naked", "disabled", "small", "invalid", "loading"])
7408
7417
  ]),
7409
7418
  content: Ae(() => {
7410
- var U, z;
7419
+ var W, z;
7411
7420
  return [
7412
7421
  F("div", {
7413
7422
  class: "flex flex-col max-h-80 overflow-y-auto",
@@ -7425,7 +7434,7 @@ const Px = /* @__PURE__ */ Me(Ax, [["render", $x]]), Rx = {
7425
7434
  ]
7426
7435
  }, null, 8, ["placeholder", "modelValue"])
7427
7436
  ])) : ce("", !0),
7428
- !t.options && ((U = t.options) == null ? void 0 : U.length) == 0 ? (S(), L("span", Fx, "No data.")) : (S(), L(je, { key: 2 }, [
7437
+ !t.options && ((W = t.options) == null ? void 0 : W.length) == 0 ? (S(), L("span", Fx, "No data.")) : (S(), L(je, { key: 2 }, [
7429
7438
  t.multiple && t.batchSelect ? (S(), L("div", jx, [
7430
7439
  F("span", {
7431
7440
  class: "cursor-pointer opacity-50 hover:opacity-100",
@@ -7445,7 +7454,7 @@ const Px = /* @__PURE__ */ Me(Ax, [["render", $x]]), Rx = {
7445
7454
  F("div", {
7446
7455
  class: re(["flex items-center py-2 px-4 min-w-64 text-base", {
7447
7456
  "cursor-pointer": !t.multiple || D.value,
7448
- [`${k[W(ke).theme]}`]: !0
7457
+ [`${k[U(ke).theme]}`]: !0
7449
7458
  }]),
7450
7459
  onClick: (O) => D.disabled ? null : d(D.value)
7451
7460
  }, [
@@ -7911,7 +7920,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
7911
7920
  Fe(B.$slots, "more")
7912
7921
  ])
7913
7922
  ], 2)) : ce("", !0),
7914
- t.checkbox ? (S(), Te(W(Lr), {
7923
+ t.checkbox ? (S(), Te(U(Lr), {
7915
7924
  key: 1,
7916
7925
  ref_key: "myInput",
7917
7926
  ref: b,
@@ -7928,11 +7937,11 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
7928
7937
  "is-active": !t.disabled && !t.modelValue,
7929
7938
  "is-selected": t.modelValue === !0
7930
7939
  }]),
7931
- onClick: P[0] || (P[0] = (U) => t.disabled ? void 0 : m(t.modelValue))
7940
+ onClick: P[0] || (P[0] = (W) => t.disabled ? void 0 : m(t.modelValue))
7932
7941
  }, [
7933
7942
  F("div", {
7934
7943
  class: re(["w-4 h-4 border dark:border-gray-800 cursor-pointer", {
7935
- [`${i[W(ke).theme]}`]: !0
7944
+ [`${i[U(ke).theme]}`]: !0
7936
7945
  }])
7937
7946
  }, [
7938
7947
  t.modelValue === !0 ? (S(), Te(Fp, { key: 0 })) : ce("", !0)
@@ -7947,7 +7956,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
7947
7956
  ], 2)
7948
7957
  ]),
7949
7958
  _: 3
7950
- }, 8, ["name", "rules", "value", "unchecked-value", "modelValue"])) : t.radio ? (S(), Te(W(Lr), {
7959
+ }, 8, ["name", "rules", "value", "unchecked-value", "modelValue"])) : t.radio ? (S(), Te(U(Lr), {
7951
7960
  key: 2,
7952
7961
  ref_key: "myInput",
7953
7962
  ref: b,
@@ -7975,7 +7984,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
7975
7984
  type: "radio",
7976
7985
  name: t.name,
7977
7986
  value: t.radioValue,
7978
- onChange: P[1] || (P[1] = (...U) => B.onChange && B.onChange(...U)),
7987
+ onChange: P[1] || (P[1] = (...W) => B.onChange && B.onChange(...W)),
7979
7988
  checked: t.radioValue == t.modelValue
7980
7989
  }, null, 40, ES),
7981
7990
  a.value ? (S(), L("span", {
@@ -7985,7 +7994,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
7985
7994
  ], 2)
7986
7995
  ]),
7987
7996
  _: 1
7988
- }, 8, ["name", "value", "modelValue"])) : t.select ? (S(), Te(W(Lr), {
7997
+ }, 8, ["name", "value", "modelValue"])) : t.select ? (S(), Te(U(Lr), {
7989
7998
  key: 3,
7990
7999
  ref_key: "myInput",
7991
8000
  ref: b,
@@ -7994,7 +8003,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
7994
8003
  name: s.value
7995
8004
  }, {
7996
8005
  default: Ae(({ field: I }) => {
7997
- var U;
8006
+ var W;
7998
8007
  return [
7999
8008
  ve(Xp, {
8000
8009
  ref_key: "myChoiceList",
@@ -8016,8 +8025,8 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8016
8025
  summaryText: t.summaryText,
8017
8026
  debounce: t.debounce,
8018
8027
  total: t.total,
8019
- isInvalid: !!(t.error && W(l)),
8020
- required: t.required || ((U = f.value) == null ? void 0 : U.indexOf("required")) >= 0,
8028
+ isInvalid: !!(t.error && U(l)),
8029
+ required: t.required || ((W = f.value) == null ? void 0 : W.indexOf("required")) >= 0,
8021
8030
  label: a.value,
8022
8031
  placeholder: t.placeholder,
8023
8032
  loading: t.loading,
@@ -8027,7 +8036,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8027
8036
  ];
8028
8037
  }),
8029
8038
  _: 1
8030
- }, 8, ["modelValue", "rules", "name"])) : t.color ? (S(), Te(W(Lr), {
8039
+ }, 8, ["modelValue", "rules", "name"])) : t.color ? (S(), Te(U(Lr), {
8031
8040
  key: 4,
8032
8041
  ref_key: "myInput",
8033
8042
  ref: b,
@@ -8043,7 +8052,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8043
8052
  }, null, 8, ["placeholder", "modelValue"])
8044
8053
  ]),
8045
8054
  _: 1
8046
- }, 8, ["modelValue", "rules", "name"])) : t.toggleSwitch ? (S(), Te(W(Lr), {
8055
+ }, 8, ["modelValue", "rules", "name"])) : t.toggleSwitch ? (S(), Te(U(Lr), {
8047
8056
  key: 5,
8048
8057
  ref_key: "myInput",
8049
8058
  ref: b,
@@ -8066,12 +8075,12 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8066
8075
  "rounded-sm border": !t.naked,
8067
8076
  "border-b": t.material,
8068
8077
  "!bg-transparent": t.naked,
8069
- [`${r[W(ke).theme]}`]: !0,
8078
+ [`${r[U(ke).theme]}`]: !0,
8070
8079
  "bg-transparent!": t.transparent,
8071
8080
  "h-10": !t.textarea && !t.large,
8072
8081
  "h-12": !t.textarea && t.large,
8073
8082
  "border-gray-200! bg-gray-50! dark:bg-gray-940! dark:border-gray-900! text-gray-400 dark:text-gray-800": t.disabled,
8074
- "border-red-600! focus-within:outline-red-600 dark:border-red-400/70!": W(l)
8083
+ "border-red-600! focus-within:outline-red-600 dark:border-red-400/70!": U(l)
8075
8084
  }])
8076
8085
  }, [
8077
8086
  B.$slots.prepend ? (S(), L("div", {
@@ -8082,7 +8091,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8082
8091
  Fe(B.$slots, "prepend")
8083
8092
  ])
8084
8093
  ], 2)) : ce("", !0),
8085
- t.textarea ? (S(), Te(W(Lr), {
8094
+ t.textarea ? (S(), Te(U(Lr), {
8086
8095
  key: 1,
8087
8096
  ref_key: "myInput",
8088
8097
  ref: b,
@@ -8105,13 +8114,13 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8105
8114
  placeholder: t.placeholder,
8106
8115
  minHeight: t.minHeight,
8107
8116
  maxHeight: t.maxHeight,
8108
- isInvalid: !!(t.error && W(l)),
8117
+ isInvalid: !!(t.error && U(l)),
8109
8118
  required: t.required || ((I = f.value) == null ? void 0 : I.indexOf("required")) >= 0
8110
8119
  }, null, 8, ["modelValue", "rows", "disabled", "noResize", "autoResize", "placeholder", "minHeight", "maxHeight", "isInvalid", "required"])
8111
8120
  ];
8112
8121
  }),
8113
8122
  _: 1
8114
- }, 8, ["modelValue", "rules", "name"])) : (S(), Te(W(Lr), {
8123
+ }, 8, ["modelValue", "rules", "name"])) : (S(), Te(U(Lr), {
8115
8124
  key: 2,
8116
8125
  ref_key: "myInput",
8117
8126
  ref: b,
@@ -8135,7 +8144,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8135
8144
  onInput: h,
8136
8145
  "no-data-text": t.noDataText,
8137
8146
  placeholder: t.placeholder,
8138
- validateOnInput: !!W(l),
8147
+ validateOnInput: !!U(l),
8139
8148
  rules: f.value
8140
8149
  }, null, 8, ["class", "type", "min", "max", "rows", "name", "disabled", "modelValue", "no-data-text", "placeholder", "validateOnInput", "rules"])),
8141
8150
  t.loading ? (S(), L("div", {
@@ -8171,8 +8180,8 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8171
8180
  ])
8172
8181
  ])) : ce("", !0)
8173
8182
  ], 2)),
8174
- t.error && W(l) ? (S(), L("div", NS, [
8175
- ve(W(Hy), { name: s.value }, {
8183
+ t.error && U(l) ? (S(), L("div", NS, [
8184
+ ve(U(Hy), { name: s.value }, {
8176
8185
  default: Ae((I) => [
8177
8186
  tt(Ee(I.message), 1)
8178
8187
  ]),
@@ -8295,7 +8304,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8295
8304
  return (r, i) => {
8296
8305
  const o = _s("wpic-loading-panel");
8297
8306
  return S(), L("div", {
8298
- class: re(["rounded-lg wpic-card relative", { [e[W(ke).theme]]: !0, "wpic-card-inline": t.inline, "has-header": t.title || r.$slots.actions || r.$slots.title }])
8307
+ class: re(["rounded-lg wpic-card relative", { [e[U(ke).theme]]: !0, "wpic-card-inline": t.inline, "has-header": t.title || r.$slots.actions || r.$slots.title }])
8299
8308
  }, [
8300
8309
  t.loading ? (S(), Te(o, {
8301
8310
  key: 0,
@@ -8305,7 +8314,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8305
8314
  t.title || r.$slots.title || r.$slots.actions ? (S(), L("div", IS, [
8306
8315
  t.title || r.$slots.title || r.$slots.actions ? (S(), L("div", {
8307
8316
  key: 0,
8308
- class: re(["text-lg 2xl:text-xl flex items-center", [n[W(ke).theme]]])
8317
+ class: re(["text-lg 2xl:text-xl flex items-center", [n[U(ke).theme]]])
8309
8318
  }, [
8310
8319
  Fe(r.$slots, "title", {}, () => [
8311
8320
  tt(Ee(t.title), 1)
@@ -8340,7 +8349,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8340
8349
  };
8341
8350
  return (n, r) => (S(), L("div", {
8342
8351
  class: re(["border-b relative dark:border-gray-900 dark:text-gray-300 last:border-0 pb-6", {
8343
- [`${e[W(ke).theme]}`]: !0,
8352
+ [`${e[U(ke).theme]}`]: !0,
8344
8353
  "pt-3": !(t.title && n.$slots.actions && n.$slots.title),
8345
8354
  "pt-6": !t.title && !n.$slots.actions && !n.$slots.title,
8346
8355
  "bg-gray-50 dark:bg-gray-930 last:rounded-b-lg": t.sub,
@@ -8387,7 +8396,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8387
8396
  class: re(["relative flex", { "mb-4": t.indicators }])
8388
8397
  }, [
8389
8398
  F("div", {
8390
- class: re(["flex w-full relative", r[W(ke).theme]]),
8399
+ class: re(["flex w-full relative", r[U(ke).theme]]),
8391
8400
  style: { "z-index": "1" }
8392
8401
  }, [
8393
8402
  n.value > 0 ? (S(), L("div", {
@@ -8395,7 +8404,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8395
8404
  style: Un({ width: `${n.value}%` }),
8396
8405
  class: re(["flex h-full", {
8397
8406
  [`${t.background}`]: !0,
8398
- [`${i[W(ke).theme]}`]: !0
8407
+ [`${i[U(ke).theme]}`]: !0
8399
8408
  }])
8400
8409
  }, [
8401
8410
  ve(rm, {
@@ -8431,7 +8440,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8431
8440
  r("clear");
8432
8441
  }
8433
8442
  return (o, s) => (S(), L("div", {
8434
- class: re(["wpic-tag select-none border inline-flex rounded-sm h-8 items-center justify-center pl-3 py-1", { "pr-3": !t.clearable, "pr-1": t.clearable, [n[W(ke).theme]]: !0 }])
8443
+ class: re(["wpic-tag select-none border inline-flex rounded-sm h-8 items-center justify-center pl-3 py-1", { "pr-3": !t.clearable, "pr-1": t.clearable, [n[U(ke).theme]]: !0 }])
8435
8444
  }, [
8436
8445
  F("span", qS, [
8437
8446
  Fe(o.$slots, "default")
@@ -8511,9 +8520,9 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8511
8520
  };
8512
8521
  return (i, o) => (S(), L("div", {
8513
8522
  class: re(["border rounded-sm flex items-center justify-center w-10 h-10 cursor-pointer", {
8514
- [e[W(ke).theme]]: !t.active && !t.disabled,
8515
- [n[W(ke).theme]]: t.active && !t.disabled,
8516
- [r[W(ke).theme]]: t.disabled
8523
+ [e[U(ke).theme]]: !t.active && !t.disabled,
8524
+ [n[U(ke).theme]]: t.active && !t.disabled,
8525
+ [r[U(ke).theme]]: t.disabled
8517
8526
  }])
8518
8527
  }, [
8519
8528
  F("span", oO, [
@@ -8744,7 +8753,7 @@ const VO = /* @__PURE__ */ Me(DO, [["render", RO]]), BO = { class: "font-semibol
8744
8753
  return (n, r) => (S(), L("tr", BO, [
8745
8754
  t.checkable ? (S(), Te(Fs, {
8746
8755
  class: re(["py-3 first:pl-6 pr-6 border-t", {
8747
- [`${e[W(ke).theme]}`]: !0,
8756
+ [`${e[U(ke).theme]}`]: !0,
8748
8757
  "sticky left-0": !0,
8749
8758
  "border-b": t.position === "header",
8750
8759
  "border-t": t.position === "footer",
@@ -8758,7 +8767,7 @@ const VO = /* @__PURE__ */ Me(DO, [["render", RO]]), BO = { class: "font-semibol
8758
8767
  }, null, 8, ["class"])) : ce("", !0),
8759
8768
  (S(!0), L(je, null, ut(t.columns, (i, o) => (S(), Te(Fs, {
8760
8769
  class: re(["py-3 first:pl-6 pr-6 border-t", {
8761
- [`${e[W(ke).theme]}`]: !0,
8770
+ [`${e[U(ke).theme]}`]: !0,
8762
8771
  "sticky left-0": o === 0,
8763
8772
  "border-b": t.position === "header",
8764
8773
  "border-t": t.position === "footer",
@@ -8900,14 +8909,14 @@ const ZO = /* @__PURE__ */ Me(YO, [["render", JO]]), XO = { class: "wpic-table"
8900
8909
  }
8901
8910
  return R;
8902
8911
  };
8903
- let U = [];
8912
+ let W = [];
8904
8913
  (h.default && h.default() || []).forEach((D) => {
8905
8914
  var O, R;
8906
- ((O = D.type) == null ? void 0 : O.name) === "WpicTableColumn" ? U.push(D) : (R = D.children) != null && R.length && D.children.forEach((j) => {
8915
+ ((O = D.type) == null ? void 0 : O.name) === "WpicTableColumn" ? W.push(D) : (R = D.children) != null && R.length && D.children.forEach((j) => {
8907
8916
  var ie;
8908
- ((ie = j.type) == null ? void 0 : ie.name) === "WpicTableColumn" && U.push(j);
8917
+ ((ie = j.type) == null ? void 0 : ie.name) === "WpicTableColumn" && W.push(j);
8909
8918
  });
8910
- }), p.value = U.map((D) => {
8919
+ }), p.value = W.map((D) => {
8911
8920
  let O = D.children, R = D.props || {}, { field: j, label: ie, help: oe, width: ge, minWidth: be, maxWidth: V, sortable: q, selectable: Z, render: J, type: Y, align: ye, visible: me, noPadding: Ne } = I(D.type.props, R);
8912
8921
  return j || (j = P(ie)), Z && me && m.value.push(j), {
8913
8922
  label: ie,
@@ -8929,8 +8938,8 @@ const ZO = /* @__PURE__ */ Me(YO, [["render", JO]]), XO = { class: "wpic-table"
8929
8938
  }
8930
8939
  function k(I) {
8931
8940
  var z, D;
8932
- let U = (z = r.sortOptions) == null ? void 0 : z.sortDirection;
8933
- ((D = r.sortOptions) == null ? void 0 : D.sortBy) === I && (U = U === "asc" ? "desc" : "asc"), d("changeSort", { sortDirection: U, sortBy: I });
8941
+ let W = (z = r.sortOptions) == null ? void 0 : z.sortDirection;
8942
+ ((D = r.sortOptions) == null ? void 0 : D.sortBy) === I && (W = W === "asc" ? "desc" : "asc"), d("changeSort", { sortDirection: W, sortBy: I });
8934
8943
  }
8935
8944
  Qe(() => h.default, (I) => {
8936
8945
  v();
@@ -8938,20 +8947,20 @@ const ZO = /* @__PURE__ */ Me(YO, [["render", JO]]), XO = { class: "wpic-table"
8938
8947
  deep: !0
8939
8948
  });
8940
8949
  const b = vr({});
8941
- function y({ index: I, item: U }) {
8942
- b[I] ? b[I] = null : (b[I] = !0, d("expandRow", { index: I, item: U }));
8950
+ function y({ index: I, item: W }) {
8951
+ b[I] ? b[I] = null : (b[I] = !0, d("expandRow", { index: I, item: W }));
8943
8952
  }
8944
8953
  const C = se([]);
8945
8954
  function w(I) {
8946
- const U = B(I, r.itemId);
8947
- C.value.includes(U) ? (C.value.splice(C.value.indexOf(U), 1), T.value = !1) : C.value.push(U);
8955
+ const W = B(I, r.itemId);
8956
+ C.value.includes(W) ? (C.value.splice(C.value.indexOf(W), 1), T.value = !1) : C.value.push(W);
8948
8957
  }
8949
8958
  const T = se(!1);
8950
8959
  function $() {
8951
8960
  if (T.value = !T.value, C.value = [], T.value)
8952
8961
  for (let I of r.data) {
8953
- let U = B(I, r.itemId);
8954
- C.value.push(U);
8962
+ let W = B(I, r.itemId);
8963
+ C.value.push(W);
8955
8964
  }
8956
8965
  }
8957
8966
  function A() {
@@ -8963,13 +8972,13 @@ const ZO = /* @__PURE__ */ Me(YO, [["render", JO]]), XO = { class: "wpic-table"
8963
8972
  selectedColumns: m,
8964
8973
  resetSelectedRows: A
8965
8974
  });
8966
- function B(I, U) {
8967
- return U.split(".").reduce((z, D) => z ? z[D] : void 0, I);
8975
+ function B(I, W) {
8976
+ return W.split(".").reduce((z, D) => z ? z[D] : void 0, I);
8968
8977
  }
8969
8978
  function P(I) {
8970
8979
  return !I || typeof I != "string" ? "" : I.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
8971
8980
  }
8972
- return (I, U) => {
8981
+ return (I, W) => {
8973
8982
  const z = _s("wpic-choice-list"), D = _s("wpic-form-field");
8974
8983
  return S(), L("div", XO, [
8975
8984
  I.$slots.header || I.$slots.actions || t.columnToggleable ? (S(), L("div", QO, [
@@ -8981,7 +8990,7 @@ const ZO = /* @__PURE__ */ Me(YO, [["render", JO]]), XO = { class: "wpic-table"
8981
8990
  ve(z, {
8982
8991
  multiple: "",
8983
8992
  modelValue: m.value,
8984
- "onUpdate:modelValue": U[0] || (U[0] = (O) => m.value = O),
8993
+ "onUpdate:modelValue": W[0] || (W[0] = (O) => m.value = O),
8985
8994
  "hide-select": "",
8986
8995
  "hide-chevron": "",
8987
8996
  naked: "",
@@ -9008,7 +9017,7 @@ const ZO = /* @__PURE__ */ Me(YO, [["render", JO]]), XO = { class: "wpic-table"
9008
9017
  class: re(["wpic-table-content relative w-full rounded-lg overflow-hidden-", {
9009
9018
  "no-radius rounded-none": t.noRadius || t.columnToggleable,
9010
9019
  border: t.border,
9011
- [`${i[W(ke).theme]}`]: !0
9020
+ [`${i[U(ke).theme]}`]: !0
9012
9021
  }])
9013
9022
  }, [
9014
9023
  F("div", {
@@ -9036,7 +9045,7 @@ const ZO = /* @__PURE__ */ Me(YO, [["render", JO]]), XO = { class: "wpic-table"
9036
9045
  F("tr", null, [
9037
9046
  t.checkable ? (S(), L("th", {
9038
9047
  key: 0,
9039
- class: re(["first:rounded-tl-lg last:rounded-tr-lg py-0 border-b first:pl-6 pr-6", [`${o[W(ke).theme]}`]])
9048
+ class: re(["first:rounded-tl-lg last:rounded-tr-lg py-0 border-b first:pl-6 pr-6", [`${o[U(ke).theme]}`]])
9040
9049
  }, [
9041
9050
  F("div", sC, [
9042
9051
  ve(D, {
@@ -9050,13 +9059,13 @@ const ZO = /* @__PURE__ */ Me(YO, [["render", JO]]), XO = { class: "wpic-table"
9050
9059
  ], 2)) : ce("", !0),
9051
9060
  g.value.find((O) => O.type == "expand") ? (S(), L("th", {
9052
9061
  key: 1,
9053
- class: re(["first:rounded-tl-lg last:rounded-tr-lg py-0 border-b first:pl-6 pr-6", [`${o[W(ke).theme]}`]])
9062
+ class: re(["first:rounded-tl-lg last:rounded-tr-lg py-0 border-b first:pl-6 pr-6", [`${o[U(ke).theme]}`]])
9054
9063
  }, null, 2)) : ce("", !0),
9055
9064
  (S(!0), L(je, null, ut(g.value.filter((O) => O.type != "expand"), (O, R) => {
9056
9065
  var j, ie;
9057
9066
  return S(), L("th", {
9058
9067
  class: re(["first:rounded-tl-lg last:rounded-tr-lg py-0 border-b first:pl-6 pr-6", {
9059
- [`${o[W(ke).theme]}`]: !0,
9068
+ [`${o[U(ke).theme]}`]: !0,
9060
9069
  "sticky top-0 left-0": R === 0
9061
9070
  }]),
9062
9071
  style: Un({ maxWidth: `${O.maxWidth}px` })
@@ -9092,7 +9101,7 @@ const ZO = /* @__PURE__ */ Me(YO, [["render", JO]]), XO = { class: "wpic-table"
9092
9101
  F("tbody", aC, [
9093
9102
  t.loading ? (S(), L(je, { key: 0 }, [
9094
9103
  F("div", {
9095
- class: re(["inset-0 z-10 absolute flex items-center justify-center", [u[W(ke).theme]]])
9104
+ class: re(["inset-0 z-10 absolute flex items-center justify-center", [u[U(ke).theme]]])
9096
9105
  }, [
9097
9106
  ve(Ui, { class: "w-6 h-6" })
9098
9107
  ], 2),
@@ -9115,15 +9124,15 @@ const ZO = /* @__PURE__ */ Me(YO, [["render", JO]]), XO = { class: "wpic-table"
9115
9124
  class: re(["tr group border-b last:border-b-0 overflow-hidden", {
9116
9125
  "is-odd": R % 2 == 0,
9117
9126
  "is-even": R % 2 != 0,
9118
- [s[W(ke).theme]]: !0
9127
+ [s[U(ke).theme]]: !0
9119
9128
  }])
9120
9129
  }, [
9121
9130
  t.checkable ? (S(), L("td", {
9122
9131
  key: 0,
9123
9132
  class: re([
9124
9133
  {
9125
- [`${a[W(ke).theme]}`]: !0,
9126
- [`${c[W(ke).theme]}`]: t.stripe
9134
+ [`${a[U(ke).theme]}`]: !0,
9135
+ [`${c[U(ke).theme]}`]: t.stripe
9127
9136
  }
9128
9137
  ])
9129
9138
  }, [
@@ -9145,8 +9154,8 @@ const ZO = /* @__PURE__ */ Me(YO, [["render", JO]]), XO = { class: "wpic-table"
9145
9154
  "first:pl-6 pr-6 last:pr-6": !t.noXPadding,
9146
9155
  "first:pl-0 pr-6 last:pr-0": t.noXPadding,
9147
9156
  "align-top py-5": t.valign == "top",
9148
- [`${a[W(ke).theme]}`]: !0,
9149
- [`${c[W(ke).theme]}`]: t.stripe
9157
+ [`${a[U(ke).theme]}`]: !0,
9158
+ [`${c[U(ke).theme]}`]: t.stripe
9150
9159
  }
9151
9160
  ], "border-t border-gray-200 leading-tight h-16 py-2 dark:border-gray-920"])
9152
9161
  }, [
@@ -9173,8 +9182,8 @@ const ZO = /* @__PURE__ */ Me(YO, [["render", JO]]), XO = { class: "wpic-table"
9173
9182
  class: re(["lg:text-base h-full table-cell", {
9174
9183
  "text-sm lg:text-sm py-1!": t.small,
9175
9184
  "sticky left-0 shadow-sm": q === 0,
9176
- [`${a[W(ke).theme]}`]: !0,
9177
- [`${c[W(ke).theme]}`]: t.stripe,
9185
+ [`${a[U(ke).theme]}`]: !0,
9186
+ [`${c[U(ke).theme]}`]: t.stripe,
9178
9187
  "py-3 first:pl-6 pr-6": !V.noPadding,
9179
9188
  "first:pl-0 last:pr-0": t.noXPadding,
9180
9189
  "last:rounded-br-lg": R === ((Z = t.data) == null ? void 0 : Z.length) - 1 && !t.totalItem && !g.value.find((Y) => Y.type == "expand") && !t.noRadius,
@@ -9195,13 +9204,13 @@ const ZO = /* @__PURE__ */ Me(YO, [["render", JO]]), XO = { class: "wpic-table"
9195
9204
  g.value.find((V) => V.type == "expand") ? Ti((S(), L("tr", {
9196
9205
  key: 0,
9197
9206
  class: re([{
9198
- [s[W(ke).theme]]: !t.stripe,
9199
- [l[W(ke).theme]]: t.stripe
9207
+ [s[U(ke).theme]]: !t.stripe,
9208
+ [l[U(ke).theme]]: t.stripe
9200
9209
  }, "tr border-b last:border-b-0 overflow-hidden"])
9201
9210
  }, [
9202
9211
  ve(Fs, {
9203
9212
  class: re(["lg:text-base bg-gray-50! dark:bg-gray-940!", {
9204
- [`${a[W(ke).theme]}`]: !0,
9213
+ [`${a[U(ke).theme]}`]: !0,
9205
9214
  "py-3 first:pl-6 pr-6": !((j = g.value.find((V) => V.type == "expand")) != null && j.noPadding),
9206
9215
  "p-0": (ie = g.value.find((V) => V.type == "expand")) == null ? void 0 : ie.noPadding,
9207
9216
  "first:pl-0 last:pr-0": t.noXPadding,
@@ -21680,8 +21689,8 @@ function zf(t) {
21680
21689
  y: m
21681
21690
  };
21682
21691
  if (h = I.x, m = I.y, a) {
21683
- var U;
21684
- return Object.assign({}, P, (U = {}, U[y] = k ? "0" : "", U[b] = v ? "0" : "", U.transform = (C.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + m + "px)" : "translate3d(" + h + "px, " + m + "px, 0)", U));
21692
+ var W;
21693
+ return Object.assign({}, P, (W = {}, W[y] = k ? "0" : "", W[b] = v ? "0" : "", W.transform = (C.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + m + "px)" : "translate3d(" + h + "px, " + m + "px, 0)", W));
21685
21694
  }
21686
21695
  return Object.assign({}, P, (e = {}, e[y] = k ? m + "px" : "", e[b] = v ? h + "px" : "", e.transform = "", e));
21687
21696
  }
@@ -21895,9 +21904,9 @@ function jo(t, e) {
21895
21904
  }, P = t.modifiersData.offset;
21896
21905
  if (f === io && P) {
21897
21906
  var I = P[i];
21898
- Object.keys(B).forEach(function(U) {
21899
- var z = [pn, hn].indexOf(U) >= 0 ? 1 : -1, D = [qt, hn].indexOf(U) >= 0 ? "y" : "x";
21900
- B[U] += I[D] * z;
21907
+ Object.keys(B).forEach(function(W) {
21908
+ var z = [pn, hn].indexOf(W) >= 0 ? 1 : -1, D = [qt, hn].indexOf(W) >= 0 ? "y" : "x";
21909
+ B[W] += I[D] * z;
21901
21910
  });
21902
21911
  }
21903
21912
  return B;
@@ -21941,13 +21950,13 @@ function YM(t) {
21941
21950
  allowedAutoPlacements: m
21942
21951
  }) : Z);
21943
21952
  }, []), C = e.rects.reference, w = e.rects.popper, T = /* @__PURE__ */ new Map(), $ = !0, A = y[0], B = 0; B < y.length; B++) {
21944
- var P = y[B], I = Nn(P), U = zi(P) === Fi, z = [qt, hn].indexOf(I) >= 0, D = z ? "width" : "height", O = jo(e, {
21953
+ var P = y[B], I = Nn(P), W = zi(P) === Fi, z = [qt, hn].indexOf(I) >= 0, D = z ? "width" : "height", O = jo(e, {
21945
21954
  placement: P,
21946
21955
  boundary: u,
21947
21956
  rootBoundary: d,
21948
21957
  altBoundary: f,
21949
21958
  padding: c
21950
- }), R = z ? U ? pn : Kt : U ? hn : qt;
21959
+ }), R = z ? W ? pn : Kt : W ? hn : qt;
21951
21960
  C[D] > w[D] && (R = Cs(R));
21952
21961
  var j = Cs(R), ie = [];
21953
21962
  if (o && ie.push(O[I] <= 0), l && ie.push(O[R] <= 0, O[j] <= 0), ie.every(function(q) {
@@ -22088,10 +22097,10 @@ function nN(t) {
22088
22097
  };
22089
22098
  if (w) {
22090
22099
  if (o) {
22091
- var U, z = y === "y" ? qt : Kt, D = y === "y" ? hn : pn, O = y === "y" ? "height" : "width", R = w[y], j = R + g[z], ie = R - g[D], oe = h ? -$[O] / 2 : 0, ge = k === Fi ? T[O] : $[O], be = k === Fi ? -$[O] : -T[O], V = e.elements.arrow, q = h && V ? uu(V) : {
22100
+ var W, z = y === "y" ? qt : Kt, D = y === "y" ? hn : pn, O = y === "y" ? "height" : "width", R = w[y], j = R + g[z], ie = R - g[D], oe = h ? -$[O] / 2 : 0, ge = k === Fi ? T[O] : $[O], be = k === Fi ? -$[O] : -T[O], V = e.elements.arrow, q = h && V ? uu(V) : {
22092
22101
  width: 0,
22093
22102
  height: 0
22094
- }, Z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Jg(), J = Z[z], Y = Z[D], ye = go(0, T[O], q[O]), me = b ? T[O] / 2 - oe - ye - J - B.mainAxis : ge - ye - J - B.mainAxis, Ne = b ? -T[O] / 2 + oe + ye + Y + B.mainAxis : be + ye + Y + B.mainAxis, He = e.elements.arrow && ns(e.elements.arrow), Je = He ? y === "y" ? He.clientTop || 0 : He.clientLeft || 0 : 0, dt = (U = P == null ? void 0 : P[y]) != null ? U : 0, ne = R + me - dt - Je, De = R + Ne - dt, Bt = go(h ? el(j, ne) : j, R, h ? Yr(ie, De) : ie);
22103
+ }, Z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Jg(), J = Z[z], Y = Z[D], ye = go(0, T[O], q[O]), me = b ? T[O] / 2 - oe - ye - J - B.mainAxis : ge - ye - J - B.mainAxis, Ne = b ? -T[O] / 2 + oe + ye + Y + B.mainAxis : be + ye + Y + B.mainAxis, He = e.elements.arrow && ns(e.elements.arrow), Je = He ? y === "y" ? He.clientTop || 0 : He.clientLeft || 0 : 0, dt = (W = P == null ? void 0 : P[y]) != null ? W : 0, ne = R + me - dt - Je, De = R + Ne - dt, Bt = go(h ? el(j, ne) : j, R, h ? Yr(ie, De) : ie);
22095
22104
  w[y] = Bt, I[y] = Bt - R;
22096
22105
  }
22097
22106
  if (l) {
@@ -22718,11 +22727,11 @@ function HN(t, e) {
22718
22727
  var M;
22719
22728
  return !!((M = y.props.render) != null && M.$$tippy);
22720
22729
  }
22721
- function U() {
22730
+ function W() {
22722
22731
  return m || t;
22723
22732
  }
22724
22733
  function z() {
22725
- var M = U().parentNode;
22734
+ var M = W().parentNode;
22726
22735
  return M ? EN(M) : document;
22727
22736
  }
22728
22737
  function D() {
@@ -22761,7 +22770,7 @@ function HN(t, e) {
22761
22770
  if (!(A || !y.props.aria.expanded)) {
22762
22771
  var M = mi(y.props.triggerTarget || t);
22763
22772
  M.forEach(function(te) {
22764
- y.props.interactive ? te.setAttribute("aria-expanded", y.state.isVisible && te === U() ? "true" : "false") : te.removeAttribute("aria-expanded");
22773
+ y.props.interactive ? te.setAttribute("aria-expanded", y.state.isVisible && te === W() ? "true" : "false") : te.removeAttribute("aria-expanded");
22765
22774
  });
22766
22775
  }
22767
22776
  }
@@ -22866,7 +22875,7 @@ function HN(t, e) {
22866
22875
  }
22867
22876
  }
22868
22877
  function ne(M) {
22869
- var te = M.target, ue = U().contains(te) || w.contains(te);
22878
+ var te = M.target, ue = W().contains(te) || w.contains(te);
22870
22879
  if (!(M.type === "mousemove" && ue)) {
22871
22880
  var Se = E().concat(w).map(function(Oe) {
22872
22881
  var Le, Ue = Oe._tippy, it = (Le = Ue.popperInstance) == null ? void 0 : Le.state;
@@ -22890,7 +22899,7 @@ function HN(t, e) {
22890
22899
  }
22891
22900
  }
22892
22901
  function Bt(M) {
22893
- y.props.trigger.indexOf("focusin") < 0 && M.target !== U() || y.props.interactive && M.relatedTarget && w.contains(M.relatedTarget) || fe(M);
22902
+ y.props.trigger.indexOf("focusin") < 0 && M.target !== W() || y.props.interactive && M.relatedTarget && w.contains(M.relatedTarget) || fe(M);
22894
22903
  }
22895
22904
  function bt(M) {
22896
22905
  return Tn.isTouch ? P() !== M.type.indexOf("touch") >= 0 : !1;
@@ -22899,7 +22908,7 @@ function HN(t, e) {
22899
22908
  Et();
22900
22909
  var M = y.props, te = M.popperOptions, ue = M.placement, Se = M.offset, Oe = M.getReferenceClientRect, Le = M.moveTransition, Ue = I() ? mc(w).arrow : null, it = Oe ? {
22901
22910
  getBoundingClientRect: Oe,
22902
- contextElement: Oe.contextElement || U()
22911
+ contextElement: Oe.contextElement || W()
22903
22912
  } : t, Lt = {
22904
22913
  name: "$$tippy",
22905
22914
  enabled: !0,
@@ -22956,7 +22965,7 @@ function HN(t, e) {
22956
22965
  y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
22957
22966
  }
22958
22967
  function x() {
22959
- var M = y.props.appendTo, te, ue = U();
22968
+ var M = y.props.appendTo, te, ue = W();
22960
22969
  y.props.interactive && M === i0 || M === "parent" ? te = ue.parentNode : te = o0(M, [ue]), te.contains(w) || te.appendChild(w), y.state.isMounted = !0, wt(), process.env.NODE_ENV !== "production" && Hn(y.props.interactive && M === Xt.appendTo && ue.nextElementSibling !== w, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
22961
22970
 
22962
22971
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
@@ -23019,7 +23028,7 @@ function HN(t, e) {
23019
23028
  function _() {
23020
23029
  process.env.NODE_ENV !== "production" && Hn(y.state.isDestroyed, di("show"));
23021
23030
  var M = y.state.isVisible, te = y.state.isDestroyed, ue = !y.state.isEnabled, Se = Tn.isTouch && !y.props.touch, Oe = sa(y.props.duration, 0, Xt.duration);
23022
- if (!(M || te || ue || Se) && !U().hasAttribute("disabled") && (j("onShow", [y], !1), y.props.onShow(y) !== !1)) {
23031
+ if (!(M || te || ue || Se) && !W().hasAttribute("disabled") && (j("onShow", [y], !1), y.props.onShow(y) !== !1)) {
23023
23032
  if (y.state.isVisible = !0, I() && (w.style.visibility = "visible"), R(), Z(), y.state.isMounted || (w.style.transition = "none"), I()) {
23024
23033
  var Le = D(), Ue = Le.box, it = Le.content;
23025
23034
  la([Ue, it], 0);
@@ -23416,7 +23425,7 @@ const YN = xn({
23416
23425
  r && r.options.element && e.value && _t(() => {
23417
23426
  if (!e.value || !r.options.element.firstChild)
23418
23427
  return;
23419
- const i = W(e.value);
23428
+ const i = U(e.value);
23420
23429
  e.value.append(...r.options.element.childNodes), r.contentComponent = n.ctx._, r.setOptions({
23421
23430
  element: i
23422
23431
  }), r.createNodeViews();
@@ -25612,9 +25621,9 @@ const JL = /* @__PURE__ */ Me(zL, [["render", GL]]), ZL = { class: "py-1 px-1 bo
25612
25621
  };
25613
25622
  return (p, m) => {
25614
25623
  var g;
25615
- return W(c) ? (S(), L("div", {
25624
+ return U(c) ? (S(), L("div", {
25616
25625
  key: 0,
25617
- class: re(["pt-px relative flex flex-col rounded-sm border", s[W(ke).theme]])
25626
+ class: re(["pt-px relative flex flex-col rounded-sm border", s[U(ke).theme]])
25618
25627
  }, [
25619
25628
  F("div", ZL, [
25620
25629
  F("div", XL, [
@@ -25644,14 +25653,14 @@ const JL = /* @__PURE__ */ Me(zL, [["render", GL]]), ZL = { class: "py-1 px-1 bo
25644
25653
  key: v.method,
25645
25654
  class: re(["w-8 h-8 flex items-center justify-center text-xs rounded-sm text-gray-800 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-white/10", {
25646
25655
  "cursor-pointer": !d(v.method, v.type, v.params, v.disableCheck),
25647
- "is-active text-gray-800 bg-gray-200 dark:text-white dark:bg-white/10": v.label.startsWith("h") ? W(c).isActive("heading", { level: v.params.level }) : v.method === "setTextAlign" ? W(c).isActive({ textAlign: v.params }) : W(c).isActive(v.label)
25656
+ "is-active text-gray-800 bg-gray-200 dark:text-white dark:bg-white/10": v.label.startsWith("h") ? U(c).isActive("heading", { level: v.params.level }) : v.method === "setTextAlign" ? U(c).isActive({ textAlign: v.params }) : U(c).isActive(v.label)
25648
25657
  }]),
25649
25658
  onClick: (k) => u(v.method, v.type, v.params)
25650
25659
  }, [
25651
25660
  v.icon ? (S(), Te(Wi(v.icon), {
25652
25661
  key: 0,
25653
25662
  class: re(["", { "w-3 h-3": v.smallIcon, "w-4 h-4": !v.smallIcon && !v.largeIcon, "w-5 h-5": v.largeIcon }])
25654
- }, null, 8, ["class"])) : (S(), L("span", eD, Ee(W(sv).capitalize(v.label)), 1))
25663
+ }, null, 8, ["class"])) : (S(), L("span", eD, Ee(U(sv).capitalize(v.label)), 1))
25655
25664
  ], 10, QL))), 128))
25656
25665
  ])
25657
25666
  ]),
@@ -25661,7 +25670,7 @@ const JL = /* @__PURE__ */ Me(zL, [["render", GL]]), ZL = { class: "py-1 px-1 bo
25661
25670
  backgroundColor: (g = t.customStyles) == null ? void 0 : g.backgroundColor
25662
25671
  })
25663
25672
  }, [
25664
- ve(W(YN), { editor: W(c) }, null, 8, ["editor"])
25673
+ ve(U(YN), { editor: U(c) }, null, 8, ["editor"])
25665
25674
  ], 4)
25666
25675
  ], 2)) : ce("", !0);
25667
25676
  };
@@ -25831,17 +25840,17 @@ const xD = /* @__PURE__ */ Me(mD, [["render", kD]]), SD = { class: "flex-1" }, O
25831
25840
  }, [
25832
25841
  F("div", {
25833
25842
  class: re(["h-8 w-full flex justify-center items-center", {
25834
- [`${r[W(ke).theme]}`]: t.between,
25835
- [`${i[W(ke).theme]}`]: t.firstDay,
25836
- [`${o[W(ke).theme]}`]: t.lastDay,
25837
- [`${s[W(ke).theme]}`]: t.highlight
25843
+ [`${r[U(ke).theme]}`]: t.between,
25844
+ [`${i[U(ke).theme]}`]: t.firstDay,
25845
+ [`${o[U(ke).theme]}`]: t.lastDay,
25846
+ [`${s[U(ke).theme]}`]: t.highlight
25838
25847
  }]),
25839
25848
  style: Un({ marginLeft: t.firstDay ? "50%" : void 0, marginRight: t.lastDay ? "50%" : void 0 })
25840
25849
  }, [
25841
25850
  F("span", {
25842
25851
  class: re(["absolute w-8 h-8 flex items-center justify-center dark:text-gray-400", {
25843
- [`${e[W(ke).theme]}`]: !0,
25844
- [`${n[W(ke).theme]}`]: t.highlight && (t.firstDay || t.lastDay)
25852
+ [`${e[U(ke).theme]}`]: !0,
25853
+ [`${n[U(ke).theme]}`]: t.highlight && (t.firstDay || t.lastDay)
25845
25854
  }]),
25846
25855
  style: { left: "50%", transform: "translateX(-50%)" }
25847
25856
  }, [
@@ -26122,9 +26131,9 @@ function Nl() {
26122
26131
  }, D.toString = function() {
26123
26132
  return this.$d.toUTCString();
26124
26133
  }, z;
26125
- }(), U = I.prototype;
26126
- return B.prototype = U, [["$ms", o], ["$s", s], ["$m", l], ["$H", a], ["$W", c], ["$M", d], ["$y", h], ["$D", p]].forEach(function(z) {
26127
- U[z[1]] = function(D) {
26134
+ }(), W = I.prototype;
26135
+ return B.prototype = W, [["$ms", o], ["$s", s], ["$m", l], ["$H", a], ["$W", c], ["$M", d], ["$y", h], ["$D", p]].forEach(function(z) {
26136
+ W[z[1]] = function(D) {
26128
26137
  return this.$g(D, z[0], z[1]);
26129
26138
  };
26130
26139
  }), B.extend = function(z, D) {
@@ -26387,21 +26396,21 @@ const DD = /* @__PURE__ */ yu(LD), ID = { class: "w-full dark:text-gray-400" },
26387
26396
  (q.isBefore(o.value[0], "month") || q.isSame(o.value[0], "month")) && (q = o.value[0].add(1, "month")), o.value = [o.value[0], q];
26388
26397
  }
26389
26398
  }
26390
- const U = se();
26399
+ const W = se();
26391
26400
  function z(V) {
26392
- r.week && (U.value = X(V).week());
26401
+ r.week && (W.value = X(V).week());
26393
26402
  }
26394
26403
  function D(V) {
26395
- return X(V).week() === U.value;
26404
+ return X(V).week() === W.value;
26396
26405
  }
26397
26406
  function O(V) {
26398
- return X(V).week() === U.value ? X(V).format("YYYY-MM-DD") === X().week(U.value).startOf("week").format("YYYY-MM-DD") : !1;
26407
+ return X(V).week() === W.value ? X(V).format("YYYY-MM-DD") === X().week(W.value).startOf("week").format("YYYY-MM-DD") : !1;
26399
26408
  }
26400
26409
  function R(V) {
26401
- return X(V).week() === U.value ? X(V).format("YYYY-MM-DD") === X().week(U.value).endOf("week").format("YYYY-MM-DD") : !1;
26410
+ return X(V).week() === W.value ? X(V).format("YYYY-MM-DD") === X().week(W.value).endOf("week").format("YYYY-MM-DD") : !1;
26402
26411
  }
26403
26412
  function j() {
26404
- U.value = null;
26413
+ W.value = null;
26405
26414
  }
26406
26415
  function ie(V, q) {
26407
26416
  const Z = o.value[V].year(Number(q));
@@ -26482,12 +26491,12 @@ const DD = /* @__PURE__ */ yu(LD), ID = { class: "w-full dark:text-gray-400" },
26482
26491
  class: "grid grid-cols-7",
26483
26492
  onMouseout: j
26484
26493
  }, [
26485
- u(o.value[Z]) > 0 ? (S(!0), L(je, { key: 0 }, ut(d(W(X)(o.value[Z]).year(), W(X)(o.value[Z]).month() + 1), (Y) => (S(), Te(fa, {
26494
+ u(o.value[Z]) > 0 ? (S(!0), L(je, { key: 0 }, ut(d(U(X)(o.value[Z]).year(), U(X)(o.value[Z]).month() + 1), (Y) => (S(), Te(fa, {
26486
26495
  onClick: (ye) => !b(Y) && !k(Y) ? a(Y) : null,
26487
26496
  off: ""
26488
26497
  }, {
26489
26498
  default: Ae(() => [
26490
- tt(Ee(W(X)(Y).format("D")), 1)
26499
+ tt(Ee(U(X)(Y).format("D")), 1)
26491
26500
  ]),
26492
26501
  _: 2
26493
26502
  }, 1032, ["onClick"]))), 256)) : ce("", !0),
@@ -26504,16 +26513,16 @@ const DD = /* @__PURE__ */ yu(LD), ID = { class: "w-full dark:text-gray-400" },
26504
26513
  highlight: D(Y)
26505
26514
  }, {
26506
26515
  default: Ae(() => [
26507
- tt(Ee(W(X)(Y).format("D")), 1)
26516
+ tt(Ee(U(X)(Y).format("D")), 1)
26508
26517
  ]),
26509
26518
  _: 2
26510
26519
  }, 1032, ["onMouseover", "onClick", "today", "selected", "firstDay", "lastDay", "between", "disabled", "off", "highlight"]))), 256)),
26511
- ((J = f(W(X)(o.value[Z]).year(), W(X)(o.value[Z]).month() + 1)) == null ? void 0 : J.length) > 0 ? (S(!0), L(je, { key: 1 }, ut(f(W(X)(o.value[Z]).year(), W(X)(o.value[Z]).month() + 1), (Y) => (S(), Te(fa, {
26520
+ ((J = f(U(X)(o.value[Z]).year(), U(X)(o.value[Z]).month() + 1)) == null ? void 0 : J.length) > 0 ? (S(!0), L(je, { key: 1 }, ut(f(U(X)(o.value[Z]).year(), U(X)(o.value[Z]).month() + 1), (Y) => (S(), Te(fa, {
26512
26521
  onClick: (ye) => !b(Y) && !k(Y) ? a(Y) : null,
26513
26522
  off: ""
26514
26523
  }, {
26515
26524
  default: Ae(() => [
26516
- tt(Ee(W(X)(Y).format("D")), 1)
26525
+ tt(Ee(U(X)(Y).format("D")), 1)
26517
26526
  ]),
26518
26527
  _: 2
26519
26528
  }, 1032, ["onClick"]))), 256)) : ce("", !0)
@@ -27028,7 +27037,7 @@ const k0 = /* @__PURE__ */ Me(JD, [["render", eI]]), tI = { class: "flex gap-3"
27028
27037
  "translate-x-full": !t.visible,
27029
27038
  [t.backgroundColor]: !0,
27030
27039
  [t.options.width]: !0,
27031
- [r[W(ke).theme]]: !0
27040
+ [r[U(ke).theme]]: !0
27032
27041
  }])
27033
27042
  }, [
27034
27043
  F("div", {
@@ -27371,24 +27380,24 @@ const s$ = { class: "bg-white dark:border dark:border-gray-900 dark:bg-gray-940
27371
27380
  }, d$ = /* @__PURE__ */ Object.assign(u$, {
27372
27381
  setup(t) {
27373
27382
  const { visible: e, title: n, text: r, positive: i, negative: o, onConfirm: s, onCancel: l, blur: a } = x0();
27374
- return (c, u) => W(e) ? (S(), L("div", {
27383
+ return (c, u) => U(e) ? (S(), L("div", {
27375
27384
  key: 0,
27376
- class: re(["z-40 fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black/10 dark:bg-black/50 transition-opacity", { "backdrop-blur-md": W(a) }])
27385
+ class: re(["z-40 fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black/10 dark:bg-black/50 transition-opacity", { "backdrop-blur-md": U(a) }])
27377
27386
  }, [
27378
27387
  F("div", s$, [
27379
- F("div", l$, Ee(W(n)), 1),
27380
- F("div", a$, Ee(W(r)), 1),
27388
+ F("div", l$, Ee(U(n)), 1),
27389
+ F("div", a$, Ee(U(r)), 1),
27381
27390
  F("div", c$, [
27382
- ve(ko, { onClick: W(l) }, {
27391
+ ve(ko, { onClick: U(l) }, {
27383
27392
  default: Ae(() => [
27384
27393
  tt(Ee(c.$t("wpiccomponents.cancel")), 1)
27385
27394
  ]),
27386
27395
  _: 1
27387
27396
  }, 8, ["onClick"]),
27388
27397
  ve(ko, {
27389
- primary: W(i),
27390
- destructive: W(o),
27391
- onClick: W(s)
27398
+ primary: U(i),
27399
+ destructive: U(o),
27400
+ onClick: U(s)
27392
27401
  }, {
27393
27402
  default: Ae(() => [
27394
27403
  tt(Ee(c.$t("wpiccomponents.confirm")), 1)