@instructure/platform-institutional-tagging 8.1.0 → 8.1.1
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/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Tag as Zn } from "@instructure/ui-tag";
|
|
|
4
4
|
import { Tooltip as Vt } from "@instructure/ui-tooltip";
|
|
5
5
|
import y, { createElement as wd, useState as De, useLayoutEffect as bd, useEffect as me, useMemo as he, useRef as ue, useCallback as ke, createContext as nr, useContext as jt, memo as Td, useReducer as Cd, forwardRef as Sd, cloneElement as xd } from "react";
|
|
6
6
|
import p from "@instructure/ui-themes";
|
|
7
|
-
import { usePlatformUi as
|
|
7
|
+
import { usePlatformUi as gc } from "@instructure/platform-provider";
|
|
8
8
|
import { createPortal as hc, unstable_batchedUpdates as br } from "react-dom";
|
|
9
9
|
import { Alert as $t } from "@instructure/ui-alerts";
|
|
10
10
|
import { Pagination as qr } from "@instructure/ui-pagination";
|
|
@@ -265,8 +265,8 @@ var Jd = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
265
265
|
return Jd.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
266
266
|
}
|
|
267
267
|
/* Z+1 */
|
|
268
|
-
), ie = "-ms-", Vn = "-moz-", Q = "-webkit-", xc = "comm", os = "rule", zo = "decl", Xd = "@import",
|
|
269
|
-
function
|
|
268
|
+
), ie = "-ms-", Vn = "-moz-", Q = "-webkit-", xc = "comm", os = "rule", zo = "decl", Xd = "@import", ef = "@namespace", kc = "@keyframes", tf = "@layer", Ic = Math.abs, Vo = String.fromCharCode, lo = Object.assign;
|
|
269
|
+
function nf(e, t) {
|
|
270
270
|
return Te(e, 0) ^ 45 ? (((t << 2 ^ Te(e, 0)) << 2 ^ Te(e, 1)) << 2 ^ Te(e, 2)) << 2 ^ Te(e, 3) : 0;
|
|
271
271
|
}
|
|
272
272
|
function Nc(e) {
|
|
@@ -296,7 +296,7 @@ function Ec(e) {
|
|
|
296
296
|
function Pn(e, t) {
|
|
297
297
|
return t.push(e), e;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function rf(e, t) {
|
|
300
300
|
return e.map(t).join("");
|
|
301
301
|
}
|
|
302
302
|
function Pi(e, t) {
|
|
@@ -316,10 +316,10 @@ function rn(e) {
|
|
|
316
316
|
e = Et(e.root, { children: [e] });
|
|
317
317
|
Pn(e, e.siblings);
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function sf() {
|
|
320
320
|
return be;
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function of() {
|
|
323
323
|
return be = Xe > 0 ? Te(Tn, --Xe) : 0, vn--, be === 10 && (vn = 1, is--), be;
|
|
324
324
|
}
|
|
325
325
|
function st() {
|
|
@@ -366,21 +366,21 @@ function Kn(e) {
|
|
|
366
366
|
}
|
|
367
367
|
return 0;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function af(e) {
|
|
370
370
|
return is = vn = 1, Ac = nt(Tn = e), Xe = 0, [];
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function cf(e) {
|
|
373
373
|
return Tn = "", e;
|
|
374
374
|
}
|
|
375
375
|
function Ns(e) {
|
|
376
376
|
return Nc(cs(Xe - 1, uo(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function lf(e) {
|
|
379
379
|
for (; (be = Mt()) && be < 33; )
|
|
380
380
|
st();
|
|
381
381
|
return Kn(e) > 2 || Kn(be) > 3 ? "" : " ";
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function uf(e, t) {
|
|
384
384
|
for (; --t && st() && !(be < 48 || be > 102 || be > 57 && be < 65 || be > 70 && be < 97); )
|
|
385
385
|
;
|
|
386
386
|
return cs(e, $r() + (t < 6 && Mt() == 32 && st() == 32));
|
|
@@ -403,25 +403,25 @@ function uo(e) {
|
|
|
403
403
|
}
|
|
404
404
|
return Xe;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function df(e, t) {
|
|
407
407
|
for (; st() && e + be !== 57; )
|
|
408
408
|
if (e + be === 84 && Mt() === 47)
|
|
409
409
|
break;
|
|
410
410
|
return "/*" + cs(t, Xe - 1) + "*" + Vo(e === 47 ? e : st());
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function ff(e) {
|
|
413
413
|
for (; !Kn(Mt()); )
|
|
414
414
|
st();
|
|
415
415
|
return cs(e, Xe);
|
|
416
416
|
}
|
|
417
|
-
function
|
|
418
|
-
return
|
|
417
|
+
function gf(e) {
|
|
418
|
+
return cf(Mr("", null, null, null, [""], e = af(e), 0, [0], e));
|
|
419
419
|
}
|
|
420
420
|
function Mr(e, t, n, r, s, o, i, a, c) {
|
|
421
|
-
for (var l = 0, d = 0,
|
|
421
|
+
for (var l = 0, d = 0, f = i, h = 0, g = 0, v = 0, m = 1, b = 1, T = 1, w = 0, C = "", N = s, x = o, $ = r, k = C; b; )
|
|
422
422
|
switch (v = w, w = st()) {
|
|
423
423
|
case 40:
|
|
424
|
-
if (v != 108 && Te(k,
|
|
424
|
+
if (v != 108 && Te(k, f - 1) == 58) {
|
|
425
425
|
Dr(k += B(Ns(w), "&", "&\f"), "&\f", Ic(l ? a[l - 1] : 0)) != -1 && (T = -1);
|
|
426
426
|
break;
|
|
427
427
|
}
|
|
@@ -434,16 +434,16 @@ function Mr(e, t, n, r, s, o, i, a, c) {
|
|
|
434
434
|
case 10:
|
|
435
435
|
case 13:
|
|
436
436
|
case 32:
|
|
437
|
-
k +=
|
|
437
|
+
k += lf(v);
|
|
438
438
|
break;
|
|
439
439
|
case 92:
|
|
440
|
-
k +=
|
|
440
|
+
k += uf($r() - 1, 7);
|
|
441
441
|
continue;
|
|
442
442
|
case 47:
|
|
443
443
|
switch (Mt()) {
|
|
444
444
|
case 42:
|
|
445
445
|
case 47:
|
|
446
|
-
Pn(
|
|
446
|
+
Pn(hf(df(st(), $r()), t, n, c), c), (Kn(v || 1) == 5 || Kn(Mt() || 1) == 5) && nt(k) && Gt(k, -1, void 0) !== " " && (k += " ");
|
|
447
447
|
break;
|
|
448
448
|
default:
|
|
449
449
|
k += "/";
|
|
@@ -459,14 +459,14 @@ function Mr(e, t, n, r, s, o, i, a, c) {
|
|
|
459
459
|
case 125:
|
|
460
460
|
b = 0;
|
|
461
461
|
case 59 + d:
|
|
462
|
-
T == -1 && (k = B(k, /\f/g, "")),
|
|
462
|
+
T == -1 && (k = B(k, /\f/g, "")), g > 0 && (nt(k) - f || m === 0 && v === 47) && Pn(g > 32 ? Wi(k + ";", r, n, f - 1, c) : Wi(B(k, " ", "") + ";", r, n, f - 2, c), c);
|
|
463
463
|
break;
|
|
464
464
|
case 59:
|
|
465
465
|
k += ";";
|
|
466
466
|
default:
|
|
467
|
-
if (Pn($ = Fi(k, t, n, l, d, s, a, C, N = [], x = [],
|
|
467
|
+
if (Pn($ = Fi(k, t, n, l, d, s, a, C, N = [], x = [], f, o), o), w === 123)
|
|
468
468
|
if (d === 0)
|
|
469
|
-
Mr(k, t, $, $, N, o,
|
|
469
|
+
Mr(k, t, $, $, N, o, f, a, x);
|
|
470
470
|
else {
|
|
471
471
|
switch (h) {
|
|
472
472
|
case 99:
|
|
@@ -479,18 +479,18 @@ function Mr(e, t, n, r, s, o, i, a, c) {
|
|
|
479
479
|
case 109:
|
|
480
480
|
case 115:
|
|
481
481
|
}
|
|
482
|
-
d ? Mr(e, $, $, r && Pn(Fi(e, $, $, 0, 0, s, a, C, s, N = [],
|
|
482
|
+
d ? Mr(e, $, $, r && Pn(Fi(e, $, $, 0, 0, s, a, C, s, N = [], f, x), x), s, x, f, a, r ? N : x) : Mr(k, $, $, $, [""], x, 0, a, x);
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
l = d =
|
|
485
|
+
l = d = g = 0, m = T = 1, C = k = "", f = i;
|
|
486
486
|
break;
|
|
487
487
|
case 58:
|
|
488
|
-
|
|
488
|
+
f = 1 + nt(k), g = v;
|
|
489
489
|
default:
|
|
490
490
|
if (m < 1) {
|
|
491
491
|
if (w == 123)
|
|
492
492
|
--m;
|
|
493
|
-
else if (w == 125 && m++ == 0 &&
|
|
493
|
+
else if (w == 125 && m++ == 0 && of() == 125)
|
|
494
494
|
continue;
|
|
495
495
|
}
|
|
496
496
|
switch (k += Vo(w), w * m) {
|
|
@@ -501,7 +501,7 @@ function Mr(e, t, n, r, s, o, i, a, c) {
|
|
|
501
501
|
a[l++] = (nt(k) - 1) * T, T = 1;
|
|
502
502
|
break;
|
|
503
503
|
case 64:
|
|
504
|
-
Mt() === 45 && (k += Ns(st())), h = Mt(), d =
|
|
504
|
+
Mt() === 45 && (k += Ns(st())), h = Mt(), d = f = nt(C = k += ff($r())), w++;
|
|
505
505
|
break;
|
|
506
506
|
case 45:
|
|
507
507
|
v === 45 && nt(k) == 2 && (m = 0);
|
|
@@ -509,20 +509,20 @@ function Mr(e, t, n, r, s, o, i, a, c) {
|
|
|
509
509
|
}
|
|
510
510
|
return o;
|
|
511
511
|
}
|
|
512
|
-
function Fi(e, t, n, r, s, o, i, a, c, l, d,
|
|
513
|
-
for (var h = s - 1,
|
|
512
|
+
function Fi(e, t, n, r, s, o, i, a, c, l, d, f) {
|
|
513
|
+
for (var h = s - 1, g = s === 0 ? o : [""], v = Ec(g), m = 0, b = 0, T = 0; m < r; ++m)
|
|
514
514
|
for (var w = 0, C = Gt(e, h + 1, h = Ic(b = i[m])), N = e; w < v; ++w)
|
|
515
|
-
(N = Nc(b > 0 ?
|
|
516
|
-
return as(e, t, n, s === 0 ? os : a, c, l, d,
|
|
515
|
+
(N = Nc(b > 0 ? g[w] + " " + C : B(C, /&\f/g, g[w]))) && (c[T++] = N);
|
|
516
|
+
return as(e, t, n, s === 0 ? os : a, c, l, d, f);
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
return as(e, t, n, xc, Vo(
|
|
518
|
+
function hf(e, t, n, r) {
|
|
519
|
+
return as(e, t, n, xc, Vo(sf()), Gt(e, 2, -2), 0, r);
|
|
520
520
|
}
|
|
521
521
|
function Wi(e, t, n, r, s) {
|
|
522
522
|
return as(e, t, n, zo, Gt(e, 0, r), Gt(e, r + 1, -1), r, s);
|
|
523
523
|
}
|
|
524
524
|
function Oc(e, t, n) {
|
|
525
|
-
switch (
|
|
525
|
+
switch (nf(e, t)) {
|
|
526
526
|
case 5103:
|
|
527
527
|
return Q + "print-" + e + e;
|
|
528
528
|
case 5737:
|
|
@@ -671,12 +671,12 @@ function jr(e, t) {
|
|
|
671
671
|
n += t(e[r], r, e, t) || "";
|
|
672
672
|
return n;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function mf(e, t, n, r) {
|
|
675
675
|
switch (e.type) {
|
|
676
|
-
case
|
|
676
|
+
case tf:
|
|
677
677
|
if (e.children.length) break;
|
|
678
678
|
case Xd:
|
|
679
|
-
case
|
|
679
|
+
case ef:
|
|
680
680
|
case zo:
|
|
681
681
|
return e.return = e.return || e.value;
|
|
682
682
|
case xc:
|
|
@@ -688,7 +688,7 @@ function hg(e, t, n, r) {
|
|
|
688
688
|
}
|
|
689
689
|
return nt(n = jr(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function pf(e) {
|
|
692
692
|
var t = Ec(e);
|
|
693
693
|
return function(n, r, s, o) {
|
|
694
694
|
for (var i = "", a = 0; a < t; a++)
|
|
@@ -696,12 +696,12 @@ function mg(e) {
|
|
|
696
696
|
return i;
|
|
697
697
|
};
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function yf(e) {
|
|
700
700
|
return function(t) {
|
|
701
701
|
t.root || (t = t.return) && e(t);
|
|
702
702
|
};
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function vf(e, t, n, r) {
|
|
705
705
|
if (e.length > -1 && !e.return)
|
|
706
706
|
switch (e.type) {
|
|
707
707
|
case zo:
|
|
@@ -711,7 +711,7 @@ function yg(e, t, n, r) {
|
|
|
711
711
|
return jr([Et(e, { value: B(e.value, "@", "@" + Q) })], r);
|
|
712
712
|
case os:
|
|
713
713
|
if (e.length)
|
|
714
|
-
return
|
|
714
|
+
return rf(n = e.props, function(s) {
|
|
715
715
|
switch (mt(s, r = /(::plac\w+|:read-\w+)/)) {
|
|
716
716
|
case ":read-only":
|
|
717
717
|
case ":read-write":
|
|
@@ -734,7 +734,7 @@ function Ui(e) {
|
|
|
734
734
|
if (t !== void 0 && t !== "") return t !== "false";
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
|
-
const
|
|
737
|
+
const wf = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : (As = (Es = Ui("REACT_APP_SC_DISABLE_SPEEDY")) !== null && Es !== void 0 ? Es : Ui("SC_DISABLE_SPEEDY")) !== null && As !== void 0 ? As : typeof process > "u" || process.env === void 0 || process.env.NODE_ENV !== "production"), Mc = "sc-keyframes-", bf = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
738
738
|
|
|
739
739
|
`, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
740
740
|
|
|
@@ -806,19 +806,19 @@ function Cn(e, ...t) {
|
|
|
806
806
|
return s.forEach((o) => {
|
|
807
807
|
r = r.replace(/%[a-z]/, o);
|
|
808
808
|
}), r;
|
|
809
|
-
}(
|
|
809
|
+
}(bf[e], ...t).trim());
|
|
810
810
|
}
|
|
811
|
-
const
|
|
811
|
+
const Tf = 1 << 30;
|
|
812
812
|
let Rr = /* @__PURE__ */ new Map(), Hr = /* @__PURE__ */ new Map(), Lr = 1;
|
|
813
813
|
const Fn = (e) => {
|
|
814
814
|
if (Rr.has(e)) return Rr.get(e);
|
|
815
815
|
for (; Hr.has(Lr); ) Lr++;
|
|
816
816
|
const t = Lr++;
|
|
817
|
-
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t >
|
|
817
|
+
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > Tf)) throw Cn(16, `${t}`);
|
|
818
818
|
return Rr.set(e, t), Hr.set(t, e), t;
|
|
819
|
-
},
|
|
819
|
+
}, Cf = (e) => Hr.get(e), Sf = (e, t) => {
|
|
820
820
|
Lr = t + 1, Rr.set(e, t), Hr.set(t, e);
|
|
821
|
-
}, _i = /invalid hook call/i, Cr = /* @__PURE__ */ new Set(),
|
|
821
|
+
}, _i = /invalid hook call/i, Cr = /* @__PURE__ */ new Set(), xf = (e, t) => {
|
|
822
822
|
if (process.env.NODE_ENV !== "production") {
|
|
823
823
|
const n = `The component ${e}${t ? ` with the id of "${t}"` : ""} has been created dynamically.
|
|
824
824
|
You may see this warning because you've called styled inside another component.
|
|
@@ -837,24 +837,24 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
|
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
839
|
}, Bo = Object.freeze([]), wn = Object.freeze({});
|
|
840
|
-
function
|
|
840
|
+
function kf(e, t, n = wn) {
|
|
841
841
|
return e.theme !== n.theme && e.theme || t || n.theme;
|
|
842
842
|
}
|
|
843
|
-
const
|
|
843
|
+
const If = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Nf = /(^-|-$)/g;
|
|
844
844
|
function Rc(e) {
|
|
845
|
-
return e.replace(
|
|
845
|
+
return e.replace(If, "-").replace(Nf, "");
|
|
846
846
|
}
|
|
847
|
-
const
|
|
847
|
+
const Ef = /(a)(d)/gi, zi = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
848
848
|
function jo(e) {
|
|
849
849
|
let t, n = "";
|
|
850
850
|
for (t = Math.abs(e); t > 52; t = t / 52 | 0) n = zi(t % 52) + n;
|
|
851
|
-
return (zi(t % 52) + n).replace(
|
|
851
|
+
return (zi(t % 52) + n).replace(Ef, "$1-$2");
|
|
852
852
|
}
|
|
853
|
-
const
|
|
853
|
+
const fo = 5381, qt = (e, t) => {
|
|
854
854
|
let n = t.length;
|
|
855
855
|
for (; n; ) e = 33 * e ^ t.charCodeAt(--n);
|
|
856
856
|
return e;
|
|
857
|
-
}, Lc = (e) => qt(
|
|
857
|
+
}, Lc = (e) => qt(fo, e);
|
|
858
858
|
function Pc(e) {
|
|
859
859
|
return jo(Lc(e) >>> 0);
|
|
860
860
|
}
|
|
@@ -864,26 +864,26 @@ function Ho(e) {
|
|
|
864
864
|
function Pr(e) {
|
|
865
865
|
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Af(e) {
|
|
868
868
|
return Pr(e) ? `styled.${e}` : `Styled(${Ho(e)})`;
|
|
869
869
|
}
|
|
870
|
-
const Fc = Symbol.for("react.memo"),
|
|
870
|
+
const Fc = Symbol.for("react.memo"), Of = Symbol.for("react.forward_ref"), Df = { contextType: !0, defaultProps: !0, displayName: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, propTypes: !0, type: !0 }, $f = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Wc = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Mf = { [Of]: { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, [Fc]: Wc };
|
|
871
871
|
function Vi(e) {
|
|
872
|
-
return ("type" in (t = e) && t.type.$$typeof) === Fc ? Wc : "$$typeof" in e ?
|
|
872
|
+
return ("type" in (t = e) && t.type.$$typeof) === Fc ? Wc : "$$typeof" in e ? Mf[e.$$typeof] : Df;
|
|
873
873
|
var t;
|
|
874
874
|
}
|
|
875
|
-
const
|
|
875
|
+
const Rf = Object.defineProperty, Lf = Object.getOwnPropertyNames, Pf = Object.getOwnPropertySymbols, Ff = Object.getOwnPropertyDescriptor, Wf = Object.getPrototypeOf, Uf = Object.prototype;
|
|
876
876
|
function Uc(e, t, n) {
|
|
877
877
|
if (typeof t != "string") {
|
|
878
|
-
const r =
|
|
879
|
-
r && r !==
|
|
880
|
-
const s =
|
|
878
|
+
const r = Wf(t);
|
|
879
|
+
r && r !== Uf && Uc(e, r, n);
|
|
880
|
+
const s = Lf(t).concat(Pf(t)), o = Vi(e), i = Vi(t);
|
|
881
881
|
for (let a = 0; a < s.length; ++a) {
|
|
882
882
|
const c = s[a];
|
|
883
|
-
if (!(c in
|
|
884
|
-
const l =
|
|
883
|
+
if (!(c in $f || n && n[c] || i && c in i || o && c in o)) {
|
|
884
|
+
const l = Ff(t, c);
|
|
885
885
|
try {
|
|
886
|
-
|
|
886
|
+
Rf(e, c, l);
|
|
887
887
|
} catch {
|
|
888
888
|
}
|
|
889
889
|
}
|
|
@@ -900,7 +900,7 @@ function _c(e) {
|
|
|
900
900
|
function Wn(e, t) {
|
|
901
901
|
return e && t ? e + " " + t : e || t || "";
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function go(e, t) {
|
|
904
904
|
return e.join("");
|
|
905
905
|
}
|
|
906
906
|
function Yt(e) {
|
|
@@ -915,7 +915,7 @@ function ho(e, t, n = !1) {
|
|
|
915
915
|
function Go(e, t) {
|
|
916
916
|
Object.defineProperty(e, "toString", { value: t });
|
|
917
917
|
}
|
|
918
|
-
const
|
|
918
|
+
const _f = class {
|
|
919
919
|
constructor(e) {
|
|
920
920
|
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e, this._cGroup = 0, this._cIndex = 0;
|
|
921
921
|
}
|
|
@@ -953,7 +953,7 @@ const Ug = class {
|
|
|
953
953
|
for (let o = r; o < s; o++) t += this.tag.getRule(o) + qo;
|
|
954
954
|
return t;
|
|
955
955
|
}
|
|
956
|
-
},
|
|
956
|
+
}, zf = `style[${Zt}][${$c}="${ls}"]`, Vf = new RegExp(`^${Zt}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`), qi = (e) => typeof ShadowRoot < "u" && e instanceof ShadowRoot || "host" in e && e.nodeType === 11, mo = (e) => {
|
|
957
957
|
if (!e) return document;
|
|
958
958
|
if (qi(e)) return e;
|
|
959
959
|
if ("getRootNode" in e) {
|
|
@@ -961,31 +961,31 @@ const Ug = class {
|
|
|
961
961
|
if (qi(t)) return t;
|
|
962
962
|
}
|
|
963
963
|
return document;
|
|
964
|
-
},
|
|
964
|
+
}, qf = (e, t, n) => {
|
|
965
965
|
const r = n.split(",");
|
|
966
966
|
let s;
|
|
967
967
|
for (let o = 0, i = r.length; o < i; o++) (s = r[o]) && e.registerName(t, s);
|
|
968
|
-
},
|
|
968
|
+
}, Bf = (e, t) => {
|
|
969
969
|
var n;
|
|
970
970
|
const r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(qo), s = [];
|
|
971
971
|
for (let o = 0, i = r.length; o < i; o++) {
|
|
972
972
|
const a = r[o].trim();
|
|
973
973
|
if (!a) continue;
|
|
974
|
-
const c = a.match(
|
|
974
|
+
const c = a.match(Vf);
|
|
975
975
|
if (c) {
|
|
976
976
|
const l = 0 | parseInt(c[1], 10), d = c[2];
|
|
977
|
-
l !== 0 && (
|
|
977
|
+
l !== 0 && (Sf(d, l), qf(e, d, c[3]), e.getTag().insertRules(l, s)), s.length = 0;
|
|
978
978
|
} else s.push(a);
|
|
979
979
|
}
|
|
980
980
|
}, Os = (e) => {
|
|
981
|
-
const t = mo(e.options.target).querySelectorAll(
|
|
981
|
+
const t = mo(e.options.target).querySelectorAll(zf);
|
|
982
982
|
for (let n = 0, r = t.length; n < r; n++) {
|
|
983
983
|
const s = t[n];
|
|
984
|
-
s && s.getAttribute(Zt) !== Dc && (
|
|
984
|
+
s && s.getAttribute(Zt) !== Dc && (Bf(e, s), s.parentNode && s.parentNode.removeChild(s));
|
|
985
985
|
}
|
|
986
986
|
};
|
|
987
987
|
let Mn = !1;
|
|
988
|
-
function
|
|
988
|
+
function jf() {
|
|
989
989
|
if (Mn !== !1) return Mn;
|
|
990
990
|
if (typeof document < "u") {
|
|
991
991
|
const e = document.head.querySelector('meta[property="csp-nonce"]');
|
|
@@ -1001,9 +1001,9 @@ const zc = (e, t) => {
|
|
|
1001
1001
|
return l[l.length - 1];
|
|
1002
1002
|
})(r), i = o !== void 0 ? o.nextSibling : null;
|
|
1003
1003
|
s.setAttribute(Zt, Dc), s.setAttribute($c, ls);
|
|
1004
|
-
const a = t ||
|
|
1004
|
+
const a = t || jf();
|
|
1005
1005
|
return a && s.setAttribute("nonce", a), r.insertBefore(s, i), s;
|
|
1006
|
-
},
|
|
1006
|
+
}, Hf = class {
|
|
1007
1007
|
constructor(e, t) {
|
|
1008
1008
|
this.element = zc(e, t), this.element.appendChild(document.createTextNode("")), this.sheet = ((n) => {
|
|
1009
1009
|
var r;
|
|
@@ -1030,7 +1030,7 @@ const zc = (e, t) => {
|
|
|
1030
1030
|
const t = this.sheet.cssRules[e];
|
|
1031
1031
|
return t && t.cssText ? t.cssText : "";
|
|
1032
1032
|
}
|
|
1033
|
-
},
|
|
1033
|
+
}, Gf = class {
|
|
1034
1034
|
constructor(e, t) {
|
|
1035
1035
|
this.element = zc(e, t), this.nodes = this.element.childNodes, this.length = 0;
|
|
1036
1036
|
}
|
|
@@ -1049,26 +1049,26 @@ const zc = (e, t) => {
|
|
|
1049
1049
|
}
|
|
1050
1050
|
};
|
|
1051
1051
|
let Bi = qn;
|
|
1052
|
-
const
|
|
1052
|
+
const Zf = { isServer: !qn, useCSSOMInjection: !wf };
|
|
1053
1053
|
class ds {
|
|
1054
1054
|
static registerId(t) {
|
|
1055
1055
|
return Fn(t);
|
|
1056
1056
|
}
|
|
1057
1057
|
constructor(t = wn, n = {}, r) {
|
|
1058
|
-
this.options = Object.assign(Object.assign({},
|
|
1058
|
+
this.options = Object.assign(Object.assign({}, Zf), t), this.gs = n, this.keyframeIds = /* @__PURE__ */ new Set(), this.names = new Map(r), this.server = !!t.isServer, !this.server && qn && Bi && (Bi = !1, Os(this)), Go(this, () => ((s) => {
|
|
1059
1059
|
const o = s.getTag(), { length: i } = o;
|
|
1060
1060
|
let a = "";
|
|
1061
1061
|
for (let c = 0; c < i; c++) {
|
|
1062
|
-
const l =
|
|
1062
|
+
const l = Cf(c);
|
|
1063
1063
|
if (l === void 0) continue;
|
|
1064
1064
|
const d = s.names.get(l);
|
|
1065
1065
|
if (d === void 0 || !d.size) continue;
|
|
1066
|
-
const
|
|
1067
|
-
if (
|
|
1066
|
+
const f = o.getGroup(c);
|
|
1067
|
+
if (f.length === 0) continue;
|
|
1068
1068
|
const h = Zt + ".g" + c + '[id="' + l + '"]';
|
|
1069
|
-
let
|
|
1070
|
-
for (const v of d) v.length > 0 && (
|
|
1071
|
-
a +=
|
|
1069
|
+
let g = "";
|
|
1070
|
+
for (const v of d) v.length > 0 && (g += v + ",");
|
|
1071
|
+
a += f + h + '{content:"' + g + '"}' + qo;
|
|
1072
1072
|
}
|
|
1073
1073
|
return a;
|
|
1074
1074
|
})(this));
|
|
@@ -1084,7 +1084,7 @@ class ds {
|
|
|
1084
1084
|
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
1085
1085
|
}
|
|
1086
1086
|
getTag() {
|
|
1087
|
-
return this.tag || (this.tag = (t = (({ useCSSOMInjection: n, target: r, nonce: s }) => n ? new
|
|
1087
|
+
return this.tag || (this.tag = (t = (({ useCSSOMInjection: n, target: r, nonce: s }) => n ? new Hf(r, s) : new Gf(r, s))(this.options), new _f(t)));
|
|
1088
1088
|
var t;
|
|
1089
1089
|
}
|
|
1090
1090
|
hasNameForId(t, n) {
|
|
@@ -1109,9 +1109,9 @@ class ds {
|
|
|
1109
1109
|
this.tag = void 0;
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
|
-
const Vc = /* @__PURE__ */ new WeakSet(),
|
|
1113
|
-
function
|
|
1114
|
-
return t == null || typeof t == "boolean" || t === "" ? "" : typeof t != "number" || t === 0 || e in
|
|
1112
|
+
const Vc = /* @__PURE__ */ new WeakSet(), Yf = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexShrink: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, scale: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 };
|
|
1113
|
+
function Kf(e, t) {
|
|
1114
|
+
return t == null || typeof t == "boolean" || t === "" ? "" : typeof t != "number" || t === 0 || e in Yf || e.startsWith("--") ? String(t).trim() : t + "px";
|
|
1115
1115
|
}
|
|
1116
1116
|
const Ut = 47;
|
|
1117
1117
|
function ji(e) {
|
|
@@ -1130,9 +1130,9 @@ function po(e) {
|
|
|
1130
1130
|
function Bc(e) {
|
|
1131
1131
|
return us(e) && !(e.prototype && e.prototype.isReactComponent);
|
|
1132
1132
|
}
|
|
1133
|
-
const jc = (e) => e == null || e === !1 || e === "",
|
|
1133
|
+
const jc = (e) => e == null || e === !1 || e === "", Jf = Symbol.for("react.client.reference");
|
|
1134
1134
|
function Hi(e) {
|
|
1135
|
-
return e.$$typeof ===
|
|
1135
|
+
return e.$$typeof === Jf;
|
|
1136
1136
|
}
|
|
1137
1137
|
function Gi(e) {
|
|
1138
1138
|
const t = e.$$id, n = (t && t.includes("#") ? t.split("#").pop() : t) || e.name || "unknown";
|
|
@@ -1141,7 +1141,7 @@ function Gi(e) {
|
|
|
1141
1141
|
function Hc(e, t) {
|
|
1142
1142
|
for (const n in e) {
|
|
1143
1143
|
const r = e[n];
|
|
1144
|
-
e.hasOwnProperty(n) && !jc(r) && (Array.isArray(r) && Vc.has(r) || us(r) ? t.push(ji(n) + ":", r, ";") : Yt(r) ? (t.push(n + " {"), Hc(r, t), t.push("}")) : t.push(ji(n) + ": " +
|
|
1144
|
+
e.hasOwnProperty(n) && !jc(r) && (Array.isArray(r) && Vc.has(r) || us(r) ? t.push(ji(n) + ":", r, ";") : Yt(r) ? (t.push(n + " {"), Hc(r, t), t.push("}")) : t.push(ji(n) + ": " + Kf(n, r) + ";"));
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
1147
|
function Bt(e, t, n, r, s = []) {
|
|
@@ -1162,10 +1162,10 @@ function Bt(e, t, n, r, s = []) {
|
|
|
1162
1162
|
}
|
|
1163
1163
|
return _c(e) ? (s.push(`.${e.styledComponentId}`), s) : po(e) ? (n ? (e.inject(n, r), s.push(e.getName(r))) : s.push(e), s) : Hi(e) ? (process.env.NODE_ENV !== "production" && Gi(e), s) : Yt(e) ? (Hc(e, s), s) : (s.push(e.toString()), s);
|
|
1164
1164
|
}
|
|
1165
|
-
const
|
|
1166
|
-
class
|
|
1165
|
+
const Qf = Lc(ls);
|
|
1166
|
+
class Xf {
|
|
1167
1167
|
constructor(t, n, r) {
|
|
1168
|
-
this.rules = t, this.componentId = n, this.baseHash = qt(
|
|
1168
|
+
this.rules = t, this.componentId = n, this.baseHash = qt(Qf, n), this.baseStyle = r, ds.registerId(n);
|
|
1169
1169
|
}
|
|
1170
1170
|
generateAndInjectStyles(t, n, r) {
|
|
1171
1171
|
let s = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
|
|
@@ -1176,8 +1176,8 @@ class Qg {
|
|
|
1176
1176
|
if (typeof a == "string") o += a;
|
|
1177
1177
|
else if (a) if (Bc(a)) {
|
|
1178
1178
|
const c = a(t);
|
|
1179
|
-
typeof c == "string" ? o += c : c != null && c !== !1 && (process.env.NODE_ENV === "production" || typeof c != "object" || Array.isArray(c) || po(c) || Yt(c) || console.error(`${Ho(a)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), o +=
|
|
1180
|
-
} else o +=
|
|
1179
|
+
typeof c == "string" ? o += c : c != null && c !== !1 && (process.env.NODE_ENV === "production" || typeof c != "object" || Array.isArray(c) || po(c) || Yt(c) || console.error(`${Ho(a)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), o += go(Bt(c, t, n, r)));
|
|
1180
|
+
} else o += go(Bt(a, t, n, r));
|
|
1181
1181
|
}
|
|
1182
1182
|
if (o) {
|
|
1183
1183
|
this.dynamicNameCache || (this.dynamicNameCache = /* @__PURE__ */ new Map());
|
|
@@ -1200,7 +1200,7 @@ class Qg {
|
|
|
1200
1200
|
return s;
|
|
1201
1201
|
}
|
|
1202
1202
|
}
|
|
1203
|
-
const
|
|
1203
|
+
const eg = /&/g;
|
|
1204
1204
|
function Gc(e, t) {
|
|
1205
1205
|
let n = 0;
|
|
1206
1206
|
for (; --t >= 0 && e.charCodeAt(t) === 92; ) n++;
|
|
@@ -1219,8 +1219,8 @@ function Ds(e) {
|
|
|
1219
1219
|
a = !0;
|
|
1220
1220
|
let d = c + 1;
|
|
1221
1221
|
for (; d < t; ) {
|
|
1222
|
-
const
|
|
1223
|
-
if (
|
|
1222
|
+
const f = e.charCodeAt(d);
|
|
1223
|
+
if (f === 59 || f === 10) break;
|
|
1224
1224
|
d++;
|
|
1225
1225
|
}
|
|
1226
1226
|
d < t && e.charCodeAt(d) === 59 && d++, s = 0, c = d - 1, r = d;
|
|
@@ -1247,15 +1247,15 @@ function Zc(e, t) {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
return e;
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1250
|
+
function tg({ options: e = wn, plugins: t = Bo } = wn) {
|
|
1251
1251
|
let n, r, s;
|
|
1252
|
-
const o = (h,
|
|
1252
|
+
const o = (h, g, v) => v.startsWith(r) && v.endsWith(r) && v.replaceAll(r, "").length > 0 ? `.${n}` : h, i = t.slice();
|
|
1253
1253
|
i.push((h) => {
|
|
1254
|
-
h.type === os && h.value.includes("&") && (s || (s = new RegExp(`\\${r}\\b`, "g")), h.props[0] = h.props[0].replace(
|
|
1255
|
-
}), e.prefix && i.push(
|
|
1254
|
+
h.type === os && h.value.includes("&") && (s || (s = new RegExp(`\\${r}\\b`, "g")), h.props[0] = h.props[0].replace(eg, r).replace(s, o));
|
|
1255
|
+
}), e.prefix && i.push(vf), i.push(mf);
|
|
1256
1256
|
let a = [];
|
|
1257
|
-
const c =
|
|
1258
|
-
n = m, r =
|
|
1257
|
+
const c = pf(i.concat(yf((h) => a.push(h)))), l = (h, g = "", v = "", m = "&") => {
|
|
1258
|
+
n = m, r = g, s = void 0;
|
|
1259
1259
|
const b = function(w) {
|
|
1260
1260
|
const C = w.indexOf("//") !== -1, N = w.indexOf("}") !== -1;
|
|
1261
1261
|
if (!C && !N) return w;
|
|
@@ -1280,44 +1280,44 @@ function ef({ options: e = wn, plugins: t = Bo } = wn) {
|
|
|
1280
1280
|
}
|
|
1281
1281
|
return P ? (k < x && ($ += w.substring(k)), E === 0 ? $ : Ds($)) : E === 0 ? w : Ds(w);
|
|
1282
1282
|
}(h);
|
|
1283
|
-
let T =
|
|
1283
|
+
let T = gf(v || g ? v + " " + g + " { " + b + " }" : b);
|
|
1284
1284
|
return e.namespace && (T = Zc(T, e.namespace)), a = [], jr(T, c), a;
|
|
1285
1285
|
}, d = e;
|
|
1286
|
-
let
|
|
1287
|
-
for (let h = 0; h < t.length; h++) t[h].name || Cn(15),
|
|
1288
|
-
return d != null && d.namespace && (
|
|
1286
|
+
let f = fo;
|
|
1287
|
+
for (let h = 0; h < t.length; h++) t[h].name || Cn(15), f = qt(f, t[h].name);
|
|
1288
|
+
return d != null && d.namespace && (f = qt(f, d.namespace)), d != null && d.prefix && (f = qt(f, "p")), l.hash = f !== fo ? f.toString() : "", l;
|
|
1289
1289
|
}
|
|
1290
|
-
const
|
|
1290
|
+
const ng = new ds(), yo = tg(), Yc = y.createContext({ shouldForwardProp: void 0, styleSheet: ng, stylis: yo, stylisPlugins: void 0 });
|
|
1291
1291
|
Yc.Consumer;
|
|
1292
|
-
function
|
|
1292
|
+
function rg() {
|
|
1293
1293
|
return y.useContext(Yc);
|
|
1294
1294
|
}
|
|
1295
1295
|
const Kc = y.createContext(void 0);
|
|
1296
1296
|
Kc.Consumer;
|
|
1297
1297
|
const Zi = Object.prototype.hasOwnProperty, $s = {};
|
|
1298
|
-
function
|
|
1298
|
+
function sg(e, t) {
|
|
1299
1299
|
const n = typeof e != "string" ? "sc" : Rc(e);
|
|
1300
1300
|
$s[n] = ($s[n] || 0) + 1;
|
|
1301
1301
|
const r = n + "-" + Pc(ls + n + $s[n]);
|
|
1302
1302
|
return t ? t + "-" + r : r;
|
|
1303
1303
|
}
|
|
1304
1304
|
let Ms;
|
|
1305
|
-
function
|
|
1306
|
-
const r = _c(e), s = e, o = !Pr(e), { attrs: i = Bo, componentId: a =
|
|
1307
|
-
let { shouldForwardProp:
|
|
1305
|
+
function og(e, t, n) {
|
|
1306
|
+
const r = _c(e), s = e, o = !Pr(e), { attrs: i = Bo, componentId: a = sg(t.displayName, t.parentComponentId), displayName: c = Af(e) } = t, l = t.displayName && t.componentId ? Rc(t.displayName) + "-" + t.componentId : t.componentId || a, d = r && s.attrs ? s.attrs.concat(i).filter(Boolean) : i;
|
|
1307
|
+
let { shouldForwardProp: f } = t;
|
|
1308
1308
|
if (r && s.shouldForwardProp) {
|
|
1309
1309
|
const m = s.shouldForwardProp;
|
|
1310
1310
|
if (t.shouldForwardProp) {
|
|
1311
1311
|
const b = t.shouldForwardProp;
|
|
1312
|
-
|
|
1313
|
-
} else
|
|
1312
|
+
f = (T, w) => m(T, w) && b(T, w);
|
|
1313
|
+
} else f = m;
|
|
1314
1314
|
}
|
|
1315
|
-
const h = new
|
|
1316
|
-
function
|
|
1315
|
+
const h = new Xf(n, l, r ? s.componentStyle : void 0);
|
|
1316
|
+
function g(m, b) {
|
|
1317
1317
|
return function(T, w, C) {
|
|
1318
|
-
const { attrs: N, componentStyle: x, defaultProps: $, foldedComponentIds: k, styledComponentId: I, target: L } = T, S = y.useContext(Kc), E =
|
|
1318
|
+
const { attrs: N, componentStyle: x, defaultProps: $, foldedComponentIds: k, styledComponentId: I, target: L } = T, S = y.useContext(Kc), E = rg(), P = T.shouldForwardProp || E.shouldForwardProp;
|
|
1319
1319
|
process.env.NODE_ENV !== "production" && y.useDebugValue && y.useDebugValue(I);
|
|
1320
|
-
const D =
|
|
1320
|
+
const D = kf(w, S, $) || wn;
|
|
1321
1321
|
let j, W;
|
|
1322
1322
|
{
|
|
1323
1323
|
const R = y.useRef(null), G = R.current;
|
|
@@ -1331,8 +1331,8 @@ function sf(e, t, n) {
|
|
|
1331
1331
|
j = function(ce, le, se) {
|
|
1332
1332
|
const ye = Object.assign(Object.assign({}, le), { className: void 0, theme: se }), ve = ce.length > 1;
|
|
1333
1333
|
for (let Ue = 0; Ue < ce.length; Ue++) {
|
|
1334
|
-
const dt = ce[Ue],
|
|
1335
|
-
for (const de in
|
|
1334
|
+
const dt = ce[Ue], ft = us(dt) ? dt(ve ? Object.assign({}, ye) : ye) : dt;
|
|
1335
|
+
for (const de in ft) de === "className" ? ye.className = Wn(ye.className, ft[de]) : de === "style" ? ye.style = Object.assign(Object.assign({}, ye.style), ft[de]) : de in le && le[de] === void 0 || (ye[de] = ft[de]);
|
|
1336
1336
|
}
|
|
1337
1337
|
return "className" in le && typeof le.className == "string" && (ye.className = Wn(ye.className, le.className)), ye;
|
|
1338
1338
|
}(N, w, D), W = function(ce, le, se, ye) {
|
|
@@ -1354,16 +1354,16 @@ function sf(e, t, n) {
|
|
|
1354
1354
|
return W && (V += " " + W), j.className && (V += " " + j.className), F[Pr(K) && K.includes("-") ? "class" : "className"] = V, C && (F.ref = C), wd(K, F);
|
|
1355
1355
|
}(v, m, b);
|
|
1356
1356
|
}
|
|
1357
|
-
|
|
1358
|
-
let v = y.forwardRef(
|
|
1359
|
-
return v.attrs = d, v.componentStyle = h, v.displayName = c, v.shouldForwardProp =
|
|
1357
|
+
g.displayName = c;
|
|
1358
|
+
let v = y.forwardRef(g);
|
|
1359
|
+
return v.attrs = d, v.componentStyle = h, v.displayName = c, v.shouldForwardProp = f, v.foldedComponentIds = r ? Wn(s.foldedComponentIds, s.styledComponentId) : "", v.styledComponentId = l, v.target = r ? s.target : e, Object.defineProperty(v, "defaultProps", { get() {
|
|
1360
1360
|
return this._foldedDefaultProps;
|
|
1361
1361
|
}, set(m) {
|
|
1362
1362
|
this._foldedDefaultProps = r ? function(b, ...T) {
|
|
1363
1363
|
for (const w of T) ho(b, w, !0);
|
|
1364
1364
|
return b;
|
|
1365
1365
|
}({}, s.defaultProps, m) : m;
|
|
1366
|
-
} }), process.env.NODE_ENV !== "production" && (
|
|
1366
|
+
} }), process.env.NODE_ENV !== "production" && (xf(c, l), v.warnTooManyClasses = /* @__PURE__ */ ((m, b) => {
|
|
1367
1367
|
let T = {}, w = !1;
|
|
1368
1368
|
return (C) => {
|
|
1369
1369
|
!w && (T[C] = !0, Object.keys(T).length >= 200) && (console.warn(`Over 200 classes were generated for component ${m}${b ? ` with the id of "${b}"` : ""}.
|
|
@@ -1379,7 +1379,7 @@ Example:
|
|
|
1379
1379
|
};
|
|
1380
1380
|
})(c, l)), Go(v, () => `.${v.styledComponentId}`), o && Uc(v, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), v;
|
|
1381
1381
|
}
|
|
1382
|
-
var
|
|
1382
|
+
var ig = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "body", "button", "br", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "menu", "meter", "nav", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "slot", "small", "span", "strong", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "use"]);
|
|
1383
1383
|
function Yi(e, t) {
|
|
1384
1384
|
const n = [e[0]];
|
|
1385
1385
|
for (let r = 0, s = t.length; r < s; r += 1) n.push(t[r], e[r + 1]);
|
|
@@ -1396,12 +1396,12 @@ function vo(e, t, n = wn) {
|
|
|
1396
1396
|
const r = (s, ...o) => e(t, n, Jc(s, ...o));
|
|
1397
1397
|
return r.attrs = (s) => vo(e, t, Object.assign(Object.assign({}, n), { attrs: Array.prototype.concat(n.attrs, s).filter(Boolean) })), r.withConfig = (s) => vo(e, t, Object.assign(Object.assign({}, n), s)), r;
|
|
1398
1398
|
}
|
|
1399
|
-
const Qc = (e) => vo(
|
|
1400
|
-
|
|
1399
|
+
const Qc = (e) => vo(og, e), A = Qc;
|
|
1400
|
+
ig.forEach((e) => {
|
|
1401
1401
|
A[e] = Qc(e);
|
|
1402
1402
|
});
|
|
1403
1403
|
var Xc;
|
|
1404
|
-
class
|
|
1404
|
+
class ag {
|
|
1405
1405
|
constructor(t, n) {
|
|
1406
1406
|
this[Xc] = !0, this.inject = (r, s = yo) => {
|
|
1407
1407
|
const o = this.getName(s);
|
|
@@ -1417,10 +1417,10 @@ class af {
|
|
|
1417
1417
|
return t.hash ? this.name + jo(+t.hash >>> 0) : this.name;
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
|
-
function
|
|
1420
|
+
function cg(e, ...t) {
|
|
1421
1421
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
1422
|
-
const n =
|
|
1423
|
-
return new
|
|
1422
|
+
const n = go(Jc(e, ...t)), r = Pc(n);
|
|
1423
|
+
return new ag(r, n);
|
|
1424
1424
|
}
|
|
1425
1425
|
Xc = qc;
|
|
1426
1426
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
@@ -1430,7 +1430,7 @@ const Sr = `__sc-${Zt}__`;
|
|
|
1430
1430
|
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[Sr] || (window[Sr] = 0), window[Sr] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
1431
1431
|
|
|
1432
1432
|
See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info.`), window[Sr] += 1);
|
|
1433
|
-
const
|
|
1433
|
+
const lg = A.ul.attrs({ role: "list" })`
|
|
1434
1434
|
display: inline-flex;
|
|
1435
1435
|
flex-wrap: wrap;
|
|
1436
1436
|
gap: ${p.spacing.space4};
|
|
@@ -1443,7 +1443,7 @@ const lf = A.ul.attrs({ role: "list" })`
|
|
|
1443
1443
|
const [t, n] = De(!1);
|
|
1444
1444
|
if (!e.length) return null;
|
|
1445
1445
|
const r = e.slice(0, Li), s = e.slice(Li);
|
|
1446
|
-
return /* @__PURE__ */ O(
|
|
1446
|
+
return /* @__PURE__ */ O(lg, { children: [
|
|
1447
1447
|
r.map((o) => /* @__PURE__ */ u(Ji, { children: /* @__PURE__ */ u(Zn, { text: o.name, size: "small" }) }, String(o.id))),
|
|
1448
1448
|
s.length > 0 && /* @__PURE__ */ u(Ji, { children: /* @__PURE__ */ u(
|
|
1449
1449
|
Vt,
|
|
@@ -1471,7 +1471,7 @@ const lf = A.ul.attrs({ role: "list" })`
|
|
|
1471
1471
|
}
|
|
1472
1472
|
}), Fe = () => y.useContext(el);
|
|
1473
1473
|
function ae() {
|
|
1474
|
-
const { accounts: e, executeQuery: t, notify: n } =
|
|
1474
|
+
const { accounts: e, executeQuery: t, notify: n } = gc();
|
|
1475
1475
|
return { accountId: e[0].id, executeQuery: t, notify: n };
|
|
1476
1476
|
}
|
|
1477
1477
|
const Zo = ["inst-tagging-sr-polite-0", "inst-tagging-sr-polite-1"], tl = [
|
|
@@ -1491,30 +1491,30 @@ const Zo = ["inst-tagging-sr-polite-0", "inst-tagging-sr-polite-1"], tl = [
|
|
|
1491
1491
|
function _t() {
|
|
1492
1492
|
return document.getElementById(Zo[0]) ?? document.body;
|
|
1493
1493
|
}
|
|
1494
|
-
const
|
|
1494
|
+
const ug = () => hc(
|
|
1495
1495
|
/* @__PURE__ */ O(mn, { children: [
|
|
1496
1496
|
Zo.map((e) => /* @__PURE__ */ u(Kt, { id: e, role: "alert", "aria-atomic": !0, "aria-live": "polite" }, e)),
|
|
1497
1497
|
tl.map((e) => /* @__PURE__ */ u(Kt, { id: e, role: "alert", "aria-atomic": !0, "aria-live": "assertive" }, e))
|
|
1498
1498
|
] }),
|
|
1499
1499
|
document.body
|
|
1500
|
-
), Qi = { polite: 0, assertive: 0 },
|
|
1500
|
+
), Qi = { polite: 0, assertive: 0 }, dg = (e, t) => {
|
|
1501
1501
|
const n = t ? tl : Zo, r = t ? "assertive" : "polite", s = Qi[r], o = 1 - s;
|
|
1502
1502
|
Qi[r] = o;
|
|
1503
1503
|
const i = document.getElementById(n[s]), a = document.getElementById(n[o]);
|
|
1504
1504
|
a && (a.textContent = ""), i && (i.textContent = e);
|
|
1505
|
-
},
|
|
1505
|
+
}, fg = ({ children: e }) => {
|
|
1506
1506
|
const { notify: t } = ae(), n = y.useCallback(
|
|
1507
1507
|
(s) => {
|
|
1508
1508
|
const o = s.assertive || s.variant === "error" || s.variant === "warning";
|
|
1509
|
-
|
|
1509
|
+
dg(s.message, o), t({ type: s.variant, message: s.message });
|
|
1510
1510
|
},
|
|
1511
1511
|
[t]
|
|
1512
1512
|
), r = y.useMemo(() => ({ showAlert: n }), [n]);
|
|
1513
1513
|
return /* @__PURE__ */ O(el.Provider, { value: r, children: [
|
|
1514
|
-
/* @__PURE__ */ u(
|
|
1514
|
+
/* @__PURE__ */ u(ug, {}),
|
|
1515
1515
|
e
|
|
1516
1516
|
] });
|
|
1517
|
-
},
|
|
1517
|
+
}, fs = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
1518
1518
|
function Sn(e) {
|
|
1519
1519
|
const t = Object.prototype.toString.call(e);
|
|
1520
1520
|
return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
@@ -1542,8 +1542,8 @@ function nl(e) {
|
|
|
1542
1542
|
function xn(e) {
|
|
1543
1543
|
return e ? Sn(e) ? e.document : Yo(e) ? Ko(e) ? e : rr(e) || nl(e) ? e.ownerDocument : document : document : document;
|
|
1544
1544
|
}
|
|
1545
|
-
const vt =
|
|
1546
|
-
function
|
|
1545
|
+
const vt = fs ? bd : me;
|
|
1546
|
+
function gs(e) {
|
|
1547
1547
|
const t = ue(e);
|
|
1548
1548
|
return vt(() => {
|
|
1549
1549
|
t.current = e;
|
|
@@ -1553,7 +1553,7 @@ function fs(e) {
|
|
|
1553
1553
|
return t.current == null ? void 0 : t.current(...r);
|
|
1554
1554
|
}, []);
|
|
1555
1555
|
}
|
|
1556
|
-
function
|
|
1556
|
+
function gg() {
|
|
1557
1557
|
const e = ue(null), t = ke((r, s) => {
|
|
1558
1558
|
e.current = setInterval(r, s);
|
|
1559
1559
|
}, []), n = ke(() => {
|
|
@@ -1580,7 +1580,7 @@ function sr(e, t) {
|
|
|
1580
1580
|
);
|
|
1581
1581
|
}
|
|
1582
1582
|
function Gr(e) {
|
|
1583
|
-
const t =
|
|
1583
|
+
const t = gs(e), n = ue(null), r = ke(
|
|
1584
1584
|
(s) => {
|
|
1585
1585
|
s !== n.current && (t == null || t(s, n.current)), n.current = s;
|
|
1586
1586
|
},
|
|
@@ -1621,7 +1621,7 @@ function rl(e) {
|
|
|
1621
1621
|
};
|
|
1622
1622
|
}
|
|
1623
1623
|
const dn = /* @__PURE__ */ rl(1), Yr = /* @__PURE__ */ rl(-1);
|
|
1624
|
-
function
|
|
1624
|
+
function hg(e) {
|
|
1625
1625
|
return "clientX" in e && "clientY" in e;
|
|
1626
1626
|
}
|
|
1627
1627
|
function Jo(e) {
|
|
@@ -1632,7 +1632,7 @@ function Jo(e) {
|
|
|
1632
1632
|
} = Re(e.target);
|
|
1633
1633
|
return t && e instanceof t;
|
|
1634
1634
|
}
|
|
1635
|
-
function
|
|
1635
|
+
function mg(e) {
|
|
1636
1636
|
if (!e)
|
|
1637
1637
|
return !1;
|
|
1638
1638
|
const {
|
|
@@ -1641,7 +1641,7 @@ function mf(e) {
|
|
|
1641
1641
|
return t && e instanceof t;
|
|
1642
1642
|
}
|
|
1643
1643
|
function Kr(e) {
|
|
1644
|
-
if (
|
|
1644
|
+
if (mg(e)) {
|
|
1645
1645
|
if (e.touches && e.touches.length) {
|
|
1646
1646
|
const {
|
|
1647
1647
|
clientX: t,
|
|
@@ -1662,7 +1662,7 @@ function Kr(e) {
|
|
|
1662
1662
|
};
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
1665
|
-
return
|
|
1665
|
+
return hg(e) ? {
|
|
1666
1666
|
x: e.clientX,
|
|
1667
1667
|
y: e.clientY
|
|
1668
1668
|
} : null;
|
|
@@ -1707,23 +1707,23 @@ const Qn = /* @__PURE__ */ Object.freeze({
|
|
|
1707
1707
|
}
|
|
1708
1708
|
}
|
|
1709
1709
|
}), Xi = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
1710
|
-
function
|
|
1710
|
+
function pg(e) {
|
|
1711
1711
|
return e.matches(Xi) ? e : e.querySelector(Xi);
|
|
1712
1712
|
}
|
|
1713
|
-
const
|
|
1713
|
+
const yg = {
|
|
1714
1714
|
display: "none"
|
|
1715
1715
|
};
|
|
1716
|
-
function
|
|
1716
|
+
function vg(e) {
|
|
1717
1717
|
let {
|
|
1718
1718
|
id: t,
|
|
1719
1719
|
value: n
|
|
1720
1720
|
} = e;
|
|
1721
1721
|
return y.createElement("div", {
|
|
1722
1722
|
id: t,
|
|
1723
|
-
style:
|
|
1723
|
+
style: yg
|
|
1724
1724
|
}, n);
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1726
|
+
function wg(e) {
|
|
1727
1727
|
let {
|
|
1728
1728
|
id: t,
|
|
1729
1729
|
announcement: n,
|
|
@@ -1751,7 +1751,7 @@ function wf(e) {
|
|
|
1751
1751
|
"aria-atomic": !0
|
|
1752
1752
|
}, n);
|
|
1753
1753
|
}
|
|
1754
|
-
function
|
|
1754
|
+
function bg() {
|
|
1755
1755
|
const [e, t] = De("");
|
|
1756
1756
|
return {
|
|
1757
1757
|
announce: ke((r) => {
|
|
@@ -1761,7 +1761,7 @@ function bf() {
|
|
|
1761
1761
|
};
|
|
1762
1762
|
}
|
|
1763
1763
|
const sl = /* @__PURE__ */ nr(null);
|
|
1764
|
-
function
|
|
1764
|
+
function Tg(e) {
|
|
1765
1765
|
const t = jt(sl);
|
|
1766
1766
|
me(() => {
|
|
1767
1767
|
if (!t)
|
|
@@ -1769,7 +1769,7 @@ function Tf(e) {
|
|
|
1769
1769
|
return t(e);
|
|
1770
1770
|
}, [e, t]);
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1772
|
+
function Cg() {
|
|
1773
1773
|
const [e] = De(() => /* @__PURE__ */ new Set()), t = ke((r) => (e.add(r), () => e.delete(r)), [e]);
|
|
1774
1774
|
return [ke((r) => {
|
|
1775
1775
|
let {
|
|
@@ -1782,13 +1782,13 @@ function Cf() {
|
|
|
1782
1782
|
});
|
|
1783
1783
|
}, [e]), t];
|
|
1784
1784
|
}
|
|
1785
|
-
const
|
|
1785
|
+
const Sg = {
|
|
1786
1786
|
draggable: `
|
|
1787
1787
|
To pick up a draggable item, press the space bar.
|
|
1788
1788
|
While dragging, use the arrow keys to move the item.
|
|
1789
1789
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
1790
1790
|
`
|
|
1791
|
-
},
|
|
1791
|
+
}, xg = {
|
|
1792
1792
|
onDragStart(e) {
|
|
1793
1793
|
let {
|
|
1794
1794
|
active: t
|
|
@@ -1816,74 +1816,74 @@ const Sf = {
|
|
|
1816
1816
|
return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
|
|
1817
1817
|
}
|
|
1818
1818
|
};
|
|
1819
|
-
function
|
|
1819
|
+
function kg(e) {
|
|
1820
1820
|
let {
|
|
1821
|
-
announcements: t =
|
|
1821
|
+
announcements: t = xg,
|
|
1822
1822
|
container: n,
|
|
1823
1823
|
hiddenTextDescribedById: r,
|
|
1824
|
-
screenReaderInstructions: s =
|
|
1824
|
+
screenReaderInstructions: s = Sg
|
|
1825
1825
|
} = e;
|
|
1826
1826
|
const {
|
|
1827
1827
|
announce: o,
|
|
1828
1828
|
announcement: i
|
|
1829
|
-
} =
|
|
1829
|
+
} = bg(), a = hs("DndLiveRegion"), [c, l] = De(!1);
|
|
1830
1830
|
if (me(() => {
|
|
1831
1831
|
l(!0);
|
|
1832
|
-
}, []),
|
|
1833
|
-
onDragStart(
|
|
1832
|
+
}, []), Tg(he(() => ({
|
|
1833
|
+
onDragStart(f) {
|
|
1834
1834
|
let {
|
|
1835
1835
|
active: h
|
|
1836
|
-
} =
|
|
1836
|
+
} = f;
|
|
1837
1837
|
o(t.onDragStart({
|
|
1838
1838
|
active: h
|
|
1839
1839
|
}));
|
|
1840
1840
|
},
|
|
1841
|
-
onDragMove(
|
|
1841
|
+
onDragMove(f) {
|
|
1842
1842
|
let {
|
|
1843
1843
|
active: h,
|
|
1844
|
-
over:
|
|
1845
|
-
} =
|
|
1844
|
+
over: g
|
|
1845
|
+
} = f;
|
|
1846
1846
|
t.onDragMove && o(t.onDragMove({
|
|
1847
1847
|
active: h,
|
|
1848
|
-
over:
|
|
1848
|
+
over: g
|
|
1849
1849
|
}));
|
|
1850
1850
|
},
|
|
1851
|
-
onDragOver(
|
|
1851
|
+
onDragOver(f) {
|
|
1852
1852
|
let {
|
|
1853
1853
|
active: h,
|
|
1854
|
-
over:
|
|
1855
|
-
} =
|
|
1854
|
+
over: g
|
|
1855
|
+
} = f;
|
|
1856
1856
|
o(t.onDragOver({
|
|
1857
1857
|
active: h,
|
|
1858
|
-
over:
|
|
1858
|
+
over: g
|
|
1859
1859
|
}));
|
|
1860
1860
|
},
|
|
1861
|
-
onDragEnd(
|
|
1861
|
+
onDragEnd(f) {
|
|
1862
1862
|
let {
|
|
1863
1863
|
active: h,
|
|
1864
|
-
over:
|
|
1865
|
-
} =
|
|
1864
|
+
over: g
|
|
1865
|
+
} = f;
|
|
1866
1866
|
o(t.onDragEnd({
|
|
1867
1867
|
active: h,
|
|
1868
|
-
over:
|
|
1868
|
+
over: g
|
|
1869
1869
|
}));
|
|
1870
1870
|
},
|
|
1871
|
-
onDragCancel(
|
|
1871
|
+
onDragCancel(f) {
|
|
1872
1872
|
let {
|
|
1873
1873
|
active: h,
|
|
1874
|
-
over:
|
|
1875
|
-
} =
|
|
1874
|
+
over: g
|
|
1875
|
+
} = f;
|
|
1876
1876
|
o(t.onDragCancel({
|
|
1877
1877
|
active: h,
|
|
1878
|
-
over:
|
|
1878
|
+
over: g
|
|
1879
1879
|
}));
|
|
1880
1880
|
}
|
|
1881
1881
|
}), [o, t])), !c)
|
|
1882
1882
|
return null;
|
|
1883
|
-
const d = y.createElement(y.Fragment, null, y.createElement(
|
|
1883
|
+
const d = y.createElement(y.Fragment, null, y.createElement(vg, {
|
|
1884
1884
|
id: r,
|
|
1885
1885
|
value: s.draggable
|
|
1886
|
-
}), y.createElement(
|
|
1886
|
+
}), y.createElement(wg, {
|
|
1887
1887
|
id: a,
|
|
1888
1888
|
announcement: i
|
|
1889
1889
|
}));
|
|
@@ -1905,7 +1905,7 @@ function ea(e, t) {
|
|
|
1905
1905
|
[e, t]
|
|
1906
1906
|
);
|
|
1907
1907
|
}
|
|
1908
|
-
function
|
|
1908
|
+
function Ig() {
|
|
1909
1909
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
1910
1910
|
t[n] = arguments[n];
|
|
1911
1911
|
return he(
|
|
@@ -1921,7 +1921,7 @@ const ot = /* @__PURE__ */ Object.freeze({
|
|
|
1921
1921
|
function ol(e, t) {
|
|
1922
1922
|
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
1923
1923
|
}
|
|
1924
|
-
function
|
|
1924
|
+
function Ng(e, t) {
|
|
1925
1925
|
const n = Kr(e);
|
|
1926
1926
|
if (!n)
|
|
1927
1927
|
return "0 0";
|
|
@@ -1943,7 +1943,7 @@ function il(e, t) {
|
|
|
1943
1943
|
} = t;
|
|
1944
1944
|
return n - r;
|
|
1945
1945
|
}
|
|
1946
|
-
function
|
|
1946
|
+
function Eg(e, t) {
|
|
1947
1947
|
let {
|
|
1948
1948
|
data: {
|
|
1949
1949
|
value: n
|
|
@@ -1955,7 +1955,7 @@ function Ef(e, t) {
|
|
|
1955
1955
|
} = t;
|
|
1956
1956
|
return r - n;
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function Ag(e) {
|
|
1959
1959
|
let {
|
|
1960
1960
|
left: t,
|
|
1961
1961
|
top: n,
|
|
@@ -1976,7 +1976,7 @@ function Af(e) {
|
|
|
1976
1976
|
y: n + r
|
|
1977
1977
|
}];
|
|
1978
1978
|
}
|
|
1979
|
-
function
|
|
1979
|
+
function Og(e, t) {
|
|
1980
1980
|
if (!e || e.length === 0)
|
|
1981
1981
|
return null;
|
|
1982
1982
|
const [n] = e;
|
|
@@ -1988,7 +1988,7 @@ function ta(e, t, n) {
|
|
|
1988
1988
|
y: n + e.height * 0.5
|
|
1989
1989
|
};
|
|
1990
1990
|
}
|
|
1991
|
-
const
|
|
1991
|
+
const Dg = (e) => {
|
|
1992
1992
|
let {
|
|
1993
1993
|
collisionRect: t,
|
|
1994
1994
|
droppableRects: n,
|
|
@@ -2012,15 +2012,15 @@ const Df = (e) => {
|
|
|
2012
2012
|
}
|
|
2013
2013
|
return o.sort(il);
|
|
2014
2014
|
};
|
|
2015
|
-
function $
|
|
2015
|
+
function $g(e, t) {
|
|
2016
2016
|
const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), s = Math.min(t.left + t.width, e.left + e.width), o = Math.min(t.top + t.height, e.top + e.height), i = s - r, a = o - n;
|
|
2017
2017
|
if (r < s && n < o) {
|
|
2018
|
-
const c = t.width * t.height, l = e.width * e.height, d = i * a,
|
|
2019
|
-
return Number(
|
|
2018
|
+
const c = t.width * t.height, l = e.width * e.height, d = i * a, f = d / (c + l - d);
|
|
2019
|
+
return Number(f.toFixed(4));
|
|
2020
2020
|
}
|
|
2021
2021
|
return 0;
|
|
2022
2022
|
}
|
|
2023
|
-
const
|
|
2023
|
+
const Mg = (e) => {
|
|
2024
2024
|
let {
|
|
2025
2025
|
collisionRect: t,
|
|
2026
2026
|
droppableRects: n,
|
|
@@ -2032,7 +2032,7 @@ const Mf = (e) => {
|
|
|
2032
2032
|
id: i
|
|
2033
2033
|
} = o, a = n.get(i);
|
|
2034
2034
|
if (a) {
|
|
2035
|
-
const c = $
|
|
2035
|
+
const c = $g(a, t);
|
|
2036
2036
|
c > 0 && s.push({
|
|
2037
2037
|
id: i,
|
|
2038
2038
|
data: {
|
|
@@ -2042,9 +2042,9 @@ const Mf = (e) => {
|
|
|
2042
2042
|
});
|
|
2043
2043
|
}
|
|
2044
2044
|
}
|
|
2045
|
-
return s.sort(
|
|
2045
|
+
return s.sort(Eg);
|
|
2046
2046
|
};
|
|
2047
|
-
function
|
|
2047
|
+
function Rg(e, t) {
|
|
2048
2048
|
const {
|
|
2049
2049
|
top: n,
|
|
2050
2050
|
left: r,
|
|
@@ -2053,7 +2053,7 @@ function Rf(e, t) {
|
|
|
2053
2053
|
} = t;
|
|
2054
2054
|
return n <= e.y && e.y <= s && r <= e.x && e.x <= o;
|
|
2055
2055
|
}
|
|
2056
|
-
const
|
|
2056
|
+
const Lg = (e) => {
|
|
2057
2057
|
let {
|
|
2058
2058
|
droppableContainers: t,
|
|
2059
2059
|
droppableRects: n,
|
|
@@ -2066,8 +2066,8 @@ const Lf = (e) => {
|
|
|
2066
2066
|
const {
|
|
2067
2067
|
id: i
|
|
2068
2068
|
} = o, a = n.get(i);
|
|
2069
|
-
if (a &&
|
|
2070
|
-
const l =
|
|
2069
|
+
if (a && Rg(r, a)) {
|
|
2070
|
+
const l = Ag(a).reduce((f, h) => f + ol(r, h), 0), d = Number((l / 4).toFixed(4));
|
|
2071
2071
|
s.push({
|
|
2072
2072
|
id: i,
|
|
2073
2073
|
data: {
|
|
@@ -2079,7 +2079,7 @@ const Lf = (e) => {
|
|
|
2079
2079
|
}
|
|
2080
2080
|
return s.sort(il);
|
|
2081
2081
|
};
|
|
2082
|
-
function
|
|
2082
|
+
function Pg(e, t, n) {
|
|
2083
2083
|
return {
|
|
2084
2084
|
...e,
|
|
2085
2085
|
scaleX: t && n ? t.width / n.width : 1,
|
|
@@ -2092,7 +2092,7 @@ function al(e, t) {
|
|
|
2092
2092
|
y: e.top - t.top
|
|
2093
2093
|
} : ot;
|
|
2094
2094
|
}
|
|
2095
|
-
function
|
|
2095
|
+
function Fg(e) {
|
|
2096
2096
|
return function(n) {
|
|
2097
2097
|
for (var r = arguments.length, s = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
|
|
2098
2098
|
s[o - 1] = arguments[o];
|
|
@@ -2107,7 +2107,7 @@ function Ff(e) {
|
|
|
2107
2107
|
});
|
|
2108
2108
|
};
|
|
2109
2109
|
}
|
|
2110
|
-
const
|
|
2110
|
+
const Wg = /* @__PURE__ */ Fg(1);
|
|
2111
2111
|
function cl(e) {
|
|
2112
2112
|
if (e.startsWith("matrix3d(")) {
|
|
2113
2113
|
const t = e.slice(9, -1).split(/, /);
|
|
@@ -2128,7 +2128,7 @@ function cl(e) {
|
|
|
2128
2128
|
}
|
|
2129
2129
|
return null;
|
|
2130
2130
|
}
|
|
2131
|
-
function
|
|
2131
|
+
function Ug(e, t, n) {
|
|
2132
2132
|
const r = cl(t);
|
|
2133
2133
|
if (!r)
|
|
2134
2134
|
return e;
|
|
@@ -2137,28 +2137,28 @@ function Uf(e, t, n) {
|
|
|
2137
2137
|
scaleY: o,
|
|
2138
2138
|
x: i,
|
|
2139
2139
|
y: a
|
|
2140
|
-
} = r, c = e.left - i - (1 - s) * parseFloat(n), l = e.top - a - (1 - o) * parseFloat(n.slice(n.indexOf(" ") + 1)), d = s ? e.width / s : e.width,
|
|
2140
|
+
} = r, c = e.left - i - (1 - s) * parseFloat(n), l = e.top - a - (1 - o) * parseFloat(n.slice(n.indexOf(" ") + 1)), d = s ? e.width / s : e.width, f = o ? e.height / o : e.height;
|
|
2141
2141
|
return {
|
|
2142
2142
|
width: d,
|
|
2143
|
-
height:
|
|
2143
|
+
height: f,
|
|
2144
2144
|
top: l,
|
|
2145
2145
|
right: c + d,
|
|
2146
|
-
bottom: l +
|
|
2146
|
+
bottom: l + f,
|
|
2147
2147
|
left: c
|
|
2148
2148
|
};
|
|
2149
2149
|
}
|
|
2150
|
-
const
|
|
2150
|
+
const _g = {
|
|
2151
2151
|
ignoreTransform: !1
|
|
2152
2152
|
};
|
|
2153
2153
|
function or(e, t) {
|
|
2154
|
-
t === void 0 && (t =
|
|
2154
|
+
t === void 0 && (t = _g);
|
|
2155
2155
|
let n = e.getBoundingClientRect();
|
|
2156
2156
|
if (t.ignoreTransform) {
|
|
2157
2157
|
const {
|
|
2158
2158
|
transform: l,
|
|
2159
2159
|
transformOrigin: d
|
|
2160
2160
|
} = Re(e).getComputedStyle(e);
|
|
2161
|
-
l && (n =
|
|
2161
|
+
l && (n = Ug(n, l, d));
|
|
2162
2162
|
}
|
|
2163
2163
|
const {
|
|
2164
2164
|
top: r,
|
|
@@ -2182,7 +2182,7 @@ function na(e) {
|
|
|
2182
2182
|
ignoreTransform: !0
|
|
2183
2183
|
});
|
|
2184
2184
|
}
|
|
2185
|
-
function
|
|
2185
|
+
function zg(e) {
|
|
2186
2186
|
const t = e.innerWidth, n = e.innerHeight;
|
|
2187
2187
|
return {
|
|
2188
2188
|
top: 0,
|
|
@@ -2193,10 +2193,10 @@ function zf(e) {
|
|
|
2193
2193
|
height: n
|
|
2194
2194
|
};
|
|
2195
2195
|
}
|
|
2196
|
-
function
|
|
2196
|
+
function Vg(e, t) {
|
|
2197
2197
|
return t === void 0 && (t = Re(e).getComputedStyle(e)), t.position === "fixed";
|
|
2198
2198
|
}
|
|
2199
|
-
function
|
|
2199
|
+
function qg(e, t) {
|
|
2200
2200
|
t === void 0 && (t = Re(e).getComputedStyle(e));
|
|
2201
2201
|
const n = /(auto|scroll|overlay)/;
|
|
2202
2202
|
return ["overflow", "overflowX", "overflowY"].some((s) => {
|
|
@@ -2214,7 +2214,7 @@ function Qo(e, t) {
|
|
|
2214
2214
|
if (!rr(s) || nl(s) || n.includes(s))
|
|
2215
2215
|
return n;
|
|
2216
2216
|
const o = Re(e).getComputedStyle(s);
|
|
2217
|
-
return s !== e &&
|
|
2217
|
+
return s !== e && qg(s, o) && n.push(s), Vg(s, o) ? n : r(s.parentNode);
|
|
2218
2218
|
}
|
|
2219
2219
|
return e ? r(e) : n;
|
|
2220
2220
|
}
|
|
@@ -2223,7 +2223,7 @@ function ll(e) {
|
|
|
2223
2223
|
return t ?? null;
|
|
2224
2224
|
}
|
|
2225
2225
|
function Ls(e) {
|
|
2226
|
-
return !
|
|
2226
|
+
return !fs || !e ? null : Sn(e) ? e : Yo(e) ? Ko(e) || e === xn(e).scrollingElement ? window : rr(e) ? e : null : null;
|
|
2227
2227
|
}
|
|
2228
2228
|
function ul(e) {
|
|
2229
2229
|
return Sn(e) ? e.scrollX : e.scrollLeft;
|
|
@@ -2241,14 +2241,14 @@ var Se;
|
|
|
2241
2241
|
(function(e) {
|
|
2242
2242
|
e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
|
|
2243
2243
|
})(Se || (Se = {}));
|
|
2244
|
-
function gl(e) {
|
|
2245
|
-
return !gs || !e ? !1 : e === document.scrollingElement;
|
|
2246
|
-
}
|
|
2247
2244
|
function fl(e) {
|
|
2245
|
+
return !fs || !e ? !1 : e === document.scrollingElement;
|
|
2246
|
+
}
|
|
2247
|
+
function gl(e) {
|
|
2248
2248
|
const t = {
|
|
2249
2249
|
x: 0,
|
|
2250
2250
|
y: 0
|
|
2251
|
-
}, n =
|
|
2251
|
+
}, n = fl(e) ? {
|
|
2252
2252
|
height: window.innerHeight,
|
|
2253
2253
|
width: window.innerWidth
|
|
2254
2254
|
} : {
|
|
@@ -2267,24 +2267,24 @@ function fl(e) {
|
|
|
2267
2267
|
minScroll: t
|
|
2268
2268
|
};
|
|
2269
2269
|
}
|
|
2270
|
-
const
|
|
2270
|
+
const Bg = {
|
|
2271
2271
|
x: 0.2,
|
|
2272
2272
|
y: 0.2
|
|
2273
2273
|
};
|
|
2274
|
-
function
|
|
2274
|
+
function jg(e, t, n, r, s) {
|
|
2275
2275
|
let {
|
|
2276
2276
|
top: o,
|
|
2277
2277
|
left: i,
|
|
2278
2278
|
right: a,
|
|
2279
2279
|
bottom: c
|
|
2280
2280
|
} = n;
|
|
2281
|
-
r === void 0 && (r = 10), s === void 0 && (s =
|
|
2281
|
+
r === void 0 && (r = 10), s === void 0 && (s = Bg);
|
|
2282
2282
|
const {
|
|
2283
2283
|
isTop: l,
|
|
2284
2284
|
isBottom: d,
|
|
2285
|
-
isLeft:
|
|
2285
|
+
isLeft: f,
|
|
2286
2286
|
isRight: h
|
|
2287
|
-
} =
|
|
2287
|
+
} = gl(e), g = {
|
|
2288
2288
|
x: 0,
|
|
2289
2289
|
y: 0
|
|
2290
2290
|
}, v = {
|
|
@@ -2294,12 +2294,12 @@ function jf(e, t, n, r, s) {
|
|
|
2294
2294
|
height: t.height * s.y,
|
|
2295
2295
|
width: t.width * s.x
|
|
2296
2296
|
};
|
|
2297
|
-
return !l && o <= t.top + m.height ? (
|
|
2298
|
-
direction:
|
|
2297
|
+
return !l && o <= t.top + m.height ? (g.y = Se.Backward, v.y = r * Math.abs((t.top + m.height - o) / m.height)) : !d && c >= t.bottom - m.height && (g.y = Se.Forward, v.y = r * Math.abs((t.bottom - m.height - c) / m.height)), !h && a >= t.right - m.width ? (g.x = Se.Forward, v.x = r * Math.abs((t.right - m.width - a) / m.width)) : !f && i <= t.left + m.width && (g.x = Se.Backward, v.x = r * Math.abs((t.left + m.width - i) / m.width)), {
|
|
2298
|
+
direction: g,
|
|
2299
2299
|
speed: v
|
|
2300
2300
|
};
|
|
2301
2301
|
}
|
|
2302
|
-
function
|
|
2302
|
+
function Hg(e) {
|
|
2303
2303
|
if (e === document.scrollingElement) {
|
|
2304
2304
|
const {
|
|
2305
2305
|
innerWidth: o,
|
|
@@ -2332,10 +2332,10 @@ function Hf(e) {
|
|
|
2332
2332
|
function hl(e) {
|
|
2333
2333
|
return e.reduce((t, n) => dn(t, wo(n)), ot);
|
|
2334
2334
|
}
|
|
2335
|
-
function
|
|
2335
|
+
function Gg(e) {
|
|
2336
2336
|
return e.reduce((t, n) => t + ul(n), 0);
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function Zg(e) {
|
|
2339
2339
|
return e.reduce((t, n) => t + dl(n), 0);
|
|
2340
2340
|
}
|
|
2341
2341
|
function ml(e, t) {
|
|
@@ -2352,7 +2352,7 @@ function ml(e, t) {
|
|
|
2352
2352
|
inline: "center"
|
|
2353
2353
|
});
|
|
2354
2354
|
}
|
|
2355
|
-
const
|
|
2355
|
+
const Yg = [["x", ["left", "right"], Gg], ["y", ["top", "bottom"], Zg]];
|
|
2356
2356
|
class Xo {
|
|
2357
2357
|
constructor(t, n) {
|
|
2358
2358
|
this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
|
|
@@ -2360,7 +2360,7 @@ class Xo {
|
|
|
2360
2360
|
this.rect = {
|
|
2361
2361
|
...t
|
|
2362
2362
|
}, this.width = t.width, this.height = t.height;
|
|
2363
|
-
for (const [o, i, a] of
|
|
2363
|
+
for (const [o, i, a] of Yg)
|
|
2364
2364
|
for (const c of i)
|
|
2365
2365
|
Object.defineProperty(this, c, {
|
|
2366
2366
|
get: () => {
|
|
@@ -2388,7 +2388,7 @@ class Bn {
|
|
|
2388
2388
|
(s = this.target) == null || s.addEventListener(t, n, r), this.listeners.push([t, n, r]);
|
|
2389
2389
|
}
|
|
2390
2390
|
}
|
|
2391
|
-
function
|
|
2391
|
+
function Kg(e) {
|
|
2392
2392
|
const {
|
|
2393
2393
|
EventTarget: t
|
|
2394
2394
|
} = Re(e);
|
|
@@ -2405,7 +2405,7 @@ var Ke;
|
|
|
2405
2405
|
function ra(e) {
|
|
2406
2406
|
e.preventDefault();
|
|
2407
2407
|
}
|
|
2408
|
-
function
|
|
2408
|
+
function Jg(e) {
|
|
2409
2409
|
e.stopPropagation();
|
|
2410
2410
|
}
|
|
2411
2411
|
var Y;
|
|
@@ -2416,7 +2416,7 @@ const pl = {
|
|
|
2416
2416
|
start: [Y.Space, Y.Enter],
|
|
2417
2417
|
cancel: [Y.Esc],
|
|
2418
2418
|
end: [Y.Space, Y.Enter, Y.Tab]
|
|
2419
|
-
},
|
|
2419
|
+
}, Qg = (e, t) => {
|
|
2420
2420
|
let {
|
|
2421
2421
|
currentCoordinates: n
|
|
2422
2422
|
} = t;
|
|
@@ -2471,7 +2471,7 @@ class ei {
|
|
|
2471
2471
|
options: s
|
|
2472
2472
|
} = this.props, {
|
|
2473
2473
|
keyboardCodes: o = pl,
|
|
2474
|
-
coordinateGetter: i =
|
|
2474
|
+
coordinateGetter: i = Qg,
|
|
2475
2475
|
scrollBehavior: a = "smooth"
|
|
2476
2476
|
} = s, {
|
|
2477
2477
|
code: c
|
|
@@ -2491,13 +2491,13 @@ class ei {
|
|
|
2491
2491
|
y: l.top
|
|
2492
2492
|
} : ot;
|
|
2493
2493
|
this.referenceCoordinates || (this.referenceCoordinates = d);
|
|
2494
|
-
const
|
|
2494
|
+
const f = i(t, {
|
|
2495
2495
|
active: n,
|
|
2496
2496
|
context: r.current,
|
|
2497
2497
|
currentCoordinates: d
|
|
2498
2498
|
});
|
|
2499
|
-
if (
|
|
2500
|
-
const h = Yr(
|
|
2499
|
+
if (f) {
|
|
2500
|
+
const h = Yr(f, d), g = {
|
|
2501
2501
|
x: 0,
|
|
2502
2502
|
y: 0
|
|
2503
2503
|
}, {
|
|
@@ -2511,11 +2511,11 @@ class ei {
|
|
|
2511
2511
|
isBottom: N,
|
|
2512
2512
|
maxScroll: x,
|
|
2513
2513
|
minScroll: $
|
|
2514
|
-
} =
|
|
2515
|
-
x: Math.min(b === Y.Right ? k.right - k.width / 2 : k.right, Math.max(b === Y.Right ? k.left : k.left + k.width / 2,
|
|
2516
|
-
y: Math.min(b === Y.Down ? k.bottom - k.height / 2 : k.bottom, Math.max(b === Y.Down ? k.top : k.top + k.height / 2,
|
|
2514
|
+
} = gl(m), k = Hg(m), I = {
|
|
2515
|
+
x: Math.min(b === Y.Right ? k.right - k.width / 2 : k.right, Math.max(b === Y.Right ? k.left : k.left + k.width / 2, f.x)),
|
|
2516
|
+
y: Math.min(b === Y.Down ? k.bottom - k.height / 2 : k.bottom, Math.max(b === Y.Down ? k.top : k.top + k.height / 2, f.y))
|
|
2517
2517
|
}, L = b === Y.Right && !w || b === Y.Left && !C, S = b === Y.Down && !N || b === Y.Up && !T;
|
|
2518
|
-
if (L && I.x !==
|
|
2518
|
+
if (L && I.x !== f.x) {
|
|
2519
2519
|
const E = m.scrollLeft + h.x, P = b === Y.Right && E <= x.x || b === Y.Left && E >= $.x;
|
|
2520
2520
|
if (P && !h.y) {
|
|
2521
2521
|
m.scrollTo({
|
|
@@ -2524,12 +2524,12 @@ class ei {
|
|
|
2524
2524
|
});
|
|
2525
2525
|
return;
|
|
2526
2526
|
}
|
|
2527
|
-
P ?
|
|
2528
|
-
left: -
|
|
2527
|
+
P ? g.x = m.scrollLeft - E : g.x = b === Y.Right ? m.scrollLeft - x.x : m.scrollLeft - $.x, g.x && m.scrollBy({
|
|
2528
|
+
left: -g.x,
|
|
2529
2529
|
behavior: a
|
|
2530
2530
|
});
|
|
2531
2531
|
break;
|
|
2532
|
-
} else if (S && I.y !==
|
|
2532
|
+
} else if (S && I.y !== f.y) {
|
|
2533
2533
|
const E = m.scrollTop + h.y, P = b === Y.Down && E <= x.y || b === Y.Up && E >= $.y;
|
|
2534
2534
|
if (P && !h.x) {
|
|
2535
2535
|
m.scrollTo({
|
|
@@ -2538,14 +2538,14 @@ class ei {
|
|
|
2538
2538
|
});
|
|
2539
2539
|
return;
|
|
2540
2540
|
}
|
|
2541
|
-
P ?
|
|
2542
|
-
top: -
|
|
2541
|
+
P ? g.y = m.scrollTop - E : g.y = b === Y.Down ? m.scrollTop - x.y : m.scrollTop - $.y, g.y && m.scrollBy({
|
|
2542
|
+
top: -g.y,
|
|
2543
2543
|
behavior: a
|
|
2544
2544
|
});
|
|
2545
2545
|
break;
|
|
2546
2546
|
}
|
|
2547
2547
|
}
|
|
2548
|
-
this.handleMove(t, dn(Yr(
|
|
2548
|
+
this.handleMove(t, dn(Yr(f, this.referenceCoordinates), g));
|
|
2549
2549
|
}
|
|
2550
2550
|
}
|
|
2551
2551
|
}
|
|
@@ -2601,7 +2601,7 @@ function oa(e) {
|
|
|
2601
2601
|
class ti {
|
|
2602
2602
|
constructor(t, n, r) {
|
|
2603
2603
|
var s;
|
|
2604
|
-
r === void 0 && (r =
|
|
2604
|
+
r === void 0 && (r = Kg(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
|
|
2605
2605
|
const {
|
|
2606
2606
|
event: o
|
|
2607
2607
|
} = t, {
|
|
@@ -2655,7 +2655,7 @@ class ti {
|
|
|
2655
2655
|
} = this, {
|
|
2656
2656
|
onStart: n
|
|
2657
2657
|
} = this.props;
|
|
2658
|
-
t && (this.activated = !0, this.documentListeners.add(Ke.Click,
|
|
2658
|
+
t && (this.activated = !0, this.documentListeners.add(Ke.Click, Jg, {
|
|
2659
2659
|
capture: !0
|
|
2660
2660
|
}), this.removeTextSelection(), this.documentListeners.add(Ke.SelectionChange, this.removeTextSelection), n(t));
|
|
2661
2661
|
}
|
|
@@ -2710,7 +2710,7 @@ class ti {
|
|
|
2710
2710
|
(t = this.document.getSelection()) == null || t.removeAllRanges();
|
|
2711
2711
|
}
|
|
2712
2712
|
}
|
|
2713
|
-
const
|
|
2713
|
+
const Xg = {
|
|
2714
2714
|
cancel: {
|
|
2715
2715
|
name: "pointercancel"
|
|
2716
2716
|
},
|
|
@@ -2726,7 +2726,7 @@ class ni extends ti {
|
|
|
2726
2726
|
const {
|
|
2727
2727
|
event: n
|
|
2728
2728
|
} = t, r = xn(n.target);
|
|
2729
|
-
super(t,
|
|
2729
|
+
super(t, Xg, r);
|
|
2730
2730
|
}
|
|
2731
2731
|
}
|
|
2732
2732
|
ni.activators = [{
|
|
@@ -2834,13 +2834,13 @@ function rh(e) {
|
|
|
2834
2834
|
pointerCoordinates: c,
|
|
2835
2835
|
scrollableAncestors: l,
|
|
2836
2836
|
scrollableAncestorRects: d,
|
|
2837
|
-
delta:
|
|
2837
|
+
delta: f,
|
|
2838
2838
|
threshold: h
|
|
2839
2839
|
} = e;
|
|
2840
|
-
const
|
|
2841
|
-
delta:
|
|
2840
|
+
const g = oh({
|
|
2841
|
+
delta: f,
|
|
2842
2842
|
disabled: !o
|
|
2843
|
-
}), [v, m] =
|
|
2843
|
+
}), [v, m] = gg(), b = ue({
|
|
2844
2844
|
x: 0,
|
|
2845
2845
|
y: 0
|
|
2846
2846
|
}), T = ue({
|
|
@@ -2880,9 +2880,9 @@ function rh(e) {
|
|
|
2880
2880
|
const {
|
|
2881
2881
|
direction: L,
|
|
2882
2882
|
speed: S
|
|
2883
|
-
} =
|
|
2883
|
+
} = jg($, I, w, t, h);
|
|
2884
2884
|
for (const E of ["x", "y"])
|
|
2885
|
-
|
|
2885
|
+
g[E][L[E]] || (S[E] = 0, L[E] = 0);
|
|
2886
2886
|
if (S.x > 0 || S.y > 0) {
|
|
2887
2887
|
m(), C.current = $, v(N, i), b.current = S, T.current = L;
|
|
2888
2888
|
return;
|
|
@@ -2907,7 +2907,7 @@ function rh(e) {
|
|
|
2907
2907
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2908
2908
|
JSON.stringify(w),
|
|
2909
2909
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2910
|
-
JSON.stringify(
|
|
2910
|
+
JSON.stringify(g),
|
|
2911
2911
|
v,
|
|
2912
2912
|
l,
|
|
2913
2913
|
x,
|
|
@@ -2989,10 +2989,10 @@ function ch(e, t) {
|
|
|
2989
2989
|
frequency: a,
|
|
2990
2990
|
measure: c,
|
|
2991
2991
|
strategy: l
|
|
2992
|
-
} = s, d = ue(e),
|
|
2992
|
+
} = s, d = ue(e), f = b(), h = Jn(f), g = ke(function(T) {
|
|
2993
2993
|
T === void 0 && (T = []), !h.current && i((w) => w === null ? T : w.concat(T.filter((C) => !w.includes(C))));
|
|
2994
2994
|
}, [h]), v = ue(null), m = sr((T) => {
|
|
2995
|
-
if (
|
|
2995
|
+
if (f && !n)
|
|
2996
2996
|
return ia;
|
|
2997
2997
|
if (!T || T === ia || d.current !== e || o != null) {
|
|
2998
2998
|
const w = /* @__PURE__ */ new Map();
|
|
@@ -3009,15 +3009,15 @@ function ch(e, t) {
|
|
|
3009
3009
|
return w;
|
|
3010
3010
|
}
|
|
3011
3011
|
return T;
|
|
3012
|
-
}, [e, o, n,
|
|
3012
|
+
}, [e, o, n, f, c]);
|
|
3013
3013
|
return me(() => {
|
|
3014
3014
|
d.current = e;
|
|
3015
3015
|
}, [e]), me(
|
|
3016
3016
|
() => {
|
|
3017
|
-
|
|
3017
|
+
f || g();
|
|
3018
3018
|
},
|
|
3019
3019
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3020
|
-
[n,
|
|
3020
|
+
[n, f]
|
|
3021
3021
|
), me(
|
|
3022
3022
|
() => {
|
|
3023
3023
|
o && o.length > 0 && i(null);
|
|
@@ -3026,15 +3026,15 @@ function ch(e, t) {
|
|
|
3026
3026
|
[JSON.stringify(o)]
|
|
3027
3027
|
), me(
|
|
3028
3028
|
() => {
|
|
3029
|
-
|
|
3030
|
-
|
|
3029
|
+
f || typeof a != "number" || v.current !== null || (v.current = setTimeout(() => {
|
|
3030
|
+
g(), v.current = null;
|
|
3031
3031
|
}, a));
|
|
3032
3032
|
},
|
|
3033
3033
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3034
|
-
[a,
|
|
3034
|
+
[a, f, g, ...r]
|
|
3035
3035
|
), {
|
|
3036
3036
|
droppableRects: m,
|
|
3037
|
-
measureDroppableContainers:
|
|
3037
|
+
measureDroppableContainers: g,
|
|
3038
3038
|
measuringScheduled: o != null
|
|
3039
3039
|
};
|
|
3040
3040
|
function b() {
|
|
@@ -3059,7 +3059,7 @@ function uh(e) {
|
|
|
3059
3059
|
callback: t,
|
|
3060
3060
|
disabled: n
|
|
3061
3061
|
} = e;
|
|
3062
|
-
const r =
|
|
3062
|
+
const r = gs(t), s = he(() => {
|
|
3063
3063
|
if (n || typeof window > "u" || typeof window.MutationObserver > "u")
|
|
3064
3064
|
return;
|
|
3065
3065
|
const {
|
|
@@ -3074,7 +3074,7 @@ function ms(e) {
|
|
|
3074
3074
|
callback: t,
|
|
3075
3075
|
disabled: n
|
|
3076
3076
|
} = e;
|
|
3077
|
-
const r =
|
|
3077
|
+
const r = gs(t), s = he(
|
|
3078
3078
|
() => {
|
|
3079
3079
|
if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
|
|
3080
3080
|
return;
|
|
@@ -3112,9 +3112,9 @@ function aa(e, t, n) {
|
|
|
3112
3112
|
for (const l of c) {
|
|
3113
3113
|
const {
|
|
3114
3114
|
type: d,
|
|
3115
|
-
target:
|
|
3115
|
+
target: f
|
|
3116
3116
|
} = l;
|
|
3117
|
-
if (d === "childList" &&
|
|
3117
|
+
if (d === "childList" && f instanceof HTMLElement && f.contains(e)) {
|
|
3118
3118
|
o();
|
|
3119
3119
|
break;
|
|
3120
3120
|
}
|
|
@@ -3130,12 +3130,12 @@ function aa(e, t, n) {
|
|
|
3130
3130
|
})) : (a == null || a.disconnect(), i == null || i.disconnect());
|
|
3131
3131
|
}, [e]), r;
|
|
3132
3132
|
}
|
|
3133
|
-
function
|
|
3133
|
+
function fh(e) {
|
|
3134
3134
|
const t = ri(e);
|
|
3135
3135
|
return al(e, t);
|
|
3136
3136
|
}
|
|
3137
3137
|
const ca = [];
|
|
3138
|
-
function
|
|
3138
|
+
function gh(e) {
|
|
3139
3139
|
const t = ue(e), n = sr((r) => e ? r && r !== ca && e && t.current && e.parentNode === t.current.parentNode ? r : Qo(e) : ca, [e]);
|
|
3140
3140
|
return me(() => {
|
|
3141
3141
|
t.current = e;
|
|
@@ -3186,7 +3186,7 @@ function la(e, t) {
|
|
|
3186
3186
|
function mh(e) {
|
|
3187
3187
|
me(
|
|
3188
3188
|
() => {
|
|
3189
|
-
if (!
|
|
3189
|
+
if (!fs)
|
|
3190
3190
|
return;
|
|
3191
3191
|
const t = e.map((n) => {
|
|
3192
3192
|
let {
|
|
@@ -3221,14 +3221,14 @@ function ph(e, t) {
|
|
|
3221
3221
|
}, {}), [e, t]);
|
|
3222
3222
|
}
|
|
3223
3223
|
function yl(e) {
|
|
3224
|
-
return he(() => e ?
|
|
3224
|
+
return he(() => e ? zg(e) : null, [e]);
|
|
3225
3225
|
}
|
|
3226
3226
|
const ua = [];
|
|
3227
3227
|
function yh(e, t) {
|
|
3228
3228
|
t === void 0 && (t = or);
|
|
3229
3229
|
const [n] = e, r = yl(n ? Re(n) : null), [s, o] = De(ua);
|
|
3230
3230
|
function i() {
|
|
3231
|
-
o(() => e.length ? e.map((c) =>
|
|
3231
|
+
o(() => e.length ? e.map((c) => fl(c) ? r : new Xo(t(c), c)) : ua);
|
|
3232
3232
|
}
|
|
3233
3233
|
const a = ms({
|
|
3234
3234
|
callback: i
|
|
@@ -3254,10 +3254,10 @@ function vh(e) {
|
|
|
3254
3254
|
target: d
|
|
3255
3255
|
} of l)
|
|
3256
3256
|
if (rr(d)) {
|
|
3257
|
-
r((
|
|
3257
|
+
r((f) => {
|
|
3258
3258
|
const h = t(d);
|
|
3259
|
-
return
|
|
3260
|
-
...
|
|
3259
|
+
return f ? {
|
|
3260
|
+
...f,
|
|
3261
3261
|
width: h.width,
|
|
3262
3262
|
height: h.height
|
|
3263
3263
|
} : h;
|
|
@@ -3493,9 +3493,9 @@ function xh(e) {
|
|
|
3493
3493
|
for (const d of [c.current, l.current]) {
|
|
3494
3494
|
if (!d)
|
|
3495
3495
|
continue;
|
|
3496
|
-
const
|
|
3497
|
-
if (
|
|
3498
|
-
|
|
3496
|
+
const f = pg(d);
|
|
3497
|
+
if (f) {
|
|
3498
|
+
f.focus();
|
|
3499
3499
|
break;
|
|
3500
3500
|
}
|
|
3501
3501
|
}
|
|
@@ -3557,12 +3557,12 @@ function Ih(e) {
|
|
|
3557
3557
|
const l = t == null ? void 0 : t.node.current;
|
|
3558
3558
|
if (!l || l.isConnected === !1)
|
|
3559
3559
|
return;
|
|
3560
|
-
const d = n(l),
|
|
3561
|
-
if (i || (
|
|
3560
|
+
const d = n(l), f = al(d, r);
|
|
3561
|
+
if (i || (f.x = 0), a || (f.y = 0), o.current = !0, Math.abs(f.x) > 0 || Math.abs(f.y) > 0) {
|
|
3562
3562
|
const h = ll(l);
|
|
3563
3563
|
h && h.scrollBy({
|
|
3564
|
-
top:
|
|
3565
|
-
left:
|
|
3564
|
+
top: f.y,
|
|
3565
|
+
left: f.x
|
|
3566
3566
|
});
|
|
3567
3567
|
}
|
|
3568
3568
|
}, [t, i, a, r, n]);
|
|
@@ -3584,12 +3584,12 @@ const Nh = /* @__PURE__ */ Td(function(t) {
|
|
|
3584
3584
|
autoScroll: c = !0,
|
|
3585
3585
|
children: l,
|
|
3586
3586
|
sensors: d = wh,
|
|
3587
|
-
collisionDetection:
|
|
3587
|
+
collisionDetection: f = Mg,
|
|
3588
3588
|
measuring: h,
|
|
3589
|
-
modifiers:
|
|
3589
|
+
modifiers: g,
|
|
3590
3590
|
...v
|
|
3591
3591
|
} = t;
|
|
3592
|
-
const m = Cd(Sh, void 0, Ch), [b, T] = m, [w, C] =
|
|
3592
|
+
const m = Cd(Sh, void 0, Ch), [b, T] = m, [w, C] = Cg(), [N, x] = De(At.Uninitialized), $ = N === At.Initialized, {
|
|
3593
3593
|
draggable: {
|
|
3594
3594
|
active: k,
|
|
3595
3595
|
nodes: I,
|
|
@@ -3617,14 +3617,14 @@ const Nh = /* @__PURE__ */ Td(function(t) {
|
|
|
3617
3617
|
dragging: $,
|
|
3618
3618
|
dependencies: [L.x, L.y],
|
|
3619
3619
|
config: ce.droppable
|
|
3620
|
-
}), ve = ih(I, k), Ue = he(() => F ? Kr(F) : null, [F]), dt = yd(),
|
|
3620
|
+
}), ve = ih(I, k), Ue = he(() => F ? Kr(F) : null, [F]), dt = yd(), ft = lh(ve, ce.draggable.measure);
|
|
3621
3621
|
Ih({
|
|
3622
3622
|
activeNode: k != null ? I.get(k) : null,
|
|
3623
3623
|
config: dt.layoutShiftCompensation,
|
|
3624
|
-
initialRect:
|
|
3624
|
+
initialRect: ft,
|
|
3625
3625
|
measure: ce.draggable.measure
|
|
3626
3626
|
});
|
|
3627
|
-
const de = aa(ve, ce.draggable.measure,
|
|
3627
|
+
const de = aa(ve, ce.draggable.measure, ft), te = aa(ve ? ve.parentElement : null), oe = ue({
|
|
3628
3628
|
activatorEvent: null,
|
|
3629
3629
|
active: null,
|
|
3630
3630
|
activeNode: ve,
|
|
@@ -3640,7 +3640,7 @@ const Nh = /* @__PURE__ */ Td(function(t) {
|
|
|
3640
3640
|
scrollAdjustedTranslate: null
|
|
3641
3641
|
}), re = S.getNodeFor((n = oe.current.over) == null ? void 0 : n.id), Ge = vh({
|
|
3642
3642
|
measure: ce.dragOverlay.measure
|
|
3643
|
-
}), yr = (r = Ge.nodeRef.current) != null ? r : ve, Xt = $ ? (s = Ge.rect) != null ? s : de : null, ki = !!(Ge.nodeRef.current && Ge.rect), Ii =
|
|
3643
|
+
}), yr = (r = Ge.nodeRef.current) != null ? r : ve, Xt = $ ? (s = Ge.rect) != null ? s : de : null, ki = !!(Ge.nodeRef.current && Ge.rect), Ii = fh(ki ? null : de), xs = yl(yr ? Re(yr) : null), Ct = gh($ ? re ?? ve : null), vr = yh(Ct), wr = Tl(g, {
|
|
3644
3644
|
transform: {
|
|
3645
3645
|
x: L.x - Ii.x,
|
|
3646
3646
|
y: L.y - Ii.y,
|
|
@@ -3657,13 +3657,13 @@ const Nh = /* @__PURE__ */ Td(function(t) {
|
|
|
3657
3657
|
scrollableAncestors: Ct,
|
|
3658
3658
|
scrollableAncestorRects: vr,
|
|
3659
3659
|
windowRect: xs
|
|
3660
|
-
}), Ni = Ue ? dn(Ue, L) : null, Ei = hh(Ct), ud = la(Ei), dd = la(Ei, [de]), en = dn(wr, ud), tn = Xt ?
|
|
3660
|
+
}), Ni = Ue ? dn(Ue, L) : null, Ei = hh(Ct), ud = la(Ei), dd = la(Ei, [de]), en = dn(wr, ud), tn = Xt ? Wg(Xt, wr) : null, An = D && tn ? f({
|
|
3661
3661
|
active: D,
|
|
3662
3662
|
collisionRect: tn,
|
|
3663
3663
|
droppableRects: le,
|
|
3664
3664
|
droppableContainers: pe,
|
|
3665
3665
|
pointerCoordinates: Ni
|
|
3666
|
-
}) : null, Ai =
|
|
3666
|
+
}) : null, Ai = Og(An, "id"), [St, Oi] = De(null), fd = ki ? wr : dn(wr, dd), gd = Pg(fd, (o = St == null ? void 0 : St.rect) != null ? o : null, de), ks = ue(null), Di = ke(
|
|
3667
3667
|
(Ne, _e) => {
|
|
3668
3668
|
let {
|
|
3669
3669
|
sensor: ze,
|
|
@@ -3687,15 +3687,15 @@ const Nh = /* @__PURE__ */ Td(function(t) {
|
|
|
3687
3687
|
return;
|
|
3688
3688
|
const {
|
|
3689
3689
|
onDragAbort: ct
|
|
3690
|
-
} = R.current,
|
|
3690
|
+
} = R.current, gt = {
|
|
3691
3691
|
id: xe
|
|
3692
3692
|
};
|
|
3693
|
-
ct == null || ct(
|
|
3693
|
+
ct == null || ct(gt), w({
|
|
3694
3694
|
type: "onDragAbort",
|
|
3695
|
-
event:
|
|
3695
|
+
event: gt
|
|
3696
3696
|
});
|
|
3697
3697
|
},
|
|
3698
|
-
onPending(xe, kt, ct,
|
|
3698
|
+
onPending(xe, kt, ct, gt) {
|
|
3699
3699
|
if (!I.get(xe))
|
|
3700
3700
|
return;
|
|
3701
3701
|
const {
|
|
@@ -3704,7 +3704,7 @@ const Nh = /* @__PURE__ */ Td(function(t) {
|
|
|
3704
3704
|
id: xe,
|
|
3705
3705
|
constraint: kt,
|
|
3706
3706
|
initialCoordinates: ct,
|
|
3707
|
-
offset:
|
|
3707
|
+
offset: gt
|
|
3708
3708
|
};
|
|
3709
3709
|
Dn == null || Dn(It), w({
|
|
3710
3710
|
type: "onDragPending",
|
|
@@ -3719,7 +3719,7 @@ const Nh = /* @__PURE__ */ Td(function(t) {
|
|
|
3719
3719
|
if (!ct)
|
|
3720
3720
|
return;
|
|
3721
3721
|
const {
|
|
3722
|
-
onDragStart:
|
|
3722
|
+
onDragStart: gt
|
|
3723
3723
|
} = R.current, On = {
|
|
3724
3724
|
activatorEvent: Ve,
|
|
3725
3725
|
active: {
|
|
@@ -3729,7 +3729,7 @@ const Nh = /* @__PURE__ */ Td(function(t) {
|
|
|
3729
3729
|
}
|
|
3730
3730
|
};
|
|
3731
3731
|
br(() => {
|
|
3732
|
-
|
|
3732
|
+
gt == null || gt(On), x(At.Initializing), T({
|
|
3733
3733
|
type: Ce.DragStart,
|
|
3734
3734
|
initialCoordinates: xe,
|
|
3735
3735
|
active: kt
|
|
@@ -3753,7 +3753,7 @@ const Nh = /* @__PURE__ */ Td(function(t) {
|
|
|
3753
3753
|
return async function() {
|
|
3754
3754
|
const {
|
|
3755
3755
|
active: ct,
|
|
3756
|
-
collisions:
|
|
3756
|
+
collisions: gt,
|
|
3757
3757
|
over: On,
|
|
3758
3758
|
scrollAdjustedTranslate: Dn
|
|
3759
3759
|
} = oe.current;
|
|
@@ -3765,7 +3765,7 @@ const Nh = /* @__PURE__ */ Td(function(t) {
|
|
|
3765
3765
|
It = {
|
|
3766
3766
|
activatorEvent: Ve,
|
|
3767
3767
|
active: ct,
|
|
3768
|
-
collisions:
|
|
3768
|
+
collisions: gt,
|
|
3769
3769
|
delta: Dn,
|
|
3770
3770
|
over: On
|
|
3771
3771
|
}, xe === Ce.DragEnd && typeof $n == "function" && await Promise.resolve($n(It)) && (xe = Ce.DragCancel);
|
|
@@ -3939,10 +3939,10 @@ const Nh = /* @__PURE__ */ Td(function(t) {
|
|
|
3939
3939
|
}, y.createElement(bl.Provider, {
|
|
3940
3940
|
value: md
|
|
3941
3941
|
}, y.createElement(ps.Provider, {
|
|
3942
|
-
value:
|
|
3942
|
+
value: gd
|
|
3943
3943
|
}, l)), y.createElement(xh, {
|
|
3944
3944
|
disabled: (a == null ? void 0 : a.restoreFocus) === !1
|
|
3945
|
-
})), y.createElement(
|
|
3945
|
+
})), y.createElement(kg, {
|
|
3946
3946
|
...a,
|
|
3947
3947
|
hiddenTextDescribedById: G
|
|
3948
3948
|
}));
|
|
@@ -3969,35 +3969,35 @@ function Oh(e) {
|
|
|
3969
3969
|
active: c,
|
|
3970
3970
|
activeNodeRect: l,
|
|
3971
3971
|
ariaDescribedById: d,
|
|
3972
|
-
draggableNodes:
|
|
3972
|
+
draggableNodes: f,
|
|
3973
3973
|
over: h
|
|
3974
3974
|
} = jt(ir), {
|
|
3975
|
-
role:
|
|
3975
|
+
role: g = da,
|
|
3976
3976
|
roleDescription: v = "draggable",
|
|
3977
3977
|
tabIndex: m = 0
|
|
3978
3978
|
} = s ?? {}, b = (c == null ? void 0 : c.id) === t, T = jt(b ? ps : Eh), [w, C] = Gr(), [N, x] = Gr(), $ = ph(i, t), k = Jn(n);
|
|
3979
3979
|
vt(
|
|
3980
|
-
() => (
|
|
3980
|
+
() => (f.set(t, {
|
|
3981
3981
|
id: t,
|
|
3982
3982
|
key: o,
|
|
3983
3983
|
node: w,
|
|
3984
3984
|
activatorNode: N,
|
|
3985
3985
|
data: k
|
|
3986
3986
|
}), () => {
|
|
3987
|
-
const L =
|
|
3988
|
-
L && L.key === o &&
|
|
3987
|
+
const L = f.get(t);
|
|
3988
|
+
L && L.key === o && f.delete(t);
|
|
3989
3989
|
}),
|
|
3990
3990
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3991
|
-
[
|
|
3991
|
+
[f, t]
|
|
3992
3992
|
);
|
|
3993
3993
|
const I = he(() => ({
|
|
3994
|
-
role:
|
|
3994
|
+
role: g,
|
|
3995
3995
|
tabIndex: m,
|
|
3996
3996
|
"aria-disabled": r,
|
|
3997
|
-
"aria-pressed": b &&
|
|
3997
|
+
"aria-pressed": b && g === da ? !0 : void 0,
|
|
3998
3998
|
"aria-roledescription": v,
|
|
3999
3999
|
"aria-describedby": d.draggable
|
|
4000
|
-
}), [r,
|
|
4000
|
+
}), [r, g, m, b, v, d.draggable]);
|
|
4001
4001
|
return {
|
|
4002
4002
|
active: c,
|
|
4003
4003
|
activatorEvent: a,
|
|
@@ -4032,7 +4032,7 @@ function Mh(e) {
|
|
|
4032
4032
|
measureDroppableContainers: l
|
|
4033
4033
|
} = jt(ir), d = ue({
|
|
4034
4034
|
disabled: n
|
|
4035
|
-
}),
|
|
4035
|
+
}), f = ue(!1), h = ue(null), g = ue(null), {
|
|
4036
4036
|
disabled: v,
|
|
4037
4037
|
updateMeasurementsFor: m,
|
|
4038
4038
|
timeout: b
|
|
@@ -4041,12 +4041,12 @@ function Mh(e) {
|
|
|
4041
4041
|
...s
|
|
4042
4042
|
}, T = Jn(m ?? r), w = ke(
|
|
4043
4043
|
() => {
|
|
4044
|
-
if (!
|
|
4045
|
-
|
|
4044
|
+
if (!f.current) {
|
|
4045
|
+
f.current = !0;
|
|
4046
4046
|
return;
|
|
4047
4047
|
}
|
|
4048
|
-
|
|
4049
|
-
l(Array.isArray(T.current) ? T.current : [T.current]),
|
|
4048
|
+
g.current != null && clearTimeout(g.current), g.current = setTimeout(() => {
|
|
4049
|
+
l(Array.isArray(T.current) ? T.current : [T.current]), g.current = null;
|
|
4050
4050
|
}, b);
|
|
4051
4051
|
},
|
|
4052
4052
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -4055,10 +4055,10 @@ function Mh(e) {
|
|
|
4055
4055
|
callback: w,
|
|
4056
4056
|
disabled: v || !i
|
|
4057
4057
|
}), N = ke((I, L) => {
|
|
4058
|
-
C && (L && (C.unobserve(L),
|
|
4058
|
+
C && (L && (C.unobserve(L), f.current = !1), I && C.observe(I));
|
|
4059
4059
|
}, [C]), [x, $] = Gr(N), k = Jn(t);
|
|
4060
4060
|
return me(() => {
|
|
4061
|
-
!C || !x.current || (C.disconnect(),
|
|
4061
|
+
!C || !x.current || (C.disconnect(), f.current = !1, C.observe(x.current));
|
|
4062
4062
|
}, [x, C]), me(
|
|
4063
4063
|
() => (a({
|
|
4064
4064
|
type: Ce.RegisterDroppable,
|
|
@@ -4147,7 +4147,7 @@ const Fh = {
|
|
|
4147
4147
|
} = e;
|
|
4148
4148
|
if (!a)
|
|
4149
4149
|
return null;
|
|
4150
|
-
const
|
|
4150
|
+
const f = s ? l : {
|
|
4151
4151
|
...l,
|
|
4152
4152
|
scaleX: 1,
|
|
4153
4153
|
scaleY: 1
|
|
@@ -4157,8 +4157,8 @@ const Fh = {
|
|
|
4157
4157
|
height: a.height,
|
|
4158
4158
|
top: a.top,
|
|
4159
4159
|
left: a.left,
|
|
4160
|
-
transform: Qn.Transform.toString(
|
|
4161
|
-
transformOrigin: s && r ?
|
|
4160
|
+
transform: Qn.Transform.toString(f),
|
|
4161
|
+
transformOrigin: s && r ? Ng(r, a) : void 0,
|
|
4162
4162
|
transition: typeof d == "function" ? d(r) : d,
|
|
4163
4163
|
...c
|
|
4164
4164
|
};
|
|
@@ -4218,7 +4218,7 @@ function qh(e) {
|
|
|
4218
4218
|
droppableContainers: r,
|
|
4219
4219
|
measuringConfiguration: s
|
|
4220
4220
|
} = e;
|
|
4221
|
-
return
|
|
4221
|
+
return gs((o, i) => {
|
|
4222
4222
|
if (t === null)
|
|
4223
4223
|
return;
|
|
4224
4224
|
const a = n.get(o);
|
|
@@ -4232,8 +4232,8 @@ function qh(e) {
|
|
|
4232
4232
|
return;
|
|
4233
4233
|
const {
|
|
4234
4234
|
transform: d
|
|
4235
|
-
} = Re(i).getComputedStyle(i),
|
|
4236
|
-
if (!
|
|
4235
|
+
} = Re(i).getComputedStyle(i), f = cl(d);
|
|
4236
|
+
if (!f)
|
|
4237
4237
|
return;
|
|
4238
4238
|
const h = typeof t == "function" ? t : Bh(t);
|
|
4239
4239
|
return ml(c, s.draggable.measure), h({
|
|
@@ -4250,7 +4250,7 @@ function qh(e) {
|
|
|
4250
4250
|
},
|
|
4251
4251
|
droppableContainers: r,
|
|
4252
4252
|
measuringConfiguration: s,
|
|
4253
|
-
transform:
|
|
4253
|
+
transform: f
|
|
4254
4254
|
});
|
|
4255
4255
|
});
|
|
4256
4256
|
}
|
|
@@ -4276,14 +4276,14 @@ function Bh(e) {
|
|
|
4276
4276
|
const d = {
|
|
4277
4277
|
x: a.rect.left - i.rect.left,
|
|
4278
4278
|
y: a.rect.top - i.rect.top
|
|
4279
|
-
},
|
|
4279
|
+
}, f = {
|
|
4280
4280
|
scaleX: c.scaleX !== 1 ? i.rect.width * c.scaleX / a.rect.width : 1,
|
|
4281
4281
|
scaleY: c.scaleY !== 1 ? i.rect.height * c.scaleY / a.rect.height : 1
|
|
4282
4282
|
}, h = {
|
|
4283
4283
|
x: c.x - d.x,
|
|
4284
4284
|
y: c.y - d.y,
|
|
4285
|
-
...
|
|
4286
|
-
},
|
|
4285
|
+
...f
|
|
4286
|
+
}, g = s({
|
|
4287
4287
|
...l,
|
|
4288
4288
|
active: i,
|
|
4289
4289
|
dragOverlay: a,
|
|
@@ -4291,14 +4291,14 @@ function Bh(e) {
|
|
|
4291
4291
|
initial: c,
|
|
4292
4292
|
final: h
|
|
4293
4293
|
}
|
|
4294
|
-
}), [v] =
|
|
4294
|
+
}), [v] = g, m = g[g.length - 1];
|
|
4295
4295
|
if (JSON.stringify(v) === JSON.stringify(m))
|
|
4296
4296
|
return;
|
|
4297
4297
|
const b = r == null ? void 0 : r({
|
|
4298
4298
|
active: i,
|
|
4299
4299
|
dragOverlay: a,
|
|
4300
4300
|
...l
|
|
4301
|
-
}), T = a.node.animate(
|
|
4301
|
+
}), T = a.node.animate(g, {
|
|
4302
4302
|
duration: t,
|
|
4303
4303
|
easing: n,
|
|
4304
4304
|
fill: "forwards"
|
|
@@ -4310,11 +4310,11 @@ function Bh(e) {
|
|
|
4310
4310
|
});
|
|
4311
4311
|
};
|
|
4312
4312
|
}
|
|
4313
|
-
let
|
|
4313
|
+
let fa = 0;
|
|
4314
4314
|
function jh(e) {
|
|
4315
4315
|
return he(() => {
|
|
4316
4316
|
if (e != null)
|
|
4317
|
-
return
|
|
4317
|
+
return fa++, fa;
|
|
4318
4318
|
}, [e]);
|
|
4319
4319
|
}
|
|
4320
4320
|
const Hh = /* @__PURE__ */ y.memo((e) => {
|
|
@@ -4331,9 +4331,9 @@ const Hh = /* @__PURE__ */ y.memo((e) => {
|
|
|
4331
4331
|
} = e;
|
|
4332
4332
|
const {
|
|
4333
4333
|
activatorEvent: d,
|
|
4334
|
-
active:
|
|
4334
|
+
active: f,
|
|
4335
4335
|
activeNodeRect: h,
|
|
4336
|
-
containerNodeRect:
|
|
4336
|
+
containerNodeRect: g,
|
|
4337
4337
|
draggableNodes: v,
|
|
4338
4338
|
droppableContainers: m,
|
|
4339
4339
|
dragOverlay: b,
|
|
@@ -4342,11 +4342,11 @@ const Hh = /* @__PURE__ */ y.memo((e) => {
|
|
|
4342
4342
|
scrollableAncestors: C,
|
|
4343
4343
|
scrollableAncestorRects: N,
|
|
4344
4344
|
windowRect: x
|
|
4345
|
-
} = Cl(), $ = jt(ps), k = jh(
|
|
4345
|
+
} = Cl(), $ = jt(ps), k = jh(f == null ? void 0 : f.id), I = Tl(i, {
|
|
4346
4346
|
activatorEvent: d,
|
|
4347
|
-
active:
|
|
4347
|
+
active: f,
|
|
4348
4348
|
activeNodeRect: h,
|
|
4349
|
-
containerNodeRect:
|
|
4349
|
+
containerNodeRect: g,
|
|
4350
4350
|
draggingNodeRect: b.rect,
|
|
4351
4351
|
over: T,
|
|
4352
4352
|
overlayNodeRect: b.rect,
|
|
@@ -4362,9 +4362,9 @@ const Hh = /* @__PURE__ */ y.memo((e) => {
|
|
|
4362
4362
|
}), E = L ? b.setRef : void 0;
|
|
4363
4363
|
return y.createElement(Ph, null, y.createElement(Rh, {
|
|
4364
4364
|
animation: S
|
|
4365
|
-
},
|
|
4365
|
+
}, f && k ? y.createElement(Uh, {
|
|
4366
4366
|
key: k,
|
|
4367
|
-
id:
|
|
4367
|
+
id: f.id,
|
|
4368
4368
|
ref: E,
|
|
4369
4369
|
as: a,
|
|
4370
4370
|
activatorEvent: d,
|
|
@@ -4395,7 +4395,7 @@ const Hh = /* @__PURE__ */ y.memo((e) => {
|
|
|
4395
4395
|
canCreate: !1,
|
|
4396
4396
|
canEdit: !1
|
|
4397
4397
|
}), Yh = ({ children: e }) => {
|
|
4398
|
-
const { permissions: t } =
|
|
4398
|
+
const { permissions: t } = gc(), n = t.canView ?? !1, r = (t.canCreate ?? !1) && n, s = (t.canEdit ?? !1) && n, o = y.useMemo(
|
|
4399
4399
|
() => ({ canView: n, canCreate: r, canEdit: s }),
|
|
4400
4400
|
[n, r, s]
|
|
4401
4401
|
);
|
|
@@ -4543,7 +4543,7 @@ const Co = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4543
4543
|
moreButtonRef: i,
|
|
4544
4544
|
dragHandleRef: a
|
|
4545
4545
|
}) => {
|
|
4546
|
-
const { translations: c, resolveToken: l } = z(), { canCreate: d, canEdit:
|
|
4546
|
+
const { translations: c, resolveToken: l } = z(), { canCreate: d, canEdit: f } = Jt(), { archiveEnabled: h } = Pt(), g = e.associationsCount === 0, { setActivatorNodeRef: v, setNodeRef: m, listeners: b, attributes: T, isDragging: w } = Oh({
|
|
4547
4547
|
id: e.id,
|
|
4548
4548
|
data: { tag: e }
|
|
4549
4549
|
}), C = () => {
|
|
@@ -4576,14 +4576,14 @@ const Co = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4576
4576
|
}
|
|
4577
4577
|
] : []
|
|
4578
4578
|
];
|
|
4579
|
-
return Co(N, { canEdit:
|
|
4579
|
+
return Co(N, { canEdit: f, canCreate: d });
|
|
4580
4580
|
};
|
|
4581
4581
|
return /* @__PURE__ */ u(xl, { ref: m, children: /* @__PURE__ */ u(
|
|
4582
4582
|
kd,
|
|
4583
4583
|
{
|
|
4584
4584
|
variant: "inverse",
|
|
4585
4585
|
placement: "start top",
|
|
4586
|
-
formatOutput: () =>
|
|
4586
|
+
formatOutput: () => g ? /* @__PURE__ */ u(Ed, { color: "error", size: "x-small" }) : /* @__PURE__ */ u("span", { "aria-hidden": !0 }),
|
|
4587
4587
|
children: /* @__PURE__ */ u(
|
|
4588
4588
|
si,
|
|
4589
4589
|
{
|
|
@@ -4688,14 +4688,14 @@ const Co = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4688
4688
|
width: 100%;
|
|
4689
4689
|
overflow: hidden;
|
|
4690
4690
|
transition: border-color 0.15s ease;
|
|
4691
|
-
`,
|
|
4691
|
+
`, fm = A.div`
|
|
4692
4692
|
position: absolute;
|
|
4693
4693
|
inset: 0;
|
|
4694
4694
|
background: ${am(p.colors.contrasts.blue4570, 0.12)};
|
|
4695
4695
|
border-radius: ${p.borders.radiusLarge};
|
|
4696
4696
|
pointer-events: none;
|
|
4697
4697
|
z-index: ${p.stacking.above};
|
|
4698
|
-
`,
|
|
4698
|
+
`, gm = A.div`
|
|
4699
4699
|
background: ${p.colors.contrasts.grey100100};
|
|
4700
4700
|
color: ${p.colors.contrasts.white1010};
|
|
4701
4701
|
border-radius: ${p.borders.radiusLarge} ${p.borders.radiusLarge} 0 0;
|
|
@@ -4714,7 +4714,7 @@ const Co = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4714
4714
|
flex-direction: column;
|
|
4715
4715
|
flex: 1;
|
|
4716
4716
|
min-width: 0;
|
|
4717
|
-
`,
|
|
4717
|
+
`, ga = A.div`
|
|
4718
4718
|
display: flex;
|
|
4719
4719
|
flex-direction: ${({ $isMobile: e }) => e ? "column" : "row"};
|
|
4720
4720
|
justify-content: space-between;
|
|
@@ -4799,9 +4799,9 @@ const Co = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4799
4799
|
pendingFocusRef: t
|
|
4800
4800
|
}) => {
|
|
4801
4801
|
const n = y.useCallback(
|
|
4802
|
-
(l, d,
|
|
4802
|
+
(l, d, f) => {
|
|
4803
4803
|
const h = t.current;
|
|
4804
|
-
|
|
4804
|
+
f && h && h.tagId === l && h.target === d && (f.focus(), t.current = null);
|
|
4805
4805
|
},
|
|
4806
4806
|
[t]
|
|
4807
4807
|
), r = y.useCallback(
|
|
@@ -5041,11 +5041,11 @@ const El = Ie`
|
|
|
5041
5041
|
forTag: (e) => ["accountUsers", e],
|
|
5042
5042
|
list: (e, t, n) => ["accountUsers", e, t, n]
|
|
5043
5043
|
}
|
|
5044
|
-
}, X = (e) => ({ kind: "invalidate", queryKey: e }), Ws = (e) => ({ kind: "reset", queryKey: e }),
|
|
5044
|
+
}, X = (e) => ({ kind: "invalidate", queryKey: e }), Ws = (e) => ({ kind: "reset", queryKey: e }), fn = (e, t) => e ? [
|
|
5045
5045
|
Ws(q.tags.inCategory(e)),
|
|
5046
5046
|
...t && t !== e ? [Ws(q.tags.inCategory(t))] : []
|
|
5047
5047
|
] : [Ws(q.tags.root)], ma = (e, t, n) => [
|
|
5048
|
-
...
|
|
5048
|
+
...fn(e, n),
|
|
5049
5049
|
X(q.categories.root),
|
|
5050
5050
|
X(q.allTagNames.root),
|
|
5051
5051
|
// allActiveTags reflects tag membership, so it is a genuine data dependency.
|
|
@@ -5059,7 +5059,7 @@ const El = Ie`
|
|
|
5059
5059
|
// harmless and keeps the pair symmetric.
|
|
5060
5060
|
X(q.tagUsers.forTag(t))
|
|
5061
5061
|
], pa = (e) => [
|
|
5062
|
-
...
|
|
5062
|
+
...fn(e),
|
|
5063
5063
|
X(q.categories.root),
|
|
5064
5064
|
X(q.allCategories.root),
|
|
5065
5065
|
X(q.allActiveTags.root),
|
|
@@ -5071,7 +5071,7 @@ const El = Ie`
|
|
|
5071
5071
|
X(q.accountUsers.forTag(e)),
|
|
5072
5072
|
// Association counts shown on the category card / tag pill.
|
|
5073
5073
|
X(q.categories.root),
|
|
5074
|
-
...
|
|
5074
|
+
...fn(t)
|
|
5075
5075
|
], Om = {
|
|
5076
5076
|
"category.created": () => [X(q.categories.root), X(q.allCategories.root)],
|
|
5077
5077
|
// Rename reaches the category-name group labels in AssignTagsModal (allActiveTags).
|
|
@@ -5084,7 +5084,7 @@ const El = Ie`
|
|
|
5084
5084
|
"category.restored": ({ categoryId: e }) => pa(e),
|
|
5085
5085
|
"tag.created": ({ categoryId: e, categoryCreated: t }) => [
|
|
5086
5086
|
X(q.categories.root),
|
|
5087
|
-
...
|
|
5087
|
+
...fn(e),
|
|
5088
5088
|
X(q.allTagNames.root),
|
|
5089
5089
|
X(q.allActiveTags.root),
|
|
5090
5090
|
// Only when a new category was created inline as part of the tag-create flow.
|
|
@@ -5094,7 +5094,7 @@ const El = Ie`
|
|
|
5094
5094
|
X(q.categories.root),
|
|
5095
5095
|
// previousCategoryId set means the edit also moved the tag — same eviction
|
|
5096
5096
|
// as tag.moved, for the same cursor reason.
|
|
5097
|
-
...
|
|
5097
|
+
...fn(t, n),
|
|
5098
5098
|
X(q.allTagNames.root),
|
|
5099
5099
|
X(q.allActiveTags.root),
|
|
5100
5100
|
// Tag name is shown in the TagDetail people-table header.
|
|
@@ -5105,7 +5105,7 @@ const El = Ie`
|
|
|
5105
5105
|
"tag.archived": ({ tagId: e, categoryId: t }) => ma(t, e),
|
|
5106
5106
|
"tag.restored": ({ tagId: e, categoryId: t, newCategoryId: n }) => ma(t, e, n),
|
|
5107
5107
|
"tag.moved": ({ fromCategoryId: e, toCategoryId: t }) => [
|
|
5108
|
-
...
|
|
5108
|
+
...fn(e, t),
|
|
5109
5109
|
X(q.categories.root),
|
|
5110
5110
|
X(q.allTagNames.root),
|
|
5111
5111
|
X(q.allActiveTags.root)
|
|
@@ -5133,45 +5133,45 @@ const El = Ie`
|
|
|
5133
5133
|
[e]
|
|
5134
5134
|
);
|
|
5135
5135
|
}, Ml = () => {
|
|
5136
|
-
const e = He(), { showAlert: t } = Fe(), { resolveToken: n } = z(), { executeQuery: r } = ae(), s = y.useRef(void 0), o = y.useRef(void 0), i = y.useRef(""), a = async (h,
|
|
5136
|
+
const e = He(), { showAlert: t } = Fe(), { resolveToken: n } = z(), { executeQuery: r } = ae(), s = y.useRef(void 0), o = y.useRef(void 0), i = y.useRef(""), a = async (h, g) => {
|
|
5137
5137
|
await e(
|
|
5138
5138
|
"tag.moved",
|
|
5139
|
-
{ fromCategoryId: h, toCategoryId:
|
|
5139
|
+
{ fromCategoryId: h, toCategoryId: g },
|
|
5140
5140
|
{ await: !0 }
|
|
5141
5141
|
);
|
|
5142
5142
|
}, c = (h) => {
|
|
5143
5143
|
h && cr(h) ? t({ message: n("tagMoveConflict"), variant: "error" }) : t({ message: n("tagMoveFailed"), variant: "error" });
|
|
5144
5144
|
}, { mutate: l } = je({
|
|
5145
|
-
mutationFn: ({ tag: h, categoryId:
|
|
5145
|
+
mutationFn: ({ tag: h, categoryId: g }) => r(
|
|
5146
5146
|
ii,
|
|
5147
|
-
{ input: { id: h.id, name: h.name, description: h.description, categoryId:
|
|
5147
|
+
{ input: { id: h.id, name: h.name, description: h.description, categoryId: g } }
|
|
5148
5148
|
),
|
|
5149
|
-
onSuccess: async (h, { sourceCategoryId:
|
|
5149
|
+
onSuccess: async (h, { sourceCategoryId: g, categoryId: v, categoryName: m, onSettled: b }) => {
|
|
5150
5150
|
if (Pe(h.updateInstitutionalTag)) {
|
|
5151
|
-
await a(
|
|
5151
|
+
await a(g, v), c(h.updateInstitutionalTag), b == null || b();
|
|
5152
5152
|
return;
|
|
5153
5153
|
}
|
|
5154
|
-
await a(
|
|
5154
|
+
await a(g, v), t({
|
|
5155
5155
|
message: n({ key: "tagMoved", vars: { categoryName: m } }),
|
|
5156
5156
|
variant: "success"
|
|
5157
5157
|
}), b == null || b();
|
|
5158
5158
|
},
|
|
5159
|
-
onError: async (h, { sourceCategoryId:
|
|
5160
|
-
await a(
|
|
5159
|
+
onError: async (h, { sourceCategoryId: g, categoryId: v, onSettled: m }) => {
|
|
5160
|
+
await a(g, v), c(), m == null || m();
|
|
5161
5161
|
}
|
|
5162
5162
|
});
|
|
5163
5163
|
return {
|
|
5164
5164
|
handleMoveTag: (h) => {
|
|
5165
|
-
const
|
|
5166
|
-
|
|
5165
|
+
const g = o.current;
|
|
5166
|
+
g !== void 0 && l({
|
|
5167
5167
|
tag: h,
|
|
5168
5168
|
sourceCategoryId: h.category.id,
|
|
5169
|
-
categoryId:
|
|
5169
|
+
categoryId: g,
|
|
5170
5170
|
categoryName: i.current
|
|
5171
5171
|
});
|
|
5172
5172
|
},
|
|
5173
|
-
moveTagDirect: (h,
|
|
5174
|
-
l({ tag: h, sourceCategoryId: h.category.id, categoryId:
|
|
5173
|
+
moveTagDirect: (h, g, v, m) => {
|
|
5174
|
+
l({ tag: h, sourceCategoryId: h.category.id, categoryId: g, categoryName: v, onSettled: m });
|
|
5175
5175
|
},
|
|
5176
5176
|
validateRef: s,
|
|
5177
5177
|
selectedCategoryRef: o,
|
|
@@ -5184,17 +5184,17 @@ const El = Ie`
|
|
|
5184
5184
|
const [e, t] = y.useState(null), [n, r] = y.useState(null), [s, o] = y.useState(null), { moveTagDirect: i } = Ml(), { setPendingFocus: a, requestCategoryExpand: c } = oi(), { resolveToken: l } = z(), d = (b) => {
|
|
5185
5185
|
const T = sn(b.active);
|
|
5186
5186
|
T && (t(T), r(T.category.id));
|
|
5187
|
-
},
|
|
5187
|
+
}, f = y.useRef(!1), h = (b) => {
|
|
5188
5188
|
var $, k;
|
|
5189
5189
|
const { active: T, over: w } = b;
|
|
5190
|
-
if (t(null), r(null),
|
|
5190
|
+
if (t(null), r(null), f.current = !1, !w) return;
|
|
5191
5191
|
const C = sn(T);
|
|
5192
5192
|
if (!C) return;
|
|
5193
5193
|
const N = String(w.id);
|
|
5194
5194
|
if (N === C.category.id) return;
|
|
5195
5195
|
const x = (($ = w.data.current) == null ? void 0 : $.categoryName) ?? "";
|
|
5196
|
-
((k = b.activatorEvent) == null ? void 0 : k.type) === "keydown" && (a(C.id, "dragHandle"),
|
|
5197
|
-
},
|
|
5196
|
+
((k = b.activatorEvent) == null ? void 0 : k.type) === "keydown" && (a(C.id, "dragHandle"), f.current = c(N)), o({ tagId: C.id, sourceCategoryId: C.category.id, targetCategoryId: N }), i(C, N, x, () => o(null));
|
|
5197
|
+
}, g = () => {
|
|
5198
5198
|
t(null), r(null);
|
|
5199
5199
|
}, v = y.useMemo(
|
|
5200
5200
|
() => ({
|
|
@@ -5224,7 +5224,7 @@ const El = Ie`
|
|
|
5224
5224
|
});
|
|
5225
5225
|
const C = ((N = T.data.current) == null ? void 0 : N.categoryName) ?? "";
|
|
5226
5226
|
return String(T.id) !== w.category.id ? l({
|
|
5227
|
-
key:
|
|
5227
|
+
key: f.current ? "dragDroppedCategoryExpanded" : "dragDropped",
|
|
5228
5228
|
vars: { tagName: w.name, categoryName: C }
|
|
5229
5229
|
}) : l({ key: "dragDroppedSameCategory", vars: { tagName: w.name } });
|
|
5230
5230
|
},
|
|
@@ -5245,14 +5245,14 @@ const El = Ie`
|
|
|
5245
5245
|
pendingMove: s,
|
|
5246
5246
|
handleDragStart: d,
|
|
5247
5247
|
handleDragEnd: h,
|
|
5248
|
-
handleDragCancel:
|
|
5248
|
+
handleDragCancel: g,
|
|
5249
5249
|
announcements: v,
|
|
5250
5250
|
screenReaderInstructions: m
|
|
5251
5251
|
};
|
|
5252
5252
|
}, Rl = y.createContext({
|
|
5253
5253
|
activeTagCategoryId: null,
|
|
5254
5254
|
pendingMove: null
|
|
5255
|
-
}), $m = (e) => e.pointerCoordinates ?
|
|
5255
|
+
}), $m = (e) => e.pointerCoordinates ? Lg(e) : Dg(e), Mm = (e, {
|
|
5256
5256
|
currentCoordinates: t,
|
|
5257
5257
|
context: { collisionRect: n, droppableRects: r, droppableContainers: s, over: o, scrollableAncestors: i }
|
|
5258
5258
|
}) => {
|
|
@@ -5264,24 +5264,24 @@ const El = Ie`
|
|
|
5264
5264
|
var E, P;
|
|
5265
5265
|
return (((E = r.get(L)) == null ? void 0 : E.top) ?? 0) - (((P = r.get(S)) == null ? void 0 : P.top) ?? 0);
|
|
5266
5266
|
});
|
|
5267
|
-
const d = o ? l.indexOf(o.id) : -1,
|
|
5268
|
-
if (
|
|
5269
|
-
const h = r.get(l[
|
|
5267
|
+
const d = o ? l.indexOf(o.id) : -1, f = d === -1 ? a ? 0 : l.length - 1 : a ? Math.min(d + 1, l.length - 1) : Math.max(d - 1, 0);
|
|
5268
|
+
if (f === d) return;
|
|
5269
|
+
const h = r.get(l[f]);
|
|
5270
5270
|
if (!h) return;
|
|
5271
|
-
const
|
|
5271
|
+
const g = {
|
|
5272
5272
|
x: h.left + h.width / 2 - ((n == null ? void 0 : n.width) ?? 0) / 2,
|
|
5273
5273
|
y: h.top + h.height / 2 - ((n == null ? void 0 : n.height) ?? 0) / 2
|
|
5274
5274
|
};
|
|
5275
|
-
if (!(e.code === Y.Left || e.code === Y.Right)) return
|
|
5275
|
+
if (!(e.code === Y.Left || e.code === Y.Right)) return g;
|
|
5276
5276
|
const m = i.find((L) => L.scrollHeight > L.clientHeight) ?? document.scrollingElement ?? document.documentElement, T = m === document.scrollingElement ? { top: 0, bottom: window.innerHeight } : m.getBoundingClientRect(), w = T.bottom - T.top, C = T.top + w / 2;
|
|
5277
|
-
if (!(a ?
|
|
5278
|
-
const x = m.scrollHeight - w, $ =
|
|
5277
|
+
if (!(a ? g.y > C : g.y < C)) return g;
|
|
5278
|
+
const x = m.scrollHeight - w, $ = g.y - t.y, k = Math.min(
|
|
5279
5279
|
x,
|
|
5280
5280
|
Math.max(0, m.scrollTop + $)
|
|
5281
5281
|
), I = k - m.scrollTop;
|
|
5282
5282
|
return m.scrollTo({ top: k, behavior: "smooth" }), {
|
|
5283
|
-
x:
|
|
5284
|
-
y:
|
|
5283
|
+
x: g.x,
|
|
5284
|
+
y: g.y - I
|
|
5285
5285
|
};
|
|
5286
5286
|
}, ai = () => y.useContext(Rl), Rm = ({ children: e }) => {
|
|
5287
5287
|
const {
|
|
@@ -5293,7 +5293,7 @@ const El = Ie`
|
|
|
5293
5293
|
handleDragCancel: i,
|
|
5294
5294
|
announcements: a,
|
|
5295
5295
|
screenReaderInstructions: c
|
|
5296
|
-
} = Dm(), l =
|
|
5296
|
+
} = Dm(), l = Ig(
|
|
5297
5297
|
ea(ni, { activationConstraint: { distance: 8 } }),
|
|
5298
5298
|
ea(ei, { coordinateGetter: Mm })
|
|
5299
5299
|
);
|
|
@@ -5438,7 +5438,7 @@ const El = Ie`
|
|
|
5438
5438
|
display: flex;
|
|
5439
5439
|
flex-direction: column;
|
|
5440
5440
|
gap: ${p.spacing.xxxSmall};
|
|
5441
|
-
`, tp =
|
|
5441
|
+
`, tp = cg`
|
|
5442
5442
|
0% { background-position: -200% 0; }
|
|
5443
5443
|
100% { background-position: 200% 0; }
|
|
5444
5444
|
`, H = A.div`
|
|
@@ -5888,7 +5888,7 @@ function dp(e, t) {
|
|
|
5888
5888
|
const n = e.format(t).replace(/\u200E/g, ""), r = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n), [, s, o, i, a, c, l, d] = r;
|
|
5889
5889
|
return [i, s, o, a, c, l, d];
|
|
5890
5890
|
}
|
|
5891
|
-
function
|
|
5891
|
+
function fp(e, t) {
|
|
5892
5892
|
const n = e.formatToParts(t), r = [];
|
|
5893
5893
|
for (let s = 0; s < n.length; s++) {
|
|
5894
5894
|
const { type: o, value: i } = n[s], a = up[o];
|
|
@@ -6003,7 +6003,7 @@ class wt extends dr {
|
|
|
6003
6003
|
const n = new Date(t);
|
|
6004
6004
|
if (isNaN(n)) return NaN;
|
|
6005
6005
|
const r = lp(this.name);
|
|
6006
|
-
let [s, o, i, a, c, l, d] = r.formatToParts ?
|
|
6006
|
+
let [s, o, i, a, c, l, d] = r.formatToParts ? fp(r, n) : dp(r, n);
|
|
6007
6007
|
a === "BC" && (s = -Math.abs(s) + 1);
|
|
6008
6008
|
const h = ws({
|
|
6009
6009
|
year: s,
|
|
@@ -6014,9 +6014,9 @@ class wt extends dr {
|
|
|
6014
6014
|
second: d,
|
|
6015
6015
|
millisecond: 0
|
|
6016
6016
|
});
|
|
6017
|
-
let
|
|
6018
|
-
const v =
|
|
6019
|
-
return
|
|
6017
|
+
let g = +n;
|
|
6018
|
+
const v = g % 1e3;
|
|
6019
|
+
return g -= v >= 0 ? v : 1e3 + v, (h - g) / (60 * 1e3);
|
|
6020
6020
|
}
|
|
6021
6021
|
/**
|
|
6022
6022
|
* Return whether this Zone is equal to another zone
|
|
@@ -6037,7 +6037,7 @@ class wt extends dr {
|
|
|
6037
6037
|
}
|
|
6038
6038
|
}
|
|
6039
6039
|
let wa = {};
|
|
6040
|
-
function
|
|
6040
|
+
function gp(e, t = {}) {
|
|
6041
6041
|
const n = JSON.stringify([e, t]);
|
|
6042
6042
|
let r = wa[n];
|
|
6043
6043
|
return r || (r = new Intl.ListFormat(e, t), wa[n] = r), r;
|
|
@@ -6136,7 +6136,7 @@ class Sp {
|
|
|
6136
6136
|
const n = this.floor ? Math.floor(t) : t;
|
|
6137
6137
|
return this.inf.format(n);
|
|
6138
6138
|
} else {
|
|
6139
|
-
const n = this.floor ? Math.floor(t) :
|
|
6139
|
+
const n = this.floor ? Math.floor(t) : fi(t, 3);
|
|
6140
6140
|
return we(n, this.padTo);
|
|
6141
6141
|
}
|
|
6142
6142
|
}
|
|
@@ -6204,7 +6204,7 @@ class ee {
|
|
|
6204
6204
|
);
|
|
6205
6205
|
}
|
|
6206
6206
|
static create(t, n, r, s, o = !1) {
|
|
6207
|
-
const i = t ||
|
|
6207
|
+
const i = t || ge.defaultLocale, a = i || (o ? "en-US" : pp()), c = n || ge.defaultNumberingSystem, l = r || ge.defaultOutputCalendar, d = $o(s) || ge.defaultWeekSettings;
|
|
6208
6208
|
return new ee(a, c, l, d, i);
|
|
6209
6209
|
}
|
|
6210
6210
|
static resetCache() {
|
|
@@ -6297,7 +6297,7 @@ class ee {
|
|
|
6297
6297
|
return new kp(this.intl, this.isEnglish(), t);
|
|
6298
6298
|
}
|
|
6299
6299
|
listFormatter(t = {}) {
|
|
6300
|
-
return
|
|
6300
|
+
return gp(this.intl, t);
|
|
6301
6301
|
}
|
|
6302
6302
|
isEnglish() {
|
|
6303
6303
|
return this.locale === "en" || this.locale.toLowerCase() === "en-us" || cu(this.intl).locale.startsWith("en-us");
|
|
@@ -6561,7 +6561,7 @@ function et({ numberingSystem: e }, t = "") {
|
|
|
6561
6561
|
return s === void 0 && (s = new RegExp(`${ci[n]}${t}`), r.set(t, s)), s;
|
|
6562
6562
|
}
|
|
6563
6563
|
let Ta = () => Date.now(), Ca = "system", Sa = null, xa = null, ka = null, Ia = 60, Na, Ea = null;
|
|
6564
|
-
class
|
|
6564
|
+
class ge {
|
|
6565
6565
|
/**
|
|
6566
6566
|
* Get the callback for returning the current timestamp.
|
|
6567
6567
|
* @type {function}
|
|
@@ -6721,34 +6721,34 @@ function li(e, t, n) {
|
|
|
6721
6721
|
const s = r.getUTCDay();
|
|
6722
6722
|
return s === 0 ? 7 : s;
|
|
6723
6723
|
}
|
|
6724
|
-
function
|
|
6725
|
-
return n + (
|
|
6724
|
+
function fu(e, t, n) {
|
|
6725
|
+
return n + (fr(e) ? du : uu)[t - 1];
|
|
6726
6726
|
}
|
|
6727
|
-
function
|
|
6728
|
-
const n =
|
|
6727
|
+
function gu(e, t) {
|
|
6728
|
+
const n = fr(e) ? du : uu, r = n.findIndex((o) => o < t), s = t - n[r];
|
|
6729
6729
|
return { month: r + 1, day: s };
|
|
6730
6730
|
}
|
|
6731
6731
|
function ui(e, t) {
|
|
6732
6732
|
return (e - t + 7) % 7 + 1;
|
|
6733
6733
|
}
|
|
6734
6734
|
function ns(e, t = 4, n = 1) {
|
|
6735
|
-
const { year: r, month: s, day: o } = e, i =
|
|
6735
|
+
const { year: r, month: s, day: o } = e, i = fu(r, s, o), a = ui(li(r, s, o), n);
|
|
6736
6736
|
let c = Math.floor((i - a + 14 - t) / 7), l;
|
|
6737
6737
|
return c < 1 ? (l = r - 1, c = tr(l, t, n)) : c > tr(r, t, n) ? (l = r + 1, c = 1) : l = r, { weekYear: l, weekNumber: c, weekday: a, ...Ts(e) };
|
|
6738
6738
|
}
|
|
6739
6739
|
function Aa(e, t = 4, n = 1) {
|
|
6740
|
-
const { weekYear: r, weekNumber: s, weekday: o } = e, i = ui(li(r, 1, t), n), a =
|
|
6740
|
+
const { weekYear: r, weekNumber: s, weekday: o } = e, i = ui(li(r, 1, t), n), a = gn(r);
|
|
6741
6741
|
let c = s * 7 + o - i - 7 + t, l;
|
|
6742
|
-
c < 1 ? (l = r - 1, c +=
|
|
6743
|
-
const { month: d, day:
|
|
6744
|
-
return { year: l, month: d, day:
|
|
6742
|
+
c < 1 ? (l = r - 1, c += gn(l)) : c > a ? (l = r + 1, c -= gn(r)) : l = r;
|
|
6743
|
+
const { month: d, day: f } = gu(l, c);
|
|
6744
|
+
return { year: l, month: d, day: f, ...Ts(e) };
|
|
6745
6745
|
}
|
|
6746
6746
|
function Vs(e) {
|
|
6747
|
-
const { year: t, month: n, day: r } = e, s =
|
|
6747
|
+
const { year: t, month: n, day: r } = e, s = fu(t, n, r);
|
|
6748
6748
|
return { year: t, ordinal: s, ...Ts(e) };
|
|
6749
6749
|
}
|
|
6750
6750
|
function Oa(e) {
|
|
6751
|
-
const { year: t, ordinal: n } = e, { month: r, day: s } =
|
|
6751
|
+
const { year: t, ordinal: n } = e, { month: r, day: s } = gu(t, n);
|
|
6752
6752
|
return { year: t, month: r, day: s, ...Ts(e) };
|
|
6753
6753
|
}
|
|
6754
6754
|
function Da(e, t) {
|
|
@@ -6773,7 +6773,7 @@ function Op(e, t = 4, n = 1) {
|
|
|
6773
6773
|
return r ? s ? o ? !1 : Je("weekday", e.weekday) : Je("week", e.weekNumber) : Je("weekYear", e.weekYear);
|
|
6774
6774
|
}
|
|
6775
6775
|
function Dp(e) {
|
|
6776
|
-
const t = vs(e.year), n = Qe(e.ordinal, 1,
|
|
6776
|
+
const t = vs(e.year), n = Qe(e.ordinal, 1, gn(e.year));
|
|
6777
6777
|
return t ? n ? !1 : Je("ordinal", e.ordinal) : Je("year", e.year);
|
|
6778
6778
|
}
|
|
6779
6779
|
function hu(e) {
|
|
@@ -6867,7 +6867,7 @@ function di(e) {
|
|
|
6867
6867
|
return Math.floor(t);
|
|
6868
6868
|
}
|
|
6869
6869
|
}
|
|
6870
|
-
function
|
|
6870
|
+
function fi(e, t, n = "round") {
|
|
6871
6871
|
const r = 10 ** t;
|
|
6872
6872
|
switch (n) {
|
|
6873
6873
|
case "expand":
|
|
@@ -6884,15 +6884,15 @@ function gi(e, t, n = "round") {
|
|
|
6884
6884
|
throw new RangeError(`Value rounding ${n} is out of range`);
|
|
6885
6885
|
}
|
|
6886
6886
|
}
|
|
6887
|
-
function
|
|
6887
|
+
function fr(e) {
|
|
6888
6888
|
return e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0);
|
|
6889
6889
|
}
|
|
6890
|
-
function
|
|
6891
|
-
return
|
|
6890
|
+
function gn(e) {
|
|
6891
|
+
return fr(e) ? 366 : 365;
|
|
6892
6892
|
}
|
|
6893
6893
|
function rs(e, t) {
|
|
6894
6894
|
const n = Pp(t - 1, 12) + 1, r = e + (t - n) / 12;
|
|
6895
|
-
return n === 2 ?
|
|
6895
|
+
return n === 2 ? fr(r) ? 29 : 28 : [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][n - 1];
|
|
6896
6896
|
}
|
|
6897
6897
|
function ws(e) {
|
|
6898
6898
|
let t = Date.UTC(
|
|
@@ -6911,10 +6911,10 @@ function Ma(e, t, n) {
|
|
|
6911
6911
|
}
|
|
6912
6912
|
function tr(e, t = 4, n = 1) {
|
|
6913
6913
|
const r = Ma(e, t, n), s = Ma(e + 1, t, n);
|
|
6914
|
-
return (
|
|
6914
|
+
return (gn(e) - r + s) / 7;
|
|
6915
6915
|
}
|
|
6916
6916
|
function Mo(e) {
|
|
6917
|
-
return e > 99 ? e : e >
|
|
6917
|
+
return e > 99 ? e : e > ge.twoDigitCutoffYear ? 1900 + e : 2e3 + e;
|
|
6918
6918
|
}
|
|
6919
6919
|
function vu(e, t, n, r = null) {
|
|
6920
6920
|
const s = new Date(e), o = {
|
|
@@ -7070,14 +7070,14 @@ function Gp(e, t, n = "always", r = !1) {
|
|
|
7070
7070
|
seconds: ["second", "sec."]
|
|
7071
7071
|
}, o = ["hours", "minutes", "seconds"].indexOf(e) === -1;
|
|
7072
7072
|
if (n === "auto" && o) {
|
|
7073
|
-
const
|
|
7073
|
+
const f = e === "days";
|
|
7074
7074
|
switch (t) {
|
|
7075
7075
|
case 1:
|
|
7076
|
-
return
|
|
7076
|
+
return f ? "tomorrow" : `next ${s[e][0]}`;
|
|
7077
7077
|
case -1:
|
|
7078
|
-
return
|
|
7078
|
+
return f ? "yesterday" : `last ${s[e][0]}`;
|
|
7079
7079
|
case 0:
|
|
7080
|
-
return
|
|
7080
|
+
return f ? "today" : `this ${s[e][0]}`;
|
|
7081
7081
|
}
|
|
7082
7082
|
}
|
|
7083
7083
|
const i = Object.is(t, -0) || t < 0, a = Math.abs(t), c = a === 1, l = s[e], d = r ? c ? l[1] : l[2] || l[1] : c ? s[e][0] : e;
|
|
@@ -7158,14 +7158,14 @@ class Ae {
|
|
|
7158
7158
|
return n > 0 && (s.padTo = n), r && (s.signDisplay = r), this.loc.numberFormatter(s).format(t);
|
|
7159
7159
|
}
|
|
7160
7160
|
formatDateTimeFromString(t, n) {
|
|
7161
|
-
const r = this.loc.listingMode() === "en", s = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", o = (
|
|
7162
|
-
v ? { weekday:
|
|
7161
|
+
const r = this.loc.listingMode() === "en", s = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", o = (g, v) => this.loc.extract(t, g, v), i = (g) => t.isOffsetFixed && t.offset === 0 && g.allowZ ? "Z" : t.isValid ? t.zone.formatOffset(t.ts, g.format) : "", a = () => r ? qp(t) : o({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), c = (g, v) => r ? jp(t, g) : o(v ? { month: g } : { month: g, day: "numeric" }, "month"), l = (g, v) => r ? Bp(t, g) : o(
|
|
7162
|
+
v ? { weekday: g } : { weekday: g, month: "long", day: "numeric" },
|
|
7163
7163
|
"weekday"
|
|
7164
|
-
), d = (
|
|
7165
|
-
const v = Ae.macroTokenToFormatOpts(
|
|
7166
|
-
return v ? this.formatWithSystemDefault(t, v) :
|
|
7167
|
-
},
|
|
7168
|
-
switch (
|
|
7164
|
+
), d = (g) => {
|
|
7165
|
+
const v = Ae.macroTokenToFormatOpts(g);
|
|
7166
|
+
return v ? this.formatWithSystemDefault(t, v) : g;
|
|
7167
|
+
}, f = (g) => r ? Hp(t, g) : o({ era: g }, "era"), h = (g) => {
|
|
7168
|
+
switch (g) {
|
|
7169
7169
|
case "S":
|
|
7170
7170
|
return this.num(t.millisecond);
|
|
7171
7171
|
case "u":
|
|
@@ -7254,11 +7254,11 @@ class Ae {
|
|
|
7254
7254
|
case "yyyyyy":
|
|
7255
7255
|
return s ? o({ year: "numeric" }, "year") : this.num(t.year, 6);
|
|
7256
7256
|
case "G":
|
|
7257
|
-
return
|
|
7257
|
+
return f("short");
|
|
7258
7258
|
case "GG":
|
|
7259
|
-
return
|
|
7259
|
+
return f("long");
|
|
7260
7260
|
case "GGGGG":
|
|
7261
|
-
return
|
|
7261
|
+
return f("narrow");
|
|
7262
7262
|
case "kk":
|
|
7263
7263
|
return this.num(t.weekYear.toString().slice(-2), 2);
|
|
7264
7264
|
case "kkkk":
|
|
@@ -7288,7 +7288,7 @@ class Ae {
|
|
|
7288
7288
|
case "x":
|
|
7289
7289
|
return this.num(t.ts);
|
|
7290
7290
|
default:
|
|
7291
|
-
return d(
|
|
7291
|
+
return d(g);
|
|
7292
7292
|
}
|
|
7293
7293
|
};
|
|
7294
7294
|
return Ra(Ae.parseFormat(n), h);
|
|
@@ -7315,16 +7315,16 @@ class Ae {
|
|
|
7315
7315
|
default:
|
|
7316
7316
|
return null;
|
|
7317
7317
|
}
|
|
7318
|
-
}, o = (d,
|
|
7319
|
-
const
|
|
7320
|
-
if (
|
|
7321
|
-
const v =
|
|
7318
|
+
}, o = (d, f) => (h) => {
|
|
7319
|
+
const g = s(h);
|
|
7320
|
+
if (g) {
|
|
7321
|
+
const v = f.isNegativeDuration && g !== f.largestUnit ? r : 1;
|
|
7322
7322
|
let m;
|
|
7323
|
-
return this.opts.signMode === "negativeLargestOnly" &&
|
|
7323
|
+
return this.opts.signMode === "negativeLargestOnly" && g !== f.largestUnit ? m = "never" : this.opts.signMode === "all" ? m = "always" : m = "auto", this.num(d.get(g) * v, h.length, m);
|
|
7324
7324
|
} else
|
|
7325
7325
|
return h;
|
|
7326
7326
|
}, i = Ae.parseFormat(n), a = i.reduce(
|
|
7327
|
-
(d, { literal:
|
|
7327
|
+
(d, { literal: f, val: h }) => f ? d : d.concat(h),
|
|
7328
7328
|
[]
|
|
7329
7329
|
), c = t.shiftTo(...a.map(s).filter((d) => d)), l = {
|
|
7330
7330
|
isNegativeDuration: c < 0,
|
|
@@ -7368,8 +7368,8 @@ function Eu(...e) {
|
|
|
7368
7368
|
return [r, null, n + s];
|
|
7369
7369
|
};
|
|
7370
7370
|
}
|
|
7371
|
-
const Au = /(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/, Yp = `(?:${Au.source}?(?:\\[(${Nu.source})\\])?)?`,
|
|
7372
|
-
`${
|
|
7371
|
+
const Au = /(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/, Yp = `(?:${Au.source}?(?:\\[(${Nu.source})\\])?)?`, gi = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, Ou = RegExp(`${gi.source}${Yp}`), hi = RegExp(`(?:[Tt]${Ou.source})?`), Kp = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, Jp = /(\d{4})-?W(\d\d)(?:-?(\d))?/, Qp = /(\d{4})-?(\d{3})/, Xp = Eu("weekYear", "weekNumber", "weekDay"), ey = Eu("year", "ordinal"), ty = /(\d{4})-(\d\d)-(\d\d)/, Du = RegExp(
|
|
7372
|
+
`${gi.source} ?(?:${Au.source}|(${Nu.source}))?`
|
|
7373
7373
|
), ny = RegExp(`(?: ${Du.source})?`);
|
|
7374
7374
|
function hn(e, t, n) {
|
|
7375
7375
|
const r = e[t];
|
|
@@ -7390,7 +7390,7 @@ function En(e, t) {
|
|
|
7390
7390
|
milliseconds: di(e[t + 3])
|
|
7391
7391
|
}, null, t + 4];
|
|
7392
7392
|
}
|
|
7393
|
-
function
|
|
7393
|
+
function gr(e, t) {
|
|
7394
7394
|
const n = !e[t] && !e[t + 1], r = bs(e[t + 1], e[t + 2]), s = n ? null : Me.instance(r);
|
|
7395
7395
|
return [{}, s, t + 3];
|
|
7396
7396
|
}
|
|
@@ -7398,9 +7398,9 @@ function hr(e, t) {
|
|
|
7398
7398
|
const n = e[t] ? wt.create(e[t]) : null;
|
|
7399
7399
|
return [{}, n, t + 1];
|
|
7400
7400
|
}
|
|
7401
|
-
const sy = RegExp(`^T?${
|
|
7401
|
+
const sy = RegExp(`^T?${gi.source}$`), oy = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
|
|
7402
7402
|
function iy(e) {
|
|
7403
|
-
const [t, n, r, s, o, i, a, c, l] = e, d = t[0] === "-",
|
|
7403
|
+
const [t, n, r, s, o, i, a, c, l] = e, d = t[0] === "-", f = c && c[0] === "-", h = (g, v = !1) => g !== void 0 && (v || g && d) ? -g : g;
|
|
7404
7404
|
return [
|
|
7405
7405
|
{
|
|
7406
7406
|
years: h(Ft(n)),
|
|
@@ -7410,7 +7410,7 @@ function iy(e) {
|
|
|
7410
7410
|
hours: h(Ft(i)),
|
|
7411
7411
|
minutes: h(Ft(a)),
|
|
7412
7412
|
seconds: h(Ft(c), c === "-0"),
|
|
7413
|
-
milliseconds: h(di(l),
|
|
7413
|
+
milliseconds: h(di(l), f)
|
|
7414
7414
|
}
|
|
7415
7415
|
];
|
|
7416
7416
|
}
|
|
@@ -7449,15 +7449,15 @@ function ly(e) {
|
|
|
7449
7449
|
c,
|
|
7450
7450
|
l,
|
|
7451
7451
|
d,
|
|
7452
|
-
|
|
7452
|
+
f
|
|
7453
7453
|
] = e, h = mi(t, s, r, n, o, i, a);
|
|
7454
|
-
let
|
|
7455
|
-
return c ?
|
|
7454
|
+
let g;
|
|
7455
|
+
return c ? g = ay[c] : l ? g = 0 : g = bs(d, f), [h, new Me(g)];
|
|
7456
7456
|
}
|
|
7457
7457
|
function uy(e) {
|
|
7458
7458
|
return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
|
7459
7459
|
}
|
|
7460
|
-
const dy = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,
|
|
7460
|
+
const dy = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/, fy = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/, gy = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
|
|
7461
7461
|
function La(e) {
|
|
7462
7462
|
const [, t, n, r, s, o, i, a] = e;
|
|
7463
7463
|
return [mi(t, s, r, n, o, i, a), Me.utcInstance];
|
|
@@ -7469,21 +7469,21 @@ function hy(e) {
|
|
|
7469
7469
|
const my = kn(Kp, hi), py = kn(Jp, hi), yy = kn(Qp, hi), vy = kn(Ou), $u = In(
|
|
7470
7470
|
ry,
|
|
7471
7471
|
En,
|
|
7472
|
-
|
|
7472
|
+
gr,
|
|
7473
7473
|
hr
|
|
7474
7474
|
), wy = In(
|
|
7475
7475
|
Xp,
|
|
7476
7476
|
En,
|
|
7477
|
-
|
|
7477
|
+
gr,
|
|
7478
7478
|
hr
|
|
7479
7479
|
), by = In(
|
|
7480
7480
|
ey,
|
|
7481
7481
|
En,
|
|
7482
|
-
|
|
7482
|
+
gr,
|
|
7483
7483
|
hr
|
|
7484
7484
|
), Ty = In(
|
|
7485
7485
|
En,
|
|
7486
|
-
|
|
7486
|
+
gr,
|
|
7487
7487
|
hr
|
|
7488
7488
|
);
|
|
7489
7489
|
function Cy(e) {
|
|
@@ -7502,8 +7502,8 @@ function xy(e) {
|
|
|
7502
7502
|
return Nn(
|
|
7503
7503
|
e,
|
|
7504
7504
|
[dy, La],
|
|
7505
|
-
[
|
|
7506
|
-
[
|
|
7505
|
+
[fy, La],
|
|
7506
|
+
[gy, hy]
|
|
7507
7507
|
);
|
|
7508
7508
|
}
|
|
7509
7509
|
function ky(e) {
|
|
@@ -7515,7 +7515,7 @@ function Ny(e) {
|
|
|
7515
7515
|
}
|
|
7516
7516
|
const Ey = kn(ty, ny), Ay = kn(Du), Oy = In(
|
|
7517
7517
|
En,
|
|
7518
|
-
|
|
7518
|
+
gr,
|
|
7519
7519
|
hr
|
|
7520
7520
|
);
|
|
7521
7521
|
function Dy(e) {
|
|
@@ -7774,7 +7774,7 @@ class Z {
|
|
|
7774
7774
|
if (!t)
|
|
7775
7775
|
throw new Ee("need to specify a reason the Duration is invalid");
|
|
7776
7776
|
const r = t instanceof rt ? t : new rt(t, n);
|
|
7777
|
-
if (
|
|
7777
|
+
if (ge.throwOnInvalid)
|
|
7778
7778
|
throw new ip(r);
|
|
7779
7779
|
return new Z({ invalid: r });
|
|
7780
7780
|
}
|
|
@@ -7906,7 +7906,7 @@ class Z {
|
|
|
7906
7906
|
toISO() {
|
|
7907
7907
|
if (!this.isValid) return null;
|
|
7908
7908
|
let t = "P";
|
|
7909
|
-
return this.years !== 0 && (t += this.years + "Y"), (this.months !== 0 || this.quarters !== 0) && (t += this.months + this.quarters * 3 + "M"), this.weeks !== 0 && (t += this.weeks + "W"), this.days !== 0 && (t += this.days + "D"), (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) && (t += "T"), this.hours !== 0 && (t += this.hours + "H"), this.minutes !== 0 && (t += this.minutes + "M"), (this.seconds !== 0 || this.milliseconds !== 0) && (t +=
|
|
7909
|
+
return this.years !== 0 && (t += this.years + "Y"), (this.months !== 0 || this.quarters !== 0) && (t += this.months + this.quarters * 3 + "M"), this.weeks !== 0 && (t += this.weeks + "W"), this.days !== 0 && (t += this.days + "D"), (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) && (t += "T"), this.hours !== 0 && (t += this.hours + "H"), this.minutes !== 0 && (t += this.minutes + "M"), (this.seconds !== 0 || this.milliseconds !== 0) && (t += fi(this.seconds + this.milliseconds / 1e3, 3) + "S"), t === "P" && (t += "T0S"), t;
|
|
7910
7910
|
}
|
|
7911
7911
|
/**
|
|
7912
7912
|
* Returns an ISO 8601-compliant string representation of this Duration, formatted as a time of day.
|
|
@@ -8250,12 +8250,12 @@ class Z {
|
|
|
8250
8250
|
}
|
|
8251
8251
|
const an = "Invalid Interval";
|
|
8252
8252
|
function Ly(e, t) {
|
|
8253
|
-
return !e || !e.isValid ?
|
|
8253
|
+
return !e || !e.isValid ? fe.invalid("missing or invalid start") : !t || !t.isValid ? fe.invalid("missing or invalid end") : t < e ? fe.invalid(
|
|
8254
8254
|
"end before start",
|
|
8255
8255
|
`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`
|
|
8256
8256
|
) : null;
|
|
8257
8257
|
}
|
|
8258
|
-
class
|
|
8258
|
+
class fe {
|
|
8259
8259
|
/**
|
|
8260
8260
|
* @private
|
|
8261
8261
|
*/
|
|
@@ -8272,9 +8272,9 @@ class ge {
|
|
|
8272
8272
|
if (!t)
|
|
8273
8273
|
throw new Ee("need to specify a reason the Interval is invalid");
|
|
8274
8274
|
const r = t instanceof rt ? t : new rt(t, n);
|
|
8275
|
-
if (
|
|
8275
|
+
if (ge.throwOnInvalid)
|
|
8276
8276
|
throw new op(r);
|
|
8277
|
-
return new
|
|
8277
|
+
return new fe({ invalid: r });
|
|
8278
8278
|
}
|
|
8279
8279
|
/**
|
|
8280
8280
|
* Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.
|
|
@@ -8284,7 +8284,7 @@ class ge {
|
|
|
8284
8284
|
*/
|
|
8285
8285
|
static fromDateTimes(t, n) {
|
|
8286
8286
|
const r = Ln(t), s = Ln(n), o = Ly(r, s);
|
|
8287
|
-
return o ?? new
|
|
8287
|
+
return o ?? new fe({
|
|
8288
8288
|
start: r,
|
|
8289
8289
|
end: s
|
|
8290
8290
|
});
|
|
@@ -8297,7 +8297,7 @@ class ge {
|
|
|
8297
8297
|
*/
|
|
8298
8298
|
static after(t, n) {
|
|
8299
8299
|
const r = Z.fromDurationLike(n), s = Ln(t);
|
|
8300
|
-
return
|
|
8300
|
+
return fe.fromDateTimes(s, s.plus(r));
|
|
8301
8301
|
}
|
|
8302
8302
|
/**
|
|
8303
8303
|
* Create an Interval from an end DateTime and a Duration to extend backwards to.
|
|
@@ -8307,7 +8307,7 @@ class ge {
|
|
|
8307
8307
|
*/
|
|
8308
8308
|
static before(t, n) {
|
|
8309
8309
|
const r = Z.fromDurationLike(n), s = Ln(t);
|
|
8310
|
-
return
|
|
8310
|
+
return fe.fromDateTimes(s.minus(r), s);
|
|
8311
8311
|
}
|
|
8312
8312
|
/**
|
|
8313
8313
|
* Create an Interval from an ISO 8601 string.
|
|
@@ -8333,18 +8333,18 @@ class ge {
|
|
|
8333
8333
|
c = !1;
|
|
8334
8334
|
}
|
|
8335
8335
|
if (i && c)
|
|
8336
|
-
return
|
|
8336
|
+
return fe.fromDateTimes(o, a);
|
|
8337
8337
|
if (i) {
|
|
8338
8338
|
const l = Z.fromISO(s, n);
|
|
8339
8339
|
if (l.isValid)
|
|
8340
|
-
return
|
|
8340
|
+
return fe.after(o, l);
|
|
8341
8341
|
} else if (c) {
|
|
8342
8342
|
const l = Z.fromISO(r, n);
|
|
8343
8343
|
if (l.isValid)
|
|
8344
|
-
return
|
|
8344
|
+
return fe.before(a, l);
|
|
8345
8345
|
}
|
|
8346
8346
|
}
|
|
8347
|
-
return
|
|
8347
|
+
return fe.invalid("unparsable", `the input "${t}" can't be parsed as ISO 8601`);
|
|
8348
8348
|
}
|
|
8349
8349
|
/**
|
|
8350
8350
|
* Check if an object is an Interval. Works across context boundaries
|
|
@@ -8467,7 +8467,7 @@ class ge {
|
|
|
8467
8467
|
* @return {Interval}
|
|
8468
8468
|
*/
|
|
8469
8469
|
set({ start: t, end: n } = {}) {
|
|
8470
|
-
return this.isValid ?
|
|
8470
|
+
return this.isValid ? fe.fromDateTimes(t || this.s, n || this.e) : this;
|
|
8471
8471
|
}
|
|
8472
8472
|
/**
|
|
8473
8473
|
* Split this Interval at each of the specified DateTimes
|
|
@@ -8480,7 +8480,7 @@ class ge {
|
|
|
8480
8480
|
let { s } = this, o = 0;
|
|
8481
8481
|
for (; s < this.e; ) {
|
|
8482
8482
|
const i = n[o] || this.e, a = +i > +this.e ? this.e : i;
|
|
8483
|
-
r.push(
|
|
8483
|
+
r.push(fe.fromDateTimes(s, a)), s = a, o += 1;
|
|
8484
8484
|
}
|
|
8485
8485
|
return r;
|
|
8486
8486
|
}
|
|
@@ -8498,7 +8498,7 @@ class ge {
|
|
|
8498
8498
|
const i = [];
|
|
8499
8499
|
for (; r < this.e; ) {
|
|
8500
8500
|
const a = this.start.plus(n.mapUnits((c) => c * s));
|
|
8501
|
-
o = +a > +this.e ? this.e : a, i.push(
|
|
8501
|
+
o = +a > +this.e ? this.e : a, i.push(fe.fromDateTimes(r, o)), r = o, s += 1;
|
|
8502
8502
|
}
|
|
8503
8503
|
return i;
|
|
8504
8504
|
}
|
|
@@ -8560,7 +8560,7 @@ class ge {
|
|
|
8560
8560
|
intersection(t) {
|
|
8561
8561
|
if (!this.isValid) return this;
|
|
8562
8562
|
const n = this.s > t.s ? this.s : t.s, r = this.e < t.e ? this.e : t.e;
|
|
8563
|
-
return n >= r ? null :
|
|
8563
|
+
return n >= r ? null : fe.fromDateTimes(n, r);
|
|
8564
8564
|
}
|
|
8565
8565
|
/**
|
|
8566
8566
|
* Return an Interval representing the union of this Interval and the specified Interval.
|
|
@@ -8571,7 +8571,7 @@ class ge {
|
|
|
8571
8571
|
union(t) {
|
|
8572
8572
|
if (!this.isValid) return this;
|
|
8573
8573
|
const n = this.s < t.s ? this.s : t.s, r = this.e > t.e ? this.e : t.e;
|
|
8574
|
-
return
|
|
8574
|
+
return fe.fromDateTimes(n, r);
|
|
8575
8575
|
}
|
|
8576
8576
|
/**
|
|
8577
8577
|
* Merge an array of Intervals into an equivalent minimal set of Intervals.
|
|
@@ -8601,8 +8601,8 @@ class ge {
|
|
|
8601
8601
|
{ time: c.e, type: "e" }
|
|
8602
8602
|
]), i = Array.prototype.concat(...o), a = i.sort((c, l) => c.time - l.time);
|
|
8603
8603
|
for (const c of a)
|
|
8604
|
-
r += c.type === "s" ? 1 : -1, r === 1 ? n = c.time : (n && +n != +c.time && s.push(
|
|
8605
|
-
return
|
|
8604
|
+
r += c.type === "s" ? 1 : -1, r === 1 ? n = c.time : (n && +n != +c.time && s.push(fe.fromDateTimes(n, c.time)), n = null);
|
|
8605
|
+
return fe.merge(s);
|
|
8606
8606
|
}
|
|
8607
8607
|
/**
|
|
8608
8608
|
* Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.
|
|
@@ -8610,7 +8610,7 @@ class ge {
|
|
|
8610
8610
|
* @return {Array}
|
|
8611
8611
|
*/
|
|
8612
8612
|
difference(...t) {
|
|
8613
|
-
return
|
|
8613
|
+
return fe.xor([this].concat(t)).map((n) => this.intersection(n)).filter((n) => n && !n.isEmpty());
|
|
8614
8614
|
}
|
|
8615
8615
|
/**
|
|
8616
8616
|
* Returns a string representation of this Interval appropriate for debugging.
|
|
@@ -8712,7 +8712,7 @@ class ge {
|
|
|
8712
8712
|
* @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))
|
|
8713
8713
|
*/
|
|
8714
8714
|
mapEndpoints(t) {
|
|
8715
|
-
return
|
|
8715
|
+
return fe.fromDateTimes(t(this.s), t(this.e));
|
|
8716
8716
|
}
|
|
8717
8717
|
}
|
|
8718
8718
|
class kr {
|
|
@@ -8721,7 +8721,7 @@ class kr {
|
|
|
8721
8721
|
* @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.
|
|
8722
8722
|
* @return {boolean}
|
|
8723
8723
|
*/
|
|
8724
|
-
static hasDST(t =
|
|
8724
|
+
static hasDST(t = ge.defaultZone) {
|
|
8725
8725
|
const n = _.now().setZone(t).set({ month: 12 });
|
|
8726
8726
|
return !t.isUniversal && n.offset !== n.set({ month: 6 }).offset;
|
|
8727
8727
|
}
|
|
@@ -8748,7 +8748,7 @@ class kr {
|
|
|
8748
8748
|
* @return {Zone}
|
|
8749
8749
|
*/
|
|
8750
8750
|
static normalizeZone(t) {
|
|
8751
|
-
return Dt(t,
|
|
8751
|
+
return Dt(t, ge.defaultZone);
|
|
8752
8752
|
}
|
|
8753
8753
|
/**
|
|
8754
8754
|
* Get the weekday on which the week starts according to the given locale.
|
|
@@ -8912,7 +8912,7 @@ function Py(e, t, n) {
|
|
|
8912
8912
|
function Fy(e, t, n, r) {
|
|
8913
8913
|
let [s, o, i, a] = Py(e, t, n);
|
|
8914
8914
|
const c = t - s, l = n.filter(
|
|
8915
|
-
(
|
|
8915
|
+
(f) => ["hours", "minutes", "seconds", "milliseconds"].indexOf(f) >= 0
|
|
8916
8916
|
);
|
|
8917
8917
|
l.length === 0 && (i < t && (i = s.plus({ [a]: 1 })), i !== s && (o[a] = (o[a] || 0) + c / (i - s)));
|
|
8918
8918
|
const d = Z.fromObject(o, r);
|
|
@@ -8945,9 +8945,9 @@ function zy(e) {
|
|
|
8945
8945
|
return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
|
8946
8946
|
}
|
|
8947
8947
|
function Vy(e, t) {
|
|
8948
|
-
const n = et(t), r = et(t, "{2}"), s = et(t, "{3}"), o = et(t, "{4}"), i = et(t, "{6}"), a = et(t, "{1,2}"), c = et(t, "{1,3}"), l = et(t, "{1,6}"), d = et(t, "{1,9}"),
|
|
8948
|
+
const n = et(t), r = et(t, "{2}"), s = et(t, "{3}"), o = et(t, "{4}"), i = et(t, "{6}"), a = et(t, "{1,2}"), c = et(t, "{1,3}"), l = et(t, "{1,6}"), d = et(t, "{1,9}"), f = et(t, "{2,4}"), h = et(t, "{4,6}"), g = (b) => ({ regex: RegExp(zy(b.val)), deser: ([T]) => T, literal: !0 }), m = ((b) => {
|
|
8949
8949
|
if (e.literal)
|
|
8950
|
-
return
|
|
8950
|
+
return g(b);
|
|
8951
8951
|
switch (b.val) {
|
|
8952
8952
|
case "G":
|
|
8953
8953
|
return tt(t.eras("short"), 0);
|
|
@@ -8956,7 +8956,7 @@ function Vy(e, t) {
|
|
|
8956
8956
|
case "y":
|
|
8957
8957
|
return J(l);
|
|
8958
8958
|
case "yy":
|
|
8959
|
-
return J(
|
|
8959
|
+
return J(f, Mo);
|
|
8960
8960
|
case "yyyy":
|
|
8961
8961
|
return J(o);
|
|
8962
8962
|
case "yyyyy":
|
|
@@ -9022,7 +9022,7 @@ function Vy(e, t) {
|
|
|
9022
9022
|
case "kkkk":
|
|
9023
9023
|
return J(o);
|
|
9024
9024
|
case "kk":
|
|
9025
|
-
return J(
|
|
9025
|
+
return J(f, Mo);
|
|
9026
9026
|
case "W":
|
|
9027
9027
|
return J(a);
|
|
9028
9028
|
case "WW":
|
|
@@ -9048,7 +9048,7 @@ function Vy(e, t) {
|
|
|
9048
9048
|
case " ":
|
|
9049
9049
|
return Ir(/[^\S\n\r]/);
|
|
9050
9050
|
default:
|
|
9051
|
-
return
|
|
9051
|
+
return g(b);
|
|
9052
9052
|
}
|
|
9053
9053
|
})(e) || {
|
|
9054
9054
|
invalidReason: Wy
|
|
@@ -9429,20 +9429,20 @@ function ja(e) {
|
|
|
9429
9429
|
}
|
|
9430
9430
|
}
|
|
9431
9431
|
function tv(e) {
|
|
9432
|
-
if (zn === void 0 && (zn =
|
|
9432
|
+
if (zn === void 0 && (zn = ge.now()), e.type !== "iana")
|
|
9433
9433
|
return e.offset(zn);
|
|
9434
9434
|
const t = e.name;
|
|
9435
9435
|
let n = Ro.get(t);
|
|
9436
9436
|
return n === void 0 && (n = e.offset(zn), Ro.set(t, n)), n;
|
|
9437
9437
|
}
|
|
9438
9438
|
function Ha(e, t) {
|
|
9439
|
-
const n = Dt(t.zone,
|
|
9439
|
+
const n = Dt(t.zone, ge.defaultZone);
|
|
9440
9440
|
if (!n.isValid)
|
|
9441
9441
|
return _.invalid(_n(n));
|
|
9442
9442
|
const r = ee.fromObject(t);
|
|
9443
9443
|
let s, o;
|
|
9444
9444
|
if (U(e.year))
|
|
9445
|
-
s =
|
|
9445
|
+
s = ge.now();
|
|
9446
9446
|
else {
|
|
9447
9447
|
for (const c of _r)
|
|
9448
9448
|
U(e[c]) && (e[c] = Vu[c]);
|
|
@@ -9455,7 +9455,7 @@ function Ha(e, t) {
|
|
|
9455
9455
|
return new _({ ts: s, zone: n, loc: r, o });
|
|
9456
9456
|
}
|
|
9457
9457
|
function Ga(e, t, n) {
|
|
9458
|
-
const r = U(n.round) ? !0 : n.round, s = U(n.rounding) ? "trunc" : n.rounding, o = (a, c) => (a =
|
|
9458
|
+
const r = U(n.round) ? !0 : n.round, s = U(n.rounding) ? "trunc" : n.rounding, o = (a, c) => (a = fi(a, r || n.calendary ? 0 : 2, n.calendary ? "round" : s), t.loc.clone(n).relFormatter(n).format(a, c)), i = (a) => n.calendary ? t.hasSame(e, a) ? 0 : t.startOf(a).diff(e.startOf(a), a).get(a) : t.diff(e, a).get(a);
|
|
9459
9459
|
if (n.unit)
|
|
9460
9460
|
return o(i(n.unit), n.unit);
|
|
9461
9461
|
for (const a of n.units) {
|
|
@@ -9476,9 +9476,9 @@ class _ {
|
|
|
9476
9476
|
* @access private
|
|
9477
9477
|
*/
|
|
9478
9478
|
constructor(t) {
|
|
9479
|
-
const n = t.zone ||
|
|
9479
|
+
const n = t.zone || ge.defaultZone;
|
|
9480
9480
|
let r = t.invalid || (Number.isNaN(t.ts) ? new rt("invalid input") : null) || (n.isValid ? null : _n(n));
|
|
9481
|
-
this.ts = U(t.ts) ?
|
|
9481
|
+
this.ts = U(t.ts) ? ge.now() : t.ts;
|
|
9482
9482
|
let s = null, o = null;
|
|
9483
9483
|
if (!r)
|
|
9484
9484
|
if (t.old && t.old.ts === this.ts && t.old.zone.equals(n))
|
|
@@ -9565,7 +9565,7 @@ class _ {
|
|
|
9565
9565
|
const r = Mp(t) ? t.valueOf() : NaN;
|
|
9566
9566
|
if (Number.isNaN(r))
|
|
9567
9567
|
return _.invalid("invalid input");
|
|
9568
|
-
const s = Dt(n.zone,
|
|
9568
|
+
const s = Dt(n.zone, ge.defaultZone);
|
|
9569
9569
|
return s.isValid ? new _({
|
|
9570
9570
|
ts: r,
|
|
9571
9571
|
zone: s,
|
|
@@ -9587,7 +9587,7 @@ class _ {
|
|
|
9587
9587
|
if (Lt(t))
|
|
9588
9588
|
return t < -Va || t > Va ? _.invalid("Timestamp out of range") : new _({
|
|
9589
9589
|
ts: t,
|
|
9590
|
-
zone: Dt(n.zone,
|
|
9590
|
+
zone: Dt(n.zone, ge.defaultZone),
|
|
9591
9591
|
loc: ee.fromObject(n)
|
|
9592
9592
|
});
|
|
9593
9593
|
throw new Ee(
|
|
@@ -9609,7 +9609,7 @@ class _ {
|
|
|
9609
9609
|
if (Lt(t))
|
|
9610
9610
|
return new _({
|
|
9611
9611
|
ts: t * 1e3,
|
|
9612
|
-
zone: Dt(n.zone,
|
|
9612
|
+
zone: Dt(n.zone, ge.defaultZone),
|
|
9613
9613
|
loc: ee.fromObject(n)
|
|
9614
9614
|
});
|
|
9615
9615
|
throw new Ee("fromSeconds requires a numerical input");
|
|
@@ -9649,17 +9649,17 @@ class _ {
|
|
|
9649
9649
|
*/
|
|
9650
9650
|
static fromObject(t, n = {}) {
|
|
9651
9651
|
t = t || {};
|
|
9652
|
-
const r = Dt(n.zone,
|
|
9652
|
+
const r = Dt(n.zone, ge.defaultZone);
|
|
9653
9653
|
if (!r.isValid)
|
|
9654
9654
|
return _.invalid(_n(r));
|
|
9655
|
-
const s = ee.fromObject(n), o = ss(t, ja), { minDaysInFirstWeek: i, startOfWeek: a } = Da(o, s), c =
|
|
9656
|
-
if ((
|
|
9655
|
+
const s = ee.fromObject(n), o = ss(t, ja), { minDaysInFirstWeek: i, startOfWeek: a } = Da(o, s), c = ge.now(), l = U(n.specificOffset) ? r.offset(c) : n.specificOffset, d = !U(o.ordinal), f = !U(o.year), h = !U(o.month) || !U(o.day), g = f || h, v = o.weekYear || o.weekNumber;
|
|
9656
|
+
if ((g || d) && v)
|
|
9657
9657
|
throw new un(
|
|
9658
9658
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
|
9659
9659
|
);
|
|
9660
9660
|
if (h && d)
|
|
9661
9661
|
throw new un("Can't mix ordinal dates with month/day");
|
|
9662
|
-
const m = v || o.weekday && !
|
|
9662
|
+
const m = v || o.weekday && !g;
|
|
9663
9663
|
let b, T, w = Nr(c, l);
|
|
9664
9664
|
m ? (b = Xy, T = Jy, w = ns(w, i, a)) : d ? (b = ev, T = Qy, w = Vs(w)) : (b = _r, T = Vu);
|
|
9665
9665
|
let C = !1;
|
|
@@ -9676,7 +9676,7 @@ class _ {
|
|
|
9676
9676
|
o: I,
|
|
9677
9677
|
loc: s
|
|
9678
9678
|
});
|
|
9679
|
-
return o.weekday &&
|
|
9679
|
+
return o.weekday && g && t.weekday !== L.weekday ? _.invalid(
|
|
9680
9680
|
"mismatched weekday",
|
|
9681
9681
|
`you can't specify both a weekday of ${o.weekday} and a date of ${L.toISO()}`
|
|
9682
9682
|
) : L.isValid ? L : _.invalid(L.invalid);
|
|
@@ -9806,7 +9806,7 @@ class _ {
|
|
|
9806
9806
|
if (!t)
|
|
9807
9807
|
throw new Ee("need to specify a reason the DateTime is invalid");
|
|
9808
9808
|
const r = t instanceof rt ? t : new rt(t, n);
|
|
9809
|
-
if (
|
|
9809
|
+
if (ge.throwOnInvalid)
|
|
9810
9810
|
throw new sp(r);
|
|
9811
9811
|
return new _({ invalid: r });
|
|
9812
9812
|
}
|
|
@@ -10140,8 +10140,8 @@ class _ {
|
|
|
10140
10140
|
const t = 864e5, n = 6e4, r = ws(this.c), s = this.zone.offset(r - t), o = this.zone.offset(r + t), i = this.zone.offset(r - s * n), a = this.zone.offset(r - o * n);
|
|
10141
10141
|
if (i === a)
|
|
10142
10142
|
return [this];
|
|
10143
|
-
const c = r - i * n, l = r - a * n, d = Nr(c, i),
|
|
10144
|
-
return d.hour ===
|
|
10143
|
+
const c = r - i * n, l = r - a * n, d = Nr(c, i), f = Nr(l, a);
|
|
10144
|
+
return d.hour === f.hour && d.minute === f.minute && d.second === f.second && d.millisecond === f.millisecond ? [Wt(this, { ts: c }), Wt(this, { ts: l })] : [this];
|
|
10145
10145
|
}
|
|
10146
10146
|
/**
|
|
10147
10147
|
* Returns true if this DateTime is in a leap year, false otherwise
|
|
@@ -10150,7 +10150,7 @@ class _ {
|
|
|
10150
10150
|
* @type {boolean}
|
|
10151
10151
|
*/
|
|
10152
10152
|
get isInLeapYear() {
|
|
10153
|
-
return
|
|
10153
|
+
return fr(this.year);
|
|
10154
10154
|
}
|
|
10155
10155
|
/**
|
|
10156
10156
|
* Returns the number of days in this DateTime's month
|
|
@@ -10168,7 +10168,7 @@ class _ {
|
|
|
10168
10168
|
* @type {number}
|
|
10169
10169
|
*/
|
|
10170
10170
|
get daysInYear() {
|
|
10171
|
-
return this.isValid ?
|
|
10171
|
+
return this.isValid ? gn(this.year) : NaN;
|
|
10172
10172
|
}
|
|
10173
10173
|
/**
|
|
10174
10174
|
* Returns the number of weeks in this DateTime's year
|
|
@@ -10225,7 +10225,7 @@ class _ {
|
|
|
10225
10225
|
* @return {DateTime}
|
|
10226
10226
|
*/
|
|
10227
10227
|
toLocal() {
|
|
10228
|
-
return this.setZone(
|
|
10228
|
+
return this.setZone(ge.defaultZone);
|
|
10229
10229
|
}
|
|
10230
10230
|
/**
|
|
10231
10231
|
* "Set" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.
|
|
@@ -10237,7 +10237,7 @@ class _ {
|
|
|
10237
10237
|
* @return {DateTime}
|
|
10238
10238
|
*/
|
|
10239
10239
|
setZone(t, { keepLocalTime: n = !1, keepCalendarTime: r = !1 } = {}) {
|
|
10240
|
-
if (t = Dt(t,
|
|
10240
|
+
if (t = Dt(t, ge.defaultZone), t.equals(this.zone))
|
|
10241
10241
|
return this;
|
|
10242
10242
|
if (t.isValid) {
|
|
10243
10243
|
let s = this.ts;
|
|
@@ -10290,14 +10290,14 @@ class _ {
|
|
|
10290
10290
|
);
|
|
10291
10291
|
if (c && i)
|
|
10292
10292
|
throw new un("Can't mix ordinal dates with month/day");
|
|
10293
|
-
let
|
|
10294
|
-
o ?
|
|
10293
|
+
let f;
|
|
10294
|
+
o ? f = Aa(
|
|
10295
10295
|
{ ...ns(this.c, r, s), ...n },
|
|
10296
10296
|
r,
|
|
10297
10297
|
s
|
|
10298
|
-
) : U(n.ordinal) ? (
|
|
10299
|
-
const [h,
|
|
10300
|
-
return Wt(this, { ts: h, o:
|
|
10298
|
+
) : U(n.ordinal) ? (f = { ...this.toObject(), ...n }, U(n.day) && (f.day = Math.min(rs(f.year, f.month), f.day))) : f = Oa({ ...Vs(this.c), ...n });
|
|
10299
|
+
const [h, g] = Ur(f, this.o, this.zone);
|
|
10300
|
+
return Wt(this, { ts: h, o: g });
|
|
10301
10301
|
}
|
|
10302
10302
|
/**
|
|
10303
10303
|
* Add a period of time to this DateTime and return the resulting DateTime
|
|
@@ -10711,7 +10711,7 @@ class _ {
|
|
|
10711
10711
|
* @return {Interval|DateTime}
|
|
10712
10712
|
*/
|
|
10713
10713
|
until(t) {
|
|
10714
|
-
return this.isValid ?
|
|
10714
|
+
return this.isValid ? fe.fromDateTimes(this, t) : this;
|
|
10715
10715
|
}
|
|
10716
10716
|
/**
|
|
10717
10717
|
* Return whether this DateTime is in the same unit of time as another DateTime.
|
|
@@ -11396,10 +11396,10 @@ const sv = Ie`
|
|
|
11396
11396
|
renderLabel: c(n),
|
|
11397
11397
|
isRequired: s,
|
|
11398
11398
|
placeholder: r ? c(r) : void 0,
|
|
11399
|
-
onChange: (d,
|
|
11400
|
-
var
|
|
11401
|
-
if (!
|
|
11402
|
-
const h = typeof ((
|
|
11399
|
+
onChange: (d, f) => {
|
|
11400
|
+
var g;
|
|
11401
|
+
if (!f.id) return;
|
|
11402
|
+
const h = typeof ((g = e[0]) == null ? void 0 : g.id) == "number" ? Number(f.id) : f.id;
|
|
11403
11403
|
t(h);
|
|
11404
11404
|
},
|
|
11405
11405
|
children: e.map((d) => /* @__PURE__ */ u(
|
|
@@ -11428,7 +11428,7 @@ const sv = Ie`
|
|
|
11428
11428
|
messages: n,
|
|
11429
11429
|
onInputChange: r
|
|
11430
11430
|
}) => {
|
|
11431
|
-
const { categoryAutocomplete: s } = Pt(), { translations: o } = z(), i = mr(), [a, c] = y.useState(!1), [l, d] = y.useState(null),
|
|
11431
|
+
const { categoryAutocomplete: s } = Pt(), { translations: o } = z(), i = mr(), [a, c] = y.useState(!1), [l, d] = y.useState(null), f = (v) => {
|
|
11432
11432
|
const m = v.target.value;
|
|
11433
11433
|
r(m), c(!0), d(null);
|
|
11434
11434
|
}, h = (v, { id: m }) => {
|
|
@@ -11436,7 +11436,7 @@ const sv = Ie`
|
|
|
11436
11436
|
if (!m) return;
|
|
11437
11437
|
const b = (T = t.find((w) => w.id === m)) == null ? void 0 : T.label;
|
|
11438
11438
|
b && r(b), c(!1), d(null);
|
|
11439
|
-
},
|
|
11439
|
+
}, g = (v, { id: m }) => {
|
|
11440
11440
|
d(m ?? null);
|
|
11441
11441
|
};
|
|
11442
11442
|
return s ? /* @__PURE__ */ u(
|
|
@@ -11451,8 +11451,8 @@ const sv = Ie`
|
|
|
11451
11451
|
onRequestShowOptions: () => c(!0),
|
|
11452
11452
|
onRequestHideOptions: () => c(!1),
|
|
11453
11453
|
onBlur: () => d(null),
|
|
11454
|
-
onInputChange:
|
|
11455
|
-
onRequestHighlightOption:
|
|
11454
|
+
onInputChange: f,
|
|
11455
|
+
onRequestHighlightOption: g,
|
|
11456
11456
|
onRequestSelectOption: h,
|
|
11457
11457
|
messages: n,
|
|
11458
11458
|
children: t.length > 0 ? t.map((v) => /* @__PURE__ */ u(
|
|
@@ -11488,7 +11488,7 @@ const sv = Ie`
|
|
|
11488
11488
|
categoriesPending: c,
|
|
11489
11489
|
onCategoryChange: l,
|
|
11490
11490
|
onNewCategoryNameChange: d,
|
|
11491
|
-
onNewCategoryDescriptionChange:
|
|
11491
|
+
onNewCategoryDescriptionChange: f
|
|
11492
11492
|
}) => {
|
|
11493
11493
|
const { translations: h } = z();
|
|
11494
11494
|
return /* @__PURE__ */ O(_o, { description: null, layout: "stacked", vAlign: "top", children: [
|
|
@@ -11503,9 +11503,9 @@ const sv = Ie`
|
|
|
11503
11503
|
onChange: l,
|
|
11504
11504
|
interaction: c ? "disabled" : "enabled",
|
|
11505
11505
|
description: h.useArrowKeysToNavigate,
|
|
11506
|
-
options: e.map((
|
|
11507
|
-
...
|
|
11508
|
-
renderBeforeLabel:
|
|
11506
|
+
options: e.map((g) => ({
|
|
11507
|
+
...g,
|
|
11508
|
+
renderBeforeLabel: g.id === So ? /* @__PURE__ */ u(Wo, { color: "brand" }) : void 0
|
|
11509
11509
|
}))
|
|
11510
11510
|
},
|
|
11511
11511
|
`${a}-${c ? "loading" : "ready"}`
|
|
@@ -11524,7 +11524,7 @@ const sv = Ie`
|
|
|
11524
11524
|
Ht,
|
|
11525
11525
|
{
|
|
11526
11526
|
renderLabel: h.categoryDescriptionLabel,
|
|
11527
|
-
onChange: (
|
|
11527
|
+
onChange: (g, v) => f(v)
|
|
11528
11528
|
}
|
|
11529
11529
|
)
|
|
11530
11530
|
] });
|
|
@@ -11537,7 +11537,7 @@ const sv = Ie`
|
|
|
11537
11537
|
defaultDescription: o,
|
|
11538
11538
|
existingTagNames: i = []
|
|
11539
11539
|
}) => {
|
|
11540
|
-
const { translations: a } = z(), c = mr(), [l, d] = y.useState(s ?? ""), [
|
|
11540
|
+
const { translations: a } = z(), c = mr(), [l, d] = y.useState(s ?? ""), [f, h] = y.useState(!1), [g, v] = y.useState(null), m = y.useMemo(() => {
|
|
11541
11541
|
if (!l.trim()) return i;
|
|
11542
11542
|
const w = l.trim().toLowerCase();
|
|
11543
11543
|
return i.filter((C) => C.toLowerCase().includes(w));
|
|
@@ -11564,7 +11564,7 @@ const sv = Ie`
|
|
|
11564
11564
|
isRequired: !0,
|
|
11565
11565
|
placeholder: a.tagNamePlaceholder,
|
|
11566
11566
|
inputValue: l,
|
|
11567
|
-
isShowingOptions:
|
|
11567
|
+
isShowingOptions: f,
|
|
11568
11568
|
mountNode: c,
|
|
11569
11569
|
onRequestShowOptions: () => h(!0),
|
|
11570
11570
|
onRequestHideOptions: () => h(!1),
|
|
@@ -11573,7 +11573,7 @@ const sv = Ie`
|
|
|
11573
11573
|
onRequestHighlightOption: (w, { id: C }) => v(C ?? null),
|
|
11574
11574
|
onRequestSelectOption: T,
|
|
11575
11575
|
messages: e,
|
|
11576
|
-
children: m.length > 0 ? m.map((w) => /* @__PURE__ */ u($e.Option, { id: w, isHighlighted: w ===
|
|
11576
|
+
children: m.length > 0 ? m.map((w) => /* @__PURE__ */ u($e.Option, { id: w, isHighlighted: w === g, children: w }, w)) : /* @__PURE__ */ u($e.Option, { id: "empty-option", children: a.tagNameNoMatches }, "empty-option")
|
|
11577
11577
|
}
|
|
11578
11578
|
) : /* @__PURE__ */ u(
|
|
11579
11579
|
Ht,
|
|
@@ -11618,7 +11618,7 @@ const sv = Ie`
|
|
|
11618
11618
|
workflowState: e.workflowState,
|
|
11619
11619
|
createdAt: e.createdAt ?? void 0,
|
|
11620
11620
|
updatedAt: e.updatedAt ?? void 0
|
|
11621
|
-
}),
|
|
11621
|
+
}), fv = (e) => ({
|
|
11622
11622
|
id: e.id,
|
|
11623
11623
|
name: e.name,
|
|
11624
11624
|
description: e.description,
|
|
@@ -11634,7 +11634,7 @@ const sv = Ie`
|
|
|
11634
11634
|
avatarUrl: e.avatarUrl ?? void 0,
|
|
11635
11635
|
email: e.email ?? void 0,
|
|
11636
11636
|
sisId: e.sisId ?? void 0
|
|
11637
|
-
}),
|
|
11637
|
+
}), gv = (e) => ({
|
|
11638
11638
|
id: e.id,
|
|
11639
11639
|
name: e.name,
|
|
11640
11640
|
category: e.category ?? { id: "", name: "" }
|
|
@@ -11679,9 +11679,9 @@ const sv = Ie`
|
|
|
11679
11679
|
}), s = y.useMemo(
|
|
11680
11680
|
() => Ss(n),
|
|
11681
11681
|
[n]
|
|
11682
|
-
), [o, i] = y.useState(!1), [a, c] = y.useState([]), [l, d] = y.useState([]), [
|
|
11682
|
+
), [o, i] = y.useState(!1), [a, c] = y.useState([]), [l, d] = y.useState([]), [f, h] = y.useState(
|
|
11683
11683
|
e ?? null
|
|
11684
|
-
), [
|
|
11684
|
+
), [g, v] = y.useState(""), [m, b] = y.useState(""), [T, w] = y.useState(null), [C, N] = y.useState(0), [x, $] = y.useState(
|
|
11685
11685
|
e
|
|
11686
11686
|
), { translations: k } = z(), { executeQuery: I } = ae(), L = (R) => {
|
|
11687
11687
|
R === So ? i(!0) : (i(!1), h(R)), c([]);
|
|
@@ -11689,37 +11689,37 @@ const sv = Ie`
|
|
|
11689
11689
|
v(R), R.trim() && S(R) ? d([{ type: "newError", text: k.categoryNameAlreadyExists }]) : d([]);
|
|
11690
11690
|
}, P = (R) => b(R), D = () => {
|
|
11691
11691
|
let R = !0;
|
|
11692
|
-
return o && (
|
|
11692
|
+
return o && (g.trim() ? S(g) ? (d([{ type: "newError", text: k.categoryNameAlreadyExists }]), R = !1) : d([]) : (d([{ type: "newError", text: k.categoryNameRequired }]), R = !1)), !o && !f ? (c([{ type: "newError", text: k.categoryRequired }]), R = !1) : c([]), R;
|
|
11693
11693
|
}, j = async () => {
|
|
11694
11694
|
var R;
|
|
11695
11695
|
if (o) {
|
|
11696
11696
|
const pe = (R = (await I(El, {
|
|
11697
11697
|
input: {
|
|
11698
|
-
name:
|
|
11698
|
+
name: g.trim(),
|
|
11699
11699
|
...m.trim() ? { description: m.trim() } : {}
|
|
11700
11700
|
}
|
|
11701
11701
|
})).createInstitutionalTagCategory) == null ? void 0 : R.institutionalTagCategory;
|
|
11702
11702
|
if (!pe) throw new Error("Failed to create category");
|
|
11703
11703
|
return pe.id;
|
|
11704
11704
|
}
|
|
11705
|
-
if (
|
|
11705
|
+
if (f === null)
|
|
11706
11706
|
throw new Error("resolveCategoryId called without a selected category");
|
|
11707
|
-
return
|
|
11707
|
+
return f;
|
|
11708
11708
|
}, W = (R) => {
|
|
11709
|
-
i(!1), h(R), w({ id: R, label:
|
|
11709
|
+
i(!1), h(R), w({ id: R, label: g }), $(R), N((G) => G + 1);
|
|
11710
11710
|
}, K = T && !s.find((R) => R.id === T.id) ? [T] : [], F = [
|
|
11711
11711
|
{ id: So, label: k.createNewCategoryOption },
|
|
11712
11712
|
...K,
|
|
11713
11713
|
...s
|
|
11714
11714
|
], V = y.useMemo(() => {
|
|
11715
11715
|
if (!t) return [];
|
|
11716
|
-
const R =
|
|
11716
|
+
const R = g.trim().toLowerCase();
|
|
11717
11717
|
return R ? s.filter((G) => G.label.toLowerCase().includes(R)) : s;
|
|
11718
|
-
}, [t, s,
|
|
11718
|
+
}, [t, s, g]);
|
|
11719
11719
|
return {
|
|
11720
11720
|
isCreatingCategory: o,
|
|
11721
11721
|
categoryError: a,
|
|
11722
|
-
newCategoryName:
|
|
11722
|
+
newCategoryName: g,
|
|
11723
11723
|
newCategoryNameError: l,
|
|
11724
11724
|
filteredSuggestions: V,
|
|
11725
11725
|
categoryOptions: F,
|
|
@@ -11765,9 +11765,9 @@ const sv = Ie`
|
|
|
11765
11765
|
onTagDescriptionRequired: l,
|
|
11766
11766
|
onConflictError: d
|
|
11767
11767
|
} = Qu(), {
|
|
11768
|
-
isCreatingCategory:
|
|
11768
|
+
isCreatingCategory: f,
|
|
11769
11769
|
categoryError: h,
|
|
11770
|
-
newCategoryName:
|
|
11770
|
+
newCategoryName: g,
|
|
11771
11771
|
newCategoryNameError: v,
|
|
11772
11772
|
filteredSuggestions: m,
|
|
11773
11773
|
categoryOptions: b,
|
|
@@ -11783,7 +11783,7 @@ const sv = Ie`
|
|
|
11783
11783
|
} = Ju({ initialCategoryId: t }), { closeModal: S } = We(), { showAlert: E } = Fe(), { translations: P } = z(), D = He(), { executeQuery: j } = ae(), W = y.useRef(null), K = y.useRef(null), { mutate: F } = je({
|
|
11784
11784
|
mutationFn: async () => {
|
|
11785
11785
|
const V = await I();
|
|
11786
|
-
return K.current = V,
|
|
11786
|
+
return K.current = V, f && (W.current = V), j(
|
|
11787
11787
|
Am,
|
|
11788
11788
|
{ input: { name: n, description: r, categoryId: V } }
|
|
11789
11789
|
);
|
|
@@ -11795,7 +11795,7 @@ const sv = Ie`
|
|
|
11795
11795
|
return;
|
|
11796
11796
|
}
|
|
11797
11797
|
const R = K.current, G = W.current !== null;
|
|
11798
|
-
W.current = null, K.current = null,
|
|
11798
|
+
W.current = null, K.current = null, f && E({ variant: "success", message: P.categoryCreated }), R !== null && D("tag.created", { categoryId: R, categoryCreated: G }), S(), E({ variant: "success", message: P.tagSaved });
|
|
11799
11799
|
},
|
|
11800
11800
|
onError: () => {
|
|
11801
11801
|
const V = W.current, R = K.current;
|
|
@@ -11810,9 +11810,9 @@ const sv = Ie`
|
|
|
11810
11810
|
tagDescriptionError: o,
|
|
11811
11811
|
onTagNameChange: i,
|
|
11812
11812
|
onTagDescriptionChange: a,
|
|
11813
|
-
isCreatingCategory:
|
|
11813
|
+
isCreatingCategory: f,
|
|
11814
11814
|
categoryError: h,
|
|
11815
|
-
newCategoryName:
|
|
11815
|
+
newCategoryName: g,
|
|
11816
11816
|
newCategoryNameError: v,
|
|
11817
11817
|
filteredSuggestions: m,
|
|
11818
11818
|
categoryOptions: b,
|
|
@@ -11838,9 +11838,9 @@ const sv = Ie`
|
|
|
11838
11838
|
name: e.name,
|
|
11839
11839
|
description: e.description
|
|
11840
11840
|
}), {
|
|
11841
|
-
isCreatingCategory:
|
|
11841
|
+
isCreatingCategory: f,
|
|
11842
11842
|
categoryError: h,
|
|
11843
|
-
newCategoryName:
|
|
11843
|
+
newCategoryName: g,
|
|
11844
11844
|
newCategoryNameError: v,
|
|
11845
11845
|
filteredSuggestions: m,
|
|
11846
11846
|
categoryOptions: b,
|
|
@@ -11860,9 +11860,9 @@ const sv = Ie`
|
|
|
11860
11860
|
mutationFn: async () => {
|
|
11861
11861
|
K.current = null;
|
|
11862
11862
|
const R = await I();
|
|
11863
|
-
return K.current = R,
|
|
11863
|
+
return K.current = R, f && (W.current = R), { result: await j(ii, {
|
|
11864
11864
|
input: { id: e.id, name: n, description: r, categoryId: R }
|
|
11865
|
-
}), categoryId: R, categoryCreated:
|
|
11865
|
+
}), categoryId: R, categoryCreated: f };
|
|
11866
11866
|
},
|
|
11867
11867
|
onSuccess: ({ result: R, categoryId: G, categoryCreated: pe }) => {
|
|
11868
11868
|
if (Pe(R.updateInstitutionalTag)) {
|
|
@@ -11893,9 +11893,9 @@ const sv = Ie`
|
|
|
11893
11893
|
tagDescriptionError: o,
|
|
11894
11894
|
onTagNameChange: i,
|
|
11895
11895
|
onTagDescriptionChange: a,
|
|
11896
|
-
isCreatingCategory:
|
|
11896
|
+
isCreatingCategory: f,
|
|
11897
11897
|
categoryError: h,
|
|
11898
|
-
newCategoryName:
|
|
11898
|
+
newCategoryName: g,
|
|
11899
11899
|
newCategoryNameError: v,
|
|
11900
11900
|
filteredSuggestions: m,
|
|
11901
11901
|
categoryOptions: b,
|
|
@@ -11920,9 +11920,9 @@ const sv = Ie`
|
|
|
11920
11920
|
categoryError: c,
|
|
11921
11921
|
newCategoryName: l,
|
|
11922
11922
|
newCategoryNameError: d,
|
|
11923
|
-
filteredSuggestions:
|
|
11923
|
+
filteredSuggestions: f,
|
|
11924
11924
|
categoryOptions: h,
|
|
11925
|
-
categorySelectKey:
|
|
11925
|
+
categorySelectKey: g,
|
|
11926
11926
|
defaultCategoryValue: v,
|
|
11927
11927
|
categoriesPending: m,
|
|
11928
11928
|
onCategoryChange: b,
|
|
@@ -11950,13 +11950,13 @@ const sv = Ie`
|
|
|
11950
11950
|
categoryError: c,
|
|
11951
11951
|
newCategoryName: l,
|
|
11952
11952
|
newCategoryNameError: d,
|
|
11953
|
-
filteredSuggestions:
|
|
11953
|
+
filteredSuggestions: f,
|
|
11954
11954
|
isCreatingCategory: a,
|
|
11955
11955
|
onCategoryChange: b,
|
|
11956
11956
|
onNewCategoryNameChange: T,
|
|
11957
11957
|
onNewCategoryDescriptionChange: w,
|
|
11958
11958
|
defaultCategoryValue: v,
|
|
11959
|
-
categorySelectKey:
|
|
11959
|
+
categorySelectKey: g,
|
|
11960
11960
|
categoriesPending: m
|
|
11961
11961
|
}
|
|
11962
11962
|
)
|
|
@@ -11965,7 +11965,7 @@ const sv = Ie`
|
|
|
11965
11965
|
withBackground: !1,
|
|
11966
11966
|
size: "small"
|
|
11967
11967
|
}, ed = ({ category: e }) => {
|
|
11968
|
-
const { translations: t, resolveToken: n } = z(), { data: r = [] } = pi(), { openModal: s, closeModal: o } = We(), { editHandler: i, archiveHandler: a, restoreHandler: c, categoryMoreButtonRef: l } = Fl(), { canCreate: d, canEdit:
|
|
11968
|
+
const { translations: t, resolveToken: n } = z(), { data: r = [] } = pi(), { openModal: s, closeModal: o } = We(), { editHandler: i, archiveHandler: a, restoreHandler: c, categoryMoreButtonRef: l } = Fl(), { canCreate: d, canEdit: f } = Jt(), { archiveEnabled: h } = Pt(), g = y.useRef(void 0), v = (w) => w == null ? void 0 : w(e.id), m = () => {
|
|
11969
11969
|
const w = [
|
|
11970
11970
|
{
|
|
11971
11971
|
label: t.edit,
|
|
@@ -11980,7 +11980,7 @@ const sv = Ie`
|
|
|
11980
11980
|
}
|
|
11981
11981
|
] : []
|
|
11982
11982
|
];
|
|
11983
|
-
return Co(w, { canEdit:
|
|
11983
|
+
return Co(w, { canEdit: f, canCreate: d });
|
|
11984
11984
|
}, b = () => {
|
|
11985
11985
|
const w = [
|
|
11986
11986
|
{
|
|
@@ -11989,7 +11989,7 @@ const sv = Ie`
|
|
|
11989
11989
|
onClick: () => c == null ? void 0 : c(e.id, l.current)
|
|
11990
11990
|
}
|
|
11991
11991
|
];
|
|
11992
|
-
return Co(w, { canEdit:
|
|
11992
|
+
return Co(w, { canEdit: f, canCreate: d });
|
|
11993
11993
|
}, T = /* @__PURE__ */ u(Vt, { renderTip: t.moreOptions, children: /* @__PURE__ */ u(
|
|
11994
11994
|
qe,
|
|
11995
11995
|
{
|
|
@@ -12021,7 +12021,7 @@ const sv = Ie`
|
|
|
12021
12021
|
body: /* @__PURE__ */ u(
|
|
12022
12022
|
Xu,
|
|
12023
12023
|
{
|
|
12024
|
-
submitRef:
|
|
12024
|
+
submitRef: g,
|
|
12025
12025
|
defaultCategoryId: e.id,
|
|
12026
12026
|
existingTagNames: r
|
|
12027
12027
|
}
|
|
@@ -12029,12 +12029,12 @@ const sv = Ie`
|
|
|
12029
12029
|
handleClose: o,
|
|
12030
12030
|
onPrimaryClick: () => {
|
|
12031
12031
|
var w;
|
|
12032
|
-
return (w =
|
|
12032
|
+
return (w = g.current) == null ? void 0 : w.call(g);
|
|
12033
12033
|
}
|
|
12034
12034
|
})
|
|
12035
12035
|
}
|
|
12036
12036
|
) }),
|
|
12037
|
-
|
|
12037
|
+
f && e.workflowState === Le.Active && /* @__PURE__ */ u(
|
|
12038
12038
|
yn,
|
|
12039
12039
|
{
|
|
12040
12040
|
label: n({ key: "categoryMenuLabel", vars: { category: e.name } }),
|
|
@@ -12042,7 +12042,7 @@ const sv = Ie`
|
|
|
12042
12042
|
children: m()
|
|
12043
12043
|
}
|
|
12044
12044
|
),
|
|
12045
|
-
|
|
12045
|
+
f && h && e.workflowState === Le.Deleted && /* @__PURE__ */ u(
|
|
12046
12046
|
yn,
|
|
12047
12047
|
{
|
|
12048
12048
|
label: n({ key: "categoryMenuLabel", vars: { category: e.name } }),
|
|
@@ -12053,11 +12053,11 @@ const sv = Ie`
|
|
|
12053
12053
|
] });
|
|
12054
12054
|
}, wv = ({ category: e, isExpanded: t }) => {
|
|
12055
12055
|
const { isMobile: n } = ur();
|
|
12056
|
-
return n ? /* @__PURE__ */ O(
|
|
12056
|
+
return n ? /* @__PURE__ */ O(ga, { $isMobile: !0, children: [
|
|
12057
12057
|
/* @__PURE__ */ u(ha, { children: /* @__PURE__ */ u(Yn, { level: "h3", variant: "titleCardMini", children: e.name }) }),
|
|
12058
12058
|
/* @__PURE__ */ u(ym, { children: /* @__PURE__ */ u(ne, { size: "medium", children: e.description }) }),
|
|
12059
12059
|
/* @__PURE__ */ u(Lo, { category: e })
|
|
12060
|
-
] }) : /* @__PURE__ */ O(
|
|
12060
|
+
] }) : /* @__PURE__ */ O(ga, { children: [
|
|
12061
12061
|
/* @__PURE__ */ O(pm, { children: [
|
|
12062
12062
|
/* @__PURE__ */ u(ha, { children: /* @__PURE__ */ u(Yn, { level: "h3", variant: "titleCardMini", children: t ? /* @__PURE__ */ u(Mi, { children: e.name }) : e.name }) }),
|
|
12063
12063
|
t ? /* @__PURE__ */ u(ne, { size: "medium", children: e.description }) : /* @__PURE__ */ u(ne, { size: "medium", children: /* @__PURE__ */ u(Mi, { children: e.description }) })
|
|
@@ -12072,26 +12072,26 @@ const sv = Ie`
|
|
|
12072
12072
|
n && /* @__PURE__ */ u(ed, { category: e })
|
|
12073
12073
|
] });
|
|
12074
12074
|
}, ut = 15, Tv = 15, Cv = (e, t, n) => {
|
|
12075
|
-
const r = He(), { showAlert: s } = Fe(), { translations: o, resolveToken: i } = z(), { executeQuery: a } = ae(), { closeModal: c } = We(), l = () => r("people.addedToTag", { tagId: e, categoryId: n || void 0 }), { mutate: d, isPending:
|
|
12075
|
+
const r = He(), { showAlert: s } = Fe(), { translations: o, resolveToken: i } = z(), { executeQuery: a } = ae(), { closeModal: c } = We(), l = () => r("people.addedToTag", { tagId: e, categoryId: n || void 0 }), { mutate: d, isPending: f } = je({
|
|
12076
12076
|
mutationFn: async (h) => {
|
|
12077
|
-
const
|
|
12077
|
+
const g = await Promise.all(
|
|
12078
12078
|
h.map(
|
|
12079
12079
|
(m) => a(
|
|
12080
12080
|
Dl,
|
|
12081
12081
|
{ input: { tagId: e, userId: m } }
|
|
12082
12082
|
)
|
|
12083
12083
|
)
|
|
12084
|
-
), v =
|
|
12084
|
+
), v = g.filter((m) => Pe(m.applyInstitutionalTag));
|
|
12085
12085
|
if (v.length > 0)
|
|
12086
12086
|
throw new Error(`${v.length} of ${h.length} associations failed`);
|
|
12087
|
-
return
|
|
12087
|
+
return g;
|
|
12088
12088
|
},
|
|
12089
|
-
onSuccess: (h,
|
|
12089
|
+
onSuccess: (h, g) => {
|
|
12090
12090
|
c(), s({
|
|
12091
12091
|
message: i({
|
|
12092
12092
|
key: "addPeopleSuccess",
|
|
12093
|
-
count:
|
|
12094
|
-
vars: { count:
|
|
12093
|
+
count: g.length,
|
|
12094
|
+
vars: { count: g.length, tagName: t }
|
|
12095
12095
|
}),
|
|
12096
12096
|
variant: "success"
|
|
12097
12097
|
}), l();
|
|
@@ -12100,7 +12100,7 @@ const sv = Ie`
|
|
|
12100
12100
|
s({ message: o.addPeopleFailed, variant: "error" }), l();
|
|
12101
12101
|
}
|
|
12102
12102
|
});
|
|
12103
|
-
return { addPeople: d, isPending:
|
|
12103
|
+
return { addPeople: d, isPending: f };
|
|
12104
12104
|
}, Sv = (e) => {
|
|
12105
12105
|
var r;
|
|
12106
12106
|
const { executeQuery: t } = ae(), { data: n } = bt({
|
|
@@ -12161,10 +12161,10 @@ const xv = (e, t) => {
|
|
|
12161
12161
|
onToggleUser: r,
|
|
12162
12162
|
onRemoveUser: s
|
|
12163
12163
|
}) => {
|
|
12164
|
-
const { translations: o, resolveToken: i } = z(), a = lr(5), [c, l] = y.useState(""), [d,
|
|
12164
|
+
const { translations: o, resolveToken: i } = z(), a = lr(5), [c, l] = y.useState(""), [d, f] = y.useState(""), [h, g] = y.useState(!1), [v, m] = y.useState(null), b = y.useRef(null), T = Ti(b, t.length > 0), w = mr(), { users: C, isPending: N, isIdle: x } = xv(e, d);
|
|
12165
12165
|
y.useEffect(() => {
|
|
12166
12166
|
const S = setTimeout(() => {
|
|
12167
|
-
(c.length === 0 || c.length >= td) &&
|
|
12167
|
+
(c.length === 0 || c.length >= td) && f(c);
|
|
12168
12168
|
}, bi);
|
|
12169
12169
|
return () => clearTimeout(S);
|
|
12170
12170
|
}, [c]);
|
|
@@ -12222,11 +12222,11 @@ const xv = (e, t) => {
|
|
|
12222
12222
|
},
|
|
12223
12223
|
mountNode: w,
|
|
12224
12224
|
onInputChange: (S, E) => {
|
|
12225
|
-
l(E),
|
|
12225
|
+
l(E), g(!0);
|
|
12226
12226
|
},
|
|
12227
|
-
onRequestShowOptions: () =>
|
|
12227
|
+
onRequestShowOptions: () => g(!0),
|
|
12228
12228
|
onRequestHideOptions: () => {
|
|
12229
|
-
|
|
12229
|
+
g(!1), m(null);
|
|
12230
12230
|
},
|
|
12231
12231
|
onRequestHighlightOption: (S, { id: E }) => {
|
|
12232
12232
|
m(E ?? null);
|
|
@@ -12260,10 +12260,10 @@ const xv = (e, t) => {
|
|
|
12260
12260
|
selectedUsers: r,
|
|
12261
12261
|
messages: o,
|
|
12262
12262
|
onToggleUser: (h) => {
|
|
12263
|
-
i([]), s((
|
|
12263
|
+
i([]), s((g) => g.some((m) => m._id === h._id) ? g.filter((m) => m._id !== h._id) : [...g, h]);
|
|
12264
12264
|
},
|
|
12265
12265
|
onRemoveUser: (h) => {
|
|
12266
|
-
s((
|
|
12266
|
+
s((g) => g.filter((v) => v._id !== h));
|
|
12267
12267
|
}
|
|
12268
12268
|
}
|
|
12269
12269
|
);
|
|
@@ -12301,34 +12301,34 @@ const xv = (e, t) => {
|
|
|
12301
12301
|
return { archive: o };
|
|
12302
12302
|
}, $v = (e) => {
|
|
12303
12303
|
const { showAlert: t } = Fe(), { translations: n } = z(), { executeQuery: r } = ae(), s = He(), o = y.useRef(void 0), i = y.useRef(void 0), a = y.useRef(!1), c = (d) => {
|
|
12304
|
-
const
|
|
12305
|
-
return
|
|
12304
|
+
const f = i.current;
|
|
12305
|
+
return f !== void 0 && f !== d.category.id ? f : void 0;
|
|
12306
12306
|
}, { mutate: l } = je({
|
|
12307
12307
|
mutationFn: async (d) => {
|
|
12308
|
-
const
|
|
12309
|
-
if (Pe(
|
|
12310
|
-
return
|
|
12308
|
+
const f = await r(Ol, { input: { id: d.id, archived: !1 } });
|
|
12309
|
+
if (Pe(f.updateInstitutionalTagArchivedState))
|
|
12310
|
+
return f;
|
|
12311
12311
|
const h = i.current;
|
|
12312
12312
|
return h !== void 0 && h !== d.category.id && await r(
|
|
12313
12313
|
ii,
|
|
12314
12314
|
{ input: { id: d.id, categoryId: h } }
|
|
12315
|
-
),
|
|
12315
|
+
), f;
|
|
12316
12316
|
},
|
|
12317
|
-
onSuccess: (d,
|
|
12318
|
-
const h = c(
|
|
12317
|
+
onSuccess: (d, f) => {
|
|
12318
|
+
const h = c(f);
|
|
12319
12319
|
if (Pe(d.updateInstitutionalTagArchivedState)) {
|
|
12320
|
-
t({ message: n.restoreTagFailed, variant: "error" }), s("tag.restored", { tagId:
|
|
12320
|
+
t({ message: n.restoreTagFailed, variant: "error" }), s("tag.restored", { tagId: f.id, categoryId: e, newCategoryId: h });
|
|
12321
12321
|
return;
|
|
12322
12322
|
}
|
|
12323
|
-
t({ message: n.tagRestored, variant: "success" }), s("tag.restored", { tagId:
|
|
12323
|
+
t({ message: n.tagRestored, variant: "success" }), s("tag.restored", { tagId: f.id, categoryId: e, newCategoryId: h });
|
|
12324
12324
|
},
|
|
12325
12325
|
// The restore is two mutations; the second (the move) can fail after the
|
|
12326
12326
|
// first committed, so resync on failure instead of trusting the cache.
|
|
12327
|
-
onError: (d,
|
|
12327
|
+
onError: (d, f) => {
|
|
12328
12328
|
t({ message: n.restoreTagFailed, variant: "error" }), s("tag.restored", {
|
|
12329
|
-
tagId:
|
|
12329
|
+
tagId: f.id,
|
|
12330
12330
|
categoryId: e,
|
|
12331
|
-
newCategoryId: c(
|
|
12331
|
+
newCategoryId: c(f)
|
|
12332
12332
|
});
|
|
12333
12333
|
}
|
|
12334
12334
|
});
|
|
@@ -12343,12 +12343,12 @@ const xv = (e, t) => {
|
|
|
12343
12343
|
}), o = y.useMemo(
|
|
12344
12344
|
() => Ss(r, e.currentCategoryId),
|
|
12345
12345
|
[r, e.currentCategoryId]
|
|
12346
|
-
), [i, a] = y.useState(void 0), [c, l] = y.useState([]), d = y.useRef(null),
|
|
12346
|
+
), [i, a] = y.useState(void 0), [c, l] = y.useState([]), d = y.useRef(null), f = Ti(d, !0), h = (g) => {
|
|
12347
12347
|
var v;
|
|
12348
|
-
a(
|
|
12348
|
+
a(g), l([]), e.selectedCategoryRef.current = g, e.selectedCategoryNameRef.current = ((v = o.find((m) => m.id === g)) == null ? void 0 : v.label) ?? "";
|
|
12349
12349
|
};
|
|
12350
12350
|
return e.validateRef.current = () => i == null ? (l([{ type: "newError", text: t.categoryRequired }]), !1) : !0, /* @__PURE__ */ O(Mv, { children: [
|
|
12351
|
-
/* @__PURE__ */ u(ne, { id:
|
|
12351
|
+
/* @__PURE__ */ u(ne, { id: f, size: "small", color: "secondary", children: n({
|
|
12352
12352
|
key: "tagsSelected",
|
|
12353
12353
|
count: 1,
|
|
12354
12354
|
vars: { count: 1 }
|
|
@@ -12363,8 +12363,8 @@ const xv = (e, t) => {
|
|
|
12363
12363
|
messages: c,
|
|
12364
12364
|
interaction: s ? "disabled" : "enabled",
|
|
12365
12365
|
description: t.useArrowKeysToNavigate,
|
|
12366
|
-
inputRef: (
|
|
12367
|
-
d.current =
|
|
12366
|
+
inputRef: (g) => {
|
|
12367
|
+
d.current = g;
|
|
12368
12368
|
}
|
|
12369
12369
|
}
|
|
12370
12370
|
)
|
|
@@ -12383,10 +12383,10 @@ const xv = (e, t) => {
|
|
|
12383
12383
|
}), o = y.useMemo(
|
|
12384
12384
|
() => Ss(r),
|
|
12385
12385
|
[r]
|
|
12386
|
-
), [i, a] = y.useState(void 0), [c, l] = y.useState([]), [d,
|
|
12386
|
+
), [i, a] = y.useState(void 0), [c, l] = y.useState([]), [d, f] = y.useState(!1), h = (m) => {
|
|
12387
12387
|
a(m), l([]), e.selectedCategoryRef.current = m;
|
|
12388
|
-
},
|
|
12389
|
-
|
|
12388
|
+
}, g = (m) => {
|
|
12389
|
+
f(m.target.checked), e.restoreAssociationsRef.current = m.target.checked;
|
|
12390
12390
|
}, v = y.useCallback(() => i == null ? (l([{ type: "newError", text: t.restoreTagCategoryRequired }]), !1) : !0, [i, t.restoreTagCategoryRequired]);
|
|
12391
12391
|
return e.validateRef.current = v, /* @__PURE__ */ O(Lv, { children: [
|
|
12392
12392
|
/* @__PURE__ */ u(ne, { children: n({ key: "restoreTagDescription", vars: { count: e.associationsCount } }) }),
|
|
@@ -12396,7 +12396,7 @@ const xv = (e, t) => {
|
|
|
12396
12396
|
label: /* @__PURE__ */ u(ne, { weight: "bold", children: t.restoreAssociations }),
|
|
12397
12397
|
variant: "toggle",
|
|
12398
12398
|
checked: d,
|
|
12399
|
-
onChange:
|
|
12399
|
+
onChange: g
|
|
12400
12400
|
}
|
|
12401
12401
|
) }),
|
|
12402
12402
|
/* @__PURE__ */ u(
|
|
@@ -12421,9 +12421,9 @@ const xv = (e, t) => {
|
|
|
12421
12421
|
categoryError: c,
|
|
12422
12422
|
newCategoryName: l,
|
|
12423
12423
|
newCategoryNameError: d,
|
|
12424
|
-
filteredSuggestions:
|
|
12424
|
+
filteredSuggestions: f,
|
|
12425
12425
|
categoryOptions: h,
|
|
12426
|
-
categorySelectKey:
|
|
12426
|
+
categorySelectKey: g,
|
|
12427
12427
|
defaultCategoryValue: v,
|
|
12428
12428
|
categoriesPending: m,
|
|
12429
12429
|
onCategoryChange: b,
|
|
@@ -12450,10 +12450,10 @@ const xv = (e, t) => {
|
|
|
12450
12450
|
categoryError: c,
|
|
12451
12451
|
newCategoryName: l,
|
|
12452
12452
|
newCategoryNameError: d,
|
|
12453
|
-
filteredSuggestions:
|
|
12453
|
+
filteredSuggestions: f,
|
|
12454
12454
|
isCreatingCategory: a,
|
|
12455
12455
|
defaultCategoryValue: v,
|
|
12456
|
-
categorySelectKey:
|
|
12456
|
+
categorySelectKey: g,
|
|
12457
12457
|
categoriesPending: m,
|
|
12458
12458
|
onCategoryChange: b,
|
|
12459
12459
|
onNewCategoryNameChange: T,
|
|
@@ -12499,12 +12499,12 @@ const xv = (e, t) => {
|
|
|
12499
12499
|
onPageChange: a,
|
|
12500
12500
|
viewTagAssociationsHandler: c
|
|
12501
12501
|
}) => {
|
|
12502
|
-
const { translations: l, resolveToken: d } = z(), { pendingMove:
|
|
12502
|
+
const { translations: l, resolveToken: d } = z(), { pendingMove: f } = ai(), [h, g] = y.useState(null);
|
|
12503
12503
|
y.useEffect(() => {
|
|
12504
|
-
(
|
|
12505
|
-
}, [
|
|
12506
|
-
h && !(r ?? []).some((te) => te.id === h) && (
|
|
12507
|
-
}, [r, h,
|
|
12504
|
+
(f == null ? void 0 : f.sourceCategoryId) === e && g(f.tagId);
|
|
12505
|
+
}, [f, e]), y.useEffect(() => {
|
|
12506
|
+
h && !(r ?? []).some((te) => te.id === h) && (f == null ? void 0 : f.sourceCategoryId) !== e && g(null);
|
|
12507
|
+
}, [r, h, f, e]);
|
|
12508
12508
|
const { data: v = [] } = pi(), { isMobile: m, isTablet: b } = ur(), { categoryMoreButtonRef: T } = Fl(), { openModal: w, closeModal: C } = We(), { handleMoveTag: N, validateRef: x, selectedCategoryRef: $, selectedCategoryNameRef: k } = Ml(), { archive: I } = rd(e), {
|
|
12509
12509
|
restore: L,
|
|
12510
12510
|
validateRef: S,
|
|
@@ -12598,11 +12598,11 @@ const xv = (e, t) => {
|
|
|
12598
12598
|
(oe = x.current) != null && oe.call(x) && (V(te.id), N(te), C());
|
|
12599
12599
|
}
|
|
12600
12600
|
});
|
|
12601
|
-
}, Ue = (
|
|
12601
|
+
}, Ue = (f == null ? void 0 : f.targetCategoryId) === e && !(r ?? []).some((te) => te.id === (f == null ? void 0 : f.tagId)) && (i ?? 0) <= 1 && (r ?? []).length < ut, dt = !!h && !(r ?? []).some((te) => te.id === h), ft = () => {
|
|
12602
12602
|
if (s)
|
|
12603
12603
|
return G.map((re) => /* @__PURE__ */ u(Rn, { children: /* @__PURE__ */ u(Ar, {}) }, re));
|
|
12604
12604
|
const te = (r ?? []).map(
|
|
12605
|
-
(re) => re.id === h || re.id === (
|
|
12605
|
+
(re) => re.id === h || re.id === (f == null ? void 0 : f.tagId) && e === (f == null ? void 0 : f.sourceCategoryId) ? /* @__PURE__ */ u(Rn, { children: /* @__PURE__ */ u(Ar, {}) }, re.id) : /* @__PURE__ */ u(Rn, { children: /* @__PURE__ */ u(
|
|
12606
12606
|
om,
|
|
12607
12607
|
{
|
|
12608
12608
|
tag: re,
|
|
@@ -12628,7 +12628,7 @@ const xv = (e, t) => {
|
|
|
12628
12628
|
] : oe;
|
|
12629
12629
|
}, de = s || r && r.length > 0 || Ue || dt;
|
|
12630
12630
|
return /* @__PURE__ */ u(Tm, { children: de ? /* @__PURE__ */ O(Cm, { children: [
|
|
12631
|
-
/* @__PURE__ */ u(Sm, { $columns: R, children:
|
|
12631
|
+
/* @__PURE__ */ u(Sm, { $columns: R, children: ft() }),
|
|
12632
12632
|
!s && (i ?? 0) > 1 && ((r == null ? void 0 : r.length) ?? 0) > 0 && /* @__PURE__ */ u(
|
|
12633
12633
|
qr,
|
|
12634
12634
|
{
|
|
@@ -12669,16 +12669,16 @@ const xv = (e, t) => {
|
|
|
12669
12669
|
restoreHandler: c,
|
|
12670
12670
|
viewTagAssociationsHandler: l
|
|
12671
12671
|
}) => {
|
|
12672
|
-
const [d,
|
|
12672
|
+
const [d, f] = y.useState(!0), { allExpanded: h } = Ul(), { registerCategoryExpandTrigger: g } = oi(), { resolveToken: v } = z();
|
|
12673
12673
|
y.useEffect(() => {
|
|
12674
|
-
|
|
12674
|
+
f(h);
|
|
12675
12675
|
}, [h]);
|
|
12676
12676
|
const m = y.useRef(d);
|
|
12677
12677
|
y.useEffect(() => {
|
|
12678
12678
|
m.current = d;
|
|
12679
12679
|
}, [d]), y.useEffect(
|
|
12680
|
-
() =>
|
|
12681
|
-
[e.id,
|
|
12680
|
+
() => g(e.id, () => m.current ? !1 : (f(!0), !0)),
|
|
12681
|
+
[e.id, g]
|
|
12682
12682
|
);
|
|
12683
12683
|
const b = `category-info-${e.id}`;
|
|
12684
12684
|
return /* @__PURE__ */ O(
|
|
@@ -12688,7 +12688,7 @@ const xv = (e, t) => {
|
|
|
12688
12688
|
archiveHandler: a,
|
|
12689
12689
|
restoreHandler: c,
|
|
12690
12690
|
children: [
|
|
12691
|
-
/* @__PURE__ */ O(
|
|
12691
|
+
/* @__PURE__ */ O(gm, { children: [
|
|
12692
12692
|
/* @__PURE__ */ O(mm, { id: b, $isExpanded: d, children: [
|
|
12693
12693
|
/* @__PURE__ */ u(wv, { category: e, isExpanded: d }),
|
|
12694
12694
|
/* @__PURE__ */ u(bv, { category: e, isExpanded: d })
|
|
@@ -12704,7 +12704,7 @@ const xv = (e, t) => {
|
|
|
12704
12704
|
vars: { categoryName: e.name }
|
|
12705
12705
|
}),
|
|
12706
12706
|
renderIcon: d ? /* @__PURE__ */ u($d, {}) : /* @__PURE__ */ u(Md, {}),
|
|
12707
|
-
onClick: () =>
|
|
12707
|
+
onClick: () => f(!d),
|
|
12708
12708
|
withBorder: !1,
|
|
12709
12709
|
color: "primary-inverse"
|
|
12710
12710
|
}
|
|
@@ -12732,7 +12732,7 @@ const xv = (e, t) => {
|
|
|
12732
12732
|
data: { categoryName: t.name }
|
|
12733
12733
|
}), i = o && r;
|
|
12734
12734
|
return /* @__PURE__ */ O(dm, { ref: s, $isDropTarget: i, children: [
|
|
12735
|
-
i && /* @__PURE__ */ u(
|
|
12735
|
+
i && /* @__PURE__ */ u(fm, {}),
|
|
12736
12736
|
/* @__PURE__ */ u(Uv, { ...e })
|
|
12737
12737
|
] });
|
|
12738
12738
|
}, od = y.createContext(null), zv = ({ children: e }) => {
|
|
@@ -12748,16 +12748,16 @@ const xv = (e, t) => {
|
|
|
12748
12748
|
n(v);
|
|
12749
12749
|
}, []), d = y.useCallback((v) => {
|
|
12750
12750
|
i(v);
|
|
12751
|
-
}, []),
|
|
12751
|
+
}, []), f = y.useCallback(() => {
|
|
12752
12752
|
c((v) => v === pt.Asc ? pt.Desc : pt.Asc);
|
|
12753
|
-
}, []), h = o === yt.Archive ? Le.Deleted : Le.Active,
|
|
12753
|
+
}, []), h = o === yt.Archive ? Le.Deleted : Le.Active, g = y.useMemo(
|
|
12754
12754
|
() => ({
|
|
12755
12755
|
debouncedSearch: r,
|
|
12756
12756
|
handleSearchQueryChange: l,
|
|
12757
12757
|
selectedView: o,
|
|
12758
12758
|
handleViewTypeChange: d,
|
|
12759
12759
|
sortOrder: a,
|
|
12760
|
-
handleSortToggle:
|
|
12760
|
+
handleSortToggle: f,
|
|
12761
12761
|
tagsWorkflowState: h
|
|
12762
12762
|
}),
|
|
12763
12763
|
[
|
|
@@ -12766,11 +12766,11 @@ const xv = (e, t) => {
|
|
|
12766
12766
|
o,
|
|
12767
12767
|
d,
|
|
12768
12768
|
a,
|
|
12769
|
-
|
|
12769
|
+
f,
|
|
12770
12770
|
h
|
|
12771
12771
|
]
|
|
12772
12772
|
);
|
|
12773
|
-
return /* @__PURE__ */ u(od.Provider, { value:
|
|
12773
|
+
return /* @__PURE__ */ u(od.Provider, { value: g, children: e });
|
|
12774
12774
|
}, Ci = () => {
|
|
12775
12775
|
const e = y.useContext(od);
|
|
12776
12776
|
if (!e) throw new Error("useViewContext must be used within a ViewProvider");
|
|
@@ -12799,21 +12799,21 @@ const xv = (e, t) => {
|
|
|
12799
12799
|
endCursorRef: o,
|
|
12800
12800
|
totalCount: i,
|
|
12801
12801
|
resetKey: a
|
|
12802
|
-
} = e, c = "endCursorRef" in e || "totalCount" in e || "resetKey" in e, [l, d] = y.useState(1), [
|
|
12802
|
+
} = e, c = "endCursorRef" in e || "totalCount" in e || "resetKey" in e, [l, d] = y.useState(1), [f, h] = y.useState([]), [g, v] = y.useState(0);
|
|
12803
12803
|
y.useEffect(() => {
|
|
12804
12804
|
h([]), v(0);
|
|
12805
12805
|
}, [a]);
|
|
12806
|
-
const m = !c && s !== void 0, b = (S) => Math.ceil((S ?? 0) / ut), T = b(i), w = T > 0 &&
|
|
12806
|
+
const m = !c && s !== void 0, b = (S) => Math.ceil((S ?? 0) / ut), T = b(i), w = T > 0 && g >= T ? T - 1 : g;
|
|
12807
12807
|
y.useEffect(() => {
|
|
12808
|
-
w !==
|
|
12809
|
-
}, [w,
|
|
12810
|
-
const C = w > 0 ?
|
|
12808
|
+
w !== g && v(w);
|
|
12809
|
+
}, [w, g]);
|
|
12810
|
+
const C = w > 0 ? f[w - 1] ?? null : null, N = w + 1, $ = c ? N : m ? n ?? 1 : l, k = c ? b(i) : r ?? b(t == null ? void 0 : t.length), I = c ? (S) => {
|
|
12811
12811
|
if (S > N) {
|
|
12812
12812
|
const E = o == null ? void 0 : o.current;
|
|
12813
12813
|
E && (h((P) => {
|
|
12814
12814
|
const D = [...P];
|
|
12815
|
-
return D[
|
|
12816
|
-
}), v(
|
|
12815
|
+
return D[g] = E, D;
|
|
12816
|
+
}), v(g + 1));
|
|
12817
12817
|
} else S < N && v(S - 1);
|
|
12818
12818
|
} : m ? s : d, L = y.useMemo(() => {
|
|
12819
12819
|
if (!t) return [];
|
|
@@ -12831,7 +12831,7 @@ const xv = (e, t) => {
|
|
|
12831
12831
|
// will get the old cursor, which can include the moved tag — causing a duplicate
|
|
12832
12832
|
// across pages when the categories query later puts the tag on page 1.
|
|
12833
12833
|
resetKey: (n == null ? void 0 : n.pageInfo.endCursor) ?? ""
|
|
12834
|
-
}), d = i === null && n != null,
|
|
12834
|
+
}), d = i === null && n != null, f = !(n != null && n.pageInfo.hasNextPage), h = !(d && f), { data: g, isPending: v } = bt({
|
|
12835
12835
|
queryKey: q.tags.list(e, i, t),
|
|
12836
12836
|
queryFn: () => s(Hu, {
|
|
12837
12837
|
accountId: r,
|
|
@@ -12845,10 +12845,10 @@ const xv = (e, t) => {
|
|
|
12845
12845
|
}),
|
|
12846
12846
|
enabled: h
|
|
12847
12847
|
});
|
|
12848
|
-
o.current = d ? (
|
|
12849
|
-
const m = (
|
|
12848
|
+
o.current = d ? (g == null ? void 0 : g.pageInfo.endCursor) ?? n.pageInfo.endCursor : g == null ? void 0 : g.pageInfo.endCursor;
|
|
12849
|
+
const m = (g == null ? void 0 : g.pageInfo) ?? (d ? n.pageInfo : void 0);
|
|
12850
12850
|
return {
|
|
12851
|
-
tags: d && (
|
|
12851
|
+
tags: d && (f || v) ? n.tags : ((g == null ? void 0 : g.nodes) ?? []).filter(Tt).map((T) => wi(T)),
|
|
12852
12852
|
isPending: d ? !1 : v,
|
|
12853
12853
|
currentPage: a,
|
|
12854
12854
|
totalPages: l(m == null ? void 0 : m.totalCount),
|
|
@@ -12874,7 +12874,7 @@ const xv = (e, t) => {
|
|
|
12874
12874
|
category: e,
|
|
12875
12875
|
submitRef: t
|
|
12876
12876
|
}) => {
|
|
12877
|
-
const { categoryAutocomplete: n } = Pt(), [r, s] = y.useState(e.name), [o, i] = y.useState(e.description ?? ""), [a, c] = y.useState([]), { translations: l } = z(), { closeModal: d } = We(), { showAlert:
|
|
12877
|
+
const { categoryAutocomplete: n } = Pt(), [r, s] = y.useState(e.name), [o, i] = y.useState(e.description ?? ""), [a, c] = y.useState([]), { translations: l } = z(), { closeModal: d } = We(), { showAlert: f } = Fe(), h = He(), { executeQuery: g } = ae(), { data: v = [] } = pr({ enabled: n }), m = y.useMemo(
|
|
12878
12878
|
() => v.filter((x) => x.id !== e.id).map((x) => ({ id: x.id, label: x.name })),
|
|
12879
12879
|
[v, e.id]
|
|
12880
12880
|
), b = y.useMemo(() => {
|
|
@@ -12886,7 +12886,7 @@ const xv = (e, t) => {
|
|
|
12886
12886
|
}, C = (x) => {
|
|
12887
12887
|
i(x);
|
|
12888
12888
|
}, { mutate: N } = je({
|
|
12889
|
-
mutationFn: () =>
|
|
12889
|
+
mutationFn: () => g(Em, {
|
|
12890
12890
|
input: { id: e.id, name: r.trim(), description: o.trim() }
|
|
12891
12891
|
}),
|
|
12892
12892
|
onSuccess: (x) => {
|
|
@@ -12894,10 +12894,10 @@ const xv = (e, t) => {
|
|
|
12894
12894
|
cr(x.updateInstitutionalTagCategory) && c([{ type: "newError", text: l.categoryNameAlreadyExists }]);
|
|
12895
12895
|
return;
|
|
12896
12896
|
}
|
|
12897
|
-
h("category.updated"), d(),
|
|
12897
|
+
h("category.updated"), d(), f({ variant: "success", message: l.categoryUpdated });
|
|
12898
12898
|
},
|
|
12899
12899
|
onError: () => {
|
|
12900
|
-
|
|
12900
|
+
f({ variant: "error", message: l.saveCategoryFailed }), h("category.updated");
|
|
12901
12901
|
}
|
|
12902
12902
|
});
|
|
12903
12903
|
return t.current = () => {
|
|
@@ -12972,11 +12972,11 @@ const xv = (e, t) => {
|
|
|
12972
12972
|
initialTagsData: t,
|
|
12973
12973
|
viewTagAssociationsHandler: n
|
|
12974
12974
|
}) => {
|
|
12975
|
-
const { tagsWorkflowState: r } = Ci(), { tags: s, isPending: o, currentPage: i, totalPages: a, totalTagCount: c, handlePageChange: l } = qv(e.id, r, t), { openModal: d, closeModal:
|
|
12975
|
+
const { tagsWorkflowState: r } = Ci(), { tags: s, isPending: o, currentPage: i, totalPages: a, totalTagCount: c, handlePageChange: l } = qv(e.id, r, t), { openModal: d, closeModal: f } = We(), { archive: h } = Vv(), { restore: g, restoreAssociationsRef: v } = Bv(), m = y.useRef(void 0), b = () => {
|
|
12976
12976
|
d({
|
|
12977
12977
|
heading: "editCategory",
|
|
12978
12978
|
body: /* @__PURE__ */ u(Hv, { category: e, submitRef: m }),
|
|
12979
|
-
handleClose:
|
|
12979
|
+
handleClose: f,
|
|
12980
12980
|
onPrimaryClick: () => {
|
|
12981
12981
|
var C;
|
|
12982
12982
|
return (C = m.current) == null ? void 0 : C.call(m);
|
|
@@ -12986,21 +12986,21 @@ const xv = (e, t) => {
|
|
|
12986
12986
|
d({
|
|
12987
12987
|
heading: "archive",
|
|
12988
12988
|
simpleBodyText: "archiveCategoryConfirmation",
|
|
12989
|
-
handleClose: () =>
|
|
12989
|
+
handleClose: () => f(N),
|
|
12990
12990
|
primaryButtonLabel: "archive",
|
|
12991
12991
|
size: "small",
|
|
12992
12992
|
onPrimaryClick: () => {
|
|
12993
|
-
h(C),
|
|
12993
|
+
h(C), f(N);
|
|
12994
12994
|
}
|
|
12995
12995
|
});
|
|
12996
12996
|
}, w = (C, N) => {
|
|
12997
12997
|
v.current = !1, d({
|
|
12998
12998
|
heading: "restoreCategory",
|
|
12999
12999
|
body: /* @__PURE__ */ u(Yv, { restoreAssociationsRef: v }),
|
|
13000
|
-
handleClose: () =>
|
|
13000
|
+
handleClose: () => f(N),
|
|
13001
13001
|
primaryButtonLabel: "restoreCategory",
|
|
13002
13002
|
onPrimaryClick: () => {
|
|
13003
|
-
|
|
13003
|
+
g(C), f(N);
|
|
13004
13004
|
}
|
|
13005
13005
|
});
|
|
13006
13006
|
};
|
|
@@ -13050,8 +13050,8 @@ const xv = (e, t) => {
|
|
|
13050
13050
|
onPageChange: c,
|
|
13051
13051
|
viewTagAssociationsHandler: l
|
|
13052
13052
|
}) => {
|
|
13053
|
-
const { translations: d, resolveToken:
|
|
13054
|
-
return n ? /* @__PURE__ */ u(Il, { children: h.map((
|
|
13053
|
+
const { translations: d, resolveToken: f } = z(), h = lr(4);
|
|
13054
|
+
return n ? /* @__PURE__ */ u(Il, { children: h.map((g) => /* @__PURE__ */ u(Ll, {}, g)) }) : s ? /* @__PURE__ */ u($t, { variant: "error", margin: "medium", children: f({
|
|
13055
13055
|
key: "loadCategories",
|
|
13056
13056
|
vars: { errorMessage: (o == null ? void 0 : o.message) ?? "Unknown error" }
|
|
13057
13057
|
}) }) : /* @__PURE__ */ O(Rm, { children: [
|
|
@@ -13218,8 +13218,8 @@ function lw() {
|
|
|
13218
13218
|
if (typeof l != "string")
|
|
13219
13219
|
return l === 0 ? l : +l;
|
|
13220
13220
|
l = e(l);
|
|
13221
|
-
var
|
|
13222
|
-
return
|
|
13221
|
+
var f = o.test(l);
|
|
13222
|
+
return f || i.test(l) ? a(l.slice(2), f ? 2 : 8) : s.test(l) ? r : +l;
|
|
13223
13223
|
}
|
|
13224
13224
|
return io = c, io;
|
|
13225
13225
|
}
|
|
@@ -13229,16 +13229,16 @@ function uw() {
|
|
|
13229
13229
|
cc = 1;
|
|
13230
13230
|
var e = id(), t = tw(), n = lw(), r = "Expected a function", s = Math.max, o = Math.min;
|
|
13231
13231
|
function i(a, c, l) {
|
|
13232
|
-
var d,
|
|
13232
|
+
var d, f, h, g, v, m, b = 0, T = !1, w = !1, C = !0;
|
|
13233
13233
|
if (typeof a != "function")
|
|
13234
13234
|
throw new TypeError(r);
|
|
13235
13235
|
c = n(c) || 0, e(l) && (T = !!l.leading, w = "maxWait" in l, h = w ? s(n(l.maxWait) || 0, c) : h, C = "trailing" in l ? !!l.trailing : C);
|
|
13236
13236
|
function N(D) {
|
|
13237
|
-
var j = d, W =
|
|
13238
|
-
return d =
|
|
13237
|
+
var j = d, W = f;
|
|
13238
|
+
return d = f = void 0, b = D, g = a.apply(W, j), g;
|
|
13239
13239
|
}
|
|
13240
13240
|
function x(D) {
|
|
13241
|
-
return b = D, v = setTimeout(I, c), T ? N(D) :
|
|
13241
|
+
return b = D, v = setTimeout(I, c), T ? N(D) : g;
|
|
13242
13242
|
}
|
|
13243
13243
|
function $(D) {
|
|
13244
13244
|
var j = D - m, W = D - b, K = c - j;
|
|
@@ -13255,38 +13255,38 @@ function uw() {
|
|
|
13255
13255
|
v = setTimeout(I, $(D));
|
|
13256
13256
|
}
|
|
13257
13257
|
function L(D) {
|
|
13258
|
-
return v = void 0, C && d ? N(D) : (d =
|
|
13258
|
+
return v = void 0, C && d ? N(D) : (d = f = void 0, g);
|
|
13259
13259
|
}
|
|
13260
13260
|
function S() {
|
|
13261
|
-
v !== void 0 && clearTimeout(v), b = 0, d = m =
|
|
13261
|
+
v !== void 0 && clearTimeout(v), b = 0, d = m = f = v = void 0;
|
|
13262
13262
|
}
|
|
13263
13263
|
function E() {
|
|
13264
|
-
return v === void 0 ?
|
|
13264
|
+
return v === void 0 ? g : L(t());
|
|
13265
13265
|
}
|
|
13266
13266
|
function P() {
|
|
13267
13267
|
var D = t(), j = k(D);
|
|
13268
|
-
if (d = arguments,
|
|
13268
|
+
if (d = arguments, f = this, m = D, j) {
|
|
13269
13269
|
if (v === void 0)
|
|
13270
13270
|
return x(m);
|
|
13271
13271
|
if (w)
|
|
13272
13272
|
return clearTimeout(v), v = setTimeout(I, c), N(m);
|
|
13273
13273
|
}
|
|
13274
|
-
return v === void 0 && (v = setTimeout(I, c)),
|
|
13274
|
+
return v === void 0 && (v = setTimeout(I, c)), g;
|
|
13275
13275
|
}
|
|
13276
13276
|
return P.cancel = S, P.flush = E, P;
|
|
13277
13277
|
}
|
|
13278
13278
|
return ao = i, ao;
|
|
13279
13279
|
}
|
|
13280
13280
|
var dw = uw();
|
|
13281
|
-
const
|
|
13281
|
+
const fw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
13282
13282
|
container-type: inline-size;
|
|
13283
13283
|
container-name: ${er};
|
|
13284
|
-
`,
|
|
13284
|
+
`, gw = ({
|
|
13285
13285
|
ignoreContainerSize: e = !1,
|
|
13286
13286
|
children: t
|
|
13287
13287
|
}) => {
|
|
13288
13288
|
const n = y.useRef(null), [r, s] = y.useState(_l.width), o = y.useMemo(
|
|
13289
|
-
() =>
|
|
13289
|
+
() => fw((a) => {
|
|
13290
13290
|
s((c) => c !== a ? a : c);
|
|
13291
13291
|
}, 40),
|
|
13292
13292
|
[]
|
|
@@ -13337,7 +13337,7 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
13337
13337
|
footerProps: l,
|
|
13338
13338
|
...d
|
|
13339
13339
|
}) => {
|
|
13340
|
-
const { translations:
|
|
13340
|
+
const { translations: f, resolveToken: h } = z(), g = h(i), v = y.useRef(null), m = y.useRef(null), b = y.useCallback(() => m.current, []), T = zd() ? void 0 : b, w = () => {
|
|
13341
13341
|
setTimeout(() => {
|
|
13342
13342
|
var N, x;
|
|
13343
13343
|
(x = (N = v.current) == null ? void 0 : N.querySelector('[aria-invalid="true"]')) == null || x.focus();
|
|
@@ -13347,20 +13347,20 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
13347
13347
|
Tr,
|
|
13348
13348
|
{
|
|
13349
13349
|
open: !0,
|
|
13350
|
-
onDismiss: o,
|
|
13351
|
-
label:
|
|
13350
|
+
onDismiss: () => o(),
|
|
13351
|
+
label: g,
|
|
13352
13352
|
size: d.size ?? "large",
|
|
13353
13353
|
...d,
|
|
13354
13354
|
children: [
|
|
13355
13355
|
/* @__PURE__ */ u(Tr.Header, { ...a, children: /* @__PURE__ */ O(hw, { children: [
|
|
13356
|
-
/* @__PURE__ */ u(Yn, { children:
|
|
13356
|
+
/* @__PURE__ */ u(Yn, { children: g }),
|
|
13357
13357
|
/* @__PURE__ */ u(
|
|
13358
13358
|
Id,
|
|
13359
13359
|
{
|
|
13360
|
-
screenReaderLabel:
|
|
13360
|
+
screenReaderLabel: f.close,
|
|
13361
13361
|
placement: "static",
|
|
13362
13362
|
size: "medium",
|
|
13363
|
-
onClick: o
|
|
13363
|
+
onClick: () => o()
|
|
13364
13364
|
}
|
|
13365
13365
|
)
|
|
13366
13366
|
] }) }),
|
|
@@ -13379,7 +13379,7 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
13379
13379
|
pn,
|
|
13380
13380
|
{
|
|
13381
13381
|
color: "secondary",
|
|
13382
|
-
onClick: (r == null ? void 0 : r.onClick) ?? o,
|
|
13382
|
+
onClick: (r == null ? void 0 : r.onClick) ?? (() => o()),
|
|
13383
13383
|
...r,
|
|
13384
13384
|
children: h(s ?? "cancel")
|
|
13385
13385
|
}
|
|
@@ -13406,13 +13406,13 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
13406
13406
|
}, []), o = y.useCallback((i) => {
|
|
13407
13407
|
n(null);
|
|
13408
13408
|
const a = i ?? r.current;
|
|
13409
|
-
r.current = null, a && setTimeout(() => a.focus(), 0);
|
|
13409
|
+
r.current = null, typeof (a == null ? void 0 : a.focus) == "function" && setTimeout(() => a.focus(), 0);
|
|
13410
13410
|
}, []);
|
|
13411
13411
|
return /* @__PURE__ */ O(Bu.Provider, { value: { openModal: s, closeModal: o }, children: [
|
|
13412
13412
|
e,
|
|
13413
13413
|
t && /* @__PURE__ */ u(yw, { ...t })
|
|
13414
13414
|
] });
|
|
13415
|
-
}, ld = (e) => /* @__PURE__ */ u(_d, { theme: { ...p }, children: /* @__PURE__ */ u(Zd, { translations: Tc, translate: Sc, children: /* @__PURE__ */ u(Yh, { children: /* @__PURE__ */ u(
|
|
13415
|
+
}, ld = (e) => /* @__PURE__ */ u(_d, { theme: { ...p }, children: /* @__PURE__ */ u(Zd, { translations: Tc, translate: Sc, children: /* @__PURE__ */ u(Yh, { children: /* @__PURE__ */ u(gw, { children: /* @__PURE__ */ u(fg, { children: /* @__PURE__ */ u(vw, { children: e.children }) }) }) }) }) }), ww = A.div`
|
|
13416
13416
|
display: flex;
|
|
13417
13417
|
flex-direction: column;
|
|
13418
13418
|
gap: ${p.spacing.mediumSmall};
|
|
@@ -13435,15 +13435,15 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
13435
13435
|
const { categoryAutocomplete: t } = Pt(), { data: n = [] } = pr({ enabled: t }), r = y.useMemo(
|
|
13436
13436
|
() => Ss(n),
|
|
13437
13437
|
[n]
|
|
13438
|
-
), { translations: s } = z(), { showAlert: o } = Fe(), [i, a] = y.useState(""), [c, l] = y.useState(""), [d,
|
|
13439
|
-
a(""), l(""),
|
|
13440
|
-
}, { create:
|
|
13438
|
+
), { translations: s } = z(), { showAlert: o } = Fe(), [i, a] = y.useState(""), [c, l] = y.useState(""), [d, f] = y.useState(co), h = () => {
|
|
13439
|
+
a(""), l(""), f(co), e();
|
|
13440
|
+
}, { create: g, isPending: v } = bw({
|
|
13441
13441
|
onSuccess: h,
|
|
13442
13442
|
onError: (C) => {
|
|
13443
|
-
cr(C) ?
|
|
13443
|
+
cr(C) ? f([{ text: s.categoryNameAlreadyExists, type: "newError" }]) : o({ message: s.saveCategoryFailed, variant: "error" });
|
|
13444
13444
|
}
|
|
13445
13445
|
}), m = (C) => r.some((N) => N.label.trim().toLowerCase() === C.trim().toLowerCase()), b = (C) => {
|
|
13446
|
-
a(C), C.trim() && m(C) ?
|
|
13446
|
+
a(C), C.trim() && m(C) ? f([{ type: "newError", text: s.categoryNameAlreadyExists }]) : f(co);
|
|
13447
13447
|
}, T = y.useMemo(() => {
|
|
13448
13448
|
if (!t) return Tw;
|
|
13449
13449
|
const C = i.trim().toLowerCase();
|
|
@@ -13460,14 +13460,14 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
13460
13460
|
onSave: () => {
|
|
13461
13461
|
if (!v) {
|
|
13462
13462
|
if (!i.trim()) {
|
|
13463
|
-
|
|
13463
|
+
f([{ text: s.categoryNameRequired, type: "newError" }]);
|
|
13464
13464
|
return;
|
|
13465
13465
|
}
|
|
13466
13466
|
if (m(i.trim())) {
|
|
13467
|
-
|
|
13467
|
+
f([{ type: "newError", text: s.categoryNameAlreadyExists }]);
|
|
13468
13468
|
return;
|
|
13469
13469
|
}
|
|
13470
|
-
|
|
13470
|
+
g({
|
|
13471
13471
|
name: i.trim(),
|
|
13472
13472
|
...c.trim() ? { description: c.trim() } : {}
|
|
13473
13473
|
});
|
|
@@ -13569,9 +13569,9 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
13569
13569
|
const { translations: n, resolveToken: r } = z(), { isTabletOrMobile: s } = ur(), { allExpanded: o, handleExpandAllToggle: i } = Ul(), { canCreate: a } = Jt(), { archiveEnabled: c } = Pt(), {
|
|
13570
13570
|
handleSearchQueryChange: l,
|
|
13571
13571
|
selectedView: d,
|
|
13572
|
-
handleViewTypeChange:
|
|
13572
|
+
handleViewTypeChange: f,
|
|
13573
13573
|
sortOrder: h,
|
|
13574
|
-
handleSortToggle:
|
|
13574
|
+
handleSortToggle: g
|
|
13575
13575
|
} = Ci(), [v, m] = y.useState(""), { openModal: b, closeModal: T } = We(), w = y.useRef(void 0), C = () => {
|
|
13576
13576
|
b({
|
|
13577
13577
|
heading: "newCategory",
|
|
@@ -13584,11 +13584,11 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
13584
13584
|
}
|
|
13585
13585
|
});
|
|
13586
13586
|
}, N = y.useRef(null), [x, $] = y.useState(""), [k, I] = y.useState(""), [L, S] = y.useState(""), E = (W) => {
|
|
13587
|
-
|
|
13587
|
+
f(W), S(
|
|
13588
13588
|
W === yt.Archive ? n.viewingArchivedCategories : n.viewingActiveCategories
|
|
13589
13589
|
);
|
|
13590
13590
|
}, P = () => {
|
|
13591
|
-
|
|
13591
|
+
g(), $(
|
|
13592
13592
|
h === pt.Asc ? n.categoriesSortedDescending : n.categoriesSortedAscending
|
|
13593
13593
|
);
|
|
13594
13594
|
}, D = () => {
|
|
@@ -13681,17 +13681,17 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
13681
13681
|
[yt.Active]: Le.Active,
|
|
13682
13682
|
[yt.Archive]: Le.Deleted
|
|
13683
13683
|
}, $w = () => {
|
|
13684
|
-
const { debouncedSearch: e, selectedView: t, sortOrder: n, tagsWorkflowState: r } = Ci(), s = y.useRef(void 0), { accountId: o, executeQuery: i } = ae(), a = Dw[t], c = t === yt.Archive, l = c ? Le.Any : Le.Active, d = c ? Le.Deleted : void 0, { cursor:
|
|
13684
|
+
const { debouncedSearch: e, selectedView: t, sortOrder: n, tagsWorkflowState: r } = Ci(), s = y.useRef(void 0), { accountId: o, executeQuery: i } = ae(), a = Dw[t], c = t === yt.Archive, l = c ? Le.Any : Le.Active, d = c ? Le.Deleted : void 0, { cursor: f, currentPage: h, handlePageChange: g, getTotalPages: v } = Si({
|
|
13685
13685
|
endCursorRef: s,
|
|
13686
13686
|
resetKey: `${e}:${a}`
|
|
13687
13687
|
}), { data: m, isPending: b, isFetching: T, isError: w, error: C } = bt({
|
|
13688
|
-
queryKey: q.categories.list(
|
|
13688
|
+
queryKey: q.categories.list(f, e, a),
|
|
13689
13689
|
queryFn: () => i(
|
|
13690
13690
|
ju,
|
|
13691
13691
|
{
|
|
13692
13692
|
accountId: o,
|
|
13693
13693
|
first: ut,
|
|
13694
|
-
after:
|
|
13694
|
+
after: f ?? void 0,
|
|
13695
13695
|
searchTerm: e || void 0,
|
|
13696
13696
|
workflowState: l,
|
|
13697
13697
|
hasTagsInState: d,
|
|
@@ -13721,7 +13721,7 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
13721
13721
|
error: C,
|
|
13722
13722
|
currentPage: h,
|
|
13723
13723
|
totalPages: v(m == null ? void 0 : m.pageInfo.totalCount),
|
|
13724
|
-
handlePageChange:
|
|
13724
|
+
handlePageChange: g,
|
|
13725
13725
|
searchResultCount: (m == null ? void 0 : m.pageInfo.totalCount) ?? 0
|
|
13726
13726
|
};
|
|
13727
13727
|
}, Mw = (e, t, n) => {
|
|
@@ -13729,7 +13729,7 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
13729
13729
|
const { executeQuery: r } = ae(), s = y.useRef(void 0), { cursor: o, currentPage: i, handlePageChange: a } = Si({
|
|
13730
13730
|
endCursorRef: s,
|
|
13731
13731
|
resetKey: `${e}-${(t == null ? void 0 : t.field) ?? "none"}-${(t == null ? void 0 : t.direction) ?? "none"}-${n ?? ""}`
|
|
13732
|
-
}), { data: c, isPending: l, isFetching: d, isError:
|
|
13732
|
+
}), { data: c, isPending: l, isFetching: d, isError: f } = bt({
|
|
13733
13733
|
queryKey: q.tagUsers.list(e, o, t, n),
|
|
13734
13734
|
queryFn: () => r(
|
|
13735
13735
|
nv,
|
|
@@ -13743,17 +13743,17 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
13743
13743
|
).then((T) => T.institutionalTag)
|
|
13744
13744
|
});
|
|
13745
13745
|
s.current = (m = c == null ? void 0 : c.usersConnection) == null ? void 0 : m.pageInfo.endCursor;
|
|
13746
|
-
const h = c ?
|
|
13747
|
-
h && (
|
|
13746
|
+
const h = c ? fv(c) : void 0, g = y.useRef(h);
|
|
13747
|
+
h && (g.current = h);
|
|
13748
13748
|
const v = (((b = c == null ? void 0 : c.usersConnection) == null ? void 0 : b.nodes) ?? []).filter(Tt).map(Ku);
|
|
13749
13749
|
return y.useEffect(() => {
|
|
13750
13750
|
!d && i > 1 && v.length === 0 && a(i - 1);
|
|
13751
13751
|
}, [d, i, v.length, a]), {
|
|
13752
|
-
tag:
|
|
13752
|
+
tag: g.current,
|
|
13753
13753
|
users: v,
|
|
13754
|
-
isPending: l && !
|
|
13754
|
+
isPending: l && !g.current,
|
|
13755
13755
|
isFetching: d,
|
|
13756
|
-
isError:
|
|
13756
|
+
isError: f,
|
|
13757
13757
|
currentPage: i,
|
|
13758
13758
|
// Optimistic: infers "more" from a full page, without a precomputed total.
|
|
13759
13759
|
hasNextPage: v.length === ut,
|
|
@@ -13900,7 +13900,7 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
13900
13900
|
flex-direction: row;
|
|
13901
13901
|
align-items: center;
|
|
13902
13902
|
gap: ${p.spacing.small};
|
|
13903
|
-
`,
|
|
13903
|
+
`, fc = A.div`
|
|
13904
13904
|
display: flex;
|
|
13905
13905
|
flex-direction: column;
|
|
13906
13906
|
gap: ${p.spacing.xxxSmall};
|
|
@@ -13996,14 +13996,14 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
13996
13996
|
onPageChange: c,
|
|
13997
13997
|
onSort: l,
|
|
13998
13998
|
removeUser: d,
|
|
13999
|
-
onAddPeople:
|
|
13999
|
+
onAddPeople: f
|
|
14000
14000
|
}) => {
|
|
14001
|
-
const { translations: h, resolveToken:
|
|
14001
|
+
const { translations: h, resolveToken: g } = z(), { canEdit: v } = Jt(), { isMobile: m } = ur(), { openModal: b, closeModal: T } = We(), w = y.useRef(null), C = y.useRef(/* @__PURE__ */ new Map()), N = y.useRef(null), x = y.useId(), [$, k] = y.useState(""), [I, L] = y.useState(null), S = (F) => {
|
|
14002
14002
|
c(F), L(F);
|
|
14003
14003
|
};
|
|
14004
14004
|
y.useEffect(() => {
|
|
14005
|
-
I === null || t || n !== I || (n > 1 && e.length === 0 || k(
|
|
14006
|
-
}, [I, n, t, e.length,
|
|
14005
|
+
I === null || t || n !== I || (n > 1 && e.length === 0 || k(g({ key: "pageNumber", vars: { pageNumber: n } })), L(null));
|
|
14006
|
+
}, [I, n, t, e.length, g]);
|
|
14007
14007
|
const E = (F, { id: V }) => {
|
|
14008
14008
|
V === "name" && l(s === "ascending" ? "descending" : "ascending");
|
|
14009
14009
|
}, P = (F) => {
|
|
@@ -14025,14 +14025,14 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
14025
14025
|
}
|
|
14026
14026
|
});
|
|
14027
14027
|
}, j = !!o && !t && !i, W = j && e.length === 0, K = y.useCallback(
|
|
14028
|
-
(F, V) => V === "ascending" || V === "descending" ?
|
|
14028
|
+
(F, V) => V === "ascending" || V === "descending" ? g({
|
|
14029
14029
|
key: V === "ascending" ? "userTableCaptionAscending" : "userTableCaptionDescending",
|
|
14030
14030
|
vars: { header: F }
|
|
14031
14031
|
}) : h.assignedUsers,
|
|
14032
|
-
[h,
|
|
14032
|
+
[h, g]
|
|
14033
14033
|
);
|
|
14034
14034
|
return /* @__PURE__ */ O(mn, { children: [
|
|
14035
|
-
j && /* @__PURE__ */ u($t, { screenReaderOnly: !0, liveRegion: _t, liveRegionPoliteness: "polite", children:
|
|
14035
|
+
j && /* @__PURE__ */ u($t, { screenReaderOnly: !0, liveRegion: _t, liveRegionPoliteness: "polite", children: g({ key: "searchResultsShown", vars: { resultCount: e.length } }) }),
|
|
14036
14036
|
$ && /* @__PURE__ */ u($t, { screenReaderOnly: !0, liveRegion: _t, liveRegionPoliteness: "polite", children: $ }),
|
|
14037
14037
|
/* @__PURE__ */ O(zw, { children: [
|
|
14038
14038
|
/* @__PURE__ */ O(Vw, { children: [
|
|
@@ -14073,7 +14073,7 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
14073
14073
|
{
|
|
14074
14074
|
color: "primary",
|
|
14075
14075
|
renderIcon: /* @__PURE__ */ u(Wo, {}),
|
|
14076
|
-
onClick:
|
|
14076
|
+
onClick: f,
|
|
14077
14077
|
elementRef: (F) => {
|
|
14078
14078
|
N.current = F;
|
|
14079
14079
|
},
|
|
@@ -14091,7 +14091,7 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
14091
14091
|
/* @__PURE__ */ u(Oe.Body, { children: t ? es(ut).map((F) => /* @__PURE__ */ O(Oe.Row, { children: [
|
|
14092
14092
|
/* @__PURE__ */ u(Oe.Cell, { children: /* @__PURE__ */ O(dc, { children: [
|
|
14093
14093
|
/* @__PURE__ */ u(H, { $width: "2rem", $height: "2rem", $radius: "50%" }),
|
|
14094
|
-
/* @__PURE__ */ O(
|
|
14094
|
+
/* @__PURE__ */ O(fc, { children: [
|
|
14095
14095
|
/* @__PURE__ */ u(H, { $width: "140px", $height: "1rem" }),
|
|
14096
14096
|
/* @__PURE__ */ u(H, { $width: "180px", $height: "0.75rem" })
|
|
14097
14097
|
] })
|
|
@@ -14101,7 +14101,7 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
14101
14101
|
] }, F.id)) : e.map((F) => /* @__PURE__ */ O(Oe.Row, { children: [
|
|
14102
14102
|
/* @__PURE__ */ u(Oe.Cell, { children: /* @__PURE__ */ O(dc, { children: [
|
|
14103
14103
|
/* @__PURE__ */ u(wc, { name: F.name, src: F.avatarUrl, size: "x-small" }),
|
|
14104
|
-
/* @__PURE__ */ O(
|
|
14104
|
+
/* @__PURE__ */ O(fc, { children: [
|
|
14105
14105
|
/* @__PURE__ */ u(ne, { weight: "bold", children: F.sortableName }),
|
|
14106
14106
|
F.email && /* @__PURE__ */ u(ne, { size: "small", children: F.email })
|
|
14107
14107
|
] })
|
|
@@ -14117,7 +14117,7 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
14117
14117
|
qe,
|
|
14118
14118
|
{
|
|
14119
14119
|
renderIcon: Fo,
|
|
14120
|
-
screenReaderLabel:
|
|
14120
|
+
screenReaderLabel: g({
|
|
14121
14121
|
key: "moreOptionsForUser",
|
|
14122
14122
|
vars: { userName: F.sortableName }
|
|
14123
14123
|
}),
|
|
@@ -14144,7 +14144,7 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
14144
14144
|
),
|
|
14145
14145
|
/* @__PURE__ */ O(ne, { children: [
|
|
14146
14146
|
/* @__PURE__ */ u(vd, { children: n }),
|
|
14147
|
-
/* @__PURE__ */ u(Vr, { children:
|
|
14147
|
+
/* @__PURE__ */ u(Vr, { children: g({
|
|
14148
14148
|
key: "pageNumber",
|
|
14149
14149
|
vars: { pageNumber: n }
|
|
14150
14150
|
}) })
|
|
@@ -14164,15 +14164,15 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
14164
14164
|
if (e !== "none")
|
|
14165
14165
|
return { field: "username", direction: e === "ascending" ? "asc" : "desc" };
|
|
14166
14166
|
}, Kw = ({ tagId: e, onClose: t }) => {
|
|
14167
|
-
const { openModal: n, closeModal: r } = We(), { data: s = [] } = pi(), o = y.useRef(void 0), [i, a] = y.useState("ascending"), [c, l] = y.useState(""), [d,
|
|
14167
|
+
const { openModal: n, closeModal: r } = We(), { data: s = [] } = pi(), o = y.useRef(void 0), [i, a] = y.useState("ascending"), [c, l] = y.useState(""), [d, f] = y.useState(""), { handleAddPeople: h } = nd(o);
|
|
14168
14168
|
y.useEffect(() => {
|
|
14169
|
-
const I = setTimeout(() =>
|
|
14169
|
+
const I = setTimeout(() => f(c), bi);
|
|
14170
14170
|
return () => clearTimeout(I);
|
|
14171
14171
|
}, [c]);
|
|
14172
|
-
const { tag:
|
|
14173
|
-
|
|
14172
|
+
const { tag: g, users: v, isPending: m, isFetching: b, currentPage: T, hasNextPage: w, handlePageChange: C } = Mw(e, Yw(i), d || void 0), { archive: N } = rd((g == null ? void 0 : g.category.id) ?? ""), { removeUser: x } = Rw(e, (g == null ? void 0 : g.category.id) ?? ""), $ = () => {
|
|
14173
|
+
g && n({
|
|
14174
14174
|
heading: "editTag",
|
|
14175
|
-
body: /* @__PURE__ */ u(sd, { tag:
|
|
14175
|
+
body: /* @__PURE__ */ u(sd, { tag: g, submitRef: o, existingTagNames: s }),
|
|
14176
14176
|
handleClose: r,
|
|
14177
14177
|
onPrimaryClick: () => {
|
|
14178
14178
|
var I;
|
|
@@ -14191,11 +14191,11 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
14191
14191
|
}
|
|
14192
14192
|
});
|
|
14193
14193
|
};
|
|
14194
|
-
return m || !
|
|
14194
|
+
return m || !g ? /* @__PURE__ */ u(Lw, {}) : /* @__PURE__ */ O(Pw, { children: [
|
|
14195
14195
|
/* @__PURE__ */ u(
|
|
14196
14196
|
Gw,
|
|
14197
14197
|
{
|
|
14198
|
-
tag:
|
|
14198
|
+
tag: g,
|
|
14199
14199
|
onEdit: $,
|
|
14200
14200
|
onArchive: k,
|
|
14201
14201
|
onClose: t
|
|
@@ -14282,7 +14282,7 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
14282
14282
|
).then(
|
|
14283
14283
|
(a) => {
|
|
14284
14284
|
var c, l;
|
|
14285
|
-
return (((l = (c = a.user) == null ? void 0 : c.institutionalTagsConnection) == null ? void 0 : l.nodes) ?? []).filter(Tt).map(
|
|
14285
|
+
return (((l = (c = a.user) == null ? void 0 : c.institutionalTagsConnection) == null ? void 0 : l.nodes) ?? []).filter(Tt).map(gv);
|
|
14286
14286
|
}
|
|
14287
14287
|
)
|
|
14288
14288
|
});
|
|
@@ -14320,7 +14320,7 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
14320
14320
|
const l = (a = (await n(
|
|
14321
14321
|
ov,
|
|
14322
14322
|
{ accountId: t, first: ab, after: o }
|
|
14323
|
-
)).account) == null ? void 0 : a.institutionalTagsConnection, d = ((l == null ? void 0 : l.nodes) ?? []).filter(Tt).map((
|
|
14323
|
+
)).account) == null ? void 0 : a.institutionalTagsConnection, d = ((l == null ? void 0 : l.nodes) ?? []).filter(Tt).map((f) => wi(f));
|
|
14324
14324
|
s.push(...d), i = (l == null ? void 0 : l.pageInfo.hasNextPage) ?? !1, o = (l == null ? void 0 : l.pageInfo.endCursor) ?? void 0;
|
|
14325
14325
|
}
|
|
14326
14326
|
return s;
|
|
@@ -14360,30 +14360,30 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
14360
14360
|
display: flex;
|
|
14361
14361
|
flex-direction: column;
|
|
14362
14362
|
gap: ${p.spacing.small};
|
|
14363
|
-
`,
|
|
14363
|
+
`, fb = A.div`
|
|
14364
14364
|
display: flex;
|
|
14365
14365
|
flex-wrap: wrap;
|
|
14366
14366
|
gap: ${p.spacing.xxSmall};
|
|
14367
|
-
`,
|
|
14367
|
+
`, gb = ({
|
|
14368
14368
|
userId: e,
|
|
14369
14369
|
existingTagIds: t,
|
|
14370
14370
|
submitRef: n
|
|
14371
14371
|
}) => {
|
|
14372
|
-
const { translations: r, resolveToken: s } = z(), [o, i] = y.useState(""), [a, c] = y.useState(!1), [l, d] = y.useState(null), [
|
|
14372
|
+
const { translations: r, resolveToken: s } = z(), [o, i] = y.useState(""), [a, c] = y.useState(!1), [l, d] = y.useState(null), [f, h] = y.useState([]), [g, v] = y.useState([]), m = y.useRef(null), b = Ti(m, f.length > 0), { data: T = [] } = lb({ enabled: !0 }), { assignTags: w } = ub(e), C = mr();
|
|
14373
14373
|
y.useEffect(() => {
|
|
14374
14374
|
n.current = () => {
|
|
14375
|
-
if (
|
|
14375
|
+
if (f.length === 0) {
|
|
14376
14376
|
v([{ type: "newError", text: r.assignTagsRequired }]);
|
|
14377
14377
|
return;
|
|
14378
14378
|
}
|
|
14379
|
-
w(
|
|
14379
|
+
w(f.map((S) => S.id));
|
|
14380
14380
|
};
|
|
14381
14381
|
});
|
|
14382
14382
|
const N = y.useMemo(
|
|
14383
14383
|
() => T.filter(
|
|
14384
|
-
(S) => !t.has(S.id) && !
|
|
14384
|
+
(S) => !t.has(S.id) && !f.some((E) => E.id === S.id)
|
|
14385
14385
|
),
|
|
14386
|
-
[T, t,
|
|
14386
|
+
[T, t, f]
|
|
14387
14387
|
), x = y.useMemo(() => {
|
|
14388
14388
|
const S = o.toLowerCase(), E = /* @__PURE__ */ new Map();
|
|
14389
14389
|
for (const P of N) {
|
|
@@ -14410,7 +14410,7 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
14410
14410
|
children: E.name
|
|
14411
14411
|
},
|
|
14412
14412
|
E.id
|
|
14413
|
-
)) }, S.categoryId)), L =
|
|
14413
|
+
)) }, S.categoryId)), L = f.length > 0 ? /* @__PURE__ */ u(fb, { children: f.map((S) => /* @__PURE__ */ u(
|
|
14414
14414
|
Zn,
|
|
14415
14415
|
{
|
|
14416
14416
|
text: S.name,
|
|
@@ -14434,7 +14434,7 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
14434
14434
|
isShowingOptions: a,
|
|
14435
14435
|
renderBeforeInput: L,
|
|
14436
14436
|
assistiveText: r.multiSelectFieldDescription,
|
|
14437
|
-
messages:
|
|
14437
|
+
messages: g,
|
|
14438
14438
|
inputRef: (S) => {
|
|
14439
14439
|
m.current = S;
|
|
14440
14440
|
},
|
|
@@ -14451,10 +14451,10 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
14451
14451
|
children: I()
|
|
14452
14452
|
}
|
|
14453
14453
|
),
|
|
14454
|
-
|
|
14454
|
+
f.length > 0 && /* @__PURE__ */ u(ne, { id: b, size: "small", weight: "bold", children: s({
|
|
14455
14455
|
key: "tagsSelected",
|
|
14456
|
-
count:
|
|
14457
|
-
vars: { count:
|
|
14456
|
+
count: f.length,
|
|
14457
|
+
vars: { count: f.length }
|
|
14458
14458
|
}) })
|
|
14459
14459
|
] });
|
|
14460
14460
|
}, hb = 4, mb = [
|
|
@@ -14490,10 +14490,10 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
14490
14490
|
`, Tb = A.li`
|
|
14491
14491
|
display: flex;
|
|
14492
14492
|
`, Cb = ({ userId: e }) => {
|
|
14493
|
-
const { translations: t, resolveToken: n } = z(), { canEdit: r } = Jt(), { openModal: s, closeModal: o } = We(), { tags: i, isPending: a, isError: c } = ob(e), { removeTag: l } = ib(e), d = y.useRef(void 0),
|
|
14493
|
+
const { translations: t, resolveToken: n } = z(), { canEdit: r } = Jt(), { openModal: s, closeModal: o } = We(), { tags: i, isPending: a, isError: c } = ob(e), { removeTag: l } = ib(e), d = y.useRef(void 0), f = y.useMemo(() => new Set(i.map((m) => m.id)), [i]), h = () => {
|
|
14494
14494
|
s({
|
|
14495
14495
|
heading: "assignTagsToUser",
|
|
14496
|
-
body: /* @__PURE__ */ u(
|
|
14496
|
+
body: /* @__PURE__ */ u(gb, { userId: e, existingTagIds: f, submitRef: d }),
|
|
14497
14497
|
handleClose: o,
|
|
14498
14498
|
primaryButtonLabel: "assign",
|
|
14499
14499
|
onPrimaryClick: () => {
|
|
@@ -14501,7 +14501,7 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
14501
14501
|
return (m = d.current) == null ? void 0 : m.call(d);
|
|
14502
14502
|
}
|
|
14503
14503
|
});
|
|
14504
|
-
},
|
|
14504
|
+
}, g = (m) => {
|
|
14505
14505
|
s({
|
|
14506
14506
|
heading: "confirmRemoveTagTitle",
|
|
14507
14507
|
simpleBodyText: "confirmRemoveTagBody",
|
|
@@ -14521,7 +14521,7 @@ const gw = /* @__PURE__ */ Xv(dw), lc = A.div`
|
|
|
14521
14521
|
size: "small",
|
|
14522
14522
|
dismissible: r,
|
|
14523
14523
|
onClick: r ? (b) => {
|
|
14524
|
-
b.stopPropagation(), b.preventDefault(),
|
|
14524
|
+
b.stopPropagation(), b.preventDefault(), g(m);
|
|
14525
14525
|
} : void 0,
|
|
14526
14526
|
"aria-label": r ? n({ key: "removeTagFromUserLabel", vars: { tagName: m.name } }) : void 0
|
|
14527
14527
|
}
|