@26lights/orcha 0.7.27 → 0.7.28

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,13 +1,13 @@
1
- import { defineComponent as G, openBlock as u, createBlock as j, unref as B, mergeProps as Ee, createElementBlock as C, createElementVNode as r, pushScopeId as Nt, popScopeId as jt, createStaticVNode as Rt, computed as f, resolveDynamicComponent as ze, normalizeClass as K, renderSlot as Y, toDisplayString as N, createCommentVNode as w, ref as x, watch as pe, nextTick as He, withKeys as t1, toHandlers as Ut, withCtx as R, createTextVNode as Z1, createVNode as b, Fragment as le, renderList as ve, withModifiers as ke, toRefs as ye, getCurrentInstance as Oe, onMounted as m1, onUnmounted as qt, withDirectives as Ue, vModelText as s1, vModelCheckbox as zt, toRef as Qe, Teleport as C1, normalizeStyle as Ft, resolveComponent as Kt, toValue as x1, getCurrentScope as Gt, onScopeDispose as Yt, provide as Wt } from "vue";
1
+ import { defineComponent as K, openBlock as u, createBlock as N, unref as O, mergeProps as Ee, createElementBlock as C, createElementVNode as r, pushScopeId as Nt, popScopeId as jt, createStaticVNode as Rt, computed as f, resolveDynamicComponent as ze, normalizeClass as F, renderSlot as Y, toDisplayString as j, createCommentVNode as w, ref as x, watch as de, nextTick as He, withKeys as t1, toHandlers as Ut, withCtx as R, createTextVNode as Z1, createVNode as b, Fragment as le, renderList as pe, withModifiers as ke, toRefs as ge, getCurrentInstance as Oe, onMounted as m1, onUnmounted as qt, withDirectives as Ue, vModelText as s1, vModelCheckbox as zt, toRef as Qe, Teleport as C1, normalizeStyle as Ft, resolveComponent as Kt, toValue as x1, getCurrentScope as Gt, onScopeDispose as Yt, provide as Wt } from "vue";
2
2
  import { RouterView as Xt } from "vue-router";
3
3
  import a1 from "vuedraggable";
4
- const Nu = /* @__PURE__ */ G({
4
+ const Nu = /* @__PURE__ */ K({
5
5
  __name: "AoTemplates",
6
6
  props: {
7
7
  templates: {}
8
8
  },
9
9
  setup(s) {
10
- return (e, t) => (u(), j(B(Xt), Ee({ templates: e.templates }, e.$attrs), null, 16, ["templates"]));
10
+ return (e, t) => (u(), N(O(Xt), Ee({ templates: e.templates }, e.$attrs), null, 16, ["templates"]));
11
11
  }
12
12
  }), L = (s, e) => {
13
13
  const t = s.__vccOpts || s;
@@ -599,7 +599,7 @@ const ui = /* @__PURE__ */ L(li, [["render", ri]]), ci = {}, di = {
599
599
  function Ci(s, e) {
600
600
  return u(), C("svg", di, vi);
601
601
  }
602
- const _i = /* @__PURE__ */ L(ci, [["render", Ci]]), mi = G({
602
+ const _i = /* @__PURE__ */ L(ci, [["render", Ci]]), mi = K({
603
603
  name: "LoadingIcon"
604
604
  });
605
605
  const P1 = (s) => (Nt("data-v-ad6da4a9"), s = s(), jt(), s), hi = {
@@ -1118,7 +1118,7 @@ const Mr = /* @__PURE__ */ L(gr, [["render", wr]]), Ar = /* @__PURE__ */ Object.
1118
1118
  }, it = {
1119
1119
  ROUND: "round",
1120
1120
  ROUNDED: "rounded"
1121
- }, ne = /* @__PURE__ */ G({
1121
+ }, ne = /* @__PURE__ */ K({
1122
1122
  __name: "AoIcon",
1123
1123
  props: {
1124
1124
  name: {},
@@ -1126,15 +1126,15 @@ const Mr = /* @__PURE__ */ L(gr, [["render", wr]]), Ar = /* @__PURE__ */ Object.
1126
1126
  },
1127
1127
  setup(s) {
1128
1128
  const e = s, t = f(() => Ar[e.name]);
1129
- return (n, a) => (u(), j(ze(t.value), {
1130
- class: K(["ao-icon", `ao-icon--${n.size}`])
1129
+ return (n, a) => (u(), N(ze(t.value), {
1130
+ class: F(["ao-icon", `ao-icon--${n.size}`])
1131
1131
  }, null, 8, ["class"]));
1132
1132
  }
1133
1133
  });
1134
1134
  const Sr = ["type"], Vr = {
1135
1135
  key: 0,
1136
1136
  class: "ao-button__label"
1137
- }, ue = /* @__PURE__ */ G({
1137
+ }, ue = /* @__PURE__ */ K({
1138
1138
  __name: "AoButton",
1139
1139
  props: {
1140
1140
  label: { default: () => "" },
@@ -1152,7 +1152,7 @@ const Sr = ["type"], Vr = {
1152
1152
  const e = s, t = f(() => e.size), n = f(() => e.isLoading ? "Loading" : e.iconName);
1153
1153
  return (a, i) => (u(), C("button", {
1154
1154
  type: a.type,
1155
- class: K([
1155
+ class: F([
1156
1156
  "ao-button",
1157
1157
  `ao-button--${a.variant}`,
1158
1158
  a.color ? `ao-button--${a.color}` : "",
@@ -1164,9 +1164,9 @@ const Sr = ["type"], Vr = {
1164
1164
  ])
1165
1165
  }, [
1166
1166
  Y(a.$slots, "default", {}, () => [
1167
- a.label ? (u(), C("span", Vr, N(a.label), 1)) : w("", !0)
1167
+ a.label ? (u(), C("span", Vr, j(a.label), 1)) : w("", !0)
1168
1168
  ]),
1169
- n.value ? (u(), j(ne, {
1169
+ n.value ? (u(), N(ne, {
1170
1170
  key: 0,
1171
1171
  name: n.value,
1172
1172
  class: "ao-button__icon",
@@ -1189,7 +1189,7 @@ function ot(s) {
1189
1189
  d(s.value[n.value], c);
1190
1190
  });
1191
1191
  };
1192
- return pe(e, async (d) => {
1192
+ return de(e, async (d) => {
1193
1193
  await He(() => {
1194
1194
  setTimeout(() => {
1195
1195
  s.value && d && (s.value.focus(), t.value = s.value[n.value]);
@@ -1203,7 +1203,7 @@ function ot(s) {
1203
1203
  onDiscard: l
1204
1204
  };
1205
1205
  }
1206
- const ce = /* @__PURE__ */ G({
1206
+ const ce = /* @__PURE__ */ K({
1207
1207
  __name: "AoTitle",
1208
1208
  props: {
1209
1209
  title: {},
@@ -1215,28 +1215,28 @@ const ce = /* @__PURE__ */ G({
1215
1215
  emits: ["update:title", "toggle-is-editing"],
1216
1216
  setup(s, { emit: e }) {
1217
1217
  const t = s, n = x(null), { isEditing: a, setIsEditing: i, onUpdate: l, onDiscard: o } = ot(n), d = f(() => a.value ? "input" : t.tag || `h${t.level}`), c = f(() => t.isEditable ? a.value ? {
1218
- change: v,
1218
+ change: p,
1219
1219
  click: (E) => E.stopPropagation(),
1220
- blur: h
1220
+ blur: m
1221
1221
  } : {
1222
1222
  click: V,
1223
1223
  focus: V
1224
- } : {}), v = l((E, I) => {
1225
- const y = I.target.value;
1224
+ } : {}), p = l((E, k) => {
1225
+ const y = k.target.value;
1226
1226
  e("update:title", y);
1227
- }), _ = o(), h = async () => {
1227
+ }), _ = o(), m = async () => {
1228
1228
  a.value && i(!1);
1229
1229
  }, $ = () => {
1230
1230
  e("toggle-is-editing", !1);
1231
1231
  }, V = (E) => {
1232
1232
  E.stopPropagation(), a.value || i(!0);
1233
1233
  };
1234
- return pe(
1234
+ return de(
1235
1235
  () => t.isEditable,
1236
1236
  (E) => {
1237
1237
  E || _();
1238
1238
  }
1239
- ), (E, I) => (u(), j(ze(d.value), Ee({
1239
+ ), (E, k) => (u(), N(ze(d.value), Ee({
1240
1240
  ref_key: "target",
1241
1241
  ref: n,
1242
1242
  class: [
@@ -1245,19 +1245,19 @@ const ce = /* @__PURE__ */ G({
1245
1245
  {
1246
1246
  [`ao-title--${E.color}`]: !!E.color,
1247
1247
  "ao-title--editable": E.isEditable,
1248
- "ao-field__input ao-title--editing": B(a),
1249
- "ao-title--readonly": !B(a)
1248
+ "ao-field__input ao-title--editing": O(a),
1249
+ "ao-title--readonly": !O(a)
1250
1250
  }
1251
1251
  ],
1252
- type: B(a) ? "text" : null,
1253
- value: B(a) ? E.title : null,
1252
+ type: O(a) ? "text" : null,
1253
+ value: O(a) ? E.title : null,
1254
1254
  tabindex: "0",
1255
1255
  onKeyup: t1($, ["enter"])
1256
1256
  }, Ut(c.value), {
1257
- onKeydown: t1(B(_), ["esc"])
1257
+ onKeydown: t1(O(_), ["esc"])
1258
1258
  }), {
1259
1259
  default: R(() => [
1260
- Z1(N(E.title), 1)
1260
+ Z1(j(E.title), 1)
1261
1261
  ]),
1262
1262
  _: 1
1263
1263
  }, 16, ["class", "type", "value", "onKeyup", "onKeydown"]));
@@ -1284,7 +1284,7 @@ const Lr = {
1284
1284
  }, Pr = {
1285
1285
  key: 3,
1286
1286
  class: "ao-card-horiz__secondary"
1287
- }, rt = /* @__PURE__ */ G({
1287
+ }, rt = /* @__PURE__ */ K({
1288
1288
  __name: "AoCardHoriz",
1289
1289
  props: {
1290
1290
  title: {},
@@ -1300,8 +1300,8 @@ const Lr = {
1300
1300
  const t = (n) => {
1301
1301
  e("update:title", n);
1302
1302
  };
1303
- return (n, a) => (u(), j(ze(n.tagName), {
1304
- class: K(["ao-card-horiz", { "ao-card-horiz--active": n.isActive }])
1303
+ return (n, a) => (u(), N(ze(n.tagName), {
1304
+ class: F(["ao-card-horiz", { "ao-card-horiz--active": n.isActive }])
1305
1305
  }, {
1306
1306
  default: R(() => [
1307
1307
  n.isDraggable ? (u(), C("div", Lr, [
@@ -1327,7 +1327,7 @@ const Lr = {
1327
1327
  "onUpdate:title": t
1328
1328
  }, null, 8, ["title"]),
1329
1329
  Y(n.$slots, "subtitle", {}, () => [
1330
- n.subtitle ? (u(), C("span", Or, N(n.subtitle), 1)) : w("", !0)
1330
+ n.subtitle ? (u(), C("span", Or, j(n.subtitle), 1)) : w("", !0)
1331
1331
  ])
1332
1332
  ]),
1333
1333
  n.$slots.header ? (u(), C("div", Br, [
@@ -1348,7 +1348,7 @@ const Lr = {
1348
1348
  }, 8, ["class"]));
1349
1349
  }
1350
1350
  });
1351
- const f1 = /* @__PURE__ */ G({
1351
+ const f1 = /* @__PURE__ */ K({
1352
1352
  __name: "AoTag",
1353
1353
  props: {
1354
1354
  label: {},
@@ -1363,7 +1363,7 @@ const f1 = /* @__PURE__ */ G({
1363
1363
  () => t.value === "button" ? { type: "button" } : {}
1364
1364
  );
1365
1365
  return (a, i) => (u(), C("div", {
1366
- class: K([
1366
+ class: F([
1367
1367
  "ao-tag",
1368
1368
  a.color ? `ao-tag--${a.color}` : "",
1369
1369
  a.clickable ? "ao-tag--clickable" : "",
@@ -1371,11 +1371,11 @@ const f1 = /* @__PURE__ */ G({
1371
1371
  a.variant ? `ao-tag--${a.variant}` : ""
1372
1372
  ])
1373
1373
  }, [
1374
- (u(), j(ze(t.value), Ee({ class: "ao-tag__label" }, n.value, {
1374
+ (u(), N(ze(t.value), Ee({ class: "ao-tag__label" }, n.value, {
1375
1375
  onClick: i[0] || (i[0] = (l) => a.$emit("click", l))
1376
1376
  }), {
1377
1377
  default: R(() => [
1378
- Z1(N(a.label), 1)
1378
+ Z1(j(a.label), 1)
1379
1379
  ]),
1380
1380
  _: 1
1381
1381
  }, 16)),
@@ -1393,7 +1393,7 @@ const f1 = /* @__PURE__ */ G({
1393
1393
  ], 2));
1394
1394
  }
1395
1395
  });
1396
- var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, fe = {}, ut = {}, Xe = {}, l1 = {}, Fe = {}, g1 = {};
1396
+ var $e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, be = {}, ut = {}, Xe = {}, l1 = {}, Fe = {}, g1 = {};
1397
1397
  Object.defineProperty(g1, "__esModule", { value: !0 });
1398
1398
  g1.lexoHelper = void 0;
1399
1399
  g1.lexoHelper = {
@@ -1434,7 +1434,7 @@ n1.default = jr;
1434
1434
  Object.defineProperty(Fe, "__esModule", { value: !0 });
1435
1435
  Fe.LexoInteger = void 0;
1436
1436
  const d1 = g1, Rr = n1;
1437
- class F {
1437
+ class z {
1438
1438
  constructor(e, t, n) {
1439
1439
  this.sys = e, this.sign = t, this.mag = n;
1440
1440
  }
@@ -1445,36 +1445,36 @@ class F {
1445
1445
  let l = i.length - 1;
1446
1446
  for (let o = 0; l >= 0; ++o)
1447
1447
  i[o] = t.toDigit(n.charAt(l)), --l;
1448
- return F.make(t, a, i);
1448
+ return z.make(t, a, i);
1449
1449
  }
1450
1450
  static zero(e) {
1451
- return new F(e, 0, F.ZERO_MAG);
1451
+ return new z(e, 0, z.ZERO_MAG);
1452
1452
  }
1453
1453
  static one(e) {
1454
- return F.make(e, 1, F.ONE_MAG);
1454
+ return z.make(e, 1, z.ONE_MAG);
1455
1455
  }
1456
1456
  static make(e, t, n) {
1457
1457
  let a;
1458
1458
  for (a = n.length; a > 0 && n[a - 1] === 0; --a)
1459
1459
  ;
1460
1460
  if (a === 0)
1461
- return F.zero(e);
1461
+ return z.zero(e);
1462
1462
  if (a === n.length)
1463
- return new F(e, t, n);
1463
+ return new z(e, t, n);
1464
1464
  const i = new Array(a).fill(0);
1465
- return d1.lexoHelper.arrayCopy(n, 0, i, 0, a), new F(e, t, i);
1465
+ return d1.lexoHelper.arrayCopy(n, 0, i, 0, a), new z(e, t, i);
1466
1466
  }
1467
1467
  static add(e, t, n) {
1468
1468
  const a = Math.max(t.length, n.length), i = new Array(a).fill(0);
1469
1469
  let l = 0;
1470
1470
  for (let o = 0; o < a; ++o) {
1471
1471
  const d = o < t.length ? t[o] : 0, c = o < n.length ? n[o] : 0;
1472
- let v = d + c + l;
1473
- for (l = 0; v >= e.getBase(); v -= e.getBase())
1472
+ let p = d + c + l;
1473
+ for (l = 0; p >= e.getBase(); p -= e.getBase())
1474
1474
  ++l;
1475
- i[o] = v;
1475
+ i[o] = p;
1476
1476
  }
1477
- return F.extendWithCarry(i, l);
1477
+ return z.extendWithCarry(i, l);
1478
1478
  }
1479
1479
  static extendWithCarry(e, t) {
1480
1480
  if (t > 0) {
@@ -1484,8 +1484,8 @@ class F {
1484
1484
  return e;
1485
1485
  }
1486
1486
  static subtract(e, t, n) {
1487
- const a = F.complement(e, n, t.length), i = F.add(e, t, a);
1488
- return i[i.length - 1] = 0, F.add(e, i, F.ONE_MAG);
1487
+ const a = z.complement(e, n, t.length), i = z.add(e, t, a);
1488
+ return i[i.length - 1] = 0, z.add(e, i, z.ONE_MAG);
1489
1489
  }
1490
1490
  static multiply(e, t, n) {
1491
1491
  const a = new Array(t.length + n.length).fill(0);
@@ -1527,8 +1527,8 @@ class F {
1527
1527
  let n;
1528
1528
  return this.sign === -1 ? (n = this.negate(), n.subtract(e).negate()) : (n = e.negate(), this.subtract(n));
1529
1529
  }
1530
- const t = F.add(this.sys, this.mag, e.mag);
1531
- return F.make(this.sys, this.sign, t);
1530
+ const t = z.add(this.sys, this.mag, e.mag);
1531
+ return z.make(this.sys, this.sign, t);
1532
1532
  }
1533
1533
  subtract(e) {
1534
1534
  if (this.checkSystem(e), this.isZero())
@@ -1539,8 +1539,8 @@ class F {
1539
1539
  let n;
1540
1540
  return this.sign === -1 ? (n = this.negate(), n.add(e).negate()) : (n = e.negate(), this.add(n));
1541
1541
  }
1542
- const t = F.compare(this.mag, e.mag);
1543
- return t === 0 ? F.zero(this.sys) : t < 0 ? F.make(this.sys, this.sign === -1 ? 1 : -1, F.subtract(this.sys, e.mag, this.mag)) : F.make(this.sys, this.sign === -1 ? -1 : 1, F.subtract(this.sys, this.mag, e.mag));
1542
+ const t = z.compare(this.mag, e.mag);
1543
+ return t === 0 ? z.zero(this.sys) : t < 0 ? z.make(this.sys, this.sign === -1 ? 1 : -1, z.subtract(this.sys, e.mag, this.mag)) : z.make(this.sys, this.sign === -1 ? -1 : 1, z.subtract(this.sys, this.mag, e.mag));
1544
1544
  }
1545
1545
  multiply(e) {
1546
1546
  if (this.checkSystem(e), this.isZero())
@@ -1548,14 +1548,14 @@ class F {
1548
1548
  if (e.isZero())
1549
1549
  return e;
1550
1550
  if (this.isOneish())
1551
- return this.sign === e.sign ? F.make(this.sys, 1, e.mag) : F.make(this.sys, -1, e.mag);
1551
+ return this.sign === e.sign ? z.make(this.sys, 1, e.mag) : z.make(this.sys, -1, e.mag);
1552
1552
  if (e.isOneish())
1553
- return this.sign === e.sign ? F.make(this.sys, 1, this.mag) : F.make(this.sys, -1, this.mag);
1554
- const t = F.multiply(this.sys, this.mag, e.mag);
1555
- return this.sign === e.sign ? F.make(this.sys, 1, t) : F.make(this.sys, -1, t);
1553
+ return this.sign === e.sign ? z.make(this.sys, 1, this.mag) : z.make(this.sys, -1, this.mag);
1554
+ const t = z.multiply(this.sys, this.mag, e.mag);
1555
+ return this.sign === e.sign ? z.make(this.sys, 1, t) : z.make(this.sys, -1, t);
1556
1556
  }
1557
1557
  negate() {
1558
- return this.isZero() ? this : F.make(this.sys, this.sign === 1 ? -1 : 1, this.mag);
1558
+ return this.isZero() ? this : z.make(this.sys, this.sign === 1 ? -1 : 1, this.mag);
1559
1559
  }
1560
1560
  shiftLeft(e = 1) {
1561
1561
  if (e === 0)
@@ -1563,19 +1563,19 @@ class F {
1563
1563
  if (e < 0)
1564
1564
  return this.shiftRight(Math.abs(e));
1565
1565
  const t = new Array(this.mag.length + e).fill(0);
1566
- return d1.lexoHelper.arrayCopy(this.mag, 0, t, e, this.mag.length), F.make(this.sys, this.sign, t);
1566
+ return d1.lexoHelper.arrayCopy(this.mag, 0, t, e, this.mag.length), z.make(this.sys, this.sign, t);
1567
1567
  }
1568
1568
  shiftRight(e = 1) {
1569
1569
  if (this.mag.length - e <= 0)
1570
- return F.zero(this.sys);
1570
+ return z.zero(this.sys);
1571
1571
  const t = new Array(this.mag.length - e).fill(0);
1572
- return d1.lexoHelper.arrayCopy(this.mag, e, t, 0, t.length), F.make(this.sys, this.sign, t);
1572
+ return d1.lexoHelper.arrayCopy(this.mag, e, t, 0, t.length), z.make(this.sys, this.sign, t);
1573
1573
  }
1574
1574
  complement() {
1575
1575
  return this.complementDigits(this.mag.length);
1576
1576
  }
1577
1577
  complementDigits(e) {
1578
- return F.make(this.sys, this.sign, F.complement(this.sys, this.mag, e));
1578
+ return z.make(this.sys, this.sign, z.complement(this.sys, this.mag, e));
1579
1579
  }
1580
1580
  isZero() {
1581
1581
  return this.sign === 0 && this.mag.length === 1 && this.mag[0] === 0;
@@ -1593,12 +1593,12 @@ class F {
1593
1593
  return 1;
1594
1594
  if (this.sign === -1) {
1595
1595
  if (e.sign === -1) {
1596
- const t = F.compare(this.mag, e.mag);
1596
+ const t = z.compare(this.mag, e.mag);
1597
1597
  return t === -1 ? 1 : t === 1 ? -1 : 0;
1598
1598
  }
1599
1599
  return -1;
1600
1600
  }
1601
- return this.sign === 1 ? e.sign === 1 ? F.compare(this.mag, e.mag) : 1 : e.sign === -1 ? 1 : e.sign === 1 ? -1 : 0;
1601
+ return this.sign === 1 ? e.sign === 1 ? z.compare(this.mag, e.mag) : 1 : e.sign === -1 ? 1 : e.sign === 1 ? -1 : 0;
1602
1602
  }
1603
1603
  getSystem() {
1604
1604
  return this.sys;
@@ -1627,43 +1627,43 @@ class F {
1627
1627
  throw new Error("Expected numbers of same numeral sys");
1628
1628
  }
1629
1629
  }
1630
- Fe.LexoInteger = F;
1631
- F.ZERO_MAG = [0];
1632
- F.ONE_MAG = [1];
1633
- F.NEGATIVE_SIGN = -1;
1634
- F.ZERO_SIGN = 0;
1635
- F.POSITIVE_SIGN = 1;
1630
+ Fe.LexoInteger = z;
1631
+ z.ZERO_MAG = [0];
1632
+ z.ONE_MAG = [1];
1633
+ z.NEGATIVE_SIGN = -1;
1634
+ z.ZERO_SIGN = 0;
1635
+ z.POSITIVE_SIGN = 1;
1636
1636
  Object.defineProperty(l1, "__esModule", { value: !0 });
1637
1637
  l1.LexoDecimal = void 0;
1638
1638
  const Je = Fe, Ur = n1;
1639
- class be {
1639
+ class ye {
1640
1640
  constructor(e, t) {
1641
1641
  this.mag = e, this.sig = t;
1642
1642
  }
1643
1643
  static half(e) {
1644
1644
  const t = e.getBase() / 2 | 0;
1645
- return be.make(Je.LexoInteger.make(e, 1, [t]), 1);
1645
+ return ye.make(Je.LexoInteger.make(e, 1, [t]), 1);
1646
1646
  }
1647
1647
  static parse(e, t) {
1648
1648
  const n = e.indexOf(t.getRadixPointChar());
1649
1649
  if (e.lastIndexOf(t.getRadixPointChar()) !== n)
1650
1650
  throw new Error("More than one " + t.getRadixPointChar());
1651
1651
  if (n < 0)
1652
- return be.make(Je.LexoInteger.parse(e, t), 0);
1652
+ return ye.make(Je.LexoInteger.parse(e, t), 0);
1653
1653
  const a = e.substring(0, n) + e.substring(n + 1);
1654
- return be.make(Je.LexoInteger.parse(a, t), e.length - 1 - n);
1654
+ return ye.make(Je.LexoInteger.parse(a, t), e.length - 1 - n);
1655
1655
  }
1656
1656
  static from(e) {
1657
- return be.make(e, 0);
1657
+ return ye.make(e, 0);
1658
1658
  }
1659
1659
  static make(e, t) {
1660
1660
  if (e.isZero())
1661
- return new be(e, 0);
1661
+ return new ye(e, 0);
1662
1662
  let n = 0;
1663
1663
  for (let l = 0; l < t && e.getMag(l) === 0; ++l)
1664
1664
  ++n;
1665
1665
  const a = e.shiftRight(n), i = t - n;
1666
- return new be(a, i);
1666
+ return new ye(a, i);
1667
1667
  }
1668
1668
  getSystem() {
1669
1669
  return this.mag.getSystem();
@@ -1674,7 +1674,7 @@ class be {
1674
1674
  t = t.shiftLeft();
1675
1675
  for (; n > i; )
1676
1676
  a = a.shiftLeft(), ++i;
1677
- return be.make(t.add(a), n);
1677
+ return ye.make(t.add(a), n);
1678
1678
  }
1679
1679
  subtract(e) {
1680
1680
  let t = this.mag, n = this.sig, a = e.mag, i;
@@ -1682,10 +1682,10 @@ class be {
1682
1682
  t = t.shiftLeft();
1683
1683
  for (; n > i; )
1684
1684
  a = a.shiftLeft(), ++i;
1685
- return be.make(t.subtract(a), n);
1685
+ return ye.make(t.subtract(a), n);
1686
1686
  }
1687
1687
  multiply(e) {
1688
- return be.make(this.mag.multiply(e.mag), this.sig + e.sig);
1688
+ return ye.make(this.mag.multiply(e.mag), this.sig + e.sig);
1689
1689
  }
1690
1690
  floor() {
1691
1691
  return this.mag.shiftRight(this.sig);
@@ -1713,7 +1713,7 @@ class be {
1713
1713
  e < 0 && (e = 0);
1714
1714
  const n = this.sig - e;
1715
1715
  let a = this.mag.shiftRight(n);
1716
- return t && (a = a.add(Je.LexoInteger.one(a.getSystem()))), be.make(a, e);
1716
+ return t && (a = a.add(Je.LexoInteger.one(a.getSystem()))), ye.make(a, e);
1717
1717
  }
1718
1718
  compareTo(e) {
1719
1719
  if (this === e)
@@ -1739,7 +1739,7 @@ class be {
1739
1739
  return this.format();
1740
1740
  }
1741
1741
  }
1742
- l1.LexoDecimal = be;
1742
+ l1.LexoDecimal = ye;
1743
1743
  var p1 = {}, et;
1744
1744
  function ct() {
1745
1745
  if (et)
@@ -1962,35 +1962,35 @@ function pt() {
1962
1962
  static between(l, o) {
1963
1963
  if (l.getSystem().getBase() !== o.getSystem().getBase())
1964
1964
  throw new Error("Expected same system");
1965
- let d = l, c = o, v;
1965
+ let d = l, c = o, p;
1966
1966
  if (l.getScale() < o.getScale()) {
1967
- if (v = o.setScale(l.getScale(), !1), l.compareTo(v) >= 0)
1967
+ if (p = o.setScale(l.getScale(), !1), l.compareTo(p) >= 0)
1968
1968
  return a.mid(l, o);
1969
- c = v;
1969
+ c = p;
1970
1970
  }
1971
1971
  if (l.getScale() > c.getScale()) {
1972
- if (v = l.setScale(c.getScale(), !0), v.compareTo(c) >= 0)
1972
+ if (p = l.setScale(c.getScale(), !0), p.compareTo(c) >= 0)
1973
1973
  return a.mid(l, o);
1974
- d = v;
1974
+ d = p;
1975
1975
  }
1976
1976
  let _;
1977
1977
  for (let V = d.getScale(); V > 0; c = _) {
1978
- const E = V - 1, I = d.setScale(E, !0);
1979
- if (_ = c.setScale(E, !1), I.compareTo(_) === 0)
1980
- return a.checkMid(l, o, I);
1981
- if (I.compareTo(_) > 0)
1978
+ const E = V - 1, k = d.setScale(E, !0);
1979
+ if (_ = c.setScale(E, !1), k.compareTo(_) === 0)
1980
+ return a.checkMid(l, o, k);
1981
+ if (k.compareTo(_) > 0)
1982
1982
  break;
1983
- V = E, d = I;
1983
+ V = E, d = k;
1984
1984
  }
1985
- let h = a.middleInternal(l, o, d, c), $;
1986
- for (let V = h.getScale(); V > 0; V = $) {
1985
+ let m = a.middleInternal(l, o, d, c), $;
1986
+ for (let V = m.getScale(); V > 0; V = $) {
1987
1987
  $ = V - 1;
1988
- const E = h.setScale($);
1988
+ const E = m.setScale($);
1989
1989
  if (l.compareTo(E) >= 0 || E.compareTo(o) >= 0)
1990
1990
  break;
1991
- h = E;
1991
+ m = E;
1992
1992
  }
1993
- return h;
1993
+ return m;
1994
1994
  }
1995
1995
  static parse(l) {
1996
1996
  const o = l.split("|"), d = e.default.from(o[0]), c = s.LexoDecimal.parse(o[1], a.NUMERAL_SYSTEM);
@@ -2002,31 +2002,31 @@ function pt() {
2002
2002
  return new a(l, o);
2003
2003
  }
2004
2004
  static middleInternal(l, o, d, c) {
2005
- const v = a.mid(d, c);
2006
- return a.checkMid(l, o, v);
2005
+ const p = a.mid(d, c);
2006
+ return a.checkMid(l, o, p);
2007
2007
  }
2008
2008
  static checkMid(l, o, d) {
2009
2009
  return l.compareTo(d) >= 0 || d.compareTo(o) >= 0 ? a.mid(l, o) : d;
2010
2010
  }
2011
2011
  static mid(l, o) {
2012
- const c = l.add(o).multiply(s.LexoDecimal.half(l.getSystem())), v = l.getScale() > o.getScale() ? l.getScale() : o.getScale();
2013
- if (c.getScale() > v) {
2014
- const _ = c.setScale(v, !1);
2012
+ const c = l.add(o).multiply(s.LexoDecimal.half(l.getSystem())), p = l.getScale() > o.getScale() ? l.getScale() : o.getScale();
2013
+ if (c.getScale() > p) {
2014
+ const _ = c.setScale(p, !1);
2015
2015
  if (_.compareTo(l) > 0)
2016
2016
  return _;
2017
- const h = c.setScale(v, !0);
2018
- if (h.compareTo(o) < 0)
2019
- return h;
2017
+ const m = c.setScale(p, !0);
2018
+ if (m.compareTo(o) < 0)
2019
+ return m;
2020
2020
  }
2021
2021
  return c;
2022
2022
  }
2023
2023
  static formatDecimal(l) {
2024
2024
  const o = l.format(), d = new t.default(o);
2025
2025
  let c = o.indexOf(a.NUMERAL_SYSTEM.getRadixPointChar());
2026
- const v = a.NUMERAL_SYSTEM.toChar(0);
2026
+ const p = a.NUMERAL_SYSTEM.toChar(0);
2027
2027
  for (c < 0 && (c = o.length, d.append(a.NUMERAL_SYSTEM.getRadixPointChar())); c < 6; )
2028
- d.insert(0, v), ++c;
2029
- for (; d[d.length - 1] === v; )
2028
+ d.insert(0, p), ++c;
2029
+ for (; d[d.length - 1] === p; )
2030
2030
  d.length = d.length - 1;
2031
2031
  return d.toString();
2032
2032
  }
@@ -2116,7 +2116,7 @@ function pt() {
2116
2116
  i !== "default" && !Object.prototype.hasOwnProperty.call(a, i) && e(a, n, i);
2117
2117
  };
2118
2118
  Object.defineProperty(s, "__esModule", { value: !0 }), t(ut, s), t(N1, s);
2119
- })(fe);
2119
+ })(be);
2120
2120
  function vt(s) {
2121
2121
  return (s == null ? void 0 : s.reduce((e, t) => {
2122
2122
  var n;
@@ -2155,9 +2155,9 @@ function D1(s, e, t) {
2155
2155
  const l = e > t ? -1 : 1;
2156
2156
  i = s[t + l];
2157
2157
  }
2158
- return !a && i ? fe.LexoRank.parse(i.rank).genPrev().format() : a && !i ? fe.LexoRank.parse(a.rank).genNext().format() : a && i ? fe.LexoRank.parse(i.rank).between(fe.LexoRank.parse(a.rank)).format() : fe.LexoRank.parse(n.rank).genNext().format();
2158
+ return !a && i ? be.LexoRank.parse(i.rank).genPrev().format() : a && !i ? be.LexoRank.parse(a.rank).genNext().format() : a && i ? be.LexoRank.parse(i.rank).between(be.LexoRank.parse(a.rank)).format() : be.LexoRank.parse(n.rank).genNext().format();
2159
2159
  }
2160
- const Wr = ["title"], Xr = { className: "ao-avatar__initials" }, Ke = /* @__PURE__ */ G({
2160
+ const Wr = ["title"], Xr = { className: "ao-avatar__initials" }, Ke = /* @__PURE__ */ K({
2161
2161
  __name: "AoAvatar",
2162
2162
  props: {
2163
2163
  userName: {},
@@ -2171,11 +2171,11 @@ const Wr = ["title"], Xr = { className: "ao-avatar__initials" }, Ke = /* @__PURE
2171
2171
  };
2172
2172
  return (i, l) => (u(), C("div", {
2173
2173
  role: "img",
2174
- class: K(["ao-avatar", `ao-avatar--${i.size}`]),
2174
+ class: F(["ao-avatar", `ao-avatar--${i.size}`]),
2175
2175
  title: i.userName
2176
2176
  }, [
2177
- r("span", Xr, N(B(n)), 1),
2178
- i.isClosable ? (u(), j(ue, {
2177
+ r("span", Xr, j(O(n)), 1),
2178
+ i.isClosable ? (u(), N(ue, {
2179
2179
  key: 0,
2180
2180
  "icon-name": "CloseRounded",
2181
2181
  class: "ao-avatar__close",
@@ -2195,7 +2195,7 @@ const Jr = { class: "ao-card-template__subitems" }, Qr = { class: "ao-card-templ
2195
2195
  }, u3 = { class: "ao-card-template__col-title" }, c3 = { class: "ao-card-template__col-label" }, d3 = { class: "ao-card-template__col-body" }, p3 = {
2196
2196
  key: 1,
2197
2197
  class: "ao-card-template__col ao-card-template__col--updated-by"
2198
- }, v3 = { class: "ao-card-template__col-title" }, C3 = { class: "ao-card-template__col-label" }, _3 = { class: "ao-card-template__col-body" }, m3 = /* @__PURE__ */ G({
2198
+ }, v3 = { class: "ao-card-template__col-title" }, C3 = { class: "ao-card-template__col-label" }, _3 = { class: "ao-card-template__col-body" }, m3 = /* @__PURE__ */ K({
2199
2199
  __name: "AoCardTemplate",
2200
2200
  props: {
2201
2201
  title: {},
@@ -2210,7 +2210,7 @@ const Jr = { class: "ao-card-template__subitems" }, Qr = { class: "ao-card-templ
2210
2210
  const t = (n) => {
2211
2211
  e("updateTitle", n);
2212
2212
  };
2213
- return (n, a) => (u(), j(rt, {
2213
+ return (n, a) => (u(), N(rt, {
2214
2214
  title: n.title,
2215
2215
  "is-draggable": !0,
2216
2216
  "onUpdate:title": t
@@ -2222,14 +2222,14 @@ const Jr = { class: "ao-card-template__subitems" }, Qr = { class: "ao-card-templ
2222
2222
  name: "MountainFlagOutlineRounded",
2223
2223
  size: "sm"
2224
2224
  }),
2225
- r("span", xr, N(n.milestones), 1)
2225
+ r("span", xr, j(n.milestones), 1)
2226
2226
  ]),
2227
2227
  r("li", e3, [
2228
2228
  b(ne, {
2229
2229
  name: "TaskOutlineRounded",
2230
2230
  size: "sm"
2231
2231
  }),
2232
- r("span", t3, N(n.activities), 1)
2232
+ r("span", t3, j(n.activities), 1)
2233
2233
  ])
2234
2234
  ])
2235
2235
  ]),
@@ -2241,10 +2241,10 @@ const Jr = { class: "ao-card-template__subitems" }, Qr = { class: "ao-card-templ
2241
2241
  name: "WaterfallChartRounded",
2242
2242
  size: "sm"
2243
2243
  }),
2244
- r("span", n3, N(n.$t("template.phases.title")), 1)
2244
+ r("span", n3, j(n.$t("template.phases.title")), 1)
2245
2245
  ]),
2246
2246
  n.phases ? (u(), C("ul", i3, [
2247
- (u(!0), C(le, null, ve(n.phases, (i) => (u(), j(f1, {
2247
+ (u(!0), C(le, null, pe(n.phases, (i) => (u(), N(f1, {
2248
2248
  key: i.id,
2249
2249
  label: i.name || i.id,
2250
2250
  color: "primary",
@@ -2258,15 +2258,15 @@ const Jr = { class: "ao-card-template__subitems" }, Qr = { class: "ao-card-templ
2258
2258
  r("div", o3, [
2259
2259
  n.updatedAt ? (u(), C("div", r3, [
2260
2260
  r("div", u3, [
2261
- r("span", c3, N(n.$t("template.updatedAt.label")), 1)
2261
+ r("span", c3, j(n.$t("template.updatedAt.label")), 1)
2262
2262
  ]),
2263
2263
  r("div", d3, [
2264
- r("span", null, N(n.updatedAt), 1)
2264
+ r("span", null, j(n.updatedAt), 1)
2265
2265
  ])
2266
2266
  ])) : w("", !0),
2267
2267
  n.updatedBy ? (u(), C("div", p3, [
2268
2268
  r("div", v3, [
2269
- r("span", C3, N(n.$t("template.updatedBy.label")), 1)
2269
+ r("span", C3, j(n.$t("template.updatedBy.label")), 1)
2270
2270
  ]),
2271
2271
  r("div", _3, [
2272
2272
  b(Ke, { "user-name": n.updatedBy }, null, 8, ["user-name"])
@@ -2278,7 +2278,7 @@ const Jr = { class: "ao-card-template__subitems" }, Qr = { class: "ao-card-templ
2278
2278
  }, 8, ["title"]));
2279
2279
  }
2280
2280
  });
2281
- const h3 = { class: "ao-page-header" }, f3 = { class: "ao-page-header-main" }, g3 = { class: "ao-page-header-secondary" }, M1 = /* @__PURE__ */ G({
2281
+ const h3 = { class: "ao-page-header" }, f3 = { class: "ao-page-header-main" }, g3 = { class: "ao-page-header-secondary" }, M1 = /* @__PURE__ */ K({
2282
2282
  __name: "AoPageHeader",
2283
2283
  props: {
2284
2284
  canGoBack: { type: Boolean }
@@ -2287,7 +2287,7 @@ const h3 = { class: "ao-page-header" }, f3 = { class: "ao-page-header-main" }, g
2287
2287
  setup(s) {
2288
2288
  return (e, t) => (u(), C("header", h3, [
2289
2289
  r("div", f3, [
2290
- e.canGoBack ? (u(), j(ue, {
2290
+ e.canGoBack ? (u(), N(ue, {
2291
2291
  key: 0,
2292
2292
  "icon-name": "ArrowBackRounded",
2293
2293
  variant: "ghost",
@@ -2304,7 +2304,7 @@ const h3 = { class: "ao-page-header" }, f3 = { class: "ao-page-header-main" }, g
2304
2304
  const y3 = ["type"], b3 = {
2305
2305
  key: 0,
2306
2306
  class: "ao-button-card__label"
2307
- }, Be = /* @__PURE__ */ G({
2307
+ }, Be = /* @__PURE__ */ K({
2308
2308
  __name: "AoButtonCard",
2309
2309
  props: {
2310
2310
  label: { default: () => "" },
@@ -2320,7 +2320,7 @@ const y3 = ["type"], b3 = {
2320
2320
  const e = s, t = f(() => e.size), n = f(() => e.isLoading ? "Loading" : e.iconName);
2321
2321
  return (a, i) => (u(), C("button", {
2322
2322
  type: a.type,
2323
- class: K([
2323
+ class: F([
2324
2324
  "ao-button-card",
2325
2325
  `ao-button-card--${a.color}`,
2326
2326
  `ao-button-card--${a.corners}`,
@@ -2328,9 +2328,9 @@ const y3 = ["type"], b3 = {
2328
2328
  ])
2329
2329
  }, [
2330
2330
  Y(a.$slots, "default", {}, () => [
2331
- a.label ? (u(), C("span", b3, N(a.label), 1)) : w("", !0)
2331
+ a.label ? (u(), C("span", b3, j(a.label), 1)) : w("", !0)
2332
2332
  ]),
2333
- n.value ? (u(), j(ne, {
2333
+ n.value ? (u(), N(ne, {
2334
2334
  key: 0,
2335
2335
  name: n.value,
2336
2336
  class: "ao-button-card__icon",
@@ -2342,7 +2342,7 @@ const y3 = ["type"], b3 = {
2342
2342
  const $3 = { class: "ao-card-template-item__footer" }, w3 = {
2343
2343
  key: 0,
2344
2344
  class: "ao-card-template-item__subitem"
2345
- }, M3 = { class: "ao-card-template-item__subitem-number" }, A3 = { class: "ao-card-template-item__secondary" }, j1 = /* @__PURE__ */ G({
2345
+ }, M3 = { class: "ao-card-template-item__subitem-number" }, A3 = { class: "ao-card-template-item__secondary" }, j1 = /* @__PURE__ */ K({
2346
2346
  __name: "AoCardTemplateItem",
2347
2347
  props: {
2348
2348
  milestones: {},
@@ -2362,16 +2362,16 @@ const $3 = { class: "ao-card-template-item__footer" }, w3 = {
2362
2362
  }, i = () => {
2363
2363
  e("remove");
2364
2364
  };
2365
- return (l, o) => (u(), j(rt, { "onUpdate:title": t }, {
2365
+ return (l, o) => (u(), N(rt, { "onUpdate:title": t }, {
2366
2366
  footer: R(() => [
2367
2367
  r("ul", $3, [
2368
- (u(), C(le, null, ve(n, (d) => (u(), C(le, { key: d }, [
2368
+ (u(), C(le, null, pe(n, (d) => (u(), C(le, { key: d }, [
2369
2369
  l.$props[d] ? (u(), C("li", w3, [
2370
2370
  b(ne, {
2371
2371
  name: a[d],
2372
2372
  size: "sm"
2373
2373
  }, null, 8, ["name"]),
2374
- r("span", M3, N(l.$props[d]), 1)
2374
+ r("span", M3, j(l.$props[d]), 1)
2375
2375
  ])) : w("", !0)
2376
2376
  ], 64))), 64))
2377
2377
  ])
@@ -2391,7 +2391,7 @@ const $3 = { class: "ao-card-template-item__footer" }, w3 = {
2391
2391
  }));
2392
2392
  }
2393
2393
  });
2394
- const k3 = /* @__PURE__ */ G({
2394
+ const k3 = /* @__PURE__ */ K({
2395
2395
  __name: "AoCardTemplateItemPhase",
2396
2396
  props: {
2397
2397
  id: {},
@@ -2403,7 +2403,7 @@ const k3 = /* @__PURE__ */ G({
2403
2403
  var a;
2404
2404
  return (a = e.milestones) == null ? void 0 : a.length;
2405
2405
  }), n = f(() => e.milestones ? vt(e.milestones) : 0);
2406
- return (a, i) => (u(), j(j1, Ee({
2406
+ return (a, i) => (u(), N(j1, Ee({
2407
2407
  title: a.name,
2408
2408
  activities: n.value,
2409
2409
  milestones: t.value
@@ -2414,7 +2414,7 @@ const k3 = /* @__PURE__ */ G({
2414
2414
  _: 3
2415
2415
  }, 16, ["title", "activities", "milestones"]));
2416
2416
  }
2417
- }), I3 = /* @__PURE__ */ G({
2417
+ }), I3 = /* @__PURE__ */ K({
2418
2418
  __name: "AoCardTemplateItemMilestone",
2419
2419
  props: {
2420
2420
  activities: {}
@@ -2424,14 +2424,14 @@ const k3 = /* @__PURE__ */ G({
2424
2424
  var n;
2425
2425
  return ((n = e.activities) == null ? void 0 : n.length) || 0;
2426
2426
  });
2427
- return (n, a) => (u(), j(j1, { activities: t.value }, {
2427
+ return (n, a) => (u(), N(j1, { activities: t.value }, {
2428
2428
  default: R(() => [
2429
2429
  Y(n.$slots, "default")
2430
2430
  ]),
2431
2431
  _: 3
2432
2432
  }, 8, ["activities"]));
2433
2433
  }
2434
- }), S3 = { class: "ao-list__footer" }, V3 = /* @__PURE__ */ G({
2434
+ }), S3 = { class: "ao-list__footer" }, V3 = /* @__PURE__ */ K({
2435
2435
  __name: "AoTemplateDetailsMilestones",
2436
2436
  props: {
2437
2437
  templateId: {},
@@ -2455,7 +2455,7 @@ const k3 = /* @__PURE__ */ G({
2455
2455
  });
2456
2456
  }
2457
2457
  };
2458
- return (o, d) => o.phase ? (u(), j(B(a1), {
2458
+ return (o, d) => o.phase ? (u(), N(O(a1), {
2459
2459
  key: 0,
2460
2460
  "model-value": o.phase.milestones,
2461
2461
  class: "ao-templates__list",
@@ -2472,14 +2472,14 @@ const k3 = /* @__PURE__ */ G({
2472
2472
  })
2473
2473
  ]),
2474
2474
  item: R(({ element: c }) => [
2475
- (u(), j(I3, {
2475
+ (u(), N(I3, {
2476
2476
  key: c.id,
2477
2477
  title: c.name,
2478
2478
  activities: c.activities,
2479
2479
  "is-active": o.milestoneId === c.id,
2480
2480
  "is-draggable": !0,
2481
- "onUpdate:title": (v) => i({ id: c.id, name: v }),
2482
- onClick: (v) => o.$router.push({
2481
+ "onUpdate:title": (p) => i({ id: c.id, name: p }),
2482
+ onClick: (p) => o.$router.push({
2483
2483
  params: {
2484
2484
  milestoneId: c.id
2485
2485
  }
@@ -2499,7 +2499,7 @@ const k3 = /* @__PURE__ */ G({
2499
2499
  _: 1
2500
2500
  }, 8, ["model-value", "title"])) : w("", !0);
2501
2501
  }
2502
- }), L3 = /* @__PURE__ */ G({
2502
+ }), L3 = /* @__PURE__ */ K({
2503
2503
  __name: "AoCardTemplateItemActivity",
2504
2504
  props: {
2505
2505
  name: {},
@@ -2510,14 +2510,14 @@ const k3 = /* @__PURE__ */ G({
2510
2510
  var n;
2511
2511
  return ((n = e.subtasks) == null ? void 0 : n.length) || 0;
2512
2512
  });
2513
- return (n, a) => (u(), j(j1, { subtasks: t.value }, {
2513
+ return (n, a) => (u(), N(j1, { subtasks: t.value }, {
2514
2514
  default: R(() => [
2515
2515
  Y(n.$slots, "default")
2516
2516
  ]),
2517
2517
  _: 3
2518
2518
  }, 8, ["subtasks"]));
2519
2519
  }
2520
- }), T3 = { class: "ao-list__footer" }, E3 = /* @__PURE__ */ G({
2520
+ }), T3 = { class: "ao-list__footer" }, E3 = /* @__PURE__ */ K({
2521
2521
  __name: "AoTemplateDetailsActivities",
2522
2522
  props: {
2523
2523
  templateId: {},
@@ -2544,7 +2544,7 @@ const k3 = /* @__PURE__ */ G({
2544
2544
  });
2545
2545
  }
2546
2546
  };
2547
- return (o, d) => o.milestone ? (u(), j(B(a1), {
2547
+ return (o, d) => o.milestone ? (u(), N(O(a1), {
2548
2548
  key: 0,
2549
2549
  "model-value": o.milestone.activities,
2550
2550
  title: o.$t("template.activities.title"),
@@ -2561,14 +2561,14 @@ const k3 = /* @__PURE__ */ G({
2561
2561
  })
2562
2562
  ]),
2563
2563
  item: R(({ element: c }) => [
2564
- (u(), j(L3, {
2564
+ (u(), N(L3, {
2565
2565
  key: c.id,
2566
2566
  title: c.name,
2567
2567
  subtasks: c.subtasks,
2568
2568
  "is-active": o.activityId === c.id,
2569
2569
  "is-draggable": !0,
2570
- "onUpdate:title": (v) => a({ id: c.id, name: v }),
2571
- onClick: (v) => o.$router.push({ params: { activityId: c.id } }),
2570
+ "onUpdate:title": (p) => a({ id: c.id, name: p }),
2571
+ onClick: (p) => o.$router.push({ params: { activityId: c.id } }),
2572
2572
  onRemove: () => i(c.id)
2573
2573
  }, null, 8, ["title", "subtasks", "is-active", "onUpdate:title", "onClick", "onRemove"]))
2574
2574
  ]),
@@ -2589,17 +2589,17 @@ function Ae(s) {
2589
2589
  return [null, void 0].indexOf(s) !== -1;
2590
2590
  }
2591
2591
  function H3(s, e, t) {
2592
- const { object: n, valueProp: a, mode: i } = ye(s), l = Oe().proxy, o = t.iv, d = (_, h = !0) => {
2593
- o.value = v(_);
2592
+ const { object: n, valueProp: a, mode: i } = ge(s), l = Oe().proxy, o = t.iv, d = (_, m = !0) => {
2593
+ o.value = p(_);
2594
2594
  const $ = c(_);
2595
- e.emit("change", $, l), h && (e.emit("input", $), e.emit("update:modelValue", $));
2596
- }, c = (_) => n.value || Ae(_) ? _ : Array.isArray(_) ? _.map((h) => h[a.value]) : _[a.value], v = (_) => Ae(_) ? i.value === "single" ? {} : [] : _;
2595
+ e.emit("change", $, l), m && (e.emit("input", $), e.emit("update:modelValue", $));
2596
+ }, c = (_) => n.value || Ae(_) ? _ : Array.isArray(_) ? _.map((m) => m[a.value]) : _[a.value], p = (_) => Ae(_) ? i.value === "single" ? {} : [] : _;
2597
2597
  return {
2598
2598
  update: d
2599
2599
  };
2600
2600
  }
2601
2601
  function O3(s, e) {
2602
- const { value: t, modelValue: n, mode: a, valueProp: i } = ye(s), l = x(a.value !== "single" ? [] : {}), o = n && n.value !== void 0 ? n : t, d = f(() => a.value === "single" ? l.value[i.value] : l.value.map((v) => v[i.value])), c = f(() => a.value !== "single" ? l.value.map((v) => v[i.value]).join(",") : l.value[i.value]);
2602
+ const { value: t, modelValue: n, mode: a, valueProp: i } = ge(s), l = x(a.value !== "single" ? [] : {}), o = n && n.value !== void 0 ? n : t, d = f(() => a.value === "single" ? l.value[i.value] : l.value.map((p) => p[i.value])), c = f(() => a.value !== "single" ? l.value.map((p) => p[i.value]).join(",") : l.value[i.value]);
2603
2603
  return {
2604
2604
  iv: l,
2605
2605
  internalValue: l,
@@ -2610,37 +2610,37 @@ function O3(s, e) {
2610
2610
  };
2611
2611
  }
2612
2612
  function B3(s, e, t) {
2613
- const { regex: n } = ye(s), a = Oe().proxy, i = t.isOpen, l = t.open, o = x(null), d = x(null), c = () => {
2613
+ const { regex: n } = ge(s), a = Oe().proxy, i = t.isOpen, l = t.open, o = x(null), d = x(null), c = () => {
2614
2614
  o.value = "";
2615
- }, v = ($) => {
2615
+ }, p = ($) => {
2616
2616
  o.value = $.target.value;
2617
2617
  }, _ = ($) => {
2618
2618
  if (n && n.value) {
2619
2619
  let V = n.value;
2620
2620
  typeof V == "string" && (V = new RegExp(V)), $.key.match(V) || $.preventDefault();
2621
2621
  }
2622
- }, h = ($) => {
2622
+ }, m = ($) => {
2623
2623
  if (n && n.value) {
2624
2624
  let E = ($.clipboardData || /* istanbul ignore next */
2625
- window.clipboardData).getData("Text"), I = n.value;
2626
- typeof I == "string" && (I = new RegExp(I)), E.split("").every((M) => !!M.match(I)) || $.preventDefault();
2625
+ window.clipboardData).getData("Text"), k = n.value;
2626
+ typeof k == "string" && (k = new RegExp(k)), E.split("").every((M) => !!M.match(k)) || $.preventDefault();
2627
2627
  }
2628
2628
  e.emit("paste", $, a);
2629
2629
  };
2630
- return pe(o, ($) => {
2630
+ return de(o, ($) => {
2631
2631
  !i.value && $ && l(), e.emit("search-change", $, a);
2632
2632
  }), {
2633
2633
  search: o,
2634
2634
  input: d,
2635
2635
  clearSearch: c,
2636
- handleSearchInput: v,
2636
+ handleSearchInput: p,
2637
2637
  handleKeypress: _,
2638
- handlePaste: h
2638
+ handlePaste: m
2639
2639
  };
2640
2640
  }
2641
2641
  function D3(s, e, t) {
2642
- const { groupSelect: n, mode: a, groups: i, disabledProp: l } = ye(s), o = x(null), d = (v) => {
2643
- v === void 0 || v !== null && v[l.value] || i.value && v && v.group && (a.value === "single" || !n.value) || (o.value = v);
2642
+ const { groupSelect: n, mode: a, groups: i, disabledProp: l } = ge(s), o = x(null), d = (p) => {
2643
+ p === void 0 || p !== null && p[l.value] || i.value && p && p.group && (a.value === "single" || !n.value) || (o.value = p);
2644
2644
  };
2645
2645
  return {
2646
2646
  pointer: o,
@@ -2671,102 +2671,102 @@ function N3(s, e, t) {
2671
2671
  hideSelected: o,
2672
2672
  createTag: d,
2673
2673
  createOption: c,
2674
- label: v,
2674
+ label: p,
2675
2675
  appendNewTag: _,
2676
- appendNewOption: h,
2676
+ appendNewOption: m,
2677
2677
  multipleLabel: $,
2678
2678
  object: V,
2679
2679
  loading: E,
2680
- delay: I,
2680
+ delay: k,
2681
2681
  resolveOnLoad: M,
2682
2682
  minChars: y,
2683
- filterResults: D,
2683
+ filterResults: B,
2684
2684
  clearOnSearch: ee,
2685
2685
  clearOnSelect: te,
2686
- valueProp: m,
2686
+ valueProp: h,
2687
2687
  allowAbsent: H,
2688
2688
  groupLabel: U,
2689
2689
  canDeselect: se,
2690
- max: oe,
2691
- strict: me,
2690
+ max: re,
2691
+ strict: _e,
2692
2692
  closeOnSelect: Z,
2693
2693
  closeOnDeselect: X,
2694
2694
  groups: A,
2695
2695
  reverse: W,
2696
- infinite: he,
2696
+ infinite: me,
2697
2697
  groupOptions: g,
2698
- groupHideEmpty: O,
2698
+ groupHideEmpty: D,
2699
2699
  groupSelect: T,
2700
- onCreate: q,
2701
- disabledProp: J,
2702
- searchStart: de,
2703
- searchFilter: _e
2704
- } = ye(s), ae = Oe().proxy, z = t.iv, k = t.ev, P = t.search, ge = t.clearSearch, Ie = t.update, ht = t.pointer, De = t.clearPointer, ft = t.focus, gt = t.deactivate, Ze = t.close, yt = t.localize, Ge = x([]), Le = x([]), we = x(!1), A1 = x(null), k1 = x(he.value && l.value === -1 ? 10 : l.value), z1 = f(() => d.value || c.value || !1), bt = f(() => _.value !== void 0 ? _.value : h.value !== void 0 ? h.value : !0), Te = f(() => {
2700
+ onCreate: G,
2701
+ disabledProp: Q,
2702
+ searchStart: Ce,
2703
+ searchFilter: he
2704
+ } = ge(s), ae = Oe().proxy, q = t.iv, I = t.ev, P = t.search, fe = t.clearSearch, Ie = t.update, ht = t.pointer, De = t.clearPointer, ft = t.focus, gt = t.deactivate, Ze = t.close, yt = t.localize, Ge = x([]), Le = x([]), we = x(!1), A1 = x(null), k1 = x(me.value && l.value === -1 ? 10 : l.value), z1 = f(() => d.value || c.value || !1), bt = f(() => _.value !== void 0 ? _.value : m.value !== void 0 ? m.value : !0), Te = f(() => {
2705
2705
  if (A.value) {
2706
- let p = o1.value || /* istanbul ignore next */
2706
+ let v = o1.value || /* istanbul ignore next */
2707
2707
  [], S = [];
2708
- return p.forEach((Q) => {
2709
- E1(Q[g.value]).forEach((ie) => {
2710
- S.push(Object.assign({}, ie, Q[J.value] ? { [J.value]: !0 } : {}));
2708
+ return v.forEach((J) => {
2709
+ E1(J[g.value]).forEach((ie) => {
2710
+ S.push(Object.assign({}, ie, J[Q.value] ? { [Q.value]: !0 } : {}));
2711
2711
  });
2712
2712
  }), S;
2713
2713
  } else {
2714
- let p = E1(Le.value || /* istanbul ignore next */
2714
+ let v = E1(Le.value || /* istanbul ignore next */
2715
2715
  []);
2716
- return Ge.value.length && (p = p.concat(Ge.value)), p;
2716
+ return Ge.value.length && (v = v.concat(Ge.value)), v;
2717
2717
  }
2718
2718
  }), F1 = f(() => {
2719
- let p = Te.value;
2720
- return W.value && (p = p.reverse()), Pe.value.length && (p = Pe.value.concat(p)), T1(p);
2719
+ let v = Te.value;
2720
+ return W.value && (v = v.reverse()), Pe.value.length && (v = Pe.value.concat(v)), T1(v);
2721
2721
  }), Ye = f(() => {
2722
- let p = F1.value;
2723
- return k1.value > 0 && (p = p.slice(0, k1.value)), p;
2722
+ let v = F1.value;
2723
+ return k1.value > 0 && (v = v.slice(0, k1.value)), v;
2724
2724
  }), o1 = f(() => {
2725
2725
  if (!A.value)
2726
2726
  return [];
2727
- let p = [], S = Le.value || /* istanbul ignore next */
2727
+ let v = [], S = Le.value || /* istanbul ignore next */
2728
2728
  [];
2729
- return Ge.value.length && p.push({
2729
+ return Ge.value.length && v.push({
2730
2730
  [U.value]: " ",
2731
2731
  [g.value]: [...Ge.value],
2732
2732
  __CREATE__: !0
2733
- }), p.concat(S);
2733
+ }), v.concat(S);
2734
2734
  }), $t = f(() => {
2735
- let p = [...o1.value].map((S) => ({ ...S }));
2736
- return Pe.value.length && (p[0] && p[0].__CREATE__ ? p[0][g.value] = [...Pe.value, ...p[0][g.value]] : p = [{
2735
+ let v = [...o1.value].map((S) => ({ ...S }));
2736
+ return Pe.value.length && (v[0] && v[0].__CREATE__ ? v[0][g.value] = [...Pe.value, ...v[0][g.value]] : v = [{
2737
2737
  [U.value]: " ",
2738
2738
  [g.value]: [...Pe.value],
2739
2739
  __CREATE__: !0
2740
- }].concat(p)), p;
2740
+ }].concat(v)), v;
2741
2741
  }), K1 = f(() => {
2742
2742
  if (!A.value)
2743
2743
  return [];
2744
- let p = $t.value;
2745
- return Zt((p || /* istanbul ignore next */
2746
- []).map((S, Q) => {
2744
+ let v = $t.value;
2745
+ return Zt((v || /* istanbul ignore next */
2746
+ []).map((S, J) => {
2747
2747
  const ie = E1(S[g.value]);
2748
2748
  return {
2749
2749
  ...S,
2750
- index: Q,
2750
+ index: J,
2751
2751
  group: !0,
2752
- [g.value]: T1(ie, !1).map((We) => Object.assign({}, We, S[J.value] ? { [J.value]: !0 } : {})),
2753
- __VISIBLE__: T1(ie).map((We) => Object.assign({}, We, S[J.value] ? { [J.value]: !0 } : {}))
2752
+ [g.value]: T1(ie, !1).map((We) => Object.assign({}, We, S[Q.value] ? { [Q.value]: !0 } : {})),
2753
+ __VISIBLE__: T1(ie).map((We) => Object.assign({}, We, S[Q.value] ? { [Q.value]: !0 } : {}))
2754
2754
  };
2755
2755
  }));
2756
2756
  }), I1 = f(() => {
2757
2757
  switch (a.value) {
2758
2758
  case "single":
2759
- return !Ae(z.value[m.value]);
2759
+ return !Ae(q.value[h.value]);
2760
2760
  case "multiple":
2761
2761
  case "tags":
2762
- return !Ae(z.value) && z.value.length > 0;
2762
+ return !Ae(q.value) && q.value.length > 0;
2763
2763
  }
2764
- }), wt = f(() => $ !== void 0 && $.value !== void 0 ? $.value(z.value, ae) : z.value && z.value.length > 1 ? `${z.value.length} options selected` : "1 option selected"), Mt = f(() => !Te.value.length && !we.value && !Pe.value.length), At = f(() => Te.value.length > 0 && Ye.value.length == 0 && (P.value && A.value || !A.value)), Pe = f(() => z1.value === !1 || !P.value ? [] : Ot(P.value) !== -1 ? [] : [{
2765
- [m.value]: P.value,
2764
+ }), wt = f(() => $ !== void 0 && $.value !== void 0 ? $.value(q.value, ae) : q.value && q.value.length > 1 ? `${q.value.length} options selected` : "1 option selected"), Mt = f(() => !Te.value.length && !we.value && !Pe.value.length), At = f(() => Te.value.length > 0 && Ye.value.length == 0 && (P.value && A.value || !A.value)), Pe = f(() => z1.value === !1 || !P.value ? [] : Ot(P.value) !== -1 ? [] : [{
2765
+ [h.value]: P.value,
2766
2766
  [Me.value]: P.value,
2767
- [v.value]: P.value,
2767
+ [p.value]: P.value,
2768
2768
  __CREATE__: !0
2769
- }]), Me = f(() => i.value || v.value), kt = f(() => {
2769
+ }]), Me = f(() => i.value || p.value), kt = f(() => {
2770
2770
  switch (a.value) {
2771
2771
  case "single":
2772
2772
  return null;
@@ -2774,134 +2774,134 @@ function N3(s, e, t) {
2774
2774
  case "tags":
2775
2775
  return [];
2776
2776
  }
2777
- }), It = f(() => E.value || we.value), Ne = (p) => {
2778
- switch (typeof p != "object" && (p = Ve(p)), a.value) {
2777
+ }), It = f(() => E.value || we.value), Ne = (v) => {
2778
+ switch (typeof v != "object" && (v = Ve(v)), a.value) {
2779
2779
  case "single":
2780
- Ie(p);
2780
+ Ie(v);
2781
2781
  break;
2782
2782
  case "multiple":
2783
2783
  case "tags":
2784
- Ie(z.value.concat(p));
2784
+ Ie(q.value.concat(v));
2785
2785
  break;
2786
2786
  }
2787
- e.emit("select", G1(p), p, ae);
2788
- }, je = (p) => {
2789
- switch (typeof p != "object" && (p = Ve(p)), a.value) {
2787
+ e.emit("select", G1(v), v, ae);
2788
+ }, je = (v) => {
2789
+ switch (typeof v != "object" && (v = Ve(v)), a.value) {
2790
2790
  case "single":
2791
2791
  W1();
2792
2792
  break;
2793
2793
  case "tags":
2794
2794
  case "multiple":
2795
- Ie(Array.isArray(p) ? z.value.filter((S) => p.map((Q) => Q[m.value]).indexOf(S[m.value]) === -1) : z.value.filter((S) => S[m.value] != p[m.value]));
2795
+ Ie(Array.isArray(v) ? q.value.filter((S) => v.map((J) => J[h.value]).indexOf(S[h.value]) === -1) : q.value.filter((S) => S[h.value] != v[h.value]));
2796
2796
  break;
2797
2797
  }
2798
- e.emit("deselect", G1(p), p, ae);
2799
- }, G1 = (p) => V.value ? p : p[m.value], Y1 = (p) => {
2800
- je(p);
2801
- }, St = (p, S) => {
2798
+ e.emit("deselect", G1(v), v, ae);
2799
+ }, G1 = (v) => V.value ? v : v[h.value], Y1 = (v) => {
2800
+ je(v);
2801
+ }, St = (v, S) => {
2802
2802
  if (S.button !== 0) {
2803
2803
  S.preventDefault();
2804
2804
  return;
2805
2805
  }
2806
- Y1(p);
2806
+ Y1(v);
2807
2807
  }, W1 = () => {
2808
2808
  e.emit("clear", ae), Ie(kt.value);
2809
- }, Se = (p) => {
2810
- if (p.group !== void 0)
2811
- return a.value === "single" ? !1 : Ht(p[g.value]) && p[g.value].length;
2809
+ }, Se = (v) => {
2810
+ if (v.group !== void 0)
2811
+ return a.value === "single" ? !1 : Ht(v[g.value]) && v[g.value].length;
2812
2812
  switch (a.value) {
2813
2813
  case "single":
2814
- return !Ae(z.value) && z.value[m.value] == p[m.value];
2814
+ return !Ae(q.value) && q.value[h.value] == v[h.value];
2815
2815
  case "tags":
2816
2816
  case "multiple":
2817
- return !Ae(z.value) && z.value.map((S) => S[m.value]).indexOf(p[m.value]) !== -1;
2817
+ return !Ae(q.value) && q.value.map((S) => S[h.value]).indexOf(v[h.value]) !== -1;
2818
2818
  }
2819
- }, S1 = (p) => p[J.value] === !0, V1 = () => oe === void 0 || oe.value === -1 || !I1.value && oe.value > 0 ? !1 : z.value.length >= oe.value, Vt = (p) => {
2820
- if (!S1(p)) {
2821
- if (q && q.value && !Se(p) && p.__CREATE__ && (p = { ...p }, delete p.__CREATE__, p = q.value(p, ae), p instanceof Promise)) {
2822
- we.value = !0, p.then((S) => {
2819
+ }, S1 = (v) => v[Q.value] === !0, V1 = () => re === void 0 || re.value === -1 || !I1.value && re.value > 0 ? !1 : q.value.length >= re.value, Vt = (v) => {
2820
+ if (!S1(v)) {
2821
+ if (G && G.value && !Se(v) && v.__CREATE__ && (v = { ...v }, delete v.__CREATE__, v = G.value(v, ae), v instanceof Promise)) {
2822
+ we.value = !0, v.then((S) => {
2823
2823
  we.value = !1, X1(S);
2824
2824
  });
2825
2825
  return;
2826
2826
  }
2827
- X1(p);
2827
+ X1(v);
2828
2828
  }
2829
- }, X1 = (p) => {
2830
- switch (p.__CREATE__ && (p = { ...p }, delete p.__CREATE__), a.value) {
2829
+ }, X1 = (v) => {
2830
+ switch (v.__CREATE__ && (v = { ...v }, delete v.__CREATE__), a.value) {
2831
2831
  case "single":
2832
- if (p && Se(p)) {
2833
- se.value && je(p), X.value && (De(), Ze());
2832
+ if (v && Se(v)) {
2833
+ se.value && je(v), X.value && (De(), Ze());
2834
2834
  return;
2835
2835
  }
2836
- p && L1(p), te.value && ge(), Z.value && (De(), Ze()), p && Ne(p);
2836
+ v && L1(v), te.value && fe(), Z.value && (De(), Ze()), v && Ne(v);
2837
2837
  break;
2838
2838
  case "multiple":
2839
- if (p && Se(p)) {
2840
- je(p), X.value && (De(), Ze());
2839
+ if (v && Se(v)) {
2840
+ je(v), X.value && (De(), Ze());
2841
2841
  return;
2842
2842
  }
2843
2843
  if (V1()) {
2844
2844
  e.emit("max", ae);
2845
2845
  return;
2846
2846
  }
2847
- p && (L1(p), Ne(p)), te.value && ge(), o.value && De(), Z.value && Ze();
2847
+ v && (L1(v), Ne(v)), te.value && fe(), o.value && De(), Z.value && Ze();
2848
2848
  break;
2849
2849
  case "tags":
2850
- if (p && Se(p)) {
2851
- je(p), X.value && (De(), Ze());
2850
+ if (v && Se(v)) {
2851
+ je(v), X.value && (De(), Ze());
2852
2852
  return;
2853
2853
  }
2854
2854
  if (V1()) {
2855
2855
  e.emit("max", ae);
2856
2856
  return;
2857
2857
  }
2858
- p && L1(p), te.value && ge(), p && Ne(p), o.value && De(), Z.value && Ze();
2858
+ v && L1(v), te.value && fe(), v && Ne(v), o.value && De(), Z.value && Ze();
2859
2859
  break;
2860
2860
  }
2861
2861
  Z.value || ft();
2862
- }, Lt = (p) => {
2863
- if (!(S1(p) || a.value === "single" || !T.value)) {
2862
+ }, Lt = (v) => {
2863
+ if (!(S1(v) || a.value === "single" || !T.value)) {
2864
2864
  switch (a.value) {
2865
2865
  case "multiple":
2866
2866
  case "tags":
2867
- Et(p[g.value]) ? je(p[g.value]) : Ne(
2868
- p[g.value].filter((S) => z.value.map((Q) => Q[m.value]).indexOf(S[m.value]) === -1).filter((S) => !S[J.value]).filter((S, Q) => z.value.length + 1 + Q <= oe.value || oe.value === -1)
2867
+ Et(v[g.value]) ? je(v[g.value]) : Ne(
2868
+ v[g.value].filter((S) => q.value.map((J) => J[h.value]).indexOf(S[h.value]) === -1).filter((S) => !S[Q.value]).filter((S, J) => q.value.length + 1 + J <= re.value || re.value === -1)
2869
2869
  );
2870
2870
  break;
2871
2871
  }
2872
2872
  Z.value && gt();
2873
2873
  }
2874
- }, L1 = (p) => {
2875
- Ve(p[m.value]) === void 0 && z1.value && (e.emit("tag", p[m.value], ae), e.emit("option", p[m.value], ae), e.emit("create", p[m.value], ae), bt.value && Dt(p), ge());
2874
+ }, L1 = (v) => {
2875
+ Ve(v[h.value]) === void 0 && z1.value && (e.emit("tag", v[h.value], ae), e.emit("option", v[h.value], ae), e.emit("create", v[h.value], ae), bt.value && Dt(v), fe());
2876
2876
  }, Tt = () => {
2877
- a.value !== "single" && Ne(Ye.value.filter((p) => !p.disabled && !Se(p)));
2878
- }, Et = (p) => p.find((S) => !Se(S) && !S[J.value]) === void 0, Ht = (p) => p.find((S) => !Se(S)) === void 0, Ve = (p) => Te.value[Te.value.map((S) => String(S[m.value])).indexOf(String(p))], Ot = (p, S = !0) => Te.value.map((Q) => parseInt(Q[Me.value]) == Q[Me.value] ? parseInt(Q[Me.value]) : Q[Me.value]).indexOf(
2879
- parseInt(p) == p ? parseInt(p) : p
2880
- ), Bt = (p) => ["tags", "multiple"].indexOf(a.value) !== -1 && o.value && Se(p), Dt = (p) => {
2881
- Ge.value.push(p);
2882
- }, Zt = (p) => O.value ? p.filter(
2877
+ a.value !== "single" && Ne(Ye.value.filter((v) => !v.disabled && !Se(v)));
2878
+ }, Et = (v) => v.find((S) => !Se(S) && !S[Q.value]) === void 0, Ht = (v) => v.find((S) => !Se(S)) === void 0, Ve = (v) => Te.value[Te.value.map((S) => String(S[h.value])).indexOf(String(v))], Ot = (v, S = !0) => Te.value.map((J) => parseInt(J[Me.value]) == J[Me.value] ? parseInt(J[Me.value]) : J[Me.value]).indexOf(
2879
+ parseInt(v) == v ? parseInt(v) : v
2880
+ ), Bt = (v) => ["tags", "multiple"].indexOf(a.value) !== -1 && o.value && Se(v), Dt = (v) => {
2881
+ Ge.value.push(v);
2882
+ }, Zt = (v) => D.value ? v.filter(
2883
2883
  (S) => P.value ? S.__VISIBLE__.length : S[g.value].length
2884
- ) : p.filter((S) => P.value ? S.__VISIBLE__.length : !0), T1 = (p, S = !0) => {
2885
- let Q = p;
2886
- if (P.value && D.value) {
2887
- let ie = _e.value;
2884
+ ) : v.filter((S) => P.value ? S.__VISIBLE__.length : !0), T1 = (v, S = !0) => {
2885
+ let J = v;
2886
+ if (P.value && B.value) {
2887
+ let ie = he.value;
2888
2888
  ie || (ie = (We, Bu) => {
2889
- let Q1 = O1(yt(We[Me.value]), me.value);
2890
- return de.value ? Q1.startsWith(O1(P.value, me.value)) : Q1.indexOf(O1(P.value, me.value)) !== -1;
2891
- }), Q = Q.filter(ie);
2889
+ let Q1 = O1(yt(We[Me.value]), _e.value);
2890
+ return Ce.value ? Q1.startsWith(O1(P.value, _e.value)) : Q1.indexOf(O1(P.value, _e.value)) !== -1;
2891
+ }), J = J.filter(ie);
2892
2892
  }
2893
- return o.value && S && (Q = Q.filter((ie) => !Bt(ie))), Q;
2894
- }, E1 = (p) => {
2895
- let S = p;
2896
- return Z3(S) && (S = Object.keys(S).map((Q) => {
2897
- let ie = S[Q];
2898
- return { [m.value]: Q, [Me.value]: ie, [v.value]: ie };
2899
- })), S = S.map((Q) => typeof Q == "object" ? Q : { [m.value]: Q, [Me.value]: Q, [v.value]: Q }), S;
2893
+ return o.value && S && (J = J.filter((ie) => !Bt(ie))), J;
2894
+ }, E1 = (v) => {
2895
+ let S = v;
2896
+ return Z3(S) && (S = Object.keys(S).map((J) => {
2897
+ let ie = S[J];
2898
+ return { [h.value]: J, [Me.value]: ie, [p.value]: ie };
2899
+ })), S = S.map((J) => typeof J == "object" ? J : { [h.value]: J, [Me.value]: J, [p.value]: J }), S;
2900
2900
  }, r1 = () => {
2901
- Ae(k.value) || (z.value = c1(k.value));
2902
- }, u1 = (p) => (we.value = !0, new Promise((S, Q) => {
2901
+ Ae(I.value) || (q.value = c1(I.value));
2902
+ }, u1 = (v) => (we.value = !0, new Promise((S, J) => {
2903
2903
  n.value(P.value, ae).then((ie) => {
2904
- Le.value = ie || [], typeof p == "function" && p(ie), we.value = !1;
2904
+ Le.value = ie || [], typeof v == "function" && v(ie), we.value = !1;
2905
2905
  }).catch((ie) => {
2906
2906
  console.error(ie), Le.value = [], we.value = !1;
2907
2907
  }).finally(() => {
@@ -2910,64 +2910,64 @@ function N3(s, e, t) {
2910
2910
  })), H1 = () => {
2911
2911
  if (I1.value)
2912
2912
  if (a.value === "single") {
2913
- let p = Ve(z.value[m.value]);
2914
- if (p !== void 0) {
2915
- let S = p[v.value];
2916
- z.value[v.value] = S, V.value && (k.value[v.value] = S);
2913
+ let v = Ve(q.value[h.value]);
2914
+ if (v !== void 0) {
2915
+ let S = v[p.value];
2916
+ q.value[p.value] = S, V.value && (I.value[p.value] = S);
2917
2917
  }
2918
2918
  } else
2919
- z.value.forEach((p, S) => {
2920
- let Q = Ve(z.value[S][m.value]);
2921
- if (Q !== void 0) {
2922
- let ie = Q[v.value];
2923
- z.value[S][v.value] = ie, V.value && (k.value[S][v.value] = ie);
2919
+ q.value.forEach((v, S) => {
2920
+ let J = Ve(q.value[S][h.value]);
2921
+ if (J !== void 0) {
2922
+ let ie = J[p.value];
2923
+ q.value[S][p.value] = ie, V.value && (I.value[S][p.value] = ie);
2924
2924
  }
2925
2925
  });
2926
- }, Pt = (p) => {
2927
- u1(p);
2928
- }, c1 = (p) => Ae(p) ? a.value === "single" ? {} : [] : V.value ? p : a.value === "single" ? Ve(p) || (H.value ? {
2929
- [v.value]: p,
2930
- [m.value]: p,
2931
- [Me.value]: p
2932
- } : {}) : p.filter((S) => !!Ve(S) || H.value).map((S) => Ve(S) || {
2933
- [v.value]: S,
2934
- [m.value]: S,
2926
+ }, Pt = (v) => {
2927
+ u1(v);
2928
+ }, c1 = (v) => Ae(v) ? a.value === "single" ? {} : [] : V.value ? v : a.value === "single" ? Ve(v) || (H.value ? {
2929
+ [p.value]: v,
2930
+ [h.value]: v,
2931
+ [Me.value]: v
2932
+ } : {}) : v.filter((S) => !!Ve(S) || H.value).map((S) => Ve(S) || {
2933
+ [p.value]: S,
2934
+ [h.value]: S,
2935
2935
  [Me.value]: S
2936
2936
  }), J1 = () => {
2937
- A1.value = pe(P, (p) => {
2938
- p.length < y.value || !p && y.value !== 0 || (we.value = !0, ee.value && (Le.value = []), setTimeout(() => {
2939
- p == P.value && n.value(P.value, ae).then((S) => {
2940
- (p == P.value || !P.value) && (Le.value = S, ht.value = Ye.value.filter((Q) => Q[J.value] !== !0)[0] || null, we.value = !1);
2937
+ A1.value = de(P, (v) => {
2938
+ v.length < y.value || !v && y.value !== 0 || (we.value = !0, ee.value && (Le.value = []), setTimeout(() => {
2939
+ v == P.value && n.value(P.value, ae).then((S) => {
2940
+ (v == P.value || !P.value) && (Le.value = S, ht.value = Ye.value.filter((J) => J[Q.value] !== !0)[0] || null, we.value = !1);
2941
2941
  }).catch(
2942
2942
  /* istanbul ignore next */
2943
2943
  (S) => {
2944
2944
  console.error(S);
2945
2945
  }
2946
2946
  );
2947
- }, I.value));
2947
+ }, k.value));
2948
2948
  }, { flush: "sync" });
2949
2949
  };
2950
- if (a.value !== "single" && !Ae(k.value) && !Array.isArray(k.value))
2950
+ if (a.value !== "single" && !Ae(I.value) && !Array.isArray(I.value))
2951
2951
  throw new Error(`v-model must be an array when using "${a.value}" mode`);
2952
- return n && typeof n.value == "function" ? M.value ? u1(r1) : V.value == !0 && r1() : (Le.value = n.value, r1()), I.value > -1 && J1(), pe(I, (p, S) => {
2953
- A1.value && A1.value(), p >= 0 && J1();
2954
- }), pe(k, (p) => {
2955
- if (Ae(p)) {
2956
- Ie(c1(p), !1);
2952
+ return n && typeof n.value == "function" ? M.value ? u1(r1) : V.value == !0 && r1() : (Le.value = n.value, r1()), k.value > -1 && J1(), de(k, (v, S) => {
2953
+ A1.value && A1.value(), v >= 0 && J1();
2954
+ }), de(I, (v) => {
2955
+ if (Ae(v)) {
2956
+ Ie(c1(v), !1);
2957
2957
  return;
2958
2958
  }
2959
2959
  switch (a.value) {
2960
2960
  case "single":
2961
- (V.value ? p[m.value] != z.value[m.value] : p != z.value[m.value]) && Ie(c1(p), !1);
2961
+ (V.value ? v[h.value] != q.value[h.value] : v != q.value[h.value]) && Ie(c1(v), !1);
2962
2962
  break;
2963
2963
  case "multiple":
2964
2964
  case "tags":
2965
- P3(V.value ? p.map((S) => S[m.value]) : p, z.value.map((S) => S[m.value])) || Ie(c1(p), !1);
2965
+ P3(V.value ? v.map((S) => S[h.value]) : v, q.value.map((S) => S[h.value])) || Ie(c1(v), !1);
2966
2966
  break;
2967
2967
  }
2968
- }, { deep: !0 }), pe(n, (p, S) => {
2969
- typeof s.options == "function" ? M.value && (!S || p && p.toString() !== S.toString()) && u1() : (Le.value = s.options, Object.keys(z.value).length || r1(), H1());
2970
- }), pe(v, H1), {
2968
+ }, { deep: !0 }), de(n, (v, S) => {
2969
+ typeof s.options == "function" ? M.value && (!S || v && v.toString() !== S.toString()) && u1() : (Le.value = s.options, Object.keys(q.value).length || r1(), H1());
2970
+ }), de(p, H1), {
2971
2971
  pfo: F1,
2972
2972
  fo: Ye,
2973
2973
  filteredOptions: Ye,
@@ -3010,88 +3010,88 @@ function j3(s, e, t) {
3010
3010
  groups: o,
3011
3011
  mode: d,
3012
3012
  groupSelect: c,
3013
- disabledProp: v,
3013
+ disabledProp: p,
3014
3014
  groupOptions: _
3015
- } = ye(s), h = t.fo, $ = t.fg, V = t.handleOptionClick, E = t.handleGroupClick, I = t.search, M = t.pointer, y = t.setPointer, D = t.clearPointer, ee = t.multiselect, te = t.isOpen, m = f(() => h.value.filter((k) => !k[v.value])), H = f(() => $.value.filter((k) => !k[v.value])), U = f(() => d.value !== "single" && c.value), se = f(() => M.value && M.value.group), oe = f(() => ae(M.value)), me = f(() => {
3016
- const k = se.value ? M.value : (
3015
+ } = ge(s), m = t.fo, $ = t.fg, V = t.handleOptionClick, E = t.handleGroupClick, k = t.search, M = t.pointer, y = t.setPointer, B = t.clearPointer, ee = t.multiselect, te = t.isOpen, h = f(() => m.value.filter((I) => !I[p.value])), H = f(() => $.value.filter((I) => !I[p.value])), U = f(() => d.value !== "single" && c.value), se = f(() => M.value && M.value.group), re = f(() => ae(M.value)), _e = f(() => {
3016
+ const I = se.value ? M.value : (
3017
3017
  /* istanbul ignore next */
3018
3018
  ae(M.value)
3019
- ), P = H.value.map((Ie) => Ie[l.value]).indexOf(k[l.value]);
3020
- let ge = H.value[P - 1];
3021
- return ge === void 0 && (ge = X.value), ge;
3019
+ ), P = H.value.map((Ie) => Ie[l.value]).indexOf(I[l.value]);
3020
+ let fe = H.value[P - 1];
3021
+ return fe === void 0 && (fe = X.value), fe;
3022
3022
  }), Z = f(() => {
3023
- let k = H.value.map((P) => P.label).indexOf(se.value ? M.value[l.value] : ae(M.value)[l.value]) + 1;
3024
- return H.value.length <= k && (k = 0), H.value[k];
3025
- }), X = f(() => [...H.value].slice(-1)[0]), A = f(() => M.value.__VISIBLE__.filter((k) => !k[v.value])[0]), W = f(() => {
3026
- const k = oe.value.__VISIBLE__.filter((P) => !P[v.value]);
3027
- return k[k.map((P) => P[n.value]).indexOf(M.value[n.value]) - 1];
3028
- }), he = f(() => {
3029
- const k = ae(M.value).__VISIBLE__.filter((P) => !P[v.value]);
3030
- return k[k.map((P) => P[n.value]).indexOf(M.value[n.value]) + 1];
3031
- }), g = f(() => [...me.value.__VISIBLE__.filter((k) => !k[v.value])].slice(-1)[0]), O = f(() => [...X.value.__VISIBLE__.filter((k) => !k[v.value])].slice(-1)[0]), T = (k) => M.value && (!k.group && M.value[n.value] === k[n.value] || k.group !== void 0 && M.value[l.value] === k[l.value]) ? !0 : void 0, q = () => {
3032
- y(m.value[0] || null);
3033
- }, J = () => {
3034
- !M.value || M.value[v.value] === !0 || (se.value ? E(M.value) : V(M.value));
3035
- }, de = () => {
3023
+ let I = H.value.map((P) => P.label).indexOf(se.value ? M.value[l.value] : ae(M.value)[l.value]) + 1;
3024
+ return H.value.length <= I && (I = 0), H.value[I];
3025
+ }), X = f(() => [...H.value].slice(-1)[0]), A = f(() => M.value.__VISIBLE__.filter((I) => !I[p.value])[0]), W = f(() => {
3026
+ const I = re.value.__VISIBLE__.filter((P) => !P[p.value]);
3027
+ return I[I.map((P) => P[n.value]).indexOf(M.value[n.value]) - 1];
3028
+ }), me = f(() => {
3029
+ const I = ae(M.value).__VISIBLE__.filter((P) => !P[p.value]);
3030
+ return I[I.map((P) => P[n.value]).indexOf(M.value[n.value]) + 1];
3031
+ }), g = f(() => [..._e.value.__VISIBLE__.filter((I) => !I[p.value])].slice(-1)[0]), D = f(() => [...X.value.__VISIBLE__.filter((I) => !I[p.value])].slice(-1)[0]), T = (I) => M.value && (!I.group && M.value[n.value] === I[n.value] || I.group !== void 0 && M.value[l.value] === I[l.value]) ? !0 : void 0, G = () => {
3032
+ y(h.value[0] || null);
3033
+ }, Q = () => {
3034
+ !M.value || M.value[p.value] === !0 || (se.value ? E(M.value) : V(M.value));
3035
+ }, Ce = () => {
3036
3036
  if (M.value === null)
3037
- y((o.value && U.value ? H.value[0].__CREATE__ ? m.value[0] : H.value[0] : m.value[0]) || null);
3037
+ y((o.value && U.value ? H.value[0].__CREATE__ ? h.value[0] : H.value[0] : h.value[0]) || null);
3038
3038
  else if (o.value && U.value) {
3039
- let k = se.value ? A.value : he.value;
3040
- k === void 0 && (k = Z.value, k.__CREATE__ && (k = k[_.value][0])), y(k || /* istanbul ignore next */
3039
+ let I = se.value ? A.value : me.value;
3040
+ I === void 0 && (I = Z.value, I.__CREATE__ && (I = I[_.value][0])), y(I || /* istanbul ignore next */
3041
3041
  null);
3042
3042
  } else {
3043
- let k = m.value.map((P) => P[n.value]).indexOf(M.value[n.value]) + 1;
3044
- m.value.length <= k && (k = 0), y(m.value[k] || null);
3043
+ let I = h.value.map((P) => P[n.value]).indexOf(M.value[n.value]) + 1;
3044
+ h.value.length <= I && (I = 0), y(h.value[I] || null);
3045
3045
  }
3046
3046
  He(() => {
3047
- z();
3047
+ q();
3048
3048
  });
3049
- }, _e = () => {
3049
+ }, he = () => {
3050
3050
  if (M.value === null) {
3051
- let k = m.value[m.value.length - 1];
3052
- o.value && U.value && (k = O.value, k === void 0 && (k = X.value)), y(k || null);
3051
+ let I = h.value[h.value.length - 1];
3052
+ o.value && U.value && (I = D.value, I === void 0 && (I = X.value)), y(I || null);
3053
3053
  } else if (o.value && U.value) {
3054
- let k = se.value ? g.value : W.value;
3055
- k === void 0 && (k = se.value ? me.value : oe.value, k.__CREATE__ && (k = g.value, k === void 0 && (k = me.value))), y(k || /* istanbul ignore next */
3054
+ let I = se.value ? g.value : W.value;
3055
+ I === void 0 && (I = se.value ? _e.value : re.value, I.__CREATE__ && (I = g.value, I === void 0 && (I = _e.value))), y(I || /* istanbul ignore next */
3056
3056
  null);
3057
3057
  } else {
3058
- let k = m.value.map((P) => P[n.value]).indexOf(M.value[n.value]) - 1;
3059
- k < 0 && (k = m.value.length - 1), y(m.value[k] || null);
3058
+ let I = h.value.map((P) => P[n.value]).indexOf(M.value[n.value]) - 1;
3059
+ I < 0 && (I = h.value.length - 1), y(h.value[I] || null);
3060
3060
  }
3061
3061
  He(() => {
3062
- z();
3062
+ q();
3063
3063
  });
3064
- }, ae = (k) => H.value.find((P) => P.__VISIBLE__.map((ge) => ge[n.value]).indexOf(k[n.value]) !== -1), z = () => {
3065
- let k = ee.value.querySelector("[data-pointed]");
3066
- if (!k)
3064
+ }, ae = (I) => H.value.find((P) => P.__VISIBLE__.map((fe) => fe[n.value]).indexOf(I[n.value]) !== -1), q = () => {
3065
+ let I = ee.value.querySelector("[data-pointed]");
3066
+ if (!I)
3067
3067
  return;
3068
- let P = k.parentElement.parentElement;
3069
- o.value && (P = se.value ? k.parentElement.parentElement.parentElement : k.parentElement.parentElement.parentElement.parentElement), k.offsetTop + k.offsetHeight > P.clientHeight + P.scrollTop && (P.scrollTop = k.offsetTop + k.offsetHeight - P.clientHeight), k.offsetTop < P.scrollTop && (P.scrollTop = k.offsetTop);
3068
+ let P = I.parentElement.parentElement;
3069
+ o.value && (P = se.value ? I.parentElement.parentElement.parentElement : I.parentElement.parentElement.parentElement.parentElement), I.offsetTop + I.offsetHeight > P.clientHeight + P.scrollTop && (P.scrollTop = I.offsetTop + I.offsetHeight - P.clientHeight), I.offsetTop < P.scrollTop && (P.scrollTop = I.offsetTop);
3070
3070
  };
3071
- return pe(I, (k) => {
3072
- i.value && (k.length && a.value ? q() : D());
3073
- }), pe(te, (k) => {
3074
- if (k) {
3071
+ return de(k, (I) => {
3072
+ i.value && (I.length && a.value ? G() : B());
3073
+ }), de(te, (I) => {
3074
+ if (I) {
3075
3075
  let P = ee.value.querySelectorAll("[data-selected]")[0];
3076
3076
  if (!P)
3077
3077
  return;
3078
- let ge = P.parentElement.parentElement;
3078
+ let fe = P.parentElement.parentElement;
3079
3079
  He(() => {
3080
- ge.scrollTop > 0 || (ge.scrollTop = P.offsetTop);
3080
+ fe.scrollTop > 0 || (fe.scrollTop = P.offsetTop);
3081
3081
  });
3082
3082
  }
3083
3083
  }), {
3084
3084
  pointer: M,
3085
3085
  canPointGroups: U,
3086
3086
  isPointed: T,
3087
- setPointerFirst: q,
3088
- selectPointer: J,
3089
- forwardPointer: de,
3090
- backwardPointer: _e
3087
+ setPointerFirst: G,
3088
+ selectPointer: Q,
3089
+ forwardPointer: Ce,
3090
+ backwardPointer: he
3091
3091
  };
3092
3092
  }
3093
3093
  function R3(s, e, t) {
3094
- const { disabled: n } = ye(s), a = Oe().proxy, i = x(!1);
3094
+ const { disabled: n } = ge(s), a = Oe().proxy, i = x(!1);
3095
3095
  return {
3096
3096
  isOpen: i,
3097
3097
  open: () => {
@@ -3103,11 +3103,11 @@ function R3(s, e, t) {
3103
3103
  };
3104
3104
  }
3105
3105
  function U3(s, e, t) {
3106
- const { searchable: n, disabled: a, clearOnBlur: i } = ye(s), l = t.input, o = t.open, d = t.close, c = t.clearSearch, v = t.isOpen, _ = x(null), h = x(null), $ = x(null), V = x(!1), E = x(!1), I = f(() => n.value || a.value ? -1 : 0), M = () => {
3107
- n.value && l.value.blur(), h.value.blur();
3106
+ const { searchable: n, disabled: a, clearOnBlur: i } = ge(s), l = t.input, o = t.open, d = t.close, c = t.clearSearch, p = t.isOpen, _ = x(null), m = x(null), $ = x(null), V = x(!1), E = x(!1), k = f(() => n.value || a.value ? -1 : 0), M = () => {
3107
+ n.value && l.value.blur(), m.value.blur();
3108
3108
  }, y = () => {
3109
3109
  n.value && !a.value && l.value.focus();
3110
- }, D = (se = !0) => {
3110
+ }, B = (se = !0) => {
3111
3111
  a.value || (V.value = !0, se && o());
3112
3112
  }, ee = () => {
3113
3113
  V.value = !1, setTimeout(() => {
@@ -3116,17 +3116,17 @@ function U3(s, e, t) {
3116
3116
  };
3117
3117
  return {
3118
3118
  multiselect: _,
3119
- wrapper: h,
3119
+ wrapper: m,
3120
3120
  tags: $,
3121
- tabindex: I,
3121
+ tabindex: k,
3122
3122
  isActive: V,
3123
3123
  mouseClicked: E,
3124
3124
  blur: M,
3125
3125
  focus: y,
3126
- activate: D,
3126
+ activate: B,
3127
3127
  deactivate: ee,
3128
3128
  handleFocusIn: (se) => {
3129
- se.target.closest("[data-tags]") && se.target.nodeName !== "INPUT" || se.target.closest("[data-clear]") || D(E.value);
3129
+ se.target.closest("[data-tags]") && se.target.nodeName !== "INPUT" || se.target.closest("[data-clear]") || B(E.value);
3130
3130
  },
3131
3131
  handleFocusOut: () => {
3132
3132
  ee();
@@ -3135,9 +3135,9 @@ function U3(s, e, t) {
3135
3135
  ee(), M();
3136
3136
  },
3137
3137
  handleMousedown: (se) => {
3138
- E.value = !0, v.value && (se.target.isEqualNode(h.value) || se.target.isEqualNode($.value)) ? setTimeout(() => {
3138
+ E.value = !0, p.value && (se.target.isEqualNode(m.value) || se.target.isEqualNode($.value)) ? setTimeout(() => {
3139
3139
  ee();
3140
- }, 0) : document.activeElement.isEqualNode(h.value) && !v.value && D(), setTimeout(() => {
3140
+ }, 0) : document.activeElement.isEqualNode(m.value) && !p.value && B(), setTimeout(() => {
3141
3141
  E.value = !1;
3142
3142
  }, 0);
3143
3143
  }
@@ -3152,79 +3152,79 @@ function q3(s, e, t) {
3152
3152
  showOptions: o,
3153
3153
  valueProp: d,
3154
3154
  groups: c,
3155
- addOptionOn: v,
3155
+ addOptionOn: p,
3156
3156
  createTag: _,
3157
- createOption: h,
3157
+ createOption: m,
3158
3158
  reverse: $
3159
- } = ye(s), V = Oe().proxy, E = t.iv, I = t.update, M = t.search, y = t.setPointer, D = t.selectPointer, ee = t.backwardPointer, te = t.forwardPointer, m = t.multiselect, H = t.wrapper, U = t.tags, se = t.isOpen, oe = t.open, me = t.blur, Z = t.fo, X = f(() => _.value || h.value || !1), A = f(() => a.value !== void 0 ? a.value : v.value !== void 0 ? v.value : ["enter"]), W = () => {
3159
+ } = ge(s), V = Oe().proxy, E = t.iv, k = t.update, M = t.search, y = t.setPointer, B = t.selectPointer, ee = t.backwardPointer, te = t.forwardPointer, h = t.multiselect, H = t.wrapper, U = t.tags, se = t.isOpen, re = t.open, _e = t.blur, Z = t.fo, X = f(() => _.value || m.value || !1), A = f(() => a.value !== void 0 ? a.value : p.value !== void 0 ? p.value : ["enter"]), W = () => {
3160
3160
  n.value === "tags" && !o.value && X.value && l.value && !c.value && y(Z.value[Z.value.map((T) => T[d.value]).indexOf(M.value)]);
3161
- }, he = (T) => {
3162
- let q = T.length - 1;
3163
- for (; q >= 0 && (T[q].remove === !1 || T[q].disabled); )
3164
- q--;
3165
- return q < 0 || T.splice(q, 1), T;
3161
+ }, me = (T) => {
3162
+ let G = T.length - 1;
3163
+ for (; G >= 0 && (T[G].remove === !1 || T[G].disabled); )
3164
+ G--;
3165
+ return G < 0 || T.splice(G, 1), T;
3166
3166
  };
3167
3167
  return {
3168
3168
  handleKeydown: (T) => {
3169
3169
  e.emit("keydown", T, V);
3170
- let q, J;
3171
- switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(T.key) !== -1 && n.value === "tags" && (q = [...m.value.querySelectorAll("[data-tags] > *")].filter((de) => de !== U.value), J = q.findIndex((de) => de === document.activeElement)), T.key) {
3170
+ let G, Q;
3171
+ switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(T.key) !== -1 && n.value === "tags" && (G = [...h.value.querySelectorAll("[data-tags] > *")].filter((Ce) => Ce !== U.value), Q = G.findIndex((Ce) => Ce === document.activeElement)), T.key) {
3172
3172
  case "Backspace":
3173
3173
  if (n.value === "single" || l.value && [null, ""].indexOf(M.value) === -1 || E.value.length === 0)
3174
3174
  return;
3175
- I(he([...E.value]));
3175
+ k(me([...E.value]));
3176
3176
  break;
3177
3177
  case "Enter":
3178
3178
  if (T.preventDefault(), T.keyCode === 229)
3179
3179
  return;
3180
- if (J !== -1 && J !== void 0) {
3181
- I([...E.value].filter((de, _e) => _e !== J)), J === q.length - 1 && (q.length - 1 ? q[q.length - 2].focus() : l.value ? U.value.querySelector("input").focus() : H.value.focus());
3180
+ if (Q !== -1 && Q !== void 0) {
3181
+ k([...E.value].filter((Ce, he) => he !== Q)), Q === G.length - 1 && (G.length - 1 ? G[G.length - 2].focus() : l.value ? U.value.querySelector("input").focus() : H.value.focus());
3182
3182
  return;
3183
3183
  }
3184
3184
  if (A.value.indexOf("enter") === -1 && X.value)
3185
3185
  return;
3186
- W(), D();
3186
+ W(), B();
3187
3187
  break;
3188
3188
  case " ":
3189
3189
  if (!X.value && !l.value) {
3190
- T.preventDefault(), W(), D();
3190
+ T.preventDefault(), W(), B();
3191
3191
  return;
3192
3192
  }
3193
3193
  if (!X.value)
3194
3194
  return !1;
3195
3195
  if (A.value.indexOf("space") === -1 && X.value)
3196
3196
  return;
3197
- T.preventDefault(), W(), D();
3197
+ T.preventDefault(), W(), B();
3198
3198
  break;
3199
3199
  case "Tab":
3200
3200
  case ";":
3201
3201
  case ",":
3202
3202
  if (A.value.indexOf(T.key.toLowerCase()) === -1 || !X.value)
3203
3203
  return;
3204
- W(), D(), T.preventDefault();
3204
+ W(), B(), T.preventDefault();
3205
3205
  break;
3206
3206
  case "Escape":
3207
- me();
3207
+ _e();
3208
3208
  break;
3209
3209
  case "ArrowUp":
3210
3210
  if (T.preventDefault(), !o.value)
3211
3211
  return;
3212
- se.value || oe(), ee();
3212
+ se.value || re(), ee();
3213
3213
  break;
3214
3214
  case "ArrowDown":
3215
3215
  if (T.preventDefault(), !o.value)
3216
3216
  return;
3217
- se.value || oe(), te();
3217
+ se.value || re(), te();
3218
3218
  break;
3219
3219
  case "ArrowLeft":
3220
3220
  if (l.value && U.value && U.value.querySelector("input").selectionStart || T.shiftKey || n.value !== "tags" || !E.value || !E.value.length)
3221
3221
  return;
3222
- T.preventDefault(), J === -1 ? q[q.length - 1].focus() : J > 0 && q[J - 1].focus();
3222
+ T.preventDefault(), Q === -1 ? G[G.length - 1].focus() : Q > 0 && G[Q - 1].focus();
3223
3223
  break;
3224
3224
  case "ArrowRight":
3225
- if (J === -1 || T.shiftKey || n.value !== "tags" || !E.value || !E.value.length)
3225
+ if (Q === -1 || T.shiftKey || n.value !== "tags" || !E.value || !E.value.length)
3226
3226
  return;
3227
- T.preventDefault(), q.length > J + 1 ? q[J + 1].focus() : l.value ? U.value.querySelector("input").focus() : l.value || H.value.focus();
3227
+ T.preventDefault(), G.length > Q + 1 ? G[Q + 1].focus() : l.value ? U.value.querySelector("input").focus() : l.value || H.value.focus();
3228
3228
  break;
3229
3229
  }
3230
3230
  },
@@ -3240,7 +3240,7 @@ function z3(s, e, t) {
3240
3240
  disabled: a,
3241
3241
  openDirection: i,
3242
3242
  showOptions: l
3243
- } = ye(s), o = t.isOpen, d = t.isPointed, c = t.isSelected, v = t.isDisabled, _ = t.isActive, h = t.canPointGroups, $ = t.resolving, V = t.fo, E = f(() => ({
3243
+ } = ge(s), o = t.isOpen, d = t.isPointed, c = t.isSelected, p = t.isDisabled, _ = t.isActive, m = t.canPointGroups, $ = t.resolving, V = t.fo, E = f(() => ({
3244
3244
  container: "multiselect",
3245
3245
  containerDisabled: "is-disabled",
3246
3246
  containerOpen: "is-open",
@@ -3293,12 +3293,12 @@ function z3(s, e, t) {
3293
3293
  assist: "multiselect-assistive-text",
3294
3294
  spacer: "multiselect-spacer",
3295
3295
  ...n.value
3296
- })), I = f(() => !!(o.value && l.value && (!$.value || $.value && V.value.length)));
3296
+ })), k = f(() => !!(o.value && l.value && (!$.value || $.value && V.value.length)));
3297
3297
  return {
3298
3298
  classList: f(() => {
3299
3299
  const y = E.value;
3300
3300
  return {
3301
- container: [y.container].concat(a.value ? y.containerDisabled : []).concat(I.value && i.value === "top" ? y.containerOpenTop : []).concat(I.value && i.value !== "top" ? y.containerOpen : []).concat(_.value ? y.containerActive : []),
3301
+ container: [y.container].concat(a.value ? y.containerDisabled : []).concat(k.value && i.value === "top" ? y.containerOpenTop : []).concat(k.value && i.value !== "top" ? y.containerOpen : []).concat(_.value ? y.containerActive : []),
3302
3302
  wrapper: y.wrapper,
3303
3303
  spacer: y.spacer,
3304
3304
  singleLabel: y.singleLabel,
@@ -3320,17 +3320,17 @@ function z3(s, e, t) {
3320
3320
  spinner: y.spinner,
3321
3321
  inifinite: y.inifinite,
3322
3322
  inifiniteSpinner: y.inifiniteSpinner,
3323
- dropdown: [y.dropdown].concat(i.value === "top" ? y.dropdownTop : []).concat(!o.value || !l.value || !I.value ? y.dropdownHidden : []),
3323
+ dropdown: [y.dropdown].concat(i.value === "top" ? y.dropdownTop : []).concat(!o.value || !l.value || !k.value ? y.dropdownHidden : []),
3324
3324
  options: [y.options].concat(i.value === "top" ? y.optionsTop : []),
3325
3325
  group: y.group,
3326
- groupLabel: (D) => {
3326
+ groupLabel: (B) => {
3327
3327
  let ee = [y.groupLabel];
3328
- return d(D) ? ee.push(c(D) ? y.groupLabelSelectedPointed : y.groupLabelPointed) : c(D) && h.value ? ee.push(v(D) ? y.groupLabelSelectedDisabled : y.groupLabelSelected) : v(D) && ee.push(y.groupLabelDisabled), h.value && ee.push(y.groupLabelPointable), ee;
3328
+ return d(B) ? ee.push(c(B) ? y.groupLabelSelectedPointed : y.groupLabelPointed) : c(B) && m.value ? ee.push(p(B) ? y.groupLabelSelectedDisabled : y.groupLabelSelected) : p(B) && ee.push(y.groupLabelDisabled), m.value && ee.push(y.groupLabelPointable), ee;
3329
3329
  },
3330
3330
  groupOptions: y.groupOptions,
3331
- option: (D, ee) => {
3331
+ option: (B, ee) => {
3332
3332
  let te = [y.option];
3333
- return d(D) ? te.push(c(D) ? y.optionSelectedPointed : y.optionPointed) : c(D) ? te.push(v(D) ? y.optionSelectedDisabled : y.optionSelected) : (v(D) || ee && v(ee)) && te.push(y.optionDisabled), te;
3333
+ return d(B) ? te.push(c(B) ? y.optionSelectedPointed : y.optionPointed) : c(B) ? te.push(p(B) ? y.optionSelectedDisabled : y.optionSelected) : (p(B) || ee && p(ee)) && te.push(y.optionDisabled), te;
3334
3334
  },
3335
3335
  noOptions: y.noOptions,
3336
3336
  noResults: y.noResults,
@@ -3338,34 +3338,34 @@ function z3(s, e, t) {
3338
3338
  fakeInput: y.fakeInput
3339
3339
  };
3340
3340
  }),
3341
- showDropdown: I
3341
+ showDropdown: k
3342
3342
  };
3343
3343
  }
3344
3344
  function F3(s, e, t) {
3345
3345
  const {
3346
3346
  limit: n,
3347
3347
  infinite: a
3348
- } = ye(s), i = t.isOpen, l = t.offset, o = t.search, d = t.pfo, c = t.eo, v = x(null), _ = x(null), h = f(() => l.value < d.value.length), $ = (E) => {
3349
- const { isIntersecting: I, target: M } = E[0];
3350
- if (I) {
3351
- const y = M.offsetParent, D = y.scrollTop;
3348
+ } = ge(s), i = t.isOpen, l = t.offset, o = t.search, d = t.pfo, c = t.eo, p = x(null), _ = x(null), m = f(() => l.value < d.value.length), $ = (E) => {
3349
+ const { isIntersecting: k, target: M } = E[0];
3350
+ if (k) {
3351
+ const y = M.offsetParent, B = y.scrollTop;
3352
3352
  l.value += n.value == -1 ? 10 : n.value, He(() => {
3353
- y.scrollTop = D;
3353
+ y.scrollTop = B;
3354
3354
  });
3355
3355
  }
3356
3356
  }, V = () => {
3357
- i.value && l.value < d.value.length ? v.value.observe(_.value) : !i.value && v.value && v.value.disconnect();
3357
+ i.value && l.value < d.value.length ? p.value.observe(_.value) : !i.value && p.value && p.value.disconnect();
3358
3358
  };
3359
- return pe(i, () => {
3359
+ return de(i, () => {
3360
3360
  a.value && V();
3361
- }), pe(o, () => {
3361
+ }), de(o, () => {
3362
3362
  a.value && (l.value = n.value, V());
3363
- }, { flush: "post" }), pe(c, () => {
3363
+ }, { flush: "post" }), de(c, () => {
3364
3364
  a.value && V();
3365
3365
  }, { immediate: !1, flush: "post" }), m1(() => {
3366
- window && window.IntersectionObserver && (v.value = new IntersectionObserver($));
3366
+ window && window.IntersectionObserver && (p.value = new IntersectionObserver($));
3367
3367
  }), {
3368
- hasMore: h,
3368
+ hasMore: m,
3369
3369
  infiniteLoader: _
3370
3370
  };
3371
3371
  }
@@ -3378,8 +3378,8 @@ function K3(s, e, t) {
3378
3378
  mode: o,
3379
3379
  groupLabel: d,
3380
3380
  aria: c,
3381
- searchable: v
3382
- } = ye(s), _ = t.pointer, h = t.iv, $ = t.hasSelected, V = t.multipleLabelText, E = x(null), I = f(() => {
3381
+ searchable: p
3382
+ } = ge(s), _ = t.pointer, m = t.iv, $ = t.hasSelected, V = t.multipleLabelText, E = x(null), k = f(() => {
3383
3383
  let Z = [];
3384
3384
  return a && a.value && Z.push(a.value), Z.push("assist"), Z.join("-");
3385
3385
  }), M = f(() => {
@@ -3389,12 +3389,12 @@ function K3(s, e, t) {
3389
3389
  let Z = [];
3390
3390
  if (a && a.value && Z.push(a.value), _.value)
3391
3391
  return Z.push(_.value.group ? "multiselect-group" : "multiselect-option"), Z.push(_.value.group ? _.value.index : _.value[i.value]), Z.join("-");
3392
- }), D = f(() => n.value), ee = f(() => o.value !== "single"), te = f(() => {
3392
+ }), B = f(() => n.value), ee = f(() => o.value !== "single"), te = f(() => {
3393
3393
  let Z = "";
3394
- return o.value === "single" && $.value && (Z += h.value[l.value]), o.value === "multiple" && $.value && (Z += V.value), o.value === "tags" && $.value && (Z += h.value.map((X) => X[l.value]).join(", ")), Z;
3395
- }), m = f(() => {
3394
+ return o.value === "single" && $.value && (Z += m.value[l.value]), o.value === "multiple" && $.value && (Z += V.value), o.value === "tags" && $.value && (Z += m.value.map((X) => X[l.value]).join(", ")), Z;
3395
+ }), h = f(() => {
3396
3396
  let Z = { ...c.value };
3397
- return v.value && (Z["aria-labelledby"] = Z["aria-labelledby"] ? `${I.value} ${Z["aria-labelledby"]}` : I.value, te.value && Z["aria-label"] && (Z["aria-label"] = `${te.value}, ${Z["aria-label"]}`)), Z;
3397
+ return p.value && (Z["aria-labelledby"] = Z["aria-labelledby"] ? `${k.value} ${Z["aria-labelledby"]}` : k.value, te.value && Z["aria-label"] && (Z["aria-label"] = `${te.value}, ${Z["aria-label"]}`)), Z;
3398
3398
  }), H = (Z) => {
3399
3399
  let X = [];
3400
3400
  return a && a.value && X.push(a.value), X.push("multiselect-option"), X.push(Z[i.value]), X.join("-");
@@ -3404,35 +3404,35 @@ function K3(s, e, t) {
3404
3404
  }, se = (Z) => {
3405
3405
  let X = [];
3406
3406
  return X.push(Z), X.join(" ");
3407
- }, oe = (Z) => {
3407
+ }, re = (Z) => {
3408
3408
  let X = [];
3409
3409
  return X.push(Z), X.join(" ");
3410
- }, me = (Z) => `${Z} ❎`;
3410
+ }, _e = (Z) => `${Z} ❎`;
3411
3411
  return m1(() => {
3412
3412
  if (a && a.value && document && document.querySelector) {
3413
3413
  let Z = document.querySelector(`[for="${a.value}"]`);
3414
3414
  E.value = Z ? Z.innerText : null;
3415
3415
  }
3416
3416
  }), {
3417
- arias: m,
3417
+ arias: h,
3418
3418
  ariaLabel: te,
3419
- ariaAssist: I,
3419
+ ariaAssist: k,
3420
3420
  ariaControls: M,
3421
- ariaPlaceholder: D,
3421
+ ariaPlaceholder: B,
3422
3422
  ariaMultiselectable: ee,
3423
3423
  ariaActiveDescendant: y,
3424
3424
  ariaOptionId: H,
3425
3425
  ariaOptionLabel: se,
3426
3426
  ariaGroupId: U,
3427
- ariaGroupLabel: oe,
3428
- ariaTagLabel: me
3427
+ ariaGroupLabel: re,
3428
+ ariaTagLabel: _e
3429
3429
  };
3430
3430
  }
3431
3431
  function G3(s, e, t) {
3432
3432
  const {
3433
3433
  locale: n,
3434
3434
  fallbackLocale: a
3435
- } = ye(s);
3435
+ } = ge(s);
3436
3436
  return {
3437
3437
  localize: (l) => !l || typeof l != "object" ? l : l && l[n.value] ? l[n.value] : l && n.value && l[n.value.toUpperCase()] ? l[n.value.toUpperCase()] : l && l[a.value] ? l[a.value] : l && a.value && l[a.value.toUpperCase()] ? l[a.value.toUpperCase()] : l && Object.keys(l)[0] ? l[Object.keys(l)[0]] : ""
3438
3438
  };
@@ -3445,7 +3445,7 @@ function Y3(s, e, t, n = {}) {
3445
3445
  });
3446
3446
  }), n;
3447
3447
  }
3448
- var Ce = {
3448
+ var ve = {
3449
3449
  name: "Multiselect",
3450
3450
  emits: [
3451
3451
  "paste",
@@ -3802,7 +3802,7 @@ const W3 = ["id", "dir"], X3 = ["tabindex", "aria-controls", "aria-placeholder",
3802
3802
  function _5(s, e, t, n, a, i) {
3803
3803
  return u(), C("div", {
3804
3804
  ref: "multiselect",
3805
- class: K(s.classList.container),
3805
+ class: F(s.classList.container),
3806
3806
  id: t.searchable ? void 0 : t.id,
3807
3807
  dir: t.rtl ? "rtl" : void 0,
3808
3808
  onFocusin: e[10] || (e[10] = (...l) => s.handleFocusIn && s.handleFocusIn(...l)),
@@ -3850,20 +3850,20 @@ function _5(s, e, t, n, a, i) {
3850
3850
  "div",
3851
3851
  {
3852
3852
  key: 1,
3853
- class: K(s.classList.tags),
3853
+ class: F(s.classList.tags),
3854
3854
  "data-tags": ""
3855
3855
  },
3856
3856
  [
3857
3857
  (u(!0), C(
3858
3858
  le,
3859
3859
  null,
3860
- ve(s.iv, (l, o, d) => Y(s.$slots, "tag", {
3860
+ pe(s.iv, (l, o, d) => Y(s.$slots, "tag", {
3861
3861
  option: l,
3862
3862
  handleTagRemove: s.handleTagRemove,
3863
3863
  disabled: t.disabled
3864
3864
  }, () => [
3865
3865
  (u(), C("span", {
3866
- class: K([
3866
+ class: F([
3867
3867
  s.classList.tag,
3868
3868
  l.disabled ? s.classList.tagDisabled : null
3869
3869
  ]),
@@ -3873,19 +3873,19 @@ function _5(s, e, t, n, a, i) {
3873
3873
  "aria-label": s.ariaTagLabel(s.localize(l[t.label]))
3874
3874
  }, [
3875
3875
  Z1(
3876
- N(s.localize(l[t.label])) + " ",
3876
+ j(s.localize(l[t.label])) + " ",
3877
3877
  1
3878
3878
  /* TEXT */
3879
3879
  ),
3880
3880
  !t.disabled && !l.disabled ? (u(), C("span", {
3881
3881
  key: 0,
3882
- class: K(s.classList.tagRemove),
3882
+ class: F(s.classList.tagRemove),
3883
3883
  onClick: ke((c) => s.handleTagRemove(l, c), ["stop"])
3884
3884
  }, [
3885
3885
  r(
3886
3886
  "span",
3887
3887
  {
3888
- class: K(s.classList.tagRemoveIcon)
3888
+ class: F(s.classList.tagRemoveIcon)
3889
3889
  },
3890
3890
  null,
3891
3891
  2
@@ -3900,7 +3900,7 @@ function _5(s, e, t, n, a, i) {
3900
3900
  r(
3901
3901
  "div",
3902
3902
  {
3903
- class: K(s.classList.tagsSearchWrapper),
3903
+ class: F(s.classList.tagsSearchWrapper),
3904
3904
  ref: "tags"
3905
3905
  },
3906
3906
  [
@@ -3908,9 +3908,9 @@ function _5(s, e, t, n, a, i) {
3908
3908
  r(
3909
3909
  "span",
3910
3910
  {
3911
- class: K(s.classList.tagsSearchCopy)
3911
+ class: F(s.classList.tagsSearchCopy)
3912
3912
  },
3913
- N(s.search),
3913
+ j(s.search),
3914
3914
  3
3915
3915
  /* TEXT, CLASS */
3916
3916
  ),
@@ -3953,15 +3953,15 @@ function _5(s, e, t, n, a, i) {
3953
3953
  r(
3954
3954
  "div",
3955
3955
  {
3956
- class: K(s.classList.singleLabel)
3956
+ class: F(s.classList.singleLabel)
3957
3957
  },
3958
3958
  [
3959
3959
  r(
3960
3960
  "span",
3961
3961
  {
3962
- class: K(s.classList.singleLabelText)
3962
+ class: F(s.classList.singleLabelText)
3963
3963
  },
3964
- N(s.localize(s.iv[t.label])),
3964
+ j(s.localize(s.iv[t.label])),
3965
3965
  3
3966
3966
  /* TEXT, CLASS */
3967
3967
  )
@@ -3976,7 +3976,7 @@ function _5(s, e, t, n, a, i) {
3976
3976
  values: s.iv
3977
3977
  }, () => [
3978
3978
  r("div", {
3979
- class: K(s.classList.multipleLabel),
3979
+ class: F(s.classList.multipleLabel),
3980
3980
  innerHTML: s.multipleLabelText
3981
3981
  }, null, 10, t5)
3982
3982
  ]) : w("v-if", !0),
@@ -3985,10 +3985,10 @@ function _5(s, e, t, n, a, i) {
3985
3985
  r(
3986
3986
  "div",
3987
3987
  {
3988
- class: K(s.classList.placeholder),
3988
+ class: F(s.classList.placeholder),
3989
3989
  "aria-hidden": "true"
3990
3990
  },
3991
- N(t.placeholder),
3991
+ j(t.placeholder),
3992
3992
  3
3993
3993
  /* TEXT, CLASS */
3994
3994
  )
@@ -3998,7 +3998,7 @@ function _5(s, e, t, n, a, i) {
3998
3998
  r(
3999
3999
  "span",
4000
4000
  {
4001
- class: K(s.classList.spinner),
4001
+ class: F(s.classList.spinner),
4002
4002
  "aria-hidden": "true"
4003
4003
  },
4004
4004
  null,
@@ -4019,7 +4019,7 @@ function _5(s, e, t, n, a, i) {
4019
4019
  role: "button",
4020
4020
  "data-clear": "",
4021
4021
  "aria-roledescription": "❎",
4022
- class: K(s.classList.clear),
4022
+ class: F(s.classList.clear),
4023
4023
  onClick: e[6] || (e[6] = (...l) => s.clear && s.clear(...l)),
4024
4024
  onKeyup: e[7] || (e[7] = t1((...l) => s.clear && s.clear(...l), ["enter"]))
4025
4025
  },
@@ -4027,7 +4027,7 @@ function _5(s, e, t, n, a, i) {
4027
4027
  r(
4028
4028
  "span",
4029
4029
  {
4030
- class: K(s.classList.clearIcon)
4030
+ class: F(s.classList.clearIcon)
4031
4031
  },
4032
4032
  null,
4033
4033
  2
@@ -4043,7 +4043,7 @@ function _5(s, e, t, n, a, i) {
4043
4043
  r(
4044
4044
  "span",
4045
4045
  {
4046
- class: K(s.classList.caret),
4046
+ class: F(s.classList.caret),
4047
4047
  onClick: e[8] || (e[8] = (...l) => s.handleCaretClick && s.handleCaretClick(...l)),
4048
4048
  "aria-hidden": "true"
4049
4049
  },
@@ -4057,21 +4057,21 @@ function _5(s, e, t, n, a, i) {
4057
4057
  r(
4058
4058
  "div",
4059
4059
  {
4060
- class: K(s.classList.dropdown),
4060
+ class: F(s.classList.dropdown),
4061
4061
  tabindex: "-1"
4062
4062
  },
4063
4063
  [
4064
4064
  Y(s.$slots, "beforelist", { options: s.fo }),
4065
4065
  r("ul", {
4066
- class: K(s.classList.options),
4066
+ class: F(s.classList.options),
4067
4067
  id: s.ariaControls,
4068
4068
  role: "listbox"
4069
4069
  }, [
4070
4070
  t.groups ? (u(!0), C(
4071
4071
  le,
4072
4072
  { key: 0 },
4073
- ve(s.fg, (l, o, d) => (u(), C("li", {
4074
- class: K(s.classList.group),
4073
+ pe(s.fg, (l, o, d) => (u(), C("li", {
4074
+ class: F(s.classList.group),
4075
4075
  key: d,
4076
4076
  id: s.ariaGroupId(l),
4077
4077
  "aria-label": s.ariaGroupLabel(s.localize(l[t.groupLabel])),
@@ -4080,7 +4080,7 @@ function _5(s, e, t, n, a, i) {
4080
4080
  }, [
4081
4081
  l.__CREATE__ ? w("v-if", !0) : (u(), C("div", {
4082
4082
  key: 0,
4083
- class: K(s.classList.groupLabel(l)),
4083
+ class: F(s.classList.groupLabel(l)),
4084
4084
  "data-pointed": s.isPointed(l),
4085
4085
  onMouseenter: (c) => s.setPointer(l, o),
4086
4086
  onClick: (c) => s.handleGroupClick(l)
@@ -4096,20 +4096,20 @@ function _5(s, e, t, n, a, i) {
4096
4096
  ])
4097
4097
  ], 42, l5)),
4098
4098
  r("ul", {
4099
- class: K(s.classList.groupOptions),
4099
+ class: F(s.classList.groupOptions),
4100
4100
  "aria-label": s.ariaGroupLabel(s.localize(l[t.groupLabel])),
4101
4101
  role: "group"
4102
4102
  }, [
4103
4103
  (u(!0), C(
4104
4104
  le,
4105
4105
  null,
4106
- ve(l.__VISIBLE__, (c, v, _) => (u(), C("li", {
4107
- class: K(s.classList.option(c, l)),
4106
+ pe(l.__VISIBLE__, (c, p, _) => (u(), C("li", {
4107
+ class: F(s.classList.option(c, l)),
4108
4108
  "data-pointed": s.isPointed(c),
4109
4109
  "data-selected": s.isSelected(c) || void 0,
4110
4110
  key: _,
4111
- onMouseenter: (h) => s.setPointer(c),
4112
- onClick: (h) => s.handleOptionClick(c),
4111
+ onMouseenter: (m) => s.setPointer(c),
4112
+ onClick: (m) => s.handleOptionClick(c),
4113
4113
  id: s.ariaOptionId(c),
4114
4114
  "aria-selected": s.isSelected(c),
4115
4115
  "aria-label": s.ariaOptionLabel(s.localize(c[t.label])),
@@ -4124,7 +4124,7 @@ function _5(s, e, t, n, a, i) {
4124
4124
  r(
4125
4125
  "span",
4126
4126
  null,
4127
- N(s.localize(c[t.label])),
4127
+ j(s.localize(c[t.label])),
4128
4128
  1
4129
4129
  /* TEXT */
4130
4130
  )
@@ -4140,8 +4140,8 @@ function _5(s, e, t, n, a, i) {
4140
4140
  )) : (u(!0), C(
4141
4141
  le,
4142
4142
  { key: 1 },
4143
- ve(s.fo, (l, o, d) => (u(), C("li", {
4144
- class: K(s.classList.option(l)),
4143
+ pe(s.fo, (l, o, d) => (u(), C("li", {
4144
+ class: F(s.classList.option(l)),
4145
4145
  "data-pointed": s.isPointed(l),
4146
4146
  "data-selected": s.isSelected(l) || void 0,
4147
4147
  key: d,
@@ -4161,7 +4161,7 @@ function _5(s, e, t, n, a, i) {
4161
4161
  r(
4162
4162
  "span",
4163
4163
  null,
4164
- N(s.localize(l[t.label])),
4164
+ j(s.localize(l[t.label])),
4165
4165
  1
4166
4166
  /* TEXT */
4167
4167
  )
@@ -4173,13 +4173,13 @@ function _5(s, e, t, n, a, i) {
4173
4173
  ], 10, s5),
4174
4174
  s.noOptions ? Y(s.$slots, "nooptions", { key: 0 }, () => [
4175
4175
  r("div", {
4176
- class: K(s.classList.noOptions),
4176
+ class: F(s.classList.noOptions),
4177
4177
  innerHTML: s.localize(t.noOptionsText)
4178
4178
  }, null, 10, u5)
4179
4179
  ]) : w("v-if", !0),
4180
4180
  s.noResults ? Y(s.$slots, "noresults", { key: 1 }, () => [
4181
4181
  r("div", {
4182
- class: K(s.classList.noResults),
4182
+ class: F(s.classList.noResults),
4183
4183
  innerHTML: s.localize(t.noResultsText)
4184
4184
  }, null, 10, c5)
4185
4185
  ]) : w("v-if", !0),
@@ -4187,7 +4187,7 @@ function _5(s, e, t, n, a, i) {
4187
4187
  "div",
4188
4188
  {
4189
4189
  key: 2,
4190
- class: K(s.classList.inifinite),
4190
+ class: F(s.classList.inifinite),
4191
4191
  ref: "infiniteLoader"
4192
4192
  },
4193
4193
  [
@@ -4195,7 +4195,7 @@ function _5(s, e, t, n, a, i) {
4195
4195
  r(
4196
4196
  "span",
4197
4197
  {
4198
- class: K(s.classList.inifiniteSpinner)
4198
+ class: F(s.classList.inifiniteSpinner)
4199
4199
  },
4200
4200
  null,
4201
4201
  2
@@ -4214,7 +4214,7 @@ function _5(s, e, t, n, a, i) {
4214
4214
  w(" Hacky input element to show HTML5 required warning "),
4215
4215
  t.required ? (u(), C("input", {
4216
4216
  key: 0,
4217
- class: K(s.classList.fakeInput),
4217
+ class: F(s.classList.fakeInput),
4218
4218
  tabindex: "-1",
4219
4219
  value: s.textValue,
4220
4220
  required: ""
@@ -4232,7 +4232,7 @@ function _5(s, e, t, n, a, i) {
4232
4232
  }, null, 8, p5)) : (u(!0), C(
4233
4233
  le,
4234
4234
  { key: 1 },
4235
- ve(s.plainValue, (l, o) => (u(), C("input", {
4235
+ pe(s.plainValue, (l, o) => (u(), C("input", {
4236
4236
  type: "hidden",
4237
4237
  name: `${t.name}[]`,
4238
4238
  value: l,
@@ -4248,15 +4248,15 @@ function _5(s, e, t, n, a, i) {
4248
4248
  w(" Screen reader assistive text "),
4249
4249
  t.searchable && s.hasSelected ? (u(), C("div", {
4250
4250
  key: 2,
4251
- class: K(s.classList.assist),
4251
+ class: F(s.classList.assist),
4252
4252
  id: s.ariaAssist,
4253
4253
  "aria-hidden": "true"
4254
- }, N(s.ariaLabel), 11, C5)) : w("v-if", !0),
4254
+ }, j(s.ariaLabel), 11, C5)) : w("v-if", !0),
4255
4255
  w(" Create height for empty input "),
4256
4256
  r(
4257
4257
  "div",
4258
4258
  {
4259
- class: K(s.classList.spacer)
4259
+ class: F(s.classList.spacer)
4260
4260
  },
4261
4261
  null,
4262
4262
  2
@@ -4264,12 +4264,12 @@ function _5(s, e, t, n, a, i) {
4264
4264
  )
4265
4265
  ], 42, W3);
4266
4266
  }
4267
- Ce.render = _5;
4268
- Ce.__file = "src/Multiselect.vue";
4267
+ ve.render = _5;
4268
+ ve.__file = "src/Multiselect.vue";
4269
4269
  const m5 = { class: "ao-modal__wrapper" }, h5 = { class: "ao-modal" }, f5 = { class: "ao-modal__header" }, g5 = { class: "ao-modal__header-meta" }, y5 = {
4270
4270
  key: 0,
4271
4271
  class: "ao-modal__title-group"
4272
- }, b5 = { class: "ao-modal__body" }, Ct = /* @__PURE__ */ G({
4272
+ }, b5 = { class: "ao-modal__body" }, Ct = /* @__PURE__ */ K({
4273
4273
  __name: "AoModal",
4274
4274
  emits: ["close"],
4275
4275
  setup(s) {
@@ -4313,7 +4313,7 @@ function $5() {
4313
4313
  throw new Error("i18next-vue: No Vue instance in context. Make sure to register the i18next-vue plugin using app.use(...).");
4314
4314
  return s;
4315
4315
  }
4316
- G({
4316
+ K({
4317
4317
  props: {
4318
4318
  translation: {
4319
4319
  type: String,
@@ -4333,97 +4333,105 @@ G({
4333
4333
  };
4334
4334
  }
4335
4335
  });
4336
- const w5 = { class: "ao-subtasks" }, M5 = { class: "ao-subtasks__list" }, A5 = ["value", "onChange"], k5 = { class: "ao-subtasks__list-footer" }, I5 = /* @__PURE__ */ G({
4336
+ const w5 = { class: "ao-subtasks" }, M5 = { class: "ao-subtasks__list" }, A5 = ["value", "onChange"], k5 = { class: "ao-subtasks__list-footer" }, I5 = /* @__PURE__ */ K({
4337
4337
  __name: "AoActivitySubtasks",
4338
4338
  props: {
4339
4339
  activityId: {},
4340
4340
  subtasks: {},
4341
4341
  isCheckable: { type: Boolean },
4342
- assigneesOptions: {}
4342
+ users: {}
4343
4343
  },
4344
4344
  emits: ["add", "delete", "update"],
4345
4345
  setup(s, { emit: e }) {
4346
- const t = s, { t: n } = i1(), a = () => {
4347
- const c = t.subtasks.length, v = t.subtasks.at(-1), _ = v ? fe.LexoRank.parse(v.rank).genNext() : fe.LexoRank.middle(), h = {
4348
- name: n("task.defaultName", { idx: c + 1 }),
4349
- rank: _.format(),
4346
+ const t = s, { t: n } = i1(), a = f(
4347
+ () => {
4348
+ var p;
4349
+ return ((p = t.users) == null ? void 0 : p.map((_) => ({
4350
+ label: `${_.firstName} ${_.lastName}`,
4351
+ value: _.id
4352
+ }))) ?? [];
4353
+ }
4354
+ ), i = () => {
4355
+ const p = t.subtasks.length, _ = {
4356
+ name: n("task.defaultName", { idx: p + 1 }),
4350
4357
  activityId: t.activityId
4351
4358
  };
4352
- e("add", h);
4353
- }, i = (c, v) => {
4354
- const h = c.target.value;
4359
+ e("add", _);
4360
+ }, l = (p, _) => {
4361
+ const $ = p.target.value;
4355
4362
  e("update", {
4356
- id: v,
4357
- name: h
4363
+ id: _,
4364
+ name: $
4358
4365
  });
4359
- }, l = (c, v) => {
4366
+ }, o = (p, _) => {
4360
4367
  e("update", {
4361
- id: c,
4362
- isDone: v
4368
+ id: p,
4369
+ isDone: _
4363
4370
  });
4364
- }, o = (c) => {
4365
- e("delete", { id: c });
4366
- }, d = (c, v) => {
4371
+ }, d = (p) => {
4372
+ e("delete", { id: p });
4373
+ }, c = (p, _) => {
4367
4374
  e("update", {
4368
- id: v,
4369
- assigneeId: c
4375
+ id: _,
4376
+ assigneeId: p
4370
4377
  });
4371
4378
  };
4372
- return (c, v) => (u(), C("div", w5, [
4379
+ return (p, _) => (u(), C("div", w5, [
4373
4380
  r("ul", M5, [
4374
- (u(!0), C(le, null, ve(c.subtasks, (_) => {
4375
- var h;
4381
+ (u(!0), C(le, null, pe(p.subtasks, (m) => {
4382
+ var $;
4376
4383
  return u(), C("li", {
4377
- key: _.id,
4384
+ key: m.id,
4378
4385
  class: "ao-subtask"
4379
4386
  }, [
4380
- c.isCheckable ? (u(), j(ue, {
4387
+ p.isCheckable ? (u(), N(ue, {
4381
4388
  key: 0,
4382
4389
  class: "ao-subtask__delete",
4383
- "icon-name": _.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
4390
+ "icon-name": m.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
4384
4391
  variant: "ghost",
4385
- onClick: () => l(_.id, !_.isDone)
4392
+ onClick: () => o(m.id, !m.isDone)
4386
4393
  }, null, 8, ["icon-name", "onClick"])) : w("", !0),
4387
4394
  r("input", {
4388
- value: _.name,
4395
+ value: m.name,
4389
4396
  class: "ao-field__input ao-subtask__field",
4390
4397
  type: "text",
4391
- onChange: ($) => i($, _.id)
4398
+ onChange: (V) => l(V, m.id)
4392
4399
  }, null, 40, A5),
4393
- b(B(Ce), {
4394
- value: (h = _.assignee) == null ? void 0 : h.id,
4395
- options: c.assigneesOptions,
4400
+ p.users ? (u(), N(O(ve), {
4401
+ key: 1,
4402
+ value: ($ = m.assignee) == null ? void 0 : $.id,
4403
+ options: a.value,
4396
4404
  "close-on-select": !1,
4397
4405
  searchable: !0,
4398
4406
  class: "ao-subtask__assignees",
4399
- placeholder: c.$t("feed.filters.assignee.placeholder"),
4400
- onChange: ($) => d($, _.id)
4407
+ placeholder: p.$t("feed.filters.assignee.placeholder"),
4408
+ onChange: (V) => c(V, m.id)
4401
4409
  }, {
4402
- tag: R(({ option: $, handleTagRemove: V }) => [
4410
+ tag: R(({ option: V, handleTagRemove: E }) => [
4403
4411
  b(Ke, {
4404
- "user-name": $.label,
4412
+ "user-name": V.label,
4405
4413
  "is-closable": !0,
4406
- onClose: (E) => V($, E)
4414
+ onClose: (k) => E(V, k)
4407
4415
  }, null, 8, ["user-name", "onClose"])
4408
4416
  ]),
4409
4417
  _: 2
4410
- }, 1032, ["value", "options", "placeholder", "onChange"]),
4418
+ }, 1032, ["value", "options", "placeholder", "onChange"])) : w("", !0),
4411
4419
  b(ue, {
4412
4420
  class: "ao-subtask__delete",
4413
4421
  "icon-name": "CloseRounded",
4414
4422
  variant: "ghost",
4415
- onClick: () => o(_.id)
4423
+ onClick: () => d(m.id)
4416
4424
  }, null, 8, ["onClick"])
4417
4425
  ]);
4418
4426
  }), 128))
4419
4427
  ]),
4420
4428
  r("div", k5, [
4421
4429
  b(ue, {
4422
- label: c.$t("activity.subtasks.add"),
4430
+ label: p.$t("activity.subtasks.add"),
4423
4431
  "icon-name": "Add",
4424
4432
  variant: "ghost",
4425
4433
  color: "primary",
4426
- onClick: a
4434
+ onClick: i
4427
4435
  }, null, 8, ["label"])
4428
4436
  ])
4429
4437
  ]));
@@ -4435,7 +4443,7 @@ const S5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], V5 = {
4435
4443
  }, L5 = ["href"], T5 = { class: "ao-file__title" }, E5 = {
4436
4444
  key: 1,
4437
4445
  class: "ao-files__dropzone"
4438
- }, H5 = { class: "ao-files__input" }, O5 = { class: "ao-files__button ao-button ao-button--primary ao-button--ghost" }, B5 = { class: "ao-files__placeholder" }, D5 = /* @__PURE__ */ G({
4446
+ }, H5 = { class: "ao-files__input" }, O5 = { class: "ao-files__button ao-button ao-button--primary ao-button--ghost" }, B5 = { class: "ao-files__placeholder" }, D5 = /* @__PURE__ */ K({
4439
4447
  __name: "AoActivityDetailsFiles",
4440
4448
  props: {
4441
4449
  attachments: {}
@@ -4445,18 +4453,18 @@ const S5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], V5 = {
4445
4453
  const t = (c) => {
4446
4454
  e("remove", c);
4447
4455
  }, n = (c) => {
4448
- const v = c.target, _ = Array.from(v.files ?? []);
4456
+ const p = c.target, _ = Array.from(p.files ?? []);
4449
4457
  e("add", _);
4450
4458
  }, a = ["dragenter", "dragover", "dragleave", "drop"];
4451
4459
  m1(() => {
4452
4460
  a.forEach((c) => {
4453
- document.body.addEventListener(c, (v) => v.preventDefault());
4461
+ document.body.addEventListener(c, (p) => p.preventDefault());
4454
4462
  });
4455
4463
  }), qt(() => {
4456
4464
  a.forEach((c) => {
4457
4465
  document.body.removeEventListener(
4458
4466
  c,
4459
- (v) => v.preventDefault()
4467
+ (p) => p.preventDefault()
4460
4468
  );
4461
4469
  });
4462
4470
  });
@@ -4467,19 +4475,19 @@ const S5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], V5 = {
4467
4475
  function o() {
4468
4476
  i.value = !1;
4469
4477
  }
4470
- pe(i, (c) => {
4478
+ de(i, (c) => {
4471
4479
  e("toggleIsDropActive", c);
4472
4480
  });
4473
4481
  function d(c) {
4474
4482
  var _;
4475
4483
  o();
4476
- const v = Array.from(((_ = c.dataTransfer) == null ? void 0 : _.files) || []);
4477
- c.dataTransfer && e("add", v);
4484
+ const p = Array.from(((_ = c.dataTransfer) == null ? void 0 : _.files) || []);
4485
+ c.dataTransfer && e("add", p);
4478
4486
  }
4479
- return (c, v) => {
4487
+ return (c, p) => {
4480
4488
  var _;
4481
4489
  return u(), C("div", {
4482
- class: K([
4490
+ class: F([
4483
4491
  "ao-files__wrapper",
4484
4492
  {
4485
4493
  "ao-files__wrapper--drop-active": i.value
@@ -4491,13 +4499,13 @@ const S5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], V5 = {
4491
4499
  onDragleave: ke(o, ["prevent"])
4492
4500
  }, [
4493
4501
  (_ = c.attachments) != null && _.length && c.attachments.length > 0 ? (u(), C("ul", V5, [
4494
- (u(!0), C(le, null, ve(c.attachments, (h) => (u(), C("li", {
4495
- key: h.id,
4502
+ (u(!0), C(le, null, pe(c.attachments, (m) => (u(), C("li", {
4503
+ key: m.id,
4496
4504
  class: "ao-file"
4497
4505
  }, [
4498
4506
  r("a", {
4499
4507
  class: "ao-file__link",
4500
- href: h.url,
4508
+ href: m.url,
4501
4509
  target: "_blank",
4502
4510
  rel: "noopener noreferrer"
4503
4511
  }, [
@@ -4506,7 +4514,7 @@ const S5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], V5 = {
4506
4514
  name: "AttachFileRounded",
4507
4515
  size: "sm"
4508
4516
  }),
4509
- r("span", T5, N(h.name), 1)
4517
+ r("span", T5, j(m.name), 1)
4510
4518
  ], 8, L5),
4511
4519
  b(ue, {
4512
4520
  class: "ao-files__delete-button",
@@ -4515,12 +4523,12 @@ const S5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], V5 = {
4515
4523
  color: "primary",
4516
4524
  size: "md",
4517
4525
  corners: "round",
4518
- onClick: () => t(h)
4526
+ onClick: () => t(m)
4519
4527
  }, null, 8, ["onClick"])
4520
4528
  ]))), 128))
4521
4529
  ])) : (u(), C("div", E5, [
4522
4530
  r("label", H5, [
4523
- r("span", O5, N(c.$t("activity.attachment.button.resting")), 1),
4531
+ r("span", O5, j(c.$t("activity.attachment.button.resting")), 1),
4524
4532
  r("input", {
4525
4533
  class: "input-field",
4526
4534
  type: "file",
@@ -4530,7 +4538,7 @@ const S5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], V5 = {
4530
4538
  onChange: n
4531
4539
  }, null, 32)
4532
4540
  ]),
4533
- r("span", B5, N(c.$t("activity.attachment.placeholder.resting")), 1)
4541
+ r("span", B5, j(c.$t("activity.attachment.placeholder.resting")), 1)
4534
4542
  ]))
4535
4543
  ], 42, S5);
4536
4544
  };
@@ -4539,7 +4547,7 @@ const S5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], V5 = {
4539
4547
  const Z5 = {
4540
4548
  key: 0,
4541
4549
  class: "ao-activity__category"
4542
- }, P5 = { class: "ao-activity-details__content" }, N5 = { class: "ao-fieldset" }, j5 = { class: "ao-field__row" }, R5 = { class: "ao-field ao-field--full" }, U5 = { class: "ao-field__label" }, q5 = { class: "ao-field__row" }, z5 = { class: "ao-field" }, F5 = { class: "ao-field__label" }, K5 = { class: "ao-field" }, G5 = { class: "ao-field__label" }, Y5 = { class: "ao-field__row" }, W5 = { class: "ao-field ao-field--multiselect" }, X5 = { class: "ao-field__label" }, J5 = { class: "ao-field__row" }, Q5 = { class: "ao-field ao-field--multiselect" }, x5 = { class: "ao-field__label" }, e7 = { class: "ao-fieldset" }, t7 = { class: "ao-fieldset__title" }, s7 = { class: "ao-field__row" }, a7 = { class: "ao-field ao-field--multiselect" }, l7 = { class: "ao-field__label" }, n7 = { class: "ao-field__row" }, i7 = { class: "ao-field ao-field--multiselect" }, o7 = { class: "ao-field__label" }, r7 = { class: "ao-field__row" }, u7 = { class: "ao-field ao-field--multiselect" }, c7 = { class: "ao-field__label" }, d7 = { class: "ao-fieldset" }, p7 = { class: "ao-fieldset__title" }, v7 = { class: "ao-activity-details__aside" }, C7 = { class: "ao-fieldset__title" }, R1 = /* @__PURE__ */ G({
4550
+ }, P5 = { class: "ao-activity-details__content" }, N5 = { class: "ao-fieldset" }, j5 = { class: "ao-field__row" }, R5 = { class: "ao-field ao-field--full" }, U5 = { class: "ao-field__label" }, q5 = { class: "ao-field__row" }, z5 = { class: "ao-field" }, F5 = { class: "ao-field__label" }, K5 = { class: "ao-field" }, G5 = { class: "ao-field__label" }, Y5 = { class: "ao-field__row" }, W5 = { class: "ao-field ao-field--multiselect" }, X5 = { class: "ao-field__label" }, J5 = { class: "ao-field__row" }, Q5 = { class: "ao-field ao-field--multiselect" }, x5 = { class: "ao-field__label" }, e7 = { class: "ao-fieldset" }, t7 = { class: "ao-fieldset__title" }, s7 = { class: "ao-field__row" }, a7 = { class: "ao-field ao-field--multiselect" }, l7 = { class: "ao-field__label" }, n7 = { class: "ao-field__row" }, i7 = { class: "ao-field ao-field--multiselect" }, o7 = { class: "ao-field__label" }, r7 = { class: "ao-field__row" }, u7 = { class: "ao-field ao-field--multiselect" }, c7 = { class: "ao-field__label" }, d7 = { class: "ao-fieldset" }, p7 = { class: "ao-fieldset__title" }, v7 = { class: "ao-activity-details__aside" }, C7 = { class: "ao-fieldset__title" }, R1 = /* @__PURE__ */ K({
4543
4551
  __name: "AoActivityDetails",
4544
4552
  props: {
4545
4553
  activity: {},
@@ -4553,74 +4561,74 @@ const Z5 = {
4553
4561
  },
4554
4562
  emits: ["update:activity", "close", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile"],
4555
4563
  setup(s, { emit: e }) {
4556
- const t = s, n = (m) => {
4564
+ const t = s, n = (h) => {
4557
4565
  e("update:activity", {
4558
4566
  id: t.activity.id,
4559
- name: m
4567
+ name: h
4560
4568
  });
4561
4569
  }, a = f({
4562
4570
  get() {
4563
4571
  return t.activity.description ?? "";
4564
4572
  },
4565
- set(m) {
4566
- e("update:activity", { id: t.activity.id, description: m });
4573
+ set(h) {
4574
+ e("update:activity", { id: t.activity.id, description: h });
4567
4575
  }
4568
4576
  }), i = f({
4569
4577
  get() {
4570
4578
  return t.activity.estimation ?? 0;
4571
4579
  },
4572
- set(m) {
4573
- e("update:activity", { id: t.activity.id, estimation: m });
4580
+ set(h) {
4581
+ e("update:activity", { id: t.activity.id, estimation: h });
4574
4582
  }
4575
4583
  }), l = f({
4576
4584
  get() {
4577
4585
  return t.activity.important ?? !1;
4578
4586
  },
4579
- set(m) {
4580
- e("update:activity", { id: t.activity.id, important: m });
4587
+ set(h) {
4588
+ e("update:activity", { id: t.activity.id, important: h });
4581
4589
  }
4582
4590
  }), o = f({
4583
4591
  get() {
4584
- var m;
4585
- return (m = t.activity.type) == null ? void 0 : m.id;
4592
+ var h;
4593
+ return (h = t.activity.type) == null ? void 0 : h.id;
4586
4594
  },
4587
- set(m) {
4588
- e("update:activity", { id: t.activity.id, typeId: m });
4595
+ set(h) {
4596
+ e("update:activity", { id: t.activity.id, typeId: h });
4589
4597
  }
4590
- }), d = f(() => t.templateActivities.filter((m) => m.id !== t.activity.id).map((m) => ({
4591
- label: m.name,
4592
- value: m.id
4598
+ }), d = f(() => t.templateActivities.filter((h) => h.id !== t.activity.id).map((h) => ({
4599
+ label: h.name,
4600
+ value: h.id
4593
4601
  }))), c = f({
4594
4602
  get() {
4595
4603
  return t.activity.dependingOn;
4596
4604
  },
4597
- set(m) {
4598
- m && e("update:activity", {
4605
+ set(h) {
4606
+ h && e("update:activity", {
4599
4607
  id: t.activity.id,
4600
- dependingOn: m
4608
+ dependingOn: h
4601
4609
  });
4602
4610
  }
4603
- }), v = f(() => d.value.map((m) => {
4611
+ }), p = f(() => d.value.map((h) => {
4604
4612
  var H;
4605
4613
  return {
4606
- ...m,
4607
- disabled: (H = t.activity.blocking) == null ? void 0 : H.some((U) => U === m.value)
4614
+ ...h,
4615
+ disabled: (H = t.activity.blocking) == null ? void 0 : H.some((U) => U === h.value)
4608
4616
  };
4609
4617
  })), _ = f({
4610
4618
  get() {
4611
4619
  return t.activity.blocking;
4612
4620
  },
4613
- set(m) {
4614
- m && e("update:activity", {
4621
+ set(h) {
4622
+ h && e("update:activity", {
4615
4623
  id: t.activity.id,
4616
- blocking: m
4624
+ blocking: h
4617
4625
  });
4618
4626
  }
4619
- }), h = f(() => d.value.map((m) => {
4627
+ }), m = f(() => d.value.map((h) => {
4620
4628
  var H;
4621
4629
  return {
4622
- ...m,
4623
- disabled: (H = t.activity.dependingOn) == null ? void 0 : H.some((U) => U === m.value)
4630
+ ...h,
4631
+ disabled: (H = t.activity.dependingOn) == null ? void 0 : H.some((U) => U === h.value)
4624
4632
  };
4625
4633
  })), $ = f(() => (t.templateMilestones || []).filter((H) => H.id !== t.milestoneId).map((H) => ({
4626
4634
  label: H.name,
@@ -4629,54 +4637,54 @@ const Z5 = {
4629
4637
  get() {
4630
4638
  return t.activity.dependingMilestones;
4631
4639
  },
4632
- set(m) {
4640
+ set(h) {
4633
4641
  e("update:activity", {
4634
4642
  id: t.activity.id,
4635
- dependingMilestones: m
4643
+ dependingMilestones: h
4636
4644
  });
4637
4645
  }
4638
- }), E = (m) => {
4639
- e("addSubtask", m);
4640
- }, I = (m) => {
4641
- e("updateSubtask", m);
4642
- }, M = (m) => {
4643
- e("deleteSubtask", m);
4646
+ }), E = (h) => {
4647
+ e("addSubtask", h);
4648
+ }, k = (h) => {
4649
+ e("updateSubtask", h);
4650
+ }, M = (h) => {
4651
+ e("deleteSubtask", h);
4644
4652
  }, y = f(() => {
4645
- var m;
4646
- return ((m = t.users) == null ? void 0 : m.map((H) => ({
4653
+ var h;
4654
+ return ((h = t.users) == null ? void 0 : h.map((H) => ({
4647
4655
  label: `${H.firstName} ${H.lastName}`,
4648
4656
  value: H.id
4649
4657
  }))) || [];
4650
- }), D = f({
4658
+ }), B = f({
4651
4659
  get() {
4652
- var m;
4653
- return (m = t.activity.assignee) == null ? void 0 : m.id;
4660
+ var h;
4661
+ return (h = t.activity.assignee) == null ? void 0 : h.id;
4654
4662
  },
4655
- set(m) {
4663
+ set(h) {
4656
4664
  e("update:activity", {
4657
4665
  id: t.activity.id,
4658
- assigneeId: m
4666
+ assigneeId: h
4659
4667
  });
4660
4668
  }
4661
- }), ee = (m) => {
4669
+ }), ee = (h) => {
4662
4670
  e("addFiles", {
4663
4671
  activityId: t.activity.id,
4664
- files: m
4672
+ files: h
4665
4673
  });
4666
- }, te = (m) => {
4674
+ }, te = (h) => {
4667
4675
  e("removeFile", {
4668
4676
  activityId: t.activity.id,
4669
- file: m
4677
+ file: h
4670
4678
  });
4671
4679
  };
4672
- return (m, H) => (u(), j(Ct, {
4673
- onClose: H[8] || (H[8] = (U) => m.$emit("close"))
4680
+ return (h, H) => (u(), N(Ct, {
4681
+ onClose: H[8] || (H[8] = (U) => h.$emit("close"))
4674
4682
  }, {
4675
4683
  header: R(() => [
4676
- Y(m.$slots, "header", {}, () => [
4677
- m.breadcrumbs ? (u(), C("div", Z5, N(m.breadcrumbs), 1)) : w("", !0),
4684
+ Y(h.$slots, "header", {}, () => [
4685
+ h.breadcrumbs ? (u(), C("div", Z5, j(h.breadcrumbs), 1)) : w("", !0),
4678
4686
  b(ce, {
4679
- title: m.activity.name || m.activity.id,
4687
+ title: h.activity.name || h.activity.id,
4680
4688
  level: 4,
4681
4689
  "is-editable": !0,
4682
4690
  "onUpdate:title": n
@@ -4688,7 +4696,7 @@ const Z5 = {
4688
4696
  r("fieldset", N5, [
4689
4697
  r("div", j5, [
4690
4698
  r("label", R5, [
4691
- r("span", U5, N(m.$t("activity.description.label")), 1),
4699
+ r("span", U5, j(h.$t("activity.description.label")), 1),
4692
4700
  Ue(r("textarea", {
4693
4701
  "onUpdate:modelValue": H[0] || (H[0] = (U) => a.value = U),
4694
4702
  rows: "4",
@@ -4708,7 +4716,7 @@ const Z5 = {
4708
4716
  ]),
4709
4717
  r("div", q5, [
4710
4718
  r("label", z5, [
4711
- r("span", F5, N(m.$t("activity.estimation.label")), 1),
4719
+ r("span", F5, j(h.$t("activity.estimation.label")), 1),
4712
4720
  Ue(r("input", {
4713
4721
  "onUpdate:modelValue": H[1] || (H[1] = (U) => i.value = U),
4714
4722
  class: "ao-field__input",
@@ -4727,7 +4735,7 @@ const Z5 = {
4727
4735
  ])
4728
4736
  ]),
4729
4737
  r("label", K5, [
4730
- r("span", G5, N(m.$t("activity.isImportant.label")), 1),
4738
+ r("span", G5, j(h.$t("activity.isImportant.label")), 1),
4731
4739
  Ue(r("input", {
4732
4740
  "onUpdate:modelValue": H[2] || (H[2] = (U) => l.value = U),
4733
4741
  class: "ao-field__input",
@@ -4744,21 +4752,21 @@ const Z5 = {
4744
4752
  ]),
4745
4753
  r("div", Y5, [
4746
4754
  r("div", W5, [
4747
- r("span", X5, N(m.$t("activity.assignee.label")), 1),
4748
- b(B(Ce), {
4749
- modelValue: D.value,
4750
- "onUpdate:modelValue": H[3] || (H[3] = (U) => D.value = U),
4755
+ r("span", X5, j(h.$t("activity.assignee.label")), 1),
4756
+ b(O(ve), {
4757
+ modelValue: B.value,
4758
+ "onUpdate:modelValue": H[3] || (H[3] = (U) => B.value = U),
4751
4759
  options: y.value,
4752
4760
  "close-on-select": !1,
4753
4761
  searchable: !0,
4754
4762
  class: "ao-activity-details__assignees",
4755
- placeholder: m.$t("activity.filters.assignee.placeholder")
4763
+ placeholder: h.$t("activity.filters.assignee.placeholder")
4756
4764
  }, {
4757
4765
  tag: R(({ option: U, handleTagRemove: se }) => [
4758
4766
  b(Ke, {
4759
4767
  "user-name": U.label,
4760
4768
  "is-closable": !0,
4761
- onClose: (oe) => se(U, oe)
4769
+ onClose: (re) => se(U, re)
4762
4770
  }, null, 8, ["user-name", "onClose"])
4763
4771
  ]),
4764
4772
  _: 1
@@ -4767,16 +4775,16 @@ const Z5 = {
4767
4775
  ]),
4768
4776
  r("div", J5, [
4769
4777
  r("label", Q5, [
4770
- r("span", x5, N(m.$t("activity.type.label")), 1),
4771
- b(B(Ce), {
4778
+ r("span", x5, j(h.$t("activity.type.label")), 1),
4779
+ b(O(ve), {
4772
4780
  modelValue: o.value,
4773
4781
  "onUpdate:modelValue": H[4] || (H[4] = (U) => o.value = U),
4774
4782
  class: "ao-field__multiselect",
4775
4783
  mode: "single",
4776
4784
  searchable: !0,
4777
4785
  "create-option": !0,
4778
- options: m.activityTypes,
4779
- placeholder: m.$t("activity.filters.type.placeholder")
4786
+ options: h.activityTypes,
4787
+ placeholder: h.$t("activity.filters.type.placeholder")
4780
4788
  }, null, 8, ["modelValue", "options", "placeholder"])
4781
4789
  ])
4782
4790
  ])
@@ -4786,41 +4794,41 @@ const Z5 = {
4786
4794
  b(ne, { name: "FlowsheetOutlineRounded" }),
4787
4795
  b(ce, {
4788
4796
  level: 4,
4789
- title: m.$t("activity.dependencies.title")
4797
+ title: h.$t("activity.dependencies.title")
4790
4798
  }, null, 8, ["title"])
4791
4799
  ]),
4792
4800
  r("div", s7, [
4793
4801
  r("label", a7, [
4794
- r("span", l7, N(m.$t("activity.dependingOn.label")), 1),
4795
- b(B(Ce), {
4802
+ r("span", l7, j(h.$t("activity.dependingOn.label")), 1),
4803
+ b(O(ve), {
4796
4804
  modelValue: c.value,
4797
4805
  "onUpdate:modelValue": H[5] || (H[5] = (U) => c.value = U),
4798
4806
  class: "ao-field__multiselect",
4799
4807
  mode: "tags",
4800
4808
  "close-on-select": !1,
4801
4809
  searchable: !0,
4802
- options: v.value
4810
+ options: p.value
4803
4811
  }, null, 8, ["modelValue", "options"])
4804
4812
  ])
4805
4813
  ]),
4806
4814
  r("div", n7, [
4807
4815
  r("label", i7, [
4808
- r("span", o7, N(m.$t("activity.blocking.label")), 1),
4809
- b(B(Ce), {
4816
+ r("span", o7, j(h.$t("activity.blocking.label")), 1),
4817
+ b(O(ve), {
4810
4818
  modelValue: _.value,
4811
4819
  "onUpdate:modelValue": H[6] || (H[6] = (U) => _.value = U),
4812
4820
  class: "ao-field__multiselect",
4813
4821
  mode: "tags",
4814
4822
  "close-on-select": !1,
4815
4823
  searchable: !0,
4816
- options: h.value
4824
+ options: m.value
4817
4825
  }, null, 8, ["modelValue", "options"])
4818
4826
  ])
4819
4827
  ]),
4820
4828
  r("div", r7, [
4821
4829
  r("label", u7, [
4822
- r("span", c7, N(m.$t("activity.dependingMilestone.label")), 1),
4823
- b(B(Ce), {
4830
+ r("span", c7, j(h.$t("activity.dependingMilestone.label")), 1),
4831
+ b(O(ve), {
4824
4832
  modelValue: V.value,
4825
4833
  "onUpdate:modelValue": H[7] || (H[7] = (U) => V.value = U),
4826
4834
  class: "ao-field__multiselect",
@@ -4837,31 +4845,31 @@ const Z5 = {
4837
4845
  b(ne, { name: "SelectCheckBox" }),
4838
4846
  b(ce, {
4839
4847
  level: 4,
4840
- title: m.$t("activity.subtasks.title")
4848
+ title: h.$t("activity.subtasks.title")
4841
4849
  }, null, 8, ["title"])
4842
4850
  ]),
4843
4851
  b(I5, {
4844
4852
  class: "ao-activity-details__subtasks",
4845
- subtasks: m.activity.tasks || [],
4846
- "activity-id": m.activity.id,
4853
+ subtasks: h.activity.tasks || [],
4854
+ "activity-id": h.activity.id,
4847
4855
  "assignees-options": y.value,
4848
4856
  onAdd: E,
4849
- onUpdate: I,
4857
+ onUpdate: k,
4850
4858
  onDelete: M
4851
4859
  }, null, 8, ["subtasks", "activity-id", "assignees-options"])
4852
4860
  ]),
4853
- Y(m.$slots, "default")
4861
+ Y(h.$slots, "default")
4854
4862
  ]),
4855
4863
  r("div", v7, [
4856
4864
  r("div", C7, [
4857
4865
  b(ne, { name: "AttachFileRounded" }),
4858
4866
  b(ce, {
4859
4867
  level: 4,
4860
- title: m.$t("activity.attachments.title")
4868
+ title: h.$t("activity.attachments.title")
4861
4869
  }, null, 8, ["title"])
4862
4870
  ]),
4863
4871
  b(D5, {
4864
- attachments: m.activity.attachments,
4872
+ attachments: h.activity.attachments,
4865
4873
  onAdd: ee,
4866
4874
  onRemove: te
4867
4875
  }, null, 8, ["attachments"])
@@ -4895,7 +4903,7 @@ const _7 = {
4895
4903
  DAYS: "days",
4896
4904
  WEEKS: "weeks",
4897
4905
  MONTHS: "months"
4898
- }, re = {
4906
+ }, oe = {
4899
4907
  TEMPLATES: "templates",
4900
4908
  PHASES: "phases",
4901
4909
  MILESTONES: "milestones",
@@ -4911,7 +4919,7 @@ const Uu = {
4911
4919
  project: "projectId",
4912
4920
  type: "typeId",
4913
4921
  assignee: "assigneeId"
4914
- }, y7 = /* @__PURE__ */ G({
4922
+ }, y7 = /* @__PURE__ */ K({
4915
4923
  __name: "AoRuleLine",
4916
4924
  props: {
4917
4925
  rule: {},
@@ -4923,7 +4931,7 @@ const Uu = {
4923
4931
  emits: ["update:rule", "close"],
4924
4932
  setup(s, { emit: e }) {
4925
4933
  const t = s, n = Qe(
4926
- t.rule.itemType || re.ACTIVITIES
4934
+ t.rule.itemType || oe.ACTIVITIES
4927
4935
  ), a = f({
4928
4936
  get() {
4929
4937
  return n.value;
@@ -4935,7 +4943,7 @@ const Uu = {
4935
4943
  subItemId: void 0
4936
4944
  });
4937
4945
  }
4938
- }), i = f(() => Object.values(re)), l = f({
4946
+ }), i = f(() => Object.values(oe)), l = f({
4939
4947
  get() {
4940
4948
  return t.rule.subItemId;
4941
4949
  },
@@ -4949,12 +4957,12 @@ const Uu = {
4949
4957
  }), o = f(() => {
4950
4958
  var y;
4951
4959
  return !t.templateActivities || !t.templateMilestones || !t.templatePhases ? null : (y = {
4952
- [re.ACTIVITIES]: t.templateActivities,
4953
- [re.MILESTONES]: t.templateMilestones,
4954
- [re.PHASES]: t.templatePhases
4955
- }[n.value]) == null ? void 0 : y.map((D) => ({
4956
- value: D.id,
4957
- label: D.name
4960
+ [oe.ACTIVITIES]: t.templateActivities,
4961
+ [oe.MILESTONES]: t.templateMilestones,
4962
+ [oe.PHASES]: t.templatePhases
4963
+ }[n.value]) == null ? void 0 : y.map((B) => ({
4964
+ value: B.id,
4965
+ label: B.name
4958
4966
  }));
4959
4967
  }), d = Qe(t.rule.comparator), c = f({
4960
4968
  get() {
@@ -4963,7 +4971,7 @@ const Uu = {
4963
4971
  set(M) {
4964
4972
  e("update:rule", { ...t.rule, comparator: M });
4965
4973
  }
4966
- }), v = f(() => Object.values(m7)), _ = Qe(t.rule.trigger), h = f({
4974
+ }), p = f(() => Object.values(m7)), _ = Qe(t.rule.trigger), m = f({
4967
4975
  get() {
4968
4976
  return _.value;
4969
4977
  },
@@ -4984,31 +4992,31 @@ const Uu = {
4984
4992
  set(M) {
4985
4993
  e("update:rule", { ...t.rule, durationUnit: M });
4986
4994
  }
4987
- }), I = f(() => Object.values(f7));
4988
- return (M, y) => (u(), j(ze(M.tagName), { class: "ao-rule-line" }, {
4995
+ }), k = f(() => Object.values(f7));
4996
+ return (M, y) => (u(), N(ze(M.tagName), { class: "ao-rule-line" }, {
4989
4997
  default: R(() => [
4990
- b(B(Ce), {
4998
+ b(O(ve), {
4991
4999
  modelValue: a.value,
4992
- "onUpdate:modelValue": y[0] || (y[0] = (D) => a.value = D),
5000
+ "onUpdate:modelValue": y[0] || (y[0] = (B) => a.value = B),
4993
5001
  options: i.value
4994
5002
  }, null, 8, ["modelValue", "options"]),
4995
- b(B(Ce), {
5003
+ b(O(ve), {
4996
5004
  modelValue: l.value,
4997
- "onUpdate:modelValue": y[1] || (y[1] = (D) => l.value = D),
5005
+ "onUpdate:modelValue": y[1] || (y[1] = (B) => l.value = B),
4998
5006
  options: o.value
4999
5007
  }, null, 8, ["modelValue", "options"]),
5000
- b(B(Ce), {
5001
- modelValue: h.value,
5002
- "onUpdate:modelValue": y[2] || (y[2] = (D) => h.value = D),
5008
+ b(O(ve), {
5009
+ modelValue: m.value,
5010
+ "onUpdate:modelValue": y[2] || (y[2] = (B) => m.value = B),
5003
5011
  options: $.value
5004
5012
  }, null, 8, ["modelValue", "options"]),
5005
- b(B(Ce), {
5013
+ b(O(ve), {
5006
5014
  modelValue: c.value,
5007
- "onUpdate:modelValue": y[3] || (y[3] = (D) => c.value = D),
5008
- options: v.value
5015
+ "onUpdate:modelValue": y[3] || (y[3] = (B) => c.value = B),
5016
+ options: p.value
5009
5017
  }, null, 8, ["modelValue", "options"]),
5010
5018
  Ue(r("input", {
5011
- "onUpdate:modelValue": y[4] || (y[4] = (D) => V.value = D),
5019
+ "onUpdate:modelValue": y[4] || (y[4] = (B) => V.value = B),
5012
5020
  type: "number",
5013
5021
  min: "0"
5014
5022
  }, null, 512), [
@@ -5019,23 +5027,23 @@ const Uu = {
5019
5027
  { number: !0 }
5020
5028
  ]
5021
5029
  ]),
5022
- b(B(Ce), {
5030
+ b(O(ve), {
5023
5031
  modelValue: E.value,
5024
- "onUpdate:modelValue": y[5] || (y[5] = (D) => E.value = D),
5025
- options: I.value
5032
+ "onUpdate:modelValue": y[5] || (y[5] = (B) => E.value = B),
5033
+ options: k.value
5026
5034
  }, null, 8, ["modelValue", "options"]),
5027
5035
  b(ue, {
5028
5036
  class: "ao-rule-line__remove",
5029
5037
  "icon-name": "CloseRounded",
5030
5038
  variant: "ghost",
5031
- onClick: y[6] || (y[6] = (D) => M.$emit("close"))
5039
+ onClick: y[6] || (y[6] = (B) => M.$emit("close"))
5032
5040
  })
5033
5041
  ]),
5034
5042
  _: 1
5035
5043
  }));
5036
5044
  }
5037
5045
  });
5038
- const b7 = { class: "ao-template-rules__body" }, $7 = { class: "ao-template-rules__list" }, w7 = /* @__PURE__ */ G({
5046
+ const b7 = { class: "ao-template-rules__body" }, $7 = { class: "ao-template-rules__list" }, w7 = /* @__PURE__ */ K({
5039
5047
  __name: "AoTemplateRules",
5040
5048
  props: {
5041
5049
  templateId: {},
@@ -5051,7 +5059,7 @@ const b7 = { class: "ao-template-rules__body" }, $7 = { class: "ao-template-rule
5051
5059
  }, n = (a) => {
5052
5060
  e("removeRule", a);
5053
5061
  };
5054
- return (a, i) => (u(), j(Ct, null, {
5062
+ return (a, i) => (u(), N(Ct, null, {
5055
5063
  header: R(() => [
5056
5064
  b(ce, {
5057
5065
  title: a.$t("template.rules.title"),
@@ -5061,7 +5069,7 @@ const b7 = { class: "ao-template-rules__body" }, $7 = { class: "ao-template-rule
5061
5069
  default: R(() => [
5062
5070
  r("div", b7, [
5063
5071
  r("ul", $7, [
5064
- (u(!0), C(le, null, ve(a.rules, (l) => (u(), j(y7, {
5072
+ (u(!0), C(le, null, pe(a.rules, (l) => (u(), N(y7, {
5065
5073
  key: l.id,
5066
5074
  rule: l,
5067
5075
  "template-phases": a.templatePhases,
@@ -5083,7 +5091,7 @@ const b7 = { class: "ao-template-rules__body" }, $7 = { class: "ao-template-rule
5083
5091
  }
5084
5092
  });
5085
5093
  function v1(s, e, t) {
5086
- const n = s.length, a = s.at(-1), i = a ? fe.LexoRank.parse(a.rank).genNext() : fe.LexoRank.middle();
5094
+ const n = s.length, a = s.at(-1), i = a ? be.LexoRank.parse(a.rank).genNext() : be.LexoRank.middle();
5087
5095
  return {
5088
5096
  name: t(`template.defaultName.${e}`, { idx: n + 1 }),
5089
5097
  rank: i.format()
@@ -5092,11 +5100,12 @@ function v1(s, e, t) {
5092
5100
  const M7 = {
5093
5101
  key: 0,
5094
5102
  class: "ao-template-details"
5095
- }, A7 = { class: "ao-template-details__body" }, k7 = { class: "ao-template-details__cols" }, I7 = { class: "ao-template-details__col" }, S7 = { class: "ao-list__footer" }, V7 = { class: "ao-template-details__col" }, L7 = { class: "ao-template-details__col" }, T7 = /* @__PURE__ */ G({
5103
+ }, A7 = { class: "ao-template-details__body" }, k7 = { class: "ao-template-details__cols" }, I7 = { class: "ao-template-details__col" }, S7 = { class: "ao-list__footer" }, V7 = { class: "ao-template-details__col" }, L7 = { class: "ao-template-details__col" }, T7 = /* @__PURE__ */ K({
5096
5104
  __name: "AoTemplateDetails",
5097
5105
  props: {
5098
5106
  templateId: {},
5099
5107
  templates: {},
5108
+ users: {},
5100
5109
  phaseId: {},
5101
5110
  milestoneId: {},
5102
5111
  activityId: {},
@@ -5107,55 +5116,59 @@ const M7 = {
5107
5116
  const t = s, { t: n } = i1(), a = f(
5108
5117
  () => {
5109
5118
  var g;
5110
- return (g = t.templates) == null ? void 0 : g.find((O) => O.id === t.templateId);
5119
+ return (g = t.templates) == null ? void 0 : g.find((D) => D.id === t.templateId);
5111
5120
  }
5112
5121
  ), i = f(() => {
5113
- var g, O;
5114
- return (O = (g = a == null ? void 0 : a.value) == null ? void 0 : g.phases) == null ? void 0 : O.find((T) => T.id === t.phaseId);
5122
+ var g, D;
5123
+ return (D = (g = a == null ? void 0 : a.value) == null ? void 0 : g.phases) == null ? void 0 : D.find((T) => T.id === t.phaseId);
5115
5124
  }), l = f(() => {
5116
- var g, O;
5117
- return (O = (g = i.value) == null ? void 0 : g.milestones) == null ? void 0 : O.find(
5125
+ var g, D;
5126
+ return (D = (g = i.value) == null ? void 0 : g.milestones) == null ? void 0 : D.find(
5118
5127
  (T) => T.id === t.milestoneId
5119
5128
  );
5120
5129
  }), o = f(() => {
5121
- var g, O;
5122
- return ((O = (g = a.value) == null ? void 0 : g.phases) == null ? void 0 : O.reduce((T, q) => {
5123
- const J = q.milestones || [];
5124
- return [...T, ...J];
5130
+ var g, D;
5131
+ return ((D = (g = a.value) == null ? void 0 : g.phases) == null ? void 0 : D.reduce((T, G) => {
5132
+ const Q = G.milestones || [];
5133
+ return [...T, ...Q];
5125
5134
  }, [])) || [];
5126
5135
  }), d = f(() => {
5127
- var g, O;
5128
- return ((O = (g = a.value) == null ? void 0 : g.phases) == null ? void 0 : O.reduce((T, q) => {
5129
- const de = (q.milestones || []).reduce(
5130
- (_e, ae) => ae.activities ? [..._e, ...ae.activities] : _e,
5136
+ var g, D;
5137
+ return ((D = (g = a.value) == null ? void 0 : g.phases) == null ? void 0 : D.reduce((T, G) => {
5138
+ const Ce = (G.milestones || []).reduce(
5139
+ (he, ae) => ae.activities ? [...he, ...ae.activities] : he,
5131
5140
  []
5132
5141
  );
5133
- return [...T, ...de];
5142
+ return [...T, ...Ce];
5134
5143
  }, [])) || [];
5135
5144
  }), c = f(() => {
5136
- var g, O;
5137
- return (O = (g = l.value) == null ? void 0 : g.activities) == null ? void 0 : O.find(
5145
+ var g, D;
5146
+ return (D = (g = l.value) == null ? void 0 : g.activities) == null ? void 0 : D.find(
5138
5147
  (T) => T.id === t.activityId
5139
5148
  );
5140
- }), v = f(() => {
5149
+ }), p = f(() => {
5141
5150
  var g;
5142
- return ((g = t.activityTypes) == null ? void 0 : g.map((O) => ({
5143
- label: O.name,
5144
- value: O.id
5151
+ return ((g = t.activityTypes) == null ? void 0 : g.map((D) => ({
5152
+ label: D.name,
5153
+ value: D.id
5145
5154
  }))) || [];
5146
5155
  }), _ = f(() => {
5147
5156
  var g;
5148
5157
  return ((g = a.value) == null ? void 0 : g.name) || t.templateId;
5149
- }), h = () => {
5158
+ }), m = () => {
5150
5159
  if (!a.value)
5151
5160
  return;
5152
- const { name: g, rank: O } = v1(a.value.phases, "phase", n);
5161
+ const { name: g, rank: D } = v1(
5162
+ a.value.phases,
5163
+ "phase",
5164
+ n
5165
+ );
5153
5166
  e("addItem", {
5154
- type: re.PHASES,
5167
+ type: oe.PHASES,
5155
5168
  templateId: t.templateId,
5156
5169
  item: {
5157
5170
  name: g,
5158
- rank: O,
5171
+ rank: D,
5159
5172
  templateId: t.templateId
5160
5173
  }
5161
5174
  });
@@ -5163,83 +5176,91 @@ const M7 = {
5163
5176
  e("updateItem", {
5164
5177
  templateId: t.templateId,
5165
5178
  id: t.templateId,
5166
- itemType: re.TEMPLATES,
5179
+ itemType: oe.TEMPLATES,
5167
5180
  data: { name: g }
5168
5181
  });
5169
5182
  }, V = (g) => {
5170
5183
  e("removeItem", {
5171
- type: re.PHASES,
5184
+ type: oe.PHASES,
5172
5185
  templateId: t.templateId,
5173
5186
  data: {
5174
5187
  id: g
5175
5188
  }
5176
5189
  });
5177
- }, E = (g, O) => {
5190
+ }, E = (g, D) => {
5178
5191
  e("updateItem", {
5179
5192
  templateId: t.templateId,
5180
5193
  id: g,
5181
- itemType: re.PHASES,
5182
- data: { name: O }
5194
+ itemType: oe.PHASES,
5195
+ data: { name: D }
5183
5196
  });
5184
- }, I = (g) => {
5197
+ }, k = (g) => {
5185
5198
  e("updateItem", g);
5186
5199
  }, M = (g) => {
5187
5200
  if (!i.value)
5188
5201
  return;
5189
- const { name: O, rank: T } = v1(i.value.milestones, "milestone", n);
5202
+ const { name: D, rank: T } = v1(
5203
+ i.value.milestones,
5204
+ "milestone",
5205
+ n
5206
+ );
5190
5207
  e("addItem", {
5191
- type: re.MILESTONES,
5208
+ type: oe.MILESTONES,
5192
5209
  templateId: t.templateId,
5193
5210
  phaseId: g.phaseId,
5194
5211
  item: {
5195
- name: O,
5212
+ name: D,
5196
5213
  rank: T,
5197
5214
  phaseId: g.phaseId
5198
5215
  }
5199
5216
  });
5200
5217
  }, y = (g) => {
5201
5218
  e("removeItem", {
5202
- type: re.MILESTONES,
5219
+ type: oe.MILESTONES,
5203
5220
  templateId: t.templateId,
5204
5221
  phaseId: g.phaseId,
5205
5222
  data: {
5206
5223
  id: g.id
5207
5224
  }
5208
5225
  });
5209
- }, D = (g) => {
5210
- const { id: O, ...T } = g;
5226
+ }, B = (g) => {
5227
+ const { id: D, ...T } = g;
5211
5228
  e("updateItem", {
5212
- itemType: re.MILESTONES,
5213
- id: O,
5229
+ itemType: oe.MILESTONES,
5230
+ id: D,
5214
5231
  templateId: t.templateId,
5215
5232
  data: T
5216
5233
  });
5217
5234
  }, ee = (g) => {
5218
- const { milestoneId: O } = g;
5235
+ const { milestoneId: D } = g;
5219
5236
  if (!l.value)
5220
5237
  return;
5221
- const { name: T, rank: q } = v1(l.value.activities, "activity", n);
5238
+ const { name: T, rank: G } = v1(
5239
+ l.value.activities,
5240
+ "activity",
5241
+ n
5242
+ );
5222
5243
  e("addItem", {
5223
- type: re.ACTIVITIES,
5224
- milestoneId: O,
5225
- item: { name: T, rank: q, milestoneId: O }
5244
+ type: oe.ACTIVITIES,
5245
+ milestoneId: D,
5246
+ item: { name: T, rank: G, milestoneId: D }
5226
5247
  });
5227
5248
  }, te = (g) => {
5228
- const { phaseId: O, milestoneId: T } = g;
5249
+ const { phaseId: D, milestoneId: T } = g;
5229
5250
  e("removeItem", {
5230
- type: re.ACTIVITIES,
5251
+ type: oe.ACTIVITIES,
5231
5252
  templateId: t.templateId,
5232
- phaseId: O,
5253
+ phaseId: D,
5233
5254
  milestoneId: T,
5234
5255
  data: {
5235
5256
  id: g.id
5236
5257
  }
5237
5258
  });
5238
- }, m = (g) => {
5239
- const { id: O, ...T } = g;
5259
+ }, h = (g) => {
5260
+ const { id: D, ...T } = g;
5240
5261
  e("updateItem", {
5241
- itemType: re.ACTIVITIES,
5242
- id: O,
5262
+ itemType: oe.ACTIVITIES,
5263
+ id: D,
5243
5264
  templateId: t.templateId,
5244
5265
  data: T
5245
5266
  });
@@ -5247,14 +5268,14 @@ const M7 = {
5247
5268
  H.value = !H.value;
5248
5269
  }, se = () => {
5249
5270
  e("addRule", { templateId: t.templateId });
5250
- }, oe = (g) => {
5271
+ }, re = (g) => {
5251
5272
  e("removeRule", { id: g, templateId: t.templateId });
5252
- }, me = (g) => {
5253
- var O;
5273
+ }, _e = (g) => {
5274
+ var D;
5254
5275
  if (g.moved) {
5255
- const T = w1(g, ((O = a.value) == null ? void 0 : O.phases) ?? []);
5276
+ const T = w1(g, ((D = a.value) == null ? void 0 : D.phases) ?? []);
5256
5277
  e("updateItem", {
5257
- itemType: re.PHASES,
5278
+ itemType: oe.PHASES,
5258
5279
  id: g.moved.element.id,
5259
5280
  templateId: t.templateId,
5260
5281
  data: {
@@ -5264,7 +5285,7 @@ const M7 = {
5264
5285
  }
5265
5286
  }, Z = (g) => {
5266
5287
  !i.value || !l.value || !c.value || e("addItem", {
5267
- type: re.SUBTASKS,
5288
+ type: oe.SUBTASKS,
5268
5289
  activityId: g.activityId,
5269
5290
  milestoneId: l.value.id,
5270
5291
  phaseId: i.value.id,
@@ -5272,51 +5293,47 @@ const M7 = {
5272
5293
  item: g
5273
5294
  });
5274
5295
  }, X = (g) => {
5275
- var q, J, de, _e;
5296
+ var G, Q, Ce, he;
5276
5297
  if (!i.value || !l.value || !c.value)
5277
5298
  return;
5278
- const O = [...((q = c.value) == null ? void 0 : q.subtasks) || []], T = O.findIndex((ae) => ae.id === g.id);
5279
- O[T] = {
5280
- ...O[T],
5299
+ const D = [...((G = c.value) == null ? void 0 : G.subtasks) || []], T = D.findIndex((ae) => ae.id === g.id);
5300
+ D[T] = {
5301
+ ...D[T],
5281
5302
  ...g
5282
- }, m({
5283
- id: (J = c.value) == null ? void 0 : J.id,
5284
- phaseId: (de = i.value) == null ? void 0 : de.id,
5285
- milestoneId: (_e = l.value) == null ? void 0 : _e.id,
5286
- subtasks: O
5303
+ }, h({
5304
+ id: (Q = c.value) == null ? void 0 : Q.id,
5305
+ phaseId: (Ce = i.value) == null ? void 0 : Ce.id,
5306
+ milestoneId: (he = l.value) == null ? void 0 : he.id,
5307
+ subtasks: D
5287
5308
  });
5288
5309
  }, A = (g) => {
5289
- var T, q, J, de;
5290
- if (!i.value || !l.value || !c.value)
5291
- return;
5292
- const O = [...((T = c.value) == null ? void 0 : T.subtasks) || []].filter(
5293
- (_e) => _e.id !== g
5294
- );
5295
- m({
5296
- id: (q = c.value) == null ? void 0 : q.id,
5297
- phaseId: (J = i.value) == null ? void 0 : J.id,
5298
- milestoneId: (de = l.value) == null ? void 0 : de.id,
5299
- subtasks: O
5310
+ !i.value || !l.value || !c.value || e("removeItem", {
5311
+ type: oe.SUBTASKS,
5312
+ activityId: c.value.id,
5313
+ milestoneId: l.value.id,
5314
+ phaseId: i.value.id,
5315
+ templateId: t.templateId,
5316
+ data: g
5300
5317
  });
5301
5318
  }, W = (g) => {
5302
5319
  e("addFiles", g);
5303
- }, he = (g) => {
5320
+ }, me = (g) => {
5304
5321
  e("removeFile", g);
5305
5322
  };
5306
- return (g, O) => {
5307
- var T, q, J, de, _e, ae;
5323
+ return (g, D) => {
5324
+ var T, G, Q, Ce, he, ae;
5308
5325
  return a.value ? (u(), C("div", M7, [
5309
5326
  b(M1, {
5310
5327
  "can-go-back": !0,
5311
- onGoBack: O[1] || (O[1] = (z) => g.$router.push({ name: B(xe).TEMPLATES_LIST }))
5328
+ onGoBack: D[1] || (D[1] = (q) => g.$router.push({ name: O(xe).TEMPLATES_LIST }))
5312
5329
  }, {
5313
5330
  primary: R(() => [
5314
5331
  b(ce, {
5315
5332
  title: _.value,
5316
5333
  level: 2,
5317
5334
  "is-editable": !0,
5318
- "onUpdate:title": O[0] || (O[0] = (z) => {
5319
- $(z);
5335
+ "onUpdate:title": D[0] || (D[0] = (q) => {
5336
+ $(q);
5320
5337
  })
5321
5338
  }, null, 8, ["title"])
5322
5339
  ]),
@@ -5334,12 +5351,12 @@ const M7 = {
5334
5351
  r("div", A7, [
5335
5352
  r("ol", k7, [
5336
5353
  r("li", I7, [
5337
- b(B(a1), {
5354
+ b(O(a1), {
5338
5355
  "model-value": a.value.phases,
5339
5356
  class: "ao-templates__list",
5340
5357
  "item-key": "id",
5341
5358
  handle: ".ao-card__drag",
5342
- onChange: me
5359
+ onChange: _e
5343
5360
  }, {
5344
5361
  header: R(() => [
5345
5362
  b(ce, {
@@ -5348,22 +5365,22 @@ const M7 = {
5348
5365
  class: "ao-list__title"
5349
5366
  }, null, 8, ["title"])
5350
5367
  ]),
5351
- item: R(({ element: z }) => {
5352
- var k;
5368
+ item: R(({ element: q }) => {
5369
+ var I;
5353
5370
  return [
5354
5371
  b(k3, {
5355
- id: z.id,
5356
- name: z.name,
5357
- milestones: z.milestones,
5358
- "is-active": ((k = i.value) == null ? void 0 : k.id) === z.id,
5372
+ id: q.id,
5373
+ name: q.name,
5374
+ milestones: q.milestones,
5375
+ "is-active": ((I = i.value) == null ? void 0 : I.id) === q.id,
5359
5376
  "is-draggable": !0,
5360
5377
  onClick: (P) => g.$router.push({
5361
- params: { templateId: g.templateId, phaseId: z.id }
5378
+ params: { templateId: g.templateId, phaseId: q.id }
5362
5379
  }),
5363
5380
  "onUpdate:title": (P) => {
5364
- E(z.id, P);
5381
+ E(q.id, P);
5365
5382
  },
5366
- onRemove: () => V(z.id)
5383
+ onRemove: () => V(q.id)
5367
5384
  }, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
5368
5385
  ];
5369
5386
  }),
@@ -5372,7 +5389,7 @@ const M7 = {
5372
5389
  b(Be, {
5373
5390
  "icon-name": "AddBoxOutlineRounded",
5374
5391
  label: g.$t("template.phases.add"),
5375
- onClick: h
5392
+ onClick: m
5376
5393
  }, null, 8, ["label"])
5377
5394
  ])
5378
5395
  ]),
@@ -5380,54 +5397,54 @@ const M7 = {
5380
5397
  }, 8, ["model-value"])
5381
5398
  ]),
5382
5399
  r("li", V7, [
5383
- i.value ? (u(), j(V3, {
5400
+ i.value ? (u(), N(V3, {
5384
5401
  key: 0,
5385
5402
  "template-id": g.templateId,
5386
5403
  phase: i.value,
5387
5404
  "milestone-id": (T = l.value) == null ? void 0 : T.id,
5388
5405
  onAddMilestone: M,
5389
- onUpdateMilestone: D,
5390
- onUpdatePhase: I,
5406
+ onUpdateMilestone: B,
5407
+ onUpdatePhase: k,
5391
5408
  onRemoveMilestone: y
5392
5409
  }, null, 8, ["template-id", "phase", "milestone-id"])) : w("", !0)
5393
5410
  ]),
5394
5411
  r("li", L7, [
5395
- i.value && l.value ? (u(), j(E3, {
5412
+ i.value && l.value ? (u(), N(E3, {
5396
5413
  key: 0,
5397
5414
  "template-id": g.templateId,
5398
- "phase-id": (q = i.value) == null ? void 0 : q.id,
5415
+ "phase-id": (G = i.value) == null ? void 0 : G.id,
5399
5416
  milestone: l.value,
5400
- "activity-id": (J = c.value) == null ? void 0 : J.id,
5417
+ "activity-id": (Q = c.value) == null ? void 0 : Q.id,
5401
5418
  onAddActivity: ee,
5402
- onUpdateActivity: m,
5419
+ onUpdateActivity: h,
5403
5420
  onRemoveActivity: te
5404
5421
  }, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) : w("", !0)
5405
5422
  ])
5406
5423
  ])
5407
5424
  ]),
5408
- (u(), j(C1, { to: "body" }, [
5409
- c.value ? (u(), j(R1, {
5425
+ (u(), N(C1, { to: "body" }, [
5426
+ c.value ? (u(), N(R1, {
5410
5427
  key: 0,
5411
5428
  activity: c.value,
5412
- "activity-types": v.value,
5413
- breadcrumbs: `${a.value.name} / ${(de = i.value) == null ? void 0 : de.name} / ${(_e = l.value) == null ? void 0 : _e.name}`,
5429
+ "activity-types": p.value,
5430
+ breadcrumbs: `${a.value.name} / ${(Ce = i.value) == null ? void 0 : Ce.name} / ${(he = l.value) == null ? void 0 : he.name}`,
5414
5431
  "milestone-id": (ae = l.value) == null ? void 0 : ae.id,
5415
5432
  "template-activities": d.value,
5416
5433
  "template-milestones": o.value,
5417
5434
  "is-template": !0,
5418
- "onUpdate:activity": O[2] || (O[2] = (z) => {
5419
- c.value && m(z);
5435
+ "onUpdate:activity": D[2] || (D[2] = (q) => {
5436
+ c.value && h(q);
5420
5437
  }),
5421
5438
  onClose: g.$router.back,
5422
5439
  onAddSubtask: Z,
5423
5440
  onUpdateSubtask: X,
5424
5441
  onDeleteSubtask: A,
5425
5442
  onAddFiles: W,
5426
- onRemoveFile: he
5443
+ onRemoveFile: me
5427
5444
  }, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "onClose"])) : w("", !0)
5428
5445
  ])),
5429
- (u(), j(C1, { to: "body" }, [
5430
- H.value ? (u(), j(w7, {
5446
+ (u(), N(C1, { to: "body" }, [
5447
+ H.value ? (u(), N(w7, {
5431
5448
  key: 0,
5432
5449
  "template-id": a.value.id,
5433
5450
  rules: a.value.rules || [],
@@ -5436,7 +5453,7 @@ const M7 = {
5436
5453
  "template-activities": d.value,
5437
5454
  onClose: U,
5438
5455
  onAddRule: se,
5439
- onRemoveRule: oe
5456
+ onRemoveRule: re
5440
5457
  }, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) : w("", !0)
5441
5458
  ]))
5442
5459
  ])) : w("", !0);
@@ -5449,15 +5466,15 @@ const E7 = {
5449
5466
  }, H7 = { class: "ao-card__body" }, O7 = {
5450
5467
  key: 1,
5451
5468
  class: "ao-card__footer"
5452
- }, U1 = /* @__PURE__ */ G({
5469
+ }, U1 = /* @__PURE__ */ K({
5453
5470
  __name: "AoCard",
5454
5471
  props: {
5455
5472
  isClickable: { type: Boolean },
5456
5473
  tagName: { default: "div" }
5457
5474
  },
5458
5475
  setup(s) {
5459
- return (e, t) => (u(), j(ze(e.tagName), {
5460
- class: K(["ao-card", { "ao-card--clickable": e.isClickable }])
5476
+ return (e, t) => (u(), N(ze(e.tagName), {
5477
+ class: F(["ao-card", { "ao-card--clickable": e.isClickable }])
5461
5478
  }, {
5462
5479
  default: R(() => [
5463
5480
  e.$slots.header ? (u(), C("header", E7, [
@@ -5474,7 +5491,7 @@ const E7 = {
5474
5491
  }, 8, ["class"]));
5475
5492
  }
5476
5493
  });
5477
- const q1 = /* @__PURE__ */ G({
5494
+ const q1 = /* @__PURE__ */ K({
5478
5495
  __name: "AoProgress",
5479
5496
  props: {
5480
5497
  percentages: {},
@@ -5483,12 +5500,12 @@ const q1 = /* @__PURE__ */ G({
5483
5500
  setup(s) {
5484
5501
  const e = s, t = f(() => typeof e.percentages == "number" ? [e.percentages] : e.percentages ?? []);
5485
5502
  return (n, a) => (u(), C("div", {
5486
- class: K(["ao-progress", n.status ? `ao-progress--${n.status}` : ""]),
5503
+ class: F(["ao-progress", n.status ? `ao-progress--${n.status}` : ""]),
5487
5504
  role: "meter"
5488
5505
  }, [
5489
- (u(!0), C(le, null, ve(t.value, (i) => (u(), C("div", {
5506
+ (u(!0), C(le, null, pe(t.value, (i) => (u(), C("div", {
5490
5507
  key: i,
5491
- class: K(["ao-progress__progress"]),
5508
+ class: F(["ao-progress__progress"]),
5492
5509
  style: Ft({ width: `${i * 100}%` })
5493
5510
  }, null, 4))), 128))
5494
5511
  ], 2));
@@ -5497,7 +5514,7 @@ const q1 = /* @__PURE__ */ G({
5497
5514
  const B7 = { class: "ao-card-project-phase__header" }, D7 = { class: "ao-card-project-phase__footer" }, Z7 = { class: "ao-card-project-phase__footer-row" }, P7 = { class: "ao-card-project-phase__subitem" }, N7 = { class: "ao-card-project-phase__subitem" }, j7 = {
5498
5515
  key: 1,
5499
5516
  class: "ao-card-project-phase__secondary"
5500
- }, R7 = /* @__PURE__ */ G({
5517
+ }, R7 = /* @__PURE__ */ K({
5501
5518
  __name: "AoCardProjectItemPhase",
5502
5519
  props: {
5503
5520
  id: {},
@@ -5513,10 +5530,10 @@ const B7 = { class: "ao-card-project-phase__header" }, D7 = { class: "ao-card-pr
5513
5530
  var i;
5514
5531
  return (i = e.milestones) == null ? void 0 : i.filter((l) => l.status === _7.done).length;
5515
5532
  }), a = f(() => (n.value || 0) / (t.value || 1));
5516
- return (i, l) => (u(), j(U1, { class: "ao-card-project-phase" }, {
5533
+ return (i, l) => (u(), N(U1, { class: "ao-card-project-phase" }, {
5517
5534
  header: R(() => [
5518
5535
  r("div", B7, [
5519
- i.projectName ? (u(), j(f1, {
5536
+ i.projectName ? (u(), N(f1, {
5520
5537
  key: 0,
5521
5538
  label: i.projectName,
5522
5539
  class: "ao-card-project-phase__project",
@@ -5540,7 +5557,7 @@ const B7 = { class: "ao-card-project-phase__header" }, D7 = { class: "ao-card-pr
5540
5557
  name: "MountainFlagOutlineRounded",
5541
5558
  size: "sm"
5542
5559
  }),
5543
- r("span", N7, N(n.value) + " / " + N(t.value), 1)
5560
+ r("span", N7, j(n.value) + " / " + j(t.value), 1)
5544
5561
  ]),
5545
5562
  b(q1, {
5546
5563
  percentages: a.value,
@@ -5560,7 +5577,7 @@ const B7 = { class: "ao-card-project-phase__header" }, D7 = { class: "ao-card-pr
5560
5577
  const U7 = { class: "ao-card-project-phase__footer" }, q7 = { class: "ao-card-project-phase__footer-row" }, z7 = { class: "ao-card-project-phase__subitem" }, F7 = { class: "ao-card-project-phase__subitem" }, K7 = {
5561
5578
  key: 1,
5562
5579
  class: "ao-card-project-phase__secondary"
5563
- }, G7 = /* @__PURE__ */ G({
5580
+ }, G7 = /* @__PURE__ */ K({
5564
5581
  __name: "AoCardProjectItemMilestone",
5565
5582
  props: {
5566
5583
  id: {},
@@ -5579,7 +5596,7 @@ const U7 = { class: "ao-card-project-phase__footer" }, q7 = { class: "ao-card-pr
5579
5596
  return ((o = l.status) == null ? void 0 : o.id) === ((d = e.doneStatus) == null ? void 0 : d.id);
5580
5597
  }).length;
5581
5598
  }), a = f(() => (n.value || 0) / (t.value || 1));
5582
- return (i, l) => (u(), j(U1, {
5599
+ return (i, l) => (u(), N(U1, {
5583
5600
  class: "ao-card-project-milestone",
5584
5601
  "is-clickable": !0,
5585
5602
  "tag-name": "li"
@@ -5599,7 +5616,7 @@ const U7 = { class: "ao-card-project-phase__footer" }, q7 = { class: "ao-card-pr
5599
5616
  name: "SelectCheckBox",
5600
5617
  size: "sm"
5601
5618
  }),
5602
- r("span", F7, N(n.value) + " / " + N(t.value), 1)
5619
+ r("span", F7, j(n.value) + " / " + j(t.value), 1)
5603
5620
  ]),
5604
5621
  b(q1, {
5605
5622
  percentages: a.value,
@@ -5616,7 +5633,7 @@ const U7 = { class: "ao-card-project-phase__footer" }, q7 = { class: "ao-card-pr
5616
5633
  }));
5617
5634
  }
5618
5635
  });
5619
- const Y7 = { class: "ao-project-phase" }, W7 = { class: "ao-project-phase__col-phase" }, X7 = { class: "ao-project-phase__col-milestones" }, J7 = { class: "ao-project-phase__milestones" }, Q7 = { class: "ao-project-phase__milestones-list" }, x7 = { class: "ao-project-phase__milestones-list-footer" }, e0 = /* @__PURE__ */ G({
5636
+ const Y7 = { class: "ao-project-phase" }, W7 = { class: "ao-project-phase__col-phase" }, X7 = { class: "ao-project-phase__col-milestones" }, J7 = { class: "ao-project-phase__milestones" }, Q7 = { class: "ao-project-phase__milestones-list" }, x7 = { class: "ao-project-phase__milestones-list-footer" }, e0 = /* @__PURE__ */ K({
5620
5637
  __name: "AoProjectPhase",
5621
5638
  props: {
5622
5639
  phase: {},
@@ -5639,14 +5656,14 @@ const Y7 = { class: "ao-project-phase" }, W7 = { class: "ao-project-phase__col-p
5639
5656
  r("div", X7, [
5640
5657
  r("div", J7, [
5641
5658
  r("ul", Q7, [
5642
- (u(!0), C(le, null, ve(n.value, (o) => (u(), j(G7, {
5659
+ (u(!0), C(le, null, pe(n.value, (o) => (u(), N(G7, {
5643
5660
  id: o.id,
5644
5661
  key: o.id,
5645
5662
  name: o.name,
5646
5663
  activities: o.activities,
5647
5664
  class: "ao-project-phase__milestone",
5648
5665
  onClick: (d) => i.$router.push({
5649
- name: B(qe).milestone,
5666
+ name: O(qe).milestone,
5650
5667
  params: { phaseId: i.phase.id, milestoneId: o.id }
5651
5668
  })
5652
5669
  }, null, 8, ["id", "name", "activities", "onClick"]))), 128))
@@ -5664,7 +5681,7 @@ const Y7 = { class: "ao-project-phase" }, W7 = { class: "ao-project-phase__col-p
5664
5681
  ]));
5665
5682
  }
5666
5683
  });
5667
- const t0 = { class: "ao-project" }, s0 = { class: "ao-project__body" }, a0 = { class: "ao-project__col-header" }, l0 = { class: "ao-project__col ao-project__col--phases" }, n0 = { class: "ao-project__col-title" }, i0 = { class: "ao-project__col ao-project__col--milestones" }, o0 = { class: "ao-project__col-title" }, r0 = { class: "ao-project__phases" }, u0 = /* @__PURE__ */ G({
5684
+ const t0 = { class: "ao-project" }, s0 = { class: "ao-project__body" }, a0 = { class: "ao-project__col-header" }, l0 = { class: "ao-project__col ao-project__col--phases" }, n0 = { class: "ao-project__col-title" }, i0 = { class: "ao-project__col ao-project__col--milestones" }, o0 = { class: "ao-project__col-title" }, r0 = { class: "ao-project__phases" }, u0 = /* @__PURE__ */ K({
5668
5685
  __name: "AoProjectOverviewProject",
5669
5686
  props: {
5670
5687
  project: {},
@@ -5673,53 +5690,53 @@ const t0 = { class: "ao-project" }, s0 = { class: "ao-project__body" }, a0 = { c
5673
5690
  },
5674
5691
  emits: ["addPhase", "addMilestone", "addActivity", "update:activity", "addSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
5675
5692
  setup(s, { emit: e }) {
5676
- const t = s, { t: n } = i1(), a = f(() => t.phases.reduce((I, M) => [...I, ...M.milestones || []], [])), i = () => {
5693
+ const t = s, { t: n } = i1(), a = f(() => t.phases.reduce((k, M) => [...k, ...M.milestones || []], [])), i = () => {
5677
5694
  if (!t.phases)
5678
5695
  return;
5679
- const { name: I, rank: M } = v1(t.phases, "phase", n);
5680
- e("addPhase", { name: I, rank: M, projectId: t.project.id });
5681
- }, l = (I) => {
5682
- e("addMilestone", I);
5683
- }, o = (I) => {
5684
- e("addActivity", I);
5685
- }, d = (I) => {
5686
- e("update:activity", I);
5687
- }, c = (I) => {
5688
- var D;
5696
+ const { name: k, rank: M } = v1(t.phases, "phase", n);
5697
+ e("addPhase", { name: k, rank: M, projectId: t.project.id });
5698
+ }, l = (k) => {
5699
+ e("addMilestone", k);
5700
+ }, o = (k) => {
5701
+ e("addActivity", k);
5702
+ }, d = (k) => {
5703
+ e("update:activity", k);
5704
+ }, c = (k) => {
5705
+ var B;
5689
5706
  const M = t.phases.find((ee) => {
5690
5707
  var te;
5691
- return (te = ee.milestones) == null ? void 0 : te.find((m) => {
5708
+ return (te = ee.milestones) == null ? void 0 : te.find((h) => {
5692
5709
  var H;
5693
- return (H = m.activities) == null ? void 0 : H.find((U) => U.id === I.activityId);
5710
+ return (H = h.activities) == null ? void 0 : H.find((U) => U.id === k.activityId);
5694
5711
  });
5695
- }), y = (D = M == null ? void 0 : M.milestones) == null ? void 0 : D.find((ee) => {
5712
+ }), y = (B = M == null ? void 0 : M.milestones) == null ? void 0 : B.find((ee) => {
5696
5713
  var te;
5697
- return (te = ee.activities) == null ? void 0 : te.find((m) => m.id === I.activityId);
5714
+ return (te = ee.activities) == null ? void 0 : te.find((h) => h.id === k.activityId);
5698
5715
  });
5699
5716
  e("addSubtask", {
5700
5717
  milestoneId: y == null ? void 0 : y.id,
5701
5718
  phaseId: M == null ? void 0 : M.id,
5702
- ...I
5719
+ ...k
5703
5720
  });
5704
- }, v = f(() => a.value.reduce((I, M) => [...I, ...M.activities || []], [])), _ = (I) => {
5705
- e("addFiles", I);
5706
- }, h = (I) => {
5707
- e("removeFile", I);
5708
- }, $ = (I) => {
5709
- e("addComment", I);
5710
- }, V = (I) => {
5711
- e("updateComment", I);
5712
- }, E = (I) => {
5713
- e("removeComment", I);
5721
+ }, p = f(() => a.value.reduce((k, M) => [...k, ...M.activities || []], [])), _ = (k) => {
5722
+ e("addFiles", k);
5723
+ }, m = (k) => {
5724
+ e("removeFile", k);
5725
+ }, $ = (k) => {
5726
+ e("addComment", k);
5727
+ }, V = (k) => {
5728
+ e("updateComment", k);
5729
+ }, E = (k) => {
5730
+ e("removeComment", k);
5714
5731
  };
5715
- return (I, M) => {
5732
+ return (k, M) => {
5716
5733
  const y = Kt("RouterView");
5717
5734
  return u(), C(le, null, [
5718
5735
  r("div", t0, [
5719
5736
  b(M1, null, {
5720
5737
  primary: R(() => [
5721
5738
  b(ue, {
5722
- label: I.$t("project.phases.add"),
5739
+ label: k.$t("project.phases.add"),
5723
5740
  color: "primary",
5724
5741
  onClick: i
5725
5742
  }, null, 8, ["label"])
@@ -5737,7 +5754,7 @@ const t0 = { class: "ao-project" }, s0 = { class: "ao-project__body" }, a0 = { c
5737
5754
  }),
5738
5755
  b(ce, {
5739
5756
  level: 3,
5740
- title: I.$t("project.phases.title")
5757
+ title: k.$t("project.phases.title")
5741
5758
  }, null, 8, ["title"])
5742
5759
  ])
5743
5760
  ]),
@@ -5750,16 +5767,16 @@ const t0 = { class: "ao-project" }, s0 = { class: "ao-project__body" }, a0 = { c
5750
5767
  }),
5751
5768
  b(ce, {
5752
5769
  level: 3,
5753
- title: I.$t("project.milestones.title")
5770
+ title: k.$t("project.milestones.title")
5754
5771
  }, null, 8, ["title"])
5755
5772
  ])
5756
5773
  ])
5757
5774
  ]),
5758
5775
  r("ul", r0, [
5759
- (u(!0), C(le, null, ve(I.phases, (D) => (u(), j(e0, {
5760
- key: D.id,
5761
- phase: D,
5762
- "project-name": I.project.name,
5776
+ (u(!0), C(le, null, pe(k.phases, (B) => (u(), N(e0, {
5777
+ key: B.id,
5778
+ phase: B,
5779
+ "project-name": k.project.name,
5763
5780
  onAddMilestone: l
5764
5781
  }, null, 8, ["phase", "project-name"]))), 128))
5765
5782
  ])
@@ -5768,19 +5785,19 @@ const t0 = { class: "ao-project" }, s0 = { class: "ao-project__body" }, a0 = { c
5768
5785
  b(y, {
5769
5786
  class: "ao-project__sidebar",
5770
5787
  milestones: a.value,
5771
- "project-name": I.project.name,
5772
- users: I.users,
5773
- onClose: M[0] || (M[0] = (D) => I.$router.push({ name: B(qe).project })),
5788
+ "project-name": k.project.name,
5789
+ users: k.users,
5790
+ onClose: M[0] || (M[0] = (B) => k.$router.push({ name: O(qe).project })),
5774
5791
  onAddActivity: o
5775
5792
  }, null, 8, ["milestones", "project-name", "users"]),
5776
- (u(), j(C1, { to: "body" }, [
5793
+ (u(), N(C1, { to: "body" }, [
5777
5794
  b(y, {
5778
5795
  name: "modal",
5779
- activities: v.value,
5796
+ activities: p.value,
5780
5797
  "onUpdate:activity": d,
5781
5798
  onAddSubtask: c,
5782
5799
  onAddFiles: _,
5783
- onRemoveFile: h,
5800
+ onRemoveFile: m,
5784
5801
  onAddComment: $,
5785
5802
  onUpdateComment: V,
5786
5803
  onRemoveComment: E
@@ -5814,7 +5831,7 @@ const c0 = { class: "ao-card-feed__header" }, d0 = {
5814
5831
  }, w0 = { class: "ao-card-feed__subitem" }, M0 = { class: "ao-card-feed__footer-row" }, A0 = {
5815
5832
  key: 0,
5816
5833
  class: "ao-card-feed__progress-wrapper"
5817
- }, k0 = { class: "ao-card-feed__subitem" }, I0 = { class: "ao-card-feed__subitem" }, _t = /* @__PURE__ */ G({
5834
+ }, k0 = { class: "ao-card-feed__subitem" }, I0 = { class: "ao-card-feed__subitem" }, _t = /* @__PURE__ */ K({
5818
5835
  __name: "AoCardFeed",
5819
5836
  props: {
5820
5837
  id: {},
@@ -5839,13 +5856,13 @@ const c0 = { class: "ao-card-feed__header" }, d0 = {
5839
5856
  });
5840
5857
  }, a = f(() => t.phaseName && t.milestoneName ? `${t.phaseName} / ${t.milestoneName}` : ""), i = f(() => {
5841
5858
  var _;
5842
- return (_ = t.assignees) == null ? void 0 : _.map((h) => {
5859
+ return (_ = t.assignees) == null ? void 0 : _.map((m) => {
5843
5860
  var $;
5844
- return ($ = t.users) == null ? void 0 : $.find((V) => V.id === h);
5861
+ return ($ = t.users) == null ? void 0 : $.find((V) => V.id === m);
5845
5862
  });
5846
5863
  }), l = (_) => {
5847
- const { firstName: h, lastName: $ } = _ || {};
5848
- return h && $ ? `${h} ${$}` : "";
5864
+ const { firstName: m, lastName: $ } = _ || {};
5865
+ return m && $ ? `${m} ${$}` : "";
5849
5866
  }, o = (_) => {
5850
5867
  e("removeAssignee", _);
5851
5868
  }, d = f(() => {
@@ -5853,22 +5870,22 @@ const c0 = { class: "ao-card-feed__header" }, d0 = {
5853
5870
  return (_ = t.subtasks) == null ? void 0 : _.length;
5854
5871
  }), c = f(() => {
5855
5872
  var _;
5856
- return (_ = t.subtasks) == null ? void 0 : _.filter((h) => h.isDone).length;
5857
- }), v = f(() => (c.value || 0) / (d.value || 1));
5858
- return (_, h) => (u(), j(U1, {
5873
+ return (_ = t.subtasks) == null ? void 0 : _.filter((m) => m.isDone).length;
5874
+ }), p = f(() => (c.value || 0) / (d.value || 1));
5875
+ return (_, m) => (u(), N(U1, {
5859
5876
  class: "ao-card-feed",
5860
5877
  "is-clickable": !0
5861
5878
  }, {
5862
5879
  header: R(() => [
5863
5880
  r("div", c0, [
5864
- _.projectName ? (u(), j(f1, {
5881
+ _.projectName ? (u(), N(f1, {
5865
5882
  key: 0,
5866
5883
  label: _.projectName,
5867
5884
  class: "ao-card-feed__project",
5868
5885
  variant: "solid",
5869
5886
  color: "primary"
5870
5887
  }, null, 8, ["label"])) : w("", !0),
5871
- _.isImportant ? (u(), j(ne, {
5888
+ _.isImportant ? (u(), N(ne, {
5872
5889
  key: 1,
5873
5890
  name: "FlagRounded",
5874
5891
  class: "ao-card-feed__important ao-card-feed__header-secondary",
@@ -5881,21 +5898,21 @@ const c0 = { class: "ao-card-feed__header" }, d0 = {
5881
5898
  ]),
5882
5899
  default: R(() => [
5883
5900
  r("div", p0, [
5884
- a.value ? (u(), C("span", v0, N(a.value), 1)) : w("", !0),
5901
+ a.value ? (u(), C("span", v0, j(a.value), 1)) : w("", !0),
5885
5902
  b(ce, {
5886
5903
  title: _.name,
5887
5904
  level: 5,
5888
5905
  "is-editable": !0,
5889
5906
  "onUpdate:title": n
5890
5907
  }, null, 8, ["title"]),
5891
- _.endDate ? (u(), C("span", C0, N(_.endDate), 1)) : w("", !0)
5908
+ _.endDate ? (u(), C("span", C0, j(_.endDate), 1)) : w("", !0)
5892
5909
  ])
5893
5910
  ]),
5894
5911
  footer: R(() => [
5895
5912
  r("div", _0, [
5896
5913
  r("div", m0, [
5897
5914
  r("ul", h0, [
5898
- (u(!0), C(le, null, ve(i.value, ($) => (u(), C(le, {
5915
+ (u(!0), C(le, null, pe(i.value, ($) => (u(), C(le, {
5899
5916
  key: $.id
5900
5917
  }, [
5901
5918
  $ ? (u(), C("li", f0, [
@@ -5913,14 +5930,14 @@ const c0 = { class: "ao-card-feed__header" }, d0 = {
5913
5930
  name: "ChatOutline",
5914
5931
  size: "sm"
5915
5932
  }),
5916
- r("span", b0, N(_.comments), 1)
5933
+ r("span", b0, j(_.comments), 1)
5917
5934
  ])) : w("", !0),
5918
5935
  _.attachments ? (u(), C("li", $0, [
5919
5936
  b(ne, {
5920
5937
  name: "AttachFileRounded",
5921
5938
  size: "sm"
5922
5939
  }),
5923
- r("span", w0, N(_.attachments), 1)
5940
+ r("span", w0, j(_.attachments), 1)
5924
5941
  ])) : w("", !0)
5925
5942
  ])) : w("", !0)
5926
5943
  ]),
@@ -5931,10 +5948,10 @@ const c0 = { class: "ao-card-feed__header" }, d0 = {
5931
5948
  name: "SelectCheckBox",
5932
5949
  size: "sm"
5933
5950
  }),
5934
- r("span", I0, N(c.value) + " / " + N(d.value), 1)
5951
+ r("span", I0, j(c.value) + " / " + j(d.value), 1)
5935
5952
  ]),
5936
5953
  b(q1, {
5937
- percentages: v.value,
5954
+ percentages: p.value,
5938
5955
  class: "ao-card-feed__progress"
5939
5956
  }, null, 8, ["percentages"])
5940
5957
  ])) : w("", !0)
@@ -5945,7 +5962,7 @@ const c0 = { class: "ao-card-feed__header" }, d0 = {
5945
5962
  }));
5946
5963
  }
5947
5964
  });
5948
- const S0 = { class: "ao-project-milestone" }, V0 = { class: "ao-project-milestone__header" }, L0 = { class: "ao-project-milestone__title" }, T0 = { class: "ao-project-milestone__body" }, E0 = { class: "ao-project-milestone__activities" }, H0 = { class: "ao-project-milestone__footer" }, at = /* @__PURE__ */ G({
5965
+ const S0 = { class: "ao-project-milestone" }, V0 = { class: "ao-project-milestone__header" }, L0 = { class: "ao-project-milestone__title" }, T0 = { class: "ao-project-milestone__body" }, E0 = { class: "ao-project-milestone__activities" }, H0 = { class: "ao-project-milestone__footer" }, at = /* @__PURE__ */ K({
5949
5966
  __name: "AoProjectOverviewMilestoneDetails",
5950
5967
  props: {
5951
5968
  phaseId: {},
@@ -5976,7 +5993,7 @@ const S0 = { class: "ao-project-milestone" }, V0 = { class: "ao-project-mileston
5976
5993
  return u(), C("div", S0, [
5977
5994
  r("header", V0, [
5978
5995
  r("div", L0, [
5979
- r("span", null, N(o.$t("project.milestone.title")), 1),
5996
+ r("span", null, j(o.$t("project.milestone.title")), 1),
5980
5997
  b(ce, {
5981
5998
  title: ((c = n.value) == null ? void 0 : c.name) || o.milestoneId,
5982
5999
  level: 5
@@ -5990,24 +6007,24 @@ const S0 = { class: "ao-project-milestone" }, V0 = { class: "ao-project-mileston
5990
6007
  ]),
5991
6008
  r("div", T0, [
5992
6009
  r("ul", E0, [
5993
- (u(!0), C(le, null, ve(a.value, (v) => {
5994
- var _, h, $;
5995
- return u(), j(_t, {
5996
- key: v.id,
5997
- name: v.name || v.id,
6010
+ (u(!0), C(le, null, pe(a.value, (p) => {
6011
+ var _, m, $;
6012
+ return u(), N(_t, {
6013
+ key: p.id,
6014
+ name: p.name || p.id,
5998
6015
  "project-name": o.projectName,
5999
6016
  "phase-name": o.phaseName,
6000
6017
  "milestone-name": (_ = n.value) == null ? void 0 : _.name,
6001
- "end-date": v.endDate,
6002
- "is-important": v.isImportant,
6018
+ "end-date": p.endDate,
6019
+ "is-important": p.isImportant,
6003
6020
  users: o.users,
6004
- assignees: v.assignees,
6005
- comments: (h = v.comments) == null ? void 0 : h.length,
6006
- attachments: ($ = v.attachments) == null ? void 0 : $.length,
6007
- subtasks: v.subtasks,
6021
+ assignees: p.assignees,
6022
+ comments: (m = p.comments) == null ? void 0 : m.length,
6023
+ attachments: ($ = p.attachments) == null ? void 0 : $.length,
6024
+ subtasks: p.subtasks,
6008
6025
  onClick: (V) => o.$router.push({
6009
- name: B(qe).activity,
6010
- params: { phaseId: o.phaseId, milestoneId: o.milestoneId, activityId: v.id }
6026
+ name: O(qe).activity,
6027
+ params: { phaseId: o.phaseId, milestoneId: o.milestoneId, activityId: p.id }
6011
6028
  })
6012
6029
  }, null, 8, ["name", "project-name", "phase-name", "milestone-name", "end-date", "is-important", "users", "assignees", "comments", "attachments", "subtasks", "onClick"]);
6013
6030
  }), 128))
@@ -6037,7 +6054,7 @@ function O0() {
6037
6054
  const B0 = { class: "ao-comment" }, D0 = { class: "ao-comment__body" }, Z0 = ["contenteditable"], P0 = { class: "ao-comment__created-at" }, N0 = {
6038
6055
  key: 1,
6039
6056
  class: "ao-comment__footer"
6040
- }, j0 = /* @__PURE__ */ G({
6057
+ }, j0 = /* @__PURE__ */ K({
6041
6058
  __name: "AoComment",
6042
6059
  props: {
6043
6060
  user: {},
@@ -6049,15 +6066,15 @@ const B0 = { class: "ao-comment" }, D0 = { class: "ao-comment__body" }, Z0 = ["c
6049
6066
  emits: ["edit", "remove"],
6050
6067
  setup(s, { emit: e }) {
6051
6068
  const t = s, n = f(() => {
6052
- const h = t.user;
6053
- return h ? `${h == null ? void 0 : h.firstName} ${h == null ? void 0 : h.lastName}` : null;
6054
- }), a = x(null), { isEditing: i, toggleIsEditing: l, onUpdate: o, onDiscard: d } = ot(a), c = d(), v = o((h) => {
6055
- e("edit", h);
6069
+ const m = t.user;
6070
+ return m ? `${m == null ? void 0 : m.firstName} ${m == null ? void 0 : m.lastName}` : null;
6071
+ }), a = x(null), { isEditing: i, toggleIsEditing: l, onUpdate: o, onDiscard: d } = ot(a), c = d(), p = o((m) => {
6072
+ e("edit", m);
6056
6073
  }), _ = () => {
6057
6074
  e("remove");
6058
6075
  };
6059
- return (h, $) => (u(), C("li", B0, [
6060
- n.value ? (u(), j(Ke, {
6076
+ return (m, $) => (u(), C("li", B0, [
6077
+ n.value ? (u(), N(Ke, {
6061
6078
  key: 0,
6062
6079
  "user-name": n.value,
6063
6080
  class: "ao-comment__avatar"
@@ -6067,40 +6084,40 @@ const B0 = { class: "ao-comment" }, D0 = { class: "ao-comment__body" }, Z0 = ["c
6067
6084
  ref_key: "commentContent",
6068
6085
  ref: a,
6069
6086
  class: "ao-comment__content",
6070
- contenteditable: B(i)
6071
- }, N(h.content), 9, Z0),
6072
- r("span", P0, N(h.editedAt || h.createdAt), 1)
6087
+ contenteditable: O(i)
6088
+ }, j(m.content), 9, Z0),
6089
+ r("span", P0, j(m.editedAt || m.createdAt), 1)
6073
6090
  ]),
6074
- h.isEditable ? (u(), C("div", N0, [
6075
- B(i) ? (u(), C(le, { key: 0 }, [
6091
+ m.isEditable ? (u(), C("div", N0, [
6092
+ O(i) ? (u(), C(le, { key: 0 }, [
6076
6093
  b(ue, {
6077
6094
  "icon-name": "CloseRounded",
6078
6095
  size: "sm",
6079
6096
  variant: "ghost",
6080
6097
  color: "neutral",
6081
- onClick: B(c)
6098
+ onClick: O(c)
6082
6099
  }, null, 8, ["onClick"]),
6083
6100
  b(ue, {
6084
6101
  "icon-name": "CheckSmallRounded",
6085
6102
  size: "sm",
6086
6103
  variant: "solid",
6087
6104
  color: "neutral",
6088
- onClick: B(v)
6105
+ onClick: O(p)
6089
6106
  }, null, 8, ["onClick"])
6090
6107
  ], 64)) : (u(), C(le, { key: 1 }, [
6091
6108
  b(ue, {
6092
- label: h.$t("activity.comment.delete"),
6109
+ label: m.$t("activity.comment.delete"),
6093
6110
  size: "sm",
6094
6111
  variant: "ghost",
6095
6112
  color: "neutral",
6096
6113
  onClick: _
6097
6114
  }, null, 8, ["label"]),
6098
6115
  b(ue, {
6099
- label: h.$t("activity.comment.edit"),
6116
+ label: m.$t("activity.comment.edit"),
6100
6117
  size: "sm",
6101
6118
  variant: "ghost",
6102
6119
  color: "neutral",
6103
- onClick: B(l)
6120
+ onClick: O(l)
6104
6121
  }, null, 8, ["label", "onClick"])
6105
6122
  ], 64))
6106
6123
  ])) : w("", !0)
@@ -6110,7 +6127,7 @@ const B0 = { class: "ao-comment" }, D0 = { class: "ao-comment__body" }, Z0 = ["c
6110
6127
  const R0 = { class: "ao-comments" }, U0 = {
6111
6128
  key: 0,
6112
6129
  class: "ao-comments__list"
6113
- }, q0 = { class: "ao-comments__footer" }, z0 = ["onSubmit"], F0 = { class: "ao-field ao-field--full" }, K0 = { class: "ao-field__label" }, G0 = { class: "ao-comments__form-footer" }, mt = /* @__PURE__ */ G({
6130
+ }, q0 = { class: "ao-comments__footer" }, z0 = ["onSubmit"], F0 = { class: "ao-field ao-field--full" }, K0 = { class: "ao-field__label" }, G0 = { class: "ao-comments__form-footer" }, mt = /* @__PURE__ */ K({
6114
6131
  __name: "AoActivityDetailsComments",
6115
6132
  props: {
6116
6133
  comments: { default: () => [] },
@@ -6130,28 +6147,28 @@ const R0 = { class: "ao-comments" }, U0 = {
6130
6147
  }), l = () => {
6131
6148
  const c = a.value.trim();
6132
6149
  c && (e("createComment", c), a.value = "");
6133
- }, o = (c, v) => {
6150
+ }, o = (c, p) => {
6134
6151
  e("updateComment", {
6135
6152
  id: c,
6136
- content: v
6153
+ content: p
6137
6154
  });
6138
6155
  }, d = (c) => {
6139
6156
  e("removeComment", c);
6140
6157
  };
6141
- return (c, v) => {
6158
+ return (c, p) => {
6142
6159
  var _;
6143
6160
  return u(), C("div", R0, [
6144
6161
  ((_ = c.comments) == null ? void 0 : _.length) > 0 ? (u(), C("ul", U0, [
6145
- (u(!0), C(le, null, ve(c.comments, (h) => (u(), j(j0, {
6146
- key: h.id,
6147
- user: n(h.userId),
6148
- content: h.content,
6149
- "created-at": h.createdAt,
6150
- "edited-at": h.editedAt,
6151
- "is-editable": h.userId === c.userId,
6162
+ (u(!0), C(le, null, pe(c.comments, (m) => (u(), N(j0, {
6163
+ key: m.id,
6164
+ user: n(m.userId),
6165
+ content: m.content,
6166
+ "created-at": m.createdAt,
6167
+ "edited-at": m.editedAt,
6168
+ "is-editable": m.userId === c.userId,
6152
6169
  class: "ao-comment",
6153
- onEdit: ($) => o(h.id, $),
6154
- onRemove: () => d(h.id)
6170
+ onEdit: ($) => o(m.id, $),
6171
+ onRemove: () => d(m.id)
6155
6172
  }, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
6156
6173
  ])) : w("", !0),
6157
6174
  r("div", q0, [
@@ -6160,9 +6177,9 @@ const R0 = { class: "ao-comments" }, U0 = {
6160
6177
  onSubmit: ke(l, ["prevent"])
6161
6178
  }, [
6162
6179
  r("label", F0, [
6163
- r("span", K0, N(c.$t("activity.comment.label")), 1),
6180
+ r("span", K0, j(c.$t("activity.comment.label")), 1),
6164
6181
  Ue(r("textarea", {
6165
- "onUpdate:modelValue": v[0] || (v[0] = (h) => i.value = h),
6182
+ "onUpdate:modelValue": p[0] || (p[0] = (m) => i.value = m),
6166
6183
  rows: "4",
6167
6184
  class: "ao-field__textarea"
6168
6185
  }, null, 512), [
@@ -6189,7 +6206,7 @@ const R0 = { class: "ao-comments" }, U0 = {
6189
6206
  };
6190
6207
  }
6191
6208
  });
6192
- const Y0 = { class: "ao-fieldset" }, W0 = { class: "ao-fieldset__title" }, X0 = /* @__PURE__ */ G({
6209
+ const Y0 = { class: "ao-fieldset" }, W0 = { class: "ao-fieldset__title" }, X0 = /* @__PURE__ */ K({
6193
6210
  __name: "AoProjectOverviewActivityDetails",
6194
6211
  props: {
6195
6212
  phaseId: {},
@@ -6202,54 +6219,54 @@ const Y0 = { class: "ao-fieldset" }, W0 = { class: "ao-fieldset__title" }, X0 =
6202
6219
  emits: ["update:activity", "addSubtask", "addComment", "updateComment", "removeComment"],
6203
6220
  setup(s, { emit: e }) {
6204
6221
  const t = s, { users: n, userId: a } = O0(), i = f(() => {
6205
- var h;
6206
- return (h = t.activities) == null ? void 0 : h.find(($) => $.id === t.activityId);
6222
+ var m;
6223
+ return (m = t.activities) == null ? void 0 : m.find(($) => $.id === t.activityId);
6207
6224
  }), l = f(() => {
6208
- var h;
6209
- return ((h = t.activityTypes) == null ? void 0 : h.map(($) => ({
6225
+ var m;
6226
+ return ((m = t.activityTypes) == null ? void 0 : m.map(($) => ({
6210
6227
  value: $,
6211
6228
  label: $
6212
6229
  }))) || [];
6213
- }), o = (h) => {
6214
- const { id: $ } = h;
6230
+ }), o = (m) => {
6231
+ const { id: $ } = m;
6215
6232
  i.value && i.value.projectId && e("update:activity", {
6216
- itemType: re.ACTIVITIES,
6233
+ itemType: oe.ACTIVITIES,
6217
6234
  id: $,
6218
6235
  projectId: i.value.projectId,
6219
6236
  data: {
6220
6237
  ...i.value,
6221
- ...h,
6238
+ ...m,
6222
6239
  phaseId: t.phaseId,
6223
6240
  milestoneId: t.milestoneId
6224
6241
  }
6225
6242
  });
6226
- }, d = (h) => {
6243
+ }, d = (m) => {
6227
6244
  e("addSubtask", {
6228
- ...h,
6245
+ ...m,
6229
6246
  milestoneId: t.milestoneId,
6230
6247
  phaseId: t.phaseId
6231
6248
  });
6232
- }, c = (h) => {
6249
+ }, c = (m) => {
6233
6250
  i.value && e("addComment", {
6234
6251
  activityId: i.value.id,
6235
- comment: h
6252
+ comment: m
6236
6253
  });
6237
- }, v = (h) => {
6254
+ }, p = (m) => {
6238
6255
  const { id: $ } = i.value || {};
6239
- $ && e("updateComment", { ...h, activityId: $ });
6240
- }, _ = (h) => {
6256
+ $ && e("updateComment", { ...m, activityId: $ });
6257
+ }, _ = (m) => {
6241
6258
  const { id: $ } = i.value || {};
6242
- $ && e("removeComment", { id: h, activityId: $ });
6259
+ $ && e("removeComment", { id: m, activityId: $ });
6243
6260
  };
6244
- return (h, $) => i.value ? (u(), j(R1, {
6261
+ return (m, $) => i.value ? (u(), N(R1, {
6245
6262
  key: 0,
6246
6263
  activity: i.value,
6247
6264
  "activity-types": l.value,
6248
- "milestone-id": h.milestoneId,
6249
- "template-activities": h.activities,
6265
+ "milestone-id": m.milestoneId,
6266
+ "template-activities": m.activities,
6250
6267
  "is-template": !1,
6251
- users: B(n),
6252
- onClose: h.$router.back,
6268
+ users: O(n),
6269
+ onClose: m.$router.back,
6253
6270
  "onUpdate:activity": $[0] || ($[0] = (V) => {
6254
6271
  o({
6255
6272
  ...V
@@ -6263,15 +6280,15 @@ const Y0 = { class: "ao-fieldset" }, W0 = { class: "ao-fieldset__title" }, X0 =
6263
6280
  b(ne, { name: "ChatOutline" }),
6264
6281
  b(ce, {
6265
6282
  level: 4,
6266
- title: h.$t("activity.comments.title")
6283
+ title: m.$t("activity.comments.title")
6267
6284
  }, null, 8, ["title"])
6268
6285
  ]),
6269
6286
  b(mt, {
6270
6287
  comments: i.value.comments,
6271
- users: B(n),
6272
- "user-id": B(a),
6288
+ users: O(n),
6289
+ "user-id": O(a),
6273
6290
  onCreateComment: c,
6274
- onUpdateComment: v,
6291
+ onUpdateComment: p,
6275
6292
  onRemoveComment: _
6276
6293
  }, null, 8, ["comments", "users", "user-id"])
6277
6294
  ])
@@ -6334,7 +6351,7 @@ const Y0 = { class: "ao-fieldset" }, W0 = { class: "ao-fieldset__title" }, X0 =
6334
6351
  }
6335
6352
  ]
6336
6353
  }
6337
- ], J0 = { class: "ao-templates" }, Q0 = /* @__PURE__ */ G({
6354
+ ], J0 = { class: "ao-templates" }, Q0 = /* @__PURE__ */ K({
6338
6355
  __name: "AoTemplatesList",
6339
6356
  props: {
6340
6357
  templates: {}
@@ -6342,15 +6359,15 @@ const Y0 = { class: "ao-fieldset" }, W0 = { class: "ao-fieldset__title" }, X0 =
6342
6359
  emits: ["addTemplate", "updateTemplates", "updateItem"],
6343
6360
  setup(s, { emit: e }) {
6344
6361
  const t = s, { t: n } = i1(), a = () => {
6345
- var _, h;
6346
- const o = (_ = t.templates) == null ? void 0 : _.at(-1), d = o ? fe.LexoRank.parse(o.rank).genNext() : fe.LexoRank.middle(), c = ((h = t.templates) == null ? void 0 : h.length) ?? 0, v = {
6362
+ var _, m;
6363
+ const o = (_ = t.templates) == null ? void 0 : _.at(-1), d = o ? be.LexoRank.parse(o.rank).genNext() : be.LexoRank.middle(), c = ((m = t.templates) == null ? void 0 : m.length) ?? 0, p = {
6347
6364
  name: n("template.defaultName.template", { idx: c + 1 }),
6348
6365
  rank: d.format()
6349
6366
  };
6350
- e("addTemplate", v);
6367
+ e("addTemplate", p);
6351
6368
  }, i = (o, d) => {
6352
6369
  e("updateItem", {
6353
- itemType: re.TEMPLATES,
6370
+ itemType: oe.TEMPLATES,
6354
6371
  id: o,
6355
6372
  templateId: o,
6356
6373
  data: {
@@ -6361,7 +6378,7 @@ const Y0 = { class: "ao-fieldset" }, W0 = { class: "ao-fieldset__title" }, X0 =
6361
6378
  if (o.moved) {
6362
6379
  const d = w1(o, t.templates ?? []);
6363
6380
  e("updateItem", {
6364
- itemType: re.TEMPLATES,
6381
+ itemType: oe.TEMPLATES,
6365
6382
  id: o.moved.element.id,
6366
6383
  templateId: o.moved.element.id,
6367
6384
  data: {
@@ -6383,7 +6400,7 @@ const Y0 = { class: "ao-fieldset" }, W0 = { class: "ao-fieldset__title" }, X0 =
6383
6400
  ]),
6384
6401
  _: 1
6385
6402
  }),
6386
- b(B(a1), {
6403
+ b(O(a1), {
6387
6404
  "model-value": o.templates,
6388
6405
  class: "ao-templates__list",
6389
6406
  "item-key": "id",
@@ -6391,18 +6408,18 @@ const Y0 = { class: "ao-fieldset" }, W0 = { class: "ao-fieldset__title" }, X0 =
6391
6408
  onChange: l
6392
6409
  }, {
6393
6410
  item: R(({ element: c }) => {
6394
- var v;
6411
+ var p;
6395
6412
  return [
6396
6413
  b(m3, {
6397
6414
  title: c.name || c.id,
6398
6415
  phases: c.phases,
6399
- milestones: (v = c.phases) != null && v.length ? B(Kr)(c.phases) : 0,
6400
- activities: c.phases ? B(Gr)(c.phases) : 0,
6416
+ milestones: (p = c.phases) != null && p.length ? O(Kr)(c.phases) : 0,
6417
+ activities: c.phases ? O(Gr)(c.phases) : 0,
6401
6418
  "updated-at": c.updatedAt,
6402
6419
  "updated-by": c.updatedBy,
6403
6420
  onUpdateTitle: (_) => i(c.id, _),
6404
6421
  onClick: (_) => o.$router.push({
6405
- name: B(xe).TEMPLATE_DETAILS,
6422
+ name: O(xe).TEMPLATE_DETAILS,
6406
6423
  params: { templateId: c.id }
6407
6424
  })
6408
6425
  }, null, 8, ["title", "phases", "milestones", "activities", "updated-at", "updated-by", "onUpdateTitle", "onClick"])
@@ -6413,7 +6430,7 @@ const Y0 = { class: "ao-fieldset" }, W0 = { class: "ao-fieldset__title" }, X0 =
6413
6430
  ]));
6414
6431
  }
6415
6432
  });
6416
- const x0 = { class: "ao-col-header" }, eu = /* @__PURE__ */ G({
6433
+ const x0 = { class: "ao-col-header" }, eu = /* @__PURE__ */ K({
6417
6434
  __name: "AoColHeader",
6418
6435
  props: {
6419
6436
  title: {},
@@ -6426,7 +6443,7 @@ const x0 = { class: "ao-col-header" }, eu = /* @__PURE__ */ G({
6426
6443
  class: "ao-col-header__title",
6427
6444
  level: 4
6428
6445
  }, null, 8, ["title"]),
6429
- e.items ? (u(), j(f1, {
6446
+ e.items ? (u(), N(f1, {
6430
6447
  key: 0,
6431
6448
  label: e.items,
6432
6449
  class: "ao-col-header__items",
@@ -6440,7 +6457,7 @@ function tu(s) {
6440
6457
  return Gt() ? (Yt(s), !0) : !1;
6441
6458
  }
6442
6459
  function _1(s) {
6443
- return typeof s == "function" ? s() : B(s);
6460
+ return typeof s == "function" ? s() : O(s);
6444
6461
  }
6445
6462
  const su = typeof window < "u", au = (s) => s != null, e1 = () => {
6446
6463
  };
@@ -6459,11 +6476,11 @@ function nu(s, e = {}) {
6459
6476
  };
6460
6477
  return (o) => {
6461
6478
  const d = _1(s), c = _1(e.maxWait);
6462
- return t && i(t), d <= 0 || c !== void 0 && c <= 0 ? (n && (i(n), n = null), Promise.resolve(o())) : new Promise((v, _) => {
6463
- a = e.rejectOnCancel ? _ : v, c && !n && (n = setTimeout(() => {
6464
- t && i(t), n = null, v(o());
6479
+ return t && i(t), d <= 0 || c !== void 0 && c <= 0 ? (n && (i(n), n = null), Promise.resolve(o())) : new Promise((p, _) => {
6480
+ a = e.rejectOnCancel ? _ : p, c && !n && (n = setTimeout(() => {
6481
+ t && i(t), n = null, p(o());
6465
6482
  }, c)), t = setTimeout(() => {
6466
- n && i(n), n = null, v(o());
6483
+ n && i(n), n = null, p(o());
6467
6484
  }, d);
6468
6485
  });
6469
6486
  };
@@ -6501,13 +6518,13 @@ function cu(s, e, t = {}) {
6501
6518
  const V = _1(s);
6502
6519
  return (Array.isArray(V) ? V : [V]).map(B1).filter(au);
6503
6520
  });
6504
- let v = e1;
6505
- const _ = x(o), h = d.value ? pe(
6521
+ let p = e1;
6522
+ const _ = x(o), m = d.value ? de(
6506
6523
  () => [c.value, B1(n), _.value],
6507
6524
  ([V, E]) => {
6508
- if (v(), !_.value || !V.length)
6525
+ if (p(), !_.value || !V.length)
6509
6526
  return;
6510
- const I = new IntersectionObserver(
6527
+ const k = new IntersectionObserver(
6511
6528
  e,
6512
6529
  {
6513
6530
  root: B1(E),
@@ -6515,19 +6532,19 @@ function cu(s, e, t = {}) {
6515
6532
  threshold: i
6516
6533
  }
6517
6534
  );
6518
- V.forEach((M) => M && I.observe(M)), v = () => {
6519
- I.disconnect(), v = e1;
6535
+ V.forEach((M) => M && k.observe(M)), p = () => {
6536
+ k.disconnect(), p = e1;
6520
6537
  };
6521
6538
  },
6522
6539
  { immediate: o, flush: "post" }
6523
6540
  ) : e1, $ = () => {
6524
- v(), h(), _.value = !1;
6541
+ p(), m(), _.value = !1;
6525
6542
  };
6526
6543
  return tu($), {
6527
6544
  isSupported: d,
6528
6545
  isActive: _,
6529
6546
  pause() {
6530
- v(), _.value = !1;
6547
+ p(), _.value = !1;
6531
6548
  },
6532
6549
  resume() {
6533
6550
  _.value = !0;
@@ -6536,7 +6553,7 @@ function cu(s, e, t = {}) {
6536
6553
  };
6537
6554
  }
6538
6555
  const du = {
6539
- class: /* @__PURE__ */ K(["ao-list-kanban"])
6556
+ class: /* @__PURE__ */ F(["ao-list-kanban"])
6540
6557
  }, pu = { class: "ao-list-kanban__header" }, vu = {
6541
6558
  key: 0,
6542
6559
  class: "ao-list-kanban__end ao-list-kanban__end--loading"
@@ -6552,7 +6569,7 @@ const du = {
6552
6569
  }, hu = {
6553
6570
  key: 1,
6554
6571
  class: "ao-list-kanban__footer"
6555
- }, fu = /* @__PURE__ */ G({
6572
+ }, fu = /* @__PURE__ */ K({
6556
6573
  __name: "AoListKanban",
6557
6574
  props: {
6558
6575
  list: {},
@@ -6568,7 +6585,7 @@ const du = {
6568
6585
  const t = s, n = x(!1), a = x(null);
6569
6586
  cu(a, ([{ isIntersecting: d }]) => {
6570
6587
  n.value = d;
6571
- }), pe(n, (d) => {
6588
+ }), de(n, (d) => {
6572
6589
  d && t.hasMore && !t.isLoading && e("loadMore");
6573
6590
  });
6574
6591
  const i = (d) => {
@@ -6591,38 +6608,38 @@ const du = {
6591
6608
  };
6592
6609
  return (d, c) => (u(), C("div", du, [
6593
6610
  d.title || d.$slots.header ? Y(d.$slots, "header", { key: 0 }, () => {
6594
- var v;
6611
+ var p;
6595
6612
  return [
6596
6613
  r("div", pu, [
6597
- d.title ? (u(), j(eu, {
6614
+ d.title ? (u(), N(eu, {
6598
6615
  key: 0,
6599
6616
  title: d.title,
6600
6617
  level: 3,
6601
- items: (v = d.list) == null ? void 0 : v.length
6618
+ items: (p = d.list) == null ? void 0 : p.length
6602
6619
  }, null, 8, ["title", "items"])) : w("", !0)
6603
6620
  ])
6604
6621
  ];
6605
6622
  }) : w("", !0),
6606
- b(B(a1), Ee({
6623
+ b(O(a1), Ee({
6607
6624
  class: "ao-list-kanban__list",
6608
6625
  list: d.list,
6609
6626
  "item-key": "id",
6610
6627
  group: "kanban"
6611
6628
  }, d.$attrs, { onChange: o }), {
6612
- item: R(({ element: v }) => {
6613
- var _, h, $;
6629
+ item: R(({ element: p }) => {
6630
+ var _, m, $;
6614
6631
  return [
6615
6632
  b(_t, {
6616
- id: v.id,
6617
- name: v.name,
6618
- rules: ((_ = v.rules) == null ? void 0 : _.length) || 0,
6619
- subtasks: v.tasks,
6620
- description: v.description,
6621
- "is-important": v.important,
6622
- type: v.type,
6623
- comments: (h = v.comments) == null ? void 0 : h.length,
6624
- attachments: ($ = v.attachments) == null ? void 0 : $.length,
6625
- onClick: () => i(v.id),
6633
+ id: p.id,
6634
+ name: p.name,
6635
+ rules: ((_ = p.rules) == null ? void 0 : _.length) || 0,
6636
+ subtasks: p.tasks,
6637
+ description: p.description,
6638
+ "is-important": p.important,
6639
+ type: p.type,
6640
+ comments: (m = p.comments) == null ? void 0 : m.length,
6641
+ attachments: ($ = p.attachments) == null ? void 0 : $.length,
6642
+ onClick: () => i(p.id),
6626
6643
  onUpdateActivity: l
6627
6644
  }, {
6628
6645
  secondary: R(() => [
@@ -6632,7 +6649,7 @@ const du = {
6632
6649
  "icon-name": "ArchiveOutlineRounded",
6633
6650
  size: "sm",
6634
6651
  corners: "round",
6635
- onClick: ke(() => d.$emit("archiveActivity", v.id), ["stop"])
6652
+ onClick: ke(() => d.$emit("archiveActivity", p.id), ["stop"])
6636
6653
  }, null, 8, ["onClick"])
6637
6654
  ]),
6638
6655
  _: 2
@@ -6648,7 +6665,7 @@ const du = {
6648
6665
  ref: a,
6649
6666
  class: "ao-list-kanban__end"
6650
6667
  }, null, 512)) : (u(), C("div", Cu, [
6651
- d.noMoreLabel ? (u(), C("span", _u, N(d.noMoreLabel), 1)) : (u(), C("span", mu))
6668
+ d.noMoreLabel ? (u(), C("span", _u, j(d.noMoreLabel), 1)) : (u(), C("span", mu))
6652
6669
  ]))
6653
6670
  ]),
6654
6671
  _: 1
@@ -6658,14 +6675,14 @@ const du = {
6658
6675
  b(Be, {
6659
6676
  "icon-name": "AddBoxOutlineRounded",
6660
6677
  label: d.footerLabel,
6661
- onClick: c[0] || (c[0] = (v) => d.$emit("add"))
6678
+ onClick: c[0] || (c[0] = (p) => d.$emit("add"))
6662
6679
  }, null, 8, ["label"])
6663
6680
  ])
6664
6681
  ])) : w("", !0)
6665
6682
  ]));
6666
6683
  }
6667
6684
  });
6668
- const gu = { class: "ao-field ao-search-field" }, yu = ["value", "placeholder", "onKeypress"], bu = /* @__PURE__ */ G({
6685
+ const gu = { class: "ao-field ao-search-field" }, yu = ["value", "placeholder", "onKeypress"], bu = /* @__PURE__ */ K({
6669
6686
  __name: "AoSearchField",
6670
6687
  props: {
6671
6688
  modelValue: {},
@@ -6687,19 +6704,19 @@ const gu = { class: "ao-field ao-search-field" }, yu = ["value", "placeholder",
6687
6704
  class: "ao-field__input ao-search-field__input",
6688
6705
  placeholder: l.placeholder,
6689
6706
  onInput: o[0] || (o[0] = //@ts-ignore
6690
- (...d) => B(a) && B(a)(...d)),
6707
+ (...d) => O(a) && O(a)(...d)),
6691
6708
  onKeypress: t1(n, ["enter"])
6692
6709
  }, null, 40, yu),
6693
6710
  b(ne, {
6694
6711
  name: "SearchRounded",
6695
- class: K(`ao-search-field__icon ao-search-field__action ${l.modelValue ? "" : "ao-search-field__action--visible"}`)
6712
+ class: F(`ao-search-field__icon ao-search-field__action ${l.modelValue ? "" : "ao-search-field__action--visible"}`)
6696
6713
  }, null, 8, ["class"]),
6697
6714
  b(ue, {
6698
6715
  "icon-name": "CloseRounded",
6699
6716
  size: "sm",
6700
6717
  color: "primary",
6701
6718
  corners: "round",
6702
- class: K(`ao-search-field__button ao-search-field__action ${l.modelValue ? "ao-search-field__action--visible" : ""}`),
6719
+ class: F(`ao-search-field__button ao-search-field__action ${l.modelValue ? "ao-search-field__action--visible" : ""}`),
6703
6720
  onClick: i
6704
6721
  }, null, 8, ["class"])
6705
6722
  ]));
@@ -6724,7 +6741,7 @@ function Mu(s) {
6724
6741
  const e = $u(s);
6725
6742
  return Wt(wu, e), e;
6726
6743
  }
6727
- const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { class: "ao-feed__body" }, Su = { class: "ao-field" }, Vu = { class: "ao-field__label" }, Lu = { class: "ao-fieldset" }, Tu = { class: "ao-field" }, Eu = { class: "ao-field__label" }, Hu = { class: "ao-fieldset" }, Ou = { class: "ao-fieldset__title" }, Fu = /* @__PURE__ */ G({
6744
+ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { class: "ao-feed__body" }, Su = { class: "ao-field" }, Vu = { class: "ao-field__label" }, Lu = { class: "ao-fieldset" }, Tu = { class: "ao-field" }, Eu = { class: "ao-field__label" }, Hu = { class: "ao-fieldset" }, Ou = { class: "ao-fieldset__title" }, Fu = /* @__PURE__ */ K({
6728
6745
  __name: "AoFeed",
6729
6746
  props: {
6730
6747
  activities: {},
@@ -6739,42 +6756,42 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6739
6756
  emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "update:searchText", "clear:searchText", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
6740
6757
  setup(s, { emit: e }) {
6741
6758
  const t = s, { t: n } = i1(), a = Qe(t, "activities"), { selectActivity: i, selectedActivity: l } = Mu(a), o = x({});
6742
- pe(
6759
+ de(
6743
6760
  [() => t.statuses, () => t.activities],
6744
6761
  ([A, W]) => {
6745
6762
  o.value = Object.fromEntries(
6746
- A.map((he) => [
6747
- he.id,
6748
- W.filter((g) => g.status.id === he.id)
6763
+ A.map((me) => [
6764
+ me.id,
6765
+ W.filter((g) => g.status.id === me.id)
6749
6766
  ])
6750
6767
  );
6751
6768
  },
6752
6769
  { immediate: !0 }
6753
6770
  );
6754
6771
  const d = (A) => {
6755
- var T, q;
6756
- const W = (T = t.activities) == null ? void 0 : T.at(-1), he = W ? fe.LexoRank.parse(W.rank).genNext() : fe.LexoRank.middle(), g = ((q = t.activities) == null ? void 0 : q.length) ?? 0, O = {
6772
+ var T, G;
6773
+ const W = (T = t.activities) == null ? void 0 : T.at(-1), me = W ? be.LexoRank.parse(W.rank).genNext() : be.LexoRank.middle(), g = ((G = t.activities) == null ? void 0 : G.length) ?? 0, D = {
6757
6774
  name: n("activity.defaultName", { idx: g + 1 }),
6758
- rank: he.format(),
6775
+ rank: me.format(),
6759
6776
  statusId: A.id
6760
6777
  };
6761
- e("addActivity", O);
6778
+ e("addActivity", D);
6762
6779
  }, c = (A, W) => {
6763
6780
  e("update:filters", { ...t.filters, [A]: W });
6764
- }, v = f(() => t.projects.map((A) => ({
6781
+ }, p = f(() => t.projects.map((A) => ({
6765
6782
  value: A.id,
6766
6783
  label: A.name
6767
6784
  }))), _ = f(() => t.activityTypes.map((A) => ({
6768
6785
  value: A.id,
6769
6786
  label: A.name
6770
- }))), h = f(() => t.users.map((A) => ({
6787
+ }))), m = f(() => t.users.map((A) => ({
6771
6788
  value: A.id,
6772
6789
  label: `${A.firstName} ${A.lastName}`
6773
6790
  }))), $ = (A) => {
6774
6791
  l.value && e("update:activity", A);
6775
6792
  }, V = (A) => {
6776
6793
  e("update:activity", A);
6777
- }, E = x(null), I = (A) => {
6794
+ }, E = x(null), k = (A) => {
6778
6795
  l.value && e("update:activity", {
6779
6796
  id: l.value.id,
6780
6797
  name: A
@@ -6792,13 +6809,13 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6792
6809
  deadline: A
6793
6810
  });
6794
6811
  }
6795
- }), D = (A) => {
6812
+ }), B = (A) => {
6796
6813
  e("clear:searchText", A);
6797
6814
  }, ee = (A) => {
6798
6815
  l.value && e("addSubtask", A);
6799
6816
  }, te = (A) => {
6800
6817
  l.value && e("updateSubtask", A);
6801
- }, m = (A) => {
6818
+ }, h = (A) => {
6802
6819
  l.value && e("deleteSubtask", A);
6803
6820
  }, H = (A) => {
6804
6821
  e("addFiles", A);
@@ -6809,10 +6826,10 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6809
6826
  activityId: l.value.id,
6810
6827
  comment: A
6811
6828
  });
6812
- }, oe = (A) => {
6829
+ }, re = (A) => {
6813
6830
  const { id: W } = l.value || {};
6814
6831
  W && e("updateComment", { ...A, activityId: W });
6815
- }, me = (A) => {
6832
+ }, _e = (A) => {
6816
6833
  const { id: W } = l.value || {};
6817
6834
  W && e("removeComment", { id: A, activityId: W });
6818
6835
  }, Z = f(() => t.statuses.map((A) => ({
@@ -6825,7 +6842,7 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6825
6842
  });
6826
6843
  };
6827
6844
  return (A, W) => {
6828
- var he;
6845
+ var me;
6829
6846
  return u(), C("div", Au, [
6830
6847
  b(M1, null, {
6831
6848
  primary: R(() => [
@@ -6833,44 +6850,44 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6833
6850
  "model-value": A.searchText,
6834
6851
  placeholder: A.$t("feed.search.placeholder"),
6835
6852
  "onUpdate:modelValue": W[0] || (W[0] = (g) => A.$emit("update:searchText", g)),
6836
- onClear: D
6853
+ onClear: B
6837
6854
  }, null, 8, ["model-value", "placeholder"]),
6838
6855
  r("div", ku, [
6839
- b(B(Ce), {
6840
- "model-value": A.filters[B(Re).project],
6856
+ b(O(ve), {
6857
+ "model-value": A.filters[O(Re).project],
6841
6858
  mode: "tags",
6842
- options: v.value,
6859
+ options: p.value,
6843
6860
  "close-on-select": !1,
6844
6861
  searchable: !0,
6845
6862
  class: "ao-feed__filter",
6846
6863
  placeholder: A.$t("feed.filters.project.placeholder"),
6847
- "onUpdate:modelValue": W[1] || (W[1] = (g) => c(B(Re).project, g))
6864
+ "onUpdate:modelValue": W[1] || (W[1] = (g) => c(O(Re).project, g))
6848
6865
  }, null, 8, ["model-value", "options", "placeholder"]),
6849
- b(B(Ce), {
6850
- "model-value": A.filters[B(Re).type],
6866
+ b(O(ve), {
6867
+ "model-value": A.filters[O(Re).type],
6851
6868
  mode: "tags",
6852
6869
  options: _.value,
6853
6870
  "close-on-select": !1,
6854
6871
  searchable: !0,
6855
6872
  class: "ao-feed__filter",
6856
6873
  placeholder: A.$t("feed.filters.activityType.placeholder"),
6857
- "onUpdate:modelValue": W[2] || (W[2] = (g) => c(B(Re).type, g))
6874
+ "onUpdate:modelValue": W[2] || (W[2] = (g) => c(O(Re).type, g))
6858
6875
  }, null, 8, ["model-value", "options", "placeholder"]),
6859
- b(B(Ce), {
6860
- "model-value": A.filters[B(Re).assignee],
6876
+ b(O(ve), {
6877
+ "model-value": A.filters[O(Re).assignee],
6861
6878
  mode: "tags",
6862
- options: h.value,
6879
+ options: m.value,
6863
6880
  "close-on-select": !1,
6864
6881
  searchable: !0,
6865
6882
  class: "ao-feed__filter",
6866
6883
  placeholder: A.$t("feed.filters.assignee.placeholder"),
6867
- "onUpdate:modelValue": W[3] || (W[3] = (g) => c(B(Re).assignee, g))
6884
+ "onUpdate:modelValue": W[3] || (W[3] = (g) => c(O(Re).assignee, g))
6868
6885
  }, {
6869
- tag: R(({ option: g, handleTagRemove: O }) => [
6886
+ tag: R(({ option: g, handleTagRemove: D }) => [
6870
6887
  b(Ke, {
6871
6888
  "user-name": g.label,
6872
6889
  "is-closable": !0,
6873
- onClose: (T) => O(g, T)
6890
+ onClose: (T) => D(g, T)
6874
6891
  }, null, 8, ["user-name", "onClose"])
6875
6892
  ]),
6876
6893
  _: 1
@@ -6880,31 +6897,31 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6880
6897
  _: 1
6881
6898
  }),
6882
6899
  r("div", Iu, [
6883
- (u(!0), C(le, null, ve(A.statuses, (g) => (u(), j(fu, {
6900
+ (u(!0), C(le, null, pe(A.statuses, (g) => (u(), N(fu, {
6884
6901
  key: g.id,
6885
6902
  status: g,
6886
6903
  list: o.value[g.id],
6887
6904
  title: g.name,
6888
6905
  "footer-label": A.$t("feed.activity.add"),
6889
6906
  onAdd: () => d(g),
6890
- onSelectActivity: B(i),
6907
+ onSelectActivity: O(i),
6891
6908
  onArchiveActivity: M,
6892
6909
  onUpdateActivity: V
6893
6910
  }, null, 8, ["status", "list", "title", "footer-label", "onAdd", "onSelectActivity"]))), 128))
6894
6911
  ]),
6895
- (u(), j(C1, { to: "body" }, [
6896
- B(l) ? (u(), j(R1, {
6912
+ (u(), N(C1, { to: "body" }, [
6913
+ O(l) ? (u(), N(R1, {
6897
6914
  key: 0,
6898
- activity: B(l),
6915
+ activity: O(l),
6899
6916
  "activity-types": _.value,
6900
- "milestone-id": (he = B(l).milestone) == null ? void 0 : he.id,
6917
+ "milestone-id": (me = O(l).milestone) == null ? void 0 : me.id,
6901
6918
  "template-activities": a.value,
6902
6919
  users: A.users,
6903
- onClose: W[5] || (W[5] = () => B(i)(null)),
6920
+ onClose: W[5] || (W[5] = () => O(i)(null)),
6904
6921
  "onUpdate:activity": $,
6905
6922
  onAddSubtask: ee,
6906
6923
  onUpdateSubtask: te,
6907
- onDeleteSubtask: m,
6924
+ onDeleteSubtask: h,
6908
6925
  onAddFiles: H,
6909
6926
  onRemoveFile: U
6910
6927
  }, {
@@ -6912,16 +6929,16 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6912
6929
  b(ce, {
6913
6930
  ref_key: "target",
6914
6931
  ref: E,
6915
- title: B(l).name || B(l).id,
6932
+ title: O(l).name || O(l).id,
6916
6933
  level: 4,
6917
6934
  "is-editable": !0,
6918
- "onUpdate:title": I
6935
+ "onUpdate:title": k
6919
6936
  }, null, 8, ["title"]),
6920
6937
  r("label", Su, [
6921
- r("span", Vu, N(A.$t("activity.status.label")), 1),
6922
- b(B(Ce), {
6938
+ r("span", Vu, j(A.$t("activity.status.label")), 1),
6939
+ b(O(ve), {
6923
6940
  options: Z.value,
6924
- value: B(l).status.id,
6941
+ value: O(l).status.id,
6925
6942
  onChange: X
6926
6943
  }, null, 8, ["options", "value"])
6927
6944
  ])
@@ -6929,7 +6946,7 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6929
6946
  default: R(() => [
6930
6947
  r("fieldset", Lu, [
6931
6948
  r("label", Tu, [
6932
- r("span", Eu, N(A.$t("activity.endDate.label")), 1),
6949
+ r("span", Eu, j(A.$t("activity.endDate.label")), 1),
6933
6950
  Ue(r("input", {
6934
6951
  "onUpdate:modelValue": W[4] || (W[4] = (g) => y.value = g),
6935
6952
  class: "ao-field__input",
@@ -6953,12 +6970,12 @@ const Au = { class: "ao-feed" }, ku = { class: "ao-feed__filters" }, Iu = { clas
6953
6970
  }, null, 8, ["title"])
6954
6971
  ]),
6955
6972
  b(mt, {
6956
- comments: B(l).comments,
6973
+ comments: O(l).comments,
6957
6974
  users: A.users,
6958
6975
  "user-id": A.userId,
6959
6976
  onCreateComment: se,
6960
- onUpdateComment: oe,
6961
- onRemoveComment: me
6977
+ onUpdateComment: re,
6978
+ onRemoveComment: _e
6962
6979
  }, null, 8, ["comments", "users", "user-id"])
6963
6980
  ])
6964
6981
  ]),
@@ -6986,6 +7003,6 @@ export {
6986
7003
  m7 as ruleComparators,
6987
7004
  f7 as ruleDurationUnits,
6988
7005
  h7 as ruleTriggerTypes,
6989
- re as templateItemType,
7006
+ oe as templateItemType,
6990
7007
  xe as templateRouteNames
6991
7008
  };