biblio-react 3.0.0-alpha66 → 3.0.0-alpha68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +414 -408
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var rw = Object.defineProperty;
|
|
|
2
2
|
var a = (e, t) => rw(e, "name", { value: t, configurable: !0 });
|
|
3
3
|
import we, { jsx as v, jsxs as Y, Fragment as Pn } from "react/jsx-runtime";
|
|
4
4
|
import * as x from "react";
|
|
5
|
-
import
|
|
5
|
+
import ot, { forwardRef as Ku, useContext as ke, createElement as zy, Children as Yu, isValidElement as Cn, cloneElement as Tn, createContext as Rt, useState as De, useMemo as fr, useCallback as He, useEffect as tt, Fragment as an, memo as Ix, useRef as Ju, useDebugValue as Lx, useId as nw } from "react";
|
|
6
6
|
import { unstable_ClassNameGenerator as Nx, exactProp as Qu, unstable_getScrollbarSize as ow, unstable_ownerDocument as En, unstable_ownerWindow as Ss, unstable_useForkRef as Ui, elementAcceptingRef as iw, unstable_useEnhancedEffect as Jo, unstable_setRef as By, HTMLElementType as lf, unstable_useEventCallback as Vy, unstable_createChainedFunction as Hy, unstable_debounce as aw, usePreviousProps as sw, unstable_getNormalizedScrollLeft as lw, unstable_detectScrollType as cw, chainPropTypes as uw, refType as dw, deepmerge as Dx } from "@mui/utils";
|
|
7
7
|
import { MenuItem as cc, ListItemIcon as cf, ListItemText as uf, useMediaQuery as va, Typography as Cs, Box as at, Grid as Wy, Dialog as Gh, DialogTitle as _x, DialogContent as pw, Stack as Kh, DialogActions as fw, Tooltip as Xu, IconButton as uc, createTheme as hw, ThemeProvider as mw, alpha as gw, StyledEngineProvider as jx, Card as zx, CircularProgress as bw, CardContent as Bx, Collapse as yw, List as Vx, Switch as vw, Divider as Ow, Button as Uy, Paper as Hx, ToggleButtonGroup as Zu, ToggleButton as Dt, ListItem as xw, Menu as Sw, useTheme as Cw, FormHelperText as Tw } from "@mui/material";
|
|
8
8
|
import { useTranslate as Tt, useUserMenu as Ew, useResourceDefinitions as kw, AppBar as ww, UserMenu as Pw, Logout as Mw, useDataProvider as Yh, useResourceContext as gt, useListContext as qi, useNotify as $n, useRedirect as Ys, useUnselectAll as Rw, NumberField as Aw, DateField as qy, TextField as Gl, ReferenceField as Fw, useCreatePath as Js, Button as Tr, Form as Qs, SaveButton as ed, Confirm as Jh, useRecordContext as un, useListController as $w, ListContextProvider as Iw, LoadingClasses as dc, List as Wx, useResourceDefinition as Ux, BulkActionsToolbar as Lw, useInput as Qh, useGetList as qx, useSafeSetState as Xh, useGetOne as Gx, required as Nw, minValue as Dw, TopToolbar as Kx, ListButton as _w, ShowButton as jw, useCreateController as zw, CreateContextProvider as Bw, useSaveContext as Vw, Create as Hw, useDelete as Ww, useEditController as Uw, Edit as qw, SimpleForm as Gw, useSidebarState as Yx, Menu as Kw, DashboardMenuItem as Yw, MenuItemLink as Jx, Layout as Jw, FilterContext as Qw, sanitizeListRestProps as Xw, FilterButton as Zw, CreateButton as eP, ExportButton as tP, useLogin as rP, TextInput as Qo, PasswordInput as Qx, useShowController as nP, Show as oP, FormTab as iP, getTabbedFormTabFullPath as aP, TabbedFormTabs as sP, Toolbar as Xx, defaultTheme as Zx, BooleanField as lP, ImageInput as cP, ImageField as uP, FileInput as dP, BooleanInput as pP, ReferenceInput as e1, useChoicesContext as fP, AutocompleteInput as hP, SelectInput as mP, ReferenceArrayInput as gP, AutocompleteArrayInput as bP, RadioButtonGroupInput as t1, useRecordSelection as r1, ListActions as yP, Datagrid as vP, ValidationError as OP, FieldTitle as n1, NumberInput as xP } from "react-admin";
|
|
@@ -826,7 +826,7 @@ function re() {
|
|
|
826
826
|
return n;
|
|
827
827
|
}
|
|
828
828
|
a(re, "clsx");
|
|
829
|
-
function
|
|
829
|
+
function Ce(e, t, r = void 0) {
|
|
830
830
|
const n = {};
|
|
831
831
|
return Object.keys(e).forEach(
|
|
832
832
|
// `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
|
|
@@ -842,7 +842,7 @@ function Se(e, t, r = void 0) {
|
|
|
842
842
|
}
|
|
843
843
|
), n;
|
|
844
844
|
}
|
|
845
|
-
a(
|
|
845
|
+
a(Ce, "composeClasses");
|
|
846
846
|
function Es(e, t) {
|
|
847
847
|
const r = E({}, t);
|
|
848
848
|
return Object.keys(e).forEach((n) => {
|
|
@@ -1008,7 +1008,7 @@ var rM = /* @__PURE__ */ function() {
|
|
|
1008
1008
|
return n.parentNode && n.parentNode.removeChild(n);
|
|
1009
1009
|
}), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
|
|
1010
1010
|
}, "flush"), e;
|
|
1011
|
-
}(), jt = "-ms-", pc = "-moz-",
|
|
1011
|
+
}(), jt = "-ms-", pc = "-moz-", Ue = "-webkit-", lm = "comm", cm = "rule", um = "decl", nM = "@import", b1 = "@keyframes", oM = "@layer", iM = Math.abs, rd = String.fromCharCode, aM = Object.assign;
|
|
1012
1012
|
function sM(e, t) {
|
|
1013
1013
|
return It(e, 0) ^ 45 ? (((t << 2 ^ It(e, 0)) << 2 ^ It(e, 1)) << 2 ^ It(e, 2)) << 2 ^ It(e, 3) : 0;
|
|
1014
1014
|
}
|
|
@@ -1021,10 +1021,10 @@ function lM(e, t) {
|
|
|
1021
1021
|
return (e = t.exec(e)) ? e[0] : e;
|
|
1022
1022
|
}
|
|
1023
1023
|
a(lM, "match$2");
|
|
1024
|
-
function
|
|
1024
|
+
function qe(e, t, r) {
|
|
1025
1025
|
return e.replace(t, r);
|
|
1026
1026
|
}
|
|
1027
|
-
a(
|
|
1027
|
+
a(qe, "replace$1");
|
|
1028
1028
|
function hf(e, t) {
|
|
1029
1029
|
return e.indexOf(t);
|
|
1030
1030
|
}
|
|
@@ -1184,7 +1184,7 @@ function Jl(e, t, r, n, o, i, s, l, u) {
|
|
|
1184
1184
|
switch (m = k, k = lr()) {
|
|
1185
1185
|
case 40:
|
|
1186
1186
|
if (m != 108 && It(P, f - 1) == 58) {
|
|
1187
|
-
hf(P +=
|
|
1187
|
+
hf(P += qe(Yl(k), "&", "&\f"), "&\f") != -1 && (O = -1);
|
|
1188
1188
|
break;
|
|
1189
1189
|
}
|
|
1190
1190
|
case 34:
|
|
@@ -1221,7 +1221,7 @@ function Jl(e, t, r, n, o, i, s, l, u) {
|
|
|
1221
1221
|
case 125:
|
|
1222
1222
|
y = 0;
|
|
1223
1223
|
case 59 + p:
|
|
1224
|
-
O == -1 && (P =
|
|
1224
|
+
O == -1 && (P = qe(P, /\f/g, "")), g > 0 && Zr(P) - f && Sl(g > 32 ? lv(P + ";", n, r, f - 1) : lv(qe(P, " ", "") + ";", n, r, f - 2), u);
|
|
1225
1225
|
break;
|
|
1226
1226
|
case 59:
|
|
1227
1227
|
P += ";";
|
|
@@ -1272,7 +1272,7 @@ a(Jl, "parse$2");
|
|
|
1272
1272
|
function sv(e, t, r, n, o, i, s, l, u, d, p) {
|
|
1273
1273
|
for (var f = o - 1, h = o === 0 ? i : [""], g = dm(h), m = 0, b = 0, y = 0; m < n; ++m)
|
|
1274
1274
|
for (var O = 0, k = ks(e, f + 1, f = iM(b = s[m])), T = e; O < g; ++O)
|
|
1275
|
-
(T = y1(b > 0 ? h[O] + " " + k :
|
|
1275
|
+
(T = y1(b > 0 ? h[O] + " " + k : qe(k, /&\f/g, h[O]))) && (u[y++] = T);
|
|
1276
1276
|
return od(e, t, r, o === 0 ? cm : l, u, d, p);
|
|
1277
1277
|
}
|
|
1278
1278
|
a(sv, "ruleset");
|
|
@@ -1409,7 +1409,7 @@ var xM = /* @__PURE__ */ a(function(t, r, n) {
|
|
|
1409
1409
|
function C1(e, t) {
|
|
1410
1410
|
switch (sM(e, t)) {
|
|
1411
1411
|
case 5103:
|
|
1412
|
-
return
|
|
1412
|
+
return Ue + "print-" + e + e;
|
|
1413
1413
|
case 5737:
|
|
1414
1414
|
case 4201:
|
|
1415
1415
|
case 3177:
|
|
@@ -1435,44 +1435,44 @@ function C1(e, t) {
|
|
|
1435
1435
|
case 5365:
|
|
1436
1436
|
case 5621:
|
|
1437
1437
|
case 3829:
|
|
1438
|
-
return
|
|
1438
|
+
return Ue + e + e;
|
|
1439
1439
|
case 5349:
|
|
1440
1440
|
case 4246:
|
|
1441
1441
|
case 4810:
|
|
1442
1442
|
case 6968:
|
|
1443
1443
|
case 2756:
|
|
1444
|
-
return
|
|
1444
|
+
return Ue + e + pc + e + jt + e + e;
|
|
1445
1445
|
case 6828:
|
|
1446
1446
|
case 4268:
|
|
1447
|
-
return
|
|
1447
|
+
return Ue + e + jt + e + e;
|
|
1448
1448
|
case 6165:
|
|
1449
|
-
return
|
|
1449
|
+
return Ue + e + jt + "flex-" + e + e;
|
|
1450
1450
|
case 5187:
|
|
1451
|
-
return
|
|
1451
|
+
return Ue + e + qe(e, /(\w+).+(:[^]+)/, Ue + "box-$1$2" + jt + "flex-$1$2") + e;
|
|
1452
1452
|
case 5443:
|
|
1453
|
-
return
|
|
1453
|
+
return Ue + e + jt + "flex-item-" + qe(e, /flex-|-self/, "") + e;
|
|
1454
1454
|
case 4675:
|
|
1455
|
-
return
|
|
1455
|
+
return Ue + e + jt + "flex-line-pack" + qe(e, /align-content|flex-|-self/, "") + e;
|
|
1456
1456
|
case 5548:
|
|
1457
|
-
return
|
|
1457
|
+
return Ue + e + jt + qe(e, "shrink", "negative") + e;
|
|
1458
1458
|
case 5292:
|
|
1459
|
-
return
|
|
1459
|
+
return Ue + e + jt + qe(e, "basis", "preferred-size") + e;
|
|
1460
1460
|
case 6060:
|
|
1461
|
-
return
|
|
1461
|
+
return Ue + "box-" + qe(e, "-grow", "") + Ue + e + jt + qe(e, "grow", "positive") + e;
|
|
1462
1462
|
case 4554:
|
|
1463
|
-
return
|
|
1463
|
+
return Ue + qe(e, /([^-])(transform)/g, "$1" + Ue + "$2") + e;
|
|
1464
1464
|
case 6187:
|
|
1465
|
-
return
|
|
1465
|
+
return qe(qe(qe(e, /(zoom-|grab)/, Ue + "$1"), /(image-set)/, Ue + "$1"), e, "") + e;
|
|
1466
1466
|
case 5495:
|
|
1467
1467
|
case 3959:
|
|
1468
|
-
return
|
|
1468
|
+
return qe(e, /(image-set\([^]*)/, Ue + "$1$`$1");
|
|
1469
1469
|
case 4968:
|
|
1470
|
-
return
|
|
1470
|
+
return qe(qe(e, /(.+:)(flex-)?(.*)/, Ue + "box-pack:$3" + jt + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + Ue + e + e;
|
|
1471
1471
|
case 4095:
|
|
1472
1472
|
case 3583:
|
|
1473
1473
|
case 4068:
|
|
1474
1474
|
case 2532:
|
|
1475
|
-
return
|
|
1475
|
+
return qe(e, /(.+)-inline(.+)/, Ue + "$1$2") + e;
|
|
1476
1476
|
case 8116:
|
|
1477
1477
|
case 7059:
|
|
1478
1478
|
case 5753:
|
|
@@ -1489,9 +1489,9 @@ function C1(e, t) {
|
|
|
1489
1489
|
case 109:
|
|
1490
1490
|
if (It(e, t + 4) !== 45) break;
|
|
1491
1491
|
case 102:
|
|
1492
|
-
return
|
|
1492
|
+
return qe(e, /(.+:)(.+)-([^]+)/, "$1" + Ue + "$2-$3$1" + pc + (It(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1493
1493
|
case 115:
|
|
1494
|
-
return ~hf(e, "stretch") ? C1(
|
|
1494
|
+
return ~hf(e, "stretch") ? C1(qe(e, "stretch", "fill-available"), t) + e : e;
|
|
1495
1495
|
}
|
|
1496
1496
|
break;
|
|
1497
1497
|
case 4949:
|
|
@@ -1499,21 +1499,21 @@ function C1(e, t) {
|
|
|
1499
1499
|
case 6444:
|
|
1500
1500
|
switch (It(e, Zr(e) - 3 - (~hf(e, "!important") && 10))) {
|
|
1501
1501
|
case 107:
|
|
1502
|
-
return
|
|
1502
|
+
return qe(e, ":", ":" + Ue) + e;
|
|
1503
1503
|
case 101:
|
|
1504
|
-
return
|
|
1504
|
+
return qe(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + Ue + (It(e, 14) === 45 ? "inline-" : "") + "box$3$1" + Ue + "$2$3$1" + jt + "$2box$3") + e;
|
|
1505
1505
|
}
|
|
1506
1506
|
break;
|
|
1507
1507
|
case 5936:
|
|
1508
1508
|
switch (It(e, t + 11)) {
|
|
1509
1509
|
case 114:
|
|
1510
|
-
return
|
|
1510
|
+
return Ue + e + jt + qe(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
1511
1511
|
case 108:
|
|
1512
|
-
return
|
|
1512
|
+
return Ue + e + jt + qe(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
1513
1513
|
case 45:
|
|
1514
|
-
return
|
|
1514
|
+
return Ue + e + jt + qe(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
1515
1515
|
}
|
|
1516
|
-
return
|
|
1516
|
+
return Ue + e + jt + e + e;
|
|
1517
1517
|
}
|
|
1518
1518
|
return e;
|
|
1519
1519
|
}
|
|
@@ -1525,7 +1525,7 @@ var AM = /* @__PURE__ */ a(function(t, r, n, o) {
|
|
|
1525
1525
|
break;
|
|
1526
1526
|
case b1:
|
|
1527
1527
|
return $i([Da(t, {
|
|
1528
|
-
value:
|
|
1528
|
+
value: qe(t.value, "@", "@" + Ue)
|
|
1529
1529
|
})], o);
|
|
1530
1530
|
case cm:
|
|
1531
1531
|
if (t.length) return cM(t.props, function(i) {
|
|
@@ -1533,15 +1533,15 @@ var AM = /* @__PURE__ */ a(function(t, r, n, o) {
|
|
|
1533
1533
|
case ":read-only":
|
|
1534
1534
|
case ":read-write":
|
|
1535
1535
|
return $i([Da(t, {
|
|
1536
|
-
props: [
|
|
1536
|
+
props: [qe(i, /:(read-\w+)/, ":" + pc + "$1")]
|
|
1537
1537
|
})], o);
|
|
1538
1538
|
case "::placeholder":
|
|
1539
1539
|
return $i([Da(t, {
|
|
1540
|
-
props: [
|
|
1540
|
+
props: [qe(i, /:(plac\w+)/, ":" + Ue + "input-$1")]
|
|
1541
1541
|
}), Da(t, {
|
|
1542
|
-
props: [
|
|
1542
|
+
props: [qe(i, /:(plac\w+)/, ":" + pc + "$1")]
|
|
1543
1543
|
}), Da(t, {
|
|
1544
|
-
props: [
|
|
1544
|
+
props: [qe(i, /:(plac\w+)/, jt + "input-$1")]
|
|
1545
1545
|
})], o);
|
|
1546
1546
|
}
|
|
1547
1547
|
return "";
|
|
@@ -4800,7 +4800,7 @@ const SF = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
4800
4800
|
} = e, o = {
|
|
4801
4801
|
root: ["root", t !== "inherit" && `color${ue(t)}`, `fontSize${ue(r)}`]
|
|
4802
4802
|
};
|
|
4803
|
-
return
|
|
4803
|
+
return Ce(o, xF, n);
|
|
4804
4804
|
}, "useUtilityClasses$M"), TF = J("svg", {
|
|
4805
4805
|
name: "MuiSvgIcon",
|
|
4806
4806
|
slot: "Root",
|
|
@@ -5862,7 +5862,7 @@ function M$(e = {}) {
|
|
|
5862
5862
|
createStyledComponent: t = T$,
|
|
5863
5863
|
useThemeProps: r = E$,
|
|
5864
5864
|
componentName: n = "MuiStack"
|
|
5865
|
-
} = e, o = /* @__PURE__ */ a(() =>
|
|
5865
|
+
} = e, o = /* @__PURE__ */ a(() => Ce({
|
|
5866
5866
|
root: ["root"]
|
|
5867
5867
|
}, (u) => ye(n, u), {}), "useUtilityClasses"), i = t(P$), s = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(u, d) {
|
|
5868
5868
|
const p = r(u), f = gd(p), {
|
|
@@ -6458,7 +6458,7 @@ process.env.NODE_ENV !== "production" && c.oneOfType([c.string, c.shape({
|
|
|
6458
6458
|
exitDone: c.string,
|
|
6459
6459
|
exitActive: c.string
|
|
6460
6460
|
})]);
|
|
6461
|
-
const xc =
|
|
6461
|
+
const xc = ot.createContext(null);
|
|
6462
6462
|
var nI = /* @__PURE__ */ a(function(t) {
|
|
6463
6463
|
return t.scrollTop;
|
|
6464
6464
|
}, "forceReflow"), Ka = "unmounted", vo = "exited", Oo = "entering", Oi = "entered", Tf = "exiting", Wr = /* @__PURE__ */ function(e) {
|
|
@@ -6583,12 +6583,12 @@ var nI = /* @__PURE__ */ a(function(t) {
|
|
|
6583
6583
|
var l = ne(i, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
6584
6584
|
return (
|
|
6585
6585
|
// allows for nested Transitions
|
|
6586
|
-
/* @__PURE__ */
|
|
6586
|
+
/* @__PURE__ */ ot.createElement(xc.Provider, {
|
|
6587
6587
|
value: null
|
|
6588
|
-
}, typeof s == "function" ? s(o, l) :
|
|
6588
|
+
}, typeof s == "function" ? s(o, l) : ot.cloneElement(ot.Children.only(s), l))
|
|
6589
6589
|
);
|
|
6590
6590
|
}, "render"), t;
|
|
6591
|
-
}(
|
|
6591
|
+
}(ot.Component);
|
|
6592
6592
|
Wr.contextType = xc;
|
|
6593
6593
|
Wr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
6594
6594
|
/**
|
|
@@ -6909,13 +6909,13 @@ var lI = Object.values || function(e) {
|
|
|
6909
6909
|
}));
|
|
6910
6910
|
}, "handleExited"), r.render = /* @__PURE__ */ a(function() {
|
|
6911
6911
|
var o = this.props, i = o.component, s = o.childFactory, l = ne(o, ["component", "childFactory"]), u = this.state.contextValue, d = lI(this.state.children).map(s);
|
|
6912
|
-
return delete l.appear, delete l.enter, delete l.exit, i === null ? /* @__PURE__ */
|
|
6912
|
+
return delete l.appear, delete l.enter, delete l.exit, i === null ? /* @__PURE__ */ ot.createElement(xc.Provider, {
|
|
6913
6913
|
value: u
|
|
6914
|
-
}, d) : /* @__PURE__ */
|
|
6914
|
+
}, d) : /* @__PURE__ */ ot.createElement(xc.Provider, {
|
|
6915
6915
|
value: u
|
|
6916
|
-
}, /* @__PURE__ */
|
|
6916
|
+
}, /* @__PURE__ */ ot.createElement(i, l, d));
|
|
6917
6917
|
}, "render"), t;
|
|
6918
|
-
}(
|
|
6918
|
+
}(ot.Component);
|
|
6919
6919
|
Nm.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
6920
6920
|
/**
|
|
6921
6921
|
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
@@ -7146,7 +7146,7 @@ const fI = ["children", "className", "component", "components", "componentsProps
|
|
|
7146
7146
|
classes: t,
|
|
7147
7147
|
invisible: r
|
|
7148
7148
|
} = e;
|
|
7149
|
-
return
|
|
7149
|
+
return Ce({
|
|
7150
7150
|
root: ["root", r && "invisible"]
|
|
7151
7151
|
}, pI, t);
|
|
7152
7152
|
}, "useUtilityClasses$L"), mI = J("div", {
|
|
@@ -7408,7 +7408,7 @@ const xI = ["BackdropComponent", "BackdropProps", "classes", "className", "close
|
|
|
7408
7408
|
exited: r,
|
|
7409
7409
|
classes: n
|
|
7410
7410
|
} = e;
|
|
7411
|
-
return
|
|
7411
|
+
return Ce({
|
|
7412
7412
|
root: ["root", !t && r && "hidden"],
|
|
7413
7413
|
backdrop: ["backdrop"]
|
|
7414
7414
|
}, OI, n);
|
|
@@ -7768,7 +7768,7 @@ const MI = ["className", "component", "elevation", "square", "variant"], RI = /*
|
|
|
7768
7768
|
} = e, i = {
|
|
7769
7769
|
root: ["root", n, !t && "rounded", n === "elevation" && `elevation${r}`]
|
|
7770
7770
|
};
|
|
7771
|
-
return
|
|
7771
|
+
return Ce(i, PI, o);
|
|
7772
7772
|
}, "useUtilityClasses$J"), AI = J("div", {
|
|
7773
7773
|
name: "MuiPaper",
|
|
7774
7774
|
slot: "Root",
|
|
@@ -7896,7 +7896,7 @@ const $I = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
7896
7896
|
container: ["container", `scroll${ue(r)}`],
|
|
7897
7897
|
paper: ["paper", `paperScroll${ue(r)}`, `paperWidth${ue(String(n))}`, o && "paperFullWidth", i && "paperFullScreen"]
|
|
7898
7898
|
};
|
|
7899
|
-
return
|
|
7899
|
+
return Ce(s, FI, t);
|
|
7900
7900
|
}, "useUtilityClasses$I"), NI = J(Od, {
|
|
7901
7901
|
name: "MuiDialog",
|
|
7902
7902
|
slot: "Root",
|
|
@@ -8228,7 +8228,7 @@ const zI = ["className", "disableSpacing"], BI = /* @__PURE__ */ a((e) => {
|
|
|
8228
8228
|
classes: t,
|
|
8229
8229
|
disableSpacing: r
|
|
8230
8230
|
} = e;
|
|
8231
|
-
return
|
|
8231
|
+
return Ce({
|
|
8232
8232
|
root: ["root", !r && "spacing"]
|
|
8233
8233
|
}, jI, t);
|
|
8234
8234
|
}, "useUtilityClasses$H"), VI = J("div", {
|
|
@@ -8309,7 +8309,7 @@ const UI = Oe("MuiDialogTitle", ["root"]), qI = ["className", "dividers"], GI =
|
|
|
8309
8309
|
classes: t,
|
|
8310
8310
|
dividers: r
|
|
8311
8311
|
} = e;
|
|
8312
|
-
return
|
|
8312
|
+
return Ce({
|
|
8313
8313
|
root: ["root", r && "dividers"]
|
|
8314
8314
|
}, HI, t);
|
|
8315
8315
|
}, "useUtilityClasses$G"), KI = J("div", {
|
|
@@ -8397,7 +8397,7 @@ const JI = ["align", "className", "component", "gutterBottom", "noWrap", "paragr
|
|
|
8397
8397
|
} = e, l = {
|
|
8398
8398
|
root: ["root", i, e.align !== "inherit" && `align${ue(t)}`, r && "gutterBottom", n && "noWrap", o && "paragraph"]
|
|
8399
8399
|
};
|
|
8400
|
-
return
|
|
8400
|
+
return Ce(l, YI, s);
|
|
8401
8401
|
}, "useUtilityClasses$F"), XI = J("span", {
|
|
8402
8402
|
name: "MuiTypography",
|
|
8403
8403
|
slot: "Root",
|
|
@@ -8559,7 +8559,7 @@ Oe("MuiDialogContentText", ["root"]);
|
|
|
8559
8559
|
const rL = ["children", "className"], nL = /* @__PURE__ */ a((e) => {
|
|
8560
8560
|
const {
|
|
8561
8561
|
classes: t
|
|
8562
|
-
} = e, n =
|
|
8562
|
+
} = e, n = Ce({
|
|
8563
8563
|
root: ["root"]
|
|
8564
8564
|
}, tL, t);
|
|
8565
8565
|
return E({}, t, n);
|
|
@@ -8612,7 +8612,7 @@ const iL = ["className", "id"], aL = /* @__PURE__ */ a((e) => {
|
|
|
8612
8612
|
const {
|
|
8613
8613
|
classes: t
|
|
8614
8614
|
} = e;
|
|
8615
|
-
return
|
|
8615
|
+
return Ce({
|
|
8616
8616
|
root: ["root"]
|
|
8617
8617
|
}, WI, t);
|
|
8618
8618
|
}, "useUtilityClasses$D"), sL = J(kt, {
|
|
@@ -9129,7 +9129,7 @@ const Nn = 44, xL = xa(t0 || (t0 = Cd`
|
|
|
9129
9129
|
svg: ["svg"],
|
|
9130
9130
|
circle: ["circle", `circle${ue(r)}`, o && "circleDisableShrink"]
|
|
9131
9131
|
};
|
|
9132
|
-
return
|
|
9132
|
+
return Ce(i, vL, t);
|
|
9133
9133
|
}, "useUtilityClasses$C"), TL = J("span", {
|
|
9134
9134
|
name: "MuiCircularProgress",
|
|
9135
9135
|
slot: "Root",
|
|
@@ -9887,7 +9887,7 @@ const ra = Oe("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
9887
9887
|
root: ["root", `color${ue(r)}`, n && "disabled", o && "error", u && "fullWidth", s && "focused", l && "formControl", h && h !== "medium" && `size${ue(h)}`, p && "multiline", g && "adornedStart", i && "adornedEnd", d && "hiddenLabel", f && "readOnly"],
|
|
9888
9888
|
input: ["input", n && "disabled", m === "search" && "inputTypeSearch", p && "inputMultiline", h === "small" && "inputSizeSmall", d && "inputHiddenLabel", g && "inputAdornedStart", i && "inputAdornedEnd", f && "readOnly"]
|
|
9889
9889
|
};
|
|
9890
|
-
return
|
|
9890
|
+
return Ce(b, HL, t);
|
|
9891
9891
|
}, "useUtilityClasses$B"), Pd = J("div", {
|
|
9892
9892
|
name: "MuiInputBase",
|
|
9893
9893
|
slot: "Root",
|
|
@@ -10071,8 +10071,8 @@ const ra = Oe("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
10071
10071
|
value: oe
|
|
10072
10072
|
} = o, B = ne(o, WL), U = k.value != null ? k.value : oe, {
|
|
10073
10073
|
current: K
|
|
10074
|
-
} = x.useRef(U != null), q = x.useRef(), te = x.useCallback((
|
|
10075
|
-
process.env.NODE_ENV !== "production" &&
|
|
10074
|
+
} = x.useRef(U != null), q = x.useRef(), te = x.useCallback((xe) => {
|
|
10075
|
+
process.env.NODE_ENV !== "production" && xe && xe.nodeName !== "INPUT" && !xe.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
10076
10076
|
`));
|
|
10077
10077
|
}, []), Z = St(q, T, k.ref, te), [ie, se] = x.useState(!1), ae = Pa();
|
|
10078
10078
|
process.env.NODE_ENV !== "production" && x.useEffect(() => {
|
|
@@ -10087,38 +10087,38 @@ const ra = Oe("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
10087
10087
|
$.focused = ae ? ae.focused : ie, x.useEffect(() => {
|
|
10088
10088
|
!ae && h && ie && (se(!1), R && R());
|
|
10089
10089
|
}, [ae, h, ie, R]);
|
|
10090
|
-
const ee = ae && ae.onFilled, G = ae && ae.onEmpty, be = x.useCallback((
|
|
10091
|
-
Sc(
|
|
10090
|
+
const ee = ae && ae.onFilled, G = ae && ae.onEmpty, be = x.useCallback((xe) => {
|
|
10091
|
+
Sc(xe) ? ee && ee() : G && G();
|
|
10092
10092
|
}, [ee, G]);
|
|
10093
10093
|
pn(() => {
|
|
10094
10094
|
K && be({
|
|
10095
10095
|
value: U
|
|
10096
10096
|
});
|
|
10097
10097
|
}, [U, be, K]);
|
|
10098
|
-
const Ve = /* @__PURE__ */ a((
|
|
10098
|
+
const Ve = /* @__PURE__ */ a((xe) => {
|
|
10099
10099
|
if ($.disabled) {
|
|
10100
|
-
|
|
10100
|
+
xe.stopPropagation();
|
|
10101
10101
|
return;
|
|
10102
10102
|
}
|
|
10103
|
-
A && A(
|
|
10104
|
-
}, "handleFocus"), je = /* @__PURE__ */ a((
|
|
10105
|
-
R && R(
|
|
10106
|
-
}, "handleBlur"), $e = /* @__PURE__ */ a((
|
|
10103
|
+
A && A(xe), k.onFocus && k.onFocus(xe), ae && ae.onFocus ? ae.onFocus(xe) : se(!0);
|
|
10104
|
+
}, "handleFocus"), je = /* @__PURE__ */ a((xe) => {
|
|
10105
|
+
R && R(xe), k.onBlur && k.onBlur(xe), ae && ae.onBlur ? ae.onBlur(xe) : se(!1);
|
|
10106
|
+
}, "handleBlur"), $e = /* @__PURE__ */ a((xe, ...me) => {
|
|
10107
10107
|
if (!K) {
|
|
10108
|
-
const
|
|
10109
|
-
if (
|
|
10108
|
+
const et = xe.target || q.current;
|
|
10109
|
+
if (et == null)
|
|
10110
10110
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : Mn(1));
|
|
10111
10111
|
be({
|
|
10112
|
-
value:
|
|
10112
|
+
value: et.value
|
|
10113
10113
|
});
|
|
10114
10114
|
}
|
|
10115
|
-
k.onChange && k.onChange(
|
|
10115
|
+
k.onChange && k.onChange(xe, ...me), M && M(xe, ...me);
|
|
10116
10116
|
}, "handleChange");
|
|
10117
10117
|
x.useEffect(() => {
|
|
10118
10118
|
be(q.current);
|
|
10119
10119
|
}, []);
|
|
10120
|
-
const ct = /* @__PURE__ */ a((
|
|
10121
|
-
q.current &&
|
|
10120
|
+
const ct = /* @__PURE__ */ a((xe) => {
|
|
10121
|
+
q.current && xe.currentTarget === xe.target && q.current.focus(), F && F(xe);
|
|
10122
10122
|
}, "handleClick");
|
|
10123
10123
|
let Be = O, Te = k;
|
|
10124
10124
|
w && Be === "input" && (V ? (process.env.NODE_ENV !== "production" && (S || C) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), Te = E({
|
|
@@ -10130,15 +10130,15 @@ const ra = Oe("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
10130
10130
|
maxRows: C,
|
|
10131
10131
|
minRows: S
|
|
10132
10132
|
}, Te), Be = jS);
|
|
10133
|
-
const
|
|
10134
|
-
be(
|
|
10133
|
+
const rt = /* @__PURE__ */ a((xe) => {
|
|
10134
|
+
be(xe.animationName === "mui-auto-fill-cancel" ? q.current : {
|
|
10135
10135
|
value: "x"
|
|
10136
10136
|
});
|
|
10137
10137
|
}, "handleAutoFill");
|
|
10138
10138
|
x.useEffect(() => {
|
|
10139
10139
|
ae && ae.setAdornedStart(!!D);
|
|
10140
10140
|
}, [ae, D]);
|
|
10141
|
-
const
|
|
10141
|
+
const nt = E({}, o, {
|
|
10142
10142
|
color: $.color || "primary",
|
|
10143
10143
|
disabled: $.disabled,
|
|
10144
10144
|
endAdornment: m,
|
|
@@ -10151,10 +10151,10 @@ const ra = Oe("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
10151
10151
|
size: $.size,
|
|
10152
10152
|
startAdornment: D,
|
|
10153
10153
|
type: H
|
|
10154
|
-
}), ze = UL(
|
|
10154
|
+
}), ze = UL(nt), ut = Q.root || d.Root || Pd, pe = I.root || p.root || {}, We = Q.input || d.Input || Md;
|
|
10155
10155
|
return Te = E({}, Te, (n = I.input) != null ? n : p.input), /* @__PURE__ */ Y(x.Fragment, {
|
|
10156
10156
|
children: [!g && qL, /* @__PURE__ */ Y(ut, E({}, pe, !Zi(ut) && {
|
|
10157
|
-
ownerState: E({},
|
|
10157
|
+
ownerState: E({}, nt, pe.ownerState)
|
|
10158
10158
|
}, {
|
|
10159
10159
|
ref: r,
|
|
10160
10160
|
onClick: ct
|
|
@@ -10162,8 +10162,8 @@ const ra = Oe("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
10162
10162
|
className: re(ze.root, pe.className, u, z && "MuiInputBase-readOnly"),
|
|
10163
10163
|
children: [D, /* @__PURE__ */ v(Ed.Provider, {
|
|
10164
10164
|
value: null,
|
|
10165
|
-
children: /* @__PURE__ */ v(
|
|
10166
|
-
ownerState:
|
|
10165
|
+
children: /* @__PURE__ */ v(We, E({
|
|
10166
|
+
ownerState: nt,
|
|
10167
10167
|
"aria-invalid": $.error,
|
|
10168
10168
|
"aria-describedby": i,
|
|
10169
10169
|
autoComplete: s,
|
|
@@ -10171,7 +10171,7 @@ const ra = Oe("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
10171
10171
|
defaultValue: f,
|
|
10172
10172
|
disabled: $.disabled,
|
|
10173
10173
|
id: y,
|
|
10174
|
-
onAnimationStart:
|
|
10174
|
+
onAnimationStart: rt,
|
|
10175
10175
|
name: P,
|
|
10176
10176
|
placeholder: L,
|
|
10177
10177
|
readOnly: z,
|
|
@@ -10181,9 +10181,9 @@ const ra = Oe("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
10181
10181
|
onKeyDown: j,
|
|
10182
10182
|
onKeyUp: N,
|
|
10183
10183
|
type: H
|
|
10184
|
-
}, Te, !Zi(
|
|
10184
|
+
}, Te, !Zi(We) && {
|
|
10185
10185
|
as: Be,
|
|
10186
|
-
ownerState: E({},
|
|
10186
|
+
ownerState: E({}, nt, Te.ownerState)
|
|
10187
10187
|
}, {
|
|
10188
10188
|
ref: Z,
|
|
10189
10189
|
className: re(ze.input, Te.className, z && "MuiInputBase-readOnly"),
|
|
@@ -10435,7 +10435,7 @@ a(GL, "getOutlinedInputUtilityClass");
|
|
|
10435
10435
|
const vr = E({}, ra, Oe("MuiOutlinedInput", ["root", "notchedOutline", "input"])), KL = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"], YL = /* @__PURE__ */ a((e) => {
|
|
10436
10436
|
const {
|
|
10437
10437
|
classes: t
|
|
10438
|
-
} = e, n =
|
|
10438
|
+
} = e, n = Ce({
|
|
10439
10439
|
root: ["root"],
|
|
10440
10440
|
notchedOutline: ["notchedOutline"],
|
|
10441
10441
|
input: ["input"]
|
|
@@ -11056,7 +11056,7 @@ const sN = Oe("MuiButtonBase", ["root", "disabled", "focusVisible"]), lN = ["act
|
|
|
11056
11056
|
focusVisible: r,
|
|
11057
11057
|
focusVisibleClassName: n,
|
|
11058
11058
|
classes: o
|
|
11059
|
-
} = e, s =
|
|
11059
|
+
} = e, s = Ce({
|
|
11060
11060
|
root: ["root", t && "disabled", r && "focusVisible"]
|
|
11061
11061
|
}, aN, o);
|
|
11062
11062
|
return r && n && (s.root += ` ${n}`), s;
|
|
@@ -11155,27 +11155,27 @@ const sN = Oe("MuiButtonBase", ["root", "disabled", "focusVisible"]), lN = ["act
|
|
|
11155
11155
|
x.useEffect(() => {
|
|
11156
11156
|
U && h && !p && q && I.current.pulsate();
|
|
11157
11157
|
}, [p, h, U, q]);
|
|
11158
|
-
function ie(
|
|
11159
|
-
return sr((Et) => (
|
|
11158
|
+
function ie(me, et, vt = f) {
|
|
11159
|
+
return sr((Et) => (et && et(Et), !vt && I.current && I.current[me](Et), !0));
|
|
11160
11160
|
}
|
|
11161
11161
|
a(ie, "useRippleHandler");
|
|
11162
|
-
const se = ie("start", w), ae = ie("stop", y), $ = ie("stop", O), ee = ie("stop", R), G = ie("stop", (
|
|
11163
|
-
U &&
|
|
11164
|
-
}), be = ie("start", A), Ve = ie("stop", M), je = ie("stop", F), $e = ie("stop", (
|
|
11165
|
-
oe(
|
|
11166
|
-
}, !1), ct = sr((
|
|
11167
|
-
V.current || (V.current =
|
|
11162
|
+
const se = ie("start", w), ae = ie("stop", y), $ = ie("stop", O), ee = ie("stop", R), G = ie("stop", (me) => {
|
|
11163
|
+
U && me.preventDefault(), P && P(me);
|
|
11164
|
+
}), be = ie("start", A), Ve = ie("stop", M), je = ie("stop", F), $e = ie("stop", (me) => {
|
|
11165
|
+
oe(me), D.current === !1 && K(!1), m && m(me);
|
|
11166
|
+
}, !1), ct = sr((me) => {
|
|
11167
|
+
V.current || (V.current = me.currentTarget), H(me), D.current === !0 && (K(!0), T && T(me)), k && k(me);
|
|
11168
11168
|
}), Be = /* @__PURE__ */ a(() => {
|
|
11169
|
-
const
|
|
11170
|
-
return u && u !== "button" && !(
|
|
11171
|
-
}, "isNonNativeButton"), Te = x.useRef(!1),
|
|
11172
|
-
h && !Te.current && U && I.current &&
|
|
11173
|
-
I.current.start(
|
|
11174
|
-
})),
|
|
11175
|
-
}),
|
|
11176
|
-
h &&
|
|
11177
|
-
I.current.pulsate(
|
|
11178
|
-
})), S && S(
|
|
11169
|
+
const me = V.current;
|
|
11170
|
+
return u && u !== "button" && !(me.tagName === "A" && me.href);
|
|
11171
|
+
}, "isNonNativeButton"), Te = x.useRef(!1), rt = sr((me) => {
|
|
11172
|
+
h && !Te.current && U && I.current && me.key === " " && (Te.current = !0, I.current.stop(me, () => {
|
|
11173
|
+
I.current.start(me);
|
|
11174
|
+
})), me.target === me.currentTarget && Be() && me.key === " " && me.preventDefault(), C && C(me), me.target === me.currentTarget && Be() && me.key === "Enter" && !d && (me.preventDefault(), b && b(me));
|
|
11175
|
+
}), nt = sr((me) => {
|
|
11176
|
+
h && me.key === " " && I.current && U && !me.defaultPrevented && (Te.current = !1, I.current.stop(me, () => {
|
|
11177
|
+
I.current.pulsate(me);
|
|
11178
|
+
})), S && S(me), b && me.target === me.currentTarget && Be() && me.key === " " && !me.defaultPrevented && b(me);
|
|
11179
11179
|
});
|
|
11180
11180
|
let ze = u;
|
|
11181
11181
|
ze === "button" && (_.href || _.to) && (ze = g);
|
|
@@ -11186,7 +11186,7 @@ const sN = Oe("MuiButtonBase", ["root", "disabled", "focusVisible"]), lN = ["act
|
|
|
11186
11186
|
Z && !I.current && console.error(["MUI: The `component` prop provided to ButtonBase is invalid.", "Please make sure the children prop is rendered in this custom component."].join(`
|
|
11187
11187
|
`));
|
|
11188
11188
|
}, [Z]);
|
|
11189
|
-
const
|
|
11189
|
+
const We = E({}, n, {
|
|
11190
11190
|
centerRipple: i,
|
|
11191
11191
|
component: u,
|
|
11192
11192
|
disabled: d,
|
|
@@ -11195,17 +11195,17 @@ const sN = Oe("MuiButtonBase", ["root", "disabled", "focusVisible"]), lN = ["act
|
|
|
11195
11195
|
focusRipple: h,
|
|
11196
11196
|
tabIndex: j,
|
|
11197
11197
|
focusVisible: U
|
|
11198
|
-
}),
|
|
11198
|
+
}), xe = cN(We);
|
|
11199
11199
|
return /* @__PURE__ */ Y(uN, E({
|
|
11200
11200
|
as: ze,
|
|
11201
|
-
className: re(
|
|
11202
|
-
ownerState:
|
|
11201
|
+
className: re(xe.root, l),
|
|
11202
|
+
ownerState: We,
|
|
11203
11203
|
onBlur: $e,
|
|
11204
11204
|
onClick: b,
|
|
11205
11205
|
onContextMenu: ae,
|
|
11206
11206
|
onFocus: ct,
|
|
11207
|
-
onKeyDown:
|
|
11208
|
-
onKeyUp:
|
|
11207
|
+
onKeyDown: rt,
|
|
11208
|
+
onKeyUp: nt,
|
|
11209
11209
|
onMouseDown: se,
|
|
11210
11210
|
onMouseLeave: G,
|
|
11211
11211
|
onMouseUp: ee,
|
|
@@ -11398,7 +11398,7 @@ const WS = Oe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
11398
11398
|
} = e, s = {
|
|
11399
11399
|
root: ["root", r && "disabled", n !== "default" && `color${ue(n)}`, o && `edge${ue(o)}`, `size${ue(i)}`]
|
|
11400
11400
|
};
|
|
11401
|
-
return
|
|
11401
|
+
return Ce(s, dN, t);
|
|
11402
11402
|
}, "useUtilityClasses$y"), hN = J(io, {
|
|
11403
11403
|
name: "MuiIconButton",
|
|
11404
11404
|
slot: "Root",
|
|
@@ -11588,7 +11588,7 @@ const SN = ["children", "className", "component", "dense", "disablePadding", "su
|
|
|
11588
11588
|
dense: n,
|
|
11589
11589
|
subheader: o
|
|
11590
11590
|
} = e;
|
|
11591
|
-
return
|
|
11591
|
+
return Ce({
|
|
11592
11592
|
root: ["root", !r && "padding", n && "dense", o && "subheader"]
|
|
11593
11593
|
}, xN, t);
|
|
11594
11594
|
}, "useUtilityClasses$x"), TN = J("ul", {
|
|
@@ -11708,7 +11708,7 @@ const Si = Oe("MuiListItemButton", ["root", "focusVisible", "dense", "alignItems
|
|
|
11708
11708
|
disableGutters: i,
|
|
11709
11709
|
divider: s,
|
|
11710
11710
|
selected: l
|
|
11711
|
-
} = e, d =
|
|
11711
|
+
} = e, d = Ce({
|
|
11712
11712
|
root: ["root", n && "dense", !i && "gutters", s && "divider", o && "disabled", t === "flex-start" && "alignItemsFlexStart", l && "selected"]
|
|
11713
11713
|
}, kN, r);
|
|
11714
11714
|
return E({}, r, d);
|
|
@@ -11906,7 +11906,7 @@ const FN = ["className"], $N = /* @__PURE__ */ a((e) => {
|
|
|
11906
11906
|
disableGutters: t,
|
|
11907
11907
|
classes: r
|
|
11908
11908
|
} = e;
|
|
11909
|
-
return
|
|
11909
|
+
return Ce({
|
|
11910
11910
|
root: ["root", t && "disableGutters"]
|
|
11911
11911
|
}, AN, r);
|
|
11912
11912
|
}, "useUtilityClasses$v"), IN = J("div", {
|
|
@@ -11983,7 +11983,7 @@ const LN = ["className"], NN = ["alignItems", "autoFocus", "button", "children",
|
|
|
11983
11983
|
hasSecondaryAction: d,
|
|
11984
11984
|
selected: p
|
|
11985
11985
|
} = e;
|
|
11986
|
-
return
|
|
11986
|
+
return Ce({
|
|
11987
11987
|
root: ["root", o && "dense", !s && "gutters", !l && "padding", u && "divider", i && "disabled", r && "button", t === "flex-start" && "alignItemsFlexStart", d && "secondaryAction", p && "selected"],
|
|
11988
11988
|
container: ["container"]
|
|
11989
11989
|
}, EN, n);
|
|
@@ -12311,7 +12311,7 @@ const p0 = Oe("MuiListItemIcon", ["root", "alignItemsFlexStart"]), VN = ["classN
|
|
|
12311
12311
|
alignItems: t,
|
|
12312
12312
|
classes: r
|
|
12313
12313
|
} = e;
|
|
12314
|
-
return
|
|
12314
|
+
return Ce({
|
|
12315
12315
|
root: ["root", t === "flex-start" && "alignItemsFlexStart"]
|
|
12316
12316
|
}, BN, r);
|
|
12317
12317
|
}, "useUtilityClasses$t"), WN = J("div", {
|
|
@@ -12383,7 +12383,7 @@ const Cc = Oe("MuiListItemText", ["root", "multiline", "dense", "inset", "primar
|
|
|
12383
12383
|
secondary: o,
|
|
12384
12384
|
dense: i
|
|
12385
12385
|
} = e;
|
|
12386
|
-
return
|
|
12386
|
+
return Ce({
|
|
12387
12387
|
root: ["root", r && "inset", i && "dense", n && o && "multiline"],
|
|
12388
12388
|
primary: ["primary"],
|
|
12389
12389
|
secondary: ["secondary"]
|
|
@@ -12791,7 +12791,7 @@ const XN = ["BackdropProps"], ZN = ["anchor", "BackdropProps", "children", "clas
|
|
|
12791
12791
|
modal: ["modal"],
|
|
12792
12792
|
paper: ["paper", `paperAnchor${ue(r)}`, n !== "temporary" && `paperAnchorDocked${ue(r)}`]
|
|
12793
12793
|
};
|
|
12794
|
-
return
|
|
12794
|
+
return Ce(o, QN, t);
|
|
12795
12795
|
}, "useUtilityClasses$r"), tD = J(Od, {
|
|
12796
12796
|
name: "MuiDrawer",
|
|
12797
12797
|
slot: "Root",
|
|
@@ -13680,7 +13680,7 @@ const Dn = Oe("MuiBadge", [
|
|
|
13680
13680
|
root: ["root"],
|
|
13681
13681
|
badge: ["badge", i, n && "invisible", `anchorOrigin${ue(r.vertical)}${ue(r.horizontal)}`, `anchorOrigin${ue(r.vertical)}${ue(r.horizontal)}${ue(o)}`, `overlap${ue(o)}`, t !== "default" && `color${ue(t)}`]
|
|
13682
13682
|
};
|
|
13683
|
-
return
|
|
13683
|
+
return Ce(l, bD, s);
|
|
13684
13684
|
}, "useUtilityClasses$q"), OD = J("span", {
|
|
13685
13685
|
name: "MuiBadge",
|
|
13686
13686
|
slot: "Root",
|
|
@@ -21221,9 +21221,9 @@ const m_ = {
|
|
|
21221
21221
|
})(tC);
|
|
21222
21222
|
const L_ = /* @__PURE__ */ a((e) => {
|
|
21223
21223
|
const { onRenderGrilla: t, onLoadGrilla: r, apiRef: n = {} } = e, { isLoading: o } = qi(), i = Sd(e);
|
|
21224
|
-
|
|
21224
|
+
tt(() => {
|
|
21225
21225
|
t && t({ ...i, api: n == null ? void 0 : n.current });
|
|
21226
|
-
}, []),
|
|
21226
|
+
}, []), tt(() => {
|
|
21227
21227
|
o || r && r({ ...i, api: n == null ? void 0 : n.current });
|
|
21228
21228
|
}, [o]);
|
|
21229
21229
|
}, "useInitGrilla");
|
|
@@ -21248,7 +21248,7 @@ const z_ = ["className", "color", "enableColorOnDark", "position"], B_ = /* @__P
|
|
|
21248
21248
|
} = e, o = {
|
|
21249
21249
|
root: ["root", `color${ue(t)}`, `position${ue(r)}`]
|
|
21250
21250
|
};
|
|
21251
|
-
return
|
|
21251
|
+
return Ce(o, j_, n);
|
|
21252
21252
|
}, "useUtilityClasses$p"), Pl = /* @__PURE__ */ a((e, t) => e ? `${e == null ? void 0 : e.replace(")", "")}, ${t})` : t, "joinVars"), V_ = J(hn, {
|
|
21253
21253
|
name: "MuiAppBar",
|
|
21254
21254
|
slot: "Root",
|
|
@@ -21403,7 +21403,7 @@ const W_ = ["className", "component", "disableGutters", "variant"], U_ = /* @__P
|
|
|
21403
21403
|
disableGutters: r,
|
|
21404
21404
|
variant: n
|
|
21405
21405
|
} = e;
|
|
21406
|
-
return
|
|
21406
|
+
return Ce({
|
|
21407
21407
|
root: ["root", !r && "gutters", n]
|
|
21408
21408
|
}, H_, t);
|
|
21409
21409
|
}, "useUtilityClasses$o"), q_ = J("div", {
|
|
@@ -21963,7 +21963,7 @@ const pC = /* @__PURE__ */ a((e) => {
|
|
|
21963
21963
|
} = e, u = ke(qm), d = r === "ventana" ? bj : Wx, p = Yh(), [f, h] = De(null), [g, m] = De(i), b = /* @__PURE__ */ a((y) => {
|
|
21964
21964
|
m(y.target.checked);
|
|
21965
21965
|
}, "handleChange");
|
|
21966
|
-
return
|
|
21966
|
+
return tt(() => {
|
|
21967
21967
|
p.getGrillaConfig(t).then((y) => {
|
|
21968
21968
|
h(y.data);
|
|
21969
21969
|
}).catch((y) => {
|
|
@@ -22022,10 +22022,9 @@ const pC = /* @__PURE__ */ a((e) => {
|
|
|
22022
22022
|
]), b0 = new Map(
|
|
22023
22023
|
Array.from(xj, (e) => [e[1], e[0]])
|
|
22024
22024
|
), Sj = /* @__PURE__ */ a((e) => e.items.reduce((t, r) => {
|
|
22025
|
-
var n;
|
|
22026
22025
|
if (typeof r.field < "u" && r.operator) {
|
|
22027
|
-
let
|
|
22028
|
-
|
|
22026
|
+
let n = r.field;
|
|
22027
|
+
n === "__row_group_by_columns_group__" && e.groupingField && (n = e.groupingField), b0.has(r.operator) ? t[`${n}_${b0.get(r.operator)}`] = r.value : t[n] = r.value;
|
|
22029
22028
|
}
|
|
22030
22029
|
return t;
|
|
22031
22030
|
}, {}), "defaultConvertFilterModelToFilterValues"), mC = /* @__PURE__ */ a((e) => {
|
|
@@ -22069,16 +22068,16 @@ const pC = /* @__PURE__ */ a((e) => {
|
|
|
22069
22068
|
sort: H,
|
|
22070
22069
|
setSort: oe
|
|
22071
22070
|
} = qi(), B = Js(), U = Xs(), K = tm(), q = ke(hC), te = ke(EB), Z = dg();
|
|
22072
|
-
|
|
22071
|
+
tt(() => {
|
|
22073
22072
|
te && (te.current.activePanel.params.apiRef = K);
|
|
22074
22073
|
}, [te]);
|
|
22075
22074
|
const ie = {}, se = [], ae = [], $ = i.map((pe) => {
|
|
22076
|
-
const
|
|
22077
|
-
return
|
|
22075
|
+
const We = q[pe.field.replace("_lis", "")];
|
|
22076
|
+
return We ? { ...pe, ...We } : pe;
|
|
22078
22077
|
}).sort(
|
|
22079
|
-
(pe,
|
|
22080
|
-
var
|
|
22081
|
-
return parseInt((
|
|
22078
|
+
(pe, We) => {
|
|
22079
|
+
var xe, me;
|
|
22080
|
+
return parseInt((xe = q[pe.field.replace("_lis", "")]) == null ? void 0 : xe.orden) - parseInt((me = q[We.field.replace("_lis", "")]) == null ? void 0 : me.orden);
|
|
22082
22081
|
}
|
|
22083
22082
|
), {
|
|
22084
22083
|
columns: { columnVisibilityModel: ee = {} },
|
|
@@ -22124,11 +22123,11 @@ const pC = /* @__PURE__ */ a((e) => {
|
|
|
22124
22123
|
hideable: !1,
|
|
22125
22124
|
renderHeader: /* @__PURE__ */ a(() => /* @__PURE__ */ v(Pn, { children: r }), "renderHeader"),
|
|
22126
22125
|
getActions: /* @__PURE__ */ a((pe) => {
|
|
22127
|
-
const
|
|
22126
|
+
const We = K.current.getRowNode(pe.id), xe = !Rf(
|
|
22128
22127
|
pe.row,
|
|
22129
22128
|
s
|
|
22130
|
-
),
|
|
22131
|
-
const { handler: or, key:
|
|
22129
|
+
), me = y && xe, et = t.filter((vt) => !!vt).map((vt, Et) => {
|
|
22130
|
+
const { handler: or, key: ge, ...X } = vt;
|
|
22132
22131
|
return /* @__PURE__ */ v(
|
|
22133
22132
|
Gy,
|
|
22134
22133
|
{
|
|
@@ -22141,7 +22140,7 @@ const pC = /* @__PURE__ */ a((e) => {
|
|
|
22141
22140
|
...P,
|
|
22142
22141
|
record: pe.row
|
|
22143
22142
|
},
|
|
22144
|
-
|
|
22143
|
+
ge
|
|
22145
22144
|
) : !1, "onClick"),
|
|
22146
22145
|
...X
|
|
22147
22146
|
},
|
|
@@ -22162,7 +22161,7 @@ const pC = /* @__PURE__ */ a((e) => {
|
|
|
22162
22161
|
}
|
|
22163
22162
|
});
|
|
22164
22163
|
}, "handleClick");
|
|
22165
|
-
|
|
22164
|
+
et.unshift(
|
|
22166
22165
|
/* @__PURE__ */ v(
|
|
22167
22166
|
Gy,
|
|
22168
22167
|
{
|
|
@@ -22180,7 +22179,7 @@ const pC = /* @__PURE__ */ a((e) => {
|
|
|
22180
22179
|
}
|
|
22181
22180
|
return pe.row.id ? [
|
|
22182
22181
|
...h ? [
|
|
22183
|
-
|
|
22182
|
+
me ? /* @__PURE__ */ v(
|
|
22184
22183
|
m0,
|
|
22185
22184
|
{
|
|
22186
22185
|
record: pe.row
|
|
@@ -22189,7 +22188,7 @@ const pC = /* @__PURE__ */ a((e) => {
|
|
|
22189
22188
|
rj,
|
|
22190
22189
|
{
|
|
22191
22190
|
record: pe.row,
|
|
22192
|
-
disabled:
|
|
22191
|
+
disabled: xe
|
|
22193
22192
|
}
|
|
22194
22193
|
)
|
|
22195
22194
|
] : y ? [
|
|
@@ -22201,13 +22200,13 @@ const pC = /* @__PURE__ */ a((e) => {
|
|
|
22201
22200
|
`show-${pe.row.id}`
|
|
22202
22201
|
)
|
|
22203
22202
|
] : [],
|
|
22204
|
-
...
|
|
22205
|
-
] :
|
|
22203
|
+
...et
|
|
22204
|
+
] : We.children[0].indexOf(`${b}=`) !== -1 ? [
|
|
22206
22205
|
/* @__PURE__ */ v(
|
|
22207
22206
|
X_,
|
|
22208
22207
|
{
|
|
22209
22208
|
record: b ? {
|
|
22210
|
-
[b]:
|
|
22209
|
+
[b]: We.children[0].split(
|
|
22211
22210
|
`${b}=`
|
|
22212
22211
|
)[1].replaceAll(
|
|
22213
22212
|
"[",
|
|
@@ -22222,18 +22221,23 @@ const pC = /* @__PURE__ */ a((e) => {
|
|
|
22222
22221
|
}
|
|
22223
22222
|
]) : je, ct = fr(() => $e, []), Be = j && Cn(F), Te = /* @__PURE__ */ a((pe) => {
|
|
22224
22223
|
_ || (j || !O ? I(pe) : K.current.isRowSelected(pe[0]) ? I([]) : I(pe));
|
|
22225
|
-
}, "handleSelectionChange"),
|
|
22226
|
-
|
|
22227
|
-
|
|
22224
|
+
}, "handleSelectionChange"), rt = /* @__PURE__ */ a((pe) => {
|
|
22225
|
+
var et;
|
|
22226
|
+
const me = (((et = K.current.state.rowGrouping) == null ? void 0 : et.model) || [])[0];
|
|
22227
|
+
D(
|
|
22228
|
+
m({ groupingField: me, ...pe }),
|
|
22229
|
+
Q
|
|
22230
|
+
);
|
|
22231
|
+
}, "handleFilterChange"), nt = /* @__PURE__ */ a((pe) => {
|
|
22228
22232
|
if (pe.length > 0) {
|
|
22229
|
-
const { field:
|
|
22230
|
-
let
|
|
22231
|
-
H.field ===
|
|
22233
|
+
const { field: We } = pe[0];
|
|
22234
|
+
let xe;
|
|
22235
|
+
H.field === We ? xe = H.order === "ASC" ? "DESC" : H.order === "DESC" ? "" : "ASC" : xe = "ASC", oe({ field: We, order: xe });
|
|
22232
22236
|
} else
|
|
22233
22237
|
oe({ field: "", order: "" });
|
|
22234
22238
|
}, "handleSortModelChange"), ze = /* @__PURE__ */ a((pe) => {
|
|
22235
|
-
var
|
|
22236
|
-
!((
|
|
22239
|
+
var We;
|
|
22240
|
+
!((We = pe == null ? void 0 : pe.id) != null && We.startsWith("auto-generated-row")) && h && Rf(pe.row, s) && U(`/${M}/${pe.id}`);
|
|
22237
22241
|
}, "handleRowDoubleClick"), ut = !e.unstable_listView && !N ? H.field ? {
|
|
22238
22242
|
sortModel: [
|
|
22239
22243
|
{
|
|
@@ -22274,14 +22278,14 @@ const pC = /* @__PURE__ */ a((e) => {
|
|
|
22274
22278
|
disableMultipleRowSelection: !j && O,
|
|
22275
22279
|
checkboxSelection: N,
|
|
22276
22280
|
filterMode: "server",
|
|
22277
|
-
onFilterModelChange:
|
|
22281
|
+
onFilterModelChange: rt,
|
|
22278
22282
|
rowSelectionModel: V,
|
|
22279
22283
|
onRowSelectionModelChange: Te,
|
|
22280
22284
|
isRowSelectable: /* @__PURE__ */ a((pe) => pe.row.id, "isRowSelectable"),
|
|
22281
22285
|
onRowDoubleClick: ze,
|
|
22282
22286
|
initialState: Ve,
|
|
22283
22287
|
...ut,
|
|
22284
|
-
onSortModelChange:
|
|
22288
|
+
onSortModelChange: nt,
|
|
22285
22289
|
sortingMode: "server",
|
|
22286
22290
|
...S,
|
|
22287
22291
|
...L
|
|
@@ -22465,7 +22469,7 @@ const pC = /* @__PURE__ */ a((e) => {
|
|
|
22465
22469
|
} = e, { dirtyFields: d, isValid: p } = AP(), {
|
|
22466
22470
|
fichaProps: { [e.source]: f = {}, etrs: h }
|
|
22467
22471
|
} = ke(xt), g = ka(), m = ke(wa), { onAfterRenderAsistente: b, ...y } = f, O = mn({ resource: r, etrs: h, asisEtr: m });
|
|
22468
|
-
return
|
|
22472
|
+
return tt(() => {
|
|
22469
22473
|
u && typeof b == "function" && b({ ...O, form: t }, n);
|
|
22470
22474
|
}, [u]), /* @__PURE__ */ Y(Pn, { children: [
|
|
22471
22475
|
/* @__PURE__ */ v(pl, { children: /* @__PURE__ */ v(Kh, { spacing: 4, children: Yu.map(
|
|
@@ -22710,7 +22714,7 @@ const pC = /* @__PURE__ */ a((e) => {
|
|
|
22710
22714
|
field: ee
|
|
22711
22715
|
}
|
|
22712
22716
|
]);
|
|
22713
|
-
}),
|
|
22717
|
+
}), tt(() => {
|
|
22714
22718
|
u || setTimeout(() => {
|
|
22715
22719
|
T.setValue(h, "");
|
|
22716
22720
|
}, 1e3);
|
|
@@ -22958,7 +22962,7 @@ const y0 = Oe("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle",
|
|
|
22958
22962
|
textAlign: l,
|
|
22959
22963
|
variant: u
|
|
22960
22964
|
} = e;
|
|
22961
|
-
return
|
|
22965
|
+
return Ce({
|
|
22962
22966
|
root: ["root", t && "absolute", u, i && "light", s === "vertical" && "vertical", o && "flexItem", r && "withChildren", r && s === "vertical" && "withChildrenVertical", l === "right" && s !== "vertical" && "textAlignRight", l === "left" && s !== "vertical" && "textAlignLeft"],
|
|
22963
22967
|
wrapper: ["wrapper", s === "vertical" && "wrapperVertical"]
|
|
22964
22968
|
}, $j, n);
|
|
@@ -23192,7 +23196,7 @@ const _n = Oe("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
23192
23196
|
root: ["root", i && s && "labelIcon", `textColor${ue(r)}`, n && "fullWidth", o && "wrapped", l && "selected", u && "disabled"],
|
|
23193
23197
|
iconWrapper: ["iconWrapper"]
|
|
23194
23198
|
};
|
|
23195
|
-
return
|
|
23199
|
+
return Ce(d, _j, t);
|
|
23196
23200
|
}, "useUtilityClasses$m"), Bj = J(io, {
|
|
23197
23201
|
name: "MuiTab",
|
|
23198
23202
|
slot: "Root",
|
|
@@ -23486,7 +23490,7 @@ const Yj = Oe("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
23486
23490
|
orientation: r,
|
|
23487
23491
|
disabled: n
|
|
23488
23492
|
} = e;
|
|
23489
|
-
return
|
|
23493
|
+
return Ce({
|
|
23490
23494
|
root: ["root", r, n && "disabled"]
|
|
23491
23495
|
}, Kj, t);
|
|
23492
23496
|
}, "useUtilityClasses$l"), Xj = J(io, {
|
|
@@ -23634,7 +23638,7 @@ const kp = Oe("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
23634
23638
|
scrollButtonsHideMobile: l,
|
|
23635
23639
|
classes: u
|
|
23636
23640
|
} = e;
|
|
23637
|
-
return
|
|
23641
|
+
return Ce({
|
|
23638
23642
|
root: ["root", t && "vertical"],
|
|
23639
23643
|
scroller: ["scroller", r && "fixed", n && "hideScrollbar", o && "scrollableX", i && "scrollableY"],
|
|
23640
23644
|
flexContainer: ["flexContainer", t && "flexContainerVertical", s && "centered"],
|
|
@@ -23873,10 +23877,10 @@ const xC = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
23873
23877
|
de ? Hj(z, je.current, X, {
|
|
23874
23878
|
duration: o.transitions.duration.standard
|
|
23875
23879
|
}) : je.current[z] = X;
|
|
23876
|
-
}, "scroll"),
|
|
23880
|
+
}, "scroll"), rt = /* @__PURE__ */ a((X) => {
|
|
23877
23881
|
let de = je.current[z];
|
|
23878
23882
|
L ? de += X : (de += X * (i ? -1 : 1), de *= i && cw() === "reverse" ? -1 : 1), Te(de);
|
|
23879
|
-
}, "moveTabsScroll"),
|
|
23883
|
+
}, "moveTabsScroll"), nt = /* @__PURE__ */ a(() => {
|
|
23880
23884
|
const X = je.current[I];
|
|
23881
23885
|
let de = 0;
|
|
23882
23886
|
const Me = Array.from($e.current.children);
|
|
@@ -23890,15 +23894,15 @@ const xC = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
23890
23894
|
}
|
|
23891
23895
|
return de;
|
|
23892
23896
|
}, "getScrollSize"), ze = /* @__PURE__ */ a(() => {
|
|
23893
|
-
|
|
23897
|
+
rt(-1 * nt());
|
|
23894
23898
|
}, "handleStartScrollClick"), ut = /* @__PURE__ */ a(() => {
|
|
23895
|
-
|
|
23899
|
+
rt(nt());
|
|
23896
23900
|
}, "handleEndScrollClick"), pe = x.useCallback((X) => {
|
|
23897
23901
|
be({
|
|
23898
23902
|
overflow: null,
|
|
23899
23903
|
scrollbarWidth: X
|
|
23900
23904
|
});
|
|
23901
|
-
}, []),
|
|
23905
|
+
}, []), We = /* @__PURE__ */ a(() => {
|
|
23902
23906
|
const X = {};
|
|
23903
23907
|
X.scrollbarSizeListener = N ? /* @__PURE__ */ v(az, {
|
|
23904
23908
|
onChange: pe,
|
|
@@ -23932,7 +23936,7 @@ const xC = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
23932
23936
|
}, P, {
|
|
23933
23937
|
className: re(H.scrollButtons, P.className)
|
|
23934
23938
|
})) : null, X;
|
|
23935
|
-
}, "getConditionalElements"),
|
|
23939
|
+
}, "getConditionalElements"), xe = sr((X) => {
|
|
23936
23940
|
const {
|
|
23937
23941
|
tabsMeta: de,
|
|
23938
23942
|
tabMeta: Me
|
|
@@ -23950,7 +23954,7 @@ const xC = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
23950
23954
|
});
|
|
23951
23955
|
}
|
|
23952
23956
|
}
|
|
23953
|
-
}),
|
|
23957
|
+
}), me = sr(() => {
|
|
23954
23958
|
N && k !== !1 && ee(!$);
|
|
23955
23959
|
});
|
|
23956
23960
|
x.useEffect(() => {
|
|
@@ -23967,7 +23971,7 @@ const xC = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
23967
23971
|
var Dr;
|
|
23968
23972
|
(Dr = de) == null || Dr.observe(Ln);
|
|
23969
23973
|
});
|
|
23970
|
-
}), X(),
|
|
23974
|
+
}), X(), me();
|
|
23971
23975
|
}, "handleMutation"), Ne = zr(je.current);
|
|
23972
23976
|
Ne.addEventListener("resize", X);
|
|
23973
23977
|
let dt;
|
|
@@ -23979,7 +23983,7 @@ const xC = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
23979
23983
|
var At, hr;
|
|
23980
23984
|
X.clear(), Ne.removeEventListener("resize", X), (At = dt) == null || At.disconnect(), (hr = de) == null || hr.disconnect();
|
|
23981
23985
|
};
|
|
23982
|
-
}, [Be,
|
|
23986
|
+
}, [Be, me]), x.useEffect(() => {
|
|
23983
23987
|
const X = Array.from($e.current.children), de = X.length;
|
|
23984
23988
|
if (typeof IntersectionObserver < "u" && de > 0 && N && k !== !1) {
|
|
23985
23989
|
const Me = X[0], Ne = X[de - 1], dt = {
|
|
@@ -24001,12 +24005,12 @@ const xC = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
24001
24005
|
}, []), x.useEffect(() => {
|
|
24002
24006
|
Be();
|
|
24003
24007
|
}), x.useEffect(() => {
|
|
24004
|
-
|
|
24005
|
-
}, [
|
|
24008
|
+
xe(x0 !== q);
|
|
24009
|
+
}, [xe, q]), x.useImperativeHandle(u, () => ({
|
|
24006
24010
|
updateIndicator: Be,
|
|
24007
|
-
updateScrollButtons:
|
|
24008
|
-
}), [Be,
|
|
24009
|
-
const
|
|
24011
|
+
updateScrollButtons: me
|
|
24012
|
+
}), [Be, me]);
|
|
24013
|
+
const et = /* @__PURE__ */ v(iz, E({}, w, {
|
|
24010
24014
|
className: re(H.indicator, w.className),
|
|
24011
24015
|
ownerState: D,
|
|
24012
24016
|
style: E({}, q, w.style)
|
|
@@ -24022,7 +24026,7 @@ const xC = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
24022
24026
|
const Me = de === M;
|
|
24023
24027
|
return vt += 1, /* @__PURE__ */ x.cloneElement(X, E({
|
|
24024
24028
|
fullWidth: F === "fullWidth",
|
|
24025
|
-
indicator: Me && !U &&
|
|
24029
|
+
indicator: Me && !U && et,
|
|
24026
24030
|
selected: Me,
|
|
24027
24031
|
selectionFollowsFocus: T,
|
|
24028
24032
|
onChange: b,
|
|
@@ -24050,14 +24054,14 @@ const xC = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
24050
24054
|
X.preventDefault(), Ml(de, null, O0);
|
|
24051
24055
|
break;
|
|
24052
24056
|
}
|
|
24053
|
-
}, "handleKeyDown"),
|
|
24057
|
+
}, "handleKeyDown"), ge = We();
|
|
24054
24058
|
return /* @__PURE__ */ Y(rz, E({
|
|
24055
24059
|
className: re(H.root, f),
|
|
24056
24060
|
ownerState: D,
|
|
24057
24061
|
ref: r,
|
|
24058
24062
|
as: h
|
|
24059
24063
|
}, j, {
|
|
24060
|
-
children: [
|
|
24064
|
+
children: [ge.scrollButtonStart, ge.scrollbarSizeListener, /* @__PURE__ */ Y(nz, {
|
|
24061
24065
|
className: H.scroller,
|
|
24062
24066
|
ownerState: D,
|
|
24063
24067
|
style: {
|
|
@@ -24075,8 +24079,8 @@ const xC = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
24075
24079
|
ref: $e,
|
|
24076
24080
|
role: "tablist",
|
|
24077
24081
|
children: Et
|
|
24078
|
-
}), U &&
|
|
24079
|
-
}),
|
|
24082
|
+
}), U && et]
|
|
24083
|
+
}), ge.scrollButtonEnd]
|
|
24080
24084
|
}));
|
|
24081
24085
|
}, "Tabs"));
|
|
24082
24086
|
process.env.NODE_ENV !== "production" && (xC.propTypes = {
|
|
@@ -25075,8 +25079,8 @@ const Mz = /^(\d+)(th|st|nd|rd)?/i, Rz = /\d+/i, Az = {
|
|
|
25075
25079
|
}
|
|
25076
25080
|
}, nr = /* @__PURE__ */ a((e) => {
|
|
25077
25081
|
const { source: t } = e, { estado: r, isLoading: n, fichaProps: o = {} } = ke(xt), i = ke(wa), s = i !== void 0, l = nm((Te) => {
|
|
25078
|
-
const
|
|
25079
|
-
return
|
|
25082
|
+
const rt = Te.configInputs ? Te.configInputs.filter((nt) => nt.id === t) : [];
|
|
25083
|
+
return rt[0] ? rt[0] : null;
|
|
25080
25084
|
}), {
|
|
25081
25085
|
disabled: u,
|
|
25082
25086
|
hidden: d,
|
|
@@ -25660,7 +25664,7 @@ var mg = {};
|
|
|
25660
25664
|
Object.defineProperty(mg, "__esModule", {
|
|
25661
25665
|
value: !0
|
|
25662
25666
|
});
|
|
25663
|
-
var kC = mg.default = void 0, $B = LB(
|
|
25667
|
+
var kC = mg.default = void 0, $B = LB(ot), IB = I1;
|
|
25664
25668
|
function wC(e) {
|
|
25665
25669
|
if (typeof WeakMap != "function") return null;
|
|
25666
25670
|
var t = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
|
|
@@ -26448,8 +26452,8 @@ function AV(e) {
|
|
|
26448
26452
|
w[C] = Ve, j[C] = Ve - V;
|
|
26449
26453
|
}
|
|
26450
26454
|
if (l) {
|
|
26451
|
-
var je, $e = C === "x" ? Xt : Zt, ct = C === "x" ? Ar : Fr, Be = w[S], Te = S === "y" ? "height" : "width",
|
|
26452
|
-
w[S] =
|
|
26455
|
+
var je, $e = C === "x" ? Xt : Zt, ct = C === "x" ? Ar : Fr, Be = w[S], Te = S === "y" ? "height" : "width", rt = Be + y[$e], nt = Be - y[ct], ze = [Xt, Zt].indexOf(O) !== -1, ut = (je = A == null ? void 0 : A[S]) != null ? je : 0, pe = ze ? rt : Be - P[Te] - R[Te] - ut + F.altAxis, We = ze ? Be + P[Te] + R[Te] - ut - F.altAxis : nt, xe = g && ze ? tV(pe, Be, We) : es(g ? pe : rt, Be, g ? We : nt);
|
|
26456
|
+
w[S] = xe, j[S] = xe - Be;
|
|
26453
26457
|
}
|
|
26454
26458
|
t.modifiersData[n] = j;
|
|
26455
26459
|
}
|
|
@@ -26705,7 +26709,7 @@ const YV = /* @__PURE__ */ a((e) => {
|
|
|
26705
26709
|
const {
|
|
26706
26710
|
classes: t
|
|
26707
26711
|
} = e;
|
|
26708
|
-
return
|
|
26712
|
+
return Ce({
|
|
26709
26713
|
root: ["root"]
|
|
26710
26714
|
}, WV, t);
|
|
26711
26715
|
}, "useUtilityClasses$j"), JV = {}, QV = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
@@ -27175,7 +27179,7 @@ const n5 = /* @__PURE__ */ a((e) => {
|
|
|
27175
27179
|
tooltip: ["tooltip", n && "tooltipArrow", o && "touch", `tooltipPlacement${ue(i.split("-")[0])}`],
|
|
27176
27180
|
arrow: ["arrow"]
|
|
27177
27181
|
};
|
|
27178
|
-
return
|
|
27182
|
+
return Ce(s, e5, t);
|
|
27179
27183
|
}, "useUtilityClasses$i"), o5 = J(Cg, {
|
|
27180
27184
|
name: "MuiTooltip",
|
|
27181
27185
|
slot: "Popper",
|
|
@@ -27373,13 +27377,13 @@ const Ld = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
27373
27377
|
TransitionProps: ee
|
|
27374
27378
|
} = w, G = ne(w, t5), be = /* @__PURE__ */ x.isValidElement(R) ? R : /* @__PURE__ */ v("span", {
|
|
27375
27379
|
children: R
|
|
27376
|
-
}), Ve = In(), je = sl(), [$e, ct] = x.useState(), [Be, Te] = x.useState(null),
|
|
27380
|
+
}), Ve = In(), je = sl(), [$e, ct] = x.useState(), [Be, Te] = x.useState(null), rt = x.useRef(!1), nt = L || Q, ze = ki(), ut = ki(), pe = ki(), We = ki(), [xe, me] = bc({
|
|
27377
27381
|
controlled: K,
|
|
27378
27382
|
default: !1,
|
|
27379
27383
|
name: "Tooltip",
|
|
27380
27384
|
state: "open"
|
|
27381
27385
|
});
|
|
27382
|
-
let
|
|
27386
|
+
let et = xe;
|
|
27383
27387
|
if (process.env.NODE_ENV !== "production") {
|
|
27384
27388
|
const {
|
|
27385
27389
|
current: Ie
|
|
@@ -27390,11 +27394,11 @@ const Ld = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
27390
27394
|
}, [ae, $e, Ie]);
|
|
27391
27395
|
}
|
|
27392
27396
|
const vt = al(D), Et = x.useRef(), or = sr(() => {
|
|
27393
|
-
Et.current !== void 0 && (document.body.style.WebkitUserSelect = Et.current, Et.current = void 0),
|
|
27397
|
+
Et.current !== void 0 && (document.body.style.WebkitUserSelect = Et.current, Et.current = void 0), We.clear();
|
|
27394
27398
|
});
|
|
27395
27399
|
x.useEffect(() => or, [or]);
|
|
27396
|
-
const
|
|
27397
|
-
$0.clear(), Al = !0,
|
|
27400
|
+
const ge = /* @__PURE__ */ a((Ie) => {
|
|
27401
|
+
$0.clear(), Al = !0, me(!0), U && !et && U(Ie);
|
|
27398
27402
|
}, "handleOpen"), X = sr(
|
|
27399
27403
|
/**
|
|
27400
27404
|
* @param {React.SyntheticEvent | Event} event
|
|
@@ -27402,14 +27406,14 @@ const Ld = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
27402
27406
|
(Ie) => {
|
|
27403
27407
|
$0.start(800 + H, () => {
|
|
27404
27408
|
Al = !1;
|
|
27405
|
-
}),
|
|
27406
|
-
|
|
27409
|
+
}), me(!1), B && et && B(Ie), ze.start(Ve.transitions.duration.shortest, () => {
|
|
27410
|
+
rt.current = !1;
|
|
27407
27411
|
});
|
|
27408
27412
|
}
|
|
27409
27413
|
), de = /* @__PURE__ */ a((Ie) => {
|
|
27410
|
-
|
|
27411
|
-
|
|
27412
|
-
}) :
|
|
27414
|
+
rt.current && Ie.type !== "touchstart" || ($e && $e.removeAttribute("title"), ut.clear(), pe.clear(), _ || Al && V ? ut.start(Al ? V : _, () => {
|
|
27415
|
+
ge(Ie);
|
|
27416
|
+
}) : ge(Ie));
|
|
27413
27417
|
}, "handleMouseOver"), Me = /* @__PURE__ */ a((Ie) => {
|
|
27414
27418
|
ut.clear(), pe.start(H, () => {
|
|
27415
27419
|
X(Ie);
|
|
@@ -27424,11 +27428,11 @@ const Ld = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
27424
27428
|
}, "handleBlur"), pi = /* @__PURE__ */ a((Ie) => {
|
|
27425
27429
|
$e || ct(Ie.currentTarget), At(Ie), Ne.current === !0 && (Ln(!0), de(Ie));
|
|
27426
27430
|
}, "handleFocus"), Ly = /* @__PURE__ */ a((Ie) => {
|
|
27427
|
-
|
|
27431
|
+
rt.current = !0;
|
|
27428
27432
|
const ir = be.props;
|
|
27429
27433
|
ir.onTouchStart && ir.onTouchStart(Ie);
|
|
27430
27434
|
}, "detectTouchStart"), Gk = /* @__PURE__ */ a((Ie) => {
|
|
27431
|
-
Ly(Ie), pe.clear(), ze.clear(), or(), Et.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none",
|
|
27435
|
+
Ly(Ie), pe.clear(), ze.clear(), or(), Et.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", We.start(I, () => {
|
|
27432
27436
|
document.body.style.WebkitUserSelect = Et.current, de(Ie);
|
|
27433
27437
|
});
|
|
27434
27438
|
}, "handleTouchStart"), Kk = /* @__PURE__ */ a((Ie) => {
|
|
@@ -27437,7 +27441,7 @@ const Ld = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
27437
27441
|
});
|
|
27438
27442
|
}, "handleTouchEnd");
|
|
27439
27443
|
x.useEffect(() => {
|
|
27440
|
-
if (!
|
|
27444
|
+
if (!et)
|
|
27441
27445
|
return;
|
|
27442
27446
|
function Ie(ir) {
|
|
27443
27447
|
(ir.key === "Escape" || ir.key === "Esc") && X(ir);
|
|
@@ -27445,9 +27449,9 @@ const Ld = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
27445
27449
|
return a(Ie, "handleKeyDown"), document.addEventListener("keydown", Ie), () => {
|
|
27446
27450
|
document.removeEventListener("keydown", Ie);
|
|
27447
27451
|
};
|
|
27448
|
-
}, [X,
|
|
27452
|
+
}, [X, et]);
|
|
27449
27453
|
const Yk = St(be.ref, hr, ct, r);
|
|
27450
|
-
!ae && ae !== 0 && (
|
|
27454
|
+
!ae && ae !== 0 && (et = !1);
|
|
27451
27455
|
const Zd = x.useRef(), Jk = /* @__PURE__ */ a((Ie) => {
|
|
27452
27456
|
const ir = be.props;
|
|
27453
27457
|
ir.onMouseMove && ir.onMouseMove(Ie), za = {
|
|
@@ -27455,7 +27459,7 @@ const Ld = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
27455
27459
|
y: Ie.clientY
|
|
27456
27460
|
}, Zd.current && Zd.current.update();
|
|
27457
27461
|
}, "handleMouseMove"), Ia = {}, ep = typeof ae == "string";
|
|
27458
|
-
A ? (Ia.title = !
|
|
27462
|
+
A ? (Ia.title = !et && ep && !N ? ae : null, Ia["aria-describedby"] = et ? vt : null) : (Ia["aria-label"] = ep ? ae : null, Ia["aria-labelledby"] = et && !ep ? vt : null);
|
|
27459
27463
|
const mr = E({}, Ia, G, be.props, {
|
|
27460
27464
|
className: re(G.className, be.props.className),
|
|
27461
27465
|
onTouchStart: Ly,
|
|
@@ -27468,7 +27472,7 @@ const Ld = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
27468
27472
|
`));
|
|
27469
27473
|
}, [$e]));
|
|
27470
27474
|
const La = {};
|
|
27471
|
-
z || (mr.onTouchStart = Gk, mr.onTouchEnd = Kk), N || (mr.onMouseOver = Fl(de, mr.onMouseOver), mr.onMouseLeave = Fl(Me, mr.onMouseLeave),
|
|
27475
|
+
z || (mr.onTouchStart = Gk, mr.onTouchEnd = Kk), N || (mr.onMouseOver = Fl(de, mr.onMouseOver), mr.onMouseLeave = Fl(Me, mr.onMouseLeave), nt || (La.onMouseOver = de, La.onMouseLeave = Me)), j || (mr.onFocus = Fl(pi, mr.onFocus), mr.onBlur = Fl(Dr, mr.onBlur), nt || (La.onFocus = pi, La.onBlur = Dr)), process.env.NODE_ENV !== "production" && be.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${be.props.title}\` or the Tooltip component.`].join(`
|
|
27472
27476
|
`));
|
|
27473
27477
|
const Qk = x.useMemo(() => {
|
|
27474
27478
|
var Ie;
|
|
@@ -27486,10 +27490,10 @@ const Ld = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
27486
27490
|
}, [Be, Z]), Na = E({}, w, {
|
|
27487
27491
|
isRtl: je,
|
|
27488
27492
|
arrow: P,
|
|
27489
|
-
disableInteractive:
|
|
27493
|
+
disableInteractive: nt,
|
|
27490
27494
|
placement: q,
|
|
27491
27495
|
PopperComponentProp: te,
|
|
27492
|
-
touch:
|
|
27496
|
+
touch: rt.current
|
|
27493
27497
|
}), tp = n5(Na), Ny = (n = (o = se.popper) != null ? o : M.Popper) != null ? n : o5, Dy = (i = (s = (l = se.transition) != null ? l : M.Transition) != null ? s : $) != null ? i : Is, _y = (u = (d = se.tooltip) != null ? d : M.Tooltip) != null ? u : i5, jy = (p = (f = se.arrow) != null ? f : M.Arrow) != null ? p : a5, Xk = wi(Ny, E({}, Z, (h = ie.popper) != null ? h : F.popper, {
|
|
27494
27498
|
className: re(tp.popper, Z == null ? void 0 : Z.className, (g = (m = ie.popper) != null ? m : F.popper) == null ? void 0 : g.className)
|
|
27495
27499
|
}), Na), Zk = wi(Dy, E({}, ee, (b = ie.transition) != null ? b : F.transition), Na), ew = wi(_y, E({}, (y = ie.tooltip) != null ? y : F.tooltip, {
|
|
@@ -27512,7 +27516,7 @@ const Ld = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
27512
27516
|
}), "getBoundingClientRect")
|
|
27513
27517
|
} : $e,
|
|
27514
27518
|
popperRef: Zd,
|
|
27515
|
-
open: $e ?
|
|
27519
|
+
open: $e ? et : !1,
|
|
27516
27520
|
id: vt,
|
|
27517
27521
|
transition: !0
|
|
27518
27522
|
}, La, Xk, {
|
|
@@ -27841,9 +27845,9 @@ const s5 = /* @__PURE__ */ a(({
|
|
|
27841
27845
|
);
|
|
27842
27846
|
}), _C = /* @__PURE__ */ a((e) => {
|
|
27843
27847
|
const t = gt(e), { estado: r, isLoading: n, initialValues: o, fichaProps: i } = ke(xt), s = mn({ resource: t, etrs: i.etrs });
|
|
27844
|
-
return
|
|
27848
|
+
return tt(() => {
|
|
27845
27849
|
i.onRenderFicha && i.onRenderFicha(s, r);
|
|
27846
|
-
}, []),
|
|
27850
|
+
}, []), tt(() => {
|
|
27847
27851
|
n || i.onLoadFicha && i.onLoadFicha(s, r, o);
|
|
27848
27852
|
}, [n]), /* @__PURE__ */ Y(Bx, { className: e.className, sx: e.sx, children: [
|
|
27849
27853
|
/* @__PURE__ */ v(oC, { isLoading: n }),
|
|
@@ -28171,7 +28175,7 @@ const $5 = ["alt", "children", "className", "component", "slots", "slotProps", "
|
|
|
28171
28175
|
variant: r,
|
|
28172
28176
|
colorDefault: n
|
|
28173
28177
|
} = e;
|
|
28174
|
-
return
|
|
28178
|
+
return Ce({
|
|
28175
28179
|
root: ["root", r, n && "colorDefault"],
|
|
28176
28180
|
img: ["img"],
|
|
28177
28181
|
fallback: ["fallback"]
|
|
@@ -28420,7 +28424,7 @@ const z5 = ["children", "color", "component", "className", "disabled", "disableE
|
|
|
28420
28424
|
label: ["label"],
|
|
28421
28425
|
startIcon: ["icon", "startIcon", `iconSize${ue(o)}`],
|
|
28422
28426
|
endIcon: ["icon", "endIcon", `iconSize${ue(o)}`]
|
|
28423
|
-
}, u =
|
|
28427
|
+
}, u = Ce(l, j5, s);
|
|
28424
28428
|
return E({}, s, u);
|
|
28425
28429
|
}, "useUtilityClasses$g"), UC = /* @__PURE__ */ a((e) => E({}, e.size === "small" && {
|
|
28426
28430
|
"& > *:nth-of-type(1)": {
|
|
@@ -28756,7 +28760,7 @@ const q5 = ["className", "raised"], G5 = /* @__PURE__ */ a((e) => {
|
|
|
28756
28760
|
const {
|
|
28757
28761
|
classes: t
|
|
28758
28762
|
} = e;
|
|
28759
|
-
return
|
|
28763
|
+
return Ce({
|
|
28760
28764
|
root: ["root"]
|
|
28761
28765
|
}, U5, t);
|
|
28762
28766
|
}, "useUtilityClasses$f"), K5 = J(hn, {
|
|
@@ -28819,7 +28823,7 @@ const J5 = ["disableSpacing", "className"], Q5 = /* @__PURE__ */ a((e) => {
|
|
|
28819
28823
|
classes: t,
|
|
28820
28824
|
disableSpacing: r
|
|
28821
28825
|
} = e;
|
|
28822
|
-
return
|
|
28826
|
+
return Ce({
|
|
28823
28827
|
root: ["root", !r && "spacing"]
|
|
28824
28828
|
}, Y5, t);
|
|
28825
28829
|
}, "useUtilityClasses$e"), X5 = J("div", {
|
|
@@ -29187,7 +29191,7 @@ const i3 = /* @__PURE__ */ a((e) => {
|
|
|
29187
29191
|
const {
|
|
29188
29192
|
classes: t
|
|
29189
29193
|
} = e;
|
|
29190
|
-
return
|
|
29194
|
+
return Ce({
|
|
29191
29195
|
root: ["root"],
|
|
29192
29196
|
paper: ["paper"]
|
|
29193
29197
|
}, t3, t);
|
|
@@ -29283,20 +29287,20 @@ const i3 = /* @__PURE__ */ a((e) => {
|
|
|
29283
29287
|
};
|
|
29284
29288
|
const Ve = V();
|
|
29285
29289
|
let je = Ve.top - be.vertical, $e = Ve.left - be.horizontal;
|
|
29286
|
-
const ct = je + G.height, Be = $e + G.width, Te = zr(tc(u)),
|
|
29290
|
+
const ct = je + G.height, Be = $e + G.width, Te = zr(tc(u)), rt = Te.innerHeight - y, nt = Te.innerWidth - y;
|
|
29287
29291
|
if (y !== null && je < y) {
|
|
29288
29292
|
const ze = je - y;
|
|
29289
29293
|
je -= ze, be.vertical += ze;
|
|
29290
|
-
} else if (y !== null && ct >
|
|
29291
|
-
const ze = ct -
|
|
29294
|
+
} else if (y !== null && ct > rt) {
|
|
29295
|
+
const ze = ct - rt;
|
|
29292
29296
|
je -= ze, be.vertical += ze;
|
|
29293
29297
|
}
|
|
29294
|
-
if (process.env.NODE_ENV !== "production" && G.height >
|
|
29298
|
+
if (process.env.NODE_ENV !== "production" && G.height > rt && G.height && rt && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${G.height - rt}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
29295
29299
|
`)), y !== null && $e < y) {
|
|
29296
29300
|
const ze = $e - y;
|
|
29297
29301
|
$e -= ze, be.horizontal += ze;
|
|
29298
|
-
} else if (Be >
|
|
29299
|
-
const ze = Be -
|
|
29302
|
+
} else if (Be > nt) {
|
|
29303
|
+
const ze = Be - nt;
|
|
29300
29304
|
$e -= ze, be.horizontal += ze;
|
|
29301
29305
|
}
|
|
29302
29306
|
return {
|
|
@@ -29576,7 +29580,7 @@ const l3 = ["onEntering"], c3 = ["autoFocus", "children", "className", "disableA
|
|
|
29576
29580
|
const {
|
|
29577
29581
|
classes: t
|
|
29578
29582
|
} = e;
|
|
29579
|
-
return
|
|
29583
|
+
return Ce({
|
|
29580
29584
|
root: ["root"],
|
|
29581
29585
|
paper: ["paper"],
|
|
29582
29586
|
list: ["list"]
|
|
@@ -29817,7 +29821,7 @@ const Va = Oe("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divi
|
|
|
29817
29821
|
disableGutters: o,
|
|
29818
29822
|
selected: i,
|
|
29819
29823
|
classes: s
|
|
29820
|
-
} = e, u =
|
|
29824
|
+
} = e, u = Ce({
|
|
29821
29825
|
root: ["root", r && "dense", t && "disabled", !o && "gutters", n && "divider", i && "selected"]
|
|
29822
29826
|
}, g3, s);
|
|
29823
29827
|
return E({}, s, u);
|
|
@@ -30485,7 +30489,7 @@ const B3 = Oe("MuiLink", ["root", "underlineNone", "underlineHover", "underlineA
|
|
|
30485
30489
|
} = e, i = {
|
|
30486
30490
|
root: ["root", `underline${ue(o)}`, r === "button" && "button", n && "focusVisible"]
|
|
30487
30491
|
};
|
|
30488
|
-
return
|
|
30492
|
+
return Ce(i, z3, t);
|
|
30489
30493
|
}, "useUtilityClasses$a"), q3 = J(kt, {
|
|
30490
30494
|
name: "MuiLink",
|
|
30491
30495
|
slot: "Root",
|
|
@@ -30664,7 +30668,7 @@ iT = Fg.default = (0, J3.default)(/* @__PURE__ */ (0, Q3.jsx)("path", {
|
|
|
30664
30668
|
}), "AddAPhoto");
|
|
30665
30669
|
const j0 = /* @__PURE__ */ a((e) => {
|
|
30666
30670
|
const [t, r] = De(!1), [n, o] = De(!1), i = $n(), s = Tt(), { field: l, sx: u } = e;
|
|
30667
|
-
return
|
|
30671
|
+
return tt(() => {
|
|
30668
30672
|
t && (/* @__PURE__ */ a(async () => {
|
|
30669
30673
|
let p = null;
|
|
30670
30674
|
try {
|
|
@@ -30777,7 +30781,7 @@ const j0 = /* @__PURE__ */ a((e) => {
|
|
|
30777
30781
|
if (!b)
|
|
30778
30782
|
return null;
|
|
30779
30783
|
const k = b.getValues()[f.source], T = y ?? "#";
|
|
30780
|
-
return
|
|
30784
|
+
return tt(() => {
|
|
30781
30785
|
u && k && (k != null && k.src ? O(k.src) : u(k).then((C) => {
|
|
30782
30786
|
O(C);
|
|
30783
30787
|
}));
|
|
@@ -30886,7 +30890,7 @@ const j0 = /* @__PURE__ */ a((e) => {
|
|
|
30886
30890
|
allChoices: l,
|
|
30887
30891
|
availableChoices: u
|
|
30888
30892
|
} = fP(), d = Ju(null);
|
|
30889
|
-
return
|
|
30893
|
+
return tt(() => {
|
|
30890
30894
|
s || typeof t == "function" && t(Object.values([l]));
|
|
30891
30895
|
}, [l, t, s]), /* @__PURE__ */ v(Z3, { title: ((p = d.current) == null ? void 0 : p.value) || "", placement: "top", arrow: !0, children: /* @__PURE__ */ v(
|
|
30892
30896
|
at,
|
|
@@ -30935,7 +30939,7 @@ const j0 = /* @__PURE__ */ a((e) => {
|
|
|
30935
30939
|
const { callback: O, ...k } = m;
|
|
30936
30940
|
b = O, y = k;
|
|
30937
30941
|
}
|
|
30938
|
-
return
|
|
30942
|
+
return tt(() => {
|
|
30939
30943
|
h !== null && (g.current = h, n(uL(p)));
|
|
30940
30944
|
}, [JSON.stringify(h)]), !r && !o ? /* @__PURE__ */ Y(an, { children: [
|
|
30941
30945
|
/* @__PURE__ */ v(
|
|
@@ -31138,7 +31142,7 @@ const b4 = /* @__PURE__ */ a((e) => /* @__PURE__ */ v(
|
|
|
31138
31142
|
hidden: u,
|
|
31139
31143
|
propsContenido: { readOnly: d, label: p, sx: f, onChange: h }
|
|
31140
31144
|
} = nr(e), g = $r();
|
|
31141
|
-
|
|
31145
|
+
tt(() => {
|
|
31142
31146
|
O();
|
|
31143
31147
|
}, []);
|
|
31144
31148
|
const m = He(() => {
|
|
@@ -31293,7 +31297,7 @@ const b4 = /* @__PURE__ */ a((e) => /* @__PURE__ */ v(
|
|
|
31293
31297
|
}
|
|
31294
31298
|
), "AsistenteList"), E4 = { fillista: "empcod=-1" }, k4 = /* @__PURE__ */ a((e) => {
|
|
31295
31299
|
const [t, r] = De(E4), [n, o] = De([]), i = Yh();
|
|
31296
|
-
|
|
31300
|
+
tt(() => {
|
|
31297
31301
|
(/* @__PURE__ */ a(async () => {
|
|
31298
31302
|
const f = await l("");
|
|
31299
31303
|
o(f);
|
|
@@ -31464,7 +31468,7 @@ const b4 = /* @__PURE__ */ a((e) => /* @__PURE__ */ v(
|
|
|
31464
31468
|
hidden: m,
|
|
31465
31469
|
propsContenido: { readOnly: b, sx: y, label: O = "Funcionarios" }
|
|
31466
31470
|
} = nr(e), { [n]: k = {}, etrs: T } = h, C = mn({ ...e, etrs: T, asisEtr: g }), S = k.onChange === void 0 ? i : k.onChange;
|
|
31467
|
-
|
|
31471
|
+
tt(() => {
|
|
31468
31472
|
p.setValue(n, B0);
|
|
31469
31473
|
}, []);
|
|
31470
31474
|
const w = He(() => {
|
|
@@ -32001,7 +32005,7 @@ function Rc(e, t) {
|
|
|
32001
32005
|
}
|
|
32002
32006
|
a(Rc, "compareDeep");
|
|
32003
32007
|
var Zn;
|
|
32004
|
-
let
|
|
32008
|
+
let it = (Zn = class {
|
|
32005
32009
|
/**
|
|
32006
32010
|
@internal
|
|
32007
32011
|
*/
|
|
@@ -32106,7 +32110,7 @@ let ot = (Zn = class {
|
|
|
32106
32110
|
return r.sort((n, o) => n.type.rank - o.type.rank), r;
|
|
32107
32111
|
}
|
|
32108
32112
|
}, a(Zn, "Mark"), Zn);
|
|
32109
|
-
|
|
32113
|
+
it.none = [];
|
|
32110
32114
|
const Kb = class Kb extends Error {
|
|
32111
32115
|
};
|
|
32112
32116
|
a(Kb, "ReplaceError");
|
|
@@ -32420,7 +32424,7 @@ const ps = class ps {
|
|
|
32420
32424
|
marks() {
|
|
32421
32425
|
let t = this.parent, r = this.index();
|
|
32422
32426
|
if (t.content.size == 0)
|
|
32423
|
-
return
|
|
32427
|
+
return it.none;
|
|
32424
32428
|
if (this.textOffset)
|
|
32425
32429
|
return t.child(r).marks;
|
|
32426
32430
|
let n = t.maybeChild(r - 1), o = t.maybeChild(r);
|
|
@@ -32593,7 +32597,7 @@ let Vo = (eo = class {
|
|
|
32593
32597
|
/**
|
|
32594
32598
|
@internal
|
|
32595
32599
|
*/
|
|
32596
|
-
constructor(t, r, n, o =
|
|
32600
|
+
constructor(t, r, n, o = it.none) {
|
|
32597
32601
|
this.type = t, this.attrs = r, this.marks = o, this.content = n || le.empty;
|
|
32598
32602
|
}
|
|
32599
32603
|
/**
|
|
@@ -32701,7 +32705,7 @@ let Vo = (eo = class {
|
|
|
32701
32705
|
attributes, and marks.
|
|
32702
32706
|
*/
|
|
32703
32707
|
hasMarkup(t, r, n) {
|
|
32704
|
-
return this.type == t && Rc(this.attrs, r || t.defaultAttrs || L4) &&
|
|
32708
|
+
return this.type == t && Rc(this.attrs, r || t.defaultAttrs || L4) && it.sameSet(this.marks, n || it.none);
|
|
32705
32709
|
}
|
|
32706
32710
|
/**
|
|
32707
32711
|
Create a new node with the same markup as this node, containing
|
|
@@ -32911,12 +32915,12 @@ let Vo = (eo = class {
|
|
|
32911
32915
|
*/
|
|
32912
32916
|
check() {
|
|
32913
32917
|
this.type.checkContent(this.content), this.type.checkAttrs(this.attrs);
|
|
32914
|
-
let t =
|
|
32918
|
+
let t = it.none;
|
|
32915
32919
|
for (let r = 0; r < this.marks.length; r++) {
|
|
32916
32920
|
let n = this.marks[r];
|
|
32917
32921
|
n.type.checkAttrs(n.attrs), t = n.addToSet(t);
|
|
32918
32922
|
}
|
|
32919
|
-
if (!
|
|
32923
|
+
if (!it.sameSet(t, this.marks))
|
|
32920
32924
|
throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map((r) => r.type.name)}`);
|
|
32921
32925
|
this.content.forEach((r) => r.check());
|
|
32922
32926
|
}
|
|
@@ -33488,7 +33492,7 @@ let U0 = (Yo = class {
|
|
|
33488
33492
|
create(t = null, r, n) {
|
|
33489
33493
|
if (this.isText)
|
|
33490
33494
|
throw new Error("NodeType.create can't construct text nodes");
|
|
33491
|
-
return new Vo(this, this.computeAttrs(t), le.from(r),
|
|
33495
|
+
return new Vo(this, this.computeAttrs(t), le.from(r), it.setFrom(n));
|
|
33492
33496
|
}
|
|
33493
33497
|
/**
|
|
33494
33498
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
|
|
@@ -33496,7 +33500,7 @@ let U0 = (Yo = class {
|
|
|
33496
33500
|
if it doesn't match.
|
|
33497
33501
|
*/
|
|
33498
33502
|
createChecked(t = null, r, n) {
|
|
33499
|
-
return r = le.from(r), this.checkContent(r), new Vo(this, this.computeAttrs(t), r,
|
|
33503
|
+
return r = le.from(r), this.checkContent(r), new Vo(this, this.computeAttrs(t), r, it.setFrom(n));
|
|
33500
33504
|
}
|
|
33501
33505
|
/**
|
|
33502
33506
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
|
|
@@ -33514,7 +33518,7 @@ let U0 = (Yo = class {
|
|
|
33514
33518
|
r = s.append(r);
|
|
33515
33519
|
}
|
|
33516
33520
|
let o = this.contentMatch.matchFragment(r), i = o && o.fillBefore(le.empty, !0);
|
|
33517
|
-
return i ? new Vo(this, t, r.append(i),
|
|
33521
|
+
return i ? new Vo(this, t, r.append(i), it.setFrom(n)) : null;
|
|
33518
33522
|
}
|
|
33519
33523
|
/**
|
|
33520
33524
|
Returns true if the given fragment is valid content for this node
|
|
@@ -33570,7 +33574,7 @@ let U0 = (Yo = class {
|
|
|
33570
33574
|
let r;
|
|
33571
33575
|
for (let n = 0; n < t.length; n++)
|
|
33572
33576
|
this.allowsMarkType(t[n].type) ? r && r.push(t[n]) : r || (r = t.slice(0, n));
|
|
33573
|
-
return r ? r.length ? r :
|
|
33577
|
+
return r ? r.length ? r : it.none : t;
|
|
33574
33578
|
}
|
|
33575
33579
|
/**
|
|
33576
33580
|
@internal
|
|
@@ -33614,7 +33618,7 @@ const _u = class _u {
|
|
|
33614
33618
|
constructor(t, r, n, o) {
|
|
33615
33619
|
this.name = t, this.rank = r, this.schema = n, this.spec = o, this.attrs = vT(t, o.attrs), this.excluded = null;
|
|
33616
33620
|
let i = gT(this.attrs);
|
|
33617
|
-
this.instance = i ? new
|
|
33621
|
+
this.instance = i ? new it(this, i) : null;
|
|
33618
33622
|
}
|
|
33619
33623
|
/**
|
|
33620
33624
|
Create a mark of this type. `attrs` may be `null` or an object
|
|
@@ -33622,7 +33626,7 @@ const _u = class _u {
|
|
|
33622
33626
|
they have defaults, will be added.
|
|
33623
33627
|
*/
|
|
33624
33628
|
create(t = null) {
|
|
33625
|
-
return !t && this.instance ? this.instance : new
|
|
33629
|
+
return !t && this.instance ? this.instance : new it(this, bT(this.attrs, t));
|
|
33626
33630
|
}
|
|
33627
33631
|
/**
|
|
33628
33632
|
@internal
|
|
@@ -33715,7 +33719,7 @@ const Zb = class Zb {
|
|
|
33715
33719
|
*/
|
|
33716
33720
|
text(t, r) {
|
|
33717
33721
|
let n = this.nodes.text;
|
|
33718
|
-
return new Df(n, n.defaultAttrs, t,
|
|
33722
|
+
return new Df(n, n.defaultAttrs, t, it.setFrom(r));
|
|
33719
33723
|
}
|
|
33720
33724
|
/**
|
|
33721
33725
|
Create a mark with the given type and attributes.
|
|
@@ -33735,7 +33739,7 @@ const Zb = class Zb {
|
|
|
33735
33739
|
bound.
|
|
33736
33740
|
*/
|
|
33737
33741
|
markFromJSON(t) {
|
|
33738
|
-
return
|
|
33742
|
+
return it.fromJSON(this, t);
|
|
33739
33743
|
}
|
|
33740
33744
|
/**
|
|
33741
33745
|
@internal
|
|
@@ -33801,7 +33805,7 @@ const hs = class hs {
|
|
|
33801
33805
|
*/
|
|
33802
33806
|
parse(t, r = {}) {
|
|
33803
33807
|
let n = new Dc(this, r, !1);
|
|
33804
|
-
return n.addAll(t,
|
|
33808
|
+
return n.addAll(t, it.none, r.from, r.to), n.finish();
|
|
33805
33809
|
}
|
|
33806
33810
|
/**
|
|
33807
33811
|
Parses the content of the given DOM node, like
|
|
@@ -33813,7 +33817,7 @@ const hs = class hs {
|
|
|
33813
33817
|
*/
|
|
33814
33818
|
parseSlice(t, r = {}) {
|
|
33815
33819
|
let n = new Dc(this, r, !0);
|
|
33816
|
-
return n.addAll(t,
|
|
33820
|
+
return n.addAll(t, it.none, r.from, r.to), fe.maxOpen(n.finish());
|
|
33817
33821
|
}
|
|
33818
33822
|
/**
|
|
33819
33823
|
@internal
|
|
@@ -33939,7 +33943,7 @@ function G0(e, t, r) {
|
|
|
33939
33943
|
a(G0, "wsOptionsFor");
|
|
33940
33944
|
const ey = class ey {
|
|
33941
33945
|
constructor(t, r, n, o, i, s) {
|
|
33942
|
-
this.type = t, this.attrs = r, this.marks = n, this.solid = o, this.options = s, this.content = [], this.activeMarks =
|
|
33946
|
+
this.type = t, this.attrs = r, this.marks = n, this.solid = o, this.options = s, this.content = [], this.activeMarks = it.none, this.match = i || (s & ns ? null : t.contentMatch);
|
|
33943
33947
|
}
|
|
33944
33948
|
findWrapping(t) {
|
|
33945
33949
|
if (!this.match) {
|
|
@@ -33976,7 +33980,7 @@ const ty = class ty {
|
|
|
33976
33980
|
constructor(t, r, n) {
|
|
33977
33981
|
this.parser = t, this.options = r, this.isOpen = n, this.open = 0;
|
|
33978
33982
|
let o = r.topNode, i, s = G0(null, r.preserveWhitespace, 0) | (n ? ns : 0);
|
|
33979
|
-
o ? i = new Pi(o.type, o.attrs,
|
|
33983
|
+
o ? i = new Pi(o.type, o.attrs, it.none, !0, r.topMatch || o.type.contentMatch, s) : n ? i = new Pi(null, null, it.none, !0, null, s) : i = new Pi(t.schema.topNodeType, null, it.none, !0, null, s), this.nodes = [i], this.find = r.findPositions, this.needsBlock = !1;
|
|
33980
33984
|
}
|
|
33981
33985
|
get top() {
|
|
33982
33986
|
return this.nodes[this.open];
|
|
@@ -34123,7 +34127,7 @@ const ty = class ty {
|
|
|
34123
34127
|
this.closeExtra();
|
|
34124
34128
|
let o = this.top;
|
|
34125
34129
|
o.match && (o.match = o.match.matchType(t.type));
|
|
34126
|
-
let i =
|
|
34130
|
+
let i = it.none;
|
|
34127
34131
|
for (let s of n.concat(t.marks))
|
|
34128
34132
|
(o.type ? o.type.allowsMarkType(s.type) : Y0(s.type, t.type)) && (i = s.addToSet(i));
|
|
34129
34133
|
return o.content.push(t.mark(i)), !0;
|
|
@@ -34143,7 +34147,7 @@ const ty = class ty {
|
|
|
34143
34147
|
s.match = s.match && s.match.matchType(t);
|
|
34144
34148
|
let l = G0(t, i, s.options);
|
|
34145
34149
|
s.options & ns && s.content.length == 0 && (l |= ns);
|
|
34146
|
-
let u =
|
|
34150
|
+
let u = it.none;
|
|
34147
34151
|
return n = n.filter((d) => (s.type ? s.type.allowsMarkType(d.type) : Y0(d.type, t)) ? (u = d.addToSet(u), !1) : !0), this.nodes.push(new Pi(t, r, u, o, null, l)), this.open++, n;
|
|
34148
34152
|
}
|
|
34149
34153
|
// Make sure all nodes above this.open are finished and added to
|
|
@@ -35973,7 +35977,7 @@ const iy = class iy {
|
|
|
35973
35977
|
position `pos`.
|
|
35974
35978
|
*/
|
|
35975
35979
|
removeNodeMark(t, r) {
|
|
35976
|
-
if (!(r instanceof
|
|
35980
|
+
if (!(r instanceof it)) {
|
|
35977
35981
|
let n = this.doc.nodeAt(t);
|
|
35978
35982
|
if (!n)
|
|
35979
35983
|
throw new RangeError("No node at position " + t);
|
|
@@ -36335,9 +36339,9 @@ const Mo = class Mo extends Re {
|
|
|
36335
36339
|
}
|
|
36336
36340
|
};
|
|
36337
36341
|
a(Mo, "NodeSelection");
|
|
36338
|
-
let
|
|
36339
|
-
|
|
36340
|
-
Re.jsonID("node",
|
|
36342
|
+
let Se = Mo;
|
|
36343
|
+
Se.prototype.visible = !1;
|
|
36344
|
+
Re.jsonID("node", Se);
|
|
36341
36345
|
const Bu = class Bu {
|
|
36342
36346
|
constructor(t) {
|
|
36343
36347
|
this.anchor = t;
|
|
@@ -36348,7 +36352,7 @@ const Bu = class Bu {
|
|
|
36348
36352
|
}
|
|
36349
36353
|
resolve(t) {
|
|
36350
36354
|
let r = t.resolve(this.anchor), n = r.nodeAfter;
|
|
36351
|
-
return n &&
|
|
36355
|
+
return n && Se.isSelectable(n) ? new Se(r) : Re.near(r);
|
|
36352
36356
|
}
|
|
36353
36357
|
};
|
|
36354
36358
|
a(Bu, "NodeBookmark");
|
|
@@ -36404,8 +36408,8 @@ function Ci(e, t, r, n, o, i = !1) {
|
|
|
36404
36408
|
for (let s = n - (o > 0 ? 0 : 1); o > 0 ? s < t.childCount : s >= 0; s += o) {
|
|
36405
36409
|
let l = t.child(s);
|
|
36406
36410
|
if (l.isAtom) {
|
|
36407
|
-
if (!i &&
|
|
36408
|
-
return
|
|
36411
|
+
if (!i && Se.isSelectable(l))
|
|
36412
|
+
return Se.create(e, r - (o < 0 ? l.nodeSize : 0));
|
|
36409
36413
|
} else {
|
|
36410
36414
|
let u = Ci(e, l, r + o, o < 0 ? l.childCount : 0, o, i);
|
|
36411
36415
|
if (u)
|
|
@@ -36472,7 +36476,7 @@ const nO = 1, Ll = 2, oO = 4, ly = class ly extends Bc {
|
|
|
36472
36476
|
this is already the case.
|
|
36473
36477
|
*/
|
|
36474
36478
|
ensureMarks(t) {
|
|
36475
|
-
return
|
|
36479
|
+
return it.sameSet(this.storedMarks || this.selection.$from.marks(), t) || this.setStoredMarks(t), this;
|
|
36476
36480
|
}
|
|
36477
36481
|
/**
|
|
36478
36482
|
Add a mark to the set of stored marks.
|
|
@@ -36517,7 +36521,7 @@ const nO = 1, Ll = 2, oO = 4, ly = class ly extends Bc {
|
|
|
36517
36521
|
*/
|
|
36518
36522
|
replaceSelectionWith(t, r = !0) {
|
|
36519
36523
|
let n = this.selection;
|
|
36520
|
-
return r && (t = t.mark(this.storedMarks || (n.empty ? n.$from.marks() : n.$from.marksAcross(n.$to) ||
|
|
36524
|
+
return r && (t = t.mark(this.storedMarks || (n.empty ? n.$from.marks() : n.$from.marksAcross(n.$to) || it.none))), n.replaceWith(this, t), this;
|
|
36521
36525
|
}
|
|
36522
36526
|
/**
|
|
36523
36527
|
Delete the selection.
|
|
@@ -37829,7 +37833,7 @@ const Vu = class Vu extends si {
|
|
|
37829
37833
|
updateChildren(t, r) {
|
|
37830
37834
|
let n = this.node.inlineContent, o = r, i = t.composing ? this.localCompositionInfo(t, r) : null, s = i && i.pos > -1 ? i : null, l = i && i.pos < 0, u = new Zf(this, s && s.node, t);
|
|
37831
37835
|
KH(this.node, this.innerDeco, (d, p, f) => {
|
|
37832
|
-
d.spec.marks ? u.syncToMarks(d.spec.marks, n, t) : d.type.side >= 0 && !f && u.syncToMarks(p == this.node.childCount ?
|
|
37836
|
+
d.spec.marks ? u.syncToMarks(d.spec.marks, n, t) : d.type.side >= 0 && !f && u.syncToMarks(p == this.node.childCount ? it.none : this.node.child(p).marks, n, t), u.placeWidget(d, t, o);
|
|
37833
37837
|
}, (d, p, f, h) => {
|
|
37834
37838
|
u.syncToMarks(d.marks, n, t);
|
|
37835
37839
|
let g;
|
|
@@ -38378,9 +38382,9 @@ function Gg(e, t = null) {
|
|
|
38378
38382
|
for (u = s; o && !o.node; )
|
|
38379
38383
|
o = o.parent;
|
|
38380
38384
|
let f = o.node;
|
|
38381
|
-
if (o && f.isAtom &&
|
|
38385
|
+
if (o && f.isAtom && Se.isSelectable(f) && o.parent && !(f.isInline && EH(r.focusNode, r.focusOffset, o.dom))) {
|
|
38382
38386
|
let h = o.posBefore;
|
|
38383
|
-
d = new
|
|
38387
|
+
d = new Se(s == h ? l : n.resolve(h));
|
|
38384
38388
|
}
|
|
38385
38389
|
} else {
|
|
38386
38390
|
if (r instanceof e.dom.ownerDocument.defaultView.Selection && r.rangeCount > 1) {
|
|
@@ -38470,7 +38474,7 @@ function XH(e) {
|
|
|
38470
38474
|
}
|
|
38471
38475
|
a(XH, "selectCursorWrapper");
|
|
38472
38476
|
function YT(e, t) {
|
|
38473
|
-
if (t instanceof
|
|
38477
|
+
if (t instanceof Se) {
|
|
38474
38478
|
let r = e.docView.descAt(t.from);
|
|
38475
38479
|
r != e.lastSelectedViewDesc && (vO(e), r && r.selectNode(), e.lastSelectedViewDesc = r);
|
|
38476
38480
|
} else
|
|
@@ -38526,17 +38530,17 @@ function xO(e, t, r) {
|
|
|
38526
38530
|
} else if (n.empty) {
|
|
38527
38531
|
if (e.endOfTextblock(t > 0 ? "forward" : "backward")) {
|
|
38528
38532
|
let o = th(e.state, t);
|
|
38529
|
-
return o && o instanceof
|
|
38533
|
+
return o && o instanceof Se ? Bn(e, o) : !1;
|
|
38530
38534
|
} else if (!(xr && r.indexOf("m") > -1)) {
|
|
38531
38535
|
let o = n.$head, i = o.textOffset ? null : t < 0 ? o.nodeBefore : o.nodeAfter, s;
|
|
38532
38536
|
if (!i || i.isText)
|
|
38533
38537
|
return !1;
|
|
38534
38538
|
let l = t < 0 ? o.pos - i.nodeSize : o.pos;
|
|
38535
|
-
return i.isAtom || (s = e.docView.descAt(l)) && !s.contentDOM ?
|
|
38539
|
+
return i.isAtom || (s = e.docView.descAt(l)) && !s.contentDOM ? Se.isSelectable(i) ? Bn(e, new Se(t < 0 ? e.state.doc.resolve(o.pos - i.nodeSize) : o)) : vl ? Bn(e, new Ae(e.state.doc.resolve(t < 0 ? l : l + i.nodeSize))) : !1 : !1;
|
|
38536
38540
|
}
|
|
38537
38541
|
} else return !1;
|
|
38538
38542
|
else {
|
|
38539
|
-
if (n instanceof
|
|
38543
|
+
if (n instanceof Se && n.node.isInline)
|
|
38540
38544
|
return Bn(e, new Ae(t > 0 ? n.$to : n.$from));
|
|
38541
38545
|
{
|
|
38542
38546
|
let o = th(e.state, t);
|
|
@@ -38703,7 +38707,7 @@ function CO(e, t, r) {
|
|
|
38703
38707
|
let { $from: o, $to: i } = n;
|
|
38704
38708
|
if (!o.parent.inlineContent || e.endOfTextblock(t < 0 ? "up" : "down")) {
|
|
38705
38709
|
let s = th(e.state, t);
|
|
38706
|
-
if (s && s instanceof
|
|
38710
|
+
if (s && s instanceof Se)
|
|
38707
38711
|
return Bn(e, s);
|
|
38708
38712
|
}
|
|
38709
38713
|
if (!o.parent.inlineContent) {
|
|
@@ -39090,23 +39094,23 @@ function vW(e, t) {
|
|
|
39090
39094
|
if (t == -1)
|
|
39091
39095
|
return !1;
|
|
39092
39096
|
let r = e.state.doc.resolve(t), n = r.nodeAfter;
|
|
39093
|
-
return n && n.isAtom &&
|
|
39097
|
+
return n && n.isAtom && Se.isSelectable(n) ? (Vi(e, new Se(r)), !0) : !1;
|
|
39094
39098
|
}
|
|
39095
39099
|
a(vW, "selectClickedLeaf");
|
|
39096
39100
|
function OW(e, t) {
|
|
39097
39101
|
if (t == -1)
|
|
39098
39102
|
return !1;
|
|
39099
39103
|
let r = e.state.selection, n, o;
|
|
39100
|
-
r instanceof
|
|
39104
|
+
r instanceof Se && (n = r.node);
|
|
39101
39105
|
let i = e.state.doc.resolve(t);
|
|
39102
39106
|
for (let s = i.depth + 1; s > 0; s--) {
|
|
39103
39107
|
let l = s > i.depth ? i.nodeAfter : i.node(s);
|
|
39104
|
-
if (
|
|
39108
|
+
if (Se.isSelectable(l)) {
|
|
39105
39109
|
n && r.$from.depth > 0 && s >= r.$from.depth && i.before(r.$from.depth + 1) == r.$from.pos ? o = i.before(r.$from.depth) : o = i.before(s);
|
|
39106
39110
|
break;
|
|
39107
39111
|
}
|
|
39108
39112
|
}
|
|
39109
|
-
return o != null ? (Vi(e,
|
|
39113
|
+
return o != null ? (Vi(e, Se.create(e.state.doc, o)), !0) : !1;
|
|
39110
39114
|
}
|
|
39111
39115
|
a(OW, "selectClickedNode");
|
|
39112
39116
|
function xW(e, t, r, n, o) {
|
|
@@ -39132,8 +39136,8 @@ function TW(e, t, r) {
|
|
|
39132
39136
|
let s = i > o.depth ? o.nodeAfter : o.node(i), l = o.before(i);
|
|
39133
39137
|
if (s.inlineContent)
|
|
39134
39138
|
Vi(e, Ae.create(n, l + 1, l + 1 + s.content.size));
|
|
39135
|
-
else if (
|
|
39136
|
-
Vi(e,
|
|
39139
|
+
else if (Se.isSelectable(s))
|
|
39140
|
+
Vi(e, Se.create(n, l));
|
|
39137
39141
|
else
|
|
39138
39142
|
continue;
|
|
39139
39143
|
return !0;
|
|
@@ -39166,7 +39170,7 @@ const Oy = class Oy {
|
|
|
39166
39170
|
const l = o ? null : n.target, u = l ? t.docView.nearestDesc(l, !0) : null;
|
|
39167
39171
|
this.target = u && u.dom.nodeType == 1 ? u.dom : null;
|
|
39168
39172
|
let { selection: d } = t.state;
|
|
39169
|
-
(n.button == 0 && i.type.spec.draggable && i.type.spec.selectable !== !1 || d instanceof
|
|
39173
|
+
(n.button == 0 && i.type.spec.draggable && i.type.spec.selectable !== !1 || d instanceof Se && d.from <= s && d.to > s) && (this.mightDrag = {
|
|
39170
39174
|
node: i,
|
|
39171
39175
|
pos: s,
|
|
39172
39176
|
addAttr: !!(this.target && !this.target.draggable),
|
|
@@ -39356,12 +39360,12 @@ Yt.dragstart = (e, t) => {
|
|
|
39356
39360
|
if (n && n.done(), !r.dataTransfer)
|
|
39357
39361
|
return;
|
|
39358
39362
|
let o = e.state.selection, i = o.empty ? null : e.posAtCoords(jd(r)), s;
|
|
39359
|
-
if (!(i && i.pos >= o.from && i.pos <= (o instanceof
|
|
39363
|
+
if (!(i && i.pos >= o.from && i.pos <= (o instanceof Se ? o.to - 1 : o.to))) {
|
|
39360
39364
|
if (n && n.mightDrag)
|
|
39361
|
-
s =
|
|
39365
|
+
s = Se.create(e.state.doc, n.mightDrag.pos);
|
|
39362
39366
|
else if (r.target && r.target.nodeType == 1) {
|
|
39363
39367
|
let f = e.docView.nearestDesc(r.target, !0);
|
|
39364
|
-
f && f.node.type.spec.draggable && f != e.docView && (s =
|
|
39368
|
+
f && f.node.type.spec.draggable && f != e.docView && (s = Se.create(e.state.doc, f.posBefore));
|
|
39365
39369
|
}
|
|
39366
39370
|
}
|
|
39367
39371
|
let l = (s || e.state.selection).content(), { dom: u, text: d, slice: p } = XT(e, l);
|
|
@@ -39404,8 +39408,8 @@ Jt.drop = (e, t) => {
|
|
|
39404
39408
|
if (f ? d.replaceRangeWith(p, p, s.content.firstChild) : d.replaceRange(p, p, s), d.doc.eq(h))
|
|
39405
39409
|
return;
|
|
39406
39410
|
let g = d.doc.resolve(p);
|
|
39407
|
-
if (f &&
|
|
39408
|
-
d.setSelection(new
|
|
39411
|
+
if (f && Se.isSelectable(s.content.firstChild) && g.nodeAfter && g.nodeAfter.sameMarkup(s.content.firstChild))
|
|
39412
|
+
d.setSelection(new Se(g));
|
|
39409
39413
|
else {
|
|
39410
39414
|
let m = d.mapping.map(u);
|
|
39411
39415
|
d.mapping.maps[d.mapping.maps.length - 1].forEach((b, y, O, k) => m = k), d.setSelection(Kg(e, g, d.doc.resolve(m)));
|
|
@@ -40455,7 +40459,7 @@ const Ty = class Ty {
|
|
|
40455
40459
|
*/
|
|
40456
40460
|
scrollToSelection() {
|
|
40457
40461
|
let t = this.domSelectionRange().focusNode;
|
|
40458
|
-
if (!this.someProp("handleScrollToSelection", (r) => r(this))) if (this.state.selection instanceof
|
|
40462
|
+
if (!this.someProp("handleScrollToSelection", (r) => r(this))) if (this.state.selection instanceof Se) {
|
|
40459
40463
|
let r = this.docView.domAfterPos(this.state.selection.from);
|
|
40460
40464
|
r.nodeType == 1 && lO(this, r.getBoundingClientRect(), t);
|
|
40461
40465
|
} else
|
|
@@ -40491,7 +40495,7 @@ const Ty = class Ty {
|
|
|
40491
40495
|
let i = n.from + (this.state.doc.content.size - r.doc.content.size);
|
|
40492
40496
|
(i > 0 && this.state.doc.nodeAt(i)) == n.node && (o = i);
|
|
40493
40497
|
}
|
|
40494
|
-
this.dragging = new Yc(t.slice, t.move, o < 0 ? void 0 :
|
|
40498
|
+
this.dragging = new Yc(t.slice, t.move, o < 0 ? void 0 : Se.create(this.state.doc, o));
|
|
40495
40499
|
}
|
|
40496
40500
|
someProp(t, r) {
|
|
40497
40501
|
let n = this._props && this._props[t], o;
|
|
@@ -40917,13 +40921,13 @@ const t6 = /* @__PURE__ */ a((e, t, r) => {
|
|
|
40917
40921
|
let i = o.nodeBefore;
|
|
40918
40922
|
if (vE(e, o, t, -1))
|
|
40919
40923
|
return !0;
|
|
40920
|
-
if (n.parent.content.size == 0 && (ma(i, "end") ||
|
|
40924
|
+
if (n.parent.content.size == 0 && (ma(i, "end") || Se.isSelectable(i)))
|
|
40921
40925
|
for (let s = n.depth; ; s--) {
|
|
40922
40926
|
let l = Dd(e.doc, n.before(s), n.after(s), fe.empty);
|
|
40923
40927
|
if (l && l.slice.size < l.to - l.from) {
|
|
40924
40928
|
if (t) {
|
|
40925
40929
|
let u = e.tr.step(l);
|
|
40926
|
-
u.setSelection(ma(i, "end") ? Re.findFrom(u.doc.resolve(u.mapping.map(o.pos, -1)), -1) :
|
|
40930
|
+
u.setSelection(ma(i, "end") ? Re.findFrom(u.doc.resolve(u.mapping.map(o.pos, -1)), -1) : Se.create(u.doc, o.pos - i.nodeSize)), t(u.scrollIntoView());
|
|
40927
40931
|
}
|
|
40928
40932
|
return !0;
|
|
40929
40933
|
}
|
|
@@ -40993,7 +40997,7 @@ const o6 = /* @__PURE__ */ a((e, t, r) => {
|
|
|
40993
40997
|
i = Zg(n);
|
|
40994
40998
|
}
|
|
40995
40999
|
let s = i && i.nodeBefore;
|
|
40996
|
-
return !s || !
|
|
41000
|
+
return !s || !Se.isSelectable(s) ? !1 : (t && t(e.tr.setSelection(Se.create(e.doc, i.pos - s.nodeSize)).scrollIntoView()), !0);
|
|
40997
41001
|
}, "selectNodeBackward$1");
|
|
40998
41002
|
function Zg(e) {
|
|
40999
41003
|
if (!e.parent.type.spec.isolating)
|
|
@@ -41021,12 +41025,12 @@ const i6 = /* @__PURE__ */ a((e, t, r) => {
|
|
|
41021
41025
|
let i = o.nodeAfter;
|
|
41022
41026
|
if (vE(e, o, t, 1))
|
|
41023
41027
|
return !0;
|
|
41024
|
-
if (n.parent.content.size == 0 && (ma(i, "start") ||
|
|
41028
|
+
if (n.parent.content.size == 0 && (ma(i, "start") || Se.isSelectable(i))) {
|
|
41025
41029
|
let s = Dd(e.doc, n.before(), n.after(), fe.empty);
|
|
41026
41030
|
if (s && s.slice.size < s.to - s.from) {
|
|
41027
41031
|
if (t) {
|
|
41028
41032
|
let l = e.tr.step(s);
|
|
41029
|
-
l.setSelection(ma(i, "start") ? Re.findFrom(l.doc.resolve(l.mapping.map(o.pos)), 1) :
|
|
41033
|
+
l.setSelection(ma(i, "start") ? Re.findFrom(l.doc.resolve(l.mapping.map(o.pos)), 1) : Se.create(l.doc, l.mapping.map(o.pos))), t(l.scrollIntoView());
|
|
41030
41034
|
}
|
|
41031
41035
|
return !0;
|
|
41032
41036
|
}
|
|
@@ -41042,7 +41046,7 @@ const i6 = /* @__PURE__ */ a((e, t, r) => {
|
|
|
41042
41046
|
i = eb(n);
|
|
41043
41047
|
}
|
|
41044
41048
|
let s = i && i.nodeAfter;
|
|
41045
|
-
return !s || !
|
|
41049
|
+
return !s || !Se.isSelectable(s) ? !1 : (t && t(e.tr.setSelection(Se.create(e.doc, i.pos)).scrollIntoView()), !0);
|
|
41046
41050
|
}, "selectNodeForward$1");
|
|
41047
41051
|
function eb(e) {
|
|
41048
41052
|
if (!e.parent.type.spec.isolating)
|
|
@@ -41057,7 +41061,7 @@ function eb(e) {
|
|
|
41057
41061
|
}
|
|
41058
41062
|
a(eb, "findCutAfter");
|
|
41059
41063
|
const s6 = /* @__PURE__ */ a((e, t) => {
|
|
41060
|
-
let r = e.selection, n = r instanceof
|
|
41064
|
+
let r = e.selection, n = r instanceof Se, o;
|
|
41061
41065
|
if (n) {
|
|
41062
41066
|
if (r.node.isTextblock || !so(e.doc, r.from))
|
|
41063
41067
|
return !1;
|
|
@@ -41066,12 +41070,12 @@ const s6 = /* @__PURE__ */ a((e, t) => {
|
|
|
41066
41070
|
return !1;
|
|
41067
41071
|
if (t) {
|
|
41068
41072
|
let i = e.tr.join(o);
|
|
41069
|
-
n && i.setSelection(
|
|
41073
|
+
n && i.setSelection(Se.create(i.doc, o - e.doc.resolve(o).nodeBefore.nodeSize)), t(i.scrollIntoView());
|
|
41070
41074
|
}
|
|
41071
41075
|
return !0;
|
|
41072
41076
|
}, "joinUp$1"), l6 = /* @__PURE__ */ a((e, t) => {
|
|
41073
41077
|
let r = e.selection, n;
|
|
41074
|
-
if (r instanceof
|
|
41078
|
+
if (r instanceof Se) {
|
|
41075
41079
|
if (r.node.isTextblock || !so(e.doc, r.to))
|
|
41076
41080
|
return !1;
|
|
41077
41081
|
n = r.to;
|
|
@@ -41132,7 +41136,7 @@ const d6 = /* @__PURE__ */ a((e, t) => {
|
|
|
41132
41136
|
return o == null ? !1 : (t && t(e.tr.lift(n, o).scrollIntoView()), !0);
|
|
41133
41137
|
}, "liftEmptyBlock$1"), h6 = /* @__PURE__ */ a((e, t) => {
|
|
41134
41138
|
let { $from: r, to: n } = e.selection, o, i = r.sharedDepth(n);
|
|
41135
|
-
return i == 0 ? !1 : (o = r.before(i), t && t(e.tr.setSelection(
|
|
41139
|
+
return i == 0 ? !1 : (o = r.before(i), t && t(e.tr.setSelection(Se.create(e.doc, o))), !0);
|
|
41136
41140
|
}, "selectParentNode$1");
|
|
41137
41141
|
function m6(e, t, r) {
|
|
41138
41142
|
let n = t.nodeBefore, o = t.nodeAfter, i = t.index();
|
|
@@ -42872,7 +42876,7 @@ function sb(e, { checkChildren: t = !0, ignoreWhitespace: r = !1 } = {}) {
|
|
|
42872
42876
|
}
|
|
42873
42877
|
a(sb, "isNodeEmpty");
|
|
42874
42878
|
function zU(e) {
|
|
42875
|
-
return e instanceof
|
|
42879
|
+
return e instanceof Se;
|
|
42876
42880
|
}
|
|
42877
42881
|
a(zU, "isNodeSelection");
|
|
42878
42882
|
function BU(e, t, r) {
|
|
@@ -42926,7 +42930,7 @@ const VU = /* @__PURE__ */ a((e, t = {}) => ({ tr: r, state: n, dispatch: o }) =
|
|
|
42926
42930
|
return i.isTextblock ? o().command(({ commands: s }) => jO(i, t)(r) ? !0 : s.clearNodes()).command(({ state: s }) => jO(i, t)(s, n)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
42927
42931
|
}, "setNode"), UU = /* @__PURE__ */ a((e) => ({ tr: t, dispatch: r }) => {
|
|
42928
42932
|
if (r) {
|
|
42929
|
-
const { doc: n } = t, o = Do(e, 0, n.content.size), i =
|
|
42933
|
+
const { doc: n } = t, o = Do(e, 0, n.content.size), i = Se.create(n, o);
|
|
42930
42934
|
t.setSelection(i);
|
|
42931
42935
|
}
|
|
42932
42936
|
return !0;
|
|
@@ -42950,7 +42954,7 @@ function UO(e, t) {
|
|
|
42950
42954
|
a(UO, "ensureMarks");
|
|
42951
42955
|
const KU = /* @__PURE__ */ a(({ keepMarks: e = !0 } = {}) => ({ tr: t, state: r, dispatch: n, editor: o }) => {
|
|
42952
42956
|
const { selection: i, doc: s } = t, { $from: l, $to: u } = i, d = o.extensionManager.attributes, p = oc(d, l.node().type.name, l.node().attrs);
|
|
42953
|
-
if (i instanceof
|
|
42957
|
+
if (i instanceof Se && i.node.isBlock)
|
|
42954
42958
|
return !l.parentOffset || !Bi(s, l.pos) ? !1 : (n && (e && UO(r, o.extensionManager.splittableMarks), t.split(l.pos).scrollIntoView()), !0);
|
|
42955
42959
|
if (!l.parent.isBlock)
|
|
42956
42960
|
return !1;
|
|
@@ -45242,7 +45246,7 @@ var rx;
|
|
|
45242
45246
|
function Jq() {
|
|
45243
45247
|
if (rx) return Xp;
|
|
45244
45248
|
rx = 1;
|
|
45245
|
-
var e =
|
|
45249
|
+
var e = ot;
|
|
45246
45250
|
function t(f, h) {
|
|
45247
45251
|
return f === h && (f !== 0 || 1 / f === 1 / h) || f !== f && h !== h;
|
|
45248
45252
|
}
|
|
@@ -45292,7 +45296,7 @@ var nx;
|
|
|
45292
45296
|
function Qq() {
|
|
45293
45297
|
return nx || (nx = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45294
45298
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
45295
|
-
var e =
|
|
45299
|
+
var e = ot, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
45296
45300
|
function r(T) {
|
|
45297
45301
|
{
|
|
45298
45302
|
for (var C = arguments.length, S = new Array(C > 1 ? C - 1 : 0), w = 1; w < C; w++)
|
|
@@ -45374,7 +45378,7 @@ const Xq = /* @__PURE__ */ a((...e) => (t) => {
|
|
|
45374
45378
|
});
|
|
45375
45379
|
}, "mergeRefs"), Zq = /* @__PURE__ */ a(({ contentComponent: e }) => {
|
|
45376
45380
|
const t = Ud.useSyncExternalStore(e.subscribe, e.getSnapshot, e.getServerSnapshot);
|
|
45377
|
-
return
|
|
45381
|
+
return ot.createElement(ot.Fragment, null, Object.values(t));
|
|
45378
45382
|
}, "Portals");
|
|
45379
45383
|
function e9() {
|
|
45380
45384
|
const e = /* @__PURE__ */ new Set();
|
|
@@ -45413,10 +45417,10 @@ function e9() {
|
|
|
45413
45417
|
};
|
|
45414
45418
|
}
|
|
45415
45419
|
a(e9, "getInstance");
|
|
45416
|
-
const Ry = class Ry extends
|
|
45420
|
+
const Ry = class Ry extends ot.Component {
|
|
45417
45421
|
constructor(t) {
|
|
45418
45422
|
var r;
|
|
45419
|
-
super(t), this.editorContentRef =
|
|
45423
|
+
super(t), this.editorContentRef = ot.createRef(), this.initialized = !1, this.state = {
|
|
45420
45424
|
hasContentComponentInitialized: !!(!((r = t.editor) === null || r === void 0) && r.contentComponent)
|
|
45421
45425
|
};
|
|
45422
45426
|
}
|
|
@@ -45454,24 +45458,24 @@ const Ry = class Ry extends nt.Component {
|
|
|
45454
45458
|
}
|
|
45455
45459
|
render() {
|
|
45456
45460
|
const { editor: t, innerRef: r, ...n } = this.props;
|
|
45457
|
-
return
|
|
45458
|
-
|
|
45461
|
+
return ot.createElement(
|
|
45462
|
+
ot.Fragment,
|
|
45459
45463
|
null,
|
|
45460
|
-
|
|
45461
|
-
(t == null ? void 0 : t.contentComponent) &&
|
|
45464
|
+
ot.createElement("div", { ref: Xq(r, this.editorContentRef), ...n }),
|
|
45465
|
+
(t == null ? void 0 : t.contentComponent) && ot.createElement(Zq, { contentComponent: t.contentComponent })
|
|
45462
45466
|
);
|
|
45463
45467
|
}
|
|
45464
45468
|
};
|
|
45465
45469
|
a(Ry, "PureEditorContent");
|
|
45466
45470
|
let Mh = Ry;
|
|
45467
45471
|
const t9 = Ku((e, t) => {
|
|
45468
|
-
const r =
|
|
45469
|
-
return
|
|
45472
|
+
const r = ot.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [e.editor]);
|
|
45473
|
+
return ot.createElement(Mh, {
|
|
45470
45474
|
key: r,
|
|
45471
45475
|
innerRef: t,
|
|
45472
45476
|
...e
|
|
45473
45477
|
});
|
|
45474
|
-
}), r9 =
|
|
45478
|
+
}), r9 = ot.memo(t9);
|
|
45475
45479
|
var n9 = /* @__PURE__ */ a(function e(t, r) {
|
|
45476
45480
|
if (t === r) return !0;
|
|
45477
45481
|
if (t && r && typeof t == "object" && typeof r == "object") {
|
|
@@ -45531,7 +45535,7 @@ var ox;
|
|
|
45531
45535
|
function i9() {
|
|
45532
45536
|
if (ox) return ef;
|
|
45533
45537
|
ox = 1;
|
|
45534
|
-
var e =
|
|
45538
|
+
var e = ot, t = Ud;
|
|
45535
45539
|
function r(d, p) {
|
|
45536
45540
|
return d === p && (d !== 0 || 1 / d === 1 / p) || d !== d && p !== p;
|
|
45537
45541
|
}
|
|
@@ -45585,7 +45589,7 @@ var ix;
|
|
|
45585
45589
|
function a9() {
|
|
45586
45590
|
return ix || (ix = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45587
45591
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
45588
|
-
var e =
|
|
45592
|
+
var e = ot, t = Ud;
|
|
45589
45593
|
function r(p, f) {
|
|
45590
45594
|
return p === f && (p !== 0 || 1 / p === 1 / f) || p !== p && f !== f;
|
|
45591
45595
|
}
|
|
@@ -45674,7 +45678,7 @@ let Ah = Ay;
|
|
|
45674
45678
|
function l9(e) {
|
|
45675
45679
|
var t;
|
|
45676
45680
|
const [r] = De(() => new Ah(e.editor)), n = s9.useSyncExternalStoreWithSelector(r.subscribe, r.getSnapshot, r.getServerSnapshot, e.selector, (t = e.equalityFn) !== null && t !== void 0 ? t : o9);
|
|
45677
|
-
return
|
|
45681
|
+
return tt(() => r.watch(e.editor), [e.editor, r]), Lx(n), n;
|
|
45678
45682
|
}
|
|
45679
45683
|
a(l9, "useEditorState");
|
|
45680
45684
|
const ax = process.env.NODE_ENV !== "production", Fh = typeof window > "u", c9 = Fh || !!(typeof window < "u" && window.next), Fy = class Fy {
|
|
@@ -45814,7 +45818,7 @@ function u9(e = {}, t = []) {
|
|
|
45814
45818
|
const r = Ju(e);
|
|
45815
45819
|
r.current = e;
|
|
45816
45820
|
const [n] = De(() => new $h(r)), o = Ud.useSyncExternalStore(n.subscribe, n.getEditor, n.getServerSnapshot);
|
|
45817
|
-
return Lx(o),
|
|
45821
|
+
return Lx(o), tt(n.onRender(t)), l9({
|
|
45818
45822
|
editor: o,
|
|
45819
45823
|
selector: /* @__PURE__ */ a(({ transactionNumber: i }) => e.shouldRerenderOnTransaction === !1 ? null : e.immediatelyRender && i === 0 ? 0 : i + 1, "selector")
|
|
45820
45824
|
}), o;
|
|
@@ -45827,11 +45831,11 @@ d9.Consumer;
|
|
|
45827
45831
|
const p9 = Rt({
|
|
45828
45832
|
onDragStart: void 0
|
|
45829
45833
|
}), f9 = /* @__PURE__ */ a(() => ke(p9), "useReactNodeView");
|
|
45830
|
-
|
|
45834
|
+
ot.forwardRef((e, t) => {
|
|
45831
45835
|
const { onDragStart: r } = f9(), n = e.as || "div";
|
|
45832
45836
|
return (
|
|
45833
45837
|
// @ts-ignore
|
|
45834
|
-
|
|
45838
|
+
ot.createElement(n, { ...e, ref: t, "data-node-view-wrapper": "", onDragStart: r, style: {
|
|
45835
45839
|
whiteSpace: "normal",
|
|
45836
45840
|
...e.style
|
|
45837
45841
|
} })
|
|
@@ -46333,7 +46337,7 @@ const A9 = Ht.create({
|
|
|
46333
46337
|
for (; ; ) {
|
|
46334
46338
|
let s = r > 0 ? i.firstChild : i.lastChild;
|
|
46335
46339
|
if (!s) {
|
|
46336
|
-
if (i.isAtom && !i.isText && !
|
|
46340
|
+
if (i.isAtom && !i.isText && !Se.isSelectable(i)) {
|
|
46337
46341
|
t = t.doc.resolve(o + i.nodeSize * r), n = !1;
|
|
46338
46342
|
continue e;
|
|
46339
46343
|
}
|
|
@@ -46444,7 +46448,7 @@ function N9(e, t, r) {
|
|
|
46444
46448
|
if (!Wt.valid(n))
|
|
46445
46449
|
return !1;
|
|
46446
46450
|
let o = e.posAtCoords({ left: r.clientX, top: r.clientY });
|
|
46447
|
-
return o && o.inside > -1 &&
|
|
46451
|
+
return o && o.inside > -1 && Se.isSelectable(e.state.doc.nodeAt(o.inside)) ? !1 : (e.dispatch(e.state.tr.setSelection(new Wt(n))), !0);
|
|
46448
46452
|
}
|
|
46449
46453
|
a(N9, "handleClick");
|
|
46450
46454
|
function D9(e, t) {
|
|
@@ -46993,7 +46997,7 @@ const zE = jE(!1, !0), BE = jE(!0, !0), Q9 = Ht.create({
|
|
|
46993
46997
|
if (l) {
|
|
46994
46998
|
const { $to: d } = s.selection, p = d.end();
|
|
46995
46999
|
if (d.nodeAfter)
|
|
46996
|
-
d.nodeAfter.isTextblock ? s.setSelection(Ae.create(s.doc, d.pos + 1)) : d.nodeAfter.isBlock ? s.setSelection(
|
|
47000
|
+
d.nodeAfter.isTextblock ? s.setSelection(Ae.create(s.doc, d.pos + 1)) : d.nodeAfter.isBlock ? s.setSelection(Se.create(s.doc, d.pos)) : s.setSelection(Ae.create(s.doc, d.pos));
|
|
46997
47001
|
else {
|
|
46998
47002
|
const f = (u = d.parent.type.contentMatch.defaultType) === null || u === void 0 ? void 0 : u.create();
|
|
46999
47003
|
f && (s.insert(p, f), s.setSelection(Ae.create(s.doc, p + 1)));
|
|
@@ -47756,7 +47760,7 @@ var ZK = Rt(null), eY = /* @__PURE__ */ a(function() {
|
|
|
47756
47760
|
return e;
|
|
47757
47761
|
}, "useFormGroups"), tY = /* @__PURE__ */ a(function(e) {
|
|
47758
47762
|
var t = e.inputProps, r = e.isArrayInput, n = e.fieldArrayInputControl, o = t.defaultValue, i = t.source, s = dk(i), l = XE(t), u = $r(), d = u.getValues, p = u.resetField, f = u.formState, h = u.reset, g = lc(l, s), m = lc(d(), s), b = f.dirtyFields, y = Object.keys(b).includes(s);
|
|
47759
|
-
|
|
47763
|
+
tt(function() {
|
|
47760
47764
|
if (!(o == null || m != null || g != null || y)) {
|
|
47761
47765
|
var O = s.split(".").some(function(C) {
|
|
47762
47766
|
return rY.test(C);
|
|
@@ -47890,7 +47894,7 @@ var ZK = Rt(null), eY = /* @__PURE__ */ a(function() {
|
|
|
47890
47894
|
return e === "" ? null : e;
|
|
47891
47895
|
}, "defaultParse"), uY = /* @__PURE__ */ a(function(e) {
|
|
47892
47896
|
var t = e.defaultValue, r = e.format, n = r === void 0 ? lY : r, o = e.id, i = e.isRequired, s = e.name, l = e.onBlur, u = e.onChange, d = e.parse, p = d === void 0 ? cY : d, f = e.source, h = e.validate, g = sY(e, ["defaultValue", "format", "id", "isRequired", "name", "onBlur", "onChange", "parse", "source", "validate"]), m = dk(f), b = s || m, y = nY(), O = eY(), k = XE(), T = af(p), C = nw();
|
|
47893
|
-
!b && process.env.NODE_ENV === "development" && console.warn("Input components require either a source or a name prop."),
|
|
47897
|
+
!b && process.env.NODE_ENV === "development" && console.warn("Input components require either a source or a name prop."), tt(function() {
|
|
47894
47898
|
if (!(!O || y == null))
|
|
47895
47899
|
return O.registerField(m, y), function() {
|
|
47896
47900
|
O.unregisterField(m, y);
|
|
@@ -47943,7 +47947,7 @@ var fY = /* @__PURE__ */ a(function() {
|
|
|
47943
47947
|
return e || pY;
|
|
47944
47948
|
}, "useSourceContext"), hY = /* @__PURE__ */ a(function() {
|
|
47945
47949
|
return ke(Ob);
|
|
47946
|
-
}, "useOptionalSourceContext"),
|
|
47950
|
+
}, "useOptionalSourceContext"), Ge = {};
|
|
47947
47951
|
/*!
|
|
47948
47952
|
* inflection
|
|
47949
47953
|
* Copyright(c) 2011 Ben Lin <ben@dreamerslab.com>
|
|
@@ -47952,8 +47956,8 @@ var fY = /* @__PURE__ */ a(function() {
|
|
|
47952
47956
|
* @fileoverview
|
|
47953
47957
|
* A port of inflection-js to node.js module.
|
|
47954
47958
|
*/
|
|
47955
|
-
Object.defineProperty(
|
|
47956
|
-
var ZE =
|
|
47959
|
+
Object.defineProperty(Ge, "__esModule", { value: !0 });
|
|
47960
|
+
var ZE = Ge.transform = Ge.ordinalize = Ge.foreignKey = Ge.classify = Ge.tableize = Ge.demodulize = Ge.titleize = Ge.dasherize = Ge.capitalize = Ge.humanize = Ge.underscore = Ge.camelize = Ge.inflect = Ge.singularize = Ge.pluralize = void 0;
|
|
47957
47961
|
const Fu = [
|
|
47958
47962
|
// 'access',
|
|
47959
47963
|
"accommodation",
|
|
@@ -48484,17 +48488,17 @@ function xb(e, t) {
|
|
|
48484
48488
|
return $u(e, ek, Fu, t);
|
|
48485
48489
|
}
|
|
48486
48490
|
a(xb, "pluralize");
|
|
48487
|
-
|
|
48491
|
+
Ge.pluralize = xb;
|
|
48488
48492
|
function Sb(e, t) {
|
|
48489
48493
|
return $u(e, tk, Fu, t);
|
|
48490
48494
|
}
|
|
48491
48495
|
a(Sb, "singularize");
|
|
48492
|
-
|
|
48496
|
+
Ge.singularize = Sb;
|
|
48493
48497
|
function OY(e, t, r, n) {
|
|
48494
48498
|
return isNaN(t) ? e : t === 1 ? $u(e, tk, Fu, r) : $u(e, ek, Fu, n);
|
|
48495
48499
|
}
|
|
48496
48500
|
a(OY, "inflect");
|
|
48497
|
-
|
|
48501
|
+
Ge.inflect = OY;
|
|
48498
48502
|
function Cb(e, t) {
|
|
48499
48503
|
const r = e.split("/"), n = r.length;
|
|
48500
48504
|
let o, i, s, l;
|
|
@@ -48506,7 +48510,7 @@ function Cb(e, t) {
|
|
|
48506
48510
|
return r.join("::");
|
|
48507
48511
|
}
|
|
48508
48512
|
a(Cb, "camelize");
|
|
48509
|
-
|
|
48513
|
+
Ge.camelize = Cb;
|
|
48510
48514
|
function Yd(e, t) {
|
|
48511
48515
|
if (t && e === e.toUpperCase())
|
|
48512
48516
|
return e;
|
|
@@ -48516,22 +48520,22 @@ function Yd(e, t) {
|
|
|
48516
48520
|
return r.join("/").toLowerCase();
|
|
48517
48521
|
}
|
|
48518
48522
|
a(Yd, "underscore");
|
|
48519
|
-
|
|
48523
|
+
Ge.underscore = Yd;
|
|
48520
48524
|
function nk(e, t) {
|
|
48521
48525
|
return e = e.toLowerCase(), e = e.replace(gY, ""), e = e.replace(rk, " "), t || (e = Jd(e)), e;
|
|
48522
48526
|
}
|
|
48523
48527
|
a(nk, "humanize");
|
|
48524
|
-
|
|
48528
|
+
Ge.humanize = nk;
|
|
48525
48529
|
function Jd(e) {
|
|
48526
48530
|
return e = e.toLowerCase(), e.substring(0, 1).toUpperCase() + e.substring(1);
|
|
48527
48531
|
}
|
|
48528
48532
|
a(Jd, "capitalize");
|
|
48529
|
-
|
|
48533
|
+
Ge.capitalize = Jd;
|
|
48530
48534
|
function ok(e) {
|
|
48531
48535
|
return e.replace(bY, "-");
|
|
48532
48536
|
}
|
|
48533
48537
|
a(ok, "dasherize");
|
|
48534
|
-
|
|
48538
|
+
Ge.dasherize = ok;
|
|
48535
48539
|
function ik(e) {
|
|
48536
48540
|
e = e.toLowerCase().replace(rk, " ");
|
|
48537
48541
|
const t = e.split(" "), r = t.length;
|
|
@@ -48545,28 +48549,28 @@ function ik(e) {
|
|
|
48545
48549
|
return e = t.join(" "), e = e.substring(0, 1).toUpperCase() + e.substring(1), e;
|
|
48546
48550
|
}
|
|
48547
48551
|
a(ik, "titleize");
|
|
48548
|
-
|
|
48552
|
+
Ge.titleize = ik;
|
|
48549
48553
|
function Tb(e) {
|
|
48550
48554
|
const t = e.split("::");
|
|
48551
48555
|
return t[t.length - 1];
|
|
48552
48556
|
}
|
|
48553
48557
|
a(Tb, "demodulize");
|
|
48554
|
-
|
|
48558
|
+
Ge.demodulize = Tb;
|
|
48555
48559
|
function ak(e) {
|
|
48556
48560
|
return e = Yd(e), e = xb(e), e;
|
|
48557
48561
|
}
|
|
48558
48562
|
a(ak, "tableize");
|
|
48559
|
-
|
|
48563
|
+
Ge.tableize = ak;
|
|
48560
48564
|
function sk(e) {
|
|
48561
48565
|
return e = Cb(e), e = Sb(e), e;
|
|
48562
48566
|
}
|
|
48563
48567
|
a(sk, "classify");
|
|
48564
|
-
|
|
48568
|
+
Ge.classify = sk;
|
|
48565
48569
|
function lk(e, t) {
|
|
48566
48570
|
return e = Tb(e), e = Yd(e) + (t ? "" : "_") + "id", e;
|
|
48567
48571
|
}
|
|
48568
48572
|
a(lk, "foreignKey");
|
|
48569
|
-
|
|
48573
|
+
Ge.foreignKey = lk;
|
|
48570
48574
|
function ck(e) {
|
|
48571
48575
|
const t = e.split(" "), r = t.length;
|
|
48572
48576
|
for (let n = 0; n < r; n++) {
|
|
@@ -48580,7 +48584,7 @@ function ck(e) {
|
|
|
48580
48584
|
return t.join(" ");
|
|
48581
48585
|
}
|
|
48582
48586
|
a(ck, "ordinalize");
|
|
48583
|
-
|
|
48587
|
+
Ge.ordinalize = ck;
|
|
48584
48588
|
const xY = {
|
|
48585
48589
|
pluralize: xb,
|
|
48586
48590
|
singularize: Sb,
|
|
@@ -48605,7 +48609,7 @@ function SY(e, t) {
|
|
|
48605
48609
|
return e;
|
|
48606
48610
|
}
|
|
48607
48611
|
a(SY, "transform");
|
|
48608
|
-
ZE =
|
|
48612
|
+
ZE = Ge.transform = SY;
|
|
48609
48613
|
var uk = /* @__PURE__ */ a(function(e) {
|
|
48610
48614
|
var t = ke(dY);
|
|
48611
48615
|
return e && e.resource || t;
|
|
@@ -48760,7 +48764,7 @@ const DY = ["children", "className", "color", "component", "disabled", "error",
|
|
|
48760
48764
|
} = e, o = {
|
|
48761
48765
|
root: ["root", r !== "none" && `margin${ue(r)}`, n && "fullWidth"]
|
|
48762
48766
|
};
|
|
48763
|
-
return
|
|
48767
|
+
return Ce(o, NY, t);
|
|
48764
48768
|
}, "useUtilityClasses$9"), jY = J("div", {
|
|
48765
48769
|
name: "MuiFormControl",
|
|
48766
48770
|
slot: "Root",
|
|
@@ -48978,7 +48982,7 @@ const BY = ["children", "className", "component", "disabled", "error", "filled",
|
|
|
48978
48982
|
} = e, d = {
|
|
48979
48983
|
root: ["root", o && "disabled", i && "error", n && `size${ue(n)}`, r && "contained", l && "focused", s && "filled", u && "required"]
|
|
48980
48984
|
};
|
|
48981
|
-
return
|
|
48985
|
+
return Ce(d, zY, t);
|
|
48982
48986
|
}, "useUtilityClasses$8"), HY = J("p", {
|
|
48983
48987
|
name: "MuiFormHelperText",
|
|
48984
48988
|
slot: "Root",
|
|
@@ -49123,7 +49127,7 @@ const ds = Oe("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
|
|
|
49123
49127
|
root: ["root", `color${ue(r)}`, o && "disabled", i && "error", s && "filled", n && "focused", l && "required"],
|
|
49124
49128
|
asterisk: ["asterisk", i && "error"]
|
|
49125
49129
|
};
|
|
49126
|
-
return
|
|
49130
|
+
return Ce(u, WY, t);
|
|
49127
49131
|
}, "useUtilityClasses$7"), GY = J("label", {
|
|
49128
49132
|
name: "MuiFormLabel",
|
|
49129
49133
|
slot: "Root",
|
|
@@ -49254,7 +49258,7 @@ const Ua = E({}, ra, Oe("MuiInput", ["root", "underline", "input"])), JY = ["dis
|
|
|
49254
49258
|
const {
|
|
49255
49259
|
classes: t,
|
|
49256
49260
|
disableUnderline: r
|
|
49257
|
-
} = e, o =
|
|
49261
|
+
} = e, o = Ce({
|
|
49258
49262
|
root: ["root", !r && "underline"],
|
|
49259
49263
|
input: ["input"]
|
|
49260
49264
|
}, YY, t);
|
|
@@ -49568,7 +49572,7 @@ const ho = E({}, ra, Oe("MuiFilledInput", ["root", "underline", "input"])), tJ =
|
|
|
49568
49572
|
const {
|
|
49569
49573
|
classes: t,
|
|
49570
49574
|
disableUnderline: r
|
|
49571
|
-
} = e, o =
|
|
49575
|
+
} = e, o = Ce({
|
|
49572
49576
|
root: ["root", !r && "underline"],
|
|
49573
49577
|
input: ["input"]
|
|
49574
49578
|
}, eJ, t);
|
|
@@ -49978,7 +49982,7 @@ const aJ = ["disableAnimation", "margin", "shrink", "variant", "className"], sJ
|
|
|
49978
49982
|
} = e, u = {
|
|
49979
49983
|
root: ["root", r && "formControl", !i && "animated", o && "shrink", n && n !== "normal" && `size${ue(n)}`, s],
|
|
49980
49984
|
asterisk: [l && "asterisk"]
|
|
49981
|
-
}, d =
|
|
49985
|
+
}, d = Ce(u, iJ, t);
|
|
49982
49986
|
return E({}, t, d);
|
|
49983
49987
|
}, "useUtilityClasses$4"), lJ = J(bk, {
|
|
49984
49988
|
shouldForwardProp: /* @__PURE__ */ a((e) => Ut(e) || e === "classes", "shouldForwardProp"),
|
|
@@ -50169,7 +50173,7 @@ const kb = Oe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
50169
50173
|
select: ["select", r, n && "disabled", o && "multiple", s && "error"],
|
|
50170
50174
|
icon: ["icon", `icon${ue(r)}`, i && "iconOpen", n && "disabled"]
|
|
50171
50175
|
};
|
|
50172
|
-
return
|
|
50176
|
+
return Ce(l, cJ, t);
|
|
50173
50177
|
}, "useUtilityClasses$3"), vk = /* @__PURE__ */ a(({
|
|
50174
50178
|
ownerState: e,
|
|
50175
50179
|
theme: t
|
|
@@ -50432,7 +50436,7 @@ const OJ = /* @__PURE__ */ a((e) => {
|
|
|
50432
50436
|
icon: ["icon", `icon${ue(r)}`, i && "iconOpen", n && "disabled"],
|
|
50433
50437
|
nativeInput: ["nativeInput"]
|
|
50434
50438
|
};
|
|
50435
|
-
return
|
|
50439
|
+
return Ce(l, hJ, t);
|
|
50436
50440
|
}, "useUtilityClasses$2"), Sk = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
50437
50441
|
var n;
|
|
50438
50442
|
const {
|
|
@@ -50475,8 +50479,8 @@ const OJ = /* @__PURE__ */ a((e) => {
|
|
|
50475
50479
|
name: "Select"
|
|
50476
50480
|
}), oe = x.useRef(null), B = x.useRef(null), [U, K] = x.useState(null), {
|
|
50477
50481
|
current: q
|
|
50478
|
-
} = x.useRef(F != null), [te, Z] = x.useState(), ie = St(r, y), se = x.useCallback((
|
|
50479
|
-
B.current =
|
|
50482
|
+
} = x.useRef(F != null), [te, Z] = x.useState(), ie = St(r, y), se = x.useCallback((ge) => {
|
|
50483
|
+
B.current = ge, ge && K(ge);
|
|
50480
50484
|
}, []), ae = U == null ? void 0 : U.parentNode;
|
|
50481
50485
|
x.useImperativeHandle(ie, () => ({
|
|
50482
50486
|
focus: /* @__PURE__ */ a(() => {
|
|
@@ -50491,35 +50495,35 @@ const OJ = /* @__PURE__ */ a((e) => {
|
|
|
50491
50495
|
}, [s]), x.useEffect(() => {
|
|
50492
50496
|
if (!O)
|
|
50493
50497
|
return;
|
|
50494
|
-
const
|
|
50495
|
-
if (
|
|
50498
|
+
const ge = Er(B.current).getElementById(O);
|
|
50499
|
+
if (ge) {
|
|
50496
50500
|
const X = /* @__PURE__ */ a(() => {
|
|
50497
50501
|
getSelection().isCollapsed && B.current.focus();
|
|
50498
50502
|
}, "handler");
|
|
50499
|
-
return
|
|
50500
|
-
|
|
50503
|
+
return ge.addEventListener("click", X), () => {
|
|
50504
|
+
ge.removeEventListener("click", X);
|
|
50501
50505
|
};
|
|
50502
50506
|
}
|
|
50503
50507
|
}, [O]);
|
|
50504
|
-
const $ = /* @__PURE__ */ a((
|
|
50505
|
-
|
|
50506
|
-
}, "update"), ee = /* @__PURE__ */ a((
|
|
50507
|
-
|
|
50508
|
-
}, "handleMouseDown"), G = /* @__PURE__ */ a((
|
|
50509
|
-
$(!1,
|
|
50510
|
-
}, "handleClose"), be = x.Children.toArray(u), Ve = /* @__PURE__ */ a((
|
|
50511
|
-
const X = be.find((de) => de.props.value ===
|
|
50512
|
-
X !== void 0 && (Q(X.props.value), w && w(
|
|
50513
|
-
}, "handleChange"), je = /* @__PURE__ */ a((
|
|
50508
|
+
const $ = /* @__PURE__ */ a((ge, X) => {
|
|
50509
|
+
ge ? M && M(X) : P && P(X), q || (Z(l ? null : ae.clientWidth), H(ge));
|
|
50510
|
+
}, "update"), ee = /* @__PURE__ */ a((ge) => {
|
|
50511
|
+
ge.button === 0 && (ge.preventDefault(), B.current.focus(), $(!0, ge));
|
|
50512
|
+
}, "handleMouseDown"), G = /* @__PURE__ */ a((ge) => {
|
|
50513
|
+
$(!1, ge);
|
|
50514
|
+
}, "handleClose"), be = x.Children.toArray(u), Ve = /* @__PURE__ */ a((ge) => {
|
|
50515
|
+
const X = be.find((de) => de.props.value === ge.target.value);
|
|
50516
|
+
X !== void 0 && (Q(X.props.value), w && w(ge, X));
|
|
50517
|
+
}, "handleChange"), je = /* @__PURE__ */ a((ge) => (X) => {
|
|
50514
50518
|
let de;
|
|
50515
50519
|
if (X.currentTarget.hasAttribute("tabindex")) {
|
|
50516
50520
|
if (T) {
|
|
50517
50521
|
de = Array.isArray(I) ? I.slice() : [];
|
|
50518
|
-
const Me = I.indexOf(
|
|
50519
|
-
Me === -1 ? de.push(
|
|
50522
|
+
const Me = I.indexOf(ge.props.value);
|
|
50523
|
+
Me === -1 ? de.push(ge.props.value) : de.splice(Me, 1);
|
|
50520
50524
|
} else
|
|
50521
|
-
de =
|
|
50522
|
-
if (
|
|
50525
|
+
de = ge.props.value;
|
|
50526
|
+
if (ge.props.onClick && ge.props.onClick(X), I !== de && (Q(de), w)) {
|
|
50523
50527
|
const Me = X.nativeEvent || X, Ne = new Me.constructor(Me.type, Me);
|
|
50524
50528
|
Object.defineProperty(Ne, "target", {
|
|
50525
50529
|
writable: !0,
|
|
@@ -50527,11 +50531,11 @@ const OJ = /* @__PURE__ */ a((e) => {
|
|
|
50527
50531
|
value: de,
|
|
50528
50532
|
name: C
|
|
50529
50533
|
}
|
|
50530
|
-
}), w(Ne,
|
|
50534
|
+
}), w(Ne, ge);
|
|
50531
50535
|
}
|
|
50532
50536
|
T || $(!1, X);
|
|
50533
50537
|
}
|
|
50534
|
-
}, "handleItemClick"), $e = /* @__PURE__ */ a((
|
|
50538
|
+
}, "handleItemClick"), $e = /* @__PURE__ */ a((ge) => {
|
|
50535
50539
|
A || [
|
|
50536
50540
|
" ",
|
|
50537
50541
|
"ArrowUp",
|
|
@@ -50539,86 +50543,86 @@ const OJ = /* @__PURE__ */ a((e) => {
|
|
|
50539
50543
|
// The native select doesn't respond to enter on macOS, but it's recommended by
|
|
50540
50544
|
// https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
|
50541
50545
|
"Enter"
|
|
50542
|
-
].indexOf(
|
|
50543
|
-
}, "handleKeyDown"), ct = U !== null && D, Be = /* @__PURE__ */ a((
|
|
50544
|
-
!ct && S && (Object.defineProperty(
|
|
50546
|
+
].indexOf(ge.key) !== -1 && (ge.preventDefault(), $(!0, ge));
|
|
50547
|
+
}, "handleKeyDown"), ct = U !== null && D, Be = /* @__PURE__ */ a((ge) => {
|
|
50548
|
+
!ct && S && (Object.defineProperty(ge, "target", {
|
|
50545
50549
|
writable: !0,
|
|
50546
50550
|
value: {
|
|
50547
50551
|
value: I,
|
|
50548
50552
|
name: C
|
|
50549
50553
|
}
|
|
50550
|
-
}), S(
|
|
50554
|
+
}), S(ge));
|
|
50551
50555
|
}, "handleBlur");
|
|
50552
50556
|
delete V["aria-invalid"];
|
|
50553
|
-
let Te,
|
|
50554
|
-
const
|
|
50557
|
+
let Te, rt;
|
|
50558
|
+
const nt = [];
|
|
50555
50559
|
let ze = !1, ut = !1;
|
|
50556
50560
|
(Sc({
|
|
50557
50561
|
value: I
|
|
50558
50562
|
}) || g) && (j ? Te = j(I) : ze = !0);
|
|
50559
|
-
const pe = be.map((
|
|
50560
|
-
if (!/* @__PURE__ */ x.isValidElement(
|
|
50563
|
+
const pe = be.map((ge) => {
|
|
50564
|
+
if (!/* @__PURE__ */ x.isValidElement(ge))
|
|
50561
50565
|
return null;
|
|
50562
|
-
process.env.NODE_ENV !== "production" && Ji.isFragment(
|
|
50566
|
+
process.env.NODE_ENV !== "production" && Ji.isFragment(ge) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
50563
50567
|
`));
|
|
50564
50568
|
let X;
|
|
50565
50569
|
if (T) {
|
|
50566
50570
|
if (!Array.isArray(I))
|
|
50567
50571
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : Mn(2));
|
|
50568
|
-
X = I.some((de) => Px(de,
|
|
50572
|
+
X = I.some((de) => Px(de, ge.props.value)), X && ze && nt.push(ge.props.children);
|
|
50569
50573
|
} else
|
|
50570
|
-
X = Px(I,
|
|
50571
|
-
return X && (ut = !0), /* @__PURE__ */ x.cloneElement(
|
|
50574
|
+
X = Px(I, ge.props.value), X && ze && (rt = ge.props.children);
|
|
50575
|
+
return X && (ut = !0), /* @__PURE__ */ x.cloneElement(ge, {
|
|
50572
50576
|
"aria-selected": X ? "true" : "false",
|
|
50573
|
-
onClick: je(
|
|
50577
|
+
onClick: je(ge),
|
|
50574
50578
|
onKeyUp: /* @__PURE__ */ a((de) => {
|
|
50575
|
-
de.key === " " && de.preventDefault(),
|
|
50579
|
+
de.key === " " && de.preventDefault(), ge.props.onKeyUp && ge.props.onKeyUp(de);
|
|
50576
50580
|
}, "onKeyUp"),
|
|
50577
50581
|
role: "option",
|
|
50578
50582
|
selected: X,
|
|
50579
50583
|
value: void 0,
|
|
50580
50584
|
// The value is most likely not a valid HTML attribute.
|
|
50581
|
-
"data-value":
|
|
50585
|
+
"data-value": ge.props.value
|
|
50582
50586
|
// Instead, we provide it as a data attribute.
|
|
50583
50587
|
});
|
|
50584
50588
|
});
|
|
50585
50589
|
process.env.NODE_ENV !== "production" && x.useEffect(() => {
|
|
50586
50590
|
if (!ut && !T && I !== "") {
|
|
50587
|
-
const
|
|
50588
|
-
console.warn([`MUI: You have provided an out-of-range value \`${I}\` for the select ${C ? `(name="${C}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${
|
|
50591
|
+
const ge = be.map((X) => X.props.value);
|
|
50592
|
+
console.warn([`MUI: You have provided an out-of-range value \`${I}\` for the select ${C ? `(name="${C}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${ge.filter((X) => X != null).map((X) => `\`${X}\``).join(", ") || '""'}.`].join(`
|
|
50589
50593
|
`));
|
|
50590
50594
|
}
|
|
50591
|
-
}, [ut, be, T, C, I]), ze && (T ?
|
|
50592
|
-
let
|
|
50593
|
-
!l && q && U && (
|
|
50594
|
-
let
|
|
50595
|
-
typeof L < "u" ?
|
|
50596
|
-
const
|
|
50595
|
+
}, [ut, be, T, C, I]), ze && (T ? nt.length === 0 ? Te = null : Te = nt.reduce((ge, X, de) => (ge.push(X), de < nt.length - 1 && ge.push(", "), ge), []) : Te = rt);
|
|
50596
|
+
let We = te;
|
|
50597
|
+
!l && q && U && (We = ae.clientWidth);
|
|
50598
|
+
let xe;
|
|
50599
|
+
typeof L < "u" ? xe = L : xe = h ? null : 0;
|
|
50600
|
+
const me = N.id || (C ? `mui-component-select-${C}` : void 0), et = E({}, t, {
|
|
50597
50601
|
variant: _,
|
|
50598
50602
|
value: I,
|
|
50599
50603
|
open: ct,
|
|
50600
50604
|
error: m
|
|
50601
|
-
}), vt = OJ(
|
|
50605
|
+
}), vt = OJ(et), Et = E({}, k.PaperProps, (n = k.slotProps) == null ? void 0 : n.paper), or = al();
|
|
50602
50606
|
return /* @__PURE__ */ Y(x.Fragment, {
|
|
50603
50607
|
children: [/* @__PURE__ */ v(gJ, E({
|
|
50604
50608
|
ref: se,
|
|
50605
|
-
tabIndex:
|
|
50609
|
+
tabIndex: xe,
|
|
50606
50610
|
role: "combobox",
|
|
50607
50611
|
"aria-controls": or,
|
|
50608
50612
|
"aria-disabled": h ? "true" : void 0,
|
|
50609
50613
|
"aria-expanded": ct ? "true" : "false",
|
|
50610
50614
|
"aria-haspopup": "listbox",
|
|
50611
50615
|
"aria-label": i,
|
|
50612
|
-
"aria-labelledby": [O,
|
|
50616
|
+
"aria-labelledby": [O, me].filter(Boolean).join(" ") || void 0,
|
|
50613
50617
|
"aria-describedby": o,
|
|
50614
50618
|
onKeyDown: $e,
|
|
50615
50619
|
onMouseDown: h || A ? null : ee,
|
|
50616
50620
|
onBlur: Be,
|
|
50617
50621
|
onFocus: R
|
|
50618
50622
|
}, N, {
|
|
50619
|
-
ownerState:
|
|
50623
|
+
ownerState: et,
|
|
50620
50624
|
className: re(N.className, vt.select, d),
|
|
50621
|
-
id:
|
|
50625
|
+
id: me,
|
|
50622
50626
|
children: vJ(Te) ? (
|
|
50623
50627
|
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
50624
50628
|
wx || (wx = /* @__PURE__ */ v("span", {
|
|
@@ -50637,11 +50641,11 @@ const OJ = /* @__PURE__ */ a((e) => {
|
|
|
50637
50641
|
disabled: h,
|
|
50638
50642
|
className: vt.nativeInput,
|
|
50639
50643
|
autoFocus: s,
|
|
50640
|
-
ownerState:
|
|
50644
|
+
ownerState: et
|
|
50641
50645
|
}, V)), /* @__PURE__ */ v(bJ, {
|
|
50642
50646
|
as: b,
|
|
50643
50647
|
className: vt.icon,
|
|
50644
|
-
ownerState:
|
|
50648
|
+
ownerState: et
|
|
50645
50649
|
}), /* @__PURE__ */ v(Pg, E({
|
|
50646
50650
|
id: `menu-${C || ""}`,
|
|
50647
50651
|
anchorEl: ae,
|
|
@@ -50666,7 +50670,7 @@ const OJ = /* @__PURE__ */ a((e) => {
|
|
|
50666
50670
|
slotProps: E({}, k.slotProps, {
|
|
50667
50671
|
paper: E({}, Et, {
|
|
50668
50672
|
style: E({
|
|
50669
|
-
minWidth:
|
|
50673
|
+
minWidth: We
|
|
50670
50674
|
}, Et != null ? Et.style : null)
|
|
50671
50675
|
})
|
|
50672
50676
|
}),
|
|
@@ -51077,7 +51081,7 @@ const MJ = ["autoComplete", "autoFocus", "children", "className", "color", "defa
|
|
|
51077
51081
|
const {
|
|
51078
51082
|
classes: t
|
|
51079
51083
|
} = e;
|
|
51080
|
-
return
|
|
51084
|
+
return Ce({
|
|
51081
51085
|
root: ["root"]
|
|
51082
51086
|
}, PJ, t);
|
|
51083
51087
|
}, "useUtilityClasses"), FJ = J(mk, {
|
|
@@ -51402,7 +51406,7 @@ wk = Ib.default = (0, qJ.default)(/* @__PURE__ */ (0, GJ.jsx)("path", {
|
|
|
51402
51406
|
}), "Code");
|
|
51403
51407
|
var Pk = Rt(void 0), gn = /* @__PURE__ */ a(function() {
|
|
51404
51408
|
var e = De(!1), t = e[0], r = e[1], n = ke(Pk);
|
|
51405
|
-
return
|
|
51409
|
+
return tt(function() {
|
|
51406
51410
|
var o = /* @__PURE__ */ a(function() {
|
|
51407
51411
|
r(!0);
|
|
51408
51412
|
}, "onReady");
|
|
@@ -51430,7 +51434,7 @@ var Pk = Rt(void 0), gn = /* @__PURE__ */ a(function() {
|
|
|
51430
51434
|
}), p = r("ra.tiptap.code", {
|
|
51431
51435
|
_: "Code"
|
|
51432
51436
|
});
|
|
51433
|
-
|
|
51437
|
+
tt(function() {
|
|
51434
51438
|
var h = /* @__PURE__ */ a(function() {
|
|
51435
51439
|
i(function() {
|
|
51436
51440
|
return Mx.reduce(function(g, m) {
|
|
@@ -51528,7 +51532,7 @@ var zh = function() {
|
|
|
51528
51532
|
(h || g) && nQ[f](t);
|
|
51529
51533
|
});
|
|
51530
51534
|
}, "handleChange");
|
|
51531
|
-
return
|
|
51535
|
+
return tt(function() {
|
|
51532
51536
|
var d = /* @__PURE__ */ a(function() {
|
|
51533
51537
|
l(function() {
|
|
51534
51538
|
return Rx.reduce(function(p, f) {
|
|
@@ -51602,7 +51606,7 @@ var Bh = function() {
|
|
|
51602
51606
|
}, Bh.apply(this, arguments);
|
|
51603
51607
|
}, gQ = /* @__PURE__ */ a(function(e) {
|
|
51604
51608
|
var t = gn(), r = Nr(), n = De("left"), o = n[0], i = n[1], s = r("ra.tiptap.align_left", { _: "Align left" }), l = r("ra.tiptap.align_right", { _: "Align right" }), u = r("ra.tiptap.align_center", { _: "Center" }), d = r("ra.tiptap.align_justify", { _: "Justify" });
|
|
51605
|
-
|
|
51609
|
+
tt(function() {
|
|
51606
51610
|
var f = /* @__PURE__ */ a(function() {
|
|
51607
51611
|
i(function(h) {
|
|
51608
51612
|
return bQ.reduce(function(g, m) {
|
|
@@ -51664,7 +51668,7 @@ Lk = Bb.default = (0, vQ.default)(/* @__PURE__ */ (0, OQ.jsx)("path", {
|
|
|
51664
51668
|
}), "InsertLink");
|
|
51665
51669
|
var xQ = /* @__PURE__ */ a(function() {
|
|
51666
51670
|
var e = gn(), t = De(e ? e.state.doc.textBetween(e.state.selection.from, e.state.selection.to) : null), r = t[0], n = t[1];
|
|
51667
|
-
return
|
|
51671
|
+
return tt(function() {
|
|
51668
51672
|
var o = /* @__PURE__ */ a(function() {
|
|
51669
51673
|
n(e ? e.state.doc.textBetween(e.state.selection.from, e.state.selection.to) : null);
|
|
51670
51674
|
}, "handleSelectionChange");
|
|
@@ -51714,7 +51718,7 @@ var Hh = function() {
|
|
|
51714
51718
|
var t = gn(), r = Nr(), n = De(!1), o = n[0], i = n[1], s = r("ra.tiptap.blockquote", {
|
|
51715
51719
|
_: "Blockquote"
|
|
51716
51720
|
});
|
|
51717
|
-
return
|
|
51721
|
+
return tt(function() {
|
|
51718
51722
|
var l = /* @__PURE__ */ a(function() {
|
|
51719
51723
|
i(t && t.isActive("blockquote"));
|
|
51720
51724
|
}, "handleUpdate");
|
|
@@ -51765,7 +51769,7 @@ var Wh = function() {
|
|
|
51765
51769
|
}, "handleClickListItem"), g = /* @__PURE__ */ a(function(m) {
|
|
51766
51770
|
s(null);
|
|
51767
51771
|
}, "handleClose");
|
|
51768
|
-
return
|
|
51772
|
+
return tt(function() {
|
|
51769
51773
|
var m = /* @__PURE__ */ a(function() {
|
|
51770
51774
|
p(function(b) {
|
|
51771
51775
|
return Ul.reduce(function(y, O) {
|
|
@@ -52071,14 +52075,14 @@ var HQ = /* @__PURE__ */ a(function(e) {
|
|
|
52071
52075
|
}, Jr.apply(this, arguments);
|
|
52072
52076
|
}, XQ = /* @__PURE__ */ a(function(e) {
|
|
52073
52077
|
var t, r = e.className, n = e.defaultValue, o = n === void 0 ? "" : n, i = e.disabled, s = i === void 0 ? !1 : i, l = e.editorOptions, u = l === void 0 ? ZQ : l, d = e.fullWidth, p = e.helperText, f = e.label, h = e.readOnly, g = h === void 0 ? !1 : h, m = e.source, b = e.sx, y = e.toolbar, O = uk(e), k = uY(Jr(Jr({}, e), { source: m, defaultValue: o })), T = k.id, C = k.field, S = k.isRequired, w = k.fieldState, P = k.formState.isSubmitted, R = u9(Jr(Jr({}, u), { editable: !s && !g, content: C.value, editorProps: Jr(Jr({}, u == null ? void 0 : u.editorProps), { attributes: Jr(Jr({}, (t = u == null ? void 0 : u.editorProps) === null || t === void 0 ? void 0 : t.attributes), { id: T }) }) }), [s, u, g, T]), M = w.error, F = w.invalid, A = w.isTouched;
|
|
52074
|
-
return
|
|
52078
|
+
return tt(function() {
|
|
52075
52079
|
if (R) {
|
|
52076
52080
|
var j = R.state.selection, N = j.from, L = j.to;
|
|
52077
52081
|
R.commands.setContent(C.value, !1, {
|
|
52078
52082
|
preserveWhitespace: !0
|
|
52079
52083
|
}), R.commands.setTextSelection({ from: N, to: L });
|
|
52080
52084
|
}
|
|
52081
|
-
}, [R, C.value]),
|
|
52085
|
+
}, [R, C.value]), tt(function() {
|
|
52082
52086
|
if (R) {
|
|
52083
52087
|
var j = /* @__PURE__ */ a(function() {
|
|
52084
52088
|
if (R.isEmpty) {
|
|
@@ -52372,7 +52376,7 @@ const PZ = /* @__PURE__ */ a((e) => {
|
|
|
52372
52376
|
return `${t}-${r}-${n}T${o}:${i}`;
|
|
52373
52377
|
}, "convertDateToString"), uX = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/, dX = { shrink: !0 }, pX = /* @__PURE__ */ a((e) => e == null || e === "" ? "" : e instanceof Date ? $x(e) : uX.test(e) ? e : $x(new Date(e)), "formatDateTime"), MZ = /* @__PURE__ */ a((e) => {
|
|
52374
52378
|
const { tipo: t, ...r } = e, { propsContenido: n, hidden: o } = nr(r), i = $r();
|
|
52375
|
-
|
|
52379
|
+
tt(() => {
|
|
52376
52380
|
n.value && i.setValue(e.source, n.value);
|
|
52377
52381
|
}, [n.value]);
|
|
52378
52382
|
const s = {
|
|
@@ -52382,7 +52386,7 @@ const PZ = /* @__PURE__ */ a((e) => {
|
|
|
52382
52386
|
}, "TextBox"), RZ = /* @__PURE__ */ a((e) => {
|
|
52383
52387
|
const { label: t, sx: r } = e, {
|
|
52384
52388
|
hidden: n,
|
|
52385
|
-
propsContenido: { helperText: o, sx: i }
|
|
52389
|
+
propsContenido: { helperText: o, sx: i, readOnly: s }
|
|
52386
52390
|
} = nr(e);
|
|
52387
52391
|
return n ? null : /* @__PURE__ */ Y(
|
|
52388
52392
|
at,
|
|
@@ -52399,6 +52403,8 @@ const PZ = /* @__PURE__ */ a((e) => {
|
|
|
52399
52403
|
Qo,
|
|
52400
52404
|
{
|
|
52401
52405
|
...e,
|
|
52406
|
+
disabled: !1,
|
|
52407
|
+
readOnly: s,
|
|
52402
52408
|
label: "",
|
|
52403
52409
|
sx: { flex: 1 },
|
|
52404
52410
|
helperText: o
|