@26lights/orcha 0.7.29 → 0.7.31

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.
package/dist/orcha.es.js CHANGED
@@ -1,6 +1,6 @@
1
- import { defineComponent as K, openBlock as u, createBlock as N, unref as O, mergeProps as Ee, createElementBlock as C, createElementVNode as r, pushScopeId as Nt, popScopeId as jt, createStaticVNode as Rt, computed as f, resolveDynamicComponent as ze, normalizeClass as F, renderSlot as Y, toDisplayString as j, createCommentVNode as w, ref as x, watch as de, nextTick as He, withKeys as t1, toHandlers as Ut, withCtx as R, createTextVNode as Z1, createVNode as b, Fragment as le, renderList as pe, withModifiers as ke, toRefs as ge, getCurrentInstance as Oe, onMounted as m1, onUnmounted as qt, withDirectives as Ue, vModelText as s1, vModelCheckbox as zt, toRef as Qe, Teleport as C1, normalizeStyle as Ft, resolveComponent as Kt, toValue as x1, getCurrentScope as Gt, onScopeDispose as Yt, provide as Wt } from "vue";
1
+ import { defineComponent as K, openBlock as u, createBlock as N, unref as O, mergeProps as Ee, createElementBlock as C, createElementVNode as r, pushScopeId as Nt, popScopeId as jt, createStaticVNode as Rt, computed as f, resolveDynamicComponent as ze, normalizeClass as F, renderSlot as Y, toDisplayString as j, createCommentVNode as w, ref as Q, watch as de, nextTick as He, withKeys as a1, toHandlers as Ut, withCtx as R, createTextVNode as Z1, createVNode as b, Fragment as ae, renderList as pe, withModifiers as Ie, toRefs as fe, getCurrentInstance as Oe, onMounted as m1, onUnmounted as qt, withDirectives as Ue, vModelText as l1, vModelCheckbox as zt, toRef as xe, Teleport as C1, normalizeStyle as Ft, resolveComponent as Kt, toValue as x1, getCurrentScope as Gt, onScopeDispose as Yt, provide as Wt } from "vue";
2
2
  import { RouterView as Xt } from "vue-router";
3
- import a1 from "vuedraggable";
3
+ import n1 from "vuedraggable";
4
4
  const Nu = /* @__PURE__ */ K({
5
5
  __name: "AoTemplates",
6
6
  props: {
@@ -89,7 +89,7 @@ const ys = /* @__PURE__ */ L(_s, [["render", gs]]), bs = {}, $s = {
89
89
  function As(s, e) {
90
90
  return u(), C("svg", $s, Ms);
91
91
  }
92
- const ks = /* @__PURE__ */ L(bs, [["render", As]]), Is = {}, Ss = {
92
+ const Is = /* @__PURE__ */ L(bs, [["render", As]]), ks = {}, Ss = {
93
93
  width: "24",
94
94
  height: "24",
95
95
  viewBox: "0 0 24 24",
@@ -104,7 +104,7 @@ const ks = /* @__PURE__ */ L(bs, [["render", As]]), Is = {}, Ss = {
104
104
  function Ts(s, e) {
105
105
  return u(), C("svg", Ss, Ls);
106
106
  }
107
- const Es = /* @__PURE__ */ L(Is, [["render", Ts]]), Hs = {}, Os = {
107
+ const Es = /* @__PURE__ */ L(ks, [["render", Ts]]), Hs = {}, Os = {
108
108
  width: "24",
109
109
  height: "24",
110
110
  viewBox: "0 0 24 24",
@@ -224,7 +224,7 @@ const ya = /* @__PURE__ */ L(_a, [["render", ga]]), ba = {}, $a = {
224
224
  function Aa(s, e) {
225
225
  return u(), C("svg", $a, Ma);
226
226
  }
227
- const ka = /* @__PURE__ */ L(ba, [["render", Aa]]), Ia = {}, Sa = {
227
+ const Ia = /* @__PURE__ */ L(ba, [["render", Aa]]), ka = {}, Sa = {
228
228
  width: "24",
229
229
  height: "24",
230
230
  viewBox: "0 0 24 24",
@@ -239,7 +239,7 @@ const ka = /* @__PURE__ */ L(ba, [["render", Aa]]), Ia = {}, Sa = {
239
239
  function Ta(s, e) {
240
240
  return u(), C("svg", Sa, La);
241
241
  }
242
- const Ea = /* @__PURE__ */ L(Ia, [["render", Ta]]), Ha = {}, Oa = {
242
+ const Ea = /* @__PURE__ */ L(ka, [["render", Ta]]), Ha = {}, Oa = {
243
243
  width: "24",
244
244
  height: "24",
245
245
  viewBox: "0 0 24 24",
@@ -359,7 +359,7 @@ const yl = /* @__PURE__ */ L(_l, [["render", gl]]), bl = {}, $l = {
359
359
  function Al(s, e) {
360
360
  return u(), C("svg", $l, Ml);
361
361
  }
362
- const kl = /* @__PURE__ */ L(bl, [["render", Al]]), Il = {}, Sl = {
362
+ const Il = /* @__PURE__ */ L(bl, [["render", Al]]), kl = {}, Sl = {
363
363
  width: "24",
364
364
  height: "24",
365
365
  viewBox: "0 0 24 24",
@@ -374,7 +374,7 @@ const kl = /* @__PURE__ */ L(bl, [["render", Al]]), Il = {}, Sl = {
374
374
  function Tl(s, e) {
375
375
  return u(), C("svg", Sl, Ll);
376
376
  }
377
- const El = /* @__PURE__ */ L(Il, [["render", Tl]]), Hl = {}, Ol = {
377
+ const El = /* @__PURE__ */ L(kl, [["render", Tl]]), Hl = {}, Ol = {
378
378
  width: "24",
379
379
  height: "24",
380
380
  viewBox: "0 0 24 24",
@@ -491,10 +491,10 @@ const bn = /* @__PURE__ */ L(mn, [["render", yn]]), $n = {}, wn = {
491
491
  }, null, -1), An = [
492
492
  Mn
493
493
  ];
494
- function kn(s, e) {
494
+ function In(s, e) {
495
495
  return u(), C("svg", wn, An);
496
496
  }
497
- const In = /* @__PURE__ */ L($n, [["render", kn]]), Sn = {}, Vn = {
497
+ const kn = /* @__PURE__ */ L($n, [["render", In]]), Sn = {}, Vn = {
498
498
  width: "24",
499
499
  height: "24",
500
500
  viewBox: "0 0 24 24",
@@ -637,14 +637,14 @@ const wi = /* @__PURE__ */ L(mi, [["render", $i], ["__scopeId", "data-v-ad6da4a9
637
637
  viewBox: "0 0 24 24",
638
638
  fill: "none",
639
639
  xmlns: "http://www.w3.org/2000/svg"
640
- }, ki = /* @__PURE__ */ r("path", {
640
+ }, Ii = /* @__PURE__ */ r("path", {
641
641
  d: "M15.325 16.275C15.1417 16.0583 15.05 15.8127 15.05 15.538C15.05 15.2633 15.1417 15.034 15.325 14.85L17.175 13H10C9.71667 13 9.479 12.904 9.287 12.712C9.095 12.52 8.99934 12.2827 9 12C9 11.7167 9.096 11.479 9.288 11.287C9.48 11.095 9.71734 10.9993 10 11H17.175L15.325 9.15C15.125 8.95 15.025 8.71234 15.025 8.437C15.025 8.16167 15.125 7.92434 15.325 7.725C15.5083 7.525 15.7377 7.425 16.013 7.425C16.2883 7.425 16.5173 7.51667 16.7 7.7L20.3 11.3C20.4 11.4 20.471 11.5083 20.513 11.625C20.555 11.7417 20.5757 11.8667 20.575 12C20.575 12.1333 20.5543 12.2583 20.513 12.375C20.4717 12.4917 20.4007 12.6 20.3 12.7L16.7 16.3C16.4833 16.5167 16.2457 16.6127 15.987 16.588C15.7283 16.5633 15.5077 16.459 15.325 16.275ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H11C11.2833 3 11.521 3.096 11.713 3.288C11.905 3.48 12.0007 3.71734 12 4C12 4.28334 11.904 4.521 11.712 4.713C11.52 4.905 11.2827 5.00067 11 5H5V19H11C11.2833 19 11.521 19.096 11.713 19.288C11.905 19.48 12.0007 19.7173 12 20C12 20.2833 11.904 20.521 11.712 20.713C11.52 20.905 11.2827 21.0007 11 21H5Z",
642
642
  fill: "black"
643
- }, null, -1), Ii = [
644
- ki
643
+ }, null, -1), ki = [
644
+ Ii
645
645
  ];
646
646
  function Si(s, e) {
647
- return u(), C("svg", Ai, Ii);
647
+ return u(), C("svg", Ai, ki);
648
648
  }
649
649
  const Vi = /* @__PURE__ */ L(Mi, [["render", Si]]), Li = {}, Ti = {
650
650
  width: "24",
@@ -766,20 +766,20 @@ const fo = /* @__PURE__ */ L(vo, [["render", ho]]), go = {}, yo = {
766
766
  function wo(s, e) {
767
767
  return u(), C("svg", yo, $o);
768
768
  }
769
- const Mo = /* @__PURE__ */ L(go, [["render", wo]]), Ao = {}, ko = {
769
+ const Mo = /* @__PURE__ */ L(go, [["render", wo]]), Ao = {}, Io = {
770
770
  width: "24",
771
771
  height: "24",
772
772
  viewBox: "0 0 24 24",
773
773
  fill: "none",
774
774
  xmlns: "http://www.w3.org/2000/svg"
775
- }, Io = /* @__PURE__ */ r("path", {
775
+ }, ko = /* @__PURE__ */ r("path", {
776
776
  d: "M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",
777
777
  fill: "black"
778
778
  }, null, -1), So = [
779
- Io
779
+ ko
780
780
  ];
781
781
  function Vo(s, e) {
782
- return u(), C("svg", ko, So);
782
+ return u(), C("svg", Io, So);
783
783
  }
784
784
  const Lo = /* @__PURE__ */ L(Ao, [["render", Vo]]), To = {}, Eo = {
785
785
  width: "24",
@@ -898,20 +898,20 @@ const f2 = /* @__PURE__ */ L(v2, [["render", h2]]), g2 = {}, y2 = {
898
898
  function w2(s, e) {
899
899
  return u(), C("svg", y2, $2);
900
900
  }
901
- const M2 = /* @__PURE__ */ L(g2, [["render", w2]]), A2 = {}, k2 = {
901
+ const M2 = /* @__PURE__ */ L(g2, [["render", w2]]), A2 = {}, I2 = {
902
902
  width: "24",
903
903
  height: "24",
904
904
  viewBox: "0 0 24 24",
905
905
  fill: "none",
906
906
  xmlns: "http://www.w3.org/2000/svg"
907
- }, I2 = /* @__PURE__ */ r("path", {
907
+ }, k2 = /* @__PURE__ */ r("path", {
908
908
  d: "M10.925 15.125L9.525 13.725C9.425 13.625 9.31667 13.55 9.2 13.5C9.08334 13.45 8.96267 13.425 8.838 13.425C8.71267 13.425 8.58767 13.45 8.463 13.5C8.33834 13.55 8.22567 13.625 8.125 13.725C7.925 13.925 7.825 14.1627 7.825 14.438C7.825 14.7133 7.925 14.9507 8.125 15.15L10.25 17.3C10.35 17.4 10.4583 17.471 10.575 17.513C10.6917 17.555 10.8167 17.5757 10.95 17.575C11.0833 17.575 11.2083 17.554 11.325 17.512C11.4417 17.47 11.55 17.3993 11.65 17.3L15.875 13.075C16.075 12.875 16.175 12.6333 16.175 12.35C16.175 12.0667 16.075 11.825 15.875 11.625C15.675 11.425 15.4333 11.325 15.15 11.325C14.8667 11.325 14.625 11.425 14.425 11.625L10.925 15.125ZM6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V20C20 20.55 19.804 21.021 19.412 21.413C19.02 21.805 18.5493 22.0007 18 22H6ZM13 8V4H6V20H18V9H14C13.7167 9 13.479 8.904 13.287 8.712C13.095 8.52 12.9993 8.28267 13 8Z",
909
909
  fill: "black"
910
910
  }, null, -1), S2 = [
911
- I2
911
+ k2
912
912
  ];
913
913
  function V2(s, e) {
914
- return u(), C("svg", k2, S2);
914
+ return u(), C("svg", I2, S2);
915
915
  }
916
916
  const L2 = /* @__PURE__ */ L(A2, [["render", V2]]), T2 = {}, E2 = {
917
917
  width: "24",
@@ -1039,7 +1039,7 @@ const Mr = /* @__PURE__ */ L(gr, [["render", wr]]), Ar = /* @__PURE__ */ Object.
1039
1039
  AccountCircle: rs,
1040
1040
  AccountTreeOutlineRounded: Cs,
1041
1041
  AccountTreeRounded: ys,
1042
- Add: ks,
1042
+ Add: Is,
1043
1043
  AddBoxOutlineRounded: Es,
1044
1044
  ArchiveOutlineRounded: Ps,
1045
1045
  ArrowBackRounded: zs,
@@ -1048,7 +1048,7 @@ const Mr = /* @__PURE__ */ L(gr, [["render", wr]]), Ar = /* @__PURE__ */ Object.
1048
1048
  AssignmentOutlineRounded: ra,
1049
1049
  AttachFileRounded: Ca,
1050
1050
  CalendarTodayOutlineRounded: ya,
1051
- ChatOutline: ka,
1051
+ ChatOutline: Ia,
1052
1052
  CheckBoxOutlineBlank: Ea,
1053
1053
  CheckBoxOutlineBlankSharp: Pa,
1054
1054
  CheckBoxOutlineRounded: za,
@@ -1057,7 +1057,7 @@ const Mr = /* @__PURE__ */ L(gr, [["render", wr]]), Ar = /* @__PURE__ */ Object.
1057
1057
  ChevronLeft: rl,
1058
1058
  ChevronRight: Cl,
1059
1059
  CloseRounded: yl,
1060
- ContactsOutlineRounded: kl,
1060
+ ContactsOutlineRounded: Il,
1061
1061
  ContentCopyOutline: El,
1062
1062
  DeleteOutlineRounded: Pl,
1063
1063
  DragIndicator: zl,
@@ -1066,7 +1066,7 @@ const Mr = /* @__PURE__ */ L(gr, [["render", wr]]), Ar = /* @__PURE__ */ Object.
1066
1066
  ErrorOutlineRounded: un,
1067
1067
  FilterListRounded: _n,
1068
1068
  FlagRounded: bn,
1069
- FlowsheetOutlineRounded: In,
1069
+ FlowsheetOutlineRounded: kn,
1070
1070
  GifBox: Hn,
1071
1071
  GroupsOutline: Nn,
1072
1072
  HomeOutlineRounded: Fn,
@@ -1102,7 +1102,7 @@ const Mr = /* @__PURE__ */ L(gr, [["render", wr]]), Ar = /* @__PURE__ */ Object.
1102
1102
  WarningOutlineRounded: pr,
1103
1103
  WarningRounded: fr,
1104
1104
  WaterfallChartRounded: Mr
1105
- }, Symbol.toStringTag, { value: "Module" })), kr = {
1105
+ }, Symbol.toStringTag, { value: "Module" })), Ir = {
1106
1106
  SOLID: "solid",
1107
1107
  GHOST: "ghost",
1108
1108
  OUTLINE: "outline"
@@ -1111,14 +1111,14 @@ const Mr = /* @__PURE__ */ L(gr, [["render", wr]]), Ar = /* @__PURE__ */ Object.
1111
1111
  MD: "md",
1112
1112
  LG: "lg",
1113
1113
  XL: "xl"
1114
- }, Ir = {
1114
+ }, kr = {
1115
1115
  PRIMARY: "primary",
1116
1116
  NEUTRAL: "neutral",
1117
1117
  BLACK: "black"
1118
1118
  }, it = {
1119
1119
  ROUND: "round",
1120
1120
  ROUNDED: "rounded"
1121
- }, ne = /* @__PURE__ */ K({
1121
+ }, le = /* @__PURE__ */ K({
1122
1122
  __name: "AoIcon",
1123
1123
  props: {
1124
1124
  name: {},
@@ -1138,7 +1138,7 @@ const Sr = ["type"], Vr = {
1138
1138
  __name: "AoButton",
1139
1139
  props: {
1140
1140
  label: { default: () => "" },
1141
- variant: { default: () => kr.SOLID },
1141
+ variant: { default: () => Ir.SOLID },
1142
1142
  iconName: {},
1143
1143
  iconPosition: {},
1144
1144
  type: { default: () => "button" },
@@ -1166,7 +1166,7 @@ const Sr = ["type"], Vr = {
1166
1166
  Y(a.$slots, "default", {}, () => [
1167
1167
  a.label ? (u(), C("span", Vr, j(a.label), 1)) : w("", !0)
1168
1168
  ]),
1169
- n.value ? (u(), N(ne, {
1169
+ n.value ? (u(), N(le, {
1170
1170
  key: 0,
1171
1171
  name: n.value,
1172
1172
  class: "ao-button__icon",
@@ -1176,23 +1176,23 @@ const Sr = ["type"], Vr = {
1176
1176
  }
1177
1177
  });
1178
1178
  function ot(s) {
1179
- const e = x(!1), t = x(""), n = f(() => "value" in s.value ? "value" : "innerHTML"), a = () => {
1179
+ const e = Q(!1), t = Q(""), n = f(() => "value" in s.value ? "value" : "innerHTML"), a = () => {
1180
1180
  e.value = !e.value;
1181
- }, i = (d) => {
1182
- e.value = d;
1183
- }, l = (d) => async () => {
1181
+ }, i = (c) => {
1182
+ e.value = c;
1183
+ }, l = (c) => async () => {
1184
1184
  i(!1), await He(() => {
1185
- s.value[n.value] = t.value, d == null || d();
1185
+ s.value[n.value] = t.value, c == null || c();
1186
1186
  });
1187
- }, o = (d) => async (c) => {
1187
+ }, o = (c) => async (d) => {
1188
1188
  i(!1), await He(() => {
1189
- d(s.value[n.value], c);
1189
+ c(s.value[n.value], d);
1190
1190
  });
1191
1191
  };
1192
- return de(e, async (d) => {
1192
+ return de(e, async (c) => {
1193
1193
  await He(() => {
1194
1194
  setTimeout(() => {
1195
- s.value && d && (s.value.focus(), t.value = s.value[n.value]);
1195
+ s.value && c && (s.value.focus(), t.value = s.value[n.value]);
1196
1196
  }, 1);
1197
1197
  });
1198
1198
  }), {
@@ -1214,15 +1214,15 @@ const ce = /* @__PURE__ */ K({
1214
1214
  },
1215
1215
  emits: ["update:title", "toggle-is-editing"],
1216
1216
  setup(s, { emit: e }) {
1217
- const t = s, n = x(null), { isEditing: a, setIsEditing: i, onUpdate: l, onDiscard: o } = ot(n), d = f(() => a.value ? "input" : t.tag || `h${t.level}`), c = f(() => t.isEditable ? a.value ? {
1217
+ const t = s, n = Q(null), { isEditing: a, setIsEditing: i, onUpdate: l, onDiscard: o } = ot(n), c = f(() => a.value ? "input" : t.tag || `h${t.level}`), d = f(() => t.isEditable ? a.value ? {
1218
1218
  change: p,
1219
1219
  click: (E) => E.stopPropagation(),
1220
1220
  blur: m
1221
1221
  } : {
1222
1222
  click: V,
1223
1223
  focus: V
1224
- } : {}), p = l((E, k) => {
1225
- const y = k.target.value;
1224
+ } : {}), p = l((E, I) => {
1225
+ const y = I.target.value;
1226
1226
  e("update:title", y);
1227
1227
  }), _ = o(), m = async () => {
1228
1228
  a.value && i(!1);
@@ -1236,7 +1236,7 @@ const ce = /* @__PURE__ */ K({
1236
1236
  (E) => {
1237
1237
  E || _();
1238
1238
  }
1239
- ), (E, k) => (u(), N(ze(d.value), Ee({
1239
+ ), (E, I) => (u(), N(ze(c.value), Ee({
1240
1240
  ref_key: "target",
1241
1241
  ref: n,
1242
1242
  class: [
@@ -1252,9 +1252,9 @@ const ce = /* @__PURE__ */ K({
1252
1252
  type: O(a) ? "text" : null,
1253
1253
  value: O(a) ? E.title : null,
1254
1254
  tabindex: "0",
1255
- onKeyup: t1($, ["enter"])
1256
- }, Ut(c.value), {
1257
- onKeydown: t1(O(_), ["esc"])
1255
+ onKeyup: a1($, ["enter"])
1256
+ }, Ut(d.value), {
1257
+ onKeydown: a1(O(_), ["esc"])
1258
1258
  }), {
1259
1259
  default: R(() => [
1260
1260
  Z1(j(E.title), 1)
@@ -1305,14 +1305,14 @@ const Lr = {
1305
1305
  }, {
1306
1306
  default: R(() => [
1307
1307
  n.isDraggable ? (u(), C("div", Lr, [
1308
- b(ne, {
1308
+ b(le, {
1309
1309
  name: "DragIndicator",
1310
1310
  class: "ao-card-horiz__drag-handle"
1311
1311
  })
1312
1312
  ])) : w("", !0),
1313
1313
  r("div", Tr, [
1314
1314
  n.icon ? (u(), C("div", Er, [
1315
- b(ne, {
1315
+ b(le, {
1316
1316
  class: "ao-card-horiz__icon",
1317
1317
  name: n.icon,
1318
1318
  size: "xl"
@@ -1384,7 +1384,7 @@ const f1 = /* @__PURE__ */ K({
1384
1384
  class: "ao-tag__close",
1385
1385
  onClick: i[1] || (i[1] = (l) => a.$emit("close", l))
1386
1386
  }, [
1387
- b(ne, {
1387
+ b(le, {
1388
1388
  name: "CloseRounded",
1389
1389
  size: "sm",
1390
1390
  class: "ao-tag__close-icon"
@@ -1393,7 +1393,7 @@ const f1 = /* @__PURE__ */ K({
1393
1393
  ], 2));
1394
1394
  }
1395
1395
  });
1396
- var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, be = {}, ut = {}, Xe = {}, l1 = {}, Fe = {}, g1 = {};
1396
+ var be = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ye = {}, ut = {}, Je = {}, i1 = {}, Fe = {}, g1 = {};
1397
1397
  Object.defineProperty(g1, "__esModule", { value: !0 });
1398
1398
  g1.lexoHelper = void 0;
1399
1399
  g1.lexoHelper = {
@@ -1405,8 +1405,8 @@ function Nr(s, e, t, n, a) {
1405
1405
  for (let o = e; o < l; o++)
1406
1406
  t[i] = s[o], ++i;
1407
1407
  }
1408
- var n1 = {};
1409
- Object.defineProperty(n1, "__esModule", { value: !0 });
1408
+ var o1 = {};
1409
+ Object.defineProperty(o1, "__esModule", { value: !0 });
1410
1410
  class jr {
1411
1411
  constructor(e = "") {
1412
1412
  this.str = e;
@@ -1430,10 +1430,10 @@ class jr {
1430
1430
  return this.str;
1431
1431
  }
1432
1432
  }
1433
- n1.default = jr;
1433
+ o1.default = jr;
1434
1434
  Object.defineProperty(Fe, "__esModule", { value: !0 });
1435
1435
  Fe.LexoInteger = void 0;
1436
- const d1 = g1, Rr = n1;
1436
+ const p1 = g1, Rr = o1;
1437
1437
  class z {
1438
1438
  constructor(e, t, n) {
1439
1439
  this.sys = e, this.sign = t, this.mag = n;
@@ -1462,14 +1462,14 @@ class z {
1462
1462
  if (a === n.length)
1463
1463
  return new z(e, t, n);
1464
1464
  const i = new Array(a).fill(0);
1465
- return d1.lexoHelper.arrayCopy(n, 0, i, 0, a), new z(e, t, i);
1465
+ return p1.lexoHelper.arrayCopy(n, 0, i, 0, a), new z(e, t, i);
1466
1466
  }
1467
1467
  static add(e, t, n) {
1468
1468
  const a = Math.max(t.length, n.length), i = new Array(a).fill(0);
1469
1469
  let l = 0;
1470
1470
  for (let o = 0; o < a; ++o) {
1471
- const d = o < t.length ? t[o] : 0, c = o < n.length ? n[o] : 0;
1472
- let p = d + c + l;
1471
+ const c = o < t.length ? t[o] : 0, d = o < n.length ? n[o] : 0;
1472
+ let p = c + d + l;
1473
1473
  for (l = 0; p >= e.getBase(); p -= e.getBase())
1474
1474
  ++l;
1475
1475
  i[o] = p;
@@ -1479,7 +1479,7 @@ class z {
1479
1479
  static extendWithCarry(e, t) {
1480
1480
  if (t > 0) {
1481
1481
  const n = new Array(e.length + 1).fill(0);
1482
- return d1.lexoHelper.arrayCopy(e, 0, n, 0, e.length), n[n.length - 1] = t, n;
1482
+ return p1.lexoHelper.arrayCopy(e, 0, n, 0, e.length), n[n.length - 1] = t, n;
1483
1483
  }
1484
1484
  return e;
1485
1485
  }
@@ -1563,13 +1563,13 @@ class z {
1563
1563
  if (e < 0)
1564
1564
  return this.shiftRight(Math.abs(e));
1565
1565
  const t = new Array(this.mag.length + e).fill(0);
1566
- return d1.lexoHelper.arrayCopy(this.mag, 0, t, e, this.mag.length), z.make(this.sys, this.sign, t);
1566
+ return p1.lexoHelper.arrayCopy(this.mag, 0, t, e, this.mag.length), z.make(this.sys, this.sign, t);
1567
1567
  }
1568
1568
  shiftRight(e = 1) {
1569
1569
  if (this.mag.length - e <= 0)
1570
1570
  return z.zero(this.sys);
1571
1571
  const t = new Array(this.mag.length - e).fill(0);
1572
- return d1.lexoHelper.arrayCopy(this.mag, e, t, 0, t.length), z.make(this.sys, this.sign, t);
1572
+ return p1.lexoHelper.arrayCopy(this.mag, e, t, 0, t.length), z.make(this.sys, this.sign, t);
1573
1573
  }
1574
1574
  complement() {
1575
1575
  return this.complementDigits(this.mag.length);
@@ -1633,37 +1633,37 @@ z.ONE_MAG = [1];
1633
1633
  z.NEGATIVE_SIGN = -1;
1634
1634
  z.ZERO_SIGN = 0;
1635
1635
  z.POSITIVE_SIGN = 1;
1636
- Object.defineProperty(l1, "__esModule", { value: !0 });
1637
- l1.LexoDecimal = void 0;
1638
- const Je = Fe, Ur = n1;
1639
- class ye {
1636
+ Object.defineProperty(i1, "__esModule", { value: !0 });
1637
+ i1.LexoDecimal = void 0;
1638
+ const Qe = Fe, Ur = o1;
1639
+ class ge {
1640
1640
  constructor(e, t) {
1641
1641
  this.mag = e, this.sig = t;
1642
1642
  }
1643
1643
  static half(e) {
1644
1644
  const t = e.getBase() / 2 | 0;
1645
- return ye.make(Je.LexoInteger.make(e, 1, [t]), 1);
1645
+ return ge.make(Qe.LexoInteger.make(e, 1, [t]), 1);
1646
1646
  }
1647
1647
  static parse(e, t) {
1648
1648
  const n = e.indexOf(t.getRadixPointChar());
1649
1649
  if (e.lastIndexOf(t.getRadixPointChar()) !== n)
1650
1650
  throw new Error("More than one " + t.getRadixPointChar());
1651
1651
  if (n < 0)
1652
- return ye.make(Je.LexoInteger.parse(e, t), 0);
1652
+ return ge.make(Qe.LexoInteger.parse(e, t), 0);
1653
1653
  const a = e.substring(0, n) + e.substring(n + 1);
1654
- return ye.make(Je.LexoInteger.parse(a, t), e.length - 1 - n);
1654
+ return ge.make(Qe.LexoInteger.parse(a, t), e.length - 1 - n);
1655
1655
  }
1656
1656
  static from(e) {
1657
- return ye.make(e, 0);
1657
+ return ge.make(e, 0);
1658
1658
  }
1659
1659
  static make(e, t) {
1660
1660
  if (e.isZero())
1661
- return new ye(e, 0);
1661
+ return new ge(e, 0);
1662
1662
  let n = 0;
1663
1663
  for (let l = 0; l < t && e.getMag(l) === 0; ++l)
1664
1664
  ++n;
1665
1665
  const a = e.shiftRight(n), i = t - n;
1666
- return new ye(a, i);
1666
+ return new ge(a, i);
1667
1667
  }
1668
1668
  getSystem() {
1669
1669
  return this.mag.getSystem();
@@ -1674,7 +1674,7 @@ class ye {
1674
1674
  t = t.shiftLeft();
1675
1675
  for (; n > i; )
1676
1676
  a = a.shiftLeft(), ++i;
1677
- return ye.make(t.add(a), n);
1677
+ return ge.make(t.add(a), n);
1678
1678
  }
1679
1679
  subtract(e) {
1680
1680
  let t = this.mag, n = this.sig, a = e.mag, i;
@@ -1682,10 +1682,10 @@ class ye {
1682
1682
  t = t.shiftLeft();
1683
1683
  for (; n > i; )
1684
1684
  a = a.shiftLeft(), ++i;
1685
- return ye.make(t.subtract(a), n);
1685
+ return ge.make(t.subtract(a), n);
1686
1686
  }
1687
1687
  multiply(e) {
1688
- return ye.make(this.mag.multiply(e.mag), this.sig + e.sig);
1688
+ return ge.make(this.mag.multiply(e.mag), this.sig + e.sig);
1689
1689
  }
1690
1690
  floor() {
1691
1691
  return this.mag.shiftRight(this.sig);
@@ -1694,7 +1694,7 @@ class ye {
1694
1694
  if (this.isExact())
1695
1695
  return this.mag;
1696
1696
  const e = this.floor();
1697
- return e.add(Je.LexoInteger.one(e.getSystem()));
1697
+ return e.add(Qe.LexoInteger.one(e.getSystem()));
1698
1698
  }
1699
1699
  isExact() {
1700
1700
  if (this.sig === 0)
@@ -1713,7 +1713,7 @@ class ye {
1713
1713
  e < 0 && (e = 0);
1714
1714
  const n = this.sig - e;
1715
1715
  let a = this.mag.shiftRight(n);
1716
- return t && (a = a.add(Je.LexoInteger.one(a.getSystem()))), ye.make(a, e);
1716
+ return t && (a = a.add(Qe.LexoInteger.one(a.getSystem()))), ge.make(a, e);
1717
1717
  }
1718
1718
  compareTo(e) {
1719
1719
  if (this === e)
@@ -1739,12 +1739,12 @@ class ye {
1739
1739
  return this.format();
1740
1740
  }
1741
1741
  }
1742
- l1.LexoDecimal = ye;
1743
- var p1 = {}, et;
1742
+ i1.LexoDecimal = ge;
1743
+ var v1 = {}, et;
1744
1744
  function ct() {
1745
1745
  if (et)
1746
- return p1;
1747
- et = 1, Object.defineProperty(p1, "__esModule", { value: !0 });
1746
+ return v1;
1747
+ et = 1, Object.defineProperty(v1, "__esModule", { value: !0 });
1748
1748
  const s = Fe, e = pt();
1749
1749
  class t {
1750
1750
  constructor(a) {
@@ -1767,19 +1767,19 @@ function ct() {
1767
1767
  }
1768
1768
  static from(a) {
1769
1769
  const i = s.LexoInteger.parse(a, e.LexoRank.NUMERAL_SYSTEM), l = t.VALUES, o = l.length;
1770
- for (let d = 0; d < o; ++d) {
1771
- const c = l[d];
1772
- if (c.value.equals(i))
1773
- return c;
1770
+ for (let c = 0; c < o; ++c) {
1771
+ const d = l[c];
1772
+ if (d.value.equals(i))
1773
+ return d;
1774
1774
  }
1775
1775
  throw new Error("Unknown bucket: " + a);
1776
1776
  }
1777
1777
  static resolve(a) {
1778
1778
  const i = t.VALUES, l = i.length;
1779
1779
  for (let o = 0; o < l; ++o) {
1780
- const d = i[o];
1781
- if (d.equals(t.from(a.toString())))
1782
- return d;
1780
+ const c = i[o];
1781
+ if (c.equals(t.from(a.toString())))
1782
+ return c;
1783
1783
  }
1784
1784
  throw new Error("No bucket found with id " + a);
1785
1785
  }
@@ -1796,7 +1796,7 @@ function ct() {
1796
1796
  return this === a ? !0 : a ? this.value.equals(a.value) : !1;
1797
1797
  }
1798
1798
  }
1799
- return p1.default = t, p1;
1799
+ return v1.default = t, v1;
1800
1800
  }
1801
1801
  var N1 = {}, dt = {};
1802
1802
  Object.defineProperty(dt, "__esModule", { value: !0 });
@@ -1895,7 +1895,7 @@ class Fr {
1895
1895
  }
1896
1896
  $1.LexoNumeralSystem64 = Fr;
1897
1897
  (function(s) {
1898
- var e = $e && $e.__createBinding || (Object.create ? function(n, a, i, l) {
1898
+ var e = be && be.__createBinding || (Object.create ? function(n, a, i, l) {
1899
1899
  l === void 0 && (l = i);
1900
1900
  var o = Object.getOwnPropertyDescriptor(a, i);
1901
1901
  (!o || ("get" in o ? !a.__esModule : o.writable || o.configurable)) && (o = { enumerable: !0, get: function() {
@@ -1903,7 +1903,7 @@ $1.LexoNumeralSystem64 = Fr;
1903
1903
  } }), Object.defineProperty(n, l, o);
1904
1904
  } : function(n, a, i, l) {
1905
1905
  l === void 0 && (l = i), n[l] = a[i];
1906
- }), t = $e && $e.__exportStar || function(n, a) {
1906
+ }), t = be && be.__exportStar || function(n, a) {
1907
1907
  for (var i in n)
1908
1908
  i !== "default" && !Object.prototype.hasOwnProperty.call(a, i) && e(a, n, i);
1909
1909
  };
@@ -1912,9 +1912,9 @@ $1.LexoNumeralSystem64 = Fr;
1912
1912
  var tt;
1913
1913
  function pt() {
1914
1914
  if (tt)
1915
- return Xe;
1916
- tt = 1, Object.defineProperty(Xe, "__esModule", { value: !0 }), Xe.LexoRank = void 0;
1917
- const s = l1, e = ct(), t = n1, n = N1;
1915
+ return Je;
1916
+ tt = 1, Object.defineProperty(Je, "__esModule", { value: !0 }), Je.LexoRank = void 0;
1917
+ const s = i1, e = ct(), t = o1, n = N1;
1918
1918
  class a {
1919
1919
  constructor(l, o) {
1920
1920
  this.value = l.format() + "|" + a.formatDecimal(o), this.bucket = l, this.decimal = o;
@@ -1962,27 +1962,27 @@ function pt() {
1962
1962
  static between(l, o) {
1963
1963
  if (l.getSystem().getBase() !== o.getSystem().getBase())
1964
1964
  throw new Error("Expected same system");
1965
- let d = l, c = o, p;
1965
+ let c = l, d = o, p;
1966
1966
  if (l.getScale() < o.getScale()) {
1967
1967
  if (p = o.setScale(l.getScale(), !1), l.compareTo(p) >= 0)
1968
1968
  return a.mid(l, o);
1969
- c = p;
1969
+ d = p;
1970
1970
  }
1971
- if (l.getScale() > c.getScale()) {
1972
- if (p = l.setScale(c.getScale(), !0), p.compareTo(c) >= 0)
1971
+ if (l.getScale() > d.getScale()) {
1972
+ if (p = l.setScale(d.getScale(), !0), p.compareTo(d) >= 0)
1973
1973
  return a.mid(l, o);
1974
- d = p;
1974
+ c = p;
1975
1975
  }
1976
1976
  let _;
1977
- for (let V = d.getScale(); V > 0; c = _) {
1978
- const E = V - 1, k = d.setScale(E, !0);
1979
- if (_ = c.setScale(E, !1), k.compareTo(_) === 0)
1980
- return a.checkMid(l, o, k);
1981
- if (k.compareTo(_) > 0)
1977
+ for (let V = c.getScale(); V > 0; d = _) {
1978
+ const E = V - 1, I = c.setScale(E, !0);
1979
+ if (_ = d.setScale(E, !1), I.compareTo(_) === 0)
1980
+ return a.checkMid(l, o, I);
1981
+ if (I.compareTo(_) > 0)
1982
1982
  break;
1983
- V = E, d = k;
1983
+ V = E, c = I;
1984
1984
  }
1985
- let m = a.middleInternal(l, o, d, c), $;
1985
+ let m = a.middleInternal(l, o, c, d), $;
1986
1986
  for (let V = m.getScale(); V > 0; V = $) {
1987
1987
  $ = V - 1;
1988
1988
  const E = m.setScale($);
@@ -1993,56 +1993,56 @@ function pt() {
1993
1993
  return m;
1994
1994
  }
1995
1995
  static parse(l) {
1996
- const o = l.split("|"), d = e.default.from(o[0]), c = s.LexoDecimal.parse(o[1], a.NUMERAL_SYSTEM);
1997
- return new a(d, c);
1996
+ const o = l.split("|"), c = e.default.from(o[0]), d = s.LexoDecimal.parse(o[1], a.NUMERAL_SYSTEM);
1997
+ return new a(c, d);
1998
1998
  }
1999
1999
  static from(l, o) {
2000
2000
  if (o.getSystem().getBase() !== a.NUMERAL_SYSTEM.getBase())
2001
2001
  throw new Error("Expected different system");
2002
2002
  return new a(l, o);
2003
2003
  }
2004
- static middleInternal(l, o, d, c) {
2005
- const p = a.mid(d, c);
2004
+ static middleInternal(l, o, c, d) {
2005
+ const p = a.mid(c, d);
2006
2006
  return a.checkMid(l, o, p);
2007
2007
  }
2008
- static checkMid(l, o, d) {
2009
- return l.compareTo(d) >= 0 || d.compareTo(o) >= 0 ? a.mid(l, o) : d;
2008
+ static checkMid(l, o, c) {
2009
+ return l.compareTo(c) >= 0 || c.compareTo(o) >= 0 ? a.mid(l, o) : c;
2010
2010
  }
2011
2011
  static mid(l, o) {
2012
- const c = l.add(o).multiply(s.LexoDecimal.half(l.getSystem())), p = l.getScale() > o.getScale() ? l.getScale() : o.getScale();
2013
- if (c.getScale() > p) {
2014
- const _ = c.setScale(p, !1);
2012
+ const d = l.add(o).multiply(s.LexoDecimal.half(l.getSystem())), p = l.getScale() > o.getScale() ? l.getScale() : o.getScale();
2013
+ if (d.getScale() > p) {
2014
+ const _ = d.setScale(p, !1);
2015
2015
  if (_.compareTo(l) > 0)
2016
2016
  return _;
2017
- const m = c.setScale(p, !0);
2017
+ const m = d.setScale(p, !0);
2018
2018
  if (m.compareTo(o) < 0)
2019
2019
  return m;
2020
2020
  }
2021
- return c;
2021
+ return d;
2022
2022
  }
2023
2023
  static formatDecimal(l) {
2024
- const o = l.format(), d = new t.default(o);
2025
- let c = o.indexOf(a.NUMERAL_SYSTEM.getRadixPointChar());
2024
+ const o = l.format(), c = new t.default(o);
2025
+ let d = o.indexOf(a.NUMERAL_SYSTEM.getRadixPointChar());
2026
2026
  const p = a.NUMERAL_SYSTEM.toChar(0);
2027
- for (c < 0 && (c = o.length, d.append(a.NUMERAL_SYSTEM.getRadixPointChar())); c < 6; )
2028
- d.insert(0, p), ++c;
2029
- for (; d[d.length - 1] === p; )
2030
- d.length = d.length - 1;
2031
- return d.toString();
2027
+ for (d < 0 && (d = o.length, c.append(a.NUMERAL_SYSTEM.getRadixPointChar())); d < 6; )
2028
+ c.insert(0, p), ++d;
2029
+ for (; c[c.length - 1] === p; )
2030
+ c.length = c.length - 1;
2031
+ return c.toString();
2032
2032
  }
2033
2033
  genPrev() {
2034
2034
  if (this.isMax())
2035
2035
  return new a(this.bucket, a.INITIAL_MAX_DECIMAL);
2036
2036
  const l = this.decimal.floor();
2037
- let d = s.LexoDecimal.from(l).subtract(a.EIGHT_DECIMAL);
2038
- return d.compareTo(a.MIN_DECIMAL) <= 0 && (d = a.between(a.MIN_DECIMAL, this.decimal)), new a(this.bucket, d);
2037
+ let c = s.LexoDecimal.from(l).subtract(a.EIGHT_DECIMAL);
2038
+ return c.compareTo(a.MIN_DECIMAL) <= 0 && (c = a.between(a.MIN_DECIMAL, this.decimal)), new a(this.bucket, c);
2039
2039
  }
2040
2040
  genNext() {
2041
2041
  if (this.isMin())
2042
2042
  return new a(this.bucket, a.INITIAL_MIN_DECIMAL);
2043
2043
  const l = this.decimal.ceil();
2044
- let d = s.LexoDecimal.from(l).add(a.EIGHT_DECIMAL);
2045
- return d.compareTo(a.MAX_DECIMAL) >= 0 && (d = a.between(this.decimal, a.MAX_DECIMAL)), new a(this.bucket, d);
2044
+ let c = s.LexoDecimal.from(l).add(a.EIGHT_DECIMAL);
2045
+ return c.compareTo(a.MAX_DECIMAL) >= 0 && (c = a.between(this.decimal, a.MAX_DECIMAL)), new a(this.bucket, c);
2046
2046
  }
2047
2047
  between(l) {
2048
2048
  if (!this.bucket.equals(l.bucket))
@@ -2085,10 +2085,10 @@ function pt() {
2085
2085
  return this === l ? 0 : l ? this.value.localeCompare(l.value) : 1;
2086
2086
  }
2087
2087
  }
2088
- return Xe.LexoRank = a, Xe;
2088
+ return Je.LexoRank = a, Je;
2089
2089
  }
2090
2090
  (function(s) {
2091
- var e = $e && $e.__createBinding || (Object.create ? function(n, a, i, l) {
2091
+ var e = be && be.__createBinding || (Object.create ? function(n, a, i, l) {
2092
2092
  l === void 0 && (l = i);
2093
2093
  var o = Object.getOwnPropertyDescriptor(a, i);
2094
2094
  (!o || ("get" in o ? !a.__esModule : o.writable || o.configurable)) && (o = { enumerable: !0, get: function() {
@@ -2096,14 +2096,14 @@ function pt() {
2096
2096
  } }), Object.defineProperty(n, l, o);
2097
2097
  } : function(n, a, i, l) {
2098
2098
  l === void 0 && (l = i), n[l] = a[i];
2099
- }), t = $e && $e.__exportStar || function(n, a) {
2099
+ }), t = be && be.__exportStar || function(n, a) {
2100
2100
  for (var i in n)
2101
2101
  i !== "default" && !Object.prototype.hasOwnProperty.call(a, i) && e(a, n, i);
2102
2102
  };
2103
- Object.defineProperty(s, "__esModule", { value: !0 }), t(pt(), s), t(ct(), s), t(l1, s), t(Fe, s);
2103
+ Object.defineProperty(s, "__esModule", { value: !0 }), t(pt(), s), t(ct(), s), t(i1, s), t(Fe, s);
2104
2104
  })(ut);
2105
2105
  (function(s) {
2106
- var e = $e && $e.__createBinding || (Object.create ? function(n, a, i, l) {
2106
+ var e = be && be.__createBinding || (Object.create ? function(n, a, i, l) {
2107
2107
  l === void 0 && (l = i);
2108
2108
  var o = Object.getOwnPropertyDescriptor(a, i);
2109
2109
  (!o || ("get" in o ? !a.__esModule : o.writable || o.configurable)) && (o = { enumerable: !0, get: function() {
@@ -2111,12 +2111,12 @@ function pt() {
2111
2111
  } }), Object.defineProperty(n, l, o);
2112
2112
  } : function(n, a, i, l) {
2113
2113
  l === void 0 && (l = i), n[l] = a[i];
2114
- }), t = $e && $e.__exportStar || function(n, a) {
2114
+ }), t = be && be.__exportStar || function(n, a) {
2115
2115
  for (var i in n)
2116
2116
  i !== "default" && !Object.prototype.hasOwnProperty.call(a, i) && e(a, n, i);
2117
2117
  };
2118
2118
  Object.defineProperty(s, "__esModule", { value: !0 }), t(ut, s), t(N1, s);
2119
- })(be);
2119
+ })(ye);
2120
2120
  function vt(s) {
2121
2121
  return (s == null ? void 0 : s.reduce((e, t) => {
2122
2122
  var n;
@@ -2155,7 +2155,7 @@ function D1(s, e, t) {
2155
2155
  const l = e > t ? -1 : 1;
2156
2156
  i = s[t + l];
2157
2157
  }
2158
- return !a && i ? be.LexoRank.parse(i.rank).genPrev().format() : a && !i ? be.LexoRank.parse(a.rank).genNext().format() : a && i ? be.LexoRank.parse(i.rank).between(be.LexoRank.parse(a.rank)).format() : be.LexoRank.parse(n.rank).genNext().format();
2158
+ return !a && i ? ye.LexoRank.parse(i.rank).genPrev().format() : a && !i ? ye.LexoRank.parse(a.rank).genNext().format() : a && i ? ye.LexoRank.parse(i.rank).between(ye.LexoRank.parse(a.rank)).format() : ye.LexoRank.parse(n.rank).genNext().format();
2159
2159
  }
2160
2160
  const Wr = ["title"], Xr = { className: "ao-avatar__initials" }, Ke = /* @__PURE__ */ K({
2161
2161
  __name: "AoAvatar",
@@ -2218,14 +2218,14 @@ const Jr = { class: "ao-card-template__subitems" }, Qr = { class: "ao-card-templ
2218
2218
  subtitle: R(() => [
2219
2219
  r("ul", Jr, [
2220
2220
  r("li", Qr, [
2221
- b(ne, {
2221
+ b(le, {
2222
2222
  name: "MountainFlagOutlineRounded",
2223
2223
  size: "sm"
2224
2224
  }),
2225
2225
  r("span", xr, j(n.milestones), 1)
2226
2226
  ]),
2227
2227
  r("li", e3, [
2228
- b(ne, {
2228
+ b(le, {
2229
2229
  name: "TaskOutlineRounded",
2230
2230
  size: "sm"
2231
2231
  }),
@@ -2237,14 +2237,14 @@ const Jr = { class: "ao-card-template__subitems" }, Qr = { class: "ao-card-templ
2237
2237
  r("div", s3, [
2238
2238
  r("div", a3, [
2239
2239
  r("div", l3, [
2240
- b(ne, {
2240
+ b(le, {
2241
2241
  name: "WaterfallChartRounded",
2242
2242
  size: "sm"
2243
2243
  }),
2244
2244
  r("span", n3, j(n.$t("template.phases.title")), 1)
2245
2245
  ]),
2246
2246
  n.phases ? (u(), C("ul", i3, [
2247
- (u(!0), C(le, null, pe(n.phases, (i) => (u(), N(f1, {
2247
+ (u(!0), C(ae, null, pe(n.phases, (i) => (u(), N(f1, {
2248
2248
  key: i.id,
2249
2249
  label: i.name || i.id,
2250
2250
  color: "primary",
@@ -2311,7 +2311,7 @@ const y3 = ["type"], b3 = {
2311
2311
  iconName: {},
2312
2312
  iconPosition: {},
2313
2313
  type: { default: () => "button" },
2314
- color: { default: () => Ir.BLACK },
2314
+ color: { default: () => kr.BLACK },
2315
2315
  size: { default: () => h1.MD },
2316
2316
  isLoading: { type: Boolean, default: () => !1 },
2317
2317
  corners: { default: () => it.ROUNDED }
@@ -2330,7 +2330,7 @@ const y3 = ["type"], b3 = {
2330
2330
  Y(a.$slots, "default", {}, () => [
2331
2331
  a.label ? (u(), C("span", b3, j(a.label), 1)) : w("", !0)
2332
2332
  ]),
2333
- n.value ? (u(), N(ne, {
2333
+ n.value ? (u(), N(le, {
2334
2334
  key: 0,
2335
2335
  name: n.value,
2336
2336
  class: "ao-button-card__icon",
@@ -2365,13 +2365,13 @@ const $3 = { class: "ao-card-template-item__footer" }, w3 = {
2365
2365
  return (l, o) => (u(), N(rt, { "onUpdate:title": t }, {
2366
2366
  footer: R(() => [
2367
2367
  r("ul", $3, [
2368
- (u(), C(le, null, pe(n, (d) => (u(), C(le, { key: d }, [
2369
- l.$props[d] ? (u(), C("li", w3, [
2370
- b(ne, {
2371
- name: a[d],
2368
+ (u(), C(ae, null, pe(n, (c) => (u(), C(ae, { key: c }, [
2369
+ l.$props[c] ? (u(), C("li", w3, [
2370
+ b(le, {
2371
+ name: a[c],
2372
2372
  size: "sm"
2373
2373
  }, null, 8, ["name"]),
2374
- r("span", M3, j(l.$props[d]), 1)
2374
+ r("span", M3, j(l.$props[c]), 1)
2375
2375
  ])) : w("", !0)
2376
2376
  ], 64))), 64))
2377
2377
  ])
@@ -2383,7 +2383,7 @@ const $3 = { class: "ao-card-template-item__footer" }, w3 = {
2383
2383
  variant: "ghost",
2384
2384
  size: "md",
2385
2385
  corners: "round",
2386
- onClick: ke(i, ["stop"])
2386
+ onClick: Ie(i, ["stop"])
2387
2387
  }, null, 8, ["onClick"])
2388
2388
  ])
2389
2389
  ]),
@@ -2391,7 +2391,7 @@ const $3 = { class: "ao-card-template-item__footer" }, w3 = {
2391
2391
  }));
2392
2392
  }
2393
2393
  });
2394
- const k3 = /* @__PURE__ */ K({
2394
+ const I3 = /* @__PURE__ */ K({
2395
2395
  __name: "AoCardTemplateItemPhase",
2396
2396
  props: {
2397
2397
  id: {},
@@ -2414,7 +2414,7 @@ const k3 = /* @__PURE__ */ K({
2414
2414
  _: 3
2415
2415
  }, 16, ["title", "activities", "milestones"]));
2416
2416
  }
2417
- }), I3 = /* @__PURE__ */ K({
2417
+ }), k3 = /* @__PURE__ */ K({
2418
2418
  __name: "AoCardTemplateItemMilestone",
2419
2419
  props: {
2420
2420
  activities: {}
@@ -2448,14 +2448,14 @@ const k3 = /* @__PURE__ */ K({
2448
2448
  e("updateMilestone", o);
2449
2449
  }, l = (o) => {
2450
2450
  if (o.moved) {
2451
- const d = w1(o, t.phase.milestones);
2451
+ const c = w1(o, t.phase.milestones);
2452
2452
  e("updateMilestone", {
2453
2453
  id: o.moved.element.id,
2454
- rank: d
2454
+ rank: c
2455
2455
  });
2456
2456
  }
2457
2457
  };
2458
- return (o, d) => o.phase ? (u(), N(O(a1), {
2458
+ return (o, c) => o.phase ? (u(), N(O(n1), {
2459
2459
  key: 0,
2460
2460
  "model-value": o.phase.milestones,
2461
2461
  class: "ao-templates__list",
@@ -2471,20 +2471,20 @@ const k3 = /* @__PURE__ */ K({
2471
2471
  class: "ao-list__title"
2472
2472
  })
2473
2473
  ]),
2474
- item: R(({ element: c }) => [
2475
- (u(), N(I3, {
2476
- key: c.id,
2477
- title: c.name,
2478
- activities: c.activities,
2479
- "is-active": o.milestoneId === c.id,
2474
+ item: R(({ element: d }) => [
2475
+ (u(), N(k3, {
2476
+ key: d.id,
2477
+ title: d.name,
2478
+ activities: d.activities,
2479
+ "is-active": o.milestoneId === d.id,
2480
2480
  "is-draggable": !0,
2481
- "onUpdate:title": (p) => i({ id: c.id, name: p }),
2481
+ "onUpdate:title": (p) => i({ id: d.id, name: p }),
2482
2482
  onClick: (p) => o.$router.push({
2483
2483
  params: {
2484
- milestoneId: c.id
2484
+ milestoneId: d.id
2485
2485
  }
2486
2486
  }),
2487
- onRemove: () => a(c.id)
2487
+ onRemove: () => a(d.id)
2488
2488
  }, null, 8, ["title", "activities", "is-active", "onUpdate:title", "onClick", "onRemove"]))
2489
2489
  ]),
2490
2490
  footer: R(() => [
@@ -2537,14 +2537,14 @@ const k3 = /* @__PURE__ */ K({
2537
2537
  e("removeActivity", { id: o });
2538
2538
  }, l = (o) => {
2539
2539
  if (o.moved) {
2540
- const d = w1(o, t.milestone.activities);
2540
+ const c = w1(o, t.milestone.activities);
2541
2541
  e("updateActivity", {
2542
2542
  id: o.moved.element.id,
2543
- rank: d
2543
+ rank: c
2544
2544
  });
2545
2545
  }
2546
2546
  };
2547
- return (o, d) => o.milestone ? (u(), N(O(a1), {
2547
+ return (o, c) => o.milestone ? (u(), N(O(n1), {
2548
2548
  key: 0,
2549
2549
  "model-value": o.milestone.activities,
2550
2550
  title: o.$t("template.activities.title"),
@@ -2560,16 +2560,16 @@ const k3 = /* @__PURE__ */ K({
2560
2560
  class: "ao-list__title"
2561
2561
  })
2562
2562
  ]),
2563
- item: R(({ element: c }) => [
2563
+ item: R(({ element: d }) => [
2564
2564
  (u(), N(L3, {
2565
- key: c.id,
2566
- title: c.name,
2567
- subtasks: c.subtasks,
2568
- "is-active": o.activityId === c.id,
2565
+ key: d.id,
2566
+ title: d.name,
2567
+ subtasks: d.subtasks,
2568
+ "is-active": o.activityId === d.id,
2569
2569
  "is-draggable": !0,
2570
- "onUpdate:title": (p) => a({ id: c.id, name: p }),
2571
- onClick: (p) => o.$router.push({ params: { activityId: c.id } }),
2572
- onRemove: () => i(c.id)
2570
+ "onUpdate:title": (p) => a({ id: d.id, name: p }),
2571
+ onClick: (p) => o.$router.push({ params: { activityId: d.id } }),
2572
+ onRemove: () => i(d.id)
2573
2573
  }, null, 8, ["title", "subtasks", "is-active", "onUpdate:title", "onClick", "onRemove"]))
2574
2574
  ]),
2575
2575
  footer: R(() => [
@@ -2589,28 +2589,28 @@ function Ae(s) {
2589
2589
  return [null, void 0].indexOf(s) !== -1;
2590
2590
  }
2591
2591
  function H3(s, e, t) {
2592
- const { object: n, valueProp: a, mode: i } = ge(s), l = Oe().proxy, o = t.iv, d = (_, m = !0) => {
2592
+ const { object: n, valueProp: a, mode: i } = fe(s), l = Oe().proxy, o = t.iv, c = (_, m = !0) => {
2593
2593
  o.value = p(_);
2594
- const $ = c(_);
2594
+ const $ = d(_);
2595
2595
  e.emit("change", $, l), m && (e.emit("input", $), e.emit("update:modelValue", $));
2596
- }, c = (_) => n.value || Ae(_) ? _ : Array.isArray(_) ? _.map((m) => m[a.value]) : _[a.value], p = (_) => Ae(_) ? i.value === "single" ? {} : [] : _;
2596
+ }, d = (_) => n.value || Ae(_) ? _ : Array.isArray(_) ? _.map((m) => m[a.value]) : _[a.value], p = (_) => Ae(_) ? i.value === "single" ? {} : [] : _;
2597
2597
  return {
2598
- update: d
2598
+ update: c
2599
2599
  };
2600
2600
  }
2601
2601
  function O3(s, e) {
2602
- const { value: t, modelValue: n, mode: a, valueProp: i } = ge(s), l = x(a.value !== "single" ? [] : {}), o = n && n.value !== void 0 ? n : t, d = f(() => a.value === "single" ? l.value[i.value] : l.value.map((p) => p[i.value])), c = f(() => a.value !== "single" ? l.value.map((p) => p[i.value]).join(",") : l.value[i.value]);
2602
+ const { value: t, modelValue: n, mode: a, valueProp: i } = fe(s), l = Q(a.value !== "single" ? [] : {}), o = n && n.value !== void 0 ? n : t, c = f(() => a.value === "single" ? l.value[i.value] : l.value.map((p) => p[i.value])), d = f(() => a.value !== "single" ? l.value.map((p) => p[i.value]).join(",") : l.value[i.value]);
2603
2603
  return {
2604
2604
  iv: l,
2605
2605
  internalValue: l,
2606
2606
  ev: o,
2607
2607
  externalValue: o,
2608
- textValue: c,
2609
- plainValue: d
2608
+ textValue: d,
2609
+ plainValue: c
2610
2610
  };
2611
2611
  }
2612
2612
  function B3(s, e, t) {
2613
- const { regex: n } = ge(s), a = Oe().proxy, i = t.isOpen, l = t.open, o = x(null), d = x(null), c = () => {
2613
+ const { regex: n } = fe(s), a = Oe().proxy, i = t.isOpen, l = t.open, o = Q(null), c = Q(null), d = () => {
2614
2614
  o.value = "";
2615
2615
  }, p = ($) => {
2616
2616
  o.value = $.target.value;
@@ -2622,8 +2622,8 @@ function B3(s, e, t) {
2622
2622
  }, m = ($) => {
2623
2623
  if (n && n.value) {
2624
2624
  let E = ($.clipboardData || /* istanbul ignore next */
2625
- window.clipboardData).getData("Text"), k = n.value;
2626
- typeof k == "string" && (k = new RegExp(k)), E.split("").every((M) => !!M.match(k)) || $.preventDefault();
2625
+ window.clipboardData).getData("Text"), I = n.value;
2626
+ typeof I == "string" && (I = new RegExp(I)), E.split("").every((M) => !!M.match(I)) || $.preventDefault();
2627
2627
  }
2628
2628
  e.emit("paste", $, a);
2629
2629
  };
@@ -2631,22 +2631,22 @@ function B3(s, e, t) {
2631
2631
  !i.value && $ && l(), e.emit("search-change", $, a);
2632
2632
  }), {
2633
2633
  search: o,
2634
- input: d,
2635
- clearSearch: c,
2634
+ input: c,
2635
+ clearSearch: d,
2636
2636
  handleSearchInput: p,
2637
2637
  handleKeypress: _,
2638
2638
  handlePaste: m
2639
2639
  };
2640
2640
  }
2641
2641
  function D3(s, e, t) {
2642
- const { groupSelect: n, mode: a, groups: i, disabledProp: l } = ge(s), o = x(null), d = (p) => {
2642
+ const { groupSelect: n, mode: a, groups: i, disabledProp: l } = fe(s), o = Q(null), c = (p) => {
2643
2643
  p === void 0 || p !== null && p[l.value] || i.value && p && p.group && (a.value === "single" || !n.value) || (o.value = p);
2644
2644
  };
2645
2645
  return {
2646
2646
  pointer: o,
2647
- setPointer: d,
2647
+ setPointer: c,
2648
2648
  clearPointer: () => {
2649
- d(null);
2649
+ c(null);
2650
2650
  }
2651
2651
  };
2652
2652
  }
@@ -2669,70 +2669,70 @@ function N3(s, e, t) {
2669
2669
  trackBy: i,
2670
2670
  limit: l,
2671
2671
  hideSelected: o,
2672
- createTag: d,
2673
- createOption: c,
2672
+ createTag: c,
2673
+ createOption: d,
2674
2674
  label: p,
2675
2675
  appendNewTag: _,
2676
2676
  appendNewOption: m,
2677
2677
  multipleLabel: $,
2678
2678
  object: V,
2679
2679
  loading: E,
2680
- delay: k,
2680
+ delay: I,
2681
2681
  resolveOnLoad: M,
2682
2682
  minChars: y,
2683
2683
  filterResults: B,
2684
- clearOnSearch: ee,
2684
+ clearOnSearch: x,
2685
2685
  clearOnSelect: te,
2686
2686
  valueProp: h,
2687
2687
  allowAbsent: H,
2688
2688
  groupLabel: U,
2689
2689
  canDeselect: se,
2690
2690
  max: re,
2691
- strict: _e,
2691
+ strict: Ce,
2692
2692
  closeOnSelect: Z,
2693
2693
  closeOnDeselect: X,
2694
2694
  groups: A,
2695
2695
  reverse: W,
2696
- infinite: me,
2696
+ infinite: _e,
2697
2697
  groupOptions: g,
2698
2698
  groupHideEmpty: D,
2699
2699
  groupSelect: T,
2700
2700
  onCreate: G,
2701
- disabledProp: Q,
2702
- searchStart: Ce,
2703
- searchFilter: he
2704
- } = ge(s), ae = Oe().proxy, q = t.iv, I = t.ev, P = t.search, fe = t.clearSearch, Ie = t.update, ht = t.pointer, De = t.clearPointer, ft = t.focus, gt = t.deactivate, Ze = t.close, yt = t.localize, Ge = x([]), Le = x([]), we = x(!1), A1 = x(null), k1 = x(me.value && l.value === -1 ? 10 : l.value), z1 = f(() => d.value || c.value || !1), bt = f(() => _.value !== void 0 ? _.value : m.value !== void 0 ? m.value : !0), Te = f(() => {
2701
+ disabledProp: ee,
2702
+ searchStart: me,
2703
+ searchFilter: $e
2704
+ } = fe(s), ne = Oe().proxy, q = t.iv, k = t.ev, P = t.search, he = t.clearSearch, ke = t.update, ht = t.pointer, De = t.clearPointer, ft = t.focus, gt = t.deactivate, Ze = t.close, yt = t.localize, Ye = Q([]), Le = Q([]), we = Q(!1), A1 = Q(null), I1 = Q(_e.value && l.value === -1 ? 10 : l.value), z1 = f(() => c.value || d.value || !1), bt = f(() => _.value !== void 0 ? _.value : m.value !== void 0 ? m.value : !0), Te = f(() => {
2705
2705
  if (A.value) {
2706
- let v = o1.value || /* istanbul ignore next */
2706
+ let v = r1.value || /* istanbul ignore next */
2707
2707
  [], S = [];
2708
2708
  return v.forEach((J) => {
2709
- E1(J[g.value]).forEach((ie) => {
2710
- S.push(Object.assign({}, ie, J[Q.value] ? { [Q.value]: !0 } : {}));
2709
+ E1(J[g.value]).forEach((oe) => {
2710
+ S.push(Object.assign({}, oe, J[ee.value] ? { [ee.value]: !0 } : {}));
2711
2711
  });
2712
2712
  }), S;
2713
2713
  } else {
2714
2714
  let v = E1(Le.value || /* istanbul ignore next */
2715
2715
  []);
2716
- return Ge.value.length && (v = v.concat(Ge.value)), v;
2716
+ return Ye.value.length && (v = v.concat(Ye.value)), v;
2717
2717
  }
2718
2718
  }), F1 = f(() => {
2719
2719
  let v = Te.value;
2720
2720
  return W.value && (v = v.reverse()), Pe.value.length && (v = Pe.value.concat(v)), T1(v);
2721
- }), Ye = f(() => {
2721
+ }), We = f(() => {
2722
2722
  let v = F1.value;
2723
- return k1.value > 0 && (v = v.slice(0, k1.value)), v;
2724
- }), o1 = f(() => {
2723
+ return I1.value > 0 && (v = v.slice(0, I1.value)), v;
2724
+ }), r1 = f(() => {
2725
2725
  if (!A.value)
2726
2726
  return [];
2727
2727
  let v = [], S = Le.value || /* istanbul ignore next */
2728
2728
  [];
2729
- return Ge.value.length && v.push({
2729
+ return Ye.value.length && v.push({
2730
2730
  [U.value]: " ",
2731
- [g.value]: [...Ge.value],
2731
+ [g.value]: [...Ye.value],
2732
2732
  __CREATE__: !0
2733
2733
  }), v.concat(S);
2734
2734
  }), $t = f(() => {
2735
- let v = [...o1.value].map((S) => ({ ...S }));
2735
+ let v = [...r1.value].map((S) => ({ ...S }));
2736
2736
  return Pe.value.length && (v[0] && v[0].__CREATE__ ? v[0][g.value] = [...Pe.value, ...v[0][g.value]] : v = [{
2737
2737
  [U.value]: " ",
2738
2738
  [g.value]: [...Pe.value],
@@ -2744,16 +2744,16 @@ function N3(s, e, t) {
2744
2744
  let v = $t.value;
2745
2745
  return Zt((v || /* istanbul ignore next */
2746
2746
  []).map((S, J) => {
2747
- const ie = E1(S[g.value]);
2747
+ const oe = E1(S[g.value]);
2748
2748
  return {
2749
2749
  ...S,
2750
2750
  index: J,
2751
2751
  group: !0,
2752
- [g.value]: T1(ie, !1).map((We) => Object.assign({}, We, S[Q.value] ? { [Q.value]: !0 } : {})),
2753
- __VISIBLE__: T1(ie).map((We) => Object.assign({}, We, S[Q.value] ? { [Q.value]: !0 } : {}))
2752
+ [g.value]: T1(oe, !1).map((Xe) => Object.assign({}, Xe, S[ee.value] ? { [ee.value]: !0 } : {})),
2753
+ __VISIBLE__: T1(oe).map((Xe) => Object.assign({}, Xe, S[ee.value] ? { [ee.value]: !0 } : {}))
2754
2754
  };
2755
2755
  }));
2756
- }), I1 = f(() => {
2756
+ }), k1 = f(() => {
2757
2757
  switch (a.value) {
2758
2758
  case "single":
2759
2759
  return !Ae(q.value[h.value]);
@@ -2761,12 +2761,12 @@ function N3(s, e, t) {
2761
2761
  case "tags":
2762
2762
  return !Ae(q.value) && q.value.length > 0;
2763
2763
  }
2764
- }), wt = f(() => $ !== void 0 && $.value !== void 0 ? $.value(q.value, ae) : q.value && q.value.length > 1 ? `${q.value.length} options selected` : "1 option selected"), Mt = f(() => !Te.value.length && !we.value && !Pe.value.length), At = f(() => Te.value.length > 0 && Ye.value.length == 0 && (P.value && A.value || !A.value)), Pe = f(() => z1.value === !1 || !P.value ? [] : Ot(P.value) !== -1 ? [] : [{
2764
+ }), wt = f(() => $ !== void 0 && $.value !== void 0 ? $.value(q.value, ne) : q.value && q.value.length > 1 ? `${q.value.length} options selected` : "1 option selected"), Mt = f(() => !Te.value.length && !we.value && !Pe.value.length), At = f(() => Te.value.length > 0 && We.value.length == 0 && (P.value && A.value || !A.value)), Pe = f(() => z1.value === !1 || !P.value ? [] : Ot(P.value) !== -1 ? [] : [{
2765
2765
  [h.value]: P.value,
2766
2766
  [Me.value]: P.value,
2767
2767
  [p.value]: P.value,
2768
2768
  __CREATE__: !0
2769
- }]), Me = f(() => i.value || p.value), kt = f(() => {
2769
+ }]), Me = f(() => i.value || p.value), It = f(() => {
2770
2770
  switch (a.value) {
2771
2771
  case "single":
2772
2772
  return null;
@@ -2774,17 +2774,17 @@ function N3(s, e, t) {
2774
2774
  case "tags":
2775
2775
  return [];
2776
2776
  }
2777
- }), It = f(() => E.value || we.value), Ne = (v) => {
2777
+ }), kt = f(() => E.value || we.value), Ne = (v) => {
2778
2778
  switch (typeof v != "object" && (v = Ve(v)), a.value) {
2779
2779
  case "single":
2780
- Ie(v);
2780
+ ke(v);
2781
2781
  break;
2782
2782
  case "multiple":
2783
2783
  case "tags":
2784
- Ie(q.value.concat(v));
2784
+ ke(q.value.concat(v));
2785
2785
  break;
2786
2786
  }
2787
- e.emit("select", G1(v), v, ae);
2787
+ e.emit("select", G1(v), v, ne);
2788
2788
  }, je = (v) => {
2789
2789
  switch (typeof v != "object" && (v = Ve(v)), a.value) {
2790
2790
  case "single":
@@ -2792,10 +2792,10 @@ function N3(s, e, t) {
2792
2792
  break;
2793
2793
  case "tags":
2794
2794
  case "multiple":
2795
- Ie(Array.isArray(v) ? q.value.filter((S) => v.map((J) => J[h.value]).indexOf(S[h.value]) === -1) : q.value.filter((S) => S[h.value] != v[h.value]));
2795
+ ke(Array.isArray(v) ? q.value.filter((S) => v.map((J) => J[h.value]).indexOf(S[h.value]) === -1) : q.value.filter((S) => S[h.value] != v[h.value]));
2796
2796
  break;
2797
2797
  }
2798
- e.emit("deselect", G1(v), v, ae);
2798
+ e.emit("deselect", G1(v), v, ne);
2799
2799
  }, G1 = (v) => V.value ? v : v[h.value], Y1 = (v) => {
2800
2800
  je(v);
2801
2801
  }, St = (v, S) => {
@@ -2805,7 +2805,7 @@ function N3(s, e, t) {
2805
2805
  }
2806
2806
  Y1(v);
2807
2807
  }, W1 = () => {
2808
- e.emit("clear", ae), Ie(kt.value);
2808
+ e.emit("clear", ne), ke(It.value);
2809
2809
  }, Se = (v) => {
2810
2810
  if (v.group !== void 0)
2811
2811
  return a.value === "single" ? !1 : Ht(v[g.value]) && v[g.value].length;
@@ -2816,9 +2816,9 @@ function N3(s, e, t) {
2816
2816
  case "multiple":
2817
2817
  return !Ae(q.value) && q.value.map((S) => S[h.value]).indexOf(v[h.value]) !== -1;
2818
2818
  }
2819
- }, S1 = (v) => v[Q.value] === !0, V1 = () => re === void 0 || re.value === -1 || !I1.value && re.value > 0 ? !1 : q.value.length >= re.value, Vt = (v) => {
2819
+ }, S1 = (v) => v[ee.value] === !0, V1 = () => re === void 0 || re.value === -1 || !k1.value && re.value > 0 ? !1 : q.value.length >= re.value, Vt = (v) => {
2820
2820
  if (!S1(v)) {
2821
- if (G && G.value && !Se(v) && v.__CREATE__ && (v = { ...v }, delete v.__CREATE__, v = G.value(v, ae), v instanceof Promise)) {
2821
+ if (G && G.value && !Se(v) && v.__CREATE__ && (v = { ...v }, delete v.__CREATE__, v = G.value(v, ne), v instanceof Promise)) {
2822
2822
  we.value = !0, v.then((S) => {
2823
2823
  we.value = !1, X1(S);
2824
2824
  });
@@ -2833,7 +2833,7 @@ function N3(s, e, t) {
2833
2833
  se.value && je(v), X.value && (De(), Ze());
2834
2834
  return;
2835
2835
  }
2836
- v && L1(v), te.value && fe(), Z.value && (De(), Ze()), v && Ne(v);
2836
+ v && L1(v), te.value && he(), Z.value && (De(), Ze()), v && Ne(v);
2837
2837
  break;
2838
2838
  case "multiple":
2839
2839
  if (v && Se(v)) {
@@ -2841,10 +2841,10 @@ function N3(s, e, t) {
2841
2841
  return;
2842
2842
  }
2843
2843
  if (V1()) {
2844
- e.emit("max", ae);
2844
+ e.emit("max", ne);
2845
2845
  return;
2846
2846
  }
2847
- v && (L1(v), Ne(v)), te.value && fe(), o.value && De(), Z.value && Ze();
2847
+ v && (L1(v), Ne(v)), te.value && he(), o.value && De(), Z.value && Ze();
2848
2848
  break;
2849
2849
  case "tags":
2850
2850
  if (v && Se(v)) {
@@ -2852,10 +2852,10 @@ function N3(s, e, t) {
2852
2852
  return;
2853
2853
  }
2854
2854
  if (V1()) {
2855
- e.emit("max", ae);
2855
+ e.emit("max", ne);
2856
2856
  return;
2857
2857
  }
2858
- v && L1(v), te.value && fe(), v && Ne(v), o.value && De(), Z.value && Ze();
2858
+ v && L1(v), te.value && he(), v && Ne(v), o.value && De(), Z.value && Ze();
2859
2859
  break;
2860
2860
  }
2861
2861
  Z.value || ft();
@@ -2865,67 +2865,67 @@ function N3(s, e, t) {
2865
2865
  case "multiple":
2866
2866
  case "tags":
2867
2867
  Et(v[g.value]) ? je(v[g.value]) : Ne(
2868
- v[g.value].filter((S) => q.value.map((J) => J[h.value]).indexOf(S[h.value]) === -1).filter((S) => !S[Q.value]).filter((S, J) => q.value.length + 1 + J <= re.value || re.value === -1)
2868
+ v[g.value].filter((S) => q.value.map((J) => J[h.value]).indexOf(S[h.value]) === -1).filter((S) => !S[ee.value]).filter((S, J) => q.value.length + 1 + J <= re.value || re.value === -1)
2869
2869
  );
2870
2870
  break;
2871
2871
  }
2872
2872
  Z.value && gt();
2873
2873
  }
2874
2874
  }, L1 = (v) => {
2875
- Ve(v[h.value]) === void 0 && z1.value && (e.emit("tag", v[h.value], ae), e.emit("option", v[h.value], ae), e.emit("create", v[h.value], ae), bt.value && Dt(v), fe());
2875
+ Ve(v[h.value]) === void 0 && z1.value && (e.emit("tag", v[h.value], ne), e.emit("option", v[h.value], ne), e.emit("create", v[h.value], ne), bt.value && Dt(v), he());
2876
2876
  }, Tt = () => {
2877
- a.value !== "single" && Ne(Ye.value.filter((v) => !v.disabled && !Se(v)));
2878
- }, Et = (v) => v.find((S) => !Se(S) && !S[Q.value]) === void 0, Ht = (v) => v.find((S) => !Se(S)) === void 0, Ve = (v) => Te.value[Te.value.map((S) => String(S[h.value])).indexOf(String(v))], Ot = (v, S = !0) => Te.value.map((J) => parseInt(J[Me.value]) == J[Me.value] ? parseInt(J[Me.value]) : J[Me.value]).indexOf(
2877
+ a.value !== "single" && Ne(We.value.filter((v) => !v.disabled && !Se(v)));
2878
+ }, Et = (v) => v.find((S) => !Se(S) && !S[ee.value]) === void 0, Ht = (v) => v.find((S) => !Se(S)) === void 0, Ve = (v) => Te.value[Te.value.map((S) => String(S[h.value])).indexOf(String(v))], Ot = (v, S = !0) => Te.value.map((J) => parseInt(J[Me.value]) == J[Me.value] ? parseInt(J[Me.value]) : J[Me.value]).indexOf(
2879
2879
  parseInt(v) == v ? parseInt(v) : v
2880
2880
  ), Bt = (v) => ["tags", "multiple"].indexOf(a.value) !== -1 && o.value && Se(v), Dt = (v) => {
2881
- Ge.value.push(v);
2881
+ Ye.value.push(v);
2882
2882
  }, Zt = (v) => D.value ? v.filter(
2883
2883
  (S) => P.value ? S.__VISIBLE__.length : S[g.value].length
2884
2884
  ) : v.filter((S) => P.value ? S.__VISIBLE__.length : !0), T1 = (v, S = !0) => {
2885
2885
  let J = v;
2886
2886
  if (P.value && B.value) {
2887
- let ie = he.value;
2888
- ie || (ie = (We, Bu) => {
2889
- let Q1 = O1(yt(We[Me.value]), _e.value);
2890
- return Ce.value ? Q1.startsWith(O1(P.value, _e.value)) : Q1.indexOf(O1(P.value, _e.value)) !== -1;
2891
- }), J = J.filter(ie);
2887
+ let oe = $e.value;
2888
+ oe || (oe = (Xe, Bu) => {
2889
+ let Q1 = O1(yt(Xe[Me.value]), Ce.value);
2890
+ return me.value ? Q1.startsWith(O1(P.value, Ce.value)) : Q1.indexOf(O1(P.value, Ce.value)) !== -1;
2891
+ }), J = J.filter(oe);
2892
2892
  }
2893
- return o.value && S && (J = J.filter((ie) => !Bt(ie))), J;
2893
+ return o.value && S && (J = J.filter((oe) => !Bt(oe))), J;
2894
2894
  }, E1 = (v) => {
2895
2895
  let S = v;
2896
2896
  return Z3(S) && (S = Object.keys(S).map((J) => {
2897
- let ie = S[J];
2898
- return { [h.value]: J, [Me.value]: ie, [p.value]: ie };
2897
+ let oe = S[J];
2898
+ return { [h.value]: J, [Me.value]: oe, [p.value]: oe };
2899
2899
  })), S = S.map((J) => typeof J == "object" ? J : { [h.value]: J, [Me.value]: J, [p.value]: J }), S;
2900
- }, r1 = () => {
2901
- Ae(I.value) || (q.value = c1(I.value));
2902
- }, u1 = (v) => (we.value = !0, new Promise((S, J) => {
2903
- n.value(P.value, ae).then((ie) => {
2904
- Le.value = ie || [], typeof v == "function" && v(ie), we.value = !1;
2905
- }).catch((ie) => {
2906
- console.error(ie), Le.value = [], we.value = !1;
2900
+ }, u1 = () => {
2901
+ Ae(k.value) || (q.value = d1(k.value));
2902
+ }, c1 = (v) => (we.value = !0, new Promise((S, J) => {
2903
+ n.value(P.value, ne).then((oe) => {
2904
+ Le.value = oe || [], typeof v == "function" && v(oe), we.value = !1;
2905
+ }).catch((oe) => {
2906
+ console.error(oe), Le.value = [], we.value = !1;
2907
2907
  }).finally(() => {
2908
2908
  S();
2909
2909
  });
2910
2910
  })), H1 = () => {
2911
- if (I1.value)
2911
+ if (k1.value)
2912
2912
  if (a.value === "single") {
2913
2913
  let v = Ve(q.value[h.value]);
2914
2914
  if (v !== void 0) {
2915
2915
  let S = v[p.value];
2916
- q.value[p.value] = S, V.value && (I.value[p.value] = S);
2916
+ q.value[p.value] = S, V.value && (k.value[p.value] = S);
2917
2917
  }
2918
2918
  } else
2919
2919
  q.value.forEach((v, S) => {
2920
2920
  let J = Ve(q.value[S][h.value]);
2921
2921
  if (J !== void 0) {
2922
- let ie = J[p.value];
2923
- q.value[S][p.value] = ie, V.value && (I.value[S][p.value] = ie);
2922
+ let oe = J[p.value];
2923
+ q.value[S][p.value] = oe, V.value && (k.value[S][p.value] = oe);
2924
2924
  }
2925
2925
  });
2926
2926
  }, Pt = (v) => {
2927
- u1(v);
2928
- }, c1 = (v) => Ae(v) ? a.value === "single" ? {} : [] : V.value ? v : a.value === "single" ? Ve(v) || (H.value ? {
2927
+ c1(v);
2928
+ }, d1 = (v) => Ae(v) ? a.value === "single" ? {} : [] : V.value ? v : a.value === "single" ? Ve(v) || (H.value ? {
2929
2929
  [p.value]: v,
2930
2930
  [h.value]: v,
2931
2931
  [Me.value]: v
@@ -2935,55 +2935,55 @@ function N3(s, e, t) {
2935
2935
  [Me.value]: S
2936
2936
  }), J1 = () => {
2937
2937
  A1.value = de(P, (v) => {
2938
- v.length < y.value || !v && y.value !== 0 || (we.value = !0, ee.value && (Le.value = []), setTimeout(() => {
2939
- v == P.value && n.value(P.value, ae).then((S) => {
2940
- (v == P.value || !P.value) && (Le.value = S, ht.value = Ye.value.filter((J) => J[Q.value] !== !0)[0] || null, we.value = !1);
2938
+ v.length < y.value || !v && y.value !== 0 || (we.value = !0, x.value && (Le.value = []), setTimeout(() => {
2939
+ v == P.value && n.value(P.value, ne).then((S) => {
2940
+ (v == P.value || !P.value) && (Le.value = S, ht.value = We.value.filter((J) => J[ee.value] !== !0)[0] || null, we.value = !1);
2941
2941
  }).catch(
2942
2942
  /* istanbul ignore next */
2943
2943
  (S) => {
2944
2944
  console.error(S);
2945
2945
  }
2946
2946
  );
2947
- }, k.value));
2947
+ }, I.value));
2948
2948
  }, { flush: "sync" });
2949
2949
  };
2950
- if (a.value !== "single" && !Ae(I.value) && !Array.isArray(I.value))
2950
+ if (a.value !== "single" && !Ae(k.value) && !Array.isArray(k.value))
2951
2951
  throw new Error(`v-model must be an array when using "${a.value}" mode`);
2952
- return n && typeof n.value == "function" ? M.value ? u1(r1) : V.value == !0 && r1() : (Le.value = n.value, r1()), k.value > -1 && J1(), de(k, (v, S) => {
2952
+ return n && typeof n.value == "function" ? M.value ? c1(u1) : V.value == !0 && u1() : (Le.value = n.value, u1()), I.value > -1 && J1(), de(I, (v, S) => {
2953
2953
  A1.value && A1.value(), v >= 0 && J1();
2954
- }), de(I, (v) => {
2954
+ }), de(k, (v) => {
2955
2955
  if (Ae(v)) {
2956
- Ie(c1(v), !1);
2956
+ ke(d1(v), !1);
2957
2957
  return;
2958
2958
  }
2959
2959
  switch (a.value) {
2960
2960
  case "single":
2961
- (V.value ? v[h.value] != q.value[h.value] : v != q.value[h.value]) && Ie(c1(v), !1);
2961
+ (V.value ? v[h.value] != q.value[h.value] : v != q.value[h.value]) && ke(d1(v), !1);
2962
2962
  break;
2963
2963
  case "multiple":
2964
2964
  case "tags":
2965
- P3(V.value ? v.map((S) => S[h.value]) : v, q.value.map((S) => S[h.value])) || Ie(c1(v), !1);
2965
+ P3(V.value ? v.map((S) => S[h.value]) : v, q.value.map((S) => S[h.value])) || ke(d1(v), !1);
2966
2966
  break;
2967
2967
  }
2968
2968
  }, { deep: !0 }), de(n, (v, S) => {
2969
- typeof s.options == "function" ? M.value && (!S || v && v.toString() !== S.toString()) && u1() : (Le.value = s.options, Object.keys(q.value).length || r1(), H1());
2969
+ typeof s.options == "function" ? M.value && (!S || v && v.toString() !== S.toString()) && c1() : (Le.value = s.options, Object.keys(q.value).length || u1(), H1());
2970
2970
  }), de(p, H1), {
2971
2971
  pfo: F1,
2972
- fo: Ye,
2973
- filteredOptions: Ye,
2974
- hasSelected: I1,
2972
+ fo: We,
2973
+ filteredOptions: We,
2974
+ hasSelected: k1,
2975
2975
  multipleLabelText: wt,
2976
2976
  eo: Te,
2977
2977
  extendedOptions: Te,
2978
- eg: o1,
2979
- extendedGroups: o1,
2978
+ eg: r1,
2979
+ extendedGroups: r1,
2980
2980
  fg: K1,
2981
2981
  filteredGroups: K1,
2982
2982
  noOptions: Mt,
2983
2983
  noResults: At,
2984
2984
  resolving: we,
2985
- busy: It,
2986
- offset: k1,
2985
+ busy: kt,
2986
+ offset: I1,
2987
2987
  select: Ne,
2988
2988
  deselect: je,
2989
2989
  remove: Y1,
@@ -2997,7 +2997,7 @@ function N3(s, e, t) {
2997
2997
  handleGroupClick: Lt,
2998
2998
  handleTagRemove: St,
2999
2999
  refreshOptions: Pt,
3000
- resolveOptions: u1,
3000
+ resolveOptions: c1,
3001
3001
  refreshLabels: H1
3002
3002
  };
3003
3003
  }
@@ -3008,76 +3008,76 @@ function j3(s, e, t) {
3008
3008
  searchable: i,
3009
3009
  groupLabel: l,
3010
3010
  groups: o,
3011
- mode: d,
3012
- groupSelect: c,
3011
+ mode: c,
3012
+ groupSelect: d,
3013
3013
  disabledProp: p,
3014
3014
  groupOptions: _
3015
- } = ge(s), m = t.fo, $ = t.fg, V = t.handleOptionClick, E = t.handleGroupClick, k = t.search, M = t.pointer, y = t.setPointer, B = t.clearPointer, ee = t.multiselect, te = t.isOpen, h = f(() => m.value.filter((I) => !I[p.value])), H = f(() => $.value.filter((I) => !I[p.value])), U = f(() => d.value !== "single" && c.value), se = f(() => M.value && M.value.group), re = f(() => ae(M.value)), _e = f(() => {
3016
- const I = se.value ? M.value : (
3015
+ } = fe(s), m = t.fo, $ = t.fg, V = t.handleOptionClick, E = t.handleGroupClick, I = t.search, M = t.pointer, y = t.setPointer, B = t.clearPointer, x = t.multiselect, te = t.isOpen, h = f(() => m.value.filter((k) => !k[p.value])), H = f(() => $.value.filter((k) => !k[p.value])), U = f(() => c.value !== "single" && d.value), se = f(() => M.value && M.value.group), re = f(() => ne(M.value)), Ce = f(() => {
3016
+ const k = se.value ? M.value : (
3017
3017
  /* istanbul ignore next */
3018
- ae(M.value)
3019
- ), P = H.value.map((Ie) => Ie[l.value]).indexOf(I[l.value]);
3020
- let fe = H.value[P - 1];
3021
- return fe === void 0 && (fe = X.value), fe;
3018
+ ne(M.value)
3019
+ ), P = H.value.map((ke) => ke[l.value]).indexOf(k[l.value]);
3020
+ let he = H.value[P - 1];
3021
+ return he === void 0 && (he = X.value), he;
3022
3022
  }), Z = f(() => {
3023
- let I = H.value.map((P) => P.label).indexOf(se.value ? M.value[l.value] : ae(M.value)[l.value]) + 1;
3024
- return H.value.length <= I && (I = 0), H.value[I];
3025
- }), X = f(() => [...H.value].slice(-1)[0]), A = f(() => M.value.__VISIBLE__.filter((I) => !I[p.value])[0]), W = f(() => {
3026
- const I = re.value.__VISIBLE__.filter((P) => !P[p.value]);
3027
- return I[I.map((P) => P[n.value]).indexOf(M.value[n.value]) - 1];
3028
- }), me = f(() => {
3029
- const I = ae(M.value).__VISIBLE__.filter((P) => !P[p.value]);
3030
- return I[I.map((P) => P[n.value]).indexOf(M.value[n.value]) + 1];
3031
- }), g = f(() => [..._e.value.__VISIBLE__.filter((I) => !I[p.value])].slice(-1)[0]), D = f(() => [...X.value.__VISIBLE__.filter((I) => !I[p.value])].slice(-1)[0]), T = (I) => M.value && (!I.group && M.value[n.value] === I[n.value] || I.group !== void 0 && M.value[l.value] === I[l.value]) ? !0 : void 0, G = () => {
3023
+ let k = H.value.map((P) => P.label).indexOf(se.value ? M.value[l.value] : ne(M.value)[l.value]) + 1;
3024
+ return H.value.length <= k && (k = 0), H.value[k];
3025
+ }), X = f(() => [...H.value].slice(-1)[0]), A = f(() => M.value.__VISIBLE__.filter((k) => !k[p.value])[0]), W = f(() => {
3026
+ const k = re.value.__VISIBLE__.filter((P) => !P[p.value]);
3027
+ return k[k.map((P) => P[n.value]).indexOf(M.value[n.value]) - 1];
3028
+ }), _e = f(() => {
3029
+ const k = ne(M.value).__VISIBLE__.filter((P) => !P[p.value]);
3030
+ return k[k.map((P) => P[n.value]).indexOf(M.value[n.value]) + 1];
3031
+ }), g = f(() => [...Ce.value.__VISIBLE__.filter((k) => !k[p.value])].slice(-1)[0]), D = f(() => [...X.value.__VISIBLE__.filter((k) => !k[p.value])].slice(-1)[0]), T = (k) => M.value && (!k.group && M.value[n.value] === k[n.value] || k.group !== void 0 && M.value[l.value] === k[l.value]) ? !0 : void 0, G = () => {
3032
3032
  y(h.value[0] || null);
3033
- }, Q = () => {
3033
+ }, ee = () => {
3034
3034
  !M.value || M.value[p.value] === !0 || (se.value ? E(M.value) : V(M.value));
3035
- }, Ce = () => {
3035
+ }, me = () => {
3036
3036
  if (M.value === null)
3037
3037
  y((o.value && U.value ? H.value[0].__CREATE__ ? h.value[0] : H.value[0] : h.value[0]) || null);
3038
3038
  else if (o.value && U.value) {
3039
- let I = se.value ? A.value : me.value;
3040
- I === void 0 && (I = Z.value, I.__CREATE__ && (I = I[_.value][0])), y(I || /* istanbul ignore next */
3039
+ let k = se.value ? A.value : _e.value;
3040
+ k === void 0 && (k = Z.value, k.__CREATE__ && (k = k[_.value][0])), y(k || /* istanbul ignore next */
3041
3041
  null);
3042
3042
  } else {
3043
- let I = h.value.map((P) => P[n.value]).indexOf(M.value[n.value]) + 1;
3044
- h.value.length <= I && (I = 0), y(h.value[I] || null);
3043
+ let k = h.value.map((P) => P[n.value]).indexOf(M.value[n.value]) + 1;
3044
+ h.value.length <= k && (k = 0), y(h.value[k] || null);
3045
3045
  }
3046
3046
  He(() => {
3047
3047
  q();
3048
3048
  });
3049
- }, he = () => {
3049
+ }, $e = () => {
3050
3050
  if (M.value === null) {
3051
- let I = h.value[h.value.length - 1];
3052
- o.value && U.value && (I = D.value, I === void 0 && (I = X.value)), y(I || null);
3051
+ let k = h.value[h.value.length - 1];
3052
+ o.value && U.value && (k = D.value, k === void 0 && (k = X.value)), y(k || null);
3053
3053
  } else if (o.value && U.value) {
3054
- let I = se.value ? g.value : W.value;
3055
- I === void 0 && (I = se.value ? _e.value : re.value, I.__CREATE__ && (I = g.value, I === void 0 && (I = _e.value))), y(I || /* istanbul ignore next */
3054
+ let k = se.value ? g.value : W.value;
3055
+ k === void 0 && (k = se.value ? Ce.value : re.value, k.__CREATE__ && (k = g.value, k === void 0 && (k = Ce.value))), y(k || /* istanbul ignore next */
3056
3056
  null);
3057
3057
  } else {
3058
- let I = h.value.map((P) => P[n.value]).indexOf(M.value[n.value]) - 1;
3059
- I < 0 && (I = h.value.length - 1), y(h.value[I] || null);
3058
+ let k = h.value.map((P) => P[n.value]).indexOf(M.value[n.value]) - 1;
3059
+ k < 0 && (k = h.value.length - 1), y(h.value[k] || null);
3060
3060
  }
3061
3061
  He(() => {
3062
3062
  q();
3063
3063
  });
3064
- }, ae = (I) => H.value.find((P) => P.__VISIBLE__.map((fe) => fe[n.value]).indexOf(I[n.value]) !== -1), q = () => {
3065
- let I = ee.value.querySelector("[data-pointed]");
3066
- if (!I)
3064
+ }, ne = (k) => H.value.find((P) => P.__VISIBLE__.map((he) => he[n.value]).indexOf(k[n.value]) !== -1), q = () => {
3065
+ let k = x.value.querySelector("[data-pointed]");
3066
+ if (!k)
3067
3067
  return;
3068
- let P = I.parentElement.parentElement;
3069
- o.value && (P = se.value ? I.parentElement.parentElement.parentElement : I.parentElement.parentElement.parentElement.parentElement), I.offsetTop + I.offsetHeight > P.clientHeight + P.scrollTop && (P.scrollTop = I.offsetTop + I.offsetHeight - P.clientHeight), I.offsetTop < P.scrollTop && (P.scrollTop = I.offsetTop);
3068
+ let P = k.parentElement.parentElement;
3069
+ o.value && (P = se.value ? k.parentElement.parentElement.parentElement : k.parentElement.parentElement.parentElement.parentElement), k.offsetTop + k.offsetHeight > P.clientHeight + P.scrollTop && (P.scrollTop = k.offsetTop + k.offsetHeight - P.clientHeight), k.offsetTop < P.scrollTop && (P.scrollTop = k.offsetTop);
3070
3070
  };
3071
- return de(k, (I) => {
3072
- i.value && (I.length && a.value ? G() : B());
3073
- }), de(te, (I) => {
3074
- if (I) {
3075
- let P = ee.value.querySelectorAll("[data-selected]")[0];
3071
+ return de(I, (k) => {
3072
+ i.value && (k.length && a.value ? G() : B());
3073
+ }), de(te, (k) => {
3074
+ if (k) {
3075
+ let P = x.value.querySelectorAll("[data-selected]")[0];
3076
3076
  if (!P)
3077
3077
  return;
3078
- let fe = P.parentElement.parentElement;
3078
+ let he = P.parentElement.parentElement;
3079
3079
  He(() => {
3080
- fe.scrollTop > 0 || (fe.scrollTop = P.offsetTop);
3080
+ he.scrollTop > 0 || (he.scrollTop = P.offsetTop);
3081
3081
  });
3082
3082
  }
3083
3083
  }), {
@@ -3085,13 +3085,13 @@ function j3(s, e, t) {
3085
3085
  canPointGroups: U,
3086
3086
  isPointed: T,
3087
3087
  setPointerFirst: G,
3088
- selectPointer: Q,
3089
- forwardPointer: Ce,
3090
- backwardPointer: he
3088
+ selectPointer: ee,
3089
+ forwardPointer: me,
3090
+ backwardPointer: $e
3091
3091
  };
3092
3092
  }
3093
3093
  function R3(s, e, t) {
3094
- const { disabled: n } = ge(s), a = Oe().proxy, i = x(!1);
3094
+ const { disabled: n } = fe(s), a = Oe().proxy, i = Q(!1);
3095
3095
  return {
3096
3096
  isOpen: i,
3097
3097
  open: () => {
@@ -3103,40 +3103,40 @@ function R3(s, e, t) {
3103
3103
  };
3104
3104
  }
3105
3105
  function U3(s, e, t) {
3106
- const { searchable: n, disabled: a, clearOnBlur: i } = ge(s), l = t.input, o = t.open, d = t.close, c = t.clearSearch, p = t.isOpen, _ = x(null), m = x(null), $ = x(null), V = x(!1), E = x(!1), k = f(() => n.value || a.value ? -1 : 0), M = () => {
3106
+ const { searchable: n, disabled: a, clearOnBlur: i } = fe(s), l = t.input, o = t.open, c = t.close, d = t.clearSearch, p = t.isOpen, _ = Q(null), m = Q(null), $ = Q(null), V = Q(!1), E = Q(!1), I = f(() => n.value || a.value ? -1 : 0), M = () => {
3107
3107
  n.value && l.value.blur(), m.value.blur();
3108
3108
  }, y = () => {
3109
3109
  n.value && !a.value && l.value.focus();
3110
3110
  }, B = (se = !0) => {
3111
3111
  a.value || (V.value = !0, se && o());
3112
- }, ee = () => {
3112
+ }, x = () => {
3113
3113
  V.value = !1, setTimeout(() => {
3114
- V.value || (d(), i.value && c());
3114
+ V.value || (c(), i.value && d());
3115
3115
  }, 1);
3116
3116
  };
3117
3117
  return {
3118
3118
  multiselect: _,
3119
3119
  wrapper: m,
3120
3120
  tags: $,
3121
- tabindex: k,
3121
+ tabindex: I,
3122
3122
  isActive: V,
3123
3123
  mouseClicked: E,
3124
3124
  blur: M,
3125
3125
  focus: y,
3126
3126
  activate: B,
3127
- deactivate: ee,
3127
+ deactivate: x,
3128
3128
  handleFocusIn: (se) => {
3129
3129
  se.target.closest("[data-tags]") && se.target.nodeName !== "INPUT" || se.target.closest("[data-clear]") || B(E.value);
3130
3130
  },
3131
3131
  handleFocusOut: () => {
3132
- ee();
3132
+ x();
3133
3133
  },
3134
3134
  handleCaretClick: () => {
3135
- ee(), M();
3135
+ x(), M();
3136
3136
  },
3137
3137
  handleMousedown: (se) => {
3138
3138
  E.value = !0, p.value && (se.target.isEqualNode(m.value) || se.target.isEqualNode($.value)) ? setTimeout(() => {
3139
- ee();
3139
+ x();
3140
3140
  }, 0) : document.activeElement.isEqualNode(m.value) && !p.value && B(), setTimeout(() => {
3141
3141
  E.value = !1;
3142
3142
  }, 0);
@@ -3150,15 +3150,15 @@ function q3(s, e, t) {
3150
3150
  openDirection: i,
3151
3151
  searchable: l,
3152
3152
  showOptions: o,
3153
- valueProp: d,
3154
- groups: c,
3153
+ valueProp: c,
3154
+ groups: d,
3155
3155
  addOptionOn: p,
3156
3156
  createTag: _,
3157
3157
  createOption: m,
3158
3158
  reverse: $
3159
- } = ge(s), V = Oe().proxy, E = t.iv, k = t.update, M = t.search, y = t.setPointer, B = t.selectPointer, ee = t.backwardPointer, te = t.forwardPointer, h = t.multiselect, H = t.wrapper, U = t.tags, se = t.isOpen, re = t.open, _e = t.blur, Z = t.fo, X = f(() => _.value || m.value || !1), A = f(() => a.value !== void 0 ? a.value : p.value !== void 0 ? p.value : ["enter"]), W = () => {
3160
- n.value === "tags" && !o.value && X.value && l.value && !c.value && y(Z.value[Z.value.map((T) => T[d.value]).indexOf(M.value)]);
3161
- }, me = (T) => {
3159
+ } = fe(s), V = Oe().proxy, E = t.iv, I = t.update, M = t.search, y = t.setPointer, B = t.selectPointer, x = t.backwardPointer, te = t.forwardPointer, h = t.multiselect, H = t.wrapper, U = t.tags, se = t.isOpen, re = t.open, Ce = t.blur, Z = t.fo, X = f(() => _.value || m.value || !1), A = f(() => a.value !== void 0 ? a.value : p.value !== void 0 ? p.value : ["enter"]), W = () => {
3160
+ n.value === "tags" && !o.value && X.value && l.value && !d.value && y(Z.value[Z.value.map((T) => T[c.value]).indexOf(M.value)]);
3161
+ }, _e = (T) => {
3162
3162
  let G = T.length - 1;
3163
3163
  for (; G >= 0 && (T[G].remove === !1 || T[G].disabled); )
3164
3164
  G--;
@@ -3167,18 +3167,18 @@ function q3(s, e, t) {
3167
3167
  return {
3168
3168
  handleKeydown: (T) => {
3169
3169
  e.emit("keydown", T, V);
3170
- let G, Q;
3171
- switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(T.key) !== -1 && n.value === "tags" && (G = [...h.value.querySelectorAll("[data-tags] > *")].filter((Ce) => Ce !== U.value), Q = G.findIndex((Ce) => Ce === document.activeElement)), T.key) {
3170
+ let G, ee;
3171
+ switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(T.key) !== -1 && n.value === "tags" && (G = [...h.value.querySelectorAll("[data-tags] > *")].filter((me) => me !== U.value), ee = G.findIndex((me) => me === document.activeElement)), T.key) {
3172
3172
  case "Backspace":
3173
3173
  if (n.value === "single" || l.value && [null, ""].indexOf(M.value) === -1 || E.value.length === 0)
3174
3174
  return;
3175
- k(me([...E.value]));
3175
+ I(_e([...E.value]));
3176
3176
  break;
3177
3177
  case "Enter":
3178
3178
  if (T.preventDefault(), T.keyCode === 229)
3179
3179
  return;
3180
- if (Q !== -1 && Q !== void 0) {
3181
- k([...E.value].filter((Ce, he) => he !== Q)), Q === G.length - 1 && (G.length - 1 ? G[G.length - 2].focus() : l.value ? U.value.querySelector("input").focus() : H.value.focus());
3180
+ if (ee !== -1 && ee !== void 0) {
3181
+ I([...E.value].filter((me, $e) => $e !== ee)), ee === G.length - 1 && (G.length - 1 ? G[G.length - 2].focus() : l.value ? U.value.querySelector("input").focus() : H.value.focus());
3182
3182
  return;
3183
3183
  }
3184
3184
  if (A.value.indexOf("enter") === -1 && X.value)
@@ -3204,12 +3204,12 @@ function q3(s, e, t) {
3204
3204
  W(), B(), T.preventDefault();
3205
3205
  break;
3206
3206
  case "Escape":
3207
- _e();
3207
+ Ce();
3208
3208
  break;
3209
3209
  case "ArrowUp":
3210
3210
  if (T.preventDefault(), !o.value)
3211
3211
  return;
3212
- se.value || re(), ee();
3212
+ se.value || re(), x();
3213
3213
  break;
3214
3214
  case "ArrowDown":
3215
3215
  if (T.preventDefault(), !o.value)
@@ -3219,12 +3219,12 @@ function q3(s, e, t) {
3219
3219
  case "ArrowLeft":
3220
3220
  if (l.value && U.value && U.value.querySelector("input").selectionStart || T.shiftKey || n.value !== "tags" || !E.value || !E.value.length)
3221
3221
  return;
3222
- T.preventDefault(), Q === -1 ? G[G.length - 1].focus() : Q > 0 && G[Q - 1].focus();
3222
+ T.preventDefault(), ee === -1 ? G[G.length - 1].focus() : ee > 0 && G[ee - 1].focus();
3223
3223
  break;
3224
3224
  case "ArrowRight":
3225
- if (Q === -1 || T.shiftKey || n.value !== "tags" || !E.value || !E.value.length)
3225
+ if (ee === -1 || T.shiftKey || n.value !== "tags" || !E.value || !E.value.length)
3226
3226
  return;
3227
- T.preventDefault(), G.length > Q + 1 ? G[Q + 1].focus() : l.value ? U.value.querySelector("input").focus() : l.value || H.value.focus();
3227
+ T.preventDefault(), G.length > ee + 1 ? G[ee + 1].focus() : l.value ? U.value.querySelector("input").focus() : l.value || H.value.focus();
3228
3228
  break;
3229
3229
  }
3230
3230
  },
@@ -3240,7 +3240,7 @@ function z3(s, e, t) {
3240
3240
  disabled: a,
3241
3241
  openDirection: i,
3242
3242
  showOptions: l
3243
- } = ge(s), o = t.isOpen, d = t.isPointed, c = t.isSelected, p = t.isDisabled, _ = t.isActive, m = t.canPointGroups, $ = t.resolving, V = t.fo, E = f(() => ({
3243
+ } = fe(s), o = t.isOpen, c = t.isPointed, d = t.isSelected, p = t.isDisabled, _ = t.isActive, m = t.canPointGroups, $ = t.resolving, V = t.fo, E = f(() => ({
3244
3244
  container: "multiselect",
3245
3245
  containerDisabled: "is-disabled",
3246
3246
  containerOpen: "is-open",
@@ -3293,12 +3293,12 @@ function z3(s, e, t) {
3293
3293
  assist: "multiselect-assistive-text",
3294
3294
  spacer: "multiselect-spacer",
3295
3295
  ...n.value
3296
- })), k = f(() => !!(o.value && l.value && (!$.value || $.value && V.value.length)));
3296
+ })), I = f(() => !!(o.value && l.value && (!$.value || $.value && V.value.length)));
3297
3297
  return {
3298
3298
  classList: f(() => {
3299
3299
  const y = E.value;
3300
3300
  return {
3301
- container: [y.container].concat(a.value ? y.containerDisabled : []).concat(k.value && i.value === "top" ? y.containerOpenTop : []).concat(k.value && i.value !== "top" ? y.containerOpen : []).concat(_.value ? y.containerActive : []),
3301
+ container: [y.container].concat(a.value ? y.containerDisabled : []).concat(I.value && i.value === "top" ? y.containerOpenTop : []).concat(I.value && i.value !== "top" ? y.containerOpen : []).concat(_.value ? y.containerActive : []),
3302
3302
  wrapper: y.wrapper,
3303
3303
  spacer: y.spacer,
3304
3304
  singleLabel: y.singleLabel,
@@ -3320,17 +3320,17 @@ function z3(s, e, t) {
3320
3320
  spinner: y.spinner,
3321
3321
  inifinite: y.inifinite,
3322
3322
  inifiniteSpinner: y.inifiniteSpinner,
3323
- dropdown: [y.dropdown].concat(i.value === "top" ? y.dropdownTop : []).concat(!o.value || !l.value || !k.value ? y.dropdownHidden : []),
3323
+ dropdown: [y.dropdown].concat(i.value === "top" ? y.dropdownTop : []).concat(!o.value || !l.value || !I.value ? y.dropdownHidden : []),
3324
3324
  options: [y.options].concat(i.value === "top" ? y.optionsTop : []),
3325
3325
  group: y.group,
3326
3326
  groupLabel: (B) => {
3327
- let ee = [y.groupLabel];
3328
- return d(B) ? ee.push(c(B) ? y.groupLabelSelectedPointed : y.groupLabelPointed) : c(B) && m.value ? ee.push(p(B) ? y.groupLabelSelectedDisabled : y.groupLabelSelected) : p(B) && ee.push(y.groupLabelDisabled), m.value && ee.push(y.groupLabelPointable), ee;
3327
+ let x = [y.groupLabel];
3328
+ return c(B) ? x.push(d(B) ? y.groupLabelSelectedPointed : y.groupLabelPointed) : d(B) && m.value ? x.push(p(B) ? y.groupLabelSelectedDisabled : y.groupLabelSelected) : p(B) && x.push(y.groupLabelDisabled), m.value && x.push(y.groupLabelPointable), x;
3329
3329
  },
3330
3330
  groupOptions: y.groupOptions,
3331
- option: (B, ee) => {
3331
+ option: (B, x) => {
3332
3332
  let te = [y.option];
3333
- return d(B) ? te.push(c(B) ? y.optionSelectedPointed : y.optionPointed) : c(B) ? te.push(p(B) ? y.optionSelectedDisabled : y.optionSelected) : (p(B) || ee && p(ee)) && te.push(y.optionDisabled), te;
3333
+ return c(B) ? te.push(d(B) ? y.optionSelectedPointed : y.optionPointed) : d(B) ? te.push(p(B) ? y.optionSelectedDisabled : y.optionSelected) : (p(B) || x && p(x)) && te.push(y.optionDisabled), te;
3334
3334
  },
3335
3335
  noOptions: y.noOptions,
3336
3336
  noResults: y.noResults,
@@ -3338,29 +3338,29 @@ function z3(s, e, t) {
3338
3338
  fakeInput: y.fakeInput
3339
3339
  };
3340
3340
  }),
3341
- showDropdown: k
3341
+ showDropdown: I
3342
3342
  };
3343
3343
  }
3344
3344
  function F3(s, e, t) {
3345
3345
  const {
3346
3346
  limit: n,
3347
3347
  infinite: a
3348
- } = ge(s), i = t.isOpen, l = t.offset, o = t.search, d = t.pfo, c = t.eo, p = x(null), _ = x(null), m = f(() => l.value < d.value.length), $ = (E) => {
3349
- const { isIntersecting: k, target: M } = E[0];
3350
- if (k) {
3348
+ } = fe(s), i = t.isOpen, l = t.offset, o = t.search, c = t.pfo, d = t.eo, p = Q(null), _ = Q(null), m = f(() => l.value < c.value.length), $ = (E) => {
3349
+ const { isIntersecting: I, target: M } = E[0];
3350
+ if (I) {
3351
3351
  const y = M.offsetParent, B = y.scrollTop;
3352
3352
  l.value += n.value == -1 ? 10 : n.value, He(() => {
3353
3353
  y.scrollTop = B;
3354
3354
  });
3355
3355
  }
3356
3356
  }, V = () => {
3357
- i.value && l.value < d.value.length ? p.value.observe(_.value) : !i.value && p.value && p.value.disconnect();
3357
+ i.value && l.value < c.value.length ? p.value.observe(_.value) : !i.value && p.value && p.value.disconnect();
3358
3358
  };
3359
3359
  return de(i, () => {
3360
3360
  a.value && V();
3361
3361
  }), de(o, () => {
3362
3362
  a.value && (l.value = n.value, V());
3363
- }, { flush: "post" }), de(c, () => {
3363
+ }, { flush: "post" }), de(d, () => {
3364
3364
  a.value && V();
3365
3365
  }, { immediate: !1, flush: "post" }), m1(() => {
3366
3366
  window && window.IntersectionObserver && (p.value = new IntersectionObserver($));
@@ -3376,10 +3376,10 @@ function K3(s, e, t) {
3376
3376
  valueProp: i,
3377
3377
  label: l,
3378
3378
  mode: o,
3379
- groupLabel: d,
3380
- aria: c,
3379
+ groupLabel: c,
3380
+ aria: d,
3381
3381
  searchable: p
3382
- } = ge(s), _ = t.pointer, m = t.iv, $ = t.hasSelected, V = t.multipleLabelText, E = x(null), k = f(() => {
3382
+ } = fe(s), _ = t.pointer, m = t.iv, $ = t.hasSelected, V = t.multipleLabelText, E = Q(null), I = f(() => {
3383
3383
  let Z = [];
3384
3384
  return a && a.value && Z.push(a.value), Z.push("assist"), Z.join("-");
3385
3385
  }), M = f(() => {
@@ -3389,12 +3389,12 @@ function K3(s, e, t) {
3389
3389
  let Z = [];
3390
3390
  if (a && a.value && Z.push(a.value), _.value)
3391
3391
  return Z.push(_.value.group ? "multiselect-group" : "multiselect-option"), Z.push(_.value.group ? _.value.index : _.value[i.value]), Z.join("-");
3392
- }), B = f(() => n.value), ee = f(() => o.value !== "single"), te = f(() => {
3392
+ }), B = f(() => n.value), x = f(() => o.value !== "single"), te = f(() => {
3393
3393
  let Z = "";
3394
3394
  return o.value === "single" && $.value && (Z += m.value[l.value]), o.value === "multiple" && $.value && (Z += V.value), o.value === "tags" && $.value && (Z += m.value.map((X) => X[l.value]).join(", ")), Z;
3395
3395
  }), h = f(() => {
3396
- let Z = { ...c.value };
3397
- return p.value && (Z["aria-labelledby"] = Z["aria-labelledby"] ? `${k.value} ${Z["aria-labelledby"]}` : k.value, te.value && Z["aria-label"] && (Z["aria-label"] = `${te.value}, ${Z["aria-label"]}`)), Z;
3396
+ let Z = { ...d.value };
3397
+ return p.value && (Z["aria-labelledby"] = Z["aria-labelledby"] ? `${I.value} ${Z["aria-labelledby"]}` : I.value, te.value && Z["aria-label"] && (Z["aria-label"] = `${te.value}, ${Z["aria-label"]}`)), Z;
3398
3398
  }), H = (Z) => {
3399
3399
  let X = [];
3400
3400
  return a && a.value && X.push(a.value), X.push("multiselect-option"), X.push(Z[i.value]), X.join("-");
@@ -3407,7 +3407,7 @@ function K3(s, e, t) {
3407
3407
  }, re = (Z) => {
3408
3408
  let X = [];
3409
3409
  return X.push(Z), X.join(" ");
3410
- }, _e = (Z) => `${Z} ❎`;
3410
+ }, Ce = (Z) => `${Z} ❎`;
3411
3411
  return m1(() => {
3412
3412
  if (a && a.value && document && document.querySelector) {
3413
3413
  let Z = document.querySelector(`[for="${a.value}"]`);
@@ -3416,23 +3416,23 @@ function K3(s, e, t) {
3416
3416
  }), {
3417
3417
  arias: h,
3418
3418
  ariaLabel: te,
3419
- ariaAssist: k,
3419
+ ariaAssist: I,
3420
3420
  ariaControls: M,
3421
3421
  ariaPlaceholder: B,
3422
- ariaMultiselectable: ee,
3422
+ ariaMultiselectable: x,
3423
3423
  ariaActiveDescendant: y,
3424
3424
  ariaOptionId: H,
3425
3425
  ariaOptionLabel: se,
3426
3426
  ariaGroupId: U,
3427
3427
  ariaGroupLabel: re,
3428
- ariaTagLabel: _e
3428
+ ariaTagLabel: Ce
3429
3429
  };
3430
3430
  }
3431
3431
  function G3(s, e, t) {
3432
3432
  const {
3433
3433
  locale: n,
3434
3434
  fallbackLocale: a
3435
- } = ge(s);
3435
+ } = fe(s);
3436
3436
  return {
3437
3437
  localize: (l) => !l || typeof l != "object" ? l : l && l[n.value] ? l[n.value] : l && n.value && l[n.value.toUpperCase()] ? l[n.value.toUpperCase()] : l && l[a.value] ? l[a.value] : l && a.value && l[a.value.toUpperCase()] ? l[a.value.toUpperCase()] : l && Object.keys(l)[0] ? l[Object.keys(l)[0]] : ""
3438
3438
  };
@@ -3833,7 +3833,7 @@ function _5(s, e, t, n, a, i) {
3833
3833
  id: t.searchable ? t.id : void 0,
3834
3834
  onInput: e[0] || (e[0] = (...l) => s.handleSearchInput && s.handleSearchInput(...l)),
3835
3835
  onKeypress: e[1] || (e[1] = (...l) => s.handleKeypress && s.handleKeypress(...l)),
3836
- onPaste: e[2] || (e[2] = ke((...l) => s.handlePaste && s.handlePaste(...l), ["stop"])),
3836
+ onPaste: e[2] || (e[2] = Ie((...l) => s.handlePaste && s.handlePaste(...l), ["stop"])),
3837
3837
  ref: "input",
3838
3838
  "aria-controls": s.ariaControls,
3839
3839
  "aria-placeholder": s.ariaPlaceholder,
@@ -3855,9 +3855,9 @@ function _5(s, e, t, n, a, i) {
3855
3855
  },
3856
3856
  [
3857
3857
  (u(!0), C(
3858
- le,
3858
+ ae,
3859
3859
  null,
3860
- pe(s.iv, (l, o, d) => Y(s.$slots, "tag", {
3860
+ pe(s.iv, (l, o, c) => Y(s.$slots, "tag", {
3861
3861
  option: l,
3862
3862
  handleTagRemove: s.handleTagRemove,
3863
3863
  disabled: t.disabled
@@ -3868,8 +3868,8 @@ function _5(s, e, t, n, a, i) {
3868
3868
  l.disabled ? s.classList.tagDisabled : null
3869
3869
  ]),
3870
3870
  tabindex: "-1",
3871
- onKeyup: t1((c) => s.handleTagRemove(l, c), ["enter"]),
3872
- key: d,
3871
+ onKeyup: a1((d) => s.handleTagRemove(l, d), ["enter"]),
3872
+ key: c,
3873
3873
  "aria-label": s.ariaTagLabel(s.localize(l[t.label]))
3874
3874
  }, [
3875
3875
  Z1(
@@ -3880,7 +3880,7 @@ function _5(s, e, t, n, a, i) {
3880
3880
  !t.disabled && !l.disabled ? (u(), C("span", {
3881
3881
  key: 0,
3882
3882
  class: F(s.classList.tagRemove),
3883
- onClick: ke((c) => s.handleTagRemove(l, c), ["stop"])
3883
+ onClick: Ie((d) => s.handleTagRemove(l, d), ["stop"])
3884
3884
  }, [
3885
3885
  r(
3886
3886
  "span",
@@ -3925,7 +3925,7 @@ function _5(s, e, t, n, a, i) {
3925
3925
  autocomplete: t.autocomplete,
3926
3926
  onInput: e[3] || (e[3] = (...l) => s.handleSearchInput && s.handleSearchInput(...l)),
3927
3927
  onKeypress: e[4] || (e[4] = (...l) => s.handleKeypress && s.handleKeypress(...l)),
3928
- onPaste: e[5] || (e[5] = ke((...l) => s.handlePaste && s.handlePaste(...l), ["stop"])),
3928
+ onPaste: e[5] || (e[5] = Ie((...l) => s.handlePaste && s.handlePaste(...l), ["stop"])),
3929
3929
  ref: "input",
3930
3930
  "aria-controls": s.ariaControls,
3931
3931
  "aria-placeholder": s.ariaPlaceholder,
@@ -4021,7 +4021,7 @@ function _5(s, e, t, n, a, i) {
4021
4021
  "aria-roledescription": "❎",
4022
4022
  class: F(s.classList.clear),
4023
4023
  onClick: e[6] || (e[6] = (...l) => s.clear && s.clear(...l)),
4024
- onKeyup: e[7] || (e[7] = t1((...l) => s.clear && s.clear(...l), ["enter"]))
4024
+ onKeyup: e[7] || (e[7] = a1((...l) => s.clear && s.clear(...l), ["enter"]))
4025
4025
  },
4026
4026
  [
4027
4027
  r(
@@ -4068,11 +4068,11 @@ function _5(s, e, t, n, a, i) {
4068
4068
  role: "listbox"
4069
4069
  }, [
4070
4070
  t.groups ? (u(!0), C(
4071
- le,
4071
+ ae,
4072
4072
  { key: 0 },
4073
- pe(s.fg, (l, o, d) => (u(), C("li", {
4073
+ pe(s.fg, (l, o, c) => (u(), C("li", {
4074
4074
  class: F(s.classList.group),
4075
- key: d,
4075
+ key: c,
4076
4076
  id: s.ariaGroupId(l),
4077
4077
  "aria-label": s.ariaGroupLabel(s.localize(l[t.groupLabel])),
4078
4078
  "aria-selected": s.isSelected(l),
@@ -4082,8 +4082,8 @@ function _5(s, e, t, n, a, i) {
4082
4082
  key: 0,
4083
4083
  class: F(s.classList.groupLabel(l)),
4084
4084
  "data-pointed": s.isPointed(l),
4085
- onMouseenter: (c) => s.setPointer(l, o),
4086
- onClick: (c) => s.handleGroupClick(l)
4085
+ onMouseenter: (d) => s.setPointer(l, o),
4086
+ onClick: (d) => s.handleGroupClick(l)
4087
4087
  }, [
4088
4088
  Y(s.$slots, "grouplabel", {
4089
4089
  group: l,
@@ -4101,22 +4101,22 @@ function _5(s, e, t, n, a, i) {
4101
4101
  role: "group"
4102
4102
  }, [
4103
4103
  (u(!0), C(
4104
- le,
4104
+ ae,
4105
4105
  null,
4106
- pe(l.__VISIBLE__, (c, p, _) => (u(), C("li", {
4107
- class: F(s.classList.option(c, l)),
4108
- "data-pointed": s.isPointed(c),
4109
- "data-selected": s.isSelected(c) || void 0,
4106
+ pe(l.__VISIBLE__, (d, p, _) => (u(), C("li", {
4107
+ class: F(s.classList.option(d, l)),
4108
+ "data-pointed": s.isPointed(d),
4109
+ "data-selected": s.isSelected(d) || void 0,
4110
4110
  key: _,
4111
- onMouseenter: (m) => s.setPointer(c),
4112
- onClick: (m) => s.handleOptionClick(c),
4113
- id: s.ariaOptionId(c),
4114
- "aria-selected": s.isSelected(c),
4115
- "aria-label": s.ariaOptionLabel(s.localize(c[t.label])),
4111
+ onMouseenter: (m) => s.setPointer(d),
4112
+ onClick: (m) => s.handleOptionClick(d),
4113
+ id: s.ariaOptionId(d),
4114
+ "aria-selected": s.isSelected(d),
4115
+ "aria-label": s.ariaOptionLabel(s.localize(d[t.label])),
4116
4116
  role: "option"
4117
4117
  }, [
4118
4118
  Y(s.$slots, "option", {
4119
- option: c,
4119
+ option: d,
4120
4120
  isSelected: s.isSelected,
4121
4121
  isPointed: s.isPointed,
4122
4122
  search: s.search
@@ -4124,7 +4124,7 @@ function _5(s, e, t, n, a, i) {
4124
4124
  r(
4125
4125
  "span",
4126
4126
  null,
4127
- j(s.localize(c[t.label])),
4127
+ j(s.localize(d[t.label])),
4128
4128
  1
4129
4129
  /* TEXT */
4130
4130
  )
@@ -4138,15 +4138,15 @@ function _5(s, e, t, n, a, i) {
4138
4138
  128
4139
4139
  /* KEYED_FRAGMENT */
4140
4140
  )) : (u(!0), C(
4141
- le,
4141
+ ae,
4142
4142
  { key: 1 },
4143
- pe(s.fo, (l, o, d) => (u(), C("li", {
4143
+ pe(s.fo, (l, o, c) => (u(), C("li", {
4144
4144
  class: F(s.classList.option(l)),
4145
4145
  "data-pointed": s.isPointed(l),
4146
4146
  "data-selected": s.isSelected(l) || void 0,
4147
- key: d,
4148
- onMouseenter: (c) => s.setPointer(l),
4149
- onClick: (c) => s.handleOptionClick(l),
4147
+ key: c,
4148
+ onMouseenter: (d) => s.setPointer(l),
4149
+ onClick: (d) => s.handleOptionClick(l),
4150
4150
  id: s.ariaOptionId(l),
4151
4151
  "aria-selected": s.isSelected(l),
4152
4152
  "aria-label": s.ariaOptionLabel(s.localize(l[t.label])),
@@ -4221,7 +4221,7 @@ function _5(s, e, t, n, a, i) {
4221
4221
  }, null, 10, d5)) : w("v-if", !0),
4222
4222
  w(" Native input support "),
4223
4223
  t.nativeSupport ? (u(), C(
4224
- le,
4224
+ ae,
4225
4225
  { key: 1 },
4226
4226
  [
4227
4227
  t.mode == "single" ? (u(), C("input", {
@@ -4230,7 +4230,7 @@ function _5(s, e, t, n, a, i) {
4230
4230
  name: t.name,
4231
4231
  value: s.plainValue !== void 0 ? s.plainValue : ""
4232
4232
  }, null, 8, p5)) : (u(!0), C(
4233
- le,
4233
+ ae,
4234
4234
  { key: 1 },
4235
4235
  pe(s.plainValue, (l, o) => (u(), C("input", {
4236
4236
  type: "hidden",
@@ -4300,7 +4300,7 @@ const m5 = { class: "ao-modal__wrapper" }, h5 = { class: "ao-modal" }, f5 = { cl
4300
4300
  }
4301
4301
  });
4302
4302
  var st;
4303
- function i1() {
4303
+ function Ge() {
4304
4304
  const s = $5(), e = s.appContext.config.globalProperties;
4305
4305
  return {
4306
4306
  i18next: e.$i18next,
@@ -4333,7 +4333,7 @@ K({
4333
4333
  };
4334
4334
  }
4335
4335
  });
4336
- const w5 = { class: "ao-subtasks" }, M5 = { class: "ao-subtasks__list" }, A5 = ["value", "onChange"], k5 = { class: "ao-subtasks__list-footer" }, I5 = /* @__PURE__ */ K({
4336
+ const w5 = { class: "ao-subtasks" }, M5 = { class: "ao-subtasks__list" }, A5 = ["value", "onChange"], I5 = { class: "ao-subtasks__list-footer" }, k5 = /* @__PURE__ */ K({
4337
4337
  __name: "AoActivitySubtasks",
4338
4338
  props: {
4339
4339
  activityId: {},
@@ -4343,7 +4343,7 @@ const w5 = { class: "ao-subtasks" }, M5 = { class: "ao-subtasks__list" }, A5 = [
4343
4343
  },
4344
4344
  emits: ["add", "delete", "update"],
4345
4345
  setup(s, { emit: e }) {
4346
- const t = s, { t: n } = i1(), a = f(
4346
+ const t = s, { t: n } = Ge(), a = f(
4347
4347
  () => {
4348
4348
  var p;
4349
4349
  return ((p = t.users) == null ? void 0 : p.map((_) => ({
@@ -4368,9 +4368,9 @@ const w5 = { class: "ao-subtasks" }, M5 = { class: "ao-subtasks__list" }, A5 = [
4368
4368
  id: p,
4369
4369
  isDone: _
4370
4370
  });
4371
- }, d = (p) => {
4371
+ }, c = (p) => {
4372
4372
  e("delete", { id: p });
4373
- }, c = (p, _) => {
4373
+ }, d = (p, _) => {
4374
4374
  e("update", {
4375
4375
  id: _,
4376
4376
  assigneeId: p
@@ -4378,7 +4378,7 @@ const w5 = { class: "ao-subtasks" }, M5 = { class: "ao-subtasks__list" }, A5 = [
4378
4378
  };
4379
4379
  return (p, _) => (u(), C("div", w5, [
4380
4380
  r("ul", M5, [
4381
- (u(!0), C(le, null, pe(p.subtasks, (m) => {
4381
+ (u(!0), C(ae, null, pe(p.subtasks, (m) => {
4382
4382
  var $;
4383
4383
  return u(), C("li", {
4384
4384
  key: m.id,
@@ -4405,13 +4405,13 @@ const w5 = { class: "ao-subtasks" }, M5 = { class: "ao-subtasks__list" }, A5 = [
4405
4405
  searchable: !0,
4406
4406
  class: "ao-subtask__assignees",
4407
4407
  placeholder: p.$t("feed.filters.assignee.placeholder"),
4408
- onChange: (V) => c(V, m.id)
4408
+ onChange: (V) => d(V, m.id)
4409
4409
  }, {
4410
4410
  tag: R(({ option: V, handleTagRemove: E }) => [
4411
4411
  b(Ke, {
4412
4412
  "user-name": V.label,
4413
4413
  "is-closable": !0,
4414
- onClose: (k) => E(V, k)
4414
+ onClose: (I) => E(V, I)
4415
4415
  }, null, 8, ["user-name", "onClose"])
4416
4416
  ]),
4417
4417
  _: 2
@@ -4420,12 +4420,12 @@ const w5 = { class: "ao-subtasks" }, M5 = { class: "ao-subtasks__list" }, A5 = [
4420
4420
  class: "ao-subtask__delete",
4421
4421
  "icon-name": "CloseRounded",
4422
4422
  variant: "ghost",
4423
- onClick: () => d(m.id)
4423
+ onClick: () => c(m.id)
4424
4424
  }, null, 8, ["onClick"])
4425
4425
  ]);
4426
4426
  }), 128))
4427
4427
  ]),
4428
- r("div", k5, [
4428
+ r("div", I5, [
4429
4429
  b(ue, {
4430
4430
  label: p.$t("activity.subtasks.add"),
4431
4431
  "icon-name": "Add",
@@ -4450,41 +4450,41 @@ const S5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], V5 = {
4450
4450
  },
4451
4451
  emits: ["add", "toggleIsDropActive", "remove"],
4452
4452
  setup(s, { emit: e }) {
4453
- const t = (c) => {
4454
- e("remove", c);
4455
- }, n = (c) => {
4456
- const p = c.target, _ = Array.from(p.files ?? []);
4453
+ const t = (d) => {
4454
+ e("remove", d);
4455
+ }, n = (d) => {
4456
+ const p = d.target, _ = Array.from(p.files ?? []);
4457
4457
  e("add", _);
4458
4458
  }, a = ["dragenter", "dragover", "dragleave", "drop"];
4459
4459
  m1(() => {
4460
- a.forEach((c) => {
4461
- document.body.addEventListener(c, (p) => p.preventDefault());
4460
+ a.forEach((d) => {
4461
+ document.body.addEventListener(d, (p) => p.preventDefault());
4462
4462
  });
4463
4463
  }), qt(() => {
4464
- a.forEach((c) => {
4464
+ a.forEach((d) => {
4465
4465
  document.body.removeEventListener(
4466
- c,
4466
+ d,
4467
4467
  (p) => p.preventDefault()
4468
4468
  );
4469
4469
  });
4470
4470
  });
4471
- const i = x(!1);
4471
+ const i = Q(!1);
4472
4472
  function l() {
4473
4473
  i.value = !0;
4474
4474
  }
4475
4475
  function o() {
4476
4476
  i.value = !1;
4477
4477
  }
4478
- de(i, (c) => {
4479
- e("toggleIsDropActive", c);
4478
+ de(i, (d) => {
4479
+ e("toggleIsDropActive", d);
4480
4480
  });
4481
- function d(c) {
4481
+ function c(d) {
4482
4482
  var _;
4483
4483
  o();
4484
- const p = Array.from(((_ = c.dataTransfer) == null ? void 0 : _.files) || []);
4485
- c.dataTransfer && e("add", p);
4484
+ const p = Array.from(((_ = d.dataTransfer) == null ? void 0 : _.files) || []);
4485
+ d.dataTransfer && e("add", p);
4486
4486
  }
4487
- return (c, p) => {
4487
+ return (d, p) => {
4488
4488
  var _;
4489
4489
  return u(), C("div", {
4490
4490
  class: F([
@@ -4493,13 +4493,13 @@ const S5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], V5 = {
4493
4493
  "ao-files__wrapper--drop-active": i.value
4494
4494
  }
4495
4495
  ]),
4496
- onDrop: ke(d, ["prevent"]),
4497
- onDragenter: ke(l, ["prevent"]),
4498
- onDragover: ke(l, ["prevent"]),
4499
- onDragleave: ke(o, ["prevent"])
4496
+ onDrop: Ie(c, ["prevent"]),
4497
+ onDragenter: Ie(l, ["prevent"]),
4498
+ onDragover: Ie(l, ["prevent"]),
4499
+ onDragleave: Ie(o, ["prevent"])
4500
4500
  }, [
4501
- (_ = c.attachments) != null && _.length && c.attachments.length > 0 ? (u(), C("ul", V5, [
4502
- (u(!0), C(le, null, pe(c.attachments, (m) => (u(), C("li", {
4501
+ (_ = d.attachments) != null && _.length && d.attachments.length > 0 ? (u(), C("ul", V5, [
4502
+ (u(!0), C(ae, null, pe(d.attachments, (m) => (u(), C("li", {
4503
4503
  key: m.id,
4504
4504
  class: "ao-file"
4505
4505
  }, [
@@ -4509,7 +4509,7 @@ const S5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], V5 = {
4509
4509
  target: "_blank",
4510
4510
  rel: "noopener noreferrer"
4511
4511
  }, [
4512
- b(ne, {
4512
+ b(le, {
4513
4513
  class: "ao-file__icon",
4514
4514
  name: "AttachFileRounded",
4515
4515
  size: "sm"
@@ -4528,7 +4528,7 @@ const S5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], V5 = {
4528
4528
  ]))), 128))
4529
4529
  ])) : (u(), C("div", E5, [
4530
4530
  r("label", H5, [
4531
- r("span", O5, j(c.$t("activity.attachment.button.resting")), 1),
4531
+ r("span", O5, j(d.$t("activity.attachment.button.resting")), 1),
4532
4532
  r("input", {
4533
4533
  class: "input-field",
4534
4534
  type: "file",
@@ -4538,7 +4538,7 @@ const S5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], V5 = {
4538
4538
  onChange: n
4539
4539
  }, null, 32)
4540
4540
  ]),
4541
- r("span", B5, j(c.$t("activity.attachment.placeholder.resting")), 1)
4541
+ r("span", B5, j(d.$t("activity.attachment.placeholder.resting")), 1)
4542
4542
  ]))
4543
4543
  ], 42, S5);
4544
4544
  };
@@ -4595,10 +4595,10 @@ const Z5 = {
4595
4595
  set(h) {
4596
4596
  e("update:activity", { id: t.activity.id, typeId: h });
4597
4597
  }
4598
- }), d = f(() => t.templateActivities.filter((h) => h.id !== t.activity.id).map((h) => ({
4598
+ }), c = f(() => t.templateActivities.filter((h) => h.id !== t.activity.id).map((h) => ({
4599
4599
  label: h.name,
4600
4600
  value: h.id
4601
- }))), c = f({
4601
+ }))), d = f({
4602
4602
  get() {
4603
4603
  return t.activity.dependingOn;
4604
4604
  },
@@ -4608,7 +4608,7 @@ const Z5 = {
4608
4608
  dependingOn: h
4609
4609
  });
4610
4610
  }
4611
- }), p = f(() => d.value.map((h) => {
4611
+ }), p = f(() => c.value.map((h) => {
4612
4612
  var H;
4613
4613
  return {
4614
4614
  ...h,
@@ -4624,7 +4624,7 @@ const Z5 = {
4624
4624
  blocking: h
4625
4625
  });
4626
4626
  }
4627
- }), m = f(() => d.value.map((h) => {
4627
+ }), m = f(() => c.value.map((h) => {
4628
4628
  var H;
4629
4629
  return {
4630
4630
  ...h,
@@ -4645,7 +4645,7 @@ const Z5 = {
4645
4645
  }
4646
4646
  }), E = (h) => {
4647
4647
  e("addSubtask", h);
4648
- }, k = (h) => {
4648
+ }, I = (h) => {
4649
4649
  e("updateSubtask", h);
4650
4650
  }, M = (h) => {
4651
4651
  e("deleteSubtask", h);
@@ -4666,7 +4666,7 @@ const Z5 = {
4666
4666
  assigneeId: h
4667
4667
  });
4668
4668
  }
4669
- }), ee = (h) => {
4669
+ }), x = (h) => {
4670
4670
  e("addFiles", {
4671
4671
  activityId: t.activity.id,
4672
4672
  files: h
@@ -4703,7 +4703,7 @@ const Z5 = {
4703
4703
  class: "ao-field__textarea"
4704
4704
  }, null, 512), [
4705
4705
  [
4706
- s1,
4706
+ l1,
4707
4707
  a.value,
4708
4708
  void 0,
4709
4709
  {
@@ -4724,7 +4724,7 @@ const Z5 = {
4724
4724
  min: "0"
4725
4725
  }, null, 512), [
4726
4726
  [
4727
- s1,
4727
+ l1,
4728
4728
  i.value,
4729
4729
  void 0,
4730
4730
  {
@@ -4791,7 +4791,7 @@ const Z5 = {
4791
4791
  ]),
4792
4792
  r("fieldset", e7, [
4793
4793
  r("div", t7, [
4794
- b(ne, { name: "FlowsheetOutlineRounded" }),
4794
+ b(le, { name: "FlowsheetOutlineRounded" }),
4795
4795
  b(ce, {
4796
4796
  level: 4,
4797
4797
  title: h.$t("activity.dependencies.title")
@@ -4801,8 +4801,8 @@ const Z5 = {
4801
4801
  r("label", a7, [
4802
4802
  r("span", l7, j(h.$t("activity.dependingOn.label")), 1),
4803
4803
  b(O(ve), {
4804
- modelValue: c.value,
4805
- "onUpdate:modelValue": H[5] || (H[5] = (U) => c.value = U),
4804
+ modelValue: d.value,
4805
+ "onUpdate:modelValue": H[5] || (H[5] = (U) => d.value = U),
4806
4806
  class: "ao-field__multiselect",
4807
4807
  mode: "tags",
4808
4808
  "close-on-select": !1,
@@ -4842,19 +4842,19 @@ const Z5 = {
4842
4842
  ]),
4843
4843
  r("fieldset", d7, [
4844
4844
  r("div", p7, [
4845
- b(ne, { name: "SelectCheckBox" }),
4845
+ b(le, { name: "SelectCheckBox" }),
4846
4846
  b(ce, {
4847
4847
  level: 4,
4848
4848
  title: h.$t("activity.subtasks.title")
4849
4849
  }, null, 8, ["title"])
4850
4850
  ]),
4851
- b(I5, {
4851
+ b(k5, {
4852
4852
  class: "ao-activity-details__subtasks",
4853
4853
  subtasks: h.activity.tasks || [],
4854
4854
  "activity-id": h.activity.id,
4855
4855
  users: h.users,
4856
4856
  onAdd: E,
4857
- onUpdate: k,
4857
+ onUpdate: I,
4858
4858
  onDelete: M
4859
4859
  }, null, 8, ["subtasks", "activity-id", "users"])
4860
4860
  ]),
@@ -4862,7 +4862,7 @@ const Z5 = {
4862
4862
  ]),
4863
4863
  r("div", v7, [
4864
4864
  r("div", C7, [
4865
- b(ne, { name: "AttachFileRounded" }),
4865
+ b(le, { name: "AttachFileRounded" }),
4866
4866
  b(ce, {
4867
4867
  level: 4,
4868
4868
  title: h.$t("activity.attachments.title")
@@ -4870,7 +4870,7 @@ const Z5 = {
4870
4870
  ]),
4871
4871
  b(D5, {
4872
4872
  attachments: h.activity.attachments,
4873
- onAdd: ee,
4873
+ onAdd: x,
4874
4874
  onRemove: te
4875
4875
  }, null, 8, ["attachments"])
4876
4876
  ])
@@ -4903,7 +4903,7 @@ const _7 = {
4903
4903
  DAYS: "days",
4904
4904
  WEEKS: "weeks",
4905
4905
  MONTHS: "months"
4906
- }, oe = {
4906
+ }, ie = {
4907
4907
  TEMPLATES: "templates",
4908
4908
  PHASES: "phases",
4909
4909
  MILESTONES: "milestones",
@@ -4930,8 +4930,8 @@ const Uu = {
4930
4930
  },
4931
4931
  emits: ["update:rule", "close"],
4932
4932
  setup(s, { emit: e }) {
4933
- const t = s, n = Qe(
4934
- t.rule.itemType || oe.ACTIVITIES
4933
+ const t = s, n = xe(
4934
+ t.rule.itemType || ie.ACTIVITIES
4935
4935
  ), a = f({
4936
4936
  get() {
4937
4937
  return n.value;
@@ -4943,7 +4943,7 @@ const Uu = {
4943
4943
  subItemId: void 0
4944
4944
  });
4945
4945
  }
4946
- }), i = f(() => Object.values(oe)), l = f({
4946
+ }), i = f(() => Object.values(ie)), l = f({
4947
4947
  get() {
4948
4948
  return t.rule.subItemId;
4949
4949
  },
@@ -4957,21 +4957,21 @@ const Uu = {
4957
4957
  }), o = f(() => {
4958
4958
  var y;
4959
4959
  return !t.templateActivities || !t.templateMilestones || !t.templatePhases ? null : (y = {
4960
- [oe.ACTIVITIES]: t.templateActivities,
4961
- [oe.MILESTONES]: t.templateMilestones,
4962
- [oe.PHASES]: t.templatePhases
4960
+ [ie.ACTIVITIES]: t.templateActivities,
4961
+ [ie.MILESTONES]: t.templateMilestones,
4962
+ [ie.PHASES]: t.templatePhases
4963
4963
  }[n.value]) == null ? void 0 : y.map((B) => ({
4964
4964
  value: B.id,
4965
4965
  label: B.name
4966
4966
  }));
4967
- }), d = Qe(t.rule.comparator), c = f({
4967
+ }), c = xe(t.rule.comparator), d = f({
4968
4968
  get() {
4969
- return d.value;
4969
+ return c.value;
4970
4970
  },
4971
4971
  set(M) {
4972
4972
  e("update:rule", { ...t.rule, comparator: M });
4973
4973
  }
4974
- }), p = f(() => Object.values(m7)), _ = Qe(t.rule.trigger), m = f({
4974
+ }), p = f(() => Object.values(m7)), _ = xe(t.rule.trigger), m = f({
4975
4975
  get() {
4976
4976
  return _.value;
4977
4977
  },
@@ -4992,7 +4992,7 @@ const Uu = {
4992
4992
  set(M) {
4993
4993
  e("update:rule", { ...t.rule, durationUnit: M });
4994
4994
  }
4995
- }), k = f(() => Object.values(f7));
4995
+ }), I = f(() => Object.values(f7));
4996
4996
  return (M, y) => (u(), N(ze(M.tagName), { class: "ao-rule-line" }, {
4997
4997
  default: R(() => [
4998
4998
  b(O(ve), {
@@ -5011,8 +5011,8 @@ const Uu = {
5011
5011
  options: $.value
5012
5012
  }, null, 8, ["modelValue", "options"]),
5013
5013
  b(O(ve), {
5014
- modelValue: c.value,
5015
- "onUpdate:modelValue": y[3] || (y[3] = (B) => c.value = B),
5014
+ modelValue: d.value,
5015
+ "onUpdate:modelValue": y[3] || (y[3] = (B) => d.value = B),
5016
5016
  options: p.value
5017
5017
  }, null, 8, ["modelValue", "options"]),
5018
5018
  Ue(r("input", {
@@ -5021,7 +5021,7 @@ const Uu = {
5021
5021
  min: "0"
5022
5022
  }, null, 512), [
5023
5023
  [
5024
- s1,
5024
+ l1,
5025
5025
  V.value,
5026
5026
  void 0,
5027
5027
  { number: !0 }
@@ -5030,7 +5030,7 @@ const Uu = {
5030
5030
  b(O(ve), {
5031
5031
  modelValue: E.value,
5032
5032
  "onUpdate:modelValue": y[5] || (y[5] = (B) => E.value = B),
5033
- options: k.value
5033
+ options: I.value
5034
5034
  }, null, 8, ["modelValue", "options"]),
5035
5035
  b(ue, {
5036
5036
  class: "ao-rule-line__remove",
@@ -5069,7 +5069,7 @@ const b7 = { class: "ao-template-rules__body" }, $7 = { class: "ao-template-rule
5069
5069
  default: R(() => [
5070
5070
  r("div", b7, [
5071
5071
  r("ul", $7, [
5072
- (u(!0), C(le, null, pe(a.rules, (l) => (u(), N(y7, {
5072
+ (u(!0), C(ae, null, pe(a.rules, (l) => (u(), N(y7, {
5073
5073
  key: l.id,
5074
5074
  rule: l,
5075
5075
  "template-phases": a.templatePhases,
@@ -5090,8 +5090,8 @@ const b7 = { class: "ao-template-rules__body" }, $7 = { class: "ao-template-rule
5090
5090
  }));
5091
5091
  }
5092
5092
  });
5093
- function v1(s, e, t) {
5094
- const n = s.length, a = s.at(-1), i = a ? be.LexoRank.parse(a.rank).genNext() : be.LexoRank.middle();
5093
+ function e1(s, e, t) {
5094
+ const n = s.length, a = s.at(-1), i = a ? ye.LexoRank.parse(a.rank).genNext() : ye.LexoRank.middle();
5095
5095
  return {
5096
5096
  name: t(`template.defaultName.${e}`, { idx: n + 1 }),
5097
5097
  rank: i.format()
@@ -5100,7 +5100,7 @@ function v1(s, e, t) {
5100
5100
  const M7 = {
5101
5101
  key: 0,
5102
5102
  class: "ao-template-details"
5103
- }, A7 = { class: "ao-template-details__body" }, k7 = { class: "ao-template-details__cols" }, I7 = { class: "ao-template-details__col" }, S7 = { class: "ao-list__footer" }, V7 = { class: "ao-template-details__col" }, L7 = { class: "ao-template-details__col" }, T7 = /* @__PURE__ */ K({
5103
+ }, A7 = { class: "ao-template-details__body" }, I7 = { class: "ao-template-details__cols" }, k7 = { class: "ao-template-details__col" }, S7 = { class: "ao-list__footer" }, V7 = { class: "ao-template-details__col" }, L7 = { class: "ao-template-details__col" }, T7 = /* @__PURE__ */ K({
5104
5104
  __name: "AoTemplateDetails",
5105
5105
  props: {
5106
5106
  templateId: {},
@@ -5113,7 +5113,7 @@ const M7 = {
5113
5113
  },
5114
5114
  emits: ["addItem", "removeItem", "updateItem", "addRule", "removeRule", "addFiles", "removeFile"],
5115
5115
  setup(s, { emit: e }) {
5116
- const t = s, { t: n } = i1(), a = f(
5116
+ const t = s, { t: n } = Ge(), a = f(
5117
5117
  () => {
5118
5118
  var g;
5119
5119
  return (g = t.templates) == null ? void 0 : g.find((D) => D.id === t.templateId);
@@ -5129,19 +5129,19 @@ const M7 = {
5129
5129
  }), o = f(() => {
5130
5130
  var g, D;
5131
5131
  return ((D = (g = a.value) == null ? void 0 : g.phases) == null ? void 0 : D.reduce((T, G) => {
5132
- const Q = G.milestones || [];
5133
- return [...T, ...Q];
5132
+ const ee = G.milestones || [];
5133
+ return [...T, ...ee];
5134
5134
  }, [])) || [];
5135
- }), d = f(() => {
5135
+ }), c = f(() => {
5136
5136
  var g, D;
5137
5137
  return ((D = (g = a.value) == null ? void 0 : g.phases) == null ? void 0 : D.reduce((T, G) => {
5138
- const Ce = (G.milestones || []).reduce(
5139
- (he, ae) => ae.activities ? [...he, ...ae.activities] : he,
5138
+ const me = (G.milestones || []).reduce(
5139
+ ($e, ne) => ne.activities ? [...$e, ...ne.activities] : $e,
5140
5140
  []
5141
5141
  );
5142
- return [...T, ...Ce];
5142
+ return [...T, ...me];
5143
5143
  }, [])) || [];
5144
- }), c = f(() => {
5144
+ }), d = f(() => {
5145
5145
  var g, D;
5146
5146
  return (D = (g = l.value) == null ? void 0 : g.activities) == null ? void 0 : D.find(
5147
5147
  (T) => T.id === t.activityId
@@ -5158,13 +5158,13 @@ const M7 = {
5158
5158
  }), m = () => {
5159
5159
  if (!a.value)
5160
5160
  return;
5161
- const { name: g, rank: D } = v1(
5161
+ const { name: g, rank: D } = e1(
5162
5162
  a.value.phases,
5163
5163
  "phase",
5164
5164
  n
5165
5165
  );
5166
5166
  e("addItem", {
5167
- type: oe.PHASES,
5167
+ type: ie.PHASES,
5168
5168
  templateId: t.templateId,
5169
5169
  item: {
5170
5170
  name: g,
@@ -5176,12 +5176,12 @@ const M7 = {
5176
5176
  e("updateItem", {
5177
5177
  templateId: t.templateId,
5178
5178
  id: t.templateId,
5179
- itemType: oe.TEMPLATES,
5179
+ itemType: ie.TEMPLATES,
5180
5180
  data: { name: g }
5181
5181
  });
5182
5182
  }, V = (g) => {
5183
5183
  e("removeItem", {
5184
- type: oe.PHASES,
5184
+ type: ie.PHASES,
5185
5185
  templateId: t.templateId,
5186
5186
  data: {
5187
5187
  id: g
@@ -5191,21 +5191,21 @@ const M7 = {
5191
5191
  e("updateItem", {
5192
5192
  templateId: t.templateId,
5193
5193
  id: g,
5194
- itemType: oe.PHASES,
5194
+ itemType: ie.PHASES,
5195
5195
  data: { name: D }
5196
5196
  });
5197
- }, k = (g) => {
5197
+ }, I = (g) => {
5198
5198
  e("updateItem", g);
5199
5199
  }, M = (g) => {
5200
5200
  if (!i.value)
5201
5201
  return;
5202
- const { name: D, rank: T } = v1(
5202
+ const { name: D, rank: T } = e1(
5203
5203
  i.value.milestones,
5204
5204
  "milestone",
5205
5205
  n
5206
5206
  );
5207
5207
  e("addItem", {
5208
- type: oe.MILESTONES,
5208
+ type: ie.MILESTONES,
5209
5209
  templateId: t.templateId,
5210
5210
  phaseId: g.phaseId,
5211
5211
  item: {
@@ -5216,7 +5216,7 @@ const M7 = {
5216
5216
  });
5217
5217
  }, y = (g) => {
5218
5218
  e("removeItem", {
5219
- type: oe.MILESTONES,
5219
+ type: ie.MILESTONES,
5220
5220
  templateId: t.templateId,
5221
5221
  phaseId: g.phaseId,
5222
5222
  data: {
@@ -5226,29 +5226,29 @@ const M7 = {
5226
5226
  }, B = (g) => {
5227
5227
  const { id: D, ...T } = g;
5228
5228
  e("updateItem", {
5229
- itemType: oe.MILESTONES,
5229
+ itemType: ie.MILESTONES,
5230
5230
  id: D,
5231
5231
  templateId: t.templateId,
5232
5232
  data: T
5233
5233
  });
5234
- }, ee = (g) => {
5234
+ }, x = (g) => {
5235
5235
  const { milestoneId: D } = g;
5236
5236
  if (!l.value)
5237
5237
  return;
5238
- const { name: T, rank: G } = v1(
5238
+ const { name: T, rank: G } = e1(
5239
5239
  l.value.activities,
5240
5240
  "activity",
5241
5241
  n
5242
5242
  );
5243
5243
  e("addItem", {
5244
- type: oe.ACTIVITIES,
5244
+ type: ie.ACTIVITIES,
5245
5245
  milestoneId: D,
5246
5246
  item: { name: T, rank: G, milestoneId: D }
5247
5247
  });
5248
5248
  }, te = (g) => {
5249
5249
  const { phaseId: D, milestoneId: T } = g;
5250
5250
  e("removeItem", {
5251
- type: oe.ACTIVITIES,
5251
+ type: ie.ACTIVITIES,
5252
5252
  templateId: t.templateId,
5253
5253
  phaseId: D,
5254
5254
  milestoneId: T,
@@ -5259,23 +5259,23 @@ const M7 = {
5259
5259
  }, h = (g) => {
5260
5260
  const { id: D, ...T } = g;
5261
5261
  e("updateItem", {
5262
- itemType: oe.ACTIVITIES,
5262
+ itemType: ie.ACTIVITIES,
5263
5263
  id: D,
5264
5264
  templateId: t.templateId,
5265
5265
  data: T
5266
5266
  });
5267
- }, H = x(!1), U = () => {
5267
+ }, H = Q(!1), U = () => {
5268
5268
  H.value = !H.value;
5269
5269
  }, se = () => {
5270
5270
  e("addRule", { templateId: t.templateId });
5271
5271
  }, re = (g) => {
5272
5272
  e("removeRule", { id: g, templateId: t.templateId });
5273
- }, _e = (g) => {
5273
+ }, Ce = (g) => {
5274
5274
  var D;
5275
5275
  if (g.moved) {
5276
5276
  const T = w1(g, ((D = a.value) == null ? void 0 : D.phases) ?? []);
5277
5277
  e("updateItem", {
5278
- itemType: oe.PHASES,
5278
+ itemType: ie.PHASES,
5279
5279
  id: g.moved.element.id,
5280
5280
  templateId: t.templateId,
5281
5281
  data: {
@@ -5284,8 +5284,8 @@ const M7 = {
5284
5284
  });
5285
5285
  }
5286
5286
  }, Z = (g) => {
5287
- !i.value || !l.value || !c.value || e("addItem", {
5288
- type: oe.SUBTASKS,
5287
+ !i.value || !l.value || !d.value || e("addItem", {
5288
+ type: ie.SUBTASKS,
5289
5289
  activityId: g.activityId,
5290
5290
  milestoneId: l.value.id,
5291
5291
  phaseId: i.value.id,
@@ -5293,23 +5293,19 @@ const M7 = {
5293
5293
  item: g
5294
5294
  });
5295
5295
  }, X = (g) => {
5296
- var G, Q, Ce, he;
5297
- if (!i.value || !l.value || !c.value)
5298
- return;
5299
- const D = [...((G = c.value) == null ? void 0 : G.subtasks) || []], T = D.findIndex((ae) => ae.id === g.id);
5300
- D[T] = {
5301
- ...D[T],
5302
- ...g
5303
- }, h({
5304
- id: (Q = c.value) == null ? void 0 : Q.id,
5305
- phaseId: (Ce = i.value) == null ? void 0 : Ce.id,
5306
- milestoneId: (he = l.value) == null ? void 0 : he.id,
5307
- subtasks: D
5296
+ var D, T, G;
5297
+ !i.value || !l.value || !d.value || e("updateItem", {
5298
+ itemType: ie.SUBTASKS,
5299
+ phaseId: (D = i.value) == null ? void 0 : D.id,
5300
+ milestoneId: (T = l.value) == null ? void 0 : T.id,
5301
+ activityId: (G = d.value) == null ? void 0 : G.id,
5302
+ templateId: t.templateId,
5303
+ data: g
5308
5304
  });
5309
5305
  }, A = (g) => {
5310
- !i.value || !l.value || !c.value || e("removeItem", {
5311
- type: oe.SUBTASKS,
5312
- activityId: c.value.id,
5306
+ !i.value || !l.value || !d.value || e("removeItem", {
5307
+ type: ie.SUBTASKS,
5308
+ activityId: d.value.id,
5313
5309
  milestoneId: l.value.id,
5314
5310
  phaseId: i.value.id,
5315
5311
  templateId: t.templateId,
@@ -5317,15 +5313,15 @@ const M7 = {
5317
5313
  });
5318
5314
  }, W = (g) => {
5319
5315
  e("addFiles", g);
5320
- }, me = (g) => {
5316
+ }, _e = (g) => {
5321
5317
  e("removeFile", g);
5322
5318
  };
5323
5319
  return (g, D) => {
5324
- var T, G, Q, Ce, he, ae;
5320
+ var T, G, ee, me, $e, ne;
5325
5321
  return a.value ? (u(), C("div", M7, [
5326
5322
  b(M1, {
5327
5323
  "can-go-back": !0,
5328
- onGoBack: D[1] || (D[1] = (q) => g.$router.push({ name: O(xe).TEMPLATES_LIST }))
5324
+ onGoBack: D[1] || (D[1] = (q) => g.$router.push({ name: O(t1).TEMPLATES_LIST }))
5329
5325
  }, {
5330
5326
  primary: R(() => [
5331
5327
  b(ce, {
@@ -5349,14 +5345,14 @@ const M7 = {
5349
5345
  _: 1
5350
5346
  }),
5351
5347
  r("div", A7, [
5352
- r("ol", k7, [
5353
- r("li", I7, [
5354
- b(O(a1), {
5348
+ r("ol", I7, [
5349
+ r("li", k7, [
5350
+ b(O(n1), {
5355
5351
  "model-value": a.value.phases,
5356
5352
  class: "ao-templates__list",
5357
5353
  "item-key": "id",
5358
5354
  handle: ".ao-card__drag",
5359
- onChange: _e
5355
+ onChange: Ce
5360
5356
  }, {
5361
5357
  header: R(() => [
5362
5358
  b(ce, {
@@ -5366,13 +5362,13 @@ const M7 = {
5366
5362
  }, null, 8, ["title"])
5367
5363
  ]),
5368
5364
  item: R(({ element: q }) => {
5369
- var I;
5365
+ var k;
5370
5366
  return [
5371
- b(k3, {
5367
+ b(I3, {
5372
5368
  id: q.id,
5373
5369
  name: q.name,
5374
5370
  milestones: q.milestones,
5375
- "is-active": ((I = i.value) == null ? void 0 : I.id) === q.id,
5371
+ "is-active": ((k = i.value) == null ? void 0 : k.id) === q.id,
5376
5372
  "is-draggable": !0,
5377
5373
  onClick: (P) => g.$router.push({
5378
5374
  params: { templateId: g.templateId, phaseId: q.id }
@@ -5404,7 +5400,7 @@ const M7 = {
5404
5400
  "milestone-id": (T = l.value) == null ? void 0 : T.id,
5405
5401
  onAddMilestone: M,
5406
5402
  onUpdateMilestone: B,
5407
- onUpdatePhase: k,
5403
+ onUpdatePhase: I,
5408
5404
  onRemoveMilestone: y
5409
5405
  }, null, 8, ["template-id", "phase", "milestone-id"])) : w("", !0)
5410
5406
  ]),
@@ -5414,8 +5410,8 @@ const M7 = {
5414
5410
  "template-id": g.templateId,
5415
5411
  "phase-id": (G = i.value) == null ? void 0 : G.id,
5416
5412
  milestone: l.value,
5417
- "activity-id": (Q = c.value) == null ? void 0 : Q.id,
5418
- onAddActivity: ee,
5413
+ "activity-id": (ee = d.value) == null ? void 0 : ee.id,
5414
+ onAddActivity: x,
5419
5415
  onUpdateActivity: h,
5420
5416
  onRemoveActivity: te
5421
5417
  }, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) : w("", !0)
@@ -5423,24 +5419,24 @@ const M7 = {
5423
5419
  ])
5424
5420
  ]),
5425
5421
  (u(), N(C1, { to: "body" }, [
5426
- c.value ? (u(), N(R1, {
5422
+ d.value ? (u(), N(R1, {
5427
5423
  key: 0,
5428
- activity: c.value,
5424
+ activity: d.value,
5429
5425
  "activity-types": p.value,
5430
- breadcrumbs: `${a.value.name} / ${(Ce = i.value) == null ? void 0 : Ce.name} / ${(he = l.value) == null ? void 0 : he.name}`,
5431
- "milestone-id": (ae = l.value) == null ? void 0 : ae.id,
5432
- "template-activities": d.value,
5426
+ breadcrumbs: `${a.value.name} / ${(me = i.value) == null ? void 0 : me.name} / ${($e = l.value) == null ? void 0 : $e.name}`,
5427
+ "milestone-id": (ne = l.value) == null ? void 0 : ne.id,
5428
+ "template-activities": c.value,
5433
5429
  "template-milestones": o.value,
5434
5430
  "is-template": !0,
5435
5431
  "onUpdate:activity": D[2] || (D[2] = (q) => {
5436
- c.value && h(q);
5432
+ d.value && h(q);
5437
5433
  }),
5438
5434
  onClose: g.$router.back,
5439
5435
  onAddSubtask: Z,
5440
5436
  onUpdateSubtask: X,
5441
5437
  onDeleteSubtask: A,
5442
5438
  onAddFiles: W,
5443
- onRemoveFile: me
5439
+ onRemoveFile: _e
5444
5440
  }, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "onClose"])) : w("", !0)
5445
5441
  ])),
5446
5442
  (u(), N(C1, { to: "body" }, [
@@ -5450,7 +5446,7 @@ const M7 = {
5450
5446
  rules: a.value.rules || [],
5451
5447
  "template-phases": a.value.phases,
5452
5448
  "template-milestones": o.value,
5453
- "template-activities": d.value,
5449
+ "template-activities": c.value,
5454
5450
  onClose: U,
5455
5451
  onAddRule: se,
5456
5452
  onRemoveRule: re
@@ -5503,7 +5499,7 @@ const q1 = /* @__PURE__ */ K({
5503
5499
  class: F(["ao-progress", n.status ? `ao-progress--${n.status}` : ""]),
5504
5500
  role: "meter"
5505
5501
  }, [
5506
- (u(!0), C(le, null, pe(t.value, (i) => (u(), C("div", {
5502
+ (u(!0), C(ae, null, pe(t.value, (i) => (u(), C("div", {
5507
5503
  key: i,
5508
5504
  class: F(["ao-progress__progress"]),
5509
5505
  style: Ft({ width: `${i * 100}%` })
@@ -5551,9 +5547,9 @@ const B7 = { class: "ao-card-project-phase__header" }, D7 = { class: "ao-card-pr
5551
5547
  footer: R(() => [
5552
5548
  r("div", D7, [
5553
5549
  r("div", Z7, [
5554
- t.value ? (u(), C(le, { key: 0 }, [
5550
+ t.value ? (u(), C(ae, { key: 0 }, [
5555
5551
  r("div", P7, [
5556
- b(ne, {
5552
+ b(le, {
5557
5553
  name: "MountainFlagOutlineRounded",
5558
5554
  size: "sm"
5559
5555
  }),
@@ -5592,8 +5588,8 @@ const U7 = { class: "ao-card-project-phase__footer" }, q7 = { class: "ao-card-pr
5592
5588
  }), n = f(() => {
5593
5589
  var i;
5594
5590
  return (i = e.activities) == null ? void 0 : i.filter((l) => {
5595
- var o, d;
5596
- return ((o = l.status) == null ? void 0 : o.id) === ((d = e.doneStatus) == null ? void 0 : d.id);
5591
+ var o, c;
5592
+ return ((o = l.status) == null ? void 0 : o.id) === ((c = e.doneStatus) == null ? void 0 : c.id);
5597
5593
  }).length;
5598
5594
  }), a = f(() => (n.value || 0) / (t.value || 1));
5599
5595
  return (i, l) => (u(), N(U1, {
@@ -5610,9 +5606,9 @@ const U7 = { class: "ao-card-project-phase__footer" }, q7 = { class: "ao-card-pr
5610
5606
  footer: R(() => [
5611
5607
  r("div", U7, [
5612
5608
  r("div", q7, [
5613
- t.value ? (u(), C(le, { key: 0 }, [
5609
+ t.value ? (u(), C(ae, { key: 0 }, [
5614
5610
  r("div", z7, [
5615
- b(ne, {
5611
+ b(le, {
5616
5612
  name: "SelectCheckBox",
5617
5613
  size: "sm"
5618
5614
  }),
@@ -5641,39 +5637,40 @@ const Y7 = { class: "ao-project-phase" }, W7 = { class: "ao-project-phase__col-p
5641
5637
  },
5642
5638
  emits: ["addMilestone"],
5643
5639
  setup(s, { emit: e }) {
5644
- const t = s, n = f(() => t.phase.milestones), a = (i) => {
5645
- e("addMilestone", i);
5640
+ const t = s, { t: n } = Ge(), a = f(() => t.phase.milestones), i = (l) => {
5641
+ const { name: o, rank: c } = e1(a.value ?? [], "milestone", n);
5642
+ e("addMilestone", { name: o, rank: c, phaseId: l });
5646
5643
  };
5647
- return (i, l) => (u(), C("li", Y7, [
5644
+ return (l, o) => (u(), C("li", Y7, [
5648
5645
  r("div", W7, [
5649
5646
  b(R7, {
5650
- id: i.phase.id,
5651
- milestones: n.value,
5652
- name: i.phase.name,
5653
- "project-name": i.projectName
5647
+ id: l.phase.id,
5648
+ milestones: a.value,
5649
+ name: l.phase.name,
5650
+ "project-name": l.projectName
5654
5651
  }, null, 8, ["id", "milestones", "name", "project-name"])
5655
5652
  ]),
5656
5653
  r("div", X7, [
5657
5654
  r("div", J7, [
5658
5655
  r("ul", Q7, [
5659
- (u(!0), C(le, null, pe(n.value, (o) => (u(), N(G7, {
5660
- id: o.id,
5661
- key: o.id,
5662
- name: o.name,
5663
- activities: o.activities,
5656
+ (u(!0), C(ae, null, pe(a.value, (c) => (u(), N(G7, {
5657
+ id: c.id,
5658
+ key: c.id,
5659
+ name: c.name,
5660
+ activities: c.activities,
5664
5661
  class: "ao-project-phase__milestone",
5665
- onClick: (d) => i.$router.push({
5662
+ onClick: (d) => l.$router.push({
5666
5663
  name: O(qe).milestone,
5667
- params: { phaseId: i.phase.id, milestoneId: o.id }
5664
+ params: { phaseId: l.phase.id, milestoneId: c.id }
5668
5665
  })
5669
5666
  }, null, 8, ["id", "name", "activities", "onClick"]))), 128))
5670
5667
  ]),
5671
5668
  r("div", x7, [
5672
5669
  b(Be, {
5673
- label: i.$t("project.milestone.add"),
5670
+ label: l.$t("project.milestone.add"),
5674
5671
  class: "ao-project-phase__milestone-add",
5675
5672
  "icon-name": "Add",
5676
- onClick: l[0] || (l[0] = () => a(i.phase.id))
5673
+ onClick: o[0] || (o[0] = () => i(l.phase.id))
5677
5674
  }, null, 8, ["label"])
5678
5675
  ])
5679
5676
  ])
@@ -5690,53 +5687,51 @@ const t0 = { class: "ao-project" }, s0 = { class: "ao-project__body" }, a0 = { c
5690
5687
  },
5691
5688
  emits: ["addPhase", "addMilestone", "addActivity", "update:activity", "addSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
5692
5689
  setup(s, { emit: e }) {
5693
- const t = s, { t: n } = i1(), a = f(() => t.phases.reduce((k, M) => [...k, ...M.milestones || []], [])), i = () => {
5694
- if (!t.phases)
5695
- return;
5696
- const { name: k, rank: M } = v1(t.phases, "phase", n);
5697
- e("addPhase", { name: k, rank: M, projectId: t.project.id });
5698
- }, l = (k) => {
5699
- e("addMilestone", k);
5700
- }, o = (k) => {
5701
- e("addActivity", k);
5702
- }, d = (k) => {
5703
- e("update:activity", k);
5704
- }, c = (k) => {
5690
+ const t = s, { t: n } = Ge(), a = f(() => t.phases.reduce((I, M) => [...I, ...M.milestones || []], [])), i = () => {
5691
+ const { name: I, rank: M } = e1(t.phases, "phase", n);
5692
+ e("addPhase", { name: I, rank: M, projectId: t.project.id });
5693
+ }, l = (I) => {
5694
+ e("addMilestone", I);
5695
+ }, o = (I) => {
5696
+ e("addActivity", I);
5697
+ }, c = (I) => {
5698
+ e("update:activity", I);
5699
+ }, d = (I) => {
5705
5700
  var B;
5706
- const M = t.phases.find((ee) => {
5701
+ const M = t.phases.find((x) => {
5707
5702
  var te;
5708
- return (te = ee.milestones) == null ? void 0 : te.find((h) => {
5703
+ return (te = x.milestones) == null ? void 0 : te.find((h) => {
5709
5704
  var H;
5710
- return (H = h.activities) == null ? void 0 : H.find((U) => U.id === k.activityId);
5705
+ return (H = h.activities) == null ? void 0 : H.find((U) => U.id === I.activityId);
5711
5706
  });
5712
- }), y = (B = M == null ? void 0 : M.milestones) == null ? void 0 : B.find((ee) => {
5707
+ }), y = (B = M == null ? void 0 : M.milestones) == null ? void 0 : B.find((x) => {
5713
5708
  var te;
5714
- return (te = ee.activities) == null ? void 0 : te.find((h) => h.id === k.activityId);
5709
+ return (te = x.activities) == null ? void 0 : te.find((h) => h.id === I.activityId);
5715
5710
  });
5716
5711
  e("addSubtask", {
5717
5712
  milestoneId: y == null ? void 0 : y.id,
5718
5713
  phaseId: M == null ? void 0 : M.id,
5719
- ...k
5714
+ ...I
5720
5715
  });
5721
- }, p = f(() => a.value.reduce((k, M) => [...k, ...M.activities || []], [])), _ = (k) => {
5722
- e("addFiles", k);
5723
- }, m = (k) => {
5724
- e("removeFile", k);
5725
- }, $ = (k) => {
5726
- e("addComment", k);
5727
- }, V = (k) => {
5728
- e("updateComment", k);
5729
- }, E = (k) => {
5730
- e("removeComment", k);
5716
+ }, p = f(() => a.value.reduce((I, M) => [...I, ...M.activities || []], [])), _ = (I) => {
5717
+ e("addFiles", I);
5718
+ }, m = (I) => {
5719
+ e("removeFile", I);
5720
+ }, $ = (I) => {
5721
+ e("addComment", I);
5722
+ }, V = (I) => {
5723
+ e("updateComment", I);
5724
+ }, E = (I) => {
5725
+ e("removeComment", I);
5731
5726
  };
5732
- return (k, M) => {
5727
+ return (I, M) => {
5733
5728
  const y = Kt("RouterView");
5734
- return u(), C(le, null, [
5729
+ return u(), C(ae, null, [
5735
5730
  r("div", t0, [
5736
5731
  b(M1, null, {
5737
5732
  primary: R(() => [
5738
5733
  b(ue, {
5739
- label: k.$t("project.phases.add"),
5734
+ label: I.$t("project.phases.add"),
5740
5735
  color: "primary",
5741
5736
  onClick: i
5742
5737
  }, null, 8, ["label"])
@@ -5747,36 +5742,36 @@ const t0 = { class: "ao-project" }, s0 = { class: "ao-project__body" }, a0 = { c
5747
5742
  r("header", a0, [
5748
5743
  r("div", l0, [
5749
5744
  r("div", n0, [
5750
- b(ne, {
5745
+ b(le, {
5751
5746
  class: "ao-project__col-title-icon",
5752
5747
  name: "WaterfallChartRounded",
5753
5748
  size: "md"
5754
5749
  }),
5755
5750
  b(ce, {
5756
5751
  level: 3,
5757
- title: k.$t("project.phases.title")
5752
+ title: I.$t("project.phases.title")
5758
5753
  }, null, 8, ["title"])
5759
5754
  ])
5760
5755
  ]),
5761
5756
  r("div", i0, [
5762
5757
  r("div", o0, [
5763
- b(ne, {
5758
+ b(le, {
5764
5759
  class: "ao-project__col-title-icon",
5765
5760
  name: "MountainFlagOutlineRounded",
5766
5761
  size: "md"
5767
5762
  }),
5768
5763
  b(ce, {
5769
5764
  level: 3,
5770
- title: k.$t("project.milestones.title")
5765
+ title: I.$t("project.milestones.title")
5771
5766
  }, null, 8, ["title"])
5772
5767
  ])
5773
5768
  ])
5774
5769
  ]),
5775
5770
  r("ul", r0, [
5776
- (u(!0), C(le, null, pe(k.phases, (B) => (u(), N(e0, {
5771
+ (u(!0), C(ae, null, pe(I.phases, (B) => (u(), N(e0, {
5777
5772
  key: B.id,
5778
5773
  phase: B,
5779
- "project-name": k.project.name,
5774
+ "project-name": I.project.name,
5780
5775
  onAddMilestone: l
5781
5776
  }, null, 8, ["phase", "project-name"]))), 128))
5782
5777
  ])
@@ -5785,17 +5780,17 @@ const t0 = { class: "ao-project" }, s0 = { class: "ao-project__body" }, a0 = { c
5785
5780
  b(y, {
5786
5781
  class: "ao-project__sidebar",
5787
5782
  milestones: a.value,
5788
- "project-name": k.project.name,
5789
- users: k.users,
5790
- onClose: M[0] || (M[0] = (B) => k.$router.push({ name: O(qe).project })),
5783
+ "project-name": I.project.name,
5784
+ users: I.users,
5785
+ onClose: M[0] || (M[0] = (B) => I.$router.push({ name: O(qe).project })),
5791
5786
  onAddActivity: o
5792
5787
  }, null, 8, ["milestones", "project-name", "users"]),
5793
5788
  (u(), N(C1, { to: "body" }, [
5794
5789
  b(y, {
5795
5790
  name: "modal",
5796
5791
  activities: p.value,
5797
- "onUpdate:activity": d,
5798
- onAddSubtask: c,
5792
+ "onUpdate:activity": c,
5793
+ onAddSubtask: d,
5799
5794
  onAddFiles: _,
5800
5795
  onRemoveFile: m,
5801
5796
  onAddComment: $,
@@ -5831,7 +5826,7 @@ const c0 = { class: "ao-card-feed__header" }, d0 = {
5831
5826
  }, w0 = { class: "ao-card-feed__subitem" }, M0 = { class: "ao-card-feed__footer-row" }, A0 = {
5832
5827
  key: 0,
5833
5828
  class: "ao-card-feed__progress-wrapper"
5834
- }, k0 = { class: "ao-card-feed__subitem" }, I0 = { class: "ao-card-feed__subitem" }, _t = /* @__PURE__ */ K({
5829
+ }, I0 = { class: "ao-card-feed__subitem" }, k0 = { class: "ao-card-feed__subitem" }, _t = /* @__PURE__ */ K({
5835
5830
  __name: "AoCardFeed",
5836
5831
  props: {
5837
5832
  id: {},
@@ -5865,13 +5860,13 @@ const c0 = { class: "ao-card-feed__header" }, d0 = {
5865
5860
  return m && $ ? `${m} ${$}` : "";
5866
5861
  }, o = (_) => {
5867
5862
  e("removeAssignee", _);
5868
- }, d = f(() => {
5863
+ }, c = f(() => {
5869
5864
  var _;
5870
5865
  return (_ = t.subtasks) == null ? void 0 : _.length;
5871
- }), c = f(() => {
5866
+ }), d = f(() => {
5872
5867
  var _;
5873
5868
  return (_ = t.subtasks) == null ? void 0 : _.filter((m) => m.isDone).length;
5874
- }), p = f(() => (c.value || 0) / (d.value || 1));
5869
+ }), p = f(() => (d.value || 0) / (c.value || 1));
5875
5870
  return (_, m) => (u(), N(U1, {
5876
5871
  class: "ao-card-feed",
5877
5872
  "is-clickable": !0
@@ -5885,7 +5880,7 @@ const c0 = { class: "ao-card-feed__header" }, d0 = {
5885
5880
  variant: "solid",
5886
5881
  color: "primary"
5887
5882
  }, null, 8, ["label"])) : w("", !0),
5888
- _.isImportant ? (u(), N(ne, {
5883
+ _.isImportant ? (u(), N(le, {
5889
5884
  key: 1,
5890
5885
  name: "FlagRounded",
5891
5886
  class: "ao-card-feed__important ao-card-feed__header-secondary",
@@ -5912,7 +5907,7 @@ const c0 = { class: "ao-card-feed__header" }, d0 = {
5912
5907
  r("div", _0, [
5913
5908
  r("div", m0, [
5914
5909
  r("ul", h0, [
5915
- (u(!0), C(le, null, pe(i.value, ($) => (u(), C(le, {
5910
+ (u(!0), C(ae, null, pe(i.value, ($) => (u(), C(ae, {
5916
5911
  key: $.id
5917
5912
  }, [
5918
5913
  $ ? (u(), C("li", f0, [
@@ -5926,14 +5921,14 @@ const c0 = { class: "ao-card-feed__header" }, d0 = {
5926
5921
  ]),
5927
5922
  _.comments || _.attachments ? (u(), C("ul", g0, [
5928
5923
  _.comments ? (u(), C("li", y0, [
5929
- b(ne, {
5924
+ b(le, {
5930
5925
  name: "ChatOutline",
5931
5926
  size: "sm"
5932
5927
  }),
5933
5928
  r("span", b0, j(_.comments), 1)
5934
5929
  ])) : w("", !0),
5935
5930
  _.attachments ? (u(), C("li", $0, [
5936
- b(ne, {
5931
+ b(le, {
5937
5932
  name: "AttachFileRounded",
5938
5933
  size: "sm"
5939
5934
  }),
@@ -5943,12 +5938,12 @@ const c0 = { class: "ao-card-feed__header" }, d0 = {
5943
5938
  ]),
5944
5939
  r("div", M0, [
5945
5940
  _.subtasks ? (u(), C("div", A0, [
5946
- r("div", k0, [
5947
- b(ne, {
5941
+ r("div", I0, [
5942
+ b(le, {
5948
5943
  name: "SelectCheckBox",
5949
5944
  size: "sm"
5950
5945
  }),
5951
- r("span", I0, j(c.value) + " / " + j(d.value), 1)
5946
+ r("span", k0, j(d.value) + " / " + j(c.value), 1)
5952
5947
  ]),
5953
5948
  b(q1, {
5954
5949
  percentages: p.value,
@@ -5976,7 +5971,7 @@ const S0 = { class: "ao-project-milestone" }, V0 = { class: "ao-project-mileston
5976
5971
  setup(s, { emit: e }) {
5977
5972
  const t = s, n = f(() => {
5978
5973
  var o;
5979
- return (o = t.milestones) == null ? void 0 : o.find((d) => d.id === t.milestoneId);
5974
+ return (o = t.milestones) == null ? void 0 : o.find((c) => c.id === t.milestoneId);
5980
5975
  }), a = f(() => {
5981
5976
  var o;
5982
5977
  return (o = n.value) == null ? void 0 : o.activities;
@@ -5988,14 +5983,14 @@ const S0 = { class: "ao-project-milestone" }, V0 = { class: "ao-project-mileston
5988
5983
  phaseId: t.phaseId
5989
5984
  });
5990
5985
  };
5991
- return (o, d) => {
5992
- var c;
5986
+ return (o, c) => {
5987
+ var d;
5993
5988
  return u(), C("div", S0, [
5994
5989
  r("header", V0, [
5995
5990
  r("div", L0, [
5996
5991
  r("span", null, j(o.$t("project.milestone.title")), 1),
5997
5992
  b(ce, {
5998
- title: ((c = n.value) == null ? void 0 : c.name) || o.milestoneId,
5993
+ title: ((d = n.value) == null ? void 0 : d.name) || o.milestoneId,
5999
5994
  level: 5
6000
5995
  }, null, 8, ["title"])
6001
5996
  ]),
@@ -6007,7 +6002,7 @@ const S0 = { class: "ao-project-milestone" }, V0 = { class: "ao-project-mileston
6007
6002
  ]),
6008
6003
  r("div", T0, [
6009
6004
  r("ul", E0, [
6010
- (u(!0), C(le, null, pe(a.value, (p) => {
6005
+ (u(!0), C(ae, null, pe(a.value, (p) => {
6011
6006
  var _, m, $;
6012
6007
  return u(), N(_t, {
6013
6008
  key: p.id,
@@ -6041,7 +6036,7 @@ const S0 = { class: "ao-project-milestone" }, V0 = { class: "ao-project-mileston
6041
6036
  };
6042
6037
  }
6043
6038
  });
6044
- const lt = x([]), nt = x("");
6039
+ const lt = Q([]), nt = Q("");
6045
6040
  function O0() {
6046
6041
  return {
6047
6042
  init: (e) => {
@@ -6068,7 +6063,7 @@ const B0 = { class: "ao-comment" }, D0 = { class: "ao-comment__body" }, Z0 = ["c
6068
6063
  const t = s, n = f(() => {
6069
6064
  const m = t.user;
6070
6065
  return m ? `${m == null ? void 0 : m.firstName} ${m == null ? void 0 : m.lastName}` : null;
6071
- }), a = x(null), { isEditing: i, toggleIsEditing: l, onUpdate: o, onDiscard: d } = ot(a), c = d(), p = o((m) => {
6066
+ }), a = Q(null), { isEditing: i, toggleIsEditing: l, onUpdate: o, onDiscard: c } = ot(a), d = c(), p = o((m) => {
6072
6067
  e("edit", m);
6073
6068
  }), _ = () => {
6074
6069
  e("remove");
@@ -6089,13 +6084,13 @@ const B0 = { class: "ao-comment" }, D0 = { class: "ao-comment__body" }, Z0 = ["c
6089
6084
  r("span", P0, j(m.editedAt || m.createdAt), 1)
6090
6085
  ]),
6091
6086
  m.isEditable ? (u(), C("div", N0, [
6092
- O(i) ? (u(), C(le, { key: 0 }, [
6087
+ O(i) ? (u(), C(ae, { key: 0 }, [
6093
6088
  b(ue, {
6094
6089
  "icon-name": "CloseRounded",
6095
6090
  size: "sm",
6096
6091
  variant: "ghost",
6097
6092
  color: "neutral",
6098
- onClick: O(c)
6093
+ onClick: O(d)
6099
6094
  }, null, 8, ["onClick"]),
6100
6095
  b(ue, {
6101
6096
  "icon-name": "CheckSmallRounded",
@@ -6104,7 +6099,7 @@ const B0 = { class: "ao-comment" }, D0 = { class: "ao-comment__body" }, Z0 = ["c
6104
6099
  color: "neutral",
6105
6100
  onClick: O(p)
6106
6101
  }, null, 8, ["onClick"])
6107
- ], 64)) : (u(), C(le, { key: 1 }, [
6102
+ ], 64)) : (u(), C(ae, { key: 1 }, [
6108
6103
  b(ue, {
6109
6104
  label: m.$t("activity.comment.delete"),
6110
6105
  size: "sm",
@@ -6137,54 +6132,54 @@ const R0 = { class: "ao-comments" }, U0 = {
6137
6132
  },
6138
6133
  emits: ["createComment", "updateComment", "removeComment"],
6139
6134
  setup(s, { emit: e }) {
6140
- const t = s, n = (c) => t.users.find((_) => _.id === c), a = Qe(t.newComment || ""), i = f({
6135
+ const t = s, n = (d) => t.users.find((_) => _.id === d), a = xe(t.newComment || ""), i = f({
6141
6136
  get() {
6142
6137
  return a.value;
6143
6138
  },
6144
- set(c) {
6145
- a.value = c;
6139
+ set(d) {
6140
+ a.value = d;
6146
6141
  }
6147
6142
  }), l = () => {
6148
- const c = a.value.trim();
6149
- c && (e("createComment", c), a.value = "");
6150
- }, o = (c, p) => {
6143
+ const d = a.value.trim();
6144
+ d && (e("createComment", d), a.value = "");
6145
+ }, o = (d, p) => {
6151
6146
  e("updateComment", {
6152
- id: c,
6147
+ id: d,
6153
6148
  content: p
6154
6149
  });
6155
- }, d = (c) => {
6156
- e("removeComment", c);
6150
+ }, c = (d) => {
6151
+ e("removeComment", d);
6157
6152
  };
6158
- return (c, p) => {
6153
+ return (d, p) => {
6159
6154
  var _;
6160
6155
  return u(), C("div", R0, [
6161
- ((_ = c.comments) == null ? void 0 : _.length) > 0 ? (u(), C("ul", U0, [
6162
- (u(!0), C(le, null, pe(c.comments, (m) => (u(), N(j0, {
6156
+ ((_ = d.comments) == null ? void 0 : _.length) > 0 ? (u(), C("ul", U0, [
6157
+ (u(!0), C(ae, null, pe(d.comments, (m) => (u(), N(j0, {
6163
6158
  key: m.id,
6164
6159
  user: n(m.userId),
6165
6160
  content: m.content,
6166
6161
  "created-at": m.createdAt,
6167
6162
  "edited-at": m.editedAt,
6168
- "is-editable": m.userId === c.userId,
6163
+ "is-editable": m.userId === d.userId,
6169
6164
  class: "ao-comment",
6170
6165
  onEdit: ($) => o(m.id, $),
6171
- onRemove: () => d(m.id)
6166
+ onRemove: () => c(m.id)
6172
6167
  }, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
6173
6168
  ])) : w("", !0),
6174
6169
  r("div", q0, [
6175
6170
  r("form", {
6176
6171
  class: "ao-comments__form",
6177
- onSubmit: ke(l, ["prevent"])
6172
+ onSubmit: Ie(l, ["prevent"])
6178
6173
  }, [
6179
6174
  r("label", F0, [
6180
- r("span", K0, j(c.$t("activity.comment.label")), 1),
6175
+ r("span", K0, j(d.$t("activity.comment.label")), 1),
6181
6176
  Ue(r("textarea", {
6182
6177
  "onUpdate:modelValue": p[0] || (p[0] = (m) => i.value = m),
6183
6178
  rows: "4",
6184
6179
  class: "ao-field__textarea"
6185
6180
  }, null, 512), [
6186
6181
  [
6187
- s1,
6182
+ l1,
6188
6183
  i.value,
6189
6184
  void 0,
6190
6185
  { trim: !0 }
@@ -6197,7 +6192,7 @@ const R0 = { class: "ao-comments" }, U0 = {
6197
6192
  "icon-name": "SendRounded",
6198
6193
  color: "primary",
6199
6194
  variant: "solid",
6200
- label: c.$t("activity.comment.submit")
6195
+ label: d.$t("activity.comment.submit")
6201
6196
  }, null, 8, ["label"])
6202
6197
  ])
6203
6198
  ], 40, z0)
@@ -6230,7 +6225,7 @@ const Y0 = { class: "ao-fieldset" }, W0 = { class: "ao-fieldset__title" }, X0 =
6230
6225
  }), o = (m) => {
6231
6226
  const { id: $ } = m;
6232
6227
  i.value && i.value.projectId && e("update:activity", {
6233
- itemType: oe.ACTIVITIES,
6228
+ itemType: ie.ACTIVITIES,
6234
6229
  id: $,
6235
6230
  projectId: i.value.projectId,
6236
6231
  data: {
@@ -6240,13 +6235,13 @@ const Y0 = { class: "ao-fieldset" }, W0 = { class: "ao-fieldset__title" }, X0 =
6240
6235
  milestoneId: t.milestoneId
6241
6236
  }
6242
6237
  });
6243
- }, d = (m) => {
6238
+ }, c = (m) => {
6244
6239
  e("addSubtask", {
6245
6240
  ...m,
6246
6241
  milestoneId: t.milestoneId,
6247
6242
  phaseId: t.phaseId
6248
6243
  });
6249
- }, c = (m) => {
6244
+ }, d = (m) => {
6250
6245
  i.value && e("addComment", {
6251
6246
  activityId: i.value.id,
6252
6247
  comment: m
@@ -6272,12 +6267,12 @@ const Y0 = { class: "ao-fieldset" }, W0 = { class: "ao-fieldset__title" }, X0 =
6272
6267
  ...V
6273
6268
  });
6274
6269
  }),
6275
- onAddSubtask: d
6270
+ onAddSubtask: c
6276
6271
  }, {
6277
6272
  default: R(() => [
6278
6273
  r("fieldset", Y0, [
6279
6274
  r("div", W0, [
6280
- b(ne, { name: "ChatOutline" }),
6275
+ b(le, { name: "ChatOutline" }),
6281
6276
  b(ce, {
6282
6277
  level: 4,
6283
6278
  title: m.$t("activity.comments.title")
@@ -6287,7 +6282,7 @@ const Y0 = { class: "ao-fieldset" }, W0 = { class: "ao-fieldset__title" }, X0 =
6287
6282
  comments: i.value.comments,
6288
6283
  users: O(n),
6289
6284
  "user-id": O(a),
6290
- onCreateComment: c,
6285
+ onCreateComment: d,
6291
6286
  onUpdateComment: p,
6292
6287
  onRemoveComment: _
6293
6288
  }, null, 8, ["comments", "users", "user-id"])
@@ -6296,24 +6291,24 @@ const Y0 = { class: "ao-fieldset" }, W0 = { class: "ao-fieldset__title" }, X0 =
6296
6291
  _: 1
6297
6292
  }, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "onClose"])) : w("", !0);
6298
6293
  }
6299
- }), xe = {
6294
+ }), t1 = {
6300
6295
  TEMPLATES: "templates",
6301
6296
  TEMPLATE_DETAILS: "template_details",
6302
6297
  TEMPLATES_LIST: "templates_list"
6303
6298
  }, qu = (s, e = {}) => [
6304
6299
  {
6305
6300
  path: s,
6306
- name: xe.TEMPLATES,
6301
+ name: t1.TEMPLATES,
6307
6302
  ...e,
6308
6303
  children: [
6309
6304
  {
6310
6305
  path: "",
6311
- name: xe.TEMPLATES_LIST,
6306
+ name: t1.TEMPLATES_LIST,
6312
6307
  component: Q0
6313
6308
  },
6314
6309
  {
6315
6310
  path: ":templateId/:phaseId?/:milestoneId?/:activityId?",
6316
- name: xe.TEMPLATE_DETAILS,
6311
+ name: t1.TEMPLATE_DETAILS,
6317
6312
  component: T7,
6318
6313
  props: !0
6319
6314
  }
@@ -6332,22 +6327,24 @@ const Y0 = { class: "ao-fieldset" }, W0 = { class: "ao-fieldset__title" }, X0 =
6332
6327
  path: "",
6333
6328
  name: qe.project,
6334
6329
  component: u0,
6335
- props: !0
6336
- },
6337
- {
6338
- path: ":phaseId/:milestoneId",
6339
- name: qe.milestone,
6340
- component: at,
6341
- props: !0
6342
- },
6343
- {
6344
- path: ":phaseId/:milestoneId/:activityId",
6345
- name: qe.activity,
6346
- props: { default: !0, modal: !0 },
6347
- components: {
6348
- default: at,
6349
- modal: X0
6350
- }
6330
+ props: !0,
6331
+ children: [
6332
+ {
6333
+ path: ":phaseId/:milestoneId",
6334
+ name: qe.milestone,
6335
+ component: at,
6336
+ props: !0
6337
+ },
6338
+ {
6339
+ path: ":phaseId/:milestoneId/:activityId",
6340
+ name: qe.activity,
6341
+ props: { default: !0, modal: !0 },
6342
+ components: {
6343
+ default: at,
6344
+ modal: X0
6345
+ }
6346
+ }
6347
+ ]
6351
6348
  }
6352
6349
  ]
6353
6350
  }
@@ -6358,36 +6355,36 @@ const Y0 = { class: "ao-fieldset" }, W0 = { class: "ao-fieldset__title" }, X0 =
6358
6355
  },
6359
6356
  emits: ["addTemplate", "updateTemplates", "updateItem"],
6360
6357
  setup(s, { emit: e }) {
6361
- const t = s, { t: n } = i1(), a = () => {
6358
+ const t = s, { t: n } = Ge(), a = () => {
6362
6359
  var _, m;
6363
- const o = (_ = t.templates) == null ? void 0 : _.at(-1), d = o ? be.LexoRank.parse(o.rank).genNext() : be.LexoRank.middle(), c = ((m = t.templates) == null ? void 0 : m.length) ?? 0, p = {
6364
- name: n("template.defaultName.template", { idx: c + 1 }),
6365
- rank: d.format()
6360
+ const o = (_ = t.templates) == null ? void 0 : _.at(-1), c = o ? ye.LexoRank.parse(o.rank).genNext() : ye.LexoRank.middle(), d = ((m = t.templates) == null ? void 0 : m.length) ?? 0, p = {
6361
+ name: n("template.defaultName.template", { idx: d + 1 }),
6362
+ rank: c.format()
6366
6363
  };
6367
6364
  e("addTemplate", p);
6368
- }, i = (o, d) => {
6365
+ }, i = (o, c) => {
6369
6366
  e("updateItem", {
6370
- itemType: oe.TEMPLATES,
6367
+ itemType: ie.TEMPLATES,
6371
6368
  id: o,
6372
6369
  templateId: o,
6373
6370
  data: {
6374
- name: d
6371
+ name: c
6375
6372
  }
6376
6373
  });
6377
6374
  }, l = (o) => {
6378
6375
  if (o.moved) {
6379
- const d = w1(o, t.templates ?? []);
6376
+ const c = w1(o, t.templates ?? []);
6380
6377
  e("updateItem", {
6381
- itemType: oe.TEMPLATES,
6378
+ itemType: ie.TEMPLATES,
6382
6379
  id: o.moved.element.id,
6383
6380
  templateId: o.moved.element.id,
6384
6381
  data: {
6385
- rank: d
6382
+ rank: c
6386
6383
  }
6387
6384
  });
6388
6385
  }
6389
6386
  };
6390
- return (o, d) => (u(), C("div", J0, [
6387
+ return (o, c) => (u(), C("div", J0, [
6391
6388
  b(M1, null, {
6392
6389
  secondary: R(() => [
6393
6390
  b(ue, {
@@ -6400,27 +6397,27 @@ const Y0 = { class: "ao-fieldset" }, W0 = { class: "ao-fieldset__title" }, X0 =
6400
6397
  ]),
6401
6398
  _: 1
6402
6399
  }),
6403
- b(O(a1), {
6400
+ b(O(n1), {
6404
6401
  "model-value": o.templates,
6405
6402
  class: "ao-templates__list",
6406
6403
  "item-key": "id",
6407
6404
  handle: ".ao-card__drag",
6408
6405
  onChange: l
6409
6406
  }, {
6410
- item: R(({ element: c }) => {
6407
+ item: R(({ element: d }) => {
6411
6408
  var p;
6412
6409
  return [
6413
6410
  b(m3, {
6414
- title: c.name || c.id,
6415
- phases: c.phases,
6416
- milestones: (p = c.phases) != null && p.length ? O(Kr)(c.phases) : 0,
6417
- activities: c.phases ? O(Gr)(c.phases) : 0,
6418
- "updated-at": c.updatedAt,
6419
- "updated-by": c.updatedBy,
6420
- onUpdateTitle: (_) => i(c.id, _),
6411
+ title: d.name || d.id,
6412
+ phases: d.phases,
6413
+ milestones: (p = d.phases) != null && p.length ? O(Kr)(d.phases) : 0,
6414
+ activities: d.phases ? O(Gr)(d.phases) : 0,
6415
+ "updated-at": d.updatedAt,
6416
+ "updated-by": d.updatedBy,
6417
+ onUpdateTitle: (_) => i(d.id, _),
6421
6418
  onClick: (_) => o.$router.push({
6422
- name: O(xe).TEMPLATE_DETAILS,
6423
- params: { templateId: c.id }
6419
+ name: O(t1).TEMPLATE_DETAILS,
6420
+ params: { templateId: d.id }
6424
6421
  })
6425
6422
  }, null, 8, ["title", "phases", "milestones", "activities", "updated-at", "updated-by", "onUpdateTitle", "onClick"])
6426
6423
  ];
@@ -6459,7 +6456,7 @@ function tu(s) {
6459
6456
  function _1(s) {
6460
6457
  return typeof s == "function" ? s() : O(s);
6461
6458
  }
6462
- const su = typeof window < "u", au = (s) => s != null, e1 = () => {
6459
+ const su = typeof window < "u", au = (s) => s != null, s1 = () => {
6463
6460
  };
6464
6461
  function lu(s, e) {
6465
6462
  function t(...n) {
@@ -6470,18 +6467,18 @@ function lu(s, e) {
6470
6467
  return t;
6471
6468
  }
6472
6469
  function nu(s, e = {}) {
6473
- let t, n, a = e1;
6470
+ let t, n, a = s1;
6474
6471
  const i = (o) => {
6475
- clearTimeout(o), a(), a = e1;
6472
+ clearTimeout(o), a(), a = s1;
6476
6473
  };
6477
6474
  return (o) => {
6478
- const d = _1(s), c = _1(e.maxWait);
6479
- return t && i(t), d <= 0 || c !== void 0 && c <= 0 ? (n && (i(n), n = null), Promise.resolve(o())) : new Promise((p, _) => {
6480
- a = e.rejectOnCancel ? _ : p, c && !n && (n = setTimeout(() => {
6475
+ const c = _1(s), d = _1(e.maxWait);
6476
+ return t && i(t), c <= 0 || d !== void 0 && d <= 0 ? (n && (i(n), n = null), Promise.resolve(o())) : new Promise((p, _) => {
6477
+ a = e.rejectOnCancel ? _ : p, d && !n && (n = setTimeout(() => {
6481
6478
  t && i(t), n = null, p(o());
6482
- }, c)), t = setTimeout(() => {
6479
+ }, d)), t = setTimeout(() => {
6483
6480
  n && i(n), n = null, p(o());
6484
- }, d);
6481
+ }, c);
6485
6482
  });
6486
6483
  };
6487
6484
  }
@@ -6498,7 +6495,7 @@ function B1(s) {
6498
6495
  }
6499
6496
  const ou = su ? window : void 0;
6500
6497
  function ru() {
6501
- const s = x(!1);
6498
+ const s = Q(!1);
6502
6499
  return Oe() && m1(() => {
6503
6500
  s.value = !0;
6504
6501
  }), s;
@@ -6514,17 +6511,17 @@ function cu(s, e, t = {}) {
6514
6511
  threshold: i = 0.1,
6515
6512
  window: l = ou,
6516
6513
  immediate: o = !0
6517
- } = t, d = uu(() => l && "IntersectionObserver" in l), c = f(() => {
6514
+ } = t, c = uu(() => l && "IntersectionObserver" in l), d = f(() => {
6518
6515
  const V = _1(s);
6519
6516
  return (Array.isArray(V) ? V : [V]).map(B1).filter(au);
6520
6517
  });
6521
- let p = e1;
6522
- const _ = x(o), m = d.value ? de(
6523
- () => [c.value, B1(n), _.value],
6518
+ let p = s1;
6519
+ const _ = Q(o), m = c.value ? de(
6520
+ () => [d.value, B1(n), _.value],
6524
6521
  ([V, E]) => {
6525
6522
  if (p(), !_.value || !V.length)
6526
6523
  return;
6527
- const k = new IntersectionObserver(
6524
+ const I = new IntersectionObserver(
6528
6525
  e,
6529
6526
  {
6530
6527
  root: B1(E),
@@ -6532,16 +6529,16 @@ function cu(s, e, t = {}) {
6532
6529
  threshold: i
6533
6530
  }
6534
6531
  );
6535
- V.forEach((M) => M && k.observe(M)), p = () => {
6536
- k.disconnect(), p = e1;
6532
+ V.forEach((M) => M && I.observe(M)), p = () => {
6533
+ I.disconnect(), p = s1;
6537
6534
  };
6538
6535
  },
6539
6536
  { immediate: o, flush: "post" }
6540
- ) : e1, $ = () => {
6537
+ ) : s1, $ = () => {
6541
6538
  p(), m(), _.value = !1;
6542
6539
  };
6543
6540
  return tu($), {
6544
- isSupported: d,
6541
+ isSupported: c,
6545
6542
  isActive: _,
6546
6543
  pause() {
6547
6544
  p(), _.value = !1;
@@ -6582,50 +6579,50 @@ const du = {
6582
6579
  },
6583
6580
  emits: ["add", "update:list", "change:list", "loadMore", "selectActivity", "archiveActivity", "updateActivity"],
6584
6581
  setup(s, { emit: e }) {
6585
- const t = s, n = x(!1), a = x(null);
6586
- cu(a, ([{ isIntersecting: d }]) => {
6587
- n.value = d;
6588
- }), de(n, (d) => {
6589
- d && t.hasMore && !t.isLoading && e("loadMore");
6582
+ const t = s, n = Q(!1), a = Q(null);
6583
+ cu(a, ([{ isIntersecting: c }]) => {
6584
+ n.value = c;
6585
+ }), de(n, (c) => {
6586
+ c && t.hasMore && !t.isLoading && e("loadMore");
6590
6587
  });
6591
- const i = (d) => {
6592
- e("selectActivity", d);
6593
- }, l = (d) => {
6594
- e("updateActivity", d);
6595
- }, o = (d) => {
6596
- "added" in d ? e("updateActivity", {
6597
- id: d.added.element.id,
6588
+ const i = (c) => {
6589
+ e("selectActivity", c);
6590
+ }, l = (c) => {
6591
+ e("updateActivity", c);
6592
+ }, o = (c) => {
6593
+ "added" in c ? e("updateActivity", {
6594
+ id: c.added.element.id,
6598
6595
  statusId: t.status.id,
6599
- rank: D1(t.list, 0, d.added.newIndex)
6600
- }) : "removed" in d || "moved" in d && e("updateActivity", {
6601
- id: d.moved.element.id,
6596
+ rank: D1(t.list, 0, c.added.newIndex)
6597
+ }) : "removed" in c || "moved" in c && e("updateActivity", {
6598
+ id: c.moved.element.id,
6602
6599
  rank: D1(
6603
6600
  t.list,
6604
- d.moved.oldIndex,
6605
- d.moved.newIndex
6601
+ c.moved.oldIndex,
6602
+ c.moved.newIndex
6606
6603
  )
6607
6604
  });
6608
6605
  };
6609
- return (d, c) => (u(), C("div", du, [
6610
- d.title || d.$slots.header ? Y(d.$slots, "header", { key: 0 }, () => {
6606
+ return (c, d) => (u(), C("div", du, [
6607
+ c.title || c.$slots.header ? Y(c.$slots, "header", { key: 0 }, () => {
6611
6608
  var p;
6612
6609
  return [
6613
6610
  r("div", pu, [
6614
- d.title ? (u(), N(eu, {
6611
+ c.title ? (u(), N(eu, {
6615
6612
  key: 0,
6616
- title: d.title,
6613
+ title: c.title,
6617
6614
  level: 3,
6618
- items: (p = d.list) == null ? void 0 : p.length
6615
+ items: (p = c.list) == null ? void 0 : p.length
6619
6616
  }, null, 8, ["title", "items"])) : w("", !0)
6620
6617
  ])
6621
6618
  ];
6622
6619
  }) : w("", !0),
6623
- b(O(a1), Ee({
6620
+ b(O(n1), Ee({
6624
6621
  class: "ao-list-kanban__list",
6625
- list: d.list,
6622
+ list: c.list,
6626
6623
  "item-key": "id",
6627
6624
  group: "kanban"
6628
- }, d.$attrs, { onChange: o }), {
6625
+ }, c.$attrs, { onChange: o }), {
6629
6626
  item: R(({ element: p }) => {
6630
6627
  var _, m, $;
6631
6628
  return [
@@ -6649,7 +6646,7 @@ const du = {
6649
6646
  "icon-name": "ArchiveOutlineRounded",
6650
6647
  size: "sm",
6651
6648
  corners: "round",
6652
- onClick: ke(() => d.$emit("archiveActivity", p.id), ["stop"])
6649
+ onClick: Ie(() => c.$emit("archiveActivity", p.id), ["stop"])
6653
6650
  }, null, 8, ["onClick"])
6654
6651
  ]),
6655
6652
  _: 2
@@ -6657,25 +6654,25 @@ const du = {
6657
6654
  ];
6658
6655
  }),
6659
6656
  footer: R(() => [
6660
- d.isLoading ? (u(), C("div", vu, [
6661
- b(ne, { name: "Loading" })
6662
- ])) : d.hasMore ? (u(), C("div", {
6657
+ c.isLoading ? (u(), C("div", vu, [
6658
+ b(le, { name: "Loading" })
6659
+ ])) : c.hasMore ? (u(), C("div", {
6663
6660
  key: 2,
6664
6661
  ref_key: "scrollEnd",
6665
6662
  ref: a,
6666
6663
  class: "ao-list-kanban__end"
6667
6664
  }, null, 512)) : (u(), C("div", Cu, [
6668
- d.noMoreLabel ? (u(), C("span", _u, j(d.noMoreLabel), 1)) : (u(), C("span", mu))
6665
+ c.noMoreLabel ? (u(), C("span", _u, j(c.noMoreLabel), 1)) : (u(), C("span", mu))
6669
6666
  ]))
6670
6667
  ]),
6671
6668
  _: 1
6672
6669
  }, 16, ["list"]),
6673
- d.$slots.footer || d.footerLabel ? (u(), C("div", hu, [
6674
- Y(d.$slots, "footer", {}, () => [
6670
+ c.$slots.footer || c.footerLabel ? (u(), C("div", hu, [
6671
+ Y(c.$slots, "footer", {}, () => [
6675
6672
  b(Be, {
6676
6673
  "icon-name": "AddBoxOutlineRounded",
6677
- label: d.footerLabel,
6678
- onClick: c[0] || (c[0] = (p) => d.$emit("add"))
6674
+ label: c.footerLabel,
6675
+ onClick: d[0] || (d[0] = (p) => c.$emit("add"))
6679
6676
  }, null, 8, ["label"])
6680
6677
  ])
6681
6678
  ])) : w("", !0)
@@ -6692,8 +6689,8 @@ const gu = { class: "ao-field ao-search-field" }, yu = ["value", "placeholder",
6692
6689
  emits: ["update:modelValue", "clear"],
6693
6690
  setup(s, { emit: e }) {
6694
6691
  const t = s, n = async (l) => {
6695
- const d = l.target.value;
6696
- e("update:modelValue", d, l);
6692
+ const c = l.target.value;
6693
+ e("update:modelValue", c, l);
6697
6694
  }, a = iu(n, t.delay), i = (l) => {
6698
6695
  e("clear", l);
6699
6696
  };
@@ -6704,10 +6701,10 @@ const gu = { class: "ao-field ao-search-field" }, yu = ["value", "placeholder",
6704
6701
  class: "ao-field__input ao-search-field__input",
6705
6702
  placeholder: l.placeholder,
6706
6703
  onInput: o[0] || (o[0] = //@ts-ignore
6707
- (...d) => O(a) && O(a)(...d)),
6708
- onKeypress: t1(n, ["enter"])
6704
+ (...c) => O(a) && O(a)(...c)),
6705
+ onKeypress: a1(n, ["enter"])
6709
6706
  }, null, 40, yu),
6710
- b(ne, {
6707
+ b(le, {
6711
6708
  name: "SearchRounded",
6712
6709
  class: F(`ao-search-field__icon ao-search-field__action ${l.modelValue ? "" : "ao-search-field__action--visible"}`)
6713
6710
  }, null, 8, ["class"]),
@@ -6723,7 +6720,7 @@ const gu = { class: "ao-field ao-search-field" }, yu = ["value", "placeholder",
6723
6720
  }
6724
6721
  });
6725
6722
  function $u(s) {
6726
- const e = x(), t = f(
6723
+ const e = Q(), t = f(
6727
6724
  () => s.value.find(
6728
6725
  (a) => a.id === e.value
6729
6726
  )
@@ -6741,7 +6738,7 @@ function Mu(s) {
6741
6738
  const e = $u(s);
6742
6739
  return Wt(wu, e), e;
6743
6740
  }
6744
- const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { class: "ao-feed__body" }, Su = { class: "ao-field" }, Vu = { class: "ao-field__label" }, Lu = { class: "ao-fieldset" }, Tu = { class: "ao-field" }, Eu = { class: "ao-field__label" }, Hu = { class: "ao-fieldset" }, Ou = { class: "ao-fieldset__title" }, Fu = /* @__PURE__ */ K({
6741
+ const Au = { class: "ao-feed" }, Iu = { class: "ao-feed__filters" }, ku = { class: "ao-feed__body" }, Su = { class: "ao-field" }, Vu = { class: "ao-field__label" }, Lu = { class: "ao-fieldset" }, Tu = { class: "ao-field" }, Eu = { class: "ao-field__label" }, Hu = { class: "ao-fieldset" }, Ou = { class: "ao-fieldset__title" }, Fu = /* @__PURE__ */ K({
6745
6742
  __name: "AoFeed",
6746
6743
  props: {
6747
6744
  activities: {},
@@ -6755,28 +6752,28 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6755
6752
  },
6756
6753
  emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "update:searchText", "clear:searchText", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
6757
6754
  setup(s, { emit: e }) {
6758
- const t = s, { t: n } = i1(), a = Qe(t, "activities"), { selectActivity: i, selectedActivity: l } = Mu(a), o = x({});
6755
+ const t = s, { t: n } = Ge(), a = xe(t, "activities"), { selectActivity: i, selectedActivity: l } = Mu(a), o = Q({});
6759
6756
  de(
6760
6757
  [() => t.statuses, () => t.activities],
6761
6758
  ([A, W]) => {
6762
6759
  o.value = Object.fromEntries(
6763
- A.map((me) => [
6764
- me.id,
6765
- W.filter((g) => g.status.id === me.id)
6760
+ A.map((_e) => [
6761
+ _e.id,
6762
+ W.filter((g) => g.status.id === _e.id)
6766
6763
  ])
6767
6764
  );
6768
6765
  },
6769
6766
  { immediate: !0 }
6770
6767
  );
6771
- const d = (A) => {
6768
+ const c = (A) => {
6772
6769
  var T, G;
6773
- const W = (T = t.activities) == null ? void 0 : T.at(-1), me = W ? be.LexoRank.parse(W.rank).genNext() : be.LexoRank.middle(), g = ((G = t.activities) == null ? void 0 : G.length) ?? 0, D = {
6770
+ const W = (T = t.activities) == null ? void 0 : T.at(-1), _e = W ? ye.LexoRank.parse(W.rank).genNext() : ye.LexoRank.middle(), g = ((G = t.activities) == null ? void 0 : G.length) ?? 0, D = {
6774
6771
  name: n("activity.defaultName", { idx: g + 1 }),
6775
- rank: me.format(),
6772
+ rank: _e.format(),
6776
6773
  statusId: A.id
6777
6774
  };
6778
6775
  e("addActivity", D);
6779
- }, c = (A, W) => {
6776
+ }, d = (A, W) => {
6780
6777
  e("update:filters", { ...t.filters, [A]: W });
6781
6778
  }, p = f(() => t.projects.map((A) => ({
6782
6779
  value: A.id,
@@ -6791,7 +6788,7 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6791
6788
  l.value && e("update:activity", A);
6792
6789
  }, V = (A) => {
6793
6790
  e("update:activity", A);
6794
- }, E = x(null), k = (A) => {
6791
+ }, E = Q(null), I = (A) => {
6795
6792
  l.value && e("update:activity", {
6796
6793
  id: l.value.id,
6797
6794
  name: A
@@ -6811,7 +6808,7 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6811
6808
  }
6812
6809
  }), B = (A) => {
6813
6810
  e("clear:searchText", A);
6814
- }, ee = (A) => {
6811
+ }, x = (A) => {
6815
6812
  l.value && e("addSubtask", A);
6816
6813
  }, te = (A) => {
6817
6814
  l.value && e("updateSubtask", A);
@@ -6829,7 +6826,7 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6829
6826
  }, re = (A) => {
6830
6827
  const { id: W } = l.value || {};
6831
6828
  W && e("updateComment", { ...A, activityId: W });
6832
- }, _e = (A) => {
6829
+ }, Ce = (A) => {
6833
6830
  const { id: W } = l.value || {};
6834
6831
  W && e("removeComment", { id: A, activityId: W });
6835
6832
  }, Z = f(() => t.statuses.map((A) => ({
@@ -6842,7 +6839,7 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6842
6839
  });
6843
6840
  };
6844
6841
  return (A, W) => {
6845
- var me;
6842
+ var _e;
6846
6843
  return u(), C("div", Au, [
6847
6844
  b(M1, null, {
6848
6845
  primary: R(() => [
@@ -6852,7 +6849,7 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6852
6849
  "onUpdate:modelValue": W[0] || (W[0] = (g) => A.$emit("update:searchText", g)),
6853
6850
  onClear: B
6854
6851
  }, null, 8, ["model-value", "placeholder"]),
6855
- r("div", ku, [
6852
+ r("div", Iu, [
6856
6853
  b(O(ve), {
6857
6854
  "model-value": A.filters[O(Re).project],
6858
6855
  mode: "tags",
@@ -6861,7 +6858,7 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6861
6858
  searchable: !0,
6862
6859
  class: "ao-feed__filter",
6863
6860
  placeholder: A.$t("feed.filters.project.placeholder"),
6864
- "onUpdate:modelValue": W[1] || (W[1] = (g) => c(O(Re).project, g))
6861
+ "onUpdate:modelValue": W[1] || (W[1] = (g) => d(O(Re).project, g))
6865
6862
  }, null, 8, ["model-value", "options", "placeholder"]),
6866
6863
  b(O(ve), {
6867
6864
  "model-value": A.filters[O(Re).type],
@@ -6871,7 +6868,7 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6871
6868
  searchable: !0,
6872
6869
  class: "ao-feed__filter",
6873
6870
  placeholder: A.$t("feed.filters.activityType.placeholder"),
6874
- "onUpdate:modelValue": W[2] || (W[2] = (g) => c(O(Re).type, g))
6871
+ "onUpdate:modelValue": W[2] || (W[2] = (g) => d(O(Re).type, g))
6875
6872
  }, null, 8, ["model-value", "options", "placeholder"]),
6876
6873
  b(O(ve), {
6877
6874
  "model-value": A.filters[O(Re).assignee],
@@ -6881,7 +6878,7 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6881
6878
  searchable: !0,
6882
6879
  class: "ao-feed__filter",
6883
6880
  placeholder: A.$t("feed.filters.assignee.placeholder"),
6884
- "onUpdate:modelValue": W[3] || (W[3] = (g) => c(O(Re).assignee, g))
6881
+ "onUpdate:modelValue": W[3] || (W[3] = (g) => d(O(Re).assignee, g))
6885
6882
  }, {
6886
6883
  tag: R(({ option: g, handleTagRemove: D }) => [
6887
6884
  b(Ke, {
@@ -6896,14 +6893,14 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6896
6893
  ]),
6897
6894
  _: 1
6898
6895
  }),
6899
- r("div", Iu, [
6900
- (u(!0), C(le, null, pe(A.statuses, (g) => (u(), N(fu, {
6896
+ r("div", ku, [
6897
+ (u(!0), C(ae, null, pe(A.statuses, (g) => (u(), N(fu, {
6901
6898
  key: g.id,
6902
6899
  status: g,
6903
6900
  list: o.value[g.id],
6904
6901
  title: g.name,
6905
6902
  "footer-label": A.$t("feed.activity.add"),
6906
- onAdd: () => d(g),
6903
+ onAdd: () => c(g),
6907
6904
  onSelectActivity: O(i),
6908
6905
  onArchiveActivity: M,
6909
6906
  onUpdateActivity: V
@@ -6914,12 +6911,12 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6914
6911
  key: 0,
6915
6912
  activity: O(l),
6916
6913
  "activity-types": _.value,
6917
- "milestone-id": (me = O(l).milestone) == null ? void 0 : me.id,
6914
+ "milestone-id": (_e = O(l).milestone) == null ? void 0 : _e.id,
6918
6915
  "template-activities": a.value,
6919
6916
  users: A.users,
6920
6917
  onClose: W[5] || (W[5] = () => O(i)(null)),
6921
6918
  "onUpdate:activity": $,
6922
- onAddSubtask: ee,
6919
+ onAddSubtask: x,
6923
6920
  onUpdateSubtask: te,
6924
6921
  onDeleteSubtask: h,
6925
6922
  onAddFiles: H,
@@ -6932,7 +6929,7 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6932
6929
  title: O(l).name || O(l).id,
6933
6930
  level: 4,
6934
6931
  "is-editable": !0,
6935
- "onUpdate:title": k
6932
+ "onUpdate:title": I
6936
6933
  }, null, 8, ["title"]),
6937
6934
  r("label", Su, [
6938
6935
  r("span", Vu, j(A.$t("activity.status.label")), 1),
@@ -6953,7 +6950,7 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6953
6950
  type: "date"
6954
6951
  }, null, 512), [
6955
6952
  [
6956
- s1,
6953
+ l1,
6957
6954
  y.value,
6958
6955
  void 0,
6959
6956
  { lazy: !0 }
@@ -6963,7 +6960,7 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6963
6960
  ]),
6964
6961
  r("fieldset", Hu, [
6965
6962
  r("div", Ou, [
6966
- b(ne, { name: "ChatOutline" }),
6963
+ b(le, { name: "ChatOutline" }),
6967
6964
  b(ce, {
6968
6965
  level: 4,
6969
6966
  title: A.$t("activity.comments.title")
@@ -6975,7 +6972,7 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6975
6972
  "user-id": A.userId,
6976
6973
  onCreateComment: se,
6977
6974
  onUpdateComment: re,
6978
- onRemoveComment: _e
6975
+ onRemoveComment: Ce
6979
6976
  }, null, 8, ["comments", "users", "user-id"])
6980
6977
  ])
6981
6978
  ]),
@@ -7003,6 +7000,6 @@ export {
7003
7000
  m7 as ruleComparators,
7004
7001
  f7 as ruleDurationUnits,
7005
7002
  h7 as ruleTriggerTypes,
7006
- oe as templateItemType,
7007
- xe as templateRouteNames
7003
+ ie as templateItemType,
7004
+ t1 as templateRouteNames
7008
7005
  };