@26lights/orcha 0.35.6 → 0.35.7
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.cjs.js +1 -1
- package/dist/orcha.es.js +769 -769
- package/dist/orcha.umd.js +1 -1
- package/package.json +2 -2
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as J, openBlock as v, createBlock as R, unref as
|
|
1
|
+
import { defineComponent as J, openBlock as v, createBlock as R, unref as X, mergeProps as Ve, createElementBlock as g, createElementVNode as p, pushScopeId as hs, popScopeId as Cs, createStaticVNode as gs, computed as M, resolveDynamicComponent as vt, normalizeClass as x, renderSlot as te, toDisplayString as K, createCommentVNode as T, ref as ae, watch as ce, nextTick as De, withKeys as ut, toHandlers as _s, withCtx as q, createTextVNode as Ra, createVNode as V, normalizeStyle as v1, withModifiers as he, createSlots as Na, Fragment as Ce, renderList as ye, onMounted as qt, onBeforeUnmount as p1, onUnmounted as m1, Teleport as Ht, toRefs as Ae, getCurrentInstance as Mt, toRef as Vt, normalizeProps as ua, guardReactiveProps as da, withDirectives as rt, vShow as ys, onUpdated as bs, vModelText as bt, resolveComponent as ws, getCurrentScope as $s, onScopeDispose as ks, toHandlerKey as Ms } from "vue";
|
|
2
2
|
import { RouterView as As } from "vue-router";
|
|
3
3
|
import pt from "vuedraggable";
|
|
4
4
|
const Mv = /* @__PURE__ */ J({
|
|
@@ -7,7 +7,7 @@ const Mv = /* @__PURE__ */ J({
|
|
|
7
7
|
templates: {}
|
|
8
8
|
},
|
|
9
9
|
setup(t) {
|
|
10
|
-
return (e, a) => (v(), R(
|
|
10
|
+
return (e, a) => (v(), R(X(As), Ve({ templates: e.templates }, e.$attrs), null, 16, ["templates"]));
|
|
11
11
|
}
|
|
12
12
|
}), j = (t, e) => {
|
|
13
13
|
const a = t.__vccOpts || t;
|
|
@@ -1152,7 +1152,7 @@ const c2 = /* @__PURE__ */ j(o2, [["render", d2]]), f2 = /* @__PURE__ */ Object.
|
|
|
1152
1152
|
..._n,
|
|
1153
1153
|
...p2
|
|
1154
1154
|
});
|
|
1155
|
-
const
|
|
1155
|
+
const h1 = {
|
|
1156
1156
|
ROUND: "round",
|
|
1157
1157
|
ROUNDED: "rounded"
|
|
1158
1158
|
}, fe = /* @__PURE__ */ J({
|
|
@@ -1183,7 +1183,7 @@ const m2 = ["type"], h2 = {
|
|
|
1183
1183
|
footer: { type: Boolean, default: () => !1 },
|
|
1184
1184
|
size: { default: () => ja.MD },
|
|
1185
1185
|
isLoading: { type: Boolean, default: () => !1 },
|
|
1186
|
-
corners: { default: () =>
|
|
1186
|
+
corners: { default: () => h1.ROUNDED }
|
|
1187
1187
|
},
|
|
1188
1188
|
setup(t) {
|
|
1189
1189
|
const e = t, a = M(() => e.size), n = M(() => e.isLoading ? "Loading" : e.iconName);
|
|
@@ -1212,25 +1212,25 @@ const m2 = ["type"], h2 = {
|
|
|
1212
1212
|
], 10, m2));
|
|
1213
1213
|
}
|
|
1214
1214
|
});
|
|
1215
|
-
function
|
|
1215
|
+
function C1(t) {
|
|
1216
1216
|
const e = ae(!1), a = ae(""), n = M(() => "value" in t.value ? "value" : "innerHTML"), s = () => {
|
|
1217
1217
|
e.value = !e.value;
|
|
1218
|
-
}, o = (
|
|
1219
|
-
e.value =
|
|
1220
|
-
}, i = (
|
|
1218
|
+
}, o = (u) => {
|
|
1219
|
+
e.value = u;
|
|
1220
|
+
}, i = (u) => async () => {
|
|
1221
1221
|
o(!1), await De(() => {
|
|
1222
|
-
t.value[n.value] = a.value,
|
|
1222
|
+
t.value[n.value] = a.value, u == null || u();
|
|
1223
1223
|
});
|
|
1224
|
-
}, r = (
|
|
1225
|
-
const
|
|
1224
|
+
}, r = (u) => async (c) => {
|
|
1225
|
+
const l = t.value[n.value];
|
|
1226
1226
|
o(!1), await De(() => {
|
|
1227
|
-
l
|
|
1227
|
+
u(l, c);
|
|
1228
1228
|
});
|
|
1229
1229
|
};
|
|
1230
|
-
return ce(e, async (
|
|
1230
|
+
return ce(e, async (u) => {
|
|
1231
1231
|
await De(() => {
|
|
1232
1232
|
setTimeout(() => {
|
|
1233
|
-
t.value &&
|
|
1233
|
+
t.value && u && (t.value.focus(), a.value = t.value[n.value]);
|
|
1234
1234
|
}, 1);
|
|
1235
1235
|
});
|
|
1236
1236
|
}), {
|
|
@@ -1253,14 +1253,14 @@ const _e = /* @__PURE__ */ J({
|
|
|
1253
1253
|
},
|
|
1254
1254
|
emits: ["update:title", "toggle-is-editing"],
|
|
1255
1255
|
setup(t, { emit: e }) {
|
|
1256
|
-
const a = t, n = ae(null), { isEditing: s, setIsEditing: o, onUpdate: i, onDiscard: r } =
|
|
1257
|
-
change:
|
|
1256
|
+
const a = t, n = ae(null), { isEditing: s, setIsEditing: o, onUpdate: i, onDiscard: r } = C1(n), u = M(() => s.value ? "input" : a.tag || `h${a.level}`), c = M(() => a.isEditable ? s.value ? {
|
|
1257
|
+
change: l,
|
|
1258
1258
|
click: (_) => _.stopPropagation(),
|
|
1259
1259
|
blur: f
|
|
1260
1260
|
} : {
|
|
1261
1261
|
click: $,
|
|
1262
1262
|
focus: $
|
|
1263
|
-
} : {}),
|
|
1263
|
+
} : {}), l = i((_, y) => {
|
|
1264
1264
|
const A = y.target.value;
|
|
1265
1265
|
e("update:title", A);
|
|
1266
1266
|
}), d = r(), f = async () => {
|
|
@@ -1275,7 +1275,7 @@ const _e = /* @__PURE__ */ J({
|
|
|
1275
1275
|
(_) => {
|
|
1276
1276
|
_ || d();
|
|
1277
1277
|
}
|
|
1278
|
-
), (_, y) => (v(), R(vt(
|
|
1278
|
+
), (_, y) => (v(), R(vt(u.value), Ve({
|
|
1279
1279
|
id: _.id,
|
|
1280
1280
|
ref_key: "target",
|
|
1281
1281
|
ref: n,
|
|
@@ -1285,16 +1285,16 @@ const _e = /* @__PURE__ */ J({
|
|
|
1285
1285
|
{
|
|
1286
1286
|
[`ao-title--${_.color}`]: !!_.color,
|
|
1287
1287
|
"ao-title--editable": _.isEditable,
|
|
1288
|
-
"ao-field__input ao-title--editing":
|
|
1289
|
-
"ao-title--readonly": !
|
|
1288
|
+
"ao-field__input ao-title--editing": X(s),
|
|
1289
|
+
"ao-title--readonly": !X(s)
|
|
1290
1290
|
}
|
|
1291
1291
|
],
|
|
1292
|
-
type:
|
|
1293
|
-
value:
|
|
1292
|
+
type: X(s) ? "text" : null,
|
|
1293
|
+
value: X(s) ? _.title : null,
|
|
1294
1294
|
tabindex: "0",
|
|
1295
1295
|
onKeyup: ut(C, ["enter"])
|
|
1296
1296
|
}, _s(c.value), {
|
|
1297
|
-
onKeydown: ut(
|
|
1297
|
+
onKeydown: ut(X(d), ["esc"])
|
|
1298
1298
|
}), {
|
|
1299
1299
|
default: q(() => [
|
|
1300
1300
|
Ra(K(_.title), 1)
|
|
@@ -1324,7 +1324,7 @@ const C2 = {
|
|
|
1324
1324
|
}, M2 = {
|
|
1325
1325
|
key: 3,
|
|
1326
1326
|
class: "ao-card-horiz__secondary"
|
|
1327
|
-
},
|
|
1327
|
+
}, g1 = /* @__PURE__ */ J({
|
|
1328
1328
|
__name: "AoCardHoriz",
|
|
1329
1329
|
props: {
|
|
1330
1330
|
id: {},
|
|
@@ -1413,7 +1413,7 @@ const yn = /* @__PURE__ */ J({
|
|
|
1413
1413
|
s.closable ? "ao-tag--closable" : "",
|
|
1414
1414
|
s.variant ? `ao-tag--${s.variant}` : ""
|
|
1415
1415
|
]),
|
|
1416
|
-
style:
|
|
1416
|
+
style: v1(s.rawColor ? { "--ao-tag-bg": s.rawColor } : {})
|
|
1417
1417
|
}, [
|
|
1418
1418
|
(v(), R(vt(a.value), Ve({ class: "ao-tag__label" }, n.value, {
|
|
1419
1419
|
onClick: o[0] || (o[0] = (i) => s.$emit("click", i))
|
|
@@ -1514,7 +1514,7 @@ function sa(t) {
|
|
|
1514
1514
|
var e = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
|
|
1515
1515
|
return e.setUTCFullYear(t.getFullYear()), t.getTime() - e.getTime();
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1517
|
+
function xn(t) {
|
|
1518
1518
|
ge(1, arguments);
|
|
1519
1519
|
var e = be(t);
|
|
1520
1520
|
return e.setHours(0, 0, 0, 0), e;
|
|
@@ -1522,7 +1522,7 @@ function zn(t) {
|
|
|
1522
1522
|
var L2 = 864e5;
|
|
1523
1523
|
function V2(t, e) {
|
|
1524
1524
|
ge(2, arguments);
|
|
1525
|
-
var a =
|
|
1525
|
+
var a = xn(t), n = xn(e), s = a.getTime() - sa(a), o = n.getTime() - sa(n);
|
|
1526
1526
|
return Math.round((s - o) / L2);
|
|
1527
1527
|
}
|
|
1528
1528
|
function D2(t, e) {
|
|
@@ -1530,11 +1530,11 @@ function D2(t, e) {
|
|
|
1530
1530
|
var a = be(t), n = be(e), s = a.getTime() - n.getTime();
|
|
1531
1531
|
return s < 0 ? -1 : s > 0 ? 1 : s;
|
|
1532
1532
|
}
|
|
1533
|
-
var
|
|
1533
|
+
var _1 = 6e4, y1 = 36e5;
|
|
1534
1534
|
function P2(t) {
|
|
1535
1535
|
return ge(1, arguments), t instanceof Date || Ea(t) === "object" && Object.prototype.toString.call(t) === "[object Date]";
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1537
|
+
function b1(t) {
|
|
1538
1538
|
if (ge(1, arguments), !P2(t) && typeof t != "number")
|
|
1539
1539
|
return !1;
|
|
1540
1540
|
var e = be(t);
|
|
@@ -1558,7 +1558,7 @@ function Ia(t) {
|
|
|
1558
1558
|
var e = 1, a = be(t), n = a.getUTCDay(), s = (n < e ? 7 : 0) + n - e;
|
|
1559
1559
|
return a.setUTCDate(a.getUTCDate() - s), a.setUTCHours(0, 0, 0, 0), a;
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1561
|
+
function w1(t) {
|
|
1562
1562
|
ge(1, arguments);
|
|
1563
1563
|
var e = be(t), a = e.getUTCFullYear(), n = /* @__PURE__ */ new Date(0);
|
|
1564
1564
|
n.setUTCFullYear(a + 1, 0, 4), n.setUTCHours(0, 0, 0, 0);
|
|
@@ -1569,7 +1569,7 @@ function b1(t) {
|
|
|
1569
1569
|
}
|
|
1570
1570
|
function R2(t) {
|
|
1571
1571
|
ge(1, arguments);
|
|
1572
|
-
var e =
|
|
1572
|
+
var e = w1(t), a = /* @__PURE__ */ new Date(0);
|
|
1573
1573
|
a.setUTCFullYear(e, 0, 4), a.setUTCHours(0, 0, 0, 0);
|
|
1574
1574
|
var n = Ia(a);
|
|
1575
1575
|
return n;
|
|
@@ -1581,18 +1581,18 @@ function j2(t) {
|
|
|
1581
1581
|
return Math.round(a / N2) + 1;
|
|
1582
1582
|
}
|
|
1583
1583
|
function La(t, e) {
|
|
1584
|
-
var a, n, s, o, i, r,
|
|
1584
|
+
var a, n, s, o, i, r, u, c;
|
|
1585
1585
|
ge(1, arguments);
|
|
1586
|
-
var
|
|
1586
|
+
var l = ca(), d = Ke((a = (n = (s = (o = e == null ? void 0 : e.weekStartsOn) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (r = i.options) === null || r === void 0 ? void 0 : r.weekStartsOn) !== null && s !== void 0 ? s : l.weekStartsOn) !== null && n !== void 0 ? n : (u = l.locale) === null || u === void 0 || (c = u.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && a !== void 0 ? a : 0);
|
|
1587
1587
|
if (!(d >= 0 && d <= 6))
|
|
1588
1588
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1589
1589
|
var f = be(t), C = f.getUTCDay(), $ = (C < d ? 7 : 0) + C - d;
|
|
1590
1590
|
return f.setUTCDate(f.getUTCDate() - $), f.setUTCHours(0, 0, 0, 0), f;
|
|
1591
1591
|
}
|
|
1592
|
-
function
|
|
1593
|
-
var a, n, s, o, i, r,
|
|
1592
|
+
function $1(t, e) {
|
|
1593
|
+
var a, n, s, o, i, r, u, c;
|
|
1594
1594
|
ge(1, arguments);
|
|
1595
|
-
var
|
|
1595
|
+
var l = be(t), d = l.getUTCFullYear(), f = ca(), C = Ke((a = (n = (s = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (r = i.options) === null || r === void 0 ? void 0 : r.firstWeekContainsDate) !== null && s !== void 0 ? s : f.firstWeekContainsDate) !== null && n !== void 0 ? n : (u = f.locale) === null || u === void 0 || (c = u.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && a !== void 0 ? a : 1);
|
|
1596
1596
|
if (!(C >= 1 && C <= 7))
|
|
1597
1597
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1598
1598
|
var $ = /* @__PURE__ */ new Date(0);
|
|
@@ -1600,12 +1600,12 @@ function w1(t, e) {
|
|
|
1600
1600
|
var _ = La($, e), y = /* @__PURE__ */ new Date(0);
|
|
1601
1601
|
y.setUTCFullYear(d, 0, C), y.setUTCHours(0, 0, 0, 0);
|
|
1602
1602
|
var m = La(y, e);
|
|
1603
|
-
return
|
|
1603
|
+
return l.getTime() >= _.getTime() ? d + 1 : l.getTime() >= m.getTime() ? d : d - 1;
|
|
1604
1604
|
}
|
|
1605
1605
|
function U2(t, e) {
|
|
1606
|
-
var a, n, s, o, i, r,
|
|
1606
|
+
var a, n, s, o, i, r, u, c;
|
|
1607
1607
|
ge(1, arguments);
|
|
1608
|
-
var
|
|
1608
|
+
var l = ca(), d = Ke((a = (n = (s = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (r = i.options) === null || r === void 0 ? void 0 : r.firstWeekContainsDate) !== null && s !== void 0 ? s : l.firstWeekContainsDate) !== null && n !== void 0 ? n : (u = l.locale) === null || u === void 0 || (c = u.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && a !== void 0 ? a : 1), f = $1(t, e), C = /* @__PURE__ */ new Date(0);
|
|
1609
1609
|
C.setUTCFullYear(f, 0, d), C.setUTCHours(0, 0, 0, 0);
|
|
1610
1610
|
var $ = La(C, e);
|
|
1611
1611
|
return $;
|
|
@@ -1718,7 +1718,7 @@ var It = {
|
|
|
1718
1718
|
},
|
|
1719
1719
|
// Local week-numbering year
|
|
1720
1720
|
Y: function(e, a, n, s) {
|
|
1721
|
-
var o =
|
|
1721
|
+
var o = $1(e, s), i = o > 0 ? o : 1 - o;
|
|
1722
1722
|
if (a === "YY") {
|
|
1723
1723
|
var r = i % 100;
|
|
1724
1724
|
return ue(r, 2);
|
|
@@ -1729,7 +1729,7 @@ var It = {
|
|
|
1729
1729
|
},
|
|
1730
1730
|
// ISO week-numbering year
|
|
1731
1731
|
R: function(e, a) {
|
|
1732
|
-
var n =
|
|
1732
|
+
var n = w1(e);
|
|
1733
1733
|
return ue(n, a.length);
|
|
1734
1734
|
},
|
|
1735
1735
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -2158,7 +2158,7 @@ var It = {
|
|
|
2158
2158
|
return "Z";
|
|
2159
2159
|
switch (a) {
|
|
2160
2160
|
case "X":
|
|
2161
|
-
return
|
|
2161
|
+
return Gn(i);
|
|
2162
2162
|
case "XXXX":
|
|
2163
2163
|
case "XX":
|
|
2164
2164
|
return yt(i);
|
|
@@ -2173,7 +2173,7 @@ var It = {
|
|
|
2173
2173
|
var o = s._originalDate || e, i = o.getTimezoneOffset();
|
|
2174
2174
|
switch (a) {
|
|
2175
2175
|
case "x":
|
|
2176
|
-
return
|
|
2176
|
+
return Gn(i);
|
|
2177
2177
|
case "xxxx":
|
|
2178
2178
|
case "xx":
|
|
2179
2179
|
return yt(i);
|
|
@@ -2190,7 +2190,7 @@ var It = {
|
|
|
2190
2190
|
case "O":
|
|
2191
2191
|
case "OO":
|
|
2192
2192
|
case "OOO":
|
|
2193
|
-
return "GMT" +
|
|
2193
|
+
return "GMT" + Yn(i, ":");
|
|
2194
2194
|
case "OOOO":
|
|
2195
2195
|
default:
|
|
2196
2196
|
return "GMT" + yt(i, ":");
|
|
@@ -2203,7 +2203,7 @@ var It = {
|
|
|
2203
2203
|
case "z":
|
|
2204
2204
|
case "zz":
|
|
2205
2205
|
case "zzz":
|
|
2206
|
-
return "GMT" +
|
|
2206
|
+
return "GMT" + Yn(i, ":");
|
|
2207
2207
|
case "zzzz":
|
|
2208
2208
|
default:
|
|
2209
2209
|
return "GMT" + yt(i, ":");
|
|
@@ -2220,14 +2220,14 @@ var It = {
|
|
|
2220
2220
|
return ue(i, a.length);
|
|
2221
2221
|
}
|
|
2222
2222
|
};
|
|
2223
|
-
function
|
|
2223
|
+
function Yn(t, e) {
|
|
2224
2224
|
var a = t > 0 ? "-" : "+", n = Math.abs(t), s = Math.floor(n / 60), o = n % 60;
|
|
2225
2225
|
if (o === 0)
|
|
2226
2226
|
return a + String(s);
|
|
2227
2227
|
var i = e || "";
|
|
2228
2228
|
return a + String(s) + i + ue(o, 2);
|
|
2229
2229
|
}
|
|
2230
|
-
function
|
|
2230
|
+
function Gn(t, e) {
|
|
2231
2231
|
if (t % 60 === 0) {
|
|
2232
2232
|
var a = t > 0 ? "-" : "+";
|
|
2233
2233
|
return a + ue(Math.abs(t) / 60, 2);
|
|
@@ -2239,7 +2239,7 @@ function yt(t, e) {
|
|
|
2239
2239
|
return n + o + a + i;
|
|
2240
2240
|
}
|
|
2241
2241
|
const z2 = W2;
|
|
2242
|
-
var
|
|
2242
|
+
var Kn = function(e, a) {
|
|
2243
2243
|
switch (e) {
|
|
2244
2244
|
case "P":
|
|
2245
2245
|
return a.date({
|
|
@@ -2259,7 +2259,7 @@ var Gn = function(e, a) {
|
|
|
2259
2259
|
width: "full"
|
|
2260
2260
|
});
|
|
2261
2261
|
}
|
|
2262
|
-
},
|
|
2262
|
+
}, k1 = function(e, a) {
|
|
2263
2263
|
switch (e) {
|
|
2264
2264
|
case "p":
|
|
2265
2265
|
return a.time({
|
|
@@ -2282,7 +2282,7 @@ var Gn = function(e, a) {
|
|
|
2282
2282
|
}, x2 = function(e, a) {
|
|
2283
2283
|
var n = e.match(/(P+)(p+)?/) || [], s = n[1], o = n[2];
|
|
2284
2284
|
if (!o)
|
|
2285
|
-
return
|
|
2285
|
+
return Kn(e, a);
|
|
2286
2286
|
var i;
|
|
2287
2287
|
switch (s) {
|
|
2288
2288
|
case "P":
|
|
@@ -2307,9 +2307,9 @@ var Gn = function(e, a) {
|
|
|
2307
2307
|
});
|
|
2308
2308
|
break;
|
|
2309
2309
|
}
|
|
2310
|
-
return i.replace("{{date}}",
|
|
2310
|
+
return i.replace("{{date}}", Kn(s, a)).replace("{{time}}", k1(o, a));
|
|
2311
2311
|
}, Y2 = {
|
|
2312
|
-
p:
|
|
2312
|
+
p: k1,
|
|
2313
2313
|
P: x2
|
|
2314
2314
|
};
|
|
2315
2315
|
const G2 = Y2;
|
|
@@ -2320,7 +2320,7 @@ function Q2(t) {
|
|
|
2320
2320
|
function J2(t) {
|
|
2321
2321
|
return X2.indexOf(t) !== -1;
|
|
2322
2322
|
}
|
|
2323
|
-
function
|
|
2323
|
+
function Xn(t, e, a) {
|
|
2324
2324
|
if (t === "YYYY")
|
|
2325
2325
|
throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e, "`) for formatting years to the input `").concat(a, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
2326
2326
|
if (t === "YY")
|
|
@@ -2451,8 +2451,8 @@ function Kt(t) {
|
|
|
2451
2451
|
var o = t.defaultFormattingWidth || t.defaultWidth, i = a != null && a.width ? String(a.width) : o;
|
|
2452
2452
|
s = t.formattingValues[i] || t.formattingValues[o];
|
|
2453
2453
|
} else {
|
|
2454
|
-
var r = t.defaultWidth,
|
|
2455
|
-
s = t.values[
|
|
2454
|
+
var r = t.defaultWidth, u = a != null && a.width ? String(a.width) : t.defaultWidth;
|
|
2455
|
+
s = t.values[u] || t.values[r];
|
|
2456
2456
|
}
|
|
2457
2457
|
var c = t.argumentCallback ? t.argumentCallback(e) : e;
|
|
2458
2458
|
return s[c];
|
|
@@ -2583,16 +2583,16 @@ function Xt(t) {
|
|
|
2583
2583
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = a.width, s = n && t.matchPatterns[n] || t.matchPatterns[t.defaultMatchWidth], o = e.match(s);
|
|
2584
2584
|
if (!o)
|
|
2585
2585
|
return null;
|
|
2586
|
-
var i = o[0], r = n && t.parsePatterns[n] || t.parsePatterns[t.defaultParseWidth],
|
|
2586
|
+
var i = o[0], r = n && t.parsePatterns[n] || t.parsePatterns[t.defaultParseWidth], u = Array.isArray(r) ? b0(r, function(d) {
|
|
2587
2587
|
return d.test(i);
|
|
2588
2588
|
}) : y0(r, function(d) {
|
|
2589
2589
|
return d.test(i);
|
|
2590
2590
|
}), c;
|
|
2591
|
-
c = t.valueCallback ? t.valueCallback(
|
|
2592
|
-
var
|
|
2591
|
+
c = t.valueCallback ? t.valueCallback(u) : u, c = a.valueCallback ? a.valueCallback(c) : c;
|
|
2592
|
+
var l = e.slice(i.length);
|
|
2593
2593
|
return {
|
|
2594
2594
|
value: c,
|
|
2595
|
-
rest:
|
|
2595
|
+
rest: l
|
|
2596
2596
|
};
|
|
2597
2597
|
};
|
|
2598
2598
|
}
|
|
@@ -2719,12 +2719,12 @@ var B0 = {
|
|
|
2719
2719
|
firstWeekContainsDate: 1
|
|
2720
2720
|
}
|
|
2721
2721
|
};
|
|
2722
|
-
const
|
|
2722
|
+
const M1 = B0;
|
|
2723
2723
|
var R0 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, N0 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, j0 = /^'([^]*?)'?$/, U0 = /''/g, Z0 = /[a-zA-Z]/;
|
|
2724
|
-
function
|
|
2725
|
-
var n, s, o, i, r,
|
|
2724
|
+
function A1(t, e, a) {
|
|
2725
|
+
var n, s, o, i, r, u, c, l, d, f, C, $, _, y, m, A, w, S;
|
|
2726
2726
|
ge(2, arguments);
|
|
2727
|
-
var D = String(e), L = ca(), Z = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : L.locale) !== null && n !== void 0 ? n :
|
|
2727
|
+
var D = String(e), L = ca(), Z = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : L.locale) !== null && n !== void 0 ? n : M1, U = Ke((o = (i = (r = (u = a == null ? void 0 : a.firstWeekContainsDate) !== null && u !== void 0 ? u : a == null || (c = a.locale) === null || c === void 0 || (l = c.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && r !== void 0 ? r : L.firstWeekContainsDate) !== null && i !== void 0 ? i : (d = L.locale) === null || d === void 0 || (f = d.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
2728
2728
|
if (!(U >= 1 && U <= 7))
|
|
2729
2729
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2730
2730
|
var W = Ke((C = ($ = (_ = (y = a == null ? void 0 : a.weekStartsOn) !== null && y !== void 0 ? y : a == null || (m = a.locale) === null || m === void 0 || (A = m.options) === null || A === void 0 ? void 0 : A.weekStartsOn) !== null && _ !== void 0 ? _ : L.weekStartsOn) !== null && $ !== void 0 ? $ : (w = L.locale) === null || w === void 0 || (S = w.options) === null || S === void 0 ? void 0 : S.weekStartsOn) !== null && C !== void 0 ? C : 0);
|
|
@@ -2735,7 +2735,7 @@ function M1(t, e, a) {
|
|
|
2735
2735
|
if (!Z.formatLong)
|
|
2736
2736
|
throw new RangeError("locale must contain formatLong property");
|
|
2737
2737
|
var O = be(t);
|
|
2738
|
-
if (!
|
|
2738
|
+
if (!b1(O))
|
|
2739
2739
|
throw new RangeError("Invalid time value");
|
|
2740
2740
|
var Y = sa(O), B = vn(O, Y), F = {
|
|
2741
2741
|
firstWeekContainsDate: U,
|
|
@@ -2743,23 +2743,23 @@ function M1(t, e, a) {
|
|
|
2743
2743
|
locale: Z,
|
|
2744
2744
|
_originalDate: O
|
|
2745
2745
|
}, E = D.match(N0).map(function(N) {
|
|
2746
|
-
var
|
|
2747
|
-
if (
|
|
2748
|
-
var k = G2[
|
|
2746
|
+
var Q = N[0];
|
|
2747
|
+
if (Q === "p" || Q === "P") {
|
|
2748
|
+
var k = G2[Q];
|
|
2749
2749
|
return k(N, Z.formatLong);
|
|
2750
2750
|
}
|
|
2751
2751
|
return N;
|
|
2752
2752
|
}).join("").match(R0).map(function(N) {
|
|
2753
2753
|
if (N === "''")
|
|
2754
2754
|
return "'";
|
|
2755
|
-
var
|
|
2756
|
-
if (
|
|
2755
|
+
var Q = N[0];
|
|
2756
|
+
if (Q === "'")
|
|
2757
2757
|
return F0(N);
|
|
2758
|
-
var k = z2[
|
|
2758
|
+
var k = z2[Q];
|
|
2759
2759
|
if (k)
|
|
2760
|
-
return !(a != null && a.useAdditionalWeekYearTokens) && J2(N) &&
|
|
2761
|
-
if (
|
|
2762
|
-
throw new RangeError("Format string contains an unescaped latin alphabet character `" +
|
|
2760
|
+
return !(a != null && a.useAdditionalWeekYearTokens) && J2(N) && Xn(N, e, String(t)), !(a != null && a.useAdditionalDayOfYearTokens) && Q2(N) && Xn(N, e, String(t)), k(B, N, Z.localize, F);
|
|
2761
|
+
if (Q.match(Z0))
|
|
2762
|
+
throw new RangeError("Format string contains an unescaped latin alphabet character `" + Q + "`");
|
|
2763
2763
|
return N;
|
|
2764
2764
|
}).join("");
|
|
2765
2765
|
return E;
|
|
@@ -2769,9 +2769,9 @@ function F0(t) {
|
|
|
2769
2769
|
return e ? e[1].replace(U0, "'") : t;
|
|
2770
2770
|
}
|
|
2771
2771
|
function q0(t, e, a) {
|
|
2772
|
-
var n, s, o, i, r,
|
|
2772
|
+
var n, s, o, i, r, u, c, l, d, f;
|
|
2773
2773
|
ge(2, arguments);
|
|
2774
|
-
var C = be(t), $ = be(e), _ = ca(), y = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : _.locale) !== null && n !== void 0 ? n :
|
|
2774
|
+
var C = be(t), $ = be(e), _ = ca(), y = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : _.locale) !== null && n !== void 0 ? n : M1, m = Ke((o = (i = (r = (u = a == null ? void 0 : a.weekStartsOn) !== null && u !== void 0 ? u : a == null || (c = a.locale) === null || c === void 0 || (l = c.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && r !== void 0 ? r : _.weekStartsOn) !== null && i !== void 0 ? i : (d = _.locale) === null || d === void 0 || (f = d.options) === null || f === void 0 ? void 0 : f.weekStartsOn) !== null && o !== void 0 ? o : 0);
|
|
2775
2775
|
if (!y.localize)
|
|
2776
2776
|
throw new RangeError("locale must contain localize property");
|
|
2777
2777
|
if (!y.formatLong)
|
|
@@ -2787,7 +2787,7 @@ function q0(t, e, a) {
|
|
|
2787
2787
|
locale: y,
|
|
2788
2788
|
weekStartsOn: m
|
|
2789
2789
|
});
|
|
2790
|
-
return
|
|
2790
|
+
return A1(C, L, {
|
|
2791
2791
|
locale: y,
|
|
2792
2792
|
weekStartsOn: m
|
|
2793
2793
|
});
|
|
@@ -2807,17 +2807,17 @@ function ia(t, e) {
|
|
|
2807
2807
|
}
|
|
2808
2808
|
if (!o || isNaN(o.getTime()))
|
|
2809
2809
|
return /* @__PURE__ */ new Date(NaN);
|
|
2810
|
-
var r = o.getTime(),
|
|
2811
|
-
if (s.time && (
|
|
2810
|
+
var r = o.getTime(), u = 0, c;
|
|
2811
|
+
if (s.time && (u = X0(s.time), isNaN(u)))
|
|
2812
2812
|
return /* @__PURE__ */ new Date(NaN);
|
|
2813
2813
|
if (s.timezone) {
|
|
2814
2814
|
if (c = Q0(s.timezone), isNaN(c))
|
|
2815
2815
|
return /* @__PURE__ */ new Date(NaN);
|
|
2816
2816
|
} else {
|
|
2817
|
-
var
|
|
2818
|
-
return d.setFullYear(
|
|
2817
|
+
var l = new Date(r + u), d = /* @__PURE__ */ new Date(0);
|
|
2818
|
+
return d.setFullYear(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate()), d.setHours(l.getUTCHours(), l.getUTCMinutes(), l.getUTCSeconds(), l.getUTCMilliseconds()), d;
|
|
2819
2819
|
}
|
|
2820
|
-
return new Date(r +
|
|
2820
|
+
return new Date(r + u + c);
|
|
2821
2821
|
}
|
|
2822
2822
|
var $a = {
|
|
2823
2823
|
dateTimeDelimiter: /[T ]/,
|
|
@@ -2853,9 +2853,9 @@ function K0(t, e) {
|
|
|
2853
2853
|
var a = t.match(W0);
|
|
2854
2854
|
if (!a)
|
|
2855
2855
|
return /* @__PURE__ */ new Date(NaN);
|
|
2856
|
-
var n = !!a[4], s = Qt(a[1]), o = Qt(a[2]) - 1, i = Qt(a[3]), r = Qt(a[4]),
|
|
2856
|
+
var n = !!a[4], s = Qt(a[1]), o = Qt(a[2]) - 1, i = Qt(a[3]), r = Qt(a[4]), u = Qt(a[5]) - 1;
|
|
2857
2857
|
if (n)
|
|
2858
|
-
return n3(e, r,
|
|
2858
|
+
return n3(e, r, u) ? J0(e, r, u) : /* @__PURE__ */ new Date(NaN);
|
|
2859
2859
|
var c = /* @__PURE__ */ new Date(0);
|
|
2860
2860
|
return !t3(e, o, i) || !a3(e, s) ? /* @__PURE__ */ new Date(NaN) : (c.setUTCFullYear(e, o, Math.max(s, i)), c);
|
|
2861
2861
|
}
|
|
@@ -2867,7 +2867,7 @@ function X0(t) {
|
|
|
2867
2867
|
if (!e)
|
|
2868
2868
|
return NaN;
|
|
2869
2869
|
var a = un(e[1]), n = un(e[2]), s = un(e[3]);
|
|
2870
|
-
return s3(a, n, s) ? a *
|
|
2870
|
+
return s3(a, n, s) ? a * y1 + n * _1 + s * 1e3 : NaN;
|
|
2871
2871
|
}
|
|
2872
2872
|
function un(t) {
|
|
2873
2873
|
return t && parseFloat(t.replace(",", ".")) || 0;
|
|
@@ -2879,7 +2879,7 @@ function Q0(t) {
|
|
|
2879
2879
|
if (!e)
|
|
2880
2880
|
return 0;
|
|
2881
2881
|
var a = e[1] === "+" ? -1 : 1, n = parseInt(e[2]), s = e[3] && parseInt(e[3]) || 0;
|
|
2882
|
-
return i3(n, s) ? a * (n *
|
|
2882
|
+
return i3(n, s) ? a * (n * y1 + s * _1) : NaN;
|
|
2883
2883
|
}
|
|
2884
2884
|
function J0(t, e, a) {
|
|
2885
2885
|
var n = /* @__PURE__ */ new Date(0);
|
|
@@ -2888,14 +2888,14 @@ function J0(t, e, a) {
|
|
|
2888
2888
|
return n.setUTCDate(n.getUTCDate() + o), n;
|
|
2889
2889
|
}
|
|
2890
2890
|
var e3 = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
2891
|
-
function
|
|
2891
|
+
function T1(t) {
|
|
2892
2892
|
return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
|
|
2893
2893
|
}
|
|
2894
2894
|
function t3(t, e, a) {
|
|
2895
|
-
return e >= 0 && e <= 11 && a >= 1 && a <= (e3[e] || (
|
|
2895
|
+
return e >= 0 && e <= 11 && a >= 1 && a <= (e3[e] || (T1(t) ? 29 : 28));
|
|
2896
2896
|
}
|
|
2897
2897
|
function a3(t, e) {
|
|
2898
|
-
return e >= 1 && e <= (
|
|
2898
|
+
return e >= 1 && e <= (T1(t) ? 366 : 365);
|
|
2899
2899
|
}
|
|
2900
2900
|
function n3(t, e, a) {
|
|
2901
2901
|
return e >= 1 && e <= 53 && a >= 0 && a <= 6;
|
|
@@ -2906,7 +2906,7 @@ function s3(t, e, a) {
|
|
|
2906
2906
|
function i3(t, e) {
|
|
2907
2907
|
return e >= 0 && e <= 59;
|
|
2908
2908
|
}
|
|
2909
|
-
var Le = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ie = {},
|
|
2909
|
+
var Le = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ie = {}, S1 = {}, Jt = {}, fa = {}, Wt = {}, Ua = {};
|
|
2910
2910
|
Object.defineProperty(Ua, "__esModule", { value: !0 });
|
|
2911
2911
|
Ua.lexoHelper = void 0;
|
|
2912
2912
|
Ua.lexoHelper = {
|
|
@@ -2981,11 +2981,11 @@ class ie {
|
|
|
2981
2981
|
const s = Math.max(a.length, n.length), o = new Array(s).fill(0);
|
|
2982
2982
|
let i = 0;
|
|
2983
2983
|
for (let r = 0; r < s; ++r) {
|
|
2984
|
-
const
|
|
2985
|
-
let
|
|
2986
|
-
for (i = 0;
|
|
2984
|
+
const u = r < a.length ? a[r] : 0, c = r < n.length ? n[r] : 0;
|
|
2985
|
+
let l = u + c + i;
|
|
2986
|
+
for (i = 0; l >= e.getBase(); l -= e.getBase())
|
|
2987
2987
|
++i;
|
|
2988
|
-
o[r] =
|
|
2988
|
+
o[r] = l;
|
|
2989
2989
|
}
|
|
2990
2990
|
return ie.extendWithCarry(o, i);
|
|
2991
2991
|
}
|
|
@@ -3253,12 +3253,12 @@ class Oe {
|
|
|
3253
3253
|
}
|
|
3254
3254
|
}
|
|
3255
3255
|
fa.LexoDecimal = Oe;
|
|
3256
|
-
var Ma = {},
|
|
3257
|
-
function
|
|
3258
|
-
if (
|
|
3256
|
+
var Ma = {}, Qn;
|
|
3257
|
+
function O1() {
|
|
3258
|
+
if (Qn)
|
|
3259
3259
|
return Ma;
|
|
3260
|
-
|
|
3261
|
-
const t = Wt, e =
|
|
3260
|
+
Qn = 1, Object.defineProperty(Ma, "__esModule", { value: !0 });
|
|
3261
|
+
const t = Wt, e = I1();
|
|
3262
3262
|
class a {
|
|
3263
3263
|
constructor(s) {
|
|
3264
3264
|
this.value = t.LexoInteger.parse(s, e.LexoRank.NUMERAL_SYSTEM);
|
|
@@ -3280,8 +3280,8 @@ function S1() {
|
|
|
3280
3280
|
}
|
|
3281
3281
|
static from(s) {
|
|
3282
3282
|
const o = t.LexoInteger.parse(s, e.LexoRank.NUMERAL_SYSTEM), i = a.VALUES, r = i.length;
|
|
3283
|
-
for (let
|
|
3284
|
-
const c = i[
|
|
3283
|
+
for (let u = 0; u < r; ++u) {
|
|
3284
|
+
const c = i[u];
|
|
3285
3285
|
if (c.value.equals(o))
|
|
3286
3286
|
return c;
|
|
3287
3287
|
}
|
|
@@ -3290,9 +3290,9 @@ function S1() {
|
|
|
3290
3290
|
static resolve(s) {
|
|
3291
3291
|
const o = a.VALUES, i = o.length;
|
|
3292
3292
|
for (let r = 0; r < i; ++r) {
|
|
3293
|
-
const
|
|
3294
|
-
if (
|
|
3295
|
-
return
|
|
3293
|
+
const u = o[r];
|
|
3294
|
+
if (u.equals(a.from(s.toString())))
|
|
3295
|
+
return u;
|
|
3296
3296
|
}
|
|
3297
3297
|
throw new Error("No bucket found with id " + s);
|
|
3298
3298
|
}
|
|
@@ -3311,8 +3311,8 @@ function S1() {
|
|
|
3311
3311
|
}
|
|
3312
3312
|
return Ma.default = a, Ma;
|
|
3313
3313
|
}
|
|
3314
|
-
var bn = {},
|
|
3315
|
-
Object.defineProperty(
|
|
3314
|
+
var bn = {}, E1 = {};
|
|
3315
|
+
Object.defineProperty(E1, "__esModule", { value: !0 });
|
|
3316
3316
|
var Za = {};
|
|
3317
3317
|
Object.defineProperty(Za, "__esModule", { value: !0 });
|
|
3318
3318
|
Za.LexoNumeralSystem10 = void 0;
|
|
@@ -3420,14 +3420,14 @@ qa.LexoNumeralSystem64 = f3;
|
|
|
3420
3420
|
for (var o in n)
|
|
3421
3421
|
o !== "default" && !Object.prototype.hasOwnProperty.call(s, o) && e(s, n, o);
|
|
3422
3422
|
};
|
|
3423
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), a(
|
|
3423
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), a(E1, t), a(Za, t), a(Fa, t), a(qa, t);
|
|
3424
3424
|
})(bn);
|
|
3425
|
-
var
|
|
3426
|
-
function
|
|
3427
|
-
if (
|
|
3425
|
+
var Jn;
|
|
3426
|
+
function I1() {
|
|
3427
|
+
if (Jn)
|
|
3428
3428
|
return Jt;
|
|
3429
|
-
|
|
3430
|
-
const t = fa, e =
|
|
3429
|
+
Jn = 1, Object.defineProperty(Jt, "__esModule", { value: !0 }), Jt.LexoRank = void 0;
|
|
3430
|
+
const t = fa, e = O1(), a = va, n = bn;
|
|
3431
3431
|
class s {
|
|
3432
3432
|
constructor(i, r) {
|
|
3433
3433
|
this.value = i.format() + "|" + s.formatDecimal(r), this.bucket = i, this.decimal = r;
|
|
@@ -3475,27 +3475,27 @@ function E1() {
|
|
|
3475
3475
|
static between(i, r) {
|
|
3476
3476
|
if (i.getSystem().getBase() !== r.getSystem().getBase())
|
|
3477
3477
|
throw new Error("Expected same system");
|
|
3478
|
-
let
|
|
3478
|
+
let u = i, c = r, l;
|
|
3479
3479
|
if (i.getScale() < r.getScale()) {
|
|
3480
|
-
if (
|
|
3480
|
+
if (l = r.setScale(i.getScale(), !1), i.compareTo(l) >= 0)
|
|
3481
3481
|
return s.mid(i, r);
|
|
3482
|
-
c =
|
|
3482
|
+
c = l;
|
|
3483
3483
|
}
|
|
3484
3484
|
if (i.getScale() > c.getScale()) {
|
|
3485
|
-
if (
|
|
3485
|
+
if (l = i.setScale(c.getScale(), !0), l.compareTo(c) >= 0)
|
|
3486
3486
|
return s.mid(i, r);
|
|
3487
|
-
|
|
3487
|
+
u = l;
|
|
3488
3488
|
}
|
|
3489
3489
|
let d;
|
|
3490
|
-
for (let $ =
|
|
3491
|
-
const _ = $ - 1, y =
|
|
3490
|
+
for (let $ = u.getScale(); $ > 0; c = d) {
|
|
3491
|
+
const _ = $ - 1, y = u.setScale(_, !0);
|
|
3492
3492
|
if (d = c.setScale(_, !1), y.compareTo(d) === 0)
|
|
3493
3493
|
return s.checkMid(i, r, y);
|
|
3494
3494
|
if (y.compareTo(d) > 0)
|
|
3495
3495
|
break;
|
|
3496
|
-
$ = _,
|
|
3496
|
+
$ = _, u = y;
|
|
3497
3497
|
}
|
|
3498
|
-
let f = s.middleInternal(i, r,
|
|
3498
|
+
let f = s.middleInternal(i, r, u, c), C;
|
|
3499
3499
|
for (let $ = f.getScale(); $ > 0; $ = C) {
|
|
3500
3500
|
C = $ - 1;
|
|
3501
3501
|
const _ = f.setScale(C);
|
|
@@ -3506,56 +3506,56 @@ function E1() {
|
|
|
3506
3506
|
return f;
|
|
3507
3507
|
}
|
|
3508
3508
|
static parse(i) {
|
|
3509
|
-
const r = i.split("|"),
|
|
3510
|
-
return new s(
|
|
3509
|
+
const r = i.split("|"), u = e.default.from(r[0]), c = t.LexoDecimal.parse(r[1], s.NUMERAL_SYSTEM);
|
|
3510
|
+
return new s(u, c);
|
|
3511
3511
|
}
|
|
3512
3512
|
static from(i, r) {
|
|
3513
3513
|
if (r.getSystem().getBase() !== s.NUMERAL_SYSTEM.getBase())
|
|
3514
3514
|
throw new Error("Expected different system");
|
|
3515
3515
|
return new s(i, r);
|
|
3516
3516
|
}
|
|
3517
|
-
static middleInternal(i, r,
|
|
3518
|
-
const
|
|
3519
|
-
return s.checkMid(i, r,
|
|
3517
|
+
static middleInternal(i, r, u, c) {
|
|
3518
|
+
const l = s.mid(u, c);
|
|
3519
|
+
return s.checkMid(i, r, l);
|
|
3520
3520
|
}
|
|
3521
|
-
static checkMid(i, r,
|
|
3522
|
-
return i.compareTo(
|
|
3521
|
+
static checkMid(i, r, u) {
|
|
3522
|
+
return i.compareTo(u) >= 0 || u.compareTo(r) >= 0 ? s.mid(i, r) : u;
|
|
3523
3523
|
}
|
|
3524
3524
|
static mid(i, r) {
|
|
3525
|
-
const c = i.add(r).multiply(t.LexoDecimal.half(i.getSystem())),
|
|
3526
|
-
if (c.getScale() >
|
|
3527
|
-
const d = c.setScale(
|
|
3525
|
+
const c = i.add(r).multiply(t.LexoDecimal.half(i.getSystem())), l = i.getScale() > r.getScale() ? i.getScale() : r.getScale();
|
|
3526
|
+
if (c.getScale() > l) {
|
|
3527
|
+
const d = c.setScale(l, !1);
|
|
3528
3528
|
if (d.compareTo(i) > 0)
|
|
3529
3529
|
return d;
|
|
3530
|
-
const f = c.setScale(
|
|
3530
|
+
const f = c.setScale(l, !0);
|
|
3531
3531
|
if (f.compareTo(r) < 0)
|
|
3532
3532
|
return f;
|
|
3533
3533
|
}
|
|
3534
3534
|
return c;
|
|
3535
3535
|
}
|
|
3536
3536
|
static formatDecimal(i) {
|
|
3537
|
-
const r = i.format(),
|
|
3537
|
+
const r = i.format(), u = new a.default(r);
|
|
3538
3538
|
let c = r.indexOf(s.NUMERAL_SYSTEM.getRadixPointChar());
|
|
3539
|
-
const
|
|
3540
|
-
for (c < 0 && (c = r.length,
|
|
3541
|
-
|
|
3542
|
-
for (;
|
|
3543
|
-
|
|
3544
|
-
return
|
|
3539
|
+
const l = s.NUMERAL_SYSTEM.toChar(0);
|
|
3540
|
+
for (c < 0 && (c = r.length, u.append(s.NUMERAL_SYSTEM.getRadixPointChar())); c < 6; )
|
|
3541
|
+
u.insert(0, l), ++c;
|
|
3542
|
+
for (; u[u.length - 1] === l; )
|
|
3543
|
+
u.length = u.length - 1;
|
|
3544
|
+
return u.toString();
|
|
3545
3545
|
}
|
|
3546
3546
|
genPrev() {
|
|
3547
3547
|
if (this.isMax())
|
|
3548
3548
|
return new s(this.bucket, s.INITIAL_MAX_DECIMAL);
|
|
3549
3549
|
const i = this.decimal.floor();
|
|
3550
|
-
let
|
|
3551
|
-
return
|
|
3550
|
+
let u = t.LexoDecimal.from(i).subtract(s.EIGHT_DECIMAL);
|
|
3551
|
+
return u.compareTo(s.MIN_DECIMAL) <= 0 && (u = s.between(s.MIN_DECIMAL, this.decimal)), new s(this.bucket, u);
|
|
3552
3552
|
}
|
|
3553
3553
|
genNext() {
|
|
3554
3554
|
if (this.isMin())
|
|
3555
3555
|
return new s(this.bucket, s.INITIAL_MIN_DECIMAL);
|
|
3556
3556
|
const i = this.decimal.ceil();
|
|
3557
|
-
let
|
|
3558
|
-
return
|
|
3557
|
+
let u = t.LexoDecimal.from(i).add(s.EIGHT_DECIMAL);
|
|
3558
|
+
return u.compareTo(s.MAX_DECIMAL) >= 0 && (u = s.between(this.decimal, s.MAX_DECIMAL)), new s(this.bucket, u);
|
|
3559
3559
|
}
|
|
3560
3560
|
between(i) {
|
|
3561
3561
|
if (!this.bucket.equals(i.bucket))
|
|
@@ -3613,8 +3613,8 @@ function E1() {
|
|
|
3613
3613
|
for (var o in n)
|
|
3614
3614
|
o !== "default" && !Object.prototype.hasOwnProperty.call(s, o) && e(s, n, o);
|
|
3615
3615
|
};
|
|
3616
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), a(
|
|
3617
|
-
})(
|
|
3616
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), a(I1(), t), a(O1(), t), a(fa, t), a(Wt, t);
|
|
3617
|
+
})(S1);
|
|
3618
3618
|
(function(t) {
|
|
3619
3619
|
var e = Le && Le.__createBinding || (Object.create ? function(n, s, o, i) {
|
|
3620
3620
|
i === void 0 && (i = o);
|
|
@@ -3628,9 +3628,9 @@ function E1() {
|
|
|
3628
3628
|
for (var o in n)
|
|
3629
3629
|
o !== "default" && !Object.prototype.hasOwnProperty.call(s, o) && e(s, n, o);
|
|
3630
3630
|
};
|
|
3631
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), a(
|
|
3631
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), a(S1, t), a(bn, t);
|
|
3632
3632
|
})(Ie);
|
|
3633
|
-
function
|
|
3633
|
+
function L1(t) {
|
|
3634
3634
|
return (t == null ? void 0 : t.reduce((e, a) => {
|
|
3635
3635
|
var n;
|
|
3636
3636
|
return e + (((n = a.activities) == null ? void 0 : n.length) ?? 0);
|
|
@@ -3645,7 +3645,7 @@ function v3(t) {
|
|
|
3645
3645
|
function p3(t) {
|
|
3646
3646
|
return (t == null ? void 0 : t.reduce((e, a) => {
|
|
3647
3647
|
var s;
|
|
3648
|
-
const n = (s = a.milestones) != null && s.length ?
|
|
3648
|
+
const n = (s = a.milestones) != null && s.length ? L1(a.milestones) : 0;
|
|
3649
3649
|
return e + n;
|
|
3650
3650
|
}, 0)) ?? 0;
|
|
3651
3651
|
}
|
|
@@ -3671,17 +3671,17 @@ function Bt(t, e) {
|
|
|
3671
3671
|
return Ie.LexoRank.parse(n.rank).between(Ie.LexoRank.parse(a.rank)).format();
|
|
3672
3672
|
}
|
|
3673
3673
|
}
|
|
3674
|
-
function
|
|
3674
|
+
function wn(t, e = "dd/MM/yyyy") {
|
|
3675
3675
|
if (!t)
|
|
3676
3676
|
return "";
|
|
3677
3677
|
const a = ia(t);
|
|
3678
|
-
return
|
|
3678
|
+
return b1(a) ? A1(a, e) : "";
|
|
3679
3679
|
}
|
|
3680
|
-
function
|
|
3680
|
+
function $n(t, e) {
|
|
3681
3681
|
return t.status.id === e.id;
|
|
3682
3682
|
}
|
|
3683
3683
|
function h3(t, e) {
|
|
3684
|
-
return t.activities.length === 0 ? !1 : !t.activities.some((a) =>
|
|
3684
|
+
return t.activities.length === 0 ? !1 : !t.activities.some((a) => !$n(a, e));
|
|
3685
3685
|
}
|
|
3686
3686
|
function C3(t, e) {
|
|
3687
3687
|
return {
|
|
@@ -3717,7 +3717,7 @@ const V1 = (t) => {
|
|
|
3717
3717
|
class: x(n.value),
|
|
3718
3718
|
title: i.userName
|
|
3719
3719
|
}, [
|
|
3720
|
-
i.avatarUrl ? T("", !0) : (v(), g("span", _3, K(
|
|
3720
|
+
i.avatarUrl ? T("", !0) : (v(), g("span", _3, K(X(s)), 1)),
|
|
3721
3721
|
i.avatarUrl ? (v(), g("img", {
|
|
3722
3722
|
key: 1,
|
|
3723
3723
|
className: "ao-avatar__image",
|
|
@@ -3759,7 +3759,7 @@ const b3 = { class: "ao-card-template__subitems" }, w3 = { class: "ao-card-templ
|
|
|
3759
3759
|
const a = (n) => {
|
|
3760
3760
|
e("updateTitle", n);
|
|
3761
3761
|
};
|
|
3762
|
-
return (n, s) => (v(), R(
|
|
3762
|
+
return (n, s) => (v(), R(g1, {
|
|
3763
3763
|
id: n.id,
|
|
3764
3764
|
title: n.title,
|
|
3765
3765
|
"is-draggable": !0,
|
|
@@ -3872,7 +3872,7 @@ const q3 = ["type"], W3 = {
|
|
|
3872
3872
|
color: { default: () => _n.BLACK },
|
|
3873
3873
|
size: { default: () => ja.MD },
|
|
3874
3874
|
isLoading: { type: Boolean, default: () => !1 },
|
|
3875
|
-
corners: { default: () =>
|
|
3875
|
+
corners: { default: () => h1.ROUNDED }
|
|
3876
3876
|
},
|
|
3877
3877
|
setup(t) {
|
|
3878
3878
|
const e = t, a = M(() => e.size), n = M(() => e.isLoading ? "Loading" : e.iconName);
|
|
@@ -3900,7 +3900,7 @@ const q3 = ["type"], W3 = {
|
|
|
3900
3900
|
const z3 = { class: "ao-card-template-item__footer" }, x3 = {
|
|
3901
3901
|
key: 0,
|
|
3902
3902
|
class: "ao-card-template-item__subitem"
|
|
3903
|
-
}, Y3 = { class: "ao-card-template-item__subitem-number" }, G3 = { class: "ao-card-template-item__secondary" },
|
|
3903
|
+
}, Y3 = { class: "ao-card-template-item__subitem-number" }, G3 = { class: "ao-card-template-item__secondary" }, kn = /* @__PURE__ */ J({
|
|
3904
3904
|
__name: "AoCardTemplateItem",
|
|
3905
3905
|
props: {
|
|
3906
3906
|
milestones: {},
|
|
@@ -3920,16 +3920,16 @@ const z3 = { class: "ao-card-template-item__footer" }, x3 = {
|
|
|
3920
3920
|
}, o = () => {
|
|
3921
3921
|
e("remove");
|
|
3922
3922
|
};
|
|
3923
|
-
return (i, r) => (v(), R(
|
|
3923
|
+
return (i, r) => (v(), R(g1, { "onUpdate:title": a }, {
|
|
3924
3924
|
footer: q(() => [
|
|
3925
3925
|
p("ul", z3, [
|
|
3926
|
-
(v(), g(Ce, null, ye(n, (
|
|
3927
|
-
i.$props[
|
|
3926
|
+
(v(), g(Ce, null, ye(n, (u) => (v(), g(Ce, { key: u }, [
|
|
3927
|
+
i.$props[u] ? (v(), g("li", x3, [
|
|
3928
3928
|
V(fe, {
|
|
3929
|
-
name: s[
|
|
3929
|
+
name: s[u],
|
|
3930
3930
|
size: "sm"
|
|
3931
3931
|
}, null, 8, ["name"]),
|
|
3932
|
-
p("span", Y3, K(i.$props[
|
|
3932
|
+
p("span", Y3, K(i.$props[u]), 1)
|
|
3933
3933
|
])) : T("", !0)
|
|
3934
3934
|
], 64))), 64))
|
|
3935
3935
|
])
|
|
@@ -3960,8 +3960,8 @@ const K3 = /* @__PURE__ */ J({
|
|
|
3960
3960
|
const e = t, a = M(() => {
|
|
3961
3961
|
var s;
|
|
3962
3962
|
return (s = e.milestones) == null ? void 0 : s.length;
|
|
3963
|
-
}), n = M(() => e.milestones ?
|
|
3964
|
-
return (s, o) => (v(), R(
|
|
3963
|
+
}), n = M(() => e.milestones ? L1(e.milestones) : 0);
|
|
3964
|
+
return (s, o) => (v(), R(kn, Ve({
|
|
3965
3965
|
id: s.id,
|
|
3966
3966
|
title: s.name,
|
|
3967
3967
|
activities: n.value,
|
|
@@ -3983,7 +3983,7 @@ const K3 = /* @__PURE__ */ J({
|
|
|
3983
3983
|
var n;
|
|
3984
3984
|
return ((n = e.activities) == null ? void 0 : n.length) || 0;
|
|
3985
3985
|
});
|
|
3986
|
-
return (n, s) => (v(), R(
|
|
3986
|
+
return (n, s) => (v(), R(kn, { activities: a.value }, {
|
|
3987
3987
|
default: q(() => [
|
|
3988
3988
|
te(n.$slots, "default")
|
|
3989
3989
|
]),
|
|
@@ -4007,14 +4007,14 @@ const K3 = /* @__PURE__ */ J({
|
|
|
4007
4007
|
e("updateMilestone", r);
|
|
4008
4008
|
}, i = (r) => {
|
|
4009
4009
|
if (r.moved) {
|
|
4010
|
-
const
|
|
4010
|
+
const u = pa(r, a.phase.milestones);
|
|
4011
4011
|
e("updateMilestone", {
|
|
4012
4012
|
id: r.moved.element.id,
|
|
4013
|
-
rank:
|
|
4013
|
+
rank: u
|
|
4014
4014
|
});
|
|
4015
4015
|
}
|
|
4016
4016
|
};
|
|
4017
|
-
return (r,
|
|
4017
|
+
return (r, u) => r.phase ? (v(), R(X(pt), {
|
|
4018
4018
|
key: 0,
|
|
4019
4019
|
"model-value": r.phase.milestones,
|
|
4020
4020
|
class: "ao-templates__list",
|
|
@@ -4038,8 +4038,8 @@ const K3 = /* @__PURE__ */ J({
|
|
|
4038
4038
|
activities: c.activities,
|
|
4039
4039
|
"is-active": r.milestoneId === c.id,
|
|
4040
4040
|
"is-draggable": !0,
|
|
4041
|
-
"onUpdate:title": (
|
|
4042
|
-
onClick: (
|
|
4041
|
+
"onUpdate:title": (l) => o({ id: c.id, name: l }),
|
|
4042
|
+
onClick: (l) => r.$router.push({
|
|
4043
4043
|
params: {
|
|
4044
4044
|
milestoneId: c.id
|
|
4045
4045
|
}
|
|
@@ -4070,7 +4070,7 @@ const K3 = /* @__PURE__ */ J({
|
|
|
4070
4070
|
var n;
|
|
4071
4071
|
return ((n = e.tasks) == null ? void 0 : n.length) || 0;
|
|
4072
4072
|
});
|
|
4073
|
-
return (n, s) => (v(), R(
|
|
4073
|
+
return (n, s) => (v(), R(kn, { tasks: a.value }, {
|
|
4074
4074
|
default: q(() => [
|
|
4075
4075
|
te(n.$slots, "default")
|
|
4076
4076
|
]),
|
|
@@ -4097,14 +4097,14 @@ const K3 = /* @__PURE__ */ J({
|
|
|
4097
4097
|
e("removeActivity", { id: r });
|
|
4098
4098
|
}, i = (r) => {
|
|
4099
4099
|
if (r.moved) {
|
|
4100
|
-
const
|
|
4100
|
+
const u = pa(r, a.milestone.activities);
|
|
4101
4101
|
e("updateActivity", {
|
|
4102
4102
|
id: r.moved.element.id,
|
|
4103
|
-
rank:
|
|
4103
|
+
rank: u
|
|
4104
4104
|
});
|
|
4105
4105
|
}
|
|
4106
4106
|
};
|
|
4107
|
-
return (r,
|
|
4107
|
+
return (r, u) => r.milestone ? (v(), R(X(pt), {
|
|
4108
4108
|
key: 0,
|
|
4109
4109
|
"model-value": r.milestone.activities,
|
|
4110
4110
|
title: r.$t("template.activities.title"),
|
|
@@ -4128,8 +4128,8 @@ const K3 = /* @__PURE__ */ J({
|
|
|
4128
4128
|
tasks: c.tasks,
|
|
4129
4129
|
"is-active": r.activityId === c.id,
|
|
4130
4130
|
"is-draggable": !0,
|
|
4131
|
-
"onUpdate:title": (
|
|
4132
|
-
onClick: (
|
|
4131
|
+
"onUpdate:title": (l) => s({ id: c.id, name: l }),
|
|
4132
|
+
onClick: (l) => r.$router.push({ params: { activityId: c.id } }),
|
|
4133
4133
|
onRemove: () => o(c.id)
|
|
4134
4134
|
}, null, 8, ["id", "title", "tasks", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
4135
4135
|
]),
|
|
@@ -4151,7 +4151,7 @@ const K3 = /* @__PURE__ */ J({
|
|
|
4151
4151
|
}, i5 = { class: "ao-modal__header-meta" }, o5 = { class: "ao-modal__title-group" }, r5 = { class: "ao-modal__body" }, l5 = {
|
|
4152
4152
|
key: 1,
|
|
4153
4153
|
class: "ao-modal__footer"
|
|
4154
|
-
},
|
|
4154
|
+
}, Mn = /* @__PURE__ */ J({
|
|
4155
4155
|
__name: "AoModal",
|
|
4156
4156
|
props: {
|
|
4157
4157
|
size: { default: "md" }
|
|
@@ -4201,7 +4201,7 @@ const oa = Math.min, Ee = Math.max, Va = Math.round, Aa = Math.floor, dt = (t) =
|
|
|
4201
4201
|
start: "end",
|
|
4202
4202
|
end: "start"
|
|
4203
4203
|
};
|
|
4204
|
-
function
|
|
4204
|
+
function An(t, e) {
|
|
4205
4205
|
return typeof t == "function" ? t(e) : t;
|
|
4206
4206
|
}
|
|
4207
4207
|
function Rt(t) {
|
|
@@ -4216,11 +4216,11 @@ function c5(t) {
|
|
|
4216
4216
|
function D1(t) {
|
|
4217
4217
|
return t === "y" ? "height" : "width";
|
|
4218
4218
|
}
|
|
4219
|
-
function
|
|
4219
|
+
function Tn(t) {
|
|
4220
4220
|
return ["top", "bottom"].includes(Rt(t)) ? "y" : "x";
|
|
4221
4221
|
}
|
|
4222
4222
|
function P1(t) {
|
|
4223
|
-
return c5(
|
|
4223
|
+
return c5(Tn(t));
|
|
4224
4224
|
}
|
|
4225
4225
|
function f5(t, e, a) {
|
|
4226
4226
|
a === void 0 && (a = !1);
|
|
@@ -4282,23 +4282,23 @@ function Pa(t) {
|
|
|
4282
4282
|
bottom: t.y + t.height
|
|
4283
4283
|
};
|
|
4284
4284
|
}
|
|
4285
|
-
function
|
|
4285
|
+
function e1(t, e, a) {
|
|
4286
4286
|
let {
|
|
4287
4287
|
reference: n,
|
|
4288
4288
|
floating: s
|
|
4289
4289
|
} = t;
|
|
4290
|
-
const o =
|
|
4290
|
+
const o = Tn(e), i = P1(e), r = D1(i), u = Rt(e), c = o === "y", l = n.x + n.width / 2 - s.width / 2, d = n.y + n.height / 2 - s.height / 2, f = n[r] / 2 - s[r] / 2;
|
|
4291
4291
|
let C;
|
|
4292
|
-
switch (
|
|
4292
|
+
switch (u) {
|
|
4293
4293
|
case "top":
|
|
4294
4294
|
C = {
|
|
4295
|
-
x:
|
|
4295
|
+
x: l,
|
|
4296
4296
|
y: n.y - s.height
|
|
4297
4297
|
};
|
|
4298
4298
|
break;
|
|
4299
4299
|
case "bottom":
|
|
4300
4300
|
C = {
|
|
4301
|
-
x:
|
|
4301
|
+
x: l,
|
|
4302
4302
|
y: n.y + n.height
|
|
4303
4303
|
};
|
|
4304
4304
|
break;
|
|
@@ -4336,15 +4336,15 @@ const g5 = async (t, e, a) => {
|
|
|
4336
4336
|
strategy: s = "absolute",
|
|
4337
4337
|
middleware: o = [],
|
|
4338
4338
|
platform: i
|
|
4339
|
-
} = a, r = o.filter(Boolean),
|
|
4339
|
+
} = a, r = o.filter(Boolean), u = await (i.isRTL == null ? void 0 : i.isRTL(e));
|
|
4340
4340
|
let c = await i.getElementRects({
|
|
4341
4341
|
reference: t,
|
|
4342
4342
|
floating: e,
|
|
4343
4343
|
strategy: s
|
|
4344
4344
|
}), {
|
|
4345
|
-
x:
|
|
4345
|
+
x: l,
|
|
4346
4346
|
y: d
|
|
4347
|
-
} =
|
|
4347
|
+
} = e1(c, n, u), f = n, C = {}, $ = 0;
|
|
4348
4348
|
for (let _ = 0; _ < r.length; _++) {
|
|
4349
4349
|
const {
|
|
4350
4350
|
name: y,
|
|
@@ -4355,7 +4355,7 @@ const g5 = async (t, e, a) => {
|
|
|
4355
4355
|
data: S,
|
|
4356
4356
|
reset: D
|
|
4357
4357
|
} = await m({
|
|
4358
|
-
x:
|
|
4358
|
+
x: l,
|
|
4359
4359
|
y: d,
|
|
4360
4360
|
initialPlacement: n,
|
|
4361
4361
|
placement: f,
|
|
@@ -4368,7 +4368,7 @@ const g5 = async (t, e, a) => {
|
|
|
4368
4368
|
floating: e
|
|
4369
4369
|
}
|
|
4370
4370
|
});
|
|
4371
|
-
if (
|
|
4371
|
+
if (l = A ?? l, d = w ?? d, C = {
|
|
4372
4372
|
...C,
|
|
4373
4373
|
[y]: {
|
|
4374
4374
|
...C[y],
|
|
@@ -4380,14 +4380,14 @@ const g5 = async (t, e, a) => {
|
|
|
4380
4380
|
floating: e,
|
|
4381
4381
|
strategy: s
|
|
4382
4382
|
}) : D.rects), {
|
|
4383
|
-
x:
|
|
4383
|
+
x: l,
|
|
4384
4384
|
y: d
|
|
4385
|
-
} =
|
|
4385
|
+
} = e1(c, f, u)), _ = -1;
|
|
4386
4386
|
continue;
|
|
4387
4387
|
}
|
|
4388
4388
|
}
|
|
4389
4389
|
return {
|
|
4390
|
-
x:
|
|
4390
|
+
x: l,
|
|
4391
4391
|
y: d,
|
|
4392
4392
|
placement: f,
|
|
4393
4393
|
strategy: s,
|
|
@@ -4403,18 +4403,18 @@ async function H1(t, e) {
|
|
|
4403
4403
|
platform: o,
|
|
4404
4404
|
rects: i,
|
|
4405
4405
|
elements: r,
|
|
4406
|
-
strategy:
|
|
4406
|
+
strategy: u
|
|
4407
4407
|
} = t, {
|
|
4408
4408
|
boundary: c = "clippingAncestors",
|
|
4409
|
-
rootBoundary:
|
|
4409
|
+
rootBoundary: l = "viewport",
|
|
4410
4410
|
elementContext: d = "floating",
|
|
4411
4411
|
altBoundary: f = !1,
|
|
4412
4412
|
padding: C = 0
|
|
4413
|
-
} =
|
|
4413
|
+
} = An(e, t), $ = C5(C), y = r[f ? d === "floating" ? "reference" : "floating" : d], m = Pa(await o.getClippingRect({
|
|
4414
4414
|
element: (a = await (o.isElement == null ? void 0 : o.isElement(y))) == null || a ? y : y.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(r.floating)),
|
|
4415
4415
|
boundary: c,
|
|
4416
|
-
rootBoundary:
|
|
4417
|
-
strategy:
|
|
4416
|
+
rootBoundary: l,
|
|
4417
|
+
strategy: u
|
|
4418
4418
|
})), A = d === "floating" ? {
|
|
4419
4419
|
...i.floating,
|
|
4420
4420
|
x: n,
|
|
@@ -4428,7 +4428,7 @@ async function H1(t, e) {
|
|
|
4428
4428
|
}, D = Pa(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4429
4429
|
rect: A,
|
|
4430
4430
|
offsetParent: w,
|
|
4431
|
-
strategy:
|
|
4431
|
+
strategy: u
|
|
4432
4432
|
}) : A);
|
|
4433
4433
|
return {
|
|
4434
4434
|
top: (m.top - D.top + $.top) / S.y,
|
|
@@ -4448,24 +4448,24 @@ const _5 = function(t) {
|
|
|
4448
4448
|
middlewareData: o,
|
|
4449
4449
|
rects: i,
|
|
4450
4450
|
initialPlacement: r,
|
|
4451
|
-
platform:
|
|
4451
|
+
platform: u,
|
|
4452
4452
|
elements: c
|
|
4453
4453
|
} = e, {
|
|
4454
|
-
mainAxis:
|
|
4454
|
+
mainAxis: l = !0,
|
|
4455
4455
|
crossAxis: d = !0,
|
|
4456
4456
|
fallbackPlacements: f,
|
|
4457
4457
|
fallbackStrategy: C = "bestFit",
|
|
4458
4458
|
fallbackAxisSideDirection: $ = "none",
|
|
4459
4459
|
flipAlignment: _ = !0,
|
|
4460
4460
|
...y
|
|
4461
|
-
} =
|
|
4461
|
+
} = An(t, e);
|
|
4462
4462
|
if ((a = o.arrow) != null && a.alignmentOffset)
|
|
4463
4463
|
return {};
|
|
4464
|
-
const m = Rt(s), A = Rt(r) === r, w = await (
|
|
4464
|
+
const m = Rt(s), A = Rt(r) === r, w = await (u.isRTL == null ? void 0 : u.isRTL(c.floating)), S = f || (A || !_ ? [Da(r)] : v5(r));
|
|
4465
4465
|
!f && $ !== "none" && S.push(...m5(r, _, $, w));
|
|
4466
4466
|
const D = [r, ...S], L = await H1(e, y), Z = [];
|
|
4467
4467
|
let U = ((n = o.flip) == null ? void 0 : n.overflows) || [];
|
|
4468
|
-
if (
|
|
4468
|
+
if (l && Z.push(L[m]), d) {
|
|
4469
4469
|
const B = f5(s, i, w);
|
|
4470
4470
|
Z.push(L[B[0]], L[B[1]]);
|
|
4471
4471
|
}
|
|
@@ -4485,12 +4485,12 @@ const _5 = function(t) {
|
|
|
4485
4485
|
placement: F
|
|
4486
4486
|
}
|
|
4487
4487
|
};
|
|
4488
|
-
let E = (O = U.filter((N) => N.overflows[0] <= 0).sort((N,
|
|
4488
|
+
let E = (O = U.filter((N) => N.overflows[0] <= 0).sort((N, Q) => N.overflows[1] - Q.overflows[1])[0]) == null ? void 0 : O.placement;
|
|
4489
4489
|
if (!E)
|
|
4490
4490
|
switch (C) {
|
|
4491
4491
|
case "bestFit": {
|
|
4492
4492
|
var Y;
|
|
4493
|
-
const N = (Y = U.map((
|
|
4493
|
+
const N = (Y = U.map((Q) => [Q.placement, Q.overflows.filter((k) => k > 0).reduce((k, h) => k + h, 0)]).sort((Q, k) => Q[1] - k[1])[0]) == null ? void 0 : Y[0];
|
|
4494
4494
|
N && (E = N);
|
|
4495
4495
|
break;
|
|
4496
4496
|
}
|
|
@@ -4522,24 +4522,24 @@ const _5 = function(t) {
|
|
|
4522
4522
|
apply: i = () => {
|
|
4523
4523
|
},
|
|
4524
4524
|
...r
|
|
4525
|
-
} =
|
|
4525
|
+
} = An(t, e), u = await H1(e, r), c = Rt(a), l = za(a), d = Tn(a) === "y", {
|
|
4526
4526
|
width: f,
|
|
4527
4527
|
height: C
|
|
4528
4528
|
} = n.floating;
|
|
4529
4529
|
let $, _;
|
|
4530
|
-
c === "top" || c === "bottom" ? ($ = c, _ =
|
|
4531
|
-
const y = C -
|
|
4530
|
+
c === "top" || c === "bottom" ? ($ = c, _ = l === (await (s.isRTL == null ? void 0 : s.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (_ = c, $ = l === "end" ? "top" : "bottom");
|
|
4531
|
+
const y = C - u[$], m = f - u[_], A = !e.middlewareData.shift;
|
|
4532
4532
|
let w = y, S = m;
|
|
4533
4533
|
if (d) {
|
|
4534
|
-
const L = f -
|
|
4535
|
-
S =
|
|
4534
|
+
const L = f - u.left - u.right;
|
|
4535
|
+
S = l || A ? oa(m, L) : L;
|
|
4536
4536
|
} else {
|
|
4537
|
-
const L = C -
|
|
4538
|
-
w =
|
|
4537
|
+
const L = C - u.top - u.bottom;
|
|
4538
|
+
w = l || A ? oa(y, L) : L;
|
|
4539
4539
|
}
|
|
4540
|
-
if (A && !
|
|
4541
|
-
const L = Ee(
|
|
4542
|
-
d ? S = f - 2 * (L !== 0 || Z !== 0 ? L + Z : Ee(
|
|
4540
|
+
if (A && !l) {
|
|
4541
|
+
const L = Ee(u.left, 0), Z = Ee(u.right, 0), U = Ee(u.top, 0), W = Ee(u.bottom, 0);
|
|
4542
|
+
d ? S = f - 2 * (L !== 0 || Z !== 0 ? L + Z : Ee(u.left, u.right)) : w = C - 2 * (U !== 0 || W !== 0 ? U + W : Ee(u.top, u.bottom));
|
|
4543
4543
|
}
|
|
4544
4544
|
await i({
|
|
4545
4545
|
...e,
|
|
@@ -4575,7 +4575,7 @@ function Qe(t) {
|
|
|
4575
4575
|
function Ze(t) {
|
|
4576
4576
|
return t instanceof HTMLElement || t instanceof ke(t).HTMLElement;
|
|
4577
4577
|
}
|
|
4578
|
-
function
|
|
4578
|
+
function t1(t) {
|
|
4579
4579
|
return typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof ke(t).ShadowRoot;
|
|
4580
4580
|
}
|
|
4581
4581
|
function ma(t) {
|
|
@@ -4590,20 +4590,20 @@ function ma(t) {
|
|
|
4590
4590
|
function b5(t) {
|
|
4591
4591
|
return ["table", "td", "th"].includes(ct(t));
|
|
4592
4592
|
}
|
|
4593
|
-
function
|
|
4594
|
-
const e =
|
|
4593
|
+
function Sn(t) {
|
|
4594
|
+
const e = On(), a = He(t);
|
|
4595
4595
|
return a.transform !== "none" || a.perspective !== "none" || (a.containerType ? a.containerType !== "normal" : !1) || !e && (a.backdropFilter ? a.backdropFilter !== "none" : !1) || !e && (a.filter ? a.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((n) => (a.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (a.contain || "").includes(n));
|
|
4596
4596
|
}
|
|
4597
4597
|
function w5(t) {
|
|
4598
4598
|
let e = Nt(t);
|
|
4599
4599
|
for (; Ze(e) && !xa(e); ) {
|
|
4600
|
-
if (
|
|
4600
|
+
if (Sn(e))
|
|
4601
4601
|
return e;
|
|
4602
4602
|
e = Nt(e);
|
|
4603
4603
|
}
|
|
4604
4604
|
return null;
|
|
4605
4605
|
}
|
|
4606
|
-
function
|
|
4606
|
+
function On() {
|
|
4607
4607
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
4608
4608
|
}
|
|
4609
4609
|
function xa(t) {
|
|
@@ -4628,10 +4628,10 @@ function Nt(t) {
|
|
|
4628
4628
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
4629
4629
|
t.assignedSlot || // DOM Element detected.
|
|
4630
4630
|
t.parentNode || // ShadowRoot detected.
|
|
4631
|
-
|
|
4631
|
+
t1(t) && t.host || // Fallback.
|
|
4632
4632
|
et(t)
|
|
4633
4633
|
);
|
|
4634
|
-
return
|
|
4634
|
+
return t1(e) ? e.host : e;
|
|
4635
4635
|
}
|
|
4636
4636
|
function R1(t) {
|
|
4637
4637
|
const e = Nt(t);
|
|
@@ -4653,11 +4653,11 @@ function N1(t) {
|
|
|
4653
4653
|
$: r
|
|
4654
4654
|
};
|
|
4655
4655
|
}
|
|
4656
|
-
function
|
|
4656
|
+
function En(t) {
|
|
4657
4657
|
return Qe(t) ? t : t.contextElement;
|
|
4658
4658
|
}
|
|
4659
4659
|
function Dt(t) {
|
|
4660
|
-
const e =
|
|
4660
|
+
const e = En(t);
|
|
4661
4661
|
if (!Ze(e))
|
|
4662
4662
|
return dt(1);
|
|
4663
4663
|
const a = e.getBoundingClientRect(), {
|
|
@@ -4674,7 +4674,7 @@ function Dt(t) {
|
|
|
4674
4674
|
const $5 = /* @__PURE__ */ dt(0);
|
|
4675
4675
|
function j1(t) {
|
|
4676
4676
|
const e = ke(t);
|
|
4677
|
-
return !
|
|
4677
|
+
return !On() || !e.visualViewport ? $5 : {
|
|
4678
4678
|
x: e.visualViewport.offsetLeft,
|
|
4679
4679
|
y: e.visualViewport.offsetTop
|
|
4680
4680
|
};
|
|
@@ -4684,23 +4684,23 @@ function k5(t, e, a) {
|
|
|
4684
4684
|
}
|
|
4685
4685
|
function $t(t, e, a, n) {
|
|
4686
4686
|
e === void 0 && (e = !1), a === void 0 && (a = !1);
|
|
4687
|
-
const s = t.getBoundingClientRect(), o =
|
|
4687
|
+
const s = t.getBoundingClientRect(), o = En(t);
|
|
4688
4688
|
let i = dt(1);
|
|
4689
4689
|
e && (n ? Qe(n) && (i = Dt(n)) : i = Dt(t));
|
|
4690
4690
|
const r = k5(o, a, n) ? j1(o) : dt(0);
|
|
4691
|
-
let
|
|
4691
|
+
let u = (s.left + r.x) / i.x, c = (s.top + r.y) / i.y, l = s.width / i.x, d = s.height / i.y;
|
|
4692
4692
|
if (o) {
|
|
4693
4693
|
const f = ke(o), C = n && Qe(n) ? ke(n) : n;
|
|
4694
4694
|
let $ = f.frameElement;
|
|
4695
4695
|
for (; $ && n && C !== f; ) {
|
|
4696
4696
|
const _ = Dt($), y = $.getBoundingClientRect(), m = He($), A = y.left + ($.clientLeft + parseFloat(m.paddingLeft)) * _.x, w = y.top + ($.clientTop + parseFloat(m.paddingTop)) * _.y;
|
|
4697
|
-
|
|
4697
|
+
u *= _.x, c *= _.y, l *= _.x, d *= _.y, u += A, c += w, $ = ke($).frameElement;
|
|
4698
4698
|
}
|
|
4699
4699
|
}
|
|
4700
4700
|
return Pa({
|
|
4701
|
-
width:
|
|
4701
|
+
width: l,
|
|
4702
4702
|
height: d,
|
|
4703
|
-
x:
|
|
4703
|
+
x: u,
|
|
4704
4704
|
y: c
|
|
4705
4705
|
});
|
|
4706
4706
|
}
|
|
@@ -4717,16 +4717,16 @@ function M5(t) {
|
|
|
4717
4717
|
scrollLeft: 0,
|
|
4718
4718
|
scrollTop: 0
|
|
4719
4719
|
}, r = dt(1);
|
|
4720
|
-
const
|
|
4720
|
+
const u = dt(0);
|
|
4721
4721
|
if ((s || !s && n !== "fixed") && ((ct(a) !== "body" || ma(o)) && (i = Ya(a)), Ze(a))) {
|
|
4722
4722
|
const c = $t(a);
|
|
4723
|
-
r = Dt(a),
|
|
4723
|
+
r = Dt(a), u.x = c.x + a.clientLeft, u.y = c.y + a.clientTop;
|
|
4724
4724
|
}
|
|
4725
4725
|
return {
|
|
4726
4726
|
width: e.width * r.x,
|
|
4727
4727
|
height: e.height * r.y,
|
|
4728
|
-
x: e.x * r.x - i.scrollLeft * r.x +
|
|
4729
|
-
y: e.y * r.y - i.scrollTop * r.y +
|
|
4728
|
+
x: e.x * r.x - i.scrollLeft * r.x + u.x,
|
|
4729
|
+
y: e.y * r.y - i.scrollTop * r.y + u.y
|
|
4730
4730
|
};
|
|
4731
4731
|
}
|
|
4732
4732
|
function A5(t) {
|
|
@@ -4748,29 +4748,29 @@ function T5(t) {
|
|
|
4748
4748
|
}
|
|
4749
4749
|
function S5(t, e) {
|
|
4750
4750
|
const a = ke(t), n = et(t), s = a.visualViewport;
|
|
4751
|
-
let o = n.clientWidth, i = n.clientHeight, r = 0,
|
|
4751
|
+
let o = n.clientWidth, i = n.clientHeight, r = 0, u = 0;
|
|
4752
4752
|
if (s) {
|
|
4753
4753
|
o = s.width, i = s.height;
|
|
4754
|
-
const c =
|
|
4755
|
-
(!c || c && e === "fixed") && (r = s.offsetLeft,
|
|
4754
|
+
const c = On();
|
|
4755
|
+
(!c || c && e === "fixed") && (r = s.offsetLeft, u = s.offsetTop);
|
|
4756
4756
|
}
|
|
4757
4757
|
return {
|
|
4758
4758
|
width: o,
|
|
4759
4759
|
height: i,
|
|
4760
4760
|
x: r,
|
|
4761
|
-
y:
|
|
4761
|
+
y: u
|
|
4762
4762
|
};
|
|
4763
4763
|
}
|
|
4764
4764
|
function O5(t, e) {
|
|
4765
|
-
const a = $t(t, !0, e === "fixed"), n = a.top + t.clientTop, s = a.left + t.clientLeft, o = Ze(t) ? Dt(t) : dt(1), i = t.clientWidth * o.x, r = t.clientHeight * o.y,
|
|
4765
|
+
const a = $t(t, !0, e === "fixed"), n = a.top + t.clientTop, s = a.left + t.clientLeft, o = Ze(t) ? Dt(t) : dt(1), i = t.clientWidth * o.x, r = t.clientHeight * o.y, u = s * o.x, c = n * o.y;
|
|
4766
4766
|
return {
|
|
4767
4767
|
width: i,
|
|
4768
4768
|
height: r,
|
|
4769
|
-
x:
|
|
4769
|
+
x: u,
|
|
4770
4770
|
y: c
|
|
4771
4771
|
};
|
|
4772
4772
|
}
|
|
4773
|
-
function
|
|
4773
|
+
function a1(t, e, a) {
|
|
4774
4774
|
let n;
|
|
4775
4775
|
if (e === "viewport")
|
|
4776
4776
|
n = S5(t, a);
|
|
@@ -4800,8 +4800,8 @@ function E5(t, e) {
|
|
|
4800
4800
|
const o = He(t).position === "fixed";
|
|
4801
4801
|
let i = o ? Nt(t) : t;
|
|
4802
4802
|
for (; Qe(i) && !xa(i); ) {
|
|
4803
|
-
const r = He(i),
|
|
4804
|
-
!
|
|
4803
|
+
const r = He(i), u = Sn(i);
|
|
4804
|
+
!u && r.position === "fixed" && (s = null), (o ? !u && !s : !u && r.position === "static" && !!s && ["absolute", "fixed"].includes(s.position) || ma(i) && !u && Z1(t, i)) ? n = n.filter((l) => l !== i) : s = r, i = Nt(i);
|
|
4805
4805
|
}
|
|
4806
4806
|
return e.set(t, n), n;
|
|
4807
4807
|
}
|
|
@@ -4812,15 +4812,15 @@ function I5(t) {
|
|
|
4812
4812
|
rootBoundary: n,
|
|
4813
4813
|
strategy: s
|
|
4814
4814
|
} = t;
|
|
4815
|
-
const i = [...a === "clippingAncestors" ? E5(e, this._c) : [].concat(a), n], r = i[0],
|
|
4816
|
-
const d =
|
|
4815
|
+
const i = [...a === "clippingAncestors" ? E5(e, this._c) : [].concat(a), n], r = i[0], u = i.reduce((c, l) => {
|
|
4816
|
+
const d = a1(e, l, s);
|
|
4817
4817
|
return c.top = Ee(d.top, c.top), c.right = oa(d.right, c.right), c.bottom = oa(d.bottom, c.bottom), c.left = Ee(d.left, c.left), c;
|
|
4818
|
-
},
|
|
4818
|
+
}, a1(e, r, s));
|
|
4819
4819
|
return {
|
|
4820
|
-
width:
|
|
4821
|
-
height:
|
|
4822
|
-
x:
|
|
4823
|
-
y:
|
|
4820
|
+
width: u.right - u.left,
|
|
4821
|
+
height: u.bottom - u.top,
|
|
4822
|
+
x: u.left,
|
|
4823
|
+
y: u.top
|
|
4824
4824
|
};
|
|
4825
4825
|
}
|
|
4826
4826
|
function L5(t) {
|
|
@@ -4832,31 +4832,31 @@ function V5(t, e, a) {
|
|
|
4832
4832
|
scrollLeft: 0,
|
|
4833
4833
|
scrollTop: 0
|
|
4834
4834
|
};
|
|
4835
|
-
const
|
|
4835
|
+
const u = dt(0);
|
|
4836
4836
|
if (n || !n && !o)
|
|
4837
4837
|
if ((ct(e) !== "body" || ma(s)) && (r = Ya(e)), n) {
|
|
4838
4838
|
const c = $t(e, !0, o, e);
|
|
4839
|
-
|
|
4839
|
+
u.x = c.x + e.clientLeft, u.y = c.y + e.clientTop;
|
|
4840
4840
|
} else
|
|
4841
|
-
s && (
|
|
4841
|
+
s && (u.x = U1(s));
|
|
4842
4842
|
return {
|
|
4843
|
-
x: i.left + r.scrollLeft -
|
|
4844
|
-
y: i.top + r.scrollTop -
|
|
4843
|
+
x: i.left + r.scrollLeft - u.x,
|
|
4844
|
+
y: i.top + r.scrollTop - u.y,
|
|
4845
4845
|
width: i.width,
|
|
4846
4846
|
height: i.height
|
|
4847
4847
|
};
|
|
4848
4848
|
}
|
|
4849
|
-
function
|
|
4849
|
+
function n1(t, e) {
|
|
4850
4850
|
return !Ze(t) || He(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
|
|
4851
4851
|
}
|
|
4852
4852
|
function F1(t, e) {
|
|
4853
4853
|
const a = ke(t);
|
|
4854
4854
|
if (!Ze(t))
|
|
4855
4855
|
return a;
|
|
4856
|
-
let n =
|
|
4856
|
+
let n = n1(t, e);
|
|
4857
4857
|
for (; n && b5(n) && He(n).position === "static"; )
|
|
4858
|
-
n =
|
|
4859
|
-
return n && (ct(n) === "html" || ct(n) === "body" && He(n).position === "static" && !
|
|
4858
|
+
n = n1(n, e);
|
|
4859
|
+
return n && (ct(n) === "html" || ct(n) === "body" && He(n).position === "static" && !Sn(n)) ? a : n || w5(t) || a;
|
|
4860
4860
|
}
|
|
4861
4861
|
const D5 = async function(t) {
|
|
4862
4862
|
let {
|
|
@@ -4895,24 +4895,24 @@ function B5(t, e) {
|
|
|
4895
4895
|
function o() {
|
|
4896
4896
|
clearTimeout(n), a && a.disconnect(), a = null;
|
|
4897
4897
|
}
|
|
4898
|
-
function i(r,
|
|
4899
|
-
r === void 0 && (r = !1),
|
|
4898
|
+
function i(r, u) {
|
|
4899
|
+
r === void 0 && (r = !1), u === void 0 && (u = 1), o();
|
|
4900
4900
|
const {
|
|
4901
4901
|
left: c,
|
|
4902
|
-
top:
|
|
4902
|
+
top: l,
|
|
4903
4903
|
width: d,
|
|
4904
4904
|
height: f
|
|
4905
4905
|
} = t.getBoundingClientRect();
|
|
4906
4906
|
if (r || e(), !d || !f)
|
|
4907
4907
|
return;
|
|
4908
|
-
const C = Aa(
|
|
4908
|
+
const C = Aa(l), $ = Aa(s.clientWidth - (c + d)), _ = Aa(s.clientHeight - (l + f)), y = Aa(c), A = {
|
|
4909
4909
|
rootMargin: -C + "px " + -$ + "px " + -_ + "px " + -y + "px",
|
|
4910
|
-
threshold: Ee(0, oa(1,
|
|
4910
|
+
threshold: Ee(0, oa(1, u)) || 1
|
|
4911
4911
|
};
|
|
4912
4912
|
let w = !0;
|
|
4913
4913
|
function S(D) {
|
|
4914
4914
|
const L = D[0].intersectionRatio;
|
|
4915
|
-
if (L !==
|
|
4915
|
+
if (L !== u) {
|
|
4916
4916
|
if (!w)
|
|
4917
4917
|
return i();
|
|
4918
4918
|
L ? i(!1, L) : n = setTimeout(() => {
|
|
@@ -4941,9 +4941,9 @@ function R5(t, e, a, n) {
|
|
|
4941
4941
|
ancestorResize: o = !0,
|
|
4942
4942
|
elementResize: i = typeof ResizeObserver == "function",
|
|
4943
4943
|
layoutShift: r = typeof IntersectionObserver == "function",
|
|
4944
|
-
animationFrame:
|
|
4945
|
-
} = n, c =
|
|
4946
|
-
|
|
4944
|
+
animationFrame: u = !1
|
|
4945
|
+
} = n, c = En(t), l = s || o ? [...c ? ra(c) : [], ...ra(e)] : [];
|
|
4946
|
+
l.forEach((m) => {
|
|
4947
4947
|
s && m.addEventListener("scroll", a, {
|
|
4948
4948
|
passive: !0
|
|
4949
4949
|
}), o && m.addEventListener("resize", a);
|
|
@@ -4955,17 +4955,17 @@ function R5(t, e, a, n) {
|
|
|
4955
4955
|
A && A.target === c && C && (C.unobserve(e), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
4956
4956
|
C && C.observe(e);
|
|
4957
4957
|
})), a();
|
|
4958
|
-
}), c && !
|
|
4959
|
-
let $, _ =
|
|
4960
|
-
|
|
4958
|
+
}), c && !u && C.observe(c), C.observe(e));
|
|
4959
|
+
let $, _ = u ? $t(t) : null;
|
|
4960
|
+
u && y();
|
|
4961
4961
|
function y() {
|
|
4962
4962
|
const m = $t(t);
|
|
4963
4963
|
_ && (m.x !== _.x || m.y !== _.y || m.width !== _.width || m.height !== _.height) && a(), _ = m, $ = requestAnimationFrame(y);
|
|
4964
4964
|
}
|
|
4965
4965
|
return a(), () => {
|
|
4966
|
-
|
|
4966
|
+
l.forEach((m) => {
|
|
4967
4967
|
s && m.removeEventListener("scroll", a), o && m.removeEventListener("resize", a);
|
|
4968
|
-
}), d && d(), C && C.disconnect(), C = null,
|
|
4968
|
+
}), d && d(), C && C.disconnect(), C = null, u && cancelAnimationFrame($);
|
|
4969
4969
|
};
|
|
4970
4970
|
}
|
|
4971
4971
|
const N5 = (t, e, a) => {
|
|
@@ -4983,12 +4983,12 @@ const N5 = (t, e, a) => {
|
|
|
4983
4983
|
}, j5 = (t) => {
|
|
4984
4984
|
const e = ae(!1), a = ae(), n = ae(), s = ae(0);
|
|
4985
4985
|
function o() {
|
|
4986
|
-
const d =
|
|
4986
|
+
const d = X(t.appendTo);
|
|
4987
4987
|
return d ? typeof d == "string" ? document.getElementById(d) ?? document.body : d : document.getElementById("floatingElements") ?? document.body;
|
|
4988
4988
|
}
|
|
4989
4989
|
const i = o(), r = ae(() => {
|
|
4990
4990
|
});
|
|
4991
|
-
function
|
|
4991
|
+
function u(d) {
|
|
4992
4992
|
d.relatedTarget && n.value && n.value.contains(d.relatedTarget) || t.multiselect.value.deactivate();
|
|
4993
4993
|
}
|
|
4994
4994
|
function c() {
|
|
@@ -5004,13 +5004,13 @@ const N5 = (t, e, a) => {
|
|
|
5004
5004
|
bottom: "auto",
|
|
5005
5005
|
transform: "none",
|
|
5006
5006
|
marginTop: 0
|
|
5007
|
-
}), i.appendChild(f), t.multiselect.value.handleFocusOut =
|
|
5008
|
-
const $ = R5(a.value, n.value,
|
|
5007
|
+
}), i.appendChild(f), t.multiselect.value.handleFocusOut = u;
|
|
5008
|
+
const $ = R5(a.value, n.value, l);
|
|
5009
5009
|
r.value = () => {
|
|
5010
5010
|
n.value && i.contains(n.value) && i.removeChild(n.value), $();
|
|
5011
5011
|
};
|
|
5012
5012
|
}
|
|
5013
|
-
function
|
|
5013
|
+
function l() {
|
|
5014
5014
|
!n.value || !a.value || N5(a.value, n.value, {
|
|
5015
5015
|
strategy: "absolute",
|
|
5016
5016
|
placement: "bottom-start",
|
|
@@ -5040,42 +5040,42 @@ const N5 = (t, e, a) => {
|
|
|
5040
5040
|
}
|
|
5041
5041
|
qt(() => {
|
|
5042
5042
|
c();
|
|
5043
|
-
}), v1(() => {
|
|
5044
|
-
r.value();
|
|
5045
5043
|
}), p1(() => {
|
|
5046
5044
|
r.value();
|
|
5045
|
+
}), m1(() => {
|
|
5046
|
+
r.value();
|
|
5047
5047
|
});
|
|
5048
5048
|
};
|
|
5049
5049
|
function je(t) {
|
|
5050
5050
|
return [null, void 0].indexOf(t) !== -1;
|
|
5051
5051
|
}
|
|
5052
5052
|
function U5(t, e, a) {
|
|
5053
|
-
const { object: n, valueProp: s, mode: o } = Ae(t), i = Mt().proxy, r = a.iv,
|
|
5054
|
-
r.value =
|
|
5053
|
+
const { object: n, valueProp: s, mode: o } = Ae(t), i = Mt().proxy, r = a.iv, u = (d, f = !0) => {
|
|
5054
|
+
r.value = l(d);
|
|
5055
5055
|
const C = c(d);
|
|
5056
5056
|
e.emit("change", C, i), f && (e.emit("input", C), e.emit("update:modelValue", C));
|
|
5057
|
-
}, c = (d) => n.value || je(d) ? d : Array.isArray(d) ? d.map((f) => f[s.value]) : d[s.value],
|
|
5057
|
+
}, c = (d) => n.value || je(d) ? d : Array.isArray(d) ? d.map((f) => f[s.value]) : d[s.value], l = (d) => je(d) ? o.value === "single" ? {} : [] : d;
|
|
5058
5058
|
return {
|
|
5059
|
-
update:
|
|
5059
|
+
update: u
|
|
5060
5060
|
};
|
|
5061
5061
|
}
|
|
5062
5062
|
function Z5(t, e) {
|
|
5063
|
-
const { value: a, modelValue: n, mode: s, valueProp: o } = Ae(t), i = ae(s.value !== "single" ? [] : {}), r = M(() => n && n.value !== void 0 ? n.value : a.value),
|
|
5063
|
+
const { value: a, modelValue: n, mode: s, valueProp: o } = Ae(t), i = ae(s.value !== "single" ? [] : {}), r = M(() => n && n.value !== void 0 ? n.value : a.value), u = M(() => s.value === "single" ? i.value[o.value] : i.value.map((l) => l[o.value])), c = M(() => s.value !== "single" ? i.value.map((l) => l[o.value]).join(",") : i.value[o.value]);
|
|
5064
5064
|
return {
|
|
5065
5065
|
iv: i,
|
|
5066
5066
|
internalValue: i,
|
|
5067
5067
|
ev: r,
|
|
5068
5068
|
externalValue: r,
|
|
5069
5069
|
textValue: c,
|
|
5070
|
-
plainValue:
|
|
5070
|
+
plainValue: u
|
|
5071
5071
|
};
|
|
5072
5072
|
}
|
|
5073
5073
|
function F5(t, e, a) {
|
|
5074
|
-
const { regex: n } = Ae(t), s = Mt().proxy, o = a.isOpen, i = a.open, r = ae(null),
|
|
5074
|
+
const { regex: n } = Ae(t), s = Mt().proxy, o = a.isOpen, i = a.open, r = ae(null), u = () => {
|
|
5075
5075
|
r.value = "";
|
|
5076
5076
|
}, c = (f) => {
|
|
5077
5077
|
r.value = f.target.value;
|
|
5078
|
-
},
|
|
5078
|
+
}, l = (f) => {
|
|
5079
5079
|
if (n && n.value) {
|
|
5080
5080
|
let C = n.value;
|
|
5081
5081
|
typeof C == "string" && (C = new RegExp(C)), f.key.match(C) || f.preventDefault();
|
|
@@ -5092,21 +5092,21 @@ function F5(t, e, a) {
|
|
|
5092
5092
|
!o.value && f && i(), e.emit("search-change", f, s);
|
|
5093
5093
|
}), {
|
|
5094
5094
|
search: r,
|
|
5095
|
-
clearSearch:
|
|
5095
|
+
clearSearch: u,
|
|
5096
5096
|
handleSearchInput: c,
|
|
5097
|
-
handleKeypress:
|
|
5097
|
+
handleKeypress: l,
|
|
5098
5098
|
handlePaste: d
|
|
5099
5099
|
};
|
|
5100
5100
|
}
|
|
5101
5101
|
function q5(t, e, a) {
|
|
5102
|
-
const { groupSelect: n, mode: s, groups: o, disabledProp: i } = Ae(t), r = ae(null),
|
|
5103
|
-
|
|
5102
|
+
const { groupSelect: n, mode: s, groups: o, disabledProp: i } = Ae(t), r = ae(null), u = (l) => {
|
|
5103
|
+
l === void 0 || l !== null && l[i.value] || o.value && l && l.group && (s.value === "single" || !n.value) || (r.value = l);
|
|
5104
5104
|
};
|
|
5105
5105
|
return {
|
|
5106
5106
|
pointer: r,
|
|
5107
|
-
setPointer:
|
|
5107
|
+
setPointer: u,
|
|
5108
5108
|
clearPointer: () => {
|
|
5109
|
-
|
|
5109
|
+
u(null);
|
|
5110
5110
|
}
|
|
5111
5111
|
};
|
|
5112
5112
|
}
|
|
@@ -5129,9 +5129,9 @@ function x5(t, e, a) {
|
|
|
5129
5129
|
trackBy: o,
|
|
5130
5130
|
limit: i,
|
|
5131
5131
|
hideSelected: r,
|
|
5132
|
-
createTag:
|
|
5132
|
+
createTag: u,
|
|
5133
5133
|
createOption: c,
|
|
5134
|
-
label:
|
|
5134
|
+
label: l,
|
|
5135
5135
|
appendNewTag: d,
|
|
5136
5136
|
appendNewOption: f,
|
|
5137
5137
|
multipleLabel: C,
|
|
@@ -5153,7 +5153,7 @@ function x5(t, e, a) {
|
|
|
5153
5153
|
closeOnDeselect: F,
|
|
5154
5154
|
groups: E,
|
|
5155
5155
|
reverse: N,
|
|
5156
|
-
infinite:
|
|
5156
|
+
infinite: Q,
|
|
5157
5157
|
groupOptions: k,
|
|
5158
5158
|
groupHideEmpty: h,
|
|
5159
5159
|
groupSelect: I,
|
|
@@ -5161,7 +5161,7 @@ function x5(t, e, a) {
|
|
|
5161
5161
|
disabledProp: ne,
|
|
5162
5162
|
searchStart: le,
|
|
5163
5163
|
searchFilter: se
|
|
5164
|
-
} = Ae(t), re = Mt().proxy, z = a.iv, P = a.ev, G = a.search, ve = a.clearSearch, we = a.update, zt = a.pointer, xt = a.setPointer, tt = a.clearPointer, ha = a.focus, Qa = a.deactivate, at = a.close, Ca = a.localize, nt = ae([]), Ne = ae([]), Te = ae(!1), Be = ae(null), We = ae(
|
|
5164
|
+
} = Ae(t), re = Mt().proxy, z = a.iv, P = a.ev, G = a.search, ve = a.clearSearch, we = a.update, zt = a.pointer, xt = a.setPointer, tt = a.clearPointer, ha = a.focus, Qa = a.deactivate, at = a.close, Ca = a.localize, nt = ae([]), Ne = ae([]), Te = ae(!1), Be = ae(null), We = ae(Q.value && i.value === -1 ? 10 : i.value), Yt = M(() => u.value || c.value || !1), ga = M(() => d.value !== void 0 ? d.value : f.value !== void 0 ? f.value : !0), Se = M(() => {
|
|
5165
5165
|
if (E.value) {
|
|
5166
5166
|
let b = Ct.value || /* istanbul ignore next */
|
|
5167
5167
|
[], H = [];
|
|
@@ -5224,9 +5224,9 @@ function x5(t, e, a) {
|
|
|
5224
5224
|
}), J1 = M(() => C !== void 0 && C.value !== void 0 ? C.value(z.value, re) : z.value && z.value.length > 1 ? `${z.value.length} options selected` : "1 option selected"), es = M(() => !Se.value.length && !Te.value && !Tt.value.length), ts = M(() => Se.value.length > 0 && st.value.length == 0 && (G.value && E.value || !E.value)), Tt = M(() => Yt.value === !1 || !G.value ? [] : ds(G.value) !== -1 ? [] : [{
|
|
5225
5225
|
[L.value]: G.value,
|
|
5226
5226
|
[gt.value[0]]: G.value,
|
|
5227
|
-
[
|
|
5227
|
+
[l.value]: G.value,
|
|
5228
5228
|
__CREATE__: !0
|
|
5229
|
-
}]), gt = M(() => o.value ? Array.isArray(o.value) ? o.value : [o.value] : [
|
|
5229
|
+
}]), gt = M(() => o.value ? Array.isArray(o.value) ? o.value : [o.value] : [l.value]), as = M(() => {
|
|
5230
5230
|
switch (s.value) {
|
|
5231
5231
|
case "single":
|
|
5232
5232
|
return null;
|
|
@@ -5244,27 +5244,27 @@ function x5(t, e, a) {
|
|
|
5244
5244
|
we(z.value.concat(b));
|
|
5245
5245
|
break;
|
|
5246
5246
|
}
|
|
5247
|
-
e.emit("select",
|
|
5247
|
+
e.emit("select", jn(b), b, re);
|
|
5248
5248
|
}, Ot = (b) => {
|
|
5249
5249
|
switch (typeof b != "object" && (b = xe(b)), s.value) {
|
|
5250
5250
|
case "single":
|
|
5251
|
-
|
|
5251
|
+
Zn();
|
|
5252
5252
|
break;
|
|
5253
5253
|
case "tags":
|
|
5254
5254
|
case "multiple":
|
|
5255
5255
|
we(Array.isArray(b) ? z.value.filter((H) => b.map((oe) => oe[L.value]).indexOf(H[L.value]) === -1) : z.value.filter((H) => H[L.value] != b[L.value]));
|
|
5256
5256
|
break;
|
|
5257
5257
|
}
|
|
5258
|
-
e.emit("deselect",
|
|
5259
|
-
},
|
|
5258
|
+
e.emit("deselect", jn(b), b, re);
|
|
5259
|
+
}, jn = (b) => $.value ? b : b[L.value], Un = (b) => {
|
|
5260
5260
|
Ot(b);
|
|
5261
5261
|
}, ss = (b, H) => {
|
|
5262
5262
|
if (H.button !== 0) {
|
|
5263
5263
|
H.preventDefault();
|
|
5264
5264
|
return;
|
|
5265
5265
|
}
|
|
5266
|
-
|
|
5267
|
-
},
|
|
5266
|
+
Un(b);
|
|
5267
|
+
}, Zn = () => {
|
|
5268
5268
|
we(as.value), e.emit("clear", re);
|
|
5269
5269
|
}, ze = (b) => {
|
|
5270
5270
|
if (b.group !== void 0)
|
|
@@ -5280,13 +5280,13 @@ function x5(t, e, a) {
|
|
|
5280
5280
|
if (!tn(b)) {
|
|
5281
5281
|
if (ee && ee.value && !ze(b) && b.__CREATE__ && (b = { ...b }, delete b.__CREATE__, b = ee.value(b, re), b instanceof Promise)) {
|
|
5282
5282
|
Te.value = !0, b.then((H) => {
|
|
5283
|
-
Te.value = !1,
|
|
5283
|
+
Te.value = !1, Fn(H);
|
|
5284
5284
|
});
|
|
5285
5285
|
return;
|
|
5286
5286
|
}
|
|
5287
|
-
|
|
5287
|
+
Fn(b);
|
|
5288
5288
|
}
|
|
5289
|
-
},
|
|
5289
|
+
}, Fn = (b) => {
|
|
5290
5290
|
switch (b.__CREATE__ && (b = { ...b }, delete b.__CREATE__), s.value) {
|
|
5291
5291
|
case "single":
|
|
5292
5292
|
if (b && ze(b)) {
|
|
@@ -5343,9 +5343,9 @@ function x5(t, e, a) {
|
|
|
5343
5343
|
let oe = b;
|
|
5344
5344
|
if (G.value && w.value) {
|
|
5345
5345
|
let pe = se.value;
|
|
5346
|
-
pe || (pe = (_t,
|
|
5347
|
-
let
|
|
5348
|
-
return le.value ?
|
|
5346
|
+
pe || (pe = (_t, Wn, bv) => gt.value.some((ms) => {
|
|
5347
|
+
let zn = dn(Ca(_t[ms]), Y.value);
|
|
5348
|
+
return le.value ? zn.startsWith(dn(Wn, Y.value)) : zn.indexOf(dn(Wn, Y.value)) !== -1;
|
|
5349
5349
|
})), oe = oe.filter((_t) => pe(_t, G.value, re));
|
|
5350
5350
|
}
|
|
5351
5351
|
return r.value && H && (oe = oe.filter((pe) => !cs(pe))), oe;
|
|
@@ -5353,8 +5353,8 @@ function x5(t, e, a) {
|
|
|
5353
5353
|
let H = b;
|
|
5354
5354
|
return W5(H) && (H = Object.keys(H).map((oe) => {
|
|
5355
5355
|
let pe = H[oe];
|
|
5356
|
-
return { [L.value]: oe, [gt.value[0]]: pe, [
|
|
5357
|
-
})), H = H.map((oe) => typeof oe == "object" ? oe : { [L.value]: oe, [gt.value[0]]: oe, [
|
|
5356
|
+
return { [L.value]: oe, [gt.value[0]]: pe, [l.value]: pe };
|
|
5357
|
+
})), H = H.map((oe) => typeof oe == "object" ? oe : { [L.value]: oe, [gt.value[0]]: oe, [l.value]: oe }), H;
|
|
5358
5358
|
}, ya = () => {
|
|
5359
5359
|
je(P.value) || (z.value = wa(P.value));
|
|
5360
5360
|
}, ba = (b) => (Te.value = !0, new Promise((H, oe) => {
|
|
@@ -5370,28 +5370,28 @@ function x5(t, e, a) {
|
|
|
5370
5370
|
if (s.value === "single") {
|
|
5371
5371
|
let b = xe(z.value[L.value]);
|
|
5372
5372
|
if (b !== void 0) {
|
|
5373
|
-
let H = b[
|
|
5374
|
-
z.value[
|
|
5373
|
+
let H = b[l.value];
|
|
5374
|
+
z.value[l.value] = H, $.value && (P.value[l.value] = H);
|
|
5375
5375
|
}
|
|
5376
5376
|
} else
|
|
5377
5377
|
z.value.forEach((b, H) => {
|
|
5378
5378
|
let oe = xe(z.value[H][L.value]);
|
|
5379
5379
|
if (oe !== void 0) {
|
|
5380
|
-
let pe = oe[
|
|
5381
|
-
z.value[H][
|
|
5380
|
+
let pe = oe[l.value];
|
|
5381
|
+
z.value[H][l.value] = pe, $.value && (P.value[H][l.value] = pe);
|
|
5382
5382
|
}
|
|
5383
5383
|
});
|
|
5384
5384
|
}, ps = (b) => {
|
|
5385
5385
|
ba(b);
|
|
5386
5386
|
}, wa = (b) => je(b) ? s.value === "single" ? {} : [] : $.value ? b : s.value === "single" ? xe(b) || (Z.value ? {
|
|
5387
|
-
[
|
|
5387
|
+
[l.value]: b,
|
|
5388
5388
|
[L.value]: b,
|
|
5389
5389
|
[gt.value[0]]: b
|
|
5390
5390
|
} : {}) : b.filter((H) => !!xe(H) || Z.value).map((H) => xe(H) || {
|
|
5391
|
-
[
|
|
5391
|
+
[l.value]: H,
|
|
5392
5392
|
[L.value]: H,
|
|
5393
5393
|
[gt.value[0]]: H
|
|
5394
|
-
}),
|
|
5394
|
+
}), qn = () => {
|
|
5395
5395
|
Be.value = ce(G, (b) => {
|
|
5396
5396
|
b.length < A.value || !b && A.value !== 0 || (Te.value = !0, S.value && (Ne.value = []), setTimeout(() => {
|
|
5397
5397
|
b == G.value && n.value(G.value, re).then((H) => {
|
|
@@ -5407,8 +5407,8 @@ function x5(t, e, a) {
|
|
|
5407
5407
|
};
|
|
5408
5408
|
if (s.value !== "single" && !je(P.value) && !Array.isArray(P.value))
|
|
5409
5409
|
throw new Error(`v-model must be an array when using "${s.value}" mode`);
|
|
5410
|
-
return n && typeof n.value == "function" ? m.value ? ba(ya) : $.value == !0 && ya() : (Ne.value = n.value, ya()), y.value > -1 &&
|
|
5411
|
-
Be.value && Be.value(), b >= 0 &&
|
|
5410
|
+
return n && typeof n.value == "function" ? m.value ? ba(ya) : $.value == !0 && ya() : (Ne.value = n.value, ya()), y.value > -1 && qn(), ce(y, (b, H) => {
|
|
5411
|
+
Be.value && Be.value(), b >= 0 && qn();
|
|
5412
5412
|
}), ce(P, (b) => {
|
|
5413
5413
|
if (je(b)) {
|
|
5414
5414
|
we(wa(b), !1);
|
|
@@ -5425,8 +5425,8 @@ function x5(t, e, a) {
|
|
|
5425
5425
|
}
|
|
5426
5426
|
}, { deep: !0 }), ce(n, (b, H) => {
|
|
5427
5427
|
typeof t.options == "function" ? m.value && (!H || b && b.toString() !== H.toString()) && ba() : (Ne.value = t.options, Object.keys(z.value).length || ya(), rn());
|
|
5428
|
-
}), ce(
|
|
5429
|
-
We.value =
|
|
5428
|
+
}), ce(l, rn), ce(i, (b, H) => {
|
|
5429
|
+
We.value = Q.value && b === -1 ? 10 : b;
|
|
5430
5430
|
}), {
|
|
5431
5431
|
pfo: Gt,
|
|
5432
5432
|
fo: st,
|
|
@@ -5446,9 +5446,9 @@ function x5(t, e, a) {
|
|
|
5446
5446
|
offset: We,
|
|
5447
5447
|
select: St,
|
|
5448
5448
|
deselect: Ot,
|
|
5449
|
-
remove:
|
|
5449
|
+
remove: Un,
|
|
5450
5450
|
selectAll: rs,
|
|
5451
|
-
clear:
|
|
5451
|
+
clear: Zn,
|
|
5452
5452
|
isSelected: ze,
|
|
5453
5453
|
isDisabled: tn,
|
|
5454
5454
|
isMax: an,
|
|
@@ -5468,11 +5468,11 @@ function Y5(t, e, a) {
|
|
|
5468
5468
|
searchable: o,
|
|
5469
5469
|
groupLabel: i,
|
|
5470
5470
|
groups: r,
|
|
5471
|
-
mode:
|
|
5471
|
+
mode: u,
|
|
5472
5472
|
groupSelect: c,
|
|
5473
|
-
disabledProp:
|
|
5473
|
+
disabledProp: l,
|
|
5474
5474
|
groupOptions: d
|
|
5475
|
-
} = Ae(t), f = a.fo, C = a.fg, $ = a.handleOptionClick, _ = a.handleGroupClick, y = a.search, m = a.pointer, A = a.setPointer, w = a.clearPointer, S = a.multiselect, D = a.isOpen, L = M(() => f.value.filter((P) => !P[
|
|
5475
|
+
} = Ae(t), f = a.fo, C = a.fg, $ = a.handleOptionClick, _ = a.handleGroupClick, y = a.search, m = a.pointer, A = a.setPointer, w = a.clearPointer, S = a.multiselect, D = a.isOpen, L = M(() => f.value.filter((P) => !P[l.value])), Z = M(() => C.value.filter((P) => !P[l.value])), U = M(() => u.value !== "single" && c.value), W = M(() => m.value && m.value.group), O = M(() => re(m.value)), Y = M(() => {
|
|
5476
5476
|
const P = W.value ? m.value : (
|
|
5477
5477
|
/* istanbul ignore next */
|
|
5478
5478
|
re(m.value)
|
|
@@ -5482,21 +5482,21 @@ function Y5(t, e, a) {
|
|
|
5482
5482
|
}), B = M(() => {
|
|
5483
5483
|
let P = Z.value.map((G) => G.label).indexOf(W.value ? m.value[i.value] : re(m.value)[i.value]) + 1;
|
|
5484
5484
|
return Z.value.length <= P && (P = 0), Z.value[P];
|
|
5485
|
-
}), F = M(() => [...Z.value].slice(-1)[0]), E = M(() => m.value.__VISIBLE__.filter((P) => !P[
|
|
5486
|
-
const P = O.value.__VISIBLE__.filter((G) => !G[
|
|
5485
|
+
}), F = M(() => [...Z.value].slice(-1)[0]), E = M(() => m.value.__VISIBLE__.filter((P) => !P[l.value])[0]), N = M(() => {
|
|
5486
|
+
const P = O.value.__VISIBLE__.filter((G) => !G[l.value]);
|
|
5487
5487
|
return P[P.map((G) => G[n.value]).indexOf(m.value[n.value]) - 1];
|
|
5488
|
-
}),
|
|
5489
|
-
const P = re(m.value).__VISIBLE__.filter((G) => !G[
|
|
5488
|
+
}), Q = M(() => {
|
|
5489
|
+
const P = re(m.value).__VISIBLE__.filter((G) => !G[l.value]);
|
|
5490
5490
|
return P[P.map((G) => G[n.value]).indexOf(m.value[n.value]) + 1];
|
|
5491
|
-
}), k = M(() => [...Y.value.__VISIBLE__.filter((P) => !P[
|
|
5491
|
+
}), k = M(() => [...Y.value.__VISIBLE__.filter((P) => !P[l.value])].slice(-1)[0]), h = M(() => [...F.value.__VISIBLE__.filter((P) => !P[l.value])].slice(-1)[0]), I = (P) => m.value && (!P.group && m.value[n.value] === P[n.value] || P.group !== void 0 && m.value[i.value] === P[i.value]) ? !0 : void 0, ee = () => {
|
|
5492
5492
|
A(L.value[0] || null);
|
|
5493
5493
|
}, ne = () => {
|
|
5494
|
-
!m.value || m.value[
|
|
5494
|
+
!m.value || m.value[l.value] === !0 || (W.value ? _(m.value) : $(m.value));
|
|
5495
5495
|
}, le = () => {
|
|
5496
5496
|
if (m.value === null)
|
|
5497
5497
|
A((r.value && U.value ? Z.value[0].__CREATE__ ? L.value[0] : Z.value[0] : L.value[0]) || null);
|
|
5498
5498
|
else if (r.value && U.value) {
|
|
5499
|
-
let P = W.value ? E.value :
|
|
5499
|
+
let P = W.value ? E.value : Q.value;
|
|
5500
5500
|
P === void 0 && (P = B.value, P.__CREATE__ && (P = P[d.value][0])), A(P || /* istanbul ignore next */
|
|
5501
5501
|
null);
|
|
5502
5502
|
} else {
|
|
@@ -5567,7 +5567,7 @@ function Pe(t) {
|
|
|
5567
5567
|
var e = Me(t).HTMLElement;
|
|
5568
5568
|
return t instanceof e || t instanceof HTMLElement;
|
|
5569
5569
|
}
|
|
5570
|
-
function
|
|
5570
|
+
function In(t) {
|
|
5571
5571
|
if (typeof ShadowRoot > "u")
|
|
5572
5572
|
return !1;
|
|
5573
5573
|
var e = Me(t).ShadowRoot;
|
|
@@ -5587,19 +5587,19 @@ function Ut(t, e, a) {
|
|
|
5587
5587
|
e === void 0 && (e = !1), a === void 0 && (a = !1);
|
|
5588
5588
|
var n = t.getBoundingClientRect(), s = 1, o = 1;
|
|
5589
5589
|
e && Pe(t) && (s = t.offsetWidth > 0 && jt(n.width) / t.offsetWidth || 1, o = t.offsetHeight > 0 && jt(n.height) / t.offsetHeight || 1);
|
|
5590
|
-
var i = kt(t) ? Me(t) : window, r = i.visualViewport,
|
|
5590
|
+
var i = kt(t) ? Me(t) : window, r = i.visualViewport, u = !q1() && a, c = (n.left + (u && r ? r.offsetLeft : 0)) / s, l = (n.top + (u && r ? r.offsetTop : 0)) / o, d = n.width / s, f = n.height / o;
|
|
5591
5591
|
return {
|
|
5592
5592
|
width: d,
|
|
5593
5593
|
height: f,
|
|
5594
|
-
top:
|
|
5594
|
+
top: l,
|
|
5595
5595
|
right: c + d,
|
|
5596
|
-
bottom:
|
|
5596
|
+
bottom: l + f,
|
|
5597
5597
|
left: c,
|
|
5598
5598
|
x: c,
|
|
5599
|
-
y:
|
|
5599
|
+
y: l
|
|
5600
5600
|
};
|
|
5601
5601
|
}
|
|
5602
|
-
function
|
|
5602
|
+
function Ln(t) {
|
|
5603
5603
|
var e = Me(t), a = e.pageXOffset, n = e.pageYOffset;
|
|
5604
5604
|
return {
|
|
5605
5605
|
scrollLeft: a,
|
|
@@ -5613,7 +5613,7 @@ function G5(t) {
|
|
|
5613
5613
|
};
|
|
5614
5614
|
}
|
|
5615
5615
|
function K5(t) {
|
|
5616
|
-
return t === Me(t) || !Pe(t) ?
|
|
5616
|
+
return t === Me(t) || !Pe(t) ? Ln(t) : G5(t);
|
|
5617
5617
|
}
|
|
5618
5618
|
function Fe(t) {
|
|
5619
5619
|
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
@@ -5624,13 +5624,13 @@ function ht(t) {
|
|
|
5624
5624
|
t.document
|
|
5625
5625
|
)) || window.document).documentElement;
|
|
5626
5626
|
}
|
|
5627
|
-
function
|
|
5628
|
-
return Ut(ht(t)).left +
|
|
5627
|
+
function Vn(t) {
|
|
5628
|
+
return Ut(ht(t)).left + Ln(t).scrollLeft;
|
|
5629
5629
|
}
|
|
5630
5630
|
function Je(t) {
|
|
5631
5631
|
return Me(t).getComputedStyle(t);
|
|
5632
5632
|
}
|
|
5633
|
-
function
|
|
5633
|
+
function Dn(t) {
|
|
5634
5634
|
var e = Je(t), a = e.overflow, n = e.overflowX, s = e.overflowY;
|
|
5635
5635
|
return /auto|scroll|overlay|hidden/.test(a + s + n);
|
|
5636
5636
|
}
|
|
@@ -5643,14 +5643,14 @@ function Q5(t, e, a) {
|
|
|
5643
5643
|
var n = Pe(e), s = Pe(e) && X5(e), o = ht(e), i = Ut(t, s, a), r = {
|
|
5644
5644
|
scrollLeft: 0,
|
|
5645
5645
|
scrollTop: 0
|
|
5646
|
-
},
|
|
5646
|
+
}, u = {
|
|
5647
5647
|
x: 0,
|
|
5648
5648
|
y: 0
|
|
5649
5649
|
};
|
|
5650
5650
|
return (n || !n && !a) && ((Fe(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
5651
|
-
|
|
5652
|
-
x: i.left + r.scrollLeft -
|
|
5653
|
-
y: i.top + r.scrollTop -
|
|
5651
|
+
Dn(o)) && (r = K5(e)), Pe(e) ? (u = Ut(e, !0), u.x += e.clientLeft, u.y += e.clientTop) : o && (u.x = Vn(o))), {
|
|
5652
|
+
x: i.left + r.scrollLeft - u.x,
|
|
5653
|
+
y: i.top + r.scrollTop - u.y,
|
|
5654
5654
|
width: i.width,
|
|
5655
5655
|
height: i.height
|
|
5656
5656
|
};
|
|
@@ -5671,18 +5671,18 @@ function Ga(t) {
|
|
|
5671
5671
|
// $FlowFixMe[prop-missing]
|
|
5672
5672
|
t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
5673
5673
|
t.parentNode || // DOM Element detected
|
|
5674
|
-
(
|
|
5674
|
+
(In(t) ? t.host : null) || // ShadowRoot detected
|
|
5675
5675
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
5676
5676
|
ht(t)
|
|
5677
5677
|
);
|
|
5678
5678
|
}
|
|
5679
5679
|
function z1(t) {
|
|
5680
|
-
return ["html", "body", "#document"].indexOf(Fe(t)) >= 0 ? t.ownerDocument.body : Pe(t) &&
|
|
5680
|
+
return ["html", "body", "#document"].indexOf(Fe(t)) >= 0 ? t.ownerDocument.body : Pe(t) && Dn(t) ? t : z1(Ga(t));
|
|
5681
5681
|
}
|
|
5682
5682
|
function aa(t, e) {
|
|
5683
5683
|
var a;
|
|
5684
5684
|
e === void 0 && (e = []);
|
|
5685
|
-
var n = z1(t), s = n === ((a = t.ownerDocument) == null ? void 0 : a.body), o = Me(n), i = s ? [o].concat(o.visualViewport || [],
|
|
5685
|
+
var n = z1(t), s = n === ((a = t.ownerDocument) == null ? void 0 : a.body), o = Me(n), i = s ? [o].concat(o.visualViewport || [], Dn(n) ? n : []) : n, r = e.concat(i);
|
|
5686
5686
|
return s ? r : (
|
|
5687
5687
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
5688
5688
|
r.concat(aa(Ga(i)))
|
|
@@ -5691,7 +5691,7 @@ function aa(t, e) {
|
|
|
5691
5691
|
function J5(t) {
|
|
5692
5692
|
return ["table", "td", "th"].indexOf(Fe(t)) >= 0;
|
|
5693
5693
|
}
|
|
5694
|
-
function
|
|
5694
|
+
function s1(t) {
|
|
5695
5695
|
return !Pe(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
5696
5696
|
Je(t).position === "fixed" ? null : t.offsetParent;
|
|
5697
5697
|
}
|
|
@@ -5703,7 +5703,7 @@ function e7(t) {
|
|
|
5703
5703
|
return null;
|
|
5704
5704
|
}
|
|
5705
5705
|
var s = Ga(t);
|
|
5706
|
-
for (
|
|
5706
|
+
for (In(s) && (s = s.host); Pe(s) && ["html", "body"].indexOf(Fe(s)) < 0; ) {
|
|
5707
5707
|
var o = Je(s);
|
|
5708
5708
|
if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none")
|
|
5709
5709
|
return s;
|
|
@@ -5712,13 +5712,13 @@ function e7(t) {
|
|
|
5712
5712
|
return null;
|
|
5713
5713
|
}
|
|
5714
5714
|
function Ka(t) {
|
|
5715
|
-
for (var e = Me(t), a =
|
|
5716
|
-
a =
|
|
5715
|
+
for (var e = Me(t), a = s1(t); a && J5(a) && Je(a).position === "static"; )
|
|
5716
|
+
a = s1(a);
|
|
5717
5717
|
return a && (Fe(a) === "html" || Fe(a) === "body" && Je(a).position === "static") ? e : a || e7(t) || e;
|
|
5718
5718
|
}
|
|
5719
|
-
var Re = "top", qe = "bottom", ft = "right", Ye = "left",
|
|
5719
|
+
var Re = "top", qe = "bottom", ft = "right", Ye = "left", Pn = "auto", Xa = [Re, qe, ft, Ye], Zt = "start", la = "end", t7 = "clippingParents", x1 = "viewport", ta = "popper", a7 = "reference", i1 = /* @__PURE__ */ Xa.reduce(function(t, e) {
|
|
5720
5720
|
return t.concat([e + "-" + Zt, e + "-" + la]);
|
|
5721
|
-
}, []), n7 = /* @__PURE__ */ [].concat(Xa, [
|
|
5721
|
+
}, []), n7 = /* @__PURE__ */ [].concat(Xa, [Pn]).reduce(function(t, e) {
|
|
5722
5722
|
return t.concat([e, e + "-" + Zt, e + "-" + la]);
|
|
5723
5723
|
}, []), s7 = "beforeRead", i7 = "read", o7 = "afterRead", r7 = "beforeMain", l7 = "main", u7 = "afterMain", d7 = "beforeWrite", c7 = "write", f7 = "afterWrite", v7 = [s7, i7, o7, r7, l7, u7, d7, c7, f7];
|
|
5724
5724
|
function p7(t) {
|
|
@@ -5731,8 +5731,8 @@ function p7(t) {
|
|
|
5731
5731
|
var i = [].concat(o.requires || [], o.requiresIfExists || []);
|
|
5732
5732
|
i.forEach(function(r) {
|
|
5733
5733
|
if (!a.has(r)) {
|
|
5734
|
-
var
|
|
5735
|
-
|
|
5734
|
+
var u = e.get(r);
|
|
5735
|
+
u && s(u);
|
|
5736
5736
|
}
|
|
5737
5737
|
}), n.push(o);
|
|
5738
5738
|
}
|
|
@@ -5771,33 +5771,33 @@ function C7(t) {
|
|
|
5771
5771
|
});
|
|
5772
5772
|
}
|
|
5773
5773
|
function g7(t, e) {
|
|
5774
|
-
var a = Me(t), n = ht(t), s = a.visualViewport, o = n.clientWidth, i = n.clientHeight, r = 0,
|
|
5774
|
+
var a = Me(t), n = ht(t), s = a.visualViewport, o = n.clientWidth, i = n.clientHeight, r = 0, u = 0;
|
|
5775
5775
|
if (s) {
|
|
5776
5776
|
o = s.width, i = s.height;
|
|
5777
5777
|
var c = q1();
|
|
5778
|
-
(c || !c && e === "fixed") && (r = s.offsetLeft,
|
|
5778
|
+
(c || !c && e === "fixed") && (r = s.offsetLeft, u = s.offsetTop);
|
|
5779
5779
|
}
|
|
5780
5780
|
return {
|
|
5781
5781
|
width: o,
|
|
5782
5782
|
height: i,
|
|
5783
|
-
x: r +
|
|
5784
|
-
y:
|
|
5783
|
+
x: r + Vn(t),
|
|
5784
|
+
y: u
|
|
5785
5785
|
};
|
|
5786
5786
|
}
|
|
5787
5787
|
function _7(t) {
|
|
5788
|
-
var e, a = ht(t), n =
|
|
5788
|
+
var e, a = ht(t), n = Ln(t), s = (e = t.ownerDocument) == null ? void 0 : e.body, o = wt(a.scrollWidth, a.clientWidth, s ? s.scrollWidth : 0, s ? s.clientWidth : 0), i = wt(a.scrollHeight, a.clientHeight, s ? s.scrollHeight : 0, s ? s.clientHeight : 0), r = -n.scrollLeft + Vn(t), u = -n.scrollTop;
|
|
5789
5789
|
return Je(s || a).direction === "rtl" && (r += wt(a.clientWidth, s ? s.clientWidth : 0) - o), {
|
|
5790
5790
|
width: o,
|
|
5791
5791
|
height: i,
|
|
5792
5792
|
x: r,
|
|
5793
|
-
y:
|
|
5793
|
+
y: u
|
|
5794
5794
|
};
|
|
5795
5795
|
}
|
|
5796
5796
|
function y7(t, e) {
|
|
5797
5797
|
var a = e.getRootNode && e.getRootNode();
|
|
5798
5798
|
if (t.contains(e))
|
|
5799
5799
|
return !0;
|
|
5800
|
-
if (a &&
|
|
5800
|
+
if (a && In(a)) {
|
|
5801
5801
|
var n = e;
|
|
5802
5802
|
do {
|
|
5803
5803
|
if (n && t.isSameNode(n))
|
|
@@ -5819,7 +5819,7 @@ function b7(t, e) {
|
|
|
5819
5819
|
var a = Ut(t, !1, e === "fixed");
|
|
5820
5820
|
return a.top = a.top + t.clientTop, a.left = a.left + t.clientLeft, a.bottom = a.top + t.clientHeight, a.right = a.left + t.clientWidth, a.width = t.clientWidth, a.height = t.clientHeight, a.x = a.left, a.y = a.top, a;
|
|
5821
5821
|
}
|
|
5822
|
-
function
|
|
5822
|
+
function o1(t, e, a) {
|
|
5823
5823
|
return e === x1 ? hn(g7(t, a)) : kt(e) ? b7(e, a) : hn(_7(ht(t)));
|
|
5824
5824
|
}
|
|
5825
5825
|
function w7(t) {
|
|
@@ -5829,10 +5829,10 @@ function w7(t) {
|
|
|
5829
5829
|
}) : [];
|
|
5830
5830
|
}
|
|
5831
5831
|
function $7(t, e, a, n) {
|
|
5832
|
-
var s = e === "clippingParents" ? w7(t) : [].concat(e), o = [].concat(s, [a]), i = o[0], r = o.reduce(function(
|
|
5833
|
-
var
|
|
5834
|
-
return
|
|
5835
|
-
},
|
|
5832
|
+
var s = e === "clippingParents" ? w7(t) : [].concat(e), o = [].concat(s, [a]), i = o[0], r = o.reduce(function(u, c) {
|
|
5833
|
+
var l = o1(t, c, n);
|
|
5834
|
+
return u.top = wt(l.top, u.top), u.right = Ha(l.right, u.right), u.bottom = Ha(l.bottom, u.bottom), u.left = wt(l.left, u.left), u;
|
|
5835
|
+
}, o1(t, i, n));
|
|
5836
5836
|
return r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
5837
5837
|
}
|
|
5838
5838
|
function lt(t) {
|
|
@@ -5845,51 +5845,51 @@ function Y1(t) {
|
|
|
5845
5845
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
5846
5846
|
}
|
|
5847
5847
|
function G1(t) {
|
|
5848
|
-
var e = t.reference, a = t.element, n = t.placement, s = n ? lt(n) : null, o = n ? Ft(n) : null, i = e.x + e.width / 2 - a.width / 2, r = e.y + e.height / 2 - a.height / 2,
|
|
5848
|
+
var e = t.reference, a = t.element, n = t.placement, s = n ? lt(n) : null, o = n ? Ft(n) : null, i = e.x + e.width / 2 - a.width / 2, r = e.y + e.height / 2 - a.height / 2, u;
|
|
5849
5849
|
switch (s) {
|
|
5850
5850
|
case Re:
|
|
5851
|
-
|
|
5851
|
+
u = {
|
|
5852
5852
|
x: i,
|
|
5853
5853
|
y: e.y - a.height
|
|
5854
5854
|
};
|
|
5855
5855
|
break;
|
|
5856
5856
|
case qe:
|
|
5857
|
-
|
|
5857
|
+
u = {
|
|
5858
5858
|
x: i,
|
|
5859
5859
|
y: e.y + e.height
|
|
5860
5860
|
};
|
|
5861
5861
|
break;
|
|
5862
5862
|
case ft:
|
|
5863
|
-
|
|
5863
|
+
u = {
|
|
5864
5864
|
x: e.x + e.width,
|
|
5865
5865
|
y: r
|
|
5866
5866
|
};
|
|
5867
5867
|
break;
|
|
5868
5868
|
case Ye:
|
|
5869
|
-
|
|
5869
|
+
u = {
|
|
5870
5870
|
x: e.x - a.width,
|
|
5871
5871
|
y: r
|
|
5872
5872
|
};
|
|
5873
5873
|
break;
|
|
5874
5874
|
default:
|
|
5875
|
-
|
|
5875
|
+
u = {
|
|
5876
5876
|
x: e.x,
|
|
5877
5877
|
y: e.y
|
|
5878
5878
|
};
|
|
5879
5879
|
}
|
|
5880
5880
|
var c = s ? Y1(s) : null;
|
|
5881
5881
|
if (c != null) {
|
|
5882
|
-
var
|
|
5882
|
+
var l = c === "y" ? "height" : "width";
|
|
5883
5883
|
switch (o) {
|
|
5884
5884
|
case Zt:
|
|
5885
|
-
|
|
5885
|
+
u[c] = u[c] - (e[l] / 2 - a[l] / 2);
|
|
5886
5886
|
break;
|
|
5887
5887
|
case la:
|
|
5888
|
-
|
|
5888
|
+
u[c] = u[c] + (e[l] / 2 - a[l] / 2);
|
|
5889
5889
|
break;
|
|
5890
5890
|
}
|
|
5891
5891
|
}
|
|
5892
|
-
return
|
|
5892
|
+
return u;
|
|
5893
5893
|
}
|
|
5894
5894
|
function K1() {
|
|
5895
5895
|
return {
|
|
@@ -5907,9 +5907,9 @@ function M7(t, e) {
|
|
|
5907
5907
|
return a[n] = t, a;
|
|
5908
5908
|
}, {});
|
|
5909
5909
|
}
|
|
5910
|
-
function
|
|
5910
|
+
function Hn(t, e) {
|
|
5911
5911
|
e === void 0 && (e = {});
|
|
5912
|
-
var a = e, n = a.placement, s = n === void 0 ? t.placement : n, o = a.strategy, i = o === void 0 ? t.strategy : o, r = a.boundary,
|
|
5912
|
+
var a = e, n = a.placement, s = n === void 0 ? t.placement : n, o = a.strategy, i = o === void 0 ? t.strategy : o, r = a.boundary, u = r === void 0 ? t7 : r, c = a.rootBoundary, l = c === void 0 ? x1 : c, d = a.elementContext, f = d === void 0 ? ta : d, C = a.altBoundary, $ = C === void 0 ? !1 : C, _ = a.padding, y = _ === void 0 ? 0 : _, m = k7(typeof y != "number" ? y : M7(y, Xa)), A = f === ta ? a7 : ta, w = t.rects.popper, S = t.elements[$ ? A : f], D = $7(kt(S) ? S : S.contextElement || ht(t.elements.popper), u, l, i), L = Ut(t.elements.reference), Z = G1({
|
|
5913
5913
|
reference: L,
|
|
5914
5914
|
element: w,
|
|
5915
5915
|
strategy: "absolute",
|
|
@@ -5929,12 +5929,12 @@ function Pn(t, e) {
|
|
|
5929
5929
|
}
|
|
5930
5930
|
return O;
|
|
5931
5931
|
}
|
|
5932
|
-
var
|
|
5932
|
+
var r1 = {
|
|
5933
5933
|
placement: "bottom",
|
|
5934
5934
|
modifiers: [],
|
|
5935
5935
|
strategy: "absolute"
|
|
5936
5936
|
};
|
|
5937
|
-
function
|
|
5937
|
+
function l1() {
|
|
5938
5938
|
for (var t = arguments.length, e = new Array(t), a = 0; a < t; a++)
|
|
5939
5939
|
e[a] = arguments[a];
|
|
5940
5940
|
return !e.some(function(n) {
|
|
@@ -5943,30 +5943,30 @@ function r1() {
|
|
|
5943
5943
|
}
|
|
5944
5944
|
function A7(t) {
|
|
5945
5945
|
t === void 0 && (t = {});
|
|
5946
|
-
var e = t, a = e.defaultModifiers, n = a === void 0 ? [] : a, s = e.defaultOptions, o = s === void 0 ?
|
|
5947
|
-
return function(r,
|
|
5946
|
+
var e = t, a = e.defaultModifiers, n = a === void 0 ? [] : a, s = e.defaultOptions, o = s === void 0 ? r1 : s;
|
|
5947
|
+
return function(r, u, c) {
|
|
5948
5948
|
c === void 0 && (c = o);
|
|
5949
|
-
var
|
|
5949
|
+
var l = {
|
|
5950
5950
|
placement: "bottom",
|
|
5951
5951
|
orderedModifiers: [],
|
|
5952
|
-
options: Object.assign({},
|
|
5952
|
+
options: Object.assign({}, r1, o),
|
|
5953
5953
|
modifiersData: {},
|
|
5954
5954
|
elements: {
|
|
5955
5955
|
reference: r,
|
|
5956
|
-
popper:
|
|
5956
|
+
popper: u
|
|
5957
5957
|
},
|
|
5958
5958
|
attributes: {},
|
|
5959
5959
|
styles: {}
|
|
5960
5960
|
}, d = [], f = !1, C = {
|
|
5961
|
-
state:
|
|
5961
|
+
state: l,
|
|
5962
5962
|
setOptions: function(m) {
|
|
5963
|
-
var A = typeof m == "function" ? m(
|
|
5964
|
-
_(),
|
|
5963
|
+
var A = typeof m == "function" ? m(l.options) : m;
|
|
5964
|
+
_(), l.options = Object.assign({}, o, l.options, A), l.scrollParents = {
|
|
5965
5965
|
reference: kt(r) ? aa(r) : r.contextElement ? aa(r.contextElement) : [],
|
|
5966
|
-
popper: aa(
|
|
5966
|
+
popper: aa(u)
|
|
5967
5967
|
};
|
|
5968
|
-
var w = m7(C7([].concat(n,
|
|
5969
|
-
return
|
|
5968
|
+
var w = m7(C7([].concat(n, l.options.modifiers)));
|
|
5969
|
+
return l.orderedModifiers = w.filter(function(S) {
|
|
5970
5970
|
return S.enabled;
|
|
5971
5971
|
}), $(), C.update();
|
|
5972
5972
|
},
|
|
@@ -5977,26 +5977,26 @@ function A7(t) {
|
|
|
5977
5977
|
// prefer the async Popper#update method
|
|
5978
5978
|
forceUpdate: function() {
|
|
5979
5979
|
if (!f) {
|
|
5980
|
-
var m =
|
|
5981
|
-
if (
|
|
5982
|
-
|
|
5983
|
-
reference: Q5(A, Ka(w),
|
|
5980
|
+
var m = l.elements, A = m.reference, w = m.popper;
|
|
5981
|
+
if (l1(A, w)) {
|
|
5982
|
+
l.rects = {
|
|
5983
|
+
reference: Q5(A, Ka(w), l.options.strategy === "fixed"),
|
|
5984
5984
|
popper: W1(w)
|
|
5985
|
-
},
|
|
5986
|
-
return
|
|
5985
|
+
}, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(O) {
|
|
5986
|
+
return l.modifiersData[O.name] = Object.assign({}, O.data);
|
|
5987
5987
|
});
|
|
5988
|
-
for (var S = 0; S <
|
|
5989
|
-
if (
|
|
5990
|
-
|
|
5988
|
+
for (var S = 0; S < l.orderedModifiers.length; S++) {
|
|
5989
|
+
if (l.reset === !0) {
|
|
5990
|
+
l.reset = !1, S = -1;
|
|
5991
5991
|
continue;
|
|
5992
5992
|
}
|
|
5993
|
-
var D =
|
|
5994
|
-
typeof L == "function" && (
|
|
5995
|
-
state:
|
|
5993
|
+
var D = l.orderedModifiers[S], L = D.fn, Z = D.options, U = Z === void 0 ? {} : Z, W = D.name;
|
|
5994
|
+
typeof L == "function" && (l = L({
|
|
5995
|
+
state: l,
|
|
5996
5996
|
options: U,
|
|
5997
5997
|
name: W,
|
|
5998
5998
|
instance: C
|
|
5999
|
-
}) ||
|
|
5999
|
+
}) || l);
|
|
6000
6000
|
}
|
|
6001
6001
|
}
|
|
6002
6002
|
}
|
|
@@ -6005,24 +6005,24 @@ function A7(t) {
|
|
|
6005
6005
|
// not necessary (debounced to run at most once-per-tick)
|
|
6006
6006
|
update: h7(function() {
|
|
6007
6007
|
return new Promise(function(y) {
|
|
6008
|
-
C.forceUpdate(), y(
|
|
6008
|
+
C.forceUpdate(), y(l);
|
|
6009
6009
|
});
|
|
6010
6010
|
}),
|
|
6011
6011
|
destroy: function() {
|
|
6012
6012
|
_(), f = !0;
|
|
6013
6013
|
}
|
|
6014
6014
|
};
|
|
6015
|
-
if (!
|
|
6015
|
+
if (!l1(r, u))
|
|
6016
6016
|
return C;
|
|
6017
6017
|
C.setOptions(c).then(function(y) {
|
|
6018
6018
|
!f && c.onFirstUpdate && c.onFirstUpdate(y);
|
|
6019
6019
|
});
|
|
6020
6020
|
function $() {
|
|
6021
|
-
|
|
6021
|
+
l.orderedModifiers.forEach(function(y) {
|
|
6022
6022
|
var m = y.name, A = y.options, w = A === void 0 ? {} : A, S = y.effect;
|
|
6023
6023
|
if (typeof S == "function") {
|
|
6024
6024
|
var D = S({
|
|
6025
|
-
state:
|
|
6025
|
+
state: l,
|
|
6026
6026
|
name: m,
|
|
6027
6027
|
instance: C,
|
|
6028
6028
|
options: w
|
|
@@ -6044,13 +6044,13 @@ var Ta = {
|
|
|
6044
6044
|
passive: !0
|
|
6045
6045
|
};
|
|
6046
6046
|
function T7(t) {
|
|
6047
|
-
var e = t.state, a = t.instance, n = t.options, s = n.scroll, o = s === void 0 ? !0 : s, i = n.resize, r = i === void 0 ? !0 : i,
|
|
6048
|
-
return o && c.forEach(function(
|
|
6049
|
-
|
|
6050
|
-
}), r &&
|
|
6051
|
-
o && c.forEach(function(
|
|
6052
|
-
|
|
6053
|
-
}), r &&
|
|
6047
|
+
var e = t.state, a = t.instance, n = t.options, s = n.scroll, o = s === void 0 ? !0 : s, i = n.resize, r = i === void 0 ? !0 : i, u = Me(e.elements.popper), c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
6048
|
+
return o && c.forEach(function(l) {
|
|
6049
|
+
l.addEventListener("scroll", a.update, Ta);
|
|
6050
|
+
}), r && u.addEventListener("resize", a.update, Ta), function() {
|
|
6051
|
+
o && c.forEach(function(l) {
|
|
6052
|
+
l.removeEventListener("scroll", a.update, Ta);
|
|
6053
|
+
}), r && u.removeEventListener("resize", a.update, Ta);
|
|
6054
6054
|
};
|
|
6055
6055
|
}
|
|
6056
6056
|
var S7 = {
|
|
@@ -6090,8 +6090,8 @@ function L7(t, e) {
|
|
|
6090
6090
|
y: jt(n * s) / s || 0
|
|
6091
6091
|
};
|
|
6092
6092
|
}
|
|
6093
|
-
function
|
|
6094
|
-
var e, a = t.popper, n = t.popperRect, s = t.placement, o = t.variation, i = t.offsets, r = t.position,
|
|
6093
|
+
function u1(t) {
|
|
6094
|
+
var e, a = t.popper, n = t.popperRect, s = t.placement, o = t.variation, i = t.offsets, r = t.position, u = t.gpuAcceleration, c = t.adaptive, l = t.roundOffsets, d = t.isFixed, f = i.x, C = f === void 0 ? 0 : f, $ = i.y, _ = $ === void 0 ? 0 : $, y = typeof l == "function" ? l({
|
|
6095
6095
|
x: C,
|
|
6096
6096
|
y: _
|
|
6097
6097
|
}) : {
|
|
@@ -6108,7 +6108,7 @@ function l1(t) {
|
|
|
6108
6108
|
// $FlowFixMe[prop-missing]
|
|
6109
6109
|
L[Z]
|
|
6110
6110
|
);
|
|
6111
|
-
_ -= W - n.height, _ *=
|
|
6111
|
+
_ -= W - n.height, _ *= u ? 1 : -1;
|
|
6112
6112
|
}
|
|
6113
6113
|
if (s === Ye || (s === Re || s === qe) && o === la) {
|
|
6114
6114
|
w = ft;
|
|
@@ -6116,26 +6116,26 @@ function l1(t) {
|
|
|
6116
6116
|
// $FlowFixMe[prop-missing]
|
|
6117
6117
|
L[U]
|
|
6118
6118
|
);
|
|
6119
|
-
C -= O - n.width, C *=
|
|
6119
|
+
C -= O - n.width, C *= u ? 1 : -1;
|
|
6120
6120
|
}
|
|
6121
6121
|
}
|
|
6122
6122
|
var Y = Object.assign({
|
|
6123
6123
|
position: r
|
|
6124
|
-
}, c && I7), B =
|
|
6124
|
+
}, c && I7), B = l === !0 ? L7({
|
|
6125
6125
|
x: C,
|
|
6126
6126
|
y: _
|
|
6127
6127
|
}, Me(a)) : {
|
|
6128
6128
|
x: C,
|
|
6129
6129
|
y: _
|
|
6130
6130
|
};
|
|
6131
|
-
if (C = B.x, _ = B.y,
|
|
6131
|
+
if (C = B.x, _ = B.y, u) {
|
|
6132
6132
|
var F;
|
|
6133
6133
|
return Object.assign({}, Y, (F = {}, F[S] = A ? "0" : "", F[w] = m ? "0" : "", F.transform = (D.devicePixelRatio || 1) <= 1 ? "translate(" + C + "px, " + _ + "px)" : "translate3d(" + C + "px, " + _ + "px, 0)", F));
|
|
6134
6134
|
}
|
|
6135
6135
|
return Object.assign({}, Y, (e = {}, e[S] = A ? _ + "px" : "", e[w] = m ? C + "px" : "", e.transform = "", e));
|
|
6136
6136
|
}
|
|
6137
6137
|
function V7(t) {
|
|
6138
|
-
var e = t.state, a = t.options, n = a.gpuAcceleration, s = n === void 0 ? !0 : n, o = a.adaptive, i = o === void 0 ? !0 : o, r = a.roundOffsets,
|
|
6138
|
+
var e = t.state, a = t.options, n = a.gpuAcceleration, s = n === void 0 ? !0 : n, o = a.adaptive, i = o === void 0 ? !0 : o, r = a.roundOffsets, u = r === void 0 ? !0 : r, c = {
|
|
6139
6139
|
placement: lt(e.placement),
|
|
6140
6140
|
variation: Ft(e.placement),
|
|
6141
6141
|
popper: e.elements.popper,
|
|
@@ -6143,16 +6143,16 @@ function V7(t) {
|
|
|
6143
6143
|
gpuAcceleration: s,
|
|
6144
6144
|
isFixed: e.options.strategy === "fixed"
|
|
6145
6145
|
};
|
|
6146
|
-
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper,
|
|
6146
|
+
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, u1(Object.assign({}, c, {
|
|
6147
6147
|
offsets: e.modifiersData.popperOffsets,
|
|
6148
6148
|
position: e.options.strategy,
|
|
6149
6149
|
adaptive: i,
|
|
6150
|
-
roundOffsets:
|
|
6151
|
-
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow,
|
|
6150
|
+
roundOffsets: u
|
|
6151
|
+
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, u1(Object.assign({}, c, {
|
|
6152
6152
|
offsets: e.modifiersData.arrow,
|
|
6153
6153
|
position: "absolute",
|
|
6154
6154
|
adaptive: !1,
|
|
6155
|
-
roundOffsets:
|
|
6155
|
+
roundOffsets: u
|
|
6156
6156
|
})))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
|
|
6157
6157
|
"data-popper-placement": e.placement
|
|
6158
6158
|
});
|
|
@@ -6189,11 +6189,11 @@ function H7(t) {
|
|
|
6189
6189
|
};
|
|
6190
6190
|
return Object.assign(e.elements.popper.style, a.popper), e.styles = a, e.elements.arrow && Object.assign(e.elements.arrow.style, a.arrow), function() {
|
|
6191
6191
|
Object.keys(e.elements).forEach(function(n) {
|
|
6192
|
-
var s = e.elements[n], o = e.attributes[n] || {}, i = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : a[n]), r = i.reduce(function(
|
|
6193
|
-
return
|
|
6192
|
+
var s = e.elements[n], o = e.attributes[n] || {}, i = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : a[n]), r = i.reduce(function(u, c) {
|
|
6193
|
+
return u[c] = "", u;
|
|
6194
6194
|
}, {});
|
|
6195
|
-
!Pe(s) || !Fe(s) || (Object.assign(s.style, r), Object.keys(o).forEach(function(
|
|
6196
|
-
s.removeAttribute(
|
|
6195
|
+
!Pe(s) || !Fe(s) || (Object.assign(s.style, r), Object.keys(o).forEach(function(u) {
|
|
6196
|
+
s.removeAttribute(u);
|
|
6197
6197
|
}));
|
|
6198
6198
|
});
|
|
6199
6199
|
};
|
|
@@ -6219,11 +6219,11 @@ function U7(t, e, a) {
|
|
|
6219
6219
|
return n > a ? a : n;
|
|
6220
6220
|
}
|
|
6221
6221
|
function Z7(t) {
|
|
6222
|
-
var e = t.state, a = t.options, n = t.name, s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !1 : i,
|
|
6223
|
-
boundary:
|
|
6222
|
+
var e = t.state, a = t.options, n = t.name, s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !1 : i, u = a.boundary, c = a.rootBoundary, l = a.altBoundary, d = a.padding, f = a.tether, C = f === void 0 ? !0 : f, $ = a.tetherOffset, _ = $ === void 0 ? 0 : $, y = Hn(e, {
|
|
6223
|
+
boundary: u,
|
|
6224
6224
|
rootBoundary: c,
|
|
6225
6225
|
padding: d,
|
|
6226
|
-
altBoundary:
|
|
6226
|
+
altBoundary: l
|
|
6227
6227
|
}), m = lt(e.placement), A = Ft(e.placement), w = !A, S = Y1(m), D = j7(S), L = e.modifiersData.popperOffsets, Z = e.rects.reference, U = e.rects.popper, W = typeof _ == "function" ? _(Object.assign({}, e.rects, {
|
|
6228
6228
|
placement: e.placement
|
|
6229
6229
|
})) : _, O = typeof W == "number" ? {
|
|
@@ -6238,10 +6238,10 @@ function Z7(t) {
|
|
|
6238
6238
|
};
|
|
6239
6239
|
if (L) {
|
|
6240
6240
|
if (o) {
|
|
6241
|
-
var F, E = S === "y" ? Re : Ye, N = S === "y" ? qe : ft,
|
|
6241
|
+
var F, E = S === "y" ? Re : Ye, N = S === "y" ? qe : ft, Q = S === "y" ? "height" : "width", k = L[S], h = k + y[E], I = k - y[N], ee = C ? -U[Q] / 2 : 0, ne = A === Zt ? Z[Q] : U[Q], le = A === Zt ? -U[Q] : -Z[Q], se = e.elements.arrow, re = C && se ? W1(se) : {
|
|
6242
6242
|
width: 0,
|
|
6243
6243
|
height: 0
|
|
6244
|
-
}, z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : K1(), P = z[E], G = z[N], ve = Sa(0, Z[
|
|
6244
|
+
}, z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : K1(), P = z[E], G = z[N], ve = Sa(0, Z[Q], re[Q]), we = w ? Z[Q] / 2 - ee - ve - P - O.mainAxis : ne - ve - P - O.mainAxis, zt = w ? -Z[Q] / 2 + ee + ve + G + O.mainAxis : le + ve + G + O.mainAxis, xt = e.elements.arrow && Ka(e.elements.arrow), tt = xt ? S === "y" ? xt.clientTop || 0 : xt.clientLeft || 0 : 0, ha = (F = Y == null ? void 0 : Y[S]) != null ? F : 0, Qa = k + we - ha - tt, at = k + zt - ha, Ca = Sa(C ? Ha(h, Qa) : h, k, C ? wt(I, at) : I);
|
|
6245
6245
|
L[S] = Ca, B[S] = Ca - k;
|
|
6246
6246
|
}
|
|
6247
6247
|
if (r) {
|
|
@@ -6272,21 +6272,21 @@ var W7 = {
|
|
|
6272
6272
|
start: "end",
|
|
6273
6273
|
end: "start"
|
|
6274
6274
|
};
|
|
6275
|
-
function
|
|
6275
|
+
function d1(t) {
|
|
6276
6276
|
return t.replace(/start|end/g, function(e) {
|
|
6277
6277
|
return W7[e];
|
|
6278
6278
|
});
|
|
6279
6279
|
}
|
|
6280
6280
|
function z7(t, e) {
|
|
6281
6281
|
e === void 0 && (e = {});
|
|
6282
|
-
var a = e, n = a.placement, s = a.boundary, o = a.rootBoundary, i = a.padding, r = a.flipVariations,
|
|
6283
|
-
return Ft($) ===
|
|
6282
|
+
var a = e, n = a.placement, s = a.boundary, o = a.rootBoundary, i = a.padding, r = a.flipVariations, u = a.allowedAutoPlacements, c = u === void 0 ? n7 : u, l = Ft(n), d = l ? r ? i1 : i1.filter(function($) {
|
|
6283
|
+
return Ft($) === l;
|
|
6284
6284
|
}) : Xa, f = d.filter(function($) {
|
|
6285
6285
|
return c.indexOf($) >= 0;
|
|
6286
6286
|
});
|
|
6287
6287
|
f.length === 0 && (f = d);
|
|
6288
6288
|
var C = f.reduce(function($, _) {
|
|
6289
|
-
return $[_] =
|
|
6289
|
+
return $[_] = Hn(t, {
|
|
6290
6290
|
placement: _,
|
|
6291
6291
|
boundary: s,
|
|
6292
6292
|
rootBoundary: o,
|
|
@@ -6298,34 +6298,34 @@ function z7(t, e) {
|
|
|
6298
6298
|
});
|
|
6299
6299
|
}
|
|
6300
6300
|
function x7(t) {
|
|
6301
|
-
if (lt(t) ===
|
|
6301
|
+
if (lt(t) === Pn)
|
|
6302
6302
|
return [];
|
|
6303
6303
|
var e = Oa(t);
|
|
6304
|
-
return [
|
|
6304
|
+
return [d1(t), e, d1(e)];
|
|
6305
6305
|
}
|
|
6306
6306
|
function Y7(t) {
|
|
6307
6307
|
var e = t.state, a = t.options, n = t.name;
|
|
6308
6308
|
if (!e.modifiersData[n]._skip) {
|
|
6309
|
-
for (var s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !0 : i,
|
|
6310
|
-
return re.concat(lt(z) ===
|
|
6309
|
+
for (var s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !0 : i, u = a.fallbackPlacements, c = a.padding, l = a.boundary, d = a.rootBoundary, f = a.altBoundary, C = a.flipVariations, $ = C === void 0 ? !0 : C, _ = a.allowedAutoPlacements, y = e.options.placement, m = lt(y), A = m === y, w = u || (A || !$ ? [Oa(y)] : x7(y)), S = [y].concat(w).reduce(function(re, z) {
|
|
6310
|
+
return re.concat(lt(z) === Pn ? z7(e, {
|
|
6311
6311
|
placement: z,
|
|
6312
|
-
boundary:
|
|
6312
|
+
boundary: l,
|
|
6313
6313
|
rootBoundary: d,
|
|
6314
6314
|
padding: c,
|
|
6315
6315
|
flipVariations: $,
|
|
6316
6316
|
allowedAutoPlacements: _
|
|
6317
6317
|
}) : z);
|
|
6318
6318
|
}, []), D = e.rects.reference, L = e.rects.popper, Z = /* @__PURE__ */ new Map(), U = !0, W = S[0], O = 0; O < S.length; O++) {
|
|
6319
|
-
var Y = S[O], B = lt(Y), F = Ft(Y) === Zt, E = [Re, qe].indexOf(B) >= 0, N = E ? "width" : "height",
|
|
6319
|
+
var Y = S[O], B = lt(Y), F = Ft(Y) === Zt, E = [Re, qe].indexOf(B) >= 0, N = E ? "width" : "height", Q = Hn(e, {
|
|
6320
6320
|
placement: Y,
|
|
6321
|
-
boundary:
|
|
6321
|
+
boundary: l,
|
|
6322
6322
|
rootBoundary: d,
|
|
6323
6323
|
altBoundary: f,
|
|
6324
6324
|
padding: c
|
|
6325
6325
|
}), k = E ? F ? ft : Ye : F ? qe : Re;
|
|
6326
6326
|
D[N] > L[N] && (k = Oa(k));
|
|
6327
6327
|
var h = Oa(k), I = [];
|
|
6328
|
-
if (o && I.push(
|
|
6328
|
+
if (o && I.push(Q[B] <= 0), r && I.push(Q[k] <= 0, Q[h] <= 0), I.every(function(re) {
|
|
6329
6329
|
return re;
|
|
6330
6330
|
})) {
|
|
6331
6331
|
W = Y, U = !1;
|
|
@@ -6363,12 +6363,12 @@ var G7 = {
|
|
|
6363
6363
|
}
|
|
6364
6364
|
};
|
|
6365
6365
|
function K7(t, e, a) {
|
|
6366
|
-
const { disabled: n, appendTo: s, appendToBody: o, openDirection: i } = Ae(t), r = Mt().proxy,
|
|
6367
|
-
|
|
6366
|
+
const { disabled: n, appendTo: s, appendToBody: o, openDirection: i } = Ae(t), r = Mt().proxy, u = a.multiselect, c = a.dropdown, l = ae(!1), d = ae(null), f = ae(null), C = M(() => s.value || o.value), $ = M(() => i.value === "top" && f.value === "bottom" || i.value === "bottom" && f.value !== "top" ? "bottom" : "top"), _ = () => {
|
|
6367
|
+
l.value || n.value || (l.value = !0, e.emit("open", r), C.value && De(() => {
|
|
6368
6368
|
m();
|
|
6369
6369
|
}));
|
|
6370
6370
|
}, y = () => {
|
|
6371
|
-
|
|
6371
|
+
l.value && (l.value = !1, e.emit("close", r));
|
|
6372
6372
|
}, m = () => {
|
|
6373
6373
|
if (!d.value)
|
|
6374
6374
|
return;
|
|
@@ -6394,8 +6394,8 @@ function K7(t, e, a) {
|
|
|
6394
6394
|
return !1;
|
|
6395
6395
|
};
|
|
6396
6396
|
return qt(() => {
|
|
6397
|
-
C.value && (d.value = N7(
|
|
6398
|
-
strategy: A(
|
|
6397
|
+
C.value && (d.value = N7(u.value, c.value, {
|
|
6398
|
+
strategy: A(u.value) ? (
|
|
6399
6399
|
/* istanbul ignore next: UI feature */
|
|
6400
6400
|
"fixed"
|
|
6401
6401
|
) : void 0,
|
|
@@ -6425,11 +6425,11 @@ function K7(t, e, a) {
|
|
|
6425
6425
|
}
|
|
6426
6426
|
]
|
|
6427
6427
|
}));
|
|
6428
|
-
}),
|
|
6428
|
+
}), p1(() => {
|
|
6429
6429
|
!C.value || !d.value || (d.value.destroy(), d.value = null);
|
|
6430
6430
|
}), {
|
|
6431
6431
|
popper: d,
|
|
6432
|
-
isOpen:
|
|
6432
|
+
isOpen: l,
|
|
6433
6433
|
open: _,
|
|
6434
6434
|
close: y,
|
|
6435
6435
|
placement: $,
|
|
@@ -6437,7 +6437,7 @@ function K7(t, e, a) {
|
|
|
6437
6437
|
};
|
|
6438
6438
|
}
|
|
6439
6439
|
function X7(t, e, a) {
|
|
6440
|
-
const { searchable: n, disabled: s, clearOnBlur: o } = Ae(t), i = a.input, r = a.open,
|
|
6440
|
+
const { searchable: n, disabled: s, clearOnBlur: o } = Ae(t), i = a.input, r = a.open, u = a.close, c = a.clearSearch, l = a.isOpen, d = a.wrapper, f = a.tags, C = ae(!1), $ = ae(!1), _ = M(() => n.value || s.value ? -1 : 0), y = () => {
|
|
6441
6441
|
n.value && i.value.blur(), d.value.blur();
|
|
6442
6442
|
}, m = () => {
|
|
6443
6443
|
n.value && !s.value && i.value.focus();
|
|
@@ -6445,7 +6445,7 @@ function X7(t, e, a) {
|
|
|
6445
6445
|
s.value || (C.value = !0, U && r());
|
|
6446
6446
|
}, w = () => {
|
|
6447
6447
|
C.value = !1, setTimeout(() => {
|
|
6448
|
-
C.value || (
|
|
6448
|
+
C.value || (u(), o.value && c());
|
|
6449
6449
|
}, 1);
|
|
6450
6450
|
};
|
|
6451
6451
|
return {
|
|
@@ -6466,9 +6466,9 @@ function X7(t, e, a) {
|
|
|
6466
6466
|
w(), y();
|
|
6467
6467
|
},
|
|
6468
6468
|
handleMousedown: (U) => {
|
|
6469
|
-
$.value = !0,
|
|
6469
|
+
$.value = !0, l.value && (U.target.isEqualNode(d.value) || U.target.isEqualNode(f.value)) ? setTimeout(() => {
|
|
6470
6470
|
w();
|
|
6471
|
-
}, 0) : !
|
|
6471
|
+
}, 0) : !l.value && (document.activeElement.isEqualNode(d.value) || document.activeElement.isEqualNode(i.value)) && A(), setTimeout(() => {
|
|
6472
6472
|
$.value = !1;
|
|
6473
6473
|
}, 0);
|
|
6474
6474
|
}
|
|
@@ -6481,14 +6481,14 @@ function Q7(t, e, a) {
|
|
|
6481
6481
|
openDirection: o,
|
|
6482
6482
|
searchable: i,
|
|
6483
6483
|
showOptions: r,
|
|
6484
|
-
valueProp:
|
|
6484
|
+
valueProp: u,
|
|
6485
6485
|
groups: c,
|
|
6486
|
-
addOptionOn:
|
|
6486
|
+
addOptionOn: l,
|
|
6487
6487
|
createTag: d,
|
|
6488
6488
|
createOption: f,
|
|
6489
6489
|
reverse: C
|
|
6490
|
-
} = Ae(t), $ = Mt().proxy, _ = a.iv, y = a.update, m = a.deselect, A = a.search, w = a.setPointer, S = a.selectPointer, D = a.backwardPointer, L = a.forwardPointer, Z = a.multiselect, U = a.wrapper, W = a.tags, O = a.isOpen, Y = a.open, B = a.blur, F = a.fo, E = M(() => d.value || f.value || !1), N = M(() => s.value !== void 0 ? s.value :
|
|
6491
|
-
n.value === "tags" && !r.value && E.value && i.value && !c.value && w(F.value[F.value.map((I) => I[
|
|
6490
|
+
} = Ae(t), $ = Mt().proxy, _ = a.iv, y = a.update, m = a.deselect, A = a.search, w = a.setPointer, S = a.selectPointer, D = a.backwardPointer, L = a.forwardPointer, Z = a.multiselect, U = a.wrapper, W = a.tags, O = a.isOpen, Y = a.open, B = a.blur, F = a.fo, E = M(() => d.value || f.value || !1), N = M(() => s.value !== void 0 ? s.value : l.value !== void 0 ? l.value : ["enter"]), Q = () => {
|
|
6491
|
+
n.value === "tags" && !r.value && E.value && i.value && !c.value && w(F.value[F.value.map((I) => I[u.value]).indexOf(A.value)]);
|
|
6492
6492
|
};
|
|
6493
6493
|
return {
|
|
6494
6494
|
handleKeydown: (I) => {
|
|
@@ -6510,25 +6510,25 @@ function Q7(t, e, a) {
|
|
|
6510
6510
|
}
|
|
6511
6511
|
if (N.value.indexOf("enter") === -1 && E.value)
|
|
6512
6512
|
return;
|
|
6513
|
-
|
|
6513
|
+
Q(), S();
|
|
6514
6514
|
break;
|
|
6515
6515
|
case " ":
|
|
6516
6516
|
if (!E.value && !i.value) {
|
|
6517
|
-
I.preventDefault(),
|
|
6517
|
+
I.preventDefault(), Q(), S();
|
|
6518
6518
|
return;
|
|
6519
6519
|
}
|
|
6520
6520
|
if (!E.value)
|
|
6521
6521
|
return !1;
|
|
6522
6522
|
if (N.value.indexOf("space") === -1 && E.value)
|
|
6523
6523
|
return;
|
|
6524
|
-
I.preventDefault(),
|
|
6524
|
+
I.preventDefault(), Q(), S();
|
|
6525
6525
|
break;
|
|
6526
6526
|
case "Tab":
|
|
6527
6527
|
case ";":
|
|
6528
6528
|
case ",":
|
|
6529
6529
|
if (N.value.indexOf(I.key.toLowerCase()) === -1 || !E.value)
|
|
6530
6530
|
return;
|
|
6531
|
-
|
|
6531
|
+
Q(), S(), I.preventDefault();
|
|
6532
6532
|
break;
|
|
6533
6533
|
case "Escape":
|
|
6534
6534
|
B();
|
|
@@ -6558,7 +6558,7 @@ function Q7(t, e, a) {
|
|
|
6558
6558
|
handleKeyup: (I) => {
|
|
6559
6559
|
e.emit("keyup", I, $);
|
|
6560
6560
|
},
|
|
6561
|
-
preparePointer:
|
|
6561
|
+
preparePointer: Q
|
|
6562
6562
|
};
|
|
6563
6563
|
}
|
|
6564
6564
|
function J7(t, e, a) {
|
|
@@ -6567,7 +6567,7 @@ function J7(t, e, a) {
|
|
|
6567
6567
|
disabled: s,
|
|
6568
6568
|
showOptions: o,
|
|
6569
6569
|
breakTags: i
|
|
6570
|
-
} = Ae(t), r = a.isOpen,
|
|
6570
|
+
} = Ae(t), r = a.isOpen, u = a.isPointed, c = a.isSelected, l = a.isDisabled, d = a.isActive, f = a.canPointGroups, C = a.resolving, $ = a.fo, _ = a.placement, y = M(() => ({
|
|
6571
6571
|
container: "multiselect",
|
|
6572
6572
|
containerDisabled: "is-disabled",
|
|
6573
6573
|
containerOpen: "is-open",
|
|
@@ -6655,12 +6655,12 @@ function J7(t, e, a) {
|
|
|
6655
6655
|
group: w.group,
|
|
6656
6656
|
groupLabel: (S) => {
|
|
6657
6657
|
let D = [w.groupLabel];
|
|
6658
|
-
return
|
|
6658
|
+
return u(S) ? D.push(c(S) ? w.groupLabelSelectedPointed : w.groupLabelPointed) : c(S) && f.value ? D.push(l(S) ? w.groupLabelSelectedDisabled : w.groupLabelSelected) : l(S) && D.push(w.groupLabelDisabled), f.value && D.push(w.groupLabelPointable), D;
|
|
6659
6659
|
},
|
|
6660
6660
|
groupOptions: w.groupOptions,
|
|
6661
6661
|
option: (S, D) => {
|
|
6662
6662
|
let L = [w.option];
|
|
6663
|
-
return
|
|
6663
|
+
return u(S) ? L.push(c(S) ? w.optionSelectedPointed : w.optionPointed) : c(S) ? L.push(l(S) ? w.optionSelectedDisabled : w.optionSelected) : (l(S) || D && l(D)) && L.push(w.optionDisabled), L;
|
|
6664
6664
|
},
|
|
6665
6665
|
noOptions: w.noOptions,
|
|
6666
6666
|
noResults: w.noResults,
|
|
@@ -6675,7 +6675,7 @@ function e9(t, e, a) {
|
|
|
6675
6675
|
const {
|
|
6676
6676
|
limit: n,
|
|
6677
6677
|
infinite: s
|
|
6678
|
-
} = Ae(t), o = a.isOpen, i = a.offset, r = a.search,
|
|
6678
|
+
} = Ae(t), o = a.isOpen, i = a.offset, r = a.search, u = a.pfo, c = a.eo, l = ae(null), d = ae(null), f = M(() => i.value < u.value.length), C = (_) => {
|
|
6679
6679
|
const { isIntersecting: y, target: m } = _[0];
|
|
6680
6680
|
if (y) {
|
|
6681
6681
|
const A = m.offsetParent, w = A.scrollTop;
|
|
@@ -6684,7 +6684,7 @@ function e9(t, e, a) {
|
|
|
6684
6684
|
});
|
|
6685
6685
|
}
|
|
6686
6686
|
}, $ = () => {
|
|
6687
|
-
o.value && i.value <
|
|
6687
|
+
o.value && i.value < u.value.length ? l.value.observe(d.value) : !o.value && l.value && l.value.disconnect();
|
|
6688
6688
|
};
|
|
6689
6689
|
return ce(o, () => {
|
|
6690
6690
|
s.value && $();
|
|
@@ -6693,7 +6693,7 @@ function e9(t, e, a) {
|
|
|
6693
6693
|
}, { flush: "post" }), ce(c, () => {
|
|
6694
6694
|
s.value && $();
|
|
6695
6695
|
}, { immediate: !1, flush: "post" }), qt(() => {
|
|
6696
|
-
window && window.IntersectionObserver && (
|
|
6696
|
+
window && window.IntersectionObserver && (l.value = new IntersectionObserver(C));
|
|
6697
6697
|
}), {
|
|
6698
6698
|
hasMore: f,
|
|
6699
6699
|
infiniteLoader: d
|
|
@@ -6706,9 +6706,9 @@ function t9(t, e, a) {
|
|
|
6706
6706
|
valueProp: o,
|
|
6707
6707
|
label: i,
|
|
6708
6708
|
mode: r,
|
|
6709
|
-
groupLabel:
|
|
6709
|
+
groupLabel: u,
|
|
6710
6710
|
aria: c,
|
|
6711
|
-
searchable:
|
|
6711
|
+
searchable: l
|
|
6712
6712
|
} = Ae(t), d = a.pointer, f = a.iv, C = a.hasSelected, $ = a.multipleLabelText, _ = ae(null), y = M(() => {
|
|
6713
6713
|
let B = [];
|
|
6714
6714
|
return s && s.value && B.push(s.value), B.push("assist"), B.join("-");
|
|
@@ -6724,7 +6724,7 @@ function t9(t, e, a) {
|
|
|
6724
6724
|
return r.value === "single" && C.value && (B += f.value[i.value]), r.value === "multiple" && C.value && (B += $.value), r.value === "tags" && C.value && (B += f.value.map((F) => F[i.value]).join(", ")), B;
|
|
6725
6725
|
}), L = M(() => {
|
|
6726
6726
|
let B = { ...c.value };
|
|
6727
|
-
return
|
|
6727
|
+
return l.value && (B["aria-labelledby"] = B["aria-labelledby"] ? `${y.value} ${B["aria-labelledby"]}` : y.value, D.value && B["aria-label"] && (B["aria-label"] = `${D.value}, ${B["aria-label"]}`)), B;
|
|
6728
6728
|
}), Z = (B) => {
|
|
6729
6729
|
let F = [];
|
|
6730
6730
|
return s && s.value && F.push(s.value), F.push("multiselect-option"), F.push(B[o.value]), F.join("-");
|
|
@@ -7225,7 +7225,7 @@ function A9(t, e, a, n, s, o) {
|
|
|
7225
7225
|
(v(!0), g(
|
|
7226
7226
|
Ce,
|
|
7227
7227
|
null,
|
|
7228
|
-
ye(t.iv, (i, r,
|
|
7228
|
+
ye(t.iv, (i, r, u) => te(t.$slots, "tag", {
|
|
7229
7229
|
option: i,
|
|
7230
7230
|
handleTagRemove: t.handleTagRemove,
|
|
7231
7231
|
disabled: a.disabled
|
|
@@ -7237,7 +7237,7 @@ function A9(t, e, a, n, s, o) {
|
|
|
7237
7237
|
]),
|
|
7238
7238
|
tabindex: "-1",
|
|
7239
7239
|
onKeyup: ut((c) => t.handleTagRemove(i, c), ["enter"]),
|
|
7240
|
-
key:
|
|
7240
|
+
key: u,
|
|
7241
7241
|
"aria-label": t.ariaTagLabel(t.localize(i[a.label]))
|
|
7242
7242
|
}, [
|
|
7243
7243
|
p(
|
|
@@ -7449,9 +7449,9 @@ function A9(t, e, a, n, s, o) {
|
|
|
7449
7449
|
a.groups ? (v(!0), g(
|
|
7450
7450
|
Ce,
|
|
7451
7451
|
{ key: 0 },
|
|
7452
|
-
ye(t.fg, (i, r,
|
|
7452
|
+
ye(t.fg, (i, r, u) => (v(), g("li", {
|
|
7453
7453
|
class: x(t.classList.group),
|
|
7454
|
-
key:
|
|
7454
|
+
key: u,
|
|
7455
7455
|
id: t.ariaGroupId(i),
|
|
7456
7456
|
"aria-label": t.ariaGroupLabel(t.localize(i[a.groupLabel])),
|
|
7457
7457
|
"aria-selected": t.isSelected(i),
|
|
@@ -7482,7 +7482,7 @@ function A9(t, e, a, n, s, o) {
|
|
|
7482
7482
|
(v(!0), g(
|
|
7483
7483
|
Ce,
|
|
7484
7484
|
null,
|
|
7485
|
-
ye(i.__VISIBLE__, (c,
|
|
7485
|
+
ye(i.__VISIBLE__, (c, l, d) => (v(), g("li", {
|
|
7486
7486
|
class: x(t.classList.option(c, i)),
|
|
7487
7487
|
"data-pointed": t.isPointed(c),
|
|
7488
7488
|
"data-selected": t.isSelected(c) || void 0,
|
|
@@ -7519,11 +7519,11 @@ function A9(t, e, a, n, s, o) {
|
|
|
7519
7519
|
)) : (v(!0), g(
|
|
7520
7520
|
Ce,
|
|
7521
7521
|
{ key: 1 },
|
|
7522
|
-
ye(t.fo, (i, r,
|
|
7522
|
+
ye(t.fo, (i, r, u) => (v(), g("li", {
|
|
7523
7523
|
class: x(t.classList.option(i)),
|
|
7524
7524
|
"data-pointed": t.isPointed(i),
|
|
7525
7525
|
"data-selected": t.isSelected(i) || void 0,
|
|
7526
|
-
key:
|
|
7526
|
+
key: u,
|
|
7527
7527
|
onMouseenter: (c) => t.setPointer(i),
|
|
7528
7528
|
onMousedown: he((c) => t.handleOptionClick(i), ["prevent"]),
|
|
7529
7529
|
id: t.ariaOptionId(i),
|
|
@@ -7654,21 +7654,21 @@ const $e = /* @__PURE__ */ J({
|
|
|
7654
7654
|
return e.detached && j5({
|
|
7655
7655
|
multiselect: n,
|
|
7656
7656
|
appendTo: a.value
|
|
7657
|
-
}), (s, o) => (v(), R(
|
|
7657
|
+
}), (s, o) => (v(), R(X(ot), {
|
|
7658
7658
|
ref_key: "multiselectRef",
|
|
7659
7659
|
ref: n,
|
|
7660
7660
|
class: "ao-multiselect"
|
|
7661
7661
|
}, Na({ _: 2 }, [
|
|
7662
7662
|
ye(s.$slots, (i, r) => ({
|
|
7663
7663
|
name: r,
|
|
7664
|
-
fn: q((
|
|
7665
|
-
te(s.$slots, r, ua(da(
|
|
7664
|
+
fn: q((u) => [
|
|
7665
|
+
te(s.$slots, r, ua(da(u ?? {})))
|
|
7666
7666
|
])
|
|
7667
7667
|
}))
|
|
7668
7668
|
]), 1536));
|
|
7669
7669
|
}
|
|
7670
7670
|
});
|
|
7671
|
-
var
|
|
7671
|
+
var c1;
|
|
7672
7672
|
function At() {
|
|
7673
7673
|
const t = T9(), e = t.appContext.config.globalProperties;
|
|
7674
7674
|
return {
|
|
@@ -7693,10 +7693,10 @@ J({
|
|
|
7693
7693
|
return () => {
|
|
7694
7694
|
const a = t.translation, n = [];
|
|
7695
7695
|
let s, o = 0;
|
|
7696
|
-
for (; (s =
|
|
7696
|
+
for (; (s = c1.exec(a)) !== null; ) {
|
|
7697
7697
|
n.push(a.substring(o, s.index));
|
|
7698
7698
|
const i = e[s[1]];
|
|
7699
|
-
i ? n.push(...i()) : n.push(s[0]), o =
|
|
7699
|
+
i ? n.push(...i()) : n.push(s[0]), o = c1.lastIndex;
|
|
7700
7700
|
}
|
|
7701
7701
|
return n.push(a.substring(o)), n;
|
|
7702
7702
|
};
|
|
@@ -7761,14 +7761,14 @@ const S9 = { class: "ao-tasks" }, O9 = { class: "ao-tasks__list" }, E9 = ["id",
|
|
|
7761
7761
|
id: d,
|
|
7762
7762
|
isDone: f
|
|
7763
7763
|
});
|
|
7764
|
-
},
|
|
7764
|
+
}, u = (d) => {
|
|
7765
7765
|
e("delete", { id: d });
|
|
7766
7766
|
}, c = (d, f) => {
|
|
7767
7767
|
e("update", {
|
|
7768
7768
|
id: f,
|
|
7769
7769
|
assigneeId: d[0] ?? null
|
|
7770
7770
|
});
|
|
7771
|
-
},
|
|
7771
|
+
}, l = (d) => {
|
|
7772
7772
|
const f = d.target;
|
|
7773
7773
|
f == null || f.blur();
|
|
7774
7774
|
};
|
|
@@ -7796,7 +7796,7 @@ const S9 = { class: "ao-tasks" }, O9 = { class: "ao-tasks__list" }, E9 = ["id",
|
|
|
7796
7796
|
class: x(["ao-field__input ao-subtask__field", { "ao-subtask__field--checked": C.isDone }]),
|
|
7797
7797
|
type: "text",
|
|
7798
7798
|
onChange: (y) => i(y, C.id),
|
|
7799
|
-
onKeyup: ut(
|
|
7799
|
+
onKeyup: ut(l, ["enter"])
|
|
7800
7800
|
}, null, 42, E9),
|
|
7801
7801
|
Ra(". "),
|
|
7802
7802
|
!d.isTemplate && d.users ? (v(), R($e, {
|
|
@@ -7830,7 +7830,7 @@ const S9 = { class: "ao-tasks" }, O9 = { class: "ao-tasks__list" }, E9 = ["id",
|
|
|
7830
7830
|
size: "sm",
|
|
7831
7831
|
variant: "ghost",
|
|
7832
7832
|
color: "neutral",
|
|
7833
|
-
onClick: () =>
|
|
7833
|
+
onClick: () => u(C.id)
|
|
7834
7834
|
}, null, 8, ["onClick"])) : T("", !0)
|
|
7835
7835
|
]);
|
|
7836
7836
|
}), 128))
|
|
@@ -7859,20 +7859,20 @@ const V9 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], D9 = { class:
|
|
|
7859
7859
|
},
|
|
7860
7860
|
emits: ["add", "toggleIsDropActive", "remove"],
|
|
7861
7861
|
setup(t, { emit: e }) {
|
|
7862
|
-
const a = t, n = (
|
|
7863
|
-
e("remove",
|
|
7864
|
-
}, s = (
|
|
7865
|
-
const d =
|
|
7862
|
+
const a = t, n = (l) => {
|
|
7863
|
+
e("remove", l);
|
|
7864
|
+
}, s = (l) => {
|
|
7865
|
+
const d = l.target, f = Array.from(d.files ?? []);
|
|
7866
7866
|
e("add", f);
|
|
7867
7867
|
}, o = ["dragenter", "dragover", "dragleave", "drop"];
|
|
7868
7868
|
qt(() => {
|
|
7869
|
-
o.forEach((
|
|
7870
|
-
document.body.addEventListener(
|
|
7869
|
+
o.forEach((l) => {
|
|
7870
|
+
document.body.addEventListener(l, (d) => d.preventDefault());
|
|
7871
7871
|
});
|
|
7872
|
-
}),
|
|
7873
|
-
o.forEach((
|
|
7872
|
+
}), m1(() => {
|
|
7873
|
+
o.forEach((l) => {
|
|
7874
7874
|
document.body.removeEventListener(
|
|
7875
|
-
|
|
7875
|
+
l,
|
|
7876
7876
|
(d) => d.preventDefault()
|
|
7877
7877
|
);
|
|
7878
7878
|
});
|
|
@@ -7881,19 +7881,19 @@ const V9 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], D9 = { class:
|
|
|
7881
7881
|
function r() {
|
|
7882
7882
|
a.isEditable && (i.value = !0);
|
|
7883
7883
|
}
|
|
7884
|
-
function
|
|
7884
|
+
function u() {
|
|
7885
7885
|
i.value = !1;
|
|
7886
7886
|
}
|
|
7887
|
-
ce(i, (
|
|
7888
|
-
e("toggleIsDropActive",
|
|
7887
|
+
ce(i, (l) => {
|
|
7888
|
+
e("toggleIsDropActive", l);
|
|
7889
7889
|
});
|
|
7890
|
-
function c(
|
|
7890
|
+
function c(l) {
|
|
7891
7891
|
var f;
|
|
7892
|
-
|
|
7893
|
-
const d = Array.from(((f =
|
|
7894
|
-
|
|
7892
|
+
u();
|
|
7893
|
+
const d = Array.from(((f = l.dataTransfer) == null ? void 0 : f.files) || []);
|
|
7894
|
+
l.dataTransfer && e("add", d);
|
|
7895
7895
|
}
|
|
7896
|
-
return (
|
|
7896
|
+
return (l, d) => (v(), g("div", {
|
|
7897
7897
|
class: x([
|
|
7898
7898
|
"ao-files__wrapper",
|
|
7899
7899
|
{
|
|
@@ -7903,13 +7903,13 @@ const V9 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], D9 = { class:
|
|
|
7903
7903
|
onDrop: he(c, ["prevent"]),
|
|
7904
7904
|
onDragenter: he(r, ["prevent"]),
|
|
7905
7905
|
onDragover: he(r, ["prevent"]),
|
|
7906
|
-
onDragleave: he(
|
|
7906
|
+
onDragleave: he(u, ["prevent"])
|
|
7907
7907
|
}, [
|
|
7908
|
-
te(
|
|
7909
|
-
p("span", D9, K(
|
|
7908
|
+
te(l.$slots, "default", {}, () => [
|
|
7909
|
+
p("span", D9, K(l.$t("activity.attachment.placeholder.resting")), 1)
|
|
7910
7910
|
]),
|
|
7911
|
-
|
|
7912
|
-
(v(!0), g(Ce, null, ye(
|
|
7911
|
+
l.attachments ? (v(), g("ul", P9, [
|
|
7912
|
+
(v(!0), g(Ce, null, ye(l.attachments, (f) => (v(), g("li", {
|
|
7913
7913
|
key: f.id,
|
|
7914
7914
|
class: "ao-file"
|
|
7915
7915
|
}, [
|
|
@@ -7926,7 +7926,7 @@ const V9 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], D9 = { class:
|
|
|
7926
7926
|
}),
|
|
7927
7927
|
p("span", B9, K(f.name), 1)
|
|
7928
7928
|
], 8, H9),
|
|
7929
|
-
|
|
7929
|
+
l.isEditable ? (v(), R(de, {
|
|
7930
7930
|
key: 0,
|
|
7931
7931
|
class: "ao-files__delete-button",
|
|
7932
7932
|
"icon-name": "DeleteOutlineRounded",
|
|
@@ -7937,14 +7937,14 @@ const V9 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], D9 = { class:
|
|
|
7937
7937
|
onClick: () => n(f)
|
|
7938
7938
|
}, null, 8, ["onClick"])) : T("", !0)
|
|
7939
7939
|
]))), 128)),
|
|
7940
|
-
|
|
7940
|
+
l.isEditable ? (v(), g("li", R9, [
|
|
7941
7941
|
p("label", N9, [
|
|
7942
7942
|
p("div", j9, [
|
|
7943
7943
|
V(fe, {
|
|
7944
7944
|
name: "Add",
|
|
7945
7945
|
size: "sm"
|
|
7946
7946
|
}),
|
|
7947
|
-
p("span", U9, K(
|
|
7947
|
+
p("span", U9, K(l.$t("activity.attachment.button.resting")), 1)
|
|
7948
7948
|
]),
|
|
7949
7949
|
p("input", {
|
|
7950
7950
|
class: "input-field",
|
|
@@ -7958,7 +7958,7 @@ const V9 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], D9 = { class:
|
|
|
7958
7958
|
])) : T("", !0)
|
|
7959
7959
|
])) : T("", !0),
|
|
7960
7960
|
rt(p("div", Z9, [
|
|
7961
|
-
p("span", F9, K(
|
|
7961
|
+
p("span", F9, K(l.$t("activity.attachment.placeholder.active")), 1)
|
|
7962
7962
|
], 512), [
|
|
7963
7963
|
[ys, i.value]
|
|
7964
7964
|
])
|
|
@@ -7982,10 +7982,10 @@ const W9 = { class: "ao-comment" }, z9 = { class: "ao-comment__created-at" }, x9
|
|
|
7982
7982
|
const a = t, n = M(() => {
|
|
7983
7983
|
const _ = a.user;
|
|
7984
7984
|
return _ ? `${_ == null ? void 0 : _.firstName} ${_ == null ? void 0 : _.lastName}` : null;
|
|
7985
|
-
}), s = ae(null), { isEditing: o, toggleIsEditing: i, onUpdate: r, onDiscard:
|
|
7985
|
+
}), s = ae(null), { isEditing: o, toggleIsEditing: i, onUpdate: r, onDiscard: u } = C1(s), c = M(() => {
|
|
7986
7986
|
const _ = a.editedAt && ia(a.editedAt), y = ia(a.createdAt), m = /* @__PURE__ */ new Date(), A = _ ?? y;
|
|
7987
7987
|
return A && q0(A, m);
|
|
7988
|
-
}),
|
|
7988
|
+
}), l = M(() => o.value ? "textarea" : "p"), d = u(), f = r((_) => {
|
|
7989
7989
|
e("edit", _);
|
|
7990
7990
|
}), C = () => {
|
|
7991
7991
|
e("remove");
|
|
@@ -8010,15 +8010,15 @@ const W9 = { class: "ao-comment" }, z9 = { class: "ao-comment__created-at" }, x9
|
|
|
8010
8010
|
p("span", z9, K(c.value), 1),
|
|
8011
8011
|
p("div", x9, [
|
|
8012
8012
|
p("div", Y9, [
|
|
8013
|
-
(v(), R(vt(
|
|
8013
|
+
(v(), R(vt(l.value), {
|
|
8014
8014
|
ref_key: "commentContent",
|
|
8015
8015
|
ref: s,
|
|
8016
8016
|
class: "ao-comment__content",
|
|
8017
|
-
value:
|
|
8018
|
-
rows:
|
|
8017
|
+
value: X(o) ? _.content : null,
|
|
8018
|
+
rows: X(o) ? $.value : null,
|
|
8019
8019
|
onKeyup: [
|
|
8020
|
-
ut(
|
|
8021
|
-
ut(he(
|
|
8020
|
+
ut(X(d), ["esc"]),
|
|
8021
|
+
ut(he(X(f), ["ctrl"]), ["enter"])
|
|
8022
8022
|
]
|
|
8023
8023
|
}, {
|
|
8024
8024
|
default: q(() => [
|
|
@@ -8029,13 +8029,13 @@ const W9 = { class: "ao-comment" }, z9 = { class: "ao-comment__created-at" }, x9
|
|
|
8029
8029
|
])
|
|
8030
8030
|
]),
|
|
8031
8031
|
_.isEditable ? (v(), g("div", G9, [
|
|
8032
|
-
|
|
8032
|
+
X(o) ? (v(), g(Ce, { key: 0 }, [
|
|
8033
8033
|
V(de, {
|
|
8034
8034
|
"icon-name": "CloseRounded",
|
|
8035
8035
|
size: "sm",
|
|
8036
8036
|
variant: "ghost",
|
|
8037
8037
|
color: "neutral",
|
|
8038
|
-
onClick:
|
|
8038
|
+
onClick: X(d)
|
|
8039
8039
|
}, null, 8, ["onClick"]),
|
|
8040
8040
|
V(de, {
|
|
8041
8041
|
"icon-name": "CheckSmallRounded",
|
|
@@ -8043,7 +8043,7 @@ const W9 = { class: "ao-comment" }, z9 = { class: "ao-comment__created-at" }, x9
|
|
|
8043
8043
|
variant: "solid",
|
|
8044
8044
|
corners: "round",
|
|
8045
8045
|
color: "black",
|
|
8046
|
-
onClick:
|
|
8046
|
+
onClick: X(f)
|
|
8047
8047
|
}, null, 8, ["onClick"])
|
|
8048
8048
|
], 64)) : (v(), g(Ce, { key: 1 }, [
|
|
8049
8049
|
V(de, {
|
|
@@ -8058,7 +8058,7 @@ const W9 = { class: "ao-comment" }, z9 = { class: "ao-comment__created-at" }, x9
|
|
|
8058
8058
|
size: "sm",
|
|
8059
8059
|
variant: "ghost",
|
|
8060
8060
|
color: "neutral",
|
|
8061
|
-
onClick:
|
|
8061
|
+
onClick: X(i)
|
|
8062
8062
|
}, null, 8, ["label", "onClick"])
|
|
8063
8063
|
], 64))
|
|
8064
8064
|
])) : T("", !0)
|
|
@@ -8092,7 +8092,7 @@ const X9 = { class: "ao-comments__header" }, Q9 = ["onSubmit"], J9 = ["placehold
|
|
|
8092
8092
|
set(d) {
|
|
8093
8093
|
i.value = d;
|
|
8094
8094
|
}
|
|
8095
|
-
}),
|
|
8095
|
+
}), u = () => {
|
|
8096
8096
|
const d = i.value.trim();
|
|
8097
8097
|
d && (e("createComment", { authorId: a.userId, message: d }), i.value = "");
|
|
8098
8098
|
}, c = (d, f) => {
|
|
@@ -8100,7 +8100,7 @@ const X9 = { class: "ao-comments__header" }, Q9 = ["onSubmit"], J9 = ["placehold
|
|
|
8100
8100
|
id: d,
|
|
8101
8101
|
message: f
|
|
8102
8102
|
});
|
|
8103
|
-
},
|
|
8103
|
+
}, l = (d) => {
|
|
8104
8104
|
e("removeComment", { id: d });
|
|
8105
8105
|
};
|
|
8106
8106
|
return (d, f) => {
|
|
@@ -8113,7 +8113,7 @@ const X9 = { class: "ao-comments__header" }, Q9 = ["onSubmit"], J9 = ["placehold
|
|
|
8113
8113
|
p("div", X9, [
|
|
8114
8114
|
p("form", {
|
|
8115
8115
|
class: "ao-comments__form",
|
|
8116
|
-
onSubmit: he(
|
|
8116
|
+
onSubmit: he(u, ["prevent"])
|
|
8117
8117
|
}, [
|
|
8118
8118
|
rt(p("textarea", {
|
|
8119
8119
|
"onUpdate:modelValue": f[0] || (f[0] = ($) => r.value = $),
|
|
@@ -8150,7 +8150,7 @@ const X9 = { class: "ao-comments__header" }, Q9 = ["onSubmit"], J9 = ["placehold
|
|
|
8150
8150
|
"is-editable": $.author.id === d.userId,
|
|
8151
8151
|
class: "ao-comment",
|
|
8152
8152
|
onEdit: (_) => c($.id, _),
|
|
8153
|
-
onRemove: () =>
|
|
8153
|
+
onRemove: () => l($.id)
|
|
8154
8154
|
}, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
|
|
8155
8155
|
])) : T("", !0)
|
|
8156
8156
|
], 512);
|
|
@@ -8169,7 +8169,7 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8169
8169
|
e("update:modelValue", !a.modelValue);
|
|
8170
8170
|
};
|
|
8171
8171
|
return (s, o) => (v(), R(de, {
|
|
8172
|
-
color: s.modelValue ? s.color :
|
|
8172
|
+
color: s.modelValue ? s.color : X(_n).NEUTRAL,
|
|
8173
8173
|
"icon-position": "start",
|
|
8174
8174
|
onClick: o[0] || (o[0] = () => n())
|
|
8175
8175
|
}, null, 8, ["color"]));
|
|
@@ -8201,7 +8201,7 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8201
8201
|
}, W4 = { class: "ao-fieldset ao-activity-details__aside-section" }, z4 = { class: "ao-fieldset__title" }, x4 = { class: "ao-fieldset__body" }, Y4 = { class: "ao-field__row" }, G4 = { class: "ao-field ao-field--multiselect" }, K4 = { class: "ao-field__label" }, X4 = { class: "ao-field__row" }, Q4 = { class: "ao-field ao-field--multiselect" }, J4 = { class: "ao-field__label" }, ef = {
|
|
8202
8202
|
key: 2,
|
|
8203
8203
|
class: "ao-activity-details__aside-section ao-activity-details__aside-section--created-by"
|
|
8204
|
-
}, tf = { class: "ao-activity__created-by" },
|
|
8204
|
+
}, tf = { class: "ao-activity__created-by" }, Bn = /* @__PURE__ */ J({
|
|
8205
8205
|
__name: "AoActivityDetails",
|
|
8206
8206
|
props: {
|
|
8207
8207
|
activity: {},
|
|
@@ -8250,7 +8250,7 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8250
8250
|
set(h) {
|
|
8251
8251
|
e("update:activity", { id: a.activity.id, important: h });
|
|
8252
8252
|
}
|
|
8253
|
-
}),
|
|
8253
|
+
}), u = M({
|
|
8254
8254
|
get() {
|
|
8255
8255
|
return a.activity.private ?? !1;
|
|
8256
8256
|
},
|
|
@@ -8264,7 +8264,7 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8264
8264
|
set(h) {
|
|
8265
8265
|
e("update:activity", { id: a.activity.id, deadline: h });
|
|
8266
8266
|
}
|
|
8267
|
-
}),
|
|
8267
|
+
}), l = M(() => {
|
|
8268
8268
|
var h;
|
|
8269
8269
|
return (h = a.activityTypes) == null ? void 0 : h.map((I) => ({
|
|
8270
8270
|
label: I.name,
|
|
@@ -8393,13 +8393,13 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8393
8393
|
});
|
|
8394
8394
|
}, N = (h) => {
|
|
8395
8395
|
e("updateComment", h);
|
|
8396
|
-
},
|
|
8396
|
+
}, Q = (h) => {
|
|
8397
8397
|
e("removeComment", h);
|
|
8398
8398
|
}, k = M(() => {
|
|
8399
8399
|
var h, I;
|
|
8400
8400
|
return ((h = a.activity.createdBy) == null ? void 0 : h.firstName) && ((I = a.activity.createdBy) == null ? void 0 : I.lastName) && `${a.activity.createdBy.firstName} ${a.activity.createdBy.lastName}`;
|
|
8401
8401
|
});
|
|
8402
|
-
return (h, I) => (v(), R(
|
|
8402
|
+
return (h, I) => (v(), R(Mn, {
|
|
8403
8403
|
onClose: I[10] || (I[10] = (ee) => h.$emit("close"))
|
|
8404
8404
|
}, {
|
|
8405
8405
|
default: q(() => {
|
|
@@ -8534,7 +8534,7 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8534
8534
|
"user-id": h.userId,
|
|
8535
8535
|
onCreateComment: E,
|
|
8536
8536
|
onUpdateComment: N,
|
|
8537
|
-
onRemoveComment:
|
|
8537
|
+
onRemoveComment: Q
|
|
8538
8538
|
}, null, 8, ["comments", "users", "user-id"])
|
|
8539
8539
|
])) : T("", !0)
|
|
8540
8540
|
])
|
|
@@ -8613,7 +8613,7 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8613
8613
|
])) : T("", !0)
|
|
8614
8614
|
]),
|
|
8615
8615
|
p("div", j4, [
|
|
8616
|
-
|
|
8616
|
+
l.value ? (v(), g("div", U4, [
|
|
8617
8617
|
p("label", Z4, [
|
|
8618
8618
|
V($e, {
|
|
8619
8619
|
modelValue: d.value,
|
|
@@ -8621,7 +8621,7 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8621
8621
|
class: "ao-activity-details__multiselect",
|
|
8622
8622
|
mode: "single",
|
|
8623
8623
|
searchable: !0,
|
|
8624
|
-
options:
|
|
8624
|
+
options: l.value,
|
|
8625
8625
|
placeholder: h.$t("activity.filters.type.placeholder"),
|
|
8626
8626
|
disabled: !n.value,
|
|
8627
8627
|
caret: n.value
|
|
@@ -8647,8 +8647,8 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8647
8647
|
]),
|
|
8648
8648
|
h.isTemplate !== !0 && h.activity.createdBy.id === h.userId ? (v(), g("div", q4, [
|
|
8649
8649
|
V(Cn, {
|
|
8650
|
-
modelValue:
|
|
8651
|
-
"onUpdate:modelValue": I[7] || (I[7] = (se) =>
|
|
8650
|
+
modelValue: u.value,
|
|
8651
|
+
"onUpdate:modelValue": I[7] || (I[7] = (se) => u.value = se),
|
|
8652
8652
|
modelModifiers: { lazy: !0 },
|
|
8653
8653
|
label: h.$t("activity.private.label"),
|
|
8654
8654
|
disabled: !n.value,
|
|
@@ -8764,14 +8764,14 @@ const af = /* @__PURE__ */ J({
|
|
|
8764
8764
|
value: w.id,
|
|
8765
8765
|
label: w.name
|
|
8766
8766
|
}));
|
|
8767
|
-
}),
|
|
8767
|
+
}), u = Vt(a.rule.comparator), c = M({
|
|
8768
8768
|
get() {
|
|
8769
|
-
return
|
|
8769
|
+
return u.value;
|
|
8770
8770
|
},
|
|
8771
8771
|
set(m) {
|
|
8772
8772
|
e("update:rule", { ...a.rule, comparator: m });
|
|
8773
8773
|
}
|
|
8774
|
-
}),
|
|
8774
|
+
}), l = M(() => Object.values(A2)), d = Vt(a.rule.trigger), f = M({
|
|
8775
8775
|
get() {
|
|
8776
8776
|
return d.value;
|
|
8777
8777
|
},
|
|
@@ -8795,25 +8795,25 @@ const af = /* @__PURE__ */ J({
|
|
|
8795
8795
|
}), y = M(() => Object.values(S2));
|
|
8796
8796
|
return (m, A) => (v(), R(vt(m.tagName), { class: "ao-rule-line" }, {
|
|
8797
8797
|
default: q(() => [
|
|
8798
|
-
V(
|
|
8798
|
+
V(X(ot), {
|
|
8799
8799
|
modelValue: s.value,
|
|
8800
8800
|
"onUpdate:modelValue": A[0] || (A[0] = (w) => s.value = w),
|
|
8801
8801
|
options: o.value
|
|
8802
8802
|
}, null, 8, ["modelValue", "options"]),
|
|
8803
|
-
V(
|
|
8803
|
+
V(X(ot), {
|
|
8804
8804
|
modelValue: i.value,
|
|
8805
8805
|
"onUpdate:modelValue": A[1] || (A[1] = (w) => i.value = w),
|
|
8806
8806
|
options: r.value
|
|
8807
8807
|
}, null, 8, ["modelValue", "options"]),
|
|
8808
|
-
V(
|
|
8808
|
+
V(X(ot), {
|
|
8809
8809
|
modelValue: f.value,
|
|
8810
8810
|
"onUpdate:modelValue": A[2] || (A[2] = (w) => f.value = w),
|
|
8811
8811
|
options: C.value
|
|
8812
8812
|
}, null, 8, ["modelValue", "options"]),
|
|
8813
|
-
V(
|
|
8813
|
+
V(X(ot), {
|
|
8814
8814
|
modelValue: c.value,
|
|
8815
8815
|
"onUpdate:modelValue": A[3] || (A[3] = (w) => c.value = w),
|
|
8816
|
-
options:
|
|
8816
|
+
options: l.value
|
|
8817
8817
|
}, null, 8, ["modelValue", "options"]),
|
|
8818
8818
|
rt(p("input", {
|
|
8819
8819
|
"onUpdate:modelValue": A[4] || (A[4] = (w) => $.value = w),
|
|
@@ -8827,7 +8827,7 @@ const af = /* @__PURE__ */ J({
|
|
|
8827
8827
|
{ number: !0 }
|
|
8828
8828
|
]
|
|
8829
8829
|
]),
|
|
8830
|
-
V(
|
|
8830
|
+
V(X(ot), {
|
|
8831
8831
|
modelValue: _.value,
|
|
8832
8832
|
"onUpdate:modelValue": A[5] || (A[5] = (w) => _.value = w),
|
|
8833
8833
|
options: y.value
|
|
@@ -8859,7 +8859,7 @@ const nf = { class: "ao-template-rules__body" }, sf = { class: "ao-template-rule
|
|
|
8859
8859
|
}, n = (s) => {
|
|
8860
8860
|
e("removeRule", s);
|
|
8861
8861
|
};
|
|
8862
|
-
return (s, o) => (v(), R(
|
|
8862
|
+
return (s, o) => (v(), R(Mn, null, {
|
|
8863
8863
|
header: q(() => [
|
|
8864
8864
|
V(_e, {
|
|
8865
8865
|
title: s.$t("template.rules.title"),
|
|
@@ -8959,7 +8959,7 @@ const rf = {
|
|
|
8959
8959
|
o.value && Ge(k, h);
|
|
8960
8960
|
}
|
|
8961
8961
|
);
|
|
8962
|
-
const
|
|
8962
|
+
const u = M(() => {
|
|
8963
8963
|
var k, h;
|
|
8964
8964
|
return ((h = (k = s.value) == null ? void 0 : k.phases) == null ? void 0 : h.reduce((I, ee) => {
|
|
8965
8965
|
const ne = ee.milestones || [];
|
|
@@ -8974,7 +8974,7 @@ const rf = {
|
|
|
8974
8974
|
);
|
|
8975
8975
|
return [...I, ...le];
|
|
8976
8976
|
}, [])) || [];
|
|
8977
|
-
}),
|
|
8977
|
+
}), l = M(() => {
|
|
8978
8978
|
var k, h;
|
|
8979
8979
|
return (h = (k = r.value) == null ? void 0 : k.activities) == null ? void 0 : h.find(
|
|
8980
8980
|
(I) => I.id === a.activityId
|
|
@@ -9111,7 +9111,7 @@ const rf = {
|
|
|
9111
9111
|
});
|
|
9112
9112
|
}
|
|
9113
9113
|
}, B = (k) => {
|
|
9114
|
-
!i.value || !r.value || !
|
|
9114
|
+
!i.value || !r.value || !l.value || e("addItem", {
|
|
9115
9115
|
type: me.TASKS,
|
|
9116
9116
|
activityId: k.activityId,
|
|
9117
9117
|
milestoneId: r.value.id,
|
|
@@ -9120,16 +9120,16 @@ const rf = {
|
|
|
9120
9120
|
item: k
|
|
9121
9121
|
});
|
|
9122
9122
|
}, F = (k) => {
|
|
9123
|
-
!i.value || !r.value || !
|
|
9123
|
+
!i.value || !r.value || !l.value || e("updateItem", {
|
|
9124
9124
|
itemType: me.TASKS,
|
|
9125
9125
|
id: k.id,
|
|
9126
9126
|
templateId: a.templateId,
|
|
9127
9127
|
data: k
|
|
9128
9128
|
});
|
|
9129
9129
|
}, E = (k) => {
|
|
9130
|
-
!i.value || !r.value || !
|
|
9130
|
+
!i.value || !r.value || !l.value || e("removeItem", {
|
|
9131
9131
|
type: me.TASKS,
|
|
9132
|
-
activityId:
|
|
9132
|
+
activityId: l.value.id,
|
|
9133
9133
|
milestoneId: r.value.id,
|
|
9134
9134
|
phaseId: i.value.id,
|
|
9135
9135
|
templateId: a.templateId,
|
|
@@ -9137,7 +9137,7 @@ const rf = {
|
|
|
9137
9137
|
});
|
|
9138
9138
|
}, N = (k) => {
|
|
9139
9139
|
e("addFiles", k);
|
|
9140
|
-
},
|
|
9140
|
+
}, Q = (k) => {
|
|
9141
9141
|
e("removeFile", k);
|
|
9142
9142
|
};
|
|
9143
9143
|
return (k, h) => {
|
|
@@ -9145,7 +9145,7 @@ const rf = {
|
|
|
9145
9145
|
return s.value ? (v(), g("div", rf, [
|
|
9146
9146
|
V(Wa, {
|
|
9147
9147
|
"can-go-back": !0,
|
|
9148
|
-
onGoBack: h[1] || (h[1] = (z) => k.$router.push({ name:
|
|
9148
|
+
onGoBack: h[1] || (h[1] = (z) => k.$router.push({ name: X(Lt).TEMPLATES_LIST }))
|
|
9149
9149
|
}, {
|
|
9150
9150
|
primary: q(() => [
|
|
9151
9151
|
V(_e, {
|
|
@@ -9162,7 +9162,7 @@ const rf = {
|
|
|
9162
9162
|
p("div", lf, [
|
|
9163
9163
|
p("ol", uf, [
|
|
9164
9164
|
p("li", df, [
|
|
9165
|
-
V(
|
|
9165
|
+
V(X(pt), {
|
|
9166
9166
|
"model-value": s.value.phases,
|
|
9167
9167
|
class: "ao-templates__list",
|
|
9168
9168
|
"item-key": "id",
|
|
@@ -9225,7 +9225,7 @@ const rf = {
|
|
|
9225
9225
|
"template-id": k.templateId,
|
|
9226
9226
|
"phase-id": (ee = i.value) == null ? void 0 : ee.id,
|
|
9227
9227
|
milestone: r.value,
|
|
9228
|
-
"activity-id": (ne =
|
|
9228
|
+
"activity-id": (ne = l.value) == null ? void 0 : ne.id,
|
|
9229
9229
|
onAddActivity: S,
|
|
9230
9230
|
onUpdateActivity: L,
|
|
9231
9231
|
onRemoveActivity: D
|
|
@@ -9234,19 +9234,19 @@ const rf = {
|
|
|
9234
9234
|
])
|
|
9235
9235
|
]),
|
|
9236
9236
|
(v(), R(Ht, { to: "body" }, [
|
|
9237
|
-
|
|
9237
|
+
l.value ? (v(), R(Bn, {
|
|
9238
9238
|
key: 0,
|
|
9239
|
-
activity:
|
|
9239
|
+
activity: l.value,
|
|
9240
9240
|
"activity-types": k.activityTypes,
|
|
9241
9241
|
breadcrumbs: `${s.value.name} / ${(le = i.value) == null ? void 0 : le.name} / ${(se = r.value) == null ? void 0 : se.name}`,
|
|
9242
9242
|
"milestone-id": (re = r.value) == null ? void 0 : re.id,
|
|
9243
9243
|
"template-activities": c.value,
|
|
9244
|
-
"template-milestones":
|
|
9244
|
+
"template-milestones": u.value,
|
|
9245
9245
|
"is-template": !0,
|
|
9246
9246
|
"is-editable": !0,
|
|
9247
9247
|
users: k.users,
|
|
9248
9248
|
"onUpdate:activity": h[2] || (h[2] = (z) => {
|
|
9249
|
-
|
|
9249
|
+
l.value && L(z);
|
|
9250
9250
|
}),
|
|
9251
9251
|
"attachment-enabled": !1,
|
|
9252
9252
|
onClose: k.$router.back,
|
|
@@ -9254,7 +9254,7 @@ const rf = {
|
|
|
9254
9254
|
onUpdateSubtask: F,
|
|
9255
9255
|
onDeleteSubtask: E,
|
|
9256
9256
|
onAddFiles: N,
|
|
9257
|
-
onRemoveFile:
|
|
9257
|
+
onRemoveFile: Q
|
|
9258
9258
|
}, {
|
|
9259
9259
|
default: q((z) => [
|
|
9260
9260
|
te(k.$slots, "activityDetailsBody", ua(da(z)))
|
|
@@ -9268,7 +9268,7 @@ const rf = {
|
|
|
9268
9268
|
"template-id": s.value.id,
|
|
9269
9269
|
rules: s.value.rules || [],
|
|
9270
9270
|
"template-phases": s.value.phases,
|
|
9271
|
-
"template-milestones":
|
|
9271
|
+
"template-milestones": u.value,
|
|
9272
9272
|
"template-activities": c.value,
|
|
9273
9273
|
onClose: U,
|
|
9274
9274
|
onAddRule: W,
|
|
@@ -9285,7 +9285,7 @@ const mf = {
|
|
|
9285
9285
|
}, hf = { class: "ao-card__body" }, Cf = {
|
|
9286
9286
|
key: 1,
|
|
9287
9287
|
class: "ao-card__footer"
|
|
9288
|
-
},
|
|
9288
|
+
}, Rn = /* @__PURE__ */ J({
|
|
9289
9289
|
__name: "AoCard",
|
|
9290
9290
|
props: {
|
|
9291
9291
|
isClickable: { type: Boolean },
|
|
@@ -9317,7 +9317,7 @@ const mf = {
|
|
|
9317
9317
|
}, 8, ["class"]));
|
|
9318
9318
|
}
|
|
9319
9319
|
});
|
|
9320
|
-
const
|
|
9320
|
+
const Nn = /* @__PURE__ */ J({
|
|
9321
9321
|
__name: "AoProgress",
|
|
9322
9322
|
props: {
|
|
9323
9323
|
percentages: {},
|
|
@@ -9332,7 +9332,7 @@ const Rn = /* @__PURE__ */ J({
|
|
|
9332
9332
|
(v(!0), g(Ce, null, ye(a.value, (o) => (v(), g("div", {
|
|
9333
9333
|
key: o,
|
|
9334
9334
|
class: x(["ao-progress__progress"]),
|
|
9335
|
-
style:
|
|
9335
|
+
style: v1({ width: `${o * 100}%` })
|
|
9336
9336
|
}, null, 4))), 128))
|
|
9337
9337
|
], 2));
|
|
9338
9338
|
}
|
|
@@ -9355,29 +9355,29 @@ const gf = { class: "ao-card-project-phase__header" }, _f = { class: "ao-card-pr
|
|
|
9355
9355
|
},
|
|
9356
9356
|
emits: ["update:title", "update:deadline", "archivePhase"],
|
|
9357
9357
|
setup(t, { emit: e }) {
|
|
9358
|
-
const a = t, n = (
|
|
9359
|
-
e("update:title",
|
|
9358
|
+
const a = t, n = (u) => {
|
|
9359
|
+
e("update:title", u);
|
|
9360
9360
|
}, s = M(() => {
|
|
9361
|
-
var
|
|
9362
|
-
return (
|
|
9361
|
+
var u;
|
|
9362
|
+
return (u = a.milestones) == null ? void 0 : u.length;
|
|
9363
9363
|
}), o = M(() => {
|
|
9364
|
-
var
|
|
9365
|
-
return (
|
|
9364
|
+
var u;
|
|
9365
|
+
return (u = a.milestones) == null ? void 0 : u.filter((c) => c.status === fn.done).length;
|
|
9366
9366
|
}), i = M(() => (o.value || 0) / (s.value || 1)), r = M({
|
|
9367
9367
|
get: () => a.deadline ?? "",
|
|
9368
|
-
set: (
|
|
9368
|
+
set: (u) => e("update:deadline", u != null && u.length ? u : null)
|
|
9369
9369
|
});
|
|
9370
|
-
return (
|
|
9370
|
+
return (u, c) => (v(), R(Rn, {
|
|
9371
9371
|
class: "ao-card-project-phase",
|
|
9372
|
-
"is-clickable":
|
|
9372
|
+
"is-clickable": u.isEditable
|
|
9373
9373
|
}, Na({
|
|
9374
9374
|
default: q(() => [
|
|
9375
9375
|
V(_e, {
|
|
9376
|
-
id:
|
|
9376
|
+
id: u.id,
|
|
9377
9377
|
class: "ao-card-project-phase__title",
|
|
9378
|
-
title:
|
|
9378
|
+
title: u.name || "",
|
|
9379
9379
|
level: 4,
|
|
9380
|
-
"is-editable":
|
|
9380
|
+
"is-editable": u.isEditable,
|
|
9381
9381
|
"onUpdate:title": n
|
|
9382
9382
|
}, null, 8, ["id", "title", "is-editable"])
|
|
9383
9383
|
]),
|
|
@@ -9391,20 +9391,20 @@ const gf = { class: "ao-card-project-phase__header" }, _f = { class: "ao-card-pr
|
|
|
9391
9391
|
}),
|
|
9392
9392
|
p("span", wf, K(o.value) + " / " + K(s.value), 1)
|
|
9393
9393
|
]),
|
|
9394
|
-
V(
|
|
9394
|
+
V(Nn, {
|
|
9395
9395
|
percentages: i.value,
|
|
9396
9396
|
class: "ao-card-project-phase__progress"
|
|
9397
9397
|
}, null, 8, ["percentages"]),
|
|
9398
|
-
|
|
9399
|
-
te(
|
|
9398
|
+
u.$slots.secondary ? (v(), g("div", $f, [
|
|
9399
|
+
te(u.$slots, "secondary")
|
|
9400
9400
|
])) : T("", !0)
|
|
9401
9401
|
])) : T("", !0),
|
|
9402
9402
|
p("div", {
|
|
9403
9403
|
class: x(["ao-card-project-phase__footer-row", r.value ? "" : "ao-card-project-phase__no_deadline"])
|
|
9404
9404
|
}, [
|
|
9405
|
-
|
|
9405
|
+
u.isEditable ? rt((v(), g("input", {
|
|
9406
9406
|
key: 0,
|
|
9407
|
-
"onUpdate:modelValue": c[1] || (c[1] = (
|
|
9407
|
+
"onUpdate:modelValue": c[1] || (c[1] = (l) => r.value = l),
|
|
9408
9408
|
class: "ao-card-project-phase__deadline ao-card-project-phase__deadline--input",
|
|
9409
9409
|
type: "date"
|
|
9410
9410
|
}, null, 512)), [
|
|
@@ -9415,13 +9415,13 @@ const gf = { class: "ao-card-project-phase__header" }, _f = { class: "ao-card-pr
|
|
|
9415
9415
|
{ lazy: !0 }
|
|
9416
9416
|
]
|
|
9417
9417
|
]) : T("", !0),
|
|
9418
|
-
p("span", kf, K(
|
|
9418
|
+
p("span", kf, K(X(wn)(u.deadline)), 1)
|
|
9419
9419
|
], 2)
|
|
9420
9420
|
])
|
|
9421
9421
|
]),
|
|
9422
9422
|
_: 2
|
|
9423
9423
|
}, [
|
|
9424
|
-
|
|
9424
|
+
u.isEditable ? {
|
|
9425
9425
|
name: "header",
|
|
9426
9426
|
fn: q(() => [
|
|
9427
9427
|
p("div", gf, [
|
|
@@ -9433,8 +9433,8 @@ const gf = { class: "ao-card-project-phase__header" }, _f = { class: "ao-card-pr
|
|
|
9433
9433
|
size: "sm",
|
|
9434
9434
|
"icon-position": "start",
|
|
9435
9435
|
corners: "round",
|
|
9436
|
-
label:
|
|
9437
|
-
onClick: c[0] || (c[0] = he(() =>
|
|
9436
|
+
label: u.$t("archive"),
|
|
9437
|
+
onClick: c[0] || (c[0] = he(() => u.$emit("archivePhase", { id: u.id }), ["stop"]))
|
|
9438
9438
|
}, null, 8, ["label"])
|
|
9439
9439
|
])
|
|
9440
9440
|
]),
|
|
@@ -9477,12 +9477,12 @@ const Af = { class: "ao-card-project-milestone__default" }, Tf = {
|
|
|
9477
9477
|
}), s = M(() => {
|
|
9478
9478
|
var r;
|
|
9479
9479
|
return (r = a.activities) == null ? void 0 : r.filter(
|
|
9480
|
-
(
|
|
9480
|
+
(u) => $n(u, a.closedStatus)
|
|
9481
9481
|
).length;
|
|
9482
9482
|
}), o = M(() => (s.value || 0) / (n.value || 1)), i = (r) => {
|
|
9483
9483
|
e("updateMilestone", { id: a.id, name: r });
|
|
9484
9484
|
};
|
|
9485
|
-
return (r,
|
|
9485
|
+
return (r, u) => (v(), R(Rn, {
|
|
9486
9486
|
class: x([
|
|
9487
9487
|
"ao-card-project-milestone",
|
|
9488
9488
|
{ "ao-card-project-milestone--selected": r.isSelected }
|
|
@@ -9510,7 +9510,7 @@ const Af = { class: "ao-card-project-milestone__default" }, Tf = {
|
|
|
9510
9510
|
"icon-position": "start",
|
|
9511
9511
|
corners: "round",
|
|
9512
9512
|
label: r.$t("archive"),
|
|
9513
|
-
onClick:
|
|
9513
|
+
onClick: u[0] || (u[0] = he(() => r.$emit("archiveMilestone", { id: r.id }), ["stop"]))
|
|
9514
9514
|
}, null, 8, ["color", "label"])
|
|
9515
9515
|
])) : T("", !0)
|
|
9516
9516
|
]),
|
|
@@ -9524,7 +9524,7 @@ const Af = { class: "ao-card-project-milestone__default" }, Tf = {
|
|
|
9524
9524
|
}),
|
|
9525
9525
|
p("span", If, K(s.value) + " / " + K(n.value), 1)
|
|
9526
9526
|
]),
|
|
9527
|
-
V(
|
|
9527
|
+
V(Nn, {
|
|
9528
9528
|
percentages: o.value,
|
|
9529
9529
|
class: "ao-card-project-milestone__progress"
|
|
9530
9530
|
}, null, 8, ["percentages"])
|
|
@@ -9546,11 +9546,11 @@ const Af = { class: "ao-card-project-milestone__default" }, Tf = {
|
|
|
9546
9546
|
size: "sm"
|
|
9547
9547
|
}, null, 8, ["class"])) : T("", !0),
|
|
9548
9548
|
r.deadline ? (v(), g("label", Df, [
|
|
9549
|
-
p("span", Pf, K(
|
|
9549
|
+
p("span", Pf, K(X(wn)(r.deadline)), 1)
|
|
9550
9550
|
])) : T("", !0),
|
|
9551
9551
|
r.assignee ? (v(), g("div", Hf, [
|
|
9552
9552
|
V(Xe, {
|
|
9553
|
-
"user-name":
|
|
9553
|
+
"user-name": X(V1)(r.assignee),
|
|
9554
9554
|
"avatar-url": r.assignee.avatarUrl,
|
|
9555
9555
|
color: r.isSelected ? "black" : "primary",
|
|
9556
9556
|
size: "sm"
|
|
@@ -9598,11 +9598,11 @@ const Rf = {
|
|
|
9598
9598
|
n
|
|
9599
9599
|
);
|
|
9600
9600
|
e("addMilestone", { name: C, rank: $, phaseId: f });
|
|
9601
|
-
},
|
|
9601
|
+
}, u = (f) => {
|
|
9602
9602
|
e("updateMilestone", f);
|
|
9603
9603
|
}, c = (f) => {
|
|
9604
9604
|
e("archiveMilestone", f);
|
|
9605
|
-
},
|
|
9605
|
+
}, l = (f) => {
|
|
9606
9606
|
e("archivePhase", f);
|
|
9607
9607
|
}, d = (f) => {
|
|
9608
9608
|
"added" in f ? e("updateMilestone", {
|
|
@@ -9637,12 +9637,12 @@ const Rf = {
|
|
|
9637
9637
|
"is-editable": f.isEditable,
|
|
9638
9638
|
"onUpdate:deadline": o,
|
|
9639
9639
|
"onUpdate:title": s,
|
|
9640
|
-
onArchivePhase:
|
|
9640
|
+
onArchivePhase: l
|
|
9641
9641
|
}, null, 8, ["id", "milestones", "name", "deadline", "is-editable"])
|
|
9642
9642
|
]),
|
|
9643
9643
|
p("div", jf, [
|
|
9644
9644
|
p("div", Uf, [
|
|
9645
|
-
V(
|
|
9645
|
+
V(X(pt), Ve({
|
|
9646
9646
|
class: "ao-project-phase__milestones-list",
|
|
9647
9647
|
list: i.value,
|
|
9648
9648
|
disabled: f.readonly || !f.isEditable,
|
|
@@ -9666,10 +9666,10 @@ const Rf = {
|
|
|
9666
9666
|
readonly: f.readonly,
|
|
9667
9667
|
class: x(["ao-project-phase__milestone"]),
|
|
9668
9668
|
onClick: (m) => !f.readonly && f.$router.push({
|
|
9669
|
-
name:
|
|
9669
|
+
name: X(Ue).milestone,
|
|
9670
9670
|
params: { phaseId: f.phase.id, milestoneId: _.id }
|
|
9671
9671
|
}),
|
|
9672
|
-
onUpdateMilestone:
|
|
9672
|
+
onUpdateMilestone: u,
|
|
9673
9673
|
onArchiveMilestone: c
|
|
9674
9674
|
}, null, 8, ["id", "name", "activities", "deadline", "is-editable", "is-draggable", "closed-status", "is-selected", "assignee", "important", "readonly", "onClick"])
|
|
9675
9675
|
];
|
|
@@ -9706,34 +9706,34 @@ const qf = { class: "ao-project__phases" }, Wf = {
|
|
|
9706
9706
|
emits: ["addMilestone", "updateMilestone", "archiveMilestone", "addPhase", "updatePhase", "archivePhase"],
|
|
9707
9707
|
setup(t, { emit: e }) {
|
|
9708
9708
|
const a = t;
|
|
9709
|
-
ce(() => a.phases, (
|
|
9710
|
-
Ge(
|
|
9709
|
+
ce(() => a.phases, (l, d) => {
|
|
9710
|
+
Ge(l, d);
|
|
9711
9711
|
});
|
|
9712
|
-
const n = (
|
|
9713
|
-
e("addMilestone",
|
|
9714
|
-
}, s = (
|
|
9715
|
-
e("updateMilestone",
|
|
9716
|
-
}, o = (
|
|
9717
|
-
e("archiveMilestone",
|
|
9718
|
-
}, i = (
|
|
9719
|
-
e("archivePhase",
|
|
9720
|
-
}, r = (
|
|
9721
|
-
if (
|
|
9722
|
-
const d = pa(
|
|
9712
|
+
const n = (l) => {
|
|
9713
|
+
e("addMilestone", l);
|
|
9714
|
+
}, s = (l) => {
|
|
9715
|
+
e("updateMilestone", l);
|
|
9716
|
+
}, o = (l) => {
|
|
9717
|
+
e("archiveMilestone", l);
|
|
9718
|
+
}, i = (l) => {
|
|
9719
|
+
e("archivePhase", l);
|
|
9720
|
+
}, r = (l) => {
|
|
9721
|
+
if (l.moved) {
|
|
9722
|
+
const d = pa(l, a.phases ?? []);
|
|
9723
9723
|
e("updatePhase", {
|
|
9724
|
-
id:
|
|
9724
|
+
id: l.moved.element.id,
|
|
9725
9725
|
rank: d
|
|
9726
9726
|
});
|
|
9727
9727
|
}
|
|
9728
|
-
},
|
|
9729
|
-
e("updatePhase",
|
|
9730
|
-
}, c = (
|
|
9731
|
-
e("addPhase",
|
|
9728
|
+
}, u = (l) => {
|
|
9729
|
+
e("updatePhase", l);
|
|
9730
|
+
}, c = (l) => {
|
|
9731
|
+
e("addPhase", l);
|
|
9732
9732
|
};
|
|
9733
|
-
return (
|
|
9734
|
-
V(
|
|
9733
|
+
return (l, d) => (v(), g("div", qf, [
|
|
9734
|
+
V(X(pt), {
|
|
9735
9735
|
class: "ao-project-phase__phases-list",
|
|
9736
|
-
"model-value":
|
|
9736
|
+
"model-value": l.phases,
|
|
9737
9737
|
"item-key": "id",
|
|
9738
9738
|
handle: ".ao-card__drag",
|
|
9739
9739
|
onChange: r
|
|
@@ -9741,24 +9741,24 @@ const qf = { class: "ao-project__phases" }, Wf = {
|
|
|
9741
9741
|
item: q(({ element: f }) => [
|
|
9742
9742
|
V(Ff, {
|
|
9743
9743
|
phase: f,
|
|
9744
|
-
"is-editable": !
|
|
9745
|
-
"closed-status":
|
|
9746
|
-
users:
|
|
9747
|
-
readonly:
|
|
9744
|
+
"is-editable": !l.readonly && l.isEditable,
|
|
9745
|
+
"closed-status": l.closedStatus,
|
|
9746
|
+
users: l.users,
|
|
9747
|
+
readonly: l.readonly,
|
|
9748
9748
|
onAddMilestone: n,
|
|
9749
9749
|
onUpdateMilestone: s,
|
|
9750
9750
|
onArchiveMilestone: o,
|
|
9751
|
-
onUpdatePhase:
|
|
9751
|
+
onUpdatePhase: u,
|
|
9752
9752
|
onArchivePhase: i
|
|
9753
9753
|
}, null, 8, ["phase", "is-editable", "closed-status", "users", "readonly"])
|
|
9754
9754
|
]),
|
|
9755
9755
|
_: 1
|
|
9756
9756
|
}, 8, ["model-value"]),
|
|
9757
|
-
|
|
9757
|
+
l.isEditable ? (v(), g("div", Wf, [
|
|
9758
9758
|
zf,
|
|
9759
9759
|
p("div", xf, [
|
|
9760
9760
|
V(mt, {
|
|
9761
|
-
label:
|
|
9761
|
+
label: l.$t("project.phases.add"),
|
|
9762
9762
|
"icon-name": "Add",
|
|
9763
9763
|
class: "ao-project-phase__add-phase",
|
|
9764
9764
|
onClick: c
|
|
@@ -9785,7 +9785,7 @@ const Kf = ["onSubmit"], Xf = { class: "ao-add-template-modal__form-body" }, Qf
|
|
|
9785
9785
|
}, i = () => {
|
|
9786
9786
|
s.value && e("apply", s.value, a.projectId);
|
|
9787
9787
|
};
|
|
9788
|
-
return (r,
|
|
9788
|
+
return (r, u) => (v(), R(Mn, { size: "sm" }, {
|
|
9789
9789
|
header: q(() => [
|
|
9790
9790
|
V(_e, {
|
|
9791
9791
|
title: r.$t("project.template.add.title"),
|
|
@@ -9901,11 +9901,11 @@ const X1 = /* @__PURE__ */ j(t8, [["render", n8], ["__scopeId", "data-v-cbe33527
|
|
|
9901
9901
|
e("updatePhase", O);
|
|
9902
9902
|
}, r = (O) => {
|
|
9903
9903
|
e("archivePhase", O);
|
|
9904
|
-
},
|
|
9904
|
+
}, u = (O) => {
|
|
9905
9905
|
e("addMilestone", O);
|
|
9906
9906
|
}, c = (O) => {
|
|
9907
9907
|
e("updateMilestone", O);
|
|
9908
|
-
},
|
|
9908
|
+
}, l = (O) => {
|
|
9909
9909
|
e("archiveMilestone", O);
|
|
9910
9910
|
}, d = (O) => {
|
|
9911
9911
|
e("addActivity", O);
|
|
@@ -9948,7 +9948,7 @@ const X1 = /* @__PURE__ */ j(t8, [["render", n8], ["__scopeId", "data-v-cbe33527
|
|
|
9948
9948
|
"right-label": O.$t("project.switch.feed"),
|
|
9949
9949
|
"left-label": O.$t("project.switch.overview"),
|
|
9950
9950
|
"onUpdate:isLeft": Y[0] || (Y[0] = (F) => {
|
|
9951
|
-
F || O.$router.push({ name:
|
|
9951
|
+
F || O.$router.push({ name: X(Ue).feed });
|
|
9952
9952
|
})
|
|
9953
9953
|
}, null, 8, ["right-label", "left-label"]),
|
|
9954
9954
|
V(de, {
|
|
@@ -9981,9 +9981,9 @@ const X1 = /* @__PURE__ */ j(t8, [["render", n8], ["__scopeId", "data-v-cbe33527
|
|
|
9981
9981
|
"closed-status": O.closedStatus,
|
|
9982
9982
|
"is-editable": O.isEditable === !0,
|
|
9983
9983
|
users: O.users,
|
|
9984
|
-
onAddMilestone:
|
|
9984
|
+
onAddMilestone: u,
|
|
9985
9985
|
onUpdateMilestone: c,
|
|
9986
|
-
onArchiveMilestone:
|
|
9986
|
+
onArchiveMilestone: l,
|
|
9987
9987
|
onAddPhase: o,
|
|
9988
9988
|
onUpdatePhase: i,
|
|
9989
9989
|
onArchivePhase: r
|
|
@@ -9998,7 +9998,7 @@ const X1 = /* @__PURE__ */ j(t8, [["render", n8], ["__scopeId", "data-v-cbe33527
|
|
|
9998
9998
|
users: O.users,
|
|
9999
9999
|
"is-editable": O.isEditable === !0,
|
|
10000
10000
|
"closed-status": O.closedStatus,
|
|
10001
|
-
onClose: Y[3] || (Y[3] = (F) => O.$router.push({ name:
|
|
10001
|
+
onClose: Y[3] || (Y[3] = (F) => O.$router.push({ name: X(Ue).project })),
|
|
10002
10002
|
onUpdateMilestone: c,
|
|
10003
10003
|
onAddActivity: d,
|
|
10004
10004
|
onUpdateActivity: f,
|
|
@@ -10109,16 +10109,16 @@ const r8 = { class: "ao-card-feed__header" }, l8 = {
|
|
|
10109
10109
|
id: a.id,
|
|
10110
10110
|
name: d
|
|
10111
10111
|
});
|
|
10112
|
-
}, s = M(() => a.isFeedView && a.phaseName ? `${a.phaseName}` : a.phaseName && a.milestoneName ? `${a.phaseName} / ${a.milestoneName}` : ""), o = M(() => a.assignee ? [a.assignee] : []), i = M(() =>
|
|
10112
|
+
}, s = M(() => a.isFeedView && a.phaseName ? `${a.phaseName}` : a.phaseName && a.milestoneName ? `${a.phaseName} / ${a.milestoneName}` : ""), o = M(() => a.assignee ? [a.assignee] : []), i = M(() => wn(a.deadline)), r = (d) => {
|
|
10113
10113
|
e("removeAssignee", d);
|
|
10114
|
-
},
|
|
10114
|
+
}, u = M(() => {
|
|
10115
10115
|
var d;
|
|
10116
10116
|
return (d = a.tasks) == null ? void 0 : d.length;
|
|
10117
10117
|
}), c = M(() => {
|
|
10118
10118
|
var d;
|
|
10119
10119
|
return (d = a.tasks) == null ? void 0 : d.filter((f) => f.isDone).length;
|
|
10120
|
-
}),
|
|
10121
|
-
return (d, f) => (v(), R(
|
|
10120
|
+
}), l = M(() => (c.value || 0) / (u.value || 1));
|
|
10121
|
+
return (d, f) => (v(), R(Rn, {
|
|
10122
10122
|
class: x(["ao-card-feed", { "ao-card-feed--closed": d.isClosed }]),
|
|
10123
10123
|
"is-clickable": !0
|
|
10124
10124
|
}, {
|
|
@@ -10180,7 +10180,7 @@ const r8 = { class: "ao-card-feed__header" }, l8 = {
|
|
|
10180
10180
|
}, [
|
|
10181
10181
|
C ? (v(), g("li", C8, [
|
|
10182
10182
|
V(Xe, {
|
|
10183
|
-
"user-name":
|
|
10183
|
+
"user-name": X(V1)(C),
|
|
10184
10184
|
"avatar-url": C.avatarUrl,
|
|
10185
10185
|
"is-closable": !0,
|
|
10186
10186
|
onClose: () => r(C.id)
|
|
@@ -10212,10 +10212,10 @@ const r8 = { class: "ao-card-feed__header" }, l8 = {
|
|
|
10212
10212
|
name: "SelectCheckBox",
|
|
10213
10213
|
size: "sm"
|
|
10214
10214
|
}),
|
|
10215
|
-
p("span", A8, K(c.value) + " / " + K(
|
|
10215
|
+
p("span", A8, K(c.value) + " / " + K(u.value), 1)
|
|
10216
10216
|
]),
|
|
10217
|
-
V(
|
|
10218
|
-
percentages:
|
|
10217
|
+
V(Nn, {
|
|
10218
|
+
percentages: l.value,
|
|
10219
10219
|
class: "ao-card-feed__progress"
|
|
10220
10220
|
}, null, 8, ["percentages"])
|
|
10221
10221
|
])) : T("", !0)
|
|
@@ -10232,7 +10232,7 @@ const T8 = { class: "ao-project-milestone" }, S8 = { class: "ao-project-mileston
|
|
|
10232
10232
|
}, V8 = { class: "ao-field__row ao-milestone__field-row" }, D8 = { class: "ao-field ao-field--inline" }, P8 = { class: "ao-field__row ao-milestone__field-row" }, H8 = { class: "ao-field ao-milestone__field-multiselect" }, B8 = { class: "ao-project-milestone__body" }, R8 = {
|
|
10233
10233
|
key: 0,
|
|
10234
10234
|
class: "ao-project-milestone__footer"
|
|
10235
|
-
},
|
|
10235
|
+
}, f1 = /* @__PURE__ */ J({
|
|
10236
10236
|
__name: "AoProjectOverviewMilestoneDetails",
|
|
10237
10237
|
props: {
|
|
10238
10238
|
milestoneId: {},
|
|
@@ -10263,7 +10263,7 @@ const T8 = { class: "ao-project-milestone" }, S8 = { class: "ao-project-mileston
|
|
|
10263
10263
|
ce(r, (m, A) => {
|
|
10264
10264
|
Ge(m, A);
|
|
10265
10265
|
});
|
|
10266
|
-
const
|
|
10266
|
+
const u = (m) => {
|
|
10267
10267
|
e("close", m);
|
|
10268
10268
|
}, c = () => {
|
|
10269
10269
|
const { name: m, rank: A } = Pt(
|
|
@@ -10277,7 +10277,7 @@ const T8 = { class: "ao-project-milestone" }, S8 = { class: "ao-project-mileston
|
|
|
10277
10277
|
rank: A,
|
|
10278
10278
|
projectId: a.projectId
|
|
10279
10279
|
});
|
|
10280
|
-
},
|
|
10280
|
+
}, l = (m) => {
|
|
10281
10281
|
e("updateActivity", m);
|
|
10282
10282
|
}, d = (m) => {
|
|
10283
10283
|
r.value && "moved" in m && e("updateActivity", {
|
|
@@ -10295,7 +10295,7 @@ const T8 = { class: "ao-project-milestone" }, S8 = { class: "ao-project-mileston
|
|
|
10295
10295
|
deadline: m != null && m.length ? m : null
|
|
10296
10296
|
});
|
|
10297
10297
|
}
|
|
10298
|
-
}), C = (m) => a.closedStatus ?
|
|
10298
|
+
}), C = (m) => a.closedStatus ? $n(m, a.closedStatus) : !1, $ = M(() => {
|
|
10299
10299
|
var m;
|
|
10300
10300
|
return ((m = a.users) == null ? void 0 : m.map((A) => ({
|
|
10301
10301
|
label: `${A.firstName} ${A.lastName}`,
|
|
@@ -10333,7 +10333,7 @@ const T8 = { class: "ao-project-milestone" }, S8 = { class: "ao-project-mileston
|
|
|
10333
10333
|
variant: "ghost",
|
|
10334
10334
|
size: "sm",
|
|
10335
10335
|
class: "ao-milestone__close",
|
|
10336
|
-
onClick:
|
|
10336
|
+
onClick: u
|
|
10337
10337
|
})
|
|
10338
10338
|
]),
|
|
10339
10339
|
p("div", E8, [
|
|
@@ -10406,7 +10406,7 @@ const T8 = { class: "ao-project-milestone" }, S8 = { class: "ao-project-mileston
|
|
|
10406
10406
|
])) : T("", !0)
|
|
10407
10407
|
]),
|
|
10408
10408
|
p("div", B8, [
|
|
10409
|
-
V(
|
|
10409
|
+
V(X(pt), Ve({
|
|
10410
10410
|
class: "ao-project-milestone__activities",
|
|
10411
10411
|
list: r.value,
|
|
10412
10412
|
disabled: !m.isEditable,
|
|
@@ -10432,11 +10432,11 @@ const T8 = { class: "ao-project-milestone" }, S8 = { class: "ao-project-mileston
|
|
|
10432
10432
|
"is-private": S.private,
|
|
10433
10433
|
"is-closed": C(S),
|
|
10434
10434
|
onClick: (W) => m.$router.push({
|
|
10435
|
-
name:
|
|
10435
|
+
name: X(Ue).activity,
|
|
10436
10436
|
params: { milestoneId: m.milestoneId, activityId: S.id }
|
|
10437
10437
|
}),
|
|
10438
|
-
onUpdateActivity:
|
|
10439
|
-
onRemoveAssignee: () =>
|
|
10438
|
+
onUpdateActivity: l,
|
|
10439
|
+
onRemoveAssignee: () => l({ id: S.id, assigneeId: null })
|
|
10440
10440
|
}, Na({ _: 2 }, [
|
|
10441
10441
|
m.isEditable ? {
|
|
10442
10442
|
name: "secondary",
|
|
@@ -10521,11 +10521,11 @@ const N8 = /* @__PURE__ */ J({
|
|
|
10521
10521
|
return (y = a.activities) == null ? void 0 : y.find((m) => m.id === a.activityId);
|
|
10522
10522
|
}), r = (y) => {
|
|
10523
10523
|
e("update:activity", y);
|
|
10524
|
-
},
|
|
10524
|
+
}, u = (y) => {
|
|
10525
10525
|
e("addSubtask", y);
|
|
10526
10526
|
}, c = (y) => {
|
|
10527
10527
|
e("updateSubtask", y);
|
|
10528
|
-
},
|
|
10528
|
+
}, l = (y) => {
|
|
10529
10529
|
e("deleteSubtask", y);
|
|
10530
10530
|
}, d = (y) => {
|
|
10531
10531
|
e("addFiles", y);
|
|
@@ -10540,7 +10540,7 @@ const N8 = /* @__PURE__ */ J({
|
|
|
10540
10540
|
};
|
|
10541
10541
|
return (y, m) => {
|
|
10542
10542
|
var A, w;
|
|
10543
|
-
return i.value ? (v(), R(
|
|
10543
|
+
return i.value ? (v(), R(Bn, {
|
|
10544
10544
|
key: 0,
|
|
10545
10545
|
activity: i.value,
|
|
10546
10546
|
"activity-types": y.activityTypes,
|
|
@@ -10557,9 +10557,9 @@ const N8 = /* @__PURE__ */ J({
|
|
|
10557
10557
|
projects: [y.project],
|
|
10558
10558
|
onClose: y.$router.back,
|
|
10559
10559
|
"onUpdate:activity": r,
|
|
10560
|
-
onAddSubtask:
|
|
10560
|
+
onAddSubtask: u,
|
|
10561
10561
|
onUpdateSubtask: c,
|
|
10562
|
-
onDeleteSubtask:
|
|
10562
|
+
onDeleteSubtask: l,
|
|
10563
10563
|
onAddFiles: d,
|
|
10564
10564
|
onRemoveFile: f,
|
|
10565
10565
|
onAddComment: C,
|
|
@@ -10600,7 +10600,7 @@ function Z8(t) {
|
|
|
10600
10600
|
return $s() ? (ks(t), !0) : !1;
|
|
10601
10601
|
}
|
|
10602
10602
|
function Ba(t) {
|
|
10603
|
-
return typeof t == "function" ? t() :
|
|
10603
|
+
return typeof t == "function" ? t() : X(t);
|
|
10604
10604
|
}
|
|
10605
10605
|
const F8 = typeof window < "u" && typeof document < "u";
|
|
10606
10606
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -10620,13 +10620,13 @@ function z8(t, e = {}) {
|
|
|
10620
10620
|
clearTimeout(r), s(), s = na;
|
|
10621
10621
|
};
|
|
10622
10622
|
return (r) => {
|
|
10623
|
-
const
|
|
10624
|
-
return a && o(a),
|
|
10625
|
-
s = e.rejectOnCancel ? d :
|
|
10626
|
-
a && o(a), n = null,
|
|
10623
|
+
const u = Ba(t), c = Ba(e.maxWait);
|
|
10624
|
+
return a && o(a), u <= 0 || c !== void 0 && c <= 0 ? (n && (o(n), n = null), Promise.resolve(r())) : new Promise((l, d) => {
|
|
10625
|
+
s = e.rejectOnCancel ? d : l, c && !n && (n = setTimeout(() => {
|
|
10626
|
+
a && o(a), n = null, l(r());
|
|
10627
10627
|
}, c)), a = setTimeout(() => {
|
|
10628
|
-
n && o(n), n = null,
|
|
10629
|
-
},
|
|
10628
|
+
n && o(n), n = null, l(r());
|
|
10629
|
+
}, u);
|
|
10630
10630
|
});
|
|
10631
10631
|
};
|
|
10632
10632
|
}
|
|
@@ -10659,15 +10659,15 @@ function X8(t, e, a = {}) {
|
|
|
10659
10659
|
threshold: o = 0.1,
|
|
10660
10660
|
window: i = Y8,
|
|
10661
10661
|
immediate: r = !0
|
|
10662
|
-
} = a,
|
|
10662
|
+
} = a, u = K8(() => i && "IntersectionObserver" in i), c = M(() => {
|
|
10663
10663
|
const $ = Ba(t);
|
|
10664
10664
|
return (Array.isArray($) ? $ : [$]).map(cn).filter(q8);
|
|
10665
10665
|
});
|
|
10666
|
-
let
|
|
10667
|
-
const d = ae(r), f =
|
|
10666
|
+
let l = na;
|
|
10667
|
+
const d = ae(r), f = u.value ? ce(
|
|
10668
10668
|
() => [c.value, cn(n), d.value],
|
|
10669
10669
|
([$, _]) => {
|
|
10670
|
-
if (
|
|
10670
|
+
if (l(), !d.value || !$.length)
|
|
10671
10671
|
return;
|
|
10672
10672
|
const y = new IntersectionObserver(
|
|
10673
10673
|
e,
|
|
@@ -10677,19 +10677,19 @@ function X8(t, e, a = {}) {
|
|
|
10677
10677
|
threshold: o
|
|
10678
10678
|
}
|
|
10679
10679
|
);
|
|
10680
|
-
$.forEach((m) => m && y.observe(m)),
|
|
10681
|
-
y.disconnect(),
|
|
10680
|
+
$.forEach((m) => m && y.observe(m)), l = () => {
|
|
10681
|
+
y.disconnect(), l = na;
|
|
10682
10682
|
};
|
|
10683
10683
|
},
|
|
10684
10684
|
{ immediate: r, flush: "post" }
|
|
10685
10685
|
) : na, C = () => {
|
|
10686
|
-
|
|
10686
|
+
l(), f(), d.value = !1;
|
|
10687
10687
|
};
|
|
10688
10688
|
return Z8(C), {
|
|
10689
|
-
isSupported:
|
|
10689
|
+
isSupported: u,
|
|
10690
10690
|
isActive: d,
|
|
10691
10691
|
pause() {
|
|
10692
|
-
|
|
10692
|
+
l(), d.value = !1;
|
|
10693
10693
|
},
|
|
10694
10694
|
resume() {
|
|
10695
10695
|
d.value = !0;
|
|
@@ -10732,56 +10732,56 @@ const Q8 = {
|
|
|
10732
10732
|
emits: ["add", "update:list", "change:list", "loadMore", "selectActivity", "archiveActivity", "unarchiveActivity", "updateActivity"],
|
|
10733
10733
|
setup(t, { emit: e }) {
|
|
10734
10734
|
const a = t, n = ae(!1), s = ae(null);
|
|
10735
|
-
X8(s, ([{ isIntersecting:
|
|
10736
|
-
n.value =
|
|
10737
|
-
}), ce(n, (
|
|
10738
|
-
|
|
10735
|
+
X8(s, ([{ isIntersecting: l }]) => {
|
|
10736
|
+
n.value = l;
|
|
10737
|
+
}), ce(n, (l) => {
|
|
10738
|
+
l && a.hasMore && !a.isLoading && e("loadMore");
|
|
10739
10739
|
});
|
|
10740
|
-
const o = (
|
|
10740
|
+
const o = (l) => {
|
|
10741
10741
|
var d;
|
|
10742
|
-
return a.isEditable === !0 ? !0 : a.userId && a.isEditable === "only-own" ? a.userId === ((d =
|
|
10743
|
-
}, i = (
|
|
10744
|
-
e("selectActivity",
|
|
10745
|
-
}, r = (
|
|
10746
|
-
e("updateActivity",
|
|
10747
|
-
},
|
|
10748
|
-
"added" in
|
|
10749
|
-
id:
|
|
10742
|
+
return a.isEditable === !0 ? !0 : a.userId && a.isEditable === "only-own" ? a.userId === ((d = l.assignee) == null ? void 0 : d.id) : !1;
|
|
10743
|
+
}, i = (l) => {
|
|
10744
|
+
e("selectActivity", l);
|
|
10745
|
+
}, r = (l) => {
|
|
10746
|
+
e("updateActivity", l);
|
|
10747
|
+
}, u = (l) => {
|
|
10748
|
+
"added" in l ? e("updateActivity", {
|
|
10749
|
+
id: l.added.element.id,
|
|
10750
10750
|
statusId: a.status.id,
|
|
10751
|
-
rank: Bt(a.list,
|
|
10752
|
-
}) : "removed" in
|
|
10753
|
-
id:
|
|
10751
|
+
rank: Bt(a.list, l.added.newIndex)
|
|
10752
|
+
}) : "removed" in l || "moved" in l && e("updateActivity", {
|
|
10753
|
+
id: l.moved.element.id,
|
|
10754
10754
|
rank: Bt(
|
|
10755
10755
|
a.list,
|
|
10756
|
-
|
|
10756
|
+
l.moved.newIndex
|
|
10757
10757
|
)
|
|
10758
10758
|
});
|
|
10759
10759
|
}, c = ae(!1);
|
|
10760
|
-
return (
|
|
10761
|
-
|
|
10760
|
+
return (l, d) => (v(), g("div", Q8, [
|
|
10761
|
+
l.title || l.$slots.header ? te(l.$slots, "header", { key: 0 }, () => {
|
|
10762
10762
|
var f;
|
|
10763
10763
|
return [
|
|
10764
10764
|
p("div", J8, [
|
|
10765
|
-
|
|
10765
|
+
l.title ? (v(), R(U8, {
|
|
10766
10766
|
key: 0,
|
|
10767
|
-
title:
|
|
10767
|
+
title: l.title,
|
|
10768
10768
|
level: 3,
|
|
10769
|
-
items: (f =
|
|
10769
|
+
items: (f = l.list) == null ? void 0 : f.length
|
|
10770
10770
|
}, null, 8, ["title", "items"])) : T("", !0)
|
|
10771
10771
|
])
|
|
10772
10772
|
];
|
|
10773
10773
|
}) : T("", !0),
|
|
10774
|
-
V(
|
|
10774
|
+
V(X(pt), Ve({
|
|
10775
10775
|
class: ["ao-list-kanban__list", c.value ? "ao-list-kanban__transition" : void 0],
|
|
10776
|
-
list:
|
|
10776
|
+
list: l.list,
|
|
10777
10777
|
"item-key": "id",
|
|
10778
10778
|
group: "kanban",
|
|
10779
10779
|
"ghost-class": "ao-list-kanban__ghost",
|
|
10780
10780
|
animation: "200"
|
|
10781
|
-
},
|
|
10781
|
+
}, l.$attrs, {
|
|
10782
10782
|
draggable: ".ao-list-draggable",
|
|
10783
|
-
disabled: !
|
|
10784
|
-
onChange:
|
|
10783
|
+
disabled: !l.isEditable,
|
|
10784
|
+
onChange: u,
|
|
10785
10785
|
onStart: d[0] || (d[0] = (f) => c.value = !0),
|
|
10786
10786
|
onEnd: d[1] || (d[1] = (f) => c.value = !1),
|
|
10787
10787
|
"component-data": {
|
|
@@ -10808,11 +10808,11 @@ const Q8 = {
|
|
|
10808
10808
|
type: f.type,
|
|
10809
10809
|
comments: (w = f.comments) == null ? void 0 : w.length,
|
|
10810
10810
|
attachments: (S = f.attachments) == null ? void 0 : S.length,
|
|
10811
|
-
users:
|
|
10811
|
+
users: l.users,
|
|
10812
10812
|
assignee: f.assignee,
|
|
10813
10813
|
"is-editable": o(f),
|
|
10814
10814
|
"is-private": f.private,
|
|
10815
|
-
"is-feed-view":
|
|
10815
|
+
"is-feed-view": l.isFeedView,
|
|
10816
10816
|
onUpdateActivity: [(D) => o(f) && r(D), () => o(f) && r],
|
|
10817
10817
|
onClick: () => i(f.id),
|
|
10818
10818
|
onRemoveAssignee: () => o(f) && r({ id: f.id, assigneeId: null })
|
|
@@ -10826,8 +10826,8 @@ const Q8 = {
|
|
|
10826
10826
|
size: "sm",
|
|
10827
10827
|
"icon-position": "start",
|
|
10828
10828
|
corners: "round",
|
|
10829
|
-
label:
|
|
10830
|
-
onClick: he(() =>
|
|
10829
|
+
label: l.$t("feed.activity.archive"),
|
|
10830
|
+
onClick: he(() => l.$emit("archiveActivity", { id: f.id }), ["stop"])
|
|
10831
10831
|
}, null, 8, ["label", "onClick"])) : T("", !0),
|
|
10832
10832
|
o(f) && !f.active ? (v(), R(de, {
|
|
10833
10833
|
key: 1,
|
|
@@ -10837,8 +10837,8 @@ const Q8 = {
|
|
|
10837
10837
|
size: "sm",
|
|
10838
10838
|
"icon-position": "start",
|
|
10839
10839
|
corners: "round",
|
|
10840
|
-
label:
|
|
10841
|
-
onClick: he(() =>
|
|
10840
|
+
label: l.$t("feed.activity.unarchive"),
|
|
10841
|
+
onClick: he(() => l.$emit("unarchiveActivity", { id: f.id }), ["stop"])
|
|
10842
10842
|
}, null, 8, ["label", "onClick"])) : T("", !0)
|
|
10843
10843
|
]),
|
|
10844
10844
|
_: 2
|
|
@@ -10846,26 +10846,26 @@ const Q8 = {
|
|
|
10846
10846
|
];
|
|
10847
10847
|
}),
|
|
10848
10848
|
footer: q(() => [
|
|
10849
|
-
|
|
10849
|
+
l.isLoading ? (v(), g("div", ev, [
|
|
10850
10850
|
V(fe, { name: "Loading" })
|
|
10851
|
-
])) :
|
|
10851
|
+
])) : l.hasMore ? (v(), g("div", {
|
|
10852
10852
|
key: 2,
|
|
10853
10853
|
ref_key: "scrollEnd",
|
|
10854
10854
|
ref: s,
|
|
10855
10855
|
class: "ao-list-kanban__end"
|
|
10856
10856
|
}, null, 512)) : (v(), g("div", tv, [
|
|
10857
|
-
|
|
10857
|
+
l.noMoreLabel ? (v(), g("span", av, K(l.noMoreLabel), 1)) : l.isEditable ? (v(), g("span", nv)) : T("", !0)
|
|
10858
10858
|
]))
|
|
10859
10859
|
]),
|
|
10860
10860
|
_: 1
|
|
10861
10861
|
}, 16, ["class", "list", "disabled"]),
|
|
10862
|
-
|
|
10863
|
-
te(
|
|
10864
|
-
|
|
10862
|
+
l.$slots.footer || l.footerLabel ? (v(), g("div", sv, [
|
|
10863
|
+
te(l.$slots, "footer", {}, () => [
|
|
10864
|
+
l.isEditable ? (v(), R(mt, {
|
|
10865
10865
|
key: 0,
|
|
10866
10866
|
"icon-name": "AddBoxOutlineRounded",
|
|
10867
|
-
label:
|
|
10868
|
-
onClick: d[2] || (d[2] = (f) =>
|
|
10867
|
+
label: l.footerLabel,
|
|
10868
|
+
onClick: d[2] || (d[2] = (f) => l.$emit("add"))
|
|
10869
10869
|
}, null, 8, ["label"])) : T("", !0)
|
|
10870
10870
|
])
|
|
10871
10871
|
])) : T("", !0)
|
|
@@ -10882,8 +10882,8 @@ const ov = { class: "ao-field ao-search-field" }, rv = ["value", "placeholder",
|
|
|
10882
10882
|
emits: ["update:modelValue", "clear"],
|
|
10883
10883
|
setup(t, { emit: e }) {
|
|
10884
10884
|
const a = t, n = async (i) => {
|
|
10885
|
-
const
|
|
10886
|
-
e("update:modelValue",
|
|
10885
|
+
const u = i.target.value;
|
|
10886
|
+
e("update:modelValue", u, i);
|
|
10887
10887
|
}, s = x8(n, a.delay), o = (i) => {
|
|
10888
10888
|
e("clear", i);
|
|
10889
10889
|
};
|
|
@@ -10894,7 +10894,7 @@ const ov = { class: "ao-field ao-search-field" }, rv = ["value", "placeholder",
|
|
|
10894
10894
|
class: "ao-field__input ao-search-field__input",
|
|
10895
10895
|
placeholder: i.placeholder,
|
|
10896
10896
|
onInput: r[0] || (r[0] = //@ts-ignore
|
|
10897
|
-
(...
|
|
10897
|
+
(...u) => X(s) && X(s)(...u)),
|
|
10898
10898
|
onKeypress: ut(n, ["enter"])
|
|
10899
10899
|
}, null, 40, rv),
|
|
10900
10900
|
V(fe, {
|
|
@@ -10936,11 +10936,11 @@ const uv = { class: "ao-feed" }, dv = { class: "ao-feed__filters" }, cv = { clas
|
|
|
10936
10936
|
setup(t, { emit: e }) {
|
|
10937
10937
|
const a = t, { t: n } = At(), s = Vt(a, "activities"), o = async (E) => {
|
|
10938
10938
|
await e("selectActivity", E);
|
|
10939
|
-
}, i = ae({}), r = ae(!1),
|
|
10939
|
+
}, i = ae({}), r = ae(!1), u = ae(!1);
|
|
10940
10940
|
ce(
|
|
10941
10941
|
[() => a.statuses, () => a.activities, () => a.initialActivityId],
|
|
10942
10942
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10943
|
-
async ([E, N,
|
|
10943
|
+
async ([E, N, Q], [k, h]) => {
|
|
10944
10944
|
i.value = Object.fromEntries(
|
|
10945
10945
|
E.map((I) => [
|
|
10946
10946
|
I.id,
|
|
@@ -10949,23 +10949,23 @@ const uv = { class: "ao-feed" }, dv = { class: "ao-feed__filters" }, cv = { clas
|
|
|
10949
10949
|
return ((ne = ee.status) == null ? void 0 : ne.id) === I.id;
|
|
10950
10950
|
})
|
|
10951
10951
|
])
|
|
10952
|
-
),
|
|
10952
|
+
), Q && !r.value && (o(Q), r.value = !0), u.value && Ge(N, h);
|
|
10953
10953
|
},
|
|
10954
10954
|
{ immediate: !0 }
|
|
10955
10955
|
);
|
|
10956
10956
|
const c = M(() => {
|
|
10957
10957
|
var E;
|
|
10958
10958
|
return !a.selectedActivity || !a.selectedActivity.milestone ? "" : `${((E = a.selectedActivity.milestone.phase) == null ? void 0 : E.name) ?? ""} / ${a.selectedActivity.milestone.name ?? ""}`;
|
|
10959
|
-
}),
|
|
10959
|
+
}), l = (E) => {
|
|
10960
10960
|
var I, ee;
|
|
10961
|
-
const N = (I = a.activities) == null ? void 0 : I.at(-1),
|
|
10961
|
+
const N = (I = a.activities) == null ? void 0 : I.at(-1), Q = N ? Ie.LexoRank.parse(N.rank).genNext() : Ie.LexoRank.middle(), k = ((ee = a.activities) == null ? void 0 : ee.length) ?? 0, h = {
|
|
10962
10962
|
name: n("activity.defaultName", { idx: k + 1 }),
|
|
10963
|
-
rank:
|
|
10963
|
+
rank: Q.format(),
|
|
10964
10964
|
statusId: E.id
|
|
10965
10965
|
};
|
|
10966
|
-
a.filters.assigneeId.length > 0 && (h.assigneeId = a.filters.assigneeId[0]), a.filters.projectId.length > 0 && (h.projectId = a.filters.projectId[0]), a.filters.typeId.length > 0 && (h.typeId = a.filters.typeId[0]),
|
|
10966
|
+
a.filters.assigneeId.length > 0 && (h.assigneeId = a.filters.assigneeId[0]), a.filters.projectId.length > 0 && (h.projectId = a.filters.projectId[0]), a.filters.typeId.length > 0 && (h.typeId = a.filters.typeId[0]), u.value = !0, e("addActivity", h);
|
|
10967
10967
|
}, d = (E, N) => {
|
|
10968
|
-
|
|
10968
|
+
u.value = !1, e("update:filters", { ...a.filters, [E]: N });
|
|
10969
10969
|
}, f = M(
|
|
10970
10970
|
() => a.project ? [a.project] : a.projects ?? []
|
|
10971
10971
|
), C = M(() => f.value.map((E) => ({
|
|
@@ -10990,9 +10990,9 @@ const uv = { class: "ao-feed" }, dv = { class: "ao-feed__filters" }, cv = { clas
|
|
|
10990
10990
|
}, w = (E) => {
|
|
10991
10991
|
e("unarchiveActivity", E);
|
|
10992
10992
|
}, S = (E) => {
|
|
10993
|
-
|
|
10993
|
+
u.value = !1, e("update:searchText", E);
|
|
10994
10994
|
}, D = (E) => {
|
|
10995
|
-
|
|
10995
|
+
u.value = !1, e("clear:searchText", E);
|
|
10996
10996
|
}, L = (E) => {
|
|
10997
10997
|
a.selectedActivity && e("addSubtask", E);
|
|
10998
10998
|
}, Z = (E) => {
|
|
@@ -11016,7 +11016,7 @@ const uv = { class: "ao-feed" }, dv = { class: "ao-feed__filters" }, cv = { clas
|
|
|
11016
11016
|
N && e("removeComment", E);
|
|
11017
11017
|
};
|
|
11018
11018
|
return (E, N) => {
|
|
11019
|
-
var
|
|
11019
|
+
var Q;
|
|
11020
11020
|
return v(), g("div", uv, [
|
|
11021
11021
|
V(Wa, null, {
|
|
11022
11022
|
primary: q(() => [
|
|
@@ -11027,7 +11027,7 @@ const uv = { class: "ao-feed" }, dv = { class: "ao-feed__filters" }, cv = { clas
|
|
|
11027
11027
|
"right-label": E.$t("project.switch.feed"),
|
|
11028
11028
|
"left-label": E.$t("project.switch.overview"),
|
|
11029
11029
|
"onUpdate:isLeft": N[0] || (N[0] = (k) => {
|
|
11030
|
-
k && E.$router.push({ name:
|
|
11030
|
+
k && E.$router.push({ name: X(Ue).project });
|
|
11031
11031
|
})
|
|
11032
11032
|
}, null, 8, ["right-label", "left-label"])) : T("", !0),
|
|
11033
11033
|
V(lv, {
|
|
@@ -11039,36 +11039,36 @@ const uv = { class: "ao-feed" }, dv = { class: "ao-feed__filters" }, cv = { clas
|
|
|
11039
11039
|
}, null, 8, ["model-value", "placeholder"]),
|
|
11040
11040
|
a.project ? T("", !0) : (v(), R($e, {
|
|
11041
11041
|
key: 1,
|
|
11042
|
-
"model-value": E.filters[
|
|
11042
|
+
"model-value": E.filters[X(Et).project],
|
|
11043
11043
|
mode: "tags",
|
|
11044
11044
|
options: C.value,
|
|
11045
11045
|
"close-on-select": !1,
|
|
11046
11046
|
searchable: !0,
|
|
11047
11047
|
class: "ao-feed__filter ao-feed__filter__projects",
|
|
11048
11048
|
placeholder: E.$t("feed.filters.project.placeholder"),
|
|
11049
|
-
"onUpdate:modelValue": N[1] || (N[1] = (k) => d(
|
|
11049
|
+
"onUpdate:modelValue": N[1] || (N[1] = (k) => d(X(Et).project, k))
|
|
11050
11050
|
}, null, 8, ["model-value", "options", "placeholder"])),
|
|
11051
11051
|
$.value ? (v(), R($e, {
|
|
11052
11052
|
key: 2,
|
|
11053
|
-
"model-value": E.filters[
|
|
11053
|
+
"model-value": E.filters[X(Et).type],
|
|
11054
11054
|
mode: "tags",
|
|
11055
11055
|
options: $.value,
|
|
11056
11056
|
"close-on-select": !1,
|
|
11057
11057
|
searchable: !0,
|
|
11058
11058
|
class: "ao-feed__filter ao-feed__filter__types",
|
|
11059
11059
|
placeholder: E.$t("feed.filters.activityType.placeholder"),
|
|
11060
|
-
"onUpdate:modelValue": N[2] || (N[2] = (k) => d(
|
|
11060
|
+
"onUpdate:modelValue": N[2] || (N[2] = (k) => d(X(Et).type, k))
|
|
11061
11061
|
}, null, 8, ["model-value", "options", "placeholder"])) : T("", !0),
|
|
11062
11062
|
_.value.length ? (v(), R($e, {
|
|
11063
11063
|
key: 3,
|
|
11064
|
-
"model-value": E.filters[
|
|
11064
|
+
"model-value": E.filters[X(Et).assignee],
|
|
11065
11065
|
mode: "tags",
|
|
11066
11066
|
options: _.value,
|
|
11067
11067
|
"close-on-select": !1,
|
|
11068
11068
|
searchable: !0,
|
|
11069
11069
|
class: "ao-feed__filter ao-feed__filter__assignees",
|
|
11070
11070
|
placeholder: E.$t("feed.filters.assignee.placeholder"),
|
|
11071
|
-
"onUpdate:modelValue": N[3] || (N[3] = (k) => d(
|
|
11071
|
+
"onUpdate:modelValue": N[3] || (N[3] = (k) => d(X(Et).assignee, k))
|
|
11072
11072
|
}, {
|
|
11073
11073
|
tag: q(({
|
|
11074
11074
|
option: k,
|
|
@@ -11122,7 +11122,7 @@ const uv = { class: "ao-feed" }, dv = { class: "ao-feed__filters" }, cv = { clas
|
|
|
11122
11122
|
"user-id": E.userId,
|
|
11123
11123
|
"is-editable": E.isEditable,
|
|
11124
11124
|
"is-feed-view": !!a.project,
|
|
11125
|
-
onAdd: () =>
|
|
11125
|
+
onAdd: () => l(k),
|
|
11126
11126
|
onSelectActivity: o,
|
|
11127
11127
|
onArchiveActivity: A,
|
|
11128
11128
|
onUnarchiveActivity: w,
|
|
@@ -11130,11 +11130,11 @@ const uv = { class: "ao-feed" }, dv = { class: "ao-feed__filters" }, cv = { clas
|
|
|
11130
11130
|
}, null, 8, ["status", "list", "title", "footer-label", "users", "user-id", "is-editable", "is-feed-view", "onAdd"]))), 128))
|
|
11131
11131
|
]),
|
|
11132
11132
|
(v(), R(Ht, { to: "body" }, [
|
|
11133
|
-
E.selectedActivity ? (v(), R(
|
|
11133
|
+
E.selectedActivity ? (v(), R(Bn, {
|
|
11134
11134
|
key: 0,
|
|
11135
11135
|
activity: E.selectedActivity,
|
|
11136
11136
|
"activity-types": E.activityTypes,
|
|
11137
|
-
"milestone-id": (
|
|
11137
|
+
"milestone-id": (Q = E.selectedActivity.milestone) == null ? void 0 : Q.id,
|
|
11138
11138
|
"template-activities": s.value,
|
|
11139
11139
|
users: E.users,
|
|
11140
11140
|
"user-id": E.userId,
|
|
@@ -11209,7 +11209,7 @@ const Lt = {
|
|
|
11209
11209
|
{
|
|
11210
11210
|
path: ":phaseId/:milestoneId",
|
|
11211
11211
|
name: Ue.milestone,
|
|
11212
|
-
component:
|
|
11212
|
+
component: f1,
|
|
11213
11213
|
props: !0
|
|
11214
11214
|
},
|
|
11215
11215
|
{
|
|
@@ -11217,7 +11217,7 @@ const Lt = {
|
|
|
11217
11217
|
name: Ue.activity,
|
|
11218
11218
|
props: { default: !0, modal: !0 },
|
|
11219
11219
|
components: {
|
|
11220
|
-
default:
|
|
11220
|
+
default: f1,
|
|
11221
11221
|
modal: N8
|
|
11222
11222
|
}
|
|
11223
11223
|
}
|
|
@@ -11239,39 +11239,39 @@ const Lt = {
|
|
|
11239
11239
|
emits: ["addTemplate", "updateTemplates", "updateItem"],
|
|
11240
11240
|
setup(t, { emit: e }) {
|
|
11241
11241
|
const a = t, { t: n } = At();
|
|
11242
|
-
ce(() => a.templates, (r,
|
|
11243
|
-
Ge(r,
|
|
11242
|
+
ce(() => a.templates, (r, u) => {
|
|
11243
|
+
Ge(r, u);
|
|
11244
11244
|
});
|
|
11245
11245
|
const s = () => {
|
|
11246
11246
|
var d, f;
|
|
11247
|
-
const r = (d = a.templates) == null ? void 0 : d.at(-1),
|
|
11247
|
+
const r = (d = a.templates) == null ? void 0 : d.at(-1), u = r ? Ie.LexoRank.parse(r.rank).genNext() : Ie.LexoRank.middle(), c = ((f = a.templates) == null ? void 0 : f.length) ?? 0, l = {
|
|
11248
11248
|
name: n("template.defaultName.template", { idx: c + 1 }),
|
|
11249
|
-
rank:
|
|
11249
|
+
rank: u.format()
|
|
11250
11250
|
};
|
|
11251
|
-
e("addTemplate",
|
|
11252
|
-
}, o = (r,
|
|
11251
|
+
e("addTemplate", l);
|
|
11252
|
+
}, o = (r, u) => {
|
|
11253
11253
|
e("updateItem", {
|
|
11254
11254
|
itemType: me.TEMPLATES,
|
|
11255
11255
|
id: r,
|
|
11256
11256
|
templateId: r,
|
|
11257
11257
|
data: {
|
|
11258
|
-
name:
|
|
11258
|
+
name: u
|
|
11259
11259
|
}
|
|
11260
11260
|
});
|
|
11261
11261
|
}, i = (r) => {
|
|
11262
11262
|
if (r.moved) {
|
|
11263
|
-
const
|
|
11263
|
+
const u = pa(r, a.templates ?? []);
|
|
11264
11264
|
e("updateItem", {
|
|
11265
11265
|
itemType: me.TEMPLATES,
|
|
11266
11266
|
id: r.moved.element.id,
|
|
11267
11267
|
templateId: r.moved.element.id,
|
|
11268
11268
|
data: {
|
|
11269
|
-
rank:
|
|
11269
|
+
rank: u
|
|
11270
11270
|
}
|
|
11271
11271
|
});
|
|
11272
11272
|
}
|
|
11273
11273
|
};
|
|
11274
|
-
return (r,
|
|
11274
|
+
return (r, u) => (v(), g("div", vv, [
|
|
11275
11275
|
V(Wa, null, {
|
|
11276
11276
|
secondary: q(() => [
|
|
11277
11277
|
V(de, {
|
|
@@ -11284,7 +11284,7 @@ const Lt = {
|
|
|
11284
11284
|
]),
|
|
11285
11285
|
_: 1
|
|
11286
11286
|
}),
|
|
11287
|
-
V(
|
|
11287
|
+
V(X(pt), {
|
|
11288
11288
|
"model-value": r.templates,
|
|
11289
11289
|
class: "ao-templates__list",
|
|
11290
11290
|
"item-key": "id",
|
|
@@ -11292,19 +11292,19 @@ const Lt = {
|
|
|
11292
11292
|
onChange: i
|
|
11293
11293
|
}, {
|
|
11294
11294
|
item: q(({ element: c }) => {
|
|
11295
|
-
var
|
|
11295
|
+
var l;
|
|
11296
11296
|
return [
|
|
11297
11297
|
V(j3, {
|
|
11298
11298
|
id: c.id,
|
|
11299
11299
|
title: c.name,
|
|
11300
11300
|
phases: c.phases,
|
|
11301
|
-
milestones: (
|
|
11302
|
-
activities: c.phases ?
|
|
11301
|
+
milestones: (l = c.phases) != null && l.length ? X(v3)(c.phases) : 0,
|
|
11302
|
+
activities: c.phases ? X(p3)(c.phases) : 0,
|
|
11303
11303
|
"updated-at": c.updatedAt,
|
|
11304
11304
|
"updated-by": c.updatedBy,
|
|
11305
11305
|
onUpdateTitle: (d) => o(c.id, d),
|
|
11306
11306
|
onClick: (d) => r.$router.push({
|
|
11307
|
-
name:
|
|
11307
|
+
name: X(Lt).TEMPLATE_DETAILS,
|
|
11308
11308
|
params: { templateId: c.id }
|
|
11309
11309
|
})
|
|
11310
11310
|
}, null, 8, ["id", "title", "phases", "milestones", "activities", "updated-at", "updated-by", "onUpdateTitle", "onClick"])
|