@26lights/orcha 0.35.7 → 0.35.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as 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
|
|
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 W, createTextVNode as Ra, createVNode as V, normalizeStyle as v1, withModifiers as he, createSlots as Na, Fragment as Ce, renderList as ye, onMounted as Wt, 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({
|
|
@@ -59,7 +59,7 @@ const Rs = /* @__PURE__ */ j(Vs, [["render", Bs]]), Ns = {}, js = {
|
|
|
59
59
|
function Fs(t, e) {
|
|
60
60
|
return v(), g("svg", js, Zs);
|
|
61
61
|
}
|
|
62
|
-
const
|
|
62
|
+
const Ws = /* @__PURE__ */ j(Ns, [["render", Fs]]), qs = {}, zs = {
|
|
63
63
|
width: "24",
|
|
64
64
|
height: "24",
|
|
65
65
|
viewBox: "0 0 24 24",
|
|
@@ -74,7 +74,7 @@ const qs = /* @__PURE__ */ j(Ns, [["render", Fs]]), Ws = {}, zs = {
|
|
|
74
74
|
function Gs(t, e) {
|
|
75
75
|
return v(), g("svg", zs, Ys);
|
|
76
76
|
}
|
|
77
|
-
const Ks = /* @__PURE__ */ j(
|
|
77
|
+
const Ks = /* @__PURE__ */ j(qs, [["render", Gs]]), Xs = {}, Qs = {
|
|
78
78
|
width: "24",
|
|
79
79
|
height: "24",
|
|
80
80
|
viewBox: "0 0 24 24",
|
|
@@ -194,7 +194,7 @@ const Ri = /* @__PURE__ */ j(Vi, [["render", Bi]]), Ni = {}, ji = {
|
|
|
194
194
|
function Fi(t, e) {
|
|
195
195
|
return v(), g("svg", ji, Zi);
|
|
196
196
|
}
|
|
197
|
-
const
|
|
197
|
+
const Wi = /* @__PURE__ */ j(Ni, [["render", Fi]]), qi = {}, zi = {
|
|
198
198
|
width: "24",
|
|
199
199
|
height: "24",
|
|
200
200
|
viewBox: "0 0 24 24",
|
|
@@ -209,7 +209,7 @@ const qi = /* @__PURE__ */ j(Ni, [["render", Fi]]), Wi = {}, zi = {
|
|
|
209
209
|
function Gi(t, e) {
|
|
210
210
|
return v(), g("svg", zi, Yi);
|
|
211
211
|
}
|
|
212
|
-
const Ki = /* @__PURE__ */ j(
|
|
212
|
+
const Ki = /* @__PURE__ */ j(qi, [["render", Gi]]), Xi = {}, Qi = {
|
|
213
213
|
width: "24",
|
|
214
214
|
height: "24",
|
|
215
215
|
viewBox: "0 0 24 24",
|
|
@@ -326,10 +326,10 @@ const No = /* @__PURE__ */ j(Do, [["render", Ro]]), jo = {}, Uo = {
|
|
|
326
326
|
}, null, -1), Fo = [
|
|
327
327
|
Zo
|
|
328
328
|
];
|
|
329
|
-
function
|
|
329
|
+
function Wo(t, e) {
|
|
330
330
|
return v(), g("svg", Uo, Fo);
|
|
331
331
|
}
|
|
332
|
-
const
|
|
332
|
+
const qo = /* @__PURE__ */ j(jo, [["render", Wo]]), zo = {}, xo = {
|
|
333
333
|
width: "24",
|
|
334
334
|
height: "24",
|
|
335
335
|
viewBox: "0 0 24 24",
|
|
@@ -461,10 +461,10 @@ const Nr = /* @__PURE__ */ j(Dr, [["render", Rr]]), jr = {}, Ur = {
|
|
|
461
461
|
}, null, -1), Fr = [
|
|
462
462
|
Zr
|
|
463
463
|
];
|
|
464
|
-
function
|
|
464
|
+
function Wr(t, e) {
|
|
465
465
|
return v(), g("svg", Ur, Fr);
|
|
466
466
|
}
|
|
467
|
-
const
|
|
467
|
+
const qr = /* @__PURE__ */ j(jr, [["render", Wr]]), zr = {}, xr = {
|
|
468
468
|
width: "24",
|
|
469
469
|
height: "24",
|
|
470
470
|
viewBox: "0 0 24 24",
|
|
@@ -596,10 +596,10 @@ const Nl = /* @__PURE__ */ j(Dl, [["render", Rl]]), jl = {}, Ul = {
|
|
|
596
596
|
}, null, -1), Fl = [
|
|
597
597
|
Zl
|
|
598
598
|
];
|
|
599
|
-
function
|
|
599
|
+
function Wl(t, e) {
|
|
600
600
|
return v(), g("svg", Ul, Fl);
|
|
601
601
|
}
|
|
602
|
-
const
|
|
602
|
+
const ql = /* @__PURE__ */ j(jl, [["render", Wl]]), zl = {}, xl = {
|
|
603
603
|
width: "24",
|
|
604
604
|
height: "24",
|
|
605
605
|
viewBox: "0 0 24 24",
|
|
@@ -738,14 +738,14 @@ const Uu = /* @__PURE__ */ j(Hu, [["render", ju]]), Zu = {}, Fu = {
|
|
|
738
738
|
viewBox: "0 0 24 24",
|
|
739
739
|
fill: "none",
|
|
740
740
|
xmlns: "http://www.w3.org/2000/svg"
|
|
741
|
-
},
|
|
741
|
+
}, Wu = /* @__PURE__ */ p("path", {
|
|
742
742
|
d: "M8.70002 12.925L10.075 13.85L11.55 13.1C11.6834 13.0167 11.8334 12.975 12 12.975C12.1667 12.975 12.3167 13.0167 12.45 13.1L13.925 13.85L15.25 12.975L14.25 11H9.65002L8.70002 12.925ZM5.22502 20H18.75L16.15 14.775L14.55 15.85C14.4 15.95 14.2377 16.0043 14.063 16.013C13.8884 16.0217 13.7174 15.984 13.55 15.9L12 15.125L10.45 15.9C10.2834 15.9833 10.1124 16.0167 9.93702 16C9.76169 15.9833 9.59936 15.925 9.45002 15.825L7.80002 14.75L5.22502 20ZM3.60002 22C3.21669 22 2.92936 21.8417 2.73802 21.525C2.54669 21.2083 2.53402 20.8833 2.70002 20.55L7.85002 10.125C8.01669 9.79167 8.26269 9.52067 8.58802 9.312C8.91336 9.10334 9.26736 8.99934 9.65002 9H11V3C11 2.71667 11.096 2.479 11.288 2.287C11.48 2.095 11.7174 1.99934 12 2H17.2C17.3834 2 17.525 2.07934 17.625 2.238C17.725 2.39667 17.7334 2.559 17.65 2.725L17.1 3.775C17.0667 3.85834 17.05 3.93334 17.05 4C17.05 4.06667 17.0667 4.14167 17.1 4.225L17.65 5.275C17.7334 5.44167 17.725 5.604 17.625 5.762C17.525 5.92 17.3834 5.99934 17.2 6H13V9H14.25C14.6334 9 14.9834 9.1 15.3 9.3C15.6167 9.5 15.8667 9.76667 16.05 10.1L21.275 20.55C21.4417 20.8833 21.4294 21.2083 21.238 21.525C21.0467 21.8417 20.759 22 20.375 22H3.60002Z",
|
|
743
743
|
fill: "black"
|
|
744
|
-
}, null, -1),
|
|
745
|
-
|
|
744
|
+
}, null, -1), qu = [
|
|
745
|
+
Wu
|
|
746
746
|
];
|
|
747
747
|
function zu(t, e) {
|
|
748
|
-
return v(), g("svg", Fu,
|
|
748
|
+
return v(), g("svg", Fu, qu);
|
|
749
749
|
}
|
|
750
750
|
const xu = /* @__PURE__ */ j(Zu, [["render", zu]]), Yu = {}, Gu = {
|
|
751
751
|
width: "24",
|
|
@@ -870,14 +870,14 @@ const Ud = /* @__PURE__ */ j(Hd, [["render", jd]]), Zd = {}, Fd = {
|
|
|
870
870
|
viewBox: "0 0 24 24",
|
|
871
871
|
fill: "none",
|
|
872
872
|
xmlns: "http://www.w3.org/2000/svg"
|
|
873
|
-
},
|
|
873
|
+
}, Wd = /* @__PURE__ */ p("path", {
|
|
874
874
|
d: "M4.4 19.4251C4.06667 19.5584 3.75 19.5291 3.45 19.3371C3.15 19.1457 3 18.8667 3 18.5001V14.7751C3 14.5417 3.06667 14.3334 3.2 14.1501C3.33333 13.9667 3.51667 13.8501 3.75 13.8001L11 12.0001L3.75 10.2001C3.51667 10.1501 3.33333 10.0334 3.2 9.85006C3.06667 9.66672 3 9.45839 3 9.22506V5.50006C3 5.13339 3.15 4.85406 3.45 4.66206C3.75 4.47072 4.06667 4.44172 4.4 4.57506L19.8 11.0751C20.2167 11.2584 20.425 11.5667 20.425 12.0001C20.425 12.4334 20.2167 12.7417 19.8 12.9251L4.4 19.4251Z",
|
|
875
875
|
fill: "black"
|
|
876
|
-
}, null, -1),
|
|
877
|
-
|
|
876
|
+
}, null, -1), qd = [
|
|
877
|
+
Wd
|
|
878
878
|
];
|
|
879
879
|
function zd(t, e) {
|
|
880
|
-
return v(), g("svg", Fd,
|
|
880
|
+
return v(), g("svg", Fd, qd);
|
|
881
881
|
}
|
|
882
882
|
const xd = /* @__PURE__ */ j(Zd, [["render", zd]]), Yd = {}, Gd = {
|
|
883
883
|
width: "24",
|
|
@@ -1005,14 +1005,14 @@ const Uc = /* @__PURE__ */ j(Hc, [["render", jc]]), Zc = {}, Fc = {
|
|
|
1005
1005
|
viewBox: "0 0 24 24",
|
|
1006
1006
|
fill: "none",
|
|
1007
1007
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1008
|
-
},
|
|
1008
|
+
}, Wc = /* @__PURE__ */ p("path", {
|
|
1009
1009
|
d: "M7 17H11C11.2833 17 11.521 16.904 11.713 16.712C11.905 16.52 12.0007 16.2827 12 16C12 15.7167 11.904 15.479 11.712 15.287C11.52 15.095 11.2827 14.9993 11 15H7C6.71667 15 6.479 15.096 6.287 15.288C6.095 15.48 5.99934 15.7173 6 16C6 16.2833 6.096 16.521 6.288 16.713C6.48 16.905 6.71734 17.0007 7 17ZM10 13H14C14.2833 13 14.521 12.904 14.713 12.712C14.905 12.52 15.0007 12.2827 15 12C15 11.7167 14.904 11.479 14.712 11.287C14.52 11.095 14.2827 10.9993 14 11H10C9.71667 11 9.479 11.096 9.287 11.288C9.095 11.48 8.99934 11.7173 9 12C9 12.2833 9.096 12.521 9.288 12.713C9.48 12.905 9.71734 13.0007 10 13ZM13 9H17C17.2833 9 17.521 8.904 17.713 8.712C17.905 8.52 18.0007 8.28267 18 8C18 7.71667 17.904 7.479 17.712 7.287C17.52 7.095 17.2827 6.99934 17 7H13C12.7167 7 12.479 7.096 12.287 7.288C12.095 7.48 11.9993 7.71734 12 8C12 8.28334 12.096 8.521 12.288 8.713C12.48 8.905 12.7173 9.00067 13 9ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",
|
|
1010
1010
|
fill: "black"
|
|
1011
|
-
}, null, -1),
|
|
1012
|
-
|
|
1011
|
+
}, null, -1), qc = [
|
|
1012
|
+
Wc
|
|
1013
1013
|
];
|
|
1014
1014
|
function zc(t, e) {
|
|
1015
|
-
return v(), g("svg", Fc,
|
|
1015
|
+
return v(), g("svg", Fc, qc);
|
|
1016
1016
|
}
|
|
1017
1017
|
const xc = /* @__PURE__ */ j(Zc, [["render", zc]]), Yc = {}, Gc = {
|
|
1018
1018
|
width: "24",
|
|
@@ -1063,7 +1063,7 @@ const c2 = /* @__PURE__ */ j(o2, [["render", d2]]), f2 = /* @__PURE__ */ Object.
|
|
|
1063
1063
|
__proto__: null,
|
|
1064
1064
|
AccountBoxSharp: Ls,
|
|
1065
1065
|
AccountCircle: Rs,
|
|
1066
|
-
AccountTreeOutlineRounded:
|
|
1066
|
+
AccountTreeOutlineRounded: Ws,
|
|
1067
1067
|
AccountTreeRounded: Ks,
|
|
1068
1068
|
Add: ai,
|
|
1069
1069
|
AddBoxOutlineRounded: li,
|
|
@@ -1072,7 +1072,7 @@ const c2 = /* @__PURE__ */ j(o2, [["render", d2]]), f2 = /* @__PURE__ */ Object.
|
|
|
1072
1072
|
ArrowDropDownRounded: Ai,
|
|
1073
1073
|
ArrowForwardRounded: Li,
|
|
1074
1074
|
AssignmentOutlineRounded: Ri,
|
|
1075
|
-
AttachFileRounded:
|
|
1075
|
+
AttachFileRounded: Wi,
|
|
1076
1076
|
CalendarTodayOutlineRounded: Ki,
|
|
1077
1077
|
CancelRounded: ao,
|
|
1078
1078
|
ChatOutline: lo,
|
|
@@ -1081,7 +1081,7 @@ const c2 = /* @__PURE__ */ j(o2, [["render", d2]]), f2 = /* @__PURE__ */ Object.
|
|
|
1081
1081
|
CheckBoxOutlineRounded: To,
|
|
1082
1082
|
CheckSmallRounded: Vo,
|
|
1083
1083
|
ChecklistRounded: No,
|
|
1084
|
-
ChevronLeft:
|
|
1084
|
+
ChevronLeft: qo,
|
|
1085
1085
|
ChevronRight: Xo,
|
|
1086
1086
|
CloseRounded: nr,
|
|
1087
1087
|
ContactsOutlineRounded: ur,
|
|
@@ -1090,7 +1090,7 @@ const c2 = /* @__PURE__ */ j(o2, [["render", d2]]), f2 = /* @__PURE__ */ Object.
|
|
|
1090
1090
|
DragIndicator: Tr,
|
|
1091
1091
|
EditDocumentRounded: Vr,
|
|
1092
1092
|
EditOutline: Nr,
|
|
1093
|
-
ErrorOutlineRounded:
|
|
1093
|
+
ErrorOutlineRounded: qr,
|
|
1094
1094
|
FilterListRounded: Xr,
|
|
1095
1095
|
FlagRounded: nl,
|
|
1096
1096
|
FlowsheetOutlineRounded: ul,
|
|
@@ -1099,7 +1099,7 @@ const c2 = /* @__PURE__ */ j(o2, [["render", d2]]), f2 = /* @__PURE__ */ Object.
|
|
|
1099
1099
|
HomeOutlineRounded: Tl,
|
|
1100
1100
|
ImageRounded: Vl,
|
|
1101
1101
|
Info: Nl,
|
|
1102
|
-
KeyboardArrowDown:
|
|
1102
|
+
KeyboardArrowDown: ql,
|
|
1103
1103
|
KeyboardArrowUp: Xl,
|
|
1104
1104
|
Loading: iu,
|
|
1105
1105
|
Lock: cu,
|
|
@@ -1221,10 +1221,10 @@ function C1(t) {
|
|
|
1221
1221
|
o(!1), await De(() => {
|
|
1222
1222
|
t.value[n.value] = a.value, u == null || u();
|
|
1223
1223
|
});
|
|
1224
|
-
}, r = (u) => async (
|
|
1224
|
+
}, r = (u) => async (d) => {
|
|
1225
1225
|
const l = t.value[n.value];
|
|
1226
1226
|
o(!1), await De(() => {
|
|
1227
|
-
u(l,
|
|
1227
|
+
u(l, d);
|
|
1228
1228
|
});
|
|
1229
1229
|
};
|
|
1230
1230
|
return ce(e, async (u) => {
|
|
@@ -1253,7 +1253,7 @@ 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 } = C1(n), u = M(() => s.value ? "input" : a.tag || `h${a.level}`),
|
|
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}`), d = M(() => a.isEditable ? s.value ? {
|
|
1257
1257
|
change: l,
|
|
1258
1258
|
click: (_) => _.stopPropagation(),
|
|
1259
1259
|
blur: f
|
|
@@ -1263,7 +1263,7 @@ const _e = /* @__PURE__ */ J({
|
|
|
1263
1263
|
} : {}), l = i((_, y) => {
|
|
1264
1264
|
const A = y.target.value;
|
|
1265
1265
|
e("update:title", A);
|
|
1266
|
-
}),
|
|
1266
|
+
}), c = r(), f = async () => {
|
|
1267
1267
|
s.value && o(!1);
|
|
1268
1268
|
}, C = () => {
|
|
1269
1269
|
e("toggle-is-editing", !1);
|
|
@@ -1273,7 +1273,7 @@ const _e = /* @__PURE__ */ J({
|
|
|
1273
1273
|
return ce(
|
|
1274
1274
|
() => a.isEditable,
|
|
1275
1275
|
(_) => {
|
|
1276
|
-
_ ||
|
|
1276
|
+
_ || c();
|
|
1277
1277
|
}
|
|
1278
1278
|
), (_, y) => (v(), R(vt(u.value), Ve({
|
|
1279
1279
|
id: _.id,
|
|
@@ -1293,10 +1293,10 @@ const _e = /* @__PURE__ */ J({
|
|
|
1293
1293
|
value: X(s) ? _.title : null,
|
|
1294
1294
|
tabindex: "0",
|
|
1295
1295
|
onKeyup: ut(C, ["enter"])
|
|
1296
|
-
}, _s(
|
|
1297
|
-
onKeydown: ut(X(
|
|
1296
|
+
}, _s(d.value), {
|
|
1297
|
+
onKeydown: ut(X(c), ["esc"])
|
|
1298
1298
|
}), {
|
|
1299
|
-
default:
|
|
1299
|
+
default: W(() => [
|
|
1300
1300
|
Ra(K(_.title), 1)
|
|
1301
1301
|
]),
|
|
1302
1302
|
_: 1
|
|
@@ -1344,7 +1344,7 @@ const C2 = {
|
|
|
1344
1344
|
return (n, s) => (v(), R(vt(n.tagName), {
|
|
1345
1345
|
class: x(["ao-card-horiz", { "ao-card-horiz--active": n.isActive }])
|
|
1346
1346
|
}, {
|
|
1347
|
-
default:
|
|
1347
|
+
default: W(() => [
|
|
1348
1348
|
n.isDraggable ? (v(), g("div", C2, [
|
|
1349
1349
|
V(fe, {
|
|
1350
1350
|
name: "DragIndicator",
|
|
@@ -1418,7 +1418,7 @@ const yn = /* @__PURE__ */ J({
|
|
|
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))
|
|
1420
1420
|
}), {
|
|
1421
|
-
default:
|
|
1421
|
+
default: W(() => [
|
|
1422
1422
|
Ra(K(s.label), 1)
|
|
1423
1423
|
]),
|
|
1424
1424
|
_: 1
|
|
@@ -1581,32 +1581,32 @@ 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, u,
|
|
1584
|
+
var a, n, s, o, i, r, u, d;
|
|
1585
1585
|
ge(1, arguments);
|
|
1586
|
-
var l = ca(),
|
|
1587
|
-
if (!(
|
|
1586
|
+
var l = ca(), c = 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 || (d = u.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && a !== void 0 ? a : 0);
|
|
1587
|
+
if (!(c >= 0 && c <= 6))
|
|
1588
1588
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1589
|
-
var f = be(t), C = f.getUTCDay(), $ = (C <
|
|
1589
|
+
var f = be(t), C = f.getUTCDay(), $ = (C < c ? 7 : 0) + C - c;
|
|
1590
1590
|
return f.setUTCDate(f.getUTCDate() - $), f.setUTCHours(0, 0, 0, 0), f;
|
|
1591
1591
|
}
|
|
1592
1592
|
function $1(t, e) {
|
|
1593
|
-
var a, n, s, o, i, r, u,
|
|
1593
|
+
var a, n, s, o, i, r, u, d;
|
|
1594
1594
|
ge(1, arguments);
|
|
1595
|
-
var l = be(t),
|
|
1595
|
+
var l = be(t), c = 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 || (d = u.options) === null || d === void 0 ? void 0 : d.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);
|
|
1599
|
-
$.setUTCFullYear(
|
|
1599
|
+
$.setUTCFullYear(c + 1, 0, C), $.setUTCHours(0, 0, 0, 0);
|
|
1600
1600
|
var _ = La($, e), y = /* @__PURE__ */ new Date(0);
|
|
1601
|
-
y.setUTCFullYear(
|
|
1601
|
+
y.setUTCFullYear(c, 0, C), y.setUTCHours(0, 0, 0, 0);
|
|
1602
1602
|
var m = La(y, e);
|
|
1603
|
-
return l.getTime() >= _.getTime() ?
|
|
1603
|
+
return l.getTime() >= _.getTime() ? c + 1 : l.getTime() >= m.getTime() ? c : c - 1;
|
|
1604
1604
|
}
|
|
1605
1605
|
function U2(t, e) {
|
|
1606
|
-
var a, n, s, o, i, r, u,
|
|
1606
|
+
var a, n, s, o, i, r, u, d;
|
|
1607
1607
|
ge(1, arguments);
|
|
1608
|
-
var l = ca(),
|
|
1609
|
-
C.setUTCFullYear(f, 0,
|
|
1608
|
+
var l = 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 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : (u = l.locale) === null || u === void 0 || (d = u.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && a !== void 0 ? a : 1), f = $1(t, e), C = /* @__PURE__ */ new Date(0);
|
|
1609
|
+
C.setUTCFullYear(f, 0, c), C.setUTCHours(0, 0, 0, 0);
|
|
1610
1610
|
var $ = La(C, e);
|
|
1611
1611
|
return $;
|
|
1612
1612
|
}
|
|
@@ -1621,7 +1621,7 @@ function ue(t, e) {
|
|
|
1621
1621
|
n = "0" + n;
|
|
1622
1622
|
return a + n;
|
|
1623
1623
|
}
|
|
1624
|
-
var
|
|
1624
|
+
var W2 = {
|
|
1625
1625
|
// Year
|
|
1626
1626
|
y: function(e, a) {
|
|
1627
1627
|
var n = e.getUTCFullYear(), s = n > 0 ? n : 1 - n;
|
|
@@ -1674,7 +1674,7 @@ var q2 = {
|
|
|
1674
1674
|
return ue(o, a.length);
|
|
1675
1675
|
}
|
|
1676
1676
|
};
|
|
1677
|
-
const it =
|
|
1677
|
+
const it = W2;
|
|
1678
1678
|
var It = {
|
|
1679
1679
|
am: "am",
|
|
1680
1680
|
pm: "pm",
|
|
@@ -1684,7 +1684,7 @@ var It = {
|
|
|
1684
1684
|
afternoon: "afternoon",
|
|
1685
1685
|
evening: "evening",
|
|
1686
1686
|
night: "night"
|
|
1687
|
-
},
|
|
1687
|
+
}, q2 = {
|
|
1688
1688
|
// Era
|
|
1689
1689
|
G: function(e, a, n) {
|
|
1690
1690
|
var s = e.getUTCFullYear() > 0 ? 1 : 0;
|
|
@@ -2238,7 +2238,7 @@ function yt(t, e) {
|
|
|
2238
2238
|
var a = e || "", n = t > 0 ? "-" : "+", s = Math.abs(t), o = ue(Math.floor(s / 60), 2), i = ue(s % 60, 2);
|
|
2239
2239
|
return n + o + a + i;
|
|
2240
2240
|
}
|
|
2241
|
-
const z2 =
|
|
2241
|
+
const z2 = q2;
|
|
2242
2242
|
var Kn = function(e, a) {
|
|
2243
2243
|
switch (e) {
|
|
2244
2244
|
case "P":
|
|
@@ -2454,8 +2454,8 @@ function Kt(t) {
|
|
|
2454
2454
|
var r = t.defaultWidth, u = a != null && a.width ? String(a.width) : t.defaultWidth;
|
|
2455
2455
|
s = t.values[u] || t.values[r];
|
|
2456
2456
|
}
|
|
2457
|
-
var
|
|
2458
|
-
return s[
|
|
2457
|
+
var d = t.argumentCallback ? t.argumentCallback(e) : e;
|
|
2458
|
+
return s[d];
|
|
2459
2459
|
};
|
|
2460
2460
|
}
|
|
2461
2461
|
var c0 = {
|
|
@@ -2583,15 +2583,15 @@ 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], u = Array.isArray(r) ? b0(r, function(
|
|
2587
|
-
return
|
|
2588
|
-
}) : y0(r, function(
|
|
2589
|
-
return
|
|
2590
|
-
}),
|
|
2591
|
-
|
|
2586
|
+
var i = o[0], r = n && t.parsePatterns[n] || t.parsePatterns[t.defaultParseWidth], u = Array.isArray(r) ? b0(r, function(c) {
|
|
2587
|
+
return c.test(i);
|
|
2588
|
+
}) : y0(r, function(c) {
|
|
2589
|
+
return c.test(i);
|
|
2590
|
+
}), d;
|
|
2591
|
+
d = t.valueCallback ? t.valueCallback(u) : u, d = a.valueCallback ? a.valueCallback(d) : d;
|
|
2592
2592
|
var l = e.slice(i.length);
|
|
2593
2593
|
return {
|
|
2594
|
-
value:
|
|
2594
|
+
value: d,
|
|
2595
2595
|
rest: l
|
|
2596
2596
|
};
|
|
2597
2597
|
};
|
|
@@ -2722,13 +2722,13 @@ var B0 = {
|
|
|
2722
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
2724
|
function A1(t, e, a) {
|
|
2725
|
-
var n, s, o, i, r, u,
|
|
2725
|
+
var n, s, o, i, r, u, d, l, c, 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 : M1, U = Ke((o = (i = (r = (u = a == null ? void 0 : a.firstWeekContainsDate) !== null && u !== void 0 ? u : a == null || (
|
|
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 || (d = a.locale) === null || d === void 0 || (l = d.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && r !== void 0 ? r : L.firstWeekContainsDate) !== null && i !== void 0 ? i : (c = L.locale) === null || c === void 0 || (f = c.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
|
-
var
|
|
2731
|
-
if (!(
|
|
2730
|
+
var q = 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);
|
|
2731
|
+
if (!(q >= 0 && q <= 6))
|
|
2732
2732
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2733
2733
|
if (!Z.localize)
|
|
2734
2734
|
throw new RangeError("locale must contain localize property");
|
|
@@ -2739,7 +2739,7 @@ function A1(t, e, a) {
|
|
|
2739
2739
|
throw new RangeError("Invalid time value");
|
|
2740
2740
|
var Y = sa(O), B = vn(O, Y), F = {
|
|
2741
2741
|
firstWeekContainsDate: U,
|
|
2742
|
-
weekStartsOn:
|
|
2742
|
+
weekStartsOn: q,
|
|
2743
2743
|
locale: Z,
|
|
2744
2744
|
_originalDate: O
|
|
2745
2745
|
}, E = D.match(N0).map(function(N) {
|
|
@@ -2768,10 +2768,10 @@ function F0(t) {
|
|
|
2768
2768
|
var e = t.match(j0);
|
|
2769
2769
|
return e ? e[1].replace(U0, "'") : t;
|
|
2770
2770
|
}
|
|
2771
|
-
function
|
|
2772
|
-
var n, s, o, i, r, u,
|
|
2771
|
+
function W0(t, e, a) {
|
|
2772
|
+
var n, s, o, i, r, u, d, l, c, 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 : M1, m = Ke((o = (i = (r = (u = a == null ? void 0 : a.weekStartsOn) !== null && u !== void 0 ? u : a == null || (
|
|
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 || (d = a.locale) === null || d === void 0 || (l = d.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && r !== void 0 ? r : _.weekStartsOn) !== null && i !== void 0 ? i : (c = _.locale) === null || c === void 0 || (f = c.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)
|
|
@@ -2807,23 +2807,23 @@ 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(), u = 0,
|
|
2810
|
+
var r = o.getTime(), u = 0, d;
|
|
2811
2811
|
if (s.time && (u = X0(s.time), isNaN(u)))
|
|
2812
2812
|
return /* @__PURE__ */ new Date(NaN);
|
|
2813
2813
|
if (s.timezone) {
|
|
2814
|
-
if (
|
|
2814
|
+
if (d = Q0(s.timezone), isNaN(d))
|
|
2815
2815
|
return /* @__PURE__ */ new Date(NaN);
|
|
2816
2816
|
} else {
|
|
2817
|
-
var l = new Date(r + u),
|
|
2818
|
-
return
|
|
2817
|
+
var l = new Date(r + u), c = /* @__PURE__ */ new Date(0);
|
|
2818
|
+
return c.setFullYear(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate()), c.setHours(l.getUTCHours(), l.getUTCMinutes(), l.getUTCSeconds(), l.getUTCMilliseconds()), c;
|
|
2819
2819
|
}
|
|
2820
|
-
return new Date(r + u +
|
|
2820
|
+
return new Date(r + u + d);
|
|
2821
2821
|
}
|
|
2822
2822
|
var $a = {
|
|
2823
2823
|
dateTimeDelimiter: /[T ]/,
|
|
2824
2824
|
timeZoneDelimiter: /[Z ]/i,
|
|
2825
2825
|
timezone: /([Z+-].*)$/
|
|
2826
|
-
},
|
|
2826
|
+
}, q0 = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, z0 = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, x0 = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
2827
2827
|
function Y0(t) {
|
|
2828
2828
|
var e = {}, a = t.split($a.dateTimeDelimiter), n;
|
|
2829
2829
|
if (a.length > 2)
|
|
@@ -2850,14 +2850,14 @@ function G0(t, e) {
|
|
|
2850
2850
|
function K0(t, e) {
|
|
2851
2851
|
if (e === null)
|
|
2852
2852
|
return /* @__PURE__ */ new Date(NaN);
|
|
2853
|
-
var a = t.match(
|
|
2853
|
+
var a = t.match(q0);
|
|
2854
2854
|
if (!a)
|
|
2855
2855
|
return /* @__PURE__ */ new Date(NaN);
|
|
2856
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
2858
|
return n3(e, r, u) ? J0(e, r, u) : /* @__PURE__ */ new Date(NaN);
|
|
2859
|
-
var
|
|
2860
|
-
return !t3(e, o, i) || !a3(e, s) ? /* @__PURE__ */ new Date(NaN) : (
|
|
2859
|
+
var d = /* @__PURE__ */ new Date(0);
|
|
2860
|
+
return !t3(e, o, i) || !a3(e, s) ? /* @__PURE__ */ new Date(NaN) : (d.setUTCFullYear(e, o, Math.max(s, i)), d);
|
|
2861
2861
|
}
|
|
2862
2862
|
function Qt(t) {
|
|
2863
2863
|
return t ? parseInt(t) : 1;
|
|
@@ -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 = {}, S1 = {}, Jt = {}, fa = {},
|
|
2909
|
+
var Le = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ie = {}, S1 = {}, Jt = {}, fa = {}, qt = {}, Ua = {};
|
|
2910
2910
|
Object.defineProperty(Ua, "__esModule", { value: !0 });
|
|
2911
2911
|
Ua.lexoHelper = void 0;
|
|
2912
2912
|
Ua.lexoHelper = {
|
|
@@ -2944,8 +2944,8 @@ class r3 {
|
|
|
2944
2944
|
}
|
|
2945
2945
|
}
|
|
2946
2946
|
va.default = r3;
|
|
2947
|
-
Object.defineProperty(
|
|
2948
|
-
|
|
2947
|
+
Object.defineProperty(qt, "__esModule", { value: !0 });
|
|
2948
|
+
qt.LexoInteger = void 0;
|
|
2949
2949
|
const ka = Ua, l3 = va;
|
|
2950
2950
|
class ie {
|
|
2951
2951
|
constructor(e, a, n) {
|
|
@@ -2981,8 +2981,8 @@ 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 u = r < a.length ? a[r] : 0,
|
|
2985
|
-
let l = u +
|
|
2984
|
+
const u = r < a.length ? a[r] : 0, d = r < n.length ? n[r] : 0;
|
|
2985
|
+
let l = u + d + i;
|
|
2986
2986
|
for (i = 0; l >= e.getBase(); l -= e.getBase())
|
|
2987
2987
|
++i;
|
|
2988
2988
|
o[r] = l;
|
|
@@ -3140,7 +3140,7 @@ class ie {
|
|
|
3140
3140
|
throw new Error("Expected numbers of same numeral sys");
|
|
3141
3141
|
}
|
|
3142
3142
|
}
|
|
3143
|
-
|
|
3143
|
+
qt.LexoInteger = ie;
|
|
3144
3144
|
ie.ZERO_MAG = [0];
|
|
3145
3145
|
ie.ONE_MAG = [1];
|
|
3146
3146
|
ie.NEGATIVE_SIGN = -1;
|
|
@@ -3148,7 +3148,7 @@ ie.ZERO_SIGN = 0;
|
|
|
3148
3148
|
ie.POSITIVE_SIGN = 1;
|
|
3149
3149
|
Object.defineProperty(fa, "__esModule", { value: !0 });
|
|
3150
3150
|
fa.LexoDecimal = void 0;
|
|
3151
|
-
const ea =
|
|
3151
|
+
const ea = qt, u3 = va;
|
|
3152
3152
|
class Oe {
|
|
3153
3153
|
constructor(e, a) {
|
|
3154
3154
|
this.mag = e, this.sig = a;
|
|
@@ -3258,7 +3258,7 @@ function O1() {
|
|
|
3258
3258
|
if (Qn)
|
|
3259
3259
|
return Ma;
|
|
3260
3260
|
Qn = 1, Object.defineProperty(Ma, "__esModule", { value: !0 });
|
|
3261
|
-
const t =
|
|
3261
|
+
const t = qt, e = I1();
|
|
3262
3262
|
class a {
|
|
3263
3263
|
constructor(s) {
|
|
3264
3264
|
this.value = t.LexoInteger.parse(s, e.LexoRank.NUMERAL_SYSTEM);
|
|
@@ -3281,9 +3281,9 @@ function O1() {
|
|
|
3281
3281
|
static from(s) {
|
|
3282
3282
|
const o = t.LexoInteger.parse(s, e.LexoRank.NUMERAL_SYSTEM), i = a.VALUES, r = i.length;
|
|
3283
3283
|
for (let u = 0; u < r; ++u) {
|
|
3284
|
-
const
|
|
3285
|
-
if (
|
|
3286
|
-
return
|
|
3284
|
+
const d = i[u];
|
|
3285
|
+
if (d.value.equals(o))
|
|
3286
|
+
return d;
|
|
3287
3287
|
}
|
|
3288
3288
|
throw new Error("Unknown bucket: " + s);
|
|
3289
3289
|
}
|
|
@@ -3370,9 +3370,9 @@ class c3 {
|
|
|
3370
3370
|
}
|
|
3371
3371
|
}
|
|
3372
3372
|
Fa.LexoNumeralSystem36 = c3;
|
|
3373
|
-
var
|
|
3374
|
-
Object.defineProperty(
|
|
3375
|
-
|
|
3373
|
+
var Wa = {};
|
|
3374
|
+
Object.defineProperty(Wa, "__esModule", { value: !0 });
|
|
3375
|
+
Wa.LexoNumeralSystem64 = void 0;
|
|
3376
3376
|
class f3 {
|
|
3377
3377
|
constructor() {
|
|
3378
3378
|
this.DIGITS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz".split("");
|
|
@@ -3406,7 +3406,7 @@ class f3 {
|
|
|
3406
3406
|
return this.DIGITS[e];
|
|
3407
3407
|
}
|
|
3408
3408
|
}
|
|
3409
|
-
|
|
3409
|
+
Wa.LexoNumeralSystem64 = f3;
|
|
3410
3410
|
(function(t) {
|
|
3411
3411
|
var e = Le && Le.__createBinding || (Object.create ? function(n, s, o, i) {
|
|
3412
3412
|
i === void 0 && (i = o);
|
|
@@ -3420,7 +3420,7 @@ 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(E1, t), a(Za, t), a(Fa, t), a(
|
|
3423
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), a(E1, t), a(Za, t), a(Fa, t), a(Wa, t);
|
|
3424
3424
|
})(bn);
|
|
3425
3425
|
var Jn;
|
|
3426
3426
|
function I1() {
|
|
@@ -3475,27 +3475,27 @@ function I1() {
|
|
|
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 u = i,
|
|
3478
|
+
let u = i, d = r, l;
|
|
3479
3479
|
if (i.getScale() < r.getScale()) {
|
|
3480
3480
|
if (l = r.setScale(i.getScale(), !1), i.compareTo(l) >= 0)
|
|
3481
3481
|
return s.mid(i, r);
|
|
3482
|
-
|
|
3482
|
+
d = l;
|
|
3483
3483
|
}
|
|
3484
|
-
if (i.getScale() >
|
|
3485
|
-
if (l = i.setScale(
|
|
3484
|
+
if (i.getScale() > d.getScale()) {
|
|
3485
|
+
if (l = i.setScale(d.getScale(), !0), l.compareTo(d) >= 0)
|
|
3486
3486
|
return s.mid(i, r);
|
|
3487
3487
|
u = l;
|
|
3488
3488
|
}
|
|
3489
|
-
let
|
|
3490
|
-
for (let $ = u.getScale(); $ > 0;
|
|
3489
|
+
let c;
|
|
3490
|
+
for (let $ = u.getScale(); $ > 0; d = c) {
|
|
3491
3491
|
const _ = $ - 1, y = u.setScale(_, !0);
|
|
3492
|
-
if (
|
|
3492
|
+
if (c = d.setScale(_, !1), y.compareTo(c) === 0)
|
|
3493
3493
|
return s.checkMid(i, r, y);
|
|
3494
|
-
if (y.compareTo(
|
|
3494
|
+
if (y.compareTo(c) > 0)
|
|
3495
3495
|
break;
|
|
3496
3496
|
$ = _, u = y;
|
|
3497
3497
|
}
|
|
3498
|
-
let f = s.middleInternal(i, r, u,
|
|
3498
|
+
let f = s.middleInternal(i, r, u, d), C;
|
|
3499
3499
|
for (let $ = f.getScale(); $ > 0; $ = C) {
|
|
3500
3500
|
C = $ - 1;
|
|
3501
3501
|
const _ = f.setScale(C);
|
|
@@ -3506,39 +3506,39 @@ function I1() {
|
|
|
3506
3506
|
return f;
|
|
3507
3507
|
}
|
|
3508
3508
|
static parse(i) {
|
|
3509
|
-
const r = i.split("|"), u = e.default.from(r[0]),
|
|
3510
|
-
return new s(u,
|
|
3509
|
+
const r = i.split("|"), u = e.default.from(r[0]), d = t.LexoDecimal.parse(r[1], s.NUMERAL_SYSTEM);
|
|
3510
|
+
return new s(u, d);
|
|
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, u,
|
|
3518
|
-
const l = s.mid(u,
|
|
3517
|
+
static middleInternal(i, r, u, d) {
|
|
3518
|
+
const l = s.mid(u, d);
|
|
3519
3519
|
return s.checkMid(i, r, l);
|
|
3520
3520
|
}
|
|
3521
3521
|
static checkMid(i, r, u) {
|
|
3522
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
|
|
3526
|
-
if (
|
|
3527
|
-
const
|
|
3528
|
-
if (
|
|
3529
|
-
return
|
|
3530
|
-
const f =
|
|
3525
|
+
const d = i.add(r).multiply(t.LexoDecimal.half(i.getSystem())), l = i.getScale() > r.getScale() ? i.getScale() : r.getScale();
|
|
3526
|
+
if (d.getScale() > l) {
|
|
3527
|
+
const c = d.setScale(l, !1);
|
|
3528
|
+
if (c.compareTo(i) > 0)
|
|
3529
|
+
return c;
|
|
3530
|
+
const f = d.setScale(l, !0);
|
|
3531
3531
|
if (f.compareTo(r) < 0)
|
|
3532
3532
|
return f;
|
|
3533
3533
|
}
|
|
3534
|
-
return
|
|
3534
|
+
return d;
|
|
3535
3535
|
}
|
|
3536
3536
|
static formatDecimal(i) {
|
|
3537
3537
|
const r = i.format(), u = new a.default(r);
|
|
3538
|
-
let
|
|
3538
|
+
let d = r.indexOf(s.NUMERAL_SYSTEM.getRadixPointChar());
|
|
3539
3539
|
const l = s.NUMERAL_SYSTEM.toChar(0);
|
|
3540
|
-
for (
|
|
3541
|
-
u.insert(0, l), ++
|
|
3540
|
+
for (d < 0 && (d = r.length, u.append(s.NUMERAL_SYSTEM.getRadixPointChar())); d < 6; )
|
|
3541
|
+
u.insert(0, l), ++d;
|
|
3542
3542
|
for (; u[u.length - 1] === l; )
|
|
3543
3543
|
u.length = u.length - 1;
|
|
3544
3544
|
return u.toString();
|
|
@@ -3613,7 +3613,7 @@ function I1() {
|
|
|
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(I1(), t), a(O1(), t), a(fa, t), a(
|
|
3616
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), a(I1(), t), a(O1(), t), a(fa, t), a(qt, t);
|
|
3617
3617
|
})(S1);
|
|
3618
3618
|
(function(t) {
|
|
3619
3619
|
var e = Le && Le.__createBinding || (Object.create ? function(n, s, o, i) {
|
|
@@ -3765,7 +3765,7 @@ const b3 = { class: "ao-card-template__subitems" }, w3 = { class: "ao-card-templ
|
|
|
3765
3765
|
"is-draggable": !0,
|
|
3766
3766
|
"onUpdate:title": a
|
|
3767
3767
|
}, Na({
|
|
3768
|
-
subtitle:
|
|
3768
|
+
subtitle: W(() => [
|
|
3769
3769
|
p("ul", b3, [
|
|
3770
3770
|
p("li", w3, [
|
|
3771
3771
|
V(fe, {
|
|
@@ -3783,7 +3783,7 @@ const b3 = { class: "ao-card-template__subitems" }, w3 = { class: "ao-card-templ
|
|
|
3783
3783
|
])
|
|
3784
3784
|
])
|
|
3785
3785
|
]),
|
|
3786
|
-
default:
|
|
3786
|
+
default: W(() => [
|
|
3787
3787
|
p("div", A3, [
|
|
3788
3788
|
p("div", T3, [
|
|
3789
3789
|
p("div", S3, [
|
|
@@ -3808,7 +3808,7 @@ const b3 = { class: "ao-card-template__subitems" }, w3 = { class: "ao-card-templ
|
|
|
3808
3808
|
}, [
|
|
3809
3809
|
n.updatedBy || n.updatedAt ? {
|
|
3810
3810
|
name: "footer",
|
|
3811
|
-
fn:
|
|
3811
|
+
fn: W(() => [
|
|
3812
3812
|
p("div", I3, [
|
|
3813
3813
|
n.updatedAt ? (v(), g("div", L3, [
|
|
3814
3814
|
p("div", V3, [
|
|
@@ -3836,7 +3836,7 @@ const b3 = { class: "ao-card-template__subitems" }, w3 = { class: "ao-card-templ
|
|
|
3836
3836
|
const U3 = { class: "ao-page-header" }, Z3 = { class: "ao-page-header-main" }, F3 = {
|
|
3837
3837
|
key: 0,
|
|
3838
3838
|
class: "ao-page-header-secondary"
|
|
3839
|
-
},
|
|
3839
|
+
}, qa = /* @__PURE__ */ J({
|
|
3840
3840
|
__name: "AoPageHeader",
|
|
3841
3841
|
props: {
|
|
3842
3842
|
canGoBack: { type: Boolean }
|
|
@@ -3859,7 +3859,7 @@ const U3 = { class: "ao-page-header" }, Z3 = { class: "ao-page-header-main" }, F
|
|
|
3859
3859
|
]));
|
|
3860
3860
|
}
|
|
3861
3861
|
});
|
|
3862
|
-
const
|
|
3862
|
+
const W3 = ["type"], q3 = {
|
|
3863
3863
|
key: 0,
|
|
3864
3864
|
class: "ao-button-card__label"
|
|
3865
3865
|
}, mt = /* @__PURE__ */ J({
|
|
@@ -3886,7 +3886,7 @@ const q3 = ["type"], W3 = {
|
|
|
3886
3886
|
])
|
|
3887
3887
|
}, [
|
|
3888
3888
|
te(s.$slots, "default", {}, () => [
|
|
3889
|
-
s.label ? (v(), g("span",
|
|
3889
|
+
s.label ? (v(), g("span", q3, K(s.label), 1)) : T("", !0)
|
|
3890
3890
|
]),
|
|
3891
3891
|
n.value ? (v(), R(fe, {
|
|
3892
3892
|
key: 0,
|
|
@@ -3894,7 +3894,7 @@ const q3 = ["type"], W3 = {
|
|
|
3894
3894
|
class: "ao-button-card__icon",
|
|
3895
3895
|
size: a.value
|
|
3896
3896
|
}, null, 8, ["name", "size"])) : T("", !0)
|
|
3897
|
-
], 10,
|
|
3897
|
+
], 10, W3));
|
|
3898
3898
|
}
|
|
3899
3899
|
});
|
|
3900
3900
|
const z3 = { class: "ao-card-template-item__footer" }, x3 = {
|
|
@@ -3921,7 +3921,7 @@ const z3 = { class: "ao-card-template-item__footer" }, x3 = {
|
|
|
3921
3921
|
e("remove");
|
|
3922
3922
|
};
|
|
3923
3923
|
return (i, r) => (v(), R(g1, { "onUpdate:title": a }, {
|
|
3924
|
-
footer:
|
|
3924
|
+
footer: W(() => [
|
|
3925
3925
|
p("ul", z3, [
|
|
3926
3926
|
(v(), g(Ce, null, ye(n, (u) => (v(), g(Ce, { key: u }, [
|
|
3927
3927
|
i.$props[u] ? (v(), g("li", x3, [
|
|
@@ -3934,7 +3934,7 @@ const z3 = { class: "ao-card-template-item__footer" }, x3 = {
|
|
|
3934
3934
|
], 64))), 64))
|
|
3935
3935
|
])
|
|
3936
3936
|
]),
|
|
3937
|
-
secondary:
|
|
3937
|
+
secondary: W(() => [
|
|
3938
3938
|
p("div", G3, [
|
|
3939
3939
|
V(de, {
|
|
3940
3940
|
"icon-name": "DeleteOutlineRounded",
|
|
@@ -3967,7 +3967,7 @@ const K3 = /* @__PURE__ */ J({
|
|
|
3967
3967
|
activities: n.value,
|
|
3968
3968
|
milestones: a.value
|
|
3969
3969
|
}, s.$attrs), {
|
|
3970
|
-
default:
|
|
3970
|
+
default: W(() => [
|
|
3971
3971
|
te(s.$slots, "default")
|
|
3972
3972
|
]),
|
|
3973
3973
|
_: 3
|
|
@@ -3984,7 +3984,7 @@ const K3 = /* @__PURE__ */ J({
|
|
|
3984
3984
|
return ((n = e.activities) == null ? void 0 : n.length) || 0;
|
|
3985
3985
|
});
|
|
3986
3986
|
return (n, s) => (v(), R(kn, { activities: a.value }, {
|
|
3987
|
-
default:
|
|
3987
|
+
default: W(() => [
|
|
3988
3988
|
te(n.$slots, "default")
|
|
3989
3989
|
]),
|
|
3990
3990
|
_: 3
|
|
@@ -4023,31 +4023,31 @@ const K3 = /* @__PURE__ */ J({
|
|
|
4023
4023
|
"item-key": "id",
|
|
4024
4024
|
onChange: i
|
|
4025
4025
|
}, {
|
|
4026
|
-
header:
|
|
4026
|
+
header: W(() => [
|
|
4027
4027
|
V(_e, {
|
|
4028
4028
|
title: "Milestones",
|
|
4029
4029
|
level: 3,
|
|
4030
4030
|
class: "ao-list__title"
|
|
4031
4031
|
})
|
|
4032
4032
|
]),
|
|
4033
|
-
item:
|
|
4033
|
+
item: W(({ element: d }) => [
|
|
4034
4034
|
(v(), R(X3, {
|
|
4035
|
-
id:
|
|
4036
|
-
key:
|
|
4037
|
-
title:
|
|
4038
|
-
activities:
|
|
4039
|
-
"is-active": r.milestoneId ===
|
|
4035
|
+
id: d.id,
|
|
4036
|
+
key: d.id,
|
|
4037
|
+
title: d.name,
|
|
4038
|
+
activities: d.activities,
|
|
4039
|
+
"is-active": r.milestoneId === d.id,
|
|
4040
4040
|
"is-draggable": !0,
|
|
4041
|
-
"onUpdate:title": (l) => o({ id:
|
|
4041
|
+
"onUpdate:title": (l) => o({ id: d.id, name: l }),
|
|
4042
4042
|
onClick: (l) => r.$router.push({
|
|
4043
4043
|
params: {
|
|
4044
|
-
milestoneId:
|
|
4044
|
+
milestoneId: d.id
|
|
4045
4045
|
}
|
|
4046
4046
|
}),
|
|
4047
|
-
onRemove: () => s(
|
|
4047
|
+
onRemove: () => s(d.id)
|
|
4048
4048
|
}, null, 8, ["id", "title", "activities", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
4049
4049
|
]),
|
|
4050
|
-
footer:
|
|
4050
|
+
footer: W(() => [
|
|
4051
4051
|
p("div", Q3, [
|
|
4052
4052
|
V(mt, {
|
|
4053
4053
|
"icon-name": "AddBoxOutlineRounded",
|
|
@@ -4071,7 +4071,7 @@ const K3 = /* @__PURE__ */ J({
|
|
|
4071
4071
|
return ((n = e.tasks) == null ? void 0 : n.length) || 0;
|
|
4072
4072
|
});
|
|
4073
4073
|
return (n, s) => (v(), R(kn, { tasks: a.value }, {
|
|
4074
|
-
default:
|
|
4074
|
+
default: W(() => [
|
|
4075
4075
|
te(n.$slots, "default")
|
|
4076
4076
|
]),
|
|
4077
4077
|
_: 3
|
|
@@ -4113,27 +4113,27 @@ const K3 = /* @__PURE__ */ J({
|
|
|
4113
4113
|
"item-key": "id",
|
|
4114
4114
|
onChange: i
|
|
4115
4115
|
}, {
|
|
4116
|
-
header:
|
|
4116
|
+
header: W(() => [
|
|
4117
4117
|
V(_e, {
|
|
4118
4118
|
title: "Activities",
|
|
4119
4119
|
level: 3,
|
|
4120
4120
|
class: "ao-list__title"
|
|
4121
4121
|
})
|
|
4122
4122
|
]),
|
|
4123
|
-
item:
|
|
4123
|
+
item: W(({ element: d }) => [
|
|
4124
4124
|
(v(), R(e5, {
|
|
4125
|
-
id:
|
|
4126
|
-
key:
|
|
4127
|
-
title:
|
|
4128
|
-
tasks:
|
|
4129
|
-
"is-active": r.activityId ===
|
|
4125
|
+
id: d.id,
|
|
4126
|
+
key: d.id,
|
|
4127
|
+
title: d.name,
|
|
4128
|
+
tasks: d.tasks,
|
|
4129
|
+
"is-active": r.activityId === d.id,
|
|
4130
4130
|
"is-draggable": !0,
|
|
4131
|
-
"onUpdate:title": (l) => s({ id:
|
|
4132
|
-
onClick: (l) => r.$router.push({ params: { activityId:
|
|
4133
|
-
onRemove: () => o(
|
|
4131
|
+
"onUpdate:title": (l) => s({ id: d.id, name: l }),
|
|
4132
|
+
onClick: (l) => r.$router.push({ params: { activityId: d.id } }),
|
|
4133
|
+
onRemove: () => o(d.id)
|
|
4134
4134
|
}, null, 8, ["id", "title", "tasks", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
4135
4135
|
]),
|
|
4136
|
-
footer:
|
|
4136
|
+
footer: W(() => [
|
|
4137
4137
|
p("div", t5, [
|
|
4138
4138
|
V(mt, {
|
|
4139
4139
|
"icon-name": "AddBoxOutlineRounded",
|
|
@@ -4287,7 +4287,7 @@ function e1(t, e, a) {
|
|
|
4287
4287
|
reference: n,
|
|
4288
4288
|
floating: s
|
|
4289
4289
|
} = t;
|
|
4290
|
-
const o = Tn(e), i = P1(e), r = D1(i), u = Rt(e),
|
|
4290
|
+
const o = Tn(e), i = P1(e), r = D1(i), u = Rt(e), d = o === "y", l = n.x + n.width / 2 - s.width / 2, c = n.y + n.height / 2 - s.height / 2, f = n[r] / 2 - s[r] / 2;
|
|
4291
4291
|
let C;
|
|
4292
4292
|
switch (u) {
|
|
4293
4293
|
case "top":
|
|
@@ -4305,13 +4305,13 @@ function e1(t, e, a) {
|
|
|
4305
4305
|
case "right":
|
|
4306
4306
|
C = {
|
|
4307
4307
|
x: n.x + n.width,
|
|
4308
|
-
y:
|
|
4308
|
+
y: c
|
|
4309
4309
|
};
|
|
4310
4310
|
break;
|
|
4311
4311
|
case "left":
|
|
4312
4312
|
C = {
|
|
4313
4313
|
x: n.x - s.width,
|
|
4314
|
-
y:
|
|
4314
|
+
y: c
|
|
4315
4315
|
};
|
|
4316
4316
|
break;
|
|
4317
4317
|
default:
|
|
@@ -4322,10 +4322,10 @@ function e1(t, e, a) {
|
|
|
4322
4322
|
}
|
|
4323
4323
|
switch (za(e)) {
|
|
4324
4324
|
case "start":
|
|
4325
|
-
C[i] -= f * (a &&
|
|
4325
|
+
C[i] -= f * (a && d ? -1 : 1);
|
|
4326
4326
|
break;
|
|
4327
4327
|
case "end":
|
|
4328
|
-
C[i] += f * (a &&
|
|
4328
|
+
C[i] += f * (a && d ? -1 : 1);
|
|
4329
4329
|
break;
|
|
4330
4330
|
}
|
|
4331
4331
|
return C;
|
|
@@ -4337,14 +4337,14 @@ const g5 = async (t, e, a) => {
|
|
|
4337
4337
|
middleware: o = [],
|
|
4338
4338
|
platform: i
|
|
4339
4339
|
} = a, r = o.filter(Boolean), u = await (i.isRTL == null ? void 0 : i.isRTL(e));
|
|
4340
|
-
let
|
|
4340
|
+
let d = await i.getElementRects({
|
|
4341
4341
|
reference: t,
|
|
4342
4342
|
floating: e,
|
|
4343
4343
|
strategy: s
|
|
4344
4344
|
}), {
|
|
4345
4345
|
x: l,
|
|
4346
|
-
y:
|
|
4347
|
-
} = e1(
|
|
4346
|
+
y: c
|
|
4347
|
+
} = e1(d, n, u), f = n, C = {}, $ = 0;
|
|
4348
4348
|
for (let _ = 0; _ < r.length; _++) {
|
|
4349
4349
|
const {
|
|
4350
4350
|
name: y,
|
|
@@ -4356,39 +4356,39 @@ const g5 = async (t, e, a) => {
|
|
|
4356
4356
|
reset: D
|
|
4357
4357
|
} = await m({
|
|
4358
4358
|
x: l,
|
|
4359
|
-
y:
|
|
4359
|
+
y: c,
|
|
4360
4360
|
initialPlacement: n,
|
|
4361
4361
|
placement: f,
|
|
4362
4362
|
strategy: s,
|
|
4363
4363
|
middlewareData: C,
|
|
4364
|
-
rects:
|
|
4364
|
+
rects: d,
|
|
4365
4365
|
platform: i,
|
|
4366
4366
|
elements: {
|
|
4367
4367
|
reference: t,
|
|
4368
4368
|
floating: e
|
|
4369
4369
|
}
|
|
4370
4370
|
});
|
|
4371
|
-
if (l = A ?? l,
|
|
4371
|
+
if (l = A ?? l, c = w ?? c, C = {
|
|
4372
4372
|
...C,
|
|
4373
4373
|
[y]: {
|
|
4374
4374
|
...C[y],
|
|
4375
4375
|
...S
|
|
4376
4376
|
}
|
|
4377
4377
|
}, D && $ <= 50) {
|
|
4378
|
-
$++, typeof D == "object" && (D.placement && (f = D.placement), D.rects && (
|
|
4378
|
+
$++, typeof D == "object" && (D.placement && (f = D.placement), D.rects && (d = D.rects === !0 ? await i.getElementRects({
|
|
4379
4379
|
reference: t,
|
|
4380
4380
|
floating: e,
|
|
4381
4381
|
strategy: s
|
|
4382
4382
|
}) : D.rects), {
|
|
4383
4383
|
x: l,
|
|
4384
|
-
y:
|
|
4385
|
-
} = e1(
|
|
4384
|
+
y: c
|
|
4385
|
+
} = e1(d, f, u)), _ = -1;
|
|
4386
4386
|
continue;
|
|
4387
4387
|
}
|
|
4388
4388
|
}
|
|
4389
4389
|
return {
|
|
4390
4390
|
x: l,
|
|
4391
|
-
y:
|
|
4391
|
+
y: c,
|
|
4392
4392
|
placement: f,
|
|
4393
4393
|
strategy: s,
|
|
4394
4394
|
middlewareData: C
|
|
@@ -4405,17 +4405,17 @@ async function H1(t, e) {
|
|
|
4405
4405
|
elements: r,
|
|
4406
4406
|
strategy: u
|
|
4407
4407
|
} = t, {
|
|
4408
|
-
boundary:
|
|
4408
|
+
boundary: d = "clippingAncestors",
|
|
4409
4409
|
rootBoundary: l = "viewport",
|
|
4410
|
-
elementContext:
|
|
4410
|
+
elementContext: c = "floating",
|
|
4411
4411
|
altBoundary: f = !1,
|
|
4412
4412
|
padding: C = 0
|
|
4413
|
-
} = An(e, t), $ = C5(C), y = r[f ?
|
|
4413
|
+
} = An(e, t), $ = C5(C), y = r[f ? c === "floating" ? "reference" : "floating" : c], 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
|
-
boundary:
|
|
4415
|
+
boundary: d,
|
|
4416
4416
|
rootBoundary: l,
|
|
4417
4417
|
strategy: u
|
|
4418
|
-
})), A =
|
|
4418
|
+
})), A = c === "floating" ? {
|
|
4419
4419
|
...i.floating,
|
|
4420
4420
|
x: n,
|
|
4421
4421
|
y: s
|
|
@@ -4449,10 +4449,10 @@ const _5 = function(t) {
|
|
|
4449
4449
|
rects: i,
|
|
4450
4450
|
initialPlacement: r,
|
|
4451
4451
|
platform: u,
|
|
4452
|
-
elements:
|
|
4452
|
+
elements: d
|
|
4453
4453
|
} = e, {
|
|
4454
4454
|
mainAxis: l = !0,
|
|
4455
|
-
crossAxis:
|
|
4455
|
+
crossAxis: c = !0,
|
|
4456
4456
|
fallbackPlacements: f,
|
|
4457
4457
|
fallbackStrategy: C = "bestFit",
|
|
4458
4458
|
fallbackAxisSideDirection: $ = "none",
|
|
@@ -4461,11 +4461,11 @@ const _5 = function(t) {
|
|
|
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 (u.isRTL == null ? void 0 : u.isRTL(
|
|
4464
|
+
const m = Rt(s), A = Rt(r) === r, w = await (u.isRTL == null ? void 0 : u.isRTL(d.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 (l && Z.push(L[m]),
|
|
4468
|
+
if (l && Z.push(L[m]), c) {
|
|
4469
4469
|
const B = f5(s, i, w);
|
|
4470
4470
|
Z.push(L[B[0]], L[B[1]]);
|
|
4471
4471
|
}
|
|
@@ -4473,8 +4473,8 @@ const _5 = function(t) {
|
|
|
4473
4473
|
placement: s,
|
|
4474
4474
|
overflows: Z
|
|
4475
4475
|
}], !Z.every((B) => B <= 0)) {
|
|
4476
|
-
var
|
|
4477
|
-
const B = (((
|
|
4476
|
+
var q, O;
|
|
4477
|
+
const B = (((q = o.flip) == null ? void 0 : q.index) || 0) + 1, F = D[B];
|
|
4478
4478
|
if (F)
|
|
4479
4479
|
return {
|
|
4480
4480
|
data: {
|
|
@@ -4522,15 +4522,15 @@ const _5 = function(t) {
|
|
|
4522
4522
|
apply: i = () => {
|
|
4523
4523
|
},
|
|
4524
4524
|
...r
|
|
4525
|
-
} = An(t, e), u = await H1(e, r),
|
|
4525
|
+
} = An(t, e), u = await H1(e, r), d = Rt(a), l = za(a), c = Tn(a) === "y", {
|
|
4526
4526
|
width: f,
|
|
4527
4527
|
height: C
|
|
4528
4528
|
} = n.floating;
|
|
4529
4529
|
let $, _;
|
|
4530
|
-
|
|
4530
|
+
d === "top" || d === "bottom" ? ($ = d, _ = l === (await (s.isRTL == null ? void 0 : s.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, $ = l === "end" ? "top" : "bottom");
|
|
4531
4531
|
const y = C - u[$], m = f - u[_], A = !e.middlewareData.shift;
|
|
4532
4532
|
let w = y, S = m;
|
|
4533
|
-
if (
|
|
4533
|
+
if (c) {
|
|
4534
4534
|
const L = f - u.left - u.right;
|
|
4535
4535
|
S = l || A ? oa(m, L) : L;
|
|
4536
4536
|
} else {
|
|
@@ -4538,8 +4538,8 @@ const _5 = function(t) {
|
|
|
4538
4538
|
w = l || A ? oa(y, L) : L;
|
|
4539
4539
|
}
|
|
4540
4540
|
if (A && !l) {
|
|
4541
|
-
const L = Ee(u.left, 0), Z = Ee(u.right, 0), U = Ee(u.top, 0),
|
|
4542
|
-
|
|
4541
|
+
const L = Ee(u.left, 0), Z = Ee(u.right, 0), U = Ee(u.top, 0), q = Ee(u.bottom, 0);
|
|
4542
|
+
c ? S = f - 2 * (L !== 0 || Z !== 0 ? L + Z : Ee(u.left, u.right)) : w = C - 2 * (U !== 0 || q !== 0 ? U + q : Ee(u.top, u.bottom));
|
|
4543
4543
|
}
|
|
4544
4544
|
await i({
|
|
4545
4545
|
...e,
|
|
@@ -4688,20 +4688,20 @@ function $t(t, e, a, n) {
|
|
|
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 u = (s.left + r.x) / i.x,
|
|
4691
|
+
let u = (s.left + r.x) / i.x, d = (s.top + r.y) / i.y, l = s.width / i.x, c = 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
|
-
u *= _.x,
|
|
4697
|
+
u *= _.x, d *= _.y, l *= _.x, c *= _.y, u += A, d += w, $ = ke($).frameElement;
|
|
4698
4698
|
}
|
|
4699
4699
|
}
|
|
4700
4700
|
return Pa({
|
|
4701
4701
|
width: l,
|
|
4702
|
-
height:
|
|
4702
|
+
height: c,
|
|
4703
4703
|
x: u,
|
|
4704
|
-
y:
|
|
4704
|
+
y: d
|
|
4705
4705
|
});
|
|
4706
4706
|
}
|
|
4707
4707
|
function M5(t) {
|
|
@@ -4719,8 +4719,8 @@ function M5(t) {
|
|
|
4719
4719
|
}, r = dt(1);
|
|
4720
4720
|
const u = dt(0);
|
|
4721
4721
|
if ((s || !s && n !== "fixed") && ((ct(a) !== "body" || ma(o)) && (i = Ya(a)), Ze(a))) {
|
|
4722
|
-
const
|
|
4723
|
-
r = Dt(a), u.x =
|
|
4722
|
+
const d = $t(a);
|
|
4723
|
+
r = Dt(a), u.x = d.x + a.clientLeft, u.y = d.y + a.clientTop;
|
|
4724
4724
|
}
|
|
4725
4725
|
return {
|
|
4726
4726
|
width: e.width * r.x,
|
|
@@ -4751,8 +4751,8 @@ function S5(t, e) {
|
|
|
4751
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
|
|
4755
|
-
(!
|
|
4754
|
+
const d = On();
|
|
4755
|
+
(!d || d && e === "fixed") && (r = s.offsetLeft, u = s.offsetTop);
|
|
4756
4756
|
}
|
|
4757
4757
|
return {
|
|
4758
4758
|
width: o,
|
|
@@ -4762,12 +4762,12 @@ function S5(t, e) {
|
|
|
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, u = s * o.x,
|
|
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, d = n * o.y;
|
|
4766
4766
|
return {
|
|
4767
4767
|
width: i,
|
|
4768
4768
|
height: r,
|
|
4769
4769
|
x: u,
|
|
4770
|
-
y:
|
|
4770
|
+
y: d
|
|
4771
4771
|
};
|
|
4772
4772
|
}
|
|
4773
4773
|
function a1(t, e, a) {
|
|
@@ -4812,9 +4812,9 @@ 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], u = i.reduce((
|
|
4816
|
-
const
|
|
4817
|
-
return
|
|
4815
|
+
const i = [...a === "clippingAncestors" ? E5(e, this._c) : [].concat(a), n], r = i[0], u = i.reduce((d, l) => {
|
|
4816
|
+
const c = a1(e, l, s);
|
|
4817
|
+
return d.top = Ee(c.top, d.top), d.right = oa(c.right, d.right), d.bottom = oa(c.bottom, d.bottom), d.left = Ee(c.left, d.left), d;
|
|
4818
4818
|
}, a1(e, r, s));
|
|
4819
4819
|
return {
|
|
4820
4820
|
width: u.right - u.left,
|
|
@@ -4835,8 +4835,8 @@ function V5(t, e, a) {
|
|
|
4835
4835
|
const u = dt(0);
|
|
4836
4836
|
if (n || !n && !o)
|
|
4837
4837
|
if ((ct(e) !== "body" || ma(s)) && (r = Ya(e)), n) {
|
|
4838
|
-
const
|
|
4839
|
-
u.x =
|
|
4838
|
+
const d = $t(e, !0, o, e);
|
|
4839
|
+
u.x = d.x + e.clientLeft, u.y = d.y + e.clientTop;
|
|
4840
4840
|
} else
|
|
4841
4841
|
s && (u.x = U1(s));
|
|
4842
4842
|
return {
|
|
@@ -4898,14 +4898,14 @@ function B5(t, e) {
|
|
|
4898
4898
|
function i(r, u) {
|
|
4899
4899
|
r === void 0 && (r = !1), u === void 0 && (u = 1), o();
|
|
4900
4900
|
const {
|
|
4901
|
-
left:
|
|
4901
|
+
left: d,
|
|
4902
4902
|
top: l,
|
|
4903
|
-
width:
|
|
4903
|
+
width: c,
|
|
4904
4904
|
height: f
|
|
4905
4905
|
} = t.getBoundingClientRect();
|
|
4906
|
-
if (r || e(), !
|
|
4906
|
+
if (r || e(), !c || !f)
|
|
4907
4907
|
return;
|
|
4908
|
-
const C = Aa(l), $ = Aa(s.clientWidth - (
|
|
4908
|
+
const C = Aa(l), $ = Aa(s.clientWidth - (d + c)), _ = Aa(s.clientHeight - (l + f)), y = Aa(d), A = {
|
|
4909
4909
|
rootMargin: -C + "px " + -$ + "px " + -_ + "px " + -y + "px",
|
|
4910
4910
|
threshold: Ee(0, oa(1, u)) || 1
|
|
4911
4911
|
};
|
|
@@ -4942,20 +4942,20 @@ function R5(t, e, a, n) {
|
|
|
4942
4942
|
elementResize: i = typeof ResizeObserver == "function",
|
|
4943
4943
|
layoutShift: r = typeof IntersectionObserver == "function",
|
|
4944
4944
|
animationFrame: u = !1
|
|
4945
|
-
} = n,
|
|
4945
|
+
} = n, d = En(t), l = s || o ? [...d ? ra(d) : [], ...ra(e)] : [];
|
|
4946
4946
|
l.forEach((m) => {
|
|
4947
4947
|
s && m.addEventListener("scroll", a, {
|
|
4948
4948
|
passive: !0
|
|
4949
4949
|
}), o && m.addEventListener("resize", a);
|
|
4950
4950
|
});
|
|
4951
|
-
const
|
|
4951
|
+
const c = d && r ? B5(d, a) : null;
|
|
4952
4952
|
let f = -1, C = null;
|
|
4953
4953
|
i && (C = new ResizeObserver((m) => {
|
|
4954
4954
|
let [A] = m;
|
|
4955
|
-
A && A.target ===
|
|
4955
|
+
A && A.target === d && C && (C.unobserve(e), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
4956
4956
|
C && C.observe(e);
|
|
4957
4957
|
})), a();
|
|
4958
|
-
}),
|
|
4958
|
+
}), d && !u && C.observe(d), C.observe(e));
|
|
4959
4959
|
let $, _ = u ? $t(t) : null;
|
|
4960
4960
|
u && y();
|
|
4961
4961
|
function y() {
|
|
@@ -4965,7 +4965,7 @@ function R5(t, e, a, n) {
|
|
|
4965
4965
|
return a(), () => {
|
|
4966
4966
|
l.forEach((m) => {
|
|
4967
4967
|
s && m.removeEventListener("scroll", a), o && m.removeEventListener("resize", a);
|
|
4968
|
-
}),
|
|
4968
|
+
}), c && c(), C && C.disconnect(), C = null, u && cancelAnimationFrame($);
|
|
4969
4969
|
};
|
|
4970
4970
|
}
|
|
4971
4971
|
const N5 = (t, e, a) => {
|
|
@@ -4983,19 +4983,19 @@ 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
|
|
4987
|
-
return
|
|
4986
|
+
const c = X(t.appendTo);
|
|
4987
|
+
return c ? typeof c == "string" ? document.getElementById(c) ?? document.body : c : document.getElementById("floatingElements") ?? document.body;
|
|
4988
4988
|
}
|
|
4989
4989
|
const i = o(), r = ae(() => {
|
|
4990
4990
|
});
|
|
4991
|
-
function u(
|
|
4992
|
-
|
|
4991
|
+
function u(c) {
|
|
4992
|
+
c.relatedTarget && n.value && n.value.contains(c.relatedTarget) || t.multiselect.value.deactivate();
|
|
4993
4993
|
}
|
|
4994
|
-
function
|
|
4995
|
-
const
|
|
4996
|
-
if (!f || !
|
|
4994
|
+
function d() {
|
|
4995
|
+
const c = t.multiselect.value.$el, f = c.querySelector(".multiselect-dropdown");
|
|
4996
|
+
if (!f || !c || e.value === !0)
|
|
4997
4997
|
return;
|
|
4998
|
-
n.value = f, a.value =
|
|
4998
|
+
n.value = f, a.value = c, getComputedStyle(f).getPropertyValue("display") === "none" && (f.style.display = "flex"), s.value = f.offsetHeight, f.style.removeProperty("display"), Object.assign(f.style, {
|
|
4999
4999
|
position: "absolute",
|
|
5000
5000
|
width: "max-content",
|
|
5001
5001
|
top: 0,
|
|
@@ -5020,26 +5020,26 @@ const N5 = (t, e, a) => {
|
|
|
5020
5020
|
fallbackPlacements: ["top-start", "bottom-start"]
|
|
5021
5021
|
}),
|
|
5022
5022
|
y5({
|
|
5023
|
-
apply({ availableWidth:
|
|
5023
|
+
apply({ availableWidth: c, availableHeight: f, elements: C, rects: $ }) {
|
|
5024
5024
|
Object.assign(C.floating.style, {
|
|
5025
5025
|
minHeight: `${s.value}px`,
|
|
5026
5026
|
width: `${$.reference.width}px`,
|
|
5027
|
-
maxWidth: `${
|
|
5027
|
+
maxWidth: `${c}px`,
|
|
5028
5028
|
maxHeight: `${f}px`
|
|
5029
5029
|
// These numbers are pleasant defaults/control for screen size.
|
|
5030
5030
|
});
|
|
5031
5031
|
}
|
|
5032
5032
|
})
|
|
5033
5033
|
]
|
|
5034
|
-
}).then(({ x:
|
|
5034
|
+
}).then(({ x: c, y: f }) => {
|
|
5035
5035
|
Object.assign(n.value.style, {
|
|
5036
|
-
left: `${
|
|
5036
|
+
left: `${c}px`,
|
|
5037
5037
|
top: `${f}px`
|
|
5038
5038
|
});
|
|
5039
5039
|
});
|
|
5040
5040
|
}
|
|
5041
|
-
|
|
5042
|
-
|
|
5041
|
+
Wt(() => {
|
|
5042
|
+
d();
|
|
5043
5043
|
}), p1(() => {
|
|
5044
5044
|
r.value();
|
|
5045
5045
|
}), m1(() => {
|
|
@@ -5050,37 +5050,37 @@ 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, u = (
|
|
5054
|
-
r.value = l(
|
|
5055
|
-
const C = c
|
|
5053
|
+
const { object: n, valueProp: s, mode: o } = Ae(t), i = Mt().proxy, r = a.iv, u = (c, f = !0) => {
|
|
5054
|
+
r.value = l(c);
|
|
5055
|
+
const C = d(c);
|
|
5056
5056
|
e.emit("change", C, i), f && (e.emit("input", C), e.emit("update:modelValue", C));
|
|
5057
|
-
},
|
|
5057
|
+
}, d = (c) => n.value || je(c) ? c : Array.isArray(c) ? c.map((f) => f[s.value]) : c[s.value], l = (c) => je(c) ? o.value === "single" ? {} : [] : c;
|
|
5058
5058
|
return {
|
|
5059
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), u = M(() => s.value === "single" ? i.value[o.value] : i.value.map((l) => l[o.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])), d = 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
|
-
textValue:
|
|
5069
|
+
textValue: d,
|
|
5070
5070
|
plainValue: u
|
|
5071
5071
|
};
|
|
5072
5072
|
}
|
|
5073
5073
|
function F5(t, e, a) {
|
|
5074
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
|
+
}, d = (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();
|
|
5082
5082
|
}
|
|
5083
|
-
},
|
|
5083
|
+
}, c = (f) => {
|
|
5084
5084
|
if (n && n.value) {
|
|
5085
5085
|
let $ = (f.clipboardData || /* istanbul ignore next */
|
|
5086
5086
|
window.clipboardData).getData("Text"), _ = n.value;
|
|
@@ -5093,12 +5093,12 @@ function F5(t, e, a) {
|
|
|
5093
5093
|
}), {
|
|
5094
5094
|
search: r,
|
|
5095
5095
|
clearSearch: u,
|
|
5096
|
-
handleSearchInput:
|
|
5096
|
+
handleSearchInput: d,
|
|
5097
5097
|
handleKeypress: l,
|
|
5098
|
-
handlePaste:
|
|
5098
|
+
handlePaste: c
|
|
5099
5099
|
};
|
|
5100
5100
|
}
|
|
5101
|
-
function
|
|
5101
|
+
function W5(t, e, a) {
|
|
5102
5102
|
const { groupSelect: n, mode: s, groups: o, disabledProp: i } = Ae(t), r = ae(null), u = (l) => {
|
|
5103
5103
|
l === void 0 || l !== null && l[i.value] || o.value && l && l.group && (s.value === "single" || !n.value) || (r.value = l);
|
|
5104
5104
|
};
|
|
@@ -5113,7 +5113,7 @@ function q5(t, e, a) {
|
|
|
5113
5113
|
function dn(t, e = !0) {
|
|
5114
5114
|
return e ? String(t).toLowerCase().trim() : String(t).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g), "ae").replace(new RegExp(/œ/g), "oe").replace(new RegExp(/ø/g), "o").replace(/\p{Diacritic}/gu, "");
|
|
5115
5115
|
}
|
|
5116
|
-
function
|
|
5116
|
+
function q5(t) {
|
|
5117
5117
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
5118
5118
|
}
|
|
5119
5119
|
function z5(t, e) {
|
|
@@ -5130,9 +5130,9 @@ function x5(t, e, a) {
|
|
|
5130
5130
|
limit: i,
|
|
5131
5131
|
hideSelected: r,
|
|
5132
5132
|
createTag: u,
|
|
5133
|
-
createOption:
|
|
5133
|
+
createOption: d,
|
|
5134
5134
|
label: l,
|
|
5135
|
-
appendNewTag:
|
|
5135
|
+
appendNewTag: c,
|
|
5136
5136
|
appendNewOption: f,
|
|
5137
5137
|
multipleLabel: C,
|
|
5138
5138
|
object: $,
|
|
@@ -5146,7 +5146,7 @@ function x5(t, e, a) {
|
|
|
5146
5146
|
valueProp: L,
|
|
5147
5147
|
allowAbsent: Z,
|
|
5148
5148
|
groupLabel: U,
|
|
5149
|
-
canDeselect:
|
|
5149
|
+
canDeselect: q,
|
|
5150
5150
|
max: O,
|
|
5151
5151
|
strict: Y,
|
|
5152
5152
|
closeOnSelect: B,
|
|
@@ -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),
|
|
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), qe = ae(Q.value && i.value === -1 ? 10 : i.value), Yt = M(() => u.value || d.value || !1), ga = M(() => c.value !== void 0 ? c.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 = [];
|
|
@@ -5180,7 +5180,7 @@ function x5(t, e, a) {
|
|
|
5180
5180
|
return N.value && (b = b.reverse()), Tt.value.length && (b = Tt.value.concat(b)), sn(b);
|
|
5181
5181
|
}), st = M(() => {
|
|
5182
5182
|
let b = Gt.value;
|
|
5183
|
-
return
|
|
5183
|
+
return qe.value > 0 && (b = b.slice(0, qe.value)), b;
|
|
5184
5184
|
}), Ct = M(() => {
|
|
5185
5185
|
if (!E.value)
|
|
5186
5186
|
return [];
|
|
@@ -5290,7 +5290,7 @@ function x5(t, e, a) {
|
|
|
5290
5290
|
switch (b.__CREATE__ && (b = { ...b }, delete b.__CREATE__), s.value) {
|
|
5291
5291
|
case "single":
|
|
5292
5292
|
if (b && ze(b)) {
|
|
5293
|
-
|
|
5293
|
+
q.value && Ot(b), F.value && (tt(), at());
|
|
5294
5294
|
return;
|
|
5295
5295
|
}
|
|
5296
5296
|
b && nn(b), D.value && ve(), B.value && (tt(), at()), b && St(b);
|
|
@@ -5343,15 +5343,15 @@ 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,
|
|
5346
|
+
pe || (pe = (_t, qn, bv) => gt.value.some((ms) => {
|
|
5347
5347
|
let zn = dn(Ca(_t[ms]), Y.value);
|
|
5348
|
-
return le.value ? zn.startsWith(dn(
|
|
5348
|
+
return le.value ? zn.startsWith(dn(qn, Y.value)) : zn.indexOf(dn(qn, 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;
|
|
5352
5352
|
}, on = (b) => {
|
|
5353
5353
|
let H = b;
|
|
5354
|
-
return
|
|
5354
|
+
return q5(H) && (H = Object.keys(H).map((oe) => {
|
|
5355
5355
|
let pe = H[oe];
|
|
5356
5356
|
return { [L.value]: oe, [gt.value[0]]: pe, [l.value]: pe };
|
|
5357
5357
|
})), H = H.map((oe) => typeof oe == "object" ? oe : { [L.value]: oe, [gt.value[0]]: oe, [l.value]: oe }), H;
|
|
@@ -5391,7 +5391,7 @@ function x5(t, e, a) {
|
|
|
5391
5391
|
[l.value]: H,
|
|
5392
5392
|
[L.value]: H,
|
|
5393
5393
|
[gt.value[0]]: H
|
|
5394
|
-
}),
|
|
5394
|
+
}), Wn = () => {
|
|
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 && Wn(), ce(y, (b, H) => {
|
|
5411
|
+
Be.value && Be.value(), b >= 0 && Wn();
|
|
5412
5412
|
}), ce(P, (b) => {
|
|
5413
5413
|
if (je(b)) {
|
|
5414
5414
|
we(wa(b), !1);
|
|
@@ -5426,7 +5426,7 @@ function x5(t, e, a) {
|
|
|
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
5428
|
}), ce(l, rn), ce(i, (b, H) => {
|
|
5429
|
-
|
|
5429
|
+
qe.value = Q.value && b === -1 ? 10 : b;
|
|
5430
5430
|
}), {
|
|
5431
5431
|
pfo: Gt,
|
|
5432
5432
|
fo: st,
|
|
@@ -5443,7 +5443,7 @@ function x5(t, e, a) {
|
|
|
5443
5443
|
noResults: ts,
|
|
5444
5444
|
resolving: Te,
|
|
5445
5445
|
busy: ns,
|
|
5446
|
-
offset:
|
|
5446
|
+
offset: qe,
|
|
5447
5447
|
select: St,
|
|
5448
5448
|
deselect: Ot,
|
|
5449
5449
|
remove: Un,
|
|
@@ -5469,18 +5469,18 @@ function Y5(t, e, a) {
|
|
|
5469
5469
|
groupLabel: i,
|
|
5470
5470
|
groups: r,
|
|
5471
5471
|
mode: u,
|
|
5472
|
-
groupSelect:
|
|
5472
|
+
groupSelect: d,
|
|
5473
5473
|
disabledProp: l,
|
|
5474
|
-
groupOptions:
|
|
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" &&
|
|
5476
|
-
const P =
|
|
5474
|
+
groupOptions: c
|
|
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" && d.value), q = M(() => m.value && m.value.group), O = M(() => re(m.value)), Y = M(() => {
|
|
5476
|
+
const P = q.value ? m.value : (
|
|
5477
5477
|
/* istanbul ignore next */
|
|
5478
5478
|
re(m.value)
|
|
5479
5479
|
), G = Z.value.map((we) => we[i.value]).indexOf(P[i.value]);
|
|
5480
5480
|
let ve = Z.value[G - 1];
|
|
5481
5481
|
return ve === void 0 && (ve = F.value), ve;
|
|
5482
5482
|
}), B = M(() => {
|
|
5483
|
-
let P = Z.value.map((G) => G.label).indexOf(
|
|
5483
|
+
let P = Z.value.map((G) => G.label).indexOf(q.value ? m.value[i.value] : re(m.value)[i.value]) + 1;
|
|
5484
5484
|
return Z.value.length <= P && (P = 0), Z.value[P];
|
|
5485
5485
|
}), F = M(() => [...Z.value].slice(-1)[0]), E = M(() => m.value.__VISIBLE__.filter((P) => !P[l.value])[0]), N = M(() => {
|
|
5486
5486
|
const P = O.value.__VISIBLE__.filter((G) => !G[l.value]);
|
|
@@ -5491,13 +5491,13 @@ function Y5(t, e, a) {
|
|
|
5491
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[l.value] === !0 || (
|
|
5494
|
+
!m.value || m.value[l.value] === !0 || (q.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 =
|
|
5500
|
-
P === void 0 && (P = B.value, P.__CREATE__ && (P = P[
|
|
5499
|
+
let P = q.value ? E.value : Q.value;
|
|
5500
|
+
P === void 0 && (P = B.value, P.__CREATE__ && (P = P[c.value][0])), A(P || /* istanbul ignore next */
|
|
5501
5501
|
null);
|
|
5502
5502
|
} else {
|
|
5503
5503
|
let P = L.value.map((G) => G[n.value]).indexOf(m.value[n.value]) + 1;
|
|
@@ -5511,8 +5511,8 @@ function Y5(t, e, a) {
|
|
|
5511
5511
|
let P = L.value[L.value.length - 1];
|
|
5512
5512
|
r.value && U.value && (P = h.value, P === void 0 && (P = F.value)), A(P || null);
|
|
5513
5513
|
} else if (r.value && U.value) {
|
|
5514
|
-
let P =
|
|
5515
|
-
P === void 0 && (P =
|
|
5514
|
+
let P = q.value ? k.value : N.value;
|
|
5515
|
+
P === void 0 && (P = q.value ? Y.value : O.value, P.__CREATE__ && (P = k.value, P === void 0 && (P = Y.value))), A(P || /* istanbul ignore next */
|
|
5516
5516
|
null);
|
|
5517
5517
|
} else {
|
|
5518
5518
|
let P = L.value.map((G) => G[n.value]).indexOf(m.value[n.value]) - 1;
|
|
@@ -5526,7 +5526,7 @@ function Y5(t, e, a) {
|
|
|
5526
5526
|
if (!P)
|
|
5527
5527
|
return;
|
|
5528
5528
|
let G = P.parentElement.parentElement;
|
|
5529
|
-
r.value && (G =
|
|
5529
|
+
r.value && (G = q.value ? P.parentElement.parentElement.parentElement : P.parentElement.parentElement.parentElement.parentElement), P.offsetTop + P.offsetHeight > G.clientHeight + G.scrollTop && (G.scrollTop = P.offsetTop + P.offsetHeight - G.clientHeight), P.offsetTop < G.scrollTop && (G.scrollTop = P.offsetTop);
|
|
5530
5530
|
};
|
|
5531
5531
|
return ce(y, (P) => {
|
|
5532
5532
|
o.value && (P.length && s.value ? ee() : w());
|
|
@@ -5580,22 +5580,22 @@ function mn() {
|
|
|
5580
5580
|
return e.brand + "/" + e.version;
|
|
5581
5581
|
}).join(" ") : navigator.userAgent;
|
|
5582
5582
|
}
|
|
5583
|
-
function
|
|
5583
|
+
function W1() {
|
|
5584
5584
|
return !/^((?!chrome|android).)*safari/i.test(mn());
|
|
5585
5585
|
}
|
|
5586
5586
|
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, u = !
|
|
5590
|
+
var i = kt(t) ? Me(t) : window, r = i.visualViewport, u = !W1() && a, d = (n.left + (u && r ? r.offsetLeft : 0)) / s, l = (n.top + (u && r ? r.offsetTop : 0)) / o, c = n.width / s, f = n.height / o;
|
|
5591
5591
|
return {
|
|
5592
|
-
width:
|
|
5592
|
+
width: c,
|
|
5593
5593
|
height: f,
|
|
5594
5594
|
top: l,
|
|
5595
|
-
right:
|
|
5595
|
+
right: d + c,
|
|
5596
5596
|
bottom: l + f,
|
|
5597
|
-
left:
|
|
5598
|
-
x:
|
|
5597
|
+
left: d,
|
|
5598
|
+
x: d,
|
|
5599
5599
|
y: l
|
|
5600
5600
|
};
|
|
5601
5601
|
}
|
|
@@ -5655,7 +5655,7 @@ function Q5(t, e, a) {
|
|
|
5655
5655
|
height: i.height
|
|
5656
5656
|
};
|
|
5657
5657
|
}
|
|
5658
|
-
function
|
|
5658
|
+
function q1(t) {
|
|
5659
5659
|
var e = Ut(t), a = t.offsetWidth, n = t.offsetHeight;
|
|
5660
5660
|
return Math.abs(e.width - a) <= 1 && (a = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
|
|
5661
5661
|
x: t.offsetLeft,
|
|
@@ -5716,7 +5716,7 @@ function Ka(t) {
|
|
|
5716
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",
|
|
5719
|
+
var Re = "top", We = "bottom", ft = "right", Ye = "left", Pn = "auto", Xa = [Re, We, 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
5721
|
}, []), n7 = /* @__PURE__ */ [].concat(Xa, [Pn]).reduce(function(t, e) {
|
|
5722
5722
|
return t.concat([e, e + "-" + Zt, e + "-" + la]);
|
|
@@ -5774,8 +5774,8 @@ function g7(t, e) {
|
|
|
5774
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
|
-
var
|
|
5778
|
-
(
|
|
5777
|
+
var d = W1();
|
|
5778
|
+
(d || !d && e === "fixed") && (r = s.offsetLeft, u = s.offsetTop);
|
|
5779
5779
|
}
|
|
5780
5780
|
return {
|
|
5781
5781
|
width: o,
|
|
@@ -5829,8 +5829,8 @@ 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(u,
|
|
5833
|
-
var l = o1(t,
|
|
5832
|
+
var s = e === "clippingParents" ? w7(t) : [].concat(e), o = [].concat(s, [a]), i = o[0], r = o.reduce(function(u, d) {
|
|
5833
|
+
var l = o1(t, d, n);
|
|
5834
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
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;
|
|
@@ -5853,7 +5853,7 @@ function G1(t) {
|
|
|
5853
5853
|
y: e.y - a.height
|
|
5854
5854
|
};
|
|
5855
5855
|
break;
|
|
5856
|
-
case
|
|
5856
|
+
case We:
|
|
5857
5857
|
u = {
|
|
5858
5858
|
x: i,
|
|
5859
5859
|
y: e.y + e.height
|
|
@@ -5877,15 +5877,15 @@ function G1(t) {
|
|
|
5877
5877
|
y: e.y
|
|
5878
5878
|
};
|
|
5879
5879
|
}
|
|
5880
|
-
var
|
|
5881
|
-
if (
|
|
5882
|
-
var l =
|
|
5880
|
+
var d = s ? Y1(s) : null;
|
|
5881
|
+
if (d != null) {
|
|
5882
|
+
var l = d === "y" ? "height" : "width";
|
|
5883
5883
|
switch (o) {
|
|
5884
5884
|
case Zt:
|
|
5885
|
-
u[
|
|
5885
|
+
u[d] = u[d] - (e[l] / 2 - a[l] / 2);
|
|
5886
5886
|
break;
|
|
5887
5887
|
case la:
|
|
5888
|
-
u[
|
|
5888
|
+
u[d] = u[d] + (e[l] / 2 - a[l] / 2);
|
|
5889
5889
|
break;
|
|
5890
5890
|
}
|
|
5891
5891
|
}
|
|
@@ -5909,21 +5909,21 @@ function M7(t, e) {
|
|
|
5909
5909
|
}
|
|
5910
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, u = r === void 0 ? t7 : r,
|
|
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, d = a.rootBoundary, l = d === void 0 ? x1 : d, c = a.elementContext, f = c === void 0 ? ta : c, 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",
|
|
5916
5916
|
placement: s
|
|
5917
|
-
}), U = hn(Object.assign({}, w, Z)),
|
|
5918
|
-
top: D.top -
|
|
5919
|
-
bottom:
|
|
5920
|
-
left: D.left -
|
|
5921
|
-
right:
|
|
5917
|
+
}), U = hn(Object.assign({}, w, Z)), q = f === ta ? U : L, O = {
|
|
5918
|
+
top: D.top - q.top + m.top,
|
|
5919
|
+
bottom: q.bottom - D.bottom + m.bottom,
|
|
5920
|
+
left: D.left - q.left + m.left,
|
|
5921
|
+
right: q.right - D.right + m.right
|
|
5922
5922
|
}, Y = t.modifiersData.offset;
|
|
5923
5923
|
if (f === ta && Y) {
|
|
5924
5924
|
var B = Y[s];
|
|
5925
5925
|
Object.keys(O).forEach(function(F) {
|
|
5926
|
-
var E = [ft,
|
|
5926
|
+
var E = [ft, We].indexOf(F) >= 0 ? 1 : -1, N = [Re, We].indexOf(F) >= 0 ? "y" : "x";
|
|
5927
5927
|
O[F] += B[N] * E;
|
|
5928
5928
|
});
|
|
5929
5929
|
}
|
|
@@ -5944,8 +5944,8 @@ function l1() {
|
|
|
5944
5944
|
function A7(t) {
|
|
5945
5945
|
t === void 0 && (t = {});
|
|
5946
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,
|
|
5948
|
-
|
|
5947
|
+
return function(r, u, d) {
|
|
5948
|
+
d === void 0 && (d = o);
|
|
5949
5949
|
var l = {
|
|
5950
5950
|
placement: "bottom",
|
|
5951
5951
|
orderedModifiers: [],
|
|
@@ -5957,7 +5957,7 @@ function A7(t) {
|
|
|
5957
5957
|
},
|
|
5958
5958
|
attributes: {},
|
|
5959
5959
|
styles: {}
|
|
5960
|
-
},
|
|
5960
|
+
}, c = [], f = !1, C = {
|
|
5961
5961
|
state: l,
|
|
5962
5962
|
setOptions: function(m) {
|
|
5963
5963
|
var A = typeof m == "function" ? m(l.options) : m;
|
|
@@ -5981,7 +5981,7 @@ function A7(t) {
|
|
|
5981
5981
|
if (l1(A, w)) {
|
|
5982
5982
|
l.rects = {
|
|
5983
5983
|
reference: Q5(A, Ka(w), l.options.strategy === "fixed"),
|
|
5984
|
-
popper:
|
|
5984
|
+
popper: q1(w)
|
|
5985
5985
|
}, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(O) {
|
|
5986
5986
|
return l.modifiersData[O.name] = Object.assign({}, O.data);
|
|
5987
5987
|
});
|
|
@@ -5990,11 +5990,11 @@ function A7(t) {
|
|
|
5990
5990
|
l.reset = !1, S = -1;
|
|
5991
5991
|
continue;
|
|
5992
5992
|
}
|
|
5993
|
-
var D = l.orderedModifiers[S], L = D.fn, Z = D.options, U = Z === void 0 ? {} : Z,
|
|
5993
|
+
var D = l.orderedModifiers[S], L = D.fn, Z = D.options, U = Z === void 0 ? {} : Z, q = D.name;
|
|
5994
5994
|
typeof L == "function" && (l = L({
|
|
5995
5995
|
state: l,
|
|
5996
5996
|
options: U,
|
|
5997
|
-
name:
|
|
5997
|
+
name: q,
|
|
5998
5998
|
instance: C
|
|
5999
5999
|
}) || l);
|
|
6000
6000
|
}
|
|
@@ -6014,8 +6014,8 @@ function A7(t) {
|
|
|
6014
6014
|
};
|
|
6015
6015
|
if (!l1(r, u))
|
|
6016
6016
|
return C;
|
|
6017
|
-
C.setOptions(
|
|
6018
|
-
!f &&
|
|
6017
|
+
C.setOptions(d).then(function(y) {
|
|
6018
|
+
!f && d.onFirstUpdate && d.onFirstUpdate(y);
|
|
6019
6019
|
});
|
|
6020
6020
|
function $() {
|
|
6021
6021
|
l.orderedModifiers.forEach(function(y) {
|
|
@@ -6028,14 +6028,14 @@ function A7(t) {
|
|
|
6028
6028
|
options: w
|
|
6029
6029
|
}), L = function() {
|
|
6030
6030
|
};
|
|
6031
|
-
|
|
6031
|
+
c.push(D || L);
|
|
6032
6032
|
}
|
|
6033
6033
|
});
|
|
6034
6034
|
}
|
|
6035
6035
|
function _() {
|
|
6036
|
-
|
|
6036
|
+
c.forEach(function(y) {
|
|
6037
6037
|
return y();
|
|
6038
|
-
}),
|
|
6038
|
+
}), c = [];
|
|
6039
6039
|
}
|
|
6040
6040
|
return C;
|
|
6041
6041
|
};
|
|
@@ -6044,11 +6044,11 @@ 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, u = Me(e.elements.popper),
|
|
6048
|
-
return o &&
|
|
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), d = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
6048
|
+
return o && d.forEach(function(l) {
|
|
6049
6049
|
l.addEventListener("scroll", a.update, Ta);
|
|
6050
6050
|
}), r && u.addEventListener("resize", a.update, Ta), function() {
|
|
6051
|
-
o &&
|
|
6051
|
+
o && d.forEach(function(l) {
|
|
6052
6052
|
l.removeEventListener("scroll", a.update, Ta);
|
|
6053
6053
|
}), r && u.removeEventListener("resize", a.update, Ta);
|
|
6054
6054
|
};
|
|
@@ -6091,7 +6091,7 @@ function L7(t, e) {
|
|
|
6091
6091
|
};
|
|
6092
6092
|
}
|
|
6093
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,
|
|
6094
|
+
var e, a = t.popper, n = t.popperRect, s = t.placement, o = t.variation, i = t.offsets, r = t.position, u = t.gpuAcceleration, d = t.adaptive, l = t.roundOffsets, c = 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
|
}) : {
|
|
@@ -6100,19 +6100,19 @@ function u1(t) {
|
|
|
6100
6100
|
};
|
|
6101
6101
|
C = y.x, _ = y.y;
|
|
6102
6102
|
var m = i.hasOwnProperty("x"), A = i.hasOwnProperty("y"), w = Ye, S = Re, D = window;
|
|
6103
|
-
if (
|
|
6103
|
+
if (d) {
|
|
6104
6104
|
var L = Ka(a), Z = "clientHeight", U = "clientWidth";
|
|
6105
6105
|
if (L === Me(a) && (L = ht(a), Je(L).position !== "static" && r === "absolute" && (Z = "scrollHeight", U = "scrollWidth")), L = L, s === Re || (s === Ye || s === ft) && o === la) {
|
|
6106
|
-
S =
|
|
6107
|
-
var
|
|
6106
|
+
S = We;
|
|
6107
|
+
var q = c && L === D && D.visualViewport ? D.visualViewport.height : (
|
|
6108
6108
|
// $FlowFixMe[prop-missing]
|
|
6109
6109
|
L[Z]
|
|
6110
6110
|
);
|
|
6111
|
-
_ -=
|
|
6111
|
+
_ -= q - n.height, _ *= u ? 1 : -1;
|
|
6112
6112
|
}
|
|
6113
|
-
if (s === Ye || (s === Re || s ===
|
|
6113
|
+
if (s === Ye || (s === Re || s === We) && o === la) {
|
|
6114
6114
|
w = ft;
|
|
6115
|
-
var O =
|
|
6115
|
+
var O = c && L === D && D.visualViewport ? D.visualViewport.width : (
|
|
6116
6116
|
// $FlowFixMe[prop-missing]
|
|
6117
6117
|
L[U]
|
|
6118
6118
|
);
|
|
@@ -6121,7 +6121,7 @@ function u1(t) {
|
|
|
6121
6121
|
}
|
|
6122
6122
|
var Y = Object.assign({
|
|
6123
6123
|
position: r
|
|
6124
|
-
},
|
|
6124
|
+
}, d && I7), B = l === !0 ? L7({
|
|
6125
6125
|
x: C,
|
|
6126
6126
|
y: _
|
|
6127
6127
|
}, Me(a)) : {
|
|
@@ -6135,7 +6135,7 @@ function u1(t) {
|
|
|
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, u = r === void 0 ? !0 : r,
|
|
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, d = {
|
|
6139
6139
|
placement: lt(e.placement),
|
|
6140
6140
|
variation: Ft(e.placement),
|
|
6141
6141
|
popper: e.elements.popper,
|
|
@@ -6143,12 +6143,12 @@ 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, u1(Object.assign({},
|
|
6146
|
+
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, u1(Object.assign({}, d, {
|
|
6147
6147
|
offsets: e.modifiersData.popperOffsets,
|
|
6148
6148
|
position: e.options.strategy,
|
|
6149
6149
|
adaptive: i,
|
|
6150
6150
|
roundOffsets: u
|
|
6151
|
-
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, u1(Object.assign({},
|
|
6151
|
+
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, u1(Object.assign({}, d, {
|
|
6152
6152
|
offsets: e.modifiersData.arrow,
|
|
6153
6153
|
position: "absolute",
|
|
6154
6154
|
adaptive: !1,
|
|
@@ -6189,8 +6189,8 @@ 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(u,
|
|
6193
|
-
return u[
|
|
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, d) {
|
|
6193
|
+
return u[d] = "", u;
|
|
6194
6194
|
}, {});
|
|
6195
6195
|
!Pe(s) || !Fe(s) || (Object.assign(s.style, r), Object.keys(o).forEach(function(u) {
|
|
6196
6196
|
s.removeAttribute(u);
|
|
@@ -6219,33 +6219,33 @@ 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, u = a.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, d = a.rootBoundary, l = a.altBoundary, c = a.padding, f = a.tether, C = f === void 0 ? !0 : f, $ = a.tetherOffset, _ = $ === void 0 ? 0 : $, y = Hn(e, {
|
|
6223
6223
|
boundary: u,
|
|
6224
|
-
rootBoundary:
|
|
6225
|
-
padding:
|
|
6224
|
+
rootBoundary: d,
|
|
6225
|
+
padding: c,
|
|
6226
6226
|
altBoundary: l
|
|
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,
|
|
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, q = typeof _ == "function" ? _(Object.assign({}, e.rects, {
|
|
6228
6228
|
placement: e.placement
|
|
6229
|
-
})) : _, O = typeof
|
|
6230
|
-
mainAxis:
|
|
6231
|
-
altAxis:
|
|
6229
|
+
})) : _, O = typeof q == "number" ? {
|
|
6230
|
+
mainAxis: q,
|
|
6231
|
+
altAxis: q
|
|
6232
6232
|
} : Object.assign({
|
|
6233
6233
|
mainAxis: 0,
|
|
6234
6234
|
altAxis: 0
|
|
6235
|
-
},
|
|
6235
|
+
}, q), Y = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, B = {
|
|
6236
6236
|
x: 0,
|
|
6237
6237
|
y: 0
|
|
6238
6238
|
};
|
|
6239
6239
|
if (L) {
|
|
6240
6240
|
if (o) {
|
|
6241
|
-
var F, E = S === "y" ? Re : Ye, N = S === "y" ?
|
|
6241
|
+
var F, E = S === "y" ? Re : Ye, N = S === "y" ? We : 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 ? q1(se) : {
|
|
6242
6242
|
width: 0,
|
|
6243
6243
|
height: 0
|
|
6244
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) {
|
|
6248
|
-
var nt, Ne = S === "x" ? Re : Ye, Te = S === "x" ?
|
|
6248
|
+
var nt, Ne = S === "x" ? Re : Ye, Te = S === "x" ? We : ft, Be = L[D], qe = D === "y" ? "height" : "width", Yt = Be + y[Ne], ga = Be - y[Te], Se = [Re, Ye].indexOf(m) !== -1, Gt = (nt = Y == null ? void 0 : Y[D]) != null ? nt : 0, st = Se ? Yt : Be - Z[qe] - U[qe] - Gt + O.altAxis, Ct = Se ? Be + Z[qe] + U[qe] - Gt - O.altAxis : ga, _a = C && Se ? U7(st, Be, Ct) : Sa(C ? st : Yt, Be, C ? Ct : ga);
|
|
6249
6249
|
L[D] = _a, B[D] = _a - Be;
|
|
6250
6250
|
}
|
|
6251
6251
|
e.modifiersData[n] = B;
|
|
@@ -6257,7 +6257,7 @@ var F7 = {
|
|
|
6257
6257
|
phase: "main",
|
|
6258
6258
|
fn: Z7,
|
|
6259
6259
|
requiresIfExists: ["offset"]
|
|
6260
|
-
},
|
|
6260
|
+
}, W7 = {
|
|
6261
6261
|
left: "right",
|
|
6262
6262
|
right: "left",
|
|
6263
6263
|
bottom: "top",
|
|
@@ -6265,26 +6265,26 @@ var F7 = {
|
|
|
6265
6265
|
};
|
|
6266
6266
|
function Oa(t) {
|
|
6267
6267
|
return t.replace(/left|right|bottom|top/g, function(e) {
|
|
6268
|
-
return
|
|
6268
|
+
return W7[e];
|
|
6269
6269
|
});
|
|
6270
6270
|
}
|
|
6271
|
-
var
|
|
6271
|
+
var q7 = {
|
|
6272
6272
|
start: "end",
|
|
6273
6273
|
end: "start"
|
|
6274
6274
|
};
|
|
6275
6275
|
function d1(t) {
|
|
6276
6276
|
return t.replace(/start|end/g, function(e) {
|
|
6277
|
-
return
|
|
6277
|
+
return q7[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, u = a.allowedAutoPlacements,
|
|
6282
|
+
var a = e, n = a.placement, s = a.boundary, o = a.rootBoundary, i = a.padding, r = a.flipVariations, u = a.allowedAutoPlacements, d = u === void 0 ? n7 : u, l = Ft(n), c = l ? r ? i1 : i1.filter(function($) {
|
|
6283
6283
|
return Ft($) === l;
|
|
6284
|
-
}) : Xa, f =
|
|
6285
|
-
return
|
|
6284
|
+
}) : Xa, f = c.filter(function($) {
|
|
6285
|
+
return d.indexOf($) >= 0;
|
|
6286
6286
|
});
|
|
6287
|
-
f.length === 0 && (f =
|
|
6287
|
+
f.length === 0 && (f = c);
|
|
6288
6288
|
var C = f.reduce(function($, _) {
|
|
6289
6289
|
return $[_] = Hn(t, {
|
|
6290
6290
|
placement: _,
|
|
@@ -6306,29 +6306,29 @@ function x7(t) {
|
|
|
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, u = a.fallbackPlacements,
|
|
6309
|
+
for (var s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !0 : i, u = a.fallbackPlacements, d = a.padding, l = a.boundary, c = 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
6310
|
return re.concat(lt(z) === Pn ? z7(e, {
|
|
6311
6311
|
placement: z,
|
|
6312
6312
|
boundary: l,
|
|
6313
|
-
rootBoundary:
|
|
6314
|
-
padding:
|
|
6313
|
+
rootBoundary: c,
|
|
6314
|
+
padding: d,
|
|
6315
6315
|
flipVariations: $,
|
|
6316
6316
|
allowedAutoPlacements: _
|
|
6317
6317
|
}) : z);
|
|
6318
|
-
}, []), D = e.rects.reference, L = e.rects.popper, Z = /* @__PURE__ */ new Map(), U = !0,
|
|
6319
|
-
var Y = S[O], B = lt(Y), F = Ft(Y) === Zt, E = [Re,
|
|
6318
|
+
}, []), D = e.rects.reference, L = e.rects.popper, Z = /* @__PURE__ */ new Map(), U = !0, q = S[0], O = 0; O < S.length; O++) {
|
|
6319
|
+
var Y = S[O], B = lt(Y), F = Ft(Y) === Zt, E = [Re, We].indexOf(B) >= 0, N = E ? "width" : "height", Q = Hn(e, {
|
|
6320
6320
|
placement: Y,
|
|
6321
6321
|
boundary: l,
|
|
6322
|
-
rootBoundary:
|
|
6322
|
+
rootBoundary: c,
|
|
6323
6323
|
altBoundary: f,
|
|
6324
|
-
padding:
|
|
6325
|
-
}), k = E ? F ? ft : Ye : F ?
|
|
6324
|
+
padding: d
|
|
6325
|
+
}), k = E ? F ? ft : Ye : F ? We : Re;
|
|
6326
6326
|
D[N] > L[N] && (k = Oa(k));
|
|
6327
6327
|
var h = Oa(k), I = [];
|
|
6328
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
|
+
q = Y, U = !1;
|
|
6332
6332
|
break;
|
|
6333
6333
|
}
|
|
6334
6334
|
Z.set(Y, I);
|
|
@@ -6343,13 +6343,13 @@ function Y7(t) {
|
|
|
6343
6343
|
});
|
|
6344
6344
|
});
|
|
6345
6345
|
if (P)
|
|
6346
|
-
return
|
|
6346
|
+
return q = P, "break";
|
|
6347
6347
|
}, le = ee; le > 0; le--) {
|
|
6348
6348
|
var se = ne(le);
|
|
6349
6349
|
if (se === "break")
|
|
6350
6350
|
break;
|
|
6351
6351
|
}
|
|
6352
|
-
e.placement !==
|
|
6352
|
+
e.placement !== q && (e.modifiersData[n]._skip = !0, e.placement = q, e.reset = !0);
|
|
6353
6353
|
}
|
|
6354
6354
|
}
|
|
6355
6355
|
var G7 = {
|
|
@@ -6363,17 +6363,17 @@ 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, u = a.multiselect,
|
|
6366
|
+
const { disabled: n, appendTo: s, appendToBody: o, openDirection: i } = Ae(t), r = Mt().proxy, u = a.multiselect, d = a.dropdown, l = ae(!1), c = 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
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
|
-
if (!
|
|
6373
|
+
if (!c.value)
|
|
6374
6374
|
return;
|
|
6375
|
-
let w = parseInt(window.getComputedStyle(
|
|
6376
|
-
|
|
6375
|
+
let w = parseInt(window.getComputedStyle(d.value).borderTopWidth.replace("px", "")), S = parseInt(window.getComputedStyle(d.value).borderBottomWidth.replace("px", ""));
|
|
6376
|
+
c.value.setOptions((D) => ({
|
|
6377
6377
|
...D,
|
|
6378
6378
|
modifiers: [
|
|
6379
6379
|
...D.modifiers,
|
|
@@ -6384,7 +6384,7 @@ function K7(t, e, a) {
|
|
|
6384
6384
|
}
|
|
6385
6385
|
}
|
|
6386
6386
|
]
|
|
6387
|
-
})),
|
|
6387
|
+
})), c.value.update();
|
|
6388
6388
|
}, A = (w) => {
|
|
6389
6389
|
for (; w && w !== document.body; ) {
|
|
6390
6390
|
if (getComputedStyle(w).position === "fixed")
|
|
@@ -6393,8 +6393,8 @@ function K7(t, e, a) {
|
|
|
6393
6393
|
}
|
|
6394
6394
|
return !1;
|
|
6395
6395
|
};
|
|
6396
|
-
return
|
|
6397
|
-
C.value && (
|
|
6396
|
+
return Wt(() => {
|
|
6397
|
+
C.value && (c.value = N7(u.value, d.value, {
|
|
6398
6398
|
strategy: A(u.value) ? (
|
|
6399
6399
|
/* istanbul ignore next: UI feature */
|
|
6400
6400
|
"fixed"
|
|
@@ -6426,9 +6426,9 @@ function K7(t, e, a) {
|
|
|
6426
6426
|
]
|
|
6427
6427
|
}));
|
|
6428
6428
|
}), p1(() => {
|
|
6429
|
-
!C.value || !
|
|
6429
|
+
!C.value || !c.value || (c.value.destroy(), c.value = null);
|
|
6430
6430
|
}), {
|
|
6431
|
-
popper:
|
|
6431
|
+
popper: c,
|
|
6432
6432
|
isOpen: l,
|
|
6433
6433
|
open: _,
|
|
6434
6434
|
close: y,
|
|
@@ -6437,15 +6437,15 @@ 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, u = a.close,
|
|
6441
|
-
n.value && i.value.blur(),
|
|
6440
|
+
const { searchable: n, disabled: s, clearOnBlur: o } = Ae(t), i = a.input, r = a.open, u = a.close, d = a.clearSearch, l = a.isOpen, c = a.wrapper, f = a.tags, C = ae(!1), $ = ae(!1), _ = M(() => n.value || s.value ? -1 : 0), y = () => {
|
|
6441
|
+
n.value && i.value.blur(), c.value.blur();
|
|
6442
6442
|
}, m = () => {
|
|
6443
6443
|
n.value && !s.value && i.value.focus();
|
|
6444
6444
|
}, A = (U = !0) => {
|
|
6445
6445
|
s.value || (C.value = !0, U && r());
|
|
6446
6446
|
}, w = () => {
|
|
6447
6447
|
C.value = !1, setTimeout(() => {
|
|
6448
|
-
C.value || (u(), o.value &&
|
|
6448
|
+
C.value || (u(), o.value && d());
|
|
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, l.value && (U.target.isEqualNode(
|
|
6469
|
+
$.value = !0, l.value && (U.target.isEqualNode(c.value) || U.target.isEqualNode(f.value)) ? setTimeout(() => {
|
|
6470
6470
|
w();
|
|
6471
|
-
}, 0) : !l.value && (document.activeElement.isEqualNode(
|
|
6471
|
+
}, 0) : !l.value && (document.activeElement.isEqualNode(c.value) || document.activeElement.isEqualNode(i.value)) && A(), setTimeout(() => {
|
|
6472
6472
|
$.value = !1;
|
|
6473
6473
|
}, 0);
|
|
6474
6474
|
}
|
|
@@ -6482,19 +6482,19 @@ function Q7(t, e, a) {
|
|
|
6482
6482
|
searchable: i,
|
|
6483
6483
|
showOptions: r,
|
|
6484
6484
|
valueProp: u,
|
|
6485
|
-
groups:
|
|
6485
|
+
groups: d,
|
|
6486
6486
|
addOptionOn: l,
|
|
6487
|
-
createTag:
|
|
6487
|
+
createTag: c,
|
|
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,
|
|
6491
|
-
n.value === "tags" && !r.value && E.value && i.value && !
|
|
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, q = a.tags, O = a.isOpen, Y = a.open, B = a.blur, F = a.fo, E = M(() => c.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 && !d.value && w(F.value[F.value.map((I) => I[u.value]).indexOf(A.value)]);
|
|
6492
6492
|
};
|
|
6493
6493
|
return {
|
|
6494
6494
|
handleKeydown: (I) => {
|
|
6495
6495
|
e.emit("keydown", I, $);
|
|
6496
6496
|
let ee, ne;
|
|
6497
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(I.key) !== -1 && n.value === "tags" && (ee = [...Z.value.querySelectorAll("[data-tags] > *")].filter((le) => le !==
|
|
6497
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(I.key) !== -1 && n.value === "tags" && (ee = [...Z.value.querySelectorAll("[data-tags] > *")].filter((le) => le !== q.value), ne = ee.findIndex((le) => le === document.activeElement)), I.key) {
|
|
6498
6498
|
case "Backspace":
|
|
6499
6499
|
if (n.value === "single" || i.value && [null, ""].indexOf(A.value) === -1 || _.value.length === 0)
|
|
6500
6500
|
return;
|
|
@@ -6505,7 +6505,7 @@ function Q7(t, e, a) {
|
|
|
6505
6505
|
if (I.preventDefault(), I.keyCode === 229)
|
|
6506
6506
|
return;
|
|
6507
6507
|
if (ne !== -1 && ne !== void 0) {
|
|
6508
|
-
y([..._.value].filter((se, re) => re !== ne)), ne === ee.length - 1 && (ee.length - 1 ? ee[ee.length - 2].focus() : i.value ?
|
|
6508
|
+
y([..._.value].filter((se, re) => re !== ne)), ne === ee.length - 1 && (ee.length - 1 ? ee[ee.length - 2].focus() : i.value ? q.value.querySelector("input").focus() : U.value.focus());
|
|
6509
6509
|
return;
|
|
6510
6510
|
}
|
|
6511
6511
|
if (N.value.indexOf("enter") === -1 && E.value)
|
|
@@ -6544,14 +6544,14 @@ function Q7(t, e, a) {
|
|
|
6544
6544
|
O.value || Y(), L();
|
|
6545
6545
|
break;
|
|
6546
6546
|
case "ArrowLeft":
|
|
6547
|
-
if (i.value &&
|
|
6547
|
+
if (i.value && q.value && q.value.querySelector("input").selectionStart || I.shiftKey || n.value !== "tags" || !_.value || !_.value.length)
|
|
6548
6548
|
return;
|
|
6549
6549
|
I.preventDefault(), ne === -1 ? ee[ee.length - 1].focus() : ne > 0 && ee[ne - 1].focus();
|
|
6550
6550
|
break;
|
|
6551
6551
|
case "ArrowRight":
|
|
6552
6552
|
if (ne === -1 || I.shiftKey || n.value !== "tags" || !_.value || !_.value.length)
|
|
6553
6553
|
return;
|
|
6554
|
-
I.preventDefault(), ee.length > ne + 1 ? ee[ne + 1].focus() : i.value ?
|
|
6554
|
+
I.preventDefault(), ee.length > ne + 1 ? ee[ne + 1].focus() : i.value ? q.value.querySelector("input").focus() : i.value || U.value.focus();
|
|
6555
6555
|
break;
|
|
6556
6556
|
}
|
|
6557
6557
|
},
|
|
@@ -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, u = a.isPointed,
|
|
6570
|
+
} = Ae(t), r = a.isOpen, u = a.isPointed, d = a.isSelected, l = a.isDisabled, c = 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",
|
|
@@ -6627,7 +6627,7 @@ function J7(t, e, a) {
|
|
|
6627
6627
|
classList: M(() => {
|
|
6628
6628
|
const w = y.value;
|
|
6629
6629
|
return {
|
|
6630
|
-
container: [w.container].concat(s.value ? w.containerDisabled : []).concat(m.value && _.value === "top" ? w.containerOpenTop : []).concat(m.value && _.value !== "top" ? w.containerOpen : []).concat(
|
|
6630
|
+
container: [w.container].concat(s.value ? w.containerDisabled : []).concat(m.value && _.value === "top" ? w.containerOpenTop : []).concat(m.value && _.value !== "top" ? w.containerOpen : []).concat(c.value ? w.containerActive : []),
|
|
6631
6631
|
wrapper: w.wrapper,
|
|
6632
6632
|
spacer: w.spacer,
|
|
6633
6633
|
singleLabel: w.singleLabel,
|
|
@@ -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 u(S) ? D.push(
|
|
6658
|
+
return u(S) ? D.push(d(S) ? w.groupLabelSelectedPointed : w.groupLabelPointed) : d(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 u(S) ? L.push(
|
|
6663
|
+
return u(S) ? L.push(d(S) ? w.optionSelectedPointed : w.optionPointed) : d(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, u = a.pfo,
|
|
6678
|
+
} = Ae(t), o = a.isOpen, i = a.offset, r = a.search, u = a.pfo, d = a.eo, l = ae(null), c = 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,19 +6684,19 @@ function e9(t, e, a) {
|
|
|
6684
6684
|
});
|
|
6685
6685
|
}
|
|
6686
6686
|
}, $ = () => {
|
|
6687
|
-
o.value && i.value < u.value.length ? l.value.observe(
|
|
6687
|
+
o.value && i.value < u.value.length ? l.value.observe(c.value) : !o.value && l.value && l.value.disconnect();
|
|
6688
6688
|
};
|
|
6689
6689
|
return ce(o, () => {
|
|
6690
6690
|
s.value && $();
|
|
6691
6691
|
}), ce(r, () => {
|
|
6692
6692
|
s.value && (i.value = n.value, $());
|
|
6693
|
-
}, { flush: "post" }), ce(
|
|
6693
|
+
}, { flush: "post" }), ce(d, () => {
|
|
6694
6694
|
s.value && $();
|
|
6695
|
-
}, { immediate: !1, flush: "post" }),
|
|
6695
|
+
}, { immediate: !1, flush: "post" }), Wt(() => {
|
|
6696
6696
|
window && window.IntersectionObserver && (l.value = new IntersectionObserver(C));
|
|
6697
6697
|
}), {
|
|
6698
6698
|
hasMore: f,
|
|
6699
|
-
infiniteLoader:
|
|
6699
|
+
infiniteLoader: c
|
|
6700
6700
|
};
|
|
6701
6701
|
}
|
|
6702
6702
|
function t9(t, e, a) {
|
|
@@ -6707,9 +6707,9 @@ function t9(t, e, a) {
|
|
|
6707
6707
|
label: i,
|
|
6708
6708
|
mode: r,
|
|
6709
6709
|
groupLabel: u,
|
|
6710
|
-
aria:
|
|
6710
|
+
aria: d,
|
|
6711
6711
|
searchable: l
|
|
6712
|
-
} = Ae(t),
|
|
6712
|
+
} = Ae(t), c = 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("-");
|
|
6715
6715
|
}), m = M(() => {
|
|
@@ -6717,13 +6717,13 @@ function t9(t, e, a) {
|
|
|
6717
6717
|
return s && s.value && B.push(s.value), B.push("multiselect-options"), B.join("-");
|
|
6718
6718
|
}), A = M(() => {
|
|
6719
6719
|
let B = [];
|
|
6720
|
-
if (s && s.value && B.push(s.value),
|
|
6721
|
-
return B.push(
|
|
6720
|
+
if (s && s.value && B.push(s.value), c.value)
|
|
6721
|
+
return B.push(c.value.group ? "multiselect-group" : "multiselect-option"), B.push(c.value.group ? c.value.index : c.value[o.value]), B.join("-");
|
|
6722
6722
|
}), w = M(() => n.value), S = M(() => r.value !== "single"), D = M(() => {
|
|
6723
6723
|
let B = "";
|
|
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
|
-
let B = { ...
|
|
6726
|
+
let B = { ...d.value };
|
|
6727
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 = [];
|
|
@@ -6731,14 +6731,14 @@ function t9(t, e, a) {
|
|
|
6731
6731
|
}, U = (B) => {
|
|
6732
6732
|
let F = [];
|
|
6733
6733
|
return s && s.value && F.push(s.value), F.push("multiselect-group"), F.push(B.index), F.join("-");
|
|
6734
|
-
},
|
|
6734
|
+
}, q = (B) => {
|
|
6735
6735
|
let F = [];
|
|
6736
6736
|
return F.push(B), F.join(" ");
|
|
6737
6737
|
}, O = (B) => {
|
|
6738
6738
|
let F = [];
|
|
6739
6739
|
return F.push(B), F.join(" ");
|
|
6740
6740
|
}, Y = (B) => `${B} ❎`;
|
|
6741
|
-
return
|
|
6741
|
+
return Wt(() => {
|
|
6742
6742
|
if (s && s.value && document && document.querySelector) {
|
|
6743
6743
|
let B = document.querySelector(`[for="${s.value}"]`);
|
|
6744
6744
|
_.value = B ? B.innerText : null;
|
|
@@ -6752,7 +6752,7 @@ function t9(t, e, a) {
|
|
|
6752
6752
|
ariaMultiselectable: S,
|
|
6753
6753
|
ariaActiveDescendant: A,
|
|
6754
6754
|
ariaOptionId: Z,
|
|
6755
|
-
ariaOptionLabel:
|
|
6755
|
+
ariaOptionLabel: q,
|
|
6756
6756
|
ariaGroupId: U,
|
|
6757
6757
|
ariaGroupLabel: O,
|
|
6758
6758
|
ariaTagLabel: Y
|
|
@@ -7144,7 +7144,7 @@ var ot = {
|
|
|
7144
7144
|
n9,
|
|
7145
7145
|
a9,
|
|
7146
7146
|
Z5,
|
|
7147
|
-
|
|
7147
|
+
W5,
|
|
7148
7148
|
K7,
|
|
7149
7149
|
F5,
|
|
7150
7150
|
U5,
|
|
@@ -7236,7 +7236,7 @@ function A9(t, e, a, n, s, o) {
|
|
|
7236
7236
|
i.disabled ? t.classList.tagDisabled : null
|
|
7237
7237
|
]),
|
|
7238
7238
|
tabindex: "-1",
|
|
7239
|
-
onKeyup: ut((
|
|
7239
|
+
onKeyup: ut((d) => t.handleTagRemove(i, d), ["enter"]),
|
|
7240
7240
|
key: u,
|
|
7241
7241
|
"aria-label": t.ariaTagLabel(t.localize(i[a.label]))
|
|
7242
7242
|
}, [
|
|
@@ -7252,7 +7252,7 @@ function A9(t, e, a, n, s, o) {
|
|
|
7252
7252
|
!a.disabled && !i.disabled ? (v(), g("span", {
|
|
7253
7253
|
key: 0,
|
|
7254
7254
|
class: x(t.classList.tagRemove),
|
|
7255
|
-
onClick: he((
|
|
7255
|
+
onClick: he((d) => t.handleTagRemove(i, d), ["stop"])
|
|
7256
7256
|
}, [
|
|
7257
7257
|
p(
|
|
7258
7258
|
"span",
|
|
@@ -7461,8 +7461,8 @@ function A9(t, e, a, n, s, o) {
|
|
|
7461
7461
|
key: 0,
|
|
7462
7462
|
class: x(t.classList.groupLabel(i)),
|
|
7463
7463
|
"data-pointed": t.isPointed(i),
|
|
7464
|
-
onMouseenter: (
|
|
7465
|
-
onMousedown: he((
|
|
7464
|
+
onMouseenter: (d) => t.setPointer(i, r),
|
|
7465
|
+
onMousedown: he((d) => t.handleGroupClick(i), ["prevent"])
|
|
7466
7466
|
}, [
|
|
7467
7467
|
te(t.$slots, "grouplabel", {
|
|
7468
7468
|
group: i,
|
|
@@ -7482,20 +7482,20 @@ function A9(t, e, a, n, s, o) {
|
|
|
7482
7482
|
(v(!0), g(
|
|
7483
7483
|
Ce,
|
|
7484
7484
|
null,
|
|
7485
|
-
ye(i.__VISIBLE__, (
|
|
7486
|
-
class: x(t.classList.option(
|
|
7487
|
-
"data-pointed": t.isPointed(
|
|
7488
|
-
"data-selected": t.isSelected(
|
|
7489
|
-
key:
|
|
7490
|
-
onMouseenter: (f) => t.setPointer(
|
|
7491
|
-
onMousedown: he((f) => t.handleOptionClick(
|
|
7492
|
-
id: t.ariaOptionId(
|
|
7493
|
-
"aria-selected": t.isSelected(
|
|
7494
|
-
"aria-label": t.ariaOptionLabel(t.localize(
|
|
7485
|
+
ye(i.__VISIBLE__, (d, l, c) => (v(), g("li", {
|
|
7486
|
+
class: x(t.classList.option(d, i)),
|
|
7487
|
+
"data-pointed": t.isPointed(d),
|
|
7488
|
+
"data-selected": t.isSelected(d) || void 0,
|
|
7489
|
+
key: c,
|
|
7490
|
+
onMouseenter: (f) => t.setPointer(d),
|
|
7491
|
+
onMousedown: he((f) => t.handleOptionClick(d), ["prevent"]),
|
|
7492
|
+
id: t.ariaOptionId(d),
|
|
7493
|
+
"aria-selected": t.isSelected(d),
|
|
7494
|
+
"aria-label": t.ariaOptionLabel(t.localize(d[a.label])),
|
|
7495
7495
|
role: "option"
|
|
7496
7496
|
}, [
|
|
7497
7497
|
te(t.$slots, "option", {
|
|
7498
|
-
option:
|
|
7498
|
+
option: d,
|
|
7499
7499
|
isSelected: t.isSelected,
|
|
7500
7500
|
isPointed: t.isPointed,
|
|
7501
7501
|
search: t.search
|
|
@@ -7503,7 +7503,7 @@ function A9(t, e, a, n, s, o) {
|
|
|
7503
7503
|
p(
|
|
7504
7504
|
"span",
|
|
7505
7505
|
null,
|
|
7506
|
-
K(t.localize(
|
|
7506
|
+
K(t.localize(d[a.label])),
|
|
7507
7507
|
1
|
|
7508
7508
|
/* TEXT */
|
|
7509
7509
|
)
|
|
@@ -7524,8 +7524,8 @@ function A9(t, e, a, n, s, o) {
|
|
|
7524
7524
|
"data-pointed": t.isPointed(i),
|
|
7525
7525
|
"data-selected": t.isSelected(i) || void 0,
|
|
7526
7526
|
key: u,
|
|
7527
|
-
onMouseenter: (
|
|
7528
|
-
onMousedown: he((
|
|
7527
|
+
onMouseenter: (d) => t.setPointer(i),
|
|
7528
|
+
onMousedown: he((d) => t.handleOptionClick(i), ["prevent"]),
|
|
7529
7529
|
id: t.ariaOptionId(i),
|
|
7530
7530
|
"aria-selected": t.isSelected(i),
|
|
7531
7531
|
"aria-label": t.ariaOptionLabel(t.localize(i[a.label])),
|
|
@@ -7661,7 +7661,7 @@ const $e = /* @__PURE__ */ J({
|
|
|
7661
7661
|
}, Na({ _: 2 }, [
|
|
7662
7662
|
ye(s.$slots, (i, r) => ({
|
|
7663
7663
|
name: r,
|
|
7664
|
-
fn:
|
|
7664
|
+
fn: W((u) => [
|
|
7665
7665
|
te(s.$slots, r, ua(da(u ?? {})))
|
|
7666
7666
|
])
|
|
7667
7667
|
}))
|
|
@@ -7732,59 +7732,59 @@ const S9 = { class: "ao-tasks" }, O9 = { class: "ao-tasks__list" }, E9 = ["id",
|
|
|
7732
7732
|
emits: ["add", "delete", "update"],
|
|
7733
7733
|
setup(t, { emit: e }) {
|
|
7734
7734
|
const a = t, { t: n } = At();
|
|
7735
|
-
ce(() => a.tasks, (
|
|
7736
|
-
Ge(
|
|
7735
|
+
ce(() => a.tasks, (c, f) => {
|
|
7736
|
+
Ge(c, f);
|
|
7737
7737
|
});
|
|
7738
7738
|
const s = M(
|
|
7739
7739
|
() => {
|
|
7740
|
-
var
|
|
7741
|
-
return ((
|
|
7740
|
+
var c;
|
|
7741
|
+
return ((c = a.users) == null ? void 0 : c.map((f) => ({
|
|
7742
7742
|
label: `${f.firstName} ${f.lastName}`,
|
|
7743
7743
|
value: f.id,
|
|
7744
7744
|
avatar: f.avatarUrl
|
|
7745
7745
|
}))) ?? [];
|
|
7746
7746
|
}
|
|
7747
7747
|
), o = () => {
|
|
7748
|
-
const
|
|
7749
|
-
name: n("task.defaultName", { idx:
|
|
7748
|
+
const c = a.tasks.length, f = {
|
|
7749
|
+
name: n("task.defaultName", { idx: c + 1 }),
|
|
7750
7750
|
activityId: a.activityId
|
|
7751
7751
|
};
|
|
7752
7752
|
e("add", f);
|
|
7753
|
-
}, i = (
|
|
7754
|
-
const $ =
|
|
7753
|
+
}, i = (c, f) => {
|
|
7754
|
+
const $ = c.target.value;
|
|
7755
7755
|
e("update", {
|
|
7756
7756
|
id: f,
|
|
7757
7757
|
name: $
|
|
7758
7758
|
});
|
|
7759
|
-
}, r = (
|
|
7759
|
+
}, r = (c, f) => {
|
|
7760
7760
|
a.isEditable && e("update", {
|
|
7761
|
-
id:
|
|
7761
|
+
id: c,
|
|
7762
7762
|
isDone: f
|
|
7763
7763
|
});
|
|
7764
|
-
}, u = (
|
|
7765
|
-
e("delete", { id:
|
|
7766
|
-
},
|
|
7764
|
+
}, u = (c) => {
|
|
7765
|
+
e("delete", { id: c });
|
|
7766
|
+
}, d = (c, f) => {
|
|
7767
7767
|
e("update", {
|
|
7768
7768
|
id: f,
|
|
7769
|
-
assigneeId:
|
|
7769
|
+
assigneeId: c[0] ?? null
|
|
7770
7770
|
});
|
|
7771
|
-
}, l = (
|
|
7772
|
-
const f =
|
|
7771
|
+
}, l = (c) => {
|
|
7772
|
+
const f = c.target;
|
|
7773
7773
|
f == null || f.blur();
|
|
7774
7774
|
};
|
|
7775
|
-
return (
|
|
7775
|
+
return (c, f) => (v(), g("div", S9, [
|
|
7776
7776
|
p("ul", O9, [
|
|
7777
|
-
(v(!0), g(Ce, null, ye(
|
|
7777
|
+
(v(!0), g(Ce, null, ye(c.tasks, (C) => {
|
|
7778
7778
|
var $, _;
|
|
7779
7779
|
return v(), g("li", {
|
|
7780
7780
|
key: C.id,
|
|
7781
7781
|
class: "ao-subtask"
|
|
7782
7782
|
}, [
|
|
7783
|
-
(($ =
|
|
7783
|
+
(($ = c.isCheckable) == null ? void 0 : $.call(c, C)) ?? !1 ? (v(), R(de, {
|
|
7784
7784
|
key: 0,
|
|
7785
7785
|
class: "ao-subtask__check",
|
|
7786
7786
|
"icon-name": C.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
7787
|
-
disabled: !
|
|
7787
|
+
disabled: !c.isEditable,
|
|
7788
7788
|
variant: "ghost",
|
|
7789
7789
|
color: "primary",
|
|
7790
7790
|
onClick: () => r(C.id, !C.isDone)
|
|
@@ -7792,14 +7792,14 @@ const S9 = { class: "ao-tasks" }, O9 = { class: "ao-tasks__list" }, E9 = ["id",
|
|
|
7792
7792
|
p("input", {
|
|
7793
7793
|
id: C.id,
|
|
7794
7794
|
value: C.name,
|
|
7795
|
-
readonly: !
|
|
7795
|
+
readonly: !c.isEditable,
|
|
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
7799
|
onKeyup: ut(l, ["enter"])
|
|
7800
7800
|
}, null, 42, E9),
|
|
7801
7801
|
Ra(". "),
|
|
7802
|
-
!
|
|
7802
|
+
!c.isTemplate && c.users ? (v(), R($e, {
|
|
7803
7803
|
key: 1,
|
|
7804
7804
|
value: (_ = C.assignee) != null && _.id ? [C.assignee.id] : [],
|
|
7805
7805
|
options: s.value,
|
|
@@ -7808,12 +7808,12 @@ const S9 = { class: "ao-tasks" }, O9 = { class: "ao-tasks__list" }, E9 = ["id",
|
|
|
7808
7808
|
max: 1,
|
|
7809
7809
|
class: "ao-subtask__assignees",
|
|
7810
7810
|
mode: "tags",
|
|
7811
|
-
placeholder:
|
|
7812
|
-
disabled: !
|
|
7813
|
-
caret:
|
|
7814
|
-
onChange: (y) =>
|
|
7811
|
+
placeholder: c.$t("feed.filters.assignee.placeholder"),
|
|
7812
|
+
disabled: !c.isEditable,
|
|
7813
|
+
caret: c.isEditable,
|
|
7814
|
+
onChange: (y) => d(y, C.id)
|
|
7815
7815
|
}, {
|
|
7816
|
-
tag:
|
|
7816
|
+
tag: W(({ option: y, handleTagRemove: m }) => [
|
|
7817
7817
|
V(Xe, {
|
|
7818
7818
|
"user-name": y.label,
|
|
7819
7819
|
"avatar-url": y.avatar,
|
|
@@ -7823,7 +7823,7 @@ const S9 = { class: "ao-tasks" }, O9 = { class: "ao-tasks__list" }, E9 = ["id",
|
|
|
7823
7823
|
]),
|
|
7824
7824
|
_: 2
|
|
7825
7825
|
}, 1032, ["value", "options", "placeholder", "disabled", "caret", "onChange"])) : T("", !0),
|
|
7826
|
-
|
|
7826
|
+
c.isEditable ? (v(), R(de, {
|
|
7827
7827
|
key: 2,
|
|
7828
7828
|
class: "ao-subtask__delete",
|
|
7829
7829
|
"icon-name": "CancelRounded",
|
|
@@ -7836,9 +7836,9 @@ const S9 = { class: "ao-tasks" }, O9 = { class: "ao-tasks__list" }, E9 = ["id",
|
|
|
7836
7836
|
}), 128))
|
|
7837
7837
|
]),
|
|
7838
7838
|
p("div", I9, [
|
|
7839
|
-
|
|
7839
|
+
c.isEditable ? (v(), R(de, {
|
|
7840
7840
|
key: 0,
|
|
7841
|
-
label:
|
|
7841
|
+
label: c.$t("activity.tasks.add"),
|
|
7842
7842
|
"icon-name": "Add",
|
|
7843
7843
|
variant: "ghost",
|
|
7844
7844
|
color: "primary",
|
|
@@ -7851,7 +7851,7 @@ const S9 = { class: "ao-tasks" }, O9 = { class: "ao-tasks__list" }, E9 = ["id",
|
|
|
7851
7851
|
const V9 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], D9 = { class: "ao-files__placeholder" }, P9 = {
|
|
7852
7852
|
key: 0,
|
|
7853
7853
|
class: "ao-files__list"
|
|
7854
|
-
}, H9 = ["href"], B9 = { class: "ao-file__title" }, R9 = { key: 0 }, N9 = { class: "ao-files__input" }, j9 = { class: "ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm" }, U9 = { class: "ao-button__label" }, Z9 = { class: "ao-files__dropzone" }, F9 = { class: "ao-files__dropzone-label" },
|
|
7854
|
+
}, H9 = ["href"], B9 = { class: "ao-file__title" }, R9 = { key: 0 }, N9 = { class: "ao-files__input" }, j9 = { class: "ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm" }, U9 = { class: "ao-button__label" }, Z9 = { class: "ao-files__dropzone" }, F9 = { class: "ao-files__dropzone-label" }, W9 = /* @__PURE__ */ J({
|
|
7855
7855
|
__name: "AoActivityDetailsFiles",
|
|
7856
7856
|
props: {
|
|
7857
7857
|
attachments: {},
|
|
@@ -7862,18 +7862,18 @@ const V9 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], D9 = { class:
|
|
|
7862
7862
|
const a = t, n = (l) => {
|
|
7863
7863
|
e("remove", l);
|
|
7864
7864
|
}, s = (l) => {
|
|
7865
|
-
const
|
|
7865
|
+
const c = l.target, f = Array.from(c.files ?? []);
|
|
7866
7866
|
e("add", f);
|
|
7867
7867
|
}, o = ["dragenter", "dragover", "dragleave", "drop"];
|
|
7868
|
-
|
|
7868
|
+
Wt(() => {
|
|
7869
7869
|
o.forEach((l) => {
|
|
7870
|
-
document.body.addEventListener(l, (
|
|
7870
|
+
document.body.addEventListener(l, (c) => c.preventDefault());
|
|
7871
7871
|
});
|
|
7872
7872
|
}), m1(() => {
|
|
7873
7873
|
o.forEach((l) => {
|
|
7874
7874
|
document.body.removeEventListener(
|
|
7875
7875
|
l,
|
|
7876
|
-
(
|
|
7876
|
+
(c) => c.preventDefault()
|
|
7877
7877
|
);
|
|
7878
7878
|
});
|
|
7879
7879
|
});
|
|
@@ -7887,20 +7887,20 @@ const V9 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], D9 = { class:
|
|
|
7887
7887
|
ce(i, (l) => {
|
|
7888
7888
|
e("toggleIsDropActive", l);
|
|
7889
7889
|
});
|
|
7890
|
-
function
|
|
7890
|
+
function d(l) {
|
|
7891
7891
|
var f;
|
|
7892
7892
|
u();
|
|
7893
|
-
const
|
|
7894
|
-
l.dataTransfer && e("add",
|
|
7893
|
+
const c = Array.from(((f = l.dataTransfer) == null ? void 0 : f.files) || []);
|
|
7894
|
+
l.dataTransfer && e("add", c);
|
|
7895
7895
|
}
|
|
7896
|
-
return (l,
|
|
7896
|
+
return (l, c) => (v(), g("div", {
|
|
7897
7897
|
class: x([
|
|
7898
7898
|
"ao-files__wrapper",
|
|
7899
7899
|
{
|
|
7900
7900
|
"ao-files__wrapper--drop-active": i.value
|
|
7901
7901
|
}
|
|
7902
7902
|
]),
|
|
7903
|
-
onDrop: he(
|
|
7903
|
+
onDrop: he(d, ["prevent"]),
|
|
7904
7904
|
onDragenter: he(r, ["prevent"]),
|
|
7905
7905
|
onDragover: he(r, ["prevent"]),
|
|
7906
7906
|
onDragleave: he(u, ["prevent"])
|
|
@@ -7965,7 +7965,7 @@ const V9 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], D9 = { class:
|
|
|
7965
7965
|
], 42, V9));
|
|
7966
7966
|
}
|
|
7967
7967
|
});
|
|
7968
|
-
const
|
|
7968
|
+
const q9 = { class: "ao-comment" }, z9 = { class: "ao-comment__created-at" }, x9 = { class: "ao-comment__body" }, Y9 = { class: "ao-comment__content-wrapper" }, G9 = {
|
|
7969
7969
|
key: 1,
|
|
7970
7970
|
class: "ao-comment__footer"
|
|
7971
7971
|
}, K9 = /* @__PURE__ */ J({
|
|
@@ -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: u } = C1(s),
|
|
7985
|
+
}), s = ae(null), { isEditing: o, toggleIsEditing: i, onUpdate: r, onDiscard: u } = C1(s), d = M(() => {
|
|
7986
7986
|
const _ = a.editedAt && ia(a.editedAt), y = ia(a.createdAt), m = /* @__PURE__ */ new Date(), A = _ ?? y;
|
|
7987
|
-
return A &&
|
|
7988
|
-
}), l = M(() => o.value ? "textarea" : "p"),
|
|
7987
|
+
return A && W0(A, m);
|
|
7988
|
+
}), l = M(() => o.value ? "textarea" : "p"), c = u(), f = r((_) => {
|
|
7989
7989
|
e("edit", _);
|
|
7990
7990
|
}), C = () => {
|
|
7991
7991
|
e("remove");
|
|
@@ -8000,14 +8000,14 @@ const W9 = { class: "ao-comment" }, z9 = { class: "ao-comment__created-at" }, x9
|
|
|
8000
8000
|
});
|
|
8001
8001
|
}), (_, y) => {
|
|
8002
8002
|
var m;
|
|
8003
|
-
return v(), g("li",
|
|
8003
|
+
return v(), g("li", q9, [
|
|
8004
8004
|
n.value ? (v(), R(Xe, {
|
|
8005
8005
|
key: 0,
|
|
8006
8006
|
"avatar-url": (m = _.user) == null ? void 0 : m.avatarUrl,
|
|
8007
8007
|
"user-name": n.value,
|
|
8008
8008
|
class: "ao-comment__avatar"
|
|
8009
8009
|
}, null, 8, ["avatar-url", "user-name"])) : T("", !0),
|
|
8010
|
-
p("span", z9, K(
|
|
8010
|
+
p("span", z9, K(d.value), 1),
|
|
8011
8011
|
p("div", x9, [
|
|
8012
8012
|
p("div", Y9, [
|
|
8013
8013
|
(v(), R(vt(l.value), {
|
|
@@ -8017,11 +8017,11 @@ const W9 = { class: "ao-comment" }, z9 = { class: "ao-comment__created-at" }, x9
|
|
|
8017
8017
|
value: X(o) ? _.content : null,
|
|
8018
8018
|
rows: X(o) ? $.value : null,
|
|
8019
8019
|
onKeyup: [
|
|
8020
|
-
ut(X(
|
|
8020
|
+
ut(X(c), ["esc"]),
|
|
8021
8021
|
ut(he(X(f), ["ctrl"]), ["enter"])
|
|
8022
8022
|
]
|
|
8023
8023
|
}, {
|
|
8024
|
-
default:
|
|
8024
|
+
default: W(() => [
|
|
8025
8025
|
Ra(K(_.content), 1)
|
|
8026
8026
|
]),
|
|
8027
8027
|
_: 1
|
|
@@ -8035,7 +8035,7 @@ const W9 = { class: "ao-comment" }, z9 = { class: "ao-comment__created-at" }, x9
|
|
|
8035
8035
|
size: "sm",
|
|
8036
8036
|
variant: "ghost",
|
|
8037
8037
|
color: "neutral",
|
|
8038
|
-
onClick: X(
|
|
8038
|
+
onClick: X(c)
|
|
8039
8039
|
}, null, 8, ["onClick"]),
|
|
8040
8040
|
V(de, {
|
|
8041
8041
|
"icon-name": "CheckSmallRounded",
|
|
@@ -8081,7 +8081,7 @@ const X9 = { class: "ao-comments__header" }, Q9 = ["onSubmit"], J9 = ["placehold
|
|
|
8081
8081
|
setup(t, { emit: e }) {
|
|
8082
8082
|
const a = t, n = M(() => (a.comments || []).toSorted(
|
|
8083
8083
|
(f, C) => D2(ia(f.createdAt), ia(C.createdAt))
|
|
8084
|
-
)), s = (
|
|
8084
|
+
)), s = (c) => a.users.find((C) => C.id === c), o = ae();
|
|
8085
8085
|
De(() => {
|
|
8086
8086
|
o.value && (o.value.scrollTop = o.value.scrollHeight);
|
|
8087
8087
|
});
|
|
@@ -8089,21 +8089,21 @@ const X9 = { class: "ao-comments__header" }, Q9 = ["onSubmit"], J9 = ["placehold
|
|
|
8089
8089
|
get() {
|
|
8090
8090
|
return i.value;
|
|
8091
8091
|
},
|
|
8092
|
-
set(
|
|
8093
|
-
i.value =
|
|
8092
|
+
set(c) {
|
|
8093
|
+
i.value = c;
|
|
8094
8094
|
}
|
|
8095
8095
|
}), u = () => {
|
|
8096
|
-
const
|
|
8097
|
-
|
|
8098
|
-
},
|
|
8096
|
+
const c = i.value.trim();
|
|
8097
|
+
c && (e("createComment", { authorId: a.userId, message: c }), i.value = "");
|
|
8098
|
+
}, d = (c, f) => {
|
|
8099
8099
|
e("updateComment", {
|
|
8100
|
-
id:
|
|
8100
|
+
id: c,
|
|
8101
8101
|
message: f
|
|
8102
8102
|
});
|
|
8103
|
-
}, l = (
|
|
8104
|
-
e("removeComment", { id:
|
|
8103
|
+
}, l = (c) => {
|
|
8104
|
+
e("removeComment", { id: c });
|
|
8105
8105
|
};
|
|
8106
|
-
return (
|
|
8106
|
+
return (c, f) => {
|
|
8107
8107
|
var C;
|
|
8108
8108
|
return v(), g("div", {
|
|
8109
8109
|
ref_key: "commentsContainer",
|
|
@@ -8119,7 +8119,7 @@ const X9 = { class: "ao-comments__header" }, Q9 = ["onSubmit"], J9 = ["placehold
|
|
|
8119
8119
|
"onUpdate:modelValue": f[0] || (f[0] = ($) => r.value = $),
|
|
8120
8120
|
rows: "2",
|
|
8121
8121
|
class: "ao-field__textarea ao-comments__form-textarea",
|
|
8122
|
-
placeholder:
|
|
8122
|
+
placeholder: c.$t("activity.comment.label")
|
|
8123
8123
|
}, null, 8, J9), [
|
|
8124
8124
|
[
|
|
8125
8125
|
bt,
|
|
@@ -8147,9 +8147,9 @@ const X9 = { class: "ao-comments__header" }, Q9 = ["onSubmit"], J9 = ["placehold
|
|
|
8147
8147
|
content: $.message,
|
|
8148
8148
|
"created-at": $.createdAt,
|
|
8149
8149
|
"edited-at": $.updatedAt,
|
|
8150
|
-
"is-editable": $.author.id ===
|
|
8150
|
+
"is-editable": $.author.id === c.userId,
|
|
8151
8151
|
class: "ao-comment",
|
|
8152
|
-
onEdit: (_) =>
|
|
8152
|
+
onEdit: (_) => d($.id, _),
|
|
8153
8153
|
onRemove: () => l($.id)
|
|
8154
8154
|
}, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
|
|
8155
8155
|
])) : T("", !0)
|
|
@@ -8195,10 +8195,10 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8195
8195
|
}, B4 = { class: "ao-field" }, R4 = { class: "ao-field__label" }, N4 = ["readonly"], j4 = { class: "ao-activity-details__aside-section" }, U4 = {
|
|
8196
8196
|
key: 0,
|
|
8197
8197
|
class: "ao-field__row"
|
|
8198
|
-
}, Z4 = { class: "ao-field ao-field--multiselect" }, F4 = { class: "ao-activity-details__aside-section" },
|
|
8198
|
+
}, Z4 = { class: "ao-field ao-field--multiselect" }, F4 = { class: "ao-activity-details__aside-section" }, W4 = {
|
|
8199
8199
|
key: 1,
|
|
8200
8200
|
class: "ao-activity-details__aside-section"
|
|
8201
|
-
},
|
|
8201
|
+
}, q4 = { 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
8204
|
}, tf = { class: "ao-activity__created-by" }, Bn = /* @__PURE__ */ J({
|
|
@@ -8257,7 +8257,7 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8257
8257
|
set(h) {
|
|
8258
8258
|
e("update:activity", { id: a.activity.id, private: h });
|
|
8259
8259
|
}
|
|
8260
|
-
}),
|
|
8260
|
+
}), d = M({
|
|
8261
8261
|
get() {
|
|
8262
8262
|
return a.activity.deadline;
|
|
8263
8263
|
},
|
|
@@ -8270,7 +8270,7 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8270
8270
|
label: I.name,
|
|
8271
8271
|
value: I.id
|
|
8272
8272
|
}));
|
|
8273
|
-
}),
|
|
8273
|
+
}), c = M({
|
|
8274
8274
|
get() {
|
|
8275
8275
|
var h;
|
|
8276
8276
|
return (h = a.activity.type) == null ? void 0 : h.id;
|
|
@@ -8355,7 +8355,7 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8355
8355
|
}, U = M(() => a.projects.map((h) => ({
|
|
8356
8356
|
value: h.id,
|
|
8357
8357
|
label: h.name
|
|
8358
|
-
}))),
|
|
8358
|
+
}))), q = M(() => {
|
|
8359
8359
|
var I, ee, ne;
|
|
8360
8360
|
const h = (ne = (ee = (I = a.activity) == null ? void 0 : I.project) == null ? void 0 : ee.phases) == null ? void 0 : ne.reduce(
|
|
8361
8361
|
(le, se) => [...le, ...se.milestones],
|
|
@@ -8402,7 +8402,7 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8402
8402
|
return (h, I) => (v(), R(Mn, {
|
|
8403
8403
|
onClose: I[10] || (I[10] = (ee) => h.$emit("close"))
|
|
8404
8404
|
}, {
|
|
8405
|
-
default:
|
|
8405
|
+
default: W(() => {
|
|
8406
8406
|
var ee, ne, le;
|
|
8407
8407
|
return [
|
|
8408
8408
|
p("div", n4, [
|
|
@@ -8427,10 +8427,10 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8427
8427
|
onChange: O
|
|
8428
8428
|
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
8429
8429
|
])) : T("", !0),
|
|
8430
|
-
|
|
8430
|
+
q.value ? (v(), g("label", d4, [
|
|
8431
8431
|
p("span", c4, K(h.$t("activity.milestone.label")), 1),
|
|
8432
8432
|
V($e, {
|
|
8433
|
-
options:
|
|
8433
|
+
options: q.value,
|
|
8434
8434
|
value: (ne = h.activity.milestone) == null ? void 0 : ne.id,
|
|
8435
8435
|
searchable: !0,
|
|
8436
8436
|
disabled: !n.value,
|
|
@@ -8444,13 +8444,13 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8444
8444
|
p("div", f4, [
|
|
8445
8445
|
p("fieldset", v4, [
|
|
8446
8446
|
p("div", p4, [
|
|
8447
|
-
V(
|
|
8447
|
+
V(W9, {
|
|
8448
8448
|
attachments: h.activity.attachments,
|
|
8449
8449
|
"is-editable": h.attachmentEnabled && n.value && h.isTemplate !== !0 && !!h.userId,
|
|
8450
8450
|
onAdd: L,
|
|
8451
8451
|
onRemove: Z
|
|
8452
8452
|
}, {
|
|
8453
|
-
default:
|
|
8453
|
+
default: W(() => [
|
|
8454
8454
|
p("label", m4, [
|
|
8455
8455
|
p("span", h4, K(h.$t("activity.description.label")), 1),
|
|
8456
8456
|
rt(p("textarea", {
|
|
@@ -8577,7 +8577,7 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8577
8577
|
disabled: !n.value,
|
|
8578
8578
|
caret: n.value
|
|
8579
8579
|
}, {
|
|
8580
|
-
tag:
|
|
8580
|
+
tag: W(({
|
|
8581
8581
|
option: se,
|
|
8582
8582
|
handleTagRemove: re
|
|
8583
8583
|
}) => [
|
|
@@ -8597,14 +8597,14 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8597
8597
|
p("label", B4, [
|
|
8598
8598
|
p("span", R4, K(h.$t("activity.deadline.label")), 1),
|
|
8599
8599
|
rt(p("input", {
|
|
8600
|
-
"onUpdate:modelValue": I[4] || (I[4] = (se) =>
|
|
8600
|
+
"onUpdate:modelValue": I[4] || (I[4] = (se) => d.value = se),
|
|
8601
8601
|
readonly: !n.value,
|
|
8602
8602
|
class: "ao-field__input",
|
|
8603
8603
|
type: "date"
|
|
8604
8604
|
}, null, 8, N4), [
|
|
8605
8605
|
[
|
|
8606
8606
|
bt,
|
|
8607
|
-
|
|
8607
|
+
d.value,
|
|
8608
8608
|
void 0,
|
|
8609
8609
|
{ lazy: !0 }
|
|
8610
8610
|
]
|
|
@@ -8616,8 +8616,8 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8616
8616
|
l.value ? (v(), g("div", U4, [
|
|
8617
8617
|
p("label", Z4, [
|
|
8618
8618
|
V($e, {
|
|
8619
|
-
modelValue:
|
|
8620
|
-
"onUpdate:modelValue": I[5] || (I[5] = (se) =>
|
|
8619
|
+
modelValue: c.value,
|
|
8620
|
+
"onUpdate:modelValue": I[5] || (I[5] = (se) => c.value = se),
|
|
8621
8621
|
class: "ao-activity-details__multiselect",
|
|
8622
8622
|
mode: "single",
|
|
8623
8623
|
searchable: !0,
|
|
@@ -8645,7 +8645,7 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8645
8645
|
size: "sm"
|
|
8646
8646
|
}, null, 8, ["modelValue", "label", "disabled"])
|
|
8647
8647
|
]),
|
|
8648
|
-
h.isTemplate !== !0 && h.activity.createdBy.id === h.userId ? (v(), g("div",
|
|
8648
|
+
h.isTemplate !== !0 && h.activity.createdBy.id === h.userId ? (v(), g("div", W4, [
|
|
8649
8649
|
V(Cn, {
|
|
8650
8650
|
modelValue: u.value,
|
|
8651
8651
|
"onUpdate:modelValue": I[7] || (I[7] = (se) => u.value = se),
|
|
@@ -8659,7 +8659,7 @@ const Cn = /* @__PURE__ */ J({
|
|
|
8659
8659
|
size: "sm"
|
|
8660
8660
|
}, null, 8, ["modelValue", "label", "disabled"])
|
|
8661
8661
|
])) : T("", !0),
|
|
8662
|
-
p("fieldset",
|
|
8662
|
+
p("fieldset", q4, [
|
|
8663
8663
|
p("div", z4, [
|
|
8664
8664
|
V(fe, { name: "FlowsheetOutlineRounded" }),
|
|
8665
8665
|
V(_e, {
|
|
@@ -8764,16 +8764,16 @@ const af = /* @__PURE__ */ J({
|
|
|
8764
8764
|
value: w.id,
|
|
8765
8765
|
label: w.name
|
|
8766
8766
|
}));
|
|
8767
|
-
}), u = Vt(a.rule.comparator),
|
|
8767
|
+
}), u = Vt(a.rule.comparator), d = M({
|
|
8768
8768
|
get() {
|
|
8769
8769
|
return u.value;
|
|
8770
8770
|
},
|
|
8771
8771
|
set(m) {
|
|
8772
8772
|
e("update:rule", { ...a.rule, comparator: m });
|
|
8773
8773
|
}
|
|
8774
|
-
}), l = M(() => Object.values(A2)),
|
|
8774
|
+
}), l = M(() => Object.values(A2)), c = Vt(a.rule.trigger), f = M({
|
|
8775
8775
|
get() {
|
|
8776
|
-
return
|
|
8776
|
+
return c.value;
|
|
8777
8777
|
},
|
|
8778
8778
|
set(m) {
|
|
8779
8779
|
e("update:rule", { ...a.rule, trigger: m });
|
|
@@ -8794,7 +8794,7 @@ const af = /* @__PURE__ */ J({
|
|
|
8794
8794
|
}
|
|
8795
8795
|
}), y = M(() => Object.values(S2));
|
|
8796
8796
|
return (m, A) => (v(), R(vt(m.tagName), { class: "ao-rule-line" }, {
|
|
8797
|
-
default:
|
|
8797
|
+
default: W(() => [
|
|
8798
8798
|
V(X(ot), {
|
|
8799
8799
|
modelValue: s.value,
|
|
8800
8800
|
"onUpdate:modelValue": A[0] || (A[0] = (w) => s.value = w),
|
|
@@ -8811,8 +8811,8 @@ const af = /* @__PURE__ */ J({
|
|
|
8811
8811
|
options: C.value
|
|
8812
8812
|
}, null, 8, ["modelValue", "options"]),
|
|
8813
8813
|
V(X(ot), {
|
|
8814
|
-
modelValue:
|
|
8815
|
-
"onUpdate:modelValue": A[3] || (A[3] = (w) =>
|
|
8814
|
+
modelValue: d.value,
|
|
8815
|
+
"onUpdate:modelValue": A[3] || (A[3] = (w) => d.value = w),
|
|
8816
8816
|
options: l.value
|
|
8817
8817
|
}, null, 8, ["modelValue", "options"]),
|
|
8818
8818
|
rt(p("input", {
|
|
@@ -8860,13 +8860,13 @@ const nf = { class: "ao-template-rules__body" }, sf = { class: "ao-template-rule
|
|
|
8860
8860
|
e("removeRule", s);
|
|
8861
8861
|
};
|
|
8862
8862
|
return (s, o) => (v(), R(Mn, null, {
|
|
8863
|
-
header:
|
|
8863
|
+
header: W(() => [
|
|
8864
8864
|
V(_e, {
|
|
8865
8865
|
title: s.$t("template.rules.title"),
|
|
8866
8866
|
level: 2
|
|
8867
8867
|
}, null, 8, ["title"])
|
|
8868
8868
|
]),
|
|
8869
|
-
default:
|
|
8869
|
+
default: W(() => [
|
|
8870
8870
|
p("div", nf, [
|
|
8871
8871
|
p("ul", sf, [
|
|
8872
8872
|
(v(!0), g(Ce, null, ye(s.rules, (i) => (v(), R(af, {
|
|
@@ -8965,7 +8965,7 @@ const rf = {
|
|
|
8965
8965
|
const ne = ee.milestones || [];
|
|
8966
8966
|
return [...I, ...ne];
|
|
8967
8967
|
}, [])) || [];
|
|
8968
|
-
}),
|
|
8968
|
+
}), d = M(() => {
|
|
8969
8969
|
var k, h;
|
|
8970
8970
|
return ((h = (k = s.value) == null ? void 0 : k.phases) == null ? void 0 : h.reduce((I, ee) => {
|
|
8971
8971
|
const le = (ee.milestones || []).reduce(
|
|
@@ -8979,7 +8979,7 @@ const rf = {
|
|
|
8979
8979
|
return (h = (k = r.value) == null ? void 0 : k.activities) == null ? void 0 : h.find(
|
|
8980
8980
|
(I) => I.id === a.activityId
|
|
8981
8981
|
);
|
|
8982
|
-
}),
|
|
8982
|
+
}), c = M(() => {
|
|
8983
8983
|
var k;
|
|
8984
8984
|
return ((k = s.value) == null ? void 0 : k.name) || a.templateId;
|
|
8985
8985
|
}), f = () => {
|
|
@@ -9093,7 +9093,7 @@ const rf = {
|
|
|
9093
9093
|
});
|
|
9094
9094
|
}, Z = ae(!1), U = () => {
|
|
9095
9095
|
Z.value = !Z.value;
|
|
9096
|
-
},
|
|
9096
|
+
}, q = () => {
|
|
9097
9097
|
e("addRule", { templateId: a.templateId });
|
|
9098
9098
|
}, O = (k) => {
|
|
9099
9099
|
e("removeRule", { id: k, templateId: a.templateId });
|
|
@@ -9143,13 +9143,13 @@ const rf = {
|
|
|
9143
9143
|
return (k, h) => {
|
|
9144
9144
|
var I, ee, ne, le, se, re;
|
|
9145
9145
|
return s.value ? (v(), g("div", rf, [
|
|
9146
|
-
V(
|
|
9146
|
+
V(qa, {
|
|
9147
9147
|
"can-go-back": !0,
|
|
9148
9148
|
onGoBack: h[1] || (h[1] = (z) => k.$router.push({ name: X(Lt).TEMPLATES_LIST }))
|
|
9149
9149
|
}, {
|
|
9150
|
-
primary:
|
|
9150
|
+
primary: W(() => [
|
|
9151
9151
|
V(_e, {
|
|
9152
|
-
title:
|
|
9152
|
+
title: c.value,
|
|
9153
9153
|
level: 2,
|
|
9154
9154
|
"is-editable": !0,
|
|
9155
9155
|
"onUpdate:title": h[0] || (h[0] = (z) => {
|
|
@@ -9169,14 +9169,14 @@ const rf = {
|
|
|
9169
9169
|
handle: ".ao-card__drag",
|
|
9170
9170
|
onChange: Y
|
|
9171
9171
|
}, {
|
|
9172
|
-
header:
|
|
9172
|
+
header: W(() => [
|
|
9173
9173
|
V(_e, {
|
|
9174
9174
|
title: k.$t("template.phases.title"),
|
|
9175
9175
|
level: 3,
|
|
9176
9176
|
class: "ao-list__title"
|
|
9177
9177
|
}, null, 8, ["title"])
|
|
9178
9178
|
]),
|
|
9179
|
-
item:
|
|
9179
|
+
item: W(({ element: z }) => {
|
|
9180
9180
|
var P;
|
|
9181
9181
|
return [
|
|
9182
9182
|
V(K3, {
|
|
@@ -9195,7 +9195,7 @@ const rf = {
|
|
|
9195
9195
|
}, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
|
|
9196
9196
|
];
|
|
9197
9197
|
}),
|
|
9198
|
-
footer:
|
|
9198
|
+
footer: W(() => [
|
|
9199
9199
|
p("div", cf, [
|
|
9200
9200
|
V(mt, {
|
|
9201
9201
|
"icon-name": "AddBoxOutlineRounded",
|
|
@@ -9240,7 +9240,7 @@ const rf = {
|
|
|
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
|
-
"template-activities":
|
|
9243
|
+
"template-activities": d.value,
|
|
9244
9244
|
"template-milestones": u.value,
|
|
9245
9245
|
"is-template": !0,
|
|
9246
9246
|
"is-editable": !0,
|
|
@@ -9256,7 +9256,7 @@ const rf = {
|
|
|
9256
9256
|
onAddFiles: N,
|
|
9257
9257
|
onRemoveFile: Q
|
|
9258
9258
|
}, {
|
|
9259
|
-
default:
|
|
9259
|
+
default: W((z) => [
|
|
9260
9260
|
te(k.$slots, "activityDetailsBody", ua(da(z)))
|
|
9261
9261
|
]),
|
|
9262
9262
|
_: 3
|
|
@@ -9269,9 +9269,9 @@ const rf = {
|
|
|
9269
9269
|
rules: s.value.rules || [],
|
|
9270
9270
|
"template-phases": s.value.phases,
|
|
9271
9271
|
"template-milestones": u.value,
|
|
9272
|
-
"template-activities":
|
|
9272
|
+
"template-activities": d.value,
|
|
9273
9273
|
onClose: U,
|
|
9274
|
-
onAddRule:
|
|
9274
|
+
onAddRule: q,
|
|
9275
9275
|
onRemoveRule: O
|
|
9276
9276
|
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) : T("", !0)
|
|
9277
9277
|
]))
|
|
@@ -9302,7 +9302,7 @@ const mf = {
|
|
|
9302
9302
|
}
|
|
9303
9303
|
])
|
|
9304
9304
|
}, {
|
|
9305
|
-
default:
|
|
9305
|
+
default: W(() => [
|
|
9306
9306
|
e.$slots.header ? (v(), g("header", mf, [
|
|
9307
9307
|
te(e.$slots, "header")
|
|
9308
9308
|
])) : T("", !0),
|
|
@@ -9355,75 +9355,84 @@ 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 = (d) => {
|
|
9359
|
+
e("update:title", d);
|
|
9360
9360
|
}, s = M(() => {
|
|
9361
|
-
var
|
|
9362
|
-
return (
|
|
9361
|
+
var d;
|
|
9362
|
+
return a.name + " (" + ((d = a.milestones) == null ? void 0 : d.reduce(
|
|
9363
|
+
(l, c) => {
|
|
9364
|
+
var f;
|
|
9365
|
+
return l + ((f = c.activities) == null ? void 0 : f.reduce((C, $) => C + ($.estimation || 0), 0));
|
|
9366
|
+
},
|
|
9367
|
+
0
|
|
9368
|
+
)) + ")";
|
|
9363
9369
|
}), o = M(() => {
|
|
9364
|
-
var
|
|
9365
|
-
return (
|
|
9366
|
-
}), i = M(() =>
|
|
9370
|
+
var d;
|
|
9371
|
+
return (d = a.milestones) == null ? void 0 : d.length;
|
|
9372
|
+
}), i = M(() => {
|
|
9373
|
+
var d;
|
|
9374
|
+
return (d = a.milestones) == null ? void 0 : d.filter((l) => l.status === fn.done).length;
|
|
9375
|
+
}), r = M(() => (i.value || 0) / (o.value || 1)), u = M({
|
|
9367
9376
|
get: () => a.deadline ?? "",
|
|
9368
|
-
set: (
|
|
9377
|
+
set: (d) => e("update:deadline", d != null && d.length ? d : null)
|
|
9369
9378
|
});
|
|
9370
|
-
return (
|
|
9379
|
+
return (d, l) => (v(), R(Rn, {
|
|
9371
9380
|
class: "ao-card-project-phase",
|
|
9372
|
-
"is-clickable":
|
|
9381
|
+
"is-clickable": d.isEditable
|
|
9373
9382
|
}, Na({
|
|
9374
|
-
default:
|
|
9383
|
+
default: W(() => [
|
|
9375
9384
|
V(_e, {
|
|
9376
|
-
id:
|
|
9385
|
+
id: d.id,
|
|
9377
9386
|
class: "ao-card-project-phase__title",
|
|
9378
|
-
title:
|
|
9387
|
+
title: s.value || "",
|
|
9379
9388
|
level: 4,
|
|
9380
|
-
"is-editable":
|
|
9389
|
+
"is-editable": d.isEditable,
|
|
9381
9390
|
"onUpdate:title": n
|
|
9382
9391
|
}, null, 8, ["id", "title", "is-editable"])
|
|
9383
9392
|
]),
|
|
9384
|
-
footer:
|
|
9393
|
+
footer: W(() => [
|
|
9385
9394
|
p("div", _f, [
|
|
9386
|
-
|
|
9395
|
+
o.value ? (v(), g("div", yf, [
|
|
9387
9396
|
p("div", bf, [
|
|
9388
9397
|
V(fe, {
|
|
9389
9398
|
name: "MountainFlagOutlineRounded",
|
|
9390
9399
|
size: "sm"
|
|
9391
9400
|
}),
|
|
9392
|
-
p("span", wf, K(
|
|
9401
|
+
p("span", wf, K(i.value) + " / " + K(o.value), 1)
|
|
9393
9402
|
]),
|
|
9394
9403
|
V(Nn, {
|
|
9395
|
-
percentages:
|
|
9404
|
+
percentages: r.value,
|
|
9396
9405
|
class: "ao-card-project-phase__progress"
|
|
9397
9406
|
}, null, 8, ["percentages"]),
|
|
9398
|
-
|
|
9399
|
-
te(
|
|
9407
|
+
d.$slots.secondary ? (v(), g("div", $f, [
|
|
9408
|
+
te(d.$slots, "secondary")
|
|
9400
9409
|
])) : T("", !0)
|
|
9401
9410
|
])) : T("", !0),
|
|
9402
9411
|
p("div", {
|
|
9403
|
-
class: x(["ao-card-project-phase__footer-row",
|
|
9412
|
+
class: x(["ao-card-project-phase__footer-row", u.value ? "" : "ao-card-project-phase__no_deadline"])
|
|
9404
9413
|
}, [
|
|
9405
|
-
|
|
9414
|
+
d.isEditable ? rt((v(), g("input", {
|
|
9406
9415
|
key: 0,
|
|
9407
|
-
"onUpdate:modelValue":
|
|
9416
|
+
"onUpdate:modelValue": l[1] || (l[1] = (c) => u.value = c),
|
|
9408
9417
|
class: "ao-card-project-phase__deadline ao-card-project-phase__deadline--input",
|
|
9409
9418
|
type: "date"
|
|
9410
9419
|
}, null, 512)), [
|
|
9411
9420
|
[
|
|
9412
9421
|
bt,
|
|
9413
|
-
|
|
9422
|
+
u.value,
|
|
9414
9423
|
void 0,
|
|
9415
9424
|
{ lazy: !0 }
|
|
9416
9425
|
]
|
|
9417
9426
|
]) : T("", !0),
|
|
9418
|
-
p("span", kf, K(X(wn)(
|
|
9427
|
+
p("span", kf, K(X(wn)(d.deadline)), 1)
|
|
9419
9428
|
], 2)
|
|
9420
9429
|
])
|
|
9421
9430
|
]),
|
|
9422
9431
|
_: 2
|
|
9423
9432
|
}, [
|
|
9424
|
-
|
|
9433
|
+
d.isEditable ? {
|
|
9425
9434
|
name: "header",
|
|
9426
|
-
fn:
|
|
9435
|
+
fn: W(() => [
|
|
9427
9436
|
p("div", gf, [
|
|
9428
9437
|
V(de, {
|
|
9429
9438
|
class: "ao-card-project-phase__archive",
|
|
@@ -9433,8 +9442,8 @@ const gf = { class: "ao-card-project-phase__header" }, _f = { class: "ao-card-pr
|
|
|
9433
9442
|
size: "sm",
|
|
9434
9443
|
"icon-position": "start",
|
|
9435
9444
|
corners: "round",
|
|
9436
|
-
label:
|
|
9437
|
-
onClick:
|
|
9445
|
+
label: d.$t("archive"),
|
|
9446
|
+
onClick: l[0] || (l[0] = he(() => d.$emit("archivePhase", { id: d.id }), ["stop"]))
|
|
9438
9447
|
}, null, 8, ["label"])
|
|
9439
9448
|
])
|
|
9440
9449
|
]),
|
|
@@ -9472,87 +9481,90 @@ const Af = { class: "ao-card-project-milestone__default" }, Tf = {
|
|
|
9472
9481
|
emits: ["updateMilestone", "archiveMilestone"],
|
|
9473
9482
|
setup(t, { emit: e }) {
|
|
9474
9483
|
const a = t, n = M(() => {
|
|
9475
|
-
var
|
|
9476
|
-
return (
|
|
9484
|
+
var u;
|
|
9485
|
+
return a.name + " (" + ((u = a.activities) == null ? void 0 : u.reduce((d, l) => d + (l.estimation || 0), 0)) + ")";
|
|
9477
9486
|
}), s = M(() => {
|
|
9478
|
-
var
|
|
9479
|
-
return (
|
|
9480
|
-
|
|
9487
|
+
var u;
|
|
9488
|
+
return (u = a.activities) == null ? void 0 : u.length;
|
|
9489
|
+
}), o = M(() => {
|
|
9490
|
+
var u;
|
|
9491
|
+
return (u = a.activities) == null ? void 0 : u.filter(
|
|
9492
|
+
(d) => $n(d, a.closedStatus)
|
|
9481
9493
|
).length;
|
|
9482
|
-
}),
|
|
9483
|
-
e("updateMilestone", { id: a.id, name:
|
|
9494
|
+
}), i = M(() => (o.value || 0) / (s.value || 1)), r = (u) => {
|
|
9495
|
+
e("updateMilestone", { id: a.id, name: u });
|
|
9484
9496
|
};
|
|
9485
|
-
return (
|
|
9497
|
+
return (u, d) => (v(), R(Rn, {
|
|
9486
9498
|
class: x([
|
|
9487
9499
|
"ao-card-project-milestone",
|
|
9488
|
-
{ "ao-card-project-milestone--selected":
|
|
9500
|
+
{ "ao-card-project-milestone--selected": u.isSelected }
|
|
9489
9501
|
]),
|
|
9490
|
-
"is-clickable": !
|
|
9502
|
+
"is-clickable": !u.readonly,
|
|
9491
9503
|
"tag-name": "li",
|
|
9492
|
-
"is-selected":
|
|
9504
|
+
"is-selected": u.isSelected
|
|
9493
9505
|
}, {
|
|
9494
|
-
default:
|
|
9506
|
+
default: W(() => [
|
|
9495
9507
|
p("div", Af, [
|
|
9496
9508
|
V(_e, {
|
|
9497
|
-
id:
|
|
9498
|
-
title:
|
|
9509
|
+
id: u.id,
|
|
9510
|
+
title: n.value || "",
|
|
9499
9511
|
level: 5,
|
|
9500
|
-
"is-editable": !
|
|
9512
|
+
"is-editable": !u.readonly && u.isEditable,
|
|
9501
9513
|
class: "ao-card-project-milestone__title",
|
|
9502
|
-
"onUpdate:title":
|
|
9514
|
+
"onUpdate:title": r
|
|
9503
9515
|
}, null, 8, ["id", "title", "is-editable"]),
|
|
9504
|
-
!
|
|
9516
|
+
!u.readonly && u.isEditable ? (v(), g("div", Tf, [
|
|
9505
9517
|
V(de, {
|
|
9506
|
-
color:
|
|
9518
|
+
color: u.isSelected ? void 0 : "primary",
|
|
9507
9519
|
variant: "ghost",
|
|
9508
9520
|
"icon-name": "ArchiveOutlineRounded",
|
|
9509
9521
|
size: "sm",
|
|
9510
9522
|
"icon-position": "start",
|
|
9511
9523
|
corners: "round",
|
|
9512
|
-
label:
|
|
9513
|
-
onClick:
|
|
9524
|
+
label: u.$t("archive"),
|
|
9525
|
+
onClick: d[0] || (d[0] = he(() => u.$emit("archiveMilestone", { id: u.id }), ["stop"]))
|
|
9514
9526
|
}, null, 8, ["color", "label"])
|
|
9515
9527
|
])) : T("", !0)
|
|
9516
9528
|
]),
|
|
9517
9529
|
p("div", Sf, [
|
|
9518
9530
|
p("div", Of, [
|
|
9519
|
-
|
|
9531
|
+
s.value ? (v(), g(Ce, { key: 0 }, [
|
|
9520
9532
|
p("div", Ef, [
|
|
9521
9533
|
V(fe, {
|
|
9522
9534
|
name: "SelectCheckBox",
|
|
9523
9535
|
size: "sm"
|
|
9524
9536
|
}),
|
|
9525
|
-
p("span", If, K(
|
|
9537
|
+
p("span", If, K(o.value) + " / " + K(s.value), 1)
|
|
9526
9538
|
]),
|
|
9527
9539
|
V(Nn, {
|
|
9528
|
-
percentages:
|
|
9540
|
+
percentages: i.value,
|
|
9529
9541
|
class: "ao-card-project-milestone__progress"
|
|
9530
9542
|
}, null, 8, ["percentages"])
|
|
9531
9543
|
], 64)) : T("", !0),
|
|
9532
|
-
|
|
9533
|
-
te(
|
|
9544
|
+
u.$slots.secondary ? (v(), g("div", Lf, [
|
|
9545
|
+
te(u.$slots, "secondary")
|
|
9534
9546
|
])) : T("", !0)
|
|
9535
9547
|
])
|
|
9536
9548
|
])
|
|
9537
9549
|
]),
|
|
9538
|
-
footer:
|
|
9550
|
+
footer: W(() => [
|
|
9539
9551
|
p("div", Vf, [
|
|
9540
|
-
|
|
9552
|
+
u.important ? (v(), R(fe, {
|
|
9541
9553
|
key: 0,
|
|
9542
9554
|
name: "FlagRounded",
|
|
9543
9555
|
class: x(
|
|
9544
|
-
|
|
9556
|
+
u.isSelected ? "ao-card-project-milestone__important--selected" : "ao-card-project-milestone__important"
|
|
9545
9557
|
),
|
|
9546
9558
|
size: "sm"
|
|
9547
9559
|
}, null, 8, ["class"])) : T("", !0),
|
|
9548
|
-
|
|
9549
|
-
p("span", Pf, K(X(wn)(
|
|
9560
|
+
u.deadline ? (v(), g("label", Df, [
|
|
9561
|
+
p("span", Pf, K(X(wn)(u.deadline)), 1)
|
|
9550
9562
|
])) : T("", !0),
|
|
9551
|
-
|
|
9563
|
+
u.assignee ? (v(), g("div", Hf, [
|
|
9552
9564
|
V(Xe, {
|
|
9553
|
-
"user-name": X(V1)(
|
|
9554
|
-
"avatar-url":
|
|
9555
|
-
color:
|
|
9565
|
+
"user-name": X(V1)(u.assignee),
|
|
9566
|
+
"avatar-url": u.assignee.avatarUrl,
|
|
9567
|
+
color: u.isSelected ? "black" : "primary",
|
|
9556
9568
|
size: "sm"
|
|
9557
9569
|
}, null, 8, ["user-name", "avatar-url", "color"])
|
|
9558
9570
|
])) : T("", !0)
|
|
@@ -9600,11 +9612,11 @@ const Rf = {
|
|
|
9600
9612
|
e("addMilestone", { name: C, rank: $, phaseId: f });
|
|
9601
9613
|
}, u = (f) => {
|
|
9602
9614
|
e("updateMilestone", f);
|
|
9603
|
-
},
|
|
9615
|
+
}, d = (f) => {
|
|
9604
9616
|
e("archiveMilestone", f);
|
|
9605
9617
|
}, l = (f) => {
|
|
9606
9618
|
e("archivePhase", f);
|
|
9607
|
-
},
|
|
9619
|
+
}, c = (f) => {
|
|
9608
9620
|
"added" in f ? e("updateMilestone", {
|
|
9609
9621
|
id: f.added.element.id,
|
|
9610
9622
|
phaseId: a.phase.id,
|
|
@@ -9648,8 +9660,8 @@ const Rf = {
|
|
|
9648
9660
|
disabled: f.readonly || !f.isEditable,
|
|
9649
9661
|
"item-key": "id",
|
|
9650
9662
|
group: "kanban"
|
|
9651
|
-
}, f.$attrs, { onChange:
|
|
9652
|
-
item:
|
|
9663
|
+
}, f.$attrs, { onChange: c }), {
|
|
9664
|
+
item: W(({ element: _ }) => {
|
|
9653
9665
|
var y;
|
|
9654
9666
|
return [
|
|
9655
9667
|
V(Bf, {
|
|
@@ -9670,7 +9682,7 @@ const Rf = {
|
|
|
9670
9682
|
params: { phaseId: f.phase.id, milestoneId: _.id }
|
|
9671
9683
|
}),
|
|
9672
9684
|
onUpdateMilestone: u,
|
|
9673
|
-
onArchiveMilestone:
|
|
9685
|
+
onArchiveMilestone: d
|
|
9674
9686
|
}, null, 8, ["id", "name", "activities", "deadline", "is-editable", "is-draggable", "closed-status", "is-selected", "assignee", "important", "readonly", "onClick"])
|
|
9675
9687
|
];
|
|
9676
9688
|
}),
|
|
@@ -9691,7 +9703,7 @@ const Rf = {
|
|
|
9691
9703
|
};
|
|
9692
9704
|
}
|
|
9693
9705
|
});
|
|
9694
|
-
const
|
|
9706
|
+
const Wf = { class: "ao-project__phases" }, qf = {
|
|
9695
9707
|
key: 0,
|
|
9696
9708
|
class: "ao-project-phase__phases-list-footer"
|
|
9697
9709
|
}, zf = /* @__PURE__ */ p("div", { class: "ao-project-phase__empty_drag" }, null, -1), xf = { class: "ao-project-phase__col-phase" }, Yf = /* @__PURE__ */ p("div", { class: "ao-project-phase__col-milestones" }, null, -1), Gf = /* @__PURE__ */ J({
|
|
@@ -9706,8 +9718,8 @@ const qf = { class: "ao-project__phases" }, Wf = {
|
|
|
9706
9718
|
emits: ["addMilestone", "updateMilestone", "archiveMilestone", "addPhase", "updatePhase", "archivePhase"],
|
|
9707
9719
|
setup(t, { emit: e }) {
|
|
9708
9720
|
const a = t;
|
|
9709
|
-
ce(() => a.phases, (l,
|
|
9710
|
-
Ge(l,
|
|
9721
|
+
ce(() => a.phases, (l, c) => {
|
|
9722
|
+
Ge(l, c);
|
|
9711
9723
|
});
|
|
9712
9724
|
const n = (l) => {
|
|
9713
9725
|
e("addMilestone", l);
|
|
@@ -9719,18 +9731,18 @@ const qf = { class: "ao-project__phases" }, Wf = {
|
|
|
9719
9731
|
e("archivePhase", l);
|
|
9720
9732
|
}, r = (l) => {
|
|
9721
9733
|
if (l.moved) {
|
|
9722
|
-
const
|
|
9734
|
+
const c = pa(l, a.phases ?? []);
|
|
9723
9735
|
e("updatePhase", {
|
|
9724
9736
|
id: l.moved.element.id,
|
|
9725
|
-
rank:
|
|
9737
|
+
rank: c
|
|
9726
9738
|
});
|
|
9727
9739
|
}
|
|
9728
9740
|
}, u = (l) => {
|
|
9729
9741
|
e("updatePhase", l);
|
|
9730
|
-
},
|
|
9742
|
+
}, d = (l) => {
|
|
9731
9743
|
e("addPhase", l);
|
|
9732
9744
|
};
|
|
9733
|
-
return (l,
|
|
9745
|
+
return (l, c) => (v(), g("div", Wf, [
|
|
9734
9746
|
V(X(pt), {
|
|
9735
9747
|
class: "ao-project-phase__phases-list",
|
|
9736
9748
|
"model-value": l.phases,
|
|
@@ -9738,7 +9750,7 @@ const qf = { class: "ao-project__phases" }, Wf = {
|
|
|
9738
9750
|
handle: ".ao-card__drag",
|
|
9739
9751
|
onChange: r
|
|
9740
9752
|
}, {
|
|
9741
|
-
item:
|
|
9753
|
+
item: W(({ element: f }) => [
|
|
9742
9754
|
V(Ff, {
|
|
9743
9755
|
phase: f,
|
|
9744
9756
|
"is-editable": !l.readonly && l.isEditable,
|
|
@@ -9754,14 +9766,14 @@ const qf = { class: "ao-project__phases" }, Wf = {
|
|
|
9754
9766
|
]),
|
|
9755
9767
|
_: 1
|
|
9756
9768
|
}, 8, ["model-value"]),
|
|
9757
|
-
l.isEditable ? (v(), g("div",
|
|
9769
|
+
l.isEditable ? (v(), g("div", qf, [
|
|
9758
9770
|
zf,
|
|
9759
9771
|
p("div", xf, [
|
|
9760
9772
|
V(mt, {
|
|
9761
9773
|
label: l.$t("project.phases.add"),
|
|
9762
9774
|
"icon-name": "Add",
|
|
9763
9775
|
class: "ao-project-phase__add-phase",
|
|
9764
|
-
onClick:
|
|
9776
|
+
onClick: d
|
|
9765
9777
|
}, null, 8, ["label"])
|
|
9766
9778
|
]),
|
|
9767
9779
|
Yf
|
|
@@ -9786,13 +9798,13 @@ const Kf = ["onSubmit"], Xf = { class: "ao-add-template-modal__form-body" }, Qf
|
|
|
9786
9798
|
s.value && e("apply", s.value, a.projectId);
|
|
9787
9799
|
};
|
|
9788
9800
|
return (r, u) => (v(), R(Mn, { size: "sm" }, {
|
|
9789
|
-
header:
|
|
9801
|
+
header: W(() => [
|
|
9790
9802
|
V(_e, {
|
|
9791
9803
|
title: r.$t("project.template.add.title"),
|
|
9792
9804
|
level: 3
|
|
9793
9805
|
}, null, 8, ["title"])
|
|
9794
9806
|
]),
|
|
9795
|
-
default:
|
|
9807
|
+
default: W(() => [
|
|
9796
9808
|
p("form", {
|
|
9797
9809
|
class: "ao-add-template-modal__form",
|
|
9798
9810
|
onSubmit: he(i, ["prevent"])
|
|
@@ -9903,11 +9915,11 @@ const X1 = /* @__PURE__ */ j(t8, [["render", n8], ["__scopeId", "data-v-cbe33527
|
|
|
9903
9915
|
e("archivePhase", O);
|
|
9904
9916
|
}, u = (O) => {
|
|
9905
9917
|
e("addMilestone", O);
|
|
9906
|
-
},
|
|
9918
|
+
}, d = (O) => {
|
|
9907
9919
|
e("updateMilestone", O);
|
|
9908
9920
|
}, l = (O) => {
|
|
9909
9921
|
e("archiveMilestone", O);
|
|
9910
|
-
},
|
|
9922
|
+
}, c = (O) => {
|
|
9911
9923
|
e("addActivity", O);
|
|
9912
9924
|
}, f = (O) => {
|
|
9913
9925
|
e("update:activity", O);
|
|
@@ -9933,7 +9945,7 @@ const X1 = /* @__PURE__ */ j(t8, [["render", n8], ["__scopeId", "data-v-cbe33527
|
|
|
9933
9945
|
e("updateComment", O);
|
|
9934
9946
|
}, Z = (O) => {
|
|
9935
9947
|
e("removeComment", O);
|
|
9936
|
-
}, U = ae(!1),
|
|
9948
|
+
}, U = ae(!1), q = (O, Y) => {
|
|
9937
9949
|
e("applyTemplate", { templateId: O, projectId: Y }), U.value = !1;
|
|
9938
9950
|
};
|
|
9939
9951
|
return (O, Y) => {
|
|
@@ -9941,8 +9953,8 @@ const X1 = /* @__PURE__ */ j(t8, [["render", n8], ["__scopeId", "data-v-cbe33527
|
|
|
9941
9953
|
return v(), g(Ce, null, [
|
|
9942
9954
|
p("div", Ve({ class: "ao-project-overview" }, O.$attrs), [
|
|
9943
9955
|
p("div", s8, [
|
|
9944
|
-
V(
|
|
9945
|
-
primary:
|
|
9956
|
+
V(qa, null, {
|
|
9957
|
+
primary: W(() => [
|
|
9946
9958
|
V(X1, {
|
|
9947
9959
|
"is-left": !0,
|
|
9948
9960
|
"right-label": O.$t("project.switch.feed"),
|
|
@@ -9964,7 +9976,7 @@ const X1 = /* @__PURE__ */ j(t8, [["render", n8], ["__scopeId", "data-v-cbe33527
|
|
|
9964
9976
|
onClick: Y[1] || (Y[1] = (F) => O.$emit("update:showsArchived", !O.showsArchived))
|
|
9965
9977
|
}, null, 8, ["icon-name", "label", "aria-checked"])
|
|
9966
9978
|
]),
|
|
9967
|
-
secondary:
|
|
9979
|
+
secondary: W(() => [
|
|
9968
9980
|
O.isEditable === !0 ? (v(), R(de, {
|
|
9969
9981
|
key: 0,
|
|
9970
9982
|
class: "ao-project-overview__add-template",
|
|
@@ -9982,7 +9994,7 @@ const X1 = /* @__PURE__ */ j(t8, [["render", n8], ["__scopeId", "data-v-cbe33527
|
|
|
9982
9994
|
"is-editable": O.isEditable === !0,
|
|
9983
9995
|
users: O.users,
|
|
9984
9996
|
onAddMilestone: u,
|
|
9985
|
-
onUpdateMilestone:
|
|
9997
|
+
onUpdateMilestone: d,
|
|
9986
9998
|
onArchiveMilestone: l,
|
|
9987
9999
|
onAddPhase: o,
|
|
9988
10000
|
onUpdatePhase: i,
|
|
@@ -9999,8 +10011,8 @@ const X1 = /* @__PURE__ */ j(t8, [["render", n8], ["__scopeId", "data-v-cbe33527
|
|
|
9999
10011
|
"is-editable": O.isEditable === !0,
|
|
10000
10012
|
"closed-status": O.closedStatus,
|
|
10001
10013
|
onClose: Y[3] || (Y[3] = (F) => O.$router.push({ name: X(Ue).project })),
|
|
10002
|
-
onUpdateMilestone:
|
|
10003
|
-
onAddActivity:
|
|
10014
|
+
onUpdateMilestone: d,
|
|
10015
|
+
onAddActivity: c,
|
|
10004
10016
|
onUpdateActivity: f,
|
|
10005
10017
|
onArchiveActivity: C,
|
|
10006
10018
|
onUnarchiveActivity: $
|
|
@@ -10028,9 +10040,9 @@ const X1 = /* @__PURE__ */ j(t8, [["render", n8], ["__scopeId", "data-v-cbe33527
|
|
|
10028
10040
|
onUpdateComment: L,
|
|
10029
10041
|
onRemoveComment: Z
|
|
10030
10042
|
}, {
|
|
10031
|
-
default:
|
|
10043
|
+
default: W(({ Component: F }) => [
|
|
10032
10044
|
(v(), R(vt(F), null, {
|
|
10033
|
-
default:
|
|
10045
|
+
default: W((E) => [
|
|
10034
10046
|
te(O.$slots, "activityDetailsBody", ua(da(E)))
|
|
10035
10047
|
]),
|
|
10036
10048
|
_: 2
|
|
@@ -10046,7 +10058,7 @@ const X1 = /* @__PURE__ */ j(t8, [["render", n8], ["__scopeId", "data-v-cbe33527
|
|
|
10046
10058
|
"project-id": O.project.id,
|
|
10047
10059
|
templates: O.templates,
|
|
10048
10060
|
onClose: Y[4] || (Y[4] = (F) => U.value = !1),
|
|
10049
|
-
onApply:
|
|
10061
|
+
onApply: q
|
|
10050
10062
|
}, null, 8, ["project-id", "templates"])) : T("", !0)
|
|
10051
10063
|
]))
|
|
10052
10064
|
], 64);
|
|
@@ -10104,74 +10116,74 @@ const r8 = { class: "ao-card-feed__header" }, l8 = {
|
|
|
10104
10116
|
},
|
|
10105
10117
|
emits: ["removeAssignee", "updateActivity"],
|
|
10106
10118
|
setup(t, { emit: e }) {
|
|
10107
|
-
const a = t, n = (
|
|
10119
|
+
const a = t, n = (c) => {
|
|
10108
10120
|
e("updateActivity", {
|
|
10109
10121
|
id: a.id,
|
|
10110
|
-
name:
|
|
10122
|
+
name: c
|
|
10111
10123
|
});
|
|
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 = (
|
|
10113
|
-
e("removeAssignee",
|
|
10124
|
+
}, 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 = (c) => {
|
|
10125
|
+
e("removeAssignee", c);
|
|
10114
10126
|
}, u = M(() => {
|
|
10115
|
-
var
|
|
10116
|
-
return (
|
|
10117
|
-
}),
|
|
10118
|
-
var
|
|
10119
|
-
return (
|
|
10120
|
-
}), l = M(() => (
|
|
10121
|
-
return (
|
|
10122
|
-
class: x(["ao-card-feed", { "ao-card-feed--closed":
|
|
10127
|
+
var c;
|
|
10128
|
+
return (c = a.tasks) == null ? void 0 : c.length;
|
|
10129
|
+
}), d = M(() => {
|
|
10130
|
+
var c;
|
|
10131
|
+
return (c = a.tasks) == null ? void 0 : c.filter((f) => f.isDone).length;
|
|
10132
|
+
}), l = M(() => (d.value || 0) / (u.value || 1));
|
|
10133
|
+
return (c, f) => (v(), R(Rn, {
|
|
10134
|
+
class: x(["ao-card-feed", { "ao-card-feed--closed": c.isClosed }]),
|
|
10123
10135
|
"is-clickable": !0
|
|
10124
10136
|
}, {
|
|
10125
|
-
header:
|
|
10137
|
+
header: W(() => [
|
|
10126
10138
|
p("div", r8, [
|
|
10127
|
-
(
|
|
10139
|
+
(c.isFeedView ? c.milestoneName : c.projectName) ? (v(), R(yn, {
|
|
10128
10140
|
key: 0,
|
|
10129
|
-
label: (
|
|
10141
|
+
label: (c.isFeedView ? c.milestoneName : c.projectName) ?? "",
|
|
10130
10142
|
class: "ao-card-feed__project",
|
|
10131
10143
|
variant: "solid",
|
|
10132
|
-
color:
|
|
10133
|
-
"raw-color":
|
|
10144
|
+
color: c.projectColor ? void 0 : "primary",
|
|
10145
|
+
"raw-color": c.projectColor
|
|
10134
10146
|
}, null, 8, ["label", "color", "raw-color"])) : T("", !0),
|
|
10135
|
-
|
|
10136
|
-
|
|
10147
|
+
c.isPrivate || c.important || c.isClosed ? (v(), g("div", l8, [
|
|
10148
|
+
c.isPrivate ? (v(), R(fe, {
|
|
10137
10149
|
key: 0,
|
|
10138
10150
|
name: "Lock",
|
|
10139
10151
|
class: "ao-card-feed__warning",
|
|
10140
10152
|
size: "sm"
|
|
10141
10153
|
})) : T("", !0),
|
|
10142
|
-
|
|
10154
|
+
c.important ? (v(), R(fe, {
|
|
10143
10155
|
key: 1,
|
|
10144
10156
|
name: "FlagRounded",
|
|
10145
10157
|
class: "ao-card-feed__important",
|
|
10146
10158
|
size: "sm"
|
|
10147
10159
|
})) : T("", !0),
|
|
10148
|
-
|
|
10160
|
+
c.isClosed ? (v(), R(fe, {
|
|
10149
10161
|
key: 2,
|
|
10150
10162
|
name: "CheckSmallRounded",
|
|
10151
10163
|
class: "ao-card-feed__closed"
|
|
10152
10164
|
})) : T("", !0)
|
|
10153
10165
|
])) : T("", !0),
|
|
10154
|
-
|
|
10155
|
-
te(
|
|
10166
|
+
c.$slots.secondary ? (v(), g("div", u8, [
|
|
10167
|
+
te(c.$slots, "secondary")
|
|
10156
10168
|
])) : T("", !0)
|
|
10157
10169
|
])
|
|
10158
10170
|
]),
|
|
10159
|
-
default:
|
|
10171
|
+
default: W(() => [
|
|
10160
10172
|
p("div", d8, [
|
|
10161
10173
|
s.value ? (v(), g("span", c8, K(s.value), 1)) : T("", !0),
|
|
10162
10174
|
p("div", f8, [
|
|
10163
10175
|
V(_e, {
|
|
10164
|
-
id:
|
|
10165
|
-
title:
|
|
10176
|
+
id: c.id,
|
|
10177
|
+
title: c.name,
|
|
10166
10178
|
level: 5,
|
|
10167
|
-
"is-editable":
|
|
10179
|
+
"is-editable": c.isEditable,
|
|
10168
10180
|
"onUpdate:title": n
|
|
10169
10181
|
}, null, 8, ["id", "title", "is-editable"])
|
|
10170
10182
|
]),
|
|
10171
|
-
|
|
10183
|
+
c.deadline ? (v(), g("span", v8, K(i.value), 1)) : T("", !0)
|
|
10172
10184
|
])
|
|
10173
10185
|
]),
|
|
10174
|
-
footer:
|
|
10186
|
+
footer: W(() => [
|
|
10175
10187
|
p("div", p8, [
|
|
10176
10188
|
p("div", m8, [
|
|
10177
10189
|
p("ul", h8, [
|
|
@@ -10188,31 +10200,31 @@ const r8 = { class: "ao-card-feed__header" }, l8 = {
|
|
|
10188
10200
|
])) : T("", !0)
|
|
10189
10201
|
], 64))), 128))
|
|
10190
10202
|
]),
|
|
10191
|
-
|
|
10192
|
-
|
|
10203
|
+
c.comments || c.attachments ? (v(), g("ul", g8, [
|
|
10204
|
+
c.comments ? (v(), g("li", _8, [
|
|
10193
10205
|
V(fe, {
|
|
10194
10206
|
name: "ChatOutline",
|
|
10195
10207
|
size: "sm"
|
|
10196
10208
|
}),
|
|
10197
|
-
p("span", y8, K(
|
|
10209
|
+
p("span", y8, K(c.comments), 1)
|
|
10198
10210
|
])) : T("", !0),
|
|
10199
|
-
|
|
10211
|
+
c.attachments ? (v(), g("li", b8, [
|
|
10200
10212
|
V(fe, {
|
|
10201
10213
|
name: "AttachFileRounded",
|
|
10202
10214
|
size: "sm"
|
|
10203
10215
|
}),
|
|
10204
|
-
p("span", w8, K(
|
|
10216
|
+
p("span", w8, K(c.attachments), 1)
|
|
10205
10217
|
])) : T("", !0)
|
|
10206
10218
|
])) : T("", !0)
|
|
10207
10219
|
]),
|
|
10208
10220
|
p("div", $8, [
|
|
10209
|
-
|
|
10221
|
+
c.tasks && c.tasks.length ? (v(), g("div", k8, [
|
|
10210
10222
|
p("div", M8, [
|
|
10211
10223
|
V(fe, {
|
|
10212
10224
|
name: "SelectCheckBox",
|
|
10213
10225
|
size: "sm"
|
|
10214
10226
|
}),
|
|
10215
|
-
p("span", A8, K(
|
|
10227
|
+
p("span", A8, K(d.value) + " / " + K(u.value), 1)
|
|
10216
10228
|
]),
|
|
10217
10229
|
V(Nn, {
|
|
10218
10230
|
percentages: l.value,
|
|
@@ -10265,7 +10277,7 @@ const T8 = { class: "ao-project-milestone" }, S8 = { class: "ao-project-mileston
|
|
|
10265
10277
|
});
|
|
10266
10278
|
const u = (m) => {
|
|
10267
10279
|
e("close", m);
|
|
10268
|
-
},
|
|
10280
|
+
}, d = () => {
|
|
10269
10281
|
const { name: m, rank: A } = Pt(
|
|
10270
10282
|
r.value ?? [],
|
|
10271
10283
|
"activity",
|
|
@@ -10279,7 +10291,7 @@ const T8 = { class: "ao-project-milestone" }, S8 = { class: "ao-project-mileston
|
|
|
10279
10291
|
});
|
|
10280
10292
|
}, l = (m) => {
|
|
10281
10293
|
e("updateActivity", m);
|
|
10282
|
-
},
|
|
10294
|
+
}, c = (m) => {
|
|
10283
10295
|
r.value && "moved" in m && e("updateActivity", {
|
|
10284
10296
|
id: m.moved.element.id,
|
|
10285
10297
|
rank: Bt(r.value, m.moved.newIndex)
|
|
@@ -10388,7 +10400,7 @@ const T8 = { class: "ao-project-milestone" }, S8 = { class: "ao-project-mileston
|
|
|
10388
10400
|
disabled: !m.isEditable,
|
|
10389
10401
|
caret: m.isEditable
|
|
10390
10402
|
}, {
|
|
10391
|
-
tag:
|
|
10403
|
+
tag: W(({
|
|
10392
10404
|
option: S,
|
|
10393
10405
|
handleTagRemove: D
|
|
10394
10406
|
}) => [
|
|
@@ -10412,8 +10424,8 @@ const T8 = { class: "ao-project-milestone" }, S8 = { class: "ao-project-mileston
|
|
|
10412
10424
|
disabled: !m.isEditable,
|
|
10413
10425
|
"item-key": "id",
|
|
10414
10426
|
group: "kanban"
|
|
10415
|
-
}, m.$attrs, { onChange:
|
|
10416
|
-
item:
|
|
10427
|
+
}, m.$attrs, { onChange: c }), {
|
|
10428
|
+
item: W(({ element: S }) => {
|
|
10417
10429
|
var D, L, Z, U;
|
|
10418
10430
|
return [
|
|
10419
10431
|
V(Q1, {
|
|
@@ -10431,7 +10443,7 @@ const T8 = { class: "ao-project-milestone" }, S8 = { class: "ao-project-mileston
|
|
|
10431
10443
|
"is-editable": m.isEditable,
|
|
10432
10444
|
"is-private": S.private,
|
|
10433
10445
|
"is-closed": C(S),
|
|
10434
|
-
onClick: (
|
|
10446
|
+
onClick: (q) => m.$router.push({
|
|
10435
10447
|
name: X(Ue).activity,
|
|
10436
10448
|
params: { milestoneId: m.milestoneId, activityId: S.id }
|
|
10437
10449
|
}),
|
|
@@ -10440,7 +10452,7 @@ const T8 = { class: "ao-project-milestone" }, S8 = { class: "ao-project-mileston
|
|
|
10440
10452
|
}, Na({ _: 2 }, [
|
|
10441
10453
|
m.isEditable ? {
|
|
10442
10454
|
name: "secondary",
|
|
10443
|
-
fn:
|
|
10455
|
+
fn: W(() => [
|
|
10444
10456
|
m.isEditable && S.active ? (v(), R(de, {
|
|
10445
10457
|
key: 0,
|
|
10446
10458
|
color: "primary",
|
|
@@ -10478,7 +10490,7 @@ const T8 = { class: "ao-project-milestone" }, S8 = { class: "ao-project-mileston
|
|
|
10478
10490
|
V(mt, {
|
|
10479
10491
|
"icon-name": "Add",
|
|
10480
10492
|
label: m.$t("project.activity.add"),
|
|
10481
|
-
onClick:
|
|
10493
|
+
onClick: d
|
|
10482
10494
|
}, null, 8, ["label"])
|
|
10483
10495
|
])) : T("", !0)
|
|
10484
10496
|
])
|
|
@@ -10523,11 +10535,11 @@ const N8 = /* @__PURE__ */ J({
|
|
|
10523
10535
|
e("update:activity", y);
|
|
10524
10536
|
}, u = (y) => {
|
|
10525
10537
|
e("addSubtask", y);
|
|
10526
|
-
},
|
|
10538
|
+
}, d = (y) => {
|
|
10527
10539
|
e("updateSubtask", y);
|
|
10528
10540
|
}, l = (y) => {
|
|
10529
10541
|
e("deleteSubtask", y);
|
|
10530
|
-
},
|
|
10542
|
+
}, c = (y) => {
|
|
10531
10543
|
e("addFiles", y);
|
|
10532
10544
|
}, f = (y) => {
|
|
10533
10545
|
e("removeFile", y);
|
|
@@ -10558,15 +10570,15 @@ const N8 = /* @__PURE__ */ J({
|
|
|
10558
10570
|
onClose: y.$router.back,
|
|
10559
10571
|
"onUpdate:activity": r,
|
|
10560
10572
|
onAddSubtask: u,
|
|
10561
|
-
onUpdateSubtask:
|
|
10573
|
+
onUpdateSubtask: d,
|
|
10562
10574
|
onDeleteSubtask: l,
|
|
10563
|
-
onAddFiles:
|
|
10575
|
+
onAddFiles: c,
|
|
10564
10576
|
onRemoveFile: f,
|
|
10565
10577
|
onAddComment: C,
|
|
10566
10578
|
onUpdateComment: $,
|
|
10567
10579
|
onRemoveComment: _
|
|
10568
10580
|
}, {
|
|
10569
|
-
default:
|
|
10581
|
+
default: W((S) => [
|
|
10570
10582
|
te(y.$slots, "default", ua(da(S)))
|
|
10571
10583
|
]),
|
|
10572
10584
|
_: 3
|
|
@@ -10604,9 +10616,9 @@ function Ba(t) {
|
|
|
10604
10616
|
}
|
|
10605
10617
|
const F8 = typeof window < "u" && typeof document < "u";
|
|
10606
10618
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
10607
|
-
const
|
|
10619
|
+
const W8 = (t) => t != null, na = () => {
|
|
10608
10620
|
};
|
|
10609
|
-
function
|
|
10621
|
+
function q8(t, e) {
|
|
10610
10622
|
function a(...n) {
|
|
10611
10623
|
return new Promise((s, o) => {
|
|
10612
10624
|
Promise.resolve(t(() => e.apply(this, n), { fn: e, thisArg: this, args: n })).then(s).catch(o);
|
|
@@ -10620,18 +10632,18 @@ function z8(t, e = {}) {
|
|
|
10620
10632
|
clearTimeout(r), s(), s = na;
|
|
10621
10633
|
};
|
|
10622
10634
|
return (r) => {
|
|
10623
|
-
const u = Ba(t),
|
|
10624
|
-
return a && o(a), u <= 0 ||
|
|
10625
|
-
s = e.rejectOnCancel ?
|
|
10635
|
+
const u = Ba(t), d = Ba(e.maxWait);
|
|
10636
|
+
return a && o(a), u <= 0 || d !== void 0 && d <= 0 ? (n && (o(n), n = null), Promise.resolve(r())) : new Promise((l, c) => {
|
|
10637
|
+
s = e.rejectOnCancel ? c : l, d && !n && (n = setTimeout(() => {
|
|
10626
10638
|
a && o(a), n = null, l(r());
|
|
10627
|
-
},
|
|
10639
|
+
}, d)), a = setTimeout(() => {
|
|
10628
10640
|
n && o(n), n = null, l(r());
|
|
10629
10641
|
}, u);
|
|
10630
10642
|
});
|
|
10631
10643
|
};
|
|
10632
10644
|
}
|
|
10633
10645
|
function x8(t, e = 200, a = {}) {
|
|
10634
|
-
return
|
|
10646
|
+
return q8(
|
|
10635
10647
|
z8(e, a),
|
|
10636
10648
|
t
|
|
10637
10649
|
);
|
|
@@ -10644,7 +10656,7 @@ function cn(t) {
|
|
|
10644
10656
|
const Y8 = F8 ? window : void 0;
|
|
10645
10657
|
function G8() {
|
|
10646
10658
|
const t = ae(!1), e = Mt();
|
|
10647
|
-
return e &&
|
|
10659
|
+
return e && Wt(() => {
|
|
10648
10660
|
t.value = !0;
|
|
10649
10661
|
}, e), t;
|
|
10650
10662
|
}
|
|
@@ -10659,15 +10671,15 @@ function X8(t, e, a = {}) {
|
|
|
10659
10671
|
threshold: o = 0.1,
|
|
10660
10672
|
window: i = Y8,
|
|
10661
10673
|
immediate: r = !0
|
|
10662
|
-
} = a, u = K8(() => i && "IntersectionObserver" in i),
|
|
10674
|
+
} = a, u = K8(() => i && "IntersectionObserver" in i), d = M(() => {
|
|
10663
10675
|
const $ = Ba(t);
|
|
10664
|
-
return (Array.isArray($) ? $ : [$]).map(cn).filter(
|
|
10676
|
+
return (Array.isArray($) ? $ : [$]).map(cn).filter(W8);
|
|
10665
10677
|
});
|
|
10666
10678
|
let l = na;
|
|
10667
|
-
const
|
|
10668
|
-
() => [
|
|
10679
|
+
const c = ae(r), f = u.value ? ce(
|
|
10680
|
+
() => [d.value, cn(n), c.value],
|
|
10669
10681
|
([$, _]) => {
|
|
10670
|
-
if (l(), !
|
|
10682
|
+
if (l(), !c.value || !$.length)
|
|
10671
10683
|
return;
|
|
10672
10684
|
const y = new IntersectionObserver(
|
|
10673
10685
|
e,
|
|
@@ -10683,16 +10695,16 @@ function X8(t, e, a = {}) {
|
|
|
10683
10695
|
},
|
|
10684
10696
|
{ immediate: r, flush: "post" }
|
|
10685
10697
|
) : na, C = () => {
|
|
10686
|
-
l(), f(),
|
|
10698
|
+
l(), f(), c.value = !1;
|
|
10687
10699
|
};
|
|
10688
10700
|
return Z8(C), {
|
|
10689
10701
|
isSupported: u,
|
|
10690
|
-
isActive:
|
|
10702
|
+
isActive: c,
|
|
10691
10703
|
pause() {
|
|
10692
|
-
l(),
|
|
10704
|
+
l(), c.value = !1;
|
|
10693
10705
|
},
|
|
10694
10706
|
resume() {
|
|
10695
|
-
|
|
10707
|
+
c.value = !0;
|
|
10696
10708
|
},
|
|
10697
10709
|
stop: C
|
|
10698
10710
|
};
|
|
@@ -10738,8 +10750,8 @@ const Q8 = {
|
|
|
10738
10750
|
l && a.hasMore && !a.isLoading && e("loadMore");
|
|
10739
10751
|
});
|
|
10740
10752
|
const o = (l) => {
|
|
10741
|
-
var
|
|
10742
|
-
return a.isEditable === !0 ? !0 : a.userId && a.isEditable === "only-own" ? a.userId === ((
|
|
10753
|
+
var c;
|
|
10754
|
+
return a.isEditable === !0 ? !0 : a.userId && a.isEditable === "only-own" ? a.userId === ((c = l.assignee) == null ? void 0 : c.id) : !1;
|
|
10743
10755
|
}, i = (l) => {
|
|
10744
10756
|
e("selectActivity", l);
|
|
10745
10757
|
}, r = (l) => {
|
|
@@ -10756,8 +10768,8 @@ const Q8 = {
|
|
|
10756
10768
|
l.moved.newIndex
|
|
10757
10769
|
)
|
|
10758
10770
|
});
|
|
10759
|
-
},
|
|
10760
|
-
return (l,
|
|
10771
|
+
}, d = ae(!1);
|
|
10772
|
+
return (l, c) => (v(), g("div", Q8, [
|
|
10761
10773
|
l.title || l.$slots.header ? te(l.$slots, "header", { key: 0 }, () => {
|
|
10762
10774
|
var f;
|
|
10763
10775
|
return [
|
|
@@ -10772,7 +10784,7 @@ const Q8 = {
|
|
|
10772
10784
|
];
|
|
10773
10785
|
}) : T("", !0),
|
|
10774
10786
|
V(X(pt), Ve({
|
|
10775
|
-
class: ["ao-list-kanban__list",
|
|
10787
|
+
class: ["ao-list-kanban__list", d.value ? "ao-list-kanban__transition" : void 0],
|
|
10776
10788
|
list: l.list,
|
|
10777
10789
|
"item-key": "id",
|
|
10778
10790
|
group: "kanban",
|
|
@@ -10782,14 +10794,14 @@ const Q8 = {
|
|
|
10782
10794
|
draggable: ".ao-list-draggable",
|
|
10783
10795
|
disabled: !l.isEditable,
|
|
10784
10796
|
onChange: u,
|
|
10785
|
-
onStart:
|
|
10786
|
-
onEnd:
|
|
10797
|
+
onStart: c[0] || (c[0] = (f) => d.value = !0),
|
|
10798
|
+
onEnd: c[1] || (c[1] = (f) => d.value = !1),
|
|
10787
10799
|
"component-data": {
|
|
10788
10800
|
tag: "transition-group",
|
|
10789
10801
|
name: "ao-list-kanban__transition"
|
|
10790
10802
|
}
|
|
10791
10803
|
}), {
|
|
10792
|
-
item:
|
|
10804
|
+
item: W(({ element: f }) => {
|
|
10793
10805
|
var C, $, _, y, m, A, w, S;
|
|
10794
10806
|
return [
|
|
10795
10807
|
V(Q1, {
|
|
@@ -10817,7 +10829,7 @@ const Q8 = {
|
|
|
10817
10829
|
onClick: () => i(f.id),
|
|
10818
10830
|
onRemoveAssignee: () => o(f) && r({ id: f.id, assigneeId: null })
|
|
10819
10831
|
}, {
|
|
10820
|
-
secondary:
|
|
10832
|
+
secondary: W(() => [
|
|
10821
10833
|
o(f) && f.active ? (v(), R(de, {
|
|
10822
10834
|
key: 0,
|
|
10823
10835
|
color: "primary",
|
|
@@ -10845,7 +10857,7 @@ const Q8 = {
|
|
|
10845
10857
|
}, 1032, ["class", "id", "name", "project-name", "project-color", "phase-name", "milestone-name", "deadline", "rules", "tasks", "description", "important", "type", "comments", "attachments", "users", "assignee", "is-editable", "is-private", "is-feed-view", "onUpdateActivity", "onClick", "onRemoveAssignee"])
|
|
10846
10858
|
];
|
|
10847
10859
|
}),
|
|
10848
|
-
footer:
|
|
10860
|
+
footer: W(() => [
|
|
10849
10861
|
l.isLoading ? (v(), g("div", ev, [
|
|
10850
10862
|
V(fe, { name: "Loading" })
|
|
10851
10863
|
])) : l.hasMore ? (v(), g("div", {
|
|
@@ -10865,7 +10877,7 @@ const Q8 = {
|
|
|
10865
10877
|
key: 0,
|
|
10866
10878
|
"icon-name": "AddBoxOutlineRounded",
|
|
10867
10879
|
label: l.footerLabel,
|
|
10868
|
-
onClick:
|
|
10880
|
+
onClick: c[2] || (c[2] = (f) => l.$emit("add"))
|
|
10869
10881
|
}, null, 8, ["label"])) : T("", !0)
|
|
10870
10882
|
])
|
|
10871
10883
|
])) : T("", !0)
|
|
@@ -10953,7 +10965,7 @@ const uv = { class: "ao-feed" }, dv = { class: "ao-feed__filters" }, cv = { clas
|
|
|
10953
10965
|
},
|
|
10954
10966
|
{ immediate: !0 }
|
|
10955
10967
|
);
|
|
10956
|
-
const
|
|
10968
|
+
const d = M(() => {
|
|
10957
10969
|
var E;
|
|
10958
10970
|
return !a.selectedActivity || !a.selectedActivity.milestone ? "" : `${((E = a.selectedActivity.milestone.phase) == null ? void 0 : E.name) ?? ""} / ${a.selectedActivity.milestone.name ?? ""}`;
|
|
10959
10971
|
}), l = (E) => {
|
|
@@ -10964,7 +10976,7 @@ const uv = { class: "ao-feed" }, dv = { class: "ao-feed__filters" }, cv = { clas
|
|
|
10964
10976
|
statusId: E.id
|
|
10965
10977
|
};
|
|
10966
10978
|
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
|
-
},
|
|
10979
|
+
}, c = (E, N) => {
|
|
10968
10980
|
u.value = !1, e("update:filters", { ...a.filters, [E]: N });
|
|
10969
10981
|
}, f = M(
|
|
10970
10982
|
() => a.project ? [a.project] : a.projects ?? []
|
|
@@ -10999,7 +11011,7 @@ const uv = { class: "ao-feed" }, dv = { class: "ao-feed__filters" }, cv = { clas
|
|
|
10999
11011
|
a.selectedActivity && e("updateSubtask", E);
|
|
11000
11012
|
}, U = (E) => {
|
|
11001
11013
|
a.selectedActivity && e("deleteSubtask", E);
|
|
11002
|
-
},
|
|
11014
|
+
}, q = (E) => {
|
|
11003
11015
|
e("addFiles", E);
|
|
11004
11016
|
}, O = (E) => {
|
|
11005
11017
|
e("removeFile", E);
|
|
@@ -11018,8 +11030,8 @@ const uv = { class: "ao-feed" }, dv = { class: "ao-feed__filters" }, cv = { clas
|
|
|
11018
11030
|
return (E, N) => {
|
|
11019
11031
|
var Q;
|
|
11020
11032
|
return v(), g("div", uv, [
|
|
11021
|
-
V(
|
|
11022
|
-
primary:
|
|
11033
|
+
V(qa, null, {
|
|
11034
|
+
primary: W(() => [
|
|
11023
11035
|
p("div", dv, [
|
|
11024
11036
|
a.project ? (v(), R(X1, {
|
|
11025
11037
|
key: 0,
|
|
@@ -11046,7 +11058,7 @@ const uv = { class: "ao-feed" }, dv = { class: "ao-feed__filters" }, cv = { clas
|
|
|
11046
11058
|
searchable: !0,
|
|
11047
11059
|
class: "ao-feed__filter ao-feed__filter__projects",
|
|
11048
11060
|
placeholder: E.$t("feed.filters.project.placeholder"),
|
|
11049
|
-
"onUpdate:modelValue": N[1] || (N[1] = (k) =>
|
|
11061
|
+
"onUpdate:modelValue": N[1] || (N[1] = (k) => c(X(Et).project, k))
|
|
11050
11062
|
}, null, 8, ["model-value", "options", "placeholder"])),
|
|
11051
11063
|
$.value ? (v(), R($e, {
|
|
11052
11064
|
key: 2,
|
|
@@ -11057,7 +11069,7 @@ const uv = { class: "ao-feed" }, dv = { class: "ao-feed__filters" }, cv = { clas
|
|
|
11057
11069
|
searchable: !0,
|
|
11058
11070
|
class: "ao-feed__filter ao-feed__filter__types",
|
|
11059
11071
|
placeholder: E.$t("feed.filters.activityType.placeholder"),
|
|
11060
|
-
"onUpdate:modelValue": N[2] || (N[2] = (k) =>
|
|
11072
|
+
"onUpdate:modelValue": N[2] || (N[2] = (k) => c(X(Et).type, k))
|
|
11061
11073
|
}, null, 8, ["model-value", "options", "placeholder"])) : T("", !0),
|
|
11062
11074
|
_.value.length ? (v(), R($e, {
|
|
11063
11075
|
key: 3,
|
|
@@ -11068,9 +11080,9 @@ const uv = { class: "ao-feed" }, dv = { class: "ao-feed__filters" }, cv = { clas
|
|
|
11068
11080
|
searchable: !0,
|
|
11069
11081
|
class: "ao-feed__filter ao-feed__filter__assignees",
|
|
11070
11082
|
placeholder: E.$t("feed.filters.assignee.placeholder"),
|
|
11071
|
-
"onUpdate:modelValue": N[3] || (N[3] = (k) =>
|
|
11083
|
+
"onUpdate:modelValue": N[3] || (N[3] = (k) => c(X(Et).assignee, k))
|
|
11072
11084
|
}, {
|
|
11073
|
-
tag:
|
|
11085
|
+
tag: W(({
|
|
11074
11086
|
option: k,
|
|
11075
11087
|
handleTagRemove: h
|
|
11076
11088
|
}) => [
|
|
@@ -11140,7 +11152,7 @@ const uv = { class: "ao-feed" }, dv = { class: "ao-feed__filters" }, cv = { clas
|
|
|
11140
11152
|
"user-id": E.userId,
|
|
11141
11153
|
"is-task-checkable": E.isTaskCheckable,
|
|
11142
11154
|
statuses: E.statuses,
|
|
11143
|
-
breadcrumbs:
|
|
11155
|
+
breadcrumbs: d.value,
|
|
11144
11156
|
"is-editable": E.isEditable,
|
|
11145
11157
|
"attachment-enabled": E.attachmentEnabled,
|
|
11146
11158
|
projects: f.value,
|
|
@@ -11149,13 +11161,13 @@ const uv = { class: "ao-feed" }, dv = { class: "ao-feed__filters" }, cv = { clas
|
|
|
11149
11161
|
onAddSubtask: L,
|
|
11150
11162
|
onUpdateSubtask: Z,
|
|
11151
11163
|
onDeleteSubtask: U,
|
|
11152
|
-
onAddFiles:
|
|
11164
|
+
onAddFiles: q,
|
|
11153
11165
|
onRemoveFile: O,
|
|
11154
11166
|
onAddComment: Y,
|
|
11155
11167
|
onUpdateComment: B,
|
|
11156
11168
|
onRemoveComment: F
|
|
11157
11169
|
}, {
|
|
11158
|
-
default:
|
|
11170
|
+
default: W((k) => [
|
|
11159
11171
|
te(E.$slots, "activityDetailsBody", ua(da(k)))
|
|
11160
11172
|
]),
|
|
11161
11173
|
_: 3
|
|
@@ -11243,9 +11255,9 @@ const Lt = {
|
|
|
11243
11255
|
Ge(r, u);
|
|
11244
11256
|
});
|
|
11245
11257
|
const s = () => {
|
|
11246
|
-
var
|
|
11247
|
-
const r = (
|
|
11248
|
-
name: n("template.defaultName.template", { idx:
|
|
11258
|
+
var c, f;
|
|
11259
|
+
const r = (c = a.templates) == null ? void 0 : c.at(-1), u = r ? Ie.LexoRank.parse(r.rank).genNext() : Ie.LexoRank.middle(), d = ((f = a.templates) == null ? void 0 : f.length) ?? 0, l = {
|
|
11260
|
+
name: n("template.defaultName.template", { idx: d + 1 }),
|
|
11249
11261
|
rank: u.format()
|
|
11250
11262
|
};
|
|
11251
11263
|
e("addTemplate", l);
|
|
@@ -11272,8 +11284,8 @@ const Lt = {
|
|
|
11272
11284
|
}
|
|
11273
11285
|
};
|
|
11274
11286
|
return (r, u) => (v(), g("div", vv, [
|
|
11275
|
-
V(
|
|
11276
|
-
secondary:
|
|
11287
|
+
V(qa, null, {
|
|
11288
|
+
secondary: W(() => [
|
|
11277
11289
|
V(de, {
|
|
11278
11290
|
label: r.$t("templates.new"),
|
|
11279
11291
|
color: "primary",
|
|
@@ -11291,21 +11303,21 @@ const Lt = {
|
|
|
11291
11303
|
handle: ".ao-card__drag",
|
|
11292
11304
|
onChange: i
|
|
11293
11305
|
}, {
|
|
11294
|
-
item:
|
|
11306
|
+
item: W(({ element: d }) => {
|
|
11295
11307
|
var l;
|
|
11296
11308
|
return [
|
|
11297
11309
|
V(j3, {
|
|
11298
|
-
id:
|
|
11299
|
-
title:
|
|
11300
|
-
phases:
|
|
11301
|
-
milestones: (l =
|
|
11302
|
-
activities:
|
|
11303
|
-
"updated-at":
|
|
11304
|
-
"updated-by":
|
|
11305
|
-
onUpdateTitle: (
|
|
11306
|
-
onClick: (
|
|
11310
|
+
id: d.id,
|
|
11311
|
+
title: d.name,
|
|
11312
|
+
phases: d.phases,
|
|
11313
|
+
milestones: (l = d.phases) != null && l.length ? X(v3)(d.phases) : 0,
|
|
11314
|
+
activities: d.phases ? X(p3)(d.phases) : 0,
|
|
11315
|
+
"updated-at": d.updatedAt,
|
|
11316
|
+
"updated-by": d.updatedBy,
|
|
11317
|
+
onUpdateTitle: (c) => o(d.id, c),
|
|
11318
|
+
onClick: (c) => r.$router.push({
|
|
11307
11319
|
name: X(Lt).TEMPLATE_DETAILS,
|
|
11308
|
-
params: { templateId:
|
|
11320
|
+
params: { templateId: d.id }
|
|
11309
11321
|
})
|
|
11310
11322
|
}, null, 8, ["id", "title", "phases", "milestones", "activities", "updated-at", "updated-by", "onUpdateTitle", "onClick"])
|
|
11311
11323
|
];
|
|
@@ -11347,7 +11359,7 @@ const mv = { class: "ao-field__label" }, hv = /* @__PURE__ */ J({
|
|
|
11347
11359
|
a.modelModifiers.number && (o = Number(o)), e("update:modelValue", o);
|
|
11348
11360
|
};
|
|
11349
11361
|
return (o, i) => (v(), R(hv, { label: o.label }, {
|
|
11350
|
-
default:
|
|
11362
|
+
default: W(() => [
|
|
11351
11363
|
p("input", Ve({
|
|
11352
11364
|
class: "ao-field__input",
|
|
11353
11365
|
type: o.type,
|