@26lights/orcha 0.42.187 → 0.42.189

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/orcha.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var R0 = Object.defineProperty;
2
2
  var B0 = (t, e, n) => e in t ? R0(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var Y = (t, e, n) => (B0(t, typeof e != "symbol" ? e + "" : e, n), n);
4
- import { defineComponent as ue, openBlock as k, createBlock as J, unref as ee, mergeProps as Ht, createElementBlock as M, createElementVNode as b, createStaticVNode as U0, computed as L, resolveDynamicComponent as Io, normalizeClass as ge, renderSlot as we, toDisplayString as q, createCommentVNode as F, ref as Q, watch as Ne, nextTick as Zt, withKeys as Hr, toHandlers as z0, withCtx as se, createTextVNode as mo, createVNode as P, normalizeStyle as Kt, withModifiers as Se, createSlots as $s, Fragment as Ie, renderList as tt, onMounted as Ft, onBeforeUnmount as Ds, onUnmounted as Dn, Teleport as Rn, toRefs as _n, getCurrentInstance as No, toRef as ti, normalizeProps as Ms, guardReactiveProps as Os, withDirectives as nt, vShow as is, provide as H0, inject as q0, useTemplateRef as j0, readonly as V0, toValue as oc, watchEffect as ih, shallowRef as Da, h as W0, vModelText as Et, resolveComponent as Or, vModelCheckbox as sh, getCurrentScope as Z0, onScopeDispose as K0, toHandlerKey as G0 } from "vue";
4
+ import { defineComponent as ue, openBlock as k, createBlock as J, unref as ee, mergeProps as Ht, createElementBlock as M, createElementVNode as b, createStaticVNode as U0, computed as L, resolveDynamicComponent as Io, normalizeClass as ve, renderSlot as we, toDisplayString as q, createCommentVNode as F, ref as Q, watch as Ne, nextTick as Zt, withKeys as Hr, toHandlers as z0, withCtx as se, createTextVNode as mo, createVNode as P, normalizeStyle as Kt, withModifiers as Se, createSlots as $s, Fragment as Ie, renderList as tt, onMounted as Ft, onBeforeUnmount as Ds, onUnmounted as Dn, Teleport as Rn, toRefs as _n, getCurrentInstance as No, toRef as ti, normalizeProps as Ms, guardReactiveProps as Os, withDirectives as nt, vShow as is, provide as H0, inject as q0, useTemplateRef as j0, readonly as V0, toValue as oc, watchEffect as ih, shallowRef as Da, h as W0, vModelText as Et, resolveComponent as Or, vModelCheckbox as sh, getCurrentScope as Z0, onScopeDispose as K0, toHandlerKey as G0 } from "vue";
5
5
  import { RouterView as Y0, useRoute as ah, useRouter as Nu } from "vue-router";
6
6
  import Kr from "vuedraggable";
7
7
  const jve = /* @__PURE__ */ ue({
@@ -1192,7 +1192,7 @@ const lh = {
1192
1192
  setup(t) {
1193
1193
  const e = t, n = L(() => ay[e.name]);
1194
1194
  return (r, o) => (k(), J(Io(n.value), {
1195
- class: ge(["ao-icon", `ao-icon--${t.size}`])
1195
+ class: ve(["ao-icon", `ao-icon--${t.size}`])
1196
1196
  }, null, 8, ["class"]));
1197
1197
  }
1198
1198
  });
@@ -1217,7 +1217,7 @@ const dy = ["type"], fy = {
1217
1217
  const e = t, n = L(() => e.size), r = L(() => e.isLoading ? "Loading" : e.iconName);
1218
1218
  return (o, i) => (k(), M("button", {
1219
1219
  type: t.type,
1220
- class: ge([
1220
+ class: ve([
1221
1221
  "ao-button",
1222
1222
  `ao-button--${t.variant}`,
1223
1223
  t.color ? `ao-button--${t.color}` : "",
@@ -1370,7 +1370,7 @@ const hy = {
1370
1370
  n("update:title", o);
1371
1371
  };
1372
1372
  return (o, i) => (k(), J(Io(t.tagName), {
1373
- class: ge(["ao-card-horiz", { "ao-card-horiz--active": t.isActive }])
1373
+ class: ve(["ao-card-horiz", { "ao-card-horiz--active": t.isActive }])
1374
1374
  }, {
1375
1375
  default: se(() => [
1376
1376
  t.isDraggable ? (k(), M("div", hy, [
@@ -1435,7 +1435,7 @@ const hs = /* @__PURE__ */ ue({
1435
1435
  () => n.value === "button" ? { type: "button" } : {}
1436
1436
  );
1437
1437
  return (o, i) => (k(), M("div", {
1438
- class: ge([
1438
+ class: ve([
1439
1439
  "ao-tag",
1440
1440
  t.color ? `ao-tag--${t.color}` : "",
1441
1441
  t.clickable ? "ao-tag--clickable" : "",
@@ -3857,7 +3857,7 @@ const Cb = ["title"], wb = {
3857
3857
  };
3858
3858
  return (a, l) => (k(), M("div", {
3859
3859
  role: "img",
3860
- class: ge(o.value),
3860
+ class: ve(o.value),
3861
3861
  title: t.userName
3862
3862
  }, [
3863
3863
  t.avatarUrl ? F("", !0) : (k(), M("span", wb, q(ee(i)), 1)),
@@ -4043,7 +4043,7 @@ const Kb = ["type"], Gb = {
4043
4043
  const e = t, n = L(() => e.size), r = L(() => e.isLoading ? "Loading" : e.iconName);
4044
4044
  return (o, i) => (k(), M("button", {
4045
4045
  type: t.type,
4046
- class: ge([
4046
+ class: ve([
4047
4047
  "ao-button-card",
4048
4048
  `ao-button-card--${t.color}`,
4049
4049
  `ao-button-card--${t.corners}`,
@@ -4324,7 +4324,7 @@ const eC = /* @__PURE__ */ ue({
4324
4324
  emits: ["close"],
4325
4325
  setup(t) {
4326
4326
  return (e, n) => (k(), M("div", {
4327
- class: ge(["ao-modal__wrapper", `ao-modal__wrapper--${t.size}`])
4327
+ class: ve(["ao-modal__wrapper", `ao-modal__wrapper--${t.size}`])
4328
4328
  }, [
4329
4329
  b("div", {
4330
4330
  class: "ao-modal__backdrop",
@@ -5326,7 +5326,7 @@ function JC(t, e, n) {
5326
5326
  disabledProp: be,
5327
5327
  searchStart: he,
5328
5328
  searchFilter: je
5329
- } = _n(t), ye = No().proxy, pe = n.iv, Z = n.ev, j = n.search, ve = n.clearSearch, Be = n.update, st = n.pointer, Re = n.setPointer, Le = n.clearPointer, Rt = n.focus, V = n.deactivate, _e = n.close, De = n.localize, Ae = Q([]), at = Q([]), Ve = Q(!1), Ke = Q(null), rt = Q(H.value && s.value === -1 ? 10 : s.value), ft = L(() => l.value || c.value || !1), mt = L(() => d.value !== void 0 ? d.value : f.value !== void 0 ? f.value : !0), Ge = L(() => {
5329
+ } = _n(t), ye = No().proxy, pe = n.iv, Z = n.ev, V = n.search, _e = n.clearSearch, Be = n.update, st = n.pointer, Re = n.setPointer, Le = n.clearPointer, Rt = n.focus, j = n.deactivate, ge = n.close, De = n.localize, Ae = Q([]), at = Q([]), Ve = Q(!1), Ke = Q(null), rt = Q(H.value && s.value === -1 ? 10 : s.value), ft = L(() => l.value || c.value || !1), mt = L(() => d.value !== void 0 ? d.value : f.value !== void 0 ? f.value : !0), Ge = L(() => {
5330
5330
  if (N.value) {
5331
5331
  let R = rn.value || /* istanbul ignore next */
5332
5332
  [], ie = [];
@@ -5386,10 +5386,10 @@ function JC(t, e, n) {
5386
5386
  case "tags":
5387
5387
  return !Kn(pe.value) && pe.value.length > 0;
5388
5388
  }
5389
- }), B = L(() => p !== void 0 && p.value !== void 0 ? p.value(pe.value, ye) : pe.value && pe.value.length > 1 ? `${pe.value.length} options selected` : "1 option selected"), re = L(() => !Ge.value.length && !Ve.value && !ot.value.length), Ee = L(() => Ge.value.length > 0 && xt.value.length == 0 && (j.value && N.value || !N.value)), ot = L(() => ft.value === !1 || !j.value ? [] : Qs(j.value) !== -1 ? [] : [{
5390
- [w.value]: j.value,
5391
- [gt.value[0]]: j.value,
5392
- [u.value]: j.value,
5389
+ }), B = L(() => p !== void 0 && p.value !== void 0 ? p.value(pe.value, ye) : pe.value && pe.value.length > 1 ? `${pe.value.length} options selected` : "1 option selected"), re = L(() => !Ge.value.length && !Ve.value && !ot.value.length), Ee = L(() => Ge.value.length > 0 && xt.value.length == 0 && (V.value && N.value || !N.value)), ot = L(() => ft.value === !1 || !V.value ? [] : Qs(V.value) !== -1 ? [] : [{
5390
+ [w.value]: V.value,
5391
+ [gt.value[0]]: V.value,
5392
+ [u.value]: V.value,
5393
5393
  __CREATE__: !0
5394
5394
  }]), gt = L(() => i.value ? Array.isArray(i.value) ? i.value : [i.value] : [u.value]), cr = L(() => {
5395
5395
  switch (o.value) {
@@ -5455,32 +5455,32 @@ function JC(t, e, n) {
5455
5455
  switch (R.__CREATE__ && (R = { ...R }, delete R.__CREATE__), o.value) {
5456
5456
  case "single":
5457
5457
  if (R && an(R)) {
5458
- A.value && jt(R), I.value && (Le(), _e());
5458
+ A.value && jt(R), I.value && (Le(), ge());
5459
5459
  return;
5460
5460
  }
5461
- R && to(R), x.value && ve(), E.value && (Le(), _e()), R && on(R);
5461
+ R && to(R), x.value && _e(), E.value && (Le(), ge()), R && on(R);
5462
5462
  break;
5463
5463
  case "multiple":
5464
5464
  if (R && an(R)) {
5465
- jt(R), I.value && (Le(), _e());
5465
+ jt(R), I.value && (Le(), ge());
5466
5466
  return;
5467
5467
  }
5468
5468
  if (Er()) {
5469
5469
  e.emit("max", ye);
5470
5470
  return;
5471
5471
  }
5472
- R && (to(R), on(R)), x.value && ve(), a.value && Le(), E.value && _e();
5472
+ R && (to(R), on(R)), x.value && _e(), a.value && Le(), E.value && ge();
5473
5473
  break;
5474
5474
  case "tags":
5475
5475
  if (R && an(R)) {
5476
- jt(R), I.value && (Le(), _e());
5476
+ jt(R), I.value && (Le(), ge());
5477
5477
  return;
5478
5478
  }
5479
5479
  if (Er()) {
5480
5480
  e.emit("max", ye);
5481
5481
  return;
5482
5482
  }
5483
- R && to(R), x.value && ve(), R && on(R), a.value && Le(), E.value && _e();
5483
+ R && to(R), x.value && _e(), R && on(R), a.value && Le(), E.value && ge();
5484
5484
  break;
5485
5485
  }
5486
5486
  E.value || Rt();
@@ -5494,24 +5494,24 @@ function JC(t, e, n) {
5494
5494
  ), a.value && st.value && Re(Vn.value.filter((ie) => !ie[be.value])[st.value.index]);
5495
5495
  break;
5496
5496
  }
5497
- E.value && V();
5497
+ E.value && j();
5498
5498
  }
5499
5499
  }, to = (R) => {
5500
- cn(R[w.value]) === void 0 && ft.value && (e.emit("tag", R[w.value], ye), e.emit("option", R[w.value], ye), e.emit("create", R[w.value], ye), mt.value && ec(R), ve());
5500
+ cn(R[w.value]) === void 0 && ft.value && (e.emit("tag", R[w.value], ye), e.emit("option", R[w.value], ye), e.emit("create", R[w.value], ye), mt.value && ec(R), _e());
5501
5501
  }, Li = () => {
5502
5502
  o.value !== "single" && on(xt.value.filter((R) => !R.disabled && !an(R)));
5503
5503
  }, Ql = (R) => R.find((ie) => !an(ie) && !ie[be.value]) === void 0, Xs = (R) => R.find((ie) => !an(ie)) === void 0, cn = (R) => Ge.value[Ge.value.map((ie) => String(ie[w.value])).indexOf(String(R))], Qs = (R) => Ge.value.findIndex((ie) => gt.value.some((Pe) => (parseInt(ie[Pe]) == ie[Pe] ? parseInt(ie[Pe]) : ie[Pe]) === (parseInt(R) == R ? parseInt(R) : R))), Ii = (R) => ["tags", "multiple"].indexOf(o.value) !== -1 && a.value && an(R), ec = (R) => {
5504
5504
  Ae.value.push(R);
5505
5505
  }, no = (R) => W.value ? R.filter(
5506
- (ie) => j.value ? ie.__VISIBLE__.length : ie[X.value].length
5507
- ) : R.filter((ie) => j.value ? ie.__VISIBLE__.length : !0), Ni = (R, ie = !0) => {
5506
+ (ie) => V.value ? ie.__VISIBLE__.length : ie[X.value].length
5507
+ ) : R.filter((ie) => V.value ? ie.__VISIBLE__.length : !0), Ni = (R, ie = !0) => {
5508
5508
  let Pe = R;
5509
- if (j.value && v.value) {
5509
+ if (V.value && v.value) {
5510
5510
  let lt = je.value;
5511
5511
  lt || (lt = (ur, On, Bi) => gt.value.some((dr) => {
5512
5512
  let ta = lc(De(ur[dr]), O.value);
5513
5513
  return he.value ? ta.startsWith(lc(On, O.value)) : ta.indexOf(lc(On, O.value)) !== -1;
5514
- })), Pe = Pe.filter((ur) => lt(ur, j.value, ye));
5514
+ })), Pe = Pe.filter((ur) => lt(ur, V.value, ye));
5515
5515
  }
5516
5516
  return a.value && ie && (Pe = Pe.filter((lt) => !Ii(lt))), Pe;
5517
5517
  }, Pi = (R) => {
@@ -5523,7 +5523,7 @@ function JC(t, e, n) {
5523
5523
  }, Xe = () => {
5524
5524
  Kn(Z.value) || (pe.value = $r(Z.value));
5525
5525
  }, Mn = (R) => (Ve.value = !0, new Promise((ie, Pe) => {
5526
- r.value(j.value, ye).then((lt) => {
5526
+ r.value(V.value, ye).then((lt) => {
5527
5527
  at.value = lt || [], typeof R == "function" && R(lt), Ve.value = !1;
5528
5528
  }).catch((lt) => {
5529
5529
  console.error(lt), at.value = [], Ve.value = !1;
@@ -5557,10 +5557,10 @@ function JC(t, e, n) {
5557
5557
  [w.value]: ie,
5558
5558
  [gt.value[0]]: ie
5559
5559
  }), Ri = () => {
5560
- Ke.value = Ne(j, (R) => {
5560
+ Ke.value = Ne(V, (R) => {
5561
5561
  R.length < g.value || !R && g.value !== 0 || (Ve.value = !0, C.value && (at.value = []), setTimeout(() => {
5562
- R == j.value && r.value(j.value, ye).then((ie) => {
5563
- (R == j.value || !j.value) && (at.value = ie, st.value = xt.value.filter((Pe) => Pe[be.value] !== !0)[0] || null, Ve.value = !1);
5562
+ R == V.value && r.value(V.value, ye).then((ie) => {
5563
+ (R == V.value || !V.value) && (at.value = ie, st.value = xt.value.filter((Pe) => Pe[be.value] !== !0)[0] || null, Ve.value = !1);
5564
5564
  }).catch(
5565
5565
  /* istanbul ignore next */
5566
5566
  (ie) => {
@@ -5641,18 +5641,18 @@ function XC(t, e, n) {
5641
5641
  const Z = A.value ? y.value : (
5642
5642
  /* istanbul ignore next */
5643
5643
  ye(y.value)
5644
- ), j = $.value.map((Be) => Be[s.value]).indexOf(Z[s.value]);
5645
- let ve = $.value[j - 1];
5646
- return ve === void 0 && (ve = I.value), ve;
5644
+ ), V = $.value.map((Be) => Be[s.value]).indexOf(Z[s.value]);
5645
+ let _e = $.value[V - 1];
5646
+ return _e === void 0 && (_e = I.value), _e;
5647
5647
  }), E = L(() => {
5648
- let Z = $.value.map((j) => j.label).indexOf(A.value ? y.value[s.value] : ye(y.value)[s.value]) + 1;
5648
+ let Z = $.value.map((V) => V.label).indexOf(A.value ? y.value[s.value] : ye(y.value)[s.value]) + 1;
5649
5649
  return $.value.length <= Z && (Z = 0), $.value[Z];
5650
5650
  }), I = L(() => [...$.value].slice(-1)[0]), N = L(() => y.value.__VISIBLE__.filter((Z) => !Z[u.value])[0]), z = L(() => {
5651
- const Z = S.value.__VISIBLE__.filter((j) => !j[u.value]);
5652
- return Z[Z.map((j) => j[r.value]).indexOf(y.value[r.value]) - 1];
5651
+ const Z = S.value.__VISIBLE__.filter((V) => !V[u.value]);
5652
+ return Z[Z.map((V) => V[r.value]).indexOf(y.value[r.value]) - 1];
5653
5653
  }), H = L(() => {
5654
- const Z = ye(y.value).__VISIBLE__.filter((j) => !j[u.value]);
5655
- return Z[Z.map((j) => j[r.value]).indexOf(y.value[r.value]) + 1];
5654
+ const Z = ye(y.value).__VISIBLE__.filter((V) => !V[u.value]);
5655
+ return Z[Z.map((V) => V[r.value]).indexOf(y.value[r.value]) + 1];
5656
5656
  }), X = L(() => [...O.value.__VISIBLE__.filter((Z) => !Z[u.value])].slice(-1)[0]), W = L(() => [...I.value.__VISIBLE__.filter((Z) => !Z[u.value])].slice(-1)[0]), G = (Z) => y.value && (!Z.group && y.value[r.value] === Z[r.value] || Z.group !== void 0 && y.value[s.value] === Z[s.value]) ? !0 : void 0, ce = () => {
5657
5657
  g(w.value[0] || null);
5658
5658
  }, be = () => {
@@ -5665,7 +5665,7 @@ function XC(t, e, n) {
5665
5665
  Z === void 0 && (Z = E.value, Z.__CREATE__ && (Z = Z[d.value][0])), g(Z || /* istanbul ignore next */
5666
5666
  null);
5667
5667
  } else {
5668
- let Z = w.value.map((j) => j[r.value]).indexOf(y.value[r.value]) + 1;
5668
+ let Z = w.value.map((V) => V[r.value]).indexOf(y.value[r.value]) + 1;
5669
5669
  w.value.length <= Z && (Z = 0), g(w.value[Z] || null);
5670
5670
  }
5671
5671
  Zt(() => {
@@ -5680,29 +5680,29 @@ function XC(t, e, n) {
5680
5680
  Z === void 0 && (Z = A.value ? O.value : S.value, Z.__CREATE__ && (Z = X.value, Z === void 0 && (Z = O.value))), g(Z || /* istanbul ignore next */
5681
5681
  null);
5682
5682
  } else {
5683
- let Z = w.value.map((j) => j[r.value]).indexOf(y.value[r.value]) - 1;
5683
+ let Z = w.value.map((V) => V[r.value]).indexOf(y.value[r.value]) - 1;
5684
5684
  Z < 0 && (Z = w.value.length - 1), g(w.value[Z] || null);
5685
5685
  }
5686
5686
  Zt(() => {
5687
5687
  pe();
5688
5688
  });
5689
- }, ye = (Z) => $.value.find((j) => j.__VISIBLE__.map((ve) => ve[r.value]).indexOf(Z[r.value]) !== -1), pe = () => {
5689
+ }, ye = (Z) => $.value.find((V) => V.__VISIBLE__.map((_e) => _e[r.value]).indexOf(Z[r.value]) !== -1), pe = () => {
5690
5690
  let Z = C.value.querySelector("[data-pointed]");
5691
5691
  if (!Z)
5692
5692
  return;
5693
- let j = Z.parentElement.parentElement;
5694
- a.value && (j = A.value ? Z.parentElement.parentElement.parentElement : Z.parentElement.parentElement.parentElement.parentElement), Z.offsetTop + Z.offsetHeight > j.clientHeight + j.scrollTop && (j.scrollTop = Z.offsetTop + Z.offsetHeight - j.clientHeight), Z.offsetTop < j.scrollTop && (j.scrollTop = Z.offsetTop);
5693
+ let V = Z.parentElement.parentElement;
5694
+ a.value && (V = A.value ? Z.parentElement.parentElement.parentElement : Z.parentElement.parentElement.parentElement.parentElement), Z.offsetTop + Z.offsetHeight > V.clientHeight + V.scrollTop && (V.scrollTop = Z.offsetTop + Z.offsetHeight - V.clientHeight), Z.offsetTop < V.scrollTop && (V.scrollTop = Z.offsetTop);
5695
5695
  };
5696
5696
  return Ne(_, (Z) => {
5697
5697
  i.value && (Z.length && o.value ? ce() : v());
5698
5698
  }), Ne(x, (Z) => {
5699
5699
  if (Z) {
5700
- let j = C.value.querySelectorAll("[data-selected]")[0];
5701
- if (!j)
5700
+ let V = C.value.querySelectorAll("[data-selected]")[0];
5701
+ if (!V)
5702
5702
  return;
5703
- let ve = j.parentElement.parentElement;
5703
+ let _e = V.parentElement.parentElement;
5704
5704
  Zt(() => {
5705
- ve.scrollTop > 0 || (ve.scrollTop = j.offsetTop);
5705
+ _e.scrollTop > 0 || (_e.scrollTop = V.offsetTop);
5706
5706
  });
5707
5707
  }
5708
5708
  }), {
@@ -6406,7 +6406,7 @@ function W9(t) {
6406
6406
  var I, N = C === "y" ? Nn : _r, z = C === "y" ? or : Vr, H = C === "y" ? "height" : "width", X = w[C], W = X + _[N], G = X - _[z], ce = p ? -T[H] / 2 : 0, be = g === mi ? $[H] : T[H], he = g === mi ? -T[H] : -$[H], je = e.elements.arrow, ye = p && je ? Ph(je) : {
6407
6407
  width: 0,
6408
6408
  height: 0
6409
- }, pe = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : zh(), Z = pe[N], j = pe[z], ve = xa(0, $[H], ye[H]), Be = v ? $[H] / 2 - ce - ve - Z - S.mainAxis : be - ve - Z - S.mainAxis, st = v ? -$[H] / 2 + ce + ve + j + S.mainAxis : he + ve + j + S.mainAxis, Re = e.elements.arrow && wl(e.elements.arrow), Le = Re ? C === "y" ? Re.clientTop || 0 : Re.clientLeft || 0 : 0, Rt = (I = O == null ? void 0 : O[C]) != null ? I : 0, V = X + Be - Rt - Le, _e = X + st - Rt, De = xa(p ? Ra(W, V) : W, X, p ? go(G, _e) : G);
6409
+ }, pe = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : zh(), Z = pe[N], V = pe[z], _e = xa(0, $[H], ye[H]), Be = v ? $[H] / 2 - ce - _e - Z - S.mainAxis : be - _e - Z - S.mainAxis, st = v ? -$[H] / 2 + ce + _e + V + S.mainAxis : he + _e + V + S.mainAxis, Re = e.elements.arrow && wl(e.elements.arrow), Le = Re ? C === "y" ? Re.clientTop || 0 : Re.clientLeft || 0 : 0, Rt = (I = O == null ? void 0 : O[C]) != null ? I : 0, j = X + Be - Rt - Le, ge = X + st - Rt, De = xa(p ? Ra(W, j) : W, X, p ? go(G, ge) : G);
6410
6410
  w[C] = De, E[C] = De - X;
6411
6411
  }
6412
6412
  if (a) {
@@ -6500,10 +6500,10 @@ function X9(t) {
6500
6500
  }
6501
6501
  if (T)
6502
6502
  for (var ce = h ? 3 : 1, be = function(pe) {
6503
- var Z = C.find(function(j) {
6504
- var ve = $.get(j);
6505
- if (ve)
6506
- return ve.slice(0, pe).every(function(Be) {
6503
+ var Z = C.find(function(V) {
6504
+ var _e = $.get(V);
6505
+ if (_e)
6506
+ return _e.slice(0, pe).every(function(Be) {
6507
6507
  return Be;
6508
6508
  });
6509
6509
  });
@@ -7335,7 +7335,7 @@ const c4 = ["id", "dir"], u4 = ["tabindex", "aria-controls", "aria-placeholder",
7335
7335
  function D4(t, e, n, r, o, i) {
7336
7336
  return k(), M("div", {
7337
7337
  ref: "multiselect",
7338
- class: ge(t.classList.container),
7338
+ class: ve(t.classList.container),
7339
7339
  id: n.searchable ? void 0 : n.id,
7340
7340
  dir: n.rtl ? "rtl" : void 0,
7341
7341
  onFocusin: e[10] || (e[10] = (...s) => t.handleFocusIn && t.handleFocusIn(...s)),
@@ -7383,7 +7383,7 @@ function D4(t, e, n, r, o, i) {
7383
7383
  "div",
7384
7384
  {
7385
7385
  key: 1,
7386
- class: ge(t.classList.tags),
7386
+ class: ve(t.classList.tags),
7387
7387
  "data-tags": ""
7388
7388
  },
7389
7389
  [
@@ -7396,7 +7396,7 @@ function D4(t, e, n, r, o, i) {
7396
7396
  disabled: n.disabled
7397
7397
  }, () => [
7398
7398
  (k(), M("span", {
7399
- class: ge([
7399
+ class: ve([
7400
7400
  t.classList.tag,
7401
7401
  s.disabled ? t.classList.tagDisabled : null
7402
7402
  ]),
@@ -7408,7 +7408,7 @@ function D4(t, e, n, r, o, i) {
7408
7408
  b(
7409
7409
  "span",
7410
7410
  {
7411
- class: ge(t.classList.tagWrapper)
7411
+ class: ve(t.classList.tagWrapper)
7412
7412
  },
7413
7413
  q(t.localize(s[n.label])),
7414
7414
  3
@@ -7416,13 +7416,13 @@ function D4(t, e, n, r, o, i) {
7416
7416
  ),
7417
7417
  !n.disabled && !s.disabled ? (k(), M("span", {
7418
7418
  key: 0,
7419
- class: ge(t.classList.tagRemove),
7419
+ class: ve(t.classList.tagRemove),
7420
7420
  onClick: Se((c) => t.handleTagRemove(s, c), ["stop"])
7421
7421
  }, [
7422
7422
  b(
7423
7423
  "span",
7424
7424
  {
7425
- class: ge(t.classList.tagRemoveIcon)
7425
+ class: ve(t.classList.tagRemoveIcon)
7426
7426
  },
7427
7427
  null,
7428
7428
  2
@@ -7437,7 +7437,7 @@ function D4(t, e, n, r, o, i) {
7437
7437
  b(
7438
7438
  "div",
7439
7439
  {
7440
- class: ge(t.classList.tagsSearchWrapper),
7440
+ class: ve(t.classList.tagsSearchWrapper),
7441
7441
  ref: "tags"
7442
7442
  },
7443
7443
  [
@@ -7445,7 +7445,7 @@ function D4(t, e, n, r, o, i) {
7445
7445
  b(
7446
7446
  "span",
7447
7447
  {
7448
- class: ge(t.classList.tagsSearchCopy)
7448
+ class: ve(t.classList.tagsSearchCopy)
7449
7449
  },
7450
7450
  q(t.search),
7451
7451
  3
@@ -7490,13 +7490,13 @@ function D4(t, e, n, r, o, i) {
7490
7490
  b(
7491
7491
  "div",
7492
7492
  {
7493
- class: ge(t.classList.singleLabel)
7493
+ class: ve(t.classList.singleLabel)
7494
7494
  },
7495
7495
  [
7496
7496
  b(
7497
7497
  "span",
7498
7498
  {
7499
- class: ge(t.classList.singleLabelText)
7499
+ class: ve(t.classList.singleLabelText)
7500
7500
  },
7501
7501
  q(t.localize(t.iv[n.label])),
7502
7502
  3
@@ -7513,7 +7513,7 @@ function D4(t, e, n, r, o, i) {
7513
7513
  values: t.iv
7514
7514
  }, () => [
7515
7515
  b("div", {
7516
- class: ge(t.classList.multipleLabel),
7516
+ class: ve(t.classList.multipleLabel),
7517
7517
  innerHTML: t.multipleLabelText
7518
7518
  }, null, 10, m4)
7519
7519
  ]) : F("v-if", !0),
@@ -7522,7 +7522,7 @@ function D4(t, e, n, r, o, i) {
7522
7522
  b(
7523
7523
  "div",
7524
7524
  {
7525
- class: ge(t.classList.placeholder),
7525
+ class: ve(t.classList.placeholder),
7526
7526
  "aria-hidden": "true"
7527
7527
  },
7528
7528
  q(n.placeholder),
@@ -7535,7 +7535,7 @@ function D4(t, e, n, r, o, i) {
7535
7535
  b(
7536
7536
  "span",
7537
7537
  {
7538
- class: ge(t.classList.spinner),
7538
+ class: ve(t.classList.spinner),
7539
7539
  "aria-hidden": "true"
7540
7540
  },
7541
7541
  null,
@@ -7556,7 +7556,7 @@ function D4(t, e, n, r, o, i) {
7556
7556
  role: "button",
7557
7557
  "data-clear": "",
7558
7558
  "aria-roledescription": "❎",
7559
- class: ge(t.classList.clear),
7559
+ class: ve(t.classList.clear),
7560
7560
  onClick: e[6] || (e[6] = (...s) => t.clear && t.clear(...s)),
7561
7561
  onKeyup: e[7] || (e[7] = Hr((...s) => t.clear && t.clear(...s), ["enter"]))
7562
7562
  },
@@ -7564,7 +7564,7 @@ function D4(t, e, n, r, o, i) {
7564
7564
  b(
7565
7565
  "span",
7566
7566
  {
7567
- class: ge(t.classList.clearIcon)
7567
+ class: ve(t.classList.clearIcon)
7568
7568
  },
7569
7569
  null,
7570
7570
  2
@@ -7584,7 +7584,7 @@ function D4(t, e, n, r, o, i) {
7584
7584
  b(
7585
7585
  "span",
7586
7586
  {
7587
- class: ge(t.classList.caret),
7587
+ class: ve(t.classList.caret),
7588
7588
  onClick: e[8] || (e[8] = (...s) => t.handleCaretClick && t.handleCaretClick(...s)),
7589
7589
  "aria-hidden": "true"
7590
7590
  },
@@ -7601,13 +7601,13 @@ function D4(t, e, n, r, o, i) {
7601
7601
  }, [
7602
7602
  b("div", {
7603
7603
  id: `${n.id}-dropdown`,
7604
- class: ge(t.classList.dropdown),
7604
+ class: ve(t.classList.dropdown),
7605
7605
  tabindex: "-1",
7606
7606
  ref: "dropdown"
7607
7607
  }, [
7608
7608
  we(t.$slots, "beforelist", { options: t.fo }),
7609
7609
  b("ul", {
7610
- class: ge(t.classList.options),
7610
+ class: ve(t.classList.options),
7611
7611
  id: t.ariaControls,
7612
7612
  role: "listbox"
7613
7613
  }, [
@@ -7615,7 +7615,7 @@ function D4(t, e, n, r, o, i) {
7615
7615
  Ie,
7616
7616
  { key: 0 },
7617
7617
  tt(t.fg, (s, a, l) => (k(), M("li", {
7618
- class: ge(t.classList.group),
7618
+ class: ve(t.classList.group),
7619
7619
  key: l,
7620
7620
  id: t.ariaGroupId(s),
7621
7621
  "aria-label": t.ariaGroupLabel(t.localize(s[n.groupLabel])),
@@ -7624,7 +7624,7 @@ function D4(t, e, n, r, o, i) {
7624
7624
  }, [
7625
7625
  s.__CREATE__ ? F("v-if", !0) : (k(), M("div", {
7626
7626
  key: 0,
7627
- class: ge(t.classList.groupLabel(s)),
7627
+ class: ve(t.classList.groupLabel(s)),
7628
7628
  "data-pointed": t.isPointed(s),
7629
7629
  onMouseenter: (c) => t.setPointer(s, a),
7630
7630
  onMousedown: Se((c) => t.handleGroupClick(s), ["prevent"])
@@ -7640,7 +7640,7 @@ function D4(t, e, n, r, o, i) {
7640
7640
  ])
7641
7641
  ], 42, y4)),
7642
7642
  b("ul", {
7643
- class: ge(t.classList.groupOptions),
7643
+ class: ve(t.classList.groupOptions),
7644
7644
  "aria-label": t.ariaGroupLabel(t.localize(s[n.groupLabel])),
7645
7645
  role: "group"
7646
7646
  }, [
@@ -7648,7 +7648,7 @@ function D4(t, e, n, r, o, i) {
7648
7648
  Ie,
7649
7649
  null,
7650
7650
  tt(s.__VISIBLE__, (c, u, d) => (k(), M("li", {
7651
- class: ge(t.classList.option(c, s)),
7651
+ class: ve(t.classList.option(c, s)),
7652
7652
  "data-pointed": t.isPointed(c),
7653
7653
  "data-selected": t.isSelected(c) || void 0,
7654
7654
  key: d,
@@ -7685,7 +7685,7 @@ function D4(t, e, n, r, o, i) {
7685
7685
  Ie,
7686
7686
  { key: 1 },
7687
7687
  tt(t.fo, (s, a, l) => (k(), M("li", {
7688
- class: ge(t.classList.option(s)),
7688
+ class: ve(t.classList.option(s)),
7689
7689
  "data-pointed": t.isPointed(s),
7690
7690
  "data-selected": t.isSelected(s) || void 0,
7691
7691
  key: l,
@@ -7717,13 +7717,13 @@ function D4(t, e, n, r, o, i) {
7717
7717
  ], 10, v4),
7718
7718
  t.noOptions ? we(t.$slots, "nooptions", { key: 0 }, () => [
7719
7719
  b("div", {
7720
- class: ge(t.classList.noOptions),
7720
+ class: ve(t.classList.noOptions),
7721
7721
  innerHTML: t.localize(n.noOptionsText)
7722
7722
  }, null, 10, x4)
7723
7723
  ]) : F("v-if", !0),
7724
7724
  t.noResults ? we(t.$slots, "noresults", { key: 1 }, () => [
7725
7725
  b("div", {
7726
- class: ge(t.classList.noResults),
7726
+ class: ve(t.classList.noResults),
7727
7727
  innerHTML: t.localize(n.noResultsText)
7728
7728
  }, null, 10, S4)
7729
7729
  ]) : F("v-if", !0),
@@ -7731,7 +7731,7 @@ function D4(t, e, n, r, o, i) {
7731
7731
  "div",
7732
7732
  {
7733
7733
  key: 2,
7734
- class: ge(t.classList.inifinite),
7734
+ class: ve(t.classList.inifinite),
7735
7735
  ref: "infiniteLoader"
7736
7736
  },
7737
7737
  [
@@ -7739,7 +7739,7 @@ function D4(t, e, n, r, o, i) {
7739
7739
  b(
7740
7740
  "span",
7741
7741
  {
7742
- class: ge(t.classList.inifiniteSpinner)
7742
+ class: ve(t.classList.inifiniteSpinner)
7743
7743
  },
7744
7744
  null,
7745
7745
  2
@@ -7756,7 +7756,7 @@ function D4(t, e, n, r, o, i) {
7756
7756
  F(" Hacky input element to show HTML5 required warning "),
7757
7757
  n.required ? (k(), M("input", {
7758
7758
  key: 0,
7759
- class: ge(t.classList.fakeInput),
7759
+ class: ve(t.classList.fakeInput),
7760
7760
  tabindex: "-1",
7761
7761
  value: t.textValue,
7762
7762
  required: ""
@@ -7790,7 +7790,7 @@ function D4(t, e, n, r, o, i) {
7790
7790
  F(" Screen reader assistive text "),
7791
7791
  n.searchable && t.hasSelected ? (k(), M("div", {
7792
7792
  key: 2,
7793
- class: ge(t.classList.assist),
7793
+ class: ve(t.classList.assist),
7794
7794
  id: t.ariaAssist,
7795
7795
  "aria-hidden": "true"
7796
7796
  }, q(t.ariaLabel), 11, $4)) : F("v-if", !0),
@@ -7798,7 +7798,7 @@ function D4(t, e, n, r, o, i) {
7798
7798
  b(
7799
7799
  "div",
7800
7800
  {
7801
- class: ge(t.classList.spacer)
7801
+ class: ve(t.classList.spacer)
7802
7802
  },
7803
7803
  null,
7804
7804
  2
@@ -7812,7 +7812,8 @@ const zt = /* @__PURE__ */ ue({
7812
7812
  __name: "AoMultiselect",
7813
7813
  props: {
7814
7814
  detached: { type: Boolean },
7815
- appendTo: {}
7815
+ appendTo: {},
7816
+ closeOnSelect: { type: Boolean }
7816
7817
  },
7817
7818
  setup(t) {
7818
7819
  const e = t, n = ti(() => e.appendTo), r = Q();
@@ -7822,7 +7823,8 @@ const zt = /* @__PURE__ */ ue({
7822
7823
  }), (o, i) => (k(), J(ee(Ir), {
7823
7824
  ref_key: "multiselectRef",
7824
7825
  ref: r,
7825
- class: "ao-multiselect"
7826
+ class: "ao-multiselect",
7827
+ "close-on-select": e.closeOnSelect
7826
7828
  }, $s({ _: 2 }, [
7827
7829
  tt(o.$slots, (s, a) => ({
7828
7830
  name: a,
@@ -7830,7 +7832,7 @@ const zt = /* @__PURE__ */ ue({
7830
7832
  we(o.$slots, a, Ms(Os(l ?? {})))
7831
7833
  ])
7832
7834
  }))
7833
- ]), 1536));
7835
+ ]), 1032, ["close-on-select"]));
7834
7836
  }
7835
7837
  });
7836
7838
  var T1;
@@ -7986,7 +7988,7 @@ const O4 = { class: "ao-tasks__list" }, L4 = ["id", "value", "readonly", "onChan
7986
7988
  id: x.id,
7987
7989
  value: x.name,
7988
7990
  readonly: !t.isEditable,
7989
- class: ge([
7991
+ class: ve([
7990
7992
  "ao-field__input ao-subtask__field",
7991
7993
  {
7992
7994
  "ao-subtask__field--checked": x.isDone
@@ -8123,7 +8125,7 @@ const P4 = { class: "ao-files__placeholder" }, F4 = {
8123
8125
  return (p, h) => {
8124
8126
  var m;
8125
8127
  return k(), M("div", {
8126
- class: ge([
8128
+ class: ve([
8127
8129
  "ao-files__wrapper",
8128
8130
  {
8129
8131
  "ao-files__wrapper--drop-active": o.value
@@ -12789,11 +12791,11 @@ function dm() {
12789
12791
  }, H = n, X = H.implementation, W = H.createNodeIterator, G = H.createDocumentFragment, ce = H.getElementsByTagName, be = r.importNode;
12790
12792
  let he = Af();
12791
12793
  e.isSupported = typeof cm == "function" && typeof y == "function" && X && X.createHTMLDocument !== void 0;
12792
- const je = wle, ye = kle, pe = xle, Z = Sle, j = Ale, ve = Ele, Be = Tle, st = Dle;
12794
+ const je = wle, ye = kle, pe = xle, Z = Sle, V = Ale, _e = Ele, Be = Tle, st = Dle;
12793
12795
  let Re = kf, Le = null;
12794
12796
  const Rt = ze({}, [...yf, ...xc, ...Sc, ...Ac, ...bf]);
12795
- let V = null;
12796
- const _e = ze({}, [...Cf, ...Ec, ...wf, ...pa]);
12797
+ let j = null;
12798
+ const ge = ze({}, [...Cf, ...Ec, ...wf, ...pa]);
12797
12799
  let De = Object.seal(Yo(null, {
12798
12800
  tagNameCheck: {
12799
12801
  writable: !0,
@@ -12890,7 +12892,7 @@ function dm() {
12890
12892
  (!D || typeof D != "object") && (D = {}), D = Ut(D), no = // eslint-disable-next-line unicorn/prefer-includes
12891
12893
  Ni.indexOf(D.PARSER_MEDIA_TYPE) === -1 ? Pi : D.PARSER_MEDIA_TYPE, Xe = no === "application/xhtml+xml" ? kc : ts, Le = Mr(D, "ALLOWED_TAGS", Rt, {
12892
12894
  transform: Xe
12893
- }), V = Mr(D, "ALLOWED_ATTR", _e, {
12895
+ }), j = Mr(D, "ALLOWED_ATTR", ge, {
12894
12896
  transform: Xe
12895
12897
  }), Li = Mr(D, "ALLOWED_NAMESPACES", Ql, {
12896
12898
  transform: kc
@@ -12908,7 +12910,7 @@ function dm() {
12908
12910
  transform: Xe
12909
12911
  }), jt = At(D, "USE_PROFILES") ? D.USE_PROFILES && typeof D.USE_PROFILES == "object" ? Ut(D.USE_PROFILES) : D.USE_PROFILES : !1, Ke = D.ALLOW_ARIA_ATTR !== !1, rt = D.ALLOW_DATA_ATTR !== !1, ft = D.ALLOW_UNKNOWN_PROTOCOLS || !1, mt = D.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ge = D.SAFE_FOR_TEMPLATES || !1, Bt = D.SAFE_FOR_XML !== !1, xt = D.WHOLE_DOCUMENT || !1, B = D.RETURN_DOM || !1, re = D.RETURN_DOM_FRAGMENT || !1, Ee = D.RETURN_TRUSTED_TYPE || !1, lr = D.FORCE_BODY || !1, ot = D.SANITIZE_DOM !== !1, gt = D.SANITIZE_NAMED_PROPS || !1, Ue = D.KEEP_CONTENT !== !1, on = D.IN_PLACE || !1, Re = yle(D.ALLOWED_URI_REGEXP) ? D.ALLOWED_URI_REGEXP : kf, Tr = typeof D.NAMESPACE == "string" ? D.NAMESPACE : ln, cn = At(D, "MATHML_TEXT_INTEGRATION_POINTS") && D.MATHML_TEXT_INTEGRATION_POINTS && typeof D.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Ut(D.MATHML_TEXT_INTEGRATION_POINTS) : ze({}, Xs), Ii = At(D, "HTML_INTEGRATION_POINTS") && D.HTML_INTEGRATION_POINTS && typeof D.HTML_INTEGRATION_POINTS == "object" ? Ut(D.HTML_INTEGRATION_POINTS) : ze({}, Qs);
12910
12912
  const U = At(D, "CUSTOM_ELEMENT_HANDLING") && D.CUSTOM_ELEMENT_HANDLING && typeof D.CUSTOM_ELEMENT_HANDLING == "object" ? Ut(D.CUSTOM_ELEMENT_HANDLING) : Yo(null);
12911
- if (De = Yo(null), At(U, "tagNameCheck") && ea(U.tagNameCheck) && (De.tagNameCheck = U.tagNameCheck), At(U, "attributeNameCheck") && ea(U.attributeNameCheck) && (De.attributeNameCheck = U.attributeNameCheck), At(U, "allowCustomizedBuiltInElements") && typeof U.allowCustomizedBuiltInElements == "boolean" && (De.allowCustomizedBuiltInElements = U.allowCustomizedBuiltInElements), Nt(De), Ge && (rt = !1), re && (B = !0), jt && (Le = ze({}, bf), V = Yo(null), jt.html === !0 && (ze(Le, yf), ze(V, Cf)), jt.svg === !0 && (ze(Le, xc), ze(V, Ec), ze(V, pa)), jt.svgFilters === !0 && (ze(Le, Sc), ze(V, Ec), ze(V, pa)), jt.mathMl === !0 && (ze(Le, Ac), ze(V, wf), ze(V, pa))), Ve.tagCheck = null, Ve.attributeCheck = null, At(D, "ADD_TAGS") && (typeof D.ADD_TAGS == "function" ? Ve.tagCheck = D.ADD_TAGS : Nr(D.ADD_TAGS) && (Le === Rt && (Le = Ut(Le)), ze(Le, D.ADD_TAGS, Xe))), At(D, "ADD_ATTR") && (typeof D.ADD_ATTR == "function" ? Ve.attributeCheck = D.ADD_ATTR : Nr(D.ADD_ATTR) && (V === _e && (V = Ut(V)), ze(V, D.ADD_ATTR, Xe))), At(D, "ADD_URI_SAFE_ATTR") && Nr(D.ADD_URI_SAFE_ATTR) && ze(an, D.ADD_URI_SAFE_ATTR, Xe), At(D, "FORBID_CONTENTS") && Nr(D.FORBID_CONTENTS) && (sn === Bo && (sn = Ut(sn)), ze(sn, D.FORBID_CONTENTS, Xe)), At(D, "ADD_FORBID_CONTENTS") && Nr(D.ADD_FORBID_CONTENTS) && (sn === Bo && (sn = Ut(sn)), ze(sn, D.ADD_FORBID_CONTENTS, Xe)), Ue && (Le["#text"] = !0), xt && ze(Le, ["html", "head", "body"]), Le.table && (ze(Le, ["tbody"]), delete Ae.tbody), D.TRUSTED_TYPES_POLICY) {
12913
+ if (De = Yo(null), At(U, "tagNameCheck") && ea(U.tagNameCheck) && (De.tagNameCheck = U.tagNameCheck), At(U, "attributeNameCheck") && ea(U.attributeNameCheck) && (De.attributeNameCheck = U.attributeNameCheck), At(U, "allowCustomizedBuiltInElements") && typeof U.allowCustomizedBuiltInElements == "boolean" && (De.allowCustomizedBuiltInElements = U.allowCustomizedBuiltInElements), Nt(De), Ge && (rt = !1), re && (B = !0), jt && (Le = ze({}, bf), j = Yo(null), jt.html === !0 && (ze(Le, yf), ze(j, Cf)), jt.svg === !0 && (ze(Le, xc), ze(j, Ec), ze(j, pa)), jt.svgFilters === !0 && (ze(Le, Sc), ze(j, Ec), ze(j, pa)), jt.mathMl === !0 && (ze(Le, Ac), ze(j, wf), ze(j, pa))), Ve.tagCheck = null, Ve.attributeCheck = null, At(D, "ADD_TAGS") && (typeof D.ADD_TAGS == "function" ? Ve.tagCheck = D.ADD_TAGS : Nr(D.ADD_TAGS) && (Le === Rt && (Le = Ut(Le)), ze(Le, D.ADD_TAGS, Xe))), At(D, "ADD_ATTR") && (typeof D.ADD_ATTR == "function" ? Ve.attributeCheck = D.ADD_ATTR : Nr(D.ADD_ATTR) && (j === ge && (j = Ut(j)), ze(j, D.ADD_ATTR, Xe))), At(D, "ADD_URI_SAFE_ATTR") && Nr(D.ADD_URI_SAFE_ATTR) && ze(an, D.ADD_URI_SAFE_ATTR, Xe), At(D, "FORBID_CONTENTS") && Nr(D.FORBID_CONTENTS) && (sn === Bo && (sn = Ut(sn)), ze(sn, D.FORBID_CONTENTS, Xe)), At(D, "ADD_FORBID_CONTENTS") && Nr(D.ADD_FORBID_CONTENTS) && (sn === Bo && (sn = Ut(sn)), ze(sn, D.ADD_FORBID_CONTENTS, Xe)), Ue && (Le["#text"] = !0), xt && ze(Le, ["html", "head", "body"]), Le.table && (ze(Le, ["tbody"]), delete Ae.tbody), D.TRUSTED_TYPES_POLICY) {
12912
12914
  if (typeof D.TRUSTED_TYPES_POLICY.createHTML != "function")
12913
12915
  throw oo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
12914
12916
  if (typeof D.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -12999,7 +13001,7 @@ function dm() {
12999
13001
  if (U)
13000
13002
  for (let te = U.length - 1; te >= 0; --te) {
13001
13003
  const Ce = U[te], xe = Ce && Ce.name;
13002
- if (!(typeof xe != "string" || V[Xe(xe)]))
13004
+ if (!(typeof xe != "string" || j[Xe(xe)]))
13003
13005
  try {
13004
13006
  D.removeAttribute(xe);
13005
13007
  } catch {
@@ -13187,14 +13189,14 @@ function dm() {
13187
13189
  }, i1 = function(D, U, te) {
13188
13190
  if (at[U] || Bt && U === "patchsrc" || Bt && U === "for" && D !== "label" && D !== "output" || ot && (U === "id" || U === "name") && (te in n || te in Fi))
13189
13191
  return !1;
13190
- const Ce = V[U] || Ve.attributeCheck instanceof Function && Ve.attributeCheck(U, D);
13192
+ const Ce = j[U] || Ve.attributeCheck instanceof Function && Ve.attributeCheck(U, D);
13191
13193
  if (!(rt && St(Z, U))) {
13192
- if (!(Ke && St(j, U))) {
13194
+ if (!(Ke && St(V, U))) {
13193
13195
  if (Ce) {
13194
13196
  if (!an[U]) {
13195
13197
  if (!St(Re, Ki(te, Be, ""))) {
13196
13198
  if (!((U === "src" || U === "xlink:href" || U === "href") && D !== "script" && gf(te, "data:") === 0 && Js[D])) {
13197
- if (!(ft && !St(ve, Ki(te, Be, "")))) {
13199
+ if (!(ft && !St(_e, Ki(te, Be, "")))) {
13198
13200
  if (te)
13199
13201
  return !1;
13200
13202
  }
@@ -13235,12 +13237,12 @@ function dm() {
13235
13237
  const U = D.attributes;
13236
13238
  if (!U || ra(D))
13237
13239
  return;
13238
- V = r1(he.uponSanitizeAttribute, V, _e, Vn);
13240
+ j = r1(he.uponSanitizeAttribute, j, ge, Vn);
13239
13241
  const te = {
13240
13242
  attrName: "",
13241
13243
  attrValue: "",
13242
13244
  keepAttr: !0,
13243
- allowedAttributes: V,
13245
+ allowedAttributes: j,
13244
13246
  forceKeepAttr: void 0
13245
13247
  };
13246
13248
  let Ce = U.length;
@@ -13328,7 +13330,7 @@ function dm() {
13328
13330
  throw oo("dirty is not a string, aborting");
13329
13331
  if (!e.isSupported)
13330
13332
  return ae;
13331
- rn ? (Le = yn, V = Vn) : $r(D), (he.uponSanitizeElement.length > 0 || he.uponSanitizeAttribute.length > 0) && (Le = Ut(Le)), he.uponSanitizeAttribute.length > 0 && (V = Ut(V)), e.removed = [];
13333
+ rn ? (Le = yn, j = Vn) : $r(D), (he.uponSanitizeElement.length > 0 || he.uponSanitizeAttribute.length > 0) && (Le = Ut(Le)), he.uponSanitizeAttribute.length > 0 && (j = Ut(j)), e.removed = [];
13332
13334
  const Oe = on && typeof ae != "string" && zi(ae);
13333
13335
  if (Oe) {
13334
13336
  O0(ae);
@@ -13375,14 +13377,14 @@ function dm() {
13375
13377
  xe.appendChild(U.firstChild);
13376
13378
  else
13377
13379
  xe = U;
13378
- return (V.shadowroot || V.shadowrootmode) && (xe = be.call(r, xe, !0)), xe;
13380
+ return (j.shadowroot || j.shadowrootmode) && (xe = be.call(r, xe, !0)), xe;
13379
13381
  }
13380
13382
  let ct = xt ? U.outerHTML : U.innerHTML;
13381
13383
  return xt && Le["!doctype"] && U.ownerDocument && U.ownerDocument.doctype && U.ownerDocument.doctype.name && St($le, U.ownerDocument.doctype.name) && (ct = "<!DOCTYPE " + U.ownerDocument.doctype.name + `>
13382
13384
  ` + ct), Ge && (ct = na(ct)), $ && Ee ? I(ct) : ct;
13383
13385
  }, e.setConfig = function() {
13384
13386
  let ae = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
13385
- $r(ae), rn = !0, yn = Le, Vn = V;
13387
+ $r(ae), rn = !0, yn = Le, Vn = j;
13386
13388
  }, e.clearConfig = function() {
13387
13389
  Mn = null, rn = !1, yn = null, Vn = null, $ = A, T = "";
13388
13390
  }, e.isValidAttribute = function(ae, D, U) {
@@ -16302,24 +16304,24 @@ function Bce(t, e, n, r, o, i, s) {
16302
16304
  return;
16303
16305
  let { top: he, bottom: je } = W, ye = 0, pe = 0, Z = G;
16304
16306
  for (; Z !== null; ) {
16305
- const j = Z === ce.body;
16306
- if (j)
16307
+ const V = Z === ce.body;
16308
+ if (V)
16307
16309
  ye = 0, pe = $n(X).innerHeight;
16308
16310
  else {
16309
16311
  const Be = Z.getBoundingClientRect();
16310
16312
  ye = Be.top, pe = Be.bottom;
16311
16313
  }
16312
- let ve = 0;
16313
- if (he < ye ? ve = -(ye - he) : je > pe && (ve = je - pe), ve !== 0)
16314
- if (j)
16315
- be.scrollBy(0, ve);
16314
+ let _e = 0;
16315
+ if (he < ye ? _e = -(ye - he) : je > pe && (_e = je - pe), _e !== 0)
16316
+ if (V)
16317
+ be.scrollBy(0, _e);
16316
16318
  else {
16317
16319
  const Be = Z.scrollTop;
16318
- Z.scrollTop += ve;
16320
+ Z.scrollTop += _e;
16319
16321
  const st = Z.scrollTop - Be;
16320
16322
  he -= st, je -= st;
16321
16323
  }
16322
- if (j)
16324
+ if (V)
16323
16325
  break;
16324
16326
  Z = Gs(Z);
16325
16327
  }
@@ -20952,11 +20954,11 @@ var rde = { exports: {} };
20952
20954
  be--, ce = g.slice(G, ye), he.index -= G;
20953
20955
  } else if (he = c(X, 0, ce, I), !he)
20954
20956
  continue;
20955
- var Z = he.index, j = he[0], ve = ce.slice(0, Z), Be = ce.slice(Z + j.length), st = G + ce.length;
20957
+ var Z = he.index, V = he[0], _e = ce.slice(0, Z), Be = ce.slice(Z + V.length), st = G + ce.length;
20956
20958
  $ && st > $.reach && ($.reach = st);
20957
20959
  var Re = W.prev;
20958
- ve && (Re = f(v, Re, ve), G += ve.length), p(v, Re, be);
20959
- var Le = new l(T, E ? a.tokenize(j, E) : j, z, j);
20960
+ _e && (Re = f(v, Re, _e), G += _e.length), p(v, Re, be);
20961
+ var Le = new l(T, E ? a.tokenize(V, E) : V, z, V);
20960
20962
  if (W = f(v, Re, Le), Be && f(v, W, Be), be > 1) {
20961
20963
  var Rt = {
20962
20964
  cause: T + "," + S,
@@ -25127,7 +25129,7 @@ const c1e = (() => {
25127
25129
  default: se(() => [
25128
25130
  we(E.$slots, "toolbar"),
25129
25131
  b("div", {
25130
- class: ge(["ao-lexical-editor", l.value])
25132
+ class: ve(["ao-lexical-editor", l.value])
25131
25133
  }, [
25132
25134
  P(ee(c1e), null, {
25133
25135
  contentEditable: se(() => [
@@ -25355,7 +25357,7 @@ const f1e = {
25355
25357
  reset: S,
25356
25358
  focus: O
25357
25359
  }), (E, I) => (k(), M("div", {
25358
- class: ge(["ao-comment-editor", { "ao-comment-editor--focused": a.value }])
25360
+ class: ve(["ao-comment-editor", { "ao-comment-editor--focused": a.value }])
25359
25361
  }, [
25360
25362
  v.value ? (k(), M("div", f1e, [
25361
25363
  b("button", {
@@ -25458,7 +25460,7 @@ const f1e = {
25458
25460
  }, [
25459
25461
  (k(!0), M(Ie, null, tt(ee(d), (N, z) => (k(), M("li", {
25460
25462
  key: N.id,
25461
- class: ge({
25463
+ class: ve({
25462
25464
  "ao-comment-editor__mention-item--selected": z === ee(f)
25463
25465
  }),
25464
25466
  onMousedown: I[12] || (I[12] = Se(() => {
@@ -25984,7 +25986,7 @@ const U1e = { class: "toggle-wrapper" };
25984
25986
  function z1e(t, e, n, r, o, i) {
25985
25987
  return k(), M("div", U1e, [
25986
25988
  b("button", {
25987
- class: ge({
25989
+ class: ve({
25988
25990
  button: !0,
25989
25991
  "button--left": !0,
25990
25992
  "button--inactive": !t.isLeft
@@ -25993,7 +25995,7 @@ function z1e(t, e, n, r, o, i) {
25993
25995
  onClick: e[0] || (e[0] = (...s) => t.selectLeft && t.selectLeft(...s))
25994
25996
  }, q(t.leftLabel), 3),
25995
25997
  b("button", {
25996
- class: ge({
25998
+ class: ve({
25997
25999
  button: !0,
25998
26000
  "button--right": !0,
25999
26001
  "button--inactive": t.isLeft
@@ -26032,13 +26034,13 @@ const j1e = ["onClick"], V1e = { class: "tab-button__label" }, W1e = {
26032
26034
  };
26033
26035
  function Z1e(t, e, n, r, o, i) {
26034
26036
  return k(), M("div", {
26035
- class: ge(["tabbar-wrapper", {
26037
+ class: ve(["tabbar-wrapper", {
26036
26038
  "tabbar-wrapper--underline": t.variant === "underline"
26037
26039
  }])
26038
26040
  }, [
26039
26041
  (k(!0), M(Ie, null, tt(t.tabs, (s) => (k(), M("button", {
26040
26042
  key: s.value,
26041
- class: ge([
26043
+ class: ve([
26042
26044
  "tab-button",
26043
26045
  {
26044
26046
  "tab-button--active": s.value === t.modelValue,
@@ -26448,7 +26450,7 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26448
26450
  blocking: B
26449
26451
  });
26450
26452
  }
26451
- }), j = L(() => je.value.map((B) => {
26453
+ }), V = L(() => je.value.map((B) => {
26452
26454
  var re;
26453
26455
  return {
26454
26456
  ...B,
@@ -26456,7 +26458,7 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26456
26458
  (Ee) => Ee.id === B.value
26457
26459
  )
26458
26460
  };
26459
- })), ve = (B) => {
26461
+ })), _e = (B) => {
26460
26462
  r("addSubtask", B);
26461
26463
  }, Be = (B) => {
26462
26464
  r("updateSubtask", B);
@@ -26464,10 +26466,10 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26464
26466
  r("deleteSubtask", B);
26465
26467
  };
26466
26468
  function Re() {
26467
- n.userId ? V.value = [n.userId] : console.error("Failed assigning to self: userId is missing");
26469
+ n.userId ? j.value = [n.userId] : console.error("Failed assigning to self: userId is missing");
26468
26470
  }
26469
26471
  function Le(B) {
26470
- V.value = [B];
26472
+ j.value = [B];
26471
26473
  }
26472
26474
  const Rt = L(() => {
26473
26475
  var re;
@@ -26479,7 +26481,7 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26479
26481
  value: Ee.id,
26480
26482
  avatar: Ee.avatarUrl
26481
26483
  }));
26482
- }), V = L({
26484
+ }), j = L({
26483
26485
  get() {
26484
26486
  var B, re;
26485
26487
  return (B = n.activity.assignee) != null && B.id ? [(re = n.activity.assignee) == null ? void 0 : re.id] : [];
@@ -26491,13 +26493,13 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26491
26493
  // `undefined` is not a value for GraphQL, we have to use `null` to reset a value
26492
26494
  });
26493
26495
  }
26494
- }), _e = (B) => {
26496
+ }), ge = (B) => {
26495
26497
  r("addFiles", {
26496
26498
  activityId: n.activity.id,
26497
26499
  files: B
26498
26500
  });
26499
26501
  }, De = (B) => {
26500
- _e(B);
26502
+ ge(B);
26501
26503
  }, Ae = (B) => {
26502
26504
  r("removeFile", {
26503
26505
  activityId: n.activity.id,
@@ -26635,7 +26637,7 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26635
26637
  P(Z4, {
26636
26638
  attachments: t.activity.attachments,
26637
26639
  "is-editable": t.attachmentEnabled && a.value && !t.isTemplate && !!t.userId,
26638
- onAdd: _e,
26640
+ onAdd: ge,
26639
26641
  onRemove: Ae,
26640
26642
  onPreview: re[1] || (re[1] = (Ue) => c.value = Ue)
26641
26643
  }, {
@@ -26648,7 +26650,7 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26648
26650
  onPaste: De
26649
26651
  }, null, 8, ["initial-markdown"])) : (k(), M("div", {
26650
26652
  key: 0,
26651
- class: ge(["ao-activity-details__description", { "ao-activity-details__description--editable": a.value }]),
26653
+ class: ve(["ao-activity-details__description", { "ao-activity-details__description--editable": a.value }]),
26652
26654
  onClick: f
26653
26655
  }, [
26654
26656
  P(fm, { content: d.value }, null, 8, ["content"])
@@ -26672,7 +26674,7 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26672
26674
  "is-checkable": t.isTaskCheckable,
26673
26675
  "is-editable": a.value,
26674
26676
  "is-template": t.isTemplate,
26675
- onAdd: ve,
26677
+ onAdd: _e,
26676
26678
  onUpdate: Be,
26677
26679
  onDelete: st
26678
26680
  }, null, 8, ["tasks", "activity-id", "users", "is-checkable", "is-editable", "is-template"])
@@ -26836,8 +26838,8 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26836
26838
  }, null, 8, ["label"])
26837
26839
  ]),
26838
26840
  P(zt, {
26839
- modelValue: V.value,
26840
- "onUpdate:modelValue": re[7] || (re[7] = (Ue) => V.value = Ue),
26841
+ modelValue: j.value,
26842
+ "onUpdate:modelValue": re[7] || (re[7] = (Ue) => j.value = Ue),
26841
26843
  class: "ao-activity-details__assignees ao-activity-details__multiselect",
26842
26844
  options: Rt.value,
26843
26845
  "close-on-select": !0,
@@ -26978,7 +26980,7 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26978
26980
  mode: "tags",
26979
26981
  "close-on-select": !1,
26980
26982
  searchable: !0,
26981
- options: j.value,
26983
+ options: V.value,
26982
26984
  disabled: !a.value,
26983
26985
  caret: a.value
26984
26986
  }, null, 8, ["modelValue", "options", "disabled", "caret"])
@@ -27462,19 +27464,19 @@ const ype = {
27462
27464
  }, null, 8, ["title"])
27463
27465
  ]),
27464
27466
  item: se(({ element: Z }) => {
27465
- var j;
27467
+ var V;
27466
27468
  return [
27467
27469
  P(eC, {
27468
27470
  id: Z.id,
27469
27471
  name: Z.name,
27470
27472
  milestones: Z.milestones,
27471
- "is-active": ((j = a.value) == null ? void 0 : j.id) === Z.id,
27473
+ "is-active": ((V = a.value) == null ? void 0 : V.id) === Z.id,
27472
27474
  "is-draggable": !0,
27473
- onClick: (ve) => W.$router.push({
27475
+ onClick: (_e) => W.$router.push({
27474
27476
  params: { templateId: t.templateId, phaseId: Z.id }
27475
27477
  }),
27476
- "onUpdate:title": (ve) => {
27477
- _(Z.id, ve);
27478
+ "onUpdate:title": (_e) => {
27479
+ _(Z.id, _e);
27478
27480
  },
27479
27481
  onRemove: () => m(Z.id)
27480
27482
  }, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
@@ -27583,7 +27585,7 @@ const Epe = { class: "ao-card__content" }, Tpe = {
27583
27585
  },
27584
27586
  setup(t) {
27585
27587
  return (e, n) => (k(), J(Io(t.tagName), {
27586
- class: ge([
27588
+ class: ve([
27587
27589
  "ao-card",
27588
27590
  {
27589
27591
  "ao-card--clickable": t.isClickable,
@@ -27624,12 +27626,12 @@ const Xl = /* @__PURE__ */ ue({
27624
27626
  setup(t) {
27625
27627
  const e = t, n = L(() => typeof e.percentages == "number" ? [e.percentages] : e.percentages ?? []);
27626
27628
  return (r, o) => (k(), M("div", {
27627
- class: ge(["ao-progress", t.status ? `ao-progress--${t.status}` : ""]),
27629
+ class: ve(["ao-progress", t.status ? `ao-progress--${t.status}` : ""]),
27628
27630
  role: "meter"
27629
27631
  }, [
27630
27632
  (k(!0), M(Ie, null, tt(n.value, (i) => (k(), M("div", {
27631
27633
  key: i,
27632
- class: ge(["ao-progress__progress"]),
27634
+ class: ve(["ao-progress__progress"]),
27633
27635
  style: Kt({
27634
27636
  width: `${i * 100}%`,
27635
27637
  "--ao-progress-color": t.color || "var(--ao-color-primary-base)"
@@ -28729,7 +28731,7 @@ const ehe = { class: "ao-card-project-phase__header" }, the = { class: "ao-card-
28729
28731
  ])) : F("", !0)
28730
28732
  ])) : F("", !0),
28731
28733
  b("div", {
28732
- class: ge(["ao-card-project-phase__footer-row", f.value ? "" : "ao-card-project-phase__no_deadline"])
28734
+ class: ve(["ao-card-project-phase__footer-row", f.value ? "" : "ao-card-project-phase__no_deadline"])
28733
28735
  }, [
28734
28736
  t.isEditable ? nt((k(), M("input", {
28735
28737
  key: 0,
@@ -28850,7 +28852,7 @@ const dhe = { class: "ao-card-project-milestone__default" }, fhe = { class: "ao-
28850
28852
  r("updateMilestone", { id: n.id, name: f });
28851
28853
  };
28852
28854
  return (f, p) => (k(), J(Jl, {
28853
- class: ge([
28855
+ class: ve([
28854
28856
  "ao-card-project-milestone"
28855
28857
  ]),
28856
28858
  "is-clickable": !t.readonly,
@@ -28919,7 +28921,7 @@ const dhe = { class: "ao-card-project-milestone__default" }, fhe = { class: "ao-
28919
28921
  t.important ? (k(), J(Fe, {
28920
28922
  key: 0,
28921
28923
  name: "FlagRounded",
28922
- class: ge(
28924
+ class: ve(
28923
28925
  t.isSelected ? "ao-card-project-milestone__important--selected" : "ao-card-project-milestone__important"
28924
28926
  ),
28925
28927
  size: "sm"
@@ -29293,7 +29295,7 @@ const Lhe = ["onKeydown"], Ihe = { class: "ao-modal ao-bulk-insert-modal" }, Nhe
29293
29295
  return (C, x) => (k(), J(Rn, { to: "body" }, [
29294
29296
  t.open ? (k(), M("div", {
29295
29297
  key: 0,
29296
- class: ge([
29298
+ class: ve([
29297
29299
  "ao-modal__wrapper",
29298
29300
  "ao-bulk-insert-modal__wrapper",
29299
29301
  `ao-modal__wrapper--${t.size}`
@@ -29542,7 +29544,7 @@ const Xhe = { class: "ao-mapping-card-project-phase__header" }, Qhe = { class: "
29542
29544
  ])) : F("", !0)
29543
29545
  ])) : F("", !0),
29544
29546
  b("div", {
29545
- class: ge(["ao-mapping-card-project-phase__footer-row", f.value ? "" : "ao-mapping-card-project-phase__no_deadline"])
29547
+ class: ve(["ao-mapping-card-project-phase__footer-row", f.value ? "" : "ao-mapping-card-project-phase__no_deadline"])
29546
29548
  }, [
29547
29549
  t.isEditable ? nt((k(), M("input", {
29548
29550
  key: 0,
@@ -29744,7 +29746,7 @@ const lme = { class: "ao-project-phase" }, cme = {
29744
29746
  }, [
29745
29747
  t.isEditable ? (k(), J(al, {
29746
29748
  key: 0,
29747
- class: ge(["ao-project-phase__milestone-quick-add", { "ao-project-phase__milestone-quick-add--visible": w.value }]),
29749
+ class: ve(["ao-project-phase__milestone-quick-add", { "ao-project-phase__milestone-quick-add--visible": w.value }]),
29748
29750
  placement: "bottom-end"
29749
29751
  }, {
29750
29752
  trigger: se(({ open: S }) => [
@@ -29805,7 +29807,7 @@ const lme = { class: "ao-project-phase" }, cme = {
29805
29807
  readonly: t.readonly,
29806
29808
  "time-tracking-data": t.timeTrackingData,
29807
29809
  "estimation-unit": t.estimationUnit,
29808
- class: ge(["ao-project-phase__milestone"]),
29810
+ class: ve(["ao-project-phase__milestone"]),
29809
29811
  onClick: (E) => !t.readonly && T.$router.push({
29810
29812
  name: ee(et).milestone,
29811
29813
  params: { phaseId: t.phase.id, milestoneId: S.id }
@@ -30080,71 +30082,71 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30080
30082
  emits: ["addPhase", "bulkAddPhase", "updatePhase", "archivePhase", "unarchivePhase", "addMilestone", "bulkAddMilestone", "updateMilestone", "archiveMilestone", "unarchiveMilestone", "addActivity", "bulkAddActivity", "update:activity", "archiveActivity", "copyPhaseToTemplate", "unarchiveActivity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "applyTemplate", "saveTemplate", "update:showsArchived"],
30081
30083
  setup(t, { emit: e }) {
30082
30084
  const { t: n } = nn(), r = t, o = e, i = L(
30083
- () => r.phases.flatMap((j) => j.milestones)
30085
+ () => r.phases.flatMap((V) => V.milestones)
30084
30086
  ), s = () => {
30085
- const { name: j, rank: ve } = bo(r.phases, "phase", n);
30086
- o("addPhase", { name: j, rank: ve, projectId: r.project.id });
30087
+ const { name: V, rank: _e } = bo(r.phases, "phase", n);
30088
+ o("addPhase", { name: V, rank: _e, projectId: r.project.id });
30087
30089
  }, a = () => {
30088
- const j = n("template.defaultName.phase", { idx: 1 }), ve = Fs(r.phases);
30089
- o("addPhase", { name: j, rank: ve, projectId: r.project.id });
30090
- }, l = (j) => {
30091
- o("updatePhase", j);
30092
- }, c = (j) => {
30093
- o("archivePhase", j);
30094
- }, u = (j) => {
30095
- o("unarchivePhase", j);
30096
- }, d = (j) => {
30097
- o("copyPhaseToTemplate", j);
30098
- }, f = (j) => {
30099
- o("addMilestone", j);
30100
- }, p = (j) => {
30101
- o("bulkAddMilestone", j);
30102
- }, h = (j) => {
30103
- o("updateMilestone", j);
30104
- }, m = (j) => {
30105
- o("archiveMilestone", j);
30106
- }, _ = (j) => {
30107
- o("unarchiveMilestone", j);
30108
- }, y = (j) => {
30109
- o("addActivity", j);
30110
- }, g = (j) => {
30111
- o("bulkAddActivity", j);
30112
- }, v = (j) => {
30113
- o("update:activity", j);
30114
- }, C = (j) => {
30115
- o("archiveActivity", j);
30116
- }, x = (j) => {
30117
- o("unarchiveActivity", j);
30118
- }, w = (j) => {
30119
- o("addSubtask", j);
30120
- }, $ = (j) => {
30121
- o("updateSubtask", j);
30122
- }, T = (j) => {
30123
- o("deleteSubtask", j);
30090
+ const V = n("template.defaultName.phase", { idx: 1 }), _e = Fs(r.phases);
30091
+ o("addPhase", { name: V, rank: _e, projectId: r.project.id });
30092
+ }, l = (V) => {
30093
+ o("updatePhase", V);
30094
+ }, c = (V) => {
30095
+ o("archivePhase", V);
30096
+ }, u = (V) => {
30097
+ o("unarchivePhase", V);
30098
+ }, d = (V) => {
30099
+ o("copyPhaseToTemplate", V);
30100
+ }, f = (V) => {
30101
+ o("addMilestone", V);
30102
+ }, p = (V) => {
30103
+ o("bulkAddMilestone", V);
30104
+ }, h = (V) => {
30105
+ o("updateMilestone", V);
30106
+ }, m = (V) => {
30107
+ o("archiveMilestone", V);
30108
+ }, _ = (V) => {
30109
+ o("unarchiveMilestone", V);
30110
+ }, y = (V) => {
30111
+ o("addActivity", V);
30112
+ }, g = (V) => {
30113
+ o("bulkAddActivity", V);
30114
+ }, v = (V) => {
30115
+ o("update:activity", V);
30116
+ }, C = (V) => {
30117
+ o("archiveActivity", V);
30118
+ }, x = (V) => {
30119
+ o("unarchiveActivity", V);
30120
+ }, w = (V) => {
30121
+ o("addSubtask", V);
30122
+ }, $ = (V) => {
30123
+ o("updateSubtask", V);
30124
+ }, T = (V) => {
30125
+ o("deleteSubtask", V);
30124
30126
  }, A = L(
30125
- () => i.value.flatMap((j) => j.activities)
30126
- ), S = L(() => r.devStatuses ?? []), O = L(() => r.sprints ?? []), E = (j) => {
30127
- o("addFiles", j);
30128
- }, I = (j) => {
30129
- o("removeFile", j);
30130
- }, N = (j) => {
30131
- o("addComment", j);
30132
- }, z = (j) => {
30133
- o("updateComment", j);
30134
- }, H = (j) => {
30135
- o("removeComment", j);
30136
- }, X = Q(!1), W = Q(!1), G = Q(!1), ce = Q(!1), be = (j, ve) => {
30137
- o("applyTemplate", { templateId: j, projectId: ve }), X.value = !1;
30138
- }, he = (j, ve) => {
30127
+ () => i.value.flatMap((V) => V.activities)
30128
+ ), S = L(() => r.devStatuses ?? []), O = L(() => r.sprints ?? []), E = (V) => {
30129
+ o("addFiles", V);
30130
+ }, I = (V) => {
30131
+ o("removeFile", V);
30132
+ }, N = (V) => {
30133
+ o("addComment", V);
30134
+ }, z = (V) => {
30135
+ o("updateComment", V);
30136
+ }, H = (V) => {
30137
+ o("removeComment", V);
30138
+ }, X = Q(!1), W = Q(!1), G = Q(!1), ce = Q(!1), be = (V, _e) => {
30139
+ o("applyTemplate", { templateId: V, projectId: _e }), X.value = !1;
30140
+ }, he = (V, _e) => {
30139
30141
  var Re;
30140
30142
  const Be = (Re = r.templates) == null ? void 0 : Re.at(-1), st = Be ? vt.LexoRank.parse(Be.rank).genNext() : vt.LexoRank.middle();
30141
- o("saveTemplate", { templateName: j, rank: st.format(), phaseIds: ve }), W.value = !1;
30142
- }, je = (j) => {
30143
+ o("saveTemplate", { templateName: V, rank: st.format(), phaseIds: _e }), W.value = !1;
30144
+ }, je = (V) => {
30143
30145
  ce.value = !0;
30144
- const ve = Jhe(j, r.phases);
30146
+ const _e = Jhe(V, r.phases);
30145
30147
  o("bulkAddPhase", {
30146
30148
  projectId: r.project.id,
30147
- phases: ve,
30149
+ phases: _e,
30148
30150
  onSuccess: () => {
30149
30151
  ce.value = !1, G.value = !1;
30150
30152
  },
@@ -30153,8 +30155,8 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30153
30155
  }
30154
30156
  });
30155
30157
  };
30156
- Ne(G, (j) => {
30157
- j && (ce.value = !1);
30158
+ Ne(G, (V) => {
30159
+ V && (ce.value = !1);
30158
30160
  });
30159
30161
  const ye = Nu(), pe = Q("overview"), Z = [
30160
30162
  { label: "Overview", value: "overview" },
@@ -30162,19 +30164,19 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30162
30164
  { label: "Dev", value: "dev" },
30163
30165
  { label: "Mapping", value: "mapping" }
30164
30166
  ];
30165
- return Ne(pe, (j) => {
30166
- j === "feed" ? (ye.push({ name: et.feed }), console.log("Navigating to feed...")) : j === "dev" ? (ye.push({ name: et.dev }), console.log("Navigating to dev...")) : j === "overview" ? (ye.push({ name: et.project }), console.log("Navigating to feed...")) : j === "mapping" && (ye.push({ name: et.mapping }), console.log("Navigating to feed..."));
30167
- }), (j, ve) => {
30167
+ return Ne(pe, (V) => {
30168
+ V === "feed" ? (ye.push({ name: et.feed }), console.log("Navigating to feed...")) : V === "dev" ? (ye.push({ name: et.dev }), console.log("Navigating to dev...")) : V === "overview" ? (ye.push({ name: et.project }), console.log("Navigating to feed...")) : V === "mapping" && (ye.push({ name: et.mapping }), console.log("Navigating to feed..."));
30169
+ }), (V, _e) => {
30168
30170
  var st;
30169
30171
  const Be = Or("RouterView");
30170
30172
  return k(), M(Ie, null, [
30171
- b("div", Ht({ class: "ao-project-overview" }, j.$attrs), [
30173
+ b("div", Ht({ class: "ao-project-overview" }, V.$attrs), [
30172
30174
  b("div", Lme, [
30173
30175
  P(Rs, null, {
30174
30176
  primary: se(() => [
30175
30177
  P(Yl, {
30176
30178
  modelValue: pe.value,
30177
- "onUpdate:modelValue": ve[0] || (ve[0] = (Re) => pe.value = Re),
30179
+ "onUpdate:modelValue": _e[0] || (_e[0] = (Re) => pe.value = Re),
30178
30180
  tabs: Z
30179
30181
  }, null, 8, ["modelValue"]),
30180
30182
  P(ke, {
@@ -30184,10 +30186,10 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30184
30186
  "icon-position": "start",
30185
30187
  color: "primary",
30186
30188
  variant: "ghost",
30187
- label: j.$t("feed.filters.showsArchived.label"),
30189
+ label: V.$t("feed.filters.showsArchived.label"),
30188
30190
  role: "checkbox",
30189
30191
  "aria-checked": t.showsArchived,
30190
- onClick: ve[1] || (ve[1] = (Re) => j.$emit("update:showsArchived", !t.showsArchived))
30192
+ onClick: _e[1] || (_e[1] = (Re) => V.$emit("update:showsArchived", !t.showsArchived))
30191
30193
  }, null, 8, ["icon-name", "label", "aria-checked"])
30192
30194
  ]),
30193
30195
  secondary: se(() => [
@@ -30202,7 +30204,7 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30202
30204
  "icon-position": "start",
30203
30205
  color: "primary",
30204
30206
  variant: "ghost",
30205
- label: j.$t("project.phase.add"),
30207
+ label: V.$t("project.phase.add"),
30206
30208
  onClick: Re
30207
30209
  }, null, 8, ["label", "onClick"])
30208
30210
  ]),
@@ -30213,14 +30215,14 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30213
30215
  onClick: () => {
30214
30216
  Re(), a();
30215
30217
  }
30216
- }, q(j.$t("project.bulk.menu.single")), 9, Ime),
30218
+ }, q(V.$t("project.bulk.menu.single")), 9, Ime),
30217
30219
  b("button", {
30218
30220
  type: "button",
30219
30221
  class: "ao-popover-menu__item",
30220
30222
  onClick: () => {
30221
30223
  Re(), G.value = !0;
30222
30224
  }
30223
- }, q(j.$t("project.bulk.menu.bulkInsert")), 9, Nme)
30225
+ }, q(V.$t("project.bulk.menu.bulkInsert")), 9, Nme)
30224
30226
  ]),
30225
30227
  _: 1
30226
30228
  })) : F("", !0),
@@ -30228,15 +30230,15 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30228
30230
  key: 1,
30229
30231
  class: "ao-project-overview__save-as-template",
30230
30232
  color: "primary",
30231
- label: j.$t("project.template.save.label"),
30232
- onClick: ve[2] || (ve[2] = (Re) => W.value = !0)
30233
+ label: V.$t("project.template.save.label"),
30234
+ onClick: _e[2] || (_e[2] = (Re) => W.value = !0)
30233
30235
  }, null, 8, ["label"])) : F("", !0),
30234
30236
  t.isEditable === !0 ? (k(), J(ke, {
30235
30237
  key: 2,
30236
30238
  class: "ao-project-overview__add-template",
30237
30239
  color: "primary",
30238
- label: j.$t("project.template.apply.label"),
30239
- onClick: ve[3] || (ve[3] = (Re) => X.value = !0)
30240
+ label: V.$t("project.template.apply.label"),
30241
+ onClick: _e[3] || (_e[3] = (Re) => X.value = !0)
30240
30242
  }, null, 8, ["label"])) : F("", !0)
30241
30243
  ]),
30242
30244
  _: 1
@@ -30271,7 +30273,7 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30271
30273
  "is-editable": t.isEditable === !0,
30272
30274
  "closed-status": t.closedStatus,
30273
30275
  "time-tracking-data": t.timeTrackingData,
30274
- onClose: ve[4] || (ve[4] = (Re) => j.$router.push({ name: ee(et).project })),
30276
+ onClose: _e[4] || (_e[4] = (Re) => V.$router.push({ name: ee(et).project })),
30275
30277
  onUpdateMilestone: h,
30276
30278
  onAddActivity: y,
30277
30279
  onBulkAddActivity: g,
@@ -30310,7 +30312,7 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30310
30312
  default: se(({ Component: Re }) => [
30311
30313
  (k(), J(Io(Re), null, {
30312
30314
  default: se((Le) => [
30313
- we(j.$slots, "activityDetailsBody", Ms(Os(Le)))
30315
+ we(V.$slots, "activityDetailsBody", Ms(Os(Le)))
30314
30316
  ]),
30315
30317
  _: 3
30316
30318
  }))
@@ -30323,21 +30325,21 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30323
30325
  W.value ? (k(), J(D0, {
30324
30326
  key: 0,
30325
30327
  phases: t.phases,
30326
- onClose: ve[5] || (ve[5] = (Re) => W.value = !1),
30328
+ onClose: _e[5] || (_e[5] = (Re) => W.value = !1),
30327
30329
  onSave: he
30328
30330
  }, null, 8, ["phases"])) : F("", !0),
30329
30331
  X.value ? (k(), J($0, {
30330
30332
  key: 1,
30331
30333
  "project-id": t.project.id,
30332
30334
  templates: t.templates,
30333
- onClose: ve[6] || (ve[6] = (Re) => X.value = !1),
30335
+ onClose: _e[6] || (_e[6] = (Re) => X.value = !1),
30334
30336
  onApply: be
30335
30337
  }, null, 8, ["project-id", "templates"])) : F("", !0),
30336
30338
  G.value ? (k(), J(Qd, {
30337
30339
  key: 2,
30338
30340
  open: G.value,
30339
- "onUpdate:open": ve[7] || (ve[7] = (Re) => G.value = Re),
30340
- title: j.$t("project.bulk.modal.phase.title"),
30341
+ "onUpdate:open": _e[7] || (_e[7] = (Re) => G.value = Re),
30342
+ title: V.$t("project.bulk.modal.phase.title"),
30341
30343
  "root-type": "phase",
30342
30344
  "is-loading": ce.value,
30343
30345
  onSubmit: je
@@ -30357,7 +30359,7 @@ const Rme = { class: "ao-card-feed__header" }, Bme = {
30357
30359
  key: 0,
30358
30360
  class: "ao-card-feed__breadcrumbs"
30359
30361
  }, qme = {
30360
- class: /* @__PURE__ */ ge(["ao-card-feed__title-group"])
30362
+ class: /* @__PURE__ */ ve(["ao-card-feed__title-group"])
30361
30363
  }, jme = { class: "ao-card-feed__title-line" }, Vme = {
30362
30364
  key: 0,
30363
30365
  class: "ao-card-feed__slug"
@@ -30428,7 +30430,7 @@ const Rme = { class: "ao-card-feed__header" }, Bme = {
30428
30430
  return (m = n.tasks) == null ? void 0 : m.filter((_) => _.isDone).length;
30429
30431
  }), h = L(() => (p.value || 0) / (f.value || 1));
30430
30432
  return (m, _) => (k(), J(Jl, {
30431
- class: ge(["ao-card-feed", { "ao-card-feed--closed": t.isClosed }]),
30433
+ class: ve(["ao-card-feed", { "ao-card-feed--closed": t.isClosed }]),
30432
30434
  "is-clickable": !0,
30433
30435
  variant: t.blocked ? "danger" : "default"
30434
30436
  }, {
@@ -31204,7 +31206,7 @@ function Rge(t, e, n = {}) {
31204
31206
  };
31205
31207
  }
31206
31208
  const Bge = {
31207
- class: /* @__PURE__ */ ge(["ao-list-kanban"])
31209
+ class: /* @__PURE__ */ ve(["ao-list-kanban"])
31208
31210
  }, Uge = { class: "ao-list-kanban__header" }, zge = ["title"], Hge = {
31209
31211
  key: 0,
31210
31212
  class: "ao-list-kanban__end ao-list-kanban__end--loading"
@@ -31314,7 +31316,7 @@ const Bge = {
31314
31316
  return [
31315
31317
  P(M0, {
31316
31318
  id: p.id,
31317
- class: ge(s(p) ? "ao-list-draggable" : ""),
31319
+ class: ve(s(p) ? "ao-list-draggable" : ""),
31318
31320
  name: p.name,
31319
31321
  "project-name": (h = p.project) == null ? void 0 : h.name,
31320
31322
  "project-id": (m = p.project) == null ? void 0 : m.id,
@@ -31424,14 +31426,14 @@ const Kge = { class: "ao-field ao-search-field" }, Gge = ["value", "placeholder"
31424
31426
  }, null, 40, Gge),
31425
31427
  P(Fe, {
31426
31428
  name: "SearchRounded",
31427
- class: ge(`ao-search-field__icon ao-search-field__action ${t.modelValue ? "" : "ao-search-field__action--visible"}`)
31429
+ class: ve(`ao-search-field__icon ao-search-field__action ${t.modelValue ? "" : "ao-search-field__action--visible"}`)
31428
31430
  }, null, 8, ["class"]),
31429
31431
  P(ke, {
31430
31432
  "icon-name": "CloseRounded",
31431
31433
  size: "sm",
31432
31434
  color: "primary",
31433
31435
  corners: "round",
31434
- class: ge(`ao-search-field__button ao-search-field__action ${t.modelValue ? "ao-search-field__action--visible" : ""}`),
31436
+ class: ve(`ao-search-field__button ao-search-field__action ${t.modelValue ? "ao-search-field__action--visible" : ""}`),
31435
31437
  onClick: s
31436
31438
  }, null, 8, ["class"])
31437
31439
  ]));
@@ -31527,12 +31529,12 @@ const Jge = { class: "ao-sprint-metrics" }, Xge = ["onClick"], Qge = { class: "a
31527
31529
  !o.value.has(E.id) && a(E) ? (k(), M("span", r0e, " · " + q((I = a(E)) == null ? void 0 : I.name), 1)) : F("", !0)
31528
31530
  ]),
31529
31531
  b("div", {
31530
- class: ge(["ao-sprint-metrics__header-right", { "ao-sprint-metrics__header-right--behind": w(E.id) }])
31532
+ class: ve(["ao-sprint-metrics__header-right", { "ao-sprint-metrics__header-right--behind": w(E.id) }])
31531
31533
  }, [
31532
31534
  b("div", o0e, [
31533
31535
  b("div", i0e, [
31534
31536
  b("div", {
31535
- class: ge(["ao-sprint-metrics__progress-fill", { "ao-sprint-metrics__progress-fill--behind": w(E.id) }]),
31537
+ class: ve(["ao-sprint-metrics__progress-fill", { "ao-sprint-metrics__progress-fill--behind": w(E.id) }]),
31536
31538
  style: Kt({ width: v(E.id) + "%" })
31537
31539
  }, null, 6)
31538
31540
  ]),
@@ -31579,7 +31581,7 @@ const Jge = { class: "ao-sprint-metrics" }, Xge = ["onClick"], Qge = { class: "a
31579
31581
  b("div", _0e, q(ee(n)("sprintMetrics.manDaysPlanned")), 1),
31580
31582
  b("div", y0e, [
31581
31583
  b("span", {
31582
- class: ge(["ao-sprint-metrics__man-days", { "ao-sprint-metrics__man-days--has-tooltip": u(E.id).length > 0 }])
31584
+ class: ve(["ao-sprint-metrics__man-days", { "ao-sprint-metrics__man-days--has-tooltip": u(E.id).length > 0 }])
31583
31585
  }, [
31584
31586
  mo(q($(l(E.id))) + " MD ", 1),
31585
31587
  u(E.id).length > 0 ? (k(), M("span", b0e, [
@@ -31667,152 +31669,155 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31667
31669
  emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "unarchiveActivity", "update:searchText", "clear:searchText", "update:showsArchivedActivities", "update:showsOnlyImportant", "update:showsOnlyNonAssigned", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "toast", "startTimer", "createSprint"],
31668
31670
  setup(t, { emit: e }) {
31669
31671
  const { t: n } = nn(), r = t, o = e;
31670
- function i(V, _e) {
31671
- o("toast", V, _e);
31672
+ function i(j, ge) {
31673
+ o("toast", j, ge);
31672
31674
  }
31673
- const s = ti(r, "activities"), a = L(() => r.feedMode === "dev" ? r.devStatuses : r.statuses), l = L(() => r.feedMode === "dev" ? s.value.filter((V) => V.activityType === "dev") : s.value), c = async (V, _e) => {
31674
- await o("selectActivity", V, _e);
31675
+ const s = ti(r, "activities"), a = L(() => r.feedMode === "dev" ? r.devStatuses : r.statuses), l = L(() => r.feedMode === "dev" ? s.value.filter((j) => j.activityType === "dev") : s.value), c = async (j, ge) => {
31676
+ await o("selectActivity", j, ge);
31675
31677
  }, u = Q({}), d = Q(!1), f = Q(!1), p = L(() => r.project ? "milestone" : "project");
31676
31678
  Ne(
31677
31679
  [() => a.value, () => l.value, () => r.initialActivityId, () => r.initialActivitySlug, () => r.feedMode],
31678
31680
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
31679
- async ([V, _e, De, Ae], [at, Ve]) => {
31681
+ async ([j, ge, De, Ae], [at, Ve]) => {
31680
31682
  const Ke = r.feedMode === "dev" ? "devStatus" : "status";
31681
31683
  u.value = Object.fromEntries(
31682
- V.map((rt) => [
31684
+ j.map((rt) => [
31683
31685
  rt.id,
31684
- _e.filter((ft) => {
31686
+ ge.filter((ft) => {
31685
31687
  const mt = ft[Ke];
31686
31688
  return (mt == null ? void 0 : mt.id) === rt.id;
31687
31689
  })
31688
31690
  ])
31689
- ), De && !d.value ? (c(De, null), d.value = !0) : Ae && !d.value && (c(null, Ae), d.value = !0), f.value && yr(_e, Ve);
31691
+ ), De && !d.value ? (c(De, null), d.value = !0) : Ae && !d.value && (c(null, Ae), d.value = !0), f.value && yr(ge, Ve);
31690
31692
  },
31691
31693
  { immediate: !0 }
31692
31694
  );
31693
31695
  const h = L(() => {
31694
- var V;
31695
- return !r.selectedActivity || !r.selectedActivity.milestone ? "" : `${((V = r.selectedActivity.milestone.phase) == null ? void 0 : V.name) ?? ""} / ${r.selectedActivity.milestone.name ?? ""}`;
31696
- }), m = (V) => {
31696
+ var j;
31697
+ return !r.selectedActivity || !r.selectedActivity.milestone ? "" : `${((j = r.selectedActivity.milestone.phase) == null ? void 0 : j.name) ?? ""} / ${r.selectedActivity.milestone.name ?? ""}`;
31698
+ }), m = (j) => {
31697
31699
  var rt;
31698
- const _e = r.feedMode === "dev" ? r.activities.filter((ft) => ft.activityType === "dev") : r.activities, De = _e == null ? void 0 : _e.at(-1), Ae = De ? vt.LexoRank.parse(De.rank).genNext() : vt.LexoRank.middle(), at = ((rt = r.activities) == null ? void 0 : rt.length) ?? 0, Ve = r.feedMode === "dev", Ke = {
31700
+ const ge = r.feedMode === "dev" ? r.activities.filter((ft) => ft.activityType === "dev") : r.activities, De = ge == null ? void 0 : ge.at(-1), Ae = De ? vt.LexoRank.parse(De.rank).genNext() : vt.LexoRank.middle(), at = ((rt = r.activities) == null ? void 0 : rt.length) ?? 0, Ve = r.feedMode === "dev", Ke = {
31699
31701
  name: n("activity.defaultName", { idx: at + 1 }),
31700
31702
  rank: Ae.format(),
31701
- ...Ve ? { statusDevId: V.id, type: "dev" } : { statusId: V.id }
31703
+ ...Ve ? { statusDevId: j.id, type: "dev" } : { statusId: j.id }
31702
31704
  };
31703
31705
  if (r.filters.assigneeId.length > 0 && (Ke.assigneeId = r.filters.assigneeId[0]), r.filters.projectId.length > 0 && (Ke.projectId = r.filters.projectId[0]), r.filters.sprintId && r.filters.sprintId.length === 1) {
31704
31706
  const ft = r.sprints.find((mt) => mt.id === r.filters.sprintId[0]);
31705
31707
  ft && (Ke.sprintId = ft.id, Ke.projectId = ft.projectId);
31706
31708
  }
31707
31709
  f.value = !0, o("addActivity", Ke);
31708
- }, _ = (V) => {
31710
+ }, _ = (j) => {
31709
31711
  var rt, ft;
31710
- const _e = r.feedMode === "dev" ? "devStatus" : "status", De = ((rt = r.activities) == null ? void 0 : rt.filter((mt) => {
31711
- const Ge = mt[_e];
31712
- return (Ge == null ? void 0 : Ge.id) === V.id;
31712
+ const ge = r.feedMode === "dev" ? "devStatus" : "status", De = ((rt = r.activities) == null ? void 0 : rt.filter((mt) => {
31713
+ const Ge = mt[ge];
31714
+ return (Ge == null ? void 0 : Ge.id) === j.id;
31713
31715
  })) ?? [], Ae = Fs(De), at = ((ft = r.activities) == null ? void 0 : ft.length) ?? 0, Ve = r.feedMode === "dev", Ke = {
31714
31716
  name: n("activity.defaultName", { idx: at + 1 }),
31715
31717
  rank: Ae,
31716
- ...Ve ? { statusDevId: V.id, type: "dev" } : { statusId: V.id }
31718
+ ...Ve ? { statusDevId: j.id, type: "dev" } : { statusId: j.id }
31717
31719
  };
31718
31720
  if (r.filters.assigneeId.length > 0 && (Ke.assigneeId = r.filters.assigneeId[0]), r.filters.projectId.length > 0 && (Ke.projectId = r.filters.projectId[0]), r.filters.sprintId && r.filters.sprintId.length === 1) {
31719
31721
  const mt = r.sprints.find((Ge) => Ge.id === r.filters.sprintId[0]);
31720
31722
  mt && (Ke.sprintId = mt.id, Ke.projectId = mt.projectId);
31721
31723
  }
31722
31724
  f.value = !0, o("addActivity", Ke);
31723
- }, y = (V, _e) => {
31724
- f.value = !1, o("update:filters", { ...r.filters, [V]: _e });
31725
+ }, y = (j, ge) => {
31726
+ f.value = !1, o("update:filters", { ...r.filters, [j]: ge });
31725
31727
  }, g = L(
31726
31728
  () => r.project ? [r.project] : r.projects ?? []
31727
- ), v = L(() => g.value.map((V) => ({
31728
- value: V.id,
31729
- label: V.name
31730
- }))), C = L(() => r.sprints.map((V) => ({
31731
- value: V.id,
31732
- label: `${V.name} · ${V.startDate} – ${V.endDate}`,
31733
- startDate: V.startDate,
31734
- endDate: V.endDate,
31735
- projectId: V.projectId
31729
+ ), v = L(() => g.value.map((j) => ({
31730
+ value: j.id,
31731
+ label: j.name
31732
+ }))), C = L(() => r.sprints.map((j) => ({
31733
+ value: j.id,
31734
+ label: `${j.name} · ${j.startDate} – ${j.endDate}`,
31735
+ startDate: j.startDate,
31736
+ endDate: j.endDate,
31737
+ projectId: j.projectId
31736
31738
  }))), x = L(() => {
31737
- const V = r.filters[Zn.sprint] ?? [];
31738
- return r.sprints.filter((_e) => V.includes(_e.id));
31739
+ const j = r.filters[Zn.sprint] ?? [];
31740
+ return r.sprints.filter((ge) => j.includes(ge.id));
31739
31741
  }), w = L(() => {
31740
31742
  var De;
31741
- const V = r.filters[Zn.project] ?? [], _e = (De = r.project) != null && De.id ? [r.project.id] : [];
31742
- return [...V, ..._e];
31743
- }), $ = L(() => r.milestones.map((V) => ({
31744
- value: V.id,
31745
- label: V.name,
31746
- color: V.color,
31747
- important: V.important
31748
- })));
31743
+ const j = r.filters[Zn.project] ?? [], ge = (De = r.project) != null && De.id ? [r.project.id] : [];
31744
+ return [...j, ...ge];
31745
+ }), $ = L(() => r.milestones.map((j) => {
31746
+ var ge;
31747
+ return {
31748
+ value: j.id,
31749
+ label: (ge = j.phase) != null && ge.name ? `${j.phase.name} - ${j.name}` : j.name,
31750
+ color: j.color,
31751
+ important: j.important
31752
+ };
31753
+ }));
31749
31754
  L(() => {
31750
- var V;
31751
- return (V = r.activityTypes) == null ? void 0 : V.map((_e) => ({
31752
- value: _e.id,
31753
- label: _e.name
31755
+ var j;
31756
+ return (j = r.activityTypes) == null ? void 0 : j.map((ge) => ({
31757
+ value: ge.id,
31758
+ label: ge.name
31754
31759
  }));
31755
31760
  });
31756
- const T = L(() => r.users.map((V) => ({
31757
- value: V.id,
31758
- label: `${V.firstName} ${V.lastName}`,
31759
- avatar: V.avatarUrl
31760
- }))), A = (V) => {
31761
- r.selectedActivity && o("update:activity", V);
31762
- }, S = (V) => {
31763
- o("update:activity", V);
31764
- }, O = (V) => {
31765
- o("archiveActivity", V);
31766
- }, E = (V) => {
31767
- o("unarchiveActivity", V);
31768
- }, I = (V) => {
31769
- var _e;
31770
- o("startTimer", V), (_e = window.parent) == null || _e.postMessage({
31761
+ const T = L(() => r.users.map((j) => ({
31762
+ value: j.id,
31763
+ label: `${j.firstName} ${j.lastName}`,
31764
+ avatar: j.avatarUrl
31765
+ }))), A = (j) => {
31766
+ r.selectedActivity && o("update:activity", j);
31767
+ }, S = (j) => {
31768
+ o("update:activity", j);
31769
+ }, O = (j) => {
31770
+ o("archiveActivity", j);
31771
+ }, E = (j) => {
31772
+ o("unarchiveActivity", j);
31773
+ }, I = (j) => {
31774
+ var ge;
31775
+ o("startTimer", j), (ge = window.parent) == null || ge.postMessage({
31771
31776
  type: "startTimer",
31772
- data: V
31777
+ data: j
31773
31778
  }, "*");
31774
- }, N = (V) => {
31775
- f.value = !1, o("update:searchText", V);
31776
- }, z = (V) => {
31777
- f.value = !1, o("clear:searchText", V);
31778
- }, H = (V) => {
31779
- r.selectedActivity && o("addSubtask", V);
31780
- }, X = (V) => {
31781
- r.selectedActivity && o("updateSubtask", V);
31782
- }, W = (V) => {
31783
- r.selectedActivity && o("deleteSubtask", V);
31784
- }, G = (V) => {
31785
- o("addFiles", V);
31786
- }, ce = (V) => {
31787
- o("removeFile", V);
31788
- }, be = (V) => {
31779
+ }, N = (j) => {
31780
+ f.value = !1, o("update:searchText", j);
31781
+ }, z = (j) => {
31782
+ f.value = !1, o("clear:searchText", j);
31783
+ }, H = (j) => {
31784
+ r.selectedActivity && o("addSubtask", j);
31785
+ }, X = (j) => {
31786
+ r.selectedActivity && o("updateSubtask", j);
31787
+ }, W = (j) => {
31788
+ r.selectedActivity && o("deleteSubtask", j);
31789
+ }, G = (j) => {
31790
+ o("addFiles", j);
31791
+ }, ce = (j) => {
31792
+ o("removeFile", j);
31793
+ }, be = (j) => {
31789
31794
  r.selectedActivity && o("addComment", {
31790
- ...V,
31795
+ ...j,
31791
31796
  activityId: r.selectedActivity.id
31792
31797
  });
31793
- }, he = (V) => {
31794
- const { id: _e } = r.selectedActivity || {};
31795
- _e && o("updateComment", V);
31796
- }, je = (V) => {
31797
- const { id: _e } = r.selectedActivity || {};
31798
- _e && o("removeComment", V);
31798
+ }, he = (j) => {
31799
+ const { id: ge } = r.selectedActivity || {};
31800
+ ge && o("updateComment", j);
31801
+ }, je = (j) => {
31802
+ const { id: ge } = r.selectedActivity || {};
31803
+ ge && o("removeComment", j);
31799
31804
  }, ye = Nu(), pe = ah(), Z = Q("feed");
31800
31805
  Ne(
31801
31806
  () => pe.name,
31802
- (V) => {
31803
- V === Go.feed || V === "ActivityFeed" || V === "ActivityFeedWithActivity" ? Z.value = "feed" : V === Go.dev || V === "ActivityFeedDev" || V === "ActivityFeedDevWithActivity" ? Z.value = "dev" : V === et.feed ? Z.value = "feed" : V === et.dev ? Z.value = "dev" : V === et.project ? Z.value = "overview" : V === et.mapping && (Z.value = "mapping");
31807
+ (j) => {
31808
+ j === Go.feed || j === "ActivityFeed" || j === "ActivityFeedWithActivity" ? Z.value = "feed" : j === Go.dev || j === "ActivityFeedDev" || j === "ActivityFeedDevWithActivity" ? Z.value = "dev" : j === et.feed ? Z.value = "feed" : j === et.dev ? Z.value = "dev" : j === et.project ? Z.value = "overview" : j === et.mapping && (Z.value = "mapping");
31804
31809
  },
31805
31810
  { immediate: !0 }
31806
31811
  );
31807
- const j = [
31812
+ const V = [
31808
31813
  { label: "Overview", value: "overview" },
31809
31814
  { label: "Feed", value: "feed" },
31810
31815
  { label: "Dev", value: "dev" },
31811
31816
  { label: "Mapping", value: "mapping" }
31812
- ], ve = L(() => Be.value ? j.filter((V) => V.value === "feed" || V.value === "dev") : j), Be = L(() => !r.project && pe.name && (pe.name === Go.feed || pe.name === Go.dev || pe.name === "ActivityFeed" || pe.name === "ActivityFeedDev" || pe.name === "ActivityFeedWithActivity" || pe.name === "ActivityFeedDevWithActivity")), st = L(() => Be.value ? Go.feed : et.feed), Re = L(() => Be.value ? Go.dev : et.dev), Le = L(() => et.project), Rt = L(() => et.mapping);
31813
- return Ne(Z, (V) => {
31814
- V === "feed" ? ye.push({ name: st.value }) : V === "dev" ? ye.push({ name: Re.value }) : V === "overview" ? ye.push({ name: Le.value }) : V === "mapping" && ye.push({ name: Rt.value });
31815
- }), (V, _e) => {
31817
+ ], _e = L(() => Be.value ? V.filter((j) => j.value === "feed" || j.value === "dev") : V), Be = L(() => !r.project && pe.name && (pe.name === Go.feed || pe.name === Go.dev || pe.name === "ActivityFeed" || pe.name === "ActivityFeedDev" || pe.name === "ActivityFeedWithActivity" || pe.name === "ActivityFeedDevWithActivity")), st = L(() => Be.value ? Go.feed : et.feed), Re = L(() => Be.value ? Go.dev : et.dev), Le = L(() => et.project), Rt = L(() => et.mapping);
31818
+ return Ne(Z, (j) => {
31819
+ j === "feed" ? ye.push({ name: st.value }) : j === "dev" ? ye.push({ name: Re.value }) : j === "overview" ? ye.push({ name: Le.value }) : j === "mapping" && ye.push({ name: Rt.value });
31820
+ }), (j, ge) => {
31816
31821
  var De;
31817
31822
  return k(), M("div", N0e, [
31818
31823
  P(Rs, null, {
@@ -31820,12 +31825,12 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31820
31825
  b("div", P0e, [
31821
31826
  P(Yl, {
31822
31827
  modelValue: Z.value,
31823
- "onUpdate:modelValue": _e[0] || (_e[0] = (Ae) => Z.value = Ae),
31824
- tabs: ve.value
31828
+ "onUpdate:modelValue": ge[0] || (ge[0] = (Ae) => Z.value = Ae),
31829
+ tabs: _e.value
31825
31830
  }, null, 8, ["modelValue", "tabs"]),
31826
31831
  P(Yge, {
31827
31832
  "model-value": t.searchText,
31828
- placeholder: V.$t("feed.search.placeholder"),
31833
+ placeholder: j.$t("feed.search.placeholder"),
31829
31834
  class: "ao-feed__search",
31830
31835
  "onUpdate:modelValue": N,
31831
31836
  onClear: z
@@ -31838,8 +31843,8 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31838
31843
  "close-on-select": !1,
31839
31844
  searchable: !0,
31840
31845
  class: "ao-feed__filter ao-feed__filter__projects",
31841
- placeholder: V.$t("feed.filters.project.placeholder"),
31842
- "onUpdate:modelValue": _e[1] || (_e[1] = (Ae) => y(ee(Zn).project, Ae))
31846
+ placeholder: j.$t("feed.filters.project.placeholder"),
31847
+ "onUpdate:modelValue": ge[1] || (ge[1] = (Ae) => y(ee(Zn).project, Ae))
31843
31848
  }, null, 8, ["model-value", "options", "placeholder"])),
31844
31849
  t.feedMode === "dev" ? (k(), J(zt, {
31845
31850
  key: 1,
@@ -31850,8 +31855,8 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31850
31855
  searchable: !0,
31851
31856
  disabled: !C.value.length,
31852
31857
  class: "ao-feed__filter ao-feed__filter__sprints",
31853
- placeholder: V.$t("feed.filters.sprint.placeholder"),
31854
- "onUpdate:modelValue": _e[2] || (_e[2] = (Ae) => y(ee(Zn).sprint, Ae))
31858
+ placeholder: j.$t("feed.filters.sprint.placeholder"),
31859
+ "onUpdate:modelValue": ge[2] || (ge[2] = (Ae) => y(ee(Zn).sprint, Ae))
31855
31860
  }, null, 8, ["model-value", "options", "disabled", "placeholder"])) : F("", !0),
31856
31861
  P(zt, {
31857
31862
  "model-value": t.filters[ee(Zn).milestone],
@@ -31861,8 +31866,8 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31861
31866
  searchable: !0,
31862
31867
  disabled: w.value.length === 0,
31863
31868
  class: "ao-feed__filter ao-feed__filter__milestones",
31864
- placeholder: V.$t("feed.filters.milestone.placeholder"),
31865
- "onUpdate:modelValue": _e[3] || (_e[3] = (Ae) => y(ee(Zn).milestone, Ae))
31869
+ placeholder: j.$t("feed.filters.milestone.placeholder"),
31870
+ "onUpdate:modelValue": ge[3] || (ge[3] = (Ae) => y(ee(Zn).milestone, Ae))
31866
31871
  }, null, 8, ["model-value", "options", "disabled", "placeholder"]),
31867
31872
  T.value.length ? (k(), J(zt, {
31868
31873
  key: 2,
@@ -31872,8 +31877,8 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31872
31877
  "close-on-select": !1,
31873
31878
  searchable: !0,
31874
31879
  class: "ao-feed__filter ao-feed__filter__assignees",
31875
- placeholder: V.$t("feed.filters.assignee.placeholder"),
31876
- "onUpdate:modelValue": _e[4] || (_e[4] = (Ae) => y(ee(Zn).assignee, Ae))
31880
+ placeholder: j.$t("feed.filters.assignee.placeholder"),
31881
+ "onUpdate:modelValue": ge[4] || (ge[4] = (Ae) => y(ee(Zn).assignee, Ae))
31877
31882
  }, {
31878
31883
  tag: se(({
31879
31884
  option: Ae,
@@ -31896,10 +31901,10 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31896
31901
  "icon-position": "start",
31897
31902
  color: "primary",
31898
31903
  variant: "ghost",
31899
- label: V.$t("feed.filters.showsOnlyNonAssigned.label"),
31904
+ label: j.$t("feed.filters.showsOnlyNonAssigned.label"),
31900
31905
  role: "checkbox",
31901
31906
  "aria-checked": t.showsOnlyNonAssigned,
31902
- onClick: _e[5] || (_e[5] = (Ae) => V.$emit("update:showsOnlyNonAssigned", !t.showsOnlyNonAssigned))
31907
+ onClick: ge[5] || (ge[5] = (Ae) => j.$emit("update:showsOnlyNonAssigned", !t.showsOnlyNonAssigned))
31903
31908
  }, null, 8, ["icon-name", "label", "aria-checked"]),
31904
31909
  P(ke, {
31905
31910
  class: "ao-feed__only-important",
@@ -31908,10 +31913,10 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31908
31913
  "icon-position": "start",
31909
31914
  color: "primary",
31910
31915
  variant: "ghost",
31911
- label: V.$t("feed.filters.showsOnlyImportant.label"),
31916
+ label: j.$t("feed.filters.showsOnlyImportant.label"),
31912
31917
  role: "checkbox",
31913
31918
  "aria-checked": t.showsOnlyImportant,
31914
- onClick: _e[6] || (_e[6] = (Ae) => V.$emit("update:showsOnlyImportant", !t.showsOnlyImportant))
31919
+ onClick: ge[6] || (ge[6] = (Ae) => j.$emit("update:showsOnlyImportant", !t.showsOnlyImportant))
31915
31920
  }, null, 8, ["icon-name", "label", "aria-checked"]),
31916
31921
  P(ke, {
31917
31922
  class: "ao-feed__show-archived",
@@ -31920,10 +31925,10 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31920
31925
  "icon-position": "start",
31921
31926
  color: "primary",
31922
31927
  variant: "ghost",
31923
- label: V.$t("feed.filters.showsArchivedActivities.label"),
31928
+ label: j.$t("feed.filters.showsArchivedActivities.label"),
31924
31929
  role: "checkbox",
31925
31930
  "aria-checked": t.showsArchivedActivities,
31926
- onClick: _e[7] || (_e[7] = (Ae) => V.$emit("update:showsArchivedActivities", !t.showsArchivedActivities))
31931
+ onClick: ge[7] || (ge[7] = (Ae) => j.$emit("update:showsArchivedActivities", !t.showsArchivedActivities))
31927
31932
  }, null, 8, ["icon-name", "label", "aria-checked"])
31928
31933
  ]),
31929
31934
  _: 1
@@ -31941,7 +31946,7 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31941
31946
  status: Ae,
31942
31947
  list: u.value[Ae.id],
31943
31948
  title: Ae.name,
31944
- "footer-label": V.$t("feed.activity.add"),
31949
+ "footer-label": j.$t("feed.activity.add"),
31945
31950
  users: t.users,
31946
31951
  "user-id": t.userId,
31947
31952
  "is-editable": t.isEditable,
@@ -31976,7 +31981,7 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31976
31981
  "time-tracking-data": t.timeTrackingData,
31977
31982
  "load-attachment-preview": r.loadAttachmentPreview,
31978
31983
  sprints: t.activitySprints,
31979
- onClose: _e[8] || (_e[8] = () => c(null, null)),
31984
+ onClose: ge[8] || (ge[8] = () => c(null, null)),
31980
31985
  "onUpdate:activity": A,
31981
31986
  onAddSubtask: H,
31982
31987
  onUpdateSubtask: X,
@@ -31987,10 +31992,10 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31987
31992
  onUpdateComment: he,
31988
31993
  onRemoveComment: je,
31989
31994
  onToast: i,
31990
- onCreateSprint: _e[9] || (_e[9] = (Ae) => o("createSprint", Ae))
31995
+ onCreateSprint: ge[9] || (ge[9] = (Ae) => o("createSprint", Ae))
31991
31996
  }, {
31992
31997
  default: se((Ae) => [
31993
- we(V.$slots, "activityDetailsBody", Ms(Os(Ae)))
31998
+ we(j.$slots, "activityDetailsBody", Ms(Os(Ae)))
31994
31999
  ]),
31995
32000
  _: 3
31996
32001
  }, 8, ["activity", "activity-types", "dev-statuses", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "attachment-enabled", "projects", "time-tracking-data", "load-attachment-preview", "sprints"])) : F("", !0)
@@ -32337,7 +32342,7 @@ const W0e = { class: "ao-field__label" }, Z0e = /* @__PURE__ */ ue({
32337
32342
  },
32338
32343
  setup(t) {
32339
32344
  return (e, n) => (k(), M("label", {
32340
- class: ge(["ao-field", { "ao-field--multiselect": t.isMultiselect }])
32345
+ class: ve(["ao-field", { "ao-field--multiselect": t.isMultiselect }])
32341
32346
  }, [
32342
32347
  b("span", W0e, q(t.label), 1),
32343
32348
  we(e.$slots, "default")
@@ -32701,7 +32706,7 @@ const vve = { class: "ao-sprint-list" }, _ve = { class: "ao-sprint-list__header"
32701
32706
  b("div", Tve, [
32702
32707
  (k(!0), M(Ie, null, tt(s.value, (S) => (k(), M("div", {
32703
32708
  key: S.id,
32704
- class: ge(["ao-sprint-list__row", {
32709
+ class: ve(["ao-sprint-list__row", {
32705
32710
  "ao-sprint-list__row--archived": !S.active,
32706
32711
  "ao-sprint-list__row--editing": a.value === S.id
32707
32712
  }])