@gouvfr-lasuite/ui-kit 0.16.1 → 0.16.2
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.cjs +15 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +31 -0
- package/dist/index.js +255 -197
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as P from "react";
|
|
2
|
-
import R, { createContext as ee, useRef as U, useCallback as
|
|
2
|
+
import R, { createContext as ee, useRef as U, useCallback as re, useState as J, useContext as Q, useEffect as X, useMemo as G, version as Kf, cloneElement as Io, forwardRef as Me, useId as iu, Fragment as ml, Children as jf, memo as yl, createElement as Wn, PureComponent as Hf, isValidElement as Vf, useLayoutEffect as ou, useImperativeHandle as zf } from "react";
|
|
3
3
|
import { frFR as Bf, enUS as Uf, CunninghamProvider as Wf, Button as Pe, useCunningham as Ue, Modal as Zf, ModalSize as ba } from "@openfun/cunningham-react";
|
|
4
4
|
import * as Gf from "react-dom";
|
|
5
5
|
import lu, { flushSync as bl, createPortal as qf } from "react-dom";
|
|
@@ -332,7 +332,7 @@ function Ce(t) {
|
|
|
332
332
|
e.current = t;
|
|
333
333
|
}, [
|
|
334
334
|
t
|
|
335
|
-
]),
|
|
335
|
+
]), re((...n) => {
|
|
336
336
|
const r = e.current;
|
|
337
337
|
return r == null ? void 0 : r(...n);
|
|
338
338
|
}, []);
|
|
@@ -438,7 +438,7 @@ function C1(t, e) {
|
|
|
438
438
|
return r ? (r.forEach((i) => i.current = t), t) : e;
|
|
439
439
|
}
|
|
440
440
|
function wt(t = []) {
|
|
441
|
-
let e = Te(), [n, r] = c1(e), i =
|
|
441
|
+
let e = Te(), [n, r] = c1(e), i = re(() => {
|
|
442
442
|
r(function* () {
|
|
443
443
|
yield e, yield document.getElementById(e) ? e : void 0;
|
|
444
444
|
});
|
|
@@ -624,7 +624,7 @@ function su(t) {
|
|
|
624
624
|
} else for (n in t) t[n] && (r && (r += " "), r += n);
|
|
625
625
|
return r;
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function _e() {
|
|
628
628
|
for (var t, e, n = 0, r = "", i = arguments.length; n < i; n++) (t = arguments[n]) && (e = su(t)) && (r && (r += " "), r += e);
|
|
629
629
|
return r;
|
|
630
630
|
}
|
|
@@ -639,7 +639,7 @@ function ue(...t) {
|
|
|
639
639
|
typeof o == "function" && typeof l == "function" && // This is a lot faster than a regex.
|
|
640
640
|
i[0] === "o" && i[1] === "n" && i.charCodeAt(2) >= /* 'A' */
|
|
641
641
|
65 && i.charCodeAt(2) <= /* 'Z' */
|
|
642
|
-
90 ? e[i] = Rt(o, l) : (i === "className" || i === "UNSAFE_className") && typeof o == "string" && typeof l == "string" ? e[i] =
|
|
642
|
+
90 ? e[i] = Rt(o, l) : (i === "className" || i === "UNSAFE_className") && typeof o == "string" && typeof l == "string" ? e[i] = _e(o, l) : i === "id" && o && l ? e.id = C1(o, l) : e[i] = l !== void 0 ? l : o;
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
645
|
return e;
|
|
@@ -842,7 +842,7 @@ function du(t) {
|
|
|
842
842
|
});
|
|
843
843
|
}
|
|
844
844
|
function pi() {
|
|
845
|
-
let t = U(/* @__PURE__ */ new Map()), e =
|
|
845
|
+
let t = U(/* @__PURE__ */ new Map()), e = re((i, o, l, a) => {
|
|
846
846
|
let s = a != null && a.once ? (...c) => {
|
|
847
847
|
t.current.delete(l), l(...c);
|
|
848
848
|
} : l;
|
|
@@ -852,11 +852,11 @@ function pi() {
|
|
|
852
852
|
fn: s,
|
|
853
853
|
options: a
|
|
854
854
|
}), i.addEventListener(o, s, a);
|
|
855
|
-
}, []), n =
|
|
855
|
+
}, []), n = re((i, o, l, a) => {
|
|
856
856
|
var s;
|
|
857
857
|
let c = ((s = t.current.get(l)) === null || s === void 0 ? void 0 : s.fn) || l;
|
|
858
858
|
i.removeEventListener(o, c, a), t.current.delete(l);
|
|
859
|
-
}, []), r =
|
|
859
|
+
}, []), r = re(() => {
|
|
860
860
|
t.current.forEach((i, o) => {
|
|
861
861
|
n(i.eventTarget, i.type, o, i.options);
|
|
862
862
|
});
|
|
@@ -885,7 +885,7 @@ function vi(t, e) {
|
|
|
885
885
|
};
|
|
886
886
|
}
|
|
887
887
|
function dt(t) {
|
|
888
|
-
const e = U(null), n = U(void 0), r =
|
|
888
|
+
const e = U(null), n = U(void 0), r = re((i) => {
|
|
889
889
|
if (typeof t == "function") {
|
|
890
890
|
const o = t, l = o(i);
|
|
891
891
|
return () => {
|
|
@@ -1089,7 +1089,7 @@ function q1(t, e = !0) {
|
|
|
1089
1089
|
}, [
|
|
1090
1090
|
t,
|
|
1091
1091
|
i
|
|
1092
|
-
]), vu(t, i,
|
|
1092
|
+
]), vu(t, i, re(() => r(!1), [])), i;
|
|
1093
1093
|
}
|
|
1094
1094
|
function Y1(t, e) {
|
|
1095
1095
|
let [n, r] = J(e ? "open" : "closed");
|
|
@@ -1103,7 +1103,7 @@ function Y1(t, e) {
|
|
|
1103
1103
|
break;
|
|
1104
1104
|
}
|
|
1105
1105
|
let i = n === "exiting";
|
|
1106
|
-
return vu(t, i,
|
|
1106
|
+
return vu(t, i, re(() => {
|
|
1107
1107
|
r((o) => o === "exiting" ? "closed" : o);
|
|
1108
1108
|
}, [])), i;
|
|
1109
1109
|
}
|
|
@@ -1166,7 +1166,7 @@ function gi(t, e, n) {
|
|
|
1166
1166
|
}, [
|
|
1167
1167
|
l
|
|
1168
1168
|
]);
|
|
1169
|
-
let a = l ? t : r, s =
|
|
1169
|
+
let a = l ? t : r, s = re((c, ...u) => {
|
|
1170
1170
|
let d = (h, ...p) => {
|
|
1171
1171
|
n && (Object.is(a, h) || n(h, ...p)), l || (a = h);
|
|
1172
1172
|
};
|
|
@@ -1195,7 +1195,7 @@ function ft({ values: t, children: e }) {
|
|
|
1195
1195
|
}, e);
|
|
1196
1196
|
return e;
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function Ie(t) {
|
|
1199
1199
|
let { className: e, style: n, children: r, defaultClassName: i, defaultChildren: o, defaultStyle: l, values: a } = t;
|
|
1200
1200
|
return G(() => {
|
|
1201
1201
|
let s, c, u;
|
|
@@ -1267,7 +1267,7 @@ function ot(t, e, n) {
|
|
|
1267
1267
|
];
|
|
1268
1268
|
}
|
|
1269
1269
|
function Pl(t = !0) {
|
|
1270
|
-
let [e, n] = J(t), r = U(!1), i =
|
|
1270
|
+
let [e, n] = J(t), r = U(!1), i = re((o) => {
|
|
1271
1271
|
r.current = !0, n(!!o);
|
|
1272
1272
|
}, []);
|
|
1273
1273
|
return ce(() => {
|
|
@@ -1711,7 +1711,7 @@ function Cu(t) {
|
|
|
1711
1711
|
let n = Ce((r) => {
|
|
1712
1712
|
t == null || t(r);
|
|
1713
1713
|
});
|
|
1714
|
-
return
|
|
1714
|
+
return re((r) => {
|
|
1715
1715
|
if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
|
|
1716
1716
|
e.current.isFocused = !0;
|
|
1717
1717
|
let i = r.target, o = (l) => {
|
|
@@ -2302,13 +2302,13 @@ function xt(t) {
|
|
|
2302
2302
|
}
|
|
2303
2303
|
function Nl(t) {
|
|
2304
2304
|
let { isDisabled: e, onFocus: n, onBlur: r, onFocusChange: i } = t;
|
|
2305
|
-
const o =
|
|
2305
|
+
const o = re((s) => {
|
|
2306
2306
|
if (s.target === s.currentTarget)
|
|
2307
2307
|
return r && r(s), i && i(!1), !0;
|
|
2308
2308
|
}, [
|
|
2309
2309
|
r,
|
|
2310
2310
|
i
|
|
2311
|
-
]), l = Cu(o), a =
|
|
2311
|
+
]), l = Cu(o), a = re((s) => {
|
|
2312
2312
|
const c = fe(s.target), u = c ? De(c) : De();
|
|
2313
2313
|
s.target === s.currentTarget && u === de(s.nativeEvent) && (n && n(s), i && i(!0), l(s));
|
|
2314
2314
|
}, [
|
|
@@ -2390,14 +2390,14 @@ function Sh({ children: t }) {
|
|
|
2390
2390
|
function Ci(t) {
|
|
2391
2391
|
let { isDisabled: e, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = t, o = U({
|
|
2392
2392
|
isFocusWithin: !1
|
|
2393
|
-
}), { addGlobalListener: l, removeAllGlobalListeners: a } = pi(), s =
|
|
2393
|
+
}), { addGlobalListener: l, removeAllGlobalListeners: a } = pi(), s = re((d) => {
|
|
2394
2394
|
d.currentTarget.contains(d.target) && o.current.isFocusWithin && !d.currentTarget.contains(d.relatedTarget) && (o.current.isFocusWithin = !1, a(), n && n(d), i && i(!1));
|
|
2395
2395
|
}, [
|
|
2396
2396
|
n,
|
|
2397
2397
|
i,
|
|
2398
2398
|
o,
|
|
2399
2399
|
a
|
|
2400
|
-
]), c = Cu(s), u =
|
|
2400
|
+
]), c = Cu(s), u = re((d) => {
|
|
2401
2401
|
if (!d.currentTarget.contains(d.target)) return;
|
|
2402
2402
|
const h = fe(d.target), p = De(h);
|
|
2403
2403
|
if (!o.current.isFocusWithin && p === de(d.nativeEvent)) {
|
|
@@ -2740,7 +2740,7 @@ function _h({ collection: t, render: e }) {
|
|
|
2740
2740
|
function Ih(t, e, n) {
|
|
2741
2741
|
let r = lr(), i = U(r);
|
|
2742
2742
|
i.current = r;
|
|
2743
|
-
let o =
|
|
2743
|
+
let o = re(() => i.current ? n() : e(), [
|
|
2744
2744
|
e,
|
|
2745
2745
|
n
|
|
2746
2746
|
]);
|
|
@@ -2748,14 +2748,14 @@ function Ih(t, e, n) {
|
|
|
2748
2748
|
}
|
|
2749
2749
|
const Oh = typeof R.useSyncExternalStore == "function" ? R.useSyncExternalStore : Ih;
|
|
2750
2750
|
function kh(t) {
|
|
2751
|
-
let [e] = J(() => new th((t == null ? void 0 : t()) || new Tl())), n =
|
|
2751
|
+
let [e] = J(() => new th((t == null ? void 0 : t()) || new Tl())), n = re((l) => e.subscribe(l), [
|
|
2752
2752
|
e
|
|
2753
|
-
]), r =
|
|
2753
|
+
]), r = re(() => {
|
|
2754
2754
|
let l = e.getCollection();
|
|
2755
2755
|
return e.isSSR && e.resetAfterSSR(), l;
|
|
2756
2756
|
}, [
|
|
2757
2757
|
e
|
|
2758
|
-
]), i =
|
|
2758
|
+
]), i = re(() => (e.isSSR = !0, e.getCollection()), [
|
|
2759
2759
|
e
|
|
2760
2760
|
]), o = Oh(n, r, i);
|
|
2761
2761
|
return ce(() => (e.isMounted = !0, () => {
|
|
@@ -2769,7 +2769,7 @@ function kh(t) {
|
|
|
2769
2769
|
}
|
|
2770
2770
|
const Ho = /* @__PURE__ */ ee(null);
|
|
2771
2771
|
function Nh(t, e, n, r, i, o) {
|
|
2772
|
-
let l =
|
|
2772
|
+
let l = re((s) => {
|
|
2773
2773
|
s == null || s.setProps(e, n, r, o);
|
|
2774
2774
|
}, [
|
|
2775
2775
|
e,
|
|
@@ -3505,7 +3505,7 @@ function Tn(t = {}) {
|
|
|
3505
3505
|
let { autoFocus: e = !1, isTextInput: n, within: r } = t, i = U({
|
|
3506
3506
|
isFocused: !1,
|
|
3507
3507
|
isFocusVisible: e || wn()
|
|
3508
|
-
}), [o, l] = J(!1), [a, s] = J(() => i.current.isFocused && i.current.isFocusVisible), c =
|
|
3508
|
+
}), [o, l] = J(!1), [a, s] = J(() => i.current.isFocused && i.current.isFocusVisible), c = re(() => s(i.current.isFocused && i.current.isFocusVisible), []), u = re((p) => {
|
|
3509
3509
|
i.current.isFocused = p, l(p), c();
|
|
3510
3510
|
}, [
|
|
3511
3511
|
c
|
|
@@ -4114,7 +4114,7 @@ function T5(t) {
|
|
|
4114
4114
|
}, [
|
|
4115
4115
|
p
|
|
4116
4116
|
]);
|
|
4117
|
-
let E =
|
|
4117
|
+
let E = re(() => {
|
|
4118
4118
|
if (h === !1 || !p || !i.current || !r.current || !c || (me == null ? void 0 : me.scale) !== $.current) return;
|
|
4119
4119
|
let V = null;
|
|
4120
4120
|
if (o.current && o.current.contains(document.activeElement)) {
|
|
@@ -4181,7 +4181,7 @@ function T5(t) {
|
|
|
4181
4181
|
}, [
|
|
4182
4182
|
E
|
|
4183
4183
|
]);
|
|
4184
|
-
let x =
|
|
4184
|
+
let x = re(() => {
|
|
4185
4185
|
S.current || m == null || m();
|
|
4186
4186
|
}, [
|
|
4187
4187
|
m,
|
|
@@ -4579,7 +4579,7 @@ function ss(t) {
|
|
|
4579
4579
|
}
|
|
4580
4580
|
}));
|
|
4581
4581
|
}
|
|
4582
|
-
let Rn = /* @__PURE__ */ new WeakMap(),
|
|
4582
|
+
let Rn = /* @__PURE__ */ new WeakMap(), Ne = [];
|
|
4583
4583
|
function H5(t, e = document.body) {
|
|
4584
4584
|
let n = new Set(t), r = /* @__PURE__ */ new Set(), i = (s) => {
|
|
4585
4585
|
for (let h of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) n.add(h);
|
|
@@ -4601,7 +4601,7 @@ function H5(t, e = document.body) {
|
|
|
4601
4601
|
let u = (c = Rn.get(s)) !== null && c !== void 0 ? c : 0;
|
|
4602
4602
|
s.getAttribute("aria-hidden") === "true" && u === 0 || (u === 0 && s.setAttribute("aria-hidden", "true"), r.add(s), Rn.set(s, u + 1));
|
|
4603
4603
|
};
|
|
4604
|
-
|
|
4604
|
+
Ne.length && Ne[Ne.length - 1].disconnect(), i(e);
|
|
4605
4605
|
let l = new MutationObserver((s) => {
|
|
4606
4606
|
for (let c of s)
|
|
4607
4607
|
if (!(c.type !== "childList" || c.addedNodes.length === 0) && ![
|
|
@@ -4630,17 +4630,17 @@ function H5(t, e = document.body) {
|
|
|
4630
4630
|
l.disconnect();
|
|
4631
4631
|
}
|
|
4632
4632
|
};
|
|
4633
|
-
return
|
|
4633
|
+
return Ne.push(a), () => {
|
|
4634
4634
|
l.disconnect();
|
|
4635
4635
|
for (let s of r) {
|
|
4636
4636
|
let c = Rn.get(s);
|
|
4637
4637
|
c != null && (c === 1 ? (s.removeAttribute("aria-hidden"), Rn.delete(s)) : Rn.set(s, c - 1));
|
|
4638
4638
|
}
|
|
4639
|
-
a ===
|
|
4639
|
+
a === Ne[Ne.length - 1] ? (Ne.pop(), Ne.length && Ne[Ne.length - 1].observe()) : Ne.splice(Ne.indexOf(a), 1);
|
|
4640
4640
|
};
|
|
4641
4641
|
}
|
|
4642
4642
|
function V5(t) {
|
|
4643
|
-
let e =
|
|
4643
|
+
let e = Ne[Ne.length - 1];
|
|
4644
4644
|
if (e && !e.visibleNodes.has(t))
|
|
4645
4645
|
return e.visibleNodes.add(t), () => {
|
|
4646
4646
|
e.visibleNodes.delete(t);
|
|
@@ -6404,7 +6404,7 @@ const bd = /* @__PURE__ */ ee({}), yp = /* @__PURE__ */ _l(function(e, n) {
|
|
|
6404
6404
|
isFocusVisible: c,
|
|
6405
6405
|
isDisabled: e.isDisabled || !1,
|
|
6406
6406
|
isPending: i ?? !1
|
|
6407
|
-
}, p =
|
|
6407
|
+
}, p = Ie({
|
|
6408
6408
|
...e,
|
|
6409
6409
|
values: h,
|
|
6410
6410
|
defaultClassName: "react-aria-Button"
|
|
@@ -6840,7 +6840,7 @@ class ar {
|
|
|
6840
6840
|
function Cd(t) {
|
|
6841
6841
|
let { filter: e, layoutDelegate: n } = t, r = Bl(t), i = G(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
6842
6842
|
t.disabledKeys
|
|
6843
|
-
]), o =
|
|
6843
|
+
]), o = re((c) => e ? new gs(e(c)) : new gs(c), [
|
|
6844
6844
|
e
|
|
6845
6845
|
]), l = G(() => ({
|
|
6846
6846
|
suppressTextValueWarning: t.suppressTextValueWarning
|
|
@@ -6939,15 +6939,15 @@ function Sd(t) {
|
|
|
6939
6939
|
}
|
|
6940
6940
|
function Ul(t) {
|
|
6941
6941
|
let [e, n] = gi(t.isOpen, t.defaultOpen || !1, t.onOpenChange);
|
|
6942
|
-
const r =
|
|
6942
|
+
const r = re(() => {
|
|
6943
6943
|
n(!0);
|
|
6944
6944
|
}, [
|
|
6945
6945
|
n
|
|
6946
|
-
]), i =
|
|
6946
|
+
]), i = re(() => {
|
|
6947
6947
|
n(!1);
|
|
6948
6948
|
}, [
|
|
6949
6949
|
n
|
|
6950
|
-
]), o =
|
|
6950
|
+
]), o = re(() => {
|
|
6951
6951
|
n(!e);
|
|
6952
6952
|
}, [
|
|
6953
6953
|
n,
|
|
@@ -7345,7 +7345,7 @@ class Ip {
|
|
|
7345
7345
|
function Op(t) {
|
|
7346
7346
|
let { onExpandedChange: e } = t, [n, r] = gi(t.expandedKeys ? new Set(t.expandedKeys) : void 0, t.defaultExpandedKeys ? new Set(t.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e), i = Bl(t), o = G(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
7347
7347
|
t.disabledKeys
|
|
7348
|
-
]), l = k0(t,
|
|
7348
|
+
]), l = k0(t, re((s) => new Ip(s, {
|
|
7349
7349
|
expandedKeys: n
|
|
7350
7350
|
}), [
|
|
7351
7351
|
n
|
|
@@ -7415,7 +7415,7 @@ const xi = /* @__PURE__ */ ee({}), Pd = /* @__PURE__ */ ee(null), Lp = /* @__PUR
|
|
|
7415
7415
|
});
|
|
7416
7416
|
function Dd(t, e) {
|
|
7417
7417
|
var n;
|
|
7418
|
-
let r = t == null ? void 0 : t.renderDropIndicator, i = t == null || (n = t.isVirtualDragging) === null || n === void 0 ? void 0 : n.call(t), o =
|
|
7418
|
+
let r = t == null ? void 0 : t.renderDropIndicator, i = t == null || (n = t.isVirtualDragging) === null || n === void 0 ? void 0 : n.call(t), o = re((l) => {
|
|
7419
7419
|
if (i || e != null && e.isDropTarget(l)) return r ? r(l) : /* @__PURE__ */ R.createElement(Lp, {
|
|
7420
7420
|
target: l
|
|
7421
7421
|
});
|
|
@@ -7577,7 +7577,7 @@ function Id({ state: t, props: e, listBoxRef: n }) {
|
|
|
7577
7577
|
isFocusVisible: O,
|
|
7578
7578
|
layout: e.layout || "stack",
|
|
7579
7579
|
state: c
|
|
7580
|
-
}, _ =
|
|
7580
|
+
}, _ = Ie({
|
|
7581
7581
|
className: e.className,
|
|
7582
7582
|
style: e.style,
|
|
7583
7583
|
defaultClassName: "react-aria-ListBox",
|
|
@@ -7653,7 +7653,7 @@ function Fp(t, e, n, r = "react-aria-ListBoxSection") {
|
|
|
7653
7653
|
let { headingProps: d, groupProps: h } = rp({
|
|
7654
7654
|
heading: c,
|
|
7655
7655
|
"aria-label": (u = t["aria-label"]) !== null && u !== void 0 ? u : void 0
|
|
7656
|
-
}), p =
|
|
7656
|
+
}), p = Ie({
|
|
7657
7657
|
defaultClassName: r,
|
|
7658
7658
|
className: t.className,
|
|
7659
7659
|
style: t.style,
|
|
@@ -7696,7 +7696,7 @@ const Kp = /* @__PURE__ */ Si("item", function(e, n, r) {
|
|
|
7696
7696
|
dropPosition: "on"
|
|
7697
7697
|
}
|
|
7698
7698
|
}, s, i));
|
|
7699
|
-
let y = a && a.isDragging(r.key), b =
|
|
7699
|
+
let y = a && a.isDragging(r.key), b = Ie({
|
|
7700
7700
|
...e,
|
|
7701
7701
|
id: void 0,
|
|
7702
7702
|
children: e.children,
|
|
@@ -7757,7 +7757,7 @@ function jp(t, e) {
|
|
|
7757
7757
|
});
|
|
7758
7758
|
}
|
|
7759
7759
|
function Hp(t, e) {
|
|
7760
|
-
let { dropIndicatorProps: n, isDropTarget: r, ...i } = t, o =
|
|
7760
|
+
let { dropIndicatorProps: n, isDropTarget: r, ...i } = t, o = Ie({
|
|
7761
7761
|
...i,
|
|
7762
7762
|
defaultClassName: "react-aria-DropIndicator",
|
|
7763
7763
|
values: {
|
|
@@ -7813,7 +7813,7 @@ function Bp({ state: t, isExiting: e, UNSTABLE_portalContainer: n, ...r }) {
|
|
|
7813
7813
|
// If this is a submenu/subdialog, use the root popover's container
|
|
7814
7814
|
// to detect outside interaction and add aria-hidden.
|
|
7815
7815
|
groupRef: c ? s : a
|
|
7816
|
-
}, t), f = r.popoverRef, v = q1(f, !!m) || r.isEntering || !1, y =
|
|
7816
|
+
}, t), f = r.popoverRef, v = q1(f, !!m) || r.isEntering || !1, y = Ie({
|
|
7817
7817
|
...r,
|
|
7818
7818
|
defaultClassName: "react-aria-Popover",
|
|
7819
7819
|
values: {
|
|
@@ -7918,7 +7918,7 @@ function qp({ props: t, collection: e, menuRef: n }) {
|
|
|
7918
7918
|
...i,
|
|
7919
7919
|
isVirtualized: c,
|
|
7920
7920
|
onClose: t.onClose || (s == null ? void 0 : s.close)
|
|
7921
|
-
}, a, n), h =
|
|
7921
|
+
}, a, n), h = Ie({
|
|
7922
7922
|
defaultClassName: "react-aria-Menu",
|
|
7923
7923
|
className: t.className,
|
|
7924
7924
|
style: t.style,
|
|
@@ -8018,7 +8018,7 @@ function Xp(t, e, n, r = "react-aria-MenuSection") {
|
|
|
8018
8018
|
let { headingProps: d, groupProps: h } = sp({
|
|
8019
8019
|
heading: c,
|
|
8020
8020
|
"aria-label": (u = n.props["aria-label"]) !== null && u !== void 0 ? u : void 0
|
|
8021
|
-
}), p =
|
|
8021
|
+
}), p = Ie({
|
|
8022
8022
|
defaultClassName: r,
|
|
8023
8023
|
className: (i = n.props) === null || i === void 0 ? void 0 : i.className,
|
|
8024
8024
|
style: (o = n.props) === null || o === void 0 ? void 0 : o.style,
|
|
@@ -8058,7 +8058,7 @@ const Yo = /* @__PURE__ */ ee(null), Es = /* @__PURE__ */ Si("item", function(e,
|
|
|
8058
8058
|
selectionManager: s
|
|
8059
8059
|
}, l, a), { hoverProps: m, isHovered: f } = Dn({
|
|
8060
8060
|
isDisabled: p.isDisabled
|
|
8061
|
-
}), v =
|
|
8061
|
+
}), v = Ie({
|
|
8062
8062
|
...e,
|
|
8063
8063
|
id: void 0,
|
|
8064
8064
|
children: r.rendered,
|
|
@@ -8114,7 +8114,7 @@ const Yo = /* @__PURE__ */ ee(null), Es = /* @__PURE__ */ Si("item", function(e,
|
|
|
8114
8114
|
"aria-labelledby": r
|
|
8115
8115
|
}, n), l = Q(Yl);
|
|
8116
8116
|
!i["aria-label"] && !i["aria-labelledby"] && (e["aria-labelledby"] ? i["aria-labelledby"] = e["aria-labelledby"] : process.env.NODE_ENV !== "production" && console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));
|
|
8117
|
-
let a =
|
|
8117
|
+
let a = Ie({
|
|
8118
8118
|
defaultClassName: "react-aria-Dialog",
|
|
8119
8119
|
className: e.className,
|
|
8120
8120
|
style: e.style,
|
|
@@ -8195,7 +8195,7 @@ function tv({ props: t, selectRef: e, collection: n }) {
|
|
|
8195
8195
|
...eh(t),
|
|
8196
8196
|
label: h,
|
|
8197
8197
|
validationBehavior: l
|
|
8198
|
-
}, a, u), [$, E] = J(null), S =
|
|
8198
|
+
}, a, u), [$, E] = J(null), S = re(() => {
|
|
8199
8199
|
u.current && E(u.current.offsetWidth + "px");
|
|
8200
8200
|
}, [
|
|
8201
8201
|
u
|
|
@@ -8218,7 +8218,7 @@ function tv({ props: t, selectRef: e, collection: n }) {
|
|
|
8218
8218
|
t.isDisabled,
|
|
8219
8219
|
C.isInvalid,
|
|
8220
8220
|
t.isRequired
|
|
8221
|
-
]), k =
|
|
8221
|
+
]), k = Ie({
|
|
8222
8222
|
...t,
|
|
8223
8223
|
values: x,
|
|
8224
8224
|
defaultClassName: "react-aria-Select"
|
|
@@ -8350,7 +8350,7 @@ function iv({ props: t, tabsRef: e, collection: n }) {
|
|
|
8350
8350
|
r,
|
|
8351
8351
|
l,
|
|
8352
8352
|
a
|
|
8353
|
-
]), c =
|
|
8353
|
+
]), c = Ie({
|
|
8354
8354
|
...t,
|
|
8355
8355
|
defaultClassName: "react-aria-Tabs",
|
|
8356
8356
|
values: s
|
|
@@ -8389,7 +8389,7 @@ function lv({ props: t, forwardedRef: e }) {
|
|
|
8389
8389
|
...t,
|
|
8390
8390
|
orientation: i,
|
|
8391
8391
|
keyboardActivation: o
|
|
8392
|
-
}, n, l), s =
|
|
8392
|
+
}, n, l), s = Ie({
|
|
8393
8393
|
...t,
|
|
8394
8394
|
children: null,
|
|
8395
8395
|
defaultClassName: "react-aria-TabList",
|
|
@@ -8418,7 +8418,7 @@ const av = /* @__PURE__ */ Si("item", (t, e, n) => {
|
|
|
8418
8418
|
onHoverStart: t.onHoverStart,
|
|
8419
8419
|
onHoverEnd: t.onHoverEnd,
|
|
8420
8420
|
onHoverChange: t.onHoverChange
|
|
8421
|
-
}), m =
|
|
8421
|
+
}), m = Ie({
|
|
8422
8422
|
...t,
|
|
8423
8423
|
id: void 0,
|
|
8424
8424
|
children: n.rendered,
|
|
@@ -8444,7 +8444,7 @@ const av = /* @__PURE__ */ Si("item", (t, e, n) => {
|
|
|
8444
8444
|
}, m.children);
|
|
8445
8445
|
}), sv = /* @__PURE__ */ _l(function(e, n) {
|
|
8446
8446
|
const r = Q(Sn);
|
|
8447
|
-
let i = dt(n), { tabPanelProps: o } = vp(e, r, i), { focusProps: l, isFocused: a, isFocusVisible: s } = Tn(), c = r.selectedKey === e.id, u =
|
|
8447
|
+
let i = dt(n), { tabPanelProps: o } = vp(e, r, i), { focusProps: l, isFocused: a, isFocusVisible: s } = Tn(), c = r.selectedKey === e.id, u = Ie({
|
|
8448
8448
|
...e,
|
|
8449
8449
|
defaultClassName: "react-aria-TabPanel",
|
|
8450
8450
|
values: {
|
|
@@ -8600,7 +8600,7 @@ const av = /* @__PURE__ */ Si("item", (t, e, n) => {
|
|
|
8600
8600
|
/* @__PURE__ */ g.jsxs(
|
|
8601
8601
|
wp,
|
|
8602
8602
|
{
|
|
8603
|
-
className:
|
|
8603
|
+
className: _e("c__filter__button", {
|
|
8604
8604
|
"c__filter__button--active": !!n
|
|
8605
8605
|
}),
|
|
8606
8606
|
children: [
|
|
@@ -8613,7 +8613,7 @@ const av = /* @__PURE__ */ Si("item", (t, e, n) => {
|
|
|
8613
8613
|
"span",
|
|
8614
8614
|
{
|
|
8615
8615
|
"aria-hidden": "true",
|
|
8616
|
-
className:
|
|
8616
|
+
className: _e("material-icons c__filter__button__icon", {
|
|
8617
8617
|
opened: e == null ? void 0 : e.isOpen
|
|
8618
8618
|
}),
|
|
8619
8619
|
children: "keyboard_arrow_down"
|
|
@@ -8742,7 +8742,7 @@ const bv = {
|
|
|
8742
8742
|
),
|
|
8743
8743
|
/* @__PURE__ */ g.jsx(Cv, { variant: "small" })
|
|
8744
8744
|
] });
|
|
8745
|
-
var
|
|
8745
|
+
var Re = /* @__PURE__ */ ((t) => (t.X_SMALL = "xsmall", t.SMALL = "small", t.MEDIUM = "medium", t.LARGE = "large", t.X_LARGE = "xlarge", t))(Re || {}), Rr = /* @__PURE__ */ ((t) => (t.OUTLINED = "outlined", t.FILLED = "filled", t))(Rr || {});
|
|
8746
8746
|
const ri = ({
|
|
8747
8747
|
name: t,
|
|
8748
8748
|
size: e,
|
|
@@ -8751,7 +8751,7 @@ const ri = ({
|
|
|
8751
8751
|
type: i = Rr.FILLED,
|
|
8752
8752
|
...o
|
|
8753
8753
|
}) => {
|
|
8754
|
-
const l =
|
|
8754
|
+
const l = _e(
|
|
8755
8755
|
"",
|
|
8756
8756
|
{
|
|
8757
8757
|
[`icon--${e}`]: e !== void 0,
|
|
@@ -8765,17 +8765,17 @@ const ri = ({
|
|
|
8765
8765
|
};
|
|
8766
8766
|
return /* @__PURE__ */ g.jsx("span", { className: l, style: a, ...o, children: t });
|
|
8767
8767
|
}, wv = {
|
|
8768
|
-
[
|
|
8769
|
-
[
|
|
8770
|
-
[
|
|
8771
|
-
[
|
|
8772
|
-
[
|
|
8768
|
+
[Re.X_SMALL]: 11,
|
|
8769
|
+
[Re.SMALL]: 16,
|
|
8770
|
+
[Re.MEDIUM]: 24,
|
|
8771
|
+
[Re.LARGE]: 32,
|
|
8772
|
+
[Re.X_LARGE]: 40
|
|
8773
8773
|
}, Sv = {
|
|
8774
|
-
[
|
|
8775
|
-
[
|
|
8776
|
-
[
|
|
8777
|
-
[
|
|
8778
|
-
[
|
|
8774
|
+
[Re.X_SMALL]: 16,
|
|
8775
|
+
[Re.SMALL]: 24,
|
|
8776
|
+
[Re.MEDIUM]: 32,
|
|
8777
|
+
[Re.LARGE]: 40,
|
|
8778
|
+
[Re.X_LARGE]: 48
|
|
8779
8779
|
}, i8 = (t) => Sv[t] ?? 24, o8 = (t) => wv[t] ?? 24, Ev = ({ languages: t, onChange: e, size: n, color: r = "primary-text", fullWidth: i }) => {
|
|
8780
8780
|
var h;
|
|
8781
8781
|
const { isOpen: o, setIsOpen: l } = Ft(), a = () => {
|
|
@@ -8787,11 +8787,11 @@ const ri = ({
|
|
|
8787
8787
|
if (n)
|
|
8788
8788
|
switch (n) {
|
|
8789
8789
|
case "nano":
|
|
8790
|
-
return
|
|
8790
|
+
return Re.X_SMALL;
|
|
8791
8791
|
case "small":
|
|
8792
|
-
return
|
|
8792
|
+
return Re.SMALL;
|
|
8793
8793
|
case "medium":
|
|
8794
|
-
return
|
|
8794
|
+
return Re.MEDIUM;
|
|
8795
8795
|
}
|
|
8796
8796
|
}, [n]);
|
|
8797
8797
|
return X(() => {
|
|
@@ -9204,7 +9204,7 @@ const ri = ({
|
|
|
9204
9204
|
return n ? /* @__PURE__ */ g.jsx("div", { className: "c__left-panel", children: t }) : /* @__PURE__ */ g.jsx(
|
|
9205
9205
|
"div",
|
|
9206
9206
|
{
|
|
9207
|
-
className:
|
|
9207
|
+
className: _e("c__left-panel__mobile", {
|
|
9208
9208
|
open: e
|
|
9209
9209
|
}),
|
|
9210
9210
|
children: t
|
|
@@ -9214,20 +9214,20 @@ const ri = ({
|
|
|
9214
9214
|
createElement: xn,
|
|
9215
9215
|
createContext: Pv,
|
|
9216
9216
|
forwardRef: Md,
|
|
9217
|
-
useCallback:
|
|
9217
|
+
useCallback: ke,
|
|
9218
9218
|
useContext: Ad,
|
|
9219
9219
|
useEffect: kt,
|
|
9220
9220
|
useImperativeHandle: Fd,
|
|
9221
9221
|
useLayoutEffect: Dv,
|
|
9222
9222
|
useMemo: Tv,
|
|
9223
|
-
useRef:
|
|
9223
|
+
useRef: Le,
|
|
9224
9224
|
useState: yn
|
|
9225
9225
|
} = P, Ps = P[`useId${Math.random()}`.slice(0, 5)], _v = Dv, Pi = Pv(null);
|
|
9226
9226
|
Pi.displayName = "PanelGroupContext";
|
|
9227
9227
|
const Nt = _v, Iv = typeof Ps == "function" ? Ps : () => null;
|
|
9228
9228
|
let Ov = 0;
|
|
9229
9229
|
function Xl(t = null) {
|
|
9230
|
-
const e = Iv(), n =
|
|
9230
|
+
const e = Iv(), n = Le(t || e || null);
|
|
9231
9231
|
return n.current === null && (n.current = "" + Ov++), t ?? n.current;
|
|
9232
9232
|
}
|
|
9233
9233
|
function Kd({
|
|
@@ -9262,7 +9262,7 @@ function Kd({
|
|
|
9262
9262
|
registerPanel: k,
|
|
9263
9263
|
resizePanel: F,
|
|
9264
9264
|
unregisterPanel: V
|
|
9265
|
-
} = v, w = Xl(l), L =
|
|
9265
|
+
} = v, w = Xl(l), L = Le({
|
|
9266
9266
|
callbacks: {
|
|
9267
9267
|
onCollapse: c,
|
|
9268
9268
|
onExpand: u,
|
|
@@ -9279,7 +9279,7 @@ function Kd({
|
|
|
9279
9279
|
idIsFromProps: l !== void 0,
|
|
9280
9280
|
order: h
|
|
9281
9281
|
});
|
|
9282
|
-
|
|
9282
|
+
Le({
|
|
9283
9283
|
didLogMissingDefaultSizeWarning: !1
|
|
9284
9284
|
}), Nt(() => {
|
|
9285
9285
|
const {
|
|
@@ -9613,7 +9613,7 @@ function oi(t, e) {
|
|
|
9613
9613
|
}
|
|
9614
9614
|
function Vv() {
|
|
9615
9615
|
const [t, e] = yn(0);
|
|
9616
|
-
return
|
|
9616
|
+
return ke(() => e((n) => n + 1), []);
|
|
9617
9617
|
}
|
|
9618
9618
|
function oe(t, e) {
|
|
9619
9619
|
if (!t)
|
|
@@ -9829,7 +9829,7 @@ function Wv({
|
|
|
9829
9829
|
panelGroupElement: o,
|
|
9830
9830
|
setLayout: l
|
|
9831
9831
|
}) {
|
|
9832
|
-
|
|
9832
|
+
Le({
|
|
9833
9833
|
didWarnAboutMissingResizeHandle: !1
|
|
9834
9834
|
}), Nt(() => {
|
|
9835
9835
|
if (!o)
|
|
@@ -10172,7 +10172,7 @@ function t2({
|
|
|
10172
10172
|
tagName: u = "div",
|
|
10173
10173
|
...d
|
|
10174
10174
|
}) {
|
|
10175
|
-
const h = Xl(o), p =
|
|
10175
|
+
const h = Xl(o), p = Le(null), [m, f] = yn(null), [v, y] = yn([]), b = Vv(), C = Le({}), $ = Le(/* @__PURE__ */ new Map()), E = Le(0), S = Le({
|
|
10176
10176
|
autoSaveId: t,
|
|
10177
10177
|
direction: r,
|
|
10178
10178
|
dragState: m,
|
|
@@ -10180,12 +10180,12 @@ function t2({
|
|
|
10180
10180
|
keyboardResizeBy: a,
|
|
10181
10181
|
onLayout: l,
|
|
10182
10182
|
storage: s
|
|
10183
|
-
}), x =
|
|
10183
|
+
}), x = Le({
|
|
10184
10184
|
layout: v,
|
|
10185
10185
|
panelDataArray: [],
|
|
10186
10186
|
panelDataArrayChanged: !1
|
|
10187
10187
|
});
|
|
10188
|
-
|
|
10188
|
+
Le({
|
|
10189
10189
|
didLogIdAndOrderWarning: !1,
|
|
10190
10190
|
didLogPanelConstraintsWarning: !1,
|
|
10191
10191
|
prevPanelIds: []
|
|
@@ -10233,7 +10233,7 @@ function t2({
|
|
|
10233
10233
|
}
|
|
10234
10234
|
}, [t, v, s]), kt(() => {
|
|
10235
10235
|
});
|
|
10236
|
-
const k =
|
|
10236
|
+
const k = ke((I) => {
|
|
10237
10237
|
const {
|
|
10238
10238
|
onLayout: H
|
|
10239
10239
|
} = S.current, {
|
|
@@ -10259,7 +10259,7 @@ function t2({
|
|
|
10259
10259
|
Cr(K, se) || (y(se), x.current.layout = se, H && H(se), Xt(j, se, C.current));
|
|
10260
10260
|
}
|
|
10261
10261
|
}
|
|
10262
|
-
}, []), F =
|
|
10262
|
+
}, []), F = ke((I, H) => {
|
|
10263
10263
|
const {
|
|
10264
10264
|
onLayout: K
|
|
10265
10265
|
} = S.current, {
|
|
@@ -10274,7 +10274,7 @@ function t2({
|
|
|
10274
10274
|
pivotIndices: Y
|
|
10275
10275
|
} = Pt(z, I, j), se = H ?? ve;
|
|
10276
10276
|
if (at(ie, te)) {
|
|
10277
|
-
const ge = $.current.get(I.id), ae = ge != null && ge >= se ? ge : se, _n = cn(z, I) === z.length - 1 ? ie - ae : ae - ie,
|
|
10277
|
+
const ge = $.current.get(I.id), ae = ge != null && ge >= se ? ge : se, _n = cn(z, I) === z.length - 1 ? ie - ae : ae - ie, Oe = zn({
|
|
10278
10278
|
delta: _n,
|
|
10279
10279
|
initialLayout: j,
|
|
10280
10280
|
panelConstraints: Z,
|
|
@@ -10282,10 +10282,10 @@ function t2({
|
|
|
10282
10282
|
prevLayout: j,
|
|
10283
10283
|
trigger: "imperative-api"
|
|
10284
10284
|
});
|
|
10285
|
-
Cr(j,
|
|
10285
|
+
Cr(j, Oe) || (y(Oe), x.current.layout = Oe, K && K(Oe), Xt(z, Oe, C.current));
|
|
10286
10286
|
}
|
|
10287
10287
|
}
|
|
10288
|
-
}, []), V =
|
|
10288
|
+
}, []), V = ke((I) => {
|
|
10289
10289
|
const {
|
|
10290
10290
|
layout: H,
|
|
10291
10291
|
panelDataArray: K
|
|
@@ -10293,7 +10293,7 @@ function t2({
|
|
|
10293
10293
|
panelSize: j
|
|
10294
10294
|
} = Pt(K, I, H);
|
|
10295
10295
|
return oe(j != null, `Panel size not found for panel "${I.id}"`), j;
|
|
10296
|
-
}, []), w =
|
|
10296
|
+
}, []), w = ke((I, H) => {
|
|
10297
10297
|
const {
|
|
10298
10298
|
panelDataArray: K
|
|
10299
10299
|
} = x.current, j = cn(K, I);
|
|
@@ -10304,7 +10304,7 @@ function t2({
|
|
|
10304
10304
|
panelData: K,
|
|
10305
10305
|
panelIndex: j
|
|
10306
10306
|
});
|
|
10307
|
-
}, [m, v]), L =
|
|
10307
|
+
}, [m, v]), L = ke((I) => {
|
|
10308
10308
|
const {
|
|
10309
10309
|
layout: H,
|
|
10310
10310
|
panelDataArray: K
|
|
@@ -10314,7 +10314,7 @@ function t2({
|
|
|
10314
10314
|
panelSize: Z
|
|
10315
10315
|
} = Pt(K, I, H);
|
|
10316
10316
|
return oe(Z != null, `Panel size not found for panel "${I.id}"`), z === !0 && at(Z, j);
|
|
10317
|
-
}, []), B =
|
|
10317
|
+
}, []), B = ke((I) => {
|
|
10318
10318
|
const {
|
|
10319
10319
|
layout: H,
|
|
10320
10320
|
panelDataArray: K
|
|
@@ -10324,7 +10324,7 @@ function t2({
|
|
|
10324
10324
|
panelSize: Z
|
|
10325
10325
|
} = Pt(K, I, H);
|
|
10326
10326
|
return oe(Z != null, `Panel size not found for panel "${I.id}"`), !z || Kt(Z, j) > 0;
|
|
10327
|
-
}, []), A =
|
|
10327
|
+
}, []), A = ke((I) => {
|
|
10328
10328
|
const {
|
|
10329
10329
|
panelDataArray: H
|
|
10330
10330
|
} = x.current;
|
|
@@ -10364,7 +10364,7 @@ function t2({
|
|
|
10364
10364
|
I.layout = [];
|
|
10365
10365
|
};
|
|
10366
10366
|
}, []);
|
|
10367
|
-
const W =
|
|
10367
|
+
const W = ke((I) => {
|
|
10368
10368
|
let H = !1;
|
|
10369
10369
|
const K = p.current;
|
|
10370
10370
|
return K && window.getComputedStyle(K, null).getPropertyValue("direction") === "rtl" && (H = !0), function(z) {
|
|
@@ -10384,20 +10384,20 @@ function t2({
|
|
|
10384
10384
|
} = x.current, {
|
|
10385
10385
|
initialLayout: ht
|
|
10386
10386
|
} = ie ?? {}, _n = qd(ve, I, Z);
|
|
10387
|
-
let
|
|
10387
|
+
let Oe = Gv(z, I, te, ie, Y, Z);
|
|
10388
10388
|
const ma = te === "horizontal";
|
|
10389
|
-
ma && H && (
|
|
10389
|
+
ma && H && (Oe = -Oe);
|
|
10390
10390
|
const Af = ae.map((Ff) => Ff.constraints), In = zn({
|
|
10391
|
-
delta:
|
|
10391
|
+
delta: Oe,
|
|
10392
10392
|
initialLayout: ht ?? ge,
|
|
10393
10393
|
panelConstraints: Af,
|
|
10394
10394
|
pivotIndices: _n,
|
|
10395
10395
|
prevLayout: ge,
|
|
10396
10396
|
trigger: jd(z) ? "keyboard" : "mouse-or-touch"
|
|
10397
10397
|
}), ya = !Cr(ge, In);
|
|
10398
|
-
(Hd(z) || Vd(z)) && E.current !=
|
|
10398
|
+
(Hd(z) || Vd(z)) && E.current != Oe && (E.current = Oe, !ya && Oe !== 0 ? ma ? to(I, Oe < 0 ? Bd : Ud) : to(I, Oe < 0 ? Wd : Zd) : to(I, 0)), ya && (y(In), x.current.layout = In, se && se(In), Xt(ae, In, C.current));
|
|
10399
10399
|
};
|
|
10400
|
-
}, []), D =
|
|
10400
|
+
}, []), D = ke((I, H) => {
|
|
10401
10401
|
const {
|
|
10402
10402
|
onLayout: K
|
|
10403
10403
|
} = S.current, {
|
|
@@ -10417,7 +10417,7 @@ function t2({
|
|
|
10417
10417
|
trigger: "imperative-api"
|
|
10418
10418
|
});
|
|
10419
10419
|
Cr(j, se) || (y(se), x.current.layout = se, K && K(se), Xt(z, se, C.current));
|
|
10420
|
-
}, []), N =
|
|
10420
|
+
}, []), N = ke((I, H) => {
|
|
10421
10421
|
const {
|
|
10422
10422
|
layout: K,
|
|
10423
10423
|
panelDataArray: j
|
|
@@ -10433,7 +10433,7 @@ function t2({
|
|
|
10433
10433
|
panelSize: se
|
|
10434
10434
|
} = Pt(j, I, K);
|
|
10435
10435
|
se != null && (Z && ie && at(se, z) ? at(z, te) || D(I, te) : se < Y ? D(I, Y) : se > ve && D(I, ve));
|
|
10436
|
-
}, [D]), O =
|
|
10436
|
+
}, [D]), O = ke((I, H) => {
|
|
10437
10437
|
const {
|
|
10438
10438
|
direction: K
|
|
10439
10439
|
} = S.current, {
|
|
@@ -10450,9 +10450,9 @@ function t2({
|
|
|
10450
10450
|
initialCursorPosition: Z,
|
|
10451
10451
|
initialLayout: j
|
|
10452
10452
|
});
|
|
10453
|
-
}, []), q =
|
|
10453
|
+
}, []), q = ke(() => {
|
|
10454
10454
|
f(null);
|
|
10455
|
-
}, []), _ =
|
|
10455
|
+
}, []), _ = ke((I) => {
|
|
10456
10456
|
const {
|
|
10457
10457
|
panelDataArray: H
|
|
10458
10458
|
} = x.current, K = cn(H, I);
|
|
@@ -10573,7 +10573,7 @@ function r2({
|
|
|
10573
10573
|
...d
|
|
10574
10574
|
}) {
|
|
10575
10575
|
var h, p;
|
|
10576
|
-
const m =
|
|
10576
|
+
const m = Le(null), f = Le({
|
|
10577
10577
|
onDragging: l
|
|
10578
10578
|
});
|
|
10579
10579
|
kt(() => {
|
|
@@ -10589,7 +10589,7 @@ function r2({
|
|
|
10589
10589
|
startDragging: $,
|
|
10590
10590
|
stopDragging: E,
|
|
10591
10591
|
panelGroupElement: S
|
|
10592
|
-
} = v, x = Xl(i), [k, F] = yn("inactive"), [V, w] = yn(!1), [L, B] = yn(null), A =
|
|
10592
|
+
} = v, x = Xl(i), [k, F] = yn("inactive"), [V, w] = yn(!1), [L, B] = yn(null), A = Le({
|
|
10593
10593
|
state: k
|
|
10594
10594
|
});
|
|
10595
10595
|
Nt(() => {
|
|
@@ -10682,7 +10682,7 @@ const ng = ({
|
|
|
10682
10682
|
isOpen: e
|
|
10683
10683
|
}) => {
|
|
10684
10684
|
const { isDesktop: n } = cr();
|
|
10685
|
-
return n ? /* @__PURE__ */ g.jsx("div", { className:
|
|
10685
|
+
return n ? /* @__PURE__ */ g.jsx("div", { className: _e("c__right-panel", { open: e }), children: t }) : /* @__PURE__ */ g.jsx("div", { className: _e("c__right-panel__mobile", { open: e }), children: t });
|
|
10686
10686
|
}, rg = (t, e, n) => {
|
|
10687
10687
|
const [r, i] = R.useState(
|
|
10688
10688
|
typeof e > "u" ? t : e
|
|
@@ -10786,7 +10786,7 @@ const ng = ({
|
|
|
10786
10786
|
text: e,
|
|
10787
10787
|
labelSide: n = "right",
|
|
10788
10788
|
children: r
|
|
10789
|
-
}) => /* @__PURE__ */ g.jsxs("div", { className:
|
|
10789
|
+
}) => /* @__PURE__ */ g.jsxs("div", { className: _e("c__with-label", { [n]: !0 }), children: [
|
|
10790
10790
|
/* @__PURE__ */ g.jsx(ig, { children: t, text: e }),
|
|
10791
10791
|
r
|
|
10792
10792
|
] });
|
|
@@ -12397,7 +12397,7 @@ const j2 = ({ withPadding: t = !0, direction: e, width: n = "thin", size: r }) =
|
|
|
12397
12397
|
"div",
|
|
12398
12398
|
{
|
|
12399
12399
|
style: { "--size": r },
|
|
12400
|
-
className:
|
|
12400
|
+
className: _e(
|
|
12401
12401
|
"c__separator",
|
|
12402
12402
|
`c__separator--${e}`,
|
|
12403
12403
|
`c__separator--${n}`,
|
|
@@ -12526,7 +12526,7 @@ const j2 = ({ withPadding: t = !0, direction: e, width: n = "thin", size: r }) =
|
|
|
12526
12526
|
r && n && /* @__PURE__ */ g.jsx(
|
|
12527
12527
|
"div",
|
|
12528
12528
|
{
|
|
12529
|
-
className:
|
|
12529
|
+
className: _e("c__quick-search-item-template__right", {
|
|
12530
12530
|
"always-show-right": t,
|
|
12531
12531
|
"show-right-on-focus": !t
|
|
12532
12532
|
}),
|
|
@@ -12541,7 +12541,7 @@ const j2 = ({ withPadding: t = !0, direction: e, width: n = "thin", size: r }) =
|
|
|
12541
12541
|
}) => t.length === 0 ? null : /* @__PURE__ */ g.jsx(
|
|
12542
12542
|
"div",
|
|
12543
12543
|
{
|
|
12544
|
-
className:
|
|
12544
|
+
className: _e("c__tabs", {
|
|
12545
12545
|
"c__tabs__full-width": n
|
|
12546
12546
|
}),
|
|
12547
12547
|
children: /* @__PURE__ */ g.jsxs(rv, { defaultSelectedKey: e, children: [
|
|
@@ -13529,7 +13529,7 @@ var af = ee({
|
|
|
13529
13529
|
(function(t) {
|
|
13530
13530
|
t.SOURCE = "SOURCE", t.TARGET = "TARGET";
|
|
13531
13531
|
})(Ve || (Ve = {}));
|
|
13532
|
-
function
|
|
13532
|
+
function ne(t, e) {
|
|
13533
13533
|
for (var n = arguments.length, r = new Array(n > 2 ? n - 2 : 0), i = 2; i < n; i++)
|
|
13534
13534
|
r[i - 2] = arguments[i];
|
|
13535
13535
|
if (process.env.NODE_ENV !== "production" && e === void 0)
|
|
@@ -13637,15 +13637,15 @@ function f3(t) {
|
|
|
13637
13637
|
};
|
|
13638
13638
|
}
|
|
13639
13639
|
function h3(t, e, n) {
|
|
13640
|
-
|
|
13641
|
-
|
|
13640
|
+
ne(!e.isDragging(), "Cannot call beginDrag while dragging."), t.forEach(function(r) {
|
|
13641
|
+
ne(n.getSource(r), "Expected sourceIds to be registered.");
|
|
13642
13642
|
});
|
|
13643
13643
|
}
|
|
13644
13644
|
function p3(t) {
|
|
13645
|
-
|
|
13645
|
+
ne(typeof t == "function", "When clientOffset is provided, getSourceClientOffset must be a function.");
|
|
13646
13646
|
}
|
|
13647
13647
|
function v3(t) {
|
|
13648
|
-
|
|
13648
|
+
ne(sf(t), "Item must be an object.");
|
|
13649
13649
|
}
|
|
13650
13650
|
function g3(t, e) {
|
|
13651
13651
|
for (var n = null, r = t.length - 1; r >= 0; r--)
|
|
@@ -13686,15 +13686,15 @@ function y3(t) {
|
|
|
13686
13686
|
};
|
|
13687
13687
|
}
|
|
13688
13688
|
function b3(t) {
|
|
13689
|
-
|
|
13689
|
+
ne(Array.isArray(t), "Expected targetIds to be an array.");
|
|
13690
13690
|
}
|
|
13691
13691
|
function C3(t, e, n) {
|
|
13692
|
-
|
|
13692
|
+
ne(e.isDragging(), "Cannot call hover while not dragging."), ne(!e.didDrop(), "Cannot call hover after drop.");
|
|
13693
13693
|
for (var r = 0; r < t.length; r++) {
|
|
13694
13694
|
var i = t[r];
|
|
13695
|
-
|
|
13695
|
+
ne(t.lastIndexOf(i) === r, "Expected targetIds to be unique in the passed array.");
|
|
13696
13696
|
var o = n.getTarget(i);
|
|
13697
|
-
|
|
13697
|
+
ne(o, "Expected targetIds to be registered.");
|
|
13698
13698
|
}
|
|
13699
13699
|
}
|
|
13700
13700
|
function w3(t, e, n) {
|
|
@@ -13750,14 +13750,14 @@ function x3(t) {
|
|
|
13750
13750
|
};
|
|
13751
13751
|
}
|
|
13752
13752
|
function $3(t) {
|
|
13753
|
-
|
|
13753
|
+
ne(t.isDragging(), "Cannot call drop while not dragging."), ne(!t.didDrop(), "Cannot call drop twice during one drag operation.");
|
|
13754
13754
|
}
|
|
13755
13755
|
function P3(t, e, n, r) {
|
|
13756
13756
|
var i = n.getTarget(t), o = i ? i.drop(r, t) : void 0;
|
|
13757
13757
|
return D3(o), typeof o > "u" && (o = e === 0 ? {} : r.getDropResult()), o;
|
|
13758
13758
|
}
|
|
13759
13759
|
function D3(t) {
|
|
13760
|
-
|
|
13760
|
+
ne(typeof t > "u" || sf(t), "Drop result must either be an object or undefined.");
|
|
13761
13761
|
}
|
|
13762
13762
|
function T3(t) {
|
|
13763
13763
|
var e = t.getTargetIds().filter(t.canDropOnTarget, t);
|
|
@@ -13778,7 +13778,7 @@ function _3(t) {
|
|
|
13778
13778
|
};
|
|
13779
13779
|
}
|
|
13780
13780
|
function I3(t) {
|
|
13781
|
-
|
|
13781
|
+
ne(t.isDragging(), "Cannot call endDrag while not dragging.");
|
|
13782
13782
|
}
|
|
13783
13783
|
function O3(t) {
|
|
13784
13784
|
return {
|
|
@@ -14323,7 +14323,7 @@ var d7 = /* @__PURE__ */ function() {
|
|
|
14323
14323
|
var r = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
14324
14324
|
handlerIds: void 0
|
|
14325
14325
|
}, o = i.handlerIds;
|
|
14326
|
-
|
|
14326
|
+
ne(typeof n == "function", "listener must be a function."), ne(typeof o > "u" || Array.isArray(o), "handlerIds, when specified, must be an array of strings.");
|
|
14327
14327
|
var l = this.store.getState().stateId, a = function() {
|
|
14328
14328
|
var c = r.store.getState(), u = c.stateId;
|
|
14329
14329
|
try {
|
|
@@ -14339,7 +14339,7 @@ var d7 = /* @__PURE__ */ function() {
|
|
|
14339
14339
|
key: "subscribeToOffsetChange",
|
|
14340
14340
|
value: function(n) {
|
|
14341
14341
|
var r = this;
|
|
14342
|
-
|
|
14342
|
+
ne(typeof n == "function", "listener must be a function.");
|
|
14343
14343
|
var i = this.store.getState().dragOffset, o = function() {
|
|
14344
14344
|
var a = r.store.getState().dragOffset;
|
|
14345
14345
|
a !== i && (i = a, n());
|
|
@@ -14352,7 +14352,7 @@ var d7 = /* @__PURE__ */ function() {
|
|
|
14352
14352
|
if (!n)
|
|
14353
14353
|
return !1;
|
|
14354
14354
|
var r = this.registry.getSource(n);
|
|
14355
|
-
return
|
|
14355
|
+
return ne(r, "Expected to find a valid source. sourceId=".concat(n)), this.isDragging() ? !1 : r.canDrag(this, n);
|
|
14356
14356
|
}
|
|
14357
14357
|
}, {
|
|
14358
14358
|
key: "canDropOnTarget",
|
|
@@ -14360,7 +14360,7 @@ var d7 = /* @__PURE__ */ function() {
|
|
|
14360
14360
|
if (!n)
|
|
14361
14361
|
return !1;
|
|
14362
14362
|
var r = this.registry.getTarget(n);
|
|
14363
|
-
if (
|
|
14363
|
+
if (ne(r, "Expected to find a valid target. targetId=".concat(n)), !this.isDragging() || this.didDrop())
|
|
14364
14364
|
return !1;
|
|
14365
14365
|
var i = this.registry.getTargetType(n), o = this.getItemType();
|
|
14366
14366
|
return ll(i, o) && r.canDrop(this, n);
|
|
@@ -14376,7 +14376,7 @@ var d7 = /* @__PURE__ */ function() {
|
|
|
14376
14376
|
if (!n)
|
|
14377
14377
|
return !1;
|
|
14378
14378
|
var r = this.registry.getSource(n, !0);
|
|
14379
|
-
if (
|
|
14379
|
+
if (ne(r, "Expected to find a valid source. sourceId=".concat(n)), !this.isDragging() || !this.isSourcePublic())
|
|
14380
14380
|
return !1;
|
|
14381
14381
|
var i = this.registry.getSourceType(n), o = this.getItemType();
|
|
14382
14382
|
return i !== o ? !1 : r.isDragging(this, n);
|
|
@@ -14475,10 +14475,10 @@ function Vr(t) {
|
|
|
14475
14475
|
}, Vr(t);
|
|
14476
14476
|
}
|
|
14477
14477
|
function p7(t) {
|
|
14478
|
-
|
|
14478
|
+
ne(typeof t.canDrag == "function", "Expected canDrag to be a function."), ne(typeof t.beginDrag == "function", "Expected beginDrag to be a function."), ne(typeof t.endDrag == "function", "Expected endDrag to be a function.");
|
|
14479
14479
|
}
|
|
14480
14480
|
function v7(t) {
|
|
14481
|
-
|
|
14481
|
+
ne(typeof t.canDrop == "function", "Expected canDrop to be a function."), ne(typeof t.hover == "function", "Expected hover to be a function."), ne(typeof t.drop == "function", "Expected beginDrag to be a function.");
|
|
14482
14482
|
}
|
|
14483
14483
|
function al(t, e) {
|
|
14484
14484
|
if (e && Array.isArray(t)) {
|
|
@@ -14487,7 +14487,7 @@ function al(t, e) {
|
|
|
14487
14487
|
});
|
|
14488
14488
|
return;
|
|
14489
14489
|
}
|
|
14490
|
-
|
|
14490
|
+
ne(typeof t == "string" || Vr(t) === "symbol", e ? "Type can only be a string, a symbol, or an array of either." : "Type can only be a string or a symbol.");
|
|
14491
14491
|
}
|
|
14492
14492
|
const bc = typeof global < "u" ? global : self, df = bc.MutationObserver || bc.WebKitMutationObserver;
|
|
14493
14493
|
function ff(t) {
|
|
@@ -14688,7 +14688,7 @@ function wc(t) {
|
|
|
14688
14688
|
case "T":
|
|
14689
14689
|
return Ve.TARGET;
|
|
14690
14690
|
default:
|
|
14691
|
-
|
|
14691
|
+
ne(!1, "Cannot parse handler ID: ".concat(t));
|
|
14692
14692
|
}
|
|
14693
14693
|
}
|
|
14694
14694
|
function Sc(t, e) {
|
|
@@ -14728,24 +14728,24 @@ var k7 = /* @__PURE__ */ function() {
|
|
|
14728
14728
|
key: "getSource",
|
|
14729
14729
|
value: function(n) {
|
|
14730
14730
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
14731
|
-
|
|
14731
|
+
ne(this.isSourceId(n), "Expected a valid source ID.");
|
|
14732
14732
|
var i = r && n === this.pinnedSourceId, o = i ? this.pinnedSource : this.dragSources.get(n);
|
|
14733
14733
|
return o;
|
|
14734
14734
|
}
|
|
14735
14735
|
}, {
|
|
14736
14736
|
key: "getTarget",
|
|
14737
14737
|
value: function(n) {
|
|
14738
|
-
return
|
|
14738
|
+
return ne(this.isTargetId(n), "Expected a valid target ID."), this.dropTargets.get(n);
|
|
14739
14739
|
}
|
|
14740
14740
|
}, {
|
|
14741
14741
|
key: "getSourceType",
|
|
14742
14742
|
value: function(n) {
|
|
14743
|
-
return
|
|
14743
|
+
return ne(this.isSourceId(n), "Expected a valid source ID."), this.types.get(n);
|
|
14744
14744
|
}
|
|
14745
14745
|
}, {
|
|
14746
14746
|
key: "getTargetType",
|
|
14747
14747
|
value: function(n) {
|
|
14748
|
-
return
|
|
14748
|
+
return ne(this.isTargetId(n), "Expected a valid target ID."), this.types.get(n);
|
|
14749
14749
|
}
|
|
14750
14750
|
}, {
|
|
14751
14751
|
key: "isSourceId",
|
|
@@ -14763,25 +14763,25 @@ var k7 = /* @__PURE__ */ function() {
|
|
|
14763
14763
|
key: "removeSource",
|
|
14764
14764
|
value: function(n) {
|
|
14765
14765
|
var r = this;
|
|
14766
|
-
|
|
14766
|
+
ne(this.getSource(n), "Expected an existing source."), this.store.dispatch(G3(n)), S7(function() {
|
|
14767
14767
|
r.dragSources.delete(n), r.types.delete(n);
|
|
14768
14768
|
});
|
|
14769
14769
|
}
|
|
14770
14770
|
}, {
|
|
14771
14771
|
key: "removeTarget",
|
|
14772
14772
|
value: function(n) {
|
|
14773
|
-
|
|
14773
|
+
ne(this.getTarget(n), "Expected an existing target."), this.store.dispatch(q3(n)), this.dropTargets.delete(n), this.types.delete(n);
|
|
14774
14774
|
}
|
|
14775
14775
|
}, {
|
|
14776
14776
|
key: "pinSource",
|
|
14777
14777
|
value: function(n) {
|
|
14778
14778
|
var r = this.getSource(n);
|
|
14779
|
-
|
|
14779
|
+
ne(r, "Expected an existing source."), this.pinnedSourceId = n, this.pinnedSource = r;
|
|
14780
14780
|
}
|
|
14781
14781
|
}, {
|
|
14782
14782
|
key: "unpinSource",
|
|
14783
14783
|
value: function() {
|
|
14784
|
-
|
|
14784
|
+
ne(this.pinnedSource, "No source is pinned at the time."), this.pinnedSourceId = null, this.pinnedSource = null;
|
|
14785
14785
|
}
|
|
14786
14786
|
}, {
|
|
14787
14787
|
key: "addHandler",
|
|
@@ -14930,7 +14930,7 @@ var mo = !1, yo = !1, q7 = /* @__PURE__ */ function() {
|
|
|
14930
14930
|
}, {
|
|
14931
14931
|
key: "canDrag",
|
|
14932
14932
|
value: function() {
|
|
14933
|
-
|
|
14933
|
+
ne(!mo, "You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
|
|
14934
14934
|
try {
|
|
14935
14935
|
return mo = !0, this.internalMonitor.canDragSource(this.sourceId);
|
|
14936
14936
|
} finally {
|
|
@@ -14942,7 +14942,7 @@ var mo = !1, yo = !1, q7 = /* @__PURE__ */ function() {
|
|
|
14942
14942
|
value: function() {
|
|
14943
14943
|
if (!this.sourceId)
|
|
14944
14944
|
return !1;
|
|
14945
|
-
|
|
14945
|
+
ne(!yo, "You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
|
|
14946
14946
|
try {
|
|
14947
14947
|
return yo = !0, this.internalMonitor.isDraggingSource(this.sourceId);
|
|
14948
14948
|
} finally {
|
|
@@ -15081,7 +15081,7 @@ var bo = !1, Q7 = /* @__PURE__ */ function() {
|
|
|
15081
15081
|
value: function() {
|
|
15082
15082
|
if (!this.targetId)
|
|
15083
15083
|
return !1;
|
|
15084
|
-
|
|
15084
|
+
ne(!bo, "You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");
|
|
15085
15085
|
try {
|
|
15086
15086
|
return bo = !0, this.internalMonitor.canDropOnTarget(this.targetId);
|
|
15087
15087
|
} finally {
|
|
@@ -15180,7 +15180,7 @@ function Dc(t, e) {
|
|
|
15180
15180
|
}
|
|
15181
15181
|
function nm(t, e) {
|
|
15182
15182
|
var n = t.ref;
|
|
15183
|
-
return
|
|
15183
|
+
return ne(typeof n != "string", "Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"), n ? Io(t, {
|
|
15184
15184
|
ref: function(i) {
|
|
15185
15185
|
Dc(n, i), Dc(e, i);
|
|
15186
15186
|
}
|
|
@@ -15529,12 +15529,12 @@ function mm(t, e, n) {
|
|
|
15529
15529
|
}
|
|
15530
15530
|
function Gt() {
|
|
15531
15531
|
var t = Q(af), e = t.dragDropManager;
|
|
15532
|
-
return
|
|
15532
|
+
return ne(e != null, "Expected drag drop context"), e;
|
|
15533
15533
|
}
|
|
15534
15534
|
function ym(t) {
|
|
15535
15535
|
return G(function() {
|
|
15536
15536
|
var e = t.type;
|
|
15537
|
-
return
|
|
15537
|
+
return ne(e != null, "spec.type must be defined"), e;
|
|
15538
15538
|
}, [t]);
|
|
15539
15539
|
}
|
|
15540
15540
|
function bm(t, e) {
|
|
@@ -15718,7 +15718,7 @@ function Km(t) {
|
|
|
15718
15718
|
function mf(t, e, n) {
|
|
15719
15719
|
var r = J(function() {
|
|
15720
15720
|
return e(t);
|
|
15721
|
-
}), i = Rm(r, 2), o = i[0], l = i[1], a =
|
|
15721
|
+
}), i = Rm(r, 2), o = i[0], l = i[1], a = re(function() {
|
|
15722
15722
|
var s = e(t);
|
|
15723
15723
|
Lm(o, s) || (l(s), n && n());
|
|
15724
15724
|
}, [o, t, n]);
|
|
@@ -15796,14 +15796,14 @@ function Zm(t) {
|
|
|
15796
15796
|
}
|
|
15797
15797
|
function Gm(t, e) {
|
|
15798
15798
|
var n = gf(t, e);
|
|
15799
|
-
|
|
15799
|
+
ne(!n.begin, "useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");
|
|
15800
15800
|
var r = Im(), i = Om(n.options, n.previewOptions);
|
|
15801
15801
|
return xm(n, r, i), [yf(n.collect, r, i), Wm(i), Zm(i)];
|
|
15802
15802
|
}
|
|
15803
15803
|
function qm(t) {
|
|
15804
15804
|
var e = t.accept;
|
|
15805
15805
|
return G(function() {
|
|
15806
|
-
return
|
|
15806
|
+
return ne(t.accept != null, "accept must be defined"), Array.isArray(e) ? e : [e];
|
|
15807
15807
|
}, [e]);
|
|
15808
15808
|
}
|
|
15809
15809
|
function Ym(t, e) {
|
|
@@ -16837,7 +16837,7 @@ function Yy(t) {
|
|
|
16837
16837
|
}
|
|
16838
16838
|
const Xy = R.memo(function({ index: e, style: n }) {
|
|
16839
16839
|
U2(), m9();
|
|
16840
|
-
const r = Fe(), i = Yy(e), o = U(null), l = Uy(i), a = qy(o, i), s =
|
|
16840
|
+
const r = Fe(), i = Yy(e), o = U(null), l = Uy(i), a = qy(o, i), s = re((f) => {
|
|
16841
16841
|
o.current = f, a(f);
|
|
16842
16842
|
}, [a]), c = r.indent * i.level, u = G(() => ({ paddingLeft: c }), [c]), d = G(() => {
|
|
16843
16843
|
var f, v;
|
|
@@ -17918,7 +17918,7 @@ function xb(t, e) {
|
|
|
17918
17918
|
X(function() {
|
|
17919
17919
|
o();
|
|
17920
17920
|
});
|
|
17921
|
-
var o =
|
|
17921
|
+
var o = re(function() {
|
|
17922
17922
|
var l = i.current, a = r.current, s = l || (a ? a instanceof Element ? a : a.current : null);
|
|
17923
17923
|
n.current && n.current.element === s && n.current.subscriber === t || (n.current && n.current.cleanup && n.current.cleanup(), n.current = {
|
|
17924
17924
|
element: s,
|
|
@@ -17932,7 +17932,7 @@ function xb(t, e) {
|
|
|
17932
17932
|
return function() {
|
|
17933
17933
|
n.current && n.current.cleanup && (n.current.cleanup(), n.current = null);
|
|
17934
17934
|
};
|
|
17935
|
-
}, []),
|
|
17935
|
+
}, []), re(function(l) {
|
|
17936
17936
|
i.current = l, o();
|
|
17937
17937
|
}, [o]);
|
|
17938
17938
|
}
|
|
@@ -17960,7 +17960,7 @@ function $b(t) {
|
|
|
17960
17960
|
var c = U({
|
|
17961
17961
|
width: void 0,
|
|
17962
17962
|
height: void 0
|
|
17963
|
-
}), u = xb(
|
|
17963
|
+
}), u = xb(re(function(d) {
|
|
17964
17964
|
return (!i.current || i.current.box !== t.box || i.current.round !== r) && (i.current = {
|
|
17965
17965
|
box: t.box,
|
|
17966
17966
|
round: r,
|
|
@@ -18249,7 +18249,7 @@ const fl = (t) => t ? t.nodeType === qe.SEPARATOR : !1, hl = (t) => t ? t.nodeTy
|
|
|
18249
18249
|
C && (s ? s(C, () => {
|
|
18250
18250
|
p == null || p.treeData.handleMove(C), a == null || a(C);
|
|
18251
18251
|
}) : (p == null || p.treeData.handleMove(C), a == null || a(C)));
|
|
18252
|
-
}, y =
|
|
18252
|
+
}, y = re(
|
|
18253
18253
|
(b) => l ? !l(b) : !1,
|
|
18254
18254
|
[l]
|
|
18255
18255
|
);
|
|
@@ -18308,7 +18308,19 @@ const fl = (t) => t ? t.nodeType === qe.SEPARATOR : !1, hl = (t) => t ? t.nodeTy
|
|
|
18308
18308
|
}
|
|
18309
18309
|
);
|
|
18310
18310
|
}, Db = ({ children: t, ...e }) => {
|
|
18311
|
-
const n = e.node.data.value.nodeType === qe.TITLE, r = e.node.data.value.nodeType === qe.SEPARATOR, { style: i } = e.attrs, o = { ...i }
|
|
18311
|
+
const n = e.node.data.value.nodeType === qe.TITLE, r = e.node.data.value.nodeType === qe.SEPARATOR, { style: i } = e.attrs, o = { ...i }, l = (a) => {
|
|
18312
|
+
const s = a.target;
|
|
18313
|
+
if (s) {
|
|
18314
|
+
const c = s.closest(".actions"), d = s.closest('button, a[href], input, textarea, select, [role="menuitem"], [role="button"]');
|
|
18315
|
+
if (c || d)
|
|
18316
|
+
return;
|
|
18317
|
+
}
|
|
18318
|
+
if ((a.key === "Enter" || a.key === " ") && a.currentTarget.click(), a.key === "F2") {
|
|
18319
|
+
a.preventDefault();
|
|
18320
|
+
const c = a.currentTarget.querySelector("button");
|
|
18321
|
+
c && c.focus();
|
|
18322
|
+
}
|
|
18323
|
+
};
|
|
18312
18324
|
return n || r ? /* @__PURE__ */ Wn(
|
|
18313
18325
|
"div",
|
|
18314
18326
|
{
|
|
@@ -18316,7 +18328,7 @@ const fl = (t) => t ? t.nodeType === qe.SEPARATOR : !1, hl = (t) => t ? t.nodeTy
|
|
|
18316
18328
|
key: e.node.id,
|
|
18317
18329
|
style: o,
|
|
18318
18330
|
ref: e.innerRef,
|
|
18319
|
-
onFocus: (
|
|
18331
|
+
onFocus: (a) => a.stopPropagation(),
|
|
18320
18332
|
onClick: e.node.handleClick
|
|
18321
18333
|
},
|
|
18322
18334
|
t
|
|
@@ -18327,8 +18339,9 @@ const fl = (t) => t ? t.nodeType === qe.SEPARATOR : !1, hl = (t) => t ? t.nodeTy
|
|
|
18327
18339
|
style: o,
|
|
18328
18340
|
key: e.node.id,
|
|
18329
18341
|
ref: e.innerRef,
|
|
18330
|
-
onFocus: (
|
|
18331
|
-
onClick: e.node.handleClick
|
|
18342
|
+
onFocus: (a) => a.stopPropagation(),
|
|
18343
|
+
onClick: e.node.handleClick,
|
|
18344
|
+
onKeyDown: l
|
|
18332
18345
|
},
|
|
18333
18346
|
/* @__PURE__ */ g.jsx("div", { className: "c__tree-view--row-content", children: t })
|
|
18334
18347
|
);
|
|
@@ -18337,7 +18350,7 @@ function Mf(t) {
|
|
|
18337
18350
|
const e = U(t);
|
|
18338
18351
|
return Rf(() => {
|
|
18339
18352
|
e.current = t;
|
|
18340
|
-
}),
|
|
18353
|
+
}), re(function() {
|
|
18341
18354
|
for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
|
|
18342
18355
|
r[i] = arguments[i];
|
|
18343
18356
|
return e.current == null ? void 0 : e.current(...r);
|
|
@@ -18351,7 +18364,7 @@ function Gc(t, e) {
|
|
|
18351
18364
|
}, e), n;
|
|
18352
18365
|
}
|
|
18353
18366
|
function _b(t) {
|
|
18354
|
-
const e = Mf(t), n = U(null), r =
|
|
18367
|
+
const e = Mf(t), n = U(null), r = re(
|
|
18355
18368
|
(i) => {
|
|
18356
18369
|
i !== n.current && (e == null || e(i, n.current)), n.current = i;
|
|
18357
18370
|
},
|
|
@@ -18475,7 +18488,7 @@ function Ab(t) {
|
|
|
18475
18488
|
} = {
|
|
18476
18489
|
...Mb,
|
|
18477
18490
|
...i
|
|
18478
|
-
}, y = Gc(f ?? r), b =
|
|
18491
|
+
}, y = Gc(f ?? r), b = re(
|
|
18479
18492
|
() => {
|
|
18480
18493
|
if (!d.current) {
|
|
18481
18494
|
d.current = !0;
|
|
@@ -18490,7 +18503,7 @@ function Ab(t) {
|
|
|
18490
18503
|
), C = kb({
|
|
18491
18504
|
callback: b,
|
|
18492
18505
|
disabled: m || !l
|
|
18493
|
-
}), $ =
|
|
18506
|
+
}), $ = re((k, F) => {
|
|
18494
18507
|
C && (F && (C.unobserve(F), d.current = !1), k && C.observe(k));
|
|
18495
18508
|
}, [C]), [E, S] = _b($), x = Gc(e);
|
|
18496
18509
|
return X(() => {
|
|
@@ -18546,26 +18559,22 @@ const Fb = (t) => {
|
|
|
18546
18559
|
style: i,
|
|
18547
18560
|
forceLoading: o
|
|
18548
18561
|
}) => {
|
|
18549
|
-
var
|
|
18550
|
-
const l = Lf(), a = U(null), [s, c] = J(!1), [u, d] = J(!1), h = o ?? s, p = n.willReceiveDrop || u, m = n.data.value.childrenCount !== void 0 && n.data.value.childrenCount > 0 || (((
|
|
18551
|
-
if (!v) {
|
|
18552
|
-
if (f || n.data.value.hasLoadedChildren) {
|
|
18553
|
-
n.toggle();
|
|
18554
|
-
return;
|
|
18555
|
-
}
|
|
18556
|
-
c(!0), await (l == null ? void 0 : l.treeData.handleLoadChildren(n.data.value.id)), c(!1), n.open();
|
|
18557
|
-
}
|
|
18558
|
-
}, [v, f, n, l == null ? void 0 : l.treeData]), b = ne(
|
|
18559
|
-
(E) => {
|
|
18560
|
-
E && !n.isOpen && !n.isDragging && (a.current = setTimeout(() => {
|
|
18561
|
-
y();
|
|
18562
|
-
}, 500)), a.current && !E && clearTimeout(a.current);
|
|
18563
|
-
},
|
|
18564
|
-
[y, n.isOpen, n.isDragging]
|
|
18565
|
-
);
|
|
18562
|
+
var y, b;
|
|
18563
|
+
const l = Lf(), a = U(null), [s, c] = J(!1), [u, d] = J(!1), h = o ?? s, p = n.willReceiveDrop || u, m = n.data.value.childrenCount !== void 0 && n.data.value.childrenCount > 0 || (((y = n.data.children) == null ? void 0 : y.length) ?? 0) > 0, f = ((b = n.children) == null ? void 0 : b.length) ?? !1, v = n.isLeaf || !m;
|
|
18566
18564
|
return X(() => {
|
|
18567
|
-
|
|
18568
|
-
}, [
|
|
18565
|
+
v || f || n.data.value.hasLoadedChildren || n.isOpen && (c(!0), l == null || l.treeData.handleLoadChildren(n.data.value.id).then(() => c(!1)));
|
|
18566
|
+
}, [
|
|
18567
|
+
n.isOpen,
|
|
18568
|
+
v,
|
|
18569
|
+
f,
|
|
18570
|
+
n.data.value.hasLoadedChildren,
|
|
18571
|
+
n.data.value.id,
|
|
18572
|
+
l == null ? void 0 : l.treeData
|
|
18573
|
+
]), X(() => (p && !n.isOpen && !n.isDragging && (a.current = setTimeout(() => {
|
|
18574
|
+
n.open();
|
|
18575
|
+
}, 500)), () => {
|
|
18576
|
+
a.current && clearTimeout(a.current);
|
|
18577
|
+
}), [p, n.isOpen, n.isDragging, n]), n.data.value.nodeType === qe.SEPARATOR ? /* @__PURE__ */ g.jsx("div", { className: "c__tree-view--node__separator" }) : n.data.value.nodeType === qe.TITLE ? /* @__PURE__ */ g.jsx("div", { className: "c__tree-view--node__title", children: n.data.value.headerTitle }) : /* @__PURE__ */ g.jsx(
|
|
18569
18578
|
Fb,
|
|
18570
18579
|
{
|
|
18571
18580
|
id: n.id,
|
|
@@ -18574,19 +18583,19 @@ const Fb = (t) => {
|
|
|
18574
18583
|
children: /* @__PURE__ */ g.jsxs(
|
|
18575
18584
|
"div",
|
|
18576
18585
|
{
|
|
18577
|
-
onClick: (
|
|
18578
|
-
if (!
|
|
18579
|
-
|
|
18586
|
+
onClick: (C) => {
|
|
18587
|
+
if (!C.target.closest(".c__tree-view--node")) {
|
|
18588
|
+
C.stopPropagation();
|
|
18580
18589
|
return;
|
|
18581
18590
|
}
|
|
18582
18591
|
e == null || e();
|
|
18583
18592
|
},
|
|
18584
|
-
onKeyDown: (
|
|
18585
|
-
|
|
18593
|
+
onKeyDown: (C) => {
|
|
18594
|
+
C.target.closest(".c__tree-view--node") || C.stopPropagation();
|
|
18586
18595
|
},
|
|
18587
18596
|
ref: r,
|
|
18588
18597
|
style: i,
|
|
18589
|
-
className:
|
|
18598
|
+
className: _e("c__tree-view--node", {
|
|
18590
18599
|
...n.state,
|
|
18591
18600
|
canDrop: n.data.value.canDrop ?? !0,
|
|
18592
18601
|
externalDrop: u
|
|
@@ -18598,8 +18607,8 @@ const Fb = (t) => {
|
|
|
18598
18607
|
!h && /* @__PURE__ */ g.jsx(
|
|
18599
18608
|
"span",
|
|
18600
18609
|
{
|
|
18601
|
-
onClick: (
|
|
18602
|
-
|
|
18610
|
+
onClick: (C) => {
|
|
18611
|
+
C.stopPropagation(), n.toggle();
|
|
18603
18612
|
},
|
|
18604
18613
|
className: "c__tree-view--node__arrow material-icons",
|
|
18605
18614
|
children: n.isOpen ? "keyboard_arrow_down" : "keyboard_arrow_right"
|
|
@@ -18612,7 +18621,54 @@ const Fb = (t) => {
|
|
|
18612
18621
|
)
|
|
18613
18622
|
}
|
|
18614
18623
|
);
|
|
18615
|
-
},
|
|
18624
|
+
}, g8 = ({
|
|
18625
|
+
children: t,
|
|
18626
|
+
uppercased: e = !1,
|
|
18627
|
+
type: n = "accent",
|
|
18628
|
+
className: r,
|
|
18629
|
+
...i
|
|
18630
|
+
}) => /* @__PURE__ */ g.jsx(
|
|
18631
|
+
"div",
|
|
18632
|
+
{
|
|
18633
|
+
className: _e(r, "c__badge", {
|
|
18634
|
+
"c__badge--uppercased": e,
|
|
18635
|
+
[`c__badge--${n}`]: n
|
|
18636
|
+
}),
|
|
18637
|
+
...i,
|
|
18638
|
+
children: t
|
|
18639
|
+
}
|
|
18640
|
+
);
|
|
18641
|
+
function m8(t) {
|
|
18642
|
+
X(() => {
|
|
18643
|
+
if (!t) return;
|
|
18644
|
+
let e = !1;
|
|
18645
|
+
const n = () => Array.from(t.querySelectorAll("button")).filter(
|
|
18646
|
+
(l) => !l.disabled && l.getAttribute("aria-disabled") !== "true"
|
|
18647
|
+
), r = (l) => {
|
|
18648
|
+
const a = l.key === "ArrowLeft" || l.key === "ArrowRight", s = l.key === " ";
|
|
18649
|
+
if (!(l.target instanceof HTMLElement)) return;
|
|
18650
|
+
if (s) {
|
|
18651
|
+
const f = l.target.closest("button");
|
|
18652
|
+
f instanceof HTMLButtonElement && t.contains(f) && f.click();
|
|
18653
|
+
return;
|
|
18654
|
+
}
|
|
18655
|
+
if (!a) return;
|
|
18656
|
+
const u = l.target.closest("button");
|
|
18657
|
+
if (!(u instanceof HTMLButtonElement && t.contains(u))) return;
|
|
18658
|
+
const h = n(), p = h.indexOf(u);
|
|
18659
|
+
if (p < 0) return;
|
|
18660
|
+
l.preventDefault(), l.stopPropagation();
|
|
18661
|
+
const m = l.key === "ArrowRight" ? (p + 1) % h.length : (p - 1 + h.length) % h.length;
|
|
18662
|
+
h[m].focus(), e = !0;
|
|
18663
|
+
}, i = (l) => {
|
|
18664
|
+
e && ((l.key === " " || l.key === "Enter") && (l.preventDefault(), l.stopPropagation()), e = !1);
|
|
18665
|
+
}, o = { capture: !0 };
|
|
18666
|
+
return t.addEventListener("keydown", r, o), t.addEventListener("keyup", i, o), () => {
|
|
18667
|
+
t.removeEventListener("keydown", r, o), t.removeEventListener("keyup", i, o);
|
|
18668
|
+
};
|
|
18669
|
+
}, [t]);
|
|
18670
|
+
}
|
|
18671
|
+
const va = ({
|
|
18616
18672
|
roles: t,
|
|
18617
18673
|
onSelect: e,
|
|
18618
18674
|
canUpdate: n = !0,
|
|
@@ -18726,7 +18782,7 @@ const Fb = (t) => {
|
|
|
18726
18782
|
"div",
|
|
18727
18783
|
{
|
|
18728
18784
|
style: { backgroundColor: n || void 0 },
|
|
18729
|
-
className:
|
|
18785
|
+
className: _e(`c__avatar ${e}`, {
|
|
18730
18786
|
[i]: !n && i
|
|
18731
18787
|
}),
|
|
18732
18788
|
children: /* @__PURE__ */ g.jsx("div", { className: "c__avatar__initials", children: r })
|
|
@@ -18745,7 +18801,7 @@ const Fb = (t) => {
|
|
|
18745
18801
|
n && e && /* @__PURE__ */ g.jsx(
|
|
18746
18802
|
"span",
|
|
18747
18803
|
{
|
|
18748
|
-
className:
|
|
18804
|
+
className: _e("c__user-row__email", {
|
|
18749
18805
|
"has-only-email": e && (t === "" || !t)
|
|
18750
18806
|
}),
|
|
18751
18807
|
children: e
|
|
@@ -19012,7 +19068,7 @@ const Fb = (t) => {
|
|
|
19012
19068
|
`components.share.linkSettings.reach.choices.${p}.description`
|
|
19013
19069
|
) })
|
|
19014
19070
|
] });
|
|
19015
|
-
},
|
|
19071
|
+
}, y8 = ({
|
|
19016
19072
|
searchUsersResult: t,
|
|
19017
19073
|
children: e,
|
|
19018
19074
|
outsideSearchContent: n,
|
|
@@ -19051,7 +19107,7 @@ const Fb = (t) => {
|
|
|
19051
19107
|
}, 300);
|
|
19052
19108
|
}, A = (j) => {
|
|
19053
19109
|
E(j), B(j);
|
|
19054
|
-
}, W = S !== "" || k.length > 0, D =
|
|
19110
|
+
}, W = S !== "" || k.length > 0, D = re(
|
|
19055
19111
|
(j) => {
|
|
19056
19112
|
F((z) => [...z, j]), E(""), x(""), p.onSearchUsers("");
|
|
19057
19113
|
},
|
|
@@ -19254,7 +19310,7 @@ const Fb = (t) => {
|
|
|
19254
19310
|
children: n("components.share.members.load_more")
|
|
19255
19311
|
}
|
|
19256
19312
|
) }) : null;
|
|
19257
|
-
},
|
|
19313
|
+
}, b8 = ({
|
|
19258
19314
|
onCopyLink: t,
|
|
19259
19315
|
onOk: e
|
|
19260
19316
|
}) => {
|
|
@@ -19271,7 +19327,7 @@ const Fb = (t) => {
|
|
|
19271
19327
|
),
|
|
19272
19328
|
/* @__PURE__ */ g.jsx(Pe, { color: "primary", onClick: e, children: n("components.share.ok") })
|
|
19273
19329
|
] });
|
|
19274
|
-
},
|
|
19330
|
+
}, C8 = ({
|
|
19275
19331
|
user: t,
|
|
19276
19332
|
settingsCTA: e,
|
|
19277
19333
|
logout: n,
|
|
@@ -19342,6 +19398,7 @@ const Fb = (t) => {
|
|
|
19342
19398
|
};
|
|
19343
19399
|
export {
|
|
19344
19400
|
va as AccessRoleDropdown,
|
|
19401
|
+
g8 as Badge,
|
|
19345
19402
|
Jb as CunninghamProvider,
|
|
19346
19403
|
f8 as CustomTabs,
|
|
19347
19404
|
En as DropdownMenu,
|
|
@@ -19352,7 +19409,7 @@ export {
|
|
|
19352
19409
|
n8 as HomeGutter,
|
|
19353
19410
|
Xs as HorizontalSeparator,
|
|
19354
19411
|
ri as Icon,
|
|
19355
|
-
|
|
19412
|
+
Re as IconSize,
|
|
19356
19413
|
Rr as IconType,
|
|
19357
19414
|
jb as InvitationUserSelectorItem,
|
|
19358
19415
|
Kb as InvitationUserSelectorList,
|
|
@@ -19370,8 +19427,8 @@ export {
|
|
|
19370
19427
|
nu as SearchUserItem,
|
|
19371
19428
|
Bb as ShareInvitationItem,
|
|
19372
19429
|
zb as ShareMemberItem,
|
|
19373
|
-
|
|
19374
|
-
|
|
19430
|
+
y8 as ShareModal,
|
|
19431
|
+
b8 as ShareModalCopyLinkFooter,
|
|
19375
19432
|
i2 as Spinner,
|
|
19376
19433
|
Gn as TreeApi,
|
|
19377
19434
|
Nf as TreeContext,
|
|
@@ -19382,7 +19439,7 @@ export {
|
|
|
19382
19439
|
qe as TreeViewNodeTypeEnum,
|
|
19383
19440
|
Eb as TreeViewSeparator,
|
|
19384
19441
|
gl as UserAvatar,
|
|
19385
|
-
|
|
19442
|
+
C8 as UserMenu,
|
|
19386
19443
|
ga as UserRow,
|
|
19387
19444
|
d8 as VerticalSeparator,
|
|
19388
19445
|
s8 as WithLabel,
|
|
@@ -19398,6 +19455,7 @@ export {
|
|
|
19398
19455
|
fl as isSeparator,
|
|
19399
19456
|
hl as isTitle,
|
|
19400
19457
|
i1 as locales,
|
|
19458
|
+
m8 as useArrowRoving,
|
|
19401
19459
|
Zb as useCustomTranslations,
|
|
19402
19460
|
Ft as useDropdownMenu,
|
|
19403
19461
|
cr as useResponsive,
|