@26lights/orcha 0.7.23 → 0.7.24

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
@@ -1217,14 +1217,14 @@ const ce = /* @__PURE__ */ G({
1217
1217
  const t = s, l = Q(null), { isEditing: a, setIsEditing: i, onUpdate: n, onDiscard: o } = it(l), d = g(() => a.value ? "input" : t.tag || `h${t.level}`), c = g(() => t.isEditable ? a.value ? {
1218
1218
  change: C,
1219
1219
  click: (w) => w.stopPropagation(),
1220
- blur: f
1220
+ blur: h
1221
1221
  } : {
1222
1222
  click: T,
1223
1223
  focus: T
1224
1224
  } : {}), C = n((w, O) => {
1225
1225
  const b = O.target.value;
1226
1226
  e("update:title", b);
1227
- }), m = o(), f = async () => {
1227
+ }), m = o(), h = async () => {
1228
1228
  a.value && i(!1);
1229
1229
  }, M = () => {
1230
1230
  e("toggle-is-editing", !1);
@@ -1982,15 +1982,15 @@ function dt() {
1982
1982
  break;
1983
1983
  T = w, d = O;
1984
1984
  }
1985
- let f = a.middleInternal(n, o, d, c), M;
1986
- for (let T = f.getScale(); T > 0; T = M) {
1985
+ let h = a.middleInternal(n, o, d, c), M;
1986
+ for (let T = h.getScale(); T > 0; T = M) {
1987
1987
  M = T - 1;
1988
- const w = f.setScale(M);
1988
+ const w = h.setScale(M);
1989
1989
  if (n.compareTo(w) >= 0 || w.compareTo(o) >= 0)
1990
1990
  break;
1991
- f = w;
1991
+ h = w;
1992
1992
  }
1993
- return f;
1993
+ return h;
1994
1994
  }
1995
1995
  static parse(n) {
1996
1996
  const o = n.split("|"), d = e.default.from(o[0]), c = s.LexoDecimal.parse(o[1], a.NUMERAL_SYSTEM);
@@ -2014,9 +2014,9 @@ function dt() {
2014
2014
  const m = c.setScale(C, !1);
2015
2015
  if (m.compareTo(n) > 0)
2016
2016
  return m;
2017
- const f = c.setScale(C, !0);
2018
- if (f.compareTo(o) < 0)
2019
- return f;
2017
+ const h = c.setScale(C, !0);
2018
+ if (h.compareTo(o) < 0)
2019
+ return h;
2020
2020
  }
2021
2021
  return c;
2022
2022
  }
@@ -2589,11 +2589,11 @@ function ke(s) {
2589
2589
  return [null, void 0].indexOf(s) !== -1;
2590
2590
  }
2591
2591
  function E3(s, e, t) {
2592
- const { object: l, valueProp: a, mode: i } = ge(s), n = Oe().proxy, o = t.iv, d = (m, f = !0) => {
2592
+ const { object: l, valueProp: a, mode: i } = ge(s), n = Oe().proxy, o = t.iv, d = (m, h = !0) => {
2593
2593
  o.value = C(m);
2594
2594
  const M = c(m);
2595
- e.emit("change", M, n), f && (e.emit("input", M), e.emit("update:modelValue", M));
2596
- }, c = (m) => l.value || ke(m) ? m : Array.isArray(m) ? m.map((f) => f[a.value]) : m[a.value], C = (m) => ke(m) ? i.value === "single" ? {} : [] : m;
2595
+ e.emit("change", M, n), h && (e.emit("input", M), e.emit("update:modelValue", M));
2596
+ }, c = (m) => l.value || ke(m) ? m : Array.isArray(m) ? m.map((h) => h[a.value]) : m[a.value], C = (m) => ke(m) ? i.value === "single" ? {} : [] : m;
2597
2597
  return {
2598
2598
  update: d
2599
2599
  };
@@ -2619,7 +2619,7 @@ function O3(s, e, t) {
2619
2619
  let T = l.value;
2620
2620
  typeof T == "string" && (T = new RegExp(T)), M.key.match(T) || M.preventDefault();
2621
2621
  }
2622
- }, f = (M) => {
2622
+ }, h = (M) => {
2623
2623
  if (l && l.value) {
2624
2624
  let w = (M.clipboardData || /* istanbul ignore next */
2625
2625
  window.clipboardData).getData("Text"), O = l.value;
@@ -2635,7 +2635,7 @@ function O3(s, e, t) {
2635
2635
  clearSearch: c,
2636
2636
  handleSearchInput: C,
2637
2637
  handleKeypress: m,
2638
- handlePaste: f
2638
+ handlePaste: h
2639
2639
  };
2640
2640
  }
2641
2641
  function B3(s, e, t) {
@@ -2673,7 +2673,7 @@ function P3(s, e, t) {
2673
2673
  createOption: c,
2674
2674
  label: C,
2675
2675
  appendNewTag: m,
2676
- appendNewOption: f,
2676
+ appendNewOption: h,
2677
2677
  multipleLabel: M,
2678
2678
  object: T,
2679
2679
  loading: w,
@@ -2683,7 +2683,7 @@ function P3(s, e, t) {
2683
2683
  filterResults: B,
2684
2684
  clearOnSearch: x,
2685
2685
  clearOnSelect: se,
2686
- valueProp: h,
2686
+ valueProp: f,
2687
2687
  allowAbsent: E,
2688
2688
  groupLabel: j,
2689
2689
  canDeselect: ee,
@@ -2701,7 +2701,7 @@ function P3(s, e, t) {
2701
2701
  disabledProp: D,
2702
2702
  searchStart: te,
2703
2703
  searchFilter: ae
2704
- } = ge(s), J = Oe().proxy, R = t.iv, A = t.ev, Z = t.search, _e = t.clearSearch, $e = t.update, mt = t.pointer, De = t.clearPointer, ht = t.focus, ft = t.deactivate, Ze = t.close, gt = t.localize, Ke = Q([]), Le = Q([]), we = Q(!1), M1 = Q(null), k1 = Q(Ie.value && n.value === -1 ? 10 : n.value), F1 = g(() => d.value || c.value || !1), yt = g(() => m.value !== void 0 ? m.value : f.value !== void 0 ? f.value : !0), Te = g(() => {
2704
+ } = ge(s), J = Oe().proxy, R = t.iv, A = t.ev, Z = t.search, _e = t.clearSearch, $e = t.update, mt = t.pointer, De = t.clearPointer, ht = t.focus, ft = t.deactivate, Ze = t.close, gt = t.localize, Ke = Q([]), Le = Q([]), we = Q(!1), M1 = Q(null), k1 = Q(Ie.value && n.value === -1 ? 10 : n.value), F1 = g(() => d.value || c.value || !1), yt = g(() => m.value !== void 0 ? m.value : h.value !== void 0 ? h.value : !0), Te = g(() => {
2705
2705
  if (he.value) {
2706
2706
  let v = i1.value || /* istanbul ignore next */
2707
2707
  [], V = [];
@@ -2756,13 +2756,13 @@ function P3(s, e, t) {
2756
2756
  }), A1 = g(() => {
2757
2757
  switch (a.value) {
2758
2758
  case "single":
2759
- return !ke(R.value[h.value]);
2759
+ return !ke(R.value[f.value]);
2760
2760
  case "multiple":
2761
2761
  case "tags":
2762
2762
  return !ke(R.value) && R.value.length > 0;
2763
2763
  }
2764
2764
  }), $t = g(() => M !== void 0 && M.value !== void 0 ? M.value(R.value, J) : R.value && R.value.length > 1 ? `${R.value.length} options selected` : "1 option selected"), wt = g(() => !Te.value.length && !we.value && !Pe.value.length), Mt = g(() => Te.value.length > 0 && Ge.value.length == 0 && (Z.value && he.value || !he.value)), Pe = g(() => F1.value === !1 || !Z.value ? [] : Ht(Z.value) !== -1 ? [] : [{
2765
- [h.value]: Z.value,
2765
+ [f.value]: Z.value,
2766
2766
  [Me.value]: Z.value,
2767
2767
  [C.value]: Z.value,
2768
2768
  __CREATE__: !0
@@ -2792,11 +2792,11 @@ function P3(s, e, t) {
2792
2792
  break;
2793
2793
  case "tags":
2794
2794
  case "multiple":
2795
- $e(Array.isArray(v) ? R.value.filter((V) => v.map((X) => X[h.value]).indexOf(V[h.value]) === -1) : R.value.filter((V) => V[h.value] != v[h.value]));
2795
+ $e(Array.isArray(v) ? R.value.filter((V) => v.map((X) => X[f.value]).indexOf(V[f.value]) === -1) : R.value.filter((V) => V[f.value] != v[f.value]));
2796
2796
  break;
2797
2797
  }
2798
2798
  e.emit("deselect", G1(v), v, J);
2799
- }, G1 = (v) => T.value ? v : v[h.value], Y1 = (v) => {
2799
+ }, G1 = (v) => T.value ? v : v[f.value], Y1 = (v) => {
2800
2800
  je(v);
2801
2801
  }, It = (v, V) => {
2802
2802
  if (V.button !== 0) {
@@ -2811,10 +2811,10 @@ function P3(s, e, t) {
2811
2811
  return a.value === "single" ? !1 : Et(v[p.value]) && v[p.value].length;
2812
2812
  switch (a.value) {
2813
2813
  case "single":
2814
- return !ke(R.value) && R.value[h.value] == v[h.value];
2814
+ return !ke(R.value) && R.value[f.value] == v[f.value];
2815
2815
  case "tags":
2816
2816
  case "multiple":
2817
- return !ke(R.value) && R.value.map((V) => V[h.value]).indexOf(v[h.value]) !== -1;
2817
+ return !ke(R.value) && R.value.map((V) => V[f.value]).indexOf(v[f.value]) !== -1;
2818
2818
  }
2819
2819
  }, I1 = (v) => v[D.value] === !0, S1 = () => oe === void 0 || oe.value === -1 || !A1.value && oe.value > 0 ? !1 : R.value.length >= oe.value, St = (v) => {
2820
2820
  if (!I1(v)) {
@@ -2865,17 +2865,17 @@ function P3(s, e, t) {
2865
2865
  case "multiple":
2866
2866
  case "tags":
2867
2867
  Tt(v[p.value]) ? je(v[p.value]) : Ne(
2868
- v[p.value].filter((V) => R.value.map((X) => X[h.value]).indexOf(V[h.value]) === -1).filter((V) => !V[D.value]).filter((V, X) => R.value.length + 1 + X <= oe.value || oe.value === -1)
2868
+ v[p.value].filter((V) => R.value.map((X) => X[f.value]).indexOf(V[f.value]) === -1).filter((V) => !V[D.value]).filter((V, X) => R.value.length + 1 + X <= oe.value || oe.value === -1)
2869
2869
  );
2870
2870
  break;
2871
2871
  }
2872
2872
  N.value && ft();
2873
2873
  }
2874
2874
  }, V1 = (v) => {
2875
- Ve(v[h.value]) === void 0 && F1.value && (e.emit("tag", v[h.value], J), e.emit("option", v[h.value], J), e.emit("create", v[h.value], J), yt.value && Bt(v), _e());
2875
+ Ve(v[f.value]) === void 0 && F1.value && (e.emit("tag", v[f.value], J), e.emit("option", v[f.value], J), e.emit("create", v[f.value], J), yt.value && Bt(v), _e());
2876
2876
  }, Lt = () => {
2877
2877
  a.value !== "single" && Ne(Ge.value.filter((v) => !v.disabled && !Se(v)));
2878
- }, Tt = (v) => v.find((V) => !Se(V) && !V[D.value]) === void 0, Et = (v) => v.find((V) => !Se(V)) === void 0, Ve = (v) => Te.value[Te.value.map((V) => String(V[h.value])).indexOf(String(v))], Ht = (v, V = !0) => Te.value.map((X) => parseInt(X[Me.value]) == X[Me.value] ? parseInt(X[Me.value]) : X[Me.value]).indexOf(
2878
+ }, Tt = (v) => v.find((V) => !Se(V) && !V[D.value]) === void 0, Et = (v) => v.find((V) => !Se(V)) === void 0, Ve = (v) => Te.value[Te.value.map((V) => String(V[f.value])).indexOf(String(v))], Ht = (v, V = !0) => Te.value.map((X) => parseInt(X[Me.value]) == X[Me.value] ? parseInt(X[Me.value]) : X[Me.value]).indexOf(
2879
2879
  parseInt(v) == v ? parseInt(v) : v
2880
2880
  ), Ot = (v) => ["tags", "multiple"].indexOf(a.value) !== -1 && o.value && Se(v), Bt = (v) => {
2881
2881
  Ke.value.push(v);
@@ -2895,8 +2895,8 @@ function P3(s, e, t) {
2895
2895
  let V = v;
2896
2896
  return D3(V) && (V = Object.keys(V).map((X) => {
2897
2897
  let ie = V[X];
2898
- return { [h.value]: X, [Me.value]: ie, [C.value]: ie };
2899
- })), V = V.map((X) => typeof X == "object" ? X : { [h.value]: X, [Me.value]: X, [C.value]: X }), V;
2898
+ return { [f.value]: X, [Me.value]: ie, [C.value]: ie };
2899
+ })), V = V.map((X) => typeof X == "object" ? X : { [f.value]: X, [Me.value]: X, [C.value]: X }), V;
2900
2900
  }, o1 = () => {
2901
2901
  ke(A.value) || (R.value = u1(A.value));
2902
2902
  }, r1 = (v) => (we.value = !0, new Promise((V, X) => {
@@ -2910,14 +2910,14 @@ function P3(s, e, t) {
2910
2910
  })), E1 = () => {
2911
2911
  if (A1.value)
2912
2912
  if (a.value === "single") {
2913
- let v = Ve(R.value[h.value]);
2913
+ let v = Ve(R.value[f.value]);
2914
2914
  if (v !== void 0) {
2915
2915
  let V = v[C.value];
2916
2916
  R.value[C.value] = V, T.value && (A.value[C.value] = V);
2917
2917
  }
2918
2918
  } else
2919
2919
  R.value.forEach((v, V) => {
2920
- let X = Ve(R.value[V][h.value]);
2920
+ let X = Ve(R.value[V][f.value]);
2921
2921
  if (X !== void 0) {
2922
2922
  let ie = X[C.value];
2923
2923
  R.value[V][C.value] = ie, T.value && (A.value[V][C.value] = ie);
@@ -2927,11 +2927,11 @@ function P3(s, e, t) {
2927
2927
  r1(v);
2928
2928
  }, u1 = (v) => ke(v) ? a.value === "single" ? {} : [] : T.value ? v : a.value === "single" ? Ve(v) || (E.value ? {
2929
2929
  [C.value]: v,
2930
- [h.value]: v,
2930
+ [f.value]: v,
2931
2931
  [Me.value]: v
2932
2932
  } : {}) : v.filter((V) => !!Ve(V) || E.value).map((V) => Ve(V) || {
2933
2933
  [C.value]: V,
2934
- [h.value]: V,
2934
+ [f.value]: V,
2935
2935
  [Me.value]: V
2936
2936
  }), x1 = () => {
2937
2937
  M1.value = pe(Z, (v) => {
@@ -2958,11 +2958,11 @@ function P3(s, e, t) {
2958
2958
  }
2959
2959
  switch (a.value) {
2960
2960
  case "single":
2961
- (T.value ? v[h.value] != R.value[h.value] : v != R.value[h.value]) && $e(u1(v), !1);
2961
+ (T.value ? v[f.value] != R.value[f.value] : v != R.value[f.value]) && $e(u1(v), !1);
2962
2962
  break;
2963
2963
  case "multiple":
2964
2964
  case "tags":
2965
- Z3(T.value ? v.map((V) => V[h.value]) : v, R.value.map((V) => V[h.value])) || $e(u1(v), !1);
2965
+ Z3(T.value ? v.map((V) => V[f.value]) : v, R.value.map((V) => V[f.value])) || $e(u1(v), !1);
2966
2966
  break;
2967
2967
  }
2968
2968
  }, { deep: !0 }), pe(l, (v, V) => {
@@ -3012,7 +3012,7 @@ function N3(s, e, t) {
3012
3012
  groupSelect: c,
3013
3013
  disabledProp: C,
3014
3014
  groupOptions: m
3015
- } = ge(s), f = t.fo, M = t.fg, T = t.handleOptionClick, w = t.handleGroupClick, O = t.search, L = t.pointer, b = t.setPointer, B = t.clearPointer, x = t.multiselect, se = t.isOpen, h = g(() => f.value.filter((A) => !A[C.value])), E = g(() => M.value.filter((A) => !A[C.value])), j = g(() => d.value !== "single" && c.value), ee = g(() => L.value && L.value.group), oe = g(() => J(L.value)), me = g(() => {
3015
+ } = ge(s), h = t.fo, M = t.fg, T = t.handleOptionClick, w = t.handleGroupClick, O = t.search, L = t.pointer, b = t.setPointer, B = t.clearPointer, x = t.multiselect, se = t.isOpen, f = g(() => h.value.filter((A) => !A[C.value])), E = g(() => M.value.filter((A) => !A[C.value])), j = g(() => d.value !== "single" && c.value), ee = g(() => L.value && L.value.group), oe = g(() => J(L.value)), me = g(() => {
3016
3016
  const A = ee.value ? L.value : (
3017
3017
  /* istanbul ignore next */
3018
3018
  J(L.value)
@@ -3029,34 +3029,34 @@ function N3(s, e, t) {
3029
3029
  const A = J(L.value).__VISIBLE__.filter((Z) => !Z[C.value]);
3030
3030
  return A[A.map((Z) => Z[l.value]).indexOf(L.value[l.value]) + 1];
3031
3031
  }), p = g(() => [...me.value.__VISIBLE__.filter((A) => !A[C.value])].slice(-1)[0]), $ = g(() => [...W.value.__VISIBLE__.filter((A) => !A[C.value])].slice(-1)[0]), k = (A) => L.value && (!A.group && L.value[l.value] === A[l.value] || A.group !== void 0 && L.value[n.value] === A[n.value]) ? !0 : void 0, S = () => {
3032
- b(h.value[0] || null);
3032
+ b(f.value[0] || null);
3033
3033
  }, D = () => {
3034
3034
  !L.value || L.value[C.value] === !0 || (ee.value ? w(L.value) : T(L.value));
3035
3035
  }, te = () => {
3036
3036
  if (L.value === null)
3037
- b((o.value && j.value ? E.value[0].__CREATE__ ? h.value[0] : E.value[0] : h.value[0]) || null);
3037
+ b((o.value && j.value ? E.value[0].__CREATE__ ? f.value[0] : E.value[0] : f.value[0]) || null);
3038
3038
  else if (o.value && j.value) {
3039
3039
  let A = ee.value ? he.value : Ie.value;
3040
3040
  A === void 0 && (A = N.value, A.__CREATE__ && (A = A[m.value][0])), b(A || /* istanbul ignore next */
3041
3041
  null);
3042
3042
  } else {
3043
- let A = h.value.map((Z) => Z[l.value]).indexOf(L.value[l.value]) + 1;
3044
- h.value.length <= A && (A = 0), b(h.value[A] || null);
3043
+ let A = f.value.map((Z) => Z[l.value]).indexOf(L.value[l.value]) + 1;
3044
+ f.value.length <= A && (A = 0), b(f.value[A] || null);
3045
3045
  }
3046
3046
  He(() => {
3047
3047
  R();
3048
3048
  });
3049
3049
  }, ae = () => {
3050
3050
  if (L.value === null) {
3051
- let A = h.value[h.value.length - 1];
3051
+ let A = f.value[f.value.length - 1];
3052
3052
  o.value && j.value && (A = $.value, A === void 0 && (A = W.value)), b(A || null);
3053
3053
  } else if (o.value && j.value) {
3054
3054
  let A = ee.value ? p.value : fe.value;
3055
3055
  A === void 0 && (A = ee.value ? me.value : oe.value, A.__CREATE__ && (A = p.value, A === void 0 && (A = me.value))), b(A || /* istanbul ignore next */
3056
3056
  null);
3057
3057
  } else {
3058
- let A = h.value.map((Z) => Z[l.value]).indexOf(L.value[l.value]) - 1;
3059
- A < 0 && (A = h.value.length - 1), b(h.value[A] || null);
3058
+ let A = f.value.map((Z) => Z[l.value]).indexOf(L.value[l.value]) - 1;
3059
+ A < 0 && (A = f.value.length - 1), b(f.value[A] || null);
3060
3060
  }
3061
3061
  He(() => {
3062
3062
  R();
@@ -3103,8 +3103,8 @@ function j3(s, e, t) {
3103
3103
  };
3104
3104
  }
3105
3105
  function R3(s, e, t) {
3106
- const { searchable: l, disabled: a, clearOnBlur: i } = ge(s), n = t.input, o = t.open, d = t.close, c = t.clearSearch, C = t.isOpen, m = Q(null), f = Q(null), M = Q(null), T = Q(!1), w = Q(!1), O = g(() => l.value || a.value ? -1 : 0), L = () => {
3107
- l.value && n.value.blur(), f.value.blur();
3106
+ const { searchable: l, disabled: a, clearOnBlur: i } = ge(s), n = t.input, o = t.open, d = t.close, c = t.clearSearch, C = t.isOpen, m = Q(null), h = Q(null), M = Q(null), T = Q(!1), w = Q(!1), O = g(() => l.value || a.value ? -1 : 0), L = () => {
3107
+ l.value && n.value.blur(), h.value.blur();
3108
3108
  }, b = () => {
3109
3109
  l.value && !a.value && n.value.focus();
3110
3110
  }, B = (ee = !0) => {
@@ -3116,7 +3116,7 @@ function R3(s, e, t) {
3116
3116
  };
3117
3117
  return {
3118
3118
  multiselect: m,
3119
- wrapper: f,
3119
+ wrapper: h,
3120
3120
  tags: M,
3121
3121
  tabindex: O,
3122
3122
  isActive: T,
@@ -3135,9 +3135,9 @@ function R3(s, e, t) {
3135
3135
  x(), L();
3136
3136
  },
3137
3137
  handleMousedown: (ee) => {
3138
- w.value = !0, C.value && (ee.target.isEqualNode(f.value) || ee.target.isEqualNode(M.value)) ? setTimeout(() => {
3138
+ w.value = !0, C.value && (ee.target.isEqualNode(h.value) || ee.target.isEqualNode(M.value)) ? setTimeout(() => {
3139
3139
  x();
3140
- }, 0) : document.activeElement.isEqualNode(f.value) && !C.value && B(), setTimeout(() => {
3140
+ }, 0) : document.activeElement.isEqualNode(h.value) && !C.value && B(), setTimeout(() => {
3141
3141
  w.value = !1;
3142
3142
  }, 0);
3143
3143
  }
@@ -3154,9 +3154,9 @@ function U3(s, e, t) {
3154
3154
  groups: c,
3155
3155
  addOptionOn: C,
3156
3156
  createTag: m,
3157
- createOption: f,
3157
+ createOption: h,
3158
3158
  reverse: M
3159
- } = ge(s), T = Oe().proxy, w = t.iv, O = t.update, L = t.search, b = t.setPointer, B = t.selectPointer, x = t.backwardPointer, se = t.forwardPointer, h = t.multiselect, E = t.wrapper, j = t.tags, ee = t.isOpen, oe = t.open, me = t.blur, N = t.fo, W = g(() => m.value || f.value || !1), he = g(() => a.value !== void 0 ? a.value : C.value !== void 0 ? C.value : ["enter"]), fe = () => {
3159
+ } = ge(s), T = Oe().proxy, w = t.iv, O = t.update, L = t.search, b = t.setPointer, B = t.selectPointer, x = t.backwardPointer, se = t.forwardPointer, f = t.multiselect, E = t.wrapper, j = t.tags, ee = t.isOpen, oe = t.open, me = t.blur, N = t.fo, W = g(() => m.value || h.value || !1), he = g(() => a.value !== void 0 ? a.value : C.value !== void 0 ? C.value : ["enter"]), fe = () => {
3160
3160
  l.value === "tags" && !o.value && W.value && n.value && !c.value && b(N.value[N.value.map((k) => k[d.value]).indexOf(L.value)]);
3161
3161
  }, Ie = (k) => {
3162
3162
  let S = k.length - 1;
@@ -3168,7 +3168,7 @@ function U3(s, e, t) {
3168
3168
  handleKeydown: (k) => {
3169
3169
  e.emit("keydown", k, T);
3170
3170
  let S, D;
3171
- switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(k.key) !== -1 && l.value === "tags" && (S = [...h.value.querySelectorAll("[data-tags] > *")].filter((te) => te !== j.value), D = S.findIndex((te) => te === document.activeElement)), k.key) {
3171
+ switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(k.key) !== -1 && l.value === "tags" && (S = [...f.value.querySelectorAll("[data-tags] > *")].filter((te) => te !== j.value), D = S.findIndex((te) => te === document.activeElement)), k.key) {
3172
3172
  case "Backspace":
3173
3173
  if (l.value === "single" || n.value && [null, ""].indexOf(L.value) === -1 || w.value.length === 0)
3174
3174
  return;
@@ -3240,7 +3240,7 @@ function q3(s, e, t) {
3240
3240
  disabled: a,
3241
3241
  openDirection: i,
3242
3242
  showOptions: n
3243
- } = ge(s), o = t.isOpen, d = t.isPointed, c = t.isSelected, C = t.isDisabled, m = t.isActive, f = t.canPointGroups, M = t.resolving, T = t.fo, w = g(() => ({
3243
+ } = ge(s), o = t.isOpen, d = t.isPointed, c = t.isSelected, C = t.isDisabled, m = t.isActive, h = t.canPointGroups, M = t.resolving, T = t.fo, w = g(() => ({
3244
3244
  container: "multiselect",
3245
3245
  containerDisabled: "is-disabled",
3246
3246
  containerOpen: "is-open",
@@ -3325,7 +3325,7 @@ function q3(s, e, t) {
3325
3325
  group: b.group,
3326
3326
  groupLabel: (B) => {
3327
3327
  let x = [b.groupLabel];
3328
- return d(B) ? x.push(c(B) ? b.groupLabelSelectedPointed : b.groupLabelPointed) : c(B) && f.value ? x.push(C(B) ? b.groupLabelSelectedDisabled : b.groupLabelSelected) : C(B) && x.push(b.groupLabelDisabled), f.value && x.push(b.groupLabelPointable), x;
3328
+ return d(B) ? x.push(c(B) ? b.groupLabelSelectedPointed : b.groupLabelPointed) : c(B) && h.value ? x.push(C(B) ? b.groupLabelSelectedDisabled : b.groupLabelSelected) : C(B) && x.push(b.groupLabelDisabled), h.value && x.push(b.groupLabelPointable), x;
3329
3329
  },
3330
3330
  groupOptions: b.groupOptions,
3331
3331
  option: (B, x) => {
@@ -3345,7 +3345,7 @@ function F3(s, e, t) {
3345
3345
  const {
3346
3346
  limit: l,
3347
3347
  infinite: a
3348
- } = ge(s), i = t.isOpen, n = t.offset, o = t.search, d = t.pfo, c = t.eo, C = Q(null), m = Q(null), f = g(() => n.value < d.value.length), M = (w) => {
3348
+ } = ge(s), i = t.isOpen, n = t.offset, o = t.search, d = t.pfo, c = t.eo, C = Q(null), m = Q(null), h = g(() => n.value < d.value.length), M = (w) => {
3349
3349
  const { isIntersecting: O, target: L } = w[0];
3350
3350
  if (O) {
3351
3351
  const b = L.offsetParent, B = b.scrollTop;
@@ -3365,7 +3365,7 @@ function F3(s, e, t) {
3365
3365
  }, { immediate: !1, flush: "post" }), C1(() => {
3366
3366
  window && window.IntersectionObserver && (C.value = new IntersectionObserver(M));
3367
3367
  }), {
3368
- hasMore: f,
3368
+ hasMore: h,
3369
3369
  infiniteLoader: m
3370
3370
  };
3371
3371
  }
@@ -3379,7 +3379,7 @@ function z3(s, e, t) {
3379
3379
  groupLabel: d,
3380
3380
  aria: c,
3381
3381
  searchable: C
3382
- } = ge(s), m = t.pointer, f = t.iv, M = t.hasSelected, T = t.multipleLabelText, w = Q(null), O = g(() => {
3382
+ } = ge(s), m = t.pointer, h = t.iv, M = t.hasSelected, T = t.multipleLabelText, w = Q(null), O = g(() => {
3383
3383
  let N = [];
3384
3384
  return a && a.value && N.push(a.value), N.push("assist"), N.join("-");
3385
3385
  }), L = g(() => {
@@ -3391,8 +3391,8 @@ function z3(s, e, t) {
3391
3391
  return N.push(m.value.group ? "multiselect-group" : "multiselect-option"), N.push(m.value.group ? m.value.index : m.value[i.value]), N.join("-");
3392
3392
  }), B = g(() => l.value), x = g(() => o.value !== "single"), se = g(() => {
3393
3393
  let N = "";
3394
- return o.value === "single" && M.value && (N += f.value[n.value]), o.value === "multiple" && M.value && (N += T.value), o.value === "tags" && M.value && (N += f.value.map((W) => W[n.value]).join(", ")), N;
3395
- }), h = g(() => {
3394
+ return o.value === "single" && M.value && (N += h.value[n.value]), o.value === "multiple" && M.value && (N += T.value), o.value === "tags" && M.value && (N += h.value.map((W) => W[n.value]).join(", ")), N;
3395
+ }), f = g(() => {
3396
3396
  let N = { ...c.value };
3397
3397
  return C.value && (N["aria-labelledby"] = N["aria-labelledby"] ? `${O.value} ${N["aria-labelledby"]}` : O.value, se.value && N["aria-label"] && (N["aria-label"] = `${se.value}, ${N["aria-label"]}`)), N;
3398
3398
  }), E = (N) => {
@@ -3414,7 +3414,7 @@ function z3(s, e, t) {
3414
3414
  w.value = N ? N.innerText : null;
3415
3415
  }
3416
3416
  }), {
3417
- arias: h,
3417
+ arias: f,
3418
3418
  ariaLabel: se,
3419
3419
  ariaAssist: O,
3420
3420
  ariaControls: L,
@@ -4108,8 +4108,8 @@ function C5(s, e, t, l, a, i) {
4108
4108
  "data-pointed": s.isPointed(c),
4109
4109
  "data-selected": s.isSelected(c) || void 0,
4110
4110
  key: m,
4111
- onMouseenter: (f) => s.setPointer(c),
4112
- onClick: (f) => s.handleOptionClick(c),
4111
+ onMouseenter: (h) => s.setPointer(c),
4112
+ onClick: (h) => s.handleOptionClick(c),
4113
4113
  id: s.ariaOptionId(c),
4114
4114
  "aria-selected": s.isSelected(c),
4115
4115
  "aria-label": s.ariaOptionLabel(s.localize(c[t.label])),
@@ -4344,17 +4344,17 @@ const $5 = { class: "ao-subtasks" }, w5 = { class: "ao-subtasks__list" }, M5 = [
4344
4344
  emits: ["add", "delete", "update"],
4345
4345
  setup(s, { emit: e }) {
4346
4346
  const t = s, { t: l } = w1(), a = () => {
4347
- const c = t.subtasks.length, C = t.subtasks.at(-1), m = C ? de.LexoRank.parse(C.rank).genNext() : de.LexoRank.middle(), f = {
4347
+ const c = t.subtasks.length, C = t.subtasks.at(-1), m = C ? de.LexoRank.parse(C.rank).genNext() : de.LexoRank.middle(), h = {
4348
4348
  name: l("template.defaultName.subtask", { idx: c + 1 }),
4349
4349
  rank: m.format(),
4350
4350
  activityId: t.activityId
4351
4351
  };
4352
- e("add", f);
4352
+ e("add", h);
4353
4353
  }, i = (c, C) => {
4354
- const f = c.target.value;
4354
+ const h = c.target.value;
4355
4355
  e("update", {
4356
4356
  id: C,
4357
- name: f
4357
+ name: h
4358
4358
  });
4359
4359
  }, n = (c, C) => {
4360
4360
  e("update", {
@@ -4386,7 +4386,7 @@ const $5 = { class: "ao-subtasks" }, w5 = { class: "ao-subtasks__list" }, M5 = [
4386
4386
  value: m.name,
4387
4387
  class: "ao-field__input ao-subtask__field",
4388
4388
  type: "text",
4389
- onChange: (f) => i(f, m.id)
4389
+ onChange: (h) => i(h, m.id)
4390
4390
  }, null, 40, M5),
4391
4391
  y(P(Ce), {
4392
4392
  mode: "tags",
@@ -4396,13 +4396,13 @@ const $5 = { class: "ao-subtasks" }, w5 = { class: "ao-subtasks__list" }, M5 = [
4396
4396
  searchable: !0,
4397
4397
  class: "ao-subtask__assignees",
4398
4398
  placeholder: c.$t("feed.filters.assignee.placeholder"),
4399
- onChange: (f) => d(f, m.id)
4399
+ onChange: (h) => d(h, m.id)
4400
4400
  }, {
4401
- tag: F(({ option: f, handleTagRemove: M }) => [
4401
+ tag: F(({ option: h, handleTagRemove: M }) => [
4402
4402
  y(ze, {
4403
- "user-name": f.label,
4403
+ "user-name": h.label,
4404
4404
  "is-closable": !0,
4405
- onClose: (T) => M(f, T)
4405
+ onClose: (T) => M(h, T)
4406
4406
  }, null, 8, ["user-name", "onClose"])
4407
4407
  ]),
4408
4408
  _: 2
@@ -4489,13 +4489,13 @@ const I5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], S5 = {
4489
4489
  onDragleave: Ae(o, ["prevent"])
4490
4490
  }, [
4491
4491
  (m = c.attachments) != null && m.length && c.attachments.length > 0 ? (u(), _("ul", S5, [
4492
- (u(!0), _(ne, null, ve(c.attachments, (f) => (u(), _("li", {
4493
- key: f.id,
4492
+ (u(!0), _(ne, null, ve(c.attachments, (h) => (u(), _("li", {
4493
+ key: h.id,
4494
4494
  class: "ao-file"
4495
4495
  }, [
4496
4496
  r("a", {
4497
4497
  class: "ao-file__link",
4498
- href: f.url,
4498
+ href: h.url,
4499
4499
  target: "_blank",
4500
4500
  rel: "noopener noreferrer"
4501
4501
  }, [
@@ -4504,7 +4504,7 @@ const I5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], S5 = {
4504
4504
  name: "AttachFileRounded",
4505
4505
  size: "sm"
4506
4506
  }),
4507
- r("span", L5, U(f.name), 1)
4507
+ r("span", L5, U(h.name), 1)
4508
4508
  ], 8, V5),
4509
4509
  y(ue, {
4510
4510
  class: "ao-files__delete-button",
@@ -4513,7 +4513,7 @@ const I5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], S5 = {
4513
4513
  color: "primary",
4514
4514
  size: "md",
4515
4515
  corners: "round",
4516
- onClick: () => t(f)
4516
+ onClick: () => t(h)
4517
4517
  }, null, 8, ["onClick"])
4518
4518
  ]))), 128))
4519
4519
  ])) : (u(), _("div", T5, [
@@ -4551,74 +4551,74 @@ const D5 = {
4551
4551
  },
4552
4552
  emits: ["update:activity", "close", "addSubtask", "updateSubtask", "addFiles", "removeFile"],
4553
4553
  setup(s, { emit: e }) {
4554
- const t = s, l = (h) => {
4554
+ const t = s, l = (f) => {
4555
4555
  e("update:activity", {
4556
4556
  id: t.activity.id,
4557
- name: h
4557
+ name: f
4558
4558
  });
4559
4559
  }, a = g({
4560
4560
  get() {
4561
4561
  return t.activity.description ?? "";
4562
4562
  },
4563
- set(h) {
4564
- e("update:activity", { id: t.activity.id, description: h });
4563
+ set(f) {
4564
+ e("update:activity", { id: t.activity.id, description: f });
4565
4565
  }
4566
4566
  }), i = g({
4567
4567
  get() {
4568
4568
  return t.activity.estimation ?? 0;
4569
4569
  },
4570
- set(h) {
4571
- e("update:activity", { id: t.activity.id, estimation: h });
4570
+ set(f) {
4571
+ e("update:activity", { id: t.activity.id, estimation: f });
4572
4572
  }
4573
4573
  }), n = g({
4574
4574
  get() {
4575
4575
  return t.activity.important ?? !1;
4576
4576
  },
4577
- set(h) {
4578
- e("update:activity", { id: t.activity.id, important: h });
4577
+ set(f) {
4578
+ e("update:activity", { id: t.activity.id, important: f });
4579
4579
  }
4580
4580
  }), o = g({
4581
4581
  get() {
4582
- var h;
4583
- return (h = t.activity.type) == null ? void 0 : h.id;
4582
+ var f;
4583
+ return (f = t.activity.type) == null ? void 0 : f.id;
4584
4584
  },
4585
- set(h) {
4586
- e("update:activity", { id: t.activity.id, typeId: h });
4585
+ set(f) {
4586
+ e("update:activity", { id: t.activity.id, typeId: f });
4587
4587
  }
4588
- }), d = g(() => t.templateActivities.filter((h) => h.id !== t.activity.id).map((h) => ({
4589
- label: h.name,
4590
- value: h.id
4588
+ }), d = g(() => t.templateActivities.filter((f) => f.id !== t.activity.id).map((f) => ({
4589
+ label: f.name,
4590
+ value: f.id
4591
4591
  }))), c = g({
4592
4592
  get() {
4593
4593
  return t.activity.dependingOn;
4594
4594
  },
4595
- set(h) {
4596
- h && e("update:activity", {
4595
+ set(f) {
4596
+ f && e("update:activity", {
4597
4597
  id: t.activity.id,
4598
- dependingOn: h
4598
+ dependingOn: f
4599
4599
  });
4600
4600
  }
4601
- }), C = g(() => d.value.map((h) => {
4601
+ }), C = g(() => d.value.map((f) => {
4602
4602
  var E;
4603
4603
  return {
4604
- ...h,
4605
- disabled: (E = t.activity.blocking) == null ? void 0 : E.some((j) => j === h.value)
4604
+ ...f,
4605
+ disabled: (E = t.activity.blocking) == null ? void 0 : E.some((j) => j === f.value)
4606
4606
  };
4607
4607
  })), m = g({
4608
4608
  get() {
4609
4609
  return t.activity.blocking;
4610
4610
  },
4611
- set(h) {
4612
- h && e("update:activity", {
4611
+ set(f) {
4612
+ f && e("update:activity", {
4613
4613
  id: t.activity.id,
4614
- blocking: h
4614
+ blocking: f
4615
4615
  });
4616
4616
  }
4617
- }), f = g(() => d.value.map((h) => {
4617
+ }), h = g(() => d.value.map((f) => {
4618
4618
  var E;
4619
4619
  return {
4620
- ...h,
4621
- disabled: (E = t.activity.dependingOn) == null ? void 0 : E.some((j) => j === h.value)
4620
+ ...f,
4621
+ disabled: (E = t.activity.dependingOn) == null ? void 0 : E.some((j) => j === f.value)
4622
4622
  };
4623
4623
  })), M = g(() => (t.templateMilestones || []).filter((E) => E.id !== t.milestoneId).map((E) => ({
4624
4624
  label: E.name,
@@ -4627,59 +4627,59 @@ const D5 = {
4627
4627
  get() {
4628
4628
  return t.activity.dependingMilestones;
4629
4629
  },
4630
- set(h) {
4630
+ set(f) {
4631
4631
  e("update:activity", {
4632
4632
  id: t.activity.id,
4633
- dependingMilestones: h
4633
+ dependingMilestones: f
4634
4634
  });
4635
4635
  }
4636
- }), w = (h) => {
4637
- e("addSubtask", h);
4638
- }, O = (h) => {
4639
- const E = [...t.activity.tasks || []], j = E.findIndex((ee) => ee.id === h.id);
4636
+ }), w = (f) => {
4637
+ e("addSubtask", f);
4638
+ }, O = (f) => {
4639
+ const E = [...t.activity.tasks || []], j = E.findIndex((ee) => ee.id === f.id);
4640
4640
  E[j] = {
4641
4641
  ...E[j],
4642
- ...h
4642
+ ...f
4643
4643
  }, e("update:activity", { id: t.activity.id, tasks: E });
4644
- }, L = (h) => {
4645
- const E = [...t.activity.tasks || []].filter((j) => j.id !== h);
4644
+ }, L = (f) => {
4645
+ const E = [...t.activity.tasks || []].filter((j) => j.id !== f);
4646
4646
  e("update:activity", { id: t.activity.id, tasks: E });
4647
4647
  }, b = g(() => {
4648
- var h;
4649
- return ((h = t.users) == null ? void 0 : h.map((E) => ({
4648
+ var f;
4649
+ return ((f = t.users) == null ? void 0 : f.map((E) => ({
4650
4650
  label: `${E.firstName} ${E.lastName}`,
4651
4651
  value: E.id
4652
4652
  }))) || [];
4653
4653
  }), B = g({
4654
4654
  get() {
4655
- var h;
4656
- return (h = t.activity.assignee) == null ? void 0 : h.id;
4655
+ var f;
4656
+ return (f = t.activity.assignee) == null ? void 0 : f.id;
4657
4657
  },
4658
- set(h) {
4658
+ set(f) {
4659
4659
  e("update:activity", {
4660
4660
  id: t.activity.id,
4661
- assigneeId: h
4661
+ assigneeId: f
4662
4662
  });
4663
4663
  }
4664
- }), x = (h) => {
4664
+ }), x = (f) => {
4665
4665
  e("addFiles", {
4666
4666
  activityId: t.activity.id,
4667
- files: h
4667
+ files: f
4668
4668
  });
4669
- }, se = (h) => {
4669
+ }, se = (f) => {
4670
4670
  e("removeFile", {
4671
4671
  activityId: t.activity.id,
4672
- file: h
4672
+ file: f
4673
4673
  });
4674
4674
  };
4675
- return (h, E) => (u(), q(vt, {
4676
- onClose: E[8] || (E[8] = (j) => h.$emit("close"))
4675
+ return (f, E) => (u(), q(vt, {
4676
+ onClose: E[8] || (E[8] = (j) => f.$emit("close"))
4677
4677
  }, {
4678
4678
  header: F(() => [
4679
- Y(h.$slots, "header", {}, () => [
4680
- h.breadcrumbs ? (u(), _("div", D5, U(h.breadcrumbs), 1)) : I("", !0),
4679
+ Y(f.$slots, "header", {}, () => [
4680
+ f.breadcrumbs ? (u(), _("div", D5, U(f.breadcrumbs), 1)) : I("", !0),
4681
4681
  y(ce, {
4682
- title: h.activity.name || h.activity.id,
4682
+ title: f.activity.name || f.activity.id,
4683
4683
  level: 4,
4684
4684
  "is-editable": !0,
4685
4685
  "onUpdate:title": l
@@ -4691,7 +4691,7 @@ const D5 = {
4691
4691
  r("fieldset", P5, [
4692
4692
  r("div", N5, [
4693
4693
  r("label", j5, [
4694
- r("span", R5, U(h.$t("activity.description.label")), 1),
4694
+ r("span", R5, U(f.$t("activity.description.label")), 1),
4695
4695
  Re(r("textarea", {
4696
4696
  "onUpdate:modelValue": E[0] || (E[0] = (j) => a.value = j),
4697
4697
  rows: "4",
@@ -4711,7 +4711,7 @@ const D5 = {
4711
4711
  ]),
4712
4712
  r("div", U5, [
4713
4713
  r("label", q5, [
4714
- r("span", F5, U(h.$t("activity.estimation.label")), 1),
4714
+ r("span", F5, U(f.$t("activity.estimation.label")), 1),
4715
4715
  Re(r("input", {
4716
4716
  "onUpdate:modelValue": E[1] || (E[1] = (j) => i.value = j),
4717
4717
  class: "ao-field__input",
@@ -4730,7 +4730,7 @@ const D5 = {
4730
4730
  ])
4731
4731
  ]),
4732
4732
  r("label", z5, [
4733
- r("span", K5, U(h.$t("activity.isImportant.label")), 1),
4733
+ r("span", K5, U(f.$t("activity.isImportant.label")), 1),
4734
4734
  Re(r("input", {
4735
4735
  "onUpdate:modelValue": E[2] || (E[2] = (j) => n.value = j),
4736
4736
  class: "ao-field__input",
@@ -4747,7 +4747,7 @@ const D5 = {
4747
4747
  ]),
4748
4748
  r("div", G5, [
4749
4749
  r("div", Y5, [
4750
- r("span", W5, U(h.$t("activity.assignee.label")), 1),
4750
+ r("span", W5, U(f.$t("activity.assignee.label")), 1),
4751
4751
  y(P(Ce), {
4752
4752
  modelValue: B.value,
4753
4753
  "onUpdate:modelValue": E[3] || (E[3] = (j) => B.value = j),
@@ -4755,7 +4755,7 @@ const D5 = {
4755
4755
  "close-on-select": !1,
4756
4756
  searchable: !0,
4757
4757
  class: "ao-activity-details__assignees",
4758
- placeholder: h.$t("activity.filters.assignee.placeholder")
4758
+ placeholder: f.$t("activity.filters.assignee.placeholder")
4759
4759
  }, {
4760
4760
  tag: F(({ option: j, handleTagRemove: ee }) => [
4761
4761
  y(ze, {
@@ -4770,7 +4770,7 @@ const D5 = {
4770
4770
  ]),
4771
4771
  r("div", X5, [
4772
4772
  r("label", x5, [
4773
- r("span", J5, U(h.$t("activity.type.label")), 1),
4773
+ r("span", J5, U(f.$t("activity.type.label")), 1),
4774
4774
  y(P(Ce), {
4775
4775
  modelValue: o.value,
4776
4776
  "onUpdate:modelValue": E[4] || (E[4] = (j) => o.value = j),
@@ -4778,8 +4778,8 @@ const D5 = {
4778
4778
  mode: "single",
4779
4779
  searchable: !0,
4780
4780
  "create-option": !0,
4781
- options: h.activityTypes,
4782
- placeholder: h.$t("activity.filters.type.placeholder")
4781
+ options: f.activityTypes,
4782
+ placeholder: f.$t("activity.filters.type.placeholder")
4783
4783
  }, null, 8, ["modelValue", "options", "placeholder"])
4784
4784
  ])
4785
4785
  ])
@@ -4789,12 +4789,12 @@ const D5 = {
4789
4789
  y(le, { name: "FlowsheetOutlineRounded" }),
4790
4790
  y(ce, {
4791
4791
  level: 4,
4792
- title: h.$t("activity.dependencies.title")
4792
+ title: f.$t("activity.dependencies.title")
4793
4793
  }, null, 8, ["title"])
4794
4794
  ]),
4795
4795
  r("div", t7, [
4796
4796
  r("label", s7, [
4797
- r("span", a7, U(h.$t("activity.dependingOn.label")), 1),
4797
+ r("span", a7, U(f.$t("activity.dependingOn.label")), 1),
4798
4798
  y(P(Ce), {
4799
4799
  modelValue: c.value,
4800
4800
  "onUpdate:modelValue": E[5] || (E[5] = (j) => c.value = j),
@@ -4808,7 +4808,7 @@ const D5 = {
4808
4808
  ]),
4809
4809
  r("div", n7, [
4810
4810
  r("label", l7, [
4811
- r("span", i7, U(h.$t("activity.blocking.label")), 1),
4811
+ r("span", i7, U(f.$t("activity.blocking.label")), 1),
4812
4812
  y(P(Ce), {
4813
4813
  modelValue: m.value,
4814
4814
  "onUpdate:modelValue": E[6] || (E[6] = (j) => m.value = j),
@@ -4816,13 +4816,13 @@ const D5 = {
4816
4816
  mode: "tags",
4817
4817
  "close-on-select": !1,
4818
4818
  searchable: !0,
4819
- options: f.value
4819
+ options: h.value
4820
4820
  }, null, 8, ["modelValue", "options"])
4821
4821
  ])
4822
4822
  ]),
4823
4823
  r("div", o7, [
4824
4824
  r("label", r7, [
4825
- r("span", u7, U(h.$t("activity.dependingMilestone.label")), 1),
4825
+ r("span", u7, U(f.$t("activity.dependingMilestone.label")), 1),
4826
4826
  y(P(Ce), {
4827
4827
  modelValue: T.value,
4828
4828
  "onUpdate:modelValue": E[7] || (E[7] = (j) => T.value = j),
@@ -4840,31 +4840,31 @@ const D5 = {
4840
4840
  y(le, { name: "SelectCheckBox" }),
4841
4841
  y(ce, {
4842
4842
  level: 4,
4843
- title: h.$t("activity.subtasks.title")
4843
+ title: f.$t("activity.subtasks.title")
4844
4844
  }, null, 8, ["title"])
4845
4845
  ]),
4846
4846
  y(A5, {
4847
4847
  class: "ao-activity-details__subtasks",
4848
- subtasks: h.activity.tasks || [],
4849
- "activity-id": h.activity.id,
4848
+ subtasks: f.activity.tasks || [],
4849
+ "activity-id": f.activity.id,
4850
4850
  "assignees-options": b.value,
4851
4851
  onAdd: w,
4852
4852
  onUpdate: O,
4853
4853
  onDelete: L
4854
4854
  }, null, 8, ["subtasks", "activity-id", "assignees-options"])
4855
4855
  ]),
4856
- Y(h.$slots, "default")
4856
+ Y(f.$slots, "default")
4857
4857
  ]),
4858
4858
  r("div", p7, [
4859
4859
  r("div", v7, [
4860
4860
  y(le, { name: "AttachFileRounded" }),
4861
4861
  y(ce, {
4862
4862
  level: 4,
4863
- title: h.$t("activity.attachments.title")
4863
+ title: f.$t("activity.attachments.title")
4864
4864
  }, null, 8, ["title"])
4865
4865
  ]),
4866
4866
  y(B5, {
4867
- attachments: h.activity.attachments,
4867
+ attachments: f.activity.attachments,
4868
4868
  onAdd: x,
4869
4869
  onRemove: se
4870
4870
  }, null, 8, ["attachments"])
@@ -4966,7 +4966,7 @@ const Ru = {
4966
4966
  set(L) {
4967
4967
  e("update:rule", { ...t.rule, comparator: L });
4968
4968
  }
4969
- }), C = g(() => Object.values(_7)), m = xe(t.rule.trigger), f = g({
4969
+ }), C = g(() => Object.values(_7)), m = xe(t.rule.trigger), h = g({
4970
4970
  get() {
4971
4971
  return m.value;
4972
4972
  },
@@ -5001,8 +5001,8 @@ const Ru = {
5001
5001
  options: o.value
5002
5002
  }, null, 8, ["modelValue", "options"]),
5003
5003
  y(P(Ce), {
5004
- modelValue: f.value,
5005
- "onUpdate:modelValue": b[2] || (b[2] = (B) => f.value = B),
5004
+ modelValue: h.value,
5005
+ "onUpdate:modelValue": b[2] || (b[2] = (B) => h.value = B),
5006
5006
  options: M.value
5007
5007
  }, null, 8, ["modelValue", "options"]),
5008
5008
  y(P(Ce), {
@@ -5152,7 +5152,7 @@ const w7 = {
5152
5152
  }), m = g(() => {
5153
5153
  var p;
5154
5154
  return ((p = a.value) == null ? void 0 : p.name) || t.templateId;
5155
- }), f = () => {
5155
+ }), h = () => {
5156
5156
  if (!a.value)
5157
5157
  return;
5158
5158
  const p = a.value.phases.length, $ = a.value.phases.at(-1), k = $ ? de.LexoRank.parse($.rank).genNext() : de.LexoRank.middle(), S = {
@@ -5245,7 +5245,7 @@ const w7 = {
5245
5245
  id: p.id
5246
5246
  }
5247
5247
  });
5248
- }, h = (p) => {
5248
+ }, f = (p) => {
5249
5249
  const { id: $, ...k } = p;
5250
5250
  e("updateItem", {
5251
5251
  itemType: re.ACTIVITIES,
@@ -5289,7 +5289,7 @@ const w7 = {
5289
5289
  $[k] = {
5290
5290
  ...$[k],
5291
5291
  ...p
5292
- }, h({
5292
+ }, f({
5293
5293
  id: (D = c.value) == null ? void 0 : D.id,
5294
5294
  phaseId: (te = i.value) == null ? void 0 : te.id,
5295
5295
  milestoneId: (ae = n.value) == null ? void 0 : ae.id,
@@ -5302,7 +5302,7 @@ const w7 = {
5302
5302
  const $ = [...((k = c.value) == null ? void 0 : k.subtasks) || []].filter(
5303
5303
  (ae) => ae.id !== p
5304
5304
  );
5305
- h({
5305
+ f({
5306
5306
  id: (S = c.value) == null ? void 0 : S.id,
5307
5307
  phaseId: (D = i.value) == null ? void 0 : D.id,
5308
5308
  milestoneId: (te = n.value) == null ? void 0 : te.id,
@@ -5382,7 +5382,7 @@ const w7 = {
5382
5382
  y(Be, {
5383
5383
  "icon-name": "AddBoxOutlineRounded",
5384
5384
  label: p.$t("template.phases.add"),
5385
- onClick: f
5385
+ onClick: h
5386
5386
  }, null, 8, ["label"])
5387
5387
  ])
5388
5388
  ]),
@@ -5409,7 +5409,7 @@ const w7 = {
5409
5409
  milestone: n.value,
5410
5410
  "activity-id": (D = c.value) == null ? void 0 : D.id,
5411
5411
  onAddActivity: x,
5412
- onUpdateActivity: h,
5412
+ onUpdateActivity: f,
5413
5413
  onRemoveActivity: se
5414
5414
  }, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) : I("", !0)
5415
5415
  ])
@@ -5426,7 +5426,7 @@ const w7 = {
5426
5426
  "template-milestones": o.value,
5427
5427
  "is-template": !0,
5428
5428
  "onUpdate:activity": $[2] || ($[2] = (R) => {
5429
- p.phaseId && p.milestoneId && c.value && h({
5429
+ p.phaseId && p.milestoneId && c.value && f({
5430
5430
  ...R,
5431
5431
  phaseId: p.phaseId,
5432
5432
  milestoneId: p.milestoneId
@@ -5687,8 +5687,8 @@ const e0 = { class: "ao-project" }, t0 = { class: "ao-project__body" }, s0 = { c
5687
5687
  },
5688
5688
  emits: ["addPhase", "addMilestone", "addActivity", "update:activity", "addSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
5689
5689
  setup(s, { emit: e }) {
5690
- const t = s, l = g(() => t.phases.reduce((w, O) => [...w, ...O.milestones || []], [])), a = () => {
5691
- e("addPhase");
5690
+ const t = s, l = g(() => t.phases.reduce((w, O) => [...w, ...O.milestones || []], [])), a = (w) => {
5691
+ e("addPhase", w);
5692
5692
  }, i = (w) => {
5693
5693
  e("addMilestone", w);
5694
5694
  }, n = (w) => {
@@ -5700,8 +5700,8 @@ const e0 = { class: "ao-project" }, t0 = { class: "ao-project__body" }, s0 = { c
5700
5700
  const O = t.phases.find((B) => {
5701
5701
  var x;
5702
5702
  return (x = B.milestones) == null ? void 0 : x.find((se) => {
5703
- var h;
5704
- return (h = se.activities) == null ? void 0 : h.find((E) => E.id === w.activityId);
5703
+ var f;
5704
+ return (f = se.activities) == null ? void 0 : f.find((E) => E.id === w.activityId);
5705
5705
  });
5706
5706
  }), L = (b = O == null ? void 0 : O.milestones) == null ? void 0 : b.find((B) => {
5707
5707
  var x;
@@ -5716,7 +5716,7 @@ const e0 = { class: "ao-project" }, t0 = { class: "ao-project__body" }, s0 = { c
5716
5716
  e("addFiles", w);
5717
5717
  }, m = (w) => {
5718
5718
  e("removeFile", w);
5719
- }, f = (w) => {
5719
+ }, h = (w) => {
5720
5720
  e("addComment", w);
5721
5721
  }, M = (w) => {
5722
5722
  e("updateComment", w);
@@ -5770,7 +5770,7 @@ const e0 = { class: "ao-project" }, t0 = { class: "ao-project__body" }, s0 = { c
5770
5770
  (u(!0), _(ne, null, ve(w.phases, (b) => (u(), q(Q7, {
5771
5771
  key: b.id,
5772
5772
  phase: b,
5773
- "project-name": w.project.projectName,
5773
+ "project-name": w.project.name,
5774
5774
  onAddMilestone: i
5775
5775
  }, null, 8, ["phase", "project-name"]))), 128))
5776
5776
  ])
@@ -5779,7 +5779,7 @@ const e0 = { class: "ao-project" }, t0 = { class: "ao-project__body" }, s0 = { c
5779
5779
  y(L, {
5780
5780
  class: "ao-project__sidebar",
5781
5781
  milestones: l.value,
5782
- "project-name": w.project.projectName,
5782
+ "project-name": w.project.name,
5783
5783
  users: w.users,
5784
5784
  onClose: O[0] || (O[0] = (b) => w.$router.push({ name: P(Ue).project })),
5785
5785
  onAddActivity: n
@@ -5792,7 +5792,7 @@ const e0 = { class: "ao-project" }, t0 = { class: "ao-project__body" }, s0 = { c
5792
5792
  onAddSubtask: d,
5793
5793
  onAddFiles: C,
5794
5794
  onRemoveFile: m,
5795
- onAddComment: f,
5795
+ onAddComment: h,
5796
5796
  onUpdateComment: M,
5797
5797
  onRemoveComment: T
5798
5798
  }, null, 8, ["activities"])
@@ -5850,13 +5850,13 @@ const u0 = { class: "ao-card-feed__header" }, c0 = {
5850
5850
  });
5851
5851
  }, a = g(() => t.phaseName && t.milestoneName ? `${t.phaseName} / ${t.milestoneName}` : ""), i = g(() => {
5852
5852
  var m;
5853
- return (m = t.assignees) == null ? void 0 : m.map((f) => {
5853
+ return (m = t.assignees) == null ? void 0 : m.map((h) => {
5854
5854
  var M;
5855
- return (M = t.users) == null ? void 0 : M.find((T) => T.id === f);
5855
+ return (M = t.users) == null ? void 0 : M.find((T) => T.id === h);
5856
5856
  });
5857
5857
  }), n = (m) => {
5858
- const { firstName: f, lastName: M } = m || {};
5859
- return f && M ? `${f} ${M}` : "";
5858
+ const { firstName: h, lastName: M } = m || {};
5859
+ return h && M ? `${h} ${M}` : "";
5860
5860
  }, o = (m) => {
5861
5861
  e("removeAssignee", m);
5862
5862
  }, d = g(() => {
@@ -5864,9 +5864,9 @@ const u0 = { class: "ao-card-feed__header" }, c0 = {
5864
5864
  return (m = t.subtasks) == null ? void 0 : m.length;
5865
5865
  }), c = g(() => {
5866
5866
  var m;
5867
- return (m = t.subtasks) == null ? void 0 : m.filter((f) => f.isDone).length;
5867
+ return (m = t.subtasks) == null ? void 0 : m.filter((h) => h.isDone).length;
5868
5868
  }), C = g(() => (c.value || 0) / (d.value || 1));
5869
- return (m, f) => (u(), q(U1, {
5869
+ return (m, h) => (u(), q(U1, {
5870
5870
  class: "ao-card-feed",
5871
5871
  "is-clickable": !0
5872
5872
  }, {
@@ -6002,7 +6002,7 @@ const I0 = { class: "ao-project-milestone" }, S0 = { class: "ao-project-mileston
6002
6002
  r("div", L0, [
6003
6003
  r("ul", T0, [
6004
6004
  (u(!0), _(ne, null, ve(a.value, (C) => {
6005
- var m, f, M;
6005
+ var m, h, M;
6006
6006
  return u(), q(Ct, {
6007
6007
  key: C.id,
6008
6008
  name: C.name || C.id,
@@ -6013,7 +6013,7 @@ const I0 = { class: "ao-project-milestone" }, S0 = { class: "ao-project-mileston
6013
6013
  "is-important": C.isImportant,
6014
6014
  users: o.users,
6015
6015
  assignees: C.assignees,
6016
- comments: (f = C.comments) == null ? void 0 : f.length,
6016
+ comments: (h = C.comments) == null ? void 0 : h.length,
6017
6017
  attachments: (M = C.attachments) == null ? void 0 : M.length,
6018
6018
  subtasks: C.subtasks,
6019
6019
  onClick: (T) => o.$router.push({
@@ -6060,14 +6060,14 @@ const O0 = { class: "ao-comment" }, B0 = { class: "ao-comment__body" }, D0 = ["c
6060
6060
  emits: ["edit", "remove"],
6061
6061
  setup(s, { emit: e }) {
6062
6062
  const t = s, l = g(() => {
6063
- const f = t.user;
6064
- return f ? `${f == null ? void 0 : f.firstName} ${f == null ? void 0 : f.lastName}` : null;
6065
- }), a = Q(null), { isEditing: i, toggleIsEditing: n, onUpdate: o, onDiscard: d } = it(a), c = d(), C = o((f) => {
6066
- e("edit", f);
6063
+ const h = t.user;
6064
+ return h ? `${h == null ? void 0 : h.firstName} ${h == null ? void 0 : h.lastName}` : null;
6065
+ }), a = Q(null), { isEditing: i, toggleIsEditing: n, onUpdate: o, onDiscard: d } = it(a), c = d(), C = o((h) => {
6066
+ e("edit", h);
6067
6067
  }), m = () => {
6068
6068
  e("remove");
6069
6069
  };
6070
- return (f, M) => (u(), _("li", O0, [
6070
+ return (h, M) => (u(), _("li", O0, [
6071
6071
  l.value ? (u(), q(ze, {
6072
6072
  key: 0,
6073
6073
  "user-name": l.value,
@@ -6079,10 +6079,10 @@ const O0 = { class: "ao-comment" }, B0 = { class: "ao-comment__body" }, D0 = ["c
6079
6079
  ref: a,
6080
6080
  class: "ao-comment__content",
6081
6081
  contenteditable: P(i)
6082
- }, U(f.content), 9, D0),
6083
- r("span", Z0, U(f.editedAt || f.createdAt), 1)
6082
+ }, U(h.content), 9, D0),
6083
+ r("span", Z0, U(h.editedAt || h.createdAt), 1)
6084
6084
  ]),
6085
- f.isEditable ? (u(), _("div", P0, [
6085
+ h.isEditable ? (u(), _("div", P0, [
6086
6086
  P(i) ? (u(), _(ne, { key: 0 }, [
6087
6087
  y(ue, {
6088
6088
  "icon-name": "CloseRounded",
@@ -6100,14 +6100,14 @@ const O0 = { class: "ao-comment" }, B0 = { class: "ao-comment__body" }, D0 = ["c
6100
6100
  }, null, 8, ["onClick"])
6101
6101
  ], 64)) : (u(), _(ne, { key: 1 }, [
6102
6102
  y(ue, {
6103
- label: f.$t("activity.comment.delete"),
6103
+ label: h.$t("activity.comment.delete"),
6104
6104
  size: "sm",
6105
6105
  variant: "ghost",
6106
6106
  color: "neutral",
6107
6107
  onClick: m
6108
6108
  }, null, 8, ["label"]),
6109
6109
  y(ue, {
6110
- label: f.$t("activity.comment.edit"),
6110
+ label: h.$t("activity.comment.edit"),
6111
6111
  size: "sm",
6112
6112
  variant: "ghost",
6113
6113
  color: "neutral",
@@ -6118,10 +6118,13 @@ const O0 = { class: "ao-comment" }, B0 = { class: "ao-comment__body" }, D0 = ["c
6118
6118
  ]));
6119
6119
  }
6120
6120
  });
6121
- const j0 = { class: "ao-comments" }, R0 = { class: "ao-comments__list" }, U0 = { class: "ao-comments__footer" }, q0 = ["onSubmit"], F0 = { class: "ao-field ao-field--full" }, z0 = { class: "ao-field__label" }, K0 = { class: "ao-comments__form-footer" }, _t = /* @__PURE__ */ G({
6121
+ const j0 = { class: "ao-comments" }, R0 = {
6122
+ key: 0,
6123
+ class: "ao-comments__list"
6124
+ }, U0 = { class: "ao-comments__footer" }, q0 = ["onSubmit"], F0 = { class: "ao-field ao-field--full" }, z0 = { class: "ao-field__label" }, K0 = { class: "ao-comments__form-footer" }, _t = /* @__PURE__ */ G({
6122
6125
  __name: "AoActivityDetailsComments",
6123
6126
  props: {
6124
- comments: {},
6127
+ comments: { default: () => [] },
6125
6128
  users: {},
6126
6129
  newComment: {},
6127
6130
  userId: {}
@@ -6146,52 +6149,55 @@ const j0 = { class: "ao-comments" }, R0 = { class: "ao-comments__list" }, U0 = {
6146
6149
  }, d = (c) => {
6147
6150
  e("removeComment", c);
6148
6151
  };
6149
- return (c, C) => (u(), _("div", j0, [
6150
- r("ul", R0, [
6151
- (u(!0), _(ne, null, ve(c.comments, (m) => (u(), q(N0, {
6152
- key: m.id,
6153
- user: l(m.userId),
6154
- content: m.content,
6155
- "created-at": m.createdAt,
6156
- "edited-at": m.editedAt,
6157
- "is-editable": m.userId === c.userId,
6158
- class: "ao-comment",
6159
- onEdit: (f) => o(m.id, f),
6160
- onRemove: () => d(m.id)
6161
- }, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
6162
- ]),
6163
- r("div", U0, [
6164
- r("form", {
6165
- class: "ao-comments__form",
6166
- onSubmit: Ae(n, ["prevent"])
6167
- }, [
6168
- r("label", F0, [
6169
- r("span", z0, U(c.$t("activity.comment.label")), 1),
6170
- Re(r("textarea", {
6171
- "onUpdate:modelValue": C[0] || (C[0] = (m) => i.value = m),
6172
- rows: "4",
6173
- class: "ao-field__textarea"
6174
- }, null, 512), [
6175
- [
6176
- s1,
6177
- i.value,
6178
- void 0,
6179
- { trim: !0 }
6180
- ]
6152
+ return (c, C) => {
6153
+ var m;
6154
+ return u(), _("div", j0, [
6155
+ ((m = c.comments) == null ? void 0 : m.length) > 0 ? (u(), _("ul", R0, [
6156
+ (u(!0), _(ne, null, ve(c.comments, (h) => (u(), q(N0, {
6157
+ key: h.id,
6158
+ user: l(h.userId),
6159
+ content: h.content,
6160
+ "created-at": h.createdAt,
6161
+ "edited-at": h.editedAt,
6162
+ "is-editable": h.userId === c.userId,
6163
+ class: "ao-comment",
6164
+ onEdit: (M) => o(h.id, M),
6165
+ onRemove: () => d(h.id)
6166
+ }, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
6167
+ ])) : I("", !0),
6168
+ r("div", U0, [
6169
+ r("form", {
6170
+ class: "ao-comments__form",
6171
+ onSubmit: Ae(n, ["prevent"])
6172
+ }, [
6173
+ r("label", F0, [
6174
+ r("span", z0, U(c.$t("activity.comment.label")), 1),
6175
+ Re(r("textarea", {
6176
+ "onUpdate:modelValue": C[0] || (C[0] = (h) => i.value = h),
6177
+ rows: "4",
6178
+ class: "ao-field__textarea"
6179
+ }, null, 512), [
6180
+ [
6181
+ s1,
6182
+ i.value,
6183
+ void 0,
6184
+ { trim: !0 }
6185
+ ]
6186
+ ])
6187
+ ]),
6188
+ r("div", K0, [
6189
+ y(ue, {
6190
+ type: "submit",
6191
+ "icon-name": "SendRounded",
6192
+ color: "primary",
6193
+ variant: "solid",
6194
+ label: c.$t("activity.comment.submit")
6195
+ }, null, 8, ["label"])
6181
6196
  ])
6182
- ]),
6183
- r("div", K0, [
6184
- y(ue, {
6185
- type: "submit",
6186
- "icon-name": "SendRounded",
6187
- color: "primary",
6188
- variant: "solid",
6189
- label: c.$t("activity.comment.submit")
6190
- }, null, 8, ["label"])
6191
- ])
6192
- ], 40, q0)
6193
- ])
6194
- ]));
6197
+ ], 40, q0)
6198
+ ])
6199
+ ]);
6200
+ };
6195
6201
  }
6196
6202
  });
6197
6203
  const G0 = { class: "ao-fieldset" }, Y0 = { class: "ao-fieldset__title" }, W0 = /* @__PURE__ */ G({
@@ -6207,54 +6213,54 @@ const G0 = { class: "ao-fieldset" }, Y0 = { class: "ao-fieldset__title" }, W0 =
6207
6213
  emits: ["update:activity", "addSubtask", "addComment", "updateComment", "removeComment"],
6208
6214
  setup(s, { emit: e }) {
6209
6215
  const t = s, { users: l, userId: a } = H0(), i = g(() => {
6210
- var f;
6211
- return (f = t.activities) == null ? void 0 : f.find((M) => M.id === t.activityId);
6216
+ var h;
6217
+ return (h = t.activities) == null ? void 0 : h.find((M) => M.id === t.activityId);
6212
6218
  }), n = g(() => {
6213
- var f;
6214
- return ((f = t.activityTypes) == null ? void 0 : f.map((M) => ({
6219
+ var h;
6220
+ return ((h = t.activityTypes) == null ? void 0 : h.map((M) => ({
6215
6221
  value: M,
6216
6222
  label: M
6217
6223
  }))) || [];
6218
- }), o = (f) => {
6219
- const { id: M } = f;
6224
+ }), o = (h) => {
6225
+ const { id: M } = h;
6220
6226
  i.value && i.value.projectId && e("update:activity", {
6221
6227
  itemType: re.ACTIVITIES,
6222
6228
  id: M,
6223
6229
  projectId: i.value.projectId,
6224
6230
  data: {
6225
6231
  ...i.value,
6226
- ...f,
6232
+ ...h,
6227
6233
  phaseId: t.phaseId,
6228
6234
  milestoneId: t.milestoneId
6229
6235
  }
6230
6236
  });
6231
- }, d = (f) => {
6237
+ }, d = (h) => {
6232
6238
  e("addSubtask", {
6233
- ...f,
6239
+ ...h,
6234
6240
  milestoneId: t.milestoneId,
6235
6241
  phaseId: t.phaseId
6236
6242
  });
6237
- }, c = (f) => {
6243
+ }, c = (h) => {
6238
6244
  i.value && e("addComment", {
6239
6245
  activityId: i.value.id,
6240
- comment: f
6246
+ comment: h
6241
6247
  });
6242
- }, C = (f) => {
6248
+ }, C = (h) => {
6243
6249
  const { id: M } = i.value || {};
6244
- M && e("updateComment", { ...f, activityId: M });
6245
- }, m = (f) => {
6250
+ M && e("updateComment", { ...h, activityId: M });
6251
+ }, m = (h) => {
6246
6252
  const { id: M } = i.value || {};
6247
- M && e("removeComment", { id: f, activityId: M });
6253
+ M && e("removeComment", { id: h, activityId: M });
6248
6254
  };
6249
- return (f, M) => i.value ? (u(), q(R1, {
6255
+ return (h, M) => i.value ? (u(), q(R1, {
6250
6256
  key: 0,
6251
6257
  activity: i.value,
6252
6258
  "activity-types": n.value,
6253
- "milestone-id": f.milestoneId,
6254
- "template-activities": f.activities,
6259
+ "milestone-id": h.milestoneId,
6260
+ "template-activities": h.activities,
6255
6261
  "is-template": !1,
6256
6262
  users: P(l),
6257
- onClose: f.$router.back,
6263
+ onClose: h.$router.back,
6258
6264
  "onUpdate:activity": M[0] || (M[0] = (T) => {
6259
6265
  o({
6260
6266
  ...T
@@ -6268,7 +6274,7 @@ const G0 = { class: "ao-fieldset" }, Y0 = { class: "ao-fieldset__title" }, W0 =
6268
6274
  y(le, { name: "ChatOutline" }),
6269
6275
  y(ce, {
6270
6276
  level: 4,
6271
- title: f.$t("activity.comments.title")
6277
+ title: h.$t("activity.comments.title")
6272
6278
  }, null, 8, ["title"])
6273
6279
  ]),
6274
6280
  y(_t, {
@@ -6347,8 +6353,8 @@ const G0 = { class: "ao-fieldset" }, Y0 = { class: "ao-fieldset__title" }, W0 =
6347
6353
  emits: ["addTemplate", "updateTemplates", "updateItem"],
6348
6354
  setup(s, { emit: e }) {
6349
6355
  const t = s, { t: l } = w1(), a = () => {
6350
- var m, f;
6351
- const o = (m = t.templates) == null ? void 0 : m.at(-1), d = o ? de.LexoRank.parse(o.rank).genNext() : de.LexoRank.middle(), c = ((f = t.templates) == null ? void 0 : f.length) ?? 0, C = {
6356
+ var m, h;
6357
+ const o = (m = t.templates) == null ? void 0 : m.at(-1), d = o ? de.LexoRank.parse(o.rank).genNext() : de.LexoRank.middle(), c = ((h = t.templates) == null ? void 0 : h.length) ?? 0, C = {
6352
6358
  name: l("template.defaultName.template", { idx: c + 1 }),
6353
6359
  rank: d.format()
6354
6360
  };
@@ -6507,7 +6513,7 @@ function uu(s, e, t = {}) {
6507
6513
  return (Array.isArray(T) ? T : [T]).map(B1).filter(su);
6508
6514
  });
6509
6515
  let C = e1;
6510
- const m = Q(o), f = d.value ? pe(
6516
+ const m = Q(o), h = d.value ? pe(
6511
6517
  () => [c.value, B1(l), m.value],
6512
6518
  ([T, w]) => {
6513
6519
  if (C(), !m.value || !T.length)
@@ -6526,7 +6532,7 @@ function uu(s, e, t = {}) {
6526
6532
  },
6527
6533
  { immediate: o, flush: "post" }
6528
6534
  ) : e1, M = () => {
6529
- C(), f(), m.value = !1;
6535
+ C(), h(), m.value = !1;
6530
6536
  };
6531
6537
  return eu(M), {
6532
6538
  isSupported: d,
@@ -6615,7 +6621,7 @@ const cu = {
6615
6621
  group: "kanban"
6616
6622
  }, d.$attrs, { onChange: o }), {
6617
6623
  item: F(({ element: C }) => {
6618
- var m, f, M;
6624
+ var m, h, M;
6619
6625
  return [
6620
6626
  y(Ct, {
6621
6627
  id: C.id,
@@ -6625,7 +6631,7 @@ const cu = {
6625
6631
  description: C.description,
6626
6632
  "is-important": C.important,
6627
6633
  type: C.type,
6628
- comments: (f = C.comments) == null ? void 0 : f.length,
6634
+ comments: (h = C.comments) == null ? void 0 : h.length,
6629
6635
  attachments: (M = C.attachments) == null ? void 0 : M.length,
6630
6636
  onClick: () => i(C.id),
6631
6637
  onUpdateActivity: n
@@ -6789,7 +6795,7 @@ const Mu = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Au = { clas
6789
6795
  };
6790
6796
  e("update:filter", $);
6791
6797
  }
6792
- }), f = g(() => t.activityTypes.map((p) => ({
6798
+ }), h = g(() => t.activityTypes.map((p) => ({
6793
6799
  value: p.id,
6794
6800
  label: p.name
6795
6801
  }))), M = g({
@@ -6830,7 +6836,7 @@ const Mu = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Au = { clas
6830
6836
  }
6831
6837
  }), se = (p) => {
6832
6838
  e("clear:searchText", p);
6833
- }, h = g({
6839
+ }, f = g({
6834
6840
  get() {
6835
6841
  return t.searchText || "";
6836
6842
  },
@@ -6912,8 +6918,8 @@ const Mu = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Au = { clas
6912
6918
  y($1, null, {
6913
6919
  primary: F(() => [
6914
6920
  y(yu, {
6915
- modelValue: h.value,
6916
- "onUpdate:modelValue": $[0] || ($[0] = (S) => h.value = S),
6921
+ modelValue: f.value,
6922
+ "onUpdate:modelValue": $[0] || ($[0] = (S) => f.value = S),
6917
6923
  placeholder: p.$t("feed.search.placeholder"),
6918
6924
  onClear: se
6919
6925
  }, null, 8, ["modelValue", "placeholder"]),
@@ -6932,7 +6938,7 @@ const Mu = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Au = { clas
6932
6938
  modelValue: m.value,
6933
6939
  "onUpdate:modelValue": $[2] || ($[2] = (S) => m.value = S),
6934
6940
  mode: "tags",
6935
- options: f.value,
6941
+ options: h.value,
6936
6942
  "close-on-select": !1,
6937
6943
  searchable: !0,
6938
6944
  class: "ao-feed__filter",
@@ -6978,7 +6984,7 @@ const Mu = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Au = { clas
6978
6984
  P(n) ? (u(), q(R1, {
6979
6985
  key: 0,
6980
6986
  activity: P(n),
6981
- "activity-types": f.value,
6987
+ "activity-types": h.value,
6982
6988
  "milestone-id": (k = P(n).milestone) == null ? void 0 : k.id,
6983
6989
  "template-activities": a.value,
6984
6990
  users: p.users,