@purpurds/table 8.16.1 → 8.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/LICENSE.txt +16 -16
- package/dist/table.cjs.js +3 -3
- package/dist/table.cjs.js.map +1 -1
- package/dist/table.es.js +605 -605
- package/dist/table.es.js.map +1 -1
- package/package.json +23 -23
package/dist/table.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as g, jsxs as N, Fragment as et } from "react/jsx-runtime";
|
|
2
2
|
import * as p from "react";
|
|
3
|
-
import Z, { useLayoutEffect as wo, useEffect as B, useMemo as X, useRef as
|
|
3
|
+
import Z, { useLayoutEffect as wo, useEffect as B, useMemo as X, useRef as j, useCallback as ae, useState as T, createContext as kr, memo as Og, useReducer as Pg, useContext as Ct, forwardRef as fe, cloneElement as Ac, useId as Ir, Children as Dg, isValidElement as Ag } from "react";
|
|
4
4
|
import * as sa from "react-dom";
|
|
5
5
|
import Mc, { unstable_batchedUpdates as An, createPortal as kc } from "react-dom";
|
|
6
6
|
function XR() {
|
|
@@ -330,16 +330,16 @@ const Fc = (e, t, r) => {
|
|
|
330
330
|
return (o = e.getValue(t)) == null ? void 0 : o.includes(r);
|
|
331
331
|
};
|
|
332
332
|
Fc.autoRemove = (e) => Qe(e);
|
|
333
|
-
const
|
|
333
|
+
const zc = (e, t, r) => !r.some((o) => {
|
|
334
334
|
var i;
|
|
335
335
|
return !((i = e.getValue(t)) != null && i.includes(o));
|
|
336
336
|
});
|
|
337
|
-
|
|
338
|
-
const
|
|
337
|
+
zc.autoRemove = (e) => Qe(e) || !(e != null && e.length);
|
|
338
|
+
const jc = (e, t, r) => r.some((o) => {
|
|
339
339
|
var i;
|
|
340
340
|
return (i = e.getValue(t)) == null ? void 0 : i.includes(o);
|
|
341
341
|
});
|
|
342
|
-
|
|
342
|
+
jc.autoRemove = (e) => Qe(e) || !(e != null && e.length);
|
|
343
343
|
const Vc = (e, t, r) => e.getValue(t) === r;
|
|
344
344
|
Vc.autoRemove = (e) => Qe(e);
|
|
345
345
|
const Bc = (e, t, r) => e.getValue(t) == r;
|
|
@@ -363,8 +363,8 @@ const xt = {
|
|
|
363
363
|
includesStringSensitive: Lc,
|
|
364
364
|
equalsString: Tc,
|
|
365
365
|
arrIncludes: Fc,
|
|
366
|
-
arrIncludesAll:
|
|
367
|
-
arrIncludesSome:
|
|
366
|
+
arrIncludesAll: zc,
|
|
367
|
+
arrIncludesSome: jc,
|
|
368
368
|
equals: Vc,
|
|
369
369
|
weakEquals: Bc,
|
|
370
370
|
inNumberRange: ca
|
|
@@ -372,7 +372,7 @@ const xt = {
|
|
|
372
372
|
function Qe(e) {
|
|
373
373
|
return e == null || e === "";
|
|
374
374
|
}
|
|
375
|
-
const
|
|
375
|
+
const zg = {
|
|
376
376
|
getDefaultColumnDef: () => ({
|
|
377
377
|
filterFn: "auto"
|
|
378
378
|
}),
|
|
@@ -450,7 +450,7 @@ const jg = {
|
|
|
450
450
|
function nl(e, t, r) {
|
|
451
451
|
return (e && e.autoRemove ? e.autoRemove(t, r) : !1) || typeof t > "u" || typeof t == "string" && !t;
|
|
452
452
|
}
|
|
453
|
-
const
|
|
453
|
+
const jg = (e, t, r) => r.reduce((o, i) => {
|
|
454
454
|
const n = i.getValue(e);
|
|
455
455
|
return o + (typeof n == "number" ? n : 0);
|
|
456
456
|
}, 0), Vg = (e, t, r) => {
|
|
@@ -465,13 +465,13 @@ const zg = (e, t, r) => r.reduce((o, i) => {
|
|
|
465
465
|
const n = i.getValue(e);
|
|
466
466
|
n != null && (o < n || o === void 0 && n >= n) && (o = n);
|
|
467
467
|
}), o;
|
|
468
|
-
},
|
|
468
|
+
}, Hg = (e, t, r) => {
|
|
469
469
|
let o, i;
|
|
470
470
|
return r.forEach((n) => {
|
|
471
471
|
const a = n.getValue(e);
|
|
472
472
|
a != null && (o === void 0 ? a >= a && (o = i = a) : (o > a && (o = a), i < a && (i = a)));
|
|
473
473
|
}), [o, i];
|
|
474
|
-
},
|
|
474
|
+
}, qg = (e, t) => {
|
|
475
475
|
let r = 0, o = 0;
|
|
476
476
|
if (t.forEach((i) => {
|
|
477
477
|
let n = i.getValue(e);
|
|
@@ -488,11 +488,11 @@ const zg = (e, t, r) => r.reduce((o, i) => {
|
|
|
488
488
|
const o = Math.floor(r.length / 2), i = r.sort((n, a) => n - a);
|
|
489
489
|
return r.length % 2 !== 0 ? i[o] : (i[o - 1] + i[o]) / 2;
|
|
490
490
|
}, Gg = (e, t) => Array.from(new Set(t.map((r) => r.getValue(e))).values()), Zg = (e, t) => new Set(t.map((r) => r.getValue(e))).size, Ug = (e, t) => t.length, Yo = {
|
|
491
|
-
sum:
|
|
491
|
+
sum: jg,
|
|
492
492
|
min: Vg,
|
|
493
493
|
max: Bg,
|
|
494
|
-
extent:
|
|
495
|
-
mean:
|
|
494
|
+
extent: Hg,
|
|
495
|
+
mean: qg,
|
|
496
496
|
median: Wg,
|
|
497
497
|
unique: Gg,
|
|
498
498
|
uniqueCount: Zg,
|
|
@@ -1024,8 +1024,8 @@ const nh = {
|
|
|
1024
1024
|
};
|
|
1025
1025
|
};
|
|
1026
1026
|
}
|
|
1027
|
-
},
|
|
1028
|
-
pageIndex:
|
|
1027
|
+
}, ji = 0, Vi = 10, ei = () => ({
|
|
1028
|
+
pageIndex: ji,
|
|
1029
1029
|
pageSize: Vi
|
|
1030
1030
|
}), ah = {
|
|
1031
1031
|
getInitialState: (e) => ({
|
|
@@ -1071,7 +1071,7 @@ const nh = {
|
|
|
1071
1071
|
});
|
|
1072
1072
|
}, e.resetPageIndex = (o) => {
|
|
1073
1073
|
var i, n;
|
|
1074
|
-
e.setPageIndex(o ?
|
|
1074
|
+
e.setPageIndex(o ? ji : (i = (n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) != null ? i : ji);
|
|
1075
1075
|
}, e.resetPageSize = (o) => {
|
|
1076
1076
|
var i, n;
|
|
1077
1077
|
e.setPageSize(o ? Vi : (i = (n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) != null ? i : Vi);
|
|
@@ -1306,12 +1306,12 @@ const nh = {
|
|
|
1306
1306
|
const {
|
|
1307
1307
|
rowSelection: r
|
|
1308
1308
|
} = t.getState();
|
|
1309
|
-
return
|
|
1309
|
+
return Hi(e, r) === "some";
|
|
1310
1310
|
}, e.getIsAllSubRowsSelected = () => {
|
|
1311
1311
|
const {
|
|
1312
1312
|
rowSelection: r
|
|
1313
1313
|
} = t.getState();
|
|
1314
|
-
return
|
|
1314
|
+
return Hi(e, r) === "all";
|
|
1315
1315
|
}, e.getCanSelect = () => {
|
|
1316
1316
|
var r;
|
|
1317
1317
|
return typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : (r = t.options.enableRowSelection) != null ? r : !0;
|
|
@@ -1356,29 +1356,29 @@ function da(e, t) {
|
|
|
1356
1356
|
var r;
|
|
1357
1357
|
return (r = t[e.id]) != null ? r : !1;
|
|
1358
1358
|
}
|
|
1359
|
-
function
|
|
1359
|
+
function Hi(e, t, r) {
|
|
1360
1360
|
var o;
|
|
1361
1361
|
if (!((o = e.subRows) != null && o.length)) return !1;
|
|
1362
1362
|
let i = !0, n = !1;
|
|
1363
1363
|
return e.subRows.forEach((a) => {
|
|
1364
1364
|
if (!(n && !i) && (a.getCanSelect() && (da(a, t) ? n = !0 : i = !1), a.subRows && a.subRows.length)) {
|
|
1365
|
-
const l =
|
|
1365
|
+
const l = Hi(a, t);
|
|
1366
1366
|
l === "all" ? n = !0 : (l === "some" && (n = !0), i = !1);
|
|
1367
1367
|
}
|
|
1368
1368
|
}), i ? "all" : n ? "some" : !1;
|
|
1369
1369
|
}
|
|
1370
|
-
const
|
|
1370
|
+
const qi = /([0-9]+)/gm, uh = (e, t, r) => Hc(jt(e.getValue(r)).toLowerCase(), jt(t.getValue(r)).toLowerCase()), ch = (e, t, r) => Hc(jt(e.getValue(r)), jt(t.getValue(r))), dh = (e, t, r) => pa(jt(e.getValue(r)).toLowerCase(), jt(t.getValue(r)).toLowerCase()), ph = (e, t, r) => pa(jt(e.getValue(r)), jt(t.getValue(r))), fh = (e, t, r) => {
|
|
1371
1371
|
const o = e.getValue(r), i = t.getValue(r);
|
|
1372
1372
|
return o > i ? 1 : o < i ? -1 : 0;
|
|
1373
1373
|
}, gh = (e, t, r) => pa(e.getValue(r), t.getValue(r));
|
|
1374
1374
|
function pa(e, t) {
|
|
1375
1375
|
return e === t ? 0 : e > t ? 1 : -1;
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1377
|
+
function jt(e) {
|
|
1378
1378
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1381
|
-
const r = e.split(
|
|
1380
|
+
function Hc(e, t) {
|
|
1381
|
+
const r = e.split(qi).filter(Boolean), o = t.split(qi).filter(Boolean);
|
|
1382
1382
|
for (; r.length && o.length; ) {
|
|
1383
1383
|
const i = r.shift(), n = o.shift(), a = parseInt(i, 10), l = parseInt(n, 10), s = [a, l].sort();
|
|
1384
1384
|
if (isNaN(s[0])) {
|
|
@@ -1425,7 +1425,7 @@ const Xr = {
|
|
|
1425
1425
|
const n = i?.getValue(e.id);
|
|
1426
1426
|
if (Object.prototype.toString.call(n) === "[object Date]")
|
|
1427
1427
|
return Xr.datetime;
|
|
1428
|
-
if (typeof n == "string" && (o = !0, n.split(
|
|
1428
|
+
if (typeof n == "string" && (o = !0, n.split(qi).length > 1))
|
|
1429
1429
|
return Xr.alphanumeric;
|
|
1430
1430
|
}
|
|
1431
1431
|
return o ? Xr.text : Xr.basic;
|
|
@@ -1499,7 +1499,7 @@ const Xr = {
|
|
|
1499
1499
|
Kg,
|
|
1500
1500
|
Jg,
|
|
1501
1501
|
Fg,
|
|
1502
|
-
|
|
1502
|
+
zg,
|
|
1503
1503
|
nh,
|
|
1504
1504
|
//depends on ColumnFaceting
|
|
1505
1505
|
oh,
|
|
@@ -1855,7 +1855,7 @@ function Ch() {
|
|
|
1855
1855
|
};
|
|
1856
1856
|
}, M(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
1857
1857
|
}
|
|
1858
|
-
function
|
|
1858
|
+
function qc(e, t) {
|
|
1859
1859
|
return e ? Rh(e) ? /* @__PURE__ */ p.createElement(e, t) : e : null;
|
|
1860
1860
|
}
|
|
1861
1861
|
function Rh(e) {
|
|
@@ -1976,7 +1976,7 @@ function Tr(e) {
|
|
|
1976
1976
|
}
|
|
1977
1977
|
const tt = $o ? wo : B;
|
|
1978
1978
|
function xo(e) {
|
|
1979
|
-
const t =
|
|
1979
|
+
const t = j(e);
|
|
1980
1980
|
return tt(() => {
|
|
1981
1981
|
t.current = e;
|
|
1982
1982
|
}), ae(function() {
|
|
@@ -1986,7 +1986,7 @@ function xo(e) {
|
|
|
1986
1986
|
}, []);
|
|
1987
1987
|
}
|
|
1988
1988
|
function kh() {
|
|
1989
|
-
const e =
|
|
1989
|
+
const e = j(null), t = ae((o, i) => {
|
|
1990
1990
|
e.current = setInterval(o, i);
|
|
1991
1991
|
}, []), r = ae(() => {
|
|
1992
1992
|
e.current !== null && (clearInterval(e.current), e.current = null);
|
|
@@ -1995,13 +1995,13 @@ function kh() {
|
|
|
1995
1995
|
}
|
|
1996
1996
|
function hn(e, t) {
|
|
1997
1997
|
t === void 0 && (t = [e]);
|
|
1998
|
-
const r =
|
|
1998
|
+
const r = j(e);
|
|
1999
1999
|
return tt(() => {
|
|
2000
2000
|
r.current !== e && (r.current = e);
|
|
2001
2001
|
}, t), r;
|
|
2002
2002
|
}
|
|
2003
2003
|
function wn(e, t) {
|
|
2004
|
-
const r =
|
|
2004
|
+
const r = j();
|
|
2005
2005
|
return X(
|
|
2006
2006
|
() => {
|
|
2007
2007
|
const o = e(r.current);
|
|
@@ -2012,7 +2012,7 @@ function wn(e, t) {
|
|
|
2012
2012
|
);
|
|
2013
2013
|
}
|
|
2014
2014
|
function ao(e) {
|
|
2015
|
-
const t = xo(e), r =
|
|
2015
|
+
const t = xo(e), r = j(null), o = ae(
|
|
2016
2016
|
(i) => {
|
|
2017
2017
|
i !== r.current && t?.(i, r.current), r.current = i;
|
|
2018
2018
|
},
|
|
@@ -2022,7 +2022,7 @@ function ao(e) {
|
|
|
2022
2022
|
return [r, o];
|
|
2023
2023
|
}
|
|
2024
2024
|
function lo(e) {
|
|
2025
|
-
const t =
|
|
2025
|
+
const t = j();
|
|
2026
2026
|
return B(() => {
|
|
2027
2027
|
t.current = e;
|
|
2028
2028
|
}, [e]), t.current;
|
|
@@ -2145,7 +2145,7 @@ function Th(e) {
|
|
|
2145
2145
|
const Fh = {
|
|
2146
2146
|
display: "none"
|
|
2147
2147
|
};
|
|
2148
|
-
function
|
|
2148
|
+
function zh(e) {
|
|
2149
2149
|
let {
|
|
2150
2150
|
id: t,
|
|
2151
2151
|
value: r
|
|
@@ -2155,7 +2155,7 @@ function jh(e) {
|
|
|
2155
2155
|
style: Fh
|
|
2156
2156
|
}, r);
|
|
2157
2157
|
}
|
|
2158
|
-
function
|
|
2158
|
+
function jh(e) {
|
|
2159
2159
|
let {
|
|
2160
2160
|
id: t,
|
|
2161
2161
|
announcement: r,
|
|
@@ -2201,7 +2201,7 @@ function Bh(e) {
|
|
|
2201
2201
|
return t(e);
|
|
2202
2202
|
}, [e, t]);
|
|
2203
2203
|
}
|
|
2204
|
-
function
|
|
2204
|
+
function Hh() {
|
|
2205
2205
|
const [e] = T(() => /* @__PURE__ */ new Set()), t = ae((o) => (e.add(o), () => e.delete(o)), [e]);
|
|
2206
2206
|
return [ae((o) => {
|
|
2207
2207
|
let {
|
|
@@ -2214,7 +2214,7 @@ function qh() {
|
|
|
2214
2214
|
});
|
|
2215
2215
|
}, [e]), t];
|
|
2216
2216
|
}
|
|
2217
|
-
const
|
|
2217
|
+
const qh = {
|
|
2218
2218
|
draggable: `
|
|
2219
2219
|
To pick up a draggable item, press the space bar.
|
|
2220
2220
|
While dragging, use the arrow keys to move the item.
|
|
@@ -2253,7 +2253,7 @@ function Gh(e) {
|
|
|
2253
2253
|
announcements: t = Wh,
|
|
2254
2254
|
container: r,
|
|
2255
2255
|
hiddenTextDescribedById: o,
|
|
2256
|
-
screenReaderInstructions: i =
|
|
2256
|
+
screenReaderInstructions: i = qh
|
|
2257
2257
|
} = e;
|
|
2258
2258
|
const {
|
|
2259
2259
|
announce: n,
|
|
@@ -2312,10 +2312,10 @@ function Gh(e) {
|
|
|
2312
2312
|
}
|
|
2313
2313
|
}), [n, t])), !s)
|
|
2314
2314
|
return null;
|
|
2315
|
-
const c = Z.createElement(Z.Fragment, null, Z.createElement(
|
|
2315
|
+
const c = Z.createElement(Z.Fragment, null, Z.createElement(zh, {
|
|
2316
2316
|
id: o,
|
|
2317
2317
|
value: i.draggable
|
|
2318
|
-
}), Z.createElement(
|
|
2318
|
+
}), Z.createElement(jh, {
|
|
2319
2319
|
id: l,
|
|
2320
2320
|
announcement: a
|
|
2321
2321
|
}));
|
|
@@ -2818,10 +2818,10 @@ function ai(e, t) {
|
|
|
2818
2818
|
const r = Math.abs(e.x), o = Math.abs(e.y);
|
|
2819
2819
|
return typeof t == "number" ? Math.sqrt(r ** 2 + o ** 2) > t : "x" in t && "y" in t ? r > t.x && o > t.y : "x" in t ? r > t.x : "y" in t ? o > t.y : !1;
|
|
2820
2820
|
}
|
|
2821
|
-
var
|
|
2821
|
+
var qe;
|
|
2822
2822
|
(function(e) {
|
|
2823
2823
|
e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
|
|
2824
|
-
})(
|
|
2824
|
+
})(qe || (qe = {}));
|
|
2825
2825
|
function ul(e) {
|
|
2826
2826
|
e.preventDefault();
|
|
2827
2827
|
}
|
|
@@ -2874,7 +2874,7 @@ class Ro {
|
|
|
2874
2874
|
this.props = t, this.listeners = new pn(Tr(r)), this.windowListeners = new pn($e(r)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
2875
2875
|
}
|
|
2876
2876
|
attach() {
|
|
2877
|
-
this.handleStart(), this.windowListeners.add(
|
|
2877
|
+
this.handleStart(), this.windowListeners.add(qe.Resize, this.handleCancel), this.windowListeners.add(qe.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(qe.Keydown, this.handleKeyDown));
|
|
2878
2878
|
}
|
|
2879
2879
|
handleStart() {
|
|
2880
2880
|
const {
|
|
@@ -3041,7 +3041,7 @@ class _a {
|
|
|
3041
3041
|
} = this;
|
|
3042
3042
|
if (this.listeners.add(t.move.name, this.handleMove, {
|
|
3043
3043
|
passive: !1
|
|
3044
|
-
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(
|
|
3044
|
+
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(qe.Resize, this.handleCancel), this.windowListeners.add(qe.DragStart, ul), this.windowListeners.add(qe.VisibilityChange, this.handleCancel), this.windowListeners.add(qe.ContextMenu, ul), this.documentListeners.add(qe.Keydown, this.handleKeydown), r) {
|
|
3045
3045
|
if (o != null && o({
|
|
3046
3046
|
event: this.props.event,
|
|
3047
3047
|
activeNode: this.props.activeNode,
|
|
@@ -3075,9 +3075,9 @@ class _a {
|
|
|
3075
3075
|
} = this, {
|
|
3076
3076
|
onStart: r
|
|
3077
3077
|
} = this.props;
|
|
3078
|
-
t && (this.activated = !0, this.documentListeners.add(
|
|
3078
|
+
t && (this.activated = !0, this.documentListeners.add(qe.Click, f_, {
|
|
3079
3079
|
capture: !0
|
|
3080
|
-
}), this.removeTextSelection(), this.documentListeners.add(
|
|
3080
|
+
}), this.removeTextSelection(), this.documentListeners.add(qe.SelectionChange, this.removeTextSelection), r(t));
|
|
3081
3081
|
}
|
|
3082
3082
|
handleMove(t) {
|
|
3083
3083
|
var r;
|
|
@@ -3260,10 +3260,10 @@ function m_(e) {
|
|
|
3260
3260
|
const f = w_({
|
|
3261
3261
|
delta: d,
|
|
3262
3262
|
disabled: !n
|
|
3263
|
-
}), [v, _] = kh(), m =
|
|
3263
|
+
}), [v, _] = kh(), m = j({
|
|
3264
3264
|
x: 0,
|
|
3265
3265
|
y: 0
|
|
3266
|
-
}), b =
|
|
3266
|
+
}), b = j({
|
|
3267
3267
|
x: 0,
|
|
3268
3268
|
y: 0
|
|
3269
3269
|
}), y = X(() => {
|
|
@@ -3278,7 +3278,7 @@ function m_(e) {
|
|
|
3278
3278
|
case fn.DraggableRect:
|
|
3279
3279
|
return i;
|
|
3280
3280
|
}
|
|
3281
|
-
}, [r, i, s]), w =
|
|
3281
|
+
}, [r, i, s]), w = j(null), $ = ae(() => {
|
|
3282
3282
|
const C = w.current;
|
|
3283
3283
|
if (!C)
|
|
3284
3284
|
return;
|
|
@@ -3409,9 +3409,9 @@ function x_(e, t) {
|
|
|
3409
3409
|
frequency: l,
|
|
3410
3410
|
measure: s,
|
|
3411
3411
|
strategy: u
|
|
3412
|
-
} = i, c =
|
|
3412
|
+
} = i, c = j(e), d = m(), h = hn(d), f = ae(function(b) {
|
|
3413
3413
|
b === void 0 && (b = []), !h.current && a((y) => y === null ? b : y.concat(b.filter((w) => !y.includes(w))));
|
|
3414
|
-
}, [h]), v =
|
|
3414
|
+
}, [h]), v = j(null), _ = wn((b) => {
|
|
3415
3415
|
if (d && !r)
|
|
3416
3416
|
return pl;
|
|
3417
3417
|
if (!b || b === pl || c.current !== e || n != null) {
|
|
@@ -3556,13 +3556,13 @@ function E_(e) {
|
|
|
3556
3556
|
}
|
|
3557
3557
|
const gl = [];
|
|
3558
3558
|
function N_(e) {
|
|
3559
|
-
const t =
|
|
3559
|
+
const t = j(e), r = wn((o) => e ? o && o !== gl && e && t.current && e.parentNode === t.current.parentNode ? o : Co(e) : gl, [e]);
|
|
3560
3560
|
return B(() => {
|
|
3561
3561
|
t.current = e;
|
|
3562
3562
|
}, [e]), r;
|
|
3563
3563
|
}
|
|
3564
3564
|
function O_(e) {
|
|
3565
|
-
const [t, r] = T(null), o =
|
|
3565
|
+
const [t, r] = T(null), o = j(e), i = ae((n) => {
|
|
3566
3566
|
const a = ii(n.target);
|
|
3567
3567
|
a && r((l) => l ? (l.set(a, Wi(a)), new Map(l)) : null);
|
|
3568
3568
|
}, []);
|
|
@@ -3591,7 +3591,7 @@ function O_(e) {
|
|
|
3591
3591
|
}
|
|
3592
3592
|
function hl(e, t) {
|
|
3593
3593
|
t === void 0 && (t = []);
|
|
3594
|
-
const r =
|
|
3594
|
+
const r = j(null);
|
|
3595
3595
|
return B(
|
|
3596
3596
|
() => {
|
|
3597
3597
|
r.current = null;
|
|
@@ -3887,7 +3887,7 @@ function F_(e, t) {
|
|
|
3887
3887
|
return e;
|
|
3888
3888
|
}
|
|
3889
3889
|
}
|
|
3890
|
-
function
|
|
3890
|
+
function z_(e) {
|
|
3891
3891
|
let {
|
|
3892
3892
|
disabled: t
|
|
3893
3893
|
} = e;
|
|
@@ -3933,7 +3933,7 @@ function fd(e, t) {
|
|
|
3933
3933
|
...o
|
|
3934
3934
|
}), r) : r;
|
|
3935
3935
|
}
|
|
3936
|
-
function
|
|
3936
|
+
function j_(e) {
|
|
3937
3937
|
return X(
|
|
3938
3938
|
() => ({
|
|
3939
3939
|
draggable: {
|
|
@@ -3960,7 +3960,7 @@ function V_(e) {
|
|
|
3960
3960
|
initialRect: o,
|
|
3961
3961
|
config: i = !0
|
|
3962
3962
|
} = e;
|
|
3963
|
-
const n =
|
|
3963
|
+
const n = j(!1), {
|
|
3964
3964
|
x: a,
|
|
3965
3965
|
y: l
|
|
3966
3966
|
} = typeof i == "boolean" ? {
|
|
@@ -4009,7 +4009,7 @@ const gd = /* @__PURE__ */ Og(function(t) {
|
|
|
4009
4009
|
modifiers: f,
|
|
4010
4010
|
...v
|
|
4011
4011
|
} = t;
|
|
4012
|
-
const _ = Pg(F_, void 0, T_), [m, b] = _, [y, w] =
|
|
4012
|
+
const _ = Pg(F_, void 0, T_), [m, b] = _, [y, w] = Hh(), [$, S] = T(Tt.Uninitialized), C = $ === Tt.Initialized, {
|
|
4013
4013
|
draggable: {
|
|
4014
4014
|
active: x,
|
|
4015
4015
|
nodes: R,
|
|
@@ -4018,7 +4018,7 @@ const gd = /* @__PURE__ */ Og(function(t) {
|
|
|
4018
4018
|
droppable: {
|
|
4019
4019
|
containers: O
|
|
4020
4020
|
}
|
|
4021
|
-
} = m, P = x != null ? R.get(x) : null, L =
|
|
4021
|
+
} = m, P = x != null ? R.get(x) : null, L = j({
|
|
4022
4022
|
initial: null,
|
|
4023
4023
|
translated: null
|
|
4024
4024
|
}), D = X(() => {
|
|
@@ -4029,9 +4029,9 @@ const gd = /* @__PURE__ */ Og(function(t) {
|
|
|
4029
4029
|
data: (ee = P?.data) != null ? ee : I_,
|
|
4030
4030
|
rect: L
|
|
4031
4031
|
} : null;
|
|
4032
|
-
}, [x, P]), k =
|
|
4032
|
+
}, [x, P]), k = j(null), [G, U] = T(null), [F, I] = T(null), q = hn(v, Object.values(v)), le = yn("DndDescribedBy", a), Ze = X(() => O.getEnabled(), [O]), ne = j_(h), {
|
|
4033
4033
|
droppableRects: Pe,
|
|
4034
|
-
measureDroppableContainers:
|
|
4034
|
+
measureDroppableContainers: je,
|
|
4035
4035
|
measuringScheduled: at
|
|
4036
4036
|
} = x_(Ze, {
|
|
4037
4037
|
dragging: C,
|
|
@@ -4044,7 +4044,7 @@ const gd = /* @__PURE__ */ Og(function(t) {
|
|
|
4044
4044
|
initialRect: se,
|
|
4045
4045
|
measure: ne.draggable.measure
|
|
4046
4046
|
});
|
|
4047
|
-
const
|
|
4047
|
+
const H = fl(ge, ne.draggable.measure, se), J = fl(ge ? ge.parentElement : null), ve = j({
|
|
4048
4048
|
activatorEvent: null,
|
|
4049
4049
|
active: null,
|
|
4050
4050
|
activeNode: ge,
|
|
@@ -4060,16 +4060,16 @@ const gd = /* @__PURE__ */ Og(function(t) {
|
|
|
4060
4060
|
scrollAdjustedTranslate: null
|
|
4061
4061
|
}), Se = O.getNodeFor((r = ve.current.over) == null ? void 0 : r.id), Ve = M_({
|
|
4062
4062
|
measure: ne.dragOverlay.measure
|
|
4063
|
-
}), ht = (o = Ve.nodeRef.current) != null ? o : ge, _t = C ? (i = Ve.rect) != null ? i :
|
|
4063
|
+
}), ht = (o = Ve.nodeRef.current) != null ? o : ge, _t = C ? (i = Ve.rect) != null ? i : H : null, Hr = !!(Ve.nodeRef.current && Ve.rect), qr = E_(Hr ? null : H), ur = ud(ht ? $e(ht) : null), Ue = N_(C ? Se ?? ge : null), Wt = A_(Ue), cr = fd(f, {
|
|
4064
4064
|
transform: {
|
|
4065
|
-
x: E.x -
|
|
4066
|
-
y: E.y -
|
|
4065
|
+
x: E.x - qr.x,
|
|
4066
|
+
y: E.y - qr.y,
|
|
4067
4067
|
scaleX: 1,
|
|
4068
4068
|
scaleY: 1
|
|
4069
4069
|
},
|
|
4070
4070
|
activatorEvent: F,
|
|
4071
4071
|
active: D,
|
|
4072
|
-
activeNodeRect:
|
|
4072
|
+
activeNodeRect: H,
|
|
4073
4073
|
containerNodeRect: J,
|
|
4074
4074
|
draggingNodeRect: _t,
|
|
4075
4075
|
over: ve.current.over,
|
|
@@ -4077,13 +4077,13 @@ const gd = /* @__PURE__ */ Og(function(t) {
|
|
|
4077
4077
|
scrollableAncestors: Ue,
|
|
4078
4078
|
scrollableAncestorRects: Wt,
|
|
4079
4079
|
windowRect: ur
|
|
4080
|
-
}), Cn = xe ? Cr(xe, E) : null, Rn = O_(Ue), Wo = hl(Rn), Go = hl(Rn, [
|
|
4080
|
+
}), Cn = xe ? Cr(xe, E) : null, Rn = O_(Ue), Wo = hl(Rn), Go = hl(Rn, [H]), Nt = Cr(cr, Wo), Ot = _t ? e_(_t, cr) : null, Gt = D && Ot ? d({
|
|
4081
4081
|
active: D,
|
|
4082
4082
|
collisionRect: Ot,
|
|
4083
4083
|
droppableRects: Pe,
|
|
4084
4084
|
droppableContainers: Ze,
|
|
4085
4085
|
pointerCoordinates: Cn
|
|
4086
|
-
}) : null, En = Kc(Gt, "id"), [ue, Xe] = T(null), Zt =
|
|
4086
|
+
}) : null, En = Kc(Gt, "id"), [ue, Xe] = T(null), Zt = Hr ? cr : Cr(cr, Go), Zo = Jh(Zt, (n = ue?.rect) != null ? n : null, H), dr = j(null), Wr = ae(
|
|
4087
4087
|
(ee, ce) => {
|
|
4088
4088
|
let {
|
|
4089
4089
|
sensor: me,
|
|
@@ -4107,7 +4107,7 @@ const gd = /* @__PURE__ */ Og(function(t) {
|
|
|
4107
4107
|
return;
|
|
4108
4108
|
const {
|
|
4109
4109
|
onDragAbort: Be
|
|
4110
|
-
} =
|
|
4110
|
+
} = q.current, Ke = {
|
|
4111
4111
|
id: oe
|
|
4112
4112
|
};
|
|
4113
4113
|
Be?.(Ke), y({
|
|
@@ -4120,7 +4120,7 @@ const gd = /* @__PURE__ */ Og(function(t) {
|
|
|
4120
4120
|
return;
|
|
4121
4121
|
const {
|
|
4122
4122
|
onDragPending: Xt
|
|
4123
|
-
} =
|
|
4123
|
+
} = q.current, we = {
|
|
4124
4124
|
id: oe,
|
|
4125
4125
|
constraint: Ye,
|
|
4126
4126
|
initialCoordinates: Be,
|
|
@@ -4140,7 +4140,7 @@ const gd = /* @__PURE__ */ Og(function(t) {
|
|
|
4140
4140
|
return;
|
|
4141
4141
|
const {
|
|
4142
4142
|
onDragStart: Ke
|
|
4143
|
-
} =
|
|
4143
|
+
} = q.current, Ut = {
|
|
4144
4144
|
activatorEvent: be,
|
|
4145
4145
|
active: {
|
|
4146
4146
|
id: Ye,
|
|
@@ -4181,7 +4181,7 @@ const gd = /* @__PURE__ */ Og(function(t) {
|
|
|
4181
4181
|
if (Be && Xt) {
|
|
4182
4182
|
const {
|
|
4183
4183
|
cancelDrop: Yt
|
|
4184
|
-
} =
|
|
4184
|
+
} = q.current;
|
|
4185
4185
|
we = {
|
|
4186
4186
|
activatorEvent: be,
|
|
4187
4187
|
active: Be,
|
|
@@ -4196,7 +4196,7 @@ const gd = /* @__PURE__ */ Og(function(t) {
|
|
|
4196
4196
|
}), S(Tt.Uninitialized), Xe(null), U(null), I(null), dr.current = null;
|
|
4197
4197
|
const Yt = oe === ie.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
4198
4198
|
if (we) {
|
|
4199
|
-
const Zr =
|
|
4199
|
+
const Zr = q.current[Yt];
|
|
4200
4200
|
Zr?.(we), y({
|
|
4201
4201
|
type: Yt,
|
|
4202
4202
|
event: we
|
|
@@ -4225,12 +4225,12 @@ const gd = /* @__PURE__ */ Og(function(t) {
|
|
|
4225
4225
|
}, k.current = st, Wr(me, ce));
|
|
4226
4226
|
}, [R, Wr]), Gr = $_(c, Nn);
|
|
4227
4227
|
P_(c), tt(() => {
|
|
4228
|
-
|
|
4229
|
-
}, [
|
|
4228
|
+
H && $ === Tt.Initializing && S(Tt.Initialized);
|
|
4229
|
+
}, [H, $]), B(
|
|
4230
4230
|
() => {
|
|
4231
4231
|
const {
|
|
4232
4232
|
onDragMove: ee
|
|
4233
|
-
} =
|
|
4233
|
+
} = q.current, {
|
|
4234
4234
|
active: ce,
|
|
4235
4235
|
activatorEvent: me,
|
|
4236
4236
|
collisions: st,
|
|
@@ -4270,7 +4270,7 @@ const gd = /* @__PURE__ */ Og(function(t) {
|
|
|
4270
4270
|
return;
|
|
4271
4271
|
const {
|
|
4272
4272
|
onDragOver: be
|
|
4273
|
-
} =
|
|
4273
|
+
} = q.current, W = st.get(En), mt = W && W.rect.current ? {
|
|
4274
4274
|
id: W.id,
|
|
4275
4275
|
rect: W.rect.current,
|
|
4276
4276
|
data: W.data,
|
|
@@ -4324,7 +4324,7 @@ const gd = /* @__PURE__ */ Og(function(t) {
|
|
|
4324
4324
|
const On = X(() => ({
|
|
4325
4325
|
active: D,
|
|
4326
4326
|
activeNode: ge,
|
|
4327
|
-
activeNodeRect:
|
|
4327
|
+
activeNodeRect: H,
|
|
4328
4328
|
activatorEvent: F,
|
|
4329
4329
|
collisions: Gt,
|
|
4330
4330
|
containerNodeRect: J,
|
|
@@ -4333,25 +4333,25 @@ const gd = /* @__PURE__ */ Og(function(t) {
|
|
|
4333
4333
|
droppableContainers: O,
|
|
4334
4334
|
droppableRects: Pe,
|
|
4335
4335
|
over: ue,
|
|
4336
|
-
measureDroppableContainers:
|
|
4336
|
+
measureDroppableContainers: je,
|
|
4337
4337
|
scrollableAncestors: Ue,
|
|
4338
4338
|
scrollableAncestorRects: Wt,
|
|
4339
4339
|
measuringConfiguration: ne,
|
|
4340
4340
|
measuringScheduled: at,
|
|
4341
4341
|
windowRect: ur
|
|
4342
|
-
}), [D, ge,
|
|
4342
|
+
}), [D, ge, H, F, Gt, J, Ve, R, O, Pe, ue, je, Ue, Wt, ne, at, ur]), lt = X(() => ({
|
|
4343
4343
|
activatorEvent: F,
|
|
4344
4344
|
activators: Gr,
|
|
4345
4345
|
active: D,
|
|
4346
|
-
activeNodeRect:
|
|
4346
|
+
activeNodeRect: H,
|
|
4347
4347
|
ariaDescribedById: {
|
|
4348
4348
|
draggable: le
|
|
4349
4349
|
},
|
|
4350
4350
|
dispatch: b,
|
|
4351
4351
|
draggableNodes: R,
|
|
4352
4352
|
over: ue,
|
|
4353
|
-
measureDroppableContainers:
|
|
4354
|
-
}), [F, Gr, D,
|
|
4353
|
+
measureDroppableContainers: je
|
|
4354
|
+
}), [F, Gr, D, H, b, le, R, ue, je]);
|
|
4355
4355
|
return Z.createElement(Zc.Provider, {
|
|
4356
4356
|
value: w
|
|
4357
4357
|
}, Z.createElement($n.Provider, {
|
|
@@ -4360,7 +4360,7 @@ const gd = /* @__PURE__ */ Og(function(t) {
|
|
|
4360
4360
|
value: On
|
|
4361
4361
|
}, Z.createElement(Oo.Provider, {
|
|
4362
4362
|
value: Zo
|
|
4363
|
-
}, u)), Z.createElement(
|
|
4363
|
+
}, u)), Z.createElement(z_, {
|
|
4364
4364
|
disabled: l?.restoreFocus === !1
|
|
4365
4365
|
})), Z.createElement(Gh, {
|
|
4366
4366
|
...l,
|
|
@@ -4375,15 +4375,15 @@ const gd = /* @__PURE__ */ Og(function(t) {
|
|
|
4375
4375
|
enabled: me
|
|
4376
4376
|
};
|
|
4377
4377
|
}
|
|
4378
|
-
}), B_ = /* @__PURE__ */ kr(null), vl = "button",
|
|
4379
|
-
function
|
|
4378
|
+
}), B_ = /* @__PURE__ */ kr(null), vl = "button", H_ = "Draggable";
|
|
4379
|
+
function q_(e) {
|
|
4380
4380
|
let {
|
|
4381
4381
|
id: t,
|
|
4382
4382
|
data: r,
|
|
4383
4383
|
disabled: o = !1,
|
|
4384
4384
|
attributes: i
|
|
4385
4385
|
} = e;
|
|
4386
|
-
const n = yn(
|
|
4386
|
+
const n = yn(H_), {
|
|
4387
4387
|
activators: a,
|
|
4388
4388
|
activatorEvent: l,
|
|
4389
4389
|
active: s,
|
|
@@ -4450,9 +4450,9 @@ function Z_(e) {
|
|
|
4450
4450
|
dispatch: l,
|
|
4451
4451
|
over: s,
|
|
4452
4452
|
measureDroppableContainers: u
|
|
4453
|
-
} = Ct($n), c =
|
|
4453
|
+
} = Ct($n), c = j({
|
|
4454
4454
|
disabled: r
|
|
4455
|
-
}), d =
|
|
4455
|
+
}), d = j(!1), h = j(null), f = j(null), {
|
|
4456
4456
|
disabled: v,
|
|
4457
4457
|
updateMeasurementsFor: _,
|
|
4458
4458
|
timeout: m
|
|
@@ -4587,7 +4587,7 @@ const K_ = {
|
|
|
4587
4587
|
style: h,
|
|
4588
4588
|
ref: t
|
|
4589
4589
|
}, n);
|
|
4590
|
-
}),
|
|
4590
|
+
}), e1 = (e) => (t) => {
|
|
4591
4591
|
let {
|
|
4592
4592
|
active: r,
|
|
4593
4593
|
dragOverlay: o
|
|
@@ -4607,7 +4607,7 @@ const K_ = {
|
|
|
4607
4607
|
r.node.style.setProperty(s, u);
|
|
4608
4608
|
a != null && a.active && r.node.classList.remove(a.active);
|
|
4609
4609
|
};
|
|
4610
|
-
},
|
|
4610
|
+
}, t1 = (e) => {
|
|
4611
4611
|
let {
|
|
4612
4612
|
transform: {
|
|
4613
4613
|
initial: t,
|
|
@@ -4619,11 +4619,11 @@ const K_ = {
|
|
|
4619
4619
|
}, {
|
|
4620
4620
|
transform: tr.Transform.toString(r)
|
|
4621
4621
|
}];
|
|
4622
|
-
},
|
|
4622
|
+
}, r1 = {
|
|
4623
4623
|
duration: 250,
|
|
4624
4624
|
easing: "ease",
|
|
4625
|
-
keyframes:
|
|
4626
|
-
sideEffects: /* @__PURE__ */
|
|
4625
|
+
keyframes: t1,
|
|
4626
|
+
sideEffects: /* @__PURE__ */ e1({
|
|
4627
4627
|
styles: {
|
|
4628
4628
|
active: {
|
|
4629
4629
|
opacity: "0"
|
|
@@ -4631,7 +4631,7 @@ const K_ = {
|
|
|
4631
4631
|
}
|
|
4632
4632
|
})
|
|
4633
4633
|
};
|
|
4634
|
-
function
|
|
4634
|
+
function n1(e) {
|
|
4635
4635
|
let {
|
|
4636
4636
|
config: t,
|
|
4637
4637
|
draggableNodes: r,
|
|
@@ -4655,7 +4655,7 @@ function nv(e) {
|
|
|
4655
4655
|
} = $e(a).getComputedStyle(a), d = ed(c);
|
|
4656
4656
|
if (!d)
|
|
4657
4657
|
return;
|
|
4658
|
-
const h = typeof t == "function" ? t :
|
|
4658
|
+
const h = typeof t == "function" ? t : o1(t);
|
|
4659
4659
|
return ld(s, i.draggable.measure), h({
|
|
4660
4660
|
active: {
|
|
4661
4661
|
id: n,
|
|
@@ -4674,14 +4674,14 @@ function nv(e) {
|
|
|
4674
4674
|
});
|
|
4675
4675
|
});
|
|
4676
4676
|
}
|
|
4677
|
-
function
|
|
4677
|
+
function o1(e) {
|
|
4678
4678
|
const {
|
|
4679
4679
|
duration: t,
|
|
4680
4680
|
easing: r,
|
|
4681
4681
|
sideEffects: o,
|
|
4682
4682
|
keyframes: i
|
|
4683
4683
|
} = {
|
|
4684
|
-
...
|
|
4684
|
+
...r1,
|
|
4685
4685
|
...e
|
|
4686
4686
|
};
|
|
4687
4687
|
return (n) => {
|
|
@@ -4731,7 +4731,7 @@ function ov(e) {
|
|
|
4731
4731
|
};
|
|
4732
4732
|
}
|
|
4733
4733
|
let ml = 0;
|
|
4734
|
-
function
|
|
4734
|
+
function i1(e) {
|
|
4735
4735
|
return X(() => {
|
|
4736
4736
|
if (e != null)
|
|
4737
4737
|
return ml++, ml;
|
|
@@ -4762,7 +4762,7 @@ const hd = /* @__PURE__ */ Z.memo((e) => {
|
|
|
4762
4762
|
scrollableAncestors: w,
|
|
4763
4763
|
scrollableAncestorRects: $,
|
|
4764
4764
|
windowRect: S
|
|
4765
|
-
} = ba(), C = Ct(Oo), x =
|
|
4765
|
+
} = ba(), C = Ct(Oo), x = i1(d?.id), R = fd(a, {
|
|
4766
4766
|
activatorEvent: c,
|
|
4767
4767
|
active: d,
|
|
4768
4768
|
activeNodeRect: h,
|
|
@@ -4774,7 +4774,7 @@ const hd = /* @__PURE__ */ Z.memo((e) => {
|
|
|
4774
4774
|
scrollableAncestorRects: $,
|
|
4775
4775
|
transform: C,
|
|
4776
4776
|
windowRect: S
|
|
4777
|
-
}), E = ma(h), O =
|
|
4777
|
+
}), E = ma(h), O = n1({
|
|
4778
4778
|
config: o,
|
|
4779
4779
|
draggableNodes: v,
|
|
4780
4780
|
droppableContainers: _,
|
|
@@ -4798,7 +4798,7 @@ const hd = /* @__PURE__ */ Z.memo((e) => {
|
|
|
4798
4798
|
},
|
|
4799
4799
|
transform: R
|
|
4800
4800
|
}, r) : null));
|
|
4801
|
-
}),
|
|
4801
|
+
}), a1 = (e) => {
|
|
4802
4802
|
let {
|
|
4803
4803
|
transform: t
|
|
4804
4804
|
} = e;
|
|
@@ -4807,20 +4807,20 @@ const hd = /* @__PURE__ */ Z.memo((e) => {
|
|
|
4807
4807
|
y: 0
|
|
4808
4808
|
};
|
|
4809
4809
|
};
|
|
4810
|
-
function
|
|
4810
|
+
function l1(e, t, r) {
|
|
4811
4811
|
const o = {
|
|
4812
4812
|
...e
|
|
4813
4813
|
};
|
|
4814
4814
|
return t.top + e.y <= r.top ? o.y = r.top - t.top : t.bottom + e.y >= r.top + r.height && (o.y = r.top + r.height - t.bottom), t.left + e.x <= r.left ? o.x = r.left - t.left : t.right + e.x >= r.left + r.width && (o.x = r.left + r.width - t.right), o;
|
|
4815
4815
|
}
|
|
4816
|
-
const
|
|
4816
|
+
const s1 = (e) => {
|
|
4817
4817
|
let {
|
|
4818
4818
|
containerNodeRect: t,
|
|
4819
4819
|
draggingNodeRect: r,
|
|
4820
4820
|
transform: o
|
|
4821
4821
|
} = e;
|
|
4822
|
-
return !r || !t ? o :
|
|
4823
|
-
},
|
|
4822
|
+
return !r || !t ? o : l1(o, r, t);
|
|
4823
|
+
}, u1 = (e) => {
|
|
4824
4824
|
let {
|
|
4825
4825
|
transform: t
|
|
4826
4826
|
} = e;
|
|
@@ -4899,15 +4899,15 @@ const sv = (e) => {
|
|
|
4899
4899
|
"purpur-table__drag-overlay": "_purpur-table__drag-overlay_1qu8v_417",
|
|
4900
4900
|
"purpur-table__drag-overlay--primary": "_purpur-table__drag-overlay--primary_1qu8v_423",
|
|
4901
4901
|
"purpur-table__drag-overlay--secondary": "_purpur-table__drag-overlay--secondary_1qu8v_440"
|
|
4902
|
-
},
|
|
4903
|
-
const o =
|
|
4902
|
+
}, c1 = K.bind(te), d1 = "purpur-table-body", md = ({ children: e, className: t, ...r }) => {
|
|
4903
|
+
const o = c1(t, d1);
|
|
4904
4904
|
return /* @__PURE__ */ g("tbody", { className: o, ...r, children: e });
|
|
4905
4905
|
};
|
|
4906
4906
|
function wa(e, t, r) {
|
|
4907
4907
|
const o = e.slice();
|
|
4908
4908
|
return o.splice(r < 0 ? o.length + r : r, 0, o.splice(t, 1)[0]), o;
|
|
4909
4909
|
}
|
|
4910
|
-
function
|
|
4910
|
+
function p1(e, t) {
|
|
4911
4911
|
return e.reduce((r, o, i) => {
|
|
4912
4912
|
const n = t.get(o);
|
|
4913
4913
|
return n && (r[i] = n), r;
|
|
@@ -4916,7 +4916,7 @@ function pv(e, t) {
|
|
|
4916
4916
|
function Ln(e) {
|
|
4917
4917
|
return e !== null && e >= 0;
|
|
4918
4918
|
}
|
|
4919
|
-
function
|
|
4919
|
+
function f1(e, t) {
|
|
4920
4920
|
if (e === t)
|
|
4921
4921
|
return !0;
|
|
4922
4922
|
if (e.length !== t.length)
|
|
@@ -4926,7 +4926,7 @@ function fv(e, t) {
|
|
|
4926
4926
|
return !1;
|
|
4927
4927
|
return !0;
|
|
4928
4928
|
}
|
|
4929
|
-
function
|
|
4929
|
+
function g1(e) {
|
|
4930
4930
|
return typeof e == "boolean" ? {
|
|
4931
4931
|
draggable: e,
|
|
4932
4932
|
droppable: e
|
|
@@ -4935,7 +4935,7 @@ function gv(e) {
|
|
|
4935
4935
|
const Tn = {
|
|
4936
4936
|
scaleX: 1,
|
|
4937
4937
|
scaleY: 1
|
|
4938
|
-
},
|
|
4938
|
+
}, h1 = (e) => {
|
|
4939
4939
|
var t;
|
|
4940
4940
|
let {
|
|
4941
4941
|
rects: r,
|
|
@@ -4947,7 +4947,7 @@ const Tn = {
|
|
|
4947
4947
|
const l = (t = r[i]) != null ? t : o;
|
|
4948
4948
|
if (!l)
|
|
4949
4949
|
return null;
|
|
4950
|
-
const s =
|
|
4950
|
+
const s = _1(r, a, i);
|
|
4951
4951
|
if (a === i) {
|
|
4952
4952
|
const u = r[n];
|
|
4953
4953
|
return u ? {
|
|
@@ -4970,7 +4970,7 @@ const Tn = {
|
|
|
4970
4970
|
...Tn
|
|
4971
4971
|
};
|
|
4972
4972
|
};
|
|
4973
|
-
function
|
|
4973
|
+
function _1(e, t, r) {
|
|
4974
4974
|
const o = e[t], i = e[t - 1], n = e[t + 1];
|
|
4975
4975
|
return !o || !i && !n ? 0 : r < t ? i ? o.left - (i.left + i.width) : n.left - (o.left + o.width) : n ? n.left - (o.left + o.width) : o.left - (i.left + i.width);
|
|
4976
4976
|
}
|
|
@@ -4991,7 +4991,7 @@ const bd = (e) => {
|
|
|
4991
4991
|
}, Fn = {
|
|
4992
4992
|
scaleX: 1,
|
|
4993
4993
|
scaleY: 1
|
|
4994
|
-
},
|
|
4994
|
+
}, v1 = (e) => {
|
|
4995
4995
|
var t;
|
|
4996
4996
|
let {
|
|
4997
4997
|
activeIndex: r,
|
|
@@ -5011,7 +5011,7 @@ const bd = (e) => {
|
|
|
5011
5011
|
...Fn
|
|
5012
5012
|
} : null;
|
|
5013
5013
|
}
|
|
5014
|
-
const s =
|
|
5014
|
+
const s = m1(n, i, r);
|
|
5015
5015
|
return i > r && i <= a ? {
|
|
5016
5016
|
x: 0,
|
|
5017
5017
|
y: -l.height - s,
|
|
@@ -5026,7 +5026,7 @@ const bd = (e) => {
|
|
|
5026
5026
|
...Fn
|
|
5027
5027
|
};
|
|
5028
5028
|
};
|
|
5029
|
-
function
|
|
5029
|
+
function m1(e, t, r) {
|
|
5030
5030
|
const o = e[t], i = e[t - 1], n = e[t + 1];
|
|
5031
5031
|
return o ? r < t ? i ? o.top - (i.top + i.height) : n ? n.top - (o.top + o.height) : 0 : n ? n.top - (o.top + o.height) : i ? o.top - (i.top + i.height) : 0 : 0;
|
|
5032
5032
|
}
|
|
@@ -5058,7 +5058,7 @@ function $d(e) {
|
|
|
5058
5058
|
droppableRects: s,
|
|
5059
5059
|
over: u,
|
|
5060
5060
|
measureDroppableContainers: c
|
|
5061
|
-
} = ba(), d = yn(wd, r), h = l.rect !== null, f = X(() => o.map((C) => typeof C == "object" && "id" in C ? C.id : C), [o]), v = a != null, _ = a ? f.indexOf(a.id) : -1, m = u ? f.indexOf(u.id) : -1, b =
|
|
5061
|
+
} = ba(), d = yn(wd, r), h = l.rect !== null, f = X(() => o.map((C) => typeof C == "object" && "id" in C ? C.id : C), [o]), v = a != null, _ = a ? f.indexOf(a.id) : -1, m = u ? f.indexOf(u.id) : -1, b = j(f), y = !f1(f, b.current), w = m !== -1 && _ === -1 || y, $ = g1(n);
|
|
5062
5062
|
tt(() => {
|
|
5063
5063
|
y && v && c(f);
|
|
5064
5064
|
}, [y, f, v, c]), B(() => {
|
|
@@ -5073,7 +5073,7 @@ function $d(e) {
|
|
|
5073
5073
|
items: f,
|
|
5074
5074
|
overIndex: m,
|
|
5075
5075
|
useDragOverlay: h,
|
|
5076
|
-
sortedRects:
|
|
5076
|
+
sortedRects: p1(f, s),
|
|
5077
5077
|
strategy: i
|
|
5078
5078
|
}),
|
|
5079
5079
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -5083,7 +5083,7 @@ function $d(e) {
|
|
|
5083
5083
|
value: S
|
|
5084
5084
|
}, t);
|
|
5085
5085
|
}
|
|
5086
|
-
const
|
|
5086
|
+
const b1 = (e) => {
|
|
5087
5087
|
let {
|
|
5088
5088
|
id: t,
|
|
5089
5089
|
items: r,
|
|
@@ -5091,7 +5091,7 @@ const bv = (e) => {
|
|
|
5091
5091
|
overIndex: i
|
|
5092
5092
|
} = e;
|
|
5093
5093
|
return wa(r, o, i).indexOf(t);
|
|
5094
|
-
},
|
|
5094
|
+
}, w1 = (e) => {
|
|
5095
5095
|
let {
|
|
5096
5096
|
containerId: t,
|
|
5097
5097
|
isSorting: r,
|
|
@@ -5104,24 +5104,24 @@ const bv = (e) => {
|
|
|
5104
5104
|
transition: u
|
|
5105
5105
|
} = e;
|
|
5106
5106
|
return !u || !o || l !== n && i === a ? !1 : r ? !0 : a !== i && t === s;
|
|
5107
|
-
},
|
|
5107
|
+
}, y1 = {
|
|
5108
5108
|
duration: 200,
|
|
5109
5109
|
easing: "ease"
|
|
5110
|
-
}, xd = "transform", $
|
|
5110
|
+
}, xd = "transform", $1 = /* @__PURE__ */ tr.Transition.toString({
|
|
5111
5111
|
property: xd,
|
|
5112
5112
|
duration: 0,
|
|
5113
5113
|
easing: "linear"
|
|
5114
|
-
}),
|
|
5114
|
+
}), x1 = {
|
|
5115
5115
|
roleDescription: "sortable"
|
|
5116
5116
|
};
|
|
5117
|
-
function
|
|
5117
|
+
function S1(e) {
|
|
5118
5118
|
let {
|
|
5119
5119
|
disabled: t,
|
|
5120
5120
|
index: r,
|
|
5121
5121
|
node: o,
|
|
5122
5122
|
rect: i
|
|
5123
5123
|
} = e;
|
|
5124
|
-
const [n, a] = T(null), l =
|
|
5124
|
+
const [n, a] = T(null), l = j(r);
|
|
5125
5125
|
return tt(() => {
|
|
5126
5126
|
if (!t && r !== l.current && o.current) {
|
|
5127
5127
|
const s = i.current;
|
|
@@ -5144,15 +5144,15 @@ function Sv(e) {
|
|
|
5144
5144
|
}
|
|
5145
5145
|
function Sd(e) {
|
|
5146
5146
|
let {
|
|
5147
|
-
animateLayoutChanges: t =
|
|
5147
|
+
animateLayoutChanges: t = w1,
|
|
5148
5148
|
attributes: r,
|
|
5149
5149
|
disabled: o,
|
|
5150
5150
|
data: i,
|
|
5151
|
-
getNewIndex: n =
|
|
5151
|
+
getNewIndex: n = b1,
|
|
5152
5152
|
id: a,
|
|
5153
5153
|
strategy: l,
|
|
5154
5154
|
resizeObserverConfig: s,
|
|
5155
|
-
transition: u =
|
|
5155
|
+
transition: u = y1
|
|
5156
5156
|
} = e;
|
|
5157
5157
|
const {
|
|
5158
5158
|
items: c,
|
|
@@ -5164,7 +5164,7 @@ function Sd(e) {
|
|
|
5164
5164
|
overIndex: m,
|
|
5165
5165
|
useDragOverlay: b,
|
|
5166
5166
|
strategy: y
|
|
5167
|
-
} = Ct(yd), w =
|
|
5167
|
+
} = Ct(yd), w = C1(o, f), $ = c.indexOf(a), S = X(() => ({
|
|
5168
5168
|
sortable: {
|
|
5169
5169
|
containerId: d,
|
|
5170
5170
|
index: $,
|
|
@@ -5193,17 +5193,17 @@ function Sd(e) {
|
|
|
5193
5193
|
listeners: U,
|
|
5194
5194
|
isDragging: F,
|
|
5195
5195
|
over: I,
|
|
5196
|
-
setActivatorNodeRef:
|
|
5196
|
+
setActivatorNodeRef: q,
|
|
5197
5197
|
transform: le
|
|
5198
|
-
} =
|
|
5198
|
+
} = q_({
|
|
5199
5199
|
id: a,
|
|
5200
5200
|
data: S,
|
|
5201
5201
|
attributes: {
|
|
5202
|
-
...
|
|
5202
|
+
...x1,
|
|
5203
5203
|
...r
|
|
5204
5204
|
},
|
|
5205
5205
|
disabled: w.draggable
|
|
5206
|
-
}), Ze = Mh(O, G), ne = !!P, Pe = ne && !v && Ln(h) && Ln(m),
|
|
5206
|
+
}), Ze = Mh(O, G), ne = !!P, Pe = ne && !v && Ln(h) && Ln(m), je = !b && F, at = je && Pe ? le : null, xe = Pe ? at ?? (l ?? y)({
|
|
5207
5207
|
rects: _,
|
|
5208
5208
|
activeNodeRect: D,
|
|
5209
5209
|
activeIndex: h,
|
|
@@ -5214,12 +5214,12 @@ function Sd(e) {
|
|
|
5214
5214
|
items: c,
|
|
5215
5215
|
activeIndex: h,
|
|
5216
5216
|
overIndex: m
|
|
5217
|
-
}) : $, se = P?.id,
|
|
5217
|
+
}) : $, se = P?.id, H = j({
|
|
5218
5218
|
activeId: se,
|
|
5219
5219
|
items: c,
|
|
5220
5220
|
newIndex: De,
|
|
5221
5221
|
containerId: d
|
|
5222
|
-
}), J = c !==
|
|
5222
|
+
}), J = c !== H.current.items, ve = t({
|
|
5223
5223
|
active: P,
|
|
5224
5224
|
containerId: d,
|
|
5225
5225
|
isDragging: F,
|
|
@@ -5227,28 +5227,28 @@ function Sd(e) {
|
|
|
5227
5227
|
id: a,
|
|
5228
5228
|
index: $,
|
|
5229
5229
|
items: c,
|
|
5230
|
-
newIndex:
|
|
5231
|
-
previousItems:
|
|
5232
|
-
previousContainerId:
|
|
5230
|
+
newIndex: H.current.newIndex,
|
|
5231
|
+
previousItems: H.current.items,
|
|
5232
|
+
previousContainerId: H.current.containerId,
|
|
5233
5233
|
transition: u,
|
|
5234
|
-
wasDragging:
|
|
5235
|
-
}), Se =
|
|
5234
|
+
wasDragging: H.current.activeId != null
|
|
5235
|
+
}), Se = S1({
|
|
5236
5236
|
disabled: !ve,
|
|
5237
5237
|
index: $,
|
|
5238
5238
|
node: R,
|
|
5239
5239
|
rect: x
|
|
5240
5240
|
});
|
|
5241
5241
|
return B(() => {
|
|
5242
|
-
ne &&
|
|
5242
|
+
ne && H.current.newIndex !== De && (H.current.newIndex = De), d !== H.current.containerId && (H.current.containerId = d), c !== H.current.items && (H.current.items = c);
|
|
5243
5243
|
}, [ne, De, d, c]), B(() => {
|
|
5244
|
-
if (se ===
|
|
5244
|
+
if (se === H.current.activeId)
|
|
5245
5245
|
return;
|
|
5246
|
-
if (se != null &&
|
|
5247
|
-
|
|
5246
|
+
if (se != null && H.current.activeId == null) {
|
|
5247
|
+
H.current.activeId = se;
|
|
5248
5248
|
return;
|
|
5249
5249
|
}
|
|
5250
5250
|
const ht = setTimeout(() => {
|
|
5251
|
-
|
|
5251
|
+
H.current.activeId = se;
|
|
5252
5252
|
}, 50);
|
|
5253
5253
|
return () => clearTimeout(ht);
|
|
5254
5254
|
}, [se]), {
|
|
@@ -5268,7 +5268,7 @@ function Sd(e) {
|
|
|
5268
5268
|
overIndex: m,
|
|
5269
5269
|
over: I,
|
|
5270
5270
|
setNodeRef: Ze,
|
|
5271
|
-
setActivatorNodeRef:
|
|
5271
|
+
setActivatorNodeRef: q,
|
|
5272
5272
|
setDroppableNodeRef: O,
|
|
5273
5273
|
setDraggableNodeRef: G,
|
|
5274
5274
|
transform: Se ?? xe,
|
|
@@ -5278,17 +5278,17 @@ function Sd(e) {
|
|
|
5278
5278
|
if (
|
|
5279
5279
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
5280
5280
|
Se || // Or to prevent items jumping to back to their "new" position when items change
|
|
5281
|
-
J &&
|
|
5281
|
+
J && H.current.newIndex === $
|
|
5282
5282
|
)
|
|
5283
|
-
return $
|
|
5284
|
-
if (!(
|
|
5283
|
+
return $1;
|
|
5284
|
+
if (!(je && !So(L) || !u) && (ne || ve))
|
|
5285
5285
|
return tr.Transition.toString({
|
|
5286
5286
|
...u,
|
|
5287
5287
|
property: xd
|
|
5288
5288
|
});
|
|
5289
5289
|
}
|
|
5290
5290
|
}
|
|
5291
|
-
function
|
|
5291
|
+
function C1(e, t) {
|
|
5292
5292
|
var r, o;
|
|
5293
5293
|
return typeof e == "boolean" ? {
|
|
5294
5294
|
draggable: e,
|
|
@@ -5305,7 +5305,7 @@ function po(e) {
|
|
|
5305
5305
|
const t = e.data.current;
|
|
5306
5306
|
return !!(t && "sortable" in t && typeof t.sortable == "object" && "containerId" in t.sortable && "items" in t.sortable && "index" in t.sortable);
|
|
5307
5307
|
}
|
|
5308
|
-
const
|
|
5308
|
+
const R1 = [V.Down, V.Right, V.Up, V.Left], E1 = (e, t) => {
|
|
5309
5309
|
let {
|
|
5310
5310
|
context: {
|
|
5311
5311
|
active: r,
|
|
@@ -5316,7 +5316,7 @@ const Rv = [V.Down, V.Right, V.Up, V.Left], Ev = (e, t) => {
|
|
|
5316
5316
|
scrollableAncestors: l
|
|
5317
5317
|
}
|
|
5318
5318
|
} = t;
|
|
5319
|
-
if (
|
|
5319
|
+
if (R1.includes(e.code)) {
|
|
5320
5320
|
if (e.preventDefault(), !r || !o)
|
|
5321
5321
|
return;
|
|
5322
5322
|
const s = [];
|
|
@@ -5349,7 +5349,7 @@ const Rv = [V.Down, V.Right, V.Up, V.Left], Ev = (e, t) => {
|
|
|
5349
5349
|
if (c === a?.id && u.length > 1 && (c = u[1].id), c != null) {
|
|
5350
5350
|
const d = n.get(r.id), h = n.get(c), f = h ? i.get(h.id) : null, v = h?.node.current;
|
|
5351
5351
|
if (v && f && d && h) {
|
|
5352
|
-
const m = Co(v).some((C, x) => l[x] !== C), b = Cd(d, h), y =
|
|
5352
|
+
const m = Co(v).some((C, x) => l[x] !== C), b = Cd(d, h), y = N1(d, h), w = m || !b ? {
|
|
5353
5353
|
x: 0,
|
|
5354
5354
|
y: 0
|
|
5355
5355
|
} : {
|
|
@@ -5367,17 +5367,17 @@ const Rv = [V.Down, V.Right, V.Up, V.Left], Ev = (e, t) => {
|
|
|
5367
5367
|
function Cd(e, t) {
|
|
5368
5368
|
return !po(e) || !po(t) ? !1 : e.data.current.sortable.containerId === t.data.current.sortable.containerId;
|
|
5369
5369
|
}
|
|
5370
|
-
function
|
|
5370
|
+
function N1(e, t) {
|
|
5371
5371
|
return !po(e) || !po(t) || !Cd(e, t) ? !1 : e.data.current.sortable.index < t.data.current.sortable.index;
|
|
5372
5372
|
}
|
|
5373
|
-
const
|
|
5373
|
+
const O1 = {
|
|
5374
5374
|
LG: "lg"
|
|
5375
5375
|
};
|
|
5376
|
-
function
|
|
5376
|
+
function P1(e) {
|
|
5377
5377
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5378
5378
|
}
|
|
5379
5379
|
var bl = { exports: {} }, wl;
|
|
5380
|
-
function
|
|
5380
|
+
function D1() {
|
|
5381
5381
|
return wl || (wl = 1, (function(e) {
|
|
5382
5382
|
(function() {
|
|
5383
5383
|
var t = {}.hasOwnProperty;
|
|
@@ -5409,25 +5409,25 @@ function Dv() {
|
|
|
5409
5409
|
})();
|
|
5410
5410
|
})(bl)), bl.exports;
|
|
5411
5411
|
}
|
|
5412
|
-
var
|
|
5413
|
-
const
|
|
5412
|
+
var A1 = D1();
|
|
5413
|
+
const M1 = /* @__PURE__ */ P1(A1), k1 = "_rotate_12t9p_1", I1 = "_dash_12t9p_1", L1 = {
|
|
5414
5414
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
5415
|
-
rotate:
|
|
5415
|
+
rotate: k1,
|
|
5416
5416
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
5417
5417
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
5418
5418
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
5419
5419
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
5420
5420
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
5421
5421
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
5422
|
-
dash:
|
|
5422
|
+
dash: I1,
|
|
5423
5423
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
5424
5424
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
5425
|
-
}, yl =
|
|
5425
|
+
}, yl = M1.bind(L1), Yr = "purpur-spinner", T1 = {
|
|
5426
5426
|
SM: "sm"
|
|
5427
5427
|
}, Rd = ({
|
|
5428
5428
|
disabled: e = !1,
|
|
5429
5429
|
negative: t = !1,
|
|
5430
|
-
size: r =
|
|
5430
|
+
size: r = T1.SM,
|
|
5431
5431
|
className: o,
|
|
5432
5432
|
...i
|
|
5433
5433
|
}) => /* @__PURE__ */ g("div", { className: yl(Yr, `${Yr}--${r}`, o), ...i, children: /* @__PURE__ */ g("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ g(
|
|
@@ -5443,11 +5443,11 @@ const Mv = /* @__PURE__ */ Pv(Av), kv = "_rotate_12t9p_1", Iv = "_dash_12t9p_1",
|
|
|
5443
5443
|
}
|
|
5444
5444
|
) }) });
|
|
5445
5445
|
Rd.displayName = "Spinner";
|
|
5446
|
-
function
|
|
5446
|
+
function F1(e) {
|
|
5447
5447
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5448
5448
|
}
|
|
5449
5449
|
var $l = { exports: {} }, xl;
|
|
5450
|
-
function
|
|
5450
|
+
function z1() {
|
|
5451
5451
|
return xl || (xl = 1, (function(e) {
|
|
5452
5452
|
(function() {
|
|
5453
5453
|
var t = {}.hasOwnProperty;
|
|
@@ -5479,8 +5479,8 @@ function jv() {
|
|
|
5479
5479
|
})();
|
|
5480
5480
|
})($l)), $l.exports;
|
|
5481
5481
|
}
|
|
5482
|
-
var
|
|
5483
|
-
const
|
|
5482
|
+
var j1 = z1();
|
|
5483
|
+
const V1 = /* @__PURE__ */ F1(j1), B1 = {
|
|
5484
5484
|
"purpur-button": "_purpur-button_10jh0_1",
|
|
5485
5485
|
"purpur-button--xs": "_purpur-button--xs_10jh0_22",
|
|
5486
5486
|
"purpur-button--icon-only": "_purpur-button--icon-only_10jh0_25",
|
|
@@ -5503,7 +5503,7 @@ const Vv = /* @__PURE__ */ Fv(zv), Bv = {
|
|
|
5503
5503
|
"purpur-button--text-negative": "_purpur-button--text-negative_10jh0_185",
|
|
5504
5504
|
"purpur-button--text": "_purpur-button--text_10jh0_185",
|
|
5505
5505
|
"purpur-button__spinner": "_purpur-button__spinner_10jh0_235"
|
|
5506
|
-
}, Sl =
|
|
5506
|
+
}, Sl = V1.bind(B1), Pt = "purpur-button", _e = fe(
|
|
5507
5507
|
({
|
|
5508
5508
|
children: e,
|
|
5509
5509
|
className: t,
|
|
@@ -5549,7 +5549,7 @@ const Vv = /* @__PURE__ */ Fv(zv), Bv = {
|
|
|
5549
5549
|
n && /* @__PURE__ */ g(
|
|
5550
5550
|
Rd,
|
|
5551
5551
|
{
|
|
5552
|
-
size: s ===
|
|
5552
|
+
size: s === O1.LG ? "xs" : "xxs",
|
|
5553
5553
|
negative: a,
|
|
5554
5554
|
disabled: _,
|
|
5555
5555
|
className: Sl(`${Pt}__spinner`)
|
|
@@ -5563,11 +5563,11 @@ const Vv = /* @__PURE__ */ Fv(zv), Bv = {
|
|
|
5563
5563
|
}
|
|
5564
5564
|
);
|
|
5565
5565
|
_e.displayName = "Button";
|
|
5566
|
-
function
|
|
5566
|
+
function H1(e) {
|
|
5567
5567
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5568
5568
|
}
|
|
5569
5569
|
var Cl = { exports: {} }, Rl;
|
|
5570
|
-
function
|
|
5570
|
+
function q1() {
|
|
5571
5571
|
return Rl || (Rl = 1, (function(e) {
|
|
5572
5572
|
(function() {
|
|
5573
5573
|
var t = {}.hasOwnProperty;
|
|
@@ -5599,8 +5599,8 @@ function Hv() {
|
|
|
5599
5599
|
})();
|
|
5600
5600
|
})(Cl)), Cl.exports;
|
|
5601
5601
|
}
|
|
5602
|
-
var
|
|
5603
|
-
const
|
|
5602
|
+
var W1 = q1();
|
|
5603
|
+
const G1 = /* @__PURE__ */ H1(W1), Z1 = {
|
|
5604
5604
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
5605
5605
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
5606
5606
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -5608,33 +5608,33 @@ const Gv = /* @__PURE__ */ qv(Wv), Zv = {
|
|
|
5608
5608
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
5609
5609
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
5610
5610
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
5611
|
-
},
|
|
5611
|
+
}, U1 = G1.bind(Z1), El = "purpur-icon", X1 = "md", Y1 = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), K1 = ({ content: e = "", title: t } = {}) => {
|
|
5612
5612
|
const r = [
|
|
5613
5613
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
5614
5614
|
{ name: "fill", value: "currentColor" },
|
|
5615
5615
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
5616
5616
|
t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
5617
5617
|
], o = t ? `<title>${t}</title>` : "";
|
|
5618
|
-
return `<svg ${
|
|
5619
|
-
},
|
|
5620
|
-
const n =
|
|
5621
|
-
content:
|
|
5618
|
+
return `<svg ${Y1(r)}>${o}${e}</svg>`;
|
|
5619
|
+
}, J1 = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Ed = ({ svg: e, allyTitle: t, className: r, size: o = X1, ...i }) => {
|
|
5620
|
+
const n = K1({
|
|
5621
|
+
content: J1(e.svg),
|
|
5622
5622
|
title: t
|
|
5623
|
-
}), a =
|
|
5623
|
+
}), a = U1(El, `${El}--${o}`, r);
|
|
5624
5624
|
return /* @__PURE__ */ g("span", { className: a, dangerouslySetInnerHTML: { __html: n }, ...i });
|
|
5625
5625
|
};
|
|
5626
5626
|
Ed.displayName = "Icon";
|
|
5627
|
-
const
|
|
5627
|
+
const Q1 = {
|
|
5628
5628
|
name: "error-filled",
|
|
5629
5629
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',
|
|
5630
5630
|
keywords: ["error-filled"],
|
|
5631
5631
|
category: "status"
|
|
5632
5632
|
};
|
|
5633
|
-
function
|
|
5633
|
+
function ev(e) {
|
|
5634
5634
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5635
5635
|
}
|
|
5636
5636
|
var Nl = { exports: {} }, Ol;
|
|
5637
|
-
function
|
|
5637
|
+
function tv() {
|
|
5638
5638
|
return Ol || (Ol = 1, (function(e) {
|
|
5639
5639
|
(function() {
|
|
5640
5640
|
var t = {}.hasOwnProperty;
|
|
@@ -5666,12 +5666,12 @@ function t1() {
|
|
|
5666
5666
|
})();
|
|
5667
5667
|
})(Nl)), Nl.exports;
|
|
5668
5668
|
}
|
|
5669
|
-
var
|
|
5670
|
-
const
|
|
5669
|
+
var rv = tv();
|
|
5670
|
+
const nv = /* @__PURE__ */ ev(rv), ov = {
|
|
5671
5671
|
"purpur-field-error-text": "_purpur-field-error-text_u1cy2_1",
|
|
5672
5672
|
"purpur-field-error-text--negative": "_purpur-field-error-text--negative_u1cy2_11",
|
|
5673
5673
|
"purpur-field-error-text__icon": "_purpur-field-error-text__icon_u1cy2_14"
|
|
5674
|
-
}, Pl =
|
|
5674
|
+
}, Pl = nv.bind(ov), si = "purpur-field-error-text", iv = ({
|
|
5675
5675
|
children: e,
|
|
5676
5676
|
className: t,
|
|
5677
5677
|
negative: r = !1,
|
|
@@ -5687,16 +5687,16 @@ const n1 = /* @__PURE__ */ e1(r1), o1 = {
|
|
|
5687
5687
|
"aria-relevant": o,
|
|
5688
5688
|
...i,
|
|
5689
5689
|
children: [
|
|
5690
|
-
/* @__PURE__ */ g(Ed, { svg:
|
|
5690
|
+
/* @__PURE__ */ g(Ed, { svg: Q1, size: "xs", className: Pl(`${si}__icon`) }),
|
|
5691
5691
|
e
|
|
5692
5692
|
]
|
|
5693
5693
|
}
|
|
5694
5694
|
);
|
|
5695
|
-
function
|
|
5695
|
+
function av(e) {
|
|
5696
5696
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5697
5697
|
}
|
|
5698
5698
|
var Dl = { exports: {} }, Al;
|
|
5699
|
-
function
|
|
5699
|
+
function lv() {
|
|
5700
5700
|
return Al || (Al = 1, (function(e) {
|
|
5701
5701
|
(function() {
|
|
5702
5702
|
var t = {}.hasOwnProperty;
|
|
@@ -5728,12 +5728,12 @@ function l1() {
|
|
|
5728
5728
|
})();
|
|
5729
5729
|
})(Dl)), Dl.exports;
|
|
5730
5730
|
}
|
|
5731
|
-
var
|
|
5732
|
-
const
|
|
5731
|
+
var sv = lv();
|
|
5732
|
+
const uv = /* @__PURE__ */ av(sv), cv = {
|
|
5733
5733
|
"purpur-field-helper-text": "_purpur-field-helper-text_1ociq_1",
|
|
5734
5734
|
"purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_1ociq_9",
|
|
5735
5735
|
"purpur-field-helper-text--negative": "_purpur-field-helper-text--negative_1ociq_12"
|
|
5736
|
-
},
|
|
5736
|
+
}, dv = uv.bind(cv), ui = "purpur-field-helper-text", pv = ({
|
|
5737
5737
|
children: e,
|
|
5738
5738
|
className: t,
|
|
5739
5739
|
disabled: r,
|
|
@@ -5741,17 +5741,17 @@ const u1 = /* @__PURE__ */ a1(s1), c1 = {
|
|
|
5741
5741
|
negative: i,
|
|
5742
5742
|
...n
|
|
5743
5743
|
}) => {
|
|
5744
|
-
const a =
|
|
5744
|
+
const a = dv(t, ui, {
|
|
5745
5745
|
[`${ui}--disabled`]: r,
|
|
5746
5746
|
[`${ui}--negative`]: i
|
|
5747
5747
|
});
|
|
5748
5748
|
return /* @__PURE__ */ g("span", { id: o, className: a, ...n, children: e });
|
|
5749
5749
|
};
|
|
5750
|
-
function
|
|
5750
|
+
function fv(e) {
|
|
5751
5751
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5752
5752
|
}
|
|
5753
5753
|
var Ml = { exports: {} }, kl;
|
|
5754
|
-
function
|
|
5754
|
+
function gv() {
|
|
5755
5755
|
return kl || (kl = 1, (function(e) {
|
|
5756
5756
|
(function() {
|
|
5757
5757
|
var t = {}.hasOwnProperty;
|
|
@@ -5783,8 +5783,8 @@ function g1() {
|
|
|
5783
5783
|
})();
|
|
5784
5784
|
})(Ml)), Ml.exports;
|
|
5785
5785
|
}
|
|
5786
|
-
var
|
|
5787
|
-
const
|
|
5786
|
+
var hv = gv();
|
|
5787
|
+
const _v = /* @__PURE__ */ fv(hv), vv = {
|
|
5788
5788
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
5789
5789
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
5790
5790
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -5792,28 +5792,28 @@ const _1 = /* @__PURE__ */ f1(h1), v1 = {
|
|
|
5792
5792
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
5793
5793
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
5794
5794
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
5795
|
-
},
|
|
5795
|
+
}, mv = _v.bind(vv), Il = "purpur-icon", bv = "md", wv = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), yv = ({ content: e = "", title: t } = {}) => {
|
|
5796
5796
|
const r = [
|
|
5797
5797
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
5798
5798
|
{ name: "fill", value: "currentColor" },
|
|
5799
5799
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
5800
5800
|
t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
5801
5801
|
], o = t ? `<title>${t}</title>` : "";
|
|
5802
|
-
return `<svg ${
|
|
5803
|
-
}, $
|
|
5804
|
-
const n =
|
|
5805
|
-
content: $
|
|
5802
|
+
return `<svg ${wv(r)}>${o}${e}</svg>`;
|
|
5803
|
+
}, $v = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Ui = ({ svg: e, allyTitle: t, className: r, size: o = bv, ...i }) => {
|
|
5804
|
+
const n = yv({
|
|
5805
|
+
content: $v(e.svg),
|
|
5806
5806
|
title: t
|
|
5807
|
-
}), a =
|
|
5807
|
+
}), a = mv(Il, `${Il}--${o}`, r);
|
|
5808
5808
|
return /* @__PURE__ */ g("span", { className: a, dangerouslySetInnerHTML: { __html: n }, ...i });
|
|
5809
5809
|
};
|
|
5810
5810
|
Ui.displayName = "Icon";
|
|
5811
|
-
const
|
|
5811
|
+
const xv = {
|
|
5812
5812
|
name: "checkmark-bold",
|
|
5813
5813
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.243 4.176a2 2 0 0 1 .324 2.81l-10.45 13.176a2.092 2.092 0 0 1-3.118.18l-5.413-5.413A2 2 0 1 1 5.414 12.1l3.9 3.9 9.118-11.5a2 2 0 0 1 2.81-.324Z" clip-rule="evenodd"/></svg>',
|
|
5814
5814
|
keywords: ["checkmark-bold"],
|
|
5815
5815
|
category: "utility"
|
|
5816
|
-
},
|
|
5816
|
+
}, Sv = {
|
|
5817
5817
|
name: "minus-bold",
|
|
5818
5818
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3 12c0-1.105.711-2 1.588-2h14.824c.877 0 1.588.895 1.588 2s-.711 2-1.588 2H4.588C3.711 14 3 13.105 3 12Z" clip-rule="evenodd"/></svg>',
|
|
5819
5819
|
keywords: ["minus-bold"],
|
|
@@ -5824,7 +5824,7 @@ function Ll(e, t) {
|
|
|
5824
5824
|
return e(t);
|
|
5825
5825
|
e != null && (e.current = t);
|
|
5826
5826
|
}
|
|
5827
|
-
function
|
|
5827
|
+
function Cv(...e) {
|
|
5828
5828
|
return (t) => {
|
|
5829
5829
|
let r = !1;
|
|
5830
5830
|
const o = e.map((i) => {
|
|
@@ -5841,9 +5841,9 @@ function C1(...e) {
|
|
|
5841
5841
|
};
|
|
5842
5842
|
}
|
|
5843
5843
|
// @__NO_SIDE_EFFECTS__
|
|
5844
|
-
function
|
|
5845
|
-
const t = /* @__PURE__ */
|
|
5846
|
-
const { children: n, ...a } = o, l = p.Children.toArray(n), s = l.find(
|
|
5844
|
+
function Rv(e) {
|
|
5845
|
+
const t = /* @__PURE__ */ Ev(e), r = p.forwardRef((o, i) => {
|
|
5846
|
+
const { children: n, ...a } = o, l = p.Children.toArray(n), s = l.find(Ov);
|
|
5847
5847
|
if (s) {
|
|
5848
5848
|
const u = s.props.children, c = l.map((d) => d === s ? p.Children.count(u) > 1 ? p.Children.only(null) : p.isValidElement(u) ? u.props.children : null : d);
|
|
5849
5849
|
return /* @__PURE__ */ g(t, { ...a, ref: i, children: p.isValidElement(u) ? p.cloneElement(u, void 0, c) : null });
|
|
@@ -5853,22 +5853,22 @@ function R1(e) {
|
|
|
5853
5853
|
return r.displayName = `${e}.Slot`, r;
|
|
5854
5854
|
}
|
|
5855
5855
|
// @__NO_SIDE_EFFECTS__
|
|
5856
|
-
function
|
|
5856
|
+
function Ev(e) {
|
|
5857
5857
|
const t = p.forwardRef((r, o) => {
|
|
5858
5858
|
const { children: i, ...n } = r;
|
|
5859
5859
|
if (p.isValidElement(i)) {
|
|
5860
|
-
const a =
|
|
5861
|
-
return i.type !== p.Fragment && (l.ref = o ?
|
|
5860
|
+
const a = Dv(i), l = Pv(n, i.props);
|
|
5861
|
+
return i.type !== p.Fragment && (l.ref = o ? Cv(o, a) : a), p.cloneElement(i, l);
|
|
5862
5862
|
}
|
|
5863
5863
|
return p.Children.count(i) > 1 ? p.Children.only(null) : null;
|
|
5864
5864
|
});
|
|
5865
5865
|
return t.displayName = `${e}.SlotClone`, t;
|
|
5866
5866
|
}
|
|
5867
|
-
var
|
|
5868
|
-
function
|
|
5869
|
-
return p.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
5867
|
+
var Nv = Symbol("radix.slottable");
|
|
5868
|
+
function Ov(e) {
|
|
5869
|
+
return p.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Nv;
|
|
5870
5870
|
}
|
|
5871
|
-
function
|
|
5871
|
+
function Pv(e, t) {
|
|
5872
5872
|
const r = { ...t };
|
|
5873
5873
|
for (const o in t) {
|
|
5874
5874
|
const i = e[o], n = t[o];
|
|
@@ -5879,11 +5879,11 @@ function P1(e, t) {
|
|
|
5879
5879
|
}
|
|
5880
5880
|
return { ...e, ...r };
|
|
5881
5881
|
}
|
|
5882
|
-
function
|
|
5882
|
+
function Dv(e) {
|
|
5883
5883
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
5884
5884
|
return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
5885
5885
|
}
|
|
5886
|
-
var
|
|
5886
|
+
var Av = [
|
|
5887
5887
|
"a",
|
|
5888
5888
|
"button",
|
|
5889
5889
|
"div",
|
|
@@ -5901,14 +5901,14 @@ var A1 = [
|
|
|
5901
5901
|
"span",
|
|
5902
5902
|
"svg",
|
|
5903
5903
|
"ul"
|
|
5904
|
-
],
|
|
5905
|
-
const r = /* @__PURE__ */
|
|
5904
|
+
], Mv = Av.reduce((e, t) => {
|
|
5905
|
+
const r = /* @__PURE__ */ Rv(`Primitive.${t}`), o = p.forwardRef((i, n) => {
|
|
5906
5906
|
const { asChild: a, ...l } = i, s = a ? r : t;
|
|
5907
5907
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g(s, { ...l, ref: n });
|
|
5908
5908
|
});
|
|
5909
5909
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
5910
|
-
}, {}),
|
|
5911
|
-
|
|
5910
|
+
}, {}), kv = "Label", Nd = p.forwardRef((e, t) => /* @__PURE__ */ g(
|
|
5911
|
+
Mv.label,
|
|
5912
5912
|
{
|
|
5913
5913
|
...e,
|
|
5914
5914
|
ref: t,
|
|
@@ -5917,13 +5917,13 @@ var A1 = [
|
|
|
5917
5917
|
}
|
|
5918
5918
|
}
|
|
5919
5919
|
));
|
|
5920
|
-
Nd.displayName =
|
|
5921
|
-
var
|
|
5922
|
-
function
|
|
5920
|
+
Nd.displayName = kv;
|
|
5921
|
+
var Iv = Nd;
|
|
5922
|
+
function Lv(e) {
|
|
5923
5923
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5924
5924
|
}
|
|
5925
5925
|
var Tl = { exports: {} }, Fl;
|
|
5926
|
-
function
|
|
5926
|
+
function Tv() {
|
|
5927
5927
|
return Fl || (Fl = 1, (function(e) {
|
|
5928
5928
|
(function() {
|
|
5929
5929
|
var t = {}.hasOwnProperty;
|
|
@@ -5955,30 +5955,30 @@ function T1() {
|
|
|
5955
5955
|
})();
|
|
5956
5956
|
})(Tl)), Tl.exports;
|
|
5957
5957
|
}
|
|
5958
|
-
var
|
|
5959
|
-
const
|
|
5958
|
+
var Fv = Tv();
|
|
5959
|
+
const zv = /* @__PURE__ */ Lv(Fv), jv = {
|
|
5960
5960
|
"purpur-label": "_purpur-label_1x80u_1",
|
|
5961
5961
|
"purpur-label--negative": "_purpur-label--negative_1x80u_8",
|
|
5962
5962
|
"purpur-label--disabled": "_purpur-label--disabled_1x80u_11"
|
|
5963
|
-
},
|
|
5963
|
+
}, Vv = zv.bind(jv), ci = "purpur-label", Bv = ({
|
|
5964
5964
|
children: e,
|
|
5965
5965
|
className: t,
|
|
5966
5966
|
disabled: r,
|
|
5967
5967
|
negative: o = !1,
|
|
5968
5968
|
...i
|
|
5969
5969
|
}) => {
|
|
5970
|
-
const n =
|
|
5970
|
+
const n = Vv(t, ci, {
|
|
5971
5971
|
[`${ci}--disabled`]: r,
|
|
5972
5972
|
[`${ci}--negative`]: o
|
|
5973
5973
|
});
|
|
5974
|
-
return /* @__PURE__ */ g(
|
|
5974
|
+
return /* @__PURE__ */ g(Iv, { className: n, ...i, children: e });
|
|
5975
5975
|
};
|
|
5976
|
-
function
|
|
5976
|
+
function Hv(e) {
|
|
5977
5977
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5978
5978
|
}
|
|
5979
|
-
var
|
|
5980
|
-
function
|
|
5981
|
-
return
|
|
5979
|
+
var zl = { exports: {} }, jl;
|
|
5980
|
+
function qv() {
|
|
5981
|
+
return jl || (jl = 1, (function(e) {
|
|
5982
5982
|
(function() {
|
|
5983
5983
|
var t = {}.hasOwnProperty;
|
|
5984
5984
|
function r() {
|
|
@@ -6007,10 +6007,10 @@ function H1() {
|
|
|
6007
6007
|
}
|
|
6008
6008
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
6009
6009
|
})();
|
|
6010
|
-
})(
|
|
6010
|
+
})(zl)), zl.exports;
|
|
6011
6011
|
}
|
|
6012
|
-
var
|
|
6013
|
-
const
|
|
6012
|
+
var Wv = qv();
|
|
6013
|
+
const Gv = /* @__PURE__ */ Hv(Wv), Zv = {
|
|
6014
6014
|
"purpur-paragraph": "_purpur-paragraph_1vz75_1",
|
|
6015
6015
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1vz75_7",
|
|
6016
6016
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1vz75_10",
|
|
@@ -6026,7 +6026,7 @@ const G1 = /* @__PURE__ */ q1(W1), Z1 = {
|
|
|
6026
6026
|
"purpur-paragraph--additional-100-bold": "_purpur-paragraph--additional-100-bold_1vz75_67",
|
|
6027
6027
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1vz75_74",
|
|
6028
6028
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1vz75_82"
|
|
6029
|
-
},
|
|
6029
|
+
}, Uv = Gv.bind(Zv), Xv = {
|
|
6030
6030
|
PARAGRAPH100: "paragraph-100"
|
|
6031
6031
|
}, Kr = "purpur-paragraph", Od = ({
|
|
6032
6032
|
children: e,
|
|
@@ -6034,10 +6034,10 @@ const G1 = /* @__PURE__ */ q1(W1), Z1 = {
|
|
|
6034
6034
|
disabled: r,
|
|
6035
6035
|
enableHyphenation: o = !1,
|
|
6036
6036
|
negative: i = !1,
|
|
6037
|
-
variant: n =
|
|
6037
|
+
variant: n = Xv.PARAGRAPH100,
|
|
6038
6038
|
...a
|
|
6039
6039
|
}) => {
|
|
6040
|
-
const l =
|
|
6040
|
+
const l = Uv(t, Kr, `${Kr}--${n}`, {
|
|
6041
6041
|
[`${Kr}--hyphens`]: o,
|
|
6042
6042
|
[`${Kr}--disabled`]: r,
|
|
6043
6043
|
[`${Kr}--negative`]: i
|
|
@@ -6069,7 +6069,7 @@ function Pd(...e) {
|
|
|
6069
6069
|
function Dd(...e) {
|
|
6070
6070
|
return p.useCallback(Pd(...e), e);
|
|
6071
6071
|
}
|
|
6072
|
-
function
|
|
6072
|
+
function Yv(e, t = []) {
|
|
6073
6073
|
let r = [];
|
|
6074
6074
|
function o(n, a) {
|
|
6075
6075
|
const l = p.createContext(a), s = r.length;
|
|
@@ -6097,9 +6097,9 @@ function Y1(e, t = []) {
|
|
|
6097
6097
|
);
|
|
6098
6098
|
};
|
|
6099
6099
|
};
|
|
6100
|
-
return i.scopeName = e, [o,
|
|
6100
|
+
return i.scopeName = e, [o, Kv(i, ...t)];
|
|
6101
6101
|
}
|
|
6102
|
-
function
|
|
6102
|
+
function Kv(...e) {
|
|
6103
6103
|
const t = e[0];
|
|
6104
6104
|
if (e.length === 1) return t;
|
|
6105
6105
|
const r = () => {
|
|
@@ -6129,13 +6129,13 @@ function Ad(e) {
|
|
|
6129
6129
|
t.current = e;
|
|
6130
6130
|
}), p.useMemo(() => (...r) => t.current?.(...r), []);
|
|
6131
6131
|
}
|
|
6132
|
-
function
|
|
6132
|
+
function Jv({
|
|
6133
6133
|
prop: e,
|
|
6134
6134
|
defaultProp: t,
|
|
6135
6135
|
onChange: r = () => {
|
|
6136
6136
|
}
|
|
6137
6137
|
}) {
|
|
6138
|
-
const [o, i] =
|
|
6138
|
+
const [o, i] = Qv({ defaultProp: t, onChange: r }), n = e !== void 0, a = n ? e : o, l = Ad(r), s = p.useCallback(
|
|
6139
6139
|
(u) => {
|
|
6140
6140
|
if (n) {
|
|
6141
6141
|
const c = typeof u == "function" ? u(e) : u;
|
|
@@ -6147,7 +6147,7 @@ function J1({
|
|
|
6147
6147
|
);
|
|
6148
6148
|
return [a, s];
|
|
6149
6149
|
}
|
|
6150
|
-
function
|
|
6150
|
+
function Qv({
|
|
6151
6151
|
defaultProp: e,
|
|
6152
6152
|
onChange: t
|
|
6153
6153
|
}) {
|
|
@@ -6207,19 +6207,19 @@ function nm(e) {
|
|
|
6207
6207
|
}
|
|
6208
6208
|
});
|
|
6209
6209
|
return p.useEffect(() => {
|
|
6210
|
-
const u =
|
|
6210
|
+
const u = zn(o.current);
|
|
6211
6211
|
n.current = l === "mounted" ? u : "none";
|
|
6212
6212
|
}, [l]), Xi(() => {
|
|
6213
6213
|
const u = o.current, c = i.current;
|
|
6214
6214
|
if (c !== e) {
|
|
6215
|
-
const d = n.current, h =
|
|
6215
|
+
const d = n.current, h = zn(u);
|
|
6216
6216
|
e ? s("MOUNT") : h === "none" || u?.display === "none" ? s("UNMOUNT") : s(c && d !== h ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
6217
6217
|
}
|
|
6218
6218
|
}, [e, s]), Xi(() => {
|
|
6219
6219
|
if (t) {
|
|
6220
6220
|
let u;
|
|
6221
6221
|
const c = t.ownerDocument.defaultView ?? window, d = (f) => {
|
|
6222
|
-
const v =
|
|
6222
|
+
const v = zn(o.current).includes(f.animationName);
|
|
6223
6223
|
if (f.target === t && v && (s("ANIMATION_END"), !i.current)) {
|
|
6224
6224
|
const _ = t.style.animationFillMode;
|
|
6225
6225
|
t.style.animationFillMode = "forwards", u = c.setTimeout(() => {
|
|
@@ -6227,7 +6227,7 @@ function nm(e) {
|
|
|
6227
6227
|
});
|
|
6228
6228
|
}
|
|
6229
6229
|
}, h = (f) => {
|
|
6230
|
-
f.target === t && (n.current =
|
|
6230
|
+
f.target === t && (n.current = zn(o.current));
|
|
6231
6231
|
};
|
|
6232
6232
|
return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
|
|
6233
6233
|
c.clearTimeout(u), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
|
|
@@ -6241,7 +6241,7 @@ function nm(e) {
|
|
|
6241
6241
|
}, [])
|
|
6242
6242
|
};
|
|
6243
6243
|
}
|
|
6244
|
-
function
|
|
6244
|
+
function zn(e) {
|
|
6245
6245
|
return e?.animationName || "none";
|
|
6246
6246
|
}
|
|
6247
6247
|
function om(e) {
|
|
@@ -6313,7 +6313,7 @@ var dm = [
|
|
|
6313
6313
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g(s, { ...l, ref: n });
|
|
6314
6314
|
});
|
|
6315
6315
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
6316
|
-
}, {}), ya = "Checkbox", [pm] =
|
|
6316
|
+
}, {}), ya = "Checkbox", [pm] = Yv(ya), [fm, gm] = pm(ya), Id = p.forwardRef(
|
|
6317
6317
|
(e, t) => {
|
|
6318
6318
|
const {
|
|
6319
6319
|
__scopeCheckbox: r,
|
|
@@ -6326,7 +6326,7 @@ var dm = [
|
|
|
6326
6326
|
onCheckedChange: u,
|
|
6327
6327
|
form: c,
|
|
6328
6328
|
...d
|
|
6329
|
-
} = e, [h, f] = p.useState(null), v = Dd(t, ($) => f($)), _ = p.useRef(!1), m = h ? c || !!h.closest("form") : !0, [b = !1, y] =
|
|
6329
|
+
} = e, [h, f] = p.useState(null), v = Dd(t, ($) => f($)), _ = p.useRef(!1), m = h ? c || !!h.closest("form") : !0, [b = !1, y] = Jv({
|
|
6330
6330
|
prop: i,
|
|
6331
6331
|
defaultProp: n,
|
|
6332
6332
|
onChange: u
|
|
@@ -6343,7 +6343,7 @@ var dm = [
|
|
|
6343
6343
|
{
|
|
6344
6344
|
type: "button",
|
|
6345
6345
|
role: "checkbox",
|
|
6346
|
-
"aria-checked":
|
|
6346
|
+
"aria-checked": zt(b) ? "mixed" : b,
|
|
6347
6347
|
"aria-required": a,
|
|
6348
6348
|
"data-state": Fd(b),
|
|
6349
6349
|
"data-disabled": l ? "" : void 0,
|
|
@@ -6355,7 +6355,7 @@ var dm = [
|
|
|
6355
6355
|
$.key === "Enter" && $.preventDefault();
|
|
6356
6356
|
}),
|
|
6357
6357
|
onClick: Bl(e.onClick, ($) => {
|
|
6358
|
-
y((S) =>
|
|
6358
|
+
y((S) => zt(S) ? !0 : !S), m && (_.current = $.isPropagationStopped(), _.current || $.stopPropagation());
|
|
6359
6359
|
})
|
|
6360
6360
|
}
|
|
6361
6361
|
),
|
|
@@ -6371,7 +6371,7 @@ var dm = [
|
|
|
6371
6371
|
disabled: l,
|
|
6372
6372
|
form: c,
|
|
6373
6373
|
style: { transform: "translateX(-100%)" },
|
|
6374
|
-
defaultChecked:
|
|
6374
|
+
defaultChecked: zt(n) ? !1 : n
|
|
6375
6375
|
}
|
|
6376
6376
|
)
|
|
6377
6377
|
] });
|
|
@@ -6381,7 +6381,7 @@ Id.displayName = ya;
|
|
|
6381
6381
|
var Ld = "CheckboxIndicator", Td = p.forwardRef(
|
|
6382
6382
|
(e, t) => {
|
|
6383
6383
|
const { __scopeCheckbox: r, forceMount: o, ...i } = e, n = gm(Ld, r);
|
|
6384
|
-
return /* @__PURE__ */ g(Md, { present: o ||
|
|
6384
|
+
return /* @__PURE__ */ g(Md, { present: o || zt(n.state) || n.state === !0, children: /* @__PURE__ */ g(
|
|
6385
6385
|
kd.span,
|
|
6386
6386
|
{
|
|
6387
6387
|
"data-state": Fd(n.state),
|
|
@@ -6400,10 +6400,10 @@ var hm = (e) => {
|
|
|
6400
6400
|
const c = a.current, d = window.HTMLInputElement.prototype, h = Object.getOwnPropertyDescriptor(d, "checked").set;
|
|
6401
6401
|
if (l !== r && h) {
|
|
6402
6402
|
const f = new Event("click", { bubbles: o });
|
|
6403
|
-
c.indeterminate =
|
|
6403
|
+
c.indeterminate = zt(r), h.call(c, zt(r) ? !1 : r), c.dispatchEvent(f);
|
|
6404
6404
|
}
|
|
6405
6405
|
}, [l, r, o]);
|
|
6406
|
-
const u = p.useRef(
|
|
6406
|
+
const u = p.useRef(zt(r) ? !1 : r);
|
|
6407
6407
|
return /* @__PURE__ */ g(
|
|
6408
6408
|
"input",
|
|
6409
6409
|
{
|
|
@@ -6424,19 +6424,19 @@ var hm = (e) => {
|
|
|
6424
6424
|
}
|
|
6425
6425
|
);
|
|
6426
6426
|
};
|
|
6427
|
-
function
|
|
6427
|
+
function zt(e) {
|
|
6428
6428
|
return e === "indeterminate";
|
|
6429
6429
|
}
|
|
6430
6430
|
function Fd(e) {
|
|
6431
|
-
return
|
|
6431
|
+
return zt(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
6432
6432
|
}
|
|
6433
6433
|
var _m = Id, vm = Td;
|
|
6434
6434
|
function mm(e) {
|
|
6435
6435
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6436
6436
|
}
|
|
6437
|
-
var
|
|
6437
|
+
var Hl = { exports: {} }, ql;
|
|
6438
6438
|
function bm() {
|
|
6439
|
-
return
|
|
6439
|
+
return ql || (ql = 1, (function(e) {
|
|
6440
6440
|
(function() {
|
|
6441
6441
|
var t = {}.hasOwnProperty;
|
|
6442
6442
|
function r() {
|
|
@@ -6465,7 +6465,7 @@ function bm() {
|
|
|
6465
6465
|
}
|
|
6466
6466
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
6467
6467
|
})();
|
|
6468
|
-
})(
|
|
6468
|
+
})(Hl)), Hl.exports;
|
|
6469
6469
|
}
|
|
6470
6470
|
var wm = bm();
|
|
6471
6471
|
const ym = /* @__PURE__ */ mm(wm), $m = {
|
|
@@ -6512,21 +6512,21 @@ const ym = /* @__PURE__ */ mm(wm), $m = {
|
|
|
6512
6512
|
{
|
|
6513
6513
|
"data-testid": e && `${e}-checked-icon`,
|
|
6514
6514
|
size: "xs",
|
|
6515
|
-
svg:
|
|
6515
|
+
svg: Sv
|
|
6516
6516
|
}
|
|
6517
6517
|
) : /* @__PURE__ */ g(
|
|
6518
6518
|
Ui,
|
|
6519
6519
|
{
|
|
6520
6520
|
"data-testid": e && `${e}-indeterminate-icon`,
|
|
6521
6521
|
size: "xs",
|
|
6522
|
-
svg:
|
|
6522
|
+
svg: xv
|
|
6523
6523
|
}
|
|
6524
6524
|
) }) })
|
|
6525
6525
|
}
|
|
6526
6526
|
),
|
|
6527
6527
|
/* @__PURE__ */ N("span", { className: Kt(`${bt}__label-container`), children: [
|
|
6528
6528
|
n && /* @__PURE__ */ g(
|
|
6529
|
-
|
|
6529
|
+
Bv,
|
|
6530
6530
|
{
|
|
6531
6531
|
htmlFor: s.id,
|
|
6532
6532
|
"data-testid": e && `${e}-label`,
|
|
@@ -6538,7 +6538,7 @@ const ym = /* @__PURE__ */ mm(wm), $m = {
|
|
|
6538
6538
|
}
|
|
6539
6539
|
),
|
|
6540
6540
|
a && /* @__PURE__ */ g(
|
|
6541
|
-
|
|
6541
|
+
pv,
|
|
6542
6542
|
{
|
|
6543
6543
|
className: Kt(`${bt}__helper`),
|
|
6544
6544
|
"data-testid": e && `${e}-helper-text`,
|
|
@@ -6549,7 +6549,7 @@ const ym = /* @__PURE__ */ mm(wm), $m = {
|
|
|
6549
6549
|
)
|
|
6550
6550
|
] })
|
|
6551
6551
|
] }),
|
|
6552
|
-
c && /* @__PURE__ */ g(
|
|
6552
|
+
c && /* @__PURE__ */ g(iv, { "data-testid": e && `${e}-error-text`, children: i })
|
|
6553
6553
|
] });
|
|
6554
6554
|
}
|
|
6555
6555
|
);
|
|
@@ -6634,8 +6634,8 @@ const Im = {
|
|
|
6634
6634
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M11 3.9a7.1 7.1 0 0 0-7.1 7.105 7.096 7.096 0 0 0 7.105 7.095 7.072 7.072 0 0 0 7.095-7.095A7.1 7.1 0 0 0 11 3.9Zm-8.9 7.105C2.1 6.088 6.081 2.1 11 2.1c4.919 0 8.9 3.988 8.9 8.905 0 2.13-.742 4.09-1.991 5.624l4.228 4.235a.9.9 0 0 1-1.274 1.272l-4.226-4.233a8.875 8.875 0 0 1-5.632 1.997c-4.917 0-8.905-3.975-8.905-8.895Z" clip-rule="evenodd"/></svg>',
|
|
6635
6635
|
keywords: ["search"],
|
|
6636
6636
|
category: "utility"
|
|
6637
|
-
},
|
|
6638
|
-
|
|
6637
|
+
}, zd = (e) => /* @__PURE__ */ g(Ee, { ...e, svg: Im });
|
|
6638
|
+
zd.displayName = "IconSearch";
|
|
6639
6639
|
const Lm = {
|
|
6640
6640
|
name: "sorter",
|
|
6641
6641
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M17 3.1a.9.9 0 0 1 .636.264l4.5 4.5a.9.9 0 1 1-1.272 1.272L17.9 6.173V20a.9.9 0 0 1-1.8 0V6.173l-2.964 2.963a.9.9 0 0 1-1.272-1.272l4.5-4.5A.9.9 0 0 1 17 3.1Zm-10 0a.9.9 0 0 1 .9.9v13.827l2.964-2.963a.9.9 0 1 1 1.272 1.272l-4.5 4.5a.9.9 0 0 1-1.272 0l-4.5-4.5a.9.9 0 0 1 1.272-1.272L6.1 17.827V4a.9.9 0 0 1 .9-.9Z" clip-rule="evenodd"/></svg>',
|
|
@@ -6679,8 +6679,8 @@ function Fm() {
|
|
|
6679
6679
|
})();
|
|
6680
6680
|
})(Ul)), Ul.exports;
|
|
6681
6681
|
}
|
|
6682
|
-
var
|
|
6683
|
-
const
|
|
6682
|
+
var zm = Fm();
|
|
6683
|
+
const jm = /* @__PURE__ */ Tm(zm), Vm = {
|
|
6684
6684
|
"purpur-paragraph": "_purpur-paragraph_1vz75_1",
|
|
6685
6685
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1vz75_7",
|
|
6686
6686
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1vz75_10",
|
|
@@ -6696,7 +6696,7 @@ const zm = /* @__PURE__ */ Tm(jm), Vm = {
|
|
|
6696
6696
|
"purpur-paragraph--additional-100-bold": "_purpur-paragraph--additional-100-bold_1vz75_67",
|
|
6697
6697
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1vz75_74",
|
|
6698
6698
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1vz75_82"
|
|
6699
|
-
}, Bm =
|
|
6699
|
+
}, Bm = jm.bind(Vm), Hm = {
|
|
6700
6700
|
PARAGRAPH100: "paragraph-100"
|
|
6701
6701
|
}, Jr = "purpur-paragraph", Ne = ({
|
|
6702
6702
|
children: e,
|
|
@@ -6704,7 +6704,7 @@ const zm = /* @__PURE__ */ Tm(jm), Vm = {
|
|
|
6704
6704
|
disabled: r,
|
|
6705
6705
|
enableHyphenation: o = !1,
|
|
6706
6706
|
negative: i = !1,
|
|
6707
|
-
variant: n =
|
|
6707
|
+
variant: n = Hm.PARAGRAPH100,
|
|
6708
6708
|
...a
|
|
6709
6709
|
}) => {
|
|
6710
6710
|
const l = Bm(t, Jr, `${Jr}--${n}`, {
|
|
@@ -6715,7 +6715,7 @@ const zm = /* @__PURE__ */ Tm(jm), Vm = {
|
|
|
6715
6715
|
return /* @__PURE__ */ g("p", { ...a, className: l, children: e });
|
|
6716
6716
|
};
|
|
6717
6717
|
Ne.displayName = "Paragraph";
|
|
6718
|
-
function
|
|
6718
|
+
function qm(e) {
|
|
6719
6719
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6720
6720
|
}
|
|
6721
6721
|
var Yl = { exports: {} }, Kl;
|
|
@@ -6752,7 +6752,7 @@ function Wm() {
|
|
|
6752
6752
|
})(Yl)), Yl.exports;
|
|
6753
6753
|
}
|
|
6754
6754
|
var Gm = Wm();
|
|
6755
|
-
const Zm = /* @__PURE__ */
|
|
6755
|
+
const Zm = /* @__PURE__ */ qm(Gm), Um = {
|
|
6756
6756
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
6757
6757
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
6758
6758
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -6768,14 +6768,14 @@ const Zm = /* @__PURE__ */ Hm(Gm), Um = {
|
|
|
6768
6768
|
t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
6769
6769
|
], o = t ? `<title>${t}</title>` : "";
|
|
6770
6770
|
return `<svg ${Km(r)}>${o}${e}</svg>`;
|
|
6771
|
-
}, Qm = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(),
|
|
6771
|
+
}, Qm = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), jd = ({ svg: e, allyTitle: t, className: r, size: o = Ym, ...i }) => {
|
|
6772
6772
|
const n = Jm({
|
|
6773
6773
|
content: Qm(e.svg),
|
|
6774
6774
|
title: t
|
|
6775
6775
|
}), a = Xm(Jl, `${Jl}--${o}`, r);
|
|
6776
6776
|
return /* @__PURE__ */ g("span", { className: a, dangerouslySetInnerHTML: { __html: n }, ...i });
|
|
6777
6777
|
};
|
|
6778
|
-
|
|
6778
|
+
jd.displayName = "Icon";
|
|
6779
6779
|
const e0 = {
|
|
6780
6780
|
name: "error-filled",
|
|
6781
6781
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',
|
|
@@ -6839,7 +6839,7 @@ const o0 = /* @__PURE__ */ t0(n0), i0 = {
|
|
|
6839
6839
|
"aria-relevant": o,
|
|
6840
6840
|
...i,
|
|
6841
6841
|
children: [
|
|
6842
|
-
/* @__PURE__ */ g(
|
|
6842
|
+
/* @__PURE__ */ g(jd, { svg: e0, size: "xs", className: ts(`${di}__icon`) }),
|
|
6843
6843
|
e
|
|
6844
6844
|
]
|
|
6845
6845
|
}
|
|
@@ -7062,7 +7062,7 @@ var M0 = [
|
|
|
7062
7062
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g(s, { ...l, ref: n });
|
|
7063
7063
|
});
|
|
7064
7064
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
7065
|
-
}, {}), I0 = "Label",
|
|
7065
|
+
}, {}), I0 = "Label", Hd = p.forwardRef((e, t) => /* @__PURE__ */ g(
|
|
7066
7066
|
k0.label,
|
|
7067
7067
|
{
|
|
7068
7068
|
...e,
|
|
@@ -7072,8 +7072,8 @@ var M0 = [
|
|
|
7072
7072
|
}
|
|
7073
7073
|
}
|
|
7074
7074
|
));
|
|
7075
|
-
|
|
7076
|
-
var L0 =
|
|
7075
|
+
Hd.displayName = I0;
|
|
7076
|
+
var L0 = Hd;
|
|
7077
7077
|
function T0(e) {
|
|
7078
7078
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7079
7079
|
}
|
|
@@ -7110,12 +7110,12 @@ function F0() {
|
|
|
7110
7110
|
})();
|
|
7111
7111
|
})(ss)), ss.exports;
|
|
7112
7112
|
}
|
|
7113
|
-
var
|
|
7114
|
-
const
|
|
7113
|
+
var z0 = F0();
|
|
7114
|
+
const j0 = /* @__PURE__ */ T0(z0), V0 = {
|
|
7115
7115
|
"purpur-label": "_purpur-label_1x80u_1",
|
|
7116
7116
|
"purpur-label--negative": "_purpur-label--negative_1x80u_8",
|
|
7117
7117
|
"purpur-label--disabled": "_purpur-label--disabled_1x80u_11"
|
|
7118
|
-
}, B0 =
|
|
7118
|
+
}, B0 = j0.bind(V0), fi = "purpur-label", H0 = ({
|
|
7119
7119
|
children: e,
|
|
7120
7120
|
className: t,
|
|
7121
7121
|
disabled: r,
|
|
@@ -7128,7 +7128,7 @@ const z0 = /* @__PURE__ */ T0(j0), V0 = {
|
|
|
7128
7128
|
});
|
|
7129
7129
|
return /* @__PURE__ */ g(L0, { className: n, ...i, children: e });
|
|
7130
7130
|
};
|
|
7131
|
-
function
|
|
7131
|
+
function q0(e) {
|
|
7132
7132
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7133
7133
|
}
|
|
7134
7134
|
var cs = { exports: {} }, ds;
|
|
@@ -7165,7 +7165,7 @@ function W0() {
|
|
|
7165
7165
|
})(cs)), cs.exports;
|
|
7166
7166
|
}
|
|
7167
7167
|
var G0 = W0();
|
|
7168
|
-
const Z0 = /* @__PURE__ */
|
|
7168
|
+
const Z0 = /* @__PURE__ */ q0(G0), U0 = "_rotate_12t9p_1", X0 = "_dash_12t9p_1", Y0 = {
|
|
7169
7169
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
7170
7170
|
rotate: U0,
|
|
7171
7171
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
@@ -7179,7 +7179,7 @@ const Z0 = /* @__PURE__ */ H0(G0), U0 = "_rotate_12t9p_1", X0 = "_dash_12t9p_1",
|
|
|
7179
7179
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
7180
7180
|
}, ps = Z0.bind(Y0), Qr = "purpur-spinner", K0 = {
|
|
7181
7181
|
SM: "sm"
|
|
7182
|
-
},
|
|
7182
|
+
}, qd = ({
|
|
7183
7183
|
disabled: e = !1,
|
|
7184
7184
|
negative: t = !1,
|
|
7185
7185
|
size: r = K0.SM,
|
|
@@ -7197,7 +7197,7 @@ const Z0 = /* @__PURE__ */ H0(G0), U0 = "_rotate_12t9p_1", X0 = "_dash_12t9p_1",
|
|
|
7197
7197
|
r: "20"
|
|
7198
7198
|
}
|
|
7199
7199
|
) }) });
|
|
7200
|
-
|
|
7200
|
+
qd.displayName = "Spinner";
|
|
7201
7201
|
function J0(e) {
|
|
7202
7202
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7203
7203
|
}
|
|
@@ -7236,25 +7236,25 @@ function Q0() {
|
|
|
7236
7236
|
}
|
|
7237
7237
|
var eb = Q0();
|
|
7238
7238
|
const tb = /* @__PURE__ */ J0(eb), rb = {
|
|
7239
|
-
"purpur-select": "_purpur-
|
|
7240
|
-
"purpur-select__label": "_purpur-
|
|
7241
|
-
"purpur-select__field-row": "_purpur-select__field-
|
|
7242
|
-
"purpur-select__frame": "_purpur-
|
|
7243
|
-
"purpur-select__frame--negative": "_purpur-select__frame--
|
|
7244
|
-
"purpur-select__select-container": "_purpur-select__select-
|
|
7245
|
-
"purpur-select__select-container--disabled": "_purpur-select__select-container--
|
|
7246
|
-
"purpur-select__select
|
|
7247
|
-
"purpur-select__select-container--
|
|
7248
|
-
"purpur-select__select": "_purpur-
|
|
7249
|
-
"purpur-select__select--error": "_purpur-select__select--
|
|
7250
|
-
"purpur-select__select--is-valid": "_purpur-select__select--is-
|
|
7251
|
-
"purpur-select__select--negative": "_purpur-select__select--
|
|
7252
|
-
"purpur-select__end-adornments": "_purpur-select__end-
|
|
7253
|
-
"purpur-select__select-icon": "_purpur-select__select-
|
|
7254
|
-
"purpur-select__select-icon--readonly": "_purpur-select__select-icon--
|
|
7255
|
-
"purpur-select__select-icon--disabled": "_purpur-select__select-icon--
|
|
7256
|
-
"purpur-select__select-icon--negative": "_purpur-select__select-icon--
|
|
7257
|
-
"purpur-select__valid-icon": "_purpur-select__valid-
|
|
7239
|
+
"purpur-select": "_purpur-select_1gf3p_1",
|
|
7240
|
+
"purpur-select__label": "_purpur-select__label_1gf3p_7",
|
|
7241
|
+
"purpur-select__field-row": "_purpur-select__field-row_1gf3p_12",
|
|
7242
|
+
"purpur-select__frame": "_purpur-select__frame_1gf3p_16",
|
|
7243
|
+
"purpur-select__frame--negative": "_purpur-select__frame--negative_1gf3p_23",
|
|
7244
|
+
"purpur-select__select-container": "_purpur-select__select-container_1gf3p_26",
|
|
7245
|
+
"purpur-select__select-container--disabled": "_purpur-select__select-container--disabled_1gf3p_33",
|
|
7246
|
+
"purpur-select__select": "_purpur-select__select_1gf3p_26",
|
|
7247
|
+
"purpur-select__select-container--readonly": "_purpur-select__select-container--readonly_1gf3p_33",
|
|
7248
|
+
"purpur-select__select-container--negative": "_purpur-select__select-container--negative_1gf3p_41",
|
|
7249
|
+
"purpur-select__select--error": "_purpur-select__select--error_1gf3p_91",
|
|
7250
|
+
"purpur-select__select--is-valid": "_purpur-select__select--is-valid_1gf3p_97",
|
|
7251
|
+
"purpur-select__select--negative": "_purpur-select__select--negative_1gf3p_103",
|
|
7252
|
+
"purpur-select__end-adornments": "_purpur-select__end-adornments_1gf3p_120",
|
|
7253
|
+
"purpur-select__select-icon": "_purpur-select__select-icon_1gf3p_130",
|
|
7254
|
+
"purpur-select__select-icon--readonly": "_purpur-select__select-icon--readonly_1gf3p_133",
|
|
7255
|
+
"purpur-select__select-icon--disabled": "_purpur-select__select-icon--disabled_1gf3p_133",
|
|
7256
|
+
"purpur-select__select-icon--negative": "_purpur-select__select-icon--negative_1gf3p_136",
|
|
7257
|
+
"purpur-select__valid-icon": "_purpur-select__valid-icon_1gf3p_142"
|
|
7258
7258
|
}, Je = tb.bind(rb), Y = "purpur-select", Wd = fe(
|
|
7259
7259
|
({
|
|
7260
7260
|
label: e,
|
|
@@ -7288,7 +7288,7 @@ const tb = /* @__PURE__ */ J0(eb), rb = {
|
|
|
7288
7288
|
}),
|
|
7289
7289
|
children: [
|
|
7290
7290
|
e && /* @__PURE__ */ N(
|
|
7291
|
-
|
|
7291
|
+
H0,
|
|
7292
7292
|
{
|
|
7293
7293
|
htmlFor: m,
|
|
7294
7294
|
className: Je(`${Y}__label`),
|
|
@@ -7329,7 +7329,7 @@ const tb = /* @__PURE__ */ J0(eb), rb = {
|
|
|
7329
7329
|
),
|
|
7330
7330
|
/* @__PURE__ */ N("div", { className: Je(`${Y}__end-adornments`), children: [
|
|
7331
7331
|
c ? /* @__PURE__ */ g(
|
|
7332
|
-
|
|
7332
|
+
qd,
|
|
7333
7333
|
{
|
|
7334
7334
|
disabled: d.disabled,
|
|
7335
7335
|
size: "xxs",
|
|
@@ -7756,11 +7756,11 @@ function Tb() {
|
|
|
7756
7756
|
})(Es)), Es.exports;
|
|
7757
7757
|
}
|
|
7758
7758
|
var Fb = Tb();
|
|
7759
|
-
const
|
|
7759
|
+
const zb = /* @__PURE__ */ Lb(Fb), jb = {
|
|
7760
7760
|
"purpur-field-helper-text": "_purpur-field-helper-text_1ociq_1",
|
|
7761
7761
|
"purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_1ociq_9",
|
|
7762
7762
|
"purpur-field-helper-text--negative": "_purpur-field-helper-text--negative_1ociq_12"
|
|
7763
|
-
}, Vb =
|
|
7763
|
+
}, Vb = zb.bind(jb), hi = "purpur-field-helper-text", Bb = ({
|
|
7764
7764
|
children: e,
|
|
7765
7765
|
className: t,
|
|
7766
7766
|
disabled: r,
|
|
@@ -7774,11 +7774,11 @@ const jb = /* @__PURE__ */ Lb(Fb), zb = {
|
|
|
7774
7774
|
});
|
|
7775
7775
|
return /* @__PURE__ */ g("span", { id: o, className: a, ...n, children: e });
|
|
7776
7776
|
};
|
|
7777
|
-
function
|
|
7777
|
+
function Hb(e) {
|
|
7778
7778
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7779
7779
|
}
|
|
7780
7780
|
var Os = { exports: {} }, Ps;
|
|
7781
|
-
function
|
|
7781
|
+
function qb() {
|
|
7782
7782
|
return Ps || (Ps = 1, (function(e) {
|
|
7783
7783
|
(function() {
|
|
7784
7784
|
var t = {}.hasOwnProperty;
|
|
@@ -7810,8 +7810,8 @@ function Hb() {
|
|
|
7810
7810
|
})();
|
|
7811
7811
|
})(Os)), Os.exports;
|
|
7812
7812
|
}
|
|
7813
|
-
var Wb =
|
|
7814
|
-
const Gb = /* @__PURE__ */
|
|
7813
|
+
var Wb = qb();
|
|
7814
|
+
const Gb = /* @__PURE__ */ Hb(Wb), Zb = {
|
|
7815
7815
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
7816
7816
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
7817
7817
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -8076,9 +8076,9 @@ Qd.displayName = "Spinner";
|
|
|
8076
8076
|
function Ew(e) {
|
|
8077
8077
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8078
8078
|
}
|
|
8079
|
-
var Fs = { exports: {} },
|
|
8079
|
+
var Fs = { exports: {} }, zs;
|
|
8080
8080
|
function Nw() {
|
|
8081
|
-
return
|
|
8081
|
+
return zs || (zs = 1, (function(e) {
|
|
8082
8082
|
(function() {
|
|
8083
8083
|
var t = {}.hasOwnProperty;
|
|
8084
8084
|
function r() {
|
|
@@ -8131,7 +8131,7 @@ const Pw = /* @__PURE__ */ Ew(Ow), Dw = {
|
|
|
8131
8131
|
"purpur-text-field__adornment-container": "_purpur-text-field__adornment-container_1n0q1_146",
|
|
8132
8132
|
"purpur-text-field__valid-icon": "_purpur-text-field__valid-icon_1n0q1_151",
|
|
8133
8133
|
"purpur-text-field__valid-icon--negative": "_purpur-text-field__valid-icon--negative_1n0q1_154"
|
|
8134
|
-
}, Aw = (e) =>
|
|
8134
|
+
}, Aw = (e) => j(e), wt = Pw.bind(Dw), re = "purpur-text-field", ep = fe(
|
|
8135
8135
|
({
|
|
8136
8136
|
["data-testid"]: e,
|
|
8137
8137
|
className: t,
|
|
@@ -8285,7 +8285,7 @@ const Mw = {
|
|
|
8285
8285
|
function kw(e) {
|
|
8286
8286
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8287
8287
|
}
|
|
8288
|
-
var
|
|
8288
|
+
var js = { exports: {} }, Vs;
|
|
8289
8289
|
function Iw() {
|
|
8290
8290
|
return Vs || (Vs = 1, (function(e) {
|
|
8291
8291
|
(function() {
|
|
@@ -8316,10 +8316,10 @@ function Iw() {
|
|
|
8316
8316
|
}
|
|
8317
8317
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
8318
8318
|
})();
|
|
8319
|
-
})(
|
|
8319
|
+
})(js)), js.exports;
|
|
8320
8320
|
}
|
|
8321
8321
|
var Lw = Iw();
|
|
8322
|
-
const Tw = /* @__PURE__ */ kw(Lw), Fw = "_rotate_12t9p_1",
|
|
8322
|
+
const Tw = /* @__PURE__ */ kw(Lw), Fw = "_rotate_12t9p_1", zw = "_dash_12t9p_1", jw = {
|
|
8323
8323
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
8324
8324
|
rotate: Fw,
|
|
8325
8325
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
@@ -8328,10 +8328,10 @@ const Tw = /* @__PURE__ */ kw(Lw), Fw = "_rotate_12t9p_1", jw = "_dash_12t9p_1",
|
|
|
8328
8328
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
8329
8329
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
8330
8330
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
8331
|
-
dash:
|
|
8331
|
+
dash: zw,
|
|
8332
8332
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
8333
8333
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
8334
|
-
}, Bs = Tw.bind(
|
|
8334
|
+
}, Bs = Tw.bind(jw), rn = "purpur-spinner", Vw = {
|
|
8335
8335
|
SM: "sm"
|
|
8336
8336
|
}, tp = ({
|
|
8337
8337
|
disabled: e = !1,
|
|
@@ -8355,9 +8355,9 @@ tp.displayName = "Spinner";
|
|
|
8355
8355
|
function Bw(e) {
|
|
8356
8356
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8357
8357
|
}
|
|
8358
|
-
var
|
|
8359
|
-
function
|
|
8360
|
-
return
|
|
8358
|
+
var Hs = { exports: {} }, qs;
|
|
8359
|
+
function Hw() {
|
|
8360
|
+
return qs || (qs = 1, (function(e) {
|
|
8361
8361
|
(function() {
|
|
8362
8362
|
var t = {}.hasOwnProperty;
|
|
8363
8363
|
function r() {
|
|
@@ -8386,10 +8386,10 @@ function qw() {
|
|
|
8386
8386
|
}
|
|
8387
8387
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
8388
8388
|
})();
|
|
8389
|
-
})(
|
|
8389
|
+
})(Hs)), Hs.exports;
|
|
8390
8390
|
}
|
|
8391
|
-
var
|
|
8392
|
-
const Ww = /* @__PURE__ */ Bw(
|
|
8391
|
+
var qw = Hw();
|
|
8392
|
+
const Ww = /* @__PURE__ */ Bw(qw), Gw = {
|
|
8393
8393
|
"purpur-button": "_purpur-button_10jh0_1",
|
|
8394
8394
|
"purpur-button--xs": "_purpur-button--xs_10jh0_22",
|
|
8395
8395
|
"purpur-button--icon-only": "_purpur-button--icon-only_10jh0_25",
|
|
@@ -8746,7 +8746,7 @@ var _y = [
|
|
|
8746
8746
|
"span",
|
|
8747
8747
|
"svg",
|
|
8748
8748
|
"ul"
|
|
8749
|
-
],
|
|
8749
|
+
], Ht = _y.reduce((e, t) => {
|
|
8750
8750
|
const r = p.forwardRef((o, i) => {
|
|
8751
8751
|
const { asChild: n, ...a } = o, l = n ? up : t;
|
|
8752
8752
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g(l, { ...a, ref: i });
|
|
@@ -8756,14 +8756,14 @@ var _y = [
|
|
|
8756
8756
|
function vy(e, t) {
|
|
8757
8757
|
e && sa.flushSync(() => e.dispatchEvent(t));
|
|
8758
8758
|
}
|
|
8759
|
-
function
|
|
8759
|
+
function zr(e) {
|
|
8760
8760
|
const t = p.useRef(e);
|
|
8761
8761
|
return p.useEffect(() => {
|
|
8762
8762
|
t.current = e;
|
|
8763
8763
|
}), p.useMemo(() => (...r) => t.current?.(...r), []);
|
|
8764
8764
|
}
|
|
8765
8765
|
function my(e, t = globalThis?.document) {
|
|
8766
|
-
const r =
|
|
8766
|
+
const r = zr(e);
|
|
8767
8767
|
p.useEffect(() => {
|
|
8768
8768
|
const o = (i) => {
|
|
8769
8769
|
i.key === "Escape" && r(i);
|
|
@@ -8805,7 +8805,7 @@ var by = "DismissableLayer", Ki = "dismissableLayer.update", wy = "dismissableLa
|
|
|
8805
8805
|
const x = () => f({});
|
|
8806
8806
|
return document.addEventListener(Ki, x), () => document.removeEventListener(Ki, x);
|
|
8807
8807
|
}, []), /* @__PURE__ */ g(
|
|
8808
|
-
|
|
8808
|
+
Ht.div,
|
|
8809
8809
|
{
|
|
8810
8810
|
...s,
|
|
8811
8811
|
ref: v,
|
|
@@ -8832,11 +8832,11 @@ var $y = "DismissableLayerBranch", xy = p.forwardRef((e, t) => {
|
|
|
8832
8832
|
return r.branches.add(n), () => {
|
|
8833
8833
|
r.branches.delete(n);
|
|
8834
8834
|
};
|
|
8835
|
-
}, [r.branches]), /* @__PURE__ */ g(
|
|
8835
|
+
}, [r.branches]), /* @__PURE__ */ g(Ht.div, { ...e, ref: i });
|
|
8836
8836
|
});
|
|
8837
8837
|
xy.displayName = $y;
|
|
8838
8838
|
function Sy(e, t = globalThis?.document) {
|
|
8839
|
-
const r =
|
|
8839
|
+
const r = zr(e), o = p.useRef(!1), i = p.useRef(() => {
|
|
8840
8840
|
});
|
|
8841
8841
|
return p.useEffect(() => {
|
|
8842
8842
|
const n = (l) => {
|
|
@@ -8866,7 +8866,7 @@ function Sy(e, t = globalThis?.document) {
|
|
|
8866
8866
|
};
|
|
8867
8867
|
}
|
|
8868
8868
|
function Cy(e, t = globalThis?.document) {
|
|
8869
|
-
const r =
|
|
8869
|
+
const r = zr(e), o = p.useRef(!1);
|
|
8870
8870
|
return p.useEffect(() => {
|
|
8871
8871
|
const i = (n) => {
|
|
8872
8872
|
n.target && !o.current && fp(yy, r, { originalEvent: n }, {
|
|
@@ -8896,7 +8896,7 @@ function Ny(e) {
|
|
|
8896
8896
|
r((o) => o ?? String(Ey++));
|
|
8897
8897
|
}, [e]), t ? `radix-${t}` : "";
|
|
8898
8898
|
}
|
|
8899
|
-
const Oy = ["top", "right", "bottom", "left"], Vt = Math.min, ke = Math.max, fo = Math.round,
|
|
8899
|
+
const Oy = ["top", "right", "bottom", "left"], Vt = Math.min, ke = Math.max, fo = Math.round, jn = Math.floor, dt = (e) => ({
|
|
8900
8900
|
x: e,
|
|
8901
8901
|
y: e
|
|
8902
8902
|
}), Py = {
|
|
@@ -8917,7 +8917,7 @@ function Rt(e, t) {
|
|
|
8917
8917
|
function Et(e) {
|
|
8918
8918
|
return e.split("-")[0];
|
|
8919
8919
|
}
|
|
8920
|
-
function
|
|
8920
|
+
function jr(e) {
|
|
8921
8921
|
return e.split("-")[1];
|
|
8922
8922
|
}
|
|
8923
8923
|
function Na(e) {
|
|
@@ -8935,7 +8935,7 @@ function Pa(e) {
|
|
|
8935
8935
|
}
|
|
8936
8936
|
function My(e, t, r) {
|
|
8937
8937
|
r === void 0 && (r = !1);
|
|
8938
|
-
const o =
|
|
8938
|
+
const o = jr(e), i = Pa(e), n = Oa(i);
|
|
8939
8939
|
let a = i === "x" ? o === (r ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
8940
8940
|
return t.reference[n] > t.floating[n] && (a = go(a)), [a, go(a)];
|
|
8941
8941
|
}
|
|
@@ -8960,14 +8960,14 @@ function Ty(e, t, r) {
|
|
|
8960
8960
|
}
|
|
8961
8961
|
}
|
|
8962
8962
|
function Fy(e, t, r, o) {
|
|
8963
|
-
const i =
|
|
8963
|
+
const i = jr(e);
|
|
8964
8964
|
let n = Ty(Et(e), r === "start", o);
|
|
8965
8965
|
return i && (n = n.map((a) => a + "-" + i), t && (n = n.concat(n.map(Qi)))), n;
|
|
8966
8966
|
}
|
|
8967
8967
|
function go(e) {
|
|
8968
8968
|
return e.replace(/left|right|bottom|top/g, (t) => Py[t]);
|
|
8969
8969
|
}
|
|
8970
|
-
function
|
|
8970
|
+
function zy(e) {
|
|
8971
8971
|
return {
|
|
8972
8972
|
top: 0,
|
|
8973
8973
|
right: 0,
|
|
@@ -8977,7 +8977,7 @@ function jy(e) {
|
|
|
8977
8977
|
};
|
|
8978
8978
|
}
|
|
8979
8979
|
function gp(e) {
|
|
8980
|
-
return typeof e != "number" ?
|
|
8980
|
+
return typeof e != "number" ? zy(e) : {
|
|
8981
8981
|
top: e,
|
|
8982
8982
|
right: e,
|
|
8983
8983
|
bottom: e,
|
|
@@ -9040,7 +9040,7 @@ function ru(e, t, r) {
|
|
|
9040
9040
|
y: o.y
|
|
9041
9041
|
};
|
|
9042
9042
|
}
|
|
9043
|
-
switch (
|
|
9043
|
+
switch (jr(t)) {
|
|
9044
9044
|
case "start":
|
|
9045
9045
|
f[a] -= h * (r && u ? -1 : 1);
|
|
9046
9046
|
break;
|
|
@@ -9050,7 +9050,7 @@ function ru(e, t, r) {
|
|
|
9050
9050
|
}
|
|
9051
9051
|
return f;
|
|
9052
9052
|
}
|
|
9053
|
-
const
|
|
9053
|
+
const jy = async (e, t, r) => {
|
|
9054
9054
|
const {
|
|
9055
9055
|
placement: o = "bottom",
|
|
9056
9056
|
strategy: i = "absolute",
|
|
@@ -9180,7 +9180,7 @@ const Vy = (e) => ({
|
|
|
9180
9180
|
}, f = Pa(i), v = Oa(f), _ = await a.getDimensions(u), m = f === "y", b = m ? "top" : "left", y = m ? "bottom" : "right", w = m ? "clientHeight" : "clientWidth", $ = n.reference[v] + n.reference[f] - h[f] - n.floating[v], S = h[f] - n.reference[f], C = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
|
|
9181
9181
|
let x = C ? C[w] : 0;
|
|
9182
9182
|
(!x || !await (a.isElement == null ? void 0 : a.isElement(C))) && (x = l.floating[w] || n.floating[v]);
|
|
9183
|
-
const R = $ / 2 - S / 2, E = x / 2 - _[v] / 2 - 1, O = Vt(d[b], E), P = Vt(d[y], E), L = O, D = x - _[v] - P, k = x / 2 - _[v] / 2 + R, G = Ji(L, k, D), U = !s.arrow &&
|
|
9183
|
+
const R = $ / 2 - S / 2, E = x / 2 - _[v] / 2 - 1, O = Vt(d[b], E), P = Vt(d[y], E), L = O, D = x - _[v] - P, k = x / 2 - _[v] / 2 + R, G = Ji(L, k, D), U = !s.arrow && jr(i) != null && k !== G && n.reference[v] / 2 - (k < L ? O : P) - _[v] / 2 < 0, F = U ? k < L ? k - L : k - D : 0;
|
|
9184
9184
|
return {
|
|
9185
9185
|
[f]: h[f] + F,
|
|
9186
9186
|
data: {
|
|
@@ -9250,13 +9250,13 @@ const Vy = (e) => ({
|
|
|
9250
9250
|
var D;
|
|
9251
9251
|
const F = (D = O.filter((I) => {
|
|
9252
9252
|
if (C) {
|
|
9253
|
-
const
|
|
9254
|
-
return
|
|
9253
|
+
const q = ct(I.placement);
|
|
9254
|
+
return q === y || // Create a bias to the `y` side axis due to horizontal
|
|
9255
9255
|
// reading directions favoring greater width.
|
|
9256
|
-
|
|
9256
|
+
q === "y";
|
|
9257
9257
|
}
|
|
9258
9258
|
return !0;
|
|
9259
|
-
}).map((I) => [I.placement, I.overflows.filter((
|
|
9259
|
+
}).map((I) => [I.placement, I.overflows.filter((q) => q > 0).reduce((q, le) => q + le, 0)]).sort((I, q) => I[1] - q[1])[0]) == null ? void 0 : D[0];
|
|
9260
9260
|
F && (U = F);
|
|
9261
9261
|
break;
|
|
9262
9262
|
}
|
|
@@ -9286,7 +9286,7 @@ function nu(e, t) {
|
|
|
9286
9286
|
function ou(e) {
|
|
9287
9287
|
return Oy.some((t) => e[t] >= 0);
|
|
9288
9288
|
}
|
|
9289
|
-
const
|
|
9289
|
+
const Hy = function(e) {
|
|
9290
9290
|
return e === void 0 && (e = {}), {
|
|
9291
9291
|
name: "hide",
|
|
9292
9292
|
options: e,
|
|
@@ -9328,12 +9328,12 @@ const qy = function(e) {
|
|
|
9328
9328
|
}
|
|
9329
9329
|
};
|
|
9330
9330
|
}, hp = /* @__PURE__ */ new Set(["left", "top"]);
|
|
9331
|
-
async function
|
|
9331
|
+
async function qy(e, t) {
|
|
9332
9332
|
const {
|
|
9333
9333
|
placement: r,
|
|
9334
9334
|
platform: o,
|
|
9335
9335
|
elements: i
|
|
9336
|
-
} = e, n = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), a = Et(r), l =
|
|
9336
|
+
} = e, n = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), a = Et(r), l = jr(r), s = ct(r) === "y", u = hp.has(a) ? -1 : 1, c = n && s ? -1 : 1, d = Rt(t, e);
|
|
9337
9337
|
let {
|
|
9338
9338
|
mainAxis: h,
|
|
9339
9339
|
crossAxis: f,
|
|
@@ -9366,7 +9366,7 @@ const Wy = function(e) {
|
|
|
9366
9366
|
y: n,
|
|
9367
9367
|
placement: a,
|
|
9368
9368
|
middlewareData: l
|
|
9369
|
-
} = t, s = await
|
|
9369
|
+
} = t, s = await qy(t, e);
|
|
9370
9370
|
return a === ((r = l.offset) == null ? void 0 : r.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
9371
9371
|
x: i + s.x,
|
|
9372
9372
|
y: n + s.y,
|
|
@@ -9490,7 +9490,7 @@ const Wy = function(e) {
|
|
|
9490
9490
|
apply: s = () => {
|
|
9491
9491
|
},
|
|
9492
9492
|
...u
|
|
9493
|
-
} = Rt(e, t), c = await vn(t, u), d = Et(i), h =
|
|
9493
|
+
} = Rt(e, t), c = await vn(t, u), d = Et(i), h = jr(i), f = ct(i) === "y", {
|
|
9494
9494
|
width: v,
|
|
9495
9495
|
height: _
|
|
9496
9496
|
} = n.floating;
|
|
@@ -9938,7 +9938,7 @@ function b$(e, t) {
|
|
|
9938
9938
|
} = u;
|
|
9939
9939
|
if (l || t(), !h || !f)
|
|
9940
9940
|
return;
|
|
9941
|
-
const v =
|
|
9941
|
+
const v = jn(d), _ = jn(i.clientWidth - (c + h)), m = jn(i.clientHeight - (d + f)), b = jn(c), y = {
|
|
9942
9942
|
rootMargin: -v + "px " + -_ + "px " + -m + "px " + -b + "px",
|
|
9943
9943
|
threshold: ke(0, Vt(1, s)) || 1
|
|
9944
9944
|
};
|
|
@@ -10003,7 +10003,7 @@ function w$(e, t, r, o) {
|
|
|
10003
10003
|
}), d?.(), (b = f) == null || b.disconnect(), f = null, s && cancelAnimationFrame(v);
|
|
10004
10004
|
};
|
|
10005
10005
|
}
|
|
10006
|
-
const y$ = Wy, $$ = Gy, x$ = By, S$ = Uy, C$ =
|
|
10006
|
+
const y$ = Wy, $$ = Gy, x$ = By, S$ = Uy, C$ = Hy, uu = Vy, R$ = Zy, E$ = (e, t, r) => {
|
|
10007
10007
|
const o = /* @__PURE__ */ new Map(), i = {
|
|
10008
10008
|
platform: m$,
|
|
10009
10009
|
...r
|
|
@@ -10011,7 +10011,7 @@ const y$ = Wy, $$ = Gy, x$ = By, S$ = Uy, C$ = qy, uu = Vy, R$ = Zy, E$ = (e, t,
|
|
|
10011
10011
|
...i.platform,
|
|
10012
10012
|
_c: o
|
|
10013
10013
|
};
|
|
10014
|
-
return
|
|
10014
|
+
return jy(e, t, {
|
|
10015
10015
|
...i,
|
|
10016
10016
|
platform: n
|
|
10017
10017
|
});
|
|
@@ -10096,9 +10096,9 @@ function P$(e) {
|
|
|
10096
10096
|
strategy: r,
|
|
10097
10097
|
middleware: h
|
|
10098
10098
|
};
|
|
10099
|
-
P.current && (I.platform = P.current), E$(C.current, x.current, I).then((
|
|
10099
|
+
P.current && (I.platform = P.current), E$(C.current, x.current, I).then((q) => {
|
|
10100
10100
|
const le = {
|
|
10101
|
-
...
|
|
10101
|
+
...q,
|
|
10102
10102
|
// The floating element's position may be recomputed while it's closed
|
|
10103
10103
|
// but still mounted (such as when transitioning out). To ensure
|
|
10104
10104
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
@@ -10142,16 +10142,16 @@ function P$(e) {
|
|
|
10142
10142
|
};
|
|
10143
10143
|
if (!U.floating)
|
|
10144
10144
|
return I;
|
|
10145
|
-
const
|
|
10145
|
+
const q = cu(U.floating, c.x), le = cu(U.floating, c.y);
|
|
10146
10146
|
return l ? {
|
|
10147
10147
|
...I,
|
|
10148
|
-
transform: "translate(" +
|
|
10148
|
+
transform: "translate(" + q + "px, " + le + "px)",
|
|
10149
10149
|
...Sp(U.floating) >= 1.5 && {
|
|
10150
10150
|
willChange: "transform"
|
|
10151
10151
|
}
|
|
10152
10152
|
} : {
|
|
10153
10153
|
position: r,
|
|
10154
|
-
left:
|
|
10154
|
+
left: q,
|
|
10155
10155
|
top: le
|
|
10156
10156
|
};
|
|
10157
10157
|
}, [r, l, U.floating, c.x, c.y]);
|
|
@@ -10206,10 +10206,10 @@ const D$ = (e) => {
|
|
|
10206
10206
|
...D$(e),
|
|
10207
10207
|
options: [e, t]
|
|
10208
10208
|
});
|
|
10209
|
-
var
|
|
10209
|
+
var z$ = "Arrow", Cp = p.forwardRef((e, t) => {
|
|
10210
10210
|
const { children: r, width: o = 10, height: i = 5, ...n } = e;
|
|
10211
10211
|
return /* @__PURE__ */ g(
|
|
10212
|
-
|
|
10212
|
+
Ht.svg,
|
|
10213
10213
|
{
|
|
10214
10214
|
...n,
|
|
10215
10215
|
ref: t,
|
|
@@ -10221,8 +10221,8 @@ var j$ = "Arrow", Cp = p.forwardRef((e, t) => {
|
|
|
10221
10221
|
}
|
|
10222
10222
|
);
|
|
10223
10223
|
});
|
|
10224
|
-
Cp.displayName =
|
|
10225
|
-
var
|
|
10224
|
+
Cp.displayName = z$;
|
|
10225
|
+
var j$ = Cp;
|
|
10226
10226
|
function V$(e) {
|
|
10227
10227
|
const [t, r] = p.useState(void 0);
|
|
10228
10228
|
return rr(() => {
|
|
@@ -10255,11 +10255,11 @@ var Pp = "PopperAnchor", Dp = p.forwardRef(
|
|
|
10255
10255
|
const { __scopePopper: r, virtualRef: o, ...i } = e, n = Np(Pp, r), a = p.useRef(null), l = sr(t, a);
|
|
10256
10256
|
return p.useEffect(() => {
|
|
10257
10257
|
n.onAnchorChange(o?.current || a.current);
|
|
10258
|
-
}), o ? null : /* @__PURE__ */ g(
|
|
10258
|
+
}), o ? null : /* @__PURE__ */ g(Ht.div, { ...i, ref: l });
|
|
10259
10259
|
}
|
|
10260
10260
|
);
|
|
10261
10261
|
Dp.displayName = Pp;
|
|
10262
|
-
var Ia = "PopperContent", [
|
|
10262
|
+
var Ia = "PopperContent", [H$, q$] = Rp(Ia), Ap = p.forwardRef(
|
|
10263
10263
|
(e, t) => {
|
|
10264
10264
|
const {
|
|
10265
10265
|
__scopePopper: r,
|
|
@@ -10302,20 +10302,20 @@ var Ia = "PopperContent", [q$, H$] = Rp(Ia), Ap = p.forwardRef(
|
|
|
10302
10302
|
s && I$({ ...D }),
|
|
10303
10303
|
L$({
|
|
10304
10304
|
...D,
|
|
10305
|
-
apply: ({ elements: xe, rects: De, availableWidth: se, availableHeight:
|
|
10305
|
+
apply: ({ elements: xe, rects: De, availableWidth: se, availableHeight: H }) => {
|
|
10306
10306
|
const { width: J, height: ve } = De.reference, Se = xe.floating.style;
|
|
10307
|
-
Se.setProperty("--radix-popper-available-width", `${se}px`), Se.setProperty("--radix-popper-available-height", `${
|
|
10307
|
+
Se.setProperty("--radix-popper-available-width", `${se}px`), Se.setProperty("--radix-popper-available-height", `${H}px`), Se.setProperty("--radix-popper-anchor-width", `${J}px`), Se.setProperty("--radix-popper-anchor-height", `${ve}px`);
|
|
10308
10308
|
}
|
|
10309
10309
|
}),
|
|
10310
10310
|
$ && F$({ element: $, padding: l }),
|
|
10311
10311
|
Z$({ arrowWidth: x, arrowHeight: R }),
|
|
10312
10312
|
h && T$({ strategy: "referenceHidden", ...D })
|
|
10313
10313
|
]
|
|
10314
|
-
}), [
|
|
10314
|
+
}), [q, le] = Ip(U), Ze = zr(v);
|
|
10315
10315
|
rr(() => {
|
|
10316
10316
|
F && Ze?.();
|
|
10317
10317
|
}, [F, Ze]);
|
|
10318
|
-
const ne = I.arrow?.x, Pe = I.arrow?.y,
|
|
10318
|
+
const ne = I.arrow?.x, Pe = I.arrow?.y, je = I.arrow?.centerOffset !== 0, [at, ge] = p.useState();
|
|
10319
10319
|
return rr(() => {
|
|
10320
10320
|
b && ge(window.getComputedStyle(b).zIndex);
|
|
10321
10321
|
}, [b]), /* @__PURE__ */ g(
|
|
@@ -10343,18 +10343,18 @@ var Ia = "PopperContent", [q$, H$] = Rp(Ia), Ap = p.forwardRef(
|
|
|
10343
10343
|
},
|
|
10344
10344
|
dir: e.dir,
|
|
10345
10345
|
children: /* @__PURE__ */ g(
|
|
10346
|
-
|
|
10346
|
+
H$,
|
|
10347
10347
|
{
|
|
10348
10348
|
scope: r,
|
|
10349
|
-
placedSide:
|
|
10349
|
+
placedSide: q,
|
|
10350
10350
|
onArrowChange: S,
|
|
10351
10351
|
arrowX: ne,
|
|
10352
10352
|
arrowY: Pe,
|
|
10353
|
-
shouldHideArrow:
|
|
10353
|
+
shouldHideArrow: je,
|
|
10354
10354
|
children: /* @__PURE__ */ g(
|
|
10355
|
-
|
|
10355
|
+
Ht.div,
|
|
10356
10356
|
{
|
|
10357
|
-
"data-side":
|
|
10357
|
+
"data-side": q,
|
|
10358
10358
|
"data-align": le,
|
|
10359
10359
|
..._,
|
|
10360
10360
|
ref: w,
|
|
@@ -10379,7 +10379,7 @@ var Mp = "PopperArrow", W$ = {
|
|
|
10379
10379
|
bottom: "top",
|
|
10380
10380
|
left: "right"
|
|
10381
10381
|
}, kp = p.forwardRef(function(e, t) {
|
|
10382
|
-
const { __scopePopper: r, ...o } = e, i =
|
|
10382
|
+
const { __scopePopper: r, ...o } = e, i = q$(Mp, r), n = W$[i.placedSide];
|
|
10383
10383
|
return (
|
|
10384
10384
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
10385
10385
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -10408,7 +10408,7 @@ var Mp = "PopperArrow", W$ = {
|
|
|
10408
10408
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
10409
10409
|
},
|
|
10410
10410
|
children: /* @__PURE__ */ g(
|
|
10411
|
-
|
|
10411
|
+
j$,
|
|
10412
10412
|
{
|
|
10413
10413
|
...o,
|
|
10414
10414
|
ref: t,
|
|
@@ -10444,7 +10444,7 @@ var U$ = Op, X$ = Dp, Y$ = Ap, K$ = kp, J$ = "Portal", Lp = p.forwardRef((e, t)
|
|
|
10444
10444
|
const { container: r, ...o } = e, [i, n] = p.useState(!1);
|
|
10445
10445
|
rr(() => n(!0), []);
|
|
10446
10446
|
const a = r || i && globalThis?.document?.body;
|
|
10447
|
-
return a ? Mc.createPortal(/* @__PURE__ */ g(
|
|
10447
|
+
return a ? Mc.createPortal(/* @__PURE__ */ g(Ht.div, { ...o, ref: t }), a) : null;
|
|
10448
10448
|
});
|
|
10449
10449
|
Lp.displayName = J$;
|
|
10450
10450
|
function Q$(e, t) {
|
|
@@ -10517,7 +10517,7 @@ function r2({
|
|
|
10517
10517
|
onChange: r = () => {
|
|
10518
10518
|
}
|
|
10519
10519
|
}) {
|
|
10520
|
-
const [o, i] = n2({ defaultProp: t, onChange: r }), n = e !== void 0, a = n ? e : o, l =
|
|
10520
|
+
const [o, i] = n2({ defaultProp: t, onChange: r }), n = e !== void 0, a = n ? e : o, l = zr(r), s = p.useCallback(
|
|
10521
10521
|
(u) => {
|
|
10522
10522
|
if (n) {
|
|
10523
10523
|
const c = typeof u == "function" ? u(e) : u;
|
|
@@ -10533,14 +10533,14 @@ function n2({
|
|
|
10533
10533
|
defaultProp: e,
|
|
10534
10534
|
onChange: t
|
|
10535
10535
|
}) {
|
|
10536
|
-
const r = p.useState(e), [o] = r, i = p.useRef(o), n =
|
|
10536
|
+
const r = p.useState(e), [o] = r, i = p.useRef(o), n = zr(t);
|
|
10537
10537
|
return p.useEffect(() => {
|
|
10538
10538
|
i.current !== o && (n(o), i.current = o);
|
|
10539
10539
|
}, [o, i, n]), r;
|
|
10540
10540
|
}
|
|
10541
10541
|
var o2 = "VisuallyHidden", Tp = p.forwardRef(
|
|
10542
10542
|
(e, t) => /* @__PURE__ */ g(
|
|
10543
|
-
|
|
10543
|
+
Ht.span,
|
|
10544
10544
|
{
|
|
10545
10545
|
...e,
|
|
10546
10546
|
ref: t,
|
|
@@ -10564,7 +10564,7 @@ var o2 = "VisuallyHidden", Tp = p.forwardRef(
|
|
|
10564
10564
|
Tp.displayName = o2;
|
|
10565
10565
|
var i2 = Tp, [ko] = sp("Tooltip", [
|
|
10566
10566
|
Ep
|
|
10567
|
-
]), Io = Ep(), Fp = "TooltipProvider", a2 = 700, ta = "tooltip.open", [l2, Ta] = ko(Fp),
|
|
10567
|
+
]), Io = Ep(), Fp = "TooltipProvider", a2 = 700, ta = "tooltip.open", [l2, Ta] = ko(Fp), zp = (e) => {
|
|
10568
10568
|
const {
|
|
10569
10569
|
__scopeTooltip: t,
|
|
10570
10570
|
delayDuration: r = a2,
|
|
@@ -10599,8 +10599,8 @@ var i2 = Tp, [ko] = sp("Tooltip", [
|
|
|
10599
10599
|
}
|
|
10600
10600
|
);
|
|
10601
10601
|
};
|
|
10602
|
-
|
|
10603
|
-
var Lo = "Tooltip", [s2, Sn] = ko(Lo),
|
|
10602
|
+
zp.displayName = Fp;
|
|
10603
|
+
var Lo = "Tooltip", [s2, Sn] = ko(Lo), jp = (e) => {
|
|
10604
10604
|
const {
|
|
10605
10605
|
__scopeTooltip: t,
|
|
10606
10606
|
children: r,
|
|
@@ -10648,12 +10648,12 @@ var Lo = "Tooltip", [s2, Sn] = ko(Lo), zp = (e) => {
|
|
|
10648
10648
|
}
|
|
10649
10649
|
) });
|
|
10650
10650
|
};
|
|
10651
|
-
|
|
10651
|
+
jp.displayName = Lo;
|
|
10652
10652
|
var ra = "TooltipTrigger", Vp = p.forwardRef(
|
|
10653
10653
|
(e, t) => {
|
|
10654
10654
|
const { __scopeTooltip: r, ...o } = e, i = Sn(ra, r), n = Ta(ra, r), a = Io(r), l = p.useRef(null), s = sr(t, l, i.onTriggerChange), u = p.useRef(!1), c = p.useRef(!1), d = p.useCallback(() => u.current = !1, []);
|
|
10655
10655
|
return p.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ g(X$, { asChild: !0, ...a, children: /* @__PURE__ */ g(
|
|
10656
|
-
|
|
10656
|
+
Ht.button,
|
|
10657
10657
|
{
|
|
10658
10658
|
"aria-describedby": i.open ? i.contentId : void 0,
|
|
10659
10659
|
"data-state": i.stateAttribute,
|
|
@@ -10685,10 +10685,10 @@ var Fa = "TooltipPortal", [u2, c2] = ko(Fa, {
|
|
|
10685
10685
|
return /* @__PURE__ */ g(u2, { scope: t, forceMount: r, children: /* @__PURE__ */ g(La, { present: r || n.open, children: /* @__PURE__ */ g(Lp, { asChild: !0, container: i, children: o }) }) });
|
|
10686
10686
|
};
|
|
10687
10687
|
Bp.displayName = Fa;
|
|
10688
|
-
var Dr = "TooltipContent",
|
|
10688
|
+
var Dr = "TooltipContent", Hp = p.forwardRef(
|
|
10689
10689
|
(e, t) => {
|
|
10690
10690
|
const r = c2(Dr, e.__scopeTooltip), { forceMount: o = r.forceMount, side: i = "top", ...n } = e, a = Sn(Dr, e.__scopeTooltip);
|
|
10691
|
-
return /* @__PURE__ */ g(La, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ g(
|
|
10691
|
+
return /* @__PURE__ */ g(La, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ g(qp, { side: i, ...n, ref: t }) : /* @__PURE__ */ g(d2, { side: i, ...n, ref: t }) });
|
|
10692
10692
|
}
|
|
10693
10693
|
), d2 = p.forwardRef((e, t) => {
|
|
10694
10694
|
const r = Sn(Dr, e.__scopeTooltip), o = Ta(Dr, e.__scopeTooltip), i = p.useRef(null), n = sr(t, i), [a, l] = p.useState(null), { trigger: s, onClose: u } = r, c = i.current, { onPointerInTransitChange: d } = o, h = p.useCallback(() => {
|
|
@@ -10715,8 +10715,8 @@ var Dr = "TooltipContent", qp = p.forwardRef(
|
|
|
10715
10715
|
};
|
|
10716
10716
|
return document.addEventListener("pointermove", v), () => document.removeEventListener("pointermove", v);
|
|
10717
10717
|
}
|
|
10718
|
-
}, [s, c, a, u, h]), /* @__PURE__ */ g(
|
|
10719
|
-
}), [p2, f2] = ko(Lo, { isInside: !1 }),
|
|
10718
|
+
}, [s, c, a, u, h]), /* @__PURE__ */ g(qp, { ...e, ref: n });
|
|
10719
|
+
}), [p2, f2] = ko(Lo, { isInside: !1 }), qp = p.forwardRef(
|
|
10720
10720
|
(e, t) => {
|
|
10721
10721
|
const {
|
|
10722
10722
|
__scopeTooltip: r,
|
|
@@ -10767,7 +10767,7 @@ var Dr = "TooltipContent", qp = p.forwardRef(
|
|
|
10767
10767
|
);
|
|
10768
10768
|
}
|
|
10769
10769
|
);
|
|
10770
|
-
|
|
10770
|
+
Hp.displayName = Dr;
|
|
10771
10771
|
var Wp = "TooltipArrow", Gp = p.forwardRef(
|
|
10772
10772
|
(e, t) => {
|
|
10773
10773
|
const { __scopeTooltip: r, ...o } = e, i = Io(r);
|
|
@@ -10870,7 +10870,7 @@ function b2(e) {
|
|
|
10870
10870
|
}
|
|
10871
10871
|
return r.pop(), t.length === 1 && r.length === 1 && t[0].x === r[0].x && t[0].y === r[0].y ? t : t.concat(r);
|
|
10872
10872
|
}
|
|
10873
|
-
var w2 =
|
|
10873
|
+
var w2 = zp, y2 = jp, $2 = Vp, x2 = Bp, S2 = Hp, C2 = Gp;
|
|
10874
10874
|
function R2(e) {
|
|
10875
10875
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
10876
10876
|
}
|
|
@@ -11027,7 +11027,7 @@ function T2(...e) {
|
|
|
11027
11027
|
}
|
|
11028
11028
|
// @__NO_SIDE_EFFECTS__
|
|
11029
11029
|
function F2(e) {
|
|
11030
|
-
const t = /* @__PURE__ */
|
|
11030
|
+
const t = /* @__PURE__ */ z2(e), r = p.forwardRef((o, i) => {
|
|
11031
11031
|
const { children: n, ...a } = o, l = p.Children.toArray(n), s = l.find(V2);
|
|
11032
11032
|
if (s) {
|
|
11033
11033
|
const u = s.props.children, c = l.map((d) => d === s ? p.Children.count(u) > 1 ? p.Children.only(null) : p.isValidElement(u) ? u.props.children : null : d);
|
|
@@ -11038,20 +11038,20 @@ function F2(e) {
|
|
|
11038
11038
|
return r.displayName = `${e}.Slot`, r;
|
|
11039
11039
|
}
|
|
11040
11040
|
// @__NO_SIDE_EFFECTS__
|
|
11041
|
-
function
|
|
11041
|
+
function z2(e) {
|
|
11042
11042
|
const t = p.forwardRef((r, o) => {
|
|
11043
11043
|
const { children: i, ...n } = r;
|
|
11044
11044
|
if (p.isValidElement(i)) {
|
|
11045
|
-
const a =
|
|
11045
|
+
const a = H2(i), l = B2(n, i.props);
|
|
11046
11046
|
return i.type !== p.Fragment && (l.ref = o ? T2(o, a) : a), p.cloneElement(i, l);
|
|
11047
11047
|
}
|
|
11048
11048
|
return p.Children.count(i) > 1 ? p.Children.only(null) : null;
|
|
11049
11049
|
});
|
|
11050
11050
|
return t.displayName = `${e}.SlotClone`, t;
|
|
11051
11051
|
}
|
|
11052
|
-
var
|
|
11052
|
+
var j2 = Symbol("radix.slottable");
|
|
11053
11053
|
function V2(e) {
|
|
11054
|
-
return p.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
11054
|
+
return p.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === j2;
|
|
11055
11055
|
}
|
|
11056
11056
|
function B2(e, t) {
|
|
11057
11057
|
const r = { ...t };
|
|
@@ -11063,11 +11063,11 @@ function B2(e, t) {
|
|
|
11063
11063
|
}
|
|
11064
11064
|
return { ...e, ...r };
|
|
11065
11065
|
}
|
|
11066
|
-
function
|
|
11066
|
+
function H2(e) {
|
|
11067
11067
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
11068
11068
|
return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
11069
11069
|
}
|
|
11070
|
-
var
|
|
11070
|
+
var q2 = [
|
|
11071
11071
|
"a",
|
|
11072
11072
|
"button",
|
|
11073
11073
|
"div",
|
|
@@ -11084,7 +11084,7 @@ var H2 = [
|
|
|
11084
11084
|
"span",
|
|
11085
11085
|
"svg",
|
|
11086
11086
|
"ul"
|
|
11087
|
-
], W2 =
|
|
11087
|
+
], W2 = q2.reduce((e, t) => {
|
|
11088
11088
|
const r = /* @__PURE__ */ F2(`Primitive.${t}`), o = p.forwardRef((i, n) => {
|
|
11089
11089
|
const { asChild: a, ...l } = i, s = a ? r : t;
|
|
11090
11090
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g(s, { ...l, ref: n });
|
|
@@ -11195,7 +11195,7 @@ function K2({
|
|
|
11195
11195
|
};
|
|
11196
11196
|
}, [t, e]), r;
|
|
11197
11197
|
}
|
|
11198
|
-
function
|
|
11198
|
+
function za({
|
|
11199
11199
|
itemId: e,
|
|
11200
11200
|
sortableId: t,
|
|
11201
11201
|
enableDrag: r
|
|
@@ -11227,8 +11227,8 @@ function Yp(e, t = 1) {
|
|
|
11227
11227
|
};
|
|
11228
11228
|
}, [e, t]), r;
|
|
11229
11229
|
}
|
|
11230
|
-
const
|
|
11231
|
-
const [e, t] = T(!1), [r, o] = T(!1), i =
|
|
11230
|
+
const ja = () => {
|
|
11231
|
+
const [e, t] = T(!1), [r, o] = T(!1), i = j(null);
|
|
11232
11232
|
return B(() => {
|
|
11233
11233
|
const l = () => {
|
|
11234
11234
|
if (i.current) {
|
|
@@ -11271,15 +11271,15 @@ const za = () => {
|
|
|
11271
11271
|
columnDragAriaLabel: f,
|
|
11272
11272
|
tableHasFilters: v
|
|
11273
11273
|
}) => {
|
|
11274
|
-
const _ =
|
|
11274
|
+
const _ = j(null), { attributes: m, listeners: b, setNodeRef: y, isSorting: w } = Sd({
|
|
11275
11275
|
id: c || r.id,
|
|
11276
11276
|
disabled: !u || d !== null
|
|
11277
|
-
}), $ = d === r.id || c === d, S = (h || w) && $, C = r.column.id === "row-selection" || r.id === "row-selection", x = r.column.id === "row-radio" || r.id === "row-radio", R = t && r.column.getCanSort(), E = r.column.columnDef.meta?.filterVariant !== void 0 && v, O =
|
|
11277
|
+
}), $ = d === r.id || c === d, S = (h || w) && $, C = r.column.id === "row-selection" || r.id === "row-selection", x = r.column.id === "row-radio" || r.id === "row-radio", R = t && r.column.getCanSort(), E = r.column.columnDef.meta?.filterVariant !== void 0 && v, O = za({
|
|
11278
11278
|
itemId: r.id,
|
|
11279
11279
|
sortableId: c,
|
|
11280
11280
|
enableDrag: !!u
|
|
11281
|
-
}), P = Yp(_, 1), L = (
|
|
11282
|
-
switch (
|
|
11281
|
+
}), P = Yp(_, 1), L = (q) => {
|
|
11282
|
+
switch (q) {
|
|
11283
11283
|
case "desc":
|
|
11284
11284
|
return "descending";
|
|
11285
11285
|
case "asc":
|
|
@@ -11288,8 +11288,8 @@ const za = () => {
|
|
|
11288
11288
|
default:
|
|
11289
11289
|
return "none";
|
|
11290
11290
|
}
|
|
11291
|
-
}, D = Fo(r.getSize()), k = r.column.getIsFirstColumn(), G = r.column.getIsLastColumn(), U = typeof r.column.columnDef.header == "string" ? `${r.column.columnDef.header}` : void 0, F = (
|
|
11292
|
-
_.current =
|
|
11291
|
+
}, D = Fo(r.getSize()), k = r.column.getIsFirstColumn(), G = r.column.getIsLastColumn(), U = typeof r.column.columnDef.header == "string" ? `${r.column.columnDef.header}` : void 0, F = (q) => {
|
|
11292
|
+
_.current = q, y && y(q);
|
|
11293
11293
|
}, I = K2({
|
|
11294
11294
|
elementRef: _,
|
|
11295
11295
|
dropIndicatorPosition: O
|
|
@@ -11431,7 +11431,7 @@ const za = () => {
|
|
|
11431
11431
|
header: e,
|
|
11432
11432
|
className: t
|
|
11433
11433
|
}) => {
|
|
11434
|
-
const { showPopover: r, containerRef: o, onMouseEnter: i, onMouseLeave: n } =
|
|
11434
|
+
const { showPopover: r, containerRef: o, onMouseEnter: i, onMouseLeave: n } = ja(), a = qc(e.column.columnDef.header, e.getContext()), l = /* @__PURE__ */ g(
|
|
11435
11435
|
"div",
|
|
11436
11436
|
{
|
|
11437
11437
|
ref: o,
|
|
@@ -11495,7 +11495,7 @@ const za = () => {
|
|
|
11495
11495
|
value: (typeof n == "object" && "value" in n ? n.value : n) ?? "",
|
|
11496
11496
|
placeholder: o,
|
|
11497
11497
|
"aria-label": i,
|
|
11498
|
-
startAdornment: /* @__PURE__ */ g(
|
|
11498
|
+
startAdornment: /* @__PURE__ */ g(zd, { size: "xs" }, "search-icon")
|
|
11499
11499
|
}
|
|
11500
11500
|
);
|
|
11501
11501
|
}
|
|
@@ -11750,7 +11750,7 @@ const xu = /* @__PURE__ */ Sx(Rx), wi = {
|
|
|
11750
11750
|
const { variant: r, children: o, ...i } = t;
|
|
11751
11751
|
return /* @__PURE__ */ g(Nx, { variant: r, ...i, children: o });
|
|
11752
11752
|
}, $i = K.bind(te), Px = ({ cell: e }) => {
|
|
11753
|
-
const t = e.getValue(), { showPopover: r, containerRef: o, onMouseEnter: i, onMouseLeave: n } =
|
|
11753
|
+
const t = e.getValue(), { showPopover: r, containerRef: o, onMouseEnter: i, onMouseLeave: n } = ja();
|
|
11754
11754
|
if (t == null || t === "")
|
|
11755
11755
|
return /* @__PURE__ */ g(Fe, {});
|
|
11756
11756
|
const a = Fo(e.column.getSize()), l = /* @__PURE__ */ g(
|
|
@@ -11852,7 +11852,7 @@ const Tx = /* @__PURE__ */ kx(Lx), Fx = {
|
|
|
11852
11852
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
11853
11853
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
11854
11854
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
11855
|
-
},
|
|
11855
|
+
}, zx = Tx.bind(Fx), Ru = "purpur-icon", jx = "md", Vx = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), Bx = ({ content: e = "", title: t } = {}) => {
|
|
11856
11856
|
const r = [
|
|
11857
11857
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
11858
11858
|
{ name: "fill", value: "currentColor" },
|
|
@@ -11860,15 +11860,15 @@ const Tx = /* @__PURE__ */ kx(Lx), Fx = {
|
|
|
11860
11860
|
t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
11861
11861
|
], o = t ? `<title>${t}</title>` : "";
|
|
11862
11862
|
return `<svg ${Vx(r)}>${o}${e}</svg>`;
|
|
11863
|
-
},
|
|
11863
|
+
}, Hx = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Qp = ({ svg: e, allyTitle: t, className: r, size: o = jx, ...i }) => {
|
|
11864
11864
|
const n = Bx({
|
|
11865
|
-
content:
|
|
11865
|
+
content: Hx(e.svg),
|
|
11866
11866
|
title: t
|
|
11867
|
-
}), a =
|
|
11867
|
+
}), a = zx(Ru, `${Ru}--${o}`, r);
|
|
11868
11868
|
return /* @__PURE__ */ g("span", { className: a, dangerouslySetInnerHTML: { __html: n }, ...i });
|
|
11869
11869
|
};
|
|
11870
11870
|
Qp.displayName = "Icon";
|
|
11871
|
-
const
|
|
11871
|
+
const qx = {
|
|
11872
11872
|
name: "arrow-left",
|
|
11873
11873
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3.1 12a.9.9 0 0 1 .264-.636l5.5-5.5a.9.9 0 0 1 1.272 1.272L6.173 11.1H20a.9.9 0 0 1 0 1.8H6.173l3.963 3.964a.9.9 0 1 1-1.272 1.272l-5.5-5.5A.9.9 0 0 1 3.1 12Z" clip-rule="evenodd"/></svg>',
|
|
11874
11874
|
keywords: ["arrow-left"],
|
|
@@ -11945,7 +11945,7 @@ const Kx = /* @__PURE__ */ Ux(Yx), Jx = {
|
|
|
11945
11945
|
}, Ou = Kx.bind(Jx), Jt = "purpur-cta-link", Qx = {
|
|
11946
11946
|
forward: Wx,
|
|
11947
11947
|
external: Gx,
|
|
11948
|
-
back:
|
|
11948
|
+
back: qx,
|
|
11949
11949
|
phone: Zx
|
|
11950
11950
|
}, ef = fe(
|
|
11951
11951
|
({
|
|
@@ -12134,7 +12134,7 @@ const pS = /* @__PURE__ */ uS(dS), fS = {
|
|
|
12134
12134
|
);
|
|
12135
12135
|
rf.displayName = "Link";
|
|
12136
12136
|
const xi = K.bind(te), hS = ({ cell: e }) => {
|
|
12137
|
-
const t = e.getValue(), { hasPopover: r, showPopover: o, containerRef: i, onMouseEnter: n, onMouseLeave: a } =
|
|
12137
|
+
const t = e.getValue(), { hasPopover: r, showPopover: o, containerRef: i, onMouseEnter: n, onMouseLeave: a } = ja();
|
|
12138
12138
|
if (!t)
|
|
12139
12139
|
return /* @__PURE__ */ g(Fe, {});
|
|
12140
12140
|
const { children: l, href: s, variant: u, ...c } = t, d = Fo(e.column.getSize()), h = /* @__PURE__ */ g(
|
|
@@ -12306,7 +12306,7 @@ function IS(e) {
|
|
|
12306
12306
|
const t = p.forwardRef((r, o) => {
|
|
12307
12307
|
const { children: i, ...n } = r;
|
|
12308
12308
|
if (p.isValidElement(i)) {
|
|
12309
|
-
const a =
|
|
12309
|
+
const a = zS(i), l = FS(n, i.props);
|
|
12310
12310
|
return i.type !== p.Fragment && (l.ref = o ? MS(o, a) : a), p.cloneElement(i, l);
|
|
12311
12311
|
}
|
|
12312
12312
|
return p.Children.count(i) > 1 ? p.Children.only(null) : null;
|
|
@@ -12328,11 +12328,11 @@ function FS(e, t) {
|
|
|
12328
12328
|
}
|
|
12329
12329
|
return { ...e, ...r };
|
|
12330
12330
|
}
|
|
12331
|
-
function
|
|
12331
|
+
function zS(e) {
|
|
12332
12332
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
12333
12333
|
return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
12334
12334
|
}
|
|
12335
|
-
var
|
|
12335
|
+
var jS = [
|
|
12336
12336
|
"a",
|
|
12337
12337
|
"button",
|
|
12338
12338
|
"div",
|
|
@@ -12350,7 +12350,7 @@ var zS = [
|
|
|
12350
12350
|
"span",
|
|
12351
12351
|
"svg",
|
|
12352
12352
|
"ul"
|
|
12353
|
-
], VS =
|
|
12353
|
+
], VS = jS.reduce((e, t) => {
|
|
12354
12354
|
const r = /* @__PURE__ */ kS(`Primitive.${t}`), o = p.forwardRef((i, n) => {
|
|
12355
12355
|
const { asChild: a, ...l } = i, s = a ? r : t;
|
|
12356
12356
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g(s, { ...l, ref: n });
|
|
@@ -12367,8 +12367,8 @@ var zS = [
|
|
|
12367
12367
|
}
|
|
12368
12368
|
));
|
|
12369
12369
|
of.displayName = BS;
|
|
12370
|
-
var
|
|
12371
|
-
function
|
|
12370
|
+
var HS = of;
|
|
12371
|
+
function qS(e) {
|
|
12372
12372
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
12373
12373
|
}
|
|
12374
12374
|
var Lu = { exports: {} }, Tu;
|
|
@@ -12405,7 +12405,7 @@ function WS() {
|
|
|
12405
12405
|
})(Lu)), Lu.exports;
|
|
12406
12406
|
}
|
|
12407
12407
|
var GS = WS();
|
|
12408
|
-
const ZS = /* @__PURE__ */
|
|
12408
|
+
const ZS = /* @__PURE__ */ qS(GS), US = {
|
|
12409
12409
|
"purpur-label": "_purpur-label_1x80u_1",
|
|
12410
12410
|
"purpur-label--negative": "_purpur-label--negative_1x80u_8",
|
|
12411
12411
|
"purpur-label--disabled": "_purpur-label--disabled_1x80u_11"
|
|
@@ -12420,14 +12420,14 @@ const ZS = /* @__PURE__ */ HS(GS), US = {
|
|
|
12420
12420
|
[`${Si}--disabled`]: r,
|
|
12421
12421
|
[`${Si}--negative`]: o
|
|
12422
12422
|
});
|
|
12423
|
-
return /* @__PURE__ */ g(
|
|
12423
|
+
return /* @__PURE__ */ g(HS, { className: n, ...i, children: e });
|
|
12424
12424
|
};
|
|
12425
12425
|
function KS(e) {
|
|
12426
12426
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
12427
12427
|
}
|
|
12428
|
-
var Fu = { exports: {} },
|
|
12428
|
+
var Fu = { exports: {} }, zu;
|
|
12429
12429
|
function JS() {
|
|
12430
|
-
return
|
|
12430
|
+
return zu || (zu = 1, (function(e) {
|
|
12431
12431
|
(function() {
|
|
12432
12432
|
var t = {}.hasOwnProperty;
|
|
12433
12433
|
function r() {
|
|
@@ -12500,7 +12500,7 @@ function o5(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
|
12500
12500
|
return t?.(o);
|
|
12501
12501
|
};
|
|
12502
12502
|
}
|
|
12503
|
-
function
|
|
12503
|
+
function ju(e, t) {
|
|
12504
12504
|
if (typeof e == "function")
|
|
12505
12505
|
return e(t);
|
|
12506
12506
|
e != null && (e.current = t);
|
|
@@ -12509,14 +12509,14 @@ function lf(...e) {
|
|
|
12509
12509
|
return (t) => {
|
|
12510
12510
|
let r = !1;
|
|
12511
12511
|
const o = e.map((i) => {
|
|
12512
|
-
const n =
|
|
12512
|
+
const n = ju(i, t);
|
|
12513
12513
|
return !r && typeof n == "function" && (r = !0), n;
|
|
12514
12514
|
});
|
|
12515
12515
|
if (r)
|
|
12516
12516
|
return () => {
|
|
12517
12517
|
for (let i = 0; i < o.length; i++) {
|
|
12518
12518
|
const n = o[i];
|
|
12519
|
-
typeof n == "function" ? n() :
|
|
12519
|
+
typeof n == "function" ? n() : ju(e[i], null);
|
|
12520
12520
|
}
|
|
12521
12521
|
};
|
|
12522
12522
|
};
|
|
@@ -12837,7 +12837,7 @@ function E5() {
|
|
|
12837
12837
|
})(Vu)), Vu.exports;
|
|
12838
12838
|
}
|
|
12839
12839
|
var N5 = E5();
|
|
12840
|
-
const O5 = /* @__PURE__ */ R5(N5),
|
|
12840
|
+
const O5 = /* @__PURE__ */ R5(N5), Hu = (e) => e && "touches" in e, P5 = ({
|
|
12841
12841
|
children: e,
|
|
12842
12842
|
disabled: t,
|
|
12843
12843
|
onStart: r,
|
|
@@ -12850,14 +12850,14 @@ const O5 = /* @__PURE__ */ R5(N5), qu = (e) => e && "touches" in e, P5 = ({
|
|
|
12850
12850
|
const [s, u] = T(void 0), [c, d] = T(void 0), [h, f] = T(!1), v = (b) => {
|
|
12851
12851
|
if (!t) {
|
|
12852
12852
|
b.preventDefault();
|
|
12853
|
-
const y =
|
|
12853
|
+
const y = Hu(b.nativeEvent) ? b.nativeEvent.touches[0].clientX : b.nativeEvent.clientX;
|
|
12854
12854
|
d(y), r?.();
|
|
12855
12855
|
}
|
|
12856
12856
|
}, _ = ae(
|
|
12857
12857
|
(b) => {
|
|
12858
12858
|
if (typeof c != "number")
|
|
12859
12859
|
return;
|
|
12860
|
-
const y = (
|
|
12860
|
+
const y = (Hu(b) ? b.touches[0].clientX : b.clientX) - c;
|
|
12861
12861
|
if (!y)
|
|
12862
12862
|
return;
|
|
12863
12863
|
const w = a + y;
|
|
@@ -12879,12 +12879,12 @@ const O5 = /* @__PURE__ */ R5(N5), qu = (e) => e && "touches" in e, P5 = ({
|
|
|
12879
12879
|
onTouchStart: v,
|
|
12880
12880
|
style: { ...l, transform: `translateX(${h ? s : a}px)` }
|
|
12881
12881
|
}) : null;
|
|
12882
|
-
},
|
|
12882
|
+
}, qu = {
|
|
12883
12883
|
width: void 0,
|
|
12884
12884
|
height: void 0
|
|
12885
12885
|
};
|
|
12886
12886
|
function Wu(e) {
|
|
12887
|
-
const { ref: t, box: r = "content-box", round: o } = e, [{ width: i, height: n }, a] = T(
|
|
12887
|
+
const { ref: t, box: r = "content-box", round: o } = e, [{ width: i, height: n }, a] = T(qu), l = D5(), s = j({ ...qu }), u = j(void 0);
|
|
12888
12888
|
return u.current = e.onResize, B(() => {
|
|
12889
12889
|
if (!t.current || typeof window > "u" || !("ResizeObserver" in window))
|
|
12890
12890
|
return;
|
|
@@ -12911,13 +12911,13 @@ function Gu(e, t, r) {
|
|
|
12911
12911
|
) : t === "contentBoxSize" ? e.contentRect[r === "inlineSize" ? "width" : "height"] : void 0;
|
|
12912
12912
|
}
|
|
12913
12913
|
function D5() {
|
|
12914
|
-
const e =
|
|
12914
|
+
const e = j(!1);
|
|
12915
12915
|
return B(() => (e.current = !0, () => {
|
|
12916
12916
|
e.current = !1;
|
|
12917
12917
|
}), []), ae(() => e.current, []);
|
|
12918
12918
|
}
|
|
12919
12919
|
const A5 = ({ checked: e, onChange: t }) => {
|
|
12920
|
-
const r =
|
|
12920
|
+
const r = j(null), o = j(null), [i, n] = T(void 0), [a, l] = T(!1), [s, u] = T(0), { height: c = 0 } = Wu({ ref: o, round: !0 }), { height: d = 0 } = Wu({ ref: r, round: !0 }), h = (d || 0) - c, f = c + h, v = h / 2, _ = f / 2, m = typeof i == "number" && (e ? i < _ : i > _);
|
|
12921
12921
|
return {
|
|
12922
12922
|
trackRef: r,
|
|
12923
12923
|
thumbRef: o,
|
|
@@ -12944,7 +12944,7 @@ const A5 = ({ checked: e, onChange: t }) => {
|
|
|
12944
12944
|
"purpur-toggle__label--right": "_purpur-toggle__label--right_zqs8u_110",
|
|
12945
12945
|
"purpur-toggle__label--left": "_purpur-toggle__label--left_zqs8u_113",
|
|
12946
12946
|
"purpur-toggle__container": "_purpur-toggle__container_zqs8u_116"
|
|
12947
|
-
}, Qt = O5.bind(M5), $t = "purpur-toggle",
|
|
12947
|
+
}, Qt = O5.bind(M5), $t = "purpur-toggle", zo = fe(
|
|
12948
12948
|
({
|
|
12949
12949
|
["data-testid"]: e,
|
|
12950
12950
|
className: t,
|
|
@@ -13004,10 +13004,10 @@ const A5 = ({ checked: e, onChange: t }) => {
|
|
|
13004
13004
|
] });
|
|
13005
13005
|
}
|
|
13006
13006
|
);
|
|
13007
|
-
|
|
13007
|
+
zo.displayName = "Toggle";
|
|
13008
13008
|
const k5 = ({ cell: e }) => {
|
|
13009
13009
|
const t = e.getValue();
|
|
13010
|
-
return t ? /* @__PURE__ */ g(
|
|
13010
|
+
return t ? /* @__PURE__ */ g(zo, { ...t }) : /* @__PURE__ */ g(Fe, {});
|
|
13011
13011
|
}, I5 = {
|
|
13012
13012
|
name: "alert",
|
|
13013
13013
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="m13.038 7.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.586 1.234-1.25 1.234-.649 0-1.25-.585-1.25-1.234 0-.633.601-1.234 1.25-1.234.664 0 1.25.601 1.25 1.234Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
|
|
@@ -13023,7 +13023,7 @@ const L5 = K.bind(te), T5 = ({
|
|
|
13023
13023
|
/* @__PURE__ */ g(gf, { "data-testid": "alert-icon" }),
|
|
13024
13024
|
/* @__PURE__ */ g(Ne, { children: t })
|
|
13025
13025
|
] }) : /* @__PURE__ */ g(Fe, {});
|
|
13026
|
-
}, F5 = K.bind(te),
|
|
13026
|
+
}, F5 = K.bind(te), He = "purpur-table-row-cell", Ha = ({
|
|
13027
13027
|
cell: e,
|
|
13028
13028
|
className: t,
|
|
13029
13029
|
["data-testid"]: r,
|
|
@@ -13039,24 +13039,24 @@ const L5 = K.bind(te), T5 = ({
|
|
|
13039
13039
|
draggingActive: h,
|
|
13040
13040
|
isEmptyTable: f
|
|
13041
13041
|
}) => {
|
|
13042
|
-
const v =
|
|
13042
|
+
const v = j(null), _ = Yp(v, 1), m = e?.column.id, b = za({
|
|
13043
13043
|
itemId: m,
|
|
13044
13044
|
sortableId: m,
|
|
13045
13045
|
// Use column ID for consistency
|
|
13046
13046
|
enableDrag: !!d
|
|
13047
|
-
}), y = e?.column.columnDef.meta?.cellType === "rowSelection" || e?.column.columnDef.meta?.cellType === "rowToggle", w = F5(t,
|
|
13048
|
-
[`${
|
|
13049
|
-
[`${
|
|
13050
|
-
[`${
|
|
13051
|
-
[`${
|
|
13052
|
-
[`${
|
|
13053
|
-
[`${
|
|
13054
|
-
[`${
|
|
13055
|
-
[`${
|
|
13056
|
-
[`${
|
|
13057
|
-
[`${
|
|
13058
|
-
[`${
|
|
13059
|
-
}), $ = e ?
|
|
13047
|
+
}), y = e?.column.columnDef.meta?.cellType === "rowSelection" || e?.column.columnDef.meta?.cellType === "rowToggle", w = F5(t, He, {
|
|
13048
|
+
[`${He}__sticky-column`]: o,
|
|
13049
|
+
[`${He}__sticky-column__with-sticky-border`]: a && l,
|
|
13050
|
+
[`${He}__border-radius-first-cell`]: u && s,
|
|
13051
|
+
[`${He}__border-radius-last-cell`]: c && s,
|
|
13052
|
+
[`${He}__last-row-first-cell-visible`]: (e?.column.getIsFirstColumn() || u) && _ && s,
|
|
13053
|
+
[`${He}__last-row-last-cell-visible`]: (e?.column.getIsLastColumn() || c) && _ && s,
|
|
13054
|
+
[`${He}__column-drag-enabled`]: d,
|
|
13055
|
+
[`${He}__dragging`]: h,
|
|
13056
|
+
[`${He}__empty-table`]: f,
|
|
13057
|
+
[`${He}--drop-indicator-before`]: !y && b === "before",
|
|
13058
|
+
[`${He}--drop-indicator-after`]: !y && b === "after"
|
|
13059
|
+
}), $ = e ? z5(e) : i;
|
|
13060
13060
|
return /* @__PURE__ */ g(et, { children: /* @__PURE__ */ g(
|
|
13061
13061
|
"td",
|
|
13062
13062
|
{
|
|
@@ -13068,7 +13068,7 @@ const L5 = K.bind(te), T5 = ({
|
|
|
13068
13068
|
},
|
|
13069
13069
|
e?.column.columnDef?.id
|
|
13070
13070
|
) });
|
|
13071
|
-
},
|
|
13071
|
+
}, z5 = (e) => {
|
|
13072
13072
|
const { cellType: t } = e.column.columnDef.meta ?? {};
|
|
13073
13073
|
return (() => {
|
|
13074
13074
|
switch (t) {
|
|
@@ -13103,10 +13103,10 @@ const L5 = K.bind(te), T5 = ({
|
|
|
13103
13103
|
case "warningAlertMessage":
|
|
13104
13104
|
return /* @__PURE__ */ g(T5, { cell: e });
|
|
13105
13105
|
default:
|
|
13106
|
-
return
|
|
13106
|
+
return qc(e.column.columnDef.cell, e.getContext());
|
|
13107
13107
|
}
|
|
13108
13108
|
})();
|
|
13109
|
-
},
|
|
13109
|
+
}, j5 = (e, { currentCoordinates: t, context: { active: r, droppableRects: o } }) => {
|
|
13110
13110
|
if (!r || !t || e.code !== V.Right && e.code !== V.Left)
|
|
13111
13111
|
return;
|
|
13112
13112
|
e.preventDefault();
|
|
@@ -13139,7 +13139,7 @@ const L5 = K.bind(te), T5 = ({
|
|
|
13139
13139
|
}
|
|
13140
13140
|
}),
|
|
13141
13141
|
Rr(Ro, {
|
|
13142
|
-
coordinateGetter:
|
|
13142
|
+
coordinateGetter: j5
|
|
13143
13143
|
}),
|
|
13144
13144
|
Rr(va, {})
|
|
13145
13145
|
);
|
|
@@ -13156,7 +13156,7 @@ const L5 = K.bind(te), T5 = ({
|
|
|
13156
13156
|
onDragCancel: () => {
|
|
13157
13157
|
r(null);
|
|
13158
13158
|
},
|
|
13159
|
-
modifiers: [
|
|
13159
|
+
modifiers: [a1],
|
|
13160
13160
|
measuring: {
|
|
13161
13161
|
droppable: {
|
|
13162
13162
|
strategy: Or.Always
|
|
@@ -13206,7 +13206,7 @@ const L5 = K.bind(te), T5 = ({
|
|
|
13206
13206
|
_.id
|
|
13207
13207
|
)) }, v.id)) }),
|
|
13208
13208
|
/* @__PURE__ */ g(md, { children: i.map((v) => /* @__PURE__ */ g(or, { isSelected: !1, children: v.getVisibleCells().filter((_) => _.column.id === t).map((_) => /* @__PURE__ */ g(
|
|
13209
|
-
|
|
13209
|
+
Ha,
|
|
13210
13210
|
{
|
|
13211
13211
|
cell: _,
|
|
13212
13212
|
isLastRow: v.id === i[i.length - 1].id,
|
|
@@ -13253,12 +13253,12 @@ const L5 = K.bind(te), T5 = ({
|
|
|
13253
13253
|
"purpur-table-action-bar__selected-wrapper": "_purpur-table-action-bar__selected-wrapper_1gs9x_24",
|
|
13254
13254
|
"purpur-table-action-bar__button-group": "_purpur-table-action-bar__button-group_1gs9x_33",
|
|
13255
13255
|
"purpur-table-action-bar__primary-secondary-buttons": "_purpur-table-action-bar__primary-secondary-buttons_1gs9x_42"
|
|
13256
|
-
}, B5 = "64em",
|
|
13256
|
+
}, B5 = "64em", H5 = {
|
|
13257
13257
|
MAX_LG: `(max-width: ${B5})`
|
|
13258
|
-
},
|
|
13258
|
+
}, q5 = () => {
|
|
13259
13259
|
const [e, t] = T(!1);
|
|
13260
13260
|
return wo(() => {
|
|
13261
|
-
const r = window.matchMedia(
|
|
13261
|
+
const r = window.matchMedia(H5.MAX_LG);
|
|
13262
13262
|
function o() {
|
|
13263
13263
|
t(r.matches);
|
|
13264
13264
|
}
|
|
@@ -13274,7 +13274,7 @@ const L5 = K.bind(te), T5 = ({
|
|
|
13274
13274
|
onPrimaryButtonClick: a,
|
|
13275
13275
|
onSecondaryButtonClick: l
|
|
13276
13276
|
}) => {
|
|
13277
|
-
const { isLgOrSmaller: s } =
|
|
13277
|
+
const { isLgOrSmaller: s } = q5(), u = Ir();
|
|
13278
13278
|
return /* @__PURE__ */ N(
|
|
13279
13279
|
"div",
|
|
13280
13280
|
{
|
|
@@ -13292,7 +13292,7 @@ const L5 = K.bind(te), T5 = ({
|
|
|
13292
13292
|
r.selectedRowsCount.selected
|
|
13293
13293
|
] }),
|
|
13294
13294
|
/* @__PURE__ */ g(
|
|
13295
|
-
|
|
13295
|
+
zo,
|
|
13296
13296
|
{
|
|
13297
13297
|
"data-testid": `${hr}-toggle-selected`,
|
|
13298
13298
|
id: `${u}-toggle-selected`,
|
|
@@ -13376,7 +13376,7 @@ function Z5() {
|
|
|
13376
13376
|
})(Uu)), Uu.exports;
|
|
13377
13377
|
}
|
|
13378
13378
|
var U5 = Z5();
|
|
13379
|
-
const X5 = /* @__PURE__ */ G5(U5),
|
|
13379
|
+
const X5 = /* @__PURE__ */ G5(U5), Hn = {
|
|
13380
13380
|
"purpur-heading": "_purpur-heading_vo751_1",
|
|
13381
13381
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_vo751_8",
|
|
13382
13382
|
"purpur-heading--negative": "_purpur-heading--negative_vo751_11",
|
|
@@ -13398,7 +13398,7 @@ const X5 = /* @__PURE__ */ G5(U5), qn = {
|
|
|
13398
13398
|
"purpur-heading--display-200": "_purpur-heading--display-200_vo751_104"
|
|
13399
13399
|
}, Y5 = {
|
|
13400
13400
|
TITLE100: "title-100"
|
|
13401
|
-
},
|
|
13401
|
+
}, qn = "purpur-heading", jo = ({
|
|
13402
13402
|
children: e,
|
|
13403
13403
|
className: t = "",
|
|
13404
13404
|
enableHyphenation: r = !1,
|
|
@@ -13409,16 +13409,16 @@ const X5 = /* @__PURE__ */ G5(U5), qn = {
|
|
|
13409
13409
|
}) => {
|
|
13410
13410
|
const l = i, s = X5([
|
|
13411
13411
|
t,
|
|
13412
|
-
qn
|
|
13413
|
-
|
|
13412
|
+
Hn[qn],
|
|
13413
|
+
Hn[`${qn}--${n}`],
|
|
13414
13414
|
{
|
|
13415
|
-
[
|
|
13416
|
-
[
|
|
13415
|
+
[Hn[`${qn}--hyphens`]]: r,
|
|
13416
|
+
[Hn[`${qn}--negative`]]: o
|
|
13417
13417
|
}
|
|
13418
13418
|
]);
|
|
13419
13419
|
return /* @__PURE__ */ g(l, { className: s, ...a, children: e });
|
|
13420
13420
|
};
|
|
13421
|
-
|
|
13421
|
+
jo.displayName = "Heading";
|
|
13422
13422
|
const Ci = K.bind(te), Wn = "purpur-table", K5 = ({
|
|
13423
13423
|
variant: e,
|
|
13424
13424
|
tag: t,
|
|
@@ -13440,7 +13440,7 @@ const Ci = K.bind(te), Wn = "purpur-table", K5 = ({
|
|
|
13440
13440
|
window.removeEventListener("resize", u), c?.removeEventListener("scroll", u);
|
|
13441
13441
|
};
|
|
13442
13442
|
}, [a]), /* @__PURE__ */ g(or, { children: /* @__PURE__ */ g(
|
|
13443
|
-
|
|
13443
|
+
Ha,
|
|
13444
13444
|
{
|
|
13445
13445
|
colSpan: i,
|
|
13446
13446
|
isLastRow: !0,
|
|
@@ -13459,7 +13459,7 @@ const Ci = K.bind(te), Wn = "purpur-table", K5 = ({
|
|
|
13459
13459
|
children: [
|
|
13460
13460
|
n && /* @__PURE__ */ g("div", { className: Ci(`${Wn}__empty-section__icon`), children: n }),
|
|
13461
13461
|
/* @__PURE__ */ N("div", { className: Ci(`${Wn}__empty-section__texts`), children: [
|
|
13462
|
-
/* @__PURE__ */ g(
|
|
13462
|
+
/* @__PURE__ */ g(jo, { "data-testid": "purpur-table-empty-table-title", variant: "title-100", tag: t, children: r }),
|
|
13463
13463
|
/* @__PURE__ */ g(Ne, { "data-testid": "purpur-table-empty-table-description", children: o })
|
|
13464
13464
|
] })
|
|
13465
13465
|
]
|
|
@@ -13636,7 +13636,7 @@ function sC({
|
|
|
13636
13636
|
tableContainerId: y
|
|
13637
13637
|
}
|
|
13638
13638
|
) : t.map((w, $) => /* @__PURE__ */ g(or, { isSelected: w.getIsSelected(), children: w.getVisibleCells().map((S, C) => /* @__PURE__ */ g(
|
|
13639
|
-
|
|
13639
|
+
Ha,
|
|
13640
13640
|
{
|
|
13641
13641
|
cell: S,
|
|
13642
13642
|
isLastRow: $ === t.length - 1,
|
|
@@ -13681,7 +13681,7 @@ function _f(...e) {
|
|
|
13681
13681
|
};
|
|
13682
13682
|
};
|
|
13683
13683
|
}
|
|
13684
|
-
function
|
|
13684
|
+
function ze(...e) {
|
|
13685
13685
|
return p.useCallback(_f(...e), e);
|
|
13686
13686
|
}
|
|
13687
13687
|
function uC(e, t) {
|
|
@@ -13902,7 +13902,7 @@ var CC = "DismissableLayer", na = "dismissableLayer.update", RC = "dismissableLa
|
|
|
13902
13902
|
onInteractOutside: a,
|
|
13903
13903
|
onDismiss: l,
|
|
13904
13904
|
...s
|
|
13905
|
-
} = e, u = p.useContext(bf), [c, d] = p.useState(null), h = c?.ownerDocument ?? globalThis?.document, [, f] = p.useState({}), v =
|
|
13905
|
+
} = e, u = p.useContext(bf), [c, d] = p.useState(null), h = c?.ownerDocument ?? globalThis?.document, [, f] = p.useState({}), v = ze(t, (x) => d(x)), _ = Array.from(u.layers), [m] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = _.indexOf(m), y = c ? _.indexOf(c) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, $ = y >= b, S = PC((x) => {
|
|
13906
13906
|
const R = x.target, E = [...u.branches].some((O) => O.contains(R));
|
|
13907
13907
|
!$ || E || (i?.(x), a?.(x), x.defaultPrevented || l?.());
|
|
13908
13908
|
}, h), C = DC((x) => {
|
|
@@ -13942,7 +13942,7 @@ var CC = "DismissableLayer", na = "dismissableLayer.update", RC = "dismissableLa
|
|
|
13942
13942
|
);
|
|
13943
13943
|
wf.displayName = CC;
|
|
13944
13944
|
var NC = "DismissableLayerBranch", OC = p.forwardRef((e, t) => {
|
|
13945
|
-
const r = p.useContext(bf), o = p.useRef(null), i =
|
|
13945
|
+
const r = p.useContext(bf), o = p.useRef(null), i = ze(t, o);
|
|
13946
13946
|
return p.useEffect(() => {
|
|
13947
13947
|
const n = o.current;
|
|
13948
13948
|
if (n)
|
|
@@ -14011,7 +14011,7 @@ var Ni = "focusScope.autoFocusOnMount", Oi = "focusScope.autoFocusOnUnmount", nc
|
|
|
14011
14011
|
onMountAutoFocus: i,
|
|
14012
14012
|
onUnmountAutoFocus: n,
|
|
14013
14013
|
...a
|
|
14014
|
-
} = e, [l, s] = p.useState(null), u = We(i), c = We(n), d = p.useRef(null), h =
|
|
14014
|
+
} = e, [l, s] = p.useState(null), u = We(i), c = We(n), d = p.useRef(null), h = ze(t, (_) => s(_)), f = p.useRef({
|
|
14015
14015
|
paused: !1,
|
|
14016
14016
|
pause() {
|
|
14017
14017
|
this.paused = !0;
|
|
@@ -14132,23 +14132,23 @@ function ac(e, t) {
|
|
|
14132
14132
|
function FC(e) {
|
|
14133
14133
|
return e.filter((t) => t.tagName !== "A");
|
|
14134
14134
|
}
|
|
14135
|
-
var
|
|
14135
|
+
var zC = "Portal", Sf = p.forwardRef((e, t) => {
|
|
14136
14136
|
const { container: r, ...o } = e, [i, n] = p.useState(!1);
|
|
14137
14137
|
Ar(() => n(!0), []);
|
|
14138
14138
|
const a = r || i && globalThis?.document?.body;
|
|
14139
14139
|
return a ? Mc.createPortal(/* @__PURE__ */ g(Oe.div, { ...o, ref: t }), a) : null;
|
|
14140
14140
|
});
|
|
14141
|
-
Sf.displayName =
|
|
14142
|
-
function
|
|
14141
|
+
Sf.displayName = zC;
|
|
14142
|
+
function jC(e, t) {
|
|
14143
14143
|
return p.useReducer((r, o) => t[r][o] ?? r, e);
|
|
14144
14144
|
}
|
|
14145
|
-
var
|
|
14146
|
-
const { present: t, children: r } = e, o = VC(t), i = typeof r == "function" ? r({ present: o.isPresent }) : p.Children.only(r), n =
|
|
14145
|
+
var qt = (e) => {
|
|
14146
|
+
const { present: t, children: r } = e, o = VC(t), i = typeof r == "function" ? r({ present: o.isPresent }) : p.Children.only(r), n = ze(o.ref, BC(i));
|
|
14147
14147
|
return typeof r == "function" || o.isPresent ? p.cloneElement(i, { ref: n }) : null;
|
|
14148
14148
|
};
|
|
14149
|
-
|
|
14149
|
+
qt.displayName = "Presence";
|
|
14150
14150
|
function VC(e) {
|
|
14151
|
-
const [t, r] = p.useState(), o = p.useRef(null), i = p.useRef(e), n = p.useRef("none"), a = e ? "mounted" : "unmounted", [l, s] =
|
|
14151
|
+
const [t, r] = p.useState(), o = p.useRef(null), i = p.useRef(e), n = p.useRef("none"), a = e ? "mounted" : "unmounted", [l, s] = jC(a, {
|
|
14152
14152
|
mounted: {
|
|
14153
14153
|
UNMOUNT: "unmounted",
|
|
14154
14154
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -14204,7 +14204,7 @@ function BC(e) {
|
|
|
14204
14204
|
return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
14205
14205
|
}
|
|
14206
14206
|
var Pi = 0;
|
|
14207
|
-
function
|
|
14207
|
+
function HC() {
|
|
14208
14208
|
p.useEffect(() => {
|
|
14209
14209
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
14210
14210
|
return document.body.insertAdjacentElement("afterbegin", e[0] ?? lc()), document.body.insertAdjacentElement("beforeend", e[1] ?? lc()), Pi++, () => {
|
|
@@ -14233,7 +14233,7 @@ function Cf(e, t) {
|
|
|
14233
14233
|
t.indexOf(o[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[i]) && (r[o[i]] = e[o[i]]);
|
|
14234
14234
|
return r;
|
|
14235
14235
|
}
|
|
14236
|
-
function
|
|
14236
|
+
function qC(e, t, r) {
|
|
14237
14237
|
for (var o = 0, i = t.length, n; o < i; o++)
|
|
14238
14238
|
(n || !(o in t)) && (n || (n = Array.prototype.slice.call(t, 0, o)), n[o] = t[o]);
|
|
14239
14239
|
return e.concat(n || Array.prototype.slice.call(t));
|
|
@@ -14603,7 +14603,7 @@ function x4(e) {
|
|
|
14603
14603
|
}, [e]), p.useEffect(function() {
|
|
14604
14604
|
if (e.inert) {
|
|
14605
14605
|
document.body.classList.add("block-interactivity-".concat(i));
|
|
14606
|
-
var _ =
|
|
14606
|
+
var _ = qC([e.lockRef.current], (e.shards || []).map(pc)).filter(Boolean);
|
|
14607
14607
|
return _.forEach(function(m) {
|
|
14608
14608
|
return m.classList.add("allow-interactivity-".concat(i));
|
|
14609
14609
|
}), function() {
|
|
@@ -14770,7 +14770,7 @@ var R4 = function(e) {
|
|
|
14770
14770
|
If.displayName = Bo;
|
|
14771
14771
|
var Lf = "DialogTrigger", Tf = p.forwardRef(
|
|
14772
14772
|
(e, t) => {
|
|
14773
|
-
const { __scopeDialog: r, ...o } = e, i = it(Lf, r), n =
|
|
14773
|
+
const { __scopeDialog: r, ...o } = e, i = it(Lf, r), n = ze(t, i.triggerRef);
|
|
14774
14774
|
return /* @__PURE__ */ g(
|
|
14775
14775
|
Oe.button,
|
|
14776
14776
|
{
|
|
@@ -14787,20 +14787,20 @@ var Lf = "DialogTrigger", Tf = p.forwardRef(
|
|
|
14787
14787
|
}
|
|
14788
14788
|
);
|
|
14789
14789
|
Tf.displayName = Lf;
|
|
14790
|
-
var
|
|
14790
|
+
var qa = "DialogPortal", [D4, Ff] = kf(qa, {
|
|
14791
14791
|
forceMount: void 0
|
|
14792
|
-
}),
|
|
14793
|
-
const { __scopeDialog: t, forceMount: r, children: o, container: i } = e, n = it(
|
|
14794
|
-
return /* @__PURE__ */ g(D4, { scope: t, forceMount: r, children: p.Children.map(o, (a) => /* @__PURE__ */ g(
|
|
14792
|
+
}), zf = (e) => {
|
|
14793
|
+
const { __scopeDialog: t, forceMount: r, children: o, container: i } = e, n = it(qa, t);
|
|
14794
|
+
return /* @__PURE__ */ g(D4, { scope: t, forceMount: r, children: p.Children.map(o, (a) => /* @__PURE__ */ g(qt, { present: r || n.open, children: /* @__PURE__ */ g(Sf, { asChild: !0, container: i, children: a }) })) });
|
|
14795
14795
|
};
|
|
14796
|
-
|
|
14797
|
-
var vo = "DialogOverlay",
|
|
14796
|
+
zf.displayName = qa;
|
|
14797
|
+
var vo = "DialogOverlay", jf = p.forwardRef(
|
|
14798
14798
|
(e, t) => {
|
|
14799
14799
|
const r = Ff(vo, e.__scopeDialog), { forceMount: o = r.forceMount, ...i } = e, n = it(vo, e.__scopeDialog);
|
|
14800
|
-
return n.modal ? /* @__PURE__ */ g(
|
|
14800
|
+
return n.modal ? /* @__PURE__ */ g(qt, { present: o || n.open, children: /* @__PURE__ */ g(M4, { ...i, ref: t }) }) : null;
|
|
14801
14801
|
}
|
|
14802
14802
|
);
|
|
14803
|
-
|
|
14803
|
+
jf.displayName = vo;
|
|
14804
14804
|
var A4 = /* @__PURE__ */ mf("DialogOverlay.RemoveScroll"), M4 = p.forwardRef(
|
|
14805
14805
|
(e, t) => {
|
|
14806
14806
|
const { __scopeDialog: r, ...o } = e, i = it(vo, r);
|
|
@@ -14821,13 +14821,13 @@ var A4 = /* @__PURE__ */ mf("DialogOverlay.RemoveScroll"), M4 = p.forwardRef(
|
|
|
14821
14821
|
), ir = "DialogContent", Vf = p.forwardRef(
|
|
14822
14822
|
(e, t) => {
|
|
14823
14823
|
const r = Ff(ir, e.__scopeDialog), { forceMount: o = r.forceMount, ...i } = e, n = it(ir, e.__scopeDialog);
|
|
14824
|
-
return /* @__PURE__ */ g(
|
|
14824
|
+
return /* @__PURE__ */ g(qt, { present: o || n.open, children: n.modal ? /* @__PURE__ */ g(k4, { ...i, ref: t }) : /* @__PURE__ */ g(I4, { ...i, ref: t }) });
|
|
14825
14825
|
}
|
|
14826
14826
|
);
|
|
14827
14827
|
Vf.displayName = ir;
|
|
14828
14828
|
var k4 = p.forwardRef(
|
|
14829
14829
|
(e, t) => {
|
|
14830
|
-
const r = it(ir, e.__scopeDialog), o = p.useRef(null), i =
|
|
14830
|
+
const r = it(ir, e.__scopeDialog), o = p.useRef(null), i = ze(t, r.contentRef, o);
|
|
14831
14831
|
return p.useEffect(() => {
|
|
14832
14832
|
const n = o.current;
|
|
14833
14833
|
if (n) return O4(n);
|
|
@@ -14875,8 +14875,8 @@ var k4 = p.forwardRef(
|
|
|
14875
14875
|
}
|
|
14876
14876
|
), Bf = p.forwardRef(
|
|
14877
14877
|
(e, t) => {
|
|
14878
|
-
const { __scopeDialog: r, trapFocus: o, onOpenAutoFocus: i, onCloseAutoFocus: n, ...a } = e, l = it(ir, r), s = p.useRef(null), u =
|
|
14879
|
-
return
|
|
14878
|
+
const { __scopeDialog: r, trapFocus: o, onOpenAutoFocus: i, onCloseAutoFocus: n, ...a } = e, l = it(ir, r), s = p.useRef(null), u = ze(t, s);
|
|
14879
|
+
return HC(), /* @__PURE__ */ N(et, { children: [
|
|
14880
14880
|
/* @__PURE__ */ g(
|
|
14881
14881
|
$f,
|
|
14882
14882
|
{
|
|
@@ -14906,20 +14906,20 @@ var k4 = p.forwardRef(
|
|
|
14906
14906
|
] })
|
|
14907
14907
|
] });
|
|
14908
14908
|
}
|
|
14909
|
-
), Wa = "DialogTitle",
|
|
14909
|
+
), Wa = "DialogTitle", Hf = p.forwardRef(
|
|
14910
14910
|
(e, t) => {
|
|
14911
14911
|
const { __scopeDialog: r, ...o } = e, i = it(Wa, r);
|
|
14912
14912
|
return /* @__PURE__ */ g(Oe.h2, { id: i.titleId, ...o, ref: t });
|
|
14913
14913
|
}
|
|
14914
14914
|
);
|
|
14915
|
-
|
|
14916
|
-
var
|
|
14915
|
+
Hf.displayName = Wa;
|
|
14916
|
+
var qf = "DialogDescription", Wf = p.forwardRef(
|
|
14917
14917
|
(e, t) => {
|
|
14918
|
-
const { __scopeDialog: r, ...o } = e, i = it(
|
|
14918
|
+
const { __scopeDialog: r, ...o } = e, i = it(qf, r);
|
|
14919
14919
|
return /* @__PURE__ */ g(Oe.p, { id: i.descriptionId, ...o, ref: t });
|
|
14920
14920
|
}
|
|
14921
14921
|
);
|
|
14922
|
-
Wf.displayName =
|
|
14922
|
+
Wf.displayName = qf;
|
|
14923
14923
|
var Gf = "DialogClose", Zf = p.forwardRef(
|
|
14924
14924
|
(e, t) => {
|
|
14925
14925
|
const { __scopeDialog: r, ...o } = e, i = it(Gf, r);
|
|
@@ -14957,7 +14957,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
14957
14957
|
const o = e.current?.getAttribute("aria-describedby");
|
|
14958
14958
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
14959
14959
|
}, [r, e, t]), null;
|
|
14960
|
-
},
|
|
14960
|
+
}, z4 = If, j4 = Tf, V4 = zf, B4 = jf, H4 = Vf, Kn = Hf, q4 = Wf, W4 = Zf;
|
|
14961
14961
|
const Yf = kr(null);
|
|
14962
14962
|
function G4(e) {
|
|
14963
14963
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -15436,20 +15436,20 @@ const M3 = /* @__PURE__ */ P3(A3), k3 = {
|
|
|
15436
15436
|
t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
15437
15437
|
], o = t ? `<title>${t}</title>` : "";
|
|
15438
15438
|
return `<svg ${T3(r)}>${o}${e}</svg>`;
|
|
15439
|
-
},
|
|
15439
|
+
}, z3 = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Za = ({ svg: e, allyTitle: t, className: r, size: o = L3, ...i }) => {
|
|
15440
15440
|
const n = F3({
|
|
15441
|
-
content:
|
|
15441
|
+
content: z3(e.svg),
|
|
15442
15442
|
title: t
|
|
15443
15443
|
}), a = I3(Ec, `${Ec}--${o}`, r);
|
|
15444
15444
|
return /* @__PURE__ */ g("span", { className: a, dangerouslySetInnerHTML: { __html: n }, ...i });
|
|
15445
15445
|
};
|
|
15446
15446
|
Za.displayName = "Icon";
|
|
15447
|
-
const
|
|
15447
|
+
const j3 = {
|
|
15448
15448
|
name: "chevron-left",
|
|
15449
15449
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M16.175 3.905a.9.9 0 0 1-.08 1.27L8.36 12l7.736 6.825a.9.9 0 0 1-1.191 1.35l-8.5-7.5a.9.9 0 0 1 0-1.35l8.5-7.5a.9.9 0 0 1 1.27.08Z" clip-rule="evenodd"/></svg>',
|
|
15450
15450
|
keywords: ["chevron-left"],
|
|
15451
15451
|
category: "utility"
|
|
15452
|
-
}, Qf = (e) => /* @__PURE__ */ g(Za, { ...e, svg:
|
|
15452
|
+
}, Qf = (e) => /* @__PURE__ */ g(Za, { ...e, svg: j3 });
|
|
15453
15453
|
Qf.displayName = "IconChevronLeft";
|
|
15454
15454
|
const V3 = {
|
|
15455
15455
|
name: "close",
|
|
@@ -15480,8 +15480,8 @@ function B3(...e) {
|
|
|
15480
15480
|
};
|
|
15481
15481
|
}
|
|
15482
15482
|
// @__NO_SIDE_EFFECTS__
|
|
15483
|
-
function
|
|
15484
|
-
const t = /* @__PURE__ */
|
|
15483
|
+
function H3(e) {
|
|
15484
|
+
const t = /* @__PURE__ */ q3(e), r = p.forwardRef((o, i) => {
|
|
15485
15485
|
const { children: n, ...a } = o, l = p.Children.toArray(n), s = l.find(G3);
|
|
15486
15486
|
if (s) {
|
|
15487
15487
|
const u = s.props.children, c = l.map((d) => d === s ? p.Children.count(u) > 1 ? p.Children.only(null) : p.isValidElement(u) ? u.props.children : null : d);
|
|
@@ -15492,7 +15492,7 @@ function q3(e) {
|
|
|
15492
15492
|
return r.displayName = `${e}.Slot`, r;
|
|
15493
15493
|
}
|
|
15494
15494
|
// @__NO_SIDE_EFFECTS__
|
|
15495
|
-
function
|
|
15495
|
+
function q3(e) {
|
|
15496
15496
|
const t = p.forwardRef((r, o) => {
|
|
15497
15497
|
const { children: i, ...n } = r;
|
|
15498
15498
|
if (p.isValidElement(i)) {
|
|
@@ -15539,7 +15539,7 @@ var X3 = [
|
|
|
15539
15539
|
"svg",
|
|
15540
15540
|
"ul"
|
|
15541
15541
|
], Y3 = X3.reduce((e, t) => {
|
|
15542
|
-
const r = /* @__PURE__ */
|
|
15542
|
+
const r = /* @__PURE__ */ H3(`Primitive.${t}`), o = p.forwardRef((i, n) => {
|
|
15543
15543
|
const { asChild: a, ...l } = i, s = a ? r : t;
|
|
15544
15544
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g(s, { ...l, ref: n });
|
|
15545
15545
|
});
|
|
@@ -15686,7 +15686,7 @@ var Ua = "ScrollArea", [ng] = vf(Ua), [oR, Ge] = ng(Ua), og = p.forwardRef(
|
|
|
15686
15686
|
dir: i,
|
|
15687
15687
|
scrollHideDelay: n = 600,
|
|
15688
15688
|
...a
|
|
15689
|
-
} = e, [l, s] = p.useState(null), [u, c] = p.useState(null), [d, h] = p.useState(null), [f, v] = p.useState(null), [_, m] = p.useState(null), [b, y] = p.useState(0), [w, $] = p.useState(0), [S, C] = p.useState(!1), [x, R] = p.useState(!1), E =
|
|
15689
|
+
} = e, [l, s] = p.useState(null), [u, c] = p.useState(null), [d, h] = p.useState(null), [f, v] = p.useState(null), [_, m] = p.useState(null), [b, y] = p.useState(0), [w, $] = p.useState(0), [S, C] = p.useState(!1), [x, R] = p.useState(!1), E = ze(t, (P) => s(P)), O = tR(i);
|
|
15690
15690
|
return /* @__PURE__ */ g(
|
|
15691
15691
|
oR,
|
|
15692
15692
|
{
|
|
@@ -15731,7 +15731,7 @@ var Ua = "ScrollArea", [ng] = vf(Ua), [oR, Ge] = ng(Ua), og = p.forwardRef(
|
|
|
15731
15731
|
og.displayName = Ua;
|
|
15732
15732
|
var ig = "ScrollAreaViewport", ag = p.forwardRef(
|
|
15733
15733
|
(e, t) => {
|
|
15734
|
-
const { __scopeScrollArea: r, children: o, nonce: i, ...n } = e, a = Ge(ig, r), l = p.useRef(null), s =
|
|
15734
|
+
const { __scopeScrollArea: r, children: o, nonce: i, ...n } = e, a = Ge(ig, r), l = p.useRef(null), s = ze(t, l, a.onViewportChange);
|
|
15735
15735
|
return /* @__PURE__ */ N(et, { children: [
|
|
15736
15736
|
/* @__PURE__ */ g(
|
|
15737
15737
|
"style",
|
|
@@ -15795,7 +15795,7 @@ var iR = p.forwardRef((e, t) => {
|
|
|
15795
15795
|
window.clearTimeout(s), l.removeEventListener("pointerenter", u), l.removeEventListener("pointerleave", c);
|
|
15796
15796
|
};
|
|
15797
15797
|
}
|
|
15798
|
-
}, [i.scrollArea, i.scrollHideDelay]), /* @__PURE__ */ g(
|
|
15798
|
+
}, [i.scrollArea, i.scrollHideDelay]), /* @__PURE__ */ g(qt, { present: r || n, children: /* @__PURE__ */ g(
|
|
15799
15799
|
sg,
|
|
15800
15800
|
{
|
|
15801
15801
|
"data-state": n ? "visible" : "hidden",
|
|
@@ -15804,7 +15804,7 @@ var iR = p.forwardRef((e, t) => {
|
|
|
15804
15804
|
}
|
|
15805
15805
|
) });
|
|
15806
15806
|
}), aR = p.forwardRef((e, t) => {
|
|
15807
|
-
const { forceMount: r, ...o } = e, i = Ge(gt, e.__scopeScrollArea), n = e.orientation === "horizontal", a =
|
|
15807
|
+
const { forceMount: r, ...o } = e, i = Ge(gt, e.__scopeScrollArea), n = e.orientation === "horizontal", a = qo(() => s("SCROLL_END"), 100), [l, s] = nR("hidden", {
|
|
15808
15808
|
hidden: {
|
|
15809
15809
|
SCROLL: "scrolling"
|
|
15810
15810
|
},
|
|
@@ -15837,7 +15837,7 @@ var iR = p.forwardRef((e, t) => {
|
|
|
15837
15837
|
};
|
|
15838
15838
|
return u.addEventListener("scroll", h), () => u.removeEventListener("scroll", h);
|
|
15839
15839
|
}
|
|
15840
|
-
}, [i.viewport, n, s, a]), /* @__PURE__ */ g(
|
|
15840
|
+
}, [i.viewport, n, s, a]), /* @__PURE__ */ g(qt, { present: r || l !== "hidden", children: /* @__PURE__ */ g(
|
|
15841
15841
|
Xa,
|
|
15842
15842
|
{
|
|
15843
15843
|
"data-state": l === "hidden" ? "hidden" : "visible",
|
|
@@ -15848,13 +15848,13 @@ var iR = p.forwardRef((e, t) => {
|
|
|
15848
15848
|
}
|
|
15849
15849
|
) });
|
|
15850
15850
|
}), sg = p.forwardRef((e, t) => {
|
|
15851
|
-
const r = Ge(gt, e.__scopeScrollArea), { forceMount: o, ...i } = e, [n, a] = p.useState(!1), l = e.orientation === "horizontal", s =
|
|
15851
|
+
const r = Ge(gt, e.__scopeScrollArea), { forceMount: o, ...i } = e, [n, a] = p.useState(!1), l = e.orientation === "horizontal", s = qo(() => {
|
|
15852
15852
|
if (r.viewport) {
|
|
15853
15853
|
const u = r.viewport.offsetWidth < r.viewport.scrollWidth, c = r.viewport.offsetHeight < r.viewport.scrollHeight;
|
|
15854
15854
|
a(l ? u : c);
|
|
15855
15855
|
}
|
|
15856
15856
|
}, 10);
|
|
15857
|
-
return Mr(r.viewport, s), Mr(r.content, s), /* @__PURE__ */ g(
|
|
15857
|
+
return Mr(r.viewport, s), Mr(r.content, s), /* @__PURE__ */ g(qt, { present: o || n, children: /* @__PURE__ */ g(
|
|
15858
15858
|
Xa,
|
|
15859
15859
|
{
|
|
15860
15860
|
"data-state": n ? "visible" : "hidden",
|
|
@@ -15917,7 +15917,7 @@ var iR = p.forwardRef((e, t) => {
|
|
|
15917
15917
|
}
|
|
15918
15918
|
) : null;
|
|
15919
15919
|
}), lR = p.forwardRef((e, t) => {
|
|
15920
|
-
const { sizes: r, onSizesChange: o, ...i } = e, n = Ge(gt, e.__scopeScrollArea), [a, l] = p.useState(), s = p.useRef(null), u =
|
|
15920
|
+
const { sizes: r, onSizesChange: o, ...i } = e, n = Ge(gt, e.__scopeScrollArea), [a, l] = p.useState(), s = p.useRef(null), u = ze(t, s, n.onScrollbarXChange);
|
|
15921
15921
|
return p.useEffect(() => {
|
|
15922
15922
|
s.current && l(getComputedStyle(s.current));
|
|
15923
15923
|
}, [s]), /* @__PURE__ */ g(
|
|
@@ -15931,7 +15931,7 @@ var iR = p.forwardRef((e, t) => {
|
|
|
15931
15931
|
bottom: 0,
|
|
15932
15932
|
left: n.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
15933
15933
|
right: n.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
15934
|
-
"--radix-scroll-area-thumb-width":
|
|
15934
|
+
"--radix-scroll-area-thumb-width": Ho(r) + "px",
|
|
15935
15935
|
...e.style
|
|
15936
15936
|
},
|
|
15937
15937
|
onThumbPointerDown: (c) => e.onThumbPointerDown(c.x),
|
|
@@ -15956,7 +15956,7 @@ var iR = p.forwardRef((e, t) => {
|
|
|
15956
15956
|
}
|
|
15957
15957
|
);
|
|
15958
15958
|
}), sR = p.forwardRef((e, t) => {
|
|
15959
|
-
const { sizes: r, onSizesChange: o, ...i } = e, n = Ge(gt, e.__scopeScrollArea), [a, l] = p.useState(), s = p.useRef(null), u =
|
|
15959
|
+
const { sizes: r, onSizesChange: o, ...i } = e, n = Ge(gt, e.__scopeScrollArea), [a, l] = p.useState(), s = p.useRef(null), u = ze(t, s, n.onScrollbarYChange);
|
|
15960
15960
|
return p.useEffect(() => {
|
|
15961
15961
|
s.current && l(getComputedStyle(s.current));
|
|
15962
15962
|
}, [s]), /* @__PURE__ */ g(
|
|
@@ -15971,7 +15971,7 @@ var iR = p.forwardRef((e, t) => {
|
|
|
15971
15971
|
right: n.dir === "ltr" ? 0 : void 0,
|
|
15972
15972
|
left: n.dir === "rtl" ? 0 : void 0,
|
|
15973
15973
|
bottom: "var(--radix-scroll-area-corner-height)",
|
|
15974
|
-
"--radix-scroll-area-thumb-height":
|
|
15974
|
+
"--radix-scroll-area-thumb-height": Ho(r) + "px",
|
|
15975
15975
|
...e.style
|
|
15976
15976
|
},
|
|
15977
15977
|
onThumbPointerDown: (c) => e.onThumbPointerDown(c.y),
|
|
@@ -16008,7 +16008,7 @@ var iR = p.forwardRef((e, t) => {
|
|
|
16008
16008
|
onWheelScroll: c,
|
|
16009
16009
|
onResize: d,
|
|
16010
16010
|
...h
|
|
16011
|
-
} = e, f = Ge(gt, r), [v, _] = p.useState(null), m =
|
|
16011
|
+
} = e, f = Ge(gt, r), [v, _] = p.useState(null), m = ze(t, (E) => _(E)), b = p.useRef(null), y = p.useRef(""), w = f.viewport, $ = o.content - o.viewport, S = We(c), C = We(s), x = qo(d, 10);
|
|
16012
16012
|
function R(E) {
|
|
16013
16013
|
if (b.current) {
|
|
16014
16014
|
const O = E.clientX - b.current.left, P = E.clientY - b.current.top;
|
|
@@ -16052,14 +16052,14 @@ var iR = p.forwardRef((e, t) => {
|
|
|
16052
16052
|
}), mo = "ScrollAreaThumb", dg = p.forwardRef(
|
|
16053
16053
|
(e, t) => {
|
|
16054
16054
|
const { forceMount: r, ...o } = e, i = ug(mo, e.__scopeScrollArea);
|
|
16055
|
-
return /* @__PURE__ */ g(
|
|
16055
|
+
return /* @__PURE__ */ g(qt, { present: r || i.hasThumb, children: /* @__PURE__ */ g(cR, { ref: t, ...o }) });
|
|
16056
16056
|
}
|
|
16057
16057
|
), cR = p.forwardRef(
|
|
16058
16058
|
(e, t) => {
|
|
16059
|
-
const { __scopeScrollArea: r, style: o, ...i } = e, n = Ge(mo, r), a = ug(mo, r), { onThumbPositionChange: l } = a, s =
|
|
16059
|
+
const { __scopeScrollArea: r, style: o, ...i } = e, n = Ge(mo, r), a = ug(mo, r), { onThumbPositionChange: l } = a, s = ze(
|
|
16060
16060
|
t,
|
|
16061
16061
|
(d) => a.onThumbChange(d)
|
|
16062
|
-
), u = p.useRef(void 0), c =
|
|
16062
|
+
), u = p.useRef(void 0), c = qo(() => {
|
|
16063
16063
|
u.current && (u.current(), u.current = void 0);
|
|
16064
16064
|
}, 100);
|
|
16065
16065
|
return p.useEffect(() => {
|
|
@@ -16133,16 +16133,16 @@ function pg(e, t) {
|
|
|
16133
16133
|
const r = e / t;
|
|
16134
16134
|
return isNaN(r) ? 0 : r;
|
|
16135
16135
|
}
|
|
16136
|
-
function
|
|
16136
|
+
function Ho(e) {
|
|
16137
16137
|
const t = pg(e.viewport, e.content), r = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, o = (e.scrollbar.size - r) * t;
|
|
16138
16138
|
return Math.max(o, 18);
|
|
16139
16139
|
}
|
|
16140
16140
|
function fR(e, t, r, o = "ltr") {
|
|
16141
|
-
const i =
|
|
16141
|
+
const i = Ho(r), n = i / 2, a = t || n, l = i - a, s = r.scrollbar.paddingStart + a, u = r.scrollbar.size - r.scrollbar.paddingEnd - l, c = r.content - r.viewport, d = o === "ltr" ? [0, c] : [c * -1, 0];
|
|
16142
16142
|
return fg([s, u], d)(e);
|
|
16143
16143
|
}
|
|
16144
16144
|
function Pc(e, t, r = "ltr") {
|
|
16145
|
-
const o =
|
|
16145
|
+
const o = Ho(t), i = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, n = t.scrollbar.size - i, a = t.content - t.viewport, l = n - o, s = r === "ltr" ? [0, a] : [a * -1, 0], u = rR(e, s);
|
|
16146
16146
|
return fg([0, a], [0, l])(u);
|
|
16147
16147
|
}
|
|
16148
16148
|
function fg(e, t) {
|
|
@@ -16163,7 +16163,7 @@ var gR = (e, t = () => {
|
|
|
16163
16163
|
(a || l) && t(), r = n, o = window.requestAnimationFrame(i);
|
|
16164
16164
|
})(), () => window.cancelAnimationFrame(o);
|
|
16165
16165
|
};
|
|
16166
|
-
function
|
|
16166
|
+
function qo(e, t) {
|
|
16167
16167
|
const r = We(e), o = p.useRef(0);
|
|
16168
16168
|
return p.useEffect(() => () => window.clearTimeout(o.current), []), p.useCallback(() => {
|
|
16169
16169
|
window.clearTimeout(o.current), o.current = window.setTimeout(r, t);
|
|
@@ -16386,7 +16386,7 @@ const wR = (e, t) => ({
|
|
|
16386
16386
|
[`${er}--right`]: m === "right"
|
|
16387
16387
|
},
|
|
16388
16388
|
a
|
|
16389
|
-
]), $ =
|
|
16389
|
+
]), $ = j(null), S = j(null), C = (k) => {
|
|
16390
16390
|
S.current = k, typeof y == "function" ? y(k) : y && (y.current = k);
|
|
16391
16391
|
}, x = Ct(Yf), { onSwipeStart: R, onSwipeMove: E, onSwipeCancel: O, onSwipeEnd: P } = wR(
|
|
16392
16392
|
S,
|
|
@@ -16409,7 +16409,7 @@ const wR = (e, t) => ({
|
|
|
16409
16409
|
style: _ ? { zIndex: _ } : void 0,
|
|
16410
16410
|
"data-testid": `${e}-overlay`,
|
|
16411
16411
|
children: /* @__PURE__ */ g(
|
|
16412
|
-
|
|
16412
|
+
H4,
|
|
16413
16413
|
{
|
|
16414
16414
|
onPointerDownOutside: L,
|
|
16415
16415
|
onOpenAutoFocus: D,
|
|
@@ -16440,7 +16440,7 @@ const wR = (e, t) => ({
|
|
|
16440
16440
|
position: m,
|
|
16441
16441
|
children: i ? /* @__PURE__ */ N("div", { className: cn(`${er}__content-container`), children: [
|
|
16442
16442
|
/* @__PURE__ */ g(
|
|
16443
|
-
|
|
16443
|
+
q4,
|
|
16444
16444
|
{
|
|
16445
16445
|
className: cn(`${er}__description`),
|
|
16446
16446
|
"data-testid": `${e}-description`,
|
|
@@ -16459,7 +16459,7 @@ const wR = (e, t) => ({
|
|
|
16459
16459
|
);
|
|
16460
16460
|
_g.displayName = "DrawerContent";
|
|
16461
16461
|
const vg = fe(
|
|
16462
|
-
({ ["data-testid"]: e = "purpur-drawer-trigger", children: t, ...r }, o) => /* @__PURE__ */ g(
|
|
16462
|
+
({ ["data-testid"]: e = "purpur-drawer-trigger", children: t, ...r }, o) => /* @__PURE__ */ g(j4, { asChild: !0, "data-testid": e, ref: o, ...r, children: t })
|
|
16463
16463
|
);
|
|
16464
16464
|
vg.displayName = "DrawerTrigger";
|
|
16465
16465
|
const ar = ({
|
|
@@ -16475,7 +16475,7 @@ const ar = ({
|
|
|
16475
16475
|
};
|
|
16476
16476
|
return B(() => {
|
|
16477
16477
|
l(i);
|
|
16478
|
-
}, [i]), /* @__PURE__ */ g(Yf.Provider, { value: s, children: /* @__PURE__ */ g("div", { className: r, "data-testid": e, ...n, children: /* @__PURE__ */ g(
|
|
16478
|
+
}, [i]), /* @__PURE__ */ g(Yf.Provider, { value: s, children: /* @__PURE__ */ g("div", { className: r, "data-testid": e, ...n, children: /* @__PURE__ */ g(z4, { open: a, onOpenChange: s, children: t }) }) });
|
|
16479
16479
|
};
|
|
16480
16480
|
ar.Trigger = vg;
|
|
16481
16481
|
ar.Content = _g;
|
|
@@ -16556,7 +16556,7 @@ function RR({
|
|
|
16556
16556
|
enableColumnDrag: f,
|
|
16557
16557
|
columnDragAriaLabelsCopy: v
|
|
16558
16558
|
}) {
|
|
16559
|
-
return /* @__PURE__ */ g(or, { children: /* @__PURE__ */ g($d, { items: d, strategy:
|
|
16559
|
+
return /* @__PURE__ */ g(or, { children: /* @__PURE__ */ g($d, { items: d, strategy: h1, children: e.headers.map((_, m) => {
|
|
16560
16560
|
const b = _.id === "row-selection" || _.id === "row-toggle";
|
|
16561
16561
|
return /* @__PURE__ */ g(
|
|
16562
16562
|
Va,
|
|
@@ -16698,7 +16698,7 @@ const OR = {
|
|
|
16698
16698
|
className: Ie(`${de}__general-settings`),
|
|
16699
16699
|
"aria-labelledby": `${s}-general-settings`,
|
|
16700
16700
|
children: [
|
|
16701
|
-
/* @__PURE__ */ g(
|
|
16701
|
+
/* @__PURE__ */ g(jo, { id: `${s}-general-settings`, variant: "title-100", tag: "h3", children: l.header }),
|
|
16702
16702
|
o && /* @__PURE__ */ g(
|
|
16703
16703
|
io,
|
|
16704
16704
|
{
|
|
@@ -16741,7 +16741,7 @@ const OR = {
|
|
|
16741
16741
|
Rr(Eo),
|
|
16742
16742
|
Rr(va),
|
|
16743
16743
|
Rr(Ro, {
|
|
16744
|
-
coordinateGetter:
|
|
16744
|
+
coordinateGetter: E1
|
|
16745
16745
|
})
|
|
16746
16746
|
), v = (C) => {
|
|
16747
16747
|
d(C.active.id);
|
|
@@ -16771,7 +16771,7 @@ const OR = {
|
|
|
16771
16771
|
children: [
|
|
16772
16772
|
/* @__PURE__ */ N("div", { className: Ie(`${de}__visible-columns-header-wrapper`), children: [
|
|
16773
16773
|
/* @__PURE__ */ N("div", { className: Ie(`${de}__visible-columns-header`), children: [
|
|
16774
|
-
/* @__PURE__ */ g(
|
|
16774
|
+
/* @__PURE__ */ g(jo, { id: `${w}-visible-columns`, variant: "title-100", tag: "h3", children: e }),
|
|
16775
16775
|
r && /* @__PURE__ */ N(
|
|
16776
16776
|
_e,
|
|
16777
16777
|
{
|
|
@@ -16795,9 +16795,9 @@ const OR = {
|
|
|
16795
16795
|
collisionDetection: Jc,
|
|
16796
16796
|
onDragStart: v,
|
|
16797
16797
|
onDragEnd: _,
|
|
16798
|
-
modifiers: [
|
|
16798
|
+
modifiers: [u1, s1],
|
|
16799
16799
|
children: [
|
|
16800
|
-
/* @__PURE__ */ g($d, { items: o, strategy:
|
|
16800
|
+
/* @__PURE__ */ g($d, { items: o, strategy: v1, children: S.map((C, x) => /* @__PURE__ */ g(
|
|
16801
16801
|
kR,
|
|
16802
16802
|
{
|
|
16803
16803
|
column: C,
|
|
@@ -16925,7 +16925,7 @@ const OR = {
|
|
|
16925
16925
|
disabled: o,
|
|
16926
16926
|
onChange: i
|
|
16927
16927
|
}) => /* @__PURE__ */ g(
|
|
16928
|
-
|
|
16928
|
+
zo,
|
|
16929
16929
|
{
|
|
16930
16930
|
id: e,
|
|
16931
16931
|
checked: t,
|
|
@@ -16943,7 +16943,7 @@ const OR = {
|
|
|
16943
16943
|
isLast: o,
|
|
16944
16944
|
copy: i
|
|
16945
16945
|
}) => {
|
|
16946
|
-
const n =
|
|
16946
|
+
const n = za({ itemId: e.id, enableDrag: !0 });
|
|
16947
16947
|
return /* @__PURE__ */ g(
|
|
16948
16948
|
wg,
|
|
16949
16949
|
{
|
|
@@ -16985,10 +16985,10 @@ const FR = {
|
|
|
16985
16985
|
category: "action"
|
|
16986
16986
|
}, Sg = (e) => /* @__PURE__ */ g(Ee, { ...e, svg: FR });
|
|
16987
16987
|
Sg.displayName = "IconSettings";
|
|
16988
|
-
const
|
|
16988
|
+
const zR = {
|
|
16989
16989
|
"purpur-table-toolbar": "_purpur-table-toolbar_1i1x1_1",
|
|
16990
16990
|
"purpur-table-toolbar__content": "_purpur-table-toolbar__content_1i1x1_14"
|
|
16991
|
-
}, Fi = "purpur-table-toolbar",
|
|
16991
|
+
}, Fi = "purpur-table-toolbar", zi = K.bind(zR), $r = "purpur-table-toolbar", jR = ({
|
|
16992
16992
|
["aria-controls"]: e,
|
|
16993
16993
|
settingsDrawerAriaControls: t,
|
|
16994
16994
|
exportDrawerAriaControls: r,
|
|
@@ -17005,8 +17005,8 @@ const jR = {
|
|
|
17005
17005
|
toolbarCopy: f,
|
|
17006
17006
|
totalRowCount: v,
|
|
17007
17007
|
visibleRowCount: _
|
|
17008
|
-
}) => /* @__PURE__ */ N("div", { "data-testid": $r, className:
|
|
17009
|
-
/* @__PURE__ */ N("div", { className:
|
|
17008
|
+
}) => /* @__PURE__ */ N("div", { "data-testid": $r, className: zi(Fi), children: [
|
|
17009
|
+
/* @__PURE__ */ N("div", { className: zi(`${Fi}__content`), children: [
|
|
17010
17010
|
f?.rowCount && /* @__PURE__ */ g(Ne, { "data-testid": `${$r}-table-rows-count`, children: `${f.rowCount.showing} ${_} ${f.rowCount.of} ${v} ${f.rowCount.rows}` }),
|
|
17011
17011
|
f?.buttons?.clearFilters && h && /* @__PURE__ */ g(
|
|
17012
17012
|
_e,
|
|
@@ -17022,7 +17022,7 @@ const jR = {
|
|
|
17022
17022
|
}
|
|
17023
17023
|
)
|
|
17024
17024
|
] }),
|
|
17025
|
-
/* @__PURE__ */ N("div", { className:
|
|
17025
|
+
/* @__PURE__ */ N("div", { className: zi(`${Fi}__content`), children: [
|
|
17026
17026
|
f?.buttons?.export && /* @__PURE__ */ N(
|
|
17027
17027
|
_e,
|
|
17028
17028
|
{
|
|
@@ -17089,10 +17089,10 @@ const jR = {
|
|
|
17089
17089
|
}, BR = (e, t, r) => {
|
|
17090
17090
|
const { filterKey: o, value: i, partialMatch: n } = r, a = e.getValue(t);
|
|
17091
17091
|
return !!(i === "" || a[o] === i || n && a[o]?.toString().toLowerCase().includes(i.toLowerCase()));
|
|
17092
|
-
},
|
|
17092
|
+
}, HR = (e, t, r) => {
|
|
17093
17093
|
const o = t.getValue(r);
|
|
17094
17094
|
return e.getValue(r).variant.localeCompare(o.variant);
|
|
17095
|
-
},
|
|
17095
|
+
}, qR = (e, t, r) => {
|
|
17096
17096
|
const o = t.getValue(r), i = e.getValue(r), n = o.children;
|
|
17097
17097
|
return i.children.localeCompare(n);
|
|
17098
17098
|
}, Dc = K.bind(te), xr = "purpur-table", WR = ({
|
|
@@ -17131,38 +17131,38 @@ const jR = {
|
|
|
17131
17131
|
toolbarCopy: U,
|
|
17132
17132
|
toolbarTotalRowCount: F,
|
|
17133
17133
|
variant: I = "primary",
|
|
17134
|
-
getRowId:
|
|
17134
|
+
getRowId: q,
|
|
17135
17135
|
onExportData: le,
|
|
17136
17136
|
onRowsCountChange: Ze,
|
|
17137
17137
|
controlledExpanded: ne,
|
|
17138
17138
|
defaultExpanded: Pe,
|
|
17139
|
-
onToggleExpand:
|
|
17139
|
+
onToggleExpand: je,
|
|
17140
17140
|
onPrimaryButtonClick: at,
|
|
17141
17141
|
onSecondaryButtonClick: ge,
|
|
17142
17142
|
setShowOnlySelectedRows: xe,
|
|
17143
17143
|
drawerZIndex: De = 6,
|
|
17144
17144
|
enableColumnDrag: se,
|
|
17145
|
-
columnDragAriaLabelsCopy:
|
|
17145
|
+
columnDragAriaLabelsCopy: H,
|
|
17146
17146
|
...J
|
|
17147
17147
|
}) => {
|
|
17148
|
-
const [ve, Se] = T(!1), [Ve, ht] = T(!1), _t = ne !== void 0 &&
|
|
17148
|
+
const [ve, Se] = T(!1), [Ve, ht] = T(!1), _t = ne !== void 0 && je !== void 0, Hr = S !== void 0 && C !== void 0, qr = x !== void 0 && R !== void 0, ur = E !== void 0 && O !== void 0, Ue = D !== void 0 ? D : k !== void 0 ? k : !0, Wt = L !== void 0 ? L : G !== void 0 ? G : !0, [cr, Cn] = T(
|
|
17149
17149
|
Pe ?? !1
|
|
17150
17150
|
), [Rn, Wo] = T(
|
|
17151
17151
|
P ?? !!J.enableFilters
|
|
17152
17152
|
), [Go, Nt] = T(
|
|
17153
17153
|
Wt
|
|
17154
|
-
), [Ot, Gt] = T(Ue), En = _t ? ne : cr, ue =
|
|
17155
|
-
_t || Cn(
|
|
17156
|
-
}, dr = (
|
|
17157
|
-
const Ae = typeof
|
|
17158
|
-
|
|
17159
|
-
}, Wr = (
|
|
17160
|
-
const Ae = typeof
|
|
17161
|
-
|
|
17162
|
-
}, Nn = (
|
|
17163
|
-
const Ae = typeof
|
|
17154
|
+
), [Ot, Gt] = T(Ue), En = _t ? ne : cr, ue = Hr ? S : Rn, Xe = qr ? x : Go, Zt = ur ? E : Ot, Zo = (z) => {
|
|
17155
|
+
_t || Cn(z), je(z);
|
|
17156
|
+
}, dr = (z) => {
|
|
17157
|
+
const Ae = typeof z == "function" ? z(ue) : z;
|
|
17158
|
+
Hr ? C(Ae) : Wo(Ae);
|
|
17159
|
+
}, Wr = (z) => {
|
|
17160
|
+
const Ae = typeof z == "function" ? z(Xe) : z;
|
|
17161
|
+
qr ? R(Ae) : Nt(Ae);
|
|
17162
|
+
}, Nn = (z) => {
|
|
17163
|
+
const Ae = typeof z == "function" ? z(Zt) : z;
|
|
17164
17164
|
ur ? O(Ae) : Gt(Ae);
|
|
17165
|
-
}, Gr =
|
|
17165
|
+
}, Gr = j(b), On = j(null), lt = Ir(), vt = VR(On), [ee, ce] = T(null), me = Dc([
|
|
17166
17166
|
xr,
|
|
17167
17167
|
{
|
|
17168
17168
|
[`${xr}--${I}`]: I,
|
|
@@ -17198,15 +17198,15 @@ const jR = {
|
|
|
17198
17198
|
data: i,
|
|
17199
17199
|
state: $,
|
|
17200
17200
|
enableColumnFilters: ue,
|
|
17201
|
-
getRowId:
|
|
17201
|
+
getRowId: q,
|
|
17202
17202
|
filterFns: {
|
|
17203
17203
|
...st,
|
|
17204
17204
|
filterOnFilterKey: BR
|
|
17205
17205
|
},
|
|
17206
17206
|
sortingFns: {
|
|
17207
17207
|
...Ce,
|
|
17208
|
-
sortOnBadgeVariant:
|
|
17209
|
-
sortOnBadgeValue:
|
|
17208
|
+
sortOnBadgeVariant: HR,
|
|
17209
|
+
sortOnBadgeValue: qR
|
|
17210
17210
|
},
|
|
17211
17211
|
getCoreRowModel: mh(),
|
|
17212
17212
|
getSortedRowModel: J.enableSorting && !J.manualSorting ? Ch() : void 0,
|
|
@@ -17217,8 +17217,8 @@ const jR = {
|
|
|
17217
17217
|
B(() => {
|
|
17218
17218
|
Ze && Ze(mt);
|
|
17219
17219
|
}, [mt, Ze]);
|
|
17220
|
-
const oe = (
|
|
17221
|
-
const { active: Ae, over: pr } =
|
|
17220
|
+
const oe = (z) => {
|
|
17221
|
+
const { active: Ae, over: pr } = z;
|
|
17222
17222
|
if (Ae.id === "row-selection" || Ae.id === "row-toggle") {
|
|
17223
17223
|
ce(null);
|
|
17224
17224
|
return;
|
|
@@ -17241,31 +17241,31 @@ const jR = {
|
|
|
17241
17241
|
}, [b, W]);
|
|
17242
17242
|
const Ye = X(() => {
|
|
17243
17243
|
if (!$?.rowSelection) return { count: 0, visible: !1 };
|
|
17244
|
-
const
|
|
17245
|
-
return { count:
|
|
17244
|
+
const z = Object.keys($.rowSelection).length;
|
|
17245
|
+
return { count: z, visible: z > 0 };
|
|
17246
17246
|
}, [$?.rowSelection]), Be = Ye.count, Ke = Ye.visible, Ut = () => {
|
|
17247
17247
|
W.resetRowSelection(), xe?.(!1);
|
|
17248
17248
|
}, Xt = () => {
|
|
17249
|
-
xe && xe((
|
|
17249
|
+
xe && xe((z) => !z);
|
|
17250
17250
|
}, we = Z.useCallback(
|
|
17251
|
-
(
|
|
17251
|
+
(z) => J.enableRowSelection ? z <= 1 : z === 0,
|
|
17252
17252
|
[J.enableRowSelection]
|
|
17253
17253
|
), Yt = () => {
|
|
17254
17254
|
W.resetColumnFilters();
|
|
17255
17255
|
}, Zr = () => {
|
|
17256
|
-
typeof d == "string" ? Ka(d) : ht((
|
|
17257
|
-
}, Ka = (
|
|
17258
|
-
le?.(
|
|
17256
|
+
typeof d == "string" ? Ka(d) : ht((z) => !z);
|
|
17257
|
+
}, Ka = (z) => {
|
|
17258
|
+
le?.(z);
|
|
17259
17259
|
}, Cg = () => {
|
|
17260
17260
|
dr(P ?? !!J.enableFilters), Wr(Wt), Nn(Ue), W.resetColumnOrder(), W.resetColumnVisibility();
|
|
17261
17261
|
}, Pn = Z.useCallback(
|
|
17262
|
-
(
|
|
17262
|
+
(z) => vt && Xe && we(z),
|
|
17263
17263
|
[vt, Xe, we]
|
|
17264
17264
|
), Dn = W.getRowModel().rows, Uo = Dn.length === 0 && !!n, Ja = W.getHeaderGroups(), Rg = Z.useMemo(
|
|
17265
|
-
() => /* @__PURE__ */ g(Kp, { columnFiltersEnabled: ue, children: Ja.map((
|
|
17265
|
+
() => /* @__PURE__ */ g(Kp, { columnFiltersEnabled: ue, children: Ja.map((z) => se && $?.columnOrder ? /* @__PURE__ */ g(
|
|
17266
17266
|
RR,
|
|
17267
17267
|
{
|
|
17268
|
-
headerGroup:
|
|
17268
|
+
headerGroup: z,
|
|
17269
17269
|
tanstackTable: W,
|
|
17270
17270
|
tableHasFilters: ue,
|
|
17271
17271
|
emptyTable: Uo,
|
|
@@ -17279,13 +17279,13 @@ const jR = {
|
|
|
17279
17279
|
columnOrder: $.columnOrder,
|
|
17280
17280
|
activeId: ee,
|
|
17281
17281
|
enableColumnDrag: se,
|
|
17282
|
-
columnDragAriaLabelsCopy:
|
|
17282
|
+
columnDragAriaLabelsCopy: H
|
|
17283
17283
|
},
|
|
17284
|
-
|
|
17284
|
+
z.id
|
|
17285
17285
|
) : /* @__PURE__ */ g(
|
|
17286
17286
|
CR,
|
|
17287
17287
|
{
|
|
17288
|
-
headerGroup:
|
|
17288
|
+
headerGroup: z,
|
|
17289
17289
|
tanstackTable: W,
|
|
17290
17290
|
tableHasFilters: ue,
|
|
17291
17291
|
emptyTable: Uo,
|
|
@@ -17297,7 +17297,7 @@ const jR = {
|
|
|
17297
17297
|
enableSorting: J.enableSorting || !1,
|
|
17298
17298
|
sortingAriaLabels: w
|
|
17299
17299
|
},
|
|
17300
|
-
|
|
17300
|
+
z.id
|
|
17301
17301
|
)) }),
|
|
17302
17302
|
[
|
|
17303
17303
|
ue,
|
|
@@ -17306,7 +17306,7 @@ const jR = {
|
|
|
17306
17306
|
$?.columnOrder,
|
|
17307
17307
|
J.enableSorting,
|
|
17308
17308
|
w,
|
|
17309
|
-
|
|
17309
|
+
H,
|
|
17310
17310
|
W,
|
|
17311
17311
|
Uo,
|
|
17312
17312
|
Xe,
|
|
@@ -17332,7 +17332,7 @@ const jR = {
|
|
|
17332
17332
|
showBorder: Pn,
|
|
17333
17333
|
enableColumnDrag: se,
|
|
17334
17334
|
activeId: ee,
|
|
17335
|
-
getColumnWidths: () => W.getVisibleLeafColumns().map((
|
|
17335
|
+
getColumnWidths: () => W.getVisibleLeafColumns().map((z) => z.getSize() || "100%"),
|
|
17336
17336
|
variant: I,
|
|
17337
17337
|
emptyTableHeadingTag: a,
|
|
17338
17338
|
emptyTableCopy: n,
|
|
@@ -17342,7 +17342,7 @@ const jR = {
|
|
|
17342
17342
|
);
|
|
17343
17343
|
return /* @__PURE__ */ N("div", { id: `${lt}-table`, className: me, children: [
|
|
17344
17344
|
u && /* @__PURE__ */ g(
|
|
17345
|
-
|
|
17345
|
+
jR,
|
|
17346
17346
|
{
|
|
17347
17347
|
"aria-controls": `${lt}-table`,
|
|
17348
17348
|
settingsDrawerAriaControls: `${lt}-settings-drawer`,
|
|
@@ -17370,7 +17370,7 @@ const jR = {
|
|
|
17370
17370
|
[`${xr}__container--scrolled`]: vt
|
|
17371
17371
|
}),
|
|
17372
17372
|
ref: On,
|
|
17373
|
-
children: se &&
|
|
17373
|
+
children: se && H ? /* @__PURE__ */ g(
|
|
17374
17374
|
V5,
|
|
17375
17375
|
{
|
|
17376
17376
|
activeId: ee,
|
|
@@ -17381,7 +17381,7 @@ const jR = {
|
|
|
17381
17381
|
variant: I,
|
|
17382
17382
|
fullWidth: h,
|
|
17383
17383
|
showColumnFiltersEnabled: ue,
|
|
17384
|
-
columnDragAriaLabelsCopy:
|
|
17384
|
+
columnDragAriaLabelsCopy: H,
|
|
17385
17385
|
rootClassName: xr,
|
|
17386
17386
|
children: Qa
|
|
17387
17387
|
}
|
|
@@ -17422,8 +17422,8 @@ const jR = {
|
|
|
17422
17422
|
enableColumnDrag: !0,
|
|
17423
17423
|
copy: m,
|
|
17424
17424
|
columnOrder: $.columnOrder,
|
|
17425
|
-
onColumnOrderChange: (
|
|
17426
|
-
W.setColumnOrder(
|
|
17425
|
+
onColumnOrderChange: (z) => {
|
|
17426
|
+
W.setColumnOrder(z);
|
|
17427
17427
|
}
|
|
17428
17428
|
} : {
|
|
17429
17429
|
enableColumnDrag: !1,
|