@purpurds/table 7.0.0 → 7.1.0
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/styles.css +1 -1
- package/dist/table.cjs.js +42 -42
- package/dist/table.cjs.js.map +1 -1
- package/dist/table.es.js +683 -683
- package/dist/table.es.js.map +1 -1
- package/package.json +23 -23
- package/src/cell-types/body-text-cell.test.tsx +65 -0
- package/src/cell-types/body-text-cell.tsx +1 -1
- package/src/cell-types/lead-text-cell.test.tsx +65 -0
- package/src/cell-types/lead-text-cell.tsx +1 -1
- package/src/table-export-drawer.test.tsx +1 -1
- package/src/table-settings-drawer.test.tsx +0 -4
- package/src/table.module.scss +24 -14
- package/src/table.tsx +1 -1
package/dist/table.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as d, jsxs as C, Fragment as
|
|
1
|
+
import { jsx as d, jsxs as C, Fragment as z } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import io, { forwardRef as W, useState as
|
|
4
|
-
import * as
|
|
3
|
+
import io, { forwardRef as W, useState as I, useRef as ue, useCallback as ao, cloneElement as Lp, useEffect as le, isValidElement as Ip, useLayoutEffect as Cu, useId as Ft, createContext as qp, useContext as Vp, Children as jp } from "react";
|
|
4
|
+
import * as Io from "react-dom";
|
|
5
5
|
import Ru from "react-dom";
|
|
6
6
|
/**
|
|
7
7
|
* table-core
|
|
@@ -40,7 +40,7 @@ function oe(e, n) {
|
|
|
40
40
|
function tn(e) {
|
|
41
41
|
return e instanceof Function;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function zp(e) {
|
|
44
44
|
return Array.isArray(e) && e.every((n) => typeof n == "number");
|
|
45
45
|
}
|
|
46
46
|
function Hp(e, n) {
|
|
@@ -265,7 +265,7 @@ function Rr(e, n, r, o) {
|
|
|
265
265
|
});
|
|
266
266
|
return _((i = (t = u[0]) == null ? void 0 : t.headers) != null ? i : []), u;
|
|
267
267
|
}
|
|
268
|
-
const
|
|
268
|
+
const qo = (e, n, r, o, i, t, a) => {
|
|
269
269
|
let l = {
|
|
270
270
|
id: n,
|
|
271
271
|
index: o,
|
|
@@ -491,7 +491,7 @@ const Xp = (e, n, r) => r.reduce((o, i) => {
|
|
|
491
491
|
if (!n.length)
|
|
492
492
|
return;
|
|
493
493
|
const r = n.map((t) => t.getValue(e));
|
|
494
|
-
if (!
|
|
494
|
+
if (!zp(r))
|
|
495
495
|
return;
|
|
496
496
|
if (r.length === 1)
|
|
497
497
|
return r[0];
|
|
@@ -1311,7 +1311,7 @@ const dd = {
|
|
|
1311
1311
|
const {
|
|
1312
1312
|
rowSelection: r
|
|
1313
1313
|
} = n.getState();
|
|
1314
|
-
return
|
|
1314
|
+
return jo(e, r);
|
|
1315
1315
|
}, e.getIsSomeSelected = () => {
|
|
1316
1316
|
const {
|
|
1317
1317
|
rowSelection: r
|
|
@@ -1348,7 +1348,7 @@ function En(e, n) {
|
|
|
1348
1348
|
const r = e.getState().rowSelection, o = [], i = {}, t = function(a, l) {
|
|
1349
1349
|
return a.map((u) => {
|
|
1350
1350
|
var c;
|
|
1351
|
-
const p =
|
|
1351
|
+
const p = jo(u, r);
|
|
1352
1352
|
if (p && (o.push(u), i[u.id] = u), (c = u.subRows) != null && c.length && (u = {
|
|
1353
1353
|
...u,
|
|
1354
1354
|
subRows: t(u.subRows)
|
|
@@ -1362,7 +1362,7 @@ function En(e, n) {
|
|
|
1362
1362
|
rowsById: i
|
|
1363
1363
|
};
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function jo(e, n) {
|
|
1366
1366
|
var r;
|
|
1367
1367
|
return (r = n[e.id]) != null ? r : !1;
|
|
1368
1368
|
}
|
|
@@ -1371,20 +1371,20 @@ function co(e, n, r) {
|
|
|
1371
1371
|
if (!((o = e.subRows) != null && o.length)) return !1;
|
|
1372
1372
|
let i = !0, t = !1;
|
|
1373
1373
|
return e.subRows.forEach((a) => {
|
|
1374
|
-
if (!(t && !i) && (a.getCanSelect() && (
|
|
1374
|
+
if (!(t && !i) && (a.getCanSelect() && (jo(a, n) ? t = !0 : i = !1), a.subRows && a.subRows.length)) {
|
|
1375
1375
|
const l = co(a, n);
|
|
1376
1376
|
l === "all" ? t = !0 : (l === "some" && (t = !0), i = !1);
|
|
1377
1377
|
}
|
|
1378
1378
|
}), i ? "all" : t ? "some" : !1;
|
|
1379
1379
|
}
|
|
1380
|
-
const po = /([0-9]+)/gm, vd = (e, n, r) => Du(
|
|
1380
|
+
const po = /([0-9]+)/gm, vd = (e, n, r) => Du(ze(e.getValue(r)).toLowerCase(), ze(n.getValue(r)).toLowerCase()), wd = (e, n, r) => Du(ze(e.getValue(r)), ze(n.getValue(r))), yd = (e, n, r) => zo(ze(e.getValue(r)).toLowerCase(), ze(n.getValue(r)).toLowerCase()), bd = (e, n, r) => zo(ze(e.getValue(r)), ze(n.getValue(r))), $d = (e, n, r) => {
|
|
1381
1381
|
const o = e.getValue(r), i = n.getValue(r);
|
|
1382
1382
|
return o > i ? 1 : o < i ? -1 : 0;
|
|
1383
|
-
}, xd = (e, n, r) =>
|
|
1384
|
-
function
|
|
1383
|
+
}, xd = (e, n, r) => zo(e.getValue(r), n.getValue(r));
|
|
1384
|
+
function zo(e, n) {
|
|
1385
1385
|
return e === n ? 0 : e > n ? 1 : -1;
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1387
|
+
function ze(e) {
|
|
1388
1388
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
1389
1389
|
}
|
|
1390
1390
|
function Du(e, n) {
|
|
@@ -1407,7 +1407,7 @@ function Du(e, n) {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
return r.length - o.length;
|
|
1409
1409
|
}
|
|
1410
|
-
const
|
|
1410
|
+
const jt = {
|
|
1411
1411
|
alphanumeric: vd,
|
|
1412
1412
|
alphanumericCaseSensitive: wd,
|
|
1413
1413
|
text: yd,
|
|
@@ -1434,11 +1434,11 @@ const zt = {
|
|
|
1434
1434
|
for (const i of r) {
|
|
1435
1435
|
const t = i == null ? void 0 : i.getValue(e.id);
|
|
1436
1436
|
if (Object.prototype.toString.call(t) === "[object Date]")
|
|
1437
|
-
return
|
|
1437
|
+
return jt.datetime;
|
|
1438
1438
|
if (typeof t == "string" && (o = !0, t.split(po).length > 1))
|
|
1439
|
-
return
|
|
1439
|
+
return jt.alphanumeric;
|
|
1440
1440
|
}
|
|
1441
|
-
return o ?
|
|
1441
|
+
return o ? jt.text : jt.basic;
|
|
1442
1442
|
}, e.getAutoSortDir = () => {
|
|
1443
1443
|
const r = n.getFilteredRowModel().flatRows[0];
|
|
1444
1444
|
return typeof (r == null ? void 0 : r.getValue(e.id)) == "string" ? "asc" : "desc";
|
|
@@ -1446,7 +1446,7 @@ const zt = {
|
|
|
1446
1446
|
var r, o;
|
|
1447
1447
|
if (!e)
|
|
1448
1448
|
throw new Error();
|
|
1449
|
-
return tn(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (r = (o = n.options.sortingFns) == null ? void 0 : o[e.columnDef.sortingFn]) != null ? r :
|
|
1449
|
+
return tn(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (r = (o = n.options.sortingFns) == null ? void 0 : o[e.columnDef.sortingFn]) != null ? r : jt[e.columnDef.sortingFn];
|
|
1450
1450
|
}, e.toggleSorting = (r, o) => {
|
|
1451
1451
|
const i = e.getNextSortingOrder(), t = typeof r < "u" && r !== null;
|
|
1452
1452
|
n.setSorting((a) => {
|
|
@@ -1640,7 +1640,7 @@ function Ed() {
|
|
|
1640
1640
|
t === void 0 && (t = 0);
|
|
1641
1641
|
const l = [];
|
|
1642
1642
|
for (let c = 0; c < i.length; c++) {
|
|
1643
|
-
const p =
|
|
1643
|
+
const p = qo(e, e._getRowId(i[c], c, a), i[c], c, t, void 0, a == null ? void 0 : a.id);
|
|
1644
1644
|
if (r.flatRows.push(p), r.rowsById[p.id] = p, l.push(p), e.options.getSubRows) {
|
|
1645
1645
|
var u;
|
|
1646
1646
|
p.originalSubRows = e.options.getSubRows(i[c], c), (u = p.originalSubRows) != null && u.length && (p.subRows = o(p.originalSubRows, t + 1, p));
|
|
@@ -1673,7 +1673,7 @@ function kd(e, n, r) {
|
|
|
1673
1673
|
for (let g = 0; g < u.length; g++) {
|
|
1674
1674
|
var _;
|
|
1675
1675
|
let f = u[g];
|
|
1676
|
-
const m =
|
|
1676
|
+
const m = qo(r, f.id, f.original, f.index, f.depth, void 0, f.parentId);
|
|
1677
1677
|
if (m.columnFilters = f.columnFilters, (_ = f.subRows) != null && _.length && c < a) {
|
|
1678
1678
|
if (m.subRows = l(f.subRows, c + 1), f = m, n(f) && !m.subRows.length) {
|
|
1679
1679
|
p.push(f), t[f.id] = f, i.push(f);
|
|
@@ -1704,7 +1704,7 @@ function Od(e, n, r) {
|
|
|
1704
1704
|
if (n(f)) {
|
|
1705
1705
|
var _;
|
|
1706
1706
|
if ((_ = f.subRows) != null && _.length && c < a) {
|
|
1707
|
-
const h =
|
|
1707
|
+
const h = qo(r, f.id, f.original, f.index, f.depth, void 0, f.parentId);
|
|
1708
1708
|
h.subRows = l(f.subRows, c + 1), f = h;
|
|
1709
1709
|
}
|
|
1710
1710
|
p.push(f), i.push(f), t[f.id] = f;
|
|
@@ -1890,7 +1890,7 @@ function Td(e) {
|
|
|
1890
1890
|
function Ld(e) {
|
|
1891
1891
|
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
1892
1892
|
}
|
|
1893
|
-
function
|
|
1893
|
+
function Id(e) {
|
|
1894
1894
|
const n = {
|
|
1895
1895
|
state: {},
|
|
1896
1896
|
// Dummy state
|
|
@@ -1916,7 +1916,7 @@ function jd(e) {
|
|
|
1916
1916
|
}
|
|
1917
1917
|
})), r.current;
|
|
1918
1918
|
}
|
|
1919
|
-
function
|
|
1919
|
+
function qd(e) {
|
|
1920
1920
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1921
1921
|
}
|
|
1922
1922
|
var vi = { exports: {} };
|
|
@@ -1958,8 +1958,8 @@ function Vd() {
|
|
|
1958
1958
|
})();
|
|
1959
1959
|
}(vi)), vi.exports;
|
|
1960
1960
|
}
|
|
1961
|
-
var
|
|
1962
|
-
const
|
|
1961
|
+
var jd = Vd();
|
|
1962
|
+
const zd = /* @__PURE__ */ qd(jd), Pr = {
|
|
1963
1963
|
"purpur-heading": "_purpur-heading_k9fhq_1",
|
|
1964
1964
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
|
|
1965
1965
|
"purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
|
|
@@ -1986,7 +1986,7 @@ const qd = /* @__PURE__ */ Id(zd), Pr = {
|
|
|
1986
1986
|
variant: t = Hd.TITLE100,
|
|
1987
1987
|
...a
|
|
1988
1988
|
}) => {
|
|
1989
|
-
const l = i, u =
|
|
1989
|
+
const l = i, u = zd([
|
|
1990
1990
|
n,
|
|
1991
1991
|
Pr[kr],
|
|
1992
1992
|
Pr[`${kr}--${t}`],
|
|
@@ -2041,7 +2041,7 @@ function Wd() {
|
|
|
2041
2041
|
}(yi)), yi.exports;
|
|
2042
2042
|
}
|
|
2043
2043
|
var Gd = Wd();
|
|
2044
|
-
const Zd = /* @__PURE__ */ Bd(Gd),
|
|
2044
|
+
const Zd = /* @__PURE__ */ Bd(Gd), zt = {
|
|
2045
2045
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
2046
2046
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
2047
2047
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -2070,12 +2070,12 @@ const Zd = /* @__PURE__ */ Bd(Gd), qt = {
|
|
|
2070
2070
|
}) => {
|
|
2071
2071
|
const u = Zd([
|
|
2072
2072
|
r,
|
|
2073
|
-
|
|
2074
|
-
|
|
2073
|
+
zt[Ht],
|
|
2074
|
+
zt[`${Ht}--${a}`],
|
|
2075
2075
|
{
|
|
2076
|
-
[
|
|
2077
|
-
[
|
|
2078
|
-
[
|
|
2076
|
+
[zt[`${Ht}--hyphens`]]: i,
|
|
2077
|
+
[zt[`${Ht}--disabled`]]: o,
|
|
2078
|
+
[zt[`${Ht}--negative`]]: t
|
|
2079
2079
|
}
|
|
2080
2080
|
]);
|
|
2081
2081
|
return /* @__PURE__ */ d("p", { ...l, className: u, "data-testid": e, children: n });
|
|
@@ -2124,55 +2124,55 @@ function Yd() {
|
|
|
2124
2124
|
}(Nn)), Nn.exports;
|
|
2125
2125
|
}
|
|
2126
2126
|
var Kd = Yd();
|
|
2127
|
-
const
|
|
2128
|
-
"purpur-table": "_purpur-
|
|
2129
|
-
"purpur-table__container": "_purpur-
|
|
2130
|
-
"purpur-table-column-header-cell__first-header-visible": "_purpur-table-column-header-cell__first-header-
|
|
2131
|
-
"purpur-table-column-header-cell__last-header-visible": "_purpur-table-column-header-cell__last-header-
|
|
2132
|
-
"purpur-table-row-cell__last-row-first-cell-visible": "_purpur-table-row-cell__last-row-first-cell-
|
|
2133
|
-
"purpur-table-row-cell__last-row-last-cell-visible": "_purpur-table-row-cell__last-row-last-cell-
|
|
2134
|
-
"purpur-table__table": "_purpur-
|
|
2135
|
-
"purpur-table__table--full-width": "_purpur-table__table--full-
|
|
2136
|
-
"purpur-table-header": "_purpur-table-
|
|
2137
|
-
"purpur-table-column-header-cell": "_purpur-table-column-header-
|
|
2138
|
-
"purpur-table-column-header-cell__sticky-header": "_purpur-table-column-header-cell__sticky-
|
|
2139
|
-
"purpur-table-column-header-cell__sticky-column": "_purpur-table-column-header-cell__sticky-
|
|
2140
|
-
"purpur-table-header--has-filters": "_purpur-table-header--has-
|
|
2141
|
-
"purpur-table-row": "_purpur-table-
|
|
2142
|
-
"purpur-table-column-header-cell__checkbox": "_purpur-table-column-header-
|
|
2143
|
-
"purpur-table-column-header-cell__border-radius-first-cell": "_purpur-table-column-header-cell__border-radius-first-
|
|
2144
|
-
"purpur-table-column-header-cell__border-radius-last-cell": "_purpur-table-column-header-cell__border-radius-last-
|
|
2145
|
-
"purpur-table-column-header-cell__content": "_purpur-table-column-header-
|
|
2146
|
-
"purpur-table-column-header-cell__title": "_purpur-table-column-header-
|
|
2147
|
-
"purpur-table-column-header-cell__title--default": "_purpur-table-column-header-cell__title--
|
|
2148
|
-
"purpur-table-column-header-cell__sortable-title": "_purpur-table-column-header-cell__sortable-
|
|
2149
|
-
"purpur-table-column-header-cell__filter-wrapper": "_purpur-table-column-header-cell__filter-
|
|
2150
|
-
"purpur-table-row-cell": "_purpur-table-row-
|
|
2151
|
-
"purpur-table-row-cell__border-radius-first-cell": "_purpur-table-row-cell__border-radius-first-
|
|
2152
|
-
"purpur-table-row-cell__border-radius-last-cell": "_purpur-table-row-cell__border-radius-last-
|
|
2153
|
-
"purpur-table-row-cell__row-selection": "_purpur-table-row-cell__row-
|
|
2154
|
-
"purpur-table-row-cell__row-toggle": "_purpur-table-row-cell__row-
|
|
2155
|
-
"purpur-table-row--selected": "_purpur-table-row--
|
|
2156
|
-
"purpur-table-row-cell__sticky-column": "_purpur-table-row-cell__sticky-
|
|
2157
|
-
"purpur-table-column-header-cell__sticky-column__with-sticky-border": "_purpur-table-column-header-cell__sticky-column__with-sticky-
|
|
2158
|
-
"purpur-table-row-cell__sticky-column__with-sticky-border": "_purpur-table-row-cell__sticky-column__with-sticky-
|
|
2159
|
-
"purpur-table-row-cell__date": "_purpur-table-row-
|
|
2160
|
-
"purpur-table-row-cell__icon-text": "_purpur-table-row-cell__icon-
|
|
2161
|
-
"purpur-table-row-cell__error-message": "_purpur-table-row-cell__error-
|
|
2162
|
-
"purpur-table-row-cell__warning-message": "_purpur-table-row-cell__warning-
|
|
2163
|
-
"purpur-table-row-cell__right-align": "_purpur-table-row-cell__right-
|
|
2164
|
-
"purpur-table-row-cell__truncate-wrapper": "_purpur-table-row-cell__truncate-
|
|
2165
|
-
"purpur-table-row-cell__truncate": "_purpur-table-row-
|
|
2166
|
-
"purpur-table-row-cell__skeleton": "_purpur-table-row-
|
|
2167
|
-
"purpur-table-row-cell__tooltip-content": "_purpur-table-row-cell__tooltip-
|
|
2168
|
-
"purpur-table--primary": "_purpur-table--
|
|
2169
|
-
"purpur-table-body": "_purpur-table-
|
|
2170
|
-
"purpur-table--secondary": "_purpur-table--
|
|
2171
|
-
"purpur-table__empty-section": "_purpur-table__empty-
|
|
2172
|
-
"purpur-table__empty-section__icon": "_purpur-table__empty-
|
|
2173
|
-
"purpur-table__empty-section__texts": "_purpur-table__empty-
|
|
2174
|
-
"purpur-table__empty-section--primary": "_purpur-table__empty-section--
|
|
2175
|
-
"purpur-table__empty-section--secondary": "_purpur-table__empty-section--
|
|
2127
|
+
const j = /* @__PURE__ */ Xd(Kd), G = {
|
|
2128
|
+
"purpur-table": "_purpur-table_1qpqb_1",
|
|
2129
|
+
"purpur-table__container": "_purpur-table__container_1qpqb_11",
|
|
2130
|
+
"purpur-table-column-header-cell__first-header-visible": "_purpur-table-column-header-cell__first-header-visible_1qpqb_15",
|
|
2131
|
+
"purpur-table-column-header-cell__last-header-visible": "_purpur-table-column-header-cell__last-header-visible_1qpqb_18",
|
|
2132
|
+
"purpur-table-row-cell__last-row-first-cell-visible": "_purpur-table-row-cell__last-row-first-cell-visible_1qpqb_21",
|
|
2133
|
+
"purpur-table-row-cell__last-row-last-cell-visible": "_purpur-table-row-cell__last-row-last-cell-visible_1qpqb_24",
|
|
2134
|
+
"purpur-table__table": "_purpur-table__table_1qpqb_28",
|
|
2135
|
+
"purpur-table__table--full-width": "_purpur-table__table--full-width_1qpqb_34",
|
|
2136
|
+
"purpur-table-header": "_purpur-table-header_1qpqb_38",
|
|
2137
|
+
"purpur-table-column-header-cell": "_purpur-table-column-header-cell_1qpqb_15",
|
|
2138
|
+
"purpur-table-column-header-cell__sticky-header": "_purpur-table-column-header-cell__sticky-header_1qpqb_47",
|
|
2139
|
+
"purpur-table-column-header-cell__sticky-column": "_purpur-table-column-header-cell__sticky-column_1qpqb_53",
|
|
2140
|
+
"purpur-table-header--has-filters": "_purpur-table-header--has-filters_1qpqb_56",
|
|
2141
|
+
"purpur-table-row": "_purpur-table-row_1qpqb_21",
|
|
2142
|
+
"purpur-table-column-header-cell__checkbox": "_purpur-table-column-header-cell__checkbox_1qpqb_68",
|
|
2143
|
+
"purpur-table-column-header-cell__border-radius-first-cell": "_purpur-table-column-header-cell__border-radius-first-cell_1qpqb_71",
|
|
2144
|
+
"purpur-table-column-header-cell__border-radius-last-cell": "_purpur-table-column-header-cell__border-radius-last-cell_1qpqb_74",
|
|
2145
|
+
"purpur-table-column-header-cell__content": "_purpur-table-column-header-cell__content_1qpqb_77",
|
|
2146
|
+
"purpur-table-column-header-cell__title": "_purpur-table-column-header-cell__title_1qpqb_83",
|
|
2147
|
+
"purpur-table-column-header-cell__title--default": "_purpur-table-column-header-cell__title--default_1qpqb_89",
|
|
2148
|
+
"purpur-table-column-header-cell__sortable-title": "_purpur-table-column-header-cell__sortable-title_1qpqb_92",
|
|
2149
|
+
"purpur-table-column-header-cell__filter-wrapper": "_purpur-table-column-header-cell__filter-wrapper_1qpqb_95",
|
|
2150
|
+
"purpur-table-row-cell": "_purpur-table-row-cell_1qpqb_21",
|
|
2151
|
+
"purpur-table-row-cell__border-radius-first-cell": "_purpur-table-row-cell__border-radius-first-cell_1qpqb_110",
|
|
2152
|
+
"purpur-table-row-cell__border-radius-last-cell": "_purpur-table-row-cell__border-radius-last-cell_1qpqb_113",
|
|
2153
|
+
"purpur-table-row-cell__row-selection": "_purpur-table-row-cell__row-selection_1qpqb_119",
|
|
2154
|
+
"purpur-table-row-cell__row-toggle": "_purpur-table-row-cell__row-toggle_1qpqb_119",
|
|
2155
|
+
"purpur-table-row--selected": "_purpur-table-row--selected_1qpqb_137",
|
|
2156
|
+
"purpur-table-row-cell__sticky-column": "_purpur-table-row-cell__sticky-column_1qpqb_153",
|
|
2157
|
+
"purpur-table-column-header-cell__sticky-column__with-sticky-border": "_purpur-table-column-header-cell__sticky-column__with-sticky-border_1qpqb_164",
|
|
2158
|
+
"purpur-table-row-cell__sticky-column__with-sticky-border": "_purpur-table-row-cell__sticky-column__with-sticky-border_1qpqb_165",
|
|
2159
|
+
"purpur-table-row-cell__date": "_purpur-table-row-cell__date_1qpqb_178",
|
|
2160
|
+
"purpur-table-row-cell__icon-text": "_purpur-table-row-cell__icon-text_1qpqb_184",
|
|
2161
|
+
"purpur-table-row-cell__error-message": "_purpur-table-row-cell__error-message_1qpqb_191",
|
|
2162
|
+
"purpur-table-row-cell__warning-message": "_purpur-table-row-cell__warning-message_1qpqb_191",
|
|
2163
|
+
"purpur-table-row-cell__right-align": "_purpur-table-row-cell__right-align_1qpqb_223",
|
|
2164
|
+
"purpur-table-row-cell__truncate-wrapper": "_purpur-table-row-cell__truncate-wrapper_1qpqb_226",
|
|
2165
|
+
"purpur-table-row-cell__truncate": "_purpur-table-row-cell__truncate_1qpqb_226",
|
|
2166
|
+
"purpur-table-row-cell__skeleton": "_purpur-table-row-cell__skeleton_1qpqb_246",
|
|
2167
|
+
"purpur-table-row-cell__tooltip-content": "_purpur-table-row-cell__tooltip-content_1qpqb_250",
|
|
2168
|
+
"purpur-table--primary": "_purpur-table--primary_1qpqb_254",
|
|
2169
|
+
"purpur-table-body": "_purpur-table-body_1qpqb_257",
|
|
2170
|
+
"purpur-table--secondary": "_purpur-table--secondary_1qpqb_264",
|
|
2171
|
+
"purpur-table__empty-section": "_purpur-table__empty-section_1qpqb_274",
|
|
2172
|
+
"purpur-table__empty-section__icon": "_purpur-table__empty-section__icon_1qpqb_283",
|
|
2173
|
+
"purpur-table__empty-section__texts": "_purpur-table__empty-section__texts_1qpqb_289",
|
|
2174
|
+
"purpur-table__empty-section--primary": "_purpur-table__empty-section--primary_1qpqb_296",
|
|
2175
|
+
"purpur-table__empty-section--secondary": "_purpur-table__empty-section--secondary_1qpqb_299"
|
|
2176
2176
|
}, Jd = {
|
|
2177
2177
|
LG: "lg"
|
|
2178
2178
|
};
|
|
@@ -2219,18 +2219,18 @@ function ef() {
|
|
|
2219
2219
|
}(xi)), xi.exports;
|
|
2220
2220
|
}
|
|
2221
2221
|
var tf = ef();
|
|
2222
|
-
const Ci = /* @__PURE__ */ Qd(tf), rf = "
|
|
2223
|
-
"purpur-spinner": "_purpur-
|
|
2222
|
+
const Ci = /* @__PURE__ */ Qd(tf), rf = "_rotate_12t9p_1", nf = "_dash_12t9p_1", Bt = {
|
|
2223
|
+
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
2224
2224
|
rotate: rf,
|
|
2225
|
-
"purpur-spinner--xxs": "_purpur-spinner--
|
|
2226
|
-
"purpur-spinner--xs": "_purpur-spinner--
|
|
2227
|
-
"purpur-spinner--sm": "_purpur-spinner--
|
|
2228
|
-
"purpur-spinner--md": "_purpur-spinner--
|
|
2229
|
-
"purpur-spinner--lg": "_purpur-spinner--
|
|
2230
|
-
"purpur-spinner__circle": "_purpur-
|
|
2225
|
+
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
2226
|
+
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
2227
|
+
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
2228
|
+
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
2229
|
+
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
2230
|
+
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
2231
2231
|
dash: nf,
|
|
2232
|
-
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--
|
|
2233
|
-
"purpur-spinner__circle--negative": "_purpur-spinner__circle--
|
|
2232
|
+
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
2233
|
+
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
2234
2234
|
}, Wt = "purpur-spinner", of = {
|
|
2235
2235
|
SM: "sm"
|
|
2236
2236
|
}, af = ({
|
|
@@ -2324,7 +2324,7 @@ const cf = /* @__PURE__ */ lf(sf), pf = {
|
|
|
2324
2324
|
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_w455q_166",
|
|
2325
2325
|
"purpur-button--text-negative": "_purpur-button--text-negative_w455q_181",
|
|
2326
2326
|
"purpur-button--text": "_purpur-button--text_w455q_181"
|
|
2327
|
-
}, df = cf.bind(pf),
|
|
2327
|
+
}, df = cf.bind(pf), Je = "purpur-button", ff = ({
|
|
2328
2328
|
children: e,
|
|
2329
2329
|
className: n,
|
|
2330
2330
|
["data-testid"]: r,
|
|
@@ -2343,15 +2343,15 @@ const cf = /* @__PURE__ */ lf(sf), pf = {
|
|
|
2343
2343
|
return null;
|
|
2344
2344
|
const m = df(
|
|
2345
2345
|
[
|
|
2346
|
-
|
|
2347
|
-
`${
|
|
2348
|
-
`${
|
|
2346
|
+
Je,
|
|
2347
|
+
`${Je}--${l ? `${p}-negative` : p}`,
|
|
2348
|
+
`${Je}--${c}`
|
|
2349
2349
|
],
|
|
2350
2350
|
{
|
|
2351
|
-
[`${
|
|
2352
|
-
[`${
|
|
2353
|
-
[`${
|
|
2354
|
-
[`${
|
|
2351
|
+
[`${Je}--icon-only`]: t,
|
|
2352
|
+
[`${Je}--negative`]: l,
|
|
2353
|
+
[`${Je}--full-width`]: i,
|
|
2354
|
+
[`${Je}--disabled`]: o || a
|
|
2355
2355
|
},
|
|
2356
2356
|
n
|
|
2357
2357
|
), h = (w) => {
|
|
@@ -2485,7 +2485,7 @@ function Cf(...e) {
|
|
|
2485
2485
|
};
|
|
2486
2486
|
};
|
|
2487
2487
|
}
|
|
2488
|
-
var
|
|
2488
|
+
var Iu = s.forwardRef((e, n) => {
|
|
2489
2489
|
const { children: r, ...o } = e, i = s.Children.toArray(r), t = i.find(Ef);
|
|
2490
2490
|
if (t) {
|
|
2491
2491
|
const a = t.props.children, l = i.map((u) => u === t ? s.Children.count(a) > 1 ? s.Children.only(null) : s.isValidElement(a) ? a.props.children : null : u);
|
|
@@ -2493,7 +2493,7 @@ var ju = s.forwardRef((e, n) => {
|
|
|
2493
2493
|
}
|
|
2494
2494
|
return /* @__PURE__ */ d(fo, { ...o, ref: n, children: r });
|
|
2495
2495
|
});
|
|
2496
|
-
|
|
2496
|
+
Iu.displayName = "Slot";
|
|
2497
2497
|
var fo = s.forwardRef((e, n) => {
|
|
2498
2498
|
const { children: r, ...o } = e;
|
|
2499
2499
|
if (s.isValidElement(r)) {
|
|
@@ -2503,7 +2503,7 @@ var fo = s.forwardRef((e, n) => {
|
|
|
2503
2503
|
return s.Children.count(r) > 1 ? s.Children.only(null) : null;
|
|
2504
2504
|
});
|
|
2505
2505
|
fo.displayName = "SlotClone";
|
|
2506
|
-
var Rf = ({ children: e }) => /* @__PURE__ */ d(
|
|
2506
|
+
var Rf = ({ children: e }) => /* @__PURE__ */ d(z, { children: e });
|
|
2507
2507
|
function Ef(e) {
|
|
2508
2508
|
return s.isValidElement(e) && e.type === Rf;
|
|
2509
2509
|
}
|
|
@@ -2541,11 +2541,11 @@ var kf = [
|
|
|
2541
2541
|
"ul"
|
|
2542
2542
|
], Of = kf.reduce((e, n) => {
|
|
2543
2543
|
const r = s.forwardRef((o, i) => {
|
|
2544
|
-
const { asChild: t, ...a } = o, l = t ?
|
|
2544
|
+
const { asChild: t, ...a } = o, l = t ? Iu : n;
|
|
2545
2545
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ d(l, { ...a, ref: i });
|
|
2546
2546
|
});
|
|
2547
2547
|
return r.displayName = `Primitive.${n}`, { ...e, [n]: r };
|
|
2548
|
-
}, {}), Af = "Label",
|
|
2548
|
+
}, {}), Af = "Label", qu = s.forwardRef((e, n) => /* @__PURE__ */ d(
|
|
2549
2549
|
Of.label,
|
|
2550
2550
|
{
|
|
2551
2551
|
...e,
|
|
@@ -2556,8 +2556,8 @@ var kf = [
|
|
|
2556
2556
|
}
|
|
2557
2557
|
}
|
|
2558
2558
|
));
|
|
2559
|
-
|
|
2560
|
-
var Mf =
|
|
2559
|
+
qu.displayName = Af;
|
|
2560
|
+
var Mf = qu;
|
|
2561
2561
|
function Ff(e) {
|
|
2562
2562
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2563
2563
|
}
|
|
@@ -2605,7 +2605,7 @@ const Lf = /* @__PURE__ */ Ff(Tf), Pn = {
|
|
|
2605
2605
|
"purpur-label": "_purpur-label_1jndl_1",
|
|
2606
2606
|
"purpur-label--negative": "_purpur-label--negative_1jndl_8",
|
|
2607
2607
|
"purpur-label--disabled": "_purpur-label--disabled_1jndl_11"
|
|
2608
|
-
}, kn = "purpur-label",
|
|
2608
|
+
}, kn = "purpur-label", If = ({
|
|
2609
2609
|
children: e,
|
|
2610
2610
|
className: n,
|
|
2611
2611
|
disabled: r,
|
|
@@ -2622,7 +2622,7 @@ const Lf = /* @__PURE__ */ Ff(Tf), Pn = {
|
|
|
2622
2622
|
]);
|
|
2623
2623
|
return /* @__PURE__ */ d(Mf, { className: t, ...i, children: e });
|
|
2624
2624
|
};
|
|
2625
|
-
function
|
|
2625
|
+
function qf(e) {
|
|
2626
2626
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2627
2627
|
}
|
|
2628
2628
|
var Fi = { exports: {} };
|
|
@@ -2664,8 +2664,8 @@ function Vf() {
|
|
|
2664
2664
|
})();
|
|
2665
2665
|
}(Fi)), Fi.exports;
|
|
2666
2666
|
}
|
|
2667
|
-
var
|
|
2668
|
-
const
|
|
2667
|
+
var jf = Vf();
|
|
2668
|
+
const zf = /* @__PURE__ */ qf(jf), Gt = {
|
|
2669
2669
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
2670
2670
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
2671
2671
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -2692,7 +2692,7 @@ const qf = /* @__PURE__ */ If(zf), Gt = {
|
|
|
2692
2692
|
variant: a = Hf.PARAGRAPH100,
|
|
2693
2693
|
...l
|
|
2694
2694
|
}) => {
|
|
2695
|
-
const u =
|
|
2695
|
+
const u = zf([
|
|
2696
2696
|
r,
|
|
2697
2697
|
Gt[Zt],
|
|
2698
2698
|
Gt[`${Zt}--${a}`],
|
|
@@ -2716,7 +2716,7 @@ function Ti(e, n) {
|
|
|
2716
2716
|
return e(n);
|
|
2717
2717
|
e != null && (e.current = n);
|
|
2718
2718
|
}
|
|
2719
|
-
function
|
|
2719
|
+
function ju(...e) {
|
|
2720
2720
|
return (n) => {
|
|
2721
2721
|
let r = !1;
|
|
2722
2722
|
const o = e.map((i) => {
|
|
@@ -2733,7 +2733,7 @@ function zu(...e) {
|
|
|
2733
2733
|
};
|
|
2734
2734
|
}
|
|
2735
2735
|
function Wf(...e) {
|
|
2736
|
-
return s.useCallback(
|
|
2736
|
+
return s.useCallback(ju(...e), e);
|
|
2737
2737
|
}
|
|
2738
2738
|
function Gf(e, n = []) {
|
|
2739
2739
|
let r = [];
|
|
@@ -2785,7 +2785,7 @@ function Zf(...e) {
|
|
|
2785
2785
|
};
|
|
2786
2786
|
return r.scopeName = n.scopeName, r;
|
|
2787
2787
|
}
|
|
2788
|
-
function
|
|
2788
|
+
function zu(e) {
|
|
2789
2789
|
const n = s.useRef(e);
|
|
2790
2790
|
return s.useEffect(() => {
|
|
2791
2791
|
n.current = e;
|
|
@@ -2800,7 +2800,7 @@ function Uf({
|
|
|
2800
2800
|
onChange: r = () => {
|
|
2801
2801
|
}
|
|
2802
2802
|
}) {
|
|
2803
|
-
const [o, i] = Xf({ defaultProp: n, onChange: r }), t = e !== void 0, a = t ? e : o, l =
|
|
2803
|
+
const [o, i] = Xf({ defaultProp: n, onChange: r }), t = e !== void 0, a = t ? e : o, l = zu(r), u = s.useCallback(
|
|
2804
2804
|
(c) => {
|
|
2805
2805
|
if (t) {
|
|
2806
2806
|
const p = typeof c == "function" ? c(e) : c;
|
|
@@ -2816,7 +2816,7 @@ function Xf({
|
|
|
2816
2816
|
defaultProp: e,
|
|
2817
2817
|
onChange: n
|
|
2818
2818
|
}) {
|
|
2819
|
-
const r = s.useState(e), [o] = r, i = s.useRef(o), t =
|
|
2819
|
+
const r = s.useState(e), [o] = r, i = s.useRef(o), t = zu(n);
|
|
2820
2820
|
return s.useEffect(() => {
|
|
2821
2821
|
i.current !== o && (t(o), i.current = o);
|
|
2822
2822
|
}, [o, i, t]), r;
|
|
@@ -2862,12 +2862,12 @@ var go = s.forwardRef((e, n) => {
|
|
|
2862
2862
|
const { children: r, ...o } = e;
|
|
2863
2863
|
if (s.isValidElement(r)) {
|
|
2864
2864
|
const i = rg(r), t = tg(o, r.props);
|
|
2865
|
-
return r.type !== s.Fragment && (t.ref = n ?
|
|
2865
|
+
return r.type !== s.Fragment && (t.ref = n ? ju(n, i) : i), s.cloneElement(r, t);
|
|
2866
2866
|
}
|
|
2867
2867
|
return s.Children.count(r) > 1 ? s.Children.only(null) : null;
|
|
2868
2868
|
});
|
|
2869
2869
|
go.displayName = "SlotClone";
|
|
2870
|
-
var Qf = ({ children: e }) => /* @__PURE__ */ d(
|
|
2870
|
+
var Qf = ({ children: e }) => /* @__PURE__ */ d(z, { children: e });
|
|
2871
2871
|
function eg(e) {
|
|
2872
2872
|
return s.isValidElement(e) && e.type === Qf;
|
|
2873
2873
|
}
|
|
@@ -3020,9 +3020,9 @@ var Li = { exports: {} };
|
|
|
3020
3020
|
Licensed under the MIT License (MIT), see
|
|
3021
3021
|
http://jedwatson.github.io/classnames
|
|
3022
3022
|
*/
|
|
3023
|
-
var
|
|
3023
|
+
var Ii;
|
|
3024
3024
|
function pg() {
|
|
3025
|
-
return
|
|
3025
|
+
return Ii || (Ii = 1, function(e) {
|
|
3026
3026
|
(function() {
|
|
3027
3027
|
var n = {}.hasOwnProperty;
|
|
3028
3028
|
function r() {
|
|
@@ -3054,7 +3054,7 @@ function pg() {
|
|
|
3054
3054
|
}(Li)), Li.exports;
|
|
3055
3055
|
}
|
|
3056
3056
|
var dg = pg();
|
|
3057
|
-
const On = /* @__PURE__ */ cg(dg),
|
|
3057
|
+
const On = /* @__PURE__ */ cg(dg), qi = (e) => e && "touches" in e, fg = ({
|
|
3058
3058
|
children: e,
|
|
3059
3059
|
disabled: n,
|
|
3060
3060
|
onStart: r,
|
|
@@ -3064,17 +3064,17 @@ const On = /* @__PURE__ */ cg(dg), Ii = (e) => e && "touches" in e, fg = ({
|
|
|
3064
3064
|
position: a,
|
|
3065
3065
|
style: l
|
|
3066
3066
|
}) => {
|
|
3067
|
-
const [u, c] =
|
|
3067
|
+
const [u, c] = I(void 0), [p, _] = I(void 0), [g, f] = I(!1), m = (w) => {
|
|
3068
3068
|
if (!n) {
|
|
3069
3069
|
w.preventDefault();
|
|
3070
|
-
const y =
|
|
3070
|
+
const y = qi(w.nativeEvent) ? w.nativeEvent.touches[0].clientX : w.nativeEvent.clientX;
|
|
3071
3071
|
_(y), r == null || r();
|
|
3072
3072
|
}
|
|
3073
3073
|
}, h = ao(
|
|
3074
3074
|
(w) => {
|
|
3075
3075
|
if (typeof p != "number")
|
|
3076
3076
|
return;
|
|
3077
|
-
const y = (
|
|
3077
|
+
const y = (qi(w) ? w.touches[0].clientX : w.clientX) - p;
|
|
3078
3078
|
if (!y)
|
|
3079
3079
|
return;
|
|
3080
3080
|
const b = a + y;
|
|
@@ -3091,7 +3091,7 @@ const On = /* @__PURE__ */ cg(dg), Ii = (e) => e && "touches" in e, fg = ({
|
|
|
3091
3091
|
window.removeEventListener("mousemove", h), window.removeEventListener("touchmove", h);
|
|
3092
3092
|
}), [h]), le(() => (window.addEventListener("mouseup", v), window.addEventListener("touchend", v), () => {
|
|
3093
3093
|
window.removeEventListener("mouseup", v), window.removeEventListener("touchend", v);
|
|
3094
|
-
}), [v]),
|
|
3094
|
+
}), [v]), Ip(e) ? Lp(e, {
|
|
3095
3095
|
onMouseDown: m,
|
|
3096
3096
|
onTouchStart: m,
|
|
3097
3097
|
style: { ...l, transform: `translateX(${g ? u : a}px)` }
|
|
@@ -3100,13 +3100,13 @@ const On = /* @__PURE__ */ cg(dg), Ii = (e) => e && "touches" in e, fg = ({
|
|
|
3100
3100
|
width: void 0,
|
|
3101
3101
|
height: void 0
|
|
3102
3102
|
};
|
|
3103
|
-
function
|
|
3104
|
-
const { ref: n, box: r = "content-box", round: o } = e, [{ width: i, height: t }, a] =
|
|
3103
|
+
function ji(e) {
|
|
3104
|
+
const { ref: n, box: r = "content-box", round: o } = e, [{ width: i, height: t }, a] = I(Vi), l = gg(), u = ue({ ...Vi }), c = ue(void 0);
|
|
3105
3105
|
return c.current = e.onResize, le(() => {
|
|
3106
3106
|
if (!n.current || typeof window > "u" || !("ResizeObserver" in window))
|
|
3107
3107
|
return;
|
|
3108
3108
|
const p = new ResizeObserver(([_]) => {
|
|
3109
|
-
const g = r === "border-box" ? "borderBoxSize" : r === "device-pixel-content-box" ? "devicePixelContentBoxSize" : "contentBoxSize", f =
|
|
3109
|
+
const g = r === "border-box" ? "borderBoxSize" : r === "device-pixel-content-box" ? "devicePixelContentBoxSize" : "contentBoxSize", f = zi(_, g, "inlineSize"), m = zi(_, g, "blockSize");
|
|
3110
3110
|
if (u.current.width !== f || u.current.height !== m) {
|
|
3111
3111
|
const h = {
|
|
3112
3112
|
width: f && o ? Math.round(f) : f,
|
|
@@ -3120,7 +3120,7 @@ function zi(e) {
|
|
|
3120
3120
|
};
|
|
3121
3121
|
}, [r, n, l, o]), { width: i, height: t };
|
|
3122
3122
|
}
|
|
3123
|
-
function
|
|
3123
|
+
function zi(e, n, r) {
|
|
3124
3124
|
return e[n] ? Array.isArray(e[n]) ? e[n][0][r] : (
|
|
3125
3125
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3126
3126
|
// @ts-ignore Support Firefox's non-standard behavior
|
|
@@ -3134,7 +3134,7 @@ function gg() {
|
|
|
3134
3134
|
}), []), ao(() => e.current, []);
|
|
3135
3135
|
}
|
|
3136
3136
|
const _g = ({ checked: e, onChange: n }) => {
|
|
3137
|
-
const r = ue(null), o = ue(null), [i, t] =
|
|
3137
|
+
const r = ue(null), o = ue(null), [i, t] = I(void 0), [a, l] = I(!1), [u, c] = I(0), { height: p = 0 } = ji({ ref: o, round: !0 }), { height: _ = 0 } = ji({ ref: r, round: !0 }), g = (_ || 0) - p, f = p + g, m = g / 2, h = f / 2, v = typeof i == "number" && (e ? i < h : i > h);
|
|
3138
3138
|
return {
|
|
3139
3139
|
trackRef: r,
|
|
3140
3140
|
thumbRef: o,
|
|
@@ -3152,15 +3152,15 @@ const _g = ({ checked: e, onChange: n }) => {
|
|
|
3152
3152
|
}
|
|
3153
3153
|
};
|
|
3154
3154
|
}, Ce = {
|
|
3155
|
-
"purpur-toggle": "_purpur-
|
|
3156
|
-
"purpur-toggle__track": "_purpur-
|
|
3157
|
-
"purpur-toggle__checkmark-container": "_purpur-toggle__checkmark-
|
|
3158
|
-
"purpur-toggle__thumb": "_purpur-
|
|
3159
|
-
"purpur-toggle__thumb--dragging": "_purpur-toggle__thumb--
|
|
3160
|
-
"purpur-toggle__checkmark": "_purpur-
|
|
3161
|
-
"purpur-toggle__label--right": "_purpur-toggle__label--
|
|
3162
|
-
"purpur-toggle__label--left": "_purpur-toggle__label--
|
|
3163
|
-
"purpur-toggle__container": "_purpur-
|
|
3155
|
+
"purpur-toggle": "_purpur-toggle_zqs8u_1",
|
|
3156
|
+
"purpur-toggle__track": "_purpur-toggle__track_zqs8u_7",
|
|
3157
|
+
"purpur-toggle__checkmark-container": "_purpur-toggle__checkmark-container_zqs8u_45",
|
|
3158
|
+
"purpur-toggle__thumb": "_purpur-toggle__thumb_zqs8u_60",
|
|
3159
|
+
"purpur-toggle__thumb--dragging": "_purpur-toggle__thumb--dragging_zqs8u_85",
|
|
3160
|
+
"purpur-toggle__checkmark": "_purpur-toggle__checkmark_zqs8u_45",
|
|
3161
|
+
"purpur-toggle__label--right": "_purpur-toggle__label--right_zqs8u_110",
|
|
3162
|
+
"purpur-toggle__label--left": "_purpur-toggle__label--left_zqs8u_113",
|
|
3163
|
+
"purpur-toggle__container": "_purpur-toggle__container_zqs8u_116"
|
|
3164
3164
|
}, Re = "purpur-toggle", hg = ({
|
|
3165
3165
|
["data-testid"]: e,
|
|
3166
3166
|
className: n,
|
|
@@ -3172,7 +3172,7 @@ const _g = ({ checked: e, onChange: n }) => {
|
|
|
3172
3172
|
defaultChecked: l,
|
|
3173
3173
|
...u
|
|
3174
3174
|
}, c) => {
|
|
3175
|
-
const [p, _] =
|
|
3175
|
+
const [p, _] = I(
|
|
3176
3176
|
typeof t == "boolean" ? t : !!l
|
|
3177
3177
|
), g = !!(typeof t == "boolean" ? t : p), { thumbRef: f, trackRef: m, isDragging: h, onChangeWithDrag: v, ...w } = _g({
|
|
3178
3178
|
checked: g,
|
|
@@ -3180,7 +3180,7 @@ const _g = ({ checked: e, onChange: n }) => {
|
|
|
3180
3180
|
u.disabled || (o == null || o(b), _(b));
|
|
3181
3181
|
}
|
|
3182
3182
|
}), y = () => /* @__PURE__ */ d(
|
|
3183
|
-
|
|
3183
|
+
If,
|
|
3184
3184
|
{
|
|
3185
3185
|
htmlFor: u.id,
|
|
3186
3186
|
"data-testid": e && `${e}-label`,
|
|
@@ -3242,7 +3242,7 @@ const Hr = {
|
|
|
3242
3242
|
}, mg = "64em", vg = {
|
|
3243
3243
|
MAX_LG: `(max-width: ${mg})`
|
|
3244
3244
|
}, wg = () => {
|
|
3245
|
-
const [e, n] =
|
|
3245
|
+
const [e, n] = I(!1);
|
|
3246
3246
|
return Cu(() => {
|
|
3247
3247
|
const r = window.matchMedia(vg.MAX_LG);
|
|
3248
3248
|
function o() {
|
|
@@ -3250,7 +3250,7 @@ const Hr = {
|
|
|
3250
3250
|
}
|
|
3251
3251
|
return window.addEventListener("resize", o), o(), () => window.removeEventListener("resize", o);
|
|
3252
3252
|
}, []), { isLgOrSmaller: e };
|
|
3253
|
-
}, Ut = "purpur-table-action-bar", Or =
|
|
3253
|
+
}, Ut = "purpur-table-action-bar", Or = j.bind(Hr), ft = "purpur-table-action-bar", yg = ({
|
|
3254
3254
|
rowCount: e,
|
|
3255
3255
|
selectedRowsCount: n,
|
|
3256
3256
|
copy: r,
|
|
@@ -3324,7 +3324,7 @@ const Hr = {
|
|
|
3324
3324
|
]
|
|
3325
3325
|
}
|
|
3326
3326
|
);
|
|
3327
|
-
}, bg =
|
|
3327
|
+
}, bg = j.bind(G), $g = "purpur-table-body", xg = ({ children: e, className: n, ...r }) => {
|
|
3328
3328
|
const o = bg([n, $g]);
|
|
3329
3329
|
return /* @__PURE__ */ d("tbody", { className: o, ...r, children: e });
|
|
3330
3330
|
};
|
|
@@ -3459,10 +3459,10 @@ function Tg() {
|
|
|
3459
3459
|
}(Gi)), Gi.exports;
|
|
3460
3460
|
}
|
|
3461
3461
|
var Lg = Tg();
|
|
3462
|
-
const
|
|
3462
|
+
const Ig = /* @__PURE__ */ Dg(Lg), Ui = {
|
|
3463
3463
|
"purpur-field-error-text": "_purpur-field-error-text_1lj7e_1",
|
|
3464
3464
|
"purpur-field-error-text__icon": "_purpur-field-error-text__icon_1lj7e_11"
|
|
3465
|
-
}, Xi = "purpur-field-error-text",
|
|
3465
|
+
}, Xi = "purpur-field-error-text", qg = ({
|
|
3466
3466
|
children: e,
|
|
3467
3467
|
className: n,
|
|
3468
3468
|
["aria-relevant"]: r = "additions text",
|
|
@@ -3470,7 +3470,7 @@ const jg = /* @__PURE__ */ Dg(Lg), Ui = {
|
|
|
3470
3470
|
}) => /* @__PURE__ */ C(
|
|
3471
3471
|
"div",
|
|
3472
3472
|
{
|
|
3473
|
-
className:
|
|
3473
|
+
className: Ig([n, Ui[Xi]]),
|
|
3474
3474
|
"aria-live": "assertive",
|
|
3475
3475
|
"aria-relevant": r,
|
|
3476
3476
|
...o,
|
|
@@ -3490,7 +3490,7 @@ var Yi = { exports: {} };
|
|
|
3490
3490
|
http://jedwatson.github.io/classnames
|
|
3491
3491
|
*/
|
|
3492
3492
|
var Ki;
|
|
3493
|
-
function
|
|
3493
|
+
function jg() {
|
|
3494
3494
|
return Ki || (Ki = 1, function(e) {
|
|
3495
3495
|
(function() {
|
|
3496
3496
|
var n = {}.hasOwnProperty;
|
|
@@ -3522,8 +3522,8 @@ function zg() {
|
|
|
3522
3522
|
})();
|
|
3523
3523
|
}(Yi)), Yi.exports;
|
|
3524
3524
|
}
|
|
3525
|
-
var
|
|
3526
|
-
const Hg = /* @__PURE__ */ Vg(
|
|
3525
|
+
var zg = jg();
|
|
3526
|
+
const Hg = /* @__PURE__ */ Vg(zg), Bg = {
|
|
3527
3527
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
3528
3528
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
3529
3529
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -3612,7 +3612,7 @@ var ho = s.forwardRef((e, n) => {
|
|
|
3612
3612
|
return s.Children.count(r) > 1 ? s.Children.only(null) : null;
|
|
3613
3613
|
});
|
|
3614
3614
|
ho.displayName = "SlotClone";
|
|
3615
|
-
var Qg = ({ children: e }) => /* @__PURE__ */ d(
|
|
3615
|
+
var Qg = ({ children: e }) => /* @__PURE__ */ d(z, { children: e });
|
|
3616
3616
|
function e_(e) {
|
|
3617
3617
|
return s.isValidElement(e) && e.type === Qg;
|
|
3618
3618
|
}
|
|
@@ -4041,7 +4041,7 @@ var vo = s.forwardRef((e, n) => {
|
|
|
4041
4041
|
return s.Children.count(r) > 1 ? s.Children.only(null) : null;
|
|
4042
4042
|
});
|
|
4043
4043
|
vo.displayName = "SlotClone";
|
|
4044
|
-
var R_ = ({ children: e }) => /* @__PURE__ */ d(
|
|
4044
|
+
var R_ = ({ children: e }) => /* @__PURE__ */ d(z, { children: e });
|
|
4045
4045
|
function E_(e) {
|
|
4046
4046
|
return s.isValidElement(e) && e.type === R_;
|
|
4047
4047
|
}
|
|
@@ -4113,7 +4113,7 @@ var k_ = [
|
|
|
4113
4113
|
{
|
|
4114
4114
|
type: "button",
|
|
4115
4115
|
role: "checkbox",
|
|
4116
|
-
"aria-checked":
|
|
4116
|
+
"aria-checked": je(w) ? "mixed" : w,
|
|
4117
4117
|
"aria-required": a,
|
|
4118
4118
|
"data-state": us(w),
|
|
4119
4119
|
"data-disabled": l ? "" : void 0,
|
|
@@ -4125,7 +4125,7 @@ var k_ = [
|
|
|
4125
4125
|
$.key === "Enter" && $.preventDefault();
|
|
4126
4126
|
}),
|
|
4127
4127
|
onClick: ia(e.onClick, ($) => {
|
|
4128
|
-
y((x) =>
|
|
4128
|
+
y((x) => je(x) ? !0 : !x), v && (h.current = $.isPropagationStopped(), h.current || $.stopPropagation());
|
|
4129
4129
|
})
|
|
4130
4130
|
}
|
|
4131
4131
|
),
|
|
@@ -4141,7 +4141,7 @@ var k_ = [
|
|
|
4141
4141
|
disabled: l,
|
|
4142
4142
|
form: p,
|
|
4143
4143
|
style: { transform: "translateX(-100%)" },
|
|
4144
|
-
defaultChecked:
|
|
4144
|
+
defaultChecked: je(t) ? !1 : t
|
|
4145
4145
|
}
|
|
4146
4146
|
)
|
|
4147
4147
|
] });
|
|
@@ -4151,7 +4151,7 @@ is.displayName = Bo;
|
|
|
4151
4151
|
var as = "CheckboxIndicator", ls = s.forwardRef(
|
|
4152
4152
|
(e, n) => {
|
|
4153
4153
|
const { __scopeCheckbox: r, forceMount: o, ...i } = e, t = M_(as, r);
|
|
4154
|
-
return /* @__PURE__ */ d(rs, { present: o ||
|
|
4154
|
+
return /* @__PURE__ */ d(rs, { present: o || je(t.state) || t.state === !0, children: /* @__PURE__ */ d(
|
|
4155
4155
|
os.span,
|
|
4156
4156
|
{
|
|
4157
4157
|
"data-state": us(t.state),
|
|
@@ -4170,10 +4170,10 @@ var F_ = (e) => {
|
|
|
4170
4170
|
const p = a.current, _ = window.HTMLInputElement.prototype, g = Object.getOwnPropertyDescriptor(_, "checked").set;
|
|
4171
4171
|
if (l !== r && g) {
|
|
4172
4172
|
const f = new Event("click", { bubbles: o });
|
|
4173
|
-
p.indeterminate =
|
|
4173
|
+
p.indeterminate = je(r), g.call(p, je(r) ? !1 : r), p.dispatchEvent(f);
|
|
4174
4174
|
}
|
|
4175
4175
|
}, [l, r, o]);
|
|
4176
|
-
const c = s.useRef(
|
|
4176
|
+
const c = s.useRef(je(r) ? !1 : r);
|
|
4177
4177
|
return /* @__PURE__ */ d(
|
|
4178
4178
|
"input",
|
|
4179
4179
|
{
|
|
@@ -4194,11 +4194,11 @@ var F_ = (e) => {
|
|
|
4194
4194
|
}
|
|
4195
4195
|
);
|
|
4196
4196
|
};
|
|
4197
|
-
function
|
|
4197
|
+
function je(e) {
|
|
4198
4198
|
return e === "indeterminate";
|
|
4199
4199
|
}
|
|
4200
4200
|
function us(e) {
|
|
4201
|
-
return
|
|
4201
|
+
return je(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
4202
4202
|
}
|
|
4203
4203
|
var D_ = is, T_ = ls;
|
|
4204
4204
|
function L_(e) {
|
|
@@ -4211,7 +4211,7 @@ var aa = { exports: {} };
|
|
|
4211
4211
|
http://jedwatson.github.io/classnames
|
|
4212
4212
|
*/
|
|
4213
4213
|
var la;
|
|
4214
|
-
function
|
|
4214
|
+
function I_() {
|
|
4215
4215
|
return la || (la = 1, function(e) {
|
|
4216
4216
|
(function() {
|
|
4217
4217
|
var n = {}.hasOwnProperty;
|
|
@@ -4243,8 +4243,8 @@ function j_() {
|
|
|
4243
4243
|
})();
|
|
4244
4244
|
}(aa)), aa.exports;
|
|
4245
4245
|
}
|
|
4246
|
-
var
|
|
4247
|
-
const V_ = /* @__PURE__ */ L_(
|
|
4246
|
+
var q_ = I_();
|
|
4247
|
+
const V_ = /* @__PURE__ */ L_(q_), j_ = {
|
|
4248
4248
|
"purpur-checkbox": "_purpur-checkbox_m4999_1",
|
|
4249
4249
|
"purpur-checkbox__box": "_purpur-checkbox__box_m4999_7",
|
|
4250
4250
|
"purpur-checkbox--error": "_purpur-checkbox--error_m4999_16",
|
|
@@ -4253,7 +4253,7 @@ const V_ = /* @__PURE__ */ L_(I_), z_ = {
|
|
|
4253
4253
|
"purpur-checkbox__label": "_purpur-checkbox__label_m4999_70",
|
|
4254
4254
|
"purpur-checkbox__wrapper": "_purpur-checkbox__wrapper_m4999_73",
|
|
4255
4255
|
"purpur-checkbox__container": "_purpur-checkbox__container_m4999_79"
|
|
4256
|
-
}, gt = V_.bind(
|
|
4256
|
+
}, gt = V_.bind(j_), Te = "purpur-checkbox", z_ = ({
|
|
4257
4257
|
["data-testid"]: e,
|
|
4258
4258
|
checked: n,
|
|
4259
4259
|
className: r,
|
|
@@ -4312,9 +4312,9 @@ const V_ = /* @__PURE__ */ L_(I_), z_ = {
|
|
|
4312
4312
|
}
|
|
4313
4313
|
)
|
|
4314
4314
|
] }),
|
|
4315
|
-
c && /* @__PURE__ */ d(
|
|
4315
|
+
c && /* @__PURE__ */ d(qg, { "data-testid": e && `${e}-error-text`, children: i })
|
|
4316
4316
|
] });
|
|
4317
|
-
}, Wo = W(
|
|
4317
|
+
}, Wo = W(z_);
|
|
4318
4318
|
Wo.displayName = "Checkbox";
|
|
4319
4319
|
function H_(e) {
|
|
4320
4320
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -4762,17 +4762,17 @@ _s.displayName = "Slot";
|
|
|
4762
4762
|
var wo = s.forwardRef((e, n) => {
|
|
4763
4763
|
const { children: r, ...o } = e;
|
|
4764
4764
|
if (s.isValidElement(r)) {
|
|
4765
|
-
const i =
|
|
4765
|
+
const i = qh(r), t = Ih(o, r.props);
|
|
4766
4766
|
return r.type !== s.Fragment && (t.ref = n ? Dh(n, i) : i), s.cloneElement(r, t);
|
|
4767
4767
|
}
|
|
4768
4768
|
return s.Children.count(r) > 1 ? s.Children.only(null) : null;
|
|
4769
4769
|
});
|
|
4770
4770
|
wo.displayName = "SlotClone";
|
|
4771
|
-
var Th = ({ children: e }) => /* @__PURE__ */ d(
|
|
4771
|
+
var Th = ({ children: e }) => /* @__PURE__ */ d(z, { children: e });
|
|
4772
4772
|
function Lh(e) {
|
|
4773
4773
|
return s.isValidElement(e) && e.type === Th;
|
|
4774
4774
|
}
|
|
4775
|
-
function
|
|
4775
|
+
function Ih(e, n) {
|
|
4776
4776
|
const r = { ...n };
|
|
4777
4777
|
for (const o in n) {
|
|
4778
4778
|
const i = e[o], t = n[o];
|
|
@@ -4782,7 +4782,7 @@ function jh(e, n) {
|
|
|
4782
4782
|
}
|
|
4783
4783
|
return { ...e, ...r };
|
|
4784
4784
|
}
|
|
4785
|
-
function
|
|
4785
|
+
function qh(e) {
|
|
4786
4786
|
var n, r;
|
|
4787
4787
|
let o = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, i = o && "isReactWarning" in o && o.isReactWarning;
|
|
4788
4788
|
return i ? e.ref : (o = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, i = o && "isReactWarning" in o && o.isReactWarning, i ? e.props.ref : e.props.ref || e.ref);
|
|
@@ -4804,14 +4804,14 @@ var Vh = [
|
|
|
4804
4804
|
"span",
|
|
4805
4805
|
"svg",
|
|
4806
4806
|
"ul"
|
|
4807
|
-
],
|
|
4807
|
+
], jh = Vh.reduce((e, n) => {
|
|
4808
4808
|
const r = s.forwardRef((o, i) => {
|
|
4809
4809
|
const { asChild: t, ...a } = o, l = t ? _s : n;
|
|
4810
4810
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ d(l, { ...a, ref: i });
|
|
4811
4811
|
});
|
|
4812
4812
|
return r.displayName = `Primitive.${n}`, { ...e, [n]: r };
|
|
4813
|
-
}, {}),
|
|
4814
|
-
|
|
4813
|
+
}, {}), zh = "Label", hs = s.forwardRef((e, n) => /* @__PURE__ */ d(
|
|
4814
|
+
jh.label,
|
|
4815
4815
|
{
|
|
4816
4816
|
...e,
|
|
4817
4817
|
ref: n,
|
|
@@ -4821,7 +4821,7 @@ var Vh = [
|
|
|
4821
4821
|
}
|
|
4822
4822
|
}
|
|
4823
4823
|
));
|
|
4824
|
-
hs.displayName =
|
|
4824
|
+
hs.displayName = zh;
|
|
4825
4825
|
var Hh = hs;
|
|
4826
4826
|
function Bh(e) {
|
|
4827
4827
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -4930,18 +4930,18 @@ function Yh() {
|
|
|
4930
4930
|
}(Na)), Na.exports;
|
|
4931
4931
|
}
|
|
4932
4932
|
var Kh = Yh();
|
|
4933
|
-
const ka = /* @__PURE__ */ Xh(Kh), Jh = "
|
|
4934
|
-
"purpur-spinner": "_purpur-
|
|
4933
|
+
const ka = /* @__PURE__ */ Xh(Kh), Jh = "_rotate_12t9p_1", Qh = "_dash_12t9p_1", Kt = {
|
|
4934
|
+
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
4935
4935
|
rotate: Jh,
|
|
4936
|
-
"purpur-spinner--xxs": "_purpur-spinner--
|
|
4937
|
-
"purpur-spinner--xs": "_purpur-spinner--
|
|
4938
|
-
"purpur-spinner--sm": "_purpur-spinner--
|
|
4939
|
-
"purpur-spinner--md": "_purpur-spinner--
|
|
4940
|
-
"purpur-spinner--lg": "_purpur-spinner--
|
|
4941
|
-
"purpur-spinner__circle": "_purpur-
|
|
4936
|
+
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
4937
|
+
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
4938
|
+
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
4939
|
+
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
4940
|
+
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
4941
|
+
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
4942
4942
|
dash: Qh,
|
|
4943
|
-
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--
|
|
4944
|
-
"purpur-spinner__circle--negative": "_purpur-spinner__circle--
|
|
4943
|
+
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
4944
|
+
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
4945
4945
|
}, Jt = "purpur-spinner", em = {
|
|
4946
4946
|
SM: "sm"
|
|
4947
4947
|
}, tm = ({
|
|
@@ -5204,18 +5204,18 @@ function dm() {
|
|
|
5204
5204
|
}(Ma)), Ma.exports;
|
|
5205
5205
|
}
|
|
5206
5206
|
var fm = dm();
|
|
5207
|
-
const Da = /* @__PURE__ */ pm(fm), gm = "
|
|
5208
|
-
"purpur-spinner": "_purpur-
|
|
5207
|
+
const Da = /* @__PURE__ */ pm(fm), gm = "_rotate_12t9p_1", _m = "_dash_12t9p_1", Qt = {
|
|
5208
|
+
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
5209
5209
|
rotate: gm,
|
|
5210
|
-
"purpur-spinner--xxs": "_purpur-spinner--
|
|
5211
|
-
"purpur-spinner--xs": "_purpur-spinner--
|
|
5212
|
-
"purpur-spinner--sm": "_purpur-spinner--
|
|
5213
|
-
"purpur-spinner--md": "_purpur-spinner--
|
|
5214
|
-
"purpur-spinner--lg": "_purpur-spinner--
|
|
5215
|
-
"purpur-spinner__circle": "_purpur-
|
|
5210
|
+
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
5211
|
+
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
5212
|
+
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
5213
|
+
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
5214
|
+
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
5215
|
+
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
5216
5216
|
dash: _m,
|
|
5217
|
-
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--
|
|
5218
|
-
"purpur-spinner__circle--negative": "_purpur-spinner__circle--
|
|
5217
|
+
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
5218
|
+
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
5219
5219
|
}, er = "purpur-spinner", hm = {
|
|
5220
5220
|
SM: "sm"
|
|
5221
5221
|
}, mm = ({
|
|
@@ -5309,7 +5309,7 @@ const bm = /* @__PURE__ */ vm(ym), $m = {
|
|
|
5309
5309
|
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_w455q_166",
|
|
5310
5310
|
"purpur-button--text-negative": "_purpur-button--text-negative_w455q_181",
|
|
5311
5311
|
"purpur-button--text": "_purpur-button--text_w455q_181"
|
|
5312
|
-
}, xm = bm.bind($m),
|
|
5312
|
+
}, xm = bm.bind($m), Qe = "purpur-button", Sm = ({
|
|
5313
5313
|
children: e,
|
|
5314
5314
|
className: n,
|
|
5315
5315
|
["data-testid"]: r,
|
|
@@ -5328,15 +5328,15 @@ const bm = /* @__PURE__ */ vm(ym), $m = {
|
|
|
5328
5328
|
return null;
|
|
5329
5329
|
const m = xm(
|
|
5330
5330
|
[
|
|
5331
|
-
|
|
5332
|
-
`${
|
|
5333
|
-
`${
|
|
5331
|
+
Qe,
|
|
5332
|
+
`${Qe}--${l ? `${p}-negative` : p}`,
|
|
5333
|
+
`${Qe}--${c}`
|
|
5334
5334
|
],
|
|
5335
5335
|
{
|
|
5336
|
-
[`${
|
|
5337
|
-
[`${
|
|
5338
|
-
[`${
|
|
5339
|
-
[`${
|
|
5336
|
+
[`${Qe}--icon-only`]: t,
|
|
5337
|
+
[`${Qe}--negative`]: l,
|
|
5338
|
+
[`${Qe}--full-width`]: i,
|
|
5339
|
+
[`${Qe}--disabled`]: o || a
|
|
5340
5340
|
},
|
|
5341
5341
|
n
|
|
5342
5342
|
), h = (w) => {
|
|
@@ -5364,15 +5364,15 @@ ws.displayName = "Button";
|
|
|
5364
5364
|
function Cm(e) {
|
|
5365
5365
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5366
5366
|
}
|
|
5367
|
-
var
|
|
5367
|
+
var Ia = { exports: {} };
|
|
5368
5368
|
/*!
|
|
5369
5369
|
Copyright (c) 2018 Jed Watson.
|
|
5370
5370
|
Licensed under the MIT License (MIT), see
|
|
5371
5371
|
http://jedwatson.github.io/classnames
|
|
5372
5372
|
*/
|
|
5373
|
-
var
|
|
5373
|
+
var qa;
|
|
5374
5374
|
function Rm() {
|
|
5375
|
-
return
|
|
5375
|
+
return qa || (qa = 1, function(e) {
|
|
5376
5376
|
(function() {
|
|
5377
5377
|
var n = {}.hasOwnProperty;
|
|
5378
5378
|
function r() {
|
|
@@ -5401,7 +5401,7 @@ function Rm() {
|
|
|
5401
5401
|
}
|
|
5402
5402
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
5403
5403
|
})();
|
|
5404
|
-
}(
|
|
5404
|
+
}(Ia)), Ia.exports;
|
|
5405
5405
|
}
|
|
5406
5406
|
var Em = Rm();
|
|
5407
5407
|
const Nm = /* @__PURE__ */ Cm(Em), Pm = {
|
|
@@ -5452,15 +5452,15 @@ const Dm = {
|
|
|
5452
5452
|
function Tm(e) {
|
|
5453
5453
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5454
5454
|
}
|
|
5455
|
-
var
|
|
5455
|
+
var ja = { exports: {} };
|
|
5456
5456
|
/*!
|
|
5457
5457
|
Copyright (c) 2018 Jed Watson.
|
|
5458
5458
|
Licensed under the MIT License (MIT), see
|
|
5459
5459
|
http://jedwatson.github.io/classnames
|
|
5460
5460
|
*/
|
|
5461
|
-
var
|
|
5461
|
+
var za;
|
|
5462
5462
|
function Lm() {
|
|
5463
|
-
return
|
|
5463
|
+
return za || (za = 1, function(e) {
|
|
5464
5464
|
(function() {
|
|
5465
5465
|
var n = {}.hasOwnProperty;
|
|
5466
5466
|
function r() {
|
|
@@ -5489,10 +5489,10 @@ function Lm() {
|
|
|
5489
5489
|
}
|
|
5490
5490
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
5491
5491
|
})();
|
|
5492
|
-
}(
|
|
5492
|
+
}(ja)), ja.exports;
|
|
5493
5493
|
}
|
|
5494
|
-
var
|
|
5495
|
-
const
|
|
5494
|
+
var Im = Lm();
|
|
5495
|
+
const qm = /* @__PURE__ */ Tm(Im), Ha = {
|
|
5496
5496
|
"purpur-field-error-text": "_purpur-field-error-text_1lj7e_1",
|
|
5497
5497
|
"purpur-field-error-text__icon": "_purpur-field-error-text__icon_1lj7e_11"
|
|
5498
5498
|
}, Ba = "purpur-field-error-text", Vm = ({
|
|
@@ -5503,7 +5503,7 @@ const Im = /* @__PURE__ */ Tm(jm), Ha = {
|
|
|
5503
5503
|
}) => /* @__PURE__ */ C(
|
|
5504
5504
|
"div",
|
|
5505
5505
|
{
|
|
5506
|
-
className:
|
|
5506
|
+
className: qm([n, Ha[Ba]]),
|
|
5507
5507
|
"aria-live": "assertive",
|
|
5508
5508
|
"aria-relevant": r,
|
|
5509
5509
|
...o,
|
|
@@ -5513,7 +5513,7 @@ const Im = /* @__PURE__ */ Tm(jm), Ha = {
|
|
|
5513
5513
|
]
|
|
5514
5514
|
}
|
|
5515
5515
|
);
|
|
5516
|
-
function
|
|
5516
|
+
function jm(e) {
|
|
5517
5517
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5518
5518
|
}
|
|
5519
5519
|
var Wa = { exports: {} };
|
|
@@ -5523,7 +5523,7 @@ var Wa = { exports: {} };
|
|
|
5523
5523
|
http://jedwatson.github.io/classnames
|
|
5524
5524
|
*/
|
|
5525
5525
|
var Ga;
|
|
5526
|
-
function
|
|
5526
|
+
function zm() {
|
|
5527
5527
|
return Ga || (Ga = 1, function(e) {
|
|
5528
5528
|
(function() {
|
|
5529
5529
|
var n = {}.hasOwnProperty;
|
|
@@ -5555,8 +5555,8 @@ function qm() {
|
|
|
5555
5555
|
})();
|
|
5556
5556
|
}(Wa)), Wa.exports;
|
|
5557
5557
|
}
|
|
5558
|
-
var Hm =
|
|
5559
|
-
const Bm = /* @__PURE__ */
|
|
5558
|
+
var Hm = zm();
|
|
5559
|
+
const Bm = /* @__PURE__ */ jm(Hm), Za = {
|
|
5560
5560
|
"purpur-field-helper-text": "_purpur-field-helper-text_atw6b_1",
|
|
5561
5561
|
"purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_atw6b_9"
|
|
5562
5562
|
}, Ua = "purpur-field-helper-text", Wm = ({
|
|
@@ -5710,7 +5710,7 @@ var yo = s.forwardRef((e, n) => {
|
|
|
5710
5710
|
return s.Children.count(r) > 1 ? s.Children.only(null) : null;
|
|
5711
5711
|
});
|
|
5712
5712
|
yo.displayName = "SlotClone";
|
|
5713
|
-
var iv = ({ children: e }) => /* @__PURE__ */ d(
|
|
5713
|
+
var iv = ({ children: e }) => /* @__PURE__ */ d(z, { children: e });
|
|
5714
5714
|
function av(e) {
|
|
5715
5715
|
return s.isValidElement(e) && e.type === iv;
|
|
5716
5716
|
}
|
|
@@ -5872,18 +5872,18 @@ function wv() {
|
|
|
5872
5872
|
}(tl)), tl.exports;
|
|
5873
5873
|
}
|
|
5874
5874
|
var yv = wv();
|
|
5875
|
-
const nl = /* @__PURE__ */ vv(yv), bv = "
|
|
5876
|
-
"purpur-spinner": "_purpur-
|
|
5875
|
+
const nl = /* @__PURE__ */ vv(yv), bv = "_rotate_12t9p_1", $v = "_dash_12t9p_1", tr = {
|
|
5876
|
+
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
5877
5877
|
rotate: bv,
|
|
5878
|
-
"purpur-spinner--xxs": "_purpur-spinner--
|
|
5879
|
-
"purpur-spinner--xs": "_purpur-spinner--
|
|
5880
|
-
"purpur-spinner--sm": "_purpur-spinner--
|
|
5881
|
-
"purpur-spinner--md": "_purpur-spinner--
|
|
5882
|
-
"purpur-spinner--lg": "_purpur-spinner--
|
|
5883
|
-
"purpur-spinner__circle": "_purpur-
|
|
5878
|
+
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
5879
|
+
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
5880
|
+
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
5881
|
+
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
5882
|
+
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
5883
|
+
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
5884
5884
|
dash: $v,
|
|
5885
|
-
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--
|
|
5886
|
-
"purpur-spinner__circle--negative": "_purpur-spinner__circle--
|
|
5885
|
+
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
5886
|
+
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
5887
5887
|
}, rr = "purpur-spinner", xv = {
|
|
5888
5888
|
SM: "sm"
|
|
5889
5889
|
}, Sv = ({
|
|
@@ -6137,7 +6137,7 @@ var bo = s.forwardRef((e, n) => {
|
|
|
6137
6137
|
return s.Children.count(r) > 1 ? s.Children.only(null) : null;
|
|
6138
6138
|
});
|
|
6139
6139
|
bo.displayName = "SlotClone";
|
|
6140
|
-
var Mv = ({ children: e }) => /* @__PURE__ */ d(
|
|
6140
|
+
var Mv = ({ children: e }) => /* @__PURE__ */ d(z, { children: e });
|
|
6141
6141
|
function Fv(e) {
|
|
6142
6142
|
return s.isValidElement(e) && e.type === Mv;
|
|
6143
6143
|
}
|
|
@@ -6173,15 +6173,15 @@ var Lv = [
|
|
|
6173
6173
|
"span",
|
|
6174
6174
|
"svg",
|
|
6175
6175
|
"ul"
|
|
6176
|
-
],
|
|
6176
|
+
], Iv = Lv.reduce((e, n) => {
|
|
6177
6177
|
const r = s.forwardRef((o, i) => {
|
|
6178
6178
|
const { asChild: t, ...a } = o, l = t ? Rs : n;
|
|
6179
6179
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ d(l, { ...a, ref: i });
|
|
6180
6180
|
});
|
|
6181
6181
|
return r.displayName = `Primitive.${n}`, { ...e, [n]: r };
|
|
6182
|
-
}, {}),
|
|
6182
|
+
}, {}), qv = "VisuallyHidden", Es = s.forwardRef(
|
|
6183
6183
|
(e, n) => /* @__PURE__ */ d(
|
|
6184
|
-
|
|
6184
|
+
Iv.span,
|
|
6185
6185
|
{
|
|
6186
6186
|
...e,
|
|
6187
6187
|
ref: n,
|
|
@@ -6202,19 +6202,19 @@ var Lv = [
|
|
|
6202
6202
|
}
|
|
6203
6203
|
)
|
|
6204
6204
|
);
|
|
6205
|
-
Es.displayName =
|
|
6205
|
+
Es.displayName = qv;
|
|
6206
6206
|
var Vv = Es;
|
|
6207
|
-
const
|
|
6207
|
+
const jv = ({
|
|
6208
6208
|
asChild: e,
|
|
6209
6209
|
children: n,
|
|
6210
6210
|
className: r = "",
|
|
6211
6211
|
["data-testid"]: o
|
|
6212
|
-
}) => /* @__PURE__ */ d(Vv, { asChild: e, "data-testid": o, className: r, children: n }),
|
|
6212
|
+
}) => /* @__PURE__ */ d(Vv, { asChild: e, "data-testid": o, className: r, children: n }), zv = (e) => {
|
|
6213
6213
|
const r = 16 / (Number(
|
|
6214
6214
|
getComputedStyle(document.documentElement).getPropertyValue("--purpur-rescale") || "1"
|
|
6215
6215
|
) || 1);
|
|
6216
6216
|
return e / r;
|
|
6217
|
-
}, on = (e) => `${
|
|
6217
|
+
}, on = (e) => `${zv(e)}rem`, Rt = j.bind(G), K = "purpur-table-column-header-cell", Hv = ({
|
|
6218
6218
|
className: e,
|
|
6219
6219
|
enableSorting: n,
|
|
6220
6220
|
header: r,
|
|
@@ -6226,7 +6226,7 @@ const zv = ({
|
|
|
6226
6226
|
showBorder: u
|
|
6227
6227
|
}) => {
|
|
6228
6228
|
var x, R;
|
|
6229
|
-
const c = n && r.column.getCanSort(), p = r.column.getCanFilter(), _ = ((x = r.column.columnDef.meta) == null ? void 0 : x.cellType) === "rowSelection", g = ((R = r.column.columnDef.meta) == null ? void 0 : R.cellType) === "rowToggle", [f, m] =
|
|
6229
|
+
const c = n && r.column.getCanSort(), p = r.column.getCanFilter(), _ = ((x = r.column.columnDef.meta) == null ? void 0 : x.cellType) === "rowSelection", g = ((R = r.column.columnDef.meta) == null ? void 0 : R.cellType) === "rowToggle", [f, m] = I(!1), h = ue(null);
|
|
6230
6230
|
le(() => {
|
|
6231
6231
|
const S = h.current;
|
|
6232
6232
|
if (!S)
|
|
@@ -6314,7 +6314,7 @@ const zv = ({
|
|
|
6314
6314
|
);
|
|
6315
6315
|
if (i) {
|
|
6316
6316
|
const p = ((c = (u = e.column.columnDef.meta) == null ? void 0 : u.rowSelectionAriaLabels) == null ? void 0 : c.header) ?? "";
|
|
6317
|
-
return /* @__PURE__ */ d(
|
|
6317
|
+
return /* @__PURE__ */ d(jv, { children: p });
|
|
6318
6318
|
}
|
|
6319
6319
|
return r && t ? /* @__PURE__ */ C(
|
|
6320
6320
|
re,
|
|
@@ -6507,7 +6507,7 @@ function Yv(...e) {
|
|
|
6507
6507
|
var gr = globalThis != null && globalThis.document ? s.useLayoutEffect : () => {
|
|
6508
6508
|
}, Kv = s.useId || (() => {
|
|
6509
6509
|
}), Jv = 0;
|
|
6510
|
-
function
|
|
6510
|
+
function In(e) {
|
|
6511
6511
|
const [n, r] = s.useState(Kv());
|
|
6512
6512
|
return gr(() => {
|
|
6513
6513
|
r((o) => o ?? String(Jv++));
|
|
@@ -6567,7 +6567,7 @@ var $o = s.forwardRef((e, n) => {
|
|
|
6567
6567
|
return s.Children.count(r) > 1 ? s.Children.only(null) : null;
|
|
6568
6568
|
});
|
|
6569
6569
|
$o.displayName = "SlotClone";
|
|
6570
|
-
var t1 = ({ children: e }) => /* @__PURE__ */ d(
|
|
6570
|
+
var t1 = ({ children: e }) => /* @__PURE__ */ d(z, { children: e });
|
|
6571
6571
|
function r1(e) {
|
|
6572
6572
|
return s.isValidElement(e) && e.type === t1;
|
|
6573
6573
|
}
|
|
@@ -6611,7 +6611,7 @@ var i1 = [
|
|
|
6611
6611
|
return r.displayName = `Primitive.${n}`, { ...e, [n]: r };
|
|
6612
6612
|
}, {});
|
|
6613
6613
|
function a1(e, n) {
|
|
6614
|
-
e &&
|
|
6614
|
+
e && Io.flushSync(() => e.dispatchEvent(n));
|
|
6615
6615
|
}
|
|
6616
6616
|
function l1(e, n = globalThis == null ? void 0 : globalThis.document) {
|
|
6617
6617
|
const r = J(e);
|
|
@@ -6738,7 +6738,7 @@ function As(e, n, r, { discrete: o }) {
|
|
|
6738
6738
|
const i = r.originalEvent.target, t = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
|
|
6739
6739
|
n && i.addEventListener(e, n, { once: !0 }), o ? a1(i, t) : i.dispatchEvent(t);
|
|
6740
6740
|
}
|
|
6741
|
-
var
|
|
6741
|
+
var qn = "focusScope.autoFocusOnMount", Vn = "focusScope.autoFocusOnUnmount", pl = { bubbles: !1, cancelable: !0 }, _1 = "FocusScope", Ms = s.forwardRef((e, n) => {
|
|
6742
6742
|
const {
|
|
6743
6743
|
loop: r = !1,
|
|
6744
6744
|
trapped: o = !1,
|
|
@@ -6759,15 +6759,15 @@ var In = "focusScope.autoFocusOnMount", Vn = "focusScope.autoFocusOnUnmount", pl
|
|
|
6759
6759
|
let h = function(b) {
|
|
6760
6760
|
if (f.paused || !l) return;
|
|
6761
6761
|
const $ = b.target;
|
|
6762
|
-
l.contains($) ? _.current = $ :
|
|
6762
|
+
l.contains($) ? _.current = $ : qe(_.current, { select: !0 });
|
|
6763
6763
|
}, v = function(b) {
|
|
6764
6764
|
if (f.paused || !l) return;
|
|
6765
6765
|
const $ = b.relatedTarget;
|
|
6766
|
-
$ !== null && (l.contains($) ||
|
|
6766
|
+
$ !== null && (l.contains($) || qe(_.current, { select: !0 }));
|
|
6767
6767
|
}, w = function(b) {
|
|
6768
6768
|
if (document.activeElement === document.body)
|
|
6769
6769
|
for (const $ of b)
|
|
6770
|
-
$.removedNodes.length > 0 &&
|
|
6770
|
+
$.removedNodes.length > 0 && qe(l);
|
|
6771
6771
|
};
|
|
6772
6772
|
document.addEventListener("focusin", h), document.addEventListener("focusout", v);
|
|
6773
6773
|
const y = new MutationObserver(w);
|
|
@@ -6780,13 +6780,13 @@ var In = "focusScope.autoFocusOnMount", Vn = "focusScope.autoFocusOnUnmount", pl
|
|
|
6780
6780
|
fl.add(f);
|
|
6781
6781
|
const h = document.activeElement;
|
|
6782
6782
|
if (!l.contains(h)) {
|
|
6783
|
-
const v = new CustomEvent(
|
|
6784
|
-
l.addEventListener(
|
|
6783
|
+
const v = new CustomEvent(qn, pl);
|
|
6784
|
+
l.addEventListener(qn, c), l.dispatchEvent(v), v.defaultPrevented || (h1(b1(Fs(l)), { select: !0 }), document.activeElement === h && qe(l));
|
|
6785
6785
|
}
|
|
6786
6786
|
return () => {
|
|
6787
|
-
l.removeEventListener(
|
|
6787
|
+
l.removeEventListener(qn, c), setTimeout(() => {
|
|
6788
6788
|
const v = new CustomEvent(Vn, pl);
|
|
6789
|
-
l.addEventListener(Vn, p), l.dispatchEvent(v), v.defaultPrevented ||
|
|
6789
|
+
l.addEventListener(Vn, p), l.dispatchEvent(v), v.defaultPrevented || qe(h ?? document.body, { select: !0 }), l.removeEventListener(Vn, p), fl.remove(f);
|
|
6790
6790
|
}, 0);
|
|
6791
6791
|
};
|
|
6792
6792
|
}
|
|
@@ -6797,7 +6797,7 @@ var In = "focusScope.autoFocusOnMount", Vn = "focusScope.autoFocusOnUnmount", pl
|
|
|
6797
6797
|
const v = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, w = document.activeElement;
|
|
6798
6798
|
if (v && w) {
|
|
6799
6799
|
const y = h.currentTarget, [b, $] = m1(y);
|
|
6800
|
-
b && $ ? !h.shiftKey && w === $ ? (h.preventDefault(), r &&
|
|
6800
|
+
b && $ ? !h.shiftKey && w === $ ? (h.preventDefault(), r && qe(b, { select: !0 })) : h.shiftKey && w === b && (h.preventDefault(), r && qe($, { select: !0 })) : w === y && h.preventDefault();
|
|
6801
6801
|
}
|
|
6802
6802
|
},
|
|
6803
6803
|
[r, o, f.paused]
|
|
@@ -6808,7 +6808,7 @@ Ms.displayName = _1;
|
|
|
6808
6808
|
function h1(e, { select: n = !1 } = {}) {
|
|
6809
6809
|
const r = document.activeElement;
|
|
6810
6810
|
for (const o of e)
|
|
6811
|
-
if (
|
|
6811
|
+
if (qe(o, { select: n }), document.activeElement !== r) return;
|
|
6812
6812
|
}
|
|
6813
6813
|
function m1(e) {
|
|
6814
6814
|
const n = Fs(e), r = dl(n, e), o = dl(n.reverse(), e);
|
|
@@ -6840,7 +6840,7 @@ function v1(e, { upTo: n }) {
|
|
|
6840
6840
|
function w1(e) {
|
|
6841
6841
|
return e instanceof HTMLInputElement && "select" in e;
|
|
6842
6842
|
}
|
|
6843
|
-
function
|
|
6843
|
+
function qe(e, { select: n = !1 } = {}) {
|
|
6844
6844
|
if (e && e.focus) {
|
|
6845
6845
|
const r = document.activeElement;
|
|
6846
6846
|
e.focus({ preventScroll: !0 }), e !== r && w1(e) && n && e.select();
|
|
@@ -6940,12 +6940,12 @@ function C1(e) {
|
|
|
6940
6940
|
let o = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, i = o && "isReactWarning" in o && o.isReactWarning;
|
|
6941
6941
|
return i ? e.ref : (o = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, i = o && "isReactWarning" in o && o.isReactWarning, i ? e.props.ref : e.props.ref || e.ref);
|
|
6942
6942
|
}
|
|
6943
|
-
var
|
|
6943
|
+
var jn = 0;
|
|
6944
6944
|
function R1() {
|
|
6945
6945
|
s.useEffect(() => {
|
|
6946
6946
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
6947
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? _l()), document.body.insertAdjacentElement("beforeend", e[1] ?? _l()),
|
|
6948
|
-
|
|
6947
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? _l()), document.body.insertAdjacentElement("beforeend", e[1] ?? _l()), jn++, () => {
|
|
6948
|
+
jn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((n) => n.remove()), jn--;
|
|
6949
6949
|
};
|
|
6950
6950
|
}, []);
|
|
6951
6951
|
}
|
|
@@ -6976,11 +6976,11 @@ function E1(e, n, r) {
|
|
|
6976
6976
|
return e.concat(t || Array.prototype.slice.call(n));
|
|
6977
6977
|
}
|
|
6978
6978
|
var Br = "right-scroll-bar-position", Wr = "width-before-scroll-bar", N1 = "with-scroll-bars-hidden", P1 = "--removed-body-scroll-bar-size";
|
|
6979
|
-
function
|
|
6979
|
+
function zn(e, n) {
|
|
6980
6980
|
return typeof e == "function" ? e(n) : e && (e.current = n), e;
|
|
6981
6981
|
}
|
|
6982
6982
|
function k1(e, n) {
|
|
6983
|
-
var r =
|
|
6983
|
+
var r = I(function() {
|
|
6984
6984
|
return {
|
|
6985
6985
|
// value
|
|
6986
6986
|
value: e,
|
|
@@ -7004,7 +7004,7 @@ var O1 = typeof window < "u" ? s.useLayoutEffect : s.useEffect, hl = /* @__PURE_
|
|
|
7004
7004
|
function A1(e, n) {
|
|
7005
7005
|
var r = k1(null, function(o) {
|
|
7006
7006
|
return e.forEach(function(i) {
|
|
7007
|
-
return
|
|
7007
|
+
return zn(i, o);
|
|
7008
7008
|
});
|
|
7009
7009
|
});
|
|
7010
7010
|
return O1(function() {
|
|
@@ -7012,9 +7012,9 @@ function A1(e, n) {
|
|
|
7012
7012
|
if (o) {
|
|
7013
7013
|
var i = new Set(o), t = new Set(e), a = r.current;
|
|
7014
7014
|
i.forEach(function(l) {
|
|
7015
|
-
t.has(l) ||
|
|
7015
|
+
t.has(l) || zn(l, null);
|
|
7016
7016
|
}), t.forEach(function(l) {
|
|
7017
|
-
i.has(l) ||
|
|
7017
|
+
i.has(l) || zn(l, a);
|
|
7018
7018
|
});
|
|
7019
7019
|
}
|
|
7020
7020
|
hl.set(r, e);
|
|
@@ -7096,7 +7096,7 @@ Ls.isSideCarExport = !0;
|
|
|
7096
7096
|
function T1(e, n) {
|
|
7097
7097
|
return e.useMedium(n), Ls;
|
|
7098
7098
|
}
|
|
7099
|
-
var
|
|
7099
|
+
var Is = D1(), Hn = function() {
|
|
7100
7100
|
}, an = s.forwardRef(function(e, n) {
|
|
7101
7101
|
var r = s.useRef(null), o = s.useState({
|
|
7102
7102
|
onScrollCapture: Hn,
|
|
@@ -7106,7 +7106,7 @@ var js = D1(), Hn = function() {
|
|
|
7106
7106
|
return s.createElement(
|
|
7107
7107
|
s.Fragment,
|
|
7108
7108
|
null,
|
|
7109
|
-
p && s.createElement($, { sideCar:
|
|
7109
|
+
p && s.createElement($, { sideCar: Is, removeScrollBar: c, shards: _, noIsolation: f, inert: m, setCallbacks: t, allowPinchZoom: !!h, lockRef: r, gapMode: y }),
|
|
7110
7110
|
a ? s.cloneElement(s.Children.only(l), we(we({}, R), { ref: x })) : s.createElement(w, we({}, R, { className: u, ref: x }), l)
|
|
7111
7111
|
);
|
|
7112
7112
|
});
|
|
@@ -7123,7 +7123,7 @@ var L1 = function() {
|
|
|
7123
7123
|
if (typeof __webpack_nonce__ < "u")
|
|
7124
7124
|
return __webpack_nonce__;
|
|
7125
7125
|
};
|
|
7126
|
-
function
|
|
7126
|
+
function I1() {
|
|
7127
7127
|
if (!document)
|
|
7128
7128
|
return null;
|
|
7129
7129
|
var e = document.createElement("style");
|
|
@@ -7131,25 +7131,25 @@ function j1() {
|
|
|
7131
7131
|
var n = L1();
|
|
7132
7132
|
return n && e.setAttribute("nonce", n), e;
|
|
7133
7133
|
}
|
|
7134
|
-
function
|
|
7134
|
+
function q1(e, n) {
|
|
7135
7135
|
e.styleSheet ? e.styleSheet.cssText = n : e.appendChild(document.createTextNode(n));
|
|
7136
7136
|
}
|
|
7137
7137
|
function V1(e) {
|
|
7138
7138
|
var n = document.head || document.getElementsByTagName("head")[0];
|
|
7139
7139
|
n.appendChild(e);
|
|
7140
7140
|
}
|
|
7141
|
-
var
|
|
7141
|
+
var j1 = function() {
|
|
7142
7142
|
var e = 0, n = null;
|
|
7143
7143
|
return {
|
|
7144
7144
|
add: function(r) {
|
|
7145
|
-
e == 0 && (n =
|
|
7145
|
+
e == 0 && (n = I1()) && (q1(n, r), V1(n)), e++;
|
|
7146
7146
|
},
|
|
7147
7147
|
remove: function() {
|
|
7148
7148
|
e--, !e && n && (n.parentNode && n.parentNode.removeChild(n), n = null);
|
|
7149
7149
|
}
|
|
7150
7150
|
};
|
|
7151
|
-
},
|
|
7152
|
-
var e =
|
|
7151
|
+
}, z1 = function() {
|
|
7152
|
+
var e = j1();
|
|
7153
7153
|
return function(n, r) {
|
|
7154
7154
|
s.useEffect(function() {
|
|
7155
7155
|
return e.add(n), function() {
|
|
@@ -7157,8 +7157,8 @@ var z1 = function() {
|
|
|
7157
7157
|
};
|
|
7158
7158
|
}, [n && r]);
|
|
7159
7159
|
};
|
|
7160
|
-
},
|
|
7161
|
-
var e =
|
|
7160
|
+
}, qs = function() {
|
|
7161
|
+
var e = z1(), n = function(r) {
|
|
7162
7162
|
var o = r.styles, i = r.dynamic;
|
|
7163
7163
|
return e(o, i), null;
|
|
7164
7164
|
};
|
|
@@ -7183,7 +7183,7 @@ var z1 = function() {
|
|
|
7183
7183
|
right: n[2],
|
|
7184
7184
|
gap: Math.max(0, o - r + n[2] - n[0])
|
|
7185
7185
|
};
|
|
7186
|
-
}, G1 =
|
|
7186
|
+
}, G1 = qs(), Et = "data-scroll-locked", Z1 = function(e, n, r, o) {
|
|
7187
7187
|
var i = e.left, t = e.top, a = e.right, l = e.gap;
|
|
7188
7188
|
return r === void 0 && (r = "margin"), `
|
|
7189
7189
|
.`.concat(N1, ` {
|
|
@@ -7275,9 +7275,9 @@ var _t = So ? { passive: !1 } : !1, Y1 = function(e) {
|
|
|
7275
7275
|
var r = n.ownerDocument, o = n;
|
|
7276
7276
|
do {
|
|
7277
7277
|
typeof ShadowRoot < "u" && o instanceof ShadowRoot && (o = o.host);
|
|
7278
|
-
var i =
|
|
7278
|
+
var i = js(e, o);
|
|
7279
7279
|
if (i) {
|
|
7280
|
-
var t =
|
|
7280
|
+
var t = zs(e, o), a = t[1], l = t[2];
|
|
7281
7281
|
if (a > l)
|
|
7282
7282
|
return !0;
|
|
7283
7283
|
}
|
|
@@ -7298,17 +7298,17 @@ var _t = So ? { passive: !1 } : !1, Y1 = function(e) {
|
|
|
7298
7298
|
r,
|
|
7299
7299
|
o
|
|
7300
7300
|
];
|
|
7301
|
-
},
|
|
7301
|
+
}, js = function(e, n) {
|
|
7302
7302
|
return e === "v" ? K1(n) : J1(n);
|
|
7303
|
-
},
|
|
7303
|
+
}, zs = function(e, n) {
|
|
7304
7304
|
return e === "v" ? Q1(n) : e0(n);
|
|
7305
7305
|
}, t0 = function(e, n) {
|
|
7306
7306
|
return e === "h" && n === "rtl" ? -1 : 1;
|
|
7307
7307
|
}, r0 = function(e, n, r, o, i) {
|
|
7308
7308
|
var t = t0(e, window.getComputedStyle(n).direction), a = t * o, l = r.target, u = n.contains(l), c = !1, p = a > 0, _ = 0, g = 0;
|
|
7309
7309
|
do {
|
|
7310
|
-
var f =
|
|
7311
|
-
(m || w) &&
|
|
7310
|
+
var f = zs(e, l), m = f[0], h = f[1], v = f[2], w = h - v - t * m;
|
|
7311
|
+
(m || w) && js(e, l) && (_ += w, g += m), l instanceof ShadowRoot ? l = l.host : l = l.parentNode;
|
|
7312
7312
|
} while (
|
|
7313
7313
|
// portaled content
|
|
7314
7314
|
!u && l !== document.body || // self content
|
|
@@ -7330,7 +7330,7 @@ var _t = So ? { passive: !1 } : !1, Y1 = function(e) {
|
|
|
7330
7330
|
`);
|
|
7331
7331
|
}, i0 = 0, ht = [];
|
|
7332
7332
|
function a0(e) {
|
|
7333
|
-
var n = s.useRef([]), r = s.useRef([0, 0]), o = s.useRef(), i = s.useState(i0++)[0], t = s.useState(
|
|
7333
|
+
var n = s.useRef([]), r = s.useRef([0, 0]), o = s.useRef(), i = s.useState(i0++)[0], t = s.useState(qs)[0], a = s.useRef(e);
|
|
7334
7334
|
s.useEffect(function() {
|
|
7335
7335
|
a.current = e;
|
|
7336
7336
|
}, [e]), s.useEffect(function() {
|
|
@@ -7416,7 +7416,7 @@ function l0(e) {
|
|
|
7416
7416
|
e instanceof ShadowRoot && (n = e.host, e = e.host), e = e.parentNode;
|
|
7417
7417
|
return n;
|
|
7418
7418
|
}
|
|
7419
|
-
const u0 = T1(
|
|
7419
|
+
const u0 = T1(Is, a0);
|
|
7420
7420
|
var Hs = s.forwardRef(function(e, n) {
|
|
7421
7421
|
return s.createElement(an, we({}, e, { ref: n, sideCar: u0 }));
|
|
7422
7422
|
});
|
|
@@ -7488,9 +7488,9 @@ var s0 = function(e) {
|
|
|
7488
7488
|
scope: n,
|
|
7489
7489
|
triggerRef: l,
|
|
7490
7490
|
contentRef: u,
|
|
7491
|
-
contentId:
|
|
7492
|
-
titleId:
|
|
7493
|
-
descriptionId:
|
|
7491
|
+
contentId: In(),
|
|
7492
|
+
titleId: In(),
|
|
7493
|
+
descriptionId: In(),
|
|
7494
7494
|
open: c,
|
|
7495
7495
|
onOpenChange: p,
|
|
7496
7496
|
onOpenToggle: s.useCallback(() => p((_) => !_), [p]),
|
|
@@ -7550,16 +7550,16 @@ var _0 = s.forwardRef(
|
|
|
7550
7550
|
) })
|
|
7551
7551
|
);
|
|
7552
7552
|
}
|
|
7553
|
-
),
|
|
7553
|
+
), nt = "DialogContent", Js = s.forwardRef(
|
|
7554
7554
|
(e, n) => {
|
|
7555
|
-
const r = Xs(
|
|
7555
|
+
const r = Xs(nt, e.__scopeDialog), { forceMount: o = r.forceMount, ...i } = e, t = he(nt, e.__scopeDialog);
|
|
7556
7556
|
return /* @__PURE__ */ d(Ge, { present: o || t.open, children: t.modal ? /* @__PURE__ */ d(h0, { ...i, ref: n }) : /* @__PURE__ */ d(m0, { ...i, ref: n }) });
|
|
7557
7557
|
}
|
|
7558
7558
|
);
|
|
7559
|
-
Js.displayName =
|
|
7559
|
+
Js.displayName = nt;
|
|
7560
7560
|
var h0 = s.forwardRef(
|
|
7561
7561
|
(e, n) => {
|
|
7562
|
-
const r = he(
|
|
7562
|
+
const r = he(nt, e.__scopeDialog), o = s.useRef(null), i = ie(n, r.contentRef, o);
|
|
7563
7563
|
return s.useEffect(() => {
|
|
7564
7564
|
const t = o.current;
|
|
7565
7565
|
if (t) return d0(t);
|
|
@@ -7587,7 +7587,7 @@ var h0 = s.forwardRef(
|
|
|
7587
7587
|
}
|
|
7588
7588
|
), m0 = s.forwardRef(
|
|
7589
7589
|
(e, n) => {
|
|
7590
|
-
const r = he(
|
|
7590
|
+
const r = he(nt, e.__scopeDialog), o = s.useRef(!1), i = s.useRef(!1);
|
|
7591
7591
|
return /* @__PURE__ */ d(
|
|
7592
7592
|
Qs,
|
|
7593
7593
|
{
|
|
@@ -7610,8 +7610,8 @@ var h0 = s.forwardRef(
|
|
|
7610
7610
|
}
|
|
7611
7611
|
), Qs = s.forwardRef(
|
|
7612
7612
|
(e, n) => {
|
|
7613
|
-
const { __scopeDialog: r, trapFocus: o, onOpenAutoFocus: i, onCloseAutoFocus: t, ...a } = e, l = he(
|
|
7614
|
-
return R1(), /* @__PURE__ */ C(
|
|
7613
|
+
const { __scopeDialog: r, trapFocus: o, onOpenAutoFocus: i, onCloseAutoFocus: t, ...a } = e, l = he(nt, r), u = s.useRef(null), c = ie(n, u);
|
|
7614
|
+
return R1(), /* @__PURE__ */ C(z, { children: [
|
|
7615
7615
|
/* @__PURE__ */ d(
|
|
7616
7616
|
Ms,
|
|
7617
7617
|
{
|
|
@@ -7635,7 +7635,7 @@ var h0 = s.forwardRef(
|
|
|
7635
7635
|
)
|
|
7636
7636
|
}
|
|
7637
7637
|
),
|
|
7638
|
-
/* @__PURE__ */ C(
|
|
7638
|
+
/* @__PURE__ */ C(z, { children: [
|
|
7639
7639
|
/* @__PURE__ */ d(v0, { titleId: l.titleId }),
|
|
7640
7640
|
/* @__PURE__ */ d(y0, { contentRef: u, descriptionId: l.descriptionId })
|
|
7641
7641
|
] })
|
|
@@ -7674,7 +7674,7 @@ function Jo(e) {
|
|
|
7674
7674
|
return e ? "open" : "closed";
|
|
7675
7675
|
}
|
|
7676
7676
|
var ic = "DialogTitleWarning", [Kx, ac] = Xv(ic, {
|
|
7677
|
-
contentName:
|
|
7677
|
+
contentName: nt,
|
|
7678
7678
|
titleName: Ko,
|
|
7679
7679
|
docsSlug: "dialog"
|
|
7680
7680
|
}), v0 = ({ titleId: e }) => {
|
|
@@ -7693,7 +7693,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${n.do
|
|
|
7693
7693
|
const i = (o = e.current) == null ? void 0 : o.getAttribute("aria-describedby");
|
|
7694
7694
|
n && i && (document.getElementById(n) || console.warn(r));
|
|
7695
7695
|
}, [r, e, n]), null;
|
|
7696
|
-
}, b0 = Gs, $0 = Us, x0 = Ys, S0 = Ks, C0 = Js,
|
|
7696
|
+
}, b0 = Gs, $0 = Us, x0 = Ys, S0 = Ks, C0 = Js, Ir = ec, R0 = rc, E0 = oc;
|
|
7697
7697
|
function N0(e) {
|
|
7698
7698
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7699
7699
|
}
|
|
@@ -7737,23 +7737,23 @@ function P0() {
|
|
|
7737
7737
|
}(bl)), bl.exports;
|
|
7738
7738
|
}
|
|
7739
7739
|
var k0 = P0();
|
|
7740
|
-
const
|
|
7741
|
-
"purpur-drawer-content": "_purpur-drawer-
|
|
7740
|
+
const lt = /* @__PURE__ */ N0(k0), lc = qp(null), O0 = {}, A0 = "_drawerSmallScreenAnimation_5mlbf_1", M0 = "_drawerLargeScreenAnimation_5mlbf_1", F0 = "_slideDown_5mlbf_1", D0 = "_overlayAnimation_5mlbf_1", T0 = {
|
|
7741
|
+
"purpur-drawer-content": "_purpur-drawer-content_5mlbf_1",
|
|
7742
7742
|
drawerSmallScreenAnimation: A0,
|
|
7743
|
-
"purpur-drawer-content--fit-to-content": "_purpur-drawer-content--fit-to-
|
|
7743
|
+
"purpur-drawer-content--fit-to-content": "_purpur-drawer-content--fit-to-content_5mlbf_16",
|
|
7744
7744
|
drawerLargeScreenAnimation: M0,
|
|
7745
|
-
"purpur-drawer-content__content-container": "_purpur-drawer-content__content-
|
|
7746
|
-
"purpur-drawer-content__drawer-frame": "_purpur-drawer-content__drawer-
|
|
7745
|
+
"purpur-drawer-content__content-container": "_purpur-drawer-content__content-container_5mlbf_43",
|
|
7746
|
+
"purpur-drawer-content__drawer-frame": "_purpur-drawer-content__drawer-frame_5mlbf_48",
|
|
7747
7747
|
slideDown: F0,
|
|
7748
|
-
"purpur-drawer-content__description": "_purpur-drawer-
|
|
7749
|
-
"purpur-drawer-overlay": "_purpur-drawer-
|
|
7748
|
+
"purpur-drawer-content__description": "_purpur-drawer-content__description_5mlbf_58",
|
|
7749
|
+
"purpur-drawer-overlay": "_purpur-drawer-overlay_5mlbf_69",
|
|
7750
7750
|
overlayAnimation: D0
|
|
7751
7751
|
}, L0 = {
|
|
7752
7752
|
"purpur-drawer-container--header": "_purpur-drawer-container--header_1u45h_1",
|
|
7753
7753
|
"purpur-drawer-container--body": "_purpur-drawer-container--body_1u45h_10",
|
|
7754
7754
|
"purpur-drawer-container--sticky": "_purpur-drawer-container--sticky_1u45h_18",
|
|
7755
7755
|
"purpur-drawer-container--footer": "_purpur-drawer-container--footer_1u45h_26"
|
|
7756
|
-
},
|
|
7756
|
+
}, I0 = lt.bind(L0), Gn = "purpur-drawer-container", Ct = W(
|
|
7757
7757
|
({
|
|
7758
7758
|
["data-testid"]: e = "purpur-drawer-container",
|
|
7759
7759
|
children: n,
|
|
@@ -7762,7 +7762,7 @@ const at = /* @__PURE__ */ N0(k0), lc = Ip(null), O0 = {}, A0 = "_drawerSmallScr
|
|
|
7762
7762
|
stickyFooter: i,
|
|
7763
7763
|
...t
|
|
7764
7764
|
}, a) => {
|
|
7765
|
-
const l =
|
|
7765
|
+
const l = I0([
|
|
7766
7766
|
r,
|
|
7767
7767
|
Gn,
|
|
7768
7768
|
{
|
|
@@ -7776,7 +7776,7 @@ const at = /* @__PURE__ */ N0(k0), lc = Ip(null), O0 = {}, A0 = "_drawerSmallScr
|
|
|
7776
7776
|
}
|
|
7777
7777
|
);
|
|
7778
7778
|
Ct.displayName = "DrawerContainer";
|
|
7779
|
-
const
|
|
7779
|
+
const q0 = {
|
|
7780
7780
|
"purpur-drawer-frame": "_purpur-drawer-frame_1gdvv_1",
|
|
7781
7781
|
"purpur-drawer-frame--sticky-footer": "_purpur-drawer-frame--sticky-footer_1gdvv_17",
|
|
7782
7782
|
"purpur-drawer-frame__header": "_purpur-drawer-frame__header_1gdvv_20",
|
|
@@ -7787,7 +7787,7 @@ const I0 = {
|
|
|
7787
7787
|
"purpur-drawer-frame__content-container--no-footer": "_purpur-drawer-frame__content-container--no-footer_1gdvv_44"
|
|
7788
7788
|
}, V0 = {
|
|
7789
7789
|
"purpur-drawer-handle": "_purpur-drawer-handle_3n0ew_1"
|
|
7790
|
-
},
|
|
7790
|
+
}, j0 = (e, n, r, o, i, t) => ({
|
|
7791
7791
|
onPointerDown: (a) => {
|
|
7792
7792
|
e.current = { y: a.clientY };
|
|
7793
7793
|
},
|
|
@@ -7806,7 +7806,7 @@ const I0 = {
|
|
|
7806
7806
|
});
|
|
7807
7807
|
}
|
|
7808
7808
|
}
|
|
7809
|
-
}), xl = (e, n = 0) => Math.abs(e.y) > n,
|
|
7809
|
+
}), xl = (e, n = 0) => Math.abs(e.y) > n, z0 = lt.bind(V0), H0 = "purpur-drawer-handle", uc = W(
|
|
7810
7810
|
({
|
|
7811
7811
|
["data-testid"]: e = "purpur-drawer-handle",
|
|
7812
7812
|
className: n,
|
|
@@ -7816,7 +7816,7 @@ const I0 = {
|
|
|
7816
7816
|
onSwipeEnd: t,
|
|
7817
7817
|
...a
|
|
7818
7818
|
}, l) => {
|
|
7819
|
-
const u =
|
|
7819
|
+
const u = z0([n, H0]), c = io.useRef(null), p = io.useRef(null), { onPointerDown: _, onPointerMove: g, onPointerUp: f } = j0(
|
|
7820
7820
|
p,
|
|
7821
7821
|
c,
|
|
7822
7822
|
r,
|
|
@@ -7885,18 +7885,18 @@ function G0() {
|
|
|
7885
7885
|
}(Sl)), Sl.exports;
|
|
7886
7886
|
}
|
|
7887
7887
|
var Z0 = G0();
|
|
7888
|
-
const Rl = /* @__PURE__ */ W0(Z0), U0 = "
|
|
7889
|
-
"purpur-spinner": "_purpur-
|
|
7888
|
+
const Rl = /* @__PURE__ */ W0(Z0), U0 = "_rotate_12t9p_1", X0 = "_dash_12t9p_1", nr = {
|
|
7889
|
+
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
7890
7890
|
rotate: U0,
|
|
7891
|
-
"purpur-spinner--xxs": "_purpur-spinner--
|
|
7892
|
-
"purpur-spinner--xs": "_purpur-spinner--
|
|
7893
|
-
"purpur-spinner--sm": "_purpur-spinner--
|
|
7894
|
-
"purpur-spinner--md": "_purpur-spinner--
|
|
7895
|
-
"purpur-spinner--lg": "_purpur-spinner--
|
|
7896
|
-
"purpur-spinner__circle": "_purpur-
|
|
7891
|
+
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
7892
|
+
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
7893
|
+
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
7894
|
+
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
7895
|
+
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
7896
|
+
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
7897
7897
|
dash: X0,
|
|
7898
|
-
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--
|
|
7899
|
-
"purpur-spinner__circle--negative": "_purpur-spinner__circle--
|
|
7898
|
+
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
7899
|
+
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
7900
7900
|
}, or = "purpur-spinner", Y0 = {
|
|
7901
7901
|
SM: "sm"
|
|
7902
7902
|
}, K0 = ({
|
|
@@ -7993,7 +7993,7 @@ const tw = /* @__PURE__ */ J0(ew), rw = {
|
|
|
7993
7993
|
}, Zn = {
|
|
7994
7994
|
TERTIARY_PURPLE: "tertiary-purple",
|
|
7995
7995
|
TEXT: "text"
|
|
7996
|
-
}, nw = tw.bind(rw),
|
|
7996
|
+
}, nw = tw.bind(rw), et = "purpur-button", ow = ({
|
|
7997
7997
|
children: e,
|
|
7998
7998
|
className: n,
|
|
7999
7999
|
["data-testid"]: r,
|
|
@@ -8012,15 +8012,15 @@ const tw = /* @__PURE__ */ J0(ew), rw = {
|
|
|
8012
8012
|
return null;
|
|
8013
8013
|
const m = nw(
|
|
8014
8014
|
[
|
|
8015
|
-
|
|
8016
|
-
`${
|
|
8017
|
-
`${
|
|
8015
|
+
et,
|
|
8016
|
+
`${et}--${l ? `${p}-negative` : p}`,
|
|
8017
|
+
`${et}--${c}`
|
|
8018
8018
|
],
|
|
8019
8019
|
{
|
|
8020
|
-
[`${
|
|
8021
|
-
[`${
|
|
8022
|
-
[`${
|
|
8023
|
-
[`${
|
|
8020
|
+
[`${et}--icon-only`]: t,
|
|
8021
|
+
[`${et}--negative`]: l,
|
|
8022
|
+
[`${et}--full-width`]: i,
|
|
8023
|
+
[`${et}--disabled`]: o || a
|
|
8024
8024
|
},
|
|
8025
8025
|
n
|
|
8026
8026
|
), h = (w) => {
|
|
@@ -8088,7 +8088,7 @@ function aw() {
|
|
|
8088
8088
|
}(Pl)), Pl.exports;
|
|
8089
8089
|
}
|
|
8090
8090
|
var lw = aw();
|
|
8091
|
-
const uw = /* @__PURE__ */ iw(lw),
|
|
8091
|
+
const uw = /* @__PURE__ */ iw(lw), qr = {
|
|
8092
8092
|
"purpur-heading": "_purpur-heading_k9fhq_1",
|
|
8093
8093
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
|
|
8094
8094
|
"purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
|
|
@@ -8118,11 +8118,11 @@ const uw = /* @__PURE__ */ iw(lw), Ir = {
|
|
|
8118
8118
|
}) => {
|
|
8119
8119
|
const l = i, u = uw([
|
|
8120
8120
|
n,
|
|
8121
|
-
|
|
8122
|
-
|
|
8121
|
+
qr[Vr],
|
|
8122
|
+
qr[`${Vr}--${t}`],
|
|
8123
8123
|
{
|
|
8124
|
-
[
|
|
8125
|
-
[
|
|
8124
|
+
[qr[`${Vr}--hyphens`]]: r,
|
|
8125
|
+
[qr[`${Vr}--negative`]]: o
|
|
8126
8126
|
}
|
|
8127
8127
|
]);
|
|
8128
8128
|
return /* @__PURE__ */ d(l, { className: u, ...a, children: e });
|
|
@@ -8263,7 +8263,7 @@ var No = s.forwardRef((e, n) => {
|
|
|
8263
8263
|
return s.Children.count(r) > 1 ? s.Children.only(null) : null;
|
|
8264
8264
|
});
|
|
8265
8265
|
No.displayName = "SlotClone";
|
|
8266
|
-
var $w = ({ children: e }) => /* @__PURE__ */ d(
|
|
8266
|
+
var $w = ({ children: e }) => /* @__PURE__ */ d(z, { children: e });
|
|
8267
8267
|
function xw(e) {
|
|
8268
8268
|
return s.isValidElement(e) && e.type === $w;
|
|
8269
8269
|
}
|
|
@@ -8342,7 +8342,7 @@ const Dl = ({
|
|
|
8342
8342
|
"purpur-drawer-header__right": "_purpur-drawer-header__right_1yg5w_12",
|
|
8343
8343
|
"purpur-drawer-header__close-button": "_purpur-drawer-header__close-button_1yg5w_15",
|
|
8344
8344
|
"purpur-drawer-header__back-button--only-icon": "_purpur-drawer-header__back-button--only-icon_1yg5w_18"
|
|
8345
|
-
}, vt =
|
|
8345
|
+
}, vt = lt.bind(kw), Le = "purpur-drawer-header", fc = W(
|
|
8346
8346
|
({
|
|
8347
8347
|
["data-testid"]: e = "purpur-drawer-header",
|
|
8348
8348
|
backButton: n,
|
|
@@ -8388,10 +8388,10 @@ const Dl = ({
|
|
|
8388
8388
|
!o && r
|
|
8389
8389
|
]
|
|
8390
8390
|
}
|
|
8391
|
-
) : a ? /* @__PURE__ */ C(
|
|
8391
|
+
) : a ? /* @__PURE__ */ C(z, { children: [
|
|
8392
8392
|
a,
|
|
8393
|
-
/* @__PURE__ */ d(Dl, { asChild: !0, children: /* @__PURE__ */ d(
|
|
8394
|
-
] }) : /* @__PURE__ */ d(
|
|
8393
|
+
/* @__PURE__ */ d(Dl, { asChild: !0, children: /* @__PURE__ */ d(Ir, { asChild: !0, children: u }) })
|
|
8394
|
+
] }) : /* @__PURE__ */ d(Ir, { asChild: !0, children: /* @__PURE__ */ d(
|
|
8395
8395
|
Eo,
|
|
8396
8396
|
{
|
|
8397
8397
|
"data-testid": `${e}-title`,
|
|
@@ -8414,10 +8414,10 @@ const Dl = ({
|
|
|
8414
8414
|
]
|
|
8415
8415
|
}
|
|
8416
8416
|
),
|
|
8417
|
-
n && r && l && (a ? /* @__PURE__ */ C(
|
|
8417
|
+
n && r && l && (a ? /* @__PURE__ */ C(z, { children: [
|
|
8418
8418
|
a,
|
|
8419
|
-
/* @__PURE__ */ d(Dl, { asChild: !0, children: /* @__PURE__ */ d(
|
|
8420
|
-
] }) : /* @__PURE__ */ d(
|
|
8419
|
+
/* @__PURE__ */ d(Dl, { asChild: !0, children: /* @__PURE__ */ d(Ir, { asChild: !0, children: u }) })
|
|
8420
|
+
] }) : /* @__PURE__ */ d(Ir, { asChild: !0, children: /* @__PURE__ */ d(
|
|
8421
8421
|
Eo,
|
|
8422
8422
|
{
|
|
8423
8423
|
"data-testid": `${e}-title-with-back-button`,
|
|
@@ -8495,7 +8495,7 @@ _c.displayName = ei;
|
|
|
8495
8495
|
var hc = "ScrollAreaViewport", mc = s.forwardRef(
|
|
8496
8496
|
(e, n) => {
|
|
8497
8497
|
const { __scopeScrollArea: r, children: o, nonce: i, ...t } = e, a = ce(hc, r), l = s.useRef(null), u = ie(n, l, a.onViewportChange);
|
|
8498
|
-
return /* @__PURE__ */ C(
|
|
8498
|
+
return /* @__PURE__ */ C(z, { children: [
|
|
8499
8499
|
/* @__PURE__ */ d(
|
|
8500
8500
|
"style",
|
|
8501
8501
|
{
|
|
@@ -8643,7 +8643,7 @@ var Tw = s.forwardRef((e, n) => {
|
|
|
8643
8643
|
return Bw(g, a.current, l, f);
|
|
8644
8644
|
}
|
|
8645
8645
|
return r === "horizontal" ? /* @__PURE__ */ d(
|
|
8646
|
-
|
|
8646
|
+
Iw,
|
|
8647
8647
|
{
|
|
8648
8648
|
...p,
|
|
8649
8649
|
ref: n,
|
|
@@ -8661,7 +8661,7 @@ var Tw = s.forwardRef((e, n) => {
|
|
|
8661
8661
|
}
|
|
8662
8662
|
}
|
|
8663
8663
|
) : r === "vertical" ? /* @__PURE__ */ d(
|
|
8664
|
-
|
|
8664
|
+
qw,
|
|
8665
8665
|
{
|
|
8666
8666
|
...p,
|
|
8667
8667
|
ref: n,
|
|
@@ -8679,7 +8679,7 @@ var Tw = s.forwardRef((e, n) => {
|
|
|
8679
8679
|
}
|
|
8680
8680
|
}
|
|
8681
8681
|
) : null;
|
|
8682
|
-
}),
|
|
8682
|
+
}), Iw = s.forwardRef((e, n) => {
|
|
8683
8683
|
const { sizes: r, onSizesChange: o, ...i } = e, t = ce(xe, e.__scopeScrollArea), [a, l] = s.useState(), u = s.useRef(null), c = ie(n, u, t.onScrollbarXChange);
|
|
8684
8684
|
return s.useEffect(() => {
|
|
8685
8685
|
u.current && l(getComputedStyle(u.current));
|
|
@@ -8718,7 +8718,7 @@ var Tw = s.forwardRef((e, n) => {
|
|
|
8718
8718
|
}
|
|
8719
8719
|
}
|
|
8720
8720
|
);
|
|
8721
|
-
}),
|
|
8721
|
+
}), qw = s.forwardRef((e, n) => {
|
|
8722
8722
|
const { sizes: r, onSizesChange: o, ...i } = e, t = ce(xe, e.__scopeScrollArea), [a, l] = s.useState(), u = s.useRef(null), c = ie(n, u, t.onScrollbarYChange);
|
|
8723
8723
|
return s.useEffect(() => {
|
|
8724
8724
|
u.current && l(getComputedStyle(u.current));
|
|
@@ -8815,9 +8815,9 @@ var Tw = s.forwardRef((e, n) => {
|
|
|
8815
8815
|
}), Ur = "ScrollAreaThumb", $c = s.forwardRef(
|
|
8816
8816
|
(e, n) => {
|
|
8817
8817
|
const { forceMount: r, ...o } = e, i = yc(Ur, e.__scopeScrollArea);
|
|
8818
|
-
return /* @__PURE__ */ d(Ge, { present: r || i.hasThumb, children: /* @__PURE__ */ d(
|
|
8818
|
+
return /* @__PURE__ */ d(Ge, { present: r || i.hasThumb, children: /* @__PURE__ */ d(jw, { ref: n, ...o }) });
|
|
8819
8819
|
}
|
|
8820
|
-
),
|
|
8820
|
+
), jw = s.forwardRef(
|
|
8821
8821
|
(e, n) => {
|
|
8822
8822
|
const { __scopeScrollArea: r, style: o, ...i } = e, t = ce(Ur, r), a = yc(Ur, r), { onThumbPositionChange: l } = a, u = ie(
|
|
8823
8823
|
n,
|
|
@@ -8857,13 +8857,13 @@ var Tw = s.forwardRef((e, n) => {
|
|
|
8857
8857
|
}
|
|
8858
8858
|
);
|
|
8859
8859
|
$c.displayName = Ur;
|
|
8860
|
-
var ri = "ScrollAreaCorner",
|
|
8860
|
+
var ri = "ScrollAreaCorner", zw = s.forwardRef(
|
|
8861
8861
|
(e, n) => {
|
|
8862
8862
|
const r = ce(ri, e.__scopeScrollArea), o = !!(r.scrollbarX && r.scrollbarY);
|
|
8863
8863
|
return r.type !== "scroll" && o ? /* @__PURE__ */ d(Hw, { ...e, ref: n }) : null;
|
|
8864
8864
|
}
|
|
8865
8865
|
);
|
|
8866
|
-
|
|
8866
|
+
zw.displayName = ri;
|
|
8867
8867
|
var Hw = s.forwardRef((e, n) => {
|
|
8868
8868
|
const { __scopeScrollArea: r, ...o } = e, i = ce(ri, r), [t, a] = s.useState(0), [l, u] = s.useState(0), c = !!(t && l);
|
|
8869
8869
|
return kt(i.scrollbarX, () => {
|
|
@@ -8955,7 +8955,7 @@ const Yw = {
|
|
|
8955
8955
|
"purpur-drawer-scroll-area__viewport": "_purpur-drawer-scroll-area__viewport_1r0fa_10",
|
|
8956
8956
|
"purpur-drawer-scroll-area__scrollbar": "_purpur-drawer-scroll-area__scrollbar_1r0fa_13",
|
|
8957
8957
|
"purpur-drawer-scroll-area__thumb": "_purpur-drawer-scroll-area__thumb_1r0fa_24"
|
|
8958
|
-
}, ir =
|
|
8958
|
+
}, ir = lt.bind(Yw), wt = "purpur-drawer-scroll-area", Po = W(
|
|
8959
8959
|
({
|
|
8960
8960
|
["data-testid"]: e = "purpur-drawer-scroll-area",
|
|
8961
8961
|
children: n,
|
|
@@ -8986,7 +8986,7 @@ const Yw = {
|
|
|
8986
8986
|
}
|
|
8987
8987
|
);
|
|
8988
8988
|
Po.displayName = "DrawerScrollArea";
|
|
8989
|
-
const yt =
|
|
8989
|
+
const yt = lt.bind(q0), Ne = "purpur-drawer-frame", Rc = W(
|
|
8990
8990
|
({
|
|
8991
8991
|
["data-testid"]: e = "purpur-drawer-frame",
|
|
8992
8992
|
backButton: n,
|
|
@@ -9054,7 +9054,7 @@ const yt = at.bind(I0), Ne = "purpur-drawer-frame", Rc = W(
|
|
|
9054
9054
|
)
|
|
9055
9055
|
}
|
|
9056
9056
|
),
|
|
9057
|
-
w ? /* @__PURE__ */ C(
|
|
9057
|
+
w ? /* @__PURE__ */ C(z, { children: [
|
|
9058
9058
|
/* @__PURE__ */ d(
|
|
9059
9059
|
Po,
|
|
9060
9060
|
{
|
|
@@ -9131,7 +9131,7 @@ const Kw = (e, n) => ({
|
|
|
9131
9131
|
const { y: o } = r.delta;
|
|
9132
9132
|
e.current.setAttribute("data-swipe", "end"), e.current.style.removeProperty("--purpur-drawer-swipe-move-y"), e.current.style.setProperty("--purpur-drawer-swipe-end-y", `${o}px`);
|
|
9133
9133
|
}
|
|
9134
|
-
}), ar =
|
|
9134
|
+
}), ar = lt.bind(T0), lr = "purpur-drawer-content", Ec = W(
|
|
9135
9135
|
({
|
|
9136
9136
|
["data-testid"]: e = "purpur-drawer-content",
|
|
9137
9137
|
backButton: n = !1,
|
|
@@ -9232,7 +9232,7 @@ const Nc = W(
|
|
|
9232
9232
|
)
|
|
9233
9233
|
);
|
|
9234
9234
|
Nc.displayName = "DrawerTrigger";
|
|
9235
|
-
const Jw =
|
|
9235
|
+
const Jw = lt.bind(O0), Qw = "purpur-drawer", ot = ({
|
|
9236
9236
|
["data-testid"]: e = "purpur-drawer",
|
|
9237
9237
|
children: n,
|
|
9238
9238
|
className: r,
|
|
@@ -9247,20 +9247,20 @@ const Jw = at.bind(O0), Qw = "purpur-drawer", nt = ({
|
|
|
9247
9247
|
l(i);
|
|
9248
9248
|
}, [i]), /* @__PURE__ */ d(lc.Provider, { value: c, children: /* @__PURE__ */ d("div", { className: u, "data-testid": e, ...t, children: /* @__PURE__ */ d(b0, { open: a, onOpenChange: c, children: n }) }) });
|
|
9249
9249
|
};
|
|
9250
|
-
|
|
9251
|
-
|
|
9252
|
-
|
|
9250
|
+
ot.Trigger = Nc;
|
|
9251
|
+
ot.Content = Ec;
|
|
9252
|
+
ot.displayName = "Drawer";
|
|
9253
9253
|
const ey = {
|
|
9254
9254
|
"purpur-table-export-drawer__content": "_purpur-table-export-drawer__content_1soij_1"
|
|
9255
|
-
}, ty = "purpur-table-export-drawer", ry =
|
|
9255
|
+
}, ty = "purpur-table-export-drawer", ry = j.bind(ey), Un = "purpur-table-export-drawer", ny = ({
|
|
9256
9256
|
id: e,
|
|
9257
9257
|
exportFormats: n,
|
|
9258
9258
|
isOpen: r,
|
|
9259
9259
|
copy: o,
|
|
9260
9260
|
onExportData: i,
|
|
9261
9261
|
setDrawerIsOpen: t
|
|
9262
|
-
}) => /* @__PURE__ */ d("div", { id: e, children: /* @__PURE__ */ d(
|
|
9263
|
-
|
|
9262
|
+
}) => /* @__PURE__ */ d("div", { id: e, children: /* @__PURE__ */ d(ot, { "data-testid": Un, open: r, onOpenChange: t, children: /* @__PURE__ */ d(
|
|
9263
|
+
ot.Content,
|
|
9264
9264
|
{
|
|
9265
9265
|
"data-testid": `${Un}-content`,
|
|
9266
9266
|
zIndex: 6,
|
|
@@ -9279,7 +9279,7 @@ const ey = {
|
|
|
9279
9279
|
a
|
|
9280
9280
|
)) })
|
|
9281
9281
|
}
|
|
9282
|
-
) }) }), oy =
|
|
9282
|
+
) }) }), oy = j.bind(G), Ll = "purpur-table-header", iy = ({
|
|
9283
9283
|
children: e,
|
|
9284
9284
|
className: n,
|
|
9285
9285
|
columnFiltersEnabled: r,
|
|
@@ -9293,7 +9293,7 @@ const ey = {
|
|
|
9293
9293
|
}
|
|
9294
9294
|
]);
|
|
9295
9295
|
return /* @__PURE__ */ d("thead", { className: i, ...o, children: e });
|
|
9296
|
-
}, ay =
|
|
9296
|
+
}, ay = j.bind(G), Il = "purpur-table-row", Yr = ({
|
|
9297
9297
|
children: e,
|
|
9298
9298
|
className: n,
|
|
9299
9299
|
["data-testid"]: r,
|
|
@@ -9302,14 +9302,14 @@ const ey = {
|
|
|
9302
9302
|
"tr",
|
|
9303
9303
|
{
|
|
9304
9304
|
"data-testid": r,
|
|
9305
|
-
className: ay([n,
|
|
9305
|
+
className: ay([n, Il, { [`${Il}--selected`]: o }]),
|
|
9306
9306
|
children: e
|
|
9307
9307
|
}
|
|
9308
9308
|
);
|
|
9309
9309
|
function ly(e) {
|
|
9310
9310
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9311
9311
|
}
|
|
9312
|
-
var
|
|
9312
|
+
var ql = { exports: {} };
|
|
9313
9313
|
/*!
|
|
9314
9314
|
Copyright (c) 2018 Jed Watson.
|
|
9315
9315
|
Licensed under the MIT License (MIT), see
|
|
@@ -9346,7 +9346,7 @@ function uy() {
|
|
|
9346
9346
|
}
|
|
9347
9347
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
9348
9348
|
})();
|
|
9349
|
-
}(
|
|
9349
|
+
}(ql)), ql.exports;
|
|
9350
9350
|
}
|
|
9351
9351
|
var sy = uy();
|
|
9352
9352
|
const cy = /* @__PURE__ */ ly(sy), py = {
|
|
@@ -9357,7 +9357,7 @@ const cy = /* @__PURE__ */ ly(sy), py = {
|
|
|
9357
9357
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
9358
9358
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
9359
9359
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
9360
|
-
}, dy = cy.bind(py),
|
|
9360
|
+
}, dy = cy.bind(py), jl = "purpur-icon", fy = "md", gy = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), _y = ({ content: e = "", title: n } = {}) => {
|
|
9361
9361
|
const r = [
|
|
9362
9362
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
9363
9363
|
{ name: "fill", value: "currentColor" },
|
|
@@ -9376,7 +9376,7 @@ const cy = /* @__PURE__ */ ly(sy), py = {
|
|
|
9376
9376
|
const a = _y({
|
|
9377
9377
|
content: hy(n.svg),
|
|
9378
9378
|
title: r
|
|
9379
|
-
}), l = dy(o,
|
|
9379
|
+
}), l = dy(o, jl, `${jl}--${i}`);
|
|
9380
9380
|
return /* @__PURE__ */ d(
|
|
9381
9381
|
"span",
|
|
9382
9382
|
{
|
|
@@ -9432,7 +9432,7 @@ const my = {
|
|
|
9432
9432
|
function Cy(e) {
|
|
9433
9433
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9434
9434
|
}
|
|
9435
|
-
var
|
|
9435
|
+
var zl = { exports: {} };
|
|
9436
9436
|
/*!
|
|
9437
9437
|
Copyright (c) 2018 Jed Watson.
|
|
9438
9438
|
Licensed under the MIT License (MIT), see
|
|
@@ -9469,7 +9469,7 @@ function Ry() {
|
|
|
9469
9469
|
}
|
|
9470
9470
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
9471
9471
|
})();
|
|
9472
|
-
}(
|
|
9472
|
+
}(zl)), zl.exports;
|
|
9473
9473
|
}
|
|
9474
9474
|
var Ey = Ry();
|
|
9475
9475
|
const Bl = /* @__PURE__ */ Cy(Ey), Xn = {
|
|
@@ -9591,21 +9591,21 @@ function My() {
|
|
|
9591
9591
|
}(Wl)), Wl.exports;
|
|
9592
9592
|
}
|
|
9593
9593
|
var Fy = My();
|
|
9594
|
-
const Zl = /* @__PURE__ */ Ay(Fy), Dy = "
|
|
9595
|
-
"purpur-spinner": "_purpur-
|
|
9594
|
+
const Zl = /* @__PURE__ */ Ay(Fy), Dy = "_rotate_12t9p_1", Ty = "_dash_12t9p_1", ur = {
|
|
9595
|
+
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
9596
9596
|
rotate: Dy,
|
|
9597
|
-
"purpur-spinner--xxs": "_purpur-spinner--
|
|
9598
|
-
"purpur-spinner--xs": "_purpur-spinner--
|
|
9599
|
-
"purpur-spinner--sm": "_purpur-spinner--
|
|
9600
|
-
"purpur-spinner--md": "_purpur-spinner--
|
|
9601
|
-
"purpur-spinner--lg": "_purpur-spinner--
|
|
9602
|
-
"purpur-spinner__circle": "_purpur-
|
|
9597
|
+
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
9598
|
+
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
9599
|
+
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
9600
|
+
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
9601
|
+
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
9602
|
+
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
9603
9603
|
dash: Ty,
|
|
9604
|
-
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--
|
|
9605
|
-
"purpur-spinner__circle--negative": "_purpur-spinner__circle--
|
|
9604
|
+
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
9605
|
+
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
9606
9606
|
}, sr = "purpur-spinner", Ly = {
|
|
9607
9607
|
SM: "sm"
|
|
9608
|
-
},
|
|
9608
|
+
}, Iy = ({
|
|
9609
9609
|
["data-testid"]: e,
|
|
9610
9610
|
disabled: n = !1,
|
|
9611
9611
|
negative: r = !1,
|
|
@@ -9631,7 +9631,7 @@ const Zl = /* @__PURE__ */ Ay(Fy), Dy = "_rotate_1xozj_1", Ty = "_dash_1xozj_1",
|
|
|
9631
9631
|
) })
|
|
9632
9632
|
}
|
|
9633
9633
|
);
|
|
9634
|
-
function
|
|
9634
|
+
function qy(e) {
|
|
9635
9635
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9636
9636
|
}
|
|
9637
9637
|
var Ul = { exports: {} };
|
|
@@ -9673,8 +9673,8 @@ function Vy() {
|
|
|
9673
9673
|
})();
|
|
9674
9674
|
}(Ul)), Ul.exports;
|
|
9675
9675
|
}
|
|
9676
|
-
var
|
|
9677
|
-
const
|
|
9676
|
+
var jy = Vy();
|
|
9677
|
+
const zy = /* @__PURE__ */ qy(jy), Hy = {
|
|
9678
9678
|
"purpur-button": "_purpur-button_w455q_1",
|
|
9679
9679
|
"purpur-button--xs": "_purpur-button--xs_w455q_33",
|
|
9680
9680
|
"purpur-button--icon-only": "_purpur-button--icon-only_w455q_36",
|
|
@@ -9698,7 +9698,7 @@ const qy = /* @__PURE__ */ Iy(zy), Hy = {
|
|
|
9698
9698
|
"purpur-button--text": "_purpur-button--text_w455q_181"
|
|
9699
9699
|
}, By = {
|
|
9700
9700
|
TERTIARY_PURPLE: "tertiary-purple"
|
|
9701
|
-
}, Wy =
|
|
9701
|
+
}, Wy = zy.bind(Hy), tt = "purpur-button", Gy = ({
|
|
9702
9702
|
children: e,
|
|
9703
9703
|
className: n,
|
|
9704
9704
|
["data-testid"]: r,
|
|
@@ -9717,15 +9717,15 @@ const qy = /* @__PURE__ */ Iy(zy), Hy = {
|
|
|
9717
9717
|
return null;
|
|
9718
9718
|
const m = Wy(
|
|
9719
9719
|
[
|
|
9720
|
-
|
|
9721
|
-
`${
|
|
9722
|
-
`${
|
|
9720
|
+
tt,
|
|
9721
|
+
`${tt}--${l ? `${p}-negative` : p}`,
|
|
9722
|
+
`${tt}--${c}`
|
|
9723
9723
|
],
|
|
9724
9724
|
{
|
|
9725
|
-
[`${
|
|
9726
|
-
[`${
|
|
9727
|
-
[`${
|
|
9728
|
-
[`${
|
|
9725
|
+
[`${tt}--icon-only`]: t,
|
|
9726
|
+
[`${tt}--negative`]: l,
|
|
9727
|
+
[`${tt}--full-width`]: i,
|
|
9728
|
+
[`${tt}--disabled`]: o || a
|
|
9729
9729
|
},
|
|
9730
9730
|
n
|
|
9731
9731
|
), h = (w) => {
|
|
@@ -9742,7 +9742,7 @@ const qy = /* @__PURE__ */ Iy(zy), Hy = {
|
|
|
9742
9742
|
onClick: h,
|
|
9743
9743
|
...g,
|
|
9744
9744
|
children: [
|
|
9745
|
-
a && /* @__PURE__ */ d(
|
|
9745
|
+
a && /* @__PURE__ */ d(Iy, { size: c === Oy.LG ? "xs" : "xxs", negative: l, disabled: v }),
|
|
9746
9746
|
" ",
|
|
9747
9747
|
e
|
|
9748
9748
|
]
|
|
@@ -9950,7 +9950,7 @@ function Dc(...e) {
|
|
|
9950
9950
|
};
|
|
9951
9951
|
};
|
|
9952
9952
|
}
|
|
9953
|
-
function
|
|
9953
|
+
function ut(...e) {
|
|
9954
9954
|
return s.useCallback(Dc(...e), e);
|
|
9955
9955
|
}
|
|
9956
9956
|
function Tc(e, n = []) {
|
|
@@ -10021,9 +10021,9 @@ var ko = s.forwardRef((e, n) => {
|
|
|
10021
10021
|
return s.Children.count(r) > 1 ? s.Children.only(null) : null;
|
|
10022
10022
|
});
|
|
10023
10023
|
ko.displayName = "SlotClone";
|
|
10024
|
-
var
|
|
10024
|
+
var Ic = ({ children: e }) => /* @__PURE__ */ d(z, { children: e });
|
|
10025
10025
|
function cb(e) {
|
|
10026
|
-
return s.isValidElement(e) && e.type ===
|
|
10026
|
+
return s.isValidElement(e) && e.type === Ic;
|
|
10027
10027
|
}
|
|
10028
10028
|
function pb(e, n) {
|
|
10029
10029
|
const r = { ...n };
|
|
@@ -10065,7 +10065,7 @@ var fb = [
|
|
|
10065
10065
|
return r.displayName = `Primitive.${n}`, { ...e, [n]: r };
|
|
10066
10066
|
}, {});
|
|
10067
10067
|
function gb(e, n) {
|
|
10068
|
-
e &&
|
|
10068
|
+
e && Io.flushSync(() => e.dispatchEvent(n));
|
|
10069
10069
|
}
|
|
10070
10070
|
function Dt(e) {
|
|
10071
10071
|
const n = s.useRef(e);
|
|
@@ -10085,7 +10085,7 @@ function _b(e, n = globalThis == null ? void 0 : globalThis.document) {
|
|
|
10085
10085
|
return n.addEventListener("keydown", o, { capture: !0 }), () => n.removeEventListener("keydown", o, { capture: !0 });
|
|
10086
10086
|
}, [r, n]);
|
|
10087
10087
|
}
|
|
10088
|
-
var hb = "DismissableLayer", Oo = "dismissableLayer.update", mb = "dismissableLayer.pointerDownOutside", vb = "dismissableLayer.focusOutside", ru,
|
|
10088
|
+
var hb = "DismissableLayer", Oo = "dismissableLayer.update", mb = "dismissableLayer.pointerDownOutside", vb = "dismissableLayer.focusOutside", ru, qc = s.createContext({
|
|
10089
10089
|
layers: /* @__PURE__ */ new Set(),
|
|
10090
10090
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
10091
10091
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -10099,7 +10099,7 @@ var hb = "DismissableLayer", Oo = "dismissableLayer.update", mb = "dismissableLa
|
|
|
10099
10099
|
onInteractOutside: a,
|
|
10100
10100
|
onDismiss: l,
|
|
10101
10101
|
...u
|
|
10102
|
-
} = e, c = s.useContext(
|
|
10102
|
+
} = e, c = s.useContext(qc), [p, _] = s.useState(null), g = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, f] = s.useState({}), m = ut(n, (S) => _(S)), h = Array.from(c.layers), [v] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), w = h.indexOf(v), y = p ? h.indexOf(p) : -1, b = c.layersWithOutsidePointerEventsDisabled.size > 0, $ = y >= w, x = bb((S) => {
|
|
10103
10103
|
const O = S.target, E = [...c.branches].some((k) => k.contains(O));
|
|
10104
10104
|
!$ || E || (i == null || i(S), a == null || a(S), S.defaultPrevented || l == null || l());
|
|
10105
10105
|
}, g), R = $b((S) => {
|
|
@@ -10139,7 +10139,7 @@ var hb = "DismissableLayer", Oo = "dismissableLayer.update", mb = "dismissableLa
|
|
|
10139
10139
|
);
|
|
10140
10140
|
Vc.displayName = hb;
|
|
10141
10141
|
var wb = "DismissableLayerBranch", yb = s.forwardRef((e, n) => {
|
|
10142
|
-
const r = s.useContext(
|
|
10142
|
+
const r = s.useContext(qc), o = s.useRef(null), i = ut(n, o);
|
|
10143
10143
|
return s.useEffect(() => {
|
|
10144
10144
|
const t = o.current;
|
|
10145
10145
|
if (t)
|
|
@@ -10156,7 +10156,7 @@ function bb(e, n = globalThis == null ? void 0 : globalThis.document) {
|
|
|
10156
10156
|
const t = (l) => {
|
|
10157
10157
|
if (l.target && !o.current) {
|
|
10158
10158
|
let u = function() {
|
|
10159
|
-
|
|
10159
|
+
jc(
|
|
10160
10160
|
mb,
|
|
10161
10161
|
r,
|
|
10162
10162
|
c,
|
|
@@ -10183,7 +10183,7 @@ function $b(e, n = globalThis == null ? void 0 : globalThis.document) {
|
|
|
10183
10183
|
const r = Dt(e), o = s.useRef(!1);
|
|
10184
10184
|
return s.useEffect(() => {
|
|
10185
10185
|
const i = (t) => {
|
|
10186
|
-
t.target && !o.current &&
|
|
10186
|
+
t.target && !o.current && jc(vb, r, { originalEvent: t }, {
|
|
10187
10187
|
discrete: !1
|
|
10188
10188
|
});
|
|
10189
10189
|
};
|
|
@@ -10197,20 +10197,20 @@ function nu() {
|
|
|
10197
10197
|
const e = new CustomEvent(Oo);
|
|
10198
10198
|
document.dispatchEvent(e);
|
|
10199
10199
|
}
|
|
10200
|
-
function
|
|
10200
|
+
function jc(e, n, r, { discrete: o }) {
|
|
10201
10201
|
const i = r.originalEvent.target, t = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
|
|
10202
10202
|
n && i.addEventListener(e, n, { once: !0 }), o ? gb(i, t) : i.dispatchEvent(t);
|
|
10203
10203
|
}
|
|
10204
|
-
var
|
|
10204
|
+
var it = globalThis != null && globalThis.document ? s.useLayoutEffect : () => {
|
|
10205
10205
|
}, xb = s.useId || (() => {
|
|
10206
10206
|
}), Sb = 0;
|
|
10207
10207
|
function Cb(e) {
|
|
10208
10208
|
const [n, r] = s.useState(xb());
|
|
10209
|
-
return
|
|
10209
|
+
return it(() => {
|
|
10210
10210
|
r((o) => o ?? String(Sb++));
|
|
10211
10211
|
}, [e]), n ? `radix-${n}` : "";
|
|
10212
10212
|
}
|
|
10213
|
-
const Rb = ["top", "right", "bottom", "left"], ye = Math.min, te = Math.max, Kr = Math.round,
|
|
10213
|
+
const Rb = ["top", "right", "bottom", "left"], ye = Math.min, te = Math.max, Kr = Math.round, jr = Math.floor, He = (e) => ({
|
|
10214
10214
|
x: e,
|
|
10215
10215
|
y: e
|
|
10216
10216
|
}), Eb = {
|
|
@@ -10289,7 +10289,7 @@ function Mb(e) {
|
|
|
10289
10289
|
...e
|
|
10290
10290
|
};
|
|
10291
10291
|
}
|
|
10292
|
-
function
|
|
10292
|
+
function zc(e) {
|
|
10293
10293
|
return typeof e != "number" ? Mb(e) : {
|
|
10294
10294
|
top: e,
|
|
10295
10295
|
right: e,
|
|
@@ -10440,7 +10440,7 @@ async function _r(e, n) {
|
|
|
10440
10440
|
elementContext: _ = "floating",
|
|
10441
10441
|
altBoundary: g = !1,
|
|
10442
10442
|
padding: f = 0
|
|
10443
|
-
} = Ae(n, e), m =
|
|
10443
|
+
} = Ae(n, e), m = zc(f), h = l[g ? _ === "floating" ? "reference" : "floating" : _], v = Qr(await t.getClippingRect({
|
|
10444
10444
|
element: (r = await (t.isElement == null ? void 0 : t.isElement(h))) == null || r ? h : h.contextElement || await (t.getDocumentElement == null ? void 0 : t.getDocumentElement(l.floating)),
|
|
10445
10445
|
boundary: c,
|
|
10446
10446
|
rootBoundary: p,
|
|
@@ -10487,7 +10487,7 @@ const Db = (e) => ({
|
|
|
10487
10487
|
} = Ae(e, n) || {};
|
|
10488
10488
|
if (c == null)
|
|
10489
10489
|
return {};
|
|
10490
|
-
const _ =
|
|
10490
|
+
const _ = zc(p), g = {
|
|
10491
10491
|
x: r,
|
|
10492
10492
|
y: o
|
|
10493
10493
|
}, f = ii(i), m = oi(f), h = await a.getDimensions(c), v = f === "y", w = v ? "top" : "left", y = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", $ = t.reference[m] + t.reference[f] - g[f] - t.floating[m], x = g[f] - t.reference[f], R = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
|
|
@@ -10561,13 +10561,13 @@ const Db = (e) => ({
|
|
|
10561
10561
|
var ee;
|
|
10562
10562
|
const F = (ee = k.filter((H) => {
|
|
10563
10563
|
if (R) {
|
|
10564
|
-
const
|
|
10565
|
-
return
|
|
10564
|
+
const q = Be(H.placement);
|
|
10565
|
+
return q === y || // Create a bias to the `y` side axis due to horizontal
|
|
10566
10566
|
// reading directions favoring greater width.
|
|
10567
|
-
|
|
10567
|
+
q === "y";
|
|
10568
10568
|
}
|
|
10569
10569
|
return !0;
|
|
10570
|
-
}).map((H) => [H.placement, H.overflows.filter((
|
|
10570
|
+
}).map((H) => [H.placement, H.overflows.filter((q) => q > 0).reduce((q, st) => q + st, 0)]).sort((H, q) => H[1] - q[1])[0]) == null ? void 0 : ee[0];
|
|
10571
10571
|
F && (Z = F);
|
|
10572
10572
|
break;
|
|
10573
10573
|
}
|
|
@@ -10639,7 +10639,7 @@ const Lb = function(e) {
|
|
|
10639
10639
|
}
|
|
10640
10640
|
};
|
|
10641
10641
|
};
|
|
10642
|
-
async function
|
|
10642
|
+
async function Ib(e, n) {
|
|
10643
10643
|
const {
|
|
10644
10644
|
placement: r,
|
|
10645
10645
|
platform: o,
|
|
@@ -10667,7 +10667,7 @@ async function jb(e, n) {
|
|
|
10667
10667
|
y: f * p
|
|
10668
10668
|
};
|
|
10669
10669
|
}
|
|
10670
|
-
const
|
|
10670
|
+
const qb = function(e) {
|
|
10671
10671
|
return e === void 0 && (e = 0), {
|
|
10672
10672
|
name: "offset",
|
|
10673
10673
|
options: e,
|
|
@@ -10678,7 +10678,7 @@ const Ib = function(e) {
|
|
|
10678
10678
|
y: t,
|
|
10679
10679
|
placement: a,
|
|
10680
10680
|
middlewareData: l
|
|
10681
|
-
} = n, u = await
|
|
10681
|
+
} = n, u = await Ib(n, e);
|
|
10682
10682
|
return a === ((r = l.offset) == null ? void 0 : r.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
10683
10683
|
x: i + u.x,
|
|
10684
10684
|
y: t + u.y,
|
|
@@ -10741,7 +10741,7 @@ const Ib = function(e) {
|
|
|
10741
10741
|
};
|
|
10742
10742
|
}
|
|
10743
10743
|
};
|
|
10744
|
-
},
|
|
10744
|
+
}, jb = function(e) {
|
|
10745
10745
|
return e === void 0 && (e = {}), {
|
|
10746
10746
|
options: e,
|
|
10747
10747
|
fn(n) {
|
|
@@ -10783,7 +10783,7 @@ const Ib = function(e) {
|
|
|
10783
10783
|
};
|
|
10784
10784
|
}
|
|
10785
10785
|
};
|
|
10786
|
-
},
|
|
10786
|
+
}, zb = function(e) {
|
|
10787
10787
|
return e === void 0 && (e = {}), {
|
|
10788
10788
|
name: "size",
|
|
10789
10789
|
options: e,
|
|
@@ -10968,7 +10968,7 @@ function Gc(e) {
|
|
|
10968
10968
|
function Gb(e, n, r) {
|
|
10969
10969
|
return n === void 0 && (n = !1), !r || n && r !== ne(e) ? !1 : n;
|
|
10970
10970
|
}
|
|
10971
|
-
function
|
|
10971
|
+
function at(e, n, r, o) {
|
|
10972
10972
|
n === void 0 && (n = !1), r === void 0 && (r = !1);
|
|
10973
10973
|
const i = e.getBoundingClientRect(), t = ui(e);
|
|
10974
10974
|
let a = He(1);
|
|
@@ -11006,7 +11006,7 @@ function Zb(e) {
|
|
|
11006
11006
|
}, c = He(1);
|
|
11007
11007
|
const p = He(0), _ = be(o);
|
|
11008
11008
|
if ((_ || !_ && !t) && ((Lt(o) !== "body" || mr(a)) && (u = cn(o)), be(o))) {
|
|
11009
|
-
const g =
|
|
11009
|
+
const g = at(o);
|
|
11010
11010
|
c = Nt(o), p.x = g.x + o.clientLeft, p.y = g.y + o.clientTop;
|
|
11011
11011
|
}
|
|
11012
11012
|
return {
|
|
@@ -11020,7 +11020,7 @@ function Ub(e) {
|
|
|
11020
11020
|
return Array.from(e.getClientRects());
|
|
11021
11021
|
}
|
|
11022
11022
|
function Zc(e) {
|
|
11023
|
-
return
|
|
11023
|
+
return at(Fe(e)).left + cn(e).scrollLeft;
|
|
11024
11024
|
}
|
|
11025
11025
|
function Xb(e) {
|
|
11026
11026
|
const n = Fe(e), r = cn(e), o = e.ownerDocument.body, i = te(n.scrollWidth, n.clientWidth, o.scrollWidth, o.clientWidth), t = te(n.scrollHeight, n.clientHeight, o.scrollHeight, o.clientHeight);
|
|
@@ -11049,7 +11049,7 @@ function Yb(e, n) {
|
|
|
11049
11049
|
};
|
|
11050
11050
|
}
|
|
11051
11051
|
function Kb(e, n) {
|
|
11052
|
-
const r =
|
|
11052
|
+
const r = at(e, !0, n === "fixed"), o = r.top + e.clientTop, i = r.left + e.clientLeft, t = be(e) ? Nt(e) : He(1), a = e.clientWidth * t.x, l = e.clientHeight * t.y, u = i * t.x, c = o * t.y;
|
|
11053
11053
|
return {
|
|
11054
11054
|
width: a,
|
|
11055
11055
|
height: l,
|
|
@@ -11110,7 +11110,7 @@ function Qb(e) {
|
|
|
11110
11110
|
y: l.top
|
|
11111
11111
|
};
|
|
11112
11112
|
}
|
|
11113
|
-
function
|
|
11113
|
+
function e2(e) {
|
|
11114
11114
|
const {
|
|
11115
11115
|
width: n,
|
|
11116
11116
|
height: r
|
|
@@ -11120,8 +11120,8 @@ function e$(e) {
|
|
|
11120
11120
|
height: r
|
|
11121
11121
|
};
|
|
11122
11122
|
}
|
|
11123
|
-
function
|
|
11124
|
-
const o = be(n), i = Fe(n), t = r === "fixed", a =
|
|
11123
|
+
function t2(e, n, r) {
|
|
11124
|
+
const o = be(n), i = Fe(n), t = r === "fixed", a = at(e, !0, t, n);
|
|
11125
11125
|
let l = {
|
|
11126
11126
|
scrollLeft: 0,
|
|
11127
11127
|
scrollTop: 0
|
|
@@ -11129,7 +11129,7 @@ function t$(e, n, r) {
|
|
|
11129
11129
|
const u = He(0);
|
|
11130
11130
|
if (o || !o && !t)
|
|
11131
11131
|
if ((Lt(n) !== "body" || mr(i)) && (l = cn(n)), o) {
|
|
11132
|
-
const _ =
|
|
11132
|
+
const _ = at(n, !0, t, n);
|
|
11133
11133
|
u.x = _.x + n.clientLeft, u.y = _.y + n.clientTop;
|
|
11134
11134
|
} else i && (u.x = Zc(i));
|
|
11135
11135
|
const c = a.left + l.scrollLeft - u.x, p = a.top + l.scrollTop - u.y;
|
|
@@ -11164,10 +11164,10 @@ function Xc(e, n) {
|
|
|
11164
11164
|
o = su(o, n);
|
|
11165
11165
|
return o && Ot(o) && Kn(o) && !ai(o) ? r : o || Bb(e) || r;
|
|
11166
11166
|
}
|
|
11167
|
-
const
|
|
11167
|
+
const r2 = async function(e) {
|
|
11168
11168
|
const n = this.getOffsetParent || Xc, r = this.getDimensions, o = await r(e.floating);
|
|
11169
11169
|
return {
|
|
11170
|
-
reference:
|
|
11170
|
+
reference: t2(e.reference, await n(e.floating), e.strategy),
|
|
11171
11171
|
floating: {
|
|
11172
11172
|
x: 0,
|
|
11173
11173
|
y: 0,
|
|
@@ -11176,22 +11176,22 @@ const r$ = async function(e) {
|
|
|
11176
11176
|
}
|
|
11177
11177
|
};
|
|
11178
11178
|
};
|
|
11179
|
-
function
|
|
11179
|
+
function n2(e) {
|
|
11180
11180
|
return _e(e).direction === "rtl";
|
|
11181
11181
|
}
|
|
11182
|
-
const
|
|
11182
|
+
const o2 = {
|
|
11183
11183
|
convertOffsetParentRelativeRectToViewportRelativeRect: Zb,
|
|
11184
11184
|
getDocumentElement: Fe,
|
|
11185
11185
|
getClippingRect: Qb,
|
|
11186
11186
|
getOffsetParent: Xc,
|
|
11187
|
-
getElementRects:
|
|
11187
|
+
getElementRects: r2,
|
|
11188
11188
|
getClientRects: Ub,
|
|
11189
|
-
getDimensions:
|
|
11189
|
+
getDimensions: e2,
|
|
11190
11190
|
getScale: Nt,
|
|
11191
11191
|
isElement: ge,
|
|
11192
|
-
isRTL:
|
|
11192
|
+
isRTL: n2
|
|
11193
11193
|
};
|
|
11194
|
-
function
|
|
11194
|
+
function i2(e, n) {
|
|
11195
11195
|
let r = null, o;
|
|
11196
11196
|
const i = Fe(e);
|
|
11197
11197
|
function t() {
|
|
@@ -11208,7 +11208,7 @@ function i$(e, n) {
|
|
|
11208
11208
|
} = e.getBoundingClientRect();
|
|
11209
11209
|
if (l || n(), !_ || !g)
|
|
11210
11210
|
return;
|
|
11211
|
-
const f =
|
|
11211
|
+
const f = jr(p), m = jr(i.clientWidth - (c + _)), h = jr(i.clientHeight - (p + g)), v = jr(c), w = {
|
|
11212
11212
|
rootMargin: -f + "px " + -m + "px " + -h + "px " + -v + "px",
|
|
11213
11213
|
threshold: te(0, ye(1, u)) || 1
|
|
11214
11214
|
};
|
|
@@ -11237,7 +11237,7 @@ function i$(e, n) {
|
|
|
11237
11237
|
}
|
|
11238
11238
|
return a(!0), t;
|
|
11239
11239
|
}
|
|
11240
|
-
function
|
|
11240
|
+
function a2(e, n, r, o) {
|
|
11241
11241
|
o === void 0 && (o = {});
|
|
11242
11242
|
const {
|
|
11243
11243
|
ancestorScroll: i = !0,
|
|
@@ -11251,7 +11251,7 @@ function a$(e, n, r, o) {
|
|
|
11251
11251
|
passive: !0
|
|
11252
11252
|
}), t && w.addEventListener("resize", r);
|
|
11253
11253
|
});
|
|
11254
|
-
const _ = c && l ?
|
|
11254
|
+
const _ = c && l ? i2(c, r) : null;
|
|
11255
11255
|
let g = -1, f = null;
|
|
11256
11256
|
a && (f = new ResizeObserver((w) => {
|
|
11257
11257
|
let [y] = w;
|
|
@@ -11260,10 +11260,10 @@ function a$(e, n, r, o) {
|
|
|
11260
11260
|
(b = f) == null || b.observe(n);
|
|
11261
11261
|
})), r();
|
|
11262
11262
|
}), c && !u && f.observe(c), f.observe(n));
|
|
11263
|
-
let m, h = u ?
|
|
11263
|
+
let m, h = u ? at(e) : null;
|
|
11264
11264
|
u && v();
|
|
11265
11265
|
function v() {
|
|
11266
|
-
const w =
|
|
11266
|
+
const w = at(e);
|
|
11267
11267
|
h && (w.x !== h.x || w.y !== h.y || w.width !== h.width || w.height !== h.height) && r(), h = w, m = requestAnimationFrame(v);
|
|
11268
11268
|
}
|
|
11269
11269
|
return r(), () => {
|
|
@@ -11273,9 +11273,9 @@ function a$(e, n, r, o) {
|
|
|
11273
11273
|
}), _ == null || _(), (w = f) == null || w.disconnect(), f = null, u && cancelAnimationFrame(m);
|
|
11274
11274
|
};
|
|
11275
11275
|
}
|
|
11276
|
-
const
|
|
11276
|
+
const l2 = qb, u2 = Vb, s2 = Tb, c2 = zb, p2 = Lb, cu = Db, d2 = jb, f2 = (e, n, r) => {
|
|
11277
11277
|
const o = /* @__PURE__ */ new Map(), i = {
|
|
11278
|
-
platform:
|
|
11278
|
+
platform: o2,
|
|
11279
11279
|
...r
|
|
11280
11280
|
}, t = {
|
|
11281
11281
|
...i.platform,
|
|
@@ -11330,7 +11330,7 @@ function du(e) {
|
|
|
11330
11330
|
n.current = e;
|
|
11331
11331
|
}), n;
|
|
11332
11332
|
}
|
|
11333
|
-
function
|
|
11333
|
+
function g2(e) {
|
|
11334
11334
|
e === void 0 && (e = {});
|
|
11335
11335
|
const {
|
|
11336
11336
|
placement: n = "bottom",
|
|
@@ -11365,13 +11365,13 @@ function g$(e) {
|
|
|
11365
11365
|
strategy: r,
|
|
11366
11366
|
middleware: g
|
|
11367
11367
|
};
|
|
11368
|
-
D.current && (F.platform = D.current),
|
|
11369
|
-
const
|
|
11368
|
+
D.current && (F.platform = D.current), f2(R.current, S.current, F).then((H) => {
|
|
11369
|
+
const q = {
|
|
11370
11370
|
...H,
|
|
11371
11371
|
isPositioned: !0
|
|
11372
11372
|
};
|
|
11373
|
-
ee.current && !en(O.current,
|
|
11374
|
-
_(
|
|
11373
|
+
ee.current && !en(O.current, q) && (O.current = q, Io.flushSync(() => {
|
|
11374
|
+
_(q);
|
|
11375
11375
|
}));
|
|
11376
11376
|
});
|
|
11377
11377
|
}, [g, n, r, D]);
|
|
@@ -11407,17 +11407,17 @@ function g$(e) {
|
|
|
11407
11407
|
};
|
|
11408
11408
|
if (!M.floating)
|
|
11409
11409
|
return F;
|
|
11410
|
-
const H = pu(M.floating, p.x),
|
|
11410
|
+
const H = pu(M.floating, p.x), q = pu(M.floating, p.y);
|
|
11411
11411
|
return l ? {
|
|
11412
11412
|
...F,
|
|
11413
|
-
transform: "translate(" + H + "px, " +
|
|
11413
|
+
transform: "translate(" + H + "px, " + q + "px)",
|
|
11414
11414
|
...Yc(M.floating) >= 1.5 && {
|
|
11415
11415
|
willChange: "transform"
|
|
11416
11416
|
}
|
|
11417
11417
|
} : {
|
|
11418
11418
|
position: r,
|
|
11419
11419
|
left: H,
|
|
11420
|
-
top:
|
|
11420
|
+
top: q
|
|
11421
11421
|
};
|
|
11422
11422
|
}, [r, l, M.floating, p.x, p.y]);
|
|
11423
11423
|
return s.useMemo(() => ({
|
|
@@ -11428,7 +11428,7 @@ function g$(e) {
|
|
|
11428
11428
|
floatingStyles: Z
|
|
11429
11429
|
}), [p, A, T, M, Z]);
|
|
11430
11430
|
}
|
|
11431
|
-
const
|
|
11431
|
+
const _2 = (e) => {
|
|
11432
11432
|
function n(r) {
|
|
11433
11433
|
return {}.hasOwnProperty.call(r, "current");
|
|
11434
11434
|
}
|
|
@@ -11449,29 +11449,29 @@ const _$ = (e) => {
|
|
|
11449
11449
|
}).fn(r) : {};
|
|
11450
11450
|
}
|
|
11451
11451
|
};
|
|
11452
|
-
},
|
|
11453
|
-
...
|
|
11452
|
+
}, h2 = (e, n) => ({
|
|
11453
|
+
...l2(e),
|
|
11454
11454
|
options: [e, n]
|
|
11455
|
-
}),
|
|
11456
|
-
...
|
|
11455
|
+
}), m2 = (e, n) => ({
|
|
11456
|
+
...u2(e),
|
|
11457
11457
|
options: [e, n]
|
|
11458
|
-
}),
|
|
11459
|
-
...
|
|
11458
|
+
}), v2 = (e, n) => ({
|
|
11459
|
+
...d2(e),
|
|
11460
11460
|
options: [e, n]
|
|
11461
|
-
}),
|
|
11462
|
-
...
|
|
11461
|
+
}), w2 = (e, n) => ({
|
|
11462
|
+
...s2(e),
|
|
11463
11463
|
options: [e, n]
|
|
11464
|
-
}),
|
|
11465
|
-
...
|
|
11464
|
+
}), y2 = (e, n) => ({
|
|
11465
|
+
...c2(e),
|
|
11466
11466
|
options: [e, n]
|
|
11467
|
-
}),
|
|
11468
|
-
...
|
|
11467
|
+
}), b2 = (e, n) => ({
|
|
11468
|
+
...p2(e),
|
|
11469
11469
|
options: [e, n]
|
|
11470
|
-
}),
|
|
11471
|
-
...
|
|
11470
|
+
}), $2 = (e, n) => ({
|
|
11471
|
+
..._2(e),
|
|
11472
11472
|
options: [e, n]
|
|
11473
11473
|
});
|
|
11474
|
-
var
|
|
11474
|
+
var x2 = "Arrow", Kc = s.forwardRef((e, n) => {
|
|
11475
11475
|
const { children: r, width: o = 10, height: i = 5, ...t } = e;
|
|
11476
11476
|
return /* @__PURE__ */ d(
|
|
11477
11477
|
Ze.svg,
|
|
@@ -11486,11 +11486,11 @@ var x$ = "Arrow", Kc = s.forwardRef((e, n) => {
|
|
|
11486
11486
|
}
|
|
11487
11487
|
);
|
|
11488
11488
|
});
|
|
11489
|
-
Kc.displayName =
|
|
11490
|
-
var
|
|
11491
|
-
function
|
|
11489
|
+
Kc.displayName = x2;
|
|
11490
|
+
var S2 = Kc;
|
|
11491
|
+
function C2(e) {
|
|
11492
11492
|
const [n, r] = s.useState(void 0);
|
|
11493
|
-
return
|
|
11493
|
+
return it(() => {
|
|
11494
11494
|
if (e) {
|
|
11495
11495
|
r({ width: e.offsetWidth, height: e.offsetHeight });
|
|
11496
11496
|
const o = new ResizeObserver((i) => {
|
|
@@ -11510,21 +11510,21 @@ function C$(e) {
|
|
|
11510
11510
|
r(void 0);
|
|
11511
11511
|
}, [e]), n;
|
|
11512
11512
|
}
|
|
11513
|
-
var si = "Popper", [Jc, Qc] = Tc(si), [
|
|
11513
|
+
var si = "Popper", [Jc, Qc] = Tc(si), [R2, ep] = Jc(si), tp = (e) => {
|
|
11514
11514
|
const { __scopePopper: n, children: r } = e, [o, i] = s.useState(null);
|
|
11515
|
-
return /* @__PURE__ */ d(
|
|
11515
|
+
return /* @__PURE__ */ d(R2, { scope: n, anchor: o, onAnchorChange: i, children: r });
|
|
11516
11516
|
};
|
|
11517
11517
|
tp.displayName = si;
|
|
11518
11518
|
var rp = "PopperAnchor", np = s.forwardRef(
|
|
11519
11519
|
(e, n) => {
|
|
11520
|
-
const { __scopePopper: r, virtualRef: o, ...i } = e, t = ep(rp, r), a = s.useRef(null), l =
|
|
11520
|
+
const { __scopePopper: r, virtualRef: o, ...i } = e, t = ep(rp, r), a = s.useRef(null), l = ut(n, a);
|
|
11521
11521
|
return s.useEffect(() => {
|
|
11522
11522
|
t.onAnchorChange((o == null ? void 0 : o.current) || a.current);
|
|
11523
11523
|
}), o ? null : /* @__PURE__ */ d(Ze.div, { ...i, ref: l });
|
|
11524
11524
|
}
|
|
11525
11525
|
);
|
|
11526
11526
|
np.displayName = rp;
|
|
11527
|
-
var ci = "PopperContent", [
|
|
11527
|
+
var ci = "PopperContent", [E2, N2] = Jc(ci), op = s.forwardRef(
|
|
11528
11528
|
(e, n) => {
|
|
11529
11529
|
var r, o, i, t, a, l;
|
|
11530
11530
|
const {
|
|
@@ -11542,59 +11542,59 @@ var ci = "PopperContent", [E$, N$] = Jc(ci), op = s.forwardRef(
|
|
|
11542
11542
|
updatePositionStrategy: b = "optimized",
|
|
11543
11543
|
onPlaced: $,
|
|
11544
11544
|
...x
|
|
11545
|
-
} = e, R = ep(ci, u), [S, O] = s.useState(null), E =
|
|
11545
|
+
} = e, R = ep(ci, u), [S, O] = s.useState(null), E = ut(n, (me) => O(me)), [k, D] = s.useState(null), A = C2(k), ee = (A == null ? void 0 : A.width) ?? 0, T = (A == null ? void 0 : A.height) ?? 0, M = c + (_ !== "center" ? "-" + _ : ""), Z = typeof v == "number" ? v : { top: 0, right: 0, bottom: 0, left: 0, ...v }, F = Array.isArray(h) ? h : [h], H = F.length > 0, q = {
|
|
11546
11546
|
padding: Z,
|
|
11547
|
-
boundary: F.filter(
|
|
11547
|
+
boundary: F.filter(k2),
|
|
11548
11548
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
11549
11549
|
altBoundary: H
|
|
11550
|
-
}, { refs:
|
|
11550
|
+
}, { refs: st, floatingStyles: It, placement: br, isPositioned: Ue, middlewareData: pe } = g2({
|
|
11551
11551
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
11552
11552
|
strategy: "fixed",
|
|
11553
11553
|
placement: M,
|
|
11554
|
-
whileElementsMounted: (...me) =>
|
|
11554
|
+
whileElementsMounted: (...me) => a2(...me, {
|
|
11555
11555
|
animationFrame: b === "always"
|
|
11556
11556
|
}),
|
|
11557
11557
|
elements: {
|
|
11558
11558
|
reference: R.anchor
|
|
11559
11559
|
},
|
|
11560
11560
|
middleware: [
|
|
11561
|
-
|
|
11562
|
-
m &&
|
|
11561
|
+
h2({ mainAxis: p + T, alignmentAxis: g }),
|
|
11562
|
+
m && m2({
|
|
11563
11563
|
mainAxis: !0,
|
|
11564
11564
|
crossAxis: !1,
|
|
11565
|
-
limiter: w === "partial" ?
|
|
11566
|
-
...
|
|
11565
|
+
limiter: w === "partial" ? v2() : void 0,
|
|
11566
|
+
...q
|
|
11567
11567
|
}),
|
|
11568
|
-
m &&
|
|
11569
|
-
|
|
11570
|
-
...
|
|
11568
|
+
m && w2({ ...q }),
|
|
11569
|
+
y2({
|
|
11570
|
+
...q,
|
|
11571
11571
|
apply: ({ elements: me, rects: De, availableWidth: Vt, availableHeight: _n }) => {
|
|
11572
11572
|
const { width: hn, height: mn } = De.reference, dt = me.floating.style;
|
|
11573
11573
|
dt.setProperty("--radix-popper-available-width", `${Vt}px`), dt.setProperty("--radix-popper-available-height", `${_n}px`), dt.setProperty("--radix-popper-anchor-width", `${hn}px`), dt.setProperty("--radix-popper-anchor-height", `${mn}px`);
|
|
11574
11574
|
}
|
|
11575
11575
|
}),
|
|
11576
|
-
k &&
|
|
11577
|
-
|
|
11578
|
-
y &&
|
|
11576
|
+
k && $2({ element: k, padding: f }),
|
|
11577
|
+
O2({ arrowWidth: ee, arrowHeight: T }),
|
|
11578
|
+
y && b2({ strategy: "referenceHidden", ...q })
|
|
11579
11579
|
]
|
|
11580
|
-
}), [
|
|
11581
|
-
|
|
11580
|
+
}), [qt, Xe] = lp(br), ct = Dt($);
|
|
11581
|
+
it(() => {
|
|
11582
11582
|
Ue && (ct == null || ct());
|
|
11583
11583
|
}, [Ue, ct]);
|
|
11584
|
-
const $r = (r = pe.arrow) == null ? void 0 : r.x, xr = (o = pe.arrow) == null ? void 0 : o.y, pt = ((i = pe.arrow) == null ? void 0 : i.centerOffset) !== 0, [
|
|
11585
|
-
return
|
|
11584
|
+
const $r = (r = pe.arrow) == null ? void 0 : r.x, xr = (o = pe.arrow) == null ? void 0 : o.y, pt = ((i = pe.arrow) == null ? void 0 : i.centerOffset) !== 0, [Ye, gn] = s.useState();
|
|
11585
|
+
return it(() => {
|
|
11586
11586
|
S && gn(window.getComputedStyle(S).zIndex);
|
|
11587
11587
|
}, [S]), /* @__PURE__ */ d(
|
|
11588
11588
|
"div",
|
|
11589
11589
|
{
|
|
11590
|
-
ref:
|
|
11590
|
+
ref: st.setFloating,
|
|
11591
11591
|
"data-radix-popper-content-wrapper": "",
|
|
11592
11592
|
style: {
|
|
11593
|
-
...
|
|
11594
|
-
transform: Ue ?
|
|
11593
|
+
...It,
|
|
11594
|
+
transform: Ue ? It.transform : "translate(0, -200%)",
|
|
11595
11595
|
// keep off the page when measuring
|
|
11596
11596
|
minWidth: "max-content",
|
|
11597
|
-
zIndex:
|
|
11597
|
+
zIndex: Ye,
|
|
11598
11598
|
"--radix-popper-transform-origin": [
|
|
11599
11599
|
(t = pe.transformOrigin) == null ? void 0 : t.x,
|
|
11600
11600
|
(a = pe.transformOrigin) == null ? void 0 : a.y
|
|
@@ -11609,10 +11609,10 @@ var ci = "PopperContent", [E$, N$] = Jc(ci), op = s.forwardRef(
|
|
|
11609
11609
|
},
|
|
11610
11610
|
dir: e.dir,
|
|
11611
11611
|
children: /* @__PURE__ */ d(
|
|
11612
|
-
|
|
11612
|
+
E2,
|
|
11613
11613
|
{
|
|
11614
11614
|
scope: u,
|
|
11615
|
-
placedSide:
|
|
11615
|
+
placedSide: qt,
|
|
11616
11616
|
onArrowChange: D,
|
|
11617
11617
|
arrowX: $r,
|
|
11618
11618
|
arrowY: xr,
|
|
@@ -11620,8 +11620,8 @@ var ci = "PopperContent", [E$, N$] = Jc(ci), op = s.forwardRef(
|
|
|
11620
11620
|
children: /* @__PURE__ */ d(
|
|
11621
11621
|
Ze.div,
|
|
11622
11622
|
{
|
|
11623
|
-
"data-side":
|
|
11624
|
-
"data-align":
|
|
11623
|
+
"data-side": qt,
|
|
11624
|
+
"data-align": Xe,
|
|
11625
11625
|
...x,
|
|
11626
11626
|
ref: E,
|
|
11627
11627
|
style: {
|
|
@@ -11639,13 +11639,13 @@ var ci = "PopperContent", [E$, N$] = Jc(ci), op = s.forwardRef(
|
|
|
11639
11639
|
}
|
|
11640
11640
|
);
|
|
11641
11641
|
op.displayName = ci;
|
|
11642
|
-
var ip = "PopperArrow",
|
|
11642
|
+
var ip = "PopperArrow", P2 = {
|
|
11643
11643
|
top: "bottom",
|
|
11644
11644
|
right: "left",
|
|
11645
11645
|
bottom: "top",
|
|
11646
11646
|
left: "right"
|
|
11647
11647
|
}, ap = s.forwardRef(function(e, n) {
|
|
11648
|
-
const { __scopePopper: r, ...o } = e, i =
|
|
11648
|
+
const { __scopePopper: r, ...o } = e, i = N2(ip, r), t = P2[i.placedSide];
|
|
11649
11649
|
return (
|
|
11650
11650
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
11651
11651
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -11674,7 +11674,7 @@ var ip = "PopperArrow", P$ = {
|
|
|
11674
11674
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
11675
11675
|
},
|
|
11676
11676
|
children: /* @__PURE__ */ d(
|
|
11677
|
-
|
|
11677
|
+
S2,
|
|
11678
11678
|
{
|
|
11679
11679
|
...o,
|
|
11680
11680
|
ref: n,
|
|
@@ -11690,10 +11690,10 @@ var ip = "PopperArrow", P$ = {
|
|
|
11690
11690
|
);
|
|
11691
11691
|
});
|
|
11692
11692
|
ap.displayName = ip;
|
|
11693
|
-
function
|
|
11693
|
+
function k2(e) {
|
|
11694
11694
|
return e !== null;
|
|
11695
11695
|
}
|
|
11696
|
-
var
|
|
11696
|
+
var O2 = (e) => ({
|
|
11697
11697
|
name: "transformOrigin",
|
|
11698
11698
|
options: e,
|
|
11699
11699
|
fn(n) {
|
|
@@ -11707,24 +11707,24 @@ function lp(e) {
|
|
|
11707
11707
|
const [n, r = "center"] = e.split("-");
|
|
11708
11708
|
return [n, r];
|
|
11709
11709
|
}
|
|
11710
|
-
var
|
|
11710
|
+
var A2 = tp, M2 = np, F2 = op, D2 = ap, T2 = "Portal", up = s.forwardRef((e, n) => {
|
|
11711
11711
|
var r;
|
|
11712
11712
|
const { container: o, ...i } = e, [t, a] = s.useState(!1);
|
|
11713
|
-
|
|
11713
|
+
it(() => a(!0), []);
|
|
11714
11714
|
const l = o || t && ((r = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : r.body);
|
|
11715
11715
|
return l ? Ru.createPortal(/* @__PURE__ */ d(Ze.div, { ...i, ref: n }), l) : null;
|
|
11716
11716
|
});
|
|
11717
|
-
up.displayName =
|
|
11718
|
-
function
|
|
11717
|
+
up.displayName = T2;
|
|
11718
|
+
function L2(e, n) {
|
|
11719
11719
|
return s.useReducer((r, o) => n[r][o] ?? r, e);
|
|
11720
11720
|
}
|
|
11721
11721
|
var pi = (e) => {
|
|
11722
|
-
const { present: n, children: r } = e, o =
|
|
11722
|
+
const { present: n, children: r } = e, o = I2(n), i = typeof r == "function" ? r({ present: o.isPresent }) : s.Children.only(r), t = ut(o.ref, q2(i));
|
|
11723
11723
|
return typeof r == "function" || o.isPresent ? s.cloneElement(i, { ref: t }) : null;
|
|
11724
11724
|
};
|
|
11725
11725
|
pi.displayName = "Presence";
|
|
11726
|
-
function
|
|
11727
|
-
const [n, r] = s.useState(), o = s.useRef({}), i = s.useRef(e), t = s.useRef("none"), a = e ? "mounted" : "unmounted", [l, u] =
|
|
11726
|
+
function I2(e) {
|
|
11727
|
+
const [n, r] = s.useState(), o = s.useRef({}), i = s.useRef(e), t = s.useRef("none"), a = e ? "mounted" : "unmounted", [l, u] = L2(a, {
|
|
11728
11728
|
mounted: {
|
|
11729
11729
|
UNMOUNT: "unmounted",
|
|
11730
11730
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -11738,19 +11738,19 @@ function j$(e) {
|
|
|
11738
11738
|
}
|
|
11739
11739
|
});
|
|
11740
11740
|
return s.useEffect(() => {
|
|
11741
|
-
const c =
|
|
11741
|
+
const c = zr(o.current);
|
|
11742
11742
|
t.current = l === "mounted" ? c : "none";
|
|
11743
|
-
}, [l]),
|
|
11743
|
+
}, [l]), it(() => {
|
|
11744
11744
|
const c = o.current, p = i.current;
|
|
11745
11745
|
if (p !== e) {
|
|
11746
|
-
const _ = t.current, g =
|
|
11746
|
+
const _ = t.current, g = zr(c);
|
|
11747
11747
|
e ? u("MOUNT") : g === "none" || (c == null ? void 0 : c.display) === "none" ? u("UNMOUNT") : u(p && _ !== g ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
11748
11748
|
}
|
|
11749
|
-
}, [e, u]),
|
|
11749
|
+
}, [e, u]), it(() => {
|
|
11750
11750
|
if (n) {
|
|
11751
11751
|
let c;
|
|
11752
11752
|
const p = n.ownerDocument.defaultView ?? window, _ = (f) => {
|
|
11753
|
-
const m =
|
|
11753
|
+
const m = zr(o.current).includes(f.animationName);
|
|
11754
11754
|
if (f.target === n && m && (u("ANIMATION_END"), !i.current)) {
|
|
11755
11755
|
const h = n.style.animationFillMode;
|
|
11756
11756
|
n.style.animationFillMode = "forwards", c = p.setTimeout(() => {
|
|
@@ -11758,7 +11758,7 @@ function j$(e) {
|
|
|
11758
11758
|
});
|
|
11759
11759
|
}
|
|
11760
11760
|
}, g = (f) => {
|
|
11761
|
-
f.target === n && (t.current =
|
|
11761
|
+
f.target === n && (t.current = zr(o.current));
|
|
11762
11762
|
};
|
|
11763
11763
|
return n.addEventListener("animationstart", g), n.addEventListener("animationcancel", _), n.addEventListener("animationend", _), () => {
|
|
11764
11764
|
p.clearTimeout(c), n.removeEventListener("animationstart", g), n.removeEventListener("animationcancel", _), n.removeEventListener("animationend", _);
|
|
@@ -11772,21 +11772,21 @@ function j$(e) {
|
|
|
11772
11772
|
}, [])
|
|
11773
11773
|
};
|
|
11774
11774
|
}
|
|
11775
|
-
function
|
|
11775
|
+
function zr(e) {
|
|
11776
11776
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
11777
11777
|
}
|
|
11778
|
-
function
|
|
11778
|
+
function q2(e) {
|
|
11779
11779
|
var n, r;
|
|
11780
11780
|
let o = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, i = o && "isReactWarning" in o && o.isReactWarning;
|
|
11781
11781
|
return i ? e.ref : (o = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, i = o && "isReactWarning" in o && o.isReactWarning, i ? e.props.ref : e.props.ref || e.ref);
|
|
11782
11782
|
}
|
|
11783
|
-
function
|
|
11783
|
+
function V2({
|
|
11784
11784
|
prop: e,
|
|
11785
11785
|
defaultProp: n,
|
|
11786
11786
|
onChange: r = () => {
|
|
11787
11787
|
}
|
|
11788
11788
|
}) {
|
|
11789
|
-
const [o, i] =
|
|
11789
|
+
const [o, i] = j2({ defaultProp: n, onChange: r }), t = e !== void 0, a = t ? e : o, l = Dt(r), u = s.useCallback(
|
|
11790
11790
|
(c) => {
|
|
11791
11791
|
if (t) {
|
|
11792
11792
|
const p = typeof c == "function" ? c(e) : c;
|
|
@@ -11798,7 +11798,7 @@ function V$({
|
|
|
11798
11798
|
);
|
|
11799
11799
|
return [a, u];
|
|
11800
11800
|
}
|
|
11801
|
-
function
|
|
11801
|
+
function j2({
|
|
11802
11802
|
defaultProp: e,
|
|
11803
11803
|
onChange: n
|
|
11804
11804
|
}) {
|
|
@@ -11807,7 +11807,7 @@ function z$({
|
|
|
11807
11807
|
i.current !== o && (t(o), i.current = o);
|
|
11808
11808
|
}, [o, i, t]), r;
|
|
11809
11809
|
}
|
|
11810
|
-
var
|
|
11810
|
+
var z2 = "VisuallyHidden", sp = s.forwardRef(
|
|
11811
11811
|
(e, n) => /* @__PURE__ */ d(
|
|
11812
11812
|
Ze.span,
|
|
11813
11813
|
{
|
|
@@ -11830,13 +11830,13 @@ var q$ = "VisuallyHidden", sp = s.forwardRef(
|
|
|
11830
11830
|
}
|
|
11831
11831
|
)
|
|
11832
11832
|
);
|
|
11833
|
-
sp.displayName =
|
|
11834
|
-
var
|
|
11833
|
+
sp.displayName = z2;
|
|
11834
|
+
var H2 = sp, [pn, Qx] = Tc("Tooltip", [
|
|
11835
11835
|
Qc
|
|
11836
|
-
]), dn = Qc(), cp = "TooltipProvider",
|
|
11836
|
+
]), dn = Qc(), cp = "TooltipProvider", B2 = 700, Do = "tooltip.open", [W2, di] = pn(cp), pp = (e) => {
|
|
11837
11837
|
const {
|
|
11838
11838
|
__scopeTooltip: n,
|
|
11839
|
-
delayDuration: r =
|
|
11839
|
+
delayDuration: r = B2,
|
|
11840
11840
|
skipDelayDuration: o = 300,
|
|
11841
11841
|
disableHoverableContent: i = !1,
|
|
11842
11842
|
children: t
|
|
@@ -11845,7 +11845,7 @@ var H$ = sp, [pn, Qx] = Tc("Tooltip", [
|
|
|
11845
11845
|
const p = c.current;
|
|
11846
11846
|
return () => window.clearTimeout(p);
|
|
11847
11847
|
}, []), /* @__PURE__ */ d(
|
|
11848
|
-
|
|
11848
|
+
W2,
|
|
11849
11849
|
{
|
|
11850
11850
|
scope: n,
|
|
11851
11851
|
isOpenDelayed: a,
|
|
@@ -11869,7 +11869,7 @@ var H$ = sp, [pn, Qx] = Tc("Tooltip", [
|
|
|
11869
11869
|
);
|
|
11870
11870
|
};
|
|
11871
11871
|
pp.displayName = cp;
|
|
11872
|
-
var fn = "Tooltip", [
|
|
11872
|
+
var fn = "Tooltip", [G2, vr] = pn(fn), dp = (e) => {
|
|
11873
11873
|
const {
|
|
11874
11874
|
__scopeTooltip: n,
|
|
11875
11875
|
children: r,
|
|
@@ -11878,7 +11878,7 @@ var fn = "Tooltip", [G$, vr] = pn(fn), dp = (e) => {
|
|
|
11878
11878
|
onOpenChange: t,
|
|
11879
11879
|
disableHoverableContent: a,
|
|
11880
11880
|
delayDuration: l
|
|
11881
|
-
} = e, u = di(fn, e.__scopeTooltip), c = dn(n), [p, _] = s.useState(null), g = Cb(), f = s.useRef(0), m = a ?? u.disableHoverableContent, h = l ?? u.delayDuration, v = s.useRef(!1), [w = !1, y] =
|
|
11881
|
+
} = e, u = di(fn, e.__scopeTooltip), c = dn(n), [p, _] = s.useState(null), g = Cb(), f = s.useRef(0), m = a ?? u.disableHoverableContent, h = l ?? u.delayDuration, v = s.useRef(!1), [w = !1, y] = V2({
|
|
11882
11882
|
prop: o,
|
|
11883
11883
|
defaultProp: i,
|
|
11884
11884
|
onChange: (S) => {
|
|
@@ -11895,8 +11895,8 @@ var fn = "Tooltip", [G$, vr] = pn(fn), dp = (e) => {
|
|
|
11895
11895
|
}, [h, y]);
|
|
11896
11896
|
return s.useEffect(() => () => {
|
|
11897
11897
|
f.current && (window.clearTimeout(f.current), f.current = 0);
|
|
11898
|
-
}, []), /* @__PURE__ */ d(
|
|
11899
|
-
|
|
11898
|
+
}, []), /* @__PURE__ */ d(A2, { ...c, children: /* @__PURE__ */ d(
|
|
11899
|
+
G2,
|
|
11900
11900
|
{
|
|
11901
11901
|
scope: n,
|
|
11902
11902
|
contentId: g,
|
|
@@ -11920,8 +11920,8 @@ var fn = "Tooltip", [G$, vr] = pn(fn), dp = (e) => {
|
|
|
11920
11920
|
dp.displayName = fn;
|
|
11921
11921
|
var To = "TooltipTrigger", fp = s.forwardRef(
|
|
11922
11922
|
(e, n) => {
|
|
11923
|
-
const { __scopeTooltip: r, ...o } = e, i = vr(To, r), t = di(To, r), a = dn(r), l = s.useRef(null), u =
|
|
11924
|
-
return s.useEffect(() => () => document.removeEventListener("pointerup", _), [_]), /* @__PURE__ */ d(
|
|
11923
|
+
const { __scopeTooltip: r, ...o } = e, i = vr(To, r), t = di(To, r), a = dn(r), l = s.useRef(null), u = ut(n, l, i.onTriggerChange), c = s.useRef(!1), p = s.useRef(!1), _ = s.useCallback(() => c.current = !1, []);
|
|
11924
|
+
return s.useEffect(() => () => document.removeEventListener("pointerup", _), [_]), /* @__PURE__ */ d(M2, { asChild: !0, ...a, children: /* @__PURE__ */ d(
|
|
11925
11925
|
Ze.button,
|
|
11926
11926
|
{
|
|
11927
11927
|
"aria-describedby": i.open ? i.contentId : void 0,
|
|
@@ -11947,24 +11947,24 @@ var To = "TooltipTrigger", fp = s.forwardRef(
|
|
|
11947
11947
|
}
|
|
11948
11948
|
);
|
|
11949
11949
|
fp.displayName = To;
|
|
11950
|
-
var fi = "TooltipPortal", [
|
|
11950
|
+
var fi = "TooltipPortal", [Z2, U2] = pn(fi, {
|
|
11951
11951
|
forceMount: void 0
|
|
11952
11952
|
}), gp = (e) => {
|
|
11953
11953
|
const { __scopeTooltip: n, forceMount: r, children: o, container: i } = e, t = vr(fi, n);
|
|
11954
|
-
return /* @__PURE__ */ d(
|
|
11954
|
+
return /* @__PURE__ */ d(Z2, { scope: n, forceMount: r, children: /* @__PURE__ */ d(pi, { present: r || t.open, children: /* @__PURE__ */ d(up, { asChild: !0, container: i, children: o }) }) });
|
|
11955
11955
|
};
|
|
11956
11956
|
gp.displayName = fi;
|
|
11957
11957
|
var At = "TooltipContent", _p = s.forwardRef(
|
|
11958
11958
|
(e, n) => {
|
|
11959
|
-
const r =
|
|
11960
|
-
return /* @__PURE__ */ d(pi, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ d(hp, { side: i, ...t, ref: n }) : /* @__PURE__ */ d(
|
|
11959
|
+
const r = U2(At, e.__scopeTooltip), { forceMount: o = r.forceMount, side: i = "top", ...t } = e, a = vr(At, e.__scopeTooltip);
|
|
11960
|
+
return /* @__PURE__ */ d(pi, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ d(hp, { side: i, ...t, ref: n }) : /* @__PURE__ */ d(X2, { side: i, ...t, ref: n }) });
|
|
11961
11961
|
}
|
|
11962
|
-
),
|
|
11963
|
-
const r = vr(At, e.__scopeTooltip), o = di(At, e.__scopeTooltip), i = s.useRef(null), t =
|
|
11962
|
+
), X2 = s.forwardRef((e, n) => {
|
|
11963
|
+
const r = vr(At, e.__scopeTooltip), o = di(At, e.__scopeTooltip), i = s.useRef(null), t = ut(n, i), [a, l] = s.useState(null), { trigger: u, onClose: c } = r, p = i.current, { onPointerInTransitChange: _ } = o, g = s.useCallback(() => {
|
|
11964
11964
|
l(null), _(!1);
|
|
11965
11965
|
}, [_]), f = s.useCallback(
|
|
11966
11966
|
(m, h) => {
|
|
11967
|
-
const v = m.currentTarget, w = { x: m.clientX, y: m.clientY }, y =
|
|
11967
|
+
const v = m.currentTarget, w = { x: m.clientX, y: m.clientY }, y = J2(w, v.getBoundingClientRect()), b = Q2(w, y), $ = e$(h.getBoundingClientRect()), x = r$([...b, ...$]);
|
|
11968
11968
|
l(x), _(!0);
|
|
11969
11969
|
},
|
|
11970
11970
|
[_]
|
|
@@ -11979,13 +11979,13 @@ var At = "TooltipContent", _p = s.forwardRef(
|
|
|
11979
11979
|
}, [u, p, f, g]), s.useEffect(() => {
|
|
11980
11980
|
if (a) {
|
|
11981
11981
|
const m = (h) => {
|
|
11982
|
-
const v = h.target, w = { x: h.clientX, y: h.clientY }, y = (u == null ? void 0 : u.contains(v)) || (p == null ? void 0 : p.contains(v)), b = !
|
|
11982
|
+
const v = h.target, w = { x: h.clientX, y: h.clientY }, y = (u == null ? void 0 : u.contains(v)) || (p == null ? void 0 : p.contains(v)), b = !t$(w, a);
|
|
11983
11983
|
y ? g() : b && (g(), c());
|
|
11984
11984
|
};
|
|
11985
11985
|
return document.addEventListener("pointermove", m), () => document.removeEventListener("pointermove", m);
|
|
11986
11986
|
}
|
|
11987
11987
|
}, [u, p, a, c, g]), /* @__PURE__ */ d(hp, { ...e, ref: t });
|
|
11988
|
-
}), [
|
|
11988
|
+
}), [Y2, K2] = pn(fn, { isInside: !1 }), hp = s.forwardRef(
|
|
11989
11989
|
(e, n) => {
|
|
11990
11990
|
const {
|
|
11991
11991
|
__scopeTooltip: r,
|
|
@@ -12013,7 +12013,7 @@ var At = "TooltipContent", _p = s.forwardRef(
|
|
|
12013
12013
|
onFocusOutside: (_) => _.preventDefault(),
|
|
12014
12014
|
onDismiss: p,
|
|
12015
12015
|
children: /* @__PURE__ */ C(
|
|
12016
|
-
|
|
12016
|
+
F2,
|
|
12017
12017
|
{
|
|
12018
12018
|
"data-state": u.stateAttribute,
|
|
12019
12019
|
...c,
|
|
@@ -12028,8 +12028,8 @@ var At = "TooltipContent", _p = s.forwardRef(
|
|
|
12028
12028
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
12029
12029
|
},
|
|
12030
12030
|
children: [
|
|
12031
|
-
/* @__PURE__ */ d(
|
|
12032
|
-
/* @__PURE__ */ d(
|
|
12031
|
+
/* @__PURE__ */ d(Ic, { children: o }),
|
|
12032
|
+
/* @__PURE__ */ d(Y2, { scope: r, isInside: !0, children: /* @__PURE__ */ d(H2, { id: u.contentId, role: "tooltip", children: i || o }) })
|
|
12033
12033
|
]
|
|
12034
12034
|
}
|
|
12035
12035
|
)
|
|
@@ -12041,14 +12041,14 @@ _p.displayName = At;
|
|
|
12041
12041
|
var mp = "TooltipArrow", vp = s.forwardRef(
|
|
12042
12042
|
(e, n) => {
|
|
12043
12043
|
const { __scopeTooltip: r, ...o } = e, i = dn(r);
|
|
12044
|
-
return
|
|
12044
|
+
return K2(
|
|
12045
12045
|
mp,
|
|
12046
12046
|
r
|
|
12047
|
-
).isInside ? null : /* @__PURE__ */ d(
|
|
12047
|
+
).isInside ? null : /* @__PURE__ */ d(D2, { ...i, ...o, ref: n });
|
|
12048
12048
|
}
|
|
12049
12049
|
);
|
|
12050
12050
|
vp.displayName = mp;
|
|
12051
|
-
function
|
|
12051
|
+
function J2(e, n) {
|
|
12052
12052
|
const r = Math.abs(n.top - e.y), o = Math.abs(n.bottom - e.y), i = Math.abs(n.right - e.x), t = Math.abs(n.left - e.x);
|
|
12053
12053
|
switch (Math.min(r, o, i, t)) {
|
|
12054
12054
|
case t:
|
|
@@ -12063,7 +12063,7 @@ function J$(e, n) {
|
|
|
12063
12063
|
throw new Error("unreachable");
|
|
12064
12064
|
}
|
|
12065
12065
|
}
|
|
12066
|
-
function
|
|
12066
|
+
function Q2(e, n, r = 5) {
|
|
12067
12067
|
const o = [];
|
|
12068
12068
|
switch (n) {
|
|
12069
12069
|
case "top":
|
|
@@ -12093,7 +12093,7 @@ function Q$(e, n, r = 5) {
|
|
|
12093
12093
|
}
|
|
12094
12094
|
return o;
|
|
12095
12095
|
}
|
|
12096
|
-
function
|
|
12096
|
+
function e$(e) {
|
|
12097
12097
|
const { top: n, right: r, bottom: o, left: i } = e;
|
|
12098
12098
|
return [
|
|
12099
12099
|
{ x: i, y: n },
|
|
@@ -12102,7 +12102,7 @@ function e2(e) {
|
|
|
12102
12102
|
{ x: i, y: o }
|
|
12103
12103
|
];
|
|
12104
12104
|
}
|
|
12105
|
-
function
|
|
12105
|
+
function t$(e, n) {
|
|
12106
12106
|
const { x: r, y: o } = e;
|
|
12107
12107
|
let i = !1;
|
|
12108
12108
|
for (let t = 0, a = n.length - 1; t < n.length; a = t++) {
|
|
@@ -12111,11 +12111,11 @@ function t2(e, n) {
|
|
|
12111
12111
|
}
|
|
12112
12112
|
return i;
|
|
12113
12113
|
}
|
|
12114
|
-
function
|
|
12114
|
+
function r$(e) {
|
|
12115
12115
|
const n = e.slice();
|
|
12116
|
-
return n.sort((r, o) => r.x < o.x ? -1 : r.x > o.x ? 1 : r.y < o.y ? -1 : r.y > o.y ? 1 : 0),
|
|
12116
|
+
return n.sort((r, o) => r.x < o.x ? -1 : r.x > o.x ? 1 : r.y < o.y ? -1 : r.y > o.y ? 1 : 0), n$(n);
|
|
12117
12117
|
}
|
|
12118
|
-
function
|
|
12118
|
+
function n$(e) {
|
|
12119
12119
|
if (e.length <= 1) return e.slice();
|
|
12120
12120
|
const n = [];
|
|
12121
12121
|
for (let o = 0; o < e.length; o++) {
|
|
@@ -12140,8 +12140,8 @@ function n2(e) {
|
|
|
12140
12140
|
}
|
|
12141
12141
|
return r.pop(), n.length === 1 && r.length === 1 && n[0].x === r[0].x && n[0].y === r[0].y ? n : n.concat(r);
|
|
12142
12142
|
}
|
|
12143
|
-
var
|
|
12144
|
-
function
|
|
12143
|
+
var o$ = pp, i$ = dp, a$ = fp, l$ = gp, u$ = _p, s$ = vp;
|
|
12144
|
+
function c$(e) {
|
|
12145
12145
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
12146
12146
|
}
|
|
12147
12147
|
var fu = { exports: {} };
|
|
@@ -12151,7 +12151,7 @@ var fu = { exports: {} };
|
|
|
12151
12151
|
http://jedwatson.github.io/classnames
|
|
12152
12152
|
*/
|
|
12153
12153
|
var gu;
|
|
12154
|
-
function
|
|
12154
|
+
function p$() {
|
|
12155
12155
|
return gu || (gu = 1, function(e) {
|
|
12156
12156
|
(function() {
|
|
12157
12157
|
var n = {}.hasOwnProperty;
|
|
@@ -12183,21 +12183,21 @@ function p2() {
|
|
|
12183
12183
|
})();
|
|
12184
12184
|
}(fu)), fu.exports;
|
|
12185
12185
|
}
|
|
12186
|
-
var
|
|
12187
|
-
const
|
|
12186
|
+
var d$ = p$();
|
|
12187
|
+
const f$ = /* @__PURE__ */ c$(d$), g$ = "_slideDownAndFade_fkagk_1", _$ = "_slideLeftAndFade_fkagk_1", h$ = "_slideUpAndFade_fkagk_1", m$ = "_slideRightAndFade_fkagk_1", v$ = {
|
|
12188
12188
|
"purpur-tooltip": "_purpur-tooltip_fkagk_1",
|
|
12189
12189
|
"purpur-tooltip__content": "_purpur-tooltip__content_fkagk_4",
|
|
12190
12190
|
"purpur-tooltip__content--primary": "_purpur-tooltip__content--primary_fkagk_14",
|
|
12191
12191
|
"purpur-tooltip__content--primary-negative": "_purpur-tooltip__content--primary-negative_fkagk_17",
|
|
12192
|
-
slideDownAndFade:
|
|
12193
|
-
slideLeftAndFade:
|
|
12194
|
-
slideUpAndFade:
|
|
12195
|
-
slideRightAndFade:
|
|
12192
|
+
slideDownAndFade: g$,
|
|
12193
|
+
slideLeftAndFade: _$,
|
|
12194
|
+
slideUpAndFade: h$,
|
|
12195
|
+
slideRightAndFade: m$,
|
|
12196
12196
|
"purpur-tooltip__arrow--primary": "_purpur-tooltip__arrow--primary_fkagk_32",
|
|
12197
12197
|
"purpur-tooltip__arrow--primary-negative": "_purpur-tooltip__arrow--primary-negative_fkagk_35"
|
|
12198
|
-
}, Jn =
|
|
12198
|
+
}, Jn = f$.bind(v$), w$ = {
|
|
12199
12199
|
TOP: "top"
|
|
12200
|
-
},
|
|
12200
|
+
}, y$ = {
|
|
12201
12201
|
CENTER: "center"
|
|
12202
12202
|
}, bt = "purpur-tooltip", gi = W(
|
|
12203
12203
|
({
|
|
@@ -12207,13 +12207,13 @@ const f2 = /* @__PURE__ */ c2(d2), g2 = "_slideDownAndFade_fkagk_1", _2 = "_slid
|
|
|
12207
12207
|
className: o,
|
|
12208
12208
|
contentClassName: i,
|
|
12209
12209
|
negative: t = !1,
|
|
12210
|
-
position: a =
|
|
12211
|
-
align: l =
|
|
12210
|
+
position: a = w$.TOP,
|
|
12211
|
+
align: l = y$.CENTER,
|
|
12212
12212
|
triggerAriaLabel: u,
|
|
12213
12213
|
triggerElement: c,
|
|
12214
12214
|
...p
|
|
12215
12215
|
}, _) => {
|
|
12216
|
-
const [g, f] =
|
|
12216
|
+
const [g, f] = I(!1), m = Jn([
|
|
12217
12217
|
o,
|
|
12218
12218
|
bt,
|
|
12219
12219
|
`${bt}--primary${t ? "-negative" : ""}`
|
|
@@ -12230,19 +12230,19 @@ const f2 = /* @__PURE__ */ c2(d2), g2 = "_slideDownAndFade_fkagk_1", _2 = "_slid
|
|
|
12230
12230
|
children: /* @__PURE__ */ d(Ac, { size: "md" })
|
|
12231
12231
|
}
|
|
12232
12232
|
);
|
|
12233
|
-
return /* @__PURE__ */ d("div", { "data-testid": e, className: m, children: /* @__PURE__ */ d(
|
|
12233
|
+
return /* @__PURE__ */ d("div", { "data-testid": e, className: m, children: /* @__PURE__ */ d(o$, { delayDuration: parseInt(ub), children: /* @__PURE__ */ C(i$, { open: g, onOpenChange: f, ...p, children: [
|
|
12234
12234
|
/* @__PURE__ */ d(
|
|
12235
|
-
|
|
12235
|
+
a$,
|
|
12236
12236
|
{
|
|
12237
12237
|
asChild: !0,
|
|
12238
12238
|
onClick: (v) => {
|
|
12239
12239
|
v.preventDefault(), f(!0);
|
|
12240
12240
|
},
|
|
12241
|
-
children:
|
|
12241
|
+
children: jp.count(c) === 0 ? h : c
|
|
12242
12242
|
}
|
|
12243
12243
|
),
|
|
12244
|
-
/* @__PURE__ */ d(
|
|
12245
|
-
|
|
12244
|
+
/* @__PURE__ */ d(l$, { children: /* @__PURE__ */ C(
|
|
12245
|
+
u$,
|
|
12246
12246
|
{
|
|
12247
12247
|
side: a,
|
|
12248
12248
|
align: l,
|
|
@@ -12264,7 +12264,7 @@ const f2 = /* @__PURE__ */ c2(d2), g2 = "_slideDownAndFade_fkagk_1", _2 = "_slid
|
|
|
12264
12264
|
}
|
|
12265
12265
|
) : r,
|
|
12266
12266
|
/* @__PURE__ */ d(
|
|
12267
|
-
|
|
12267
|
+
s$,
|
|
12268
12268
|
{
|
|
12269
12269
|
className: Jn([
|
|
12270
12270
|
`${bt}__arrow`,
|
|
@@ -12280,7 +12280,7 @@ const f2 = /* @__PURE__ */ c2(d2), g2 = "_slideDownAndFade_fkagk_1", _2 = "_slid
|
|
|
12280
12280
|
);
|
|
12281
12281
|
gi.displayName = "Tooltip";
|
|
12282
12282
|
const wp = () => {
|
|
12283
|
-
const [e, n] =
|
|
12283
|
+
const [e, n] = I(!1), r = ue(null);
|
|
12284
12284
|
return { showPopover: e, containerRef: r, onMouseEnter: () => {
|
|
12285
12285
|
if (r.current) {
|
|
12286
12286
|
const t = r.current.querySelector("a, p");
|
|
@@ -12292,9 +12292,9 @@ const wp = () => {
|
|
|
12292
12292
|
}, onMouseLeave: () => {
|
|
12293
12293
|
n(!1);
|
|
12294
12294
|
} };
|
|
12295
|
-
}, Qn =
|
|
12295
|
+
}, Qn = j.bind(G), b$ = ({ cell: e }) => {
|
|
12296
12296
|
const n = e.getValue(), { showPopover: r, containerRef: o, onMouseEnter: i, onMouseLeave: t } = wp();
|
|
12297
|
-
if (
|
|
12297
|
+
if (n == null || n === "")
|
|
12298
12298
|
return /* @__PURE__ */ d(ae, {});
|
|
12299
12299
|
const a = on(e.column.getSize()), l = /* @__PURE__ */ d(
|
|
12300
12300
|
"div",
|
|
@@ -12320,16 +12320,16 @@ const wp = () => {
|
|
|
12320
12320
|
children: n
|
|
12321
12321
|
}
|
|
12322
12322
|
);
|
|
12323
|
-
},
|
|
12323
|
+
}, $$ = ({ cell: e }) => {
|
|
12324
12324
|
var t;
|
|
12325
12325
|
const n = e.row.original[e.column.id];
|
|
12326
12326
|
if (n == null)
|
|
12327
12327
|
return /* @__PURE__ */ d(ae, {});
|
|
12328
12328
|
const r = (t = e.column.columnDef.meta) == null ? void 0 : t.onClick, { children: o, ...i } = n;
|
|
12329
12329
|
return /* @__PURE__ */ d(re, { type: "button", onClick: () => r == null ? void 0 : r(e), size: "sm", ...i, children: o });
|
|
12330
|
-
},
|
|
12330
|
+
}, x$ = j.bind(G), S$ = ({ cell: e }) => {
|
|
12331
12331
|
const n = e.row.original[e.column.id];
|
|
12332
|
-
return !n || !Array.isArray(n) || n.length === 0 ? /* @__PURE__ */ d(ae, {}) : /* @__PURE__ */ d("div", { className:
|
|
12332
|
+
return !n || !Array.isArray(n) || n.length === 0 ? /* @__PURE__ */ d(ae, {}) : /* @__PURE__ */ d("div", { className: x$("purpur-table-row-cell__button-group"), children: n.map((r, o) => {
|
|
12333
12333
|
const { icon: i, ariaLabel: t, variant: a, ...l } = r;
|
|
12334
12334
|
return /* @__PURE__ */ d(
|
|
12335
12335
|
re,
|
|
@@ -12352,7 +12352,7 @@ const wp = () => {
|
|
|
12352
12352
|
);
|
|
12353
12353
|
}) });
|
|
12354
12354
|
};
|
|
12355
|
-
function
|
|
12355
|
+
function C$(e) {
|
|
12356
12356
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
12357
12357
|
}
|
|
12358
12358
|
var _u = { exports: {} };
|
|
@@ -12362,7 +12362,7 @@ var _u = { exports: {} };
|
|
|
12362
12362
|
http://jedwatson.github.io/classnames
|
|
12363
12363
|
*/
|
|
12364
12364
|
var hu;
|
|
12365
|
-
function
|
|
12365
|
+
function R$() {
|
|
12366
12366
|
return hu || (hu = 1, function(e) {
|
|
12367
12367
|
(function() {
|
|
12368
12368
|
var n = {}.hasOwnProperty;
|
|
@@ -12394,8 +12394,8 @@ function R2() {
|
|
|
12394
12394
|
})();
|
|
12395
12395
|
}(_u)), _u.exports;
|
|
12396
12396
|
}
|
|
12397
|
-
var
|
|
12398
|
-
const
|
|
12397
|
+
var E$ = R$();
|
|
12398
|
+
const N$ = /* @__PURE__ */ C$(E$), P$ = {
|
|
12399
12399
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
12400
12400
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
12401
12401
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -12403,26 +12403,26 @@ const N2 = /* @__PURE__ */ C2(E2), P2 = {
|
|
|
12403
12403
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
12404
12404
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
12405
12405
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
12406
|
-
},
|
|
12406
|
+
}, k$ = N$.bind(P$), mu = "purpur-icon", O$ = "md", A$ = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), M$ = ({ content: e = "", title: n } = {}) => {
|
|
12407
12407
|
const r = [
|
|
12408
12408
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
12409
12409
|
{ name: "fill", value: "currentColor" },
|
|
12410
12410
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
12411
12411
|
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
12412
12412
|
], o = n ? `<title>${n}</title>` : "";
|
|
12413
|
-
return `<svg ${
|
|
12414
|
-
},
|
|
12413
|
+
return `<svg ${A$(r)}>${o}${e}</svg>`;
|
|
12414
|
+
}, F$ = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Lo = ({
|
|
12415
12415
|
["data-testid"]: e,
|
|
12416
12416
|
svg: n,
|
|
12417
12417
|
allyTitle: r,
|
|
12418
12418
|
className: o,
|
|
12419
|
-
size: i =
|
|
12419
|
+
size: i = O$,
|
|
12420
12420
|
...t
|
|
12421
12421
|
}) => {
|
|
12422
|
-
const a =
|
|
12423
|
-
content:
|
|
12422
|
+
const a = M$({
|
|
12423
|
+
content: F$(n.svg),
|
|
12424
12424
|
title: r
|
|
12425
|
-
}), l =
|
|
12425
|
+
}), l = k$(o, mu, `${mu}--${i}`);
|
|
12426
12426
|
return /* @__PURE__ */ d(
|
|
12427
12427
|
"span",
|
|
12428
12428
|
{
|
|
@@ -12434,28 +12434,28 @@ const N2 = /* @__PURE__ */ C2(E2), P2 = {
|
|
|
12434
12434
|
);
|
|
12435
12435
|
};
|
|
12436
12436
|
Lo.displayName = "Icon";
|
|
12437
|
-
const
|
|
12437
|
+
const D$ = {
|
|
12438
12438
|
name: "arrow-left",
|
|
12439
12439
|
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>',
|
|
12440
12440
|
keywords: ["arrow-left"],
|
|
12441
12441
|
category: "utility"
|
|
12442
|
-
},
|
|
12442
|
+
}, T$ = {
|
|
12443
12443
|
name: "arrow-right",
|
|
12444
12444
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M20.9 12a.9.9 0 0 1-.264.636l-5.5 5.5a.9.9 0 0 1-1.272-1.272l3.963-3.964H4a.9.9 0 0 1 0-1.8h13.827l-3.963-3.964a.9.9 0 1 1 1.272-1.272l5.5 5.5A.9.9 0 0 1 20.9 12Z" clip-rule="evenodd"/></svg>',
|
|
12445
12445
|
keywords: ["arrow-right"],
|
|
12446
12446
|
category: "utility"
|
|
12447
|
-
},
|
|
12447
|
+
}, L$ = {
|
|
12448
12448
|
name: "external",
|
|
12449
12449
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M15 3.4a.9.9 0 1 1 0-1.8h6.5a.9.9 0 0 1 .9.9V9a.9.9 0 1 1-1.8 0V4.673l-7.964 7.963a.9.9 0 1 1-1.272-1.272L19.327 3.4H15ZM1.6 5c0-1.05.85-1.9 1.9-1.9h6a.9.9 0 0 1 0 1.8h-6a.1.1 0 0 0-.1.1v15.5a.1.1 0 0 0 .1.1h16a.1.1 0 0 0 .1-.1V14a.9.9 0 1 1 1.8 0v6.5a1.9 1.9 0 0 1-1.9 1.9h-16a1.9 1.9 0 0 1-1.9-1.9V5Z" clip-rule="evenodd"/></svg>',
|
|
12450
12450
|
keywords: ["external"],
|
|
12451
12451
|
category: "media"
|
|
12452
|
-
},
|
|
12452
|
+
}, I$ = {
|
|
12453
12453
|
name: "phone",
|
|
12454
12454
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M5.341 2.228c.75-.622 1.73-.43 2.305.145l2.783 2.783a1.9 1.9 0 0 1 0 2.687L8.843 9.43a.1.1 0 0 0 0 .142l5.586 5.585a.1.1 0 0 0 .142 0l1.585-1.585a1.9 1.9 0 0 1 2.687 0l3.5 3.5c.343.342.698 1.023.31 1.742-.346.645-1.173 1.615-3.154 2.936-1.75 1.167-3.667 1.269-5.297.903-1.61-.361-3.015-1.192-3.839-2.016a.9.9 0 0 1 1.273-1.272c.573.572 1.669 1.242 2.96 1.532 1.27.285 2.656.188 3.905-.645 1.483-.989 2.137-1.68 2.418-2.06l-3.348-3.347a.1.1 0 0 0-.142 0l-1.586 1.585a1.9 1.9 0 0 1-2.687 0l-5.585-5.585a1.9 1.9 0 0 1 0-2.688l1.585-1.585a.1.1 0 0 0 0-.142L6.41 3.682c-.447.383-1.183 1.102-2.206 2.38-.878 1.097-1.14 2.08-1.127 2.951.013.898.323 1.758.732 2.59.24.488.733 1.079 1.551 1.88.561.549 1.227 1.152 2.002 1.854.344.312.71.644 1.098 1a.9.9 0 0 1-1.215 1.327c-.367-.336-.722-.658-1.061-.965a77.443 77.443 0 0 1-2.082-1.93c-.831-.813-1.523-1.586-1.909-2.372-.456-.93-.896-2.07-.916-3.356-.02-1.314.399-2.7 1.521-4.103 1.148-1.435 1.995-2.254 2.544-2.71Z" clip-rule="evenodd"/></svg>',
|
|
12455
12455
|
keywords: ["phone"],
|
|
12456
12456
|
category: "device"
|
|
12457
12457
|
};
|
|
12458
|
-
function
|
|
12458
|
+
function q$(e) {
|
|
12459
12459
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
12460
12460
|
}
|
|
12461
12461
|
var vu = { exports: {} };
|
|
@@ -12465,7 +12465,7 @@ var vu = { exports: {} };
|
|
|
12465
12465
|
http://jedwatson.github.io/classnames
|
|
12466
12466
|
*/
|
|
12467
12467
|
var wu;
|
|
12468
|
-
function
|
|
12468
|
+
function V$() {
|
|
12469
12469
|
return wu || (wu = 1, function(e) {
|
|
12470
12470
|
(function() {
|
|
12471
12471
|
var n = {}.hasOwnProperty;
|
|
@@ -12497,8 +12497,8 @@ function V2() {
|
|
|
12497
12497
|
})();
|
|
12498
12498
|
}(vu)), vu.exports;
|
|
12499
12499
|
}
|
|
12500
|
-
var
|
|
12501
|
-
const
|
|
12500
|
+
var j$ = V$();
|
|
12501
|
+
const z$ = /* @__PURE__ */ q$(j$), H$ = {
|
|
12502
12502
|
"purpur-cta-link": "_purpur-cta-link_1e75l_1",
|
|
12503
12503
|
"purpur-cta-link--xs": "_purpur-cta-link--xs_1e75l_33",
|
|
12504
12504
|
"purpur-cta-link--icon-only": "_purpur-cta-link--icon-only_1e75l_36",
|
|
@@ -12513,11 +12513,11 @@ const q2 = /* @__PURE__ */ I2(z2), H2 = {
|
|
|
12513
12513
|
"purpur-cta-link--secondary-negative": "_purpur-cta-link--secondary-negative_1e75l_93",
|
|
12514
12514
|
"purpur-cta-link--expressive": "_purpur-cta-link--expressive_1e75l_104",
|
|
12515
12515
|
"purpur-cta-link--expressive-negative": "_purpur-cta-link--expressive-negative_1e75l_114"
|
|
12516
|
-
},
|
|
12517
|
-
forward:
|
|
12518
|
-
external:
|
|
12519
|
-
back:
|
|
12520
|
-
phone:
|
|
12516
|
+
}, B$ = z$.bind(H$), $t = "purpur-cta-link", W$ = {
|
|
12517
|
+
forward: T$,
|
|
12518
|
+
external: L$,
|
|
12519
|
+
back: D$,
|
|
12520
|
+
phone: I$
|
|
12521
12521
|
}, yp = W(
|
|
12522
12522
|
({
|
|
12523
12523
|
children: e,
|
|
@@ -12532,7 +12532,7 @@ const q2 = /* @__PURE__ */ I2(z2), H2 = {
|
|
|
12532
12532
|
icon: c = "forward",
|
|
12533
12533
|
...p
|
|
12534
12534
|
}, _) => {
|
|
12535
|
-
const g =
|
|
12535
|
+
const g = B$(
|
|
12536
12536
|
[
|
|
12537
12537
|
n,
|
|
12538
12538
|
$t,
|
|
@@ -12544,7 +12544,7 @@ const q2 = /* @__PURE__ */ I2(z2), H2 = {
|
|
|
12544
12544
|
[`${$t}--negative`]: a,
|
|
12545
12545
|
[`${$t}--full-width`]: o
|
|
12546
12546
|
}
|
|
12547
|
-
), f =
|
|
12547
|
+
), f = W$[c], m = /* @__PURE__ */ C(z, { children: [
|
|
12548
12548
|
t && (c === "back" || c === "phone") && /* @__PURE__ */ d(Lo, { svg: f, size: l === "lg" ? "sm" : "xs" }),
|
|
12549
12549
|
(!i || i && !t) && e,
|
|
12550
12550
|
t && (c === "forward" || c === "external") && /* @__PURE__ */ d(Lo, { svg: f, size: l === "lg" ? "sm" : "xs" })
|
|
@@ -12557,50 +12557,50 @@ const q2 = /* @__PURE__ */ I2(z2), H2 = {
|
|
|
12557
12557
|
}
|
|
12558
12558
|
);
|
|
12559
12559
|
yp.displayName = "CtaLink";
|
|
12560
|
-
const
|
|
12560
|
+
const G$ = ({ cell: e }) => {
|
|
12561
12561
|
const n = e.getValue();
|
|
12562
12562
|
if (!n)
|
|
12563
12563
|
return /* @__PURE__ */ d(ae, {});
|
|
12564
12564
|
const { variant: r, children: o, ...i } = n;
|
|
12565
12565
|
return /* @__PURE__ */ d(yp, { variant: r, ...i, children: o });
|
|
12566
|
-
},
|
|
12566
|
+
}, Z$ = j.bind(G), U$ = ({ cell: e }) => {
|
|
12567
12567
|
var t;
|
|
12568
12568
|
const n = e.getValue();
|
|
12569
12569
|
if (!n)
|
|
12570
12570
|
return /* @__PURE__ */ d(ae, {});
|
|
12571
12571
|
(t = e.column.columnDef.meta) != null && t.showTime;
|
|
12572
12572
|
const r = new Date(n), o = r.toLocaleDateString("sv-SE"), i = r.toLocaleTimeString("sv-SE", { hour: "2-digit", minute: "2-digit" });
|
|
12573
|
-
return /* @__PURE__ */ C(se, { className:
|
|
12573
|
+
return /* @__PURE__ */ C(se, { className: Z$("purpur-table-row-cell__date"), children: [
|
|
12574
12574
|
o,
|
|
12575
12575
|
/* @__PURE__ */ d("span", { children: ` ${i}` })
|
|
12576
12576
|
] });
|
|
12577
|
-
},
|
|
12577
|
+
}, X$ = {
|
|
12578
12578
|
name: "error",
|
|
12579
12579
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M10.354 3.05c.732-1.267 2.56-1.267 3.291 0l8.66 15c.732 1.267-.182 2.85-1.645 2.85H3.34c-1.463 0-2.377-1.583-1.646-2.85l8.66-15Zm1.595.862a.092.092 0 0 0-.036.038l-8.66 15a.092.092 0 0 0-.015.05c0 .014.005.032.015.05a.11.11 0 0 0 .036.038.09.09 0 0 0 .05.012H20.66a.088.088 0 0 0 .05-.012.106.106 0 0 0 .037-.038.105.105 0 0 0 .015-.05.092.092 0 0 0-.015-.05l-8.66-15a.092.092 0 0 0-.036-.038A.106.106 0 0 0 12 3.9a.105.105 0 0 0-.05.012Z" clip-rule="evenodd"/><path d="m12.523 14.922.412-6.25a.936.936 0 1 0-1.868 0l.421 6.25h1.035ZM12 17.52c.44 0 .826-.387.826-.815 0-.418-.387-.816-.826-.816-.428 0-.825.398-.825.816 0 .428.397.815.825.815Z"/><path fill-rule="evenodd" d="M12.691 15.096h-1.37l-.431-6.53a1 1 0 0 1 .997-1.066h.227a1 1 0 0 1 .998 1.064l-.42 6.532Zm.244-6.425a.936.936 0 1 0-1.868.002l.421 6.249h1.035l.412-6.25ZM13 16.706c0 .526-.466.99-1 .99-.522 0-1-.463-1-.99 0-.264.125-.51.304-.689.18-.178.429-.301.696-.301.536 0 1 .475 1 .99Zm-.174 0c0 .428-.387.815-.826.815-.428 0-.825-.387-.825-.815 0-.418.397-.816.825-.816.44 0 .826.398.826.816Z" clip-rule="evenodd"/></svg>',
|
|
12580
12580
|
keywords: ["error"],
|
|
12581
12581
|
category: "status"
|
|
12582
|
-
}, bp = (e) => /* @__PURE__ */ d($e, { ...e, svg:
|
|
12582
|
+
}, bp = (e) => /* @__PURE__ */ d($e, { ...e, svg: X$ });
|
|
12583
12583
|
bp.displayName = "IconError";
|
|
12584
|
-
const
|
|
12584
|
+
const Y$ = j.bind(G), K$ = ({
|
|
12585
12585
|
cell: e
|
|
12586
12586
|
}) => {
|
|
12587
12587
|
const n = e.getValue();
|
|
12588
|
-
return n ? /* @__PURE__ */ C("div", { className:
|
|
12588
|
+
return n ? /* @__PURE__ */ C("div", { className: Y$("purpur-table-row-cell__error-message"), children: [
|
|
12589
12589
|
/* @__PURE__ */ d(bp, { "data-testid": "error-icon" }),
|
|
12590
12590
|
/* @__PURE__ */ d(se, { children: n })
|
|
12591
12591
|
] }) : /* @__PURE__ */ d(ae, {});
|
|
12592
|
-
},
|
|
12592
|
+
}, J$ = j.bind(G), Q$ = ({ cell: e }) => {
|
|
12593
12593
|
const n = e.getValue();
|
|
12594
12594
|
if (!n)
|
|
12595
12595
|
return /* @__PURE__ */ d(ae, {});
|
|
12596
12596
|
const { icon: r, text: o } = n;
|
|
12597
|
-
return /* @__PURE__ */ C("div", { className:
|
|
12597
|
+
return /* @__PURE__ */ C("div", { className: J$("purpur-table-row-cell__icon-text"), children: [
|
|
12598
12598
|
r,
|
|
12599
12599
|
o && o
|
|
12600
12600
|
] });
|
|
12601
12601
|
}, ex = ({ cell: e }) => {
|
|
12602
12602
|
const n = e.getValue();
|
|
12603
|
-
return n ? /* @__PURE__ */ d(se, { variant: "paragraph-100-bold", children: n })
|
|
12603
|
+
return n == null || n === "" ? /* @__PURE__ */ d(ae, {}) : /* @__PURE__ */ d(se, { variant: "paragraph-100-bold", children: n });
|
|
12604
12604
|
};
|
|
12605
12605
|
function tx(e) {
|
|
12606
12606
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -12705,7 +12705,7 @@ const ox = /* @__PURE__ */ tx(nx), ix = {
|
|
|
12705
12705
|
)
|
|
12706
12706
|
);
|
|
12707
12707
|
$p.displayName = "Link";
|
|
12708
|
-
const eo =
|
|
12708
|
+
const eo = j.bind(G), lx = ({ cell: e }) => {
|
|
12709
12709
|
const n = e.getValue(), { showPopover: r, containerRef: o, onMouseEnter: i, onMouseLeave: t } = wp();
|
|
12710
12710
|
if (!n)
|
|
12711
12711
|
return /* @__PURE__ */ d(ae, {});
|
|
@@ -12745,11 +12745,11 @@ const eo = z.bind(G), lx = ({ cell: e }) => {
|
|
|
12745
12745
|
children: a
|
|
12746
12746
|
}
|
|
12747
12747
|
);
|
|
12748
|
-
}, ux =
|
|
12748
|
+
}, ux = j.bind(G), sx = ({ cell: e }) => {
|
|
12749
12749
|
var o;
|
|
12750
12750
|
const n = e.getValue(), r = ((o = e.column.columnDef.meta) == null ? void 0 : o.numberCellAlignment) === "right";
|
|
12751
12751
|
return n ? /* @__PURE__ */ d(se, { className: ux({ "purpur-table-row-cell__right-align": r }), children: n }) : /* @__PURE__ */ d(ae, {});
|
|
12752
|
-
}, cx =
|
|
12752
|
+
}, cx = j.bind(G), px = ({ cell: e }) => {
|
|
12753
12753
|
var n, r;
|
|
12754
12754
|
return /* @__PURE__ */ d(
|
|
12755
12755
|
Wo,
|
|
@@ -12762,7 +12762,7 @@ const eo = z.bind(G), lx = ({ cell: e }) => {
|
|
|
12762
12762
|
"aria-label": (r = (n = e.column.columnDef.meta) == null ? void 0 : n.rowSelectionAriaLabels) == null ? void 0 : r.row
|
|
12763
12763
|
}
|
|
12764
12764
|
);
|
|
12765
|
-
}, dx =
|
|
12765
|
+
}, dx = j.bind(G), fx = ({ cell: e }) => {
|
|
12766
12766
|
var n, r;
|
|
12767
12767
|
return /* @__PURE__ */ d(
|
|
12768
12768
|
"input",
|
|
@@ -12787,7 +12787,7 @@ const eo = z.bind(G), lx = ({ cell: e }) => {
|
|
|
12787
12787
|
category: "status"
|
|
12788
12788
|
}, xp = (e) => /* @__PURE__ */ d($e, { ...e, svg: _x });
|
|
12789
12789
|
xp.displayName = "IconAlert";
|
|
12790
|
-
const hx =
|
|
12790
|
+
const hx = j.bind(G), mx = ({
|
|
12791
12791
|
cell: e
|
|
12792
12792
|
}) => {
|
|
12793
12793
|
const n = e.getValue();
|
|
@@ -12795,7 +12795,7 @@ const hx = z.bind(G), mx = ({
|
|
|
12795
12795
|
/* @__PURE__ */ d(xp, { "data-testid": "alert-icon" }),
|
|
12796
12796
|
/* @__PURE__ */ d(se, { children: n })
|
|
12797
12797
|
] }) : /* @__PURE__ */ d(ae, {});
|
|
12798
|
-
}, vx =
|
|
12798
|
+
}, vx = j.bind(G), rt = "purpur-table-row-cell", Sp = ({
|
|
12799
12799
|
className: e,
|
|
12800
12800
|
["data-testid"]: n,
|
|
12801
12801
|
cell: r,
|
|
@@ -12809,7 +12809,7 @@ const hx = z.bind(G), mx = ({
|
|
|
12809
12809
|
isLastCell: p
|
|
12810
12810
|
}) => {
|
|
12811
12811
|
var v;
|
|
12812
|
-
const [_, g] =
|
|
12812
|
+
const [_, g] = I(!1), f = ue(null);
|
|
12813
12813
|
le(() => {
|
|
12814
12814
|
const w = f.current;
|
|
12815
12815
|
if (!w)
|
|
@@ -12826,14 +12826,14 @@ const hx = z.bind(G), mx = ({
|
|
|
12826
12826
|
}, []);
|
|
12827
12827
|
const m = vx([
|
|
12828
12828
|
e,
|
|
12829
|
-
|
|
12829
|
+
rt,
|
|
12830
12830
|
{
|
|
12831
|
-
[`${
|
|
12832
|
-
[`${
|
|
12833
|
-
[`${
|
|
12834
|
-
[`${
|
|
12835
|
-
[`${
|
|
12836
|
-
[`${
|
|
12831
|
+
[`${rt}__sticky-column`]: o,
|
|
12832
|
+
[`${rt}__sticky-column__with-sticky-border`]: a && l,
|
|
12833
|
+
[`${rt}__border-radius-first-cell`]: c && u,
|
|
12834
|
+
[`${rt}__border-radius-last-cell`]: p && u,
|
|
12835
|
+
[`${rt}__last-row-first-cell-visible`]: ((r == null ? void 0 : r.column.getIsFirstColumn()) || c) && _ && u,
|
|
12836
|
+
[`${rt}__last-row-last-cell-visible`]: ((r == null ? void 0 : r.column.getIsLastColumn()) || p) && _ && u
|
|
12837
12837
|
}
|
|
12838
12838
|
]), h = r ? wx(r) : i;
|
|
12839
12839
|
return /* @__PURE__ */ d(
|
|
@@ -12854,19 +12854,19 @@ const hx = z.bind(G), mx = ({
|
|
|
12854
12854
|
case "badge":
|
|
12855
12855
|
return /* @__PURE__ */ d(ky, { cell: e });
|
|
12856
12856
|
case "bodyText":
|
|
12857
|
-
return /* @__PURE__ */ d(
|
|
12857
|
+
return /* @__PURE__ */ d(b$, { cell: e });
|
|
12858
12858
|
case "button":
|
|
12859
|
-
return /* @__PURE__ */ d(
|
|
12859
|
+
return /* @__PURE__ */ d($$, { cell: e });
|
|
12860
12860
|
case "buttonGroup":
|
|
12861
|
-
return /* @__PURE__ */ d(
|
|
12861
|
+
return /* @__PURE__ */ d(S$, { cell: e });
|
|
12862
12862
|
case "ctaLink":
|
|
12863
|
-
return /* @__PURE__ */ d(
|
|
12863
|
+
return /* @__PURE__ */ d(G$, { cell: e });
|
|
12864
12864
|
case "date":
|
|
12865
|
-
return /* @__PURE__ */ d(
|
|
12865
|
+
return /* @__PURE__ */ d(U$, { cell: e });
|
|
12866
12866
|
case "errorAlertMessage":
|
|
12867
|
-
return /* @__PURE__ */ d(
|
|
12867
|
+
return /* @__PURE__ */ d(K$, { cell: e });
|
|
12868
12868
|
case "iconText":
|
|
12869
|
-
return /* @__PURE__ */ d(
|
|
12869
|
+
return /* @__PURE__ */ d(Q$, { cell: e });
|
|
12870
12870
|
case "leadText":
|
|
12871
12871
|
return /* @__PURE__ */ d(ex, { cell: e });
|
|
12872
12872
|
case "link":
|
|
@@ -12956,7 +12956,7 @@ const xx = /* @__PURE__ */ yx($x), Sx = "_loading_93tal_1", to = {
|
|
|
12956
12956
|
return /* @__PURE__ */ d("div", { className: a, style: o, "data-testid": n, ...t });
|
|
12957
12957
|
};
|
|
12958
12958
|
Cp.displayName = "Skeleton";
|
|
12959
|
-
const Su =
|
|
12959
|
+
const Su = j.bind(G), Ie = "purpur-table-row-cell", Cx = ({
|
|
12960
12960
|
isLastRow: e,
|
|
12961
12961
|
isFirstCell: n,
|
|
12962
12962
|
isLastCell: r,
|
|
@@ -12966,14 +12966,14 @@ const Su = z.bind(G), je = "purpur-table-row-cell", Cx = ({
|
|
|
12966
12966
|
cellWidth: a
|
|
12967
12967
|
}) => {
|
|
12968
12968
|
const l = Su([
|
|
12969
|
-
|
|
12969
|
+
Ie,
|
|
12970
12970
|
{
|
|
12971
|
-
[`${
|
|
12972
|
-
[`${
|
|
12973
|
-
[`${
|
|
12974
|
-
[`${
|
|
12975
|
-
[`${
|
|
12976
|
-
[`${
|
|
12971
|
+
[`${Ie}__sticky-column`]: o,
|
|
12972
|
+
[`${Ie}__sticky-column__with-sticky-border`]: i && t,
|
|
12973
|
+
[`${Ie}__border-radius-first-cell`]: n && e,
|
|
12974
|
+
[`${Ie}__border-radius-last-cell`]: r && e,
|
|
12975
|
+
[`${Ie}__last-row-first-cell-visible`]: n && e,
|
|
12976
|
+
[`${Ie}__last-row-last-cell-visible`]: r && e
|
|
12977
12977
|
}
|
|
12978
12978
|
]), u = typeof a == "string" ? a : on(a);
|
|
12979
12979
|
return /* @__PURE__ */ d(
|
|
@@ -12988,7 +12988,7 @@ const Su = z.bind(G), je = "purpur-table-row-cell", Cx = ({
|
|
|
12988
12988
|
Cp,
|
|
12989
12989
|
{
|
|
12990
12990
|
"data-testid": "purpur-table-cell-skeleton",
|
|
12991
|
-
className: Su(`${
|
|
12991
|
+
className: Su(`${Ie}__skeleton`)
|
|
12992
12992
|
}
|
|
12993
12993
|
)
|
|
12994
12994
|
}
|
|
@@ -13006,7 +13006,7 @@ const Ex = {
|
|
|
13006
13006
|
"purpur-table-settings-drawer__visible-columns": "_purpur-table-settings-drawer__visible-columns_spgbp_8",
|
|
13007
13007
|
"purpur-table-settings-drawer__button-group": "_purpur-table-settings-drawer__button-group_spgbp_15",
|
|
13008
13008
|
"purpur-table-settings-drawer__toggle": "_purpur-table-settings-drawer__toggle_spgbp_18"
|
|
13009
|
-
}, wr = "purpur-table-settings-drawer", yr =
|
|
13009
|
+
}, wr = "purpur-table-settings-drawer", yr = j.bind(Ex), Mt = "purpur-table-settings-drawer", Nx = ({
|
|
13010
13010
|
id: e,
|
|
13011
13011
|
columnFiltersEnabled: n,
|
|
13012
13012
|
copy: r,
|
|
@@ -13023,8 +13023,8 @@ const Ex = {
|
|
|
13023
13023
|
enableRowSelection: f,
|
|
13024
13024
|
rowSelectionEnabled: m,
|
|
13025
13025
|
setRowSelectionEnabled: h
|
|
13026
|
-
}) => /* @__PURE__ */ d("div", { id: e, children: /* @__PURE__ */ d(
|
|
13027
|
-
|
|
13026
|
+
}) => /* @__PURE__ */ d("div", { id: e, children: /* @__PURE__ */ d(ot, { "data-testid": Mt, open: o, onOpenChange: c, children: /* @__PURE__ */ d(
|
|
13027
|
+
ot.Content,
|
|
13028
13028
|
{
|
|
13029
13029
|
"data-testid": `${Mt}-content`,
|
|
13030
13030
|
zIndex: 6,
|
|
@@ -13188,7 +13188,7 @@ Pp.displayName = "IconSettings";
|
|
|
13188
13188
|
const Dx = {
|
|
13189
13189
|
"purpur-table-toolbar": "_purpur-table-toolbar_8vziu_1",
|
|
13190
13190
|
"purpur-table-toolbar__content": "_purpur-table-toolbar__content_8vziu_12"
|
|
13191
|
-
}, no = "purpur-table-toolbar", oo =
|
|
13191
|
+
}, no = "purpur-table-toolbar", oo = j.bind(Dx), St = "purpur-table-toolbar", Tx = ({
|
|
13192
13192
|
["aria-controls"]: e,
|
|
13193
13193
|
settingsDrawerAriaControls: n,
|
|
13194
13194
|
exportDrawerAriaControls: r,
|
|
@@ -13280,13 +13280,13 @@ const Dx = {
|
|
|
13280
13280
|
}, Lx = (e, n, r) => {
|
|
13281
13281
|
const { filterKey: o, value: i } = r, t = e.getValue(n);
|
|
13282
13282
|
return i === "" || t[o] === i;
|
|
13283
|
-
},
|
|
13283
|
+
}, Ix = (e, n, r) => {
|
|
13284
13284
|
const o = n.getValue(r);
|
|
13285
13285
|
return e.getValue(r).variant.localeCompare(o.variant);
|
|
13286
|
-
},
|
|
13286
|
+
}, qx = (e, n, r) => {
|
|
13287
13287
|
const o = n.getValue(r), i = e.getValue(r), t = o.children;
|
|
13288
13288
|
return i.children.localeCompare(t);
|
|
13289
|
-
}, Pt =
|
|
13289
|
+
}, Pt = j.bind(G), ve = "purpur-table", Vx = ({
|
|
13290
13290
|
actionbarCopy: e,
|
|
13291
13291
|
actionBarTotalRowCount: n,
|
|
13292
13292
|
className: r,
|
|
@@ -13320,9 +13320,9 @@ const Dx = {
|
|
|
13320
13320
|
setShowOnlySelectedRows: T,
|
|
13321
13321
|
...M
|
|
13322
13322
|
}) => {
|
|
13323
|
-
const [Z, F] =
|
|
13323
|
+
const [Z, F] = I(0), [H, q] = I(!1), [st, It] = I(!1), [br, Ue] = I(!1), [pe, qt] = I(
|
|
13324
13324
|
!!M.enableFilters
|
|
13325
|
-
), [
|
|
13325
|
+
), [Xe, ct] = I(!0), [$r, xr] = I(!0), pt = ue(w), [Ye, gn] = I(!1), me = ue(null), De = Ft(), [Vt, _n] = I(!0), hn = Pt([
|
|
13326
13326
|
r,
|
|
13327
13327
|
ve,
|
|
13328
13328
|
{
|
|
@@ -13352,7 +13352,7 @@ const Dx = {
|
|
|
13352
13352
|
},
|
|
13353
13353
|
...o
|
|
13354
13354
|
]);
|
|
13355
|
-
const { filterFns: mn, sortingFns: dt, ...kp } = M, B =
|
|
13355
|
+
const { filterFns: mn, sortingFns: dt, ...kp } = M, B = Id({
|
|
13356
13356
|
columns: o,
|
|
13357
13357
|
data: i,
|
|
13358
13358
|
state: $,
|
|
@@ -13364,8 +13364,8 @@ const Dx = {
|
|
|
13364
13364
|
},
|
|
13365
13365
|
sortingFns: {
|
|
13366
13366
|
...dt,
|
|
13367
|
-
sortOnBadgeVariant:
|
|
13368
|
-
sortOnBadgeValue:
|
|
13367
|
+
sortOnBadgeVariant: Ix,
|
|
13368
|
+
sortOnBadgeValue: qx
|
|
13369
13369
|
},
|
|
13370
13370
|
getCoreRowModel: Ed(),
|
|
13371
13371
|
getSortedRowModel: M.enableSorting && !M.manualSorting ? Fd() : void 0,
|
|
@@ -13376,8 +13376,8 @@ const Dx = {
|
|
|
13376
13376
|
le(() => {
|
|
13377
13377
|
const L = () => {
|
|
13378
13378
|
if (me.current) {
|
|
13379
|
-
const
|
|
13380
|
-
gn(
|
|
13379
|
+
const Ke = me.current.scrollLeft;
|
|
13380
|
+
gn(Ke > 0);
|
|
13381
13381
|
}
|
|
13382
13382
|
}, Se = me.current;
|
|
13383
13383
|
return Se && Se.addEventListener("scroll", L), () => {
|
|
@@ -13390,7 +13390,7 @@ const Dx = {
|
|
|
13390
13390
|
}, [$, k, B]), le(() => {
|
|
13391
13391
|
if ($ != null && $.rowSelection) {
|
|
13392
13392
|
const L = Object.keys($.rowSelection).length;
|
|
13393
|
-
F(L),
|
|
13393
|
+
F(L), q(L > 0);
|
|
13394
13394
|
}
|
|
13395
13395
|
}, [$ == null ? void 0 : $.rowSelection]);
|
|
13396
13396
|
const Op = () => {
|
|
@@ -13404,19 +13404,19 @@ const Dx = {
|
|
|
13404
13404
|
}, _i = (L) => {
|
|
13405
13405
|
E == null || E(L);
|
|
13406
13406
|
}, Dp = () => {
|
|
13407
|
-
|
|
13408
|
-
}, vn = (L) => Xe && Sr(L), wn = B.getRowModel().rows, yn = wn.length === 0 && !!t, Tp = f && y ? /* @__PURE__ */ d(
|
|
13409
|
-
|
|
13407
|
+
qt(!0), ct(!0), xr(!0), B.resetColumnVisibility();
|
|
13408
|
+
}, vn = (L) => Ye && Xe && Sr(L), wn = B.getRowModel().rows, yn = wn.length === 0 && !!t, Tp = f && y ? /* @__PURE__ */ d(
|
|
13409
|
+
zx,
|
|
13410
13410
|
{
|
|
13411
13411
|
rowCount: y,
|
|
13412
13412
|
getStickyColumn: Sr,
|
|
13413
|
-
stickyFirstColumn:
|
|
13414
|
-
isScrolled:
|
|
13413
|
+
stickyFirstColumn: Xe,
|
|
13414
|
+
isScrolled: Ye,
|
|
13415
13415
|
cellWidths: B.getAllColumns().map((L) => L.getSize() || "100%"),
|
|
13416
13416
|
showBorder: vn
|
|
13417
13417
|
}
|
|
13418
13418
|
) : yn && t && a ? /* @__PURE__ */ d(
|
|
13419
|
-
|
|
13419
|
+
jx,
|
|
13420
13420
|
{
|
|
13421
13421
|
variant: S,
|
|
13422
13422
|
tag: a,
|
|
@@ -13425,18 +13425,18 @@ const Dx = {
|
|
|
13425
13425
|
colSpan: B.getVisibleLeafColumns().length,
|
|
13426
13426
|
icon: l
|
|
13427
13427
|
}
|
|
13428
|
-
) : wn.map((L, Se) => /* @__PURE__ */ d(Yr, { isSelected: L.getIsSelected(), children: L.getVisibleCells().map((
|
|
13428
|
+
) : wn.map((L, Se) => /* @__PURE__ */ d(Yr, { isSelected: L.getIsSelected(), children: L.getVisibleCells().map((Ke, Cr) => /* @__PURE__ */ d(
|
|
13429
13429
|
Sp,
|
|
13430
13430
|
{
|
|
13431
|
-
cell:
|
|
13431
|
+
cell: Ke,
|
|
13432
13432
|
isLastRow: Se === wn.length - 1,
|
|
13433
13433
|
isFirstCell: Cr === 0,
|
|
13434
13434
|
isLastCell: Cr === L.getVisibleCells().length - 1,
|
|
13435
|
-
stickyColumn:
|
|
13436
|
-
isScrolled:
|
|
13435
|
+
stickyColumn: Xe && Sr(Cr),
|
|
13436
|
+
isScrolled: Ye,
|
|
13437
13437
|
showBorder: vn(Cr)
|
|
13438
13438
|
},
|
|
13439
|
-
|
|
13439
|
+
Ke.id
|
|
13440
13440
|
)) }, L.id));
|
|
13441
13441
|
return /* @__PURE__ */ C("div", { id: `${De}-table`, className: hn, children: [
|
|
13442
13442
|
c && /* @__PURE__ */ d(
|
|
@@ -13445,14 +13445,14 @@ const Dx = {
|
|
|
13445
13445
|
"aria-controls": `${De}-table`,
|
|
13446
13446
|
settingsDrawerAriaControls: `${De}-settings-drawer`,
|
|
13447
13447
|
exportDrawerAriaControls: `${De}-export-drawer`,
|
|
13448
|
-
onSetDrawerIsOpen:
|
|
13448
|
+
onSetDrawerIsOpen: It,
|
|
13449
13449
|
onResetColumnFilters: Mp,
|
|
13450
13450
|
onToggleExpand: D,
|
|
13451
13451
|
onExportData: Fp,
|
|
13452
13452
|
totalRowCount: R ?? B.getRowCount(),
|
|
13453
13453
|
visibleRowCount: B.getRowModel().rows.length,
|
|
13454
13454
|
toolbarCopy: x,
|
|
13455
|
-
isSettingsDrawerOpen:
|
|
13455
|
+
isSettingsDrawerOpen: st,
|
|
13456
13456
|
hasExportsDrawer: Array.isArray(_),
|
|
13457
13457
|
isExportDrawerOpen: br,
|
|
13458
13458
|
showFilters: pe,
|
|
@@ -13463,7 +13463,7 @@ const Dx = {
|
|
|
13463
13463
|
"div",
|
|
13464
13464
|
{
|
|
13465
13465
|
className: Pt(`${ve}__container`, {
|
|
13466
|
-
[`${ve}__container--scrolled`]:
|
|
13466
|
+
[`${ve}__container--scrolled`]: Ye
|
|
13467
13467
|
}),
|
|
13468
13468
|
ref: me,
|
|
13469
13469
|
children: /* @__PURE__ */ C(
|
|
@@ -13474,15 +13474,15 @@ const Dx = {
|
|
|
13474
13474
|
{ [`${ve}__table--full-width`]: g }
|
|
13475
13475
|
]),
|
|
13476
13476
|
children: [
|
|
13477
|
-
/* @__PURE__ */ d(iy, { columnFiltersEnabled: pe, children: B.getHeaderGroups().map((L) => /* @__PURE__ */ d(Yr, { children: L.headers.map((Se,
|
|
13477
|
+
/* @__PURE__ */ d(iy, { columnFiltersEnabled: pe, children: B.getHeaderGroups().map((L) => /* @__PURE__ */ d(Yr, { children: L.headers.map((Se, Ke) => /* @__PURE__ */ d(
|
|
13478
13478
|
Hv,
|
|
13479
13479
|
{
|
|
13480
13480
|
header: Se,
|
|
13481
13481
|
tanstackTable: B,
|
|
13482
|
-
stickyColumn: !yn &&
|
|
13482
|
+
stickyColumn: !yn && Xe && Sr(Ke),
|
|
13483
13483
|
stickyHeaders: !yn && $r,
|
|
13484
|
-
isScrolled:
|
|
13485
|
-
showBorder: vn(
|
|
13484
|
+
isScrolled: Ye,
|
|
13485
|
+
showBorder: vn(Ke),
|
|
13486
13486
|
...M.enableSorting && b ? { enableSorting: M.enableSorting, sortingAriaLabels: b } : { enableSorting: !1 }
|
|
13487
13487
|
},
|
|
13488
13488
|
Se.id
|
|
@@ -13511,14 +13511,14 @@ const Dx = {
|
|
|
13511
13511
|
Nx,
|
|
13512
13512
|
{
|
|
13513
13513
|
id: `${De}-settings-drawer`,
|
|
13514
|
-
setDrawerIsOpen:
|
|
13515
|
-
setShowColumnFiltersEnabled:
|
|
13514
|
+
setDrawerIsOpen: It,
|
|
13515
|
+
setShowColumnFiltersEnabled: qt,
|
|
13516
13516
|
setStickyFirstColumn: ct,
|
|
13517
13517
|
setStickyHeaders: xr,
|
|
13518
13518
|
getAllColumns: B.getAllColumns,
|
|
13519
|
-
isDrawerOpen:
|
|
13519
|
+
isDrawerOpen: st,
|
|
13520
13520
|
showColumnFilters: pe,
|
|
13521
|
-
stickyFirstColumn:
|
|
13521
|
+
stickyFirstColumn: Xe,
|
|
13522
13522
|
stickyHeaders: $r,
|
|
13523
13523
|
copy: v,
|
|
13524
13524
|
onResetSettings: Dp,
|
|
@@ -13542,7 +13542,7 @@ const Dx = {
|
|
|
13542
13542
|
] });
|
|
13543
13543
|
};
|
|
13544
13544
|
Vx.displayName = "Table";
|
|
13545
|
-
const
|
|
13545
|
+
const jx = ({ variant: e, tag: n, title: r, description: o, colSpan: i, icon: t }) => /* @__PURE__ */ d(Yr, { children: /* @__PURE__ */ d(Sp, { colSpan: i, isLastRow: !0, isFirstCell: !0, isLastCell: !0, children: /* @__PURE__ */ C(
|
|
13546
13546
|
"div",
|
|
13547
13547
|
{
|
|
13548
13548
|
className: Pt([
|
|
@@ -13557,14 +13557,14 @@ const zx = ({ variant: e, tag: n, title: r, description: o, colSpan: i, icon: t
|
|
|
13557
13557
|
] })
|
|
13558
13558
|
]
|
|
13559
13559
|
}
|
|
13560
|
-
) }) }),
|
|
13560
|
+
) }) }), zx = ({
|
|
13561
13561
|
rowCount: e,
|
|
13562
13562
|
getStickyColumn: n,
|
|
13563
13563
|
stickyFirstColumn: r,
|
|
13564
13564
|
isScrolled: o,
|
|
13565
13565
|
cellWidths: i,
|
|
13566
13566
|
showBorder: t
|
|
13567
|
-
}) => /* @__PURE__ */ d(
|
|
13567
|
+
}) => /* @__PURE__ */ d(z, { children: Array.from({ length: e }, (a, l) => l).map((a, l) => /* @__PURE__ */ d(Yr, { children: i.map((u, c) => /* @__PURE__ */ d(
|
|
13568
13568
|
Cx,
|
|
13569
13569
|
{
|
|
13570
13570
|
isLastRow: l === e - 1,
|