@26lights/orcha 0.38.12 → 0.38.13

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 Y, openBlock as p, createBlock as P, unref as Q, mergeProps as He, createElementBlock as m, createElementVNode as f, pushScopeId as Oi, popScopeId as Ei, createStaticVNode as Ii, computed as M, resolveDynamicComponent as ht, normalizeClass as G, renderSlot as te, toDisplayString as x, createCommentVNode as E, ref as ee, watch as de, nextTick as De, withKeys as dt, toHandlers as Li, withCtx as W, createTextVNode as Fa, createVNode as T, normalizeStyle as Ua, withModifiers as ve, createSlots as Za, Fragment as he, renderList as _e, onMounted as xt, onBeforeUnmount as Tn, onUnmounted as ks, Teleport as jt, toRefs as Ae, getCurrentInstance as Mt, toRef as Pt, normalizeProps as pa, guardReactiveProps as va, withDirectives as Ue, vShow as Hi, onUpdated as Di, vModelText as Ge, resolveComponent as Ke, getCurrentScope as Pi, onScopeDispose as Vi, toHandlerKey as Bi } from "vue";
1
+ import { defineComponent as Y, openBlock as p, createBlock as P, unref as J, mergeProps as He, createElementBlock as m, createElementVNode as f, pushScopeId as Oi, popScopeId as Ei, createStaticVNode as Ii, computed as M, resolveDynamicComponent as ht, normalizeClass as G, renderSlot as te, toDisplayString as x, createCommentVNode as E, ref as ee, watch as de, nextTick as De, withKeys as dt, toHandlers as Li, withCtx as W, createTextVNode as Fa, createVNode as T, normalizeStyle as Ua, withModifiers as ve, createSlots as Za, Fragment as he, renderList as _e, onMounted as xt, onBeforeUnmount as Tn, onUnmounted as ks, Teleport as jt, toRefs as Me, getCurrentInstance as Mt, toRef as Pt, normalizeProps as pa, guardReactiveProps as va, withDirectives as Ue, vShow as Hi, onUpdated as Di, vModelText as Ge, resolveComponent as Ke, getCurrentScope as Pi, onScopeDispose as Vi, toHandlerKey as Bi } from "vue";
2
2
  import { RouterView as Ri } from "vue-router";
3
3
  import mt from "vuedraggable";
4
4
  const S8 = /* @__PURE__ */ Y({
@@ -7,7 +7,7 @@ const S8 = /* @__PURE__ */ Y({
7
7
  templates: {}
8
8
  },
9
9
  setup(t) {
10
- return (e, a) => (p(), P(Q(Ri), He({ templates: e.templates }, e.$attrs), null, 16, ["templates"]));
10
+ return (e, a) => (p(), P(J(Ri), He({ templates: e.templates }, e.$attrs), null, 16, ["templates"]));
11
11
  }
12
12
  }), N = (t, e) => {
13
13
  const a = t.__vccOpts || t;
@@ -1285,16 +1285,16 @@ const ye = /* @__PURE__ */ Y({
1285
1285
  {
1286
1286
  [`ao-title--${g.color}`]: !!g.color,
1287
1287
  "ao-title--editable": g.isEditable,
1288
- "ao-field__input ao-title--editing": Q(n),
1289
- "ao-title--readonly": !Q(n)
1288
+ "ao-field__input ao-title--editing": J(n),
1289
+ "ao-title--readonly": !J(n)
1290
1290
  }
1291
1291
  ],
1292
- type: Q(n) ? "text" : null,
1293
- value: Q(n) ? g.title : null,
1292
+ type: J(n) ? "text" : null,
1293
+ value: J(n) ? g.title : null,
1294
1294
  tabindex: "0",
1295
1295
  onKeyup: dt(h, ["enter"])
1296
1296
  }, Li(c.value), {
1297
- onKeydown: dt(Q(v), ["esc"])
1297
+ onKeydown: dt(J(v), ["esc"])
1298
1298
  }), {
1299
1299
  default: W(() => [
1300
1300
  Fa(x(g.title), 1)
@@ -2742,27 +2742,27 @@ function jn(t, e, a) {
2742
2742
  weekStartsOn: z,
2743
2743
  locale: U,
2744
2744
  _originalDate: X
2745
- }, oe = I.match(X0).map(function(J) {
2746
- var O = J[0];
2745
+ }, se = I.match(X0).map(function(Q) {
2746
+ var O = Q[0];
2747
2747
  if (O === "p" || O === "P") {
2748
2748
  var k = r0[O];
2749
- return k(J, U.formatLong);
2749
+ return k(Q, U.formatLong);
2750
2750
  }
2751
- return J;
2752
- }).join("").match(G0).map(function(J) {
2753
- if (J === "''")
2751
+ return Q;
2752
+ }).join("").match(G0).map(function(Q) {
2753
+ if (Q === "''")
2754
2754
  return "'";
2755
- var O = J[0];
2755
+ var O = Q[0];
2756
2756
  if (O === "'")
2757
- return t3(J);
2757
+ return t3(Q);
2758
2758
  var k = n0[O];
2759
2759
  if (k)
2760
- return !(a != null && a.useAdditionalWeekYearTokens) && d0(J) && dn(J, e, String(t)), !(a != null && a.useAdditionalDayOfYearTokens) && c0(J) && dn(J, e, String(t)), k(S, J, U.localize, j);
2760
+ return !(a != null && a.useAdditionalWeekYearTokens) && d0(Q) && dn(Q, e, String(t)), !(a != null && a.useAdditionalDayOfYearTokens) && c0(Q) && dn(Q, e, String(t)), k(S, Q, U.localize, j);
2761
2761
  if (O.match(e3))
2762
2762
  throw new RangeError("Format string contains an unescaped latin alphabet character `" + O + "`");
2763
- return J;
2763
+ return Q;
2764
2764
  }).join("");
2765
- return oe;
2765
+ return se;
2766
2766
  }
2767
2767
  function t3(t) {
2768
2768
  var e = t.match(Q0);
@@ -2906,7 +2906,7 @@ function m3(t, e, a) {
2906
2906
  function C3(t, e) {
2907
2907
  return e >= 0 && e <= 59;
2908
2908
  }
2909
- var Le = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ie = {}, Fn = {}, aa = {}, ha = {}, Yt = {}, za = {};
2909
+ var Le = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, we = {}, Fn = {}, aa = {}, ha = {}, Yt = {}, za = {};
2910
2910
  Object.defineProperty(za, "__esModule", { value: !0 });
2911
2911
  za.lexoHelper = void 0;
2912
2912
  za.lexoHelper = {
@@ -2947,7 +2947,7 @@ ma.default = _3;
2947
2947
  Object.defineProperty(Yt, "__esModule", { value: !0 });
2948
2948
  Yt.LexoInteger = void 0;
2949
2949
  const Ma = za, y3 = ma;
2950
- class se {
2950
+ class ne {
2951
2951
  constructor(e, a, s) {
2952
2952
  this.sys = e, this.sign = a, this.mag = s;
2953
2953
  }
@@ -2958,24 +2958,24 @@ class se {
2958
2958
  let i = o.length - 1;
2959
2959
  for (let r = 0; i >= 0; ++r)
2960
2960
  o[r] = a.toDigit(s.charAt(i)), --i;
2961
- return se.make(a, n, o);
2961
+ return ne.make(a, n, o);
2962
2962
  }
2963
2963
  static zero(e) {
2964
- return new se(e, 0, se.ZERO_MAG);
2964
+ return new ne(e, 0, ne.ZERO_MAG);
2965
2965
  }
2966
2966
  static one(e) {
2967
- return se.make(e, 1, se.ONE_MAG);
2967
+ return ne.make(e, 1, ne.ONE_MAG);
2968
2968
  }
2969
2969
  static make(e, a, s) {
2970
2970
  let n;
2971
2971
  for (n = s.length; n > 0 && s[n - 1] === 0; --n)
2972
2972
  ;
2973
2973
  if (n === 0)
2974
- return se.zero(e);
2974
+ return ne.zero(e);
2975
2975
  if (n === s.length)
2976
- return new se(e, a, s);
2976
+ return new ne(e, a, s);
2977
2977
  const o = new Array(n).fill(0);
2978
- return Ma.lexoHelper.arrayCopy(s, 0, o, 0, n), new se(e, a, o);
2978
+ return Ma.lexoHelper.arrayCopy(s, 0, o, 0, n), new ne(e, a, o);
2979
2979
  }
2980
2980
  static add(e, a, s) {
2981
2981
  const n = Math.max(a.length, s.length), o = new Array(n).fill(0);
@@ -2987,7 +2987,7 @@ class se {
2987
2987
  ++i;
2988
2988
  o[r] = u;
2989
2989
  }
2990
- return se.extendWithCarry(o, i);
2990
+ return ne.extendWithCarry(o, i);
2991
2991
  }
2992
2992
  static extendWithCarry(e, a) {
2993
2993
  if (a > 0) {
@@ -2997,8 +2997,8 @@ class se {
2997
2997
  return e;
2998
2998
  }
2999
2999
  static subtract(e, a, s) {
3000
- const n = se.complement(e, s, a.length), o = se.add(e, a, n);
3001
- return o[o.length - 1] = 0, se.add(e, o, se.ONE_MAG);
3000
+ const n = ne.complement(e, s, a.length), o = ne.add(e, a, n);
3001
+ return o[o.length - 1] = 0, ne.add(e, o, ne.ONE_MAG);
3002
3002
  }
3003
3003
  static multiply(e, a, s) {
3004
3004
  const n = new Array(a.length + s.length).fill(0);
@@ -3040,8 +3040,8 @@ class se {
3040
3040
  let s;
3041
3041
  return this.sign === -1 ? (s = this.negate(), s.subtract(e).negate()) : (s = e.negate(), this.subtract(s));
3042
3042
  }
3043
- const a = se.add(this.sys, this.mag, e.mag);
3044
- return se.make(this.sys, this.sign, a);
3043
+ const a = ne.add(this.sys, this.mag, e.mag);
3044
+ return ne.make(this.sys, this.sign, a);
3045
3045
  }
3046
3046
  subtract(e) {
3047
3047
  if (this.checkSystem(e), this.isZero())
@@ -3052,8 +3052,8 @@ class se {
3052
3052
  let s;
3053
3053
  return this.sign === -1 ? (s = this.negate(), s.add(e).negate()) : (s = e.negate(), this.add(s));
3054
3054
  }
3055
- const a = se.compare(this.mag, e.mag);
3056
- return a === 0 ? se.zero(this.sys) : a < 0 ? se.make(this.sys, this.sign === -1 ? 1 : -1, se.subtract(this.sys, e.mag, this.mag)) : se.make(this.sys, this.sign === -1 ? -1 : 1, se.subtract(this.sys, this.mag, e.mag));
3055
+ const a = ne.compare(this.mag, e.mag);
3056
+ return a === 0 ? ne.zero(this.sys) : a < 0 ? ne.make(this.sys, this.sign === -1 ? 1 : -1, ne.subtract(this.sys, e.mag, this.mag)) : ne.make(this.sys, this.sign === -1 ? -1 : 1, ne.subtract(this.sys, this.mag, e.mag));
3057
3057
  }
3058
3058
  multiply(e) {
3059
3059
  if (this.checkSystem(e), this.isZero())
@@ -3061,14 +3061,14 @@ class se {
3061
3061
  if (e.isZero())
3062
3062
  return e;
3063
3063
  if (this.isOneish())
3064
- return this.sign === e.sign ? se.make(this.sys, 1, e.mag) : se.make(this.sys, -1, e.mag);
3064
+ return this.sign === e.sign ? ne.make(this.sys, 1, e.mag) : ne.make(this.sys, -1, e.mag);
3065
3065
  if (e.isOneish())
3066
- return this.sign === e.sign ? se.make(this.sys, 1, this.mag) : se.make(this.sys, -1, this.mag);
3067
- const a = se.multiply(this.sys, this.mag, e.mag);
3068
- return this.sign === e.sign ? se.make(this.sys, 1, a) : se.make(this.sys, -1, a);
3066
+ return this.sign === e.sign ? ne.make(this.sys, 1, this.mag) : ne.make(this.sys, -1, this.mag);
3067
+ const a = ne.multiply(this.sys, this.mag, e.mag);
3068
+ return this.sign === e.sign ? ne.make(this.sys, 1, a) : ne.make(this.sys, -1, a);
3069
3069
  }
3070
3070
  negate() {
3071
- return this.isZero() ? this : se.make(this.sys, this.sign === 1 ? -1 : 1, this.mag);
3071
+ return this.isZero() ? this : ne.make(this.sys, this.sign === 1 ? -1 : 1, this.mag);
3072
3072
  }
3073
3073
  shiftLeft(e = 1) {
3074
3074
  if (e === 0)
@@ -3076,19 +3076,19 @@ class se {
3076
3076
  if (e < 0)
3077
3077
  return this.shiftRight(Math.abs(e));
3078
3078
  const a = new Array(this.mag.length + e).fill(0);
3079
- return Ma.lexoHelper.arrayCopy(this.mag, 0, a, e, this.mag.length), se.make(this.sys, this.sign, a);
3079
+ return Ma.lexoHelper.arrayCopy(this.mag, 0, a, e, this.mag.length), ne.make(this.sys, this.sign, a);
3080
3080
  }
3081
3081
  shiftRight(e = 1) {
3082
3082
  if (this.mag.length - e <= 0)
3083
- return se.zero(this.sys);
3083
+ return ne.zero(this.sys);
3084
3084
  const a = new Array(this.mag.length - e).fill(0);
3085
- return Ma.lexoHelper.arrayCopy(this.mag, e, a, 0, a.length), se.make(this.sys, this.sign, a);
3085
+ return Ma.lexoHelper.arrayCopy(this.mag, e, a, 0, a.length), ne.make(this.sys, this.sign, a);
3086
3086
  }
3087
3087
  complement() {
3088
3088
  return this.complementDigits(this.mag.length);
3089
3089
  }
3090
3090
  complementDigits(e) {
3091
- return se.make(this.sys, this.sign, se.complement(this.sys, this.mag, e));
3091
+ return ne.make(this.sys, this.sign, ne.complement(this.sys, this.mag, e));
3092
3092
  }
3093
3093
  isZero() {
3094
3094
  return this.sign === 0 && this.mag.length === 1 && this.mag[0] === 0;
@@ -3106,12 +3106,12 @@ class se {
3106
3106
  return 1;
3107
3107
  if (this.sign === -1) {
3108
3108
  if (e.sign === -1) {
3109
- const a = se.compare(this.mag, e.mag);
3109
+ const a = ne.compare(this.mag, e.mag);
3110
3110
  return a === -1 ? 1 : a === 1 ? -1 : 0;
3111
3111
  }
3112
3112
  return -1;
3113
3113
  }
3114
- return this.sign === 1 ? e.sign === 1 ? se.compare(this.mag, e.mag) : 1 : e.sign === -1 ? 1 : e.sign === 1 ? -1 : 0;
3114
+ return this.sign === 1 ? e.sign === 1 ? ne.compare(this.mag, e.mag) : 1 : e.sign === -1 ? 1 : e.sign === 1 ? -1 : 0;
3115
3115
  }
3116
3116
  getSystem() {
3117
3117
  return this.sys;
@@ -3140,43 +3140,43 @@ class se {
3140
3140
  throw new Error("Expected numbers of same numeral sys");
3141
3141
  }
3142
3142
  }
3143
- Yt.LexoInteger = se;
3144
- se.ZERO_MAG = [0];
3145
- se.ONE_MAG = [1];
3146
- se.NEGATIVE_SIGN = -1;
3147
- se.ZERO_SIGN = 0;
3148
- se.POSITIVE_SIGN = 1;
3143
+ Yt.LexoInteger = ne;
3144
+ ne.ZERO_MAG = [0];
3145
+ ne.ONE_MAG = [1];
3146
+ ne.NEGATIVE_SIGN = -1;
3147
+ ne.ZERO_SIGN = 0;
3148
+ ne.POSITIVE_SIGN = 1;
3149
3149
  Object.defineProperty(ha, "__esModule", { value: !0 });
3150
3150
  ha.LexoDecimal = void 0;
3151
3151
  const sa = Yt, b3 = ma;
3152
- class Oe {
3152
+ class Ee {
3153
3153
  constructor(e, a) {
3154
3154
  this.mag = e, this.sig = a;
3155
3155
  }
3156
3156
  static half(e) {
3157
3157
  const a = e.getBase() / 2 | 0;
3158
- return Oe.make(sa.LexoInteger.make(e, 1, [a]), 1);
3158
+ return Ee.make(sa.LexoInteger.make(e, 1, [a]), 1);
3159
3159
  }
3160
3160
  static parse(e, a) {
3161
3161
  const s = e.indexOf(a.getRadixPointChar());
3162
3162
  if (e.lastIndexOf(a.getRadixPointChar()) !== s)
3163
3163
  throw new Error("More than one " + a.getRadixPointChar());
3164
3164
  if (s < 0)
3165
- return Oe.make(sa.LexoInteger.parse(e, a), 0);
3165
+ return Ee.make(sa.LexoInteger.parse(e, a), 0);
3166
3166
  const n = e.substring(0, s) + e.substring(s + 1);
3167
- return Oe.make(sa.LexoInteger.parse(n, a), e.length - 1 - s);
3167
+ return Ee.make(sa.LexoInteger.parse(n, a), e.length - 1 - s);
3168
3168
  }
3169
3169
  static from(e) {
3170
- return Oe.make(e, 0);
3170
+ return Ee.make(e, 0);
3171
3171
  }
3172
3172
  static make(e, a) {
3173
3173
  if (e.isZero())
3174
- return new Oe(e, 0);
3174
+ return new Ee(e, 0);
3175
3175
  let s = 0;
3176
3176
  for (let i = 0; i < a && e.getMag(i) === 0; ++i)
3177
3177
  ++s;
3178
3178
  const n = e.shiftRight(s), o = a - s;
3179
- return new Oe(n, o);
3179
+ return new Ee(n, o);
3180
3180
  }
3181
3181
  getSystem() {
3182
3182
  return this.mag.getSystem();
@@ -3187,7 +3187,7 @@ class Oe {
3187
3187
  a = a.shiftLeft();
3188
3188
  for (; s > o; )
3189
3189
  n = n.shiftLeft(), ++o;
3190
- return Oe.make(a.add(n), s);
3190
+ return Ee.make(a.add(n), s);
3191
3191
  }
3192
3192
  subtract(e) {
3193
3193
  let a = this.mag, s = this.sig, n = e.mag, o;
@@ -3195,10 +3195,10 @@ class Oe {
3195
3195
  a = a.shiftLeft();
3196
3196
  for (; s > o; )
3197
3197
  n = n.shiftLeft(), ++o;
3198
- return Oe.make(a.subtract(n), s);
3198
+ return Ee.make(a.subtract(n), s);
3199
3199
  }
3200
3200
  multiply(e) {
3201
- return Oe.make(this.mag.multiply(e.mag), this.sig + e.sig);
3201
+ return Ee.make(this.mag.multiply(e.mag), this.sig + e.sig);
3202
3202
  }
3203
3203
  floor() {
3204
3204
  return this.mag.shiftRight(this.sig);
@@ -3226,7 +3226,7 @@ class Oe {
3226
3226
  e < 0 && (e = 0);
3227
3227
  const s = this.sig - e;
3228
3228
  let n = this.mag.shiftRight(s);
3229
- return a && (n = n.add(sa.LexoInteger.one(n.getSystem()))), Oe.make(n, e);
3229
+ return a && (n = n.add(sa.LexoInteger.one(n.getSystem()))), Ee.make(n, e);
3230
3230
  }
3231
3231
  compareTo(e) {
3232
3232
  if (this === e)
@@ -3252,7 +3252,7 @@ class Oe {
3252
3252
  return this.format();
3253
3253
  }
3254
3254
  }
3255
- ha.LexoDecimal = Oe;
3255
+ ha.LexoDecimal = Ee;
3256
3256
  var Ta = {}, pn;
3257
3257
  function Un() {
3258
3258
  if (pn)
@@ -3629,7 +3629,7 @@ function Wn() {
3629
3629
  o !== "default" && !Object.prototype.hasOwnProperty.call(n, o) && e(n, s, o);
3630
3630
  };
3631
3631
  Object.defineProperty(t, "__esModule", { value: !0 }), a(Fn, t), a(Ms, t);
3632
- })(Ie);
3632
+ })(we);
3633
3633
  function qn(t) {
3634
3634
  return (t == null ? void 0 : t.reduce((e, a) => {
3635
3635
  var s;
@@ -3660,15 +3660,15 @@ function Nt(t, e) {
3660
3660
  if (e === 0)
3661
3661
  if (t.length > 1) {
3662
3662
  const a = t[e + 1];
3663
- return Ie.LexoRank.parse(a.rank).genPrev().format();
3663
+ return we.LexoRank.parse(a.rank).genPrev().format();
3664
3664
  } else
3665
- return Ie.LexoRank.middle().format();
3665
+ return we.LexoRank.middle().format();
3666
3666
  else if (e === t.length - 1) {
3667
3667
  const a = t[e - 1];
3668
- return Ie.LexoRank.parse(a.rank).genNext().format();
3668
+ return we.LexoRank.parse(a.rank).genNext().format();
3669
3669
  } else {
3670
3670
  const a = t[e - 1], s = t[e + 1];
3671
- return Ie.LexoRank.parse(s.rank).between(Ie.LexoRank.parse(a.rank)).format();
3671
+ return we.LexoRank.parse(s.rank).between(we.LexoRank.parse(a.rank)).format();
3672
3672
  }
3673
3673
  }
3674
3674
  function Ts(t, e = "dd/MM/yyyy") {
@@ -3717,7 +3717,7 @@ const zn = (t) => {
3717
3717
  class: G(s.value),
3718
3718
  title: i.userName
3719
3719
  }, [
3720
- i.avatarUrl ? E("", !0) : (p(), m("span", I3, x(Q(n)), 1)),
3720
+ i.avatarUrl ? E("", !0) : (p(), m("span", I3, x(J(n)), 1)),
3721
3721
  i.avatarUrl ? (p(), m("img", {
3722
3722
  key: 1,
3723
3723
  className: "ao-avatar__image",
@@ -4014,7 +4014,7 @@ const l5 = /* @__PURE__ */ Y({
4014
4014
  });
4015
4015
  }
4016
4016
  };
4017
- return (r, l) => r.phase ? (p(), P(Q(mt), {
4017
+ return (r, l) => r.phase ? (p(), P(J(mt), {
4018
4018
  key: 0,
4019
4019
  "model-value": r.phase.milestones,
4020
4020
  class: "ao-templates__list",
@@ -4104,7 +4104,7 @@ const l5 = /* @__PURE__ */ Y({
4104
4104
  });
4105
4105
  }
4106
4106
  };
4107
- return (r, l) => r.milestone ? (p(), P(Q(mt), {
4107
+ return (r, l) => r.milestone ? (p(), P(J(mt), {
4108
4108
  key: 0,
4109
4109
  "model-value": r.milestone.activities,
4110
4110
  title: r.$t("template.activities.title"),
@@ -4189,7 +4189,7 @@ const l5 = /* @__PURE__ */ Y({
4189
4189
  ], 2));
4190
4190
  }
4191
4191
  });
4192
- const ua = Math.min, Ee = Math.max, Va = Math.round, Oa = Math.floor, pt = (t) => ({
4192
+ const ua = Math.min, Ie = Math.max, Va = Math.round, Oa = Math.floor, pt = (t) => ({
4193
4193
  x: t,
4194
4194
  y: t
4195
4195
  }), b5 = {
@@ -4485,23 +4485,23 @@ const I5 = function(t) {
4485
4485
  placement: j
4486
4486
  }
4487
4487
  };
4488
- let oe = (X = Z.filter((J) => J.overflows[0] <= 0).sort((J, O) => J.overflows[1] - O.overflows[1])[0]) == null ? void 0 : X.placement;
4489
- if (!oe)
4488
+ let se = (X = Z.filter((Q) => Q.overflows[0] <= 0).sort((Q, O) => Q.overflows[1] - O.overflows[1])[0]) == null ? void 0 : X.placement;
4489
+ if (!se)
4490
4490
  switch (h) {
4491
4491
  case "bestFit": {
4492
4492
  var ae;
4493
- const J = (ae = Z.map((O) => [O.placement, O.overflows.filter((k) => k > 0).reduce((k, F) => k + F, 0)]).sort((O, k) => O[1] - k[1])[0]) == null ? void 0 : ae[0];
4494
- J && (oe = J);
4493
+ const Q = (ae = Z.map((O) => [O.placement, O.overflows.filter((k) => k > 0).reduce((k, F) => k + F, 0)]).sort((O, k) => O[1] - k[1])[0]) == null ? void 0 : ae[0];
4494
+ Q && (se = Q);
4495
4495
  break;
4496
4496
  }
4497
4497
  case "initialPlacement":
4498
- oe = r;
4498
+ se = r;
4499
4499
  break;
4500
4500
  }
4501
- if (n !== oe)
4501
+ if (n !== se)
4502
4502
  return {
4503
4503
  reset: {
4504
- placement: oe
4504
+ placement: se
4505
4505
  }
4506
4506
  };
4507
4507
  }
@@ -4538,8 +4538,8 @@ const I5 = function(t) {
4538
4538
  C = u || _ ? ua(b, L) : L;
4539
4539
  }
4540
4540
  if (_ && !u) {
4541
- const L = Ee(l.left, 0), U = Ee(l.right, 0), Z = Ee(l.top, 0), z = Ee(l.bottom, 0);
4542
- v ? D = d - 2 * (L !== 0 || U !== 0 ? L + U : Ee(l.left, l.right)) : C = h - 2 * (Z !== 0 || z !== 0 ? Z + z : Ee(l.top, l.bottom));
4541
+ const L = Ie(l.left, 0), U = Ie(l.right, 0), Z = Ie(l.top, 0), z = Ie(l.bottom, 0);
4542
+ v ? D = d - 2 * (L !== 0 || U !== 0 ? L + U : Ie(l.left, l.right)) : C = h - 2 * (Z !== 0 || z !== 0 ? Z + z : Ie(l.top, l.bottom));
4543
4543
  }
4544
4544
  await i({
4545
4545
  ...e,
@@ -4558,7 +4558,7 @@ const I5 = function(t) {
4558
4558
  function vt(t) {
4559
4559
  return Gn(t) ? (t.nodeName || "").toLowerCase() : "#document";
4560
4560
  }
4561
- function ke(t) {
4561
+ function Se(t) {
4562
4562
  var e;
4563
4563
  return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
4564
4564
  }
@@ -4567,16 +4567,16 @@ function st(t) {
4567
4567
  return (e = (Gn(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
4568
4568
  }
4569
4569
  function Gn(t) {
4570
- return t instanceof Node || t instanceof ke(t).Node;
4570
+ return t instanceof Node || t instanceof Se(t).Node;
4571
4571
  }
4572
4572
  function tt(t) {
4573
- return t instanceof Element || t instanceof ke(t).Element;
4573
+ return t instanceof Element || t instanceof Se(t).Element;
4574
4574
  }
4575
4575
  function Ze(t) {
4576
- return t instanceof HTMLElement || t instanceof ke(t).HTMLElement;
4576
+ return t instanceof HTMLElement || t instanceof Se(t).HTMLElement;
4577
4577
  }
4578
4578
  function hn(t) {
4579
- return typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof ke(t).ShadowRoot;
4579
+ return typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof Se(t).ShadowRoot;
4580
4580
  }
4581
4581
  function ga(t) {
4582
4582
  const {
@@ -4610,7 +4610,7 @@ function Ja(t) {
4610
4610
  return ["html", "body", "#document"].includes(vt(t));
4611
4611
  }
4612
4612
  function Ve(t) {
4613
- return ke(t).getComputedStyle(t);
4613
+ return Se(t).getComputedStyle(t);
4614
4614
  }
4615
4615
  function es(t) {
4616
4616
  return tt(t) ? {
@@ -4640,7 +4640,7 @@ function Xn(t) {
4640
4640
  function ca(t, e, a) {
4641
4641
  var s;
4642
4642
  e === void 0 && (e = []), a === void 0 && (a = !0);
4643
- const n = Xn(t), o = n === ((s = t.ownerDocument) == null ? void 0 : s.body), i = ke(n);
4643
+ const n = Xn(t), o = n === ((s = t.ownerDocument) == null ? void 0 : s.body), i = Se(n);
4644
4644
  return o ? e.concat(i, i.visualViewport || [], ga(n) ? n : [], i.frameElement && a ? ca(i.frameElement) : []) : e.concat(n, ca(n));
4645
4645
  }
4646
4646
  function Qn(t) {
@@ -4673,14 +4673,14 @@ function Vt(t) {
4673
4673
  }
4674
4674
  const P5 = /* @__PURE__ */ pt(0);
4675
4675
  function Jn(t) {
4676
- const e = ke(t);
4676
+ const e = Se(t);
4677
4677
  return !Ds() || !e.visualViewport ? P5 : {
4678
4678
  x: e.visualViewport.offsetLeft,
4679
4679
  y: e.visualViewport.offsetTop
4680
4680
  };
4681
4681
  }
4682
4682
  function V5(t, e, a) {
4683
- return e === void 0 && (e = !1), !a || e && a !== ke(t) ? !1 : e;
4683
+ return e === void 0 && (e = !1), !a || e && a !== Se(t) ? !1 : e;
4684
4684
  }
4685
4685
  function St(t, e, a, s) {
4686
4686
  e === void 0 && (e = !1), a === void 0 && (a = !1);
@@ -4690,11 +4690,11 @@ function St(t, e, a, s) {
4690
4690
  const r = V5(o, a, s) ? Jn(o) : pt(0);
4691
4691
  let l = (n.left + r.x) / i.x, c = (n.top + r.y) / i.y, u = n.width / i.x, v = n.height / i.y;
4692
4692
  if (o) {
4693
- const d = ke(o), h = s && tt(s) ? ke(s) : s;
4693
+ const d = Se(o), h = s && tt(s) ? Se(s) : s;
4694
4694
  let w = d.frameElement;
4695
4695
  for (; w && s && h !== d; ) {
4696
4696
  const g = Vt(w), b = w.getBoundingClientRect(), A = Ve(w), _ = b.left + (w.clientLeft + parseFloat(A.paddingLeft)) * g.x, C = b.top + (w.clientTop + parseFloat(A.paddingTop)) * g.y;
4697
- l *= g.x, c *= g.y, u *= g.x, v *= g.y, l += _, c += C, w = ke(w).frameElement;
4697
+ l *= g.x, c *= g.y, u *= g.x, v *= g.y, l += _, c += C, w = Se(w).frameElement;
4698
4698
  }
4699
4699
  }
4700
4700
  return Ra({
@@ -4736,10 +4736,10 @@ function ei(t) {
4736
4736
  return St(st(t)).left + es(t).scrollLeft;
4737
4737
  }
4738
4738
  function j5(t) {
4739
- const e = st(t), a = es(t), s = t.ownerDocument.body, n = Ee(e.scrollWidth, e.clientWidth, s.scrollWidth, s.clientWidth), o = Ee(e.scrollHeight, e.clientHeight, s.scrollHeight, s.clientHeight);
4739
+ const e = st(t), a = es(t), s = t.ownerDocument.body, n = Ie(e.scrollWidth, e.clientWidth, s.scrollWidth, s.clientWidth), o = Ie(e.scrollHeight, e.clientHeight, s.scrollHeight, s.clientHeight);
4740
4740
  let i = -a.scrollLeft + ei(t);
4741
4741
  const r = -a.scrollTop;
4742
- return Ve(s).direction === "rtl" && (i += Ee(e.clientWidth, s.clientWidth) - n), {
4742
+ return Ve(s).direction === "rtl" && (i += Ie(e.clientWidth, s.clientWidth) - n), {
4743
4743
  width: n,
4744
4744
  height: o,
4745
4745
  x: i,
@@ -4747,7 +4747,7 @@ function j5(t) {
4747
4747
  };
4748
4748
  }
4749
4749
  function N5(t, e) {
4750
- const a = ke(t), s = st(t), n = a.visualViewport;
4750
+ const a = Se(t), s = st(t), n = a.visualViewport;
4751
4751
  let o = s.clientWidth, i = s.clientHeight, r = 0, l = 0;
4752
4752
  if (n) {
4753
4753
  o = n.width, i = n.height;
@@ -4814,7 +4814,7 @@ function Z5(t) {
4814
4814
  } = t;
4815
4815
  const i = [...a === "clippingAncestors" ? U5(e, this._c) : [].concat(a), s], r = i[0], l = i.reduce((c, u) => {
4816
4816
  const v = mn(e, u, n);
4817
- return c.top = Ee(v.top, c.top), c.right = ua(v.right, c.right), c.bottom = ua(v.bottom, c.bottom), c.left = Ee(v.left, c.left), c;
4817
+ return c.top = Ie(v.top, c.top), c.right = ua(v.right, c.right), c.bottom = ua(v.bottom, c.bottom), c.left = Ie(v.left, c.left), c;
4818
4818
  }, mn(e, r, n));
4819
4819
  return {
4820
4820
  width: l.right - l.left,
@@ -4850,7 +4850,7 @@ function Cn(t, e) {
4850
4850
  return !Ze(t) || Ve(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
4851
4851
  }
4852
4852
  function ai(t, e) {
4853
- const a = ke(t);
4853
+ const a = Se(t);
4854
4854
  if (!Ze(t))
4855
4855
  return a;
4856
4856
  let s = Cn(t, e);
@@ -4907,7 +4907,7 @@ function K5(t, e) {
4907
4907
  return;
4908
4908
  const h = Oa(u), w = Oa(n.clientWidth - (c + v)), g = Oa(n.clientHeight - (u + d)), b = Oa(c), _ = {
4909
4909
  rootMargin: -h + "px " + -w + "px " + -g + "px " + -b + "px",
4910
- threshold: Ee(0, ua(1, l)) || 1
4910
+ threshold: Ie(0, ua(1, l)) || 1
4911
4911
  };
4912
4912
  let C = !0;
4913
4913
  function D(I) {
@@ -4983,7 +4983,7 @@ const X5 = (t, e, a) => {
4983
4983
  }, Q5 = (t) => {
4984
4984
  const e = ee(!1), a = ee(), s = ee(), n = ee(0);
4985
4985
  function o() {
4986
- const v = Q(t.appendTo);
4986
+ const v = J(t.appendTo);
4987
4987
  return v ? typeof v == "string" ? document.getElementById(v) ?? document.body : v : document.getElementById("floatingElements") ?? document.body;
4988
4988
  }
4989
4989
  const i = o(), r = ee(() => {
@@ -5050,7 +5050,7 @@ function Ne(t) {
5050
5050
  return [null, void 0].indexOf(t) !== -1;
5051
5051
  }
5052
5052
  function J5(t, e, a) {
5053
- const { object: s, valueProp: n, mode: o } = Ae(t), i = Mt().proxy, r = a.iv, l = (v, d = !0) => {
5053
+ const { object: s, valueProp: n, mode: o } = Me(t), i = Mt().proxy, r = a.iv, l = (v, d = !0) => {
5054
5054
  r.value = u(v);
5055
5055
  const h = c(v);
5056
5056
  e.emit("change", h, i), d && (e.emit("input", h), e.emit("update:modelValue", h));
@@ -5060,7 +5060,7 @@ function J5(t, e, a) {
5060
5060
  };
5061
5061
  }
5062
5062
  function e7(t, e) {
5063
- const { value: a, modelValue: s, mode: n, valueProp: o } = Ae(t), i = ee(n.value !== "single" ? [] : {}), r = M(() => s && s.value !== void 0 ? s.value : a.value), l = M(() => n.value === "single" ? i.value[o.value] : i.value.map((u) => u[o.value])), c = M(() => n.value !== "single" ? i.value.map((u) => u[o.value]).join(",") : i.value[o.value]);
5063
+ const { value: a, modelValue: s, mode: n, valueProp: o } = Me(t), i = ee(n.value !== "single" ? [] : {}), r = M(() => s && s.value !== void 0 ? s.value : a.value), l = M(() => n.value === "single" ? i.value[o.value] : i.value.map((u) => u[o.value])), c = M(() => n.value !== "single" ? i.value.map((u) => u[o.value]).join(",") : i.value[o.value]);
5064
5064
  return {
5065
5065
  iv: i,
5066
5066
  internalValue: i,
@@ -5071,7 +5071,7 @@ function e7(t, e) {
5071
5071
  };
5072
5072
  }
5073
5073
  function t7(t, e, a) {
5074
- const { regex: s } = Ae(t), n = Mt().proxy, o = a.isOpen, i = a.open, r = ee(null), l = () => {
5074
+ const { regex: s } = Me(t), n = Mt().proxy, o = a.isOpen, i = a.open, r = ee(null), l = () => {
5075
5075
  r.value = "";
5076
5076
  }, c = (d) => {
5077
5077
  r.value = d.target.value;
@@ -5099,7 +5099,7 @@ function t7(t, e, a) {
5099
5099
  };
5100
5100
  }
5101
5101
  function a7(t, e, a) {
5102
- const { groupSelect: s, mode: n, groups: o, disabledProp: i } = Ae(t), r = ee(null), l = (u) => {
5102
+ const { groupSelect: s, mode: n, groups: o, disabledProp: i } = Me(t), r = ee(null), l = (u) => {
5103
5103
  u === void 0 || u !== null && u[i.value] || o.value && u && u.group && (n.value === "single" || !s.value) || (r.value = u);
5104
5104
  };
5105
5105
  return {
@@ -5151,18 +5151,18 @@ function i7(t, e, a) {
5151
5151
  strict: ae,
5152
5152
  closeOnSelect: S,
5153
5153
  closeOnDeselect: j,
5154
- groups: oe,
5155
- reverse: J,
5154
+ groups: se,
5155
+ reverse: Q,
5156
5156
  infinite: O,
5157
5157
  groupOptions: k,
5158
5158
  groupHideEmpty: F,
5159
5159
  groupSelect: V,
5160
- onCreate: ne,
5160
+ onCreate: ie,
5161
5161
  disabledProp: y,
5162
5162
  searchStart: R,
5163
5163
  searchFilter: le
5164
- } = Ae(t), ie = Mt().proxy, q = a.iv, H = a.ev, K = a.search, fe = a.clearSearch, we = a.update, Kt = a.pointer, Gt = a.setPointer, nt = a.clearPointer, _a = a.focus, ns = a.deactivate, it = a.close, ya = a.localize, ot = ee([]), je = ee([]), Me = ee(!1), Be = ee(null), ze = ee(O.value && i.value === -1 ? 10 : i.value), Xt = M(() => l.value || c.value || !1), ba = M(() => v.value !== void 0 ? v.value : d.value !== void 0 ? d.value : !0), Te = M(() => {
5165
- if (oe.value) {
5164
+ } = Me(t), oe = Mt().proxy, q = a.iv, H = a.ev, K = a.search, fe = a.clearSearch, $e = a.update, Kt = a.pointer, Gt = a.setPointer, nt = a.clearPointer, _a = a.focus, ns = a.deactivate, it = a.close, ya = a.localize, ot = ee([]), je = ee([]), Te = ee(!1), Be = ee(null), ze = ee(O.value && i.value === -1 ? 10 : i.value), Xt = M(() => l.value || c.value || !1), ba = M(() => v.value !== void 0 ? v.value : d.value !== void 0 ? d.value : !0), Oe = M(() => {
5165
+ if (se.value) {
5166
5166
  let $ = _t.value || /* istanbul ignore next */
5167
5167
  [], B = [];
5168
5168
  return $.forEach((re) => {
@@ -5176,13 +5176,13 @@ function i7(t, e, a) {
5176
5176
  return ot.value.length && ($ = $.concat(ot.value)), $;
5177
5177
  }
5178
5178
  }), Qt = M(() => {
5179
- let $ = Te.value;
5180
- return J.value && ($ = $.reverse()), Ot.value.length && ($ = Ot.value.concat($)), cs($);
5179
+ let $ = Oe.value;
5180
+ return Q.value && ($ = $.reverse()), Ot.value.length && ($ = Ot.value.concat($)), cs($);
5181
5181
  }), rt = M(() => {
5182
5182
  let $ = Qt.value;
5183
5183
  return ze.value > 0 && ($ = $.slice(0, ze.value)), $;
5184
5184
  }), _t = M(() => {
5185
- if (!oe.value)
5185
+ if (!se.value)
5186
5186
  return [];
5187
5187
  let $ = [], B = je.value || /* istanbul ignore next */
5188
5188
  [];
@@ -5199,7 +5199,7 @@ function i7(t, e, a) {
5199
5199
  __CREATE__: !0
5200
5200
  }].concat($)), $;
5201
5201
  }), is = M(() => {
5202
- if (!oe.value)
5202
+ if (!se.value)
5203
5203
  return [];
5204
5204
  let $ = wa.value;
5205
5205
  return Ai(($ || /* istanbul ignore next */
@@ -5221,7 +5221,7 @@ function i7(t, e, a) {
5221
5221
  case "tags":
5222
5222
  return !Ne(q.value) && q.value.length > 0;
5223
5223
  }
5224
- }), pi = M(() => h !== void 0 && h.value !== void 0 ? h.value(q.value, ie) : q.value && q.value.length > 1 ? `${q.value.length} options selected` : "1 option selected"), vi = M(() => !Te.value.length && !Me.value && !Ot.value.length), fi = M(() => Te.value.length > 0 && rt.value.length == 0 && (K.value && oe.value || !oe.value)), Ot = M(() => Xt.value === !1 || !K.value ? [] : $i(K.value) !== -1 ? [] : [{
5224
+ }), pi = M(() => h !== void 0 && h.value !== void 0 ? h.value(q.value, oe) : q.value && q.value.length > 1 ? `${q.value.length} options selected` : "1 option selected"), vi = M(() => !Oe.value.length && !Te.value && !Ot.value.length), fi = M(() => Oe.value.length > 0 && rt.value.length == 0 && (K.value && se.value || !se.value)), Ot = M(() => Xt.value === !1 || !K.value ? [] : $i(K.value) !== -1 ? [] : [{
5225
5225
  [L.value]: K.value,
5226
5226
  [yt.value[0]]: K.value,
5227
5227
  [u.value]: K.value,
@@ -5234,17 +5234,17 @@ function i7(t, e, a) {
5234
5234
  case "tags":
5235
5235
  return [];
5236
5236
  }
5237
- }), mi = M(() => g.value || Me.value), Et = ($) => {
5237
+ }), mi = M(() => g.value || Te.value), Et = ($) => {
5238
5238
  switch (typeof $ != "object" && ($ = Ye($)), n.value) {
5239
5239
  case "single":
5240
- we($);
5240
+ $e($);
5241
5241
  break;
5242
5242
  case "multiple":
5243
5243
  case "tags":
5244
- we(q.value.concat($));
5244
+ $e(q.value.concat($));
5245
5245
  break;
5246
5246
  }
5247
- e.emit("select", Js($), $, ie);
5247
+ e.emit("select", Js($), $, oe);
5248
5248
  }, It = ($) => {
5249
5249
  switch (typeof $ != "object" && ($ = Ye($)), n.value) {
5250
5250
  case "single":
@@ -5252,10 +5252,10 @@ function i7(t, e, a) {
5252
5252
  break;
5253
5253
  case "tags":
5254
5254
  case "multiple":
5255
- we(Array.isArray($) ? q.value.filter((B) => $.map((re) => re[L.value]).indexOf(B[L.value]) === -1) : q.value.filter((B) => B[L.value] != $[L.value]));
5255
+ $e(Array.isArray($) ? q.value.filter((B) => $.map((re) => re[L.value]).indexOf(B[L.value]) === -1) : q.value.filter((B) => B[L.value] != $[L.value]));
5256
5256
  break;
5257
5257
  }
5258
- e.emit("deselect", Js($), $, ie);
5258
+ e.emit("deselect", Js($), $, oe);
5259
5259
  }, Js = ($) => w.value ? $ : $[L.value], en = ($) => {
5260
5260
  It($);
5261
5261
  }, Ci = ($, B) => {
@@ -5265,7 +5265,7 @@ function i7(t, e, a) {
5265
5265
  }
5266
5266
  en($);
5267
5267
  }, tn = () => {
5268
- we(hi.value), e.emit("clear", ie);
5268
+ $e(hi.value), e.emit("clear", oe);
5269
5269
  }, xe = ($) => {
5270
5270
  if ($.group !== void 0)
5271
5271
  return n.value === "single" ? !1 : wi($[k.value]) && $[k.value].length;
@@ -5278,9 +5278,9 @@ function i7(t, e, a) {
5278
5278
  }
5279
5279
  }, rs = ($) => $[y.value] === !0, ls = () => X === void 0 || X.value === -1 || !os.value && X.value > 0 ? !1 : q.value.length >= X.value, gi = ($) => {
5280
5280
  if (!rs($)) {
5281
- if (ne && ne.value && !xe($) && $.__CREATE__ && ($ = { ...$ }, delete $.__CREATE__, $ = ne.value($, ie), $ instanceof Promise)) {
5282
- Me.value = !0, $.then((B) => {
5283
- Me.value = !1, an(B);
5281
+ if (ie && ie.value && !xe($) && $.__CREATE__ && ($ = { ...$ }, delete $.__CREATE__, $ = ie.value($, oe), $ instanceof Promise)) {
5282
+ Te.value = !0, $.then((B) => {
5283
+ Te.value = !1, an(B);
5284
5284
  });
5285
5285
  return;
5286
5286
  }
@@ -5301,7 +5301,7 @@ function i7(t, e, a) {
5301
5301
  return;
5302
5302
  }
5303
5303
  if (ls()) {
5304
- e.emit("max", ie);
5304
+ e.emit("max", oe);
5305
5305
  return;
5306
5306
  }
5307
5307
  $ && (us($), Et($)), I.value && fe(), r.value && nt(), S.value && it();
@@ -5312,7 +5312,7 @@ function i7(t, e, a) {
5312
5312
  return;
5313
5313
  }
5314
5314
  if (ls()) {
5315
- e.emit("max", ie);
5315
+ e.emit("max", oe);
5316
5316
  return;
5317
5317
  }
5318
5318
  $ && us($), I.value && fe(), $ && Et($), r.value && nt(), S.value && it();
@@ -5332,10 +5332,10 @@ function i7(t, e, a) {
5332
5332
  S.value && ns();
5333
5333
  }
5334
5334
  }, us = ($) => {
5335
- Ye($[L.value]) === void 0 && Xt.value && (e.emit("tag", $[L.value], ie), e.emit("option", $[L.value], ie), e.emit("create", $[L.value], ie), ba.value && Si($), fe());
5335
+ Ye($[L.value]) === void 0 && Xt.value && (e.emit("tag", $[L.value], oe), e.emit("option", $[L.value], oe), e.emit("create", $[L.value], oe), ba.value && Si($), fe());
5336
5336
  }, yi = () => {
5337
5337
  n.value !== "single" && Et(rt.value.filter(($) => !$.disabled && !xe($)));
5338
- }, bi = ($) => $.find((B) => !xe(B) && !B[y.value]) === void 0, wi = ($) => $.find((B) => !xe(B)) === void 0, Ye = ($) => Te.value[Te.value.map((B) => String(B[L.value])).indexOf(String($))], $i = ($) => Te.value.findIndex((B) => yt.value.some((re) => (parseInt(B[re]) == B[re] ? parseInt(B[re]) : B[re]) === (parseInt($) == $ ? parseInt($) : $))), ki = ($) => ["tags", "multiple"].indexOf(n.value) !== -1 && r.value && xe($), Si = ($) => {
5338
+ }, bi = ($) => $.find((B) => !xe(B) && !B[y.value]) === void 0, wi = ($) => $.find((B) => !xe(B)) === void 0, Ye = ($) => Oe.value[Oe.value.map((B) => String(B[L.value])).indexOf(String($))], $i = ($) => Oe.value.findIndex((B) => yt.value.some((re) => (parseInt(B[re]) == B[re] ? parseInt(B[re]) : B[re]) === (parseInt($) == $ ? parseInt($) : $))), ki = ($) => ["tags", "multiple"].indexOf(n.value) !== -1 && r.value && xe($), Si = ($) => {
5339
5339
  ot.value.push($);
5340
5340
  }, Ai = ($) => F.value ? $.filter(
5341
5341
  (B) => K.value ? B.__VISIBLE__.length : B[k.value].length
@@ -5346,7 +5346,7 @@ function i7(t, e, a) {
5346
5346
  me || (me = (bt, nn, b8) => yt.value.some((Ti) => {
5347
5347
  let on = hs(ya(bt[Ti]), ae.value);
5348
5348
  return R.value ? on.startsWith(hs(nn, ae.value)) : on.indexOf(hs(nn, ae.value)) !== -1;
5349
- })), re = re.filter((bt) => me(bt, K.value, ie));
5349
+ })), re = re.filter((bt) => me(bt, K.value, oe));
5350
5350
  }
5351
5351
  return r.value && B && (re = re.filter((me) => !ki(me))), re;
5352
5352
  }, ds = ($) => {
@@ -5357,11 +5357,11 @@ function i7(t, e, a) {
5357
5357
  })), B = B.map((re) => typeof re == "object" ? re : { [L.value]: re, [yt.value[0]]: re, [u.value]: re }), B;
5358
5358
  }, $a = () => {
5359
5359
  Ne(H.value) || (q.value = Sa(H.value));
5360
- }, ka = ($) => (Me.value = !0, new Promise((B, re) => {
5361
- s.value(K.value, ie).then((me) => {
5362
- je.value = me || [], typeof $ == "function" && $(me), Me.value = !1;
5360
+ }, ka = ($) => (Te.value = !0, new Promise((B, re) => {
5361
+ s.value(K.value, oe).then((me) => {
5362
+ je.value = me || [], typeof $ == "function" && $(me), Te.value = !1;
5363
5363
  }).catch((me) => {
5364
- console.error(me), je.value = [], Me.value = !1;
5364
+ console.error(me), je.value = [], Te.value = !1;
5365
5365
  }).finally(() => {
5366
5366
  B();
5367
5367
  });
@@ -5393,9 +5393,9 @@ function i7(t, e, a) {
5393
5393
  [yt.value[0]]: B
5394
5394
  }), sn = () => {
5395
5395
  Be.value = de(K, ($) => {
5396
- $.length < _.value || !$ && _.value !== 0 || (Me.value = !0, D.value && (je.value = []), setTimeout(() => {
5397
- $ == K.value && s.value(K.value, ie).then((B) => {
5398
- ($ == K.value || !K.value) && (je.value = B, Kt.value = rt.value.filter((re) => re[y.value] !== !0)[0] || null, Me.value = !1);
5396
+ $.length < _.value || !$ && _.value !== 0 || (Te.value = !0, D.value && (je.value = []), setTimeout(() => {
5397
+ $ == K.value && s.value(K.value, oe).then((B) => {
5398
+ ($ == K.value || !K.value) && (je.value = B, Kt.value = rt.value.filter((re) => re[y.value] !== !0)[0] || null, Te.value = !1);
5399
5399
  }).catch(
5400
5400
  /* istanbul ignore next */
5401
5401
  (B) => {
@@ -5411,16 +5411,16 @@ function i7(t, e, a) {
5411
5411
  Be.value && Be.value(), $ >= 0 && sn();
5412
5412
  }), de(H, ($) => {
5413
5413
  if (Ne($)) {
5414
- we(Sa($), !1);
5414
+ $e(Sa($), !1);
5415
5415
  return;
5416
5416
  }
5417
5417
  switch (n.value) {
5418
5418
  case "single":
5419
- (w.value ? $[L.value] != q.value[L.value] : $ != q.value[L.value]) && we(Sa($), !1);
5419
+ (w.value ? $[L.value] != q.value[L.value] : $ != q.value[L.value]) && $e(Sa($), !1);
5420
5420
  break;
5421
5421
  case "multiple":
5422
5422
  case "tags":
5423
- n7(w.value ? $.map((B) => B[L.value]) : $, q.value.map((B) => B[L.value])) || we(Sa($), !1);
5423
+ n7(w.value ? $.map((B) => B[L.value]) : $, q.value.map((B) => B[L.value])) || $e(Sa($), !1);
5424
5424
  break;
5425
5425
  }
5426
5426
  }, { deep: !0 }), de(s, ($, B) => {
@@ -5433,15 +5433,15 @@ function i7(t, e, a) {
5433
5433
  filteredOptions: rt,
5434
5434
  hasSelected: os,
5435
5435
  multipleLabelText: pi,
5436
- eo: Te,
5437
- extendedOptions: Te,
5436
+ eo: Oe,
5437
+ extendedOptions: Oe,
5438
5438
  eg: _t,
5439
5439
  extendedGroups: _t,
5440
5440
  fg: is,
5441
5441
  filteredGroups: is,
5442
5442
  noOptions: vi,
5443
5443
  noResults: fi,
5444
- resolving: Me,
5444
+ resolving: Te,
5445
5445
  busy: mi,
5446
5446
  offset: ze,
5447
5447
  select: Et,
@@ -5472,23 +5472,23 @@ function o7(t, e, a) {
5472
5472
  groupSelect: c,
5473
5473
  disabledProp: u,
5474
5474
  groupOptions: v
5475
- } = Ae(t), d = a.fo, h = a.fg, w = a.handleOptionClick, g = a.handleGroupClick, b = a.search, A = a.pointer, _ = a.setPointer, C = a.clearPointer, D = a.multiselect, I = a.isOpen, L = M(() => d.value.filter((H) => !H[u.value])), U = M(() => h.value.filter((H) => !H[u.value])), Z = M(() => l.value !== "single" && c.value), z = M(() => A.value && A.value.group), X = M(() => ie(A.value)), ae = M(() => {
5475
+ } = Me(t), d = a.fo, h = a.fg, w = a.handleOptionClick, g = a.handleGroupClick, b = a.search, A = a.pointer, _ = a.setPointer, C = a.clearPointer, D = a.multiselect, I = a.isOpen, L = M(() => d.value.filter((H) => !H[u.value])), U = M(() => h.value.filter((H) => !H[u.value])), Z = M(() => l.value !== "single" && c.value), z = M(() => A.value && A.value.group), X = M(() => oe(A.value)), ae = M(() => {
5476
5476
  const H = z.value ? A.value : (
5477
5477
  /* istanbul ignore next */
5478
- ie(A.value)
5479
- ), K = U.value.map((we) => we[i.value]).indexOf(H[i.value]);
5478
+ oe(A.value)
5479
+ ), K = U.value.map(($e) => $e[i.value]).indexOf(H[i.value]);
5480
5480
  let fe = U.value[K - 1];
5481
5481
  return fe === void 0 && (fe = j.value), fe;
5482
5482
  }), S = M(() => {
5483
- let H = U.value.map((K) => K.label).indexOf(z.value ? A.value[i.value] : ie(A.value)[i.value]) + 1;
5483
+ let H = U.value.map((K) => K.label).indexOf(z.value ? A.value[i.value] : oe(A.value)[i.value]) + 1;
5484
5484
  return U.value.length <= H && (H = 0), U.value[H];
5485
- }), j = M(() => [...U.value].slice(-1)[0]), oe = M(() => A.value.__VISIBLE__.filter((H) => !H[u.value])[0]), J = M(() => {
5485
+ }), j = M(() => [...U.value].slice(-1)[0]), se = M(() => A.value.__VISIBLE__.filter((H) => !H[u.value])[0]), Q = M(() => {
5486
5486
  const H = X.value.__VISIBLE__.filter((K) => !K[u.value]);
5487
5487
  return H[H.map((K) => K[s.value]).indexOf(A.value[s.value]) - 1];
5488
5488
  }), O = M(() => {
5489
- const H = ie(A.value).__VISIBLE__.filter((K) => !K[u.value]);
5489
+ const H = oe(A.value).__VISIBLE__.filter((K) => !K[u.value]);
5490
5490
  return H[H.map((K) => K[s.value]).indexOf(A.value[s.value]) + 1];
5491
- }), k = M(() => [...ae.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), F = M(() => [...j.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), V = (H) => A.value && (!H.group && A.value[s.value] === H[s.value] || H.group !== void 0 && A.value[i.value] === H[i.value]) ? !0 : void 0, ne = () => {
5491
+ }), k = M(() => [...ae.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), F = M(() => [...j.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), V = (H) => A.value && (!H.group && A.value[s.value] === H[s.value] || H.group !== void 0 && A.value[i.value] === H[i.value]) ? !0 : void 0, ie = () => {
5492
5492
  _(L.value[0] || null);
5493
5493
  }, y = () => {
5494
5494
  !A.value || A.value[u.value] === !0 || (z.value ? g(A.value) : w(A.value));
@@ -5496,7 +5496,7 @@ function o7(t, e, a) {
5496
5496
  if (A.value === null)
5497
5497
  _((r.value && Z.value ? U.value[0].__CREATE__ ? L.value[0] : U.value[0] : L.value[0]) || null);
5498
5498
  else if (r.value && Z.value) {
5499
- let H = z.value ? oe.value : O.value;
5499
+ let H = z.value ? se.value : O.value;
5500
5500
  H === void 0 && (H = S.value, H.__CREATE__ && (H = H[v.value][0])), _(H || /* istanbul ignore next */
5501
5501
  null);
5502
5502
  } else {
@@ -5511,7 +5511,7 @@ function o7(t, e, a) {
5511
5511
  let H = L.value[L.value.length - 1];
5512
5512
  r.value && Z.value && (H = F.value, H === void 0 && (H = j.value)), _(H || null);
5513
5513
  } else if (r.value && Z.value) {
5514
- let H = z.value ? k.value : J.value;
5514
+ let H = z.value ? k.value : Q.value;
5515
5515
  H === void 0 && (H = z.value ? ae.value : X.value, H.__CREATE__ && (H = k.value, H === void 0 && (H = ae.value))), _(H || /* istanbul ignore next */
5516
5516
  null);
5517
5517
  } else {
@@ -5521,7 +5521,7 @@ function o7(t, e, a) {
5521
5521
  De(() => {
5522
5522
  q();
5523
5523
  });
5524
- }, ie = (H) => U.value.find((K) => K.__VISIBLE__.map((fe) => fe[s.value]).indexOf(H[s.value]) !== -1), q = () => {
5524
+ }, oe = (H) => U.value.find((K) => K.__VISIBLE__.map((fe) => fe[s.value]).indexOf(H[s.value]) !== -1), q = () => {
5525
5525
  let H = D.value.querySelector("[data-pointed]");
5526
5526
  if (!H)
5527
5527
  return;
@@ -5529,7 +5529,7 @@ function o7(t, e, a) {
5529
5529
  r.value && (K = z.value ? H.parentElement.parentElement.parentElement : H.parentElement.parentElement.parentElement.parentElement), H.offsetTop + H.offsetHeight > K.clientHeight + K.scrollTop && (K.scrollTop = H.offsetTop + H.offsetHeight - K.clientHeight), H.offsetTop < K.scrollTop && (K.scrollTop = H.offsetTop);
5530
5530
  };
5531
5531
  return de(b, (H) => {
5532
- o.value && (H.length && n.value ? ne() : C());
5532
+ o.value && (H.length && n.value ? ie() : C());
5533
5533
  }), de(I, (H) => {
5534
5534
  if (H) {
5535
5535
  let K = D.value.querySelectorAll("[data-selected]")[0];
@@ -5544,13 +5544,13 @@ function o7(t, e, a) {
5544
5544
  pointer: A,
5545
5545
  canPointGroups: Z,
5546
5546
  isPointed: V,
5547
- setPointerFirst: ne,
5547
+ setPointerFirst: ie,
5548
5548
  selectPointer: y,
5549
5549
  forwardPointer: R,
5550
5550
  backwardPointer: le
5551
5551
  };
5552
5552
  }
5553
- function Se(t) {
5553
+ function Ae(t) {
5554
5554
  if (t == null)
5555
5555
  return window;
5556
5556
  if (t.toString() !== "[object Window]") {
@@ -5560,17 +5560,17 @@ function Se(t) {
5560
5560
  return t;
5561
5561
  }
5562
5562
  function At(t) {
5563
- var e = Se(t).Element;
5563
+ var e = Ae(t).Element;
5564
5564
  return t instanceof e || t instanceof Element;
5565
5565
  }
5566
5566
  function Pe(t) {
5567
- var e = Se(t).HTMLElement;
5567
+ var e = Ae(t).HTMLElement;
5568
5568
  return t instanceof e || t instanceof HTMLElement;
5569
5569
  }
5570
5570
  function Vs(t) {
5571
5571
  if (typeof ShadowRoot > "u")
5572
5572
  return !1;
5573
- var e = Se(t).ShadowRoot;
5573
+ var e = Ae(t).ShadowRoot;
5574
5574
  return t instanceof e || t instanceof ShadowRoot;
5575
5575
  }
5576
5576
  var kt = Math.max, ja = Math.min, Zt = Math.round;
@@ -5587,7 +5587,7 @@ function Wt(t, e, a) {
5587
5587
  e === void 0 && (e = !1), a === void 0 && (a = !1);
5588
5588
  var s = t.getBoundingClientRect(), n = 1, o = 1;
5589
5589
  e && Pe(t) && (n = t.offsetWidth > 0 && Zt(s.width) / t.offsetWidth || 1, o = t.offsetHeight > 0 && Zt(s.height) / t.offsetHeight || 1);
5590
- var i = At(t) ? Se(t) : window, r = i.visualViewport, l = !si() && a, c = (s.left + (l && r ? r.offsetLeft : 0)) / n, u = (s.top + (l && r ? r.offsetTop : 0)) / o, v = s.width / n, d = s.height / o;
5590
+ var i = At(t) ? Ae(t) : window, r = i.visualViewport, l = !si() && a, c = (s.left + (l && r ? r.offsetLeft : 0)) / n, u = (s.top + (l && r ? r.offsetTop : 0)) / o, v = s.width / n, d = s.height / o;
5591
5591
  return {
5592
5592
  width: v,
5593
5593
  height: d,
@@ -5600,7 +5600,7 @@ function Wt(t, e, a) {
5600
5600
  };
5601
5601
  }
5602
5602
  function Bs(t) {
5603
- var e = Se(t), a = e.pageXOffset, s = e.pageYOffset;
5603
+ var e = Ae(t), a = e.pageXOffset, s = e.pageYOffset;
5604
5604
  return {
5605
5605
  scrollLeft: a,
5606
5606
  scrollTop: s
@@ -5613,7 +5613,7 @@ function r7(t) {
5613
5613
  };
5614
5614
  }
5615
5615
  function l7(t) {
5616
- return t === Se(t) || !Pe(t) ? Bs(t) : r7(t);
5616
+ return t === Ae(t) || !Pe(t) ? Bs(t) : r7(t);
5617
5617
  }
5618
5618
  function We(t) {
5619
5619
  return t ? (t.nodeName || "").toLowerCase() : null;
@@ -5628,7 +5628,7 @@ function Rs(t) {
5628
5628
  return Wt(gt(t)).left + Bs(t).scrollLeft;
5629
5629
  }
5630
5630
  function at(t) {
5631
- return Se(t).getComputedStyle(t);
5631
+ return Ae(t).getComputedStyle(t);
5632
5632
  }
5633
5633
  function js(t) {
5634
5634
  var e = at(t), a = e.overflow, s = e.overflowX, n = e.overflowY;
@@ -5682,7 +5682,7 @@ function ii(t) {
5682
5682
  function ia(t, e) {
5683
5683
  var a;
5684
5684
  e === void 0 && (e = []);
5685
- var s = ii(t), n = s === ((a = t.ownerDocument) == null ? void 0 : a.body), o = Se(s), i = n ? [o].concat(o.visualViewport || [], js(s) ? s : []) : s, r = e.concat(i);
5685
+ var s = ii(t), n = s === ((a = t.ownerDocument) == null ? void 0 : a.body), o = Ae(s), i = n ? [o].concat(o.visualViewport || [], js(s) ? s : []) : s, r = e.concat(i);
5686
5686
  return n ? r : (
5687
5687
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
5688
5688
  r.concat(ia(ts(i)))
@@ -5712,7 +5712,7 @@ function p7(t) {
5712
5712
  return null;
5713
5713
  }
5714
5714
  function as(t) {
5715
- for (var e = Se(t), a = gn(t); a && d7(a) && at(a).position === "static"; )
5715
+ for (var e = Ae(t), a = gn(t); a && d7(a) && at(a).position === "static"; )
5716
5716
  a = gn(a);
5717
5717
  return a && (We(a) === "html" || We(a) === "body" && at(a).position === "static") ? e : a || p7(t) || e;
5718
5718
  }
@@ -5771,7 +5771,7 @@ function O7(t) {
5771
5771
  });
5772
5772
  }
5773
5773
  function E7(t, e) {
5774
- var a = Se(t), s = gt(t), n = a.visualViewport, o = s.clientWidth, i = s.clientHeight, r = 0, l = 0;
5774
+ var a = Ae(t), s = gt(t), n = a.visualViewport, o = s.clientWidth, i = s.clientHeight, r = 0, l = 0;
5775
5775
  if (n) {
5776
5776
  o = n.width, i = n.height;
5777
5777
  var c = si();
@@ -5923,8 +5923,8 @@ function Fs(t, e) {
5923
5923
  if (d === na && ae) {
5924
5924
  var S = ae[n];
5925
5925
  Object.keys(X).forEach(function(j) {
5926
- var oe = [ft, qe].indexOf(j) >= 0 ? 1 : -1, J = [Re, qe].indexOf(j) >= 0 ? "y" : "x";
5927
- X[j] += S[J] * oe;
5926
+ var se = [ft, qe].indexOf(j) >= 0 ? 1 : -1, Q = [Re, qe].indexOf(j) >= 0 ? "y" : "x";
5927
+ X[j] += S[Q] * se;
5928
5928
  });
5929
5929
  }
5930
5930
  return X;
@@ -6044,7 +6044,7 @@ var Ea = {
6044
6044
  passive: !0
6045
6045
  };
6046
6046
  function j7(t) {
6047
- var e = t.state, a = t.instance, s = t.options, n = s.scroll, o = n === void 0 ? !0 : n, i = s.resize, r = i === void 0 ? !0 : i, l = Se(e.elements.popper), c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
6047
+ var e = t.state, a = t.instance, s = t.options, n = s.scroll, o = n === void 0 ? !0 : n, i = s.resize, r = i === void 0 ? !0 : i, l = Ae(e.elements.popper), c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
6048
6048
  return o && c.forEach(function(u) {
6049
6049
  u.addEventListener("scroll", a.update, Ea);
6050
6050
  }), r && l.addEventListener("resize", a.update, Ea), function() {
@@ -6102,7 +6102,7 @@ function $n(t) {
6102
6102
  var A = i.hasOwnProperty("x"), _ = i.hasOwnProperty("y"), C = Xe, D = Re, I = window;
6103
6103
  if (c) {
6104
6104
  var L = as(a), U = "clientHeight", Z = "clientWidth";
6105
- if (L === Se(a) && (L = gt(a), at(L).position !== "static" && r === "absolute" && (U = "scrollHeight", Z = "scrollWidth")), L = L, n === Re || (n === Xe || n === ft) && o === da) {
6105
+ if (L === Ae(a) && (L = gt(a), at(L).position !== "static" && r === "absolute" && (U = "scrollHeight", Z = "scrollWidth")), L = L, n === Re || (n === Xe || n === ft) && o === da) {
6106
6106
  D = qe;
6107
6107
  var z = v && L === I && I.visualViewport ? I.visualViewport.height : (
6108
6108
  // $FlowFixMe[prop-missing]
@@ -6124,7 +6124,7 @@ function $n(t) {
6124
6124
  }, c && Z7), S = u === !0 ? W7({
6125
6125
  x: h,
6126
6126
  y: g
6127
- }, Se(a)) : {
6127
+ }, Ae(a)) : {
6128
6128
  x: h,
6129
6129
  y: g
6130
6130
  };
@@ -6238,14 +6238,14 @@ function ep(t) {
6238
6238
  };
6239
6239
  if (L) {
6240
6240
  if (o) {
6241
- var j, oe = D === "y" ? Re : Xe, J = D === "y" ? qe : ft, O = D === "y" ? "height" : "width", k = L[D], F = k + b[oe], V = k - b[J], ne = h ? -Z[O] / 2 : 0, y = _ === qt ? U[O] : Z[O], R = _ === qt ? -Z[O] : -U[O], le = e.elements.arrow, ie = h && le ? ni(le) : {
6241
+ var j, se = D === "y" ? Re : Xe, Q = D === "y" ? qe : ft, O = D === "y" ? "height" : "width", k = L[D], F = k + b[se], V = k - b[Q], ie = h ? -Z[O] / 2 : 0, y = _ === qt ? U[O] : Z[O], R = _ === qt ? -Z[O] : -U[O], le = e.elements.arrow, oe = h && le ? ni(le) : {
6242
6242
  width: 0,
6243
6243
  height: 0
6244
- }, q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ui(), H = q[oe], K = q[J], fe = Ia(0, U[O], ie[O]), we = C ? U[O] / 2 - ne - fe - H - X.mainAxis : y - fe - H - X.mainAxis, Kt = C ? -U[O] / 2 + ne + fe + K + X.mainAxis : R + fe + K + X.mainAxis, Gt = e.elements.arrow && as(e.elements.arrow), nt = Gt ? D === "y" ? Gt.clientTop || 0 : Gt.clientLeft || 0 : 0, _a = (j = ae == null ? void 0 : ae[D]) != null ? j : 0, ns = k + we - _a - nt, it = k + Kt - _a, ya = Ia(h ? ja(F, ns) : F, k, h ? kt(V, it) : V);
6244
+ }, q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ui(), H = q[se], K = q[Q], fe = Ia(0, U[O], oe[O]), $e = C ? U[O] / 2 - ie - fe - H - X.mainAxis : y - fe - H - X.mainAxis, Kt = C ? -U[O] / 2 + ie + fe + K + X.mainAxis : R + fe + K + X.mainAxis, Gt = e.elements.arrow && as(e.elements.arrow), nt = Gt ? D === "y" ? Gt.clientTop || 0 : Gt.clientLeft || 0 : 0, _a = (j = ae == null ? void 0 : ae[D]) != null ? j : 0, ns = k + $e - _a - nt, it = k + Kt - _a, ya = Ia(h ? ja(F, ns) : F, k, h ? kt(V, it) : V);
6245
6245
  L[D] = ya, S[D] = ya - k;
6246
6246
  }
6247
6247
  if (r) {
6248
- var ot, je = D === "x" ? Re : Xe, Me = D === "x" ? qe : ft, Be = L[I], ze = I === "y" ? "height" : "width", Xt = Be + b[je], ba = Be - b[Me], Te = [Re, Xe].indexOf(A) !== -1, Qt = (ot = ae == null ? void 0 : ae[I]) != null ? ot : 0, rt = Te ? Xt : Be - U[ze] - Z[ze] - Qt + X.altAxis, _t = Te ? Be + U[ze] + Z[ze] - Qt - X.altAxis : ba, wa = h && Te ? J7(rt, Be, _t) : Ia(h ? rt : Xt, Be, h ? _t : ba);
6248
+ var ot, je = D === "x" ? Re : Xe, Te = D === "x" ? qe : ft, Be = L[I], ze = I === "y" ? "height" : "width", Xt = Be + b[je], ba = Be - b[Te], Oe = [Re, Xe].indexOf(A) !== -1, Qt = (ot = ae == null ? void 0 : ae[I]) != null ? ot : 0, rt = Oe ? Xt : Be - U[ze] - Z[ze] - Qt + X.altAxis, _t = Oe ? Be + U[ze] + Z[ze] - Qt - X.altAxis : ba, wa = h && Oe ? J7(rt, Be, _t) : Ia(h ? rt : Xt, Be, h ? _t : ba);
6249
6249
  L[I] = wa, S[I] = wa - Be;
6250
6250
  }
6251
6251
  e.modifiersData[s] = S;
@@ -6306,8 +6306,8 @@ function ip(t) {
6306
6306
  function op(t) {
6307
6307
  var e = t.state, a = t.options, s = t.name;
6308
6308
  if (!e.modifiersData[s]._skip) {
6309
- for (var n = a.mainAxis, o = n === void 0 ? !0 : n, i = a.altAxis, r = i === void 0 ? !0 : i, l = a.fallbackPlacements, c = a.padding, u = a.boundary, v = a.rootBoundary, d = a.altBoundary, h = a.flipVariations, w = h === void 0 ? !0 : h, g = a.allowedAutoPlacements, b = e.options.placement, A = ct(b), _ = A === b, C = l || (_ || !w ? [La(b)] : ip(b)), D = [b].concat(C).reduce(function(ie, q) {
6310
- return ie.concat(ct(q) === Ns ? np(e, {
6309
+ for (var n = a.mainAxis, o = n === void 0 ? !0 : n, i = a.altAxis, r = i === void 0 ? !0 : i, l = a.fallbackPlacements, c = a.padding, u = a.boundary, v = a.rootBoundary, d = a.altBoundary, h = a.flipVariations, w = h === void 0 ? !0 : h, g = a.allowedAutoPlacements, b = e.options.placement, A = ct(b), _ = A === b, C = l || (_ || !w ? [La(b)] : ip(b)), D = [b].concat(C).reduce(function(oe, q) {
6310
+ return oe.concat(ct(q) === Ns ? np(e, {
6311
6311
  placement: q,
6312
6312
  boundary: u,
6313
6313
  rootBoundary: v,
@@ -6316,17 +6316,17 @@ function op(t) {
6316
6316
  allowedAutoPlacements: g
6317
6317
  }) : q);
6318
6318
  }, []), I = e.rects.reference, L = e.rects.popper, U = /* @__PURE__ */ new Map(), Z = !0, z = D[0], X = 0; X < D.length; X++) {
6319
- var ae = D[X], S = ct(ae), j = zt(ae) === qt, oe = [Re, qe].indexOf(S) >= 0, J = oe ? "width" : "height", O = Fs(e, {
6319
+ var ae = D[X], S = ct(ae), j = zt(ae) === qt, se = [Re, qe].indexOf(S) >= 0, Q = se ? "width" : "height", O = Fs(e, {
6320
6320
  placement: ae,
6321
6321
  boundary: u,
6322
6322
  rootBoundary: v,
6323
6323
  altBoundary: d,
6324
6324
  padding: c
6325
- }), k = oe ? j ? ft : Xe : j ? qe : Re;
6326
- I[J] > L[J] && (k = La(k));
6325
+ }), k = se ? j ? ft : Xe : j ? qe : Re;
6326
+ I[Q] > L[Q] && (k = La(k));
6327
6327
  var F = La(k), V = [];
6328
- if (o && V.push(O[S] <= 0), r && V.push(O[k] <= 0, O[F] <= 0), V.every(function(ie) {
6329
- return ie;
6328
+ if (o && V.push(O[S] <= 0), r && V.push(O[k] <= 0, O[F] <= 0), V.every(function(oe) {
6329
+ return oe;
6330
6330
  })) {
6331
6331
  z = ae, Z = !1;
6332
6332
  break;
@@ -6334,17 +6334,17 @@ function op(t) {
6334
6334
  U.set(ae, V);
6335
6335
  }
6336
6336
  if (Z)
6337
- for (var ne = w ? 3 : 1, y = function(q) {
6337
+ for (var ie = w ? 3 : 1, y = function(q) {
6338
6338
  var H = D.find(function(K) {
6339
6339
  var fe = U.get(K);
6340
6340
  if (fe)
6341
- return fe.slice(0, q).every(function(we) {
6342
- return we;
6341
+ return fe.slice(0, q).every(function($e) {
6342
+ return $e;
6343
6343
  });
6344
6344
  });
6345
6345
  if (H)
6346
6346
  return z = H, "break";
6347
- }, R = ne; R > 0; R--) {
6347
+ }, R = ie; R > 0; R--) {
6348
6348
  var le = y(R);
6349
6349
  if (le === "break")
6350
6350
  break;
@@ -6363,7 +6363,7 @@ var rp = {
6363
6363
  }
6364
6364
  };
6365
6365
  function lp(t, e, a) {
6366
- const { disabled: s, appendTo: n, appendToBody: o, openDirection: i } = Ae(t), r = Mt().proxy, l = a.multiselect, c = a.dropdown, u = ee(!1), v = ee(null), d = ee(null), h = M(() => n.value || o.value), w = M(() => i.value === "top" && d.value === "bottom" || i.value === "bottom" && d.value !== "top" ? "bottom" : "top"), g = () => {
6366
+ const { disabled: s, appendTo: n, appendToBody: o, openDirection: i } = Me(t), r = Mt().proxy, l = a.multiselect, c = a.dropdown, u = ee(!1), v = ee(null), d = ee(null), h = M(() => n.value || o.value), w = M(() => i.value === "top" && d.value === "bottom" || i.value === "bottom" && d.value !== "top" ? "bottom" : "top"), g = () => {
6367
6367
  u.value || s.value || (u.value = !0, e.emit("open", r), h.value && De(() => {
6368
6368
  A();
6369
6369
  }));
@@ -6437,7 +6437,7 @@ function lp(t, e, a) {
6437
6437
  };
6438
6438
  }
6439
6439
  function up(t, e, a) {
6440
- const { searchable: s, disabled: n, clearOnBlur: o } = Ae(t), i = a.input, r = a.open, l = a.close, c = a.clearSearch, u = a.isOpen, v = a.wrapper, d = a.tags, h = ee(!1), w = ee(!1), g = M(() => s.value || n.value ? -1 : 0), b = () => {
6440
+ const { searchable: s, disabled: n, clearOnBlur: o } = Me(t), i = a.input, r = a.open, l = a.close, c = a.clearSearch, u = a.isOpen, v = a.wrapper, d = a.tags, h = ee(!1), w = ee(!1), g = M(() => s.value || n.value ? -1 : 0), b = () => {
6441
6441
  s.value && i.value.blur(), v.value.blur();
6442
6442
  }, A = () => {
6443
6443
  s.value && !n.value && i.value.focus();
@@ -6487,14 +6487,14 @@ function cp(t, e, a) {
6487
6487
  createTag: v,
6488
6488
  createOption: d,
6489
6489
  reverse: h
6490
- } = Ae(t), w = Mt().proxy, g = a.iv, b = a.update, A = a.deselect, _ = a.search, C = a.setPointer, D = a.selectPointer, I = a.backwardPointer, L = a.forwardPointer, U = a.multiselect, Z = a.wrapper, z = a.tags, X = a.isOpen, ae = a.open, S = a.blur, j = a.fo, oe = M(() => v.value || d.value || !1), J = M(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), O = () => {
6491
- s.value === "tags" && !r.value && oe.value && i.value && !c.value && C(j.value[j.value.map((V) => V[l.value]).indexOf(_.value)]);
6490
+ } = Me(t), w = Mt().proxy, g = a.iv, b = a.update, A = a.deselect, _ = a.search, C = a.setPointer, D = a.selectPointer, I = a.backwardPointer, L = a.forwardPointer, U = a.multiselect, Z = a.wrapper, z = a.tags, X = a.isOpen, ae = a.open, S = a.blur, j = a.fo, se = M(() => v.value || d.value || !1), Q = M(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), O = () => {
6491
+ s.value === "tags" && !r.value && se.value && i.value && !c.value && C(j.value[j.value.map((V) => V[l.value]).indexOf(_.value)]);
6492
6492
  };
6493
6493
  return {
6494
6494
  handleKeydown: (V) => {
6495
6495
  e.emit("keydown", V, w);
6496
- let ne, y;
6497
- switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(V.key) !== -1 && s.value === "tags" && (ne = [...U.value.querySelectorAll("[data-tags] > *")].filter((R) => R !== z.value), y = ne.findIndex((R) => R === document.activeElement)), V.key) {
6496
+ let ie, y;
6497
+ switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(V.key) !== -1 && s.value === "tags" && (ie = [...U.value.querySelectorAll("[data-tags] > *")].filter((R) => R !== z.value), y = ie.findIndex((R) => R === document.activeElement)), V.key) {
6498
6498
  case "Backspace":
6499
6499
  if (s.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 || g.value.length === 0)
6500
6500
  return;
@@ -6505,28 +6505,28 @@ function cp(t, e, a) {
6505
6505
  if (V.preventDefault(), V.keyCode === 229)
6506
6506
  return;
6507
6507
  if (y !== -1 && y !== void 0) {
6508
- b([...g.value].filter((le, ie) => ie !== y)), y === ne.length - 1 && (ne.length - 1 ? ne[ne.length - 2].focus() : i.value ? z.value.querySelector("input").focus() : Z.value.focus());
6508
+ b([...g.value].filter((le, oe) => oe !== y)), y === ie.length - 1 && (ie.length - 1 ? ie[ie.length - 2].focus() : i.value ? z.value.querySelector("input").focus() : Z.value.focus());
6509
6509
  return;
6510
6510
  }
6511
- if (J.value.indexOf("enter") === -1 && oe.value)
6511
+ if (Q.value.indexOf("enter") === -1 && se.value)
6512
6512
  return;
6513
6513
  O(), D();
6514
6514
  break;
6515
6515
  case " ":
6516
- if (!oe.value && !i.value) {
6516
+ if (!se.value && !i.value) {
6517
6517
  V.preventDefault(), O(), D();
6518
6518
  return;
6519
6519
  }
6520
- if (!oe.value)
6520
+ if (!se.value)
6521
6521
  return !1;
6522
- if (J.value.indexOf("space") === -1 && oe.value)
6522
+ if (Q.value.indexOf("space") === -1 && se.value)
6523
6523
  return;
6524
6524
  V.preventDefault(), O(), D();
6525
6525
  break;
6526
6526
  case "Tab":
6527
6527
  case ";":
6528
6528
  case ",":
6529
- if (J.value.indexOf(V.key.toLowerCase()) === -1 || !oe.value)
6529
+ if (Q.value.indexOf(V.key.toLowerCase()) === -1 || !se.value)
6530
6530
  return;
6531
6531
  O(), D(), V.preventDefault();
6532
6532
  break;
@@ -6546,12 +6546,12 @@ function cp(t, e, a) {
6546
6546
  case "ArrowLeft":
6547
6547
  if (i.value && z.value && z.value.querySelector("input").selectionStart || V.shiftKey || s.value !== "tags" || !g.value || !g.value.length)
6548
6548
  return;
6549
- V.preventDefault(), y === -1 ? ne[ne.length - 1].focus() : y > 0 && ne[y - 1].focus();
6549
+ V.preventDefault(), y === -1 ? ie[ie.length - 1].focus() : y > 0 && ie[y - 1].focus();
6550
6550
  break;
6551
6551
  case "ArrowRight":
6552
6552
  if (y === -1 || V.shiftKey || s.value !== "tags" || !g.value || !g.value.length)
6553
6553
  return;
6554
- V.preventDefault(), ne.length > y + 1 ? ne[y + 1].focus() : i.value ? z.value.querySelector("input").focus() : i.value || Z.value.focus();
6554
+ V.preventDefault(), ie.length > y + 1 ? ie[y + 1].focus() : i.value ? z.value.querySelector("input").focus() : i.value || Z.value.focus();
6555
6555
  break;
6556
6556
  }
6557
6557
  },
@@ -6567,7 +6567,7 @@ function dp(t, e, a) {
6567
6567
  disabled: n,
6568
6568
  showOptions: o,
6569
6569
  breakTags: i
6570
- } = Ae(t), r = a.isOpen, l = a.isPointed, c = a.isSelected, u = a.isDisabled, v = a.isActive, d = a.canPointGroups, h = a.resolving, w = a.fo, g = a.placement, b = M(() => ({
6570
+ } = Me(t), r = a.isOpen, l = a.isPointed, c = a.isSelected, u = a.isDisabled, v = a.isActive, d = a.canPointGroups, h = a.resolving, w = a.fo, g = a.placement, b = M(() => ({
6571
6571
  container: "multiselect",
6572
6572
  containerDisabled: "is-disabled",
6573
6573
  containerOpen: "is-open",
@@ -6675,7 +6675,7 @@ function pp(t, e, a) {
6675
6675
  const {
6676
6676
  limit: s,
6677
6677
  infinite: n
6678
- } = Ae(t), o = a.isOpen, i = a.offset, r = a.search, l = a.pfo, c = a.eo, u = ee(null), v = ee(null), d = M(() => i.value < l.value.length), h = (g) => {
6678
+ } = Me(t), o = a.isOpen, i = a.offset, r = a.search, l = a.pfo, c = a.eo, u = ee(null), v = ee(null), d = M(() => i.value < l.value.length), h = (g) => {
6679
6679
  const { isIntersecting: b, target: A } = g[0];
6680
6680
  if (b) {
6681
6681
  const _ = A.offsetParent, C = _.scrollTop;
@@ -6709,7 +6709,7 @@ function vp(t, e, a) {
6709
6709
  groupLabel: l,
6710
6710
  aria: c,
6711
6711
  searchable: u
6712
- } = Ae(t), v = a.pointer, d = a.iv, h = a.hasSelected, w = a.multipleLabelText, g = ee(null), b = M(() => {
6712
+ } = Me(t), v = a.pointer, d = a.iv, h = a.hasSelected, w = a.multipleLabelText, g = ee(null), b = M(() => {
6713
6713
  let S = [];
6714
6714
  return n && n.value && S.push(n.value), S.push("assist"), S.join("-");
6715
6715
  }), A = M(() => {
@@ -6762,7 +6762,7 @@ function fp(t, e, a) {
6762
6762
  const {
6763
6763
  locale: s,
6764
6764
  fallbackLocale: n
6765
- } = Ae(t);
6765
+ } = Me(t);
6766
6766
  return {
6767
6767
  localize: (i) => !i || typeof i != "object" ? i : i && i[s.value] ? i[s.value] : i && s.value && i[s.value.toUpperCase()] ? i[s.value.toUpperCase()] : i && i[n.value] ? i[n.value] : i && n.value && i[n.value.toUpperCase()] ? i[n.value.toUpperCase()] : i && Object.keys(i)[0] ? i[Object.keys(i)[0]] : ""
6768
6768
  };
@@ -7643,7 +7643,7 @@ function Rp(t, e, a, s, n, o) {
7643
7643
  }
7644
7644
  ut.render = Rp;
7645
7645
  ut.__file = "src/Multiselect.vue";
7646
- const $e = /* @__PURE__ */ Y({
7646
+ const ke = /* @__PURE__ */ Y({
7647
7647
  __name: "AoMultiselect",
7648
7648
  props: {
7649
7649
  detached: { type: Boolean },
@@ -7654,7 +7654,7 @@ const $e = /* @__PURE__ */ Y({
7654
7654
  return e.detached && Q5({
7655
7655
  multiselect: s,
7656
7656
  appendTo: a.value
7657
- }), (n, o) => (p(), P(Q(ut), {
7657
+ }), (n, o) => (p(), P(J(ut), {
7658
7658
  ref_key: "multiselectRef",
7659
7659
  ref: s,
7660
7660
  class: "ao-multiselect"
@@ -7799,7 +7799,7 @@ const Np = { class: "ao-tasks" }, Fp = { class: "ao-tasks__list" }, Up = ["id",
7799
7799
  onKeyup: dt(u, ["enter"])
7800
7800
  }, null, 42, Up),
7801
7801
  Fa(". "),
7802
- !v.isTemplate && v.users ? (p(), P($e, {
7802
+ !v.isTemplate && v.users ? (p(), P(ke, {
7803
7803
  key: 1,
7804
7804
  value: (g = h.assignee) != null && g.id ? [h.assignee.id] : [],
7805
7805
  options: n.value,
@@ -8014,11 +8014,11 @@ const sv = { class: "ao-comment" }, nv = { class: "ao-comment__created-at" }, iv
8014
8014
  ref_key: "commentContent",
8015
8015
  ref: n,
8016
8016
  class: "ao-comment__content",
8017
- value: Q(o) ? g.content : null,
8018
- rows: Q(o) ? w.value : null,
8017
+ value: J(o) ? g.content : null,
8018
+ rows: J(o) ? w.value : null,
8019
8019
  onKeyup: [
8020
- dt(Q(v), ["esc"]),
8021
- dt(ve(Q(d), ["ctrl"]), ["enter"])
8020
+ dt(J(v), ["esc"]),
8021
+ dt(ve(J(d), ["ctrl"]), ["enter"])
8022
8022
  ]
8023
8023
  }, {
8024
8024
  default: W(() => [
@@ -8029,13 +8029,13 @@ const sv = { class: "ao-comment" }, nv = { class: "ao-comment__created-at" }, iv
8029
8029
  ])
8030
8030
  ]),
8031
8031
  g.isEditable ? (p(), m("div", rv, [
8032
- Q(o) ? (p(), m(he, { key: 0 }, [
8032
+ J(o) ? (p(), m(he, { key: 0 }, [
8033
8033
  T(ue, {
8034
8034
  "icon-name": "CloseRounded",
8035
8035
  size: "sm",
8036
8036
  variant: "ghost",
8037
8037
  color: "neutral",
8038
- onClick: Q(v)
8038
+ onClick: J(v)
8039
8039
  }, null, 8, ["onClick"]),
8040
8040
  T(ue, {
8041
8041
  "icon-name": "CheckSmallRounded",
@@ -8043,7 +8043,7 @@ const sv = { class: "ao-comment" }, nv = { class: "ao-comment__created-at" }, iv
8043
8043
  variant: "solid",
8044
8044
  corners: "round",
8045
8045
  color: "black",
8046
- onClick: Q(d)
8046
+ onClick: J(d)
8047
8047
  }, null, 8, ["onClick"])
8048
8048
  ], 64)) : (p(), m(he, { key: 1 }, [
8049
8049
  T(ue, {
@@ -8058,7 +8058,7 @@ const sv = { class: "ao-comment" }, nv = { class: "ao-comment__created-at" }, iv
8058
8058
  size: "sm",
8059
8059
  variant: "ghost",
8060
8060
  color: "neutral",
8061
- onClick: Q(i)
8061
+ onClick: J(i)
8062
8062
  }, null, 8, ["label", "onClick"])
8063
8063
  ], 64))
8064
8064
  ])) : E("", !0)
@@ -8169,7 +8169,7 @@ const ws = /* @__PURE__ */ Y({
8169
8169
  e("update:modelValue", !a.modelValue);
8170
8170
  };
8171
8171
  return (n, o) => (p(), P(ue, {
8172
- color: n.modelValue ? n.color : Q(As).NEUTRAL,
8172
+ color: n.modelValue ? n.color : J(As).NEUTRAL,
8173
8173
  "icon-position": "start",
8174
8174
  onClick: o[0] || (o[0] = () => s())
8175
8175
  }, null, 8, ["color"]));
@@ -8363,8 +8363,8 @@ const ws = /* @__PURE__ */ Y({
8363
8363
  value: y.id,
8364
8364
  label: y.name
8365
8365
  }))), ae = M(() => {
8366
- var R, le, ie;
8367
- const y = (ie = (le = (R = a.activity) == null ? void 0 : R.project) == null ? void 0 : le.phases) == null ? void 0 : ie.reduce(
8366
+ var R, le, oe;
8367
+ const y = (oe = (le = (R = a.activity) == null ? void 0 : R.project) == null ? void 0 : le.phases) == null ? void 0 : oe.reduce(
8368
8368
  (q, H) => [...q, ...H.milestones],
8369
8369
  []
8370
8370
  );
@@ -8382,13 +8382,13 @@ const ws = /* @__PURE__ */ Y({
8382
8382
  id: a.activity.id,
8383
8383
  milestoneId: y
8384
8384
  });
8385
- }, oe = M(() => {
8385
+ }, se = M(() => {
8386
8386
  var y;
8387
8387
  return (y = a.statuses) == null ? void 0 : y.map((R) => ({
8388
8388
  value: R.id,
8389
8389
  label: R.name
8390
8390
  }));
8391
- }), J = (y) => {
8391
+ }), Q = (y) => {
8392
8392
  e("update:activity", {
8393
8393
  id: a.activity.id,
8394
8394
  statusId: y
@@ -8406,7 +8406,7 @@ const ws = /* @__PURE__ */ Y({
8406
8406
  var y, R;
8407
8407
  return ((y = a.activity.createdBy) == null ? void 0 : y.firstName) && ((R = a.activity.createdBy) == null ? void 0 : R.lastName) && `${a.activity.createdBy.firstName} ${a.activity.createdBy.lastName}`;
8408
8408
  });
8409
- function ne() {
8409
+ function ie() {
8410
8410
  const y = window.location.origin, R = a.activity.slug, le = `${y}/activity-feed/slug/${R}`;
8411
8411
  navigator.clipboard.writeText(le).then(() => {
8412
8412
  console.log(`Link copied to clipboard: ${le}`), e("toast", "clipboard.copy.success", "success");
@@ -8418,7 +8418,7 @@ const ws = /* @__PURE__ */ Y({
8418
8418
  onClose: R[10] || (R[10] = (le) => y.$emit("close"))
8419
8419
  }, {
8420
8420
  default: W(() => {
8421
- var le, ie, q;
8421
+ var le, oe, q;
8422
8422
  return [
8423
8423
  f("div", hv, [
8424
8424
  f("div", mv, [
@@ -8430,7 +8430,7 @@ const ws = /* @__PURE__ */ Y({
8430
8430
  variant: "solid",
8431
8431
  color: "primary",
8432
8432
  class: "ao-activity__ao-tag",
8433
- onClick: ne
8433
+ onClick: ie
8434
8434
  }, null, 8, ["label"])) : E("", !0),
8435
8435
  y.breadcrumbs ? (p(), m("div", gv, x(y.breadcrumbs), 1)) : E("", !0),
8436
8436
  T(ye, {
@@ -8442,7 +8442,7 @@ const ws = /* @__PURE__ */ Y({
8442
8442
  f("div", _v, [
8443
8443
  X.value ? (p(), m("label", yv, [
8444
8444
  f("span", bv, x(y.$t("activity.project.label")), 1),
8445
- T($e, {
8445
+ T(ke, {
8446
8446
  options: X.value,
8447
8447
  value: (le = y.activity.project) == null ? void 0 : le.id,
8448
8448
  searchable: !0,
@@ -8453,9 +8453,9 @@ const ws = /* @__PURE__ */ Y({
8453
8453
  ])) : E("", !0),
8454
8454
  ae.value ? (p(), m("label", wv, [
8455
8455
  f("span", $v, x(y.$t("activity.milestone.label")), 1),
8456
- T($e, {
8456
+ T(ke, {
8457
8457
  options: ae.value,
8458
- value: (ie = y.activity.milestone) == null ? void 0 : ie.id,
8458
+ value: (oe = y.activity.milestone) == null ? void 0 : oe.id,
8459
8459
  searchable: !0,
8460
8460
  disabled: !s.value,
8461
8461
  caret: s.value,
@@ -8570,18 +8570,18 @@ const ws = /* @__PURE__ */ Y({
8570
8570
  onClick: R[2] || (R[2] = (H) => y.$emit("close"))
8571
8571
  })
8572
8572
  ]),
8573
- oe.value ? (p(), m("div", Fv, [
8573
+ se.value ? (p(), m("div", Fv, [
8574
8574
  f("label", Uv, [
8575
8575
  f("span", Zv, x(y.$t("activity.status.label")), 1),
8576
- T($e, {
8576
+ T(ke, {
8577
8577
  class: "ao-activity-details__multiselect",
8578
- options: oe.value,
8578
+ options: se.value,
8579
8579
  value: (q = y.activity.status) == null ? void 0 : q.id,
8580
8580
  "can-clear": !1,
8581
8581
  "can-deselect": !1,
8582
8582
  disabled: !s.value,
8583
8583
  caret: s.value,
8584
- onChange: J
8584
+ onChange: Q
8585
8585
  }, null, 8, ["options", "value", "disabled", "caret"])
8586
8586
  ])
8587
8587
  ])) : E("", !0),
@@ -8598,7 +8598,7 @@ const ws = /* @__PURE__ */ Y({
8598
8598
  onClick: D
8599
8599
  }, null, 8, ["label"])
8600
8600
  ]),
8601
- T($e, {
8601
+ T(ke, {
8602
8602
  modelValue: U.value,
8603
8603
  "onUpdate:modelValue": R[3] || (R[3] = (H) => U.value = H),
8604
8604
  class: "ao-activity-details__assignees ao-activity-details__multiselect",
@@ -8649,7 +8649,7 @@ const ws = /* @__PURE__ */ Y({
8649
8649
  f("div", Jv, [
8650
8650
  u.value ? (p(), m("div", ef, [
8651
8651
  f("label", tf, [
8652
- T($e, {
8652
+ T(ke, {
8653
8653
  modelValue: v.value,
8654
8654
  "onUpdate:modelValue": R[5] || (R[5] = (H) => v.value = H),
8655
8655
  class: "ao-activity-details__multiselect",
@@ -8705,7 +8705,7 @@ const ws = /* @__PURE__ */ Y({
8705
8705
  f("div", lf, [
8706
8706
  f("label", uf, [
8707
8707
  f("span", cf, x(y.$t("activity.dependingOn.label")), 1),
8708
- T($e, {
8708
+ T(ke, {
8709
8709
  modelValue: h.value,
8710
8710
  "onUpdate:modelValue": R[8] || (R[8] = (H) => h.value = H),
8711
8711
  class: "ao-activity-details__multiselect",
@@ -8721,7 +8721,7 @@ const ws = /* @__PURE__ */ Y({
8721
8721
  f("div", df, [
8722
8722
  f("label", pf, [
8723
8723
  f("span", vf, x(y.$t("activity.blocking.label")), 1),
8724
- T($e, {
8724
+ T(ke, {
8725
8725
  modelValue: g.value,
8726
8726
  "onUpdate:modelValue": R[9] || (R[9] = (H) => g.value = H),
8727
8727
  class: "ao-activity-details__multiselect",
@@ -8829,22 +8829,22 @@ const mf = /* @__PURE__ */ Y({
8829
8829
  }), b = M(() => Object.values(N2));
8830
8830
  return (A, _) => (p(), P(ht(A.tagName), { class: "ao-rule-line" }, {
8831
8831
  default: W(() => [
8832
- T(Q(ut), {
8832
+ T(J(ut), {
8833
8833
  modelValue: n.value,
8834
8834
  "onUpdate:modelValue": _[0] || (_[0] = (C) => n.value = C),
8835
8835
  options: o.value
8836
8836
  }, null, 8, ["modelValue", "options"]),
8837
- T(Q(ut), {
8837
+ T(J(ut), {
8838
8838
  modelValue: i.value,
8839
8839
  "onUpdate:modelValue": _[1] || (_[1] = (C) => i.value = C),
8840
8840
  options: r.value
8841
8841
  }, null, 8, ["modelValue", "options"]),
8842
- T(Q(ut), {
8842
+ T(J(ut), {
8843
8843
  modelValue: d.value,
8844
8844
  "onUpdate:modelValue": _[2] || (_[2] = (C) => d.value = C),
8845
8845
  options: h.value
8846
8846
  }, null, 8, ["modelValue", "options"]),
8847
- T(Q(ut), {
8847
+ T(J(ut), {
8848
8848
  modelValue: c.value,
8849
8849
  "onUpdate:modelValue": _[3] || (_[3] = (C) => c.value = C),
8850
8850
  options: u.value
@@ -8861,7 +8861,7 @@ const mf = /* @__PURE__ */ Y({
8861
8861
  { number: !0 }
8862
8862
  ]
8863
8863
  ]),
8864
- T(Q(ut), {
8864
+ T(J(ut), {
8865
8865
  modelValue: g.value,
8866
8866
  "onUpdate:modelValue": _[5] || (_[5] = (C) => g.value = C),
8867
8867
  options: b.value
@@ -8925,7 +8925,7 @@ const Cf = { class: "ao-template-rules__body" }, gf = { class: "ao-template-rule
8925
8925
  }
8926
8926
  });
8927
8927
  function Bt(t, e, a) {
8928
- const s = t.length, n = t.at(-1), o = n ? Ie.LexoRank.parse(n.rank).genNext() : Ie.LexoRank.middle();
8928
+ const s = t.length, n = t.at(-1), o = n ? we.LexoRank.parse(n.rank).genNext() : we.LexoRank.middle();
8929
8929
  return {
8930
8930
  name: a(`template.defaultName.${e}`, { idx: s + 1 }),
8931
8931
  rank: o.format()
@@ -8995,15 +8995,15 @@ const yf = {
8995
8995
  );
8996
8996
  const l = M(() => {
8997
8997
  var k, F;
8998
- return ((F = (k = n.value) == null ? void 0 : k.phases) == null ? void 0 : F.reduce((V, ne) => {
8999
- const y = ne.milestones || [];
8998
+ return ((F = (k = n.value) == null ? void 0 : k.phases) == null ? void 0 : F.reduce((V, ie) => {
8999
+ const y = ie.milestones || [];
9000
9000
  return [...V, ...y];
9001
9001
  }, [])) || [];
9002
9002
  }), c = M(() => {
9003
9003
  var k, F;
9004
- return ((F = (k = n.value) == null ? void 0 : k.phases) == null ? void 0 : F.reduce((V, ne) => {
9005
- const R = (ne.milestones || []).reduce(
9006
- (le, ie) => ie.activities ? [...le, ...ie.activities] : le,
9004
+ return ((F = (k = n.value) == null ? void 0 : k.phases) == null ? void 0 : F.reduce((V, ie) => {
9005
+ const R = (ie.milestones || []).reduce(
9006
+ (le, oe) => oe.activities ? [...le, ...oe.activities] : le,
9007
9007
  []
9008
9008
  );
9009
9009
  return [...V, ...R];
@@ -9095,7 +9095,7 @@ const yf = {
9095
9095
  const { milestoneId: F } = k;
9096
9096
  if (!r.value)
9097
9097
  return;
9098
- const { name: V, rank: ne } = Bt(
9098
+ const { name: V, rank: ie } = Bt(
9099
9099
  r.value.activities,
9100
9100
  "activity",
9101
9101
  s
@@ -9104,7 +9104,7 @@ const yf = {
9104
9104
  type: Ce.ACTIVITIES,
9105
9105
  milestoneId: F,
9106
9106
  templateId: a.templateId,
9107
- item: { name: V, rank: ne, milestoneId: F }
9107
+ item: { name: V, rank: ie, milestoneId: F }
9108
9108
  });
9109
9109
  }, I = (k) => {
9110
9110
  var F, V;
@@ -9160,7 +9160,7 @@ const yf = {
9160
9160
  templateId: a.templateId,
9161
9161
  data: k
9162
9162
  });
9163
- }, oe = (k) => {
9163
+ }, se = (k) => {
9164
9164
  !i.value || !r.value || !u.value || e("removeItem", {
9165
9165
  type: Ce.TASKS,
9166
9166
  activityId: u.value.id,
@@ -9169,17 +9169,17 @@ const yf = {
9169
9169
  templateId: a.templateId,
9170
9170
  data: k
9171
9171
  });
9172
- }, J = (k) => {
9172
+ }, Q = (k) => {
9173
9173
  e("addFiles", k);
9174
9174
  }, O = (k) => {
9175
9175
  e("removeFile", k);
9176
9176
  };
9177
9177
  return (k, F) => {
9178
- var V, ne, y, R, le, ie;
9178
+ var V, ie, y, R, le, oe;
9179
9179
  return n.value ? (p(), m("div", yf, [
9180
9180
  T(Ga, {
9181
9181
  "can-go-back": !0,
9182
- onGoBack: F[1] || (F[1] = (q) => k.$router.push({ name: Q(Dt).TEMPLATES_LIST }))
9182
+ onGoBack: F[1] || (F[1] = (q) => k.$router.push({ name: J(Dt).TEMPLATES_LIST }))
9183
9183
  }, {
9184
9184
  primary: W(() => [
9185
9185
  T(ye, {
@@ -9196,7 +9196,7 @@ const yf = {
9196
9196
  f("div", bf, [
9197
9197
  f("ol", wf, [
9198
9198
  f("li", $f, [
9199
- T(Q(mt), {
9199
+ T(J(mt), {
9200
9200
  "model-value": n.value.phases,
9201
9201
  class: "ao-templates__list",
9202
9202
  "item-key": "id",
@@ -9257,7 +9257,7 @@ const yf = {
9257
9257
  i.value && r.value ? (p(), P(f5, {
9258
9258
  key: 0,
9259
9259
  "template-id": k.templateId,
9260
- "phase-id": (ne = i.value) == null ? void 0 : ne.id,
9260
+ "phase-id": (ie = i.value) == null ? void 0 : ie.id,
9261
9261
  milestone: r.value,
9262
9262
  "activity-id": (y = u.value) == null ? void 0 : y.id,
9263
9263
  onAddActivity: D,
@@ -9273,7 +9273,7 @@ const yf = {
9273
9273
  activity: u.value,
9274
9274
  "activity-types": k.activityTypes,
9275
9275
  breadcrumbs: `${n.value.name} / ${(R = i.value) == null ? void 0 : R.name} / ${(le = r.value) == null ? void 0 : le.name}`,
9276
- "milestone-id": (ie = r.value) == null ? void 0 : ie.id,
9276
+ "milestone-id": (oe = r.value) == null ? void 0 : oe.id,
9277
9277
  "template-activities": c.value,
9278
9278
  "template-milestones": l.value,
9279
9279
  "is-template": !0,
@@ -9286,8 +9286,8 @@ const yf = {
9286
9286
  onClose: k.$router.back,
9287
9287
  onAddSubtask: S,
9288
9288
  onUpdateSubtask: j,
9289
- onDeleteSubtask: oe,
9290
- onAddFiles: J,
9289
+ onDeleteSubtask: se,
9290
+ onAddFiles: Q,
9291
9291
  onRemoveFile: O
9292
9292
  }, {
9293
9293
  default: W((q) => [
@@ -9464,7 +9464,7 @@ const If = { class: "ao-card-project-phase__header" }, Lf = { class: "ao-card-pr
9464
9464
  { lazy: !0 }
9465
9465
  ]
9466
9466
  ]) : E("", !0),
9467
- f("span", jf, x(Q(Ts)(c.deadline)), 1)
9467
+ f("span", jf, x(J(Ts)(c.deadline)), 1)
9468
9468
  ], 2)
9469
9469
  ])
9470
9470
  ]),
@@ -9622,11 +9622,11 @@ const Uf = { class: "ao-card-project-milestone__default" }, Zf = { class: "ao-ti
9622
9622
  size: "sm"
9623
9623
  }, null, 8, ["class"])) : E("", !0),
9624
9624
  l.deadline ? (p(), m("label", Jf, [
9625
- f("span", e9, x(Q(Ts)(l.deadline)), 1)
9625
+ f("span", e9, x(J(Ts)(l.deadline)), 1)
9626
9626
  ])) : E("", !0),
9627
9627
  l.assignee ? (p(), m("div", t9, [
9628
9628
  T(et, {
9629
- "user-name": Q(zn)(l.assignee),
9629
+ "user-name": J(zn)(l.assignee),
9630
9630
  "avatar-url": l.assignee.avatarUrl,
9631
9631
  color: l.isSelected ? "black" : "primary",
9632
9632
  size: "sm"
@@ -9718,7 +9718,7 @@ const s9 = {
9718
9718
  ]),
9719
9719
  f("div", i9, [
9720
9720
  f("div", o9, [
9721
- T(Q(mt), He({
9721
+ T(J(mt), He({
9722
9722
  class: "ao-project-phase__milestones-list",
9723
9723
  list: i.value,
9724
9724
  disabled: d.readonly || !d.isEditable,
@@ -9743,7 +9743,7 @@ const s9 = {
9743
9743
  readonly: d.readonly,
9744
9744
  class: G(["ao-project-phase__milestone"]),
9745
9745
  onClick: (A) => !d.readonly && d.$router.push({
9746
- name: Q(Fe).milestone,
9746
+ name: J(Fe).milestone,
9747
9747
  params: { phaseId: d.phase.id, milestoneId: g.id }
9748
9748
  }),
9749
9749
  onUpdateMilestone: l,
@@ -9808,7 +9808,7 @@ const u9 = { class: "ao-project__phases" }, c9 = {
9808
9808
  e("addPhase", u);
9809
9809
  };
9810
9810
  return (u, v) => (p(), m("div", u9, [
9811
- T(Q(mt), {
9811
+ T(J(mt), {
9812
9812
  class: "ao-project-phase__phases-list",
9813
9813
  "model-value": u.phases,
9814
9814
  "item-key": "id",
@@ -9876,7 +9876,7 @@ const h9 = ["onSubmit"], m9 = { class: "ao-add-template-modal__form-body" }, C9
9876
9876
  }, [
9877
9877
  f("div", m9, [
9878
9878
  f("div", C9, [
9879
- T($e, {
9879
+ T(ke, {
9880
9880
  value: n.value,
9881
9881
  options: s.value,
9882
9882
  detached: !0,
@@ -9899,7 +9899,57 @@ const h9 = ["onSubmit"], m9 = { class: "ao-add-template-modal__form-body" }, C9
9899
9899
  }));
9900
9900
  }
9901
9901
  });
9902
- const y9 = Y({
9902
+ const y9 = ["onSubmit"], b9 = { class: "ao-save-template-modal__form-body" }, w9 = { class: "field__row" }, $9 = { class: "ao-field ao-field--inline" }, k9 = { class: "ao-field__label" }, S9 = { class: "ao-save-template-modal__form-footer" }, A9 = /* @__PURE__ */ Y({
9903
+ __name: "AoSaveTemplateModal",
9904
+ props: {
9905
+ projectId: {}
9906
+ },
9907
+ emits: ["save"],
9908
+ setup(t, { emit: e }) {
9909
+ const a = t, s = ee(""), n = () => {
9910
+ s.value && e("save", s.value, a.projectId);
9911
+ };
9912
+ return (o, i) => (p(), P(Xa, { size: "sm" }, {
9913
+ header: W(() => [
9914
+ T(ye, {
9915
+ title: o.$t("project.template.saveAsTemplate.title"),
9916
+ level: 3
9917
+ }, null, 8, ["title"])
9918
+ ]),
9919
+ default: W(() => [
9920
+ f("form", {
9921
+ class: "ao-save-template-modal__form",
9922
+ onSubmit: ve(n, ["prevent"])
9923
+ }, [
9924
+ f("div", b9, [
9925
+ f("div", w9, [
9926
+ f("label", $9, [
9927
+ f("span", k9, x(o.$t("project.template.name.label")), 1),
9928
+ Ue(f("input", {
9929
+ "onUpdate:modelValue": i[0] || (i[0] = (r) => s.value = r),
9930
+ type: "text"
9931
+ }, null, 512), [
9932
+ [Ge, s.value]
9933
+ ])
9934
+ ])
9935
+ ])
9936
+ ]),
9937
+ f("footer", S9, [
9938
+ T(ue, {
9939
+ label: o.$t("project.template.saveAsTemplate.label"),
9940
+ type: "submit",
9941
+ color: "primary",
9942
+ variant: "solid",
9943
+ onClick: n
9944
+ }, null, 8, ["label"])
9945
+ ])
9946
+ ], 40, y9)
9947
+ ]),
9948
+ _: 1
9949
+ }));
9950
+ }
9951
+ });
9952
+ const M9 = Y({
9903
9953
  props: {
9904
9954
  isLeft: {
9905
9955
  type: Boolean,
@@ -9928,9 +9978,9 @@ const y9 = Y({
9928
9978
  }
9929
9979
  }
9930
9980
  });
9931
- const b9 = { class: "toggle-wrapper" };
9932
- function w9(t, e, a, s, n, o) {
9933
- return p(), m("div", b9, [
9981
+ const T9 = { class: "toggle-wrapper" };
9982
+ function O9(t, e, a, s, n, o) {
9983
+ return p(), m("div", T9, [
9934
9984
  f("button", {
9935
9985
  class: G({
9936
9986
  button: !0,
@@ -9951,58 +10001,7 @@ function w9(t, e, a, s, n, o) {
9951
10001
  }, x(t.rightLabel), 3)
9952
10002
  ]);
9953
10003
  }
9954
- const ci = /* @__PURE__ */ N(y9, [["render", w9], ["__scopeId", "data-v-cbe33527"]]), $9 = ["onSubmit"], k9 = { class: "ao-save-template-modal__form-body" }, S9 = { class: "field__row" }, A9 = { class: "ao-field ao-field--inline" }, M9 = { class: "ao-field__label" }, T9 = { class: "ao-save-template-modal__form-footer" }, O9 = /* @__PURE__ */ Y({
9955
- __name: "AoSaveTemplateModal",
9956
- props: {
9957
- projectId: {}
9958
- },
9959
- emits: ["save"],
9960
- setup(t, { emit: e }) {
9961
- const a = t, s = ee(""), n = () => {
9962
- s.value && e("save", s.value, a.projectId);
9963
- };
9964
- return (o, i) => (p(), P(Xa, { size: "sm" }, {
9965
- header: W(() => [
9966
- T(ye, {
9967
- title: o.$t("project.template.saveAsTemplate.title"),
9968
- level: 3
9969
- }, null, 8, ["title"])
9970
- ]),
9971
- default: W(() => [
9972
- f("form", {
9973
- class: "ao-save-template-modal__form",
9974
- onSubmit: ve(n, ["prevent"])
9975
- }, [
9976
- f("div", k9, [
9977
- f("div", S9, [
9978
- f("label", A9, [
9979
- f("span", M9, x(o.$t("project.template.name.label")), 1),
9980
- Ue(f("input", {
9981
- "onUpdate:modelValue": i[0] || (i[0] = (r) => s.value = r),
9982
- class: "ao-field__input ao-field__input--estim",
9983
- type: "text"
9984
- }, null, 512), [
9985
- [Ge, s.value]
9986
- ])
9987
- ])
9988
- ])
9989
- ]),
9990
- f("footer", T9, [
9991
- T(ue, {
9992
- label: o.$t("project.template.saveAsTemplate.label"),
9993
- type: "submit",
9994
- color: "primary",
9995
- variant: "solid",
9996
- onClick: n
9997
- }, null, 8, ["label"])
9998
- ])
9999
- ], 40, $9)
10000
- ]),
10001
- _: 1
10002
- }));
10003
- }
10004
- });
10005
- const E9 = { class: "ao-project" }, I9 = { class: "ao-project__body" }, L9 = /* @__PURE__ */ Y({
10004
+ const ci = /* @__PURE__ */ N(M9, [["render", O9], ["__scopeId", "data-v-cbe33527"]]), E9 = { class: "ao-project" }, I9 = { class: "ao-project__body" }, L9 = /* @__PURE__ */ Y({
10006
10005
  __name: "AoProjectOverviewProject",
10007
10006
  props: {
10008
10007
  project: {},
@@ -10064,10 +10063,12 @@ const E9 = { class: "ao-project" }, I9 = { class: "ao-project__body" }, L9 = /*
10064
10063
  }, Z = ee(!1), z = ee(!1), X = (S, j) => {
10065
10064
  e("applyTemplate", { templateId: S, projectId: j }), Z.value = !1;
10066
10065
  }, ae = (S, j) => {
10067
- e("saveTemplate", { templateName: S, projectId: j }), z.value = !1;
10066
+ var O;
10067
+ const se = (O = a.templates) == null ? void 0 : O.at(-1), Q = se ? we.LexoRank.parse(se.rank).genNext() : we.LexoRank.middle();
10068
+ e("saveTemplate", { templateName: S, rank: Q.format(), projectId: j }), z.value = !1;
10068
10069
  };
10069
10070
  return (S, j) => {
10070
- const oe = Ke("RouterView");
10071
+ const se = Ke("RouterView");
10071
10072
  return p(), m(he, null, [
10072
10073
  f("div", He({ class: "ao-project-overview" }, S.$attrs), [
10073
10074
  f("div", E9, [
@@ -10077,8 +10078,8 @@ const E9 = { class: "ao-project" }, I9 = { class: "ao-project__body" }, L9 = /*
10077
10078
  "is-left": !0,
10078
10079
  "right-label": S.$t("project.switch.feed"),
10079
10080
  "left-label": S.$t("project.switch.overview"),
10080
- "onUpdate:isLeft": j[0] || (j[0] = (J) => {
10081
- J || S.$router.push({ name: Q(Fe).feed });
10081
+ "onUpdate:isLeft": j[0] || (j[0] = (Q) => {
10082
+ Q || S.$router.push({ name: J(Fe).feed });
10082
10083
  })
10083
10084
  }, null, 8, ["right-label", "left-label"]),
10084
10085
  T(ue, {
@@ -10091,7 +10092,7 @@ const E9 = { class: "ao-project" }, I9 = { class: "ao-project__body" }, L9 = /*
10091
10092
  label: S.$t("feed.filters.showsArchived.label"),
10092
10093
  role: "checkbox",
10093
10094
  "aria-checked": S.showsArchived,
10094
- onClick: j[1] || (j[1] = (J) => S.$emit("update:showsArchived", !S.showsArchived))
10095
+ onClick: j[1] || (j[1] = (Q) => S.$emit("update:showsArchived", !S.showsArchived))
10095
10096
  }, null, 8, ["icon-name", "label", "aria-checked"])
10096
10097
  ]),
10097
10098
  secondary: W(() => [
@@ -10100,14 +10101,14 @@ const E9 = { class: "ao-project" }, I9 = { class: "ao-project__body" }, L9 = /*
10100
10101
  class: "ao-project-overview__save-as-template",
10101
10102
  color: "primary",
10102
10103
  label: S.$t("project.template.saveAsTemplate.label"),
10103
- onClick: j[2] || (j[2] = (J) => z.value = !0)
10104
+ onClick: j[2] || (j[2] = (Q) => z.value = !0)
10104
10105
  }, null, 8, ["label"])) : E("", !0),
10105
10106
  S.isEditable === !0 ? (p(), P(ue, {
10106
10107
  key: 1,
10107
10108
  class: "ao-project-overview__add-template",
10108
10109
  color: "primary",
10109
10110
  label: S.$t("project.template.add.label"),
10110
- onClick: j[3] || (j[3] = (J) => Z.value = !0)
10111
+ onClick: j[3] || (j[3] = (Q) => Z.value = !0)
10111
10112
  }, null, 8, ["label"])) : E("", !0)
10112
10113
  ]),
10113
10114
  _: 1
@@ -10127,7 +10128,7 @@ const E9 = { class: "ao-project" }, I9 = { class: "ao-project__body" }, L9 = /*
10127
10128
  }, null, 8, ["phases", "closed-status", "is-editable", "users"])
10128
10129
  ])
10129
10130
  ]),
10130
- T(oe, {
10131
+ T(se, {
10131
10132
  class: "ao-project__sidebar",
10132
10133
  phases: S.phases,
10133
10134
  "project-id": S.project.id,
@@ -10135,7 +10136,7 @@ const E9 = { class: "ao-project" }, I9 = { class: "ao-project__body" }, L9 = /*
10135
10136
  users: S.users,
10136
10137
  "is-editable": S.isEditable === !0,
10137
10138
  "closed-status": S.closedStatus,
10138
- onClose: j[4] || (j[4] = (J) => S.$router.push({ name: Q(Fe).project })),
10139
+ onClose: j[4] || (j[4] = (Q) => S.$router.push({ name: J(Fe).project })),
10139
10140
  onUpdateMilestone: c,
10140
10141
  onAddActivity: v,
10141
10142
  onUpdateActivity: d,
@@ -10143,7 +10144,7 @@ const E9 = { class: "ao-project" }, I9 = { class: "ao-project__body" }, L9 = /*
10143
10144
  onUnarchiveActivity: w
10144
10145
  }, null, 8, ["phases", "project-id", "project-name", "users", "is-editable", "closed-status"]),
10145
10146
  (p(), P(jt, { to: "body" }, [
10146
- T(oe, {
10147
+ T(se, {
10147
10148
  name: "modal",
10148
10149
  activities: _.value,
10149
10150
  "is-task-checkable": S.isTaskCheckable,
@@ -10165,8 +10166,8 @@ const E9 = { class: "ao-project" }, I9 = { class: "ao-project__body" }, L9 = /*
10165
10166
  onUpdateComment: L,
10166
10167
  onRemoveComment: U
10167
10168
  }, {
10168
- default: W(({ Component: J }) => [
10169
- (p(), P(ht(J), null, {
10169
+ default: W(({ Component: Q }) => [
10170
+ (p(), P(ht(Q), null, {
10170
10171
  default: W((O) => [
10171
10172
  te(S.$slots, "activityDetailsBody", pa(va(O)))
10172
10173
  ]),
@@ -10178,18 +10179,18 @@ const E9 = { class: "ao-project" }, I9 = { class: "ao-project__body" }, L9 = /*
10178
10179
  ]))
10179
10180
  ], 16),
10180
10181
  (p(), P(jt, { to: "body" }, [
10181
- z.value ? (p(), P(O9, {
10182
+ z.value ? (p(), P(A9, {
10182
10183
  key: 0,
10183
10184
  "project-id": S.project.id,
10184
10185
  templates: S.templates,
10185
- onClose: j[5] || (j[5] = (J) => z.value = !1),
10186
+ onClose: j[5] || (j[5] = (Q) => z.value = !1),
10186
10187
  onSave: ae
10187
10188
  }, null, 8, ["project-id", "templates"])) : E("", !0),
10188
10189
  Z.value ? (p(), P(_9, {
10189
10190
  key: 1,
10190
10191
  "project-id": S.project.id,
10191
10192
  templates: S.templates,
10192
- onClose: j[6] || (j[6] = (J) => Z.value = !1),
10193
+ onClose: j[6] || (j[6] = (Q) => Z.value = !1),
10193
10194
  onApply: X
10194
10195
  }, null, 8, ["project-id", "templates"])) : E("", !0)
10195
10196
  ]))
@@ -10333,7 +10334,7 @@ const H9 = { class: "ao-card-feed__header" }, D9 = {
10333
10334
  }, [
10334
10335
  g ? (p(), m("li", q9, [
10335
10336
  T(et, {
10336
- "user-name": Q(zn)(g),
10337
+ "user-name": J(zn)(g),
10337
10338
  "avatar-url": g.avatarUrl,
10338
10339
  "is-closable": !0,
10339
10340
  onClose: () => c(g.id)
@@ -11510,7 +11511,7 @@ const A4 = /* @__PURE__ */ N($4, [["render", S4]]), M4 = { class: "ao-project-mi
11510
11511
  ]),
11511
11512
  f("div", P4, [
11512
11513
  f("label", V4, [
11513
- T($e, {
11514
+ T(ke, {
11514
11515
  modelValue: b.value,
11515
11516
  "onUpdate:modelValue": C[2] || (C[2] = (I) => b.value = I),
11516
11517
  options: g.value,
@@ -11545,7 +11546,7 @@ const A4 = /* @__PURE__ */ N($4, [["render", S4]]), M4 = { class: "ao-project-mi
11545
11546
  ])) : E("", !0)
11546
11547
  ]),
11547
11548
  f("div", B4, [
11548
- T(Q(mt), He({
11549
+ T(J(mt), He({
11549
11550
  class: "ao-project-milestone__activities",
11550
11551
  list: r.value,
11551
11552
  disabled: !_.isEditable,
@@ -11573,7 +11574,7 @@ const A4 = /* @__PURE__ */ N($4, [["render", S4]]), M4 = { class: "ao-project-mi
11573
11574
  "is-private": I.private,
11574
11575
  "is-closed": w(I),
11575
11576
  onClick: (ae) => _.$router.push({
11576
- name: Q(Fe).activity,
11577
+ name: J(Fe).activity,
11577
11578
  params: { milestoneId: _.milestoneId, activityId: I.id }
11578
11579
  }),
11579
11580
  onUpdateActivity: u,
@@ -11741,7 +11742,7 @@ function U4(t) {
11741
11742
  return Pi() ? (Vi(t), !0) : !1;
11742
11743
  }
11743
11744
  function Na(t) {
11744
- return typeof t == "function" ? t() : Q(t);
11745
+ return typeof t == "function" ? t() : J(t);
11745
11746
  }
11746
11747
  const Z4 = typeof window < "u" && typeof document < "u";
11747
11748
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -11912,7 +11913,7 @@ const Q4 = {
11912
11913
  ])
11913
11914
  ];
11914
11915
  }) : E("", !0),
11915
- T(Q(mt), He({
11916
+ T(J(mt), He({
11916
11917
  class: ["ao-list-kanban__list", c.value ? "ao-list-kanban__transition" : void 0],
11917
11918
  list: u.list,
11918
11919
  "item-key": "id",
@@ -12037,7 +12038,7 @@ const o8 = { class: "ao-field ao-search-field" }, r8 = ["value", "placeholder",
12037
12038
  class: "ao-field__input ao-search-field__input",
12038
12039
  placeholder: i.placeholder,
12039
12040
  onInput: r[0] || (r[0] = //@ts-ignore
12040
- (...l) => Q(n) && Q(n)(...l)),
12041
+ (...l) => J(n) && J(n)(...l)),
12041
12042
  onKeypress: dt(s, ["enter"])
12042
12043
  }, null, 40, r8),
12043
12044
  T(pe, {
@@ -12089,13 +12090,13 @@ const u8 = { class: "ao-feed" }, c8 = { class: "ao-feed__filters" }, d8 = { clas
12089
12090
  de(
12090
12091
  [() => a.statuses, () => a.activities, () => a.initialActivityId, () => a.initialActivitySlug],
12091
12092
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
12092
- async ([O, k, F, V], [ne, y]) => {
12093
+ async ([O, k, F, V], [ie, y]) => {
12093
12094
  r.value = Object.fromEntries(
12094
12095
  O.map((R) => [
12095
12096
  R.id,
12096
12097
  k.filter((le) => {
12097
- var ie;
12098
- return ((ie = le.status) == null ? void 0 : ie.id) === R.id;
12098
+ var oe;
12099
+ return ((oe = le.status) == null ? void 0 : oe.id) === R.id;
12099
12100
  })
12100
12101
  ])
12101
12102
  ), F && !l.value ? (i(F, null), l.value = !0) : V && !l.value && (i(null, V), l.value = !0), c.value && Qe(k, y);
@@ -12107,12 +12108,12 @@ const u8 = { class: "ao-feed" }, c8 = { class: "ao-feed__filters" }, d8 = { clas
12107
12108
  return !a.selectedActivity || !a.selectedActivity.milestone ? "" : `${((O = a.selectedActivity.milestone.phase) == null ? void 0 : O.name) ?? ""} / ${a.selectedActivity.milestone.name ?? ""}`;
12108
12109
  }), d = (O) => {
12109
12110
  var y, R;
12110
- const k = (y = a.activities) == null ? void 0 : y.at(-1), F = k ? Ie.LexoRank.parse(k.rank).genNext() : Ie.LexoRank.middle(), V = ((R = a.activities) == null ? void 0 : R.length) ?? 0, ne = {
12111
+ const k = (y = a.activities) == null ? void 0 : y.at(-1), F = k ? we.LexoRank.parse(k.rank).genNext() : we.LexoRank.middle(), V = ((R = a.activities) == null ? void 0 : R.length) ?? 0, ie = {
12111
12112
  name: s("activity.defaultName", { idx: V + 1 }),
12112
12113
  rank: F.format(),
12113
12114
  statusId: O.id
12114
12115
  };
12115
- a.filters.assigneeId.length > 0 && (ne.assigneeId = a.filters.assigneeId[0]), a.filters.projectId.length > 0 && (ne.projectId = a.filters.projectId[0]), a.filters.typeId.length > 0 && (ne.typeId = a.filters.typeId[0]), c.value = !0, e("addActivity", ne);
12116
+ a.filters.assigneeId.length > 0 && (ie.assigneeId = a.filters.assigneeId[0]), a.filters.projectId.length > 0 && (ie.projectId = a.filters.projectId[0]), a.filters.typeId.length > 0 && (ie.typeId = a.filters.typeId[0]), c.value = !0, e("addActivity", ie);
12116
12117
  }, h = (O, k) => {
12117
12118
  c.value = !1, e("update:filters", { ...a.filters, [O]: k });
12118
12119
  }, w = M(
@@ -12157,10 +12158,10 @@ const u8 = { class: "ao-feed" }, c8 = { class: "ao-feed__filters" }, d8 = { clas
12157
12158
  ...O,
12158
12159
  activityId: a.selectedActivity.id
12159
12160
  });
12160
- }, oe = (O) => {
12161
+ }, se = (O) => {
12161
12162
  const { id: k } = a.selectedActivity || {};
12162
12163
  k && e("updateComment", O);
12163
- }, J = (O) => {
12164
+ }, Q = (O) => {
12164
12165
  const { id: k } = a.selectedActivity || {};
12165
12166
  k && e("removeComment", O);
12166
12167
  };
@@ -12176,7 +12177,7 @@ const u8 = { class: "ao-feed" }, c8 = { class: "ao-feed__filters" }, d8 = { clas
12176
12177
  "right-label": O.$t("project.switch.feed"),
12177
12178
  "left-label": O.$t("project.switch.overview"),
12178
12179
  "onUpdate:isLeft": k[0] || (k[0] = (V) => {
12179
- V && O.$router.push({ name: Q(Fe).project });
12180
+ V && O.$router.push({ name: J(Fe).project });
12180
12181
  })
12181
12182
  }, null, 8, ["right-label", "left-label"])) : E("", !0),
12182
12183
  T(l8, {
@@ -12186,48 +12187,48 @@ const u8 = { class: "ao-feed" }, c8 = { class: "ao-feed__filters" }, d8 = { clas
12186
12187
  "onUpdate:modelValue": L,
12187
12188
  onClear: U
12188
12189
  }, null, 8, ["model-value", "placeholder"]),
12189
- a.project ? E("", !0) : (p(), P($e, {
12190
+ a.project ? E("", !0) : (p(), P(ke, {
12190
12191
  key: 1,
12191
- "model-value": O.filters[Q(Lt).project],
12192
+ "model-value": O.filters[J(Lt).project],
12192
12193
  mode: "tags",
12193
12194
  options: g.value,
12194
12195
  "close-on-select": !1,
12195
12196
  searchable: !0,
12196
12197
  class: "ao-feed__filter ao-feed__filter__projects",
12197
12198
  placeholder: O.$t("feed.filters.project.placeholder"),
12198
- "onUpdate:modelValue": k[1] || (k[1] = (V) => h(Q(Lt).project, V))
12199
+ "onUpdate:modelValue": k[1] || (k[1] = (V) => h(J(Lt).project, V))
12199
12200
  }, null, 8, ["model-value", "options", "placeholder"])),
12200
- b.value ? (p(), P($e, {
12201
+ b.value ? (p(), P(ke, {
12201
12202
  key: 2,
12202
- "model-value": O.filters[Q(Lt).type],
12203
+ "model-value": O.filters[J(Lt).type],
12203
12204
  mode: "tags",
12204
12205
  options: b.value,
12205
12206
  "close-on-select": !1,
12206
12207
  searchable: !0,
12207
12208
  class: "ao-feed__filter ao-feed__filter__types",
12208
12209
  placeholder: O.$t("feed.filters.activityType.placeholder"),
12209
- "onUpdate:modelValue": k[2] || (k[2] = (V) => h(Q(Lt).type, V))
12210
+ "onUpdate:modelValue": k[2] || (k[2] = (V) => h(J(Lt).type, V))
12210
12211
  }, null, 8, ["model-value", "options", "placeholder"])) : E("", !0),
12211
- A.value.length ? (p(), P($e, {
12212
+ A.value.length ? (p(), P(ke, {
12212
12213
  key: 3,
12213
- "model-value": O.filters[Q(Lt).assignee],
12214
+ "model-value": O.filters[J(Lt).assignee],
12214
12215
  mode: "tags",
12215
12216
  options: A.value,
12216
12217
  "close-on-select": !1,
12217
12218
  searchable: !0,
12218
12219
  class: "ao-feed__filter ao-feed__filter__assignees",
12219
12220
  placeholder: O.$t("feed.filters.assignee.placeholder"),
12220
- "onUpdate:modelValue": k[3] || (k[3] = (V) => h(Q(Lt).assignee, V))
12221
+ "onUpdate:modelValue": k[3] || (k[3] = (V) => h(J(Lt).assignee, V))
12221
12222
  }, {
12222
12223
  tag: W(({
12223
12224
  option: V,
12224
- handleTagRemove: ne
12225
+ handleTagRemove: ie
12225
12226
  }) => [
12226
12227
  T(et, {
12227
12228
  "user-name": V.label,
12228
12229
  "avatar-url": V.avatar,
12229
12230
  "is-closable": !0,
12230
- onClose: (y) => ne(V, y)
12231
+ onClose: (y) => ie(V, y)
12231
12232
  }, null, 8, ["user-name", "avatar-url", "onClose"])
12232
12233
  ]),
12233
12234
  _: 1
@@ -12313,8 +12314,8 @@ const u8 = { class: "ao-feed" }, c8 = { class: "ao-feed__filters" }, d8 = { clas
12313
12314
  onAddFiles: ae,
12314
12315
  onRemoveFile: S,
12315
12316
  onAddComment: j,
12316
- onUpdateComment: oe,
12317
- onRemoveComment: J,
12317
+ onUpdateComment: se,
12318
+ onRemoveComment: Q,
12318
12319
  onToast: n
12319
12320
  }, {
12320
12321
  default: W((V) => [
@@ -12406,7 +12407,7 @@ const Dt = {
12406
12407
  });
12407
12408
  const n = () => {
12408
12409
  var v, d;
12409
- const r = (v = a.templates) == null ? void 0 : v.at(-1), l = r ? Ie.LexoRank.parse(r.rank).genNext() : Ie.LexoRank.middle(), c = ((d = a.templates) == null ? void 0 : d.length) ?? 0, u = {
12410
+ const r = (v = a.templates) == null ? void 0 : v.at(-1), l = r ? we.LexoRank.parse(r.rank).genNext() : we.LexoRank.middle(), c = ((d = a.templates) == null ? void 0 : d.length) ?? 0, u = {
12410
12411
  name: s("template.defaultName.template", { idx: c + 1 }),
12411
12412
  rank: l.format()
12412
12413
  };
@@ -12446,7 +12447,7 @@ const Dt = {
12446
12447
  ]),
12447
12448
  _: 1
12448
12449
  }),
12449
- T(Q(mt), {
12450
+ T(J(mt), {
12450
12451
  "model-value": r.templates,
12451
12452
  class: "ao-templates__list",
12452
12453
  "item-key": "id",
@@ -12460,13 +12461,13 @@ const Dt = {
12460
12461
  id: c.id,
12461
12462
  title: c.name,
12462
12463
  phases: c.phases,
12463
- milestones: (u = c.phases) != null && u.length ? Q(S3)(c.phases) : 0,
12464
- activities: c.phases ? Q(A3)(c.phases) : 0,
12464
+ milestones: (u = c.phases) != null && u.length ? J(S3)(c.phases) : 0,
12465
+ activities: c.phases ? J(A3)(c.phases) : 0,
12465
12466
  "updated-at": c.updatedAt,
12466
12467
  "updated-by": c.updatedBy,
12467
12468
  onUpdateTitle: (v) => o(c.id, v),
12468
12469
  onClick: (v) => r.$router.push({
12469
- name: Q(Dt).TEMPLATE_DETAILS,
12470
+ name: J(Dt).TEMPLATE_DETAILS,
12470
12471
  params: { templateId: c.id }
12471
12472
  })
12472
12473
  }, null, 8, ["id", "title", "phases", "milestones", "activities", "updated-at", "updated-by", "onUpdateTitle", "onClick"])
@@ -12558,7 +12559,7 @@ export {
12558
12559
  p8 as AoFeed,
12559
12560
  m8 as AoField,
12560
12561
  I8 as AoInputField,
12561
- $e as AoMultiselect,
12562
+ ke as AoMultiselect,
12562
12563
  f9 as AoProjectPhases,
12563
12564
  Mf as AoTemplateDetails,
12564
12565
  S8 as AoTemplates,