@26lights/orcha 0.17.3 → 0.17.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/orcha.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as x, openBlock as c, createBlock as R, unref as F, mergeProps as Ie, createElementBlock as m, createElementVNode as f, pushScopeId as rn, popScopeId as un, createStaticVNode as dn, computed as y, resolveDynamicComponent as at, normalizeClass as G, renderSlot as ee, toDisplayString as q, createCommentVNode as k, ref as Q, watch as ue, nextTick as Oe, withKeys as Ye, toHandlers as cn, withCtx as j, createTextVNode as e1, createVNode as T, normalizeStyle as ua, withModifiers as _e, createSlots as t1, Fragment as ve, renderList as be, onMounted as Ht, onBeforeUnmount as fn, onUnmounted as da, toRefs as $e, getCurrentInstance as nt, toRef as ft, normalizeProps as vn, guardReactiveProps as pn, onUpdated as hn, withDirectives as et, vModelText as Et, vModelCheckbox as x1, Teleport as It, resolveComponent as mn, getCurrentScope as Cn, onScopeDispose as _n, provide as gn } from "vue";
1
+ import { defineComponent as x, openBlock as c, createBlock as R, unref as F, mergeProps as Ie, createElementBlock as m, createElementVNode as f, pushScopeId as rn, popScopeId as un, createStaticVNode as dn, computed as y, resolveDynamicComponent as at, normalizeClass as G, renderSlot as ee, toDisplayString as q, createCommentVNode as k, ref as Q, watch as ue, nextTick as Oe, withKeys as Ye, toHandlers as cn, withCtx as j, createTextVNode as e1, createVNode as T, normalizeStyle as ua, withModifiers as _e, createSlots as t1, Fragment as ve, renderList as be, onMounted as Ht, onBeforeUnmount as fn, onUnmounted as da, toRefs as $e, getCurrentInstance as nt, toRef as vt, normalizeProps as vn, guardReactiveProps as pn, onUpdated as hn, withDirectives as et, vModelText as Et, vModelCheckbox as x1, Teleport as It, resolveComponent as mn, getCurrentScope as Cn, onScopeDispose as _n, provide as gn } from "vue";
2
2
  import { RouterView as bn } from "vue-router";
3
3
  import Xe from "vuedraggable";
4
4
  const a8 = /* @__PURE__ */ x({
@@ -2419,7 +2419,7 @@ var tc = {
2419
2419
  return tc[e];
2420
2420
  };
2421
2421
  const nc = ac;
2422
- function wt(a) {
2422
+ function $t(a) {
2423
2423
  return function(e, t) {
2424
2424
  var s = t != null && t.context ? String(t.context) : "standalone", n;
2425
2425
  if (s === "formatting" && a.formattingValues) {
@@ -2526,26 +2526,26 @@ var sc = {
2526
2526
  return s + "th";
2527
2527
  }, cc = {
2528
2528
  ordinalNumber: dc,
2529
- era: wt({
2529
+ era: $t({
2530
2530
  values: sc,
2531
2531
  defaultWidth: "wide"
2532
2532
  }),
2533
- quarter: wt({
2533
+ quarter: $t({
2534
2534
  values: ic,
2535
2535
  defaultWidth: "wide",
2536
2536
  argumentCallback: function(e) {
2537
2537
  return e - 1;
2538
2538
  }
2539
2539
  }),
2540
- month: wt({
2540
+ month: $t({
2541
2541
  values: oc,
2542
2542
  defaultWidth: "wide"
2543
2543
  }),
2544
- day: wt({
2544
+ day: $t({
2545
2545
  values: lc,
2546
2546
  defaultWidth: "wide"
2547
2547
  }),
2548
- dayPeriod: wt({
2548
+ dayPeriod: $t({
2549
2549
  values: rc,
2550
2550
  defaultWidth: "wide",
2551
2551
  formattingValues: uc,
@@ -2553,7 +2553,7 @@ var sc = {
2553
2553
  })
2554
2554
  };
2555
2555
  const fc = cc;
2556
- function $t(a) {
2556
+ function Mt(a) {
2557
2557
  return function(e) {
2558
2558
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = t.width, n = s && a.matchPatterns[s] || a.matchPatterns[a.defaultMatchWidth], o = e.match(n);
2559
2559
  if (!o)
@@ -2647,13 +2647,13 @@ var mc = /^(\d+)(th|st|nd|rd)?/i, Cc = /\d+/i, _c = {
2647
2647
  return parseInt(e, 10);
2648
2648
  }
2649
2649
  }),
2650
- era: $t({
2650
+ era: Mt({
2651
2651
  matchPatterns: _c,
2652
2652
  defaultMatchWidth: "wide",
2653
2653
  parsePatterns: gc,
2654
2654
  defaultParseWidth: "any"
2655
2655
  }),
2656
- quarter: $t({
2656
+ quarter: Mt({
2657
2657
  matchPatterns: bc,
2658
2658
  defaultMatchWidth: "wide",
2659
2659
  parsePatterns: yc,
@@ -2662,19 +2662,19 @@ var mc = /^(\d+)(th|st|nd|rd)?/i, Cc = /\d+/i, _c = {
2662
2662
  return e + 1;
2663
2663
  }
2664
2664
  }),
2665
- month: $t({
2665
+ month: Mt({
2666
2666
  matchPatterns: wc,
2667
2667
  defaultMatchWidth: "wide",
2668
2668
  parsePatterns: $c,
2669
2669
  defaultParseWidth: "any"
2670
2670
  }),
2671
- day: $t({
2671
+ day: Mt({
2672
2672
  matchPatterns: Mc,
2673
2673
  defaultMatchWidth: "wide",
2674
2674
  parsePatterns: kc,
2675
2675
  defaultParseWidth: "any"
2676
2676
  }),
2677
- dayPeriod: $t({
2677
+ dayPeriod: Mt({
2678
2678
  matchPatterns: Ac,
2679
2679
  defaultMatchWidth: "any",
2680
2680
  parsePatterns: Tc,
@@ -2804,13 +2804,13 @@ function zc(a, e) {
2804
2804
  var t = a.match(Uc);
2805
2805
  if (!t)
2806
2806
  return /* @__PURE__ */ new Date(NaN);
2807
- var s = !!t[4], n = Mt(t[1]), o = Mt(t[2]) - 1, i = Mt(t[3]), l = Mt(t[4]), r = Mt(t[5]) - 1;
2807
+ var s = !!t[4], n = kt(t[1]), o = kt(t[2]) - 1, i = kt(t[3]), l = kt(t[4]), r = kt(t[5]) - 1;
2808
2808
  if (s)
2809
2809
  return Qc(e, l, r) ? Kc(e, l, r) : /* @__PURE__ */ new Date(NaN);
2810
2810
  var d = /* @__PURE__ */ new Date(0);
2811
2811
  return !xc(e, o, i) || !Xc(e, n) ? /* @__PURE__ */ new Date(NaN) : (d.setUTCFullYear(e, o, Math.max(n, i)), d);
2812
2812
  }
2813
- function Mt(a) {
2813
+ function kt(a) {
2814
2814
  return a ? parseInt(a) : 1;
2815
2815
  }
2816
2816
  function Wc(a) {
@@ -2857,7 +2857,7 @@ function Jc(a, e, t) {
2857
2857
  function e0(a, e) {
2858
2858
  return e >= 0 && e <= 59;
2859
2859
  }
2860
- var Se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Te = {}, ya = {}, kt = {}, Dt = {}, Ct = {}, s1 = {};
2860
+ var Se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Te = {}, ya = {}, At = {}, Dt = {}, _t = {}, s1 = {};
2861
2861
  Object.defineProperty(s1, "__esModule", { value: !0 });
2862
2862
  s1.lexoHelper = void 0;
2863
2863
  s1.lexoHelper = {
@@ -2895,8 +2895,8 @@ class a0 {
2895
2895
  }
2896
2896
  }
2897
2897
  Pt.default = a0;
2898
- Object.defineProperty(Ct, "__esModule", { value: !0 });
2899
- Ct.LexoInteger = void 0;
2898
+ Object.defineProperty(_t, "__esModule", { value: !0 });
2899
+ _t.LexoInteger = void 0;
2900
2900
  const qt = s1, n0 = Pt;
2901
2901
  class X {
2902
2902
  constructor(e, t, s) {
@@ -3091,7 +3091,7 @@ class X {
3091
3091
  throw new Error("Expected numbers of same numeral sys");
3092
3092
  }
3093
3093
  }
3094
- Ct.LexoInteger = X;
3094
+ _t.LexoInteger = X;
3095
3095
  X.ZERO_MAG = [0];
3096
3096
  X.ONE_MAG = [1];
3097
3097
  X.NEGATIVE_SIGN = -1;
@@ -3099,23 +3099,23 @@ X.ZERO_SIGN = 0;
3099
3099
  X.POSITIVE_SIGN = 1;
3100
3100
  Object.defineProperty(Dt, "__esModule", { value: !0 });
3101
3101
  Dt.LexoDecimal = void 0;
3102
- const At = Ct, s0 = Pt;
3102
+ const Tt = _t, s0 = Pt;
3103
3103
  class ke {
3104
3104
  constructor(e, t) {
3105
3105
  this.mag = e, this.sig = t;
3106
3106
  }
3107
3107
  static half(e) {
3108
3108
  const t = e.getBase() / 2 | 0;
3109
- return ke.make(At.LexoInteger.make(e, 1, [t]), 1);
3109
+ return ke.make(Tt.LexoInteger.make(e, 1, [t]), 1);
3110
3110
  }
3111
3111
  static parse(e, t) {
3112
3112
  const s = e.indexOf(t.getRadixPointChar());
3113
3113
  if (e.lastIndexOf(t.getRadixPointChar()) !== s)
3114
3114
  throw new Error("More than one " + t.getRadixPointChar());
3115
3115
  if (s < 0)
3116
- return ke.make(At.LexoInteger.parse(e, t), 0);
3116
+ return ke.make(Tt.LexoInteger.parse(e, t), 0);
3117
3117
  const n = e.substring(0, s) + e.substring(s + 1);
3118
- return ke.make(At.LexoInteger.parse(n, t), e.length - 1 - s);
3118
+ return ke.make(Tt.LexoInteger.parse(n, t), e.length - 1 - s);
3119
3119
  }
3120
3120
  static from(e) {
3121
3121
  return ke.make(e, 0);
@@ -3158,7 +3158,7 @@ class ke {
3158
3158
  if (this.isExact())
3159
3159
  return this.mag;
3160
3160
  const e = this.floor();
3161
- return e.add(At.LexoInteger.one(e.getSystem()));
3161
+ return e.add(Tt.LexoInteger.one(e.getSystem()));
3162
3162
  }
3163
3163
  isExact() {
3164
3164
  if (this.sig === 0)
@@ -3177,7 +3177,7 @@ class ke {
3177
3177
  e < 0 && (e = 0);
3178
3178
  const s = this.sig - e;
3179
3179
  let n = this.mag.shiftRight(s);
3180
- return t && (n = n.add(At.LexoInteger.one(n.getSystem()))), ke.make(n, e);
3180
+ return t && (n = n.add(Tt.LexoInteger.one(n.getSystem()))), ke.make(n, e);
3181
3181
  }
3182
3182
  compareTo(e) {
3183
3183
  if (this === e)
@@ -3209,7 +3209,7 @@ function wa() {
3209
3209
  if (ta)
3210
3210
  return zt;
3211
3211
  ta = 1, Object.defineProperty(zt, "__esModule", { value: !0 });
3212
- const a = Ct, e = Ma();
3212
+ const a = _t, e = Ma();
3213
3213
  class t {
3214
3214
  constructor(n) {
3215
3215
  this.value = a.LexoInteger.parse(n, e.LexoRank.NUMERAL_SYSTEM);
@@ -3376,8 +3376,8 @@ l1.LexoNumeralSystem64 = l0;
3376
3376
  var aa;
3377
3377
  function Ma() {
3378
3378
  if (aa)
3379
- return kt;
3380
- aa = 1, Object.defineProperty(kt, "__esModule", { value: !0 }), kt.LexoRank = void 0;
3379
+ return At;
3380
+ aa = 1, Object.defineProperty(At, "__esModule", { value: !0 }), At.LexoRank = void 0;
3381
3381
  const a = Dt, e = wa(), t = Pt, s = I1;
3382
3382
  class n {
3383
3383
  constructor(i, l) {
@@ -3549,7 +3549,7 @@ function Ma() {
3549
3549
  return this === i ? 0 : i ? this.value.localeCompare(i.value) : 1;
3550
3550
  }
3551
3551
  }
3552
- return kt.LexoRank = n, kt;
3552
+ return At.LexoRank = n, At;
3553
3553
  }
3554
3554
  (function(a) {
3555
3555
  var e = Se && Se.__createBinding || (Object.create ? function(s, n, o, i) {
@@ -3564,7 +3564,7 @@ function Ma() {
3564
3564
  for (var o in s)
3565
3565
  o !== "default" && !Object.prototype.hasOwnProperty.call(n, o) && e(n, s, o);
3566
3566
  };
3567
- Object.defineProperty(a, "__esModule", { value: !0 }), t(Ma(), a), t(wa(), a), t(Dt, a), t(Ct, a);
3567
+ Object.defineProperty(a, "__esModule", { value: !0 }), t(Ma(), a), t(wa(), a), t(Dt, a), t(_t, a);
3568
3568
  })(ya);
3569
3569
  (function(a) {
3570
3570
  var e = Se && Se.__createBinding || (Object.create ? function(s, n, o, i) {
@@ -3642,7 +3642,7 @@ function f0(a, e) {
3642
3642
  const v0 = ["title"], p0 = {
3643
3643
  key: 0,
3644
3644
  className: "ao-avatar__initials"
3645
- }, h0 = ["src"], _t = /* @__PURE__ */ x({
3645
+ }, h0 = ["src"], gt = /* @__PURE__ */ x({
3646
3646
  __name: "AoAvatar",
3647
3647
  props: {
3648
3648
  userName: {},
@@ -3766,7 +3766,7 @@ const m0 = { class: "ao-card-template__subitems" }, C0 = { class: "ao-card-templ
3766
3766
  f("span", V0, q(s.$t("template.updatedBy.label")), 1)
3767
3767
  ]),
3768
3768
  f("div", H0, [
3769
- T(_t, { "user-name": s.updatedBy }, null, 8, ["user-name"])
3769
+ T(gt, { "user-name": s.updatedBy }, null, 8, ["user-name"])
3770
3770
  ])
3771
3771
  ])) : k("", !0)
3772
3772
  ])
@@ -4147,7 +4147,7 @@ const Lt = Math.min, Ae = Math.max, xt = Math.round, Wt = Math.floor, Ge = (a) =
4147
4147
  function V1(a, e) {
4148
4148
  return typeof a == "function" ? a(e) : a;
4149
4149
  }
4150
- function ht(a) {
4150
+ function mt(a) {
4151
4151
  return a.split("-")[0];
4152
4152
  }
4153
4153
  function u1(a) {
@@ -4160,7 +4160,7 @@ function Ta(a) {
4160
4160
  return a === "y" ? "height" : "width";
4161
4161
  }
4162
4162
  function H1(a) {
4163
- return ["top", "bottom"].includes(ht(a)) ? "y" : "x";
4163
+ return ["top", "bottom"].includes(mt(a)) ? "y" : "x";
4164
4164
  }
4165
4165
  function Sa(a) {
4166
4166
  return o3(H1(a));
@@ -4193,7 +4193,7 @@ function u3(a, e, t) {
4193
4193
  }
4194
4194
  function d3(a, e, t, s) {
4195
4195
  const n = u1(a);
4196
- let o = u3(ht(a), t === "start", s);
4196
+ let o = u3(mt(a), t === "start", s);
4197
4197
  return n && (o = o.map((i) => i + "-" + n), e && (o = o.concat(o.map(T1)))), o;
4198
4198
  }
4199
4199
  function Xt(a) {
@@ -4230,7 +4230,7 @@ function na(a, e, t) {
4230
4230
  reference: s,
4231
4231
  floating: n
4232
4232
  } = a;
4233
- const o = H1(e), i = Sa(e), l = Ta(i), r = ht(e), d = o === "y", u = s.x + s.width / 2 - n.width / 2, v = s.y + s.height / 2 - n.height / 2, p = s[l] / 2 - n[l] / 2;
4233
+ const o = H1(e), i = Sa(e), l = Ta(i), r = mt(e), d = o === "y", u = s.x + s.width / 2 - n.width / 2, v = s.y + s.height / 2 - n.height / 2, p = s[l] / 2 - n[l] / 2;
4234
4234
  let C;
4235
4235
  switch (r) {
4236
4236
  case "top":
@@ -4404,7 +4404,7 @@ const p3 = function(a) {
4404
4404
  } = V1(a, e);
4405
4405
  if ((t = o.arrow) != null && t.alignmentOffset)
4406
4406
  return {};
4407
- const g = ht(n), b = ht(l) === l, L = await (r.isRTL == null ? void 0 : r.isRTL(d.floating)), U = p || (b || !$ ? [Xt(l)] : r3(l));
4407
+ const g = mt(n), b = mt(l) === l, L = await (r.isRTL == null ? void 0 : r.isRTL(d.floating)), U = p || (b || !$ ? [Xt(l)] : r3(l));
4408
4408
  !p && w !== "none" && U.push(...d3(l, $, w, L));
4409
4409
  const W = [l, ...U], D = await Ea(e, A), K = [];
4410
4410
  let te = ((s = o.flip) == null ? void 0 : s.overflows) || [];
@@ -4465,7 +4465,7 @@ const p3 = function(a) {
4465
4465
  apply: i = () => {
4466
4466
  },
4467
4467
  ...l
4468
- } = V1(a, e), r = await Ea(e, l), d = ht(t), u = u1(t), v = H1(t) === "y", {
4468
+ } = V1(a, e), r = await Ea(e, l), d = mt(t), u = u1(t), v = H1(t) === "y", {
4469
4469
  width: p,
4470
4470
  height: C
4471
4471
  } = s.floating;
@@ -4538,11 +4538,11 @@ function D1(a) {
4538
4538
  return t.transform !== "none" || t.perspective !== "none" || (t.containerType ? t.containerType !== "normal" : !1) || !e && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !e && (t.filter ? t.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((s) => (t.willChange || "").includes(s)) || ["paint", "layout", "strict", "content"].some((s) => (t.contain || "").includes(s));
4539
4539
  }
4540
4540
  function C3(a) {
4541
- let e = mt(a);
4541
+ let e = Ct(a);
4542
4542
  for (; Pe(e) && !d1(e); ) {
4543
4543
  if (D1(e))
4544
4544
  return e;
4545
- e = mt(e);
4545
+ e = Ct(e);
4546
4546
  }
4547
4547
  return null;
4548
4548
  }
@@ -4564,7 +4564,7 @@ function c1(a) {
4564
4564
  scrollTop: a.pageYOffset
4565
4565
  };
4566
4566
  }
4567
- function mt(a) {
4567
+ function Ct(a) {
4568
4568
  if (xe(a) === "html")
4569
4569
  return a;
4570
4570
  const e = (
@@ -4577,7 +4577,7 @@ function mt(a) {
4577
4577
  return sa(e) ? e.host : e;
4578
4578
  }
4579
4579
  function Oa(a) {
4580
- const e = mt(a);
4580
+ const e = Ct(a);
4581
4581
  return d1(e) ? a.ownerDocument ? a.ownerDocument.body : a.body : Pe(e) && Nt(e) ? e : Oa(e);
4582
4582
  }
4583
4583
  function Vt(a, e, t) {
@@ -4599,7 +4599,7 @@ function La(a) {
4599
4599
  function B1(a) {
4600
4600
  return je(a) ? a : a.contextElement;
4601
4601
  }
4602
- function vt(a) {
4602
+ function pt(a) {
4603
4603
  const e = B1(a);
4604
4604
  if (!Pe(e))
4605
4605
  return Ge(1);
@@ -4629,14 +4629,14 @@ function tt(a, e, t, s) {
4629
4629
  e === void 0 && (e = !1), t === void 0 && (t = !1);
4630
4630
  const n = a.getBoundingClientRect(), o = B1(a);
4631
4631
  let i = Ge(1);
4632
- e && (s ? je(s) && (i = vt(s)) : i = vt(a));
4632
+ e && (s ? je(s) && (i = pt(s)) : i = pt(a));
4633
4633
  const l = g3(o, t, s) ? Va(o) : Ge(0);
4634
4634
  let r = (n.left + l.x) / i.x, d = (n.top + l.y) / i.y, u = n.width / i.x, v = n.height / i.y;
4635
4635
  if (o) {
4636
4636
  const p = we(o), C = s && je(s) ? we(s) : s;
4637
4637
  let w = p.frameElement;
4638
4638
  for (; w && s && C !== p; ) {
4639
- const $ = vt(w), A = w.getBoundingClientRect(), g = Ee(w), b = A.left + (w.clientLeft + parseFloat(g.paddingLeft)) * $.x, L = A.top + (w.clientTop + parseFloat(g.paddingTop)) * $.y;
4639
+ const $ = pt(w), A = w.getBoundingClientRect(), g = Ee(w), b = A.left + (w.clientLeft + parseFloat(g.paddingLeft)) * $.x, L = A.top + (w.clientTop + parseFloat(g.paddingTop)) * $.y;
4640
4640
  r *= $.x, d *= $.y, u *= $.x, v *= $.y, r += b, d += L, w = we(w).frameElement;
4641
4641
  }
4642
4642
  }
@@ -4663,7 +4663,7 @@ function b3(a) {
4663
4663
  const r = Ge(0);
4664
4664
  if ((n || !n && s !== "fixed") && ((xe(t) !== "body" || Nt(o)) && (i = c1(t)), Pe(t))) {
4665
4665
  const d = tt(t);
4666
- l = vt(t), r.x = d.x + t.clientLeft, r.y = d.y + t.clientTop;
4666
+ l = pt(t), r.x = d.x + t.clientLeft, r.y = d.y + t.clientTop;
4667
4667
  }
4668
4668
  return {
4669
4669
  width: e.width * l.x,
@@ -4705,7 +4705,7 @@ function $3(a, e) {
4705
4705
  };
4706
4706
  }
4707
4707
  function M3(a, e) {
4708
- const t = tt(a, !0, e === "fixed"), s = t.top + a.clientTop, n = t.left + a.clientLeft, o = Pe(a) ? vt(a) : Ge(1), i = a.clientWidth * o.x, l = a.clientHeight * o.y, r = n * o.x, d = s * o.y;
4708
+ const t = tt(a, !0, e === "fixed"), s = t.top + a.clientTop, n = t.left + a.clientLeft, o = Pe(a) ? pt(a) : Ge(1), i = a.clientWidth * o.x, l = a.clientHeight * o.y, r = n * o.x, d = s * o.y;
4709
4709
  return {
4710
4710
  width: i,
4711
4711
  height: l,
@@ -4732,7 +4732,7 @@ function ia(a, e, t) {
4732
4732
  return Qt(s);
4733
4733
  }
4734
4734
  function Da(a, e) {
4735
- const t = mt(a);
4735
+ const t = Ct(a);
4736
4736
  return t === e || !je(t) || d1(t) ? !1 : Ee(t).position === "fixed" || Da(t, e);
4737
4737
  }
4738
4738
  function k3(a, e) {
@@ -4741,10 +4741,10 @@ function k3(a, e) {
4741
4741
  return t;
4742
4742
  let s = Vt(a, [], !1).filter((l) => je(l) && xe(l) !== "body"), n = null;
4743
4743
  const o = Ee(a).position === "fixed";
4744
- let i = o ? mt(a) : a;
4744
+ let i = o ? Ct(a) : a;
4745
4745
  for (; je(i) && !d1(i); ) {
4746
4746
  const l = Ee(i), r = D1(i);
4747
- !r && l.position === "fixed" && (n = null), (o ? !r && !n : !r && l.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || Nt(i) && !r && Da(a, i)) ? s = s.filter((u) => u !== i) : n = l, i = mt(i);
4747
+ !r && l.position === "fixed" && (n = null), (o ? !r && !n : !r && l.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || Nt(i) && !r && Da(a, i)) ? s = s.filter((u) => u !== i) : n = l, i = Ct(i);
4748
4748
  }
4749
4749
  return e.set(a, s), s;
4750
4750
  }
@@ -4828,7 +4828,7 @@ const O3 = {
4828
4828
  getElementRects: E3,
4829
4829
  getClientRects: y3,
4830
4830
  getDimensions: T3,
4831
- getScale: vt,
4831
+ getScale: pt,
4832
4832
  isElement: je,
4833
4833
  isRTL: I3
4834
4834
  };
@@ -5105,7 +5105,7 @@ function Z3(a, e, t) {
5105
5105
  disabledProp: se,
5106
5106
  searchStart: M,
5107
5107
  searchFilter: Y
5108
- } = $e(a), ie = nt().proxy, B = t.iv, S = t.ev, N = t.search, pe = t.clearSearch, Me = t.update, Ra = t.pointer, it = t.clearPointer, Ua = t.focus, ja = t.deactivate, ot = t.close, Za = t.localize, gt = Q([]), Fe = Q([]), Le = Q(!1), f1 = Q(null), v1 = Q(re.value && i.value === -1 ? 10 : i.value), j1 = y(() => r.value || d.value || !1), Fa = y(() => v.value !== void 0 ? v.value : p.value !== void 0 ? p.value : !0), qe = y(() => {
5108
+ } = $e(a), ie = nt().proxy, B = t.iv, S = t.ev, N = t.search, pe = t.clearSearch, Me = t.update, Ra = t.pointer, it = t.clearPointer, Ua = t.focus, ja = t.deactivate, ot = t.close, Za = t.localize, bt = Q([]), Fe = Q([]), Le = Q(!1), f1 = Q(null), v1 = Q(re.value && i.value === -1 ? 10 : i.value), j1 = y(() => r.value || d.value || !1), Fa = y(() => v.value !== void 0 ? v.value : p.value !== void 0 ? p.value : !0), qe = y(() => {
5109
5109
  if (z.value) {
5110
5110
  let _ = Rt.value || /* istanbul ignore next */
5111
5111
  [], H = [];
@@ -5117,12 +5117,12 @@ function Z3(a, e, t) {
5117
5117
  } else {
5118
5118
  let _ = g1(Fe.value || /* istanbul ignore next */
5119
5119
  []);
5120
- return gt.value.length && (_ = _.concat(gt.value)), _;
5120
+ return bt.value.length && (_ = _.concat(bt.value)), _;
5121
5121
  }
5122
5122
  }), Z1 = y(() => {
5123
5123
  let _ = qe.value;
5124
5124
  return ae.value && (_ = _.reverse()), lt.value.length && (_ = lt.value.concat(_)), _1(_);
5125
- }), bt = y(() => {
5125
+ }), yt = y(() => {
5126
5126
  let _ = Z1.value;
5127
5127
  return v1.value > 0 && (_ = _.slice(0, v1.value)), _;
5128
5128
  }), Rt = y(() => {
@@ -5130,9 +5130,9 @@ function Z3(a, e, t) {
5130
5130
  return [];
5131
5131
  let _ = [], H = Fe.value || /* istanbul ignore next */
5132
5132
  [];
5133
- return gt.value.length && _.push({
5133
+ return bt.value.length && _.push({
5134
5134
  [te.value]: " ",
5135
- [oe.value]: [...gt.value],
5135
+ [oe.value]: [...bt.value],
5136
5136
  __CREATE__: !0
5137
5137
  }), _.concat(H);
5138
5138
  }), qa = y(() => {
@@ -5153,8 +5153,8 @@ function Z3(a, e, t) {
5153
5153
  ...H,
5154
5154
  index: ne,
5155
5155
  group: !0,
5156
- [oe.value]: _1(he, !1).map((yt) => Object.assign({}, yt, H[se.value] ? { [se.value]: !0 } : {})),
5157
- __VISIBLE__: _1(he).map((yt) => Object.assign({}, yt, H[se.value] ? { [se.value]: !0 } : {}))
5156
+ [oe.value]: _1(he, !1).map((wt) => Object.assign({}, wt, H[se.value] ? { [se.value]: !0 } : {})),
5157
+ __VISIBLE__: _1(he).map((wt) => Object.assign({}, wt, H[se.value] ? { [se.value]: !0 } : {}))
5158
5158
  };
5159
5159
  }));
5160
5160
  }), p1 = y(() => {
@@ -5165,7 +5165,7 @@ function Z3(a, e, t) {
5165
5165
  case "tags":
5166
5166
  return !He(B.value) && B.value.length > 0;
5167
5167
  }
5168
- }), za = y(() => C !== void 0 && C.value !== void 0 ? C.value(B.value, ie) : B.value && B.value.length > 1 ? `${B.value.length} options selected` : "1 option selected"), Wa = y(() => !qe.value.length && !Le.value && !lt.value.length), Ya = y(() => qe.value.length > 0 && bt.value.length == 0 && (N.value && z.value || !z.value)), lt = y(() => j1.value === !1 || !N.value ? [] : an(N.value) !== -1 ? [] : [{
5168
+ }), za = y(() => C !== void 0 && C.value !== void 0 ? C.value(B.value, ie) : B.value && B.value.length > 1 ? `${B.value.length} options selected` : "1 option selected"), Wa = y(() => !qe.value.length && !Le.value && !lt.value.length), Ya = y(() => qe.value.length > 0 && yt.value.length == 0 && (N.value && z.value || !z.value)), lt = y(() => j1.value === !1 || !N.value ? [] : an(N.value) !== -1 ? [] : [{
5169
5169
  [D.value]: N.value,
5170
5170
  [Ve.value]: N.value,
5171
5171
  [u.value]: N.value,
@@ -5278,19 +5278,19 @@ function Z3(a, e, t) {
5278
5278
  }, C1 = (_) => {
5279
5279
  Re(_[D.value]) === void 0 && j1.value && (e.emit("tag", _[D.value], ie), e.emit("option", _[D.value], ie), e.emit("create", _[D.value], ie), Fa.value && sn(_), pe());
5280
5280
  }, Ja = () => {
5281
- n.value !== "single" && rt(bt.value.filter((_) => !_.disabled && !Ne(_)));
5281
+ n.value !== "single" && rt(yt.value.filter((_) => !_.disabled && !Ne(_)));
5282
5282
  }, en = (_) => _.find((H) => !Ne(H) && !H[se.value]) === void 0, tn = (_) => _.find((H) => !Ne(H)) === void 0, Re = (_) => qe.value[qe.value.map((H) => String(H[D.value])).indexOf(String(_))], an = (_, H = !0) => qe.value.map((ne) => parseInt(ne[Ve.value]) == ne[Ve.value] ? parseInt(ne[Ve.value]) : ne[Ve.value]).indexOf(
5283
5283
  parseInt(_) == _ ? parseInt(_) : _
5284
5284
  ), nn = (_) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && Ne(_), sn = (_) => {
5285
- gt.value.push(_);
5285
+ bt.value.push(_);
5286
5286
  }, on = (_) => I.value ? _.filter(
5287
5287
  (H) => N.value ? H.__VISIBLE__.length : H[oe.value].length
5288
5288
  ) : _.filter((H) => N.value ? H.__VISIBLE__.length : !0), _1 = (_, H = !0) => {
5289
5289
  let ne = _;
5290
5290
  if (N.value && L.value) {
5291
5291
  let he = Y.value;
5292
- he || (he = (yt, Q4) => {
5293
- let G1 = $1(Za(yt[Ve.value]), de.value);
5292
+ he || (he = (wt, Q4) => {
5293
+ let G1 = $1(Za(wt[Ve.value]), de.value);
5294
5294
  return M.value ? G1.startsWith($1(N.value, de.value)) : G1.indexOf($1(N.value, de.value)) !== -1;
5295
5295
  }), ne = ne.filter(he);
5296
5296
  }
@@ -5341,7 +5341,7 @@ function Z3(a, e, t) {
5341
5341
  f1.value = ue(N, (_) => {
5342
5342
  _.length < b.value || !_ && b.value !== 0 || (Le.value = !0, U.value && (Fe.value = []), setTimeout(() => {
5343
5343
  _ == N.value && s.value(N.value, ie).then((H) => {
5344
- (_ == N.value || !N.value) && (Fe.value = H, Ra.value = bt.value.filter((ne) => ne[se.value] !== !0)[0] || null, Le.value = !1);
5344
+ (_ == N.value || !N.value) && (Fe.value = H, Ra.value = yt.value.filter((ne) => ne[se.value] !== !0)[0] || null, Le.value = !1);
5345
5345
  }).catch(
5346
5346
  /* istanbul ignore next */
5347
5347
  (H) => {
@@ -5373,8 +5373,8 @@ function Z3(a, e, t) {
5373
5373
  typeof a.options == "function" ? g.value && (!H || _ && _.toString() !== H.toString()) && jt() : (Fe.value = a.options, Object.keys(B.value).length || Ut(), b1());
5374
5374
  }), ue(u, b1), {
5375
5375
  pfo: Z1,
5376
- fo: bt,
5377
- filteredOptions: bt,
5376
+ fo: yt,
5377
+ filteredOptions: yt,
5378
5378
  hasSelected: p1,
5379
5379
  multipleLabelText: za,
5380
5380
  eo: qe,
@@ -6677,7 +6677,7 @@ const ye = /* @__PURE__ */ x({
6677
6677
  appendTo: {}
6678
6678
  },
6679
6679
  setup(a) {
6680
- const e = a, t = ft(() => e.appendTo), s = Q();
6680
+ const e = a, t = vt(() => e.appendTo), s = Q();
6681
6681
  return e.detached && D3({
6682
6682
  multiselect: s,
6683
6683
  appendTo: t.value
@@ -6838,7 +6838,7 @@ const b5 = { class: "ao-tasks" }, y5 = { class: "ao-tasks__list" }, w5 = ["id",
6838
6838
  onChange: (A) => d(A, C.id)
6839
6839
  }, {
6840
6840
  tag: j(({ option: A, handleTagRemove: g }) => [
6841
- T(_t, {
6841
+ T(gt, {
6842
6842
  "user-name": A.label,
6843
6843
  "avatar-url": A.avatar,
6844
6844
  "is-closable": !0,
@@ -7015,7 +7015,7 @@ const H5 = { class: "ao-comment" }, D5 = { class: "ao-comment__body" }, P5 = { c
7015
7015
  }), (A, g) => {
7016
7016
  var b;
7017
7017
  return c(), m("li", H5, [
7018
- s.value ? (c(), R(_t, {
7018
+ s.value ? (c(), R(gt, {
7019
7019
  key: 0,
7020
7020
  "avatar-url": (b = A.user) == null ? void 0 : b.avatarUrl,
7021
7021
  "user-name": s.value,
@@ -7096,7 +7096,7 @@ const U5 = {
7096
7096
  Oe(() => {
7097
7097
  n.value && (n.value.scrollTop = n.value.scrollHeight);
7098
7098
  });
7099
- const o = ft(t.newComment), i = y({
7099
+ const o = vt(t.newComment), i = y({
7100
7100
  get() {
7101
7101
  return o.value;
7102
7102
  },
@@ -7490,7 +7490,7 @@ const Y5 = {
7490
7490
  option: z,
7491
7491
  handleTagRemove: ae
7492
7492
  }) => [
7493
- T(_t, {
7493
+ T(gt, {
7494
7494
  "user-name": z.label,
7495
7495
  "avatar-url": z.avatar,
7496
7496
  "is-closable": !0,
@@ -7646,7 +7646,7 @@ const R7 = /* @__PURE__ */ x({
7646
7646
  },
7647
7647
  emits: ["update:rule", "close"],
7648
7648
  setup(a, { emit: e }) {
7649
- const t = a, s = ft(
7649
+ const t = a, s = vt(
7650
7650
  t.rule.itemType || me.ACTIVITIES
7651
7651
  ), n = y({
7652
7652
  get() {
@@ -7680,14 +7680,14 @@ const R7 = /* @__PURE__ */ x({
7680
7680
  value: L.id,
7681
7681
  label: L.name
7682
7682
  }));
7683
- }), r = ft(t.rule.comparator), d = y({
7683
+ }), r = vt(t.rule.comparator), d = y({
7684
7684
  get() {
7685
7685
  return r.value;
7686
7686
  },
7687
7687
  set(g) {
7688
7688
  e("update:rule", { ...t.rule, comparator: g });
7689
7689
  }
7690
- }), u = y(() => Object.values(bd)), v = ft(t.rule.trigger), p = y({
7690
+ }), u = y(() => Object.values(bd)), v = vt(t.rule.trigger), p = y({
7691
7691
  get() {
7692
7692
  return v.value;
7693
7693
  },
@@ -7806,7 +7806,7 @@ const U7 = { class: "ao-template-rules__body" }, j7 = { class: "ao-template-rule
7806
7806
  }));
7807
7807
  }
7808
7808
  });
7809
- function pt(a, e, t) {
7809
+ function ht(a, e, t) {
7810
7810
  const s = a.length, n = a.at(-1), o = n ? Te.LexoRank.parse(n.rank).genNext() : Te.LexoRank.middle();
7811
7811
  return {
7812
7812
  name: t(`template.defaultName.${e}`, { idx: s + 1 }),
@@ -7895,7 +7895,7 @@ const F7 = {
7895
7895
  }), C = () => {
7896
7896
  if (!n.value)
7897
7897
  return;
7898
- const { name: I, rank: V } = pt(
7898
+ const { name: I, rank: V } = ht(
7899
7899
  n.value.phases,
7900
7900
  "phase",
7901
7901
  s
@@ -7935,7 +7935,7 @@ const F7 = {
7935
7935
  }, b = (I) => {
7936
7936
  if (!i.value)
7937
7937
  return;
7938
- const { name: V, rank: Z } = pt(
7938
+ const { name: V, rank: Z } = ht(
7939
7939
  i.value.milestones,
7940
7940
  "milestone",
7941
7941
  s
@@ -7971,7 +7971,7 @@ const F7 = {
7971
7971
  const { milestoneId: V } = I;
7972
7972
  if (!l.value)
7973
7973
  return;
7974
- const { name: Z, rank: se } = pt(
7974
+ const { name: Z, rank: se } = ht(
7975
7975
  l.value.activities,
7976
7976
  "activity",
7977
7977
  s
@@ -8055,7 +8055,7 @@ const F7 = {
8055
8055
  return n.value ? (c(), m("div", F7, [
8056
8056
  T(r1, {
8057
8057
  "can-go-back": !0,
8058
- onGoBack: V[1] || (V[1] = (S) => I.$router.push({ name: F(St).TEMPLATES_LIST }))
8058
+ onGoBack: V[1] || (V[1] = (S) => I.$router.push({ name: F(ft).TEMPLATES_LIST }))
8059
8059
  }, {
8060
8060
  primary: j(() => [
8061
8061
  T(Ce, {
@@ -8423,7 +8423,7 @@ const h9 = { class: "ao-project-phase" }, m9 = {
8423
8423
  const n = (v) => {
8424
8424
  e("updatePhase", { id: t.phase.id, name: v });
8425
8425
  }, o = y(() => t.phase.milestones.map((v) => f0(v, t.closedStatus))), i = (v) => {
8426
- const { name: p, rank: C } = pt(o.value ?? [], "milestone", s);
8426
+ const { name: p, rank: C } = ht(o.value ?? [], "milestone", s);
8427
8427
  e("addMilestone", { name: p, rank: C, phaseId: v });
8428
8428
  }, l = (v) => {
8429
8429
  e("updateMilestone", v);
@@ -8697,7 +8697,7 @@ const Ba = /* @__PURE__ */ P(V9, [["render", D9], ["__scopeId", "data-v-8f286655
8697
8697
  const t = a, { t: s } = st(), n = y(
8698
8698
  () => t.phases.flatMap((E) => E.milestones)
8699
8699
  ), o = () => {
8700
- const { name: E, rank: J } = pt(t.phases, "phase", s);
8700
+ const { name: E, rank: J } = ht(t.phases, "phase", s);
8701
8701
  e("addPhase", { name: E, rank: J, projectId: t.project.id });
8702
8702
  }, i = (E) => {
8703
8703
  e("updatePhase", E);
@@ -8940,7 +8940,7 @@ const R9 = { class: "ao-card-feed__header" }, U9 = {
8940
8940
  key: w.id
8941
8941
  }, [
8942
8942
  w ? (c(), m("li", K9, [
8943
- T(_t, {
8943
+ T(gt, {
8944
8944
  "user-name": l(w),
8945
8945
  "avatar-url": w.avatarUrl,
8946
8946
  "is-closable": !0,
@@ -9021,7 +9021,7 @@ const s4 = { class: "ao-project-milestone" }, i4 = { class: "ao-project-mileston
9021
9021
  const r = (p) => {
9022
9022
  e("close", p);
9023
9023
  }, d = () => {
9024
- const { name: p, rank: C } = pt(l.value ?? [], "activity", s);
9024
+ const { name: p, rank: C } = ht(l.value ?? [], "activity", s);
9025
9025
  e("addActivity", {
9026
9026
  milestoneId: t.milestoneId,
9027
9027
  name: p,
@@ -9234,7 +9234,7 @@ function f4(a) {
9234
9234
  function Jt(a) {
9235
9235
  return typeof a == "function" ? a() : F(a);
9236
9236
  }
9237
- const v4 = typeof window < "u", p4 = (a) => a != null, Tt = () => {
9237
+ const v4 = typeof window < "u", p4 = (a) => a != null, St = () => {
9238
9238
  };
9239
9239
  function h4(a, e) {
9240
9240
  function t(...s) {
@@ -9245,9 +9245,9 @@ function h4(a, e) {
9245
9245
  return t;
9246
9246
  }
9247
9247
  function m4(a, e = {}) {
9248
- let t, s, n = Tt;
9248
+ let t, s, n = St;
9249
9249
  const o = (l) => {
9250
- clearTimeout(l), n(), n = Tt;
9250
+ clearTimeout(l), n(), n = St;
9251
9251
  };
9252
9252
  return (l) => {
9253
9253
  const r = Jt(a), d = Jt(e.maxWait);
@@ -9293,7 +9293,7 @@ function y4(a, e, t = {}) {
9293
9293
  const w = Jt(a);
9294
9294
  return (Array.isArray(w) ? w : [w]).map(M1).filter(p4);
9295
9295
  });
9296
- let u = Tt;
9296
+ let u = St;
9297
9297
  const v = Q(l), p = r.value ? ue(
9298
9298
  () => [d.value, M1(s), v.value],
9299
9299
  ([w, $]) => {
@@ -9308,11 +9308,11 @@ function y4(a, e, t = {}) {
9308
9308
  }
9309
9309
  );
9310
9310
  w.forEach((g) => g && A.observe(g)), u = () => {
9311
- A.disconnect(), u = Tt;
9311
+ A.disconnect(), u = St;
9312
9312
  };
9313
9313
  },
9314
9314
  { immediate: l, flush: "post" }
9315
- ) : Tt, C = () => {
9315
+ ) : St, C = () => {
9316
9316
  u(), p(), v.value = !1;
9317
9317
  };
9318
9318
  return f4(C), {
@@ -9566,7 +9566,7 @@ const P4 = { class: "ao-feed" }, B4 = { class: "ao-feed__filters" }, N4 = { clas
9566
9566
  },
9567
9567
  emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "update:searchText", "clear:searchText", "update:showsArchivedActivities", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
9568
9568
  setup(a, { emit: e }) {
9569
- const t = a, { t: s } = st(), n = ft(t, "activities"), { selectActivity: o, selectedActivity: i } = D4(n), l = (M) => {
9569
+ const t = a, { t: s } = st(), n = vt(t, "activities"), { selectActivity: o, selectedActivity: i } = D4(n), l = (M) => {
9570
9570
  o(M), e("selectActivity", M);
9571
9571
  }, r = Q({}), d = Q(!1), u = Q(!1);
9572
9572
  ue(
@@ -9740,7 +9740,7 @@ const P4 = { class: "ao-feed" }, B4 = { class: "ao-feed__filters" }, N4 = { clas
9740
9740
  "onUpdate:modelValue": Y[3] || (Y[3] = (B) => C(F(dt).assignee, B))
9741
9741
  }, {
9742
9742
  tag: j(({ option: B, handleTagRemove: S }) => [
9743
- T(_t, {
9743
+ T(gt, {
9744
9744
  "user-name": B.label,
9745
9745
  "avatar-url": B.avatar,
9746
9746
  "is-closable": !0,
@@ -9871,24 +9871,25 @@ const P4 = { class: "ao-feed" }, B4 = { class: "ao-feed__filters" }, N4 = { clas
9871
9871
  };
9872
9872
  }
9873
9873
  });
9874
- const St = {
9874
+ const ft = {
9875
9875
  TEMPLATES: "templates",
9876
9876
  TEMPLATE_DETAILS: "template_details",
9877
9877
  TEMPLATES_LIST: "templates_list"
9878
9878
  }, o8 = (a, e = {}) => [
9879
9879
  {
9880
9880
  path: a,
9881
- name: St.TEMPLATES,
9881
+ name: ft.TEMPLATES,
9882
+ redirect: { name: ft.TEMPLATES_LIST },
9882
9883
  ...e,
9883
9884
  children: [
9884
9885
  {
9885
9886
  path: "",
9886
- name: St.TEMPLATES_LIST,
9887
+ name: ft.TEMPLATES_LIST,
9887
9888
  component: X4
9888
9889
  },
9889
9890
  {
9890
9891
  path: ":templateId/:phaseId?/:milestoneId?/:activityId?",
9891
- name: St.TEMPLATE_DETAILS,
9892
+ name: ft.TEMPLATE_DETAILS,
9892
9893
  component: x7,
9893
9894
  props: !0
9894
9895
  }
@@ -10009,7 +10010,7 @@ const St = {
10009
10010
  "updated-by": d.updatedBy,
10010
10011
  onUpdateTitle: (v) => o(d.id, v),
10011
10012
  onClick: (v) => l.$router.push({
10012
- name: F(St).TEMPLATE_DETAILS,
10013
+ name: F(ft).TEMPLATE_DETAILS,
10013
10014
  params: { templateId: d.id }
10014
10015
  })
10015
10016
  }, null, 8, ["id", "title", "phases", "milestones", "activities", "updated-at", "updated-by", "onUpdateTitle", "onClick"])
@@ -10038,5 +10039,5 @@ export {
10038
10039
  wd as ruleDurationUnits,
10039
10040
  yd as ruleTriggerTypes,
10040
10041
  me as templateItemType,
10041
- St as templateRouteNames
10042
+ ft as templateRouteNames
10042
10043
  };