@26lights/orcha 0.41.72 → 0.41.73

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,6 +1,6 @@
1
- import { defineComponent as q, openBlock as p, createBlock as D, unref as Q, mergeProps as Ae, createElementBlock as C, createElementVNode as f, pushScopeId as Vi, popScopeId as Di, createStaticVNode as Bi, computed as A, resolveDynamicComponent as mt, normalizeClass as X, renderSlot as te, toDisplayString as W, createCommentVNode as O, ref as x, watch as ce, nextTick as Me, withKeys as dt, toHandlers as ji, withCtx as N, createTextVNode as qa, createVNode as M, normalizeStyle as pt, withModifiers as ve, createSlots as fa, Fragment as fe, renderList as _e, onMounted as It, onBeforeUnmount as Ts, onUnmounted as Os, Teleport as Tt, toRefs as Ee, getCurrentInstance as Lt, toRef as Rt, normalizeProps as ha, guardReactiveProps as ma, withDirectives as De, vShow as Ri, onUpdated as Ni, vModelText as Ze, resolveComponent as rt, vModelCheckbox as Ui, getCurrentScope as Fi, onScopeDispose as Zi, toHandlerKey as Wi } from "vue";
1
+ import { defineComponent as q, openBlock as p, createBlock as D, unref as Q, mergeProps as Ae, createElementBlock as C, createElementVNode as f, pushScopeId as Vi, popScopeId as Di, createStaticVNode as Bi, computed as A, resolveDynamicComponent as ht, normalizeClass as X, renderSlot as te, toDisplayString as W, createCommentVNode as O, ref as x, watch as ce, nextTick as Me, withKeys as dt, toHandlers as ji, withCtx as N, createTextVNode as qa, createVNode as M, normalizeStyle as Mt, withModifiers as ve, createSlots as fa, Fragment as fe, renderList as _e, onMounted as It, onBeforeUnmount as Ts, onUnmounted as Os, Teleport as Tt, toRefs as Ee, getCurrentInstance as Lt, toRef as Rt, normalizeProps as ha, guardReactiveProps as ma, withDirectives as De, vShow as Ri, onUpdated as Ni, vModelText as Ze, resolveComponent as rt, vModelCheckbox as Ui, getCurrentScope as Fi, onScopeDispose as Zi, toHandlerKey as Wi } from "vue";
2
2
  import { RouterView as zi, useRoute as qi, useRouter as Es } from "vue-router";
3
- import gt from "vuedraggable";
3
+ import mt from "vuedraggable";
4
4
  const e8 = /* @__PURE__ */ q({
5
5
  __name: "AoTemplates",
6
6
  props: {
@@ -1168,7 +1168,7 @@ const Ln = {
1168
1168
  },
1169
1169
  setup(t) {
1170
1170
  const e = t, a = A(() => L2[e.name]);
1171
- return (s, n) => (p(), D(mt(a.value), {
1171
+ return (s, n) => (p(), D(ht(a.value), {
1172
1172
  class: X(["ao-icon", `ao-icon--${s.size}`])
1173
1173
  }, null, 8, ["class"]));
1174
1174
  }
@@ -1280,7 +1280,7 @@ const be = /* @__PURE__ */ q({
1280
1280
  (b) => {
1281
1281
  b || d();
1282
1282
  }
1283
- ), (b, g) => (p(), D(mt(r.value), Ae({
1283
+ ), (b, g) => (p(), D(ht(r.value), Ae({
1284
1284
  id: b.id,
1285
1285
  ref_key: "target",
1286
1286
  ref: s,
@@ -1346,7 +1346,7 @@ const j2 = {
1346
1346
  const a = (s) => {
1347
1347
  e("update:title", s);
1348
1348
  };
1349
- return (s, n) => (p(), D(mt(s.tagName), {
1349
+ return (s, n) => (p(), D(ht(s.tagName), {
1350
1350
  class: X(["ao-card-horiz", { "ao-card-horiz--active": s.isActive }])
1351
1351
  }, {
1352
1352
  default: N(() => [
@@ -1419,9 +1419,9 @@ const ra = /* @__PURE__ */ q({
1419
1419
  n.closable ? "ao-tag--closable" : "",
1420
1420
  n.variant ? `ao-tag--${n.variant}` : ""
1421
1421
  ]),
1422
- style: pt(n.rawColor ? { "--ao-tag-bg": n.rawColor } : {})
1422
+ style: Mt(n.rawColor ? { "--ao-tag-bg": n.rawColor } : {})
1423
1423
  }, [
1424
- (p(), D(mt(a.value), Ae({ class: "ao-tag__label" }, s.value, {
1424
+ (p(), D(ht(a.value), Ae({ class: "ao-tag__label" }, s.value, {
1425
1425
  onClick: o[0] || (o[0] = (i) => n.$emit("click", i))
1426
1426
  }), {
1427
1427
  default: N(() => [
@@ -2173,11 +2173,11 @@ var Bt = {
2173
2173
  return vn(i);
2174
2174
  case "XXXX":
2175
2175
  case "XX":
2176
- return St(i);
2176
+ return kt(i);
2177
2177
  case "XXXXX":
2178
2178
  case "XXX":
2179
2179
  default:
2180
- return St(i, ":");
2180
+ return kt(i, ":");
2181
2181
  }
2182
2182
  },
2183
2183
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
@@ -2188,11 +2188,11 @@ var Bt = {
2188
2188
  return vn(i);
2189
2189
  case "xxxx":
2190
2190
  case "xx":
2191
- return St(i);
2191
+ return kt(i);
2192
2192
  case "xxxxx":
2193
2193
  case "xxx":
2194
2194
  default:
2195
- return St(i, ":");
2195
+ return kt(i, ":");
2196
2196
  }
2197
2197
  },
2198
2198
  // Timezone (GMT)
@@ -2205,7 +2205,7 @@ var Bt = {
2205
2205
  return "GMT" + pn(i, ":");
2206
2206
  case "OOOO":
2207
2207
  default:
2208
- return "GMT" + St(i, ":");
2208
+ return "GMT" + kt(i, ":");
2209
2209
  }
2210
2210
  },
2211
2211
  // Timezone (specific non-location)
@@ -2218,7 +2218,7 @@ var Bt = {
2218
2218
  return "GMT" + pn(i, ":");
2219
2219
  case "zzzz":
2220
2220
  default:
2221
- return "GMT" + St(i, ":");
2221
+ return "GMT" + kt(i, ":");
2222
2222
  }
2223
2223
  },
2224
2224
  // Seconds timestamp
@@ -2244,9 +2244,9 @@ function vn(t, e) {
2244
2244
  var a = t > 0 ? "-" : "+";
2245
2245
  return a + de(Math.abs(t) / 60, 2);
2246
2246
  }
2247
- return St(t, e);
2247
+ return kt(t, e);
2248
2248
  }
2249
- function St(t, e) {
2249
+ function kt(t, e) {
2250
2250
  var a = e || "", s = t > 0 ? "-" : "+", n = Math.abs(t), o = de(Math.floor(n / 60), 2), i = de(n % 60, 2);
2251
2251
  return s + o + a + i;
2252
2252
  }
@@ -3914,7 +3914,7 @@ const d5 = { class: "ao-page-header" }, p5 = { class: "ao-page-header-main" }, v
3914
3914
  const f5 = ["type"], h5 = {
3915
3915
  key: 0,
3916
3916
  class: "ao-button-card__label"
3917
- }, Ct = /* @__PURE__ */ q({
3917
+ }, gt = /* @__PURE__ */ q({
3918
3918
  __name: "AoButtonCard",
3919
3919
  props: {
3920
3920
  label: { default: () => "" },
@@ -4066,7 +4066,7 @@ const y5 = /* @__PURE__ */ q({
4066
4066
  });
4067
4067
  }
4068
4068
  };
4069
- return (l, r) => l.phase ? (p(), D(Q(gt), {
4069
+ return (l, r) => l.phase ? (p(), D(Q(mt), {
4070
4070
  key: 0,
4071
4071
  "model-value": l.phase.milestones,
4072
4072
  class: "ao-templates__list",
@@ -4101,7 +4101,7 @@ const y5 = /* @__PURE__ */ q({
4101
4101
  ]),
4102
4102
  footer: N(() => [
4103
4103
  f("div", w5, [
4104
- M(Ct, {
4104
+ M(gt, {
4105
4105
  "icon-name": "AddBoxOutlineRounded",
4106
4106
  label: l.$t("template.milestones.add"),
4107
4107
  onClick: s
@@ -4156,7 +4156,7 @@ const y5 = /* @__PURE__ */ q({
4156
4156
  });
4157
4157
  }
4158
4158
  };
4159
- return (l, r) => l.milestone ? (p(), D(Q(gt), {
4159
+ return (l, r) => l.milestone ? (p(), D(Q(mt), {
4160
4160
  key: 0,
4161
4161
  "model-value": l.milestone.activities,
4162
4162
  title: l.$t("template.activities.title"),
@@ -4187,7 +4187,7 @@ const y5 = /* @__PURE__ */ q({
4187
4187
  ]),
4188
4188
  footer: N(() => [
4189
4189
  f("div", S5, [
4190
- M(Ct, {
4190
+ M(gt, {
4191
4191
  "icon-name": "AddBoxOutlineRounded",
4192
4192
  label: l.$t("template.activities.add"),
4193
4193
  onClick: s
@@ -4241,7 +4241,7 @@ const y5 = /* @__PURE__ */ q({
4241
4241
  ], 2));
4242
4242
  }
4243
4243
  });
4244
- const da = Math.min, He = Math.max, Ua = Math.round, Pa = Math.floor, vt = (t) => ({
4244
+ const da = Math.min, He = Math.max, Ua = Math.round, Pa = Math.floor, pt = (t) => ({
4245
4245
  x: t,
4246
4246
  y: t
4247
4247
  }), P5 = {
@@ -4607,7 +4607,7 @@ const Z5 = function(t) {
4607
4607
  }
4608
4608
  };
4609
4609
  };
4610
- function ft(t) {
4610
+ function vt(t) {
4611
4611
  return Jn(t) ? (t.nodeName || "").toLowerCase() : "#document";
4612
4612
  }
4613
4613
  function Te(t) {
@@ -4640,7 +4640,7 @@ function wa(t) {
4640
4640
  return /auto|scroll|overlay|hidden|clip/.test(e + s + a) && !["inline", "contents"].includes(n);
4641
4641
  }
4642
4642
  function z5(t) {
4643
- return ["table", "td", "th"].includes(ft(t));
4643
+ return ["table", "td", "th"].includes(vt(t));
4644
4644
  }
4645
4645
  function js(t) {
4646
4646
  const e = Rs(), a = je(t);
@@ -4659,7 +4659,7 @@ function Rs() {
4659
4659
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
4660
4660
  }
4661
4661
  function ts(t) {
4662
- return ["html", "body", "#document"].includes(ft(t));
4662
+ return ["html", "body", "#document"].includes(vt(t));
4663
4663
  }
4664
4664
  function je(t) {
4665
4665
  return Te(t).getComputedStyle(t);
@@ -4674,7 +4674,7 @@ function as(t) {
4674
4674
  };
4675
4675
  }
4676
4676
  function Wt(t) {
4677
- if (ft(t) === "html")
4677
+ if (vt(t) === "html")
4678
4678
  return t;
4679
4679
  const e = (
4680
4680
  // Step into the shadow DOM of the parent of a slotted node.
@@ -4711,7 +4711,7 @@ function Ns(t) {
4711
4711
  function Nt(t) {
4712
4712
  const e = Ns(t);
4713
4713
  if (!We(e))
4714
- return vt(1);
4714
+ return pt(1);
4715
4715
  const a = e.getBoundingClientRect(), {
4716
4716
  width: s,
4717
4717
  height: n,
@@ -4723,7 +4723,7 @@ function Nt(t) {
4723
4723
  y: l
4724
4724
  };
4725
4725
  }
4726
- const Y5 = /* @__PURE__ */ vt(0);
4726
+ const Y5 = /* @__PURE__ */ pt(0);
4727
4727
  function ai(t) {
4728
4728
  const e = Te(t);
4729
4729
  return !Rs() || !e.visualViewport ? Y5 : {
@@ -4737,9 +4737,9 @@ function x5(t, e, a) {
4737
4737
  function Ot(t, e, a, s) {
4738
4738
  e === void 0 && (e = !1), a === void 0 && (a = !1);
4739
4739
  const n = t.getBoundingClientRect(), o = Ns(t);
4740
- let i = vt(1);
4740
+ let i = pt(1);
4741
4741
  e && (s ? et(s) && (i = Nt(s)) : i = Nt(t));
4742
- const l = x5(o, a, s) ? ai(o) : vt(0);
4742
+ const l = x5(o, a, s) ? ai(o) : pt(0);
4743
4743
  let r = (n.left + l.x) / i.x, c = (n.top + l.y) / i.y, u = n.width / i.x, d = n.height / i.y;
4744
4744
  if (o) {
4745
4745
  const v = Te(o), m = s && et(s) ? Te(s) : s;
@@ -4768,9 +4768,9 @@ function K5(t) {
4768
4768
  let i = {
4769
4769
  scrollLeft: 0,
4770
4770
  scrollTop: 0
4771
- }, l = vt(1);
4772
- const r = vt(0);
4773
- if ((n || !n && s !== "fixed") && ((ft(a) !== "body" || wa(o)) && (i = as(a)), We(a))) {
4771
+ }, l = pt(1);
4772
+ const r = pt(0);
4773
+ if ((n || !n && s !== "fixed") && ((vt(a) !== "body" || wa(o)) && (i = as(a)), We(a))) {
4774
4774
  const c = Ot(a);
4775
4775
  l = Nt(a), r.x = c.x + a.clientLeft, r.y = c.y + a.clientTop;
4776
4776
  }
@@ -4814,7 +4814,7 @@ function Q5(t, e) {
4814
4814
  };
4815
4815
  }
4816
4816
  function J5(t, e) {
4817
- const a = Ot(t, !0, e === "fixed"), s = a.top + t.clientTop, n = a.left + t.clientLeft, o = We(t) ? Nt(t) : vt(1), i = t.clientWidth * o.x, l = t.clientHeight * o.y, r = n * o.x, c = s * o.y;
4817
+ const a = Ot(t, !0, e === "fixed"), s = a.top + t.clientTop, n = a.left + t.clientLeft, o = We(t) ? Nt(t) : pt(1), i = t.clientWidth * o.x, l = t.clientHeight * o.y, r = n * o.x, c = s * o.y;
4818
4818
  return {
4819
4819
  width: i,
4820
4820
  height: l,
@@ -4848,7 +4848,7 @@ function e7(t, e) {
4848
4848
  const a = e.get(t);
4849
4849
  if (a)
4850
4850
  return a;
4851
- let s = pa(t, [], !1).filter((l) => et(l) && ft(l) !== "body"), n = null;
4851
+ let s = pa(t, [], !1).filter((l) => et(l) && vt(l) !== "body"), n = null;
4852
4852
  const o = je(t).position === "fixed";
4853
4853
  let i = o ? Wt(t) : t;
4854
4854
  for (; et(i) && !ts(i); ) {
@@ -4884,9 +4884,9 @@ function s7(t, e, a) {
4884
4884
  scrollLeft: 0,
4885
4885
  scrollTop: 0
4886
4886
  };
4887
- const r = vt(0);
4887
+ const r = pt(0);
4888
4888
  if (s || !s && !o)
4889
- if ((ft(e) !== "body" || wa(n)) && (l = as(e)), s) {
4889
+ if ((vt(e) !== "body" || wa(n)) && (l = as(e)), s) {
4890
4890
  const c = Ot(e, !0, o, e);
4891
4891
  r.x = c.x + e.clientLeft, r.y = c.y + e.clientTop;
4892
4892
  } else
@@ -4908,7 +4908,7 @@ function ii(t, e) {
4908
4908
  let s = bn(t, e);
4909
4909
  for (; s && z5(s) && je(s).position === "static"; )
4910
4910
  s = bn(s, e);
4911
- return s && (ft(s) === "html" || ft(s) === "body" && je(s).position === "static" && !js(s)) ? a : s || q5(t) || a;
4911
+ return s && (vt(s) === "html" || vt(s) === "body" && je(s).position === "static" && !js(s)) ? a : s || q5(t) || a;
4912
4912
  }
4913
4913
  const n7 = async function(t) {
4914
4914
  let {
@@ -5215,7 +5215,7 @@ function g7(t, e, a) {
5215
5215
  searchFilter: oe
5216
5216
  } = Ee(t), ne = Lt().proxy, Z = a.iv, H = a.ev, Y = a.search, he = a.clearSearch, ke = a.update, Gt = a.pointer, Xt = a.setPointer, st = a.clearPointer, $a = a.focus, rs = a.deactivate, nt = a.close, ka = a.localize, it = x([]), Ue = x([]), Ie = x(!1), Re = x(null), Ye = x(ee.value && i.value === -1 ? 10 : i.value), Qt = A(() => r.value || c.value || !1), Sa = A(() => d.value !== void 0 ? d.value : v.value !== void 0 ? v.value : !0), Le = A(() => {
5217
5217
  if (le.value) {
5218
- let S = bt.value || /* istanbul ignore next */
5218
+ let S = yt.value || /* istanbul ignore next */
5219
5219
  [], B = [];
5220
5220
  return S.forEach((ue) => {
5221
5221
  hs(ue[E.value]).forEach((ge) => {
@@ -5233,7 +5233,7 @@ function g7(t, e, a) {
5233
5233
  }), ot = A(() => {
5234
5234
  let S = Jt.value;
5235
5235
  return Ye.value > 0 && (S = S.slice(0, Ye.value)), S;
5236
- }), bt = A(() => {
5236
+ }), yt = A(() => {
5237
5237
  if (!le.value)
5238
5238
  return [];
5239
5239
  let S = [], B = Ue.value || /* istanbul ignore next */
@@ -5244,7 +5244,7 @@ function g7(t, e, a) {
5244
5244
  __CREATE__: !0
5245
5245
  }), S.concat(B);
5246
5246
  }), Aa = A(() => {
5247
- let S = [...bt.value].map((B) => ({ ...B }));
5247
+ let S = [...yt.value].map((B) => ({ ...B }));
5248
5248
  return Pt.value.length && (S[0] && S[0].__CREATE__ ? S[0][E.value] = [...Pt.value, ...S[0][E.value]] : S = [{
5249
5249
  [z.value]: " ",
5250
5250
  [E.value]: [...Pt.value],
@@ -5261,8 +5261,8 @@ function g7(t, e, a) {
5261
5261
  ...B,
5262
5262
  index: ue,
5263
5263
  group: !0,
5264
- [E.value]: fs(ge, !1).map(($t) => Object.assign({}, $t, B[y.value] ? { [y.value]: !0 } : {})),
5265
- __VISIBLE__: fs(ge).map(($t) => Object.assign({}, $t, B[y.value] ? { [y.value]: !0 } : {}))
5264
+ [E.value]: fs(ge, !1).map((wt) => Object.assign({}, wt, B[y.value] ? { [y.value]: !0 } : {})),
5265
+ __VISIBLE__: fs(ge).map((wt) => Object.assign({}, wt, B[y.value] ? { [y.value]: !0 } : {}))
5266
5266
  };
5267
5267
  }));
5268
5268
  }), cs = A(() => {
@@ -5275,10 +5275,10 @@ function g7(t, e, a) {
5275
5275
  }
5276
5276
  }), Ci = A(() => m !== void 0 && m.value !== void 0 ? m.value(Z.value, ne) : Z.value && Z.value.length > 1 ? `${Z.value.length} options selected` : "1 option selected"), _i = A(() => !Le.value.length && !Ie.value && !Pt.value.length), yi = A(() => Le.value.length > 0 && ot.value.length == 0 && (Y.value && le.value || !le.value)), Pt = A(() => Qt.value === !1 || !Y.value ? [] : Oi(Y.value) !== -1 ? [] : [{
5277
5277
  [L.value]: Y.value,
5278
- [wt.value[0]]: Y.value,
5278
+ [bt.value[0]]: Y.value,
5279
5279
  [u.value]: Y.value,
5280
5280
  __CREATE__: !0
5281
- }]), wt = A(() => o.value ? Array.isArray(o.value) ? o.value : [o.value] : [u.value]), bi = A(() => {
5281
+ }]), bt = A(() => o.value ? Array.isArray(o.value) ? o.value : [o.value] : [u.value]), bi = A(() => {
5282
5282
  switch (n.value) {
5283
5283
  case "single":
5284
5284
  return null;
@@ -5387,7 +5387,7 @@ function g7(t, e, a) {
5387
5387
  Ke(S[L.value]) === void 0 && Qt.value && (e.emit("tag", S[L.value], ne), e.emit("option", S[L.value], ne), e.emit("create", S[L.value], ne), Sa.value && Ii(S), he());
5388
5388
  }, Ai = () => {
5389
5389
  n.value !== "single" && Ht(ot.value.filter((S) => !S.disabled && !xe(S)));
5390
- }, Mi = (S) => S.find((B) => !xe(B) && !B[y.value]) === void 0, Ti = (S) => S.find((B) => !xe(B)) === void 0, Ke = (S) => Le.value[Le.value.map((B) => String(B[L.value])).indexOf(String(S))], Oi = (S) => Le.value.findIndex((B) => wt.value.some((ue) => (parseInt(B[ue]) == B[ue] ? parseInt(B[ue]) : B[ue]) === (parseInt(S) == S ? parseInt(S) : S))), Ei = (S) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && xe(S), Ii = (S) => {
5390
+ }, Mi = (S) => S.find((B) => !xe(B) && !B[y.value]) === void 0, Ti = (S) => S.find((B) => !xe(B)) === void 0, Ke = (S) => Le.value[Le.value.map((B) => String(B[L.value])).indexOf(String(S))], Oi = (S) => Le.value.findIndex((B) => bt.value.some((ue) => (parseInt(B[ue]) == B[ue] ? parseInt(B[ue]) : B[ue]) === (parseInt(S) == S ? parseInt(S) : S))), Ei = (S) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && xe(S), Ii = (S) => {
5391
5391
  it.value.push(S);
5392
5392
  }, Li = (S) => T.value ? S.filter(
5393
5393
  (B) => Y.value ? B.__VISIBLE__.length : B[E.value].length
@@ -5395,18 +5395,18 @@ function g7(t, e, a) {
5395
5395
  let ue = S;
5396
5396
  if (Y.value && _.value) {
5397
5397
  let ge = oe.value;
5398
- ge || (ge = ($t, un, G4) => wt.value.some((Hi) => {
5399
- let cn = ys(ka($t[Hi]), ae.value);
5398
+ ge || (ge = (wt, un, G4) => bt.value.some((Hi) => {
5399
+ let cn = ys(ka(wt[Hi]), ae.value);
5400
5400
  return V.value ? cn.startsWith(ys(un, ae.value)) : cn.indexOf(ys(un, ae.value)) !== -1;
5401
- })), ue = ue.filter(($t) => ge($t, Y.value, ne));
5401
+ })), ue = ue.filter((wt) => ge(wt, Y.value, ne));
5402
5402
  }
5403
5403
  return l.value && B && (ue = ue.filter((ge) => !Ei(ge))), ue;
5404
5404
  }, hs = (S) => {
5405
5405
  let B = S;
5406
5406
  return h7(B) && (B = Object.keys(B).map((ue) => {
5407
5407
  let ge = B[ue];
5408
- return { [L.value]: ue, [wt.value[0]]: ge, [u.value]: ge };
5409
- })), B = B.map((ue) => typeof ue == "object" ? ue : { [L.value]: ue, [wt.value[0]]: ue, [u.value]: ue }), B;
5408
+ return { [L.value]: ue, [bt.value[0]]: ge, [u.value]: ge };
5409
+ })), B = B.map((ue) => typeof ue == "object" ? ue : { [L.value]: ue, [bt.value[0]]: ue, [u.value]: ue }), B;
5410
5410
  }, Ma = () => {
5411
5411
  Fe(H.value) || (Z.value = Oa(H.value));
5412
5412
  }, Ta = (S) => (Ie.value = !0, new Promise((B, ue) => {
@@ -5438,11 +5438,11 @@ function g7(t, e, a) {
5438
5438
  }, Oa = (S) => Fe(S) ? n.value === "single" ? {} : [] : w.value ? S : n.value === "single" ? Ke(S) || (F.value ? {
5439
5439
  [u.value]: S,
5440
5440
  [L.value]: S,
5441
- [wt.value[0]]: S
5441
+ [bt.value[0]]: S
5442
5442
  } : {}) : S.filter((B) => !!Ke(B) || F.value).map((B) => Ke(B) || {
5443
5443
  [u.value]: B,
5444
5444
  [L.value]: B,
5445
- [wt.value[0]]: B
5445
+ [bt.value[0]]: B
5446
5446
  }), rn = () => {
5447
5447
  Re.value = ce(Y, (S) => {
5448
5448
  S.length < h.value || !S && h.value !== 0 || (Ie.value = !0, P.value && (Ue.value = []), setTimeout(() => {
@@ -5487,8 +5487,8 @@ function g7(t, e, a) {
5487
5487
  multipleLabelText: Ci,
5488
5488
  eo: Le,
5489
5489
  extendedOptions: Le,
5490
- eg: bt,
5491
- extendedGroups: bt,
5490
+ eg: yt,
5491
+ extendedGroups: yt,
5492
5492
  fg: us,
5493
5493
  filteredGroups: us,
5494
5494
  noOptions: _i,
@@ -5625,7 +5625,7 @@ function Us(t) {
5625
5625
  var e = Oe(t).ShadowRoot;
5626
5626
  return t instanceof e || t instanceof ShadowRoot;
5627
5627
  }
5628
- var At = Math.max, Wa = Math.min, zt = Math.round;
5628
+ var St = Math.max, Wa = Math.min, zt = Math.round;
5629
5629
  function ks() {
5630
5630
  var t = navigator.userAgentData;
5631
5631
  return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
@@ -5670,14 +5670,14 @@ function y7(t) {
5670
5670
  function ze(t) {
5671
5671
  return t ? (t.nodeName || "").toLowerCase() : null;
5672
5672
  }
5673
- function _t(t) {
5673
+ function Ct(t) {
5674
5674
  return ((Et(t) ? t.ownerDocument : (
5675
5675
  // $FlowFixMe[prop-missing]
5676
5676
  t.document
5677
5677
  )) || window.document).documentElement;
5678
5678
  }
5679
5679
  function Zs(t) {
5680
- return qt(_t(t)).left + Fs(t).scrollLeft;
5680
+ return qt(Ct(t)).left + Fs(t).scrollLeft;
5681
5681
  }
5682
5682
  function tt(t) {
5683
5683
  return Oe(t).getComputedStyle(t);
@@ -5692,7 +5692,7 @@ function b7(t) {
5692
5692
  }
5693
5693
  function w7(t, e, a) {
5694
5694
  a === void 0 && (a = !1);
5695
- var s = Be(e), n = Be(e) && b7(e), o = _t(e), i = qt(t, n, a), l = {
5695
+ var s = Be(e), n = Be(e) && b7(e), o = Ct(e), i = qt(t, n, a), l = {
5696
5696
  scrollLeft: 0,
5697
5697
  scrollTop: 0
5698
5698
  }, r = {
@@ -5725,7 +5725,7 @@ function ss(t) {
5725
5725
  t.parentNode || // DOM Element detected
5726
5726
  (Us(t) ? t.host : null) || // ShadowRoot detected
5727
5727
  // $FlowFixMe[incompatible-call]: HTMLElement is a Node
5728
- _t(t)
5728
+ Ct(t)
5729
5729
  );
5730
5730
  }
5731
5731
  function ri(t) {
@@ -5768,7 +5768,7 @@ function ns(t) {
5768
5768
  a = wn(a);
5769
5769
  return a && (ze(a) === "html" || ze(a) === "body" && tt(a).position === "static") ? e : a || k7(t) || e;
5770
5770
  }
5771
- var Ne = "top", qe = "bottom", ht = "right", Ge = "left", zs = "auto", is = [Ne, qe, ht, Ge], Yt = "start", va = "end", S7 = "clippingParents", ui = "viewport", ia = "popper", A7 = "reference", $n = /* @__PURE__ */ is.reduce(function(t, e) {
5771
+ var Ne = "top", qe = "bottom", ft = "right", Ge = "left", zs = "auto", is = [Ne, qe, ft, Ge], Yt = "start", va = "end", S7 = "clippingParents", ui = "viewport", ia = "popper", A7 = "reference", $n = /* @__PURE__ */ is.reduce(function(t, e) {
5772
5772
  return t.concat([e + "-" + Yt, e + "-" + va]);
5773
5773
  }, []), M7 = /* @__PURE__ */ [].concat(is, [zs]).reduce(function(t, e) {
5774
5774
  return t.concat([e, e + "-" + Yt, e + "-" + va]);
@@ -5823,7 +5823,7 @@ function U7(t) {
5823
5823
  });
5824
5824
  }
5825
5825
  function F7(t, e) {
5826
- var a = Oe(t), s = _t(t), n = a.visualViewport, o = s.clientWidth, i = s.clientHeight, l = 0, r = 0;
5826
+ var a = Oe(t), s = Ct(t), n = a.visualViewport, o = s.clientWidth, i = s.clientHeight, l = 0, r = 0;
5827
5827
  if (n) {
5828
5828
  o = n.width, i = n.height;
5829
5829
  var c = oi();
@@ -5837,8 +5837,8 @@ function F7(t, e) {
5837
5837
  };
5838
5838
  }
5839
5839
  function Z7(t) {
5840
- var e, a = _t(t), s = Fs(t), n = (e = t.ownerDocument) == null ? void 0 : e.body, o = At(a.scrollWidth, a.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), i = At(a.scrollHeight, a.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), l = -s.scrollLeft + Zs(t), r = -s.scrollTop;
5841
- return tt(n || a).direction === "rtl" && (l += At(a.clientWidth, n ? n.clientWidth : 0) - o), {
5840
+ var e, a = Ct(t), s = Fs(t), n = (e = t.ownerDocument) == null ? void 0 : e.body, o = St(a.scrollWidth, a.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), i = St(a.scrollHeight, a.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), l = -s.scrollLeft + Zs(t), r = -s.scrollTop;
5841
+ return tt(n || a).direction === "rtl" && (l += St(a.clientWidth, n ? n.clientWidth : 0) - o), {
5842
5842
  width: o,
5843
5843
  height: i,
5844
5844
  x: l,
@@ -5872,7 +5872,7 @@ function z7(t, e) {
5872
5872
  return a.top = a.top + t.clientTop, a.left = a.left + t.clientLeft, a.bottom = a.top + t.clientHeight, a.right = a.left + t.clientWidth, a.width = t.clientWidth, a.height = t.clientHeight, a.x = a.left, a.y = a.top, a;
5873
5873
  }
5874
5874
  function kn(t, e, a) {
5875
- return e === ui ? Ss(F7(t, a)) : Et(e) ? z7(e, a) : Ss(Z7(_t(t)));
5875
+ return e === ui ? Ss(F7(t, a)) : Et(e) ? z7(e, a) : Ss(Z7(Ct(t)));
5876
5876
  }
5877
5877
  function q7(t) {
5878
5878
  var e = oa(ss(t)), a = ["absolute", "fixed"].indexOf(tt(t).position) >= 0, s = a && Be(t) ? ns(t) : t;
@@ -5883,7 +5883,7 @@ function q7(t) {
5883
5883
  function Y7(t, e, a, s) {
5884
5884
  var n = e === "clippingParents" ? q7(t) : [].concat(e), o = [].concat(n, [a]), i = o[0], l = o.reduce(function(r, c) {
5885
5885
  var u = kn(t, c, s);
5886
- return r.top = At(u.top, r.top), r.right = Wa(u.right, r.right), r.bottom = Wa(u.bottom, r.bottom), r.left = At(u.left, r.left), r;
5886
+ return r.top = St(u.top, r.top), r.right = Wa(u.right, r.right), r.bottom = Wa(u.bottom, r.bottom), r.left = St(u.left, r.left), r;
5887
5887
  }, kn(t, i, s));
5888
5888
  return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
5889
5889
  }
@@ -5911,7 +5911,7 @@ function di(t) {
5911
5911
  y: e.y + e.height
5912
5912
  };
5913
5913
  break;
5914
- case ht:
5914
+ case ft:
5915
5915
  r = {
5916
5916
  x: e.x + e.width,
5917
5917
  y: l
@@ -5961,7 +5961,7 @@ function K7(t, e) {
5961
5961
  }
5962
5962
  function qs(t, e) {
5963
5963
  e === void 0 && (e = {});
5964
- var a = e, s = a.placement, n = s === void 0 ? t.placement : s, o = a.strategy, i = o === void 0 ? t.strategy : o, l = a.boundary, r = l === void 0 ? S7 : l, c = a.rootBoundary, u = c === void 0 ? ui : c, d = a.elementContext, v = d === void 0 ? ia : d, m = a.altBoundary, w = m === void 0 ? !1 : m, b = a.padding, g = b === void 0 ? 0 : b, $ = x7(typeof g != "number" ? g : K7(g, is)), h = v === ia ? A7 : ia, _ = t.rects.popper, P = t.elements[w ? h : v], I = Y7(Et(P) ? P : P.contextElement || _t(t.elements.popper), r, u, i), L = qt(t.elements.reference), F = di({
5964
+ var a = e, s = a.placement, n = s === void 0 ? t.placement : s, o = a.strategy, i = o === void 0 ? t.strategy : o, l = a.boundary, r = l === void 0 ? S7 : l, c = a.rootBoundary, u = c === void 0 ? ui : c, d = a.elementContext, v = d === void 0 ? ia : d, m = a.altBoundary, w = m === void 0 ? !1 : m, b = a.padding, g = b === void 0 ? 0 : b, $ = x7(typeof g != "number" ? g : K7(g, is)), h = v === ia ? A7 : ia, _ = t.rects.popper, P = t.elements[w ? h : v], I = Y7(Et(P) ? P : P.contextElement || Ct(t.elements.popper), r, u, i), L = qt(t.elements.reference), F = di({
5965
5965
  reference: L,
5966
5966
  element: _,
5967
5967
  strategy: "absolute",
@@ -5975,7 +5975,7 @@ function qs(t, e) {
5975
5975
  if (v === ia && ae) {
5976
5976
  var j = ae[n];
5977
5977
  Object.keys(J).forEach(function(G) {
5978
- var le = [ht, qe].indexOf(G) >= 0 ? 1 : -1, se = [Ne, qe].indexOf(G) >= 0 ? "y" : "x";
5978
+ var le = [ft, qe].indexOf(G) >= 0 ? 1 : -1, se = [Ne, qe].indexOf(G) >= 0 ? "y" : "x";
5979
5979
  J[G] += j[se] * le;
5980
5980
  });
5981
5981
  }
@@ -6154,7 +6154,7 @@ function Mn(t) {
6154
6154
  var $ = i.hasOwnProperty("x"), h = i.hasOwnProperty("y"), _ = Ge, P = Ne, I = window;
6155
6155
  if (c) {
6156
6156
  var L = ns(a), F = "clientHeight", z = "clientWidth";
6157
- if (L === Oe(a) && (L = _t(a), tt(L).position !== "static" && l === "absolute" && (F = "scrollHeight", z = "scrollWidth")), L = L, n === Ne || (n === Ge || n === ht) && o === va) {
6157
+ if (L === Oe(a) && (L = Ct(a), tt(L).position !== "static" && l === "absolute" && (F = "scrollHeight", z = "scrollWidth")), L = L, n === Ne || (n === Ge || n === ft) && o === va) {
6158
6158
  P = qe;
6159
6159
  var K = d && L === I && I.visualViewport ? I.visualViewport.height : (
6160
6160
  // $FlowFixMe[prop-missing]
@@ -6163,7 +6163,7 @@ function Mn(t) {
6163
6163
  b -= K - s.height, b *= r ? 1 : -1;
6164
6164
  }
6165
6165
  if (n === Ge || (n === Ne || n === qe) && o === va) {
6166
- _ = ht;
6166
+ _ = ft;
6167
6167
  var J = d && L === I && I.visualViewport ? I.visualViewport.width : (
6168
6168
  // $FlowFixMe[prop-missing]
6169
6169
  L[z]
@@ -6264,7 +6264,7 @@ function cp(t) {
6264
6264
  return t === "x" ? "y" : "x";
6265
6265
  }
6266
6266
  function Va(t, e, a) {
6267
- return At(t, Wa(e, a));
6267
+ return St(t, Wa(e, a));
6268
6268
  }
6269
6269
  function dp(t, e, a) {
6270
6270
  var s = Va(t, e, a);
@@ -6290,14 +6290,14 @@ function pp(t) {
6290
6290
  };
6291
6291
  if (L) {
6292
6292
  if (o) {
6293
- var G, le = P === "y" ? Ne : Ge, se = P === "y" ? qe : ht, ee = P === "y" ? "height" : "width", E = L[P], T = E + g[le], k = E - g[se], R = m ? -z[ee] / 2 : 0, y = h === Yt ? F[ee] : z[ee], V = h === Yt ? -z[ee] : -F[ee], oe = e.elements.arrow, ne = m && oe ? li(oe) : {
6293
+ var G, le = P === "y" ? Ne : Ge, se = P === "y" ? qe : ft, ee = P === "y" ? "height" : "width", E = L[P], T = E + g[le], k = E - g[se], R = m ? -z[ee] / 2 : 0, y = h === Yt ? F[ee] : z[ee], V = h === Yt ? -z[ee] : -F[ee], oe = e.elements.arrow, ne = m && oe ? li(oe) : {
6294
6294
  width: 0,
6295
6295
  height: 0
6296
- }, Z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : pi(), H = Z[le], Y = Z[se], he = Va(0, F[ee], ne[ee]), ke = _ ? F[ee] / 2 - R - he - H - J.mainAxis : y - he - H - J.mainAxis, Gt = _ ? -F[ee] / 2 + R + he + Y + J.mainAxis : V + he + Y + J.mainAxis, Xt = e.elements.arrow && ns(e.elements.arrow), st = Xt ? P === "y" ? Xt.clientTop || 0 : Xt.clientLeft || 0 : 0, $a = (G = ae == null ? void 0 : ae[P]) != null ? G : 0, rs = E + ke - $a - st, nt = E + Gt - $a, ka = Va(m ? Wa(T, rs) : T, E, m ? At(k, nt) : k);
6296
+ }, Z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : pi(), H = Z[le], Y = Z[se], he = Va(0, F[ee], ne[ee]), ke = _ ? F[ee] / 2 - R - he - H - J.mainAxis : y - he - H - J.mainAxis, Gt = _ ? -F[ee] / 2 + R + he + Y + J.mainAxis : V + he + Y + J.mainAxis, Xt = e.elements.arrow && ns(e.elements.arrow), st = Xt ? P === "y" ? Xt.clientTop || 0 : Xt.clientLeft || 0 : 0, $a = (G = ae == null ? void 0 : ae[P]) != null ? G : 0, rs = E + ke - $a - st, nt = E + Gt - $a, ka = Va(m ? Wa(T, rs) : T, E, m ? St(k, nt) : k);
6297
6297
  L[P] = ka, j[P] = ka - E;
6298
6298
  }
6299
6299
  if (l) {
6300
- var it, Ue = P === "x" ? Ne : Ge, Ie = P === "x" ? qe : ht, Re = L[I], Ye = I === "y" ? "height" : "width", Qt = Re + g[Ue], Sa = Re - g[Ie], Le = [Ne, Ge].indexOf($) !== -1, Jt = (it = ae == null ? void 0 : ae[I]) != null ? it : 0, ot = Le ? Qt : Re - F[Ye] - z[Ye] - Jt + J.altAxis, bt = Le ? Re + F[Ye] + z[Ye] - Jt - J.altAxis : Sa, Aa = m && Le ? dp(ot, Re, bt) : Va(m ? ot : Qt, Re, m ? bt : Sa);
6300
+ var it, Ue = P === "x" ? Ne : Ge, Ie = P === "x" ? qe : ft, Re = L[I], Ye = I === "y" ? "height" : "width", Qt = Re + g[Ue], Sa = Re - g[Ie], Le = [Ne, Ge].indexOf($) !== -1, Jt = (it = ae == null ? void 0 : ae[I]) != null ? it : 0, ot = Le ? Qt : Re - F[Ye] - z[Ye] - Jt + J.altAxis, yt = Le ? Re + F[Ye] + z[Ye] - Jt - J.altAxis : Sa, Aa = m && Le ? dp(ot, Re, yt) : Va(m ? ot : Qt, Re, m ? yt : Sa);
6301
6301
  L[I] = Aa, j[I] = Aa - Re;
6302
6302
  }
6303
6303
  e.modifiersData[s] = j;
@@ -6374,7 +6374,7 @@ function Cp(t) {
6374
6374
  rootBoundary: d,
6375
6375
  altBoundary: v,
6376
6376
  padding: c
6377
- }), E = le ? G ? ht : Ge : G ? qe : Ne;
6377
+ }), E = le ? G ? ft : Ge : G ? qe : Ne;
6378
6378
  I[se] > L[se] && (E = Da(E));
6379
6379
  var T = Da(E), k = [];
6380
6380
  if (o && k.push(ee[j] <= 0), l && k.push(ee[E] <= 0, ee[T] <= 0), k.every(function(ne) {
@@ -7721,7 +7721,7 @@ const Se = /* @__PURE__ */ q({
7721
7721
  }
7722
7722
  });
7723
7723
  var On;
7724
- function yt() {
7724
+ function _t() {
7725
7725
  const t = Xp(), e = t.appContext.config.globalProperties;
7726
7726
  return {
7727
7727
  i18next: e.$i18next,
@@ -7783,7 +7783,7 @@ const Qp = { class: "ao-tasks" }, Jp = { class: "ao-tasks__list" }, ev = ["id",
7783
7783
  },
7784
7784
  emits: ["add", "delete", "update"],
7785
7785
  setup(t, { emit: e }) {
7786
- const a = t, { t: s } = yt();
7786
+ const a = t, { t: s } = _t();
7787
7787
  ce(() => a.tasks, (d, v) => {
7788
7788
  Xe(d, v);
7789
7789
  });
@@ -8062,7 +8062,7 @@ const hv = { class: "ao-comment" }, mv = { class: "ao-comment__created-at" }, gv
8062
8062
  f("span", mv, W(c.value), 1),
8063
8063
  f("div", gv, [
8064
8064
  f("div", Cv, [
8065
- (p(), D(mt(u.value), {
8065
+ (p(), D(ht(u.value), {
8066
8066
  ref_key: "commentContent",
8067
8067
  ref: n,
8068
8068
  class: "ao-comment__content",
@@ -8880,7 +8880,7 @@ const Tf = /* @__PURE__ */ q({
8880
8880
  e("update:rule", { ...a.rule, durationUnit: $ });
8881
8881
  }
8882
8882
  }), g = A(() => Object.values(K2));
8883
- return ($, h) => (p(), D(mt($.tagName), { class: "ao-rule-line" }, {
8883
+ return ($, h) => (p(), D(ht($.tagName), { class: "ao-rule-line" }, {
8884
8884
  default: N(() => [
8885
8885
  M(Q(ut), {
8886
8886
  modelValue: n.value,
@@ -8966,7 +8966,7 @@ const Of = { class: "ao-template-rules__body" }, Ef = { class: "ao-template-rule
8966
8966
  onClose: () => s(i.id)
8967
8967
  }, null, 8, ["rule", "template-phases", "template-milestones", "template-activities", "onClose"]))), 128))
8968
8968
  ]),
8969
- M(Ct, {
8969
+ M(gt, {
8970
8970
  label: n.$t("template.rules.add"),
8971
8971
  "icon-name": "Add",
8972
8972
  onClick: a
@@ -8977,7 +8977,7 @@ const Of = { class: "ao-template-rules__body" }, Ef = { class: "ao-template-rule
8977
8977
  }));
8978
8978
  }
8979
8979
  });
8980
- function Mt(t, e, a) {
8980
+ function At(t, e, a) {
8981
8981
  const s = t.length, n = t.at(-1), o = n ? we.LexoRank.parse(n.rank).genNext() : we.LexoRank.middle();
8982
8982
  return {
8983
8983
  name: a(`template.defaultName.${e}`, { idx: s + 1 }),
@@ -9000,7 +9000,7 @@ const Lf = {
9000
9000
  },
9001
9001
  emits: ["addItem", "removeItem", "updateItem", "addRule", "removeRule", "addFiles", "removeFile"],
9002
9002
  setup(t, { emit: e }) {
9003
- const a = t, { t: s } = yt(), n = A(
9003
+ const a = t, { t: s } = _t(), n = A(
9004
9004
  () => {
9005
9005
  var E;
9006
9006
  return (E = a.templates) == null ? void 0 : E.find((T) => T.id === a.templateId);
@@ -9072,7 +9072,7 @@ const Lf = {
9072
9072
  }), v = () => {
9073
9073
  if (!n.value)
9074
9074
  return;
9075
- const { name: E, rank: T } = Mt(
9075
+ const { name: E, rank: T } = At(
9076
9076
  n.value.phases,
9077
9077
  "phase",
9078
9078
  s
@@ -9112,7 +9112,7 @@ const Lf = {
9112
9112
  }, $ = (E) => {
9113
9113
  if (!i.value)
9114
9114
  return;
9115
- const { name: T, rank: k } = Mt(
9115
+ const { name: T, rank: k } = At(
9116
9116
  i.value.milestones,
9117
9117
  "milestone",
9118
9118
  s
@@ -9148,7 +9148,7 @@ const Lf = {
9148
9148
  const { milestoneId: T } = E;
9149
9149
  if (!l.value)
9150
9150
  return;
9151
- const { name: k, rank: R } = Mt(
9151
+ const { name: k, rank: R } = At(
9152
9152
  l.value.activities,
9153
9153
  "activity",
9154
9154
  s
@@ -9249,7 +9249,7 @@ const Lf = {
9249
9249
  f("div", Pf, [
9250
9250
  f("ol", Hf, [
9251
9251
  f("li", Vf, [
9252
- M(Q(gt), {
9252
+ M(Q(mt), {
9253
9253
  "model-value": n.value.phases,
9254
9254
  class: "ao-templates__list",
9255
9255
  "item-key": "id",
@@ -9284,7 +9284,7 @@ const Lf = {
9284
9284
  }),
9285
9285
  footer: N(() => [
9286
9286
  f("div", Df, [
9287
- M(Ct, {
9287
+ M(gt, {
9288
9288
  "icon-name": "AddBoxOutlineRounded",
9289
9289
  label: E.$t("template.phases.add"),
9290
9290
  onClick: v
@@ -9381,14 +9381,14 @@ const Nf = {
9381
9381
  borderColor: {}
9382
9382
  },
9383
9383
  setup(t) {
9384
- return (e, a) => (p(), D(mt(e.tagName), {
9384
+ return (e, a) => (p(), D(ht(e.tagName), {
9385
9385
  class: X([
9386
9386
  "ao-card",
9387
9387
  {
9388
9388
  "ao-card--clickable": e.isClickable
9389
9389
  }
9390
9390
  ]),
9391
- style: pt(e.isSelected ? { borderColor: e.borderColor || "var(--ao-color-blue-base)", borderWidth: "thick" } : {})
9391
+ style: Mt(e.isSelected ? { borderColor: e.borderColor || "var(--ao-color-blue-base)", borderWidth: "thick" } : {})
9392
9392
  }, {
9393
9393
  default: N(() => [
9394
9394
  e.$slots.header ? (p(), C("header", Nf, [
@@ -9421,7 +9421,7 @@ const ls = /* @__PURE__ */ q({
9421
9421
  (p(!0), C(fe, null, _e(a.value, (o) => (p(), C("div", {
9422
9422
  key: o,
9423
9423
  class: X(["ao-progress__progress"]),
9424
- style: pt({
9424
+ style: Mt({
9425
9425
  width: `${o * 100}%`,
9426
9426
  "--ao-progress-color": s.color || "var(--ao-color-primary-base)"
9427
9427
  })
@@ -9564,7 +9564,7 @@ const Jf = /* @__PURE__ */ q({
9564
9564
  setup(t) {
9565
9565
  return (e, a) => (p(), C("span", {
9566
9566
  class: "aoBadge",
9567
- style: pt({ backgroundColor: e.color })
9567
+ style: Mt({ backgroundColor: e.color })
9568
9568
  }, null, 4));
9569
9569
  }
9570
9570
  });
@@ -9714,7 +9714,7 @@ const eh = { class: "ao-card-project-milestone__default" }, th = { class: "ao-ti
9714
9714
  * (c) 2023
9715
9715
  * @license MIT
9716
9716
  */
9717
- function kt(t) {
9717
+ function $t(t) {
9718
9718
  let e = { r: 0, g: 0, b: 0, a: 1 };
9719
9719
  /#/.test(t) ? e = mh(t) : /rgb/.test(t) ? e = En(t) : typeof t == "string" ? e = En(`rgba(${t})`) : Object.prototype.toString.call(t) === "[object Object]" && (e = t);
9720
9720
  const { r: a, g: s, b: n, a: o } = e, { h: i, s: l, v: r } = gh(e);
@@ -10489,7 +10489,7 @@ var Ut = q({
10489
10489
  }
10490
10490
  },
10491
10491
  created() {
10492
- Object.assign(this, kt(this.color)), this.setText(), this.$watch("rgba", () => {
10492
+ Object.assign(this, $t(this.color)), this.setText(), this.$watch("rgba", () => {
10493
10493
  this.$emit("changeColor", {
10494
10494
  rgba: this.rgba,
10495
10495
  hsv: this.hsv,
@@ -10499,7 +10499,7 @@ var Ut = q({
10499
10499
  },
10500
10500
  methods: {
10501
10501
  selectSaturation(t) {
10502
- const { r: e, g: a, b: s, h: n, s: o, v: i } = kt(t);
10502
+ const { r: e, g: a, b: s, h: n, s: o, v: i } = $t(t);
10503
10503
  Object.assign(this, { r: e, g: a, b: s, h: n, s: o, v: i }), this.setText();
10504
10504
  },
10505
10505
  handleFocus(t) {
@@ -10509,7 +10509,7 @@ var Ut = q({
10509
10509
  this.$emit("inputBlur", t);
10510
10510
  },
10511
10511
  selectHue(t) {
10512
- const { r: e, g: a, b: s, h: n, s: o, v: i } = kt(t);
10512
+ const { r: e, g: a, b: s, h: n, s: o, v: i } = $t(t);
10513
10513
  Object.assign(this, { r: e, g: a, b: s, h: n, s: o, v: i }), this.setText(), this.$nextTick(() => {
10514
10514
  this.$refs.saturation.renderColor(), this.$refs.saturation.renderSlide();
10515
10515
  });
@@ -10518,13 +10518,13 @@ var Ut = q({
10518
10518
  this.a = t, this.setText();
10519
10519
  },
10520
10520
  inputHex(t) {
10521
- const { r: e, g: a, b: s, a: n, h: o, s: i, v: l } = kt(t);
10521
+ const { r: e, g: a, b: s, a: n, h: o, s: i, v: l } = $t(t);
10522
10522
  Object.assign(this, { r: e, g: a, b: s, a: n, h: o, s: i, v: l }), this.modelHex = t, this.modelRgba = this.rgbaStringShort, this.$nextTick(() => {
10523
10523
  this.$refs.saturation.renderColor(), this.$refs.saturation.renderSlide(), this.$refs.hue.renderSlide();
10524
10524
  });
10525
10525
  },
10526
10526
  inputRgba(t) {
10527
- const { r: e, g: a, b: s, a: n, h: o, s: i, v: l } = kt(t);
10527
+ const { r: e, g: a, b: s, a: n, h: o, s: i, v: l } = $t(t);
10528
10528
  Object.assign(this, { r: e, g: a, b: s, a: n, h: o, s: i, v: l }), this.modelHex = this.hexString, this.modelRgba = t, this.$nextTick(() => {
10529
10529
  this.$refs.saturation.renderColor(), this.$refs.saturation.renderSlide(), this.$refs.hue.renderSlide();
10530
10530
  });
@@ -10536,13 +10536,13 @@ var Ut = q({
10536
10536
  this.$emit("openSucker", t);
10537
10537
  },
10538
10538
  selectSucker(t) {
10539
- const { r: e, g: a, b: s, a: n, h: o, s: i, v: l } = kt(t);
10539
+ const { r: e, g: a, b: s, a: n, h: o, s: i, v: l } = $t(t);
10540
10540
  Object.assign(this, { r: e, g: a, b: s, a: n, h: o, s: i, v: l }), this.setText(), this.$nextTick(() => {
10541
10541
  this.$refs.saturation.renderColor(), this.$refs.saturation.renderSlide(), this.$refs.hue.renderSlide();
10542
10542
  });
10543
10543
  },
10544
10544
  selectColor(t) {
10545
- const { r: e, g: a, b: s, a: n, h: o, s: i, v: l } = kt(t);
10545
+ const { r: e, g: a, b: s, a: n, h: o, s: i, v: l } = $t(t);
10546
10546
  Object.assign(this, { r: e, g: a, b: s, a: n, h: o, s: i, v: l }), this.setText(), this.$nextTick(() => {
10547
10547
  this.$refs.saturation.renderColor(), this.$refs.saturation.renderSlide(), this.$refs.hue.renderSlide();
10548
10548
  });
@@ -10743,8 +10743,7 @@ const jh = { class: "ao-mapping-card-project-phase__header" }, Rh = { class: "ao
10743
10743
  M(os, {
10744
10744
  class: "ao-mapping-card-project-phase",
10745
10745
  "is-clickable": d.isEditable,
10746
- onClick: (b) => u(b, m),
10747
- style: pt({ "--ao-card-custom-bg": w })
10746
+ onClick: (b) => u(b, m)
10748
10747
  }, fa({
10749
10748
  default: N(() => [
10750
10749
  f("div", Rh, [
@@ -10822,7 +10821,7 @@ const jh = { class: "ao-mapping-card-project-phase__header" }, Rh = { class: "ao
10822
10821
  ]),
10823
10822
  key: "0"
10824
10823
  } : void 0
10825
- ]), 1032, ["is-clickable", "onClick", "style"])
10824
+ ]), 1032, ["is-clickable", "onClick"])
10826
10825
  ]),
10827
10826
  _: 3
10828
10827
  }, 8, ["color"]));
@@ -10851,7 +10850,7 @@ const xh = { class: "ao-project-phase" }, Kh = {
10851
10850
  },
10852
10851
  emits: ["addMilestone", "updateMilestone", "archiveMilestone", "unarchiveMilestone", "updatePhase", "archivePhase", "unarchivePhase"],
10853
10852
  setup(t, { emit: e }) {
10854
- const a = t, { t: s } = yt();
10853
+ const a = t, { t: s } = _t();
10855
10854
  ce(
10856
10855
  () => a.phase.milestones,
10857
10856
  (h, _) => {
@@ -10869,7 +10868,7 @@ const xh = { class: "ao-project-phase" }, Kh = {
10869
10868
  (h) => j3(h, a.closedStatus)
10870
10869
  )
10871
10870
  ), r = (h) => {
10872
- const { name: _, rank: P } = Mt(
10871
+ const { name: _, rank: P } = At(
10873
10872
  l.value ?? [],
10874
10873
  "milestone",
10875
10874
  s
@@ -10901,7 +10900,7 @@ const xh = { class: "ao-project-phase" }, Kh = {
10901
10900
  return (h, _) => (p(), C("li", xh, [
10902
10901
  f("div", {
10903
10902
  class: "ao-project-phases__draggable-card",
10904
- style: pt($.value)
10903
+ style: Mt($.value)
10905
10904
  }, [
10906
10905
  h.isEditable ? (p(), C("div", Kh, [
10907
10906
  M(pe, {
@@ -10943,9 +10942,9 @@ const xh = { class: "ao-project-phase" }, Kh = {
10943
10942
  g.value ? O("", !0) : (p(), C("div", Qh, [
10944
10943
  f("div", {
10945
10944
  class: "ao-project-phase__milestones",
10946
- style: pt($.value)
10945
+ style: Mt($.value)
10947
10946
  }, [
10948
- M(Q(gt), Ae({
10947
+ M(Q(mt), Ae({
10949
10948
  class: "ao-project-phase__milestones-list",
10950
10949
  list: l.value,
10951
10950
  disabled: h.readonly || !h.isEditable,
@@ -10984,7 +10983,7 @@ const xh = { class: "ao-project-phase" }, Kh = {
10984
10983
  _: 1
10985
10984
  }, 16, ["list", "disabled"]),
10986
10985
  f("div", Jh, [
10987
- h.isEditable ? (p(), D(Ct, {
10986
+ h.isEditable ? (p(), D(gt, {
10988
10987
  key: 0,
10989
10988
  label: h.$t("project.milestone.add"),
10990
10989
  class: "ao-project-phase__milestone-add",
@@ -11041,7 +11040,7 @@ const t9 = { class: "ao-project__phases" }, a9 = {
11041
11040
  e("addPhase", v);
11042
11041
  };
11043
11042
  return (v, m) => (p(), C("div", t9, [
11044
- M(Q(gt), {
11043
+ M(Q(mt), {
11045
11044
  class: "ao-project-phase__phases-list",
11046
11045
  "model-value": v.phases,
11047
11046
  "item-key": "id",
@@ -11069,7 +11068,7 @@ const t9 = { class: "ao-project__phases" }, a9 = {
11069
11068
  v.isEditable ? (p(), C("div", a9, [
11070
11069
  s9,
11071
11070
  f("div", n9, [
11072
- M(Ct, {
11071
+ M(gt, {
11073
11072
  label: v.$t("project.phases.add"),
11074
11073
  "icon-name": "Add",
11075
11074
  class: "ao-project-phase__add-phase",
@@ -11254,10 +11253,10 @@ const an = /* @__PURE__ */ U(y9, [["render", $9], ["__scopeId", "data-v-ff4e3297
11254
11253
  },
11255
11254
  emits: ["addPhase", "updatePhase", "archivePhase", "unarchivePhase", "addMilestone", "updateMilestone", "archiveMilestone", "unarchiveMilestone", "addActivity", "update:activity", "archiveActivity", "copyPhaseToTemplate", "unarchiveActivity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "applyTemplate", "saveTemplate", "update:showsArchived"],
11256
11255
  setup(t, { emit: e }) {
11257
- const a = t, { t: s } = yt(), n = A(
11256
+ const a = t, { t: s } = _t(), n = A(
11258
11257
  () => a.phases.flatMap((T) => T.milestones)
11259
11258
  ), o = () => {
11260
- const { name: T, rank: k } = Mt(a.phases, "phase", s);
11259
+ const { name: T, rank: k } = At(a.phases, "phase", s);
11261
11260
  e("addPhase", { name: T, rank: k, projectId: a.project.id });
11262
11261
  }, i = (T) => {
11263
11262
  e("updatePhase", T);
@@ -11414,7 +11413,7 @@ const an = /* @__PURE__ */ U(y9, [["render", $9], ["__scopeId", "data-v-ff4e3297
11414
11413
  onRemoveComment: J
11415
11414
  }, {
11416
11415
  default: N(({ Component: y }) => [
11417
- (p(), D(mt(y), null, {
11416
+ (p(), D(ht(y), null, {
11418
11417
  default: N((V) => [
11419
11418
  te(T.$slots, "activityDetailsBody", ha(ma(V)))
11420
11419
  ]),
@@ -11645,7 +11644,7 @@ const K9 = { class: "ao-project-milestone" }, G9 = { class: "ao-project-mileston
11645
11644
  },
11646
11645
  emits: ["close", "addActivity", "updateMilestone", "updateActivity", "archiveActivity", "unarchiveActivity"],
11647
11646
  setup(t, { emit: e }) {
11648
- const a = t, { t: s } = yt(), n = A(() => {
11647
+ const a = t, { t: s } = _t(), n = A(() => {
11649
11648
  var h;
11650
11649
  return (h = a.phases) == null ? void 0 : h.find((_) => _.id === a.phaseId);
11651
11650
  }), o = A(
@@ -11666,7 +11665,7 @@ const K9 = { class: "ao-project-milestone" }, G9 = { class: "ao-project-mileston
11666
11665
  const r = (h) => {
11667
11666
  e("close", h);
11668
11667
  }, c = () => {
11669
- const { name: h, rank: _ } = Mt(
11668
+ const { name: h, rank: _ } = At(
11670
11669
  l.value ?? [],
11671
11670
  "activity",
11672
11671
  s
@@ -11820,7 +11819,7 @@ const K9 = { class: "ao-project-milestone" }, G9 = { class: "ao-project-mileston
11820
11819
  }, {
11821
11820
  clickable: N(({ openPicker: I, bgColor: L }) => [
11822
11821
  f("button", {
11823
- style: pt({ background: L }),
11822
+ style: Mt({ background: L }),
11824
11823
  class: "color-button",
11825
11824
  onClick: I
11826
11825
  }, null, 12, i4)
@@ -11830,7 +11829,7 @@ const K9 = { class: "ao-project-milestone" }, G9 = { class: "ao-project-mileston
11830
11829
  ])) : O("", !0)
11831
11830
  ]),
11832
11831
  f("div", o4, [
11833
- M(Q(gt), Ae({
11832
+ M(Q(mt), Ae({
11834
11833
  class: "ao-project-milestone__activities",
11835
11834
  list: l.value,
11836
11835
  disabled: !h.isEditable,
@@ -11901,7 +11900,7 @@ const K9 = { class: "ao-project-milestone" }, G9 = { class: "ao-project-mileston
11901
11900
  _: 1
11902
11901
  }, 16, ["list", "disabled"]),
11903
11902
  h.isEditable ? (p(), C("div", l4, [
11904
- M(Ct, {
11903
+ M(gt, {
11905
11904
  "icon-name": "Add",
11906
11905
  label: h.$t("project.activity.add"),
11907
11906
  onClick: c
@@ -12197,7 +12196,7 @@ const b4 = {
12197
12196
  ])
12198
12197
  ];
12199
12198
  }) : O("", !0),
12200
- M(Q(gt), Ae({
12199
+ M(Q(mt), Ae({
12201
12200
  class: ["ao-list-kanban__list", c.value ? "ao-list-kanban__transition" : void 0],
12202
12201
  list: u.list,
12203
12202
  "item-key": "id",
@@ -12289,7 +12288,7 @@ const b4 = {
12289
12288
  }, 16, ["class", "list", "disabled"]),
12290
12289
  u.$slots.footer || u.footerLabel ? (p(), C("div", M4, [
12291
12290
  te(u.$slots, "footer", {}, () => [
12292
- u.isEditable ? (p(), D(Ct, {
12291
+ u.isEditable ? (p(), D(gt, {
12293
12292
  key: 0,
12294
12293
  "icon-name": "AddBoxOutlineRounded",
12295
12294
  label: u.footerLabel,
@@ -12364,7 +12363,7 @@ const L4 = { class: "ao-feed" }, P4 = { class: "ao-feed__filters" }, H4 = { clas
12364
12363
  },
12365
12364
  emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "unarchiveActivity", "update:searchText", "clear:searchText", "update:showsArchivedActivities", "update:showsOnlyImportant", "update:showsOnlyNonAssigned", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "toast"],
12366
12365
  setup(t, { emit: e }) {
12367
- const a = t, { t: s } = yt();
12366
+ const a = t, { t: s } = _t();
12368
12367
  function n(k, R) {
12369
12368
  e("toast", k, R);
12370
12369
  }
@@ -12635,8 +12634,8 @@ const D4 = { class: "ao-project-mapping" }, B4 = { class: "ao-project-mapping-ma
12635
12634
  },
12636
12635
  emits: ["addPhase", "updatePhase", "archivePhase", "unarchivePhase", "copyPhaseToTemplate", "applyTemplate", "saveTemplate", "update:showsArchived"],
12637
12636
  setup(t, { emit: e }) {
12638
- const a = t, { t: s } = yt(), n = () => {
12639
- const { name: g, rank: $ } = Mt(a.phases, "phase", s);
12637
+ const a = t, { t: s } = _t(), n = () => {
12638
+ const { name: g, rank: $ } = At(a.phases, "phase", s);
12640
12639
  e("addPhase", { name: g, rank: $, projectId: a.project.id });
12641
12640
  }, o = (g) => {
12642
12641
  e("updatePhase", g);
@@ -12822,7 +12821,7 @@ const jt = {
12822
12821
  },
12823
12822
  emits: ["addTemplate", "updateTemplates", "updateItem", "removeItem"],
12824
12823
  setup(t, { emit: e }) {
12825
- const a = t, { t: s } = yt();
12824
+ const a = t, { t: s } = _t();
12826
12825
  ce(() => a.templates, (r, c) => {
12827
12826
  Xe(r, c);
12828
12827
  });
@@ -12877,7 +12876,7 @@ const jt = {
12877
12876
  ]),
12878
12877
  _: 1
12879
12878
  }),
12880
- M(Q(gt), {
12879
+ M(Q(mt), {
12881
12880
  "model-value": r.templates,
12882
12881
  class: "ao-templates__list",
12883
12882
  "item-key": "id",