@26lights/orcha 0.41.95 → 0.41.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/orcha.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as x, openBlock as p, createBlock as D, unref as J, mergeProps as Me, createElementBlock as C, createElementVNode as f, pushScopeId as Do, popScopeId as Bo, createStaticVNode as Ro, computed as M, resolveDynamicComponent as mt, normalizeClass as Q, renderSlot as ae, toDisplayString as Y, createCommentVNode as E, ref as q, watch as ce, nextTick as $e, withKeys as pt, toHandlers as jo, withCtx as F, createTextVNode as qa, createVNode as T, normalizeStyle as We, withModifiers as ve, createSlots as fa, Fragment as fe, renderList as Ce, onMounted as It, onBeforeUnmount as Ts, onUnmounted as Os, Teleport as Tt, toRefs as Ee, getCurrentInstance as Lt, toRef as jt, normalizeProps as ha, guardReactiveProps as ma, withDirectives as De, vShow as No, onUpdated as Uo, vModelText as Ze, resolveComponent as ut, vModelCheckbox as Fo, getCurrentScope as Zo, onScopeDispose as Wo, toHandlerKey as zo } from "vue";
1
+ import { defineComponent as x, openBlock as p, createBlock as B, unref as J, mergeProps as Me, createElementBlock as C, createElementVNode as f, pushScopeId as Do, popScopeId as Bo, createStaticVNode as Ro, computed as M, resolveDynamicComponent as mt, normalizeClass as Q, renderSlot as ae, toDisplayString as Y, createCommentVNode as E, ref as q, watch as ce, nextTick as $e, withKeys as pt, toHandlers as jo, withCtx as F, createTextVNode as qa, createVNode as T, normalizeStyle as We, withModifiers as ve, createSlots as fa, Fragment as fe, renderList as Ce, onMounted as It, onBeforeUnmount as Ts, onUnmounted as Os, Teleport as Tt, toRefs as Ee, getCurrentInstance as Lt, toRef as jt, normalizeProps as ha, guardReactiveProps as ma, withDirectives as De, vShow as No, onUpdated as Uo, vModelText as Ze, resolveComponent as ut, vModelCheckbox as Fo, getCurrentScope as Zo, onScopeDispose as Wo, toHandlerKey as zo } from "vue";
2
2
  import { RouterView as qo, useRoute as Yo, useRouter as Es } from "vue-router";
3
3
  import gt from "vuedraggable";
4
4
  const a8 = /* @__PURE__ */ x({
@@ -7,7 +7,7 @@ const a8 = /* @__PURE__ */ x({
7
7
  templates: {}
8
8
  },
9
9
  setup(t) {
10
- return (e, a) => (p(), D(J(qo), Me({ templates: e.templates }, e.$attrs), null, 16, ["templates"]));
10
+ return (e, a) => (p(), B(J(qo), Me({ templates: e.templates }, e.$attrs), null, 16, ["templates"]));
11
11
  }
12
12
  }), W = (t, e) => {
13
13
  const a = t.__vccOpts || t;
@@ -1168,7 +1168,7 @@ const Pn = {
1168
1168
  },
1169
1169
  setup(t) {
1170
1170
  const e = t, a = M(() => L2[e.name]);
1171
- return (s, n) => (p(), D(mt(a.value), {
1171
+ return (s, n) => (p(), B(mt(a.value), {
1172
1172
  class: Q(["ao-icon", `ao-icon--${s.size}`])
1173
1173
  }, null, 8, ["class"]));
1174
1174
  }
@@ -1208,7 +1208,7 @@ const D2 = ["type"], B2 = {
1208
1208
  ae(n.$slots, "default", {}, () => [
1209
1209
  n.label ? (p(), C("span", B2, Y(n.label), 1)) : E("", !0)
1210
1210
  ]),
1211
- s.value ? (p(), D(pe, {
1211
+ s.value ? (p(), B(pe, {
1212
1212
  key: 0,
1213
1213
  name: s.value,
1214
1214
  class: "ao-button__icon",
@@ -1280,7 +1280,7 @@ const be = /* @__PURE__ */ x({
1280
1280
  (_) => {
1281
1281
  _ || c();
1282
1282
  }
1283
- ), (_, g) => (p(), D(mt(r.value), Me({
1283
+ ), (_, g) => (p(), B(mt(r.value), Me({
1284
1284
  id: _.id,
1285
1285
  ref_key: "target",
1286
1286
  ref: s,
@@ -1346,7 +1346,7 @@ const R2 = {
1346
1346
  const a = (s) => {
1347
1347
  e("update:title", s);
1348
1348
  };
1349
- return (s, n) => (p(), D(mt(s.tagName), {
1349
+ return (s, n) => (p(), B(mt(s.tagName), {
1350
1350
  class: Q(["ao-card-horiz", { "ao-card-horiz--active": s.isActive }])
1351
1351
  }, {
1352
1352
  default: F(() => [
@@ -1421,12 +1421,12 @@ const ra = /* @__PURE__ */ x({
1421
1421
  ]),
1422
1422
  style: We(n.rawColor ? { "--ao-tag-bg": n.rawColor } : {})
1423
1423
  }, [
1424
- (p(), D(mt(a.value), Me({ class: "ao-tag__label" }, s.value, {
1424
+ (p(), B(mt(a.value), Me({ class: "ao-tag__label" }, s.value, {
1425
1425
  onClick: i[0] || (i[0] = (o) => n.$emit("click", o))
1426
1426
  }), {
1427
1427
  default: F(() => [
1428
1428
  qa(Y(n.label) + " ", 1),
1429
- n.variant === J(V2).SOLID_ICON && n.iconName ? (p(), D(pe, {
1429
+ n.variant === J(V2).SOLID_ICON && n.iconName ? (p(), B(pe, {
1430
1430
  key: 0,
1431
1431
  name: n.iconName,
1432
1432
  class: "ao-tag__icon",
@@ -2736,15 +2736,15 @@ var o3 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, i3 = /P+p+|P+|
2736
2736
  function Zn(t, e, a) {
2737
2737
  var s, n, i, o, l, r, d, u, c, v, h, w, _, g, $, b, m, I;
2738
2738
  _e(2, arguments);
2739
- var P = String(e), A = ga(), B = (s = (n = a == null ? void 0 : a.locale) !== null && n !== void 0 ? n : A.locale) !== null && s !== void 0 ? s : Fn, R = Je((i = (o = (l = (r = a == null ? void 0 : a.firstWeekContainsDate) !== null && r !== void 0 ? r : a == null || (d = a.locale) === null || d === void 0 || (u = d.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && l !== void 0 ? l : A.firstWeekContainsDate) !== null && o !== void 0 ? o : (c = A.locale) === null || c === void 0 || (v = c.options) === null || v === void 0 ? void 0 : v.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
2739
+ var P = String(e), S = ga(), D = (s = (n = a == null ? void 0 : a.locale) !== null && n !== void 0 ? n : S.locale) !== null && s !== void 0 ? s : Fn, R = Je((i = (o = (l = (r = a == null ? void 0 : a.firstWeekContainsDate) !== null && r !== void 0 ? r : a == null || (d = a.locale) === null || d === void 0 || (u = d.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && l !== void 0 ? l : S.firstWeekContainsDate) !== null && o !== void 0 ? o : (c = S.locale) === null || c === void 0 || (v = c.options) === null || v === void 0 ? void 0 : v.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
2740
2740
  if (!(R >= 1 && R <= 7))
2741
2741
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
2742
- var Z = Je((h = (w = (_ = (g = a == null ? void 0 : a.weekStartsOn) !== null && g !== void 0 ? g : a == null || ($ = a.locale) === null || $ === void 0 || (b = $.options) === null || b === void 0 ? void 0 : b.weekStartsOn) !== null && _ !== void 0 ? _ : A.weekStartsOn) !== null && w !== void 0 ? w : (m = A.locale) === null || m === void 0 || (I = m.options) === null || I === void 0 ? void 0 : I.weekStartsOn) !== null && h !== void 0 ? h : 0);
2742
+ var Z = Je((h = (w = (_ = (g = a == null ? void 0 : a.weekStartsOn) !== null && g !== void 0 ? g : a == null || ($ = a.locale) === null || $ === void 0 || (b = $.options) === null || b === void 0 ? void 0 : b.weekStartsOn) !== null && _ !== void 0 ? _ : S.weekStartsOn) !== null && w !== void 0 ? w : (m = S.locale) === null || m === void 0 || (I = m.options) === null || I === void 0 ? void 0 : I.weekStartsOn) !== null && h !== void 0 ? h : 0);
2743
2743
  if (!(Z >= 0 && Z <= 6))
2744
2744
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
2745
- if (!B.localize)
2745
+ if (!D.localize)
2746
2746
  throw new RangeError("locale must contain localize property");
2747
- if (!B.formatLong)
2747
+ if (!D.formatLong)
2748
2748
  throw new RangeError("locale must contain formatLong property");
2749
2749
  var K = ke(t);
2750
2750
  if (!Rn(K))
@@ -2752,13 +2752,13 @@ function Zn(t, e, a) {
2752
2752
  var te = ua(K), N = ws(K, te), G = {
2753
2753
  firstWeekContainsDate: R,
2754
2754
  weekStartsOn: Z,
2755
- locale: B,
2755
+ locale: D,
2756
2756
  _originalDate: K
2757
2757
  }, ie = P.match(i3).map(function(se) {
2758
2758
  var ee = se[0];
2759
2759
  if (ee === "p" || ee === "P") {
2760
2760
  var L = m0[ee];
2761
- return L(se, B.formatLong);
2761
+ return L(se, D.formatLong);
2762
2762
  }
2763
2763
  return se;
2764
2764
  }).join("").match(o3).map(function(se) {
@@ -2769,7 +2769,7 @@ function Zn(t, e, a) {
2769
2769
  return c3(se);
2770
2770
  var L = v0[ee];
2771
2771
  if (L)
2772
- return !(a != null && a.useAdditionalWeekYearTokens) && y0(se) && mn(se, e, String(t)), !(a != null && a.useAdditionalDayOfYearTokens) && _0(se) && mn(se, e, String(t)), L(N, se, B.localize, G);
2772
+ return !(a != null && a.useAdditionalWeekYearTokens) && y0(se) && mn(se, e, String(t)), !(a != null && a.useAdditionalDayOfYearTokens) && _0(se) && mn(se, e, String(t)), L(N, se, D.localize, G);
2773
2773
  if (ee.match(u3))
2774
2774
  throw new RangeError("Format string contains an unescaped latin alphabet character `" + ee + "`");
2775
2775
  return se;
@@ -2795,11 +2795,11 @@ function d3(t, e, a) {
2795
2795
  throw new RangeError("Invalid time value");
2796
2796
  var m;
2797
2797
  b < -6 ? m = "other" : b < -1 ? m = "lastWeek" : b < 0 ? m = "yesterday" : b < 1 ? m = "today" : b < 2 ? m = "tomorrow" : b < 7 ? m = "nextWeek" : m = "other";
2798
- var I = ws(h, ua(h)), P = ws(w, ua(w)), A = g.formatRelative(m, I, P, {
2798
+ var I = ws(h, ua(h)), P = ws(w, ua(w)), S = g.formatRelative(m, I, P, {
2799
2799
  locale: g,
2800
2800
  weekStartsOn: $
2801
2801
  });
2802
- return Zn(h, A, {
2802
+ return Zn(h, S, {
2803
2803
  locale: g,
2804
2804
  weekStartsOn: $
2805
2805
  });
@@ -3753,7 +3753,7 @@ const U3 = ["title"], F3 = {
3753
3753
  className: "ao-avatar__image",
3754
3754
  src: o.avatarUrl
3755
3755
  }, null, 8, Z3)) : E("", !0),
3756
- o.isClosable ? (p(), D(re, {
3756
+ o.isClosable ? (p(), B(re, {
3757
3757
  key: 2,
3758
3758
  "icon-name": "CloseRounded",
3759
3759
  class: "ao-avatar__close",
@@ -3794,7 +3794,7 @@ const W3 = { class: "ao-card-template__subitems" }, z3 = { class: "ao-card-templ
3794
3794
  var l;
3795
3795
  return ((l = a.phases) == null ? void 0 : l.slice(0, _s)) ?? [];
3796
3796
  }), o = M(() => a.phases && a.phases.length > _s ? a.phases.length - _s : 0);
3797
- return (l, r) => (p(), D(Vn, {
3797
+ return (l, r) => (p(), B(Vn, {
3798
3798
  id: l.id,
3799
3799
  title: l.title,
3800
3800
  "is-draggable": !0,
@@ -3829,13 +3829,13 @@ const W3 = { class: "ao-card-template__subitems" }, z3 = { class: "ao-card-templ
3829
3829
  f("span", Q3, Y(l.$t("template.phases.title")), 1)
3830
3830
  ]),
3831
3831
  l.phases ? (p(), C("ul", J3, [
3832
- (p(!0), C(fe, null, Ce(i.value, (d) => (p(), D(ra, {
3832
+ (p(!0), C(fe, null, Ce(i.value, (d) => (p(), B(ra, {
3833
3833
  key: d.id,
3834
3834
  label: d.name || d.id,
3835
3835
  color: "primary",
3836
3836
  variant: "solid"
3837
3837
  }, null, 8, ["label"]))), 128)),
3838
- o.value > 0 ? (p(), D(ra, {
3838
+ o.value > 0 ? (p(), B(ra, {
3839
3839
  key: 0,
3840
3840
  label: `+${o.value} more`,
3841
3841
  color: "primary-lighter",
@@ -3897,7 +3897,7 @@ const d5 = { class: "ao-page-header" }, p5 = { class: "ao-page-header-main" }, v
3897
3897
  setup(t) {
3898
3898
  return (e, a) => (p(), C("header", d5, [
3899
3899
  f("div", p5, [
3900
- e.canGoBack ? (p(), D(re, {
3900
+ e.canGoBack ? (p(), B(re, {
3901
3901
  key: 0,
3902
3902
  "icon-name": "ArrowBackRounded",
3903
3903
  variant: "ghost",
@@ -3940,7 +3940,7 @@ const f5 = ["type"], h5 = {
3940
3940
  ae(n.$slots, "default", {}, () => [
3941
3941
  n.label ? (p(), C("span", h5, Y(n.label), 1)) : E("", !0)
3942
3942
  ]),
3943
- s.value ? (p(), D(pe, {
3943
+ s.value ? (p(), B(pe, {
3944
3944
  key: 0,
3945
3945
  name: s.value,
3946
3946
  class: "ao-button-card__icon",
@@ -3972,7 +3972,7 @@ const m5 = { class: "ao-card-template-item__footer" }, g5 = {
3972
3972
  }, i = () => {
3973
3973
  e("remove");
3974
3974
  };
3975
- return (o, l) => (p(), D(Vn, { "onUpdate:title": a }, {
3975
+ return (o, l) => (p(), B(Vn, { "onUpdate:title": a }, {
3976
3976
  footer: F(() => [
3977
3977
  f("ul", m5, [
3978
3978
  (p(), C(fe, null, Ce(s, (r) => (p(), C(fe, { key: r }, [
@@ -4013,7 +4013,7 @@ const y5 = /* @__PURE__ */ x({
4013
4013
  var n;
4014
4014
  return (n = e.milestones) == null ? void 0 : n.length;
4015
4015
  }), s = M(() => e.milestones ? Kn(e.milestones) : 0);
4016
- return (n, i) => (p(), D(Vs, Me({
4016
+ return (n, i) => (p(), B(Vs, Me({
4017
4017
  id: n.id,
4018
4018
  title: n.name,
4019
4019
  activities: s.value,
@@ -4035,7 +4035,7 @@ const y5 = /* @__PURE__ */ x({
4035
4035
  var s;
4036
4036
  return ((s = e.activities) == null ? void 0 : s.length) || 0;
4037
4037
  });
4038
- return (s, n) => (p(), D(Vs, { activities: a.value }, {
4038
+ return (s, n) => (p(), B(Vs, { activities: a.value }, {
4039
4039
  default: F(() => [
4040
4040
  ae(s.$slots, "default")
4041
4041
  ]),
@@ -4066,7 +4066,7 @@ const y5 = /* @__PURE__ */ x({
4066
4066
  });
4067
4067
  }
4068
4068
  };
4069
- return (l, r) => l.phase ? (p(), D(J(gt), {
4069
+ return (l, r) => l.phase ? (p(), B(J(gt), {
4070
4070
  key: 0,
4071
4071
  "model-value": l.phase.milestones,
4072
4072
  class: "ao-templates__list",
@@ -4083,7 +4083,7 @@ const y5 = /* @__PURE__ */ x({
4083
4083
  })
4084
4084
  ]),
4085
4085
  item: F(({ element: d }) => [
4086
- (p(), D(b5, {
4086
+ (p(), B(b5, {
4087
4087
  id: d.id,
4088
4088
  key: d.id,
4089
4089
  title: d.name,
@@ -4122,7 +4122,7 @@ const y5 = /* @__PURE__ */ x({
4122
4122
  var s;
4123
4123
  return ((s = e.tasks) == null ? void 0 : s.length) || 0;
4124
4124
  });
4125
- return (s, n) => (p(), D(Vs, { tasks: a.value }, {
4125
+ return (s, n) => (p(), B(Vs, { tasks: a.value }, {
4126
4126
  default: F(() => [
4127
4127
  ae(s.$slots, "default")
4128
4128
  ]),
@@ -4156,7 +4156,7 @@ const y5 = /* @__PURE__ */ x({
4156
4156
  });
4157
4157
  }
4158
4158
  };
4159
- return (l, r) => l.milestone ? (p(), D(J(gt), {
4159
+ return (l, r) => l.milestone ? (p(), B(J(gt), {
4160
4160
  key: 0,
4161
4161
  "model-value": l.milestone.activities,
4162
4162
  title: l.$t("template.activities.title"),
@@ -4173,7 +4173,7 @@ const y5 = /* @__PURE__ */ x({
4173
4173
  })
4174
4174
  ]),
4175
4175
  item: F(({ element: d }) => [
4176
- (p(), D(k5, {
4176
+ (p(), B(k5, {
4177
4177
  id: d.id,
4178
4178
  key: d.id,
4179
4179
  title: d.name,
@@ -4515,16 +4515,16 @@ const Z5 = function(t) {
4515
4515
  return {};
4516
4516
  const $ = Zt(n), b = Zt(l) === l, m = await (r.isRTL == null ? void 0 : r.isRTL(d.floating)), I = v || (b || !_ ? [Fa(l)] : B5(l));
4517
4517
  !v && w !== "none" && I.push(...j5(l, _, w, m));
4518
- const P = [l, ...I], A = await Jn(e, g), B = [];
4518
+ const P = [l, ...I], S = await Jn(e, g), D = [];
4519
4519
  let R = ((s = i.flip) == null ? void 0 : s.overflows) || [];
4520
- if (u && B.push(A[$]), c) {
4520
+ if (u && D.push(S[$]), c) {
4521
4521
  const N = D5(n, o, m);
4522
- B.push(A[N[0]], A[N[1]]);
4522
+ D.push(S[N[0]], S[N[1]]);
4523
4523
  }
4524
4524
  if (R = [...R, {
4525
4525
  placement: n,
4526
- overflows: B
4527
- }], !B.every((N) => N <= 0)) {
4526
+ overflows: D
4527
+ }], !D.every((N) => N <= 0)) {
4528
4528
  var Z, K;
4529
4529
  const N = (((Z = i.flip) == null ? void 0 : Z.index) || 0) + 1, G = P[N];
4530
4530
  if (G)
@@ -4583,15 +4583,15 @@ const Z5 = function(t) {
4583
4583
  const g = h - r[w], $ = v - r[_], b = !e.middlewareData.shift;
4584
4584
  let m = g, I = $;
4585
4585
  if (c) {
4586
- const A = v - r.left - r.right;
4587
- I = u || b ? da($, A) : A;
4586
+ const S = v - r.left - r.right;
4587
+ I = u || b ? da($, S) : S;
4588
4588
  } else {
4589
- const A = h - r.top - r.bottom;
4590
- m = u || b ? da(g, A) : A;
4589
+ const S = h - r.top - r.bottom;
4590
+ m = u || b ? da(g, S) : S;
4591
4591
  }
4592
4592
  if (b && !u) {
4593
- const A = He(r.left, 0), B = He(r.right, 0), R = He(r.top, 0), Z = He(r.bottom, 0);
4594
- c ? I = v - 2 * (A !== 0 || B !== 0 ? A + B : He(r.left, r.right)) : m = h - 2 * (R !== 0 || Z !== 0 ? R + Z : He(r.top, r.bottom));
4593
+ const S = He(r.left, 0), D = He(r.right, 0), R = He(r.top, 0), Z = He(r.bottom, 0);
4594
+ c ? I = v - 2 * (S !== 0 || D !== 0 ? S + D : He(r.left, r.right)) : m = h - 2 * (R !== 0 || Z !== 0 ? R + Z : He(r.top, r.bottom));
4595
4595
  }
4596
4596
  await o({
4597
4597
  ...e,
@@ -4963,11 +4963,11 @@ function l7(t, e) {
4963
4963
  };
4964
4964
  let m = !0;
4965
4965
  function I(P) {
4966
- const A = P[0].intersectionRatio;
4967
- if (A !== r) {
4966
+ const S = P[0].intersectionRatio;
4967
+ if (S !== r) {
4968
4968
  if (!m)
4969
4969
  return o();
4970
- A ? o(!1, A) : s = setTimeout(() => {
4970
+ S ? o(!1, S) : s = setTimeout(() => {
4971
4971
  o(!1, 1e-7);
4972
4972
  }, 100);
4973
4973
  }
@@ -5195,8 +5195,8 @@ function g7(t, e, a) {
5195
5195
  filterResults: m,
5196
5196
  clearOnSearch: I,
5197
5197
  clearOnSelect: P,
5198
- valueProp: A,
5199
- allowAbsent: B,
5198
+ valueProp: S,
5199
+ allowAbsent: D,
5200
5200
  groupLabel: R,
5201
5201
  canDeselect: Z,
5202
5202
  max: K,
@@ -5215,46 +5215,46 @@ function g7(t, e, a) {
5215
5215
  searchFilter: le
5216
5216
  } = Ee(t), ne = Lt().proxy, z = a.iv, H = a.ev, X = a.search, he = a.clearSearch, Se = a.update, Gt = a.pointer, Xt = a.setPointer, nt = a.clearPointer, $a = a.focus, rs = a.deactivate, ot = a.close, ka = a.localize, it = q([]), Ue = q([]), Ie = q(!1), je = q(null), xe = q(ee.value && o.value === -1 ? 10 : o.value), Qt = M(() => r.value || d.value || !1), Sa = M(() => c.value !== void 0 ? c.value : v.value !== void 0 ? v.value : !0), Le = M(() => {
5217
5217
  if (ie.value) {
5218
- let S = bt.value || /* istanbul ignore next */
5218
+ let A = bt.value || /* istanbul ignore next */
5219
5219
  [], j = [];
5220
- return S.forEach((ue) => {
5220
+ return A.forEach((ue) => {
5221
5221
  hs(ue[L.value]).forEach((ge) => {
5222
5222
  j.push(Object.assign({}, ge, ue[y.value] ? { [y.value]: !0 } : {}));
5223
5223
  });
5224
5224
  }), j;
5225
5225
  } else {
5226
- let S = hs(Ue.value || /* istanbul ignore next */
5226
+ let A = hs(Ue.value || /* istanbul ignore next */
5227
5227
  []);
5228
- return it.value.length && (S = S.concat(it.value)), S;
5228
+ return it.value.length && (A = A.concat(it.value)), A;
5229
5229
  }
5230
5230
  }), Jt = M(() => {
5231
- let S = Le.value;
5232
- return se.value && (S = S.reverse()), Pt.value.length && (S = Pt.value.concat(S)), fs(S);
5231
+ let A = Le.value;
5232
+ return se.value && (A = A.reverse()), Pt.value.length && (A = Pt.value.concat(A)), fs(A);
5233
5233
  }), lt = M(() => {
5234
- let S = Jt.value;
5235
- return xe.value > 0 && (S = S.slice(0, xe.value)), S;
5234
+ let A = Jt.value;
5235
+ return xe.value > 0 && (A = A.slice(0, xe.value)), A;
5236
5236
  }), bt = M(() => {
5237
5237
  if (!ie.value)
5238
5238
  return [];
5239
- let S = [], j = Ue.value || /* istanbul ignore next */
5239
+ let A = [], j = Ue.value || /* istanbul ignore next */
5240
5240
  [];
5241
- return it.value.length && S.push({
5241
+ return it.value.length && A.push({
5242
5242
  [R.value]: " ",
5243
5243
  [L.value]: [...it.value],
5244
5244
  __CREATE__: !0
5245
- }), S.concat(j);
5245
+ }), A.concat(j);
5246
5246
  }), Aa = M(() => {
5247
- let S = [...bt.value].map((j) => ({ ...j }));
5248
- return Pt.value.length && (S[0] && S[0].__CREATE__ ? S[0][L.value] = [...Pt.value, ...S[0][L.value]] : S = [{
5247
+ let A = [...bt.value].map((j) => ({ ...j }));
5248
+ return Pt.value.length && (A[0] && A[0].__CREATE__ ? A[0][L.value] = [...Pt.value, ...A[0][L.value]] : A = [{
5249
5249
  [R.value]: " ",
5250
5250
  [L.value]: [...Pt.value],
5251
5251
  __CREATE__: !0
5252
- }].concat(S)), S;
5252
+ }].concat(A)), A;
5253
5253
  }), us = M(() => {
5254
5254
  if (!ie.value)
5255
5255
  return [];
5256
- let S = Aa.value;
5257
- return Po((S || /* istanbul ignore next */
5256
+ let A = Aa.value;
5257
+ return Po((A || /* istanbul ignore next */
5258
5258
  []).map((j, ue) => {
5259
5259
  const ge = hs(j[L.value]);
5260
5260
  return {
@@ -5268,13 +5268,13 @@ function g7(t, e, a) {
5268
5268
  }), cs = M(() => {
5269
5269
  switch (n.value) {
5270
5270
  case "single":
5271
- return !Fe(z.value[A.value]);
5271
+ return !Fe(z.value[S.value]);
5272
5272
  case "multiple":
5273
5273
  case "tags":
5274
5274
  return !Fe(z.value) && z.value.length > 0;
5275
5275
  }
5276
5276
  }), _o = M(() => h !== void 0 && h.value !== void 0 ? h.value(z.value, ne) : z.value && z.value.length > 1 ? `${z.value.length} options selected` : "1 option selected"), yo = M(() => !Le.value.length && !Ie.value && !Pt.value.length), bo = M(() => Le.value.length > 0 && lt.value.length == 0 && (X.value && ie.value || !ie.value)), Pt = M(() => Qt.value === !1 || !X.value ? [] : Eo(X.value) !== -1 ? [] : [{
5277
- [A.value]: X.value,
5277
+ [S.value]: X.value,
5278
5278
  [wt.value[0]]: X.value,
5279
5279
  [u.value]: X.value,
5280
5280
  __CREATE__: !0
@@ -5286,113 +5286,113 @@ function g7(t, e, a) {
5286
5286
  case "tags":
5287
5287
  return [];
5288
5288
  }
5289
- }), $o = M(() => _.value || Ie.value), Ht = (S) => {
5290
- switch (typeof S != "object" && (S = Ge(S)), n.value) {
5289
+ }), $o = M(() => _.value || Ie.value), Ht = (A) => {
5290
+ switch (typeof A != "object" && (A = Ge(A)), n.value) {
5291
5291
  case "single":
5292
- Se(S);
5292
+ Se(A);
5293
5293
  break;
5294
5294
  case "multiple":
5295
5295
  case "tags":
5296
- Se(z.value.concat(S));
5296
+ Se(z.value.concat(A));
5297
5297
  break;
5298
5298
  }
5299
- e.emit("select", nn(S), S, ne);
5300
- }, Vt = (S) => {
5301
- switch (typeof S != "object" && (S = Ge(S)), n.value) {
5299
+ e.emit("select", nn(A), A, ne);
5300
+ }, Vt = (A) => {
5301
+ switch (typeof A != "object" && (A = Ge(A)), n.value) {
5302
5302
  case "single":
5303
5303
  ln();
5304
5304
  break;
5305
5305
  case "tags":
5306
5306
  case "multiple":
5307
- Se(Array.isArray(S) ? z.value.filter((j) => S.map((ue) => ue[A.value]).indexOf(j[A.value]) === -1) : z.value.filter((j) => j[A.value] != S[A.value]));
5307
+ Se(Array.isArray(A) ? z.value.filter((j) => A.map((ue) => ue[S.value]).indexOf(j[S.value]) === -1) : z.value.filter((j) => j[S.value] != A[S.value]));
5308
5308
  break;
5309
5309
  }
5310
- e.emit("deselect", nn(S), S, ne);
5311
- }, nn = (S) => w.value ? S : S[A.value], on = (S) => {
5312
- Vt(S);
5313
- }, ko = (S, j) => {
5310
+ e.emit("deselect", nn(A), A, ne);
5311
+ }, nn = (A) => w.value ? A : A[S.value], on = (A) => {
5312
+ Vt(A);
5313
+ }, ko = (A, j) => {
5314
5314
  if (j.button !== 0) {
5315
5315
  j.preventDefault();
5316
5316
  return;
5317
5317
  }
5318
- on(S);
5318
+ on(A);
5319
5319
  }, ln = () => {
5320
5320
  Se(wo.value), e.emit("clear", ne);
5321
- }, Ke = (S) => {
5322
- if (S.group !== void 0)
5323
- return n.value === "single" ? !1 : Oo(S[L.value]) && S[L.value].length;
5321
+ }, Ke = (A) => {
5322
+ if (A.group !== void 0)
5323
+ return n.value === "single" ? !1 : Oo(A[L.value]) && A[L.value].length;
5324
5324
  switch (n.value) {
5325
5325
  case "single":
5326
- return !Fe(z.value) && z.value[A.value] == S[A.value];
5326
+ return !Fe(z.value) && z.value[S.value] == A[S.value];
5327
5327
  case "tags":
5328
5328
  case "multiple":
5329
- return !Fe(z.value) && z.value.map((j) => j[A.value]).indexOf(S[A.value]) !== -1;
5329
+ return !Fe(z.value) && z.value.map((j) => j[S.value]).indexOf(A[S.value]) !== -1;
5330
5330
  }
5331
- }, ds = (S) => S[y.value] === !0, ps = () => K === void 0 || K.value === -1 || !cs.value && K.value > 0 ? !1 : z.value.length >= K.value, So = (S) => {
5332
- if (!ds(S)) {
5333
- if (U && U.value && !Ke(S) && S.__CREATE__ && (S = { ...S }, delete S.__CREATE__, S = U.value(S, ne), S instanceof Promise)) {
5334
- Ie.value = !0, S.then((j) => {
5331
+ }, ds = (A) => A[y.value] === !0, ps = () => K === void 0 || K.value === -1 || !cs.value && K.value > 0 ? !1 : z.value.length >= K.value, So = (A) => {
5332
+ if (!ds(A)) {
5333
+ if (U && U.value && !Ke(A) && A.__CREATE__ && (A = { ...A }, delete A.__CREATE__, A = U.value(A, ne), A instanceof Promise)) {
5334
+ Ie.value = !0, A.then((j) => {
5335
5335
  Ie.value = !1, rn(j);
5336
5336
  });
5337
5337
  return;
5338
5338
  }
5339
- rn(S);
5339
+ rn(A);
5340
5340
  }
5341
- }, rn = (S) => {
5342
- switch (S.__CREATE__ && (S = { ...S }, delete S.__CREATE__), n.value) {
5341
+ }, rn = (A) => {
5342
+ switch (A.__CREATE__ && (A = { ...A }, delete A.__CREATE__), n.value) {
5343
5343
  case "single":
5344
- if (S && Ke(S)) {
5345
- Z.value && Vt(S), G.value && (nt(), ot());
5344
+ if (A && Ke(A)) {
5345
+ Z.value && Vt(A), G.value && (nt(), ot());
5346
5346
  return;
5347
5347
  }
5348
- S && vs(S), P.value && he(), N.value && (nt(), ot()), S && Ht(S);
5348
+ A && vs(A), P.value && he(), N.value && (nt(), ot()), A && Ht(A);
5349
5349
  break;
5350
5350
  case "multiple":
5351
- if (S && Ke(S)) {
5352
- Vt(S), G.value && (nt(), ot());
5351
+ if (A && Ke(A)) {
5352
+ Vt(A), G.value && (nt(), ot());
5353
5353
  return;
5354
5354
  }
5355
5355
  if (ps()) {
5356
5356
  e.emit("max", ne);
5357
5357
  return;
5358
5358
  }
5359
- S && (vs(S), Ht(S)), P.value && he(), l.value && nt(), N.value && ot();
5359
+ A && (vs(A), Ht(A)), P.value && he(), l.value && nt(), N.value && ot();
5360
5360
  break;
5361
5361
  case "tags":
5362
- if (S && Ke(S)) {
5363
- Vt(S), G.value && (nt(), ot());
5362
+ if (A && Ke(A)) {
5363
+ Vt(A), G.value && (nt(), ot());
5364
5364
  return;
5365
5365
  }
5366
5366
  if (ps()) {
5367
5367
  e.emit("max", ne);
5368
5368
  return;
5369
5369
  }
5370
- S && vs(S), P.value && he(), S && Ht(S), l.value && nt(), N.value && ot();
5370
+ A && vs(A), P.value && he(), A && Ht(A), l.value && nt(), N.value && ot();
5371
5371
  break;
5372
5372
  }
5373
5373
  N.value || $a();
5374
- }, Ao = (S) => {
5375
- if (!(ds(S) || n.value === "single" || !k.value)) {
5374
+ }, Ao = (A) => {
5375
+ if (!(ds(A) || n.value === "single" || !k.value)) {
5376
5376
  switch (n.value) {
5377
5377
  case "multiple":
5378
5378
  case "tags":
5379
- To(S[L.value]) ? Vt(S[L.value]) : Ht(
5380
- S[L.value].filter((j) => z.value.map((ue) => ue[A.value]).indexOf(j[A.value]) === -1).filter((j) => !j[y.value]).filter((j, ue) => z.value.length + 1 + ue <= K.value || K.value === -1)
5379
+ To(A[L.value]) ? Vt(A[L.value]) : Ht(
5380
+ A[L.value].filter((j) => z.value.map((ue) => ue[S.value]).indexOf(j[S.value]) === -1).filter((j) => !j[y.value]).filter((j, ue) => z.value.length + 1 + ue <= K.value || K.value === -1)
5381
5381
  ), l.value && Gt.value && Xt(us.value.filter((j) => !j[y.value])[Gt.value.index]);
5382
5382
  break;
5383
5383
  }
5384
5384
  N.value && rs();
5385
5385
  }
5386
- }, vs = (S) => {
5387
- Ge(S[A.value]) === void 0 && Qt.value && (e.emit("tag", S[A.value], ne), e.emit("option", S[A.value], ne), e.emit("create", S[A.value], ne), Sa.value && Lo(S), he());
5386
+ }, vs = (A) => {
5387
+ Ge(A[S.value]) === void 0 && Qt.value && (e.emit("tag", A[S.value], ne), e.emit("option", A[S.value], ne), e.emit("create", A[S.value], ne), Sa.value && Lo(A), he());
5388
5388
  }, Mo = () => {
5389
- n.value !== "single" && Ht(lt.value.filter((S) => !S.disabled && !Ke(S)));
5390
- }, To = (S) => S.find((j) => !Ke(j) && !j[y.value]) === void 0, Oo = (S) => S.find((j) => !Ke(j)) === void 0, Ge = (S) => Le.value[Le.value.map((j) => String(j[A.value])).indexOf(String(S))], Eo = (S) => Le.value.findIndex((j) => wt.value.some((ue) => (parseInt(j[ue]) == j[ue] ? parseInt(j[ue]) : j[ue]) === (parseInt(S) == S ? parseInt(S) : S))), Io = (S) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && Ke(S), Lo = (S) => {
5391
- it.value.push(S);
5392
- }, Po = (S) => O.value ? S.filter(
5389
+ n.value !== "single" && Ht(lt.value.filter((A) => !A.disabled && !Ke(A)));
5390
+ }, To = (A) => A.find((j) => !Ke(j) && !j[y.value]) === void 0, Oo = (A) => A.find((j) => !Ke(j)) === void 0, Ge = (A) => Le.value[Le.value.map((j) => String(j[S.value])).indexOf(String(A))], Eo = (A) => Le.value.findIndex((j) => wt.value.some((ue) => (parseInt(j[ue]) == j[ue] ? parseInt(j[ue]) : j[ue]) === (parseInt(A) == A ? parseInt(A) : A))), Io = (A) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && Ke(A), Lo = (A) => {
5391
+ it.value.push(A);
5392
+ }, Po = (A) => O.value ? A.filter(
5393
5393
  (j) => X.value ? j.__VISIBLE__.length : j[L.value].length
5394
- ) : S.filter((j) => X.value ? j.__VISIBLE__.length : !0), fs = (S, j = !0) => {
5395
- let ue = S;
5394
+ ) : A.filter((j) => X.value ? j.__VISIBLE__.length : !0), fs = (A, j = !0) => {
5395
+ let ue = A;
5396
5396
  if (X.value && m.value) {
5397
5397
  let ge = le.value;
5398
5398
  ge || (ge = ($t, cn, Q4) => wt.value.some((Vo) => {
@@ -5401,17 +5401,17 @@ function g7(t, e, a) {
5401
5401
  })), ue = ue.filter(($t) => ge($t, X.value, ne));
5402
5402
  }
5403
5403
  return l.value && j && (ue = ue.filter((ge) => !Io(ge))), ue;
5404
- }, hs = (S) => {
5405
- let j = S;
5404
+ }, hs = (A) => {
5405
+ let j = A;
5406
5406
  return h7(j) && (j = Object.keys(j).map((ue) => {
5407
5407
  let ge = j[ue];
5408
- return { [A.value]: ue, [wt.value[0]]: ge, [u.value]: ge };
5409
- })), j = j.map((ue) => typeof ue == "object" ? ue : { [A.value]: ue, [wt.value[0]]: ue, [u.value]: ue }), j;
5408
+ return { [S.value]: ue, [wt.value[0]]: ge, [u.value]: ge };
5409
+ })), j = j.map((ue) => typeof ue == "object" ? ue : { [S.value]: ue, [wt.value[0]]: ue, [u.value]: ue }), j;
5410
5410
  }, Ma = () => {
5411
5411
  Fe(H.value) || (z.value = Oa(H.value));
5412
- }, Ta = (S) => (Ie.value = !0, new Promise((j, ue) => {
5412
+ }, Ta = (A) => (Ie.value = !0, new Promise((j, ue) => {
5413
5413
  s.value(X.value, ne).then((ge) => {
5414
- Ue.value = ge || [], typeof S == "function" && S(ge), Ie.value = !1;
5414
+ Ue.value = ge || [], typeof A == "function" && A(ge), Ie.value = !1;
5415
5415
  }).catch((ge) => {
5416
5416
  console.error(ge), Ue.value = [], Ie.value = !1;
5417
5417
  }).finally(() => {
@@ -5420,34 +5420,34 @@ function g7(t, e, a) {
5420
5420
  })), ms = () => {
5421
5421
  if (cs.value)
5422
5422
  if (n.value === "single") {
5423
- let S = Ge(z.value[A.value]);
5424
- if (S !== void 0) {
5425
- let j = S[u.value];
5423
+ let A = Ge(z.value[S.value]);
5424
+ if (A !== void 0) {
5425
+ let j = A[u.value];
5426
5426
  z.value[u.value] = j, w.value && (H.value[u.value] = j);
5427
5427
  }
5428
5428
  } else
5429
- z.value.forEach((S, j) => {
5430
- let ue = Ge(z.value[j][A.value]);
5429
+ z.value.forEach((A, j) => {
5430
+ let ue = Ge(z.value[j][S.value]);
5431
5431
  if (ue !== void 0) {
5432
5432
  let ge = ue[u.value];
5433
5433
  z.value[j][u.value] = ge, w.value && (H.value[j][u.value] = ge);
5434
5434
  }
5435
5435
  });
5436
- }, Ho = (S) => {
5437
- Ta(S);
5438
- }, Oa = (S) => Fe(S) ? n.value === "single" ? {} : [] : w.value ? S : n.value === "single" ? Ge(S) || (B.value ? {
5439
- [u.value]: S,
5440
- [A.value]: S,
5441
- [wt.value[0]]: S
5442
- } : {}) : S.filter((j) => !!Ge(j) || B.value).map((j) => Ge(j) || {
5436
+ }, Ho = (A) => {
5437
+ Ta(A);
5438
+ }, Oa = (A) => Fe(A) ? n.value === "single" ? {} : [] : w.value ? A : n.value === "single" ? Ge(A) || (D.value ? {
5439
+ [u.value]: A,
5440
+ [S.value]: A,
5441
+ [wt.value[0]]: A
5442
+ } : {}) : A.filter((j) => !!Ge(j) || D.value).map((j) => Ge(j) || {
5443
5443
  [u.value]: j,
5444
- [A.value]: j,
5444
+ [S.value]: j,
5445
5445
  [wt.value[0]]: j
5446
5446
  }), un = () => {
5447
- je.value = ce(X, (S) => {
5448
- S.length < b.value || !S && b.value !== 0 || (Ie.value = !0, I.value && (Ue.value = []), setTimeout(() => {
5449
- S == X.value && s.value(X.value, ne).then((j) => {
5450
- (S == X.value || !X.value) && (Ue.value = j, Gt.value = lt.value.filter((ue) => ue[y.value] !== !0)[0] || null, Ie.value = !1);
5447
+ je.value = ce(X, (A) => {
5448
+ A.length < b.value || !A && b.value !== 0 || (Ie.value = !0, I.value && (Ue.value = []), setTimeout(() => {
5449
+ A == X.value && s.value(X.value, ne).then((j) => {
5450
+ (A == X.value || !X.value) && (Ue.value = j, Gt.value = lt.value.filter((ue) => ue[y.value] !== !0)[0] || null, Ie.value = !1);
5451
5451
  }).catch(
5452
5452
  /* istanbul ignore next */
5453
5453
  (j) => {
@@ -5459,26 +5459,26 @@ function g7(t, e, a) {
5459
5459
  };
5460
5460
  if (n.value !== "single" && !Fe(H.value) && !Array.isArray(H.value))
5461
5461
  throw new Error(`v-model must be an array when using "${n.value}" mode`);
5462
- return s && typeof s.value == "function" ? $.value ? Ta(Ma) : w.value == !0 && Ma() : (Ue.value = s.value, Ma()), g.value > -1 && un(), ce(g, (S, j) => {
5463
- je.value && je.value(), S >= 0 && un();
5464
- }), ce(H, (S) => {
5465
- if (Fe(S)) {
5466
- Se(Oa(S), !1);
5462
+ return s && typeof s.value == "function" ? $.value ? Ta(Ma) : w.value == !0 && Ma() : (Ue.value = s.value, Ma()), g.value > -1 && un(), ce(g, (A, j) => {
5463
+ je.value && je.value(), A >= 0 && un();
5464
+ }), ce(H, (A) => {
5465
+ if (Fe(A)) {
5466
+ Se(Oa(A), !1);
5467
5467
  return;
5468
5468
  }
5469
5469
  switch (n.value) {
5470
5470
  case "single":
5471
- (w.value ? S[A.value] != z.value[A.value] : S != z.value[A.value]) && Se(Oa(S), !1);
5471
+ (w.value ? A[S.value] != z.value[S.value] : A != z.value[S.value]) && Se(Oa(A), !1);
5472
5472
  break;
5473
5473
  case "multiple":
5474
5474
  case "tags":
5475
- m7(w.value ? S.map((j) => j[A.value]) : S, z.value.map((j) => j[A.value])) || Se(Oa(S), !1);
5475
+ m7(w.value ? A.map((j) => j[S.value]) : A, z.value.map((j) => j[S.value])) || Se(Oa(A), !1);
5476
5476
  break;
5477
5477
  }
5478
- }, { deep: !0 }), ce(s, (S, j) => {
5479
- typeof t.options == "function" ? $.value && (!j || S && S.toString() !== j.toString()) && Ta() : (Ue.value = t.options, Object.keys(z.value).length || Ma(), ms());
5480
- }), ce(u, ms), ce(o, (S, j) => {
5481
- xe.value = ee.value && S === -1 ? 10 : S;
5478
+ }, { deep: !0 }), ce(s, (A, j) => {
5479
+ typeof t.options == "function" ? $.value && (!j || A && A.toString() !== j.toString()) && Ta() : (Ue.value = t.options, Object.keys(z.value).length || Ma(), ms());
5480
+ }), ce(u, ms), ce(o, (A, j) => {
5481
+ xe.value = ee.value && A === -1 ? 10 : A;
5482
5482
  }), {
5483
5483
  pfo: Jt,
5484
5484
  fo: lt,
@@ -5524,56 +5524,56 @@ function C7(t, e, a) {
5524
5524
  groupSelect: d,
5525
5525
  disabledProp: u,
5526
5526
  groupOptions: c
5527
- } = Ee(t), v = a.fo, h = a.fg, w = a.handleOptionClick, _ = a.handleGroupClick, g = a.search, $ = a.pointer, b = a.setPointer, m = a.clearPointer, I = a.multiselect, P = a.isOpen, A = M(() => v.value.filter((H) => !H[u.value])), B = M(() => h.value.filter((H) => !H[u.value])), R = M(() => r.value !== "single" && d.value), Z = M(() => $.value && $.value.group), K = M(() => ne($.value)), te = M(() => {
5527
+ } = Ee(t), v = a.fo, h = a.fg, w = a.handleOptionClick, _ = a.handleGroupClick, g = a.search, $ = a.pointer, b = a.setPointer, m = a.clearPointer, I = a.multiselect, P = a.isOpen, S = M(() => v.value.filter((H) => !H[u.value])), D = M(() => h.value.filter((H) => !H[u.value])), R = M(() => r.value !== "single" && d.value), Z = M(() => $.value && $.value.group), K = M(() => ne($.value)), te = M(() => {
5528
5528
  const H = Z.value ? $.value : (
5529
5529
  /* istanbul ignore next */
5530
5530
  ne($.value)
5531
- ), X = B.value.map((Se) => Se[o.value]).indexOf(H[o.value]);
5532
- let he = B.value[X - 1];
5531
+ ), X = D.value.map((Se) => Se[o.value]).indexOf(H[o.value]);
5532
+ let he = D.value[X - 1];
5533
5533
  return he === void 0 && (he = G.value), he;
5534
5534
  }), N = M(() => {
5535
- let H = B.value.map((X) => X.label).indexOf(Z.value ? $.value[o.value] : ne($.value)[o.value]) + 1;
5536
- return B.value.length <= H && (H = 0), B.value[H];
5537
- }), G = M(() => [...B.value].slice(-1)[0]), ie = M(() => $.value.__VISIBLE__.filter((H) => !H[u.value])[0]), se = M(() => {
5535
+ let H = D.value.map((X) => X.label).indexOf(Z.value ? $.value[o.value] : ne($.value)[o.value]) + 1;
5536
+ return D.value.length <= H && (H = 0), D.value[H];
5537
+ }), G = M(() => [...D.value].slice(-1)[0]), ie = M(() => $.value.__VISIBLE__.filter((H) => !H[u.value])[0]), se = M(() => {
5538
5538
  const H = K.value.__VISIBLE__.filter((X) => !X[u.value]);
5539
5539
  return H[H.map((X) => X[s.value]).indexOf($.value[s.value]) - 1];
5540
5540
  }), ee = M(() => {
5541
5541
  const H = ne($.value).__VISIBLE__.filter((X) => !X[u.value]);
5542
5542
  return H[H.map((X) => X[s.value]).indexOf($.value[s.value]) + 1];
5543
5543
  }), L = M(() => [...te.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), O = M(() => [...G.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), k = (H) => $.value && (!H.group && $.value[s.value] === H[s.value] || H.group !== void 0 && $.value[o.value] === H[o.value]) ? !0 : void 0, U = () => {
5544
- b(A.value[0] || null);
5544
+ b(S.value[0] || null);
5545
5545
  }, y = () => {
5546
5546
  !$.value || $.value[u.value] === !0 || (Z.value ? _($.value) : w($.value));
5547
5547
  }, V = () => {
5548
5548
  if ($.value === null)
5549
- b((l.value && R.value ? B.value[0].__CREATE__ ? A.value[0] : B.value[0] : A.value[0]) || null);
5549
+ b((l.value && R.value ? D.value[0].__CREATE__ ? S.value[0] : D.value[0] : S.value[0]) || null);
5550
5550
  else if (l.value && R.value) {
5551
5551
  let H = Z.value ? ie.value : ee.value;
5552
5552
  H === void 0 && (H = N.value, H.__CREATE__ && (H = H[c.value][0])), b(H || /* istanbul ignore next */
5553
5553
  null);
5554
5554
  } else {
5555
- let H = A.value.map((X) => X[s.value]).indexOf($.value[s.value]) + 1;
5556
- A.value.length <= H && (H = 0), b(A.value[H] || null);
5555
+ let H = S.value.map((X) => X[s.value]).indexOf($.value[s.value]) + 1;
5556
+ S.value.length <= H && (H = 0), b(S.value[H] || null);
5557
5557
  }
5558
5558
  $e(() => {
5559
5559
  z();
5560
5560
  });
5561
5561
  }, le = () => {
5562
5562
  if ($.value === null) {
5563
- let H = A.value[A.value.length - 1];
5563
+ let H = S.value[S.value.length - 1];
5564
5564
  l.value && R.value && (H = O.value, H === void 0 && (H = G.value)), b(H || null);
5565
5565
  } else if (l.value && R.value) {
5566
5566
  let H = Z.value ? L.value : se.value;
5567
5567
  H === void 0 && (H = Z.value ? te.value : K.value, H.__CREATE__ && (H = L.value, H === void 0 && (H = te.value))), b(H || /* istanbul ignore next */
5568
5568
  null);
5569
5569
  } else {
5570
- let H = A.value.map((X) => X[s.value]).indexOf($.value[s.value]) - 1;
5571
- H < 0 && (H = A.value.length - 1), b(A.value[H] || null);
5570
+ let H = S.value.map((X) => X[s.value]).indexOf($.value[s.value]) - 1;
5571
+ H < 0 && (H = S.value.length - 1), b(S.value[H] || null);
5572
5572
  }
5573
5573
  $e(() => {
5574
5574
  z();
5575
5575
  });
5576
- }, ne = (H) => B.value.find((X) => X.__VISIBLE__.map((he) => he[s.value]).indexOf(H[s.value]) !== -1), z = () => {
5576
+ }, ne = (H) => D.value.find((X) => X.__VISIBLE__.map((he) => he[s.value]).indexOf(H[s.value]) !== -1), z = () => {
5577
5577
  let H = I.value.querySelector("[data-pointed]");
5578
5578
  if (!H)
5579
5579
  return;
@@ -5961,12 +5961,12 @@ function K7(t, e) {
5961
5961
  }
5962
5962
  function qs(t, e) {
5963
5963
  e === void 0 && (e = {});
5964
- var a = e, s = a.placement, n = s === void 0 ? t.placement : s, i = a.strategy, o = i === void 0 ? t.strategy : i, l = a.boundary, r = l === void 0 ? S7 : l, d = a.rootBoundary, u = d === void 0 ? co : d, c = a.elementContext, v = c === void 0 ? oa : c, h = a.altBoundary, w = h === void 0 ? !1 : h, _ = a.padding, g = _ === void 0 ? 0 : _, $ = x7(typeof g != "number" ? g : K7(g, os)), b = v === oa ? A7 : oa, m = t.rects.popper, I = t.elements[w ? b : v], P = Y7(Et(I) ? I : I.contextElement || _t(t.elements.popper), r, u, o), A = qt(t.elements.reference), B = vo({
5965
- reference: A,
5964
+ var a = e, s = a.placement, n = s === void 0 ? t.placement : s, i = a.strategy, o = i === void 0 ? t.strategy : i, l = a.boundary, r = l === void 0 ? S7 : l, d = a.rootBoundary, u = d === void 0 ? co : d, c = a.elementContext, v = c === void 0 ? oa : c, h = a.altBoundary, w = h === void 0 ? !1 : h, _ = a.padding, g = _ === void 0 ? 0 : _, $ = x7(typeof g != "number" ? g : K7(g, os)), b = v === oa ? A7 : oa, m = t.rects.popper, I = t.elements[w ? b : v], P = Y7(Et(I) ? I : I.contextElement || _t(t.elements.popper), r, u, o), S = qt(t.elements.reference), D = vo({
5965
+ reference: S,
5966
5966
  element: m,
5967
5967
  strategy: "absolute",
5968
5968
  placement: n
5969
- }), R = Ss(Object.assign({}, m, B)), Z = v === oa ? R : A, K = {
5969
+ }), R = Ss(Object.assign({}, m, D)), Z = v === oa ? R : S, K = {
5970
5970
  top: P.top - Z.top + $.top,
5971
5971
  bottom: Z.bottom - P.bottom + $.bottom,
5972
5972
  left: P.left - Z.left + $.left,
@@ -6042,8 +6042,8 @@ function G7(t) {
6042
6042
  u.reset = !1, I = -1;
6043
6043
  continue;
6044
6044
  }
6045
- var P = u.orderedModifiers[I], A = P.fn, B = P.options, R = B === void 0 ? {} : B, Z = P.name;
6046
- typeof A == "function" && (u = A({
6045
+ var P = u.orderedModifiers[I], S = P.fn, D = P.options, R = D === void 0 ? {} : D, Z = P.name;
6046
+ typeof S == "function" && (u = S({
6047
6047
  state: u,
6048
6048
  options: R,
6049
6049
  name: Z,
@@ -6078,9 +6078,9 @@ function G7(t) {
6078
6078
  name: $,
6079
6079
  instance: h,
6080
6080
  options: m
6081
- }), A = function() {
6081
+ }), S = function() {
6082
6082
  };
6083
- c.push(P || A);
6083
+ c.push(P || S);
6084
6084
  }
6085
6085
  });
6086
6086
  }
@@ -6153,20 +6153,20 @@ function Tn(t) {
6153
6153
  h = g.x, _ = g.y;
6154
6154
  var $ = o.hasOwnProperty("x"), b = o.hasOwnProperty("y"), m = Xe, I = Ne, P = window;
6155
6155
  if (d) {
6156
- var A = ns(a), B = "clientHeight", R = "clientWidth";
6157
- if (A === Oe(a) && (A = _t(a), at(A).position !== "static" && l === "absolute" && (B = "scrollHeight", R = "scrollWidth")), A = A, n === Ne || (n === Xe || n === ht) && i === va) {
6156
+ var S = ns(a), D = "clientHeight", R = "clientWidth";
6157
+ if (S === Oe(a) && (S = _t(a), at(S).position !== "static" && l === "absolute" && (D = "scrollHeight", R = "scrollWidth")), S = S, n === Ne || (n === Xe || n === ht) && i === va) {
6158
6158
  I = Ye;
6159
- var Z = c && A === P && P.visualViewport ? P.visualViewport.height : (
6159
+ var Z = c && S === P && P.visualViewport ? P.visualViewport.height : (
6160
6160
  // $FlowFixMe[prop-missing]
6161
- A[B]
6161
+ S[D]
6162
6162
  );
6163
6163
  _ -= Z - s.height, _ *= r ? 1 : -1;
6164
6164
  }
6165
6165
  if (n === Xe || (n === Ne || n === Ye) && i === va) {
6166
6166
  m = ht;
6167
- var K = c && A === P && P.visualViewport ? P.visualViewport.width : (
6167
+ var K = c && S === P && P.visualViewport ? P.visualViewport.width : (
6168
6168
  // $FlowFixMe[prop-missing]
6169
- A[R]
6169
+ S[R]
6170
6170
  );
6171
6171
  h -= K - s.width, h *= r ? 1 : -1;
6172
6172
  }
@@ -6276,7 +6276,7 @@ function pp(t) {
6276
6276
  rootBoundary: d,
6277
6277
  padding: c,
6278
6278
  altBoundary: u
6279
- }), $ = dt(e.placement), b = xt(e.placement), m = !b, I = po($), P = cp(I), A = e.modifiersData.popperOffsets, B = e.rects.reference, R = e.rects.popper, Z = typeof _ == "function" ? _(Object.assign({}, e.rects, {
6279
+ }), $ = dt(e.placement), b = xt(e.placement), m = !b, I = po($), P = cp(I), S = e.modifiersData.popperOffsets, D = e.rects.reference, R = e.rects.popper, Z = typeof _ == "function" ? _(Object.assign({}, e.rects, {
6280
6280
  placement: e.placement
6281
6281
  })) : _, K = typeof Z == "number" ? {
6282
6282
  mainAxis: Z,
@@ -6288,17 +6288,17 @@ function pp(t) {
6288
6288
  x: 0,
6289
6289
  y: 0
6290
6290
  };
6291
- if (A) {
6291
+ if (S) {
6292
6292
  if (i) {
6293
- var G, ie = I === "y" ? Ne : Xe, se = I === "y" ? Ye : ht, ee = I === "y" ? "height" : "width", L = A[I], O = L + g[ie], k = L - g[se], U = h ? -R[ee] / 2 : 0, y = b === Yt ? B[ee] : R[ee], V = b === Yt ? -R[ee] : -B[ee], le = e.elements.arrow, ne = h && le ? ro(le) : {
6293
+ var G, ie = I === "y" ? Ne : Xe, se = I === "y" ? Ye : ht, ee = I === "y" ? "height" : "width", L = S[I], O = L + g[ie], k = L - g[se], U = h ? -R[ee] / 2 : 0, y = b === Yt ? D[ee] : R[ee], V = b === Yt ? -R[ee] : -D[ee], le = e.elements.arrow, ne = h && le ? ro(le) : {
6294
6294
  width: 0,
6295
6295
  height: 0
6296
- }, z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : fo(), H = z[ie], X = z[se], he = Va(0, B[ee], ne[ee]), Se = m ? B[ee] / 2 - U - he - H - K.mainAxis : y - he - H - K.mainAxis, Gt = m ? -B[ee] / 2 + U + he + X + K.mainAxis : V + he + X + K.mainAxis, Xt = e.elements.arrow && ns(e.elements.arrow), nt = Xt ? I === "y" ? Xt.clientTop || 0 : Xt.clientLeft || 0 : 0, $a = (G = te == null ? void 0 : te[I]) != null ? G : 0, rs = L + Se - $a - nt, ot = L + Gt - $a, ka = Va(h ? Wa(O, rs) : O, L, h ? At(k, ot) : k);
6297
- A[I] = ka, N[I] = ka - L;
6296
+ }, z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : fo(), H = z[ie], X = z[se], he = Va(0, D[ee], ne[ee]), Se = m ? D[ee] / 2 - U - he - H - K.mainAxis : y - he - H - K.mainAxis, Gt = m ? -D[ee] / 2 + U + he + X + K.mainAxis : V + he + X + K.mainAxis, Xt = e.elements.arrow && ns(e.elements.arrow), nt = Xt ? I === "y" ? Xt.clientTop || 0 : Xt.clientLeft || 0 : 0, $a = (G = te == null ? void 0 : te[I]) != null ? G : 0, rs = L + Se - $a - nt, ot = L + Gt - $a, ka = Va(h ? Wa(O, rs) : O, L, h ? At(k, ot) : k);
6297
+ S[I] = ka, N[I] = ka - L;
6298
6298
  }
6299
6299
  if (l) {
6300
- var it, Ue = I === "x" ? Ne : Xe, Ie = I === "x" ? Ye : ht, je = A[P], xe = P === "y" ? "height" : "width", Qt = je + g[Ue], Sa = je - g[Ie], Le = [Ne, Xe].indexOf($) !== -1, Jt = (it = te == null ? void 0 : te[P]) != null ? it : 0, lt = Le ? Qt : je - B[xe] - R[xe] - Jt + K.altAxis, bt = Le ? je + B[xe] + R[xe] - Jt - K.altAxis : Sa, Aa = h && Le ? dp(lt, je, bt) : Va(h ? lt : Qt, je, h ? bt : Sa);
6301
- A[P] = Aa, N[P] = Aa - je;
6300
+ var it, Ue = I === "x" ? Ne : Xe, Ie = I === "x" ? Ye : ht, je = S[P], xe = P === "y" ? "height" : "width", Qt = je + g[Ue], Sa = je - g[Ie], Le = [Ne, Xe].indexOf($) !== -1, Jt = (it = te == null ? void 0 : te[P]) != null ? it : 0, lt = Le ? Qt : je - D[xe] - R[xe] - Jt + K.altAxis, bt = Le ? je + D[xe] + R[xe] - Jt - K.altAxis : Sa, Aa = h && Le ? dp(lt, je, bt) : Va(h ? lt : Qt, je, h ? bt : Sa);
6301
+ S[P] = Aa, N[P] = Aa - je;
6302
6302
  }
6303
6303
  e.modifiersData[s] = N;
6304
6304
  }
@@ -6367,7 +6367,7 @@ function Cp(t) {
6367
6367
  flipVariations: w,
6368
6368
  allowedAutoPlacements: _
6369
6369
  }) : z);
6370
- }, []), P = e.rects.reference, A = e.rects.popper, B = /* @__PURE__ */ new Map(), R = !0, Z = I[0], K = 0; K < I.length; K++) {
6370
+ }, []), P = e.rects.reference, S = e.rects.popper, D = /* @__PURE__ */ new Map(), R = !0, Z = I[0], K = 0; K < I.length; K++) {
6371
6371
  var te = I[K], N = dt(te), G = xt(te) === Yt, ie = [Ne, Ye].indexOf(N) >= 0, se = ie ? "width" : "height", ee = qs(e, {
6372
6372
  placement: te,
6373
6373
  boundary: u,
@@ -6375,7 +6375,7 @@ function Cp(t) {
6375
6375
  altBoundary: v,
6376
6376
  padding: d
6377
6377
  }), L = ie ? G ? ht : Xe : G ? Ye : Ne;
6378
- P[se] > A[se] && (L = Da(L));
6378
+ P[se] > S[se] && (L = Da(L));
6379
6379
  var O = Da(L), k = [];
6380
6380
  if (i && k.push(ee[N] <= 0), l && k.push(ee[L] <= 0, ee[O] <= 0), k.every(function(ne) {
6381
6381
  return ne;
@@ -6383,12 +6383,12 @@ function Cp(t) {
6383
6383
  Z = te, R = !1;
6384
6384
  break;
6385
6385
  }
6386
- B.set(te, k);
6386
+ D.set(te, k);
6387
6387
  }
6388
6388
  if (R)
6389
6389
  for (var U = w ? 3 : 1, y = function(z) {
6390
6390
  var H = I.find(function(X) {
6391
- var he = B.get(X);
6391
+ var he = D.get(X);
6392
6392
  if (he)
6393
6393
  return he.slice(0, z).every(function(Se) {
6394
6394
  return Se;
@@ -6539,14 +6539,14 @@ function wp(t, e, a) {
6539
6539
  createTag: c,
6540
6540
  createOption: v,
6541
6541
  reverse: h
6542
- } = Ee(t), w = Lt().proxy, _ = a.iv, g = a.update, $ = a.deselect, b = a.search, m = a.setPointer, I = a.selectPointer, P = a.backwardPointer, A = a.forwardPointer, B = a.multiselect, R = a.wrapper, Z = a.tags, K = a.isOpen, te = a.open, N = a.blur, G = a.fo, ie = M(() => c.value || v.value || !1), se = M(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ee = () => {
6542
+ } = Ee(t), w = Lt().proxy, _ = a.iv, g = a.update, $ = a.deselect, b = a.search, m = a.setPointer, I = a.selectPointer, P = a.backwardPointer, S = a.forwardPointer, D = a.multiselect, R = a.wrapper, Z = a.tags, K = a.isOpen, te = a.open, N = a.blur, G = a.fo, ie = M(() => c.value || v.value || !1), se = M(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ee = () => {
6543
6543
  s.value === "tags" && !l.value && ie.value && o.value && !d.value && m(G.value[G.value.map((k) => k[r.value]).indexOf(b.value)]);
6544
6544
  };
6545
6545
  return {
6546
6546
  handleKeydown: (k) => {
6547
6547
  e.emit("keydown", k, w);
6548
6548
  let U, y;
6549
- switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(k.key) !== -1 && s.value === "tags" && (U = [...B.value.querySelectorAll("[data-tags] > *")].filter((V) => V !== Z.value), y = U.findIndex((V) => V === document.activeElement)), k.key) {
6549
+ switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(k.key) !== -1 && s.value === "tags" && (U = [...D.value.querySelectorAll("[data-tags] > *")].filter((V) => V !== Z.value), y = U.findIndex((V) => V === document.activeElement)), k.key) {
6550
6550
  case "Backspace":
6551
6551
  if (s.value === "single" || o.value && [null, ""].indexOf(b.value) === -1 || _.value.length === 0)
6552
6552
  return;
@@ -6593,7 +6593,7 @@ function wp(t, e, a) {
6593
6593
  case "ArrowDown":
6594
6594
  if (k.preventDefault(), !l.value)
6595
6595
  return;
6596
- K.value || te(), A();
6596
+ K.value || te(), S();
6597
6597
  break;
6598
6598
  case "ArrowLeft":
6599
6599
  if (o.value && Z.value && Z.value.querySelector("input").selectionStart || k.shiftKey || s.value !== "tags" || !_.value || !_.value.length)
@@ -6711,8 +6711,8 @@ function $p(t, e, a) {
6711
6711
  },
6712
6712
  groupOptions: m.groupOptions,
6713
6713
  option: (I, P) => {
6714
- let A = [m.option];
6715
- return r(I) ? A.push(d(I) ? m.optionSelectedPointed : m.optionPointed) : d(I) ? A.push(u(I) ? m.optionSelectedDisabled : m.optionSelected) : (u(I) || P && u(P)) && A.push(m.optionDisabled), A;
6714
+ let S = [m.option];
6715
+ return r(I) ? S.push(d(I) ? m.optionSelectedPointed : m.optionPointed) : d(I) ? S.push(u(I) ? m.optionSelectedDisabled : m.optionSelected) : (u(I) || P && u(P)) && S.push(m.optionDisabled), S;
6716
6716
  },
6717
6717
  noOptions: m.noOptions,
6718
6718
  noResults: m.noResults,
@@ -6774,10 +6774,10 @@ function Sp(t, e, a) {
6774
6774
  }), m = M(() => s.value), I = M(() => l.value !== "single"), P = M(() => {
6775
6775
  let N = "";
6776
6776
  return l.value === "single" && h.value && (N += v.value[o.value]), l.value === "multiple" && h.value && (N += w.value), l.value === "tags" && h.value && (N += v.value.map((G) => G[o.value]).join(", ")), N;
6777
- }), A = M(() => {
6777
+ }), S = M(() => {
6778
6778
  let N = { ...d.value };
6779
6779
  return u.value && (N["aria-labelledby"] = N["aria-labelledby"] ? `${g.value} ${N["aria-labelledby"]}` : g.value, P.value && N["aria-label"] && (N["aria-label"] = `${P.value}, ${N["aria-label"]}`)), N;
6780
- }), B = (N) => {
6780
+ }), D = (N) => {
6781
6781
  let G = [];
6782
6782
  return n && n.value && G.push(n.value), G.push("multiselect-option"), G.push(N[i.value]), G.join("-");
6783
6783
  }, R = (N) => {
@@ -6796,14 +6796,14 @@ function Sp(t, e, a) {
6796
6796
  _.value = N ? N.innerText : null;
6797
6797
  }
6798
6798
  }), {
6799
- arias: A,
6799
+ arias: S,
6800
6800
  ariaLabel: P,
6801
6801
  ariaAssist: g,
6802
6802
  ariaControls: $,
6803
6803
  ariaPlaceholder: m,
6804
6804
  ariaMultiselectable: I,
6805
6805
  ariaActiveDescendant: b,
6806
- ariaOptionId: B,
6806
+ ariaOptionId: D,
6807
6807
  ariaOptionLabel: Z,
6808
6808
  ariaGroupId: R,
6809
6809
  ariaGroupLabel: K,
@@ -7482,7 +7482,7 @@ function Gp(t, e, a, s, n, i) {
7482
7482
  ]) : E("v-if", !0)
7483
7483
  ], 16, Ep),
7484
7484
  E(" Options "),
7485
- (p(), D(Tt, {
7485
+ (p(), B(Tt, {
7486
7486
  to: a.appendTo || "body",
7487
7487
  disabled: !a.appendToBody && !a.appendTo
7488
7488
  }, [
@@ -7706,7 +7706,7 @@ const Ae = /* @__PURE__ */ x({
7706
7706
  return e.detached && c7({
7707
7707
  multiselect: s,
7708
7708
  appendTo: a.value
7709
- }), (n, i) => (p(), D(J(ct), {
7709
+ }), (n, i) => (p(), B(J(ct), {
7710
7710
  ref_key: "multiselectRef",
7711
7711
  ref: s,
7712
7712
  class: "ao-multiselect"
@@ -7832,7 +7832,7 @@ const Qp = { class: "ao-tasks" }, Jp = { class: "ao-tasks__list" }, ev = ["id",
7832
7832
  key: h.id,
7833
7833
  class: "ao-subtask"
7834
7834
  }, [
7835
- ((w = c.isCheckable) == null ? void 0 : w.call(c, h)) ?? !1 ? (p(), D(re, {
7835
+ ((w = c.isCheckable) == null ? void 0 : w.call(c, h)) ?? !1 ? (p(), B(re, {
7836
7836
  key: 0,
7837
7837
  class: "ao-subtask__check",
7838
7838
  "icon-name": h.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
@@ -7851,7 +7851,7 @@ const Qp = { class: "ao-tasks" }, Jp = { class: "ao-tasks__list" }, ev = ["id",
7851
7851
  onKeyup: pt(u, ["enter"])
7852
7852
  }, null, 42, ev),
7853
7853
  qa(". "),
7854
- !c.isTemplate && c.users ? (p(), D(Ae, {
7854
+ !c.isTemplate && c.users ? (p(), B(Ae, {
7855
7855
  key: 1,
7856
7856
  value: (_ = h.assignee) != null && _.id ? [h.assignee.id] : [],
7857
7857
  options: n.value,
@@ -7875,7 +7875,7 @@ const Qp = { class: "ao-tasks" }, Jp = { class: "ao-tasks__list" }, ev = ["id",
7875
7875
  ]),
7876
7876
  _: 2
7877
7877
  }, 1032, ["value", "options", "placeholder", "disabled", "caret", "onChange"])) : E("", !0),
7878
- c.isEditable ? (p(), D(re, {
7878
+ c.isEditable ? (p(), B(re, {
7879
7879
  key: 2,
7880
7880
  class: "ao-subtask__delete",
7881
7881
  "icon-name": "CancelRounded",
@@ -7888,7 +7888,7 @@ const Qp = { class: "ao-tasks" }, Jp = { class: "ao-tasks__list" }, ev = ["id",
7888
7888
  }), 128))
7889
7889
  ]),
7890
7890
  f("div", tv, [
7891
- c.isEditable ? (p(), D(re, {
7891
+ c.isEditable ? (p(), B(re, {
7892
7892
  key: 0,
7893
7893
  label: c.$t("activity.tasks.add"),
7894
7894
  "icon-name": "Add",
@@ -7978,7 +7978,7 @@ const sv = ["onDrop", "onDragenter", "onDragover", "onDragleave"], nv = { class:
7978
7978
  }),
7979
7979
  f("span", lv, Y(v.name), 1)
7980
7980
  ], 8, iv),
7981
- u.isEditable ? (p(), D(re, {
7981
+ u.isEditable ? (p(), B(re, {
7982
7982
  key: 0,
7983
7983
  class: "ao-files__delete-button",
7984
7984
  "icon-name": "DeleteOutlineRounded",
@@ -8053,7 +8053,7 @@ const hv = { class: "ao-comment" }, mv = { class: "ao-comment__created-at" }, gv
8053
8053
  }), (_, g) => {
8054
8054
  var $;
8055
8055
  return p(), C("li", hv, [
8056
- s.value ? (p(), D(et, {
8056
+ s.value ? (p(), B(et, {
8057
8057
  key: 0,
8058
8058
  "avatar-url": ($ = _.user) == null ? void 0 : $.avatarUrl,
8059
8059
  "user-name": s.value,
@@ -8062,7 +8062,7 @@ const hv = { class: "ao-comment" }, mv = { class: "ao-comment__created-at" }, gv
8062
8062
  f("span", mv, Y(d.value), 1),
8063
8063
  f("div", gv, [
8064
8064
  f("div", Cv, [
8065
- (p(), D(mt(u.value), {
8065
+ (p(), B(mt(u.value), {
8066
8066
  ref_key: "commentContent",
8067
8067
  ref: n,
8068
8068
  class: "ao-comment__content",
@@ -8132,8 +8132,8 @@ const bv = { class: "ao-comments__header" }, wv = ["onSubmit"], $v = ["placehold
8132
8132
  emits: ["createComment", "updateComment", "removeComment"],
8133
8133
  setup(t, { emit: e }) {
8134
8134
  const a = t, s = M(() => (a.comments || []).toSorted(
8135
- (A, B) => t0(ca(A.createdAt), ca(B.createdAt))
8136
- )), n = (P) => a.users.find((B) => B.id === P), i = q();
8135
+ (S, D) => t0(ca(S.createdAt), ca(D.createdAt))
8136
+ )), n = (P) => a.users.find((D) => D.id === P), i = q();
8137
8137
  $e(() => {
8138
8138
  i.value && (i.value.scrollTop = i.value.scrollHeight);
8139
8139
  });
@@ -8146,42 +8146,47 @@ const bv = { class: "ao-comments__header" }, wv = ["onSubmit"], $v = ["placehold
8146
8146
  }
8147
8147
  }), r = () => {
8148
8148
  const P = o.value.trim();
8149
- P && (e("createComment", { authorId: a.userId, message: P }), o.value = "");
8150
- }, d = (P, A) => {
8149
+ if (!P)
8150
+ return;
8151
+ const S = Array.from(P.matchAll(/@(\w+)/g)).map((R) => R[1]), D = c.value.filter((R) => S.includes(R.name)).map((R) => R.id);
8152
+ console.log("MENTIONED"), console.log(JSON.stringify(S)), console.log(JSON.stringify(D)), e("createComment", { authorId: a.userId, message: P }), o.value = "";
8153
+ }, d = (P, S) => {
8151
8154
  e("updateComment", {
8152
8155
  id: P,
8153
- message: A
8156
+ message: S
8154
8157
  });
8155
8158
  }, u = (P) => {
8156
8159
  e("removeComment", { id: P });
8157
- }, c = [{ id: "1", name: "John" }, { id: "2", name: "Jane" }], v = q(""), h = q(!1), w = q({ top: 0, left: 0 }), _ = q(), g = (P) => {
8158
- const A = P.target, B = A.selectionStart, Z = A.value.slice(0, B).match(/@(\w*)$/);
8160
+ }, c = M(
8161
+ () => a.users.filter((P) => P.firstName || P.lastName).map(
8162
+ (P) => {
8163
+ const S = [P.firstName, P.lastName].filter(Boolean).join("_");
8164
+ return { id: P.id, name: S };
8165
+ }
8166
+ )
8167
+ ), v = q(""), h = q(!1), w = q({ top: 0, left: 0 }), _ = q(), g = (P) => {
8168
+ const S = P.target, D = S.selectionStart, Z = S.value.slice(0, D).match(/@(\w*)$/);
8159
8169
  Z ? (v.value = Z[1], h.value = !0, $e(() => {
8160
- const { top: K, left: te } = I(A, B);
8170
+ const { top: K, left: te } = I(S, D);
8161
8171
  w.value = { top: K, left: te };
8162
8172
  })) : h.value = !1;
8163
8173
  }, $ = (P) => {
8164
8174
  P.key === "Escape" && h.value && (h.value = !1);
8165
8175
  }, b = M(
8166
- () => (
8167
- // userSuggestions.value.filter((u) =>
8168
- // u.name.toLowerCase().includes(mentionQuery.value.toLowerCase()),
8169
- // ),
8170
- c.filter(
8171
- (P) => P.name.toLowerCase().includes(v.value.toLowerCase())
8172
- )
8176
+ () => c.value.filter(
8177
+ (P) => P.name.toLowerCase().includes(v.value.toLowerCase())
8173
8178
  )
8174
8179
  ), m = (P) => {
8175
- const A = _.value;
8176
- if (!A)
8180
+ const S = _.value;
8181
+ if (!S)
8177
8182
  return;
8178
- const B = A.selectionStart, R = o.value, Z = R.slice(0, B).replace(/@(\w*)$/, `@${P} `), K = R.slice(B);
8183
+ const D = S.selectionStart, R = o.value, Z = R.slice(0, D).replace(/@(\w*)$/, `@${P} `), K = R.slice(D);
8179
8184
  o.value = Z + K, h.value = !1, $e(() => {
8180
- A.focus(), A.setSelectionRange(Z.length, Z.length);
8185
+ S.focus(), S.setSelectionRange(Z.length, Z.length);
8181
8186
  });
8182
8187
  };
8183
- function I(P, A) {
8184
- const B = document.createElement("div"), R = document.createElement("span"), Z = window.getComputedStyle(P), K = [
8188
+ function I(P, S) {
8189
+ const D = document.createElement("div"), R = document.createElement("span"), Z = window.getComputedStyle(P), K = [
8185
8190
  "boxSizing",
8186
8191
  "width",
8187
8192
  "height",
@@ -8209,22 +8214,20 @@ const bv = { class: "ao-comments__header" }, wv = ["onSubmit"], $v = ["placehold
8209
8214
  "letterSpacing",
8210
8215
  "wordSpacing"
8211
8216
  ];
8212
- B.style.position = "absolute", B.style.visibility = "hidden", B.style.whiteSpace = "pre-wrap", B.style.overflow = "hidden", K.forEach((k) => {
8213
- B.style[k] = Z.getPropertyValue(k);
8214
- }), B.style.width = Z.getPropertyValue("width"), B.scrollTop = P.scrollTop, B.scrollLeft = P.scrollLeft;
8215
- const te = P.value.substring(0, A), N = P.value.substring(A) || ".";
8216
- B.textContent = te, R.textContent = N[0], B.appendChild(R), document.body.appendChild(B);
8217
- const G = R.getBoundingClientRect(), ie = B.getBoundingClientRect(), se = P.getBoundingClientRect(), ee = G.top - ie.top + se.top - P.scrollTop, L = G.left - ie.left + se.left - P.scrollLeft;
8218
- document.body.removeChild(B);
8219
- const O = parseFloat(Z.lineHeight);
8220
- return {
8221
- top: ee + O,
8217
+ D.style.position = "absolute", D.style.visibility = "hidden", D.style.whiteSpace = "pre-wrap", D.style.overflow = "hidden", K.forEach((O) => {
8218
+ D.style[O] = Z.getPropertyValue(O);
8219
+ }), D.style.width = Z.getPropertyValue("width"), D.scrollTop = P.scrollTop, D.scrollLeft = P.scrollLeft;
8220
+ const te = P.value.substring(0, S), N = P.value.substring(S) || ".";
8221
+ D.textContent = te, R.textContent = N[0], D.appendChild(R), document.body.appendChild(D);
8222
+ const G = R.getBoundingClientRect(), ie = D.getBoundingClientRect(), se = P.getBoundingClientRect(), ee = G.top - ie.top + se.top - P.scrollTop, L = G.left - ie.left + se.left - P.scrollLeft;
8223
+ return document.body.removeChild(D), {
8224
+ top: ee + 40,
8222
8225
  // adjust vertical offset for dropdown
8223
8226
  left: L
8224
8227
  };
8225
8228
  }
8226
- return (P, A) => {
8227
- var B;
8229
+ return (P, S) => {
8230
+ var D;
8228
8231
  return p(), C("div", {
8229
8232
  ref_key: "commentsContainer",
8230
8233
  ref: i,
@@ -8238,7 +8241,7 @@ const bv = { class: "ao-comments__header" }, wv = ["onSubmit"], $v = ["placehold
8238
8241
  De(f("textarea", {
8239
8242
  ref_key: "textareaRef",
8240
8243
  ref: _,
8241
- "onUpdate:modelValue": A[0] || (A[0] = (R) => l.value = R),
8244
+ "onUpdate:modelValue": S[0] || (S[0] = (R) => l.value = R),
8242
8245
  rows: "2",
8243
8246
  class: "ao-field__textarea ao-comments__form-textarea",
8244
8247
  placeholder: P.$t("activity.comment.label"),
@@ -8264,8 +8267,8 @@ const bv = { class: "ao-comments__header" }, wv = ["onSubmit"], $v = ["placehold
8264
8267
  ])
8265
8268
  ], 40, wv)
8266
8269
  ]),
8267
- ((B = s.value) == null ? void 0 : B.length) > 0 ? (p(), C("ul", Sv, [
8268
- (p(!0), C(fe, null, Ce(s.value, (R) => (p(), D(yv, {
8270
+ ((D = s.value) == null ? void 0 : D.length) > 0 ? (p(), C("ul", Sv, [
8271
+ (p(!0), C(fe, null, Ce(s.value, (R) => (p(), B(yv, {
8269
8272
  key: R.id,
8270
8273
  user: n(R.author.id),
8271
8274
  content: R.message,
@@ -8302,7 +8305,7 @@ const As = /* @__PURE__ */ x({
8302
8305
  const a = t, s = () => {
8303
8306
  e("update:modelValue", !a.modelValue);
8304
8307
  };
8305
- return (n, i) => (p(), D(re, {
8308
+ return (n, i) => (p(), B(re, {
8306
8309
  color: n.modelValue ? n.color : J(Ls).NEUTRAL,
8307
8310
  "icon-position": "start",
8308
8311
  onClick: i[0] || (i[0] = () => s())
@@ -8459,19 +8462,19 @@ const As = /* @__PURE__ */ x({
8459
8462
  e("deleteSubtask", y);
8460
8463
  };
8461
8464
  function I() {
8462
- a.userId ? B.value = [a.userId] : console.error("Failed assigning to self: userId is missing");
8465
+ a.userId ? D.value = [a.userId] : console.error("Failed assigning to self: userId is missing");
8463
8466
  }
8464
8467
  function P(y) {
8465
- B.value = [y];
8468
+ D.value = [y];
8466
8469
  }
8467
- const A = M(() => {
8470
+ const S = M(() => {
8468
8471
  var y;
8469
8472
  return ((y = a.users) == null ? void 0 : y.map((V) => ({
8470
8473
  label: `${V.firstName} ${V.lastName}`,
8471
8474
  value: V.id,
8472
8475
  avatar: V.avatarUrl
8473
8476
  }))) || [];
8474
- }), B = M({
8477
+ }), D = M({
8475
8478
  get() {
8476
8479
  var y, V;
8477
8480
  return (y = a.activity.assignee) != null && y.id ? [(V = a.activity.assignee) == null ? void 0 : V.id] : [];
@@ -8548,7 +8551,7 @@ const As = /* @__PURE__ */ x({
8548
8551
  console.log("Failed to copy link"), e("toast", "clipboard.copy.error", "error");
8549
8552
  });
8550
8553
  }
8551
- return (y, V) => (p(), D(Ja, {
8554
+ return (y, V) => (p(), B(Ja, {
8552
8555
  onClose: V[10] || (V[10] = (le) => y.$emit("close"))
8553
8556
  }, {
8554
8557
  default: F(() => {
@@ -8557,7 +8560,7 @@ const As = /* @__PURE__ */ x({
8557
8560
  f("div", Tv, [
8558
8561
  f("div", Ov, [
8559
8562
  f("div", Ev, [
8560
- y.activity.slug ? (p(), D(ra, {
8563
+ y.activity.slug ? (p(), B(ra, {
8561
8564
  key: 0,
8562
8565
  label: y.activity.slug,
8563
8566
  clickable: !0,
@@ -8734,10 +8737,10 @@ const As = /* @__PURE__ */ x({
8734
8737
  }, null, 8, ["label"])
8735
8738
  ]),
8736
8739
  T(Ae, {
8737
- modelValue: B.value,
8738
- "onUpdate:modelValue": V[3] || (V[3] = (H) => B.value = H),
8740
+ modelValue: D.value,
8741
+ "onUpdate:modelValue": V[3] || (V[3] = (H) => D.value = H),
8739
8742
  class: "ao-activity-details__assignees ao-activity-details__multiselect",
8740
- options: A.value,
8743
+ options: S.value,
8741
8744
  "close-on-select": !0,
8742
8745
  searchable: !0,
8743
8746
  placeholder: y.$t("activity.filters.assignee.placeholder"),
@@ -8962,7 +8965,7 @@ const Of = /* @__PURE__ */ x({
8962
8965
  e("update:rule", { ...a.rule, durationUnit: $ });
8963
8966
  }
8964
8967
  }), g = M(() => Object.values(K2));
8965
- return ($, b) => (p(), D(mt($.tagName), { class: "ao-rule-line" }, {
8968
+ return ($, b) => (p(), B(mt($.tagName), { class: "ao-rule-line" }, {
8966
8969
  default: F(() => [
8967
8970
  T(J(ct), {
8968
8971
  modelValue: n.value,
@@ -9028,7 +9031,7 @@ const Ef = { class: "ao-template-rules__body" }, If = { class: "ao-template-rule
9028
9031
  }, s = (n) => {
9029
9032
  e("removeRule", n);
9030
9033
  };
9031
- return (n, i) => (p(), D(Ja, null, {
9034
+ return (n, i) => (p(), B(Ja, null, {
9032
9035
  header: F(() => [
9033
9036
  T(be, {
9034
9037
  title: n.$t("template.rules.title"),
@@ -9038,7 +9041,7 @@ const Ef = { class: "ao-template-rules__body" }, If = { class: "ao-template-rule
9038
9041
  default: F(() => [
9039
9042
  f("div", Ef, [
9040
9043
  f("ul", If, [
9041
- (p(!0), C(fe, null, Ce(n.rules, (o) => (p(), D(Of, {
9044
+ (p(!0), C(fe, null, Ce(n.rules, (o) => (p(), B(Of, {
9042
9045
  key: o.id,
9043
9046
  rule: o,
9044
9047
  "template-phases": n.templatePhases,
@@ -9252,7 +9255,7 @@ const Pf = {
9252
9255
  id: L.id
9253
9256
  }
9254
9257
  });
9255
- }, A = (L) => {
9258
+ }, S = (L) => {
9256
9259
  const { id: O, ...k } = L;
9257
9260
  e("updateItem", {
9258
9261
  itemType: me.ACTIVITIES,
@@ -9260,8 +9263,8 @@ const Pf = {
9260
9263
  templateId: a.templateId,
9261
9264
  data: k
9262
9265
  });
9263
- }, B = q(!1), R = () => {
9264
- B.value = !B.value;
9266
+ }, D = q(!1), R = () => {
9267
+ D.value = !D.value;
9265
9268
  }, Z = () => {
9266
9269
  e("addRule", { templateId: a.templateId });
9267
9270
  }, K = (L) => {
@@ -9377,7 +9380,7 @@ const Pf = {
9377
9380
  }, 8, ["model-value"])
9378
9381
  ]),
9379
9382
  f("li", Rf, [
9380
- o.value ? (p(), D($5, {
9383
+ o.value ? (p(), B($5, {
9381
9384
  key: 0,
9382
9385
  "template-id": L.templateId,
9383
9386
  phase: o.value,
@@ -9389,21 +9392,21 @@ const Pf = {
9389
9392
  }, null, 8, ["template-id", "phase", "milestone-id"])) : E("", !0)
9390
9393
  ]),
9391
9394
  f("li", jf, [
9392
- o.value && l.value ? (p(), D(A5, {
9395
+ o.value && l.value ? (p(), B(A5, {
9393
9396
  key: 0,
9394
9397
  "template-id": L.templateId,
9395
9398
  "phase-id": (U = o.value) == null ? void 0 : U.id,
9396
9399
  milestone: l.value,
9397
9400
  "activity-id": (y = u.value) == null ? void 0 : y.id,
9398
9401
  onAddActivity: I,
9399
- onUpdateActivity: A,
9402
+ onUpdateActivity: S,
9400
9403
  onRemoveActivity: P
9401
9404
  }, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) : E("", !0)
9402
9405
  ])
9403
9406
  ])
9404
9407
  ]),
9405
- (p(), D(Tt, { to: "body" }, [
9406
- u.value ? (p(), D(Ys, {
9408
+ (p(), B(Tt, { to: "body" }, [
9409
+ u.value ? (p(), B(Ys, {
9407
9410
  key: 0,
9408
9411
  activity: u.value,
9409
9412
  "activity-types": L.activityTypes,
@@ -9415,7 +9418,7 @@ const Pf = {
9415
9418
  "is-editable": !0,
9416
9419
  users: L.users,
9417
9420
  "onUpdate:activity": O[2] || (O[2] = (z) => {
9418
- u.value && A(z);
9421
+ u.value && S(z);
9419
9422
  }),
9420
9423
  "attachment-enabled": !1,
9421
9424
  onClose: L.$router.back,
@@ -9431,8 +9434,8 @@ const Pf = {
9431
9434
  _: 3
9432
9435
  }, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "users", "onClose"])) : E("", !0)
9433
9436
  ])),
9434
- (p(), D(Tt, { to: "body" }, [
9435
- B.value ? (p(), D(Lf, {
9437
+ (p(), B(Tt, { to: "body" }, [
9438
+ D.value ? (p(), B(Lf, {
9436
9439
  key: 0,
9437
9440
  "template-id": n.value.id,
9438
9441
  rules: n.value.rules || [],
@@ -9464,7 +9467,7 @@ const Uf = { class: "ao-card__content" }, Ff = {
9464
9467
  withLeftBorder: { type: Boolean, default: !1 }
9465
9468
  },
9466
9469
  setup(t) {
9467
- return (e, a) => (p(), D(mt(e.tagName), {
9470
+ return (e, a) => (p(), B(mt(e.tagName), {
9468
9471
  class: Q([
9469
9472
  "ao-card",
9470
9473
  {
@@ -9628,7 +9631,7 @@ var Ks = x({
9628
9631
  });
9629
9632
  const xf = { ref: "canvasSaturation" };
9630
9633
  function Kf(t, e, a, s, n, i) {
9631
- return p(), D(
9634
+ return p(), B(
9632
9635
  "div",
9633
9636
  {
9634
9637
  class: "saturation",
@@ -9714,7 +9717,7 @@ var Gs = x({
9714
9717
  });
9715
9718
  const Gf = { ref: "canvasHue" };
9716
9719
  function Xf(t, e, a, s, n, i) {
9717
- return p(), D(
9720
+ return p(), B(
9718
9721
  "div",
9719
9722
  {
9720
9723
  class: "hue",
@@ -9809,7 +9812,7 @@ var Xs = x({
9809
9812
  });
9810
9813
  const Qf = { ref: "canvasAlpha" };
9811
9814
  function Jf(t, e, a, s, n, i) {
9812
- return p(), D(
9815
+ return p(), B(
9813
9816
  "div",
9814
9817
  {
9815
9818
  class: "color-alpha",
@@ -9876,7 +9879,7 @@ var Qs = x({
9876
9879
  }
9877
9880
  });
9878
9881
  function eh(t, e, a, s, n, i) {
9879
- return p(), D("canvas");
9882
+ return p(), B("canvas");
9880
9883
  }
9881
9884
  Qs.render = eh;
9882
9885
  Qs.__file = "src/color/Preview.vue";
@@ -9986,8 +9989,8 @@ const th = /* @__PURE__ */ T(
9986
9989
  /* HOISTED */
9987
9990
  );
9988
9991
  function nh(t, e, a, s, n, i) {
9989
- return p(), D("div", null, [
9990
- t.isSucking ? E("v-if", !0) : (p(), D(
9992
+ return p(), B("div", null, [
9993
+ t.isSucking ? E("v-if", !0) : (p(), B(
9991
9994
  "svg",
9992
9995
  {
9993
9996
  key: 0,
@@ -10002,7 +10005,7 @@ function nh(t, e, a, s, n, i) {
10002
10005
  2
10003
10006
  /* CLASS */
10004
10007
  )),
10005
- t.isSucking ? (p(), D("svg", ah, [
10008
+ t.isSucking ? (p(), B("svg", ah, [
10006
10009
  sh
10007
10010
  ])) : E("v-if", !0)
10008
10011
  ]);
@@ -10042,7 +10045,7 @@ var en = x({
10042
10045
  });
10043
10046
  const oh = { class: "color-type" }, ih = { class: "name" };
10044
10047
  function lh(t, e, a, s, n, i) {
10045
- return p(), D("div", oh, [
10048
+ return p(), B("div", oh, [
10046
10049
  T(
10047
10050
  "span",
10048
10051
  ih,
@@ -10113,12 +10116,12 @@ const rh = { class: "colors" }, uh = {
10113
10116
  class: "colors history"
10114
10117
  };
10115
10118
  function ch(t, e, a, s, n, i) {
10116
- return p(), D("div", null, [
10119
+ return p(), B("div", null, [
10117
10120
  T("ul", rh, [
10118
- (p(!0), D(
10121
+ (p(!0), B(
10119
10122
  fe,
10120
10123
  null,
10121
- Ce(t.colorsDefault, (o) => (p(), D("li", {
10124
+ Ce(t.colorsDefault, (o) => (p(), B("li", {
10122
10125
  key: o,
10123
10126
  class: "item",
10124
10127
  onClick: (l) => t.selectColor(o)
@@ -10148,11 +10151,11 @@ function ch(t, e, a, s, n, i) {
10148
10151
  /* KEYED_FRAGMENT */
10149
10152
  ))
10150
10153
  ]),
10151
- t.colorsHistory.length ? (p(), D("ul", uh, [
10152
- (p(!0), D(
10154
+ t.colorsHistory.length ? (p(), B("ul", uh, [
10155
+ (p(!0), B(
10153
10156
  fe,
10154
10157
  null,
10155
- Ce(t.colorsHistory, (o) => (p(), D("li", {
10158
+ Ce(t.colorsHistory, (o) => (p(), B("li", {
10156
10159
  key: o,
10157
10160
  class: "item",
10158
10161
  onClick: (l) => t.selectColor(o)
@@ -10362,7 +10365,7 @@ var Ut = x({
10362
10365
  const dh = { class: "color-set" };
10363
10366
  function ph(t, e, a, s, n, i) {
10364
10367
  const o = ut("Saturation"), l = ut("Hue"), r = ut("Alpha"), d = ut("Preview"), u = ut("Sucker"), c = ut("Box"), v = ut("Colors");
10365
- return p(), D(
10368
+ return p(), B(
10366
10369
  "div",
10367
10370
  {
10368
10371
  class: ["hu-color-picker", { light: t.isLightTheme }],
@@ -10405,7 +10408,7 @@ function ph(t, e, a, s, n, i) {
10405
10408
  width: t.previewWidth,
10406
10409
  height: t.previewHeight
10407
10410
  }, null, 8, ["color", "width", "height"]),
10408
- t.suckerHide ? E("v-if", !0) : (p(), D(u, {
10411
+ t.suckerHide ? E("v-if", !0) : (p(), B(u, {
10409
10412
  key: 0,
10410
10413
  "sucker-canvas": t.suckerCanvas,
10411
10414
  "sucker-area": t.suckerArea,
@@ -10556,7 +10559,7 @@ const fh = { class: "ao-card-project-phase__header" }, hh = { class: "ao-card-pr
10556
10559
  const h = c.target;
10557
10560
  h.closest("button") || h.closest("input") || h.closest(".ao-title") || v(h);
10558
10561
  };
10559
- return (c, v) => (p(), D(an, {
10562
+ return (c, v) => (p(), B(an, {
10560
10563
  color: d.value,
10561
10564
  "onUpdate:color": v[2] || (v[2] = (h) => d.value = h)
10562
10565
  }, {
@@ -10710,7 +10713,7 @@ const Sh = { class: "ao-card-project-milestone__default" }, Ah = { class: "ao-ti
10710
10713
  }), o = M(() => (i.value || 0) / (n.value || 1)), l = (r) => {
10711
10714
  e("updateMilestone", { id: a.id, name: r });
10712
10715
  };
10713
- return (r, d) => (p(), D(is, {
10716
+ return (r, d) => (p(), B(is, {
10714
10717
  class: Q([
10715
10718
  "ao-card-project-milestone"
10716
10719
  ]),
@@ -10777,7 +10780,7 @@ const Sh = { class: "ao-card-project-milestone__default" }, Ah = { class: "ao-ti
10777
10780
  ]),
10778
10781
  footer: F(() => [
10779
10782
  f("div", Vh, [
10780
- r.important ? (p(), D(pe, {
10783
+ r.important ? (p(), B(pe, {
10781
10784
  key: 0,
10782
10785
  name: "FlagRounded",
10783
10786
  class: Q(
@@ -10857,7 +10860,7 @@ const Nh = { class: "ao-mapping-card-project-phase__header" }, Uh = { class: "ao
10857
10860
  const h = c.target;
10858
10861
  h.closest("button") || h.closest("input") || h.closest(".ao-title") || v();
10859
10862
  };
10860
- return (c, v) => (p(), D(an, {
10863
+ return (c, v) => (p(), B(an, {
10861
10864
  color: d.value,
10862
10865
  "onUpdate:color": v[2] || (v[2] = (h) => d.value = h)
10863
10866
  }, {
@@ -11095,7 +11098,7 @@ const Gh = { class: "ao-project-phase" }, Xh = {
11095
11098
  important: I.important,
11096
11099
  readonly: b.readonly,
11097
11100
  class: Q(["ao-project-phase__milestone"]),
11098
- onClick: (A) => !b.readonly && b.$router.push({
11101
+ onClick: (S) => !b.readonly && b.$router.push({
11099
11102
  name: J(ye).milestone,
11100
11103
  params: { phaseId: b.phase.id, milestoneId: I.id }
11101
11104
  }),
@@ -11108,7 +11111,7 @@ const Gh = { class: "ao-project-phase" }, Xh = {
11108
11111
  _: 1
11109
11112
  }, 16, ["list", "disabled"]),
11110
11113
  f("div", t9, [
11111
- b.isEditable ? (p(), D(Ct, {
11114
+ b.isEditable ? (p(), B(Ct, {
11112
11115
  key: 0,
11113
11116
  label: b.$t("project.milestone.add"),
11114
11117
  class: "ao-project-phase__milestone-add",
@@ -11221,7 +11224,7 @@ const r9 = ["onSubmit"], u9 = { class: "ao-add-template-modal__form-body" }, c9
11221
11224
  }, o = () => {
11222
11225
  n.value && e("apply", n.value, a.projectId);
11223
11226
  };
11224
- return (l, r) => (p(), D(Ja, { size: "sm" }, {
11227
+ return (l, r) => (p(), B(Ja, { size: "sm" }, {
11225
11228
  header: F(() => [
11226
11229
  T(be, {
11227
11230
  title: l.$t("project.template.apply.title"),
@@ -11273,7 +11276,7 @@ const p9 = ["onSubmit"], v9 = { class: "ao-save-template-modal__form-body" }, f9
11273
11276
  const i = () => {
11274
11277
  s.value && e("save", s.value, n.value);
11275
11278
  };
11276
- return (o, l) => (p(), D(Ja, { size: "sm" }, {
11279
+ return (o, l) => (p(), B(Ja, { size: "sm" }, {
11277
11280
  header: F(() => [
11278
11281
  T(be, {
11279
11282
  title: o.$t("project.template.save.title"),
@@ -11415,9 +11418,9 @@ const sn = /* @__PURE__ */ W(w9, [["render", S9], ["__scopeId", "data-v-ff4e3297
11415
11418
  e("deleteSubtask", O);
11416
11419
  }, P = M(
11417
11420
  () => n.value.flatMap((O) => O.activities)
11418
- ), A = (O) => {
11421
+ ), S = (O) => {
11419
11422
  e("addFiles", O);
11420
- }, B = (O) => {
11423
+ }, D = (O) => {
11421
11424
  e("removeFile", O);
11422
11425
  }, R = (O) => {
11423
11426
  e("addComment", O);
@@ -11464,14 +11467,14 @@ const sn = /* @__PURE__ */ W(w9, [["render", S9], ["__scopeId", "data-v-ff4e3297
11464
11467
  }, null, 8, ["icon-name", "label", "aria-checked"])
11465
11468
  ]),
11466
11469
  secondary: F(() => [
11467
- O.isEditable === !0 ? (p(), D(re, {
11470
+ O.isEditable === !0 ? (p(), B(re, {
11468
11471
  key: 0,
11469
11472
  class: "ao-project-overview__save-as-template",
11470
11473
  color: "primary",
11471
11474
  label: O.$t("project.template.save.label"),
11472
11475
  onClick: k[2] || (k[2] = (y) => N.value = !0)
11473
11476
  }, null, 8, ["label"])) : E("", !0),
11474
- O.isEditable === !0 ? (p(), D(re, {
11477
+ O.isEditable === !0 ? (p(), B(re, {
11475
11478
  key: 1,
11476
11479
  class: "ao-project-overview__add-template",
11477
11480
  color: "primary",
@@ -11514,7 +11517,7 @@ const sn = /* @__PURE__ */ W(w9, [["render", S9], ["__scopeId", "data-v-ff4e3297
11514
11517
  onArchiveActivity: g,
11515
11518
  onUnarchiveActivity: $
11516
11519
  }, null, 8, ["phases", "project-id", "project-name", "users", "is-editable", "closed-status"]),
11517
- (p(), D(Tt, { to: "body" }, [
11520
+ (p(), B(Tt, { to: "body" }, [
11518
11521
  T(U, {
11519
11522
  name: "modal",
11520
11523
  activities: P.value,
@@ -11531,14 +11534,14 @@ const sn = /* @__PURE__ */ W(w9, [["render", S9], ["__scopeId", "data-v-ff4e3297
11531
11534
  onAddSubtask: b,
11532
11535
  onUpdateSubtask: m,
11533
11536
  onDeleteSubtask: I,
11534
- onAddFiles: A,
11535
- onRemoveFile: B,
11537
+ onAddFiles: S,
11538
+ onRemoveFile: D,
11536
11539
  onAddComment: R,
11537
11540
  onUpdateComment: Z,
11538
11541
  onRemoveComment: K
11539
11542
  }, {
11540
11543
  default: F(({ Component: y }) => [
11541
- (p(), D(mt(y), null, {
11544
+ (p(), B(mt(y), null, {
11542
11545
  default: F((V) => [
11543
11546
  ae(O.$slots, "activityDetailsBody", ha(ma(V)))
11544
11547
  ]),
@@ -11549,14 +11552,14 @@ const sn = /* @__PURE__ */ W(w9, [["render", S9], ["__scopeId", "data-v-ff4e3297
11549
11552
  }, 8, ["activities", "is-task-checkable", "statuses", "activity-types", "phases", "project", "users", "user-id", "is-editable", "attachment-enabled"])
11550
11553
  ]))
11551
11554
  ], 16),
11552
- (p(), D(Tt, { to: "body" }, [
11553
- N.value ? (p(), D(go, {
11555
+ (p(), B(Tt, { to: "body" }, [
11556
+ N.value ? (p(), B(go, {
11554
11557
  key: 0,
11555
11558
  phases: O.phases,
11556
11559
  onClose: k[5] || (k[5] = (y) => N.value = !1),
11557
11560
  onSave: ie
11558
11561
  }, null, 8, ["phases"])) : E("", !0),
11559
- te.value ? (p(), D(mo, {
11562
+ te.value ? (p(), B(mo, {
11560
11563
  key: 1,
11561
11564
  "project-id": O.project.id,
11562
11565
  templates: O.templates,
@@ -11638,13 +11641,13 @@ const O9 = { class: "ao-card-feed__header" }, E9 = {
11638
11641
  var h;
11639
11642
  return (h = a.tasks) == null ? void 0 : h.filter((w) => w.isDone).length;
11640
11643
  }), v = M(() => (c.value || 0) / (u.value || 1));
11641
- return (h, w) => (p(), D(is, {
11644
+ return (h, w) => (p(), B(is, {
11642
11645
  class: Q(["ao-card-feed", { "ao-card-feed--closed": h.isClosed }]),
11643
11646
  "is-clickable": !0
11644
11647
  }, {
11645
11648
  header: F(() => [
11646
11649
  f("div", O9, [
11647
- s.value ? (p(), D(ra, {
11650
+ s.value ? (p(), B(ra, {
11648
11651
  key: 0,
11649
11652
  label: s.value,
11650
11653
  class: "ao-card-feed__project",
@@ -11653,19 +11656,19 @@ const O9 = { class: "ao-card-feed__header" }, E9 = {
11653
11656
  "raw-color": n.value
11654
11657
  }, null, 8, ["label", "color", "raw-color"])) : E("", !0),
11655
11658
  h.isPrivate || h.important || h.isClosed ? (p(), C("div", E9, [
11656
- h.isPrivate ? (p(), D(pe, {
11659
+ h.isPrivate ? (p(), B(pe, {
11657
11660
  key: 0,
11658
11661
  name: "Lock",
11659
11662
  class: "ao-card-feed__warning",
11660
11663
  size: "sm"
11661
11664
  })) : E("", !0),
11662
- h.important ? (p(), D(pe, {
11665
+ h.important ? (p(), B(pe, {
11663
11666
  key: 1,
11664
11667
  name: "FlagRounded",
11665
11668
  class: "ao-card-feed__important",
11666
11669
  size: "sm"
11667
11670
  })) : E("", !0),
11668
- h.isClosed ? (p(), D(pe, {
11671
+ h.isClosed ? (p(), B(pe, {
11669
11672
  key: 2,
11670
11673
  name: "CheckSmallRounded",
11671
11674
  class: "ao-card-feed__closed"
@@ -11882,7 +11885,7 @@ const X9 = { class: "ao-project-milestone" }, Q9 = { class: "ao-project-mileston
11882
11885
  }, null, 8, ["title"]),
11883
11886
  T(As, {
11884
11887
  modelValue: $.value,
11885
- "onUpdate:modelValue": I[0] || (I[0] = (A) => $.value = A),
11888
+ "onUpdate:modelValue": I[0] || (I[0] = (S) => $.value = S),
11886
11889
  modelModifiers: { lazy: !0 },
11887
11890
  disabled: !m.isEditable,
11888
11891
  class: "ao-milestone__important",
@@ -11898,7 +11901,7 @@ const X9 = { class: "ao-project-milestone" }, Q9 = { class: "ao-project-mileston
11898
11901
  f("div", s4, [
11899
11902
  f("label", n4, [
11900
11903
  De(f("input", {
11901
- "onUpdate:modelValue": I[1] || (I[1] = (A) => h.value = A),
11904
+ "onUpdate:modelValue": I[1] || (I[1] = (S) => h.value = S),
11902
11905
  class: "ao-milestone__field ao-milestone__date-field",
11903
11906
  type: "date"
11904
11907
  }, null, 512), [
@@ -11915,7 +11918,7 @@ const X9 = { class: "ao-project-milestone" }, Q9 = { class: "ao-project-mileston
11915
11918
  f("label", i4, [
11916
11919
  T(Ae, {
11917
11920
  modelValue: g.value,
11918
- "onUpdate:modelValue": I[2] || (I[2] = (A) => g.value = A),
11921
+ "onUpdate:modelValue": I[2] || (I[2] = (S) => g.value = S),
11919
11922
  options: _.value,
11920
11923
  "close-on-select": !0,
11921
11924
  searchable: !0,
@@ -11927,14 +11930,14 @@ const X9 = { class: "ao-project-milestone" }, Q9 = { class: "ao-project-mileston
11927
11930
  caret: m.isEditable
11928
11931
  }, {
11929
11932
  tag: F(({
11930
- option: A,
11931
- handleTagRemove: B
11933
+ option: S,
11934
+ handleTagRemove: D
11932
11935
  }) => [
11933
11936
  T(et, {
11934
- "user-name": A.label,
11935
- "avatar-url": A.avatar,
11937
+ "user-name": S.label,
11938
+ "avatar-url": S.avatar,
11936
11939
  "is-closable": !0,
11937
- onClose: (R) => B(A, R)
11940
+ onClose: (R) => D(S, R)
11938
11941
  }, null, 8, ["user-name", "avatar-url", "onClose"])
11939
11942
  ]),
11940
11943
  _: 1
@@ -11943,13 +11946,13 @@ const X9 = { class: "ao-project-milestone" }, Q9 = { class: "ao-project-mileston
11943
11946
  ]),
11944
11947
  T(an, {
11945
11948
  color: v.value,
11946
- "onUpdate:color": I[3] || (I[3] = (A) => v.value = A)
11949
+ "onUpdate:color": I[3] || (I[3] = (S) => v.value = S)
11947
11950
  }, {
11948
- clickable: F(({ openPicker: A, bgColor: B }) => [
11951
+ clickable: F(({ openPicker: S, bgColor: D }) => [
11949
11952
  f("button", {
11950
- style: We({ background: B }),
11953
+ style: We({ background: D }),
11951
11954
  class: "color-button",
11952
- onClick: (R) => b(R, A)
11955
+ onClick: (R) => b(R, S)
11953
11956
  }, null, 12, l4)
11954
11957
  ]),
11955
11958
  _: 1
@@ -11964,37 +11967,37 @@ const X9 = { class: "ao-project-milestone" }, Q9 = { class: "ao-project-mileston
11964
11967
  "item-key": "id",
11965
11968
  group: "kanban"
11966
11969
  }, m.$attrs, { onChange: c }), {
11967
- item: F(({ element: A }) => {
11968
- var B, R, Z, K, te;
11970
+ item: F(({ element: S }) => {
11971
+ var D, R, Z, K, te;
11969
11972
  return [
11970
11973
  T(Co, {
11971
- id: A.id,
11972
- name: A.name || A.id,
11973
- "phase-name": (B = n.value) == null ? void 0 : B.name,
11974
+ id: S.id,
11975
+ name: S.name || S.id,
11976
+ "phase-name": (D = n.value) == null ? void 0 : D.name,
11974
11977
  "milestone-name": (R = o.value) == null ? void 0 : R.name,
11975
11978
  "milestone-color": (Z = o.value) == null ? void 0 : Z.color,
11976
- deadline: A.deadline,
11977
- important: A.important,
11979
+ deadline: S.deadline,
11980
+ important: S.important,
11978
11981
  users: m.users,
11979
- assignee: A.assignee,
11980
- slug: A.slug,
11981
- comments: (K = A.comments) == null ? void 0 : K.length,
11982
- attachments: (te = A.attachments) == null ? void 0 : te.length,
11983
- tasks: A.tasks,
11982
+ assignee: S.assignee,
11983
+ slug: S.slug,
11984
+ comments: (K = S.comments) == null ? void 0 : K.length,
11985
+ attachments: (te = S.attachments) == null ? void 0 : te.length,
11986
+ tasks: S.tasks,
11984
11987
  "is-editable": m.isEditable,
11985
- "is-private": A.private,
11986
- "is-closed": w(A),
11988
+ "is-private": S.private,
11989
+ "is-closed": w(S),
11987
11990
  onClick: (N) => m.$router.push({
11988
11991
  name: J(ye).activity,
11989
- params: { milestoneId: m.milestoneId, activityId: A.id }
11992
+ params: { milestoneId: m.milestoneId, activityId: S.id }
11990
11993
  }),
11991
11994
  onUpdateActivity: u,
11992
- onRemoveAssignee: () => u({ id: A.id, assigneeId: null })
11995
+ onRemoveAssignee: () => u({ id: S.id, assigneeId: null })
11993
11996
  }, fa({ _: 2 }, [
11994
11997
  m.isEditable ? {
11995
11998
  name: "secondary",
11996
11999
  fn: F(() => [
11997
- m.isEditable && A.active ? (p(), D(re, {
12000
+ m.isEditable && S.active ? (p(), B(re, {
11998
12001
  key: 0,
11999
12002
  color: "primary",
12000
12003
  variant: "ghost",
@@ -12003,9 +12006,9 @@ const X9 = { class: "ao-project-milestone" }, Q9 = { class: "ao-project-mileston
12003
12006
  "icon-position": "start",
12004
12007
  corners: "round",
12005
12008
  label: m.$t("archive"),
12006
- onClick: ve(() => m.$emit("archiveActivity", { id: A.id }), ["stop"])
12009
+ onClick: ve(() => m.$emit("archiveActivity", { id: S.id }), ["stop"])
12007
12010
  }, null, 8, ["label", "onClick"])) : E("", !0),
12008
- m.isEditable && !A.active ? (p(), D(re, {
12011
+ m.isEditable && !S.active ? (p(), B(re, {
12009
12012
  key: 1,
12010
12013
  color: "primary",
12011
12014
  variant: "ghost",
@@ -12015,7 +12018,7 @@ const X9 = { class: "ao-project-milestone" }, Q9 = { class: "ao-project-mileston
12015
12018
  corners: "round",
12016
12019
  label: m.$t("feed.activity.unarchive"),
12017
12020
  onClick: ve(
12018
- () => m.$emit("unarchiveActivity", { id: A.id }),
12021
+ () => m.$emit("unarchiveActivity", { id: S.id }),
12019
12022
  ["stop"]
12020
12023
  )
12021
12024
  }, null, 8, ["label", "onClick"])) : E("", !0)
@@ -12093,7 +12096,7 @@ const c4 = /* @__PURE__ */ x({
12093
12096
  };
12094
12097
  return (g, $) => {
12095
12098
  var b, m;
12096
- return o.value ? (p(), D(Ys, {
12099
+ return o.value ? (p(), B(Ys, {
12097
12100
  key: 0,
12098
12101
  activity: o.value,
12099
12102
  "activity-types": g.activityTypes,
@@ -12139,7 +12142,7 @@ const c4 = /* @__PURE__ */ x({
12139
12142
  class: "ao-col-header__title",
12140
12143
  level: 4
12141
12144
  }, null, 8, ["title"]),
12142
- e.items ? (p(), D(ra, {
12145
+ e.items ? (p(), B(ra, {
12143
12146
  key: 0,
12144
12147
  label: e.items,
12145
12148
  class: "ao-col-header__items",
@@ -12315,7 +12318,7 @@ const $4 = {
12315
12318
  var v;
12316
12319
  return [
12317
12320
  f("div", k4, [
12318
- u.title ? (p(), D(p4, {
12321
+ u.title ? (p(), B(p4, {
12319
12322
  key: 0,
12320
12323
  title: u.title,
12321
12324
  level: 3,
@@ -12368,12 +12371,12 @@ const $4 = {
12368
12371
  "is-editable": i(v),
12369
12372
  "is-private": v.private,
12370
12373
  "tag-type": u.tagType,
12371
- onUpdateActivity: [(A) => i(v) && l(A), () => i(v) && l],
12374
+ onUpdateActivity: [(S) => i(v) && l(S), () => i(v) && l],
12372
12375
  onClick: () => o(v.id),
12373
12376
  onRemoveAssignee: () => i(v) && l({ id: v.id, assigneeId: null })
12374
12377
  }, {
12375
12378
  secondary: F(() => [
12376
- i(v) && v.active ? (p(), D(re, {
12379
+ i(v) && v.active ? (p(), B(re, {
12377
12380
  key: 0,
12378
12381
  color: "primary",
12379
12382
  variant: "ghost",
@@ -12384,7 +12387,7 @@ const $4 = {
12384
12387
  label: u.$t("feed.activity.archive"),
12385
12388
  onClick: ve(() => u.$emit("archiveActivity", { id: v.id }), ["stop"])
12386
12389
  }, null, 8, ["label", "onClick"])) : E("", !0),
12387
- i(v) && !v.active ? (p(), D(re, {
12390
+ i(v) && !v.active ? (p(), B(re, {
12388
12391
  key: 1,
12389
12392
  color: "primary",
12390
12393
  variant: "ghost",
@@ -12416,7 +12419,7 @@ const $4 = {
12416
12419
  }, 16, ["class", "list", "disabled"]),
12417
12420
  u.$slots.footer || u.footerLabel ? (p(), C("div", O4, [
12418
12421
  ae(u.$slots, "footer", {}, () => [
12419
- u.isEditable ? (p(), D(Ct, {
12422
+ u.isEditable ? (p(), B(Ct, {
12420
12423
  key: 0,
12421
12424
  "icon-name": "AddBoxOutlineRounded",
12422
12425
  label: u.footerLabel,
@@ -12550,9 +12553,9 @@ const H4 = { class: "ao-feed" }, V4 = { class: "ao-feed__filters" }, D4 = { clas
12550
12553
  e("archiveActivity", k);
12551
12554
  }, P = (k) => {
12552
12555
  e("unarchiveActivity", k);
12553
- }, A = (k) => {
12556
+ }, S = (k) => {
12554
12557
  d.value = !1, e("update:searchText", k);
12555
- }, B = (k) => {
12558
+ }, D = (k) => {
12556
12559
  d.value = !1, e("clear:searchText", k);
12557
12560
  }, R = (k) => {
12558
12561
  a.selectedActivity && e("addSubtask", k);
@@ -12597,10 +12600,10 @@ const H4 = { class: "ao-feed" }, V4 = { class: "ao-feed__filters" }, D4 = { clas
12597
12600
  "model-value": k.searchText,
12598
12601
  placeholder: k.$t("feed.search.placeholder"),
12599
12602
  class: "ao-feed__search",
12600
- "onUpdate:modelValue": A,
12601
- onClear: B
12603
+ "onUpdate:modelValue": S,
12604
+ onClear: D
12602
12605
  }, null, 8, ["model-value", "placeholder"]),
12603
- a.project ? E("", !0) : (p(), D(Ae, {
12606
+ a.project ? E("", !0) : (p(), B(Ae, {
12604
12607
  key: 0,
12605
12608
  "model-value": k.filters[J(Dt).project],
12606
12609
  mode: "tags",
@@ -12611,7 +12614,7 @@ const H4 = { class: "ao-feed" }, V4 = { class: "ao-feed__filters" }, D4 = { clas
12611
12614
  placeholder: k.$t("feed.filters.project.placeholder"),
12612
12615
  "onUpdate:modelValue": U[1] || (U[1] = (V) => h(J(Dt).project, V))
12613
12616
  }, null, 8, ["model-value", "options", "placeholder"])),
12614
- g.value ? (p(), D(Ae, {
12617
+ g.value ? (p(), B(Ae, {
12615
12618
  key: 1,
12616
12619
  "model-value": k.filters[J(Dt).type],
12617
12620
  mode: "tags",
@@ -12622,7 +12625,7 @@ const H4 = { class: "ao-feed" }, V4 = { class: "ao-feed__filters" }, D4 = { clas
12622
12625
  placeholder: k.$t("feed.filters.activityType.placeholder"),
12623
12626
  "onUpdate:modelValue": U[2] || (U[2] = (V) => h(J(Dt).type, V))
12624
12627
  }, null, 8, ["model-value", "options", "placeholder"])) : E("", !0),
12625
- $.value.length ? (p(), D(Ae, {
12628
+ $.value.length ? (p(), B(Ae, {
12626
12629
  key: 2,
12627
12630
  "model-value": k.filters[J(Dt).assignee],
12628
12631
  mode: "tags",
@@ -12687,7 +12690,7 @@ const H4 = { class: "ao-feed" }, V4 = { class: "ao-feed__filters" }, D4 = { clas
12687
12690
  _: 1
12688
12691
  }),
12689
12692
  f("div", D4, [
12690
- (p(!0), C(fe, null, Ce(k.statuses, (V) => (p(), D(E4, {
12693
+ (p(!0), C(fe, null, Ce(k.statuses, (V) => (p(), B(E4, {
12691
12694
  key: V.id,
12692
12695
  status: V,
12693
12696
  list: l.value[V.id],
@@ -12704,8 +12707,8 @@ const H4 = { class: "ao-feed" }, V4 = { class: "ao-feed__filters" }, D4 = { clas
12704
12707
  onUpdateActivity: m
12705
12708
  }, null, 8, ["status", "list", "title", "footer-label", "users", "user-id", "is-editable", "tagType", "onAdd"]))), 128))
12706
12709
  ]),
12707
- (p(), D(Tt, { to: "body" }, [
12708
- k.selectedActivity ? (p(), D(Ys, {
12710
+ (p(), B(Tt, { to: "body" }, [
12711
+ k.selectedActivity ? (p(), B(Ys, {
12709
12712
  key: 0,
12710
12713
  activity: k.selectedActivity,
12711
12714
  "activity-types": k.activityTypes,
@@ -12810,14 +12813,14 @@ const R4 = { class: "ao-project-mapping" }, j4 = { class: "ao-project-mapping-ma
12810
12813
  }, null, 8, ["icon-name", "label", "aria-checked"])
12811
12814
  ]),
12812
12815
  secondary: F(() => [
12813
- g.isEditable === !0 ? (p(), D(re, {
12816
+ g.isEditable === !0 ? (p(), B(re, {
12814
12817
  key: 0,
12815
12818
  class: "ao-project-mapping-overview__save-as-template",
12816
12819
  color: "primary",
12817
12820
  label: g.$t("project.template.save.label"),
12818
12821
  onClick: $[2] || ($[2] = (b) => u.value = !0)
12819
12822
  }, null, 8, ["label"])) : E("", !0),
12820
- g.isEditable === !0 ? (p(), D(re, {
12823
+ g.isEditable === !0 ? (p(), B(re, {
12821
12824
  key: 1,
12822
12825
  class: "ao-project-mapping-overview__add-template",
12823
12826
  color: "primary",
@@ -12851,14 +12854,14 @@ const R4 = { class: "ao-project-mapping" }, j4 = { class: "ao-project-mapping-ma
12851
12854
  ])
12852
12855
  ])
12853
12856
  ], 16),
12854
- (p(), D(Tt, { to: "body" }, [
12855
- u.value ? (p(), D(go, {
12857
+ (p(), B(Tt, { to: "body" }, [
12858
+ u.value ? (p(), B(go, {
12856
12859
  key: 0,
12857
12860
  phases: g.phases,
12858
12861
  onClose: $[4] || ($[4] = (b) => u.value = !1),
12859
12862
  onSave: v
12860
12863
  }, null, 8, ["phases"])) : E("", !0),
12861
- d.value ? (p(), D(mo, {
12864
+ d.value ? (p(), B(mo, {
12862
12865
  key: 1,
12863
12866
  "project-id": g.project.id,
12864
12867
  templates: g.templates,
@@ -13067,7 +13070,7 @@ const q4 = { class: "ao-field__label" }, Y4 = /* @__PURE__ */ x({
13067
13070
  ), n = (i) => {
13068
13071
  a.modelModifiers.number && (i = Number(i)), e("update:modelValue", i);
13069
13072
  };
13070
- return (i, o) => (p(), D(Y4, { label: i.label }, {
13073
+ return (i, o) => (p(), B(Y4, { label: i.label }, {
13071
13074
  default: F(() => [
13072
13075
  f("input", Me({
13073
13076
  class: "ao-field__input",