react-semaphor 0.0.438 → 0.0.439
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/chunks/{index-By2xd102.js → index-BbpuKZcd.js} +191 -184
- package/dist/chunks/{index-SRcF4tB1.js → index-C3CSs3d8.js} +3 -3
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +30 -30
- package/dist/index.js +276 -283
- package/dist/style.css +1 -1
- package/dist/types/main.d.ts +1 -0
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ var Ff = (e, t, n, r) => ({
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
import * as _ from "react";
|
|
17
|
-
import Q, { createContext as St, useState as ge, useEffect as
|
|
17
|
+
import Q, { createContext as St, useState as ge, useEffect as fe, useContext as rt, forwardRef as Tn, useCallback as _e, createElement as on, Component as I8, useRef as he, useMemo as Re, useLayoutEffect as Sc, Suspense as A8, Fragment as cs, isValidElement as Yh, cloneElement as cD, useId as js, useReducer as Kw, useSyncExternalStore as N8, createRef as F8, memo as Wd, useDebugValue as L8 } from "react";
|
|
18
18
|
import * as Ss from "react-dom";
|
|
19
19
|
import Cc, { createPortal as Xw, flushSync as Ga, unstable_batchedUpdates as Lf } from "react-dom";
|
|
20
20
|
import * as XC from "react/jsx-runtime";
|
|
@@ -5619,7 +5619,7 @@ function l9({
|
|
|
5619
5619
|
const [o, i] = ge(
|
|
5620
5620
|
() => localStorage.getItem(n) || t
|
|
5621
5621
|
);
|
|
5622
|
-
|
|
5622
|
+
fe(() => {
|
|
5623
5623
|
const s = window.document.documentElement;
|
|
5624
5624
|
if (s.classList.remove("light", "dark"), o === "system") {
|
|
5625
5625
|
const l = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
@@ -7455,7 +7455,7 @@ function q9() {
|
|
|
7455
7455
|
}
|
|
7456
7456
|
function G9() {
|
|
7457
7457
|
const { authToken: e } = Jr(), t = se((r) => r.authToken), { setAuthToken: n } = fn();
|
|
7458
|
-
return
|
|
7458
|
+
return fe(() => {
|
|
7459
7459
|
e && (e == null ? void 0 : e.toString()) !== (t == null ? void 0 : t.toString()) && n(e);
|
|
7460
7460
|
}, [e, t, n]), e;
|
|
7461
7461
|
}
|
|
@@ -7548,14 +7548,14 @@ function K9({
|
|
|
7548
7548
|
), j = se(
|
|
7549
7549
|
(I) => I.actions.setDashboardTheme
|
|
7550
7550
|
), $ = se((I) => I.actions.setOnEvent);
|
|
7551
|
-
|
|
7551
|
+
fe(() => {
|
|
7552
7552
|
s && D();
|
|
7553
|
-
}, [s, D]),
|
|
7553
|
+
}, [s, D]), fe(() => {
|
|
7554
7554
|
if (g) {
|
|
7555
7555
|
const I = GD(g);
|
|
7556
7556
|
j(I);
|
|
7557
7557
|
}
|
|
7558
|
-
}, [g, j]),
|
|
7558
|
+
}, [g, j]), fe(() => {
|
|
7559
7559
|
t && m(t);
|
|
7560
7560
|
}, [t, m]);
|
|
7561
7561
|
const M = _e(() => {
|
|
@@ -7568,9 +7568,9 @@ function K9({
|
|
|
7568
7568
|
A(L), S(bp);
|
|
7569
7569
|
}
|
|
7570
7570
|
}, [g, e, b, A, S]);
|
|
7571
|
-
return
|
|
7571
|
+
return fe(() => {
|
|
7572
7572
|
c && c.dashboard && M();
|
|
7573
|
-
}, [g, e, b, M, c]),
|
|
7573
|
+
}, [g, e, b, M, c]), fe(() => {
|
|
7574
7574
|
var N, R;
|
|
7575
7575
|
function I(W, H) {
|
|
7576
7576
|
const G = W.filters || [], V = [];
|
|
@@ -7609,9 +7609,9 @@ function K9({
|
|
|
7609
7609
|
k,
|
|
7610
7610
|
f,
|
|
7611
7611
|
i
|
|
7612
|
-
]),
|
|
7612
|
+
]), fe(() => {
|
|
7613
7613
|
a && T && a(T);
|
|
7614
|
-
}, [T, a]),
|
|
7614
|
+
}, [T, a]), fe(() => {
|
|
7615
7615
|
n && C(n), r && $(r);
|
|
7616
7616
|
}, [n, C, r, $]), {
|
|
7617
7617
|
isFetching: d,
|
|
@@ -14773,7 +14773,8 @@ function Sj(e, t) {
|
|
|
14773
14773
|
return e.map((r) => Object.fromEntries(
|
|
14774
14774
|
Object.entries(r).filter(
|
|
14775
14775
|
([o]) => !t.some(
|
|
14776
|
-
(i) => i.
|
|
14776
|
+
(i) => i.label === o
|
|
14777
|
+
//|| column.name === key, // if you uncomment this, the stacked bar chart will not work in cases where metric and pivot columns are the same.
|
|
14777
14778
|
)
|
|
14778
14779
|
)
|
|
14779
14780
|
));
|
|
@@ -27236,6 +27237,7 @@ function RX(e, t) {
|
|
|
27236
27237
|
plugins: {
|
|
27237
27238
|
...(s = e == null ? void 0 : e.options) == null ? void 0 : s.plugins,
|
|
27238
27239
|
legend: {
|
|
27240
|
+
display: !1,
|
|
27239
27241
|
position: "bottom",
|
|
27240
27242
|
align: "center"
|
|
27241
27243
|
}
|
|
@@ -28044,7 +28046,7 @@ function U1e(e) {
|
|
|
28044
28046
|
}
|
|
28045
28047
|
function uI(e) {
|
|
28046
28048
|
var O;
|
|
28047
|
-
const { onChartElementClicked: t } = Jr(), [n, r] = ge(0), o = se((T) => T.themeStyle), i = se((T) => T.filteringCards), a = se((T) => T.selectedSheetId), s = se((T) => T.selectedLensId), l = se((T) => T.filterValues), c =
|
|
28049
|
+
const { onChartElementClicked: t } = Jr(), [n, r] = ge(0), o = se((T) => T.themeStyle), i = se((T) => T.filteringCards), a = se((T) => T.selectedSheetId), s = se((T) => T.selectedLensId), l = se((T) => T.filterValues), c = he(l), u = (O = e == null ? void 0 : e.preferences) == null ? void 0 : O.onClickFilter, {
|
|
28048
28050
|
addFilteringCard: d,
|
|
28049
28051
|
addOrUpdateFilterValues: h,
|
|
28050
28052
|
removeFilterValues: f,
|
|
@@ -28071,12 +28073,12 @@ function uI(e) {
|
|
|
28071
28073
|
topoJson: C
|
|
28072
28074
|
});
|
|
28073
28075
|
}, [g == null ? void 0 : g.records, e, C, o]);
|
|
28074
|
-
const k =
|
|
28076
|
+
const k = he({
|
|
28075
28077
|
filteringCards: i
|
|
28076
28078
|
});
|
|
28077
|
-
|
|
28079
|
+
fe(() => {
|
|
28078
28080
|
e.connectionId && !x && (c.current = l);
|
|
28079
|
-
}, [l, s, e.connectionId, x]),
|
|
28081
|
+
}, [l, s, e.connectionId, x]), fe(() => {
|
|
28080
28082
|
var A;
|
|
28081
28083
|
x && (k.current.filteringCards = [...i || []]), !x && ((A = k.current.filteringCards) == null ? void 0 : A.find((j) => j.id === e.id)) && S && r((j) => j + 1);
|
|
28082
28084
|
}, [x, S, e.id, i]);
|
|
@@ -28151,7 +28153,7 @@ function Si({
|
|
|
28151
28153
|
const [s, l] = ge(!1), [c, u] = ge(r), d = se(
|
|
28152
28154
|
(p) => p.isDashboardEditing
|
|
28153
28155
|
);
|
|
28154
|
-
|
|
28156
|
+
fe(() => {
|
|
28155
28157
|
u((p) => p !== r ? r : p);
|
|
28156
28158
|
}, [r]);
|
|
28157
28159
|
const h = (p) => {
|
|
@@ -29440,7 +29442,7 @@ const ry = pc, yQ = QX, vQ = JX, wQ = YX, xQ = eQ, SQ = KX, pk = GX, CQ = ZX, _Q
|
|
|
29440
29442
|
platform: i
|
|
29441
29443
|
});
|
|
29442
29444
|
};
|
|
29443
|
-
var ip = typeof document < "u" ? Sc :
|
|
29445
|
+
var ip = typeof document < "u" ? Sc : fe;
|
|
29444
29446
|
function Zp(e, t) {
|
|
29445
29447
|
if (e === t)
|
|
29446
29448
|
return !0;
|
|
@@ -35231,7 +35233,7 @@ function bte({
|
|
|
35231
35233
|
function yte(e, t) {
|
|
35232
35234
|
var d;
|
|
35233
35235
|
const n = se((h) => h.selectedSheetId), r = se((h) => h.filterValues), o = (d = e == null ? void 0 : e.preferences) == null ? void 0 : d.onClickFilter, { addOrUpdateFilterValues: i, addFilteringCard: a } = fn(), { data: s } = aa(e), l = s == null ? void 0 : s.records;
|
|
35234
|
-
|
|
35236
|
+
fe(() => {
|
|
35235
35237
|
(!r || (r == null ? void 0 : r.length) === 0) && t.getRowModel().rows.forEach((h) => {
|
|
35236
35238
|
h.getIsSelected() && h.toggleSelected();
|
|
35237
35239
|
});
|
|
@@ -35425,9 +35427,9 @@ async function Ste(e) {
|
|
|
35425
35427
|
}
|
|
35426
35428
|
const Cte = (e) => {
|
|
35427
35429
|
const [t, n] = ge([]), [r, o] = ge(!1), [i, a] = ge(null);
|
|
35428
|
-
|
|
35430
|
+
fe(() => {
|
|
35429
35431
|
window.React = Q, window.ReactDOM = Cc, window.React.jsx = XC.jsx, window.React.jsxs = XC.jsxs, o(!0);
|
|
35430
|
-
}, []),
|
|
35432
|
+
}, []), fe(() => {
|
|
35431
35433
|
e && r && Ste(e).then((c) => {
|
|
35432
35434
|
n(c.visuals), a(c);
|
|
35433
35435
|
}).catch(() => {
|
|
@@ -35464,9 +35466,9 @@ function _te({
|
|
|
35464
35466
|
card: n
|
|
35465
35467
|
}) {
|
|
35466
35468
|
const { isFetching: r, isLoading: o, data: i, queryKey: a } = aa(n), s = JSON.stringify(a);
|
|
35467
|
-
return
|
|
35469
|
+
return fe(() => {
|
|
35468
35470
|
e == null || e(o);
|
|
35469
|
-
}, [r, o, e]),
|
|
35471
|
+
}, [r, o, e]), fe(() => {
|
|
35470
35472
|
t(n.id, (i == null ? void 0 : i.records) || []);
|
|
35471
35473
|
}, [i == null ? void 0 : i.records, n.id, s, t]), /* @__PURE__ */ y(pt, {});
|
|
35472
35474
|
}
|
|
@@ -36182,13 +36184,13 @@ Kt.register(Np);
|
|
|
36182
36184
|
Kt.register(uT);
|
|
36183
36185
|
function TN({ cfg: e, onDatapointClick: t }) {
|
|
36184
36186
|
var d;
|
|
36185
|
-
const [n, r] = ge(""), o = se((h) => h.selectedLensId), i =
|
|
36186
|
-
|
|
36187
|
+
const [n, r] = ge(""), o = se((h) => h.selectedLensId), i = he(null), [a, s] = ge(), l = se((h) => h.themeStyle);
|
|
36188
|
+
fe(() => {
|
|
36187
36189
|
if (i.current) {
|
|
36188
36190
|
const h = window.getComputedStyle(i.current);
|
|
36189
36191
|
r(h.fontFamily);
|
|
36190
36192
|
}
|
|
36191
|
-
}, []),
|
|
36193
|
+
}, []), fe(() => {
|
|
36192
36194
|
var g, m, b, v;
|
|
36193
36195
|
if (!n) return;
|
|
36194
36196
|
(m = (g = l == null ? void 0 : l.chart) == null ? void 0 : g.font) != null && m.family && (Kt.defaults.font = {
|
|
@@ -36823,7 +36825,7 @@ function GN(e) {
|
|
|
36823
36825
|
// Keep the previous data when the query is disabled
|
|
36824
36826
|
}
|
|
36825
36827
|
);
|
|
36826
|
-
return
|
|
36828
|
+
return fe(() => {
|
|
36827
36829
|
w && s && l(!1);
|
|
36828
36830
|
}, [w, s]), { data: p, isLoading: g, isFetching: m, isError: b, refetch: v };
|
|
36829
36831
|
}
|
|
@@ -38146,7 +38148,7 @@ function jk(e, t) {
|
|
|
38146
38148
|
}
|
|
38147
38149
|
function gre(e) {
|
|
38148
38150
|
const [t, n] = ge(), [r, o] = ge();
|
|
38149
|
-
return
|
|
38151
|
+
return fe(() => {
|
|
38150
38152
|
if (e && (e == null ? void 0 : e.length) > 0) {
|
|
38151
38153
|
const i = e[0];
|
|
38152
38154
|
if (!i.min || !i.max)
|
|
@@ -38171,47 +38173,48 @@ function Z1e(e) {
|
|
|
38171
38173
|
return r;
|
|
38172
38174
|
}
|
|
38173
38175
|
function r5(e) {
|
|
38174
|
-
const t = se((
|
|
38175
|
-
(
|
|
38176
|
+
const t = se((p) => p.filterValues), n = se(
|
|
38177
|
+
(p) => p.actions.addOrUpdateFilterValue
|
|
38176
38178
|
), { removeFilterValues: r } = fn(), { data: o, isLoading: i, isFetching: a, isError: s } = GN(e), { dateRange: l, setDateRange: c, initialDateRange: u } = gre(
|
|
38177
38179
|
o == null ? void 0 : o.records
|
|
38178
38180
|
);
|
|
38179
|
-
|
|
38180
|
-
var
|
|
38181
|
+
fe(() => {
|
|
38182
|
+
var p;
|
|
38181
38183
|
if (t) {
|
|
38182
|
-
const
|
|
38183
|
-
(
|
|
38184
|
+
const g = t.find(
|
|
38185
|
+
(m) => m.filterId === e.id
|
|
38184
38186
|
);
|
|
38185
|
-
if (
|
|
38186
|
-
|
|
38187
|
-
else if (((f = p.values) == null ? void 0 : f.length) === 2) {
|
|
38188
|
-
const [g, m] = p.values;
|
|
38187
|
+
if (g && ((p = g.values) == null ? void 0 : p.length) === 2) {
|
|
38188
|
+
const [m, b] = g.values;
|
|
38189
38189
|
c({
|
|
38190
|
-
from:
|
|
38191
|
-
to:
|
|
38190
|
+
from: m ? new Date(m) : void 0,
|
|
38191
|
+
to: b ? new Date(b) : void 0
|
|
38192
38192
|
});
|
|
38193
38193
|
}
|
|
38194
38194
|
}
|
|
38195
38195
|
}, [t, e.id, u, c]);
|
|
38196
38196
|
function d() {
|
|
38197
|
-
r(e.id), c(
|
|
38197
|
+
r(e.id), c(void 0);
|
|
38198
38198
|
}
|
|
38199
|
-
function h(
|
|
38200
|
-
|
|
38201
|
-
|
|
38202
|
-
|
|
38203
|
-
|
|
38204
|
-
|
|
38199
|
+
function h() {
|
|
38200
|
+
c(u);
|
|
38201
|
+
}
|
|
38202
|
+
function f(p) {
|
|
38203
|
+
if (!p) return;
|
|
38204
|
+
let g = [p == null ? void 0 : p.from, p == null ? void 0 : p.to];
|
|
38205
|
+
p.from && p.to === void 0 ? g = [p.from, Lk(p.from, 24)] : p.from && p.to && p.from.getTime() === p.to.getTime() ? g = [p.from, Lk(p.to, 24)] : g = [p.from, p.to], c({
|
|
38206
|
+
from: g[0],
|
|
38207
|
+
to: g[1]
|
|
38205
38208
|
});
|
|
38206
|
-
const
|
|
38209
|
+
const m = {
|
|
38207
38210
|
filterId: e.id,
|
|
38208
38211
|
connectionType: e.database === "NA" ? "api" : "database",
|
|
38209
38212
|
valueType: Du(e),
|
|
38210
38213
|
name: e.column,
|
|
38211
38214
|
operation: "between",
|
|
38212
|
-
values:
|
|
38215
|
+
values: g
|
|
38213
38216
|
};
|
|
38214
|
-
n(
|
|
38217
|
+
n(m);
|
|
38215
38218
|
}
|
|
38216
38219
|
return {
|
|
38217
38220
|
records: o == null ? void 0 : o.records,
|
|
@@ -38222,7 +38225,8 @@ function r5(e) {
|
|
|
38222
38225
|
dateRange: l,
|
|
38223
38226
|
setDateRange: c,
|
|
38224
38227
|
handleClear: d,
|
|
38225
|
-
handleChange:
|
|
38228
|
+
handleChange: f,
|
|
38229
|
+
handleReset: h
|
|
38226
38230
|
};
|
|
38227
38231
|
}
|
|
38228
38232
|
var Ae = function() {
|
|
@@ -39041,7 +39045,7 @@ function Toe(e, t) {
|
|
|
39041
39045
|
}
|
|
39042
39046
|
function Ioe(e, t, n) {
|
|
39043
39047
|
var r, o, i, a = Nt(), s = fS(), l = Eoe(e, t), c = Poe(e, l), u = Doe(), d = !!(a.onDayClick || a.mode !== "default");
|
|
39044
|
-
|
|
39048
|
+
fe(function() {
|
|
39045
39049
|
var C;
|
|
39046
39050
|
l.outside || s.focusedDay && d && mr(s.focusedDay, e) && ((C = n.current) === null || C === void 0 || C.focus());
|
|
39047
39051
|
}, [
|
|
@@ -39067,7 +39071,7 @@ function Ioe(e, t, n) {
|
|
|
39067
39071
|
return S;
|
|
39068
39072
|
}
|
|
39069
39073
|
function Aoe(e) {
|
|
39070
|
-
var t =
|
|
39074
|
+
var t = he(null), n = Ioe(e.date, e.displayMonth, t);
|
|
39071
39075
|
return n.isHidden ? y("div", { role: "gridcell" }) : n.isButton ? y(ag, Ae({ name: "day", ref: t }, n.buttonProps)) : y("div", Ae({}, n.divProps));
|
|
39072
39076
|
}
|
|
39073
39077
|
function Noe(e) {
|
|
@@ -39125,7 +39129,7 @@ function $oe(e) {
|
|
|
39125
39129
|
function zoe() {
|
|
39126
39130
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
39127
39131
|
}
|
|
39128
|
-
var Boe = zoe() ? Sc :
|
|
39132
|
+
var Boe = zoe() ? Sc : fe, ky = !1, Voe = 0;
|
|
39129
39133
|
function qk() {
|
|
39130
39134
|
return "react-day-picker-".concat(++Voe);
|
|
39131
39135
|
}
|
|
@@ -39133,7 +39137,7 @@ function joe(e) {
|
|
|
39133
39137
|
var t, n = e ?? (ky ? qk() : null), r = ge(n), o = r[0], i = r[1];
|
|
39134
39138
|
return Boe(function() {
|
|
39135
39139
|
o === null && i(qk());
|
|
39136
|
-
}, []),
|
|
39140
|
+
}, []), fe(function() {
|
|
39137
39141
|
ky === !1 && (ky = !0);
|
|
39138
39142
|
}, []), (t = e ?? o) !== null && t !== void 0 ? t : void 0;
|
|
39139
39143
|
}
|
|
@@ -39149,7 +39153,7 @@ function Woe(e) {
|
|
|
39149
39153
|
}
|
|
39150
39154
|
function Uoe(e) {
|
|
39151
39155
|
var t, n, r = e.initialProps, o = Nt(), i = fS(), a = pf(), s = ge(!1), l = s[0], c = s[1];
|
|
39152
|
-
|
|
39156
|
+
fe(function() {
|
|
39153
39157
|
o.initialFocus && i.focusTarget && (l || (i.focus(i.focusTarget), c(!0)));
|
|
39154
39158
|
}, [
|
|
39155
39159
|
o.initialFocus,
|
|
@@ -39341,9 +39345,12 @@ function Koe({
|
|
|
39341
39345
|
isError: l,
|
|
39342
39346
|
setDateRange: c,
|
|
39343
39347
|
handleClear: u,
|
|
39344
|
-
handleChange: d
|
|
39348
|
+
handleChange: d,
|
|
39349
|
+
handleReset: h
|
|
39345
39350
|
} = r5(e);
|
|
39346
|
-
return
|
|
39351
|
+
return fe(() => {
|
|
39352
|
+
!n && !i && h();
|
|
39353
|
+
}, [n, i, h]), a || s ? /* @__PURE__ */ y("div", { children: /* @__PURE__ */ y(kl, { className: "h-8 w-full bg-foreground/10" }) }) : l ? /* @__PURE__ */ y("div", { className: "h-8 w-full bg-muted px-2", children: "Error" }) : o ? /* @__PURE__ */ y(
|
|
39347
39354
|
Yoe,
|
|
39348
39355
|
{
|
|
39349
39356
|
title: e.title,
|
|
@@ -39398,7 +39405,7 @@ function pS(e) {
|
|
|
39398
39405
|
};
|
|
39399
39406
|
}) : [];
|
|
39400
39407
|
}, [c, e.column]);
|
|
39401
|
-
|
|
39408
|
+
fe(() => {
|
|
39402
39409
|
if (i) {
|
|
39403
39410
|
const C = i.find(
|
|
39404
39411
|
(E) => E.filterId === e.id
|
|
@@ -39414,7 +39421,7 @@ function pS(e) {
|
|
|
39414
39421
|
E && n(E);
|
|
39415
39422
|
}
|
|
39416
39423
|
}
|
|
39417
|
-
}, [c, a, i, e.id, f]),
|
|
39424
|
+
}, [c, a, i, e.id, f]), fe(() => {
|
|
39418
39425
|
if (i && !i.find(
|
|
39419
39426
|
(E) => E.filterId === e.id
|
|
39420
39427
|
)) {
|
|
@@ -39502,7 +39509,7 @@ function pS(e) {
|
|
|
39502
39509
|
const g5 = typeof document < "u" ? Q.useLayoutEffect : () => {
|
|
39503
39510
|
};
|
|
39504
39511
|
function Qoe(e) {
|
|
39505
|
-
const t =
|
|
39512
|
+
const t = he(null);
|
|
39506
39513
|
return g5(() => {
|
|
39507
39514
|
t.current = e;
|
|
39508
39515
|
}, [
|
|
@@ -39556,7 +39563,7 @@ class rie {
|
|
|
39556
39563
|
}
|
|
39557
39564
|
}
|
|
39558
39565
|
function b5(e) {
|
|
39559
|
-
let t =
|
|
39566
|
+
let t = he({
|
|
39560
39567
|
isFocused: !1,
|
|
39561
39568
|
observer: null
|
|
39562
39569
|
});
|
|
@@ -39695,7 +39702,7 @@ function cie(e, t, n) {
|
|
|
39695
39702
|
return e = e || (n == null ? void 0 : n.target) instanceof o && !lie.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof i || (n == null ? void 0 : n.target) instanceof a && (n == null ? void 0 : n.target.isContentEditable), !(e && t === "keyboard" && n instanceof s && !iie[n.key]);
|
|
39696
39703
|
}
|
|
39697
39704
|
function uie(e, t, n) {
|
|
39698
|
-
sw(),
|
|
39705
|
+
sw(), fe(() => {
|
|
39699
39706
|
let r = (o, i) => {
|
|
39700
39707
|
cie(!!(n != null && n.isTextInput), o, i) && e(S5());
|
|
39701
39708
|
};
|
|
@@ -39705,7 +39712,7 @@ function uie(e, t, n) {
|
|
|
39705
39712
|
}, t);
|
|
39706
39713
|
}
|
|
39707
39714
|
function die(e) {
|
|
39708
|
-
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i =
|
|
39715
|
+
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i = he({
|
|
39709
39716
|
isFocusWithin: !1
|
|
39710
39717
|
}), a = _e((c) => {
|
|
39711
39718
|
i.current.isFocusWithin && !c.currentTarget.contains(c.relatedTarget) && (i.current.isFocusWithin = !1, n && n(c), o && o(!1));
|
|
@@ -39749,13 +39756,13 @@ function fie() {
|
|
|
39749
39756
|
};
|
|
39750
39757
|
}
|
|
39751
39758
|
function C5(e) {
|
|
39752
|
-
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, a] = ge(!1), s =
|
|
39759
|
+
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, a] = ge(!1), s = he({
|
|
39753
39760
|
isHovered: !1,
|
|
39754
39761
|
ignoreEmulatedMouseEvents: !1,
|
|
39755
39762
|
pointerType: "",
|
|
39756
39763
|
target: null
|
|
39757
39764
|
}).current;
|
|
39758
|
-
|
|
39765
|
+
fe(fie, []);
|
|
39759
39766
|
let { hoverProps: l, triggerHoverEnd: c } = Re(() => {
|
|
39760
39767
|
let u = (f, p) => {
|
|
39761
39768
|
if (s.pointerType = p, o || p === "touch" || s.isHovered || !f.currentTarget.contains(f.target)) return;
|
|
@@ -39797,7 +39804,7 @@ function C5(e) {
|
|
|
39797
39804
|
o,
|
|
39798
39805
|
s
|
|
39799
39806
|
]);
|
|
39800
|
-
return
|
|
39807
|
+
return fe(() => {
|
|
39801
39808
|
o && c({
|
|
39802
39809
|
currentTarget: s.target
|
|
39803
39810
|
}, s.pointerType);
|
|
@@ -39809,7 +39816,7 @@ function C5(e) {
|
|
|
39809
39816
|
};
|
|
39810
39817
|
}
|
|
39811
39818
|
function _5(e = {}) {
|
|
39812
|
-
let { autoFocus: t = !1, isTextInput: n, within: r } = e, o =
|
|
39819
|
+
let { autoFocus: t = !1, isTextInput: n, within: r } = e, o = he({
|
|
39813
39820
|
isFocused: !1,
|
|
39814
39821
|
isFocusVisible: t || S5()
|
|
39815
39822
|
}), [i, a] = ge(!1), [s, l] = ge(() => o.current.isFocused && o.current.isFocusVisible), c = _e(() => l(o.current.isFocused && o.current.isFocusVisible), []), u = _e((f) => {
|
|
@@ -39911,13 +39918,13 @@ function Wo() {
|
|
|
39911
39918
|
}
|
|
39912
39919
|
function yf() {
|
|
39913
39920
|
let [e] = ge(Wo);
|
|
39914
|
-
return
|
|
39921
|
+
return fe(() => () => e.dispose(), [e]), e;
|
|
39915
39922
|
}
|
|
39916
39923
|
let Xt = (e, t) => {
|
|
39917
|
-
vs.isServer ?
|
|
39924
|
+
vs.isServer ? fe(e, t) : Sc(e, t);
|
|
39918
39925
|
};
|
|
39919
39926
|
function Ks(e) {
|
|
39920
|
-
let t =
|
|
39927
|
+
let t = he(e);
|
|
39921
39928
|
return Xt(() => {
|
|
39922
39929
|
t.current = e;
|
|
39923
39930
|
}, [e]), t;
|
|
@@ -39934,7 +39941,7 @@ function bie(e, t) {
|
|
|
39934
39941
|
return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
|
|
39935
39942
|
}
|
|
39936
39943
|
function yie({ disabled: e = !1 } = {}) {
|
|
39937
|
-
let t =
|
|
39944
|
+
let t = he(null), [n, r] = ge(!1), o = yf(), i = je(() => {
|
|
39938
39945
|
t.current = null, r(!1), o.dispose();
|
|
39939
39946
|
}), a = je((s) => {
|
|
39940
39947
|
if (o.dispose(), t.current === null) {
|
|
@@ -40016,7 +40023,7 @@ function Th(e, t = {}, n, r, o) {
|
|
|
40016
40023
|
return on(i, Object.assign({}, Oy(l, ["ref"]), i !== cs && c, i !== cs && d), u);
|
|
40017
40024
|
}
|
|
40018
40025
|
function Sie() {
|
|
40019
|
-
let e =
|
|
40026
|
+
let e = he([]), t = _e((n) => {
|
|
40020
40027
|
for (let r of e.current) r != null && (typeof r == "function" ? r(n) : r.current = n);
|
|
40021
40028
|
}, []);
|
|
40022
40029
|
return (...n) => {
|
|
@@ -40075,7 +40082,7 @@ function _ie(e) {
|
|
|
40075
40082
|
return Q.version.split(".")[0] >= "19" ? e.props.ref : e.ref;
|
|
40076
40083
|
}
|
|
40077
40084
|
function Eie(e, t, n) {
|
|
40078
|
-
let [r, o] = ge(n), i = e !== void 0, a =
|
|
40085
|
+
let [r, o] = ge(n), i = e !== void 0, a = he(i), s = he(!1), l = he(!1);
|
|
40079
40086
|
return i && !a.current && !s.current ? (s.current = !0, a.current = i, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !i && a.current && !l.current && (l.current = !0, a.current = i, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [i ? e : r, je((c) => (i || o(c), t == null ? void 0 : t(c)))];
|
|
40080
40087
|
}
|
|
40081
40088
|
function Rie(e) {
|
|
@@ -40109,12 +40116,12 @@ function Oie({ children: e }) {
|
|
|
40109
40116
|
}
|
|
40110
40117
|
function Mie({ data: e, form: t, disabled: n, onReset: r, overrides: o }) {
|
|
40111
40118
|
let [i, a] = ge(null), s = yf();
|
|
40112
|
-
return
|
|
40119
|
+
return fe(() => {
|
|
40113
40120
|
if (r && i) return s.addEventListener(i, "reset", r);
|
|
40114
40121
|
}, [i, t, r]), Q.createElement(Oie, null, Q.createElement(Tie, { setForm: a, formId: t }), k5(e).map(([l, c]) => Q.createElement(O5, { features: yS.Hidden, ...ja({ key: l, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: t, disabled: n, name: l, value: c, ...o }) })));
|
|
40115
40122
|
}
|
|
40116
40123
|
function Tie({ setForm: e, formId: t }) {
|
|
40117
|
-
return
|
|
40124
|
+
return fe(() => {
|
|
40118
40125
|
if (t) {
|
|
40119
40126
|
let n = document.getElementById(t);
|
|
40120
40127
|
n && e(n);
|
|
@@ -40149,8 +40156,8 @@ function Fie(e, t = !0) {
|
|
|
40149
40156
|
return Object.assign(e, { [T5]: t });
|
|
40150
40157
|
}
|
|
40151
40158
|
function Di(...e) {
|
|
40152
|
-
let t =
|
|
40153
|
-
|
|
40159
|
+
let t = he(e);
|
|
40160
|
+
fe(() => {
|
|
40154
40161
|
t.current = e;
|
|
40155
40162
|
}, [e]);
|
|
40156
40163
|
let n = je((r) => {
|
|
@@ -40841,7 +40848,7 @@ function uae(e, t, n) {
|
|
|
40841
40848
|
let i = o.getBoundingClientRect();
|
|
40842
40849
|
i.x === 0 && i.y === 0 && i.width === 0 && i.height === 0 && n();
|
|
40843
40850
|
});
|
|
40844
|
-
|
|
40851
|
+
fe(() => {
|
|
40845
40852
|
if (!e) return;
|
|
40846
40853
|
let o = t === null ? null : t instanceof HTMLElement ? t : t.current;
|
|
40847
40854
|
if (!o) return;
|
|
@@ -40897,7 +40904,7 @@ function B5() {
|
|
|
40897
40904
|
}
|
|
40898
40905
|
function au(e, t, n, r) {
|
|
40899
40906
|
let o = Ks(n);
|
|
40900
|
-
|
|
40907
|
+
fe(() => {
|
|
40901
40908
|
if (!e) return;
|
|
40902
40909
|
function i(a) {
|
|
40903
40910
|
o.current(a);
|
|
@@ -40907,7 +40914,7 @@ function au(e, t, n, r) {
|
|
|
40907
40914
|
}
|
|
40908
40915
|
function yae(e, t, n, r) {
|
|
40909
40916
|
let o = Ks(n);
|
|
40910
|
-
|
|
40917
|
+
fe(() => {
|
|
40911
40918
|
if (!e) return;
|
|
40912
40919
|
function i(a) {
|
|
40913
40920
|
o.current(a);
|
|
@@ -40926,7 +40933,7 @@ function vae(e, t, n) {
|
|
|
40926
40933
|
}(t);
|
|
40927
40934
|
for (let h of d) if (h !== null && (h.contains(u) || l.composed && l.composedPath().includes(h))) return;
|
|
40928
40935
|
return !pae(u, $5.Loose) && u.tabIndex !== -1 && l.preventDefault(), o.current(l, u);
|
|
40929
|
-
}, [o, t]), a =
|
|
40936
|
+
}, [o, t]), a = he(null);
|
|
40930
40937
|
au(r, "pointerdown", (l) => {
|
|
40931
40938
|
var c, u;
|
|
40932
40939
|
a.current = ((u = (c = l.composedPath) == null ? void 0 : c.call(l)) == null ? void 0 : u[0]) || l.target;
|
|
@@ -40936,7 +40943,7 @@ function vae(e, t, n) {
|
|
|
40936
40943
|
}, !0), au(r, "click", (l) => {
|
|
40937
40944
|
B5() || a.current && (i(l, () => a.current), a.current = null);
|
|
40938
40945
|
}, !0);
|
|
40939
|
-
let s =
|
|
40946
|
+
let s = he({ x: 0, y: 0 });
|
|
40940
40947
|
au(r, "touchstart", (l) => {
|
|
40941
40948
|
s.current.x = l.touches[0].clientX, s.current.y = l.touches[0].clientY;
|
|
40942
40949
|
}, !0), au(r, "touchend", (l) => {
|
|
@@ -40949,7 +40956,7 @@ function Mm(...e) {
|
|
|
40949
40956
|
}
|
|
40950
40957
|
function wae(e, t, n, r) {
|
|
40951
40958
|
let o = Ks(n);
|
|
40952
|
-
|
|
40959
|
+
fe(() => {
|
|
40953
40960
|
e = e ?? window;
|
|
40954
40961
|
function i(a) {
|
|
40955
40962
|
o.current(a);
|
|
@@ -40958,7 +40965,7 @@ function wae(e, t, n, r) {
|
|
|
40958
40965
|
}, [e, t, r]);
|
|
40959
40966
|
}
|
|
40960
40967
|
function V5(e) {
|
|
40961
|
-
let t =
|
|
40968
|
+
let t = he({ value: "", selectionStart: null, selectionEnd: null });
|
|
40962
40969
|
return wae(e, "blur", (n) => {
|
|
40963
40970
|
let r = n.target;
|
|
40964
40971
|
r instanceof HTMLInputElement && (t.current = { value: r.value, selectionStart: r.selectionStart, selectionEnd: r.selectionEnd });
|
|
@@ -41085,7 +41092,7 @@ function nP(e) {
|
|
|
41085
41092
|
return [e.screenX, e.screenY];
|
|
41086
41093
|
}
|
|
41087
41094
|
function Pae() {
|
|
41088
|
-
let e =
|
|
41095
|
+
let e = he([-1, -1]);
|
|
41089
41096
|
return { wasMoved(t) {
|
|
41090
41097
|
let n = nP(t);
|
|
41091
41098
|
return e.current[0] === n[0] && e.current[1] === n[1] ? !1 : (e.current = n, !0);
|
|
@@ -41109,7 +41116,7 @@ function Mae(e) {
|
|
|
41109
41116
|
return t;
|
|
41110
41117
|
}
|
|
41111
41118
|
function Tae(e, t, n, r) {
|
|
41112
|
-
let [o, i] = ge(n), { hasFlag: a, addFlag: s, removeFlag: l } = Dae(e && o ? 3 : 0), c =
|
|
41119
|
+
let [o, i] = ge(n), { hasFlag: a, addFlag: s, removeFlag: l } = Dae(e && o ? 3 : 0), c = he(!1), u = he(!1), d = yf();
|
|
41113
41120
|
return Xt(() => {
|
|
41114
41121
|
var h;
|
|
41115
41122
|
if (e) {
|
|
@@ -41158,8 +41165,8 @@ function Nae(e, { inFlight: t, prepare: n }) {
|
|
|
41158
41165
|
e.style.transition = "none", n(), e.offsetHeight, e.style.transition = r;
|
|
41159
41166
|
}
|
|
41160
41167
|
function Fae(e, { container: t, accept: n, walk: r }) {
|
|
41161
|
-
let o =
|
|
41162
|
-
|
|
41168
|
+
let o = he(n), i = he(r);
|
|
41169
|
+
fe(() => {
|
|
41163
41170
|
o.current = n, i.current = r;
|
|
41164
41171
|
}, [n, r]), Xt(() => {
|
|
41165
41172
|
if (!t || !e) return;
|
|
@@ -41170,8 +41177,8 @@ function Fae(e, { container: t, accept: n, walk: r }) {
|
|
|
41170
41177
|
}, [t, e, o, i]);
|
|
41171
41178
|
}
|
|
41172
41179
|
function iP(e, t) {
|
|
41173
|
-
let n =
|
|
41174
|
-
|
|
41180
|
+
let n = he([]), r = je(e);
|
|
41181
|
+
fe(() => {
|
|
41175
41182
|
let o = [...n.current];
|
|
41176
41183
|
for (let [i, a] of t.entries()) if (n.current[i] !== a) {
|
|
41177
41184
|
let s = r(t, o);
|
|
@@ -41205,7 +41212,7 @@ function H5(e) {
|
|
|
41205
41212
|
return t.current == null ? void 0 : t.current(...r);
|
|
41206
41213
|
}, []);
|
|
41207
41214
|
}
|
|
41208
|
-
var fw = typeof document < "u" ? Sc :
|
|
41215
|
+
var fw = typeof document < "u" ? Sc : fe;
|
|
41209
41216
|
let aP = !1, Bae = 0;
|
|
41210
41217
|
const sP = () => (
|
|
41211
41218
|
// Ensure the id is unique with multiple independent versions of Floating UI
|
|
@@ -41554,7 +41561,7 @@ function ase(e = null) {
|
|
|
41554
41561
|
}
|
|
41555
41562
|
let dP = 4;
|
|
41556
41563
|
function sse({ children: e, enabled: t = !0 }) {
|
|
41557
|
-
let [n, r] = ge(null), [o, i] = ge(0), a =
|
|
41564
|
+
let [n, r] = ge(null), [o, i] = ge(0), a = he(null), [s, l] = ge(null);
|
|
41558
41565
|
lse(s);
|
|
41559
41566
|
let c = t && n !== null && s !== null, { to: u = "bottom", gap: d = 0, offset: h = 0, padding: f = 0, inner: p } = cse(n, s), [g, m = "center"] = u.split(" ");
|
|
41560
41567
|
Xt(() => {
|
|
@@ -41728,8 +41735,8 @@ function hP(e, t) {
|
|
|
41728
41735
|
}
|
|
41729
41736
|
var CS = ((e) => (e[e.Left = 0] = "Left", e[e.Right = 2] = "Right", e))(CS || {});
|
|
41730
41737
|
function gse(e) {
|
|
41731
|
-
let t = je(e), n =
|
|
41732
|
-
|
|
41738
|
+
let t = je(e), n = he(!1);
|
|
41739
|
+
fe(() => (n.current = !1, () => {
|
|
41733
41740
|
n.current = !0, E5(() => {
|
|
41734
41741
|
n.current && t();
|
|
41735
41742
|
});
|
|
@@ -41761,14 +41768,14 @@ function wse(e) {
|
|
|
41761
41768
|
let l = r.createElement("div");
|
|
41762
41769
|
return l.setAttribute("id", "headlessui-portal-root"), r.body.appendChild(l);
|
|
41763
41770
|
});
|
|
41764
|
-
return
|
|
41771
|
+
return fe(() => {
|
|
41765
41772
|
o !== null && (r != null && r.body.contains(o) || r == null || r.body.appendChild(o));
|
|
41766
|
-
}, [o, r]),
|
|
41773
|
+
}, [o, r]), fe(() => {
|
|
41767
41774
|
t || n !== null && i(n.current);
|
|
41768
41775
|
}, [n, i, t]), o;
|
|
41769
41776
|
}
|
|
41770
41777
|
let U5 = cs, xse = yo(function(e, t) {
|
|
41771
|
-
let n = e, r =
|
|
41778
|
+
let n = e, r = he(null), o = Di(Fie((d) => {
|
|
41772
41779
|
r.current = d;
|
|
41773
41780
|
}), t), i = Mm(r), a = wse(r), [s] = ge(() => {
|
|
41774
41781
|
var d;
|
|
@@ -41906,7 +41913,7 @@ function Nse(e, t) {
|
|
|
41906
41913
|
let Fse = cs;
|
|
41907
41914
|
function Lse(e, t) {
|
|
41908
41915
|
var n, r;
|
|
41909
|
-
let o = mS(), { value: i, defaultValue: a, onChange: s, form: l, name: c, by: u, disabled: d = o || !1, onClose: h, __demoMode: f = !1, multiple: p = !1, immediate: g = !1, virtual: m = null, nullable: b, ...v } = e, w = Rie(a), [x = p ? [] : void 0, S] = Eie(i, s, w), [C, E] = Kw(Nse, { dataRef: F8(), comboboxState: f ? 0 : 1, isTyping: !1, options: [], virtual: m ? { options: m.options, disabled: (n = m.disabled) != null ? n : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: f }), k =
|
|
41916
|
+
let o = mS(), { value: i, defaultValue: a, onChange: s, form: l, name: c, by: u, disabled: d = o || !1, onClose: h, __demoMode: f = !1, multiple: p = !1, immediate: g = !1, virtual: m = null, nullable: b, ...v } = e, w = Rie(a), [x = p ? [] : void 0, S] = Eie(i, s, w), [C, E] = Kw(Nse, { dataRef: F8(), comboboxState: f ? 0 : 1, isTyping: !1, options: [], virtual: m ? { options: m.options, disabled: (n = m.disabled) != null ? n : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: f }), k = he(!1), D = he({ static: !1, hold: !1 }), O = iae(u), T = je((te) => m ? u === null ? m.options.indexOf(te) : m.options.findIndex((de) => O(de, te)) : C.options.findIndex((de) => O(de.dataRef.current.value, te))), A = _e((te) => Ci($.mode, { 1: () => x.some((de) => O(de, te)), 0: () => O(x, te) }), [x]), j = je((te) => C.activeOptionIndex === T(te)), $ = Re(() => ({ ...C, immediate: g, optionsPropsRef: D, value: x, defaultValue: w, disabled: d, mode: p ? 1 : 0, virtual: m ? C.virtual : null, get activeOptionIndex() {
|
|
41910
41917
|
if (k.current && C.activeOptionIndex === null && (m ? m.options.length > 0 : C.options.length > 0)) {
|
|
41911
41918
|
if (m) {
|
|
41912
41919
|
let de = m.options.findIndex((me) => {
|
|
@@ -41969,7 +41976,7 @@ function Lse(e, t) {
|
|
|
41969
41976
|
let $se = "input";
|
|
41970
41977
|
function zse(e, t) {
|
|
41971
41978
|
var n, r, o, i, a;
|
|
41972
|
-
let s = Fc("Combobox.Input"), l = wf("Combobox.Input"), c = js(), u = M5(), { id: d = u || `headlessui-combobox-input-${c}`, onChange: h, displayValue: f, disabled: p = s.disabled || !1, autoFocus: g = !1, type: m = "text", ...b } = e, v =
|
|
41979
|
+
let s = Fc("Combobox.Input"), l = wf("Combobox.Input"), c = js(), u = M5(), { id: d = u || `headlessui-combobox-input-${c}`, onChange: h, displayValue: f, disabled: p = s.disabled || !1, autoFocus: g = !1, type: m = "text", ...b } = e, v = he(null), w = Di(v, t, ose(), l.setInputElement), x = Mm(s.inputElement), S = yf(), C = je(() => {
|
|
41973
41980
|
l.onChange(null), s.optionsElement && (s.optionsElement.scrollTop = 0), l.goToOption(cn.Nothing);
|
|
41974
41981
|
}), E = Re(() => {
|
|
41975
41982
|
var R;
|
|
@@ -41992,7 +41999,7 @@ function zse(e, t) {
|
|
|
41992
41999
|
H.value = "", H.value = G, K !== null ? H.setSelectionRange(V, U, K) : H.setSelectionRange(V, U);
|
|
41993
42000
|
}
|
|
41994
42001
|
}, [s.comboboxState]);
|
|
41995
|
-
let k =
|
|
42002
|
+
let k = he(!1), D = je(() => {
|
|
41996
42003
|
k.current = !0;
|
|
41997
42004
|
}), O = je(() => {
|
|
41998
42005
|
S.nextFrame(() => {
|
|
@@ -42108,11 +42115,11 @@ function Wse(e, t) {
|
|
|
42108
42115
|
let Use = "div";
|
|
42109
42116
|
function qse(e, t) {
|
|
42110
42117
|
var n, r, o, i;
|
|
42111
|
-
let a = Fc("Combobox.Option"), s = wf("Combobox.Option"), l = js(), { id: c = `headlessui-combobox-option-${l}`, value: u, disabled: d = (o = (r = (n = a.virtual) == null ? void 0 : n.disabled) == null ? void 0 : r.call(n, u)) != null ? o : !1, order: h = null, ...f } = e, p = V5(a.inputElement), g = a.virtual ? a.activeOptionIndex === a.calculateIndex(u) : a.activeOptionIndex === null ? !1 : ((i = a.options[a.activeOptionIndex]) == null ? void 0 : i.id) === c, m = a.isSelected(u), b =
|
|
42118
|
+
let a = Fc("Combobox.Option"), s = wf("Combobox.Option"), l = js(), { id: c = `headlessui-combobox-option-${l}`, value: u, disabled: d = (o = (r = (n = a.virtual) == null ? void 0 : n.disabled) == null ? void 0 : r.call(n, u)) != null ? o : !1, order: h = null, ...f } = e, p = V5(a.inputElement), g = a.virtual ? a.activeOptionIndex === a.calculateIndex(u) : a.activeOptionIndex === null ? !1 : ((i = a.options[a.activeOptionIndex]) == null ? void 0 : i.id) === c, m = a.isSelected(u), b = he(null), v = Ks({ disabled: d, value: u, domRef: b, order: h }), w = rt(G5), x = Di(t, b, w ? w.measureElement : null), S = je(() => {
|
|
42112
42119
|
s.setIsTyping(!1), s.onChange(u);
|
|
42113
42120
|
});
|
|
42114
42121
|
Xt(() => s.registerOption(c, v), [v, c]);
|
|
42115
|
-
let C =
|
|
42122
|
+
let C = he(!(a.virtual || a.__demoMode));
|
|
42116
42123
|
Xt(() => {
|
|
42117
42124
|
if (!a.virtual && !a.__demoMode) return Wo().requestAnimationFrame(() => {
|
|
42118
42125
|
C.current = !0;
|
|
@@ -42140,7 +42147,7 @@ function qse(e, t) {
|
|
|
42140
42147
|
}
|
|
42141
42148
|
let Gse = yo(Lse), Y5 = yo(Vse), K5 = yo(zse), Yse = Uie, X5 = yo(Wse), Q5 = yo(qse), Kse = Object.assign(Gse, { Input: K5, Button: Y5, Label: Yse, Options: X5, Option: Q5 });
|
|
42142
42149
|
function Xse({ elementId: e }) {
|
|
42143
|
-
return
|
|
42150
|
+
return fe(() => {
|
|
42144
42151
|
const t = document.getElementById(e);
|
|
42145
42152
|
return t && t.classList.add("semaphor-scope"), () => {
|
|
42146
42153
|
t && t.classList.remove("semaphor-scope");
|
|
@@ -43009,7 +43016,7 @@ function ble({
|
|
|
43009
43016
|
setSelectedSchemaName: h,
|
|
43010
43017
|
setSelectedTableName: f
|
|
43011
43018
|
} = Gx();
|
|
43012
|
-
|
|
43019
|
+
fe(() => {
|
|
43013
43020
|
if (s === e.id && l && !a) {
|
|
43014
43021
|
const m = o == null ? void 0 : o.current;
|
|
43015
43022
|
m == null || m.scrollIntoView({
|
|
@@ -43354,7 +43361,7 @@ function _le({ sheet: e }) {
|
|
|
43354
43361
|
), r = se((w) => w.themeStyle), o = se((w) => w.selectedSheetId), i = e.layouts, a = se((w) => w.dashboard.filters), s = e.frames, { setSheetLayouts: l, setCurrentBreakpoint: c } = se(
|
|
43355
43362
|
(w) => w.actions
|
|
43356
43363
|
);
|
|
43357
|
-
|
|
43364
|
+
fe(() => {
|
|
43358
43365
|
document.documentElement.style.setProperty(
|
|
43359
43366
|
"--placeholder-border-radius",
|
|
43360
43367
|
`${r == null ? void 0 : r.cardBorderRadius}px`
|
|
@@ -55269,7 +55276,7 @@ function Mge({
|
|
|
55269
55276
|
}
|
|
55270
55277
|
function Tge({ children: e, handleRun: t }) {
|
|
55271
55278
|
const n = se((s) => s.isVisualEditing), [r, o] = ge(!1);
|
|
55272
|
-
|
|
55279
|
+
he(null);
|
|
55273
55280
|
const i = () => {
|
|
55274
55281
|
navigator.clipboard.writeText(a).then(() => {
|
|
55275
55282
|
o(!0), setTimeout(() => o(!1), 2e3);
|
|
@@ -56860,7 +56867,7 @@ const Fme = () => Nw, [Fw, Lw] = Cf && window.addEventListener ? [
|
|
|
56860
56867
|
}, Vme = {
|
|
56861
56868
|
initFocus: $me,
|
|
56862
56869
|
initReconnect: zme
|
|
56863
|
-
}, R2 = !Q.useId, Id = !Cf || Ame, jme = (e) => Nme() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Xy = Id ?
|
|
56870
|
+
}, R2 = !Q.useId, Id = !Cf || Ame, jme = (e) => Nme() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Xy = Id ? fe : Sc, Qy = typeof navigator < "u" && navigator.connection, k2 = !Id && Qy && ([
|
|
56864
56871
|
"slow-2g",
|
|
56865
56872
|
"2g"
|
|
56866
56873
|
].includes(Qy.effectiveType) || Qy.saveData), $h = /* @__PURE__ */ new WeakMap(), Jy = (e, t) => Iw.prototype.toString.call(e) === `[object ${t}]`;
|
|
@@ -57112,7 +57119,7 @@ const Zy = Q.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
57112
57119
|
}), ev = {
|
|
57113
57120
|
dedupe: !0
|
|
57114
57121
|
}, sbe = (e, t, n) => {
|
|
57115
|
-
const { cache: r, compare: o, suspense: i, fallbackData: a, revalidateOnMount: s, revalidateIfStale: l, refreshInterval: c, refreshWhenHidden: u, refreshWhenOffline: d, keepPreviousData: h } = n, [f, p, g, m] = gi.get(r), [b, v] = bC(e), w =
|
|
57122
|
+
const { cache: r, compare: o, suspense: i, fallbackData: a, revalidateOnMount: s, revalidateIfStale: l, refreshInterval: c, refreshWhenHidden: u, refreshWhenOffline: d, keepPreviousData: h } = n, [f, p, g, m] = gi.get(r), [b, v] = bC(e), w = he(!1), x = he(!1), S = he(b), C = he(t), E = he(n), k = () => E.current, D = () => k().isVisible() && k().isOnline(), [O, T, A, j] = H4(r, b), $ = he({}).current, M = lt(a) ? lt(n.fallback) ? er : n.fallback[b] : a, I = (ie, te) => {
|
|
57116
57123
|
for (const de in $) {
|
|
57117
57124
|
const me = de;
|
|
57118
57125
|
if (me === "data") {
|
|
@@ -57151,7 +57158,7 @@ const Zy = Q.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
57151
57158
|
r,
|
|
57152
57159
|
b
|
|
57153
57160
|
]
|
|
57154
|
-
), F[0], F[1]), B = !w.current, P = f[b] && f[b].length > 0, q = L.data, N = lt(q) ? M && j4(M) ? Zy(M) : M : q, R = L.error, W =
|
|
57161
|
+
), F[0], F[1]), B = !w.current, P = f[b] && f[b].length > 0, q = L.data, N = lt(q) ? M && j4(M) ? Zy(M) : M : q, R = L.error, W = he(N), H = h ? lt(q) ? lt(W.current) ? N : W.current : q : N, G = P && !lt(R) ? !1 : B && !lt(s) ? s : k().isPaused() ? !1 : i ? lt(N) ? !1 : l : lt(N) || l, V = !!(b && t && B && G), U = lt(L.isValidating) ? V : L.isValidating, K = lt(L.isLoading) ? V : L.isLoading, ee = _e(
|
|
57155
57162
|
async (ie) => {
|
|
57156
57163
|
const te = C.current;
|
|
57157
57164
|
if (!b || !te || x.current || k().isPaused())
|
|
@@ -57313,7 +57320,7 @@ function D2(e, t) {
|
|
|
57313
57320
|
}
|
|
57314
57321
|
function dbe(e) {
|
|
57315
57322
|
const [t, n] = ge(e);
|
|
57316
|
-
return
|
|
57323
|
+
return fe(() => {
|
|
57317
57324
|
Mw(e, t) || n(e);
|
|
57318
57325
|
}, [e, t]), t;
|
|
57319
57326
|
}
|
|
@@ -57345,20 +57352,20 @@ function fbe({
|
|
|
57345
57352
|
[S, "messages"],
|
|
57346
57353
|
null,
|
|
57347
57354
|
{ fallbackData: E }
|
|
57348
|
-
), O =
|
|
57349
|
-
|
|
57355
|
+
), O = he(k || []);
|
|
57356
|
+
fe(() => {
|
|
57350
57357
|
O.current = k || [];
|
|
57351
57358
|
}, [k]);
|
|
57352
|
-
const { data: T, mutate: A } = zh([S, "streamData"], null), j =
|
|
57353
|
-
|
|
57359
|
+
const { data: T, mutate: A } = zh([S, "streamData"], null), j = he(T);
|
|
57360
|
+
fe(() => {
|
|
57354
57361
|
j.current = T;
|
|
57355
57362
|
}, [T]);
|
|
57356
|
-
const { data: $ = "ready", mutate: M } = zh([S, "status"], null), { data: I = void 0, mutate: F } = zh([S, "error"], null), L =
|
|
57363
|
+
const { data: $ = "ready", mutate: M } = zh([S, "status"], null), { data: I = void 0, mutate: F } = zh([S, "error"], null), L = he(null), B = he({
|
|
57357
57364
|
credentials: h,
|
|
57358
57365
|
headers: f,
|
|
57359
57366
|
body: p
|
|
57360
57367
|
});
|
|
57361
|
-
|
|
57368
|
+
fe(() => {
|
|
57362
57369
|
B.current = {
|
|
57363
57370
|
credentials: h,
|
|
57364
57371
|
headers: f,
|
|
@@ -57687,7 +57694,7 @@ function pbe({
|
|
|
57687
57694
|
inputRef: t,
|
|
57688
57695
|
messages: n
|
|
57689
57696
|
}) {
|
|
57690
|
-
|
|
57697
|
+
fe(() => {
|
|
57691
57698
|
const r = setTimeout(() => {
|
|
57692
57699
|
var o;
|
|
57693
57700
|
e.current && (e.current.scroll({
|
|
@@ -58587,7 +58594,7 @@ function Tye({
|
|
|
58587
58594
|
open: e,
|
|
58588
58595
|
setOpen: t
|
|
58589
58596
|
}) {
|
|
58590
|
-
const [n, r] = ge(!1), [o, i] = ge(Sv), [a, s] = ge(!1), l =
|
|
58597
|
+
const [n, r] = ge(!1), [o, i] = ge(Sv), [a, s] = ge(!1), l = he(null), c = he(null), u = se(
|
|
58591
58598
|
(A) => A.dashboard.aiScopeTables
|
|
58592
58599
|
), {
|
|
58593
58600
|
append: d,
|
|
@@ -58609,7 +58616,7 @@ function Tye({
|
|
|
58609
58616
|
scrollContainerRef: c,
|
|
58610
58617
|
inputRef: l,
|
|
58611
58618
|
messages: v
|
|
58612
|
-
}),
|
|
58619
|
+
}), fe(() => {
|
|
58613
58620
|
var A;
|
|
58614
58621
|
e && ((A = l.current) == null || A.focus());
|
|
58615
58622
|
}, [e]);
|
|
@@ -58997,7 +59004,7 @@ function ave(e) {
|
|
|
58997
59004
|
const t = e.current, { getSelectedFrame: n, addFrame: r, setSelectedFrameId: o } = fn(), i = se((u) => u.dashboard.sheets), s = se((u) => u.selectedSheetId) ?? (i == null ? void 0 : i[0].id), l = se(
|
|
58998
59005
|
(u) => u.isDashboardEditing
|
|
58999
59006
|
), c = se((u) => u.isVisualEditing);
|
|
59000
|
-
|
|
59007
|
+
fe(() => {
|
|
59001
59008
|
if (!l || c) return;
|
|
59002
59009
|
async function u(f) {
|
|
59003
59010
|
const p = f.ctrlKey || f.metaKey;
|
|
@@ -59045,7 +59052,7 @@ function ave(e) {
|
|
|
59045
59052
|
]);
|
|
59046
59053
|
}
|
|
59047
59054
|
function sve() {
|
|
59048
|
-
const { showAssistant: e } = Jr(), t =
|
|
59055
|
+
const { showAssistant: e } = Jr(), t = he(null), n = he(null), [r, o] = ge(!1), [i, a] = ge(!1), s = se((S) => S.themeStyle), l = se((S) => {
|
|
59049
59056
|
var C;
|
|
59050
59057
|
return (C = S.dashboard) == null ? void 0 : C.sheets;
|
|
59051
59058
|
}), c = se(
|
|
@@ -59738,9 +59745,9 @@ function K3(e) {
|
|
|
59738
59745
|
function Vc(e) {
|
|
59739
59746
|
return e ? Bc(e) ? e.document : PC(e) ? DC(e) ? e : kf(e) || K3(e) ? e.ownerDocument : document : document : document;
|
|
59740
59747
|
}
|
|
59741
|
-
const go = Gm ? Sc :
|
|
59748
|
+
const go = Gm ? Sc : fe;
|
|
59742
59749
|
function Ym(e) {
|
|
59743
|
-
const t =
|
|
59750
|
+
const t = he(e);
|
|
59744
59751
|
return go(() => {
|
|
59745
59752
|
t.current = e;
|
|
59746
59753
|
}), _e(function() {
|
|
@@ -59750,7 +59757,7 @@ function Ym(e) {
|
|
|
59750
59757
|
}, []);
|
|
59751
59758
|
}
|
|
59752
59759
|
function Kve() {
|
|
59753
|
-
const e =
|
|
59760
|
+
const e = he(null), t = _e((r, o) => {
|
|
59754
59761
|
e.current = setInterval(r, o);
|
|
59755
59762
|
}, []), n = _e(() => {
|
|
59756
59763
|
e.current !== null && (clearInterval(e.current), e.current = null);
|
|
@@ -59759,13 +59766,13 @@ function Kve() {
|
|
|
59759
59766
|
}
|
|
59760
59767
|
function Ld(e, t) {
|
|
59761
59768
|
t === void 0 && (t = [e]);
|
|
59762
|
-
const n =
|
|
59769
|
+
const n = he(e);
|
|
59763
59770
|
return go(() => {
|
|
59764
59771
|
n.current !== e && (n.current = e);
|
|
59765
59772
|
}, t), n;
|
|
59766
59773
|
}
|
|
59767
59774
|
function Pf(e, t) {
|
|
59768
|
-
const n =
|
|
59775
|
+
const n = he();
|
|
59769
59776
|
return Re(
|
|
59770
59777
|
() => {
|
|
59771
59778
|
const r = e(n.current);
|
|
@@ -59776,7 +59783,7 @@ function Pf(e, t) {
|
|
|
59776
59783
|
);
|
|
59777
59784
|
}
|
|
59778
59785
|
function yg(e) {
|
|
59779
|
-
const t = Ym(e), n =
|
|
59786
|
+
const t = Ym(e), n = he(null), r = _e(
|
|
59780
59787
|
(o) => {
|
|
59781
59788
|
o !== n.current && (t == null || t(o, n.current)), n.current = o;
|
|
59782
59789
|
},
|
|
@@ -59786,8 +59793,8 @@ function yg(e) {
|
|
|
59786
59793
|
return [n, r];
|
|
59787
59794
|
}
|
|
59788
59795
|
function vg(e) {
|
|
59789
|
-
const t =
|
|
59790
|
-
return
|
|
59796
|
+
const t = he();
|
|
59797
|
+
return fe(() => {
|
|
59791
59798
|
t.current = e;
|
|
59792
59799
|
}, [e]), t.current;
|
|
59793
59800
|
}
|
|
@@ -59959,7 +59966,7 @@ function n0e() {
|
|
|
59959
59966
|
const Q3 = /* @__PURE__ */ St(null);
|
|
59960
59967
|
function r0e(e) {
|
|
59961
59968
|
const t = rt(Q3);
|
|
59962
|
-
|
|
59969
|
+
fe(() => {
|
|
59963
59970
|
if (!t)
|
|
59964
59971
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
59965
59972
|
return t(e);
|
|
@@ -60023,7 +60030,7 @@ function s0e(e) {
|
|
|
60023
60030
|
announce: i,
|
|
60024
60031
|
announcement: a
|
|
60025
60032
|
} = n0e(), s = Df("DndLiveRegion"), [l, c] = ge(!1);
|
|
60026
|
-
if (
|
|
60033
|
+
if (fe(() => {
|
|
60027
60034
|
c(!0);
|
|
60028
60035
|
}, []), r0e(Re(() => ({
|
|
60029
60036
|
onDragStart(d) {
|
|
@@ -60935,10 +60942,10 @@ function A0e(e) {
|
|
|
60935
60942
|
const f = F0e({
|
|
60936
60943
|
delta: d,
|
|
60937
60944
|
disabled: !i
|
|
60938
|
-
}), [p, g] = Kve(), m =
|
|
60945
|
+
}), [p, g] = Kve(), m = he({
|
|
60939
60946
|
x: 0,
|
|
60940
60947
|
y: 0
|
|
60941
|
-
}), b =
|
|
60948
|
+
}), b = he({
|
|
60942
60949
|
x: 0,
|
|
60943
60950
|
y: 0
|
|
60944
60951
|
}), v = Re(() => {
|
|
@@ -60953,14 +60960,14 @@ function A0e(e) {
|
|
|
60953
60960
|
case Ju.DraggableRect:
|
|
60954
60961
|
return o;
|
|
60955
60962
|
}
|
|
60956
|
-
}, [n, o, l]), w =
|
|
60963
|
+
}, [n, o, l]), w = he(null), x = _e(() => {
|
|
60957
60964
|
const C = w.current;
|
|
60958
60965
|
if (!C)
|
|
60959
60966
|
return;
|
|
60960
60967
|
const E = m.current.x * b.current.x, k = m.current.y * b.current.y;
|
|
60961
60968
|
C.scrollBy(E, k);
|
|
60962
60969
|
}, []), S = Re(() => s === Cg.TreeOrder ? [...c].reverse() : c, [s, c]);
|
|
60963
|
-
|
|
60970
|
+
fe(
|
|
60964
60971
|
() => {
|
|
60965
60972
|
if (!i || !c.length || !v) {
|
|
60966
60973
|
g();
|
|
@@ -61084,9 +61091,9 @@ function z0e(e, t) {
|
|
|
61084
61091
|
frequency: s,
|
|
61085
61092
|
measure: l,
|
|
61086
61093
|
strategy: c
|
|
61087
|
-
} = o, u =
|
|
61094
|
+
} = o, u = he(e), d = m(), h = Ld(d), f = _e(function(b) {
|
|
61088
61095
|
b === void 0 && (b = []), !h.current && a((v) => v === null ? b : v.concat(b.filter((w) => !v.includes(w))));
|
|
61089
|
-
}, [h]), p =
|
|
61096
|
+
}, [h]), p = he(null), g = Pf((b) => {
|
|
61090
61097
|
if (d && !n)
|
|
61091
61098
|
return V2;
|
|
61092
61099
|
if (!b || b === V2 || u.current !== e || i != null) {
|
|
@@ -61105,21 +61112,21 @@ function z0e(e, t) {
|
|
|
61105
61112
|
}
|
|
61106
61113
|
return b;
|
|
61107
61114
|
}, [e, i, n, d, l]);
|
|
61108
|
-
return
|
|
61115
|
+
return fe(() => {
|
|
61109
61116
|
u.current = e;
|
|
61110
|
-
}, [e]),
|
|
61117
|
+
}, [e]), fe(
|
|
61111
61118
|
() => {
|
|
61112
61119
|
d || f();
|
|
61113
61120
|
},
|
|
61114
61121
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
61115
61122
|
[n, d]
|
|
61116
|
-
),
|
|
61123
|
+
), fe(
|
|
61117
61124
|
() => {
|
|
61118
61125
|
i && i.length > 0 && a(null);
|
|
61119
61126
|
},
|
|
61120
61127
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
61121
61128
|
[JSON.stringify(i)]
|
|
61122
|
-
),
|
|
61129
|
+
), fe(
|
|
61123
61130
|
() => {
|
|
61124
61131
|
d || typeof s != "number" || p.current !== null || (p.current = setTimeout(() => {
|
|
61125
61132
|
f(), p.current = null;
|
|
@@ -61162,7 +61169,7 @@ function V0e(e) {
|
|
|
61162
61169
|
} = window;
|
|
61163
61170
|
return new i(r);
|
|
61164
61171
|
}, [r, n]);
|
|
61165
|
-
return
|
|
61172
|
+
return fe(() => () => o == null ? void 0 : o.disconnect(), [o]), o;
|
|
61166
61173
|
}
|
|
61167
61174
|
function Xm(e) {
|
|
61168
61175
|
let {
|
|
@@ -61181,7 +61188,7 @@ function Xm(e) {
|
|
|
61181
61188
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
61182
61189
|
[n]
|
|
61183
61190
|
);
|
|
61184
|
-
return
|
|
61191
|
+
return fe(() => () => o == null ? void 0 : o.disconnect(), [o]), o;
|
|
61185
61192
|
}
|
|
61186
61193
|
function j0e(e) {
|
|
61187
61194
|
return new MC(jc(e), e);
|
|
@@ -61231,17 +61238,17 @@ function H0e(e) {
|
|
|
61231
61238
|
}
|
|
61232
61239
|
const H2 = [];
|
|
61233
61240
|
function W0e(e) {
|
|
61234
|
-
const t =
|
|
61235
|
-
return
|
|
61241
|
+
const t = he(e), n = Pf((r) => e ? r && r !== H2 && e && t.current && e.parentNode === t.current.parentNode ? r : OC(e) : H2, [e]);
|
|
61242
|
+
return fe(() => {
|
|
61236
61243
|
t.current = e;
|
|
61237
61244
|
}, [e]), n;
|
|
61238
61245
|
}
|
|
61239
61246
|
function U0e(e) {
|
|
61240
|
-
const [t, n] = ge(null), r =
|
|
61247
|
+
const [t, n] = ge(null), r = he(e), o = _e((i) => {
|
|
61241
61248
|
const a = iv(i.target);
|
|
61242
61249
|
a && n((s) => s ? (s.set(a, Uw(a)), new Map(s)) : null);
|
|
61243
61250
|
}, []);
|
|
61244
|
-
return
|
|
61251
|
+
return fe(() => {
|
|
61245
61252
|
const i = r.current;
|
|
61246
61253
|
if (e !== i) {
|
|
61247
61254
|
a(i);
|
|
@@ -61266,20 +61273,20 @@ function U0e(e) {
|
|
|
61266
61273
|
}
|
|
61267
61274
|
function W2(e, t) {
|
|
61268
61275
|
t === void 0 && (t = []);
|
|
61269
|
-
const n =
|
|
61270
|
-
return
|
|
61276
|
+
const n = he(null);
|
|
61277
|
+
return fe(
|
|
61271
61278
|
() => {
|
|
61272
61279
|
n.current = null;
|
|
61273
61280
|
},
|
|
61274
61281
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
61275
61282
|
t
|
|
61276
|
-
),
|
|
61283
|
+
), fe(() => {
|
|
61277
61284
|
const r = e !== mo;
|
|
61278
61285
|
r && !n.current && (n.current = e), !r && n.current && (n.current = null);
|
|
61279
61286
|
}, [e]), n.current ? wg(e, n.current) : mo;
|
|
61280
61287
|
}
|
|
61281
61288
|
function q0e(e) {
|
|
61282
|
-
|
|
61289
|
+
fe(
|
|
61283
61290
|
() => {
|
|
61284
61291
|
if (!Gm)
|
|
61285
61292
|
return;
|
|
@@ -61571,7 +61578,7 @@ function twe(e) {
|
|
|
61571
61578
|
activatorEvent: r,
|
|
61572
61579
|
draggableNodes: o
|
|
61573
61580
|
} = rt(Of), i = vg(r), a = vg(n == null ? void 0 : n.id);
|
|
61574
|
-
return
|
|
61581
|
+
return fe(() => {
|
|
61575
61582
|
if (!t && !r && i && a != null) {
|
|
61576
61583
|
if (!Km(i) || document.activeElement === i.target)
|
|
61577
61584
|
return;
|
|
@@ -61635,7 +61642,7 @@ function rwe(e) {
|
|
|
61635
61642
|
initialRect: r,
|
|
61636
61643
|
config: o = !0
|
|
61637
61644
|
} = e;
|
|
61638
|
-
const i =
|
|
61645
|
+
const i = he(!1), {
|
|
61639
61646
|
x: a,
|
|
61640
61647
|
y: s
|
|
61641
61648
|
} = typeof o == "boolean" ? {
|
|
@@ -61693,7 +61700,7 @@ const CSe = /* @__PURE__ */ Wd(function(t) {
|
|
|
61693
61700
|
droppable: {
|
|
61694
61701
|
containers: O
|
|
61695
61702
|
}
|
|
61696
|
-
} = m, T = E != null ? k.get(E) : null, A =
|
|
61703
|
+
} = m, T = E != null ? k.get(E) : null, A = he({
|
|
61697
61704
|
initial: null,
|
|
61698
61705
|
translated: null
|
|
61699
61706
|
}), j = Re(() => {
|
|
@@ -61704,7 +61711,7 @@ const CSe = /* @__PURE__ */ Wd(function(t) {
|
|
|
61704
61711
|
data: (Qt = T == null ? void 0 : T.data) != null ? Qt : Q0e,
|
|
61705
61712
|
rect: A
|
|
61706
61713
|
} : null;
|
|
61707
|
-
}, [E, T]), $ =
|
|
61714
|
+
}, [E, T]), $ = he(null), [M, I] = ge(null), [F, L] = ge(null), B = Ld(p, Object.values(p)), P = Df("DndDescribedBy", a), q = Re(() => O.getEnabled(), [O]), N = nwe(h), {
|
|
61708
61715
|
droppableRects: R,
|
|
61709
61716
|
measureDroppableContainers: W,
|
|
61710
61717
|
measuringScheduled: H
|
|
@@ -61719,7 +61726,7 @@ const CSe = /* @__PURE__ */ Wd(function(t) {
|
|
|
61719
61726
|
initialRect: K,
|
|
61720
61727
|
measure: N.draggable.measure
|
|
61721
61728
|
});
|
|
61722
|
-
const ee = j2(G, N.draggable.measure, K), re = j2(G ? G.parentElement : null), Z =
|
|
61729
|
+
const ee = j2(G, N.draggable.measure, K), re = j2(G ? G.parentElement : null), Z = he({
|
|
61723
61730
|
activatorEvent: null,
|
|
61724
61731
|
active: null,
|
|
61725
61732
|
activeNode: G,
|
|
@@ -61758,7 +61765,7 @@ const CSe = /* @__PURE__ */ Wd(function(t) {
|
|
|
61758
61765
|
droppableRects: R,
|
|
61759
61766
|
droppableContainers: q,
|
|
61760
61767
|
pointerCoordinates: Ke
|
|
61761
|
-
}) : null, Ue = u0e(Pe, "id"), [Lt, An] = ge(null), Cn = Ee ? Ft : zl(Ft, ne), Nn = h0e(Cn, (i = Lt == null ? void 0 : Lt.rect) != null ? i : null, ee), an =
|
|
61768
|
+
}) : null, Ue = u0e(Pe, "id"), [Lt, An] = ge(null), Cn = Ee ? Ft : zl(Ft, ne), Nn = h0e(Cn, (i = Lt == null ? void 0 : Lt.rect) != null ? i : null, ee), an = he(null), Et = _e(
|
|
61762
61769
|
(Qt, mt) => {
|
|
61763
61770
|
let {
|
|
61764
61771
|
sensor: En,
|
|
@@ -61901,7 +61908,7 @@ const CSe = /* @__PURE__ */ Wd(function(t) {
|
|
|
61901
61908
|
}, [k, Et]), _n = $0e(u, $r);
|
|
61902
61909
|
q0e(u), go(() => {
|
|
61903
61910
|
ee && x === ji.Initializing && S(ji.Initialized);
|
|
61904
|
-
}, [ee, x]),
|
|
61911
|
+
}, [ee, x]), fe(
|
|
61905
61912
|
() => {
|
|
61906
61913
|
const {
|
|
61907
61914
|
onDragMove: Qt
|
|
@@ -61932,7 +61939,7 @@ const CSe = /* @__PURE__ */ Wd(function(t) {
|
|
|
61932
61939
|
},
|
|
61933
61940
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
61934
61941
|
[ce.x, ce.y]
|
|
61935
|
-
),
|
|
61942
|
+
), fe(
|
|
61936
61943
|
() => {
|
|
61937
61944
|
const {
|
|
61938
61945
|
active: Qt,
|
|
@@ -62125,9 +62132,9 @@ function cwe(e) {
|
|
|
62125
62132
|
dispatch: s,
|
|
62126
62133
|
over: l,
|
|
62127
62134
|
measureDroppableContainers: c
|
|
62128
|
-
} = rt(Of), u =
|
|
62135
|
+
} = rt(Of), u = he({
|
|
62129
62136
|
disabled: n
|
|
62130
|
-
}), d =
|
|
62137
|
+
}), d = he(!1), h = he(null), f = he(null), {
|
|
62131
62138
|
disabled: p,
|
|
62132
62139
|
updateMeasurementsFor: g,
|
|
62133
62140
|
timeout: m
|
|
@@ -62152,9 +62159,9 @@ function cwe(e) {
|
|
|
62152
62159
|
}), x = _e((k, D) => {
|
|
62153
62160
|
w && (D && (w.unobserve(D), d.current = !1), k && w.observe(k));
|
|
62154
62161
|
}, [w]), [S, C] = yg(x), E = Ld(t);
|
|
62155
|
-
return
|
|
62162
|
+
return fe(() => {
|
|
62156
62163
|
!w || !S.current || (w.disconnect(), d.current = !1, w.observe(S.current));
|
|
62157
|
-
}, [S, w]),
|
|
62164
|
+
}, [S, w]), fe(
|
|
62158
62165
|
() => (s({
|
|
62159
62166
|
type: pn.RegisterDroppable,
|
|
62160
62167
|
element: {
|
|
@@ -62172,7 +62179,7 @@ function cwe(e) {
|
|
|
62172
62179
|
})),
|
|
62173
62180
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
62174
62181
|
[r]
|
|
62175
|
-
),
|
|
62182
|
+
), fe(() => {
|
|
62176
62183
|
n !== u.current.disabled && (s({
|
|
62177
62184
|
type: pn.SetDroppableDisabled,
|
|
62178
62185
|
id: r,
|
|
@@ -62986,12 +62993,12 @@ function vxe({ width: e, height: t, isEditorReady: n, loading: r, _ref: o, class
|
|
|
62986
62993
|
}
|
|
62987
62994
|
var wxe = vxe, E6 = Wd(wxe);
|
|
62988
62995
|
function xxe(e) {
|
|
62989
|
-
|
|
62996
|
+
fe(e, []);
|
|
62990
62997
|
}
|
|
62991
62998
|
var NC = xxe;
|
|
62992
62999
|
function Sxe(e, t, n = !0) {
|
|
62993
|
-
let r =
|
|
62994
|
-
|
|
63000
|
+
let r = he(!0);
|
|
63001
|
+
fe(r.current || !n ? () => {
|
|
62995
63002
|
r.current = !1;
|
|
62996
63003
|
} : e, t);
|
|
62997
63004
|
}
|
|
@@ -63011,7 +63018,7 @@ function R6(e, t) {
|
|
|
63011
63018
|
return e.Uri.parse(t);
|
|
63012
63019
|
}
|
|
63013
63020
|
function Exe({ original: e, modified: t, language: n, originalLanguage: r, modifiedLanguage: o, originalModelPath: i, modifiedModelPath: a, keepCurrentOriginalModel: s = !1, keepCurrentModifiedModel: l = !1, theme: c = "light", loading: u = "Loading...", options: d = {}, height: h = "100%", width: f = "100%", className: p, wrapperProps: g = {}, beforeMount: m = ed, onMount: b = ed }) {
|
|
63014
|
-
let [v, w] = ge(!1), [x, S] = ge(!0), C =
|
|
63021
|
+
let [v, w] = ge(!1), [x, S] = ge(!0), C = he(null), E = he(null), k = he(null), D = he(b), O = he(m), T = he(!1);
|
|
63015
63022
|
NC(() => {
|
|
63016
63023
|
let M = Eg.init();
|
|
63017
63024
|
return M.then((I) => (E.current = I) && S(!1)).catch((I) => (I == null ? void 0 : I.type) !== "cancelation" && console.error("Monaco initialization: error:", I)), () => C.current ? $() : M.cancel();
|
|
@@ -63051,9 +63058,9 @@ function Exe({ original: e, modified: t, language: n, originalLanguage: r, modif
|
|
|
63051
63058
|
var M;
|
|
63052
63059
|
!T.current && k.current && (C.current = E.current.editor.createDiffEditor(k.current, { automaticLayout: !0, ...d }), A(), (M = E.current) == null || M.editor.setTheme(c), w(!0), T.current = !0);
|
|
63053
63060
|
}, [d, c, A]);
|
|
63054
|
-
|
|
63061
|
+
fe(() => {
|
|
63055
63062
|
v && D.current(C.current, E.current);
|
|
63056
|
-
}, [v]),
|
|
63063
|
+
}, [v]), fe(() => {
|
|
63057
63064
|
!x && !v && j();
|
|
63058
63065
|
}, [x, v, j]);
|
|
63059
63066
|
function $() {
|
|
@@ -63076,14 +63083,14 @@ function kxe() {
|
|
|
63076
63083
|
}
|
|
63077
63084
|
var RSe = kxe;
|
|
63078
63085
|
function Pxe(e) {
|
|
63079
|
-
let t =
|
|
63080
|
-
return
|
|
63086
|
+
let t = he();
|
|
63087
|
+
return fe(() => {
|
|
63081
63088
|
t.current = e;
|
|
63082
63089
|
}, [e]), t.current;
|
|
63083
63090
|
}
|
|
63084
63091
|
var Dxe = Pxe, jh = /* @__PURE__ */ new Map();
|
|
63085
63092
|
function Oxe({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, language: o, path: i, theme: a = "light", line: s, loading: l = "Loading...", options: c = {}, overrideServices: u = {}, saveViewState: d = !0, keepCurrentModel: h = !1, width: f = "100%", height: p = "100%", className: g, wrapperProps: m = {}, beforeMount: b = ed, onMount: v = ed, onChange: w, onValidate: x = ed }) {
|
|
63086
|
-
let [S, C] = ge(!1), [E, k] = ge(!0), D =
|
|
63093
|
+
let [S, C] = ge(!1), [E, k] = ge(!0), D = he(null), O = he(null), T = he(null), A = he(v), j = he(b), $ = he(), M = he(r), I = Dxe(i), F = he(!1), L = he(!1);
|
|
63087
63094
|
NC(() => {
|
|
63088
63095
|
let q = Eg.init();
|
|
63089
63096
|
return q.then((N) => (D.current = N) && k(!1)).catch((N) => (N == null ? void 0 : N.type) !== "cancelation" && console.error("Monaco initialization: error:", N)), () => O.current ? P() : q.cancel();
|
|
@@ -63115,16 +63122,16 @@ function Oxe({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, la
|
|
|
63115
63122
|
O.current = (q = D.current) == null ? void 0 : q.editor.create(T.current, { model: R, automaticLayout: !0, ...c }, u), d && O.current.restoreViewState(jh.get(N)), D.current.editor.setTheme(a), s !== void 0 && O.current.revealLine(s), C(!0), F.current = !0;
|
|
63116
63123
|
}
|
|
63117
63124
|
}, [e, t, n, r, o, i, c, u, d, a, s]);
|
|
63118
|
-
|
|
63125
|
+
fe(() => {
|
|
63119
63126
|
S && A.current(O.current, D.current);
|
|
63120
|
-
}, [S]),
|
|
63127
|
+
}, [S]), fe(() => {
|
|
63121
63128
|
!E && !S && B();
|
|
63122
|
-
}, [E, S, B]), M.current = r,
|
|
63129
|
+
}, [E, S, B]), M.current = r, fe(() => {
|
|
63123
63130
|
var q, N;
|
|
63124
63131
|
S && w && ((q = $.current) == null || q.dispose(), $.current = (N = O.current) == null ? void 0 : N.onDidChangeModelContent((R) => {
|
|
63125
63132
|
L.current || w(O.current.getValue(), R);
|
|
63126
63133
|
}));
|
|
63127
|
-
}, [S, w]),
|
|
63134
|
+
}, [S, w]), fe(() => {
|
|
63128
63135
|
if (S) {
|
|
63129
63136
|
let q = D.current.editor.onDidChangeMarkers((N) => {
|
|
63130
63137
|
var W;
|
|
@@ -63506,10 +63513,10 @@ function OSe(e) {
|
|
|
63506
63513
|
droppableRects: l,
|
|
63507
63514
|
over: c,
|
|
63508
63515
|
measureDroppableContainers: u
|
|
63509
|
-
} = g6(), d = Df(j6, n), h = s.rect !== null, f = Re(() => r.map((C) => typeof C == "object" && "id" in C ? C.id : C), [r]), p = a != null, g = a ? f.indexOf(a.id) : -1, m = c ? f.indexOf(c.id) : -1, b =
|
|
63516
|
+
} = g6(), d = Df(j6, n), h = s.rect !== null, f = Re(() => r.map((C) => typeof C == "object" && "id" in C ? C.id : C), [r]), p = a != null, g = a ? f.indexOf(a.id) : -1, m = c ? f.indexOf(c.id) : -1, b = he(f), v = !Qxe(f, b.current), w = m !== -1 && g === -1 || v, x = Jxe(i);
|
|
63510
63517
|
go(() => {
|
|
63511
63518
|
v && p && u(f);
|
|
63512
|
-
}, [v, f, p, u]),
|
|
63519
|
+
}, [v, f, p, u]), fe(() => {
|
|
63513
63520
|
b.current = f;
|
|
63514
63521
|
}, [f]);
|
|
63515
63522
|
const S = Re(
|
|
@@ -63569,7 +63576,7 @@ function o1e(e) {
|
|
|
63569
63576
|
node: r,
|
|
63570
63577
|
rect: o
|
|
63571
63578
|
} = e;
|
|
63572
|
-
const [i, a] = ge(null), s =
|
|
63579
|
+
const [i, a] = ge(null), s = he(n);
|
|
63573
63580
|
return go(() => {
|
|
63574
63581
|
if (!t && n !== s.current && r.current) {
|
|
63575
63582
|
const l = o.current;
|
|
@@ -63586,7 +63593,7 @@ function o1e(e) {
|
|
|
63586
63593
|
}
|
|
63587
63594
|
}
|
|
63588
63595
|
n !== s.current && (s.current = n);
|
|
63589
|
-
}, [t, n, r, o]),
|
|
63596
|
+
}, [t, n, r, o]), fe(() => {
|
|
63590
63597
|
i && a(null);
|
|
63591
63598
|
}, [i]), i;
|
|
63592
63599
|
}
|
|
@@ -63662,7 +63669,7 @@ function MSe(e) {
|
|
|
63662
63669
|
items: u,
|
|
63663
63670
|
activeIndex: h,
|
|
63664
63671
|
overIndex: m
|
|
63665
|
-
}) : x, K = T == null ? void 0 : T.id, ee =
|
|
63672
|
+
}) : x, K = T == null ? void 0 : T.id, ee = he({
|
|
63666
63673
|
activeId: K,
|
|
63667
63674
|
items: u,
|
|
63668
63675
|
newIndex: U,
|
|
@@ -63686,9 +63693,9 @@ function MSe(e) {
|
|
|
63686
63693
|
node: k,
|
|
63687
63694
|
rect: E
|
|
63688
63695
|
});
|
|
63689
|
-
return
|
|
63696
|
+
return fe(() => {
|
|
63690
63697
|
N && ee.current.newIndex !== U && (ee.current.newIndex = U), d !== ee.current.containerId && (ee.current.containerId = d), u !== ee.current.items && (ee.current.items = u);
|
|
63691
|
-
}, [N, U, d, u]),
|
|
63698
|
+
}, [N, U, d, u]), fe(() => {
|
|
63692
63699
|
if (K === ee.current.activeId)
|
|
63693
63700
|
return;
|
|
63694
63701
|
if (K != null && ee.current.activeId == null) {
|