biblio-react 3.0.0-alpha150 → 3.0.0-alpha151
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 +652 -652
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,13 +2,13 @@ var VM = Object.defineProperty;
|
|
|
2
2
|
var a = (t, e) => VM(t, "name", { value: e, configurable: !0 });
|
|
3
3
|
import Me, { jsx as y, jsxs as W, Fragment as Qr } from "react/jsx-runtime";
|
|
4
4
|
import * as O from "react";
|
|
5
|
-
import Ue, { forwardRef as Ll, useContext as ot, createElement as t0, Children as zd, isValidElement as Nn, cloneElement as Yr, createContext as $t, useState as De, useMemo as
|
|
6
|
-
import { unstable_ClassNameGenerator as Z1, exactProp as Hd, unstable_getScrollbarSize as HM, unstable_ownerDocument as Dn, unstable_ownerWindow as rl, unstable_useForkRef as Ea, elementAcceptingRef as WM, unstable_useEnhancedEffect as
|
|
7
|
-
import { MenuItem as
|
|
8
|
-
import { useTranslate as Tt, useUserMenu as lP, useResourceDefinitions as cP, AppBar as uP, UserMenu as dP, Logout as pP, useResourceContext as pt, useRecordContext as
|
|
9
|
-
import { Link as il, useNavigate as Xa, Routes as tg, Route as rg, useLocation as
|
|
5
|
+
import Ue, { forwardRef as Ll, useContext as ot, createElement as t0, Children as zd, isValidElement as Nn, cloneElement as Yr, createContext as $t, useState as De, useMemo as ur, useRef as So, useCallback as nt, useEffect as qe, Fragment as vn, memo as Q1, useImperativeHandle as jM, useDebugValue as X1, useId as zM } from "react";
|
|
6
|
+
import { unstable_ClassNameGenerator as Z1, exactProp as Hd, unstable_getScrollbarSize as HM, unstable_ownerDocument as Dn, unstable_ownerWindow as rl, unstable_useForkRef as Ea, elementAcceptingRef as WM, unstable_useEnhancedEffect as xi, unstable_setRef as r0, HTMLElementType as nh, unstable_useEventCallback as n0, unstable_createChainedFunction as o0, unstable_debounce as UM, usePreviousProps as qM, unstable_getNormalizedScrollLeft as GM, unstable_detectScrollType as KM, chainPropTypes as YM, refType as JM, deepmerge as eS } from "@mui/utils";
|
|
7
|
+
import { MenuItem as ai, ListItemIcon as pa, ListItemText as fa, useMediaQuery as Di, Typography as nl, Box as lt, Grid as i0, Dialog as Qm, DialogTitle as tS, DialogContent as QM, Stack as Xm, DialogActions as XM, Tooltip as Wd, IconButton as ol, useTheme as rS, createTheme as ZM, ThemeProvider as eP, alpha as tP, StyledEngineProvider as nS, Card as oS, CircularProgress as rP, CardContent as iS, Collapse as nP, List as aS, Menu as oh, Switch as oP, Divider as iP, Button as a0, Paper as sS, ToggleButtonGroup as Ud, ToggleButton as zt, ListItem as aP, FormHelperText as sP } from "@mui/material";
|
|
8
|
+
import { useTranslate as Tt, useUserMenu as lP, useResourceDefinitions as cP, AppBar as uP, UserMenu as dP, Logout as pP, useResourceContext as pt, useRecordContext as dr, useNotify as lS, useDeleteWithConfirmController as fP, Button as gr, Confirm as Nl, Toolbar as Zm, ToolbarClasses as hP, SaveButton as Dl, useRedirect as _i, useDelete as cS, useSaveContext as mP, required as gP, minValue as bP, TopToolbar as uS, RefreshButton as yP, ListButton as vP, ShowButton as xP, useDataProvider as Qa, useListContext as Oi, useUnselectAll as OP, NumberField as SP, DateField as s0, TextField as Ic, ReferenceField as CP, useCreatePath as _l, Form as Bl, useResourceDefinition as dS, BulkActionsToolbar as kP, useInput as qd, useGetList as pS, Labeled as fS, useSafeSetState as eg, useGetOne as hS, useCreateController as EP, CreateContextProvider as TP, LoadingClasses as Yc, Create as wP, useListController as MP, ListContextProvider as PP, List as mS, Edit as RP, useEditContext as AP, SimpleForm as FP, useSidebarState as gS, Menu as IP, DashboardMenuItem as $P, MenuItemLink as bS, Layout as LP, FilterContext as NP, sanitizeListRestProps as DP, FilterButton as _P, CreateButton as BP, useLogin as VP, TextInput as ho, PasswordInput as yS, Show as jP, useShowContext as zP, FormTab as HP, getTabbedFormTabFullPath as WP, TabbedFormTabs as UP, defaultTheme as vS, BooleanField as qP, ImageInput as GP, ImageField as KP, FileInput as YP, BooleanInput as JP, ReferenceInput as xS, useChoicesContext as OS, AutocompleteInput as QP, SelectInput as XP, ReferenceArrayInput as ZP, AutocompleteArrayInput as eR, SearchInput as tR, RadioButtonGroupInput as SS, useRecordSelection as CS, ListActions as rR, Datagrid as nR, ValidationError as oR, FieldTitle as kS, NumberInput as iR } from "react-admin";
|
|
9
|
+
import { Link as il, useNavigate as Xa, Routes as tg, Route as rg, useLocation as Co, matchPath as ih, useResolvedPath as aR } from "react-router-dom";
|
|
10
10
|
import { useGridApiContext as Bi, useGridSelector as Ta, gridColumnVisibilityModelSelector as ES, gridColumnDefinitionsSelector as TS, GridColumnIcon as sR, gridSortModelSelector as lR, GridArrowUpwardIcon as cR, GridArrowDownwardIcon as uR, GridToolbarExport as dR, selectedGridRowsSelector as pR, GridToolbarContainer as fR, GridClearIcon as hR, GridToolbarQuickFilter as mR, useGridApiRef as ng, useKeepGroupedColumnsHidden as wS, GridActionsCellItem as Kp, DataGridPremium as og, gridClasses as l0 } from "@mui/x-data-grid-premium";
|
|
11
|
-
import { useFormContext as
|
|
11
|
+
import { useFormContext as pr, useFormState as gR, useController as bR } from "react-hook-form";
|
|
12
12
|
import { useSelector as ig, useDispatch as Vi } from "react-redux";
|
|
13
13
|
import { isAfter as yR } from "date-fns";
|
|
14
14
|
import * as ah from "react-dom";
|
|
@@ -1070,10 +1070,10 @@ function XR() {
|
|
|
1070
1070
|
return Et = ir > 0 ? Bt(Za, --ir) : 0, wa--, Et === 10 && (wa = 1, Kd--), Et;
|
|
1071
1071
|
}
|
|
1072
1072
|
a(XR, "prev");
|
|
1073
|
-
function
|
|
1073
|
+
function yr() {
|
|
1074
1074
|
return Et = ir < VS ? Bt(Za, ir++) : 0, wa++, Et === 10 && (wa = 1, Kd++), Et;
|
|
1075
1075
|
}
|
|
1076
|
-
a(
|
|
1076
|
+
a(yr, "next");
|
|
1077
1077
|
function bn() {
|
|
1078
1078
|
return Bt(Za, ir);
|
|
1079
1079
|
}
|
|
@@ -1133,18 +1133,18 @@ function Lc(t) {
|
|
|
1133
1133
|
a(Lc, "delimit");
|
|
1134
1134
|
function ZR(t) {
|
|
1135
1135
|
for (; (Et = bn()) && Et < 33; )
|
|
1136
|
-
|
|
1136
|
+
yr();
|
|
1137
1137
|
return ll(t) > 2 || ll(Et) > 3 ? "" : " ";
|
|
1138
1138
|
}
|
|
1139
1139
|
a(ZR, "whitespace$1");
|
|
1140
1140
|
function eA(t, e) {
|
|
1141
|
-
for (; --e &&
|
|
1141
|
+
for (; --e && yr() && !(Et < 48 || Et > 102 || Et > 57 && Et < 65 || Et > 70 && Et < 97); )
|
|
1142
1142
|
;
|
|
1143
|
-
return jl(t, $c() + (e < 6 && bn() == 32 &&
|
|
1143
|
+
return jl(t, $c() + (e < 6 && bn() == 32 && yr() == 32));
|
|
1144
1144
|
}
|
|
1145
1145
|
a(eA, "escaping");
|
|
1146
1146
|
function ch(t) {
|
|
1147
|
-
for (;
|
|
1147
|
+
for (; yr(); )
|
|
1148
1148
|
switch (Et) {
|
|
1149
1149
|
case t:
|
|
1150
1150
|
return ir;
|
|
@@ -1156,22 +1156,22 @@ function ch(t) {
|
|
|
1156
1156
|
t === 41 && ch(t);
|
|
1157
1157
|
break;
|
|
1158
1158
|
case 92:
|
|
1159
|
-
|
|
1159
|
+
yr();
|
|
1160
1160
|
break;
|
|
1161
1161
|
}
|
|
1162
1162
|
return ir;
|
|
1163
1163
|
}
|
|
1164
1164
|
a(ch, "delimiter");
|
|
1165
1165
|
function tA(t, e) {
|
|
1166
|
-
for (;
|
|
1166
|
+
for (; yr() && t + Et !== 57; )
|
|
1167
1167
|
if (t + Et === 84 && bn() === 47)
|
|
1168
1168
|
break;
|
|
1169
|
-
return "/*" + jl(e, ir - 1) + "*" + Gd(t === 47 ? t :
|
|
1169
|
+
return "/*" + jl(e, ir - 1) + "*" + Gd(t === 47 ? t : yr());
|
|
1170
1170
|
}
|
|
1171
1171
|
a(tA, "commenter");
|
|
1172
1172
|
function rA(t) {
|
|
1173
1173
|
for (; !ll(bn()); )
|
|
1174
|
-
|
|
1174
|
+
yr();
|
|
1175
1175
|
return jl(t, ir);
|
|
1176
1176
|
}
|
|
1177
1177
|
a(rA, "identifier");
|
|
@@ -1181,7 +1181,7 @@ function nA(t) {
|
|
|
1181
1181
|
a(nA, "compile");
|
|
1182
1182
|
function Nc(t, e, r, n, o, i, s, l, u) {
|
|
1183
1183
|
for (var d = 0, p = 0, f = s, h = 0, m = 0, g = 0, b = 1, v = 1, x = 1, T = 0, k = "", C = o, S = i, w = n, M = k; v; )
|
|
1184
|
-
switch (g = T, T =
|
|
1184
|
+
switch (g = T, T = yr()) {
|
|
1185
1185
|
case 40:
|
|
1186
1186
|
if (g != 108 && Bt(M, f - 1) == 58) {
|
|
1187
1187
|
lh(M += Ye(Lc(T), "&", "&\f"), "&\f") != -1 && (x = -1);
|
|
@@ -1205,7 +1205,7 @@ function Nc(t, e, r, n, o, i, s, l, u) {
|
|
|
1205
1205
|
switch (bn()) {
|
|
1206
1206
|
case 42:
|
|
1207
1207
|
case 47:
|
|
1208
|
-
lc(oA(tA(
|
|
1208
|
+
lc(oA(tA(yr(), $c()), e, r), u);
|
|
1209
1209
|
break;
|
|
1210
1210
|
default:
|
|
1211
1211
|
M += "/";
|
|
@@ -1260,7 +1260,7 @@ function Nc(t, e, r, n, o, i, s, l, u) {
|
|
|
1260
1260
|
l[d++] = (pn(M) - 1) * x, x = 1;
|
|
1261
1261
|
break;
|
|
1262
1262
|
case 64:
|
|
1263
|
-
bn() === 45 && (M += Lc(
|
|
1263
|
+
bn() === 45 && (M += Lc(yr())), h = bn(), p = f = pn(k = M += rA($c())), T++;
|
|
1264
1264
|
break;
|
|
1265
1265
|
case 45:
|
|
1266
1266
|
g === 45 && pn(M) == 2 && (b = 0);
|
|
@@ -1324,7 +1324,7 @@ function sA(t) {
|
|
|
1324
1324
|
a(sA, "rulesheet");
|
|
1325
1325
|
var lA = /* @__PURE__ */ a(function(e, r, n) {
|
|
1326
1326
|
for (var o = 0, i = 0; o = i, i = bn(), o === 38 && i === 12 && (r[n] = 1), !ll(i); )
|
|
1327
|
-
|
|
1327
|
+
yr();
|
|
1328
1328
|
return jl(e, ir);
|
|
1329
1329
|
}, "identifierWithPointTracking"), cA = /* @__PURE__ */ a(function(e, r) {
|
|
1330
1330
|
var n = -1, o = 44;
|
|
@@ -1344,7 +1344,7 @@ var lA = /* @__PURE__ */ a(function(e, r, n) {
|
|
|
1344
1344
|
default:
|
|
1345
1345
|
e[n] += Gd(o);
|
|
1346
1346
|
}
|
|
1347
|
-
while (o =
|
|
1347
|
+
while (o = yr());
|
|
1348
1348
|
return e;
|
|
1349
1349
|
}, "toRules"), uA = /* @__PURE__ */ a(function(e, r) {
|
|
1350
1350
|
return zS(cA(jS(e), r));
|
|
@@ -2090,8 +2090,8 @@ var _A = bg.Provider, Xd = /* @__PURE__ */ a(function(e) {
|
|
|
2090
2090
|
var o = ot(bg);
|
|
2091
2091
|
return e(r, o, n);
|
|
2092
2092
|
});
|
|
2093
|
-
}, "withEmotionCache"),
|
|
2094
|
-
process.env.NODE_ENV !== "production" && (
|
|
2093
|
+
}, "withEmotionCache"), ko = /* @__PURE__ */ O.createContext({});
|
|
2094
|
+
process.env.NODE_ENV !== "production" && (ko.displayName = "EmotionThemeContext");
|
|
2095
2095
|
var F0 = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", I0 = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", BA = /* @__PURE__ */ a(function(e) {
|
|
2096
2096
|
var r = e.cache, n = e.serialized, o = e.isStringTag;
|
|
2097
2097
|
return Jd(r, n, o), gg(function() {
|
|
@@ -2102,7 +2102,7 @@ var F0 = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", I0 = "__EMOTION_LABEL_PLEASE_DO_N
|
|
|
2102
2102
|
typeof n == "string" && e.registered[n] !== void 0 && (n = e.registered[n]);
|
|
2103
2103
|
var o = t[F0], i = [n], s = "";
|
|
2104
2104
|
typeof t.className == "string" ? s = hg(e.registered, i, t.className) : t.className != null && (s = t.className + " ");
|
|
2105
|
-
var l = Ma(i, void 0, O.useContext(
|
|
2105
|
+
var l = Ma(i, void 0, O.useContext(ko));
|
|
2106
2106
|
if (process.env.NODE_ENV !== "production" && l.name.indexOf("-") === -1) {
|
|
2107
2107
|
var u = t[I0];
|
|
2108
2108
|
u && (l = Ma([l, "label:" + u + ";"]));
|
|
@@ -2255,7 +2255,7 @@ var jA = {
|
|
|
2255
2255
|
// means it will be turned into a className prop
|
|
2256
2256
|
// $FlowFixMe I don't really want to add it to the type since it shouldn't be used
|
|
2257
2257
|
(t.className || t.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), $0 = !0);
|
|
2258
|
-
var r = t.styles, n = Ma([r], void 0, O.useContext(
|
|
2258
|
+
var r = t.styles, n = Ma([r], void 0, O.useContext(ko)), o = O.useRef();
|
|
2259
2259
|
return A0(function() {
|
|
2260
2260
|
var i = e.key + "-global", s = new e.sheet.constructor({
|
|
2261
2261
|
key: i,
|
|
@@ -2350,7 +2350,7 @@ var WA = /* @__PURE__ */ a(function(e) {
|
|
|
2350
2350
|
}, "cx"), s = {
|
|
2351
2351
|
css: o,
|
|
2352
2352
|
cx: i,
|
|
2353
|
-
theme: O.useContext(
|
|
2353
|
+
theme: O.useContext(ko)
|
|
2354
2354
|
}, l = t.children(s);
|
|
2355
2355
|
return r = !0, /* @__PURE__ */ O.createElement(O.Fragment, null, /* @__PURE__ */ O.createElement(WA, {
|
|
2356
2356
|
cache: e,
|
|
@@ -2414,7 +2414,7 @@ You may have forgotten to import it.`);
|
|
|
2414
2414
|
S = {};
|
|
2415
2415
|
for (var w in b)
|
|
2416
2416
|
S[w] = b[w];
|
|
2417
|
-
S.theme = O.useContext(
|
|
2417
|
+
S.theme = O.useContext(ko);
|
|
2418
2418
|
}
|
|
2419
2419
|
typeof b.className == "string" ? k = hg(v.registered, C, b.className) : b.className != null && (k = b.className + " ");
|
|
2420
2420
|
var M = Ma(f.concat(C), v.registered, S);
|
|
@@ -2647,7 +2647,7 @@ const eC = /* @__PURE__ */ a((t, e) => {
|
|
|
2647
2647
|
__proto__: null,
|
|
2648
2648
|
GlobalStyles: yg,
|
|
2649
2649
|
StyledEngineProvider: ZS,
|
|
2650
|
-
ThemeContext:
|
|
2650
|
+
ThemeContext: ko,
|
|
2651
2651
|
css: Zd,
|
|
2652
2652
|
default: vg,
|
|
2653
2653
|
internal_processStyles: eC,
|
|
@@ -2981,7 +2981,7 @@ function aC(t) {
|
|
|
2981
2981
|
a(aC, "createBreakpoints");
|
|
2982
2982
|
const uF = {
|
|
2983
2983
|
borderRadius: 4
|
|
2984
|
-
},
|
|
2984
|
+
}, Eo = process.env.NODE_ENV !== "production" ? c.oneOfType([c.number, c.string, c.object, c.array]) : {};
|
|
2985
2985
|
function Is(t, e) {
|
|
2986
2986
|
return e ? Jt(t, e, {
|
|
2987
2987
|
clone: !1
|
|
@@ -3059,7 +3059,7 @@ function pF(t, e) {
|
|
|
3059
3059
|
}), r;
|
|
3060
3060
|
}
|
|
3061
3061
|
a(pF, "computeBreakpointsBase");
|
|
3062
|
-
function
|
|
3062
|
+
function si({
|
|
3063
3063
|
values: t,
|
|
3064
3064
|
breakpoints: e,
|
|
3065
3065
|
base: r
|
|
@@ -3070,7 +3070,7 @@ function ai({
|
|
|
3070
3070
|
let i;
|
|
3071
3071
|
return o.reduce((s, l, u) => (Array.isArray(t) ? (s[l] = t[u] != null ? t[u] : t[i], i = u) : typeof t == "object" ? (s[l] = t[l] != null ? t[l] : t[i], i = l) : s[l] = t, s), {});
|
|
3072
3072
|
}
|
|
3073
|
-
a(
|
|
3073
|
+
a(si, "resolveBreakpointValues");
|
|
3074
3074
|
function Ra(t, e, r = !0) {
|
|
3075
3075
|
if (!e || typeof e != "string")
|
|
3076
3076
|
return null;
|
|
@@ -3105,7 +3105,7 @@ function Ct(t) {
|
|
|
3105
3105
|
}, "styleFromPropValue"));
|
|
3106
3106
|
}, "fn");
|
|
3107
3107
|
return i.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
3108
|
-
[e]:
|
|
3108
|
+
[e]: Eo
|
|
3109
3109
|
} : {}, i.filterProps = [e], i;
|
|
3110
3110
|
}
|
|
3111
3111
|
a(Ct, "style$3");
|
|
@@ -3152,15 +3152,15 @@ function Og(t) {
|
|
|
3152
3152
|
return zl(t, "spacing", 8, "spacing");
|
|
3153
3153
|
}
|
|
3154
3154
|
a(Og, "createUnarySpacing");
|
|
3155
|
-
function
|
|
3155
|
+
function Si(t, e) {
|
|
3156
3156
|
if (typeof e == "string" || e == null)
|
|
3157
3157
|
return e;
|
|
3158
3158
|
const r = Math.abs(e), n = t(r);
|
|
3159
3159
|
return e >= 0 ? n : typeof n == "number" ? -n : `-${n}`;
|
|
3160
3160
|
}
|
|
3161
|
-
a(
|
|
3161
|
+
a(Si, "getValue$2");
|
|
3162
3162
|
function yF(t, e) {
|
|
3163
|
-
return (r) => t.reduce((n, o) => (n[o] =
|
|
3163
|
+
return (r) => t.reduce((n, o) => (n[o] = Si(e, r), n), {});
|
|
3164
3164
|
}
|
|
3165
3165
|
a(yF, "getStyleFromPropValue");
|
|
3166
3166
|
function vF(t, e, r, n) {
|
|
@@ -3179,15 +3179,15 @@ function yt(t) {
|
|
|
3179
3179
|
return cC(t, ep);
|
|
3180
3180
|
}
|
|
3181
3181
|
a(yt, "margin");
|
|
3182
|
-
yt.propTypes = process.env.NODE_ENV !== "production" ? ep.reduce((t, e) => (t[e] =
|
|
3182
|
+
yt.propTypes = process.env.NODE_ENV !== "production" ? ep.reduce((t, e) => (t[e] = Eo, t), {}) : {};
|
|
3183
3183
|
yt.filterProps = ep;
|
|
3184
3184
|
function vt(t) {
|
|
3185
3185
|
return cC(t, tp);
|
|
3186
3186
|
}
|
|
3187
3187
|
a(vt, "padding");
|
|
3188
|
-
vt.propTypes = process.env.NODE_ENV !== "production" ? tp.reduce((t, e) => (t[e] =
|
|
3188
|
+
vt.propTypes = process.env.NODE_ENV !== "production" ? tp.reduce((t, e) => (t[e] = Eo, t), {}) : {};
|
|
3189
3189
|
vt.filterProps = tp;
|
|
3190
|
-
process.env.NODE_ENV !== "production" && bF.reduce((t, e) => (t[e] =
|
|
3190
|
+
process.env.NODE_ENV !== "production" && bF.reduce((t, e) => (t[e] = Eo, t), {});
|
|
3191
3191
|
function xF(t = 8) {
|
|
3192
3192
|
if (t.mui)
|
|
3193
3193
|
return t;
|
|
@@ -3222,54 +3222,54 @@ a(Wr, "createBorderStyle");
|
|
|
3222
3222
|
const OF = Wr("border", Fr), SF = Wr("borderTop", Fr), CF = Wr("borderRight", Fr), kF = Wr("borderBottom", Fr), EF = Wr("borderLeft", Fr), TF = Wr("borderColor"), wF = Wr("borderTopColor"), MF = Wr("borderRightColor"), PF = Wr("borderBottomColor"), RF = Wr("borderLeftColor"), AF = Wr("outline", Fr), FF = Wr("outlineColor"), np = /* @__PURE__ */ a((t) => {
|
|
3223
3223
|
if (t.borderRadius !== void 0 && t.borderRadius !== null) {
|
|
3224
3224
|
const e = zl(t.theme, "shape.borderRadius", 4, "borderRadius"), r = /* @__PURE__ */ a((n) => ({
|
|
3225
|
-
borderRadius:
|
|
3225
|
+
borderRadius: Si(e, n)
|
|
3226
3226
|
}), "styleFromPropValue");
|
|
3227
3227
|
return ar(t, t.borderRadius, r);
|
|
3228
3228
|
}
|
|
3229
3229
|
return null;
|
|
3230
3230
|
}, "borderRadius");
|
|
3231
3231
|
np.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
3232
|
-
borderRadius:
|
|
3232
|
+
borderRadius: Eo
|
|
3233
3233
|
} : {};
|
|
3234
3234
|
np.filterProps = ["borderRadius"];
|
|
3235
3235
|
rp(OF, SF, CF, kF, EF, TF, wF, MF, PF, RF, np, AF, FF);
|
|
3236
3236
|
const op = /* @__PURE__ */ a((t) => {
|
|
3237
3237
|
if (t.gap !== void 0 && t.gap !== null) {
|
|
3238
3238
|
const e = zl(t.theme, "spacing", 8, "gap"), r = /* @__PURE__ */ a((n) => ({
|
|
3239
|
-
gap:
|
|
3239
|
+
gap: Si(e, n)
|
|
3240
3240
|
}), "styleFromPropValue");
|
|
3241
3241
|
return ar(t, t.gap, r);
|
|
3242
3242
|
}
|
|
3243
3243
|
return null;
|
|
3244
3244
|
}, "gap");
|
|
3245
3245
|
op.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
3246
|
-
gap:
|
|
3246
|
+
gap: Eo
|
|
3247
3247
|
} : {};
|
|
3248
3248
|
op.filterProps = ["gap"];
|
|
3249
3249
|
const ip = /* @__PURE__ */ a((t) => {
|
|
3250
3250
|
if (t.columnGap !== void 0 && t.columnGap !== null) {
|
|
3251
3251
|
const e = zl(t.theme, "spacing", 8, "columnGap"), r = /* @__PURE__ */ a((n) => ({
|
|
3252
|
-
columnGap:
|
|
3252
|
+
columnGap: Si(e, n)
|
|
3253
3253
|
}), "styleFromPropValue");
|
|
3254
3254
|
return ar(t, t.columnGap, r);
|
|
3255
3255
|
}
|
|
3256
3256
|
return null;
|
|
3257
3257
|
}, "columnGap");
|
|
3258
3258
|
ip.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
3259
|
-
columnGap:
|
|
3259
|
+
columnGap: Eo
|
|
3260
3260
|
} : {};
|
|
3261
3261
|
ip.filterProps = ["columnGap"];
|
|
3262
3262
|
const ap = /* @__PURE__ */ a((t) => {
|
|
3263
3263
|
if (t.rowGap !== void 0 && t.rowGap !== null) {
|
|
3264
3264
|
const e = zl(t.theme, "spacing", 8, "rowGap"), r = /* @__PURE__ */ a((n) => ({
|
|
3265
|
-
rowGap:
|
|
3265
|
+
rowGap: Si(e, n)
|
|
3266
3266
|
}), "styleFromPropValue");
|
|
3267
3267
|
return ar(t, t.rowGap, r);
|
|
3268
3268
|
}
|
|
3269
3269
|
return null;
|
|
3270
3270
|
}, "rowGap");
|
|
3271
3271
|
ap.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
3272
|
-
rowGap:
|
|
3272
|
+
rowGap: Eo
|
|
3273
3273
|
} : {};
|
|
3274
3274
|
ap.filterProps = ["rowGap"];
|
|
3275
3275
|
const IF = Ct({
|
|
@@ -3311,13 +3311,13 @@ const zF = Ct({
|
|
|
3311
3311
|
transform: ma
|
|
3312
3312
|
});
|
|
3313
3313
|
rp(zF, HF, WF);
|
|
3314
|
-
function
|
|
3314
|
+
function mr(t) {
|
|
3315
3315
|
return t <= 1 && t !== 0 ? `${t * 100}%` : t;
|
|
3316
3316
|
}
|
|
3317
|
-
a(
|
|
3317
|
+
a(mr, "sizingTransform");
|
|
3318
3318
|
const UF = Ct({
|
|
3319
3319
|
prop: "width",
|
|
3320
|
-
transform:
|
|
3320
|
+
transform: mr
|
|
3321
3321
|
}), Sg = /* @__PURE__ */ a((t) => {
|
|
3322
3322
|
if (t.maxWidth !== void 0 && t.maxWidth !== null) {
|
|
3323
3323
|
const e = /* @__PURE__ */ a((r) => {
|
|
@@ -3328,7 +3328,7 @@ const UF = Ct({
|
|
|
3328
3328
|
} : {
|
|
3329
3329
|
maxWidth: i
|
|
3330
3330
|
} : {
|
|
3331
|
-
maxWidth:
|
|
3331
|
+
maxWidth: mr(r)
|
|
3332
3332
|
};
|
|
3333
3333
|
}, "styleFromPropValue");
|
|
3334
3334
|
return ar(t, t.maxWidth, e);
|
|
@@ -3338,26 +3338,26 @@ const UF = Ct({
|
|
|
3338
3338
|
Sg.filterProps = ["maxWidth"];
|
|
3339
3339
|
const qF = Ct({
|
|
3340
3340
|
prop: "minWidth",
|
|
3341
|
-
transform:
|
|
3341
|
+
transform: mr
|
|
3342
3342
|
}), GF = Ct({
|
|
3343
3343
|
prop: "height",
|
|
3344
|
-
transform:
|
|
3344
|
+
transform: mr
|
|
3345
3345
|
}), KF = Ct({
|
|
3346
3346
|
prop: "maxHeight",
|
|
3347
|
-
transform:
|
|
3347
|
+
transform: mr
|
|
3348
3348
|
}), YF = Ct({
|
|
3349
3349
|
prop: "minHeight",
|
|
3350
|
-
transform:
|
|
3350
|
+
transform: mr
|
|
3351
3351
|
});
|
|
3352
3352
|
Ct({
|
|
3353
3353
|
prop: "size",
|
|
3354
3354
|
cssProperty: "width",
|
|
3355
|
-
transform:
|
|
3355
|
+
transform: mr
|
|
3356
3356
|
});
|
|
3357
3357
|
Ct({
|
|
3358
3358
|
prop: "size",
|
|
3359
3359
|
cssProperty: "height",
|
|
3360
|
-
transform:
|
|
3360
|
+
transform: mr
|
|
3361
3361
|
});
|
|
3362
3362
|
const JF = Ct({
|
|
3363
3363
|
prop: "boxSizing"
|
|
@@ -3608,22 +3608,22 @@ const Hl = {
|
|
|
3608
3608
|
},
|
|
3609
3609
|
// sizing
|
|
3610
3610
|
width: {
|
|
3611
|
-
transform:
|
|
3611
|
+
transform: mr
|
|
3612
3612
|
},
|
|
3613
3613
|
maxWidth: {
|
|
3614
3614
|
style: Sg
|
|
3615
3615
|
},
|
|
3616
3616
|
minWidth: {
|
|
3617
|
-
transform:
|
|
3617
|
+
transform: mr
|
|
3618
3618
|
},
|
|
3619
3619
|
height: {
|
|
3620
|
-
transform:
|
|
3620
|
+
transform: mr
|
|
3621
3621
|
},
|
|
3622
3622
|
maxHeight: {
|
|
3623
|
-
transform:
|
|
3623
|
+
transform: mr
|
|
3624
3624
|
},
|
|
3625
3625
|
minHeight: {
|
|
3626
|
-
transform:
|
|
3626
|
+
transform: mr
|
|
3627
3627
|
},
|
|
3628
3628
|
boxSizing: {},
|
|
3629
3629
|
// typography
|
|
@@ -4243,7 +4243,7 @@ const ul = {
|
|
|
4243
4243
|
A200: "#eeeeee",
|
|
4244
4244
|
A400: "#bdbdbd",
|
|
4245
4245
|
A700: "#616161"
|
|
4246
|
-
},
|
|
4246
|
+
}, Lo = {
|
|
4247
4247
|
50: "#f3e5f5",
|
|
4248
4248
|
100: "#e1bee7",
|
|
4249
4249
|
200: "#ce93d8",
|
|
@@ -4258,7 +4258,7 @@ const ul = {
|
|
|
4258
4258
|
A200: "#e040fb",
|
|
4259
4259
|
A400: "#d500f9",
|
|
4260
4260
|
A700: "#aa00ff"
|
|
4261
|
-
},
|
|
4261
|
+
}, No = {
|
|
4262
4262
|
50: "#ffebee",
|
|
4263
4263
|
100: "#ffcdd2",
|
|
4264
4264
|
200: "#ef9a9a",
|
|
@@ -4288,7 +4288,7 @@ const ul = {
|
|
|
4288
4288
|
A200: "#ffab40",
|
|
4289
4289
|
A400: "#ff9100",
|
|
4290
4290
|
A700: "#ff6d00"
|
|
4291
|
-
},
|
|
4291
|
+
}, Do = {
|
|
4292
4292
|
50: "#e3f2fd",
|
|
4293
4293
|
100: "#bbdefb",
|
|
4294
4294
|
200: "#90caf9",
|
|
@@ -4318,7 +4318,7 @@ const ul = {
|
|
|
4318
4318
|
A200: "#40c4ff",
|
|
4319
4319
|
A400: "#00b0ff",
|
|
4320
4320
|
A700: "#0091ea"
|
|
4321
|
-
},
|
|
4321
|
+
}, _o = {
|
|
4322
4322
|
50: "#e8f5e9",
|
|
4323
4323
|
100: "#c8e6c9",
|
|
4324
4324
|
200: "#a5d6a7",
|
|
@@ -4403,37 +4403,37 @@ function X0(t, e, r, n) {
|
|
|
4403
4403
|
a(X0, "addLightOrDark");
|
|
4404
4404
|
function jI(t = "light") {
|
|
4405
4405
|
return t === "dark" ? {
|
|
4406
|
-
main:
|
|
4407
|
-
light:
|
|
4408
|
-
dark:
|
|
4406
|
+
main: Do[200],
|
|
4407
|
+
light: Do[50],
|
|
4408
|
+
dark: Do[400]
|
|
4409
4409
|
} : {
|
|
4410
|
-
main:
|
|
4411
|
-
light:
|
|
4412
|
-
dark:
|
|
4410
|
+
main: Do[700],
|
|
4411
|
+
light: Do[400],
|
|
4412
|
+
dark: Do[800]
|
|
4413
4413
|
};
|
|
4414
4414
|
}
|
|
4415
4415
|
a(jI, "getDefaultPrimary");
|
|
4416
4416
|
function zI(t = "light") {
|
|
4417
4417
|
return t === "dark" ? {
|
|
4418
|
-
main:
|
|
4419
|
-
light:
|
|
4420
|
-
dark:
|
|
4418
|
+
main: Lo[200],
|
|
4419
|
+
light: Lo[50],
|
|
4420
|
+
dark: Lo[400]
|
|
4421
4421
|
} : {
|
|
4422
|
-
main:
|
|
4423
|
-
light:
|
|
4424
|
-
dark:
|
|
4422
|
+
main: Lo[500],
|
|
4423
|
+
light: Lo[300],
|
|
4424
|
+
dark: Lo[700]
|
|
4425
4425
|
};
|
|
4426
4426
|
}
|
|
4427
4427
|
a(zI, "getDefaultSecondary");
|
|
4428
4428
|
function HI(t = "light") {
|
|
4429
4429
|
return t === "dark" ? {
|
|
4430
|
-
main:
|
|
4431
|
-
light:
|
|
4432
|
-
dark:
|
|
4430
|
+
main: No[500],
|
|
4431
|
+
light: No[300],
|
|
4432
|
+
dark: No[700]
|
|
4433
4433
|
} : {
|
|
4434
|
-
main:
|
|
4435
|
-
light:
|
|
4436
|
-
dark:
|
|
4434
|
+
main: No[700],
|
|
4435
|
+
light: No[400],
|
|
4436
|
+
dark: No[800]
|
|
4437
4437
|
};
|
|
4438
4438
|
}
|
|
4439
4439
|
a(HI, "getDefaultError");
|
|
@@ -4451,13 +4451,13 @@ function WI(t = "light") {
|
|
|
4451
4451
|
a(WI, "getDefaultInfo");
|
|
4452
4452
|
function UI(t = "light") {
|
|
4453
4453
|
return t === "dark" ? {
|
|
4454
|
-
main:
|
|
4455
|
-
light:
|
|
4456
|
-
dark:
|
|
4454
|
+
main: _o[400],
|
|
4455
|
+
light: _o[300],
|
|
4456
|
+
dark: _o[700]
|
|
4457
4457
|
} : {
|
|
4458
|
-
main:
|
|
4459
|
-
light:
|
|
4460
|
-
dark:
|
|
4458
|
+
main: _o[800],
|
|
4459
|
+
light: _o[500],
|
|
4460
|
+
dark: _o[900]
|
|
4461
4461
|
};
|
|
4462
4462
|
}
|
|
4463
4463
|
a(UI, "getDefaultSuccess");
|
|
@@ -4770,13 +4770,13 @@ function xC(t = {}, ...e) {
|
|
|
4770
4770
|
}, "sx"), d;
|
|
4771
4771
|
}
|
|
4772
4772
|
a(xC, "createTheme");
|
|
4773
|
-
const sp = xC(),
|
|
4773
|
+
const sp = xC(), Ci = "$$material";
|
|
4774
4774
|
function OC(t) {
|
|
4775
4775
|
return t !== "ownerState" && t !== "theme" && t !== "sx" && t !== "as";
|
|
4776
4776
|
}
|
|
4777
4777
|
a(OC, "slotShouldForwardProp");
|
|
4778
4778
|
const Lt = /* @__PURE__ */ a((t) => OC(t) && t !== "classes", "rootShouldForwardProp"), X = aI({
|
|
4779
|
-
themeId:
|
|
4779
|
+
themeId: Ci,
|
|
4780
4780
|
defaultTheme: sp,
|
|
4781
4781
|
rootShouldForwardProp: Lt
|
|
4782
4782
|
});
|
|
@@ -4953,7 +4953,7 @@ process.env.NODE_ENV !== "production" && (eu.propTypes = {
|
|
|
4953
4953
|
viewBox: c.string
|
|
4954
4954
|
});
|
|
4955
4955
|
eu.muiName = "SvgIcon";
|
|
4956
|
-
function
|
|
4956
|
+
function To(t, e) {
|
|
4957
4957
|
function r(n, o) {
|
|
4958
4958
|
return /* @__PURE__ */ y(eu, E({
|
|
4959
4959
|
"data-testid": `${e}Icon`,
|
|
@@ -4964,7 +4964,7 @@ function Eo(t, e) {
|
|
|
4964
4964
|
}
|
|
4965
4965
|
return a(r, "Component"), process.env.NODE_ENV !== "production" && (r.displayName = `${e}Icon`), r.muiName = eu.muiName, /* @__PURE__ */ O.memo(/* @__PURE__ */ O.forwardRef(r));
|
|
4966
4966
|
}
|
|
4967
|
-
a(
|
|
4967
|
+
a(To, "createSvgIcon");
|
|
4968
4968
|
function ql(t, e = 166) {
|
|
4969
4969
|
let r;
|
|
4970
4970
|
function n(...o) {
|
|
@@ -5075,7 +5075,7 @@ function dl({
|
|
|
5075
5075
|
return [l, u];
|
|
5076
5076
|
}
|
|
5077
5077
|
a(dl, "useControlled");
|
|
5078
|
-
function
|
|
5078
|
+
function br(t) {
|
|
5079
5079
|
const e = O.useRef(t);
|
|
5080
5080
|
return kn(() => {
|
|
5081
5081
|
e.current = t;
|
|
@@ -5084,7 +5084,7 @@ function gr(t) {
|
|
|
5084
5084
|
(0, e.current)(...r)
|
|
5085
5085
|
)).current;
|
|
5086
5086
|
}
|
|
5087
|
-
a(
|
|
5087
|
+
a(br, "useEventCallback");
|
|
5088
5088
|
function wt(...t) {
|
|
5089
5089
|
return O.useMemo(() => t.every((e) => e == null) ? null : (e) => {
|
|
5090
5090
|
t.forEach((r) => {
|
|
@@ -5210,7 +5210,7 @@ const k$ = {
|
|
|
5210
5210
|
__proto__: null,
|
|
5211
5211
|
capitalize: ce,
|
|
5212
5212
|
createChainedFunction: TR,
|
|
5213
|
-
createSvgIcon:
|
|
5213
|
+
createSvgIcon: To,
|
|
5214
5214
|
debounce: ql,
|
|
5215
5215
|
deprecatedPropType: p$,
|
|
5216
5216
|
isMuiElement: ga,
|
|
@@ -5223,7 +5223,7 @@ const k$ = {
|
|
|
5223
5223
|
unstable_useId: Gl,
|
|
5224
5224
|
unsupportedProp: kC,
|
|
5225
5225
|
useControlled: dl,
|
|
5226
|
-
useEventCallback:
|
|
5226
|
+
useEventCallback: br,
|
|
5227
5227
|
useForkRef: wt,
|
|
5228
5228
|
useIsFocusVisible: cp
|
|
5229
5229
|
}, Symbol.toStringTag, { value: "Module" })), T$ = /* @__PURE__ */ Cn(E$);
|
|
@@ -5263,7 +5263,7 @@ const I$ = Ll((t, e) => {
|
|
|
5263
5263
|
const r = Tt(), { onClose: n } = lP(), o = cP(), i = o.form_275, s = o.form_59;
|
|
5264
5264
|
return [
|
|
5265
5265
|
i ? /* @__PURE__ */ t0(
|
|
5266
|
-
|
|
5266
|
+
ai,
|
|
5267
5267
|
{
|
|
5268
5268
|
component: il,
|
|
5269
5269
|
ref: e,
|
|
@@ -5276,7 +5276,7 @@ const I$ = Ll((t, e) => {
|
|
|
5276
5276
|
/* @__PURE__ */ y(fa, { children: r("pos.change_pin") })
|
|
5277
5277
|
) : null,
|
|
5278
5278
|
s ? /* @__PURE__ */ t0(
|
|
5279
|
-
|
|
5279
|
+
ai,
|
|
5280
5280
|
{
|
|
5281
5281
|
component: il,
|
|
5282
5282
|
ref: e,
|
|
@@ -5317,7 +5317,7 @@ function N$(t) {
|
|
|
5317
5317
|
}
|
|
5318
5318
|
a(N$, "isObjectEmpty$1");
|
|
5319
5319
|
function Pg(t = null) {
|
|
5320
|
-
const e = O.useContext(
|
|
5320
|
+
const e = O.useContext(ko);
|
|
5321
5321
|
return !e || N$(e) ? t : e;
|
|
5322
5322
|
}
|
|
5323
5323
|
a(Pg, "useTheme$4");
|
|
@@ -5754,7 +5754,7 @@ function ru(t) {
|
|
|
5754
5754
|
const s = lx(n, o, r), l = lx(n, i, r, !0), u = s.direction === "rtl";
|
|
5755
5755
|
return /* @__PURE__ */ y(tu, {
|
|
5756
5756
|
theme: l,
|
|
5757
|
-
children: /* @__PURE__ */ y(
|
|
5757
|
+
children: /* @__PURE__ */ y(ko.Provider, {
|
|
5758
5758
|
value: s,
|
|
5759
5759
|
children: /* @__PURE__ */ y($C, {
|
|
5760
5760
|
value: u,
|
|
@@ -5820,17 +5820,17 @@ const pL = /* @__PURE__ */ a((t) => ({
|
|
|
5820
5820
|
flexDirection: "column"
|
|
5821
5821
|
}, ar({
|
|
5822
5822
|
theme: e
|
|
5823
|
-
},
|
|
5823
|
+
}, si({
|
|
5824
5824
|
values: t.direction,
|
|
5825
5825
|
breakpoints: e.breakpoints.values
|
|
5826
5826
|
}), (n) => ({
|
|
5827
5827
|
flexDirection: n
|
|
5828
5828
|
})));
|
|
5829
5829
|
if (t.spacing) {
|
|
5830
|
-
const n = Og(e), o = Object.keys(e.breakpoints.values).reduce((u, d) => ((typeof t.spacing == "object" && t.spacing[d] != null || typeof t.direction == "object" && t.direction[d] != null) && (u[d] = !0), u), {}), i =
|
|
5830
|
+
const n = Og(e), o = Object.keys(e.breakpoints.values).reduce((u, d) => ((typeof t.spacing == "object" && t.spacing[d] != null || typeof t.direction == "object" && t.direction[d] != null) && (u[d] = !0), u), {}), i = si({
|
|
5831
5831
|
values: t.direction,
|
|
5832
5832
|
base: o
|
|
5833
|
-
}), s =
|
|
5833
|
+
}), s = si({
|
|
5834
5834
|
values: t.spacing,
|
|
5835
5835
|
base: o
|
|
5836
5836
|
});
|
|
@@ -5842,7 +5842,7 @@ const pL = /* @__PURE__ */ a((t) => ({
|
|
|
5842
5842
|
}), r = Jt(r, ar({
|
|
5843
5843
|
theme: e
|
|
5844
5844
|
}, s, /* @__PURE__ */ a((u, d) => t.useFlexGap ? {
|
|
5845
|
-
gap:
|
|
5845
|
+
gap: Si(n, u)
|
|
5846
5846
|
} : {
|
|
5847
5847
|
// The useFlexGap={false} implement relies on each child to give up control of the margin.
|
|
5848
5848
|
// We need to reset the margin to avoid double spacing.
|
|
@@ -5850,7 +5850,7 @@ const pL = /* @__PURE__ */ a((t) => ({
|
|
|
5850
5850
|
margin: 0
|
|
5851
5851
|
},
|
|
5852
5852
|
"& > :not(style) ~ :not(style)": {
|
|
5853
|
-
[`margin${pL(d ? i[d] : t.direction)}`]:
|
|
5853
|
+
[`margin${pL(d ? i[d] : t.direction)}`]: Si(n, u)
|
|
5854
5854
|
}
|
|
5855
5855
|
}, "styleFromPropValue")));
|
|
5856
5856
|
}
|
|
@@ -5898,7 +5898,7 @@ function hL(t = {}) {
|
|
|
5898
5898
|
a(hL, "createStack");
|
|
5899
5899
|
function En() {
|
|
5900
5900
|
const t = up(sp);
|
|
5901
|
-
return process.env.NODE_ENV !== "production" && O.useDebugValue(t), t[
|
|
5901
|
+
return process.env.NODE_ENV !== "production" && O.useDebugValue(t), t[Ci] || t;
|
|
5902
5902
|
}
|
|
5903
5903
|
a(En, "useTheme$1");
|
|
5904
5904
|
function mL({
|
|
@@ -5909,7 +5909,7 @@ function mL({
|
|
|
5909
5909
|
props: t,
|
|
5910
5910
|
name: e,
|
|
5911
5911
|
defaultTheme: sp,
|
|
5912
|
-
themeId:
|
|
5912
|
+
themeId: Ci
|
|
5913
5913
|
});
|
|
5914
5914
|
}
|
|
5915
5915
|
a(mL, "useThemeProps");
|
|
@@ -5918,9 +5918,9 @@ function Ag(t) {
|
|
|
5918
5918
|
let {
|
|
5919
5919
|
theme: e
|
|
5920
5920
|
} = t, r = ne(t, gL);
|
|
5921
|
-
const n = e[
|
|
5921
|
+
const n = e[Ci];
|
|
5922
5922
|
return /* @__PURE__ */ y(ru, E({}, r, {
|
|
5923
|
-
themeId: n ?
|
|
5923
|
+
themeId: n ? Ci : void 0,
|
|
5924
5924
|
theme: n || e
|
|
5925
5925
|
}));
|
|
5926
5926
|
}
|
|
@@ -6102,13 +6102,13 @@ const Ky = class Ky {
|
|
|
6102
6102
|
};
|
|
6103
6103
|
a(Ky, "ModalManager");
|
|
6104
6104
|
let gh = Ky;
|
|
6105
|
-
function
|
|
6105
|
+
function ki(t, e, r, n, o) {
|
|
6106
6106
|
if (process.env.NODE_ENV === "production")
|
|
6107
6107
|
return null;
|
|
6108
6108
|
const i = t[e], s = o || e;
|
|
6109
6109
|
return i == null ? null : i && i.nodeType !== 1 ? new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an HTMLElement.`) : null;
|
|
6110
6110
|
}
|
|
6111
|
-
a(
|
|
6111
|
+
a(ki, "HTMLElementType");
|
|
6112
6112
|
function Tn(t, e) {
|
|
6113
6113
|
return process.env.NODE_ENV === "production" ? () => null : /* @__PURE__ */ a(function(...n) {
|
|
6114
6114
|
return t(...n) || e(...n);
|
|
@@ -6192,7 +6192,7 @@ function BC(t, e, r) {
|
|
|
6192
6192
|
}
|
|
6193
6193
|
a(BC, "resolveComponentProps");
|
|
6194
6194
|
const $L = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
|
|
6195
|
-
function
|
|
6195
|
+
function xr(t) {
|
|
6196
6196
|
var e;
|
|
6197
6197
|
const {
|
|
6198
6198
|
elementType: r,
|
|
@@ -6209,7 +6209,7 @@ function vr(t) {
|
|
|
6209
6209
|
ref: p
|
|
6210
6210
|
}), o);
|
|
6211
6211
|
}
|
|
6212
|
-
a(
|
|
6212
|
+
a(xr, "useSlotProps");
|
|
6213
6213
|
const LL = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
|
|
6214
6214
|
function NL(t) {
|
|
6215
6215
|
const e = parseInt(t.getAttribute("tabindex") || "", 10);
|
|
@@ -6391,9 +6391,9 @@ const hl = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
6391
6391
|
container: o,
|
|
6392
6392
|
disablePortal: i = !1
|
|
6393
6393
|
} = e, [s, l] = O.useState(null), u = Ea(/* @__PURE__ */ O.isValidElement(n) ? n.ref : null, r);
|
|
6394
|
-
if (
|
|
6394
|
+
if (xi(() => {
|
|
6395
6395
|
i || l(jL(o) || document.body);
|
|
6396
|
-
}, [o, i]),
|
|
6396
|
+
}, [o, i]), xi(() => {
|
|
6397
6397
|
if (s && !i)
|
|
6398
6398
|
return r0(r, s), () => {
|
|
6399
6399
|
r0(r, null);
|
|
@@ -6473,20 +6473,20 @@ process.env.NODE_ENV !== "production" && c.oneOfType([c.string, c.shape({
|
|
|
6473
6473
|
const ou = Ue.createContext(null);
|
|
6474
6474
|
var HL = /* @__PURE__ */ a(function(e) {
|
|
6475
6475
|
return e.scrollTop;
|
|
6476
|
-
}, "forceReflow"), Ps = "unmounted",
|
|
6476
|
+
}, "forceReflow"), Ps = "unmounted", Bo = "exited", Vo = "entering", Qi = "entered", yh = "exiting", en = /* @__PURE__ */ function(t) {
|
|
6477
6477
|
VC(e, t);
|
|
6478
6478
|
function e(n, o) {
|
|
6479
6479
|
var i;
|
|
6480
6480
|
i = t.call(this, n, o) || this;
|
|
6481
6481
|
var s = o, l = s && !s.isMounting ? n.enter : n.appear, u;
|
|
6482
|
-
return i.appearStatus = null, n.in ? l ? (u =
|
|
6482
|
+
return i.appearStatus = null, n.in ? l ? (u = Bo, i.appearStatus = Vo) : u = Qi : n.unmountOnExit || n.mountOnEnter ? u = Ps : u = Bo, i.state = {
|
|
6483
6483
|
status: u
|
|
6484
6484
|
}, i.nextCallback = null, i;
|
|
6485
6485
|
}
|
|
6486
6486
|
a(e, "Transition"), e.getDerivedStateFromProps = /* @__PURE__ */ a(function(o, i) {
|
|
6487
6487
|
var s = o.in;
|
|
6488
6488
|
return s && i.status === Ps ? {
|
|
6489
|
-
status:
|
|
6489
|
+
status: Bo
|
|
6490
6490
|
} : null;
|
|
6491
6491
|
}, "getDerivedStateFromProps");
|
|
6492
6492
|
var r = e.prototype;
|
|
@@ -6496,7 +6496,7 @@ var HL = /* @__PURE__ */ a(function(e) {
|
|
|
6496
6496
|
var i = null;
|
|
6497
6497
|
if (o !== this.props) {
|
|
6498
6498
|
var s = this.state.status;
|
|
6499
|
-
this.props.in ? s !==
|
|
6499
|
+
this.props.in ? s !== Vo && s !== Qi && (i = Vo) : (s === Vo || s === Qi) && (i = yh);
|
|
6500
6500
|
}
|
|
6501
6501
|
this.updateStatus(!1, i);
|
|
6502
6502
|
}, "componentDidUpdate"), r.componentWillUnmount = /* @__PURE__ */ a(function() {
|
|
@@ -6510,7 +6510,7 @@ var HL = /* @__PURE__ */ a(function(e) {
|
|
|
6510
6510
|
};
|
|
6511
6511
|
}, "getTimeouts"), r.updateStatus = /* @__PURE__ */ a(function(o, i) {
|
|
6512
6512
|
if (o === void 0 && (o = !1), i !== null)
|
|
6513
|
-
if (this.cancelNextCallback(), i ===
|
|
6513
|
+
if (this.cancelNextCallback(), i === Vo) {
|
|
6514
6514
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
6515
6515
|
var s = this.props.nodeRef ? this.props.nodeRef.current : Ms.findDOMNode(this);
|
|
6516
6516
|
s && HL(s);
|
|
@@ -6518,7 +6518,7 @@ var HL = /* @__PURE__ */ a(function(e) {
|
|
|
6518
6518
|
this.performEnter(o);
|
|
6519
6519
|
} else
|
|
6520
6520
|
this.performExit();
|
|
6521
|
-
else this.props.unmountOnExit && this.state.status ===
|
|
6521
|
+
else this.props.unmountOnExit && this.state.status === Bo && this.setState({
|
|
6522
6522
|
status: Ps
|
|
6523
6523
|
});
|
|
6524
6524
|
}, "updateStatus"), r.performEnter = /* @__PURE__ */ a(function(o) {
|
|
@@ -6532,7 +6532,7 @@ var HL = /* @__PURE__ */ a(function(e) {
|
|
|
6532
6532
|
return;
|
|
6533
6533
|
}
|
|
6534
6534
|
this.props.onEnter(d, p), this.safeSetState({
|
|
6535
|
-
status:
|
|
6535
|
+
status: Vo
|
|
6536
6536
|
}, function() {
|
|
6537
6537
|
i.props.onEntering(d, p), i.onTransitionEnd(h, function() {
|
|
6538
6538
|
i.safeSetState({
|
|
@@ -6546,7 +6546,7 @@ var HL = /* @__PURE__ */ a(function(e) {
|
|
|
6546
6546
|
var o = this, i = this.props.exit, s = this.getTimeouts(), l = this.props.nodeRef ? void 0 : Ms.findDOMNode(this);
|
|
6547
6547
|
if (!i || fx.disabled) {
|
|
6548
6548
|
this.safeSetState({
|
|
6549
|
-
status:
|
|
6549
|
+
status: Bo
|
|
6550
6550
|
}, function() {
|
|
6551
6551
|
o.props.onExited(l);
|
|
6552
6552
|
});
|
|
@@ -6557,7 +6557,7 @@ var HL = /* @__PURE__ */ a(function(e) {
|
|
|
6557
6557
|
}, function() {
|
|
6558
6558
|
o.props.onExiting(l), o.onTransitionEnd(s.exit, function() {
|
|
6559
6559
|
o.safeSetState({
|
|
6560
|
-
status:
|
|
6560
|
+
status: Bo
|
|
6561
6561
|
}, function() {
|
|
6562
6562
|
o.props.onExited(l);
|
|
6563
6563
|
});
|
|
@@ -6789,8 +6789,8 @@ en.defaultProps = {
|
|
|
6789
6789
|
onExited: qi
|
|
6790
6790
|
};
|
|
6791
6791
|
en.UNMOUNTED = Ps;
|
|
6792
|
-
en.EXITED =
|
|
6793
|
-
en.ENTERING =
|
|
6792
|
+
en.EXITED = Bo;
|
|
6793
|
+
en.ENTERING = Vo;
|
|
6794
6794
|
en.ENTERED = Qi;
|
|
6795
6795
|
en.EXITING = yh;
|
|
6796
6796
|
function WL(t) {
|
|
@@ -6833,18 +6833,18 @@ function UL(t, e) {
|
|
|
6833
6833
|
return l;
|
|
6834
6834
|
}
|
|
6835
6835
|
a(UL, "mergeChildMappings");
|
|
6836
|
-
function
|
|
6836
|
+
function ei(t, e, r) {
|
|
6837
6837
|
return r[e] != null ? r[e] : t.props[e];
|
|
6838
6838
|
}
|
|
6839
|
-
a(
|
|
6839
|
+
a(ei, "getProp");
|
|
6840
6840
|
function qL(t, e) {
|
|
6841
6841
|
return Ng(t.children, function(r) {
|
|
6842
6842
|
return Yr(r, {
|
|
6843
6843
|
onExited: e.bind(null, r),
|
|
6844
6844
|
in: !0,
|
|
6845
|
-
appear:
|
|
6846
|
-
enter:
|
|
6847
|
-
exit:
|
|
6845
|
+
appear: ei(r, "appear", t),
|
|
6846
|
+
enter: ei(r, "enter", t),
|
|
6847
|
+
exit: ei(r, "exit", t)
|
|
6848
6848
|
});
|
|
6849
6849
|
});
|
|
6850
6850
|
}
|
|
@@ -6858,15 +6858,15 @@ function GL(t, e, r) {
|
|
|
6858
6858
|
u && (!l || p) ? o[i] = Yr(s, {
|
|
6859
6859
|
onExited: r.bind(null, s),
|
|
6860
6860
|
in: !0,
|
|
6861
|
-
exit:
|
|
6862
|
-
enter:
|
|
6861
|
+
exit: ei(s, "exit", t),
|
|
6862
|
+
enter: ei(s, "enter", t)
|
|
6863
6863
|
}) : !u && l && !p ? o[i] = Yr(s, {
|
|
6864
6864
|
in: !1
|
|
6865
6865
|
}) : u && l && Nn(d) && (o[i] = Yr(s, {
|
|
6866
6866
|
onExited: r.bind(null, s),
|
|
6867
6867
|
in: d.props.in,
|
|
6868
|
-
exit:
|
|
6869
|
-
enter:
|
|
6868
|
+
exit: ei(s, "exit", t),
|
|
6869
|
+
enter: ei(s, "enter", t)
|
|
6870
6870
|
}));
|
|
6871
6871
|
}
|
|
6872
6872
|
}), o;
|
|
@@ -6983,7 +6983,7 @@ Dg.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
6983
6983
|
} : {};
|
|
6984
6984
|
Dg.defaultProps = YL;
|
|
6985
6985
|
const _g = /* @__PURE__ */ a((t) => t.scrollTop, "reflow");
|
|
6986
|
-
function
|
|
6986
|
+
function Ei(t, e) {
|
|
6987
6987
|
var r, n;
|
|
6988
6988
|
const {
|
|
6989
6989
|
timeout: o,
|
|
@@ -6996,7 +6996,7 @@ function ki(t, e) {
|
|
|
6996
6996
|
delay: s.transitionDelay
|
|
6997
6997
|
};
|
|
6998
6998
|
}
|
|
6999
|
-
a(
|
|
6999
|
+
a(Ei, "getTransitionProps");
|
|
7000
7000
|
const JL = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"], QL = {
|
|
7001
7001
|
entering: {
|
|
7002
7002
|
opacity: 1
|
|
@@ -7031,7 +7031,7 @@ const JL = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "
|
|
|
7031
7031
|
}
|
|
7032
7032
|
}, "normalizedTransitionCallback"), M = w(h), F = w((L, j) => {
|
|
7033
7033
|
_g(L);
|
|
7034
|
-
const B =
|
|
7034
|
+
const B = Ei({
|
|
7035
7035
|
style: v,
|
|
7036
7036
|
timeout: x,
|
|
7037
7037
|
easing: u
|
|
@@ -7040,7 +7040,7 @@ const JL = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "
|
|
|
7040
7040
|
});
|
|
7041
7041
|
L.style.webkitTransition = n.transitions.create("opacity", B), L.style.transition = n.transitions.create("opacity", B), p && p(L, j);
|
|
7042
7042
|
}), P = w(f), I = w(b), R = w((L) => {
|
|
7043
|
-
const j =
|
|
7043
|
+
const j = Ei({
|
|
7044
7044
|
style: v,
|
|
7045
7045
|
timeout: x,
|
|
7046
7046
|
easing: u
|
|
@@ -7509,7 +7509,7 @@ const sN = ["BackdropComponent", "BackdropProps", "classes", "className", "close
|
|
|
7509
7509
|
} = K();
|
|
7510
7510
|
G.onEnter = pe, G.onExited = Y;
|
|
7511
7511
|
}
|
|
7512
|
-
const te = (n = (o = L == null ? void 0 : L.root) != null ? o : x.Root) != null ? n : cN, Q = (i = (s = L == null ? void 0 : L.backdrop) != null ? s : x.Backdrop) != null ? i : p, oe = (l = $ == null ? void 0 : $.root) != null ? l : T.root, se = (u = $ == null ? void 0 : $.backdrop) != null ? u : T.backdrop, ie =
|
|
7512
|
+
const te = (n = (o = L == null ? void 0 : L.root) != null ? o : x.Root) != null ? n : cN, Q = (i = (s = L == null ? void 0 : L.backdrop) != null ? s : x.Backdrop) != null ? i : p, oe = (l = $ == null ? void 0 : $.root) != null ? l : T.root, se = (u = $ == null ? void 0 : $.backdrop) != null ? u : T.backdrop, ie = xr({
|
|
7513
7513
|
elementType: te,
|
|
7514
7514
|
externalSlotProps: oe,
|
|
7515
7515
|
externalForwardedProps: j,
|
|
@@ -7520,7 +7520,7 @@ const sN = ["BackdropComponent", "BackdropProps", "classes", "className", "close
|
|
|
7520
7520
|
},
|
|
7521
7521
|
ownerState: U,
|
|
7522
7522
|
className: re(h, oe == null ? void 0 : oe.className, J == null ? void 0 : J.root, !U.open && U.exited && (J == null ? void 0 : J.hidden))
|
|
7523
|
-
}), _ =
|
|
7523
|
+
}), _ = xr({
|
|
7524
7524
|
elementType: Q,
|
|
7525
7525
|
externalSlotProps: se,
|
|
7526
7526
|
additionalProps: f,
|
|
@@ -7630,7 +7630,7 @@ process.env.NODE_ENV !== "production" && (dp.propTypes = {
|
|
|
7630
7630
|
* By default, it uses the body of the top-level document object,
|
|
7631
7631
|
* so it's simply `document.body` most of the time.
|
|
7632
7632
|
*/
|
|
7633
|
-
container: c.oneOfType([
|
|
7633
|
+
container: c.oneOfType([ki, c.func]),
|
|
7634
7634
|
/**
|
|
7635
7635
|
* If `true`, the modal will not automatically shift focus to itself when it opens, and
|
|
7636
7636
|
* replace it to the last focused element when it closes.
|
|
@@ -8680,7 +8680,7 @@ process.env.NODE_ENV !== "production" && (Zl.propTypes = {
|
|
|
8680
8680
|
sx: c.oneOfType([c.arrayOf(c.oneOfType([c.func, c.object, c.bool])), c.func, c.object])
|
|
8681
8681
|
});
|
|
8682
8682
|
const HC = $t(), ec = /* @__PURE__ */ a(({ children: t }) => {
|
|
8683
|
-
const [e, r] = De(!1), [n, o] = De(""), i =
|
|
8683
|
+
const [e, r] = De(!1), [n, o] = De(""), i = ur(
|
|
8684
8684
|
() => ({
|
|
8685
8685
|
open: e,
|
|
8686
8686
|
mensaje: n,
|
|
@@ -8693,7 +8693,7 @@ const HC = $t(), ec = /* @__PURE__ */ a(({ children: t }) => {
|
|
|
8693
8693
|
);
|
|
8694
8694
|
return /* @__PURE__ */ y(HC.Provider, { value: i, children: t });
|
|
8695
8695
|
}, "ProgressProvider"), ss = /* @__PURE__ */ a(() => ot(HC), "useFormProgress"), WC = $t(), Wg = /* @__PURE__ */ a(({ children: t }) => {
|
|
8696
|
-
const [e, r] = De(!1), [n, o] = De({}), i =
|
|
8696
|
+
const [e, r] = De(!1), [n, o] = De({}), i = ur(
|
|
8697
8697
|
() => ({
|
|
8698
8698
|
open: e,
|
|
8699
8699
|
props: n,
|
|
@@ -8712,11 +8712,11 @@ const HC = $t(), ec = /* @__PURE__ */ a(({ children: t }) => {
|
|
|
8712
8712
|
handleSeleccionMultiple: n,
|
|
8713
8713
|
children: o
|
|
8714
8714
|
}) => {
|
|
8715
|
-
const i =
|
|
8715
|
+
const i = So(null), [s, l] = De({
|
|
8716
8716
|
hasCreate: t,
|
|
8717
8717
|
hasSeleccionMultiple: e,
|
|
8718
8718
|
handleSeleccionMultiple: n
|
|
8719
|
-
}), u =
|
|
8719
|
+
}), u = ur(
|
|
8720
8720
|
() => ({
|
|
8721
8721
|
props: {
|
|
8722
8722
|
...s,
|
|
@@ -9592,7 +9592,7 @@ const CD = /^(\d+)(th|st|nd|rd)?/i, kD = /\d+/i, ED = {
|
|
|
9592
9592
|
firstWeekContainsDate: 1
|
|
9593
9593
|
}
|
|
9594
9594
|
}, KC = $t({}), ji = $t(void 0), YC = $t(), qg = /* @__PURE__ */ a(({ value: t, children: e }) => {
|
|
9595
|
-
const [r, n] = De({}), o =
|
|
9595
|
+
const [r, n] = De({}), o = ur(
|
|
9596
9596
|
() => ({
|
|
9597
9597
|
estado: t.estado,
|
|
9598
9598
|
initialValues: t.initialValues,
|
|
@@ -9616,7 +9616,7 @@ const CD = /^(\d+)(th|st|nd|rd)?/i, kD = /\d+/i, ED = {
|
|
|
9616
9616
|
}, "FichaProvider"), Ot = /* @__PURE__ */ a(() => ot(KC) || {}, "useFicha"), JC = /* @__PURE__ */ a((t) => {
|
|
9617
9617
|
const e = ot(YC);
|
|
9618
9618
|
return (t == null ? void 0 : t.id) || e;
|
|
9619
|
-
}, "useIdContext"),
|
|
9619
|
+
}, "useIdContext"), fr = /* @__PURE__ */ a((t) => {
|
|
9620
9620
|
const { source: e } = t, {
|
|
9621
9621
|
estado: r,
|
|
9622
9622
|
isLoading: n,
|
|
@@ -9708,7 +9708,7 @@ const CD = /^(\d+)(th|st|nd|rd)?/i, kD = /\d+/i, ED = {
|
|
|
9708
9708
|
hidden: g !== void 0 ? g : se !== void 0 ? se : p ? !0 : z
|
|
9709
9709
|
};
|
|
9710
9710
|
}, "useContenidoController"), h_ = /* @__PURE__ */ a((t) => {
|
|
9711
|
-
const { validateDelete: e, className: r } = t, n = pt(t), o =
|
|
9711
|
+
const { validateDelete: e, className: r } = t, n = pt(t), o = dr(), i = lS(), { open: s, isLoading: l, handleDialogOpen: u, handleDialogClose: d } = fP({ record: o, resource: n }), p = /* @__PURE__ */ a((h) => {
|
|
9712
9712
|
u(h);
|
|
9713
9713
|
}, "handleClick"), f = nt(
|
|
9714
9714
|
async (h) => {
|
|
@@ -9725,7 +9725,7 @@ const CD = /^(\d+)(th|st|nd|rd)?/i, kD = /\d+/i, ED = {
|
|
|
9725
9725
|
);
|
|
9726
9726
|
return /* @__PURE__ */ W(Qr, { children: [
|
|
9727
9727
|
/* @__PURE__ */ y(
|
|
9728
|
-
|
|
9728
|
+
gr,
|
|
9729
9729
|
{
|
|
9730
9730
|
label: "ra.action.delete",
|
|
9731
9731
|
onClick: p,
|
|
@@ -9786,7 +9786,7 @@ const CD = /^(\d+)(th|st|nd|rd)?/i, kD = /\d+/i, ED = {
|
|
|
9786
9786
|
] }) });
|
|
9787
9787
|
}, "ToolbarFicha"), pf = /* @__PURE__ */ a(() => {
|
|
9788
9788
|
}, "dontSave"), hp = /* @__PURE__ */ a((t) => {
|
|
9789
|
-
const { borrar: e = !1 } = t, r = pt(), n =
|
|
9789
|
+
const { borrar: e = !1 } = t, r = pt(), n = dr(), o = Tt(), i = _i(), { estado: s, fichaProps: { onBeforeSubmitFicha: l, etrs: u } = {} } = Ot(), d = C_({ ...t, etrs: u }), [p] = cS(
|
|
9790
9790
|
r,
|
|
9791
9791
|
{
|
|
9792
9792
|
id: n == null ? void 0 : n.id
|
|
@@ -9835,7 +9835,7 @@ const CD = /^(\d+)(th|st|nd|rd)?/i, kD = /\d+/i, ED = {
|
|
|
9835
9835
|
}, "useFormSubmit");
|
|
9836
9836
|
let xh = null;
|
|
9837
9837
|
const XC = /* @__PURE__ */ a(() => {
|
|
9838
|
-
const { reset: t } =
|
|
9838
|
+
const { reset: t } = pr();
|
|
9839
9839
|
return qe(() => {
|
|
9840
9840
|
m_(() => t());
|
|
9841
9841
|
}, [t]), null;
|
|
@@ -9918,7 +9918,7 @@ const XC = /* @__PURE__ */ a(() => {
|
|
|
9918
9918
|
sort: M,
|
|
9919
9919
|
...F
|
|
9920
9920
|
}) => F, "sanitizeRestProps$4"), mte = /* @__PURE__ */ a((t) => {
|
|
9921
|
-
const { hidden: e } =
|
|
9921
|
+
const { hidden: e } = fr(t);
|
|
9922
9922
|
return !e && /* @__PURE__ */ y(
|
|
9923
9923
|
Rt,
|
|
9924
9924
|
{
|
|
@@ -10103,7 +10103,7 @@ const XC = /* @__PURE__ */ a(() => {
|
|
|
10103
10103
|
...l,
|
|
10104
10104
|
[i]: s
|
|
10105
10105
|
}));
|
|
10106
|
-
}, "setVisibilidad"), o =
|
|
10106
|
+
}, "setVisibilidad"), o = ur(
|
|
10107
10107
|
() => ({
|
|
10108
10108
|
hidden: e,
|
|
10109
10109
|
setHidden: n
|
|
@@ -10117,7 +10117,7 @@ const XC = /* @__PURE__ */ a(() => {
|
|
|
10117
10117
|
r.refetchQueries({ queryKey: [e], type: "active" });
|
|
10118
10118
|
}, [r, e]);
|
|
10119
10119
|
}, "useResourceRefresh"), tc = /* @__PURE__ */ a((t) => ({}), "useDefaultHook"), mp = /* @__PURE__ */ a((t) => {
|
|
10120
|
-
const e =
|
|
10120
|
+
const e = Oi(t), r = Un(), n = _i(), o = Xa(), i = ss(), s = pt(t), l = dk(t), u = OP(s), d = pp(), p = fp(), f = Tt(), h = tk(), [m] = Kg(s);
|
|
10121
10121
|
return {
|
|
10122
10122
|
ajax: m,
|
|
10123
10123
|
data: e,
|
|
@@ -10152,7 +10152,7 @@ const XC = /* @__PURE__ */ a(() => {
|
|
|
10152
10152
|
etrs: v
|
|
10153
10153
|
};
|
|
10154
10154
|
}, "useUtilsSubmit"), wn = /* @__PURE__ */ a((t) => {
|
|
10155
|
-
const { etrs: e = {}, asisEtr: r = {} } = t, n = rk(), o = nk(), i = ok(), s = ik(), l = ak(), u = sk(), d = ss(), p = Un(), f = _i(), h = Xa(), m = pt(t), g = pp(), b = uk(), v = tk(), { propsContenidos: x, setPropsContenidos: T } = Ot(), [k] = Kg(m), C =
|
|
10155
|
+
const { etrs: e = {}, asisEtr: r = {} } = t, n = rk(), o = nk(), i = ok(), s = ik(), l = ak(), u = sk(), d = ss(), p = Un(), f = _i(), h = Xa(), m = pt(t), g = pp(), b = uk(), v = tk(), { propsContenidos: x, setPropsContenidos: T } = Ot(), [k] = Kg(m), C = pr(), S = So(null);
|
|
10156
10156
|
useEffect(() => (C && (S.current = C), () => {
|
|
10157
10157
|
S.current = null;
|
|
10158
10158
|
}), [C]);
|
|
@@ -10162,7 +10162,7 @@ const XC = /* @__PURE__ */ a(() => {
|
|
|
10162
10162
|
return (A = (R = w()) == null ? void 0 : R.trigger) == null ? void 0 : A.call(R, ...I);
|
|
10163
10163
|
},
|
|
10164
10164
|
[w]
|
|
10165
|
-
), F =
|
|
10165
|
+
), F = ur(
|
|
10166
10166
|
() => new Proxy(
|
|
10167
10167
|
{},
|
|
10168
10168
|
{
|
|
@@ -10763,7 +10763,7 @@ const B_ = /* @__PURE__ */ a((t) => {
|
|
|
10763
10763
|
] }, s);
|
|
10764
10764
|
}) }) }) }) });
|
|
10765
10765
|
}, "ListCell"), V_ = Oe("MuiBox", ["root"]), j_ = xC(), Ia = B$({
|
|
10766
|
-
themeId:
|
|
10766
|
+
themeId: Ci,
|
|
10767
10767
|
defaultTheme: j_,
|
|
10768
10768
|
defaultClassName: V_.root,
|
|
10769
10769
|
generateClassName: Z1.generate
|
|
@@ -10942,7 +10942,7 @@ function q_(t, e, r, n, o) {
|
|
|
10942
10942
|
return typeof i == "function" && !U_(i) && (l = "Did you accidentally provide a plain function component instead?"), l !== void 0 ? new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
10943
10943
|
}
|
|
10944
10944
|
a(q_, "elementTypeAcceptingRef");
|
|
10945
|
-
const
|
|
10945
|
+
const Ti = Tn(c.elementType, q_), G_ = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
10946
10946
|
function dc(t) {
|
|
10947
10947
|
return parseInt(t, 10) || 0;
|
|
10948
10948
|
}
|
|
@@ -11002,7 +11002,7 @@ const yk = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
11002
11002
|
const T = x.outerHeightStyle, k = p.current;
|
|
11003
11003
|
h.current !== T && (h.current = T, k.style.height = `${T}px`), k.style.overflow = x.overflowing ? "hidden" : "";
|
|
11004
11004
|
}, [g]);
|
|
11005
|
-
|
|
11005
|
+
xi(() => {
|
|
11006
11006
|
const x = /* @__PURE__ */ a(() => {
|
|
11007
11007
|
b();
|
|
11008
11008
|
}, "handleResize");
|
|
@@ -11017,7 +11017,7 @@ const yk = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
11017
11017
|
return typeof ResizeObserver < "u" && (M = new ResizeObserver(process.env.NODE_ENV === "test" ? k : x), M.observe(S)), () => {
|
|
11018
11018
|
C.clear(), cancelAnimationFrame(T), w.removeEventListener("resize", C), M && M.disconnect();
|
|
11019
11019
|
};
|
|
11020
|
-
}, [g, b]),
|
|
11020
|
+
}, [g, b]), xi(() => {
|
|
11021
11021
|
b();
|
|
11022
11022
|
});
|
|
11023
11023
|
const v = /* @__PURE__ */ a((x) => {
|
|
@@ -11081,7 +11081,7 @@ process.env.NODE_ENV !== "production" && (yk.propTypes = {
|
|
|
11081
11081
|
function vk(t) {
|
|
11082
11082
|
return /* @__PURE__ */ y(TC, E({}, t, {
|
|
11083
11083
|
defaultTheme: sp,
|
|
11084
|
-
themeId:
|
|
11084
|
+
themeId: Ci
|
|
11085
11085
|
}));
|
|
11086
11086
|
}
|
|
11087
11087
|
a(vk, "GlobalStyles");
|
|
@@ -11548,7 +11548,7 @@ process.env.NODE_ENV !== "production" && (xk.propTypes = {
|
|
|
11548
11548
|
* Either a string to use a HTML element or a component.
|
|
11549
11549
|
* @default 'input'
|
|
11550
11550
|
*/
|
|
11551
|
-
inputComponent:
|
|
11551
|
+
inputComponent: Ti,
|
|
11552
11552
|
/**
|
|
11553
11553
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
11554
11554
|
* @default {}
|
|
@@ -12410,23 +12410,23 @@ const m2 = Oe("MuiButtonBase", ["root", "disabled", "focusVisible"]), g2 = ["act
|
|
|
12410
12410
|
U && h && !p && G && N.current.pulsate();
|
|
12411
12411
|
}, [p, h, U, G]);
|
|
12412
12412
|
function oe(ye, de, it = f) {
|
|
12413
|
-
return
|
|
12413
|
+
return br((ft) => (de && de(ft), !it && N.current && N.current[ye](ft), !0));
|
|
12414
12414
|
}
|
|
12415
12415
|
a(oe, "useRippleHandler");
|
|
12416
12416
|
const se = oe("start", w), ie = oe("stop", v), _ = oe("stop", x), pe = oe("stop", F), Y = oe("stop", (ye) => {
|
|
12417
12417
|
U && ye.preventDefault(), M && M(ye);
|
|
12418
12418
|
}), be = oe("start", R), Ie = oe("stop", P), He = oe("stop", I), me = oe("stop", (ye) => {
|
|
12419
12419
|
ee(ye), D.current === !1 && J(!1), g && g(ye);
|
|
12420
|
-
}, !1), ct =
|
|
12420
|
+
}, !1), ct = br((ye) => {
|
|
12421
12421
|
V.current || (V.current = ye.currentTarget), H(ye), D.current === !0 && (J(!0), k && k(ye)), T && T(ye);
|
|
12422
12422
|
}), je = /* @__PURE__ */ a(() => {
|
|
12423
12423
|
const ye = V.current;
|
|
12424
12424
|
return u && u !== "button" && !(ye.tagName === "A" && ye.href);
|
|
12425
|
-
}, "isNonNativeButton"), $e = O.useRef(!1), ut =
|
|
12425
|
+
}, "isNonNativeButton"), $e = O.useRef(!1), ut = br((ye) => {
|
|
12426
12426
|
h && !$e.current && U && N.current && ye.key === " " && ($e.current = !0, N.current.stop(ye, () => {
|
|
12427
12427
|
N.current.start(ye);
|
|
12428
12428
|
})), ye.target === ye.currentTarget && je() && ye.key === " " && ye.preventDefault(), C && C(ye), ye.target === ye.currentTarget && je() && ye.key === "Enter" && !d && (ye.preventDefault(), b && b(ye));
|
|
12429
|
-
}), at =
|
|
12429
|
+
}), at = br((ye) => {
|
|
12430
12430
|
h && ye.key === " " && N.current && U && !ye.defaultPrevented && ($e.current = !1, N.current.stop(ye, () => {
|
|
12431
12431
|
N.current.pulsate(ye);
|
|
12432
12432
|
})), S && S(ye), b && ye.target === ye.currentTarget && je() && ye.key === " " && !ye.defaultPrevented && b(ye);
|
|
@@ -12512,7 +12512,7 @@ process.env.NODE_ENV !== "production" && (qn.propTypes = {
|
|
|
12512
12512
|
* The component used for the root node.
|
|
12513
12513
|
* Either a string to use a HTML element or a component.
|
|
12514
12514
|
*/
|
|
12515
|
-
component:
|
|
12515
|
+
component: Ti,
|
|
12516
12516
|
/**
|
|
12517
12517
|
* If `true`, the component is disabled.
|
|
12518
12518
|
* @default false
|
|
@@ -12866,7 +12866,7 @@ const R2 = ["children", "className", "component", "dense", "disablePadding", "su
|
|
|
12866
12866
|
paddingBottom: 8
|
|
12867
12867
|
}, t.subheader && {
|
|
12868
12868
|
paddingTop: 0
|
|
12869
|
-
})),
|
|
12869
|
+
})), wi = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
12870
12870
|
const n = Ce({
|
|
12871
12871
|
props: e,
|
|
12872
12872
|
name: "MuiList"
|
|
@@ -12896,7 +12896,7 @@ const R2 = ["children", "className", "component", "dense", "disablePadding", "su
|
|
|
12896
12896
|
}))
|
|
12897
12897
|
});
|
|
12898
12898
|
}, "List"));
|
|
12899
|
-
process.env.NODE_ENV !== "production" && (
|
|
12899
|
+
process.env.NODE_ENV !== "production" && (wi.propTypes = {
|
|
12900
12900
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
12901
12901
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
12902
12902
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -13482,7 +13482,7 @@ process.env.NODE_ENV !== "production" && (rb.propTypes = {
|
|
|
13482
13482
|
* @default 'li'
|
|
13483
13483
|
* @deprecated
|
|
13484
13484
|
*/
|
|
13485
|
-
ContainerComponent:
|
|
13485
|
+
ContainerComponent: Ti,
|
|
13486
13486
|
/**
|
|
13487
13487
|
* Props applied to the container component if used.
|
|
13488
13488
|
* @default {}
|
|
@@ -13778,7 +13778,7 @@ function lu(t) {
|
|
|
13778
13778
|
defer: r = !1,
|
|
13779
13779
|
fallback: n = null
|
|
13780
13780
|
} = t, [o, i] = O.useState(!1);
|
|
13781
|
-
return
|
|
13781
|
+
return xi(() => {
|
|
13782
13782
|
r || i(!0);
|
|
13783
13783
|
}, [r]), O.useEffect(() => {
|
|
13784
13784
|
r && i(!0);
|
|
@@ -13866,7 +13866,7 @@ const ob = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
13866
13866
|
}, "normalizedTransitionCallback"), I = P((N, K) => {
|
|
13867
13867
|
pc(p, N, d), _g(N), m && m(N, K);
|
|
13868
13868
|
}), R = P((N, K) => {
|
|
13869
|
-
const D =
|
|
13869
|
+
const D = Ei({
|
|
13870
13870
|
timeout: C,
|
|
13871
13871
|
style: k,
|
|
13872
13872
|
easing: f
|
|
@@ -13875,7 +13875,7 @@ const ob = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
13875
13875
|
});
|
|
13876
13876
|
N.style.webkitTransition = n.transitions.create("-webkit-transform", E({}, D)), N.style.transition = n.transitions.create("transform", E({}, D)), N.style.webkitTransform = "none", N.style.transform = "none", b && b(N, K);
|
|
13877
13877
|
}), A = P(g), $ = P(T), L = P((N) => {
|
|
13878
|
-
const K =
|
|
13878
|
+
const K = Ei({
|
|
13879
13879
|
timeout: C,
|
|
13880
13880
|
style: k,
|
|
13881
13881
|
easing: f
|
|
@@ -13947,7 +13947,7 @@ process.env.NODE_ENV !== "production" && (ob.propTypes = {
|
|
|
13947
13947
|
* An HTML element, or a function that returns one.
|
|
13948
13948
|
* It's used to set the container the Slide is transitioning from.
|
|
13949
13949
|
*/
|
|
13950
|
-
container: Tn(c.oneOfType([
|
|
13950
|
+
container: Tn(c.oneOfType([ki, c.func]), (t) => {
|
|
13951
13951
|
if (t.open) {
|
|
13952
13952
|
const e = Tk(t.container);
|
|
13953
13953
|
if (e && e.nodeType === 1) {
|
|
@@ -14121,14 +14121,14 @@ const aB = ["BackdropProps"], sB = ["anchor", "BackdropProps", "children", "clas
|
|
|
14121
14121
|
top: "down",
|
|
14122
14122
|
bottom: "up"
|
|
14123
14123
|
};
|
|
14124
|
-
function
|
|
14124
|
+
function jo(t) {
|
|
14125
14125
|
return ["left", "right"].indexOf(t) !== -1;
|
|
14126
14126
|
}
|
|
14127
|
-
a(
|
|
14127
|
+
a(jo, "isHorizontal");
|
|
14128
14128
|
function Rs({
|
|
14129
14129
|
direction: t
|
|
14130
14130
|
}, e) {
|
|
14131
|
-
return t === "rtl" &&
|
|
14131
|
+
return t === "rtl" && jo(e) ? Mk[e] : e;
|
|
14132
14132
|
}
|
|
14133
14133
|
a(Rs, "getAnchor");
|
|
14134
14134
|
const Pk = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
@@ -14332,7 +14332,7 @@ const dB = ["anchor", "classes", "className", "width", "style"], pB = X("div", {
|
|
|
14332
14332
|
className: re("PrivateSwipeArea-root", o.root, o[`anchor${ce(n)}`], i),
|
|
14333
14333
|
ref: r,
|
|
14334
14334
|
style: E({
|
|
14335
|
-
[
|
|
14335
|
+
[jo(n) ? "width" : "height"]: s
|
|
14336
14336
|
}, l),
|
|
14337
14337
|
ownerState: d
|
|
14338
14338
|
}, u));
|
|
@@ -14455,10 +14455,10 @@ const bB = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
|
|
|
14455
14455
|
const {
|
|
14456
14456
|
mode: J = null,
|
|
14457
14457
|
changeTransition: G = !0
|
|
14458
|
-
} = U, te = Rs(o, s), Q = ["right", "bottom"].indexOf(te) !== -1 ? 1 : -1, oe =
|
|
14458
|
+
} = U, te = Rs(o, s), Q = ["right", "bottom"].indexOf(te) !== -1 ? 1 : -1, oe = jo(s), se = oe ? `translate(${Q * z}px, 0)` : `translate(0, ${Q * z}px)`, ie = L.current.style;
|
|
14459
14459
|
ie.webkitTransform = se, ie.transform = se;
|
|
14460
14460
|
let _ = "";
|
|
14461
|
-
if (J && (_ = o.transitions.create("all",
|
|
14461
|
+
if (J && (_ = o.transitions.create("all", Ei({
|
|
14462
14462
|
easing: void 0,
|
|
14463
14463
|
style: void 0,
|
|
14464
14464
|
timeout: S
|
|
@@ -14468,7 +14468,7 @@ const bB = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
|
|
|
14468
14468
|
const pe = $.current.style;
|
|
14469
14469
|
pe.opacity = 1 - z / ys(oe, L.current), G && (pe.webkitTransition = _, pe.transition = _);
|
|
14470
14470
|
}
|
|
14471
|
-
}, [s, l, p, o, S]), K =
|
|
14471
|
+
}, [s, l, p, o, S]), K = br((z) => {
|
|
14472
14472
|
if (!B.current)
|
|
14473
14473
|
return;
|
|
14474
14474
|
if (Pn = null, B.current = !1, ah.flushSync(() => {
|
|
@@ -14478,7 +14478,7 @@ const bB = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
|
|
|
14478
14478
|
return;
|
|
14479
14479
|
}
|
|
14480
14480
|
R.current.isSwiping = null;
|
|
14481
|
-
const U = Rs(o, s), J =
|
|
14481
|
+
const U = Rs(o, s), J = jo(s);
|
|
14482
14482
|
let G;
|
|
14483
14483
|
J ? G = hf(U, z.changedTouches, $r(z.currentTarget)) : G = mf(U, z.changedTouches, Jr(z.currentTarget));
|
|
14484
14484
|
const te = J ? R.current.startX : R.current.startY, Q = ys(J, L.current), oe = Px(G, te, x, Q), se = oe / Q;
|
|
@@ -14496,16 +14496,16 @@ const bB = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
|
|
|
14496
14496
|
(z || !(u && h)) && ah.flushSync(() => {
|
|
14497
14497
|
I(!0);
|
|
14498
14498
|
});
|
|
14499
|
-
const U =
|
|
14499
|
+
const U = jo(s);
|
|
14500
14500
|
!x && L.current && N(ys(U, L.current) + (u ? 15 : -ff), {
|
|
14501
14501
|
changeTransition: !1
|
|
14502
14502
|
}), R.current.velocity = 0, R.current.lastTime = null, R.current.lastTranslate = null, R.current.paperHit = !1, B.current = !0;
|
|
14503
14503
|
}
|
|
14504
|
-
}, "startMaybeSwiping"), H =
|
|
14504
|
+
}, "startMaybeSwiping"), H = br((z) => {
|
|
14505
14505
|
if (!L.current || !B.current || Pn !== null && Pn !== R.current)
|
|
14506
14506
|
return;
|
|
14507
14507
|
D(!0);
|
|
14508
|
-
const U = Rs(o, s), J =
|
|
14508
|
+
const U = Rs(o, s), J = jo(s), G = hf(U, z.touches, $r(z.currentTarget)), te = mf(U, z.touches, Jr(z.currentTarget));
|
|
14509
14509
|
if (x && L.current.contains(z.target) && Pn === null) {
|
|
14510
14510
|
const _ = mB(z.target, L.current);
|
|
14511
14511
|
if (gB({
|
|
@@ -14545,10 +14545,10 @@ const bB = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
|
|
|
14545
14545
|
R.current.lastTranslate === null && (R.current.lastTranslate = se, R.current.lastTime = performance.now() + 1);
|
|
14546
14546
|
const ie = (se - R.current.lastTranslate) / (performance.now() - R.current.lastTime) * 1e3;
|
|
14547
14547
|
R.current.velocity = R.current.velocity * 0.4 + ie * 0.6, R.current.lastTranslate = se, R.current.lastTime = performance.now(), z.cancelable && z.preventDefault(), N(se);
|
|
14548
|
-
}), ee =
|
|
14548
|
+
}), ee = br((z) => {
|
|
14549
14549
|
if (z.defaultPrevented || z.defaultMuiPrevented || x && (p || !$.current.contains(z.target)) && !L.current.contains(z.target))
|
|
14550
14550
|
return;
|
|
14551
|
-
const U = Rs(o, s), J =
|
|
14551
|
+
const U = Rs(o, s), J = jo(s), G = hf(U, z.touches, $r(z.currentTarget)), te = mf(U, z.touches, Jr(z.currentTarget));
|
|
14552
14552
|
if (!x) {
|
|
14553
14553
|
var Q;
|
|
14554
14554
|
if (d || !(z.target === A.current || (Q = L.current) != null && Q.contains(z.target) && (typeof h == "function" ? h(z, A.current, L.current) : h)))
|
|
@@ -14673,7 +14673,7 @@ process.env.NODE_ENV !== "production" && (Ak.propTypes = {
|
|
|
14673
14673
|
*/
|
|
14674
14674
|
ModalProps: c.shape({
|
|
14675
14675
|
BackdropProps: c.shape({
|
|
14676
|
-
component:
|
|
14676
|
+
component: Ti
|
|
14677
14677
|
})
|
|
14678
14678
|
}),
|
|
14679
14679
|
/**
|
|
@@ -14697,7 +14697,7 @@ process.env.NODE_ENV !== "production" && (Ak.propTypes = {
|
|
|
14697
14697
|
* @ignore
|
|
14698
14698
|
*/
|
|
14699
14699
|
PaperProps: c.shape({
|
|
14700
|
-
component:
|
|
14700
|
+
component: Ti,
|
|
14701
14701
|
style: c.object
|
|
14702
14702
|
}),
|
|
14703
14703
|
/**
|
|
@@ -14833,7 +14833,7 @@ function vB(t) {
|
|
|
14833
14833
|
onClose: /* @__PURE__ */ a(() => o(!1), "onClose"),
|
|
14834
14834
|
children: [
|
|
14835
14835
|
/* @__PURE__ */ y(Fk, { children: /* @__PURE__ */ y(Rt, { fontWeight: 500, children: "Columnas" }) }),
|
|
14836
|
-
/* @__PURE__ */ y(
|
|
14836
|
+
/* @__PURE__ */ y(wi, { children: s.map((d) => {
|
|
14837
14837
|
const p = l[d.field] !== !1;
|
|
14838
14838
|
return /* @__PURE__ */ y(rb, { disablePadding: !0, children: /* @__PURE__ */ W(
|
|
14839
14839
|
lo,
|
|
@@ -15173,7 +15173,7 @@ const Yn = Oe("MuiBadge", [
|
|
|
15173
15173
|
color: B,
|
|
15174
15174
|
overlap: V,
|
|
15175
15175
|
variant: K
|
|
15176
|
-
}), ee = wB(H), z = (n = (o = S == null ? void 0 : S.root) != null ? o : m.Root) != null ? n : MB, U = (i = (s = S == null ? void 0 : S.badge) != null ? s : m.Badge) != null ? i : PB, J = (l = w == null ? void 0 : w.root) != null ? l : g.root, G = (u = w == null ? void 0 : w.badge) != null ? u : g.badge, te =
|
|
15176
|
+
}), ee = wB(H), z = (n = (o = S == null ? void 0 : S.root) != null ? o : m.Root) != null ? n : MB, U = (i = (s = S == null ? void 0 : S.badge) != null ? s : m.Badge) != null ? i : PB, J = (l = w == null ? void 0 : w.root) != null ? l : g.root, G = (u = w == null ? void 0 : w.badge) != null ? u : g.badge, te = xr({
|
|
15177
15177
|
elementType: z,
|
|
15178
15178
|
externalSlotProps: J,
|
|
15179
15179
|
externalForwardedProps: P,
|
|
@@ -15183,7 +15183,7 @@ const Yn = Oe("MuiBadge", [
|
|
|
15183
15183
|
},
|
|
15184
15184
|
ownerState: H,
|
|
15185
15185
|
className: re(J == null ? void 0 : J.className, ee.root, f)
|
|
15186
|
-
}), Q =
|
|
15186
|
+
}), Q = xr({
|
|
15187
15187
|
elementType: U,
|
|
15188
15188
|
externalSlotProps: G,
|
|
15189
15189
|
ownerState: H,
|
|
@@ -15326,7 +15326,7 @@ function RB(t) {
|
|
|
15326
15326
|
onClose: /* @__PURE__ */ a(() => o(!1), "onClose"),
|
|
15327
15327
|
children: [
|
|
15328
15328
|
/* @__PURE__ */ y(Fk, { children: /* @__PURE__ */ y(Rt, { fontWeight: 500, children: "Ordenar por" }) }),
|
|
15329
|
-
/* @__PURE__ */ y(
|
|
15329
|
+
/* @__PURE__ */ y(wi, { children: u.map((f) => {
|
|
15330
15330
|
const h = l.findIndex(
|
|
15331
15331
|
(b) => b.field === f.field
|
|
15332
15332
|
), m = l[h];
|
|
@@ -15391,7 +15391,7 @@ function FB(t) {
|
|
|
15391
15391
|
handleDelete: n,
|
|
15392
15392
|
showQuickFilter: o,
|
|
15393
15393
|
showSelection: i = !1
|
|
15394
|
-
} = t, s = Bi(), { exporter: l } =
|
|
15394
|
+
} = t, s = Bi(), { exporter: l } = Oi(), {
|
|
15395
15395
|
props: { actionsContainerRef: u }
|
|
15396
15396
|
} = fp(), p = Ta(s, pR).size, f = i && p > 0, h = /* @__PURE__ */ a(() => {
|
|
15397
15397
|
s.current.setRowSelectionModel([]);
|
|
@@ -15510,7 +15510,7 @@ const BB = /* @__PURE__ */ a((t) => {
|
|
|
15510
15510
|
borderColor: "divider",
|
|
15511
15511
|
paddingBottom: 1
|
|
15512
15512
|
},
|
|
15513
|
-
children: /* @__PURE__ */ W(
|
|
15513
|
+
children: /* @__PURE__ */ W(wi, { sx: { p: 2 }, children: [
|
|
15514
15514
|
/* @__PURE__ */ W(
|
|
15515
15515
|
lo,
|
|
15516
15516
|
{
|
|
@@ -15593,7 +15593,7 @@ const BB = /* @__PURE__ */ a((t) => {
|
|
|
15593
15593
|
] })
|
|
15594
15594
|
}
|
|
15595
15595
|
),
|
|
15596
|
-
/* @__PURE__ */ y(lt, { sx: { width: "100%" }, children: /* @__PURE__ */ y(
|
|
15596
|
+
/* @__PURE__ */ y(lt, { sx: { width: "100%" }, children: /* @__PURE__ */ y(wi, { sx: { p: 2 }, children: r.map((b) => /* @__PURE__ */ W(
|
|
15597
15597
|
lo,
|
|
15598
15598
|
{
|
|
15599
15599
|
onClick: /* @__PURE__ */ a(() => typeof b.handler == "function" ? b.handler(
|
|
@@ -22529,7 +22529,7 @@ const Cj = {
|
|
|
22529
22529
|
});
|
|
22530
22530
|
})(Lk);
|
|
22531
22531
|
const Hj = /* @__PURE__ */ a((t) => {
|
|
22532
|
-
const { onRenderGrilla: e, onLoadGrilla: r, apiRef: n = {} } = t, { isLoading: o } =
|
|
22532
|
+
const { onRenderGrilla: e, onLoadGrilla: r, apiRef: n = {} } = t, { isLoading: o } = Oi(), i = mp(t);
|
|
22533
22533
|
qe(() => {
|
|
22534
22534
|
e && e({ ...i, api: n == null ? void 0 : n.current });
|
|
22535
22535
|
}, []), qe(() => {
|
|
@@ -22861,7 +22861,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
22861
22861
|
icon: A = /* @__PURE__ */ y(kh, {}),
|
|
22862
22862
|
handler: $
|
|
22863
22863
|
}, L) => /* @__PURE__ */ y(
|
|
22864
|
-
|
|
22864
|
+
gr,
|
|
22865
22865
|
{
|
|
22866
22866
|
label: R,
|
|
22867
22867
|
disabled: e,
|
|
@@ -22872,7 +22872,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
22872
22872
|
)
|
|
22873
22873
|
),
|
|
22874
22874
|
m && /* @__PURE__ */ y(
|
|
22875
|
-
|
|
22875
|
+
gr,
|
|
22876
22876
|
{
|
|
22877
22877
|
label: v,
|
|
22878
22878
|
disabled: e,
|
|
@@ -22908,7 +22908,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
22908
22908
|
icon: M = /* @__PURE__ */ y(kh, {}),
|
|
22909
22909
|
handler: F
|
|
22910
22910
|
}, P) => /* @__PURE__ */ y(
|
|
22911
|
-
|
|
22911
|
+
gr,
|
|
22912
22912
|
{
|
|
22913
22913
|
label: w,
|
|
22914
22914
|
disabled: e,
|
|
@@ -22919,7 +22919,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
22919
22919
|
)
|
|
22920
22920
|
),
|
|
22921
22921
|
/* @__PURE__ */ y(
|
|
22922
|
-
|
|
22922
|
+
gr,
|
|
22923
22923
|
{
|
|
22924
22924
|
label: "ra.action.close",
|
|
22925
22925
|
disabled: e,
|
|
@@ -22987,7 +22987,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
22987
22987
|
label: r = "ra.action.create",
|
|
22988
22988
|
scrollToTop: n = !0,
|
|
22989
22989
|
...o
|
|
22990
|
-
} = t, i = pt(t), s =
|
|
22990
|
+
} = t, i = pt(t), s = dr(t), l = _l();
|
|
22991
22991
|
return /* @__PURE__ */ y(
|
|
22992
22992
|
db,
|
|
22993
22993
|
{
|
|
@@ -23012,7 +23012,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
23012
23012
|
label: r = "ra.action.edit",
|
|
23013
23013
|
scrollToTop: n = !0,
|
|
23014
23014
|
...o
|
|
23015
|
-
} = t, i = pt(t), s =
|
|
23015
|
+
} = t, i = pt(t), s = dr(t), l = _l();
|
|
23016
23016
|
return s ? /* @__PURE__ */ y(
|
|
23017
23017
|
db,
|
|
23018
23018
|
{
|
|
@@ -23033,7 +23033,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
23033
23033
|
resource: o,
|
|
23034
23034
|
scrollToTop: i = !0,
|
|
23035
23035
|
...s
|
|
23036
|
-
} = t, l = pt(t), u =
|
|
23036
|
+
} = t, l = pt(t), u = dr(t), d = _l();
|
|
23037
23037
|
return u ? /* @__PURE__ */ y(
|
|
23038
23038
|
db,
|
|
23039
23039
|
{
|
|
@@ -23133,7 +23133,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
23133
23133
|
sort: z,
|
|
23134
23134
|
setSort: U,
|
|
23135
23135
|
exporter: J
|
|
23136
|
-
} =
|
|
23136
|
+
} = Oi(), G = _l(), te = Xa(), Q = ng(), {
|
|
23137
23137
|
hiddenactions: oe = [],
|
|
23138
23138
|
user: se = []
|
|
23139
23139
|
} = ot(zi), ie = ot(ek), _ = pb();
|
|
@@ -23320,7 +23320,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
23320
23320
|
] : [];
|
|
23321
23321
|
}, "getActions")
|
|
23322
23322
|
}
|
|
23323
|
-
]) : $e, at =
|
|
23323
|
+
]) : $e, at = ur(() => ut, []), ze = $ && Nn(R), st = /* @__PURE__ */ a((de) => {
|
|
23324
23324
|
N || ($ || !x ? D(de) : Q.current.isRowSelected(de[0]) ? D([]) : D(de));
|
|
23325
23325
|
}, "handleSelectionChange"), Ge = /* @__PURE__ */ a((de) => {
|
|
23326
23326
|
var he;
|
|
@@ -23437,7 +23437,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
23437
23437
|
borra: d,
|
|
23438
23438
|
nuevoDesde: p,
|
|
23439
23439
|
...f
|
|
23440
|
-
} = t, h = O.useRef(null), { sort: m } =
|
|
23440
|
+
} = t, h = O.useRef(null), { sort: m } = Oi(), g = /* @__PURE__ */ a(() => h.current, "container"), b = Di("(max-width: 700px)"), v = ng(), [x, T] = O.useState({
|
|
23441
23441
|
overlay: null,
|
|
23442
23442
|
params: null
|
|
23443
23443
|
}), k = i ? i.split(",").map(
|
|
@@ -23543,7 +23543,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
23543
23543
|
}, "GrillaSm"), yz = /* @__PURE__ */ a((t) => {
|
|
23544
23544
|
const e = Di((s) => s.breakpoints.down("md")), { hasEdit: r, options: n } = dS(t), { desktopSize: o = !1, ...i } = t;
|
|
23545
23545
|
return e && o === !1 ? /* @__PURE__ */ y(bz, { ...i, hasEdit: r, borra: n == null ? void 0 : n.borra }) : /* @__PURE__ */ y(Bk, { ...i, hasEdit: r, borra: n == null ? void 0 : n.borra });
|
|
23546
|
-
}, "GrillaEtriek"), vz = X(
|
|
23546
|
+
}, "GrillaEtriek"), vz = X(gr, {
|
|
23547
23547
|
name: "EtrDeleteButton",
|
|
23548
23548
|
overridesResolver: /* @__PURE__ */ a((t, e) => e.root, "overridesResolver")
|
|
23549
23549
|
})(({ theme: t }) => ({
|
|
@@ -23561,7 +23561,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
23561
23561
|
opacity: 0.6,
|
|
23562
23562
|
position: "relative"
|
|
23563
23563
|
}, Cz = /* @__PURE__ */ a((t) => {
|
|
23564
|
-
const e =
|
|
23564
|
+
const e = pr(), r = ss(), n = r.open ? Sz : Oz;
|
|
23565
23565
|
return /* @__PURE__ */ y(ji.Provider, { value: { form: e }, children: /* @__PURE__ */ W(
|
|
23566
23566
|
oS,
|
|
23567
23567
|
{
|
|
@@ -23632,7 +23632,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
23632
23632
|
}
|
|
23633
23633
|
),
|
|
23634
23634
|
/* @__PURE__ */ y(
|
|
23635
|
-
|
|
23635
|
+
gr,
|
|
23636
23636
|
{
|
|
23637
23637
|
label: "ra.action.cancel",
|
|
23638
23638
|
onClick: /* @__PURE__ */ a((T) => {
|
|
@@ -23655,10 +23655,10 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
23655
23655
|
onBeforeSubmitAsistente: l = La,
|
|
23656
23656
|
onAfterSubmitAsistente: u = La,
|
|
23657
23657
|
validateAllowAdd: d
|
|
23658
|
-
} = t, [p, f] = eg(!1), h = pt(t), m =
|
|
23658
|
+
} = t, [p, f] = eg(!1), h = pt(t), m = pr(), g = Bi(), b = hk({ apiRef: g, source: i, enviarTodo: s }), v = "N", { estado: x, fichaProps: { etrs: T } = {} } = Ot(), k = ot(ji), C = wn({ etrs: T, asisEtr: k }), w = Tt()("ra.action.create");
|
|
23659
23659
|
return /* @__PURE__ */ W(Qr, { children: [
|
|
23660
23660
|
/* @__PURE__ */ y(
|
|
23661
|
-
|
|
23661
|
+
gr,
|
|
23662
23662
|
{
|
|
23663
23663
|
onClick: /* @__PURE__ */ a((F) => {
|
|
23664
23664
|
const P = d ? d(C) : !0;
|
|
@@ -23716,10 +23716,10 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
23716
23716
|
enviarTodo: l,
|
|
23717
23717
|
onBeforeSubmitAsistente: u = La,
|
|
23718
23718
|
onAfterSubmitAsistente: d = La
|
|
23719
|
-
} = t, p = Tt(), [f, h] = eg(!1), m = Bi(), g =
|
|
23719
|
+
} = t, p = Tt(), [f, h] = eg(!1), m = Bi(), g = pr(), b = mk({ apiRef: m, source: i, enviarTodo: l }), v = "M", { estado: x, fichaProps: { etrs: T } = {} } = Ot(), k = ot(ji), C = wn({ etrs: T, asisEtr: k }), S = p("ra.action.edit");
|
|
23720
23720
|
return /* @__PURE__ */ W(Qr, { children: [
|
|
23721
23721
|
/* @__PURE__ */ y(
|
|
23722
|
-
|
|
23722
|
+
gr,
|
|
23723
23723
|
{
|
|
23724
23724
|
onClick: /* @__PURE__ */ a((M) => {
|
|
23725
23725
|
h(!0), M.stopPropagation();
|
|
@@ -23775,7 +23775,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
23775
23775
|
enviarTodo: i,
|
|
23776
23776
|
onBeforeSubmitAsistente: s = La,
|
|
23777
23777
|
onAfterSubmitAsistente: l = La
|
|
23778
|
-
} = t, [u, d] = eg(!1), p = Bi(), f =
|
|
23778
|
+
} = t, [u, d] = eg(!1), p = Bi(), f = pr(), h = gk({ apiRef: p, source: o, enviarTodo: i }), { estado: m, fichaProps: { etrs: g } = {} } = Ot(), b = wn({ etrs: g });
|
|
23779
23779
|
return /* @__PURE__ */ W(vn, { children: [
|
|
23780
23780
|
/* @__PURE__ */ y(
|
|
23781
23781
|
vz,
|
|
@@ -23819,7 +23819,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
23819
23819
|
sxContainer: m = {},
|
|
23820
23820
|
filter: g,
|
|
23821
23821
|
...b
|
|
23822
|
-
} = t, [v, x] = De([]), T =
|
|
23822
|
+
} = t, [v, x] = De([]), T = dr(t), k = pr(), { field: C } = qd({ defaultValue: "", ...t }), S = pb(), {
|
|
23823
23823
|
isLoading: w,
|
|
23824
23824
|
fichaProps: { [h]: M } = {},
|
|
23825
23825
|
propsContenidos: { [h]: F = {} } = {}
|
|
@@ -23945,7 +23945,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
23945
23945
|
);
|
|
23946
23946
|
}, "renderCell")
|
|
23947
23947
|
}));
|
|
23948
|
-
const He =
|
|
23948
|
+
const He = ur(() => Ie, [JSON.stringify(Ie)]);
|
|
23949
23949
|
return oe ? null : /* @__PURE__ */ y(
|
|
23950
23950
|
tn,
|
|
23951
23951
|
{
|
|
@@ -24021,7 +24021,7 @@ const tz = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
24021
24021
|
enableLoad: i = !0,
|
|
24022
24022
|
initialState: s,
|
|
24023
24023
|
...l
|
|
24024
|
-
} = t, { isLoading: u } = Ot(), d =
|
|
24024
|
+
} = t, { isLoading: u } = Ot(), d = dr(), [p, f] = De(r), [{ field: h, sort: m }] = r, g = ur(
|
|
24025
24025
|
() => [...n],
|
|
24026
24026
|
[JSON.stringify(n)]
|
|
24027
24027
|
);
|
|
@@ -24629,9 +24629,9 @@ a(Hk, "ScrollbarSize");
|
|
|
24629
24629
|
process.env.NODE_ENV !== "production" && (Hk.propTypes = {
|
|
24630
24630
|
onChange: c.func.isRequired
|
|
24631
24631
|
});
|
|
24632
|
-
const Vz =
|
|
24632
|
+
const Vz = To(/* @__PURE__ */ y("path", {
|
|
24633
24633
|
d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
|
|
24634
|
-
}), "KeyboardArrowLeft"), jz =
|
|
24634
|
+
}), "KeyboardArrowLeft"), jz = To(/* @__PURE__ */ y("path", {
|
|
24635
24635
|
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
|
|
24636
24636
|
}), "KeyboardArrowRight");
|
|
24637
24637
|
function zz(t) {
|
|
@@ -24683,14 +24683,14 @@ const Hz = Oe("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
24683
24683
|
direction: d
|
|
24684
24684
|
} = i, p = ne(i, Wz), f = Kl(), h = E({
|
|
24685
24685
|
isRtl: f
|
|
24686
|
-
}, i), m = Uz(h), g = (n = l.StartScrollButtonIcon) != null ? n : Vz, b = (o = l.EndScrollButtonIcon) != null ? o : jz, v =
|
|
24686
|
+
}, i), m = Uz(h), g = (n = l.StartScrollButtonIcon) != null ? n : Vz, b = (o = l.EndScrollButtonIcon) != null ? o : jz, v = xr({
|
|
24687
24687
|
elementType: g,
|
|
24688
24688
|
externalSlotProps: u.startScrollButtonIcon,
|
|
24689
24689
|
additionalProps: {
|
|
24690
24690
|
fontSize: "small"
|
|
24691
24691
|
},
|
|
24692
24692
|
ownerState: h
|
|
24693
|
-
}), x =
|
|
24693
|
+
}), x = xr({
|
|
24694
24694
|
elementType: b,
|
|
24695
24695
|
externalSlotProps: u.endScrollButtonIcon,
|
|
24696
24696
|
additionalProps: {
|
|
@@ -24957,11 +24957,11 @@ const Uk = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
24957
24957
|
scrollableY: $ && L,
|
|
24958
24958
|
centered: d && !$,
|
|
24959
24959
|
scrollButtonsHideMobile: !m
|
|
24960
|
-
}), H = Yz(D), ee =
|
|
24960
|
+
}), H = Yz(D), ee = xr({
|
|
24961
24961
|
elementType: C.StartScrollButtonIcon,
|
|
24962
24962
|
externalSlotProps: S.startScrollButtonIcon,
|
|
24963
24963
|
ownerState: D
|
|
24964
|
-
}), z =
|
|
24964
|
+
}), z = xr({
|
|
24965
24965
|
elementType: C.EndScrollButtonIcon,
|
|
24966
24966
|
externalSlotProps: S.endScrollButtonIcon,
|
|
24967
24967
|
ownerState: D
|
|
@@ -25002,7 +25002,7 @@ const Uk = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
25002
25002
|
tabsMeta: le,
|
|
25003
25003
|
tabMeta: Te
|
|
25004
25004
|
};
|
|
25005
|
-
}, "getTabsMeta"), je =
|
|
25005
|
+
}, "getTabsMeta"), je = br(() => {
|
|
25006
25006
|
const {
|
|
25007
25007
|
tabsMeta: Z,
|
|
25008
25008
|
tabMeta: le
|
|
@@ -25090,7 +25090,7 @@ const Uk = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
25090
25090
|
}, M, {
|
|
25091
25091
|
className: re(H.scrollButtons, M.className)
|
|
25092
25092
|
})) : null, Z;
|
|
25093
|
-
}, "getConditionalElements"), Ae =
|
|
25093
|
+
}, "getConditionalElements"), Ae = br((Z) => {
|
|
25094
25094
|
const {
|
|
25095
25095
|
tabsMeta: le,
|
|
25096
25096
|
tabMeta: Te
|
|
@@ -25108,7 +25108,7 @@ const Uk = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
25108
25108
|
});
|
|
25109
25109
|
}
|
|
25110
25110
|
}
|
|
25111
|
-
}), ye =
|
|
25111
|
+
}), ye = br(() => {
|
|
25112
25112
|
$ && T !== !1 && pe(!_);
|
|
25113
25113
|
});
|
|
25114
25114
|
O.useEffect(() => {
|
|
@@ -25564,7 +25564,7 @@ const Zk = /* @__PURE__ */ a((t) => {
|
|
|
25564
25564
|
n(!0);
|
|
25565
25565
|
}, []), i = nt(() => {
|
|
25566
25566
|
n(!1);
|
|
25567
|
-
}, []), s =
|
|
25567
|
+
}, []), s = ur(
|
|
25568
25568
|
() => ({
|
|
25569
25569
|
isOpen: r,
|
|
25570
25570
|
open: o,
|
|
@@ -25592,7 +25592,7 @@ const Zk = /* @__PURE__ */ a((t) => {
|
|
|
25592
25592
|
onClick: h,
|
|
25593
25593
|
children: l
|
|
25594
25594
|
}
|
|
25595
|
-
) }) : /* @__PURE__ */ y(
|
|
25595
|
+
) }) : /* @__PURE__ */ y(gr, { label: m, ...f, onClick: h, children: l });
|
|
25596
25596
|
return /* @__PURE__ */ W(Jk.Provider, { value: s, children: [
|
|
25597
25597
|
g,
|
|
25598
25598
|
p
|
|
@@ -25652,13 +25652,13 @@ const Zk = /* @__PURE__ */ a((t) => {
|
|
|
25652
25652
|
}
|
|
25653
25653
|
})), m5 = /* @__PURE__ */ a((t) => {
|
|
25654
25654
|
var b, v;
|
|
25655
|
-
const { children: e, enableLoad: r, queryOptions: n, fichaProps: o } = t, [i, s] = De(null), l =
|
|
25655
|
+
const { children: e, enableLoad: r, queryOptions: n, fichaProps: o } = t, [i, s] = De(null), l = Co(), u = Qa(), d = pt(t), p = ((b = l == null ? void 0 : l.state) == null ? void 0 : b.estado) || "N", f = ((v = l == null ? void 0 : l.state) == null ? void 0 : v.id) || "-1", { data: h, isFetching: m } = t5(
|
|
25656
25656
|
d,
|
|
25657
25657
|
{
|
|
25658
25658
|
enabled: r
|
|
25659
25659
|
},
|
|
25660
25660
|
{ estado: p, id: f, ...n == null ? void 0 : n.meta }
|
|
25661
|
-
), g =
|
|
25661
|
+
), g = ur(
|
|
25662
25662
|
() => ({
|
|
25663
25663
|
estado: p,
|
|
25664
25664
|
initialValues: h || {},
|
|
@@ -25809,7 +25809,7 @@ const Zk = /* @__PURE__ */ a((t) => {
|
|
|
25809
25809
|
chkSeleccion: i = !1,
|
|
25810
25810
|
storeKey: s,
|
|
25811
25811
|
...l
|
|
25812
|
-
} = t, u = ot(YC), d = r === "ventana" ? v5 : mS, { pathname: p, state: f } =
|
|
25812
|
+
} = t, u = ot(YC), d = r === "ventana" ? v5 : mS, { pathname: p, state: f } = Co(), h = Qa(), [m, g] = De(null), [b, v] = De(i), x = /* @__PURE__ */ a((C) => {
|
|
25813
25813
|
v(C.target.checked);
|
|
25814
25814
|
}, "handleChange");
|
|
25815
25815
|
if (qe(() => {
|
|
@@ -25890,7 +25890,7 @@ const S5 = {
|
|
|
25890
25890
|
duration: V,
|
|
25891
25891
|
delay: N,
|
|
25892
25892
|
easing: K
|
|
25893
|
-
} =
|
|
25893
|
+
} = Ei({
|
|
25894
25894
|
style: g,
|
|
25895
25895
|
timeout: b,
|
|
25896
25896
|
easing: s
|
|
@@ -25911,7 +25911,7 @@ const S5 = {
|
|
|
25911
25911
|
duration: B,
|
|
25912
25912
|
delay: V,
|
|
25913
25913
|
easing: N
|
|
25914
|
-
} =
|
|
25914
|
+
} = Ei({
|
|
25915
25915
|
style: g,
|
|
25916
25916
|
timeout: b,
|
|
25917
25917
|
easing: s
|
|
@@ -26073,7 +26073,7 @@ function xn(t) {
|
|
|
26073
26073
|
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
26074
26074
|
}
|
|
26075
26075
|
a(xn, "getNodeName");
|
|
26076
|
-
function
|
|
26076
|
+
function Or(t) {
|
|
26077
26077
|
if (t == null)
|
|
26078
26078
|
return window;
|
|
26079
26079
|
if (t.toString() !== "[object Window]") {
|
|
@@ -26082,21 +26082,21 @@ function xr(t) {
|
|
|
26082
26082
|
}
|
|
26083
26083
|
return t;
|
|
26084
26084
|
}
|
|
26085
|
-
a(
|
|
26086
|
-
function
|
|
26087
|
-
var e =
|
|
26085
|
+
a(Or, "getWindow");
|
|
26086
|
+
function Mi(t) {
|
|
26087
|
+
var e = Or(t).Element;
|
|
26088
26088
|
return t instanceof e || t instanceof Element;
|
|
26089
26089
|
}
|
|
26090
|
-
a(
|
|
26090
|
+
a(Mi, "isElement");
|
|
26091
26091
|
function _r(t) {
|
|
26092
|
-
var e =
|
|
26092
|
+
var e = Or(t).HTMLElement;
|
|
26093
26093
|
return t instanceof e || t instanceof HTMLElement;
|
|
26094
26094
|
}
|
|
26095
26095
|
a(_r, "isHTMLElement$1");
|
|
26096
26096
|
function yb(t) {
|
|
26097
26097
|
if (typeof ShadowRoot > "u")
|
|
26098
26098
|
return !1;
|
|
26099
|
-
var e =
|
|
26099
|
+
var e = Or(t).ShadowRoot;
|
|
26100
26100
|
return t instanceof e || t instanceof ShadowRoot;
|
|
26101
26101
|
}
|
|
26102
26102
|
a(yb, "isShadowRoot");
|
|
@@ -26148,7 +26148,7 @@ function yn(t) {
|
|
|
26148
26148
|
return t.split("-")[0];
|
|
26149
26149
|
}
|
|
26150
26150
|
a(yn, "getBasePlacement");
|
|
26151
|
-
var
|
|
26151
|
+
var li = Math.max, uu = Math.min, Da = Math.round;
|
|
26152
26152
|
function wh() {
|
|
26153
26153
|
var t = navigator.userAgentData;
|
|
26154
26154
|
return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
|
|
@@ -26164,7 +26164,7 @@ function _a(t, e, r) {
|
|
|
26164
26164
|
e === void 0 && (e = !1), r === void 0 && (r = !1);
|
|
26165
26165
|
var n = t.getBoundingClientRect(), o = 1, i = 1;
|
|
26166
26166
|
e && _r(t) && (o = t.offsetWidth > 0 && Da(n.width) / t.offsetWidth || 1, i = t.offsetHeight > 0 && Da(n.height) / t.offsetHeight || 1);
|
|
26167
|
-
var s =
|
|
26167
|
+
var s = Mi(t) ? Or(t) : window, l = s.visualViewport, u = !iE() && r, d = (n.left + (u && l ? l.offsetLeft : 0)) / o, p = (n.top + (u && l ? l.offsetTop : 0)) / i, f = n.width / o, h = n.height / i;
|
|
26168
26168
|
return {
|
|
26169
26169
|
width: f,
|
|
26170
26170
|
height: h,
|
|
@@ -26203,20 +26203,20 @@ function aE(t, e) {
|
|
|
26203
26203
|
}
|
|
26204
26204
|
a(aE, "contains");
|
|
26205
26205
|
function jn(t) {
|
|
26206
|
-
return
|
|
26206
|
+
return Or(t).getComputedStyle(t);
|
|
26207
26207
|
}
|
|
26208
26208
|
a(jn, "getComputedStyle$1");
|
|
26209
26209
|
function H5(t) {
|
|
26210
26210
|
return ["table", "td", "th"].indexOf(xn(t)) >= 0;
|
|
26211
26211
|
}
|
|
26212
26212
|
a(H5, "isTableElement");
|
|
26213
|
-
function
|
|
26214
|
-
return ((
|
|
26213
|
+
function wo(t) {
|
|
26214
|
+
return ((Mi(t) ? t.ownerDocument : (
|
|
26215
26215
|
// $FlowFixMe[prop-missing]
|
|
26216
26216
|
t.document
|
|
26217
26217
|
)) || window.document).documentElement;
|
|
26218
26218
|
}
|
|
26219
|
-
a(
|
|
26219
|
+
a(wo, "getDocumentElement");
|
|
26220
26220
|
function Ep(t) {
|
|
26221
26221
|
return xn(t) === "html" ? t : (
|
|
26222
26222
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
@@ -26226,7 +26226,7 @@ function Ep(t) {
|
|
|
26226
26226
|
t.parentNode || // DOM Element detected
|
|
26227
26227
|
(yb(t) ? t.host : null) || // ShadowRoot detected
|
|
26228
26228
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
26229
|
-
|
|
26229
|
+
wo(t)
|
|
26230
26230
|
);
|
|
26231
26231
|
}
|
|
26232
26232
|
a(Ep, "getParentNode");
|
|
@@ -26253,7 +26253,7 @@ function W5(t) {
|
|
|
26253
26253
|
}
|
|
26254
26254
|
a(W5, "getContainingBlock");
|
|
26255
26255
|
function nc(t) {
|
|
26256
|
-
for (var e =
|
|
26256
|
+
for (var e = Or(t), r = Vx(t); r && H5(r) && jn(r).position === "static"; )
|
|
26257
26257
|
r = Vx(r);
|
|
26258
26258
|
return r && (xn(r) === "html" || xn(r) === "body" && jn(r).position === "static") ? e : r || W5(t) || e;
|
|
26259
26259
|
}
|
|
@@ -26263,7 +26263,7 @@ function xb(t) {
|
|
|
26263
26263
|
}
|
|
26264
26264
|
a(xb, "getMainAxisFromPlacement");
|
|
26265
26265
|
function Ls(t, e, r) {
|
|
26266
|
-
return
|
|
26266
|
+
return li(t, uu(e, r));
|
|
26267
26267
|
}
|
|
26268
26268
|
a(Ls, "within");
|
|
26269
26269
|
function U5(t, e, r) {
|
|
@@ -26347,7 +26347,7 @@ function jx(t) {
|
|
|
26347
26347
|
var x = s.hasOwnProperty("x"), T = s.hasOwnProperty("y"), k = nr, C = rr, S = window;
|
|
26348
26348
|
if (d) {
|
|
26349
26349
|
var w = nc(r), M = "clientHeight", F = "clientWidth";
|
|
26350
|
-
if (w ===
|
|
26350
|
+
if (w === Or(r) && (w = wo(r), jn(w).position !== "static" && l === "absolute" && (M = "scrollHeight", F = "scrollWidth")), w = w, o === rr || (o === nr || o === zr) && i === bl) {
|
|
26351
26351
|
C = jr;
|
|
26352
26352
|
var P = f && w === S && S.visualViewport ? S.visualViewport.height : (
|
|
26353
26353
|
// $FlowFixMe[prop-missing]
|
|
@@ -26369,7 +26369,7 @@ function jx(t) {
|
|
|
26369
26369
|
}, d && J5), A = p === !0 ? Q5({
|
|
26370
26370
|
x: m,
|
|
26371
26371
|
y: b
|
|
26372
|
-
},
|
|
26372
|
+
}, Or(r)) : {
|
|
26373
26373
|
x: m,
|
|
26374
26374
|
y: b
|
|
26375
26375
|
};
|
|
@@ -26415,7 +26415,7 @@ var gc = {
|
|
|
26415
26415
|
passive: !0
|
|
26416
26416
|
};
|
|
26417
26417
|
function e3(t) {
|
|
26418
|
-
var e = t.state, r = t.instance, n = t.options, o = n.scroll, i = o === void 0 ? !0 : o, s = n.resize, l = s === void 0 ? !0 : s, u =
|
|
26418
|
+
var e = t.state, r = t.instance, n = t.options, o = n.scroll, i = o === void 0 ? !0 : o, s = n.resize, l = s === void 0 ? !0 : s, u = Or(e.elements.popper), d = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
26419
26419
|
return i && d.forEach(function(p) {
|
|
26420
26420
|
p.addEventListener("scroll", r.update, gc);
|
|
26421
26421
|
}), l && u.addEventListener("resize", r.update, gc), function() {
|
|
@@ -26457,7 +26457,7 @@ function zx(t) {
|
|
|
26457
26457
|
}
|
|
26458
26458
|
a(zx, "getOppositeVariationPlacement");
|
|
26459
26459
|
function Ob(t) {
|
|
26460
|
-
var e =
|
|
26460
|
+
var e = Or(t), r = e.pageXOffset, n = e.pageYOffset;
|
|
26461
26461
|
return {
|
|
26462
26462
|
scrollLeft: r,
|
|
26463
26463
|
scrollTop: n
|
|
@@ -26465,11 +26465,11 @@ function Ob(t) {
|
|
|
26465
26465
|
}
|
|
26466
26466
|
a(Ob, "getWindowScroll");
|
|
26467
26467
|
function Sb(t) {
|
|
26468
|
-
return _a(
|
|
26468
|
+
return _a(wo(t)).left + Ob(t).scrollLeft;
|
|
26469
26469
|
}
|
|
26470
26470
|
a(Sb, "getWindowScrollBarX");
|
|
26471
26471
|
function o3(t, e) {
|
|
26472
|
-
var r =
|
|
26472
|
+
var r = Or(t), n = wo(t), o = r.visualViewport, i = n.clientWidth, s = n.clientHeight, l = 0, u = 0;
|
|
26473
26473
|
if (o) {
|
|
26474
26474
|
i = o.width, s = o.height;
|
|
26475
26475
|
var d = iE();
|
|
@@ -26484,8 +26484,8 @@ function o3(t, e) {
|
|
|
26484
26484
|
}
|
|
26485
26485
|
a(o3, "getViewportRect");
|
|
26486
26486
|
function i3(t) {
|
|
26487
|
-
var e, r =
|
|
26488
|
-
return jn(o || r).direction === "rtl" && (l +=
|
|
26487
|
+
var e, r = wo(t), n = Ob(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, i = li(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), s = li(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), l = -n.scrollLeft + Sb(t), u = -n.scrollTop;
|
|
26488
|
+
return jn(o || r).direction === "rtl" && (l += li(r.clientWidth, o ? o.clientWidth : 0) - i), {
|
|
26489
26489
|
width: i,
|
|
26490
26490
|
height: s,
|
|
26491
26491
|
x: l,
|
|
@@ -26505,7 +26505,7 @@ a(uE, "getScrollParent");
|
|
|
26505
26505
|
function Ns(t, e) {
|
|
26506
26506
|
var r;
|
|
26507
26507
|
e === void 0 && (e = []);
|
|
26508
|
-
var n = uE(t), o = n === ((r = t.ownerDocument) == null ? void 0 : r.body), i =
|
|
26508
|
+
var n = uE(t), o = n === ((r = t.ownerDocument) == null ? void 0 : r.body), i = Or(n), s = o ? [i].concat(i.visualViewport || [], Cb(n) ? n : []) : n, l = e.concat(s);
|
|
26509
26509
|
return o ? l : (
|
|
26510
26510
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
26511
26511
|
l.concat(Ns(Ep(s)))
|
|
@@ -26527,20 +26527,20 @@ function a3(t, e) {
|
|
|
26527
26527
|
}
|
|
26528
26528
|
a(a3, "getInnerBoundingClientRect");
|
|
26529
26529
|
function Hx(t, e, r) {
|
|
26530
|
-
return e === nE ? Mh(o3(t, r)) :
|
|
26530
|
+
return e === nE ? Mh(o3(t, r)) : Mi(e) ? a3(e, r) : Mh(i3(wo(t)));
|
|
26531
26531
|
}
|
|
26532
26532
|
a(Hx, "getClientRectFromMixedType");
|
|
26533
26533
|
function s3(t) {
|
|
26534
26534
|
var e = Ns(Ep(t)), r = ["absolute", "fixed"].indexOf(jn(t).position) >= 0, n = r && _r(t) ? nc(t) : t;
|
|
26535
|
-
return
|
|
26536
|
-
return
|
|
26535
|
+
return Mi(n) ? e.filter(function(o) {
|
|
26536
|
+
return Mi(o) && aE(o, n) && xn(o) !== "body";
|
|
26537
26537
|
}) : [];
|
|
26538
26538
|
}
|
|
26539
26539
|
a(s3, "getClippingParents");
|
|
26540
26540
|
function l3(t, e, r, n) {
|
|
26541
26541
|
var o = e === "clippingParents" ? s3(t) : [].concat(e), i = [].concat(o, [r]), s = i[0], l = i.reduce(function(u, d) {
|
|
26542
26542
|
var p = Hx(t, d, n);
|
|
26543
|
-
return u.top =
|
|
26543
|
+
return u.top = li(p.top, u.top), u.right = uu(p.right, u.right), u.bottom = uu(p.bottom, u.bottom), u.left = li(p.left, u.left), u;
|
|
26544
26544
|
}, Hx(t, s, n));
|
|
26545
26545
|
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
26546
26546
|
}
|
|
@@ -26595,7 +26595,7 @@ function dE(t) {
|
|
|
26595
26595
|
a(dE, "computeOffsets");
|
|
26596
26596
|
function yl(t, e) {
|
|
26597
26597
|
e === void 0 && (e = {});
|
|
26598
|
-
var r = e, n = r.placement, o = n === void 0 ? t.placement : n, i = r.strategy, s = i === void 0 ? t.strategy : i, l = r.boundary, u = l === void 0 ? M5 : l, d = r.rootBoundary, p = d === void 0 ? nE : d, f = r.elementContext, h = f === void 0 ? vs : f, m = r.altBoundary, g = m === void 0 ? !1 : m, b = r.padding, v = b === void 0 ? 0 : b, x = lE(typeof v != "number" ? v : cE(v, rc)), T = h === vs ? P5 : vs, k = t.rects.popper, C = t.elements[g ? T : h], S = l3(
|
|
26598
|
+
var r = e, n = r.placement, o = n === void 0 ? t.placement : n, i = r.strategy, s = i === void 0 ? t.strategy : i, l = r.boundary, u = l === void 0 ? M5 : l, d = r.rootBoundary, p = d === void 0 ? nE : d, f = r.elementContext, h = f === void 0 ? vs : f, m = r.altBoundary, g = m === void 0 ? !1 : m, b = r.padding, v = b === void 0 ? 0 : b, x = lE(typeof v != "number" ? v : cE(v, rc)), T = h === vs ? P5 : vs, k = t.rects.popper, C = t.elements[g ? T : h], S = l3(Mi(C) ? C : C.contextElement || wo(t.elements.popper), u, p, s), w = _a(t.elements.reference), M = dE({
|
|
26599
26599
|
reference: w,
|
|
26600
26600
|
element: k,
|
|
26601
26601
|
strategy: "absolute",
|
|
@@ -26816,7 +26816,7 @@ function O3(t) {
|
|
|
26816
26816
|
var $, L = C === "y" ? rr : nr, j = C === "y" ? jr : zr, B = C === "y" ? "height" : "width", V = w[C], N = V + v[L], K = V - v[j], D = m ? -F[B] / 2 : 0, H = T === Na ? M[B] : F[B], ee = T === Na ? -F[B] : -M[B], z = e.elements.arrow, U = m && z ? vb(z) : {
|
|
26817
26817
|
width: 0,
|
|
26818
26818
|
height: 0
|
|
26819
|
-
}, J = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : sE(), G = J[L], te = J[j], Q = Ls(0, M[B], U[B]), oe = k ? M[B] / 2 - D - Q - G - I.mainAxis : H - Q - G - I.mainAxis, se = k ? -M[B] / 2 + D + Q + te + I.mainAxis : ee + Q + te + I.mainAxis, ie = e.elements.arrow && nc(e.elements.arrow), _ = ie ? C === "y" ? ie.clientTop || 0 : ie.clientLeft || 0 : 0, pe = ($ = R == null ? void 0 : R[C]) != null ? $ : 0, Y = V + oe - pe - _, be = V + se - pe, Ie = Ls(m ? uu(N, Y) : N, V, m ?
|
|
26819
|
+
}, J = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : sE(), G = J[L], te = J[j], Q = Ls(0, M[B], U[B]), oe = k ? M[B] / 2 - D - Q - G - I.mainAxis : H - Q - G - I.mainAxis, se = k ? -M[B] / 2 + D + Q + te + I.mainAxis : ee + Q + te + I.mainAxis, ie = e.elements.arrow && nc(e.elements.arrow), _ = ie ? C === "y" ? ie.clientTop || 0 : ie.clientLeft || 0 : 0, pe = ($ = R == null ? void 0 : R[C]) != null ? $ : 0, Y = V + oe - pe - _, be = V + se - pe, Ie = Ls(m ? uu(N, Y) : N, V, m ? li(K, be) : K);
|
|
26820
26820
|
w[C] = Ie, A[C] = Ie - V;
|
|
26821
26821
|
}
|
|
26822
26822
|
if (l) {
|
|
@@ -26842,7 +26842,7 @@ function C3(t) {
|
|
|
26842
26842
|
}
|
|
26843
26843
|
a(C3, "getHTMLElementScroll");
|
|
26844
26844
|
function k3(t) {
|
|
26845
|
-
return t ===
|
|
26845
|
+
return t === Or(t) || !_r(t) ? Ob(t) : C3(t);
|
|
26846
26846
|
}
|
|
26847
26847
|
a(k3, "getNodeScroll");
|
|
26848
26848
|
function E3(t) {
|
|
@@ -26852,7 +26852,7 @@ function E3(t) {
|
|
|
26852
26852
|
a(E3, "isElementScaled");
|
|
26853
26853
|
function T3(t, e, r) {
|
|
26854
26854
|
r === void 0 && (r = !1);
|
|
26855
|
-
var n = _r(e), o = _r(e) && E3(e), i =
|
|
26855
|
+
var n = _r(e), o = _r(e) && E3(e), i = wo(e), s = _a(t, o, r), l = {
|
|
26856
26856
|
scrollLeft: 0,
|
|
26857
26857
|
scrollTop: 0
|
|
26858
26858
|
}, u = {
|
|
@@ -26955,7 +26955,7 @@ function A3(t) {
|
|
|
26955
26955
|
setOptions: /* @__PURE__ */ a(function(x) {
|
|
26956
26956
|
var T = typeof x == "function" ? x(p.options) : x;
|
|
26957
26957
|
b(), p.options = Object.assign({}, i, p.options, T), p.scrollParents = {
|
|
26958
|
-
reference:
|
|
26958
|
+
reference: Mi(l) ? Ns(l) : l.contextElement ? Ns(l.contextElement) : [],
|
|
26959
26959
|
popper: Ns(u)
|
|
26960
26960
|
};
|
|
26961
26961
|
var k = M3(R3([].concat(n, p.options.modifiers)));
|
|
@@ -27098,7 +27098,7 @@ const B3 = /* @__PURE__ */ a((t) => {
|
|
|
27098
27098
|
// @ts-ignore internal logic
|
|
27099
27099
|
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
|
27100
27100
|
} = e, v = ne(e, L3), x = O.useRef(null), T = Ea(x, r), k = O.useRef(null), C = Ea(k, h), S = O.useRef(C);
|
|
27101
|
-
|
|
27101
|
+
xi(() => {
|
|
27102
27102
|
S.current = C;
|
|
27103
27103
|
}, [C]), O.useImperativeHandle(h, () => k.current, []);
|
|
27104
27104
|
const w = D3(p, s), [M, F] = O.useState(w), [P, I] = O.useState(du(o));
|
|
@@ -27106,7 +27106,7 @@ const B3 = /* @__PURE__ */ a((t) => {
|
|
|
27106
27106
|
k.current && k.current.forceUpdate();
|
|
27107
27107
|
}), O.useEffect(() => {
|
|
27108
27108
|
o && I(du(o));
|
|
27109
|
-
}, [o]),
|
|
27109
|
+
}, [o]), xi(() => {
|
|
27110
27110
|
if (!P || !d)
|
|
27111
27111
|
return;
|
|
27112
27112
|
const j = /* @__PURE__ */ a((N) => {
|
|
@@ -27151,7 +27151,7 @@ const B3 = /* @__PURE__ */ a((t) => {
|
|
|
27151
27151
|
placement: M
|
|
27152
27152
|
};
|
|
27153
27153
|
b !== null && (R.TransitionProps = b);
|
|
27154
|
-
const A = B3(e), $ = (n = g.root) != null ? n : "div", L =
|
|
27154
|
+
const A = B3(e), $ = (n = g.root) != null ? n : "div", L = xr({
|
|
27155
27155
|
elementType: $,
|
|
27156
27156
|
externalSlotProps: m.root,
|
|
27157
27157
|
externalForwardedProps: v,
|
|
@@ -27410,7 +27410,7 @@ process.env.NODE_ENV !== "production" && (kb.propTypes = {
|
|
|
27410
27410
|
* It's used to set the position of the popper.
|
|
27411
27411
|
* The return value will passed as the reference object of the Popper instance.
|
|
27412
27412
|
*/
|
|
27413
|
-
anchorEl: c.oneOfType([
|
|
27413
|
+
anchorEl: c.oneOfType([ki, c.object, c.func]),
|
|
27414
27414
|
/**
|
|
27415
27415
|
* Popper render function or node.
|
|
27416
27416
|
*/
|
|
@@ -27445,7 +27445,7 @@ process.env.NODE_ENV !== "production" && (kb.propTypes = {
|
|
|
27445
27445
|
* By default, it uses the body of the top-level document object,
|
|
27446
27446
|
* so it's simply `document.body` most of the time.
|
|
27447
27447
|
*/
|
|
27448
|
-
container: c.oneOfType([
|
|
27448
|
+
container: c.oneOfType([ki, c.func]),
|
|
27449
27449
|
/**
|
|
27450
27450
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
27451
27451
|
* @default false
|
|
@@ -27761,13 +27761,13 @@ const wp = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
27761
27761
|
`));
|
|
27762
27762
|
}, [ie, me, Be]);
|
|
27763
27763
|
}
|
|
27764
|
-
const it = Gl(D), ft = O.useRef(), Nt =
|
|
27764
|
+
const it = Gl(D), ft = O.useRef(), Nt = br(() => {
|
|
27765
27765
|
ft.current !== void 0 && (document.body.style.WebkitUserSelect = ft.current, ft.current = void 0), xt.clear();
|
|
27766
27766
|
});
|
|
27767
27767
|
O.useEffect(() => Nt, [Nt]);
|
|
27768
27768
|
const he = /* @__PURE__ */ a((Be) => {
|
|
27769
27769
|
Kx.clear(), bc = !0, ye(!0), U && !de && U(Be);
|
|
27770
|
-
}, "handleOpen"), Z =
|
|
27770
|
+
}, "handleOpen"), Z = br(
|
|
27771
27771
|
/**
|
|
27772
27772
|
* @param {React.SyntheticEvent | Event} event
|
|
27773
27773
|
*/
|
|
@@ -27797,8 +27797,8 @@ const wp = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
27797
27797
|
me || ct(Be.currentTarget), Pt(Be), _e.current === !0 && (Gn(!0), le(Be));
|
|
27798
27798
|
}, "handleFocus"), Jv = /* @__PURE__ */ a((Be) => {
|
|
27799
27799
|
ut.current = !0;
|
|
27800
|
-
const
|
|
27801
|
-
|
|
27800
|
+
const hr = be.props;
|
|
27801
|
+
hr.onTouchStart && hr.onTouchStart(Be);
|
|
27802
27802
|
}, "detectTouchStart"), AM = /* @__PURE__ */ a((Be) => {
|
|
27803
27803
|
Jv(Be), Ge.clear(), ze.clear(), Nt(), ft.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", xt.start(N, () => {
|
|
27804
27804
|
document.body.style.WebkitUserSelect = ft.current, le(Be);
|
|
@@ -27811,8 +27811,8 @@ const wp = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
27811
27811
|
O.useEffect(() => {
|
|
27812
27812
|
if (!de)
|
|
27813
27813
|
return;
|
|
27814
|
-
function Be(
|
|
27815
|
-
(
|
|
27814
|
+
function Be(hr) {
|
|
27815
|
+
(hr.key === "Escape" || hr.key === "Esc") && Z(hr);
|
|
27816
27816
|
}
|
|
27817
27817
|
return a(Be, "handleKeyDown"), document.addEventListener("keydown", Be), () => {
|
|
27818
27818
|
document.removeEventListener("keydown", Be);
|
|
@@ -27821,8 +27821,8 @@ const wp = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
27821
27821
|
const IM = wt(be.ref, kr, ct, r);
|
|
27822
27822
|
!ie && ie !== 0 && (de = !1);
|
|
27823
27823
|
const Up = O.useRef(), $M = /* @__PURE__ */ a((Be) => {
|
|
27824
|
-
const
|
|
27825
|
-
|
|
27824
|
+
const hr = be.props;
|
|
27825
|
+
hr.onMouseMove && hr.onMouseMove(Be), xs = {
|
|
27826
27826
|
x: Be.clientX,
|
|
27827
27827
|
y: Be.clientY
|
|
27828
27828
|
}, Up.current && Up.current.update();
|
|
@@ -27844,7 +27844,7 @@ const wp = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
27844
27844
|
`));
|
|
27845
27845
|
const LM = O.useMemo(() => {
|
|
27846
27846
|
var Be;
|
|
27847
|
-
let
|
|
27847
|
+
let hr = [{
|
|
27848
27848
|
name: "arrow",
|
|
27849
27849
|
enabled: !!je,
|
|
27850
27850
|
options: {
|
|
@@ -27852,8 +27852,8 @@ const wp = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
27852
27852
|
padding: 4
|
|
27853
27853
|
}
|
|
27854
27854
|
}];
|
|
27855
|
-
return (Be = Q.popperOptions) != null && Be.modifiers && (
|
|
27856
|
-
modifiers:
|
|
27855
|
+
return (Be = Q.popperOptions) != null && Be.modifiers && (hr = hr.concat(Q.popperOptions.modifiers)), E({}, Q.popperOptions, {
|
|
27856
|
+
modifiers: hr
|
|
27857
27857
|
});
|
|
27858
27858
|
}, [je, Q]), gs = E({}, w, {
|
|
27859
27859
|
isRtl: He,
|
|
@@ -28115,7 +28115,7 @@ const Q3 = /* @__PURE__ */ a(({
|
|
|
28115
28115
|
icon: o = /* @__PURE__ */ y(is, {}),
|
|
28116
28116
|
label: i = "ra.action.delete",
|
|
28117
28117
|
...s
|
|
28118
|
-
} = t, l =
|
|
28118
|
+
} = t, l = dr(), [u, { isFetching: d }] = cS(r, {
|
|
28119
28119
|
id: l.id
|
|
28120
28120
|
});
|
|
28121
28121
|
return /* @__PURE__ */ y(wp, { title: e("ra.action.delete"), children: /* @__PURE__ */ y(
|
|
@@ -28138,7 +28138,7 @@ const Q3 = /* @__PURE__ */ a(({
|
|
|
28138
28138
|
return e;
|
|
28139
28139
|
}, "defaultTransform"), Z3 = /* @__PURE__ */ a((t) => {
|
|
28140
28140
|
var m;
|
|
28141
|
-
const { children: e, fichaProps: r } = t, n = AP(), [o, i] = De(null), s =
|
|
28141
|
+
const { children: e, fichaProps: r } = t, n = AP(), [o, i] = De(null), s = Co(), l = Qa(), u = pt(t), { record: d, isFetching: p } = n, f = ((m = s == null ? void 0 : s.state) == null ? void 0 : m.estado) || "M", h = ur(
|
|
28142
28142
|
() => ({
|
|
28143
28143
|
estado: f,
|
|
28144
28144
|
initialValues: d,
|
|
@@ -28207,7 +28207,7 @@ const Q3 = /* @__PURE__ */ a(({
|
|
|
28207
28207
|
] }),
|
|
28208
28208
|
(u || d) && /* @__PURE__ */ W(Ql, { children: [
|
|
28209
28209
|
d && /* @__PURE__ */ y(
|
|
28210
|
-
|
|
28210
|
+
gr,
|
|
28211
28211
|
{
|
|
28212
28212
|
label: "ra.action.cancel",
|
|
28213
28213
|
disabled: p,
|
|
@@ -28253,7 +28253,7 @@ const Q3 = /* @__PURE__ */ a(({
|
|
|
28253
28253
|
t.preventDefault();
|
|
28254
28254
|
}, "disableKeyboardEvents"), hE = /* @__PURE__ */ a((t) => {
|
|
28255
28255
|
var p;
|
|
28256
|
-
const e = ss(), r =
|
|
28256
|
+
const e = ss(), r = Co(), n = pt(), o = _i(), i = dr(), s = ((p = r.state) == null ? void 0 : p.estado) === "B", l = hp({ borrar: s, ...t }), u = e.open || s, d = e.open ? r4 : t4;
|
|
28257
28257
|
return /* @__PURE__ */ W(Qr, { children: [
|
|
28258
28258
|
e.open && /* @__PURE__ */ y(
|
|
28259
28259
|
cs,
|
|
@@ -28329,7 +28329,7 @@ mE = Tb.default = (0, s4.default)(/* @__PURE__ */ (0, l4.jsx)("path", {
|
|
|
28329
28329
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
28330
28330
|
}), "ExpandMore");
|
|
28331
28331
|
const c4 = /* @__PURE__ */ a((t) => {
|
|
28332
|
-
const { handleToggle: e, isOpen: r, name: n, icon: o, children: i, dense: s } = t, l = Tt(), [u] = gS(), d = /* @__PURE__ */ W(
|
|
28332
|
+
const { handleToggle: e, isOpen: r, name: n, icon: o, children: i, dense: s } = t, l = Tt(), [u] = gS(), d = /* @__PURE__ */ W(ai, { dense: s, onClick: e, children: [
|
|
28333
28333
|
/* @__PURE__ */ y(pa, { sx: { minWidth: 5 }, children: r ? /* @__PURE__ */ y(mE, {}) : o }),
|
|
28334
28334
|
/* @__PURE__ */ y(nl, { variant: "inherit", color: "textSecondary", children: l(n) })
|
|
28335
28335
|
] });
|
|
@@ -28451,7 +28451,7 @@ const h4 = /* @__PURE__ */ a((t) => {
|
|
|
28451
28451
|
},
|
|
28452
28452
|
[i, n]
|
|
28453
28453
|
);
|
|
28454
|
-
return /* @__PURE__ */ y(
|
|
28454
|
+
return /* @__PURE__ */ y(gr, { label: e, onClick: s, ...o, children: r });
|
|
28455
28455
|
}, "RefreshButton"), m4 = /* @__PURE__ */ y(bE, {}), g4 = /* @__PURE__ */ a((t, e) => {
|
|
28456
28456
|
alert("Falta implementar la función jsBotonGrilla");
|
|
28457
28457
|
}, "defaultJsBotonGrilla"), b4 = Ll((t, e) => {
|
|
@@ -28464,7 +28464,7 @@ const h4 = /* @__PURE__ */ a((t) => {
|
|
|
28464
28464
|
jsBotonGrilla: l = g4,
|
|
28465
28465
|
refresh: u = !0,
|
|
28466
28466
|
...d
|
|
28467
|
-
} = t, [p, f] = O.useState(null), [h, m] = O.useState(null), [g, b] = O.useState({}), { displayedFilters: v, filterValues: x, exporter: T, showFilter: k, total: C } =
|
|
28467
|
+
} = t, [p, f] = O.useState(null), [h, m] = O.useState(null), [g, b] = O.useState({}), { displayedFilters: v, filterValues: x, exporter: T, showFilter: k, total: C } = Oi(), S = pt(t), { hasCreate: w } = dS(t), M = ot(NP) || n, F = Oi(t), P = mp(t), {
|
|
28468
28468
|
props: {
|
|
28469
28469
|
hasCreate: I,
|
|
28470
28470
|
hasSeleccionMultiple: R,
|
|
@@ -28511,7 +28511,7 @@ const h4 = /* @__PURE__ */ a((t) => {
|
|
|
28511
28511
|
}) || [],
|
|
28512
28512
|
[i]
|
|
28513
28513
|
);
|
|
28514
|
-
return
|
|
28514
|
+
return ur(
|
|
28515
28515
|
() => /* @__PURE__ */ W(uS, { className: r, ...DP(d), children: [
|
|
28516
28516
|
s ? null : n ? Yr(n, {
|
|
28517
28517
|
resource: S,
|
|
@@ -28541,7 +28541,7 @@ const h4 = /* @__PURE__ */ a((t) => {
|
|
|
28541
28541
|
children: D.map((H) => {
|
|
28542
28542
|
if (H.type === "Button")
|
|
28543
28543
|
return /* @__PURE__ */ W(
|
|
28544
|
-
|
|
28544
|
+
ai,
|
|
28545
28545
|
{
|
|
28546
28546
|
component: H.component,
|
|
28547
28547
|
to: H.to,
|
|
@@ -28565,7 +28565,7 @@ const h4 = /* @__PURE__ */ a((t) => {
|
|
|
28565
28565
|
const ee = g[H.index], z = ee ? ee.selectedOption : null, U = z ? z.label : H.label, J = z ? z.icon : H.icon;
|
|
28566
28566
|
return [
|
|
28567
28567
|
/* @__PURE__ */ W(
|
|
28568
|
-
|
|
28568
|
+
ai,
|
|
28569
28569
|
{
|
|
28570
28570
|
onClick: /* @__PURE__ */ a(() => N(H.index), "onClick"),
|
|
28571
28571
|
children: [
|
|
@@ -28607,7 +28607,7 @@ const h4 = /* @__PURE__ */ a((t) => {
|
|
|
28607
28607
|
children: H.options.map((G) => {
|
|
28608
28608
|
const te = (ee == null ? void 0 : ee.selectedOption) === G;
|
|
28609
28609
|
return /* @__PURE__ */ W(
|
|
28610
|
-
|
|
28610
|
+
ai,
|
|
28611
28611
|
{
|
|
28612
28612
|
onClick: /* @__PURE__ */ a((Q) => {
|
|
28613
28613
|
K(
|
|
@@ -28679,7 +28679,7 @@ const h4 = /* @__PURE__ */ a((t) => {
|
|
|
28679
28679
|
g
|
|
28680
28680
|
]
|
|
28681
28681
|
);
|
|
28682
|
-
}), y4 =
|
|
28682
|
+
}), y4 = To(/* @__PURE__ */ y("path", {
|
|
28683
28683
|
d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
|
|
28684
28684
|
}), "Person");
|
|
28685
28685
|
function v4(t) {
|
|
@@ -29450,7 +29450,7 @@ const Vte = /* @__PURE__ */ a((t) => {
|
|
|
29450
29450
|
loginBackgroundImage: e,
|
|
29451
29451
|
nameSource: r = "username",
|
|
29452
29452
|
passwordSource: n = "password"
|
|
29453
|
-
} = t, [o, i] = De(!1), s = Tt(), l = s("ra.auth.sign_in"), u = Un(), d = VP(), p =
|
|
29453
|
+
} = t, [o, i] = De(!1), s = Tt(), l = s("ra.auth.sign_in"), u = Un(), d = VP(), p = Co();
|
|
29454
29454
|
return /* @__PURE__ */ y(Bl, { onSubmit: /* @__PURE__ */ a((m) => {
|
|
29455
29455
|
i(!0), d(m, p.state ? p.state.nextPathname : "/").catch(
|
|
29456
29456
|
(g) => {
|
|
@@ -29665,7 +29665,7 @@ const kE = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
|
|
|
29665
29665
|
}
|
|
29666
29666
|
return k;
|
|
29667
29667
|
});
|
|
29668
|
-
return /* @__PURE__ */ y(
|
|
29668
|
+
return /* @__PURE__ */ y(wi, E({
|
|
29669
29669
|
role: "menu",
|
|
29670
29670
|
ref: v,
|
|
29671
29671
|
className: l,
|
|
@@ -29896,7 +29896,7 @@ const J4 = /* @__PURE__ */ a((t) => {
|
|
|
29896
29896
|
}, [u, x, ee]);
|
|
29897
29897
|
let J = M;
|
|
29898
29898
|
M === "auto" && !w.muiSupportAuto && (J = void 0);
|
|
29899
|
-
const G = g || (u ? $r(jc(u)).body : void 0), te = (o = k == null ? void 0 : k.root) != null ? o : Q4, Q = (i = k == null ? void 0 : k.paper) != null ? i : EE, oe =
|
|
29899
|
+
const G = g || (u ? $r(jc(u)).body : void 0), te = (o = k == null ? void 0 : k.root) != null ? o : Q4, Q = (i = k == null ? void 0 : k.paper) != null ? i : EE, oe = xr({
|
|
29900
29900
|
elementType: Q,
|
|
29901
29901
|
externalSlotProps: E({}, A, {
|
|
29902
29902
|
style: D ? A.style : E({}, A.style, {
|
|
@@ -29909,7 +29909,7 @@ const J4 = /* @__PURE__ */ a((t) => {
|
|
|
29909
29909
|
},
|
|
29910
29910
|
ownerState: j,
|
|
29911
29911
|
className: re(B.paper, A == null ? void 0 : A.className)
|
|
29912
|
-
}), se =
|
|
29912
|
+
}), se = xr({
|
|
29913
29913
|
elementType: te,
|
|
29914
29914
|
externalSlotProps: (C == null ? void 0 : C.root) || {},
|
|
29915
29915
|
externalForwardedProps: R,
|
|
@@ -29960,7 +29960,7 @@ process.env.NODE_ENV !== "production" && (TE.propTypes = {
|
|
|
29960
29960
|
* or a function that returns either.
|
|
29961
29961
|
* It's used to set the position of the popover.
|
|
29962
29962
|
*/
|
|
29963
|
-
anchorEl: Tn(c.oneOfType([
|
|
29963
|
+
anchorEl: Tn(c.oneOfType([ki, c.func]), (t) => {
|
|
29964
29964
|
if (t.open && (!t.anchorReference || t.anchorReference === "anchorEl")) {
|
|
29965
29965
|
const e = jc(t.anchorEl);
|
|
29966
29966
|
if (e && e.nodeType === 1) {
|
|
@@ -30024,7 +30024,7 @@ process.env.NODE_ENV !== "production" && (TE.propTypes = {
|
|
|
30024
30024
|
* By default, it uses the body of the anchorEl's top-level document object,
|
|
30025
30025
|
* so it's simply `document.body` most of the time.
|
|
30026
30026
|
*/
|
|
30027
|
-
container: c.oneOfType([
|
|
30027
|
+
container: c.oneOfType([ki, c.func]),
|
|
30028
30028
|
/**
|
|
30029
30029
|
* Disable the scroll lock behavior.
|
|
30030
30030
|
* @default false
|
|
@@ -30059,7 +30059,7 @@ process.env.NODE_ENV !== "production" && (TE.propTypes = {
|
|
|
30059
30059
|
* @default {}
|
|
30060
30060
|
*/
|
|
30061
30061
|
PaperProps: c.shape({
|
|
30062
|
-
component:
|
|
30062
|
+
component: Ti
|
|
30063
30063
|
}),
|
|
30064
30064
|
/**
|
|
30065
30065
|
* The extra props for the slot components.
|
|
@@ -30208,12 +30208,12 @@ const Z4 = ["onEntering"], eH = ["autoFocus", "children", "className", "disableA
|
|
|
30208
30208
|
/* @__PURE__ */ O.isValidElement(N) && (process.env.NODE_ENV !== "production" && Pa.isFragment(N) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
30209
30209
|
`)), N.props.disabled || (x === "selectedMenu" && N.props.selected || $ === -1) && ($ = K));
|
|
30210
30210
|
});
|
|
30211
|
-
const L = (n = T.paper) != null ? n : iH, j = (o = k.paper) != null ? o : m, B =
|
|
30211
|
+
const L = (n = T.paper) != null ? n : iH, j = (o = k.paper) != null ? o : m, B = xr({
|
|
30212
30212
|
elementType: T.root,
|
|
30213
30213
|
externalSlotProps: k.root,
|
|
30214
30214
|
ownerState: M,
|
|
30215
30215
|
className: [F.root, u]
|
|
30216
|
-
}), V =
|
|
30216
|
+
}), V = xr({
|
|
30217
30217
|
elementType: L,
|
|
30218
30218
|
externalSlotProps: j,
|
|
30219
30219
|
ownerState: M,
|
|
@@ -30264,7 +30264,7 @@ process.env.NODE_ENV !== "production" && (Pb.propTypes = {
|
|
|
30264
30264
|
* An HTML element, or a function that returns one.
|
|
30265
30265
|
* It's used to set the position of the menu.
|
|
30266
30266
|
*/
|
|
30267
|
-
anchorEl: c.oneOfType([
|
|
30267
|
+
anchorEl: c.oneOfType([ki, c.func]),
|
|
30268
30268
|
/**
|
|
30269
30269
|
* If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
|
|
30270
30270
|
* children are not focusable. If you set this prop to `false` focus will be placed
|
|
@@ -30591,7 +30591,7 @@ const jte = /* @__PURE__ */ a((t) => {
|
|
|
30591
30591
|
//showItemLabel = false,
|
|
30592
30592
|
showItemLabel: i,
|
|
30593
30593
|
initialSelectedIndex: s = 0
|
|
30594
|
-
} = t, [l, u] = De(!1), d =
|
|
30594
|
+
} = t, [l, u] = De(!1), d = So(), [p, f] = De(s), h = pt(t), m = /* @__PURE__ */ a((T, k) => (f(k), u(!1), !0), "handleMenuItemClick"), g = /* @__PURE__ */ a((T) => {
|
|
30595
30595
|
T.preventDefault(), u(!0), d.current = T.currentTarget;
|
|
30596
30596
|
}, "handleToggle"), b = /* @__PURE__ */ a((T) => {
|
|
30597
30597
|
d.current && d.current.contains(T.target) || u(!1);
|
|
@@ -30631,7 +30631,7 @@ const jte = /* @__PURE__ */ a((t) => {
|
|
|
30631
30631
|
)) })
|
|
30632
30632
|
] });
|
|
30633
30633
|
}, "MenuButton"), zte = /* @__PURE__ */ a((t) => {
|
|
30634
|
-
const { fields: e, className: r, ...n } = t, { campos: o, separador: i = "", secundario: s = [], hasSecundario: l } = e, u =
|
|
30634
|
+
const { fields: e, className: r, ...n } = t, { campos: o, separador: i = "", secundario: s = [], hasSecundario: l } = e, u = dr(), d = o.map((p) => u[p] !== void 0 ? u[p] : p).join(`${i}`);
|
|
30635
30635
|
return /* @__PURE__ */ W(Rt, { noWrap: !0, variant: "inherit", className: r, ...n, children: [
|
|
30636
30636
|
d,
|
|
30637
30637
|
l && /* @__PURE__ */ y(
|
|
@@ -30649,7 +30649,7 @@ const jte = /* @__PURE__ */ a((t) => {
|
|
|
30649
30649
|
] });
|
|
30650
30650
|
}, "MultiTextField"), pH = /* @__PURE__ */ a((t) => {
|
|
30651
30651
|
var m;
|
|
30652
|
-
const { children: e, fichaProps: r } = t, n = zP(), [o, i] = De(null), s =
|
|
30652
|
+
const { children: e, fichaProps: r } = t, n = zP(), [o, i] = De(null), s = Co(), l = Qa(), u = pt(t), { record: d, isFetching: p } = n, f = ((m = s == null ? void 0 : s.state) == null ? void 0 : m.estado) || "M", h = ur(
|
|
30653
30653
|
() => ({
|
|
30654
30654
|
estado: f,
|
|
30655
30655
|
initialValues: d,
|
|
@@ -30677,7 +30677,7 @@ const jte = /* @__PURE__ */ a((t) => {
|
|
|
30677
30677
|
name: ya,
|
|
30678
30678
|
overridesResolver: /* @__PURE__ */ a((t, e) => e.root, "overridesResolver")
|
|
30679
30679
|
})(({ theme: t }) => Gg(t)), hH = /* @__PURE__ */ a(() => {
|
|
30680
|
-
const t =
|
|
30680
|
+
const t = Co(), e = ih(":resource/create/*", t.pathname), r = ih(":resource/:id/*", t.pathname);
|
|
30681
30681
|
return e ? e.pathnameBase : r ? r.pathnameBase : "";
|
|
30682
30682
|
}, "useFormRootPath"), mH = /* @__PURE__ */ a((t) => {
|
|
30683
30683
|
const {
|
|
@@ -30690,7 +30690,7 @@ const jte = /* @__PURE__ */ a((t) => {
|
|
|
30690
30690
|
toolbar: l = vH,
|
|
30691
30691
|
onChange: u,
|
|
30692
30692
|
...d
|
|
30693
|
-
} = t, p =
|
|
30693
|
+
} = t, p = Co(), f = aR(""), h = pt(t), [m, g] = De(0), { estado: b, fichaProps: { etrs: v } = {} } = Ot(), x = wn({ ...t, etrs: v }), T = /* @__PURE__ */ a((C, S) => {
|
|
30694
30694
|
i || (g(S), u && u(
|
|
30695
30695
|
x,
|
|
30696
30696
|
b,
|
|
@@ -30900,7 +30900,7 @@ const CH = /* @__PURE__ */ a(({
|
|
|
30900
30900
|
...s
|
|
30901
30901
|
} = t, [l, u] = De(!1), {
|
|
30902
30902
|
fichaProps: { etrs: d }
|
|
30903
|
-
} = Ot(), p = ot(ji), f = wn({ ...s, etrs: d, asisEtr: p }), h = Un(), { trigger: m } =
|
|
30903
|
+
} = Ot(), p = ot(ji), f = wn({ ...s, etrs: d, asisEtr: p }), h = Un(), { trigger: m } = pr(), { hidden: g } = uk(), b = nt(
|
|
30904
30904
|
async (v, x, T) => {
|
|
30905
30905
|
typeof e == "function" ? await m() ? (u(!0), e(f, x, T, v).finally(() => {
|
|
30906
30906
|
u(!1);
|
|
@@ -30913,7 +30913,7 @@ const CH = /* @__PURE__ */ a(({
|
|
|
30913
30913
|
return /* @__PURE__ */ W(Zm, { children: [
|
|
30914
30914
|
o ? /* @__PURE__ */ y(Dl, { sx: { mr: 1 }, ...i }) : null,
|
|
30915
30915
|
n.filter((v) => !g[v.name]).map((v) => /* @__PURE__ */ y(
|
|
30916
|
-
|
|
30916
|
+
gr,
|
|
30917
30917
|
{
|
|
30918
30918
|
label: v.label,
|
|
30919
30919
|
disabled: l,
|
|
@@ -31016,7 +31016,7 @@ const Kte = {
|
|
|
31016
31016
|
}
|
|
31017
31017
|
//...resources
|
|
31018
31018
|
}, Yte = /* @__PURE__ */ a((t) => {
|
|
31019
|
-
const { propsContenido: e, hidden: r } = pk(t), n =
|
|
31019
|
+
const { propsContenido: e, hidden: r } = pk(t), n = dr(), o = JSON.parse(JSON.stringify(n)), i = o[t.source];
|
|
31020
31020
|
return o[t.source] = i != "" && i != "0", !r && /* @__PURE__ */ y(qP, { ...e, record: o });
|
|
31021
31021
|
}, "BooleanField");
|
|
31022
31022
|
var Rb = {}, TH = Ee;
|
|
@@ -31189,7 +31189,7 @@ process.env.NODE_ENV !== "production" && (Ph.propTypes = {
|
|
|
31189
31189
|
* The component used for the root node.
|
|
31190
31190
|
* Either a string to use a HTML element or a component.
|
|
31191
31191
|
*/
|
|
31192
|
-
component:
|
|
31192
|
+
component: Ti,
|
|
31193
31193
|
/**
|
|
31194
31194
|
* @ignore
|
|
31195
31195
|
*/
|
|
@@ -31335,7 +31335,7 @@ const eO = /* @__PURE__ */ a((t) => {
|
|
|
31335
31335
|
if (!(!t || t === ""))
|
|
31336
31336
|
return typeof t == "string" ? { src: e ? `${e}/${t}` : r } : t instanceof Array ? t.map((n) => ({ src: e ? `${e}/${n}` : r })) : t;
|
|
31337
31337
|
}, "formatFile"), WH = { "image/*": [] }, Jte = /* @__PURE__ */ a((t) => {
|
|
31338
|
-
const { propsContenido: e, hidden: r } =
|
|
31338
|
+
const { propsContenido: e, hidden: r } = fr(t), {
|
|
31339
31339
|
options: n = {},
|
|
31340
31340
|
readOnly: o = !1,
|
|
31341
31341
|
tipo: i = "file",
|
|
@@ -31346,7 +31346,7 @@ const eO = /* @__PURE__ */ a((t) => {
|
|
|
31346
31346
|
accept: d,
|
|
31347
31347
|
download: p = !0,
|
|
31348
31348
|
...f
|
|
31349
|
-
} = e, h = Tt(), m =
|
|
31349
|
+
} = e, h = Tt(), m = dr(t), g = Di((C) => C.breakpoints.down("sm")), b = pr(), [v, x] = De(
|
|
31350
31350
|
m && l ? `${l}/${m[f.source]}` : void 0
|
|
31351
31351
|
);
|
|
31352
31352
|
if (!b)
|
|
@@ -31434,7 +31434,7 @@ const eO = /* @__PURE__ */ a((t) => {
|
|
|
31434
31434
|
}
|
|
31435
31435
|
));
|
|
31436
31436
|
}, "Camino"), Qte = /* @__PURE__ */ a((t) => {
|
|
31437
|
-
const { propsContenido: e, hidden: r } =
|
|
31437
|
+
const { propsContenido: e, hidden: r } = fr(t);
|
|
31438
31438
|
return !r && /* @__PURE__ */ y(
|
|
31439
31439
|
lt,
|
|
31440
31440
|
{
|
|
@@ -31461,7 +31461,7 @@ const eO = /* @__PURE__ */ a((t) => {
|
|
|
31461
31461
|
isFetching: s,
|
|
31462
31462
|
allChoices: l,
|
|
31463
31463
|
availableChoices: u
|
|
31464
|
-
} = OS(), d =
|
|
31464
|
+
} = OS(), d = So(null);
|
|
31465
31465
|
return qe(() => {
|
|
31466
31466
|
s || typeof e == "function" && e(Object.values([l]));
|
|
31467
31467
|
}, [l, e, s]), /* @__PURE__ */ y(UH, { title: ((p = d.current) == null ? void 0 : p.value) || "", placement: "top", arrow: !0, children: /* @__PURE__ */ y(
|
|
@@ -31496,7 +31496,7 @@ const eO = /* @__PURE__ */ a((t) => {
|
|
|
31496
31496
|
}
|
|
31497
31497
|
) });
|
|
31498
31498
|
}, "SelectInputEtriek"), GH = /* @__PURE__ */ a((t) => {
|
|
31499
|
-
const { propsContenido: e, hidden: r } =
|
|
31499
|
+
const { propsContenido: e, hidden: r } = fr(t), n = Vi(), { isLoading: o } = Ot(), {
|
|
31500
31500
|
queryOptions: i,
|
|
31501
31501
|
asistant: s,
|
|
31502
31502
|
asistantResource: l,
|
|
@@ -31505,7 +31505,7 @@ const eO = /* @__PURE__ */ a((t) => {
|
|
|
31505
31505
|
} = e, { source: p, reference: f } = t, h = ig((x) => {
|
|
31506
31506
|
const T = x.reload_cb ? x.reload_cb.filter((k) => k.id === p) : [];
|
|
31507
31507
|
return T[0] ? T[0] : null;
|
|
31508
|
-
}), m =
|
|
31508
|
+
}), m = So(h), g = h === null && m.current ? m.current : h;
|
|
31509
31509
|
let b, v;
|
|
31510
31510
|
if (g) {
|
|
31511
31511
|
const { callback: x, ...T } = g;
|
|
@@ -31545,10 +31545,10 @@ const eO = /* @__PURE__ */ a((t) => {
|
|
|
31545
31545
|
) : null
|
|
31546
31546
|
] }) : null;
|
|
31547
31547
|
}, "ComboBox"), Xte = /* @__PURE__ */ a((t) => {
|
|
31548
|
-
const { propsContenido: e, hidden: r } =
|
|
31548
|
+
const { propsContenido: e, hidden: r } = fr(t);
|
|
31549
31549
|
return !r && /* @__PURE__ */ y(XP, { ...e });
|
|
31550
31550
|
}, "ComboBoxManual"), Zte = /* @__PURE__ */ a((t) => {
|
|
31551
|
-
const { title: e, source: r, src: n } = t, o =
|
|
31551
|
+
const { title: e, source: r, src: n } = t, o = dr(t), i = `${n}/${o[r]}`;
|
|
31552
31552
|
return /* @__PURE__ */ y(Mb, { title: e, src: i });
|
|
31553
31553
|
}, "ImageField"), Rh = /* @__PURE__ */ O.createContext();
|
|
31554
31554
|
process.env.NODE_ENV !== "production" && (Rh.displayName = "GridContext");
|
|
@@ -31603,7 +31603,7 @@ function ZH({
|
|
|
31603
31603
|
width: "auto"
|
|
31604
31604
|
};
|
|
31605
31605
|
else {
|
|
31606
|
-
const s =
|
|
31606
|
+
const s = si({
|
|
31607
31607
|
values: e.columns,
|
|
31608
31608
|
breakpoints: t.breakpoints.values
|
|
31609
31609
|
}), l = typeof s == "object" ? s[o] : s;
|
|
@@ -31635,7 +31635,7 @@ function e6({
|
|
|
31635
31635
|
theme: t,
|
|
31636
31636
|
ownerState: e
|
|
31637
31637
|
}) {
|
|
31638
|
-
const r =
|
|
31638
|
+
const r = si({
|
|
31639
31639
|
values: e.direction,
|
|
31640
31640
|
breakpoints: t.breakpoints.values
|
|
31641
31641
|
});
|
|
@@ -31673,7 +31673,7 @@ function t6({
|
|
|
31673
31673
|
} = e;
|
|
31674
31674
|
let o = {};
|
|
31675
31675
|
if (r && n !== 0) {
|
|
31676
|
-
const i =
|
|
31676
|
+
const i = si({
|
|
31677
31677
|
values: n,
|
|
31678
31678
|
breakpoints: t.breakpoints.values
|
|
31679
31679
|
});
|
|
@@ -31712,7 +31712,7 @@ function r6({
|
|
|
31712
31712
|
} = e;
|
|
31713
31713
|
let o = {};
|
|
31714
31714
|
if (r && n !== 0) {
|
|
31715
|
-
const i =
|
|
31715
|
+
const i = si({
|
|
31716
31716
|
values: n,
|
|
31717
31717
|
breakpoints: t.breakpoints.values
|
|
31718
31718
|
});
|
|
@@ -32237,11 +32237,11 @@ process.env.NODE_ENV !== "production" && (NE.propTypes = {
|
|
|
32237
32237
|
*/
|
|
32238
32238
|
value: c.any
|
|
32239
32239
|
});
|
|
32240
|
-
const p6 =
|
|
32240
|
+
const p6 = To(/* @__PURE__ */ y("path", {
|
|
32241
32241
|
d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
|
|
32242
|
-
}), "CheckBoxOutlineBlank"), f6 =
|
|
32242
|
+
}), "CheckBoxOutlineBlank"), f6 = To(/* @__PURE__ */ y("path", {
|
|
32243
32243
|
d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
32244
|
-
}), "CheckBox"), h6 =
|
|
32244
|
+
}), "CheckBox"), h6 = To(/* @__PURE__ */ y("path", {
|
|
32245
32245
|
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
|
|
32246
32246
|
}), "IndeterminateCheckBox");
|
|
32247
32247
|
function m6(t) {
|
|
@@ -32427,7 +32427,7 @@ process.env.NODE_ENV !== "production" && (DE.propTypes = {
|
|
|
32427
32427
|
value: c.any
|
|
32428
32428
|
});
|
|
32429
32429
|
const rO = /* @__PURE__ */ a((t, e) => t.filter((r) => !e.includes(r)), "not"), rn = /* @__PURE__ */ a((t, e) => t.filter((r) => e.includes(r)), "intersection"), S6 = /* @__PURE__ */ a((t) => {
|
|
32430
|
-
const { source: e, record: r } = t, { allChoices: n, availableChoices: o } = OS(), [i, s] = O.useState([]), [l, u] = O.useState(null), [d, p] = O.useState([]), [f, h] = O.useState([]), [m, g] = O.useState(!1), b = r[e] || [], [v, x] = O.useState(""), T =
|
|
32430
|
+
const { source: e, record: r } = t, { allChoices: n, availableChoices: o } = OS(), [i, s] = O.useState([]), [l, u] = O.useState(null), [d, p] = O.useState([]), [f, h] = O.useState([]), [m, g] = O.useState(!1), b = r[e] || [], [v, x] = O.useState(""), T = pr(), { field: k } = qd({ defaultValue: "", ...t }), C = O.useMemo(
|
|
32431
32431
|
() => Array.isArray(b) && b.length > 0 ? (o == null ? void 0 : o.filter(
|
|
32432
32432
|
(A) => !b.some(($) => $ === A.id)
|
|
32433
32433
|
)) || [] : o || [],
|
|
@@ -32528,7 +32528,7 @@ const rO = /* @__PURE__ */ a((t, e) => t.filter((r) => !e.includes(r)), "not"),
|
|
|
32528
32528
|
)
|
|
32529
32529
|
}
|
|
32530
32530
|
),
|
|
32531
|
-
/* @__PURE__ */ y(
|
|
32531
|
+
/* @__PURE__ */ y(wi, { dense: !0, component: "div", role: "list", children: B.map((V, N) => {
|
|
32532
32532
|
const K = `transfer-list-item-${V.id}-label`;
|
|
32533
32533
|
return /* @__PURE__ */ W(
|
|
32534
32534
|
lo,
|
|
@@ -32725,7 +32725,7 @@ const rO = /* @__PURE__ */ a((t, e) => t.filter((r) => !e.includes(r)), "not"),
|
|
|
32725
32725
|
const {
|
|
32726
32726
|
propsContenido: { sx: e, ...r },
|
|
32727
32727
|
hidden: n
|
|
32728
|
-
} =
|
|
32728
|
+
} = fr(t), { isLoading: o } = Ot(), i = Di((d) => d.breakpoints.down("md")), { source: s, reference: l } = t, u = dr(t) || {};
|
|
32729
32729
|
return !n && !o ? /* @__PURE__ */ y(
|
|
32730
32730
|
ZP,
|
|
32731
32731
|
{
|
|
@@ -32756,13 +32756,13 @@ const rO = /* @__PURE__ */ a((t, e) => t.filter((r) => !e.includes(r)), "not"),
|
|
|
32756
32756
|
}
|
|
32757
32757
|
) : null;
|
|
32758
32758
|
}, "ListCheck"), tre = /* @__PURE__ */ a((t) => {
|
|
32759
|
-
const { propsContenido: e, hidden: r } =
|
|
32759
|
+
const { propsContenido: e, hidden: r } = fr(t);
|
|
32760
32760
|
return !r && /* @__PURE__ */ y(yS, { ...e });
|
|
32761
32761
|
}, "Password"), rre = /* @__PURE__ */ a((t) => {
|
|
32762
32762
|
const {
|
|
32763
32763
|
propsContenido: { sx: e, ...r },
|
|
32764
32764
|
hidden: n
|
|
32765
|
-
} =
|
|
32765
|
+
} = fr(t), { isLoading: o } = Ot(), { source: i, reference: s } = t;
|
|
32766
32766
|
return !n && !o ? /* @__PURE__ */ y(xS, { source: i, reference: s, children: /* @__PURE__ */ y(
|
|
32767
32767
|
SS,
|
|
32768
32768
|
{
|
|
@@ -32779,7 +32779,7 @@ const rO = /* @__PURE__ */ a((t, e) => t.filter((r) => !e.includes(r)), "not"),
|
|
|
32779
32779
|
const {
|
|
32780
32780
|
propsContenido: { sx: e, ...r },
|
|
32781
32781
|
hidden: n
|
|
32782
|
-
} =
|
|
32782
|
+
} = fr(t);
|
|
32783
32783
|
return !n && /* @__PURE__ */ y(
|
|
32784
32784
|
SS,
|
|
32785
32785
|
{
|
|
@@ -32898,7 +32898,7 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
|
|
|
32898
32898
|
all: !0,
|
|
32899
32899
|
none: !1
|
|
32900
32900
|
}, H6 = /* @__PURE__ */ a((t) => !t || t != null && t.all ? "Todos" : t != null && t.none || t.seleccion.length === 0 ? "Ninguno" : `Selección (${t.seleccion.split(",").length})`, "format$1"), W6 = /* @__PURE__ */ a((t) => t, "parse$1"), ore = /* @__PURE__ */ a((t) => {
|
|
32901
|
-
const [e, r] = De(!1), n =
|
|
32901
|
+
const [e, r] = De(!1), n = So(!1), {
|
|
32902
32902
|
hidden: o,
|
|
32903
32903
|
propsContenido: {
|
|
32904
32904
|
readOnly: i,
|
|
@@ -32910,7 +32910,7 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
|
|
|
32910
32910
|
source: f,
|
|
32911
32911
|
...h
|
|
32912
32912
|
}
|
|
32913
|
-
} =
|
|
32913
|
+
} = fr(t), m = pr();
|
|
32914
32914
|
qe(() => {
|
|
32915
32915
|
n.current || (setTimeout(() => {
|
|
32916
32916
|
m.setValue(f, z6);
|
|
@@ -33226,7 +33226,7 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
|
|
|
33226
33226
|
all: !0,
|
|
33227
33227
|
none: !1
|
|
33228
33228
|
}, X6 = /* @__PURE__ */ a((t) => String(t) === t ? t === "" ? "Ninguno" : "Selección (1)" : !t || t != null && t.all ? "Todos" : t != null && t.none || t.seleccion.length === 0 ? "Ninguno" : `Selección (${t.seleccion.split(",").length})`, "format"), Z6 = /* @__PURE__ */ a((t) => t, "parse"), ire = /* @__PURE__ */ a((t) => {
|
|
33229
|
-
const { source: e, onChange: r } = t, [n] = CS({ resource: "form_224" }), [o, i] = De(!1), s =
|
|
33229
|
+
const { source: e, onChange: r } = t, [n] = CS({ resource: "form_224" }), [o, i] = De(!1), s = pr(), { estado: l, fichaProps: u = {} } = Ot(), d = ot(ji), p = So(!1), {
|
|
33230
33230
|
hidden: f,
|
|
33231
33231
|
propsContenido: {
|
|
33232
33232
|
readOnly: h,
|
|
@@ -33236,7 +33236,7 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
|
|
|
33236
33236
|
allowAll: v = !0,
|
|
33237
33237
|
...x
|
|
33238
33238
|
}
|
|
33239
|
-
} =
|
|
33239
|
+
} = fr(t), { [e]: T = {}, etrs: k } = u, C = wn({ ...t, etrs: k, asisEtr: d }), S = T.onChange === void 0 ? r : T.onChange;
|
|
33240
33240
|
qe(() => {
|
|
33241
33241
|
p.current || (setTimeout(() => {
|
|
33242
33242
|
s.setValue(e, Q6);
|
|
@@ -34003,12 +34003,12 @@ function zE(t, e, r, n) {
|
|
|
34003
34003
|
} else if (r.content.size)
|
|
34004
34004
|
if (!r.openStart && !r.openEnd && t.depth == n && e.depth == n) {
|
|
34005
34005
|
let s = t.parent, l = s.content;
|
|
34006
|
-
return
|
|
34006
|
+
return ui(s, l.cut(0, t.parentOffset).append(r.content).append(l.cut(e.parentOffset)));
|
|
34007
34007
|
} else {
|
|
34008
34008
|
let { start: s, end: l } = tW(r, t);
|
|
34009
|
-
return
|
|
34009
|
+
return ui(i, WE(t, s, l, e, n));
|
|
34010
34010
|
}
|
|
34011
|
-
else return
|
|
34011
|
+
else return ui(i, hu(t, e, n));
|
|
34012
34012
|
}
|
|
34013
34013
|
a(zE, "replaceOuter");
|
|
34014
34014
|
function HE(t, e) {
|
|
@@ -34021,33 +34021,33 @@ function Ah(t, e, r) {
|
|
|
34021
34021
|
return HE(n, e.node(r)), n;
|
|
34022
34022
|
}
|
|
34023
34023
|
a(Ah, "joinable$1");
|
|
34024
|
-
function
|
|
34024
|
+
function ci(t, e) {
|
|
34025
34025
|
let r = e.length - 1;
|
|
34026
34026
|
r >= 0 && t.isText && t.sameMarkup(e[r]) ? e[r] = t.withText(e[r].text + t.text) : e.push(t);
|
|
34027
34027
|
}
|
|
34028
|
-
a(
|
|
34028
|
+
a(ci, "addNode");
|
|
34029
34029
|
function Ds(t, e, r, n) {
|
|
34030
34030
|
let o = (e || t).node(r), i = 0, s = e ? e.index(r) : o.childCount;
|
|
34031
|
-
t && (i = t.index(r), t.depth > r ? i++ : t.textOffset && (
|
|
34031
|
+
t && (i = t.index(r), t.depth > r ? i++ : t.textOffset && (ci(t.nodeAfter, n), i++));
|
|
34032
34032
|
for (let l = i; l < s; l++)
|
|
34033
|
-
|
|
34034
|
-
e && e.depth == r && e.textOffset &&
|
|
34033
|
+
ci(o.child(l), n);
|
|
34034
|
+
e && e.depth == r && e.textOffset && ci(e.nodeBefore, n);
|
|
34035
34035
|
}
|
|
34036
34036
|
a(Ds, "addRange");
|
|
34037
|
-
function
|
|
34037
|
+
function ui(t, e) {
|
|
34038
34038
|
return t.type.checkContent(e), t.copy(e);
|
|
34039
34039
|
}
|
|
34040
|
-
a(
|
|
34040
|
+
a(ui, "close");
|
|
34041
34041
|
function WE(t, e, r, n, o) {
|
|
34042
34042
|
let i = t.depth > o && Ah(t, e, o + 1), s = n.depth > o && Ah(r, n, o + 1), l = [];
|
|
34043
|
-
return Ds(null, t, o, l), i && s && e.index(o) == r.index(o) ? (HE(i, s),
|
|
34043
|
+
return Ds(null, t, o, l), i && s && e.index(o) == r.index(o) ? (HE(i, s), ci(ui(i, WE(t, e, r, n, o + 1)), l)) : (i && ci(ui(i, hu(t, e, o + 1)), l), Ds(e, r, o, l), s && ci(ui(s, hu(r, n, o + 1)), l)), Ds(n, null, o, l), new ae(l);
|
|
34044
34044
|
}
|
|
34045
34045
|
a(WE, "replaceThreeWay");
|
|
34046
34046
|
function hu(t, e, r) {
|
|
34047
34047
|
let n = [];
|
|
34048
34048
|
if (Ds(null, t, r, n), t.depth > r) {
|
|
34049
34049
|
let o = Ah(t, e, r + 1);
|
|
34050
|
-
|
|
34050
|
+
ci(ui(o, hu(t, e, r + 1)), n);
|
|
34051
34051
|
}
|
|
34052
34052
|
return Ds(e, null, r, n), new ae(n);
|
|
34053
34053
|
}
|
|
@@ -34362,7 +34362,7 @@ a(Qy, "NodeRange");
|
|
|
34362
34362
|
let ja = Qy;
|
|
34363
34363
|
const nW = /* @__PURE__ */ Object.create(null);
|
|
34364
34364
|
var vo;
|
|
34365
|
-
let
|
|
34365
|
+
let di = (vo = class {
|
|
34366
34366
|
/**
|
|
34367
34367
|
@internal
|
|
34368
34368
|
*/
|
|
@@ -34725,8 +34725,8 @@ let ui = (vo = class {
|
|
|
34725
34725
|
return i.type.checkAttrs(i.attrs), i;
|
|
34726
34726
|
}
|
|
34727
34727
|
}, a(vo, "Node"), vo);
|
|
34728
|
-
|
|
34729
|
-
const Gs = class Gs extends
|
|
34728
|
+
di.prototype.text = void 0;
|
|
34729
|
+
const Gs = class Gs extends di {
|
|
34730
34730
|
/**
|
|
34731
34731
|
@internal
|
|
34732
34732
|
*/
|
|
@@ -34935,8 +34935,8 @@ const wd = class wd {
|
|
|
34935
34935
|
}
|
|
34936
34936
|
};
|
|
34937
34937
|
a(wd, "ContentMatch");
|
|
34938
|
-
let
|
|
34939
|
-
|
|
34938
|
+
let Pi = wd;
|
|
34939
|
+
Pi.empty = new Pi(!0);
|
|
34940
34940
|
const Xy = class Xy {
|
|
34941
34941
|
constructor(e, r) {
|
|
34942
34942
|
this.string = e, this.nodeTypes = r, this.inline = null, this.pos = 0, this.tokens = e.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift();
|
|
@@ -35116,7 +35116,7 @@ function uW(t) {
|
|
|
35116
35116
|
});
|
|
35117
35117
|
});
|
|
35118
35118
|
});
|
|
35119
|
-
let i = e[n.join(",")] = new
|
|
35119
|
+
let i = e[n.join(",")] = new Pi(n.indexOf(t.length - 1) > -1);
|
|
35120
35120
|
for (let s = 0; s < o.length; s++) {
|
|
35121
35121
|
let l = o[s][1].sort(GE);
|
|
35122
35122
|
i.next.push({ type: o[s][0], next: e[l.join(",")] || r(l) });
|
|
@@ -35181,8 +35181,8 @@ function QE(t, e) {
|
|
|
35181
35181
|
return r;
|
|
35182
35182
|
}
|
|
35183
35183
|
a(QE, "initAttrs");
|
|
35184
|
-
var
|
|
35185
|
-
let aO = (
|
|
35184
|
+
var yi;
|
|
35185
|
+
let aO = (yi = class {
|
|
35186
35186
|
/**
|
|
35187
35187
|
@internal
|
|
35188
35188
|
*/
|
|
@@ -35206,7 +35206,7 @@ let aO = (bi = class {
|
|
|
35206
35206
|
True for node types that allow no content.
|
|
35207
35207
|
*/
|
|
35208
35208
|
get isLeaf() {
|
|
35209
|
-
return this.contentMatch ==
|
|
35209
|
+
return this.contentMatch == Pi.empty;
|
|
35210
35210
|
}
|
|
35211
35211
|
/**
|
|
35212
35212
|
True when this node is an atom, i.e. when it does not have
|
|
@@ -35261,7 +35261,7 @@ let aO = (bi = class {
|
|
|
35261
35261
|
create(e = null, r, n) {
|
|
35262
35262
|
if (this.isText)
|
|
35263
35263
|
throw new Error("NodeType.create can't construct text nodes");
|
|
35264
|
-
return new
|
|
35264
|
+
return new di(this, this.computeAttrs(e), ae.from(r), dt.setFrom(n));
|
|
35265
35265
|
}
|
|
35266
35266
|
/**
|
|
35267
35267
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
|
|
@@ -35269,7 +35269,7 @@ let aO = (bi = class {
|
|
|
35269
35269
|
if it doesn't match.
|
|
35270
35270
|
*/
|
|
35271
35271
|
createChecked(e = null, r, n) {
|
|
35272
|
-
return r = ae.from(r), this.checkContent(r), new
|
|
35272
|
+
return r = ae.from(r), this.checkContent(r), new di(this, this.computeAttrs(e), r, dt.setFrom(n));
|
|
35273
35273
|
}
|
|
35274
35274
|
/**
|
|
35275
35275
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
|
|
@@ -35287,7 +35287,7 @@ let aO = (bi = class {
|
|
|
35287
35287
|
r = s.append(r);
|
|
35288
35288
|
}
|
|
35289
35289
|
let o = this.contentMatch.matchFragment(r), i = o && o.fillBefore(ae.empty, !0);
|
|
35290
|
-
return i ? new
|
|
35290
|
+
return i ? new di(this, e, r.append(i), dt.setFrom(n)) : null;
|
|
35291
35291
|
}
|
|
35292
35292
|
/**
|
|
35293
35293
|
Returns true if the given fragment is valid content for this node
|
|
@@ -35350,7 +35350,7 @@ let aO = (bi = class {
|
|
|
35350
35350
|
*/
|
|
35351
35351
|
static compile(e, r) {
|
|
35352
35352
|
let n = /* @__PURE__ */ Object.create(null);
|
|
35353
|
-
e.forEach((i, s) => n[i] = new
|
|
35353
|
+
e.forEach((i, s) => n[i] = new yi(i, r, s));
|
|
35354
35354
|
let o = r.spec.topNode || "doc";
|
|
35355
35355
|
if (!n[o])
|
|
35356
35356
|
throw new RangeError("Schema is missing its top node type ('" + o + "')");
|
|
@@ -35360,7 +35360,7 @@ let aO = (bi = class {
|
|
|
35360
35360
|
throw new RangeError("The text node type should not have attributes");
|
|
35361
35361
|
return n;
|
|
35362
35362
|
}
|
|
35363
|
-
}, a(
|
|
35363
|
+
}, a(yi, "NodeType"), yi);
|
|
35364
35364
|
function pW(t, e, r) {
|
|
35365
35365
|
let n = r.split("|");
|
|
35366
35366
|
return (o) => {
|
|
@@ -35452,7 +35452,7 @@ const ev = class ev {
|
|
|
35452
35452
|
if (o in this.marks)
|
|
35453
35453
|
throw new RangeError(o + " can not be both a node and a mark");
|
|
35454
35454
|
let i = this.nodes[o], s = i.spec.content || "", l = i.spec.marks;
|
|
35455
|
-
if (i.contentMatch = n[s] || (n[s] =
|
|
35455
|
+
if (i.contentMatch = n[s] || (n[s] = Pi.parse(s, this.nodes)), i.inlineContent = i.contentMatch.inlineContent, i.spec.linebreakReplacement) {
|
|
35456
35456
|
if (this.linebreakReplacement)
|
|
35457
35457
|
throw new RangeError("Multiple linebreak nodes defined");
|
|
35458
35458
|
if (!i.isInline || !i.isLeaf)
|
|
@@ -35501,7 +35501,7 @@ const ev = class ev {
|
|
|
35501
35501
|
bound.
|
|
35502
35502
|
*/
|
|
35503
35503
|
nodeFromJSON(e) {
|
|
35504
|
-
return
|
|
35504
|
+
return di.fromJSON(this, e);
|
|
35505
35505
|
}
|
|
35506
35506
|
/**
|
|
35507
35507
|
Deserialize a mark from its JSON representation. This method is
|
|
@@ -35664,7 +35664,7 @@ const Ks = class Ks {
|
|
|
35664
35664
|
}
|
|
35665
35665
|
};
|
|
35666
35666
|
a(Ks, "DOMParser");
|
|
35667
|
-
let
|
|
35667
|
+
let pi = Ks;
|
|
35668
35668
|
const XE = {
|
|
35669
35669
|
address: !0,
|
|
35670
35670
|
article: !0,
|
|
@@ -36153,7 +36153,7 @@ const Pd = class Pd {
|
|
|
36153
36153
|
}
|
|
36154
36154
|
};
|
|
36155
36155
|
a(Pd, "DOMSerializer");
|
|
36156
|
-
let
|
|
36156
|
+
let Ri = Pd;
|
|
36157
36157
|
function dO(t) {
|
|
36158
36158
|
let e = {};
|
|
36159
36159
|
for (let r in t) {
|
|
@@ -36533,7 +36533,7 @@ const Mf = /* @__PURE__ */ Object.create(null), ov = class ov {
|
|
|
36533
36533
|
};
|
|
36534
36534
|
a(ov, "Step");
|
|
36535
36535
|
let Ft = ov;
|
|
36536
|
-
const
|
|
36536
|
+
const Wo = class Wo {
|
|
36537
36537
|
/**
|
|
36538
36538
|
@internal
|
|
36539
36539
|
*/
|
|
@@ -36544,13 +36544,13 @@ const Ho = class Ho {
|
|
|
36544
36544
|
Create a successful step result.
|
|
36545
36545
|
*/
|
|
36546
36546
|
static ok(e) {
|
|
36547
|
-
return new
|
|
36547
|
+
return new Wo(e, null);
|
|
36548
36548
|
}
|
|
36549
36549
|
/**
|
|
36550
36550
|
Create a failed step result.
|
|
36551
36551
|
*/
|
|
36552
36552
|
static fail(e) {
|
|
36553
|
-
return new
|
|
36553
|
+
return new Wo(null, e);
|
|
36554
36554
|
}
|
|
36555
36555
|
/**
|
|
36556
36556
|
Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
|
|
@@ -36559,16 +36559,16 @@ const Ho = class Ho {
|
|
|
36559
36559
|
*/
|
|
36560
36560
|
static fromReplace(e, r, n, o) {
|
|
36561
36561
|
try {
|
|
36562
|
-
return
|
|
36562
|
+
return Wo.ok(e.replace(r, n, o));
|
|
36563
36563
|
} catch (i) {
|
|
36564
36564
|
if (i instanceof Va)
|
|
36565
|
-
return
|
|
36565
|
+
return Wo.fail(i.message);
|
|
36566
36566
|
throw i;
|
|
36567
36567
|
}
|
|
36568
36568
|
}
|
|
36569
36569
|
};
|
|
36570
|
-
a(
|
|
36571
|
-
let Ht =
|
|
36570
|
+
a(Wo, "StepResult");
|
|
36571
|
+
let Ht = Wo;
|
|
36572
36572
|
function Wb(t, e, r) {
|
|
36573
36573
|
let n = [];
|
|
36574
36574
|
for (let o = 0; o < t.childCount; o++) {
|
|
@@ -36578,7 +36578,7 @@ function Wb(t, e, r) {
|
|
|
36578
36578
|
return ae.fromArray(n);
|
|
36579
36579
|
}
|
|
36580
36580
|
a(Wb, "mapFragment");
|
|
36581
|
-
const
|
|
36581
|
+
const Uo = class Uo extends Ft {
|
|
36582
36582
|
/**
|
|
36583
36583
|
Create a mark step.
|
|
36584
36584
|
*/
|
|
@@ -36590,14 +36590,14 @@ const Wo = class Wo extends Ft {
|
|
|
36590
36590
|
return Ht.fromReplace(e, this.from, this.to, i);
|
|
36591
36591
|
}
|
|
36592
36592
|
invert() {
|
|
36593
|
-
return new
|
|
36593
|
+
return new Ai(this.from, this.to, this.mark);
|
|
36594
36594
|
}
|
|
36595
36595
|
map(e) {
|
|
36596
36596
|
let r = e.mapResult(this.from, 1), n = e.mapResult(this.to, -1);
|
|
36597
|
-
return r.deleted && n.deleted || r.pos >= n.pos ? null : new
|
|
36597
|
+
return r.deleted && n.deleted || r.pos >= n.pos ? null : new Uo(r.pos, n.pos, this.mark);
|
|
36598
36598
|
}
|
|
36599
36599
|
merge(e) {
|
|
36600
|
-
return e instanceof
|
|
36600
|
+
return e instanceof Uo && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new Uo(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
|
|
36601
36601
|
}
|
|
36602
36602
|
toJSON() {
|
|
36603
36603
|
return {
|
|
@@ -36613,13 +36613,13 @@ const Wo = class Wo extends Ft {
|
|
|
36613
36613
|
static fromJSON(e, r) {
|
|
36614
36614
|
if (typeof r.from != "number" || typeof r.to != "number")
|
|
36615
36615
|
throw new RangeError("Invalid input for AddMarkStep.fromJSON");
|
|
36616
|
-
return new
|
|
36616
|
+
return new Uo(r.from, r.to, e.markFromJSON(r.mark));
|
|
36617
36617
|
}
|
|
36618
36618
|
};
|
|
36619
|
-
a(
|
|
36620
|
-
let Ol =
|
|
36619
|
+
a(Uo, "AddMarkStep");
|
|
36620
|
+
let Ol = Uo;
|
|
36621
36621
|
Ft.jsonID("addMark", Ol);
|
|
36622
|
-
const
|
|
36622
|
+
const qo = class qo extends Ft {
|
|
36623
36623
|
/**
|
|
36624
36624
|
Create a mark-removing step.
|
|
36625
36625
|
*/
|
|
@@ -36635,10 +36635,10 @@ const Uo = class Uo extends Ft {
|
|
|
36635
36635
|
}
|
|
36636
36636
|
map(e) {
|
|
36637
36637
|
let r = e.mapResult(this.from, 1), n = e.mapResult(this.to, -1);
|
|
36638
|
-
return r.deleted && n.deleted || r.pos >= n.pos ? null : new
|
|
36638
|
+
return r.deleted && n.deleted || r.pos >= n.pos ? null : new qo(r.pos, n.pos, this.mark);
|
|
36639
36639
|
}
|
|
36640
36640
|
merge(e) {
|
|
36641
|
-
return e instanceof
|
|
36641
|
+
return e instanceof qo && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new qo(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
|
|
36642
36642
|
}
|
|
36643
36643
|
toJSON() {
|
|
36644
36644
|
return {
|
|
@@ -36654,13 +36654,13 @@ const Uo = class Uo extends Ft {
|
|
|
36654
36654
|
static fromJSON(e, r) {
|
|
36655
36655
|
if (typeof r.from != "number" || typeof r.to != "number")
|
|
36656
36656
|
throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
|
|
36657
|
-
return new
|
|
36657
|
+
return new qo(r.from, r.to, e.markFromJSON(r.mark));
|
|
36658
36658
|
}
|
|
36659
36659
|
};
|
|
36660
|
-
a(
|
|
36661
|
-
let
|
|
36662
|
-
Ft.jsonID("removeMark",
|
|
36663
|
-
const
|
|
36660
|
+
a(qo, "RemoveMarkStep");
|
|
36661
|
+
let Ai = qo;
|
|
36662
|
+
Ft.jsonID("removeMark", Ai);
|
|
36663
|
+
const Go = class Go extends Ft {
|
|
36664
36664
|
/**
|
|
36665
36665
|
Create a node mark step.
|
|
36666
36666
|
*/
|
|
@@ -36681,15 +36681,15 @@ const qo = class qo extends Ft {
|
|
|
36681
36681
|
if (n.length == r.marks.length) {
|
|
36682
36682
|
for (let o = 0; o < r.marks.length; o++)
|
|
36683
36683
|
if (!r.marks[o].isInSet(n))
|
|
36684
|
-
return new
|
|
36685
|
-
return new
|
|
36684
|
+
return new Go(this.pos, r.marks[o]);
|
|
36685
|
+
return new Go(this.pos, this.mark);
|
|
36686
36686
|
}
|
|
36687
36687
|
}
|
|
36688
36688
|
return new Cl(this.pos, this.mark);
|
|
36689
36689
|
}
|
|
36690
36690
|
map(e) {
|
|
36691
36691
|
let r = e.mapResult(this.pos, 1);
|
|
36692
|
-
return r.deletedAfter ? null : new
|
|
36692
|
+
return r.deletedAfter ? null : new Go(r.pos, this.mark);
|
|
36693
36693
|
}
|
|
36694
36694
|
toJSON() {
|
|
36695
36695
|
return { stepType: "addNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
@@ -36700,11 +36700,11 @@ const qo = class qo extends Ft {
|
|
|
36700
36700
|
static fromJSON(e, r) {
|
|
36701
36701
|
if (typeof r.pos != "number")
|
|
36702
36702
|
throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");
|
|
36703
|
-
return new
|
|
36703
|
+
return new Go(r.pos, e.markFromJSON(r.mark));
|
|
36704
36704
|
}
|
|
36705
36705
|
};
|
|
36706
|
-
a(
|
|
36707
|
-
let Sl =
|
|
36706
|
+
a(Go, "AddNodeMarkStep");
|
|
36707
|
+
let Sl = Go;
|
|
36708
36708
|
Ft.jsonID("addNodeMark", Sl);
|
|
36709
36709
|
const Ys = class Ys extends Ft {
|
|
36710
36710
|
/**
|
|
@@ -36795,8 +36795,8 @@ const In = class In extends Ft {
|
|
|
36795
36795
|
}
|
|
36796
36796
|
};
|
|
36797
36797
|
a(In, "ReplaceStep");
|
|
36798
|
-
let
|
|
36799
|
-
Ft.jsonID("replace",
|
|
36798
|
+
let Sr = In;
|
|
36799
|
+
Ft.jsonID("replace", Sr);
|
|
36800
36800
|
const sa = class sa extends Ft {
|
|
36801
36801
|
/**
|
|
36802
36802
|
Create a replace-around step with the given range and gap.
|
|
@@ -36881,7 +36881,7 @@ function SW(t, e, r, n) {
|
|
|
36881
36881
|
if (!n.isInSet(f) && p.type.allowsMarkType(n.type)) {
|
|
36882
36882
|
let h = Math.max(d, e), m = Math.min(d + u.nodeSize, r), g = n.addToSet(f);
|
|
36883
36883
|
for (let b = 0; b < f.length; b++)
|
|
36884
|
-
f[b].isInSet(g) || (s && s.to == h && s.mark.eq(f[b]) ? s.to = m : o.push(s = new
|
|
36884
|
+
f[b].isInSet(g) || (s && s.to == h && s.mark.eq(f[b]) ? s.to = m : o.push(s = new Ai(h, m, f[b])));
|
|
36885
36885
|
l && l.to == h ? l.to = m : i.push(l = new Ol(h, m, n));
|
|
36886
36886
|
}
|
|
36887
36887
|
}), o.forEach((u) => t.step(u)), i.forEach((u) => t.step(u));
|
|
@@ -36910,7 +36910,7 @@ function CW(t, e, r, n) {
|
|
|
36910
36910
|
h ? (h.to = d, h.step = i) : o.push({ style: f, from: Math.max(l, e), to: d, step: i });
|
|
36911
36911
|
}
|
|
36912
36912
|
}
|
|
36913
|
-
}), o.forEach((s) => t.step(new
|
|
36913
|
+
}), o.forEach((s) => t.step(new Ai(s.from, s.to, s.style)));
|
|
36914
36914
|
}
|
|
36915
36915
|
a(CW, "removeMark");
|
|
36916
36916
|
function Ub(t, e, r, n = r.contentMatch, o = !0) {
|
|
@@ -36918,15 +36918,15 @@ function Ub(t, e, r, n = r.contentMatch, o = !0) {
|
|
|
36918
36918
|
for (let u = 0; u < i.childCount; u++) {
|
|
36919
36919
|
let d = i.child(u), p = l + d.nodeSize, f = n.matchType(d.type);
|
|
36920
36920
|
if (!f)
|
|
36921
|
-
s.push(new
|
|
36921
|
+
s.push(new Sr(l, p, fe.empty));
|
|
36922
36922
|
else {
|
|
36923
36923
|
n = f;
|
|
36924
36924
|
for (let h = 0; h < d.marks.length; h++)
|
|
36925
|
-
r.allowsMarkType(d.marks[h].type) || t.step(new
|
|
36925
|
+
r.allowsMarkType(d.marks[h].type) || t.step(new Ai(l, p, d.marks[h]));
|
|
36926
36926
|
if (o && d.isText && r.whitespace != "pre") {
|
|
36927
36927
|
let h, m = /\r?\n|\r/g, g;
|
|
36928
36928
|
for (; h = m.exec(d.text); )
|
|
36929
|
-
g || (g = new fe(ae.from(r.schema.text(" ", r.allowedMarks(d.marks))), 0, 0)), s.push(new
|
|
36929
|
+
g || (g = new fe(ae.from(r.schema.text(" ", r.allowedMarks(d.marks))), 0, 0)), s.push(new Sr(l + h.index, l + h.index + h[0].length, g));
|
|
36930
36930
|
}
|
|
36931
36931
|
}
|
|
36932
36932
|
l = p;
|
|
@@ -37090,14 +37090,14 @@ function FW(t, e, r = 1, n) {
|
|
|
37090
37090
|
let p = n && n[d];
|
|
37091
37091
|
s = ae.from(p ? p.type.create(p.attrs, s) : o.node(l).copy(s));
|
|
37092
37092
|
}
|
|
37093
|
-
t.step(new
|
|
37093
|
+
t.step(new Sr(e, e, new fe(i.append(s), r, r), !0));
|
|
37094
37094
|
}
|
|
37095
37095
|
a(FW, "split");
|
|
37096
|
-
function
|
|
37096
|
+
function Mo(t, e) {
|
|
37097
37097
|
let r = t.resolve(e), n = r.index();
|
|
37098
37098
|
return sT(r.nodeBefore, r.nodeAfter) && r.parent.canReplace(n, n + 1);
|
|
37099
37099
|
}
|
|
37100
|
-
a(
|
|
37100
|
+
a(Mo, "canJoin");
|
|
37101
37101
|
function IW(t, e) {
|
|
37102
37102
|
e.content.size || t.type.compatibleContent(e.type);
|
|
37103
37103
|
let r = t.contentMatchAt(t.childCount), { linebreakReplacement: n } = t.type.schema;
|
|
@@ -37138,7 +37138,7 @@ function $W(t, e, r) {
|
|
|
37138
37138
|
}
|
|
37139
37139
|
s.inlineContent && Ub(t, e + r - 1, s, i.node().contentMatchAt(i.index()), n == null);
|
|
37140
37140
|
let u = t.mapping.slice(l), d = u.map(e - r);
|
|
37141
|
-
if (t.step(new
|
|
37141
|
+
if (t.step(new Sr(d, u.map(e + r, -1), fe.empty, !0)), n === !0) {
|
|
37142
37142
|
let p = t.doc.resolve(d);
|
|
37143
37143
|
iT(t, p.node(), p.before(), t.steps.length);
|
|
37144
37144
|
}
|
|
@@ -37194,7 +37194,7 @@ function Pp(t, e, r = e, n = fe.empty) {
|
|
|
37194
37194
|
if (e == r && !n.size)
|
|
37195
37195
|
return null;
|
|
37196
37196
|
let o = t.resolve(e), i = t.resolve(r);
|
|
37197
|
-
return cT(o, i, n) ? new
|
|
37197
|
+
return cT(o, i, n) ? new Sr(e, r, n) : new Dh(o, i, n).fit();
|
|
37198
37198
|
}
|
|
37199
37199
|
a(Pp, "replaceStep");
|
|
37200
37200
|
function cT(t, e, r) {
|
|
@@ -37229,7 +37229,7 @@ const iv = class iv {
|
|
|
37229
37229
|
for (; s && l && i.childCount == 1; )
|
|
37230
37230
|
i = i.firstChild.content, s--, l--;
|
|
37231
37231
|
let u = new fe(i, s, l);
|
|
37232
|
-
return e > -1 ? new Gt(n.pos, e, this.$to.pos, this.$to.end(), u, r) : u.size || n.pos != this.$to.pos ? new
|
|
37232
|
+
return e > -1 ? new Gt(n.pos, e, this.$to.pos, this.$to.end(), u, r) : u.size || n.pos != this.$to.pos ? new Sr(n.pos, o.pos, u) : null;
|
|
37233
37233
|
}
|
|
37234
37234
|
// Find a position on the start spine of `this.unplaced` that has
|
|
37235
37235
|
// content that can be moved somewhere on the frontier. Returns two
|
|
@@ -37395,7 +37395,7 @@ function _W(t, e, r, n) {
|
|
|
37395
37395
|
return t.deleteRange(e, r);
|
|
37396
37396
|
let o = t.doc.resolve(e), i = t.doc.resolve(r);
|
|
37397
37397
|
if (cT(o, i, n))
|
|
37398
|
-
return t.step(new
|
|
37398
|
+
return t.step(new Sr(e, r, n));
|
|
37399
37399
|
let s = pT(o, t.doc.resolve(r));
|
|
37400
37400
|
s[s.length - 1] == 0 && s.pop();
|
|
37401
37401
|
let l = -(o.depth + 1);
|
|
@@ -37973,7 +37973,7 @@ function gO(t) {
|
|
|
37973
37973
|
!mO && !t.parent.inlineContent && (mO = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + t.parent.type.name + ")"));
|
|
37974
37974
|
}
|
|
37975
37975
|
a(gO, "checkTextSelection");
|
|
37976
|
-
const
|
|
37976
|
+
const Ko = class Ko extends Re {
|
|
37977
37977
|
/**
|
|
37978
37978
|
Construct a text selection between the given points.
|
|
37979
37979
|
*/
|
|
@@ -37992,7 +37992,7 @@ const Go = class Go extends Re {
|
|
|
37992
37992
|
if (!n.parent.inlineContent)
|
|
37993
37993
|
return Re.near(n);
|
|
37994
37994
|
let o = e.resolve(r.map(this.anchor));
|
|
37995
|
-
return new
|
|
37995
|
+
return new Ko(o.parent.inlineContent ? o : n, n);
|
|
37996
37996
|
}
|
|
37997
37997
|
replace(e, r = fe.empty) {
|
|
37998
37998
|
if (super.replace(e, r), r == fe.empty) {
|
|
@@ -38001,7 +38001,7 @@ const Go = class Go extends Re {
|
|
|
38001
38001
|
}
|
|
38002
38002
|
}
|
|
38003
38003
|
eq(e) {
|
|
38004
|
-
return e instanceof
|
|
38004
|
+
return e instanceof Ko && e.anchor == this.anchor && e.head == this.head;
|
|
38005
38005
|
}
|
|
38006
38006
|
getBookmark() {
|
|
38007
38007
|
return new Eu(this.anchor, this.head);
|
|
@@ -38015,7 +38015,7 @@ const Go = class Go extends Re {
|
|
|
38015
38015
|
static fromJSON(e, r) {
|
|
38016
38016
|
if (typeof r.anchor != "number" || typeof r.head != "number")
|
|
38017
38017
|
throw new RangeError("Invalid input for TextSelection.fromJSON");
|
|
38018
|
-
return new
|
|
38018
|
+
return new Ko(e.resolve(r.anchor), e.resolve(r.head));
|
|
38019
38019
|
}
|
|
38020
38020
|
/**
|
|
38021
38021
|
Create a text selection from non-resolved positions.
|
|
@@ -38041,11 +38041,11 @@ const Go = class Go extends Re {
|
|
|
38041
38041
|
else
|
|
38042
38042
|
return Re.near(r, n);
|
|
38043
38043
|
}
|
|
38044
|
-
return e.parent.inlineContent || (o == 0 ? e = r : (e = (Re.findFrom(e, -n, !0) || Re.findFrom(e, n, !0)).$anchor, e.pos < r.pos != o < 0 && (e = r))), new
|
|
38044
|
+
return e.parent.inlineContent || (o == 0 ? e = r : (e = (Re.findFrom(e, -n, !0) || Re.findFrom(e, n, !0)).$anchor, e.pos < r.pos != o < 0 && (e = r))), new Ko(e, r);
|
|
38045
38045
|
}
|
|
38046
38046
|
};
|
|
38047
|
-
a(
|
|
38048
|
-
let Fe =
|
|
38047
|
+
a(Ko, "TextSelection");
|
|
38048
|
+
let Fe = Ko;
|
|
38049
38049
|
Re.jsonID("text", Fe);
|
|
38050
38050
|
const Rd = class Rd {
|
|
38051
38051
|
constructor(e, r) {
|
|
@@ -38060,7 +38060,7 @@ const Rd = class Rd {
|
|
|
38060
38060
|
};
|
|
38061
38061
|
a(Rd, "TextBookmark");
|
|
38062
38062
|
let Eu = Rd;
|
|
38063
|
-
const
|
|
38063
|
+
const Yo = class Yo extends Re {
|
|
38064
38064
|
/**
|
|
38065
38065
|
Create a node selection. Does not verify the validity of its
|
|
38066
38066
|
argument.
|
|
@@ -38071,13 +38071,13 @@ const Ko = class Ko extends Re {
|
|
|
38071
38071
|
}
|
|
38072
38072
|
map(e, r) {
|
|
38073
38073
|
let { deleted: n, pos: o } = r.mapResult(this.anchor), i = e.resolve(o);
|
|
38074
|
-
return n ? Re.near(i) : new
|
|
38074
|
+
return n ? Re.near(i) : new Yo(i);
|
|
38075
38075
|
}
|
|
38076
38076
|
content() {
|
|
38077
38077
|
return new fe(ae.from(this.node), 0, 0);
|
|
38078
38078
|
}
|
|
38079
38079
|
eq(e) {
|
|
38080
|
-
return e instanceof
|
|
38080
|
+
return e instanceof Yo && e.anchor == this.anchor;
|
|
38081
38081
|
}
|
|
38082
38082
|
toJSON() {
|
|
38083
38083
|
return { type: "node", anchor: this.anchor };
|
|
@@ -38091,13 +38091,13 @@ const Ko = class Ko extends Re {
|
|
|
38091
38091
|
static fromJSON(e, r) {
|
|
38092
38092
|
if (typeof r.anchor != "number")
|
|
38093
38093
|
throw new RangeError("Invalid input for NodeSelection.fromJSON");
|
|
38094
|
-
return new
|
|
38094
|
+
return new Yo(e.resolve(r.anchor));
|
|
38095
38095
|
}
|
|
38096
38096
|
/**
|
|
38097
38097
|
Create a node selection from non-resolved positions.
|
|
38098
38098
|
*/
|
|
38099
38099
|
static create(e, r) {
|
|
38100
|
-
return new
|
|
38100
|
+
return new Yo(e.resolve(r));
|
|
38101
38101
|
}
|
|
38102
38102
|
/**
|
|
38103
38103
|
Determines whether the given node may be selected as a node
|
|
@@ -38107,8 +38107,8 @@ const Ko = class Ko extends Re {
|
|
|
38107
38107
|
return !e.isText && e.type.spec.selectable !== !1;
|
|
38108
38108
|
}
|
|
38109
38109
|
};
|
|
38110
|
-
a(
|
|
38111
|
-
let ke =
|
|
38110
|
+
a(Yo, "NodeSelection");
|
|
38111
|
+
let ke = Yo;
|
|
38112
38112
|
ke.prototype.visible = !1;
|
|
38113
38113
|
Re.jsonID("node", ke);
|
|
38114
38114
|
const Ad = class Ad {
|
|
@@ -38194,7 +38194,7 @@ function bO(t, e, r) {
|
|
|
38194
38194
|
if (n < e)
|
|
38195
38195
|
return;
|
|
38196
38196
|
let o = t.steps[n];
|
|
38197
|
-
if (!(o instanceof
|
|
38197
|
+
if (!(o instanceof Sr || o instanceof Gt))
|
|
38198
38198
|
return;
|
|
38199
38199
|
let i = t.mapping.maps[n], s;
|
|
38200
38200
|
i.forEach((l, u, d, p) => {
|
|
@@ -38365,9 +38365,9 @@ const uv = class uv {
|
|
|
38365
38365
|
}
|
|
38366
38366
|
};
|
|
38367
38367
|
a(uv, "FieldDesc");
|
|
38368
|
-
let
|
|
38368
|
+
let ti = uv;
|
|
38369
38369
|
const zW = [
|
|
38370
|
-
new
|
|
38370
|
+
new ti("doc", {
|
|
38371
38371
|
init(t) {
|
|
38372
38372
|
return t.doc || t.schema.topNodeType.createAndFill();
|
|
38373
38373
|
},
|
|
@@ -38375,7 +38375,7 @@ const zW = [
|
|
|
38375
38375
|
return t.doc;
|
|
38376
38376
|
}
|
|
38377
38377
|
}),
|
|
38378
|
-
new
|
|
38378
|
+
new ti("selection", {
|
|
38379
38379
|
init(t, e) {
|
|
38380
38380
|
return t.selection || Re.atStart(e.doc);
|
|
38381
38381
|
},
|
|
@@ -38383,7 +38383,7 @@ const zW = [
|
|
|
38383
38383
|
return t.selection;
|
|
38384
38384
|
}
|
|
38385
38385
|
}),
|
|
38386
|
-
new
|
|
38386
|
+
new ti("storedMarks", {
|
|
38387
38387
|
init(t) {
|
|
38388
38388
|
return t.storedMarks || null;
|
|
38389
38389
|
},
|
|
@@ -38391,7 +38391,7 @@ const zW = [
|
|
|
38391
38391
|
return n.selection.$cursor ? t.storedMarks : null;
|
|
38392
38392
|
}
|
|
38393
38393
|
}),
|
|
38394
|
-
new
|
|
38394
|
+
new ti("scrollToSelection", {
|
|
38395
38395
|
init() {
|
|
38396
38396
|
return 0;
|
|
38397
38397
|
},
|
|
@@ -38404,13 +38404,13 @@ const zW = [
|
|
|
38404
38404
|
this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = zW.slice(), r && r.forEach((n) => {
|
|
38405
38405
|
if (this.pluginsByKey[n.key])
|
|
38406
38406
|
throw new RangeError("Adding different instances of a keyed plugin (" + n.key + ")");
|
|
38407
|
-
this.plugins.push(n), this.pluginsByKey[n.key] = n, n.spec.state && this.fields.push(new
|
|
38407
|
+
this.plugins.push(n), this.pluginsByKey[n.key] = n, n.spec.state && this.fields.push(new ti(n.key, n.spec.state, n));
|
|
38408
38408
|
});
|
|
38409
38409
|
}
|
|
38410
38410
|
};
|
|
38411
38411
|
a(dv, "Configuration");
|
|
38412
38412
|
let Bs = dv;
|
|
38413
|
-
const
|
|
38413
|
+
const Jo = class Jo {
|
|
38414
38414
|
/**
|
|
38415
38415
|
@internal
|
|
38416
38416
|
*/
|
|
@@ -38485,7 +38485,7 @@ const Yo = class Yo {
|
|
|
38485
38485
|
applyInner(e) {
|
|
38486
38486
|
if (!e.before.eq(this.doc))
|
|
38487
38487
|
throw new RangeError("Applying a mismatched transaction");
|
|
38488
|
-
let r = new
|
|
38488
|
+
let r = new Jo(this.config), n = this.config.fields;
|
|
38489
38489
|
for (let o = 0; o < n.length; o++) {
|
|
38490
38490
|
let i = n[o];
|
|
38491
38491
|
r[i.name] = i.apply(e, this[i.name], this, r);
|
|
@@ -38502,7 +38502,7 @@ const Yo = class Yo {
|
|
|
38502
38502
|
Create a new state.
|
|
38503
38503
|
*/
|
|
38504
38504
|
static create(e) {
|
|
38505
|
-
let r = new Bs(e.doc ? e.doc.type.schema : e.schema, e.plugins), n = new
|
|
38505
|
+
let r = new Bs(e.doc ? e.doc.type.schema : e.schema, e.plugins), n = new Jo(r);
|
|
38506
38506
|
for (let o = 0; o < r.fields.length; o++)
|
|
38507
38507
|
n[r.fields[o].name] = r.fields[o].init(e, n);
|
|
38508
38508
|
return n;
|
|
@@ -38516,7 +38516,7 @@ const Yo = class Yo {
|
|
|
38516
38516
|
configuration object..
|
|
38517
38517
|
*/
|
|
38518
38518
|
reconfigure(e) {
|
|
38519
|
-
let r = new Bs(this.schema, e.plugins), n = r.fields, o = new
|
|
38519
|
+
let r = new Bs(this.schema, e.plugins), n = r.fields, o = new Jo(r);
|
|
38520
38520
|
for (let i = 0; i < n.length; i++) {
|
|
38521
38521
|
let s = n[i].name;
|
|
38522
38522
|
o[s] = this.hasOwnProperty(s) ? this[s] : n[i].init(e, o);
|
|
@@ -38553,10 +38553,10 @@ const Yo = class Yo {
|
|
|
38553
38553
|
throw new RangeError("Invalid input for EditorState.fromJSON");
|
|
38554
38554
|
if (!e.schema)
|
|
38555
38555
|
throw new RangeError("Required config field 'schema' missing");
|
|
38556
|
-
let o = new Bs(e.schema, e.plugins), i = new
|
|
38556
|
+
let o = new Bs(e.schema, e.plugins), i = new Jo(o);
|
|
38557
38557
|
return o.fields.forEach((s) => {
|
|
38558
38558
|
if (s.name == "doc")
|
|
38559
|
-
i.doc =
|
|
38559
|
+
i.doc = di.fromJSON(e.schema, r.doc);
|
|
38560
38560
|
else if (s.name == "selection")
|
|
38561
38561
|
i.selection = Re.fromJSON(i.doc, r.selection);
|
|
38562
38562
|
else if (s.name == "storedMarks")
|
|
@@ -38575,8 +38575,8 @@ const Yo = class Yo {
|
|
|
38575
38575
|
}), i;
|
|
38576
38576
|
}
|
|
38577
38577
|
};
|
|
38578
|
-
a(
|
|
38579
|
-
let jh =
|
|
38578
|
+
a(Jo, "EditorState");
|
|
38579
|
+
let jh = Jo;
|
|
38580
38580
|
function fT(t, e, r) {
|
|
38581
38581
|
for (let n in t) {
|
|
38582
38582
|
let o = t[n];
|
|
@@ -38643,7 +38643,7 @@ const Fn = /* @__PURE__ */ a(function(t, e, r) {
|
|
|
38643
38643
|
return n.setEnd(t, r ?? t.nodeValue.length), n.setStart(t, e || 0), n;
|
|
38644
38644
|
}, "textRange"), HW = /* @__PURE__ */ a(function() {
|
|
38645
38645
|
zh = null;
|
|
38646
|
-
}, "clearReusedRange"),
|
|
38646
|
+
}, "clearReusedRange"), Fi = /* @__PURE__ */ a(function(t, e, r, n) {
|
|
38647
38647
|
return r && (OO(t, e, r, n, -1) || OO(t, e, r, n, 1));
|
|
38648
38648
|
}, "isEquivalentPosition"), WW = /^(img|br|input|textarea|hr)$/i;
|
|
38649
38649
|
function OO(t, e, r, n, o) {
|
|
@@ -38717,13 +38717,13 @@ function oc(t) {
|
|
|
38717
38717
|
}
|
|
38718
38718
|
a(oc, "hasBlockDesc");
|
|
38719
38719
|
const Rp = /* @__PURE__ */ a(function(t) {
|
|
38720
|
-
return t.focusNode &&
|
|
38720
|
+
return t.focusNode && Fi(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
|
|
38721
38721
|
}, "selectionCollapsed");
|
|
38722
|
-
function
|
|
38722
|
+
function zo(t, e) {
|
|
38723
38723
|
let r = document.createEvent("Event");
|
|
38724
38724
|
return r.initEvent("keydown", !0, !0), r.keyCode = t, r.key = r.code = e, r;
|
|
38725
38725
|
}
|
|
38726
|
-
a(
|
|
38726
|
+
a(zo, "keyEvent");
|
|
38727
38727
|
function KW(t) {
|
|
38728
38728
|
let e = t.activeElement;
|
|
38729
38729
|
for (; e && e.shadowRoot; )
|
|
@@ -38746,9 +38746,9 @@ function YW(t, e, r) {
|
|
|
38746
38746
|
}
|
|
38747
38747
|
}
|
|
38748
38748
|
a(YW, "caretFromPoint");
|
|
38749
|
-
const On = typeof navigator < "u" ? navigator : null, SO = typeof document < "u" ? document : null,
|
|
38750
|
-
Xr && +(/Firefox\/(\d+)/.exec(
|
|
38751
|
-
const Uh = !or && /Chrome\/(\d+)/.exec(
|
|
38749
|
+
const On = typeof navigator < "u" ? navigator : null, SO = typeof document < "u" ? document : null, Po = On && On.userAgent || "", Hh = /Edge\/(\d+)/.exec(Po), mT = /MSIE \d/.exec(Po), Wh = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Po), or = !!(mT || Wh || Hh), mo = mT ? document.documentMode : Wh ? +Wh[1] : Hh ? +Hh[1] : 0, Xr = !or && /gecko\/(\d+)/i.test(Po);
|
|
38750
|
+
Xr && +(/Firefox\/(\d+)/.exec(Po) || [0, 0])[1];
|
|
38751
|
+
const Uh = !or && /Chrome\/(\d+)/.exec(Po), qt = !!Uh, gT = Uh ? +Uh[1] : 0, Xt = !or && !!On && /Apple Computer/.test(On.vendor), Ha = Xt && (/Mobile\/\w+/.test(Po) || !!On && On.maxTouchPoints > 2), Ar = Ha || (On ? /Mac/.test(On.platform) : !1), JW = On ? /Win/.test(On.platform) : !1, Kr = /Android \d/.test(Po), ic = !!SO && "webkitFontSmoothing" in SO.documentElement.style, QW = ic ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
38752
38752
|
function XW(t) {
|
|
38753
38753
|
let e = t.defaultView && t.defaultView.visualViewport;
|
|
38754
38754
|
return e ? {
|
|
@@ -39106,7 +39106,7 @@ function p9(t, e, r) {
|
|
|
39106
39106
|
return EO == e && TO == r ? wO : (EO = e, TO = r, wO = r == "up" || r == "down" ? c9(t, e, r) : d9(t, e, r));
|
|
39107
39107
|
}
|
|
39108
39108
|
a(p9, "endOfTextblock");
|
|
39109
|
-
const Br = 0, MO = 1,
|
|
39109
|
+
const Br = 0, MO = 1, ri = 2, Sn = 3, hv = class hv {
|
|
39110
39110
|
constructor(e, r, n, o) {
|
|
39111
39111
|
this.parent = e, this.children = r, this.dom = n, this.contentDOM = o, this.dirty = Br, n.pmViewDesc = this;
|
|
39112
39112
|
}
|
|
@@ -39382,7 +39382,7 @@ const Br = 0, MO = 1, ti = 2, Sn = 3, hv = class hv {
|
|
|
39382
39382
|
let h = d.focusNode.childNodes[d.focusOffset];
|
|
39383
39383
|
h && h.contentEditable == "false" && (o = !0);
|
|
39384
39384
|
}
|
|
39385
|
-
if (!(o || p && Xt) &&
|
|
39385
|
+
if (!(o || p && Xt) && Fi(l.node, l.offset, d.anchorNode, d.anchorOffset) && Fi(u.node, u.offset, d.focusNode, d.focusOffset))
|
|
39386
39386
|
return;
|
|
39387
39387
|
let f = !1;
|
|
39388
39388
|
if ((d.extend || e == r) && !p) {
|
|
@@ -39415,19 +39415,19 @@ const Br = 0, MO = 1, ti = 2, Sn = 3, hv = class hv {
|
|
|
39415
39415
|
if (n == s ? e <= s && r >= n : e < s && r > n) {
|
|
39416
39416
|
let l = n + i.border, u = s - i.border;
|
|
39417
39417
|
if (e >= l && r <= u) {
|
|
39418
|
-
this.dirty = e == n || r == s ?
|
|
39418
|
+
this.dirty = e == n || r == s ? ri : MO, e == l && r == u && (i.contentLost || i.dom.parentNode != this.contentDOM) ? i.dirty = Sn : i.markDirty(e - l, r - l);
|
|
39419
39419
|
return;
|
|
39420
39420
|
} else
|
|
39421
|
-
i.dirty = i.dom == i.contentDOM && i.dom.parentNode == this.contentDOM && !i.children.length ?
|
|
39421
|
+
i.dirty = i.dom == i.contentDOM && i.dom.parentNode == this.contentDOM && !i.children.length ? ri : Sn;
|
|
39422
39422
|
}
|
|
39423
39423
|
n = s;
|
|
39424
39424
|
}
|
|
39425
|
-
this.dirty =
|
|
39425
|
+
this.dirty = ri;
|
|
39426
39426
|
}
|
|
39427
39427
|
markParentsDirty() {
|
|
39428
39428
|
let e = 1;
|
|
39429
39429
|
for (let r = this.parent; r; r = r.parent, e++) {
|
|
39430
|
-
let n = e == 1 ?
|
|
39430
|
+
let n = e == 1 ? ri : MO;
|
|
39431
39431
|
r.dirty < n && (r.dirty = n);
|
|
39432
39432
|
}
|
|
39433
39433
|
}
|
|
@@ -39442,8 +39442,8 @@ const Br = 0, MO = 1, ti = 2, Sn = 3, hv = class hv {
|
|
|
39442
39442
|
}
|
|
39443
39443
|
};
|
|
39444
39444
|
a(hv, "ViewDesc");
|
|
39445
|
-
let
|
|
39446
|
-
const mv = class mv extends
|
|
39445
|
+
let Ii = hv;
|
|
39446
|
+
const mv = class mv extends Ii {
|
|
39447
39447
|
constructor(e, r, n, o) {
|
|
39448
39448
|
let i, s = r.type.toDOM;
|
|
39449
39449
|
if (typeof s == "function" && (s = s(n, () => {
|
|
@@ -39485,7 +39485,7 @@ const mv = class mv extends Fi {
|
|
|
39485
39485
|
};
|
|
39486
39486
|
a(mv, "WidgetViewDesc");
|
|
39487
39487
|
let Tu = mv;
|
|
39488
|
-
const gv = class gv extends
|
|
39488
|
+
const gv = class gv extends Ii {
|
|
39489
39489
|
constructor(e, r, n, o) {
|
|
39490
39490
|
super(e, [], r, null), this.textDOM = n, this.text = o;
|
|
39491
39491
|
}
|
|
@@ -39504,13 +39504,13 @@ const gv = class gv extends Fi {
|
|
|
39504
39504
|
};
|
|
39505
39505
|
a(gv, "CompositionViewDesc");
|
|
39506
39506
|
let qh = gv;
|
|
39507
|
-
const Qs = class Qs extends
|
|
39507
|
+
const Qs = class Qs extends Ii {
|
|
39508
39508
|
constructor(e, r, n, o) {
|
|
39509
39509
|
super(e, [], n, o), this.mark = r;
|
|
39510
39510
|
}
|
|
39511
39511
|
static create(e, r, n, o) {
|
|
39512
39512
|
let i = o.nodeViews[r.type.name], s = i && i(r, o, n);
|
|
39513
|
-
return (!s || !s.dom) && (s =
|
|
39513
|
+
return (!s || !s.dom) && (s = Ri.renderSpec(document, r.type.spec.toDOM(r, n), null, r.attrs)), new Qs(e, r, s.dom, s.contentDOM || s.dom);
|
|
39514
39514
|
}
|
|
39515
39515
|
parseRule() {
|
|
39516
39516
|
return this.dirty & Sn || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
|
|
@@ -39536,7 +39536,7 @@ const Qs = class Qs extends Fi {
|
|
|
39536
39536
|
};
|
|
39537
39537
|
a(Qs, "MarkViewDesc");
|
|
39538
39538
|
let Wa = Qs;
|
|
39539
|
-
const Fd = class Fd extends
|
|
39539
|
+
const Fd = class Fd extends Ii {
|
|
39540
39540
|
constructor(e, r, n, o, i, s, l, u, d) {
|
|
39541
39541
|
super(e, [], i, s), this.node = r, this.outerDeco = n, this.innerDeco = o, this.nodeDOM = l;
|
|
39542
39542
|
}
|
|
@@ -39561,7 +39561,7 @@ const Fd = class Fd extends Fi {
|
|
|
39561
39561
|
p = document.createTextNode(r.text);
|
|
39562
39562
|
else if (p.nodeType != 3)
|
|
39563
39563
|
throw new RangeError("Text must be rendered as a DOM text node");
|
|
39564
|
-
} else p || ({ dom: p, contentDOM: f } =
|
|
39564
|
+
} else p || ({ dom: p, contentDOM: f } = Ri.renderSpec(document, r.type.spec.toDOM(r), null, r.attrs));
|
|
39565
39565
|
!f && !r.isText && p.nodeName != "BR" && (p.hasAttribute("contenteditable") || (p.contentEditable = "false"), r.type.spec.draggable && (p.draggable = !0));
|
|
39566
39566
|
let h = p;
|
|
39567
39567
|
return p = ET(p, n, r), d ? u = new Gh(e, r, n, o, p, f || null, h, d, i, s + 1) : r.isText ? new wu(e, r, n, o, p, h, i) : new Fd(e, r, n, o, p, f || null, h, i, s + 1);
|
|
@@ -39607,7 +39607,7 @@ const Fd = class Fd extends Fi {
|
|
|
39607
39607
|
u.syncToMarks(d.marks, n, e);
|
|
39608
39608
|
let m;
|
|
39609
39609
|
u.findNodeMatch(d, p, f, h) || l && e.state.selection.from > o && e.state.selection.to < o + d.nodeSize && (m = u.findIndexWithChild(i.node)) > -1 && u.updateNodeAt(d, p, f, m, e) || u.updateNextNode(d, p, f, e, h, o) || u.addNode(d, p, f, e, o), o += d.nodeSize;
|
|
39610
|
-
}), u.syncToMarks([], n, e), this.node.isTextblock && u.addTextblockHacks(), u.destroyRest(), (u.changed || this.dirty ==
|
|
39610
|
+
}), u.syncToMarks([], n, e), this.node.isTextblock && u.addTextblockHacks(), u.destroyRest(), (u.changed || this.dirty == ri) && (s && this.protectLocalComposition(e, s), CT(this.contentDOM, this.children, e), Ha && b9(this.dom));
|
|
39611
39611
|
}
|
|
39612
39612
|
localCompositionInfo(e, r) {
|
|
39613
39613
|
let { from: n, to: o } = e.state.selection;
|
|
@@ -39715,7 +39715,7 @@ const Id = class Id extends go {
|
|
|
39715
39715
|
};
|
|
39716
39716
|
a(Id, "TextViewDesc");
|
|
39717
39717
|
let wu = Id;
|
|
39718
|
-
const bv = class bv extends
|
|
39718
|
+
const bv = class bv extends Ii {
|
|
39719
39719
|
parseRule() {
|
|
39720
39720
|
return { ignore: !0 };
|
|
39721
39721
|
}
|
|
@@ -39791,11 +39791,11 @@ const Vs = /* @__PURE__ */ a(function(t) {
|
|
|
39791
39791
|
t && (this.nodeName = t);
|
|
39792
39792
|
}, "OuterDecoLevel");
|
|
39793
39793
|
Vs.prototype = /* @__PURE__ */ Object.create(null);
|
|
39794
|
-
const
|
|
39794
|
+
const ni = [new Vs()];
|
|
39795
39795
|
function Kh(t, e, r) {
|
|
39796
39796
|
if (t.length == 0)
|
|
39797
|
-
return
|
|
39798
|
-
let n = r ?
|
|
39797
|
+
return ni;
|
|
39798
|
+
let n = r ? ni[0] : new Vs(), o = [n];
|
|
39799
39799
|
for (let i = 0; i < t.length; i++) {
|
|
39800
39800
|
let s = t[i].type.attrs;
|
|
39801
39801
|
if (s) {
|
|
@@ -39810,16 +39810,16 @@ function Kh(t, e, r) {
|
|
|
39810
39810
|
}
|
|
39811
39811
|
a(Kh, "computeOuterDeco");
|
|
39812
39812
|
function kT(t, e, r, n) {
|
|
39813
|
-
if (r ==
|
|
39813
|
+
if (r == ni && n == ni)
|
|
39814
39814
|
return e;
|
|
39815
39815
|
let o = e;
|
|
39816
39816
|
for (let i = 0; i < n.length; i++) {
|
|
39817
39817
|
let s = n[i], l = r[i];
|
|
39818
39818
|
if (i) {
|
|
39819
39819
|
let u;
|
|
39820
|
-
l && l.nodeName == s.nodeName && o != t && (u = o.parentNode) && u.nodeName.toLowerCase() == s.nodeName || (u = document.createElement(s.nodeName), u.pmIsDeco = !0, u.appendChild(o), l =
|
|
39820
|
+
l && l.nodeName == s.nodeName && o != t && (u = o.parentNode) && u.nodeName.toLowerCase() == s.nodeName || (u = document.createElement(s.nodeName), u.pmIsDeco = !0, u.appendChild(o), l = ni[0]), o = u;
|
|
39821
39821
|
}
|
|
39822
|
-
f9(o, l ||
|
|
39822
|
+
f9(o, l || ni[0], s);
|
|
39823
39823
|
}
|
|
39824
39824
|
return o;
|
|
39825
39825
|
}
|
|
@@ -39848,7 +39848,7 @@ function f9(t, e, r) {
|
|
|
39848
39848
|
}
|
|
39849
39849
|
a(f9, "patchAttributes");
|
|
39850
39850
|
function ET(t, e, r) {
|
|
39851
|
-
return kT(t, t,
|
|
39851
|
+
return kT(t, t, ni, Kh(e, r, t.nodeType != 1));
|
|
39852
39852
|
}
|
|
39853
39853
|
a(ET, "applyOuterDeco");
|
|
39854
39854
|
function Pu(t, e) {
|
|
@@ -39927,7 +39927,7 @@ const vv = class vv {
|
|
|
39927
39927
|
}
|
|
39928
39928
|
updateNodeAt(e, r, n, o, i) {
|
|
39929
39929
|
let s = this.top.children[o];
|
|
39930
|
-
return s.dirty == Sn && s.dom == s.contentDOM && (s.dirty =
|
|
39930
|
+
return s.dirty == Sn && s.dom == s.contentDOM && (s.dirty = ri), s.update(e, r, n, i) ? (this.destroyBetween(this.index, o), this.index++, !0) : !1;
|
|
39931
39931
|
}
|
|
39932
39932
|
findIndexWithChild(e) {
|
|
39933
39933
|
for (; ; ) {
|
|
@@ -39959,7 +39959,7 @@ const vv = class vv {
|
|
|
39959
39959
|
if (!h && u.update(e, r, n, o))
|
|
39960
39960
|
return this.destroyBetween(this.index, l), u.dom != p && (this.changed = !0), this.index++, !0;
|
|
39961
39961
|
if (!h && (f = this.recreateWrapper(u, e, r, n, o, s)))
|
|
39962
|
-
return this.destroyBetween(this.index, l), this.top.children[this.index] = f, f.contentDOM && (f.dirty =
|
|
39962
|
+
return this.destroyBetween(this.index, l), this.top.children[this.index] = f, f.contentDOM && (f.dirty = ri, f.updateChildren(o, s + 1), f.dirty = Br), this.changed = !0, this.index++, !0;
|
|
39963
39963
|
break;
|
|
39964
39964
|
}
|
|
39965
39965
|
}
|
|
@@ -40187,7 +40187,7 @@ function Bn(t, e = !1) {
|
|
|
40187
40187
|
if (wT(t, r), !!TT(t)) {
|
|
40188
40188
|
if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && qt) {
|
|
40189
40189
|
let n = t.domSelectionRange(), o = t.domObserver.currentSelection;
|
|
40190
|
-
if (n.anchorNode && o.anchorNode &&
|
|
40190
|
+
if (n.anchorNode && o.anchorNode && Fi(n.anchorNode, n.anchorOffset, o.anchorNode, o.anchorOffset)) {
|
|
40191
40191
|
t.input.mouseDown.delayedSelectionSync = !0, t.domObserver.setCurSelection();
|
|
40192
40192
|
return;
|
|
40193
40193
|
}
|
|
@@ -40275,7 +40275,7 @@ function MT(t) {
|
|
|
40275
40275
|
a(MT, "hasSelection");
|
|
40276
40276
|
function O9(t) {
|
|
40277
40277
|
let e = t.docView.domFromPos(t.state.selection.anchor, 0), r = t.domSelectionRange();
|
|
40278
|
-
return
|
|
40278
|
+
return Fi(e.node, e.offset, r.anchorNode, r.anchorOffset);
|
|
40279
40279
|
}
|
|
40280
40280
|
a(O9, "anchorInRightPlace");
|
|
40281
40281
|
function Qh(t, e) {
|
|
@@ -40559,7 +40559,7 @@ function RT(t, e) {
|
|
|
40559
40559
|
let m = n.firstChild;
|
|
40560
40560
|
r.push(m.type.name, m.attrs != m.type.defaultAttrs ? m.attrs : null), n = m.content;
|
|
40561
40561
|
}
|
|
40562
|
-
let s = t.someProp("clipboardSerializer") ||
|
|
40562
|
+
let s = t.someProp("clipboardSerializer") || Ri.fromSchema(t.state.schema), l = NT(), u = l.createElement("div");
|
|
40563
40563
|
u.appendChild(s.serializeFragment(n, { document: l }));
|
|
40564
40564
|
let d = u.firstChild, p, f = 0;
|
|
40565
40565
|
for (; d && d.nodeType == 1 && (p = LT[d.nodeName.toLowerCase()]); ) {
|
|
@@ -40593,7 +40593,7 @@ function AT(t, e, r, n, o) {
|
|
|
40593
40593
|
if (f)
|
|
40594
40594
|
l = f;
|
|
40595
40595
|
else {
|
|
40596
|
-
let h = o.marks(), { schema: m } = t.state, g =
|
|
40596
|
+
let h = o.marks(), { schema: m } = t.state, g = Ri.fromSchema(m);
|
|
40597
40597
|
s = document.createElement("div"), e.split(/(?:\r\n?|\n)+/).forEach((b) => {
|
|
40598
40598
|
let v = s.appendChild(document.createElement("p"));
|
|
40599
40599
|
b && v.appendChild(g.serializeNode(m.text(b, h)));
|
|
@@ -40613,7 +40613,7 @@ function AT(t, e, r, n, o) {
|
|
|
40613
40613
|
break;
|
|
40614
40614
|
s = h;
|
|
40615
40615
|
}
|
|
40616
|
-
if (l || (l = (t.someProp("clipboardParser") || t.someProp("domParser") ||
|
|
40616
|
+
if (l || (l = (t.someProp("clipboardParser") || t.someProp("domParser") || pi.fromSchema(t.state.schema)).parseSlice(s, {
|
|
40617
40617
|
preserveWhitespace: !!(u || p),
|
|
40618
40618
|
context: o,
|
|
40619
40619
|
ruleFromNode(h) {
|
|
@@ -40812,7 +40812,7 @@ er.keydown = (t, e) => {
|
|
|
40812
40812
|
if (r.keyCode != 229 && t.domObserver.forceFlush(), Ha && r.keyCode == 13 && !r.ctrlKey && !r.altKey && !r.metaKey) {
|
|
40813
40813
|
let n = Date.now();
|
|
40814
40814
|
t.input.lastIOSEnter = n, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
40815
|
-
t.input.lastIOSEnter == n && (t.someProp("handleKeyDown", (o) => o(t,
|
|
40815
|
+
t.input.lastIOSEnter == n && (t.someProp("handleKeyDown", (o) => o(t, zo(13, "Enter"))), t.input.lastIOSEnter = 0);
|
|
40816
40816
|
}, 200);
|
|
40817
40817
|
} else t.someProp("handleKeyDown", (n) => n(t, r)) || M9(t, r) ? r.preventDefault() : fo(t, "key");
|
|
40818
40818
|
};
|
|
@@ -41199,7 +41199,7 @@ Zt.beforeinput = (t, e) => {
|
|
|
41199
41199
|
t.domObserver.flushSoon();
|
|
41200
41200
|
let { domChangeCount: n } = t.input;
|
|
41201
41201
|
setTimeout(() => {
|
|
41202
|
-
if (t.input.domChangeCount != n || (t.dom.blur(), t.focus(), t.someProp("handleKeyDown", (i) => i(t,
|
|
41202
|
+
if (t.input.domChangeCount != n || (t.dom.blur(), t.focus(), t.someProp("handleKeyDown", (i) => i(t, zo(8, "Backspace")))))
|
|
41203
41203
|
return;
|
|
41204
41204
|
let { $cursor: o } = t.state.selection;
|
|
41205
41205
|
o && o.pos > 0 && t.dispatch(t.state.tr.delete(o.pos - 1, o.pos).scrollIntoView());
|
|
@@ -41222,7 +41222,7 @@ function wl(t, e) {
|
|
|
41222
41222
|
a(wl, "compareObjs");
|
|
41223
41223
|
const $d = class $d {
|
|
41224
41224
|
constructor(e, r) {
|
|
41225
|
-
this.toDOM = e, this.spec = r ||
|
|
41225
|
+
this.toDOM = e, this.spec = r || hi, this.side = this.spec.side || 0;
|
|
41226
41226
|
}
|
|
41227
41227
|
map(e, r, n, o) {
|
|
41228
41228
|
let { pos: i, deleted: s } = e.mapResult(r.from + o, this.side < 0 ? -1 : 1);
|
|
@@ -41242,7 +41242,7 @@ a($d, "WidgetType");
|
|
|
41242
41242
|
let Iu = $d;
|
|
41243
41243
|
const Xs = class Xs {
|
|
41244
41244
|
constructor(e, r) {
|
|
41245
|
-
this.attrs = e, this.spec = r ||
|
|
41245
|
+
this.attrs = e, this.spec = r || hi;
|
|
41246
41246
|
}
|
|
41247
41247
|
map(e, r, n, o) {
|
|
41248
41248
|
let i = e.map(r.from + o, this.spec.inclusiveStart ? -1 : 1) - n, s = e.map(r.to + o, this.spec.inclusiveEnd ? 1 : -1) - n;
|
|
@@ -41261,10 +41261,10 @@ const Xs = class Xs {
|
|
|
41261
41261
|
}
|
|
41262
41262
|
};
|
|
41263
41263
|
a(Xs, "InlineType");
|
|
41264
|
-
let
|
|
41264
|
+
let fi = Xs;
|
|
41265
41265
|
const Ld = class Ld {
|
|
41266
41266
|
constructor(e, r) {
|
|
41267
|
-
this.attrs = e, this.spec = r ||
|
|
41267
|
+
this.attrs = e, this.spec = r || hi;
|
|
41268
41268
|
}
|
|
41269
41269
|
map(e, r, n, o) {
|
|
41270
41270
|
let i = e.mapResult(r.from + o, 1);
|
|
@@ -41285,7 +41285,7 @@ const Ld = class Ld {
|
|
|
41285
41285
|
};
|
|
41286
41286
|
a(Ld, "NodeType");
|
|
41287
41287
|
let nm = Ld;
|
|
41288
|
-
const
|
|
41288
|
+
const Qo = class Qo {
|
|
41289
41289
|
/**
|
|
41290
41290
|
@internal
|
|
41291
41291
|
*/
|
|
@@ -41296,7 +41296,7 @@ const Jo = class Jo {
|
|
|
41296
41296
|
@internal
|
|
41297
41297
|
*/
|
|
41298
41298
|
copy(e, r) {
|
|
41299
|
-
return new
|
|
41299
|
+
return new Qo(e, r, this.type);
|
|
41300
41300
|
}
|
|
41301
41301
|
/**
|
|
41302
41302
|
@internal
|
|
@@ -41319,14 +41319,14 @@ const Jo = class Jo {
|
|
|
41319
41319
|
widget's current document position.
|
|
41320
41320
|
*/
|
|
41321
41321
|
static widget(e, r, n) {
|
|
41322
|
-
return new
|
|
41322
|
+
return new Qo(e, e, new Iu(r, n));
|
|
41323
41323
|
}
|
|
41324
41324
|
/**
|
|
41325
41325
|
Creates an inline decoration, which adds the given attributes to
|
|
41326
41326
|
each inline node between `from` and `to`.
|
|
41327
41327
|
*/
|
|
41328
41328
|
static inline(e, r, n, o) {
|
|
41329
|
-
return new
|
|
41329
|
+
return new Qo(e, r, new fi(n, o));
|
|
41330
41330
|
}
|
|
41331
41331
|
/**
|
|
41332
41332
|
Creates a node decoration. `from` and `to` should point precisely
|
|
@@ -41334,7 +41334,7 @@ const Jo = class Jo {
|
|
|
41334
41334
|
node, will receive the given attributes.
|
|
41335
41335
|
*/
|
|
41336
41336
|
static node(e, r, n, o) {
|
|
41337
|
-
return new
|
|
41337
|
+
return new Qo(e, r, new nm(n, o));
|
|
41338
41338
|
}
|
|
41339
41339
|
/**
|
|
41340
41340
|
The spec provided when creating this decoration. Can be useful
|
|
@@ -41347,7 +41347,7 @@ const Jo = class Jo {
|
|
|
41347
41347
|
@internal
|
|
41348
41348
|
*/
|
|
41349
41349
|
get inline() {
|
|
41350
|
-
return this.type instanceof
|
|
41350
|
+
return this.type instanceof fi;
|
|
41351
41351
|
}
|
|
41352
41352
|
/**
|
|
41353
41353
|
@internal
|
|
@@ -41356,9 +41356,9 @@ const Jo = class Jo {
|
|
|
41356
41356
|
return this.type instanceof Iu;
|
|
41357
41357
|
}
|
|
41358
41358
|
};
|
|
41359
|
-
a(
|
|
41360
|
-
let Hn =
|
|
41361
|
-
const ta = [],
|
|
41359
|
+
a(Qo, "Decoration");
|
|
41360
|
+
let Hn = Qo;
|
|
41361
|
+
const ta = [], hi = {}, cn = class cn {
|
|
41362
41362
|
/**
|
|
41363
41363
|
@internal
|
|
41364
41364
|
*/
|
|
@@ -41371,7 +41371,7 @@ const ta = [], fi = {}, cn = class cn {
|
|
|
41371
41371
|
you must make a copy if you want need to preserve that.
|
|
41372
41372
|
*/
|
|
41373
41373
|
static create(e, r) {
|
|
41374
|
-
return r.length ? Lu(r, e, 0,
|
|
41374
|
+
return r.length ? Lu(r, e, 0, hi) : Ut;
|
|
41375
41375
|
}
|
|
41376
41376
|
/**
|
|
41377
41377
|
Find all decorations in this set which touch the given range
|
|
@@ -41401,7 +41401,7 @@ const ta = [], fi = {}, cn = class cn {
|
|
|
41401
41401
|
document.
|
|
41402
41402
|
*/
|
|
41403
41403
|
map(e, r, n) {
|
|
41404
|
-
return this == Ut || e.maps.length == 0 ? this : this.mapInner(e, r, 0, 0, n ||
|
|
41404
|
+
return this == Ut || e.maps.length == 0 ? this : this.mapInner(e, r, 0, 0, n || hi);
|
|
41405
41405
|
}
|
|
41406
41406
|
/**
|
|
41407
41407
|
@internal
|
|
@@ -41412,7 +41412,7 @@ const ta = [], fi = {}, cn = class cn {
|
|
|
41412
41412
|
let u = this.local[l].map(e, n, o);
|
|
41413
41413
|
u && u.type.valid(r, u) ? (s || (s = [])).push(u) : i.onRemove && i.onRemove(this.local[l].spec);
|
|
41414
41414
|
}
|
|
41415
|
-
return this.children.length ? Z9(this.children, s || [], e, r, n, o, i) : s ? new cn(s.sort(
|
|
41415
|
+
return this.children.length ? Z9(this.children, s || [], e, r, n, o, i) : s ? new cn(s.sort(mi), ta) : Ut;
|
|
41416
41416
|
}
|
|
41417
41417
|
/**
|
|
41418
41418
|
Add the given array of decorations to the ones in the set,
|
|
@@ -41430,13 +41430,13 @@ const ta = [], fi = {}, cn = class cn {
|
|
|
41430
41430
|
if (p = WT(r, l, d)) {
|
|
41431
41431
|
for (o || (o = this.children.slice()); i < o.length && o[i] < u; )
|
|
41432
41432
|
i += 3;
|
|
41433
|
-
o[i] == u ? o[i + 2] = o[i + 2].addInner(l, p, d + 1) : o.splice(i, 0, u, u + l.nodeSize, Lu(p, l, d + 1,
|
|
41433
|
+
o[i] == u ? o[i + 2] = o[i + 2].addInner(l, p, d + 1) : o.splice(i, 0, u, u + l.nodeSize, Lu(p, l, d + 1, hi)), i += 3;
|
|
41434
41434
|
}
|
|
41435
41435
|
});
|
|
41436
41436
|
let s = HT(i ? UT(r) : r, -n);
|
|
41437
41437
|
for (let l = 0; l < s.length; l++)
|
|
41438
41438
|
s[l].type.valid(e, s[l]) || s.splice(l--, 1);
|
|
41439
|
-
return new cn(s.length ? this.local.concat(s).sort(
|
|
41439
|
+
return new cn(s.length ? this.local.concat(s).sort(mi) : this.local, o || this.children);
|
|
41440
41440
|
}
|
|
41441
41441
|
/**
|
|
41442
41442
|
Create a new set that contains the decorations in this set, minus
|
|
@@ -41479,13 +41479,13 @@ const ta = [], fi = {}, cn = class cn {
|
|
|
41479
41479
|
let i = e + 1, s = i + r.content.size;
|
|
41480
41480
|
for (let l = 0; l < this.local.length; l++) {
|
|
41481
41481
|
let u = this.local[l];
|
|
41482
|
-
if (u.from < s && u.to > i && u.type instanceof
|
|
41482
|
+
if (u.from < s && u.to > i && u.type instanceof fi) {
|
|
41483
41483
|
let d = Math.max(i, u.from) - i, p = Math.min(s, u.to) - i;
|
|
41484
41484
|
d < p && (o || (o = [])).push(u.copy(d, p));
|
|
41485
41485
|
}
|
|
41486
41486
|
}
|
|
41487
41487
|
if (o) {
|
|
41488
|
-
let l = new cn(o.sort(
|
|
41488
|
+
let l = new cn(o.sort(mi), ta);
|
|
41489
41489
|
return n ? new $u([l, n]) : l;
|
|
41490
41490
|
}
|
|
41491
41491
|
return n || Ut;
|
|
@@ -41518,11 +41518,11 @@ const ta = [], fi = {}, cn = class cn {
|
|
|
41518
41518
|
localsInner(e) {
|
|
41519
41519
|
if (this == Ut)
|
|
41520
41520
|
return ta;
|
|
41521
|
-
if (e.inlineContent || !this.local.some(
|
|
41521
|
+
if (e.inlineContent || !this.local.some(fi.is))
|
|
41522
41522
|
return this.local;
|
|
41523
41523
|
let r = [];
|
|
41524
41524
|
for (let n = 0; n < this.local.length; n++)
|
|
41525
|
-
this.local[n].type instanceof
|
|
41525
|
+
this.local[n].type instanceof fi || r.push(this.local[n]);
|
|
41526
41526
|
return r;
|
|
41527
41527
|
}
|
|
41528
41528
|
forEachSet(e) {
|
|
@@ -41530,20 +41530,20 @@ const ta = [], fi = {}, cn = class cn {
|
|
|
41530
41530
|
}
|
|
41531
41531
|
};
|
|
41532
41532
|
a(cn, "DecorationSet");
|
|
41533
|
-
let
|
|
41534
|
-
|
|
41535
|
-
|
|
41536
|
-
const Ut =
|
|
41533
|
+
let vr = cn;
|
|
41534
|
+
vr.empty = new vr([], []);
|
|
41535
|
+
vr.removeOverlap = Zb;
|
|
41536
|
+
const Ut = vr.empty, no = class no {
|
|
41537
41537
|
constructor(e) {
|
|
41538
41538
|
this.members = e;
|
|
41539
41539
|
}
|
|
41540
41540
|
map(e, r) {
|
|
41541
|
-
const n = this.members.map((o) => o.map(e, r,
|
|
41541
|
+
const n = this.members.map((o) => o.map(e, r, hi));
|
|
41542
41542
|
return no.from(n);
|
|
41543
41543
|
}
|
|
41544
41544
|
forChild(e, r) {
|
|
41545
41545
|
if (r.isLeaf)
|
|
41546
|
-
return
|
|
41546
|
+
return vr.empty;
|
|
41547
41547
|
let n = [];
|
|
41548
41548
|
for (let o = 0; o < this.members.length; o++) {
|
|
41549
41549
|
let i = this.members[o].forChild(e, r);
|
|
@@ -41572,7 +41572,7 @@ const Ut = yr.empty, no = class no {
|
|
|
41572
41572
|
r.push(i[s]);
|
|
41573
41573
|
}
|
|
41574
41574
|
}
|
|
41575
|
-
return r ? Zb(n ? r : r.sort(
|
|
41575
|
+
return r ? Zb(n ? r : r.sort(mi)) : ta;
|
|
41576
41576
|
}
|
|
41577
41577
|
// Create a group for the given array of decoration sets, or return
|
|
41578
41578
|
// a single set when possible.
|
|
@@ -41583,7 +41583,7 @@ const Ut = yr.empty, no = class no {
|
|
|
41583
41583
|
case 1:
|
|
41584
41584
|
return e[0];
|
|
41585
41585
|
default:
|
|
41586
|
-
return new no(e.every((r) => r instanceof
|
|
41586
|
+
return new no(e.every((r) => r instanceof vr) ? e : e.reduce((r, n) => r.concat(n instanceof vr ? n : n.members), []));
|
|
41587
41587
|
}
|
|
41588
41588
|
}
|
|
41589
41589
|
forEachSet(e) {
|
|
@@ -41640,7 +41640,7 @@ function Z9(t, e, r, n, o, i, s) {
|
|
|
41640
41640
|
l.splice(h, 0, p.children[f], p.children[f + 1], p.children[f + 2]);
|
|
41641
41641
|
}
|
|
41642
41642
|
}
|
|
41643
|
-
return new
|
|
41643
|
+
return new vr(e.sort(mi), l);
|
|
41644
41644
|
}
|
|
41645
41645
|
a(Z9, "mapChildren");
|
|
41646
41646
|
function HT(t, e) {
|
|
@@ -41695,16 +41695,16 @@ function Lu(t, e, r, n) {
|
|
|
41695
41695
|
p != Ut && o.push(u, u + l.nodeSize, p);
|
|
41696
41696
|
}
|
|
41697
41697
|
});
|
|
41698
|
-
let s = HT(i ? UT(t) : t, -r).sort(
|
|
41698
|
+
let s = HT(i ? UT(t) : t, -r).sort(mi);
|
|
41699
41699
|
for (let l = 0; l < s.length; l++)
|
|
41700
41700
|
s[l].type.valid(e, s[l]) || (n.onRemove && n.onRemove(s[l].spec), s.splice(l--, 1));
|
|
41701
|
-
return s.length || o.length ? new
|
|
41701
|
+
return s.length || o.length ? new vr(s, o) : Ut;
|
|
41702
41702
|
}
|
|
41703
41703
|
a(Lu, "buildTree");
|
|
41704
|
-
function
|
|
41704
|
+
function mi(t, e) {
|
|
41705
41705
|
return t.from - e.from || t.to - e.to;
|
|
41706
41706
|
}
|
|
41707
|
-
a(
|
|
41707
|
+
a(mi, "byPos");
|
|
41708
41708
|
function Zb(t) {
|
|
41709
41709
|
let e = t;
|
|
41710
41710
|
for (let r = 0; r < e.length - 1; r++) {
|
|
@@ -41725,7 +41725,7 @@ function Zb(t) {
|
|
|
41725
41725
|
}
|
|
41726
41726
|
a(Zb, "removeOverlap");
|
|
41727
41727
|
function HO(t, e, r) {
|
|
41728
|
-
for (; e < t.length &&
|
|
41728
|
+
for (; e < t.length && mi(r, t[e]) > 0; )
|
|
41729
41729
|
e++;
|
|
41730
41730
|
t.splice(e, 0, r);
|
|
41731
41731
|
}
|
|
@@ -41735,7 +41735,7 @@ function Lf(t) {
|
|
|
41735
41735
|
return t.someProp("decorations", (r) => {
|
|
41736
41736
|
let n = r(t.state);
|
|
41737
41737
|
n && n != Ut && e.push(n);
|
|
41738
|
-
}), t.cursorWrapper && e.push(
|
|
41738
|
+
}), t.cursorWrapper && e.push(vr.create(t.state.doc, [t.cursorWrapper.deco])), $u.from(e);
|
|
41739
41739
|
}
|
|
41740
41740
|
a(Lf, "viewDecorations");
|
|
41741
41741
|
const tU = {
|
|
@@ -41809,7 +41809,7 @@ const kv = class kv {
|
|
|
41809
41809
|
return Bn(this.view);
|
|
41810
41810
|
if (or && mo <= 11 && !this.view.state.selection.empty) {
|
|
41811
41811
|
let e = this.view.domSelectionRange();
|
|
41812
|
-
if (e.focusNode &&
|
|
41812
|
+
if (e.focusNode && Fi(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
|
|
41813
41813
|
return this.flushSoon();
|
|
41814
41814
|
}
|
|
41815
41815
|
this.flush();
|
|
@@ -41915,7 +41915,7 @@ function nU(t) {
|
|
|
41915
41915
|
a(nU, "checkCSS");
|
|
41916
41916
|
function qO(t, e) {
|
|
41917
41917
|
let r = e.startContainer, n = e.startOffset, o = e.endContainer, i = e.endOffset, s = t.domAtPos(t.state.selection.anchor);
|
|
41918
|
-
return
|
|
41918
|
+
return Fi(s.node, s.offset, o, i) && ([r, n, o, i] = [o, i, r, n]), { anchorNode: r, anchorOffset: n, focusNode: o, focusOffset: i };
|
|
41919
41919
|
}
|
|
41920
41920
|
a(qO, "rangeToSelectionRange");
|
|
41921
41921
|
function oU(t, e) {
|
|
@@ -41952,7 +41952,7 @@ function aU(t, e, r) {
|
|
|
41952
41952
|
if (!T || T.size)
|
|
41953
41953
|
break;
|
|
41954
41954
|
}
|
|
41955
|
-
let f = t.state.doc, h = t.someProp("domParser") ||
|
|
41955
|
+
let f = t.state.doc, h = t.someProp("domParser") || pi.fromSchema(t.state.schema), m = f.resolve(s), g = null, b = h.parse(n, {
|
|
41956
41956
|
topNode: m.parent,
|
|
41957
41957
|
topMatch: m.parent.contentMatchAt(m.index()),
|
|
41958
41958
|
topOpen: !0,
|
|
@@ -41991,7 +41991,7 @@ function cU(t, e, r, n, o) {
|
|
|
41991
41991
|
if (t.input.compositionPendingChanges = 0, e < 0) {
|
|
41992
41992
|
let P = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, I = Kb(t, P);
|
|
41993
41993
|
if (I && !t.state.selection.eq(I)) {
|
|
41994
|
-
if (qt && Kr && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (A) => A(t,
|
|
41994
|
+
if (qt && Kr && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (A) => A(t, zo(13, "Enter"))))
|
|
41995
41995
|
return;
|
|
41996
41996
|
let R = t.state.tr.setSelection(I);
|
|
41997
41997
|
P == "pointer" ? R.setMeta("pointer", !0) : P == "key" && R.scrollIntoView(), i && R.setMeta("composition", i), t.dispatch(R);
|
|
@@ -42003,7 +42003,7 @@ function cU(t, e, r, n, o) {
|
|
|
42003
42003
|
let u = t.state.selection, d = aU(t, e, r), p = t.state.doc, f = p.slice(d.from, d.to), h, m;
|
|
42004
42004
|
t.input.lastKeyCode === 8 && Date.now() - 100 < t.input.lastKeyCodeTime ? (h = t.state.selection.to, m = "end") : (h = t.state.selection.from, m = "start"), t.input.lastKeyCode = null;
|
|
42005
42005
|
let g = pU(f.content, d.doc.content, d.from, h, m);
|
|
42006
|
-
if (g && t.input.domChangeCount++, (Ha && t.input.lastIOSEnter > Date.now() - 225 || Kr) && o.some((P) => P.nodeType == 1 && !lU.test(P.nodeName)) && (!g || g.endA >= g.endB) && t.someProp("handleKeyDown", (P) => P(t,
|
|
42006
|
+
if (g && t.input.domChangeCount++, (Ha && t.input.lastIOSEnter > Date.now() - 225 || Kr) && o.some((P) => P.nodeType == 1 && !lU.test(P.nodeName)) && (!g || g.endA >= g.endB) && t.someProp("handleKeyDown", (P) => P(t, zo(13, "Enter")))) {
|
|
42007
42007
|
t.input.lastIOSEnter = 0;
|
|
42008
42008
|
return;
|
|
42009
42009
|
}
|
|
@@ -42022,17 +42022,17 @@ function cU(t, e, r, n, o) {
|
|
|
42022
42022
|
}
|
|
42023
42023
|
t.state.selection.from < t.state.selection.to && g.start == g.endB && t.state.selection instanceof Fe && (g.start > t.state.selection.from && g.start <= t.state.selection.from + 2 && t.state.selection.from >= d.from ? g.start = t.state.selection.from : g.endA < t.state.selection.to && g.endA >= t.state.selection.to - 2 && t.state.selection.to <= d.to && (g.endB += t.state.selection.to - g.endA, g.endA = t.state.selection.to)), or && mo <= 11 && g.endB == g.start + 1 && g.endA == g.start && g.start > d.from && d.doc.textBetween(g.start - d.from - 1, g.start - d.from + 1) == " " && (g.start--, g.endA--, g.endB--);
|
|
42024
42024
|
let b = d.doc.resolveNoCache(g.start - d.from), v = d.doc.resolveNoCache(g.endB - d.from), x = p.resolve(g.start), T = b.sameParent(v) && b.parent.inlineContent && x.end() >= g.endA, k;
|
|
42025
|
-
if ((Ha && t.input.lastIOSEnter > Date.now() - 225 && (!T || o.some((P) => P.nodeName == "DIV" || P.nodeName == "P")) || !T && b.pos < d.doc.content.size && !b.sameParent(v) && (k = Re.findFrom(d.doc.resolve(b.pos + 1), 1, !0)) && k.head == v.pos) && t.someProp("handleKeyDown", (P) => P(t,
|
|
42025
|
+
if ((Ha && t.input.lastIOSEnter > Date.now() - 225 && (!T || o.some((P) => P.nodeName == "DIV" || P.nodeName == "P")) || !T && b.pos < d.doc.content.size && !b.sameParent(v) && (k = Re.findFrom(d.doc.resolve(b.pos + 1), 1, !0)) && k.head == v.pos) && t.someProp("handleKeyDown", (P) => P(t, zo(13, "Enter")))) {
|
|
42026
42026
|
t.input.lastIOSEnter = 0;
|
|
42027
42027
|
return;
|
|
42028
42028
|
}
|
|
42029
|
-
if (t.state.selection.anchor > g.start && dU(p, g.start, g.endA, b, v) && t.someProp("handleKeyDown", (P) => P(t,
|
|
42029
|
+
if (t.state.selection.anchor > g.start && dU(p, g.start, g.endA, b, v) && t.someProp("handleKeyDown", (P) => P(t, zo(8, "Backspace")))) {
|
|
42030
42030
|
Kr && qt && t.domObserver.suppressSelectionUpdates();
|
|
42031
42031
|
return;
|
|
42032
42032
|
}
|
|
42033
42033
|
qt && Kr && g.endB == g.start && (t.input.lastAndroidDelete = Date.now()), Kr && !T && b.start() != v.start() && v.parentOffset == 0 && b.depth == v.depth && d.sel && d.sel.anchor == d.sel.head && d.sel.head == g.endA && (g.endB -= 2, v = d.doc.resolveNoCache(g.endB - d.from), setTimeout(() => {
|
|
42034
42034
|
t.someProp("handleKeyDown", function(P) {
|
|
42035
|
-
return P(t,
|
|
42035
|
+
return P(t, zo(13, "Enter"));
|
|
42036
42036
|
});
|
|
42037
42037
|
}, 20));
|
|
42038
42038
|
let C = g.start, S = g.endA, w, M, F;
|
|
@@ -42737,7 +42737,7 @@ function KT(t, e, r) {
|
|
|
42737
42737
|
l = p;
|
|
42738
42738
|
}
|
|
42739
42739
|
let d = Pp(t.doc, i, u, fe.empty);
|
|
42740
|
-
if (!d || d.from != i || d instanceof
|
|
42740
|
+
if (!d || d.from != i || d instanceof Sr && d.slice.size >= u - i)
|
|
42741
42741
|
return !1;
|
|
42742
42742
|
if (r) {
|
|
42743
42743
|
let p = t.tr.step(d);
|
|
@@ -42832,7 +42832,7 @@ a(ty, "findCutAfter");
|
|
|
42832
42832
|
const PU = /* @__PURE__ */ a((t, e) => {
|
|
42833
42833
|
let r = t.selection, n = r instanceof ke, o;
|
|
42834
42834
|
if (n) {
|
|
42835
|
-
if (r.node.isTextblock || !
|
|
42835
|
+
if (r.node.isTextblock || !Mo(t.doc, r.from))
|
|
42836
42836
|
return !1;
|
|
42837
42837
|
o = r.from;
|
|
42838
42838
|
} else if (o = Mp(t.doc, r.from, -1), o == null)
|
|
@@ -42845,7 +42845,7 @@ const PU = /* @__PURE__ */ a((t, e) => {
|
|
|
42845
42845
|
}, "joinUp$1"), RU = /* @__PURE__ */ a((t, e) => {
|
|
42846
42846
|
let r = t.selection, n;
|
|
42847
42847
|
if (r instanceof ke) {
|
|
42848
|
-
if (r.node.isTextblock || !
|
|
42848
|
+
if (r.node.isTextblock || !Mo(t.doc, r.to))
|
|
42849
42849
|
return !1;
|
|
42850
42850
|
n = r.to;
|
|
42851
42851
|
} else if (n = Mp(t.doc, r.to, 1), n == null)
|
|
@@ -42909,7 +42909,7 @@ const IU = /* @__PURE__ */ a((t, e) => {
|
|
|
42909
42909
|
}, "selectParentNode$1");
|
|
42910
42910
|
function DU(t, e, r) {
|
|
42911
42911
|
let n = e.nodeBefore, o = e.nodeAfter, i = e.index();
|
|
42912
|
-
return !n || !o || !n.type.compatibleContent(o.type) ? !1 : !n.content.size && e.parent.canReplace(i - 1, i) ? (r && r(t.tr.delete(e.pos - n.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(i, i + 1) || !(o.isTextblock ||
|
|
42912
|
+
return !n || !o || !n.type.compatibleContent(o.type) ? !1 : !n.content.size && e.parent.canReplace(i - 1, i) ? (r && r(t.tr.delete(e.pos - n.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(i, i + 1) || !(o.isTextblock || Mo(t.doc, e.pos)) ? !1 : (r && r(t.tr.join(e.pos).scrollIntoView()), !0);
|
|
42913
42913
|
}
|
|
42914
42914
|
a(DU, "joinMaybeClear");
|
|
42915
42915
|
function QT(t, e, r, n) {
|
|
@@ -42924,7 +42924,7 @@ function QT(t, e, r, n) {
|
|
|
42924
42924
|
g = ae.from(s[x].create(null, g));
|
|
42925
42925
|
g = ae.from(o.copy(g));
|
|
42926
42926
|
let b = t.tr.step(new Gt(e.pos - 1, m, e.pos, m, new fe(g, 1, 0), s.length, !0)), v = b.doc.resolve(m + 2 * s.length);
|
|
42927
|
-
v.nodeAfter && v.nodeAfter.type == o.type &&
|
|
42927
|
+
v.nodeAfter && v.nodeAfter.type == o.type && Mo(b.doc, v.pos) && b.join(v.pos), r(b.scrollIntoView());
|
|
42928
42928
|
}
|
|
42929
42929
|
return !0;
|
|
42930
42930
|
}
|
|
@@ -43049,7 +43049,7 @@ function WU(t, e, r, n) {
|
|
|
43049
43049
|
return !1;
|
|
43050
43050
|
o.lift(n, l);
|
|
43051
43051
|
let u = o.mapping.map(i, -1) - 1;
|
|
43052
|
-
return
|
|
43052
|
+
return Mo(o.doc, u) && o.join(u), e(o.scrollIntoView()), !0;
|
|
43053
43053
|
}
|
|
43054
43054
|
a(WU, "liftToOuterList");
|
|
43055
43055
|
function UU(t, e, r) {
|
|
@@ -43778,9 +43778,9 @@ function i7(t) {
|
|
|
43778
43778
|
return Array.from(new Set(e));
|
|
43779
43779
|
}
|
|
43780
43780
|
a(i7, "findDuplicates");
|
|
43781
|
-
const
|
|
43781
|
+
const Xo = class Xo {
|
|
43782
43782
|
constructor(e, r) {
|
|
43783
|
-
this.splittableMarks = [], this.editor = r, this.extensions =
|
|
43783
|
+
this.splittableMarks = [], this.editor = r, this.extensions = Xo.resolve(e), this.schema = YU(this.extensions, r), this.setupExtensions();
|
|
43784
43784
|
}
|
|
43785
43785
|
/**
|
|
43786
43786
|
* Returns a flattened and sorted extension list while
|
|
@@ -43789,7 +43789,7 @@ const Qo = class Qo {
|
|
|
43789
43789
|
* @returns An flattened and sorted array of Tiptap extensions
|
|
43790
43790
|
*/
|
|
43791
43791
|
static resolve(e) {
|
|
43792
|
-
const r =
|
|
43792
|
+
const r = Xo.sort(Xo.flatten(e)), n = i7(r.map((o) => o.name));
|
|
43793
43793
|
return n.length && console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map((o) => `'${o}'`).join(", ")}]. This can lead to issues.`), r;
|
|
43794
43794
|
}
|
|
43795
43795
|
/**
|
|
@@ -43842,7 +43842,7 @@ const Qo = class Qo {
|
|
|
43842
43842
|
* @returns An array of Prosemirror plugins
|
|
43843
43843
|
*/
|
|
43844
43844
|
get plugins() {
|
|
43845
|
-
const { editor: e } = this, r =
|
|
43845
|
+
const { editor: e } = this, r = Xo.sort([...this.extensions].reverse()), n = [], o = [], i = r.map((s) => {
|
|
43846
43846
|
const l = {
|
|
43847
43847
|
name: s.name,
|
|
43848
43848
|
options: s.options,
|
|
@@ -43942,8 +43942,8 @@ const Qo = class Qo {
|
|
|
43942
43942
|
});
|
|
43943
43943
|
}
|
|
43944
43944
|
};
|
|
43945
|
-
a(
|
|
43946
|
-
let um =
|
|
43945
|
+
a(Xo, "ExtensionManager");
|
|
43946
|
+
let um = Xo;
|
|
43947
43947
|
const el = class el {
|
|
43948
43948
|
constructor(e = {}) {
|
|
43949
43949
|
this.type = "extension", this.name = "extension", this.parent = null, this.child = null, this.config = {
|
|
@@ -44116,7 +44116,7 @@ function ny(t, e, r = {}) {
|
|
|
44116
44116
|
};
|
|
44117
44117
|
}
|
|
44118
44118
|
a(ny, "getMarkRange");
|
|
44119
|
-
function
|
|
44119
|
+
function Ro(t, e) {
|
|
44120
44120
|
if (typeof t == "string") {
|
|
44121
44121
|
if (!e.marks[t])
|
|
44122
44122
|
throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);
|
|
@@ -44124,9 +44124,9 @@ function Po(t, e) {
|
|
|
44124
44124
|
}
|
|
44125
44125
|
return t;
|
|
44126
44126
|
}
|
|
44127
|
-
a(
|
|
44127
|
+
a(Ro, "getMarkType");
|
|
44128
44128
|
const x7 = /* @__PURE__ */ a((t, e = {}) => ({ tr: r, state: n, dispatch: o }) => {
|
|
44129
|
-
const i =
|
|
44129
|
+
const i = Ro(t, n.schema), { doc: s, selection: l } = r, { $from: u, from: d, to: p } = l;
|
|
44130
44130
|
if (o) {
|
|
44131
44131
|
const f = ny(u, i, e);
|
|
44132
44132
|
if (f && f.from <= d && f.to >= p) {
|
|
@@ -44146,10 +44146,10 @@ function nw(t) {
|
|
|
44146
44146
|
return t instanceof Fe;
|
|
44147
44147
|
}
|
|
44148
44148
|
a(nw, "isTextSelection");
|
|
44149
|
-
function
|
|
44149
|
+
function oi(t = 0, e = 0, r = 0) {
|
|
44150
44150
|
return Math.min(Math.max(t, e), r);
|
|
44151
44151
|
}
|
|
44152
|
-
a(
|
|
44152
|
+
a(oi, "minMax");
|
|
44153
44153
|
function ow(t, e = null) {
|
|
44154
44154
|
if (!e)
|
|
44155
44155
|
return null;
|
|
@@ -44159,7 +44159,7 @@ function ow(t, e = null) {
|
|
|
44159
44159
|
if (e === "end")
|
|
44160
44160
|
return n;
|
|
44161
44161
|
const o = r.from, i = n.to;
|
|
44162
|
-
return e === "all" ? Fe.create(t,
|
|
44162
|
+
return e === "all" ? Fe.create(t, oi(0, o, i), oi(t.content.size, o, i)) : Fe.create(t, oi(e, o, i), oi(e, o, i));
|
|
44163
44163
|
}
|
|
44164
44164
|
a(ow, "resolveFocusPosition");
|
|
44165
44165
|
function oy() {
|
|
@@ -44241,10 +44241,10 @@ function _u(t, e, r) {
|
|
|
44241
44241
|
}
|
|
44242
44242
|
})
|
|
44243
44243
|
});
|
|
44244
|
-
if (r.slice ?
|
|
44244
|
+
if (r.slice ? pi.fromSchema(u).parseSlice(kc(t), r.parseOptions) : pi.fromSchema(u).parse(kc(t), r.parseOptions), r.errorOnInvalidContent && s)
|
|
44245
44245
|
throw new Error("[tiptap error]: Invalid HTML content", { cause: new Error(`Invalid element found: ${l}`) });
|
|
44246
44246
|
}
|
|
44247
|
-
const i =
|
|
44247
|
+
const i = pi.fromSchema(e);
|
|
44248
44248
|
return r.slice ? i.parseSlice(kc(t), r.parseOptions).content : i.parse(kc(t), r.parseOptions);
|
|
44249
44249
|
}
|
|
44250
44250
|
return _u("", e, r);
|
|
@@ -44255,7 +44255,7 @@ function E7(t, e, r) {
|
|
|
44255
44255
|
if (n < e)
|
|
44256
44256
|
return;
|
|
44257
44257
|
const o = t.steps[n];
|
|
44258
|
-
if (!(o instanceof
|
|
44258
|
+
if (!(o instanceof Sr || o instanceof Gt))
|
|
44259
44259
|
return;
|
|
44260
44260
|
const i = t.mapping.maps[n];
|
|
44261
44261
|
let s = 0;
|
|
@@ -44397,7 +44397,7 @@ a(o1, "deleteProps");
|
|
|
44397
44397
|
const z7 = /* @__PURE__ */ a((t, e) => ({ tr: r, state: n, dispatch: o }) => {
|
|
44398
44398
|
let i = null, s = null;
|
|
44399
44399
|
const l = Lp(typeof t == "string" ? t : t.name, n.schema);
|
|
44400
|
-
return l ? (l === "node" && (i = It(t, n.schema)), l === "mark" && (s =
|
|
44400
|
+
return l ? (l === "node" && (i = It(t, n.schema)), l === "mark" && (s = Ro(t, n.schema)), o && r.selection.ranges.forEach((u) => {
|
|
44401
44401
|
n.doc.nodesBetween(u.$from.pos, u.$to.pos, (d, p) => {
|
|
44402
44402
|
i && i === d.type && r.setNodeMarkup(p, void 0, o1(d.attrs, e)), s && d.marks.length && d.marks.forEach((f) => {
|
|
44403
44403
|
s === f.type && r.addMark(p, p + d.nodeSize, s.create(o1(f.attrs, e)));
|
|
@@ -44431,7 +44431,7 @@ const J7 = /* @__PURE__ */ a((t, e = !1, r = {}, n = {}) => ({ editor: o, tr: i,
|
|
|
44431
44431
|
});
|
|
44432
44432
|
}, "setContent");
|
|
44433
44433
|
function iy(t, e) {
|
|
44434
|
-
const r =
|
|
44434
|
+
const r = Ro(e, t.schema), { from: n, to: o, empty: i } = t.selection, s = [];
|
|
44435
44435
|
i ? (t.storedMarks && s.push(...t.storedMarks), s.push(...t.selection.$head.marks())) : t.doc.nodesBetween(n, o, (u) => {
|
|
44436
44436
|
s.push(...u.marks);
|
|
44437
44437
|
});
|
|
@@ -44485,7 +44485,7 @@ function ay(t) {
|
|
|
44485
44485
|
}
|
|
44486
44486
|
a(ay, "findParentNode");
|
|
44487
44487
|
function tq(t, e) {
|
|
44488
|
-
const r =
|
|
44488
|
+
const r = Ri.fromSchema(e).serializeFragment(t), o = document.implementation.createHTMLDocument().createElement("div");
|
|
44489
44489
|
return o.appendChild(r), o.innerHTML;
|
|
44490
44490
|
}
|
|
44491
44491
|
a(tq, "getHTMLFromFragment");
|
|
@@ -44579,7 +44579,7 @@ function Wc(t, e, r) {
|
|
|
44579
44579
|
}
|
|
44580
44580
|
a(Wc, "getSplittedAttributes");
|
|
44581
44581
|
function fm(t, e, r = {}) {
|
|
44582
|
-
const { empty: n, ranges: o } = t.selection, i = e ?
|
|
44582
|
+
const { empty: n, ranges: o } = t.selection, i = e ? Ro(e, t.schema) : null;
|
|
44583
44583
|
if (n)
|
|
44584
44584
|
return !!(t.storedMarks || t.selection.$from.marks()).filter((f) => i ? i.name === f.type.name : !0).find((f) => Du(f.attrs, r, { strict: !1 }));
|
|
44585
44585
|
let s = 0;
|
|
@@ -44672,7 +44672,7 @@ function cq(t, e, r) {
|
|
|
44672
44672
|
}
|
|
44673
44673
|
a(cq, "canSetMark");
|
|
44674
44674
|
const uq = /* @__PURE__ */ a((t, e = {}) => ({ tr: r, state: n, dispatch: o }) => {
|
|
44675
|
-
const { selection: i } = r, { empty: s, ranges: l } = i, u =
|
|
44675
|
+
const { selection: i } = r, { empty: s, ranges: l } = i, u = Ro(t, n.schema);
|
|
44676
44676
|
if (o)
|
|
44677
44677
|
if (s) {
|
|
44678
44678
|
const d = iy(n, u);
|
|
@@ -44699,13 +44699,13 @@ const uq = /* @__PURE__ */ a((t, e = {}) => ({ tr: r, state: n, dispatch: o }) =
|
|
|
44699
44699
|
return i.isTextblock ? o().command(({ commands: s }) => e1(i, e)(r) ? !0 : s.clearNodes()).command(({ state: s }) => e1(i, e)(s, n)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
44700
44700
|
}, "setNode"), fq = /* @__PURE__ */ a((t) => ({ tr: e, dispatch: r }) => {
|
|
44701
44701
|
if (r) {
|
|
44702
|
-
const { doc: n } = e, o =
|
|
44702
|
+
const { doc: n } = e, o = oi(t, 0, n.content.size), i = ke.create(n, o);
|
|
44703
44703
|
e.setSelection(i);
|
|
44704
44704
|
}
|
|
44705
44705
|
return !0;
|
|
44706
44706
|
}, "setNodeSelection"), hq = /* @__PURE__ */ a((t) => ({ tr: e, dispatch: r }) => {
|
|
44707
44707
|
if (r) {
|
|
44708
|
-
const { doc: n } = e, { from: o, to: i } = typeof t == "number" ? { from: t, to: t } : t, s = Fe.atStart(n).from, l = Fe.atEnd(n).to, u =
|
|
44708
|
+
const { doc: n } = e, { from: o, to: i } = typeof t == "number" ? { from: t, to: t } : t, s = Fe.atStart(n).from, l = Fe.atEnd(n).to, u = oi(o, s, l), d = oi(i, s, l), p = Fe.create(n, u, d);
|
|
44709
44709
|
e.setSelection(p);
|
|
44710
44710
|
}
|
|
44711
44711
|
return !0;
|
|
@@ -44810,7 +44810,7 @@ const gq = /* @__PURE__ */ a(({ keepMarks: t = !0 } = {}) => ({ tr: e, state: r,
|
|
|
44810
44810
|
if (n === void 0)
|
|
44811
44811
|
return !0;
|
|
44812
44812
|
const o = t.doc.nodeAt(n);
|
|
44813
|
-
return r.node.type === (o == null ? void 0 : o.type) &&
|
|
44813
|
+
return r.node.type === (o == null ? void 0 : o.type) && Mo(t.doc, r.pos) && t.join(r.pos), !0;
|
|
44814
44814
|
}, "joinListBackwards"), jf = /* @__PURE__ */ a((t, e) => {
|
|
44815
44815
|
const r = ay((s) => s.type === e)(t.selection);
|
|
44816
44816
|
if (!r)
|
|
@@ -44819,7 +44819,7 @@ const gq = /* @__PURE__ */ a(({ keepMarks: t = !0 } = {}) => ({ tr: e, state: r,
|
|
|
44819
44819
|
if (n === void 0)
|
|
44820
44820
|
return !0;
|
|
44821
44821
|
const o = t.doc.nodeAt(n);
|
|
44822
|
-
return r.node.type === (o == null ? void 0 : o.type) &&
|
|
44822
|
+
return r.node.type === (o == null ? void 0 : o.type) && Mo(t.doc, n) && t.join(n), !0;
|
|
44823
44823
|
}, "joinListForwards"), yq = /* @__PURE__ */ a((t, e, r, n = {}) => ({ editor: o, tr: i, state: s, dispatch: l, chain: u, commands: d, can: p }) => {
|
|
44824
44824
|
const { extensions: f, splittableMarks: h } = o.extensionManager, m = It(t, s.schema), g = It(e, s.schema), { selection: b, storedMarks: v } = s, { $from: x, $to: T } = b, k = x.blockRange(T), C = v || b.$to.parentOffset && b.$from.marks();
|
|
44825
44825
|
if (!k)
|
|
@@ -44836,7 +44836,7 @@ const gq = /* @__PURE__ */ a(({ keepMarks: t = !0 } = {}) => ({ tr: e, state: r,
|
|
|
44836
44836
|
return i.ensureMarks(M), w ? !0 : d.clearNodes();
|
|
44837
44837
|
}).wrapInList(m, n).command(() => Vf(i, m)).command(() => jf(i, m)).run();
|
|
44838
44838
|
}, "toggleList"), vq = /* @__PURE__ */ a((t, e = {}, r = {}) => ({ state: n, commands: o }) => {
|
|
44839
|
-
const { extendEmptyMarkRange: i = !1 } = r, s =
|
|
44839
|
+
const { extendEmptyMarkRange: i = !1 } = r, s = Ro(t, n.schema);
|
|
44840
44840
|
return fm(n, s, e) ? o.unsetMark(s, { extendEmptyMarkRange: i }) : o.setMark(s, e);
|
|
44841
44841
|
}, "toggleMark"), xq = /* @__PURE__ */ a((t, e, r = {}) => ({ state: n, commands: o }) => {
|
|
44842
44842
|
const i = It(t, n.schema), s = It(e, n.schema), l = Ml(n, i, r);
|
|
@@ -44872,7 +44872,7 @@ const gq = /* @__PURE__ */ a(({ keepMarks: t = !0 } = {}) => ({ tr: e, state: r,
|
|
|
44872
44872
|
}), !0;
|
|
44873
44873
|
}, "unsetAllMarks"), kq = /* @__PURE__ */ a((t, e = {}) => ({ tr: r, state: n, dispatch: o }) => {
|
|
44874
44874
|
var i;
|
|
44875
|
-
const { extendEmptyMarkRange: s = !1 } = e, { selection: l } = r, u =
|
|
44875
|
+
const { extendEmptyMarkRange: s = !1 } = e, { selection: l } = r, u = Ro(t, n.schema), { $from: d, empty: p, ranges: f } = l;
|
|
44876
44876
|
if (!o)
|
|
44877
44877
|
return !0;
|
|
44878
44878
|
if (p && s) {
|
|
@@ -44887,7 +44887,7 @@ const gq = /* @__PURE__ */ a(({ keepMarks: t = !0 } = {}) => ({ tr: e, state: r,
|
|
|
44887
44887
|
}, "unsetMark"), Eq = /* @__PURE__ */ a((t, e = {}) => ({ tr: r, state: n, dispatch: o }) => {
|
|
44888
44888
|
let i = null, s = null;
|
|
44889
44889
|
const l = Lp(typeof t == "string" ? t : t.name, n.schema);
|
|
44890
|
-
return l ? (l === "node" && (i = It(t, n.schema)), l === "mark" && (s =
|
|
44890
|
+
return l ? (l === "node" && (i = It(t, n.schema)), l === "mark" && (s = Ro(t, n.schema)), o && r.selection.ranges.forEach((u) => {
|
|
44891
44891
|
const d = u.$from.pos, p = u.$to.pos;
|
|
44892
44892
|
n.doc.nodesBetween(d, p, (f, h) => {
|
|
44893
44893
|
i && i === f.type && r.setNodeMarkup(h, void 0, {
|
|
@@ -45690,7 +45690,7 @@ const Rv = class Rv extends sm {
|
|
|
45690
45690
|
};
|
|
45691
45691
|
a(Rv, "Editor");
|
|
45692
45692
|
let mm = Rv;
|
|
45693
|
-
function
|
|
45693
|
+
function $i(t) {
|
|
45694
45694
|
return new Ga({
|
|
45695
45695
|
find: t.find,
|
|
45696
45696
|
handler: /* @__PURE__ */ a(({ state: e, range: r, match: n }) => {
|
|
@@ -45709,7 +45709,7 @@ function Ii(t) {
|
|
|
45709
45709
|
}, "handler")
|
|
45710
45710
|
});
|
|
45711
45711
|
}
|
|
45712
|
-
a(
|
|
45712
|
+
a($i, "markInputRule");
|
|
45713
45713
|
function lw(t) {
|
|
45714
45714
|
return new Ga({
|
|
45715
45715
|
find: t.find,
|
|
@@ -45763,7 +45763,7 @@ function Pl(t) {
|
|
|
45763
45763
|
o().updateAttributes(f, i).run();
|
|
45764
45764
|
}
|
|
45765
45765
|
const p = s.doc.resolve(r.from - 1).nodeBefore;
|
|
45766
|
-
p && p.type === t.type &&
|
|
45766
|
+
p && p.type === t.type && Mo(s.doc, r.from - 1) && (!t.joinPredicate || t.joinPredicate(n, p)) && s.join(r.from - 1);
|
|
45767
45767
|
}, "handler")
|
|
45768
45768
|
});
|
|
45769
45769
|
}
|
|
@@ -45927,7 +45927,7 @@ const _q = Zr.create({
|
|
|
45927
45927
|
},
|
|
45928
45928
|
addInputRules() {
|
|
45929
45929
|
return [
|
|
45930
|
-
|
|
45930
|
+
$i({
|
|
45931
45931
|
find: Vq,
|
|
45932
45932
|
type: this.type
|
|
45933
45933
|
})
|
|
@@ -46009,14 +46009,14 @@ function Yq(t, e) {
|
|
|
46009
46009
|
return t in e || (e[t] = []), e[t];
|
|
46010
46010
|
}
|
|
46011
46011
|
a(Yq, "registerGroup");
|
|
46012
|
-
function
|
|
46012
|
+
function ii(t, e, r) {
|
|
46013
46013
|
e[bm] && (e[Uc] = !0, e[Ec] = !0), e[ym] && (e[Uc] = !0, e[vm] = !0), e[Uc] && (e[Ec] = !0), e[vm] && (e[Ec] = !0), e[Ec] && (e[xm] = !0), e[cw] && (e[xm] = !0);
|
|
46014
46014
|
for (const n in e) {
|
|
46015
46015
|
const o = Yq(n, r);
|
|
46016
46016
|
o.indexOf(t) < 0 && o.push(t);
|
|
46017
46017
|
}
|
|
46018
46018
|
}
|
|
46019
|
-
a(
|
|
46019
|
+
a(ii, "addToGroups");
|
|
46020
46020
|
function Jq(t, e) {
|
|
46021
46021
|
const r = {};
|
|
46022
46022
|
for (const n in e)
|
|
@@ -46084,7 +46084,7 @@ tr.prototype = {
|
|
|
46084
46084
|
tr(t, e, r, n) {
|
|
46085
46085
|
n = n || tr.groups;
|
|
46086
46086
|
let o;
|
|
46087
|
-
return e && e.j ? o = e : (o = new tr(e), r && n &&
|
|
46087
|
+
return e && e.j ? o = e : (o = new tr(e), r && n && ii(e, r, n)), this.jr.push([t, o]), o;
|
|
46088
46088
|
},
|
|
46089
46089
|
/**
|
|
46090
46090
|
* Short for "take transitions", will take as many sequential transitions as
|
|
@@ -46142,8 +46142,8 @@ tr.prototype = {
|
|
|
46142
46142
|
if (n)
|
|
46143
46143
|
if (s.t && typeof s.t == "string") {
|
|
46144
46144
|
const u = Ka(Jq(s.t, n), r);
|
|
46145
|
-
|
|
46146
|
-
} else r &&
|
|
46145
|
+
ii(i, u, n);
|
|
46146
|
+
} else r && ii(i, r, n);
|
|
46147
46147
|
s.t = i;
|
|
46148
46148
|
}
|
|
46149
46149
|
return o.j[t] = s, s;
|
|
@@ -46243,16 +46243,16 @@ function Zq(t) {
|
|
|
46243
46243
|
Qn(r, Tc[f], Sm, An, d);
|
|
46244
46244
|
for (let f = 0; f < wc.length; f++)
|
|
46245
46245
|
Qn(r, wc[f], Cm, Om, p);
|
|
46246
|
-
|
|
46246
|
+
ii(Sm, {
|
|
46247
46247
|
tld: !0,
|
|
46248
46248
|
ascii: !0
|
|
46249
|
-
}, e),
|
|
46249
|
+
}, e), ii(Cm, {
|
|
46250
46250
|
utld: !0,
|
|
46251
46251
|
alpha: !0
|
|
46252
|
-
}, e), Qn(r, "file", qc, An, d), Qn(r, "mailto", qc, An, d), Qn(r, "http", ra, An, d), Qn(r, "https", ra, An, d), Qn(r, "ftp", ra, An, d), Qn(r, "ftps", ra, An, d),
|
|
46252
|
+
}, e), Qn(r, "file", qc, An, d), Qn(r, "mailto", qc, An, d), Qn(r, "http", ra, An, d), Qn(r, "https", ra, An, d), Qn(r, "ftp", ra, An, d), Qn(r, "ftps", ra, An, d), ii(qc, {
|
|
46253
46253
|
scheme: !0,
|
|
46254
46254
|
ascii: !0
|
|
46255
|
-
}, e),
|
|
46255
|
+
}, e), ii(ra, {
|
|
46256
46256
|
slashscheme: !0,
|
|
46257
46257
|
ascii: !0
|
|
46258
46258
|
}, e), t = t.sort((f, h) => f[0] > h[0] ? 1 : -1);
|
|
@@ -47584,7 +47584,7 @@ const O1 = process.env.NODE_ENV !== "production", Mm = typeof window > "u", A8 =
|
|
|
47584
47584
|
a(Iv, "EditorInstanceManager");
|
|
47585
47585
|
let Pm = Iv;
|
|
47586
47586
|
function F8(t = {}, e = []) {
|
|
47587
|
-
const r =
|
|
47587
|
+
const r = So(t);
|
|
47588
47588
|
r.current = t;
|
|
47589
47589
|
const [n] = De(() => new Pm(r)), o = Dp.useSyncExternalStore(n.subscribe, n.getEditor, n.getServerSnapshot);
|
|
47590
47590
|
return X1(o), qe(n.onRender(e)), R8({
|
|
@@ -47692,11 +47692,11 @@ const N8 = /^\s*>\s$/, D8 = sr.create({
|
|
|
47692
47692
|
},
|
|
47693
47693
|
addInputRules() {
|
|
47694
47694
|
return [
|
|
47695
|
-
|
|
47695
|
+
$i({
|
|
47696
47696
|
find: _8,
|
|
47697
47697
|
type: this.type
|
|
47698
47698
|
}),
|
|
47699
|
-
|
|
47699
|
+
$i({
|
|
47700
47700
|
find: V8,
|
|
47701
47701
|
type: this.type
|
|
47702
47702
|
})
|
|
@@ -47794,7 +47794,7 @@ const N8 = /^\s*>\s$/, D8 = sr.create({
|
|
|
47794
47794
|
},
|
|
47795
47795
|
addInputRules() {
|
|
47796
47796
|
return [
|
|
47797
|
-
|
|
47797
|
+
$i({
|
|
47798
47798
|
find: U8,
|
|
47799
47799
|
type: this.type
|
|
47800
47800
|
})
|
|
@@ -48237,7 +48237,7 @@ function aG(t) {
|
|
|
48237
48237
|
if (!(t.selection instanceof Yt))
|
|
48238
48238
|
return null;
|
|
48239
48239
|
let e = document.createElement("div");
|
|
48240
|
-
return e.className = "ProseMirror-gapcursor",
|
|
48240
|
+
return e.className = "ProseMirror-gapcursor", vr.create(t.doc, [Hn.widget(t.selection.head, e, { key: "gapcursor" })]);
|
|
48241
48241
|
}
|
|
48242
48242
|
a(aG, "drawGapCursor");
|
|
48243
48243
|
const sG = Kt.create({
|
|
@@ -48567,8 +48567,8 @@ const dG = 500, io = class io {
|
|
|
48567
48567
|
}
|
|
48568
48568
|
};
|
|
48569
48569
|
a(io, "Branch");
|
|
48570
|
-
let
|
|
48571
|
-
|
|
48570
|
+
let Li = io;
|
|
48571
|
+
Li.empty = new Li(At.empty, 0);
|
|
48572
48572
|
function pG(t, e) {
|
|
48573
48573
|
let r;
|
|
48574
48574
|
return t.forEach((n, o) => {
|
|
@@ -48600,18 +48600,18 @@ a(Lv, "HistoryState");
|
|
|
48600
48600
|
let fn = Lv;
|
|
48601
48601
|
const fG = 20;
|
|
48602
48602
|
function hG(t, e, r, n) {
|
|
48603
|
-
let o = r.getMeta(
|
|
48603
|
+
let o = r.getMeta(gi), i;
|
|
48604
48604
|
if (o)
|
|
48605
48605
|
return o.historyState;
|
|
48606
48606
|
r.getMeta(bG) && (t = new fn(t.done, t.undone, null, 0, -1));
|
|
48607
48607
|
let s = r.getMeta("appendedTransaction");
|
|
48608
48608
|
if (r.steps.length == 0)
|
|
48609
48609
|
return t;
|
|
48610
|
-
if (s && s.getMeta(
|
|
48611
|
-
return s.getMeta(
|
|
48610
|
+
if (s && s.getMeta(gi))
|
|
48611
|
+
return s.getMeta(gi).redo ? new fn(t.done.addTransform(r, void 0, n, Gc(e)), t.undone, k1(r.mapping.maps), t.prevTime, t.prevComposition) : new fn(t.done, t.undone.addTransform(r, void 0, n, Gc(e)), null, t.prevTime, t.prevComposition);
|
|
48612
48612
|
if (r.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
|
|
48613
48613
|
let l = r.getMeta("composition"), u = t.prevTime == 0 || !s && t.prevComposition != l && (t.prevTime < (r.time || 0) - n.newGroupDelay || !mG(r, t.prevRanges)), d = s ? Jf(t.prevRanges, r.mapping) : k1(r.mapping.maps);
|
|
48614
|
-
return new fn(t.done.addTransform(r, u ? e.selection.getBookmark() : void 0, n, Gc(e)),
|
|
48614
|
+
return new fn(t.done.addTransform(r, u ? e.selection.getBookmark() : void 0, n, Gc(e)), Li.empty, d, r.time, l ?? t.prevComposition);
|
|
48615
48615
|
} else return (i = r.getMeta("rebased")) ? new fn(t.done.rebased(r, i), t.undone.rebased(r, i), Jf(t.prevRanges, r.mapping), t.prevTime, t.prevComposition) : new fn(t.done.addMaps(r.mapping.maps), t.undone.addMaps(r.mapping.maps), Jf(t.prevRanges, r.mapping), t.prevTime, t.prevComposition);
|
|
48616
48616
|
}
|
|
48617
48617
|
a(hG, "applyTransaction");
|
|
@@ -48646,11 +48646,11 @@ function Jf(t, e) {
|
|
|
48646
48646
|
}
|
|
48647
48647
|
a(Jf, "mapRanges");
|
|
48648
48648
|
function gG(t, e, r) {
|
|
48649
|
-
let n = Gc(e), o =
|
|
48649
|
+
let n = Gc(e), o = gi.get(e).spec.config, i = (r ? t.undone : t.done).popEvent(e, n);
|
|
48650
48650
|
if (!i)
|
|
48651
48651
|
return null;
|
|
48652
48652
|
let s = i.selection.resolve(i.transform.doc), l = (r ? t.done : t.undone).addTransform(i.transform, e.selection.getBookmark(), o, n), u = new fn(r ? l : i.remaining, r ? i.remaining : l, null, 0, -1);
|
|
48653
|
-
return i.transform.setSelection(s).setMeta(
|
|
48653
|
+
return i.transform.setSelection(s).setMeta(gi, { redo: r, historyState: u });
|
|
48654
48654
|
}
|
|
48655
48655
|
a(gG, "histTransaction");
|
|
48656
48656
|
let Qf = !1, E1 = null;
|
|
@@ -48667,16 +48667,16 @@ function Gc(t) {
|
|
|
48667
48667
|
return Qf;
|
|
48668
48668
|
}
|
|
48669
48669
|
a(Gc, "mustPreserveItems");
|
|
48670
|
-
const
|
|
48670
|
+
const gi = new Qt("history"), bG = new Qt("closeHistory");
|
|
48671
48671
|
function yG(t = {}) {
|
|
48672
48672
|
return t = {
|
|
48673
48673
|
depth: t.depth || 100,
|
|
48674
48674
|
newGroupDelay: t.newGroupDelay || 500
|
|
48675
48675
|
}, new Mt({
|
|
48676
|
-
key:
|
|
48676
|
+
key: gi,
|
|
48677
48677
|
state: {
|
|
48678
48678
|
init() {
|
|
48679
|
-
return new fn(
|
|
48679
|
+
return new fn(Li.empty, Li.empty, null, 0, -1);
|
|
48680
48680
|
},
|
|
48681
48681
|
apply(e, r, n) {
|
|
48682
48682
|
return hG(r, n, e, t);
|
|
@@ -48696,7 +48696,7 @@ function yG(t = {}) {
|
|
|
48696
48696
|
a(yG, "history");
|
|
48697
48697
|
function bw(t, e) {
|
|
48698
48698
|
return (r, n) => {
|
|
48699
|
-
let o =
|
|
48699
|
+
let o = gi.getState(r);
|
|
48700
48700
|
if (!o || (t ? o.undone : o.done).eventCount == 0)
|
|
48701
48701
|
return !1;
|
|
48702
48702
|
if (n) {
|
|
@@ -48829,11 +48829,11 @@ const yw = bw(!1, !0), vw = bw(!0, !0), vG = Kt.create({
|
|
|
48829
48829
|
},
|
|
48830
48830
|
addInputRules() {
|
|
48831
48831
|
return [
|
|
48832
|
-
|
|
48832
|
+
$i({
|
|
48833
48833
|
find: OG,
|
|
48834
48834
|
type: this.type
|
|
48835
48835
|
}),
|
|
48836
|
-
|
|
48836
|
+
$i({
|
|
48837
48837
|
find: CG,
|
|
48838
48838
|
type: this.type
|
|
48839
48839
|
})
|
|
@@ -49015,7 +49015,7 @@ const yw = bw(!1, !0), vw = bw(!0, !0), vG = Kt.create({
|
|
|
49015
49015
|
},
|
|
49016
49016
|
addInputRules() {
|
|
49017
49017
|
return [
|
|
49018
|
-
|
|
49018
|
+
$i({
|
|
49019
49019
|
find: RG,
|
|
49020
49020
|
type: this.type
|
|
49021
49021
|
})
|
|
@@ -49433,14 +49433,14 @@ var Rw = /* @__PURE__ */ a(function(t) {
|
|
|
49433
49433
|
return O.createElement(O.Fragment, null, n(i, Fm({ _: i }, s)));
|
|
49434
49434
|
}
|
|
49435
49435
|
return O.createElement(O.Fragment, null, n(r, { _: r }));
|
|
49436
|
-
}, "ValidationError"), hQ = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
|
|
49436
|
+
}, "ValidationError"), hQ = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, Ao = /* @__PURE__ */ a(function(t) {
|
|
49437
49437
|
return typeof t > "u" || t === null || t === "" || Array.isArray(t) && t.length === 0;
|
|
49438
49438
|
}, "isEmpty$1");
|
|
49439
49439
|
function mQ(t) {
|
|
49440
49440
|
return t ? t.hasOwnProperty("message") : !1;
|
|
49441
49441
|
}
|
|
49442
49442
|
a(mQ, "isValidationErrorMessageWithArgs");
|
|
49443
|
-
var
|
|
49443
|
+
var Fo = /* @__PURE__ */ a(function(t, e, r, n) {
|
|
49444
49444
|
return typeof t == "function" ? t({
|
|
49445
49445
|
args: e,
|
|
49446
49446
|
value: r,
|
|
@@ -49449,7 +49449,7 @@ var Ao = /* @__PURE__ */ a(function(t, e, r, n) {
|
|
|
49449
49449
|
message: t,
|
|
49450
49450
|
args: e
|
|
49451
49451
|
} : t;
|
|
49452
|
-
}, "getMessage"),
|
|
49452
|
+
}, "getMessage"), Io = /* @__PURE__ */ a(function(t) {
|
|
49453
49453
|
return Tw(t, function() {
|
|
49454
49454
|
for (var e = [], r = 0; r < arguments.length; r++)
|
|
49455
49455
|
e[r] = arguments[r];
|
|
@@ -49472,44 +49472,44 @@ var Ao = /* @__PURE__ */ a(function(t, e, r, n) {
|
|
|
49472
49472
|
return null;
|
|
49473
49473
|
});
|
|
49474
49474
|
}, "composeValidators");
|
|
49475
|
-
|
|
49475
|
+
Io(function(t) {
|
|
49476
49476
|
return t === void 0 && (t = "ra.validation.required"), Object.assign(function(e, r) {
|
|
49477
|
-
return
|
|
49477
|
+
return Ao(e) ? Fo(t, void 0, e, r) : void 0;
|
|
49478
49478
|
}, { isRequired: !0 });
|
|
49479
49479
|
});
|
|
49480
|
-
|
|
49480
|
+
Io(function(t, e) {
|
|
49481
49481
|
return e === void 0 && (e = "ra.validation.minLength"), function(r, n) {
|
|
49482
|
-
return !
|
|
49482
|
+
return !Ao(r) && r.length < t ? Fo(e, { min: t }, r, n) : void 0;
|
|
49483
49483
|
};
|
|
49484
49484
|
});
|
|
49485
|
-
|
|
49485
|
+
Io(function(t, e) {
|
|
49486
49486
|
return e === void 0 && (e = "ra.validation.maxLength"), function(r, n) {
|
|
49487
|
-
return !
|
|
49487
|
+
return !Ao(r) && r.length > t ? Fo(e, { max: t }, r, n) : void 0;
|
|
49488
49488
|
};
|
|
49489
49489
|
});
|
|
49490
|
-
|
|
49490
|
+
Io(function(t, e) {
|
|
49491
49491
|
return e === void 0 && (e = "ra.validation.minValue"), function(r, n) {
|
|
49492
|
-
return !
|
|
49492
|
+
return !Ao(r) && r < t ? Fo(e, { min: t }, r, n) : void 0;
|
|
49493
49493
|
};
|
|
49494
49494
|
});
|
|
49495
|
-
|
|
49495
|
+
Io(function(t, e) {
|
|
49496
49496
|
return e === void 0 && (e = "ra.validation.maxValue"), function(r, n) {
|
|
49497
|
-
return !
|
|
49497
|
+
return !Ao(r) && r > t ? Fo(e, { max: t }, r, n) : void 0;
|
|
49498
49498
|
};
|
|
49499
49499
|
});
|
|
49500
|
-
|
|
49500
|
+
Io(function(t) {
|
|
49501
49501
|
return t === void 0 && (t = "ra.validation.number"), function(e, r) {
|
|
49502
|
-
return !
|
|
49502
|
+
return !Ao(e) && isNaN(Number(e)) ? Fo(t, void 0, e, r) : void 0;
|
|
49503
49503
|
};
|
|
49504
49504
|
});
|
|
49505
49505
|
var vQ = Tw(function(t, e) {
|
|
49506
49506
|
return e === void 0 && (e = "ra.validation.regex"), function(r, n) {
|
|
49507
|
-
return !
|
|
49507
|
+
return !Ao(r) && typeof r == "string" && !t.test(r) ? Fo(e, { pattern: t }, r, n) : void 0;
|
|
49508
49508
|
};
|
|
49509
49509
|
}, function(t, e) {
|
|
49510
49510
|
return t.toString() + e;
|
|
49511
49511
|
});
|
|
49512
|
-
|
|
49512
|
+
Io(function(t) {
|
|
49513
49513
|
return t === void 0 && (t = "ra.validation.email"), vQ(hQ, t);
|
|
49514
49514
|
});
|
|
49515
49515
|
var xQ = /* @__PURE__ */ a(function(t) {
|
|
@@ -49519,16 +49519,16 @@ var xQ = /* @__PURE__ */ a(function(t) {
|
|
|
49519
49519
|
args: e
|
|
49520
49520
|
};
|
|
49521
49521
|
}, "oneOfTypeMessage");
|
|
49522
|
-
|
|
49522
|
+
Io(function(t, e) {
|
|
49523
49523
|
return e === void 0 && (e = xQ), function(r, n) {
|
|
49524
|
-
return !
|
|
49524
|
+
return !Ao(r) && t.indexOf(r) === -1 ? Fo(e, { list: t }, r, n) : void 0;
|
|
49525
49525
|
};
|
|
49526
49526
|
});
|
|
49527
49527
|
var OQ = $t(null), SQ = /* @__PURE__ */ a(function() {
|
|
49528
49528
|
var t = ot(pQ);
|
|
49529
49529
|
return t;
|
|
49530
49530
|
}, "useFormGroups"), CQ = /* @__PURE__ */ a(function(t) {
|
|
49531
|
-
var e = t.inputProps, r = t.isArrayInput, n = t.fieldArrayInputControl, o = e.defaultValue, i = e.source, s = Hw(i), l = Rw(e), u =
|
|
49531
|
+
var e = t.inputProps, r = t.isArrayInput, n = t.fieldArrayInputControl, o = e.defaultValue, i = e.source, s = Hw(i), l = Rw(e), u = pr(), d = u.getValues, p = u.resetField, f = u.formState, h = u.reset, m = Kc(l, s), g = Kc(d(), s), b = f.dirtyFields, v = Object.keys(b).includes(s);
|
|
49532
49532
|
qe(function() {
|
|
49533
49533
|
if (!(o == null || g != null || m != null || v)) {
|
|
49534
49534
|
var x = s.split(".").some(function(C) {
|
|
@@ -49555,14 +49555,14 @@ var OQ = $t(null), SQ = /* @__PURE__ */ a(function() {
|
|
|
49555
49555
|
return t && t.isRequired ? !0 : Array.isArray(t) ? t.some(function(e) {
|
|
49556
49556
|
return e.isRequired;
|
|
49557
49557
|
}) : !1;
|
|
49558
|
-
}, "isRequired"),
|
|
49559
|
-
return
|
|
49558
|
+
}, "isRequired"), Ho = function() {
|
|
49559
|
+
return Ho = Object.assign || function(t) {
|
|
49560
49560
|
for (var e, r = 1, n = arguments.length; r < n; r++) {
|
|
49561
49561
|
e = arguments[r];
|
|
49562
49562
|
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
|
|
49563
49563
|
}
|
|
49564
49564
|
return t;
|
|
49565
|
-
},
|
|
49565
|
+
}, Ho.apply(this, arguments);
|
|
49566
49566
|
}, wQ = function(t, e, r, n) {
|
|
49567
49567
|
function o(i) {
|
|
49568
49568
|
return i instanceof r ? i : new r(function(s) {
|
|
@@ -49669,14 +49669,14 @@ var OQ = $t(null), SQ = /* @__PURE__ */ a(function() {
|
|
|
49669
49669
|
x.unregisterField(g, v);
|
|
49670
49670
|
};
|
|
49671
49671
|
}, [x, v, g]);
|
|
49672
|
-
var S = Array.isArray(h) ? yQ(h) : h, w = bR(
|
|
49672
|
+
var S = Array.isArray(h) ? yQ(h) : h, w = bR(Ho({ name: b, defaultValue: Kc(T, g, e), rules: {
|
|
49673
49673
|
validate: /* @__PURE__ */ a(function($, L) {
|
|
49674
49674
|
return wQ(void 0, void 0, void 0, function() {
|
|
49675
49675
|
var j;
|
|
49676
49676
|
return MQ(this, function(B) {
|
|
49677
49677
|
switch (B.label) {
|
|
49678
49678
|
case 0:
|
|
49679
|
-
return S ? [4, S($, L,
|
|
49679
|
+
return S ? [4, S($, L, Ho(Ho({}, t), { finalSource: g }))] : [2, !0];
|
|
49680
49680
|
case 1:
|
|
49681
49681
|
return j = B.sent(), j ? [2, "@@react-admin@@".concat(JSON.stringify(j))] : [2, !0];
|
|
49682
49682
|
}
|
|
@@ -49694,7 +49694,7 @@ var OQ = $t(null), SQ = /* @__PURE__ */ a(function() {
|
|
|
49694
49694
|
N[K] = arguments[K];
|
|
49695
49695
|
var D = t.type === "checkbox" && ((L = ($ = N[0]) === null || $ === void 0 ? void 0 : $.target) === null || L === void 0 ? void 0 : L.value) === "on" ? N[0].target.checked : (V = (B = (j = N[0]) === null || j === void 0 ? void 0 : j.target) === null || B === void 0 ? void 0 : B.value) !== null && V !== void 0 ? V : N[0];
|
|
49696
49696
|
M.onChange(k ? k(D) : D), u && u.apply(void 0, N);
|
|
49697
|
-
}), A =
|
|
49697
|
+
}), A = Ho(Ho({}, M), { value: n ? n(M.value) : M.value, onBlur: I, onChange: R });
|
|
49698
49698
|
return {
|
|
49699
49699
|
id: o || C,
|
|
49700
49700
|
field: A,
|
|
@@ -51337,7 +51337,7 @@ function SX(t) {
|
|
|
51337
51337
|
return xe("MuiFilledInput", t);
|
|
51338
51338
|
}
|
|
51339
51339
|
a(SX, "getFilledInputUtilityClass");
|
|
51340
|
-
const
|
|
51340
|
+
const $o = E({}, $a, Oe("MuiFilledInput", ["root", "underline", "input"])), CX = ["disableUnderline", "components", "componentsProps", "fullWidth", "hiddenLabel", "inputComponent", "multiline", "slotProps", "slots", "type"], kX = /* @__PURE__ */ a((t) => {
|
|
51341
51341
|
const {
|
|
51342
51342
|
classes: e,
|
|
51343
51343
|
disableUnderline: r
|
|
@@ -51378,10 +51378,10 @@ const Io = E({}, $a, Oe("MuiFilledInput", ["root", "underline", "input"])), CX =
|
|
|
51378
51378
|
backgroundColor: t.vars ? t.vars.palette.FilledInput.bg : i
|
|
51379
51379
|
}
|
|
51380
51380
|
},
|
|
51381
|
-
[`&.${
|
|
51381
|
+
[`&.${$o.focused}`]: {
|
|
51382
51382
|
backgroundColor: t.vars ? t.vars.palette.FilledInput.bg : i
|
|
51383
51383
|
},
|
|
51384
|
-
[`&.${
|
|
51384
|
+
[`&.${$o.disabled}`]: {
|
|
51385
51385
|
backgroundColor: t.vars ? t.vars.palette.FilledInput.disabledBg : l
|
|
51386
51386
|
}
|
|
51387
51387
|
}, !e.disableUnderline && {
|
|
@@ -51401,12 +51401,12 @@ const Io = E({}, $a, Oe("MuiFilledInput", ["root", "underline", "input"])), CX =
|
|
|
51401
51401
|
pointerEvents: "none"
|
|
51402
51402
|
// Transparent to the hover style.
|
|
51403
51403
|
},
|
|
51404
|
-
[`&.${
|
|
51404
|
+
[`&.${$o.focused}:after`]: {
|
|
51405
51405
|
// translateX(0) is a workaround for Safari transform scale bug
|
|
51406
51406
|
// See https://github.com/mui/material-ui/issues/31766
|
|
51407
51407
|
transform: "scaleX(1) translateX(0)"
|
|
51408
51408
|
},
|
|
51409
|
-
[`&.${
|
|
51409
|
+
[`&.${$o.error}`]: {
|
|
51410
51410
|
"&::before, &::after": {
|
|
51411
51411
|
borderBottomColor: (t.vars || t).palette.error.main
|
|
51412
51412
|
}
|
|
@@ -51425,10 +51425,10 @@ const Io = E({}, $a, Oe("MuiFilledInput", ["root", "underline", "input"])), CX =
|
|
|
51425
51425
|
pointerEvents: "none"
|
|
51426
51426
|
// Transparent to the hover style.
|
|
51427
51427
|
},
|
|
51428
|
-
[`&:hover:not(.${
|
|
51428
|
+
[`&:hover:not(.${$o.disabled}, .${$o.error}):before`]: {
|
|
51429
51429
|
borderBottom: `1px solid ${(t.vars || t).palette.text.primary}`
|
|
51430
51430
|
},
|
|
51431
|
-
[`&.${
|
|
51431
|
+
[`&.${$o.disabled}:before`]: {
|
|
51432
51432
|
borderBottomStyle: "dotted"
|
|
51433
51433
|
}
|
|
51434
51434
|
}, e.startAdornment && {
|
|
@@ -52591,7 +52591,7 @@ process.env.NODE_ENV !== "production" && (eM.propTypes = {
|
|
|
52591
52591
|
*/
|
|
52592
52592
|
variant: c.oneOf(["standard", "outlined", "filled"])
|
|
52593
52593
|
});
|
|
52594
|
-
const HX =
|
|
52594
|
+
const HX = To(/* @__PURE__ */ y("path", {
|
|
52595
52595
|
d: "M7 10l5 5 5-5z"
|
|
52596
52596
|
}), "ArrowDropDown"), WX = ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"], UX = ["root"], qX = /* @__PURE__ */ a((t) => {
|
|
52597
52597
|
const {
|
|
@@ -53571,7 +53571,7 @@ var Vm = function() {
|
|
|
53571
53571
|
)
|
|
53572
53572
|
),
|
|
53573
53573
|
O.createElement(oh, { anchorEl: i, open: !!i, id: "level-menu", onClose: m }, Ac.map(function(g, b) {
|
|
53574
|
-
return O.createElement(
|
|
53574
|
+
return O.createElement(ai, { key: g.label, selected: g === d, onClick: /* @__PURE__ */ a(function(v) {
|
|
53575
53575
|
f(v, b);
|
|
53576
53576
|
}, "onClick") }, r(g.label, { _: g.defaultLabel }));
|
|
53577
53577
|
}))
|
|
@@ -53690,12 +53690,12 @@ var yd = function() {
|
|
|
53690
53690
|
}
|
|
53691
53691
|
return t;
|
|
53692
53692
|
}, yd.apply(this, arguments);
|
|
53693
|
-
},
|
|
53693
|
+
}, bi;
|
|
53694
53694
|
(function(t) {
|
|
53695
53695
|
t.FONT = "font", t.BACKGROUND = "background";
|
|
53696
|
-
})(
|
|
53696
|
+
})(bi || (bi = {}));
|
|
53697
53697
|
var dee = /* @__PURE__ */ a(function(t) {
|
|
53698
|
-
var e = Ur(), r = Mn(), n = O.useState(!1), o = n[0], i = n[1], s = O.useState(
|
|
53698
|
+
var e = Ur(), r = Mn(), n = O.useState(!1), o = n[0], i = n[1], s = O.useState(bi.FONT), l = s[0], u = s[1], d = e("ra.tiptap.color", { _: "Color" }), p = e("ra.tiptap.highlight", { _: "Highlight" }), f = /* @__PURE__ */ a(function(h) {
|
|
53699
53699
|
i(!0), u(h);
|
|
53700
53700
|
}, "displayColorChoiceDialog");
|
|
53701
53701
|
return O.createElement(
|
|
@@ -53712,14 +53712,14 @@ var dee = /* @__PURE__ */ a(function(t) {
|
|
|
53712
53712
|
O.createElement(
|
|
53713
53713
|
zt,
|
|
53714
53714
|
yd({ "aria-label": d, title: d }, t, { disabled: !r || !r.isEditable, value: "color", onClick: /* @__PURE__ */ a(function() {
|
|
53715
|
-
return f(
|
|
53715
|
+
return f(bi.FONT);
|
|
53716
53716
|
}, "onClick") }),
|
|
53717
53717
|
O.createElement(bM, { fontSize: "inherit" })
|
|
53718
53718
|
),
|
|
53719
53719
|
O.createElement(
|
|
53720
53720
|
zt,
|
|
53721
53721
|
yd({ "aria-label": p, title: p }, t, { disabled: !r || !r.isEditable, value: "highlight", onClick: /* @__PURE__ */ a(function() {
|
|
53722
|
-
return f(
|
|
53722
|
+
return f(bi.BACKGROUND);
|
|
53723
53723
|
}, "onClick") }),
|
|
53724
53724
|
O.createElement(yM, { fontSize: "inherit" })
|
|
53725
53725
|
)
|
|
@@ -53730,13 +53730,13 @@ var dee = /* @__PURE__ */ a(function(t) {
|
|
|
53730
53730
|
)
|
|
53731
53731
|
);
|
|
53732
53732
|
}, "ColorButtons"), pee = /* @__PURE__ */ a(function(t) {
|
|
53733
|
-
var e, r, n = t.editor, o = t.close, i = t.colorType, s = rS(), l = [Tg,
|
|
53734
|
-
i ===
|
|
53733
|
+
var e, r, n = t.editor, o = t.close, i = t.colorType, s = rS(), l = [Tg, No, Ji, AB, _o, Do, Lo], u = [900, 700, 500, 300, 100], d = /* @__PURE__ */ a(function(p) {
|
|
53734
|
+
i === bi.FONT ? n.chain().focus().setColor(p).run() : n.chain().focus().toggleHighlight({ color: p }).run(), o();
|
|
53735
53735
|
}, "selectColor");
|
|
53736
53736
|
return O.createElement(oS, { sx: {
|
|
53737
53737
|
position: "absolute",
|
|
53738
53738
|
top: 38,
|
|
53739
|
-
left: i ===
|
|
53739
|
+
left: i === bi.FONT ? 0 : "50%",
|
|
53740
53740
|
p: 1,
|
|
53741
53741
|
border: "1px solid ".concat((r = (e = s == null ? void 0 : s.palette) === null || e === void 0 ? void 0 : e.background) === null || r === void 0 ? void 0 : r.default),
|
|
53742
53742
|
display: "flex",
|
|
@@ -53950,7 +53950,7 @@ const are = /* @__PURE__ */ a((t) => {
|
|
|
53950
53950
|
const {
|
|
53951
53951
|
propsContenido: { html: e = !1, ...r },
|
|
53952
53952
|
hidden: n
|
|
53953
|
-
} =
|
|
53953
|
+
} = fr(t);
|
|
53954
53954
|
return n ? null : e ? /* @__PURE__ */ y(xee, { ...r, className: "" }) : /* @__PURE__ */ y(ho, { multiline: !0, ...r });
|
|
53955
53955
|
}, "TextArea"), SM = /* @__PURE__ */ a((t) => {
|
|
53956
53956
|
const { helperText: e, error: r } = t, n = Tt();
|
|
@@ -55008,7 +55008,7 @@ lr.DEFAULTS = {
|
|
|
55008
55008
|
};
|
|
55009
55009
|
lr.EMPTY_VALUES = [void 0, null, ""];
|
|
55010
55010
|
we.Masked = lr;
|
|
55011
|
-
const
|
|
55011
|
+
const Zo = class Zo {
|
|
55012
55012
|
/** */
|
|
55013
55013
|
constructor(e, r) {
|
|
55014
55014
|
e === void 0 && (e = []), r === void 0 && (r = 0), this.chunks = e, this.from = r;
|
|
@@ -55024,7 +55024,7 @@ const Xo = class Xo {
|
|
|
55024
55024
|
e.from === r.from + r.toString().length;
|
|
55025
55025
|
if (e instanceof Lr)
|
|
55026
55026
|
n ? r.extend(e.toString()) : this.chunks.push(e);
|
|
55027
|
-
else if (e instanceof
|
|
55027
|
+
else if (e instanceof Zo) {
|
|
55028
55028
|
if (e.stop == null) {
|
|
55029
55029
|
let o;
|
|
55030
55030
|
for (; e.chunks.length && e.chunks[0].stop == null; )
|
|
@@ -55041,8 +55041,8 @@ const Xo = class Xo {
|
|
|
55041
55041
|
const o = this.chunks[n], i = e._mapPosToBlock(e.displayValue.length), s = o.stop;
|
|
55042
55042
|
let l;
|
|
55043
55043
|
if (s != null && // if block not found or stop is behind lastBlock
|
|
55044
|
-
(!i || i.index <= s) && ((o instanceof
|
|
55045
|
-
e._stops.indexOf(s) >= 0) && r.aggregate(e._appendPlaceholder(s)), l = o instanceof
|
|
55044
|
+
(!i || i.index <= s) && ((o instanceof Zo || // for continuous block also check if stop is exist
|
|
55045
|
+
e._stops.indexOf(s) >= 0) && r.aggregate(e._appendPlaceholder(s)), l = o instanceof Zo && e._blocks[s]), l) {
|
|
55046
55046
|
const u = l.appendTail(o);
|
|
55047
55047
|
r.aggregate(u);
|
|
55048
55048
|
const d = o.toString().slice(u.rawInserted.length);
|
|
@@ -55070,7 +55070,7 @@ const Xo = class Xo {
|
|
|
55070
55070
|
...n
|
|
55071
55071
|
} = e;
|
|
55072
55072
|
Object.assign(this, n), this.chunks = r.map((o) => {
|
|
55073
|
-
const i = "chunks" in o ? new
|
|
55073
|
+
const i = "chunks" in o ? new Zo() : new Lr();
|
|
55074
55074
|
return i.state = o, i;
|
|
55075
55075
|
});
|
|
55076
55076
|
}
|
|
@@ -55104,8 +55104,8 @@ const Xo = class Xo {
|
|
|
55104
55104
|
return "";
|
|
55105
55105
|
}
|
|
55106
55106
|
};
|
|
55107
|
-
a(
|
|
55108
|
-
let Sd =
|
|
55107
|
+
a(Zo, "ChunksTailDetails");
|
|
55108
|
+
let Sd = Zo;
|
|
55109
55109
|
const Hv = class Hv {
|
|
55110
55110
|
constructor(e, r) {
|
|
55111
55111
|
this.masked = e, this._log = [];
|
|
@@ -56414,11 +56414,11 @@ const dn = class dn extends lr {
|
|
|
56414
56414
|
}
|
|
56415
56415
|
};
|
|
56416
56416
|
a(dn, "MaskedNumber");
|
|
56417
|
-
let
|
|
56418
|
-
wM =
|
|
56419
|
-
|
|
56420
|
-
|
|
56421
|
-
|
|
56417
|
+
let Ni = dn;
|
|
56418
|
+
wM = Ni;
|
|
56419
|
+
Ni.UNMASKED_RADIX = ".";
|
|
56420
|
+
Ni.EMPTY_VALUES = [...lr.EMPTY_VALUES, 0];
|
|
56421
|
+
Ni.DEFAULTS = {
|
|
56422
56422
|
...lr.DEFAULTS,
|
|
56423
56423
|
mask: Number,
|
|
56424
56424
|
radix: ",",
|
|
@@ -56435,7 +56435,7 @@ Li.DEFAULTS = {
|
|
|
56435
56435
|
maximumFractionDigits: 20
|
|
56436
56436
|
}), "format")
|
|
56437
56437
|
};
|
|
56438
|
-
we.MaskedNumber =
|
|
56438
|
+
we.MaskedNumber = Ni;
|
|
56439
56439
|
const Ym = {
|
|
56440
56440
|
MASKED: "value",
|
|
56441
56441
|
UNMASKED: "unmaskedValue",
|
|
@@ -56709,7 +56709,7 @@ const zee = jee((t) => {
|
|
|
56709
56709
|
}
|
|
56710
56710
|
);
|
|
56711
56711
|
}, "MaskedTextInput2")), sre = /* @__PURE__ */ a((t) => {
|
|
56712
|
-
const { tipo: e, ...r } = t, { propsContenido: n, hidden: o } =
|
|
56712
|
+
const { tipo: e, ...r } = t, { propsContenido: n, hidden: o } = fr(r), i = pr();
|
|
56713
56713
|
qe(() => {
|
|
56714
56714
|
n.value && i.setValue(t.source, n.value);
|
|
56715
56715
|
}, [n.value]);
|
|
@@ -56748,7 +56748,7 @@ const zee = jee((t) => {
|
|
|
56748
56748
|
const { label: e, sx: r } = t, {
|
|
56749
56749
|
hidden: n,
|
|
56750
56750
|
propsContenido: { helperText: o, sx: i, readOnly: s }
|
|
56751
|
-
} =
|
|
56751
|
+
} = fr(t);
|
|
56752
56752
|
return n ? null : /* @__PURE__ */ W(
|
|
56753
56753
|
lt,
|
|
56754
56754
|
{
|
|
@@ -56882,7 +56882,7 @@ export {
|
|
|
56882
56882
|
hte as timeParser,
|
|
56883
56883
|
Kg as useAjax,
|
|
56884
56884
|
pp as useAsistente,
|
|
56885
|
-
|
|
56885
|
+
fr as useContenidoController,
|
|
56886
56886
|
Mte as useEtrActions,
|
|
56887
56887
|
Ot as useFicha,
|
|
56888
56888
|
pk as useFieldController,
|