biblio-react 3.0.0-alpha151 → 3.0.0-alpha153
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 +67 -67
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var VM = Object.defineProperty;
|
|
|
2
2
|
var a = (t, e) => VM(t, "name", { value: e, configurable: !0 });
|
|
3
3
|
import Me, { jsx as y, jsxs as W, Fragment as Qr } from "react/jsx-runtime";
|
|
4
4
|
import * as O from "react";
|
|
5
|
-
import
|
|
5
|
+
import qe, { forwardRef as Ll, useContext as ot, createElement as t0, Children as zd, isValidElement as Nn, cloneElement as Yr, createContext as $t, useState as De, useMemo as ur, useRef as So, useCallback as nt, useEffect as Ue, Fragment as vn, memo as Q1, useImperativeHandle as jM, useDebugValue as X1, useId as zM } from "react";
|
|
6
6
|
import { unstable_ClassNameGenerator as Z1, exactProp as Hd, unstable_getScrollbarSize as HM, unstable_ownerDocument as Dn, unstable_ownerWindow as rl, unstable_useForkRef as Ea, elementAcceptingRef as WM, unstable_useEnhancedEffect as xi, unstable_setRef as r0, HTMLElementType as nh, unstable_useEventCallback as n0, unstable_createChainedFunction as o0, unstable_debounce as UM, usePreviousProps as qM, unstable_getNormalizedScrollLeft as GM, unstable_detectScrollType as KM, chainPropTypes as YM, refType as JM, deepmerge as eS } from "@mui/utils";
|
|
7
7
|
import { MenuItem as ai, ListItemIcon as pa, ListItemText as fa, useMediaQuery as Di, Typography as nl, Box as lt, Grid as i0, Dialog as Qm, DialogTitle as tS, DialogContent as QM, Stack as Xm, DialogActions as XM, Tooltip as Wd, IconButton as ol, useTheme as rS, createTheme as ZM, ThemeProvider as eP, alpha as tP, StyledEngineProvider as nS, Card as oS, CircularProgress as rP, CardContent as iS, Collapse as nP, List as aS, Menu as oh, Switch as oP, Divider as iP, Button as a0, Paper as sS, ToggleButtonGroup as Ud, ToggleButton as zt, ListItem as aP, FormHelperText as sP } from "@mui/material";
|
|
8
8
|
import { useTranslate as Tt, useUserMenu as lP, useResourceDefinitions as cP, AppBar as uP, UserMenu as dP, Logout as pP, useResourceContext as pt, useRecordContext as dr, useNotify as lS, useDeleteWithConfirmController as fP, Button as gr, Confirm as Nl, Toolbar as Zm, ToolbarClasses as hP, SaveButton as Dl, useRedirect as _i, useDelete as cS, useSaveContext as mP, required as gP, minValue as bP, TopToolbar as uS, RefreshButton as yP, ListButton as vP, ShowButton as xP, useDataProvider as Qa, useListContext as Oi, useUnselectAll as OP, NumberField as SP, DateField as s0, TextField as Ic, ReferenceField as CP, useCreatePath as _l, Form as Bl, useResourceDefinition as dS, BulkActionsToolbar as kP, useInput as qd, useGetList as pS, Labeled as fS, useSafeSetState as eg, useGetOne as hS, useCreateController as EP, CreateContextProvider as TP, LoadingClasses as Yc, Create as wP, useListController as MP, ListContextProvider as PP, List as mS, Edit as RP, useEditContext as AP, SimpleForm as FP, useSidebarState as gS, Menu as IP, DashboardMenuItem as $P, MenuItemLink as bS, Layout as LP, FilterContext as NP, sanitizeListRestProps as DP, FilterButton as _P, CreateButton as BP, useLogin as VP, TextInput as ho, PasswordInput as yS, Show as jP, useShowContext as zP, FormTab as HP, getTabbedFormTabFullPath as WP, TabbedFormTabs as UP, defaultTheme as vS, BooleanField as qP, ImageInput as GP, ImageField as KP, FileInput as YP, BooleanInput as JP, ReferenceInput as xS, useChoicesContext as OS, AutocompleteInput as QP, SelectInput as XP, ReferenceArrayInput as ZP, AutocompleteArrayInput as eR, SearchInput as tR, RadioButtonGroupInput as SS, useRecordSelection as CS, ListActions as rR, Datagrid as nR, ValidationError as oR, FieldTitle as kS, NumberInput as iR } from "react-admin";
|
|
@@ -6470,7 +6470,7 @@ process.env.NODE_ENV !== "production" && c.oneOfType([c.string, c.shape({
|
|
|
6470
6470
|
exitDone: c.string,
|
|
6471
6471
|
exitActive: c.string
|
|
6472
6472
|
})]);
|
|
6473
|
-
const ou =
|
|
6473
|
+
const ou = qe.createContext(null);
|
|
6474
6474
|
var HL = /* @__PURE__ */ a(function(e) {
|
|
6475
6475
|
return e.scrollTop;
|
|
6476
6476
|
}, "forceReflow"), Ps = "unmounted", Bo = "exited", Vo = "entering", Qi = "entered", yh = "exiting", en = /* @__PURE__ */ function(t) {
|
|
@@ -6595,12 +6595,12 @@ var HL = /* @__PURE__ */ a(function(e) {
|
|
|
6595
6595
|
var l = ne(i, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
6596
6596
|
return (
|
|
6597
6597
|
// allows for nested Transitions
|
|
6598
|
-
/* @__PURE__ */
|
|
6598
|
+
/* @__PURE__ */ qe.createElement(ou.Provider, {
|
|
6599
6599
|
value: null
|
|
6600
|
-
}, typeof s == "function" ? s(o, l) :
|
|
6600
|
+
}, typeof s == "function" ? s(o, l) : qe.cloneElement(qe.Children.only(s), l))
|
|
6601
6601
|
);
|
|
6602
6602
|
}, "render"), e;
|
|
6603
|
-
}(
|
|
6603
|
+
}(qe.Component);
|
|
6604
6604
|
en.contextType = ou;
|
|
6605
6605
|
en.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
6606
6606
|
/**
|
|
@@ -6921,13 +6921,13 @@ var KL = Object.values || function(t) {
|
|
|
6921
6921
|
}));
|
|
6922
6922
|
}, "handleExited"), r.render = /* @__PURE__ */ a(function() {
|
|
6923
6923
|
var o = this.props, i = o.component, s = o.childFactory, l = ne(o, ["component", "childFactory"]), u = this.state.contextValue, d = KL(this.state.children).map(s);
|
|
6924
|
-
return delete l.appear, delete l.enter, delete l.exit, i === null ? /* @__PURE__ */
|
|
6924
|
+
return delete l.appear, delete l.enter, delete l.exit, i === null ? /* @__PURE__ */ qe.createElement(ou.Provider, {
|
|
6925
6925
|
value: u
|
|
6926
|
-
}, d) : /* @__PURE__ */
|
|
6926
|
+
}, d) : /* @__PURE__ */ qe.createElement(ou.Provider, {
|
|
6927
6927
|
value: u
|
|
6928
|
-
}, /* @__PURE__ */
|
|
6928
|
+
}, /* @__PURE__ */ qe.createElement(i, l, d));
|
|
6929
6929
|
}, "render"), e;
|
|
6930
|
-
}(
|
|
6930
|
+
}(qe.Component);
|
|
6931
6931
|
Dg.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
6932
6932
|
/**
|
|
6933
6933
|
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
@@ -9836,7 +9836,7 @@ const CD = /^(\d+)(th|st|nd|rd)?/i, kD = /\d+/i, ED = {
|
|
|
9836
9836
|
let xh = null;
|
|
9837
9837
|
const XC = /* @__PURE__ */ a(() => {
|
|
9838
9838
|
const { reset: t } = pr();
|
|
9839
|
-
return
|
|
9839
|
+
return Ue(() => {
|
|
9840
9840
|
m_(() => t());
|
|
9841
9841
|
}, [t]), null;
|
|
9842
9842
|
}, "FormResetter"), m_ = /* @__PURE__ */ a((t) => {
|
|
@@ -10153,7 +10153,7 @@ const XC = /* @__PURE__ */ a(() => {
|
|
|
10153
10153
|
};
|
|
10154
10154
|
}, "useUtilsSubmit"), wn = /* @__PURE__ */ a((t) => {
|
|
10155
10155
|
const { etrs: e = {}, asisEtr: r = {} } = t, n = rk(), o = nk(), i = ok(), s = ik(), l = ak(), u = sk(), d = ss(), p = Un(), f = _i(), h = Xa(), m = pt(t), g = pp(), b = uk(), v = tk(), { propsContenidos: x, setPropsContenidos: T } = Ot(), [k] = Kg(m), C = pr(), S = So(null);
|
|
10156
|
-
|
|
10156
|
+
Ue(() => (C && (S.current = C), () => {
|
|
10157
10157
|
S.current = null;
|
|
10158
10158
|
}), [C]);
|
|
10159
10159
|
const w = nt(() => C || S.current, [C]), M = nt(
|
|
@@ -15371,7 +15371,7 @@ const AB = {
|
|
|
15371
15371
|
A700: "#ffd600"
|
|
15372
15372
|
}, $k = /* @__PURE__ */ a(({ containerRef: t, ...e }) => {
|
|
15373
15373
|
const [r, n] = De(null);
|
|
15374
|
-
return
|
|
15374
|
+
return Ue(() => {
|
|
15375
15375
|
t != null && t.current && n(t.current);
|
|
15376
15376
|
}, [t]), r ? vR(
|
|
15377
15377
|
/* @__PURE__ */ y(
|
|
@@ -22530,9 +22530,9 @@ const Cj = {
|
|
|
22530
22530
|
})(Lk);
|
|
22531
22531
|
const Hj = /* @__PURE__ */ a((t) => {
|
|
22532
22532
|
const { onRenderGrilla: e, onLoadGrilla: r, apiRef: n = {} } = t, { isLoading: o } = Oi(), i = mp(t);
|
|
22533
|
-
|
|
22533
|
+
Ue(() => {
|
|
22534
22534
|
e && e({ ...i, api: n == null ? void 0 : n.current });
|
|
22535
|
-
}, []),
|
|
22535
|
+
}, []), Ue(() => {
|
|
22536
22536
|
o || r && r({ ...i, api: n == null ? void 0 : n.current });
|
|
22537
22537
|
}, [o]);
|
|
22538
22538
|
}, "useInitGrilla");
|
|
@@ -23137,7 +23137,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
23137
23137
|
hiddenactions: oe = [],
|
|
23138
23138
|
user: se = []
|
|
23139
23139
|
} = ot(zi), ie = ot(ek), _ = pb();
|
|
23140
|
-
|
|
23140
|
+
Ue(() => {
|
|
23141
23141
|
ie && (ie.current.activePanel.params.apiRef = Q);
|
|
23142
23142
|
}, [ie]);
|
|
23143
23143
|
const pe = {}, Y = [], be = [], Ie = i.map((de) => {
|
|
@@ -23608,7 +23608,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
23608
23608
|
setOpen: l,
|
|
23609
23609
|
open: u
|
|
23610
23610
|
} = t, { dirtyFields: d, isValid: p } = gR(), { fichaProps: { [t.source]: f = {}, etrs: h } = {} } = Ot(), m = ss(), g = ot(ji), { onAfterRenderAsistente: b, ...v } = f, x = wn({ resource: r, etrs: h, asisEtr: g });
|
|
23611
|
-
return
|
|
23611
|
+
return Ue(() => {
|
|
23612
23612
|
u && typeof b == "function" && b({ ...x, form: e }, n);
|
|
23613
23613
|
}, [u]), /* @__PURE__ */ W(Qr, { children: [
|
|
23614
23614
|
/* @__PURE__ */ y(Xl, { children: /* @__PURE__ */ y(Xm, { spacing: 4, children: zd.map(
|
|
@@ -23854,7 +23854,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
23854
23854
|
field: me
|
|
23855
23855
|
}
|
|
23856
23856
|
]);
|
|
23857
|
-
}),
|
|
23857
|
+
}), Ue(() => {
|
|
23858
23858
|
u || setTimeout(() => {
|
|
23859
23859
|
k.setValue(h, "");
|
|
23860
23860
|
}, 1e3);
|
|
@@ -25668,7 +25668,7 @@ const Zk = /* @__PURE__ */ a((t) => {
|
|
|
25668
25668
|
}),
|
|
25669
25669
|
[h, m, o, p]
|
|
25670
25670
|
);
|
|
25671
|
-
return
|
|
25671
|
+
return Ue(() => {
|
|
25672
25672
|
r ? m || u.getFichaConfig(d, { estado: "N" }).then((x) => {
|
|
25673
25673
|
s(x.data);
|
|
25674
25674
|
}).catch((x) => {
|
|
@@ -25812,7 +25812,7 @@ const Zk = /* @__PURE__ */ a((t) => {
|
|
|
25812
25812
|
} = t, u = ot(YC), d = r === "ventana" ? v5 : mS, { pathname: p, state: f } = Co(), h = Qa(), [m, g] = De(null), [b, v] = De(i), x = /* @__PURE__ */ a((C) => {
|
|
25813
25813
|
v(C.target.checked);
|
|
25814
25814
|
}, "handleChange");
|
|
25815
|
-
if (
|
|
25815
|
+
if (Ue(() => {
|
|
25816
25816
|
h.getGrillaConfig(e).then((C) => {
|
|
25817
25817
|
g(C.data);
|
|
25818
25818
|
}).catch((C) => {
|
|
@@ -26032,7 +26032,7 @@ var gb = {};
|
|
|
26032
26032
|
Object.defineProperty(gb, "__esModule", {
|
|
26033
26033
|
value: !0
|
|
26034
26034
|
});
|
|
26035
|
-
var tE = gb.default = void 0, C5 = E5(
|
|
26035
|
+
var tE = gb.default = void 0, C5 = E5(qe), k5 = tC;
|
|
26036
26036
|
function rE(t) {
|
|
26037
26037
|
if (typeof WeakMap != "function") return null;
|
|
26038
26038
|
var e = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
|
|
@@ -28147,7 +28147,7 @@ const Q3 = /* @__PURE__ */ a(({
|
|
|
28147
28147
|
}),
|
|
28148
28148
|
[d, p, r, f]
|
|
28149
28149
|
);
|
|
28150
|
-
return
|
|
28150
|
+
return Ue(() => {
|
|
28151
28151
|
p || l.getFichaConfig(u, { estado: "M" }).then((g) => {
|
|
28152
28152
|
i(g.data);
|
|
28153
28153
|
}).catch((g) => {
|
|
@@ -28230,9 +28230,9 @@ const Q3 = /* @__PURE__ */ a(({
|
|
|
28230
28230
|
);
|
|
28231
28231
|
}), fE = /* @__PURE__ */ a((t) => {
|
|
28232
28232
|
const e = pt(t), { estado: r, isLoading: n, initialValues: o, fichaProps: i } = Ot(), s = wn({ resource: e, etrs: i.etrs });
|
|
28233
|
-
return
|
|
28233
|
+
return Ue(() => {
|
|
28234
28234
|
i.onRenderFicha && i.onRenderFicha(s, r);
|
|
28235
|
-
}, []),
|
|
28235
|
+
}, []), Ue(() => {
|
|
28236
28236
|
n || i.onLoadFicha && i.onLoadFicha(s, r, o);
|
|
28237
28237
|
}, [n]), n ? /* @__PURE__ */ y(
|
|
28238
28238
|
cs,
|
|
@@ -30658,7 +30658,7 @@ const jte = /* @__PURE__ */ a((t) => {
|
|
|
30658
30658
|
}),
|
|
30659
30659
|
[d, p, r, f]
|
|
30660
30660
|
);
|
|
30661
|
-
return
|
|
30661
|
+
return Ue(() => {
|
|
30662
30662
|
p || l.getFichaConfig(u, { estado: "M" }).then((g) => {
|
|
30663
30663
|
i(g.data);
|
|
30664
30664
|
}).catch((g) => {
|
|
@@ -31239,7 +31239,7 @@ $E = Ib.default = (0, zH.default)(/* @__PURE__ */ (0, HH.jsx)("path", {
|
|
|
31239
31239
|
}), "AddAPhoto");
|
|
31240
31240
|
const eO = /* @__PURE__ */ a((t) => {
|
|
31241
31241
|
const [e, r] = De(!1), [n, o] = De(!1), i = Un(), s = Tt(), { field: l, sx: u } = t;
|
|
31242
|
-
return
|
|
31242
|
+
return Ue(() => {
|
|
31243
31243
|
e && (/* @__PURE__ */ a(async () => {
|
|
31244
31244
|
let p = null;
|
|
31245
31245
|
try {
|
|
@@ -31352,7 +31352,7 @@ const eO = /* @__PURE__ */ a((t) => {
|
|
|
31352
31352
|
if (!b)
|
|
31353
31353
|
return null;
|
|
31354
31354
|
const T = b.getValues()[f.source], k = v ?? "#";
|
|
31355
|
-
return
|
|
31355
|
+
return Ue(() => {
|
|
31356
31356
|
u && T && (T != null && T.src ? x(T.src) : u(T).then((C) => {
|
|
31357
31357
|
x(C);
|
|
31358
31358
|
}));
|
|
@@ -31462,7 +31462,7 @@ const eO = /* @__PURE__ */ a((t) => {
|
|
|
31462
31462
|
allChoices: l,
|
|
31463
31463
|
availableChoices: u
|
|
31464
31464
|
} = OS(), d = So(null);
|
|
31465
|
-
return
|
|
31465
|
+
return Ue(() => {
|
|
31466
31466
|
s || typeof e == "function" && e(Object.values([l]));
|
|
31467
31467
|
}, [l, e, s]), /* @__PURE__ */ y(UH, { title: ((p = d.current) == null ? void 0 : p.value) || "", placement: "top", arrow: !0, children: /* @__PURE__ */ y(
|
|
31468
31468
|
lt,
|
|
@@ -31511,7 +31511,7 @@ const eO = /* @__PURE__ */ a((t) => {
|
|
|
31511
31511
|
const { callback: x, ...T } = g;
|
|
31512
31512
|
b = x, v = T;
|
|
31513
31513
|
}
|
|
31514
|
-
return
|
|
31514
|
+
return Ue(() => {
|
|
31515
31515
|
h !== null && (m.current = h, n(JN(p)));
|
|
31516
31516
|
}, [JSON.stringify(h)]), !r && !o ? /* @__PURE__ */ W(vn, { children: [
|
|
31517
31517
|
/* @__PURE__ */ y(
|
|
@@ -32911,7 +32911,7 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
|
|
|
32911
32911
|
...h
|
|
32912
32912
|
}
|
|
32913
32913
|
} = fr(t), m = pr();
|
|
32914
|
-
|
|
32914
|
+
Ue(() => {
|
|
32915
32915
|
n.current || (setTimeout(() => {
|
|
32916
32916
|
m.setValue(f, z6);
|
|
32917
32917
|
}, 0), n.current = !0);
|
|
@@ -33066,7 +33066,7 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
|
|
|
33066
33066
|
}
|
|
33067
33067
|
), "AsistenteList"), q6 = { fillista: "empcod=-1", mapId: ["funnro"] }, G6 = /* @__PURE__ */ a((t) => {
|
|
33068
33068
|
const [e, r] = De(q6), [n, o] = De([]), i = Qa();
|
|
33069
|
-
|
|
33069
|
+
Ue(() => {
|
|
33070
33070
|
(/* @__PURE__ */ a(async () => {
|
|
33071
33071
|
const f = await l("");
|
|
33072
33072
|
o(f);
|
|
@@ -33237,7 +33237,7 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
|
|
|
33237
33237
|
...x
|
|
33238
33238
|
}
|
|
33239
33239
|
} = fr(t), { [e]: T = {}, etrs: k } = u, C = wn({ ...t, etrs: k, asisEtr: d }), S = T.onChange === void 0 ? r : T.onChange;
|
|
33240
|
-
|
|
33240
|
+
Ue(() => {
|
|
33241
33241
|
p.current || (setTimeout(() => {
|
|
33242
33242
|
s.setValue(e, Q6);
|
|
33243
33243
|
}, 0), p.current = !0);
|
|
@@ -47015,7 +47015,7 @@ var b1;
|
|
|
47015
47015
|
function y8() {
|
|
47016
47016
|
if (b1) return qf;
|
|
47017
47017
|
b1 = 1;
|
|
47018
|
-
var t =
|
|
47018
|
+
var t = qe;
|
|
47019
47019
|
function e(f, h) {
|
|
47020
47020
|
return f === h && (f !== 0 || 1 / f === 1 / h) || f !== f && h !== h;
|
|
47021
47021
|
}
|
|
@@ -47065,7 +47065,7 @@ var y1;
|
|
|
47065
47065
|
function v8() {
|
|
47066
47066
|
return y1 || (y1 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47067
47067
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
47068
|
-
var t =
|
|
47068
|
+
var t = qe, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47069
47069
|
function r(k) {
|
|
47070
47070
|
{
|
|
47071
47071
|
for (var C = arguments.length, S = new Array(C > 1 ? C - 1 : 0), w = 1; w < C; w++)
|
|
@@ -47147,7 +47147,7 @@ const x8 = /* @__PURE__ */ a((...t) => (e) => {
|
|
|
47147
47147
|
});
|
|
47148
47148
|
}, "mergeRefs"), O8 = /* @__PURE__ */ a(({ contentComponent: t }) => {
|
|
47149
47149
|
const e = Dp.useSyncExternalStore(t.subscribe, t.getSnapshot, t.getServerSnapshot);
|
|
47150
|
-
return
|
|
47150
|
+
return qe.createElement(qe.Fragment, null, Object.values(e));
|
|
47151
47151
|
}, "Portals");
|
|
47152
47152
|
function S8() {
|
|
47153
47153
|
const t = /* @__PURE__ */ new Set();
|
|
@@ -47186,10 +47186,10 @@ function S8() {
|
|
|
47186
47186
|
};
|
|
47187
47187
|
}
|
|
47188
47188
|
a(S8, "getInstance");
|
|
47189
|
-
const Av = class Av extends
|
|
47189
|
+
const Av = class Av extends qe.Component {
|
|
47190
47190
|
constructor(e) {
|
|
47191
47191
|
var r;
|
|
47192
|
-
super(e), this.editorContentRef =
|
|
47192
|
+
super(e), this.editorContentRef = qe.createRef(), this.initialized = !1, this.state = {
|
|
47193
47193
|
hasContentComponentInitialized: !!(!((r = e.editor) === null || r === void 0) && r.contentComponent)
|
|
47194
47194
|
};
|
|
47195
47195
|
}
|
|
@@ -47227,24 +47227,24 @@ const Av = class Av extends Ue.Component {
|
|
|
47227
47227
|
}
|
|
47228
47228
|
render() {
|
|
47229
47229
|
const { editor: e, innerRef: r, ...n } = this.props;
|
|
47230
|
-
return
|
|
47231
|
-
|
|
47230
|
+
return qe.createElement(
|
|
47231
|
+
qe.Fragment,
|
|
47232
47232
|
null,
|
|
47233
|
-
|
|
47234
|
-
(e == null ? void 0 : e.contentComponent) &&
|
|
47233
|
+
qe.createElement("div", { ref: x8(r, this.editorContentRef), ...n }),
|
|
47234
|
+
(e == null ? void 0 : e.contentComponent) && qe.createElement(O8, { contentComponent: e.contentComponent })
|
|
47235
47235
|
);
|
|
47236
47236
|
}
|
|
47237
47237
|
};
|
|
47238
47238
|
a(Av, "PureEditorContent");
|
|
47239
47239
|
let Em = Av;
|
|
47240
47240
|
const C8 = Ll((t, e) => {
|
|
47241
|
-
const r =
|
|
47242
|
-
return
|
|
47241
|
+
const r = qe.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [t.editor]);
|
|
47242
|
+
return qe.createElement(Em, {
|
|
47243
47243
|
key: r,
|
|
47244
47244
|
innerRef: e,
|
|
47245
47245
|
...t
|
|
47246
47246
|
});
|
|
47247
|
-
}), k8 =
|
|
47247
|
+
}), k8 = qe.memo(C8);
|
|
47248
47248
|
var E8 = /* @__PURE__ */ a(function t(e, r) {
|
|
47249
47249
|
if (e === r) return !0;
|
|
47250
47250
|
if (e && r && typeof e == "object" && typeof r == "object") {
|
|
@@ -47304,7 +47304,7 @@ var v1;
|
|
|
47304
47304
|
function w8() {
|
|
47305
47305
|
if (v1) return Kf;
|
|
47306
47306
|
v1 = 1;
|
|
47307
|
-
var t =
|
|
47307
|
+
var t = qe, e = Dp;
|
|
47308
47308
|
function r(d, p) {
|
|
47309
47309
|
return d === p && (d !== 0 || 1 / d === 1 / p) || d !== d && p !== p;
|
|
47310
47310
|
}
|
|
@@ -47358,7 +47358,7 @@ var x1;
|
|
|
47358
47358
|
function M8() {
|
|
47359
47359
|
return x1 || (x1 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47360
47360
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
47361
|
-
var t =
|
|
47361
|
+
var t = qe, e = Dp;
|
|
47362
47362
|
function r(p, f) {
|
|
47363
47363
|
return p === f && (p !== 0 || 1 / p === 1 / f) || p !== p && f !== f;
|
|
47364
47364
|
}
|
|
@@ -47447,7 +47447,7 @@ let wm = Fv;
|
|
|
47447
47447
|
function R8(t) {
|
|
47448
47448
|
var e;
|
|
47449
47449
|
const [r] = De(() => new wm(t.editor)), n = P8.useSyncExternalStoreWithSelector(r.subscribe, r.getSnapshot, r.getServerSnapshot, t.selector, (e = t.equalityFn) !== null && e !== void 0 ? e : T8);
|
|
47450
|
-
return
|
|
47450
|
+
return Ue(() => r.watch(t.editor), [t.editor, r]), X1(n), n;
|
|
47451
47451
|
}
|
|
47452
47452
|
a(R8, "useEditorState");
|
|
47453
47453
|
const O1 = process.env.NODE_ENV !== "production", Mm = typeof window > "u", A8 = Mm || !!(typeof window < "u" && window.next), Iv = class Iv {
|
|
@@ -47587,7 +47587,7 @@ function F8(t = {}, e = []) {
|
|
|
47587
47587
|
const r = So(t);
|
|
47588
47588
|
r.current = t;
|
|
47589
47589
|
const [n] = De(() => new Pm(r)), o = Dp.useSyncExternalStore(n.subscribe, n.getEditor, n.getServerSnapshot);
|
|
47590
|
-
return X1(o),
|
|
47590
|
+
return X1(o), Ue(n.onRender(e)), R8({
|
|
47591
47591
|
editor: o,
|
|
47592
47592
|
selector: /* @__PURE__ */ a(({ transactionNumber: i }) => t.shouldRerenderOnTransaction === !1 ? null : t.immediatelyRender && i === 0 ? 0 : i + 1, "selector")
|
|
47593
47593
|
}), o;
|
|
@@ -47600,11 +47600,11 @@ I8.Consumer;
|
|
|
47600
47600
|
const $8 = $t({
|
|
47601
47601
|
onDragStart: void 0
|
|
47602
47602
|
}), L8 = /* @__PURE__ */ a(() => ot($8), "useReactNodeView");
|
|
47603
|
-
|
|
47603
|
+
qe.forwardRef((t, e) => {
|
|
47604
47604
|
const { onDragStart: r } = L8(), n = t.as || "div";
|
|
47605
47605
|
return (
|
|
47606
47606
|
// @ts-ignore
|
|
47607
|
-
|
|
47607
|
+
qe.createElement(n, { ...t, ref: e, "data-node-view-wrapper": "", onDragStart: r, style: {
|
|
47608
47608
|
whiteSpace: "normal",
|
|
47609
47609
|
...t.style
|
|
47610
47610
|
} })
|
|
@@ -49529,7 +49529,7 @@ var OQ = $t(null), SQ = /* @__PURE__ */ a(function() {
|
|
|
49529
49529
|
return t;
|
|
49530
49530
|
}, "useFormGroups"), CQ = /* @__PURE__ */ a(function(t) {
|
|
49531
49531
|
var e = t.inputProps, r = t.isArrayInput, n = t.fieldArrayInputControl, o = e.defaultValue, i = e.source, s = Hw(i), l = Rw(e), u = pr(), d = u.getValues, p = u.resetField, f = u.formState, h = u.reset, m = Kc(l, s), g = Kc(d(), s), b = f.dirtyFields, v = Object.keys(b).includes(s);
|
|
49532
|
-
|
|
49532
|
+
Ue(function() {
|
|
49533
49533
|
if (!(o == null || g != null || m != null || v)) {
|
|
49534
49534
|
var x = s.split(".").some(function(C) {
|
|
49535
49535
|
return kQ.test(C);
|
|
@@ -49663,7 +49663,7 @@ var OQ = $t(null), SQ = /* @__PURE__ */ a(function() {
|
|
|
49663
49663
|
return t === "" ? null : t;
|
|
49664
49664
|
}, "defaultParse"), FQ = /* @__PURE__ */ a(function(t) {
|
|
49665
49665
|
var e = t.defaultValue, r = t.format, n = r === void 0 ? RQ : r, o = t.id, i = t.isRequired, s = t.name, l = t.onBlur, u = t.onChange, d = t.parse, p = d === void 0 ? AQ : d, f = t.source, h = t.validate, m = PQ(t, ["defaultValue", "format", "id", "isRequired", "name", "onBlur", "onChange", "parse", "source", "validate"]), g = Hw(f), b = s || g, v = EQ(), x = SQ(), T = Rw(), k = Zf(p), C = zM();
|
|
49666
|
-
!b && process.env.NODE_ENV === "development" && console.warn("Input components require either a source or a name prop."),
|
|
49666
|
+
!b && process.env.NODE_ENV === "development" && console.warn("Input components require either a source or a name prop."), Ue(function() {
|
|
49667
49667
|
if (!(!x || v == null))
|
|
49668
49668
|
return x.registerField(g, v), function() {
|
|
49669
49669
|
x.unregisterField(g, v);
|
|
@@ -53175,7 +53175,7 @@ iM = Ly.default = (0, hZ.default)(/* @__PURE__ */ (0, mZ.jsx)("path", {
|
|
|
53175
53175
|
}), "Code");
|
|
53176
53176
|
var aM = $t(void 0), Mn = /* @__PURE__ */ a(function() {
|
|
53177
53177
|
var t = De(!1), e = t[0], r = t[1], n = ot(aM);
|
|
53178
|
-
return
|
|
53178
|
+
return Ue(function() {
|
|
53179
53179
|
var o = /* @__PURE__ */ a(function() {
|
|
53180
53180
|
r(!0);
|
|
53181
53181
|
}, "onReady");
|
|
@@ -53203,7 +53203,7 @@ var aM = $t(void 0), Mn = /* @__PURE__ */ a(function() {
|
|
|
53203
53203
|
}), p = r("ra.tiptap.code", {
|
|
53204
53204
|
_: "Code"
|
|
53205
53205
|
});
|
|
53206
|
-
|
|
53206
|
+
Ue(function() {
|
|
53207
53207
|
var h = /* @__PURE__ */ a(function() {
|
|
53208
53208
|
i(function() {
|
|
53209
53209
|
return W1.reduce(function(m, g) {
|
|
@@ -53301,7 +53301,7 @@ var Nm = function() {
|
|
|
53301
53301
|
(h || m) && EZ[f](e);
|
|
53302
53302
|
});
|
|
53303
53303
|
}, "handleChange");
|
|
53304
|
-
return
|
|
53304
|
+
return Ue(function() {
|
|
53305
53305
|
var d = /* @__PURE__ */ a(function() {
|
|
53306
53306
|
l(function() {
|
|
53307
53307
|
return U1.reduce(function(p, f) {
|
|
@@ -53375,7 +53375,7 @@ var Dm = function() {
|
|
|
53375
53375
|
}, Dm.apply(this, arguments);
|
|
53376
53376
|
}, _Z = /* @__PURE__ */ a(function(t) {
|
|
53377
53377
|
var e = Mn(), r = Ur(), 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" });
|
|
53378
|
-
|
|
53378
|
+
Ue(function() {
|
|
53379
53379
|
var f = /* @__PURE__ */ a(function() {
|
|
53380
53380
|
i(function(h) {
|
|
53381
53381
|
return BZ.reduce(function(m, g) {
|
|
@@ -53437,7 +53437,7 @@ fM = zy.default = (0, jZ.default)(/* @__PURE__ */ (0, zZ.jsx)("path", {
|
|
|
53437
53437
|
}), "InsertLink");
|
|
53438
53438
|
var HZ = /* @__PURE__ */ a(function() {
|
|
53439
53439
|
var t = Mn(), e = De(t ? t.state.doc.textBetween(t.state.selection.from, t.state.selection.to) : null), r = e[0], n = e[1];
|
|
53440
|
-
return
|
|
53440
|
+
return Ue(function() {
|
|
53441
53441
|
var o = /* @__PURE__ */ a(function() {
|
|
53442
53442
|
n(t ? t.state.doc.textBetween(t.state.selection.from, t.state.selection.to) : null);
|
|
53443
53443
|
}, "handleSelectionChange");
|
|
@@ -53487,7 +53487,7 @@ var Bm = function() {
|
|
|
53487
53487
|
var e = Mn(), r = Ur(), n = De(!1), o = n[0], i = n[1], s = r("ra.tiptap.blockquote", {
|
|
53488
53488
|
_: "Blockquote"
|
|
53489
53489
|
});
|
|
53490
|
-
return
|
|
53490
|
+
return Ue(function() {
|
|
53491
53491
|
var l = /* @__PURE__ */ a(function() {
|
|
53492
53492
|
i(e && e.isActive("blockquote"));
|
|
53493
53493
|
}, "handleUpdate");
|
|
@@ -53538,7 +53538,7 @@ var Vm = function() {
|
|
|
53538
53538
|
}, "handleClickListItem"), m = /* @__PURE__ */ a(function(g) {
|
|
53539
53539
|
s(null);
|
|
53540
53540
|
}, "handleClose");
|
|
53541
|
-
return
|
|
53541
|
+
return Ue(function() {
|
|
53542
53542
|
var g = /* @__PURE__ */ a(function() {
|
|
53543
53543
|
p(function(b) {
|
|
53544
53544
|
return Ac.reduce(function(v, x) {
|
|
@@ -53844,14 +53844,14 @@ var dee = /* @__PURE__ */ a(function(t) {
|
|
|
53844
53844
|
}, ln.apply(this, arguments);
|
|
53845
53845
|
}, xee = /* @__PURE__ */ a(function(t) {
|
|
53846
53846
|
var e, r = t.className, n = t.defaultValue, o = n === void 0 ? "" : n, i = t.disabled, s = i === void 0 ? !1 : i, l = t.editorOptions, u = l === void 0 ? Oee : l, d = t.fullWidth, p = t.helperText, f = t.label, h = t.readOnly, m = h === void 0 ? !1 : h, g = t.source, b = t.sx, v = t.toolbar, x = zw(t), T = FQ(ln(ln({}, t), { source: g, defaultValue: o })), k = T.id, C = T.field, S = T.isRequired, w = T.fieldState, M = T.formState.isSubmitted, F = F8(ln(ln({}, u), { editable: !s && !m, content: C.value, editorProps: ln(ln({}, u == null ? void 0 : u.editorProps), { attributes: ln(ln({}, (e = u == null ? void 0 : u.editorProps) === null || e === void 0 ? void 0 : e.attributes), { id: k }) }) }), [s, u, m, k]), P = w.error, I = w.invalid, R = w.isTouched;
|
|
53847
|
-
return
|
|
53847
|
+
return Ue(function() {
|
|
53848
53848
|
if (F) {
|
|
53849
53849
|
var A = F.state.selection, $ = A.from, L = A.to;
|
|
53850
53850
|
F.commands.setContent(C.value, !1, {
|
|
53851
53851
|
preserveWhitespace: !0
|
|
53852
53852
|
}), F.commands.setTextSelection({ from: $, to: L });
|
|
53853
53853
|
}
|
|
53854
|
-
}, [F, C.value]),
|
|
53854
|
+
}, [F, C.value]), Ue(function() {
|
|
53855
53855
|
if (F) {
|
|
53856
53856
|
var A = /* @__PURE__ */ a(function() {
|
|
53857
53857
|
if (F.isEmpty) {
|
|
@@ -56605,7 +56605,7 @@ const PM = {
|
|
|
56605
56605
|
function jee(t) {
|
|
56606
56606
|
var o;
|
|
56607
56607
|
var e;
|
|
56608
|
-
const r = (e = (o = class extends
|
|
56608
|
+
const r = (e = (o = class extends qe.Component {
|
|
56609
56609
|
constructor(s) {
|
|
56610
56610
|
super(s), this._inputRef = this._inputRef.bind(this);
|
|
56611
56611
|
}
|
|
@@ -56662,13 +56662,13 @@ function jee(t) {
|
|
|
56662
56662
|
this.props.onComplete && this.maskRef && this.props.onComplete(this.maskValue, this.maskRef, s);
|
|
56663
56663
|
}
|
|
56664
56664
|
render() {
|
|
56665
|
-
return
|
|
56665
|
+
return qe.createElement(t, {
|
|
56666
56666
|
...this._extractNonMaskProps(this.props),
|
|
56667
56667
|
inputRef: this._inputRef
|
|
56668
56668
|
});
|
|
56669
56669
|
}
|
|
56670
56670
|
}, a(o, "MaskedComponent"), o), e.displayName = void 0, e.propTypes = void 0, e), n = t.displayName || t.name || "Component";
|
|
56671
|
-
return r.displayName = "IMask(" + n + ")", r.propTypes = PM,
|
|
56671
|
+
return r.displayName = "IMask(" + n + ")", r.propTypes = PM, qe.forwardRef((i, s) => qe.createElement(r, {
|
|
56672
56672
|
...i,
|
|
56673
56673
|
ref: s
|
|
56674
56674
|
}));
|
|
@@ -56679,14 +56679,14 @@ const zee = jee((t) => {
|
|
|
56679
56679
|
inputRef: e,
|
|
56680
56680
|
...r
|
|
56681
56681
|
} = t;
|
|
56682
|
-
return
|
|
56682
|
+
return qe.createElement("input", {
|
|
56683
56683
|
...r,
|
|
56684
56684
|
ref: e
|
|
56685
56685
|
});
|
|
56686
|
-
}), Hee = /* @__PURE__ */ a((t, e) =>
|
|
56686
|
+
}), Hee = /* @__PURE__ */ a((t, e) => qe.createElement(zee, {
|
|
56687
56687
|
...t,
|
|
56688
56688
|
ref: e
|
|
56689
|
-
}), "IMaskInputFn"), Wee =
|
|
56689
|
+
}), "IMaskInputFn"), Wee = qe.forwardRef(Hee), rh = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
56690
56690
|
const { onChange: n, name: o, maxLength: i = 50, ...s } = e, l = O.useRef(!1), u = O.useCallback(
|
|
56691
56691
|
(d) => {
|
|
56692
56692
|
if (!l.current) {
|
|
@@ -56710,7 +56710,7 @@ const zee = jee((t) => {
|
|
|
56710
56710
|
);
|
|
56711
56711
|
}, "MaskedTextInput2")), sre = /* @__PURE__ */ a((t) => {
|
|
56712
56712
|
const { tipo: e, ...r } = t, { propsContenido: n, hidden: o } = fr(r), i = pr();
|
|
56713
|
-
|
|
56713
|
+
Ue(() => {
|
|
56714
56714
|
n.value && i.setValue(t.source, n.value);
|
|
56715
56715
|
}, [n.value]);
|
|
56716
56716
|
const s = {
|