biblio-react 3.0.0-alpha324-popup → 3.0.0-alpha325-popup
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 +260 -248
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@ var Xh = (t, e, n) => nN(t, typeof e != "symbol" ? e + "" : e, n);
|
|
|
5
5
|
import { jsx as b, jsxs as K, Fragment as Un } from "react/jsx-runtime";
|
|
6
6
|
import * as S from "react";
|
|
7
7
|
import vt, { forwardRef as Hc, useContext as tt, createElement as XS, isValidElement as wr, cloneElement as Gn, Children as gc, createContext as Yt, useState as Ie, useMemo as rt, useRef as an, useCallback as Le, useEffect as Re, memo as jO, Fragment as Tr, useImperativeHandle as rN, useDebugValue as WO, useId as oN } from "react";
|
|
8
|
-
import { MenuItem as yo, ListItemIcon as xs, ListItemText as Cs, useMediaQuery as Ir, Typography as fi, Box as Me, useTheme as qc, Card as Tv, CardContent as HO, Stack as ws, Tooltip as zo, IconButton as
|
|
9
|
-
import { useTranslate as nn, useUserMenu as gN, useResourceDefinitions as Ev, AppBar as yN, UserMenu as bN, Logout as vN, required as SN, TopToolbar as YO, ShowButton as xN, useNotify as Ov, useDataProvider as Ii, useResourceContext as ut, useListContext as Vo, useRedirect as Go, useUnselectAll as CN, ResourceDefinitionContext as JO, useStoreContext as wN, NumberField as TN, DateField as nx, TextField as Rl, ReferenceField as EN, useResourceDefinition as If, useGetResourceLabel as Rf, ResourceContextProvider as ba, useRecordContext as Nr, useCreatePath as ON, BulkActionsToolbar as XO, Button as
|
|
8
|
+
import { MenuItem as yo, ListItemIcon as xs, ListItemText as Cs, useMediaQuery as Ir, Typography as fi, Box as Me, useTheme as qc, Card as Tv, CardContent as HO, Stack as ws, Tooltip as zo, IconButton as Dn, createTheme as iN, ThemeProvider as sN, Chip as QS, Menu as Pa, alpha as aN, StyledEngineProvider as qO, CircularProgress as UO, DialogTitle as my, Dialog as Dd, DialogContent as gy, Collapse as lN, List as GO, Switch as cN, DialogActions as ZS, Button as ex, Paper as KO, Table as uN, TableHead as dN, TableRow as tx, TableCell as Wi, Skeleton as Hi, TableBody as pN, ToggleButtonGroup as Mf, ToggleButton as xn, ListItem as fN, ListItemButton as hN, FormHelperText as mN } from "@mui/material";
|
|
9
|
+
import { useTranslate as nn, useUserMenu as gN, useResourceDefinitions as Ev, AppBar as yN, UserMenu as bN, Logout as vN, required as SN, TopToolbar as YO, ShowButton as xN, useNotify as Ov, useDataProvider as Ii, useResourceContext as ut, useListContext as Vo, useRedirect as Go, useUnselectAll as CN, ResourceDefinitionContext as JO, useStoreContext as wN, NumberField as TN, DateField as nx, TextField as Rl, ReferenceField as EN, useResourceDefinition as If, useGetResourceLabel as Rf, ResourceContextProvider as ba, useRecordContext as Nr, useCreatePath as ON, BulkActionsToolbar as XO, Button as $n, useInput as Uc, useGetList as QO, Labeled as kv, Confirm as Pf, Form as el, SaveButton as Gc, useGetOne as ZO, useCreateController as kN, CreateContextProvider as MN, useDeleteWithConfirmController as IN, Toolbar as ek, ToolbarClasses as RN, useDelete as tk, useSaveContext as PN, Create as AN, Loading as Ws, useListController as NN, ListContextProvider as nk, List as rk, Filter as DN, SearchInput as ok, Pagination as $N, Edit as LN, useEditContext as FN, useSidebarState as ik, Menu as _N, DashboardMenuItem as BN, MenuItemLink as sk, Layout as zN, FilterContext as VN, FilterButton as jN, sanitizeListRestProps as WN, useLogin as HN, TextInput as bo, PasswordInput as ak, Show as qN, useShowContext as UN, useSplatPathBase as GN, getTabbedFormTabFullPath as Mu, TabbedFormTabs as lk, defaultTheme as ck, FormTab as KN, BooleanField as YN, ImageInput as JN, ImageField as XN, FileInput as QN, BooleanInput as ZN, ReferenceInput as uk, AutocompleteInput as dk, useChoicesContext as pk, SelectInput as eD, ReferenceArrayInput as tD, AutocompleteArrayInput as nD, RadioButtonGroupInput as fk, useRecordSelection as hk, ListActions as rD, Datagrid as oD, SelectAllButton as iD, ValidationError as sD, FieldTitle as mk } from "react-admin";
|
|
10
10
|
import { Link as yy, useNavigate as Af, useLocation as lr, Routes as gk, Route as yk, useParams as bk, matchPath as yc } from "react-router-dom";
|
|
11
11
|
import { useGridApiContext as Ri, useGridSelector as Aa, gridColumnVisibilityModelSelector as vk, gridColumnDefinitionsSelector as Sk, GridColumnIcon as aD, gridSortModelSelector as lD, GridArrowUpwardIcon as cD, GridArrowDownwardIcon as uD, GridToolbarFilterButton as dD, GridToolbarExportContainer as pD, useGridRootProps as xk, GridToolbarContainer as fD, GridClearIcon as hD, GridToolbarQuickFilter as mD, GridPivotIcon as gD, getGridDateOperators as yD, useGridApiRef as Mv, gridClasses as by, useKeepGroupedColumnsHidden as Ck, GridActionsCellItem as gl, isAutogeneratedRow as Iu, DataGridPremium as Iv } from "@mui/x-data-grid-premium";
|
|
12
12
|
import { useFormContext as En, useFormState as bD, useWatch as vD, useController as SD } from "react-hook-form";
|
|
@@ -6589,7 +6589,7 @@ function Vd(t) {
|
|
|
6589
6589
|
return [u, d];
|
|
6590
6590
|
}
|
|
6591
6591
|
s(Vd, "useControlled");
|
|
6592
|
-
function
|
|
6592
|
+
function Ln(t) {
|
|
6593
6593
|
const e = S.useRef(t);
|
|
6594
6594
|
return Tn(() => {
|
|
6595
6595
|
e.current = t;
|
|
@@ -6598,7 +6598,7 @@ function $n(t) {
|
|
|
6598
6598
|
(0, e.current)(...n)
|
|
6599
6599
|
)).current;
|
|
6600
6600
|
}
|
|
6601
|
-
s(
|
|
6601
|
+
s(Ln, "useEventCallback");
|
|
6602
6602
|
function Lt(...t) {
|
|
6603
6603
|
const e = S.useRef(void 0), n = S.useCallback((r) => {
|
|
6604
6604
|
const o = t.map((i) => {
|
|
@@ -8315,10 +8315,10 @@ function u5(t) {
|
|
|
8315
8315
|
_u.mount(C(), {
|
|
8316
8316
|
disableScrollLock: r
|
|
8317
8317
|
}), m.current && (m.current.scrollTop = 0);
|
|
8318
|
-
}, "handleMounted"), O =
|
|
8318
|
+
}, "handleMounted"), O = Ln(() => {
|
|
8319
8319
|
const I = l5(e) || w().body;
|
|
8320
8320
|
_u.add(C(), I), m.current && E();
|
|
8321
|
-
}), M = /* @__PURE__ */ s(() => _u.isTopModal(C()), "isTopModal"), N =
|
|
8321
|
+
}), M = /* @__PURE__ */ s(() => _u.isTopModal(C()), "isTopModal"), N = Ln((I) => {
|
|
8322
8322
|
h.current = I, I && (d && M() ? E() : m.current && Hl(m.current, T));
|
|
8323
8323
|
}), R = S.useCallback(() => {
|
|
8324
8324
|
_u.remove(C(), T);
|
|
@@ -10936,7 +10936,7 @@ const Fy = /* @__PURE__ */ s((t = "scope") => (pC += 1, `${t}-${pC}`), "createRe
|
|
|
10936
10936
|
}, "useIdContext"), Xo = /* @__PURE__ */ s(() => {
|
|
10937
10937
|
const t = tt(l0) || {};
|
|
10938
10938
|
return tt(uu)?.reduxScope || t?.reduxScope;
|
|
10939
|
-
}, "useReduxScope"),
|
|
10939
|
+
}, "useReduxScope"), jn = /* @__PURE__ */ s((t) => {
|
|
10940
10940
|
const { source: e } = t, {
|
|
10941
10941
|
estado: n,
|
|
10942
10942
|
isLoading: r,
|
|
@@ -10945,7 +10945,7 @@ const Fy = /* @__PURE__ */ s((t = "scope") => (pC += 1, `${t}-${pC}`), "createRe
|
|
|
10945
10945
|
} = Nt(), l = tt(uu) !== void 0, u = Xo(), d = Rv((Xe) => a0(Xe.configInputs, e, u)), {
|
|
10946
10946
|
conts: p = []
|
|
10947
10947
|
//user = [],
|
|
10948
|
-
} = tt(
|
|
10948
|
+
} = tt(Fn) || {}, {
|
|
10949
10949
|
hidden: f,
|
|
10950
10950
|
required: h,
|
|
10951
10951
|
disabled: m,
|
|
@@ -11137,7 +11137,7 @@ const Fy = /* @__PURE__ */ s((t = "scope") => (pC += 1, `${t}-${pC}`), "createRe
|
|
|
11137
11137
|
sort: M,
|
|
11138
11138
|
...N
|
|
11139
11139
|
}) => N, "sanitizeRestProps$5"), nte = /* @__PURE__ */ s((t) => {
|
|
11140
|
-
const { hidden: e } =
|
|
11140
|
+
const { hidden: e } = jn(t);
|
|
11141
11141
|
return !e && /* @__PURE__ */ b(
|
|
11142
11142
|
sn,
|
|
11143
11143
|
{
|
|
@@ -11232,7 +11232,7 @@ const Fy = /* @__PURE__ */ s((t = "scope") => (pC += 1, `${t}-${pC}`), "createRe
|
|
|
11232
11232
|
hour12: !1
|
|
11233
11233
|
};
|
|
11234
11234
|
return t.toLocaleString("es", e).replace(",", "");
|
|
11235
|
-
}, "dateTimeToString"),
|
|
11235
|
+
}, "dateTimeToString"), Fn = S.createContext(), LM = Yt(), m4 = /* @__PURE__ */ s((t) => t == null || t === "" || t === "0" ? [] : t === "-1" ? ["-1"] : String(t).split(",").map((e) => e.trim()).filter(Boolean), "normalizarPermisosBotones"), du = /* @__PURE__ */ s((t, e) => {
|
|
11236
11236
|
if (!e)
|
|
11237
11237
|
return !0;
|
|
11238
11238
|
const n = m4(t?.permisosBotones);
|
|
@@ -14702,16 +14702,16 @@ const _3 = De("MuiButtonBase", ["root", "disabled", "focusVisible"]), B3 = /* @_
|
|
|
14702
14702
|
F && fe.preventDefault(), N && N(fe);
|
|
14703
14703
|
}, f), Q = Ro(V, "start", k, f), ee = Ro(V, "stop", L, f), ae = Ro(V, "stop", A, f), j = Ro(V, "stop", (fe) => {
|
|
14704
14704
|
Va(fe.target) || H(!1), g && g(fe);
|
|
14705
|
-
}, !1), ge =
|
|
14705
|
+
}, !1), ge = Ln((fe) => {
|
|
14706
14706
|
B.current || (B.current = fe.currentTarget), Va(fe.target) && (H(!0), C && C(fe)), w && w(fe);
|
|
14707
14707
|
}), J = /* @__PURE__ */ s(() => {
|
|
14708
14708
|
const fe = B.current;
|
|
14709
14709
|
return u && u !== "button" && !(fe.tagName === "A" && fe.href);
|
|
14710
|
-
}, "isNonNativeButton"), re =
|
|
14710
|
+
}, "isNonNativeButton"), re = Ln((fe) => {
|
|
14711
14711
|
h && !fe.repeat && F && fe.key === " " && V.stop(fe, () => {
|
|
14712
14712
|
V.start(fe);
|
|
14713
14713
|
}), fe.target === fe.currentTarget && J() && fe.key === " " && fe.preventDefault(), E && E(fe), fe.target === fe.currentTarget && J() && fe.key === "Enter" && !d && (fe.preventDefault(), v && v(fe));
|
|
14714
|
-
}), se =
|
|
14714
|
+
}), se = Ln((fe) => {
|
|
14715
14715
|
h && fe.key === " " && F && !fe.defaultPrevented && V.stop(fe, () => {
|
|
14716
14716
|
V.pulsate(fe);
|
|
14717
14717
|
}), O && O(fe), v && fe.target === fe.currentTarget && J() && fe.key === " " && !fe.defaultPrevented && v(fe);
|
|
@@ -14765,7 +14765,7 @@ const _3 = De("MuiButtonBase", ["root", "disabled", "focusVisible"]), B3 = /* @_
|
|
|
14765
14765
|
});
|
|
14766
14766
|
}, "ButtonBase"));
|
|
14767
14767
|
function Ro(t, e, n, r = !1) {
|
|
14768
|
-
return
|
|
14768
|
+
return Ln((o) => (n && n(o), r || t[e](o), !0));
|
|
14769
14769
|
}
|
|
14770
14770
|
s(Ro, "useRippleHandler");
|
|
14771
14771
|
process.env.NODE_ENV !== "production" && (Ni.propTypes = {
|
|
@@ -15274,7 +15274,7 @@ const TI = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
15274
15274
|
outerHeightStyle: P,
|
|
15275
15275
|
overflowing: $
|
|
15276
15276
|
};
|
|
15277
|
-
}, [o, i, e.placeholder]), g =
|
|
15277
|
+
}, [o, i, e.placeholder]), g = Ln(() => {
|
|
15278
15278
|
const w = p.current, C = y();
|
|
15279
15279
|
if (!w || !C || EC(C))
|
|
15280
15280
|
return !1;
|
|
@@ -21783,7 +21783,7 @@ const Ij = /* @__PURE__ */ s((t) => {
|
|
|
21783
21783
|
value: F,
|
|
21784
21784
|
open: re,
|
|
21785
21785
|
error: m
|
|
21786
|
-
}, Xt = Ij(at),
|
|
21786
|
+
}, Xt = Ij(at), Nn = {
|
|
21787
21787
|
...x.PaperProps,
|
|
21788
21788
|
...typeof x.slotProps?.paper == "function" ? x.slotProps.paper(at) : x.slotProps?.paper
|
|
21789
21789
|
}, rn = {
|
|
@@ -21864,10 +21864,10 @@ const Ij = /* @__PURE__ */ s((t) => {
|
|
|
21864
21864
|
...rn
|
|
21865
21865
|
},
|
|
21866
21866
|
paper: {
|
|
21867
|
-
...
|
|
21867
|
+
...Nn,
|
|
21868
21868
|
style: {
|
|
21869
21869
|
minWidth: Xe,
|
|
21870
|
-
...
|
|
21870
|
+
...Nn != null ? Nn.style : null
|
|
21871
21871
|
}
|
|
21872
21872
|
}
|
|
21873
21873
|
},
|
|
@@ -23635,13 +23635,13 @@ const mu = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
23635
23635
|
`));
|
|
23636
23636
|
}, [P, _, _e]);
|
|
23637
23637
|
}
|
|
23638
|
-
const ge = qs(T), J = S.useRef(), re =
|
|
23638
|
+
const ge = qs(T), J = S.useRef(), re = Ln(() => {
|
|
23639
23639
|
J.current !== void 0 && (document.body.style.WebkitUserSelect = J.current, J.current = void 0), Q.clear();
|
|
23640
23640
|
});
|
|
23641
23641
|
S.useEffect(() => re, [re]);
|
|
23642
23642
|
const se = /* @__PURE__ */ s((_e) => {
|
|
23643
23643
|
qC.clear(), ju = !0, ae(!0), O && !j && O(_e);
|
|
23644
|
-
}, "handleOpen"), ye =
|
|
23644
|
+
}, "handleOpen"), ye = Ln(
|
|
23645
23645
|
/**
|
|
23646
23646
|
* @param {React.SyntheticEvent | Event} event
|
|
23647
23647
|
*/
|
|
@@ -23732,7 +23732,7 @@ const mu = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
23732
23732
|
placement: N,
|
|
23733
23733
|
PopperComponentProp: R,
|
|
23734
23734
|
touch: ne.current
|
|
23735
|
-
}, Xt = typeof A.popper == "function" ? A.popper(at) : A.popper,
|
|
23735
|
+
}, Xt = typeof A.popper == "function" ? A.popper(at) : A.popper, Nn = S.useMemo(() => {
|
|
23736
23736
|
let _e = [{
|
|
23737
23737
|
name: "arrow",
|
|
23738
23738
|
enabled: !!H,
|
|
@@ -23808,7 +23808,7 @@ const mu = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
23808
23808
|
transition: !0,
|
|
23809
23809
|
...Rt,
|
|
23810
23810
|
...ht,
|
|
23811
|
-
popperOptions:
|
|
23811
|
+
popperOptions: Nn,
|
|
23812
23812
|
children: /* @__PURE__ */ s(({
|
|
23813
23813
|
TransitionProps: _e
|
|
23814
23814
|
}) => /* @__PURE__ */ b(Ft, {
|
|
@@ -24653,7 +24653,7 @@ const UI = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
24653
24653
|
tabsMeta: le,
|
|
24654
24654
|
tabMeta: qe
|
|
24655
24655
|
};
|
|
24656
|
-
}, "getTabsMeta"), Fe =
|
|
24656
|
+
}, "getTabsMeta"), Fe = Ln(() => {
|
|
24657
24657
|
const {
|
|
24658
24658
|
tabsMeta: be,
|
|
24659
24659
|
tabMeta: le
|
|
@@ -24745,7 +24745,7 @@ const UI = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
24745
24745
|
disabled: !ee,
|
|
24746
24746
|
...Rt
|
|
24747
24747
|
}) : null, be;
|
|
24748
|
-
}, "getConditionalElements"), Xt =
|
|
24748
|
+
}, "getConditionalElements"), Xt = Ln((be) => {
|
|
24749
24749
|
const {
|
|
24750
24750
|
tabsMeta: le,
|
|
24751
24751
|
tabMeta: qe
|
|
@@ -24763,7 +24763,7 @@ const UI = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
24763
24763
|
});
|
|
24764
24764
|
}
|
|
24765
24765
|
}
|
|
24766
|
-
}),
|
|
24766
|
+
}), Nn = Ln(() => {
|
|
24767
24767
|
P && T !== !1 && ge(!j);
|
|
24768
24768
|
});
|
|
24769
24769
|
S.useEffect(() => {
|
|
@@ -24778,7 +24778,7 @@ const UI = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
24778
24778
|
}), Qr.addedNodes.forEach((ko) => {
|
|
24779
24779
|
le?.observe(ko);
|
|
24780
24780
|
});
|
|
24781
|
-
}), be(),
|
|
24781
|
+
}), be(), Nn();
|
|
24782
24782
|
}, "handleMutation"), Qe = wn(ye.current);
|
|
24783
24783
|
Qe.addEventListener("resize", be);
|
|
24784
24784
|
let Pt;
|
|
@@ -24789,7 +24789,7 @@ const UI = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
24789
24789
|
})), () => {
|
|
24790
24790
|
be.clear(), Qe.removeEventListener("resize", be), Pt?.disconnect(), le?.disconnect();
|
|
24791
24791
|
};
|
|
24792
|
-
}, [Fe,
|
|
24792
|
+
}, [Fe, Nn]), S.useEffect(() => {
|
|
24793
24793
|
const be = Array.from(pe.current.children), le = be.length;
|
|
24794
24794
|
if (typeof IntersectionObserver < "u" && le > 0 && P && T !== !1) {
|
|
24795
24795
|
const qe = be[0], Qe = be[le - 1], Pt = {
|
|
@@ -24814,8 +24814,8 @@ const UI = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
24814
24814
|
Xt(KC !== X);
|
|
24815
24815
|
}, [Xt, X]), S.useImperativeHandle(u, () => ({
|
|
24816
24816
|
updateIndicator: Fe,
|
|
24817
|
-
updateScrollButtons:
|
|
24818
|
-
}), [Fe,
|
|
24817
|
+
updateScrollButtons: Nn
|
|
24818
|
+
}), [Fe, Nn]);
|
|
24819
24819
|
const [rn, er] = Be("indicator", {
|
|
24820
24820
|
className: ie(F.indicator, O.className),
|
|
24821
24821
|
elementType: f6,
|
|
@@ -27882,7 +27882,7 @@ const BW = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
|
|
|
27882
27882
|
const ye = I.current.style;
|
|
27883
27883
|
ye.opacity = 1 - W / El(ge, D.current), ee && (ye.webkitTransition = se, ye.transition = se);
|
|
27884
27884
|
}
|
|
27885
|
-
}, [a, l, p, o, O]), F =
|
|
27885
|
+
}, [a, l, p, o, O]), F = Ln((W) => {
|
|
27886
27886
|
if (!B.current)
|
|
27887
27887
|
return;
|
|
27888
27888
|
if (Po = null, B.current = !1, vy.flushSync(() => {
|
|
@@ -27915,7 +27915,7 @@ const BW = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
|
|
|
27915
27915
|
changeTransition: !1
|
|
27916
27916
|
}), P.current.velocity = 0, P.current.lastTime = null, P.current.lastTranslate = null, P.current.paperHit = !1, B.current = !0;
|
|
27917
27917
|
}
|
|
27918
|
-
}, "startMaybeSwiping"), Y =
|
|
27918
|
+
}, "startMaybeSwiping"), Y = Ln((W) => {
|
|
27919
27919
|
if (!D.current || !B.current || Po !== null && Po !== P.current)
|
|
27920
27920
|
return;
|
|
27921
27921
|
H(!0);
|
|
@@ -27959,7 +27959,7 @@ const BW = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
|
|
|
27959
27959
|
P.current.lastTranslate === null && (P.current.lastTranslate = J, P.current.lastTime = performance.now() + 1);
|
|
27960
27960
|
const re = (J - P.current.lastTranslate) / (performance.now() - P.current.lastTime) * 1e3;
|
|
27961
27961
|
P.current.velocity = P.current.velocity * 0.4 + re * 0.6, P.current.lastTranslate = J, P.current.lastTime = performance.now(), W.cancelable && W.preventDefault(), _(J);
|
|
27962
|
-
}), ne =
|
|
27962
|
+
}), ne = Ln((W) => {
|
|
27963
27963
|
if (W.defaultPrevented || W.defaultMuiPrevented || T && (p || !I.current.contains(W.target)) && !D.current.contains(W.target))
|
|
27964
27964
|
return;
|
|
27965
27965
|
const U = Ll(o, a), Q = es(a), ee = Em(U, W.touches, on(W.currentTarget)), ae = Om(U, W.touches, wn(W.currentTarget));
|
|
@@ -28498,7 +28498,7 @@ const HW = {
|
|
|
28498
28498
|
fetchRowsForExport: e,
|
|
28499
28499
|
...n
|
|
28500
28500
|
}) => {
|
|
28501
|
-
const [r, o] = Ie(null), [i, a] = Ie(!1), l = Ri(), u = Ov(), { csvOptions: d = {}, excelOptions: p = {}, printOptions: f = {}, ...h } = n, { slotProps: m = {}, ...y } = h, g = ut(), v = If({ resource: g }), x = S.useContext(
|
|
28501
|
+
const [r, o] = Ie(null), [i, a] = Ie(!1), l = Ri(), u = Ov(), { csvOptions: d = {}, excelOptions: p = {}, printOptions: f = {}, ...h } = n, { slotProps: m = {}, ...y } = h, g = ut(), v = If({ resource: g }), x = S.useContext(Fn) || {};
|
|
28502
28502
|
Re(() => {
|
|
28503
28503
|
t?.current && o(t.current);
|
|
28504
28504
|
}, [t]);
|
|
@@ -28907,7 +28907,7 @@ const eb = me(/* @__PURE__ */ b("path", {
|
|
|
28907
28907
|
}, "removeStoredSize"), lH = /* @__PURE__ */ s((t, e) => {
|
|
28908
28908
|
!t || !e || (t.style.width = `${Math.round(e.width)}px`, t.style.height = `${Math.round(e.height)}px`, t.style.maxWidth = `${Math.round(e.maxWidth)}px`, t.style.maxHeight = `${Math.round(e.maxHeight)}px`, t.style.minWidth = `${Math.round(e.minWidth)}px`, t.style.minHeight = `${Math.round(e.minHeight)}px`);
|
|
28909
28909
|
}, "applyPopupSizeStyles"), rp = /* @__PURE__ */ s((t) => {
|
|
28910
|
-
const e = ut(), n = t?.resource ?? e ?? "default", o = Jo()?.props, i = t?.dockviewTabParent === !0, a = S.useContext(
|
|
28910
|
+
const e = ut(), n = t?.resource ?? e ?? "default", o = Jo()?.props, i = t?.dockviewTabParent === !0, a = S.useContext(Fn) || {}, l = a?.popup ?? a?.popupSize ?? null, u = S.useMemo(
|
|
28911
28911
|
() => rH(l, t?.popupRatio),
|
|
28912
28912
|
[l, t?.popupRatio]
|
|
28913
28913
|
), d = Ir((L) => L.breakpoints.down("sm")), [p, f] = S.useState(null), h = S.useMemo(
|
|
@@ -29756,7 +29756,7 @@ const eb = me(/* @__PURE__ */ b("path", {
|
|
|
29756
29756
|
...l
|
|
29757
29757
|
} = t, u = nn(), d = o ? u(o, { _: o }) : void 0, p = TH(a);
|
|
29758
29758
|
return o && !r ? /* @__PURE__ */ b(zo, { title: d, children: /* @__PURE__ */ b(
|
|
29759
|
-
|
|
29759
|
+
Dn,
|
|
29760
29760
|
{
|
|
29761
29761
|
"aria-label": d,
|
|
29762
29762
|
className: n,
|
|
@@ -29767,7 +29767,7 @@ const eb = me(/* @__PURE__ */ b("path", {
|
|
|
29767
29767
|
children: e
|
|
29768
29768
|
}
|
|
29769
29769
|
) }) : /* @__PURE__ */ b(
|
|
29770
|
-
|
|
29770
|
+
Dn,
|
|
29771
29771
|
{
|
|
29772
29772
|
className: n,
|
|
29773
29773
|
color: i,
|
|
@@ -30082,7 +30082,7 @@ const eb = me(/* @__PURE__ */ b("path", {
|
|
|
30082
30082
|
const n = String(e ?? "").trim().toLowerCase();
|
|
30083
30083
|
return n === "borrar" || n === "delete";
|
|
30084
30084
|
}), "isDeleteActionHidden"), PR = S.forwardRef((t, e) => {
|
|
30085
|
-
const { material: n, ...r } = t, o = typeof r["aria-label"] == "string" ? r["aria-label"] : "", i = /* @__PURE__ */ b(
|
|
30085
|
+
const { material: n, ...r } = t, o = typeof r["aria-label"] == "string" ? r["aria-label"] : "", i = /* @__PURE__ */ b(Dn, { ref: e, ...r, ...n });
|
|
30086
30086
|
return o ? /* @__PURE__ */ b(zo, { title: o, children: /* @__PURE__ */ b("span", { children: i }) }) : i;
|
|
30087
30087
|
});
|
|
30088
30088
|
process.env.NODE_ENV !== "production" && (PR.displayName = "BaseIconButtonWithTitle");
|
|
@@ -30192,7 +30192,7 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
30192
30192
|
...pe?.aggregationFunctions || {}
|
|
30193
30193
|
};
|
|
30194
30194
|
return q.count || (q.count = Sw.count), q;
|
|
30195
|
-
}, [I?.aggregationFunctions, pe?.aggregationFunctions]),
|
|
30195
|
+
}, [I?.aggregationFunctions, pe?.aggregationFunctions]), Nn = Ii(), {
|
|
30196
30196
|
data: rn = [],
|
|
30197
30197
|
isFetching: er,
|
|
30198
30198
|
selectedIds: Se,
|
|
@@ -30308,7 +30308,7 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
30308
30308
|
),
|
|
30309
30309
|
groupFields: JSON.stringify(oe.groupFields ?? []),
|
|
30310
30310
|
groupKeys: JSON.stringify(oe.groupKeys ?? [])
|
|
30311
|
-
}, Mo =
|
|
30311
|
+
}, Mo = Nn.getList(G, {
|
|
30312
30312
|
pagination: { page: dt, perPage: Qt },
|
|
30313
30313
|
sort: { field: hn, order: Oe },
|
|
30314
30314
|
filter: qt,
|
|
@@ -30381,7 +30381,7 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
30381
30381
|
}, [
|
|
30382
30382
|
Ce,
|
|
30383
30383
|
v,
|
|
30384
|
-
|
|
30384
|
+
Nn,
|
|
30385
30385
|
st,
|
|
30386
30386
|
ce,
|
|
30387
30387
|
G,
|
|
@@ -30398,7 +30398,7 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
30398
30398
|
};
|
|
30399
30399
|
},
|
|
30400
30400
|
[]
|
|
30401
|
-
), P2 = L ?? (zi ? ul : void 0), { showCreate: MS, showEdit: Vh } = $0({ resource: G }), IS = tt(
|
|
30401
|
+
), P2 = L ?? (zi ? ul : void 0), { showCreate: MS, showEdit: Vh } = $0({ resource: G }), IS = tt(Fn) || {}, {
|
|
30402
30402
|
hiddenactions: xu = [],
|
|
30403
30403
|
user: Cu = [],
|
|
30404
30404
|
lang: RS = []
|
|
@@ -30439,7 +30439,7 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
30439
30439
|
return null;
|
|
30440
30440
|
const oe = !!q.rowNode.childrenExpanded;
|
|
30441
30441
|
return /* @__PURE__ */ b(
|
|
30442
|
-
|
|
30442
|
+
Dn,
|
|
30443
30443
|
{
|
|
30444
30444
|
size: "small",
|
|
30445
30445
|
onClick: /* @__PURE__ */ s((Ke) => {
|
|
@@ -30710,33 +30710,33 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
30710
30710
|
Y,
|
|
30711
30711
|
Js,
|
|
30712
30712
|
ce
|
|
30713
|
-
]),
|
|
30713
|
+
]), Wn = PH({
|
|
30714
30714
|
apiRef: Ce,
|
|
30715
30715
|
columns: VS,
|
|
30716
30716
|
enabled: !ce
|
|
30717
30717
|
}), F2 = S.useCallback(
|
|
30718
30718
|
(q, oe, we) => {
|
|
30719
|
-
|
|
30719
|
+
Wn.onColumnWidthChange(q), Xe?.onColumnWidthChange?.(q, oe, we), Pe?.onColumnWidthChange?.(
|
|
30720
30720
|
q,
|
|
30721
30721
|
oe,
|
|
30722
30722
|
we
|
|
30723
30723
|
);
|
|
30724
30724
|
},
|
|
30725
|
-
[
|
|
30725
|
+
[Wn, Pe, Xe]
|
|
30726
30726
|
), _2 = S.useCallback(
|
|
30727
30727
|
(q, oe, we) => {
|
|
30728
|
-
|
|
30728
|
+
Wn.onColumnOrderChange(q), Xe?.onColumnOrderChange?.(q, oe, we), Pe?.onColumnOrderChange?.(
|
|
30729
30729
|
q,
|
|
30730
30730
|
oe,
|
|
30731
30731
|
we
|
|
30732
30732
|
);
|
|
30733
30733
|
},
|
|
30734
|
-
[
|
|
30734
|
+
[Wn, Pe, Xe]
|
|
30735
30735
|
), Hh = S.useMemo(
|
|
30736
|
-
() =>
|
|
30736
|
+
() => Wn.columns.find(
|
|
30737
30737
|
(q) => q?.field === "actions" && typeof q?.getActions == "function"
|
|
30738
30738
|
) ?? null,
|
|
30739
|
-
[
|
|
30739
|
+
[Wn.columns]
|
|
30740
30740
|
), jS = S.useCallback((q) => {
|
|
30741
30741
|
const we = (q.currentTarget instanceof HTMLDivElement ? q.currentTarget : null)?.getAttribute("data-id");
|
|
30742
30742
|
return we || (typeof document > "u" ? null : document.elementsFromPoint(q.clientX, q.clientY).find(
|
|
@@ -30822,16 +30822,16 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
30822
30822
|
}, [
|
|
30823
30823
|
wu,
|
|
30824
30824
|
ce,
|
|
30825
|
-
|
|
30825
|
+
Wn.columns?.length,
|
|
30826
30826
|
// si cambian columnas
|
|
30827
30827
|
D
|
|
30828
30828
|
]);
|
|
30829
30829
|
const qh = S.useCallback(() => {
|
|
30830
30830
|
const q = Ce?.current?.getVisibleColumns?.() || [];
|
|
30831
|
-
return q.length ? q.map((oe) => oe.field) :
|
|
30832
|
-
}, [Ce,
|
|
30833
|
-
() =>
|
|
30834
|
-
[
|
|
30831
|
+
return q.length ? q.map((oe) => oe.field) : Wn.columns.filter((oe) => qS(oe.field)).map((oe) => oe.field);
|
|
30832
|
+
}, [Ce, Wn.columns, qS, D]), US = S.useMemo(() => qh().find((we) => !Rm.has(we)) ?? Wn.columns.find((we) => !Rm.has(we.field))?.field ?? Wn.columns[0]?.field, [Wn.columns, qh, D]), pl = S.useMemo(
|
|
30833
|
+
() => Wn.columns,
|
|
30834
|
+
[Wn.columns]
|
|
30835
30835
|
), Uh = S.useMemo(() => {
|
|
30836
30836
|
const q = US;
|
|
30837
30837
|
return pl.map((oe) => {
|
|
@@ -31385,7 +31385,7 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
31385
31385
|
pivotActive: m = !1,
|
|
31386
31386
|
forceListView: y,
|
|
31387
31387
|
...g
|
|
31388
|
-
} = t, v = S.useRef(null), x = tt(
|
|
31388
|
+
} = t, v = S.useRef(null), x = tt(Fn) || {}, { hiddenactions: T = [] } = x, w = RR(T), C = f && !w, { sort: E } = Vo(), O = /* @__PURE__ */ s(() => v.current, "container"), M = Ir((_) => _.breakpoints.down("md")), N = y ?? M, R = y && !M, L = Mv(), {
|
|
31389
31389
|
props: { gridContainerRef: A }
|
|
31390
31390
|
} = Jo(), [k, P] = S.useState({
|
|
31391
31391
|
overlay: null,
|
|
@@ -31586,7 +31586,7 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
31586
31586
|
pivotUi: u
|
|
31587
31587
|
}
|
|
31588
31588
|
) });
|
|
31589
|
-
}, "GrillaEtriek"), GH = Z(
|
|
31589
|
+
}, "GrillaEtriek"), GH = Z($n, {
|
|
31590
31590
|
name: "EtrDeleteButton",
|
|
31591
31591
|
overridesResolver: /* @__PURE__ */ s((t, e) => e.root, "overridesResolver")
|
|
31592
31592
|
})(({ theme: t }) => ({
|
|
@@ -31680,7 +31680,7 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
31680
31680
|
}
|
|
31681
31681
|
),
|
|
31682
31682
|
/* @__PURE__ */ b(
|
|
31683
|
-
|
|
31683
|
+
$n,
|
|
31684
31684
|
{
|
|
31685
31685
|
label: "ra.action.cancel",
|
|
31686
31686
|
onClick: /* @__PURE__ */ s((v) => {
|
|
@@ -31706,7 +31706,7 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
31706
31706
|
} = t, [p, f] = S.useState(!1), h = ut(t), m = En(), y = Ri(), g = QM({ apiRef: y, source: i, enviarTodo: a }), v = "N", { estado: x } = Nt(), T = Yr(), C = nn()("ra.action.create");
|
|
31707
31707
|
return /* @__PURE__ */ K(Un, { children: [
|
|
31708
31708
|
/* @__PURE__ */ b(
|
|
31709
|
-
|
|
31709
|
+
$n,
|
|
31710
31710
|
{
|
|
31711
31711
|
onClick: /* @__PURE__ */ s((O) => {
|
|
31712
31712
|
const M = d ? d(T) : !0;
|
|
@@ -31767,7 +31767,7 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
31767
31767
|
} = t, p = nn(), [f, h] = S.useState(!1), m = Ri(), y = En(), g = ZM({ apiRef: m, source: i, enviarTodo: l }), v = "M", { estado: x } = Nt(), T = Yr(), w = p("ra.action.edit");
|
|
31768
31768
|
return /* @__PURE__ */ K(Un, { children: [
|
|
31769
31769
|
/* @__PURE__ */ b(
|
|
31770
|
-
|
|
31770
|
+
$n,
|
|
31771
31771
|
{
|
|
31772
31772
|
onClick: /* @__PURE__ */ s((E) => {
|
|
31773
31773
|
h(!0), E.stopPropagation();
|
|
@@ -31881,7 +31881,7 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
31881
31881
|
} = Nt(), D = Xo(), z = Rv((le) => a0(le.configInputs, m, D)), {
|
|
31882
31882
|
conts: B = []
|
|
31883
31883
|
//user = [],
|
|
31884
|
-
} = tt(
|
|
31884
|
+
} = tt(Fn), {
|
|
31885
31885
|
hidden: V,
|
|
31886
31886
|
disabled: _,
|
|
31887
31887
|
label: F
|
|
@@ -31968,7 +31968,7 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
31968
31968
|
);
|
|
31969
31969
|
const {
|
|
31970
31970
|
slots: Xt,
|
|
31971
|
-
slotProps:
|
|
31971
|
+
slotProps: Nn,
|
|
31972
31972
|
...rn
|
|
31973
31973
|
} = at || {}, {
|
|
31974
31974
|
columns: er,
|
|
@@ -31986,7 +31986,7 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
31986
31986
|
const dr = {
|
|
31987
31987
|
...re || {},
|
|
31988
31988
|
...He || {},
|
|
31989
|
-
...
|
|
31989
|
+
...Nn || {},
|
|
31990
31990
|
...x || {}
|
|
31991
31991
|
}, _t = o.map((le) => ({
|
|
31992
31992
|
...le,
|
|
@@ -32416,7 +32416,7 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
32416
32416
|
return /* @__PURE__ */ K(r9, { id: "edit-dialog-title", children: [
|
|
32417
32417
|
wr(i) ? Gn(i, { record: o }) : i ? e(i, { _: i }) : n,
|
|
32418
32418
|
/* @__PURE__ */ b(
|
|
32419
|
-
|
|
32419
|
+
Dn,
|
|
32420
32420
|
{
|
|
32421
32421
|
"aria-label": e("ra.action.close"),
|
|
32422
32422
|
className: FR.closeButton,
|
|
@@ -32582,7 +32582,7 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
32582
32582
|
},
|
|
32583
32583
|
[o]
|
|
32584
32584
|
), m = e(u, { _: u }), y = d ? /* @__PURE__ */ b(zo, { title: m, children: /* @__PURE__ */ b(
|
|
32585
|
-
|
|
32585
|
+
Dn,
|
|
32586
32586
|
{
|
|
32587
32587
|
"aria-label": m,
|
|
32588
32588
|
size: "small",
|
|
@@ -32591,7 +32591,7 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
32591
32591
|
onClick: h,
|
|
32592
32592
|
children: l
|
|
32593
32593
|
}
|
|
32594
|
-
) }) : /* @__PURE__ */ b(
|
|
32594
|
+
) }) : /* @__PURE__ */ b($n, { label: m, ...f, onClick: h, children: l });
|
|
32595
32595
|
return /* @__PURE__ */ K(_R.Provider, { value: a, children: [
|
|
32596
32596
|
y,
|
|
32597
32597
|
p
|
|
@@ -32632,7 +32632,7 @@ const HH = S.memo(/* @__PURE__ */ s(function({
|
|
|
32632
32632
|
);
|
|
32633
32633
|
return /* @__PURE__ */ K(Un, { children: [
|
|
32634
32634
|
/* @__PURE__ */ b(
|
|
32635
|
-
|
|
32635
|
+
$n,
|
|
32636
32636
|
{
|
|
32637
32637
|
label: "ra.action.delete",
|
|
32638
32638
|
onClick: f,
|
|
@@ -32840,7 +32840,7 @@ const jR = /* @__PURE__ */ s(() => {
|
|
|
32840
32840
|
})) : (l({}), () => {
|
|
32841
32841
|
L = !1;
|
|
32842
32842
|
});
|
|
32843
|
-
}, [d, n, h, M, p, f]), n && a === null ? /* @__PURE__ */ b(Ws, { loadingPrimary: "", loadingSecondary: "", timeout: 0 }) : /* @__PURE__ */ b(c0, { value: R, children: /* @__PURE__ */ b(
|
|
32843
|
+
}, [d, n, h, M, p, f]), n && a === null ? /* @__PURE__ */ b(Ws, { loadingPrimary: "", loadingSecondary: "", timeout: 0 }) : /* @__PURE__ */ b(c0, { value: R, children: /* @__PURE__ */ b(Fn.Provider, { value: a, children: e }) });
|
|
32844
32844
|
}, "CreateChildren"), Mw = /* @__PURE__ */ s((t) => {
|
|
32845
32845
|
const e = lr(), {
|
|
32846
32846
|
useFormulario: n,
|
|
@@ -33151,7 +33151,7 @@ const jR = /* @__PURE__ */ s(() => {
|
|
|
33151
33151
|
handleSeleccionMultiple: $,
|
|
33152
33152
|
hideViewModeMenu: a,
|
|
33153
33153
|
hideGridToolbarActions: l,
|
|
33154
|
-
children: /* @__PURE__ */ b($a, { children: /* @__PURE__ */ b(
|
|
33154
|
+
children: /* @__PURE__ */ b($a, { children: /* @__PURE__ */ b(Fn.Provider, { value: x, children: /* @__PURE__ */ b(lC, { children: /* @__PURE__ */ b(
|
|
33155
33155
|
tb.Provider,
|
|
33156
33156
|
{
|
|
33157
33157
|
value: u ?? (() => {
|
|
@@ -33184,7 +33184,7 @@ const jR = /* @__PURE__ */ s(() => {
|
|
|
33184
33184
|
handleSeleccionMultiple: $,
|
|
33185
33185
|
hideViewModeMenu: a,
|
|
33186
33186
|
hideGridToolbarActions: l,
|
|
33187
|
-
children: /* @__PURE__ */ b($a, { children: /* @__PURE__ */ b(
|
|
33187
|
+
children: /* @__PURE__ */ b($a, { children: /* @__PURE__ */ b(Fn.Provider, { value: x, children: /* @__PURE__ */ b(lC, { children: /* @__PURE__ */ b(
|
|
33188
33188
|
tb.Provider,
|
|
33189
33189
|
{
|
|
33190
33190
|
value: u ?? (() => {
|
|
@@ -33294,7 +33294,7 @@ const jR = /* @__PURE__ */ s(() => {
|
|
|
33294
33294
|
}), () => {
|
|
33295
33295
|
w = !1;
|
|
33296
33296
|
}));
|
|
33297
|
-
}, [u, g, h, d, p]), i === null ? /* @__PURE__ */ b(Ws, { loadingPrimary: "", loadingSecondary: "", timeout: 0 }) : /* @__PURE__ */ b(c0, { value: T, children: /* @__PURE__ */ b(
|
|
33297
|
+
}, [u, g, h, d, p]), i === null ? /* @__PURE__ */ b(Ws, { loadingPrimary: "", loadingSecondary: "", timeout: 0 }) : /* @__PURE__ */ b(c0, { value: T, children: /* @__PURE__ */ b(Fn.Provider, { value: i, children: e }) });
|
|
33298
33298
|
}, "EditChildren"), Nw = /* @__PURE__ */ s((t) => {
|
|
33299
33299
|
const e = lr(), {
|
|
33300
33300
|
useFormulario: n,
|
|
@@ -33412,7 +33412,7 @@ const jR = /* @__PURE__ */ s(() => {
|
|
|
33412
33412
|
] }),
|
|
33413
33413
|
(u || d) && /* @__PURE__ */ K(au, { children: [
|
|
33414
33414
|
d && /* @__PURE__ */ b(
|
|
33415
|
-
|
|
33415
|
+
$n,
|
|
33416
33416
|
{
|
|
33417
33417
|
label: "ra.action.cancel",
|
|
33418
33418
|
disabled: p,
|
|
@@ -33782,7 +33782,7 @@ const jR = /* @__PURE__ */ s(() => {
|
|
|
33782
33782
|
},
|
|
33783
33783
|
[i, r]
|
|
33784
33784
|
);
|
|
33785
|
-
return /* @__PURE__ */ b(
|
|
33785
|
+
return /* @__PURE__ */ b($n, { label: e, onClick: a, ...o, children: n });
|
|
33786
33786
|
}, "RefreshButton"), G9 = /* @__PURE__ */ b(q9, {}), K9 = /* @__PURE__ */ s((t, e) => {
|
|
33787
33787
|
alert("Falta implementar la función jsBotonGrilla");
|
|
33788
33788
|
}, "defaultJsBotonGrilla"), GR = /* @__PURE__ */ s((t, e) => (t || []).map((n) => {
|
|
@@ -33822,7 +33822,7 @@ const jR = /* @__PURE__ */ s(() => {
|
|
|
33822
33822
|
jsBotonGrilla: u = K9,
|
|
33823
33823
|
refresh: d = !0,
|
|
33824
33824
|
...p
|
|
33825
|
-
} = t, [f, h] = S.useState(null), [m, y] = S.useState(null), [g, v] = S.useState({}), { displayedFilters: x, filterValues: T, exporter: w, showFilter: C } = Vo(), E = ut(t), { hasCreate: O } = If(t), M = tt(VN) || r, N = Vo(), R = th(t), L = tt(
|
|
33825
|
+
} = t, [f, h] = S.useState(null), [m, y] = S.useState(null), [g, v] = S.useState({}), { displayedFilters: x, filterValues: T, exporter: w, showFilter: C } = Vo(), E = ut(t), { hasCreate: O } = If(t), M = tt(VN) || r, N = Vo(), R = th(t), L = tt(Fn) || {}, {
|
|
33826
33826
|
props: {
|
|
33827
33827
|
hasCreate: A,
|
|
33828
33828
|
hasSeleccionMultiple: k,
|
|
@@ -33978,7 +33978,7 @@ const jR = /* @__PURE__ */ s(() => {
|
|
|
33978
33978
|
context: "button"
|
|
33979
33979
|
}) : M && /* @__PURE__ */ b(jN, {}),
|
|
33980
33980
|
O && A !== !1 && /* @__PURE__ */ b(
|
|
33981
|
-
|
|
33981
|
+
$n,
|
|
33982
33982
|
{
|
|
33983
33983
|
label: "ra.action.create",
|
|
33984
33984
|
onClick: /* @__PURE__ */ s(() => ne(), "onClick"),
|
|
@@ -33993,8 +33993,8 @@ const jR = /* @__PURE__ */ s(() => {
|
|
|
33993
33993
|
}
|
|
33994
33994
|
),
|
|
33995
33995
|
d !== !1 && /* @__PURE__ */ b(U9, { resource: E }),
|
|
33996
|
-
_ && F !== "custom" && Y === "pivot" && /* @__PURE__ */ b(
|
|
33997
|
-
!l && ge.length > 0 && /* @__PURE__ */ b(
|
|
33996
|
+
_ && F !== "custom" && Y === "pivot" && /* @__PURE__ */ b(Dn, { onClick: ee, children: /* @__PURE__ */ b(Gd, {}) }),
|
|
33997
|
+
!l && ge.length > 0 && /* @__PURE__ */ b(Dn, { onClick: W, children: /* @__PURE__ */ b(W9, {}) }),
|
|
33998
33998
|
!l && ge.length > 0 && /* @__PURE__ */ b(
|
|
33999
33999
|
Pa,
|
|
34000
34000
|
{
|
|
@@ -34914,7 +34914,7 @@ const Pte = /* @__PURE__ */ s((t) => {
|
|
|
34914
34914
|
}), () => {
|
|
34915
34915
|
g = !1;
|
|
34916
34916
|
});
|
|
34917
|
-
}, [l, f, p, u]), o === null ? /* @__PURE__ */ b(Ws, { loadingPrimary: "", loadingSecondary: "", timeout: 0 }) : /* @__PURE__ */ b(c0, { value: y, children: /* @__PURE__ */ b(
|
|
34917
|
+
}, [l, f, p, u]), o === null ? /* @__PURE__ */ b(Ws, { loadingPrimary: "", loadingSecondary: "", timeout: 0 }) : /* @__PURE__ */ b(c0, { value: y, children: /* @__PURE__ */ b(Fn.Provider, { value: o, children: e }) });
|
|
34918
34918
|
}, "ShowChildren"), u8 = /* @__PURE__ */ s((t) => {
|
|
34919
34919
|
const e = lr(), { useFormulario: n, children: r, ...o } = t, i = DM(t), a = t.estado ?? (e?.state?.estado || "M"), { fichaProps: l } = F0({ ...t, estado: a });
|
|
34920
34920
|
return /* @__PURE__ */ b($a, { children: /* @__PURE__ */ b(qN, { id: i, emptyWhileLoading: !0, ...o, ...l?.panel, children: /* @__PURE__ */ b(c8, { estado: a, fichaProps: l, children: r }) }) });
|
|
@@ -34923,7 +34923,7 @@ const Pte = /* @__PURE__ */ s((t) => {
|
|
|
34923
34923
|
overridesResolver: /* @__PURE__ */ s((t, e) => e.root, "overridesResolver")
|
|
34924
34924
|
})(({ theme: t }) => _0(t)), JR = me(/* @__PURE__ */ b("path", {
|
|
34925
34925
|
d: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
34926
|
-
}), "ChevronLeft"), Fl = "RaTabbedForm",
|
|
34926
|
+
}), "ChevronLeft"), Fl = "RaTabbedForm", kn = {
|
|
34927
34927
|
header: `${Fl}-header`,
|
|
34928
34928
|
headerDivider: `${Fl}-headerDivider`,
|
|
34929
34929
|
navigation: `${Fl}-navigation`,
|
|
@@ -35026,7 +35026,7 @@ const Pte = /* @__PURE__ */ s((t) => {
|
|
|
35026
35026
|
{
|
|
35027
35027
|
className: [
|
|
35028
35028
|
l.props.className,
|
|
35029
|
-
|
|
35029
|
+
kn.tabs
|
|
35030
35030
|
].filter(Boolean).join(" "),
|
|
35031
35031
|
onChange: M,
|
|
35032
35032
|
syncWithLocation: a,
|
|
@@ -35036,7 +35036,7 @@ const Pte = /* @__PURE__ */ s((t) => {
|
|
|
35036
35036
|
scrollButtons: !1
|
|
35037
35037
|
},
|
|
35038
35038
|
$
|
|
35039
|
-
) : /* @__PURE__ */ K(b8, { className:
|
|
35039
|
+
) : /* @__PURE__ */ K(b8, { className: kn.navigation, children: [
|
|
35040
35040
|
/* @__PURE__ */ b(
|
|
35041
35041
|
Wr,
|
|
35042
35042
|
{
|
|
@@ -35051,7 +35051,7 @@ const Pte = /* @__PURE__ */ s((t) => {
|
|
|
35051
35051
|
{
|
|
35052
35052
|
className: [
|
|
35053
35053
|
l.props.className,
|
|
35054
|
-
|
|
35054
|
+
kn.tabs
|
|
35055
35055
|
].filter(Boolean).join(" "),
|
|
35056
35056
|
onChange: M,
|
|
35057
35057
|
syncWithLocation: a,
|
|
@@ -35083,30 +35083,42 @@ const Pte = /* @__PURE__ */ s((t) => {
|
|
|
35083
35083
|
minWidth: 0,
|
|
35084
35084
|
width: "100%",
|
|
35085
35085
|
maxWidth: "100%",
|
|
35086
|
-
[`& .${
|
|
35086
|
+
[`& .${kn.tabs}`]: {
|
|
35087
35087
|
minHeight: 0
|
|
35088
35088
|
},
|
|
35089
|
-
[`& .${
|
|
35089
|
+
[`& .${kn.tabs} .MuiTabs-scroller`]: {
|
|
35090
35090
|
minHeight: 0
|
|
35091
35091
|
},
|
|
35092
|
-
[`& .${
|
|
35092
|
+
[`& .${kn.tabs} .MuiTabs-flexContainer`]: {
|
|
35093
35093
|
minHeight: 0
|
|
35094
35094
|
},
|
|
35095
|
-
[`& .${
|
|
35095
|
+
[`& .${kn.tabs} .MuiTab-root`]: {
|
|
35096
35096
|
minHeight: 34,
|
|
35097
35097
|
padding: F.spacing(0.375, 1)
|
|
35098
35098
|
},
|
|
35099
|
-
[`& .${
|
|
35099
|
+
[`& .${kn.tabs} .MuiTab-root.RaTabbedForm-errorTabButton:not(.Mui-selected)`]: {
|
|
35100
|
+
color: `${F.palette.error.main} !important`,
|
|
35101
|
+
boxShadow: `inset 0 -3px 0 ${F.palette.error.main}`,
|
|
35102
|
+
"& .MuiSvgIcon-root": {
|
|
35103
|
+
color: `${F.palette.error.main} !important`
|
|
35104
|
+
}
|
|
35105
|
+
},
|
|
35106
|
+
[`& .${kn.tabs} .MuiTab-root.Mui-selected.RaTabbedForm-errorTabButton`]: {
|
|
35107
|
+
color: "inherit",
|
|
35108
|
+
backgroundColor: "inherit",
|
|
35109
|
+
boxShadow: `inset 0 -4px 0 ${F.palette.error.main}`
|
|
35110
|
+
},
|
|
35111
|
+
[`& .${kn.tabs} .MuiSvgIcon-root`]: {
|
|
35100
35112
|
fontSize: "1.1rem"
|
|
35101
35113
|
},
|
|
35102
|
-
[`& .${
|
|
35114
|
+
[`& .${kn.navigation}`]: {
|
|
35103
35115
|
padding: F.spacing(0.125, 0.75),
|
|
35104
35116
|
gap: F.spacing(0.5)
|
|
35105
35117
|
},
|
|
35106
|
-
[`& .${
|
|
35118
|
+
[`& .${kn.navigation} .MuiIconButton-root`]: {
|
|
35107
35119
|
padding: F.spacing(0.25)
|
|
35108
35120
|
},
|
|
35109
|
-
[`& .${
|
|
35121
|
+
[`& .${kn.headerDivider}`]: {
|
|
35110
35122
|
marginTop: F.spacing(0.25)
|
|
35111
35123
|
}
|
|
35112
35124
|
}), "sx"),
|
|
@@ -35115,11 +35127,11 @@ const Pte = /* @__PURE__ */ s((t) => {
|
|
|
35115
35127
|
/* @__PURE__ */ K(
|
|
35116
35128
|
Gt,
|
|
35117
35129
|
{
|
|
35118
|
-
className:
|
|
35130
|
+
className: kn.header,
|
|
35119
35131
|
sx: { flexShrink: 0 },
|
|
35120
35132
|
children: [
|
|
35121
35133
|
a ? /* @__PURE__ */ b(gk, { children: /* @__PURE__ */ b(yk, { path: "/*", element: _() }) }) : _(),
|
|
35122
|
-
/* @__PURE__ */ b(Ei, { className:
|
|
35134
|
+
/* @__PURE__ */ b(Ei, { className: kn.headerDivider })
|
|
35123
35135
|
]
|
|
35124
35136
|
}
|
|
35125
35137
|
),
|
|
@@ -35636,7 +35648,7 @@ const Vw = S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
35636
35648
|
}, "getExtraClickHandler");
|
|
35637
35649
|
return (y || []).map(
|
|
35638
35650
|
({ label: x = "", icon: T = /* @__PURE__ */ b(Bw, {}), handler: w }, C) => /* @__PURE__ */ b(
|
|
35639
|
-
|
|
35651
|
+
$n,
|
|
35640
35652
|
{
|
|
35641
35653
|
label: x,
|
|
35642
35654
|
disabled: e,
|
|
@@ -35677,7 +35689,7 @@ const Vw = S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
35677
35689
|
),
|
|
35678
35690
|
/* @__PURE__ */ b(p, { botonesExtra: v }),
|
|
35679
35691
|
T && typeof w == "function" && /* @__PURE__ */ b(zo, { title: C, children: /* @__PURE__ */ b("span", { children: /* @__PURE__ */ b(
|
|
35680
|
-
|
|
35692
|
+
Dn,
|
|
35681
35693
|
{
|
|
35682
35694
|
"aria-label": E,
|
|
35683
35695
|
color: "inherit",
|
|
@@ -35688,7 +35700,7 @@ const Vw = S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
35688
35700
|
}
|
|
35689
35701
|
) }) }),
|
|
35690
35702
|
/* @__PURE__ */ b(
|
|
35691
|
-
|
|
35703
|
+
$n,
|
|
35692
35704
|
{
|
|
35693
35705
|
label: "ra.action.close",
|
|
35694
35706
|
disabled: e,
|
|
@@ -35766,7 +35778,7 @@ const Vw = S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
35766
35778
|
minWidth: 0,
|
|
35767
35779
|
width: "100%"
|
|
35768
35780
|
},
|
|
35769
|
-
[`& .${
|
|
35781
|
+
[`& .${kn.header}`]: {
|
|
35770
35782
|
marginTop: /* @__PURE__ */ s((O) => O.spacing(1), "marginTop")
|
|
35771
35783
|
}
|
|
35772
35784
|
},
|
|
@@ -35810,7 +35822,7 @@ const Vw = S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
35810
35822
|
/* @__PURE__ */ K(ZS, { sx: { flexShrink: 0 }, children: [
|
|
35811
35823
|
/* @__PURE__ */ b(p, { botonesExtra: T }),
|
|
35812
35824
|
w && /* @__PURE__ */ b(
|
|
35813
|
-
|
|
35825
|
+
$n,
|
|
35814
35826
|
{
|
|
35815
35827
|
label: M,
|
|
35816
35828
|
disabled: e,
|
|
@@ -35865,7 +35877,7 @@ const Vw = S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
35865
35877
|
/* @__PURE__ */ K(ZS, { sx: { flexShrink: 0 }, children: [
|
|
35866
35878
|
/* @__PURE__ */ b(p, { botonesExtra: C }),
|
|
35867
35879
|
O !== !1 && /* @__PURE__ */ b(
|
|
35868
|
-
|
|
35880
|
+
$n,
|
|
35869
35881
|
{
|
|
35870
35882
|
label: T,
|
|
35871
35883
|
disabled: e,
|
|
@@ -35874,7 +35886,7 @@ const Vw = S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
35874
35886
|
}
|
|
35875
35887
|
),
|
|
35876
35888
|
E !== !1 && /* @__PURE__ */ b(
|
|
35877
|
-
|
|
35889
|
+
$n,
|
|
35878
35890
|
{
|
|
35879
35891
|
label: w,
|
|
35880
35892
|
disabled: e,
|
|
@@ -35992,7 +36004,7 @@ const Vw = S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
35992
36004
|
incluyeAcciones: o = !1,
|
|
35993
36005
|
saveButtonProps: i,
|
|
35994
36006
|
...a
|
|
35995
|
-
} = t, [l, u] = Ie(!1), d = Yr(a), p = _r(), { trigger: f } = En(), { hidden: h } = UM(), m = S.useContext(
|
|
36007
|
+
} = t, [l, u] = Ie(!1), d = Yr(a), p = _r(), { trigger: f } = En(), { hidden: h } = UM(), m = S.useContext(Fn) || {}, y = S.useMemo(
|
|
35996
36008
|
() => [...r || [], ...e?.buttons || []],
|
|
35997
36009
|
[r, e]
|
|
35998
36010
|
), g = Le(
|
|
@@ -36012,7 +36024,7 @@ const Vw = S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
36012
36024
|
y.filter(
|
|
36013
36025
|
(v) => !h[v.name] && du(m, v.perbot)
|
|
36014
36026
|
).map((v) => /* @__PURE__ */ b(
|
|
36015
|
-
|
|
36027
|
+
$n,
|
|
36016
36028
|
{
|
|
36017
36029
|
label: v.label,
|
|
36018
36030
|
disabled: l,
|
|
@@ -36142,7 +36154,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
36142
36154
|
};
|
|
36143
36155
|
}
|
|
36144
36156
|
const zte = /* @__PURE__ */ s(({ title: t, children: e, sx: n, source: r, ...o }) => {
|
|
36145
|
-
const { hidden: i, propsContenido: a } =
|
|
36157
|
+
const { hidden: i, propsContenido: a } = jn({
|
|
36146
36158
|
source: r,
|
|
36147
36159
|
...o
|
|
36148
36160
|
}), l = a.title ?? a.label ?? t;
|
|
@@ -36757,7 +36769,7 @@ const $8 = me([/* @__PURE__ */ b("circle", {
|
|
|
36757
36769
|
"application/java-archive",
|
|
36758
36770
|
"application/vnd.android.package-archive"
|
|
36759
36771
|
], qte = /* @__PURE__ */ s((t) => {
|
|
36760
|
-
const e = Ov(), { propsContenido: n, hidden: r } =
|
|
36772
|
+
const e = Ov(), { propsContenido: n, hidden: r } = jn(t), {
|
|
36761
36773
|
options: o = {},
|
|
36762
36774
|
readOnly: i = !1,
|
|
36763
36775
|
tipo: a = "file",
|
|
@@ -36880,7 +36892,7 @@ const $8 = me([/* @__PURE__ */ b("circle", {
|
|
|
36880
36892
|
}
|
|
36881
36893
|
));
|
|
36882
36894
|
}, "Camino"), Ute = /* @__PURE__ */ s((t) => {
|
|
36883
|
-
const { propsContenido: e, hidden: n } =
|
|
36895
|
+
const { propsContenido: e, hidden: n } = jn(t);
|
|
36884
36896
|
return !n && /* @__PURE__ */ b(
|
|
36885
36897
|
Me,
|
|
36886
36898
|
{
|
|
@@ -37041,7 +37053,7 @@ const $8 = me([/* @__PURE__ */ b("circle", {
|
|
|
37041
37053
|
}
|
|
37042
37054
|
) });
|
|
37043
37055
|
}, "SelectInputEtriek"), q8 = /* @__PURE__ */ s((t) => {
|
|
37044
|
-
const { propsContenido: e, hidden: n } =
|
|
37056
|
+
const { propsContenido: e, hidden: n } = jn(t), r = Ko(), o = Pv(), i = En(), { isLoading: a } = Nt(), {
|
|
37045
37057
|
isActive: l,
|
|
37046
37058
|
hasBeenActive: u = l
|
|
37047
37059
|
} = nh(), {
|
|
@@ -37177,7 +37189,7 @@ const $8 = me([/* @__PURE__ */ b("circle", {
|
|
|
37177
37189
|
}
|
|
37178
37190
|
) : null;
|
|
37179
37191
|
}, "ComboBox"), Gte = /* @__PURE__ */ s((t) => {
|
|
37180
|
-
const { propsContenido: e, hidden: n } =
|
|
37192
|
+
const { propsContenido: e, hidden: n } = jn(t), { conts: r = {} } = tt(Fn) || {}, o = r?.[t.source]?.options, i = S.useMemo(() => {
|
|
37181
37193
|
if (!(typeof o != "string" || o.trim() === ""))
|
|
37182
37194
|
try {
|
|
37183
37195
|
const d = JSON.parse(o);
|
|
@@ -37701,7 +37713,7 @@ const $8 = me([/* @__PURE__ */ b("circle", {
|
|
|
37701
37713
|
const {
|
|
37702
37714
|
propsContenido: { sx: e, choices: n = [], ...r },
|
|
37703
37715
|
hidden: o
|
|
37704
|
-
} =
|
|
37716
|
+
} = jn(t), { isLoading: i } = Nt(), a = yu(), {
|
|
37705
37717
|
isActive: l,
|
|
37706
37718
|
hasBeenActive: u = l
|
|
37707
37719
|
} = nh(), d = Ir((m) => m.breakpoints.down("md")), { source: p, reference: f } = t, h = Nr(t) || {};
|
|
@@ -37744,13 +37756,13 @@ const $8 = me([/* @__PURE__ */ b("circle", {
|
|
|
37744
37756
|
}
|
|
37745
37757
|
) : null;
|
|
37746
37758
|
}, "ListCheck"), Jte = /* @__PURE__ */ s((t) => {
|
|
37747
|
-
const { propsContenido: e, hidden: n } =
|
|
37759
|
+
const { propsContenido: e, hidden: n } = jn(t);
|
|
37748
37760
|
return !n && /* @__PURE__ */ b(ak, { ...e });
|
|
37749
37761
|
}, "Password"), Xte = /* @__PURE__ */ s((t) => {
|
|
37750
37762
|
const {
|
|
37751
37763
|
propsContenido: { sx: e, ...n },
|
|
37752
37764
|
hidden: r
|
|
37753
|
-
} =
|
|
37765
|
+
} = jn(t), { isLoading: o } = Nt(), { source: i, reference: a } = t;
|
|
37754
37766
|
return !r && !o ? /* @__PURE__ */ b(uk, { source: i, reference: a, children: /* @__PURE__ */ b(
|
|
37755
37767
|
fk,
|
|
37756
37768
|
{
|
|
@@ -37767,7 +37779,7 @@ const $8 = me([/* @__PURE__ */ b("circle", {
|
|
|
37767
37779
|
const {
|
|
37768
37780
|
propsContenido: { sx: e, ...n },
|
|
37769
37781
|
hidden: r
|
|
37770
|
-
} =
|
|
37782
|
+
} = jn(t), { conts: o = {} } = tt(Fn) || {}, i = o?.[t.source]?.options, a = S.useMemo(() => {
|
|
37771
37783
|
if (!(typeof i != "string" || i.trim() === ""))
|
|
37772
37784
|
try {
|
|
37773
37785
|
const d = JSON.parse(i);
|
|
@@ -37890,7 +37902,7 @@ const $8 = me([/* @__PURE__ */ b("circle", {
|
|
|
37890
37902
|
source: y,
|
|
37891
37903
|
...g
|
|
37892
37904
|
}
|
|
37893
|
-
} =
|
|
37905
|
+
} = jn(t), v = En();
|
|
37894
37906
|
Re(() => {
|
|
37895
37907
|
i.current || (setTimeout(() => {
|
|
37896
37908
|
v.setValue(y, e7);
|
|
@@ -41650,7 +41662,7 @@ const Sq = /* @__PURE__ */ s(({ onRecordsLoaded: t }) => {
|
|
|
41650
41662
|
},
|
|
41651
41663
|
children: [
|
|
41652
41664
|
/* @__PURE__ */ b(
|
|
41653
|
-
|
|
41665
|
+
Dn,
|
|
41654
41666
|
{
|
|
41655
41667
|
size: "small",
|
|
41656
41668
|
onClick: B,
|
|
@@ -41989,7 +42001,7 @@ const Sq = /* @__PURE__ */ s(({ onRecordsLoaded: t }) => {
|
|
|
41989
42001
|
meta: E,
|
|
41990
42002
|
...O
|
|
41991
42003
|
}
|
|
41992
|
-
} =
|
|
42004
|
+
} = jn(t), { [e]: M = {} } = f, N = Yr(t), R = M.onChange === void 0 ? n : M.onChange, L = w !== !1, [A, k] = Ie(
|
|
41993
42005
|
_l(w)
|
|
41994
42006
|
), P = rt(
|
|
41995
42007
|
() => Vm.find((G) => G.value === A) || Vm[0],
|
|
@@ -42122,7 +42134,7 @@ const Sq = /* @__PURE__ */ s(({ onRecordsLoaded: t }) => {
|
|
|
42122
42134
|
endAdornment: /* @__PURE__ */ K(Un, { children: [
|
|
42123
42135
|
L ? /* @__PURE__ */ K(Un, { children: [
|
|
42124
42136
|
x && /* @__PURE__ */ b(
|
|
42125
|
-
|
|
42137
|
+
Dn,
|
|
42126
42138
|
{
|
|
42127
42139
|
onClick: V,
|
|
42128
42140
|
disabled: y,
|
|
@@ -42133,7 +42145,7 @@ const Sq = /* @__PURE__ */ s(({ onRecordsLoaded: t }) => {
|
|
|
42133
42145
|
}
|
|
42134
42146
|
),
|
|
42135
42147
|
/* @__PURE__ */ b(zo, { title: P.label, children: /* @__PURE__ */ K(
|
|
42136
|
-
|
|
42148
|
+
Dn,
|
|
42137
42149
|
{
|
|
42138
42150
|
onClick: F,
|
|
42139
42151
|
disabled: y,
|
|
@@ -42147,7 +42159,7 @@ const Sq = /* @__PURE__ */ s(({ onRecordsLoaded: t }) => {
|
|
|
42147
42159
|
) })
|
|
42148
42160
|
] }) : /* @__PURE__ */ K(Un, { children: [
|
|
42149
42161
|
x && /* @__PURE__ */ b(
|
|
42150
|
-
|
|
42162
|
+
Dn,
|
|
42151
42163
|
{
|
|
42152
42164
|
onClick: V,
|
|
42153
42165
|
disabled: y,
|
|
@@ -42158,7 +42170,7 @@ const Sq = /* @__PURE__ */ s(({ onRecordsLoaded: t }) => {
|
|
|
42158
42170
|
}
|
|
42159
42171
|
),
|
|
42160
42172
|
T && /* @__PURE__ */ b(
|
|
42161
|
-
|
|
42173
|
+
Dn,
|
|
42162
42174
|
{
|
|
42163
42175
|
onClick: _,
|
|
42164
42176
|
disabled: y,
|
|
@@ -42170,7 +42182,7 @@ const Sq = /* @__PURE__ */ s(({ onRecordsLoaded: t }) => {
|
|
|
42170
42182
|
)
|
|
42171
42183
|
] }),
|
|
42172
42184
|
/* @__PURE__ */ b(
|
|
42173
|
-
|
|
42185
|
+
Dn,
|
|
42174
42186
|
{
|
|
42175
42187
|
onClick: /* @__PURE__ */ s(() => {
|
|
42176
42188
|
u?.enabled || i(!0);
|
|
@@ -45751,8 +45763,8 @@ const ma = class ma extends un {
|
|
|
45751
45763
|
}
|
|
45752
45764
|
};
|
|
45753
45765
|
s(ma, "ReplaceAroundStep");
|
|
45754
|
-
let
|
|
45755
|
-
un.jsonID("replaceAround",
|
|
45766
|
+
let Rn = ma;
|
|
45767
|
+
un.jsonID("replaceAround", Rn);
|
|
45756
45768
|
function Mb(t, e, n) {
|
|
45757
45769
|
let r = t.resolve(e), o = n - e, i = r.depth;
|
|
45758
45770
|
for (; o > 0 && i > 0 && r.indexAfter(i) == r.node(i).childCount; )
|
|
@@ -45858,7 +45870,7 @@ function rU(t, e, n) {
|
|
|
45858
45870
|
let h = de.empty, m = 0;
|
|
45859
45871
|
for (let y = i, g = !1; y > n; y--)
|
|
45860
45872
|
g || o.after(y + 1) < o.end(y) ? (g = !0, h = de.from(o.node(y).copy(h)), m++) : d++;
|
|
45861
|
-
t.step(new
|
|
45873
|
+
t.step(new Rn(u, d, a, l, new Ee(p.append(h), f, m), p.size - f, !0));
|
|
45862
45874
|
}
|
|
45863
45875
|
s(rU, "lift$2");
|
|
45864
45876
|
function Q0(t, e, n = null, r = t) {
|
|
@@ -45899,7 +45911,7 @@ function sU(t, e, n) {
|
|
|
45899
45911
|
r = de.from(n[a].type.create(n[a].attrs, r));
|
|
45900
45912
|
}
|
|
45901
45913
|
let o = e.start, i = e.end;
|
|
45902
|
-
t.step(new
|
|
45914
|
+
t.step(new Rn(o, i, o, i, new Ee(r, 0, 0), n.length, !0));
|
|
45903
45915
|
}
|
|
45904
45916
|
s(sU, "wrap");
|
|
45905
45917
|
function aU(t, e, n, r, o) {
|
|
@@ -45916,7 +45928,7 @@ function aU(t, e, n, r, o) {
|
|
|
45916
45928
|
}
|
|
45917
45929
|
d === !1 && qP(t, a, l, i), X0(t, t.mapping.slice(i).map(l, 1), r, void 0, d === null);
|
|
45918
45930
|
let p = t.mapping.slice(i), f = p.map(l, 1), h = p.map(l + a.nodeSize, 1);
|
|
45919
|
-
return t.step(new
|
|
45931
|
+
return t.step(new Rn(f, h, f + 1, h - 1, new Ee(de.from(r.create(u, null, a.marks)), 0, 0), 1, !0)), d === !0 && HP(t, a, l, i), !1;
|
|
45920
45932
|
}
|
|
45921
45933
|
});
|
|
45922
45934
|
}
|
|
@@ -45958,7 +45970,7 @@ function cU(t, e, n, r, o) {
|
|
|
45958
45970
|
return t.replaceWith(e, e + i.nodeSize, a);
|
|
45959
45971
|
if (!n.validContent(i.content))
|
|
45960
45972
|
throw new RangeError("Invalid content for node type " + n.name);
|
|
45961
|
-
t.step(new
|
|
45973
|
+
t.step(new Rn(e, e + i.nodeSize, e + 1, e + i.nodeSize - 1, new Ee(de.from(a), 0, 0), 1, !0));
|
|
45962
45974
|
}
|
|
45963
45975
|
s(cU, "setNodeMarkup");
|
|
45964
45976
|
function _o(t, e, n = 1, r) {
|
|
@@ -46125,7 +46137,7 @@ const X1 = class X1 {
|
|
|
46125
46137
|
for (; a && l && i.childCount == 1; )
|
|
46126
46138
|
i = i.firstChild.content, a--, l--;
|
|
46127
46139
|
let u = new Ee(i, a, l);
|
|
46128
|
-
return e > -1 ? new
|
|
46140
|
+
return e > -1 ? new Rn(r.pos, e, this.$to.pos, this.$to.end(), u, n) : u.size || r.pos != this.$to.pos ? new ar(r.pos, o.pos, u) : null;
|
|
46129
46141
|
}
|
|
46130
46142
|
// Find a position on the start spine of `this.unplaced` that has
|
|
46131
46143
|
// content that can be moved somewhere on the frontier. Returns two
|
|
@@ -47090,7 +47102,7 @@ function wT(t, e, n) {
|
|
|
47090
47102
|
if (r < e)
|
|
47091
47103
|
return;
|
|
47092
47104
|
let o = t.steps[r];
|
|
47093
|
-
if (!(o instanceof ar || o instanceof
|
|
47105
|
+
if (!(o instanceof ar || o instanceof Rn))
|
|
47094
47106
|
return;
|
|
47095
47107
|
let i = t.mapping.maps[r], a;
|
|
47096
47108
|
i.forEach((l, u, d, p) => {
|
|
@@ -47524,7 +47536,7 @@ const iS = class iS {
|
|
|
47524
47536
|
}
|
|
47525
47537
|
};
|
|
47526
47538
|
s(iS, "PluginKey");
|
|
47527
|
-
let
|
|
47539
|
+
let _n = iS;
|
|
47528
47540
|
const vn = /* @__PURE__ */ s(function(t) {
|
|
47529
47541
|
for (var e = 0; ; e++)
|
|
47530
47542
|
if (t = t.previousSibling, !t)
|
|
@@ -47644,7 +47656,7 @@ function kU(t, e, n) {
|
|
|
47644
47656
|
s(kU, "caretFromPoint");
|
|
47645
47657
|
const To = typeof navigator < "u" ? navigator : null, MT = typeof document < "u" ? document : null, $i = To && To.userAgent || "", $b = /Edge\/(\d+)/.exec($i), eA = /MSIE \d/.exec($i), Lb = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec($i), Jn = !!(eA || Lb || $b), bi = eA ? document.documentMode : Lb ? +Lb[1] : $b ? +$b[1] : 0, Ur = !Jn && /gecko\/(\d+)/i.test($i);
|
|
47646
47658
|
Ur && +(/Firefox\/(\d+)/.exec($i) || [0, 0])[1];
|
|
47647
|
-
const Fb = !Jn && /Chrome\/(\d+)/.exec($i),
|
|
47659
|
+
const Fb = !Jn && /Chrome\/(\d+)/.exec($i), In = !!Fb, tA = Fb ? +Fb[1] : 0, Bn = !Jn && !!To && /Apple Computer/.test(To.vendor), Ka = Bn && (/Mobile\/\w+/.test($i) || !!To && To.maxTouchPoints > 2), vr = Ka || (To ? /Mac/.test(To.platform) : !1), MU = To ? /Win/.test(To.platform) : !1, Vr = /Android \d/.test($i), Su = !!MT && "webkitFontSmoothing" in MT.documentElement.style, IU = Su ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
47648
47660
|
function RU(t) {
|
|
47649
47661
|
let e = t.defaultView && t.defaultView.visualViewport;
|
|
47650
47662
|
return e ? {
|
|
@@ -47844,7 +47856,7 @@ function BU(t, e) {
|
|
|
47844
47856
|
if (!Z0(e, d) || (a = iA(t.dom, e, d), !a))
|
|
47845
47857
|
return null;
|
|
47846
47858
|
}
|
|
47847
|
-
if (
|
|
47859
|
+
if (Bn)
|
|
47848
47860
|
for (let d = a; r && d; d = Lc(d))
|
|
47849
47861
|
d.draggable && (r = void 0);
|
|
47850
47862
|
if (a = LU(a, e), r) {
|
|
@@ -48255,7 +48267,7 @@ const Mr = 0, DT = 1, ys = 2, Eo = 3, sS = class sS {
|
|
|
48255
48267
|
m = g;
|
|
48256
48268
|
}
|
|
48257
48269
|
let l = this.domFromPos(e, e ? -1 : 1), u = n == e ? l : this.domFromPos(n, n ? -1 : 1), d = r.getSelection(), p = !1;
|
|
48258
|
-
if ((Ur ||
|
|
48270
|
+
if ((Ur || Bn) && e == n) {
|
|
48259
48271
|
let { node: h, offset: m } = l;
|
|
48260
48272
|
if (h.nodeType == 3) {
|
|
48261
48273
|
if (p = !!(m && h.nodeValue[m - 1] == `
|
|
@@ -48278,7 +48290,7 @@ const Mr = 0, DT = 1, ys = 2, Eo = 3, sS = class sS {
|
|
|
48278
48290
|
let h = d.focusNode.childNodes[d.focusOffset];
|
|
48279
48291
|
h && h.contentEditable == "false" && (o = !0);
|
|
48280
48292
|
}
|
|
48281
|
-
if (!(o || p &&
|
|
48293
|
+
if (!(o || p && Bn) && Bs(l.node, l.offset, d.anchorNode, d.anchorOffset) && Bs(u.node, u.offset, d.focusNode, d.focusOffset))
|
|
48282
48294
|
return;
|
|
48283
48295
|
let f = !1;
|
|
48284
48296
|
if ((d.extend || e == n) && !p) {
|
|
@@ -48895,7 +48907,7 @@ const dS = class dS {
|
|
|
48895
48907
|
for (; e instanceof Ya; )
|
|
48896
48908
|
n = e, e = n.children[n.children.length - 1];
|
|
48897
48909
|
(!e || // Empty textblock
|
|
48898
|
-
!(e instanceof wp) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((
|
|
48910
|
+
!(e instanceof wp) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Bn || In) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
|
|
48899
48911
|
}
|
|
48900
48912
|
addHackNode(e, n) {
|
|
48901
48913
|
if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(e))
|
|
@@ -49081,7 +49093,7 @@ s(dA, "editorOwnsSelection");
|
|
|
49081
49093
|
function Bo(t, e = !1) {
|
|
49082
49094
|
let n = t.state.selection;
|
|
49083
49095
|
if (pA(t, n), !!dA(t)) {
|
|
49084
|
-
if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault &&
|
|
49096
|
+
if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && In) {
|
|
49085
49097
|
let r = t.domSelectionRange(), o = t.domObserver.currentSelection;
|
|
49086
49098
|
if (r.anchorNode && o.anchorNode && Bs(r.anchorNode, r.anchorOffset, o.anchorNode, o.anchorOffset)) {
|
|
49087
49099
|
t.input.mouseDown.delayedSelectionSync = !0, t.domObserver.setCurSelection();
|
|
@@ -49098,10 +49110,10 @@ function Bo(t, e = !1) {
|
|
|
49098
49110
|
}
|
|
49099
49111
|
}
|
|
49100
49112
|
s(Bo, "selectionToDOM");
|
|
49101
|
-
const FT =
|
|
49113
|
+
const FT = Bn || In && tA < 63;
|
|
49102
49114
|
function _T(t, e) {
|
|
49103
49115
|
let { node: n, offset: r } = t.docView.domFromPos(e, 0), o = r < n.childNodes.length ? n.childNodes[r] : null, i = r ? n.childNodes[r - 1] : null;
|
|
49104
|
-
if (
|
|
49116
|
+
if (Bn && o && o.contentEditable == "false")
|
|
49105
49117
|
return Jm(o);
|
|
49106
49118
|
if ((!o || o.contentEditable == "false") && (!i || i.contentEditable == "false")) {
|
|
49107
49119
|
if (o)
|
|
@@ -49112,7 +49124,7 @@ function _T(t, e) {
|
|
|
49112
49124
|
}
|
|
49113
49125
|
s(_T, "temporarilyEditableNear");
|
|
49114
49126
|
function Jm(t) {
|
|
49115
|
-
return t.contentEditable = "true",
|
|
49127
|
+
return t.contentEditable = "true", Bn && t.draggable && (t.draggable = !1, t.wasDraggable = !0), t;
|
|
49116
49128
|
}
|
|
49117
49129
|
s(Jm, "setEditable");
|
|
49118
49130
|
function BT(t) {
|
|
@@ -49349,7 +49361,7 @@ function Hb(t, e, n) {
|
|
|
49349
49361
|
s(Hb, "setSelFocus");
|
|
49350
49362
|
function WT(t, e) {
|
|
49351
49363
|
let n = t.state.doc.resolve(e);
|
|
49352
|
-
if (!(
|
|
49364
|
+
if (!(In || MU) && n.parent.inlineContent) {
|
|
49353
49365
|
let o = t.coordsAtPos(e);
|
|
49354
49366
|
if (e > n.start()) {
|
|
49355
49367
|
let i = t.coordsAtPos(e - 1), a = (i.top + i.bottom) / 2;
|
|
@@ -49405,7 +49417,7 @@ function UT(t, e, n) {
|
|
|
49405
49417
|
}
|
|
49406
49418
|
s(UT, "switchEditable");
|
|
49407
49419
|
function oG(t) {
|
|
49408
|
-
if (!
|
|
49420
|
+
if (!Bn || t.state.selection.$head.parentOffset > 0)
|
|
49409
49421
|
return !1;
|
|
49410
49422
|
let { focusNode: e, focusOffset: n } = t.domSelectionRange();
|
|
49411
49423
|
if (e && e.nodeType == 1 && n == 0 && e.firstChild && e.firstChild.contentEditable == "false") {
|
|
@@ -49619,7 +49631,7 @@ function uG(t) {
|
|
|
49619
49631
|
}
|
|
49620
49632
|
s(uG, "readHTML");
|
|
49621
49633
|
function dG(t) {
|
|
49622
|
-
let e = t.querySelectorAll(
|
|
49634
|
+
let e = t.querySelectorAll(In ? "span:not([class]):not([style])" : "span.Apple-converted-space");
|
|
49623
49635
|
for (let n = 0; n < e.length; n++) {
|
|
49624
49636
|
let r = e[n];
|
|
49625
49637
|
r.childNodes.length == 1 && r.textContent == " " && r.parentNode && r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "), r);
|
|
@@ -49645,7 +49657,7 @@ function pG(t, e) {
|
|
|
49645
49657
|
return new Ee(o, i, a);
|
|
49646
49658
|
}
|
|
49647
49659
|
s(pG, "addContext");
|
|
49648
|
-
const
|
|
49660
|
+
const zn = {}, Vn = {}, fG = { touchstart: !0, touchmove: !0 }, pS = class pS {
|
|
49649
49661
|
constructor() {
|
|
49650
49662
|
this.shiftKey = !1, this.mouseDown = null, this.lastKeyCode = null, this.lastKeyCodeTime = 0, this.lastClick = { time: 0, x: 0, y: 0, type: "" }, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastIOSEnter = 0, this.lastIOSEnterFallbackTimeout = -1, this.lastFocus = 0, this.lastTouch = 0, this.lastAndroidDelete = 0, this.composing = !1, this.compositionNode = null, this.composingTimeout = -1, this.compositionNodes = [], this.compositionEndedAt = -2e8, this.compositionID = 1, this.compositionPendingChanges = 0, this.domChangeCount = 0, this.eventHandlers = /* @__PURE__ */ Object.create(null), this.hideSelectionGuard = null;
|
|
49651
49663
|
}
|
|
@@ -49653,13 +49665,13 @@ const Bn = {}, zn = {}, fG = { touchstart: !0, touchmove: !0 }, pS = class pS {
|
|
|
49653
49665
|
s(pS, "InputState");
|
|
49654
49666
|
let Ub = pS;
|
|
49655
49667
|
function hG(t) {
|
|
49656
|
-
for (let e in
|
|
49657
|
-
let n =
|
|
49668
|
+
for (let e in zn) {
|
|
49669
|
+
let n = zn[e];
|
|
49658
49670
|
t.dom.addEventListener(e, t.input.eventHandlers[e] = (r) => {
|
|
49659
|
-
gG(t, r) && !n1(t, r) && (t.editable || !(r.type in
|
|
49671
|
+
gG(t, r) && !n1(t, r) && (t.editable || !(r.type in Vn)) && n(t, r);
|
|
49660
49672
|
}, fG[e] ? { passive: !0 } : void 0);
|
|
49661
49673
|
}
|
|
49662
|
-
|
|
49674
|
+
Bn && t.dom.addEventListener("input", () => null), Gb(t);
|
|
49663
49675
|
}
|
|
49664
49676
|
s(hG, "initInput");
|
|
49665
49677
|
function gi(t, e) {
|
|
@@ -49699,12 +49711,12 @@ function gG(t, e) {
|
|
|
49699
49711
|
}
|
|
49700
49712
|
s(gG, "eventBelongsToView");
|
|
49701
49713
|
function yG(t, e) {
|
|
49702
|
-
!n1(t, e) &&
|
|
49714
|
+
!n1(t, e) && zn[e.type] && (t.editable || !(e.type in Vn)) && zn[e.type](t, e);
|
|
49703
49715
|
}
|
|
49704
49716
|
s(yG, "dispatchEvent");
|
|
49705
|
-
|
|
49717
|
+
Vn.keydown = (t, e) => {
|
|
49706
49718
|
let n = e;
|
|
49707
|
-
if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !wA(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(Vr &&
|
|
49719
|
+
if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !wA(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(Vr && In && n.keyCode == 13)))
|
|
49708
49720
|
if (n.keyCode != 229 && t.domObserver.forceFlush(), Ka && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
|
|
49709
49721
|
let r = Date.now();
|
|
49710
49722
|
t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
@@ -49712,10 +49724,10 @@ zn.keydown = (t, e) => {
|
|
|
49712
49724
|
}, 200);
|
|
49713
49725
|
} else t.someProp("handleKeyDown", (r) => r(t, n)) || sG(t, n) ? n.preventDefault() : gi(t, "key");
|
|
49714
49726
|
};
|
|
49715
|
-
|
|
49727
|
+
Vn.keyup = (t, e) => {
|
|
49716
49728
|
e.keyCode == 16 && (t.input.shiftKey = !1);
|
|
49717
49729
|
};
|
|
49718
|
-
|
|
49730
|
+
Vn.keypress = (t, e) => {
|
|
49719
49731
|
let n = e;
|
|
49720
49732
|
if (wA(t, n) || !n.charCode || n.ctrlKey && !n.altKey || vr && n.metaKey)
|
|
49721
49733
|
return;
|
|
@@ -49814,7 +49826,7 @@ function o1(t) {
|
|
|
49814
49826
|
}
|
|
49815
49827
|
s(o1, "forceDOMFlush");
|
|
49816
49828
|
const CA = vr ? "metaKey" : "ctrlKey";
|
|
49817
|
-
|
|
49829
|
+
zn.mousedown = (t, e) => {
|
|
49818
49830
|
let n = e;
|
|
49819
49831
|
t.input.shiftKey = n.shiftKey;
|
|
49820
49832
|
let r = o1(t), o = Date.now(), i = "singleClick";
|
|
@@ -49852,14 +49864,14 @@ const fS = class fS {
|
|
|
49852
49864
|
return;
|
|
49853
49865
|
let n = this.pos;
|
|
49854
49866
|
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Ih(e))), this.updateAllowDefault(e), this.allowDefault || !n ? gi(this.view, "pointer") : xG(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
|
|
49855
|
-
|
|
49867
|
+
Bn && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
|
|
49856
49868
|
// cursor, but still report that the node is selected
|
|
49857
49869
|
// when asked through getSelection. You'll then get a
|
|
49858
49870
|
// situation where clicking at the point where that
|
|
49859
49871
|
// (hidden) cursor is doesn't change the selection, and
|
|
49860
49872
|
// thus doesn't get a reaction from ProseMirror. This
|
|
49861
49873
|
// works around that.
|
|
49862
|
-
|
|
49874
|
+
In && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (ka(this.view, Ge.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : gi(this.view, "pointer");
|
|
49863
49875
|
}
|
|
49864
49876
|
move(e) {
|
|
49865
49877
|
this.updateAllowDefault(e), gi(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
@@ -49870,19 +49882,19 @@ const fS = class fS {
|
|
|
49870
49882
|
};
|
|
49871
49883
|
s(fS, "MouseDown");
|
|
49872
49884
|
let Kb = fS;
|
|
49873
|
-
|
|
49885
|
+
zn.touchstart = (t) => {
|
|
49874
49886
|
t.input.lastTouch = Date.now(), o1(t), gi(t, "pointer");
|
|
49875
49887
|
};
|
|
49876
|
-
|
|
49888
|
+
zn.touchmove = (t) => {
|
|
49877
49889
|
t.input.lastTouch = Date.now(), gi(t, "pointer");
|
|
49878
49890
|
};
|
|
49879
|
-
|
|
49891
|
+
zn.contextmenu = (t) => o1(t);
|
|
49880
49892
|
function wA(t, e) {
|
|
49881
|
-
return t.composing ? !0 :
|
|
49893
|
+
return t.composing ? !0 : Bn && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, !0) : !1;
|
|
49882
49894
|
}
|
|
49883
49895
|
s(wA, "inOrNearComposition");
|
|
49884
49896
|
const EG = Vr ? 5e3 : -1;
|
|
49885
|
-
|
|
49897
|
+
Vn.compositionstart = Vn.compositionupdate = (t) => {
|
|
49886
49898
|
if (!t.composing) {
|
|
49887
49899
|
t.domObserver.flush();
|
|
49888
49900
|
let { state: e } = t, n = e.selection.$to;
|
|
@@ -49906,7 +49918,7 @@ zn.compositionstart = zn.compositionupdate = (t) => {
|
|
|
49906
49918
|
}
|
|
49907
49919
|
TA(t, EG);
|
|
49908
49920
|
};
|
|
49909
|
-
|
|
49921
|
+
Vn.compositionend = (t, e) => {
|
|
49910
49922
|
t.composing && (t.input.composing = !1, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++, TA(t, 20));
|
|
49911
49923
|
};
|
|
49912
49924
|
function TA(t, e) {
|
|
@@ -49965,7 +49977,7 @@ function MG(t, e) {
|
|
|
49965
49977
|
}
|
|
49966
49978
|
s(MG, "captureCopy");
|
|
49967
49979
|
const Fc = Jn && bi < 15 || Ka && IU < 604;
|
|
49968
|
-
|
|
49980
|
+
zn.copy = Vn.cut = (t, e) => {
|
|
49969
49981
|
let n = e, r = t.state.selection, o = n.type == "cut";
|
|
49970
49982
|
if (r.empty)
|
|
49971
49983
|
return;
|
|
@@ -50005,7 +50017,7 @@ function OA(t) {
|
|
|
50005
50017
|
return n ? n.replace(/\r?\n/g, " ") : "";
|
|
50006
50018
|
}
|
|
50007
50019
|
s(OA, "getText$1");
|
|
50008
|
-
|
|
50020
|
+
Vn.paste = (t, e) => {
|
|
50009
50021
|
let n = e;
|
|
50010
50022
|
if (t.composing && !Vr)
|
|
50011
50023
|
return;
|
|
@@ -50020,7 +50032,7 @@ const hS = class hS {
|
|
|
50020
50032
|
s(hS, "Dragging");
|
|
50021
50033
|
let Mp = hS;
|
|
50022
50034
|
const kA = vr ? "altKey" : "ctrlKey";
|
|
50023
|
-
|
|
50035
|
+
zn.dragstart = (t, e) => {
|
|
50024
50036
|
let n = e, r = t.input.mouseDown;
|
|
50025
50037
|
if (r && r.done(), !n.dataTransfer)
|
|
50026
50038
|
return;
|
|
@@ -50034,16 +50046,16 @@ Bn.dragstart = (t, e) => {
|
|
|
50034
50046
|
}
|
|
50035
50047
|
}
|
|
50036
50048
|
let l = (a || t.state.selection).content(), { dom: u, text: d, slice: p } = mA(t, l);
|
|
50037
|
-
(!n.dataTransfer.files.length || !
|
|
50049
|
+
(!n.dataTransfer.files.length || !In || tA > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(Fc ? "Text" : "text/html", u.innerHTML), n.dataTransfer.effectAllowed = "copyMove", Fc || n.dataTransfer.setData("text/plain", d), t.dragging = new Mp(p, !n[kA], a);
|
|
50038
50050
|
};
|
|
50039
|
-
|
|
50051
|
+
zn.dragend = (t) => {
|
|
50040
50052
|
let e = t.dragging;
|
|
50041
50053
|
window.setTimeout(() => {
|
|
50042
50054
|
t.dragging == e && (t.dragging = null);
|
|
50043
50055
|
}, 50);
|
|
50044
50056
|
};
|
|
50045
|
-
|
|
50046
|
-
|
|
50057
|
+
Vn.dragover = Vn.dragenter = (t, e) => e.preventDefault();
|
|
50058
|
+
Vn.drop = (t, e) => {
|
|
50047
50059
|
let n = e, r = t.dragging;
|
|
50048
50060
|
if (t.dragging = null, !n.dataTransfer)
|
|
50049
50061
|
return;
|
|
@@ -50081,17 +50093,17 @@ zn.drop = (t, e) => {
|
|
|
50081
50093
|
}
|
|
50082
50094
|
t.focus(), t.dispatch(d.setMeta("uiEvent", "drop"));
|
|
50083
50095
|
};
|
|
50084
|
-
|
|
50096
|
+
zn.focus = (t) => {
|
|
50085
50097
|
t.input.lastFocus = Date.now(), t.focused || (t.domObserver.stop(), t.dom.classList.add("ProseMirror-focused"), t.domObserver.start(), t.focused = !0, setTimeout(() => {
|
|
50086
50098
|
t.docView && t.hasFocus() && !t.domObserver.currentSelection.eq(t.domSelectionRange()) && Bo(t);
|
|
50087
50099
|
}, 20));
|
|
50088
50100
|
};
|
|
50089
|
-
|
|
50101
|
+
zn.blur = (t, e) => {
|
|
50090
50102
|
let n = e;
|
|
50091
50103
|
t.focused && (t.domObserver.stop(), t.dom.classList.remove("ProseMirror-focused"), t.domObserver.start(), n.relatedTarget && t.dom.contains(n.relatedTarget) && t.domObserver.currentSelection.clear(), t.focused = !1);
|
|
50092
50104
|
};
|
|
50093
|
-
|
|
50094
|
-
if (
|
|
50105
|
+
zn.beforeinput = (t, e) => {
|
|
50106
|
+
if (In && Vr && e.inputType == "deleteContentBackward") {
|
|
50095
50107
|
t.domObserver.flushSoon();
|
|
50096
50108
|
let { domChangeCount: r } = t.input;
|
|
50097
50109
|
setTimeout(() => {
|
|
@@ -50102,8 +50114,8 @@ Bn.beforeinput = (t, e) => {
|
|
|
50102
50114
|
}, 50);
|
|
50103
50115
|
}
|
|
50104
50116
|
};
|
|
50105
|
-
for (let t in
|
|
50106
|
-
|
|
50117
|
+
for (let t in Vn)
|
|
50118
|
+
zn[t] = Vn[t];
|
|
50107
50119
|
function Bc(t, e) {
|
|
50108
50120
|
if (t == e)
|
|
50109
50121
|
return !0;
|
|
@@ -50267,7 +50279,7 @@ const la = [], Rs = {}, so = class so {
|
|
|
50267
50279
|
you must make a copy if you want need to preserve that.
|
|
50268
50280
|
*/
|
|
50269
50281
|
static create(e, n) {
|
|
50270
|
-
return n.length ? Pp(n, e, 0, Rs) :
|
|
50282
|
+
return n.length ? Pp(n, e, 0, Rs) : Mn;
|
|
50271
50283
|
}
|
|
50272
50284
|
/**
|
|
50273
50285
|
Find all decorations in this set which touch the given range
|
|
@@ -50297,7 +50309,7 @@ const la = [], Rs = {}, so = class so {
|
|
|
50297
50309
|
document.
|
|
50298
50310
|
*/
|
|
50299
50311
|
map(e, n, r) {
|
|
50300
|
-
return this ==
|
|
50312
|
+
return this == Mn || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || Rs);
|
|
50301
50313
|
}
|
|
50302
50314
|
/**
|
|
50303
50315
|
@internal
|
|
@@ -50308,7 +50320,7 @@ const la = [], Rs = {}, so = class so {
|
|
|
50308
50320
|
let u = this.local[l].map(e, r, o);
|
|
50309
50321
|
u && u.type.valid(n, u) ? (a || (a = [])).push(u) : i.onRemove && i.onRemove(this.local[l].spec);
|
|
50310
50322
|
}
|
|
50311
|
-
return this.children.length ? PG(this.children, a || [], e, n, r, o, i) : a ? new so(a.sort(Ps), la) :
|
|
50323
|
+
return this.children.length ? PG(this.children, a || [], e, n, r, o, i) : a ? new so(a.sort(Ps), la) : Mn;
|
|
50312
50324
|
}
|
|
50313
50325
|
/**
|
|
50314
50326
|
Add the given array of decorations to the ones in the set,
|
|
@@ -50317,7 +50329,7 @@ const la = [], Rs = {}, so = class so {
|
|
|
50317
50329
|
structure.
|
|
50318
50330
|
*/
|
|
50319
50331
|
add(e, n) {
|
|
50320
|
-
return n.length ? this ==
|
|
50332
|
+
return n.length ? this == Mn ? so.create(e, n) : this.addInner(e, n, 0) : this;
|
|
50321
50333
|
}
|
|
50322
50334
|
addInner(e, n, r) {
|
|
50323
50335
|
let o, i = 0;
|
|
@@ -50339,7 +50351,7 @@ const la = [], Rs = {}, so = class so {
|
|
|
50339
50351
|
the ones in the given array.
|
|
50340
50352
|
*/
|
|
50341
50353
|
remove(e) {
|
|
50342
|
-
return e.length == 0 || this ==
|
|
50354
|
+
return e.length == 0 || this == Mn ? this : this.removeInner(e, 0);
|
|
50343
50355
|
}
|
|
50344
50356
|
removeInner(e, n) {
|
|
50345
50357
|
let r = this.children, o = this.local;
|
|
@@ -50351,7 +50363,7 @@ const la = [], Rs = {}, so = class so {
|
|
|
50351
50363
|
continue;
|
|
50352
50364
|
r == this.children && (r = this.children.slice());
|
|
50353
50365
|
let d = r[i + 2].removeInner(a, l + 1);
|
|
50354
|
-
d !=
|
|
50366
|
+
d != Mn ? r[i + 2] = d : (r.splice(i, 3), i -= 3);
|
|
50355
50367
|
}
|
|
50356
50368
|
if (o.length) {
|
|
50357
50369
|
for (let i = 0, a; i < e.length; i++)
|
|
@@ -50359,10 +50371,10 @@ const la = [], Rs = {}, so = class so {
|
|
|
50359
50371
|
for (let l = 0; l < o.length; l++)
|
|
50360
50372
|
o[l].eq(a, n) && (o == this.local && (o = this.local.slice()), o.splice(l--, 1));
|
|
50361
50373
|
}
|
|
50362
|
-
return r == this.children && o == this.local ? this : o.length || r.length ? new so(o, r) :
|
|
50374
|
+
return r == this.children && o == this.local ? this : o.length || r.length ? new so(o, r) : Mn;
|
|
50363
50375
|
}
|
|
50364
50376
|
forChild(e, n) {
|
|
50365
|
-
if (this ==
|
|
50377
|
+
if (this == Mn)
|
|
50366
50378
|
return this;
|
|
50367
50379
|
if (n.isLeaf)
|
|
50368
50380
|
return so.empty;
|
|
@@ -50384,7 +50396,7 @@ const la = [], Rs = {}, so = class so {
|
|
|
50384
50396
|
let l = new so(o.sort(Ps), la);
|
|
50385
50397
|
return r ? new Rp([l, r]) : l;
|
|
50386
50398
|
}
|
|
50387
|
-
return r ||
|
|
50399
|
+
return r || Mn;
|
|
50388
50400
|
}
|
|
50389
50401
|
/**
|
|
50390
50402
|
@internal
|
|
@@ -50412,7 +50424,7 @@ const la = [], Rs = {}, so = class so {
|
|
|
50412
50424
|
@internal
|
|
50413
50425
|
*/
|
|
50414
50426
|
localsInner(e) {
|
|
50415
|
-
if (this ==
|
|
50427
|
+
if (this == Mn)
|
|
50416
50428
|
return la;
|
|
50417
50429
|
if (e.inlineContent || !this.local.some(Is.is))
|
|
50418
50430
|
return this.local;
|
|
@@ -50429,7 +50441,7 @@ s(so, "DecorationSet");
|
|
|
50429
50441
|
let ir = so;
|
|
50430
50442
|
ir.empty = new ir([], []);
|
|
50431
50443
|
ir.removeOverlap = i1;
|
|
50432
|
-
const
|
|
50444
|
+
const Mn = ir.empty, ui = class ui {
|
|
50433
50445
|
constructor(e) {
|
|
50434
50446
|
this.members = e;
|
|
50435
50447
|
}
|
|
@@ -50443,7 +50455,7 @@ const kn = ir.empty, ui = class ui {
|
|
|
50443
50455
|
let r = [];
|
|
50444
50456
|
for (let o = 0; o < this.members.length; o++) {
|
|
50445
50457
|
let i = this.members[o].forChild(e, n);
|
|
50446
|
-
i !=
|
|
50458
|
+
i != Mn && (i instanceof ui ? r = r.concat(i.members) : r.push(i));
|
|
50447
50459
|
}
|
|
50448
50460
|
return ui.from(r);
|
|
50449
50461
|
}
|
|
@@ -50475,7 +50487,7 @@ const kn = ir.empty, ui = class ui {
|
|
|
50475
50487
|
static from(e) {
|
|
50476
50488
|
switch (e.length) {
|
|
50477
50489
|
case 0:
|
|
50478
|
-
return
|
|
50490
|
+
return Mn;
|
|
50479
50491
|
case 1:
|
|
50480
50492
|
return e[0];
|
|
50481
50493
|
default:
|
|
@@ -50520,7 +50532,7 @@ function PG(t, e, n, r, o, i, a) {
|
|
|
50520
50532
|
let h = n.map(t[d + 1] + i, -1), m = h - o, { index: y, offset: g } = r.content.findIndex(f), v = r.maybeChild(y);
|
|
50521
50533
|
if (v && g == f && g + v.nodeSize == m) {
|
|
50522
50534
|
let x = l[d + 2].mapInner(n, v, p + 1, t[d] + i + 1, a);
|
|
50523
|
-
x !=
|
|
50535
|
+
x != Mn ? (l[d] = f, l[d + 1] = m, l[d + 2] = x) : (l[d + 1] = -2, u = !0);
|
|
50524
50536
|
} else
|
|
50525
50537
|
u = !0;
|
|
50526
50538
|
}
|
|
@@ -50588,13 +50600,13 @@ function Pp(t, e, n, r) {
|
|
|
50588
50600
|
if (d) {
|
|
50589
50601
|
i = !0;
|
|
50590
50602
|
let p = Pp(d, l, n + u + 1, r);
|
|
50591
|
-
p !=
|
|
50603
|
+
p != Mn && o.push(u, u + l.nodeSize, p);
|
|
50592
50604
|
}
|
|
50593
50605
|
});
|
|
50594
50606
|
let a = MA(i ? RA(t) : t, -n).sort(Ps);
|
|
50595
50607
|
for (let l = 0; l < a.length; l++)
|
|
50596
50608
|
a[l].type.valid(e, a[l]) || (r.onRemove && r.onRemove(a[l].spec), a.splice(l--, 1));
|
|
50597
|
-
return a.length || o.length ? new ir(a, o) :
|
|
50609
|
+
return a.length || o.length ? new ir(a, o) : Mn;
|
|
50598
50610
|
}
|
|
50599
50611
|
s(Pp, "buildTree");
|
|
50600
50612
|
function Ps(t, e) {
|
|
@@ -50630,7 +50642,7 @@ function Xm(t) {
|
|
|
50630
50642
|
let e = [];
|
|
50631
50643
|
return t.someProp("decorations", (n) => {
|
|
50632
50644
|
let r = n(t.state);
|
|
50633
|
-
r && r !=
|
|
50645
|
+
r && r != Mn && e.push(r);
|
|
50634
50646
|
}), t.cursorWrapper && e.push(ir.create(t.state.doc, [t.cursorWrapper.deco])), Rp.from(e);
|
|
50635
50647
|
}
|
|
50636
50648
|
s(Xm, "viewDecorations");
|
|
@@ -50838,7 +50850,7 @@ function FG(t, e) {
|
|
|
50838
50850
|
s(FG, "blockParent");
|
|
50839
50851
|
function _G(t, e, n) {
|
|
50840
50852
|
let { node: r, fromOffset: o, toOffset: i, from: a, to: l } = t.docView.parseRange(e, n), u = t.domSelectionRange(), d, p = u.anchorNode;
|
|
50841
|
-
if (p && t.dom.contains(p.nodeType == 1 ? p : p.parentNode) && (d = [{ node: p, offset: u.anchorOffset }], Mh(u) || d.push({ node: u.focusNode, offset: u.focusOffset })),
|
|
50853
|
+
if (p && t.dom.contains(p.nodeType == 1 ? p : p.parentNode) && (d = [{ node: p, offset: u.anchorOffset }], Mh(u) || d.push({ node: u.focusNode, offset: u.focusOffset })), In && t.input.lastKeyCode === 8)
|
|
50842
50854
|
for (let v = i; v > o; v--) {
|
|
50843
50855
|
let x = r.childNodes[v - 1], T = x.pmViewDesc;
|
|
50844
50856
|
if (x.nodeName == "BR" && !T) {
|
|
@@ -50871,10 +50883,10 @@ function BG(t) {
|
|
|
50871
50883
|
if (e)
|
|
50872
50884
|
return e.parseRule();
|
|
50873
50885
|
if (t.nodeName == "BR" && t.parentNode) {
|
|
50874
|
-
if (
|
|
50886
|
+
if (Bn && /^(ul|ol)$/i.test(t.parentNode.nodeName)) {
|
|
50875
50887
|
let n = document.createElement("div");
|
|
50876
50888
|
return n.appendChild(document.createElement("li")), { skip: n };
|
|
50877
|
-
} else if (t.parentNode.lastChild == t ||
|
|
50889
|
+
} else if (t.parentNode.lastChild == t || Bn && /^(tr|table)$/i.test(t.parentNode.nodeName))
|
|
50878
50890
|
return { ignore: !0 };
|
|
50879
50891
|
} else if (t.nodeName == "IMG" && t.getAttribute("mark-placeholder"))
|
|
50880
50892
|
return { ignore: !0 };
|
|
@@ -50887,7 +50899,7 @@ function VG(t, e, n, r, o) {
|
|
|
50887
50899
|
if (t.input.compositionPendingChanges = 0, e < 0) {
|
|
50888
50900
|
let R = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, L = e1(t, R);
|
|
50889
50901
|
if (L && !t.state.selection.eq(L)) {
|
|
50890
|
-
if (
|
|
50902
|
+
if (In && Vr && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (k) => k(t, ns(13, "Enter"))))
|
|
50891
50903
|
return;
|
|
50892
50904
|
let A = t.state.tr.setSelection(L);
|
|
50893
50905
|
R == "pointer" ? A.setMeta("pointer", !0) : R == "key" && A.scrollIntoView(), i && A.setMeta("composition", i), t.dispatch(A);
|
|
@@ -50923,10 +50935,10 @@ function VG(t, e, n, r, o) {
|
|
|
50923
50935
|
return;
|
|
50924
50936
|
}
|
|
50925
50937
|
if (t.state.selection.anchor > y.start && WG(p, y.start, y.endA, g, v) && t.someProp("handleKeyDown", (R) => R(t, ns(8, "Backspace")))) {
|
|
50926
|
-
Vr &&
|
|
50938
|
+
Vr && In && t.domObserver.suppressSelectionUpdates();
|
|
50927
50939
|
return;
|
|
50928
50940
|
}
|
|
50929
|
-
|
|
50941
|
+
In && Vr && y.endB == y.start && (t.input.lastAndroidDelete = Date.now()), Vr && !T && g.start() != v.start() && v.parentOffset == 0 && g.depth == v.depth && d.sel && d.sel.anchor == d.sel.head && d.sel.head == y.endA && (y.endB -= 2, v = d.doc.resolveNoCache(y.endB - d.from), setTimeout(() => {
|
|
50930
50942
|
t.someProp("handleKeyDown", function(R) {
|
|
50931
50943
|
return R(t, ns(13, "Enter"));
|
|
50932
50944
|
});
|
|
@@ -50949,7 +50961,7 @@ function VG(t, e, n, r, o) {
|
|
|
50949
50961
|
}
|
|
50950
50962
|
if (O || (O = t.state.tr.replace(C, E, d.doc.slice(y.start - d.from, y.endB - d.from))), d.sel) {
|
|
50951
50963
|
let R = ZT(t, O.doc, d.sel);
|
|
50952
|
-
R && !(
|
|
50964
|
+
R && !(In && Vr && t.composing && R.empty && (y.start != y.endB || t.input.lastAndroidDelete < Date.now() - 100) && (R.head == C || R.head == O.mapping.map(E) - 1) || Jn && R.empty && R.head == C) && O.setSelection(R);
|
|
50953
50965
|
}
|
|
50954
50966
|
M && O.ensureMarks(M), i && O.setMeta("composition", i), t.dispatch(O.scrollIntoView());
|
|
50955
50967
|
}
|
|
@@ -51110,9 +51122,9 @@ const yS = class yS {
|
|
|
51110
51122
|
let h = p == "preserve" && a && this.dom.style.overflowAnchor == null && AU(this);
|
|
51111
51123
|
if (a) {
|
|
51112
51124
|
this.domObserver.stop();
|
|
51113
|
-
let m = f && (Jn ||
|
|
51125
|
+
let m = f && (Jn || In) && !this.composing && !o.selection.empty && !e.selection.empty && qG(o.selection, e.selection);
|
|
51114
51126
|
if (f) {
|
|
51115
|
-
let y =
|
|
51127
|
+
let y = In ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
51116
51128
|
this.composing && (this.input.compositionNode = OG(this)), (i || !this.docView.update(e.doc, d, u, this)) && (this.docView.updateOuterDeco(d), this.docView.destroy(), this.docView = $T(e.doc, d, u, this.dom, this)), y && !this.trackWrites && (m = !0);
|
|
51117
51129
|
}
|
|
51118
51130
|
m || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && ZU(this)) ? Bo(this, m) : (pA(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
@@ -51356,7 +51368,7 @@ const yS = class yS {
|
|
|
51356
51368
|
*/
|
|
51357
51369
|
domSelectionRange() {
|
|
51358
51370
|
let e = this.domSelection();
|
|
51359
|
-
return e ?
|
|
51371
|
+
return e ? Bn && this.root.nodeType === 11 && OU(this.dom.ownerDocument) == this.dom && LG(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
|
|
51360
51372
|
}
|
|
51361
51373
|
/**
|
|
51362
51374
|
@internal
|
|
@@ -51848,7 +51860,7 @@ function jA(t, e, n, r) {
|
|
|
51848
51860
|
for (let x = a.length - 1; x >= 0; x--)
|
|
51849
51861
|
y = de.from(a[x].create(null, y));
|
|
51850
51862
|
y = de.from(o.copy(y));
|
|
51851
|
-
let g = t.tr.step(new
|
|
51863
|
+
let g = t.tr.step(new Rn(e.pos - 1, m, e.pos, m, new Ee(y, 1, 0), a.length, !0)), v = g.doc.resolve(m + 2 * a.length);
|
|
51852
51864
|
v.nodeAfter && v.nodeAfter.type == o.type && Di(g.doc, v.pos) && g.join(v.pos), n(g.scrollIntoView());
|
|
51853
51865
|
}
|
|
51854
51866
|
return !0;
|
|
@@ -51868,7 +51880,7 @@ function jA(t, e, n, r) {
|
|
|
51868
51880
|
let x = de.empty;
|
|
51869
51881
|
for (let w = y.length - 1; w >= 0; w--)
|
|
51870
51882
|
x = de.from(y[w].copy(x));
|
|
51871
|
-
let T = t.tr.step(new
|
|
51883
|
+
let T = t.tr.step(new Rn(e.pos - y.length, e.pos + i.nodeSize, e.pos + v, e.pos + i.nodeSize - v, new Ee(x, y.length, 0), 0, !0));
|
|
51872
51884
|
n(T.scrollIntoView());
|
|
51873
51885
|
}
|
|
51874
51886
|
return !0;
|
|
@@ -51961,7 +51973,7 @@ function hK(t, e, n, r, o) {
|
|
|
51961
51973
|
let i = de.empty;
|
|
51962
51974
|
for (let p = n.length - 1; p >= 0; p--)
|
|
51963
51975
|
i = de.from(n[p].type.create(n[p].attrs, i));
|
|
51964
|
-
t.step(new
|
|
51976
|
+
t.step(new Rn(e.start - (r ? 2 : 0), e.end, e.start, e.end, new Ee(i, 0, 0), n.length, !0));
|
|
51965
51977
|
let a = 0;
|
|
51966
51978
|
for (let p = 0; p < n.length; p++)
|
|
51967
51979
|
n[p].type == o && (a = p + 1);
|
|
@@ -51980,7 +51992,7 @@ function mK(t) {
|
|
|
51980
51992
|
s(mK, "liftListItem$1");
|
|
51981
51993
|
function gK(t, e, n, r) {
|
|
51982
51994
|
let o = t.tr, i = r.end, a = r.$to.end(r.depth);
|
|
51983
|
-
i < a && (o.step(new
|
|
51995
|
+
i < a && (o.step(new Rn(i - 1, a, i, a, new Ee(de.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Ua(o.doc.resolve(r.$from.pos), o.doc.resolve(a), r.depth));
|
|
51984
51996
|
const l = cl(r);
|
|
51985
51997
|
if (l == null)
|
|
51986
51998
|
return !1;
|
|
@@ -52000,7 +52012,7 @@ function yK(t, e, n) {
|
|
|
52000
52012
|
if (!d.canReplace(p + (l ? 0 : 1), p + 1, a.content.append(u ? de.empty : de.from(o))))
|
|
52001
52013
|
return !1;
|
|
52002
52014
|
let f = i.pos, h = f + a.nodeSize;
|
|
52003
|
-
return r.step(new
|
|
52015
|
+
return r.step(new Rn(f - (l ? 1 : 0), h + (u ? 1 : 0), f + 1, h - 1, new Ee((l ? de.empty : de.from(o.copy(de.empty))).append(u ? de.empty : de.from(o.copy(de.empty))), l ? 0 : 1, u ? 0 : 1), l ? 0 : 1)), e(r.scrollIntoView()), !0;
|
|
52004
52016
|
}
|
|
52005
52017
|
s(yK, "liftOutOfList");
|
|
52006
52018
|
function bK(t) {
|
|
@@ -52016,7 +52028,7 @@ function bK(t) {
|
|
|
52016
52028
|
return !1;
|
|
52017
52029
|
if (n) {
|
|
52018
52030
|
let d = u.lastChild && u.lastChild.type == l.type, p = de.from(d ? t.create() : null), f = new Ee(de.from(t.create(null, de.from(l.type.create(null, p)))), d ? 3 : 1, 0), h = i.start, m = i.end;
|
|
52019
|
-
n(e.tr.step(new
|
|
52031
|
+
n(e.tr.step(new Rn(h - (d ? 3 : 1), m, h, m, f, 1, !0)).scrollIntoView());
|
|
52020
52032
|
}
|
|
52021
52033
|
return !0;
|
|
52022
52034
|
};
|
|
@@ -52917,7 +52929,7 @@ const hc = class hc {
|
|
|
52917
52929
|
}
|
|
52918
52930
|
};
|
|
52919
52931
|
s(hc, "Extension");
|
|
52920
|
-
let
|
|
52932
|
+
let Pn = hc;
|
|
52921
52933
|
function UA(t, e, n) {
|
|
52922
52934
|
const { from: r, to: o } = e, { blockSeparator: i = `
|
|
52923
52935
|
|
|
@@ -52943,7 +52955,7 @@ function GA(t) {
|
|
|
52943
52955
|
return Object.fromEntries(Object.entries(t.nodes).filter(([, e]) => e.spec.toText).map(([e, n]) => [e, n.spec.toText]));
|
|
52944
52956
|
}
|
|
52945
52957
|
s(GA, "getTextSerializersFromSchema");
|
|
52946
|
-
const AK =
|
|
52958
|
+
const AK = Pn.create({
|
|
52947
52959
|
name: "clipboardTextSerializer",
|
|
52948
52960
|
addOptions() {
|
|
52949
52961
|
return {
|
|
@@ -52953,7 +52965,7 @@ const AK = Rn.create({
|
|
|
52953
52965
|
addProseMirrorPlugins() {
|
|
52954
52966
|
return [
|
|
52955
52967
|
new tn({
|
|
52956
|
-
key: new
|
|
52968
|
+
key: new _n("clipboardTextSerializer"),
|
|
52957
52969
|
props: {
|
|
52958
52970
|
clipboardTextSerializer: /* @__PURE__ */ s(() => {
|
|
52959
52971
|
const { editor: t } = this, { state: e, schema: n } = t, { doc: r, selection: o } = e, { ranges: i } = o, a = Math.min(...i.map((p) => p.$from.pos)), l = Math.max(...i.map((p) => p.$to.pos)), u = GA(n);
|
|
@@ -53192,7 +53204,7 @@ function XK(t, e, n) {
|
|
|
53192
53204
|
if (r < e)
|
|
53193
53205
|
return;
|
|
53194
53206
|
const o = t.steps[r];
|
|
53195
|
-
if (!(o instanceof ar || o instanceof
|
|
53207
|
+
if (!(o instanceof ar || o instanceof Rn))
|
|
53196
53208
|
return;
|
|
53197
53209
|
const i = t.mapping.maps[r];
|
|
53198
53210
|
let a = 0;
|
|
@@ -53909,19 +53921,19 @@ var eJ = /* @__PURE__ */ Object.freeze({
|
|
|
53909
53921
|
wrapIn: QY,
|
|
53910
53922
|
wrapInList: ZY
|
|
53911
53923
|
});
|
|
53912
|
-
const tJ =
|
|
53924
|
+
const tJ = Pn.create({
|
|
53913
53925
|
name: "commands",
|
|
53914
53926
|
addCommands() {
|
|
53915
53927
|
return {
|
|
53916
53928
|
...eJ
|
|
53917
53929
|
};
|
|
53918
53930
|
}
|
|
53919
|
-
}), nJ =
|
|
53931
|
+
}), nJ = Pn.create({
|
|
53920
53932
|
name: "drop",
|
|
53921
53933
|
addProseMirrorPlugins() {
|
|
53922
53934
|
return [
|
|
53923
53935
|
new tn({
|
|
53924
|
-
key: new
|
|
53936
|
+
key: new _n("tiptapDrop"),
|
|
53925
53937
|
props: {
|
|
53926
53938
|
handleDrop: /* @__PURE__ */ s((t, e, n, r) => {
|
|
53927
53939
|
this.editor.emit("drop", {
|
|
@@ -53935,25 +53947,25 @@ const tJ = Rn.create({
|
|
|
53935
53947
|
})
|
|
53936
53948
|
];
|
|
53937
53949
|
}
|
|
53938
|
-
}), rJ =
|
|
53950
|
+
}), rJ = Pn.create({
|
|
53939
53951
|
name: "editable",
|
|
53940
53952
|
addProseMirrorPlugins() {
|
|
53941
53953
|
return [
|
|
53942
53954
|
new tn({
|
|
53943
|
-
key: new
|
|
53955
|
+
key: new _n("editable"),
|
|
53944
53956
|
props: {
|
|
53945
53957
|
editable: /* @__PURE__ */ s(() => this.editor.options.editable, "editable")
|
|
53946
53958
|
}
|
|
53947
53959
|
})
|
|
53948
53960
|
];
|
|
53949
53961
|
}
|
|
53950
|
-
}), oJ =
|
|
53962
|
+
}), oJ = Pn.create({
|
|
53951
53963
|
name: "focusEvents",
|
|
53952
53964
|
addProseMirrorPlugins() {
|
|
53953
53965
|
const { editor: t } = this;
|
|
53954
53966
|
return [
|
|
53955
53967
|
new tn({
|
|
53956
|
-
key: new
|
|
53968
|
+
key: new _n("focusEvents"),
|
|
53957
53969
|
props: {
|
|
53958
53970
|
handleDOMEvents: {
|
|
53959
53971
|
focus: /* @__PURE__ */ s((e, n) => {
|
|
@@ -53971,7 +53983,7 @@ const tJ = Rn.create({
|
|
|
53971
53983
|
})
|
|
53972
53984
|
];
|
|
53973
53985
|
}
|
|
53974
|
-
}), iJ =
|
|
53986
|
+
}), iJ = Pn.create({
|
|
53975
53987
|
name: "keymap",
|
|
53976
53988
|
addKeyboardShortcuts() {
|
|
53977
53989
|
const t = /* @__PURE__ */ s(() => this.editor.commands.first(({ commands: a }) => [
|
|
@@ -54026,7 +54038,7 @@ const tJ = Rn.create({
|
|
|
54026
54038
|
// This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
|
|
54027
54039
|
// with many other commands.
|
|
54028
54040
|
new tn({
|
|
54029
|
-
key: new
|
|
54041
|
+
key: new _n("clearDocument"),
|
|
54030
54042
|
appendTransaction: /* @__PURE__ */ s((t, e, n) => {
|
|
54031
54043
|
const r = t.some((g) => g.docChanged) && !e.doc.eq(n.doc), o = t.some((g) => g.getMeta("preventClearDocument"));
|
|
54032
54044
|
if (!r || o)
|
|
@@ -54047,12 +54059,12 @@ const tJ = Rn.create({
|
|
|
54047
54059
|
})
|
|
54048
54060
|
];
|
|
54049
54061
|
}
|
|
54050
|
-
}), sJ =
|
|
54062
|
+
}), sJ = Pn.create({
|
|
54051
54063
|
name: "paste",
|
|
54052
54064
|
addProseMirrorPlugins() {
|
|
54053
54065
|
return [
|
|
54054
54066
|
new tn({
|
|
54055
|
-
key: new
|
|
54067
|
+
key: new _n("tiptapPaste"),
|
|
54056
54068
|
props: {
|
|
54057
54069
|
handlePaste: /* @__PURE__ */ s((t, e, n) => {
|
|
54058
54070
|
this.editor.emit("paste", {
|
|
@@ -54065,12 +54077,12 @@ const tJ = Rn.create({
|
|
|
54065
54077
|
})
|
|
54066
54078
|
];
|
|
54067
54079
|
}
|
|
54068
|
-
}), aJ =
|
|
54080
|
+
}), aJ = Pn.create({
|
|
54069
54081
|
name: "tabindex",
|
|
54070
54082
|
addProseMirrorPlugins() {
|
|
54071
54083
|
return [
|
|
54072
54084
|
new tn({
|
|
54073
|
-
key: new
|
|
54085
|
+
key: new _n("tabindex"),
|
|
54074
54086
|
props: {
|
|
54075
54087
|
attributes: /* @__PURE__ */ s(() => this.editor.isEditable ? { tabindex: "0" } : {}, "attributes")
|
|
54076
54088
|
}
|
|
@@ -54788,7 +54800,7 @@ const uJ = Gr.create({
|
|
|
54788
54800
|
}, "removeEmptyTextStyle")
|
|
54789
54801
|
};
|
|
54790
54802
|
}
|
|
54791
|
-
}), dJ =
|
|
54803
|
+
}), dJ = Pn.create({
|
|
54792
54804
|
name: "color",
|
|
54793
54805
|
addOptions() {
|
|
54794
54806
|
return {
|
|
@@ -55658,7 +55670,7 @@ function $J(t) {
|
|
|
55658
55670
|
s($J, "isValidLinkStructure");
|
|
55659
55671
|
function LJ(t) {
|
|
55660
55672
|
return new tn({
|
|
55661
|
-
key: new
|
|
55673
|
+
key: new _n("autolink"),
|
|
55662
55674
|
appendTransaction: /* @__PURE__ */ s((e, n, r) => {
|
|
55663
55675
|
const o = e.some((d) => d.docChanged) && !n.doc.eq(r.doc), i = e.some((d) => d.getMeta("preventAutolink"));
|
|
55664
55676
|
if (!o || i)
|
|
@@ -55695,7 +55707,7 @@ function LJ(t) {
|
|
|
55695
55707
|
s(LJ, "autolink");
|
|
55696
55708
|
function FJ(t) {
|
|
55697
55709
|
return new tn({
|
|
55698
|
-
key: new
|
|
55710
|
+
key: new _n("handleClickLink"),
|
|
55699
55711
|
props: {
|
|
55700
55712
|
handleClick: /* @__PURE__ */ s((e, n, r) => {
|
|
55701
55713
|
var o, i;
|
|
@@ -55716,7 +55728,7 @@ function FJ(t) {
|
|
|
55716
55728
|
s(FJ, "clickHandler");
|
|
55717
55729
|
function _J(t) {
|
|
55718
55730
|
return new tn({
|
|
55719
|
-
key: new
|
|
55731
|
+
key: new _n("handlePasteLink"),
|
|
55720
55732
|
props: {
|
|
55721
55733
|
handlePaste: /* @__PURE__ */ s((e, n, r) => {
|
|
55722
55734
|
const { state: o } = e, { selection: i } = o, { empty: a } = i;
|
|
@@ -55858,7 +55870,7 @@ const zJ = Gr.create({
|
|
|
55858
55870
|
type: this.type
|
|
55859
55871
|
})), t;
|
|
55860
55872
|
}
|
|
55861
|
-
}), VJ =
|
|
55873
|
+
}), VJ = Pn.create({
|
|
55862
55874
|
name: "textAlign",
|
|
55863
55875
|
addOptions() {
|
|
55864
55876
|
return {
|
|
@@ -56820,7 +56832,7 @@ const lX = /^\s*>\s$/, cX = Zn.create({
|
|
|
56820
56832
|
// this plugin creates a code block for pasted content from VS Code
|
|
56821
56833
|
// we can also detect the copied code language
|
|
56822
56834
|
new tn({
|
|
56823
|
-
key: new
|
|
56835
|
+
key: new _n("codeBlockVSCodeHandler"),
|
|
56824
56836
|
props: {
|
|
56825
56837
|
handlePaste: /* @__PURE__ */ s((t, e) => {
|
|
56826
56838
|
if (!e.clipboardData || this.editor.isActive(this.type.name))
|
|
@@ -56923,7 +56935,7 @@ const OS = class OS {
|
|
|
56923
56935
|
};
|
|
56924
56936
|
s(OS, "DropCursorView");
|
|
56925
56937
|
let Cv = OS;
|
|
56926
|
-
const EX =
|
|
56938
|
+
const EX = Pn.create({
|
|
56927
56939
|
name: "dropCursor",
|
|
56928
56940
|
addOptions() {
|
|
56929
56941
|
return {
|
|
@@ -57023,10 +57035,10 @@ const EX = Rn.create({
|
|
|
57023
57035
|
}
|
|
57024
57036
|
};
|
|
57025
57037
|
s(ao, "GapCursor");
|
|
57026
|
-
let
|
|
57027
|
-
|
|
57028
|
-
|
|
57029
|
-
Ge.jsonID("gapcursor",
|
|
57038
|
+
let An = ao;
|
|
57039
|
+
An.prototype.visible = !1;
|
|
57040
|
+
An.findFrom = An.findGapCursorFrom;
|
|
57041
|
+
Ge.jsonID("gapcursor", An);
|
|
57030
57042
|
const Of = class Of {
|
|
57031
57043
|
constructor(e) {
|
|
57032
57044
|
this.pos = e;
|
|
@@ -57036,7 +57048,7 @@ const Of = class Of {
|
|
|
57036
57048
|
}
|
|
57037
57049
|
resolve(e) {
|
|
57038
57050
|
let n = e.resolve(this.pos);
|
|
57039
|
-
return
|
|
57051
|
+
return An.valid(n) ? new An(n) : Ge.near(n);
|
|
57040
57052
|
}
|
|
57041
57053
|
};
|
|
57042
57054
|
s(Of, "GapBookmark");
|
|
@@ -57082,7 +57094,7 @@ function MX() {
|
|
|
57082
57094
|
props: {
|
|
57083
57095
|
decorations: AX,
|
|
57084
57096
|
createSelectionBetween(t, e, n) {
|
|
57085
|
-
return e.pos == n.pos &&
|
|
57097
|
+
return e.pos == n.pos && An.valid(n) ? new An(n) : null;
|
|
57086
57098
|
},
|
|
57087
57099
|
handleClick: RX,
|
|
57088
57100
|
handleKeyDown: IX,
|
|
@@ -57106,8 +57118,8 @@ function md(t, e) {
|
|
|
57106
57118
|
return !1;
|
|
57107
57119
|
u = !1, l = r.doc.resolve(e > 0 ? l.after() : l.before());
|
|
57108
57120
|
}
|
|
57109
|
-
let d =
|
|
57110
|
-
return d ? (o && o(r.tr.setSelection(new
|
|
57121
|
+
let d = An.findGapCursorFrom(l, e, u);
|
|
57122
|
+
return d ? (o && o(r.tr.setSelection(new An(d))), !0) : !1;
|
|
57111
57123
|
};
|
|
57112
57124
|
}
|
|
57113
57125
|
s(md, "arrow");
|
|
@@ -57115,14 +57127,14 @@ function RX(t, e, n) {
|
|
|
57115
57127
|
if (!t || !t.editable)
|
|
57116
57128
|
return !1;
|
|
57117
57129
|
let r = t.state.doc.resolve(e);
|
|
57118
|
-
if (!
|
|
57130
|
+
if (!An.valid(r))
|
|
57119
57131
|
return !1;
|
|
57120
57132
|
let o = t.posAtCoords({ left: n.clientX, top: n.clientY });
|
|
57121
|
-
return o && o.inside > -1 && ze.isSelectable(t.state.doc.nodeAt(o.inside)) ? !1 : (t.dispatch(t.state.tr.setSelection(new
|
|
57133
|
+
return o && o.inside > -1 && ze.isSelectable(t.state.doc.nodeAt(o.inside)) ? !1 : (t.dispatch(t.state.tr.setSelection(new An(r))), !0);
|
|
57122
57134
|
}
|
|
57123
57135
|
s(RX, "handleClick");
|
|
57124
57136
|
function PX(t, e) {
|
|
57125
|
-
if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof
|
|
57137
|
+
if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof An))
|
|
57126
57138
|
return !1;
|
|
57127
57139
|
let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
|
|
57128
57140
|
if (!r)
|
|
@@ -57135,13 +57147,13 @@ function PX(t, e) {
|
|
|
57135
57147
|
}
|
|
57136
57148
|
s(PX, "beforeinput");
|
|
57137
57149
|
function AX(t) {
|
|
57138
|
-
if (!(t.selection instanceof
|
|
57150
|
+
if (!(t.selection instanceof An))
|
|
57139
57151
|
return null;
|
|
57140
57152
|
let e = document.createElement("div");
|
|
57141
57153
|
return e.className = "ProseMirror-gapcursor", ir.create(t.doc, [Uo.widget(t.selection.head, e, { key: "gapcursor" })]);
|
|
57142
57154
|
}
|
|
57143
57155
|
s(AX, "drawGapCursor");
|
|
57144
|
-
const NX =
|
|
57156
|
+
const NX = Pn.create({
|
|
57145
57157
|
name: "gapCursor",
|
|
57146
57158
|
addProseMirrorPlugins() {
|
|
57147
57159
|
return [
|
|
@@ -57568,7 +57580,7 @@ function Nd(t) {
|
|
|
57568
57580
|
return fg;
|
|
57569
57581
|
}
|
|
57570
57582
|
s(Nd, "mustPreserveItems");
|
|
57571
|
-
const As = new
|
|
57583
|
+
const As = new _n("history"), WX = new _n("closeHistory");
|
|
57572
57584
|
function HX(t = {}) {
|
|
57573
57585
|
return t = {
|
|
57574
57586
|
depth: t.depth || 100,
|
|
@@ -57608,7 +57620,7 @@ function l2(t, e) {
|
|
|
57608
57620
|
};
|
|
57609
57621
|
}
|
|
57610
57622
|
s(l2, "buildCommand");
|
|
57611
|
-
const c2 = l2(!1, !0), u2 = l2(!0, !0), qX =
|
|
57623
|
+
const c2 = l2(!1, !0), u2 = l2(!0, !0), qX = Pn.create({
|
|
57612
57624
|
name: "history",
|
|
57613
57625
|
addOptions() {
|
|
57614
57626
|
return {
|
|
@@ -57933,7 +57945,7 @@ const c2 = l2(!1, !0), u2 = l2(!0, !0), qX = Rn.create({
|
|
|
57933
57945
|
}), iQ = Zn.create({
|
|
57934
57946
|
name: "text",
|
|
57935
57947
|
group: "inline"
|
|
57936
|
-
}), sQ =
|
|
57948
|
+
}), sQ = Pn.create({
|
|
57937
57949
|
name: "starterKit",
|
|
57938
57950
|
addExtensions() {
|
|
57939
57951
|
var t, e, n, r, o, i, a, l, u, d, p, f, h, m, y, g, v, x;
|
|
@@ -60070,7 +60082,7 @@ const pf = "RaLabeled", ff = {
|
|
|
60070
60082
|
const {
|
|
60071
60083
|
propsContenido: { html: e = !1, ...n },
|
|
60072
60084
|
hidden: r
|
|
60073
|
-
} =
|
|
60085
|
+
} = jn(t);
|
|
60074
60086
|
return r ? null : e ? /* @__PURE__ */ b(yee, { ...n, className: "" }) : /* @__PURE__ */ b(bo, { multiline: !0, ...n });
|
|
60075
60087
|
}, "TextArea"), M2 = /* @__PURE__ */ s((t) => {
|
|
60076
60088
|
const { helperText: e, error: n } = t, r = nn();
|
|
@@ -60330,7 +60342,7 @@ const pf = "RaLabeled", ff = {
|
|
|
60330
60342
|
}
|
|
60331
60343
|
);
|
|
60332
60344
|
}, "IntegerInput"), nne = /* @__PURE__ */ s((t) => {
|
|
60333
|
-
const { tipo: e, ...n } = t, { propsContenido: r, hidden: o } =
|
|
60345
|
+
const { tipo: e, ...n } = t, { propsContenido: r, hidden: o } = jn(n), i = {
|
|
60334
60346
|
...r
|
|
60335
60347
|
};
|
|
60336
60348
|
return o ? null : e === "N" ? /* @__PURE__ */ b(Nee, { ...i }) : e === "D" ? /* @__PURE__ */ b(Aee, { ...i, totalDigits: i.maxLength }) : e === "F" ? /* @__PURE__ */ b(Cee, { ...i }) : e === "Z" ? /* @__PURE__ */ b(kee, { ...i }) : e === "H" ? /* @__PURE__ */ b(bo, { ...i, type: "time" }) : e === "TF" ? /* @__PURE__ */ b(
|
|
@@ -60350,7 +60362,7 @@ const pf = "RaLabeled", ff = {
|
|
|
60350
60362
|
const { label: e, sx: n, source: r } = t, o = En(), { estado: i } = Nt(), {
|
|
60351
60363
|
hidden: a,
|
|
60352
60364
|
propsContenido: { helperText: l, sx: u, readOnly: d }
|
|
60353
|
-
} =
|
|
60365
|
+
} = jn(t);
|
|
60354
60366
|
return S.useEffect(() => {
|
|
60355
60367
|
if (i !== "ND" || !r)
|
|
60356
60368
|
return;
|
|
@@ -60408,7 +60420,7 @@ export {
|
|
|
60408
60420
|
Ute as CheckBox,
|
|
60409
60421
|
q8 as ComboBox,
|
|
60410
60422
|
Gte as ComboBoxManual,
|
|
60411
|
-
|
|
60423
|
+
Fn as ConfigContext,
|
|
60412
60424
|
Tte as CreateEtriek,
|
|
60413
60425
|
Ote as DeleteButtonNoWarning,
|
|
60414
60426
|
kte as EditEtriek,
|
|
@@ -60500,7 +60512,7 @@ export {
|
|
|
60500
60512
|
tte as timeParser,
|
|
60501
60513
|
u0 as useAjax,
|
|
60502
60514
|
Yo as useAsistente,
|
|
60503
|
-
|
|
60515
|
+
jn as useContenidoController,
|
|
60504
60516
|
gte as useEtrActions,
|
|
60505
60517
|
Nt as useFicha,
|
|
60506
60518
|
YM as useFieldController,
|