@abdellatifui/react 3.2.13 → 3.2.14
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/nextgen.js +89 -89
- package/package.json +1 -1
package/dist/nextgen.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as R from "react";
|
|
2
|
-
import Wt, { useContext as nt, useState as I, useRef as ie, useEffect as K, forwardRef as de, useCallback as
|
|
2
|
+
import Wt, { useContext as nt, useState as I, useRef as ie, useEffect as K, forwardRef as de, useCallback as ae, memo as he, createContext as En, useImperativeHandle as Nt, useMemo as ue, useLayoutEffect as To, isValidElement as io, cloneElement as ao, Children as kd } from "react";
|
|
3
3
|
import * as Mr from "@radix-ui/react-tooltip";
|
|
4
4
|
import * as st from "@radix-ui/react-alert-dialog";
|
|
5
5
|
import { Slot as Ed } from "@radix-ui/react-slot";
|
|
@@ -647,7 +647,7 @@ const kf = (e, n) => {
|
|
|
647
647
|
y,
|
|
648
648
|
oe,
|
|
649
649
|
re
|
|
650
|
-
], ee = () => ["none", fe, oe, re], te = () => ["none", fe, oe, re],
|
|
650
|
+
], ee = () => ["none", fe, oe, re], te = () => ["none", fe, oe, re], le = () => [fe, oe, re], J = () => [In, "full", ...A()];
|
|
651
651
|
return {
|
|
652
652
|
cacheSize: 500,
|
|
653
653
|
theme: {
|
|
@@ -2655,21 +2655,21 @@ const kf = (e, n) => {
|
|
|
2655
2655
|
* @see https://tailwindcss.com/docs/skew
|
|
2656
2656
|
*/
|
|
2657
2657
|
skew: [{
|
|
2658
|
-
skew:
|
|
2658
|
+
skew: le()
|
|
2659
2659
|
}],
|
|
2660
2660
|
/**
|
|
2661
2661
|
* Skew X
|
|
2662
2662
|
* @see https://tailwindcss.com/docs/skew
|
|
2663
2663
|
*/
|
|
2664
2664
|
"skew-x": [{
|
|
2665
|
-
"skew-x":
|
|
2665
|
+
"skew-x": le()
|
|
2666
2666
|
}],
|
|
2667
2667
|
/**
|
|
2668
2668
|
* Skew Y
|
|
2669
2669
|
* @see https://tailwindcss.com/docs/skew
|
|
2670
2670
|
*/
|
|
2671
2671
|
"skew-y": [{
|
|
2672
|
-
"skew-y":
|
|
2672
|
+
"skew-y": le()
|
|
2673
2673
|
}],
|
|
2674
2674
|
/**
|
|
2675
2675
|
* Transform
|
|
@@ -5941,10 +5941,10 @@ const am = de((e, n) => {
|
|
|
5941
5941
|
}, [f]), K(() => {
|
|
5942
5942
|
w || (o && k(o), E(!0)), s && k(s);
|
|
5943
5943
|
}, [o, s]);
|
|
5944
|
-
const F =
|
|
5944
|
+
const F = ae((j, _) => {
|
|
5945
5945
|
const H = j || _;
|
|
5946
5946
|
s || k(H), C.props = e, r(C, H, _);
|
|
5947
|
-
}, [t]), b =
|
|
5947
|
+
}, [t]), b = ae(() => {
|
|
5948
5948
|
x && setTimeout(() => {
|
|
5949
5949
|
const j = "_" + btoa(x).replaceAll("=", ""), _ = Oe("." + j).get(0);
|
|
5950
5950
|
_ && _.scrollIntoView({ behavior: "smooth", block: "center", inline: "nearest" });
|
|
@@ -6278,9 +6278,9 @@ const pi = En({}), Sm = ye(
|
|
|
6278
6278
|
hideOnContextMenu: m,
|
|
6279
6279
|
onBodyClick: g,
|
|
6280
6280
|
blur: y = !1
|
|
6281
|
-
} = e, d =
|
|
6281
|
+
} = e, d = ae(() => {
|
|
6282
6282
|
r(!1), i(null);
|
|
6283
|
-
}, []), C =
|
|
6283
|
+
}, []), C = ae(() => {
|
|
6284
6284
|
r(!0);
|
|
6285
6285
|
}, []);
|
|
6286
6286
|
Nt(n, () => ({
|
|
@@ -6369,13 +6369,13 @@ const pi = En({}), Sm = ye(
|
|
|
6369
6369
|
modelProps: v = {
|
|
6370
6370
|
bodyClick: !0
|
|
6371
6371
|
}
|
|
6372
|
-
} = e, S = ue(() => y || null, [y]), N =
|
|
6372
|
+
} = e, S = ue(() => y || null, [y]), N = ae(() => {
|
|
6373
6373
|
i.current?.open(), setTimeout(() => {
|
|
6374
6374
|
r(!0);
|
|
6375
6375
|
}, 50);
|
|
6376
|
-
}, []), A =
|
|
6376
|
+
}, []), A = ae(() => {
|
|
6377
6377
|
i.current?.close(), r(!1);
|
|
6378
|
-
}, []), P =
|
|
6378
|
+
}, []), P = ae(() => {
|
|
6379
6379
|
t ? i.current?.close() : i.current?.open(), window.setTimeout(() => {
|
|
6380
6380
|
r((b) => !b);
|
|
6381
6381
|
}, 50);
|
|
@@ -6411,7 +6411,7 @@ const pi = En({}), Sm = ye(
|
|
|
6411
6411
|
const B = ue(() => ({
|
|
6412
6412
|
...v,
|
|
6413
6413
|
bodyClick: v?.bodyClick ?? !0
|
|
6414
|
-
}), [v]), F =
|
|
6414
|
+
}), [v]), F = ae((b) => {
|
|
6415
6415
|
A(), v?.onBodyClick?.(b);
|
|
6416
6416
|
}, [A, v]);
|
|
6417
6417
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -7259,7 +7259,7 @@ const Qm = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAA1CAYAAADh5qNwAA
|
|
|
7259
7259
|
const L = d?.nodes?.find((O) => O?.elementId == o?.elementId);
|
|
7260
7260
|
F(L ? 1 : 0.7);
|
|
7261
7261
|
}, [d]);
|
|
7262
|
-
const H =
|
|
7262
|
+
const H = ae((L) => {
|
|
7263
7263
|
P(L);
|
|
7264
7264
|
}, [o]);
|
|
7265
7265
|
Nt(k, () => ({
|
|
@@ -7832,7 +7832,7 @@ const uh = (e) => {
|
|
|
7832
7832
|
try {
|
|
7833
7833
|
const S = t?.current;
|
|
7834
7834
|
if (!S || !n?.source || !n?.destination) return null;
|
|
7835
|
-
const N = S.project([n?.source?.lng, n?.source?.lat]), A = S.project([n?.destination?.lng, n?.destination?.lat]), P = A?.x - N?.x, B = A?.y - N?.y, F = Math.hypot(P, B) || 1, b = P / F, j = B / F, _ = -j, H = b, D = n?.source?.markerSize ? n?.source?.markerSize / 2 : 12, L = F, O = { along: 100, perpendicular: 0 }, X = n?.sourcePortOffset || {}, $ = typeof X?.along == "number" ? X.along : O.along, T = typeof X?.perpendicular == "number" ? X.perpendicular : O.perpendicular, M = D + $, Y = Math.min(Math.max(M, D + 4), L * 0.6), q = T, Z = _ * q + b * Y, se = H * q + j * Y, U = N?.x + Z, W = N?.y + se, ee = S.unproject([U, W]), te = Math.atan2(j, b) * 180 / Math.PI,
|
|
7835
|
+
const N = S.project([n?.source?.lng, n?.source?.lat]), A = S.project([n?.destination?.lng, n?.destination?.lat]), P = A?.x - N?.x, B = A?.y - N?.y, F = Math.hypot(P, B) || 1, b = P / F, j = B / F, _ = -j, H = b, D = n?.source?.markerSize ? n?.source?.markerSize / 2 : 12, L = F, O = { along: 100, perpendicular: 0 }, X = n?.sourcePortOffset || {}, $ = typeof X?.along == "number" ? X.along : O.along, T = typeof X?.perpendicular == "number" ? X.perpendicular : O.perpendicular, M = D + $, Y = Math.min(Math.max(M, D + 4), L * 0.6), q = T, Z = _ * q + b * Y, se = H * q + j * Y, U = N?.x + Z, W = N?.y + se, ee = S.unproject([U, W]), te = Math.atan2(j, b) * 180 / Math.PI, le = (te + 360) % 360, je = le > 90 && le < 270 ? te + 180 : te;
|
|
7836
7836
|
return { position: { lng: ee?.lng, lat: ee?.lat }, rotation: je };
|
|
7837
7837
|
} catch {
|
|
7838
7838
|
return null;
|
|
@@ -7841,7 +7841,7 @@ const uh = (e) => {
|
|
|
7841
7841
|
try {
|
|
7842
7842
|
const S = t?.current;
|
|
7843
7843
|
if (!S || !n?.source || !n?.destination) return null;
|
|
7844
|
-
const N = S.project([n?.source?.lng, n?.source?.lat]), A = S.project([n?.destination?.lng, n?.destination?.lat]), P = N?.x - A?.x, B = N?.y - A?.y, F = Math.hypot(P, B) || 1, b = P / F, j = B / F, _ = -j, H = b, D = n?.destination?.markerSize ? n?.destination?.markerSize / 2 : 12, L = F, O = { along: 100, perpendicular: 0 }, X = n?.destinationPortOffset || {}, $ = typeof X?.along == "number" ? X.along : O.along, T = typeof X?.perpendicular == "number" ? X.perpendicular : O.perpendicular, M = D + $, Y = Math.min(Math.max(M, D + 4), L * 0.6), q = T, Z = _ * q + b * Y, se = H * q + j * Y, U = A?.x + Z, W = A?.y + se, ee = S.unproject([U, W]), te = Math.atan2(j, b) * 180 / Math.PI,
|
|
7844
|
+
const N = S.project([n?.source?.lng, n?.source?.lat]), A = S.project([n?.destination?.lng, n?.destination?.lat]), P = N?.x - A?.x, B = N?.y - A?.y, F = Math.hypot(P, B) || 1, b = P / F, j = B / F, _ = -j, H = b, D = n?.destination?.markerSize ? n?.destination?.markerSize / 2 : 12, L = F, O = { along: 100, perpendicular: 0 }, X = n?.destinationPortOffset || {}, $ = typeof X?.along == "number" ? X.along : O.along, T = typeof X?.perpendicular == "number" ? X.perpendicular : O.perpendicular, M = D + $, Y = Math.min(Math.max(M, D + 4), L * 0.6), q = T, Z = _ * q + b * Y, se = H * q + j * Y, U = A?.x + Z, W = A?.y + se, ee = S.unproject([U, W]), te = Math.atan2(j, b) * 180 / Math.PI, le = (te + 360) % 360, je = le > 90 && le < 270 ? te + 180 : te;
|
|
7845
7845
|
return { position: { lng: ee?.lng, lat: ee?.lat }, rotation: je };
|
|
7846
7846
|
} catch {
|
|
7847
7847
|
return null;
|
|
@@ -8003,7 +8003,7 @@ const xh = de((e, n) => {
|
|
|
8003
8003
|
mapStyle: W = vh?.[1],
|
|
8004
8004
|
isolateNonSelectedLinksOnNodeClick: ee = !1,
|
|
8005
8005
|
showLinkCount: te = !0,
|
|
8006
|
-
debug:
|
|
8006
|
+
debug: le = !1,
|
|
8007
8007
|
className: J = "",
|
|
8008
8008
|
customNavigateButtonsClassName: je = "",
|
|
8009
8009
|
mapTilesCacheSize: gt = 0
|
|
@@ -8011,8 +8011,8 @@ const xh = de((e, n) => {
|
|
|
8011
8011
|
ie();
|
|
8012
8012
|
const [Ae, Fe] = I([]), [ct, kt] = I([]), [ce, _t] = I([]), [It, un] = I(), [dn, Rn] = I(null), [At, Kt] = I(null), [Rt, rr] = I({}), [Mt, Hr] = I({}), [fn, or] = I(!1), [Ur, sr] = I({ connections: [], nodes: [], countBoxes: [] }), [Yr, Pn] = I({}), [zi, $n] = I(!1), [is, jn] = I(!1), [On, ir] = I(r), [ar, lr] = I(), [Xt, pn] = I([]), [Qt, cr] = I([]), [ur, dr] = I(!0), [_n, mn] = I(!1), fr = ie();
|
|
8013
8013
|
K(() => {
|
|
8014
|
-
|
|
8015
|
-
}, [
|
|
8014
|
+
le && console.log(e);
|
|
8015
|
+
}, [le]);
|
|
8016
8016
|
const as = ue(() => {
|
|
8017
8017
|
const Q = j(Rt);
|
|
8018
8018
|
return Q || "Link : " + Rt?.data?.name;
|
|
@@ -8079,7 +8079,7 @@ const xh = de((e, n) => {
|
|
|
8079
8079
|
function Dt(Q) {
|
|
8080
8080
|
rr(Q), C(Q);
|
|
8081
8081
|
}
|
|
8082
|
-
const zt =
|
|
8082
|
+
const zt = ae((Q, ve, _e = !1) => {
|
|
8083
8083
|
if (!me.current) return;
|
|
8084
8084
|
const Ye = Q.map((pe) => ({
|
|
8085
8085
|
...pe,
|
|
@@ -8132,7 +8132,7 @@ const xh = de((e, n) => {
|
|
|
8132
8132
|
const yr = Ye[gr];
|
|
8133
8133
|
yt[Xe].nodes || (yt[Xe].nodes = []), yt[Xe].nodes.push(yr), yt[Xe].destination = yr?.location, Ye[gr].connections || (Ye[gr].connections = []), Ye[gr].connections.push(pe);
|
|
8134
8134
|
}
|
|
8135
|
-
}), _t(Ye), kt(yt),
|
|
8135
|
+
}), _t(Ye), kt(yt), le && console.log(`Processed: seen=${mr.size}, f0=${yt.length}, ignored=${Li.length}, all=${o.length}`);
|
|
8136
8136
|
}, [me]), pr = (Q, ve) => {
|
|
8137
8137
|
if (!$) return;
|
|
8138
8138
|
jn(!0);
|
|
@@ -8149,9 +8149,9 @@ const xh = de((e, n) => {
|
|
|
8149
8149
|
}, [o, t, me?.current]), K(() => {
|
|
8150
8150
|
ct?.length > 0 && pr(null, "moveend");
|
|
8151
8151
|
}, [ct]);
|
|
8152
|
-
const cs =
|
|
8152
|
+
const cs = ae(() => {
|
|
8153
8153
|
localStorage.setItem(`network_map_options_${N}`, JSON.stringify(ne));
|
|
8154
|
-
}, [N, ne]), fd =
|
|
8154
|
+
}, [N, ne]), fd = ae(() => {
|
|
8155
8155
|
const Q = localStorage.getItem(`network_map_options_${N}`);
|
|
8156
8156
|
Q && Ce(JSON.parse(Q));
|
|
8157
8157
|
}, [N]);
|
|
@@ -8208,7 +8208,7 @@ const xh = de((e, n) => {
|
|
|
8208
8208
|
hideLinks: !1
|
|
8209
8209
|
}));
|
|
8210
8210
|
}
|
|
8211
|
-
Nt(n, () => ({
|
|
8211
|
+
Nt(n, () => (console.log("Re-rendering useImperativeHandle"), {
|
|
8212
8212
|
id: lt,
|
|
8213
8213
|
getCanvas: () => me.current?.getCanvas?.(),
|
|
8214
8214
|
props: e,
|
|
@@ -8245,7 +8245,7 @@ const xh = de((e, n) => {
|
|
|
8245
8245
|
setSupressLinkHover: mn,
|
|
8246
8246
|
supressLinkHover: _n,
|
|
8247
8247
|
element: fr
|
|
8248
|
-
}), [
|
|
8248
|
+
}), [Fi, d]);
|
|
8249
8249
|
const Cd = ue(() => Y?.map((Q) => ({
|
|
8250
8250
|
...Q,
|
|
8251
8251
|
action: () => {
|
|
@@ -8266,7 +8266,7 @@ const xh = de((e, n) => {
|
|
|
8266
8266
|
type: "node"
|
|
8267
8267
|
});
|
|
8268
8268
|
}
|
|
8269
|
-
})) || [], [q?.length, At, Mt]), Sd =
|
|
8269
|
+
})) || [], [q?.length, At, Mt]), Sd = ae((Q) => {
|
|
8270
8270
|
if (!me.current || _n) return;
|
|
8271
8271
|
Q.layer || un(null), Q?.coordinate && Fe(Q.coordinate);
|
|
8272
8272
|
const ve = me.current.getCanvas();
|
|
@@ -8981,10 +8981,10 @@ function jh() {
|
|
|
8981
8981
|
function te(J) {
|
|
8982
8982
|
return k(J) === o;
|
|
8983
8983
|
}
|
|
8984
|
-
function
|
|
8984
|
+
function le(J) {
|
|
8985
8985
|
return k(J) === p;
|
|
8986
8986
|
}
|
|
8987
|
-
xe.AsyncMode = v, xe.ConcurrentMode = S, xe.ContextConsumer = N, xe.ContextProvider = A, xe.Element = P, xe.ForwardRef = B, xe.Fragment = F, xe.Lazy = b, xe.Memo = j, xe.Portal = _, xe.Profiler = H, xe.StrictMode = D, xe.Suspense = L, xe.isAsyncMode = X, xe.isConcurrentMode = $, xe.isContextConsumer = T, xe.isContextProvider = M, xe.isElement = Y, xe.isForwardRef = q, xe.isFragment = Z, xe.isLazy = se, xe.isMemo = U, xe.isPortal = W, xe.isProfiler = ee, xe.isStrictMode = te, xe.isSuspense =
|
|
8987
|
+
xe.AsyncMode = v, xe.ConcurrentMode = S, xe.ContextConsumer = N, xe.ContextProvider = A, xe.Element = P, xe.ForwardRef = B, xe.Fragment = F, xe.Lazy = b, xe.Memo = j, xe.Portal = _, xe.Profiler = H, xe.StrictMode = D, xe.Suspense = L, xe.isAsyncMode = X, xe.isConcurrentMode = $, xe.isContextConsumer = T, xe.isContextProvider = M, xe.isElement = Y, xe.isForwardRef = q, xe.isFragment = Z, xe.isLazy = se, xe.isMemo = U, xe.isPortal = W, xe.isProfiler = ee, xe.isStrictMode = te, xe.isSuspense = le, xe.isValidElementType = x, xe.typeOf = k;
|
|
8988
8988
|
})()), xe;
|
|
8989
8989
|
}
|
|
8990
8990
|
var Aa;
|
|
@@ -9152,8 +9152,8 @@ function Ih() {
|
|
|
9152
9152
|
function C($) {
|
|
9153
9153
|
if (process.env.NODE_ENV !== "production")
|
|
9154
9154
|
var T = {}, M = 0;
|
|
9155
|
-
function Y(Z, se, U, W, ee, te,
|
|
9156
|
-
if (W = W || m, te = te || U,
|
|
9155
|
+
function Y(Z, se, U, W, ee, te, le) {
|
|
9156
|
+
if (W = W || m, te = te || U, le !== t) {
|
|
9157
9157
|
if (l) {
|
|
9158
9158
|
var J = new Error(
|
|
9159
9159
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -9248,7 +9248,7 @@ function Ih() {
|
|
|
9248
9248
|
for (var U = M[Y], W = 0; W < $.length; W++)
|
|
9249
9249
|
if (y(U, $[W]))
|
|
9250
9250
|
return null;
|
|
9251
|
-
var ee = JSON.stringify($, function(
|
|
9251
|
+
var ee = JSON.stringify($, function(le, J) {
|
|
9252
9252
|
var je = L(J);
|
|
9253
9253
|
return je === "symbol" ? String(J) : J;
|
|
9254
9254
|
});
|
|
@@ -9285,7 +9285,7 @@ function Ih() {
|
|
|
9285
9285
|
}
|
|
9286
9286
|
function Y(q, Z, se, U, W) {
|
|
9287
9287
|
for (var ee = [], te = 0; te < $.length; te++) {
|
|
9288
|
-
var
|
|
9288
|
+
var le = $[te], J = le(q, Z, se, U, W, t);
|
|
9289
9289
|
if (J == null)
|
|
9290
9290
|
return null;
|
|
9291
9291
|
J.data && r(J.data, "expectedType") && ee.push(J.data.expectedType);
|
|
@@ -9315,9 +9315,9 @@ function Ih() {
|
|
|
9315
9315
|
var te = $[ee];
|
|
9316
9316
|
if (typeof te != "function")
|
|
9317
9317
|
return F(q, Z, se, ee, L(te));
|
|
9318
|
-
var
|
|
9319
|
-
if (
|
|
9320
|
-
return
|
|
9318
|
+
var le = te(U, ee, q, Z, se + "." + ee, t);
|
|
9319
|
+
if (le)
|
|
9320
|
+
return le;
|
|
9321
9321
|
}
|
|
9322
9322
|
return null;
|
|
9323
9323
|
}
|
|
@@ -9330,15 +9330,15 @@ function Ih() {
|
|
|
9330
9330
|
return new d("Invalid " + Z + " `" + se + "` of type `" + W + "` " + ("supplied to `" + q + "`, expected `object`."));
|
|
9331
9331
|
var ee = n({}, M[Y], $);
|
|
9332
9332
|
for (var te in ee) {
|
|
9333
|
-
var
|
|
9334
|
-
if (r($, te) && typeof
|
|
9335
|
-
return F(q, Z, se, te, L(
|
|
9336
|
-
if (!
|
|
9333
|
+
var le = $[te];
|
|
9334
|
+
if (r($, te) && typeof le != "function")
|
|
9335
|
+
return F(q, Z, se, te, L(le));
|
|
9336
|
+
if (!le)
|
|
9337
9337
|
return new d(
|
|
9338
9338
|
"Invalid " + Z + " `" + se + "` key `" + te + "` supplied to `" + q + "`.\nBad object: " + JSON.stringify(M[Y], null, " ") + `
|
|
9339
9339
|
Valid keys: ` + JSON.stringify(Object.keys($), null, " ")
|
|
9340
9340
|
);
|
|
9341
|
-
var J =
|
|
9341
|
+
var J = le(U, te, q, Z, se + "." + te, t);
|
|
9342
9342
|
if (J)
|
|
9343
9343
|
return J;
|
|
9344
9344
|
}
|
|
@@ -12125,7 +12125,7 @@ const nv = ye(
|
|
|
12125
12125
|
disable: a || !1,
|
|
12126
12126
|
addClass: i || [],
|
|
12127
12127
|
autoFocus: s || !1
|
|
12128
|
-
}), w =
|
|
12128
|
+
}), w = ae((x, k) => {
|
|
12129
12129
|
C((v) => ({ ...v, [x]: k }));
|
|
12130
12130
|
}, []);
|
|
12131
12131
|
K(() => {
|
|
@@ -12135,7 +12135,7 @@ const nv = ye(
|
|
|
12135
12135
|
autoFocus: s || !1
|
|
12136
12136
|
});
|
|
12137
12137
|
}, [a, i, s]);
|
|
12138
|
-
const E =
|
|
12138
|
+
const E = ae((x) => {
|
|
12139
12139
|
u && w("disable", !0), o && o(x, n);
|
|
12140
12140
|
}, [u, o, n, w]);
|
|
12141
12141
|
return K(() => {
|
|
@@ -12346,7 +12346,7 @@ const iv = de((e, n) => {
|
|
|
12346
12346
|
defaultClosed: g,
|
|
12347
12347
|
className: y,
|
|
12348
12348
|
description: d
|
|
12349
|
-
} = e, C = ie(), [w, E] = I([/* @__PURE__ */ c.jsx(ds, { size: 16 }), /* @__PURE__ */ c.jsx(lo, { size: 16 })]), [x, k] = I([]), v = ie({}), S =
|
|
12349
|
+
} = e, C = ie(), [w, E] = I([/* @__PURE__ */ c.jsx(ds, { size: 16 }), /* @__PURE__ */ c.jsx(lo, { size: 16 })]), [x, k] = I([]), v = ie({}), S = ae(() => {
|
|
12350
12350
|
g ? (Oe(C.current).find(".css-i231").hide(), E([/* @__PURE__ */ c.jsx(lo, { size: 16 }), /* @__PURE__ */ c.jsx(ds, { size: 16 })]), k(["Hide", "Show"])) : g || (Oe(C.current).find(".css-i231").show(), E([/* @__PURE__ */ c.jsx(ds, { size: 16 }), /* @__PURE__ */ c.jsx(lo, { size: 16 })]), k(["Show", "Hide"]));
|
|
12351
12351
|
}, [g]);
|
|
12352
12352
|
return K(() => {
|
|
@@ -12531,7 +12531,7 @@ const gv = de((e, n) => {
|
|
|
12531
12531
|
const [t, r] = I({
|
|
12532
12532
|
position: "right",
|
|
12533
12533
|
top: 0
|
|
12534
|
-
}), o = ie(null), s =
|
|
12534
|
+
}), o = ie(null), s = ae(() => {
|
|
12535
12535
|
if (!o.current || !e?.length) return;
|
|
12536
12536
|
const l = o.current.getBoundingClientRect(), u = window.innerWidth, f = window.innerHeight, p = 200, m = e.length * 35, g = u - (l.right + p), y = l.left - p, d = f - l.top, C = l.top;
|
|
12537
12537
|
let w = "right", E = 0;
|
|
@@ -12543,7 +12543,7 @@ const gv = de((e, n) => {
|
|
|
12543
12543
|
};
|
|
12544
12544
|
return window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
|
|
12545
12545
|
}, [n, e?.length, s]);
|
|
12546
|
-
const i =
|
|
12546
|
+
const i = ae(() => {
|
|
12547
12547
|
e?.length > 0 && setTimeout(() => {
|
|
12548
12548
|
s();
|
|
12549
12549
|
}, 10);
|
|
@@ -13473,7 +13473,7 @@ const Qv = ye("overflow-visible flex pr-2 font-aptos text-gray-500", {
|
|
|
13473
13473
|
} catch {
|
|
13474
13474
|
}
|
|
13475
13475
|
}
|
|
13476
|
-
const O =
|
|
13476
|
+
const O = ae(($, T) => {
|
|
13477
13477
|
const M = Oe(`#${P}`).val();
|
|
13478
13478
|
l === "email" && L(T || M);
|
|
13479
13479
|
}, [n?.current, P]), X = ($) => {
|
|
@@ -13818,7 +13818,7 @@ const ab = ({ props: e, formater: n }) => {
|
|
|
13818
13818
|
const { value: t, valueFormatted: r } = e, o = r == "[object Object]" && !r?.$$typeof ? t : r;
|
|
13819
13819
|
return n ? n(e) : t === "true" || t === !0 ? /* @__PURE__ */ c.jsx("div", { className: "mt-[1px]", children: /* @__PURE__ */ c.jsx(sb, { title: o }) }) : t === "false" || t === !1 ? /* @__PURE__ */ c.jsx("div", { className: "mt-[1px]", children: /* @__PURE__ */ c.jsx(ib, { title: o }) }) : /* @__PURE__ */ c.jsx("div", { title: o?.$$typeof ? t?.props?.children : o, className: "w-full relative h-full", children: o || r || t });
|
|
13820
13820
|
}, lb = (e) => /* @__PURE__ */ c.jsx(ob, { ...e }), cb = (e) => {
|
|
13821
|
-
const [n, t] = I(!1), [r, o] = I(0), { OnCellExpand: s } = e, i = ie(), a =
|
|
13821
|
+
const [n, t] = I(!1), [r, o] = I(0), { OnCellExpand: s } = e, i = ie(), a = ae(() => {
|
|
13822
13822
|
o(n ? 0 : 90), s({ ...e, expanded: !n, expandButtonRef: i }), t((l) => !l);
|
|
13823
13823
|
}, [n]);
|
|
13824
13824
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -13926,7 +13926,7 @@ const ab = ({ props: e, formater: n }) => {
|
|
|
13926
13926
|
e && (t.includes(e) || o((s) => [...s, e])), n && !t.includes(n.length) && n.length > 2e3 && o((s) => [...s, n.length]);
|
|
13927
13927
|
}, [e, n]), [r, o];
|
|
13928
13928
|
}, pb = (e, n) => {
|
|
13929
|
-
const [t, r] = I(30), o =
|
|
13929
|
+
const [t, r] = I(30), o = ae((s) => {
|
|
13930
13930
|
s == "sm" ? r(30) : s == "mid" ? r(40) : r(30), n((i) => ({ ...i, rowHeightInt: t, rowHeightStr: s }));
|
|
13931
13931
|
}, [e]);
|
|
13932
13932
|
return K(() => {
|
|
@@ -13941,7 +13941,7 @@ const ab = ({ props: e, formater: n }) => {
|
|
|
13941
13941
|
}, [a, n, i?.value]), K(() => {
|
|
13942
13942
|
n && (a?.rowchange?.({ ...t?.current }), a?.change?.({ ...t?.current }));
|
|
13943
13943
|
}, [t, n, i?.value]);
|
|
13944
|
-
const m =
|
|
13944
|
+
const m = ae((g, y) => {
|
|
13945
13945
|
p((d) => ({ ...d, [g]: y }));
|
|
13946
13946
|
}, []);
|
|
13947
13947
|
return [f, p];
|
|
@@ -14357,7 +14357,7 @@ const Tb = (e) => {
|
|
|
14357
14357
|
K(() => {
|
|
14358
14358
|
a.props && (m(a.props.tableName), a.cell?.value?.map ? C(!1) : C(!0), a.cell?.value && !a.cell?.value?.map && (w(a.cell?.value) ? C(!1) : C(!0)), a.props.onRefresh ? y(!1) : y(!0));
|
|
14359
14359
|
}, [a.cell?.value]);
|
|
14360
|
-
const E =
|
|
14360
|
+
const E = ae(() => {
|
|
14361
14361
|
Oe(a.tableRef.current).toggleClass("css-771-full-screen"), n((k) => ({ ...k, fullscreen: !1 }));
|
|
14362
14362
|
}, [a.fullscreen]);
|
|
14363
14363
|
K(() => (kb("escape", () => {
|
|
@@ -14365,7 +14365,7 @@ const Tb = (e) => {
|
|
|
14365
14365
|
}), () => {
|
|
14366
14366
|
Eb("escape"), n((k) => ({ ...k, fullscreen: !1 }));
|
|
14367
14367
|
}), [a.fullscreen]);
|
|
14368
|
-
const x =
|
|
14368
|
+
const x = ae(() => {
|
|
14369
14369
|
const k = a.cell.value?.map ? a.cell.value : JSON.parse(a.cell.value), v = a.cell.parentRowNode.expandApi, S = v.size.y / 3;
|
|
14370
14370
|
v.setChilds(
|
|
14371
14371
|
/* @__PURE__ */ c.jsx("div", { className: V("h-fit w-full p-2 border-[3px] overflow-auto bg-[#fafafa]"), style: { maxHeight: S }, children: k.map((N, A) => /* @__PURE__ */ c.jsx(kh, { index: A, item: N }, A)) })
|
|
@@ -14726,7 +14726,7 @@ const $i = En({}), Pb = de((e, n) => {
|
|
|
14726
14726
|
},
|
|
14727
14727
|
onExpandChange: M = () => {
|
|
14728
14728
|
}
|
|
14729
|
-
} = e, [Y, q] = I([]), Z = ie(), se = ie(), U = ie({}), [W, ee] = I([]), [te,
|
|
14729
|
+
} = e, [Y, q] = I([]), Z = ie(), se = ie(), U = ie({}), [W, ee] = I([]), [te, le] = I({}), [J] = db(
|
|
14730
14730
|
{
|
|
14731
14731
|
data: r,
|
|
14732
14732
|
mapper: x,
|
|
@@ -14756,12 +14756,12 @@ const $i = En({}), Pb = de((e, n) => {
|
|
|
14756
14756
|
pageSizeArray: me
|
|
14757
14757
|
}), [ct, kt] = pb(u, Fe);
|
|
14758
14758
|
hb(Ae);
|
|
14759
|
-
const [ce, _t] = I(!0), [It, un] = I(null), [dn, Rn] = I(null), [At, Kt] = I(!0), [Rt] = Sb(Ae, P, ge, At), [rr] = vb(Ae, kt, ct), [Mt, Hr] = I(0), [fn, or] = I(!1), [Ur, sr] = I([]), Yr =
|
|
14759
|
+
const [ce, _t] = I(!0), [It, un] = I(null), [dn, Rn] = I(null), [At, Kt] = I(!0), [Rt] = Sb(Ae, P, ge, At), [rr] = vb(Ae, kt, ct), [Mt, Hr] = I(0), [fn, or] = I(!1), [Ur, sr] = I([]), Yr = ae((ne) => {
|
|
14760
14760
|
if (!Z.current.api)
|
|
14761
14761
|
return;
|
|
14762
14762
|
const Ce = Z.current?.api.getColumns().map((Ke) => Ke.colId);
|
|
14763
14763
|
Z.current?.api.autoSizeColumns(Ce), Z.current?.api.autoSizeAllColumns();
|
|
14764
|
-
}, [Z.current?.api]), Pn =
|
|
14764
|
+
}, [Z.current?.api]), Pn = ae(() => {
|
|
14765
14765
|
Z.current.api.exportDataAsCsv({ fileName: `${m}.csv` });
|
|
14766
14766
|
}, [Z]), zi = () => {
|
|
14767
14767
|
Hr((ne) => ne = ne + 1);
|
|
@@ -14771,17 +14771,17 @@ const $i = En({}), Pb = de((e, n) => {
|
|
|
14771
14771
|
Zl.registerModules([ec]);
|
|
14772
14772
|
} });
|
|
14773
14773
|
}, []);
|
|
14774
|
-
const $n =
|
|
14774
|
+
const $n = ae((ne) => {
|
|
14775
14775
|
const Ce = m, Ke = "application/vnd/openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8", hn = ".xlsx", Dt = { Sheets: { data: Yi.utils.json_to_sheet(ne.props.dataset) }, SheetNames: ["data"] }, zt = Yi.write(Dt, { bookType: "xlsx", type: "array" }), pr = new Blob([zt], { type: Ke });
|
|
14776
14776
|
ff(pr, Ce + hn);
|
|
14777
|
-
}, [m]), is =
|
|
14777
|
+
}, [m]), is = ae((ne, Ce) => {
|
|
14778
14778
|
const Ke = ne.colDef.field, hn = ne.api.getSelectedNodes()[0] || {}, Pt = { header: Ke, value: ne.value, params: ne }, Dt = {
|
|
14779
14779
|
selectedCell: ne.value,
|
|
14780
14780
|
selectedHeader: ne.colDef.field,
|
|
14781
14781
|
cell: { header: Ke, value: ne.value, params: ne, parentRowNode: hn }
|
|
14782
14782
|
};
|
|
14783
14783
|
lt(Pt), Fe((zt) => ({ ...zt, ...Dt })), f(ne, ne.value, ne.colDef.field);
|
|
14784
|
-
}, [Fe, f]), jn =
|
|
14784
|
+
}, [Fe, f]), jn = ae((ne) => {
|
|
14785
14785
|
const { event: Ce, value: Ke } = ne;
|
|
14786
14786
|
if ((Z.current?.api?.getSelectedRows() || [])?.length == 0)
|
|
14787
14787
|
return;
|
|
@@ -14791,7 +14791,7 @@ const $i = En({}), Pb = de((e, n) => {
|
|
|
14791
14791
|
K(() => {
|
|
14792
14792
|
if (b ? Fe((ne) => ({ ...ne, ready: !0 })) : b == !1 && Fe((ne) => ({ ...ne, ready: !1 })), b == !0)
|
|
14793
14793
|
return () => {
|
|
14794
|
-
|
|
14794
|
+
le({});
|
|
14795
14795
|
};
|
|
14796
14796
|
}, [b, Fe]), K(() => {
|
|
14797
14797
|
ge && (ge.header || ge.value) && Fe((ne) => ({
|
|
@@ -14807,8 +14807,8 @@ const $i = En({}), Pb = de((e, n) => {
|
|
|
14807
14807
|
On(ne.key, ne.operation);
|
|
14808
14808
|
});
|
|
14809
14809
|
}, [C]);
|
|
14810
|
-
const On =
|
|
14811
|
-
|
|
14810
|
+
const On = ae((ne, Ce) => {
|
|
14811
|
+
le((Ke) => ({ ...Ke, [ne]: Ce }));
|
|
14812
14812
|
}, [ge, je, Ae]);
|
|
14813
14813
|
Nt(n, () => ({
|
|
14814
14814
|
...n?.current,
|
|
@@ -14844,18 +14844,18 @@ const $i = En({}), Pb = de((e, n) => {
|
|
|
14844
14844
|
function lr() {
|
|
14845
14845
|
return r;
|
|
14846
14846
|
}
|
|
14847
|
-
const Xt =
|
|
14847
|
+
const Xt = ae(() => Z.current?.api?.getSelectedRows() || [], []), pn = ae(() => Z.current?.api?.getSelectedRows()[0] || null, []), Qt = ae(() => {
|
|
14848
14848
|
const ne = Xt();
|
|
14849
14849
|
return Z.current.api.applyTransaction({ remove: ne }), ar();
|
|
14850
|
-
}, [Xt]), cr =
|
|
14850
|
+
}, [Xt]), cr = ae((ne) => {
|
|
14851
14851
|
w(ne, ne.data);
|
|
14852
|
-
}, [w]), ur =
|
|
14852
|
+
}, [w]), ur = ae(() => {
|
|
14853
14853
|
Ae.ready && ee((ne) => []);
|
|
14854
|
-
}, [Ae.ready]), dr =
|
|
14854
|
+
}, [Ae.ready]), dr = ae((ne) => {
|
|
14855
14855
|
ne && ne.updateSingleCallbackKey && (ne.updateSingleCallbackKey("ready", !1), E(ne), setTimeout(() => {
|
|
14856
14856
|
ne.updateSingleCallbackKey("ready", !0);
|
|
14857
14857
|
}, 1e3));
|
|
14858
|
-
}, [E]), _n =
|
|
14858
|
+
}, [E]), _n = ae((ne) => {
|
|
14859
14859
|
if (t)
|
|
14860
14860
|
try {
|
|
14861
14861
|
const Ce = localStorage.getItem(`table_columns_${t}`);
|
|
@@ -14896,7 +14896,7 @@ const $i = En({}), Pb = de((e, n) => {
|
|
|
14896
14896
|
K(() => {
|
|
14897
14897
|
Z.current && Fe((ne) => ({ ...ne, ...mn }));
|
|
14898
14898
|
}, [mn, Fe]);
|
|
14899
|
-
const fr =
|
|
14899
|
+
const fr = ae((ne) => {
|
|
14900
14900
|
Z.current && r.length > 0 && requestAnimationFrame(() => {
|
|
14901
14901
|
Z?.current?.api?.sizeColumnsToFit(), Fe((Ce) => ({ ...Ce, ready: !0 }));
|
|
14902
14902
|
});
|
|
@@ -16774,8 +16774,8 @@ function bx(e) {
|
|
|
16774
16774
|
}
|
|
16775
16775
|
}, v = (W) => {
|
|
16776
16776
|
var ee;
|
|
16777
|
-
const te = W.split("-"),
|
|
16778
|
-
return x(W, (ee = k[
|
|
16777
|
+
const te = W.split("-"), le = te[1], J = te[2];
|
|
16778
|
+
return x(W, (ee = k[le]) == null ? void 0 : ee[J]);
|
|
16779
16779
|
}, S = (W) => ({
|
|
16780
16780
|
plainColor: v(`palette-${W}-500`),
|
|
16781
16781
|
plainHoverBg: v(`palette-${W}-100`),
|
|
@@ -17091,7 +17091,7 @@ function bx(e) {
|
|
|
17091
17091
|
theme: ee
|
|
17092
17092
|
}) => {
|
|
17093
17093
|
var te;
|
|
17094
|
-
const
|
|
17094
|
+
const le = W.instanceFontSize;
|
|
17095
17095
|
return G({
|
|
17096
17096
|
margin: "var(--Icon-margin)"
|
|
17097
17097
|
}, W.fontSize && W.fontSize !== "inherit" && {
|
|
@@ -17100,8 +17100,8 @@ function bx(e) {
|
|
|
17100
17100
|
color: `var(--Icon-color, ${M.vars.palette.text.icon})`
|
|
17101
17101
|
}, W.color && W.color !== "inherit" && ee.vars.palette[W.color] && {
|
|
17102
17102
|
color: `rgba(${(te = ee.vars.palette[W.color]) == null ? void 0 : te.mainChannel} / 1)`
|
|
17103
|
-
}),
|
|
17104
|
-
"--Icon-fontSize": ee.vars.fontSize[
|
|
17103
|
+
}), le && le !== "inherit" && {
|
|
17104
|
+
"--Icon-fontSize": ee.vars.fontSize[le]
|
|
17105
17105
|
});
|
|
17106
17106
|
}
|
|
17107
17107
|
}
|
|
@@ -17113,12 +17113,12 @@ function bx(e) {
|
|
|
17113
17113
|
});
|
|
17114
17114
|
function Y(W, ee) {
|
|
17115
17115
|
Object.keys(ee).forEach((te) => {
|
|
17116
|
-
const
|
|
17116
|
+
const le = {
|
|
17117
17117
|
main: "500",
|
|
17118
17118
|
light: "200",
|
|
17119
17119
|
dark: "700"
|
|
17120
17120
|
};
|
|
17121
|
-
W === "dark" && (
|
|
17121
|
+
W === "dark" && (le.main = 400), !ee[te].mainChannel && ee[te][le.main] && (ee[te].mainChannel = vn(ee[te][le.main])), !ee[te].lightChannel && ee[te][le.light] && (ee[te].lightChannel = vn(ee[te][le.light])), !ee[te].darkChannel && ee[te][le.dark] && (ee[te].darkChannel = vn(ee[te][le.dark]));
|
|
17122
17122
|
});
|
|
17123
17123
|
}
|
|
17124
17124
|
Object.entries(M.colorSchemes).forEach(([W, ee]) => {
|
|
@@ -17909,14 +17909,14 @@ const Dx = ["checked", "uncheckedIcon", "checkedIcon", "label", "defaultChecked"
|
|
|
17909
17909
|
checked: Z,
|
|
17910
17910
|
disabled: se,
|
|
17911
17911
|
focusVisible: U
|
|
17912
|
-
} = qb(Y), W = Z || E,
|
|
17912
|
+
} = qb(Y), W = Z || E, le = W ? j || "solid" : j || "outlined", J = n.color || (X != null && X.error ? "danger" : (a = X?.color) != null ? a : b), ge = G({}, l, {
|
|
17913
17913
|
checked: Z,
|
|
17914
17914
|
disabled: se,
|
|
17915
17915
|
disableIcon: d,
|
|
17916
17916
|
overlay: C,
|
|
17917
17917
|
focusVisible: U,
|
|
17918
17918
|
color: W ? J || "primary" : J || "neutral",
|
|
17919
|
-
variant:
|
|
17919
|
+
variant: le,
|
|
17920
17920
|
size: T
|
|
17921
17921
|
}), lt = zx(ge), me = G({}, O, {
|
|
17922
17922
|
component: H,
|
|
@@ -19180,7 +19180,7 @@ const RC = Nn("MuiButtonBase", ["root", "disabled", "focusVisible"]), PC = (e) =
|
|
|
19180
19180
|
}, [f, m, T, X]);
|
|
19181
19181
|
const q = Bt(X, "start", N, p), Z = Bt(X, "stop", w, p), se = Bt(X, "stop", E, p), U = Bt(X, "stop", P, p), W = Bt(X, "stop", (ce) => {
|
|
19182
19182
|
T && ce.preventDefault(), A && A(ce);
|
|
19183
|
-
}, p), ee = Bt(X, "start", b, p), te = Bt(X, "stop", B, p),
|
|
19183
|
+
}, p), ee = Bt(X, "start", b, p), te = Bt(X, "stop", B, p), le = Bt(X, "stop", F, p), J = Bt(X, "stop", (ce) => {
|
|
19184
19184
|
jl(ce.target) || M(!1), d && d(ce);
|
|
19185
19185
|
}, !1), je = fo((ce) => {
|
|
19186
19186
|
O.current || (O.current = ce.currentTarget), jl(ce.target) && (M(!0), k && k(ce)), x && x(ce);
|
|
@@ -19226,7 +19226,7 @@ const RC = Nn("MuiButtonBase", ["root", "disabled", "focusVisible"]), PC = (e) =
|
|
|
19226
19226
|
onMouseUp: U,
|
|
19227
19227
|
onDragLeave: se,
|
|
19228
19228
|
onTouchEnd: te,
|
|
19229
|
-
onTouchMove:
|
|
19229
|
+
onTouchMove: le,
|
|
19230
19230
|
onTouchStart: ee,
|
|
19231
19231
|
ref: Fe,
|
|
19232
19232
|
tabIndex: u ? -1 : j,
|
|
@@ -20331,7 +20331,7 @@ const e1 = de((e) => {
|
|
|
20331
20331
|
defaultClassNameDragged: C = "react-draggable-dragged",
|
|
20332
20332
|
scale: w = 1
|
|
20333
20333
|
}) => {
|
|
20334
|
-
const E = ie(null), [x, k] = I(t), [v, S] = I(!1), N = ie(null), A = o !== void 0, P =
|
|
20334
|
+
const E = ie(null), [x, k] = I(t), [v, S] = I(!1), N = ie(null), A = o !== void 0, P = ae(() => {
|
|
20335
20335
|
if (!u || !E.current) return null;
|
|
20336
20336
|
if (typeof u == "string") {
|
|
20337
20337
|
const D = document.querySelector(u);
|
|
@@ -20346,19 +20346,19 @@ const e1 = de((e) => {
|
|
|
20346
20346
|
}
|
|
20347
20347
|
}
|
|
20348
20348
|
return u;
|
|
20349
|
-
}, [u]), B =
|
|
20349
|
+
}, [u]), B = ae((D, L) => {
|
|
20350
20350
|
const O = P();
|
|
20351
20351
|
if (!O) return { x: D, y: L };
|
|
20352
20352
|
let X = D, $ = L;
|
|
20353
20353
|
return O.left !== void 0 && (X = Math.max(X, O.left)), O.right !== void 0 && (X = Math.min(X, O.right)), O.top !== void 0 && ($ = Math.max($, O.top)), O.bottom !== void 0 && ($ = Math.min($, O.bottom)), { x: X, y: $ };
|
|
20354
|
-
}, [P]), F =
|
|
20354
|
+
}, [P]), F = ae((D, L) => {
|
|
20355
20355
|
if (!p) return { x: D, y: L };
|
|
20356
20356
|
const [O, X] = p;
|
|
20357
20357
|
return {
|
|
20358
20358
|
x: Math.round(D / O) * O,
|
|
20359
20359
|
y: Math.round(L / X) * X
|
|
20360
20360
|
};
|
|
20361
|
-
}, [p]), b =
|
|
20361
|
+
}, [p]), b = ae((D, L) => {
|
|
20362
20362
|
switch (g) {
|
|
20363
20363
|
case "x":
|
|
20364
20364
|
return { x: D, y: x.y };
|
|
@@ -20369,7 +20369,7 @@ const e1 = de((e) => {
|
|
|
20369
20369
|
default:
|
|
20370
20370
|
return { x: D, y: L };
|
|
20371
20371
|
}
|
|
20372
|
-
}, [g, x]), j =
|
|
20372
|
+
}, [g, x]), j = ae((D) => {
|
|
20373
20373
|
if (l || f && D.target.closest(f) || e && !D.target.closest(e) || !m && D.button !== 0) return;
|
|
20374
20374
|
D.preventDefault(), D.stopPropagation();
|
|
20375
20375
|
const L = A ? o : x, O = D.clientX, X = D.clientY;
|
|
@@ -20443,7 +20443,7 @@ function r1(e) {
|
|
|
20443
20443
|
return e.alert ? "Alert" : e.success ? "Success" : e.confirm ? "Confirm" : e.error ? "Error" : "Null";
|
|
20444
20444
|
}
|
|
20445
20445
|
const o1 = (e) => {
|
|
20446
|
-
const [n, t] = I([]), r =
|
|
20446
|
+
const [n, t] = I([]), r = ae((s, i) => s.body ? {
|
|
20447
20447
|
...s,
|
|
20448
20448
|
header: s.header || r1(s),
|
|
20449
20449
|
body: s.body || "No Content",
|
|
@@ -20468,7 +20468,7 @@ const o1 = (e) => {
|
|
|
20468
20468
|
extraButtons: s.extraButtons || [],
|
|
20469
20469
|
// queueLength : queue.length,
|
|
20470
20470
|
removeFromQueue: o
|
|
20471
|
-
} : null, [n, e]), o =
|
|
20471
|
+
} : null, [n, e]), o = ae((s) => {
|
|
20472
20472
|
console.log("skip", s), t((i) => {
|
|
20473
20473
|
if (s)
|
|
20474
20474
|
return [];
|
|
@@ -21156,7 +21156,7 @@ const T1 = ye("relative w-fit data-[state=active]:font-medium group", {
|
|
|
21156
21156
|
},
|
|
21157
21157
|
onMouseLeave: m = () => {
|
|
21158
21158
|
}
|
|
21159
|
-
} = e, g =
|
|
21159
|
+
} = e, g = ae((y) => {
|
|
21160
21160
|
l !== t.value && (i(t.value), r({ event: y, ...t, currentTab: l, props: e, ref: n }, t.value), t.onSelected && t.onSelected({ event: y, ...t, currentTab: l, props: e, ref: n }, t.value));
|
|
21161
21161
|
}, [t.value, l, r, i, t, e]);
|
|
21162
21162
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -21408,8 +21408,8 @@ const T1 = ye("relative w-fit data-[state=active]:font-medium group", {
|
|
|
21408
21408
|
onClick: m,
|
|
21409
21409
|
buttonProps: g,
|
|
21410
21410
|
iconProps: y
|
|
21411
|
-
} = e, d = ue(() => ({ variant: "primary" }), []), C = ue(() => ({ outline: !1, variant: "primary" }), []), w =
|
|
21412
|
-
}, []), E = ue(() => [], []), x = ue(() => /* @__PURE__ */ c.jsx(lo, {}), []), k = g || d, v = y || C, S = m || w, N = p || E, A =
|
|
21411
|
+
} = e, d = ue(() => ({ variant: "primary" }), []), C = ue(() => ({ outline: !1, variant: "primary" }), []), w = ae(() => {
|
|
21412
|
+
}, []), E = ue(() => [], []), x = ue(() => /* @__PURE__ */ c.jsx(lo, {}), []), k = g || d, v = y || C, S = m || w, N = p || E, A = ae((B) => {
|
|
21413
21413
|
const F = s.current?.getBoundingClientRect();
|
|
21414
21414
|
F && (o({ x: F.x, y: F.y + F.height + 5 }), t(B));
|
|
21415
21415
|
}, []), P = ue(() => ({
|
|
@@ -21479,7 +21479,7 @@ const qw = (e) => {
|
|
|
21479
21479
|
} = e, [t] = O1({ dataset: n }), [r, o] = I([]), [s, i] = I({}), [a, l] = I(
|
|
21480
21480
|
["mrt-row-select", ...t.map((d) => d.accessorKey)]
|
|
21481
21481
|
//array of column ids (Initializing is optional as of v2.10.0)
|
|
21482
|
-
), [u, f] = I(!0), [p, m] = I({}), g =
|
|
21482
|
+
), [u, f] = I(!0), [p, m] = I({}), g = ae((d) => {
|
|
21483
21483
|
const C = d();
|
|
21484
21484
|
i(u ? (w) => ({ ...w, ...C }) : C);
|
|
21485
21485
|
}, [u, s]), y = yf(
|
|
@@ -21641,7 +21641,7 @@ const dd = En({}), Kw = (e) => {
|
|
|
21641
21641
|
setPressedState: v,
|
|
21642
21642
|
props: e,
|
|
21643
21643
|
data: f
|
|
21644
|
-
}), [t, n.current, k, f]), N =
|
|
21644
|
+
}), [t, n.current, k, f]), N = ae((P) => {
|
|
21645
21645
|
x || (o && o(S), v(P), p(n, P), P && m(n, P), P || g(n, P));
|
|
21646
21646
|
}, [k, t]);
|
|
21647
21647
|
K(() => {
|