@26lights/orcha 0.14.7 → 0.14.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/orcha.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as x, openBlock as c, createBlock as N, unref as q, mergeProps as Ve, createElementBlock as h, createElementVNode as v, pushScopeId as ln, popScopeId as rn, createStaticVNode as un, computed as y, resolveDynamicComponent as tt, normalizeClass as G, renderSlot as te, toDisplayString as z, createCommentVNode as A, ref as J, watch as le, nextTick as Ee, withKeys as Ye, toHandlers as dn, withCtx as j, createTextVNode as e1, createVNode as T, normalizeStyle as ra, withModifiers as _e, createSlots as t1, Fragment as fe, renderList as be, onMounted as Dt, onBeforeUnmount as cn, onUnmounted as ua, toRefs as $e, getCurrentInstance as at, toRef as ct, normalizeProps as fn, guardReactiveProps as vn, onUpdated as pn, withDirectives as ft, vModelText as Et, vModelCheckbox as hn, Teleport as It, resolveComponent as mn, getCurrentScope as Cn, onScopeDispose as _n, provide as gn } from "vue";
1
+ import { defineComponent as x, openBlock as c, createBlock as N, unref as q, mergeProps as Ve, createElementBlock as h, createElementVNode as v, pushScopeId as ln, popScopeId as rn, createStaticVNode as un, computed as w, resolveDynamicComponent as tt, normalizeClass as G, renderSlot as te, toDisplayString as z, createCommentVNode as A, ref as J, watch as re, nextTick as Ee, withKeys as Ye, toHandlers as dn, withCtx as j, createTextVNode as e1, createVNode as T, normalizeStyle as ra, withModifiers as _e, createSlots as t1, Fragment as fe, renderList as be, onMounted as Dt, onBeforeUnmount as cn, onUnmounted as ua, toRefs as $e, getCurrentInstance as at, toRef as ct, normalizeProps as fn, guardReactiveProps as vn, onUpdated as pn, withDirectives as ft, vModelText as Et, vModelCheckbox as hn, Teleport as It, resolveComponent as mn, getCurrentScope as Cn, onScopeDispose as _n, provide as gn } from "vue";
2
2
  import { RouterView as bn } from "vue-router";
3
3
  import Xe from "vuedraggable";
4
4
  const Y4 = /* @__PURE__ */ x({
@@ -1141,7 +1141,7 @@ const Ju = /* @__PURE__ */ B(Ku, [["render", Qu]]), ed = /* @__PURE__ */ Object.
1141
1141
  size: { default: a1.MD }
1142
1142
  },
1143
1143
  setup(a) {
1144
- const e = a, t = y(() => ed[e.name]);
1144
+ const e = a, t = w(() => ed[e.name]);
1145
1145
  return (s, n) => (c(), N(tt(t.value), {
1146
1146
  class: G(["ao-icon", `ao-icon--${s.size}`])
1147
1147
  }, null, 8, ["class"]));
@@ -1165,7 +1165,7 @@ const nd = ["type"], sd = {
1165
1165
  corners: { default: () => da.ROUNDED }
1166
1166
  },
1167
1167
  setup(a) {
1168
- const e = a, t = y(() => e.size), s = y(() => e.isLoading ? "Loading" : e.iconName);
1168
+ const e = a, t = w(() => e.size), s = w(() => e.isLoading ? "Loading" : e.iconName);
1169
1169
  return (n, o) => (c(), h("button", {
1170
1170
  type: n.type,
1171
1171
  class: G([
@@ -1192,7 +1192,7 @@ const nd = ["type"], sd = {
1192
1192
  }
1193
1193
  });
1194
1194
  function ca(a) {
1195
- const e = J(!1), t = J(""), s = y(() => "value" in a.value ? "value" : "innerHTML"), n = () => {
1195
+ const e = J(!1), t = J(""), s = w(() => "value" in a.value ? "value" : "innerHTML"), n = () => {
1196
1196
  e.value = !e.value;
1197
1197
  }, o = (r) => {
1198
1198
  e.value = r;
@@ -1206,7 +1206,7 @@ function ca(a) {
1206
1206
  r(u, d);
1207
1207
  });
1208
1208
  };
1209
- return le(e, async (r) => {
1209
+ return re(e, async (r) => {
1210
1210
  await Ee(() => {
1211
1211
  setTimeout(() => {
1212
1212
  a.value && r && (a.value.focus(), t.value = a.value[s.value]);
@@ -1232,7 +1232,7 @@ const me = /* @__PURE__ */ x({
1232
1232
  },
1233
1233
  emits: ["update:title", "toggle-is-editing"],
1234
1234
  setup(a, { emit: e }) {
1235
- const t = a, s = J(null), { isEditing: n, setIsEditing: o, onUpdate: i, onDiscard: l } = ca(s), r = y(() => n.value ? "input" : t.tag || `h${t.level}`), d = y(() => t.isEditable ? n.value ? {
1235
+ const t = a, s = J(null), { isEditing: n, setIsEditing: o, onUpdate: i, onDiscard: l } = ca(s), r = w(() => n.value ? "input" : t.tag || `h${t.level}`), d = w(() => t.isEditable ? n.value ? {
1236
1236
  change: u,
1237
1237
  click: (M) => M.stopPropagation(),
1238
1238
  blur: p
@@ -1244,12 +1244,12 @@ const me = /* @__PURE__ */ x({
1244
1244
  e("update:title", g);
1245
1245
  }), f = l(), p = async () => {
1246
1246
  n.value && o(!1);
1247
- }, m = () => {
1247
+ }, C = () => {
1248
1248
  e("toggle-is-editing", !1);
1249
1249
  }, $ = (M) => {
1250
1250
  M.stopPropagation(), n.value || o(!0);
1251
1251
  };
1252
- return le(
1252
+ return re(
1253
1253
  () => t.isEditable,
1254
1254
  (M) => {
1255
1255
  M || f();
@@ -1271,7 +1271,7 @@ const me = /* @__PURE__ */ x({
1271
1271
  type: q(n) ? "text" : null,
1272
1272
  value: q(n) ? M.title : null,
1273
1273
  tabindex: "0",
1274
- onKeyup: Ye(m, ["enter"])
1274
+ onKeyup: Ye(C, ["enter"])
1275
1275
  }, dn(d.value), {
1276
1276
  onKeydown: Ye(q(f), ["esc"])
1277
1277
  }), {
@@ -1381,7 +1381,7 @@ const E1 = /* @__PURE__ */ x({
1381
1381
  },
1382
1382
  emits: ["click", "close"],
1383
1383
  setup(a) {
1384
- const e = a, t = y(() => e.clickable ? "button" : "span"), s = y(
1384
+ const e = a, t = w(() => e.clickable ? "button" : "span"), s = w(
1385
1385
  () => t.value === "button" ? { type: "button" } : {}
1386
1386
  );
1387
1387
  return (n, o) => (c(), h("div", {
@@ -1549,28 +1549,28 @@ function Gt(a, e) {
1549
1549
  var u = n1(), f = Ke((t = (s = (n = (o = e == null ? void 0 : e.weekStartsOn) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && n !== void 0 ? n : u.weekStartsOn) !== null && s !== void 0 ? s : (r = u.locale) === null || r === void 0 || (d = r.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && t !== void 0 ? t : 0);
1550
1550
  if (!(f >= 0 && f <= 6))
1551
1551
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1552
- var p = He(a), m = p.getUTCDay(), $ = (m < f ? 7 : 0) + m - f;
1552
+ var p = He(a), C = p.getUTCDay(), $ = (C < f ? 7 : 0) + C - f;
1553
1553
  return p.setUTCDate(p.getUTCDate() - $), p.setUTCHours(0, 0, 0, 0), p;
1554
1554
  }
1555
1555
  function Ca(a, e) {
1556
1556
  var t, s, n, o, i, l, r, d;
1557
1557
  ge(1, arguments);
1558
- var u = He(a), f = u.getUTCFullYear(), p = n1(), m = Ke((t = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : p.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = p.locale) === null || r === void 0 || (d = r.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
1559
- if (!(m >= 1 && m <= 7))
1558
+ var u = He(a), f = u.getUTCFullYear(), p = n1(), C = Ke((t = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : p.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = p.locale) === null || r === void 0 || (d = r.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
1559
+ if (!(C >= 1 && C <= 7))
1560
1560
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1561
1561
  var $ = /* @__PURE__ */ new Date(0);
1562
- $.setUTCFullYear(f + 1, 0, m), $.setUTCHours(0, 0, 0, 0);
1562
+ $.setUTCFullYear(f + 1, 0, C), $.setUTCHours(0, 0, 0, 0);
1563
1563
  var M = Gt($, e), S = /* @__PURE__ */ new Date(0);
1564
- S.setUTCFullYear(f, 0, m), S.setUTCHours(0, 0, 0, 0);
1564
+ S.setUTCFullYear(f, 0, C), S.setUTCHours(0, 0, 0, 0);
1565
1565
  var _ = Gt(S, e);
1566
1566
  return u.getTime() >= M.getTime() ? f + 1 : u.getTime() >= _.getTime() ? f : f - 1;
1567
1567
  }
1568
1568
  function Td(a, e) {
1569
1569
  var t, s, n, o, i, l, r, d;
1570
1570
  ge(1, arguments);
1571
- var u = n1(), f = Ke((t = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : u.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = u.locale) === null || r === void 0 || (d = r.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), p = Ca(a, e), m = /* @__PURE__ */ new Date(0);
1572
- m.setUTCFullYear(p, 0, f), m.setUTCHours(0, 0, 0, 0);
1573
- var $ = Gt(m, e);
1571
+ var u = n1(), f = Ke((t = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : u.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = u.locale) === null || r === void 0 || (d = r.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), p = Ca(a, e), C = /* @__PURE__ */ new Date(0);
1572
+ C.setUTCFullYear(p, 0, f), C.setUTCHours(0, 0, 0, 0);
1573
+ var $ = Gt(C, e);
1574
1574
  return $;
1575
1575
  }
1576
1576
  var Ed = 6048e5;
@@ -2685,12 +2685,12 @@ var Mc = {
2685
2685
  const kc = Mc;
2686
2686
  var Ac = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Sc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Tc = /^'([^]*?)'?$/, Ec = /''/g, Ic = /[a-zA-Z]/;
2687
2687
  function Oc(a, e, t) {
2688
- var s, n, o, i, l, r, d, u, f, p, m, $, M, S, _, g, V, R;
2688
+ var s, n, o, i, l, r, d, u, f, p, C, $, M, S, _, g, V, R;
2689
2689
  ge(2, arguments);
2690
2690
  var K = String(e), D = n1(), X = (s = (n = t == null ? void 0 : t.locale) !== null && n !== void 0 ? n : D.locale) !== null && s !== void 0 ? s : kc, ae = Ke((o = (i = (l = (r = t == null ? void 0 : t.firstWeekContainsDate) !== null && r !== void 0 ? r : t == null || (d = t.locale) === null || d === void 0 || (u = d.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && l !== void 0 ? l : D.firstWeekContainsDate) !== null && i !== void 0 ? i : (f = D.locale) === null || f === void 0 || (p = f.options) === null || p === void 0 ? void 0 : p.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
2691
2691
  if (!(ae >= 1 && ae <= 7))
2692
2692
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
2693
- var I = Ke((m = ($ = (M = (S = t == null ? void 0 : t.weekStartsOn) !== null && S !== void 0 ? S : t == null || (_ = t.locale) === null || _ === void 0 || (g = _.options) === null || g === void 0 ? void 0 : g.weekStartsOn) !== null && M !== void 0 ? M : D.weekStartsOn) !== null && $ !== void 0 ? $ : (V = D.locale) === null || V === void 0 || (R = V.options) === null || R === void 0 ? void 0 : R.weekStartsOn) !== null && m !== void 0 ? m : 0);
2693
+ var I = Ke((C = ($ = (M = (S = t == null ? void 0 : t.weekStartsOn) !== null && S !== void 0 ? S : t == null || (_ = t.locale) === null || _ === void 0 || (g = _.options) === null || g === void 0 ? void 0 : g.weekStartsOn) !== null && M !== void 0 ? M : D.weekStartsOn) !== null && $ !== void 0 ? $ : (V = D.locale) === null || V === void 0 || (R = V.options) === null || R === void 0 ? void 0 : R.weekStartsOn) !== null && C !== void 0 ? C : 0);
2694
2694
  if (!(I >= 0 && I <= 6))
2695
2695
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
2696
2696
  if (!X.localize)
@@ -2706,23 +2706,23 @@ function Oc(a, e, t) {
2706
2706
  locale: X,
2707
2707
  _originalDate: ee
2708
2708
  }, ue = K.match(Sc).map(function(ne) {
2709
- var re = ne[0];
2710
- if (re === "p" || re === "P") {
2711
- var ie = Pd[re];
2709
+ var le = ne[0];
2710
+ if (le === "p" || le === "P") {
2711
+ var ie = Pd[le];
2712
2712
  return ie(ne, X.formatLong);
2713
2713
  }
2714
2714
  return ne;
2715
2715
  }).join("").match(Ac).map(function(ne) {
2716
2716
  if (ne === "''")
2717
2717
  return "'";
2718
- var re = ne[0];
2719
- if (re === "'")
2718
+ var le = ne[0];
2719
+ if (le === "'")
2720
2720
  return Lc(ne);
2721
- var ie = Vd[re];
2721
+ var ie = Vd[le];
2722
2722
  if (ie)
2723
2723
  return !(t != null && t.useAdditionalWeekYearTokens) && Ud(ne) && J1(ne, e, String(a)), !(t != null && t.useAdditionalDayOfYearTokens) && Rd(ne) && J1(ne, e, String(a)), ie(k, ne, X.localize, P);
2724
- if (re.match(Ic))
2725
- throw new RangeError("Format string contains an unescaped latin alphabet character `" + re + "`");
2724
+ if (le.match(Ic))
2725
+ throw new RangeError("Format string contains an unescaped latin alphabet character `" + le + "`");
2726
2726
  return ne;
2727
2727
  }).join("");
2728
2728
  return ue;
@@ -3434,10 +3434,10 @@ function $a() {
3434
3434
  break;
3435
3435
  $ = M, r = S;
3436
3436
  }
3437
- let p = n.middleInternal(i, l, r, d), m;
3438
- for (let $ = p.getScale(); $ > 0; $ = m) {
3439
- m = $ - 1;
3440
- const M = p.setScale(m);
3437
+ let p = n.middleInternal(i, l, r, d), C;
3438
+ for (let $ = p.getScale(); $ > 0; $ = C) {
3439
+ C = $ - 1;
3440
+ const M = p.setScale(C);
3441
3441
  if (i.compareTo(M) >= 0 || M.compareTo(l) >= 0)
3442
3442
  break;
3443
3443
  p = M;
@@ -3806,7 +3806,7 @@ const V3 = ["type"], D3 = {
3806
3806
  corners: { default: () => da.ROUNDED }
3807
3807
  },
3808
3808
  setup(a) {
3809
- const e = a, t = y(() => e.size), s = y(() => e.isLoading ? "Loading" : e.iconName);
3809
+ const e = a, t = w(() => e.size), s = w(() => e.isLoading ? "Loading" : e.iconName);
3810
3810
  return (n, o) => (c(), h("button", {
3811
3811
  type: n.type,
3812
3812
  class: G([
@@ -3888,10 +3888,10 @@ const R3 = /* @__PURE__ */ x({
3888
3888
  milestones: {}
3889
3889
  },
3890
3890
  setup(a) {
3891
- const e = a, t = y(() => {
3891
+ const e = a, t = w(() => {
3892
3892
  var n;
3893
3893
  return (n = e.milestones) == null ? void 0 : n.length;
3894
- }), s = y(() => e.milestones ? Ma(e.milestones) : 0);
3894
+ }), s = w(() => e.milestones ? Ma(e.milestones) : 0);
3895
3895
  return (n, o) => (c(), N(O1, Ve({
3896
3896
  id: n.id,
3897
3897
  title: n.name,
@@ -3910,7 +3910,7 @@ const R3 = /* @__PURE__ */ x({
3910
3910
  activities: {}
3911
3911
  },
3912
3912
  setup(a) {
3913
- const e = a, t = y(() => {
3913
+ const e = a, t = w(() => {
3914
3914
  var s;
3915
3915
  return ((s = e.activities) == null ? void 0 : s.length) || 0;
3916
3916
  });
@@ -3997,7 +3997,7 @@ const R3 = /* @__PURE__ */ x({
3997
3997
  tasks: {}
3998
3998
  },
3999
3999
  setup(a) {
4000
- const e = a, t = y(() => {
4000
+ const e = a, t = w(() => {
4001
4001
  var s;
4002
4002
  return ((s = e.tasks) == null ? void 0 : s.length) || 0;
4003
4003
  });
@@ -4219,47 +4219,47 @@ function aa(a, e, t) {
4219
4219
  floating: n
4220
4220
  } = a;
4221
4221
  const o = D1(e), i = Sa(e), l = Aa(i), r = ht(e), d = o === "y", u = s.x + s.width / 2 - n.width / 2, f = s.y + s.height / 2 - n.height / 2, p = s[l] / 2 - n[l] / 2;
4222
- let m;
4222
+ let C;
4223
4223
  switch (r) {
4224
4224
  case "top":
4225
- m = {
4225
+ C = {
4226
4226
  x: u,
4227
4227
  y: s.y - n.height
4228
4228
  };
4229
4229
  break;
4230
4230
  case "bottom":
4231
- m = {
4231
+ C = {
4232
4232
  x: u,
4233
4233
  y: s.y + s.height
4234
4234
  };
4235
4235
  break;
4236
4236
  case "right":
4237
- m = {
4237
+ C = {
4238
4238
  x: s.x + s.width,
4239
4239
  y: f
4240
4240
  };
4241
4241
  break;
4242
4242
  case "left":
4243
- m = {
4243
+ C = {
4244
4244
  x: s.x - n.width,
4245
4245
  y: f
4246
4246
  };
4247
4247
  break;
4248
4248
  default:
4249
- m = {
4249
+ C = {
4250
4250
  x: s.x,
4251
4251
  y: s.y
4252
4252
  };
4253
4253
  }
4254
4254
  switch (u1(e)) {
4255
4255
  case "start":
4256
- m[i] -= p * (t && d ? -1 : 1);
4256
+ C[i] -= p * (t && d ? -1 : 1);
4257
4257
  break;
4258
4258
  case "end":
4259
- m[i] += p * (t && d ? -1 : 1);
4259
+ C[i] += p * (t && d ? -1 : 1);
4260
4260
  break;
4261
4261
  }
4262
- return m;
4262
+ return C;
4263
4263
  }
4264
4264
  const l0 = async (a, e, t) => {
4265
4265
  const {
@@ -4275,7 +4275,7 @@ const l0 = async (a, e, t) => {
4275
4275
  }), {
4276
4276
  x: u,
4277
4277
  y: f
4278
- } = aa(d, s, r), p = s, m = {}, $ = 0;
4278
+ } = aa(d, s, r), p = s, C = {}, $ = 0;
4279
4279
  for (let M = 0; M < l.length; M++) {
4280
4280
  const {
4281
4281
  name: S,
@@ -4291,7 +4291,7 @@ const l0 = async (a, e, t) => {
4291
4291
  initialPlacement: s,
4292
4292
  placement: p,
4293
4293
  strategy: n,
4294
- middlewareData: m,
4294
+ middlewareData: C,
4295
4295
  rects: d,
4296
4296
  platform: i,
4297
4297
  elements: {
@@ -4299,10 +4299,10 @@ const l0 = async (a, e, t) => {
4299
4299
  floating: e
4300
4300
  }
4301
4301
  });
4302
- if (u = g ?? u, f = V ?? f, m = {
4303
- ...m,
4302
+ if (u = g ?? u, f = V ?? f, C = {
4303
+ ...C,
4304
4304
  [S]: {
4305
- ...m[S],
4305
+ ...C[S],
4306
4306
  ...R
4307
4307
  }
4308
4308
  }, K && $ <= 50) {
@@ -4322,7 +4322,7 @@ const l0 = async (a, e, t) => {
4322
4322
  y: f,
4323
4323
  placement: p,
4324
4324
  strategy: n,
4325
- middlewareData: m
4325
+ middlewareData: C
4326
4326
  };
4327
4327
  };
4328
4328
  async function Ta(a, e) {
@@ -4340,8 +4340,8 @@ async function Ta(a, e) {
4340
4340
  rootBoundary: u = "viewport",
4341
4341
  elementContext: f = "floating",
4342
4342
  altBoundary: p = !1,
4343
- padding: m = 0
4344
- } = V1(e, a), $ = o0(m), S = l[p ? f === "floating" ? "reference" : "floating" : f], _ = Qt(await o.getClippingRect({
4343
+ padding: C = 0
4344
+ } = V1(e, a), $ = o0(C), S = l[p ? f === "floating" ? "reference" : "floating" : f], _ = Qt(await o.getClippingRect({
4345
4345
  element: (t = await (o.isElement == null ? void 0 : o.isElement(S))) == null || t ? S : S.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
4346
4346
  boundary: d,
4347
4347
  rootBoundary: u,
@@ -4385,7 +4385,7 @@ const r0 = function(a) {
4385
4385
  mainAxis: u = !0,
4386
4386
  crossAxis: f = !0,
4387
4387
  fallbackPlacements: p,
4388
- fallbackStrategy: m = "bestFit",
4388
+ fallbackStrategy: C = "bestFit",
4389
4389
  fallbackAxisSideDirection: $ = "none",
4390
4390
  flipAlignment: M = !0,
4391
4391
  ...S
@@ -4416,12 +4416,12 @@ const r0 = function(a) {
4416
4416
  placement: P
4417
4417
  }
4418
4418
  };
4419
- let ue = (ee = ae.filter((ne) => ne.overflows[0] <= 0).sort((ne, re) => ne.overflows[1] - re.overflows[1])[0]) == null ? void 0 : ee.placement;
4419
+ let ue = (ee = ae.filter((ne) => ne.overflows[0] <= 0).sort((ne, le) => ne.overflows[1] - le.overflows[1])[0]) == null ? void 0 : ee.placement;
4420
4420
  if (!ue)
4421
- switch (m) {
4421
+ switch (C) {
4422
4422
  case "bestFit": {
4423
4423
  var b;
4424
- const ne = (b = ae.map((re) => [re.placement, re.overflows.filter((ie) => ie > 0).reduce((ie, O) => ie + O, 0)]).sort((re, ie) => re[1] - ie[1])[0]) == null ? void 0 : b[0];
4424
+ const ne = (b = ae.map((le) => [le.placement, le.overflows.filter((ie) => ie > 0).reduce((ie, O) => ie + O, 0)]).sort((le, ie) => le[1] - ie[1])[0]) == null ? void 0 : b[0];
4425
4425
  ne && (ue = ne);
4426
4426
  break;
4427
4427
  }
@@ -4455,22 +4455,22 @@ const r0 = function(a) {
4455
4455
  ...l
4456
4456
  } = V1(a, e), r = await Ta(e, l), d = ht(t), u = u1(t), f = D1(t) === "y", {
4457
4457
  width: p,
4458
- height: m
4458
+ height: C
4459
4459
  } = s.floating;
4460
4460
  let $, M;
4461
4461
  d === "top" || d === "bottom" ? ($ = d, M = u === (await (n.isRTL == null ? void 0 : n.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (M = d, $ = u === "end" ? "top" : "bottom");
4462
- const S = m - r[$], _ = p - r[M], g = !e.middlewareData.shift;
4462
+ const S = C - r[$], _ = p - r[M], g = !e.middlewareData.shift;
4463
4463
  let V = S, R = _;
4464
4464
  if (f) {
4465
4465
  const D = p - r.left - r.right;
4466
4466
  R = u || g ? Lt(_, D) : D;
4467
4467
  } else {
4468
- const D = m - r.top - r.bottom;
4468
+ const D = C - r.top - r.bottom;
4469
4469
  V = u || g ? Lt(S, D) : D;
4470
4470
  }
4471
4471
  if (g && !u) {
4472
4472
  const D = ke(r.left, 0), X = ke(r.right, 0), ae = ke(r.top, 0), I = ke(r.bottom, 0);
4473
- f ? R = p - 2 * (D !== 0 || X !== 0 ? D + X : ke(r.left, r.right)) : V = m - 2 * (ae !== 0 || I !== 0 ? ae + I : ke(r.top, r.bottom));
4473
+ f ? R = p - 2 * (D !== 0 || X !== 0 ? D + X : ke(r.left, r.right)) : V = C - 2 * (ae !== 0 || I !== 0 ? ae + I : ke(r.top, r.bottom));
4474
4474
  }
4475
4475
  await i({
4476
4476
  ...e,
@@ -4478,7 +4478,7 @@ const r0 = function(a) {
4478
4478
  availableHeight: V
4479
4479
  });
4480
4480
  const K = await n.getDimensions(o.floating);
4481
- return p !== K.width || m !== K.height ? {
4481
+ return p !== K.width || C !== K.height ? {
4482
4482
  reset: {
4483
4483
  rects: !0
4484
4484
  }
@@ -4621,9 +4621,9 @@ function et(a, e, t, s) {
4621
4621
  const l = v0(o, t, s) ? La(o) : Ge(0);
4622
4622
  let r = (n.left + l.x) / i.x, d = (n.top + l.y) / i.y, u = n.width / i.x, f = n.height / i.y;
4623
4623
  if (o) {
4624
- const p = we(o), m = s && je(s) ? we(s) : s;
4624
+ const p = we(o), C = s && je(s) ? we(s) : s;
4625
4625
  let $ = p.frameElement;
4626
- for (; $ && s && m !== p; ) {
4626
+ for (; $ && s && C !== p; ) {
4627
4627
  const M = vt($), S = $.getBoundingClientRect(), _ = Te($), g = S.left + ($.clientLeft + parseFloat(_.paddingLeft)) * M.x, V = S.top + ($.clientTop + parseFloat(_.paddingTop)) * M.y;
4628
4628
  r *= M.x, d *= M.y, u *= M.x, f *= M.y, r += g, d += V, $ = we($).frameElement;
4629
4629
  }
@@ -4836,8 +4836,8 @@ function A0(a, e) {
4836
4836
  } = a.getBoundingClientRect();
4837
4837
  if (l || e(), !f || !p)
4838
4838
  return;
4839
- const m = zt(u), $ = zt(n.clientWidth - (d + f)), M = zt(n.clientHeight - (u + p)), S = zt(d), g = {
4840
- rootMargin: -m + "px " + -$ + "px " + -M + "px " + -S + "px",
4839
+ const C = zt(u), $ = zt(n.clientWidth - (d + f)), M = zt(n.clientHeight - (u + p)), S = zt(d), g = {
4840
+ rootMargin: -C + "px " + -$ + "px " + -M + "px " + -S + "px",
4841
4841
  threshold: ke(0, Lt(1, r)) || 1
4842
4842
  };
4843
4843
  let V = !0;
@@ -4880,13 +4880,13 @@ function S0(a, e, t, s) {
4880
4880
  }), o && _.addEventListener("resize", t);
4881
4881
  });
4882
4882
  const f = d && l ? A0(d, t) : null;
4883
- let p = -1, m = null;
4884
- i && (m = new ResizeObserver((_) => {
4883
+ let p = -1, C = null;
4884
+ i && (C = new ResizeObserver((_) => {
4885
4885
  let [g] = _;
4886
- g && g.target === d && m && (m.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
4887
- m && m.observe(e);
4886
+ g && g.target === d && C && (C.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
4887
+ C && C.observe(e);
4888
4888
  })), t();
4889
- }), d && !r && m.observe(d), m.observe(e));
4889
+ }), d && !r && C.observe(d), C.observe(e));
4890
4890
  let $, M = r ? et(a) : null;
4891
4891
  r && S();
4892
4892
  function S() {
@@ -4896,7 +4896,7 @@ function S0(a, e, t, s) {
4896
4896
  return t(), () => {
4897
4897
  u.forEach((_) => {
4898
4898
  n && _.removeEventListener("scroll", t), o && _.removeEventListener("resize", t);
4899
- }), f && f(), m && m.disconnect(), m = null, r && cancelAnimationFrame($);
4899
+ }), f && f(), C && C.disconnect(), C = null, r && cancelAnimationFrame($);
4900
4900
  };
4901
4901
  }
4902
4902
  const T0 = (a, e, t) => {
@@ -4951,8 +4951,8 @@ const T0 = (a, e, t) => {
4951
4951
  fallbackPlacements: ["top-start", "bottom-start"]
4952
4952
  }),
4953
4953
  u0({
4954
- apply({ availableWidth: f, availableHeight: p, elements: m, rects: $ }) {
4955
- Object.assign(m.floating.style, {
4954
+ apply({ availableWidth: f, availableHeight: p, elements: C, rects: $ }) {
4955
+ Object.assign(C.floating.style, {
4956
4956
  minHeight: `${n.value}px`,
4957
4957
  width: `${$.reference.width}px`,
4958
4958
  maxWidth: `${f}px`,
@@ -4983,15 +4983,15 @@ function Le(a) {
4983
4983
  function I0(a, e, t) {
4984
4984
  const { object: s, valueProp: n, mode: o } = $e(a), i = at().proxy, l = t.iv, r = (f, p = !0) => {
4985
4985
  l.value = u(f);
4986
- const m = d(f);
4987
- e.emit("change", m, i), p && (e.emit("input", m), e.emit("update:modelValue", m));
4986
+ const C = d(f);
4987
+ e.emit("change", C, i), p && (e.emit("input", C), e.emit("update:modelValue", C));
4988
4988
  }, d = (f) => s.value || Le(f) ? f : Array.isArray(f) ? f.map((p) => p[n.value]) : f[n.value], u = (f) => Le(f) ? o.value === "single" ? {} : [] : f;
4989
4989
  return {
4990
4990
  update: r
4991
4991
  };
4992
4992
  }
4993
4993
  function O0(a, e) {
4994
- const { value: t, modelValue: s, mode: n, valueProp: o } = $e(a), i = J(n.value !== "single" ? [] : {}), l = s && s.value !== void 0 ? s : t, r = y(() => n.value === "single" ? i.value[o.value] : i.value.map((u) => u[o.value])), d = y(() => n.value !== "single" ? i.value.map((u) => u[o.value]).join(",") : i.value[o.value]);
4994
+ const { value: t, modelValue: s, mode: n, valueProp: o } = $e(a), i = J(n.value !== "single" ? [] : {}), l = s && s.value !== void 0 ? s : t, r = w(() => n.value === "single" ? i.value[o.value] : i.value.map((u) => u[o.value])), d = w(() => n.value !== "single" ? i.value.map((u) => u[o.value]).join(",") : i.value[o.value]);
4995
4995
  return {
4996
4996
  iv: i,
4997
4997
  internalValue: i,
@@ -5004,23 +5004,23 @@ function O0(a, e) {
5004
5004
  function L0(a, e, t) {
5005
5005
  const { regex: s } = $e(a), n = at().proxy, o = t.isOpen, i = t.open, l = J(null), r = J(null), d = () => {
5006
5006
  l.value = "";
5007
- }, u = (m) => {
5008
- l.value = m.target.value;
5009
- }, f = (m) => {
5007
+ }, u = (C) => {
5008
+ l.value = C.target.value;
5009
+ }, f = (C) => {
5010
5010
  if (s && s.value) {
5011
5011
  let $ = s.value;
5012
- typeof $ == "string" && ($ = new RegExp($)), m.key.match($) || m.preventDefault();
5012
+ typeof $ == "string" && ($ = new RegExp($)), C.key.match($) || C.preventDefault();
5013
5013
  }
5014
- }, p = (m) => {
5014
+ }, p = (C) => {
5015
5015
  if (s && s.value) {
5016
- let M = (m.clipboardData || /* istanbul ignore next */
5016
+ let M = (C.clipboardData || /* istanbul ignore next */
5017
5017
  window.clipboardData).getData("Text"), S = s.value;
5018
- typeof S == "string" && (S = new RegExp(S)), M.split("").every((_) => !!_.match(S)) || m.preventDefault();
5018
+ typeof S == "string" && (S = new RegExp(S)), M.split("").every((_) => !!_.match(S)) || C.preventDefault();
5019
5019
  }
5020
- e.emit("paste", m, n);
5020
+ e.emit("paste", C, n);
5021
5021
  };
5022
- return le(l, (m) => {
5023
- !o.value && m && i(), e.emit("search-change", m, n);
5022
+ return re(l, (C) => {
5023
+ !o.value && C && i(), e.emit("search-change", C, n);
5024
5024
  }), {
5025
5025
  search: l,
5026
5026
  input: r,
@@ -5066,7 +5066,7 @@ function P0(a, e, t) {
5066
5066
  label: u,
5067
5067
  appendNewTag: f,
5068
5068
  appendNewOption: p,
5069
- multipleLabel: m,
5069
+ multipleLabel: C,
5070
5070
  object: $,
5071
5071
  loading: M,
5072
5072
  delay: S,
@@ -5085,67 +5085,67 @@ function P0(a, e, t) {
5085
5085
  closeOnDeselect: P,
5086
5086
  groups: ue,
5087
5087
  reverse: ne,
5088
- infinite: re,
5088
+ infinite: le,
5089
5089
  groupOptions: ie,
5090
5090
  groupHideEmpty: O,
5091
5091
  groupSelect: L,
5092
5092
  onCreate: W,
5093
- disabledProp: w,
5093
+ disabledProp: y,
5094
5094
  searchStart: Y,
5095
5095
  searchFilter: he
5096
- } = $e(a), Z = at().proxy, F = t.iv, E = t.ev, U = t.search, Ce = t.clearSearch, Pe = t.update, Na = t.pointer, st = t.clearPointer, Ra = t.focus, Ua = t.deactivate, it = t.close, ja = t.localize, gt = J([]), Fe = J([]), Ie = J(!1), f1 = J(null), v1 = J(re.value && i.value === -1 ? 10 : i.value), j1 = y(() => r.value || d.value || !1), Za = y(() => f.value !== void 0 ? f.value : p.value !== void 0 ? p.value : !0), qe = y(() => {
5096
+ } = $e(a), Z = at().proxy, F = t.iv, E = t.ev, U = t.search, Ce = t.clearSearch, Pe = t.update, Na = t.pointer, st = t.clearPointer, Ra = t.focus, Ua = t.deactivate, it = t.close, ja = t.localize, gt = J([]), Fe = J([]), Ie = J(!1), f1 = J(null), v1 = J(le.value && i.value === -1 ? 10 : i.value), j1 = w(() => r.value || d.value || !1), Za = w(() => f.value !== void 0 ? f.value : p.value !== void 0 ? p.value : !0), qe = w(() => {
5097
5097
  if (ue.value) {
5098
- let C = Rt.value || /* istanbul ignore next */
5098
+ let m = Rt.value || /* istanbul ignore next */
5099
5099
  [], H = [];
5100
- return C.forEach((se) => {
5100
+ return m.forEach((se) => {
5101
5101
  g1(se[ie.value]).forEach((ve) => {
5102
- H.push(Object.assign({}, ve, se[w.value] ? { [w.value]: !0 } : {}));
5102
+ H.push(Object.assign({}, ve, se[y.value] ? { [y.value]: !0 } : {}));
5103
5103
  });
5104
5104
  }), H;
5105
5105
  } else {
5106
- let C = g1(Fe.value || /* istanbul ignore next */
5106
+ let m = g1(Fe.value || /* istanbul ignore next */
5107
5107
  []);
5108
- return gt.value.length && (C = C.concat(gt.value)), C;
5108
+ return gt.value.length && (m = m.concat(gt.value)), m;
5109
5109
  }
5110
- }), Z1 = y(() => {
5111
- let C = qe.value;
5112
- return ne.value && (C = C.reverse()), ot.value.length && (C = ot.value.concat(C)), _1(C);
5113
- }), bt = y(() => {
5114
- let C = Z1.value;
5115
- return v1.value > 0 && (C = C.slice(0, v1.value)), C;
5116
- }), Rt = y(() => {
5110
+ }), Z1 = w(() => {
5111
+ let m = qe.value;
5112
+ return ne.value && (m = m.reverse()), ot.value.length && (m = ot.value.concat(m)), _1(m);
5113
+ }), bt = w(() => {
5114
+ let m = Z1.value;
5115
+ return v1.value > 0 && (m = m.slice(0, v1.value)), m;
5116
+ }), Rt = w(() => {
5117
5117
  if (!ue.value)
5118
5118
  return [];
5119
- let C = [], H = Fe.value || /* istanbul ignore next */
5119
+ let m = [], H = Fe.value || /* istanbul ignore next */
5120
5120
  [];
5121
- return gt.value.length && C.push({
5121
+ return gt.value.length && m.push({
5122
5122
  [ae.value]: " ",
5123
5123
  [ie.value]: [...gt.value],
5124
5124
  __CREATE__: !0
5125
- }), C.concat(H);
5126
- }), Fa = y(() => {
5127
- let C = [...Rt.value].map((H) => ({ ...H }));
5128
- return ot.value.length && (C[0] && C[0].__CREATE__ ? C[0][ie.value] = [...ot.value, ...C[0][ie.value]] : C = [{
5125
+ }), m.concat(H);
5126
+ }), Fa = w(() => {
5127
+ let m = [...Rt.value].map((H) => ({ ...H }));
5128
+ return ot.value.length && (m[0] && m[0].__CREATE__ ? m[0][ie.value] = [...ot.value, ...m[0][ie.value]] : m = [{
5129
5129
  [ae.value]: " ",
5130
5130
  [ie.value]: [...ot.value],
5131
5131
  __CREATE__: !0
5132
- }].concat(C)), C;
5133
- }), F1 = y(() => {
5132
+ }].concat(m)), m;
5133
+ }), F1 = w(() => {
5134
5134
  if (!ue.value)
5135
5135
  return [];
5136
- let C = Fa.value;
5137
- return sn((C || /* istanbul ignore next */
5136
+ let m = Fa.value;
5137
+ return sn((m || /* istanbul ignore next */
5138
5138
  []).map((H, se) => {
5139
5139
  const ve = g1(H[ie.value]);
5140
5140
  return {
5141
5141
  ...H,
5142
5142
  index: se,
5143
5143
  group: !0,
5144
- [ie.value]: _1(ve, !1).map((yt) => Object.assign({}, yt, H[w.value] ? { [w.value]: !0 } : {})),
5145
- __VISIBLE__: _1(ve).map((yt) => Object.assign({}, yt, H[w.value] ? { [w.value]: !0 } : {}))
5144
+ [ie.value]: _1(ve, !1).map((yt) => Object.assign({}, yt, H[y.value] ? { [y.value]: !0 } : {})),
5145
+ __VISIBLE__: _1(ve).map((yt) => Object.assign({}, yt, H[y.value] ? { [y.value]: !0 } : {}))
5146
5146
  };
5147
5147
  }));
5148
- }), p1 = y(() => {
5148
+ }), p1 = w(() => {
5149
5149
  switch (n.value) {
5150
5150
  case "single":
5151
5151
  return !Le(F.value[D.value]);
@@ -5153,12 +5153,12 @@ function P0(a, e, t) {
5153
5153
  case "tags":
5154
5154
  return !Le(F.value) && F.value.length > 0;
5155
5155
  }
5156
- }), qa = y(() => m !== void 0 && m.value !== void 0 ? m.value(F.value, Z) : F.value && F.value.length > 1 ? `${F.value.length} options selected` : "1 option selected"), Wa = y(() => !qe.value.length && !Ie.value && !ot.value.length), za = y(() => qe.value.length > 0 && bt.value.length == 0 && (U.value && ue.value || !ue.value)), ot = y(() => j1.value === !1 || !U.value ? [] : tn(U.value) !== -1 ? [] : [{
5156
+ }), qa = w(() => C !== void 0 && C.value !== void 0 ? C.value(F.value, Z) : F.value && F.value.length > 1 ? `${F.value.length} options selected` : "1 option selected"), Wa = w(() => !qe.value.length && !Ie.value && !ot.value.length), za = w(() => qe.value.length > 0 && bt.value.length == 0 && (U.value && ue.value || !ue.value)), ot = w(() => j1.value === !1 || !U.value ? [] : tn(U.value) !== -1 ? [] : [{
5157
5157
  [D.value]: U.value,
5158
5158
  [Oe.value]: U.value,
5159
5159
  [u.value]: U.value,
5160
5160
  __CREATE__: !0
5161
- }]), Oe = y(() => o.value || u.value), Ya = y(() => {
5161
+ }]), Oe = w(() => o.value || u.value), Ya = w(() => {
5162
5162
  switch (n.value) {
5163
5163
  case "single":
5164
5164
  return null;
@@ -5166,115 +5166,115 @@ function P0(a, e, t) {
5166
5166
  case "tags":
5167
5167
  return [];
5168
5168
  }
5169
- }), Ka = y(() => M.value || Ie.value), lt = (C) => {
5170
- switch (typeof C != "object" && (C = Ne(C)), n.value) {
5169
+ }), Ka = w(() => M.value || Ie.value), lt = (m) => {
5170
+ switch (typeof m != "object" && (m = Ne(m)), n.value) {
5171
5171
  case "single":
5172
- Pe(C);
5172
+ Pe(m);
5173
5173
  break;
5174
5174
  case "multiple":
5175
5175
  case "tags":
5176
- Pe(F.value.concat(C));
5176
+ Pe(F.value.concat(m));
5177
5177
  break;
5178
5178
  }
5179
- e.emit("select", q1(C), C, Z);
5180
- }, rt = (C) => {
5181
- switch (typeof C != "object" && (C = Ne(C)), n.value) {
5179
+ e.emit("select", q1(m), m, Z);
5180
+ }, rt = (m) => {
5181
+ switch (typeof m != "object" && (m = Ne(m)), n.value) {
5182
5182
  case "single":
5183
5183
  z1();
5184
5184
  break;
5185
5185
  case "tags":
5186
5186
  case "multiple":
5187
- Pe(Array.isArray(C) ? F.value.filter((H) => C.map((se) => se[D.value]).indexOf(H[D.value]) === -1) : F.value.filter((H) => H[D.value] != C[D.value]));
5187
+ Pe(Array.isArray(m) ? F.value.filter((H) => m.map((se) => se[D.value]).indexOf(H[D.value]) === -1) : F.value.filter((H) => H[D.value] != m[D.value]));
5188
5188
  break;
5189
5189
  }
5190
- e.emit("deselect", q1(C), C, Z);
5191
- }, q1 = (C) => $.value ? C : C[D.value], W1 = (C) => {
5192
- rt(C);
5193
- }, Ga = (C, H) => {
5190
+ e.emit("deselect", q1(m), m, Z);
5191
+ }, q1 = (m) => $.value ? m : m[D.value], W1 = (m) => {
5192
+ rt(m);
5193
+ }, Ga = (m, H) => {
5194
5194
  if (H.button !== 0) {
5195
5195
  H.preventDefault();
5196
5196
  return;
5197
5197
  }
5198
- W1(C);
5198
+ W1(m);
5199
5199
  }, z1 = () => {
5200
5200
  e.emit("clear", Z), Pe(Ya.value);
5201
- }, Be = (C) => {
5202
- if (C.group !== void 0)
5203
- return n.value === "single" ? !1 : en(C[ie.value]) && C[ie.value].length;
5201
+ }, Be = (m) => {
5202
+ if (m.group !== void 0)
5203
+ return n.value === "single" ? !1 : en(m[ie.value]) && m[ie.value].length;
5204
5204
  switch (n.value) {
5205
5205
  case "single":
5206
- return !Le(F.value) && F.value[D.value] == C[D.value];
5206
+ return !Le(F.value) && F.value[D.value] == m[D.value];
5207
5207
  case "tags":
5208
5208
  case "multiple":
5209
- return !Le(F.value) && F.value.map((H) => H[D.value]).indexOf(C[D.value]) !== -1;
5209
+ return !Le(F.value) && F.value.map((H) => H[D.value]).indexOf(m[D.value]) !== -1;
5210
5210
  }
5211
- }, h1 = (C) => C[w.value] === !0, m1 = () => ee === void 0 || ee.value === -1 || !p1.value && ee.value > 0 ? !1 : F.value.length >= ee.value, xa = (C) => {
5212
- if (!h1(C)) {
5213
- if (W && W.value && !Be(C) && C.__CREATE__ && (C = { ...C }, delete C.__CREATE__, C = W.value(C, Z), C instanceof Promise)) {
5214
- Ie.value = !0, C.then((H) => {
5211
+ }, h1 = (m) => m[y.value] === !0, m1 = () => ee === void 0 || ee.value === -1 || !p1.value && ee.value > 0 ? !1 : F.value.length >= ee.value, xa = (m) => {
5212
+ if (!h1(m)) {
5213
+ if (W && W.value && !Be(m) && m.__CREATE__ && (m = { ...m }, delete m.__CREATE__, m = W.value(m, Z), m instanceof Promise)) {
5214
+ Ie.value = !0, m.then((H) => {
5215
5215
  Ie.value = !1, Y1(H);
5216
5216
  });
5217
5217
  return;
5218
5218
  }
5219
- Y1(C);
5219
+ Y1(m);
5220
5220
  }
5221
- }, Y1 = (C) => {
5222
- switch (C.__CREATE__ && (C = { ...C }, delete C.__CREATE__), n.value) {
5221
+ }, Y1 = (m) => {
5222
+ switch (m.__CREATE__ && (m = { ...m }, delete m.__CREATE__), n.value) {
5223
5223
  case "single":
5224
- if (C && Be(C)) {
5225
- I.value && rt(C), P.value && (st(), it());
5224
+ if (m && Be(m)) {
5225
+ I.value && rt(m), P.value && (st(), it());
5226
5226
  return;
5227
5227
  }
5228
- C && C1(C), K.value && Ce(), k.value && (st(), it()), C && lt(C);
5228
+ m && C1(m), K.value && Ce(), k.value && (st(), it()), m && lt(m);
5229
5229
  break;
5230
5230
  case "multiple":
5231
- if (C && Be(C)) {
5232
- rt(C), P.value && (st(), it());
5231
+ if (m && Be(m)) {
5232
+ rt(m), P.value && (st(), it());
5233
5233
  return;
5234
5234
  }
5235
5235
  if (m1()) {
5236
5236
  e.emit("max", Z);
5237
5237
  return;
5238
5238
  }
5239
- C && (C1(C), lt(C)), K.value && Ce(), l.value && st(), k.value && it();
5239
+ m && (C1(m), lt(m)), K.value && Ce(), l.value && st(), k.value && it();
5240
5240
  break;
5241
5241
  case "tags":
5242
- if (C && Be(C)) {
5243
- rt(C), P.value && (st(), it());
5242
+ if (m && Be(m)) {
5243
+ rt(m), P.value && (st(), it());
5244
5244
  return;
5245
5245
  }
5246
5246
  if (m1()) {
5247
5247
  e.emit("max", Z);
5248
5248
  return;
5249
5249
  }
5250
- C && C1(C), K.value && Ce(), C && lt(C), l.value && st(), k.value && it();
5250
+ m && C1(m), K.value && Ce(), m && lt(m), l.value && st(), k.value && it();
5251
5251
  break;
5252
5252
  }
5253
5253
  k.value || Ra();
5254
- }, Xa = (C) => {
5255
- if (!(h1(C) || n.value === "single" || !L.value)) {
5254
+ }, Xa = (m) => {
5255
+ if (!(h1(m) || n.value === "single" || !L.value)) {
5256
5256
  switch (n.value) {
5257
5257
  case "multiple":
5258
5258
  case "tags":
5259
- Ja(C[ie.value]) ? rt(C[ie.value]) : lt(
5260
- C[ie.value].filter((H) => F.value.map((se) => se[D.value]).indexOf(H[D.value]) === -1).filter((H) => !H[w.value]).filter((H, se) => F.value.length + 1 + se <= ee.value || ee.value === -1)
5259
+ Ja(m[ie.value]) ? rt(m[ie.value]) : lt(
5260
+ m[ie.value].filter((H) => F.value.map((se) => se[D.value]).indexOf(H[D.value]) === -1).filter((H) => !H[y.value]).filter((H, se) => F.value.length + 1 + se <= ee.value || ee.value === -1)
5261
5261
  );
5262
5262
  break;
5263
5263
  }
5264
5264
  k.value && Ua();
5265
5265
  }
5266
- }, C1 = (C) => {
5267
- Ne(C[D.value]) === void 0 && j1.value && (e.emit("tag", C[D.value], Z), e.emit("option", C[D.value], Z), e.emit("create", C[D.value], Z), Za.value && nn(C), Ce());
5266
+ }, C1 = (m) => {
5267
+ Ne(m[D.value]) === void 0 && j1.value && (e.emit("tag", m[D.value], Z), e.emit("option", m[D.value], Z), e.emit("create", m[D.value], Z), Za.value && nn(m), Ce());
5268
5268
  }, Qa = () => {
5269
- n.value !== "single" && lt(bt.value.filter((C) => !C.disabled && !Be(C)));
5270
- }, Ja = (C) => C.find((H) => !Be(H) && !H[w.value]) === void 0, en = (C) => C.find((H) => !Be(H)) === void 0, Ne = (C) => qe.value[qe.value.map((H) => String(H[D.value])).indexOf(String(C))], tn = (C, H = !0) => qe.value.map((se) => parseInt(se[Oe.value]) == se[Oe.value] ? parseInt(se[Oe.value]) : se[Oe.value]).indexOf(
5271
- parseInt(C) == C ? parseInt(C) : C
5272
- ), an = (C) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && Be(C), nn = (C) => {
5273
- gt.value.push(C);
5274
- }, sn = (C) => O.value ? C.filter(
5269
+ n.value !== "single" && lt(bt.value.filter((m) => !m.disabled && !Be(m)));
5270
+ }, Ja = (m) => m.find((H) => !Be(H) && !H[y.value]) === void 0, en = (m) => m.find((H) => !Be(H)) === void 0, Ne = (m) => qe.value[qe.value.map((H) => String(H[D.value])).indexOf(String(m))], tn = (m, H = !0) => qe.value.map((se) => parseInt(se[Oe.value]) == se[Oe.value] ? parseInt(se[Oe.value]) : se[Oe.value]).indexOf(
5271
+ parseInt(m) == m ? parseInt(m) : m
5272
+ ), an = (m) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && Be(m), nn = (m) => {
5273
+ gt.value.push(m);
5274
+ }, sn = (m) => O.value ? m.filter(
5275
5275
  (H) => U.value ? H.__VISIBLE__.length : H[ie.value].length
5276
- ) : C.filter((H) => U.value ? H.__VISIBLE__.length : !0), _1 = (C, H = !0) => {
5277
- let se = C;
5276
+ ) : m.filter((H) => U.value ? H.__VISIBLE__.length : !0), _1 = (m, H = !0) => {
5277
+ let se = m;
5278
5278
  if (U.value && V.value) {
5279
5279
  let ve = he.value;
5280
5280
  ve || (ve = (yt, F4) => {
@@ -5283,17 +5283,17 @@ function P0(a, e, t) {
5283
5283
  }), se = se.filter(ve);
5284
5284
  }
5285
5285
  return l.value && H && (se = se.filter((ve) => !an(ve))), se;
5286
- }, g1 = (C) => {
5287
- let H = C;
5286
+ }, g1 = (m) => {
5287
+ let H = m;
5288
5288
  return D0(H) && (H = Object.keys(H).map((se) => {
5289
5289
  let ve = H[se];
5290
5290
  return { [D.value]: se, [Oe.value]: ve, [u.value]: ve };
5291
5291
  })), H = H.map((se) => typeof se == "object" ? se : { [D.value]: se, [Oe.value]: se, [u.value]: se }), H;
5292
5292
  }, Ut = () => {
5293
5293
  Le(E.value) || (F.value = Zt(E.value));
5294
- }, jt = (C) => (Ie.value = !0, new Promise((H, se) => {
5294
+ }, jt = (m) => (Ie.value = !0, new Promise((H, se) => {
5295
5295
  s.value(U.value, Z).then((ve) => {
5296
- Fe.value = ve || [], typeof C == "function" && C(ve), Ie.value = !1;
5296
+ Fe.value = ve || [], typeof m == "function" && m(ve), Ie.value = !1;
5297
5297
  }).catch((ve) => {
5298
5298
  console.error(ve), Fe.value = [], Ie.value = !1;
5299
5299
  }).finally(() => {
@@ -5302,34 +5302,34 @@ function P0(a, e, t) {
5302
5302
  })), b1 = () => {
5303
5303
  if (p1.value)
5304
5304
  if (n.value === "single") {
5305
- let C = Ne(F.value[D.value]);
5306
- if (C !== void 0) {
5307
- let H = C[u.value];
5305
+ let m = Ne(F.value[D.value]);
5306
+ if (m !== void 0) {
5307
+ let H = m[u.value];
5308
5308
  F.value[u.value] = H, $.value && (E.value[u.value] = H);
5309
5309
  }
5310
5310
  } else
5311
- F.value.forEach((C, H) => {
5311
+ F.value.forEach((m, H) => {
5312
5312
  let se = Ne(F.value[H][D.value]);
5313
5313
  if (se !== void 0) {
5314
5314
  let ve = se[u.value];
5315
5315
  F.value[H][u.value] = ve, $.value && (E.value[H][u.value] = ve);
5316
5316
  }
5317
5317
  });
5318
- }, on = (C) => {
5319
- jt(C);
5320
- }, Zt = (C) => Le(C) ? n.value === "single" ? {} : [] : $.value ? C : n.value === "single" ? Ne(C) || (X.value ? {
5321
- [u.value]: C,
5322
- [D.value]: C,
5323
- [Oe.value]: C
5324
- } : {}) : C.filter((H) => !!Ne(H) || X.value).map((H) => Ne(H) || {
5318
+ }, on = (m) => {
5319
+ jt(m);
5320
+ }, Zt = (m) => Le(m) ? n.value === "single" ? {} : [] : $.value ? m : n.value === "single" ? Ne(m) || (X.value ? {
5321
+ [u.value]: m,
5322
+ [D.value]: m,
5323
+ [Oe.value]: m
5324
+ } : {}) : m.filter((H) => !!Ne(H) || X.value).map((H) => Ne(H) || {
5325
5325
  [u.value]: H,
5326
5326
  [D.value]: H,
5327
5327
  [Oe.value]: H
5328
5328
  }), K1 = () => {
5329
- f1.value = le(U, (C) => {
5330
- C.length < g.value || !C && g.value !== 0 || (Ie.value = !0, R.value && (Fe.value = []), setTimeout(() => {
5331
- C == U.value && s.value(U.value, Z).then((H) => {
5332
- (C == U.value || !U.value) && (Fe.value = H, Na.value = bt.value.filter((se) => se[w.value] !== !0)[0] || null, Ie.value = !1);
5329
+ f1.value = re(U, (m) => {
5330
+ m.length < g.value || !m && g.value !== 0 || (Ie.value = !0, R.value && (Fe.value = []), setTimeout(() => {
5331
+ m == U.value && s.value(U.value, Z).then((H) => {
5332
+ (m == U.value || !U.value) && (Fe.value = H, Na.value = bt.value.filter((se) => se[y.value] !== !0)[0] || null, Ie.value = !1);
5333
5333
  }).catch(
5334
5334
  /* istanbul ignore next */
5335
5335
  (H) => {
@@ -5341,25 +5341,25 @@ function P0(a, e, t) {
5341
5341
  };
5342
5342
  if (n.value !== "single" && !Le(E.value) && !Array.isArray(E.value))
5343
5343
  throw new Error(`v-model must be an array when using "${n.value}" mode`);
5344
- return s && typeof s.value == "function" ? _.value ? jt(Ut) : $.value == !0 && Ut() : (Fe.value = s.value, Ut()), S.value > -1 && K1(), le(S, (C, H) => {
5345
- f1.value && f1.value(), C >= 0 && K1();
5346
- }), le(E, (C) => {
5347
- if (Le(C)) {
5348
- Pe(Zt(C), !1);
5344
+ return s && typeof s.value == "function" ? _.value ? jt(Ut) : $.value == !0 && Ut() : (Fe.value = s.value, Ut()), S.value > -1 && K1(), re(S, (m, H) => {
5345
+ f1.value && f1.value(), m >= 0 && K1();
5346
+ }), re(E, (m) => {
5347
+ if (Le(m)) {
5348
+ Pe(Zt(m), !1);
5349
5349
  return;
5350
5350
  }
5351
5351
  switch (n.value) {
5352
5352
  case "single":
5353
- ($.value ? C[D.value] != F.value[D.value] : C != F.value[D.value]) && Pe(Zt(C), !1);
5353
+ ($.value ? m[D.value] != F.value[D.value] : m != F.value[D.value]) && Pe(Zt(m), !1);
5354
5354
  break;
5355
5355
  case "multiple":
5356
5356
  case "tags":
5357
- H0($.value ? C.map((H) => H[D.value]) : C, F.value.map((H) => H[D.value])) || Pe(Zt(C), !1);
5357
+ H0($.value ? m.map((H) => H[D.value]) : m, F.value.map((H) => H[D.value])) || Pe(Zt(m), !1);
5358
5358
  break;
5359
5359
  }
5360
- }, { deep: !0 }), le(s, (C, H) => {
5361
- typeof a.options == "function" ? _.value && (!H || C && C.toString() !== H.toString()) && jt() : (Fe.value = a.options, Object.keys(F.value).length || Ut(), b1());
5362
- }), le(u, b1), {
5360
+ }, { deep: !0 }), re(s, (m, H) => {
5361
+ typeof a.options == "function" ? _.value && (!H || m && m.toString() !== H.toString()) && jt() : (Fe.value = a.options, Object.keys(F.value).length || Ut(), b1());
5362
+ }), re(u, b1), {
5363
5363
  pfo: Z1,
5364
5364
  fo: bt,
5365
5365
  filteredOptions: bt,
@@ -5404,31 +5404,31 @@ function B0(a, e, t) {
5404
5404
  groupSelect: d,
5405
5405
  disabledProp: u,
5406
5406
  groupOptions: f
5407
- } = $e(a), p = t.fo, m = t.fg, $ = t.handleOptionClick, M = t.handleGroupClick, S = t.search, _ = t.pointer, g = t.setPointer, V = t.clearPointer, R = t.multiselect, K = t.isOpen, D = y(() => p.value.filter((E) => !E[u.value])), X = y(() => m.value.filter((E) => !E[u.value])), ae = y(() => r.value !== "single" && d.value), I = y(() => _.value && _.value.group), ee = y(() => Z(_.value)), b = y(() => {
5407
+ } = $e(a), p = t.fo, C = t.fg, $ = t.handleOptionClick, M = t.handleGroupClick, S = t.search, _ = t.pointer, g = t.setPointer, V = t.clearPointer, R = t.multiselect, K = t.isOpen, D = w(() => p.value.filter((E) => !E[u.value])), X = w(() => C.value.filter((E) => !E[u.value])), ae = w(() => r.value !== "single" && d.value), I = w(() => _.value && _.value.group), ee = w(() => Z(_.value)), b = w(() => {
5408
5408
  const E = I.value ? _.value : (
5409
5409
  /* istanbul ignore next */
5410
5410
  Z(_.value)
5411
5411
  ), U = X.value.map((Pe) => Pe[i.value]).indexOf(E[i.value]);
5412
5412
  let Ce = X.value[U - 1];
5413
5413
  return Ce === void 0 && (Ce = P.value), Ce;
5414
- }), k = y(() => {
5414
+ }), k = w(() => {
5415
5415
  let E = X.value.map((U) => U.label).indexOf(I.value ? _.value[i.value] : Z(_.value)[i.value]) + 1;
5416
5416
  return X.value.length <= E && (E = 0), X.value[E];
5417
- }), P = y(() => [...X.value].slice(-1)[0]), ue = y(() => _.value.__VISIBLE__.filter((E) => !E[u.value])[0]), ne = y(() => {
5417
+ }), P = w(() => [...X.value].slice(-1)[0]), ue = w(() => _.value.__VISIBLE__.filter((E) => !E[u.value])[0]), ne = w(() => {
5418
5418
  const E = ee.value.__VISIBLE__.filter((U) => !U[u.value]);
5419
5419
  return E[E.map((U) => U[s.value]).indexOf(_.value[s.value]) - 1];
5420
- }), re = y(() => {
5420
+ }), le = w(() => {
5421
5421
  const E = Z(_.value).__VISIBLE__.filter((U) => !U[u.value]);
5422
5422
  return E[E.map((U) => U[s.value]).indexOf(_.value[s.value]) + 1];
5423
- }), ie = y(() => [...b.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), O = y(() => [...P.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), L = (E) => _.value && (!E.group && _.value[s.value] === E[s.value] || E.group !== void 0 && _.value[i.value] === E[i.value]) ? !0 : void 0, W = () => {
5423
+ }), ie = w(() => [...b.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), O = w(() => [...P.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), L = (E) => _.value && (!E.group && _.value[s.value] === E[s.value] || E.group !== void 0 && _.value[i.value] === E[i.value]) ? !0 : void 0, W = () => {
5424
5424
  g(D.value[0] || null);
5425
- }, w = () => {
5425
+ }, y = () => {
5426
5426
  !_.value || _.value[u.value] === !0 || (I.value ? M(_.value) : $(_.value));
5427
5427
  }, Y = () => {
5428
5428
  if (_.value === null)
5429
5429
  g((l.value && ae.value ? X.value[0].__CREATE__ ? D.value[0] : X.value[0] : D.value[0]) || null);
5430
5430
  else if (l.value && ae.value) {
5431
- let E = I.value ? ue.value : re.value;
5431
+ let E = I.value ? ue.value : le.value;
5432
5432
  E === void 0 && (E = k.value, E.__CREATE__ && (E = E[f.value][0])), g(E || /* istanbul ignore next */
5433
5433
  null);
5434
5434
  } else {
@@ -5460,9 +5460,9 @@ function B0(a, e, t) {
5460
5460
  let U = E.parentElement.parentElement;
5461
5461
  l.value && (U = I.value ? E.parentElement.parentElement.parentElement : E.parentElement.parentElement.parentElement.parentElement), E.offsetTop + E.offsetHeight > U.clientHeight + U.scrollTop && (U.scrollTop = E.offsetTop + E.offsetHeight - U.clientHeight), E.offsetTop < U.scrollTop && (U.scrollTop = E.offsetTop);
5462
5462
  };
5463
- return le(S, (E) => {
5463
+ return re(S, (E) => {
5464
5464
  o.value && (E.length && n.value ? W() : V());
5465
- }), le(K, (E) => {
5465
+ }), re(K, (E) => {
5466
5466
  if (E) {
5467
5467
  let U = R.value.querySelectorAll("[data-selected]")[0];
5468
5468
  if (!U)
@@ -5477,7 +5477,7 @@ function B0(a, e, t) {
5477
5477
  canPointGroups: ae,
5478
5478
  isPointed: L,
5479
5479
  setPointerFirst: W,
5480
- selectPointer: w,
5480
+ selectPointer: y,
5481
5481
  forwardPointer: Y,
5482
5482
  backwardPointer: he
5483
5483
  };
@@ -5495,7 +5495,7 @@ function N0(a, e, t) {
5495
5495
  };
5496
5496
  }
5497
5497
  function R0(a, e, t) {
5498
- const { searchable: s, disabled: n, clearOnBlur: o } = $e(a), i = t.input, l = t.open, r = t.close, d = t.clearSearch, u = t.isOpen, f = J(null), p = J(null), m = J(null), $ = J(!1), M = J(!1), S = y(() => s.value || n.value ? -1 : 0), _ = () => {
5498
+ const { searchable: s, disabled: n, clearOnBlur: o } = $e(a), i = t.input, l = t.open, r = t.close, d = t.clearSearch, u = t.isOpen, f = J(null), p = J(null), C = J(null), $ = J(!1), M = J(!1), S = w(() => s.value || n.value ? -1 : 0), _ = () => {
5499
5499
  s.value && i.value.blur(), p.value.blur();
5500
5500
  }, g = () => {
5501
5501
  s.value && !n.value && i.value.focus();
@@ -5509,7 +5509,7 @@ function R0(a, e, t) {
5509
5509
  return {
5510
5510
  multiselect: f,
5511
5511
  wrapper: p,
5512
- tags: m,
5512
+ tags: C,
5513
5513
  tabindex: S,
5514
5514
  isActive: $,
5515
5515
  mouseClicked: M,
@@ -5527,7 +5527,7 @@ function R0(a, e, t) {
5527
5527
  R(), _();
5528
5528
  },
5529
5529
  handleMousedown: (I) => {
5530
- M.value = !0, u.value && (I.target.isEqualNode(p.value) || I.target.isEqualNode(m.value)) ? setTimeout(() => {
5530
+ M.value = !0, u.value && (I.target.isEqualNode(p.value) || I.target.isEqualNode(C.value)) ? setTimeout(() => {
5531
5531
  R();
5532
5532
  }, 0) : document.activeElement.isEqualNode(p.value) && !u.value && V(), setTimeout(() => {
5533
5533
  M.value = !1;
@@ -5547,10 +5547,10 @@ function U0(a, e, t) {
5547
5547
  addOptionOn: u,
5548
5548
  createTag: f,
5549
5549
  createOption: p,
5550
- reverse: m
5551
- } = $e(a), $ = at().proxy, M = t.iv, S = t.update, _ = t.search, g = t.setPointer, V = t.selectPointer, R = t.backwardPointer, K = t.forwardPointer, D = t.multiselect, X = t.wrapper, ae = t.tags, I = t.isOpen, ee = t.open, b = t.blur, k = t.fo, P = y(() => f.value || p.value || !1), ue = y(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ne = () => {
5550
+ reverse: C
5551
+ } = $e(a), $ = at().proxy, M = t.iv, S = t.update, _ = t.search, g = t.setPointer, V = t.selectPointer, R = t.backwardPointer, K = t.forwardPointer, D = t.multiselect, X = t.wrapper, ae = t.tags, I = t.isOpen, ee = t.open, b = t.blur, k = t.fo, P = w(() => f.value || p.value || !1), ue = w(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ne = () => {
5552
5552
  s.value === "tags" && !l.value && P.value && i.value && !d.value && g(k.value[k.value.map((L) => L[r.value]).indexOf(_.value)]);
5553
- }, re = (L) => {
5553
+ }, le = (L) => {
5554
5554
  let W = L.length - 1;
5555
5555
  for (; W >= 0 && (L[W].remove === !1 || L[W].disabled); )
5556
5556
  W--;
@@ -5559,18 +5559,18 @@ function U0(a, e, t) {
5559
5559
  return {
5560
5560
  handleKeydown: (L) => {
5561
5561
  e.emit("keydown", L, $);
5562
- let W, w;
5563
- switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(L.key) !== -1 && s.value === "tags" && (W = [...D.value.querySelectorAll("[data-tags] > *")].filter((Y) => Y !== ae.value), w = W.findIndex((Y) => Y === document.activeElement)), L.key) {
5562
+ let W, y;
5563
+ switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(L.key) !== -1 && s.value === "tags" && (W = [...D.value.querySelectorAll("[data-tags] > *")].filter((Y) => Y !== ae.value), y = W.findIndex((Y) => Y === document.activeElement)), L.key) {
5564
5564
  case "Backspace":
5565
5565
  if (s.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 || M.value.length === 0)
5566
5566
  return;
5567
- S(re([...M.value]));
5567
+ S(le([...M.value]));
5568
5568
  break;
5569
5569
  case "Enter":
5570
5570
  if (L.preventDefault(), L.keyCode === 229)
5571
5571
  return;
5572
- if (w !== -1 && w !== void 0) {
5573
- S([...M.value].filter((Y, he) => he !== w)), w === W.length - 1 && (W.length - 1 ? W[W.length - 2].focus() : i.value ? ae.value.querySelector("input").focus() : X.value.focus());
5572
+ if (y !== -1 && y !== void 0) {
5573
+ S([...M.value].filter((Y, he) => he !== y)), y === W.length - 1 && (W.length - 1 ? W[W.length - 2].focus() : i.value ? ae.value.querySelector("input").focus() : X.value.focus());
5574
5574
  return;
5575
5575
  }
5576
5576
  if (ue.value.indexOf("enter") === -1 && P.value)
@@ -5611,12 +5611,12 @@ function U0(a, e, t) {
5611
5611
  case "ArrowLeft":
5612
5612
  if (i.value && ae.value && ae.value.querySelector("input").selectionStart || L.shiftKey || s.value !== "tags" || !M.value || !M.value.length)
5613
5613
  return;
5614
- L.preventDefault(), w === -1 ? W[W.length - 1].focus() : w > 0 && W[w - 1].focus();
5614
+ L.preventDefault(), y === -1 ? W[W.length - 1].focus() : y > 0 && W[y - 1].focus();
5615
5615
  break;
5616
5616
  case "ArrowRight":
5617
- if (w === -1 || L.shiftKey || s.value !== "tags" || !M.value || !M.value.length)
5617
+ if (y === -1 || L.shiftKey || s.value !== "tags" || !M.value || !M.value.length)
5618
5618
  return;
5619
- L.preventDefault(), W.length > w + 1 ? W[w + 1].focus() : i.value ? ae.value.querySelector("input").focus() : i.value || X.value.focus();
5619
+ L.preventDefault(), W.length > y + 1 ? W[y + 1].focus() : i.value ? ae.value.querySelector("input").focus() : i.value || X.value.focus();
5620
5620
  break;
5621
5621
  }
5622
5622
  },
@@ -5632,7 +5632,7 @@ function j0(a, e, t) {
5632
5632
  disabled: n,
5633
5633
  openDirection: o,
5634
5634
  showOptions: i
5635
- } = $e(a), l = t.isOpen, r = t.isPointed, d = t.isSelected, u = t.isDisabled, f = t.isActive, p = t.canPointGroups, m = t.resolving, $ = t.fo, M = y(() => ({
5635
+ } = $e(a), l = t.isOpen, r = t.isPointed, d = t.isSelected, u = t.isDisabled, f = t.isActive, p = t.canPointGroups, C = t.resolving, $ = t.fo, M = w(() => ({
5636
5636
  container: "multiselect",
5637
5637
  containerDisabled: "is-disabled",
5638
5638
  containerOpen: "is-open",
@@ -5685,9 +5685,9 @@ function j0(a, e, t) {
5685
5685
  assist: "multiselect-assistive-text",
5686
5686
  spacer: "multiselect-spacer",
5687
5687
  ...s.value
5688
- })), S = y(() => !!(l.value && i.value && (!m.value || m.value && $.value.length)));
5688
+ })), S = w(() => !!(l.value && i.value && (!C.value || C.value && $.value.length)));
5689
5689
  return {
5690
- classList: y(() => {
5690
+ classList: w(() => {
5691
5691
  const g = M.value;
5692
5692
  return {
5693
5693
  container: [g.container].concat(n.value ? g.containerDisabled : []).concat(S.value && o.value === "top" ? g.containerOpenTop : []).concat(S.value && o.value !== "top" ? g.containerOpen : []).concat(f.value ? g.containerActive : []),
@@ -5737,7 +5737,7 @@ function Z0(a, e, t) {
5737
5737
  const {
5738
5738
  limit: s,
5739
5739
  infinite: n
5740
- } = $e(a), o = t.isOpen, i = t.offset, l = t.search, r = t.pfo, d = t.eo, u = J(null), f = J(null), p = y(() => i.value < r.value.length), m = (M) => {
5740
+ } = $e(a), o = t.isOpen, i = t.offset, l = t.search, r = t.pfo, d = t.eo, u = J(null), f = J(null), p = w(() => i.value < r.value.length), C = (M) => {
5741
5741
  const { isIntersecting: S, target: _ } = M[0];
5742
5742
  if (S) {
5743
5743
  const g = _.offsetParent, V = g.scrollTop;
@@ -5748,14 +5748,14 @@ function Z0(a, e, t) {
5748
5748
  }, $ = () => {
5749
5749
  o.value && i.value < r.value.length ? u.value.observe(f.value) : !o.value && u.value && u.value.disconnect();
5750
5750
  };
5751
- return le(o, () => {
5751
+ return re(o, () => {
5752
5752
  n.value && $();
5753
- }), le(l, () => {
5753
+ }), re(l, () => {
5754
5754
  n.value && (i.value = s.value, $());
5755
- }, { flush: "post" }), le(d, () => {
5755
+ }, { flush: "post" }), re(d, () => {
5756
5756
  n.value && $();
5757
5757
  }, { immediate: !1, flush: "post" }), Dt(() => {
5758
- window && window.IntersectionObserver && (u.value = new IntersectionObserver(m));
5758
+ window && window.IntersectionObserver && (u.value = new IntersectionObserver(C));
5759
5759
  }), {
5760
5760
  hasMore: p,
5761
5761
  infiniteLoader: f
@@ -5771,20 +5771,20 @@ function F0(a, e, t) {
5771
5771
  groupLabel: r,
5772
5772
  aria: d,
5773
5773
  searchable: u
5774
- } = $e(a), f = t.pointer, p = t.iv, m = t.hasSelected, $ = t.multipleLabelText, M = J(null), S = y(() => {
5774
+ } = $e(a), f = t.pointer, p = t.iv, C = t.hasSelected, $ = t.multipleLabelText, M = J(null), S = w(() => {
5775
5775
  let k = [];
5776
5776
  return n && n.value && k.push(n.value), k.push("assist"), k.join("-");
5777
- }), _ = y(() => {
5777
+ }), _ = w(() => {
5778
5778
  let k = [];
5779
5779
  return n && n.value && k.push(n.value), k.push("multiselect-options"), k.join("-");
5780
- }), g = y(() => {
5780
+ }), g = w(() => {
5781
5781
  let k = [];
5782
5782
  if (n && n.value && k.push(n.value), f.value)
5783
5783
  return k.push(f.value.group ? "multiselect-group" : "multiselect-option"), k.push(f.value.group ? f.value.index : f.value[o.value]), k.join("-");
5784
- }), V = y(() => s.value), R = y(() => l.value !== "single"), K = y(() => {
5784
+ }), V = w(() => s.value), R = w(() => l.value !== "single"), K = w(() => {
5785
5785
  let k = "";
5786
- return l.value === "single" && m.value && (k += p.value[i.value]), l.value === "multiple" && m.value && (k += $.value), l.value === "tags" && m.value && (k += p.value.map((P) => P[i.value]).join(", ")), k;
5787
- }), D = y(() => {
5786
+ return l.value === "single" && C.value && (k += p.value[i.value]), l.value === "multiple" && C.value && (k += $.value), l.value === "tags" && C.value && (k += p.value.map((P) => P[i.value]).join(", ")), k;
5787
+ }), D = w(() => {
5788
5788
  let k = { ...d.value };
5789
5789
  return u.value && (k["aria-labelledby"] = k["aria-labelledby"] ? `${S.value} ${k["aria-labelledby"]}` : S.value, K.value && k["aria-label"] && (k["aria-label"] = `${K.value}, ${k["aria-label"]}`)), k;
5790
5790
  }), X = (k) => {
@@ -6746,10 +6746,10 @@ const p5 = { class: "ao-tasks" }, h5 = { class: "ao-tasks__list" }, m5 = ["id",
6746
6746
  emits: ["add", "delete", "update"],
6747
6747
  setup(a, { emit: e }) {
6748
6748
  const t = a, { t: s } = nt();
6749
- le(() => t.tasks, (f, p) => {
6749
+ re(() => t.tasks, (f, p) => {
6750
6750
  Ue(f, p);
6751
6751
  });
6752
- const n = y(
6752
+ const n = w(
6753
6753
  () => {
6754
6754
  var f;
6755
6755
  return ((f = t.users) == null ? void 0 : f.map((p) => ({
@@ -6788,32 +6788,32 @@ const p5 = { class: "ao-tasks" }, h5 = { class: "ao-tasks__list" }, m5 = ["id",
6788
6788
  };
6789
6789
  return (f, p) => (c(), h("div", p5, [
6790
6790
  v("ul", h5, [
6791
- (c(!0), h(fe, null, be(f.tasks, (m) => {
6791
+ (c(!0), h(fe, null, be(f.tasks, (C) => {
6792
6792
  var $, M;
6793
6793
  return c(), h("li", {
6794
- key: m.id,
6794
+ key: C.id,
6795
6795
  class: "ao-subtask"
6796
6796
  }, [
6797
- (($ = f.isCheckable) == null ? void 0 : $.call(f, m)) ?? !1 ? (c(), N(de, {
6797
+ (($ = f.isCheckable) == null ? void 0 : $.call(f, C)) ?? !1 ? (c(), N(de, {
6798
6798
  key: 0,
6799
6799
  class: "ao-subtask__check",
6800
- "icon-name": m.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
6800
+ "icon-name": C.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
6801
6801
  disabled: !f.isEditable,
6802
6802
  variant: "ghost",
6803
- onClick: () => l(m.id, !m.isDone)
6803
+ onClick: () => l(C.id, !C.isDone)
6804
6804
  }, null, 8, ["icon-name", "disabled", "onClick"])) : A("", !0),
6805
6805
  v("input", {
6806
- id: m.id,
6807
- value: m.name,
6806
+ id: C.id,
6807
+ value: C.name,
6808
6808
  readonly: !f.isEditable,
6809
6809
  class: "ao-field__input ao-subtask__field",
6810
6810
  type: "text",
6811
- onChange: (S) => i(S, m.id),
6811
+ onChange: (S) => i(S, C.id),
6812
6812
  onKeyup: Ye(u, ["enter"])
6813
6813
  }, null, 40, m5),
6814
6814
  f.users ? (c(), N(ye, {
6815
6815
  key: 1,
6816
- value: [(M = m.assignee) == null ? void 0 : M.id],
6816
+ value: [(M = C.assignee) == null ? void 0 : M.id],
6817
6817
  options: n.value,
6818
6818
  "close-on-select": !1,
6819
6819
  searchable: !0,
@@ -6823,7 +6823,7 @@ const p5 = { class: "ao-tasks" }, h5 = { class: "ao-tasks__list" }, m5 = ["id",
6823
6823
  placeholder: f.$t("feed.filters.assignee.placeholder"),
6824
6824
  disabled: !f.isEditable,
6825
6825
  caret: f.isEditable,
6826
- onChange: (S) => d(S, m.id)
6826
+ onChange: (S) => d(S, C.id)
6827
6827
  }, {
6828
6828
  tag: j(({ option: S, handleTagRemove: _ }) => [
6829
6829
  T(_t, {
@@ -6842,7 +6842,7 @@ const p5 = { class: "ao-tasks" }, h5 = { class: "ao-tasks__list" }, m5 = ["id",
6842
6842
  size: "sm",
6843
6843
  variant: "ghost",
6844
6844
  color: "neutral",
6845
- onClick: () => r(m.id)
6845
+ onClick: () => r(C.id)
6846
6846
  }, null, 8, ["onClick"])) : A("", !0)
6847
6847
  ]);
6848
6848
  }), 128))
@@ -6899,7 +6899,7 @@ const g5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], b5 = {
6899
6899
  function l() {
6900
6900
  o.value = !1;
6901
6901
  }
6902
- le(o, (d) => {
6902
+ re(o, (d) => {
6903
6903
  e("toggleIsDropActive", d);
6904
6904
  });
6905
6905
  function r(d) {
@@ -6984,10 +6984,10 @@ const T5 = { class: "ao-comment" }, E5 = { class: "ao-comment__body" }, I5 = { c
6984
6984
  },
6985
6985
  emits: ["edit", "remove"],
6986
6986
  setup(a, { emit: e }) {
6987
- const t = a, s = y(() => {
6987
+ const t = a, s = w(() => {
6988
6988
  const S = t.user;
6989
6989
  return S ? `${S == null ? void 0 : S.firstName} ${S == null ? void 0 : S.lastName}` : null;
6990
- }), n = J(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = ca(n), d = y(() => A1(t.createdAt)), u = y(() => A1(t.editedAt)), f = y(() => o.value ? "textarea" : "p"), p = r(), m = l((S) => {
6990
+ }), n = J(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = ca(n), d = w(() => A1(t.createdAt)), u = w(() => A1(t.editedAt)), f = w(() => o.value ? "textarea" : "p"), p = r(), C = l((S) => {
6991
6991
  e("edit", S);
6992
6992
  }), $ = () => {
6993
6993
  e("remove");
@@ -7019,7 +7019,7 @@ const T5 = { class: "ao-comment" }, E5 = { class: "ao-comment__body" }, I5 = { c
7019
7019
  rows: q(o) ? M.value : null,
7020
7020
  onKeyup: [
7021
7021
  Ye(q(p), ["esc"]),
7022
- Ye(_e(q(m), ["ctrl"]), ["enter"])
7022
+ Ye(_e(q(C), ["ctrl"]), ["enter"])
7023
7023
  ]
7024
7024
  }, {
7025
7025
  default: j(() => [
@@ -7044,7 +7044,7 @@ const T5 = { class: "ao-comment" }, E5 = { class: "ao-comment__body" }, I5 = { c
7044
7044
  size: "sm",
7045
7045
  variant: "solid",
7046
7046
  color: "neutral",
7047
- onClick: q(m)
7047
+ onClick: q(C)
7048
7048
  }, null, 8, ["onClick"])
7049
7049
  ], 64)) : (c(), h(fe, { key: 1 }, [
7050
7050
  T(de, {
@@ -7084,7 +7084,7 @@ const D5 = {
7084
7084
  Ee(() => {
7085
7085
  n.value && (n.value.scrollTop = n.value.scrollHeight);
7086
7086
  });
7087
- const o = ct(t.newComment), i = y({
7087
+ const o = ct(t.newComment), i = w({
7088
7088
  get() {
7089
7089
  return o.value;
7090
7090
  },
@@ -7110,16 +7110,16 @@ const D5 = {
7110
7110
  class: "ao-comments"
7111
7111
  }, [
7112
7112
  ((p = u.comments) == null ? void 0 : p.length) > 0 ? (c(), h("ul", D5, [
7113
- (c(!0), h(fe, null, be(u.comments, (m) => (c(), N(V5, {
7114
- key: m.id,
7115
- user: s(m.author.id),
7116
- content: m.message,
7117
- "created-at": m.createdAt,
7118
- "edited-at": m.updatedAt,
7119
- "is-editable": m.author.id === u.userId,
7113
+ (c(!0), h(fe, null, be(u.comments, (C) => (c(), N(V5, {
7114
+ key: C.id,
7115
+ user: s(C.author.id),
7116
+ content: C.message,
7117
+ "created-at": C.createdAt,
7118
+ "edited-at": C.updatedAt,
7119
+ "is-editable": C.author.id === u.userId,
7120
7120
  class: "ao-comment",
7121
- onEdit: ($) => r(m.id, $),
7122
- onRemove: () => d(m.id)
7121
+ onEdit: ($) => r(C.id, $),
7122
+ onRemove: () => d(C.id)
7123
7123
  }, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
7124
7124
  ])) : A("", !0),
7125
7125
  v("div", H5, [
@@ -7130,7 +7130,7 @@ const D5 = {
7130
7130
  v("label", B5, [
7131
7131
  v("span", N5, z(u.$t("activity.comment.label")), 1),
7132
7132
  ft(v("textarea", {
7133
- "onUpdate:modelValue": f[0] || (f[0] = (m) => i.value = m),
7133
+ "onUpdate:modelValue": f[0] || (f[0] = (C) => i.value = C),
7134
7134
  rows: "4",
7135
7135
  class: "ao-field__textarea"
7136
7136
  }, null, 512), [
@@ -7192,28 +7192,28 @@ const j5 = {
7192
7192
  id: t.activity.id,
7193
7193
  name: b
7194
7194
  });
7195
- }, n = y({
7195
+ }, n = w({
7196
7196
  get() {
7197
7197
  return t.activity.description ?? "";
7198
7198
  },
7199
7199
  set(b) {
7200
7200
  e("update:activity", { id: t.activity.id, description: b });
7201
7201
  }
7202
- }), o = y({
7202
+ }), o = w({
7203
7203
  get() {
7204
7204
  return t.activity.estimation ?? 0;
7205
7205
  },
7206
7206
  set(b) {
7207
7207
  e("update:activity", { id: t.activity.id, estimation: b });
7208
7208
  }
7209
- }), i = y({
7209
+ }), i = w({
7210
7210
  get() {
7211
7211
  return t.activity.important ?? !1;
7212
7212
  },
7213
7213
  set(b) {
7214
7214
  e("update:activity", { id: t.activity.id, important: b });
7215
7215
  }
7216
- }), l = y({
7216
+ }), l = w({
7217
7217
  get() {
7218
7218
  var b;
7219
7219
  return (b = t.activity.type) == null ? void 0 : b.id;
@@ -7221,10 +7221,10 @@ const j5 = {
7221
7221
  set(b) {
7222
7222
  e("update:activity", { id: t.activity.id, typeId: b });
7223
7223
  }
7224
- }), r = y(() => t.templateActivities.filter((b) => b.id !== t.activity.id).map((b) => ({
7224
+ }), r = w(() => t.templateActivities.filter((b) => b.id !== t.activity.id).map((b) => ({
7225
7225
  label: b.name,
7226
7226
  value: b.id
7227
- }))), d = y({
7227
+ }))), d = w({
7228
7228
  get() {
7229
7229
  var b;
7230
7230
  return (b = t.activity.dependingOn) == null ? void 0 : b.map((k) => k.id);
@@ -7235,13 +7235,13 @@ const j5 = {
7235
7235
  dependingOn: b
7236
7236
  });
7237
7237
  }
7238
- }), u = y(() => r.value.map((b) => {
7238
+ }), u = w(() => r.value.map((b) => {
7239
7239
  var k;
7240
7240
  return {
7241
7241
  ...b,
7242
7242
  disabled: (k = t.activity.blocking) == null ? void 0 : k.some((P) => P.id === b.value)
7243
7243
  };
7244
- })), f = y({
7244
+ })), f = w({
7245
7245
  get() {
7246
7246
  var b;
7247
7247
  return (b = t.activity.blocking) == null ? void 0 : b.map((k) => k.id);
@@ -7252,16 +7252,16 @@ const j5 = {
7252
7252
  blocking: b
7253
7253
  });
7254
7254
  }
7255
- }), p = y(() => r.value.map((b) => {
7255
+ }), p = w(() => r.value.map((b) => {
7256
7256
  var k;
7257
7257
  return {
7258
7258
  ...b,
7259
7259
  disabled: (k = t.activity.dependingOn) == null ? void 0 : k.some((P) => P.id === b.value)
7260
7260
  };
7261
- })), m = y(() => (t.templateMilestones || []).filter((k) => k.id !== t.milestoneId).map((k) => ({
7261
+ })), C = w(() => (t.templateMilestones || []).filter((k) => k.id !== t.milestoneId).map((k) => ({
7262
7262
  label: k.name,
7263
7263
  value: k.id
7264
- }))), $ = y({
7264
+ }))), $ = w({
7265
7265
  get() {
7266
7266
  return t.activity.dependingMilestones;
7267
7267
  },
@@ -7277,14 +7277,14 @@ const j5 = {
7277
7277
  e("updateSubtask", b);
7278
7278
  }, _ = (b) => {
7279
7279
  e("deleteSubtask", b);
7280
- }, g = y(() => {
7280
+ }, g = w(() => {
7281
7281
  var b;
7282
7282
  return ((b = t.users) == null ? void 0 : b.map((k) => ({
7283
7283
  label: `${k.firstName} ${k.lastName}`,
7284
7284
  value: k.id,
7285
7285
  avatar: k.avatarUrl
7286
7286
  }))) || [];
7287
- }), V = y({
7287
+ }), V = w({
7288
7288
  get() {
7289
7289
  var b, k;
7290
7290
  return (b = t.activity.assignee) != null && b.id ? [(k = t.activity.assignee) == null ? void 0 : k.id] : [];
@@ -7305,7 +7305,7 @@ const j5 = {
7305
7305
  activityId: t.activity.id,
7306
7306
  file: b
7307
7307
  });
7308
- }, D = y(() => {
7308
+ }, D = w(() => {
7309
7309
  var b;
7310
7310
  return (b = t.statuses) == null ? void 0 : b.map((k) => ({
7311
7311
  value: k.id,
@@ -7526,7 +7526,7 @@ const j5 = {
7526
7526
  mode: "tags",
7527
7527
  "close-on-select": !1,
7528
7528
  searchable: !0,
7529
- options: m.value,
7529
+ options: C.value,
7530
7530
  disabled: !b.isEditable,
7531
7531
  caret: b.isEditable
7532
7532
  }, null, 8, ["modelValue", "options", "disabled", "caret"])
@@ -7601,7 +7601,7 @@ const I7 = /* @__PURE__ */ x({
7601
7601
  setup(a, { emit: e }) {
7602
7602
  const t = a, s = ct(
7603
7603
  t.rule.itemType || pe.ACTIVITIES
7604
- ), n = y({
7604
+ ), n = w({
7605
7605
  get() {
7606
7606
  return s.value;
7607
7607
  },
@@ -7612,7 +7612,7 @@ const I7 = /* @__PURE__ */ x({
7612
7612
  subItemId: void 0
7613
7613
  });
7614
7614
  }
7615
- }), o = y(() => Object.values(pe)), i = y({
7615
+ }), o = w(() => Object.values(pe)), i = w({
7616
7616
  get() {
7617
7617
  return t.rule.subItemId;
7618
7618
  },
@@ -7623,7 +7623,7 @@ const I7 = /* @__PURE__ */ x({
7623
7623
  itemType: t.rule.itemType || n.value
7624
7624
  });
7625
7625
  }
7626
- }), l = y(() => {
7626
+ }), l = w(() => {
7627
7627
  var g;
7628
7628
  return !t.templateActivities || !t.templateMilestones || !t.templatePhases ? null : (g = {
7629
7629
  [pe.ACTIVITIES]: t.templateActivities,
@@ -7633,35 +7633,35 @@ const I7 = /* @__PURE__ */ x({
7633
7633
  value: V.id,
7634
7634
  label: V.name
7635
7635
  }));
7636
- }), r = ct(t.rule.comparator), d = y({
7636
+ }), r = ct(t.rule.comparator), d = w({
7637
7637
  get() {
7638
7638
  return r.value;
7639
7639
  },
7640
7640
  set(_) {
7641
7641
  e("update:rule", { ...t.rule, comparator: _ });
7642
7642
  }
7643
- }), u = y(() => Object.values(pd)), f = ct(t.rule.trigger), p = y({
7643
+ }), u = w(() => Object.values(pd)), f = ct(t.rule.trigger), p = w({
7644
7644
  get() {
7645
7645
  return f.value;
7646
7646
  },
7647
7647
  set(_) {
7648
7648
  e("update:rule", { ...t.rule, trigger: _ });
7649
7649
  }
7650
- }), m = y(() => Object.values(hd)), $ = y({
7650
+ }), C = w(() => Object.values(hd)), $ = w({
7651
7651
  get() {
7652
7652
  return t.rule.duration;
7653
7653
  },
7654
7654
  set(_) {
7655
7655
  e("update:rule", { ...t.rule, duration: _ });
7656
7656
  }
7657
- }), M = y({
7657
+ }), M = w({
7658
7658
  get() {
7659
7659
  return t.rule.durationUnit;
7660
7660
  },
7661
7661
  set(_) {
7662
7662
  e("update:rule", { ...t.rule, durationUnit: _ });
7663
7663
  }
7664
- }), S = y(() => Object.values(md));
7664
+ }), S = w(() => Object.values(md));
7665
7665
  return (_, g) => (c(), N(tt(_.tagName), { class: "ao-rule-line" }, {
7666
7666
  default: j(() => [
7667
7667
  T(q(ze), {
@@ -7677,7 +7677,7 @@ const I7 = /* @__PURE__ */ x({
7677
7677
  T(q(ze), {
7678
7678
  modelValue: p.value,
7679
7679
  "onUpdate:modelValue": g[2] || (g[2] = (V) => p.value = V),
7680
- options: m.value
7680
+ options: C.value
7681
7681
  }, null, 8, ["modelValue", "options"]),
7682
7682
  T(q(ze), {
7683
7683
  modelValue: d.value,
@@ -7782,70 +7782,70 @@ const D7 = {
7782
7782
  },
7783
7783
  emits: ["addItem", "removeItem", "updateItem", "addRule", "removeRule", "addFiles", "removeFile"],
7784
7784
  setup(a, { emit: e }) {
7785
- const t = a, { t: s } = nt(), n = y(
7785
+ const t = a, { t: s } = nt(), n = w(
7786
7786
  () => {
7787
7787
  var O;
7788
7788
  return (O = t.templates) == null ? void 0 : O.find((L) => L.id === t.templateId);
7789
7789
  }
7790
7790
  ), o = J(!1);
7791
- le(() => [t.templateId, t.phaseId, t.milestoneId], () => o.value = !1), le(() => {
7791
+ re(() => [t.templateId, t.phaseId, t.milestoneId], () => o.value = !1), re(() => {
7792
7792
  var O;
7793
7793
  return (O = n.value) == null ? void 0 : O.phases;
7794
7794
  }, (O, L) => {
7795
7795
  o.value && Ue(O, L);
7796
7796
  });
7797
- const i = y(() => {
7797
+ const i = w(() => {
7798
7798
  var O, L;
7799
7799
  return (L = (O = n == null ? void 0 : n.value) == null ? void 0 : O.phases) == null ? void 0 : L.find((W) => W.id === t.phaseId);
7800
7800
  });
7801
- le(() => {
7801
+ re(() => {
7802
7802
  var O;
7803
7803
  return (O = i.value) == null ? void 0 : O.milestones;
7804
7804
  }, (O, L) => {
7805
7805
  o.value && Ue(O, L);
7806
7806
  });
7807
- const l = y(() => {
7807
+ const l = w(() => {
7808
7808
  var O, L;
7809
7809
  return (L = (O = i.value) == null ? void 0 : O.milestones) == null ? void 0 : L.find(
7810
7810
  (W) => W.id === t.milestoneId
7811
7811
  );
7812
7812
  });
7813
- le(() => {
7813
+ re(() => {
7814
7814
  var O;
7815
7815
  return (O = l.value) == null ? void 0 : O.activities;
7816
7816
  }, (O, L) => {
7817
7817
  o.value && Ue(O, L);
7818
7818
  });
7819
- const r = y(() => {
7819
+ const r = w(() => {
7820
7820
  var O, L;
7821
- return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((W, w) => {
7822
- const Y = w.milestones || [];
7821
+ return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((W, y) => {
7822
+ const Y = y.milestones || [];
7823
7823
  return [...W, ...Y];
7824
7824
  }, [])) || [];
7825
- }), d = y(() => {
7825
+ }), d = w(() => {
7826
7826
  var O, L;
7827
- return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((W, w) => {
7828
- const he = (w.milestones || []).reduce(
7827
+ return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((W, y) => {
7828
+ const he = (y.milestones || []).reduce(
7829
7829
  (Z, F) => F.activities ? [...Z, ...F.activities] : Z,
7830
7830
  []
7831
7831
  );
7832
7832
  return [...W, ...he];
7833
7833
  }, [])) || [];
7834
- }), u = y(() => {
7834
+ }), u = w(() => {
7835
7835
  var O, L;
7836
7836
  return (L = (O = l.value) == null ? void 0 : O.activities) == null ? void 0 : L.find(
7837
7837
  (W) => W.id === t.activityId
7838
7838
  );
7839
- }), f = y(() => {
7839
+ }), f = w(() => {
7840
7840
  var O;
7841
7841
  return (O = t.activityTypes) == null ? void 0 : O.map((L) => ({
7842
7842
  label: L.name,
7843
7843
  value: L.id
7844
7844
  }));
7845
- }), p = y(() => {
7845
+ }), p = w(() => {
7846
7846
  var O;
7847
7847
  return ((O = n.value) == null ? void 0 : O.name) || t.templateId;
7848
- }), m = () => {
7848
+ }), C = () => {
7849
7849
  if (!n.value)
7850
7850
  return;
7851
7851
  const { name: O, rank: L } = pt(
@@ -7924,7 +7924,7 @@ const D7 = {
7924
7924
  const { milestoneId: L } = O;
7925
7925
  if (!l.value)
7926
7926
  return;
7927
- const { name: W, rank: w } = pt(
7927
+ const { name: W, rank: y } = pt(
7928
7928
  l.value.activities,
7929
7929
  "activity",
7930
7930
  s
@@ -7933,7 +7933,7 @@ const D7 = {
7933
7933
  type: pe.ACTIVITIES,
7934
7934
  milestoneId: L,
7935
7935
  templateId: t.templateId,
7936
- item: { name: W, rank: w, milestoneId: L }
7936
+ item: { name: W, rank: y, milestoneId: L }
7937
7937
  });
7938
7938
  }, D = (O) => {
7939
7939
  var L, W;
@@ -7998,13 +7998,13 @@ const D7 = {
7998
7998
  templateId: t.templateId,
7999
7999
  data: O
8000
8000
  });
8001
- }, re = (O) => {
8001
+ }, le = (O) => {
8002
8002
  e("addFiles", O);
8003
8003
  }, ie = (O) => {
8004
8004
  e("removeFile", O);
8005
8005
  };
8006
8006
  return (O, L) => {
8007
- var W, w, Y, he, Z, F;
8007
+ var W, y, Y, he, Z, F;
8008
8008
  return n.value ? (c(), h("div", D7, [
8009
8009
  T(r1, {
8010
8010
  "can-go-back": !0,
@@ -8072,7 +8072,7 @@ const D7 = {
8072
8072
  T(Qe, {
8073
8073
  "icon-name": "AddBoxOutlineRounded",
8074
8074
  label: O.$t("template.phases.add"),
8075
- onClick: m
8075
+ onClick: C
8076
8076
  }, null, 8, ["label"])
8077
8077
  ])
8078
8078
  ]),
@@ -8095,7 +8095,7 @@ const D7 = {
8095
8095
  i.value && l.value ? (c(), N(W3, {
8096
8096
  key: 0,
8097
8097
  "template-id": O.templateId,
8098
- "phase-id": (w = i.value) == null ? void 0 : w.id,
8098
+ "phase-id": (y = i.value) == null ? void 0 : y.id,
8099
8099
  milestone: l.value,
8100
8100
  "activity-id": (Y = u.value) == null ? void 0 : Y.id,
8101
8101
  onAddActivity: K,
@@ -8123,7 +8123,7 @@ const D7 = {
8123
8123
  onAddSubtask: P,
8124
8124
  onUpdateSubtask: ue,
8125
8125
  onDeleteSubtask: ne,
8126
- onAddFiles: re,
8126
+ onAddFiles: le,
8127
8127
  onRemoveFile: ie
8128
8128
  }, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "users", "onClose"])) : A("", !0)
8129
8129
  ])),
@@ -8182,7 +8182,7 @@ const U1 = /* @__PURE__ */ x({
8182
8182
  status: {}
8183
8183
  },
8184
8184
  setup(a) {
8185
- const e = a, t = y(() => typeof e.percentages == "number" ? [e.percentages] : e.percentages ?? []);
8185
+ const e = a, t = w(() => typeof e.percentages == "number" ? [e.percentages] : e.percentages ?? []);
8186
8186
  return (s, n) => (c(), h("div", {
8187
8187
  class: G(["ao-progress", s.status ? `ao-progress--${s.status}` : ""]),
8188
8188
  role: "meter"
@@ -8211,13 +8211,13 @@ const W7 = { class: "ao-card-project-phase__header" }, z7 = { class: "ao-card-pr
8211
8211
  setup(a, { emit: e }) {
8212
8212
  const t = a, s = (l) => {
8213
8213
  e("update:title", l);
8214
- }, n = y(() => {
8214
+ }, n = w(() => {
8215
8215
  var l;
8216
8216
  return (l = t.milestones) == null ? void 0 : l.length;
8217
- }), o = y(() => {
8217
+ }), o = w(() => {
8218
8218
  var l;
8219
8219
  return (l = t.milestones) == null ? void 0 : l.filter((r) => r.status === k1.done).length;
8220
- }), i = y(() => (o.value || 0) / (n.value || 1));
8220
+ }), i = w(() => (o.value || 0) / (n.value || 1));
8221
8221
  return (l, r) => (c(), N(R1, { class: "ao-card-project-phase" }, t1({
8222
8222
  default: j(() => [
8223
8223
  T(me, {
@@ -8292,13 +8292,13 @@ const Q7 = { class: "ao-card-project-milestone__default" }, J7 = {
8292
8292
  },
8293
8293
  emits: ["updateMilestone", "archiveMilestone"],
8294
8294
  setup(a, { emit: e }) {
8295
- const t = a, s = y(() => {
8295
+ const t = a, s = w(() => {
8296
8296
  var l;
8297
8297
  return (l = t.activities) == null ? void 0 : l.length;
8298
- }), n = y(() => {
8298
+ }), n = w(() => {
8299
8299
  var l;
8300
8300
  return (l = t.activities) == null ? void 0 : l.filter((r) => ka(r, t.closedStatus)).length;
8301
- }), o = y(() => (n.value || 0) / (s.value || 1)), i = (l) => {
8301
+ }), o = w(() => (n.value || 0) / (s.value || 1)), i = (l) => {
8302
8302
  e("updateMilestone", { id: t.id, name: l });
8303
8303
  };
8304
8304
  return (l, r) => (c(), N(R1, {
@@ -8369,14 +8369,14 @@ const o9 = { class: "ao-project-phase" }, l9 = {
8369
8369
  emits: ["addMilestone", "updateMilestone", "archiveMilestone", "updatePhase", "archivePhase"],
8370
8370
  setup(a, { emit: e }) {
8371
8371
  const t = a, { t: s } = nt();
8372
- le(() => t.phase.milestones, (f, p) => {
8372
+ re(() => t.phase.milestones, (f, p) => {
8373
8373
  Ue(f, p);
8374
8374
  });
8375
8375
  const n = (f) => {
8376
8376
  e("updatePhase", { id: t.phase.id, name: f });
8377
- }, o = y(() => t.phase.milestones.map((f) => o3(f, t.closedStatus))), i = (f) => {
8378
- const { name: p, rank: m } = pt(o.value ?? [], "milestone", s);
8379
- e("addMilestone", { name: p, rank: m, phaseId: f });
8377
+ }, o = w(() => t.phase.milestones.map((f) => o3(f, t.closedStatus))), i = (f) => {
8378
+ const { name: p, rank: C } = pt(o.value ?? [], "milestone", s);
8379
+ e("addMilestone", { name: p, rank: C, phaseId: f });
8380
8380
  }, l = (f) => {
8381
8381
  e("updateMilestone", f);
8382
8382
  }, r = (f) => {
@@ -8419,18 +8419,18 @@ const o9 = { class: "ao-project-phase" }, l9 = {
8419
8419
  "item-key": "id",
8420
8420
  group: "kanban"
8421
8421
  }, f.$attrs, { onChange: u }), {
8422
- item: j(({ element: m }) => [
8422
+ item: j(({ element: C }) => [
8423
8423
  T(i9, {
8424
- id: m.id,
8425
- name: m.name,
8426
- activities: m.activities,
8424
+ id: C.id,
8425
+ name: C.name,
8426
+ activities: C.activities,
8427
8427
  "is-editable": f.isEditable,
8428
8428
  "is-draggable": f.isEditable,
8429
8429
  "closed-status": f.closedStatus,
8430
8430
  class: "ao-project-phase__milestone",
8431
8431
  onClick: ($) => f.$router.push({
8432
8432
  name: q(Re).milestone,
8433
- params: { phaseId: f.phase.id, milestoneId: m.id }
8433
+ params: { phaseId: f.phase.id, milestoneId: C.id }
8434
8434
  }),
8435
8435
  onUpdateMilestone: l,
8436
8436
  onArchiveMilestone: r
@@ -8465,7 +8465,7 @@ const v9 = { class: "ao-project__phases" }, p9 = {
8465
8465
  emits: ["addMilestone", "updateMilestone", "archiveMilestone", "addPhase", "updatePhase", "archivePhase"],
8466
8466
  setup(a, { emit: e }) {
8467
8467
  const t = a;
8468
- le(() => t.phases, (u, f) => {
8468
+ re(() => t.phases, (u, f) => {
8469
8469
  Ue(u, f);
8470
8470
  });
8471
8471
  const s = (u) => {
@@ -8534,7 +8534,7 @@ const g9 = ["onSubmit"], b9 = { class: "ao-add-template-modal__form-body" }, y9
8534
8534
  },
8535
8535
  emits: ["apply"],
8536
8536
  setup(a, { emit: e }) {
8537
- const t = a, s = y(() => t.templates.map((l) => ({
8537
+ const t = a, s = w(() => t.templates.map((l) => ({
8538
8538
  value: l.id,
8539
8539
  label: l.name
8540
8540
  }))), n = J(null), o = (l) => {
@@ -8646,7 +8646,7 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
8646
8646
  },
8647
8647
  emits: ["addPhase", "updatePhase", "archivePhase", "addMilestone", "updateMilestone", "archiveMilestone", "addActivity", "update:activity", "archiveActivity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "applyTemplate"],
8648
8648
  setup(a, { emit: e }) {
8649
- const t = a, { t: s } = nt(), n = y(
8649
+ const t = a, { t: s } = nt(), n = w(
8650
8650
  () => t.phases.flatMap((I) => I.milestones)
8651
8651
  ), o = () => {
8652
8652
  const { name: I, rank: ee } = pt(t.phases, "phase", s);
@@ -8665,7 +8665,7 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
8665
8665
  e("addActivity", I);
8666
8666
  }, p = (I) => {
8667
8667
  e("update:activity", I);
8668
- }, m = (I) => {
8668
+ }, C = (I) => {
8669
8669
  e("archiveActivity", I);
8670
8670
  }, $ = (I) => {
8671
8671
  e("addSubtask", I);
@@ -8673,7 +8673,7 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
8673
8673
  e("updateSubtask", I);
8674
8674
  }, S = (I) => {
8675
8675
  e("deleteSubtask", I);
8676
- }, _ = y(
8676
+ }, _ = w(
8677
8677
  () => n.value.flatMap((I) => I.activities)
8678
8678
  ), g = (I) => {
8679
8679
  e("addFiles", I);
@@ -8737,7 +8737,7 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
8737
8737
  onClose: ee[2] || (ee[2] = (k) => I.$router.push({ name: q(Re).project })),
8738
8738
  onAddActivity: f,
8739
8739
  onUpdateActivity: p,
8740
- onArchiveActivity: m
8740
+ onArchiveActivity: C
8741
8741
  }, null, 8, ["phases", "project-id", "project-name", "users", "is-editable"]),
8742
8742
  (c(), N(It, { to: "body" }, [
8743
8743
  T(b, {
@@ -8822,19 +8822,19 @@ const O9 = { class: "ao-card-feed__header" }, L9 = {
8822
8822
  id: t.id,
8823
8823
  name: p
8824
8824
  });
8825
- }, n = y(() => t.phaseName && t.milestoneName ? `${t.phaseName} / ${t.milestoneName}` : ""), o = y(() => t.assignee ? [t.assignee] : []), i = y(() => A1(t.deadline)), l = (p) => {
8826
- const { firstName: m, lastName: $ } = p || {};
8827
- return `${m ?? ""}${m ? " " : ""}${$ ?? ""}`;
8825
+ }, n = w(() => t.phaseName && t.milestoneName ? `${t.phaseName} / ${t.milestoneName}` : ""), o = w(() => t.assignee ? [t.assignee] : []), i = w(() => A1(t.deadline)), l = (p) => {
8826
+ const { firstName: C, lastName: $ } = p || {};
8827
+ return `${C ?? ""}${C ? " " : ""}${$ ?? ""}`;
8828
8828
  }, r = (p) => {
8829
8829
  e("removeAssignee", p);
8830
- }, d = y(() => {
8830
+ }, d = w(() => {
8831
8831
  var p;
8832
8832
  return (p = t.tasks) == null ? void 0 : p.length;
8833
- }), u = y(() => {
8833
+ }), u = w(() => {
8834
8834
  var p;
8835
- return (p = t.tasks) == null ? void 0 : p.filter((m) => m.isDone).length;
8836
- }), f = y(() => (u.value || 0) / (d.value || 1));
8837
- return (p, m) => (c(), N(R1, {
8835
+ return (p = t.tasks) == null ? void 0 : p.filter((C) => C.isDone).length;
8836
+ }), f = w(() => (u.value || 0) / (d.value || 1));
8837
+ return (p, C) => (c(), N(R1, {
8838
8838
  class: "ao-card-feed",
8839
8839
  "is-clickable": !0
8840
8840
  }, {
@@ -8942,30 +8942,30 @@ const G9 = { class: "ao-project-milestone" }, x9 = { class: "ao-project-mileston
8942
8942
  },
8943
8943
  emits: ["close", "addActivity", "updateActivity", "archiveActivity"],
8944
8944
  setup(a, { emit: e }) {
8945
- const t = a, { t: s } = nt(), n = y(() => {
8945
+ const t = a, { t: s } = nt(), n = w(() => {
8946
8946
  var p;
8947
- return (p = t.phases) == null ? void 0 : p.find((m) => m.id === t.phaseId);
8948
- }), o = y(() => {
8947
+ return (p = t.phases) == null ? void 0 : p.find((C) => C.id === t.phaseId);
8948
+ }), o = w(() => {
8949
8949
  var p;
8950
- return (p = t.phases) == null ? void 0 : p.flatMap((m) => m.milestones);
8951
- }), i = y(() => {
8950
+ return (p = t.phases) == null ? void 0 : p.flatMap((C) => C.milestones);
8951
+ }), i = w(() => {
8952
8952
  var p;
8953
- return (p = o.value) == null ? void 0 : p.find((m) => m.id === t.milestoneId);
8954
- }), l = y(() => {
8953
+ return (p = o.value) == null ? void 0 : p.find((C) => C.id === t.milestoneId);
8954
+ }), l = w(() => {
8955
8955
  var p;
8956
8956
  return (p = i.value) == null ? void 0 : p.activities;
8957
8957
  });
8958
- le(l, (p, m) => {
8959
- Ue(p, m);
8958
+ re(l, (p, C) => {
8959
+ Ue(p, C);
8960
8960
  });
8961
8961
  const r = (p) => {
8962
8962
  e("close", p);
8963
8963
  }, d = () => {
8964
- const { name: p, rank: m } = pt(l.value ?? [], "activity", s);
8964
+ const { name: p, rank: C } = pt(l.value ?? [], "activity", s);
8965
8965
  e("addActivity", {
8966
8966
  milestoneId: t.milestoneId,
8967
8967
  name: p,
8968
- rank: m,
8968
+ rank: C,
8969
8969
  projectId: t.projectId
8970
8970
  });
8971
8971
  }, u = (p) => {
@@ -8980,7 +8980,7 @@ const G9 = { class: "ao-project-milestone" }, x9 = { class: "ao-project-mileston
8980
8980
  )
8981
8981
  });
8982
8982
  };
8983
- return (p, m) => {
8983
+ return (p, C) => {
8984
8984
  var $;
8985
8985
  return c(), h("div", G9, [
8986
8986
  v("header", x9, [
@@ -9079,19 +9079,19 @@ const e4 = /* @__PURE__ */ x({
9079
9079
  },
9080
9080
  emits: ["update:activity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
9081
9081
  setup(a, { emit: e }) {
9082
- const t = a, s = y(() => {
9082
+ const t = a, s = w(() => {
9083
9083
  var _;
9084
9084
  return (_ = t.phases) == null ? void 0 : _.find((g) => g.id === t.phaseId);
9085
- }), n = y(() => {
9085
+ }), n = w(() => {
9086
9086
  var _;
9087
9087
  return (_ = t.phases) == null ? void 0 : _.flatMap((g) => g.milestones);
9088
- }), o = y(() => {
9088
+ }), o = w(() => {
9089
9089
  var _;
9090
9090
  return (_ = n.value) == null ? void 0 : _.find((g) => g.id === t.milestoneId);
9091
- }), i = y(() => {
9091
+ }), i = w(() => {
9092
9092
  var _;
9093
9093
  return (_ = t.activities) == null ? void 0 : _.find((g) => g.id === t.activityId);
9094
- }), l = y(() => {
9094
+ }), l = w(() => {
9095
9095
  var _;
9096
9096
  return (_ = t.activityTypes) == null ? void 0 : _.map((g) => ({
9097
9097
  value: g,
@@ -9107,7 +9107,7 @@ const e4 = /* @__PURE__ */ x({
9107
9107
  e("deleteSubtask", _);
9108
9108
  }, p = (_) => {
9109
9109
  e("addFiles", _);
9110
- }, m = (_) => {
9110
+ }, C = (_) => {
9111
9111
  e("removeFile", _);
9112
9112
  }, $ = (_) => {
9113
9113
  e("addComment", _);
@@ -9137,7 +9137,7 @@ const e4 = /* @__PURE__ */ x({
9137
9137
  onUpdateSubtask: u,
9138
9138
  onDeleteSubtask: f,
9139
9139
  onAddFiles: p,
9140
- onRemoveFile: m,
9140
+ onRemoveFile: C,
9141
9141
  onAddComment: $,
9142
9142
  onUpdateComment: M,
9143
9143
  onRemoveComment: S
@@ -9219,7 +9219,7 @@ function d4() {
9219
9219
  }
9220
9220
  function c4(a) {
9221
9221
  const e = d4();
9222
- return y(() => (e.value, !!a()));
9222
+ return w(() => (e.value, !!a()));
9223
9223
  }
9224
9224
  function f4(a, e, t = {}) {
9225
9225
  const {
@@ -9228,12 +9228,12 @@ function f4(a, e, t = {}) {
9228
9228
  threshold: o = 0.1,
9229
9229
  window: i = u4,
9230
9230
  immediate: l = !0
9231
- } = t, r = c4(() => i && "IntersectionObserver" in i), d = y(() => {
9231
+ } = t, r = c4(() => i && "IntersectionObserver" in i), d = w(() => {
9232
9232
  const $ = Jt(a);
9233
9233
  return (Array.isArray($) ? $ : [$]).map(M1).filter(i4);
9234
9234
  });
9235
9235
  let u = St;
9236
- const f = J(l), p = r.value ? le(
9236
+ const f = J(l), p = r.value ? re(
9237
9237
  () => [d.value, M1(s), f.value],
9238
9238
  ([$, M]) => {
9239
9239
  if (u(), !f.value || !$.length)
@@ -9251,10 +9251,10 @@ function f4(a, e, t = {}) {
9251
9251
  };
9252
9252
  },
9253
9253
  { immediate: l, flush: "post" }
9254
- ) : St, m = () => {
9254
+ ) : St, C = () => {
9255
9255
  u(), p(), f.value = !1;
9256
9256
  };
9257
- return n4(m), {
9257
+ return n4(C), {
9258
9258
  isSupported: r,
9259
9259
  isActive: f,
9260
9260
  pause() {
@@ -9263,7 +9263,7 @@ function f4(a, e, t = {}) {
9263
9263
  resume() {
9264
9264
  f.value = !0;
9265
9265
  },
9266
- stop: m
9266
+ stop: C
9267
9267
  };
9268
9268
  }
9269
9269
  const v4 = {
@@ -9301,7 +9301,7 @@ const v4 = {
9301
9301
  const t = a, s = J(!1), n = J(null);
9302
9302
  f4(n, ([{ isIntersecting: r }]) => {
9303
9303
  s.value = r;
9304
- }), le(s, (r) => {
9304
+ }), re(s, (r) => {
9305
9305
  r && t.hasMore && !t.isLoading && e("loadMore");
9306
9306
  });
9307
9307
  const o = (r) => {
@@ -9343,17 +9343,17 @@ const v4 = {
9343
9343
  group: "kanban"
9344
9344
  }, r.$attrs, {
9345
9345
  onChange: l,
9346
- draggable: r.isEditable
9346
+ disabled: !r.isEditable
9347
9347
  }), {
9348
9348
  item: j(({ element: u }) => {
9349
- var f, p, m, $, M, S, _, g;
9349
+ var f, p, C, $, M, S, _, g;
9350
9350
  return [
9351
9351
  T(Ba, {
9352
9352
  id: u.id,
9353
9353
  name: u.name,
9354
9354
  "project-name": (f = u.project) == null ? void 0 : f.name,
9355
9355
  "project-color": (p = u.project) == null ? void 0 : p.color,
9356
- "phase-name": ($ = (m = u.milestone) == null ? void 0 : m.phase) == null ? void 0 : $.name,
9356
+ "phase-name": ($ = (C = u.milestone) == null ? void 0 : C.phase) == null ? void 0 : $.name,
9357
9357
  "milestone-name": (M = u.milestone) == null ? void 0 : M.name,
9358
9358
  deadline: u.deadline,
9359
9359
  rules: ((S = u.rules) == null ? void 0 : S.length) || 0,
@@ -9400,7 +9400,7 @@ const v4 = {
9400
9400
  ]))
9401
9401
  ]),
9402
9402
  _: 1
9403
- }, 16, ["list", "draggable"]),
9403
+ }, 16, ["list", "disabled"]),
9404
9404
  r.$slots.footer || r.footerLabel ? (c(), h("div", g4, [
9405
9405
  te(r.$slots, "footer", {}, () => [
9406
9406
  r.isEditable ? (c(), N(Qe, {
@@ -9455,7 +9455,7 @@ const y4 = { class: "ao-field ao-search-field" }, w4 = ["value", "placeholder",
9455
9455
  }
9456
9456
  });
9457
9457
  function M4(a) {
9458
- const e = J(), t = y(
9458
+ const e = J(), t = w(
9459
9459
  () => a.value.find(
9460
9460
  (n) => n.id === e.value
9461
9461
  )
@@ -9500,15 +9500,15 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
9500
9500
  },
9501
9501
  emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "update:searchText", "clear:searchText", "update:showsArchivedActivities", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
9502
9502
  setup(a, { emit: e }) {
9503
- const t = a, { t: s } = nt(), n = ct(t, "activities"), { selectActivity: o, selectedActivity: i } = A4(n), l = (w) => {
9504
- o(w), e("selectActivity", w);
9503
+ const t = a, { t: s } = nt(), n = ct(t, "activities"), { selectActivity: o, selectedActivity: i } = A4(n), l = (y) => {
9504
+ o(y), e("selectActivity", y);
9505
9505
  }, r = J({}), d = J(!1);
9506
- le(
9506
+ re(
9507
9507
  [() => t.statuses, () => t.activities],
9508
9508
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
9509
- async ([w, Y], [he, Z]) => {
9509
+ async ([y, Y], [he, Z]) => {
9510
9510
  r.value = Object.fromEntries(
9511
- w.map((F) => [
9511
+ y.map((F) => [
9512
9512
  F.id,
9513
9513
  Y.filter((E) => {
9514
9514
  var U;
@@ -9519,111 +9519,107 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
9519
9519
  },
9520
9520
  { immediate: !0 }
9521
9521
  );
9522
- const u = y(() => {
9523
- var w;
9524
- return !i.value || !i.value.milestone ? "" : `${((w = i.value.milestone.phase) == null ? void 0 : w.name) ?? ""} / ${i.value.milestone.name ?? ""}`;
9525
- }), f = (w) => {
9522
+ const u = w(() => {
9523
+ var y;
9524
+ return !i.value || !i.value.milestone ? "" : `${((y = i.value.milestone.phase) == null ? void 0 : y.name) ?? ""} / ${i.value.milestone.name ?? ""}`;
9525
+ }), f = (y) => {
9526
9526
  var E, U;
9527
9527
  const Y = (E = t.activities) == null ? void 0 : E.at(-1), he = Y ? Ae.LexoRank.parse(Y.rank).genNext() : Ae.LexoRank.middle(), Z = ((U = t.activities) == null ? void 0 : U.length) ?? 0, F = {
9528
9528
  name: s("activity.defaultName", { idx: Z + 1 }),
9529
9529
  rank: he.format(),
9530
- statusId: w.id
9530
+ statusId: y.id
9531
9531
  };
9532
9532
  t.filters.assigneeId.length > 0 && (F.assigneeId = t.filters.assigneeId[0]), t.filters.projectId.length > 0 && (F.projectId = t.filters.projectId[0]), t.filters.typeId.length > 0 && (F.typeId = t.filters.typeId[0]), d.value = !0, e("addActivity", F);
9533
- }, p = (w, Y) => {
9534
- d.value = !1, e("update:filters", { ...t.filters, [w]: Y });
9535
- }, m = y(() => t.project ? [t.project] : t.projects ?? []);
9536
- le([m, t], () => {
9537
- console.log({ propsProject: JSON.stringify(t.project), propsProjects: JSON.stringify(t.projects), projects: JSON.stringify(m) });
9538
- });
9539
- const $ = y(() => m.value.map((w) => ({
9540
- value: w.id,
9541
- label: w.name
9542
- }))), M = y(() => {
9543
- var w;
9544
- return (w = t.activityTypes) == null ? void 0 : w.map((Y) => ({
9533
+ }, p = (y, Y) => {
9534
+ d.value = !1, e("update:filters", { ...t.filters, [y]: Y });
9535
+ }, C = w(() => t.project ? [t.project] : t.projects ?? []), $ = w(() => C.value.map((y) => ({
9536
+ value: y.id,
9537
+ label: y.name
9538
+ }))), M = w(() => {
9539
+ var y;
9540
+ return (y = t.activityTypes) == null ? void 0 : y.map((Y) => ({
9545
9541
  value: Y.id,
9546
9542
  label: Y.name
9547
9543
  }));
9548
- }), S = y(() => t.users.map((w) => ({
9549
- value: w.id,
9550
- label: `${w.firstName} ${w.lastName}`,
9551
- avatar: w.avatarUrl
9552
- }))), _ = (w) => {
9553
- i.value && e("update:activity", w);
9554
- }, g = (w) => {
9555
- e("update:activity", w);
9556
- }, V = (w) => {
9557
- e("archiveActivity", w);
9558
- }, R = y({
9544
+ }), S = w(() => t.users.map((y) => ({
9545
+ value: y.id,
9546
+ label: `${y.firstName} ${y.lastName}`,
9547
+ avatar: y.avatarUrl
9548
+ }))), _ = (y) => {
9549
+ i.value && e("update:activity", y);
9550
+ }, g = (y) => {
9551
+ e("update:activity", y);
9552
+ }, V = (y) => {
9553
+ e("archiveActivity", y);
9554
+ }, R = w({
9559
9555
  get() {
9560
- var w;
9561
- return (w = i.value) == null ? void 0 : w.deadline;
9556
+ var y;
9557
+ return (y = i.value) == null ? void 0 : y.deadline;
9562
9558
  },
9563
- set(w) {
9559
+ set(y) {
9564
9560
  i.value && _({
9565
9561
  id: i.value.id,
9566
- deadline: w
9562
+ deadline: y
9567
9563
  });
9568
9564
  }
9569
- }), K = (w) => {
9570
- d.value = !1, e("update:searchText", w);
9571
- }, D = (w) => {
9572
- d.value = !1, e("clear:searchText", w);
9573
- }, X = (w) => {
9574
- i.value && e("addSubtask", w);
9575
- }, ae = (w) => {
9576
- i.value && e("updateSubtask", w);
9577
- }, I = (w) => {
9578
- i.value && e("deleteSubtask", w);
9579
- }, ee = (w) => {
9580
- e("addFiles", w);
9581
- }, b = (w) => {
9582
- e("removeFile", w);
9583
- }, k = (w) => {
9565
+ }), K = (y) => {
9566
+ d.value = !1, e("update:searchText", y);
9567
+ }, D = (y) => {
9568
+ d.value = !1, e("clear:searchText", y);
9569
+ }, X = (y) => {
9570
+ i.value && e("addSubtask", y);
9571
+ }, ae = (y) => {
9572
+ i.value && e("updateSubtask", y);
9573
+ }, I = (y) => {
9574
+ i.value && e("deleteSubtask", y);
9575
+ }, ee = (y) => {
9576
+ e("addFiles", y);
9577
+ }, b = (y) => {
9578
+ e("removeFile", y);
9579
+ }, k = (y) => {
9584
9580
  i.value && e("addComment", {
9585
- ...w,
9581
+ ...y,
9586
9582
  activityId: i.value.id
9587
9583
  });
9588
- }, P = (w) => {
9584
+ }, P = (y) => {
9589
9585
  const { id: Y } = i.value || {};
9590
- Y && e("updateComment", w);
9591
- }, ue = (w) => {
9586
+ Y && e("updateComment", y);
9587
+ }, ue = (y) => {
9592
9588
  const { id: Y } = i.value || {};
9593
- Y && e("removeComment", w);
9594
- }, ne = y(() => m.value.map((w) => ({
9595
- value: w.id,
9596
- label: w.name
9597
- }))), re = y(() => {
9589
+ Y && e("removeComment", y);
9590
+ }, ne = w(() => C.value.map((y) => ({
9591
+ value: y.id,
9592
+ label: y.name
9593
+ }))), le = w(() => {
9598
9594
  var Y, he, Z;
9599
- const w = (Z = (he = (Y = i.value) == null ? void 0 : Y.project) == null ? void 0 : he.phases) == null ? void 0 : Z.reduce((F, E) => [...F, ...E.milestones], []);
9600
- return w == null ? void 0 : w.map((F) => ({
9595
+ const y = (Z = (he = (Y = i.value) == null ? void 0 : Y.project) == null ? void 0 : he.phases) == null ? void 0 : Z.reduce((F, E) => [...F, ...E.milestones], []);
9596
+ return y == null ? void 0 : y.map((F) => ({
9601
9597
  value: F.id,
9602
9598
  label: F.name
9603
9599
  }));
9604
- }), ie = (w) => {
9600
+ }), ie = (y) => {
9605
9601
  i.value && e("update:activity", {
9606
9602
  id: i.value.id,
9607
- projectId: w
9603
+ projectId: y
9608
9604
  });
9609
- }, O = (w) => {
9605
+ }, O = (y) => {
9610
9606
  i.value && e("update:activity", {
9611
9607
  id: i.value.id,
9612
- milestoneId: w
9608
+ milestoneId: y
9613
9609
  });
9614
- }, L = y(() => {
9615
- var w;
9616
- return (w = t.statuses) == null ? void 0 : w.map((Y) => ({
9610
+ }, L = w(() => {
9611
+ var y;
9612
+ return (y = t.statuses) == null ? void 0 : y.map((Y) => ({
9617
9613
  value: Y.id,
9618
9614
  label: Y.name
9619
9615
  }));
9620
- }), W = (w) => {
9616
+ }), W = (y) => {
9621
9617
  i.value && e("update:activity", {
9622
9618
  id: i.value.id,
9623
- statusId: w
9619
+ statusId: y
9624
9620
  });
9625
9621
  };
9626
- return (w, Y) => {
9622
+ return (y, Y) => {
9627
9623
  var he;
9628
9624
  return c(), h("div", S4, [
9629
9625
  T(r1, null, {
@@ -9632,49 +9628,49 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
9632
9628
  t.project ? (c(), N(Pa, {
9633
9629
  key: 0,
9634
9630
  "is-left": !1,
9635
- "right-label": w.$t("project.switch.feed"),
9636
- "left-label": w.$t("project.switch.overview"),
9631
+ "right-label": y.$t("project.switch.feed"),
9632
+ "left-label": y.$t("project.switch.overview"),
9637
9633
  "onUpdate:isLeft": Y[0] || (Y[0] = (Z) => {
9638
- Z && w.$router.push({ name: q(Re).project });
9634
+ Z && y.$router.push({ name: q(Re).project });
9639
9635
  })
9640
9636
  }, null, 8, ["right-label", "left-label"])) : A("", !0),
9641
9637
  T($4, {
9642
- "model-value": w.searchText,
9643
- placeholder: w.$t("feed.search.placeholder"),
9638
+ "model-value": y.searchText,
9639
+ placeholder: y.$t("feed.search.placeholder"),
9644
9640
  class: "ao-feed__search",
9645
9641
  "onUpdate:modelValue": K,
9646
9642
  onClear: D
9647
9643
  }, null, 8, ["model-value", "placeholder"]),
9648
9644
  t.project ? A("", !0) : (c(), N(ye, {
9649
9645
  key: 1,
9650
- "model-value": w.filters[q(ut).project],
9646
+ "model-value": y.filters[q(ut).project],
9651
9647
  mode: "tags",
9652
9648
  options: $.value,
9653
9649
  "close-on-select": !1,
9654
9650
  searchable: !0,
9655
9651
  class: "ao-feed__filter ao-feed__filter__projects",
9656
- placeholder: w.$t("feed.filters.project.placeholder"),
9652
+ placeholder: y.$t("feed.filters.project.placeholder"),
9657
9653
  "onUpdate:modelValue": Y[1] || (Y[1] = (Z) => p(q(ut).project, Z))
9658
9654
  }, null, 8, ["model-value", "options", "placeholder"])),
9659
9655
  M.value ? (c(), N(ye, {
9660
9656
  key: 2,
9661
- "model-value": w.filters[q(ut).type],
9657
+ "model-value": y.filters[q(ut).type],
9662
9658
  mode: "tags",
9663
9659
  options: M.value,
9664
9660
  "close-on-select": !1,
9665
9661
  searchable: !0,
9666
9662
  class: "ao-feed__filter ao-feed__filter__types",
9667
- placeholder: w.$t("feed.filters.activityType.placeholder"),
9663
+ placeholder: y.$t("feed.filters.activityType.placeholder"),
9668
9664
  "onUpdate:modelValue": Y[2] || (Y[2] = (Z) => p(q(ut).type, Z))
9669
9665
  }, null, 8, ["model-value", "options", "placeholder"])) : A("", !0),
9670
9666
  T(ye, {
9671
- "model-value": w.filters[q(ut).assignee],
9667
+ "model-value": y.filters[q(ut).assignee],
9672
9668
  mode: "tags",
9673
9669
  options: S.value,
9674
9670
  "close-on-select": !1,
9675
9671
  searchable: !0,
9676
9672
  class: "ao-feed__filter ao-feed__filter__assignees",
9677
- placeholder: w.$t("feed.filters.assignee.placeholder"),
9673
+ placeholder: y.$t("feed.filters.assignee.placeholder"),
9678
9674
  "onUpdate:modelValue": Y[3] || (Y[3] = (Z) => p(q(ut).assignee, Z))
9679
9675
  }, {
9680
9676
  tag: j(({ option: Z, handleTagRemove: F }) => [
@@ -9691,27 +9687,27 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
9691
9687
  T(de, {
9692
9688
  class: "ao-feed__show-archived",
9693
9689
  size: "sm",
9694
- "icon-name": w.showsArchivedActivities ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
9690
+ "icon-name": y.showsArchivedActivities ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
9695
9691
  "icon-position": "start",
9696
9692
  color: "primary",
9697
9693
  variant: "ghost",
9698
- label: w.$t("feed.filters.showsArchivedActivities.label"),
9694
+ label: y.$t("feed.filters.showsArchivedActivities.label"),
9699
9695
  role: "checkbox",
9700
- "aria-checked": w.showsArchivedActivities,
9701
- onClick: Y[4] || (Y[4] = (Z) => w.$emit("update:showsArchivedActivities", !w.showsArchivedActivities))
9696
+ "aria-checked": y.showsArchivedActivities,
9697
+ onClick: Y[4] || (Y[4] = (Z) => y.$emit("update:showsArchivedActivities", !y.showsArchivedActivities))
9702
9698
  }, null, 8, ["icon-name", "label", "aria-checked"])
9703
9699
  ]),
9704
9700
  _: 1
9705
9701
  }),
9706
9702
  v("div", E4, [
9707
- (c(!0), h(fe, null, be(w.statuses, (Z) => (c(), N(b4, {
9703
+ (c(!0), h(fe, null, be(y.statuses, (Z) => (c(), N(b4, {
9708
9704
  key: Z.id,
9709
9705
  status: Z,
9710
9706
  list: r.value[Z.id],
9711
9707
  title: Z.name,
9712
- "footer-label": w.$t("feed.activity.add"),
9713
- users: w.users,
9714
- "is-editable": w.isEditable,
9708
+ "footer-label": y.$t("feed.activity.add"),
9709
+ users: y.users,
9710
+ "is-editable": y.isEditable,
9715
9711
  onAdd: () => f(Z),
9716
9712
  onSelectActivity: l,
9717
9713
  onArchiveActivity: V,
@@ -9725,12 +9721,12 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
9725
9721
  "activity-types": M.value,
9726
9722
  "milestone-id": (he = q(i).milestone) == null ? void 0 : he.id,
9727
9723
  "template-activities": n.value,
9728
- users: w.users,
9729
- "user-id": w.userId,
9730
- "is-task-checkable": w.isTaskCheckable,
9731
- statuses: w.statuses,
9724
+ users: y.users,
9725
+ "user-id": y.userId,
9726
+ "is-task-checkable": y.isTaskCheckable,
9727
+ statuses: y.statuses,
9732
9728
  breadcrumbs: u.value,
9733
- "is-editable": w.isEditable,
9729
+ "is-editable": y.isEditable,
9734
9730
  onClose: Y[6] || (Y[6] = () => l(null)),
9735
9731
  "onUpdate:activity": _,
9736
9732
  onAddSubtask: X,
@@ -9747,32 +9743,38 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
9747
9743
  return [
9748
9744
  v("div", I4, [
9749
9745
  ne.value && !t.project ? (c(), h("label", O4, [
9750
- v("span", L4, z(w.$t("activity.project.label")), 1),
9746
+ v("span", L4, z(y.$t("activity.project.label")), 1),
9751
9747
  T(ye, {
9752
9748
  options: ne.value,
9753
9749
  value: (Z = q(i).project) == null ? void 0 : Z.id,
9754
9750
  searchable: !0,
9751
+ disabled: !y.isEditable,
9752
+ caret: y.isEditable,
9755
9753
  onChange: ie
9756
- }, null, 8, ["options", "value"])
9754
+ }, null, 8, ["options", "value", "disabled", "caret"])
9757
9755
  ])) : A("", !0),
9758
- re.value ? (c(), h("label", V4, [
9759
- v("span", D4, z(w.$t("activity.milestone.label")), 1),
9756
+ le.value ? (c(), h("label", V4, [
9757
+ v("span", D4, z(y.$t("activity.milestone.label")), 1),
9760
9758
  T(ye, {
9761
- options: re.value,
9759
+ options: le.value,
9762
9760
  value: (F = q(i).milestone) == null ? void 0 : F.id,
9763
9761
  searchable: !0,
9762
+ disabled: !y.isEditable,
9763
+ caret: y.isEditable,
9764
9764
  onChange: O
9765
- }, null, 8, ["options", "value"])
9765
+ }, null, 8, ["options", "value", "disabled", "caret"])
9766
9766
  ])) : A("", !0),
9767
9767
  L.value ? (c(), h("label", H4, [
9768
- v("span", P4, z(w.$t("activity.status.label")), 1),
9768
+ v("span", P4, z(y.$t("activity.status.label")), 1),
9769
9769
  T(ye, {
9770
9770
  options: L.value,
9771
9771
  value: (E = q(i).status) == null ? void 0 : E.id,
9772
9772
  "can-clear": !1,
9773
9773
  "can-deselect": !1,
9774
+ disabled: !y.isEditable,
9775
+ caret: y.isEditable,
9774
9776
  onChange: W
9775
- }, null, 8, ["options", "value"])
9777
+ }, null, 8, ["options", "value", "disabled", "caret"])
9776
9778
  ])) : A("", !0)
9777
9779
  ])
9778
9780
  ];
@@ -9780,7 +9782,7 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
9780
9782
  default: j(() => [
9781
9783
  v("div", B4, [
9782
9784
  v("label", N4, [
9783
- v("span", R4, z(w.$t("activity.deadline.label")), 1),
9785
+ v("span", R4, z(y.$t("activity.deadline.label")), 1),
9784
9786
  ft(v("input", {
9785
9787
  "onUpdate:modelValue": Y[5] || (Y[5] = (Z) => R.value = Z),
9786
9788
  class: "ao-field__input",
@@ -9875,7 +9877,7 @@ const Tt = {
9875
9877
  emits: ["addTemplate", "updateTemplates", "updateItem"],
9876
9878
  setup(a, { emit: e }) {
9877
9879
  const t = a, { t: s } = nt();
9878
- le(() => t.templates, (l, r) => {
9880
+ re(() => t.templates, (l, r) => {
9879
9881
  Ue(l, r);
9880
9882
  });
9881
9883
  const n = () => {