@26lights/orcha 0.41.132 → 0.41.133

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
@@ -2736,10 +2736,10 @@ var i3 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, l3 = /P+p+|P+|
2736
2736
  function Zn(t, e, a) {
2737
2737
  var s, n, i, o, l, r, d, u, c, p, h, g, w, m, $, b, y, _;
2738
2738
  _e(2, arguments);
2739
- var I = String(e), T = ga(), H = (s = (n = a == null ? void 0 : a.locale) !== null && n !== void 0 ? n : T.locale) !== null && s !== void 0 ? s : Fn, R = Je((i = (o = (l = (r = a == null ? void 0 : a.firstWeekContainsDate) !== null && r !== void 0 ? r : a == null || (d = a.locale) === null || d === void 0 || (u = d.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && l !== void 0 ? l : T.firstWeekContainsDate) !== null && o !== void 0 ? o : (c = T.locale) === null || c === void 0 || (p = c.options) === null || p === void 0 ? void 0 : p.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
2739
+ var I = String(e), O = ga(), H = (s = (n = a == null ? void 0 : a.locale) !== null && n !== void 0 ? n : O.locale) !== null && s !== void 0 ? s : Fn, R = Je((i = (o = (l = (r = a == null ? void 0 : a.firstWeekContainsDate) !== null && r !== void 0 ? r : a == null || (d = a.locale) === null || d === void 0 || (u = d.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && l !== void 0 ? l : O.firstWeekContainsDate) !== null && o !== void 0 ? o : (c = O.locale) === null || c === void 0 || (p = c.options) === null || p === void 0 ? void 0 : p.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
2740
2740
  if (!(R >= 1 && R <= 7))
2741
2741
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
2742
- var G = Je((h = (g = (w = (m = a == null ? void 0 : a.weekStartsOn) !== null && m !== void 0 ? m : a == null || ($ = a.locale) === null || $ === void 0 || (b = $.options) === null || b === void 0 ? void 0 : b.weekStartsOn) !== null && w !== void 0 ? w : T.weekStartsOn) !== null && g !== void 0 ? g : (y = T.locale) === null || y === void 0 || (_ = y.options) === null || _ === void 0 ? void 0 : _.weekStartsOn) !== null && h !== void 0 ? h : 0);
2742
+ var G = Je((h = (g = (w = (m = a == null ? void 0 : a.weekStartsOn) !== null && m !== void 0 ? m : a == null || ($ = a.locale) === null || $ === void 0 || (b = $.options) === null || b === void 0 ? void 0 : b.weekStartsOn) !== null && w !== void 0 ? w : O.weekStartsOn) !== null && g !== void 0 ? g : (y = O.locale) === null || y === void 0 || (_ = y.options) === null || _ === void 0 ? void 0 : _.weekStartsOn) !== null && h !== void 0 ? h : 0);
2743
2743
  if (!(G >= 0 && G <= 6))
2744
2744
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
2745
2745
  if (!H.localize)
@@ -2795,11 +2795,11 @@ function p3(t, e, a) {
2795
2795
  throw new RangeError("Invalid time value");
2796
2796
  var y;
2797
2797
  b < -6 ? y = "other" : b < -1 ? y = "lastWeek" : b < 0 ? y = "yesterday" : b < 1 ? y = "today" : b < 2 ? y = "tomorrow" : b < 7 ? y = "nextWeek" : y = "other";
2798
- var _ = bs(h, ua(h)), I = bs(g, ua(g)), T = m.formatRelative(y, _, I, {
2798
+ var _ = bs(h, ua(h)), I = bs(g, ua(g)), O = m.formatRelative(y, _, I, {
2799
2799
  locale: m,
2800
2800
  weekStartsOn: $
2801
2801
  });
2802
- return Zn(h, T, {
2802
+ return Zn(h, O, {
2803
2803
  locale: m,
2804
2804
  weekStartsOn: $
2805
2805
  });
@@ -4596,11 +4596,11 @@ const z5 = function(t) {
4596
4596
  return {};
4597
4597
  const $ = Zt(n), b = Zt(l) === l, y = await (r.isRTL == null ? void 0 : r.isRTL(d.floating)), _ = p || (b || !w ? [Fa(l)] : R5(l));
4598
4598
  !p && g !== "none" && _.push(...U5(l, w, g, y));
4599
- const I = [l, ..._], T = await eo(e, m), H = [];
4599
+ const I = [l, ..._], O = await eo(e, m), H = [];
4600
4600
  let R = ((s = i.flip) == null ? void 0 : s.overflows) || [];
4601
- if (u && H.push(T[$]), c) {
4601
+ if (u && H.push(O[$]), c) {
4602
4602
  const N = j5(n, o, y);
4603
- H.push(T[N[0]], T[N[1]]);
4603
+ H.push(O[N[0]], O[N[1]]);
4604
4604
  }
4605
4605
  if (R = [...R, {
4606
4606
  placement: n,
@@ -4623,7 +4623,7 @@ const z5 = function(t) {
4623
4623
  switch (h) {
4624
4624
  case "bestFit": {
4625
4625
  var ne;
4626
- const oe = (ne = R.map((ae) => [ae.placement, ae.overflows.filter((P) => P > 0).reduce((P, O) => P + O, 0)]).sort((ae, P) => ae[1] - P[1])[0]) == null ? void 0 : ne[0];
4626
+ const oe = (ne = R.map((ae) => [ae.placement, ae.overflows.filter((P) => P > 0).reduce((P, T) => P + T, 0)]).sort((ae, P) => ae[1] - P[1])[0]) == null ? void 0 : ne[0];
4627
4627
  oe && (le = oe);
4628
4628
  break;
4629
4629
  }
@@ -4664,15 +4664,15 @@ const z5 = function(t) {
4664
4664
  const m = h - r[g], $ = p - r[w], b = !e.middlewareData.shift;
4665
4665
  let y = m, _ = $;
4666
4666
  if (c) {
4667
- const T = p - r.left - r.right;
4668
- _ = u || b ? da($, T) : T;
4667
+ const O = p - r.left - r.right;
4668
+ _ = u || b ? da($, O) : O;
4669
4669
  } else {
4670
- const T = h - r.top - r.bottom;
4671
- y = u || b ? da(m, T) : T;
4670
+ const O = h - r.top - r.bottom;
4671
+ y = u || b ? da(m, O) : O;
4672
4672
  }
4673
4673
  if (b && !u) {
4674
- const T = De(r.left, 0), H = De(r.right, 0), R = De(r.top, 0), G = De(r.bottom, 0);
4675
- c ? _ = p - 2 * (T !== 0 || H !== 0 ? T + H : De(r.left, r.right)) : y = h - 2 * (R !== 0 || G !== 0 ? R + G : De(r.top, r.bottom));
4674
+ const O = De(r.left, 0), H = De(r.right, 0), R = De(r.top, 0), G = De(r.bottom, 0);
4675
+ c ? _ = p - 2 * (O !== 0 || H !== 0 ? O + H : De(r.left, r.right)) : y = h - 2 * (R !== 0 || G !== 0 ? R + G : De(r.top, r.bottom));
4676
4676
  }
4677
4677
  await o({
4678
4678
  ...e,
@@ -5044,11 +5044,11 @@ function u7(t, e) {
5044
5044
  };
5045
5045
  let y = !0;
5046
5046
  function _(I) {
5047
- const T = I[0].intersectionRatio;
5048
- if (T !== r) {
5047
+ const O = I[0].intersectionRatio;
5048
+ if (O !== r) {
5049
5049
  if (!y)
5050
5050
  return o();
5051
- T ? o(!1, T) : s = setTimeout(() => {
5051
+ O ? o(!1, O) : s = setTimeout(() => {
5052
5052
  o(!1, 1e-7);
5053
5053
  }, 100);
5054
5054
  }
@@ -5276,7 +5276,7 @@ function _7(t, e, a) {
5276
5276
  filterResults: y,
5277
5277
  clearOnSearch: _,
5278
5278
  clearOnSelect: I,
5279
- valueProp: T,
5279
+ valueProp: O,
5280
5280
  allowAbsent: H,
5281
5281
  groupLabel: R,
5282
5282
  canDeselect: G,
@@ -5288,7 +5288,7 @@ function _7(t, e, a) {
5288
5288
  reverse: oe,
5289
5289
  infinite: ae,
5290
5290
  groupOptions: P,
5291
- groupHideEmpty: O,
5291
+ groupHideEmpty: T,
5292
5292
  groupSelect: Z,
5293
5293
  onCreate: L,
5294
5294
  disabledProp: j,
@@ -5349,13 +5349,13 @@ function _7(t, e, a) {
5349
5349
  }), us = M(() => {
5350
5350
  switch (n.value) {
5351
5351
  case "single":
5352
- return !We(K.value[T.value]);
5352
+ return !We(K.value[O.value]);
5353
5353
  case "multiple":
5354
5354
  case "tags":
5355
5355
  return !We(K.value) && K.value.length > 0;
5356
5356
  }
5357
5357
  }), yo = M(() => h !== void 0 && h.value !== void 0 ? h.value(K.value, J) : K.value && K.value.length > 1 ? `${K.value.length} options selected` : "1 option selected"), bo = M(() => !Pe.value.length && !Le.value && !Ht.value.length), wo = M(() => Pe.value.length > 0 && lt.value.length == 0 && (F.value && le.value || !le.value)), Ht = M(() => Qt.value === !1 || !F.value ? [] : Io(F.value) !== -1 ? [] : [{
5358
- [T.value]: F.value,
5358
+ [O.value]: F.value,
5359
5359
  [wt.value[0]]: F.value,
5360
5360
  [u.value]: F.value,
5361
5361
  __CREATE__: !0
@@ -5385,11 +5385,11 @@ function _7(t, e, a) {
5385
5385
  break;
5386
5386
  case "tags":
5387
5387
  case "multiple":
5388
- $e(Array.isArray(S) ? K.value.filter((U) => S.map((ue) => ue[T.value]).indexOf(U[T.value]) === -1) : K.value.filter((U) => U[T.value] != S[T.value]));
5388
+ $e(Array.isArray(S) ? K.value.filter((U) => S.map((ue) => ue[O.value]).indexOf(U[O.value]) === -1) : K.value.filter((U) => U[O.value] != S[O.value]));
5389
5389
  break;
5390
5390
  }
5391
5391
  e.emit("deselect", nn(S), S, J);
5392
- }, nn = (S) => g.value ? S : S[T.value], on = (S) => {
5392
+ }, nn = (S) => g.value ? S : S[O.value], on = (S) => {
5393
5393
  Vt(S);
5394
5394
  }, So = (S, U) => {
5395
5395
  if (U.button !== 0) {
@@ -5404,10 +5404,10 @@ function _7(t, e, a) {
5404
5404
  return n.value === "single" ? !1 : Eo(S[P.value]) && S[P.value].length;
5405
5405
  switch (n.value) {
5406
5406
  case "single":
5407
- return !We(K.value) && K.value[T.value] == S[T.value];
5407
+ return !We(K.value) && K.value[O.value] == S[O.value];
5408
5408
  case "tags":
5409
5409
  case "multiple":
5410
- return !We(K.value) && K.value.map((U) => U[T.value]).indexOf(S[T.value]) !== -1;
5410
+ return !We(K.value) && K.value.map((U) => U[O.value]).indexOf(S[O.value]) !== -1;
5411
5411
  }
5412
5412
  }, cs = (S) => S[j.value] === !0, ds = () => te === void 0 || te.value === -1 || !us.value && te.value > 0 ? !1 : K.value.length >= te.value, Mo = (S) => {
5413
5413
  if (!cs(S)) {
@@ -5458,19 +5458,19 @@ function _7(t, e, a) {
5458
5458
  case "multiple":
5459
5459
  case "tags":
5460
5460
  Oo(S[P.value]) ? Vt(S[P.value]) : Dt(
5461
- S[P.value].filter((U) => K.value.map((ue) => ue[T.value]).indexOf(U[T.value]) === -1).filter((U) => !U[j.value]).filter((U, ue) => K.value.length + 1 + ue <= te.value || te.value === -1)
5461
+ S[P.value].filter((U) => K.value.map((ue) => ue[O.value]).indexOf(U[O.value]) === -1).filter((U) => !U[j.value]).filter((U, ue) => K.value.length + 1 + ue <= te.value || te.value === -1)
5462
5462
  ), l.value && Gt.value && Xt(rs.value.filter((U) => !U[j.value])[Gt.value.index]);
5463
5463
  break;
5464
5464
  }
5465
5465
  N.value && ls();
5466
5466
  }
5467
5467
  }, ps = (S) => {
5468
- Ge(S[T.value]) === void 0 && Qt.value && (e.emit("tag", S[T.value], J), e.emit("option", S[T.value], J), e.emit("create", S[T.value], J), Sa.value && Po(S), he());
5468
+ Ge(S[O.value]) === void 0 && Qt.value && (e.emit("tag", S[O.value], J), e.emit("option", S[O.value], J), e.emit("create", S[O.value], J), Sa.value && Po(S), he());
5469
5469
  }, To = () => {
5470
5470
  n.value !== "single" && Dt(lt.value.filter((S) => !S.disabled && !Ke(S)));
5471
- }, Oo = (S) => S.find((U) => !Ke(U) && !U[j.value]) === void 0, Eo = (S) => S.find((U) => !Ke(U)) === void 0, Ge = (S) => Pe.value[Pe.value.map((U) => String(U[T.value])).indexOf(String(S))], Io = (S) => Pe.value.findIndex((U) => wt.value.some((ue) => (parseInt(U[ue]) == U[ue] ? parseInt(U[ue]) : U[ue]) === (parseInt(S) == S ? parseInt(S) : S))), Lo = (S) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && Ke(S), Po = (S) => {
5471
+ }, Oo = (S) => S.find((U) => !Ke(U) && !U[j.value]) === void 0, Eo = (S) => S.find((U) => !Ke(U)) === void 0, Ge = (S) => Pe.value[Pe.value.map((U) => String(U[O.value])).indexOf(String(S))], Io = (S) => Pe.value.findIndex((U) => wt.value.some((ue) => (parseInt(U[ue]) == U[ue] ? parseInt(U[ue]) : U[ue]) === (parseInt(S) == S ? parseInt(S) : S))), Lo = (S) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && Ke(S), Po = (S) => {
5472
5472
  it.value.push(S);
5473
- }, Ho = (S) => O.value ? S.filter(
5473
+ }, Ho = (S) => T.value ? S.filter(
5474
5474
  (U) => F.value ? U.__VISIBLE__.length : U[P.value].length
5475
5475
  ) : S.filter((U) => F.value ? U.__VISIBLE__.length : !0), vs = (S, U = !0) => {
5476
5476
  let ue = S;
@@ -5486,8 +5486,8 @@ function _7(t, e, a) {
5486
5486
  let U = S;
5487
5487
  return g7(U) && (U = Object.keys(U).map((ue) => {
5488
5488
  let ge = U[ue];
5489
- return { [T.value]: ue, [wt.value[0]]: ge, [u.value]: ge };
5490
- })), U = U.map((ue) => typeof ue == "object" ? ue : { [T.value]: ue, [wt.value[0]]: ue, [u.value]: ue }), U;
5489
+ return { [O.value]: ue, [wt.value[0]]: ge, [u.value]: ge };
5490
+ })), U = U.map((ue) => typeof ue == "object" ? ue : { [O.value]: ue, [wt.value[0]]: ue, [u.value]: ue }), U;
5491
5491
  }, Aa = () => {
5492
5492
  We(V.value) || (K.value = Oa(V.value));
5493
5493
  }, Ta = (S) => (Le.value = !0, new Promise((U, ue) => {
@@ -5501,14 +5501,14 @@ function _7(t, e, a) {
5501
5501
  })), hs = () => {
5502
5502
  if (us.value)
5503
5503
  if (n.value === "single") {
5504
- let S = Ge(K.value[T.value]);
5504
+ let S = Ge(K.value[O.value]);
5505
5505
  if (S !== void 0) {
5506
5506
  let U = S[u.value];
5507
5507
  K.value[u.value] = U, g.value && (V.value[u.value] = U);
5508
5508
  }
5509
5509
  } else
5510
5510
  K.value.forEach((S, U) => {
5511
- let ue = Ge(K.value[U][T.value]);
5511
+ let ue = Ge(K.value[U][O.value]);
5512
5512
  if (ue !== void 0) {
5513
5513
  let ge = ue[u.value];
5514
5514
  K.value[U][u.value] = ge, g.value && (V.value[U][u.value] = ge);
@@ -5518,11 +5518,11 @@ function _7(t, e, a) {
5518
5518
  Ta(S);
5519
5519
  }, Oa = (S) => We(S) ? n.value === "single" ? {} : [] : g.value ? S : n.value === "single" ? Ge(S) || (H.value ? {
5520
5520
  [u.value]: S,
5521
- [T.value]: S,
5521
+ [O.value]: S,
5522
5522
  [wt.value[0]]: S
5523
5523
  } : {}) : S.filter((U) => !!Ge(U) || H.value).map((U) => Ge(U) || {
5524
5524
  [u.value]: U,
5525
- [T.value]: U,
5525
+ [O.value]: U,
5526
5526
  [wt.value[0]]: U
5527
5527
  }), un = () => {
5528
5528
  Ne.value = ce(F, (S) => {
@@ -5549,11 +5549,11 @@ function _7(t, e, a) {
5549
5549
  }
5550
5550
  switch (n.value) {
5551
5551
  case "single":
5552
- (g.value ? S[T.value] != K.value[T.value] : S != K.value[T.value]) && $e(Oa(S), !1);
5552
+ (g.value ? S[O.value] != K.value[O.value] : S != K.value[O.value]) && $e(Oa(S), !1);
5553
5553
  break;
5554
5554
  case "multiple":
5555
5555
  case "tags":
5556
- C7(g.value ? S.map((U) => U[T.value]) : S, K.value.map((U) => U[T.value])) || $e(Oa(S), !1);
5556
+ C7(g.value ? S.map((U) => U[O.value]) : S, K.value.map((U) => U[O.value])) || $e(Oa(S), !1);
5557
5557
  break;
5558
5558
  }
5559
5559
  }, { deep: !0 }), ce(s, (S, U) => {
@@ -5605,7 +5605,7 @@ function y7(t, e, a) {
5605
5605
  groupSelect: d,
5606
5606
  disabledProp: u,
5607
5607
  groupOptions: c
5608
- } = Ie(t), p = a.fo, h = a.fg, g = a.handleOptionClick, w = a.handleGroupClick, m = a.search, $ = a.pointer, b = a.setPointer, y = a.clearPointer, _ = a.multiselect, I = a.isOpen, T = M(() => p.value.filter((V) => !V[u.value])), H = M(() => h.value.filter((V) => !V[u.value])), R = M(() => r.value !== "single" && d.value), G = M(() => $.value && $.value.group), te = M(() => J($.value)), ne = M(() => {
5608
+ } = Ie(t), p = a.fo, h = a.fg, g = a.handleOptionClick, w = a.handleGroupClick, m = a.search, $ = a.pointer, b = a.setPointer, y = a.clearPointer, _ = a.multiselect, I = a.isOpen, O = M(() => p.value.filter((V) => !V[u.value])), H = M(() => h.value.filter((V) => !V[u.value])), R = M(() => r.value !== "single" && d.value), G = M(() => $.value && $.value.group), te = M(() => J($.value)), ne = M(() => {
5609
5609
  const V = G.value ? $.value : (
5610
5610
  /* istanbul ignore next */
5611
5611
  J($.value)
@@ -5621,35 +5621,35 @@ function y7(t, e, a) {
5621
5621
  }), ae = M(() => {
5622
5622
  const V = J($.value).__VISIBLE__.filter((F) => !F[u.value]);
5623
5623
  return V[V.map((F) => F[s.value]).indexOf($.value[s.value]) + 1];
5624
- }), P = M(() => [...ne.value.__VISIBLE__.filter((V) => !V[u.value])].slice(-1)[0]), O = M(() => [...Q.value.__VISIBLE__.filter((V) => !V[u.value])].slice(-1)[0]), Z = (V) => $.value && (!V.group && $.value[s.value] === V[s.value] || V.group !== void 0 && $.value[o.value] === V[o.value]) ? !0 : void 0, L = () => {
5625
- b(T.value[0] || null);
5624
+ }), P = M(() => [...ne.value.__VISIBLE__.filter((V) => !V[u.value])].slice(-1)[0]), T = M(() => [...Q.value.__VISIBLE__.filter((V) => !V[u.value])].slice(-1)[0]), Z = (V) => $.value && (!V.group && $.value[s.value] === V[s.value] || V.group !== void 0 && $.value[o.value] === V[o.value]) ? !0 : void 0, L = () => {
5625
+ b(O.value[0] || null);
5626
5626
  }, j = () => {
5627
5627
  !$.value || $.value[u.value] === !0 || (G.value ? w($.value) : g($.value));
5628
5628
  }, k = () => {
5629
5629
  if ($.value === null)
5630
- b((l.value && R.value ? H.value[0].__CREATE__ ? T.value[0] : H.value[0] : T.value[0]) || null);
5630
+ b((l.value && R.value ? H.value[0].__CREATE__ ? O.value[0] : H.value[0] : O.value[0]) || null);
5631
5631
  else if (l.value && R.value) {
5632
5632
  let V = G.value ? le.value : ae.value;
5633
5633
  V === void 0 && (V = N.value, V.__CREATE__ && (V = V[c.value][0])), b(V || /* istanbul ignore next */
5634
5634
  null);
5635
5635
  } else {
5636
- let V = T.value.map((F) => F[s.value]).indexOf($.value[s.value]) + 1;
5637
- T.value.length <= V && (V = 0), b(T.value[V] || null);
5636
+ let V = O.value.map((F) => F[s.value]).indexOf($.value[s.value]) + 1;
5637
+ O.value.length <= V && (V = 0), b(O.value[V] || null);
5638
5638
  }
5639
5639
  ke(() => {
5640
5640
  K();
5641
5641
  });
5642
5642
  }, D = () => {
5643
5643
  if ($.value === null) {
5644
- let V = T.value[T.value.length - 1];
5645
- l.value && R.value && (V = O.value, V === void 0 && (V = Q.value)), b(V || null);
5644
+ let V = O.value[O.value.length - 1];
5645
+ l.value && R.value && (V = T.value, V === void 0 && (V = Q.value)), b(V || null);
5646
5646
  } else if (l.value && R.value) {
5647
5647
  let V = G.value ? P.value : oe.value;
5648
5648
  V === void 0 && (V = G.value ? ne.value : te.value, V.__CREATE__ && (V = P.value, V === void 0 && (V = ne.value))), b(V || /* istanbul ignore next */
5649
5649
  null);
5650
5650
  } else {
5651
- let V = T.value.map((F) => F[s.value]).indexOf($.value[s.value]) - 1;
5652
- V < 0 && (V = T.value.length - 1), b(T.value[V] || null);
5651
+ let V = O.value.map((F) => F[s.value]).indexOf($.value[s.value]) - 1;
5652
+ V < 0 && (V = O.value.length - 1), b(O.value[V] || null);
5653
5653
  }
5654
5654
  ke(() => {
5655
5655
  K();
@@ -6042,12 +6042,12 @@ function X7(t, e) {
6042
6042
  }
6043
6043
  function qs(t, e) {
6044
6044
  e === void 0 && (e = {});
6045
- var a = e, s = a.placement, n = s === void 0 ? t.placement : s, i = a.strategy, o = i === void 0 ? t.strategy : i, l = a.boundary, r = l === void 0 ? A7 : l, d = a.rootBoundary, u = d === void 0 ? po : d, c = a.elementContext, p = c === void 0 ? oa : c, h = a.altBoundary, g = h === void 0 ? !1 : h, w = a.padding, m = w === void 0 ? 0 : w, $ = G7(typeof m != "number" ? m : X7(m, ns)), b = p === oa ? T7 : oa, y = t.rects.popper, _ = t.elements[g ? b : p], I = K7(Et(_) ? _ : _.contextElement || _t(t.elements.popper), r, u, o), T = qt(t.elements.reference), H = fo({
6046
- reference: T,
6045
+ var a = e, s = a.placement, n = s === void 0 ? t.placement : s, i = a.strategy, o = i === void 0 ? t.strategy : i, l = a.boundary, r = l === void 0 ? A7 : l, d = a.rootBoundary, u = d === void 0 ? po : d, c = a.elementContext, p = c === void 0 ? oa : c, h = a.altBoundary, g = h === void 0 ? !1 : h, w = a.padding, m = w === void 0 ? 0 : w, $ = G7(typeof m != "number" ? m : X7(m, ns)), b = p === oa ? T7 : oa, y = t.rects.popper, _ = t.elements[g ? b : p], I = K7(Et(_) ? _ : _.contextElement || _t(t.elements.popper), r, u, o), O = qt(t.elements.reference), H = fo({
6046
+ reference: O,
6047
6047
  element: y,
6048
6048
  strategy: "absolute",
6049
6049
  placement: n
6050
- }), R = ks(Object.assign({}, y, H)), G = p === oa ? R : T, te = {
6050
+ }), R = ks(Object.assign({}, y, H)), G = p === oa ? R : O, te = {
6051
6051
  top: I.top - G.top + $.top,
6052
6052
  bottom: G.bottom - I.bottom + $.bottom,
6053
6053
  left: I.left - G.left + $.left,
@@ -6123,8 +6123,8 @@ function Q7(t) {
6123
6123
  u.reset = !1, _ = -1;
6124
6124
  continue;
6125
6125
  }
6126
- var I = u.orderedModifiers[_], T = I.fn, H = I.options, R = H === void 0 ? {} : H, G = I.name;
6127
- typeof T == "function" && (u = T({
6126
+ var I = u.orderedModifiers[_], O = I.fn, H = I.options, R = H === void 0 ? {} : H, G = I.name;
6127
+ typeof O == "function" && (u = O({
6128
6128
  state: u,
6129
6129
  options: R,
6130
6130
  name: G,
@@ -6159,9 +6159,9 @@ function Q7(t) {
6159
6159
  name: $,
6160
6160
  instance: h,
6161
6161
  options: y
6162
- }), T = function() {
6162
+ }), O = function() {
6163
6163
  };
6164
- c.push(I || T);
6164
+ c.push(I || O);
6165
6165
  }
6166
6166
  });
6167
6167
  }
@@ -6234,20 +6234,20 @@ function Tn(t) {
6234
6234
  h = m.x, w = m.y;
6235
6235
  var $ = o.hasOwnProperty("x"), b = o.hasOwnProperty("y"), y = Xe, _ = Ue, I = window;
6236
6236
  if (d) {
6237
- var T = ss(a), H = "clientHeight", R = "clientWidth";
6238
- if (T === Ee(a) && (T = _t(a), at(T).position !== "static" && l === "absolute" && (H = "scrollHeight", R = "scrollWidth")), T = T, n === Ue || (n === Xe || n === mt) && i === va) {
6237
+ var O = ss(a), H = "clientHeight", R = "clientWidth";
6238
+ if (O === Ee(a) && (O = _t(a), at(O).position !== "static" && l === "absolute" && (H = "scrollHeight", R = "scrollWidth")), O = O, n === Ue || (n === Xe || n === mt) && i === va) {
6239
6239
  _ = Ye;
6240
- var G = c && T === I && I.visualViewport ? I.visualViewport.height : (
6240
+ var G = c && O === I && I.visualViewport ? I.visualViewport.height : (
6241
6241
  // $FlowFixMe[prop-missing]
6242
- T[H]
6242
+ O[H]
6243
6243
  );
6244
6244
  w -= G - s.height, w *= r ? 1 : -1;
6245
6245
  }
6246
6246
  if (n === Xe || (n === Ue || n === Ye) && i === va) {
6247
6247
  y = mt;
6248
- var te = c && T === I && I.visualViewport ? I.visualViewport.width : (
6248
+ var te = c && O === I && I.visualViewport ? I.visualViewport.width : (
6249
6249
  // $FlowFixMe[prop-missing]
6250
- T[R]
6250
+ O[R]
6251
6251
  );
6252
6252
  h -= te - s.width, h *= r ? 1 : -1;
6253
6253
  }
@@ -6357,7 +6357,7 @@ function fp(t) {
6357
6357
  rootBoundary: d,
6358
6358
  padding: c,
6359
6359
  altBoundary: u
6360
- }), $ = pt(e.placement), b = xt(e.placement), y = !b, _ = vo($), I = pp(_), T = e.modifiersData.popperOffsets, H = e.rects.reference, R = e.rects.popper, G = typeof w == "function" ? w(Object.assign({}, e.rects, {
6360
+ }), $ = pt(e.placement), b = xt(e.placement), y = !b, _ = vo($), I = pp(_), O = e.modifiersData.popperOffsets, H = e.rects.reference, R = e.rects.popper, G = typeof w == "function" ? w(Object.assign({}, e.rects, {
6361
6361
  placement: e.placement
6362
6362
  })) : w, te = typeof G == "number" ? {
6363
6363
  mainAxis: G,
@@ -6369,17 +6369,17 @@ function fp(t) {
6369
6369
  x: 0,
6370
6370
  y: 0
6371
6371
  };
6372
- if (T) {
6372
+ if (O) {
6373
6373
  if (i) {
6374
- var Q, le = _ === "y" ? Ue : Xe, oe = _ === "y" ? Ye : mt, ae = _ === "y" ? "height" : "width", P = T[_], O = P + m[le], Z = P - m[oe], L = h ? -R[ae] / 2 : 0, j = b === Yt ? H[ae] : R[ae], k = b === Yt ? -R[ae] : -H[ae], D = e.elements.arrow, J = h && D ? uo(D) : {
6374
+ var Q, le = _ === "y" ? Ue : Xe, oe = _ === "y" ? Ye : mt, ae = _ === "y" ? "height" : "width", P = O[_], T = P + m[le], Z = P - m[oe], L = h ? -R[ae] / 2 : 0, j = b === Yt ? H[ae] : R[ae], k = b === Yt ? -R[ae] : -H[ae], D = e.elements.arrow, J = h && D ? uo(D) : {
6375
6375
  width: 0,
6376
6376
  height: 0
6377
- }, K = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ho(), V = K[le], F = K[oe], he = Da(0, H[ae], J[ae]), $e = y ? H[ae] / 2 - L - he - V - te.mainAxis : j - he - V - te.mainAxis, Gt = y ? -H[ae] / 2 + L + he + F + te.mainAxis : k + he + F + te.mainAxis, Xt = e.elements.arrow && ss(e.elements.arrow), nt = Xt ? _ === "y" ? Xt.clientTop || 0 : Xt.clientLeft || 0 : 0, $a = (Q = ne == null ? void 0 : ne[_]) != null ? Q : 0, ls = P + $e - $a - nt, ot = P + Gt - $a, ka = Da(h ? Wa(O, ls) : O, P, h ? Mt(Z, ot) : Z);
6378
- T[_] = ka, N[_] = ka - P;
6377
+ }, K = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ho(), V = K[le], F = K[oe], he = Da(0, H[ae], J[ae]), $e = y ? H[ae] / 2 - L - he - V - te.mainAxis : j - he - V - te.mainAxis, Gt = y ? -H[ae] / 2 + L + he + F + te.mainAxis : k + he + F + te.mainAxis, Xt = e.elements.arrow && ss(e.elements.arrow), nt = Xt ? _ === "y" ? Xt.clientTop || 0 : Xt.clientLeft || 0 : 0, $a = (Q = ne == null ? void 0 : ne[_]) != null ? Q : 0, ls = P + $e - $a - nt, ot = P + Gt - $a, ka = Da(h ? Wa(T, ls) : T, P, h ? Mt(Z, ot) : Z);
6378
+ O[_] = ka, N[_] = ka - P;
6379
6379
  }
6380
6380
  if (l) {
6381
- var it, Ze = _ === "x" ? Ue : Xe, Le = _ === "x" ? Ye : mt, Ne = T[I], xe = I === "y" ? "height" : "width", Qt = Ne + m[Ze], Sa = Ne - m[Le], Pe = [Ue, Xe].indexOf($) !== -1, Jt = (it = ne == null ? void 0 : ne[I]) != null ? it : 0, lt = Pe ? Qt : Ne - H[xe] - R[xe] - Jt + te.altAxis, bt = Pe ? Ne + H[xe] + R[xe] - Jt - te.altAxis : Sa, Ma = h && Pe ? vp(lt, Ne, bt) : Da(h ? lt : Qt, Ne, h ? bt : Sa);
6382
- T[I] = Ma, N[I] = Ma - Ne;
6381
+ var it, Ze = _ === "x" ? Ue : Xe, Le = _ === "x" ? Ye : mt, Ne = O[I], xe = I === "y" ? "height" : "width", Qt = Ne + m[Ze], Sa = Ne - m[Le], Pe = [Ue, Xe].indexOf($) !== -1, Jt = (it = ne == null ? void 0 : ne[I]) != null ? it : 0, lt = Pe ? Qt : Ne - H[xe] - R[xe] - Jt + te.altAxis, bt = Pe ? Ne + H[xe] + R[xe] - Jt - te.altAxis : Sa, Ma = h && Pe ? vp(lt, Ne, bt) : Da(h ? lt : Qt, Ne, h ? bt : Sa);
6382
+ O[I] = Ma, N[I] = Ma - Ne;
6383
6383
  }
6384
6384
  e.modifiersData[s] = N;
6385
6385
  }
@@ -6448,7 +6448,7 @@ function yp(t) {
6448
6448
  flipVariations: g,
6449
6449
  allowedAutoPlacements: w
6450
6450
  }) : K);
6451
- }, []), I = e.rects.reference, T = e.rects.popper, H = /* @__PURE__ */ new Map(), R = !0, G = _[0], te = 0; te < _.length; te++) {
6451
+ }, []), I = e.rects.reference, O = e.rects.popper, H = /* @__PURE__ */ new Map(), R = !0, G = _[0], te = 0; te < _.length; te++) {
6452
6452
  var ne = _[te], N = pt(ne), Q = xt(ne) === Yt, le = [Ue, Ye].indexOf(N) >= 0, oe = le ? "width" : "height", ae = qs(e, {
6453
6453
  placement: ne,
6454
6454
  boundary: u,
@@ -6456,9 +6456,9 @@ function yp(t) {
6456
6456
  altBoundary: p,
6457
6457
  padding: d
6458
6458
  }), P = le ? Q ? mt : Xe : Q ? Ye : Ue;
6459
- I[oe] > T[oe] && (P = Va(P));
6460
- var O = Va(P), Z = [];
6461
- if (i && Z.push(ae[N] <= 0), l && Z.push(ae[P] <= 0, ae[O] <= 0), Z.every(function(J) {
6459
+ I[oe] > O[oe] && (P = Va(P));
6460
+ var T = Va(P), Z = [];
6461
+ if (i && Z.push(ae[N] <= 0), l && Z.push(ae[P] <= 0, ae[T] <= 0), Z.every(function(J) {
6462
6462
  return J;
6463
6463
  })) {
6464
6464
  G = ne, R = !1;
@@ -6620,7 +6620,7 @@ function kp(t, e, a) {
6620
6620
  createTag: c,
6621
6621
  createOption: p,
6622
6622
  reverse: h
6623
- } = Ie(t), g = Pt().proxy, w = a.iv, m = a.update, $ = a.deselect, b = a.search, y = a.setPointer, _ = a.selectPointer, I = a.backwardPointer, T = a.forwardPointer, H = a.multiselect, R = a.wrapper, G = a.tags, te = a.isOpen, ne = a.open, N = a.blur, Q = a.fo, le = M(() => c.value || p.value || !1), oe = M(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ae = () => {
6623
+ } = Ie(t), g = Pt().proxy, w = a.iv, m = a.update, $ = a.deselect, b = a.search, y = a.setPointer, _ = a.selectPointer, I = a.backwardPointer, O = a.forwardPointer, H = a.multiselect, R = a.wrapper, G = a.tags, te = a.isOpen, ne = a.open, N = a.blur, Q = a.fo, le = M(() => c.value || p.value || !1), oe = M(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ae = () => {
6624
6624
  s.value === "tags" && !l.value && le.value && o.value && !d.value && y(Q.value[Q.value.map((Z) => Z[r.value]).indexOf(b.value)]);
6625
6625
  };
6626
6626
  return {
@@ -6674,7 +6674,7 @@ function kp(t, e, a) {
6674
6674
  case "ArrowDown":
6675
6675
  if (Z.preventDefault(), !l.value)
6676
6676
  return;
6677
- te.value || ne(), T();
6677
+ te.value || ne(), O();
6678
6678
  break;
6679
6679
  case "ArrowLeft":
6680
6680
  if (o.value && G.value && G.value.querySelector("input").selectionStart || Z.shiftKey || s.value !== "tags" || !w.value || !w.value.length)
@@ -6792,8 +6792,8 @@ function Sp(t, e, a) {
6792
6792
  },
6793
6793
  groupOptions: y.groupOptions,
6794
6794
  option: (_, I) => {
6795
- let T = [y.option];
6796
- return r(_) ? T.push(d(_) ? y.optionSelectedPointed : y.optionPointed) : d(_) ? T.push(u(_) ? y.optionSelectedDisabled : y.optionSelected) : (u(_) || I && u(I)) && T.push(y.optionDisabled), T;
6795
+ let O = [y.option];
6796
+ return r(_) ? O.push(d(_) ? y.optionSelectedPointed : y.optionPointed) : d(_) ? O.push(u(_) ? y.optionSelectedDisabled : y.optionSelected) : (u(_) || I && u(I)) && O.push(y.optionDisabled), O;
6797
6797
  },
6798
6798
  noOptions: y.noOptions,
6799
6799
  noResults: y.noResults,
@@ -6855,7 +6855,7 @@ function Ap(t, e, a) {
6855
6855
  }), y = M(() => s.value), _ = M(() => l.value !== "single"), I = M(() => {
6856
6856
  let N = "";
6857
6857
  return l.value === "single" && h.value && (N += p.value[o.value]), l.value === "multiple" && h.value && (N += g.value), l.value === "tags" && h.value && (N += p.value.map((Q) => Q[o.value]).join(", ")), N;
6858
- }), T = M(() => {
6858
+ }), O = M(() => {
6859
6859
  let N = { ...d.value };
6860
6860
  return u.value && (N["aria-labelledby"] = N["aria-labelledby"] ? `${m.value} ${N["aria-labelledby"]}` : m.value, I.value && N["aria-label"] && (N["aria-label"] = `${I.value}, ${N["aria-label"]}`)), N;
6861
6861
  }), H = (N) => {
@@ -6877,7 +6877,7 @@ function Ap(t, e, a) {
6877
6877
  w.value = N ? N.innerText : null;
6878
6878
  }
6879
6879
  }), {
6880
- arias: T,
6880
+ arias: O,
6881
6881
  ariaLabel: I,
6882
6882
  ariaAssist: m,
6883
6883
  ariaControls: $,
@@ -8120,7 +8120,7 @@ const gv = { class: "ao-comment" }, Cv = { class: "ao-comment__created-at" }, _v
8120
8120
  const I = a.user;
8121
8121
  return I ? `${I == null ? void 0 : I.firstName} ${I == null ? void 0 : I.lastName}` : null;
8122
8122
  }), n = x(null), i = x(a.content), { isEditing: o, toggleIsEditing: l, onUpdate: r, onDiscard: d } = Hn(n), u = M(() => {
8123
- const I = a.editedAt && ca(a.editedAt), T = ca(a.createdAt), H = /* @__PURE__ */ new Date(), R = I ?? T;
8123
+ const I = a.editedAt && ca(a.editedAt), O = ca(a.createdAt), H = /* @__PURE__ */ new Date(), R = I ?? O;
8124
8124
  return R && p3(R, H);
8125
8125
  });
8126
8126
  M(() => o.value ? "textarea" : "p");
@@ -8133,8 +8133,8 @@ const gv = { class: "ao-comment" }, Cv = { class: "ao-comment__created-at" }, _v
8133
8133
  ke(() => {
8134
8134
  var I;
8135
8135
  if (!o.value) {
8136
- const T = (I = n.value) == null ? void 0 : I.getClientRects().length;
8137
- g.value = T || 2;
8136
+ const O = (I = n.value) == null ? void 0 : I.getClientRects().length;
8137
+ g.value = O || 2;
8138
8138
  }
8139
8139
  });
8140
8140
  });
@@ -8146,7 +8146,7 @@ const gv = { class: "ao-comment" }, Cv = { class: "ao-comment__created-at" }, _v
8146
8146
  handleKeydown: y,
8147
8147
  selectUserMention: _
8148
8148
  } = Xn(n, i, dt(a, "mentionableUsers"));
8149
- return (I, T) => {
8149
+ return (I, O) => {
8150
8150
  var H;
8151
8151
  return v(), C("li", gv, [
8152
8152
  s.value ? (v(), B(et, {
@@ -8163,19 +8163,19 @@ const gv = { class: "ao-comment" }, Cv = { class: "ao-comment__created-at" }, _v
8163
8163
  ref_key: "commentContent",
8164
8164
  ref: n,
8165
8165
  class: "ao-comment__content",
8166
- "onUpdate:modelValue": T[0] || (T[0] = (R) => i.value = R),
8166
+ "onUpdate:modelValue": O[0] || (O[0] = (R) => i.value = R),
8167
8167
  rows: g.value,
8168
- onInput: T[1] || (T[1] = //@ts-ignore
8168
+ onInput: O[1] || (O[1] = //@ts-ignore
8169
8169
  (...R) => W(b) && W(b)(...R)),
8170
- onKeydown: T[2] || (T[2] = //@ts-ignore
8170
+ onKeydown: O[2] || (O[2] = //@ts-ignore
8171
8171
  (...R) => W(y) && W(y)(...R)),
8172
8172
  onKeyup: [
8173
- T[3] || (T[3] = vt(
8173
+ O[3] || (O[3] = vt(
8174
8174
  //@ts-ignore
8175
8175
  (...R) => W(c) && W(c)(...R),
8176
8176
  ["esc"]
8177
8177
  )),
8178
- T[4] || (T[4] = vt(ve(
8178
+ O[4] || (O[4] = vt(ve(
8179
8179
  //@ts-ignore
8180
8180
  (...R) => W(p) && W(p)(...R),
8181
8181
  ["ctrl"]
@@ -8291,14 +8291,14 @@ const Mv = { class: "ao-comments__header" }, Av = ["onSubmit"], Tv = ["placehold
8291
8291
  Me(f("textarea", {
8292
8292
  ref_key: "textareaRef",
8293
8293
  ref: c,
8294
- "onUpdate:modelValue": _[0] || (_[0] = (T) => l.value = T),
8294
+ "onUpdate:modelValue": _[0] || (_[0] = (O) => l.value = O),
8295
8295
  rows: "2",
8296
8296
  class: "ao-field__textarea ao-comments__form-textarea",
8297
8297
  placeholder: y.$t("activity.comment.label"),
8298
8298
  onInput: _[1] || (_[1] = //@ts-ignore
8299
- (...T) => W(w) && W(w)(...T)),
8299
+ (...O) => W(w) && W(w)(...O)),
8300
8300
  onKeydown: _[2] || (_[2] = //@ts-ignore
8301
- (...T) => W(m) && W(m)(...T))
8301
+ (...O) => W(m) && W(m)(...O))
8302
8302
  }, null, 40, Tv), [
8303
8303
  [
8304
8304
  Ve,
@@ -8320,17 +8320,17 @@ const Mv = { class: "ao-comments__header" }, Av = ["onSubmit"], Tv = ["placehold
8320
8320
  ], 40, Av)
8321
8321
  ]),
8322
8322
  ((I = s.value) == null ? void 0 : I.length) > 0 ? (v(), C("ul", Ev, [
8323
- (v(!0), C(fe, null, Ce(s.value, (T) => (v(), B(Sv, {
8324
- key: T.id,
8325
- user: n(T.author.id),
8326
- content: T.message,
8327
- "created-at": T.createdAt,
8328
- "edited-at": T.updatedAt,
8329
- "is-editable": T.author.id === y.userId,
8323
+ (v(!0), C(fe, null, Ce(s.value, (O) => (v(), B(Sv, {
8324
+ key: O.id,
8325
+ user: n(O.author.id),
8326
+ content: O.message,
8327
+ "created-at": O.createdAt,
8328
+ "edited-at": O.updatedAt,
8329
+ "is-editable": O.author.id === y.userId,
8330
8330
  "mentionable-users": y.users,
8331
8331
  class: "ao-comment",
8332
- onEdit: (H) => d(T.id, H),
8333
- onRemove: () => u(T.id)
8332
+ onEdit: (H) => d(O.id, H),
8333
+ onRemove: () => u(O.id)
8334
8334
  }, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "mentionable-users", "onEdit", "onRemove"]))), 128))
8335
8335
  ])) : E("", !0),
8336
8336
  W(p) && W(g).length > 0 ? (v(), C("ul", {
@@ -8338,10 +8338,10 @@ const Mv = { class: "ao-comments__header" }, Av = ["onSubmit"], Tv = ["placehold
8338
8338
  class: "mention-list",
8339
8339
  style: Fe({ top: W(h).top + "px", left: W(h).left + "px" })
8340
8340
  }, [
8341
- (v(!0), C(fe, null, Ce(W(g), (T) => (v(), C("li", {
8342
- key: T.id,
8343
- onClick: (H) => W($)(T.name)
8344
- }, " @" + Y(T.name), 9, Iv))), 128))
8341
+ (v(!0), C(fe, null, Ce(W(g), (O) => (v(), C("li", {
8342
+ key: O.id,
8343
+ onClick: (H) => W($)(O.name)
8344
+ }, " @" + Y(O.name), 9, Iv))), 128))
8345
8345
  ], 4)) : E("", !0)
8346
8346
  ], 512);
8347
8347
  };
@@ -8526,7 +8526,7 @@ const Ss = /* @__PURE__ */ X({
8526
8526
  function I() {
8527
8527
  a.userId ? R.value = [a.userId] : console.error("Failed assigning to self: userId is missing");
8528
8528
  }
8529
- function T(k) {
8529
+ function O(k) {
8530
8530
  R.value = [k];
8531
8531
  }
8532
8532
  const H = M(() => {
@@ -8597,7 +8597,7 @@ const Ss = /* @__PURE__ */ X({
8597
8597
  ...k,
8598
8598
  activityId: a.activity.id
8599
8599
  });
8600
- }, O = (k) => {
8600
+ }, T = (k) => {
8601
8601
  e("updateComment", k);
8602
8602
  }, Z = (k) => {
8603
8603
  e("removeComment", k);
@@ -8777,7 +8777,7 @@ const Ss = /* @__PURE__ */ X({
8777
8777
  users: k.users,
8778
8778
  "user-id": k.userId,
8779
8779
  onCreateComment: P,
8780
- onUpdateComment: O,
8780
+ onUpdateComment: T,
8781
8781
  onRemoveComment: Z
8782
8782
  }, null, 8, ["comments", "users", "user-id"])
8783
8783
  ])) : E("", !0)
@@ -8829,7 +8829,7 @@ const Ss = /* @__PURE__ */ X({
8829
8829
  mode: "tags",
8830
8830
  disabled: !s.value,
8831
8831
  caret: s.value,
8832
- onSelect: T
8832
+ onSelect: O
8833
8833
  }, {
8834
8834
  tag: z(({
8835
8835
  option: F,
@@ -9170,7 +9170,7 @@ const Nf = {
9170
9170
  const a = t, { t: s } = yt(), n = M(
9171
9171
  () => {
9172
9172
  var P;
9173
- return (P = a.templates) == null ? void 0 : P.find((O) => O.id === a.templateId);
9173
+ return (P = a.templates) == null ? void 0 : P.find((T) => T.id === a.templateId);
9174
9174
  }
9175
9175
  ), i = x(!1);
9176
9176
  ce(
@@ -9181,26 +9181,26 @@ const Nf = {
9181
9181
  var P;
9182
9182
  return (P = n.value) == null ? void 0 : P.phases;
9183
9183
  },
9184
- (P, O) => {
9185
- i.value && Qe(P, O);
9184
+ (P, T) => {
9185
+ i.value && Qe(P, T);
9186
9186
  }
9187
9187
  );
9188
9188
  const o = M(() => {
9189
- var P, O;
9190
- return (O = (P = n == null ? void 0 : n.value) == null ? void 0 : P.phases) == null ? void 0 : O.find((Z) => Z.id === a.phaseId);
9189
+ var P, T;
9190
+ return (T = (P = n == null ? void 0 : n.value) == null ? void 0 : P.phases) == null ? void 0 : T.find((Z) => Z.id === a.phaseId);
9191
9191
  });
9192
9192
  ce(
9193
9193
  () => {
9194
9194
  var P;
9195
9195
  return (P = o.value) == null ? void 0 : P.milestones;
9196
9196
  },
9197
- (P, O) => {
9198
- i.value && Qe(P, O);
9197
+ (P, T) => {
9198
+ i.value && Qe(P, T);
9199
9199
  }
9200
9200
  );
9201
9201
  const l = M(() => {
9202
- var P, O;
9203
- return (O = (P = o.value) == null ? void 0 : P.milestones) == null ? void 0 : O.find(
9202
+ var P, T;
9203
+ return (T = (P = o.value) == null ? void 0 : P.milestones) == null ? void 0 : T.find(
9204
9204
  (Z) => Z.id === a.milestoneId
9205
9205
  );
9206
9206
  });
@@ -9209,19 +9209,19 @@ const Nf = {
9209
9209
  var P;
9210
9210
  return (P = l.value) == null ? void 0 : P.activities;
9211
9211
  },
9212
- (P, O) => {
9213
- i.value && Qe(P, O);
9212
+ (P, T) => {
9213
+ i.value && Qe(P, T);
9214
9214
  }
9215
9215
  );
9216
9216
  const r = M(() => {
9217
- var P, O;
9218
- return ((O = (P = n.value) == null ? void 0 : P.phases) == null ? void 0 : O.reduce((Z, L) => {
9217
+ var P, T;
9218
+ return ((T = (P = n.value) == null ? void 0 : P.phases) == null ? void 0 : T.reduce((Z, L) => {
9219
9219
  const j = L.milestones || [];
9220
9220
  return [...Z, ...j];
9221
9221
  }, [])) || [];
9222
9222
  }), d = M(() => {
9223
- var P, O;
9224
- return ((O = (P = n.value) == null ? void 0 : P.phases) == null ? void 0 : O.reduce((Z, L) => {
9223
+ var P, T;
9224
+ return ((T = (P = n.value) == null ? void 0 : P.phases) == null ? void 0 : T.reduce((Z, L) => {
9225
9225
  const k = (L.milestones || []).reduce(
9226
9226
  (D, J) => J.activities ? [...D, ...J.activities] : D,
9227
9227
  []
@@ -9229,8 +9229,8 @@ const Nf = {
9229
9229
  return [...Z, ...k];
9230
9230
  }, [])) || [];
9231
9231
  }), u = M(() => {
9232
- var P, O;
9233
- return (O = (P = l.value) == null ? void 0 : P.activities) == null ? void 0 : O.find(
9232
+ var P, T;
9233
+ return (T = (P = l.value) == null ? void 0 : P.activities) == null ? void 0 : T.find(
9234
9234
  (Z) => Z.id === a.activityId
9235
9235
  );
9236
9236
  }), c = M(() => {
@@ -9239,7 +9239,7 @@ const Nf = {
9239
9239
  }), p = () => {
9240
9240
  if (!n.value)
9241
9241
  return;
9242
- const { name: P, rank: O } = At(
9242
+ const { name: P, rank: T } = At(
9243
9243
  n.value.phases,
9244
9244
  "phase",
9245
9245
  s
@@ -9249,7 +9249,7 @@ const Nf = {
9249
9249
  templateId: a.templateId,
9250
9250
  item: {
9251
9251
  name: P,
9252
- rank: O
9252
+ rank: T
9253
9253
  }
9254
9254
  });
9255
9255
  }, h = (P) => {
@@ -9267,19 +9267,19 @@ const Nf = {
9267
9267
  id: P
9268
9268
  }
9269
9269
  });
9270
- }, w = (P, O) => {
9270
+ }, w = (P, T) => {
9271
9271
  e("updateItem", {
9272
9272
  templateId: a.templateId,
9273
9273
  id: P,
9274
9274
  itemType: me.PHASES,
9275
- data: { name: O }
9275
+ data: { name: T }
9276
9276
  });
9277
9277
  }, m = (P) => {
9278
9278
  e("updateItem", P);
9279
9279
  }, $ = (P) => {
9280
9280
  if (!o.value)
9281
9281
  return;
9282
- const { name: O, rank: Z } = At(
9282
+ const { name: T, rank: Z } = At(
9283
9283
  o.value.milestones,
9284
9284
  "milestone",
9285
9285
  s
@@ -9289,7 +9289,7 @@ const Nf = {
9289
9289
  templateId: a.templateId,
9290
9290
  phaseId: P.phaseId,
9291
9291
  item: {
9292
- name: O,
9292
+ name: T,
9293
9293
  rank: Z,
9294
9294
  phaseId: P.phaseId
9295
9295
  }
@@ -9304,15 +9304,15 @@ const Nf = {
9304
9304
  }
9305
9305
  });
9306
9306
  }, y = (P) => {
9307
- const { id: O, ...Z } = P;
9307
+ const { id: T, ...Z } = P;
9308
9308
  e("updateItem", {
9309
9309
  itemType: me.MILESTONES,
9310
- id: O,
9310
+ id: T,
9311
9311
  templateId: a.templateId,
9312
9312
  data: Z
9313
9313
  });
9314
9314
  }, _ = (P) => {
9315
- const { milestoneId: O } = P;
9315
+ const { milestoneId: T } = P;
9316
9316
  if (!l.value)
9317
9317
  return;
9318
9318
  const { name: Z, rank: L } = At(
@@ -9322,26 +9322,26 @@ const Nf = {
9322
9322
  );
9323
9323
  i.value = !0, e("addItem", {
9324
9324
  type: me.ACTIVITIES,
9325
- milestoneId: O,
9325
+ milestoneId: T,
9326
9326
  templateId: a.templateId,
9327
- item: { name: Z, rank: L, milestoneId: O }
9327
+ item: { name: Z, rank: L, milestoneId: T }
9328
9328
  });
9329
9329
  }, I = (P) => {
9330
- var O, Z;
9330
+ var T, Z;
9331
9331
  e("removeItem", {
9332
9332
  itemType: me.ACTIVITIES,
9333
9333
  templateId: a.templateId,
9334
- phaseId: (O = o.value) == null ? void 0 : O.id,
9334
+ phaseId: (T = o.value) == null ? void 0 : T.id,
9335
9335
  milestoneId: (Z = l.value) == null ? void 0 : Z.id,
9336
9336
  data: {
9337
9337
  id: P.id
9338
9338
  }
9339
9339
  });
9340
- }, T = (P) => {
9341
- const { id: O, ...Z } = P;
9340
+ }, O = (P) => {
9341
+ const { id: T, ...Z } = P;
9342
9342
  e("updateItem", {
9343
9343
  itemType: me.ACTIVITIES,
9344
- id: O,
9344
+ id: T,
9345
9345
  templateId: a.templateId,
9346
9346
  data: Z
9347
9347
  });
@@ -9352,9 +9352,9 @@ const Nf = {
9352
9352
  }, te = (P) => {
9353
9353
  e("removeRule", { id: P, templateId: a.templateId });
9354
9354
  }, ne = (P) => {
9355
- var O;
9355
+ var T;
9356
9356
  if (P.moved) {
9357
- const Z = ya(P, ((O = n.value) == null ? void 0 : O.phases) ?? []);
9357
+ const Z = ya(P, ((T = n.value) == null ? void 0 : T.phases) ?? []);
9358
9358
  e("updateItem", {
9359
9359
  itemType: me.PHASES,
9360
9360
  id: P.moved.element.id,
@@ -9394,19 +9394,19 @@ const Nf = {
9394
9394
  }, ae = (P) => {
9395
9395
  e("removeFile", P);
9396
9396
  };
9397
- return (P, O) => {
9397
+ return (P, T) => {
9398
9398
  var Z, L, j, k, D, J;
9399
9399
  return n.value ? (v(), C("div", Nf, [
9400
9400
  A(ba, {
9401
9401
  "can-go-back": !0,
9402
- onGoBack: O[1] || (O[1] = (K) => P.$router.push({ name: W(Rt).TEMPLATES_LIST }))
9402
+ onGoBack: T[1] || (T[1] = (K) => P.$router.push({ name: W(Rt).TEMPLATES_LIST }))
9403
9403
  }, {
9404
9404
  primary: z(() => [
9405
9405
  A(be, {
9406
9406
  title: c.value,
9407
9407
  level: 2,
9408
9408
  "is-editable": !0,
9409
- "onUpdate:title": O[0] || (O[0] = (K) => {
9409
+ "onUpdate:title": T[0] || (T[0] = (K) => {
9410
9410
  h(K);
9411
9411
  })
9412
9412
  }, null, 8, ["title"])
@@ -9481,7 +9481,7 @@ const Nf = {
9481
9481
  milestone: l.value,
9482
9482
  "activity-id": (j = u.value) == null ? void 0 : j.id,
9483
9483
  onAddActivity: _,
9484
- onUpdateActivity: T,
9484
+ onUpdateActivity: O,
9485
9485
  onRemoveActivity: I
9486
9486
  }, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) : E("", !0)
9487
9487
  ])
@@ -9499,8 +9499,8 @@ const Nf = {
9499
9499
  "is-template": !0,
9500
9500
  "is-editable": !0,
9501
9501
  users: P.users,
9502
- "onUpdate:activity": O[2] || (O[2] = (K) => {
9503
- u.value && T(K);
9502
+ "onUpdate:activity": T[2] || (T[2] = (K) => {
9503
+ u.value && O(K);
9504
9504
  }),
9505
9505
  "attachment-enabled": !1,
9506
9506
  onClose: P.$router.back,
@@ -11180,7 +11180,7 @@ const s9 = { class: "ao-project-phase" }, n9 = {
11180
11180
  important: _.important,
11181
11181
  readonly: b.readonly,
11182
11182
  class: ee(["ao-project-phase__milestone"]),
11183
- onClick: (T) => !b.readonly && b.$router.push({
11183
+ onClick: (O) => !b.readonly && b.$router.push({
11184
11184
  name: W(ye).milestone,
11185
11185
  params: { phaseId: b.phase.id, milestoneId: _.id }
11186
11186
  }),
@@ -11459,74 +11459,75 @@ const sn = /* @__PURE__ */ q(O9, [["render", L9], ["__scopeId", "data-v-ff4e3297
11459
11459
  activityTypes: {},
11460
11460
  isEditable: { type: [Boolean, String] },
11461
11461
  showsArchived: { type: Boolean },
11462
- attachmentEnabled: { type: Boolean }
11462
+ attachmentEnabled: { type: Boolean },
11463
+ timeTrackingData: {}
11463
11464
  },
11464
11465
  emits: ["addPhase", "updatePhase", "archivePhase", "unarchivePhase", "addMilestone", "updateMilestone", "archiveMilestone", "unarchiveMilestone", "addActivity", "update:activity", "archiveActivity", "copyPhaseToTemplate", "unarchiveActivity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "applyTemplate", "saveTemplate", "update:showsArchived"],
11465
11466
  setup(t, { emit: e }) {
11466
11467
  const a = t, { t: s } = yt(), n = M(
11467
- () => a.phases.flatMap((O) => O.milestones)
11468
+ () => a.phases.flatMap((T) => T.milestones)
11468
11469
  ), i = () => {
11469
- const { name: O, rank: Z } = At(a.phases, "phase", s);
11470
- e("addPhase", { name: O, rank: Z, projectId: a.project.id });
11471
- }, o = (O) => {
11472
- e("updatePhase", O);
11473
- }, l = (O) => {
11474
- e("archivePhase", O);
11475
- }, r = (O) => {
11476
- e("unarchivePhase", O);
11477
- }, d = (O) => {
11478
- e("copyPhaseToTemplate", O);
11479
- }, u = (O) => {
11480
- e("addMilestone", O);
11481
- }, c = (O) => {
11482
- e("updateMilestone", O);
11483
- }, p = (O) => {
11484
- e("archiveMilestone", O);
11485
- }, h = (O) => {
11486
- e("unarchiveMilestone", O);
11487
- }, g = (O) => {
11488
- e("addActivity", O);
11489
- }, w = (O) => {
11490
- e("update:activity", O);
11491
- }, m = (O) => {
11492
- e("archiveActivity", O);
11493
- }, $ = (O) => {
11494
- e("unarchiveActivity", O);
11495
- }, b = (O) => {
11496
- e("addSubtask", O);
11497
- }, y = (O) => {
11498
- e("updateSubtask", O);
11499
- }, _ = (O) => {
11500
- e("deleteSubtask", O);
11470
+ const { name: T, rank: Z } = At(a.phases, "phase", s);
11471
+ e("addPhase", { name: T, rank: Z, projectId: a.project.id });
11472
+ }, o = (T) => {
11473
+ e("updatePhase", T);
11474
+ }, l = (T) => {
11475
+ e("archivePhase", T);
11476
+ }, r = (T) => {
11477
+ e("unarchivePhase", T);
11478
+ }, d = (T) => {
11479
+ e("copyPhaseToTemplate", T);
11480
+ }, u = (T) => {
11481
+ e("addMilestone", T);
11482
+ }, c = (T) => {
11483
+ e("updateMilestone", T);
11484
+ }, p = (T) => {
11485
+ e("archiveMilestone", T);
11486
+ }, h = (T) => {
11487
+ e("unarchiveMilestone", T);
11488
+ }, g = (T) => {
11489
+ e("addActivity", T);
11490
+ }, w = (T) => {
11491
+ e("update:activity", T);
11492
+ }, m = (T) => {
11493
+ e("archiveActivity", T);
11494
+ }, $ = (T) => {
11495
+ e("unarchiveActivity", T);
11496
+ }, b = (T) => {
11497
+ e("addSubtask", T);
11498
+ }, y = (T) => {
11499
+ e("updateSubtask", T);
11500
+ }, _ = (T) => {
11501
+ e("deleteSubtask", T);
11501
11502
  }, I = M(
11502
- () => n.value.flatMap((O) => O.activities)
11503
- ), T = (O) => {
11504
- e("addFiles", O);
11505
- }, H = (O) => {
11506
- e("removeFile", O);
11507
- }, R = (O) => {
11508
- e("addComment", O);
11509
- }, G = (O) => {
11510
- e("updateComment", O);
11511
- }, te = (O) => {
11512
- e("removeComment", O);
11513
- }, ne = x(!1), N = x(!1), Q = (O, Z) => {
11514
- e("applyTemplate", { templateId: O, projectId: Z }), ne.value = !1;
11515
- }, le = (O, Z) => {
11503
+ () => n.value.flatMap((T) => T.activities)
11504
+ ), O = (T) => {
11505
+ e("addFiles", T);
11506
+ }, H = (T) => {
11507
+ e("removeFile", T);
11508
+ }, R = (T) => {
11509
+ e("addComment", T);
11510
+ }, G = (T) => {
11511
+ e("updateComment", T);
11512
+ }, te = (T) => {
11513
+ e("removeComment", T);
11514
+ }, ne = x(!1), N = x(!1), Q = (T, Z) => {
11515
+ e("applyTemplate", { templateId: T, projectId: Z }), ne.value = !1;
11516
+ }, le = (T, Z) => {
11516
11517
  var k;
11517
11518
  const L = (k = a.templates) == null ? void 0 : k.at(-1), j = L ? we.LexoRank.parse(L.rank).genNext() : we.LexoRank.middle();
11518
- e("saveTemplate", { templateName: O, rank: j.format(), phaseIds: Z }), N.value = !1;
11519
+ e("saveTemplate", { templateName: T, rank: j.format(), phaseIds: Z }), N.value = !1;
11519
11520
  }, oe = Es(), ae = x("overview"), P = [
11520
11521
  { label: "Overview", value: "overview" },
11521
11522
  { label: "Feed", value: "feed" },
11522
11523
  { label: "Mapping", value: "mapping" }
11523
11524
  ];
11524
- return ce(ae, (O) => {
11525
- O === "feed" ? (oe.push({ name: ye.feed }), console.log("Navigating to feed...")) : O === "overview" ? (oe.push({ name: ye.project }), console.log("Navigating to feed...")) : O === "mapping" && (oe.push({ name: ye.mapping }), console.log("Navigating to feed..."));
11526
- }), (O, Z) => {
11525
+ return ce(ae, (T) => {
11526
+ T === "feed" ? (oe.push({ name: ye.feed }), console.log("Navigating to feed...")) : T === "overview" ? (oe.push({ name: ye.project }), console.log("Navigating to feed...")) : T === "mapping" && (oe.push({ name: ye.mapping }), console.log("Navigating to feed..."));
11527
+ }), (T, Z) => {
11527
11528
  const L = ut("RouterView");
11528
11529
  return v(), C(fe, null, [
11529
- f("div", Te({ class: "ao-project-overview" }, O.$attrs), [
11530
+ f("div", Te({ class: "ao-project-overview" }, T.$attrs), [
11530
11531
  f("div", P9, [
11531
11532
  A(ba, null, {
11532
11533
  primary: z(() => [
@@ -11538,29 +11539,29 @@ const sn = /* @__PURE__ */ q(O9, [["render", L9], ["__scopeId", "data-v-ff4e3297
11538
11539
  A(re, {
11539
11540
  class: "ao-feed__show-archived",
11540
11541
  size: "sm",
11541
- "icon-name": O.showsArchived ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
11542
+ "icon-name": T.showsArchived ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
11542
11543
  "icon-position": "start",
11543
11544
  color: "primary",
11544
11545
  variant: "ghost",
11545
- label: O.$t("feed.filters.showsArchived.label"),
11546
+ label: T.$t("feed.filters.showsArchived.label"),
11546
11547
  role: "checkbox",
11547
- "aria-checked": O.showsArchived,
11548
- onClick: Z[1] || (Z[1] = (j) => O.$emit("update:showsArchived", !O.showsArchived))
11548
+ "aria-checked": T.showsArchived,
11549
+ onClick: Z[1] || (Z[1] = (j) => T.$emit("update:showsArchived", !T.showsArchived))
11549
11550
  }, null, 8, ["icon-name", "label", "aria-checked"])
11550
11551
  ]),
11551
11552
  secondary: z(() => [
11552
- O.isEditable === !0 ? (v(), B(re, {
11553
+ T.isEditable === !0 ? (v(), B(re, {
11553
11554
  key: 0,
11554
11555
  class: "ao-project-overview__save-as-template",
11555
11556
  color: "primary",
11556
- label: O.$t("project.template.save.label"),
11557
+ label: T.$t("project.template.save.label"),
11557
11558
  onClick: Z[2] || (Z[2] = (j) => N.value = !0)
11558
11559
  }, null, 8, ["label"])) : E("", !0),
11559
- O.isEditable === !0 ? (v(), B(re, {
11560
+ T.isEditable === !0 ? (v(), B(re, {
11560
11561
  key: 1,
11561
11562
  class: "ao-project-overview__add-template",
11562
11563
  color: "primary",
11563
- label: O.$t("project.template.apply.label"),
11564
+ label: T.$t("project.template.apply.label"),
11564
11565
  onClick: Z[3] || (Z[3] = (j) => ne.value = !0)
11565
11566
  }, null, 8, ["label"])) : E("", !0)
11566
11567
  ]),
@@ -11568,10 +11569,10 @@ const sn = /* @__PURE__ */ q(O9, [["render", L9], ["__scopeId", "data-v-ff4e3297
11568
11569
  }),
11569
11570
  f("div", H9, [
11570
11571
  A(mo, {
11571
- phases: O.phases,
11572
- "closed-status": O.closedStatus,
11573
- "is-editable": O.isEditable === !0,
11574
- users: O.users,
11572
+ phases: T.phases,
11573
+ "closed-status": T.closedStatus,
11574
+ "is-editable": T.isEditable === !0,
11575
+ users: T.users,
11575
11576
  onAddMilestone: u,
11576
11577
  onUpdateMilestone: c,
11577
11578
  onArchiveMilestone: p,
@@ -11586,37 +11587,39 @@ const sn = /* @__PURE__ */ q(O9, [["render", L9], ["__scopeId", "data-v-ff4e3297
11586
11587
  ]),
11587
11588
  A(L, {
11588
11589
  class: "ao-project__sidebar",
11589
- phases: O.phases,
11590
- "project-id": O.project.id,
11591
- "project-name": O.project.name,
11592
- users: O.users,
11593
- "is-editable": O.isEditable === !0,
11594
- "closed-status": O.closedStatus,
11595
- onClose: Z[4] || (Z[4] = (j) => O.$router.push({ name: W(ye).project })),
11590
+ phases: T.phases,
11591
+ "project-id": T.project.id,
11592
+ "project-name": T.project.name,
11593
+ users: T.users,
11594
+ "is-editable": T.isEditable === !0,
11595
+ "closed-status": T.closedStatus,
11596
+ "time-tracking-data": T.timeTrackingData,
11597
+ onClose: Z[4] || (Z[4] = (j) => T.$router.push({ name: W(ye).project })),
11596
11598
  onUpdateMilestone: c,
11597
11599
  onAddActivity: g,
11598
11600
  onUpdateActivity: w,
11599
11601
  onArchiveActivity: m,
11600
11602
  onUnarchiveActivity: $
11601
- }, null, 8, ["phases", "project-id", "project-name", "users", "is-editable", "closed-status"]),
11603
+ }, null, 8, ["phases", "project-id", "project-name", "users", "is-editable", "closed-status", "time-tracking-data"]),
11602
11604
  (v(), B(Tt, { to: "body" }, [
11603
11605
  A(L, {
11604
11606
  name: "modal",
11605
11607
  activities: I.value,
11606
- "is-task-checkable": O.isTaskCheckable,
11607
- statuses: O.statuses,
11608
- "activity-types": O.activityTypes,
11609
- phases: O.phases,
11610
- project: O.project,
11611
- users: O.users,
11612
- "user-id": O.userId,
11613
- "is-editable": O.isEditable,
11614
- "attachment-enabled": O.attachmentEnabled,
11608
+ "is-task-checkable": T.isTaskCheckable,
11609
+ statuses: T.statuses,
11610
+ "activity-types": T.activityTypes,
11611
+ phases: T.phases,
11612
+ project: T.project,
11613
+ users: T.users,
11614
+ "user-id": T.userId,
11615
+ "is-editable": T.isEditable,
11616
+ "attachment-enabled": T.attachmentEnabled,
11617
+ "time-tracking-data": T.timeTrackingData,
11615
11618
  "onUpdate:activity": w,
11616
11619
  onAddSubtask: b,
11617
11620
  onUpdateSubtask: y,
11618
11621
  onDeleteSubtask: _,
11619
- onAddFiles: T,
11622
+ onAddFiles: O,
11620
11623
  onRemoveFile: H,
11621
11624
  onAddComment: R,
11622
11625
  onUpdateComment: G,
@@ -11625,26 +11628,26 @@ const sn = /* @__PURE__ */ q(O9, [["render", L9], ["__scopeId", "data-v-ff4e3297
11625
11628
  default: z(({ Component: j }) => [
11626
11629
  (v(), B(It(j), null, {
11627
11630
  default: z((k) => [
11628
- se(O.$slots, "activityDetailsBody", ha(ma(k)))
11631
+ se(T.$slots, "activityDetailsBody", ha(ma(k)))
11629
11632
  ]),
11630
11633
  _: 2
11631
11634
  }, 1024))
11632
11635
  ]),
11633
11636
  _: 3
11634
- }, 8, ["activities", "is-task-checkable", "statuses", "activity-types", "phases", "project", "users", "user-id", "is-editable", "attachment-enabled"])
11637
+ }, 8, ["activities", "is-task-checkable", "statuses", "activity-types", "phases", "project", "users", "user-id", "is-editable", "attachment-enabled", "time-tracking-data"])
11635
11638
  ]))
11636
11639
  ], 16),
11637
11640
  (v(), B(Tt, { to: "body" }, [
11638
11641
  N.value ? (v(), B(Co, {
11639
11642
  key: 0,
11640
- phases: O.phases,
11643
+ phases: T.phases,
11641
11644
  onClose: Z[5] || (Z[5] = (j) => N.value = !1),
11642
11645
  onSave: le
11643
11646
  }, null, 8, ["phases"])) : E("", !0),
11644
11647
  ne.value ? (v(), B(go, {
11645
11648
  key: 1,
11646
- "project-id": O.project.id,
11647
- templates: O.templates,
11649
+ "project-id": T.project.id,
11650
+ templates: T.templates,
11648
11651
  onClose: Z[6] || (Z[6] = (j) => ne.value = !1),
11649
11652
  onApply: Q
11650
11653
  }, null, 8, ["project-id", "templates"])) : E("", !0)
@@ -11968,11 +11971,11 @@ const n4 = { class: "ao-project-milestone" }, o4 = { class: "ao-project-mileston
11968
11971
  e("updateMilestone", { id: a.milestoneId, important: _ });
11969
11972
  }
11970
11973
  }), y = (_, I) => {
11971
- const T = _.currentTarget;
11972
- T instanceof HTMLElement && I(T);
11974
+ const O = _.currentTarget;
11975
+ O instanceof HTMLElement && I(O);
11973
11976
  };
11974
11977
  return (_, I) => {
11975
- var T;
11978
+ var O;
11976
11979
  return v(), C("div", n4, [
11977
11980
  f("header", o4, [
11978
11981
  f("div", i4, [
@@ -11987,7 +11990,7 @@ const n4 = { class: "ao-project-milestone" }, o4 = { class: "ao-project-mileston
11987
11990
  f("div", l4, [
11988
11991
  f("div", r4, [
11989
11992
  A(be, {
11990
- title: ((T = l.value) == null ? void 0 : T.name) || _.milestoneId,
11993
+ title: ((O = l.value) == null ? void 0 : O.name) || _.milestoneId,
11991
11994
  level: 5
11992
11995
  }, null, 8, ["title"]),
11993
11996
  A(Ss, {
@@ -12457,7 +12460,7 @@ const E4 = {
12457
12460
  }
12458
12461
  }), {
12459
12462
  item: z(({ element: p }) => {
12460
- var h, g, w, m, $, b, y, _, I, T;
12463
+ var h, g, w, m, $, b, y, _, I, O;
12461
12464
  return [
12462
12465
  A(_o, {
12463
12466
  class: ee(i(p) ? "ao-list-draggable" : ""),
@@ -12476,7 +12479,7 @@ const E4 = {
12476
12479
  important: p.important,
12477
12480
  type: p.type,
12478
12481
  comments: (I = p.comments) == null ? void 0 : I.length,
12479
- attachments: (T = p.attachments) == null ? void 0 : T.length,
12482
+ attachments: (O = p.attachments) == null ? void 0 : O.length,
12480
12483
  users: u.users,
12481
12484
  assignee: p.assignee,
12482
12485
  slug: p.slug,
@@ -12667,7 +12670,7 @@ const U4 = { class: "ao-feed" }, F4 = { class: "ao-feed__filters" }, Z4 = { clas
12667
12670
  e("archiveActivity", L);
12668
12671
  }, I = (L) => {
12669
12672
  e("unarchiveActivity", L);
12670
- }, T = (L) => {
12673
+ }, O = (L) => {
12671
12674
  var j;
12672
12675
  e("startTimer", L), (j = window.parent) == null || j.postMessage({
12673
12676
  type: "startTimer",
@@ -12698,12 +12701,12 @@ const U4 = { class: "ao-feed" }, F4 = { class: "ao-feed__filters" }, Z4 = { clas
12698
12701
  }, ae = (L) => {
12699
12702
  const { id: j } = a.selectedActivity || {};
12700
12703
  j && e("removeComment", L);
12701
- }, P = Es(), O = x("feed"), Z = [
12704
+ }, P = Es(), T = x("feed"), Z = [
12702
12705
  { label: "Overview", value: "overview" },
12703
12706
  { label: "Feed", value: "feed" },
12704
12707
  { label: "Mapping", value: "mapping" }
12705
12708
  ];
12706
- return ce(O, (L) => {
12709
+ return ce(T, (L) => {
12707
12710
  L === "feed" ? (P.push({ name: ye.feed }), console.log("Navigating to feed...")) : L === "overview" ? (P.push({ name: ye.project }), console.log("Navigating to feed...")) : L === "mapping" && (P.push({ name: ye.mapping }), console.log("Navigating to feed..."));
12708
12711
  }), (L, j) => {
12709
12712
  var k;
@@ -12713,8 +12716,8 @@ const U4 = { class: "ao-feed" }, F4 = { class: "ao-feed__filters" }, Z4 = { clas
12713
12716
  f("div", F4, [
12714
12717
  A(sn, {
12715
12718
  tabs: Z,
12716
- modelValue: O.value,
12717
- "onUpdate:modelValue": j[0] || (j[0] = (D) => O.value = D)
12719
+ modelValue: T.value,
12720
+ "onUpdate:modelValue": j[0] || (j[0] = (D) => T.value = D)
12718
12721
  }, null, 8, ["modelValue"]),
12719
12722
  A(N4, {
12720
12723
  "model-value": L.searchText,
@@ -12825,7 +12828,7 @@ const U4 = { class: "ao-feed" }, F4 = { class: "ao-feed__filters" }, Z4 = { clas
12825
12828
  onArchiveActivity: _,
12826
12829
  onUnarchiveActivity: I,
12827
12830
  onUpdateActivity: y,
12828
- onStartTimer: T
12831
+ onStartTimer: O
12829
12832
  }, null, 8, ["status", "list", "title", "footer-label", "users", "user-id", "is-editable", "tagType", "onAdd"]))), 128))
12830
12833
  ]),
12831
12834
  (v(), B(Tt, { to: "body" }, [