@26lights/orcha 0.42.187 → 0.42.188

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
@@ -7986,7 +7986,7 @@ const O4 = { class: "ao-tasks__list" }, L4 = ["id", "value", "readonly", "onChan
7986
7986
  id: x.id,
7987
7987
  value: x.name,
7988
7988
  readonly: !t.isEditable,
7989
- class: ge([
7989
+ class: ve([
7990
7990
  "ao-field__input ao-subtask__field",
7991
7991
  {
7992
7992
  "ao-subtask__field--checked": x.isDone
@@ -8123,7 +8123,7 @@ const P4 = { class: "ao-files__placeholder" }, F4 = {
8123
8123
  return (p, h) => {
8124
8124
  var m;
8125
8125
  return k(), M("div", {
8126
- class: ge([
8126
+ class: ve([
8127
8127
  "ao-files__wrapper",
8128
8128
  {
8129
8129
  "ao-files__wrapper--drop-active": o.value
@@ -12789,11 +12789,11 @@ function dm() {
12789
12789
  }, H = n, X = H.implementation, W = H.createNodeIterator, G = H.createDocumentFragment, ce = H.getElementsByTagName, be = r.importNode;
12790
12790
  let he = Af();
12791
12791
  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;
12792
+ const je = wle, ye = kle, pe = xle, Z = Sle, V = Ale, _e = Ele, Be = Tle, st = Dle;
12793
12793
  let Re = kf, Le = null;
12794
12794
  const Rt = ze({}, [...yf, ...xc, ...Sc, ...Ac, ...bf]);
12795
- let V = null;
12796
- const _e = ze({}, [...Cf, ...Ec, ...wf, ...pa]);
12795
+ let j = null;
12796
+ const ge = ze({}, [...Cf, ...Ec, ...wf, ...pa]);
12797
12797
  let De = Object.seal(Yo(null, {
12798
12798
  tagNameCheck: {
12799
12799
  writable: !0,
@@ -12890,7 +12890,7 @@ function dm() {
12890
12890
  (!D || typeof D != "object") && (D = {}), D = Ut(D), no = // eslint-disable-next-line unicorn/prefer-includes
12891
12891
  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
12892
  transform: Xe
12893
- }), V = Mr(D, "ALLOWED_ATTR", _e, {
12893
+ }), j = Mr(D, "ALLOWED_ATTR", ge, {
12894
12894
  transform: Xe
12895
12895
  }), Li = Mr(D, "ALLOWED_NAMESPACES", Ql, {
12896
12896
  transform: kc
@@ -12908,7 +12908,7 @@ function dm() {
12908
12908
  transform: Xe
12909
12909
  }), 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
12910
  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) {
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), 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
12912
  if (typeof D.TRUSTED_TYPES_POLICY.createHTML != "function")
12913
12913
  throw oo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
12914
12914
  if (typeof D.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -12999,7 +12999,7 @@ function dm() {
12999
12999
  if (U)
13000
13000
  for (let te = U.length - 1; te >= 0; --te) {
13001
13001
  const Ce = U[te], xe = Ce && Ce.name;
13002
- if (!(typeof xe != "string" || V[Xe(xe)]))
13002
+ if (!(typeof xe != "string" || j[Xe(xe)]))
13003
13003
  try {
13004
13004
  D.removeAttribute(xe);
13005
13005
  } catch {
@@ -13187,14 +13187,14 @@ function dm() {
13187
13187
  }, i1 = function(D, U, te) {
13188
13188
  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
13189
  return !1;
13190
- const Ce = V[U] || Ve.attributeCheck instanceof Function && Ve.attributeCheck(U, D);
13190
+ const Ce = j[U] || Ve.attributeCheck instanceof Function && Ve.attributeCheck(U, D);
13191
13191
  if (!(rt && St(Z, U))) {
13192
- if (!(Ke && St(j, U))) {
13192
+ if (!(Ke && St(V, U))) {
13193
13193
  if (Ce) {
13194
13194
  if (!an[U]) {
13195
13195
  if (!St(Re, Ki(te, Be, ""))) {
13196
13196
  if (!((U === "src" || U === "xlink:href" || U === "href") && D !== "script" && gf(te, "data:") === 0 && Js[D])) {
13197
- if (!(ft && !St(ve, Ki(te, Be, "")))) {
13197
+ if (!(ft && !St(_e, Ki(te, Be, "")))) {
13198
13198
  if (te)
13199
13199
  return !1;
13200
13200
  }
@@ -13235,12 +13235,12 @@ function dm() {
13235
13235
  const U = D.attributes;
13236
13236
  if (!U || ra(D))
13237
13237
  return;
13238
- V = r1(he.uponSanitizeAttribute, V, _e, Vn);
13238
+ j = r1(he.uponSanitizeAttribute, j, ge, Vn);
13239
13239
  const te = {
13240
13240
  attrName: "",
13241
13241
  attrValue: "",
13242
13242
  keepAttr: !0,
13243
- allowedAttributes: V,
13243
+ allowedAttributes: j,
13244
13244
  forceKeepAttr: void 0
13245
13245
  };
13246
13246
  let Ce = U.length;
@@ -13328,7 +13328,7 @@ function dm() {
13328
13328
  throw oo("dirty is not a string, aborting");
13329
13329
  if (!e.isSupported)
13330
13330
  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 = [];
13331
+ 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
13332
  const Oe = on && typeof ae != "string" && zi(ae);
13333
13333
  if (Oe) {
13334
13334
  O0(ae);
@@ -13375,14 +13375,14 @@ function dm() {
13375
13375
  xe.appendChild(U.firstChild);
13376
13376
  else
13377
13377
  xe = U;
13378
- return (V.shadowroot || V.shadowrootmode) && (xe = be.call(r, xe, !0)), xe;
13378
+ return (j.shadowroot || j.shadowrootmode) && (xe = be.call(r, xe, !0)), xe;
13379
13379
  }
13380
13380
  let ct = xt ? U.outerHTML : U.innerHTML;
13381
13381
  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
13382
  ` + ct), Ge && (ct = na(ct)), $ && Ee ? I(ct) : ct;
13383
13383
  }, e.setConfig = function() {
13384
13384
  let ae = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
13385
- $r(ae), rn = !0, yn = Le, Vn = V;
13385
+ $r(ae), rn = !0, yn = Le, Vn = j;
13386
13386
  }, e.clearConfig = function() {
13387
13387
  Mn = null, rn = !1, yn = null, Vn = null, $ = A, T = "";
13388
13388
  }, e.isValidAttribute = function(ae, D, U) {
@@ -16302,24 +16302,24 @@ function Bce(t, e, n, r, o, i, s) {
16302
16302
  return;
16303
16303
  let { top: he, bottom: je } = W, ye = 0, pe = 0, Z = G;
16304
16304
  for (; Z !== null; ) {
16305
- const j = Z === ce.body;
16306
- if (j)
16305
+ const V = Z === ce.body;
16306
+ if (V)
16307
16307
  ye = 0, pe = $n(X).innerHeight;
16308
16308
  else {
16309
16309
  const Be = Z.getBoundingClientRect();
16310
16310
  ye = Be.top, pe = Be.bottom;
16311
16311
  }
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);
16312
+ let _e = 0;
16313
+ if (he < ye ? _e = -(ye - he) : je > pe && (_e = je - pe), _e !== 0)
16314
+ if (V)
16315
+ be.scrollBy(0, _e);
16316
16316
  else {
16317
16317
  const Be = Z.scrollTop;
16318
- Z.scrollTop += ve;
16318
+ Z.scrollTop += _e;
16319
16319
  const st = Z.scrollTop - Be;
16320
16320
  he -= st, je -= st;
16321
16321
  }
16322
- if (j)
16322
+ if (V)
16323
16323
  break;
16324
16324
  Z = Gs(Z);
16325
16325
  }
@@ -20952,11 +20952,11 @@ var rde = { exports: {} };
20952
20952
  be--, ce = g.slice(G, ye), he.index -= G;
20953
20953
  } else if (he = c(X, 0, ce, I), !he)
20954
20954
  continue;
20955
- var Z = he.index, j = he[0], ve = ce.slice(0, Z), Be = ce.slice(Z + j.length), st = G + ce.length;
20955
+ var Z = he.index, V = he[0], _e = ce.slice(0, Z), Be = ce.slice(Z + V.length), st = G + ce.length;
20956
20956
  $ && st > $.reach && ($.reach = st);
20957
20957
  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);
20958
+ _e && (Re = f(v, Re, _e), G += _e.length), p(v, Re, be);
20959
+ var Le = new l(T, E ? a.tokenize(V, E) : V, z, V);
20960
20960
  if (W = f(v, Re, Le), Be && f(v, W, Be), be > 1) {
20961
20961
  var Rt = {
20962
20962
  cause: T + "," + S,
@@ -25127,7 +25127,7 @@ const c1e = (() => {
25127
25127
  default: se(() => [
25128
25128
  we(E.$slots, "toolbar"),
25129
25129
  b("div", {
25130
- class: ge(["ao-lexical-editor", l.value])
25130
+ class: ve(["ao-lexical-editor", l.value])
25131
25131
  }, [
25132
25132
  P(ee(c1e), null, {
25133
25133
  contentEditable: se(() => [
@@ -25355,7 +25355,7 @@ const f1e = {
25355
25355
  reset: S,
25356
25356
  focus: O
25357
25357
  }), (E, I) => (k(), M("div", {
25358
- class: ge(["ao-comment-editor", { "ao-comment-editor--focused": a.value }])
25358
+ class: ve(["ao-comment-editor", { "ao-comment-editor--focused": a.value }])
25359
25359
  }, [
25360
25360
  v.value ? (k(), M("div", f1e, [
25361
25361
  b("button", {
@@ -25458,7 +25458,7 @@ const f1e = {
25458
25458
  }, [
25459
25459
  (k(!0), M(Ie, null, tt(ee(d), (N, z) => (k(), M("li", {
25460
25460
  key: N.id,
25461
- class: ge({
25461
+ class: ve({
25462
25462
  "ao-comment-editor__mention-item--selected": z === ee(f)
25463
25463
  }),
25464
25464
  onMousedown: I[12] || (I[12] = Se(() => {
@@ -25984,7 +25984,7 @@ const U1e = { class: "toggle-wrapper" };
25984
25984
  function z1e(t, e, n, r, o, i) {
25985
25985
  return k(), M("div", U1e, [
25986
25986
  b("button", {
25987
- class: ge({
25987
+ class: ve({
25988
25988
  button: !0,
25989
25989
  "button--left": !0,
25990
25990
  "button--inactive": !t.isLeft
@@ -25993,7 +25993,7 @@ function z1e(t, e, n, r, o, i) {
25993
25993
  onClick: e[0] || (e[0] = (...s) => t.selectLeft && t.selectLeft(...s))
25994
25994
  }, q(t.leftLabel), 3),
25995
25995
  b("button", {
25996
- class: ge({
25996
+ class: ve({
25997
25997
  button: !0,
25998
25998
  "button--right": !0,
25999
25999
  "button--inactive": t.isLeft
@@ -26032,13 +26032,13 @@ const j1e = ["onClick"], V1e = { class: "tab-button__label" }, W1e = {
26032
26032
  };
26033
26033
  function Z1e(t, e, n, r, o, i) {
26034
26034
  return k(), M("div", {
26035
- class: ge(["tabbar-wrapper", {
26035
+ class: ve(["tabbar-wrapper", {
26036
26036
  "tabbar-wrapper--underline": t.variant === "underline"
26037
26037
  }])
26038
26038
  }, [
26039
26039
  (k(!0), M(Ie, null, tt(t.tabs, (s) => (k(), M("button", {
26040
26040
  key: s.value,
26041
- class: ge([
26041
+ class: ve([
26042
26042
  "tab-button",
26043
26043
  {
26044
26044
  "tab-button--active": s.value === t.modelValue,
@@ -26448,7 +26448,7 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26448
26448
  blocking: B
26449
26449
  });
26450
26450
  }
26451
- }), j = L(() => je.value.map((B) => {
26451
+ }), V = L(() => je.value.map((B) => {
26452
26452
  var re;
26453
26453
  return {
26454
26454
  ...B,
@@ -26456,7 +26456,7 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26456
26456
  (Ee) => Ee.id === B.value
26457
26457
  )
26458
26458
  };
26459
- })), ve = (B) => {
26459
+ })), _e = (B) => {
26460
26460
  r("addSubtask", B);
26461
26461
  }, Be = (B) => {
26462
26462
  r("updateSubtask", B);
@@ -26464,10 +26464,10 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26464
26464
  r("deleteSubtask", B);
26465
26465
  };
26466
26466
  function Re() {
26467
- n.userId ? V.value = [n.userId] : console.error("Failed assigning to self: userId is missing");
26467
+ n.userId ? j.value = [n.userId] : console.error("Failed assigning to self: userId is missing");
26468
26468
  }
26469
26469
  function Le(B) {
26470
- V.value = [B];
26470
+ j.value = [B];
26471
26471
  }
26472
26472
  const Rt = L(() => {
26473
26473
  var re;
@@ -26479,7 +26479,7 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26479
26479
  value: Ee.id,
26480
26480
  avatar: Ee.avatarUrl
26481
26481
  }));
26482
- }), V = L({
26482
+ }), j = L({
26483
26483
  get() {
26484
26484
  var B, re;
26485
26485
  return (B = n.activity.assignee) != null && B.id ? [(re = n.activity.assignee) == null ? void 0 : re.id] : [];
@@ -26491,13 +26491,13 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26491
26491
  // `undefined` is not a value for GraphQL, we have to use `null` to reset a value
26492
26492
  });
26493
26493
  }
26494
- }), _e = (B) => {
26494
+ }), ge = (B) => {
26495
26495
  r("addFiles", {
26496
26496
  activityId: n.activity.id,
26497
26497
  files: B
26498
26498
  });
26499
26499
  }, De = (B) => {
26500
- _e(B);
26500
+ ge(B);
26501
26501
  }, Ae = (B) => {
26502
26502
  r("removeFile", {
26503
26503
  activityId: n.activity.id,
@@ -26635,7 +26635,7 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26635
26635
  P(Z4, {
26636
26636
  attachments: t.activity.attachments,
26637
26637
  "is-editable": t.attachmentEnabled && a.value && !t.isTemplate && !!t.userId,
26638
- onAdd: _e,
26638
+ onAdd: ge,
26639
26639
  onRemove: Ae,
26640
26640
  onPreview: re[1] || (re[1] = (Ue) => c.value = Ue)
26641
26641
  }, {
@@ -26648,7 +26648,7 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26648
26648
  onPaste: De
26649
26649
  }, null, 8, ["initial-markdown"])) : (k(), M("div", {
26650
26650
  key: 0,
26651
- class: ge(["ao-activity-details__description", { "ao-activity-details__description--editable": a.value }]),
26651
+ class: ve(["ao-activity-details__description", { "ao-activity-details__description--editable": a.value }]),
26652
26652
  onClick: f
26653
26653
  }, [
26654
26654
  P(fm, { content: d.value }, null, 8, ["content"])
@@ -26672,7 +26672,7 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26672
26672
  "is-checkable": t.isTaskCheckable,
26673
26673
  "is-editable": a.value,
26674
26674
  "is-template": t.isTemplate,
26675
- onAdd: ve,
26675
+ onAdd: _e,
26676
26676
  onUpdate: Be,
26677
26677
  onDelete: st
26678
26678
  }, null, 8, ["tasks", "activity-id", "users", "is-checkable", "is-editable", "is-template"])
@@ -26836,8 +26836,8 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26836
26836
  }, null, 8, ["label"])
26837
26837
  ]),
26838
26838
  P(zt, {
26839
- modelValue: V.value,
26840
- "onUpdate:modelValue": re[7] || (re[7] = (Ue) => V.value = Ue),
26839
+ modelValue: j.value,
26840
+ "onUpdate:modelValue": re[7] || (re[7] = (Ue) => j.value = Ue),
26841
26841
  class: "ao-activity-details__assignees ao-activity-details__multiselect",
26842
26842
  options: Rt.value,
26843
26843
  "close-on-select": !0,
@@ -26978,7 +26978,7 @@ const Q1e = { class: "ao-activity-details" }, efe = { class: "ao-activity-detail
26978
26978
  mode: "tags",
26979
26979
  "close-on-select": !1,
26980
26980
  searchable: !0,
26981
- options: j.value,
26981
+ options: V.value,
26982
26982
  disabled: !a.value,
26983
26983
  caret: a.value
26984
26984
  }, null, 8, ["modelValue", "options", "disabled", "caret"])
@@ -27462,19 +27462,19 @@ const ype = {
27462
27462
  }, null, 8, ["title"])
27463
27463
  ]),
27464
27464
  item: se(({ element: Z }) => {
27465
- var j;
27465
+ var V;
27466
27466
  return [
27467
27467
  P(eC, {
27468
27468
  id: Z.id,
27469
27469
  name: Z.name,
27470
27470
  milestones: Z.milestones,
27471
- "is-active": ((j = a.value) == null ? void 0 : j.id) === Z.id,
27471
+ "is-active": ((V = a.value) == null ? void 0 : V.id) === Z.id,
27472
27472
  "is-draggable": !0,
27473
- onClick: (ve) => W.$router.push({
27473
+ onClick: (_e) => W.$router.push({
27474
27474
  params: { templateId: t.templateId, phaseId: Z.id }
27475
27475
  }),
27476
- "onUpdate:title": (ve) => {
27477
- _(Z.id, ve);
27476
+ "onUpdate:title": (_e) => {
27477
+ _(Z.id, _e);
27478
27478
  },
27479
27479
  onRemove: () => m(Z.id)
27480
27480
  }, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
@@ -27583,7 +27583,7 @@ const Epe = { class: "ao-card__content" }, Tpe = {
27583
27583
  },
27584
27584
  setup(t) {
27585
27585
  return (e, n) => (k(), J(Io(t.tagName), {
27586
- class: ge([
27586
+ class: ve([
27587
27587
  "ao-card",
27588
27588
  {
27589
27589
  "ao-card--clickable": t.isClickable,
@@ -27624,12 +27624,12 @@ const Xl = /* @__PURE__ */ ue({
27624
27624
  setup(t) {
27625
27625
  const e = t, n = L(() => typeof e.percentages == "number" ? [e.percentages] : e.percentages ?? []);
27626
27626
  return (r, o) => (k(), M("div", {
27627
- class: ge(["ao-progress", t.status ? `ao-progress--${t.status}` : ""]),
27627
+ class: ve(["ao-progress", t.status ? `ao-progress--${t.status}` : ""]),
27628
27628
  role: "meter"
27629
27629
  }, [
27630
27630
  (k(!0), M(Ie, null, tt(n.value, (i) => (k(), M("div", {
27631
27631
  key: i,
27632
- class: ge(["ao-progress__progress"]),
27632
+ class: ve(["ao-progress__progress"]),
27633
27633
  style: Kt({
27634
27634
  width: `${i * 100}%`,
27635
27635
  "--ao-progress-color": t.color || "var(--ao-color-primary-base)"
@@ -28729,7 +28729,7 @@ const ehe = { class: "ao-card-project-phase__header" }, the = { class: "ao-card-
28729
28729
  ])) : F("", !0)
28730
28730
  ])) : F("", !0),
28731
28731
  b("div", {
28732
- class: ge(["ao-card-project-phase__footer-row", f.value ? "" : "ao-card-project-phase__no_deadline"])
28732
+ class: ve(["ao-card-project-phase__footer-row", f.value ? "" : "ao-card-project-phase__no_deadline"])
28733
28733
  }, [
28734
28734
  t.isEditable ? nt((k(), M("input", {
28735
28735
  key: 0,
@@ -28850,7 +28850,7 @@ const dhe = { class: "ao-card-project-milestone__default" }, fhe = { class: "ao-
28850
28850
  r("updateMilestone", { id: n.id, name: f });
28851
28851
  };
28852
28852
  return (f, p) => (k(), J(Jl, {
28853
- class: ge([
28853
+ class: ve([
28854
28854
  "ao-card-project-milestone"
28855
28855
  ]),
28856
28856
  "is-clickable": !t.readonly,
@@ -28919,7 +28919,7 @@ const dhe = { class: "ao-card-project-milestone__default" }, fhe = { class: "ao-
28919
28919
  t.important ? (k(), J(Fe, {
28920
28920
  key: 0,
28921
28921
  name: "FlagRounded",
28922
- class: ge(
28922
+ class: ve(
28923
28923
  t.isSelected ? "ao-card-project-milestone__important--selected" : "ao-card-project-milestone__important"
28924
28924
  ),
28925
28925
  size: "sm"
@@ -29293,7 +29293,7 @@ const Lhe = ["onKeydown"], Ihe = { class: "ao-modal ao-bulk-insert-modal" }, Nhe
29293
29293
  return (C, x) => (k(), J(Rn, { to: "body" }, [
29294
29294
  t.open ? (k(), M("div", {
29295
29295
  key: 0,
29296
- class: ge([
29296
+ class: ve([
29297
29297
  "ao-modal__wrapper",
29298
29298
  "ao-bulk-insert-modal__wrapper",
29299
29299
  `ao-modal__wrapper--${t.size}`
@@ -29542,7 +29542,7 @@ const Xhe = { class: "ao-mapping-card-project-phase__header" }, Qhe = { class: "
29542
29542
  ])) : F("", !0)
29543
29543
  ])) : F("", !0),
29544
29544
  b("div", {
29545
- class: ge(["ao-mapping-card-project-phase__footer-row", f.value ? "" : "ao-mapping-card-project-phase__no_deadline"])
29545
+ class: ve(["ao-mapping-card-project-phase__footer-row", f.value ? "" : "ao-mapping-card-project-phase__no_deadline"])
29546
29546
  }, [
29547
29547
  t.isEditable ? nt((k(), M("input", {
29548
29548
  key: 0,
@@ -29744,7 +29744,7 @@ const lme = { class: "ao-project-phase" }, cme = {
29744
29744
  }, [
29745
29745
  t.isEditable ? (k(), J(al, {
29746
29746
  key: 0,
29747
- class: ge(["ao-project-phase__milestone-quick-add", { "ao-project-phase__milestone-quick-add--visible": w.value }]),
29747
+ class: ve(["ao-project-phase__milestone-quick-add", { "ao-project-phase__milestone-quick-add--visible": w.value }]),
29748
29748
  placement: "bottom-end"
29749
29749
  }, {
29750
29750
  trigger: se(({ open: S }) => [
@@ -29805,7 +29805,7 @@ const lme = { class: "ao-project-phase" }, cme = {
29805
29805
  readonly: t.readonly,
29806
29806
  "time-tracking-data": t.timeTrackingData,
29807
29807
  "estimation-unit": t.estimationUnit,
29808
- class: ge(["ao-project-phase__milestone"]),
29808
+ class: ve(["ao-project-phase__milestone"]),
29809
29809
  onClick: (E) => !t.readonly && T.$router.push({
29810
29810
  name: ee(et).milestone,
29811
29811
  params: { phaseId: t.phase.id, milestoneId: S.id }
@@ -30080,71 +30080,71 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30080
30080
  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
30081
  setup(t, { emit: e }) {
30082
30082
  const { t: n } = nn(), r = t, o = e, i = L(
30083
- () => r.phases.flatMap((j) => j.milestones)
30083
+ () => r.phases.flatMap((V) => V.milestones)
30084
30084
  ), s = () => {
30085
- const { name: j, rank: ve } = bo(r.phases, "phase", n);
30086
- o("addPhase", { name: j, rank: ve, projectId: r.project.id });
30085
+ const { name: V, rank: _e } = bo(r.phases, "phase", n);
30086
+ o("addPhase", { name: V, rank: _e, projectId: r.project.id });
30087
30087
  }, 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);
30088
+ const V = n("template.defaultName.phase", { idx: 1 }), _e = Fs(r.phases);
30089
+ o("addPhase", { name: V, rank: _e, projectId: r.project.id });
30090
+ }, l = (V) => {
30091
+ o("updatePhase", V);
30092
+ }, c = (V) => {
30093
+ o("archivePhase", V);
30094
+ }, u = (V) => {
30095
+ o("unarchivePhase", V);
30096
+ }, d = (V) => {
30097
+ o("copyPhaseToTemplate", V);
30098
+ }, f = (V) => {
30099
+ o("addMilestone", V);
30100
+ }, p = (V) => {
30101
+ o("bulkAddMilestone", V);
30102
+ }, h = (V) => {
30103
+ o("updateMilestone", V);
30104
+ }, m = (V) => {
30105
+ o("archiveMilestone", V);
30106
+ }, _ = (V) => {
30107
+ o("unarchiveMilestone", V);
30108
+ }, y = (V) => {
30109
+ o("addActivity", V);
30110
+ }, g = (V) => {
30111
+ o("bulkAddActivity", V);
30112
+ }, v = (V) => {
30113
+ o("update:activity", V);
30114
+ }, C = (V) => {
30115
+ o("archiveActivity", V);
30116
+ }, x = (V) => {
30117
+ o("unarchiveActivity", V);
30118
+ }, w = (V) => {
30119
+ o("addSubtask", V);
30120
+ }, $ = (V) => {
30121
+ o("updateSubtask", V);
30122
+ }, T = (V) => {
30123
+ o("deleteSubtask", V);
30124
30124
  }, 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) => {
30125
+ () => i.value.flatMap((V) => V.activities)
30126
+ ), S = L(() => r.devStatuses ?? []), O = L(() => r.sprints ?? []), E = (V) => {
30127
+ o("addFiles", V);
30128
+ }, I = (V) => {
30129
+ o("removeFile", V);
30130
+ }, N = (V) => {
30131
+ o("addComment", V);
30132
+ }, z = (V) => {
30133
+ o("updateComment", V);
30134
+ }, H = (V) => {
30135
+ o("removeComment", V);
30136
+ }, X = Q(!1), W = Q(!1), G = Q(!1), ce = Q(!1), be = (V, _e) => {
30137
+ o("applyTemplate", { templateId: V, projectId: _e }), X.value = !1;
30138
+ }, he = (V, _e) => {
30139
30139
  var Re;
30140
30140
  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) => {
30141
+ o("saveTemplate", { templateName: V, rank: st.format(), phaseIds: _e }), W.value = !1;
30142
+ }, je = (V) => {
30143
30143
  ce.value = !0;
30144
- const ve = Jhe(j, r.phases);
30144
+ const _e = Jhe(V, r.phases);
30145
30145
  o("bulkAddPhase", {
30146
30146
  projectId: r.project.id,
30147
- phases: ve,
30147
+ phases: _e,
30148
30148
  onSuccess: () => {
30149
30149
  ce.value = !1, G.value = !1;
30150
30150
  },
@@ -30153,8 +30153,8 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30153
30153
  }
30154
30154
  });
30155
30155
  };
30156
- Ne(G, (j) => {
30157
- j && (ce.value = !1);
30156
+ Ne(G, (V) => {
30157
+ V && (ce.value = !1);
30158
30158
  });
30159
30159
  const ye = Nu(), pe = Q("overview"), Z = [
30160
30160
  { label: "Overview", value: "overview" },
@@ -30162,19 +30162,19 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30162
30162
  { label: "Dev", value: "dev" },
30163
30163
  { label: "Mapping", value: "mapping" }
30164
30164
  ];
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) => {
30165
+ return Ne(pe, (V) => {
30166
+ 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..."));
30167
+ }), (V, _e) => {
30168
30168
  var st;
30169
30169
  const Be = Or("RouterView");
30170
30170
  return k(), M(Ie, null, [
30171
- b("div", Ht({ class: "ao-project-overview" }, j.$attrs), [
30171
+ b("div", Ht({ class: "ao-project-overview" }, V.$attrs), [
30172
30172
  b("div", Lme, [
30173
30173
  P(Rs, null, {
30174
30174
  primary: se(() => [
30175
30175
  P(Yl, {
30176
30176
  modelValue: pe.value,
30177
- "onUpdate:modelValue": ve[0] || (ve[0] = (Re) => pe.value = Re),
30177
+ "onUpdate:modelValue": _e[0] || (_e[0] = (Re) => pe.value = Re),
30178
30178
  tabs: Z
30179
30179
  }, null, 8, ["modelValue"]),
30180
30180
  P(ke, {
@@ -30184,10 +30184,10 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30184
30184
  "icon-position": "start",
30185
30185
  color: "primary",
30186
30186
  variant: "ghost",
30187
- label: j.$t("feed.filters.showsArchived.label"),
30187
+ label: V.$t("feed.filters.showsArchived.label"),
30188
30188
  role: "checkbox",
30189
30189
  "aria-checked": t.showsArchived,
30190
- onClick: ve[1] || (ve[1] = (Re) => j.$emit("update:showsArchived", !t.showsArchived))
30190
+ onClick: _e[1] || (_e[1] = (Re) => V.$emit("update:showsArchived", !t.showsArchived))
30191
30191
  }, null, 8, ["icon-name", "label", "aria-checked"])
30192
30192
  ]),
30193
30193
  secondary: se(() => [
@@ -30202,7 +30202,7 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30202
30202
  "icon-position": "start",
30203
30203
  color: "primary",
30204
30204
  variant: "ghost",
30205
- label: j.$t("project.phase.add"),
30205
+ label: V.$t("project.phase.add"),
30206
30206
  onClick: Re
30207
30207
  }, null, 8, ["label", "onClick"])
30208
30208
  ]),
@@ -30213,14 +30213,14 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30213
30213
  onClick: () => {
30214
30214
  Re(), a();
30215
30215
  }
30216
- }, q(j.$t("project.bulk.menu.single")), 9, Ime),
30216
+ }, q(V.$t("project.bulk.menu.single")), 9, Ime),
30217
30217
  b("button", {
30218
30218
  type: "button",
30219
30219
  class: "ao-popover-menu__item",
30220
30220
  onClick: () => {
30221
30221
  Re(), G.value = !0;
30222
30222
  }
30223
- }, q(j.$t("project.bulk.menu.bulkInsert")), 9, Nme)
30223
+ }, q(V.$t("project.bulk.menu.bulkInsert")), 9, Nme)
30224
30224
  ]),
30225
30225
  _: 1
30226
30226
  })) : F("", !0),
@@ -30228,15 +30228,15 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30228
30228
  key: 1,
30229
30229
  class: "ao-project-overview__save-as-template",
30230
30230
  color: "primary",
30231
- label: j.$t("project.template.save.label"),
30232
- onClick: ve[2] || (ve[2] = (Re) => W.value = !0)
30231
+ label: V.$t("project.template.save.label"),
30232
+ onClick: _e[2] || (_e[2] = (Re) => W.value = !0)
30233
30233
  }, null, 8, ["label"])) : F("", !0),
30234
30234
  t.isEditable === !0 ? (k(), J(ke, {
30235
30235
  key: 2,
30236
30236
  class: "ao-project-overview__add-template",
30237
30237
  color: "primary",
30238
- label: j.$t("project.template.apply.label"),
30239
- onClick: ve[3] || (ve[3] = (Re) => X.value = !0)
30238
+ label: V.$t("project.template.apply.label"),
30239
+ onClick: _e[3] || (_e[3] = (Re) => X.value = !0)
30240
30240
  }, null, 8, ["label"])) : F("", !0)
30241
30241
  ]),
30242
30242
  _: 1
@@ -30271,7 +30271,7 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30271
30271
  "is-editable": t.isEditable === !0,
30272
30272
  "closed-status": t.closedStatus,
30273
30273
  "time-tracking-data": t.timeTrackingData,
30274
- onClose: ve[4] || (ve[4] = (Re) => j.$router.push({ name: ee(et).project })),
30274
+ onClose: _e[4] || (_e[4] = (Re) => V.$router.push({ name: ee(et).project })),
30275
30275
  onUpdateMilestone: h,
30276
30276
  onAddActivity: y,
30277
30277
  onBulkAddActivity: g,
@@ -30310,7 +30310,7 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30310
30310
  default: se(({ Component: Re }) => [
30311
30311
  (k(), J(Io(Re), null, {
30312
30312
  default: se((Le) => [
30313
- we(j.$slots, "activityDetailsBody", Ms(Os(Le)))
30313
+ we(V.$slots, "activityDetailsBody", Ms(Os(Le)))
30314
30314
  ]),
30315
30315
  _: 3
30316
30316
  }))
@@ -30323,21 +30323,21 @@ const Lme = { class: "ao-project" }, Ime = ["onClick"], Nme = ["onClick"], Pme =
30323
30323
  W.value ? (k(), J(D0, {
30324
30324
  key: 0,
30325
30325
  phases: t.phases,
30326
- onClose: ve[5] || (ve[5] = (Re) => W.value = !1),
30326
+ onClose: _e[5] || (_e[5] = (Re) => W.value = !1),
30327
30327
  onSave: he
30328
30328
  }, null, 8, ["phases"])) : F("", !0),
30329
30329
  X.value ? (k(), J($0, {
30330
30330
  key: 1,
30331
30331
  "project-id": t.project.id,
30332
30332
  templates: t.templates,
30333
- onClose: ve[6] || (ve[6] = (Re) => X.value = !1),
30333
+ onClose: _e[6] || (_e[6] = (Re) => X.value = !1),
30334
30334
  onApply: be
30335
30335
  }, null, 8, ["project-id", "templates"])) : F("", !0),
30336
30336
  G.value ? (k(), J(Qd, {
30337
30337
  key: 2,
30338
30338
  open: G.value,
30339
- "onUpdate:open": ve[7] || (ve[7] = (Re) => G.value = Re),
30340
- title: j.$t("project.bulk.modal.phase.title"),
30339
+ "onUpdate:open": _e[7] || (_e[7] = (Re) => G.value = Re),
30340
+ title: V.$t("project.bulk.modal.phase.title"),
30341
30341
  "root-type": "phase",
30342
30342
  "is-loading": ce.value,
30343
30343
  onSubmit: je
@@ -30357,7 +30357,7 @@ const Rme = { class: "ao-card-feed__header" }, Bme = {
30357
30357
  key: 0,
30358
30358
  class: "ao-card-feed__breadcrumbs"
30359
30359
  }, qme = {
30360
- class: /* @__PURE__ */ ge(["ao-card-feed__title-group"])
30360
+ class: /* @__PURE__ */ ve(["ao-card-feed__title-group"])
30361
30361
  }, jme = { class: "ao-card-feed__title-line" }, Vme = {
30362
30362
  key: 0,
30363
30363
  class: "ao-card-feed__slug"
@@ -30428,7 +30428,7 @@ const Rme = { class: "ao-card-feed__header" }, Bme = {
30428
30428
  return (m = n.tasks) == null ? void 0 : m.filter((_) => _.isDone).length;
30429
30429
  }), h = L(() => (p.value || 0) / (f.value || 1));
30430
30430
  return (m, _) => (k(), J(Jl, {
30431
- class: ge(["ao-card-feed", { "ao-card-feed--closed": t.isClosed }]),
30431
+ class: ve(["ao-card-feed", { "ao-card-feed--closed": t.isClosed }]),
30432
30432
  "is-clickable": !0,
30433
30433
  variant: t.blocked ? "danger" : "default"
30434
30434
  }, {
@@ -31204,7 +31204,7 @@ function Rge(t, e, n = {}) {
31204
31204
  };
31205
31205
  }
31206
31206
  const Bge = {
31207
- class: /* @__PURE__ */ ge(["ao-list-kanban"])
31207
+ class: /* @__PURE__ */ ve(["ao-list-kanban"])
31208
31208
  }, Uge = { class: "ao-list-kanban__header" }, zge = ["title"], Hge = {
31209
31209
  key: 0,
31210
31210
  class: "ao-list-kanban__end ao-list-kanban__end--loading"
@@ -31314,7 +31314,7 @@ const Bge = {
31314
31314
  return [
31315
31315
  P(M0, {
31316
31316
  id: p.id,
31317
- class: ge(s(p) ? "ao-list-draggable" : ""),
31317
+ class: ve(s(p) ? "ao-list-draggable" : ""),
31318
31318
  name: p.name,
31319
31319
  "project-name": (h = p.project) == null ? void 0 : h.name,
31320
31320
  "project-id": (m = p.project) == null ? void 0 : m.id,
@@ -31424,14 +31424,14 @@ const Kge = { class: "ao-field ao-search-field" }, Gge = ["value", "placeholder"
31424
31424
  }, null, 40, Gge),
31425
31425
  P(Fe, {
31426
31426
  name: "SearchRounded",
31427
- class: ge(`ao-search-field__icon ao-search-field__action ${t.modelValue ? "" : "ao-search-field__action--visible"}`)
31427
+ class: ve(`ao-search-field__icon ao-search-field__action ${t.modelValue ? "" : "ao-search-field__action--visible"}`)
31428
31428
  }, null, 8, ["class"]),
31429
31429
  P(ke, {
31430
31430
  "icon-name": "CloseRounded",
31431
31431
  size: "sm",
31432
31432
  color: "primary",
31433
31433
  corners: "round",
31434
- class: ge(`ao-search-field__button ao-search-field__action ${t.modelValue ? "ao-search-field__action--visible" : ""}`),
31434
+ class: ve(`ao-search-field__button ao-search-field__action ${t.modelValue ? "ao-search-field__action--visible" : ""}`),
31435
31435
  onClick: s
31436
31436
  }, null, 8, ["class"])
31437
31437
  ]));
@@ -31527,12 +31527,12 @@ const Jge = { class: "ao-sprint-metrics" }, Xge = ["onClick"], Qge = { class: "a
31527
31527
  !o.value.has(E.id) && a(E) ? (k(), M("span", r0e, " · " + q((I = a(E)) == null ? void 0 : I.name), 1)) : F("", !0)
31528
31528
  ]),
31529
31529
  b("div", {
31530
- class: ge(["ao-sprint-metrics__header-right", { "ao-sprint-metrics__header-right--behind": w(E.id) }])
31530
+ class: ve(["ao-sprint-metrics__header-right", { "ao-sprint-metrics__header-right--behind": w(E.id) }])
31531
31531
  }, [
31532
31532
  b("div", o0e, [
31533
31533
  b("div", i0e, [
31534
31534
  b("div", {
31535
- class: ge(["ao-sprint-metrics__progress-fill", { "ao-sprint-metrics__progress-fill--behind": w(E.id) }]),
31535
+ class: ve(["ao-sprint-metrics__progress-fill", { "ao-sprint-metrics__progress-fill--behind": w(E.id) }]),
31536
31536
  style: Kt({ width: v(E.id) + "%" })
31537
31537
  }, null, 6)
31538
31538
  ]),
@@ -31579,7 +31579,7 @@ const Jge = { class: "ao-sprint-metrics" }, Xge = ["onClick"], Qge = { class: "a
31579
31579
  b("div", _0e, q(ee(n)("sprintMetrics.manDaysPlanned")), 1),
31580
31580
  b("div", y0e, [
31581
31581
  b("span", {
31582
- class: ge(["ao-sprint-metrics__man-days", { "ao-sprint-metrics__man-days--has-tooltip": u(E.id).length > 0 }])
31582
+ class: ve(["ao-sprint-metrics__man-days", { "ao-sprint-metrics__man-days--has-tooltip": u(E.id).length > 0 }])
31583
31583
  }, [
31584
31584
  mo(q($(l(E.id))) + " MD ", 1),
31585
31585
  u(E.id).length > 0 ? (k(), M("span", b0e, [
@@ -31667,152 +31667,155 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31667
31667
  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
31668
  setup(t, { emit: e }) {
31669
31669
  const { t: n } = nn(), r = t, o = e;
31670
- function i(V, _e) {
31671
- o("toast", V, _e);
31670
+ function i(j, ge) {
31671
+ o("toast", j, ge);
31672
31672
  }
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);
31673
+ 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) => {
31674
+ await o("selectActivity", j, ge);
31675
31675
  }, u = Q({}), d = Q(!1), f = Q(!1), p = L(() => r.project ? "milestone" : "project");
31676
31676
  Ne(
31677
31677
  [() => a.value, () => l.value, () => r.initialActivityId, () => r.initialActivitySlug, () => r.feedMode],
31678
31678
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
31679
- async ([V, _e, De, Ae], [at, Ve]) => {
31679
+ async ([j, ge, De, Ae], [at, Ve]) => {
31680
31680
  const Ke = r.feedMode === "dev" ? "devStatus" : "status";
31681
31681
  u.value = Object.fromEntries(
31682
- V.map((rt) => [
31682
+ j.map((rt) => [
31683
31683
  rt.id,
31684
- _e.filter((ft) => {
31684
+ ge.filter((ft) => {
31685
31685
  const mt = ft[Ke];
31686
31686
  return (mt == null ? void 0 : mt.id) === rt.id;
31687
31687
  })
31688
31688
  ])
31689
- ), De && !d.value ? (c(De, null), d.value = !0) : Ae && !d.value && (c(null, Ae), d.value = !0), f.value && yr(_e, Ve);
31689
+ ), De && !d.value ? (c(De, null), d.value = !0) : Ae && !d.value && (c(null, Ae), d.value = !0), f.value && yr(ge, Ve);
31690
31690
  },
31691
31691
  { immediate: !0 }
31692
31692
  );
31693
31693
  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) => {
31694
+ var j;
31695
+ return !r.selectedActivity || !r.selectedActivity.milestone ? "" : `${((j = r.selectedActivity.milestone.phase) == null ? void 0 : j.name) ?? ""} / ${r.selectedActivity.milestone.name ?? ""}`;
31696
+ }), m = (j) => {
31697
31697
  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 = {
31698
+ 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
31699
  name: n("activity.defaultName", { idx: at + 1 }),
31700
31700
  rank: Ae.format(),
31701
- ...Ve ? { statusDevId: V.id, type: "dev" } : { statusId: V.id }
31701
+ ...Ve ? { statusDevId: j.id, type: "dev" } : { statusId: j.id }
31702
31702
  };
31703
31703
  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
31704
  const ft = r.sprints.find((mt) => mt.id === r.filters.sprintId[0]);
31705
31705
  ft && (Ke.sprintId = ft.id, Ke.projectId = ft.projectId);
31706
31706
  }
31707
31707
  f.value = !0, o("addActivity", Ke);
31708
- }, _ = (V) => {
31708
+ }, _ = (j) => {
31709
31709
  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;
31710
+ const ge = r.feedMode === "dev" ? "devStatus" : "status", De = ((rt = r.activities) == null ? void 0 : rt.filter((mt) => {
31711
+ const Ge = mt[ge];
31712
+ return (Ge == null ? void 0 : Ge.id) === j.id;
31713
31713
  })) ?? [], Ae = Fs(De), at = ((ft = r.activities) == null ? void 0 : ft.length) ?? 0, Ve = r.feedMode === "dev", Ke = {
31714
31714
  name: n("activity.defaultName", { idx: at + 1 }),
31715
31715
  rank: Ae,
31716
- ...Ve ? { statusDevId: V.id, type: "dev" } : { statusId: V.id }
31716
+ ...Ve ? { statusDevId: j.id, type: "dev" } : { statusId: j.id }
31717
31717
  };
31718
31718
  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
31719
  const mt = r.sprints.find((Ge) => Ge.id === r.filters.sprintId[0]);
31720
31720
  mt && (Ke.sprintId = mt.id, Ke.projectId = mt.projectId);
31721
31721
  }
31722
31722
  f.value = !0, o("addActivity", Ke);
31723
- }, y = (V, _e) => {
31724
- f.value = !1, o("update:filters", { ...r.filters, [V]: _e });
31723
+ }, y = (j, ge) => {
31724
+ f.value = !1, o("update:filters", { ...r.filters, [j]: ge });
31725
31725
  }, g = L(
31726
31726
  () => 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
31727
+ ), v = L(() => g.value.map((j) => ({
31728
+ value: j.id,
31729
+ label: j.name
31730
+ }))), C = L(() => r.sprints.map((j) => ({
31731
+ value: j.id,
31732
+ label: `${j.name} · ${j.startDate} – ${j.endDate}`,
31733
+ startDate: j.startDate,
31734
+ endDate: j.endDate,
31735
+ projectId: j.projectId
31736
31736
  }))), x = L(() => {
31737
- const V = r.filters[Zn.sprint] ?? [];
31738
- return r.sprints.filter((_e) => V.includes(_e.id));
31737
+ const j = r.filters[Zn.sprint] ?? [];
31738
+ return r.sprints.filter((ge) => j.includes(ge.id));
31739
31739
  }), w = L(() => {
31740
31740
  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
- })));
31741
+ const j = r.filters[Zn.project] ?? [], ge = (De = r.project) != null && De.id ? [r.project.id] : [];
31742
+ return [...j, ...ge];
31743
+ }), $ = L(() => r.milestones.map((j) => {
31744
+ var ge;
31745
+ return {
31746
+ value: j.id,
31747
+ label: (ge = j.phase) != null && ge.name ? `${j.phase.name} - ${j.name}` : j.name,
31748
+ color: j.color,
31749
+ important: j.important
31750
+ };
31751
+ }));
31749
31752
  L(() => {
31750
- var V;
31751
- return (V = r.activityTypes) == null ? void 0 : V.map((_e) => ({
31752
- value: _e.id,
31753
- label: _e.name
31753
+ var j;
31754
+ return (j = r.activityTypes) == null ? void 0 : j.map((ge) => ({
31755
+ value: ge.id,
31756
+ label: ge.name
31754
31757
  }));
31755
31758
  });
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({
31759
+ const T = L(() => r.users.map((j) => ({
31760
+ value: j.id,
31761
+ label: `${j.firstName} ${j.lastName}`,
31762
+ avatar: j.avatarUrl
31763
+ }))), A = (j) => {
31764
+ r.selectedActivity && o("update:activity", j);
31765
+ }, S = (j) => {
31766
+ o("update:activity", j);
31767
+ }, O = (j) => {
31768
+ o("archiveActivity", j);
31769
+ }, E = (j) => {
31770
+ o("unarchiveActivity", j);
31771
+ }, I = (j) => {
31772
+ var ge;
31773
+ o("startTimer", j), (ge = window.parent) == null || ge.postMessage({
31771
31774
  type: "startTimer",
31772
- data: V
31775
+ data: j
31773
31776
  }, "*");
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) => {
31777
+ }, N = (j) => {
31778
+ f.value = !1, o("update:searchText", j);
31779
+ }, z = (j) => {
31780
+ f.value = !1, o("clear:searchText", j);
31781
+ }, H = (j) => {
31782
+ r.selectedActivity && o("addSubtask", j);
31783
+ }, X = (j) => {
31784
+ r.selectedActivity && o("updateSubtask", j);
31785
+ }, W = (j) => {
31786
+ r.selectedActivity && o("deleteSubtask", j);
31787
+ }, G = (j) => {
31788
+ o("addFiles", j);
31789
+ }, ce = (j) => {
31790
+ o("removeFile", j);
31791
+ }, be = (j) => {
31789
31792
  r.selectedActivity && o("addComment", {
31790
- ...V,
31793
+ ...j,
31791
31794
  activityId: r.selectedActivity.id
31792
31795
  });
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);
31796
+ }, he = (j) => {
31797
+ const { id: ge } = r.selectedActivity || {};
31798
+ ge && o("updateComment", j);
31799
+ }, je = (j) => {
31800
+ const { id: ge } = r.selectedActivity || {};
31801
+ ge && o("removeComment", j);
31799
31802
  }, ye = Nu(), pe = ah(), Z = Q("feed");
31800
31803
  Ne(
31801
31804
  () => 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");
31805
+ (j) => {
31806
+ 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
31807
  },
31805
31808
  { immediate: !0 }
31806
31809
  );
31807
- const j = [
31810
+ const V = [
31808
31811
  { label: "Overview", value: "overview" },
31809
31812
  { label: "Feed", value: "feed" },
31810
31813
  { label: "Dev", value: "dev" },
31811
31814
  { 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) => {
31815
+ ], _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);
31816
+ return Ne(Z, (j) => {
31817
+ 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 });
31818
+ }), (j, ge) => {
31816
31819
  var De;
31817
31820
  return k(), M("div", N0e, [
31818
31821
  P(Rs, null, {
@@ -31820,12 +31823,12 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31820
31823
  b("div", P0e, [
31821
31824
  P(Yl, {
31822
31825
  modelValue: Z.value,
31823
- "onUpdate:modelValue": _e[0] || (_e[0] = (Ae) => Z.value = Ae),
31824
- tabs: ve.value
31826
+ "onUpdate:modelValue": ge[0] || (ge[0] = (Ae) => Z.value = Ae),
31827
+ tabs: _e.value
31825
31828
  }, null, 8, ["modelValue", "tabs"]),
31826
31829
  P(Yge, {
31827
31830
  "model-value": t.searchText,
31828
- placeholder: V.$t("feed.search.placeholder"),
31831
+ placeholder: j.$t("feed.search.placeholder"),
31829
31832
  class: "ao-feed__search",
31830
31833
  "onUpdate:modelValue": N,
31831
31834
  onClear: z
@@ -31838,8 +31841,8 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31838
31841
  "close-on-select": !1,
31839
31842
  searchable: !0,
31840
31843
  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))
31844
+ placeholder: j.$t("feed.filters.project.placeholder"),
31845
+ "onUpdate:modelValue": ge[1] || (ge[1] = (Ae) => y(ee(Zn).project, Ae))
31843
31846
  }, null, 8, ["model-value", "options", "placeholder"])),
31844
31847
  t.feedMode === "dev" ? (k(), J(zt, {
31845
31848
  key: 1,
@@ -31850,8 +31853,8 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31850
31853
  searchable: !0,
31851
31854
  disabled: !C.value.length,
31852
31855
  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))
31856
+ placeholder: j.$t("feed.filters.sprint.placeholder"),
31857
+ "onUpdate:modelValue": ge[2] || (ge[2] = (Ae) => y(ee(Zn).sprint, Ae))
31855
31858
  }, null, 8, ["model-value", "options", "disabled", "placeholder"])) : F("", !0),
31856
31859
  P(zt, {
31857
31860
  "model-value": t.filters[ee(Zn).milestone],
@@ -31861,8 +31864,8 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31861
31864
  searchable: !0,
31862
31865
  disabled: w.value.length === 0,
31863
31866
  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))
31867
+ placeholder: j.$t("feed.filters.milestone.placeholder"),
31868
+ "onUpdate:modelValue": ge[3] || (ge[3] = (Ae) => y(ee(Zn).milestone, Ae))
31866
31869
  }, null, 8, ["model-value", "options", "disabled", "placeholder"]),
31867
31870
  T.value.length ? (k(), J(zt, {
31868
31871
  key: 2,
@@ -31872,8 +31875,8 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31872
31875
  "close-on-select": !1,
31873
31876
  searchable: !0,
31874
31877
  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))
31878
+ placeholder: j.$t("feed.filters.assignee.placeholder"),
31879
+ "onUpdate:modelValue": ge[4] || (ge[4] = (Ae) => y(ee(Zn).assignee, Ae))
31877
31880
  }, {
31878
31881
  tag: se(({
31879
31882
  option: Ae,
@@ -31896,10 +31899,10 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31896
31899
  "icon-position": "start",
31897
31900
  color: "primary",
31898
31901
  variant: "ghost",
31899
- label: V.$t("feed.filters.showsOnlyNonAssigned.label"),
31902
+ label: j.$t("feed.filters.showsOnlyNonAssigned.label"),
31900
31903
  role: "checkbox",
31901
31904
  "aria-checked": t.showsOnlyNonAssigned,
31902
- onClick: _e[5] || (_e[5] = (Ae) => V.$emit("update:showsOnlyNonAssigned", !t.showsOnlyNonAssigned))
31905
+ onClick: ge[5] || (ge[5] = (Ae) => j.$emit("update:showsOnlyNonAssigned", !t.showsOnlyNonAssigned))
31903
31906
  }, null, 8, ["icon-name", "label", "aria-checked"]),
31904
31907
  P(ke, {
31905
31908
  class: "ao-feed__only-important",
@@ -31908,10 +31911,10 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31908
31911
  "icon-position": "start",
31909
31912
  color: "primary",
31910
31913
  variant: "ghost",
31911
- label: V.$t("feed.filters.showsOnlyImportant.label"),
31914
+ label: j.$t("feed.filters.showsOnlyImportant.label"),
31912
31915
  role: "checkbox",
31913
31916
  "aria-checked": t.showsOnlyImportant,
31914
- onClick: _e[6] || (_e[6] = (Ae) => V.$emit("update:showsOnlyImportant", !t.showsOnlyImportant))
31917
+ onClick: ge[6] || (ge[6] = (Ae) => j.$emit("update:showsOnlyImportant", !t.showsOnlyImportant))
31915
31918
  }, null, 8, ["icon-name", "label", "aria-checked"]),
31916
31919
  P(ke, {
31917
31920
  class: "ao-feed__show-archived",
@@ -31920,10 +31923,10 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31920
31923
  "icon-position": "start",
31921
31924
  color: "primary",
31922
31925
  variant: "ghost",
31923
- label: V.$t("feed.filters.showsArchivedActivities.label"),
31926
+ label: j.$t("feed.filters.showsArchivedActivities.label"),
31924
31927
  role: "checkbox",
31925
31928
  "aria-checked": t.showsArchivedActivities,
31926
- onClick: _e[7] || (_e[7] = (Ae) => V.$emit("update:showsArchivedActivities", !t.showsArchivedActivities))
31929
+ onClick: ge[7] || (ge[7] = (Ae) => j.$emit("update:showsArchivedActivities", !t.showsArchivedActivities))
31927
31930
  }, null, 8, ["icon-name", "label", "aria-checked"])
31928
31931
  ]),
31929
31932
  _: 1
@@ -31941,7 +31944,7 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31941
31944
  status: Ae,
31942
31945
  list: u.value[Ae.id],
31943
31946
  title: Ae.name,
31944
- "footer-label": V.$t("feed.activity.add"),
31947
+ "footer-label": j.$t("feed.activity.add"),
31945
31948
  users: t.users,
31946
31949
  "user-id": t.userId,
31947
31950
  "is-editable": t.isEditable,
@@ -31976,7 +31979,7 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31976
31979
  "time-tracking-data": t.timeTrackingData,
31977
31980
  "load-attachment-preview": r.loadAttachmentPreview,
31978
31981
  sprints: t.activitySprints,
31979
- onClose: _e[8] || (_e[8] = () => c(null, null)),
31982
+ onClose: ge[8] || (ge[8] = () => c(null, null)),
31980
31983
  "onUpdate:activity": A,
31981
31984
  onAddSubtask: H,
31982
31985
  onUpdateSubtask: X,
@@ -31987,10 +31990,10 @@ const I0e = /* @__PURE__ */ fe(L0e, [["__scopeId", "data-v-98b799f1"]]), N0e = {
31987
31990
  onUpdateComment: he,
31988
31991
  onRemoveComment: je,
31989
31992
  onToast: i,
31990
- onCreateSprint: _e[9] || (_e[9] = (Ae) => o("createSprint", Ae))
31993
+ onCreateSprint: ge[9] || (ge[9] = (Ae) => o("createSprint", Ae))
31991
31994
  }, {
31992
31995
  default: se((Ae) => [
31993
- we(V.$slots, "activityDetailsBody", Ms(Os(Ae)))
31996
+ we(j.$slots, "activityDetailsBody", Ms(Os(Ae)))
31994
31997
  ]),
31995
31998
  _: 3
31996
31999
  }, 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 +32340,7 @@ const W0e = { class: "ao-field__label" }, Z0e = /* @__PURE__ */ ue({
32337
32340
  },
32338
32341
  setup(t) {
32339
32342
  return (e, n) => (k(), M("label", {
32340
- class: ge(["ao-field", { "ao-field--multiselect": t.isMultiselect }])
32343
+ class: ve(["ao-field", { "ao-field--multiselect": t.isMultiselect }])
32341
32344
  }, [
32342
32345
  b("span", W0e, q(t.label), 1),
32343
32346
  we(e.$slots, "default")
@@ -32701,7 +32704,7 @@ const vve = { class: "ao-sprint-list" }, _ve = { class: "ao-sprint-list__header"
32701
32704
  b("div", Tve, [
32702
32705
  (k(!0), M(Ie, null, tt(s.value, (S) => (k(), M("div", {
32703
32706
  key: S.id,
32704
- class: ge(["ao-sprint-list__row", {
32707
+ class: ve(["ao-sprint-list__row", {
32705
32708
  "ao-sprint-list__row--archived": !S.active,
32706
32709
  "ao-sprint-list__row--editing": a.value === S.id
32707
32710
  }])