biblio-react 3.0.0-alpha97 → 3.0.0-alpha99

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 CHANGED
@@ -4,8 +4,8 @@ import Ee, { jsx as y, jsxs as G, Fragment as dn } from "react/jsx-runtime";
4
4
  import * as x from "react";
5
5
  import rt, { forwardRef as dl, useContext as Te, createElement as Zy, Children as ad, isValidElement as Rn, cloneElement as Hr, createContext as Rt, useState as De, useMemo as mr, useRef as Si, useCallback as He, useEffect as Ge, Fragment as pn, memo as Gx, useImperativeHandle as kw, useDebugValue as Kx, useId as ww } from "react";
6
6
  import { unstable_ClassNameGenerator as Yx, exactProp as sd, unstable_getScrollbarSize as Pw, unstable_ownerDocument as An, unstable_ownerWindow as Ns, unstable_useForkRef as aa, elementAcceptingRef as Mw, unstable_useEnhancedEffect as ii, unstable_setRef as ev, HTMLElementType as Of, unstable_useEventCallback as tv, unstable_createChainedFunction as rv, unstable_debounce as Rw, usePreviousProps as Aw, unstable_getNormalizedScrollLeft as Fw, unstable_detectScrollType as $w, chainPropTypes as Iw, refType as Nw, deepmerge as Jx } from "@mui/utils";
7
- import { MenuItem as qo, ListItemIcon as Ki, ListItemText as Yi, useMediaQuery as Ci, Typography as Ls, Box as ot, Grid as nv, Dialog as am, DialogTitle as Qx, DialogContent as Lw, Stack as sm, DialogActions as Dw, Tooltip as ld, IconButton as Ds, createTheme as _w, ThemeProvider as jw, alpha as zw, StyledEngineProvider as Xx, Card as Zx, CircularProgress as Bw, CardContent as e1, Collapse as Vw, List as t1, Menu as xf, Switch as Hw, Divider as Ww, Button as ov, Paper as r1, ToggleButtonGroup as cd, ToggleButton as jt, ListItem as Uw, useTheme as qw, FormHelperText as Gw } from "@mui/material";
8
- import { useTranslate as xt, useUserMenu as Kw, useResourceDefinitions as Yw, AppBar as Jw, UserMenu as Qw, Logout as Xw, useNotify as gn, useSaveContext as Zw, required as eP, minValue as tP, TopToolbar as n1, RefreshButton as rP, ListButton as nP, ShowButton as oP, useDataProvider as lm, useResourceContext as ht, useListContext as ai, useRedirect as Aa, useUnselectAll as iP, NumberField as aP, DateField as iv, TextField as lc, ReferenceField as sP, useCreatePath as pl, Button as wr, Form as fl, SaveButton as ud, Confirm as dd, useRecordContext as Lr, useListController as lP, ListContextProvider as cP, LoadingClasses as Tc, List as o1, useResourceDefinition as i1, BulkActionsToolbar as uP, useInput as pd, useGetList as a1, Labeled as s1, useSafeSetState as cm, useGetOne as l1, useCreateController as dP, CreateContextProvider as pP, Create as fP, useDelete as c1, useEditController as hP, Edit as mP, SimpleForm as gP, useSidebarState as u1, Menu as bP, DashboardMenuItem as yP, MenuItemLink as d1, Layout as vP, FilterContext as OP, sanitizeListRestProps as xP, FilterButton as SP, CreateButton as CP, useLogin as TP, TextInput as si, PasswordInput as p1, useShowController as EP, Show as kP, FormTab as wP, getTabbedFormTabFullPath as PP, TabbedFormTabs as MP, Toolbar as f1, defaultTheme as h1, BooleanField as RP, ImageInput as AP, ImageField as FP, FileInput as $P, BooleanInput as IP, ReferenceInput as m1, useChoicesContext as g1, AutocompleteInput as NP, SelectInput as LP, ReferenceArrayInput as DP, AutocompleteArrayInput as _P, SearchInput as jP, RadioButtonGroupInput as b1, useRecordSelection as y1, ListActions as zP, Datagrid as BP, ValidationError as VP, FieldTitle as v1, NumberInput as HP } from "react-admin";
7
+ import { MenuItem as qo, ListItemIcon as Ki, ListItemText as Yi, useMediaQuery as Ci, Typography as Ls, Box as nt, Grid as nv, Dialog as am, DialogTitle as Qx, DialogContent as Lw, Stack as sm, DialogActions as Dw, Tooltip as ld, IconButton as Ds, createTheme as _w, ThemeProvider as jw, alpha as zw, StyledEngineProvider as Xx, Card as Zx, CircularProgress as Bw, CardContent as e1, Collapse as Vw, List as t1, Menu as xf, Switch as Hw, Divider as Ww, Button as ov, Paper as r1, ToggleButtonGroup as cd, ToggleButton as jt, ListItem as Uw, useTheme as qw, FormHelperText as Gw } from "@mui/material";
8
+ import { useTranslate as xt, useUserMenu as Kw, useResourceDefinitions as Yw, AppBar as Jw, UserMenu as Qw, Logout as Xw, useNotify as gn, useSaveContext as Zw, required as eP, minValue as tP, TopToolbar as n1, RefreshButton as rP, ListButton as nP, ShowButton as oP, useDataProvider as lm, useResourceContext as ht, useListContext as ai, useRedirect as Aa, useUnselectAll as iP, NumberField as aP, DateField as iv, TextField as lc, ReferenceField as sP, useCreatePath as pl, Button as wr, SaveButton as ud, Confirm as dd, Form as fl, useRecordContext as Lr, useListController as lP, ListContextProvider as cP, LoadingClasses as Tc, List as o1, useResourceDefinition as i1, BulkActionsToolbar as uP, useInput as pd, useGetList as a1, Labeled as s1, useSafeSetState as cm, useGetOne as l1, useCreateController as dP, CreateContextProvider as pP, Create as fP, useDelete as c1, useEditController as hP, Edit as mP, SimpleForm as gP, useSidebarState as u1, Menu as bP, DashboardMenuItem as yP, MenuItemLink as d1, Layout as vP, FilterContext as OP, sanitizeListRestProps as xP, FilterButton as SP, CreateButton as CP, useLogin as TP, TextInput as si, PasswordInput as p1, useShowController as EP, Show as kP, FormTab as wP, getTabbedFormTabFullPath as PP, TabbedFormTabs as MP, Toolbar as f1, defaultTheme as h1, BooleanField as RP, ImageInput as AP, ImageField as FP, FileInput as $P, BooleanInput as IP, ReferenceInput as m1, useChoicesContext as g1, AutocompleteInput as NP, SelectInput as LP, ReferenceArrayInput as DP, AutocompleteArrayInput as _P, SearchInput as jP, RadioButtonGroupInput as b1, useRecordSelection as y1, ListActions as zP, Datagrid as BP, ValidationError as VP, FieldTitle as v1, NumberInput as HP } from "react-admin";
9
9
  import { Link as _s, useNavigate as Fa, Routes as um, Route as dm, useLocation as Ti, matchPath as Sf, useResolvedPath as WP } from "react-router-dom";
10
10
  import { useGridApiContext as Ei, useGridSelector as sa, gridColumnVisibilityModelSelector as O1, gridColumnDefinitionsSelector as x1, GridColumnIcon as UP, gridSortModelSelector as qP, GridArrowUpwardIcon as GP, GridArrowDownwardIcon as KP, GridToolbarExport as YP, selectedGridRowsSelector as JP, GridToolbarContainer as QP, GridClearIcon as XP, GridToolbarQuickFilter as ZP, useGridApiRef as pm, useKeepGroupedColumnsHidden as S1, GridActionsCellItem as fp, DataGridPremium as fm, gridClasses as av } from "@mui/x-data-grid-premium";
11
11
  import { useFormContext as ir, useFormState as eM, useController as tM } from "react-hook-form";
@@ -5309,7 +5309,7 @@ const b$ = dl((e, t) => {
5309
5309
  id: "react-admin-title"
5310
5310
  }
5311
5311
  ),
5312
- t && /* @__PURE__ */ y(ot, { component: "span", sx: { flex: 1 } })
5312
+ t && /* @__PURE__ */ y(nt, { component: "span", sx: { flex: 1 } })
5313
5313
  ] });
5314
5314
  }, "CustomAppBar");
5315
5315
  function O$(e) {
@@ -10516,7 +10516,7 @@ const bD = Z("div")(({ theme: e }) => ({
10516
10516
  ] })
10517
10517
  }
10518
10518
  ),
10519
- /* @__PURE__ */ y(ot, { sx: { mt: 1 }, children: "No hay registros" })
10519
+ /* @__PURE__ */ y(nt, { sx: { mt: 1 }, children: "No hay registros" })
10520
10520
  ] }), "CustomNoRowsOverlay"), yD = Z("div")(({ theme: e }) => ({
10521
10521
  display: "flex",
10522
10522
  flexDirection: "column",
@@ -10529,7 +10529,7 @@ const bD = Z("div")(({ theme: e }) => ({
10529
10529
  })
10530
10530
  })), vD = /* @__PURE__ */ a((e) => /* @__PURE__ */ G(yD, { children: [
10531
10531
  /* @__PURE__ */ y(Nd, {}),
10532
- /* @__PURE__ */ y(ot, { sx: { mt: 2 }, children: e.mensaje || "" })
10532
+ /* @__PURE__ */ y(nt, { sx: { mt: 2 }, children: e.mensaje || "" })
10533
10533
  ] }), "CustomLoadingOverlay");
10534
10534
  var lg = {}, OD = Se;
10535
10535
  Object.defineProperty(lg, "__esModule", {
@@ -15394,7 +15394,7 @@ const C_ = /* @__PURE__ */ a((e) => {
15394
15394
  } = e, u = ht(e), d = xt(), p = pl(), f = Fa(), h = $d(e), m = !Vf(t.row, i), g = o && m;
15395
15395
  return /* @__PURE__ */ G(x.Fragment, { children: [
15396
15396
  /* @__PURE__ */ y(
15397
- ot,
15397
+ nt,
15398
15398
  {
15399
15399
  sx: {
15400
15400
  width: "100%",
@@ -22738,47 +22738,50 @@ const jz = x.forwardRef(/* @__PURE__ */ a(function(t, r) {
22738
22738
  maxWidth: p === "vista" ? "lg" : "sm",
22739
22739
  TransitionComponent: jz,
22740
22740
  ...k,
22741
- children: p === "form" ? (/* @__PURE__ */ a(() => /* @__PURE__ */ G(pn, { children: [
22742
- /* @__PURE__ */ y(Qx, { id: "draggable-dialog-title", children: s }),
22743
- /* @__PURE__ */ G(fl, { resource: r, onSubmit: u, children: [
22744
- /* @__PURE__ */ y(Lw, { dividers: g, variant: "dense", children: /* @__PURE__ */ y(sm, { spacing: 2, children: l }) }),
22745
- /* @__PURE__ */ G(Dw, { children: [
22746
- f.map(
22747
- ({
22748
- label: w = "",
22749
- icon: P = /* @__PURE__ */ y(Bf, {}),
22750
- handler: A
22751
- }, M) => /* @__PURE__ */ y(
22741
+ children: p === "form" ? (/* @__PURE__ */ a(() => {
22742
+ const w = x.isValidElement(l) && l.type.name.startsWith("Form") && (l.type.name.endsWith("Create") || l.type.name.endsWith("Edit"));
22743
+ return /* @__PURE__ */ G(pn, { children: [
22744
+ /* @__PURE__ */ y(Qx, { id: "draggable-dialog-title", children: s }),
22745
+ /* @__PURE__ */ G(w ? nt : fl, { resource: r, onSubmit: u, children: [
22746
+ /* @__PURE__ */ y(Lw, { dividers: g, variant: "dense", children: /* @__PURE__ */ y(sm, { spacing: 2, children: l }) }),
22747
+ /* @__PURE__ */ G(Dw, { children: [
22748
+ f.map(
22749
+ ({
22750
+ label: A = "",
22751
+ icon: M = /* @__PURE__ */ y(Bf, {}),
22752
+ handler: $
22753
+ }, R) => /* @__PURE__ */ y(
22754
+ wr,
22755
+ {
22756
+ label: A,
22757
+ disabled: t,
22758
+ onClick: $,
22759
+ children: M
22760
+ },
22761
+ `extra_${R}`
22762
+ )
22763
+ ),
22764
+ m && /* @__PURE__ */ y(
22752
22765
  wr,
22753
22766
  {
22754
- label: w,
22767
+ label: v,
22755
22768
  disabled: t,
22756
- onClick: A,
22757
- children: P
22758
- },
22759
- `extra_${M}`
22769
+ onClick: d,
22770
+ children: /* @__PURE__ */ y(qs, {})
22771
+ }
22772
+ ),
22773
+ !w && h && /* @__PURE__ */ y(
22774
+ ud,
22775
+ {
22776
+ label: O,
22777
+ disabled: t,
22778
+ alwaysEnable: b
22779
+ }
22760
22780
  )
22761
- ),
22762
- m && /* @__PURE__ */ y(
22763
- wr,
22764
- {
22765
- label: v,
22766
- disabled: t,
22767
- onClick: d,
22768
- children: /* @__PURE__ */ y(qs, {})
22769
- }
22770
- ),
22771
- h && /* @__PURE__ */ y(
22772
- ud,
22773
- {
22774
- label: O,
22775
- disabled: t,
22776
- alwaysEnable: b
22777
- }
22778
- )
22781
+ ] })
22779
22782
  ] })
22780
- ] })
22781
- ] }), "getDialogForm"))() : (/* @__PURE__ */ a(() => /* @__PURE__ */ G(pn, { children: [
22783
+ ] });
22784
+ }, "getDialogForm"))() : (/* @__PURE__ */ a(() => /* @__PURE__ */ G(pn, { children: [
22782
22785
  /* @__PURE__ */ y(wC, { sx: { position: "relative" }, color: "inherit", children: /* @__PURE__ */ G(PC, { disableGutters: !0, variant: "dense", children: [
22783
22786
  /* @__PURE__ */ y(
22784
22787
  kt,
@@ -23493,7 +23496,7 @@ const DC = /* @__PURE__ */ a((e) => {
23493
23496
  /* @__PURE__ */ y(MC, { isLoading: L }),
23494
23497
  tt && N ? /* @__PURE__ */ y(uP, { selectedIds: Y, children: R }) : null,
23495
23498
  /* @__PURE__ */ y(jw, { theme: le, children: /* @__PURE__ */ y(
23496
- ot,
23499
+ nt,
23497
23500
  {
23498
23501
  sx: e.unstable_listView ? {
23499
23502
  display: "flex",
@@ -28140,7 +28143,7 @@ const N5 = /* @__PURE__ */ a(({
28140
28143
  }
28141
28144
  ),
28142
28145
  /* @__PURE__ */ y(
28143
- ot,
28146
+ nt,
28144
28147
  {
28145
28148
  sx: {
28146
28149
  opacity: p ? 0.6 : 1,
@@ -28176,10 +28179,10 @@ const N5 = /* @__PURE__ */ a(({
28176
28179
  gP,
28177
28180
  {
28178
28181
  mode: "onBlur",
28179
- ...r,
28180
28182
  onSubmit: i,
28181
28183
  defaultValues: n,
28182
28184
  component: oT,
28185
+ ...r,
28183
28186
  ...o,
28184
28187
  children: [
28185
28188
  t,
@@ -28275,7 +28278,7 @@ const q5 = /* @__PURE__ */ a((e) => {
28275
28278
  translate: t
28276
28279
  });
28277
28280
  return /* @__PURE__ */ y(
28278
- ot,
28281
+ nt,
28279
28282
  {
28280
28283
  sx: {
28281
28284
  width: i ? 230 : 50,
@@ -29342,7 +29345,7 @@ const pee = /* @__PURE__ */ a((e) => {
29342
29345
  const g = {};
29343
29346
  return m[r] || (g[r] = s("ra.validation.required")), m[n] || (g[n] = s("ra.validation.required")), g;
29344
29347
  }, "validate"), children: /* @__PURE__ */ y(
29345
- ot,
29348
+ nt,
29346
29349
  {
29347
29350
  sx: {
29348
29351
  display: "flex",
@@ -29356,7 +29359,7 @@ const pee = /* @__PURE__ */ a((e) => {
29356
29359
  },
29357
29360
  children: /* @__PURE__ */ G(pT, { sx: { minWidth: 300, marginTop: "6em" }, children: [
29358
29361
  /* @__PURE__ */ y(
29359
- ot,
29362
+ nt,
29360
29363
  {
29361
29364
  sx: {
29362
29365
  margin: "1em",
@@ -29375,7 +29378,7 @@ const pee = /* @__PURE__ */ a((e) => {
29375
29378
  }
29376
29379
  ),
29377
29380
  /* @__PURE__ */ y(
29378
- ot,
29381
+ nt,
29379
29382
  {
29380
29383
  sx: {
29381
29384
  marginTop: "1em",
@@ -29387,8 +29390,8 @@ const pee = /* @__PURE__ */ a((e) => {
29387
29390
  children: "Inicio de Sesión"
29388
29391
  }
29389
29392
  ),
29390
- /* @__PURE__ */ G(ot, { sx: { padding: "0 1em 1em 1em" }, children: [
29391
- /* @__PURE__ */ y(ot, { sx: { marginTop: 0 }, children: /* @__PURE__ */ y(
29393
+ /* @__PURE__ */ G(nt, { sx: { padding: "0 1em 1em 1em" }, children: [
29394
+ /* @__PURE__ */ y(nt, { sx: { marginTop: 0 }, children: /* @__PURE__ */ y(
29392
29395
  si,
29393
29396
  {
29394
29397
  autoFocus: !0,
@@ -29398,7 +29401,7 @@ const pee = /* @__PURE__ */ a((e) => {
29398
29401
  disabled: o
29399
29402
  }
29400
29403
  ) }),
29401
- /* @__PURE__ */ y(ot, { sx: { marginTop: 0 }, children: /* @__PURE__ */ y(
29404
+ /* @__PURE__ */ y(nt, { sx: { marginTop: 0 }, children: /* @__PURE__ */ y(
29402
29405
  p1,
29403
29406
  {
29404
29407
  name: n,
@@ -30496,7 +30499,7 @@ const fee = /* @__PURE__ */ a((e) => {
30496
30499
  x.cloneElement(k.icon, {
30497
30500
  fontSize: "medium"
30498
30501
  }),
30499
- /* @__PURE__ */ y(ot, { component: "span", sx: { paddingRight: "1em" } }),
30502
+ /* @__PURE__ */ y(nt, { component: "span", sx: { paddingRight: "1em" } }),
30500
30503
  /* @__PURE__ */ y(kt, { fontSize: "small", color: "textPrimary", children: k.label })
30501
30504
  ]
30502
30505
  },
@@ -30655,11 +30658,11 @@ const i4 = /* @__PURE__ */ a(({
30655
30658
  OT,
30656
30659
  {
30657
30660
  mode: "onBlur",
30658
- ...n,
30659
30661
  syncWithLocation: t,
30660
30662
  onSubmit: s,
30661
30663
  defaultValues: o,
30662
30664
  component: oT,
30665
+ ...n,
30663
30666
  ...i,
30664
30667
  children: [
30665
30668
  r,
@@ -31122,7 +31125,7 @@ const X0 = /* @__PURE__ */ a((e) => {
31122
31125
  loading: !t,
31123
31126
  maxWidth: "sm",
31124
31127
  title: "",
31125
- content: /* @__PURE__ */ G(ot, { display: "flex", flexDirection: "column", children: [
31128
+ content: /* @__PURE__ */ G(nt, { display: "flex", flexDirection: "column", children: [
31126
31129
  /* @__PURE__ */ y(
31127
31130
  ov,
31128
31131
  {
@@ -31299,7 +31302,7 @@ const X0 = /* @__PURE__ */ a((e) => {
31299
31302
  }, "Camino"), Cee = /* @__PURE__ */ a((e) => {
31300
31303
  const { propsContenido: t, hidden: r } = ar(e);
31301
31304
  return !r && /* @__PURE__ */ y(
31302
- ot,
31305
+ nt,
31303
31306
  {
31304
31307
  sx: {
31305
31308
  display: "inline-flex",
@@ -31327,7 +31330,7 @@ const X0 = /* @__PURE__ */ a((e) => {
31327
31330
  return Ge(() => {
31328
31331
  s || typeof t == "function" && t(Object.values([l]));
31329
31332
  }, [l, t, s]), /* @__PURE__ */ y(w4, { title: ((p = d.current) == null ? void 0 : p.value) || "", placement: "top", arrow: !0, children: /* @__PURE__ */ y(
31330
- ot,
31333
+ nt,
31331
31334
  {
31332
31335
  sx: n ? { marginLeft: 1, ...r } : {
31333
31336
  display: { xs: "inherit", md: "inline-flex" },
@@ -32790,7 +32793,7 @@ const OH = /* @__PURE__ */ a((e) => /* @__PURE__ */ y(
32790
32793
  }, "handleTodos");
32791
32794
  return d ? null : /* @__PURE__ */ G(dn, { children: [
32792
32795
  /* @__PURE__ */ y(
32793
- ot,
32796
+ nt,
32794
32797
  {
32795
32798
  display: "flex",
32796
32799
  alignItems: "center",
@@ -32966,7 +32969,7 @@ const OH = /* @__PURE__ */ a((e) => /* @__PURE__ */ y(
32966
32969
  `${f.id}-placeholder`
32967
32970
  ) : null }, f.id)), "renderTreeItems");
32968
32971
  return /* @__PURE__ */ G(
32969
- ot,
32972
+ nt,
32970
32973
  {
32971
32974
  display: "flex",
32972
32975
  flex: 1,
@@ -32977,7 +32980,7 @@ const OH = /* @__PURE__ */ a((e) => /* @__PURE__ */ y(
32977
32980
  },
32978
32981
  children: [
32979
32982
  /* @__PURE__ */ y(
32980
- ot,
32983
+ nt,
32981
32984
  {
32982
32985
  flex: { xs: "1 0 auto", md: "0 0 300px" },
32983
32986
  sx: {
@@ -32998,7 +33001,7 @@ const OH = /* @__PURE__ */ a((e) => /* @__PURE__ */ y(
32998
33001
  }
32999
33002
  ),
33000
33003
  /* @__PURE__ */ y(
33001
- ot,
33004
+ nt,
33002
33005
  {
33003
33006
  flexGrow: 1,
33004
33007
  sx: {
@@ -33115,7 +33118,7 @@ const OH = /* @__PURE__ */ a((e) => /* @__PURE__ */ y(
33115
33118
  }, "handleTodos");
33116
33119
  return b ? null : /* @__PURE__ */ G(dn, { children: [
33117
33120
  /* @__PURE__ */ y(
33118
- ot,
33121
+ nt,
33119
33122
  {
33120
33123
  display: "flex",
33121
33124
  alignItems: "center",
@@ -33625,7 +33628,7 @@ function Vc(e, t) {
33625
33628
  }
33626
33629
  a(Vc, "compareDeep");
33627
33630
  var ao;
33628
- let nt = (ao = class {
33631
+ let ot = (ao = class {
33629
33632
  /**
33630
33633
  @internal
33631
33634
  */
@@ -33730,7 +33733,7 @@ let nt = (ao = class {
33730
33733
  return r.sort((n, o) => n.type.rank - o.type.rank), r;
33731
33734
  }
33732
33735
  }, a(ao, "Mark"), ao);
33733
- nt.none = [];
33736
+ ot.none = [];
33734
33737
  const sy = class sy extends Error {
33735
33738
  };
33736
33739
  a(sy, "ReplaceError");
@@ -34044,7 +34047,7 @@ const Es = class Es {
34044
34047
  marks() {
34045
34048
  let t = this.parent, r = this.index();
34046
34049
  if (t.content.size == 0)
34047
- return nt.none;
34050
+ return ot.none;
34048
34051
  if (this.textOffset)
34049
34052
  return t.child(r).marks;
34050
34053
  let n = t.maybeChild(r - 1), o = t.maybeChild(r);
@@ -34217,7 +34220,7 @@ let Qo = (so = class {
34217
34220
  /**
34218
34221
  @internal
34219
34222
  */
34220
- constructor(t, r, n, o = nt.none) {
34223
+ constructor(t, r, n, o = ot.none) {
34221
34224
  this.type = t, this.attrs = r, this.marks = o, this.content = n || se.empty;
34222
34225
  }
34223
34226
  /**
@@ -34325,7 +34328,7 @@ let Qo = (so = class {
34325
34328
  attributes, and marks.
34326
34329
  */
34327
34330
  hasMarkup(t, r, n) {
34328
- return this.type == t && Vc(this.attrs, r || t.defaultAttrs || jH) && nt.sameSet(this.marks, n || nt.none);
34331
+ return this.type == t && Vc(this.attrs, r || t.defaultAttrs || jH) && ot.sameSet(this.marks, n || ot.none);
34329
34332
  }
34330
34333
  /**
34331
34334
  Create a new node with the same markup as this node, containing
@@ -34535,12 +34538,12 @@ let Qo = (so = class {
34535
34538
  */
34536
34539
  check() {
34537
34540
  this.type.checkContent(this.content), this.type.checkAttrs(this.attrs);
34538
- let t = nt.none;
34541
+ let t = ot.none;
34539
34542
  for (let r = 0; r < this.marks.length; r++) {
34540
34543
  let n = this.marks[r];
34541
34544
  n.type.checkAttrs(n.attrs), t = n.addToSet(t);
34542
34545
  }
34543
- if (!nt.sameSet(t, this.marks))
34546
+ if (!ot.sameSet(t, this.marks))
34544
34547
  throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map((r) => r.type.name)}`);
34545
34548
  this.content.forEach((r) => r.check());
34546
34549
  }
@@ -35112,7 +35115,7 @@ let oO = (oi = class {
35112
35115
  create(t = null, r, n) {
35113
35116
  if (this.isText)
35114
35117
  throw new Error("NodeType.create can't construct text nodes");
35115
- return new Qo(this, this.computeAttrs(t), se.from(r), nt.setFrom(n));
35118
+ return new Qo(this, this.computeAttrs(t), se.from(r), ot.setFrom(n));
35116
35119
  }
35117
35120
  /**
35118
35121
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
@@ -35120,7 +35123,7 @@ let oO = (oi = class {
35120
35123
  if it doesn't match.
35121
35124
  */
35122
35125
  createChecked(t = null, r, n) {
35123
- return r = se.from(r), this.checkContent(r), new Qo(this, this.computeAttrs(t), r, nt.setFrom(n));
35126
+ return r = se.from(r), this.checkContent(r), new Qo(this, this.computeAttrs(t), r, ot.setFrom(n));
35124
35127
  }
35125
35128
  /**
35126
35129
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
@@ -35138,7 +35141,7 @@ let oO = (oi = class {
35138
35141
  r = s.append(r);
35139
35142
  }
35140
35143
  let o = this.contentMatch.matchFragment(r), i = o && o.fillBefore(se.empty, !0);
35141
- return i ? new Qo(this, t, r.append(i), nt.setFrom(n)) : null;
35144
+ return i ? new Qo(this, t, r.append(i), ot.setFrom(n)) : null;
35142
35145
  }
35143
35146
  /**
35144
35147
  Returns true if the given fragment is valid content for this node
@@ -35194,7 +35197,7 @@ let oO = (oi = class {
35194
35197
  let r;
35195
35198
  for (let n = 0; n < t.length; n++)
35196
35199
  this.allowsMarkType(t[n].type) ? r && r.push(t[n]) : r || (r = t.slice(0, n));
35197
- return r ? r.length ? r : nt.none : t;
35200
+ return r ? r.length ? r : ot.none : t;
35198
35201
  }
35199
35202
  /**
35200
35203
  @internal
@@ -35238,7 +35241,7 @@ const Ju = class Ju {
35238
35241
  constructor(t, r, n, o) {
35239
35242
  this.name = t, this.rank = r, this.schema = n, this.spec = o, this.attrs = VT(t, o.attrs), this.excluded = null;
35240
35243
  let i = jT(this.attrs);
35241
- this.instance = i ? new nt(this, i) : null;
35244
+ this.instance = i ? new ot(this, i) : null;
35242
35245
  }
35243
35246
  /**
35244
35247
  Create a mark of this type. `attrs` may be `null` or an object
@@ -35246,7 +35249,7 @@ const Ju = class Ju {
35246
35249
  they have defaults, will be added.
35247
35250
  */
35248
35251
  create(t = null) {
35249
- return !t && this.instance ? this.instance : new nt(this, zT(this.attrs, t));
35252
+ return !t && this.instance ? this.instance : new ot(this, zT(this.attrs, t));
35250
35253
  }
35251
35254
  /**
35252
35255
  @internal
@@ -35339,7 +35342,7 @@ const py = class py {
35339
35342
  */
35340
35343
  text(t, r) {
35341
35344
  let n = this.nodes.text;
35342
- return new Jf(n, n.defaultAttrs, t, nt.setFrom(r));
35345
+ return new Jf(n, n.defaultAttrs, t, ot.setFrom(r));
35343
35346
  }
35344
35347
  /**
35345
35348
  Create a mark with the given type and attributes.
@@ -35359,7 +35362,7 @@ const py = class py {
35359
35362
  bound.
35360
35363
  */
35361
35364
  markFromJSON(t) {
35362
- return nt.fromJSON(this, t);
35365
+ return ot.fromJSON(this, t);
35363
35366
  }
35364
35367
  /**
35365
35368
  @internal
@@ -35425,7 +35428,7 @@ const ws = class ws {
35425
35428
  */
35426
35429
  parse(t, r = {}) {
35427
35430
  let n = new Yc(this, r, !1);
35428
- return n.addAll(t, nt.none, r.from, r.to), n.finish();
35431
+ return n.addAll(t, ot.none, r.from, r.to), n.finish();
35429
35432
  }
35430
35433
  /**
35431
35434
  Parses the content of the given DOM node, like
@@ -35437,7 +35440,7 @@ const ws = class ws {
35437
35440
  */
35438
35441
  parseSlice(t, r = {}) {
35439
35442
  let n = new Yc(this, r, !0);
35440
- return n.addAll(t, nt.none, r.from, r.to), fe.maxOpen(n.finish());
35443
+ return n.addAll(t, ot.none, r.from, r.to), fe.maxOpen(n.finish());
35441
35444
  }
35442
35445
  /**
35443
35446
  @internal
@@ -35563,7 +35566,7 @@ function aO(e, t, r) {
35563
35566
  a(aO, "wsOptionsFor");
35564
35567
  const fy = class fy {
35565
35568
  constructor(t, r, n, o, i, s) {
35566
- this.type = t, this.attrs = r, this.marks = n, this.solid = o, this.options = s, this.content = [], this.activeMarks = nt.none, this.match = i || (s & bs ? null : t.contentMatch);
35569
+ this.type = t, this.attrs = r, this.marks = n, this.solid = o, this.options = s, this.content = [], this.activeMarks = ot.none, this.match = i || (s & bs ? null : t.contentMatch);
35567
35570
  }
35568
35571
  findWrapping(t) {
35569
35572
  if (!this.match) {
@@ -35600,7 +35603,7 @@ const hy = class hy {
35600
35603
  constructor(t, r, n) {
35601
35604
  this.parser = t, this.options = r, this.isOpen = n, this.open = 0;
35602
35605
  let o = r.topNode, i, s = aO(null, r.preserveWhitespace, 0) | (n ? bs : 0);
35603
- o ? i = new Hi(o.type, o.attrs, nt.none, !0, r.topMatch || o.type.contentMatch, s) : n ? i = new Hi(null, null, nt.none, !0, null, s) : i = new Hi(t.schema.topNodeType, null, nt.none, !0, null, s), this.nodes = [i], this.find = r.findPositions, this.needsBlock = !1;
35606
+ o ? i = new Hi(o.type, o.attrs, ot.none, !0, r.topMatch || o.type.contentMatch, s) : n ? i = new Hi(null, null, ot.none, !0, null, s) : i = new Hi(t.schema.topNodeType, null, ot.none, !0, null, s), this.nodes = [i], this.find = r.findPositions, this.needsBlock = !1;
35604
35607
  }
35605
35608
  get top() {
35606
35609
  return this.nodes[this.open];
@@ -35747,7 +35750,7 @@ const hy = class hy {
35747
35750
  this.closeExtra();
35748
35751
  let o = this.top;
35749
35752
  o.match && (o.match = o.match.matchType(t.type));
35750
- let i = nt.none;
35753
+ let i = ot.none;
35751
35754
  for (let s of n.concat(t.marks))
35752
35755
  (o.type ? o.type.allowsMarkType(s.type) : lO(s.type, t.type)) && (i = s.addToSet(i));
35753
35756
  return o.content.push(t.mark(i)), !0;
@@ -35767,7 +35770,7 @@ const hy = class hy {
35767
35770
  s.match = s.match && s.match.matchType(t);
35768
35771
  let l = aO(t, i, s.options);
35769
35772
  s.options & bs && s.content.length == 0 && (l |= bs);
35770
- let u = nt.none;
35773
+ let u = ot.none;
35771
35774
  return n = n.filter((d) => (s.type ? s.type.allowsMarkType(d.type) : lO(d.type, t)) ? (u = d.addToSet(u), !1) : !0), this.nodes.push(new Hi(t, r, u, o, null, l)), this.open++, n;
35772
35775
  }
35773
35776
  // Make sure all nodes above this.open are finished and added to
@@ -37597,7 +37600,7 @@ const yy = class yy {
37597
37600
  position `pos`.
37598
37601
  */
37599
37602
  removeNodeMark(t, r) {
37600
- if (!(r instanceof nt)) {
37603
+ if (!(r instanceof ot)) {
37601
37604
  let n = this.doc.nodeAt(t);
37602
37605
  if (!n)
37603
37606
  throw new RangeError("No node at position " + t);
@@ -38096,7 +38099,7 @@ const gO = 1, Jl = 2, bO = 4, xy = class xy extends Zc {
38096
38099
  this is already the case.
38097
38100
  */
38098
38101
  ensureMarks(t) {
38099
- return nt.sameSet(this.storedMarks || this.selection.$from.marks(), t) || this.setStoredMarks(t), this;
38102
+ return ot.sameSet(this.storedMarks || this.selection.$from.marks(), t) || this.setStoredMarks(t), this;
38100
38103
  }
38101
38104
  /**
38102
38105
  Add a mark to the set of stored marks.
@@ -38141,7 +38144,7 @@ const gO = 1, Jl = 2, bO = 4, xy = class xy extends Zc {
38141
38144
  */
38142
38145
  replaceSelectionWith(t, r = !0) {
38143
38146
  let n = this.selection;
38144
- return r && (t = t.mark(this.storedMarks || (n.empty ? n.$from.marks() : n.$from.marksAcross(n.$to) || nt.none))), n.replaceWith(this, t), this;
38147
+ return r && (t = t.mark(this.storedMarks || (n.empty ? n.$from.marks() : n.$from.marksAcross(n.$to) || ot.none))), n.replaceWith(this, t), this;
38145
38148
  }
38146
38149
  /**
38147
38150
  Delete the selection.
@@ -39453,7 +39456,7 @@ const ed = class ed extends yi {
39453
39456
  updateChildren(t, r) {
39454
39457
  let n = this.node.inlineContent, o = r, i = t.composing ? this.localCompositionInfo(t, r) : null, s = i && i.pos > -1 ? i : null, l = i && i.pos < 0, u = new ph(this, s && s.node, t);
39455
39458
  XW(this.node, this.innerDeco, (d, p, f) => {
39456
- d.spec.marks ? u.syncToMarks(d.spec.marks, n, t) : d.type.side >= 0 && !f && u.syncToMarks(p == this.node.childCount ? nt.none : this.node.child(p).marks, n, t), u.placeWidget(d, t, o);
39459
+ d.spec.marks ? u.syncToMarks(d.spec.marks, n, t) : d.type.side >= 0 && !f && u.syncToMarks(p == this.node.childCount ? ot.none : this.node.child(p).marks, n, t), u.placeWidget(d, t, o);
39457
39460
  }, (d, p, f, h) => {
39458
39461
  u.syncToMarks(d.marks, n, t);
39459
39462
  let m;
@@ -53550,7 +53553,7 @@ var GX = /* @__PURE__ */ a(function(e) {
53550
53553
  i(!0), u(h);
53551
53554
  }, "displayColorChoiceDialog");
53552
53555
  return x.createElement(
53553
- ot,
53556
+ nt,
53554
53557
  { sx: { position: "relative" } },
53555
53558
  x.createElement(
53556
53559
  YX,
@@ -53595,8 +53598,8 @@ var GX = /* @__PURE__ */ a(function(e) {
53595
53598
  gap: 1,
53596
53599
  zIndex: 1
53597
53600
  } }, u.map(function(p, f) {
53598
- return x.createElement(ot, { key: "shade-".concat(p), sx: { display: "flex", flexDirection: "row", gap: 1 } }, l.map(function(h, m) {
53599
- return x.createElement(ot, {
53601
+ return x.createElement(nt, { key: "shade-".concat(p), sx: { display: "flex", flexDirection: "row", gap: 1 } }, l.map(function(h, m) {
53602
+ return x.createElement(nt, {
53600
53603
  key: "color-".concat(f * l.length + m + 1),
53601
53604
  sx: {
53602
53605
  width: 16,
@@ -54009,7 +54012,7 @@ const Fee = /* @__PURE__ */ a((e) => {
54009
54012
  propsContenido: { helperText: o, sx: i, readOnly: s }
54010
54013
  } = ar(e);
54011
54014
  return n ? null : /* @__PURE__ */ G(
54012
- ot,
54015
+ nt,
54013
54016
  {
54014
54017
  sx: {
54015
54018
  ...r,