biblio-react 3.0.0-alpha103 → 3.0.0-alpha105
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 +171 -170
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@ var Ew = Object.defineProperty;
|
|
|
2
2
|
var a = (e, t) => Ew(e, "name", { value: t, configurable: !0 });
|
|
3
3
|
import Ee, { jsx as y, jsxs as G, Fragment as dn } from "react/jsx-runtime";
|
|
4
4
|
import * as x from "react";
|
|
5
|
-
import rt, { forwardRef as dl, useContext as Te, createElement as Zy, Children as ad, isValidElement as
|
|
6
|
-
import { unstable_ClassNameGenerator as Yx, exactProp as sd, unstable_getScrollbarSize as Pw, unstable_ownerDocument as
|
|
5
|
+
import rt, { forwardRef as dl, useContext as Te, createElement as Zy, Children as ad, isValidElement as Rn, cloneElement as Hr, createContext as Rt, useState as De, useMemo as mr, useRef as Si, useCallback as He, useEffect as Ge, Fragment as pn, memo as Gx, useImperativeHandle as kw, useDebugValue as Kx, useId as ww } from "react";
|
|
6
|
+
import { unstable_ClassNameGenerator as Yx, exactProp as sd, unstable_getScrollbarSize as Pw, unstable_ownerDocument as An, unstable_ownerWindow as Ns, unstable_useForkRef as aa, elementAcceptingRef as Mw, unstable_useEnhancedEffect as ii, unstable_setRef as ev, HTMLElementType as Of, unstable_useEventCallback as tv, unstable_createChainedFunction as rv, unstable_debounce as Rw, usePreviousProps as Aw, unstable_getNormalizedScrollLeft as Fw, unstable_detectScrollType as $w, chainPropTypes as Iw, refType as Nw, deepmerge as Jx } from "@mui/utils";
|
|
7
7
|
import { MenuItem as qo, ListItemIcon as Ki, ListItemText as Yi, useMediaQuery as Ci, Typography as Ls, Box as nt, Grid as nv, Dialog as am, DialogTitle as Qx, DialogContent as Lw, Stack as sm, DialogActions as Dw, Tooltip as ld, IconButton as Ds, createTheme as _w, ThemeProvider as jw, alpha as zw, StyledEngineProvider as Xx, Card as Zx, CircularProgress as Bw, CardContent as e1, Collapse as Vw, List as t1, Menu as xf, Switch as Hw, Divider as Ww, Button as ov, Paper as r1, ToggleButtonGroup as cd, ToggleButton as jt, ListItem as Uw, useTheme as qw, FormHelperText as Gw } from "@mui/material";
|
|
8
8
|
import { useTranslate as xt, useUserMenu as Kw, useResourceDefinitions as Yw, AppBar as Jw, UserMenu as Qw, Logout as Xw, useSaveContext as Zw, required as eP, minValue as tP, TopToolbar as n1, RefreshButton as rP, ListButton as nP, ShowButton as oP, useNotify as iP, useDataProvider as lm, useResourceContext as ht, useListContext as ai, useRedirect as Aa, useUnselectAll as aP, NumberField as sP, DateField as iv, TextField as lc, ReferenceField as lP, useCreatePath as pl, Button as wr, SaveButton as ud, Confirm as dd, Form as fl, useRecordContext as Lr, useListController as cP, ListContextProvider as uP, LoadingClasses as Tc, List as o1, useResourceDefinition as i1, BulkActionsToolbar as dP, useInput as pd, useGetList as a1, Labeled as s1, useSafeSetState as cm, useGetOne as l1, useCreateController as pP, CreateContextProvider as fP, Create as hP, useDelete as c1, useEditController as mP, Edit as gP, SimpleForm as bP, useSidebarState as u1, Menu as yP, DashboardMenuItem as vP, MenuItemLink as d1, Layout as OP, FilterContext as xP, sanitizeListRestProps as SP, FilterButton as CP, CreateButton as TP, useLogin as EP, TextInput as si, PasswordInput as p1, useShowController as kP, Show as wP, FormTab as PP, getTabbedFormTabFullPath as MP, TabbedFormTabs as RP, Toolbar as f1, defaultTheme as h1, BooleanField as AP, ImageInput as FP, ImageField as $P, FileInput as IP, BooleanInput as NP, ReferenceInput as m1, useChoicesContext as g1, AutocompleteInput as LP, SelectInput as DP, ReferenceArrayInput as _P, AutocompleteArrayInput as jP, SearchInput as zP, RadioButtonGroupInput as b1, useRecordSelection as y1, ListActions as BP, Datagrid as VP, ValidationError as HP, FieldTitle as v1, NumberInput as WP } from "react-admin";
|
|
9
9
|
import { Link as _s, useNavigate as Fa, Routes as um, Route as dm, useLocation as Ti, matchPath as Sf, useResolvedPath as UP } from "react-router-dom";
|
|
@@ -54,20 +54,20 @@ var bm = {}, E1 = { exports: {} };
|
|
|
54
54
|
a(t, "_interopRequireDefault"), e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
55
55
|
})(E1);
|
|
56
56
|
var Se = E1.exports, hp = {};
|
|
57
|
-
function
|
|
57
|
+
function In(e) {
|
|
58
58
|
let t = "https://mui.com/production-error/?code=" + e;
|
|
59
59
|
for (let r = 1; r < arguments.length; r += 1)
|
|
60
60
|
t += "&args[]=" + encodeURIComponent(arguments[r]);
|
|
61
61
|
return "Minified MUI error #" + e + "; visit " + t + " for the full message.";
|
|
62
62
|
}
|
|
63
|
-
a(
|
|
63
|
+
a(In, "formatMuiErrorMessage$1");
|
|
64
64
|
const cM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
65
65
|
__proto__: null,
|
|
66
|
-
default:
|
|
66
|
+
default: In
|
|
67
67
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
68
68
|
function ce(e) {
|
|
69
69
|
if (typeof e != "string")
|
|
70
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." :
|
|
70
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : In(7));
|
|
71
71
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
72
72
|
}
|
|
73
73
|
a(ce, "capitalize$2");
|
|
@@ -2653,15 +2653,15 @@ const Y1 = /* @__PURE__ */ a((e, t) => {
|
|
|
2653
2653
|
internal_processStyles: Y1,
|
|
2654
2654
|
keyframes: Ia
|
|
2655
2655
|
}, Symbol.toStringTag, { value: "Module" })), J1 = /* @__PURE__ */ gn(_R);
|
|
2656
|
-
function
|
|
2656
|
+
function Pn(e) {
|
|
2657
2657
|
if (typeof e != "object" || e === null)
|
|
2658
2658
|
return !1;
|
|
2659
2659
|
const t = Object.getPrototypeOf(e);
|
|
2660
2660
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
2661
2661
|
}
|
|
2662
|
-
a(
|
|
2662
|
+
a(Pn, "isPlainObject$1");
|
|
2663
2663
|
function Q1(e) {
|
|
2664
|
-
if (!
|
|
2664
|
+
if (!Pn(e))
|
|
2665
2665
|
return e;
|
|
2666
2666
|
const t = {};
|
|
2667
2667
|
return Object.keys(e).forEach((r) => {
|
|
@@ -2673,16 +2673,16 @@ function Gt(e, t, r = {
|
|
|
2673
2673
|
clone: !0
|
|
2674
2674
|
}) {
|
|
2675
2675
|
const n = r.clone ? E({}, e) : e;
|
|
2676
|
-
return
|
|
2677
|
-
|
|
2678
|
-
Object.prototype.hasOwnProperty.call(e, o) &&
|
|
2676
|
+
return Pn(e) && Pn(t) && Object.keys(t).forEach((o) => {
|
|
2677
|
+
Pn(t[o]) && // Avoid prototype pollution
|
|
2678
|
+
Object.prototype.hasOwnProperty.call(e, o) && Pn(e[o]) ? n[o] = Gt(e[o], t[o], r) : r.clone ? n[o] = Pn(t[o]) ? Q1(t[o]) : t[o] : n[o] = t[o];
|
|
2679
2679
|
}), n;
|
|
2680
2680
|
}
|
|
2681
2681
|
a(Gt, "deepmerge$1");
|
|
2682
2682
|
const jR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2683
2683
|
__proto__: null,
|
|
2684
2684
|
default: Gt,
|
|
2685
|
-
isPlainObject:
|
|
2685
|
+
isPlainObject: Pn
|
|
2686
2686
|
}, Symbol.toStringTag, { value: "Module" })), zR = /* @__PURE__ */ gn(jR), BR = /* @__PURE__ */ gn(uM);
|
|
2687
2687
|
var Rf = { exports: {} }, Xe = {};
|
|
2688
2688
|
/**
|
|
@@ -3794,7 +3794,7 @@ function vl(e) {
|
|
|
3794
3794
|
let i;
|
|
3795
3795
|
return Array.isArray(t) ? i = [n, ...t] : typeof t == "function" ? i = /* @__PURE__ */ a((...s) => {
|
|
3796
3796
|
const l = t(...s);
|
|
3797
|
-
return
|
|
3797
|
+
return Pn(l) ? E({}, n, l) : n;
|
|
3798
3798
|
}, "finalSx") : i = E({}, n, t), E({}, o, {
|
|
3799
3799
|
sx: i
|
|
3800
3800
|
});
|
|
@@ -4499,7 +4499,7 @@ function FF(e) {
|
|
|
4499
4499
|
}) => {
|
|
4500
4500
|
if (b = E({}, b), !b.main && b[O] && (b.main = b[O]), !b.hasOwnProperty("main"))
|
|
4501
4501
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${v ? ` (${v})` : ""} provided to augmentColor(color) is invalid.
|
|
4502
|
-
The color object needs to have a \`main\` property or a \`${O}\` property.` :
|
|
4502
|
+
The color object needs to have a \`main\` property or a \`${O}\` property.` : In(11, v ? ` (${v})` : "", O));
|
|
4503
4503
|
if (typeof b.main != "string")
|
|
4504
4504
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${v ? ` (${v})` : ""} provided to augmentColor(color) is invalid.
|
|
4505
4505
|
\`color.main\` should be a string, but \`${JSON.stringify(b.main)}\` was provided instead.
|
|
@@ -4514,7 +4514,7 @@ const theme1 = createTheme({ palette: {
|
|
|
4514
4514
|
|
|
4515
4515
|
const theme2 = createTheme({ palette: {
|
|
4516
4516
|
primary: { main: green[500] },
|
|
4517
|
-
} });` :
|
|
4517
|
+
} });` : In(12, v ? ` (${v})` : "", JSON.stringify(b.main)));
|
|
4518
4518
|
return Jv(b, "light", k, n), Jv(b, "dark", T, n), b.contrastText || (b.contrastText = f(b.main)), b;
|
|
4519
4519
|
}, "augmentColor"), m = {
|
|
4520
4520
|
dark: Tp,
|
|
@@ -4727,7 +4727,7 @@ function mS(e = {}, ...t) {
|
|
|
4727
4727
|
typography: i = {}
|
|
4728
4728
|
} = e, s = oe(e, qF);
|
|
4729
4729
|
if (e.vars)
|
|
4730
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." :
|
|
4730
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : In(18));
|
|
4731
4731
|
const l = FF(n), u = yl(e);
|
|
4732
4732
|
let d = Gt(u, {
|
|
4733
4733
|
mixins: cF(u.breakpoints, r),
|
|
@@ -5472,7 +5472,7 @@ function F$(e = {}) {
|
|
|
5472
5472
|
const k = Pm(s, E({
|
|
5473
5473
|
shouldForwardProp: O,
|
|
5474
5474
|
label: v
|
|
5475
|
-
}, m)), T = /* @__PURE__ */ a((S) => typeof S == "function" && S.__emotion_real !== S ||
|
|
5475
|
+
}, m)), T = /* @__PURE__ */ a((S) => typeof S == "function" && S.__emotion_real !== S || Pn(S) ? (w) => hc(S, E({}, w, {
|
|
5476
5476
|
theme: jl({
|
|
5477
5477
|
theme: w.theme,
|
|
5478
5478
|
defaultTheme: r,
|
|
@@ -5625,12 +5625,12 @@ function TS(e) {
|
|
|
5625
5625
|
const t = e.indexOf("("), r = e.substring(0, t);
|
|
5626
5626
|
if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(r) === -1)
|
|
5627
5627
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
5628
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` :
|
|
5628
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : In(9, e));
|
|
5629
5629
|
let n = e.substring(t + 1, e.length - 1), o;
|
|
5630
5630
|
if (r === "color") {
|
|
5631
5631
|
if (n = n.split(" "), o = n.shift(), n.length === 4 && n[3].charAt(0) === "/" && (n[3] = n[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(o) === -1)
|
|
5632
5632
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
|
|
5633
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` :
|
|
5633
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : In(10, o));
|
|
5634
5634
|
} else
|
|
5635
5635
|
n = n.split(",");
|
|
5636
5636
|
return n = n.map((i) => parseFloat(i)), {
|
|
@@ -5960,7 +5960,7 @@ MS = Um.default = (0, pI.default)(/* @__PURE__ */ (0, fI.jsx)("path", {
|
|
|
5960
5960
|
d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
|
|
5961
5961
|
}), "Edit");
|
|
5962
5962
|
function hI(e) {
|
|
5963
|
-
const t =
|
|
5963
|
+
const t = An(e);
|
|
5964
5964
|
return t.body === e ? Ns(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
|
|
5965
5965
|
}
|
|
5966
5966
|
a(hI, "isOverflowing");
|
|
@@ -5994,13 +5994,13 @@ function gI(e, t) {
|
|
|
5994
5994
|
const r = [], n = e.container;
|
|
5995
5995
|
if (!t.disableScrollLock) {
|
|
5996
5996
|
if (hI(n)) {
|
|
5997
|
-
const s = Pw(
|
|
5997
|
+
const s = Pw(An(n));
|
|
5998
5998
|
r.push({
|
|
5999
5999
|
value: n.style.paddingRight,
|
|
6000
6000
|
property: "padding-right",
|
|
6001
6001
|
el: n
|
|
6002
6002
|
}), n.style.paddingRight = `${l0(n) + s}px`;
|
|
6003
|
-
const l =
|
|
6003
|
+
const l = An(n).querySelectorAll(".mui-fixed");
|
|
6004
6004
|
[].forEach.call(l, (u) => {
|
|
6005
6005
|
r.push({
|
|
6006
6006
|
value: u.style.paddingRight,
|
|
@@ -6011,7 +6011,7 @@ function gI(e, t) {
|
|
|
6011
6011
|
}
|
|
6012
6012
|
let i;
|
|
6013
6013
|
if (n.parentNode instanceof DocumentFragment)
|
|
6014
|
-
i =
|
|
6014
|
+
i = An(n).body;
|
|
6015
6015
|
else {
|
|
6016
6016
|
const s = n.parentElement, l = Ns(n);
|
|
6017
6017
|
i = (s == null ? void 0 : s.nodeName) === "HTML" && l.getComputedStyle(s).overflowY === "scroll" ? s : n;
|
|
@@ -6247,7 +6247,7 @@ function Fc(e) {
|
|
|
6247
6247
|
}, [r, l]), x.useEffect(() => {
|
|
6248
6248
|
if (!l || !g.current)
|
|
6249
6249
|
return;
|
|
6250
|
-
const T =
|
|
6250
|
+
const T = An(g.current);
|
|
6251
6251
|
return g.current.contains(T.activeElement) || (g.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
6252
6252
|
`)), g.current.setAttribute("tabIndex", "-1")), m.current && g.current.focus()), () => {
|
|
6253
6253
|
o || (f.current && f.current.focus && (u.current = !0, f.current.focus()), f.current = null);
|
|
@@ -6255,7 +6255,7 @@ function Fc(e) {
|
|
|
6255
6255
|
}, [l]), x.useEffect(() => {
|
|
6256
6256
|
if (!l || !g.current)
|
|
6257
6257
|
return;
|
|
6258
|
-
const T =
|
|
6258
|
+
const T = An(g.current), C = /* @__PURE__ */ a((P) => {
|
|
6259
6259
|
v.current = P, !(n || !s() || P.key !== "Tab") && T.activeElement === g.current && P.shiftKey && (u.current = !0, p.current && p.current.focus());
|
|
6260
6260
|
}, "loopFocus"), S = /* @__PURE__ */ a(() => {
|
|
6261
6261
|
const P = g.current;
|
|
@@ -6789,7 +6789,7 @@ function MI(e) {
|
|
|
6789
6789
|
a(MI, "_assertThisInitialized");
|
|
6790
6790
|
function qm(e, t) {
|
|
6791
6791
|
var r = /* @__PURE__ */ a(function(i) {
|
|
6792
|
-
return t &&
|
|
6792
|
+
return t && Rn(i) ? t(i) : i;
|
|
6793
6793
|
}, "mapper"), n = /* @__PURE__ */ Object.create(null);
|
|
6794
6794
|
return e && ad.map(e, function(o) {
|
|
6795
6795
|
return o;
|
|
@@ -6841,8 +6841,8 @@ function FI(e, t, r) {
|
|
|
6841
6841
|
var n = qm(e.children), o = RI(t, n);
|
|
6842
6842
|
return Object.keys(o).forEach(function(i) {
|
|
6843
6843
|
var s = o[i];
|
|
6844
|
-
if (
|
|
6845
|
-
var l = i in t, u = i in n, d = t[i], p =
|
|
6844
|
+
if (Rn(s)) {
|
|
6845
|
+
var l = i in t, u = i in n, d = t[i], p = Rn(d) && !d.props.in;
|
|
6846
6846
|
u && (!l || p) ? o[i] = Hr(s, {
|
|
6847
6847
|
onExited: r.bind(null, s),
|
|
6848
6848
|
in: !0,
|
|
@@ -6850,7 +6850,7 @@ function FI(e, t, r) {
|
|
|
6850
6850
|
enter: zo(s, "enter", e)
|
|
6851
6851
|
}) : !u && l && !p ? o[i] = Hr(s, {
|
|
6852
6852
|
in: !1
|
|
6853
|
-
}) : u && l &&
|
|
6853
|
+
}) : u && l && Rn(d) && (o[i] = Hr(s, {
|
|
6854
6854
|
onExited: r.bind(null, s),
|
|
6855
6855
|
in: d.props.in,
|
|
6856
6856
|
exit: zo(s, "exit", e),
|
|
@@ -7332,7 +7332,7 @@ function WI(e) {
|
|
|
7332
7332
|
} = e, h = x.useRef({}), m = x.useRef(null), g = x.useRef(null), b = aa(g, f), [v, O] = x.useState(!p), k = VI(u);
|
|
7333
7333
|
let T = !0;
|
|
7334
7334
|
(e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (T = !1);
|
|
7335
|
-
const C = /* @__PURE__ */ a(() =>
|
|
7335
|
+
const C = /* @__PURE__ */ a(() => An(m.current), "getDoc"), S = /* @__PURE__ */ a(() => (h.current.modalRef = g.current, h.current.mount = m.current, h.current), "getModal"), w = /* @__PURE__ */ a(() => {
|
|
7336
7336
|
o.mount(S(), {
|
|
7337
7337
|
disableScrollLock: n
|
|
7338
7338
|
}), g.current && (g.current.scrollTop = 0);
|
|
@@ -9633,7 +9633,7 @@ const lL = /^(\d+)(th|st|nd|rd)?/i, cL = /\d+/i, uL = {
|
|
|
9633
9633
|
validate: z,
|
|
9634
9634
|
required: B,
|
|
9635
9635
|
...V
|
|
9636
|
-
} = b, L = s || F === void 0 ? C : F, Y = s || I === void 0 ? S : I, D = s || M === void 0 ? O : M, j = s || $ === void 0 ? T : $, te = s || R === void 0 ? k : R, H =
|
|
9636
|
+
} = b, L = s || F === void 0 ? C : F, Y = s || I === void 0 ? S : I, D = s || M === void 0 ? O : M, j = s || $ === void 0 ? T : $, te = s || R === void 0 ? k : R, H = xn({ ...e, etrs: v, asisEtr: i }), K = N({
|
|
9637
9637
|
...A,
|
|
9638
9638
|
estado: r,
|
|
9639
9639
|
hidden: L,
|
|
@@ -9713,7 +9713,7 @@ const lL = /^(\d+)(th|st|nd|rd)?/i, cL = /\d+/i, uL = {
|
|
|
9713
9713
|
const {
|
|
9714
9714
|
fichaProps: { onBeforeSubmitFicha: t, etrs: r },
|
|
9715
9715
|
estado: n
|
|
9716
|
-
} = Te(Ot), o = lD({ ...e, etrs: r }), i =
|
|
9716
|
+
} = Te(Ot), o = lD({ ...e, etrs: r }), i = On(), { save: s } = Zw(), l = He(
|
|
9717
9717
|
async (u) => {
|
|
9718
9718
|
const d = t && await t(
|
|
9719
9719
|
{
|
|
@@ -9960,7 +9960,7 @@ const HS = /* @__PURE__ */ a(() => {
|
|
|
9960
9960
|
},
|
|
9961
9961
|
[e]
|
|
9962
9962
|
);
|
|
9963
|
-
}, "useSetLabel"),
|
|
9963
|
+
}, "useSetLabel"), On = /* @__PURE__ */ a(() => {
|
|
9964
9964
|
const e = iP();
|
|
9965
9965
|
return (t, r) => {
|
|
9966
9966
|
e(
|
|
@@ -9970,7 +9970,7 @@ const HS = /* @__PURE__ */ a(() => {
|
|
|
9970
9970
|
{ multiLine: !0, ...r }
|
|
9971
9971
|
);
|
|
9972
9972
|
};
|
|
9973
|
-
}, "useNotifyEtriek
|
|
9973
|
+
}, "useNotifyEtriek"), sD = /* @__PURE__ */ a((e, t, r = !1) => {
|
|
9974
9974
|
const n = lm(), { mutateAsync: o, isFetching: i } = iM({
|
|
9975
9975
|
mutationFn: /* @__PURE__ */ a((s) => {
|
|
9976
9976
|
const { method: l, params: u } = s;
|
|
@@ -10012,7 +10012,7 @@ const HS = /* @__PURE__ */ a(() => {
|
|
|
10012
10012
|
r.refetchQueries({ queryKey: [t], type: "active" });
|
|
10013
10013
|
}, [r, t]);
|
|
10014
10014
|
}, "useResourceRefresh"), Rl = /* @__PURE__ */ a((e) => ({}), "useDefaultHook"), $d = /* @__PURE__ */ a((e) => {
|
|
10015
|
-
const t = ai(e), r =
|
|
10015
|
+
const t = ai(e), r = On(), n = Aa(), o = Fa(), i = ja(), s = ht(e), l = rC(e), u = aP(s), d = Ad(), p = Fd(), f = xt(), h = qS(), [m] = ag(s);
|
|
10016
10016
|
return {
|
|
10017
10017
|
ajax: m,
|
|
10018
10018
|
data: t,
|
|
@@ -10029,7 +10029,7 @@ const HS = /* @__PURE__ */ a(() => {
|
|
|
10029
10029
|
abrirVentanaSistema: h
|
|
10030
10030
|
};
|
|
10031
10031
|
}, "useUtilsGrilla"), lD = /* @__PURE__ */ a((e) => {
|
|
10032
|
-
const t = GS(), r = KS(), n = YS(), o = JS(), i = QS(), s = XS(), l = ja(), u =
|
|
10032
|
+
const t = GS(), r = KS(), n = YS(), o = JS(), i = QS(), s = XS(), l = ja(), u = On(), d = Aa(), p = Fa(), f = ht(e), h = Ad(), { propsContenidos: m, setPropsContenidos: g } = og(), [b] = ag(f), v = e.etrs || {};
|
|
10033
10033
|
return {
|
|
10034
10034
|
ajax: b,
|
|
10035
10035
|
notify: u,
|
|
@@ -10046,8 +10046,8 @@ const HS = /* @__PURE__ */ a(() => {
|
|
|
10046
10046
|
setLabel: s,
|
|
10047
10047
|
etrs: v
|
|
10048
10048
|
};
|
|
10049
|
-
}, "useUtilsSubmit"),
|
|
10050
|
-
const t = GS(), r = KS(), n = YS(), o = JS(), i = QS(), s = XS(), l = ja(), u =
|
|
10049
|
+
}, "useUtilsSubmit"), xn = /* @__PURE__ */ a((e) => {
|
|
10050
|
+
const t = GS(), r = KS(), n = YS(), o = JS(), i = QS(), s = XS(), l = ja(), u = On(), d = Aa(), p = Fa(), f = ir(), h = ht(e), m = Ad(), g = tC(), b = qS(), { propsContenidos: v, setPropsContenidos: O } = og(), [k] = ag(h), T = e.etrs || {}, C = e.asisEtr || {}, S = f == null ? void 0 : f.trigger;
|
|
10051
10051
|
return {
|
|
10052
10052
|
form: f,
|
|
10053
10053
|
ajax: k,
|
|
@@ -11263,7 +11263,7 @@ const ga = ye("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
11263
11263
|
if (!J) {
|
|
11264
11264
|
const Ne = Re.target || U.current;
|
|
11265
11265
|
if (Ne == null)
|
|
11266
|
-
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." :
|
|
11266
|
+
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." : In(1));
|
|
11267
11267
|
ge({
|
|
11268
11268
|
value: Ne.value
|
|
11269
11269
|
});
|
|
@@ -14263,7 +14263,7 @@ process.env.NODE_ENV !== "production" && (xC.propTypes = {
|
|
|
14263
14263
|
width: c.number.isRequired
|
|
14264
14264
|
});
|
|
14265
14265
|
const X2 = ["BackdropProps"], Z2 = ["anchor", "disableBackdropTransition", "disableDiscovery", "disableSwipeToOpen", "hideBackdrop", "hysteresis", "allowSwipeInChildren", "minFlingVelocity", "ModalProps", "onClose", "onOpen", "open", "PaperProps", "SwipeAreaProps", "swipeAreaWidth", "transitionDuration", "variant"], Vl = 3, Ap = 20;
|
|
14266
|
-
let
|
|
14266
|
+
let Cn = null;
|
|
14267
14267
|
function Fp(e, t, r) {
|
|
14268
14268
|
return e === "right" ? r.body.offsetWidth - t[0].pageX : t[0].pageX;
|
|
14269
14269
|
}
|
|
@@ -14373,7 +14373,7 @@ const r_ = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
|
|
|
14373
14373
|
}, [s, l, p, o, S]), Y = cr((H) => {
|
|
14374
14374
|
if (!B.current)
|
|
14375
14375
|
return;
|
|
14376
|
-
if (
|
|
14376
|
+
if (Cn = null, B.current = !1, Cf.flushSync(() => {
|
|
14377
14377
|
$(!1);
|
|
14378
14378
|
}), !R.current.isSwiping) {
|
|
14379
14379
|
R.current.isSwiping = null;
|
|
@@ -14404,11 +14404,11 @@ const r_ = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
|
|
|
14404
14404
|
}), R.current.velocity = 0, R.current.lastTime = null, R.current.lastTranslate = null, R.current.paperHit = !1, B.current = !0;
|
|
14405
14405
|
}
|
|
14406
14406
|
}, "startMaybeSwiping"), j = cr((H) => {
|
|
14407
|
-
if (!N.current || !B.current ||
|
|
14407
|
+
if (!N.current || !B.current || Cn !== null && Cn !== R.current)
|
|
14408
14408
|
return;
|
|
14409
14409
|
D(!0);
|
|
14410
14410
|
const K = cs(o, s), J = Po(s), U = Fp(K, H.touches, Pr(H.currentTarget)), re = $p(K, H.touches, Wr(H.currentTarget));
|
|
14411
|
-
if (O && N.current.contains(H.target) &&
|
|
14411
|
+
if (O && N.current.contains(H.target) && Cn === null) {
|
|
14412
14412
|
const _ = e_(H.target, N.current);
|
|
14413
14413
|
if (t_({
|
|
14414
14414
|
domTreeShapes: _,
|
|
@@ -14416,10 +14416,10 @@ const r_ = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
|
|
|
14416
14416
|
current: J ? U : re,
|
|
14417
14417
|
anchor: s
|
|
14418
14418
|
})) {
|
|
14419
|
-
|
|
14419
|
+
Cn = !0;
|
|
14420
14420
|
return;
|
|
14421
14421
|
}
|
|
14422
|
-
|
|
14422
|
+
Cn = R.current;
|
|
14423
14423
|
}
|
|
14424
14424
|
if (R.current.isSwiping == null) {
|
|
14425
14425
|
const _ = Math.abs(U - R.current.startX), de = Math.abs(re - R.current.startY), W = J ? _ > de && _ > Vl : de > _ && de > Vl;
|
|
@@ -14461,7 +14461,7 @@ const r_ = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
|
|
|
14461
14461
|
} else if (re > C)
|
|
14462
14462
|
return;
|
|
14463
14463
|
}
|
|
14464
|
-
H.defaultMuiPrevented = !0,
|
|
14464
|
+
H.defaultMuiPrevented = !0, Cn = null, R.current.startX = U, R.current.startY = re, D();
|
|
14465
14465
|
});
|
|
14466
14466
|
return x.useEffect(() => {
|
|
14467
14467
|
if (w === "temporary") {
|
|
@@ -14475,7 +14475,7 @@ const r_ = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
|
|
|
14475
14475
|
};
|
|
14476
14476
|
}
|
|
14477
14477
|
}, [w, O, te, j, Y]), x.useEffect(() => () => {
|
|
14478
|
-
|
|
14478
|
+
Cn === R.current && (Cn = null);
|
|
14479
14479
|
}, []), x.useEffect(() => {
|
|
14480
14480
|
O || $(!1);
|
|
14481
14481
|
}, [O]), /* @__PURE__ */ G(x.Fragment, {
|
|
@@ -22749,7 +22749,8 @@ const zz = x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
22749
22749
|
TransitionComponent: zz,
|
|
22750
22750
|
...k,
|
|
22751
22751
|
children: p === "form" ? (/* @__PURE__ */ a(() => {
|
|
22752
|
-
|
|
22752
|
+
var A, M, $;
|
|
22753
|
+
const w = x.isValidElement(l) && ((A = l.type.name) == null ? void 0 : A.startsWith("Form")) && (((M = l.type.name) == null ? void 0 : M.endsWith("Create")) || (($ = l.type.name) == null ? void 0 : $.endsWith("Edit")));
|
|
22753
22754
|
return /* @__PURE__ */ G(pn, { children: [
|
|
22754
22755
|
/* @__PURE__ */ y(Qx, { id: "draggable-dialog-title", children: s }),
|
|
22755
22756
|
/* @__PURE__ */ G(w ? nt : fl, { resource: r, onSubmit: u, children: [
|
|
@@ -22757,18 +22758,18 @@ const zz = x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
|
22757
22758
|
/* @__PURE__ */ G(Dw, { children: [
|
|
22758
22759
|
f.map(
|
|
22759
22760
|
({
|
|
22760
|
-
label:
|
|
22761
|
-
icon:
|
|
22762
|
-
handler:
|
|
22763
|
-
},
|
|
22761
|
+
label: R = "",
|
|
22762
|
+
icon: F = /* @__PURE__ */ y(Bf, {}),
|
|
22763
|
+
handler: I
|
|
22764
|
+
}, N) => /* @__PURE__ */ y(
|
|
22764
22765
|
wr,
|
|
22765
22766
|
{
|
|
22766
|
-
label:
|
|
22767
|
+
label: R,
|
|
22767
22768
|
disabled: t,
|
|
22768
|
-
onClick:
|
|
22769
|
-
children:
|
|
22769
|
+
onClick: I,
|
|
22770
|
+
children: F
|
|
22770
22771
|
},
|
|
22771
|
-
`extra_${
|
|
22772
|
+
`extra_${N}`
|
|
22772
22773
|
)
|
|
22773
22774
|
),
|
|
22774
22775
|
m && /* @__PURE__ */ y(
|
|
@@ -22964,7 +22965,7 @@ RC = Cg.default = (0, tB.default)(/* @__PURE__ */ (0, rB.jsx)("path", {
|
|
|
22964
22965
|
const AC = /* @__PURE__ */ a((e) => {
|
|
22965
22966
|
const t = xt(), { defaultTitle: r, onClose: n, record: o, title: i } = e;
|
|
22966
22967
|
return /* @__PURE__ */ G(nB, { id: "edit-dialog-title", children: [
|
|
22967
|
-
|
|
22968
|
+
Rn(i) ? Hr(i, { record: o }) : i ? t(i, { _: i }) : r,
|
|
22968
22969
|
/* @__PURE__ */ y(
|
|
22969
22970
|
Ds,
|
|
22970
22971
|
{
|
|
@@ -23010,7 +23011,7 @@ const AC = /* @__PURE__ */ a((e) => {
|
|
|
23010
23011
|
redirect: n = "list",
|
|
23011
23012
|
...o
|
|
23012
23013
|
}) => {
|
|
23013
|
-
const i = Aa(), s =
|
|
23014
|
+
const i = Aa(), s = On(), l = mm(), u = {
|
|
23014
23015
|
onSuccess: /* @__PURE__ */ a((g) => {
|
|
23015
23016
|
s("ra.notification.created", {
|
|
23016
23017
|
type: "info",
|
|
@@ -23475,7 +23476,7 @@ const DC = /* @__PURE__ */ a((e) => {
|
|
|
23475
23476
|
] : [];
|
|
23476
23477
|
}, "getActions")
|
|
23477
23478
|
}
|
|
23478
|
-
]) : ze, et = mr(() => Ce, []), tt = I &&
|
|
23479
|
+
]) : ze, et = mr(() => Ce, []), tt = I && Rn(R), Be = /* @__PURE__ */ a((Q) => {
|
|
23479
23480
|
L || (I || !O ? D(Q) : X.current.isRowSelected(Q[0]) ? D([]) : D(Q));
|
|
23480
23481
|
}, "handleSelectionChange"), ut = /* @__PURE__ */ a((Q) => {
|
|
23481
23482
|
var Ft;
|
|
@@ -23764,7 +23765,7 @@ const DC = /* @__PURE__ */ a((e) => {
|
|
|
23764
23765
|
open: u
|
|
23765
23766
|
} = e, { dirtyFields: d, isValid: p } = tM(), {
|
|
23766
23767
|
fichaProps: { [e.source]: f = {}, etrs: h }
|
|
23767
|
-
} = Te(Ot), m = ja(), g = Te(za), { onAfterRenderAsistente: b, ...v } = f, O =
|
|
23768
|
+
} = Te(Ot), m = ja(), g = Te(za), { onAfterRenderAsistente: b, ...v } = f, O = xn({ resource: r, etrs: h, asisEtr: g });
|
|
23768
23769
|
return Ge(() => {
|
|
23769
23770
|
u && typeof b == "function" && b({ ...O, form: t }, n);
|
|
23770
23771
|
}, [u]), /* @__PURE__ */ G(dn, { children: [
|
|
@@ -23815,7 +23816,7 @@ const DC = /* @__PURE__ */ a((e) => {
|
|
|
23815
23816
|
} = e, [p, f] = cm(!1), h = ht(e), m = ir(), g = Ei(), b = iC({ apiRef: g, source: i, enviarTodo: s }), v = "N", {
|
|
23816
23817
|
estado: O,
|
|
23817
23818
|
fichaProps: { etrs: k }
|
|
23818
|
-
} = Te(Ot), T = Te(za), C =
|
|
23819
|
+
} = Te(Ot), T = Te(za), C = xn({ etrs: k, asisEtr: T }), w = xt()("ra.action.create");
|
|
23819
23820
|
return /* @__PURE__ */ G(dn, { children: [
|
|
23820
23821
|
/* @__PURE__ */ y(
|
|
23821
23822
|
wr,
|
|
@@ -23879,7 +23880,7 @@ const DC = /* @__PURE__ */ a((e) => {
|
|
|
23879
23880
|
} = e, p = xt(), [f, h] = cm(!1), m = Ei(), g = ir(), b = aC({ apiRef: m, source: i, enviarTodo: l }), v = "M", {
|
|
23880
23881
|
estado: O,
|
|
23881
23882
|
fichaProps: { etrs: k }
|
|
23882
|
-
} = Te(Ot), T = Te(za), C =
|
|
23883
|
+
} = Te(Ot), T = Te(za), C = xn({ etrs: k, asisEtr: T }), S = p("ra.action.edit");
|
|
23883
23884
|
return /* @__PURE__ */ G(dn, { children: [
|
|
23884
23885
|
/* @__PURE__ */ y(
|
|
23885
23886
|
wr,
|
|
@@ -23941,7 +23942,7 @@ const DC = /* @__PURE__ */ a((e) => {
|
|
|
23941
23942
|
} = e, [u, d] = cm(!1), p = Ei(), f = ir(), h = sC({ apiRef: p, source: o, enviarTodo: i }), {
|
|
23942
23943
|
estado: m,
|
|
23943
23944
|
fichaProps: { etrs: g }
|
|
23944
|
-
} = Te(Ot), b =
|
|
23945
|
+
} = Te(Ot), b = xn({ etrs: g });
|
|
23945
23946
|
return /* @__PURE__ */ G(pn, { children: [
|
|
23946
23947
|
/* @__PURE__ */ y(
|
|
23947
23948
|
yB,
|
|
@@ -24198,7 +24199,7 @@ const DC = /* @__PURE__ */ a((e) => {
|
|
|
24198
24199
|
estado: v,
|
|
24199
24200
|
isLoading: O,
|
|
24200
24201
|
fichaProps: k = {}
|
|
24201
|
-
} = Te(Ot), T = kg(), C =
|
|
24202
|
+
} = Te(Ot), T = kg(), C = xn(e), { [e.source]: S = {} } = k, { useContenido: w = Rl, ...P } = S, {
|
|
24202
24203
|
data: A = [],
|
|
24203
24204
|
isFetching: M,
|
|
24204
24205
|
refetch: $
|
|
@@ -25606,7 +25607,7 @@ const iee = /* @__PURE__ */ a((e) => {
|
|
|
25606
25607
|
redirect: n = "list",
|
|
25607
25608
|
...o
|
|
25608
25609
|
}) => {
|
|
25609
|
-
const i = Aa(), s =
|
|
25610
|
+
const i = Aa(), s = On(), l = mm(), u = {
|
|
25610
25611
|
onSuccess: /* @__PURE__ */ a((g) => {
|
|
25611
25612
|
s("ra.notification.created", {
|
|
25612
25613
|
type: "info",
|
|
@@ -26076,10 +26077,10 @@ function QC(e, t) {
|
|
|
26076
26077
|
return !1;
|
|
26077
26078
|
}
|
|
26078
26079
|
a(QC, "contains");
|
|
26079
|
-
function
|
|
26080
|
+
function Nn(e) {
|
|
26080
26081
|
return fr(e).getComputedStyle(e);
|
|
26081
26082
|
}
|
|
26082
|
-
a(
|
|
26083
|
+
a(Nn, "getComputedStyle$1");
|
|
26083
26084
|
function PV(e) {
|
|
26084
26085
|
return ["table", "td", "th"].indexOf(fn(e)) >= 0;
|
|
26085
26086
|
}
|
|
@@ -26106,19 +26107,19 @@ function Wd(e) {
|
|
|
26106
26107
|
a(Wd, "getParentNode");
|
|
26107
26108
|
function _0(e) {
|
|
26108
26109
|
return !Ar(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
26109
|
-
|
|
26110
|
+
Nn(e).position === "fixed" ? null : e.offsetParent;
|
|
26110
26111
|
}
|
|
26111
26112
|
a(_0, "getTrueOffsetParent");
|
|
26112
26113
|
function MV(e) {
|
|
26113
26114
|
var t = /firefox/i.test(Wf()), r = /Trident/i.test(Wf());
|
|
26114
26115
|
if (r && Ar(e)) {
|
|
26115
|
-
var n =
|
|
26116
|
+
var n = Nn(e);
|
|
26116
26117
|
if (n.position === "fixed")
|
|
26117
26118
|
return null;
|
|
26118
26119
|
}
|
|
26119
26120
|
var o = Wd(e);
|
|
26120
26121
|
for (Rg(o) && (o = o.host); Ar(o) && ["html", "body"].indexOf(fn(o)) < 0; ) {
|
|
26121
|
-
var i =
|
|
26122
|
+
var i = Nn(o);
|
|
26122
26123
|
if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
|
|
26123
26124
|
return o;
|
|
26124
26125
|
o = o.parentNode;
|
|
@@ -26127,9 +26128,9 @@ function MV(e) {
|
|
|
26127
26128
|
}
|
|
26128
26129
|
a(MV, "getContainingBlock");
|
|
26129
26130
|
function Fl(e) {
|
|
26130
|
-
for (var t = fr(e), r = _0(e); r && PV(r) &&
|
|
26131
|
+
for (var t = fr(e), r = _0(e); r && PV(r) && Nn(r).position === "static"; )
|
|
26131
26132
|
r = _0(r);
|
|
26132
|
-
return r && (fn(r) === "html" || fn(r) === "body" &&
|
|
26133
|
+
return r && (fn(r) === "html" || fn(r) === "body" && Nn(r).position === "static") ? t : r || MV(e) || t;
|
|
26133
26134
|
}
|
|
26134
26135
|
a(Fl, "getOffsetParent");
|
|
26135
26136
|
function Fg(e) {
|
|
@@ -26221,7 +26222,7 @@ function j0(e) {
|
|
|
26221
26222
|
var O = s.hasOwnProperty("x"), k = s.hasOwnProperty("y"), T = er, C = Zt, S = window;
|
|
26222
26223
|
if (d) {
|
|
26223
26224
|
var w = Fl(r), P = "clientHeight", A = "clientWidth";
|
|
26224
|
-
if (w === fr(r) && (w = ho(r),
|
|
26225
|
+
if (w === fr(r) && (w = ho(r), Nn(w).position !== "static" && l === "absolute" && (P = "scrollHeight", A = "scrollWidth")), w = w, o === Zt || (o === er || o === Nr) && i === Js) {
|
|
26225
26226
|
C = Ir;
|
|
26226
26227
|
var M = f && w === S && S.visualViewport ? S.visualViewport.height : (
|
|
26227
26228
|
// $FlowFixMe[prop-missing]
|
|
@@ -26359,7 +26360,7 @@ function HV(e, t) {
|
|
|
26359
26360
|
a(HV, "getViewportRect");
|
|
26360
26361
|
function WV(e) {
|
|
26361
26362
|
var t, r = ho(e), n = $g(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, i = Ko(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), s = Ko(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), l = -n.scrollLeft + Ig(e), u = -n.scrollTop;
|
|
26362
|
-
return
|
|
26363
|
+
return Nn(o || r).direction === "rtl" && (l += Ko(r.clientWidth, o ? o.clientWidth : 0) - i), {
|
|
26363
26364
|
width: i,
|
|
26364
26365
|
height: s,
|
|
26365
26366
|
x: l,
|
|
@@ -26368,7 +26369,7 @@ function WV(e) {
|
|
|
26368
26369
|
}
|
|
26369
26370
|
a(WV, "getDocumentRect");
|
|
26370
26371
|
function Ng(e) {
|
|
26371
|
-
var t =
|
|
26372
|
+
var t = Nn(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
|
|
26372
26373
|
return /auto|scroll|overlay|hidden/.test(r + o + n);
|
|
26373
26374
|
}
|
|
26374
26375
|
a(Ng, "isScrollParent");
|
|
@@ -26405,7 +26406,7 @@ function B0(e, t, r) {
|
|
|
26405
26406
|
}
|
|
26406
26407
|
a(B0, "getClientRectFromMixedType");
|
|
26407
26408
|
function qV(e) {
|
|
26408
|
-
var t = ms(Wd(e)), r = ["absolute", "fixed"].indexOf(
|
|
26409
|
+
var t = ms(Wd(e)), r = ["absolute", "fixed"].indexOf(Nn(e).position) >= 0, n = r && Ar(e) ? Fl(e) : e;
|
|
26409
26410
|
return fi(n) ? t.filter(function(o) {
|
|
26410
26411
|
return fi(o) && QC(o, n) && fn(o) !== "body";
|
|
26411
26412
|
}) : [];
|
|
@@ -27068,7 +27069,7 @@ const T5 = /* @__PURE__ */ a((e) => {
|
|
|
27068
27069
|
P = i;
|
|
27069
27070
|
else if (n) {
|
|
27070
27071
|
const $ = zc(n);
|
|
27071
|
-
P = $ && Ud($) ?
|
|
27072
|
+
P = $ && Ud($) ? An($).body : An(null).body;
|
|
27072
27073
|
}
|
|
27073
27074
|
const A = !p && u && (!b || T) ? "none" : void 0, M = b ? {
|
|
27074
27075
|
in: p,
|
|
@@ -28087,7 +28088,7 @@ const L5 = /* @__PURE__ */ a(({
|
|
|
28087
28088
|
}
|
|
28088
28089
|
);
|
|
28089
28090
|
}), oT = /* @__PURE__ */ a((e) => {
|
|
28090
|
-
const t = ht(e), { estado: r, isLoading: n, initialValues: o, fichaProps: i } = Te(Ot), s =
|
|
28091
|
+
const t = ht(e), { estado: r, isLoading: n, initialValues: o, fichaProps: i } = Te(Ot), s = xn({ resource: t, etrs: i.etrs });
|
|
28091
28092
|
return Ge(() => {
|
|
28092
28093
|
i.onRenderFicha && i.onRenderFicha(s, r);
|
|
28093
28094
|
}, []), Ge(() => {
|
|
@@ -28111,7 +28112,7 @@ const L5 = /* @__PURE__ */ a(({
|
|
|
28111
28112
|
e.preventDefault();
|
|
28112
28113
|
}, "disableKeyboardEvents"), iT = /* @__PURE__ */ a((e) => {
|
|
28113
28114
|
var h;
|
|
28114
|
-
const t = ja(), r = Ti(), n = ht(), o = Aa(), i = xt(), s =
|
|
28115
|
+
const t = ja(), r = Ti(), n = ht(), o = Aa(), i = xt(), s = On(), l = Lr(), [u] = c1(
|
|
28115
28116
|
n,
|
|
28116
28117
|
{
|
|
28117
28118
|
id: l == null ? void 0 : l.id
|
|
@@ -29336,7 +29337,7 @@ const fee = /* @__PURE__ */ a((e) => {
|
|
|
29336
29337
|
loginBackgroundImage: t,
|
|
29337
29338
|
nameSource: r = "username",
|
|
29338
29339
|
passwordSource: n = "password"
|
|
29339
|
-
} = e, [o, i] = De(!1), s = xt(), l = s("ra.auth.sign_in"), u =
|
|
29340
|
+
} = e, [o, i] = De(!1), s = xt(), l = s("ra.auth.sign_in"), u = On(), d = EP(), p = Ti();
|
|
29340
29341
|
return /* @__PURE__ */ y(fl, { onSubmit: /* @__PURE__ */ a((m) => {
|
|
29341
29342
|
i(!0), d(m, p.state ? p.state.nextPathname : "/").catch(
|
|
29342
29343
|
(g) => {
|
|
@@ -30571,7 +30572,7 @@ const hee = /* @__PURE__ */ a((e) => {
|
|
|
30571
30572
|
...d
|
|
30572
30573
|
} = e, p = Ti(), f = UP(""), h = ht(e), [m, g] = De(0), {
|
|
30573
30574
|
fichaProps: { etrs: b }
|
|
30574
|
-
} = Te(Ot), v =
|
|
30575
|
+
} = Te(Ot), v = xn({ ...e, etrs: b }), { estado: O } = Te(Ot), k = /* @__PURE__ */ a((C, S) => {
|
|
30575
30576
|
i || (g(S), u && u(
|
|
30576
30577
|
v,
|
|
30577
30578
|
O,
|
|
@@ -30609,7 +30610,7 @@ const hee = /* @__PURE__ */ a((e) => {
|
|
|
30609
30610
|
// and the match would fail.
|
|
30610
30611
|
Z3(p.pathname)
|
|
30611
30612
|
) : m !== S;
|
|
30612
|
-
return
|
|
30613
|
+
return Rn(C) ? x.cloneElement(C, {
|
|
30613
30614
|
intent: "content",
|
|
30614
30615
|
resource: h,
|
|
30615
30616
|
hidden: P,
|
|
@@ -30776,7 +30777,7 @@ const a4 = /* @__PURE__ */ a(({
|
|
|
30776
30777
|
incluyeAcciones: o = !1,
|
|
30777
30778
|
saveButtonProps: i,
|
|
30778
30779
|
...s
|
|
30779
|
-
} = e, [l, u] = De(!1), d =
|
|
30780
|
+
} = e, [l, u] = De(!1), d = xn(s), p = On(), { trigger: f } = ir(), { hidden: h } = tC(), m = He(
|
|
30780
30781
|
async (g, b, v) => {
|
|
30781
30782
|
typeof t == "function" ? await f() ? (u(!0), t(d, b, v, g).finally(() => {
|
|
30782
30783
|
u(!1);
|
|
@@ -31114,7 +31115,7 @@ ET = Ug.default = (0, E4.default)(/* @__PURE__ */ (0, k4.jsx)("path", {
|
|
|
31114
31115
|
d: "M3 4V1h2v3h3v2H5v3H3V6H0V4zm3 6V7h3V4h7l1.83 2H21c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V10zm7 9c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5m-3.2-5c0 1.77 1.43 3.2 3.2 3.2s3.2-1.43 3.2-3.2-1.43-3.2-3.2-3.2-3.2 1.43-3.2 3.2"
|
|
31115
31116
|
}), "AddAPhoto");
|
|
31116
31117
|
const X0 = /* @__PURE__ */ a((e) => {
|
|
31117
|
-
const [t, r] = De(!1), [n, o] = De(!1), i =
|
|
31118
|
+
const [t, r] = De(!1), [n, o] = De(!1), i = On(), s = xt(), { field: l, sx: u } = e;
|
|
31118
31119
|
return Ge(() => {
|
|
31119
31120
|
t && (/* @__PURE__ */ a(async () => {
|
|
31120
31121
|
let p = null;
|
|
@@ -31706,7 +31707,7 @@ const H4 = /* @__PURE__ */ a((e) => {
|
|
|
31706
31707
|
root: ["root", r && "container", o && "item", l && "zeroMinWidth", ...d, n !== "row" && `direction-xs-${String(n)}`, s !== "wrap" && `wrap-xs-${String(s)}`, ...p]
|
|
31707
31708
|
};
|
|
31708
31709
|
return ve(f, A4, t);
|
|
31709
|
-
}, "useUtilityClasses$c"),
|
|
31710
|
+
}, "useUtilityClasses$c"), Mn = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
|
|
31710
31711
|
const n = Oe({
|
|
31711
31712
|
props: t,
|
|
31712
31713
|
name: "MuiGrid"
|
|
@@ -31751,7 +31752,7 @@ const H4 = /* @__PURE__ */ a((e) => {
|
|
|
31751
31752
|
}, P))
|
|
31752
31753
|
});
|
|
31753
31754
|
}, "Grid"));
|
|
31754
|
-
process.env.NODE_ENV !== "production" && (
|
|
31755
|
+
process.env.NODE_ENV !== "production" && (Mn.propTypes = {
|
|
31755
31756
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
31756
31757
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
31757
31758
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -31880,8 +31881,8 @@ process.env.NODE_ENV !== "production" && (Pn.propTypes = {
|
|
|
31880
31881
|
zeroMinWidth: c.bool
|
|
31881
31882
|
});
|
|
31882
31883
|
if (process.env.NODE_ENV !== "production") {
|
|
31883
|
-
const e = bS("Grid",
|
|
31884
|
-
|
|
31884
|
+
const e = bS("Grid", Mn);
|
|
31885
|
+
Mn.propTypes = E({}, Mn.propTypes, {
|
|
31885
31886
|
direction: e("container"),
|
|
31886
31887
|
lg: e("item"),
|
|
31887
31888
|
md: e("item"),
|
|
@@ -32456,7 +32457,7 @@ const eO = /* @__PURE__ */ a((e, t) => e.filter((r) => !t.includes(r)), "not"),
|
|
|
32456
32457
|
);
|
|
32457
32458
|
}, "customList");
|
|
32458
32459
|
return /* @__PURE__ */ G(
|
|
32459
|
-
|
|
32460
|
+
Mn,
|
|
32460
32461
|
{
|
|
32461
32462
|
container: !0,
|
|
32462
32463
|
spacing: 4,
|
|
@@ -32467,7 +32468,7 @@ const eO = /* @__PURE__ */ a((e, t) => e.filter((r) => !t.includes(r)), "not"),
|
|
|
32467
32468
|
marginLeft: F.spacing(-4)
|
|
32468
32469
|
}), "sx"),
|
|
32469
32470
|
children: [
|
|
32470
|
-
/* @__PURE__ */ y(
|
|
32471
|
+
/* @__PURE__ */ y(Mn, { item: !0, children: /* @__PURE__ */ y(
|
|
32471
32472
|
s1,
|
|
32472
32473
|
{
|
|
32473
32474
|
label: e.label,
|
|
@@ -32477,8 +32478,8 @@ const eO = /* @__PURE__ */ a((e, t) => e.filter((r) => !t.includes(r)), "not"),
|
|
|
32477
32478
|
children: R(d, !0)
|
|
32478
32479
|
}
|
|
32479
32480
|
) }),
|
|
32480
|
-
/* @__PURE__ */ y(
|
|
32481
|
-
|
|
32481
|
+
/* @__PURE__ */ y(Mn, { item: !0, children: /* @__PURE__ */ G(
|
|
32482
|
+
Mn,
|
|
32482
32483
|
{
|
|
32483
32484
|
container: !0,
|
|
32484
32485
|
direction: "column",
|
|
@@ -32592,7 +32593,7 @@ const eO = /* @__PURE__ */ a((e, t) => e.filter((r) => !t.includes(r)), "not"),
|
|
|
32592
32593
|
]
|
|
32593
32594
|
}
|
|
32594
32595
|
) }),
|
|
32595
|
-
/* @__PURE__ */ y(
|
|
32596
|
+
/* @__PURE__ */ y(Mn, { item: !0, children: R(f, !1, { mt: 2.5 }) })
|
|
32596
32597
|
]
|
|
32597
32598
|
}
|
|
32598
32599
|
);
|
|
@@ -33101,7 +33102,7 @@ const xH = /* @__PURE__ */ a((e) => /* @__PURE__ */ y(
|
|
|
33101
33102
|
} = e, [l] = y1({ resource: "form_224" }), [u, d] = De(!1), p = ir(), { estado: f, fichaProps: h = {} } = Te(Ot), m = Te(za), g = Si(!1), {
|
|
33102
33103
|
hidden: b,
|
|
33103
33104
|
propsContenido: { readOnly: v, sx: O, label: k = "Funcionarios" }
|
|
33104
|
-
} = ar(e), { [n]: T = {}, etrs: C } = h, S =
|
|
33105
|
+
} = ar(e), { [n]: T = {}, etrs: C } = h, S = xn({ ...e, etrs: C, asisEtr: m }), w = T.onChange === void 0 ? i : T.onChange;
|
|
33105
33106
|
Ge(() => {
|
|
33106
33107
|
g.current || (p.setValue(n, IH), g.current = !0);
|
|
33107
33108
|
}, [p, n]);
|
|
@@ -36243,8 +36244,8 @@ const Kn = class Kn {
|
|
|
36243
36244
|
}
|
|
36244
36245
|
};
|
|
36245
36246
|
a(Kn, "StepMap");
|
|
36246
|
-
let
|
|
36247
|
-
|
|
36247
|
+
let Ln = Kn;
|
|
36248
|
+
Ln.empty = new Ln([]);
|
|
36248
36249
|
const Wi = class Wi {
|
|
36249
36250
|
/**
|
|
36250
36251
|
Create a new mapping with the given position maps.
|
|
@@ -36361,7 +36362,7 @@ const qp = /* @__PURE__ */ Object.create(null), gy = class gy {
|
|
|
36361
36362
|
and the new document.
|
|
36362
36363
|
*/
|
|
36363
36364
|
getMap() {
|
|
36364
|
-
return
|
|
36365
|
+
return Ln.empty;
|
|
36365
36366
|
}
|
|
36366
36367
|
/**
|
|
36367
36368
|
Try to merge this step with another one, to be applied directly
|
|
@@ -36607,7 +36608,7 @@ const Ps = class Ps extends Pt {
|
|
|
36607
36608
|
a(Ps, "RemoveNodeMarkStep");
|
|
36608
36609
|
let rl = Ps;
|
|
36609
36610
|
Pt.jsonID("removeNodeMark", rl);
|
|
36610
|
-
const
|
|
36611
|
+
const wn = class wn extends Pt {
|
|
36611
36612
|
/**
|
|
36612
36613
|
The given `slice` should fit the 'gap' between `from` and
|
|
36613
36614
|
`to`—the depths must line up, and the surrounding nodes must be
|
|
@@ -36624,24 +36625,24 @@ const kn = class kn extends Pt {
|
|
|
36624
36625
|
return this.structure && Zf(t, this.from, this.to) ? zt.fail("Structure replace would overwrite content") : zt.fromReplace(t, this.from, this.to, this.slice);
|
|
36625
36626
|
}
|
|
36626
36627
|
getMap() {
|
|
36627
|
-
return new
|
|
36628
|
+
return new Ln([this.from, this.to - this.from, this.slice.size]);
|
|
36628
36629
|
}
|
|
36629
36630
|
invert(t) {
|
|
36630
|
-
return new
|
|
36631
|
+
return new wn(this.from, this.from + this.slice.size, t.slice(this.from, this.to));
|
|
36631
36632
|
}
|
|
36632
36633
|
map(t) {
|
|
36633
36634
|
let r = t.mapResult(this.from, 1), n = t.mapResult(this.to, -1);
|
|
36634
|
-
return r.deletedAcross && n.deletedAcross ? null : new
|
|
36635
|
+
return r.deletedAcross && n.deletedAcross ? null : new wn(r.pos, Math.max(r.pos, n.pos), this.slice);
|
|
36635
36636
|
}
|
|
36636
36637
|
merge(t) {
|
|
36637
|
-
if (!(t instanceof
|
|
36638
|
+
if (!(t instanceof wn) || t.structure || this.structure)
|
|
36638
36639
|
return null;
|
|
36639
36640
|
if (this.from + this.slice.size == t.from && !this.slice.openEnd && !t.slice.openStart) {
|
|
36640
36641
|
let r = this.slice.size + t.slice.size == 0 ? fe.empty : new fe(this.slice.content.append(t.slice.content), this.slice.openStart, t.slice.openEnd);
|
|
36641
|
-
return new
|
|
36642
|
+
return new wn(this.from, this.to + (t.to - t.from), r, this.structure);
|
|
36642
36643
|
} else if (t.to == this.from && !this.slice.openStart && !t.slice.openEnd) {
|
|
36643
36644
|
let r = this.slice.size + t.slice.size == 0 ? fe.empty : new fe(t.slice.content.append(this.slice.content), t.slice.openStart, this.slice.openEnd);
|
|
36644
|
-
return new
|
|
36645
|
+
return new wn(t.from, this.to, r, this.structure);
|
|
36645
36646
|
} else
|
|
36646
36647
|
return null;
|
|
36647
36648
|
}
|
|
@@ -36655,11 +36656,11 @@ const kn = class kn extends Pt {
|
|
|
36655
36656
|
static fromJSON(t, r) {
|
|
36656
36657
|
if (typeof r.from != "number" || typeof r.to != "number")
|
|
36657
36658
|
throw new RangeError("Invalid input for ReplaceStep.fromJSON");
|
|
36658
|
-
return new
|
|
36659
|
+
return new wn(r.from, r.to, fe.fromJSON(t, r.slice), !!r.structure);
|
|
36659
36660
|
}
|
|
36660
36661
|
};
|
|
36661
|
-
a(
|
|
36662
|
-
let hr =
|
|
36662
|
+
a(wn, "ReplaceStep");
|
|
36663
|
+
let hr = wn;
|
|
36663
36664
|
Pt.jsonID("replace", hr);
|
|
36664
36665
|
const Ui = class Ui extends Pt {
|
|
36665
36666
|
/**
|
|
@@ -36681,7 +36682,7 @@ const Ui = class Ui extends Pt {
|
|
|
36681
36682
|
return n ? zt.fromReplace(t, this.from, this.to, n) : zt.fail("Content does not fit in gap");
|
|
36682
36683
|
}
|
|
36683
36684
|
getMap() {
|
|
36684
|
-
return new
|
|
36685
|
+
return new Ln([
|
|
36685
36686
|
this.from,
|
|
36686
36687
|
this.gapFrom - this.from,
|
|
36687
36688
|
this.insert,
|
|
@@ -37367,7 +37368,7 @@ const qi = class qi extends Pt {
|
|
|
37367
37368
|
return zt.fromReplace(t, this.pos, this.pos + 1, new fe(se.from(o), 0, r.isLeaf ? 0 : 1));
|
|
37368
37369
|
}
|
|
37369
37370
|
getMap() {
|
|
37370
|
-
return
|
|
37371
|
+
return Ln.empty;
|
|
37371
37372
|
}
|
|
37372
37373
|
invert(t) {
|
|
37373
37374
|
return new qi(this.pos, this.attr, t.nodeAt(this.pos).attrs[this.attr]);
|
|
@@ -37404,7 +37405,7 @@ const Ms = class Ms extends Pt {
|
|
|
37404
37405
|
return zt.ok(n);
|
|
37405
37406
|
}
|
|
37406
37407
|
getMap() {
|
|
37407
|
-
return
|
|
37408
|
+
return Ln.empty;
|
|
37408
37409
|
}
|
|
37409
37410
|
invert(t) {
|
|
37410
37411
|
return new Ms(this.attr, t.attrs[this.attr]);
|
|
@@ -37766,7 +37767,7 @@ const Yp = /* @__PURE__ */ Object.create(null), vy = class vy {
|
|
|
37766
37767
|
negative, it will search backwards first.
|
|
37767
37768
|
*/
|
|
37768
37769
|
static near(t, r = 1) {
|
|
37769
|
-
return this.findFrom(t, r) || this.findFrom(t, -r) || new
|
|
37770
|
+
return this.findFrom(t, r) || this.findFrom(t, -r) || new Fn(t.node(0));
|
|
37770
37771
|
}
|
|
37771
37772
|
/**
|
|
37772
37773
|
Find the cursor or leaf node selection closest to the start of
|
|
@@ -37775,14 +37776,14 @@ const Yp = /* @__PURE__ */ Object.create(null), vy = class vy {
|
|
|
37775
37776
|
exists.
|
|
37776
37777
|
*/
|
|
37777
37778
|
static atStart(t) {
|
|
37778
|
-
return _i(t, t, 0, 0, 1) || new
|
|
37779
|
+
return _i(t, t, 0, 0, 1) || new Fn(t);
|
|
37779
37780
|
}
|
|
37780
37781
|
/**
|
|
37781
37782
|
Find the cursor or leaf node selection closest to the end of the
|
|
37782
37783
|
given document.
|
|
37783
37784
|
*/
|
|
37784
37785
|
static atEnd(t) {
|
|
37785
|
-
return _i(t, t, t.content.size, t.childCount, -1) || new
|
|
37786
|
+
return _i(t, t, t.content.size, t.childCount, -1) || new Fn(t);
|
|
37786
37787
|
}
|
|
37787
37788
|
/**
|
|
37788
37789
|
Deserialize the JSON representation of a selection. Must be
|
|
@@ -38025,14 +38026,14 @@ const Gi = class Gi extends Pe {
|
|
|
38025
38026
|
}
|
|
38026
38027
|
};
|
|
38027
38028
|
a(Gi, "AllSelection");
|
|
38028
|
-
let
|
|
38029
|
-
Pe.jsonID("all",
|
|
38029
|
+
let Fn = Gi;
|
|
38030
|
+
Pe.jsonID("all", Fn);
|
|
38030
38031
|
const TW = {
|
|
38031
38032
|
map() {
|
|
38032
38033
|
return this;
|
|
38033
38034
|
},
|
|
38034
38035
|
resolve(e) {
|
|
38035
|
-
return new
|
|
38036
|
+
return new Fn(e);
|
|
38036
38037
|
}
|
|
38037
38038
|
};
|
|
38038
38039
|
function _i(e, t, r, n, o, i = !1) {
|
|
@@ -38502,7 +38503,7 @@ const Dt = /* @__PURE__ */ a(function(e) {
|
|
|
38502
38503
|
return t && t.nodeType == 11 ? t.host : t;
|
|
38503
38504
|
}, "parentNode");
|
|
38504
38505
|
let ih = null;
|
|
38505
|
-
const
|
|
38506
|
+
const kn = /* @__PURE__ */ a(function(e, t, r) {
|
|
38506
38507
|
let n = ih || (ih = document.createRange());
|
|
38507
38508
|
return n.setEnd(e, r ?? e.nodeValue.length), n.setStart(e, t || 0), n;
|
|
38508
38509
|
}, "textRange"), kW = /* @__PURE__ */ a(function() {
|
|
@@ -38628,10 +38629,10 @@ function NW(e) {
|
|
|
38628
38629
|
};
|
|
38629
38630
|
}
|
|
38630
38631
|
a(NW, "windowRect");
|
|
38631
|
-
function
|
|
38632
|
+
function Tn(e, t) {
|
|
38632
38633
|
return typeof e == "number" ? e : e[t];
|
|
38633
38634
|
}
|
|
38634
|
-
a(
|
|
38635
|
+
a(Tn, "getSide");
|
|
38635
38636
|
function LW(e) {
|
|
38636
38637
|
let t = e.getBoundingClientRect(), r = t.width / e.offsetWidth || 1, n = t.height / e.offsetHeight || 1;
|
|
38637
38638
|
return {
|
|
@@ -38648,7 +38649,7 @@ function xO(e, t, r) {
|
|
|
38648
38649
|
if (s.nodeType != 1)
|
|
38649
38650
|
continue;
|
|
38650
38651
|
let l = s, u = l == i.body, d = u ? NW(i) : LW(l), p = 0, f = 0;
|
|
38651
|
-
if (t.top < d.top +
|
|
38652
|
+
if (t.top < d.top + Tn(n, "top") ? f = -(d.top - t.top + Tn(o, "top")) : t.bottom > d.bottom - Tn(n, "bottom") && (f = t.bottom - t.top > d.bottom - d.top ? t.top + Tn(o, "top") - d.top : t.bottom - d.bottom + Tn(o, "bottom")), t.left < d.left + Tn(n, "left") ? p = -(d.left - t.left + Tn(o, "left")) : t.right > d.right - Tn(n, "right") && (p = t.right - d.right + Tn(o, "right")), p || f)
|
|
38652
38653
|
if (u)
|
|
38653
38654
|
i.defaultView.scrollBy(p, f);
|
|
38654
38655
|
else {
|
|
@@ -38717,7 +38718,7 @@ function uE(e, t) {
|
|
|
38717
38718
|
if (p.nodeType == 1)
|
|
38718
38719
|
h = p.getClientRects();
|
|
38719
38720
|
else if (p.nodeType == 3)
|
|
38720
|
-
h =
|
|
38721
|
+
h = kn(p).getClientRects();
|
|
38721
38722
|
else
|
|
38722
38723
|
continue;
|
|
38723
38724
|
for (let m = 0; m < h.length; m++) {
|
|
@@ -38847,11 +38848,11 @@ function pE(e, t, r) {
|
|
|
38847
38848
|
let { node: n, offset: o, atom: i } = e.docView.domFromPos(t, r < 0 ? -1 : 1), s = Il || Ur;
|
|
38848
38849
|
if (n.nodeType == 3)
|
|
38849
38850
|
if (s && (UW.test(n.nodeValue) || (r < 0 ? !o : o == n.nodeValue.length))) {
|
|
38850
|
-
let u = Wn(
|
|
38851
|
+
let u = Wn(kn(n, o, o), r);
|
|
38851
38852
|
if (Ur && o && /\s/.test(n.nodeValue[o - 1]) && o < n.nodeValue.length) {
|
|
38852
|
-
let d = Wn(
|
|
38853
|
+
let d = Wn(kn(n, o - 1, o - 1), -1);
|
|
38853
38854
|
if (d.top == u.top) {
|
|
38854
|
-
let p = Wn(
|
|
38855
|
+
let p = Wn(kn(n, o, o + 1), -1);
|
|
38855
38856
|
if (p.top != u.top)
|
|
38856
38857
|
return rs(p, p.left < d.left);
|
|
38857
38858
|
}
|
|
@@ -38859,7 +38860,7 @@ function pE(e, t, r) {
|
|
|
38859
38860
|
return u;
|
|
38860
38861
|
} else {
|
|
38861
38862
|
let u = o, d = o, p = r < 0 ? 1 : -1;
|
|
38862
|
-
return r < 0 && !o ? (d++, p = -1) : r >= 0 && o == n.nodeValue.length ? (u--, p = 1) : r < 0 ? u-- : d++, rs(Wn(
|
|
38863
|
+
return r < 0 && !o ? (d++, p = -1) : r >= 0 && o == n.nodeValue.length ? (u--, p = 1) : r < 0 ? u-- : d++, rs(Wn(kn(n, u, d), p), p < 0);
|
|
38863
38864
|
}
|
|
38864
38865
|
if (!e.state.doc.resolve(t - (i || 0)).parent.inlineContent) {
|
|
38865
38866
|
if (i == null && o && (r < 0 || o == kr(n))) {
|
|
@@ -38875,7 +38876,7 @@ function pE(e, t, r) {
|
|
|
38875
38876
|
return Qp(n.getBoundingClientRect(), r >= 0);
|
|
38876
38877
|
}
|
|
38877
38878
|
if (i == null && o && (r < 0 || o == kr(n))) {
|
|
38878
|
-
let u = n.childNodes[o - 1], d = u.nodeType == 3 ?
|
|
38879
|
+
let u = n.childNodes[o - 1], d = u.nodeType == 3 ? kn(u, kr(u) - (s ? 0 : 1)) : u.nodeType == 1 && (u.nodeName != "BR" || !u.nextSibling) ? u : null;
|
|
38879
38880
|
if (d)
|
|
38880
38881
|
return rs(Wn(d, 1), !1);
|
|
38881
38882
|
}
|
|
@@ -38883,11 +38884,11 @@ function pE(e, t, r) {
|
|
|
38883
38884
|
let u = n.childNodes[o];
|
|
38884
38885
|
for (; u.pmViewDesc && u.pmViewDesc.ignoreForCoords; )
|
|
38885
38886
|
u = u.nextSibling;
|
|
38886
|
-
let d = u ? u.nodeType == 3 ?
|
|
38887
|
+
let d = u ? u.nodeType == 3 ? kn(u, 0, s ? 0 : 1) : u.nodeType == 1 ? u : null : null;
|
|
38887
38888
|
if (d)
|
|
38888
38889
|
return rs(Wn(d, -1), !0);
|
|
38889
38890
|
}
|
|
38890
|
-
return rs(Wn(n.nodeType == 3 ?
|
|
38891
|
+
return rs(Wn(n.nodeType == 3 ? kn(n) : n, -r), r >= 0);
|
|
38891
38892
|
}
|
|
38892
38893
|
a(pE, "coordsAtPos");
|
|
38893
38894
|
function rs(e, t) {
|
|
@@ -38934,7 +38935,7 @@ function qW(e, t, r) {
|
|
|
38934
38935
|
if (l.nodeType == 1)
|
|
38935
38936
|
u = l.getClientRects();
|
|
38936
38937
|
else if (l.nodeType == 3)
|
|
38937
|
-
u =
|
|
38938
|
+
u = kn(l, 0, l.nodeValue.length).getClientRects();
|
|
38938
38939
|
else
|
|
38939
38940
|
continue;
|
|
38940
38941
|
for (let d = 0; d < u.length; d++) {
|
|
@@ -40046,7 +40047,7 @@ function bE(e) {
|
|
|
40046
40047
|
return e.editable ? e.hasFocus() : vE(e) && document.activeElement && document.activeElement.contains(e.dom);
|
|
40047
40048
|
}
|
|
40048
40049
|
a(bE, "editorOwnsSelection");
|
|
40049
|
-
function
|
|
40050
|
+
function $n(e, t = !1) {
|
|
40050
40051
|
let r = e.state.selection;
|
|
40051
40052
|
if (yE(e, r), !!bE(e)) {
|
|
40052
40053
|
if (!t && e.input.mouseDown && e.input.mouseDown.allowDefault && Ht) {
|
|
@@ -40065,7 +40066,7 @@ function Fn(e, t = !1) {
|
|
|
40065
40066
|
e.domObserver.setCurSelection(), e.domObserver.connectSelection();
|
|
40066
40067
|
}
|
|
40067
40068
|
}
|
|
40068
|
-
a(
|
|
40069
|
+
a($n, "selectionToDOM");
|
|
40069
40070
|
const MO = Yt || Ht && sE < 63;
|
|
40070
40071
|
function RO(e, t) {
|
|
40071
40072
|
let { node: r, offset: n } = e.docView.domFromPos(t, 0), o = n < r.childNodes.length ? r.childNodes[n] : null, i = n ? r.childNodes[n - 1] : null;
|
|
@@ -40311,7 +40312,7 @@ function mh(e, t, r) {
|
|
|
40311
40312
|
e.domObserver.setCurSelection();
|
|
40312
40313
|
let { state: o } = e;
|
|
40313
40314
|
setTimeout(() => {
|
|
40314
|
-
e.state == o &&
|
|
40315
|
+
e.state == o && $n(e);
|
|
40315
40316
|
}, 50);
|
|
40316
40317
|
}
|
|
40317
40318
|
a(mh, "setSelFocus");
|
|
@@ -40344,7 +40345,7 @@ function LO(e, t, r) {
|
|
|
40344
40345
|
return Un(e, s);
|
|
40345
40346
|
}
|
|
40346
40347
|
if (!o.parent.inlineContent) {
|
|
40347
|
-
let s = t < 0 ? o : i, l = n instanceof
|
|
40348
|
+
let s = t < 0 ? o : i, l = n instanceof Fn ? Pe.near(s, t) : Pe.findFrom(s, t);
|
|
40348
40349
|
return l ? Un(e, l) : !1;
|
|
40349
40350
|
}
|
|
40350
40351
|
return !1;
|
|
@@ -40813,7 +40814,7 @@ const $y = class $y {
|
|
|
40813
40814
|
}, 20), this.view.domObserver.start()), t.root.addEventListener("mouseup", this.up = this.up.bind(this)), t.root.addEventListener("mousemove", this.move = this.move.bind(this)), no(t, "pointer");
|
|
40814
40815
|
}
|
|
40815
40816
|
done() {
|
|
40816
|
-
this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() =>
|
|
40817
|
+
this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => $n(this.view)), this.view.input.mouseDown = null;
|
|
40817
40818
|
}
|
|
40818
40819
|
up(t) {
|
|
40819
40820
|
if (this.done(), !this.view.dom.contains(t.target))
|
|
@@ -41051,7 +41052,7 @@ Qt.drop = (e, t) => {
|
|
|
41051
41052
|
};
|
|
41052
41053
|
Jt.focus = (e) => {
|
|
41053
41054
|
e.input.lastFocus = Date.now(), e.focused || (e.domObserver.stop(), e.dom.classList.add("ProseMirror-focused"), e.domObserver.start(), e.focused = !0, setTimeout(() => {
|
|
41054
|
-
e.docView && e.hasFocus() && !e.domObserver.currentSelection.eq(e.domSelectionRange()) &&
|
|
41055
|
+
e.docView && e.hasFocus() && !e.domObserver.currentSelection.eq(e.domSelectionRange()) && $n(e);
|
|
41055
41056
|
}, 20));
|
|
41056
41057
|
};
|
|
41057
41058
|
Jt.blur = (e, t) => {
|
|
@@ -41090,7 +41091,7 @@ const rd = class rd {
|
|
|
41090
41091
|
}
|
|
41091
41092
|
map(t, r, n, o) {
|
|
41092
41093
|
let { pos: i, deleted: s } = t.mapResult(r.from + o, this.side < 0 ? -1 : 1);
|
|
41093
|
-
return s ? null : new
|
|
41094
|
+
return s ? null : new Dn(i - n, i - n, this);
|
|
41094
41095
|
}
|
|
41095
41096
|
valid() {
|
|
41096
41097
|
return !0;
|
|
@@ -41110,7 +41111,7 @@ const As = class As {
|
|
|
41110
41111
|
}
|
|
41111
41112
|
map(t, r, n, o) {
|
|
41112
41113
|
let i = t.map(r.from + o, this.spec.inclusiveStart ? -1 : 1) - n, s = t.map(r.to + o, this.spec.inclusiveEnd ? 1 : -1) - n;
|
|
41113
|
-
return i >= s ? null : new
|
|
41114
|
+
return i >= s ? null : new Dn(i, s, this);
|
|
41114
41115
|
}
|
|
41115
41116
|
valid(t, r) {
|
|
41116
41117
|
return r.from < r.to;
|
|
@@ -41135,7 +41136,7 @@ const nd = class nd {
|
|
|
41135
41136
|
if (i.deleted)
|
|
41136
41137
|
return null;
|
|
41137
41138
|
let s = t.mapResult(r.to + o, -1);
|
|
41138
|
-
return s.deleted || s.pos <= i.pos ? null : new
|
|
41139
|
+
return s.deleted || s.pos <= i.pos ? null : new Dn(i.pos - n, s.pos - n, this);
|
|
41139
41140
|
}
|
|
41140
41141
|
valid(t, r) {
|
|
41141
41142
|
let { index: n, offset: o } = t.content.findIndex(r.from), i;
|
|
@@ -41221,7 +41222,7 @@ const _o = class _o {
|
|
|
41221
41222
|
}
|
|
41222
41223
|
};
|
|
41223
41224
|
a(_o, "Decoration");
|
|
41224
|
-
let
|
|
41225
|
+
let Dn = _o;
|
|
41225
41226
|
const ji = [], ei = {}, tn = class tn {
|
|
41226
41227
|
/**
|
|
41227
41228
|
@internal
|
|
@@ -41513,7 +41514,7 @@ function IE(e, t) {
|
|
|
41513
41514
|
let r = [];
|
|
41514
41515
|
for (let n = 0; n < e.length; n++) {
|
|
41515
41516
|
let o = e[n];
|
|
41516
|
-
r.push(new
|
|
41517
|
+
r.push(new Dn(o.from + t, o.to + t, o.type));
|
|
41517
41518
|
}
|
|
41518
41519
|
return r;
|
|
41519
41520
|
}
|
|
@@ -41670,7 +41671,7 @@ const Ly = class Ly {
|
|
|
41670
41671
|
onSelectionChange() {
|
|
41671
41672
|
if ($O(this.view)) {
|
|
41672
41673
|
if (this.suppressingSelectionUpdates)
|
|
41673
|
-
return
|
|
41674
|
+
return $n(this.view);
|
|
41674
41675
|
if (tr && oo <= 11 && !this.view.state.selection.empty) {
|
|
41675
41676
|
let t = this.view.domSelectionRange();
|
|
41676
41677
|
if (t.focusNode && bi(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset))
|
|
@@ -41732,7 +41733,7 @@ const Ly = class Ly {
|
|
|
41732
41733
|
}
|
|
41733
41734
|
}
|
|
41734
41735
|
let d = null;
|
|
41735
|
-
i < 0 && o && t.input.lastFocus > Date.now() - 200 && Math.max(t.input.lastTouch, t.input.lastClick.time) < Date.now() - 300 && Yd(n) && (d = ab(t)) && d.eq(Pe.near(t.state.doc.resolve(0), 1)) ? (t.input.lastFocus = 0,
|
|
41736
|
+
i < 0 && o && t.input.lastFocus > Date.now() - 200 && Math.max(t.input.lastTouch, t.input.lastClick.time) < Date.now() - 300 && Yd(n) && (d = ab(t)) && d.eq(Pe.near(t.state.doc.resolve(0), 1)) ? (t.input.lastFocus = 0, $n(t), this.currentSelection.set(n), t.scrollToSelection()) : (i > -1 || o) && (i > -1 && (t.docView.markDirty(i, s), z6(t)), this.handleDOMChange(i, s, l, u), t.docView && t.docView.dirty ? t.updateState(t.state) : this.currentSelection.eq(n) || $n(t), this.currentSelection.set(n));
|
|
41736
41737
|
}
|
|
41737
41738
|
registerMutation(t, r) {
|
|
41738
41739
|
if (r.indexOf(t.target) > -1)
|
|
@@ -41902,7 +41903,7 @@ function q6(e, t, r, n, o) {
|
|
|
41902
41903
|
let C = g.start, S = g.endA, w, P, A;
|
|
41903
41904
|
if (k) {
|
|
41904
41905
|
if (b.pos == v.pos)
|
|
41905
|
-
tr && oo <= 11 && b.parentOffset == 0 && (e.domObserver.suppressSelectionUpdates(), setTimeout(() =>
|
|
41906
|
+
tr && oo <= 11 && b.parentOffset == 0 && (e.domObserver.suppressSelectionUpdates(), setTimeout(() => $n(e), 20)), w = e.state.tr.delete(C, S), P = p.resolve(g.start).marksAcross(p.resolve(g.endA));
|
|
41906
41907
|
else if (
|
|
41907
41908
|
// Adding or removing a mark
|
|
41908
41909
|
g.endA == g.endB && (A = G6(b.parent.content.cut(b.parentOffset, v.parentOffset), O.parent.content.cut(O.parentOffset, g.endA - O.start())))
|
|
@@ -42083,7 +42084,7 @@ const Dy = class Dy {
|
|
|
42083
42084
|
let g = Ht ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
42084
42085
|
this.composing && (this.input.compositionNode = A6(this)), (i || !this.docView.update(t.doc, d, u, this)) && (this.docView.updateOuterDeco(d), this.docView.destroy(), this.docView = wO(t.doc, d, u, this.dom, this)), g && !this.trackWrites && (m = !0);
|
|
42085
42086
|
}
|
|
42086
|
-
m || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && o6(this)) ?
|
|
42087
|
+
m || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && o6(this)) ? $n(this, m) : (yE(this, t.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
42087
42088
|
}
|
|
42088
42089
|
this.updatePluginViews(o), !((n = this.dragging) === null || n === void 0) && n.node && !o.doc.eq(t.doc) && this.updateDraggedNode(this.dragging, o), p == "reset" ? this.dom.scrollTop = 0 : p == "to selection" ? this.scrollToSelection() : h && _W(h);
|
|
42089
42090
|
}
|
|
@@ -42170,7 +42171,7 @@ const Dy = class Dy {
|
|
|
42170
42171
|
Focus the editor.
|
|
42171
42172
|
*/
|
|
42172
42173
|
focus() {
|
|
42173
|
-
this.domObserver.stop(), this.editable && jW(this.dom),
|
|
42174
|
+
this.domObserver.stop(), this.editable && jW(this.dom), $n(this), this.domObserver.start();
|
|
42174
42175
|
}
|
|
42175
42176
|
/**
|
|
42176
42177
|
Get the document root in which the editor exists. This will
|
|
@@ -42341,13 +42342,13 @@ function GO(e) {
|
|
|
42341
42342
|
if (typeof r == "function" && (r = r(e.state)), r)
|
|
42342
42343
|
for (let n in r)
|
|
42343
42344
|
n == "class" ? t.class += " " + r[n] : n == "style" ? t.style = (t.style ? t.style + ";" : "") + r[n] : !t[n] && n != "contenteditable" && n != "nodeName" && (t[n] = String(r[n]));
|
|
42344
|
-
}), t.translate || (t.translate = "no"), [
|
|
42345
|
+
}), t.translate || (t.translate = "no"), [Dn.node(0, e.state.doc.content.size, t)];
|
|
42345
42346
|
}
|
|
42346
42347
|
a(GO, "computeDocDeco");
|
|
42347
42348
|
function KO(e) {
|
|
42348
42349
|
if (e.markCursor) {
|
|
42349
42350
|
let t = document.createElement("img");
|
|
42350
|
-
t.className = "ProseMirror-separator", t.setAttribute("mark-placeholder", "true"), t.setAttribute("alt", ""), e.cursorWrapper = { dom: t, deco:
|
|
42351
|
+
t.className = "ProseMirror-separator", t.setAttribute("mark-placeholder", "true"), t.setAttribute("alt", ""), e.cursorWrapper = { dom: t, deco: Dn.widget(e.state.selection.from, t, { raw: !0, marks: e.markCursor }) };
|
|
42351
42352
|
} else
|
|
42352
42353
|
e.cursorWrapper = null;
|
|
42353
42354
|
}
|
|
@@ -42746,7 +42747,7 @@ const gU = /* @__PURE__ */ a((e, t) => {
|
|
|
42746
42747
|
return !0;
|
|
42747
42748
|
}, "exitCode$1"), bU = /* @__PURE__ */ a((e, t) => {
|
|
42748
42749
|
let r = e.selection, { $from: n, $to: o } = r;
|
|
42749
|
-
if (r instanceof
|
|
42750
|
+
if (r instanceof Fn || n.parent.inlineContent || o.parent.inlineContent)
|
|
42750
42751
|
return !1;
|
|
42751
42752
|
let i = BE(o.parent.contentMatchAt(o.indexAfter()));
|
|
42752
42753
|
if (!i || !i.isTextblock)
|
|
@@ -46013,10 +46014,10 @@ Xt.prototype = {
|
|
|
46013
46014
|
return o.j[e] = s, s;
|
|
46014
46015
|
}
|
|
46015
46016
|
};
|
|
46016
|
-
const Ae = /* @__PURE__ */ a((e, t, r, n, o) => e.ta(t, r, n, o), "ta"), vr = /* @__PURE__ */ a((e, t, r, n, o) => e.tr(t, r, n, o), "tr"), ax = /* @__PURE__ */ a((e, t, r, n, o) => e.ts(t, r, n, o), "ts"), ue = /* @__PURE__ */ a((e, t, r, n, o) => e.tt(t, r, n, o), "tt"),
|
|
46017
|
+
const Ae = /* @__PURE__ */ a((e, t, r, n, o) => e.ta(t, r, n, o), "ta"), vr = /* @__PURE__ */ a((e, t, r, n, o) => e.tr(t, r, n, o), "tr"), ax = /* @__PURE__ */ a((e, t, r, n, o) => e.ts(t, r, n, o), "ts"), ue = /* @__PURE__ */ a((e, t, r, n, o) => e.tt(t, r, n, o), "tt"), En = "WORD", _h = "UWORD", cl = "LOCALHOST", jh = "TLD", zh = "UTLD", xc = "SCHEME", zi = "SLASH_SCHEME", xb = "NUM", tk = "WS", Sb = "NL", xs = "OPENBRACE", Ss = "CLOSEBRACE", hu = "OPENBRACKET", mu = "CLOSEBRACKET", gu = "OPENPAREN", bu = "CLOSEPAREN", yu = "OPENANGLEBRACKET", vu = "CLOSEANGLEBRACKET", Ou = "FULLWIDTHLEFTPAREN", xu = "FULLWIDTHRIGHTPAREN", Su = "LEFTCORNERBRACKET", Cu = "RIGHTCORNERBRACKET", Tu = "LEFTWHITECORNERBRACKET", Eu = "RIGHTWHITECORNERBRACKET", ku = "FULLWIDTHLESSTHAN", wu = "FULLWIDTHGREATERTHAN", Pu = "AMPERSAND", Mu = "APOSTROPHE", Ru = "ASTERISK", qn = "AT", Au = "BACKSLASH", Fu = "BACKTICK", $u = "CARET", Xn = "COLON", Cb = "COMMA", Iu = "DOLLAR", Jr = "DOT", Nu = "EQUALS", Tb = "EXCLAMATION", Qr = "HYPHEN", Lu = "PERCENT", Du = "PIPE", _u = "PLUS", ju = "POUND", zu = "QUERY", Eb = "QUOTE", kb = "SEMI", Xr = "SLASH", Cs = "TILDE", Bu = "UNDERSCORE", rk = "EMOJI", Vu = "SYM";
|
|
46017
46018
|
var nk = /* @__PURE__ */ Object.freeze({
|
|
46018
46019
|
__proto__: null,
|
|
46019
|
-
WORD:
|
|
46020
|
+
WORD: En,
|
|
46020
46021
|
UWORD: _h,
|
|
46021
46022
|
LOCALHOST: cl,
|
|
46022
46023
|
TLD: jh,
|
|
@@ -46082,7 +46083,7 @@ function Lq(e) {
|
|
|
46082
46083
|
[Ih]: !0
|
|
46083
46084
|
});
|
|
46084
46085
|
vr(n, cf, n);
|
|
46085
|
-
const o = vr(r, $i,
|
|
46086
|
+
const o = vr(r, $i, En, {
|
|
46086
46087
|
[Nh]: !0
|
|
46087
46088
|
});
|
|
46088
46089
|
vr(o, $i, o);
|
|
@@ -46104,7 +46105,7 @@ function Lq(e) {
|
|
|
46104
46105
|
vr(u, lf, l);
|
|
46105
46106
|
const d = [[$i, o]], p = [[$i, null], [sf, i]];
|
|
46106
46107
|
for (let f = 0; f < tc.length; f++)
|
|
46107
|
-
Hn(r, tc[f], jh,
|
|
46108
|
+
Hn(r, tc[f], jh, En, d);
|
|
46108
46109
|
for (let f = 0; f < rc.length; f++)
|
|
46109
46110
|
Hn(r, rc[f], zh, _h, p);
|
|
46110
46111
|
Uo(jh, {
|
|
@@ -46113,7 +46114,7 @@ function Lq(e) {
|
|
|
46113
46114
|
}, t), Uo(zh, {
|
|
46114
46115
|
utld: !0,
|
|
46115
46116
|
alpha: !0
|
|
46116
|
-
}, t), Hn(r, "file", xc,
|
|
46117
|
+
}, t), Hn(r, "file", xc, En, d), Hn(r, "mailto", xc, En, d), Hn(r, "http", zi, En, d), Hn(r, "https", zi, En, d), Hn(r, "ftp", zi, En, d), Hn(r, "ftps", zi, En, d), Uo(xc, {
|
|
46117
46118
|
scheme: !0,
|
|
46118
46119
|
ascii: !0
|
|
46119
46120
|
}, t), Uo(zi, {
|
|
@@ -48101,7 +48102,7 @@ function H7(e) {
|
|
|
48101
48102
|
if (!(e.selection instanceof qt))
|
|
48102
48103
|
return null;
|
|
48103
48104
|
let t = document.createElement("div");
|
|
48104
|
-
return t.className = "ProseMirror-gapcursor", dr.create(e.doc, [
|
|
48105
|
+
return t.className = "ProseMirror-gapcursor", dr.create(e.doc, [Dn.widget(e.selection.head, t, { key: "gapcursor" })]);
|
|
48105
48106
|
}
|
|
48106
48107
|
a(H7, "drawGapCursor");
|
|
48107
48108
|
const W7 = Ut.create({
|
|
@@ -50331,7 +50332,7 @@ Lk = _b.default = (0, NJ.default)(/* @__PURE__ */ (0, LJ.jsx)("path", {
|
|
|
50331
50332
|
}), "ArrowDropDown");
|
|
50332
50333
|
var DJ = /* @__PURE__ */ a(function(e) {
|
|
50333
50334
|
var t = e.helperText, r = e.error, n = jr();
|
|
50334
|
-
return r ? x.createElement(JY, { error: r }) : t === !1 ? null :
|
|
50335
|
+
return r ? x.createElement(JY, { error: r }) : t === !1 ? null : Rn(t) ? t : typeof t == "string" ? x.createElement(x.Fragment, null, n(t, { _: t })) : x.createElement("span", { dangerouslySetInnerHTML: _J });
|
|
50335
50336
|
}, "InputHelperText$1"), _J = { __html: "​" }, Jh = function() {
|
|
50336
50337
|
return Jh = Object.assign || function(e) {
|
|
50337
50338
|
for (var t, r = 1, n = arguments.length; r < n; r++) {
|
|
@@ -52201,7 +52202,7 @@ const EQ = /* @__PURE__ */ a((e) => {
|
|
|
52201
52202
|
let ee;
|
|
52202
52203
|
if (T) {
|
|
52203
52204
|
if (!Array.isArray(L))
|
|
52204
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." :
|
|
52205
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : In(2));
|
|
52205
52206
|
ee = L.some((pe) => Bx(pe, he.props.value)), ee && Be && tt.push(he.props.children);
|
|
52206
52207
|
} else
|
|
52207
52208
|
ee = Bx(L, he.props.value), ee && Be && (et = he.props.children);
|
|
@@ -53037,7 +53038,7 @@ var Jk = Gb.default = void 0, QQ = JQ(ke()), XQ = Ee;
|
|
|
53037
53038
|
Jk = Gb.default = (0, QQ.default)(/* @__PURE__ */ (0, XQ.jsx)("path", {
|
|
53038
53039
|
d: "M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"
|
|
53039
53040
|
}), "Code");
|
|
53040
|
-
var Qk = Rt(void 0),
|
|
53041
|
+
var Qk = Rt(void 0), Sn = /* @__PURE__ */ a(function() {
|
|
53041
53042
|
var e = De(!1), t = e[0], r = e[1], n = Te(Qk);
|
|
53042
53043
|
return Ge(function() {
|
|
53043
53044
|
var o = /* @__PURE__ */ a(function() {
|
|
@@ -53056,7 +53057,7 @@ var Qk = Rt(void 0), xn = /* @__PURE__ */ a(function() {
|
|
|
53056
53057
|
return e;
|
|
53057
53058
|
}, Xh.apply(this, arguments);
|
|
53058
53059
|
}, ZQ = /* @__PURE__ */ a(function(e) {
|
|
53059
|
-
var t =
|
|
53060
|
+
var t = Sn(), r = jr(), n = De([]), o = n[0], i = n[1], s = r("ra.tiptap.bold", {
|
|
53060
53061
|
_: "Bold"
|
|
53061
53062
|
}), l = r("ra.tiptap.italic", {
|
|
53062
53063
|
_: "Italic"
|
|
@@ -53155,7 +53156,7 @@ var Zh = function() {
|
|
|
53155
53156
|
return e;
|
|
53156
53157
|
}, Zh.apply(this, arguments);
|
|
53157
53158
|
}, sX = /* @__PURE__ */ a(function(e) {
|
|
53158
|
-
var t =
|
|
53159
|
+
var t = Sn(), r = jr(), n = r("ra.tiptap.list_bulleted", {
|
|
53159
53160
|
_: "Bulleted list"
|
|
53160
53161
|
}), o = r("ra.tiptap.list_numbered", {
|
|
53161
53162
|
_: "Numbered list"
|
|
@@ -53238,7 +53239,7 @@ var em = function() {
|
|
|
53238
53239
|
return e;
|
|
53239
53240
|
}, em.apply(this, arguments);
|
|
53240
53241
|
}, xX = /* @__PURE__ */ a(function(e) {
|
|
53241
|
-
var t =
|
|
53242
|
+
var t = Sn(), r = jr(), 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" });
|
|
53242
53243
|
Ge(function() {
|
|
53243
53244
|
var f = /* @__PURE__ */ a(function() {
|
|
53244
53245
|
i(function(h) {
|
|
@@ -53300,7 +53301,7 @@ ow = ey.default = (0, TX.default)(/* @__PURE__ */ (0, EX.jsx)("path", {
|
|
|
53300
53301
|
d: "M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"
|
|
53301
53302
|
}), "InsertLink");
|
|
53302
53303
|
var kX = /* @__PURE__ */ a(function() {
|
|
53303
|
-
var e =
|
|
53304
|
+
var e = Sn(), t = De(e ? e.state.doc.textBetween(e.state.selection.from, e.state.selection.to) : null), r = t[0], n = t[1];
|
|
53304
53305
|
return Ge(function() {
|
|
53305
53306
|
var o = /* @__PURE__ */ a(function() {
|
|
53306
53307
|
n(e ? e.state.doc.textBetween(e.state.selection.from, e.state.selection.to) : null);
|
|
@@ -53318,7 +53319,7 @@ var kX = /* @__PURE__ */ a(function() {
|
|
|
53318
53319
|
return e;
|
|
53319
53320
|
}, tm.apply(this, arguments);
|
|
53320
53321
|
}, wX = /* @__PURE__ */ a(function(e) {
|
|
53321
|
-
var t =
|
|
53322
|
+
var t = Sn(), r = jr(), n = kX(), o = r("ra.tiptap.link", {
|
|
53322
53323
|
_: "Add a link"
|
|
53323
53324
|
}), i = /* @__PURE__ */ a(function() {
|
|
53324
53325
|
if (t.can().setLink({ href: "" })) {
|
|
@@ -53348,7 +53349,7 @@ var rm = function() {
|
|
|
53348
53349
|
return e;
|
|
53349
53350
|
}, rm.apply(this, arguments);
|
|
53350
53351
|
}, AX = /* @__PURE__ */ a(function(e) {
|
|
53351
|
-
var t =
|
|
53352
|
+
var t = Sn(), r = jr(), n = De(!1), o = n[0], i = n[1], s = r("ra.tiptap.blockquote", {
|
|
53352
53353
|
_: "Blockquote"
|
|
53353
53354
|
});
|
|
53354
53355
|
return Ge(function() {
|
|
@@ -53382,7 +53383,7 @@ var nm = function() {
|
|
|
53382
53383
|
return e;
|
|
53383
53384
|
}, nm.apply(this, arguments);
|
|
53384
53385
|
}, NX = /* @__PURE__ */ a(function(e) {
|
|
53385
|
-
var t =
|
|
53386
|
+
var t = Sn(), r = jr(), n = r("ra.tiptap.clear_format", {
|
|
53386
53387
|
_: "Clear format"
|
|
53387
53388
|
});
|
|
53388
53389
|
return x.createElement(
|
|
@@ -53393,7 +53394,7 @@ var nm = function() {
|
|
|
53393
53394
|
x.createElement(aw, { fontSize: "inherit" })
|
|
53394
53395
|
);
|
|
53395
53396
|
}, "ClearButtons"), LX = /* @__PURE__ */ a(function(e) {
|
|
53396
|
-
var t, r = jr(), n =
|
|
53397
|
+
var t, r = jr(), n = Sn(), o = De(null), i = o[0], s = o[1], l = e.size, u = De(ac[0]), d = u[0], p = u[1], f = /* @__PURE__ */ a(function(g, b) {
|
|
53397
53398
|
s(null);
|
|
53398
53399
|
var v = ac[b];
|
|
53399
53400
|
v.value === "paragraph" ? n.chain().focus().setParagraph().run() : v.value === "heading" && n.chain().focus().setHeading({ level: v.level }).run();
|
|
@@ -53521,7 +53522,7 @@ var om = function() {
|
|
|
53521
53522
|
return e;
|
|
53522
53523
|
}, om.apply(this, arguments);
|
|
53523
53524
|
}, BX = /* @__PURE__ */ a(function(e) {
|
|
53524
|
-
var t = jr(), r =
|
|
53525
|
+
var t = jr(), r = Sn(), n = t("ra.tiptap.image", { _: "Image" }), o = x.useCallback(function() {
|
|
53525
53526
|
var i = window.prompt(t("ra.tiptap.image_dialog", { _: "Image URL" }));
|
|
53526
53527
|
i && r.chain().focus().setImage({ src: i }).run();
|
|
53527
53528
|
}, [r, t]);
|
|
@@ -53559,7 +53560,7 @@ var Gu = function() {
|
|
|
53559
53560
|
e.FONT = "font", e.BACKGROUND = "background";
|
|
53560
53561
|
})(ni || (ni = {}));
|
|
53561
53562
|
var KX = /* @__PURE__ */ a(function(e) {
|
|
53562
|
-
var t = jr(), r =
|
|
53563
|
+
var t = jr(), r = Sn(), n = x.useState(!1), o = n[0], i = n[1], s = x.useState(ni.FONT), l = s[0], u = s[1], d = t("ra.tiptap.color", { _: "Color" }), p = t("ra.tiptap.highlight", { _: "Highlight" }), f = /* @__PURE__ */ a(function(h) {
|
|
53563
53564
|
i(!0), u(h);
|
|
53564
53565
|
}, "displayColorChoiceDialog");
|
|
53565
53566
|
return x.createElement(
|
|
@@ -53818,7 +53819,7 @@ const $ee = /* @__PURE__ */ a((e) => {
|
|
|
53818
53819
|
return n ? null : t ? /* @__PURE__ */ y(nZ, { ...r, className: "" }) : /* @__PURE__ */ y(si, { multiline: !0, ...r });
|
|
53819
53820
|
}, "TextArea"), fw = /* @__PURE__ */ a((e) => {
|
|
53820
53821
|
const { helperText: t, error: r } = e, n = xt();
|
|
53821
|
-
return r ? /* @__PURE__ */ y(HP, { error: r }) : t === !1 ? null :
|
|
53822
|
+
return r ? /* @__PURE__ */ y(HP, { error: r }) : t === !1 ? null : Rn(t) ? t : typeof t == "string" ? /* @__PURE__ */ y(dn, { children: n(t, { _: t }) }) : /* @__PURE__ */ y("span", { dangerouslySetInnerHTML: sZ });
|
|
53822
53823
|
}, "InputHelperText"), sZ = { __html: "​" }, hw = /* @__PURE__ */ a(({
|
|
53823
53824
|
afterSubmit: e,
|
|
53824
53825
|
allowNull: t,
|
|
@@ -54162,7 +54163,7 @@ export {
|
|
|
54162
54163
|
eV as useNuevo,
|
|
54163
54164
|
aee as useReferenceLabel,
|
|
54164
54165
|
rC as useResourceRefresh,
|
|
54165
|
-
|
|
54166
|
+
xn as useUtils,
|
|
54166
54167
|
$d as useUtilsGrilla,
|
|
54167
54168
|
lD as useUtilsSubmit
|
|
54168
54169
|
};
|