cja-phoenix 0.2.1 → 0.2.2

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 re, ref as U, watch as ue, openBlock as P, createBlock as me, Teleport as Bn, createVNode as zt, Transition as sn, withCtx as Ue, withDirectives as ht, createElementVNode as $, withModifiers as Rn, normalizeClass as oe, createElementBlock as H, toDisplayString as xe, createCommentVNode as ie, renderSlot as Ie, vShow as jn, pushScopeId as mt, popScopeId as gt, normalizeStyle as Lr, Fragment as Sn, renderList as Tn, TransitionGroup as xr, unref as E, computed as ce, onMounted as Je, provide as Fi, isRef as Be, getCurrentInstance as xt, onBeforeUnmount as $i, toRef as Xe, resolveDynamicComponent as Un, h as Ze, inject as Ni, reactive as ln, onUnmounted as Ht, nextTick as ft, warn as Bi, watchEffect as Vr, markRaw as Dr, resolveDirective as Pr, normalizeProps as et, guardReactiveProps as un, mergeProps as cn, vModelText as Mr, createTextVNode as Fr, isReactive as ri, isVNode as $r, render as oi } from "vue";
1
+ import { defineComponent as re, ref as U, watch as ue, openBlock as P, createBlock as me, Teleport as Bn, createVNode as Ht, Transition as sn, withCtx as Ue, withDirectives as ht, createElementVNode as $, withModifiers as Rn, normalizeClass as oe, createElementBlock as H, toDisplayString as xe, createCommentVNode as ie, renderSlot as Ie, vShow as jn, pushScopeId as mt, popScopeId as gt, normalizeStyle as Lr, Fragment as Sn, renderList as Tn, TransitionGroup as xr, unref as E, computed as ce, onMounted as Ge, provide as Fi, isRef as Be, getCurrentInstance as xt, onBeforeUnmount as $i, toRef as Je, resolveDynamicComponent as Un, h as Ze, inject as Ni, reactive as ln, onUnmounted as Vt, nextTick as ft, warn as Bi, watchEffect as Vr, markRaw as Dr, resolveDirective as Pr, normalizeProps as et, guardReactiveProps as un, mergeProps as cn, vModelText as Mr, createTextVNode as Fr, isReactive as ri, isVNode as $r, render as oi } from "vue";
2
2
  const fe = (e, t) => {
3
3
  const n = e.__vccOpts || e;
4
4
  for (const [i, r] of t)
@@ -35,7 +35,7 @@ const fe = (e, t) => {
35
35
  return t({ active: i, openModal: o, closeModal: s, toggleModal: () => {
36
36
  i.value = !i.value;
37
37
  } }), (f, h) => (P(), me(Bn, { to: "body" }, [
38
- zt(sn, { name: "fade" }, {
38
+ Ht(sn, { name: "fade" }, {
39
39
  default: Ue(() => [
40
40
  ht($("div", Br, [
41
41
  $("div", {
@@ -135,7 +135,7 @@ const Qr = { class: "content-tabs" }, Zr = { class: "control-container" }, eo =
135
135
  }, xe(s.label), 11, eo))), 128))
136
136
  ]),
137
137
  $("div", to, [
138
- zt(xr, { name: "fade" }, {
138
+ Ht(xr, { name: "fade" }, {
139
139
  default: Ue(() => [
140
140
  (P(!0), H(Sn, null, Tn(e.tabs, (s) => ht((P(), H("div", {
141
141
  key: s.control,
@@ -254,7 +254,7 @@ function vo(e, t) {
254
254
  function Ct(e) {
255
255
  return typeof e == "function";
256
256
  }
257
- function Dt(e) {
257
+ function Pt(e) {
258
258
  return e == null;
259
259
  }
260
260
  const tt = (e) => e !== null && !!e && typeof e == "object" && !Array.isArray(e);
@@ -273,7 +273,7 @@ const Gt = Symbol("vee-validate-form"), yo = Symbol("vee-validate-field-instance
273
273
  function xn(e) {
274
274
  return Ct(e) && !!e.__locatorRef;
275
275
  }
276
- function Pt(e) {
276
+ function Mt(e) {
277
277
  return !!e && Ct(e.validate);
278
278
  }
279
279
  function kt(e) {
@@ -402,7 +402,7 @@ function Hn(e) {
402
402
  function se(e, t, n) {
403
403
  return e ? dn(t) ? e[Hn(t)] : (t || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((r, o) => _o(r) && o in r ? r[o] : n, e) : n;
404
404
  }
405
- function Ke(e, t, n) {
405
+ function Ye(e, t, n) {
406
406
  if (dn(t)) {
407
407
  e[Hn(t)] = n;
408
408
  return;
@@ -414,7 +414,7 @@ function Ke(e, t, n) {
414
414
  r[i[o]] = n;
415
415
  return;
416
416
  }
417
- (!(i[o] in r) || Dt(r[i[o]])) && (r[i[o]] = Ui(i[o + 1]) ? [] : {}), r = r[i[o]];
417
+ (!(i[o] in r) || Pt(r[i[o]])) && (r[i[o]] = Ui(i[o + 1]) ? [] : {}), r = r[i[o]];
418
418
  }
419
419
  }
420
420
  function _n(e, t) {
@@ -436,7 +436,7 @@ function Qt(e, t) {
436
436
  _n(i, n[o]);
437
437
  break;
438
438
  }
439
- if (!(n[o] in i) || Dt(i[n[o]]))
439
+ if (!(n[o] in i) || Pt(i[n[o]]))
440
440
  break;
441
441
  i = i[n[o]];
442
442
  }
@@ -599,7 +599,7 @@ async function Ki(e, t, n = {}) {
599
599
  };
600
600
  }
601
601
  async function Po(e, t) {
602
- if (Pt(e.rules))
602
+ if (Mt(e.rules))
603
603
  return Mo(t, e.rules, { bails: e.bails });
604
604
  if (Ct(e.rules) || Array.isArray(e.rules)) {
605
605
  const s = {
@@ -816,35 +816,35 @@ function Ji(e) {
816
816
  logo: "https://vee-validate.logaretm.com/v4/logo.png"
817
817
  }, Go);
818
818
  }
819
- const Mt = {}, Ft = {};
820
- let Ye;
819
+ const Ft = {}, $t = {};
820
+ let Xe;
821
821
  const Ot = Eo(() => {
822
822
  setTimeout(async () => {
823
- await ft(), Ye == null || Ye.sendInspectorState(wt), Ye == null || Ye.sendInspectorTree(wt);
823
+ await ft(), Xe == null || Xe.sendInspectorState(wt), Xe == null || Xe.sendInspectorTree(wt);
824
824
  }, 100);
825
825
  }, 100);
826
826
  function zo(e) {
827
827
  const t = xt();
828
- if (!Ye) {
828
+ if (!Xe) {
829
829
  const n = t == null ? void 0 : t.appContext.app;
830
830
  if (!n)
831
831
  return;
832
832
  Ji(n);
833
833
  }
834
- Mt[e.formId] = Object.assign({}, e), Mt[e.formId]._vm = t, Ht(() => {
835
- delete Mt[e.formId], Ot();
834
+ Ft[e.formId] = Object.assign({}, e), Ft[e.formId]._vm = t, Vt(() => {
835
+ delete Ft[e.formId], Ot();
836
836
  }), Ot();
837
837
  }
838
838
  function Ho(e) {
839
839
  const t = xt();
840
- if (!Ye) {
840
+ if (!Xe) {
841
841
  const n = t == null ? void 0 : t.appContext.app;
842
842
  if (!n)
843
843
  return;
844
844
  Ji(n);
845
845
  }
846
- Ft[e.id] = Object.assign({}, e), Ft[e.id]._vm = t, Ht(() => {
847
- delete Ft[e.id], Ot();
846
+ $t[e.id] = Object.assign({}, e), $t[e.id]._vm = t, Vt(() => {
847
+ delete $t[e.id], Ot();
848
848
  }), Ot();
849
849
  }
850
850
  const wt = "vee-validate-inspector", Ce = {
@@ -858,9 +858,9 @@ const wt = "vee-validate-inspector", Ce = {
858
858
  orange: 16099682,
859
859
  gray: 12304330
860
860
  };
861
- let qe = null;
861
+ let Ke = null;
862
862
  function Go(e) {
863
- Ye = e, e.addInspector({
863
+ Xe = e, e.addInspector({
864
864
  id: wt,
865
865
  icon: "rule",
866
866
  label: "vee-validate",
@@ -870,11 +870,11 @@ function Go(e) {
870
870
  icon: "done_outline",
871
871
  tooltip: "Validate selected item",
872
872
  action: async () => {
873
- if (!qe) {
873
+ if (!Ke) {
874
874
  console.error("There is not a valid selected vee-validate node or component");
875
875
  return;
876
876
  }
877
- const t = await qe.validate();
877
+ const t = await Ke.validate();
878
878
  console.log(t);
879
879
  }
880
880
  },
@@ -882,22 +882,22 @@ function Go(e) {
882
882
  icon: "delete_sweep",
883
883
  tooltip: "Clear validation state of the selected item",
884
884
  action: () => {
885
- if (!qe) {
885
+ if (!Ke) {
886
886
  console.error("There is not a valid selected vee-validate node or component");
887
887
  return;
888
888
  }
889
- if ("id" in qe) {
890
- qe.resetField();
889
+ if ("id" in Ke) {
890
+ Ke.resetField();
891
891
  return;
892
892
  }
893
- qe.resetForm();
893
+ Ke.resetForm();
894
894
  }
895
895
  }
896
896
  ]
897
897
  }), e.on.getInspectorTree((t) => {
898
898
  if (t.inspectorId !== wt)
899
899
  return;
900
- const n = Object.values(Mt), i = Object.values(Ft);
900
+ const n = Object.values(Ft), i = Object.values($t);
901
901
  t.rootNodes = [
902
902
  ...n.map(Wo),
903
903
  ...i.map((r) => Kn(r))
@@ -907,21 +907,21 @@ function Go(e) {
907
907
  return;
908
908
  const { form: i, field: r, type: o } = qo(t.nodeId);
909
909
  if (i && o === "form") {
910
- t.state = Yo(i), qe = i;
910
+ t.state = Yo(i), Ke = i;
911
911
  return;
912
912
  }
913
913
  if (r && o === "field") {
914
- t.state = Ko(r), qe = r;
914
+ t.state = Ko(r), Ke = r;
915
915
  return;
916
916
  }
917
- qe = null;
917
+ Ke = null;
918
918
  });
919
919
  }
920
920
  function Wo(e) {
921
921
  const { textColor: t, bgColor: n } = Zi(e), i = {};
922
922
  Object.values(e.fieldsByPath.value).forEach((s) => {
923
923
  const c = Array.isArray(s) ? s[0] : s;
924
- !c || Ke(i, E(c.name), Kn(c, e));
924
+ !c || Ye(i, E(c.name), Kn(c, e));
925
925
  });
926
926
  function r(s, c = []) {
927
927
  const f = [...c].pop();
@@ -998,9 +998,9 @@ function Qi(e, t, n = !0) {
998
998
  }
999
999
  function qo(e) {
1000
1000
  try {
1001
- const t = JSON.parse(atob(e)), n = Mt[t.f];
1001
+ const t = JSON.parse(atob(e)), n = Ft[t.f];
1002
1002
  if (!n && t.ff) {
1003
- const r = Ft[t.ff];
1003
+ const r = $t[t.ff];
1004
1004
  return r ? {
1005
1005
  type: t.type,
1006
1006
  field: r
@@ -1112,7 +1112,7 @@ function er(e, t, n) {
1112
1112
  }, z = ce(() => {
1113
1113
  let T = E(t);
1114
1114
  const q = E(p == null ? void 0 : p.schema);
1115
- return q && !Pt(q) && (T = Jo(q, E(e)) || T), Pt(T) || Ct(T) || Array.isArray(T) ? T : qi(T);
1115
+ return q && !Mt(q) && (T = Jo(q, E(e)) || T), Mt(T) || Ct(T) || Array.isArray(T) ? T : qi(T);
1116
1116
  });
1117
1117
  async function M(T) {
1118
1118
  var q, ne;
@@ -1131,7 +1131,7 @@ function er(e, t, n) {
1131
1131
  const ne = Wn(T);
1132
1132
  a.value = ne, !h && q && G();
1133
1133
  }
1134
- Je(() => {
1134
+ Ge(() => {
1135
1135
  if (r)
1136
1136
  return G();
1137
1137
  (!p || !p.validateSchema) && ee();
@@ -1205,10 +1205,10 @@ function er(e, t, n) {
1205
1205
  });
1206
1206
  const _e = ce(() => {
1207
1207
  const T = z.value;
1208
- return !T || Ct(T) || Pt(T) || Array.isArray(T) ? {} : Object.keys(T).reduce((q, ne) => {
1208
+ return !T || Ct(T) || Mt(T) || Array.isArray(T) ? {} : Object.keys(T).reduce((q, ne) => {
1209
1209
  const Se = xo(T[ne]).map((ye) => ye.__locatorRef).reduce((ye, Ae) => {
1210
- const Ge = se(p.values, Ae) || p.values[Ae];
1211
- return Ge !== void 0 && (ye[Ae] = Ge), ye;
1210
+ const We = se(p.values, Ae) || p.values[Ae];
1211
+ return We !== void 0 && (ye[Ae] = We), ye;
1212
1212
  }, {});
1213
1213
  return Object.assign(q, Se), q;
1214
1214
  }, {});
@@ -1354,7 +1354,7 @@ re({
1354
1354
  }
1355
1355
  },
1356
1356
  setup(e, t) {
1357
- const n = Xe(e, "rules"), i = Xe(e, "name"), r = Xe(e, "label"), o = Xe(e, "uncheckedValue"), s = Xe(e, "keepValue"), { errors: c, value: f, errorMessage: h, validate: g, handleChange: _, handleBlur: C, setTouched: O, resetField: I, handleReset: S, meta: A, checked: p, setErrors: l } = Wt(i, n, {
1357
+ const n = Je(e, "rules"), i = Je(e, "name"), r = Je(e, "label"), o = Je(e, "uncheckedValue"), s = Je(e, "keepValue"), { errors: c, value: f, errorMessage: h, validate: g, handleChange: _, handleBlur: C, setTouched: O, resetField: I, handleReset: S, meta: A, checked: p, setErrors: l } = Wt(i, n, {
1358
1358
  validateOnMount: e.validateOnMount,
1359
1359
  bails: e.bails,
1360
1360
  standalone: e.standalone,
@@ -1453,7 +1453,7 @@ function ia(e) {
1453
1453
  return N && (y[k] = (V = N.bails) !== null && V !== void 0 ? V : !0), y;
1454
1454
  }, {})), l = Object.assign({}, (e == null ? void 0 : e.initialErrors) || {}), u = (t = e == null ? void 0 : e.keepValuesOnUnmount) !== null && t !== void 0 ? t : !1, { initialValues: a, originalInitialValues: v, setInitialValues: d } = oa(o, h, e == null ? void 0 : e.initialValues), m = ra(o, h, v, O), w = ce(() => [...i, ...pe(o.value)].reduce((y, k) => {
1455
1455
  const V = se(h, k);
1456
- return Ke(y, k, V), y;
1456
+ return Ye(y, k, V), y;
1457
1457
  }, {})), L = e == null ? void 0 : e.validationSchema, F = ui(st, 5), z = ui(st, 5), M = Dn(async (y) => await y === "silent" ? F() : z(), (y, [k]) => {
1458
1458
  const V = R.fieldsByPath.value || {}, N = pe(R.errorBag.value);
1459
1459
  return [
@@ -1474,7 +1474,7 @@ function ia(e) {
1474
1474
  function G(y) {
1475
1475
  return function(V, N) {
1476
1476
  return function(j) {
1477
- return j instanceof Event && (j.preventDefault(), j.stopPropagation()), q(pe(o.value).reduce((W, ae) => (W[ae] = !0, W), {})), s.value = !0, c.value++, We().then((W) => {
1477
+ return j instanceof Event && (j.preventDefault(), j.stopPropagation()), q(pe(o.value).reduce((W, ae) => (W[ae] = !0, W), {})), s.value = !0, c.value++, qe().then((W) => {
1478
1478
  const ae = te(h);
1479
1479
  if (W.valid && typeof V == "function") {
1480
1480
  const Fe = te(w.value);
@@ -1519,8 +1519,8 @@ function ia(e) {
1519
1519
  fieldArrays: f,
1520
1520
  keepValuesOnUnmount: u,
1521
1521
  validateSchema: E(L) ? M : void 0,
1522
- validate: We,
1523
- register: Ge,
1522
+ validate: qe,
1523
+ register: We,
1524
1524
  unregister: it,
1525
1525
  setFieldErrorBag: C,
1526
1526
  validateField: Qe,
@@ -1559,16 +1559,16 @@ function ia(e) {
1559
1559
  var N;
1560
1560
  const Y = o.value[y], j = te(k);
1561
1561
  if (!Y) {
1562
- Ke(h, y, j);
1562
+ Ye(h, y, j);
1563
1563
  return;
1564
1564
  }
1565
1565
  if (K(Y) && ((N = Y[0]) === null || N === void 0 ? void 0 : N.type) === "checkbox" && !Array.isArray(k)) {
1566
1566
  const ae = te(Vn(se(h, y) || [], k, void 0));
1567
- Ke(h, y, ae);
1567
+ Ye(h, y, ae);
1568
1568
  return;
1569
1569
  }
1570
1570
  let W = j;
1571
- !K(Y) && Y.type === "checkbox" && !V && !r && (W = te(Vn(se(h, y), k, E(Y.uncheckedValue)))), Ke(h, y, W);
1571
+ !K(Y) && Y.type === "checkbox" && !V && !r && (W = te(Vn(se(h, y), k, E(Y.uncheckedValue)))), Ye(h, y, W);
1572
1572
  }
1573
1573
  function Ee(y) {
1574
1574
  pe(h).forEach((k) => {
@@ -1580,7 +1580,7 @@ function ia(e) {
1580
1580
  function le(y) {
1581
1581
  const { value: k } = Xi(y, void 0, R);
1582
1582
  return ue(k, () => {
1583
- S(E(y)) || We({ mode: "validated-only" });
1583
+ S(E(y)) || qe({ mode: "validated-only" });
1584
1584
  }, {
1585
1585
  deep: !0
1586
1586
  }), i.add(E(y)), k;
@@ -1632,7 +1632,7 @@ function ia(e) {
1632
1632
  }
1633
1633
  }
1634
1634
  }
1635
- function Ge(y) {
1635
+ function We(y) {
1636
1636
  const k = E(y.name);
1637
1637
  ye(y, k), Be(y.name) && ue(y.name, async (N, Y) => {
1638
1638
  await ft(), Ae(y, Y), ye(y, N), (O.value[Y] || O.value[N]) && (de(Y, void 0), Qe(N)), await ft(), S(Y) || Qt(h, Y);
@@ -1661,7 +1661,7 @@ function ia(e) {
1661
1661
  }
1662
1662
  });
1663
1663
  }
1664
- async function We(y) {
1664
+ async function qe(y) {
1665
1665
  const k = (y == null ? void 0 : y.mode) || "force";
1666
1666
  if (k === "force" && ge((j) => j.meta.validated = !0), R.validateSchema)
1667
1667
  return R.validateSchema(k);
@@ -1692,14 +1692,14 @@ function ia(e) {
1692
1692
  Qt(a.value, y);
1693
1693
  }
1694
1694
  function ot(y, k, V = !1) {
1695
- Ke(h, y, k), at(y, k), V && !(e != null && e.initialValues) && Ke(v.value, y, te(k));
1695
+ Ye(h, y, k), at(y, k), V && !(e != null && e.initialValues) && Ye(v.value, y, te(k));
1696
1696
  }
1697
1697
  function at(y, k) {
1698
- Ke(a.value, y, te(k));
1698
+ Ye(a.value, y, te(k));
1699
1699
  }
1700
1700
  async function st() {
1701
1701
  const y = E(L);
1702
- return y ? Pt(y) ? await No(y, h) : await Bo(y, h, {
1702
+ return y ? Mt(y) ? await No(y, h) : await Bo(y, h, {
1703
1703
  names: A.value,
1704
1704
  bailsMap: p.value
1705
1705
  }) : { valid: !0, results: {}, errors: {} };
@@ -1707,9 +1707,9 @@ function ia(e) {
1707
1707
  const Me = J((y, { evt: k }) => {
1708
1708
  Gi(k) && k.target.submit();
1709
1709
  });
1710
- return Je(() => {
1710
+ return Ge(() => {
1711
1711
  if (e != null && e.initialErrors && be(e.initialErrors), e != null && e.initialTouched && q(e.initialTouched), e != null && e.validateOnMount) {
1712
- We();
1712
+ qe();
1713
1713
  return;
1714
1714
  }
1715
1715
  R.validateSchema && R.validateSchema("silent");
@@ -1747,7 +1747,7 @@ function oa(e, t, n) {
1747
1747
  if (!h || g)
1748
1748
  return;
1749
1749
  const _ = se(i.value, f);
1750
- Ke(t, f, te(_));
1750
+ Ye(t, f, te(_));
1751
1751
  });
1752
1752
  }
1753
1753
  return Be(n) && ue(n, (s) => {
@@ -1826,7 +1826,7 @@ re({
1826
1826
  }
1827
1827
  },
1828
1828
  setup(e, t) {
1829
- const n = Xe(e, "initialValues"), i = Xe(e, "validationSchema"), r = Xe(e, "keepValues"), { errors: o, values: s, meta: c, isSubmitting: f, submitCount: h, controlledValues: g, validate: _, validateField: C, handleReset: O, resetForm: I, handleSubmit: S, setErrors: A, setFieldError: p, setFieldValue: l, setValues: u, setFieldTouched: a, setTouched: v, resetField: d } = ia({
1829
+ const n = Je(e, "initialValues"), i = Je(e, "validationSchema"), r = Je(e, "keepValues"), { errors: o, values: s, meta: c, isSubmitting: f, submitCount: h, controlledValues: g, validate: _, validateField: C, handleReset: O, resetForm: I, handleSubmit: S, setErrors: A, setFieldError: p, setFieldValue: l, setValues: u, setFieldTouched: a, setTouched: v, resetField: d } = ia({
1830
1830
  validationSchema: i.value ? i : void 0,
1831
1831
  initialValues: n,
1832
1832
  initialErrors: e.initialErrors,
@@ -1965,7 +1965,7 @@ function sa(e) {
1965
1965
  d.splice(u, 1), t == null || t.unsetInitialValue(a + `[${u}]`), t == null || t.setFieldValue(a, d), n.value.splice(u, 1), f();
1966
1966
  }
1967
1967
  function _(u) {
1968
- const a = E(e), v = se(t == null ? void 0 : t.values, a), d = Dt(v) ? [] : v;
1968
+ const a = E(e), v = se(t == null ? void 0 : t.values, a), d = Pt(v) ? [] : v;
1969
1969
  if (!Array.isArray(d))
1970
1970
  return;
1971
1971
  const m = [...d];
@@ -1996,14 +1996,14 @@ function sa(e) {
1996
1996
  !Array.isArray(d) || d.length - 1 < u || (t == null || t.setFieldValue(`${v}[${u}]`, a), t == null || t.validate({ mode: "validated-only" }));
1997
1997
  }
1998
1998
  function A(u) {
1999
- const a = E(e), v = se(t == null ? void 0 : t.values, a), d = Dt(v) ? [] : v;
1999
+ const a = E(e), v = se(t == null ? void 0 : t.values, a), d = Pt(v) ? [] : v;
2000
2000
  if (!Array.isArray(d))
2001
2001
  return;
2002
2002
  const m = [u, ...d];
2003
2003
  t == null || t.stageInitialValue(a + `[${m.length - 1}]`, u), t == null || t.setFieldValue(a, m), n.value.unshift(h(u)), f();
2004
2004
  }
2005
2005
  function p(u, a) {
2006
- const v = E(e), d = se(t == null ? void 0 : t.values, v), m = Dt(d) ? [] : [...d];
2006
+ const v = E(e), d = se(t == null ? void 0 : t.values, v), m = Pt(d) ? [] : [...d];
2007
2007
  if (!Array.isArray(d) || !(u in d) || !(a in d))
2008
2008
  return;
2009
2009
  const w = [...n.value], L = w[u];
@@ -2037,7 +2037,7 @@ re({
2037
2037
  }
2038
2038
  },
2039
2039
  setup(e, t) {
2040
- const { push: n, remove: i, swap: r, insert: o, replace: s, update: c, prepend: f, move: h, fields: g } = sa(Xe(e, "name"));
2040
+ const { push: n, remove: i, swap: r, insert: o, replace: s, update: c, prepend: f, move: h, fields: g } = sa(Je(e, "name"));
2041
2041
  function _() {
2042
2042
  return {
2043
2043
  fields: g.value,
@@ -2091,7 +2091,7 @@ re({
2091
2091
  }
2092
2092
  });
2093
2093
  /*! maska v2.1.7 | (c) Alexander Shabunevich | Released under the MIT license */
2094
- var la = Object.defineProperty, ua = (e, t, n) => t in e ? la(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, $t = (e, t, n) => (ua(e, typeof t != "symbol" ? t + "" : t, n), n);
2094
+ var la = Object.defineProperty, ua = (e, t, n) => t in e ? la(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Nt = (e, t, n) => (ua(e, typeof t != "symbol" ? t + "" : t, n), n);
2095
2095
  const vi = {
2096
2096
  "#": { pattern: /[0-9]/ },
2097
2097
  "@": { pattern: /[a-zA-Z]/ },
@@ -2099,7 +2099,7 @@ const vi = {
2099
2099
  };
2100
2100
  class hi {
2101
2101
  constructor(t = {}) {
2102
- $t(this, "opts", {}), $t(this, "memo", /* @__PURE__ */ new Map());
2102
+ Nt(this, "opts", {}), Nt(this, "memo", /* @__PURE__ */ new Map());
2103
2103
  var n;
2104
2104
  const i = { ...t };
2105
2105
  if (i.tokens != null) {
@@ -2195,10 +2195,10 @@ const tr = (e) => JSON.parse(e.replaceAll("'", '"')), mi = (e, t = {}) => {
2195
2195
  };
2196
2196
  class fa {
2197
2197
  constructor(t, n = {}) {
2198
- $t(this, "items", /* @__PURE__ */ new Map()), $t(this, "beforeinputEvent", (i) => {
2198
+ Nt(this, "items", /* @__PURE__ */ new Map()), Nt(this, "beforeinputEvent", (i) => {
2199
2199
  const r = i.target, o = this.items.get(r);
2200
2200
  o.isEager() && "inputType" in i && i.inputType.startsWith("delete") && o.unmasked(r.value).length <= 1 && this.setMaskedValue(r, "");
2201
- }), $t(this, "inputEvent", (i) => {
2201
+ }), Nt(this, "inputEvent", (i) => {
2202
2202
  if (i instanceof CustomEvent && i.type === "input" && i.detail != null && typeof i.detail == "object" && "masked" in i.detail)
2203
2203
  return;
2204
2204
  const r = i.target, o = this.items.get(r), s = r.value, c = r.selectionStart, f = r.selectionEnd;
@@ -2350,7 +2350,7 @@ const ba = ["data-maska", "id", "inputmode", "placeholder", "type", "value", "di
2350
2350
  i.validation,
2351
2351
  { initialValue: i.modelValue }
2352
2352
  ), f = U(), h = U();
2353
- return Je(() => {
2353
+ return Ge(() => {
2354
2354
  if (i.suffix) {
2355
2355
  const g = parseInt(
2356
2356
  window.getComputedStyle(f.value).getPropertyValue("padding-right")
@@ -3136,7 +3136,7 @@ const Oa = ["id", "placeholder", "disabled", "value", "autocomplete"], Ea = /* @
3136
3136
  i.validation,
3137
3137
  { initialValue: i.modelValue }
3138
3138
  );
3139
- return t({ errorMessage: s, meta: c, validate: f }), Je(() => {
3139
+ return t({ errorMessage: s, meta: c, validate: f }), Ge(() => {
3140
3140
  r.value.addEventListener(
3141
3141
  "countrychange",
3142
3142
  () => n(
@@ -3300,9 +3300,9 @@ const Ha = (e) => (mt("data-v-5e8dff70"), e = e(), gt(), e), Ga = { class: "sele
3300
3300
  d.style.width = `${m}px`, d.style.whiteSpace = "nowrap";
3301
3301
  });
3302
3302
  });
3303
- Je(() => {
3303
+ Ge(() => {
3304
3304
  A.observe(s.value), window.addEventListener("resize", S);
3305
- }), Ht(() => {
3305
+ }), Vt(() => {
3306
3306
  window.removeEventListener("resize", S);
3307
3307
  });
3308
3308
  const p = (v) => {
@@ -3337,7 +3337,7 @@ const Ha = (e) => (mt("data-v-5e8dff70"), e = e(), gt(), e), Ga = { class: "sele
3337
3337
  Wa
3338
3338
  ], 2),
3339
3339
  (P(), me(Bn, { to: "body" }, [
3340
- zt(sn, {
3340
+ Ht(sn, {
3341
3341
  name: "slide-fade",
3342
3342
  onEnter: u,
3343
3343
  onAfterLeave: d[2] || (d[2] = (m) => f.value = null)
@@ -3535,9 +3535,9 @@ const ms = (e) => (mt("data-v-3d3a0375"), e = e(), gt(), e), gs = { class: "coll
3535
3535
  i.value.style.height = "0", i.value.style.overflow = "";
3536
3536
  });
3537
3537
  };
3538
- return Je(() => {
3538
+ return Ge(() => {
3539
3539
  t.defaultActive && o(), window.addEventListener("resize", o);
3540
- }), Ht(() => {
3540
+ }), Vt(() => {
3541
3541
  window.removeEventListener("resize", o);
3542
3542
  }), (c, f) => (P(), H("div", gs, [
3543
3543
  $("div", {
@@ -3549,7 +3549,7 @@ const ms = (e) => (mt("data-v-3d3a0375"), e = e(), gt(), e), gs = { class: "coll
3549
3549
  ]),
3550
3550
  bs
3551
3551
  ], 2),
3552
- zt(sn, {
3552
+ Ht(sn, {
3553
3553
  name: "slide",
3554
3554
  onBeforeEnter: s,
3555
3555
  onEnter: o,
@@ -3627,7 +3627,7 @@ const As = (e) => (mt("data-v-93c6b294"), e = e(), gt(), e), Is = ["onClick"], S
3627
3627
  n.value = !1;
3628
3628
  };
3629
3629
  return t({ openDetails: r, closeDetails: o }), (s, c) => (P(), me(Bn, { to: "body" }, [
3630
- zt(sn, { name: "details" }, {
3630
+ Ht(sn, { name: "details" }, {
3631
3631
  default: Ue(() => [
3632
3632
  n.value ? (P(), H("div", {
3633
3633
  key: 0,
@@ -3683,10 +3683,10 @@ const As = (e) => (mt("data-v-93c6b294"), e = e(), gt(), e), Is = ["onClick"], S
3683
3683
  * (c) 2022
3684
3684
  * @license MIT
3685
3685
  */
3686
- var ke = "top", De = "bottom", Pe = "right", Oe = "left", Yn = "auto", Kt = [ke, De, Pe, Oe], Et = "start", Rt = "end", Ms = "clippingParents", or = "viewport", Vt = "popper", Fs = "reference", yi = /* @__PURE__ */ Kt.reduce(function(e, t) {
3687
- return e.concat([t + "-" + Et, t + "-" + Rt]);
3686
+ var ke = "top", De = "bottom", Pe = "right", Oe = "left", Yn = "auto", Kt = [ke, De, Pe, Oe], Et = "start", jt = "end", Ms = "clippingParents", or = "viewport", Dt = "popper", Fs = "reference", yi = /* @__PURE__ */ Kt.reduce(function(e, t) {
3687
+ return e.concat([t + "-" + Et, t + "-" + jt]);
3688
3688
  }, []), ar = /* @__PURE__ */ [].concat(Kt, [Yn]).reduce(function(e, t) {
3689
- return e.concat([t, t + "-" + Et, t + "-" + Rt]);
3689
+ return e.concat([t, t + "-" + Et, t + "-" + jt]);
3690
3690
  }, []), $s = "beforeRead", Ns = "read", Bs = "afterRead", Rs = "beforeMain", js = "main", Us = "afterMain", zs = "beforeWrite", Hs = "write", Gs = "afterWrite", Ws = [$s, Ns, Bs, Rs, js, Us, zs, Hs, Gs];
3691
3691
  function ze(e) {
3692
3692
  return e ? (e.nodeName || "").toLowerCase() : null;
@@ -3839,11 +3839,11 @@ function Yt(e) {
3839
3839
  function Jn(e) {
3840
3840
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
3841
3841
  }
3842
- function Nt(e, t, n) {
3842
+ function Bt(e, t, n) {
3843
3843
  return pt(e, on(t, n));
3844
3844
  }
3845
3845
  function Js(e, t, n) {
3846
- var i = Nt(e, t, n);
3846
+ var i = Bt(e, t, n);
3847
3847
  return i > n ? n : i;
3848
3848
  }
3849
3849
  function cr() {
@@ -3870,7 +3870,7 @@ var Qs = function(t, n) {
3870
3870
  function Zs(e) {
3871
3871
  var t, n = e.state, i = e.name, r = e.options, o = n.elements.arrow, s = n.modifiersData.popperOffsets, c = je(n.placement), f = Jn(c), h = [Oe, Pe].indexOf(c) >= 0, g = h ? "height" : "width";
3872
3872
  if (!(!o || !s)) {
3873
- var _ = Qs(r.padding, n), C = Xn(o), O = f === "y" ? ke : Oe, I = f === "y" ? De : Pe, S = n.rects.reference[g] + n.rects.reference[f] - s[f] - n.rects.popper[g], A = s[f] - n.rects.reference[f], p = Yt(o), l = p ? f === "y" ? p.clientHeight || 0 : p.clientWidth || 0 : 0, u = S / 2 - A / 2, a = _[O], v = l - C[g] - _[I], d = l / 2 - C[g] / 2 + u, m = Nt(a, d, v), w = f;
3873
+ var _ = Qs(r.padding, n), C = Xn(o), O = f === "y" ? ke : Oe, I = f === "y" ? De : Pe, S = n.rects.reference[g] + n.rects.reference[f] - s[f] - n.rects.popper[g], A = s[f] - n.rects.reference[f], p = Yt(o), l = p ? f === "y" ? p.clientHeight || 0 : p.clientWidth || 0 : 0, u = S / 2 - A / 2, a = _[O], v = l - C[g] - _[I], d = l / 2 - C[g] / 2 + u, m = Bt(a, d, v), w = f;
3874
3874
  n.modifiersData[i] = (t = {}, t[w] = m, t.centerOffset = m - d, t);
3875
3875
  }
3876
3876
  }
@@ -3907,12 +3907,12 @@ function _i(e) {
3907
3907
  var t, n = e.popper, i = e.popperRect, r = e.placement, o = e.variation, s = e.offsets, c = e.position, f = e.gpuAcceleration, h = e.adaptive, g = e.roundOffsets, _ = e.isFixed, C = g === !0 ? il(s) : typeof g == "function" ? g(s) : s, O = C.x, I = O === void 0 ? 0 : O, S = C.y, A = S === void 0 ? 0 : S, p = s.hasOwnProperty("x"), l = s.hasOwnProperty("y"), u = Oe, a = ke, v = window;
3908
3908
  if (h) {
3909
3909
  var d = Yt(n), m = "clientHeight", w = "clientWidth";
3910
- if (d === Ne(n) && (d = nt(n), He(d).position !== "static" && c === "absolute" && (m = "scrollHeight", w = "scrollWidth")), d = d, r === ke || (r === Oe || r === Pe) && o === Rt) {
3910
+ if (d === Ne(n) && (d = nt(n), He(d).position !== "static" && c === "absolute" && (m = "scrollHeight", w = "scrollWidth")), d = d, r === ke || (r === Oe || r === Pe) && o === jt) {
3911
3911
  a = De;
3912
3912
  var L = _ && v.visualViewport ? v.visualViewport.height : d[m];
3913
3913
  A -= L - i.height, A *= f ? 1 : -1;
3914
3914
  }
3915
- if (r === Oe || (r === ke || r === De) && o === Rt) {
3915
+ if (r === Oe || (r === ke || r === De) && o === jt) {
3916
3916
  u = Pe;
3917
3917
  var F = _ && v.visualViewport ? v.visualViewport.width : d[w];
3918
3918
  I -= F - i.width, I *= f ? 1 : -1;
@@ -4032,11 +4032,11 @@ function ei(e) {
4032
4032
  function pr(e) {
4033
4033
  return ["html", "body", "#document"].indexOf(ze(e)) >= 0 ? e.ownerDocument.body : Ve(e) && ei(e) ? e : pr(hn(e));
4034
4034
  }
4035
- function Bt(e, t) {
4035
+ function Rt(e, t) {
4036
4036
  var n;
4037
4037
  t === void 0 && (t = []);
4038
4038
  var i = pr(e), r = i === ((n = e.ownerDocument) == null ? void 0 : n.body), o = Ne(i), s = r ? [o].concat(o.visualViewport || [], ei(i) ? i : []) : i, c = t.concat(s);
4039
- return r ? c : c.concat(Bt(hn(s)));
4039
+ return r ? c : c.concat(Rt(hn(s)));
4040
4040
  }
4041
4041
  function Mn(e) {
4042
4042
  return Object.assign({}, e, {
@@ -4054,7 +4054,7 @@ function Ci(e, t) {
4054
4054
  return t === or ? Mn(cl(e)) : At(t) ? fl(t) : Mn(dl(nt(e)));
4055
4055
  }
4056
4056
  function pl(e) {
4057
- var t = Bt(hn(e)), n = ["absolute", "fixed"].indexOf(He(e).position) >= 0, i = n && Ve(e) ? Yt(e) : e;
4057
+ var t = Rt(hn(e)), n = ["absolute", "fixed"].indexOf(He(e).position) >= 0, i = n && Ve(e) ? Yt(e) : e;
4058
4058
  return At(i) ? t.filter(function(r) {
4059
4059
  return At(r) && ur(r, i) && ze(r) !== "body" && (n ? He(r).position !== "static" : !0);
4060
4060
  }) : [];
@@ -4106,27 +4106,27 @@ function vr(e) {
4106
4106
  case Et:
4107
4107
  f[h] = f[h] - (t[g] / 2 - n[g] / 2);
4108
4108
  break;
4109
- case Rt:
4109
+ case jt:
4110
4110
  f[h] = f[h] + (t[g] / 2 - n[g] / 2);
4111
4111
  break;
4112
4112
  }
4113
4113
  }
4114
4114
  return f;
4115
4115
  }
4116
- function jt(e, t) {
4116
+ function Ut(e, t) {
4117
4117
  t === void 0 && (t = {});
4118
- var n = t, i = n.placement, r = i === void 0 ? e.placement : i, o = n.boundary, s = o === void 0 ? Ms : o, c = n.rootBoundary, f = c === void 0 ? or : c, h = n.elementContext, g = h === void 0 ? Vt : h, _ = n.altBoundary, C = _ === void 0 ? !1 : _, O = n.padding, I = O === void 0 ? 0 : O, S = dr(typeof I != "number" ? I : fr(I, Kt)), A = g === Vt ? Fs : Vt, p = e.rects.popper, l = e.elements[C ? A : g], u = vl(At(l) ? l : l.contextElement || nt(e.elements.popper), s, f), a = St(e.elements.reference), v = vr({
4118
+ var n = t, i = n.placement, r = i === void 0 ? e.placement : i, o = n.boundary, s = o === void 0 ? Ms : o, c = n.rootBoundary, f = c === void 0 ? or : c, h = n.elementContext, g = h === void 0 ? Dt : h, _ = n.altBoundary, C = _ === void 0 ? !1 : _, O = n.padding, I = O === void 0 ? 0 : O, S = dr(typeof I != "number" ? I : fr(I, Kt)), A = g === Dt ? Fs : Dt, p = e.rects.popper, l = e.elements[C ? A : g], u = vl(At(l) ? l : l.contextElement || nt(e.elements.popper), s, f), a = St(e.elements.reference), v = vr({
4119
4119
  reference: a,
4120
4120
  element: p,
4121
4121
  strategy: "absolute",
4122
4122
  placement: r
4123
- }), d = Mn(Object.assign({}, p, v)), m = g === Vt ? d : a, w = {
4123
+ }), d = Mn(Object.assign({}, p, v)), m = g === Dt ? d : a, w = {
4124
4124
  top: u.top - m.top + S.top,
4125
4125
  bottom: m.bottom - u.bottom + S.bottom,
4126
4126
  left: u.left - m.left + S.left,
4127
4127
  right: m.right - u.right + S.right
4128
4128
  }, L = e.modifiersData.offset;
4129
- if (g === Vt && L) {
4129
+ if (g === Dt && L) {
4130
4130
  var F = L[r];
4131
4131
  Object.keys(w).forEach(function(z) {
4132
4132
  var M = [Pe, De].indexOf(z) >= 0 ? 1 : -1, G = [ke, De].indexOf(z) >= 0 ? "y" : "x";
@@ -4144,7 +4144,7 @@ function hl(e, t) {
4144
4144
  });
4145
4145
  C.length === 0 && (C = _);
4146
4146
  var O = C.reduce(function(I, S) {
4147
- return I[S] = jt(e, {
4147
+ return I[S] = Ut(e, {
4148
4148
  placement: S,
4149
4149
  boundary: r,
4150
4150
  rootBoundary: o,
@@ -4174,7 +4174,7 @@ function gl(e) {
4174
4174
  allowedAutoPlacements: S
4175
4175
  }) : _e);
4176
4176
  }, []), v = t.rects.reference, d = t.rects.popper, m = /* @__PURE__ */ new Map(), w = !0, L = a[0], F = 0; F < a.length; F++) {
4177
- var z = a[F], M = je(z), G = Tt(z) === Et, ee = [ke, De].indexOf(M) >= 0, J = ee ? "width" : "height", R = jt(t, {
4177
+ var z = a[F], M = je(z), G = Tt(z) === Et, ee = [ke, De].indexOf(M) >= 0, J = ee ? "width" : "height", R = Ut(t, {
4178
4178
  placement: z,
4179
4179
  boundary: g,
4180
4180
  rootBoundary: _,
@@ -4237,9 +4237,9 @@ function Oi(e) {
4237
4237
  });
4238
4238
  }
4239
4239
  function bl(e) {
4240
- var t = e.state, n = e.name, i = t.rects.reference, r = t.rects.popper, o = t.modifiersData.preventOverflow, s = jt(t, {
4240
+ var t = e.state, n = e.name, i = t.rects.reference, r = t.rects.popper, o = t.modifiersData.preventOverflow, s = Ut(t, {
4241
4241
  elementContext: "reference"
4242
- }), c = jt(t, {
4242
+ }), c = Ut(t, {
4243
4243
  altBoundary: !0
4244
4244
  }), f = ki(s, i), h = ki(c, r, o), g = Oi(f), _ = Oi(h);
4245
4245
  t.modifiersData[n] = {
@@ -4304,7 +4304,7 @@ function Al(e) {
4304
4304
  return e === "x" ? "y" : "x";
4305
4305
  }
4306
4306
  function Il(e) {
4307
- var t = e.state, n = e.options, i = e.name, r = n.mainAxis, o = r === void 0 ? !0 : r, s = n.altAxis, c = s === void 0 ? !1 : s, f = n.boundary, h = n.rootBoundary, g = n.altBoundary, _ = n.padding, C = n.tether, O = C === void 0 ? !0 : C, I = n.tetherOffset, S = I === void 0 ? 0 : I, A = jt(t, {
4307
+ var t = e.state, n = e.options, i = e.name, r = n.mainAxis, o = r === void 0 ? !0 : r, s = n.altAxis, c = s === void 0 ? !1 : s, f = n.boundary, h = n.rootBoundary, g = n.altBoundary, _ = n.padding, C = n.tether, O = C === void 0 ? !0 : C, I = n.tetherOffset, S = I === void 0 ? 0 : I, A = Ut(t, {
4308
4308
  boundary: f,
4309
4309
  rootBoundary: h,
4310
4310
  padding: _,
@@ -4326,11 +4326,11 @@ function Il(e) {
4326
4326
  var G, ee = a === "y" ? ke : Oe, J = a === "y" ? De : Pe, R = a === "y" ? "height" : "width", K = d[a], Q = K + A[ee], ge = K - A[J], de = O ? -w[R] / 2 : 0, be = l === Et ? m[R] : w[R], he = l === Et ? -w[R] : -m[R], Ee = t.elements.arrow, le = O && Ee ? Xn(Ee) : {
4327
4327
  width: 0,
4328
4328
  height: 0
4329
- }, _e = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : cr(), T = _e[ee], q = _e[J], ne = Nt(0, m[R], le[R]), Se = u ? m[R] / 2 - de - ne - T - F.mainAxis : be - ne - T - F.mainAxis, ye = u ? -m[R] / 2 + de + ne + q + F.mainAxis : he + ne + q + F.mainAxis, Ae = t.elements.arrow && Yt(t.elements.arrow), Ge = Ae ? a === "y" ? Ae.clientTop || 0 : Ae.clientLeft || 0 : 0, it = (G = z == null ? void 0 : z[a]) != null ? G : 0, We = K + Se - it - Ge, Qe = K + ye - it, rt = Nt(O ? on(Q, We) : Q, K, O ? pt(ge, Qe) : ge);
4329
+ }, _e = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : cr(), T = _e[ee], q = _e[J], ne = Bt(0, m[R], le[R]), Se = u ? m[R] / 2 - de - ne - T - F.mainAxis : be - ne - T - F.mainAxis, ye = u ? -m[R] / 2 + de + ne + q + F.mainAxis : he + ne + q + F.mainAxis, Ae = t.elements.arrow && Yt(t.elements.arrow), We = Ae ? a === "y" ? Ae.clientTop || 0 : Ae.clientLeft || 0 : 0, it = (G = z == null ? void 0 : z[a]) != null ? G : 0, qe = K + Se - it - We, Qe = K + ye - it, rt = Bt(O ? on(Q, qe) : Q, K, O ? pt(ge, Qe) : ge);
4330
4330
  d[a] = rt, M[a] = rt - K;
4331
4331
  }
4332
4332
  if (c) {
4333
- var ot, at = a === "x" ? ke : Oe, st = a === "x" ? De : Pe, Me = d[v], y = v === "y" ? "height" : "width", k = Me + A[at], V = Me - A[st], N = [ke, Oe].indexOf(p) !== -1, Y = (ot = z == null ? void 0 : z[v]) != null ? ot : 0, j = N ? k : Me - m[y] - w[y] - Y + F.altAxis, W = N ? Me + m[y] + w[y] - Y - F.altAxis : V, ae = O && N ? Js(j, Me, W) : Nt(O ? j : k, Me, O ? W : V);
4333
+ var ot, at = a === "x" ? ke : Oe, st = a === "x" ? De : Pe, Me = d[v], y = v === "y" ? "height" : "width", k = Me + A[at], V = Me - A[st], N = [ke, Oe].indexOf(p) !== -1, Y = (ot = z == null ? void 0 : z[v]) != null ? ot : 0, j = N ? k : Me - m[y] - w[y] - Y + F.altAxis, W = N ? Me + m[y] + w[y] - Y - F.altAxis : V, ae = O && N ? Js(j, Me, W) : Bt(O ? j : k, Me, O ? W : V);
4334
4334
  d[v] = ae, M[v] = ae - Me;
4335
4335
  }
4336
4336
  t.modifiersData[i] = M;
@@ -4454,8 +4454,8 @@ function $l(e) {
4454
4454
  setOptions: function(p) {
4455
4455
  var l = typeof p == "function" ? p(g.options) : p;
4456
4456
  S(), g.options = Object.assign({}, o, g.options, l), g.scrollParents = {
4457
- reference: At(c) ? Bt(c) : c.contextElement ? Bt(c.contextElement) : [],
4458
- popper: Bt(f)
4457
+ reference: At(c) ? Rt(c) : c.contextElement ? Rt(c.contextElement) : [],
4458
+ popper: Rt(f)
4459
4459
  };
4460
4460
  var u = Pl(Fl([].concat(i, g.options.modifiers)));
4461
4461
  return g.orderedModifiers = u.filter(function(a) {
@@ -4613,7 +4613,7 @@ function En(e, t) {
4613
4613
  n && (n.style.transitionDuration = t + "ms");
4614
4614
  });
4615
4615
  }
4616
- function Ut(e, t) {
4616
+ function zt(e, t) {
4617
4617
  e.forEach(function(n) {
4618
4618
  n && n.setAttribute("data-state", t);
4619
4619
  });
@@ -4820,7 +4820,7 @@ function Er(e) {
4820
4820
  Er.$$tippy = !0;
4821
4821
  var ou = 1, en = [], In = [];
4822
4822
  function au(e, t) {
4823
- var n = Vi(e, Object.assign({}, $e, Or(Ti(t)))), i, r, o, s = !1, c = !1, f = !1, h = !1, g, _, C, O = [], I = Ii(We, n.interactiveDebounce), S, A = ou++, p = null, l = zl(n.plugins), u = {
4823
+ var n = Vi(e, Object.assign({}, $e, Or(Ti(t)))), i, r, o, s = !1, c = !1, f = !1, h = !1, g, _, C, O = [], I = Ii(qe, n.interactiveDebounce), S, A = ou++, p = null, l = zl(n.plugins), u = {
4824
4824
  isEnabled: !0,
4825
4825
  isVisible: !1,
4826
4826
  isDestroyed: !1,
@@ -5000,7 +5000,7 @@ function au(e, t) {
5000
5000
  }
5001
5001
  });
5002
5002
  }
5003
- function Ge() {
5003
+ function We() {
5004
5004
  O.forEach(function(b) {
5005
5005
  var x = b.node, B = b.eventType, Z = b.handler, X = b.options;
5006
5006
  x.removeEventListener(B, Z, X);
@@ -5015,7 +5015,7 @@ function au(e, t) {
5015
5015
  }), b.type === "click" && (a.props.trigger.indexOf("mouseenter") < 0 || s) && a.props.hideOnClick !== !1 && a.state.isVisible ? B = !0 : k(b), b.type === "click" && (s = !B), B && !Z && V(b);
5016
5016
  }
5017
5017
  }
5018
- function We(b) {
5018
+ function qe(b) {
5019
5019
  var x = b.target, B = G().contains(x) || d.contains(x);
5020
5020
  if (!(b.type === "mousemove" && B)) {
5021
5021
  var Z = y().concat(d).map(function(X) {
@@ -5144,11 +5144,11 @@ function au(e, t) {
5144
5144
  }
5145
5145
  function W(b) {
5146
5146
  if (!a.state.isDestroyed) {
5147
- Q("onBeforeUpdate", [a, b]), Ge();
5147
+ Q("onBeforeUpdate", [a, b]), We();
5148
5148
  var x = a.props, B = Vi(e, Object.assign({}, x, Ti(b), {
5149
5149
  ignoreAttributes: !0
5150
5150
  }));
5151
- a.props = B, Ae(), x.interactiveDebounce !== B.interactiveDebounce && (be(), I = Ii(We, B.interactiveDebounce)), x.triggerTarget && !B.triggerTarget ? dt(x.triggerTarget).forEach(function(Z) {
5151
+ a.props = B, Ae(), x.interactiveDebounce !== B.interactiveDebounce && (be(), I = Ii(qe, B.interactiveDebounce)), x.triggerTarget && !B.triggerTarget ? dt(x.triggerTarget).forEach(function(Z) {
5152
5152
  Z.removeAttribute("aria-expanded");
5153
5153
  }) : B.triggerTarget && e.removeAttribute("aria-expanded"), de(), K(), m && m(x, B), a.popperInstance && (at(), y().forEach(function(Z) {
5154
5154
  requestAnimationFrame(Z._tippy.popperInstance.forceUpdate);
@@ -5172,7 +5172,7 @@ function au(e, t) {
5172
5172
  if (!(!a.state.isVisible || h)) {
5173
5173
  if (h = !0, d.offsetHeight, d.style.transition = a.props.moveTransition, M() && a.props.animation) {
5174
5174
  var yn = J(), Xt = yn.box, bt = yn.content;
5175
- En([Xt, bt], X), Ut([Xt, bt], "visible");
5175
+ En([Xt, bt], X), zt([Xt, bt], "visible");
5176
5176
  }
5177
5177
  ge(), de(), Si(In, a), (ut = a.popperInstance) == null || ut.forceUpdate(), Q("onMount", [a]), a.props.animation && M() && ne(X, function() {
5178
5178
  a.state.isShown = !0, Q("onShown", [a]);
@@ -5186,7 +5186,7 @@ function au(e, t) {
5186
5186
  if (!(b || x || B) && (Q("onHide", [a], !1), a.props.onHide(a) !== !1)) {
5187
5187
  if (a.state.isVisible = !1, a.state.isShown = !1, h = !1, s = !1, M() && (d.style.visibility = "hidden"), be(), T(), K(!0), M()) {
5188
5188
  var X = J(), we = X.box, Le = X.content;
5189
- a.props.animation && (En([we, Le], Z), Ut([we, Le], "hidden"));
5189
+ a.props.animation && (En([we, Le], Z), zt([we, Le], "hidden"));
5190
5190
  }
5191
5191
  ge(), de(), a.props.animation ? M() && q(Z, a.unmount) : a.unmount();
5192
5192
  }
@@ -5202,7 +5202,7 @@ function au(e, t) {
5202
5202
  }), a.state.isMounted = !1, Q("onHidden", [a]));
5203
5203
  }
5204
5204
  function Sr() {
5205
- a.state.isDestroyed || (a.clearDelayTimeouts(), a.unmount(), Ge(), delete e._tippy, a.state.isDestroyed = !0, Q("onDestroy", [a]));
5205
+ a.state.isDestroyed || (a.clearDelayTimeouts(), a.unmount(), We(), delete e._tippy, a.state.isDestroyed = !0, Q("onDestroy", [a]));
5206
5206
  }
5207
5207
  }
5208
5208
  function D(e, t) {
@@ -5364,21 +5364,21 @@ var su = Object.assign({}, lr, {
5364
5364
  onMount: function() {
5365
5365
  if (s) {
5366
5366
  var f = r.style.transitionDuration, h = Number(f.replace("ms", ""));
5367
- o.style.transitionDelay = Math.round(h / 10) + "ms", s.style.transitionDuration = f, Ut([s], "visible");
5367
+ o.style.transitionDelay = Math.round(h / 10) + "ms", s.style.transitionDuration = f, zt([s], "visible");
5368
5368
  }
5369
5369
  },
5370
5370
  onShow: function() {
5371
5371
  s && (s.style.transitionDuration = "0ms");
5372
5372
  },
5373
5373
  onHide: function() {
5374
- s && Ut([s], "hidden");
5374
+ s && zt([s], "hidden");
5375
5375
  }
5376
5376
  };
5377
5377
  }
5378
5378
  };
5379
5379
  function cu() {
5380
5380
  var e = vt();
5381
- return e.className = mr, Ut([e], "hidden"), e;
5381
+ return e.className = mr, zt([e], "hidden"), e;
5382
5382
  }
5383
5383
  var $n = {
5384
5384
  clientX: 0,
@@ -5702,13 +5702,13 @@ function Ir(e, t = {}, n = { mount: !0 }) {
5702
5702
  mount: a,
5703
5703
  state: o
5704
5704
  };
5705
- return n.mount && (i ? (i.isMounted ? a() : Je(a), Ht(() => {
5705
+ return n.mount && (i ? (i.isMounted ? a() : Ge(a), Vt(() => {
5706
5706
  I();
5707
5707
  })) : a()), Be(t) || ri(t) ? ue(t, g, { immediate: !1 }) : Be(t.content) && ue(t.content, _, { immediate: !1 }), v;
5708
5708
  }
5709
5709
  function yu(e, t) {
5710
5710
  const n = U();
5711
- return Je(() => {
5711
+ return Ge(() => {
5712
5712
  const r = (Array.isArray(e) ? e.map((o) => o.value) : typeof e == "function" ? e() : e.value).map((o) => o instanceof Element ? o._tippy : o).filter(Boolean);
5713
5713
  n.value = lu(r, t ? { allowHTML: !0, ...t } : { allowHTML: !0 });
5714
5714
  }), {
@@ -5789,7 +5789,7 @@ const bu = re({
5789
5789
  let f = r;
5790
5790
  e.to && (typeof Element < "u" && e.to instanceof Element ? f = () => e.to : (typeof e.to == "string" || e.to instanceof String) && (f = () => document.querySelector(e.to)));
5791
5791
  const h = Ir(f, c());
5792
- Je(() => {
5792
+ Ge(() => {
5793
5793
  s.value = !0, ft(() => {
5794
5794
  t.content && h.setContent(() => o.value);
5795
5795
  });
@@ -5932,7 +5932,11 @@ const Au = 100, Tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
5932
5932
  for (const i in e)
5933
5933
  t.value[i] = window.innerWidth >= e[i];
5934
5934
  };
5935
- return window.addEventListener("resize", n), n(), { activeViewport: t };
5935
+ return Ge(() => {
5936
+ window.addEventListener("resize", n), n();
5937
+ }), Vt(() => {
5938
+ window.removeEventListener("resize", n);
5939
+ }), { activeViewport: t };
5936
5940
  };
5937
5941
  function Iu(e) {
5938
5942
  for (const t in gi)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cja-phoenix",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "scripts": {
5
5
  "build:dev": "rimraf dist && vue-tsc && vite build -m development",
6
6
  "build:link": "rimraf dist && vue-tsc && vite build -m development && npm link",
@@ -1,4 +1,4 @@
1
- import { Ref, ref } from "vue";
1
+ import { Ref, onMounted, onUnmounted, ref } from "vue";
2
2
 
3
3
  export const useViewportDetector = (
4
4
  breakpoints: { [index: string]: number } = {
@@ -17,8 +17,14 @@ export const useViewportDetector = (
17
17
  }
18
18
  };
19
19
 
20
- window.addEventListener("resize", setViewports);
21
- setViewports();
20
+ onMounted(() => {
21
+ window.addEventListener("resize", setViewports);
22
+ setViewports();
23
+ });
24
+
25
+ onUnmounted(() => {
26
+ window.removeEventListener("resize", setViewports);
27
+ });
22
28
 
23
29
  return { activeViewport };
24
30
  };