@26lights/orcha 0.37.53 → 0.37.55

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
@@ -1258,16 +1258,16 @@ const ye = /* @__PURE__ */ x({
1258
1258
  click: (g) => g.stopPropagation(),
1259
1259
  blur: h
1260
1260
  } : {
1261
- click: b,
1262
- focus: b
1263
- } : {}), f = i((g, S) => {
1264
- const m = S.target.value;
1261
+ click: y,
1262
+ focus: y
1263
+ } : {}), f = i((g, k) => {
1264
+ const m = k.target.value;
1265
1265
  e("update:title", m);
1266
1266
  }), d = r(), h = async () => {
1267
1267
  s.value && o(!1);
1268
1268
  }, w = () => {
1269
1269
  e("toggle-is-editing", !1);
1270
- }, b = (g) => {
1270
+ }, y = (g) => {
1271
1271
  g.stopPropagation(), s.value || o(!0);
1272
1272
  };
1273
1273
  return de(
@@ -1275,7 +1275,7 @@ const ye = /* @__PURE__ */ x({
1275
1275
  (g) => {
1276
1276
  g || d();
1277
1277
  }
1278
- ), (g, S) => (p(), P(ht(c.value), He({
1278
+ ), (g, k) => (p(), P(ht(c.value), He({
1279
1279
  id: g.id,
1280
1280
  ref_key: "target",
1281
1281
  ref: n,
@@ -1597,10 +1597,10 @@ function Vs(t, e) {
1597
1597
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1598
1598
  var w = /* @__PURE__ */ new Date(0);
1599
1599
  w.setUTCFullYear(f + 1, 0, h), w.setUTCHours(0, 0, 0, 0);
1600
- var b = Pa(w, e), g = /* @__PURE__ */ new Date(0);
1600
+ var y = Pa(w, e), g = /* @__PURE__ */ new Date(0);
1601
1601
  g.setUTCFullYear(f, 0, h), g.setUTCHours(0, 0, 0, 0);
1602
- var S = Pa(g, e);
1603
- return u.getTime() >= b.getTime() ? f + 1 : u.getTime() >= S.getTime() ? f : f - 1;
1602
+ var k = Pa(g, e);
1603
+ return u.getTime() >= y.getTime() ? f + 1 : u.getTime() >= k.getTime() ? f : f - 1;
1604
1604
  }
1605
1605
  function J2(t, e) {
1606
1606
  var a, n, s, o, i, r, l, c;
@@ -2722,12 +2722,12 @@ var K0 = {
2722
2722
  const Rs = K0;
2723
2723
  var G0 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, X0 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Q0 = /^'([^]*?)'?$/, J0 = /''/g, e3 = /[a-zA-Z]/;
2724
2724
  function Ns(t, e, a) {
2725
- var n, s, o, i, r, l, c, u, f, d, h, w, b, g, S, _, m, D;
2725
+ var n, s, o, i, r, l, c, u, f, d, h, w, y, g, k, _, m, D;
2726
2726
  ge(2, arguments);
2727
2727
  var I = String(e), L = va(), U = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : L.locale) !== null && n !== void 0 ? n : Rs, Z = Qe((o = (i = (r = (l = a == null ? void 0 : a.firstWeekContainsDate) !== null && l !== void 0 ? l : a == null || (c = a.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && r !== void 0 ? r : L.firstWeekContainsDate) !== null && i !== void 0 ? i : (f = L.locale) === null || f === void 0 || (d = f.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
2728
2728
  if (!(Z >= 1 && Z <= 7))
2729
2729
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
2730
- var Y = Qe((h = (w = (b = (g = a == null ? void 0 : a.weekStartsOn) !== null && g !== void 0 ? g : a == null || (S = a.locale) === null || S === void 0 || (_ = S.options) === null || _ === void 0 ? void 0 : _.weekStartsOn) !== null && b !== void 0 ? b : L.weekStartsOn) !== null && w !== void 0 ? w : (m = L.locale) === null || m === void 0 || (D = m.options) === null || D === void 0 ? void 0 : D.weekStartsOn) !== null && h !== void 0 ? h : 0);
2730
+ var Y = Qe((h = (w = (y = (g = a == null ? void 0 : a.weekStartsOn) !== null && g !== void 0 ? g : a == null || (k = a.locale) === null || k === void 0 || (_ = k.options) === null || _ === void 0 ? void 0 : _.weekStartsOn) !== null && y !== void 0 ? y : L.weekStartsOn) !== null && w !== void 0 ? w : (m = L.locale) === null || m === void 0 || (D = m.options) === null || D === void 0 ? void 0 : D.weekStartsOn) !== null && h !== void 0 ? h : 0);
2731
2731
  if (!(Y >= 0 && Y <= 6))
2732
2732
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
2733
2733
  if (!U.localize)
@@ -2745,8 +2745,8 @@ function Ns(t, e, a) {
2745
2745
  }, oe = I.match(X0).map(function(ne) {
2746
2746
  var O = ne[0];
2747
2747
  if (O === "p" || O === "P") {
2748
- var k = r0[O];
2749
- return k(ne, U.formatLong);
2748
+ var S = r0[O];
2749
+ return S(ne, U.formatLong);
2750
2750
  }
2751
2751
  return ne;
2752
2752
  }).join("").match(G0).map(function(ne) {
@@ -2755,9 +2755,9 @@ function Ns(t, e, a) {
2755
2755
  var O = ne[0];
2756
2756
  if (O === "'")
2757
2757
  return t3(ne);
2758
- var k = s0[O];
2759
- if (k)
2760
- return !(a != null && a.useAdditionalWeekYearTokens) && d0(ne) && ds(ne, e, String(t)), !(a != null && a.useAdditionalDayOfYearTokens) && c0(ne) && ds(ne, e, String(t)), k(N, ne, U.localize, W);
2758
+ var S = s0[O];
2759
+ if (S)
2760
+ return !(a != null && a.useAdditionalWeekYearTokens) && d0(ne) && ds(ne, e, String(t)), !(a != null && a.useAdditionalDayOfYearTokens) && c0(ne) && ds(ne, e, String(t)), S(N, ne, U.localize, W);
2761
2761
  if (O.match(e3))
2762
2762
  throw new RangeError("Format string contains an unescaped latin alphabet character `" + O + "`");
2763
2763
  return ne;
@@ -2771,7 +2771,7 @@ function t3(t) {
2771
2771
  function a3(t, e, a) {
2772
2772
  var n, s, o, i, r, l, c, u, f, d;
2773
2773
  ge(2, arguments);
2774
- var h = be(t), w = be(e), b = va(), g = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : b.locale) !== null && n !== void 0 ? n : Rs, S = Qe((o = (i = (r = (l = a == null ? void 0 : a.weekStartsOn) !== null && l !== void 0 ? l : a == null || (c = a.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && r !== void 0 ? r : b.weekStartsOn) !== null && i !== void 0 ? i : (f = b.locale) === null || f === void 0 || (d = f.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && o !== void 0 ? o : 0);
2774
+ var h = be(t), w = be(e), y = va(), g = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : y.locale) !== null && n !== void 0 ? n : Rs, k = Qe((o = (i = (r = (l = a == null ? void 0 : a.weekStartsOn) !== null && l !== void 0 ? l : a == null || (c = a.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && r !== void 0 ? r : y.weekStartsOn) !== null && i !== void 0 ? i : (f = y.locale) === null || f === void 0 || (d = f.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && o !== void 0 ? o : 0);
2775
2775
  if (!g.localize)
2776
2776
  throw new RangeError("locale must contain localize property");
2777
2777
  if (!g.formatLong)
@@ -2785,11 +2785,11 @@ function a3(t, e, a) {
2785
2785
  _ < -6 ? m = "other" : _ < -1 ? m = "lastWeek" : _ < 0 ? m = "yesterday" : _ < 1 ? m = "today" : _ < 2 ? m = "tomorrow" : _ < 7 ? m = "nextWeek" : m = "other";
2786
2786
  var D = gn(h, ra(h)), I = gn(w, ra(w)), L = g.formatRelative(m, D, I, {
2787
2787
  locale: g,
2788
- weekStartsOn: S
2788
+ weekStartsOn: k
2789
2789
  });
2790
2790
  return Ns(h, L, {
2791
2791
  locale: g,
2792
- weekStartsOn: S
2792
+ weekStartsOn: k
2793
2793
  });
2794
2794
  }
2795
2795
  function la(t, e) {
@@ -3488,20 +3488,20 @@ function Ws() {
3488
3488
  }
3489
3489
  let f;
3490
3490
  for (let w = l.getScale(); w > 0; c = f) {
3491
- const b = w - 1, g = l.setScale(b, !0);
3492
- if (f = c.setScale(b, !1), g.compareTo(f) === 0)
3491
+ const y = w - 1, g = l.setScale(y, !0);
3492
+ if (f = c.setScale(y, !1), g.compareTo(f) === 0)
3493
3493
  return s.checkMid(i, r, g);
3494
3494
  if (g.compareTo(f) > 0)
3495
3495
  break;
3496
- w = b, l = g;
3496
+ w = y, l = g;
3497
3497
  }
3498
3498
  let d = s.middleInternal(i, r, l, c), h;
3499
3499
  for (let w = d.getScale(); w > 0; w = h) {
3500
3500
  h = w - 1;
3501
- const b = d.setScale(h);
3502
- if (i.compareTo(b) >= 0 || b.compareTo(r) >= 0)
3501
+ const y = d.setScale(h);
3502
+ if (i.compareTo(y) >= 0 || y.compareTo(r) >= 0)
3503
3503
  break;
3504
- d = b;
3504
+ d = y;
3505
3505
  }
3506
3506
  return d;
3507
3507
  }
@@ -4345,16 +4345,16 @@ const E5 = async (t, e, a) => {
4345
4345
  x: u,
4346
4346
  y: f
4347
4347
  } = vs(c, n, l), d = n, h = {}, w = 0;
4348
- for (let b = 0; b < r.length; b++) {
4348
+ for (let y = 0; y < r.length; y++) {
4349
4349
  const {
4350
4350
  name: g,
4351
- fn: S
4352
- } = r[b], {
4351
+ fn: k
4352
+ } = r[y], {
4353
4353
  x: _,
4354
4354
  y: m,
4355
4355
  data: D,
4356
4356
  reset: I
4357
- } = await S({
4357
+ } = await k({
4358
4358
  x: u,
4359
4359
  y: f,
4360
4360
  initialPlacement: n,
@@ -4382,7 +4382,7 @@ const E5 = async (t, e, a) => {
4382
4382
  }) : I.rects), {
4383
4383
  x: u,
4384
4384
  y: f
4385
- } = vs(c, d, l)), b = -1;
4385
+ } = vs(c, d, l)), y = -1;
4386
4386
  continue;
4387
4387
  }
4388
4388
  }
@@ -4410,7 +4410,7 @@ async function Ks(t, e) {
4410
4410
  elementContext: f = "floating",
4411
4411
  altBoundary: d = !1,
4412
4412
  padding: h = 0
4413
- } = Ln(e, t), w = O5(h), g = r[d ? f === "floating" ? "reference" : "floating" : f], S = Ra(await o.getClippingRect({
4413
+ } = Ln(e, t), w = O5(h), g = r[d ? f === "floating" ? "reference" : "floating" : f], k = Ra(await o.getClippingRect({
4414
4414
  element: (a = await (o.isElement == null ? void 0 : o.isElement(g))) == null || a ? g : g.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(r.floating)),
4415
4415
  boundary: c,
4416
4416
  rootBoundary: u,
@@ -4431,10 +4431,10 @@ async function Ks(t, e) {
4431
4431
  strategy: l
4432
4432
  }) : _);
4433
4433
  return {
4434
- top: (S.top - I.top + w.top) / D.y,
4435
- bottom: (I.bottom - S.bottom + w.bottom) / D.y,
4436
- left: (S.left - I.left + w.left) / D.x,
4437
- right: (I.right - S.right + w.right) / D.x
4434
+ top: (k.top - I.top + w.top) / D.y,
4435
+ bottom: (I.bottom - k.bottom + w.bottom) / D.y,
4436
+ left: (k.left - I.left + w.left) / D.x,
4437
+ right: (I.right - k.right + w.right) / D.x
4438
4438
  };
4439
4439
  }
4440
4440
  const I5 = function(t) {
@@ -4456,16 +4456,16 @@ const I5 = function(t) {
4456
4456
  fallbackPlacements: d,
4457
4457
  fallbackStrategy: h = "bestFit",
4458
4458
  fallbackAxisSideDirection: w = "none",
4459
- flipAlignment: b = !0,
4459
+ flipAlignment: y = !0,
4460
4460
  ...g
4461
4461
  } = Ln(t, e);
4462
4462
  if ((a = o.arrow) != null && a.alignmentOffset)
4463
4463
  return {};
4464
- const S = Ft(s), _ = Ft(r) === r, m = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), D = d || (_ || !b ? [Ba(r)] : S5(r));
4465
- !d && w !== "none" && D.push(...M5(r, b, w, m));
4464
+ const k = Ft(s), _ = Ft(r) === r, m = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), D = d || (_ || !y ? [Ba(r)] : S5(r));
4465
+ !d && w !== "none" && D.push(...M5(r, y, w, m));
4466
4466
  const I = [r, ...D], L = await Ks(e, g), U = [];
4467
4467
  let Z = ((n = o.flip) == null ? void 0 : n.overflows) || [];
4468
- if (u && U.push(L[S]), f) {
4468
+ if (u && U.push(L[k]), f) {
4469
4469
  const N = k5(s, i, m);
4470
4470
  U.push(L[N[0]], L[N[1]]);
4471
4471
  }
@@ -4490,7 +4490,7 @@ const I5 = function(t) {
4490
4490
  switch (h) {
4491
4491
  case "bestFit": {
4492
4492
  var K;
4493
- const ne = (K = Z.map((O) => [O.placement, O.overflows.filter((k) => k > 0).reduce((k, F) => k + F, 0)]).sort((O, k) => O[1] - k[1])[0]) == null ? void 0 : K[0];
4493
+ const ne = (K = Z.map((O) => [O.placement, O.overflows.filter((S) => S > 0).reduce((S, F) => S + F, 0)]).sort((O, S) => O[1] - S[1])[0]) == null ? void 0 : K[0];
4494
4494
  ne && (oe = ne);
4495
4495
  break;
4496
4496
  }
@@ -4526,13 +4526,13 @@ const I5 = function(t) {
4526
4526
  width: d,
4527
4527
  height: h
4528
4528
  } = n.floating;
4529
- let w, b;
4530
- c === "top" || c === "bottom" ? (w = c, b = u === (await (s.isRTL == null ? void 0 : s.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (b = c, w = u === "end" ? "top" : "bottom");
4531
- const g = h - l[w], S = d - l[b], _ = !e.middlewareData.shift;
4532
- let m = g, D = S;
4529
+ let w, y;
4530
+ c === "top" || c === "bottom" ? (w = c, y = u === (await (s.isRTL == null ? void 0 : s.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (y = c, w = u === "end" ? "top" : "bottom");
4531
+ const g = h - l[w], k = d - l[y], _ = !e.middlewareData.shift;
4532
+ let m = g, D = k;
4533
4533
  if (f) {
4534
4534
  const L = d - l.left - l.right;
4535
- D = u || _ ? ua(S, L) : L;
4535
+ D = u || _ ? ua(k, L) : L;
4536
4536
  } else {
4537
4537
  const L = h - l.top - l.bottom;
4538
4538
  m = u || _ ? ua(g, L) : L;
@@ -4693,8 +4693,8 @@ function St(t, e, a, n) {
4693
4693
  const d = ke(o), h = n && et(n) ? ke(n) : n;
4694
4694
  let w = d.frameElement;
4695
4695
  for (; w && n && h !== d; ) {
4696
- const b = Vt(w), g = w.getBoundingClientRect(), S = Ve(w), _ = g.left + (w.clientLeft + parseFloat(S.paddingLeft)) * b.x, m = g.top + (w.clientTop + parseFloat(S.paddingTop)) * b.y;
4697
- l *= b.x, c *= b.y, u *= b.x, f *= b.y, l += _, c += m, w = ke(w).frameElement;
4696
+ const y = Vt(w), g = w.getBoundingClientRect(), k = Ve(w), _ = g.left + (w.clientLeft + parseFloat(k.paddingLeft)) * y.x, m = g.top + (w.clientTop + parseFloat(k.paddingTop)) * y.y;
4697
+ l *= y.x, c *= y.y, u *= y.x, f *= y.y, l += _, c += m, w = ke(w).frameElement;
4698
4698
  }
4699
4699
  }
4700
4700
  return Ra({
@@ -4905,8 +4905,8 @@ function K5(t, e) {
4905
4905
  } = t.getBoundingClientRect();
4906
4906
  if (r || e(), !f || !d)
4907
4907
  return;
4908
- const h = Oa(u), w = Oa(s.clientWidth - (c + f)), b = Oa(s.clientHeight - (u + d)), g = Oa(c), _ = {
4909
- rootMargin: -h + "px " + -w + "px " + -b + "px " + -g + "px",
4908
+ const h = Oa(u), w = Oa(s.clientWidth - (c + f)), y = Oa(s.clientHeight - (u + d)), g = Oa(c), _ = {
4909
+ rootMargin: -h + "px " + -w + "px " + -y + "px " + -g + "px",
4910
4910
  threshold: Ee(0, ua(1, l)) || 1
4911
4911
  };
4912
4912
  let m = !0;
@@ -4943,28 +4943,28 @@ function G5(t, e, a, n) {
4943
4943
  layoutShift: r = typeof IntersectionObserver == "function",
4944
4944
  animationFrame: l = !1
4945
4945
  } = n, c = Vn(t), u = s || o ? [...c ? ca(c) : [], ...ca(e)] : [];
4946
- u.forEach((S) => {
4947
- s && S.addEventListener("scroll", a, {
4946
+ u.forEach((k) => {
4947
+ s && k.addEventListener("scroll", a, {
4948
4948
  passive: !0
4949
- }), o && S.addEventListener("resize", a);
4949
+ }), o && k.addEventListener("resize", a);
4950
4950
  });
4951
4951
  const f = c && r ? K5(c, a) : null;
4952
4952
  let d = -1, h = null;
4953
- i && (h = new ResizeObserver((S) => {
4954
- let [_] = S;
4953
+ i && (h = new ResizeObserver((k) => {
4954
+ let [_] = k;
4955
4955
  _ && _.target === c && h && (h.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
4956
4956
  h && h.observe(e);
4957
4957
  })), a();
4958
4958
  }), c && !l && h.observe(c), h.observe(e));
4959
- let w, b = l ? St(t) : null;
4959
+ let w, y = l ? St(t) : null;
4960
4960
  l && g();
4961
4961
  function g() {
4962
- const S = St(t);
4963
- b && (S.x !== b.x || S.y !== b.y || S.width !== b.width || S.height !== b.height) && a(), b = S, w = requestAnimationFrame(g);
4962
+ const k = St(t);
4963
+ y && (k.x !== y.x || k.y !== y.y || k.width !== y.width || k.height !== y.height) && a(), y = k, w = requestAnimationFrame(g);
4964
4964
  }
4965
4965
  return a(), () => {
4966
- u.forEach((S) => {
4967
- s && S.removeEventListener("scroll", a), o && S.removeEventListener("resize", a);
4966
+ u.forEach((k) => {
4967
+ s && k.removeEventListener("scroll", a), o && k.removeEventListener("resize", a);
4968
4968
  }), f && f(), h && h.disconnect(), h = null, l && cancelAnimationFrame(w);
4969
4969
  };
4970
4970
  }
@@ -5083,8 +5083,8 @@ function t7(t, e, a) {
5083
5083
  }, f = (d) => {
5084
5084
  if (n && n.value) {
5085
5085
  let w = (d.clipboardData || /* istanbul ignore next */
5086
- window.clipboardData).getData("Text"), b = n.value;
5087
- typeof b == "string" && (b = new RegExp(b)), w.split("").every((g) => !!g.match(b)) || d.preventDefault();
5086
+ window.clipboardData).getData("Text"), y = n.value;
5087
+ typeof y == "string" && (y = new RegExp(y)), w.split("").every((g) => !!g.match(y)) || d.preventDefault();
5088
5088
  }
5089
5089
  e.emit("paste", d, s);
5090
5090
  };
@@ -5136,9 +5136,9 @@ function i7(t, e, a) {
5136
5136
  appendNewOption: d,
5137
5137
  multipleLabel: h,
5138
5138
  object: w,
5139
- loading: b,
5139
+ loading: y,
5140
5140
  delay: g,
5141
- resolveOnLoad: S,
5141
+ resolveOnLoad: k,
5142
5142
  minChars: _,
5143
5143
  filterResults: m,
5144
5144
  clearOnSearch: D,
@@ -5154,11 +5154,11 @@ function i7(t, e, a) {
5154
5154
  groups: oe,
5155
5155
  reverse: ne,
5156
5156
  infinite: O,
5157
- groupOptions: k,
5157
+ groupOptions: S,
5158
5158
  groupHideEmpty: F,
5159
5159
  groupSelect: V,
5160
5160
  onCreate: se,
5161
- disabledProp: y,
5161
+ disabledProp: b,
5162
5162
  searchStart: R,
5163
5163
  searchFilter: le
5164
5164
  } = Ae(t), ie = Mt().proxy, q = a.iv, H = a.ev, G = a.search, ve = a.clearSearch, we = a.update, Kt = a.pointer, Gt = a.setPointer, nt = a.clearPointer, _a = a.focus, nn = a.deactivate, st = a.close, ya = a.localize, it = ee([]), Ne = ee([]), Me = ee(!1), Be = ee(null), qe = ee(O.value && i.value === -1 ? 10 : i.value), Xt = A(() => l.value || c.value || !1), ba = A(() => f.value !== void 0 ? f.value : d.value !== void 0 ? d.value : !0), Te = A(() => {
@@ -5166,8 +5166,8 @@ function i7(t, e, a) {
5166
5166
  let $ = _t.value || /* istanbul ignore next */
5167
5167
  [], B = [];
5168
5168
  return $.forEach((re) => {
5169
- dn(re[k.value]).forEach((me) => {
5170
- B.push(Object.assign({}, me, re[y.value] ? { [y.value]: !0 } : {}));
5169
+ dn(re[S.value]).forEach((me) => {
5170
+ B.push(Object.assign({}, me, re[b.value] ? { [b.value]: !0 } : {}));
5171
5171
  });
5172
5172
  }), B;
5173
5173
  } else {
@@ -5188,14 +5188,14 @@ function i7(t, e, a) {
5188
5188
  [];
5189
5189
  return it.value.length && $.push({
5190
5190
  [Z.value]: " ",
5191
- [k.value]: [...it.value],
5191
+ [S.value]: [...it.value],
5192
5192
  __CREATE__: !0
5193
5193
  }), $.concat(B);
5194
5194
  }), wa = A(() => {
5195
5195
  let $ = [..._t.value].map((B) => ({ ...B }));
5196
- return Ot.value.length && ($[0] && $[0].__CREATE__ ? $[0][k.value] = [...Ot.value, ...$[0][k.value]] : $ = [{
5196
+ return Ot.value.length && ($[0] && $[0].__CREATE__ ? $[0][S.value] = [...Ot.value, ...$[0][S.value]] : $ = [{
5197
5197
  [Z.value]: " ",
5198
- [k.value]: [...Ot.value],
5198
+ [S.value]: [...Ot.value],
5199
5199
  __CREATE__: !0
5200
5200
  }].concat($)), $;
5201
5201
  }), sn = A(() => {
@@ -5204,13 +5204,13 @@ function i7(t, e, a) {
5204
5204
  let $ = wa.value;
5205
5205
  return Ai(($ || /* istanbul ignore next */
5206
5206
  []).map((B, re) => {
5207
- const me = dn(B[k.value]);
5207
+ const me = dn(B[S.value]);
5208
5208
  return {
5209
5209
  ...B,
5210
5210
  index: re,
5211
5211
  group: !0,
5212
- [k.value]: cn(me, !1).map((bt) => Object.assign({}, bt, B[y.value] ? { [y.value]: !0 } : {})),
5213
- __VISIBLE__: cn(me).map((bt) => Object.assign({}, bt, B[y.value] ? { [y.value]: !0 } : {}))
5212
+ [S.value]: cn(me, !1).map((bt) => Object.assign({}, bt, B[b.value] ? { [b.value]: !0 } : {})),
5213
+ __VISIBLE__: cn(me).map((bt) => Object.assign({}, bt, B[b.value] ? { [b.value]: !0 } : {}))
5214
5214
  };
5215
5215
  }));
5216
5216
  }), on = A(() => {
@@ -5234,7 +5234,7 @@ function i7(t, e, a) {
5234
5234
  case "tags":
5235
5235
  return [];
5236
5236
  }
5237
- }), mi = A(() => b.value || Me.value), Et = ($) => {
5237
+ }), mi = A(() => y.value || Me.value), Et = ($) => {
5238
5238
  switch (typeof $ != "object" && ($ = xe($)), s.value) {
5239
5239
  case "single":
5240
5240
  we($);
@@ -5268,7 +5268,7 @@ function i7(t, e, a) {
5268
5268
  we(hi.value), e.emit("clear", ie);
5269
5269
  }, ze = ($) => {
5270
5270
  if ($.group !== void 0)
5271
- return s.value === "single" ? !1 : wi($[k.value]) && $[k.value].length;
5271
+ return s.value === "single" ? !1 : wi($[S.value]) && $[S.value].length;
5272
5272
  switch (s.value) {
5273
5273
  case "single":
5274
5274
  return !je(q.value) && q.value[L.value] == $[L.value];
@@ -5276,7 +5276,7 @@ function i7(t, e, a) {
5276
5276
  case "multiple":
5277
5277
  return !je(q.value) && q.value.map((B) => B[L.value]).indexOf($[L.value]) !== -1;
5278
5278
  }
5279
- }, rn = ($) => $[y.value] === !0, ln = () => E === void 0 || E.value === -1 || !on.value && E.value > 0 ? !1 : q.value.length >= E.value, gi = ($) => {
5279
+ }, rn = ($) => $[b.value] === !0, ln = () => E === void 0 || E.value === -1 || !on.value && E.value > 0 ? !1 : q.value.length >= E.value, gi = ($) => {
5280
5280
  if (!rn($)) {
5281
5281
  if (se && se.value && !ze($) && $.__CREATE__ && ($ = { ...$ }, delete $.__CREATE__, $ = se.value($, ie), $ instanceof Promise)) {
5282
5282
  Me.value = !0, $.then((B) => {
@@ -5324,9 +5324,9 @@ function i7(t, e, a) {
5324
5324
  switch (s.value) {
5325
5325
  case "multiple":
5326
5326
  case "tags":
5327
- bi($[k.value]) ? It($[k.value]) : Et(
5328
- $[k.value].filter((B) => q.value.map((re) => re[L.value]).indexOf(B[L.value]) === -1).filter((B) => !B[y.value]).filter((B, re) => q.value.length + 1 + re <= E.value || E.value === -1)
5329
- ), r.value && Kt.value && Gt(sn.value.filter((B) => !B[y.value])[Kt.value.index]);
5327
+ bi($[S.value]) ? It($[S.value]) : Et(
5328
+ $[S.value].filter((B) => q.value.map((re) => re[L.value]).indexOf(B[L.value]) === -1).filter((B) => !B[b.value]).filter((B, re) => q.value.length + 1 + re <= E.value || E.value === -1)
5329
+ ), r.value && Kt.value && Gt(sn.value.filter((B) => !B[b.value])[Kt.value.index]);
5330
5330
  break;
5331
5331
  }
5332
5332
  N.value && nn();
@@ -5335,10 +5335,10 @@ function i7(t, e, a) {
5335
5335
  xe($[L.value]) === void 0 && Xt.value && (e.emit("tag", $[L.value], ie), e.emit("option", $[L.value], ie), e.emit("create", $[L.value], ie), ba.value && Si($), ve());
5336
5336
  }, yi = () => {
5337
5337
  s.value !== "single" && Et(ot.value.filter(($) => !$.disabled && !ze($)));
5338
- }, bi = ($) => $.find((B) => !ze(B) && !B[y.value]) === void 0, wi = ($) => $.find((B) => !ze(B)) === void 0, xe = ($) => Te.value[Te.value.map((B) => String(B[L.value])).indexOf(String($))], $i = ($) => Te.value.findIndex((B) => yt.value.some((re) => (parseInt(B[re]) == B[re] ? parseInt(B[re]) : B[re]) === (parseInt($) == $ ? parseInt($) : $))), ki = ($) => ["tags", "multiple"].indexOf(s.value) !== -1 && r.value && ze($), Si = ($) => {
5338
+ }, bi = ($) => $.find((B) => !ze(B) && !B[b.value]) === void 0, wi = ($) => $.find((B) => !ze(B)) === void 0, xe = ($) => Te.value[Te.value.map((B) => String(B[L.value])).indexOf(String($))], $i = ($) => Te.value.findIndex((B) => yt.value.some((re) => (parseInt(B[re]) == B[re] ? parseInt(B[re]) : B[re]) === (parseInt($) == $ ? parseInt($) : $))), ki = ($) => ["tags", "multiple"].indexOf(s.value) !== -1 && r.value && ze($), Si = ($) => {
5339
5339
  it.value.push($);
5340
5340
  }, Ai = ($) => F.value ? $.filter(
5341
- (B) => G.value ? B.__VISIBLE__.length : B[k.value].length
5341
+ (B) => G.value ? B.__VISIBLE__.length : B[S.value].length
5342
5342
  ) : $.filter((B) => G.value ? B.__VISIBLE__.length : !0), cn = ($, B = !0) => {
5343
5343
  let re = $;
5344
5344
  if (G.value && m.value) {
@@ -5395,7 +5395,7 @@ function i7(t, e, a) {
5395
5395
  Be.value = de(G, ($) => {
5396
5396
  $.length < _.value || !$ && _.value !== 0 || (Me.value = !0, D.value && (Ne.value = []), setTimeout(() => {
5397
5397
  $ == G.value && n.value(G.value, ie).then((B) => {
5398
- ($ == G.value || !G.value) && (Ne.value = B, Kt.value = ot.value.filter((re) => re[y.value] !== !0)[0] || null, Me.value = !1);
5398
+ ($ == G.value || !G.value) && (Ne.value = B, Kt.value = ot.value.filter((re) => re[b.value] !== !0)[0] || null, Me.value = !1);
5399
5399
  }).catch(
5400
5400
  /* istanbul ignore next */
5401
5401
  (B) => {
@@ -5407,7 +5407,7 @@ function i7(t, e, a) {
5407
5407
  };
5408
5408
  if (s.value !== "single" && !je(H.value) && !Array.isArray(H.value))
5409
5409
  throw new Error(`v-model must be an array when using "${s.value}" mode`);
5410
- return n && typeof n.value == "function" ? S.value ? ka($a) : w.value == !0 && $a() : (Ne.value = n.value, $a()), g.value > -1 && ss(), de(g, ($, B) => {
5410
+ return n && typeof n.value == "function" ? k.value ? ka($a) : w.value == !0 && $a() : (Ne.value = n.value, $a()), g.value > -1 && ss(), de(g, ($, B) => {
5411
5411
  Be.value && Be.value(), $ >= 0 && ss();
5412
5412
  }), de(H, ($) => {
5413
5413
  if (je($)) {
@@ -5424,7 +5424,7 @@ function i7(t, e, a) {
5424
5424
  break;
5425
5425
  }
5426
5426
  }, { deep: !0 }), de(n, ($, B) => {
5427
- typeof t.options == "function" ? S.value && (!B || $ && $.toString() !== B.toString()) && ka() : (Ne.value = t.options, Object.keys(q.value).length || $a(), pn());
5427
+ typeof t.options == "function" ? k.value && (!B || $ && $.toString() !== B.toString()) && ka() : (Ne.value = t.options, Object.keys(q.value).length || $a(), pn());
5428
5428
  }), de(u, pn), de(i, ($, B) => {
5429
5429
  qe.value = O.value && $ === -1 ? 10 : $;
5430
5430
  }), {
@@ -5472,50 +5472,50 @@ function o7(t, e, a) {
5472
5472
  groupSelect: c,
5473
5473
  disabledProp: u,
5474
5474
  groupOptions: f
5475
- } = Ae(t), d = a.fo, h = a.fg, w = a.handleOptionClick, b = a.handleGroupClick, g = a.search, S = a.pointer, _ = a.setPointer, m = a.clearPointer, D = a.multiselect, I = a.isOpen, L = A(() => d.value.filter((H) => !H[u.value])), U = A(() => h.value.filter((H) => !H[u.value])), Z = A(() => l.value !== "single" && c.value), Y = A(() => S.value && S.value.group), E = A(() => ie(S.value)), K = A(() => {
5476
- const H = Y.value ? S.value : (
5475
+ } = Ae(t), d = a.fo, h = a.fg, w = a.handleOptionClick, y = a.handleGroupClick, g = a.search, k = a.pointer, _ = a.setPointer, m = a.clearPointer, D = a.multiselect, I = a.isOpen, L = A(() => d.value.filter((H) => !H[u.value])), U = A(() => h.value.filter((H) => !H[u.value])), Z = A(() => l.value !== "single" && c.value), Y = A(() => k.value && k.value.group), E = A(() => ie(k.value)), K = A(() => {
5476
+ const H = Y.value ? k.value : (
5477
5477
  /* istanbul ignore next */
5478
- ie(S.value)
5478
+ ie(k.value)
5479
5479
  ), G = U.value.map((we) => we[i.value]).indexOf(H[i.value]);
5480
5480
  let ve = U.value[G - 1];
5481
5481
  return ve === void 0 && (ve = W.value), ve;
5482
5482
  }), N = A(() => {
5483
- let H = U.value.map((G) => G.label).indexOf(Y.value ? S.value[i.value] : ie(S.value)[i.value]) + 1;
5483
+ let H = U.value.map((G) => G.label).indexOf(Y.value ? k.value[i.value] : ie(k.value)[i.value]) + 1;
5484
5484
  return U.value.length <= H && (H = 0), U.value[H];
5485
- }), W = A(() => [...U.value].slice(-1)[0]), oe = A(() => S.value.__VISIBLE__.filter((H) => !H[u.value])[0]), ne = A(() => {
5485
+ }), W = A(() => [...U.value].slice(-1)[0]), oe = A(() => k.value.__VISIBLE__.filter((H) => !H[u.value])[0]), ne = A(() => {
5486
5486
  const H = E.value.__VISIBLE__.filter((G) => !G[u.value]);
5487
- return H[H.map((G) => G[n.value]).indexOf(S.value[n.value]) - 1];
5487
+ return H[H.map((G) => G[n.value]).indexOf(k.value[n.value]) - 1];
5488
5488
  }), O = A(() => {
5489
- const H = ie(S.value).__VISIBLE__.filter((G) => !G[u.value]);
5490
- return H[H.map((G) => G[n.value]).indexOf(S.value[n.value]) + 1];
5491
- }), k = A(() => [...K.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), F = A(() => [...W.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), V = (H) => S.value && (!H.group && S.value[n.value] === H[n.value] || H.group !== void 0 && S.value[i.value] === H[i.value]) ? !0 : void 0, se = () => {
5489
+ const H = ie(k.value).__VISIBLE__.filter((G) => !G[u.value]);
5490
+ return H[H.map((G) => G[n.value]).indexOf(k.value[n.value]) + 1];
5491
+ }), S = A(() => [...K.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), F = A(() => [...W.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), V = (H) => k.value && (!H.group && k.value[n.value] === H[n.value] || H.group !== void 0 && k.value[i.value] === H[i.value]) ? !0 : void 0, se = () => {
5492
5492
  _(L.value[0] || null);
5493
- }, y = () => {
5494
- !S.value || S.value[u.value] === !0 || (Y.value ? b(S.value) : w(S.value));
5493
+ }, b = () => {
5494
+ !k.value || k.value[u.value] === !0 || (Y.value ? y(k.value) : w(k.value));
5495
5495
  }, R = () => {
5496
- if (S.value === null)
5496
+ if (k.value === null)
5497
5497
  _((r.value && Z.value ? U.value[0].__CREATE__ ? L.value[0] : U.value[0] : L.value[0]) || null);
5498
5498
  else if (r.value && Z.value) {
5499
5499
  let H = Y.value ? oe.value : O.value;
5500
5500
  H === void 0 && (H = N.value, H.__CREATE__ && (H = H[f.value][0])), _(H || /* istanbul ignore next */
5501
5501
  null);
5502
5502
  } else {
5503
- let H = L.value.map((G) => G[n.value]).indexOf(S.value[n.value]) + 1;
5503
+ let H = L.value.map((G) => G[n.value]).indexOf(k.value[n.value]) + 1;
5504
5504
  L.value.length <= H && (H = 0), _(L.value[H] || null);
5505
5505
  }
5506
5506
  De(() => {
5507
5507
  q();
5508
5508
  });
5509
5509
  }, le = () => {
5510
- if (S.value === null) {
5510
+ if (k.value === null) {
5511
5511
  let H = L.value[L.value.length - 1];
5512
5512
  r.value && Z.value && (H = F.value, H === void 0 && (H = W.value)), _(H || null);
5513
5513
  } else if (r.value && Z.value) {
5514
- let H = Y.value ? k.value : ne.value;
5515
- H === void 0 && (H = Y.value ? K.value : E.value, H.__CREATE__ && (H = k.value, H === void 0 && (H = K.value))), _(H || /* istanbul ignore next */
5514
+ let H = Y.value ? S.value : ne.value;
5515
+ H === void 0 && (H = Y.value ? K.value : E.value, H.__CREATE__ && (H = S.value, H === void 0 && (H = K.value))), _(H || /* istanbul ignore next */
5516
5516
  null);
5517
5517
  } else {
5518
- let H = L.value.map((G) => G[n.value]).indexOf(S.value[n.value]) - 1;
5518
+ let H = L.value.map((G) => G[n.value]).indexOf(k.value[n.value]) - 1;
5519
5519
  H < 0 && (H = L.value.length - 1), _(L.value[H] || null);
5520
5520
  }
5521
5521
  De(() => {
@@ -5541,11 +5541,11 @@ function o7(t, e, a) {
5541
5541
  });
5542
5542
  }
5543
5543
  }), {
5544
- pointer: S,
5544
+ pointer: k,
5545
5545
  canPointGroups: Z,
5546
5546
  isPointed: V,
5547
5547
  setPointerFirst: se,
5548
- selectPointer: y,
5548
+ selectPointer: b,
5549
5549
  forwardPointer: R,
5550
5550
  backwardPointer: le
5551
5551
  };
@@ -5909,16 +5909,16 @@ function B7(t, e) {
5909
5909
  }
5910
5910
  function Un(t, e) {
5911
5911
  e === void 0 && (e = {});
5912
- var a = e, n = a.placement, s = n === void 0 ? t.placement : n, o = a.strategy, i = o === void 0 ? t.strategy : o, r = a.boundary, l = r === void 0 ? f7 : r, c = a.rootBoundary, u = c === void 0 ? oi : c, f = a.elementContext, d = f === void 0 ? sa : f, h = a.altBoundary, w = h === void 0 ? !1 : h, b = a.padding, g = b === void 0 ? 0 : b, S = V7(typeof g != "number" ? g : B7(g, an)), _ = d === sa ? v7 : sa, m = t.rects.popper, D = t.elements[w ? _ : d], I = P7(At(D) ? D : D.contextElement || gt(t.elements.popper), l, u, i), L = Wt(t.elements.reference), U = li({
5912
+ var a = e, n = a.placement, s = n === void 0 ? t.placement : n, o = a.strategy, i = o === void 0 ? t.strategy : o, r = a.boundary, l = r === void 0 ? f7 : r, c = a.rootBoundary, u = c === void 0 ? oi : c, f = a.elementContext, d = f === void 0 ? sa : f, h = a.altBoundary, w = h === void 0 ? !1 : h, y = a.padding, g = y === void 0 ? 0 : y, k = V7(typeof g != "number" ? g : B7(g, an)), _ = d === sa ? v7 : sa, m = t.rects.popper, D = t.elements[w ? _ : d], I = P7(At(D) ? D : D.contextElement || gt(t.elements.popper), l, u, i), L = Wt(t.elements.reference), U = li({
5913
5913
  reference: L,
5914
5914
  element: m,
5915
5915
  strategy: "absolute",
5916
5916
  placement: s
5917
5917
  }), Z = bn(Object.assign({}, m, U)), Y = d === sa ? Z : L, E = {
5918
- top: I.top - Y.top + S.top,
5919
- bottom: Y.bottom - I.bottom + S.bottom,
5920
- left: I.left - Y.left + S.left,
5921
- right: Y.right - I.right + S.right
5918
+ top: I.top - Y.top + k.top,
5919
+ bottom: Y.bottom - I.bottom + k.bottom,
5920
+ left: I.left - Y.left + k.left,
5921
+ right: Y.right - I.right + k.right
5922
5922
  }, K = t.modifiersData.offset;
5923
5923
  if (d === sa && K) {
5924
5924
  var N = K[s];
@@ -5959,9 +5959,9 @@ function R7(t) {
5959
5959
  styles: {}
5960
5960
  }, f = [], d = !1, h = {
5961
5961
  state: u,
5962
- setOptions: function(S) {
5963
- var _ = typeof S == "function" ? S(u.options) : S;
5964
- b(), u.options = Object.assign({}, o, u.options, _), u.scrollParents = {
5962
+ setOptions: function(k) {
5963
+ var _ = typeof k == "function" ? k(u.options) : k;
5964
+ y(), u.options = Object.assign({}, o, u.options, _), u.scrollParents = {
5965
5965
  reference: At(r) ? ia(r) : r.contextElement ? ia(r.contextElement) : [],
5966
5966
  popper: ia(l)
5967
5967
  };
@@ -5977,7 +5977,7 @@ function R7(t) {
5977
5977
  // prefer the async Popper#update method
5978
5978
  forceUpdate: function() {
5979
5979
  if (!d) {
5980
- var S = u.elements, _ = S.reference, m = S.popper;
5980
+ var k = u.elements, _ = k.reference, m = k.popper;
5981
5981
  if (ws(_, m)) {
5982
5982
  u.rects = {
5983
5983
  reference: c7(_, tn(m), u.options.strategy === "fixed"),
@@ -6009,7 +6009,7 @@ function R7(t) {
6009
6009
  });
6010
6010
  }),
6011
6011
  destroy: function() {
6012
- b(), d = !0;
6012
+ y(), d = !0;
6013
6013
  }
6014
6014
  };
6015
6015
  if (!ws(r, l))
@@ -6019,11 +6019,11 @@ function R7(t) {
6019
6019
  });
6020
6020
  function w() {
6021
6021
  u.orderedModifiers.forEach(function(g) {
6022
- var S = g.name, _ = g.options, m = _ === void 0 ? {} : _, D = g.effect;
6022
+ var k = g.name, _ = g.options, m = _ === void 0 ? {} : _, D = g.effect;
6023
6023
  if (typeof D == "function") {
6024
6024
  var I = D({
6025
6025
  state: u,
6026
- name: S,
6026
+ name: k,
6027
6027
  instance: h,
6028
6028
  options: m
6029
6029
  }), L = function() {
@@ -6032,7 +6032,7 @@ function R7(t) {
6032
6032
  }
6033
6033
  });
6034
6034
  }
6035
- function b() {
6035
+ function y() {
6036
6036
  f.forEach(function(g) {
6037
6037
  return g();
6038
6038
  }), f = [];
@@ -6091,15 +6091,15 @@ function W7(t, e) {
6091
6091
  };
6092
6092
  }
6093
6093
  function $s(t) {
6094
- var e, a = t.popper, n = t.popperRect, s = t.placement, o = t.variation, i = t.offsets, r = t.position, l = t.gpuAcceleration, c = t.adaptive, u = t.roundOffsets, f = t.isFixed, d = i.x, h = d === void 0 ? 0 : d, w = i.y, b = w === void 0 ? 0 : w, g = typeof u == "function" ? u({
6094
+ var e, a = t.popper, n = t.popperRect, s = t.placement, o = t.variation, i = t.offsets, r = t.position, l = t.gpuAcceleration, c = t.adaptive, u = t.roundOffsets, f = t.isFixed, d = i.x, h = d === void 0 ? 0 : d, w = i.y, y = w === void 0 ? 0 : w, g = typeof u == "function" ? u({
6095
6095
  x: h,
6096
- y: b
6096
+ y
6097
6097
  }) : {
6098
6098
  x: h,
6099
- y: b
6099
+ y
6100
6100
  };
6101
- h = g.x, b = g.y;
6102
- var S = i.hasOwnProperty("x"), _ = i.hasOwnProperty("y"), m = Ge, D = Re, I = window;
6101
+ h = g.x, y = g.y;
6102
+ var k = i.hasOwnProperty("x"), _ = i.hasOwnProperty("y"), m = Ge, D = Re, I = window;
6103
6103
  if (c) {
6104
6104
  var L = tn(a), U = "clientHeight", Z = "clientWidth";
6105
6105
  if (L === Se(a) && (L = gt(a), tt(L).position !== "static" && r === "absolute" && (U = "scrollHeight", Z = "scrollWidth")), L = L, s === Re || (s === Ge || s === vt) && o === da) {
@@ -6108,7 +6108,7 @@ function $s(t) {
6108
6108
  // $FlowFixMe[prop-missing]
6109
6109
  L[U]
6110
6110
  );
6111
- b -= Y - n.height, b *= l ? 1 : -1;
6111
+ y -= Y - n.height, y *= l ? 1 : -1;
6112
6112
  }
6113
6113
  if (s === Ge || (s === Re || s === We) && o === da) {
6114
6114
  m = vt;
@@ -6123,16 +6123,16 @@ function $s(t) {
6123
6123
  position: r
6124
6124
  }, c && Z7), N = u === !0 ? W7({
6125
6125
  x: h,
6126
- y: b
6126
+ y
6127
6127
  }, Se(a)) : {
6128
6128
  x: h,
6129
- y: b
6129
+ y
6130
6130
  };
6131
- if (h = N.x, b = N.y, l) {
6131
+ if (h = N.x, y = N.y, l) {
6132
6132
  var W;
6133
- return Object.assign({}, K, (W = {}, W[D] = _ ? "0" : "", W[m] = S ? "0" : "", W.transform = (I.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + b + "px)" : "translate3d(" + h + "px, " + b + "px, 0)", W));
6133
+ return Object.assign({}, K, (W = {}, W[D] = _ ? "0" : "", W[m] = k ? "0" : "", W.transform = (I.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + y + "px)" : "translate3d(" + h + "px, " + y + "px, 0)", W));
6134
6134
  }
6135
- return Object.assign({}, K, (e = {}, e[D] = _ ? b + "px" : "", e[m] = S ? h + "px" : "", e.transform = "", e));
6135
+ return Object.assign({}, K, (e = {}, e[D] = _ ? y + "px" : "", e[m] = k ? h + "px" : "", e.transform = "", e));
6136
6136
  }
6137
6137
  function q7(t) {
6138
6138
  var e = t.state, a = t.options, n = a.gpuAcceleration, s = n === void 0 ? !0 : n, o = a.adaptive, i = o === void 0 ? !0 : o, r = a.roundOffsets, l = r === void 0 ? !0 : r, c = {
@@ -6219,14 +6219,14 @@ function J7(t, e, a) {
6219
6219
  return n > a ? a : n;
6220
6220
  }
6221
6221
  function ep(t) {
6222
- var e = t.state, a = t.options, n = t.name, s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !1 : i, l = a.boundary, c = a.rootBoundary, u = a.altBoundary, f = a.padding, d = a.tether, h = d === void 0 ? !0 : d, w = a.tetherOffset, b = w === void 0 ? 0 : w, g = Un(e, {
6222
+ var e = t.state, a = t.options, n = t.name, s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !1 : i, l = a.boundary, c = a.rootBoundary, u = a.altBoundary, f = a.padding, d = a.tether, h = d === void 0 ? !0 : d, w = a.tetherOffset, y = w === void 0 ? 0 : w, g = Un(e, {
6223
6223
  boundary: l,
6224
6224
  rootBoundary: c,
6225
6225
  padding: f,
6226
6226
  altBoundary: u
6227
- }), S = ct(e.placement), _ = zt(e.placement), m = !_, D = ri(S), I = Q7(D), L = e.modifiersData.popperOffsets, U = e.rects.reference, Z = e.rects.popper, Y = typeof b == "function" ? b(Object.assign({}, e.rects, {
6227
+ }), k = ct(e.placement), _ = zt(e.placement), m = !_, D = ri(k), I = Q7(D), L = e.modifiersData.popperOffsets, U = e.rects.reference, Z = e.rects.popper, Y = typeof y == "function" ? y(Object.assign({}, e.rects, {
6228
6228
  placement: e.placement
6229
- })) : b, E = typeof Y == "number" ? {
6229
+ })) : y, E = typeof Y == "number" ? {
6230
6230
  mainAxis: Y,
6231
6231
  altAxis: Y
6232
6232
  } : Object.assign({
@@ -6238,14 +6238,14 @@ function ep(t) {
6238
6238
  };
6239
6239
  if (L) {
6240
6240
  if (o) {
6241
- var W, oe = D === "y" ? Re : Ge, ne = D === "y" ? We : vt, O = D === "y" ? "height" : "width", k = L[D], F = k + g[oe], V = k - g[ne], se = h ? -Z[O] / 2 : 0, y = _ === qt ? U[O] : Z[O], R = _ === qt ? -Z[O] : -U[O], le = e.elements.arrow, ie = h && le ? si(le) : {
6241
+ var W, oe = D === "y" ? Re : Ge, ne = D === "y" ? We : vt, O = D === "y" ? "height" : "width", S = L[D], F = S + g[oe], V = S - g[ne], se = h ? -Z[O] / 2 : 0, b = _ === qt ? U[O] : Z[O], R = _ === qt ? -Z[O] : -U[O], le = e.elements.arrow, ie = h && le ? si(le) : {
6242
6242
  width: 0,
6243
6243
  height: 0
6244
- }, q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ui(), H = q[oe], G = q[ne], ve = Ia(0, U[O], ie[O]), we = m ? U[O] / 2 - se - ve - H - E.mainAxis : y - ve - H - E.mainAxis, Kt = m ? -U[O] / 2 + se + ve + G + E.mainAxis : R + ve + G + E.mainAxis, Gt = e.elements.arrow && tn(e.elements.arrow), nt = Gt ? D === "y" ? Gt.clientTop || 0 : Gt.clientLeft || 0 : 0, _a = (W = K == null ? void 0 : K[D]) != null ? W : 0, nn = k + we - _a - nt, st = k + Kt - _a, ya = Ia(h ? Na(F, nn) : F, k, h ? kt(V, st) : V);
6245
- L[D] = ya, N[D] = ya - k;
6244
+ }, q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ui(), H = q[oe], G = q[ne], ve = Ia(0, U[O], ie[O]), we = m ? U[O] / 2 - se - ve - H - E.mainAxis : b - ve - H - E.mainAxis, Kt = m ? -U[O] / 2 + se + ve + G + E.mainAxis : R + ve + G + E.mainAxis, Gt = e.elements.arrow && tn(e.elements.arrow), nt = Gt ? D === "y" ? Gt.clientTop || 0 : Gt.clientLeft || 0 : 0, _a = (W = K == null ? void 0 : K[D]) != null ? W : 0, nn = S + we - _a - nt, st = S + Kt - _a, ya = Ia(h ? Na(F, nn) : F, S, h ? kt(V, st) : V);
6245
+ L[D] = ya, N[D] = ya - S;
6246
6246
  }
6247
6247
  if (r) {
6248
- var it, Ne = D === "x" ? Re : Ge, Me = D === "x" ? We : vt, Be = L[I], qe = I === "y" ? "height" : "width", Xt = Be + g[Ne], ba = Be - g[Me], Te = [Re, Ge].indexOf(S) !== -1, Qt = (it = K == null ? void 0 : K[I]) != null ? it : 0, ot = Te ? Xt : Be - U[qe] - Z[qe] - Qt + E.altAxis, _t = Te ? Be + U[qe] + Z[qe] - Qt - E.altAxis : ba, wa = h && Te ? J7(ot, Be, _t) : Ia(h ? ot : Xt, Be, h ? _t : ba);
6248
+ var it, Ne = D === "x" ? Re : Ge, Me = D === "x" ? We : vt, Be = L[I], qe = I === "y" ? "height" : "width", Xt = Be + g[Ne], ba = Be - g[Me], Te = [Re, Ge].indexOf(k) !== -1, Qt = (it = K == null ? void 0 : K[I]) != null ? it : 0, ot = Te ? Xt : Be - U[qe] - Z[qe] - Qt + E.altAxis, _t = Te ? Be + U[qe] + Z[qe] - Qt - E.altAxis : ba, wa = h && Te ? J7(ot, Be, _t) : Ia(h ? ot : Xt, Be, h ? _t : ba);
6249
6249
  L[I] = wa, N[I] = wa - Be;
6250
6250
  }
6251
6251
  e.modifiersData[n] = N;
@@ -6285,16 +6285,16 @@ function sp(t, e) {
6285
6285
  return c.indexOf(w) >= 0;
6286
6286
  });
6287
6287
  d.length === 0 && (d = f);
6288
- var h = d.reduce(function(w, b) {
6289
- return w[b] = Un(t, {
6290
- placement: b,
6288
+ var h = d.reduce(function(w, y) {
6289
+ return w[y] = Un(t, {
6290
+ placement: y,
6291
6291
  boundary: s,
6292
6292
  rootBoundary: o,
6293
6293
  padding: i
6294
- })[ct(b)], w;
6294
+ })[ct(y)], w;
6295
6295
  }, {});
6296
- return Object.keys(h).sort(function(w, b) {
6297
- return h[w] - h[b];
6296
+ return Object.keys(h).sort(function(w, y) {
6297
+ return h[w] - h[y];
6298
6298
  });
6299
6299
  }
6300
6300
  function ip(t) {
@@ -6306,14 +6306,14 @@ function ip(t) {
6306
6306
  function op(t) {
6307
6307
  var e = t.state, a = t.options, n = t.name;
6308
6308
  if (!e.modifiersData[n]._skip) {
6309
- for (var s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !0 : i, l = a.fallbackPlacements, c = a.padding, u = a.boundary, f = a.rootBoundary, d = a.altBoundary, h = a.flipVariations, w = h === void 0 ? !0 : h, b = a.allowedAutoPlacements, g = e.options.placement, S = ct(g), _ = S === g, m = l || (_ || !w ? [La(g)] : ip(g)), D = [g].concat(m).reduce(function(ie, q) {
6309
+ for (var s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !0 : i, l = a.fallbackPlacements, c = a.padding, u = a.boundary, f = a.rootBoundary, d = a.altBoundary, h = a.flipVariations, w = h === void 0 ? !0 : h, y = a.allowedAutoPlacements, g = e.options.placement, k = ct(g), _ = k === g, m = l || (_ || !w ? [La(g)] : ip(g)), D = [g].concat(m).reduce(function(ie, q) {
6310
6310
  return ie.concat(ct(q) === Fn ? sp(e, {
6311
6311
  placement: q,
6312
6312
  boundary: u,
6313
6313
  rootBoundary: f,
6314
6314
  padding: c,
6315
6315
  flipVariations: w,
6316
- allowedAutoPlacements: b
6316
+ allowedAutoPlacements: y
6317
6317
  }) : q);
6318
6318
  }, []), I = e.rects.reference, L = e.rects.popper, U = /* @__PURE__ */ new Map(), Z = !0, Y = D[0], E = 0; E < D.length; E++) {
6319
6319
  var K = D[E], N = ct(K), W = zt(K) === qt, oe = [Re, We].indexOf(N) >= 0, ne = oe ? "width" : "height", O = Un(e, {
@@ -6322,10 +6322,10 @@ function op(t) {
6322
6322
  rootBoundary: f,
6323
6323
  altBoundary: d,
6324
6324
  padding: c
6325
- }), k = oe ? W ? vt : Ge : W ? We : Re;
6326
- I[ne] > L[ne] && (k = La(k));
6327
- var F = La(k), V = [];
6328
- if (o && V.push(O[N] <= 0), r && V.push(O[k] <= 0, O[F] <= 0), V.every(function(ie) {
6325
+ }), S = oe ? W ? vt : Ge : W ? We : Re;
6326
+ I[ne] > L[ne] && (S = La(S));
6327
+ var F = La(S), V = [];
6328
+ if (o && V.push(O[N] <= 0), r && V.push(O[S] <= 0, O[F] <= 0), V.every(function(ie) {
6329
6329
  return ie;
6330
6330
  })) {
6331
6331
  Y = K, Z = !1;
@@ -6334,7 +6334,7 @@ function op(t) {
6334
6334
  U.set(K, V);
6335
6335
  }
6336
6336
  if (Z)
6337
- for (var se = w ? 3 : 1, y = function(q) {
6337
+ for (var se = w ? 3 : 1, b = function(q) {
6338
6338
  var H = D.find(function(G) {
6339
6339
  var ve = U.get(G);
6340
6340
  if (ve)
@@ -6345,7 +6345,7 @@ function op(t) {
6345
6345
  if (H)
6346
6346
  return Y = H, "break";
6347
6347
  }, R = se; R > 0; R--) {
6348
- var le = y(R);
6348
+ var le = b(R);
6349
6349
  if (le === "break")
6350
6350
  break;
6351
6351
  }
@@ -6363,13 +6363,13 @@ var rp = {
6363
6363
  }
6364
6364
  };
6365
6365
  function lp(t, e, a) {
6366
- const { disabled: n, appendTo: s, appendToBody: o, openDirection: i } = Ae(t), r = Mt().proxy, l = a.multiselect, c = a.dropdown, u = ee(!1), f = ee(null), d = ee(null), h = A(() => s.value || o.value), w = A(() => i.value === "top" && d.value === "bottom" || i.value === "bottom" && d.value !== "top" ? "bottom" : "top"), b = () => {
6366
+ const { disabled: n, appendTo: s, appendToBody: o, openDirection: i } = Ae(t), r = Mt().proxy, l = a.multiselect, c = a.dropdown, u = ee(!1), f = ee(null), d = ee(null), h = A(() => s.value || o.value), w = A(() => i.value === "top" && d.value === "bottom" || i.value === "bottom" && d.value !== "top" ? "bottom" : "top"), y = () => {
6367
6367
  u.value || n.value || (u.value = !0, e.emit("open", r), h.value && De(() => {
6368
- S();
6368
+ k();
6369
6369
  }));
6370
6370
  }, g = () => {
6371
6371
  u.value && (u.value = !1, e.emit("close", r));
6372
- }, S = () => {
6372
+ }, k = () => {
6373
6373
  if (!f.value)
6374
6374
  return;
6375
6375
  let m = parseInt(window.getComputedStyle(c.value).borderTopWidth.replace("px", "")), D = parseInt(window.getComputedStyle(c.value).borderBottomWidth.replace("px", ""));
@@ -6430,16 +6430,16 @@ function lp(t, e, a) {
6430
6430
  }), {
6431
6431
  popper: f,
6432
6432
  isOpen: u,
6433
- open: b,
6433
+ open: y,
6434
6434
  close: g,
6435
6435
  placement: w,
6436
- updatePopper: S
6436
+ updatePopper: k
6437
6437
  };
6438
6438
  }
6439
6439
  function up(t, e, a) {
6440
- const { searchable: n, disabled: s, clearOnBlur: o } = Ae(t), i = a.input, r = a.open, l = a.close, c = a.clearSearch, u = a.isOpen, f = a.wrapper, d = a.tags, h = ee(!1), w = ee(!1), b = A(() => n.value || s.value ? -1 : 0), g = () => {
6440
+ const { searchable: n, disabled: s, clearOnBlur: o } = Ae(t), i = a.input, r = a.open, l = a.close, c = a.clearSearch, u = a.isOpen, f = a.wrapper, d = a.tags, h = ee(!1), w = ee(!1), y = A(() => n.value || s.value ? -1 : 0), g = () => {
6441
6441
  n.value && i.value.blur(), f.value.blur();
6442
- }, S = () => {
6442
+ }, k = () => {
6443
6443
  n.value && !s.value && i.value.focus();
6444
6444
  }, _ = (Z = !0) => {
6445
6445
  s.value || (h.value = !0, Z && r());
@@ -6449,11 +6449,11 @@ function up(t, e, a) {
6449
6449
  }, 1);
6450
6450
  };
6451
6451
  return {
6452
- tabindex: b,
6452
+ tabindex: y,
6453
6453
  isActive: h,
6454
6454
  mouseClicked: w,
6455
6455
  blur: g,
6456
- focus: S,
6456
+ focus: k,
6457
6457
  activate: _,
6458
6458
  deactivate: m,
6459
6459
  handleFocusIn: (Z) => {
@@ -6487,25 +6487,25 @@ function cp(t, e, a) {
6487
6487
  createTag: f,
6488
6488
  createOption: d,
6489
6489
  reverse: h
6490
- } = Ae(t), w = Mt().proxy, b = a.iv, g = a.update, S = a.deselect, _ = a.search, m = a.setPointer, D = a.selectPointer, I = a.backwardPointer, L = a.forwardPointer, U = a.multiselect, Z = a.wrapper, Y = a.tags, E = a.isOpen, K = a.open, N = a.blur, W = a.fo, oe = A(() => f.value || d.value || !1), ne = A(() => s.value !== void 0 ? s.value : u.value !== void 0 ? u.value : ["enter"]), O = () => {
6490
+ } = Ae(t), w = Mt().proxy, y = a.iv, g = a.update, k = a.deselect, _ = a.search, m = a.setPointer, D = a.selectPointer, I = a.backwardPointer, L = a.forwardPointer, U = a.multiselect, Z = a.wrapper, Y = a.tags, E = a.isOpen, K = a.open, N = a.blur, W = a.fo, oe = A(() => f.value || d.value || !1), ne = A(() => s.value !== void 0 ? s.value : u.value !== void 0 ? u.value : ["enter"]), O = () => {
6491
6491
  n.value === "tags" && !r.value && oe.value && i.value && !c.value && m(W.value[W.value.map((V) => V[l.value]).indexOf(_.value)]);
6492
6492
  };
6493
6493
  return {
6494
6494
  handleKeydown: (V) => {
6495
6495
  e.emit("keydown", V, w);
6496
- let se, y;
6497
- switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(V.key) !== -1 && n.value === "tags" && (se = [...U.value.querySelectorAll("[data-tags] > *")].filter((R) => R !== Y.value), y = se.findIndex((R) => R === document.activeElement)), V.key) {
6496
+ let se, b;
6497
+ switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(V.key) !== -1 && n.value === "tags" && (se = [...U.value.querySelectorAll("[data-tags] > *")].filter((R) => R !== Y.value), b = se.findIndex((R) => R === document.activeElement)), V.key) {
6498
6498
  case "Backspace":
6499
- if (n.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 || b.value.length === 0)
6499
+ if (n.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 || y.value.length === 0)
6500
6500
  return;
6501
- let R = b.value.filter((le) => !le.disabled && le.remove !== !1);
6502
- R.length && S(R[R.length - 1]);
6501
+ let R = y.value.filter((le) => !le.disabled && le.remove !== !1);
6502
+ R.length && k(R[R.length - 1]);
6503
6503
  break;
6504
6504
  case "Enter":
6505
6505
  if (V.preventDefault(), V.keyCode === 229)
6506
6506
  return;
6507
- if (y !== -1 && y !== void 0) {
6508
- g([...b.value].filter((le, ie) => ie !== y)), y === se.length - 1 && (se.length - 1 ? se[se.length - 2].focus() : i.value ? Y.value.querySelector("input").focus() : Z.value.focus());
6507
+ if (b !== -1 && b !== void 0) {
6508
+ g([...y.value].filter((le, ie) => ie !== b)), b === se.length - 1 && (se.length - 1 ? se[se.length - 2].focus() : i.value ? Y.value.querySelector("input").focus() : Z.value.focus());
6509
6509
  return;
6510
6510
  }
6511
6511
  if (ne.value.indexOf("enter") === -1 && oe.value)
@@ -6544,14 +6544,14 @@ function cp(t, e, a) {
6544
6544
  E.value || K(), L();
6545
6545
  break;
6546
6546
  case "ArrowLeft":
6547
- if (i.value && Y.value && Y.value.querySelector("input").selectionStart || V.shiftKey || n.value !== "tags" || !b.value || !b.value.length)
6547
+ if (i.value && Y.value && Y.value.querySelector("input").selectionStart || V.shiftKey || n.value !== "tags" || !y.value || !y.value.length)
6548
6548
  return;
6549
- V.preventDefault(), y === -1 ? se[se.length - 1].focus() : y > 0 && se[y - 1].focus();
6549
+ V.preventDefault(), b === -1 ? se[se.length - 1].focus() : b > 0 && se[b - 1].focus();
6550
6550
  break;
6551
6551
  case "ArrowRight":
6552
- if (y === -1 || V.shiftKey || n.value !== "tags" || !b.value || !b.value.length)
6552
+ if (b === -1 || V.shiftKey || n.value !== "tags" || !y.value || !y.value.length)
6553
6553
  return;
6554
- V.preventDefault(), se.length > y + 1 ? se[y + 1].focus() : i.value ? Y.value.querySelector("input").focus() : i.value || Z.value.focus();
6554
+ V.preventDefault(), se.length > b + 1 ? se[b + 1].focus() : i.value ? Y.value.querySelector("input").focus() : i.value || Z.value.focus();
6555
6555
  break;
6556
6556
  }
6557
6557
  },
@@ -6567,7 +6567,7 @@ function dp(t, e, a) {
6567
6567
  disabled: s,
6568
6568
  showOptions: o,
6569
6569
  breakTags: i
6570
- } = Ae(t), r = a.isOpen, l = a.isPointed, c = a.isSelected, u = a.isDisabled, f = a.isActive, d = a.canPointGroups, h = a.resolving, w = a.fo, b = a.placement, g = A(() => ({
6570
+ } = Ae(t), r = a.isOpen, l = a.isPointed, c = a.isSelected, u = a.isDisabled, f = a.isActive, d = a.canPointGroups, h = a.resolving, w = a.fo, y = a.placement, g = A(() => ({
6571
6571
  container: "multiselect",
6572
6572
  containerDisabled: "is-disabled",
6573
6573
  containerOpen: "is-open",
@@ -6622,12 +6622,12 @@ function dp(t, e, a) {
6622
6622
  assist: "multiselect-assistive-text",
6623
6623
  spacer: "multiselect-spacer",
6624
6624
  ...n.value
6625
- })), S = A(() => !!(r.value && o.value && (!h.value || h.value && w.value.length)));
6625
+ })), k = A(() => !!(r.value && o.value && (!h.value || h.value && w.value.length)));
6626
6626
  return {
6627
6627
  classList: A(() => {
6628
6628
  const m = g.value;
6629
6629
  return {
6630
- container: [m.container].concat(s.value ? m.containerDisabled : []).concat(S.value && b.value === "top" ? m.containerOpenTop : []).concat(S.value && b.value !== "top" ? m.containerOpen : []).concat(f.value ? m.containerActive : []),
6630
+ container: [m.container].concat(s.value ? m.containerDisabled : []).concat(k.value && y.value === "top" ? m.containerOpenTop : []).concat(k.value && y.value !== "top" ? m.containerOpen : []).concat(f.value ? m.containerActive : []),
6631
6631
  wrapper: m.wrapper,
6632
6632
  spacer: m.spacer,
6633
6633
  singleLabel: m.singleLabel,
@@ -6650,8 +6650,8 @@ function dp(t, e, a) {
6650
6650
  spinner: m.spinner,
6651
6651
  inifinite: m.inifinite,
6652
6652
  inifiniteSpinner: m.inifiniteSpinner,
6653
- dropdown: [m.dropdown].concat(b.value === "top" ? m.dropdownTop : []).concat(!r.value || !o.value || !S.value ? m.dropdownHidden : []),
6654
- options: [m.options].concat(b.value === "top" ? m.optionsTop : []),
6653
+ dropdown: [m.dropdown].concat(y.value === "top" ? m.dropdownTop : []).concat(!r.value || !o.value || !k.value ? m.dropdownHidden : []),
6654
+ options: [m.options].concat(y.value === "top" ? m.optionsTop : []),
6655
6655
  group: m.group,
6656
6656
  groupLabel: (D) => {
6657
6657
  let I = [m.groupLabel];
@@ -6668,17 +6668,17 @@ function dp(t, e, a) {
6668
6668
  fakeInput: m.fakeInput
6669
6669
  };
6670
6670
  }),
6671
- showDropdown: S
6671
+ showDropdown: k
6672
6672
  };
6673
6673
  }
6674
6674
  function pp(t, e, a) {
6675
6675
  const {
6676
6676
  limit: n,
6677
6677
  infinite: s
6678
- } = Ae(t), o = a.isOpen, i = a.offset, r = a.search, l = a.pfo, c = a.eo, u = ee(null), f = ee(null), d = A(() => i.value < l.value.length), h = (b) => {
6679
- const { isIntersecting: g, target: S } = b[0];
6678
+ } = Ae(t), o = a.isOpen, i = a.offset, r = a.search, l = a.pfo, c = a.eo, u = ee(null), f = ee(null), d = A(() => i.value < l.value.length), h = (y) => {
6679
+ const { isIntersecting: g, target: k } = y[0];
6680
6680
  if (g) {
6681
- const _ = S.offsetParent, m = _.scrollTop;
6681
+ const _ = k.offsetParent, m = _.scrollTop;
6682
6682
  i.value += n.value == -1 ? 10 : n.value, De(() => {
6683
6683
  _.scrollTop = m;
6684
6684
  });
@@ -6709,10 +6709,10 @@ function fp(t, e, a) {
6709
6709
  groupLabel: l,
6710
6710
  aria: c,
6711
6711
  searchable: u
6712
- } = Ae(t), f = a.pointer, d = a.iv, h = a.hasSelected, w = a.multipleLabelText, b = ee(null), g = A(() => {
6712
+ } = Ae(t), f = a.pointer, d = a.iv, h = a.hasSelected, w = a.multipleLabelText, y = ee(null), g = A(() => {
6713
6713
  let N = [];
6714
6714
  return s && s.value && N.push(s.value), N.push("assist"), N.join("-");
6715
- }), S = A(() => {
6715
+ }), k = A(() => {
6716
6716
  let N = [];
6717
6717
  return s && s.value && N.push(s.value), N.push("multiselect-options"), N.join("-");
6718
6718
  }), _ = A(() => {
@@ -6741,13 +6741,13 @@ function fp(t, e, a) {
6741
6741
  return xt(() => {
6742
6742
  if (s && s.value && document && document.querySelector) {
6743
6743
  let N = document.querySelector(`[for="${s.value}"]`);
6744
- b.value = N ? N.innerText : null;
6744
+ y.value = N ? N.innerText : null;
6745
6745
  }
6746
6746
  }), {
6747
6747
  arias: L,
6748
6748
  ariaLabel: I,
6749
6749
  ariaAssist: g,
6750
- ariaControls: S,
6750
+ ariaControls: k,
6751
6751
  ariaPlaceholder: m,
6752
6752
  ariaMultiselectable: D,
6753
6753
  ariaActiveDescendant: _,
@@ -7775,7 +7775,7 @@ const jp = { class: "ao-tasks" }, Fp = { class: "ao-tasks__list" }, Up = ["id",
7775
7775
  return (f, d) => (p(), C("div", jp, [
7776
7776
  v("ul", Fp, [
7777
7777
  (p(!0), C(he, null, _e(f.tasks, (h) => {
7778
- var w, b;
7778
+ var w, y;
7779
7779
  return p(), C("li", {
7780
7780
  key: h.id,
7781
7781
  class: "ao-subtask"
@@ -7801,7 +7801,7 @@ const jp = { class: "ao-tasks" }, Fp = { class: "ao-tasks__list" }, Up = ["id",
7801
7801
  Fa(". "),
7802
7802
  !f.isTemplate && f.users ? (p(), P($e, {
7803
7803
  key: 1,
7804
- value: (b = h.assignee) != null && b.id ? [h.assignee.id] : [],
7804
+ value: (y = h.assignee) != null && y.id ? [h.assignee.id] : [],
7805
7805
  options: s.value,
7806
7806
  "close-on-select": !0,
7807
7807
  searchable: !0,
@@ -7813,12 +7813,12 @@ const jp = { class: "ao-tasks" }, Fp = { class: "ao-tasks__list" }, Up = ["id",
7813
7813
  caret: f.isEditable,
7814
7814
  onChange: (g) => c(g, h.id)
7815
7815
  }, {
7816
- tag: z(({ option: g, handleTagRemove: S }) => [
7816
+ tag: z(({ option: g, handleTagRemove: k }) => [
7817
7817
  M(Je, {
7818
7818
  "user-name": g.label,
7819
7819
  "avatar-url": g.avatar,
7820
7820
  "is-closable": !0,
7821
- onClose: (_) => S(g, _)
7821
+ onClose: (_) => k(g, _)
7822
7822
  }, null, 8, ["user-name", "avatar-url", "onClose"])
7823
7823
  ]),
7824
7824
  _: 2
@@ -7980,30 +7980,30 @@ const nf = { class: "ao-comment" }, sf = { class: "ao-comment__created-at" }, of
7980
7980
  emits: ["edit", "remove"],
7981
7981
  setup(t, { emit: e }) {
7982
7982
  const a = t, n = A(() => {
7983
- const b = a.user;
7984
- return b ? `${b == null ? void 0 : b.firstName} ${b == null ? void 0 : b.lastName}` : null;
7983
+ const y = a.user;
7984
+ return y ? `${y == null ? void 0 : y.firstName} ${y == null ? void 0 : y.lastName}` : null;
7985
7985
  }), s = ee(null), { isEditing: o, toggleIsEditing: i, onUpdate: r, onDiscard: l } = Es(s), c = A(() => {
7986
- const b = a.editedAt && la(a.editedAt), g = la(a.createdAt), S = /* @__PURE__ */ new Date(), _ = b ?? g;
7987
- return _ && a3(_, S);
7988
- }), u = A(() => o.value ? "textarea" : "p"), f = l(), d = r((b) => {
7989
- e("edit", b);
7986
+ const y = a.editedAt && la(a.editedAt), g = la(a.createdAt), k = /* @__PURE__ */ new Date(), _ = y ?? g;
7987
+ return _ && a3(_, k);
7988
+ }), u = A(() => o.value ? "textarea" : "p"), f = l(), d = r((y) => {
7989
+ e("edit", y);
7990
7990
  }), h = () => {
7991
7991
  e("remove");
7992
7992
  }, w = ee(2);
7993
7993
  return Di(() => {
7994
7994
  De(() => {
7995
- var b;
7995
+ var y;
7996
7996
  if (!o.value) {
7997
- const g = (b = s.value) == null ? void 0 : b.getClientRects().length;
7997
+ const g = (y = s.value) == null ? void 0 : y.getClientRects().length;
7998
7998
  w.value = g || 2;
7999
7999
  }
8000
8000
  });
8001
- }), (b, g) => {
8002
- var S;
8001
+ }), (y, g) => {
8002
+ var k;
8003
8003
  return p(), C("li", nf, [
8004
8004
  n.value ? (p(), P(Je, {
8005
8005
  key: 0,
8006
- "avatar-url": (S = b.user) == null ? void 0 : S.avatarUrl,
8006
+ "avatar-url": (k = y.user) == null ? void 0 : k.avatarUrl,
8007
8007
  "user-name": n.value,
8008
8008
  class: "ao-comment__avatar"
8009
8009
  }, null, 8, ["avatar-url", "user-name"])) : T("", !0),
@@ -8014,7 +8014,7 @@ const nf = { class: "ao-comment" }, sf = { class: "ao-comment__created-at" }, of
8014
8014
  ref_key: "commentContent",
8015
8015
  ref: s,
8016
8016
  class: "ao-comment__content",
8017
- value: J(o) ? b.content : null,
8017
+ value: J(o) ? y.content : null,
8018
8018
  rows: J(o) ? w.value : null,
8019
8019
  onKeyup: [
8020
8020
  dt(J(f), ["esc"]),
@@ -8022,13 +8022,13 @@ const nf = { class: "ao-comment" }, sf = { class: "ao-comment__created-at" }, of
8022
8022
  ]
8023
8023
  }, {
8024
8024
  default: z(() => [
8025
- Fa(Q(b.content), 1)
8025
+ Fa(Q(y.content), 1)
8026
8026
  ]),
8027
8027
  _: 1
8028
8028
  }, 40, ["value", "rows", "onKeyup"]))
8029
8029
  ])
8030
8030
  ]),
8031
- b.isEditable ? (p(), C("div", lf, [
8031
+ y.isEditable ? (p(), C("div", lf, [
8032
8032
  J(o) ? (p(), C(he, { key: 0 }, [
8033
8033
  M(ue, {
8034
8034
  "icon-name": "CloseRounded",
@@ -8047,14 +8047,14 @@ const nf = { class: "ao-comment" }, sf = { class: "ao-comment__created-at" }, of
8047
8047
  }, null, 8, ["onClick"])
8048
8048
  ], 64)) : (p(), C(he, { key: 1 }, [
8049
8049
  M(ue, {
8050
- label: b.$t("activity.comment.delete"),
8050
+ label: y.$t("activity.comment.delete"),
8051
8051
  size: "sm",
8052
8052
  variant: "ghost",
8053
8053
  color: "neutral",
8054
8054
  onClick: h
8055
8055
  }, null, 8, ["label"]),
8056
8056
  M(ue, {
8057
- label: b.$t("activity.comment.edit"),
8057
+ label: y.$t("activity.comment.edit"),
8058
8058
  size: "sm",
8059
8059
  variant: "ghost",
8060
8060
  color: "neutral",
@@ -8149,7 +8149,7 @@ const cf = { class: "ao-comments__header" }, df = ["onSubmit"], pf = ["placehold
8149
8149
  "edited-at": w.updatedAt,
8150
8150
  "is-editable": w.author.id === f.userId,
8151
8151
  class: "ao-comment",
8152
- onEdit: (b) => c(w.id, b),
8152
+ onEdit: (y) => c(w.id, y),
8153
8153
  onRemove: () => u(w.id)
8154
8154
  }, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
8155
8155
  ])) : T("", !0)
@@ -8222,200 +8222,200 @@ const wn = /* @__PURE__ */ x({
8222
8222
  emits: ["update:activity", "close", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "toast"],
8223
8223
  setup(t, { emit: e }) {
8224
8224
  const a = t, n = A(() => {
8225
- var y;
8226
- return a.isEditable === !0 ? !0 : a.userId && a.isEditable === "only-own" ? a.userId === ((y = a.activity.assignee) == null ? void 0 : y.id) : !1;
8227
- }), s = (y) => {
8225
+ var b;
8226
+ return a.isEditable === !0 ? !0 : a.userId && a.isEditable === "only-own" ? a.userId === ((b = a.activity.assignee) == null ? void 0 : b.id) : !1;
8227
+ }), s = (b) => {
8228
8228
  e("update:activity", {
8229
8229
  id: a.activity.id,
8230
- name: y
8230
+ name: b
8231
8231
  });
8232
8232
  }, o = A({
8233
8233
  get() {
8234
8234
  return a.activity.description ?? "";
8235
8235
  },
8236
- set(y) {
8237
- e("update:activity", { id: a.activity.id, description: y });
8236
+ set(b) {
8237
+ e("update:activity", { id: a.activity.id, description: b });
8238
8238
  }
8239
8239
  }), i = A({
8240
8240
  get() {
8241
8241
  return a.activity.estimation ?? 0;
8242
8242
  },
8243
- set(y) {
8244
- e("update:activity", { id: a.activity.id, estimation: y });
8243
+ set(b) {
8244
+ e("update:activity", { id: a.activity.id, estimation: b });
8245
8245
  }
8246
8246
  }), r = A({
8247
8247
  get() {
8248
8248
  return a.activity.important ?? !1;
8249
8249
  },
8250
- set(y) {
8251
- e("update:activity", { id: a.activity.id, important: y });
8250
+ set(b) {
8251
+ e("update:activity", { id: a.activity.id, important: b });
8252
8252
  }
8253
8253
  }), l = A({
8254
8254
  get() {
8255
8255
  return a.activity.private ?? !1;
8256
8256
  },
8257
- set(y) {
8258
- e("update:activity", { id: a.activity.id, private: y });
8257
+ set(b) {
8258
+ e("update:activity", { id: a.activity.id, private: b });
8259
8259
  }
8260
8260
  }), c = A({
8261
8261
  get() {
8262
8262
  return a.activity.deadline;
8263
8263
  },
8264
- set(y) {
8265
- e("update:activity", { id: a.activity.id, deadline: y });
8264
+ set(b) {
8265
+ e("update:activity", { id: a.activity.id, deadline: b });
8266
8266
  }
8267
8267
  }), u = A(() => {
8268
- var y;
8269
- return (y = a.activityTypes) == null ? void 0 : y.map((R) => ({
8268
+ var b;
8269
+ return (b = a.activityTypes) == null ? void 0 : b.map((R) => ({
8270
8270
  label: R.name,
8271
8271
  value: R.id
8272
8272
  }));
8273
8273
  }), f = A({
8274
8274
  get() {
8275
- var y;
8276
- return (y = a.activity.type) == null ? void 0 : y.id;
8275
+ var b;
8276
+ return (b = a.activity.type) == null ? void 0 : b.id;
8277
8277
  },
8278
- set(y) {
8279
- e("update:activity", { id: a.activity.id, typeId: y });
8278
+ set(b) {
8279
+ e("update:activity", { id: a.activity.id, typeId: b });
8280
8280
  }
8281
- }), d = A(() => a.templateActivities.filter((y) => y.id !== a.activity.id).map((y) => ({
8282
- label: y.name,
8283
- value: y.id
8281
+ }), d = A(() => a.templateActivities.filter((b) => b.id !== a.activity.id).map((b) => ({
8282
+ label: b.name,
8283
+ value: b.id
8284
8284
  }))), h = A({
8285
8285
  get() {
8286
- var y;
8287
- return (y = a.activity.dependingOn) == null ? void 0 : y.map((R) => R.id);
8286
+ var b;
8287
+ return (b = a.activity.dependingOn) == null ? void 0 : b.map((R) => R.id);
8288
8288
  },
8289
- set(y) {
8290
- y && e("update:activity", {
8289
+ set(b) {
8290
+ b && e("update:activity", {
8291
8291
  id: a.activity.id,
8292
- dependingOn: y
8292
+ dependingOn: b
8293
8293
  });
8294
8294
  }
8295
- }), w = A(() => d.value.map((y) => {
8295
+ }), w = A(() => d.value.map((b) => {
8296
8296
  var R;
8297
8297
  return {
8298
- ...y,
8299
- disabled: (R = a.activity.blocking) == null ? void 0 : R.some((le) => le.id === y.value)
8298
+ ...b,
8299
+ disabled: (R = a.activity.blocking) == null ? void 0 : R.some((le) => le.id === b.value)
8300
8300
  };
8301
- })), b = A({
8301
+ })), y = A({
8302
8302
  get() {
8303
- var y;
8304
- return (y = a.activity.blocking) == null ? void 0 : y.map((R) => R.id);
8303
+ var b;
8304
+ return (b = a.activity.blocking) == null ? void 0 : b.map((R) => R.id);
8305
8305
  },
8306
- set(y) {
8307
- y && e("update:activity", {
8306
+ set(b) {
8307
+ b && e("update:activity", {
8308
8308
  id: a.activity.id,
8309
- blocking: y
8309
+ blocking: b
8310
8310
  });
8311
8311
  }
8312
- }), g = A(() => d.value.map((y) => {
8312
+ }), g = A(() => d.value.map((b) => {
8313
8313
  var R;
8314
8314
  return {
8315
- ...y,
8315
+ ...b,
8316
8316
  disabled: (R = a.activity.dependingOn) == null ? void 0 : R.some(
8317
- (le) => le.id === y.value
8317
+ (le) => le.id === b.value
8318
8318
  )
8319
8319
  };
8320
- })), S = (y) => {
8321
- e("addSubtask", y);
8322
- }, _ = (y) => {
8323
- e("updateSubtask", y);
8324
- }, m = (y) => {
8325
- e("deleteSubtask", y);
8320
+ })), k = (b) => {
8321
+ e("addSubtask", b);
8322
+ }, _ = (b) => {
8323
+ e("updateSubtask", b);
8324
+ }, m = (b) => {
8325
+ e("deleteSubtask", b);
8326
8326
  };
8327
8327
  function D() {
8328
8328
  a.userId ? U.value = [a.userId] : console.error("Failed assigning to self: userId is missing");
8329
8329
  }
8330
- function I(y) {
8331
- U.value = [y];
8330
+ function I(b) {
8331
+ U.value = [b];
8332
8332
  }
8333
8333
  const L = A(() => {
8334
- var y;
8335
- return ((y = a.users) == null ? void 0 : y.map((R) => ({
8334
+ var b;
8335
+ return ((b = a.users) == null ? void 0 : b.map((R) => ({
8336
8336
  label: `${R.firstName} ${R.lastName}`,
8337
8337
  value: R.id,
8338
8338
  avatar: R.avatarUrl
8339
8339
  }))) || [];
8340
8340
  }), U = A({
8341
8341
  get() {
8342
- var y, R;
8343
- return (y = a.activity.assignee) != null && y.id ? [(R = a.activity.assignee) == null ? void 0 : R.id] : [];
8342
+ var b, R;
8343
+ return (b = a.activity.assignee) != null && b.id ? [(R = a.activity.assignee) == null ? void 0 : R.id] : [];
8344
8344
  },
8345
- set(y) {
8345
+ set(b) {
8346
8346
  e("update:activity", {
8347
8347
  id: a.activity.id,
8348
- assigneeId: y[0] ?? null
8348
+ assigneeId: b[0] ?? null
8349
8349
  // `undefined` is not a value for GraphQL, we have to use `null` to reset a value
8350
8350
  });
8351
8351
  }
8352
- }), Z = (y) => {
8352
+ }), Z = (b) => {
8353
8353
  e("addFiles", {
8354
8354
  activityId: a.activity.id,
8355
- files: y
8355
+ files: b
8356
8356
  });
8357
- }, Y = (y) => {
8357
+ }, Y = (b) => {
8358
8358
  e("removeFile", {
8359
8359
  activityId: a.activity.id,
8360
- file: y
8360
+ file: b
8361
8361
  });
8362
- }, E = A(() => a.projects.map((y) => ({
8363
- value: y.id,
8364
- label: y.name
8362
+ }, E = A(() => a.projects.map((b) => ({
8363
+ value: b.id,
8364
+ label: b.name
8365
8365
  }))), K = A(() => {
8366
8366
  var R, le, ie;
8367
- const y = (ie = (le = (R = a.activity) == null ? void 0 : R.project) == null ? void 0 : le.phases) == null ? void 0 : ie.reduce(
8367
+ const b = (ie = (le = (R = a.activity) == null ? void 0 : R.project) == null ? void 0 : le.phases) == null ? void 0 : ie.reduce(
8368
8368
  (q, H) => [...q, ...H.milestones],
8369
8369
  []
8370
8370
  );
8371
- return y == null ? void 0 : y.map((q) => ({
8371
+ return b == null ? void 0 : b.map((q) => ({
8372
8372
  value: q.id,
8373
8373
  label: q.name
8374
8374
  }));
8375
- }), N = (y) => {
8375
+ }), N = (b) => {
8376
8376
  a.activity && e("update:activity", {
8377
8377
  id: a.activity.id,
8378
- projectId: y
8378
+ projectId: b
8379
8379
  });
8380
- }, W = (y) => {
8380
+ }, W = (b) => {
8381
8381
  a.activity && e("update:activity", {
8382
8382
  id: a.activity.id,
8383
- milestoneId: y
8383
+ milestoneId: b
8384
8384
  });
8385
8385
  }, oe = A(() => {
8386
- var y;
8387
- return (y = a.statuses) == null ? void 0 : y.map((R) => ({
8386
+ var b;
8387
+ return (b = a.statuses) == null ? void 0 : b.map((R) => ({
8388
8388
  value: R.id,
8389
8389
  label: R.name
8390
8390
  }));
8391
- }), ne = (y) => {
8391
+ }), ne = (b) => {
8392
8392
  e("update:activity", {
8393
8393
  id: a.activity.id,
8394
- statusId: y
8394
+ statusId: b
8395
8395
  });
8396
- }, O = (y) => {
8396
+ }, O = (b) => {
8397
8397
  e("addComment", {
8398
- ...y,
8398
+ ...b,
8399
8399
  activityId: a.activity.id
8400
8400
  });
8401
- }, k = (y) => {
8402
- e("updateComment", y);
8403
- }, F = (y) => {
8404
- e("removeComment", y);
8401
+ }, S = (b) => {
8402
+ e("updateComment", b);
8403
+ }, F = (b) => {
8404
+ e("removeComment", b);
8405
8405
  }, V = A(() => {
8406
- var y, R;
8407
- return ((y = a.activity.createdBy) == null ? void 0 : y.firstName) && ((R = a.activity.createdBy) == null ? void 0 : R.lastName) && `${a.activity.createdBy.firstName} ${a.activity.createdBy.lastName}`;
8406
+ var b, R;
8407
+ return ((b = a.activity.createdBy) == null ? void 0 : b.firstName) && ((R = a.activity.createdBy) == null ? void 0 : R.lastName) && `${a.activity.createdBy.firstName} ${a.activity.createdBy.lastName}`;
8408
8408
  });
8409
8409
  function se() {
8410
- const y = window.location.origin, R = a.activity.slug, le = `${y}/activity-feed/slug/${R}`;
8410
+ const b = window.location.origin, R = a.activity.slug, le = `${b}/activity-feed/slug/${R}`;
8411
8411
  navigator.clipboard.writeText(le).then(() => {
8412
8412
  console.log(`Link copied to clipboard: ${le}`), e("toast", "Link copied to clipboard!", "success");
8413
8413
  }).catch(() => {
8414
8414
  console.log("Failed to copy link"), e("toast", "Failed to copy link.", "error");
8415
8415
  });
8416
8416
  }
8417
- return (y, R) => (p(), P(In, {
8418
- onClose: R[10] || (R[10] = (le) => y.$emit("close"))
8417
+ return (b, R) => (p(), P(In, {
8418
+ onClose: R[10] || (R[10] = (le) => b.$emit("close"))
8419
8419
  }, {
8420
8420
  default: z(() => {
8421
8421
  var le, ie, q;
@@ -8423,28 +8423,28 @@ const wn = /* @__PURE__ */ x({
8423
8423
  v("div", mf, [
8424
8424
  v("div", Cf, [
8425
8425
  v("div", gf, [
8426
- y.activity.slug ? (p(), P(qa, {
8426
+ b.activity.slug ? (p(), P(qa, {
8427
8427
  key: 0,
8428
- label: y.activity.slug,
8428
+ label: b.activity.slug,
8429
8429
  clickable: !0,
8430
8430
  variant: "solid",
8431
8431
  color: "primary",
8432
8432
  class: "ao-activity__ao-tag",
8433
8433
  onClick: se
8434
8434
  }, null, 8, ["label"])) : T("", !0),
8435
- y.breadcrumbs ? (p(), C("div", _f, Q(y.breadcrumbs), 1)) : T("", !0),
8435
+ b.breadcrumbs ? (p(), C("div", _f, Q(b.breadcrumbs), 1)) : T("", !0),
8436
8436
  M(ye, {
8437
- title: y.activity.name || "",
8437
+ title: b.activity.name || "",
8438
8438
  level: 4,
8439
8439
  "is-editable": n.value,
8440
8440
  "onUpdate:title": s
8441
8441
  }, null, 8, ["title", "is-editable"]),
8442
8442
  v("div", yf, [
8443
8443
  E.value ? (p(), C("label", bf, [
8444
- v("span", wf, Q(y.$t("activity.project.label")), 1),
8444
+ v("span", wf, Q(b.$t("activity.project.label")), 1),
8445
8445
  M($e, {
8446
8446
  options: E.value,
8447
- value: (le = y.activity.project) == null ? void 0 : le.id,
8447
+ value: (le = b.activity.project) == null ? void 0 : le.id,
8448
8448
  searchable: !0,
8449
8449
  disabled: !n.value,
8450
8450
  caret: n.value,
@@ -8452,10 +8452,10 @@ const wn = /* @__PURE__ */ x({
8452
8452
  }, null, 8, ["options", "value", "disabled", "caret"])
8453
8453
  ])) : T("", !0),
8454
8454
  K.value ? (p(), C("label", $f, [
8455
- v("span", kf, Q(y.$t("activity.milestone.label")), 1),
8455
+ v("span", kf, Q(b.$t("activity.milestone.label")), 1),
8456
8456
  M($e, {
8457
8457
  options: K.value,
8458
- value: (ie = y.activity.milestone) == null ? void 0 : ie.id,
8458
+ value: (ie = b.activity.milestone) == null ? void 0 : ie.id,
8459
8459
  searchable: !0,
8460
8460
  disabled: !n.value,
8461
8461
  caret: n.value,
@@ -8463,20 +8463,20 @@ const wn = /* @__PURE__ */ x({
8463
8463
  }, null, 8, ["options", "value", "disabled", "caret"])
8464
8464
  ])) : T("", !0)
8465
8465
  ]),
8466
- te(y.$slots, "header")
8466
+ te(b.$slots, "header")
8467
8467
  ]),
8468
8468
  v("div", Sf, [
8469
8469
  v("fieldset", Af, [
8470
8470
  v("div", Mf, [
8471
8471
  M(af, {
8472
- attachments: y.activity.attachments,
8473
- "is-editable": y.attachmentEnabled && n.value && y.isTemplate !== !0 && !!y.userId,
8472
+ attachments: b.activity.attachments,
8473
+ "is-editable": b.attachmentEnabled && n.value && b.isTemplate !== !0 && !!b.userId,
8474
8474
  onAdd: Z,
8475
8475
  onRemove: Y
8476
8476
  }, {
8477
8477
  default: z(() => [
8478
8478
  v("label", Tf, [
8479
- v("span", Of, Q(y.$t("activity.description.label")), 1),
8479
+ v("span", Of, Q(b.$t("activity.description.label")), 1),
8480
8480
  Ke(v("textarea", {
8481
8481
  "onUpdate:modelValue": R[0] || (R[0] = (H) => o.value = H),
8482
8482
  readonly: !n.value,
@@ -8500,7 +8500,7 @@ const wn = /* @__PURE__ */ x({
8500
8500
  ]),
8501
8501
  v("div", If, [
8502
8502
  v("label", Lf, [
8503
- v("span", Hf, Q(y.$t("activity.estimation.label")), 1),
8503
+ v("span", Hf, Q(b.$t("activity.estimation.label")), 1),
8504
8504
  Ke(v("input", {
8505
8505
  "onUpdate:modelValue": R[1] || (R[1] = (H) => i.value = H),
8506
8506
  readonly: !n.value,
@@ -8526,38 +8526,38 @@ const wn = /* @__PURE__ */ x({
8526
8526
  M(pe, { name: "SelectCheckBox" }),
8527
8527
  M(ye, {
8528
8528
  level: 4,
8529
- title: y.$t("activity.tasks.title")
8529
+ title: b.$t("activity.tasks.title")
8530
8530
  }, null, 8, ["title"])
8531
8531
  ]),
8532
8532
  v("div", Bf, [
8533
8533
  M(Wp, {
8534
8534
  class: "ao-activity-details__tasks ao-field__row",
8535
- tasks: y.activity.tasks || [],
8536
- "activity-id": y.activity.id,
8537
- users: y.users,
8538
- "is-checkable": y.isTaskCheckable,
8535
+ tasks: b.activity.tasks || [],
8536
+ "activity-id": b.activity.id,
8537
+ users: b.users,
8538
+ "is-checkable": b.isTaskCheckable,
8539
8539
  "is-editable": n.value,
8540
- "is-template": y.isTemplate,
8541
- onAdd: S,
8540
+ "is-template": b.isTemplate,
8541
+ onAdd: k,
8542
8542
  onUpdate: _,
8543
8543
  onDelete: m
8544
8544
  }, null, 8, ["tasks", "activity-id", "users", "is-checkable", "is-editable", "is-template"])
8545
8545
  ])
8546
8546
  ]),
8547
- y.isTemplate !== !0 && y.userId ? (p(), C("div", Rf, [
8547
+ b.isTemplate !== !0 && b.userId ? (p(), C("div", Rf, [
8548
8548
  v("div", Nf, [
8549
8549
  M(pe, { name: "ChatOutline" }),
8550
8550
  M(ye, {
8551
8551
  level: 4,
8552
- title: y.$t("activity.comments.title")
8552
+ title: b.$t("activity.comments.title")
8553
8553
  }, null, 8, ["title"])
8554
8554
  ]),
8555
8555
  M(hf, {
8556
- comments: y.activity.comments,
8557
- users: y.users,
8558
- "user-id": y.userId,
8556
+ comments: b.activity.comments,
8557
+ users: b.users,
8558
+ "user-id": b.userId,
8559
8559
  onCreateComment: O,
8560
- onUpdateComment: k,
8560
+ onUpdateComment: S,
8561
8561
  onRemoveComment: F
8562
8562
  }, null, 8, ["comments", "users", "user-id"])
8563
8563
  ])) : T("", !0)
@@ -8567,16 +8567,16 @@ const wn = /* @__PURE__ */ x({
8567
8567
  v("div", Ff, [
8568
8568
  M(pe, {
8569
8569
  name: "CloseRounded",
8570
- onClick: R[2] || (R[2] = (H) => y.$emit("close"))
8570
+ onClick: R[2] || (R[2] = (H) => b.$emit("close"))
8571
8571
  })
8572
8572
  ]),
8573
8573
  oe.value ? (p(), C("div", Uf, [
8574
8574
  v("label", Zf, [
8575
- v("span", Wf, Q(y.$t("activity.status.label")), 1),
8575
+ v("span", Wf, Q(b.$t("activity.status.label")), 1),
8576
8576
  M($e, {
8577
8577
  class: "ao-activity-details__multiselect",
8578
8578
  options: oe.value,
8579
- value: (q = y.activity.status) == null ? void 0 : q.id,
8579
+ value: (q = b.activity.status) == null ? void 0 : q.id,
8580
8580
  "can-clear": !1,
8581
8581
  "can-deselect": !1,
8582
8582
  disabled: !n.value,
@@ -8588,9 +8588,9 @@ const wn = /* @__PURE__ */ x({
8588
8588
  v("div", qf, [
8589
8589
  v("div", zf, [
8590
8590
  v("div", xf, [
8591
- v("span", Yf, Q(y.$t("activity.assignee.label")), 1),
8591
+ v("span", Yf, Q(b.$t("activity.assignee.label")), 1),
8592
8592
  M(ue, {
8593
- label: y.$t("activity.assignee.toMe"),
8593
+ label: b.$t("activity.assignee.toMe"),
8594
8594
  type: "button",
8595
8595
  color: "primary",
8596
8596
  variant: "solid",
@@ -8605,7 +8605,7 @@ const wn = /* @__PURE__ */ x({
8605
8605
  options: L.value,
8606
8606
  "close-on-select": !0,
8607
8607
  searchable: !0,
8608
- placeholder: y.$t("activity.filters.assignee.placeholder"),
8608
+ placeholder: b.$t("activity.filters.assignee.placeholder"),
8609
8609
  mode: "tags",
8610
8610
  disabled: !n.value,
8611
8611
  caret: n.value,
@@ -8627,9 +8627,9 @@ const wn = /* @__PURE__ */ x({
8627
8627
  ])
8628
8628
  ]),
8629
8629
  v("div", Kf, [
8630
- y.isTemplate !== !0 && y.userId ? (p(), C("div", Gf, [
8630
+ b.isTemplate !== !0 && b.userId ? (p(), C("div", Gf, [
8631
8631
  v("label", Xf, [
8632
- v("span", Qf, Q(y.$t("activity.deadline.label")), 1),
8632
+ v("span", Qf, Q(b.$t("activity.deadline.label")), 1),
8633
8633
  Ke(v("input", {
8634
8634
  "onUpdate:modelValue": R[4] || (R[4] = (H) => c.value = H),
8635
8635
  readonly: !n.value,
@@ -8656,20 +8656,20 @@ const wn = /* @__PURE__ */ x({
8656
8656
  mode: "single",
8657
8657
  searchable: !0,
8658
8658
  options: u.value,
8659
- placeholder: y.$t("activity.filters.type.placeholder"),
8659
+ placeholder: b.$t("activity.filters.type.placeholder"),
8660
8660
  disabled: !n.value,
8661
8661
  caret: n.value
8662
8662
  }, null, 8, ["modelValue", "options", "placeholder", "disabled", "caret"])
8663
8663
  ])
8664
8664
  ])) : T("", !0),
8665
- te(y.$slots, "default", { activity: y.activity })
8665
+ te(b.$slots, "default", { activity: b.activity })
8666
8666
  ]),
8667
8667
  v("div", nv, [
8668
8668
  M(wn, {
8669
8669
  modelValue: r.value,
8670
8670
  "onUpdate:modelValue": R[6] || (R[6] = (H) => r.value = H),
8671
8671
  modelModifiers: { lazy: !0 },
8672
- label: y.$t("activity.important.label"),
8672
+ label: b.$t("activity.important.label"),
8673
8673
  disabled: !n.value,
8674
8674
  variant: "ghost",
8675
8675
  "icon-name": "FlagRounded",
@@ -8679,12 +8679,12 @@ const wn = /* @__PURE__ */ x({
8679
8679
  size: "sm"
8680
8680
  }, null, 8, ["modelValue", "label", "disabled"])
8681
8681
  ]),
8682
- y.isTemplate !== !0 && y.activity.createdBy.id === y.userId ? (p(), C("div", sv, [
8682
+ b.isTemplate !== !0 && b.activity.createdBy.id === b.userId ? (p(), C("div", sv, [
8683
8683
  M(wn, {
8684
8684
  modelValue: l.value,
8685
8685
  "onUpdate:modelValue": R[7] || (R[7] = (H) => l.value = H),
8686
8686
  modelModifiers: { lazy: !0 },
8687
- label: y.$t("activity.private.label"),
8687
+ label: b.$t("activity.private.label"),
8688
8688
  disabled: !n.value,
8689
8689
  variant: "ghost",
8690
8690
  "icon-name": "Lock",
@@ -8698,13 +8698,13 @@ const wn = /* @__PURE__ */ x({
8698
8698
  M(pe, { name: "FlowsheetOutlineRounded" }),
8699
8699
  M(ye, {
8700
8700
  level: 4,
8701
- title: y.$t("activity.dependencies.title")
8701
+ title: b.$t("activity.dependencies.title")
8702
8702
  }, null, 8, ["title"])
8703
8703
  ]),
8704
8704
  v("div", rv, [
8705
8705
  v("div", lv, [
8706
8706
  v("label", uv, [
8707
- v("span", cv, Q(y.$t("activity.dependingOn.label")), 1),
8707
+ v("span", cv, Q(b.$t("activity.dependingOn.label")), 1),
8708
8708
  M($e, {
8709
8709
  modelValue: h.value,
8710
8710
  "onUpdate:modelValue": R[8] || (R[8] = (H) => h.value = H),
@@ -8720,10 +8720,10 @@ const wn = /* @__PURE__ */ x({
8720
8720
  ]),
8721
8721
  v("div", dv, [
8722
8722
  v("label", pv, [
8723
- v("span", fv, Q(y.$t("activity.blocking.label")), 1),
8723
+ v("span", fv, Q(b.$t("activity.blocking.label")), 1),
8724
8724
  M($e, {
8725
- modelValue: b.value,
8726
- "onUpdate:modelValue": R[9] || (R[9] = (H) => b.value = H),
8725
+ modelValue: y.value,
8726
+ "onUpdate:modelValue": R[9] || (R[9] = (H) => y.value = H),
8727
8727
  class: "ao-activity-details__multiselect",
8728
8728
  mode: "tags",
8729
8729
  "close-on-select": !1,
@@ -8736,7 +8736,7 @@ const wn = /* @__PURE__ */ x({
8736
8736
  ])
8737
8737
  ])
8738
8738
  ]),
8739
- y.isTemplate !== !0 && V.value ? (p(), C("div", vv, [
8739
+ b.isTemplate !== !0 && V.value ? (p(), C("div", vv, [
8740
8740
  v("div", hv, [
8741
8741
  M(Je, {
8742
8742
  "user-name": V.value,
@@ -8770,10 +8770,10 @@ const mv = /* @__PURE__ */ x({
8770
8770
  get() {
8771
8771
  return n.value;
8772
8772
  },
8773
- set(S) {
8774
- n.value = S, e("update:rule", {
8773
+ set(k) {
8774
+ n.value = k, e("update:rule", {
8775
8775
  ...a.rule,
8776
- itemType: S,
8776
+ itemType: k,
8777
8777
  subItemId: void 0
8778
8778
  });
8779
8779
  }
@@ -8781,10 +8781,10 @@ const mv = /* @__PURE__ */ x({
8781
8781
  get() {
8782
8782
  return a.rule.subItemId;
8783
8783
  },
8784
- set(S) {
8784
+ set(k) {
8785
8785
  e("update:rule", {
8786
8786
  ...a.rule,
8787
- subItemId: S,
8787
+ subItemId: k,
8788
8788
  itemType: a.rule.itemType || s.value
8789
8789
  });
8790
8790
  }
@@ -8802,32 +8802,32 @@ const mv = /* @__PURE__ */ x({
8802
8802
  get() {
8803
8803
  return l.value;
8804
8804
  },
8805
- set(S) {
8806
- e("update:rule", { ...a.rule, comparator: S });
8805
+ set(k) {
8806
+ e("update:rule", { ...a.rule, comparator: k });
8807
8807
  }
8808
8808
  }), u = A(() => Object.values(R2)), f = Pt(a.rule.trigger), d = A({
8809
8809
  get() {
8810
8810
  return f.value;
8811
8811
  },
8812
- set(S) {
8813
- e("update:rule", { ...a.rule, trigger: S });
8812
+ set(k) {
8813
+ e("update:rule", { ...a.rule, trigger: k });
8814
8814
  }
8815
8815
  }), h = A(() => Object.values(N2)), w = A({
8816
8816
  get() {
8817
8817
  return a.rule.duration;
8818
8818
  },
8819
- set(S) {
8820
- e("update:rule", { ...a.rule, duration: S });
8819
+ set(k) {
8820
+ e("update:rule", { ...a.rule, duration: k });
8821
8821
  }
8822
- }), b = A({
8822
+ }), y = A({
8823
8823
  get() {
8824
8824
  return a.rule.durationUnit;
8825
8825
  },
8826
- set(S) {
8827
- e("update:rule", { ...a.rule, durationUnit: S });
8826
+ set(k) {
8827
+ e("update:rule", { ...a.rule, durationUnit: k });
8828
8828
  }
8829
8829
  }), g = A(() => Object.values(j2));
8830
- return (S, _) => (p(), P(ht(S.tagName), { class: "ao-rule-line" }, {
8830
+ return (k, _) => (p(), P(ht(k.tagName), { class: "ao-rule-line" }, {
8831
8831
  default: z(() => [
8832
8832
  M(J(lt), {
8833
8833
  modelValue: s.value,
@@ -8862,15 +8862,15 @@ const mv = /* @__PURE__ */ x({
8862
8862
  ]
8863
8863
  ]),
8864
8864
  M(J(lt), {
8865
- modelValue: b.value,
8866
- "onUpdate:modelValue": _[5] || (_[5] = (m) => b.value = m),
8865
+ modelValue: y.value,
8866
+ "onUpdate:modelValue": _[5] || (_[5] = (m) => y.value = m),
8867
8867
  options: g.value
8868
8868
  }, null, 8, ["modelValue", "options"]),
8869
8869
  M(ue, {
8870
8870
  class: "ao-rule-line__remove",
8871
8871
  "icon-name": "CloseRounded",
8872
8872
  variant: "ghost",
8873
- onClick: _[6] || (_[6] = (m) => S.$emit("close"))
8873
+ onClick: _[6] || (_[6] = (m) => k.$emit("close"))
8874
8874
  })
8875
8875
  ]),
8876
8876
  _: 1
@@ -8949,8 +8949,8 @@ const yv = {
8949
8949
  setup(t, { emit: e }) {
8950
8950
  const a = t, { t: n } = Tt(), s = A(
8951
8951
  () => {
8952
- var k;
8953
- return (k = a.templates) == null ? void 0 : k.find((F) => F.id === a.templateId);
8952
+ var S;
8953
+ return (S = a.templates) == null ? void 0 : S.find((F) => F.id === a.templateId);
8954
8954
  }
8955
8955
  ), o = ee(!1);
8956
8956
  de(
@@ -8958,50 +8958,50 @@ const yv = {
8958
8958
  () => o.value = !1
8959
8959
  ), de(
8960
8960
  () => {
8961
- var k;
8962
- return (k = s.value) == null ? void 0 : k.phases;
8961
+ var S;
8962
+ return (S = s.value) == null ? void 0 : S.phases;
8963
8963
  },
8964
- (k, F) => {
8965
- o.value && Xe(k, F);
8964
+ (S, F) => {
8965
+ o.value && Xe(S, F);
8966
8966
  }
8967
8967
  );
8968
8968
  const i = A(() => {
8969
- var k, F;
8970
- return (F = (k = s == null ? void 0 : s.value) == null ? void 0 : k.phases) == null ? void 0 : F.find((V) => V.id === a.phaseId);
8969
+ var S, F;
8970
+ return (F = (S = s == null ? void 0 : s.value) == null ? void 0 : S.phases) == null ? void 0 : F.find((V) => V.id === a.phaseId);
8971
8971
  });
8972
8972
  de(
8973
8973
  () => {
8974
- var k;
8975
- return (k = i.value) == null ? void 0 : k.milestones;
8974
+ var S;
8975
+ return (S = i.value) == null ? void 0 : S.milestones;
8976
8976
  },
8977
- (k, F) => {
8978
- o.value && Xe(k, F);
8977
+ (S, F) => {
8978
+ o.value && Xe(S, F);
8979
8979
  }
8980
8980
  );
8981
8981
  const r = A(() => {
8982
- var k, F;
8983
- return (F = (k = i.value) == null ? void 0 : k.milestones) == null ? void 0 : F.find(
8982
+ var S, F;
8983
+ return (F = (S = i.value) == null ? void 0 : S.milestones) == null ? void 0 : F.find(
8984
8984
  (V) => V.id === a.milestoneId
8985
8985
  );
8986
8986
  });
8987
8987
  de(
8988
8988
  () => {
8989
- var k;
8990
- return (k = r.value) == null ? void 0 : k.activities;
8989
+ var S;
8990
+ return (S = r.value) == null ? void 0 : S.activities;
8991
8991
  },
8992
- (k, F) => {
8993
- o.value && Xe(k, F);
8992
+ (S, F) => {
8993
+ o.value && Xe(S, F);
8994
8994
  }
8995
8995
  );
8996
8996
  const l = A(() => {
8997
- var k, F;
8998
- return ((F = (k = s.value) == null ? void 0 : k.phases) == null ? void 0 : F.reduce((V, se) => {
8999
- const y = se.milestones || [];
9000
- return [...V, ...y];
8997
+ var S, F;
8998
+ return ((F = (S = s.value) == null ? void 0 : S.phases) == null ? void 0 : F.reduce((V, se) => {
8999
+ const b = se.milestones || [];
9000
+ return [...V, ...b];
9001
9001
  }, [])) || [];
9002
9002
  }), c = A(() => {
9003
- var k, F;
9004
- return ((F = (k = s.value) == null ? void 0 : k.phases) == null ? void 0 : F.reduce((V, se) => {
9003
+ var S, F;
9004
+ return ((F = (S = s.value) == null ? void 0 : S.phases) == null ? void 0 : F.reduce((V, se) => {
9005
9005
  const R = (se.milestones || []).reduce(
9006
9006
  (le, ie) => ie.activities ? [...le, ...ie.activities] : le,
9007
9007
  []
@@ -9009,17 +9009,17 @@ const yv = {
9009
9009
  return [...V, ...R];
9010
9010
  }, [])) || [];
9011
9011
  }), u = A(() => {
9012
- var k, F;
9013
- return (F = (k = r.value) == null ? void 0 : k.activities) == null ? void 0 : F.find(
9012
+ var S, F;
9013
+ return (F = (S = r.value) == null ? void 0 : S.activities) == null ? void 0 : F.find(
9014
9014
  (V) => V.id === a.activityId
9015
9015
  );
9016
9016
  }), f = A(() => {
9017
- var k;
9018
- return ((k = s.value) == null ? void 0 : k.name) || a.templateId;
9017
+ var S;
9018
+ return ((S = s.value) == null ? void 0 : S.name) || a.templateId;
9019
9019
  }), d = () => {
9020
9020
  if (!s.value)
9021
9021
  return;
9022
- const { name: k, rank: F } = Bt(
9022
+ const { name: S, rank: F } = Bt(
9023
9023
  s.value.phases,
9024
9024
  "phase",
9025
9025
  n
@@ -9028,35 +9028,35 @@ const yv = {
9028
9028
  type: Ce.PHASES,
9029
9029
  templateId: a.templateId,
9030
9030
  item: {
9031
- name: k,
9031
+ name: S,
9032
9032
  rank: F
9033
9033
  }
9034
9034
  });
9035
- }, h = (k) => {
9035
+ }, h = (S) => {
9036
9036
  e("updateItem", {
9037
9037
  templateId: a.templateId,
9038
9038
  id: a.templateId,
9039
9039
  itemType: Ce.TEMPLATES,
9040
- data: { name: k }
9040
+ data: { name: S }
9041
9041
  });
9042
- }, w = (k) => {
9042
+ }, w = (S) => {
9043
9043
  e("removeItem", {
9044
9044
  type: Ce.PHASES,
9045
9045
  templateId: a.templateId,
9046
9046
  data: {
9047
- id: k
9047
+ id: S
9048
9048
  }
9049
9049
  });
9050
- }, b = (k, F) => {
9050
+ }, y = (S, F) => {
9051
9051
  e("updateItem", {
9052
9052
  templateId: a.templateId,
9053
- id: k,
9053
+ id: S,
9054
9054
  itemType: Ce.PHASES,
9055
9055
  data: { name: F }
9056
9056
  });
9057
- }, g = (k) => {
9058
- e("updateItem", k);
9059
- }, S = (k) => {
9057
+ }, g = (S) => {
9058
+ e("updateItem", S);
9059
+ }, k = (S) => {
9060
9060
  if (!i.value)
9061
9061
  return;
9062
9062
  const { name: F, rank: V } = Bt(
@@ -9067,32 +9067,32 @@ const yv = {
9067
9067
  o.value = !0, e("addItem", {
9068
9068
  type: Ce.MILESTONES,
9069
9069
  templateId: a.templateId,
9070
- phaseId: k.phaseId,
9070
+ phaseId: S.phaseId,
9071
9071
  item: {
9072
9072
  name: F,
9073
9073
  rank: V,
9074
- phaseId: k.phaseId
9074
+ phaseId: S.phaseId
9075
9075
  }
9076
9076
  });
9077
- }, _ = (k) => {
9077
+ }, _ = (S) => {
9078
9078
  e("removeItem", {
9079
9079
  type: Ce.MILESTONES,
9080
9080
  templateId: a.templateId,
9081
- phaseId: k.phaseId,
9081
+ phaseId: S.phaseId,
9082
9082
  data: {
9083
- id: k.id
9083
+ id: S.id
9084
9084
  }
9085
9085
  });
9086
- }, m = (k) => {
9087
- const { id: F, ...V } = k;
9086
+ }, m = (S) => {
9087
+ const { id: F, ...V } = S;
9088
9088
  e("updateItem", {
9089
9089
  itemType: Ce.MILESTONES,
9090
9090
  id: F,
9091
9091
  templateId: a.templateId,
9092
9092
  data: V
9093
9093
  });
9094
- }, D = (k) => {
9095
- const { milestoneId: F } = k;
9094
+ }, D = (S) => {
9095
+ const { milestoneId: F } = S;
9096
9096
  if (!r.value)
9097
9097
  return;
9098
9098
  const { name: V, rank: se } = Bt(
@@ -9106,7 +9106,7 @@ const yv = {
9106
9106
  templateId: a.templateId,
9107
9107
  item: { name: V, rank: se, milestoneId: F }
9108
9108
  });
9109
- }, I = (k) => {
9109
+ }, I = (S) => {
9110
9110
  var F, V;
9111
9111
  e("removeItem", {
9112
9112
  type: Ce.ACTIVITIES,
@@ -9114,11 +9114,11 @@ const yv = {
9114
9114
  phaseId: (F = i.value) == null ? void 0 : F.id,
9115
9115
  milestoneId: (V = r.value) == null ? void 0 : V.id,
9116
9116
  data: {
9117
- id: k.id
9117
+ id: S.id
9118
9118
  }
9119
9119
  });
9120
- }, L = (k) => {
9121
- const { id: F, ...V } = k;
9120
+ }, L = (S) => {
9121
+ const { id: F, ...V } = S;
9122
9122
  e("updateItem", {
9123
9123
  itemType: Ce.ACTIVITIES,
9124
9124
  id: F,
@@ -9129,57 +9129,57 @@ const yv = {
9129
9129
  U.value = !U.value;
9130
9130
  }, Y = () => {
9131
9131
  e("addRule", { templateId: a.templateId });
9132
- }, E = (k) => {
9133
- e("removeRule", { id: k, templateId: a.templateId });
9134
- }, K = (k) => {
9132
+ }, E = (S) => {
9133
+ e("removeRule", { id: S, templateId: a.templateId });
9134
+ }, K = (S) => {
9135
9135
  var F;
9136
- if (k.moved) {
9137
- const V = Ca(k, ((F = s.value) == null ? void 0 : F.phases) ?? []);
9136
+ if (S.moved) {
9137
+ const V = Ca(S, ((F = s.value) == null ? void 0 : F.phases) ?? []);
9138
9138
  e("updateItem", {
9139
9139
  itemType: Ce.PHASES,
9140
- id: k.moved.element.id,
9140
+ id: S.moved.element.id,
9141
9141
  templateId: a.templateId,
9142
9142
  data: {
9143
9143
  rank: V
9144
9144
  }
9145
9145
  });
9146
9146
  }
9147
- }, N = (k) => {
9147
+ }, N = (S) => {
9148
9148
  !i.value || !r.value || !u.value || e("addItem", {
9149
9149
  type: Ce.TASKS,
9150
- activityId: k.activityId,
9150
+ activityId: S.activityId,
9151
9151
  milestoneId: r.value.id,
9152
9152
  phaseId: i.value.id,
9153
9153
  templateId: a.templateId,
9154
- item: k
9154
+ item: S
9155
9155
  });
9156
- }, W = (k) => {
9156
+ }, W = (S) => {
9157
9157
  !i.value || !r.value || !u.value || e("updateItem", {
9158
9158
  itemType: Ce.TASKS,
9159
- id: k.id,
9159
+ id: S.id,
9160
9160
  templateId: a.templateId,
9161
- data: k
9161
+ data: S
9162
9162
  });
9163
- }, oe = (k) => {
9163
+ }, oe = (S) => {
9164
9164
  !i.value || !r.value || !u.value || e("removeItem", {
9165
9165
  type: Ce.TASKS,
9166
9166
  activityId: u.value.id,
9167
9167
  milestoneId: r.value.id,
9168
9168
  phaseId: i.value.id,
9169
9169
  templateId: a.templateId,
9170
- data: k
9170
+ data: S
9171
9171
  });
9172
- }, ne = (k) => {
9173
- e("addFiles", k);
9174
- }, O = (k) => {
9175
- e("removeFile", k);
9172
+ }, ne = (S) => {
9173
+ e("addFiles", S);
9174
+ }, O = (S) => {
9175
+ e("removeFile", S);
9176
9176
  };
9177
- return (k, F) => {
9178
- var V, se, y, R, le, ie;
9177
+ return (S, F) => {
9178
+ var V, se, b, R, le, ie;
9179
9179
  return s.value ? (p(), C("div", yv, [
9180
9180
  M(Ga, {
9181
9181
  "can-go-back": !0,
9182
- onGoBack: F[1] || (F[1] = (q) => k.$router.push({ name: J(Dt).TEMPLATES_LIST }))
9182
+ onGoBack: F[1] || (F[1] = (q) => S.$router.push({ name: J(Dt).TEMPLATES_LIST }))
9183
9183
  }, {
9184
9184
  primary: z(() => [
9185
9185
  M(ye, {
@@ -9205,7 +9205,7 @@ const yv = {
9205
9205
  }, {
9206
9206
  header: z(() => [
9207
9207
  M(ye, {
9208
- title: k.$t("template.phases.title"),
9208
+ title: S.$t("template.phases.title"),
9209
9209
  level: 3,
9210
9210
  class: "ao-list__title"
9211
9211
  }, null, 8, ["title"])
@@ -9219,11 +9219,11 @@ const yv = {
9219
9219
  milestones: q.milestones,
9220
9220
  "is-active": ((H = i.value) == null ? void 0 : H.id) === q.id,
9221
9221
  "is-draggable": !0,
9222
- onClick: (G) => k.$router.push({
9223
- params: { templateId: k.templateId, phaseId: q.id }
9222
+ onClick: (G) => S.$router.push({
9223
+ params: { templateId: S.templateId, phaseId: q.id }
9224
9224
  }),
9225
9225
  "onUpdate:title": (G) => {
9226
- b(q.id, G);
9226
+ y(q.id, G);
9227
9227
  },
9228
9228
  onRemove: () => w(q.id)
9229
9229
  }, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
@@ -9233,7 +9233,7 @@ const yv = {
9233
9233
  v("div", kv, [
9234
9234
  M(Ct, {
9235
9235
  "icon-name": "AddBoxOutlineRounded",
9236
- label: k.$t("template.phases.add"),
9236
+ label: S.$t("template.phases.add"),
9237
9237
  onClick: d
9238
9238
  }, null, 8, ["label"])
9239
9239
  ])
@@ -9244,10 +9244,10 @@ const yv = {
9244
9244
  v("li", Sv, [
9245
9245
  i.value ? (p(), P(d5, {
9246
9246
  key: 0,
9247
- "template-id": k.templateId,
9247
+ "template-id": S.templateId,
9248
9248
  phase: i.value,
9249
9249
  "milestone-id": (V = r.value) == null ? void 0 : V.id,
9250
- onAddMilestone: S,
9250
+ onAddMilestone: k,
9251
9251
  onUpdateMilestone: m,
9252
9252
  onUpdatePhase: g,
9253
9253
  onRemoveMilestone: _
@@ -9256,10 +9256,10 @@ const yv = {
9256
9256
  v("li", Av, [
9257
9257
  i.value && r.value ? (p(), P(v5, {
9258
9258
  key: 0,
9259
- "template-id": k.templateId,
9259
+ "template-id": S.templateId,
9260
9260
  "phase-id": (se = i.value) == null ? void 0 : se.id,
9261
9261
  milestone: r.value,
9262
- "activity-id": (y = u.value) == null ? void 0 : y.id,
9262
+ "activity-id": (b = u.value) == null ? void 0 : b.id,
9263
9263
  onAddActivity: D,
9264
9264
  onUpdateActivity: L,
9265
9265
  onRemoveActivity: I
@@ -9271,19 +9271,19 @@ const yv = {
9271
9271
  u.value ? (p(), P(Zn, {
9272
9272
  key: 0,
9273
9273
  activity: u.value,
9274
- "activity-types": k.activityTypes,
9274
+ "activity-types": S.activityTypes,
9275
9275
  breadcrumbs: `${s.value.name} / ${(R = i.value) == null ? void 0 : R.name} / ${(le = r.value) == null ? void 0 : le.name}`,
9276
9276
  "milestone-id": (ie = r.value) == null ? void 0 : ie.id,
9277
9277
  "template-activities": c.value,
9278
9278
  "template-milestones": l.value,
9279
9279
  "is-template": !0,
9280
9280
  "is-editable": !0,
9281
- users: k.users,
9281
+ users: S.users,
9282
9282
  "onUpdate:activity": F[2] || (F[2] = (q) => {
9283
9283
  u.value && L(q);
9284
9284
  }),
9285
9285
  "attachment-enabled": !1,
9286
- onClose: k.$router.back,
9286
+ onClose: S.$router.back,
9287
9287
  onAddSubtask: N,
9288
9288
  onUpdateSubtask: W,
9289
9289
  onDeleteSubtask: oe,
@@ -9291,7 +9291,7 @@ const yv = {
9291
9291
  onRemoveFile: O
9292
9292
  }, {
9293
9293
  default: z((q) => [
9294
- te(k.$slots, "activityDetailsBody", pa(fa(q)))
9294
+ te(S.$slots, "activityDetailsBody", pa(fa(q)))
9295
9295
  ]),
9296
9296
  _: 3
9297
9297
  }, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "users", "onClose"])) : T("", !0)
@@ -9396,7 +9396,7 @@ const Iv = { class: "ao-card-project-phase__header" }, Lv = { class: "ao-card-pr
9396
9396
  const c = (u = a.milestones) == null ? void 0 : u.reduce(
9397
9397
  (f, d) => {
9398
9398
  var h;
9399
- return f + ((h = d.activities) == null ? void 0 : h.reduce((w, b) => w + (b.estimation || 0), 0));
9399
+ return f + ((h = d.activities) == null ? void 0 : h.reduce((w, y) => w + (y.estimation || 0), 0));
9400
9400
  },
9401
9401
  0
9402
9402
  );
@@ -9715,26 +9715,26 @@ const Jv = {
9715
9715
  "item-key": "id",
9716
9716
  group: "kanban"
9717
9717
  }, d.$attrs, { onChange: f }), {
9718
- item: z(({ element: b }) => {
9718
+ item: z(({ element: y }) => {
9719
9719
  var g;
9720
9720
  return [
9721
9721
  M(Qv, {
9722
- id: b.id,
9723
- name: b.name,
9724
- color: b.color,
9725
- activities: b.activities,
9726
- deadline: b.deadline,
9722
+ id: y.id,
9723
+ name: y.name,
9724
+ color: y.color,
9725
+ activities: y.activities,
9726
+ deadline: y.deadline,
9727
9727
  "is-editable": !d.readonly && d.isEditable,
9728
9728
  "is-draggable": !d.readonly && d.isEditable,
9729
9729
  "closed-status": d.closedStatus,
9730
- "is-selected": b.id === ((g = d.$route.params) == null ? void 0 : g.milestoneId),
9731
- assignee: b.assignee,
9732
- important: b.important,
9730
+ "is-selected": y.id === ((g = d.$route.params) == null ? void 0 : g.milestoneId),
9731
+ assignee: y.assignee,
9732
+ important: y.important,
9733
9733
  readonly: d.readonly,
9734
9734
  class: X(["ao-project-phase__milestone"]),
9735
- onClick: (S) => !d.readonly && d.$router.push({
9735
+ onClick: (k) => !d.readonly && d.$router.push({
9736
9736
  name: J(Fe).milestone,
9737
- params: { phaseId: d.phase.id, milestoneId: b.id }
9737
+ params: { phaseId: d.phase.id, milestoneId: y.id }
9738
9738
  }),
9739
9739
  onUpdateMilestone: l,
9740
9740
  onArchiveMilestone: c
@@ -9982,11 +9982,11 @@ const ci = /* @__PURE__ */ j(m9, [["render", g9], ["__scopeId", "data-v-cbe33527
9982
9982
  e("archiveActivity", E);
9983
9983
  }, w = (E) => {
9984
9984
  e("unarchiveActivity", E);
9985
- }, b = (E) => {
9985
+ }, y = (E) => {
9986
9986
  e("addSubtask", E);
9987
9987
  }, g = (E) => {
9988
9988
  e("updateSubtask", E);
9989
- }, S = (E) => {
9989
+ }, k = (E) => {
9990
9990
  e("deleteSubtask", E);
9991
9991
  }, _ = A(
9992
9992
  () => s.value.flatMap((E) => E.activities)
@@ -10086,9 +10086,9 @@ const ci = /* @__PURE__ */ j(m9, [["render", g9], ["__scopeId", "data-v-cbe33527
10086
10086
  "is-editable": E.isEditable,
10087
10087
  "attachment-enabled": E.attachmentEnabled,
10088
10088
  "onUpdate:activity": d,
10089
- onAddSubtask: b,
10089
+ onAddSubtask: y,
10090
10090
  onUpdateSubtask: g,
10091
- onDeleteSubtask: S,
10091
+ onDeleteSubtask: k,
10092
10092
  onAddFiles: m,
10093
10093
  onRemoveFile: D,
10094
10094
  onAddComment: I,
@@ -10185,8 +10185,8 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
10185
10185
  var g;
10186
10186
  const h = a.assignee ? [a.assignee] : [];
10187
10187
  console.log(JSON.stringify(a.tasks, null, 2));
10188
- const w = ((g = a.tasks) == null ? void 0 : g.map((S) => S.assignee).filter((S) => S !== void 0)) || [];
10189
- return [.../* @__PURE__ */ new Set([...h, ...w])];
10188
+ const w = ((g = a.tasks) == null ? void 0 : g.map((k) => k == null ? void 0 : k.assignee).filter((k) => k != null)) || [], y = [.../* @__PURE__ */ new Set([...h, ...w])];
10189
+ return console.log("*********************************"), console.log(JSON.stringify(y, null, 2)), y;
10190
10190
  }), l = A(() => Tn(a.deadline)), c = (h) => {
10191
10191
  e("removeAssignee", h);
10192
10192
  }, u = A(() => {
@@ -10257,15 +10257,15 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
10257
10257
  v("div", I9, [
10258
10258
  v("div", L9, [
10259
10259
  v("ul", H9, [
10260
- (p(!0), C(he, null, _e(r.value, (b) => (p(), C(he, {
10261
- key: b.id
10260
+ (p(!0), C(he, null, _e(r.value, (y) => (p(), C(he, {
10261
+ key: y.id
10262
10262
  }, [
10263
- b ? (p(), C("li", D9, [
10263
+ y ? (p(), C("li", D9, [
10264
10264
  M(Je, {
10265
- "user-name": J(zs)(b),
10266
- "avatar-url": b.avatarUrl,
10265
+ "user-name": J(zs)(y),
10266
+ "avatar-url": y.avatarUrl,
10267
10267
  "is-closable": !0,
10268
- onClose: () => c(b.id)
10268
+ onClose: () => c(y.id)
10269
10269
  }, null, 8, ["user-name", "avatar-url", "onClose"])
10270
10270
  ])) : T("", !0)
10271
10271
  ], 64))), 128))
@@ -10703,8 +10703,8 @@ var Xn = x({
10703
10703
  const { clientX: e, clientY: a } = t, { top: n, left: s, width: o, height: i } = this.suckerCanvas.getBoundingClientRect(), r = e - s, l = a - n, u = this.suckerCanvas.getContext("2d").getImageData(Math.min(r, o - 1), Math.min(l, i - 1), 1, 1);
10704
10704
  let [f, d, h, w] = u.data;
10705
10705
  w = parseFloat((w / 255).toFixed(2));
10706
- const b = this.suckerPreview.style;
10707
- Object.assign(b, {
10706
+ const y = this.suckerPreview.style;
10707
+ Object.assign(y, {
10708
10708
  position: "absolute",
10709
10709
  left: e + 20 + "px",
10710
10710
  top: a - 36 + "px",
@@ -10719,13 +10719,13 @@ var Xn = x({
10719
10719
  e >= this.suckerArea[0] && // @ts-ignore
10720
10720
  a >= this.suckerArea[1] && // @ts-ignore
10721
10721
  e <= this.suckerArea[2] && // @ts-ignore
10722
- a <= this.suckerArea[3] ? b.display = "" : b.display = "none";
10722
+ a <= this.suckerArea[3] ? y.display = "" : y.display = "none";
10723
10723
  },
10724
10724
  suckColor(t) {
10725
10725
  t && t.tagName !== "CANVAS" || (this.suckerPreview = document.createElement("div"), this.suckerPreview && document.body.appendChild(this.suckerPreview), document.addEventListener("mousemove", this.mousemoveHandler), document.addEventListener("mouseup", this.mousemoveHandler), t.addEventListener("click", (e) => {
10726
10726
  const { clientX: a, clientY: n } = e, { top: s, left: o, width: i, height: r } = t.getBoundingClientRect(), l = a - o, c = n - s, f = t.getContext("2d").getImageData(Math.min(l, i - 1), Math.min(c, r - 1), 1, 1);
10727
- let [d, h, w, b] = f.data;
10728
- b = parseFloat((b / 255).toFixed(2)), this.$emit("selectSucker", { r: d, g: h, b: w, a: b });
10727
+ let [d, h, w, y] = f.data;
10728
+ y = parseFloat((y / 255).toFixed(2)), this.$emit("selectSucker", { r: d, g: h, b: w, a: y });
10729
10729
  }));
10730
10730
  }
10731
10731
  }
@@ -11359,7 +11359,7 @@ const h4 = /* @__PURE__ */ j(p4, [["render", v4]]), m4 = { class: "ao-project-mi
11359
11359
  deadline: _ != null && _.length ? _ : null
11360
11360
  });
11361
11361
  }
11362
- }), w = (_) => a.closedStatus ? On(_, a.closedStatus) : !1, b = A(() => {
11362
+ }), w = (_) => a.closedStatus ? On(_, a.closedStatus) : !1, y = A(() => {
11363
11363
  var _;
11364
11364
  return ((_ = a.users) == null ? void 0 : _.map((m) => ({
11365
11365
  label: `${m.firstName} ${m.lastName}`,
@@ -11378,7 +11378,7 @@ const h4 = /* @__PURE__ */ j(p4, [["render", v4]]), m4 = { class: "ao-project-mi
11378
11378
  // `undefined` is not a value for GraphQL, we have to use `null` to reset a value
11379
11379
  });
11380
11380
  }
11381
- }), S = A({
11381
+ }), k = A({
11382
11382
  get() {
11383
11383
  var _;
11384
11384
  return ((_ = i.value) == null ? void 0 : _.important) ?? !1;
@@ -11407,8 +11407,8 @@ const h4 = /* @__PURE__ */ j(p4, [["render", v4]]), m4 = { class: "ao-project-mi
11407
11407
  level: 5
11408
11408
  }, null, 8, ["title"]),
11409
11409
  M(wn, {
11410
- modelValue: S.value,
11411
- "onUpdate:modelValue": m[0] || (m[0] = (I) => S.value = I),
11410
+ modelValue: k.value,
11411
+ "onUpdate:modelValue": m[0] || (m[0] = (I) => k.value = I),
11412
11412
  modelModifiers: { lazy: !0 },
11413
11413
  disabled: !_.isEditable,
11414
11414
  class: "ao-milestone__important",
@@ -11442,7 +11442,7 @@ const h4 = /* @__PURE__ */ j(p4, [["render", v4]]), m4 = { class: "ao-project-mi
11442
11442
  M($e, {
11443
11443
  modelValue: g.value,
11444
11444
  "onUpdate:modelValue": m[2] || (m[2] = (I) => g.value = I),
11445
- options: b.value,
11445
+ options: y.value,
11446
11446
  "close-on-select": !0,
11447
11447
  searchable: !0,
11448
11448
  max: 1,
@@ -11577,18 +11577,18 @@ const T4 = /* @__PURE__ */ x({
11577
11577
  setup(t, { emit: e }) {
11578
11578
  const a = t, n = A(() => {
11579
11579
  var g;
11580
- return (g = a.phases) == null ? void 0 : g.find((S) => S.id === a.phaseId);
11580
+ return (g = a.phases) == null ? void 0 : g.find((k) => k.id === a.phaseId);
11581
11581
  }), s = A(
11582
11582
  () => {
11583
11583
  var g;
11584
- return (g = a.phases) == null ? void 0 : g.flatMap((S) => S.milestones);
11584
+ return (g = a.phases) == null ? void 0 : g.flatMap((k) => k.milestones);
11585
11585
  }
11586
11586
  ), o = A(() => {
11587
11587
  var g;
11588
- return (g = s.value) == null ? void 0 : g.find((S) => S.id === a.milestoneId);
11588
+ return (g = s.value) == null ? void 0 : g.find((k) => k.id === a.milestoneId);
11589
11589
  }), i = A(() => {
11590
11590
  var g;
11591
- return (g = a.activities) == null ? void 0 : g.find((S) => S.id === a.activityId);
11591
+ return (g = a.activities) == null ? void 0 : g.find((k) => k.id === a.activityId);
11592
11592
  }), r = (g) => {
11593
11593
  e("update:activity", g);
11594
11594
  }, l = (g) => {
@@ -11605,10 +11605,10 @@ const T4 = /* @__PURE__ */ x({
11605
11605
  e("addComment", g);
11606
11606
  }, w = (g) => {
11607
11607
  e("updateComment", g);
11608
- }, b = (g) => {
11608
+ }, y = (g) => {
11609
11609
  e("removeComment", g);
11610
11610
  };
11611
- return (g, S) => {
11611
+ return (g, k) => {
11612
11612
  var _, m;
11613
11613
  return i.value ? (p(), P(Zn, {
11614
11614
  key: 0,
@@ -11634,7 +11634,7 @@ const T4 = /* @__PURE__ */ x({
11634
11634
  onRemoveFile: d,
11635
11635
  onAddComment: h,
11636
11636
  onUpdateComment: w,
11637
- onRemoveComment: b
11637
+ onRemoveComment: y
11638
11638
  }, {
11639
11639
  default: z((D) => [
11640
11640
  te(g.$slots, "default", pa(fa(D)))
@@ -11736,18 +11736,18 @@ function j4(t, e, a = {}) {
11736
11736
  let u = oa;
11737
11737
  const f = ee(r), d = l.value ? de(
11738
11738
  () => [c.value, mn(n), f.value],
11739
- ([w, b]) => {
11739
+ ([w, y]) => {
11740
11740
  if (u(), !f.value || !w.length)
11741
11741
  return;
11742
11742
  const g = new IntersectionObserver(
11743
11743
  e,
11744
11744
  {
11745
- root: mn(b),
11745
+ root: mn(y),
11746
11746
  rootMargin: s,
11747
11747
  threshold: o
11748
11748
  }
11749
11749
  );
11750
- w.forEach((S) => S && g.observe(S)), u = () => {
11750
+ w.forEach((k) => k && g.observe(k)), u = () => {
11751
11751
  g.disconnect(), u = oa;
11752
11752
  };
11753
11753
  },
@@ -11860,7 +11860,7 @@ const F4 = {
11860
11860
  }
11861
11861
  }), {
11862
11862
  item: z(({ element: d }) => {
11863
- var h, w, b, g, S, _, m, D, I;
11863
+ var h, w, y, g, k, _, m, D, I;
11864
11864
  return [
11865
11865
  M(di, {
11866
11866
  class: X(o(d) ? "ao-list-draggable" : ""),
@@ -11868,8 +11868,8 @@ const F4 = {
11868
11868
  name: d.name,
11869
11869
  "project-name": (h = d.project) == null ? void 0 : h.name,
11870
11870
  "project-color": (w = d.project) == null ? void 0 : w.color,
11871
- "phase-name": (g = (b = d.milestone) == null ? void 0 : b.phase) == null ? void 0 : g.name,
11872
- "milestone-name": (S = d.milestone) == null ? void 0 : S.name,
11871
+ "phase-name": (g = (y = d.milestone) == null ? void 0 : y.phase) == null ? void 0 : g.name,
11872
+ "milestone-name": (k = d.milestone) == null ? void 0 : k.name,
11873
11873
  "milestone-color": (_ = d.milestone) == null ? void 0 : _.color,
11874
11874
  deadline: d.deadline,
11875
11875
  rules: ((m = d.rules) == null ? void 0 : m.length) || 0,
@@ -12008,25 +12008,25 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
12008
12008
  emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "unarchiveActivity", "update:searchText", "clear:searchText", "update:showsArchivedActivities", "update:showsOnlyImportant", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "toast"],
12009
12009
  setup(t, { emit: e }) {
12010
12010
  const a = t, { t: n } = Tt();
12011
- function s(O, k) {
12012
- e("toast", O, k);
12011
+ function s(O, S) {
12012
+ e("toast", O, S);
12013
12013
  }
12014
- const o = Pt(a, "activities"), i = async (O, k) => {
12015
- await e("selectActivity", O, k);
12014
+ const o = Pt(a, "activities"), i = async (O, S) => {
12015
+ await e("selectActivity", O, S);
12016
12016
  }, r = ee({}), l = ee(!1), c = ee(!1), u = A(() => a.project ? "milestone" : "project");
12017
12017
  de(
12018
12018
  [() => a.statuses, () => a.activities, () => a.initialActivityId, () => a.initialActivitySlug],
12019
12019
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
12020
- async ([O, k, F, V], [se, y]) => {
12020
+ async ([O, S, F, V], [se, b]) => {
12021
12021
  r.value = Object.fromEntries(
12022
12022
  O.map((R) => [
12023
12023
  R.id,
12024
- k.filter((le) => {
12024
+ S.filter((le) => {
12025
12025
  var ie;
12026
12026
  return ((ie = le.status) == null ? void 0 : ie.id) === R.id;
12027
12027
  })
12028
12028
  ])
12029
- ), F && !l.value ? (i(F, null), l.value = !0) : V && !l.value && (i(null, V), l.value = !0), c.value && Xe(k, y);
12029
+ ), F && !l.value ? (i(F, null), l.value = !0) : V && !l.value && (i(null, V), l.value = !0), c.value && Xe(S, b);
12030
12030
  },
12031
12031
  { immediate: !0 }
12032
12032
  );
@@ -12034,27 +12034,27 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
12034
12034
  var O;
12035
12035
  return !a.selectedActivity || !a.selectedActivity.milestone ? "" : `${((O = a.selectedActivity.milestone.phase) == null ? void 0 : O.name) ?? ""} / ${a.selectedActivity.milestone.name ?? ""}`;
12036
12036
  }), d = (O) => {
12037
- var y, R;
12038
- const k = (y = a.activities) == null ? void 0 : y.at(-1), F = k ? Ie.LexoRank.parse(k.rank).genNext() : Ie.LexoRank.middle(), V = ((R = a.activities) == null ? void 0 : R.length) ?? 0, se = {
12037
+ var b, R;
12038
+ const S = (b = a.activities) == null ? void 0 : b.at(-1), F = S ? Ie.LexoRank.parse(S.rank).genNext() : Ie.LexoRank.middle(), V = ((R = a.activities) == null ? void 0 : R.length) ?? 0, se = {
12039
12039
  name: n("activity.defaultName", { idx: V + 1 }),
12040
12040
  rank: F.format(),
12041
12041
  statusId: O.id
12042
12042
  };
12043
12043
  a.filters.assigneeId.length > 0 && (se.assigneeId = a.filters.assigneeId[0]), a.filters.projectId.length > 0 && (se.projectId = a.filters.projectId[0]), a.filters.typeId.length > 0 && (se.typeId = a.filters.typeId[0]), c.value = !0, e("addActivity", se);
12044
- }, h = (O, k) => {
12045
- c.value = !1, e("update:filters", { ...a.filters, [O]: k });
12044
+ }, h = (O, S) => {
12045
+ c.value = !1, e("update:filters", { ...a.filters, [O]: S });
12046
12046
  }, w = A(
12047
12047
  () => a.project ? [a.project] : a.projects ?? []
12048
- ), b = A(() => w.value.map((O) => ({
12048
+ ), y = A(() => w.value.map((O) => ({
12049
12049
  value: O.id,
12050
12050
  label: O.name
12051
12051
  }))), g = A(() => {
12052
12052
  var O;
12053
- return (O = a.activityTypes) == null ? void 0 : O.map((k) => ({
12054
- value: k.id,
12055
- label: k.name
12053
+ return (O = a.activityTypes) == null ? void 0 : O.map((S) => ({
12054
+ value: S.id,
12055
+ label: S.name
12056
12056
  }));
12057
- }), S = A(() => a.users.map((O) => ({
12057
+ }), k = A(() => a.users.map((O) => ({
12058
12058
  value: O.id,
12059
12059
  label: `${O.firstName} ${O.lastName}`,
12060
12060
  avatar: O.avatarUrl
@@ -12086,13 +12086,13 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
12086
12086
  activityId: a.selectedActivity.id
12087
12087
  });
12088
12088
  }, oe = (O) => {
12089
- const { id: k } = a.selectedActivity || {};
12090
- k && e("updateComment", O);
12089
+ const { id: S } = a.selectedActivity || {};
12090
+ S && e("updateComment", O);
12091
12091
  }, ne = (O) => {
12092
- const { id: k } = a.selectedActivity || {};
12093
- k && e("removeComment", O);
12092
+ const { id: S } = a.selectedActivity || {};
12093
+ S && e("removeComment", O);
12094
12094
  };
12095
- return (O, k) => {
12095
+ return (O, S) => {
12096
12096
  var F;
12097
12097
  return p(), C("div", Q4, [
12098
12098
  M(Ga, null, {
@@ -12103,7 +12103,7 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
12103
12103
  "is-left": !1,
12104
12104
  "right-label": O.$t("project.switch.feed"),
12105
12105
  "left-label": O.$t("project.switch.overview"),
12106
- "onUpdate:isLeft": k[0] || (k[0] = (V) => {
12106
+ "onUpdate:isLeft": S[0] || (S[0] = (V) => {
12107
12107
  V && O.$router.push({ name: J(Fe).project });
12108
12108
  })
12109
12109
  }, null, 8, ["right-label", "left-label"])) : T("", !0),
@@ -12118,12 +12118,12 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
12118
12118
  key: 1,
12119
12119
  "model-value": O.filters[J(Lt).project],
12120
12120
  mode: "tags",
12121
- options: b.value,
12121
+ options: y.value,
12122
12122
  "close-on-select": !1,
12123
12123
  searchable: !0,
12124
12124
  class: "ao-feed__filter ao-feed__filter__projects",
12125
12125
  placeholder: O.$t("feed.filters.project.placeholder"),
12126
- "onUpdate:modelValue": k[1] || (k[1] = (V) => h(J(Lt).project, V))
12126
+ "onUpdate:modelValue": S[1] || (S[1] = (V) => h(J(Lt).project, V))
12127
12127
  }, null, 8, ["model-value", "options", "placeholder"])),
12128
12128
  g.value ? (p(), P($e, {
12129
12129
  key: 2,
@@ -12134,18 +12134,18 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
12134
12134
  searchable: !0,
12135
12135
  class: "ao-feed__filter ao-feed__filter__types",
12136
12136
  placeholder: O.$t("feed.filters.activityType.placeholder"),
12137
- "onUpdate:modelValue": k[2] || (k[2] = (V) => h(J(Lt).type, V))
12137
+ "onUpdate:modelValue": S[2] || (S[2] = (V) => h(J(Lt).type, V))
12138
12138
  }, null, 8, ["model-value", "options", "placeholder"])) : T("", !0),
12139
- S.value.length ? (p(), P($e, {
12139
+ k.value.length ? (p(), P($e, {
12140
12140
  key: 3,
12141
12141
  "model-value": O.filters[J(Lt).assignee],
12142
12142
  mode: "tags",
12143
- options: S.value,
12143
+ options: k.value,
12144
12144
  "close-on-select": !1,
12145
12145
  searchable: !0,
12146
12146
  class: "ao-feed__filter ao-feed__filter__assignees",
12147
12147
  placeholder: O.$t("feed.filters.assignee.placeholder"),
12148
- "onUpdate:modelValue": k[3] || (k[3] = (V) => h(J(Lt).assignee, V))
12148
+ "onUpdate:modelValue": S[3] || (S[3] = (V) => h(J(Lt).assignee, V))
12149
12149
  }, {
12150
12150
  tag: z(({
12151
12151
  option: V,
@@ -12155,7 +12155,7 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
12155
12155
  "user-name": V.label,
12156
12156
  "avatar-url": V.avatar,
12157
12157
  "is-closable": !0,
12158
- onClose: (y) => se(V, y)
12158
+ onClose: (b) => se(V, b)
12159
12159
  }, null, 8, ["user-name", "avatar-url", "onClose"])
12160
12160
  ]),
12161
12161
  _: 1
@@ -12171,7 +12171,7 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
12171
12171
  label: O.$t("feed.filters.showsOnlyImportant.label"),
12172
12172
  role: "checkbox",
12173
12173
  "aria-checked": O.showsOnlyImportant,
12174
- onClick: k[4] || (k[4] = (V) => O.$emit("update:showsOnlyImportant", !O.showsOnlyImportant))
12174
+ onClick: S[4] || (S[4] = (V) => O.$emit("update:showsOnlyImportant", !O.showsOnlyImportant))
12175
12175
  }, null, 8, ["icon-name", "label", "aria-checked"]),
12176
12176
  M(ue, {
12177
12177
  class: "ao-feed__show-archived",
@@ -12183,7 +12183,7 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
12183
12183
  label: O.$t("feed.filters.showsArchivedActivities.label"),
12184
12184
  role: "checkbox",
12185
12185
  "aria-checked": O.showsArchivedActivities,
12186
- onClick: k[5] || (k[5] = (V) => O.$emit("update:showsArchivedActivities", !O.showsArchivedActivities))
12186
+ onClick: S[5] || (S[5] = (V) => O.$emit("update:showsArchivedActivities", !O.showsArchivedActivities))
12187
12187
  }, null, 8, ["icon-name", "label", "aria-checked"])
12188
12188
  ]),
12189
12189
  _: 1
@@ -12221,7 +12221,7 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
12221
12221
  "is-editable": O.isEditable,
12222
12222
  "attachment-enabled": O.attachmentEnabled,
12223
12223
  projects: w.value,
12224
- onClose: k[6] || (k[6] = () => i(null, null)),
12224
+ onClose: S[6] || (S[6] = () => i(null, null)),
12225
12225
  "onUpdate:activity": _,
12226
12226
  onAddSubtask: Z,
12227
12227
  onUpdateSubtask: Y,