@26lights/orcha 0.41.47 → 0.41.49

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
@@ -1265,12 +1265,12 @@ const be = /* @__PURE__ */ Y({
1265
1265
  } : {
1266
1266
  click: $,
1267
1267
  focus: $
1268
- } : {}), u = i((w, m) => {
1269
- const C = m.target.value;
1270
- e("update:title", C);
1268
+ } : {}), u = i((w, C) => {
1269
+ const g = C.target.value;
1270
+ e("update:title", g);
1271
1271
  }), v = l(), p = async () => {
1272
1272
  n.value && o(!1);
1273
- }, g = () => {
1273
+ }, m = () => {
1274
1274
  e("toggle-is-editing", !1);
1275
1275
  }, $ = (w) => {
1276
1276
  w.stopPropagation(), n.value || o(!0);
@@ -1280,7 +1280,7 @@ const be = /* @__PURE__ */ Y({
1280
1280
  (w) => {
1281
1281
  w || v();
1282
1282
  }
1283
- ), (w, m) => (d(), D(ht(r.value), Ae({
1283
+ ), (w, C) => (d(), D(ht(r.value), Ae({
1284
1284
  id: w.id,
1285
1285
  ref_key: "target",
1286
1286
  ref: s,
@@ -1297,7 +1297,7 @@ const be = /* @__PURE__ */ Y({
1297
1297
  type: Q(n) ? "text" : null,
1298
1298
  value: Q(n) ? w.title : null,
1299
1299
  tabindex: "0",
1300
- onKeyup: dt(g, ["enter"])
1300
+ onKeyup: dt(m, ["enter"])
1301
1301
  }, Bi(c.value), {
1302
1302
  onKeydown: dt(Q(v), ["esc"])
1303
1303
  }), {
@@ -1598,28 +1598,28 @@ function Na(t, e) {
1598
1598
  var u = ga(), v = Je((a = (s = (n = (o = e == null ? void 0 : e.weekStartsOn) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && n !== void 0 ? n : u.weekStartsOn) !== null && s !== void 0 ? s : (r = u.locale) === null || r === void 0 || (c = r.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && a !== void 0 ? a : 0);
1599
1599
  if (!(v >= 0 && v <= 6))
1600
1600
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1601
- var p = $e(t), g = p.getUTCDay(), $ = (g < v ? 7 : 0) + g - v;
1601
+ var p = $e(t), m = p.getUTCDay(), $ = (m < v ? 7 : 0) + m - v;
1602
1602
  return p.setUTCDate(p.getUTCDate() - $), p.setUTCHours(0, 0, 0, 0), p;
1603
1603
  }
1604
1604
  function Rn(t, e) {
1605
1605
  var a, s, n, o, i, l, r, c;
1606
1606
  Ce(1, arguments);
1607
- var u = $e(t), v = u.getUTCFullYear(), p = ga(), g = Je((a = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : p.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = p.locale) === null || r === void 0 || (c = r.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && a !== void 0 ? a : 1);
1608
- if (!(g >= 1 && g <= 7))
1607
+ var u = $e(t), v = u.getUTCFullYear(), p = ga(), m = Je((a = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : p.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = p.locale) === null || r === void 0 || (c = r.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && a !== void 0 ? a : 1);
1608
+ if (!(m >= 1 && m <= 7))
1609
1609
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1610
1610
  var $ = /* @__PURE__ */ new Date(0);
1611
- $.setUTCFullYear(v + 1, 0, g), $.setUTCHours(0, 0, 0, 0);
1612
- var w = Na($, e), m = /* @__PURE__ */ new Date(0);
1613
- m.setUTCFullYear(v, 0, g), m.setUTCHours(0, 0, 0, 0);
1614
- var h = Na(m, e);
1611
+ $.setUTCFullYear(v + 1, 0, m), $.setUTCHours(0, 0, 0, 0);
1612
+ var w = Na($, e), C = /* @__PURE__ */ new Date(0);
1613
+ C.setUTCFullYear(v, 0, m), C.setUTCHours(0, 0, 0, 0);
1614
+ var h = Na(C, e);
1615
1615
  return u.getTime() >= w.getTime() ? v + 1 : u.getTime() >= h.getTime() ? v : v - 1;
1616
1616
  }
1617
1617
  function l0(t, e) {
1618
1618
  var a, s, n, o, i, l, r, c;
1619
1619
  Ce(1, arguments);
1620
- var u = ga(), v = Je((a = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : u.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = u.locale) === null || r === void 0 || (c = r.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && a !== void 0 ? a : 1), p = Rn(t, e), g = /* @__PURE__ */ new Date(0);
1621
- g.setUTCFullYear(p, 0, v), g.setUTCHours(0, 0, 0, 0);
1622
- var $ = Na(g, e);
1620
+ var u = ga(), v = Je((a = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : u.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = u.locale) === null || r === void 0 || (c = r.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && a !== void 0 ? a : 1), p = Rn(t, e), m = /* @__PURE__ */ new Date(0);
1621
+ m.setUTCFullYear(p, 0, v), m.setUTCHours(0, 0, 0, 0);
1622
+ var $ = Na(m, e);
1623
1623
  return $;
1624
1624
  }
1625
1625
  var r0 = 6048e5;
@@ -2734,12 +2734,12 @@ var s3 = {
2734
2734
  const Un = s3;
2735
2735
  var n3 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, i3 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, o3 = /^'([^]*?)'?$/, l3 = /''/g, r3 = /[a-zA-Z]/;
2736
2736
  function Fn(t, e, a) {
2737
- var s, n, o, i, l, r, c, u, v, p, g, $, w, m, h, C, y, P;
2737
+ var s, n, o, i, l, r, c, u, v, p, m, $, w, C, h, g, y, P;
2738
2738
  Ce(2, arguments);
2739
2739
  var I = String(e), L = ga(), U = (s = (n = a == null ? void 0 : a.locale) !== null && n !== void 0 ? n : L.locale) !== null && s !== void 0 ? s : Un, z = Je((o = (i = (l = (r = a == null ? void 0 : a.firstWeekContainsDate) !== null && r !== void 0 ? r : a == null || (c = a.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && l !== void 0 ? l : L.firstWeekContainsDate) !== null && i !== void 0 ? i : (v = L.locale) === null || v === void 0 || (p = v.options) === null || p === void 0 ? void 0 : p.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
2740
2740
  if (!(z >= 1 && z <= 7))
2741
2741
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
2742
- var K = Je((g = ($ = (w = (m = a == null ? void 0 : a.weekStartsOn) !== null && m !== void 0 ? m : a == null || (h = a.locale) === null || h === void 0 || (C = h.options) === null || C === void 0 ? void 0 : C.weekStartsOn) !== null && w !== void 0 ? w : L.weekStartsOn) !== null && $ !== void 0 ? $ : (y = L.locale) === null || y === void 0 || (P = y.options) === null || P === void 0 ? void 0 : P.weekStartsOn) !== null && g !== void 0 ? g : 0);
2742
+ var K = Je((m = ($ = (w = (C = a == null ? void 0 : a.weekStartsOn) !== null && C !== void 0 ? C : a == null || (h = a.locale) === null || h === void 0 || (g = h.options) === null || g === void 0 ? void 0 : g.weekStartsOn) !== null && w !== void 0 ? w : L.weekStartsOn) !== null && $ !== void 0 ? $ : (y = L.locale) === null || y === void 0 || (P = y.options) === null || P === void 0 ? void 0 : P.weekStartsOn) !== null && m !== void 0 ? m : 0);
2743
2743
  if (!(K >= 0 && K <= 6))
2744
2744
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
2745
2745
  if (!U.localize)
@@ -2783,24 +2783,24 @@ function u3(t) {
2783
2783
  function c3(t, e, a) {
2784
2784
  var s, n, o, i, l, r, c, u, v, p;
2785
2785
  Ce(2, arguments);
2786
- var g = $e(t), $ = $e(e), w = ga(), m = (s = (n = a == null ? void 0 : a.locale) !== null && n !== void 0 ? n : w.locale) !== null && s !== void 0 ? s : Un, h = Je((o = (i = (l = (r = a == null ? void 0 : a.weekStartsOn) !== null && r !== void 0 ? r : a == null || (c = a.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && l !== void 0 ? l : w.weekStartsOn) !== null && i !== void 0 ? i : (v = w.locale) === null || v === void 0 || (p = v.options) === null || p === void 0 ? void 0 : p.weekStartsOn) !== null && o !== void 0 ? o : 0);
2787
- if (!m.localize)
2786
+ var m = $e(t), $ = $e(e), w = ga(), C = (s = (n = a == null ? void 0 : a.locale) !== null && n !== void 0 ? n : w.locale) !== null && s !== void 0 ? s : Un, h = Je((o = (i = (l = (r = a == null ? void 0 : a.weekStartsOn) !== null && r !== void 0 ? r : a == null || (c = a.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && l !== void 0 ? l : w.weekStartsOn) !== null && i !== void 0 ? i : (v = w.locale) === null || v === void 0 || (p = v.options) === null || p === void 0 ? void 0 : p.weekStartsOn) !== null && o !== void 0 ? o : 0);
2787
+ if (!C.localize)
2788
2788
  throw new RangeError("locale must contain localize property");
2789
- if (!m.formatLong)
2789
+ if (!C.formatLong)
2790
2790
  throw new RangeError("locale must contain formatLong property");
2791
- if (!m.formatRelative)
2791
+ if (!C.formatRelative)
2792
2792
  throw new RangeError("locale must contain formatRelative property");
2793
- var C = J2(g, $);
2794
- if (isNaN(C))
2793
+ var g = J2(m, $);
2794
+ if (isNaN(g))
2795
2795
  throw new RangeError("Invalid time value");
2796
2796
  var y;
2797
- C < -6 ? y = "other" : C < -1 ? y = "lastWeek" : C < 0 ? y = "yesterday" : C < 1 ? y = "today" : C < 2 ? y = "tomorrow" : C < 7 ? y = "nextWeek" : y = "other";
2798
- var P = ws(g, ra(g)), I = ws($, ra($)), L = m.formatRelative(y, P, I, {
2799
- locale: m,
2797
+ g < -6 ? y = "other" : g < -1 ? y = "lastWeek" : g < 0 ? y = "yesterday" : g < 1 ? y = "today" : g < 2 ? y = "tomorrow" : g < 7 ? y = "nextWeek" : y = "other";
2798
+ var P = ws(m, ra(m)), I = ws($, ra($)), L = C.formatRelative(y, P, I, {
2799
+ locale: C,
2800
2800
  weekStartsOn: h
2801
2801
  });
2802
- return Fn(g, L, {
2803
- locale: m,
2802
+ return Fn(m, L, {
2803
+ locale: C,
2804
2804
  weekStartsOn: h
2805
2805
  });
2806
2806
  }
@@ -3500,17 +3500,17 @@ function Yn() {
3500
3500
  }
3501
3501
  let v;
3502
3502
  for (let $ = r.getScale(); $ > 0; c = v) {
3503
- const w = $ - 1, m = r.setScale(w, !0);
3504
- if (v = c.setScale(w, !1), m.compareTo(v) === 0)
3505
- return n.checkMid(i, l, m);
3506
- if (m.compareTo(v) > 0)
3503
+ const w = $ - 1, C = r.setScale(w, !0);
3504
+ if (v = c.setScale(w, !1), C.compareTo(v) === 0)
3505
+ return n.checkMid(i, l, C);
3506
+ if (C.compareTo(v) > 0)
3507
3507
  break;
3508
- $ = w, r = m;
3508
+ $ = w, r = C;
3509
3509
  }
3510
- let p = n.middleInternal(i, l, r, c), g;
3511
- for (let $ = p.getScale(); $ > 0; $ = g) {
3512
- g = $ - 1;
3513
- const w = p.setScale(g);
3510
+ let p = n.middleInternal(i, l, r, c), m;
3511
+ for (let $ = p.getScale(); $ > 0; $ = m) {
3512
+ m = $ - 1;
3513
+ const w = p.setScale(m);
3514
3514
  if (i.compareTo(w) >= 0 || w.compareTo(l) >= 0)
3515
3515
  break;
3516
3516
  p = w;
@@ -4322,47 +4322,47 @@ function gn(t, e, a) {
4322
4322
  floating: n
4323
4323
  } = t;
4324
4324
  const o = Ds(e), i = Xn(e), l = Gn(i), r = Ft(e), c = o === "y", u = s.x + s.width / 2 - n.width / 2, v = s.y + s.height / 2 - n.height / 2, p = s[l] / 2 - n[l] / 2;
4325
- let g;
4325
+ let m;
4326
4326
  switch (r) {
4327
4327
  case "top":
4328
- g = {
4328
+ m = {
4329
4329
  x: u,
4330
4330
  y: s.y - n.height
4331
4331
  };
4332
4332
  break;
4333
4333
  case "bottom":
4334
- g = {
4334
+ m = {
4335
4335
  x: u,
4336
4336
  y: s.y + s.height
4337
4337
  };
4338
4338
  break;
4339
4339
  case "right":
4340
- g = {
4340
+ m = {
4341
4341
  x: s.x + s.width,
4342
4342
  y: v
4343
4343
  };
4344
4344
  break;
4345
4345
  case "left":
4346
- g = {
4346
+ m = {
4347
4347
  x: s.x - n.width,
4348
4348
  y: v
4349
4349
  };
4350
4350
  break;
4351
4351
  default:
4352
- g = {
4352
+ m = {
4353
4353
  x: s.x,
4354
4354
  y: s.y
4355
4355
  };
4356
4356
  }
4357
4357
  switch (es(e)) {
4358
4358
  case "start":
4359
- g[i] -= p * (a && c ? -1 : 1);
4359
+ m[i] -= p * (a && c ? -1 : 1);
4360
4360
  break;
4361
4361
  case "end":
4362
- g[i] += p * (a && c ? -1 : 1);
4362
+ m[i] += p * (a && c ? -1 : 1);
4363
4363
  break;
4364
4364
  }
4365
- return g;
4365
+ return m;
4366
4366
  }
4367
4367
  const R5 = async (t, e, a) => {
4368
4368
  const {
@@ -4378,13 +4378,13 @@ const R5 = async (t, e, a) => {
4378
4378
  }), {
4379
4379
  x: u,
4380
4380
  y: v
4381
- } = gn(c, s, r), p = s, g = {}, $ = 0;
4381
+ } = gn(c, s, r), p = s, m = {}, $ = 0;
4382
4382
  for (let w = 0; w < l.length; w++) {
4383
4383
  const {
4384
- name: m,
4384
+ name: C,
4385
4385
  fn: h
4386
4386
  } = l[w], {
4387
- x: C,
4387
+ x: g,
4388
4388
  y,
4389
4389
  data: P,
4390
4390
  reset: I
@@ -4394,7 +4394,7 @@ const R5 = async (t, e, a) => {
4394
4394
  initialPlacement: s,
4395
4395
  placement: p,
4396
4396
  strategy: n,
4397
- middlewareData: g,
4397
+ middlewareData: m,
4398
4398
  rects: c,
4399
4399
  platform: i,
4400
4400
  elements: {
@@ -4402,10 +4402,10 @@ const R5 = async (t, e, a) => {
4402
4402
  floating: e
4403
4403
  }
4404
4404
  });
4405
- if (u = C ?? u, v = y ?? v, g = {
4406
- ...g,
4407
- [m]: {
4408
- ...g[m],
4405
+ if (u = g ?? u, v = y ?? v, m = {
4406
+ ...m,
4407
+ [C]: {
4408
+ ...m[C],
4409
4409
  ...P
4410
4410
  }
4411
4411
  }, I && $ <= 50) {
@@ -4425,7 +4425,7 @@ const R5 = async (t, e, a) => {
4425
4425
  y: v,
4426
4426
  placement: p,
4427
4427
  strategy: n,
4428
- middlewareData: g
4428
+ middlewareData: m
4429
4429
  };
4430
4430
  };
4431
4431
  async function Qn(t, e) {
@@ -4443,13 +4443,13 @@ async function Qn(t, e) {
4443
4443
  rootBoundary: u = "viewport",
4444
4444
  elementContext: v = "floating",
4445
4445
  altBoundary: p = !1,
4446
- padding: g = 0
4447
- } = Vs(e, t), $ = j5(g), m = l[p ? v === "floating" ? "reference" : "floating" : v], h = Za(await o.getClippingRect({
4448
- element: (a = await (o.isElement == null ? void 0 : o.isElement(m))) == null || a ? m : m.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
4446
+ padding: m = 0
4447
+ } = Vs(e, t), $ = j5(m), C = l[p ? v === "floating" ? "reference" : "floating" : v], h = Za(await o.getClippingRect({
4448
+ element: (a = await (o.isElement == null ? void 0 : o.isElement(C))) == null || a ? C : C.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
4449
4449
  boundary: c,
4450
4450
  rootBoundary: u,
4451
4451
  strategy: r
4452
- })), C = v === "floating" ? {
4452
+ })), g = v === "floating" ? {
4453
4453
  ...i.floating,
4454
4454
  x: s,
4455
4455
  y: n
@@ -4460,10 +4460,10 @@ async function Qn(t, e) {
4460
4460
  x: 1,
4461
4461
  y: 1
4462
4462
  }, I = Za(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
4463
- rect: C,
4463
+ rect: g,
4464
4464
  offsetParent: y,
4465
4465
  strategy: r
4466
- }) : C);
4466
+ }) : g);
4467
4467
  return {
4468
4468
  top: (h.top - I.top + $.top) / P.y,
4469
4469
  bottom: (I.bottom - h.bottom + $.bottom) / P.y,
@@ -4488,16 +4488,16 @@ const N5 = function(t) {
4488
4488
  mainAxis: u = !0,
4489
4489
  crossAxis: v = !0,
4490
4490
  fallbackPlacements: p,
4491
- fallbackStrategy: g = "bestFit",
4491
+ fallbackStrategy: m = "bestFit",
4492
4492
  fallbackAxisSideDirection: $ = "none",
4493
4493
  flipAlignment: w = !0,
4494
- ...m
4494
+ ...C
4495
4495
  } = Vs(t, e);
4496
4496
  if ((a = o.arrow) != null && a.alignmentOffset)
4497
4497
  return {};
4498
- const h = Ft(n), C = Ft(l) === l, y = await (r.isRTL == null ? void 0 : r.isRTL(c.floating)), P = p || (C || !w ? [Fa(l)] : H5(l));
4498
+ const h = Ft(n), g = Ft(l) === l, y = await (r.isRTL == null ? void 0 : r.isRTL(c.floating)), P = p || (g || !w ? [Fa(l)] : H5(l));
4499
4499
  !p && $ !== "none" && P.push(...D5(l, w, $, y));
4500
- const I = [l, ...P], L = await Qn(e, m), U = [];
4500
+ const I = [l, ...P], L = await Qn(e, C), U = [];
4501
4501
  let z = ((s = o.flip) == null ? void 0 : s.overflows) || [];
4502
4502
  if (u && U.push(L[h]), v) {
4503
4503
  const j = P5(n, i, y);
@@ -4521,7 +4521,7 @@ const N5 = function(t) {
4521
4521
  };
4522
4522
  let le = (J = z.filter((se) => se.overflows[0] <= 0).sort((se, ee) => se.overflows[1] - ee.overflows[1])[0]) == null ? void 0 : J.placement;
4523
4523
  if (!le)
4524
- switch (g) {
4524
+ switch (m) {
4525
4525
  case "bestFit": {
4526
4526
  var ae;
4527
4527
  const se = (ae = z.map((ee) => [ee.placement, ee.overflows.filter((E) => E > 0).reduce((E, T) => E + T, 0)]).sort((ee, E) => ee[1] - E[1])[0]) == null ? void 0 : ae[0];
@@ -4558,22 +4558,22 @@ const N5 = function(t) {
4558
4558
  ...l
4559
4559
  } = Vs(t, e), r = await Qn(e, l), c = Ft(a), u = es(a), v = Ds(a) === "y", {
4560
4560
  width: p,
4561
- height: g
4561
+ height: m
4562
4562
  } = s.floating;
4563
4563
  let $, w;
4564
4564
  c === "top" || c === "bottom" ? ($ = c, w = u === (await (n.isRTL == null ? void 0 : n.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (w = c, $ = u === "end" ? "top" : "bottom");
4565
- const m = g - r[$], h = p - r[w], C = !e.middlewareData.shift;
4566
- let y = m, P = h;
4565
+ const C = m - r[$], h = p - r[w], g = !e.middlewareData.shift;
4566
+ let y = C, P = h;
4567
4567
  if (v) {
4568
4568
  const L = p - r.left - r.right;
4569
- P = u || C ? ca(h, L) : L;
4569
+ P = u || g ? ca(h, L) : L;
4570
4570
  } else {
4571
- const L = g - r.top - r.bottom;
4572
- y = u || C ? ca(m, L) : L;
4571
+ const L = m - r.top - r.bottom;
4572
+ y = u || g ? ca(C, L) : L;
4573
4573
  }
4574
- if (C && !u) {
4574
+ if (g && !u) {
4575
4575
  const L = He(r.left, 0), U = He(r.right, 0), z = He(r.top, 0), K = He(r.bottom, 0);
4576
- v ? P = p - 2 * (L !== 0 || U !== 0 ? L + U : He(r.left, r.right)) : y = g - 2 * (z !== 0 || K !== 0 ? z + K : He(r.top, r.bottom));
4576
+ v ? P = p - 2 * (L !== 0 || U !== 0 ? L + U : He(r.left, r.right)) : y = m - 2 * (z !== 0 || K !== 0 ? z + K : He(r.top, r.bottom));
4577
4577
  }
4578
4578
  await i({
4579
4579
  ...e,
@@ -4581,7 +4581,7 @@ const N5 = function(t) {
4581
4581
  availableHeight: y
4582
4582
  });
4583
4583
  const I = await n.getDimensions(o.floating);
4584
- return p !== I.width || g !== I.height ? {
4584
+ return p !== I.width || m !== I.height ? {
4585
4585
  reset: {
4586
4586
  rects: !0
4587
4587
  }
@@ -4724,11 +4724,11 @@ function Ot(t, e, a, s) {
4724
4724
  const l = z5(o, a, s) ? ai(o) : pt(0);
4725
4725
  let r = (n.left + l.x) / i.x, c = (n.top + l.y) / i.y, u = n.width / i.x, v = n.height / i.y;
4726
4726
  if (o) {
4727
- const p = Te(o), g = s && tt(s) ? Te(s) : s;
4727
+ const p = Te(o), m = s && tt(s) ? Te(s) : s;
4728
4728
  let $ = p.frameElement;
4729
- for (; $ && s && g !== p; ) {
4730
- const w = Nt($), m = $.getBoundingClientRect(), h = je($), C = m.left + ($.clientLeft + parseFloat(h.paddingLeft)) * w.x, y = m.top + ($.clientTop + parseFloat(h.paddingTop)) * w.y;
4731
- r *= w.x, c *= w.y, u *= w.x, v *= w.y, r += C, c += y, $ = Te($).frameElement;
4729
+ for (; $ && s && m !== p; ) {
4730
+ const w = Nt($), C = $.getBoundingClientRect(), h = je($), g = C.left + ($.clientLeft + parseFloat(h.paddingLeft)) * w.x, y = C.top + ($.clientTop + parseFloat(h.paddingTop)) * w.y;
4731
+ r *= w.x, c *= w.y, u *= w.x, v *= w.y, r += g, c += y, $ = Te($).frameElement;
4732
4732
  }
4733
4733
  }
4734
4734
  return Za({
@@ -4939,8 +4939,8 @@ function n7(t, e) {
4939
4939
  } = t.getBoundingClientRect();
4940
4940
  if (l || e(), !v || !p)
4941
4941
  return;
4942
- const g = Pa(u), $ = Pa(n.clientWidth - (c + v)), w = Pa(n.clientHeight - (u + p)), m = Pa(c), C = {
4943
- rootMargin: -g + "px " + -$ + "px " + -w + "px " + -m + "px",
4942
+ const m = Pa(u), $ = Pa(n.clientWidth - (c + v)), w = Pa(n.clientHeight - (u + p)), C = Pa(c), g = {
4943
+ rootMargin: -m + "px " + -$ + "px " + -w + "px " + -C + "px",
4944
4944
  threshold: He(0, ca(1, r)) || 1
4945
4945
  };
4946
4946
  let y = !0;
@@ -4957,12 +4957,12 @@ function n7(t, e) {
4957
4957
  }
4958
4958
  try {
4959
4959
  a = new IntersectionObserver(P, {
4960
- ...C,
4960
+ ...g,
4961
4961
  // Handle <iframe>s
4962
4962
  root: n.ownerDocument
4963
4963
  });
4964
4964
  } catch {
4965
- a = new IntersectionObserver(P, C);
4965
+ a = new IntersectionObserver(P, g);
4966
4966
  }
4967
4967
  a.observe(t);
4968
4968
  }
@@ -4983,23 +4983,23 @@ function i7(t, e, a, s) {
4983
4983
  }), o && h.addEventListener("resize", a);
4984
4984
  });
4985
4985
  const v = c && l ? n7(c, a) : null;
4986
- let p = -1, g = null;
4987
- i && (g = new ResizeObserver((h) => {
4988
- let [C] = h;
4989
- C && C.target === c && g && (g.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
4990
- g && g.observe(e);
4986
+ let p = -1, m = null;
4987
+ i && (m = new ResizeObserver((h) => {
4988
+ let [g] = h;
4989
+ g && g.target === c && m && (m.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
4990
+ m && m.observe(e);
4991
4991
  })), a();
4992
- }), c && !r && g.observe(c), g.observe(e));
4992
+ }), c && !r && m.observe(c), m.observe(e));
4993
4993
  let $, w = r ? Ot(t) : null;
4994
- r && m();
4995
- function m() {
4994
+ r && C();
4995
+ function C() {
4996
4996
  const h = Ot(t);
4997
- w && (h.x !== w.x || h.y !== w.y || h.width !== w.width || h.height !== w.height) && a(), w = h, $ = requestAnimationFrame(m);
4997
+ w && (h.x !== w.x || h.y !== w.y || h.width !== w.width || h.height !== w.height) && a(), w = h, $ = requestAnimationFrame(C);
4998
4998
  }
4999
4999
  return a(), () => {
5000
5000
  u.forEach((h) => {
5001
5001
  n && h.removeEventListener("scroll", a), o && h.removeEventListener("resize", a);
5002
- }), v && v(), g && g.disconnect(), g = null, r && cancelAnimationFrame($);
5002
+ }), v && v(), m && m.disconnect(), m = null, r && cancelAnimationFrame($);
5003
5003
  };
5004
5004
  }
5005
5005
  const o7 = (t, e, a) => {
@@ -5054,8 +5054,8 @@ const o7 = (t, e, a) => {
5054
5054
  fallbackPlacements: ["top-start", "bottom-start"]
5055
5055
  }),
5056
5056
  U5({
5057
- apply({ availableWidth: v, availableHeight: p, elements: g, rects: $ }) {
5058
- Object.assign(g.floating.style, {
5057
+ apply({ availableWidth: v, availableHeight: p, elements: m, rects: $ }) {
5058
+ Object.assign(m.floating.style, {
5059
5059
  minHeight: `${n.value}px`,
5060
5060
  width: `${$.reference.width}px`,
5061
5061
  maxWidth: `${v}px`,
@@ -5086,8 +5086,8 @@ function Fe(t) {
5086
5086
  function r7(t, e, a) {
5087
5087
  const { object: s, valueProp: n, mode: o } = Ee(t), i = Lt().proxy, l = a.iv, r = (v, p = !0) => {
5088
5088
  l.value = u(v);
5089
- const g = c(v);
5090
- e.emit("change", g, i), p && (e.emit("input", g), e.emit("update:modelValue", g));
5089
+ const m = c(v);
5090
+ e.emit("change", m, i), p && (e.emit("input", m), e.emit("update:modelValue", m));
5091
5091
  }, c = (v) => s.value || Fe(v) ? v : Array.isArray(v) ? v.map((p) => p[n.value]) : v[n.value], u = (v) => Fe(v) ? o.value === "single" ? {} : [] : v;
5092
5092
  return {
5093
5093
  update: r
@@ -5111,14 +5111,14 @@ function c7(t, e, a) {
5111
5111
  l.value = p.target.value;
5112
5112
  }, u = (p) => {
5113
5113
  if (s && s.value) {
5114
- let g = s.value;
5115
- typeof g == "string" && (g = new RegExp(g)), p.key.match(g) || p.preventDefault();
5114
+ let m = s.value;
5115
+ typeof m == "string" && (m = new RegExp(m)), p.key.match(m) || p.preventDefault();
5116
5116
  }
5117
5117
  }, v = (p) => {
5118
5118
  if (s && s.value) {
5119
5119
  let $ = (p.clipboardData || /* istanbul ignore next */
5120
5120
  window.clipboardData).getData("Text"), w = s.value;
5121
- typeof w == "string" && (w = new RegExp(w)), $.split("").every((m) => !!m.match(w)) || p.preventDefault();
5121
+ typeof w == "string" && (w = new RegExp(w)), $.split("").every((C) => !!C.match(w)) || p.preventDefault();
5122
5122
  }
5123
5123
  e.emit("paste", p, n);
5124
5124
  };
@@ -5168,12 +5168,12 @@ function f7(t, e, a) {
5168
5168
  label: u,
5169
5169
  appendNewTag: v,
5170
5170
  appendNewOption: p,
5171
- multipleLabel: g,
5171
+ multipleLabel: m,
5172
5172
  object: $,
5173
5173
  loading: w,
5174
- delay: m,
5174
+ delay: C,
5175
5175
  resolveOnLoad: h,
5176
- minChars: C,
5176
+ minChars: g,
5177
5177
  filterResults: y,
5178
5178
  clearOnSearch: P,
5179
5179
  clearOnSelect: I,
@@ -5255,7 +5255,7 @@ function f7(t, e, a) {
5255
5255
  case "tags":
5256
5256
  return !Fe(Z.value) && Z.value.length > 0;
5257
5257
  }
5258
- }), gi = M(() => g !== void 0 && g.value !== void 0 ? g.value(Z.value, ne) : Z.value && Z.value.length > 1 ? `${Z.value.length} options selected` : "1 option selected"), Ci = M(() => !Le.value.length && !Ie.value && !Pt.value.length), _i = M(() => Le.value.length > 0 && lt.value.length == 0 && (x.value && le.value || !le.value)), Pt = M(() => Xt.value === !1 || !x.value ? [] : Ti(x.value) !== -1 ? [] : [{
5258
+ }), gi = M(() => 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"), Ci = M(() => !Le.value.length && !Ie.value && !Pt.value.length), _i = M(() => Le.value.length > 0 && lt.value.length == 0 && (x.value && le.value || !le.value)), Pt = M(() => Xt.value === !1 || !x.value ? [] : Ti(x.value) !== -1 ? [] : [{
5259
5259
  [L.value]: x.value,
5260
5260
  [bt.value[0]]: x.value,
5261
5261
  [u.value]: x.value,
@@ -5427,7 +5427,7 @@ function f7(t, e, a) {
5427
5427
  [bt.value[0]]: B
5428
5428
  }), ln = () => {
5429
5429
  Re.value = ce(x, (S) => {
5430
- S.length < C.value || !S && C.value !== 0 || (Ie.value = !0, P.value && (Ue.value = []), setTimeout(() => {
5430
+ S.length < g.value || !S && g.value !== 0 || (Ie.value = !0, P.value && (Ue.value = []), setTimeout(() => {
5431
5431
  S == x.value && s.value(x.value, ne).then((B) => {
5432
5432
  (S == x.value || !x.value) && (Ue.value = B, Kt.value = lt.value.filter((ue) => ue[b.value] !== !0)[0] || null, Ie.value = !1);
5433
5433
  }).catch(
@@ -5436,12 +5436,12 @@ function f7(t, e, a) {
5436
5436
  console.error(B);
5437
5437
  }
5438
5438
  );
5439
- }, m.value));
5439
+ }, C.value));
5440
5440
  }, { flush: "sync" });
5441
5441
  };
5442
5442
  if (n.value !== "single" && !Fe(H.value) && !Array.isArray(H.value))
5443
5443
  throw new Error(`v-model must be an array when using "${n.value}" mode`);
5444
- return s && typeof s.value == "function" ? h.value ? Ta(Ma) : $.value == !0 && Ma() : (Ue.value = s.value, Ma()), m.value > -1 && ln(), ce(m, (S, B) => {
5444
+ return s && typeof s.value == "function" ? h.value ? Ta(Ma) : $.value == !0 && Ma() : (Ue.value = s.value, Ma()), C.value > -1 && ln(), ce(C, (S, B) => {
5445
5445
  Re.value && Re.value(), S >= 0 && ln();
5446
5446
  }), ce(H, (S) => {
5447
5447
  if (Fe(S)) {
@@ -5506,7 +5506,7 @@ function h7(t, e, a) {
5506
5506
  groupSelect: c,
5507
5507
  disabledProp: u,
5508
5508
  groupOptions: v
5509
- } = Ee(t), p = a.fo, g = a.fg, $ = a.handleOptionClick, w = a.handleGroupClick, m = a.search, h = a.pointer, C = a.setPointer, y = a.clearPointer, P = a.multiselect, I = a.isOpen, L = M(() => p.value.filter((H) => !H[u.value])), U = M(() => g.value.filter((H) => !H[u.value])), z = M(() => r.value !== "single" && c.value), K = M(() => h.value && h.value.group), J = M(() => ne(h.value)), ae = M(() => {
5509
+ } = Ee(t), p = a.fo, m = a.fg, $ = a.handleOptionClick, w = a.handleGroupClick, C = a.search, h = a.pointer, g = a.setPointer, y = a.clearPointer, P = a.multiselect, I = a.isOpen, L = M(() => p.value.filter((H) => !H[u.value])), U = M(() => m.value.filter((H) => !H[u.value])), z = M(() => r.value !== "single" && c.value), K = M(() => h.value && h.value.group), J = M(() => ne(h.value)), ae = M(() => {
5510
5510
  const H = K.value ? h.value : (
5511
5511
  /* istanbul ignore next */
5512
5512
  ne(h.value)
@@ -5523,19 +5523,19 @@ function h7(t, e, a) {
5523
5523
  const H = ne(h.value).__VISIBLE__.filter((x) => !x[u.value]);
5524
5524
  return H[H.map((x) => x[s.value]).indexOf(h.value[s.value]) + 1];
5525
5525
  }), E = M(() => [...ae.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), T = M(() => [...G.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), k = (H) => h.value && (!H.group && h.value[s.value] === H[s.value] || H.group !== void 0 && h.value[i.value] === H[i.value]) ? !0 : void 0, R = () => {
5526
- C(L.value[0] || null);
5526
+ g(L.value[0] || null);
5527
5527
  }, b = () => {
5528
5528
  !h.value || h.value[u.value] === !0 || (K.value ? w(h.value) : $(h.value));
5529
5529
  }, V = () => {
5530
5530
  if (h.value === null)
5531
- C((l.value && z.value ? U.value[0].__CREATE__ ? L.value[0] : U.value[0] : L.value[0]) || null);
5531
+ g((l.value && z.value ? U.value[0].__CREATE__ ? L.value[0] : U.value[0] : L.value[0]) || null);
5532
5532
  else if (l.value && z.value) {
5533
5533
  let H = K.value ? le.value : ee.value;
5534
- H === void 0 && (H = j.value, H.__CREATE__ && (H = H[v.value][0])), C(H || /* istanbul ignore next */
5534
+ H === void 0 && (H = j.value, H.__CREATE__ && (H = H[v.value][0])), g(H || /* istanbul ignore next */
5535
5535
  null);
5536
5536
  } else {
5537
5537
  let H = L.value.map((x) => x[s.value]).indexOf(h.value[s.value]) + 1;
5538
- L.value.length <= H && (H = 0), C(L.value[H] || null);
5538
+ L.value.length <= H && (H = 0), g(L.value[H] || null);
5539
5539
  }
5540
5540
  Me(() => {
5541
5541
  Z();
@@ -5543,14 +5543,14 @@ function h7(t, e, a) {
5543
5543
  }, oe = () => {
5544
5544
  if (h.value === null) {
5545
5545
  let H = L.value[L.value.length - 1];
5546
- l.value && z.value && (H = T.value, H === void 0 && (H = G.value)), C(H || null);
5546
+ l.value && z.value && (H = T.value, H === void 0 && (H = G.value)), g(H || null);
5547
5547
  } else if (l.value && z.value) {
5548
5548
  let H = K.value ? E.value : se.value;
5549
- H === void 0 && (H = K.value ? ae.value : J.value, H.__CREATE__ && (H = E.value, H === void 0 && (H = ae.value))), C(H || /* istanbul ignore next */
5549
+ H === void 0 && (H = K.value ? ae.value : J.value, H.__CREATE__ && (H = E.value, H === void 0 && (H = ae.value))), g(H || /* istanbul ignore next */
5550
5550
  null);
5551
5551
  } else {
5552
5552
  let H = L.value.map((x) => x[s.value]).indexOf(h.value[s.value]) - 1;
5553
- H < 0 && (H = L.value.length - 1), C(L.value[H] || null);
5553
+ H < 0 && (H = L.value.length - 1), g(L.value[H] || null);
5554
5554
  }
5555
5555
  Me(() => {
5556
5556
  Z();
@@ -5562,7 +5562,7 @@ function h7(t, e, a) {
5562
5562
  let x = H.parentElement.parentElement;
5563
5563
  l.value && (x = K.value ? H.parentElement.parentElement.parentElement : H.parentElement.parentElement.parentElement.parentElement), H.offsetTop + H.offsetHeight > x.clientHeight + x.scrollTop && (x.scrollTop = H.offsetTop + H.offsetHeight - x.clientHeight), H.offsetTop < x.scrollTop && (x.scrollTop = H.offsetTop);
5564
5564
  };
5565
- return ce(m, (H) => {
5565
+ return ce(C, (H) => {
5566
5566
  o.value && (H.length && n.value ? R() : y());
5567
5567
  }), ce(I, (H) => {
5568
5568
  if (H) {
@@ -5943,7 +5943,7 @@ function q7(t, e) {
5943
5943
  }
5944
5944
  function zs(t, e) {
5945
5945
  e === void 0 && (e = {});
5946
- 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 ? w7 : l, c = a.rootBoundary, u = c === void 0 ? ui : c, v = a.elementContext, p = v === void 0 ? na : v, g = a.altBoundary, $ = g === void 0 ? !1 : g, w = a.padding, m = w === void 0 ? 0 : w, h = z7(typeof m != "number" ? m : q7(m, is)), C = p === na ? $7 : na, y = t.rects.popper, P = t.elements[$ ? C : p], I = W7(Et(P) ? P : P.contextElement || Ct(t.elements.popper), r, u, i), L = zt(t.elements.reference), U = di({
5946
+ 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 ? w7 : l, c = a.rootBoundary, u = c === void 0 ? ui : c, v = a.elementContext, p = v === void 0 ? na : v, m = a.altBoundary, $ = m === void 0 ? !1 : m, w = a.padding, C = w === void 0 ? 0 : w, h = z7(typeof C != "number" ? C : q7(C, is)), g = p === na ? $7 : na, y = t.rects.popper, P = t.elements[$ ? g : p], I = W7(Et(P) ? P : P.contextElement || Ct(t.elements.popper), r, u, i), L = zt(t.elements.reference), U = di({
5947
5947
  reference: L,
5948
5948
  element: y,
5949
5949
  strategy: "absolute",
@@ -5991,18 +5991,18 @@ function Y7(t) {
5991
5991
  },
5992
5992
  attributes: {},
5993
5993
  styles: {}
5994
- }, v = [], p = !1, g = {
5994
+ }, v = [], p = !1, m = {
5995
5995
  state: u,
5996
5996
  setOptions: function(h) {
5997
- var C = typeof h == "function" ? h(u.options) : h;
5998
- w(), u.options = Object.assign({}, o, u.options, C), u.scrollParents = {
5997
+ var g = typeof h == "function" ? h(u.options) : h;
5998
+ w(), u.options = Object.assign({}, o, u.options, g), u.scrollParents = {
5999
5999
  reference: Et(l) ? ia(l) : l.contextElement ? ia(l.contextElement) : [],
6000
6000
  popper: ia(r)
6001
6001
  };
6002
6002
  var y = D7(j7([].concat(s, u.options.modifiers)));
6003
6003
  return u.orderedModifiers = y.filter(function(P) {
6004
6004
  return P.enabled;
6005
- }), $(), g.update();
6005
+ }), $(), m.update();
6006
6006
  },
6007
6007
  // Sync update – it will always be executed, even if not necessary. This
6008
6008
  // is useful for low frequency updates where sync behavior simplifies the
@@ -6011,10 +6011,10 @@ function Y7(t) {
6011
6011
  // prefer the async Popper#update method
6012
6012
  forceUpdate: function() {
6013
6013
  if (!p) {
6014
- var h = u.elements, C = h.reference, y = h.popper;
6015
- if (Sn(C, y)) {
6014
+ var h = u.elements, g = h.reference, y = h.popper;
6015
+ if (Sn(g, y)) {
6016
6016
  u.rects = {
6017
- reference: _7(C, ns(y), u.options.strategy === "fixed"),
6017
+ reference: _7(g, ns(y), u.options.strategy === "fixed"),
6018
6018
  popper: li(y)
6019
6019
  }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(J) {
6020
6020
  return u.modifiersData[J.name] = Object.assign({}, J.data);
@@ -6029,7 +6029,7 @@ function Y7(t) {
6029
6029
  state: u,
6030
6030
  options: z,
6031
6031
  name: K,
6032
- instance: g
6032
+ instance: m
6033
6033
  }) || u);
6034
6034
  }
6035
6035
  }
@@ -6038,8 +6038,8 @@ function Y7(t) {
6038
6038
  // Async and optimistically optimized update – it will not be executed if
6039
6039
  // not necessary (debounced to run at most once-per-tick)
6040
6040
  update: B7(function() {
6041
- return new Promise(function(m) {
6042
- g.forceUpdate(), m(u);
6041
+ return new Promise(function(C) {
6042
+ m.forceUpdate(), C(u);
6043
6043
  });
6044
6044
  }),
6045
6045
  destroy: function() {
@@ -6047,18 +6047,18 @@ function Y7(t) {
6047
6047
  }
6048
6048
  };
6049
6049
  if (!Sn(l, r))
6050
- return g;
6051
- g.setOptions(c).then(function(m) {
6052
- !p && c.onFirstUpdate && c.onFirstUpdate(m);
6050
+ return m;
6051
+ m.setOptions(c).then(function(C) {
6052
+ !p && c.onFirstUpdate && c.onFirstUpdate(C);
6053
6053
  });
6054
6054
  function $() {
6055
- u.orderedModifiers.forEach(function(m) {
6056
- var h = m.name, C = m.options, y = C === void 0 ? {} : C, P = m.effect;
6055
+ u.orderedModifiers.forEach(function(C) {
6056
+ var h = C.name, g = C.options, y = g === void 0 ? {} : g, P = C.effect;
6057
6057
  if (typeof P == "function") {
6058
6058
  var I = P({
6059
6059
  state: u,
6060
6060
  name: h,
6061
- instance: g,
6061
+ instance: m,
6062
6062
  options: y
6063
6063
  }), L = function() {
6064
6064
  };
@@ -6067,11 +6067,11 @@ function Y7(t) {
6067
6067
  });
6068
6068
  }
6069
6069
  function w() {
6070
- v.forEach(function(m) {
6071
- return m();
6070
+ v.forEach(function(C) {
6071
+ return C();
6072
6072
  }), v = [];
6073
6073
  }
6074
- return g;
6074
+ return m;
6075
6075
  };
6076
6076
  }
6077
6077
  var Ha = {
@@ -6125,15 +6125,15 @@ function J7(t, e) {
6125
6125
  };
6126
6126
  }
6127
6127
  function An(t) {
6128
- var e, a = t.popper, s = t.popperRect, n = t.placement, o = t.variation, i = t.offsets, l = t.position, r = t.gpuAcceleration, c = t.adaptive, u = t.roundOffsets, v = t.isFixed, p = i.x, g = p === void 0 ? 0 : p, $ = i.y, w = $ === void 0 ? 0 : $, m = typeof u == "function" ? u({
6129
- x: g,
6128
+ var e, a = t.popper, s = t.popperRect, n = t.placement, o = t.variation, i = t.offsets, l = t.position, r = t.gpuAcceleration, c = t.adaptive, u = t.roundOffsets, v = t.isFixed, p = i.x, m = p === void 0 ? 0 : p, $ = i.y, w = $ === void 0 ? 0 : $, C = typeof u == "function" ? u({
6129
+ x: m,
6130
6130
  y: w
6131
6131
  }) : {
6132
- x: g,
6132
+ x: m,
6133
6133
  y: w
6134
6134
  };
6135
- g = m.x, w = m.y;
6136
- var h = i.hasOwnProperty("x"), C = i.hasOwnProperty("y"), y = Xe, P = Ne, I = window;
6135
+ m = C.x, w = C.y;
6136
+ var h = i.hasOwnProperty("x"), g = i.hasOwnProperty("y"), y = Xe, P = Ne, I = window;
6137
6137
  if (c) {
6138
6138
  var L = ns(a), U = "clientHeight", z = "clientWidth";
6139
6139
  if (L === Oe(a) && (L = Ct(a), at(L).position !== "static" && l === "absolute" && (U = "scrollHeight", z = "scrollWidth")), L = L, n === Ne || (n === Xe || n === ft) && o === pa) {
@@ -6150,23 +6150,23 @@ function An(t) {
6150
6150
  // $FlowFixMe[prop-missing]
6151
6151
  L[z]
6152
6152
  );
6153
- g -= J - s.width, g *= r ? 1 : -1;
6153
+ m -= J - s.width, m *= r ? 1 : -1;
6154
6154
  }
6155
6155
  }
6156
6156
  var ae = Object.assign({
6157
6157
  position: l
6158
6158
  }, c && Q7), j = u === !0 ? J7({
6159
- x: g,
6159
+ x: m,
6160
6160
  y: w
6161
6161
  }, Oe(a)) : {
6162
- x: g,
6162
+ x: m,
6163
6163
  y: w
6164
6164
  };
6165
- if (g = j.x, w = j.y, r) {
6165
+ if (m = j.x, w = j.y, r) {
6166
6166
  var G;
6167
- return Object.assign({}, ae, (G = {}, G[P] = C ? "0" : "", G[y] = h ? "0" : "", G.transform = (I.devicePixelRatio || 1) <= 1 ? "translate(" + g + "px, " + w + "px)" : "translate3d(" + g + "px, " + w + "px, 0)", G));
6167
+ return Object.assign({}, ae, (G = {}, G[P] = g ? "0" : "", G[y] = h ? "0" : "", G.transform = (I.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + w + "px)" : "translate3d(" + m + "px, " + w + "px, 0)", G));
6168
6168
  }
6169
- return Object.assign({}, ae, (e = {}, e[P] = C ? w + "px" : "", e[y] = h ? g + "px" : "", e.transform = "", e));
6169
+ return Object.assign({}, ae, (e = {}, e[P] = g ? w + "px" : "", e[y] = h ? m + "px" : "", e.transform = "", e));
6170
6170
  }
6171
6171
  function ep(t) {
6172
6172
  var e = t.state, a = t.options, s = a.gpuAcceleration, n = s === void 0 ? !0 : s, o = a.adaptive, i = o === void 0 ? !0 : o, l = a.roundOffsets, r = l === void 0 ? !0 : l, c = {
@@ -6253,12 +6253,12 @@ function rp(t, e, a) {
6253
6253
  return s > a ? a : s;
6254
6254
  }
6255
6255
  function up(t) {
6256
- var e = t.state, a = t.options, s = t.name, n = a.mainAxis, o = n === void 0 ? !0 : n, i = a.altAxis, l = i === void 0 ? !1 : i, r = a.boundary, c = a.rootBoundary, u = a.altBoundary, v = a.padding, p = a.tether, g = p === void 0 ? !0 : p, $ = a.tetherOffset, w = $ === void 0 ? 0 : $, m = zs(e, {
6256
+ var e = t.state, a = t.options, s = t.name, n = a.mainAxis, o = n === void 0 ? !0 : n, i = a.altAxis, l = i === void 0 ? !1 : i, r = a.boundary, c = a.rootBoundary, u = a.altBoundary, v = a.padding, p = a.tether, m = p === void 0 ? !0 : p, $ = a.tetherOffset, w = $ === void 0 ? 0 : $, C = zs(e, {
6257
6257
  boundary: r,
6258
6258
  rootBoundary: c,
6259
6259
  padding: v,
6260
6260
  altBoundary: u
6261
- }), h = ct(e.placement), C = Yt(e.placement), y = !C, P = ci(h), I = lp(P), L = e.modifiersData.popperOffsets, U = e.rects.reference, z = e.rects.popper, K = typeof w == "function" ? w(Object.assign({}, e.rects, {
6261
+ }), h = ct(e.placement), g = Yt(e.placement), y = !g, P = ci(h), I = lp(P), L = e.modifiersData.popperOffsets, U = e.rects.reference, z = e.rects.popper, K = typeof w == "function" ? w(Object.assign({}, e.rects, {
6262
6262
  placement: e.placement
6263
6263
  })) : w, J = typeof K == "number" ? {
6264
6264
  mainAxis: K,
@@ -6272,14 +6272,14 @@ function up(t) {
6272
6272
  };
6273
6273
  if (L) {
6274
6274
  if (o) {
6275
- var G, le = P === "y" ? Ne : Xe, se = P === "y" ? qe : ft, ee = P === "y" ? "height" : "width", E = L[P], T = E + m[le], k = E - m[se], R = g ? -z[ee] / 2 : 0, b = C === qt ? U[ee] : z[ee], V = C === qt ? -z[ee] : -U[ee], oe = e.elements.arrow, ne = g && oe ? li(oe) : {
6275
+ var G, le = P === "y" ? Ne : Xe, se = P === "y" ? qe : ft, ee = P === "y" ? "height" : "width", E = L[P], T = E + C[le], k = E - C[se], R = m ? -z[ee] / 2 : 0, b = g === qt ? U[ee] : z[ee], V = g === qt ? -z[ee] : -U[ee], oe = e.elements.arrow, ne = m && oe ? li(oe) : {
6276
6276
  width: 0,
6277
6277
  height: 0
6278
- }, Z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : pi(), H = Z[le], x = Z[se], he = Va(0, U[ee], ne[ee]), ke = y ? U[ee] / 2 - R - he - H - J.mainAxis : b - he - H - J.mainAxis, Kt = y ? -U[ee] / 2 + R + he + x + J.mainAxis : V + he + x + J.mainAxis, Gt = e.elements.arrow && ns(e.elements.arrow), nt = Gt ? P === "y" ? Gt.clientTop || 0 : Gt.clientLeft || 0 : 0, $a = (G = ae == null ? void 0 : ae[P]) != null ? G : 0, rs = E + ke - $a - nt, it = E + Kt - $a, ka = Va(g ? Wa(T, rs) : T, E, g ? St(k, it) : k);
6278
+ }, Z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : pi(), H = Z[le], x = Z[se], he = Va(0, U[ee], ne[ee]), ke = y ? U[ee] / 2 - R - he - H - J.mainAxis : b - he - H - J.mainAxis, Kt = y ? -U[ee] / 2 + R + he + x + J.mainAxis : V + he + x + J.mainAxis, Gt = e.elements.arrow && ns(e.elements.arrow), nt = Gt ? P === "y" ? Gt.clientTop || 0 : Gt.clientLeft || 0 : 0, $a = (G = ae == null ? void 0 : ae[P]) != null ? G : 0, rs = E + ke - $a - nt, it = E + Kt - $a, ka = Va(m ? Wa(T, rs) : T, E, m ? St(k, it) : k);
6279
6279
  L[P] = ka, j[P] = ka - E;
6280
6280
  }
6281
6281
  if (l) {
6282
- var ot, Ue = P === "x" ? Ne : Xe, Ie = P === "x" ? qe : ft, Re = L[I], Ye = I === "y" ? "height" : "width", Xt = Re + m[Ue], Sa = Re - m[Ie], Le = [Ne, Xe].indexOf(h) !== -1, Qt = (ot = ae == null ? void 0 : ae[I]) != null ? ot : 0, lt = Le ? Xt : Re - U[Ye] - z[Ye] - Qt + J.altAxis, yt = Le ? Re + U[Ye] + z[Ye] - Qt - J.altAxis : Sa, Aa = g && Le ? rp(lt, Re, yt) : Va(g ? lt : Xt, Re, g ? yt : Sa);
6282
+ var ot, Ue = P === "x" ? Ne : Xe, Ie = P === "x" ? qe : ft, Re = L[I], Ye = I === "y" ? "height" : "width", Xt = Re + C[Ue], Sa = Re - C[Ie], Le = [Ne, Xe].indexOf(h) !== -1, Qt = (ot = ae == null ? void 0 : ae[I]) != null ? ot : 0, lt = Le ? Xt : Re - U[Ye] - z[Ye] - Qt + J.altAxis, yt = Le ? Re + U[Ye] + z[Ye] - Qt - J.altAxis : Sa, Aa = m && Le ? rp(lt, Re, yt) : Va(m ? lt : Xt, Re, m ? yt : Sa);
6283
6283
  L[I] = Aa, j[I] = Aa - Re;
6284
6284
  }
6285
6285
  e.modifiersData[s] = j;
@@ -6319,7 +6319,7 @@ function vp(t, e) {
6319
6319
  return c.indexOf($) >= 0;
6320
6320
  });
6321
6321
  p.length === 0 && (p = v);
6322
- var g = p.reduce(function($, w) {
6322
+ var m = p.reduce(function($, w) {
6323
6323
  return $[w] = zs(t, {
6324
6324
  placement: w,
6325
6325
  boundary: n,
@@ -6327,8 +6327,8 @@ function vp(t, e) {
6327
6327
  padding: i
6328
6328
  })[ct(w)], $;
6329
6329
  }, {});
6330
- return Object.keys(g).sort(function($, w) {
6331
- return g[$] - g[w];
6330
+ return Object.keys(m).sort(function($, w) {
6331
+ return m[$] - m[w];
6332
6332
  });
6333
6333
  }
6334
6334
  function fp(t) {
@@ -6340,7 +6340,7 @@ function fp(t) {
6340
6340
  function hp(t) {
6341
6341
  var e = t.state, a = t.options, s = t.name;
6342
6342
  if (!e.modifiersData[s]._skip) {
6343
- for (var n = a.mainAxis, o = n === void 0 ? !0 : n, i = a.altAxis, l = i === void 0 ? !0 : i, r = a.fallbackPlacements, c = a.padding, u = a.boundary, v = a.rootBoundary, p = a.altBoundary, g = a.flipVariations, $ = g === void 0 ? !0 : g, w = a.allowedAutoPlacements, m = e.options.placement, h = ct(m), C = h === m, y = r || (C || !$ ? [Da(m)] : fp(m)), P = [m].concat(y).reduce(function(ne, Z) {
6343
+ for (var n = a.mainAxis, o = n === void 0 ? !0 : n, i = a.altAxis, l = i === void 0 ? !0 : i, r = a.fallbackPlacements, c = a.padding, u = a.boundary, v = a.rootBoundary, p = a.altBoundary, m = a.flipVariations, $ = m === void 0 ? !0 : m, w = a.allowedAutoPlacements, C = e.options.placement, h = ct(C), g = h === C, y = r || (g || !$ ? [Da(C)] : fp(C)), P = [C].concat(y).reduce(function(ne, Z) {
6344
6344
  return ne.concat(ct(Z) === Ws ? vp(e, {
6345
6345
  placement: Z,
6346
6346
  boundary: u,
@@ -6397,11 +6397,11 @@ var mp = {
6397
6397
  }
6398
6398
  };
6399
6399
  function gp(t, e, a) {
6400
- const { disabled: s, appendTo: n, appendToBody: o, openDirection: i } = Ee(t), l = Lt().proxy, r = a.multiselect, c = a.dropdown, u = q(!1), v = q(null), p = q(null), g = M(() => n.value || o.value), $ = M(() => i.value === "top" && p.value === "bottom" || i.value === "bottom" && p.value !== "top" ? "bottom" : "top"), w = () => {
6401
- u.value || s.value || (u.value = !0, e.emit("open", l), g.value && Me(() => {
6400
+ const { disabled: s, appendTo: n, appendToBody: o, openDirection: i } = Ee(t), l = Lt().proxy, r = a.multiselect, c = a.dropdown, u = q(!1), v = q(null), p = q(null), m = M(() => n.value || o.value), $ = M(() => i.value === "top" && p.value === "bottom" || i.value === "bottom" && p.value !== "top" ? "bottom" : "top"), w = () => {
6401
+ u.value || s.value || (u.value = !0, e.emit("open", l), m.value && Me(() => {
6402
6402
  h();
6403
6403
  }));
6404
- }, m = () => {
6404
+ }, C = () => {
6405
6405
  u.value && (u.value = !1, e.emit("close", l));
6406
6406
  }, h = () => {
6407
6407
  if (!v.value)
@@ -6419,7 +6419,7 @@ function gp(t, e, a) {
6419
6419
  }
6420
6420
  ]
6421
6421
  })), v.value.update();
6422
- }, C = (y) => {
6422
+ }, g = (y) => {
6423
6423
  for (; y && y !== document.body; ) {
6424
6424
  if (getComputedStyle(y).position === "fixed")
6425
6425
  return !0;
@@ -6428,8 +6428,8 @@ function gp(t, e, a) {
6428
6428
  return !1;
6429
6429
  };
6430
6430
  return It(() => {
6431
- g.value && (v.value = op(r.value, c.value, {
6432
- strategy: C(r.value) ? (
6431
+ m.value && (v.value = op(r.value, c.value, {
6432
+ strategy: g(r.value) ? (
6433
6433
  /* istanbul ignore next: UI feature */
6434
6434
  "fixed"
6435
6435
  ) : void 0,
@@ -6460,49 +6460,49 @@ function gp(t, e, a) {
6460
6460
  ]
6461
6461
  }));
6462
6462
  }), In(() => {
6463
- !g.value || !v.value || (v.value.destroy(), v.value = null);
6463
+ !m.value || !v.value || (v.value.destroy(), v.value = null);
6464
6464
  }), {
6465
6465
  popper: v,
6466
6466
  isOpen: u,
6467
6467
  open: w,
6468
- close: m,
6468
+ close: C,
6469
6469
  placement: $,
6470
6470
  updatePopper: h
6471
6471
  };
6472
6472
  }
6473
6473
  function Cp(t, e, a) {
6474
- const { searchable: s, disabled: n, clearOnBlur: o } = Ee(t), i = a.input, l = a.open, r = a.close, c = a.clearSearch, u = a.isOpen, v = a.wrapper, p = a.tags, g = q(!1), $ = q(!1), w = M(() => s.value || n.value ? -1 : 0), m = () => {
6474
+ const { searchable: s, disabled: n, clearOnBlur: o } = Ee(t), i = a.input, l = a.open, r = a.close, c = a.clearSearch, u = a.isOpen, v = a.wrapper, p = a.tags, m = q(!1), $ = q(!1), w = M(() => s.value || n.value ? -1 : 0), C = () => {
6475
6475
  s.value && i.value.blur(), v.value.blur();
6476
6476
  }, h = () => {
6477
6477
  s.value && !n.value && i.value.focus();
6478
- }, C = (z = !0) => {
6479
- n.value || (g.value = !0, z && l());
6478
+ }, g = (z = !0) => {
6479
+ n.value || (m.value = !0, z && l());
6480
6480
  }, y = () => {
6481
- g.value = !1, setTimeout(() => {
6482
- g.value || (r(), o.value && c());
6481
+ m.value = !1, setTimeout(() => {
6482
+ m.value || (r(), o.value && c());
6483
6483
  }, 1);
6484
6484
  };
6485
6485
  return {
6486
6486
  tabindex: w,
6487
- isActive: g,
6487
+ isActive: m,
6488
6488
  mouseClicked: $,
6489
- blur: m,
6489
+ blur: C,
6490
6490
  focus: h,
6491
- activate: C,
6491
+ activate: g,
6492
6492
  deactivate: y,
6493
6493
  handleFocusIn: (z) => {
6494
- z.target.closest("[data-tags]") && z.target.nodeName !== "INPUT" || z.target.closest("[data-clear]") || C($.value);
6494
+ z.target.closest("[data-tags]") && z.target.nodeName !== "INPUT" || z.target.closest("[data-clear]") || g($.value);
6495
6495
  },
6496
6496
  handleFocusOut: () => {
6497
6497
  y();
6498
6498
  },
6499
6499
  handleCaretClick: () => {
6500
- y(), m();
6500
+ y(), C();
6501
6501
  },
6502
6502
  handleMousedown: (z) => {
6503
6503
  $.value = !0, u.value && (z.target.isEqualNode(v.value) || z.target.isEqualNode(p.value)) ? setTimeout(() => {
6504
6504
  y();
6505
- }, 0) : !u.value && (document.activeElement.isEqualNode(v.value) || document.activeElement.isEqualNode(i.value)) && C(), setTimeout(() => {
6505
+ }, 0) : !u.value && (document.activeElement.isEqualNode(v.value) || document.activeElement.isEqualNode(i.value)) && g(), setTimeout(() => {
6506
6506
  $.value = !1;
6507
6507
  }, 0);
6508
6508
  }
@@ -6520,9 +6520,9 @@ function _p(t, e, a) {
6520
6520
  addOptionOn: u,
6521
6521
  createTag: v,
6522
6522
  createOption: p,
6523
- reverse: g
6524
- } = Ee(t), $ = Lt().proxy, w = a.iv, m = a.update, h = a.deselect, C = a.search, y = a.setPointer, P = a.selectPointer, I = a.backwardPointer, L = a.forwardPointer, U = a.multiselect, z = a.wrapper, K = a.tags, J = a.isOpen, ae = a.open, j = a.blur, G = a.fo, le = M(() => v.value || p.value || !1), se = M(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ee = () => {
6525
- s.value === "tags" && !l.value && le.value && i.value && !c.value && y(G.value[G.value.map((k) => k[r.value]).indexOf(C.value)]);
6523
+ reverse: m
6524
+ } = Ee(t), $ = Lt().proxy, w = a.iv, C = a.update, h = a.deselect, g = a.search, y = a.setPointer, P = a.selectPointer, I = a.backwardPointer, L = a.forwardPointer, U = a.multiselect, z = a.wrapper, K = a.tags, J = a.isOpen, ae = a.open, j = a.blur, G = a.fo, le = M(() => v.value || p.value || !1), se = M(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ee = () => {
6525
+ s.value === "tags" && !l.value && le.value && i.value && !c.value && y(G.value[G.value.map((k) => k[r.value]).indexOf(g.value)]);
6526
6526
  };
6527
6527
  return {
6528
6528
  handleKeydown: (k) => {
@@ -6530,7 +6530,7 @@ function _p(t, e, a) {
6530
6530
  let R, b;
6531
6531
  switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(k.key) !== -1 && s.value === "tags" && (R = [...U.value.querySelectorAll("[data-tags] > *")].filter((V) => V !== K.value), b = R.findIndex((V) => V === document.activeElement)), k.key) {
6532
6532
  case "Backspace":
6533
- if (s.value === "single" || i.value && [null, ""].indexOf(C.value) === -1 || w.value.length === 0)
6533
+ if (s.value === "single" || i.value && [null, ""].indexOf(g.value) === -1 || w.value.length === 0)
6534
6534
  return;
6535
6535
  let V = w.value.filter((oe) => !oe.disabled && oe.remove !== !1);
6536
6536
  V.length && h(V[V.length - 1]);
@@ -6539,7 +6539,7 @@ function _p(t, e, a) {
6539
6539
  if (k.preventDefault(), k.keyCode === 229)
6540
6540
  return;
6541
6541
  if (b !== -1 && b !== void 0) {
6542
- m([...w.value].filter((oe, ne) => ne !== b)), b === R.length - 1 && (R.length - 1 ? R[R.length - 2].focus() : i.value ? K.value.querySelector("input").focus() : z.value.focus());
6542
+ C([...w.value].filter((oe, ne) => ne !== b)), b === R.length - 1 && (R.length - 1 ? R[R.length - 2].focus() : i.value ? K.value.querySelector("input").focus() : z.value.focus());
6543
6543
  return;
6544
6544
  }
6545
6545
  if (se.value.indexOf("enter") === -1 && le.value)
@@ -6601,7 +6601,7 @@ function yp(t, e, a) {
6601
6601
  disabled: n,
6602
6602
  showOptions: o,
6603
6603
  breakTags: i
6604
- } = Ee(t), l = a.isOpen, r = a.isPointed, c = a.isSelected, u = a.isDisabled, v = a.isActive, p = a.canPointGroups, g = a.resolving, $ = a.fo, w = a.placement, m = M(() => ({
6604
+ } = Ee(t), l = a.isOpen, r = a.isPointed, c = a.isSelected, u = a.isDisabled, v = a.isActive, p = a.canPointGroups, m = a.resolving, $ = a.fo, w = a.placement, C = M(() => ({
6605
6605
  container: "multiselect",
6606
6606
  containerDisabled: "is-disabled",
6607
6607
  containerOpen: "is-open",
@@ -6656,10 +6656,10 @@ function yp(t, e, a) {
6656
6656
  assist: "multiselect-assistive-text",
6657
6657
  spacer: "multiselect-spacer",
6658
6658
  ...s.value
6659
- })), h = M(() => !!(l.value && o.value && (!g.value || g.value && $.value.length)));
6659
+ })), h = M(() => !!(l.value && o.value && (!m.value || m.value && $.value.length)));
6660
6660
  return {
6661
6661
  classList: M(() => {
6662
- const y = m.value;
6662
+ const y = C.value;
6663
6663
  return {
6664
6664
  container: [y.container].concat(n.value ? y.containerDisabled : []).concat(h.value && w.value === "top" ? y.containerOpenTop : []).concat(h.value && w.value !== "top" ? y.containerOpen : []).concat(v.value ? y.containerActive : []),
6665
6665
  wrapper: y.wrapper,
@@ -6709,12 +6709,12 @@ function bp(t, e, a) {
6709
6709
  const {
6710
6710
  limit: s,
6711
6711
  infinite: n
6712
- } = Ee(t), o = a.isOpen, i = a.offset, l = a.search, r = a.pfo, c = a.eo, u = q(null), v = q(null), p = M(() => i.value < r.value.length), g = (w) => {
6713
- const { isIntersecting: m, target: h } = w[0];
6714
- if (m) {
6715
- const C = h.offsetParent, y = C.scrollTop;
6712
+ } = Ee(t), o = a.isOpen, i = a.offset, l = a.search, r = a.pfo, c = a.eo, u = q(null), v = q(null), p = M(() => i.value < r.value.length), m = (w) => {
6713
+ const { isIntersecting: C, target: h } = w[0];
6714
+ if (C) {
6715
+ const g = h.offsetParent, y = g.scrollTop;
6716
6716
  i.value += s.value == -1 ? 10 : s.value, Me(() => {
6717
- C.scrollTop = y;
6717
+ g.scrollTop = y;
6718
6718
  });
6719
6719
  }
6720
6720
  }, $ = () => {
@@ -6727,7 +6727,7 @@ function bp(t, e, a) {
6727
6727
  }, { flush: "post" }), ce(c, () => {
6728
6728
  n.value && $();
6729
6729
  }, { immediate: !1, flush: "post" }), It(() => {
6730
- window && window.IntersectionObserver && (u.value = new IntersectionObserver(g));
6730
+ window && window.IntersectionObserver && (u.value = new IntersectionObserver(m));
6731
6731
  }), {
6732
6732
  hasMore: p,
6733
6733
  infiniteLoader: v
@@ -6743,22 +6743,22 @@ function wp(t, e, a) {
6743
6743
  groupLabel: r,
6744
6744
  aria: c,
6745
6745
  searchable: u
6746
- } = Ee(t), v = a.pointer, p = a.iv, g = a.hasSelected, $ = a.multipleLabelText, w = q(null), m = M(() => {
6746
+ } = Ee(t), v = a.pointer, p = a.iv, m = a.hasSelected, $ = a.multipleLabelText, w = q(null), C = M(() => {
6747
6747
  let j = [];
6748
6748
  return n && n.value && j.push(n.value), j.push("assist"), j.join("-");
6749
6749
  }), h = M(() => {
6750
6750
  let j = [];
6751
6751
  return n && n.value && j.push(n.value), j.push("multiselect-options"), j.join("-");
6752
- }), C = M(() => {
6752
+ }), g = M(() => {
6753
6753
  let j = [];
6754
6754
  if (n && n.value && j.push(n.value), v.value)
6755
6755
  return j.push(v.value.group ? "multiselect-group" : "multiselect-option"), j.push(v.value.group ? v.value.index : v.value[o.value]), j.join("-");
6756
6756
  }), y = M(() => s.value), P = M(() => l.value !== "single"), I = M(() => {
6757
6757
  let j = "";
6758
- return l.value === "single" && g.value && (j += p.value[i.value]), l.value === "multiple" && g.value && (j += $.value), l.value === "tags" && g.value && (j += p.value.map((G) => G[i.value]).join(", ")), j;
6758
+ return l.value === "single" && m.value && (j += p.value[i.value]), l.value === "multiple" && m.value && (j += $.value), l.value === "tags" && m.value && (j += p.value.map((G) => G[i.value]).join(", ")), j;
6759
6759
  }), L = M(() => {
6760
6760
  let j = { ...c.value };
6761
- return u.value && (j["aria-labelledby"] = j["aria-labelledby"] ? `${m.value} ${j["aria-labelledby"]}` : m.value, I.value && j["aria-label"] && (j["aria-label"] = `${I.value}, ${j["aria-label"]}`)), j;
6761
+ return u.value && (j["aria-labelledby"] = j["aria-labelledby"] ? `${C.value} ${j["aria-labelledby"]}` : C.value, I.value && j["aria-label"] && (j["aria-label"] = `${I.value}, ${j["aria-label"]}`)), j;
6762
6762
  }), U = (j) => {
6763
6763
  let G = [];
6764
6764
  return n && n.value && G.push(n.value), G.push("multiselect-option"), G.push(j[o.value]), G.join("-");
@@ -6780,11 +6780,11 @@ function wp(t, e, a) {
6780
6780
  }), {
6781
6781
  arias: L,
6782
6782
  ariaLabel: I,
6783
- ariaAssist: m,
6783
+ ariaAssist: C,
6784
6784
  ariaControls: h,
6785
6785
  ariaPlaceholder: y,
6786
6786
  ariaMultiselectable: P,
6787
- ariaActiveDescendant: C,
6787
+ ariaActiveDescendant: g,
6788
6788
  ariaOptionId: U,
6789
6789
  ariaOptionLabel: K,
6790
6790
  ariaGroupId: z,
@@ -7808,34 +7808,34 @@ const Kp = { class: "ao-tasks" }, Gp = { class: "ao-tasks__list" }, Xp = ["id",
7808
7808
  };
7809
7809
  return (v, p) => (d(), _("div", Kp, [
7810
7810
  f("ul", Gp, [
7811
- (d(!0), _(fe, null, _e(v.tasks, (g) => {
7811
+ (d(!0), _(fe, null, _e(v.tasks, (m) => {
7812
7812
  var $, w;
7813
7813
  return d(), _("li", {
7814
- key: g.id,
7814
+ key: m.id,
7815
7815
  class: "ao-subtask"
7816
7816
  }, [
7817
- (($ = v.isCheckable) == null ? void 0 : $.call(v, g)) ?? !1 ? (d(), D(re, {
7817
+ (($ = v.isCheckable) == null ? void 0 : $.call(v, m)) ?? !1 ? (d(), D(re, {
7818
7818
  key: 0,
7819
7819
  class: "ao-subtask__check",
7820
- "icon-name": g.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
7820
+ "icon-name": m.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
7821
7821
  disabled: !v.isEditable,
7822
7822
  variant: "ghost",
7823
7823
  color: "primary",
7824
- onClick: () => l(g.id, !g.isDone)
7824
+ onClick: () => l(m.id, !m.isDone)
7825
7825
  }, null, 8, ["icon-name", "disabled", "onClick"])) : O("", !0),
7826
7826
  f("input", {
7827
- id: g.id,
7828
- value: g.name,
7827
+ id: m.id,
7828
+ value: m.name,
7829
7829
  readonly: !v.isEditable,
7830
- class: X(["ao-field__input ao-subtask__field", { "ao-subtask__field--checked": g.isDone }]),
7830
+ class: X(["ao-field__input ao-subtask__field", { "ao-subtask__field--checked": m.isDone }]),
7831
7831
  type: "text",
7832
- onChange: (m) => i(m, g.id),
7832
+ onChange: (C) => i(C, m.id),
7833
7833
  onKeyup: dt(u, ["enter"])
7834
7834
  }, null, 42, Xp),
7835
7835
  qa(". "),
7836
7836
  !v.isTemplate && v.users ? (d(), D(Se, {
7837
7837
  key: 1,
7838
- value: (w = g.assignee) != null && w.id ? [g.assignee.id] : [],
7838
+ value: (w = m.assignee) != null && w.id ? [m.assignee.id] : [],
7839
7839
  options: n.value,
7840
7840
  "close-on-select": !0,
7841
7841
  searchable: !0,
@@ -7845,14 +7845,14 @@ const Kp = { class: "ao-tasks" }, Gp = { class: "ao-tasks__list" }, Xp = ["id",
7845
7845
  placeholder: v.$t("feed.filters.assignee.placeholder"),
7846
7846
  disabled: !v.isEditable,
7847
7847
  caret: v.isEditable,
7848
- onChange: (m) => c(m, g.id)
7848
+ onChange: (C) => c(C, m.id)
7849
7849
  }, {
7850
- tag: F(({ option: m, handleTagRemove: h }) => [
7850
+ tag: F(({ option: C, handleTagRemove: h }) => [
7851
7851
  A(et, {
7852
- "user-name": m.label,
7853
- "avatar-url": m.avatar,
7852
+ "user-name": C.label,
7853
+ "avatar-url": C.avatar,
7854
7854
  "is-closable": !0,
7855
- onClose: (C) => h(m, C)
7855
+ onClose: (g) => h(C, g)
7856
7856
  }, null, 8, ["user-name", "avatar-url", "onClose"])
7857
7857
  ]),
7858
7858
  _: 2
@@ -7864,7 +7864,7 @@ const Kp = { class: "ao-tasks" }, Gp = { class: "ao-tasks__list" }, Xp = ["id",
7864
7864
  size: "sm",
7865
7865
  variant: "ghost",
7866
7866
  color: "neutral",
7867
- onClick: () => r(g.id)
7867
+ onClick: () => r(m.id)
7868
7868
  }, null, 8, ["onClick"])) : O("", !0)
7869
7869
  ]);
7870
7870
  }), 128))
@@ -8017,22 +8017,22 @@ const pv = { class: "ao-comment" }, vv = { class: "ao-comment__created-at" }, fv
8017
8017
  const w = a.user;
8018
8018
  return w ? `${w == null ? void 0 : w.firstName} ${w == null ? void 0 : w.lastName}` : null;
8019
8019
  }), n = q(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = Pn(n), c = M(() => {
8020
- const w = a.editedAt && ua(a.editedAt), m = ua(a.createdAt), h = /* @__PURE__ */ new Date(), C = w ?? m;
8021
- return C && c3(C, h);
8020
+ const w = a.editedAt && ua(a.editedAt), C = ua(a.createdAt), h = /* @__PURE__ */ new Date(), g = w ?? C;
8021
+ return g && c3(g, h);
8022
8022
  }), u = M(() => o.value ? "textarea" : "p"), v = r(), p = l((w) => {
8023
8023
  e("edit", w);
8024
- }), g = () => {
8024
+ }), m = () => {
8025
8025
  e("remove");
8026
8026
  }, $ = q(2);
8027
8027
  return Ri(() => {
8028
8028
  Me(() => {
8029
8029
  var w;
8030
8030
  if (!o.value) {
8031
- const m = (w = n.value) == null ? void 0 : w.getClientRects().length;
8032
- $.value = m || 2;
8031
+ const C = (w = n.value) == null ? void 0 : w.getClientRects().length;
8032
+ $.value = C || 2;
8033
8033
  }
8034
8034
  });
8035
- }), (w, m) => {
8035
+ }), (w, C) => {
8036
8036
  var h;
8037
8037
  return d(), _("li", pv, [
8038
8038
  s.value ? (d(), D(et, {
@@ -8085,7 +8085,7 @@ const pv = { class: "ao-comment" }, vv = { class: "ao-comment__created-at" }, fv
8085
8085
  size: "sm",
8086
8086
  variant: "ghost",
8087
8087
  color: "neutral",
8088
- onClick: g
8088
+ onClick: m
8089
8089
  }, null, 8, ["label"]),
8090
8090
  A(re, {
8091
8091
  label: w.$t("activity.comment.edit"),
@@ -8114,8 +8114,8 @@ const Cv = { class: "ao-comments__header" }, _v = ["onSubmit"], yv = ["placehold
8114
8114
  emits: ["createComment", "updateComment", "removeComment"],
8115
8115
  setup(t, { emit: e }) {
8116
8116
  const a = t, s = M(() => (a.comments || []).toSorted(
8117
- (p, g) => e0(ua(p.createdAt), ua(g.createdAt))
8118
- )), n = (v) => a.users.find((g) => g.id === v), o = q();
8117
+ (p, m) => e0(ua(p.createdAt), ua(m.createdAt))
8118
+ )), n = (v) => a.users.find((m) => m.id === v), o = q();
8119
8119
  Me(() => {
8120
8120
  o.value && (o.value.scrollTop = o.value.scrollHeight);
8121
8121
  });
@@ -8138,7 +8138,7 @@ const Cv = { class: "ao-comments__header" }, _v = ["onSubmit"], yv = ["placehold
8138
8138
  e("removeComment", { id: v });
8139
8139
  };
8140
8140
  return (v, p) => {
8141
- var g;
8141
+ var m;
8142
8142
  return d(), _("div", {
8143
8143
  ref_key: "commentsContainer",
8144
8144
  ref: o,
@@ -8174,7 +8174,7 @@ const Cv = { class: "ao-comments__header" }, _v = ["onSubmit"], yv = ["placehold
8174
8174
  ])
8175
8175
  ], 40, _v)
8176
8176
  ]),
8177
- ((g = s.value) == null ? void 0 : g.length) > 0 ? (d(), _("ul", wv, [
8177
+ ((m = s.value) == null ? void 0 : m.length) > 0 ? (d(), _("ul", wv, [
8178
8178
  (d(!0), _(fe, null, _e(s.value, ($) => (d(), D(gv, {
8179
8179
  key: $.id,
8180
8180
  user: n($.author.id),
@@ -8315,7 +8315,7 @@ const As = /* @__PURE__ */ Y({
8315
8315
  }), p = M(() => a.templateActivities.filter((b) => b.id !== a.activity.id).map((b) => ({
8316
8316
  label: b.name,
8317
8317
  value: b.id
8318
- }))), g = M({
8318
+ }))), m = M({
8319
8319
  get() {
8320
8320
  var b;
8321
8321
  return (b = a.activity.dependingOn) == null ? void 0 : b.map((V) => V.id);
@@ -8343,7 +8343,7 @@ const As = /* @__PURE__ */ Y({
8343
8343
  blocking: b
8344
8344
  });
8345
8345
  }
8346
- }), m = M(() => p.value.map((b) => {
8346
+ }), C = M(() => p.value.map((b) => {
8347
8347
  var V;
8348
8348
  return {
8349
8349
  ...b,
@@ -8353,7 +8353,7 @@ const As = /* @__PURE__ */ Y({
8353
8353
  };
8354
8354
  })), h = (b) => {
8355
8355
  e("addSubtask", b);
8356
- }, C = (b) => {
8356
+ }, g = (b) => {
8357
8357
  e("updateSubtask", b);
8358
8358
  }, y = (b) => {
8359
8359
  e("deleteSubtask", b);
@@ -8574,7 +8574,7 @@ const As = /* @__PURE__ */ Y({
8574
8574
  "is-editable": s.value,
8575
8575
  "is-template": b.isTemplate,
8576
8576
  onAdd: h,
8577
- onUpdate: C,
8577
+ onUpdate: g,
8578
8578
  onDelete: y
8579
8579
  }, null, 8, ["tasks", "activity-id", "users", "is-checkable", "is-editable", "is-template"])
8580
8580
  ])
@@ -8741,8 +8741,8 @@ const As = /* @__PURE__ */ Y({
8741
8741
  f("label", Cf, [
8742
8742
  f("span", _f, W(b.$t("activity.dependingOn.label")), 1),
8743
8743
  A(Se, {
8744
- modelValue: g.value,
8745
- "onUpdate:modelValue": V[8] || (V[8] = (H) => g.value = H),
8744
+ modelValue: m.value,
8745
+ "onUpdate:modelValue": V[8] || (V[8] = (H) => m.value = H),
8746
8746
  class: "ao-activity-details__multiselect",
8747
8747
  mode: "tags",
8748
8748
  "close-on-select": !1,
@@ -8763,7 +8763,7 @@ const As = /* @__PURE__ */ Y({
8763
8763
  mode: "tags",
8764
8764
  "close-on-select": !1,
8765
8765
  searchable: !0,
8766
- options: m.value,
8766
+ options: C.value,
8767
8767
  disabled: !s.value,
8768
8768
  caret: s.value
8769
8769
  }, null, 8, ["modelValue", "options", "disabled", "caret"])
@@ -8824,12 +8824,12 @@ const Sf = /* @__PURE__ */ Y({
8824
8824
  });
8825
8825
  }
8826
8826
  }), l = M(() => {
8827
- var C;
8828
- return !a.templateActivities || !a.templateMilestones || !a.templatePhases ? null : (C = {
8827
+ var g;
8828
+ return !a.templateActivities || !a.templateMilestones || !a.templatePhases ? null : (g = {
8829
8829
  [me.ACTIVITIES]: a.templateActivities,
8830
8830
  [me.MILESTONES]: a.templateMilestones,
8831
8831
  [me.PHASES]: a.templatePhases
8832
- }[s.value]) == null ? void 0 : C.map((y) => ({
8832
+ }[s.value]) == null ? void 0 : g.map((y) => ({
8833
8833
  value: y.id,
8834
8834
  label: y.name
8835
8835
  }));
@@ -8847,7 +8847,7 @@ const Sf = /* @__PURE__ */ Y({
8847
8847
  set(h) {
8848
8848
  e("update:rule", { ...a.rule, trigger: h });
8849
8849
  }
8850
- }), g = M(() => Object.values(Y2)), $ = M({
8850
+ }), m = M(() => Object.values(Y2)), $ = M({
8851
8851
  get() {
8852
8852
  return a.rule.duration;
8853
8853
  },
@@ -8861,31 +8861,31 @@ const Sf = /* @__PURE__ */ Y({
8861
8861
  set(h) {
8862
8862
  e("update:rule", { ...a.rule, durationUnit: h });
8863
8863
  }
8864
- }), m = M(() => Object.values(x2));
8865
- return (h, C) => (d(), D(ht(h.tagName), { class: "ao-rule-line" }, {
8864
+ }), C = M(() => Object.values(x2));
8865
+ return (h, g) => (d(), D(ht(h.tagName), { class: "ao-rule-line" }, {
8866
8866
  default: F(() => [
8867
8867
  A(Q(ut), {
8868
8868
  modelValue: n.value,
8869
- "onUpdate:modelValue": C[0] || (C[0] = (y) => n.value = y),
8869
+ "onUpdate:modelValue": g[0] || (g[0] = (y) => n.value = y),
8870
8870
  options: o.value
8871
8871
  }, null, 8, ["modelValue", "options"]),
8872
8872
  A(Q(ut), {
8873
8873
  modelValue: i.value,
8874
- "onUpdate:modelValue": C[1] || (C[1] = (y) => i.value = y),
8874
+ "onUpdate:modelValue": g[1] || (g[1] = (y) => i.value = y),
8875
8875
  options: l.value
8876
8876
  }, null, 8, ["modelValue", "options"]),
8877
8877
  A(Q(ut), {
8878
8878
  modelValue: p.value,
8879
- "onUpdate:modelValue": C[2] || (C[2] = (y) => p.value = y),
8880
- options: g.value
8879
+ "onUpdate:modelValue": g[2] || (g[2] = (y) => p.value = y),
8880
+ options: m.value
8881
8881
  }, null, 8, ["modelValue", "options"]),
8882
8882
  A(Q(ut), {
8883
8883
  modelValue: c.value,
8884
- "onUpdate:modelValue": C[3] || (C[3] = (y) => c.value = y),
8884
+ "onUpdate:modelValue": g[3] || (g[3] = (y) => c.value = y),
8885
8885
  options: u.value
8886
8886
  }, null, 8, ["modelValue", "options"]),
8887
8887
  De(f("input", {
8888
- "onUpdate:modelValue": C[4] || (C[4] = (y) => $.value = y),
8888
+ "onUpdate:modelValue": g[4] || (g[4] = (y) => $.value = y),
8889
8889
  type: "number",
8890
8890
  min: "0"
8891
8891
  }, null, 512), [
@@ -8898,14 +8898,14 @@ const Sf = /* @__PURE__ */ Y({
8898
8898
  ]),
8899
8899
  A(Q(ut), {
8900
8900
  modelValue: w.value,
8901
- "onUpdate:modelValue": C[5] || (C[5] = (y) => w.value = y),
8902
- options: m.value
8901
+ "onUpdate:modelValue": g[5] || (g[5] = (y) => w.value = y),
8902
+ options: C.value
8903
8903
  }, null, 8, ["modelValue", "options"]),
8904
8904
  A(re, {
8905
8905
  class: "ao-rule-line__remove",
8906
8906
  "icon-name": "CloseRounded",
8907
8907
  variant: "ghost",
8908
- onClick: C[6] || (C[6] = (y) => h.$emit("close"))
8908
+ onClick: g[6] || (g[6] = (y) => h.$emit("close"))
8909
8909
  })
8910
8910
  ]),
8911
8911
  _: 1
@@ -9067,7 +9067,7 @@ const Of = {
9067
9067
  rank: T
9068
9068
  }
9069
9069
  });
9070
- }, g = (E) => {
9070
+ }, m = (E) => {
9071
9071
  e("updateItem", {
9072
9072
  templateId: a.templateId,
9073
9073
  id: a.templateId,
@@ -9089,7 +9089,7 @@ const Of = {
9089
9089
  itemType: me.PHASES,
9090
9090
  data: { name: T }
9091
9091
  });
9092
- }, m = (E) => {
9092
+ }, C = (E) => {
9093
9093
  e("updateItem", E);
9094
9094
  }, h = (E) => {
9095
9095
  if (!i.value)
@@ -9109,7 +9109,7 @@ const Of = {
9109
9109
  phaseId: E.phaseId
9110
9110
  }
9111
9111
  });
9112
- }, C = (E) => {
9112
+ }, g = (E) => {
9113
9113
  e("removeItem", {
9114
9114
  itemType: me.MILESTONES,
9115
9115
  templateId: a.templateId,
@@ -9222,7 +9222,7 @@ const Of = {
9222
9222
  level: 2,
9223
9223
  "is-editable": !0,
9224
9224
  "onUpdate:title": T[0] || (T[0] = (Z) => {
9225
- g(Z);
9225
+ m(Z);
9226
9226
  })
9227
9227
  }, null, 8, ["title"])
9228
9228
  ]),
@@ -9284,8 +9284,8 @@ const Of = {
9284
9284
  "milestone-id": (k = l.value) == null ? void 0 : k.id,
9285
9285
  onAddMilestone: h,
9286
9286
  onUpdateMilestone: y,
9287
- onUpdatePhase: m,
9288
- onRemoveMilestone: C
9287
+ onUpdatePhase: C,
9288
+ onRemoveMilestone: g
9289
9289
  }, null, 8, ["template-id", "phase", "milestone-id"])) : O("", !0)
9290
9290
  ]),
9291
9291
  f("li", Vf, [
@@ -9435,7 +9435,7 @@ const Nf = { class: "ao-card-project-phase__header" }, Uf = { class: "ao-card-pr
9435
9435
  return (c = a.milestones) == null ? void 0 : c.reduce(
9436
9436
  (u, v) => {
9437
9437
  var p;
9438
- return u + ((p = v.activities) == null ? void 0 : p.reduce((g, $) => g + ($.estimation || 0), 0));
9438
+ return u + ((p = v.activities) == null ? void 0 : p.reduce((m, $) => m + ($.estimation || 0), 0));
9439
9439
  },
9440
9440
  0
9441
9441
  );
@@ -10074,7 +10074,7 @@ var Qs = Y({
10074
10074
  },
10075
10075
  mousemoveHandler(t) {
10076
10076
  const { clientX: e, clientY: a } = t, { top: s, left: n, width: o, height: i } = this.suckerCanvas.getBoundingClientRect(), l = e - n, r = a - s, u = this.suckerCanvas.getContext("2d").getImageData(Math.min(l, o - 1), Math.min(r, i - 1), 1, 1);
10077
- let [v, p, g, $] = u.data;
10077
+ let [v, p, m, $] = u.data;
10078
10078
  $ = parseFloat(($ / 255).toFixed(2));
10079
10079
  const w = this.suckerPreview.style;
10080
10080
  Object.assign(w, {
@@ -10086,7 +10086,7 @@ var Qs = Y({
10086
10086
  borderRadius: "50%",
10087
10087
  border: "2px solid #fff",
10088
10088
  boxShadow: "0 0 8px 0 rgba(0, 0, 0, 0.16)",
10089
- background: `rgba(${v}, ${p}, ${g}, ${$})`,
10089
+ background: `rgba(${v}, ${p}, ${m}, ${$})`,
10090
10090
  zIndex: 95
10091
10091
  }), this.suckerArea.length && // @ts-ignore
10092
10092
  e >= this.suckerArea[0] && // @ts-ignore
@@ -10097,8 +10097,8 @@ var Qs = Y({
10097
10097
  suckColor(t) {
10098
10098
  t && t.tagName !== "CANVAS" || (this.suckerPreview = document.createElement("div"), this.suckerPreview && document.body.appendChild(this.suckerPreview), document.addEventListener("mousemove", this.mousemoveHandler), document.addEventListener("mouseup", this.mousemoveHandler), t.addEventListener("click", (e) => {
10099
10099
  const { clientX: a, clientY: s } = e, { top: n, left: o, width: i, height: l } = t.getBoundingClientRect(), r = a - o, c = s - n, v = t.getContext("2d").getImageData(Math.min(r, i - 1), Math.min(c, l - 1), 1, 1);
10100
- let [p, g, $, w] = v.data;
10101
- w = parseFloat((w / 255).toFixed(2)), this.$emit("selectSucker", { r: p, g, b: $, a: w });
10100
+ let [p, m, $, w] = v.data;
10101
+ w = parseFloat((w / 255).toFixed(2)), this.$emit("selectSucker", { r: p, g: m, b: $, a: w });
10102
10102
  }));
10103
10103
  }
10104
10104
  }
@@ -10633,59 +10633,61 @@ const Hh = { class: "ao-maping-card-project-phase__header" }, Vh = { class: "ao-
10633
10633
  },
10634
10634
  emits: ["update:title", "update:deadline", "archivePhase", "updatePhase", "unarchivePhase"],
10635
10635
  setup(t, { emit: e }) {
10636
- const a = t, s = (m) => {
10637
- e("update:title", m);
10636
+ const a = t, s = (h) => {
10637
+ e("update:title", h);
10638
10638
  }, n = M(() => {
10639
- var m;
10640
- return (m = a.milestones) == null ? void 0 : m.reduce(
10641
- (h, C) => {
10642
- var y;
10643
- return h + ((y = C.activities) == null ? void 0 : y.reduce((P, I) => P + (I.estimation || 0), 0));
10639
+ var h;
10640
+ return (h = a.milestones) == null ? void 0 : h.reduce(
10641
+ (g, y) => {
10642
+ var P;
10643
+ return g + ((P = y.activities) == null ? void 0 : P.reduce((I, L) => I + (L.estimation || 0), 0));
10644
10644
  },
10645
10645
  0
10646
10646
  );
10647
10647
  }), o = M(() => {
10648
- var m;
10649
- return (m = a.milestones) == null ? void 0 : m.length;
10648
+ var h;
10649
+ return (h = a.milestones) == null ? void 0 : h.length;
10650
10650
  }), i = M(() => {
10651
- var m;
10652
- return (m = a.milestones) == null ? void 0 : m.filter((h) => h.status === Ba.done).length;
10651
+ var h;
10652
+ return (h = a.milestones) == null ? void 0 : h.filter((g) => g.status === Ba.done).length;
10653
10653
  }), l = M(() => (i.value || 0) / (o.value || 1)), r = M({
10654
10654
  get: () => a.deadline ?? "",
10655
- set: (m) => e("update:deadline", m != null && m.length ? m : null)
10655
+ set: (h) => e("update:deadline", h != null && h.length ? h : null)
10656
10656
  }), c = q(!1), u = q(a.color ? a.color : "#f9f9f9"), v = q(a.color ? a.color : "#f9f9f9"), p = q(null);
10657
- ce(() => a.color, (m) => {
10658
- v.value = m || "#f9f9f9";
10657
+ ce(() => a.color, (h) => {
10658
+ v.value = h || "#f9f9f9";
10659
10659
  });
10660
- const g = (m) => {
10661
- const h = m.target;
10662
- h.closest("button") || h.closest("input") || h.closest(".ao-title") || $();
10660
+ const m = (h) => {
10661
+ const g = h.target;
10662
+ g.closest("button") || g.closest("input") || g.closest(".ao-title") || $();
10663
10663
  }, $ = async () => {
10664
10664
  console.log("Open color picker"), c.value = !0, u.value = v.value, await Me(), setTimeout(() => {
10665
- window.addEventListener("click", w);
10665
+ window.addEventListener("click", C);
10666
10666
  }, 0);
10667
- }, w = (m) => {
10668
- const h = m.target;
10669
- c.value && p.value && !p.value.contains(h) && (console.log("Close color picker"), c.value = !1, window.removeEventListener("click", w), console.log("COLORS:"), console.log(u.value), console.log(v.value), u.value !== v.value && (console.log("emit update color"), e("updatePhase", {
10667
+ }, w = (h) => {
10668
+ v.value = h;
10669
+ }, C = (h) => {
10670
+ const g = h.target;
10671
+ c.value && p.value && !p.value.contains(g) && (console.log("Close color picker"), c.value = !1, window.removeEventListener("click", C), console.log("COLORS:"), console.log(u.value), console.log(v.value), u.value !== v.value && (console.log("emit update color"), e("updatePhase", {
10670
10672
  id: a.id,
10671
10673
  color: v.value
10672
10674
  })));
10673
10675
  };
10674
- return (m, h) => (d(), _(fe, null, [
10676
+ return (h, g) => (d(), _(fe, null, [
10675
10677
  A(os, {
10676
10678
  class: "ao-maping-card-project-phase",
10677
- "is-clickable": m.isEditable,
10678
- onClick: g,
10679
+ "is-clickable": h.isEditable,
10680
+ onClick: m,
10679
10681
  style: va({ backgroundColor: v.value })
10680
10682
  }, fa({
10681
10683
  default: F(() => [
10682
10684
  f("div", Vh, [
10683
10685
  A(be, {
10684
- id: m.id,
10686
+ id: h.id,
10685
10687
  class: "ao-maping-card-project-phase__title",
10686
- title: m.name || "",
10688
+ title: h.name || "",
10687
10689
  level: 4,
10688
- "is-editable": m.isEditable,
10690
+ "is-editable": h.isEditable,
10689
10691
  "onUpdate:title": s
10690
10692
  }, null, 8, ["id", "title", "is-editable"]),
10691
10693
  n.value ? (d(), _("span", Dh, " (" + W(n.value) + ")", 1)) : O("", !0)
@@ -10705,16 +10707,16 @@ const Hh = { class: "ao-maping-card-project-phase__header" }, Vh = { class: "ao-
10705
10707
  percentages: l.value,
10706
10708
  class: "ao-maping-card-project-phase__progress"
10707
10709
  }, null, 8, ["percentages"]),
10708
- m.$slots.secondary ? (d(), _("div", Uh, [
10709
- te(m.$slots, "secondary")
10710
+ h.$slots.secondary ? (d(), _("div", Uh, [
10711
+ te(h.$slots, "secondary")
10710
10712
  ])) : O("", !0)
10711
10713
  ])) : O("", !0),
10712
10714
  f("div", {
10713
10715
  class: X(["ao-maping-card-project-phase__footer-row", r.value ? "" : "ao-maping-card-project-phase__no_deadline"])
10714
10716
  }, [
10715
- m.isEditable ? De((d(), _("input", {
10717
+ h.isEditable ? De((d(), _("input", {
10716
10718
  key: 0,
10717
- "onUpdate:modelValue": h[1] || (h[1] = (C) => r.value = C),
10719
+ "onUpdate:modelValue": g[1] || (g[1] = (y) => r.value = y),
10718
10720
  class: "ao-maping-card-project-phase__deadline ao-maping-card-project-phase__deadline--input",
10719
10721
  type: "date"
10720
10722
  }, null, 512)), [
@@ -10725,13 +10727,13 @@ const Hh = { class: "ao-maping-card-project-phase__header" }, Vh = { class: "ao-
10725
10727
  { lazy: !0 }
10726
10728
  ]
10727
10729
  ]) : O("", !0),
10728
- f("span", Fh, W(Q(Qa)(m.deadline)), 1)
10730
+ f("span", Fh, W(Q(Qa)(h.deadline)), 1)
10729
10731
  ], 2)
10730
10732
  ])
10731
10733
  ]),
10732
10734
  _: 2
10733
10735
  }, [
10734
- m.isEditable ? {
10736
+ h.isEditable ? {
10735
10737
  name: "header",
10736
10738
  fn: F(() => [
10737
10739
  f("div", Hh, [
@@ -10743,9 +10745,9 @@ const Hh = { class: "ao-maping-card-project-phase__header" }, Vh = { class: "ao-
10743
10745
  size: "sm",
10744
10746
  "icon-position": "start",
10745
10747
  corners: "round",
10746
- label: m.active ? m.$t("archive") : m.$t("unarchive"),
10747
- onClick: h[0] || (h[0] = ve(
10748
- () => m.active ? m.$emit("archivePhase", { id: m.id }) : m.$emit("unarchivePhase", { id: m.id }),
10748
+ label: h.active ? h.$t("archive") : h.$t("unarchive"),
10749
+ onClick: g[0] || (g[0] = ve(
10750
+ () => h.active ? h.$emit("archivePhase", { id: h.id }) : h.$emit("unarchivePhase", { id: h.id }),
10749
10751
  ["stop"]
10750
10752
  ))
10751
10753
  }, null, 8, ["label"])
@@ -10760,12 +10762,12 @@ const Hh = { class: "ao-maping-card-project-phase__header" }, Vh = { class: "ao-
10760
10762
  ref: p
10761
10763
  }, [
10762
10764
  A(Q(Mt), {
10763
- onClick: h[2] || (h[2] = ve(() => {
10765
+ onClick: g[2] || (g[2] = ve(() => {
10764
10766
  }, ["stop"])),
10765
10767
  class: "color-picker",
10766
10768
  theme: "light",
10767
10769
  color: v.value,
10768
- "onUpdate:color": h[3] || (h[3] = (C) => v.value = C)
10770
+ "onUpdate:color": w
10769
10771
  }, null, 8, ["color"])
10770
10772
  ], 512)) : O("", !0)
10771
10773
  ], 64));
@@ -10797,8 +10799,8 @@ const Wh = {
10797
10799
  const a = t, { t: s } = _t();
10798
10800
  ce(
10799
10801
  () => a.phase.milestones,
10800
- (h, C) => {
10801
- Qe(h, C);
10802
+ (h, g) => {
10803
+ Qe(h, g);
10802
10804
  }
10803
10805
  );
10804
10806
  const n = (h) => {
@@ -10812,12 +10814,12 @@ const Wh = {
10812
10814
  (h) => B3(h, a.closedStatus)
10813
10815
  )
10814
10816
  ), r = (h) => {
10815
- const { name: C, rank: y } = At(
10817
+ const { name: g, rank: y } = At(
10816
10818
  l.value ?? [],
10817
10819
  "milestone",
10818
10820
  s
10819
10821
  );
10820
- e("addMilestone", { name: C, rank: y, phaseId: h });
10822
+ e("addMilestone", { name: g, rank: y, phaseId: h });
10821
10823
  }, c = (h) => {
10822
10824
  e("updateMilestone", h);
10823
10825
  }, u = (h) => {
@@ -10826,7 +10828,7 @@ const Wh = {
10826
10828
  e("unarchiveMilestone", h);
10827
10829
  }, p = (h) => {
10828
10830
  e("archivePhase", h);
10829
- }, g = (h) => {
10831
+ }, m = (h) => {
10830
10832
  e("unarchivePhase", h);
10831
10833
  }, $ = (h) => {
10832
10834
  "added" in h ? e("updateMilestone", {
@@ -10837,8 +10839,8 @@ const Wh = {
10837
10839
  id: h.moved.element.id,
10838
10840
  rank: Ut(l.value, h.moved.newIndex)
10839
10841
  });
10840
- }, w = zi(), m = M(() => w.path.includes("/mapping"));
10841
- return (h, C) => {
10842
+ }, w = zi(), C = M(() => w.path.includes("/mapping"));
10843
+ return (h, g) => {
10842
10844
  var y;
10843
10845
  return d(), _("li", {
10844
10846
  class: X([
@@ -10852,7 +10854,7 @@ const Wh = {
10852
10854
  class: "ao-project-phase__drag-handle"
10853
10855
  })
10854
10856
  ])) : O("", !0),
10855
- m.value ? (d(), _("div", qh, [
10857
+ C.value ? (d(), _("div", qh, [
10856
10858
  A(Zh, {
10857
10859
  id: h.phase.id,
10858
10860
  milestones: l.value,
@@ -10863,7 +10865,7 @@ const Wh = {
10863
10865
  "onUpdate:deadline": o,
10864
10866
  "onUpdate:title": n,
10865
10867
  onArchivePhase: p,
10866
- onUnarchivePhase: g,
10868
+ onUnarchivePhase: m,
10867
10869
  onUpdatePhase: i
10868
10870
  }, null, 8, ["id", "milestones", "name", "deadline", "active", "is-editable"])
10869
10871
  ])) : (d(), _("div", zh, [
@@ -10877,10 +10879,10 @@ const Wh = {
10877
10879
  "onUpdate:deadline": o,
10878
10880
  "onUpdate:title": n,
10879
10881
  onArchivePhase: p,
10880
- onUnarchivePhase: g
10882
+ onUnarchivePhase: m
10881
10883
  }, null, 8, ["id", "milestones", "name", "deadline", "active", "is-editable"])
10882
10884
  ])),
10883
- m.value ? O("", !0) : (d(), _("div", Yh, [
10885
+ C.value ? O("", !0) : (d(), _("div", Yh, [
10884
10886
  f("div", xh, [
10885
10887
  A(Q(mt), Ae({
10886
10888
  class: "ao-project-phase__milestones-list",
@@ -10925,7 +10927,7 @@ const Wh = {
10925
10927
  label: h.$t("project.milestone.add"),
10926
10928
  class: "ao-project-phase__milestone-add",
10927
10929
  "icon-name": "Add",
10928
- onClick: C[0] || (C[0] = () => r(h.phase.id))
10930
+ onClick: g[0] || (g[0] = () => r(h.phase.id))
10929
10931
  }, null, 8, ["label"])) : O("", !0)
10930
10932
  ])
10931
10933
  ])
@@ -10949,8 +10951,8 @@ const Xh = { class: "ao-project__phases" }, Qh = {
10949
10951
  emits: ["addMilestone", "updateMilestone", "archiveMilestone", "unarchiveMilestone", "addPhase", "updatePhase", "archivePhase", "unarchivePhase"],
10950
10952
  setup(t, { emit: e }) {
10951
10953
  const a = t;
10952
- ce(() => a.phases, (p, g) => {
10953
- Qe(p, g);
10954
+ ce(() => a.phases, (p, m) => {
10955
+ Qe(p, m);
10954
10956
  });
10955
10957
  const s = (p) => {
10956
10958
  e("addMilestone", p);
@@ -10966,10 +10968,10 @@ const Xh = { class: "ao-project__phases" }, Qh = {
10966
10968
  e("unarchivePhase", p);
10967
10969
  }, c = (p) => {
10968
10970
  if (p.moved) {
10969
- const g = ya(p, a.phases ?? []);
10971
+ const m = ya(p, a.phases ?? []);
10970
10972
  e("updatePhase", {
10971
10973
  id: p.moved.element.id,
10972
- rank: g
10974
+ rank: m
10973
10975
  });
10974
10976
  }
10975
10977
  }, u = (p) => {
@@ -10977,7 +10979,7 @@ const Xh = { class: "ao-project__phases" }, Qh = {
10977
10979
  }, v = (p) => {
10978
10980
  e("addPhase", p);
10979
10981
  };
10980
- return (p, g) => (d(), _("div", Xh, [
10982
+ return (p, m) => (d(), _("div", Xh, [
10981
10983
  A(Q(mt), {
10982
10984
  class: "ao-project-phase__phases-list",
10983
10985
  "model-value": p.phases,
@@ -11210,17 +11212,17 @@ const tn = /* @__PURE__ */ N(m9, [["render", _9], ["__scopeId", "data-v-ff4e3297
11210
11212
  e("updateMilestone", T);
11211
11213
  }, p = (T) => {
11212
11214
  e("archiveMilestone", T);
11213
- }, g = (T) => {
11215
+ }, m = (T) => {
11214
11216
  e("unarchiveMilestone", T);
11215
11217
  }, $ = (T) => {
11216
11218
  e("addActivity", T);
11217
11219
  }, w = (T) => {
11218
11220
  e("update:activity", T);
11219
- }, m = (T) => {
11221
+ }, C = (T) => {
11220
11222
  e("archiveActivity", T);
11221
11223
  }, h = (T) => {
11222
11224
  e("unarchiveActivity", T);
11223
- }, C = (T) => {
11225
+ }, g = (T) => {
11224
11226
  e("addSubtask", T);
11225
11227
  }, y = (T) => {
11226
11228
  e("updateSubtask", T);
@@ -11303,7 +11305,7 @@ const tn = /* @__PURE__ */ N(m9, [["render", _9], ["__scopeId", "data-v-ff4e3297
11303
11305
  onAddMilestone: u,
11304
11306
  onUpdateMilestone: v,
11305
11307
  onArchiveMilestone: p,
11306
- onUnarchiveMilestone: g,
11308
+ onUnarchiveMilestone: m,
11307
11309
  onAddPhase: o,
11308
11310
  onUpdatePhase: i,
11309
11311
  onArchivePhase: l,
@@ -11324,7 +11326,7 @@ const tn = /* @__PURE__ */ N(m9, [["render", _9], ["__scopeId", "data-v-ff4e3297
11324
11326
  onUpdateMilestone: v,
11325
11327
  onAddActivity: $,
11326
11328
  onUpdateActivity: w,
11327
- onArchiveActivity: m,
11329
+ onArchiveActivity: C,
11328
11330
  onUnarchiveActivity: h
11329
11331
  }, null, 8, ["phases", "project-id", "project-name", "users", "is-editable", "closed-status"]),
11330
11332
  (d(), D(Tt, { to: "body" }, [
@@ -11341,7 +11343,7 @@ const tn = /* @__PURE__ */ N(m9, [["render", _9], ["__scopeId", "data-v-ff4e3297
11341
11343
  "is-editable": T.isEditable,
11342
11344
  "attachment-enabled": T.attachmentEnabled,
11343
11345
  "onUpdate:activity": w,
11344
- onAddSubtask: C,
11346
+ onAddSubtask: g,
11345
11347
  onUpdateSubtask: y,
11346
11348
  onDeleteSubtask: P,
11347
11349
  onAddFiles: L,
@@ -11437,22 +11439,22 @@ const $9 = { class: "ao-card-feed__header" }, k9 = {
11437
11439
  },
11438
11440
  emits: ["removeAssignee", "updateActivity"],
11439
11441
  setup(t, { emit: e }) {
11440
- const a = t, s = M(() => a.tagType === "milestone" ? a.milestoneName : a.projectName), n = M(() => a.tagType === "milestone" ? a.milestoneColor : a.projectColor), o = (g) => {
11442
+ const a = t, s = M(() => a.tagType === "milestone" ? a.milestoneName : a.projectName), n = M(() => a.tagType === "milestone" ? a.milestoneColor : a.projectColor), o = (m) => {
11441
11443
  e("updateActivity", {
11442
11444
  id: a.id,
11443
- name: g
11445
+ name: m
11444
11446
  });
11445
- }, i = M(() => a.tagType === "milestone" && a.phaseName ? `${a.phaseName}` : a.phaseName && a.milestoneName ? `${a.phaseName} / ${a.milestoneName}` : ""), l = M(() => a.assignee ? [a.assignee] : []), r = M(() => Qa(a.deadline)), c = (g) => {
11446
- e("removeAssignee", g);
11447
+ }, i = M(() => a.tagType === "milestone" && a.phaseName ? `${a.phaseName}` : a.phaseName && a.milestoneName ? `${a.phaseName} / ${a.milestoneName}` : ""), l = M(() => a.assignee ? [a.assignee] : []), r = M(() => Qa(a.deadline)), c = (m) => {
11448
+ e("removeAssignee", m);
11447
11449
  }, u = M(() => {
11448
- var g;
11449
- return (g = a.tasks) == null ? void 0 : g.length;
11450
+ var m;
11451
+ return (m = a.tasks) == null ? void 0 : m.length;
11450
11452
  }), v = M(() => {
11451
- var g;
11452
- return (g = a.tasks) == null ? void 0 : g.filter(($) => $.isDone).length;
11453
+ var m;
11454
+ return (m = a.tasks) == null ? void 0 : m.filter(($) => $.isDone).length;
11453
11455
  }), p = M(() => (v.value || 0) / (u.value || 1));
11454
- return (g, $) => (d(), D(os, {
11455
- class: X(["ao-card-feed", { "ao-card-feed--closed": g.isClosed }]),
11456
+ return (m, $) => (d(), D(os, {
11457
+ class: X(["ao-card-feed", { "ao-card-feed--closed": m.isClosed }]),
11456
11458
  "is-clickable": !0
11457
11459
  }, {
11458
11460
  header: F(() => [
@@ -11462,30 +11464,30 @@ const $9 = { class: "ao-card-feed__header" }, k9 = {
11462
11464
  label: s.value,
11463
11465
  class: "ao-card-feed__project",
11464
11466
  variant: "solid",
11465
- color: g.projectColor ? void 0 : "primary",
11467
+ color: m.projectColor ? void 0 : "primary",
11466
11468
  "raw-color": n.value
11467
11469
  }, null, 8, ["label", "color", "raw-color"])) : O("", !0),
11468
- g.isPrivate || g.important || g.isClosed ? (d(), _("div", k9, [
11469
- g.isPrivate ? (d(), D(pe, {
11470
+ m.isPrivate || m.important || m.isClosed ? (d(), _("div", k9, [
11471
+ m.isPrivate ? (d(), D(pe, {
11470
11472
  key: 0,
11471
11473
  name: "Lock",
11472
11474
  class: "ao-card-feed__warning",
11473
11475
  size: "sm"
11474
11476
  })) : O("", !0),
11475
- g.important ? (d(), D(pe, {
11477
+ m.important ? (d(), D(pe, {
11476
11478
  key: 1,
11477
11479
  name: "FlagRounded",
11478
11480
  class: "ao-card-feed__important",
11479
11481
  size: "sm"
11480
11482
  })) : O("", !0),
11481
- g.isClosed ? (d(), D(pe, {
11483
+ m.isClosed ? (d(), D(pe, {
11482
11484
  key: 2,
11483
11485
  name: "CheckSmallRounded",
11484
11486
  class: "ao-card-feed__closed"
11485
11487
  })) : O("", !0)
11486
11488
  ])) : O("", !0),
11487
- g.$slots.secondary ? (d(), _("div", S9, [
11488
- te(g.$slots, "secondary")
11489
+ m.$slots.secondary ? (d(), _("div", S9, [
11490
+ te(m.$slots, "secondary")
11489
11491
  ])) : O("", !0)
11490
11492
  ])
11491
11493
  ]),
@@ -11494,18 +11496,18 @@ const $9 = { class: "ao-card-feed__header" }, k9 = {
11494
11496
  i.value ? (d(), _("span", M9, W(i.value), 1)) : O("", !0),
11495
11497
  f("div", T9, [
11496
11498
  f("div", O9, [
11497
- g.slug ? (d(), _("span", E9, W(g.slug) + ": ", 1)) : O("", !0),
11499
+ m.slug ? (d(), _("span", E9, W(m.slug) + ": ", 1)) : O("", !0),
11498
11500
  A(be, {
11499
- id: g.id,
11500
- title: g.name,
11501
+ id: m.id,
11502
+ title: m.name,
11501
11503
  level: 5,
11502
- "is-editable": g.isEditable,
11504
+ "is-editable": m.isEditable,
11503
11505
  "onUpdate:title": o,
11504
11506
  class: "ao-card-feed__title-inline"
11505
11507
  }, null, 8, ["id", "title", "is-editable"])
11506
11508
  ])
11507
11509
  ]),
11508
- g.deadline ? (d(), _("span", I9, W(r.value), 1)) : O("", !0)
11510
+ m.deadline ? (d(), _("span", I9, W(r.value), 1)) : O("", !0)
11509
11511
  ])
11510
11512
  ]),
11511
11513
  footer: F(() => [
@@ -11525,25 +11527,25 @@ const $9 = { class: "ao-card-feed__header" }, k9 = {
11525
11527
  ])) : O("", !0)
11526
11528
  ], 64))), 128))
11527
11529
  ]),
11528
- g.comments || g.attachments ? (d(), _("ul", D9, [
11529
- g.comments ? (d(), _("li", B9, [
11530
+ m.comments || m.attachments ? (d(), _("ul", D9, [
11531
+ m.comments ? (d(), _("li", B9, [
11530
11532
  A(pe, {
11531
11533
  name: "ChatOutline",
11532
11534
  size: "sm"
11533
11535
  }),
11534
- f("span", j9, W(g.comments), 1)
11536
+ f("span", j9, W(m.comments), 1)
11535
11537
  ])) : O("", !0),
11536
- g.attachments ? (d(), _("li", R9, [
11538
+ m.attachments ? (d(), _("li", R9, [
11537
11539
  A(pe, {
11538
11540
  name: "AttachFileRounded",
11539
11541
  size: "sm"
11540
11542
  }),
11541
- f("span", N9, W(g.attachments), 1)
11543
+ f("span", N9, W(m.attachments), 1)
11542
11544
  ])) : O("", !0)
11543
11545
  ])) : O("", !0)
11544
11546
  ]),
11545
11547
  f("div", U9, [
11546
- g.tasks && g.tasks.length ? (d(), _("div", F9, [
11548
+ m.tasks && m.tasks.length ? (d(), _("div", F9, [
11547
11549
  f("div", Z9, [
11548
11550
  A(pe, {
11549
11551
  name: "SelectCheckBox",
@@ -11625,95 +11627,95 @@ const x9 = /* @__PURE__ */ N(z9, [["render", Y9]]), K9 = { class: "ao-project-mi
11625
11627
  emits: ["close", "addActivity", "updateMilestone", "updateActivity", "archiveActivity", "unarchiveActivity"],
11626
11628
  setup(t, { emit: e }) {
11627
11629
  const a = t, { t: s } = _t(), n = M(() => {
11628
- var C;
11629
- return (C = a.phases) == null ? void 0 : C.find((y) => y.id === a.phaseId);
11630
+ var g;
11631
+ return (g = a.phases) == null ? void 0 : g.find((y) => y.id === a.phaseId);
11630
11632
  }), o = M(
11631
11633
  () => {
11632
- var C;
11633
- return (C = a.phases) == null ? void 0 : C.flatMap((y) => y.milestones);
11634
+ var g;
11635
+ return (g = a.phases) == null ? void 0 : g.flatMap((y) => y.milestones);
11634
11636
  }
11635
11637
  ), i = M(() => {
11636
- var C;
11637
- return (C = o.value) == null ? void 0 : C.find((y) => y.id === a.milestoneId);
11638
+ var g;
11639
+ return (g = o.value) == null ? void 0 : g.find((y) => y.id === a.milestoneId);
11638
11640
  }), l = M(() => {
11639
- var C;
11640
- return (C = i.value) == null ? void 0 : C.activities;
11641
+ var g;
11642
+ return (g = i.value) == null ? void 0 : g.activities;
11641
11643
  });
11642
- ce(l, (C, y) => {
11643
- Qe(C, y);
11644
+ ce(l, (g, y) => {
11645
+ Qe(g, y);
11644
11646
  });
11645
- const r = (C) => {
11646
- e("close", C);
11647
+ const r = (g) => {
11648
+ e("close", g);
11647
11649
  }, c = () => {
11648
- const { name: C, rank: y } = At(
11650
+ const { name: g, rank: y } = At(
11649
11651
  l.value ?? [],
11650
11652
  "activity",
11651
11653
  s
11652
11654
  );
11653
11655
  e("addActivity", {
11654
11656
  milestoneId: a.milestoneId,
11655
- name: C,
11657
+ name: g,
11656
11658
  rank: y,
11657
11659
  projectId: a.projectId
11658
11660
  });
11659
- }, u = (C) => {
11660
- e("updateActivity", C);
11661
- }, v = (C) => {
11662
- l.value && "moved" in C && e("updateActivity", {
11663
- id: C.moved.element.id,
11664
- rank: Ut(l.value, C.moved.newIndex)
11661
+ }, u = (g) => {
11662
+ e("updateActivity", g);
11663
+ }, v = (g) => {
11664
+ l.value && "moved" in g && e("updateActivity", {
11665
+ id: g.moved.element.id,
11666
+ rank: Ut(l.value, g.moved.newIndex)
11665
11667
  });
11666
11668
  }, p = M({
11667
11669
  get: () => {
11668
- var C;
11669
- return (C = i.value) == null ? void 0 : C.color;
11670
+ var g;
11671
+ return (g = i.value) == null ? void 0 : g.color;
11670
11672
  },
11671
- set: (C) => {
11673
+ set: (g) => {
11672
11674
  i.value && e("updateMilestone", {
11673
11675
  id: i.value.id,
11674
- color: C
11676
+ color: g
11675
11677
  });
11676
11678
  }
11677
- }), g = M({
11679
+ }), m = M({
11678
11680
  get: () => {
11679
- var C;
11680
- return ((C = i == null ? void 0 : i.value) == null ? void 0 : C.deadline) ?? "";
11681
+ var g;
11682
+ return ((g = i == null ? void 0 : i.value) == null ? void 0 : g.deadline) ?? "";
11681
11683
  },
11682
- set: (C) => {
11684
+ set: (g) => {
11683
11685
  i.value && e("updateMilestone", {
11684
11686
  id: i.value.id,
11685
- deadline: C != null && C.length ? C : null
11687
+ deadline: g != null && g.length ? g : null
11686
11688
  });
11687
11689
  }
11688
- }), $ = (C) => a.closedStatus ? Ps(C, a.closedStatus) : !1, w = M(() => {
11689
- var C;
11690
- return ((C = a.users) == null ? void 0 : C.map((y) => ({
11690
+ }), $ = (g) => a.closedStatus ? Ps(g, a.closedStatus) : !1, w = M(() => {
11691
+ var g;
11692
+ return ((g = a.users) == null ? void 0 : g.map((y) => ({
11691
11693
  label: `${y.firstName} ${y.lastName}`,
11692
11694
  value: y.id,
11693
11695
  avatar: y.avatarUrl
11694
11696
  }))) || [];
11695
- }), m = M({
11697
+ }), C = M({
11696
11698
  get() {
11697
- var C, y;
11698
- return (y = (C = i.value) == null ? void 0 : C.assignee) != null && y.id ? [i.value.assignee.id] : [];
11699
+ var g, y;
11700
+ return (y = (g = i.value) == null ? void 0 : g.assignee) != null && y.id ? [i.value.assignee.id] : [];
11699
11701
  },
11700
- set(C) {
11702
+ set(g) {
11701
11703
  e("updateMilestone", {
11702
11704
  id: a.milestoneId,
11703
- assigneeId: C[0] ?? null
11705
+ assigneeId: g[0] ?? null
11704
11706
  // `undefined` is not a value for GraphQL, we have to use `null` to reset a value
11705
11707
  });
11706
11708
  }
11707
11709
  }), h = M({
11708
11710
  get() {
11709
- var C;
11710
- return ((C = i.value) == null ? void 0 : C.important) ?? !1;
11711
+ var g;
11712
+ return ((g = i.value) == null ? void 0 : g.important) ?? !1;
11711
11713
  },
11712
- set(C) {
11713
- e("updateMilestone", { id: a.milestoneId, important: C });
11714
+ set(g) {
11715
+ e("updateMilestone", { id: a.milestoneId, important: g });
11714
11716
  }
11715
11717
  });
11716
- return (C, y) => {
11718
+ return (g, y) => {
11717
11719
  var P;
11718
11720
  return d(), _("div", K9, [
11719
11721
  f("header", G9, [
@@ -11729,17 +11731,17 @@ const x9 = /* @__PURE__ */ N(z9, [["render", Y9]]), K9 = { class: "ao-project-mi
11729
11731
  f("div", Q9, [
11730
11732
  f("div", J9, [
11731
11733
  A(be, {
11732
- title: ((P = i.value) == null ? void 0 : P.name) || C.milestoneId,
11734
+ title: ((P = i.value) == null ? void 0 : P.name) || g.milestoneId,
11733
11735
  level: 5
11734
11736
  }, null, 8, ["title"]),
11735
11737
  A(As, {
11736
11738
  modelValue: h.value,
11737
11739
  "onUpdate:modelValue": y[0] || (y[0] = (I) => h.value = I),
11738
11740
  modelModifiers: { lazy: !0 },
11739
- disabled: !C.isEditable,
11741
+ disabled: !g.isEditable,
11740
11742
  class: "ao-milestone__important",
11741
11743
  color: "danger",
11742
- label: C.$t("activity.important.label"),
11744
+ label: g.$t("activity.important.label"),
11743
11745
  "icon-name": "FlagRounded",
11744
11746
  variant: "ghost",
11745
11747
  size: "sm"
@@ -11750,13 +11752,13 @@ const x9 = /* @__PURE__ */ N(z9, [["render", Y9]]), K9 = { class: "ao-project-mi
11750
11752
  f("div", t4, [
11751
11753
  f("label", a4, [
11752
11754
  De(f("input", {
11753
- "onUpdate:modelValue": y[1] || (y[1] = (I) => g.value = I),
11755
+ "onUpdate:modelValue": y[1] || (y[1] = (I) => m.value = I),
11754
11756
  class: "ao-milestone__field ao-milestone__date-field",
11755
11757
  type: "date"
11756
11758
  }, null, 512), [
11757
11759
  [
11758
11760
  Ze,
11759
- g.value,
11761
+ m.value,
11760
11762
  void 0,
11761
11763
  { lazy: !0 }
11762
11764
  ]
@@ -11766,17 +11768,17 @@ const x9 = /* @__PURE__ */ N(z9, [["render", Y9]]), K9 = { class: "ao-project-mi
11766
11768
  f("div", s4, [
11767
11769
  f("label", n4, [
11768
11770
  A(Se, {
11769
- modelValue: m.value,
11770
- "onUpdate:modelValue": y[2] || (y[2] = (I) => m.value = I),
11771
+ modelValue: C.value,
11772
+ "onUpdate:modelValue": y[2] || (y[2] = (I) => C.value = I),
11771
11773
  options: w.value,
11772
11774
  "close-on-select": !0,
11773
11775
  searchable: !0,
11774
11776
  max: 1,
11775
11777
  class: "ao-milestone__field ao-milestone__multiselect",
11776
- placeholder: C.$t("activity.filters.assignee.placeholder"),
11778
+ placeholder: g.$t("activity.filters.assignee.placeholder"),
11777
11779
  mode: "tags",
11778
- disabled: !C.isEditable,
11779
- caret: C.isEditable
11780
+ disabled: !g.isEditable,
11781
+ caret: g.isEditable
11780
11782
  }, {
11781
11783
  tag: F(({
11782
11784
  option: I,
@@ -11803,10 +11805,10 @@ const x9 = /* @__PURE__ */ N(z9, [["render", Y9]]), K9 = { class: "ao-project-mi
11803
11805
  A(Q(mt), Ae({
11804
11806
  class: "ao-project-milestone__activities",
11805
11807
  list: l.value,
11806
- disabled: !C.isEditable,
11808
+ disabled: !g.isEditable,
11807
11809
  "item-key": "id",
11808
11810
  group: "kanban"
11809
- }, C.$attrs, { onChange: v }), {
11811
+ }, g.$attrs, { onChange: v }), {
11810
11812
  item: F(({ element: I }) => {
11811
11813
  var L, U, z, K, J;
11812
11814
  return [
@@ -11818,26 +11820,26 @@ const x9 = /* @__PURE__ */ N(z9, [["render", Y9]]), K9 = { class: "ao-project-mi
11818
11820
  "milestone-color": (z = i.value) == null ? void 0 : z.color,
11819
11821
  deadline: I.deadline,
11820
11822
  important: I.important,
11821
- users: C.users,
11823
+ users: g.users,
11822
11824
  assignee: I.assignee,
11823
11825
  slug: I.slug,
11824
11826
  comments: (K = I.comments) == null ? void 0 : K.length,
11825
11827
  attachments: (J = I.attachments) == null ? void 0 : J.length,
11826
11828
  tasks: I.tasks,
11827
- "is-editable": C.isEditable,
11829
+ "is-editable": g.isEditable,
11828
11830
  "is-private": I.private,
11829
11831
  "is-closed": $(I),
11830
- onClick: (ae) => C.$router.push({
11832
+ onClick: (ae) => g.$router.push({
11831
11833
  name: Q(ye).activity,
11832
- params: { milestoneId: C.milestoneId, activityId: I.id }
11834
+ params: { milestoneId: g.milestoneId, activityId: I.id }
11833
11835
  }),
11834
11836
  onUpdateActivity: u,
11835
11837
  onRemoveAssignee: () => u({ id: I.id, assigneeId: null })
11836
11838
  }, fa({ _: 2 }, [
11837
- C.isEditable ? {
11839
+ g.isEditable ? {
11838
11840
  name: "secondary",
11839
11841
  fn: F(() => [
11840
- C.isEditable && I.active ? (d(), D(re, {
11842
+ g.isEditable && I.active ? (d(), D(re, {
11841
11843
  key: 0,
11842
11844
  color: "primary",
11843
11845
  variant: "ghost",
@@ -11845,10 +11847,10 @@ const x9 = /* @__PURE__ */ N(z9, [["render", Y9]]), K9 = { class: "ao-project-mi
11845
11847
  size: "sm",
11846
11848
  "icon-position": "start",
11847
11849
  corners: "round",
11848
- label: C.$t("archive"),
11849
- onClick: ve(() => C.$emit("archiveActivity", { id: I.id }), ["stop"])
11850
+ label: g.$t("archive"),
11851
+ onClick: ve(() => g.$emit("archiveActivity", { id: I.id }), ["stop"])
11850
11852
  }, null, 8, ["label", "onClick"])) : O("", !0),
11851
- C.isEditable && !I.active ? (d(), D(re, {
11853
+ g.isEditable && !I.active ? (d(), D(re, {
11852
11854
  key: 1,
11853
11855
  color: "primary",
11854
11856
  variant: "ghost",
@@ -11856,9 +11858,9 @@ const x9 = /* @__PURE__ */ N(z9, [["render", Y9]]), K9 = { class: "ao-project-mi
11856
11858
  size: "sm",
11857
11859
  "icon-position": "start",
11858
11860
  corners: "round",
11859
- label: C.$t("feed.activity.unarchive"),
11861
+ label: g.$t("feed.activity.unarchive"),
11860
11862
  onClick: ve(
11861
- () => C.$emit("unarchiveActivity", { id: I.id }),
11863
+ () => g.$emit("unarchiveActivity", { id: I.id }),
11862
11864
  ["stop"]
11863
11865
  )
11864
11866
  }, null, 8, ["label", "onClick"])) : O("", !0)
@@ -11870,10 +11872,10 @@ const x9 = /* @__PURE__ */ N(z9, [["render", Y9]]), K9 = { class: "ao-project-mi
11870
11872
  }),
11871
11873
  _: 1
11872
11874
  }, 16, ["list", "disabled"]),
11873
- C.isEditable ? (d(), _("div", o4, [
11875
+ g.isEditable ? (d(), _("div", o4, [
11874
11876
  A(gt, {
11875
11877
  "icon-name": "Add",
11876
- label: C.$t("project.activity.add"),
11878
+ label: g.$t("project.activity.add"),
11877
11879
  onClick: c
11878
11880
  }, null, 8, ["label"])
11879
11881
  ])) : O("", !0)
@@ -11902,68 +11904,68 @@ const l4 = /* @__PURE__ */ Y({
11902
11904
  emits: ["update:activity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
11903
11905
  setup(t, { emit: e }) {
11904
11906
  const a = t, s = M(() => {
11905
- var m;
11906
- return (m = a.phases) == null ? void 0 : m.find((h) => h.id === a.phaseId);
11907
+ var C;
11908
+ return (C = a.phases) == null ? void 0 : C.find((h) => h.id === a.phaseId);
11907
11909
  }), n = M(
11908
11910
  () => {
11909
- var m;
11910
- return (m = a.phases) == null ? void 0 : m.flatMap((h) => h.milestones);
11911
+ var C;
11912
+ return (C = a.phases) == null ? void 0 : C.flatMap((h) => h.milestones);
11911
11913
  }
11912
11914
  ), o = M(() => {
11913
- var m;
11914
- return (m = n.value) == null ? void 0 : m.find((h) => h.id === a.milestoneId);
11915
+ var C;
11916
+ return (C = n.value) == null ? void 0 : C.find((h) => h.id === a.milestoneId);
11915
11917
  }), i = M(() => {
11916
- var m;
11917
- return (m = a.activities) == null ? void 0 : m.find((h) => h.id === a.activityId);
11918
- }), l = (m) => {
11919
- e("update:activity", m);
11920
- }, r = (m) => {
11921
- e("addSubtask", m);
11922
- }, c = (m) => {
11923
- e("updateSubtask", m);
11924
- }, u = (m) => {
11925
- e("deleteSubtask", m);
11926
- }, v = (m) => {
11927
- e("addFiles", m);
11928
- }, p = (m) => {
11929
- e("removeFile", m);
11930
- }, g = (m) => {
11931
- e("addComment", m);
11932
- }, $ = (m) => {
11933
- e("updateComment", m);
11934
- }, w = (m) => {
11935
- e("removeComment", m);
11918
+ var C;
11919
+ return (C = a.activities) == null ? void 0 : C.find((h) => h.id === a.activityId);
11920
+ }), l = (C) => {
11921
+ e("update:activity", C);
11922
+ }, r = (C) => {
11923
+ e("addSubtask", C);
11924
+ }, c = (C) => {
11925
+ e("updateSubtask", C);
11926
+ }, u = (C) => {
11927
+ e("deleteSubtask", C);
11928
+ }, v = (C) => {
11929
+ e("addFiles", C);
11930
+ }, p = (C) => {
11931
+ e("removeFile", C);
11932
+ }, m = (C) => {
11933
+ e("addComment", C);
11934
+ }, $ = (C) => {
11935
+ e("updateComment", C);
11936
+ }, w = (C) => {
11937
+ e("removeComment", C);
11936
11938
  };
11937
- return (m, h) => {
11938
- var C, y;
11939
+ return (C, h) => {
11940
+ var g, y;
11939
11941
  return i.value ? (d(), D(qs, {
11940
11942
  key: 0,
11941
11943
  activity: i.value,
11942
- "activity-types": m.activityTypes,
11943
- "milestone-id": m.milestoneId,
11944
- "template-activities": m.activities,
11944
+ "activity-types": C.activityTypes,
11945
+ "milestone-id": C.milestoneId,
11946
+ "template-activities": C.activities,
11945
11947
  "is-template": !1,
11946
- users: m.users,
11947
- "user-id": m.userId,
11948
- "is-task-checkable": m.isTaskCheckable,
11949
- statuses: m.statuses,
11950
- breadcrumbs: `${(C = s.value) == null ? void 0 : C.name} / ${(y = o.value) == null ? void 0 : y.name}`,
11951
- "is-editable": m.isEditable,
11952
- "attachment-enabled": m.attachmentEnabled,
11953
- projects: [m.project],
11954
- onClose: m.$router.back,
11948
+ users: C.users,
11949
+ "user-id": C.userId,
11950
+ "is-task-checkable": C.isTaskCheckable,
11951
+ statuses: C.statuses,
11952
+ breadcrumbs: `${(g = s.value) == null ? void 0 : g.name} / ${(y = o.value) == null ? void 0 : y.name}`,
11953
+ "is-editable": C.isEditable,
11954
+ "attachment-enabled": C.attachmentEnabled,
11955
+ projects: [C.project],
11956
+ onClose: C.$router.back,
11955
11957
  "onUpdate:activity": l,
11956
11958
  onAddSubtask: r,
11957
11959
  onUpdateSubtask: c,
11958
11960
  onDeleteSubtask: u,
11959
11961
  onAddFiles: v,
11960
11962
  onRemoveFile: p,
11961
- onAddComment: g,
11963
+ onAddComment: m,
11962
11964
  onUpdateComment: $,
11963
11965
  onRemoveComment: w
11964
11966
  }, {
11965
11967
  default: F((P) => [
11966
- te(m.$slots, "default", ha(ma(P)))
11968
+ te(C.$slots, "default", ha(ma(P)))
11967
11969
  ]),
11968
11970
  _: 3
11969
11971
  }, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "attachment-enabled", "projects", "onClose"])) : O("", !0);
@@ -12065,7 +12067,7 @@ function _4(t, e, a = {}) {
12065
12067
  ([$, w]) => {
12066
12068
  if (u(), !v.value || !$.length)
12067
12069
  return;
12068
- const m = new IntersectionObserver(
12070
+ const C = new IntersectionObserver(
12069
12071
  e,
12070
12072
  {
12071
12073
  root: bs(w),
@@ -12073,15 +12075,15 @@ function _4(t, e, a = {}) {
12073
12075
  threshold: o
12074
12076
  }
12075
12077
  );
12076
- $.forEach((h) => h && m.observe(h)), u = () => {
12077
- m.disconnect(), u = oa;
12078
+ $.forEach((h) => h && C.observe(h)), u = () => {
12079
+ C.disconnect(), u = oa;
12078
12080
  };
12079
12081
  },
12080
12082
  { immediate: l, flush: "post" }
12081
- ) : oa, g = () => {
12083
+ ) : oa, m = () => {
12082
12084
  u(), p(), v.value = !1;
12083
12085
  };
12084
- return c4(g), {
12086
+ return c4(m), {
12085
12087
  isSupported: r,
12086
12088
  isActive: v,
12087
12089
  pause() {
@@ -12090,7 +12092,7 @@ function _4(t, e, a = {}) {
12090
12092
  resume() {
12091
12093
  v.value = !0;
12092
12094
  },
12093
- stop: g
12095
+ stop: m
12094
12096
  };
12095
12097
  }
12096
12098
  const y4 = {
@@ -12186,17 +12188,17 @@ const y4 = {
12186
12188
  }
12187
12189
  }), {
12188
12190
  item: F(({ element: p }) => {
12189
- var g, $, w, m, h, C, y, P, I;
12191
+ var m, $, w, C, h, g, y, P, I;
12190
12192
  return [
12191
12193
  A(mi, {
12192
12194
  class: X(o(p) ? "ao-list-draggable" : ""),
12193
12195
  id: p.id,
12194
12196
  name: p.name,
12195
- "project-name": (g = p.project) == null ? void 0 : g.name,
12197
+ "project-name": (m = p.project) == null ? void 0 : m.name,
12196
12198
  "project-color": ($ = p.project) == null ? void 0 : $.color,
12197
- "phase-name": (m = (w = p.milestone) == null ? void 0 : w.phase) == null ? void 0 : m.name,
12199
+ "phase-name": (C = (w = p.milestone) == null ? void 0 : w.phase) == null ? void 0 : C.name,
12198
12200
  "milestone-name": (h = p.milestone) == null ? void 0 : h.name,
12199
- "milestone-color": (C = p.milestone) == null ? void 0 : C.color,
12201
+ "milestone-color": (g = p.milestone) == null ? void 0 : g.color,
12200
12202
  deadline: p.deadline,
12201
12203
  rules: ((y = p.rules) == null ? void 0 : y.length) || 0,
12202
12204
  tasks: p.tasks,
@@ -12368,14 +12370,14 @@ const I4 = { class: "ao-feed" }, L4 = { class: "ao-feed__filters" }, P4 = { clas
12368
12370
  statusId: k.id
12369
12371
  };
12370
12372
  a.filters.assigneeId.length > 0 && (oe.assigneeId = a.filters.assigneeId[0]), a.filters.projectId.length > 0 && (oe.projectId = a.filters.projectId[0]), a.filters.typeId.length > 0 && (oe.typeId = a.filters.typeId[0]), c.value = !0, e("addActivity", oe);
12371
- }, g = (k, R) => {
12373
+ }, m = (k, R) => {
12372
12374
  c.value = !1, e("update:filters", { ...a.filters, [k]: R });
12373
12375
  }, $ = M(
12374
12376
  () => a.project ? [a.project] : a.projects ?? []
12375
12377
  ), w = M(() => $.value.map((k) => ({
12376
12378
  value: k.id,
12377
12379
  label: k.name
12378
- }))), m = M(() => {
12380
+ }))), C = M(() => {
12379
12381
  var k;
12380
12382
  return (k = a.activityTypes) == null ? void 0 : k.map((R) => ({
12381
12383
  value: R.id,
@@ -12385,7 +12387,7 @@ const I4 = { class: "ao-feed" }, L4 = { class: "ao-feed__filters" }, P4 = { clas
12385
12387
  value: k.id,
12386
12388
  label: `${k.firstName} ${k.lastName}`,
12387
12389
  avatar: k.avatarUrl
12388
- }))), C = (k) => {
12390
+ }))), g = (k) => {
12389
12391
  a.selectedActivity && e("update:activity", k);
12390
12392
  }, y = (k) => {
12391
12393
  e("update:activity", k);
@@ -12452,18 +12454,18 @@ const I4 = { class: "ao-feed" }, L4 = { class: "ao-feed__filters" }, P4 = { clas
12452
12454
  searchable: !0,
12453
12455
  class: "ao-feed__filter ao-feed__filter__projects",
12454
12456
  placeholder: k.$t("feed.filters.project.placeholder"),
12455
- "onUpdate:modelValue": R[1] || (R[1] = (V) => g(Q(Dt).project, V))
12457
+ "onUpdate:modelValue": R[1] || (R[1] = (V) => m(Q(Dt).project, V))
12456
12458
  }, null, 8, ["model-value", "options", "placeholder"])),
12457
- m.value ? (d(), D(Se, {
12459
+ C.value ? (d(), D(Se, {
12458
12460
  key: 1,
12459
12461
  "model-value": k.filters[Q(Dt).type],
12460
12462
  mode: "tags",
12461
- options: m.value,
12463
+ options: C.value,
12462
12464
  "close-on-select": !1,
12463
12465
  searchable: !0,
12464
12466
  class: "ao-feed__filter ao-feed__filter__types",
12465
12467
  placeholder: k.$t("feed.filters.activityType.placeholder"),
12466
- "onUpdate:modelValue": R[2] || (R[2] = (V) => g(Q(Dt).type, V))
12468
+ "onUpdate:modelValue": R[2] || (R[2] = (V) => m(Q(Dt).type, V))
12467
12469
  }, null, 8, ["model-value", "options", "placeholder"])) : O("", !0),
12468
12470
  h.value.length ? (d(), D(Se, {
12469
12471
  key: 2,
@@ -12474,7 +12476,7 @@ const I4 = { class: "ao-feed" }, L4 = { class: "ao-feed__filters" }, P4 = { clas
12474
12476
  searchable: !0,
12475
12477
  class: "ao-feed__filter ao-feed__filter__assignees",
12476
12478
  placeholder: k.$t("feed.filters.assignee.placeholder"),
12477
- "onUpdate:modelValue": R[3] || (R[3] = (V) => g(Q(Dt).assignee, V))
12479
+ "onUpdate:modelValue": R[3] || (R[3] = (V) => m(Q(Dt).assignee, V))
12478
12480
  }, {
12479
12481
  tag: F(({
12480
12482
  option: V,
@@ -12563,7 +12565,7 @@ const I4 = { class: "ao-feed" }, L4 = { class: "ao-feed__filters" }, P4 = { clas
12563
12565
  "attachment-enabled": k.attachmentEnabled,
12564
12566
  projects: $.value,
12565
12567
  onClose: R[7] || (R[7] = () => i(null, null)),
12566
- "onUpdate:activity": C,
12568
+ "onUpdate:activity": g,
12567
12569
  onAddSubtask: z,
12568
12570
  onUpdateSubtask: K,
12569
12571
  onDeleteSubtask: J,
@@ -12606,66 +12608,66 @@ const V4 = { class: "ao-project-mapping" }, D4 = { class: "ao-project-mapping-ma
12606
12608
  emits: ["addPhase", "updatePhase", "archivePhase", "unarchivePhase", "copyPhaseToTemplate", "applyTemplate", "saveTemplate", "update:showsArchived"],
12607
12609
  setup(t, { emit: e }) {
12608
12610
  const a = t, { t: s } = _t(), n = () => {
12609
- const { name: m, rank: h } = At(a.phases, "phase", s);
12610
- e("addPhase", { name: m, rank: h, projectId: a.project.id });
12611
- }, o = (m) => {
12612
- e("updatePhase", m);
12613
- }, i = (m) => {
12614
- e("archivePhase", m);
12615
- }, l = (m) => {
12616
- e("unarchivePhase", m);
12617
- }, r = (m) => {
12618
- e("copyPhaseToTemplate", m);
12619
- }, c = q(!1), u = q(!1), v = (m, h) => {
12620
- e("applyTemplate", { templateId: m, projectId: h }), c.value = !1;
12621
- }, p = (m, h) => {
12611
+ const { name: C, rank: h } = At(a.phases, "phase", s);
12612
+ e("addPhase", { name: C, rank: h, projectId: a.project.id });
12613
+ }, o = (C) => {
12614
+ e("updatePhase", C);
12615
+ }, i = (C) => {
12616
+ e("archivePhase", C);
12617
+ }, l = (C) => {
12618
+ e("unarchivePhase", C);
12619
+ }, r = (C) => {
12620
+ e("copyPhaseToTemplate", C);
12621
+ }, c = q(!1), u = q(!1), v = (C, h) => {
12622
+ e("applyTemplate", { templateId: C, projectId: h }), c.value = !1;
12623
+ }, p = (C, h) => {
12622
12624
  var P;
12623
- const C = (P = a.templates) == null ? void 0 : P.at(-1), y = C ? we.LexoRank.parse(C.rank).genNext() : we.LexoRank.middle();
12624
- e("saveTemplate", { templateName: m, rank: y.format(), phaseIds: h }), u.value = !1;
12625
- }, g = Os(), $ = q("mapping"), w = [
12625
+ const g = (P = a.templates) == null ? void 0 : P.at(-1), y = g ? we.LexoRank.parse(g.rank).genNext() : we.LexoRank.middle();
12626
+ e("saveTemplate", { templateName: C, rank: y.format(), phaseIds: h }), u.value = !1;
12627
+ }, m = Os(), $ = q("mapping"), w = [
12626
12628
  { label: "Overview", value: "overview" },
12627
12629
  { label: "Feed", value: "feed" },
12628
12630
  { label: "Mapping", value: "mapping" }
12629
12631
  ];
12630
- return ce($, (m) => {
12631
- m === "feed" ? (g.push({ name: ye.feed }), console.log("Navigating to feed...")) : m === "overview" ? (g.push({ name: ye.project }), console.log("Navigating to feed...")) : m === "mapping" && (g.push({ name: ye.mapping }), console.log("Navigating to feed..."));
12632
- }), (m, h) => (d(), _(fe, null, [
12633
- f("div", Ae({ class: "ao-project-mapping-overview" }, m.$attrs), [
12632
+ return ce($, (C) => {
12633
+ C === "feed" ? (m.push({ name: ye.feed }), console.log("Navigating to feed...")) : C === "overview" ? (m.push({ name: ye.project }), console.log("Navigating to feed...")) : C === "mapping" && (m.push({ name: ye.mapping }), console.log("Navigating to feed..."));
12634
+ }), (C, h) => (d(), _(fe, null, [
12635
+ f("div", Ae({ class: "ao-project-mapping-overview" }, C.$attrs), [
12634
12636
  f("div", V4, [
12635
12637
  A(ba, null, {
12636
12638
  primary: F(() => [
12637
12639
  A(tn, {
12638
12640
  tabs: w,
12639
12641
  modelValue: $.value,
12640
- "onUpdate:modelValue": h[0] || (h[0] = (C) => $.value = C)
12642
+ "onUpdate:modelValue": h[0] || (h[0] = (g) => $.value = g)
12641
12643
  }, null, 8, ["modelValue"]),
12642
12644
  A(re, {
12643
12645
  class: "ao-feed__show-archived",
12644
12646
  size: "sm",
12645
- "icon-name": m.showsArchived ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
12647
+ "icon-name": C.showsArchived ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
12646
12648
  "icon-position": "start",
12647
12649
  color: "primary",
12648
12650
  variant: "ghost",
12649
- label: m.$t("feed.filters.showsArchived.label"),
12651
+ label: C.$t("feed.filters.showsArchived.label"),
12650
12652
  role: "checkbox",
12651
- "aria-checked": m.showsArchived,
12652
- onClick: h[1] || (h[1] = (C) => m.$emit("update:showsArchived", !m.showsArchived))
12653
+ "aria-checked": C.showsArchived,
12654
+ onClick: h[1] || (h[1] = (g) => C.$emit("update:showsArchived", !C.showsArchived))
12653
12655
  }, null, 8, ["icon-name", "label", "aria-checked"])
12654
12656
  ]),
12655
12657
  secondary: F(() => [
12656
- m.isEditable === !0 ? (d(), D(re, {
12658
+ C.isEditable === !0 ? (d(), D(re, {
12657
12659
  key: 0,
12658
12660
  class: "ao-project-mapping-overview__save-as-template",
12659
12661
  color: "primary",
12660
- label: m.$t("project.template.save.label"),
12661
- onClick: h[2] || (h[2] = (C) => u.value = !0)
12662
+ label: C.$t("project.template.save.label"),
12663
+ onClick: h[2] || (h[2] = (g) => u.value = !0)
12662
12664
  }, null, 8, ["label"])) : O("", !0),
12663
- m.isEditable === !0 ? (d(), D(re, {
12665
+ C.isEditable === !0 ? (d(), D(re, {
12664
12666
  key: 1,
12665
12667
  class: "ao-project-mapping-overview__add-template",
12666
12668
  color: "primary",
12667
- label: m.$t("project.template.apply.label"),
12668
- onClick: h[3] || (h[3] = (C) => c.value = !0)
12669
+ label: C.$t("project.template.apply.label"),
12670
+ onClick: h[3] || (h[3] = (g) => c.value = !0)
12669
12671
  }, null, 8, ["label"])) : O("", !0)
12670
12672
  ]),
12671
12673
  _: 1
@@ -12673,10 +12675,10 @@ const V4 = { class: "ao-project-mapping" }, D4 = { class: "ao-project-mapping-ma
12673
12675
  f("div", D4, [
12674
12676
  f("div", B4, [
12675
12677
  A(vi, {
12676
- phases: m.phases,
12677
- "closed-status": m.closedStatus,
12678
- "is-editable": m.isEditable === !0,
12679
- users: m.users,
12678
+ phases: C.phases,
12679
+ "closed-status": C.closedStatus,
12680
+ "is-editable": C.isEditable === !0,
12681
+ users: C.users,
12680
12682
  onAddPhase: n,
12681
12683
  onUpdatePhase: o,
12682
12684
  onArchivePhase: i,
@@ -12684,10 +12686,10 @@ const V4 = { class: "ao-project-mapping" }, D4 = { class: "ao-project-mapping-ma
12684
12686
  onCopyPhaseToTemplate: r
12685
12687
  }, null, 8, ["phases", "closed-status", "is-editable", "users"])
12686
12688
  ]),
12687
- m.project.architectureImage ? (d(), _("div", j4, [
12689
+ C.project.architectureImage ? (d(), _("div", j4, [
12688
12690
  f("img", {
12689
12691
  class: "architecture-image",
12690
- src: m.project.architectureImage.url,
12692
+ src: C.project.architectureImage.url,
12691
12693
  alt: Q(s)("architectureImage.alt")
12692
12694
  }, null, 8, R4)
12693
12695
  ])) : O("", !0)
@@ -12697,15 +12699,15 @@ const V4 = { class: "ao-project-mapping" }, D4 = { class: "ao-project-mapping-ma
12697
12699
  (d(), D(Tt, { to: "body" }, [
12698
12700
  u.value ? (d(), D(hi, {
12699
12701
  key: 0,
12700
- phases: m.phases,
12701
- onClose: h[4] || (h[4] = (C) => u.value = !1),
12702
+ phases: C.phases,
12703
+ onClose: h[4] || (h[4] = (g) => u.value = !1),
12702
12704
  onSave: p
12703
12705
  }, null, 8, ["phases"])) : O("", !0),
12704
12706
  c.value ? (d(), D(fi, {
12705
12707
  key: 1,
12706
- "project-id": m.project.id,
12707
- templates: m.templates,
12708
- onClose: h[5] || (h[5] = (C) => c.value = !1),
12708
+ "project-id": C.project.id,
12709
+ templates: C.templates,
12710
+ onClose: h[5] || (h[5] = (g) => c.value = !1),
12709
12711
  onApply: v
12710
12712
  }, null, 8, ["project-id", "templates"])) : O("", !0)
12711
12713
  ]))
@@ -12797,8 +12799,8 @@ const jt = {
12797
12799
  Qe(r, c);
12798
12800
  });
12799
12801
  const n = () => {
12800
- var p, g;
12801
- const r = (p = a.templates) == null ? void 0 : p.at(-1), c = r ? we.LexoRank.parse(r.rank).genNext() : we.LexoRank.middle(), u = ((g = a.templates) == null ? void 0 : g.length) ?? 0, v = {
12802
+ var p, m;
12803
+ const r = (p = a.templates) == null ? void 0 : p.at(-1), c = r ? we.LexoRank.parse(r.rank).genNext() : we.LexoRank.middle(), u = ((m = a.templates) == null ? void 0 : m.length) ?? 0, v = {
12802
12804
  name: s("template.defaultName.template", { idx: u + 1 }),
12803
12805
  rank: c.format()
12804
12806
  };
@@ -12870,7 +12872,7 @@ const jt = {
12870
12872
  name: Q(jt).TEMPLATE_DETAILS,
12871
12873
  params: { templateId: u.id }
12872
12874
  }),
12873
- onDeleteItem: c[0] || (c[0] = (p, g) => i(p, g))
12875
+ onDeleteItem: c[0] || (c[0] = (p, m) => i(p, m))
12874
12876
  }, null, 8, ["id", "title", "phases", "milestones", "activities", "updated-at", "updated-by", "onUpdateTitle", "onClick"])
12875
12877
  ];
12876
12878
  }),