@26lights/orcha 0.41.97 → 0.41.99
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
|
@@ -2736,10 +2736,10 @@ var o3 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, i3 = /P+p+|P+|
|
|
|
2736
2736
|
function Zn(t, e, a) {
|
|
2737
2737
|
var s, n, i, o, l, r, d, u, c, v, h, w, _, g, $, b, m, I;
|
|
2738
2738
|
_e(2, arguments);
|
|
2739
|
-
var P = String(e),
|
|
2739
|
+
var P = String(e), A = ga(), D = (s = (n = a == null ? void 0 : a.locale) !== null && n !== void 0 ? n : A.locale) !== null && s !== void 0 ? s : Fn, R = Je((i = (o = (l = (r = a == null ? void 0 : a.firstWeekContainsDate) !== null && r !== void 0 ? r : a == null || (d = a.locale) === null || d === void 0 || (u = d.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && l !== void 0 ? l : A.firstWeekContainsDate) !== null && o !== void 0 ? o : (c = A.locale) === null || c === void 0 || (v = c.options) === null || v === void 0 ? void 0 : v.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
|
|
2740
2740
|
if (!(R >= 1 && R <= 7))
|
|
2741
2741
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2742
|
-
var Z = Je((h = (w = (_ = (g = a == null ? void 0 : a.weekStartsOn) !== null && g !== void 0 ? g : a == null || ($ = a.locale) === null || $ === void 0 || (b = $.options) === null || b === void 0 ? void 0 : b.weekStartsOn) !== null && _ !== void 0 ? _ :
|
|
2742
|
+
var Z = Je((h = (w = (_ = (g = a == null ? void 0 : a.weekStartsOn) !== null && g !== void 0 ? g : a == null || ($ = a.locale) === null || $ === void 0 || (b = $.options) === null || b === void 0 ? void 0 : b.weekStartsOn) !== null && _ !== void 0 ? _ : A.weekStartsOn) !== null && w !== void 0 ? w : (m = A.locale) === null || m === void 0 || (I = m.options) === null || I === void 0 ? void 0 : I.weekStartsOn) !== null && h !== void 0 ? h : 0);
|
|
2743
2743
|
if (!(Z >= 0 && Z <= 6))
|
|
2744
2744
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2745
2745
|
if (!D.localize)
|
|
@@ -2795,11 +2795,11 @@ function d3(t, e, a) {
|
|
|
2795
2795
|
throw new RangeError("Invalid time value");
|
|
2796
2796
|
var m;
|
|
2797
2797
|
b < -6 ? m = "other" : b < -1 ? m = "lastWeek" : b < 0 ? m = "yesterday" : b < 1 ? m = "today" : b < 2 ? m = "tomorrow" : b < 7 ? m = "nextWeek" : m = "other";
|
|
2798
|
-
var I = ws(h, ua(h)), P = ws(w, ua(w)),
|
|
2798
|
+
var I = ws(h, ua(h)), P = ws(w, ua(w)), A = g.formatRelative(m, I, P, {
|
|
2799
2799
|
locale: g,
|
|
2800
2800
|
weekStartsOn: $
|
|
2801
2801
|
});
|
|
2802
|
-
return Zn(h,
|
|
2802
|
+
return Zn(h, A, {
|
|
2803
2803
|
locale: g,
|
|
2804
2804
|
weekStartsOn: $
|
|
2805
2805
|
});
|
|
@@ -4515,11 +4515,11 @@ const Z5 = function(t) {
|
|
|
4515
4515
|
return {};
|
|
4516
4516
|
const $ = Zt(n), b = Zt(l) === l, m = await (r.isRTL == null ? void 0 : r.isRTL(d.floating)), I = v || (b || !_ ? [Fa(l)] : B5(l));
|
|
4517
4517
|
!v && w !== "none" && I.push(...j5(l, _, w, m));
|
|
4518
|
-
const P = [l, ...I],
|
|
4518
|
+
const P = [l, ...I], A = await Jn(e, g), D = [];
|
|
4519
4519
|
let R = ((s = i.flip) == null ? void 0 : s.overflows) || [];
|
|
4520
|
-
if (u && D.push(
|
|
4520
|
+
if (u && D.push(A[$]), c) {
|
|
4521
4521
|
const N = D5(n, o, m);
|
|
4522
|
-
D.push(
|
|
4522
|
+
D.push(A[N[0]], A[N[1]]);
|
|
4523
4523
|
}
|
|
4524
4524
|
if (R = [...R, {
|
|
4525
4525
|
placement: n,
|
|
@@ -4583,15 +4583,15 @@ const Z5 = function(t) {
|
|
|
4583
4583
|
const g = h - r[w], $ = v - r[_], b = !e.middlewareData.shift;
|
|
4584
4584
|
let m = g, I = $;
|
|
4585
4585
|
if (c) {
|
|
4586
|
-
const
|
|
4587
|
-
I = u || b ? da($,
|
|
4586
|
+
const A = v - r.left - r.right;
|
|
4587
|
+
I = u || b ? da($, A) : A;
|
|
4588
4588
|
} else {
|
|
4589
|
-
const
|
|
4590
|
-
m = u || b ? da(g,
|
|
4589
|
+
const A = h - r.top - r.bottom;
|
|
4590
|
+
m = u || b ? da(g, A) : A;
|
|
4591
4591
|
}
|
|
4592
4592
|
if (b && !u) {
|
|
4593
|
-
const
|
|
4594
|
-
c ? I = v - 2 * (
|
|
4593
|
+
const A = He(r.left, 0), D = He(r.right, 0), R = He(r.top, 0), Z = He(r.bottom, 0);
|
|
4594
|
+
c ? I = v - 2 * (A !== 0 || D !== 0 ? A + D : He(r.left, r.right)) : m = h - 2 * (R !== 0 || Z !== 0 ? R + Z : He(r.top, r.bottom));
|
|
4595
4595
|
}
|
|
4596
4596
|
await o({
|
|
4597
4597
|
...e,
|
|
@@ -4963,11 +4963,11 @@ function l7(t, e) {
|
|
|
4963
4963
|
};
|
|
4964
4964
|
let m = !0;
|
|
4965
4965
|
function I(P) {
|
|
4966
|
-
const
|
|
4967
|
-
if (
|
|
4966
|
+
const A = P[0].intersectionRatio;
|
|
4967
|
+
if (A !== r) {
|
|
4968
4968
|
if (!m)
|
|
4969
4969
|
return o();
|
|
4970
|
-
|
|
4970
|
+
A ? o(!1, A) : s = setTimeout(() => {
|
|
4971
4971
|
o(!1, 1e-7);
|
|
4972
4972
|
}, 100);
|
|
4973
4973
|
}
|
|
@@ -5195,7 +5195,7 @@ function g7(t, e, a) {
|
|
|
5195
5195
|
filterResults: m,
|
|
5196
5196
|
clearOnSearch: I,
|
|
5197
5197
|
clearOnSelect: P,
|
|
5198
|
-
valueProp:
|
|
5198
|
+
valueProp: A,
|
|
5199
5199
|
allowAbsent: D,
|
|
5200
5200
|
groupLabel: R,
|
|
5201
5201
|
canDeselect: Z,
|
|
@@ -5215,46 +5215,46 @@ function g7(t, e, a) {
|
|
|
5215
5215
|
searchFilter: le
|
|
5216
5216
|
} = Ee(t), ne = Lt().proxy, z = a.iv, H = a.ev, X = a.search, he = a.clearSearch, Se = a.update, Gt = a.pointer, Xt = a.setPointer, nt = a.clearPointer, $a = a.focus, rs = a.deactivate, ot = a.close, ka = a.localize, it = q([]), Ue = q([]), Ie = q(!1), je = q(null), xe = q(ee.value && o.value === -1 ? 10 : o.value), Qt = M(() => r.value || d.value || !1), Sa = M(() => c.value !== void 0 ? c.value : v.value !== void 0 ? v.value : !0), Le = M(() => {
|
|
5217
5217
|
if (ie.value) {
|
|
5218
|
-
let
|
|
5218
|
+
let S = bt.value || /* istanbul ignore next */
|
|
5219
5219
|
[], j = [];
|
|
5220
|
-
return
|
|
5220
|
+
return S.forEach((ue) => {
|
|
5221
5221
|
hs(ue[L.value]).forEach((ge) => {
|
|
5222
5222
|
j.push(Object.assign({}, ge, ue[y.value] ? { [y.value]: !0 } : {}));
|
|
5223
5223
|
});
|
|
5224
5224
|
}), j;
|
|
5225
5225
|
} else {
|
|
5226
|
-
let
|
|
5226
|
+
let S = hs(Ue.value || /* istanbul ignore next */
|
|
5227
5227
|
[]);
|
|
5228
|
-
return it.value.length && (
|
|
5228
|
+
return it.value.length && (S = S.concat(it.value)), S;
|
|
5229
5229
|
}
|
|
5230
5230
|
}), Jt = M(() => {
|
|
5231
|
-
let
|
|
5232
|
-
return se.value && (
|
|
5231
|
+
let S = Le.value;
|
|
5232
|
+
return se.value && (S = S.reverse()), Pt.value.length && (S = Pt.value.concat(S)), fs(S);
|
|
5233
5233
|
}), lt = M(() => {
|
|
5234
|
-
let
|
|
5235
|
-
return xe.value > 0 && (
|
|
5234
|
+
let S = Jt.value;
|
|
5235
|
+
return xe.value > 0 && (S = S.slice(0, xe.value)), S;
|
|
5236
5236
|
}), bt = M(() => {
|
|
5237
5237
|
if (!ie.value)
|
|
5238
5238
|
return [];
|
|
5239
|
-
let
|
|
5239
|
+
let S = [], j = Ue.value || /* istanbul ignore next */
|
|
5240
5240
|
[];
|
|
5241
|
-
return it.value.length &&
|
|
5241
|
+
return it.value.length && S.push({
|
|
5242
5242
|
[R.value]: " ",
|
|
5243
5243
|
[L.value]: [...it.value],
|
|
5244
5244
|
__CREATE__: !0
|
|
5245
|
-
}),
|
|
5245
|
+
}), S.concat(j);
|
|
5246
5246
|
}), Aa = M(() => {
|
|
5247
|
-
let
|
|
5248
|
-
return Pt.value.length && (
|
|
5247
|
+
let S = [...bt.value].map((j) => ({ ...j }));
|
|
5248
|
+
return Pt.value.length && (S[0] && S[0].__CREATE__ ? S[0][L.value] = [...Pt.value, ...S[0][L.value]] : S = [{
|
|
5249
5249
|
[R.value]: " ",
|
|
5250
5250
|
[L.value]: [...Pt.value],
|
|
5251
5251
|
__CREATE__: !0
|
|
5252
|
-
}].concat(
|
|
5252
|
+
}].concat(S)), S;
|
|
5253
5253
|
}), us = M(() => {
|
|
5254
5254
|
if (!ie.value)
|
|
5255
5255
|
return [];
|
|
5256
|
-
let
|
|
5257
|
-
return Po((
|
|
5256
|
+
let S = Aa.value;
|
|
5257
|
+
return Po((S || /* istanbul ignore next */
|
|
5258
5258
|
[]).map((j, ue) => {
|
|
5259
5259
|
const ge = hs(j[L.value]);
|
|
5260
5260
|
return {
|
|
@@ -5268,13 +5268,13 @@ function g7(t, e, a) {
|
|
|
5268
5268
|
}), cs = M(() => {
|
|
5269
5269
|
switch (n.value) {
|
|
5270
5270
|
case "single":
|
|
5271
|
-
return !Fe(z.value[
|
|
5271
|
+
return !Fe(z.value[A.value]);
|
|
5272
5272
|
case "multiple":
|
|
5273
5273
|
case "tags":
|
|
5274
5274
|
return !Fe(z.value) && z.value.length > 0;
|
|
5275
5275
|
}
|
|
5276
5276
|
}), _o = M(() => h !== void 0 && h.value !== void 0 ? h.value(z.value, ne) : z.value && z.value.length > 1 ? `${z.value.length} options selected` : "1 option selected"), yo = M(() => !Le.value.length && !Ie.value && !Pt.value.length), bo = M(() => Le.value.length > 0 && lt.value.length == 0 && (X.value && ie.value || !ie.value)), Pt = M(() => Qt.value === !1 || !X.value ? [] : Eo(X.value) !== -1 ? [] : [{
|
|
5277
|
-
[
|
|
5277
|
+
[A.value]: X.value,
|
|
5278
5278
|
[wt.value[0]]: X.value,
|
|
5279
5279
|
[u.value]: X.value,
|
|
5280
5280
|
__CREATE__: !0
|
|
@@ -5286,113 +5286,113 @@ function g7(t, e, a) {
|
|
|
5286
5286
|
case "tags":
|
|
5287
5287
|
return [];
|
|
5288
5288
|
}
|
|
5289
|
-
}), $o = M(() => _.value || Ie.value), Ht = (
|
|
5290
|
-
switch (typeof
|
|
5289
|
+
}), $o = M(() => _.value || Ie.value), Ht = (S) => {
|
|
5290
|
+
switch (typeof S != "object" && (S = Ge(S)), n.value) {
|
|
5291
5291
|
case "single":
|
|
5292
|
-
Se(
|
|
5292
|
+
Se(S);
|
|
5293
5293
|
break;
|
|
5294
5294
|
case "multiple":
|
|
5295
5295
|
case "tags":
|
|
5296
|
-
Se(z.value.concat(
|
|
5296
|
+
Se(z.value.concat(S));
|
|
5297
5297
|
break;
|
|
5298
5298
|
}
|
|
5299
|
-
e.emit("select", nn(
|
|
5300
|
-
}, Vt = (
|
|
5301
|
-
switch (typeof
|
|
5299
|
+
e.emit("select", nn(S), S, ne);
|
|
5300
|
+
}, Vt = (S) => {
|
|
5301
|
+
switch (typeof S != "object" && (S = Ge(S)), n.value) {
|
|
5302
5302
|
case "single":
|
|
5303
5303
|
ln();
|
|
5304
5304
|
break;
|
|
5305
5305
|
case "tags":
|
|
5306
5306
|
case "multiple":
|
|
5307
|
-
Se(Array.isArray(
|
|
5307
|
+
Se(Array.isArray(S) ? z.value.filter((j) => S.map((ue) => ue[A.value]).indexOf(j[A.value]) === -1) : z.value.filter((j) => j[A.value] != S[A.value]));
|
|
5308
5308
|
break;
|
|
5309
5309
|
}
|
|
5310
|
-
e.emit("deselect", nn(
|
|
5311
|
-
}, nn = (
|
|
5312
|
-
Vt(
|
|
5313
|
-
}, ko = (
|
|
5310
|
+
e.emit("deselect", nn(S), S, ne);
|
|
5311
|
+
}, nn = (S) => w.value ? S : S[A.value], on = (S) => {
|
|
5312
|
+
Vt(S);
|
|
5313
|
+
}, ko = (S, j) => {
|
|
5314
5314
|
if (j.button !== 0) {
|
|
5315
5315
|
j.preventDefault();
|
|
5316
5316
|
return;
|
|
5317
5317
|
}
|
|
5318
|
-
on(
|
|
5318
|
+
on(S);
|
|
5319
5319
|
}, ln = () => {
|
|
5320
5320
|
Se(wo.value), e.emit("clear", ne);
|
|
5321
|
-
}, Ke = (
|
|
5322
|
-
if (
|
|
5323
|
-
return n.value === "single" ? !1 : Oo(
|
|
5321
|
+
}, Ke = (S) => {
|
|
5322
|
+
if (S.group !== void 0)
|
|
5323
|
+
return n.value === "single" ? !1 : Oo(S[L.value]) && S[L.value].length;
|
|
5324
5324
|
switch (n.value) {
|
|
5325
5325
|
case "single":
|
|
5326
|
-
return !Fe(z.value) && z.value[
|
|
5326
|
+
return !Fe(z.value) && z.value[A.value] == S[A.value];
|
|
5327
5327
|
case "tags":
|
|
5328
5328
|
case "multiple":
|
|
5329
|
-
return !Fe(z.value) && z.value.map((j) => j[
|
|
5329
|
+
return !Fe(z.value) && z.value.map((j) => j[A.value]).indexOf(S[A.value]) !== -1;
|
|
5330
5330
|
}
|
|
5331
|
-
}, ds = (
|
|
5332
|
-
if (!ds(
|
|
5333
|
-
if (U && U.value && !Ke(
|
|
5334
|
-
Ie.value = !0,
|
|
5331
|
+
}, ds = (S) => S[y.value] === !0, ps = () => K === void 0 || K.value === -1 || !cs.value && K.value > 0 ? !1 : z.value.length >= K.value, So = (S) => {
|
|
5332
|
+
if (!ds(S)) {
|
|
5333
|
+
if (U && U.value && !Ke(S) && S.__CREATE__ && (S = { ...S }, delete S.__CREATE__, S = U.value(S, ne), S instanceof Promise)) {
|
|
5334
|
+
Ie.value = !0, S.then((j) => {
|
|
5335
5335
|
Ie.value = !1, rn(j);
|
|
5336
5336
|
});
|
|
5337
5337
|
return;
|
|
5338
5338
|
}
|
|
5339
|
-
rn(
|
|
5339
|
+
rn(S);
|
|
5340
5340
|
}
|
|
5341
|
-
}, rn = (
|
|
5342
|
-
switch (
|
|
5341
|
+
}, rn = (S) => {
|
|
5342
|
+
switch (S.__CREATE__ && (S = { ...S }, delete S.__CREATE__), n.value) {
|
|
5343
5343
|
case "single":
|
|
5344
|
-
if (
|
|
5345
|
-
Z.value && Vt(
|
|
5344
|
+
if (S && Ke(S)) {
|
|
5345
|
+
Z.value && Vt(S), G.value && (nt(), ot());
|
|
5346
5346
|
return;
|
|
5347
5347
|
}
|
|
5348
|
-
|
|
5348
|
+
S && vs(S), P.value && he(), N.value && (nt(), ot()), S && Ht(S);
|
|
5349
5349
|
break;
|
|
5350
5350
|
case "multiple":
|
|
5351
|
-
if (
|
|
5352
|
-
Vt(
|
|
5351
|
+
if (S && Ke(S)) {
|
|
5352
|
+
Vt(S), G.value && (nt(), ot());
|
|
5353
5353
|
return;
|
|
5354
5354
|
}
|
|
5355
5355
|
if (ps()) {
|
|
5356
5356
|
e.emit("max", ne);
|
|
5357
5357
|
return;
|
|
5358
5358
|
}
|
|
5359
|
-
|
|
5359
|
+
S && (vs(S), Ht(S)), P.value && he(), l.value && nt(), N.value && ot();
|
|
5360
5360
|
break;
|
|
5361
5361
|
case "tags":
|
|
5362
|
-
if (
|
|
5363
|
-
Vt(
|
|
5362
|
+
if (S && Ke(S)) {
|
|
5363
|
+
Vt(S), G.value && (nt(), ot());
|
|
5364
5364
|
return;
|
|
5365
5365
|
}
|
|
5366
5366
|
if (ps()) {
|
|
5367
5367
|
e.emit("max", ne);
|
|
5368
5368
|
return;
|
|
5369
5369
|
}
|
|
5370
|
-
|
|
5370
|
+
S && vs(S), P.value && he(), S && Ht(S), l.value && nt(), N.value && ot();
|
|
5371
5371
|
break;
|
|
5372
5372
|
}
|
|
5373
5373
|
N.value || $a();
|
|
5374
|
-
}, Ao = (
|
|
5375
|
-
if (!(ds(
|
|
5374
|
+
}, Ao = (S) => {
|
|
5375
|
+
if (!(ds(S) || n.value === "single" || !k.value)) {
|
|
5376
5376
|
switch (n.value) {
|
|
5377
5377
|
case "multiple":
|
|
5378
5378
|
case "tags":
|
|
5379
|
-
To(
|
|
5380
|
-
|
|
5379
|
+
To(S[L.value]) ? Vt(S[L.value]) : Ht(
|
|
5380
|
+
S[L.value].filter((j) => z.value.map((ue) => ue[A.value]).indexOf(j[A.value]) === -1).filter((j) => !j[y.value]).filter((j, ue) => z.value.length + 1 + ue <= K.value || K.value === -1)
|
|
5381
5381
|
), l.value && Gt.value && Xt(us.value.filter((j) => !j[y.value])[Gt.value.index]);
|
|
5382
5382
|
break;
|
|
5383
5383
|
}
|
|
5384
5384
|
N.value && rs();
|
|
5385
5385
|
}
|
|
5386
|
-
}, vs = (
|
|
5387
|
-
Ge(A
|
|
5386
|
+
}, vs = (S) => {
|
|
5387
|
+
Ge(S[A.value]) === void 0 && Qt.value && (e.emit("tag", S[A.value], ne), e.emit("option", S[A.value], ne), e.emit("create", S[A.value], ne), Sa.value && Lo(S), he());
|
|
5388
5388
|
}, Mo = () => {
|
|
5389
|
-
n.value !== "single" && Ht(lt.value.filter((
|
|
5390
|
-
}, To = (
|
|
5391
|
-
it.value.push(
|
|
5392
|
-
}, Po = (
|
|
5389
|
+
n.value !== "single" && Ht(lt.value.filter((S) => !S.disabled && !Ke(S)));
|
|
5390
|
+
}, To = (S) => S.find((j) => !Ke(j) && !j[y.value]) === void 0, Oo = (S) => S.find((j) => !Ke(j)) === void 0, Ge = (S) => Le.value[Le.value.map((j) => String(j[A.value])).indexOf(String(S))], Eo = (S) => Le.value.findIndex((j) => wt.value.some((ue) => (parseInt(j[ue]) == j[ue] ? parseInt(j[ue]) : j[ue]) === (parseInt(S) == S ? parseInt(S) : S))), Io = (S) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && Ke(S), Lo = (S) => {
|
|
5391
|
+
it.value.push(S);
|
|
5392
|
+
}, Po = (S) => O.value ? S.filter(
|
|
5393
5393
|
(j) => X.value ? j.__VISIBLE__.length : j[L.value].length
|
|
5394
|
-
) :
|
|
5395
|
-
let ue =
|
|
5394
|
+
) : S.filter((j) => X.value ? j.__VISIBLE__.length : !0), fs = (S, j = !0) => {
|
|
5395
|
+
let ue = S;
|
|
5396
5396
|
if (X.value && m.value) {
|
|
5397
5397
|
let ge = le.value;
|
|
5398
5398
|
ge || (ge = ($t, cn, Q4) => wt.value.some((Vo) => {
|
|
@@ -5401,17 +5401,17 @@ function g7(t, e, a) {
|
|
|
5401
5401
|
})), ue = ue.filter(($t) => ge($t, X.value, ne));
|
|
5402
5402
|
}
|
|
5403
5403
|
return l.value && j && (ue = ue.filter((ge) => !Io(ge))), ue;
|
|
5404
|
-
}, hs = (
|
|
5405
|
-
let j =
|
|
5404
|
+
}, hs = (S) => {
|
|
5405
|
+
let j = S;
|
|
5406
5406
|
return h7(j) && (j = Object.keys(j).map((ue) => {
|
|
5407
5407
|
let ge = j[ue];
|
|
5408
|
-
return { [
|
|
5409
|
-
})), j = j.map((ue) => typeof ue == "object" ? ue : { [
|
|
5408
|
+
return { [A.value]: ue, [wt.value[0]]: ge, [u.value]: ge };
|
|
5409
|
+
})), j = j.map((ue) => typeof ue == "object" ? ue : { [A.value]: ue, [wt.value[0]]: ue, [u.value]: ue }), j;
|
|
5410
5410
|
}, Ma = () => {
|
|
5411
5411
|
Fe(H.value) || (z.value = Oa(H.value));
|
|
5412
|
-
}, Ta = (
|
|
5412
|
+
}, Ta = (S) => (Ie.value = !0, new Promise((j, ue) => {
|
|
5413
5413
|
s.value(X.value, ne).then((ge) => {
|
|
5414
|
-
Ue.value = ge || [], typeof
|
|
5414
|
+
Ue.value = ge || [], typeof S == "function" && S(ge), Ie.value = !1;
|
|
5415
5415
|
}).catch((ge) => {
|
|
5416
5416
|
console.error(ge), Ue.value = [], Ie.value = !1;
|
|
5417
5417
|
}).finally(() => {
|
|
@@ -5420,34 +5420,34 @@ function g7(t, e, a) {
|
|
|
5420
5420
|
})), ms = () => {
|
|
5421
5421
|
if (cs.value)
|
|
5422
5422
|
if (n.value === "single") {
|
|
5423
|
-
let
|
|
5424
|
-
if (
|
|
5425
|
-
let j =
|
|
5423
|
+
let S = Ge(z.value[A.value]);
|
|
5424
|
+
if (S !== void 0) {
|
|
5425
|
+
let j = S[u.value];
|
|
5426
5426
|
z.value[u.value] = j, w.value && (H.value[u.value] = j);
|
|
5427
5427
|
}
|
|
5428
5428
|
} else
|
|
5429
|
-
z.value.forEach((
|
|
5430
|
-
let ue = Ge(z.value[j][
|
|
5429
|
+
z.value.forEach((S, j) => {
|
|
5430
|
+
let ue = Ge(z.value[j][A.value]);
|
|
5431
5431
|
if (ue !== void 0) {
|
|
5432
5432
|
let ge = ue[u.value];
|
|
5433
5433
|
z.value[j][u.value] = ge, w.value && (H.value[j][u.value] = ge);
|
|
5434
5434
|
}
|
|
5435
5435
|
});
|
|
5436
|
-
}, Ho = (
|
|
5437
|
-
Ta(
|
|
5438
|
-
}, Oa = (
|
|
5439
|
-
[u.value]:
|
|
5440
|
-
[
|
|
5441
|
-
[wt.value[0]]:
|
|
5442
|
-
} : {}) :
|
|
5436
|
+
}, Ho = (S) => {
|
|
5437
|
+
Ta(S);
|
|
5438
|
+
}, Oa = (S) => Fe(S) ? n.value === "single" ? {} : [] : w.value ? S : n.value === "single" ? Ge(S) || (D.value ? {
|
|
5439
|
+
[u.value]: S,
|
|
5440
|
+
[A.value]: S,
|
|
5441
|
+
[wt.value[0]]: S
|
|
5442
|
+
} : {}) : S.filter((j) => !!Ge(j) || D.value).map((j) => Ge(j) || {
|
|
5443
5443
|
[u.value]: j,
|
|
5444
|
-
[
|
|
5444
|
+
[A.value]: j,
|
|
5445
5445
|
[wt.value[0]]: j
|
|
5446
5446
|
}), un = () => {
|
|
5447
|
-
je.value = ce(X, (
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
(
|
|
5447
|
+
je.value = ce(X, (S) => {
|
|
5448
|
+
S.length < b.value || !S && b.value !== 0 || (Ie.value = !0, I.value && (Ue.value = []), setTimeout(() => {
|
|
5449
|
+
S == X.value && s.value(X.value, ne).then((j) => {
|
|
5450
|
+
(S == X.value || !X.value) && (Ue.value = j, Gt.value = lt.value.filter((ue) => ue[y.value] !== !0)[0] || null, Ie.value = !1);
|
|
5451
5451
|
}).catch(
|
|
5452
5452
|
/* istanbul ignore next */
|
|
5453
5453
|
(j) => {
|
|
@@ -5459,26 +5459,26 @@ function g7(t, e, a) {
|
|
|
5459
5459
|
};
|
|
5460
5460
|
if (n.value !== "single" && !Fe(H.value) && !Array.isArray(H.value))
|
|
5461
5461
|
throw new Error(`v-model must be an array when using "${n.value}" mode`);
|
|
5462
|
-
return s && typeof s.value == "function" ? $.value ? Ta(Ma) : w.value == !0 && Ma() : (Ue.value = s.value, Ma()), g.value > -1 && un(), ce(g, (
|
|
5463
|
-
je.value && je.value(),
|
|
5464
|
-
}), ce(H, (
|
|
5465
|
-
if (Fe(
|
|
5466
|
-
Se(Oa(
|
|
5462
|
+
return s && typeof s.value == "function" ? $.value ? Ta(Ma) : w.value == !0 && Ma() : (Ue.value = s.value, Ma()), g.value > -1 && un(), ce(g, (S, j) => {
|
|
5463
|
+
je.value && je.value(), S >= 0 && un();
|
|
5464
|
+
}), ce(H, (S) => {
|
|
5465
|
+
if (Fe(S)) {
|
|
5466
|
+
Se(Oa(S), !1);
|
|
5467
5467
|
return;
|
|
5468
5468
|
}
|
|
5469
5469
|
switch (n.value) {
|
|
5470
5470
|
case "single":
|
|
5471
|
-
(w.value ? A
|
|
5471
|
+
(w.value ? S[A.value] != z.value[A.value] : S != z.value[A.value]) && Se(Oa(S), !1);
|
|
5472
5472
|
break;
|
|
5473
5473
|
case "multiple":
|
|
5474
5474
|
case "tags":
|
|
5475
|
-
m7(w.value ?
|
|
5475
|
+
m7(w.value ? S.map((j) => j[A.value]) : S, z.value.map((j) => j[A.value])) || Se(Oa(S), !1);
|
|
5476
5476
|
break;
|
|
5477
5477
|
}
|
|
5478
|
-
}, { deep: !0 }), ce(s, (
|
|
5479
|
-
typeof t.options == "function" ? $.value && (!j ||
|
|
5480
|
-
}), ce(u, ms), ce(o, (
|
|
5481
|
-
xe.value = ee.value &&
|
|
5478
|
+
}, { deep: !0 }), ce(s, (S, j) => {
|
|
5479
|
+
typeof t.options == "function" ? $.value && (!j || S && S.toString() !== j.toString()) && Ta() : (Ue.value = t.options, Object.keys(z.value).length || Ma(), ms());
|
|
5480
|
+
}), ce(u, ms), ce(o, (S, j) => {
|
|
5481
|
+
xe.value = ee.value && S === -1 ? 10 : S;
|
|
5482
5482
|
}), {
|
|
5483
5483
|
pfo: Jt,
|
|
5484
5484
|
fo: lt,
|
|
@@ -5524,7 +5524,7 @@ function C7(t, e, a) {
|
|
|
5524
5524
|
groupSelect: d,
|
|
5525
5525
|
disabledProp: u,
|
|
5526
5526
|
groupOptions: c
|
|
5527
|
-
} = Ee(t), v = a.fo, h = a.fg, w = a.handleOptionClick, _ = a.handleGroupClick, g = a.search, $ = a.pointer, b = a.setPointer, m = a.clearPointer, I = a.multiselect, P = a.isOpen,
|
|
5527
|
+
} = Ee(t), v = a.fo, h = a.fg, w = a.handleOptionClick, _ = a.handleGroupClick, g = a.search, $ = a.pointer, b = a.setPointer, m = a.clearPointer, I = a.multiselect, P = a.isOpen, A = M(() => v.value.filter((H) => !H[u.value])), D = M(() => h.value.filter((H) => !H[u.value])), R = M(() => r.value !== "single" && d.value), Z = M(() => $.value && $.value.group), K = M(() => ne($.value)), te = M(() => {
|
|
5528
5528
|
const H = Z.value ? $.value : (
|
|
5529
5529
|
/* istanbul ignore next */
|
|
5530
5530
|
ne($.value)
|
|
@@ -5541,34 +5541,34 @@ function C7(t, e, a) {
|
|
|
5541
5541
|
const H = ne($.value).__VISIBLE__.filter((X) => !X[u.value]);
|
|
5542
5542
|
return H[H.map((X) => X[s.value]).indexOf($.value[s.value]) + 1];
|
|
5543
5543
|
}), L = M(() => [...te.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), O = M(() => [...G.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), k = (H) => $.value && (!H.group && $.value[s.value] === H[s.value] || H.group !== void 0 && $.value[o.value] === H[o.value]) ? !0 : void 0, U = () => {
|
|
5544
|
-
b(
|
|
5544
|
+
b(A.value[0] || null);
|
|
5545
5545
|
}, y = () => {
|
|
5546
5546
|
!$.value || $.value[u.value] === !0 || (Z.value ? _($.value) : w($.value));
|
|
5547
5547
|
}, V = () => {
|
|
5548
5548
|
if ($.value === null)
|
|
5549
|
-
b((l.value && R.value ? D.value[0].__CREATE__ ?
|
|
5549
|
+
b((l.value && R.value ? D.value[0].__CREATE__ ? A.value[0] : D.value[0] : A.value[0]) || null);
|
|
5550
5550
|
else if (l.value && R.value) {
|
|
5551
5551
|
let H = Z.value ? ie.value : ee.value;
|
|
5552
5552
|
H === void 0 && (H = N.value, H.__CREATE__ && (H = H[c.value][0])), b(H || /* istanbul ignore next */
|
|
5553
5553
|
null);
|
|
5554
5554
|
} else {
|
|
5555
|
-
let H =
|
|
5556
|
-
|
|
5555
|
+
let H = A.value.map((X) => X[s.value]).indexOf($.value[s.value]) + 1;
|
|
5556
|
+
A.value.length <= H && (H = 0), b(A.value[H] || null);
|
|
5557
5557
|
}
|
|
5558
5558
|
$e(() => {
|
|
5559
5559
|
z();
|
|
5560
5560
|
});
|
|
5561
5561
|
}, le = () => {
|
|
5562
5562
|
if ($.value === null) {
|
|
5563
|
-
let H =
|
|
5563
|
+
let H = A.value[A.value.length - 1];
|
|
5564
5564
|
l.value && R.value && (H = O.value, H === void 0 && (H = G.value)), b(H || null);
|
|
5565
5565
|
} else if (l.value && R.value) {
|
|
5566
5566
|
let H = Z.value ? L.value : se.value;
|
|
5567
5567
|
H === void 0 && (H = Z.value ? te.value : K.value, H.__CREATE__ && (H = L.value, H === void 0 && (H = te.value))), b(H || /* istanbul ignore next */
|
|
5568
5568
|
null);
|
|
5569
5569
|
} else {
|
|
5570
|
-
let H =
|
|
5571
|
-
H < 0 && (H =
|
|
5570
|
+
let H = A.value.map((X) => X[s.value]).indexOf($.value[s.value]) - 1;
|
|
5571
|
+
H < 0 && (H = A.value.length - 1), b(A.value[H] || null);
|
|
5572
5572
|
}
|
|
5573
5573
|
$e(() => {
|
|
5574
5574
|
z();
|
|
@@ -5961,12 +5961,12 @@ function K7(t, e) {
|
|
|
5961
5961
|
}
|
|
5962
5962
|
function qs(t, e) {
|
|
5963
5963
|
e === void 0 && (e = {});
|
|
5964
|
-
var a = e, s = a.placement, n = s === void 0 ? t.placement : s, i = a.strategy, o = i === void 0 ? t.strategy : i, l = a.boundary, r = l === void 0 ? S7 : l, d = a.rootBoundary, u = d === void 0 ? co : d, c = a.elementContext, v = c === void 0 ? oa : c, h = a.altBoundary, w = h === void 0 ? !1 : h, _ = a.padding, g = _ === void 0 ? 0 : _, $ = x7(typeof g != "number" ? g : K7(g, os)), b = v === oa ? A7 : oa, m = t.rects.popper, I = t.elements[w ? b : v], P = Y7(Et(I) ? I : I.contextElement || _t(t.elements.popper), r, u, o),
|
|
5965
|
-
reference:
|
|
5964
|
+
var a = e, s = a.placement, n = s === void 0 ? t.placement : s, i = a.strategy, o = i === void 0 ? t.strategy : i, l = a.boundary, r = l === void 0 ? S7 : l, d = a.rootBoundary, u = d === void 0 ? co : d, c = a.elementContext, v = c === void 0 ? oa : c, h = a.altBoundary, w = h === void 0 ? !1 : h, _ = a.padding, g = _ === void 0 ? 0 : _, $ = x7(typeof g != "number" ? g : K7(g, os)), b = v === oa ? A7 : oa, m = t.rects.popper, I = t.elements[w ? b : v], P = Y7(Et(I) ? I : I.contextElement || _t(t.elements.popper), r, u, o), A = qt(t.elements.reference), D = vo({
|
|
5965
|
+
reference: A,
|
|
5966
5966
|
element: m,
|
|
5967
5967
|
strategy: "absolute",
|
|
5968
5968
|
placement: n
|
|
5969
|
-
}), R = Ss(Object.assign({}, m, D)), Z = v === oa ? R :
|
|
5969
|
+
}), R = Ss(Object.assign({}, m, D)), Z = v === oa ? R : A, K = {
|
|
5970
5970
|
top: P.top - Z.top + $.top,
|
|
5971
5971
|
bottom: Z.bottom - P.bottom + $.bottom,
|
|
5972
5972
|
left: P.left - Z.left + $.left,
|
|
@@ -6042,8 +6042,8 @@ function G7(t) {
|
|
|
6042
6042
|
u.reset = !1, I = -1;
|
|
6043
6043
|
continue;
|
|
6044
6044
|
}
|
|
6045
|
-
var P = u.orderedModifiers[I],
|
|
6046
|
-
typeof
|
|
6045
|
+
var P = u.orderedModifiers[I], A = P.fn, D = P.options, R = D === void 0 ? {} : D, Z = P.name;
|
|
6046
|
+
typeof A == "function" && (u = A({
|
|
6047
6047
|
state: u,
|
|
6048
6048
|
options: R,
|
|
6049
6049
|
name: Z,
|
|
@@ -6078,9 +6078,9 @@ function G7(t) {
|
|
|
6078
6078
|
name: $,
|
|
6079
6079
|
instance: h,
|
|
6080
6080
|
options: m
|
|
6081
|
-
}),
|
|
6081
|
+
}), A = function() {
|
|
6082
6082
|
};
|
|
6083
|
-
c.push(P ||
|
|
6083
|
+
c.push(P || A);
|
|
6084
6084
|
}
|
|
6085
6085
|
});
|
|
6086
6086
|
}
|
|
@@ -6153,20 +6153,20 @@ function Tn(t) {
|
|
|
6153
6153
|
h = g.x, _ = g.y;
|
|
6154
6154
|
var $ = o.hasOwnProperty("x"), b = o.hasOwnProperty("y"), m = Xe, I = Ne, P = window;
|
|
6155
6155
|
if (d) {
|
|
6156
|
-
var
|
|
6157
|
-
if (
|
|
6156
|
+
var A = ns(a), D = "clientHeight", R = "clientWidth";
|
|
6157
|
+
if (A === Oe(a) && (A = _t(a), at(A).position !== "static" && l === "absolute" && (D = "scrollHeight", R = "scrollWidth")), A = A, n === Ne || (n === Xe || n === ht) && i === va) {
|
|
6158
6158
|
I = Ye;
|
|
6159
|
-
var Z = c &&
|
|
6159
|
+
var Z = c && A === P && P.visualViewport ? P.visualViewport.height : (
|
|
6160
6160
|
// $FlowFixMe[prop-missing]
|
|
6161
|
-
|
|
6161
|
+
A[D]
|
|
6162
6162
|
);
|
|
6163
6163
|
_ -= Z - s.height, _ *= r ? 1 : -1;
|
|
6164
6164
|
}
|
|
6165
6165
|
if (n === Xe || (n === Ne || n === Ye) && i === va) {
|
|
6166
6166
|
m = ht;
|
|
6167
|
-
var K = c &&
|
|
6167
|
+
var K = c && A === P && P.visualViewport ? P.visualViewport.width : (
|
|
6168
6168
|
// $FlowFixMe[prop-missing]
|
|
6169
|
-
|
|
6169
|
+
A[R]
|
|
6170
6170
|
);
|
|
6171
6171
|
h -= K - s.width, h *= r ? 1 : -1;
|
|
6172
6172
|
}
|
|
@@ -6276,7 +6276,7 @@ function pp(t) {
|
|
|
6276
6276
|
rootBoundary: d,
|
|
6277
6277
|
padding: c,
|
|
6278
6278
|
altBoundary: u
|
|
6279
|
-
}), $ = dt(e.placement), b = xt(e.placement), m = !b, I = po($), P = cp(I),
|
|
6279
|
+
}), $ = dt(e.placement), b = xt(e.placement), m = !b, I = po($), P = cp(I), A = e.modifiersData.popperOffsets, D = e.rects.reference, R = e.rects.popper, Z = typeof _ == "function" ? _(Object.assign({}, e.rects, {
|
|
6280
6280
|
placement: e.placement
|
|
6281
6281
|
})) : _, K = typeof Z == "number" ? {
|
|
6282
6282
|
mainAxis: Z,
|
|
@@ -6288,17 +6288,17 @@ function pp(t) {
|
|
|
6288
6288
|
x: 0,
|
|
6289
6289
|
y: 0
|
|
6290
6290
|
};
|
|
6291
|
-
if (
|
|
6291
|
+
if (A) {
|
|
6292
6292
|
if (i) {
|
|
6293
|
-
var G, ie = I === "y" ? Ne : Xe, se = I === "y" ? Ye : ht, ee = I === "y" ? "height" : "width", L =
|
|
6293
|
+
var G, ie = I === "y" ? Ne : Xe, se = I === "y" ? Ye : ht, ee = I === "y" ? "height" : "width", L = A[I], O = L + g[ie], k = L - g[se], U = h ? -R[ee] / 2 : 0, y = b === Yt ? D[ee] : R[ee], V = b === Yt ? -R[ee] : -D[ee], le = e.elements.arrow, ne = h && le ? ro(le) : {
|
|
6294
6294
|
width: 0,
|
|
6295
6295
|
height: 0
|
|
6296
6296
|
}, z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : fo(), H = z[ie], X = z[se], he = Va(0, D[ee], ne[ee]), Se = m ? D[ee] / 2 - U - he - H - K.mainAxis : y - he - H - K.mainAxis, Gt = m ? -D[ee] / 2 + U + he + X + K.mainAxis : V + he + X + K.mainAxis, Xt = e.elements.arrow && ns(e.elements.arrow), nt = Xt ? I === "y" ? Xt.clientTop || 0 : Xt.clientLeft || 0 : 0, $a = (G = te == null ? void 0 : te[I]) != null ? G : 0, rs = L + Se - $a - nt, ot = L + Gt - $a, ka = Va(h ? Wa(O, rs) : O, L, h ? At(k, ot) : k);
|
|
6297
|
-
|
|
6297
|
+
A[I] = ka, N[I] = ka - L;
|
|
6298
6298
|
}
|
|
6299
6299
|
if (l) {
|
|
6300
|
-
var it, Ue = I === "x" ? Ne : Xe, Ie = I === "x" ? Ye : ht, je =
|
|
6301
|
-
|
|
6300
|
+
var it, Ue = I === "x" ? Ne : Xe, Ie = I === "x" ? Ye : ht, je = A[P], xe = P === "y" ? "height" : "width", Qt = je + g[Ue], Sa = je - g[Ie], Le = [Ne, Xe].indexOf($) !== -1, Jt = (it = te == null ? void 0 : te[P]) != null ? it : 0, lt = Le ? Qt : je - D[xe] - R[xe] - Jt + K.altAxis, bt = Le ? je + D[xe] + R[xe] - Jt - K.altAxis : Sa, Aa = h && Le ? dp(lt, je, bt) : Va(h ? lt : Qt, je, h ? bt : Sa);
|
|
6301
|
+
A[P] = Aa, N[P] = Aa - je;
|
|
6302
6302
|
}
|
|
6303
6303
|
e.modifiersData[s] = N;
|
|
6304
6304
|
}
|
|
@@ -6367,7 +6367,7 @@ function Cp(t) {
|
|
|
6367
6367
|
flipVariations: w,
|
|
6368
6368
|
allowedAutoPlacements: _
|
|
6369
6369
|
}) : z);
|
|
6370
|
-
}, []), P = e.rects.reference,
|
|
6370
|
+
}, []), P = e.rects.reference, A = e.rects.popper, D = /* @__PURE__ */ new Map(), R = !0, Z = I[0], K = 0; K < I.length; K++) {
|
|
6371
6371
|
var te = I[K], N = dt(te), G = xt(te) === Yt, ie = [Ne, Ye].indexOf(N) >= 0, se = ie ? "width" : "height", ee = qs(e, {
|
|
6372
6372
|
placement: te,
|
|
6373
6373
|
boundary: u,
|
|
@@ -6375,7 +6375,7 @@ function Cp(t) {
|
|
|
6375
6375
|
altBoundary: v,
|
|
6376
6376
|
padding: d
|
|
6377
6377
|
}), L = ie ? G ? ht : Xe : G ? Ye : Ne;
|
|
6378
|
-
P[se] >
|
|
6378
|
+
P[se] > A[se] && (L = Da(L));
|
|
6379
6379
|
var O = Da(L), k = [];
|
|
6380
6380
|
if (i && k.push(ee[N] <= 0), l && k.push(ee[L] <= 0, ee[O] <= 0), k.every(function(ne) {
|
|
6381
6381
|
return ne;
|
|
@@ -6539,7 +6539,7 @@ function wp(t, e, a) {
|
|
|
6539
6539
|
createTag: c,
|
|
6540
6540
|
createOption: v,
|
|
6541
6541
|
reverse: h
|
|
6542
|
-
} = Ee(t), w = Lt().proxy, _ = a.iv, g = a.update, $ = a.deselect, b = a.search, m = a.setPointer, I = a.selectPointer, P = a.backwardPointer,
|
|
6542
|
+
} = Ee(t), w = Lt().proxy, _ = a.iv, g = a.update, $ = a.deselect, b = a.search, m = a.setPointer, I = a.selectPointer, P = a.backwardPointer, A = a.forwardPointer, D = a.multiselect, R = a.wrapper, Z = a.tags, K = a.isOpen, te = a.open, N = a.blur, G = a.fo, ie = M(() => c.value || v.value || !1), se = M(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ee = () => {
|
|
6543
6543
|
s.value === "tags" && !l.value && ie.value && o.value && !d.value && m(G.value[G.value.map((k) => k[r.value]).indexOf(b.value)]);
|
|
6544
6544
|
};
|
|
6545
6545
|
return {
|
|
@@ -6593,7 +6593,7 @@ function wp(t, e, a) {
|
|
|
6593
6593
|
case "ArrowDown":
|
|
6594
6594
|
if (k.preventDefault(), !l.value)
|
|
6595
6595
|
return;
|
|
6596
|
-
K.value || te(),
|
|
6596
|
+
K.value || te(), A();
|
|
6597
6597
|
break;
|
|
6598
6598
|
case "ArrowLeft":
|
|
6599
6599
|
if (o.value && Z.value && Z.value.querySelector("input").selectionStart || k.shiftKey || s.value !== "tags" || !_.value || !_.value.length)
|
|
@@ -6711,8 +6711,8 @@ function $p(t, e, a) {
|
|
|
6711
6711
|
},
|
|
6712
6712
|
groupOptions: m.groupOptions,
|
|
6713
6713
|
option: (I, P) => {
|
|
6714
|
-
let
|
|
6715
|
-
return r(I) ?
|
|
6714
|
+
let A = [m.option];
|
|
6715
|
+
return r(I) ? A.push(d(I) ? m.optionSelectedPointed : m.optionPointed) : d(I) ? A.push(u(I) ? m.optionSelectedDisabled : m.optionSelected) : (u(I) || P && u(P)) && A.push(m.optionDisabled), A;
|
|
6716
6716
|
},
|
|
6717
6717
|
noOptions: m.noOptions,
|
|
6718
6718
|
noResults: m.noResults,
|
|
@@ -6774,7 +6774,7 @@ function Sp(t, e, a) {
|
|
|
6774
6774
|
}), m = M(() => s.value), I = M(() => l.value !== "single"), P = M(() => {
|
|
6775
6775
|
let N = "";
|
|
6776
6776
|
return l.value === "single" && h.value && (N += v.value[o.value]), l.value === "multiple" && h.value && (N += w.value), l.value === "tags" && h.value && (N += v.value.map((G) => G[o.value]).join(", ")), N;
|
|
6777
|
-
}),
|
|
6777
|
+
}), A = M(() => {
|
|
6778
6778
|
let N = { ...d.value };
|
|
6779
6779
|
return u.value && (N["aria-labelledby"] = N["aria-labelledby"] ? `${g.value} ${N["aria-labelledby"]}` : g.value, P.value && N["aria-label"] && (N["aria-label"] = `${P.value}, ${N["aria-label"]}`)), N;
|
|
6780
6780
|
}), D = (N) => {
|
|
@@ -6796,7 +6796,7 @@ function Sp(t, e, a) {
|
|
|
6796
6796
|
_.value = N ? N.innerText : null;
|
|
6797
6797
|
}
|
|
6798
6798
|
}), {
|
|
6799
|
-
arias:
|
|
6799
|
+
arias: A,
|
|
6800
6800
|
ariaLabel: P,
|
|
6801
6801
|
ariaAssist: g,
|
|
6802
6802
|
ariaControls: $,
|
|
@@ -8132,7 +8132,7 @@ const bv = { class: "ao-comments__header" }, wv = ["onSubmit"], $v = ["placehold
|
|
|
8132
8132
|
emits: ["createComment", "updateComment", "removeComment"],
|
|
8133
8133
|
setup(t, { emit: e }) {
|
|
8134
8134
|
const a = t, s = M(() => (a.comments || []).toSorted(
|
|
8135
|
-
(
|
|
8135
|
+
(A, D) => t0(ca(A.createdAt), ca(D.createdAt))
|
|
8136
8136
|
)), n = (P) => a.users.find((D) => D.id === P), i = q();
|
|
8137
8137
|
$e(() => {
|
|
8138
8138
|
i.value && (i.value.scrollTop = i.value.scrollHeight);
|
|
@@ -8148,26 +8148,26 @@ const bv = { class: "ao-comments__header" }, wv = ["onSubmit"], $v = ["placehold
|
|
|
8148
8148
|
const P = o.value.trim();
|
|
8149
8149
|
if (!P)
|
|
8150
8150
|
return;
|
|
8151
|
-
const
|
|
8152
|
-
|
|
8153
|
-
}, d = (P,
|
|
8151
|
+
const A = Array.from(P.matchAll(/@(\w+)/g)).map((R) => R[1]), D = c.value.filter((R) => A.includes(R.name)).map((R) => R.id);
|
|
8152
|
+
e("createComment", { authorId: a.userId, message: P, mentionedUserIds: D }), o.value = "";
|
|
8153
|
+
}, d = (P, A) => {
|
|
8154
8154
|
e("updateComment", {
|
|
8155
8155
|
id: P,
|
|
8156
|
-
message:
|
|
8156
|
+
message: A
|
|
8157
8157
|
});
|
|
8158
8158
|
}, u = (P) => {
|
|
8159
8159
|
e("removeComment", { id: P });
|
|
8160
8160
|
}, c = M(
|
|
8161
8161
|
() => a.users.filter((P) => P.firstName || P.lastName).map(
|
|
8162
8162
|
(P) => {
|
|
8163
|
-
const
|
|
8164
|
-
return { id: P.id, name:
|
|
8163
|
+
const A = [P.firstName, P.lastName].filter(Boolean).join("_");
|
|
8164
|
+
return { id: P.id, name: A };
|
|
8165
8165
|
}
|
|
8166
8166
|
)
|
|
8167
8167
|
), v = q(""), h = q(!1), w = q({ top: 0, left: 0 }), _ = q(), g = (P) => {
|
|
8168
|
-
const
|
|
8168
|
+
const A = P.target, D = A.selectionStart, Z = A.value.slice(0, D).match(/@(\w*)$/);
|
|
8169
8169
|
Z ? (v.value = Z[1], h.value = !0, $e(() => {
|
|
8170
|
-
const { top: K, left: te } = I(
|
|
8170
|
+
const { top: K, left: te } = I(A, D);
|
|
8171
8171
|
w.value = { top: K, left: te };
|
|
8172
8172
|
})) : h.value = !1;
|
|
8173
8173
|
}, $ = (P) => {
|
|
@@ -8177,15 +8177,15 @@ const bv = { class: "ao-comments__header" }, wv = ["onSubmit"], $v = ["placehold
|
|
|
8177
8177
|
(P) => P.name.toLowerCase().includes(v.value.toLowerCase())
|
|
8178
8178
|
)
|
|
8179
8179
|
), m = (P) => {
|
|
8180
|
-
const
|
|
8181
|
-
if (!
|
|
8180
|
+
const A = _.value;
|
|
8181
|
+
if (!A)
|
|
8182
8182
|
return;
|
|
8183
|
-
const D =
|
|
8183
|
+
const D = A.selectionStart, R = o.value, Z = R.slice(0, D).replace(/@(\w*)$/, `@${P} `), K = R.slice(D);
|
|
8184
8184
|
o.value = Z + K, h.value = !1, $e(() => {
|
|
8185
|
-
|
|
8185
|
+
A.focus(), A.setSelectionRange(Z.length, Z.length);
|
|
8186
8186
|
});
|
|
8187
8187
|
};
|
|
8188
|
-
function I(P,
|
|
8188
|
+
function I(P, A) {
|
|
8189
8189
|
const D = document.createElement("div"), R = document.createElement("span"), Z = window.getComputedStyle(P), K = [
|
|
8190
8190
|
"boxSizing",
|
|
8191
8191
|
"width",
|
|
@@ -8217,7 +8217,7 @@ const bv = { class: "ao-comments__header" }, wv = ["onSubmit"], $v = ["placehold
|
|
|
8217
8217
|
D.style.position = "absolute", D.style.visibility = "hidden", D.style.whiteSpace = "pre-wrap", D.style.overflow = "hidden", K.forEach((O) => {
|
|
8218
8218
|
D.style[O] = Z.getPropertyValue(O);
|
|
8219
8219
|
}), D.style.width = Z.getPropertyValue("width"), D.scrollTop = P.scrollTop, D.scrollLeft = P.scrollLeft;
|
|
8220
|
-
const te = P.value.substring(0,
|
|
8220
|
+
const te = P.value.substring(0, A), N = P.value.substring(A) || ".";
|
|
8221
8221
|
D.textContent = te, R.textContent = N[0], D.appendChild(R), document.body.appendChild(D);
|
|
8222
8222
|
const G = R.getBoundingClientRect(), ie = D.getBoundingClientRect(), se = P.getBoundingClientRect(), ee = G.top - ie.top + se.top - P.scrollTop, L = G.left - ie.left + se.left - P.scrollLeft;
|
|
8223
8223
|
return document.body.removeChild(D), {
|
|
@@ -8226,7 +8226,7 @@ const bv = { class: "ao-comments__header" }, wv = ["onSubmit"], $v = ["placehold
|
|
|
8226
8226
|
left: L
|
|
8227
8227
|
};
|
|
8228
8228
|
}
|
|
8229
|
-
return (P,
|
|
8229
|
+
return (P, A) => {
|
|
8230
8230
|
var D;
|
|
8231
8231
|
return p(), C("div", {
|
|
8232
8232
|
ref_key: "commentsContainer",
|
|
@@ -8241,7 +8241,7 @@ const bv = { class: "ao-comments__header" }, wv = ["onSubmit"], $v = ["placehold
|
|
|
8241
8241
|
De(f("textarea", {
|
|
8242
8242
|
ref_key: "textareaRef",
|
|
8243
8243
|
ref: _,
|
|
8244
|
-
"onUpdate:modelValue":
|
|
8244
|
+
"onUpdate:modelValue": A[0] || (A[0] = (R) => l.value = R),
|
|
8245
8245
|
rows: "2",
|
|
8246
8246
|
class: "ao-field__textarea ao-comments__form-textarea",
|
|
8247
8247
|
placeholder: P.$t("activity.comment.label"),
|
|
@@ -8467,7 +8467,7 @@ const As = /* @__PURE__ */ x({
|
|
|
8467
8467
|
function P(y) {
|
|
8468
8468
|
D.value = [y];
|
|
8469
8469
|
}
|
|
8470
|
-
const
|
|
8470
|
+
const A = M(() => {
|
|
8471
8471
|
var y;
|
|
8472
8472
|
return ((y = a.users) == null ? void 0 : y.map((V) => ({
|
|
8473
8473
|
label: `${V.firstName} ${V.lastName}`,
|
|
@@ -8740,7 +8740,7 @@ const As = /* @__PURE__ */ x({
|
|
|
8740
8740
|
modelValue: D.value,
|
|
8741
8741
|
"onUpdate:modelValue": V[3] || (V[3] = (H) => D.value = H),
|
|
8742
8742
|
class: "ao-activity-details__assignees ao-activity-details__multiselect",
|
|
8743
|
-
options:
|
|
8743
|
+
options: A.value,
|
|
8744
8744
|
"close-on-select": !0,
|
|
8745
8745
|
searchable: !0,
|
|
8746
8746
|
placeholder: y.$t("activity.filters.assignee.placeholder"),
|
|
@@ -9255,7 +9255,7 @@ const Pf = {
|
|
|
9255
9255
|
id: L.id
|
|
9256
9256
|
}
|
|
9257
9257
|
});
|
|
9258
|
-
},
|
|
9258
|
+
}, A = (L) => {
|
|
9259
9259
|
const { id: O, ...k } = L;
|
|
9260
9260
|
e("updateItem", {
|
|
9261
9261
|
itemType: me.ACTIVITIES,
|
|
@@ -9399,7 +9399,7 @@ const Pf = {
|
|
|
9399
9399
|
milestone: l.value,
|
|
9400
9400
|
"activity-id": (y = u.value) == null ? void 0 : y.id,
|
|
9401
9401
|
onAddActivity: I,
|
|
9402
|
-
onUpdateActivity:
|
|
9402
|
+
onUpdateActivity: A,
|
|
9403
9403
|
onRemoveActivity: P
|
|
9404
9404
|
}, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) : E("", !0)
|
|
9405
9405
|
])
|
|
@@ -9418,7 +9418,7 @@ const Pf = {
|
|
|
9418
9418
|
"is-editable": !0,
|
|
9419
9419
|
users: L.users,
|
|
9420
9420
|
"onUpdate:activity": O[2] || (O[2] = (z) => {
|
|
9421
|
-
u.value &&
|
|
9421
|
+
u.value && A(z);
|
|
9422
9422
|
}),
|
|
9423
9423
|
"attachment-enabled": !1,
|
|
9424
9424
|
onClose: L.$router.back,
|
|
@@ -11098,7 +11098,7 @@ const Gh = { class: "ao-project-phase" }, Xh = {
|
|
|
11098
11098
|
important: I.important,
|
|
11099
11099
|
readonly: b.readonly,
|
|
11100
11100
|
class: Q(["ao-project-phase__milestone"]),
|
|
11101
|
-
onClick: (
|
|
11101
|
+
onClick: (A) => !b.readonly && b.$router.push({
|
|
11102
11102
|
name: J(ye).milestone,
|
|
11103
11103
|
params: { phaseId: b.phase.id, milestoneId: I.id }
|
|
11104
11104
|
}),
|
|
@@ -11418,7 +11418,7 @@ const sn = /* @__PURE__ */ W(w9, [["render", S9], ["__scopeId", "data-v-ff4e3297
|
|
|
11418
11418
|
e("deleteSubtask", O);
|
|
11419
11419
|
}, P = M(
|
|
11420
11420
|
() => n.value.flatMap((O) => O.activities)
|
|
11421
|
-
),
|
|
11421
|
+
), A = (O) => {
|
|
11422
11422
|
e("addFiles", O);
|
|
11423
11423
|
}, D = (O) => {
|
|
11424
11424
|
e("removeFile", O);
|
|
@@ -11534,7 +11534,7 @@ const sn = /* @__PURE__ */ W(w9, [["render", S9], ["__scopeId", "data-v-ff4e3297
|
|
|
11534
11534
|
onAddSubtask: b,
|
|
11535
11535
|
onUpdateSubtask: m,
|
|
11536
11536
|
onDeleteSubtask: I,
|
|
11537
|
-
onAddFiles:
|
|
11537
|
+
onAddFiles: A,
|
|
11538
11538
|
onRemoveFile: D,
|
|
11539
11539
|
onAddComment: R,
|
|
11540
11540
|
onUpdateComment: Z,
|
|
@@ -11885,7 +11885,7 @@ const X9 = { class: "ao-project-milestone" }, Q9 = { class: "ao-project-mileston
|
|
|
11885
11885
|
}, null, 8, ["title"]),
|
|
11886
11886
|
T(As, {
|
|
11887
11887
|
modelValue: $.value,
|
|
11888
|
-
"onUpdate:modelValue": I[0] || (I[0] = (
|
|
11888
|
+
"onUpdate:modelValue": I[0] || (I[0] = (A) => $.value = A),
|
|
11889
11889
|
modelModifiers: { lazy: !0 },
|
|
11890
11890
|
disabled: !m.isEditable,
|
|
11891
11891
|
class: "ao-milestone__important",
|
|
@@ -11901,7 +11901,7 @@ const X9 = { class: "ao-project-milestone" }, Q9 = { class: "ao-project-mileston
|
|
|
11901
11901
|
f("div", s4, [
|
|
11902
11902
|
f("label", n4, [
|
|
11903
11903
|
De(f("input", {
|
|
11904
|
-
"onUpdate:modelValue": I[1] || (I[1] = (
|
|
11904
|
+
"onUpdate:modelValue": I[1] || (I[1] = (A) => h.value = A),
|
|
11905
11905
|
class: "ao-milestone__field ao-milestone__date-field",
|
|
11906
11906
|
type: "date"
|
|
11907
11907
|
}, null, 512), [
|
|
@@ -11918,7 +11918,7 @@ const X9 = { class: "ao-project-milestone" }, Q9 = { class: "ao-project-mileston
|
|
|
11918
11918
|
f("label", i4, [
|
|
11919
11919
|
T(Ae, {
|
|
11920
11920
|
modelValue: g.value,
|
|
11921
|
-
"onUpdate:modelValue": I[2] || (I[2] = (
|
|
11921
|
+
"onUpdate:modelValue": I[2] || (I[2] = (A) => g.value = A),
|
|
11922
11922
|
options: _.value,
|
|
11923
11923
|
"close-on-select": !0,
|
|
11924
11924
|
searchable: !0,
|
|
@@ -11930,14 +11930,14 @@ const X9 = { class: "ao-project-milestone" }, Q9 = { class: "ao-project-mileston
|
|
|
11930
11930
|
caret: m.isEditable
|
|
11931
11931
|
}, {
|
|
11932
11932
|
tag: F(({
|
|
11933
|
-
option:
|
|
11933
|
+
option: A,
|
|
11934
11934
|
handleTagRemove: D
|
|
11935
11935
|
}) => [
|
|
11936
11936
|
T(et, {
|
|
11937
|
-
"user-name":
|
|
11938
|
-
"avatar-url":
|
|
11937
|
+
"user-name": A.label,
|
|
11938
|
+
"avatar-url": A.avatar,
|
|
11939
11939
|
"is-closable": !0,
|
|
11940
|
-
onClose: (R) => D(
|
|
11940
|
+
onClose: (R) => D(A, R)
|
|
11941
11941
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
11942
11942
|
]),
|
|
11943
11943
|
_: 1
|
|
@@ -11946,13 +11946,13 @@ const X9 = { class: "ao-project-milestone" }, Q9 = { class: "ao-project-mileston
|
|
|
11946
11946
|
]),
|
|
11947
11947
|
T(an, {
|
|
11948
11948
|
color: v.value,
|
|
11949
|
-
"onUpdate:color": I[3] || (I[3] = (
|
|
11949
|
+
"onUpdate:color": I[3] || (I[3] = (A) => v.value = A)
|
|
11950
11950
|
}, {
|
|
11951
|
-
clickable: F(({ openPicker:
|
|
11951
|
+
clickable: F(({ openPicker: A, bgColor: D }) => [
|
|
11952
11952
|
f("button", {
|
|
11953
11953
|
style: We({ background: D }),
|
|
11954
11954
|
class: "color-button",
|
|
11955
|
-
onClick: (R) => b(R,
|
|
11955
|
+
onClick: (R) => b(R, A)
|
|
11956
11956
|
}, null, 12, l4)
|
|
11957
11957
|
]),
|
|
11958
11958
|
_: 1
|
|
@@ -11967,37 +11967,37 @@ const X9 = { class: "ao-project-milestone" }, Q9 = { class: "ao-project-mileston
|
|
|
11967
11967
|
"item-key": "id",
|
|
11968
11968
|
group: "kanban"
|
|
11969
11969
|
}, m.$attrs, { onChange: c }), {
|
|
11970
|
-
item: F(({ element:
|
|
11970
|
+
item: F(({ element: A }) => {
|
|
11971
11971
|
var D, R, Z, K, te;
|
|
11972
11972
|
return [
|
|
11973
11973
|
T(Co, {
|
|
11974
|
-
id:
|
|
11975
|
-
name:
|
|
11974
|
+
id: A.id,
|
|
11975
|
+
name: A.name || A.id,
|
|
11976
11976
|
"phase-name": (D = n.value) == null ? void 0 : D.name,
|
|
11977
11977
|
"milestone-name": (R = o.value) == null ? void 0 : R.name,
|
|
11978
11978
|
"milestone-color": (Z = o.value) == null ? void 0 : Z.color,
|
|
11979
|
-
deadline:
|
|
11980
|
-
important:
|
|
11979
|
+
deadline: A.deadline,
|
|
11980
|
+
important: A.important,
|
|
11981
11981
|
users: m.users,
|
|
11982
|
-
assignee:
|
|
11983
|
-
slug:
|
|
11984
|
-
comments: (K =
|
|
11985
|
-
attachments: (te =
|
|
11986
|
-
tasks:
|
|
11982
|
+
assignee: A.assignee,
|
|
11983
|
+
slug: A.slug,
|
|
11984
|
+
comments: (K = A.comments) == null ? void 0 : K.length,
|
|
11985
|
+
attachments: (te = A.attachments) == null ? void 0 : te.length,
|
|
11986
|
+
tasks: A.tasks,
|
|
11987
11987
|
"is-editable": m.isEditable,
|
|
11988
|
-
"is-private":
|
|
11989
|
-
"is-closed": w(
|
|
11988
|
+
"is-private": A.private,
|
|
11989
|
+
"is-closed": w(A),
|
|
11990
11990
|
onClick: (N) => m.$router.push({
|
|
11991
11991
|
name: J(ye).activity,
|
|
11992
|
-
params: { milestoneId: m.milestoneId, activityId:
|
|
11992
|
+
params: { milestoneId: m.milestoneId, activityId: A.id }
|
|
11993
11993
|
}),
|
|
11994
11994
|
onUpdateActivity: u,
|
|
11995
|
-
onRemoveAssignee: () => u({ id:
|
|
11995
|
+
onRemoveAssignee: () => u({ id: A.id, assigneeId: null })
|
|
11996
11996
|
}, fa({ _: 2 }, [
|
|
11997
11997
|
m.isEditable ? {
|
|
11998
11998
|
name: "secondary",
|
|
11999
11999
|
fn: F(() => [
|
|
12000
|
-
m.isEditable &&
|
|
12000
|
+
m.isEditable && A.active ? (p(), B(re, {
|
|
12001
12001
|
key: 0,
|
|
12002
12002
|
color: "primary",
|
|
12003
12003
|
variant: "ghost",
|
|
@@ -12006,9 +12006,9 @@ const X9 = { class: "ao-project-milestone" }, Q9 = { class: "ao-project-mileston
|
|
|
12006
12006
|
"icon-position": "start",
|
|
12007
12007
|
corners: "round",
|
|
12008
12008
|
label: m.$t("archive"),
|
|
12009
|
-
onClick: ve(() => m.$emit("archiveActivity", { id:
|
|
12009
|
+
onClick: ve(() => m.$emit("archiveActivity", { id: A.id }), ["stop"])
|
|
12010
12010
|
}, null, 8, ["label", "onClick"])) : E("", !0),
|
|
12011
|
-
m.isEditable && !
|
|
12011
|
+
m.isEditable && !A.active ? (p(), B(re, {
|
|
12012
12012
|
key: 1,
|
|
12013
12013
|
color: "primary",
|
|
12014
12014
|
variant: "ghost",
|
|
@@ -12018,7 +12018,7 @@ const X9 = { class: "ao-project-milestone" }, Q9 = { class: "ao-project-mileston
|
|
|
12018
12018
|
corners: "round",
|
|
12019
12019
|
label: m.$t("feed.activity.unarchive"),
|
|
12020
12020
|
onClick: ve(
|
|
12021
|
-
() => m.$emit("unarchiveActivity", { id:
|
|
12021
|
+
() => m.$emit("unarchiveActivity", { id: A.id }),
|
|
12022
12022
|
["stop"]
|
|
12023
12023
|
)
|
|
12024
12024
|
}, null, 8, ["label", "onClick"])) : E("", !0)
|
|
@@ -12371,7 +12371,7 @@ const $4 = {
|
|
|
12371
12371
|
"is-editable": i(v),
|
|
12372
12372
|
"is-private": v.private,
|
|
12373
12373
|
"tag-type": u.tagType,
|
|
12374
|
-
onUpdateActivity: [(
|
|
12374
|
+
onUpdateActivity: [(A) => i(v) && l(A), () => i(v) && l],
|
|
12375
12375
|
onClick: () => o(v.id),
|
|
12376
12376
|
onRemoveAssignee: () => i(v) && l({ id: v.id, assigneeId: null })
|
|
12377
12377
|
}, {
|
|
@@ -12553,7 +12553,7 @@ const H4 = { class: "ao-feed" }, V4 = { class: "ao-feed__filters" }, D4 = { clas
|
|
|
12553
12553
|
e("archiveActivity", k);
|
|
12554
12554
|
}, P = (k) => {
|
|
12555
12555
|
e("unarchiveActivity", k);
|
|
12556
|
-
},
|
|
12556
|
+
}, A = (k) => {
|
|
12557
12557
|
d.value = !1, e("update:searchText", k);
|
|
12558
12558
|
}, D = (k) => {
|
|
12559
12559
|
d.value = !1, e("clear:searchText", k);
|
|
@@ -12600,7 +12600,7 @@ const H4 = { class: "ao-feed" }, V4 = { class: "ao-feed__filters" }, D4 = { clas
|
|
|
12600
12600
|
"model-value": k.searchText,
|
|
12601
12601
|
placeholder: k.$t("feed.search.placeholder"),
|
|
12602
12602
|
class: "ao-feed__search",
|
|
12603
|
-
"onUpdate:modelValue":
|
|
12603
|
+
"onUpdate:modelValue": A,
|
|
12604
12604
|
onClear: D
|
|
12605
12605
|
}, null, 8, ["model-value", "placeholder"]),
|
|
12606
12606
|
a.project ? E("", !0) : (p(), B(Ae, {
|