@luminix/mui-cms 0.1.21 → 0.1.22

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/mui-cms.js CHANGED
@@ -1,18 +1,18 @@
1
1
  var gr = Object.defineProperty;
2
2
  var br = (e, t, n) => t in e ? gr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var $e = (e, t, n) => br(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { config as oe, collect as V, app as T, model as ye, App as St, Model as Oe, Route as yr, Config as re } from "@luminix/core";
4
+ import { config as oe, collect as V, app as k, model as ye, App as St, Model as Oe, Route as yr, Config as re } from "@luminix/core";
5
5
  import { jsx as i, jsxs as w, Fragment as B } from "react/jsx-runtime";
6
- import { Outlet as wr, useParams as Sr, useNavigate as At, useSearchParams as K, Link as Re, Form as Ar } from "react-router-dom";
7
- import { useCollection as mn, PaginationProvider as xr, usePagination as Se, ModelForm as Cr, useApplyReducers as xt, Forms as Er, LuminixProvider as kr } from "@luminix/react";
8
- import { useMediaQuery as Me, Dialog as Ct, DialogTitle as Et, DialogContent as kt, DialogContentText as Tr, DialogActions as Tt, Button as M, Snackbar as Dr, Alert as Or, IconButton as q, AlertTitle as Rr, Box as H, Unstable_Grid2 as Q, Fab as Pr, SpeedDial as vr, SpeedDialIcon as Fr, SpeedDialAction as Lr, ButtonGroup as Br, Popper as Ir, Grow as Mr, Paper as Dt, ClickAwayListener as Nr, MenuList as jr, MenuItem as se, AppBar as gn, Toolbar as Ur, Typography as $, Drawer as bn, Divider as Pe, Autocomplete as qr, TextField as Ae, CircularProgress as _r, Switch as Hr, Stack as N, FormControl as at, InputLabel as it, Select as ve, Badge as Ot, Popover as zr, Link as lt, Collapse as yn, TableCell as ee, RadioGroup as $t, FormControlLabel as Ke, Radio as Ye, TableContainer as Wr, Table as Vr, TableHead as $r, TableRow as fe, Checkbox as Rt, TableSortLabel as Kr, Skeleton as Kt, TableBody as Yr, TableFooter as Jr, Tabs as Gr, Tab as Yt, Breadcrumbs as Zr, List as Xr, ListItem as Qr, ListItemButton as eo, ListItemIcon as wn, ListItemText as Sn, Menu as An, Avatar as to, CssBaseline as no } from "@mui/material";
6
+ import { Outlet as wr, useParams as Sr, useNavigate as At, useSearchParams as G, Link as Re, Form as Ar } from "react-router-dom";
7
+ import { useCollection as mn, PaginationProvider as xr, usePagination as Se, ModelForm as Cr, useApplyReducers as xt, Forms as Er, LuminixProvider as Tr } from "@luminix/react";
8
+ import { useMediaQuery as Me, Dialog as Ct, DialogTitle as Et, DialogContent as Tt, DialogContentText as kr, DialogActions as kt, Button as M, Snackbar as Dr, Alert as Or, IconButton as q, AlertTitle as Rr, Box as H, Unstable_Grid2 as Q, Fab as Pr, SpeedDial as vr, SpeedDialIcon as Fr, SpeedDialAction as Lr, ButtonGroup as Br, Popper as Ir, Grow as Mr, Paper as Dt, ClickAwayListener as Nr, MenuList as jr, MenuItem as se, AppBar as gn, Toolbar as Ur, Typography as $, Drawer as bn, Divider as Pe, Autocomplete as qr, TextField as Ae, CircularProgress as _r, Switch as Hr, Stack as N, FormControl as at, InputLabel as it, Select as ve, Badge as Ot, Popover as zr, Link as lt, Collapse as yn, TableCell as ee, RadioGroup as $t, FormControlLabel as Ke, Radio as Ye, TableContainer as Wr, Table as Vr, TableHead as $r, TableRow as fe, Checkbox as Rt, TableSortLabel as Kr, Skeleton as Kt, TableBody as Yr, TableFooter as Jr, Tabs as Gr, Tab as Yt, Breadcrumbs as Zr, List as Xr, ListItem as Qr, ListItemButton as eo, ListItemIcon as wn, ListItemText as Sn, Menu as An, Avatar as to, CssBaseline as no } from "@mui/material";
9
9
  import p, { useContext as xn, useMemo as ro } from "react";
10
10
  import { useTranslation as L, initReactI18next as oo } from "react-i18next";
11
- import { Close as Ne, ArrowDropDown as Cn, ChevronLeft as je, ChevronRight as Ue, HighlightOffOutlined as ct, AddCircleOutline as En, FilterList as kn, Menu as Tn, LastPage as Dn, FirstPage as On, Search as ut, SwapVert as Rn, ArrowUpward as Pn, ArrowDownward as vn, MoreVert as Pt, ExpandLess as Fn, ExpandMore as Ln, Add as so, CategoryOutlined as ao, DashboardOutlined as io, PeopleOutlined as lo } from "@mui/icons-material";
11
+ import { Close as Ne, ArrowDropDown as Cn, ChevronLeft as je, ChevronRight as Ue, HighlightOffOutlined as ct, AddCircleOutline as En, FilterList as Tn, Menu as kn, LastPage as Dn, FirstPage as On, Search as ut, SwapVert as Rn, ArrowUpward as Pn, ArrowDownward as vn, MoreVert as Pt, ExpandLess as Fn, ExpandMore as Ln, Add as so, CategoryOutlined as ao, DashboardOutlined as io, PeopleOutlined as lo } from "@mui/icons-material";
12
12
  import { useTheme as vt, styled as Z, createTheme as co, ThemeProvider as uo } from "@mui/material/styles";
13
- import { Str as k, Obj as G, DateTime as Fe, Query as Bn, Func as fo, MakeFacade as Ft, Reducible as In, ServiceProvider as Mn } from "@luminix/support";
13
+ import { Str as T, Obj as J, DateTime as Fe, Query as Bn, Func as fo, MakeFacade as Ft, Reducible as In, ServiceProvider as Mn } from "@luminix/support";
14
14
  import Jt from "react-dom";
15
- import J from "i18next";
15
+ import Y from "i18next";
16
16
  const ho = {
17
17
  open: !1,
18
18
  setOpen: () => {
@@ -29,11 +29,11 @@ const ho = {
29
29
  setShowBackButton: () => {
30
30
  }
31
31
  }, X = p.createContext(ho), Je = document.title, po = ({ children: e }) => {
32
- const [t, n] = p.useState(!1), [r, o] = p.useState(""), [s, a] = p.useState(!1), [l, d] = p.useState(!1), u = oe("luminix.cms.layout", {}), c = Me((y) => y.breakpoints.up((u == null ? void 0 : u.breakpoint) || "md")), h = {
32
+ const [t, n] = p.useState(!1), [r, o] = p.useState(""), [s, a] = p.useState(!1), [l, d] = p.useState(!1), c = oe("luminix.cms.layout", {}), u = Me((y) => y.breakpoints.up((c == null ? void 0 : c.breakpoint) || "md")), h = {
33
33
  open: t,
34
34
  setOpen: n,
35
- layout: u,
36
- isBreakpointUp: c,
35
+ layout: c,
36
+ isBreakpointUp: u,
37
37
  currentPage: r,
38
38
  setCurrentPage: o,
39
39
  showSearch: s,
@@ -60,14 +60,14 @@ function mo(e) {
60
60
  }, [e]), e || t;
61
61
  }
62
62
  function go({ children: e, ...t }) {
63
- const [{ current: n, resolve: r }, o] = p.useState({}), s = mo(n), a = p.useCallback((c) => new Promise((h) => {
63
+ const [{ current: n, resolve: r }, o] = p.useState({}), s = mo(n), a = p.useCallback((u) => new Promise((h) => {
64
64
  o({
65
- current: typeof c == "string" ? { message: c } : c,
65
+ current: typeof u == "string" ? { message: u } : u,
66
66
  resolve: h
67
67
  });
68
68
  }), []), { t: l } = L(), d = () => {
69
69
  r && r(!1), o({});
70
- }, u = () => {
70
+ }, c = () => {
71
71
  r && r(!0), o({});
72
72
  };
73
73
  return /* @__PURE__ */ w(jn.Provider, { value: {
@@ -87,11 +87,11 @@ function go({ children: e, ...t }) {
87
87
  ...t,
88
88
  children: [
89
89
  (s == null ? void 0 : s.title) && /* @__PURE__ */ i(Et, { id: "alert-dialog-title", children: s.title }),
90
- /* @__PURE__ */ i(kt, { children: /* @__PURE__ */ i(Tr, { id: "alert-dialog-description", children: s == null ? void 0 : s.message }) }),
91
- /* @__PURE__ */ w(Tt, { children: [
90
+ /* @__PURE__ */ i(Tt, { children: /* @__PURE__ */ i(kr, { id: "alert-dialog-description", children: s == null ? void 0 : s.message }) }),
91
+ /* @__PURE__ */ w(kt, { children: [
92
92
  (s == null ? void 0 : s.type) === "confirm" && /* @__PURE__ */ w(B, { children: [
93
93
  /* @__PURE__ */ i(M, { onClick: d, children: (s == null ? void 0 : s.cancelText) ?? l("No") }),
94
- /* @__PURE__ */ i(M, { onClick: u, autoFocus: !0, children: (s == null ? void 0 : s.confirmText) ?? l("Yes") })
94
+ /* @__PURE__ */ i(M, { onClick: c, autoFocus: !0, children: (s == null ? void 0 : s.confirmText) ?? l("Yes") })
95
95
  ] }),
96
96
  ((s == null ? void 0 : s.type) ?? "alert") === "alert" && /* @__PURE__ */ i(M, { onClick: d, autoFocus: !0, children: (s == null ? void 0 : s.confirmText) ?? l("Ok") })
97
97
  ] })
@@ -127,22 +127,22 @@ const Lt = p.createContext({
127
127
  sx: o,
128
128
  ...s
129
129
  }) => {
130
- const a = mn(dt), l = v(), u = vt().spacing(l ? 3 : 1), [c, h] = p.useState(), [y, S] = p.useState(u), { vertical: b = "bottom" } = r || {}, m = (g, x) => {
130
+ const a = mn(dt), l = v(), c = vt().spacing(l ? 3 : 1), [u, h] = p.useState(), [y, S] = p.useState(c), { vertical: b = "bottom" } = r || {}, m = (g, x) => {
131
131
  x !== "clickaway" && h(void 0);
132
132
  };
133
133
  return p.useEffect(() => {
134
- if (!c && a.isNotEmpty()) {
134
+ if (!u && a.isNotEmpty()) {
135
135
  const g = setTimeout(() => {
136
136
  h(dt.pull(0) ?? void 0);
137
137
  }, 100);
138
138
  return () => clearTimeout(g);
139
139
  }
140
- }, [c, a]), /* @__PURE__ */ w(Lt.Provider, { value: {
141
- isOpen: !!c,
140
+ }, [u, a]), /* @__PURE__ */ w(Lt.Provider, { value: {
141
+ isOpen: !!u,
142
142
  notify: bo,
143
143
  dismissNotification: m,
144
144
  notifications: a.all(),
145
- current: c,
145
+ current: u,
146
146
  displacement: y,
147
147
  setDisplacement: S
148
148
  }, children: [
@@ -150,7 +150,7 @@ const Lt = p.createContext({
150
150
  /* @__PURE__ */ i(
151
151
  Dr,
152
152
  {
153
- open: !!c,
153
+ open: !!u,
154
154
  autoHideDuration: t,
155
155
  anchorOrigin: r,
156
156
  onClose: m,
@@ -159,15 +159,15 @@ const Lt = p.createContext({
159
159
  [b]: `${y} !important`
160
160
  },
161
161
  ...s,
162
- children: c && /* @__PURE__ */ w(
162
+ children: u && /* @__PURE__ */ w(
163
163
  Or,
164
164
  {
165
165
  onClose: m,
166
- severity: c.severity,
166
+ severity: u.severity,
167
167
  variant: n,
168
168
  sx: { width: "100%" },
169
- action: c.actions && [
170
- ...c.actions.map(({ label: g, callback: x }, A) => /* @__PURE__ */ i(
169
+ action: u.actions && [
170
+ ...u.actions.map(({ label: g, callback: x }, A) => /* @__PURE__ */ i(
171
171
  M,
172
172
  {
173
173
  color: "inherit",
@@ -180,8 +180,8 @@ const Lt = p.createContext({
180
180
  /* @__PURE__ */ i(q, { "aria-label": "close", color: "inherit", size: "small", onClick: m, children: /* @__PURE__ */ i(Ne, {}) }, "close")
181
181
  ],
182
182
  children: [
183
- c.title && /* @__PURE__ */ i(Rr, { children: c.title }),
184
- c.message
183
+ u.title && /* @__PURE__ */ i(Rr, { children: u.title }),
184
+ u.message
185
185
  ]
186
186
  }
187
187
  )
@@ -218,17 +218,17 @@ const Lt = p.createContext({
218
218
  },
219
219
  ...Object.entries(s).flatMap(([a, l]) => [
220
220
  {
221
- path: "/" + k.kebab(l.plural()),
221
+ path: "/" + T.kebab(l.plural()),
222
222
  name: `luminix.cms.${a}.index`,
223
223
  element: /* @__PURE__ */ i(Ge, { Model: l, children: /* @__PURE__ */ i(xr, { factory: l.query, children: /* @__PURE__ */ i(r, {}) }) })
224
224
  },
225
225
  {
226
- path: "/" + k.kebab(l.plural()) + "/create",
226
+ path: "/" + T.kebab(l.plural()) + "/create",
227
227
  name: `luminix.cms.${a}.create`,
228
228
  element: /* @__PURE__ */ i(Ge, { Model: l, children: /* @__PURE__ */ i(o, { create: !0 }) })
229
229
  },
230
230
  {
231
- path: "/" + k.kebab(l.plural()) + "/:id",
231
+ path: "/" + T.kebab(l.plural()) + "/:id",
232
232
  name: `luminix.cms.${a}.show`,
233
233
  element: /* @__PURE__ */ i(Ge, { Model: l, children: /* @__PURE__ */ i(o, {}) })
234
234
  }
@@ -248,7 +248,7 @@ const Ao = () => {
248
248
  }, xo = ({ error: e }) => /* @__PURE__ */ w("div", { children: [
249
249
  /* @__PURE__ */ i("h1", { children: "Ops..." }),
250
250
  /* @__PURE__ */ i("p", { children: "Something went wrong" }),
251
- T().hasDebugModeEnabled() && e && /* @__PURE__ */ i(B, { children: /* @__PURE__ */ w("pre", { style: { whiteSpace: "pre-wrap" }, children: [
251
+ k().hasDebugModeEnabled() && e && /* @__PURE__ */ i(B, { children: /* @__PURE__ */ w("pre", { style: { whiteSpace: "pre-wrap" }, children: [
252
252
  e.message,
253
253
  /* @__PURE__ */ i("br", {}),
254
254
  e.stack
@@ -256,7 +256,7 @@ const Ao = () => {
256
256
  ] });
257
257
  function z(e, t) {
258
258
  const { layout: n } = xn(X);
259
- return ro(() => G.get(n, e, t), [n, e, t]);
259
+ return ro(() => J.get(n, e, t), [n, e, t]);
260
260
  }
261
261
  const Co = Z("div")(({ theme: e }) => ({
262
262
  padding: e.spacing(0, 1),
@@ -267,10 +267,10 @@ const Co = Z("div")(({ theme: e }) => ({
267
267
  DesktopPageTitle: r,
268
268
  ["Layout.AppBar"]: o,
269
269
  ["Layout.Drawer"]: s
270
- } = T("cms").getComponents(), a = z("appBar.height"), {
270
+ } = k("cms").getComponents(), a = z("appBar.height"), {
271
271
  AppBar: l,
272
272
  Drawer: d,
273
- main: u
273
+ main: c
274
274
  } = t || {};
275
275
  return /* @__PURE__ */ w(H, { sx: { display: "flex" }, ...n, children: [
276
276
  /* @__PURE__ */ i(
@@ -289,7 +289,7 @@ const Co = Z("div")(({ theme: e }) => ({
289
289
  flexGrow: 1
290
290
  // p: { xs: 1, sm: 2, md: 3 },
291
291
  },
292
- ...u,
292
+ ...c,
293
293
  children: [
294
294
  /* @__PURE__ */ i(Co, { style: { height: a } }),
295
295
  /* @__PURE__ */ i(r, {}),
@@ -299,7 +299,7 @@ const Co = Z("div")(({ theme: e }) => ({
299
299
  )
300
300
  ] });
301
301
  };
302
- function ko() {
302
+ function To() {
303
303
  const { setShowSearch: e } = p.useContext(X);
304
304
  p.useEffect(() => (e(!0), () => {
305
305
  e(!1);
@@ -309,25 +309,25 @@ function te() {
309
309
  const { Model: e } = p.useContext(Nn);
310
310
  return e;
311
311
  }
312
- const To = () => {
312
+ const ko = () => {
313
313
  const e = te(), {
314
314
  data: t,
315
315
  error: n,
316
316
  loading: r
317
317
  } = Se();
318
- Bt(e.plural()), ko();
318
+ Bt(e.plural()), To();
319
319
  const o = v(), {
320
320
  Breadcrumbs: s,
321
321
  ["ModelIndex.Pagination"]: a,
322
322
  ["ModelIndex.StaticActions"]: l,
323
323
  ["ModelIndex.Table"]: d,
324
- ["ModelIndex.Table.TableBody"]: u,
325
- ["ModelIndex.Table.TableHead"]: c,
324
+ ["ModelIndex.Table.TableBody"]: c,
325
+ ["ModelIndex.Table.TableHead"]: u,
326
326
  ["ModelIndex.Table.TableFooter"]: h,
327
327
  ["ModelIndex.Table.TableToolbar"]: y,
328
328
  ["ModelIndex.Table.TableBody.TableRow"]: S,
329
329
  ["ModelIndex.Tabs"]: b
330
- } = T("cms").getComponents();
330
+ } = k("cms").getComponents();
331
331
  return /* @__PURE__ */ i(H, { sx: { p: { xs: 1, sm: 2, md: 3 } }, children: /* @__PURE__ */ w(Q, { container: !0, spacing: 2, children: [
332
332
  /* @__PURE__ */ w(
333
333
  Q,
@@ -358,8 +358,8 @@ const To = () => {
358
358
  loading: r,
359
359
  error: n,
360
360
  children: [
361
- /* @__PURE__ */ i(c, { children: /* @__PURE__ */ i(y, {}) }),
362
- /* @__PURE__ */ i(u, { children: (m) => /* @__PURE__ */ i(S, { item: m }, m.getKey()) }),
361
+ /* @__PURE__ */ i(u, { children: /* @__PURE__ */ i(y, {}) }),
362
+ /* @__PURE__ */ i(c, { children: (m) => /* @__PURE__ */ i(S, { item: m }, m.getKey()) }),
363
363
  /* @__PURE__ */ i(h, {})
364
364
  ]
365
365
  }
@@ -380,25 +380,25 @@ function Un(e, t) {
380
380
  const { toString: Oo } = Object.prototype, { getPrototypeOf: It } = Object, qe = /* @__PURE__ */ ((e) => (t) => {
381
381
  const n = Oo.call(t);
382
382
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
383
- })(/* @__PURE__ */ Object.create(null)), Y = (e) => (e = e.toLowerCase(), (t) => qe(t) === e), _e = (e) => (t) => typeof t === e, { isArray: he } = Array, we = _e("undefined");
383
+ })(/* @__PURE__ */ Object.create(null)), K = (e) => (e = e.toLowerCase(), (t) => qe(t) === e), _e = (e) => (t) => typeof t === e, { isArray: he } = Array, we = _e("undefined");
384
384
  function Ro(e) {
385
385
  return e !== null && !we(e) && e.constructor !== null && !we(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
386
386
  }
387
- const qn = Y("ArrayBuffer");
387
+ const qn = K("ArrayBuffer");
388
388
  function Po(e) {
389
389
  let t;
390
390
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && qn(e.buffer), t;
391
391
  }
392
- const vo = _e("string"), _ = _e("function"), _n = _e("number"), He = (e) => e !== null && typeof e == "object", Fo = (e) => e === !0 || e === !1, Te = (e) => {
392
+ const vo = _e("string"), _ = _e("function"), _n = _e("number"), He = (e) => e !== null && typeof e == "object", Fo = (e) => e === !0 || e === !1, ke = (e) => {
393
393
  if (qe(e) !== "object")
394
394
  return !1;
395
395
  const t = It(e);
396
396
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
397
- }, Lo = Y("Date"), Bo = Y("File"), Io = Y("Blob"), Mo = Y("FileList"), No = (e) => He(e) && _(e.pipe), jo = (e) => {
397
+ }, Lo = K("Date"), Bo = K("File"), Io = K("Blob"), Mo = K("FileList"), No = (e) => He(e) && _(e.pipe), jo = (e) => {
398
398
  let t;
399
399
  return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = qe(e)) === "formdata" || // detect form-data instance
400
400
  t === "object" && _(e.toString) && e.toString() === "[object FormData]"));
401
- }, Uo = Y("URLSearchParams"), [qo, _o, Ho, zo] = ["ReadableStream", "Request", "Response", "Headers"].map(Y), Wo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
401
+ }, Uo = K("URLSearchParams"), [qo, _o, Ho, zo] = ["ReadableStream", "Request", "Response", "Headers"].map(K), Wo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
402
402
  function xe(e, t, { allOwnKeys: n = !1 } = {}) {
403
403
  if (e === null || typeof e > "u")
404
404
  return;
@@ -426,7 +426,7 @@ const ie = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
426
426
  function ft() {
427
427
  const { caseless: e } = zn(this) && this || {}, t = {}, n = (r, o) => {
428
428
  const s = e && Hn(t, o) || o;
429
- Te(t[s]) && Te(r) ? t[s] = ft(t[s], r) : Te(r) ? t[s] = ft({}, r) : he(r) ? t[s] = r.slice() : t[s] = r;
429
+ ke(t[s]) && ke(r) ? t[s] = ft(t[s], r) : ke(r) ? t[s] = ft({}, r) : he(r) ? t[s] = r.slice() : t[s] = r;
430
430
  };
431
431
  for (let r = 0, o = arguments.length; r < o; r++)
432
432
  arguments[r] && xe(arguments[r], n);
@@ -474,12 +474,12 @@ const Vo = (e, t, n, { allOwnKeys: r } = {}) => (xe(t, (o, s) => {
474
474
  for (; (n = e.exec(t)) !== null; )
475
475
  r.push(n);
476
476
  return r;
477
- }, es = Y("HTMLFormElement"), ts = (e) => e.toLowerCase().replace(
477
+ }, es = K("HTMLFormElement"), ts = (e) => e.toLowerCase().replace(
478
478
  /[-_\s]([a-z\d])(\w*)/g,
479
479
  function(n, r, o) {
480
480
  return r.toUpperCase() + o;
481
481
  }
482
- ), Gt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ns = Y("RegExp"), Wn = (e, t) => {
482
+ ), Gt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ns = K("RegExp"), Wn = (e, t) => {
483
483
  const n = Object.getOwnPropertyDescriptors(e), r = {};
484
484
  xe(n, (o, s) => {
485
485
  let a;
@@ -539,7 +539,7 @@ const cs = (e) => {
539
539
  return r;
540
540
  };
541
541
  return n(e, 0);
542
- }, us = Y("AsyncFunction"), ds = (e) => e && (He(e) || _(e)) && _(e.then) && _(e.catch), $n = ((e, t) => e ? setImmediate : t ? ((n, r) => (ie.addEventListener("message", ({ source: o, data: s }) => {
542
+ }, us = K("AsyncFunction"), ds = (e) => e && (He(e) || _(e)) && _(e.then) && _(e.catch), $n = ((e, t) => e ? setImmediate : t ? ((n, r) => (ie.addEventListener("message", ({ source: o, data: s }) => {
543
543
  o === ie && s === n && r.length && r.shift()();
544
544
  }, !1), (o) => {
545
545
  r.push(o), ie.postMessage(n, "*");
@@ -556,7 +556,7 @@ const cs = (e) => {
556
556
  isNumber: _n,
557
557
  isBoolean: Fo,
558
558
  isObject: He,
559
- isPlainObject: Te,
559
+ isPlainObject: ke,
560
560
  isReadableStream: qo,
561
561
  isRequest: _o,
562
562
  isResponse: Ho,
@@ -579,7 +579,7 @@ const cs = (e) => {
579
579
  inherits: Ko,
580
580
  toFlatObject: Yo,
581
581
  kindOf: qe,
582
- kindOfTest: Y,
582
+ kindOfTest: K,
583
583
  endsWith: Jo,
584
584
  toArray: Go,
585
585
  forEachEntry: Xo,
@@ -684,10 +684,10 @@ function ze(e, t, n) {
684
684
  }, !1, function(m, g) {
685
685
  return !f.isUndefined(g[m]);
686
686
  });
687
- const r = n.metaTokens, o = n.visitor || c, s = n.dots, a = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(t);
687
+ const r = n.metaTokens, o = n.visitor || u, s = n.dots, a = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(t);
688
688
  if (!f.isFunction(o))
689
689
  throw new TypeError("visitor must be a function");
690
- function u(b) {
690
+ function c(b) {
691
691
  if (b === null) return "";
692
692
  if (f.isDate(b))
693
693
  return b.toISOString();
@@ -695,7 +695,7 @@ function ze(e, t, n) {
695
695
  throw new C("Blob is not supported. Use a Buffer instead.");
696
696
  return f.isArrayBuffer(b) || f.isTypedArray(b) ? d && typeof Blob == "function" ? new Blob([b]) : Buffer.from(b) : b;
697
697
  }
698
- function c(b, m, g) {
698
+ function u(b, m, g) {
699
699
  let x = b;
700
700
  if (b && !g && typeof b == "object") {
701
701
  if (f.endsWith(m, "{}"))
@@ -705,15 +705,15 @@ function ze(e, t, n) {
705
705
  !(f.isUndefined(E) || E === null) && t.append(
706
706
  // eslint-disable-next-line no-nested-ternary
707
707
  a === !0 ? Xt([m], P, s) : a === null ? m : m + "[]",
708
- u(E)
708
+ c(E)
709
709
  );
710
710
  }), !1;
711
711
  }
712
- return ht(b) ? !0 : (t.append(Xt(g, m, s), u(b)), !1);
712
+ return ht(b) ? !0 : (t.append(Xt(g, m, s), c(b)), !1);
713
713
  }
714
714
  const h = [], y = Object.assign(ms, {
715
- defaultVisitor: c,
716
- convertValue: u,
715
+ defaultVisitor: u,
716
+ convertValue: c,
717
717
  isVisitable: ht
718
718
  });
719
719
  function S(b, m) {
@@ -856,14 +856,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Cs
856
856
  ...Es,
857
857
  ...Ss
858
858
  };
859
- function ks(e, t) {
859
+ function Ts(e, t) {
860
860
  return ze(e, new j.classes.URLSearchParams(), Object.assign({
861
861
  visitor: function(n, r, o, s) {
862
862
  return j.isNode && f.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
863
863
  }
864
864
  }, t));
865
865
  }
866
- function Ts(e) {
866
+ function ks(e) {
867
867
  return f.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
868
868
  }
869
869
  function Ds(e) {
@@ -885,7 +885,7 @@ function Qn(e) {
885
885
  if (f.isFormData(e) && f.isFunction(e.entries)) {
886
886
  const n = {};
887
887
  return f.forEachEntry(e, (r, o) => {
888
- t(Ts(r), o, n, 0);
888
+ t(ks(r), o, n, 0);
889
889
  }), n;
890
890
  }
891
891
  return null;
@@ -916,7 +916,7 @@ const Ce = {
916
916
  let l;
917
917
  if (s) {
918
918
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
919
- return ks(t, this.formSerializer).toString();
919
+ return Ts(t, this.formSerializer).toString();
920
920
  if ((l = f.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
921
921
  const d = this.env && this.env.FormData;
922
922
  return ze(
@@ -1039,14 +1039,14 @@ let U = class {
1039
1039
  }
1040
1040
  set(t, n, r) {
1041
1041
  const o = this;
1042
- function s(l, d, u) {
1043
- const c = ge(d);
1044
- if (!c)
1042
+ function s(l, d, c) {
1043
+ const u = ge(d);
1044
+ if (!u)
1045
1045
  throw new Error("header name must be a non-empty string");
1046
- const h = f.findKey(o, c);
1047
- (!h || o[h] === void 0 || u === !0 || u === void 0 && o[h] !== !1) && (o[h || d] = De(l));
1046
+ const h = f.findKey(o, u);
1047
+ (!h || o[h] === void 0 || c === !0 || c === void 0 && o[h] !== !1) && (o[h || d] = De(l));
1048
1048
  }
1049
- const a = (l, d) => f.forEach(l, (u, c) => s(u, c, d));
1049
+ const a = (l, d) => f.forEach(l, (c, u) => s(c, u, d));
1050
1050
  if (f.isPlainObject(t) || t instanceof this.constructor)
1051
1051
  a(t, n);
1052
1052
  else if (f.isString(t) && (t = t.trim()) && !Fs(t))
@@ -1197,25 +1197,25 @@ function Ms(e, t) {
1197
1197
  const n = new Array(e), r = new Array(e);
1198
1198
  let o = 0, s = 0, a;
1199
1199
  return t = t !== void 0 ? t : 1e3, function(d) {
1200
- const u = Date.now(), c = r[s];
1201
- a || (a = u), n[o] = d, r[o] = u;
1200
+ const c = Date.now(), u = r[s];
1201
+ a || (a = c), n[o] = d, r[o] = c;
1202
1202
  let h = s, y = 0;
1203
1203
  for (; h !== o; )
1204
1204
  y += n[h++], h = h % e;
1205
- if (o = (o + 1) % e, o === s && (s = (s + 1) % e), u - a < t)
1205
+ if (o = (o + 1) % e, o === s && (s = (s + 1) % e), c - a < t)
1206
1206
  return;
1207
- const S = c && u - c;
1207
+ const S = u && c - u;
1208
1208
  return S ? Math.round(y * 1e3 / S) : void 0;
1209
1209
  };
1210
1210
  }
1211
1211
  function Ns(e, t) {
1212
1212
  let n = 0, r = 1e3 / t, o, s;
1213
- const a = (u, c = Date.now()) => {
1214
- n = c, o = null, s && (clearTimeout(s), s = null), e.apply(null, u);
1213
+ const a = (c, u = Date.now()) => {
1214
+ n = u, o = null, s && (clearTimeout(s), s = null), e.apply(null, c);
1215
1215
  };
1216
- return [(...u) => {
1217
- const c = Date.now(), h = c - n;
1218
- h >= r ? a(u, c) : (o = u, s || (s = setTimeout(() => {
1216
+ return [(...c) => {
1217
+ const u = Date.now(), h = u - n;
1218
+ h >= r ? a(c, u) : (o = c, s || (s = setTimeout(() => {
1219
1219
  s = null, a(o);
1220
1220
  }, r - h)));
1221
1221
  }, () => o && a(o)];
@@ -1224,15 +1224,15 @@ const Le = (e, t, n = 3) => {
1224
1224
  let r = 0;
1225
1225
  const o = Ms(50, 250);
1226
1226
  return Ns((s) => {
1227
- const a = s.loaded, l = s.lengthComputable ? s.total : void 0, d = a - r, u = o(d), c = a <= l;
1227
+ const a = s.loaded, l = s.lengthComputable ? s.total : void 0, d = a - r, c = o(d), u = a <= l;
1228
1228
  r = a;
1229
1229
  const h = {
1230
1230
  loaded: a,
1231
1231
  total: l,
1232
1232
  progress: l ? a / l : void 0,
1233
1233
  bytes: d,
1234
- rate: u || void 0,
1235
- estimated: u && l && c ? (l - a) / u : void 0,
1234
+ rate: c || void 0,
1235
+ estimated: c && l && u ? (l - a) / c : void 0,
1236
1236
  event: s,
1237
1237
  lengthComputable: l != null,
1238
1238
  [t ? "download" : "upload"]: !0
@@ -1317,30 +1317,30 @@ const on = (e) => e instanceof U ? { ...e } : e;
1317
1317
  function ue(e, t) {
1318
1318
  t = t || {};
1319
1319
  const n = {};
1320
- function r(u, c, h) {
1321
- return f.isPlainObject(u) && f.isPlainObject(c) ? f.merge.call({ caseless: h }, u, c) : f.isPlainObject(c) ? f.merge({}, c) : f.isArray(c) ? c.slice() : c;
1320
+ function r(c, u, h) {
1321
+ return f.isPlainObject(c) && f.isPlainObject(u) ? f.merge.call({ caseless: h }, c, u) : f.isPlainObject(u) ? f.merge({}, u) : f.isArray(u) ? u.slice() : u;
1322
1322
  }
1323
- function o(u, c, h) {
1324
- if (f.isUndefined(c)) {
1325
- if (!f.isUndefined(u))
1326
- return r(void 0, u, h);
1327
- } else return r(u, c, h);
1323
+ function o(c, u, h) {
1324
+ if (f.isUndefined(u)) {
1325
+ if (!f.isUndefined(c))
1326
+ return r(void 0, c, h);
1327
+ } else return r(c, u, h);
1328
1328
  }
1329
- function s(u, c) {
1330
- if (!f.isUndefined(c))
1331
- return r(void 0, c);
1329
+ function s(c, u) {
1330
+ if (!f.isUndefined(u))
1331
+ return r(void 0, u);
1332
1332
  }
1333
- function a(u, c) {
1334
- if (f.isUndefined(c)) {
1335
- if (!f.isUndefined(u))
1336
- return r(void 0, u);
1337
- } else return r(void 0, c);
1333
+ function a(c, u) {
1334
+ if (f.isUndefined(u)) {
1335
+ if (!f.isUndefined(c))
1336
+ return r(void 0, c);
1337
+ } else return r(void 0, u);
1338
1338
  }
1339
- function l(u, c, h) {
1339
+ function l(c, u, h) {
1340
1340
  if (h in t)
1341
- return r(u, c);
1341
+ return r(c, u);
1342
1342
  if (h in e)
1343
- return r(void 0, u);
1343
+ return r(void 0, c);
1344
1344
  }
1345
1345
  const d = {
1346
1346
  url: s,
@@ -1371,11 +1371,11 @@ function ue(e, t) {
1371
1371
  socketPath: a,
1372
1372
  responseEncoding: a,
1373
1373
  validateStatus: l,
1374
- headers: (u, c) => o(on(u), on(c), !0)
1374
+ headers: (c, u) => o(on(c), on(u), !0)
1375
1375
  };
1376
- return f.forEach(Object.keys(Object.assign({}, e, t)), function(c) {
1377
- const h = d[c] || o, y = h(e[c], t[c], c);
1378
- f.isUndefined(y) && h !== l || (n[c] = y);
1376
+ return f.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
1377
+ const h = d[u] || o, y = h(e[u], t[u], u);
1378
+ f.isUndefined(y) && h !== l || (n[u] = y);
1379
1379
  }), n;
1380
1380
  }
1381
1381
  const rr = (e) => {
@@ -1390,13 +1390,13 @@ const rr = (e) => {
1390
1390
  if (j.hasStandardBrowserEnv || j.hasStandardBrowserWebWorkerEnv)
1391
1391
  a.setContentType(void 0);
1392
1392
  else if ((d = a.getContentType()) !== !1) {
1393
- const [u, ...c] = d ? d.split(";").map((h) => h.trim()).filter(Boolean) : [];
1394
- a.setContentType([u || "multipart/form-data", ...c].join("; "));
1393
+ const [c, ...u] = d ? d.split(";").map((h) => h.trim()).filter(Boolean) : [];
1394
+ a.setContentType([c || "multipart/form-data", ...u].join("; "));
1395
1395
  }
1396
1396
  }
1397
1397
  if (j.hasStandardBrowserEnv && (r && f.isFunction(r) && (r = r(t)), r || r !== !1 && js(t.url))) {
1398
- const u = o && s && Us.read(s);
1399
- u && a.set(o, u);
1398
+ const c = o && s && Us.read(s);
1399
+ c && a.set(o, c);
1400
1400
  }
1401
1401
  return t;
1402
1402
  }, Hs = typeof XMLHttpRequest < "u", zs = Hs && function(e) {
@@ -1404,9 +1404,9 @@ const rr = (e) => {
1404
1404
  const o = rr(e);
1405
1405
  let s = o.data;
1406
1406
  const a = U.from(o.headers).normalize();
1407
- let { responseType: l, onUploadProgress: d, onDownloadProgress: u } = o, c, h, y, S, b;
1407
+ let { responseType: l, onUploadProgress: d, onDownloadProgress: c } = o, u, h, y, S, b;
1408
1408
  function m() {
1409
- S && S(), b && b(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
1409
+ S && S(), b && b(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
1410
1410
  }
1411
1411
  let g = new XMLHttpRequest();
1412
1412
  g.open(o.method.toUpperCase(), o.url, !0), g.timeout = o.timeout;
@@ -1446,9 +1446,9 @@ const rr = (e) => {
1446
1446
  )), g = null;
1447
1447
  }, s === void 0 && a.setContentType(null), "setRequestHeader" in g && f.forEach(a.toJSON(), function(P, O) {
1448
1448
  g.setRequestHeader(O, P);
1449
- }), f.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), l && l !== "json" && (g.responseType = o.responseType), u && ([y, b] = Le(u, !0), g.addEventListener("progress", y)), d && g.upload && ([h, S] = Le(d), g.upload.addEventListener("progress", h), g.upload.addEventListener("loadend", S)), (o.cancelToken || o.signal) && (c = (E) => {
1449
+ }), f.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), l && l !== "json" && (g.responseType = o.responseType), c && ([y, b] = Le(c, !0), g.addEventListener("progress", y)), d && g.upload && ([h, S] = Le(d), g.upload.addEventListener("progress", h), g.upload.addEventListener("loadend", S)), (o.cancelToken || o.signal) && (u = (E) => {
1450
1450
  g && (r(!E || E.type ? new pe(null, e, g) : E), g.abort(), g = null);
1451
- }, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
1451
+ }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
1452
1452
  const A = Is(o.url);
1453
1453
  if (A && j.protocols.indexOf(A) === -1) {
1454
1454
  r(new C("Unsupported protocol " + A + ":", C.ERR_BAD_REQUEST, e));
@@ -1460,22 +1460,22 @@ const rr = (e) => {
1460
1460
  const { length: n } = e = e ? e.filter(Boolean) : [];
1461
1461
  if (t || n) {
1462
1462
  let r = new AbortController(), o;
1463
- const s = function(u) {
1463
+ const s = function(c) {
1464
1464
  if (!o) {
1465
1465
  o = !0, l();
1466
- const c = u instanceof Error ? u : this.reason;
1467
- r.abort(c instanceof C ? c : new pe(c instanceof Error ? c.message : c));
1466
+ const u = c instanceof Error ? c : this.reason;
1467
+ r.abort(u instanceof C ? u : new pe(u instanceof Error ? u.message : u));
1468
1468
  }
1469
1469
  };
1470
1470
  let a = t && setTimeout(() => {
1471
1471
  a = null, s(new C(`timeout ${t} of ms exceeded`, C.ETIMEDOUT));
1472
1472
  }, t);
1473
1473
  const l = () => {
1474
- e && (a && clearTimeout(a), a = null, e.forEach((u) => {
1475
- u.unsubscribe ? u.unsubscribe(s) : u.removeEventListener("abort", s);
1474
+ e && (a && clearTimeout(a), a = null, e.forEach((c) => {
1475
+ c.unsubscribe ? c.unsubscribe(s) : c.removeEventListener("abort", s);
1476
1476
  }), e = null);
1477
1477
  };
1478
- e.forEach((u) => u.addEventListener("abort", s));
1478
+ e.forEach((c) => c.addEventListener("abort", s));
1479
1479
  const { signal: d } = r;
1480
1480
  return d.unsubscribe = () => f.asap(l), d;
1481
1481
  }
@@ -1515,19 +1515,19 @@ const rr = (e) => {
1515
1515
  return new ReadableStream({
1516
1516
  async pull(d) {
1517
1517
  try {
1518
- const { done: u, value: c } = await o.next();
1519
- if (u) {
1518
+ const { done: c, value: u } = await o.next();
1519
+ if (c) {
1520
1520
  l(), d.close();
1521
1521
  return;
1522
1522
  }
1523
- let h = c.byteLength;
1523
+ let h = u.byteLength;
1524
1524
  if (n) {
1525
1525
  let y = s += h;
1526
1526
  n(y);
1527
1527
  }
1528
- d.enqueue(new Uint8Array(c));
1529
- } catch (u) {
1530
- throw l(u), u;
1528
+ d.enqueue(new Uint8Array(u));
1529
+ } catch (c) {
1530
+ throw l(c), c;
1531
1531
  }
1532
1532
  },
1533
1533
  cancel(d) {
@@ -1589,25 +1589,25 @@ const Gs = async (e) => {
1589
1589
  timeout: a,
1590
1590
  onDownloadProgress: l,
1591
1591
  onUploadProgress: d,
1592
- responseType: u,
1593
- headers: c,
1592
+ responseType: c,
1593
+ headers: u,
1594
1594
  withCredentials: h = "same-origin",
1595
1595
  fetchOptions: y
1596
1596
  } = rr(e);
1597
- u = u ? (u + "").toLowerCase() : "text";
1597
+ c = c ? (c + "").toLowerCase() : "text";
1598
1598
  let S = Ws([o, s && s.toAbortSignal()], a), b;
1599
1599
  const m = S && S.unsubscribe && (() => {
1600
1600
  S.unsubscribe();
1601
1601
  });
1602
1602
  let g;
1603
1603
  try {
1604
- if (d && Js && n !== "get" && n !== "head" && (g = await Zs(c, r)) !== 0) {
1604
+ if (d && Js && n !== "get" && n !== "head" && (g = await Zs(u, r)) !== 0) {
1605
1605
  let O = new Request(t, {
1606
1606
  method: "POST",
1607
1607
  body: r,
1608
1608
  duplex: "half"
1609
1609
  }), R;
1610
- if (f.isFormData(r) && (R = O.headers.get("content-type")) && c.setContentType(R), O.body) {
1610
+ if (f.isFormData(r) && (R = O.headers.get("content-type")) && u.setContentType(R), O.body) {
1611
1611
  const [D, W] = nn(
1612
1612
  g,
1613
1613
  Le(rn(d))
@@ -1621,13 +1621,13 @@ const Gs = async (e) => {
1621
1621
  ...y,
1622
1622
  signal: S,
1623
1623
  method: n.toUpperCase(),
1624
- headers: c.normalize().toJSON(),
1624
+ headers: u.normalize().toJSON(),
1625
1625
  body: r,
1626
1626
  duplex: "half",
1627
1627
  credentials: x ? h : void 0
1628
1628
  });
1629
1629
  let A = await fetch(b);
1630
- const E = mt && (u === "stream" || u === "response");
1630
+ const E = mt && (c === "stream" || c === "response");
1631
1631
  if (mt && (l || E && m)) {
1632
1632
  const O = {};
1633
1633
  ["status", "statusText", "headers"].forEach((Ee) => {
@@ -1644,8 +1644,8 @@ const Gs = async (e) => {
1644
1644
  O
1645
1645
  );
1646
1646
  }
1647
- u = u || "text";
1648
- let P = await Be[f.findKey(Be, u) || "text"](A, e);
1647
+ c = c || "text";
1648
+ let P = await Be[f.findKey(Be, c) || "text"](A, e);
1649
1649
  return !E && m && m(), await new Promise((O, R) => {
1650
1650
  tr(O, R, {
1651
1651
  data: P,
@@ -1837,16 +1837,16 @@ let le = class {
1837
1837
  this.interceptors.request.forEach(function(m) {
1838
1838
  typeof m.runWhen == "function" && m.runWhen(n) === !1 || (d = d && m.synchronous, l.unshift(m.fulfilled, m.rejected));
1839
1839
  });
1840
- const u = [];
1840
+ const c = [];
1841
1841
  this.interceptors.response.forEach(function(m) {
1842
- u.push(m.fulfilled, m.rejected);
1842
+ c.push(m.fulfilled, m.rejected);
1843
1843
  });
1844
- let c, h = 0, y;
1844
+ let u, h = 0, y;
1845
1845
  if (!d) {
1846
1846
  const b = [cn.bind(this), void 0];
1847
- for (b.unshift.apply(b, l), b.push.apply(b, u), y = b.length, c = Promise.resolve(n); h < y; )
1848
- c = c.then(b[h++], b[h++]);
1849
- return c;
1847
+ for (b.unshift.apply(b, l), b.push.apply(b, c), y = b.length, u = Promise.resolve(n); h < y; )
1848
+ u = u.then(b[h++], b[h++]);
1849
+ return u;
1850
1850
  }
1851
1851
  y = l.length;
1852
1852
  let S = n;
@@ -1860,13 +1860,13 @@ let le = class {
1860
1860
  }
1861
1861
  }
1862
1862
  try {
1863
- c = cn.call(this, S);
1863
+ u = cn.call(this, S);
1864
1864
  } catch (b) {
1865
1865
  return Promise.reject(b);
1866
1866
  }
1867
- for (h = 0, y = u.length; h < y; )
1868
- c = c.then(u[h++], u[h++]);
1869
- return c;
1867
+ for (h = 0, y = c.length; h < y; )
1868
+ u = u.then(c[h++], c[h++]);
1869
+ return u;
1870
1870
  }
1871
1871
  getUri(t) {
1872
1872
  t = ue(this.defaults, t);
@@ -2116,19 +2116,19 @@ const aa = ({ create: e = !1 }) => {
2116
2116
  Bt(
2117
2117
  t != null && t.exists ? o("Edit :model “:label“", { model: l.singular(), label: (t == null ? void 0 : t.getLabel()) || "..." }) : o("Create :model", { model: l.singular() })
2118
2118
  ), Do();
2119
- const u = T("cms").getComponent("Breadcrumbs");
2119
+ const c = k("cms").getComponent("Breadcrumbs");
2120
2120
  p.useEffect(() => {
2121
2121
  e ? n(new l()) : l.find(r).then((S) => n(S ?? void 0));
2122
2122
  }, [r, l, e]);
2123
- const c = p.useCallback(() => {
2124
- s(o(":model saved successfully", { model: l.singular() })), t != null && t.wasRecentlyCreated && a(`/${k.kebab(l.plural())}/${t.getKey()}`);
2125
- }, [s, a, l, t, o]), h = sa(), y = p.useMemo(() => T("cms").getModelFormProps(t), [t]);
2123
+ const u = p.useCallback(() => {
2124
+ s(o(":model saved successfully", { model: l.singular() })), t != null && t.wasRecentlyCreated && a(`/${T.kebab(l.plural())}/${t.getKey()}`);
2125
+ }, [s, a, l, t, o]), h = sa(), y = p.useMemo(() => k("cms").getModelFormProps(t), [t]);
2126
2126
  return t ? /* @__PURE__ */ i(H, { sx: { p: { xs: 1, sm: 2, md: 3 } }, children: /* @__PURE__ */ w(Q, { container: !0, children: [
2127
2127
  /* @__PURE__ */ i(Q, { xs: 12, children: /* @__PURE__ */ i(
2128
- u,
2128
+ c,
2129
2129
  {
2130
2130
  parts: [
2131
- { name: l.plural(), href: "/" + k.kebab(l.plural()) },
2131
+ { name: l.plural(), href: "/" + T.kebab(l.plural()) },
2132
2132
  { name: t.exists ? t.getLabel() : o("New") }
2133
2133
  ]
2134
2134
  }
@@ -2144,7 +2144,7 @@ const aa = ({ create: e = !1 }) => {
2144
2144
  submitText: "Save",
2145
2145
  ...y,
2146
2146
  item: t,
2147
- onSuccess: c,
2147
+ onSuccess: u,
2148
2148
  onError: h
2149
2149
  }
2150
2150
  )
@@ -2176,13 +2176,13 @@ const ca = Z(Pr)(({ theme: e }) => ({
2176
2176
  bottom: e.spacing(2),
2177
2177
  right: e.spacing(2)
2178
2178
  })), da = ({ variant: e = "default" }) => {
2179
- const t = te(), n = v(), [r] = K(), o = r.get("tab") ?? "all", [s, a] = p.useState(!1), l = p.useRef(null), [d, u] = p.useState(0), c = qt(), h = p.useMemo(() => T("cms").getStaticActions(t, o), [t, o]);
2179
+ const t = te(), n = v(), [r] = G(), o = r.get("tab") ?? "all", [s, a] = p.useState(!1), l = p.useRef(null), [d, c] = p.useState(0), u = qt(), h = p.useMemo(() => k("cms").getStaticActions(t, o), [t, o]);
2180
2180
  if (ia(
2181
2181
  e === "fab" && h.length > 0 ? n ? 12 : 10 : !1
2182
2182
  ), h.length === 0)
2183
2183
  return null;
2184
2184
  const y = (m, g) => {
2185
- u(g), a(!1);
2185
+ c(g), a(!1);
2186
2186
  }, S = () => {
2187
2187
  a((m) => !m);
2188
2188
  }, b = (m) => {
@@ -2193,7 +2193,7 @@ const ca = Z(Pr)(({ theme: e }) => ({
2193
2193
  ca,
2194
2194
  {
2195
2195
  color: "primary",
2196
- onClick: () => h[0].callback(c),
2196
+ onClick: () => h[0].callback(u),
2197
2197
  children: h[0].icon || h[0].label.charAt(0).toUpperCase()
2198
2198
  }
2199
2199
  ),
@@ -2213,7 +2213,7 @@ const ca = Z(Pr)(({ theme: e }) => ({
2213
2213
  {
2214
2214
  icon: m.icon || m.label.charAt(0).toUpperCase(),
2215
2215
  tooltipTitle: m.label,
2216
- onClick: () => m.callback(c)
2216
+ onClick: () => m.callback(u)
2217
2217
  },
2218
2218
  m.label
2219
2219
  ))
@@ -2228,7 +2228,7 @@ const ca = Z(Pr)(({ theme: e }) => ({
2228
2228
  ref: l,
2229
2229
  "aria-label": h[d].label,
2230
2230
  children: [
2231
- /* @__PURE__ */ i(M, { onClick: () => h[d].callback(c), children: h[d].label }),
2231
+ /* @__PURE__ */ i(M, { onClick: () => h[d].callback(u), children: h[d].label }),
2232
2232
  h.length > 1 && /* @__PURE__ */ i(
2233
2233
  M,
2234
2234
  {
@@ -2328,7 +2328,7 @@ const fa = Z(
2328
2328
  ["Layout.SearchBar"]: s,
2329
2329
  ["Layout.BackButton"]: a,
2330
2330
  ["Layout.AppLogo"]: l
2331
- } = T("cms").getComponents(), { open: d } = _t(), u = dr(), c = fr(), h = z("appBar.height"), y = z("drawer.width", 280), {
2331
+ } = k("cms").getComponents(), { open: d } = _t(), c = dr(), u = fr(), h = z("appBar.height"), y = z("drawer.width", 280), {
2332
2332
  start: S = null,
2333
2333
  //: title = config('app.name', document.title),
2334
2334
  end: b = null
@@ -2341,8 +2341,8 @@ const fa = Z(
2341
2341
  drawerWidth: y,
2342
2342
  ...t,
2343
2343
  children: /* @__PURE__ */ w(Ur, { children: [
2344
- (n && !d || !n && !c) && /* @__PURE__ */ i(o, {}),
2345
- !n && c && /* @__PURE__ */ i(a, {}),
2344
+ (n && !d || !n && !u) && /* @__PURE__ */ i(o, {}),
2345
+ !n && u && /* @__PURE__ */ i(a, {}),
2346
2346
  n ? null : S,
2347
2347
  /* @__PURE__ */ i(
2348
2348
  $,
@@ -2361,7 +2361,7 @@ const fa = Z(
2361
2361
  display: "flex",
2362
2362
  alignItems: "center",
2363
2363
  children: [
2364
- u && /* @__PURE__ */ i(s, {}),
2364
+ c && /* @__PURE__ */ i(s, {}),
2365
2365
  b || /* @__PURE__ */ i(l, {})
2366
2366
  ]
2367
2367
  }
@@ -2425,7 +2425,7 @@ const dn = (e, t) => ({
2425
2425
  // necessary for content to be below app bar
2426
2426
  ...e.mixins.toolbar
2427
2427
  })), wa = (e) => {
2428
- const t = vt(), n = v(), { open: r, handleDrawerClose: o } = _t(), s = n ? ga : ba, a = z("drawer.width", 280), l = z("appBar.height"), d = T("cms").getComponent("RecursiveList"), u = T("cms").getMenuItems();
2428
+ const t = vt(), n = v(), { open: r, handleDrawerClose: o } = _t(), s = n ? ga : ba, a = z("drawer.width", 280), l = z("appBar.height"), d = k("cms").getComponent("RecursiveList"), c = k("cms").getMenuItems();
2429
2429
  return /* @__PURE__ */ w(
2430
2430
  s,
2431
2431
  {
@@ -2448,7 +2448,7 @@ const dn = (e, t) => ({
2448
2448
  d,
2449
2449
  {
2450
2450
  collapsed: !r && n,
2451
- items: u,
2451
+ items: c,
2452
2452
  onClick: () => !n && o()
2453
2453
  }
2454
2454
  ) })
@@ -2458,7 +2458,7 @@ const dn = (e, t) => ({
2458
2458
  }, Sa = () => {
2459
2459
  const e = ur(), t = z("breakpoint", "md"), n = fr(), {
2460
2460
  ["Layout.BackButton"]: r
2461
- } = T("cms").getComponents();
2461
+ } = k("cms").getComponents();
2462
2462
  return /* @__PURE__ */ w(
2463
2463
  Dt,
2464
2464
  {
@@ -2514,12 +2514,12 @@ const dn = (e, t) => ({
2514
2514
  if (!Array.isArray(e))
2515
2515
  return e;
2516
2516
  let t;
2517
- return G.isEmpty(e) ? t = "" : t = e[0], t;
2517
+ return J.isEmpty(e) ? t = "" : t = e[0], t;
2518
2518
  }, xa = (e) => {
2519
2519
  if (Array.isArray(e))
2520
2520
  return e;
2521
2521
  let t;
2522
- return G.isEmpty(e) ? t = [] : t = [e, ""], t;
2522
+ return J.isEmpty(e) ? t = [] : t = [e, ""], t;
2523
2523
  }, Ca = async (e, t, n) => {
2524
2524
  const r = e.getSchema().relations[t], o = ye().make(r.model), s = o.getSchema().primaryKey, a = [];
2525
2525
  for (const l of n) {
@@ -2529,11 +2529,11 @@ const dn = (e, t) => ({
2529
2529
  return a;
2530
2530
  };
2531
2531
  function Ea(e, t) {
2532
- const n = T("filter"), { Model: r, setColumnsFilter: o } = p.useContext(Ht), [s, a] = p.useState(t.key), [l, d] = p.useState(t.operator), [u, c] = p.useState(t.type), [h, y] = p.useState(t.value), [S, b] = p.useState(t.nullable), [m, g] = p.useState(t.is_relation), x = p.useMemo(() => n.getFilterableColumns(r), [r]), A = (O) => () => {
2532
+ const n = k("filter"), { Model: r, setColumnsFilter: o } = p.useContext(Ht), [s, a] = p.useState(t.key), [l, d] = p.useState(t.operator), [c, u] = p.useState(t.type), [h, y] = p.useState(t.value), [S, b] = p.useState(t.nullable), [m, g] = p.useState(t.is_relation), x = p.useMemo(() => n.getFilterableColumns(r), [r]), A = (O) => () => {
2533
2533
  o((R) => R.filter((D, W) => W !== O));
2534
2534
  }, E = async (O) => {
2535
2535
  const R = O.target.value, D = x.find((mr) => mr.key === R), W = (D == null ? void 0 : D.type) ?? "text", Ee = (D == null ? void 0 : D.nullable) ?? !1, Vt = (D == null ? void 0 : D.is_relation) ?? !1;
2536
- Vt ? (d("relation"), y([])) : m && d("equals"), g(Vt), b(Ee), W !== u && (d("equals"), y(() => {
2536
+ Vt ? (d("relation"), y([])) : m && d("equals"), g(Vt), b(Ee), W !== c && (d("equals"), y(() => {
2537
2537
  if (["between", "notBetween"].includes(l))
2538
2538
  return [];
2539
2539
  switch (n.getInputType(W)) {
@@ -2544,7 +2544,7 @@ function Ea(e, t) {
2544
2544
  default:
2545
2545
  return "";
2546
2546
  }
2547
- })), a(R), c(W);
2547
+ })), a(R), u(W);
2548
2548
  }, P = async (O) => {
2549
2549
  const R = O.target.value;
2550
2550
  l !== R && y((D) => {
@@ -2565,19 +2565,19 @@ function Ea(e, t) {
2565
2565
  ...D,
2566
2566
  key: s,
2567
2567
  operator: l,
2568
- type: u,
2568
+ type: c,
2569
2569
  value: h,
2570
2570
  nullable: S,
2571
2571
  is_relation: m
2572
2572
  } : D));
2573
- }, [s, l, u, h, S, m]), {
2573
+ }, [s, l, c, h, S, m]), {
2574
2574
  columns: x,
2575
2575
  key: s,
2576
2576
  setKey: a,
2577
2577
  operator: l,
2578
2578
  setOperator: d,
2579
- type: u,
2580
- setType: c,
2579
+ type: c,
2580
+ setType: u,
2581
2581
  value: h,
2582
2582
  setValue: y,
2583
2583
  nullable: S,
@@ -2590,32 +2590,32 @@ function Ea(e, t) {
2590
2590
  };
2591
2591
  }
2592
2592
  const hn = async (e, t, n) => {
2593
- const r = e.getSchema().relations[t].model, { data: o } = await ye().make(r).get(), s = o.all().filter((u) => !n.find((c) => c.getKey() === u.getKey())), a = s.length, l = n.length, d = 15;
2593
+ const r = e.getSchema().relations[t].model, { data: o } = await ye().make(r).get(), s = o.all().filter((c) => !n.find((u) => u.getKey() === c.getKey())), a = s.length, l = n.length, d = 15;
2594
2594
  return a + l > d ? V([...n, ...s.slice(0, d - l)]) : V([...n, ...s]);
2595
- }, ka = async (e, t, n = "", r) => {
2595
+ }, Ta = async (e, t, n = "", r) => {
2596
2596
  const o = e.getSchema().relations[t], s = ye().make(o.model), a = s.getSchema().primaryKey, { data: l } = await s.searchBy(n).get();
2597
2597
  return V([...r, ...l]).unique(a);
2598
- }, Ta = () => {
2598
+ }, ka = () => {
2599
2599
  const e = v(), t = te(), {
2600
2600
  key: n,
2601
2601
  value: r,
2602
2602
  setValue: o
2603
- } = p.useContext(me), [s, a] = p.useState(!1), [l, d] = p.useState(""), [u, c] = p.useState(V([])), [h, y] = p.useState([]), S = p.useMemo(
2604
- () => s && u.count() === 0,
2605
- [s, u]
2603
+ } = p.useContext(me), [s, a] = p.useState(!1), [l, d] = p.useState(""), [c, u] = p.useState(V([])), [h, y] = p.useState([]), S = p.useMemo(
2604
+ () => s && c.count() === 0,
2605
+ [s, c]
2606
2606
  ), b = async (m, g) => {
2607
- d(g), G.isEmpty(g) || c(await ka(t, n, g, V(h)));
2607
+ d(g), J.isEmpty(g) || u(await Ta(t, n, g, V(h)));
2608
2608
  };
2609
2609
  return p.useEffect(() => {
2610
2610
  r.length > 0 && (async () => y(await Ca(t, n, r)))();
2611
2611
  }, []), p.useEffect(() => {
2612
2612
  let m = !0;
2613
2613
  if (S)
2614
- return (async () => m && c(await hn(t, n, h)))(), () => {
2614
+ return (async () => m && u(await hn(t, n, h)))(), () => {
2615
2615
  m = !1;
2616
2616
  };
2617
2617
  }, [S]), p.useEffect(() => {
2618
- o(h.map((m) => m.getKey())), G.isEmpty(l) ? (async () => c(await hn(t, n, h)))() : c(V([]));
2618
+ o(h.map((m) => m.getKey())), J.isEmpty(l) ? (async () => u(await hn(t, n, h)))() : u(V([]));
2619
2619
  }, [h]), /* @__PURE__ */ i(
2620
2620
  qr,
2621
2621
  {
@@ -2633,7 +2633,7 @@ const hn = async (e, t, n) => {
2633
2633
  },
2634
2634
  inputValue: l,
2635
2635
  onInputChange: b,
2636
- options: u.all() || [],
2636
+ options: c.all() || [],
2637
2637
  getOptionLabel: (m) => m.getLabel(),
2638
2638
  isOptionEqualToValue: (m, g) => m.getKey() === g.getKey(),
2639
2639
  filterOptions: (m) => m,
@@ -2668,11 +2668,11 @@ const hn = async (e, t, n) => {
2668
2668
  }
2669
2669
  );
2670
2670
  }, tt = ({ index: e = null }) => {
2671
- const { t } = L(), n = v(), r = T("filter"), {
2671
+ const { t } = L(), n = v(), r = k("filter"), {
2672
2672
  type: o,
2673
2673
  value: s,
2674
2674
  setValue: a
2675
- } = p.useContext(me), d = r.getInputType(o) === "datetime-local" ? 230 : 167.5, u = e !== null ? `${t("Date")} ${e + 1}` : `${t("Date")}`, c = p.useMemo(
2675
+ } = p.useContext(me), d = r.getInputType(o) === "datetime-local" ? 230 : 167.5, c = e !== null ? `${t("Date")} ${e + 1}` : `${t("Date")}`, u = p.useMemo(
2676
2676
  () => e !== null ? s[e] : s,
2677
2677
  [s]
2678
2678
  ), h = (y) => {
@@ -2685,8 +2685,8 @@ const hn = async (e, t, n) => {
2685
2685
  Ae,
2686
2686
  {
2687
2687
  type: r.getInputType(o),
2688
- label: u,
2689
- value: Fe.toDateTimeLocal(Fe.parse(c)),
2688
+ label: c,
2689
+ value: Fe.toDateTimeLocal(Fe.parse(u)),
2690
2690
  onChange: h,
2691
2691
  size: "small",
2692
2692
  sx: { width: n ? d : "100%" }
@@ -2710,18 +2710,18 @@ const hn = async (e, t, n) => {
2710
2710
  e && /* @__PURE__ */ i(H, { width: 325 })
2711
2711
  ] });
2712
2712
  }, nt = ({ index: e = null }) => {
2713
- const { t } = L(), n = v(), r = T("filter"), {
2713
+ const { t } = L(), n = v(), r = k("filter"), {
2714
2714
  type: o,
2715
2715
  value: s,
2716
2716
  setValue: a
2717
2717
  } = p.useContext(me), l = e !== null ? `${t("Value")} ${e + 1}` : `${t("Value")}`, d = p.useMemo(
2718
2718
  () => e !== null ? s[e] : s,
2719
2719
  [s]
2720
- ), u = (c) => {
2720
+ ), c = (u) => {
2721
2721
  a(typeof e == "number" ? (h) => {
2722
2722
  const y = h;
2723
- return y[e] = c.target.value, [...y];
2724
- } : c.target.value);
2723
+ return y[e] = u.target.value, [...y];
2724
+ } : u.target.value);
2725
2725
  };
2726
2726
  return /* @__PURE__ */ i(
2727
2727
  Ae,
@@ -2729,13 +2729,13 @@ const hn = async (e, t, n) => {
2729
2729
  type: r.getInputType(o),
2730
2730
  label: l,
2731
2731
  value: d || "",
2732
- onChange: u,
2732
+ onChange: c,
2733
2733
  sx: { width: n ? 167.5 : "100%" },
2734
2734
  size: "small"
2735
2735
  }
2736
2736
  );
2737
2737
  }, rt = () => {
2738
- const e = v(), t = T("filter"), { type: n, operator: r } = p.useContext(me), o = p.useMemo(
2738
+ const e = v(), t = k("filter"), { type: n, operator: r } = p.useContext(me), o = p.useMemo(
2739
2739
  () => ["between", "notBetween"].includes(r),
2740
2740
  [r]
2741
2741
  );
@@ -2760,18 +2760,18 @@ const hn = async (e, t, n) => {
2760
2760
  case "datetime-local":
2761
2761
  return /* @__PURE__ */ i(tt, {});
2762
2762
  case "autocomplete":
2763
- return /* @__PURE__ */ i(Ta, {});
2763
+ return /* @__PURE__ */ i(ka, {});
2764
2764
  case "boolean":
2765
2765
  return /* @__PURE__ */ i(Oa, {});
2766
2766
  default:
2767
2767
  return /* @__PURE__ */ i(nt, {});
2768
2768
  }
2769
2769
  }, Ra = ({ index: e, column: t }) => {
2770
- const { t: n } = L(), r = v(), o = z("breakpoint", "md"), s = T("filter"), a = p.useMemo(() => s.getMatchingOperators(t), [t]), {
2770
+ const { t: n } = L(), r = v(), o = z("breakpoint", "md"), s = k("filter"), a = p.useMemo(() => s.getMatchingOperators(t), [t]), {
2771
2771
  columns: l,
2772
2772
  key: d,
2773
- setKey: u,
2774
- operator: c,
2773
+ setKey: c,
2774
+ operator: u,
2775
2775
  setOperator: h,
2776
2776
  type: y,
2777
2777
  setType: S,
@@ -2788,10 +2788,10 @@ const hn = async (e, t, n) => {
2788
2788
  {
2789
2789
  value: {
2790
2790
  key: d,
2791
- setKey: u,
2791
+ setKey: c,
2792
2792
  type: y,
2793
2793
  setType: S,
2794
- operator: c,
2794
+ operator: u,
2795
2795
  setOperator: h,
2796
2796
  value: b,
2797
2797
  setValue: m,
@@ -2904,7 +2904,7 @@ const hn = async (e, t, n) => {
2904
2904
  {
2905
2905
  labelId: "filter-operator-select-label",
2906
2906
  id: "filter-operator-select",
2907
- value: c,
2907
+ value: u,
2908
2908
  label: n("Operator"),
2909
2909
  onChange: E,
2910
2910
  size: "small",
@@ -2938,14 +2938,14 @@ const hn = async (e, t, n) => {
2938
2938
  }
2939
2939
  );
2940
2940
  }, pn = ({ dialog: e = !1 }) => {
2941
- const { t } = L(), n = v(), r = z("breakpoint", "md"), o = T("filter"), {
2941
+ const { t } = L(), n = v(), r = z("breakpoint", "md"), o = k("filter"), {
2942
2942
  columnsFilter: s,
2943
2943
  setColumnsFilter: a,
2944
2944
  handleApplyFilters: l,
2945
2945
  clearFilters: d
2946
- } = p.useContext(Ht), u = () => {
2947
- a((c) => [
2948
- ...c,
2946
+ } = p.useContext(Ht), c = () => {
2947
+ a((u) => [
2948
+ ...u,
2949
2949
  {
2950
2950
  key: "",
2951
2951
  operator: "equals",
@@ -2965,16 +2965,16 @@ const hn = async (e, t, n) => {
2965
2965
  p: e ? 0 : 2
2966
2966
  },
2967
2967
  children: [
2968
- /* @__PURE__ */ i(N, { children: s.map((c, h, y) => {
2968
+ /* @__PURE__ */ i(N, { children: s.map((u, h, y) => {
2969
2969
  const S = h == y.length - 1;
2970
2970
  return /* @__PURE__ */ w(B, { children: [
2971
2971
  /* @__PURE__ */ i(
2972
2972
  Ra,
2973
2973
  {
2974
2974
  index: h,
2975
- column: c
2975
+ column: u
2976
2976
  },
2977
- `row_${c.key}`
2977
+ `row_${u.key}`
2978
2978
  ),
2979
2979
  !n && /* @__PURE__ */ i(Pe, { sx: {
2980
2980
  mt: S ? 0.625 : 1.25,
@@ -2995,7 +2995,7 @@ const hn = async (e, t, n) => {
2995
2995
  M,
2996
2996
  {
2997
2997
  variant: "outlined",
2998
- onClick: u,
2998
+ onClick: c,
2999
2999
  fullWidth: !0,
3000
3000
  sx: { mt: 0.75 },
3001
3001
  children: `+ ${t("Add Column")}`
@@ -3003,7 +3003,7 @@ const hn = async (e, t, n) => {
3003
3003
  ) : /* @__PURE__ */ i(
3004
3004
  q,
3005
3005
  {
3006
- onClick: u,
3006
+ onClick: c,
3007
3007
  color: "primary",
3008
3008
  sx: { fontSize: 32 },
3009
3009
  children: /* @__PURE__ */ i(En, { fontSize: "inherit" })
@@ -3037,24 +3037,24 @@ const hn = async (e, t, n) => {
3037
3037
  };
3038
3038
  function Pa(e, t) {
3039
3039
  const n = [], r = Bn.toObject(t);
3040
- return !("where" in r) || G.isEmpty(r.where) ? [] : (Object.entries(r.where).forEach(([o, s]) => {
3040
+ return !("where" in r) || J.isEmpty(r.where) ? [] : (Object.entries(r.where).forEach(([o, s]) => {
3041
3041
  let [a, l = "equals"] = o.split(":");
3042
- const d = e.find((c) => c.key === a);
3042
+ const d = e.find((u) => u.key === a);
3043
3043
  if (!d)
3044
3044
  return;
3045
3045
  l === "equals" && d.is_relation && (l = "relation");
3046
- let u = s;
3046
+ let c = s;
3047
3047
  switch (d.type) {
3048
3048
  case "text": {
3049
- Array.isArray(s) && (u = s.join(","));
3049
+ Array.isArray(s) && (c = s.join(","));
3050
3050
  break;
3051
3051
  }
3052
3052
  case "datetime-local": {
3053
- Array.isArray(s) ? u = s.map((c) => Fe.toDateTimeLocal(c)) : u = Fe.toDateTimeLocal(s);
3053
+ Array.isArray(s) ? c = s.map((u) => Fe.toDateTimeLocal(u)) : c = Fe.toDateTimeLocal(s);
3054
3054
  break;
3055
3055
  }
3056
3056
  case "boolean": {
3057
- u = Number(s);
3057
+ c = Number(s);
3058
3058
  break;
3059
3059
  }
3060
3060
  }
@@ -3062,49 +3062,49 @@ function Pa(e, t) {
3062
3062
  key: d.key,
3063
3063
  operator: l,
3064
3064
  type: d.type,
3065
- value: u,
3065
+ value: c,
3066
3066
  nullable: d.nullable,
3067
3067
  is_relation: d.is_relation
3068
3068
  });
3069
3069
  }), n);
3070
3070
  }
3071
3071
  const va = (e) => {
3072
- const t = T("filter"), n = new URLSearchParams();
3072
+ const t = k("filter"), n = new URLSearchParams();
3073
3073
  return e.forEach((r) => {
3074
3074
  const { key: o, operator: s, value: a, type: l } = r;
3075
3075
  let d = `:${s}`;
3076
3076
  if (["equals"].includes(s) && (d = ""), Array.isArray(a))
3077
- a.forEach((u, c) => {
3078
- let h = u;
3077
+ a.forEach((c, u) => {
3078
+ let h = c;
3079
3079
  switch (t.getInputType(l)) {
3080
3080
  case "datetime-local": {
3081
- h = new Date(u).toISOString();
3081
+ h = new Date(c).toISOString();
3082
3082
  break;
3083
3083
  }
3084
3084
  }
3085
- n.set(`where[${o}${d}][${c}]`, h);
3085
+ n.set(`where[${o}${d}][${u}]`, h);
3086
3086
  });
3087
3087
  else {
3088
- let u = a;
3088
+ let c = a;
3089
3089
  switch (t.getInputType(l)) {
3090
3090
  case "datetime-local": {
3091
- u = new Date(a).toISOString();
3091
+ c = new Date(a).toISOString();
3092
3092
  break;
3093
3093
  }
3094
3094
  }
3095
- n.set(`where[${o}${d}]`, u);
3095
+ n.set(`where[${o}${d}]`, c);
3096
3096
  }
3097
3097
  }), n;
3098
3098
  }, Fa = () => {
3099
- const { t: e } = L(), t = T("filter"), n = v(), r = te(), [o, s] = K(), a = p.useMemo(() => "where" in Bn.toObject(o), [o]), [l, d] = p.useState(null), [u, c] = p.useState([]), h = !!l, y = p.useMemo(() => t.getFilterableColumns(r), [r]), S = (A) => {
3099
+ const { t: e } = L(), t = k("filter"), n = v(), r = te(), [o, s] = G(), a = p.useMemo(() => "where" in Bn.toObject(o), [o]), [l, d] = p.useState(null), [c, u] = p.useState([]), h = !!l, y = p.useMemo(() => t.getFilterableColumns(r), [r]), S = (A) => {
3100
3100
  d(A.currentTarget);
3101
3101
  }, b = () => {
3102
3102
  d(null), setTimeout(() => {
3103
- c([]);
3103
+ u([]);
3104
3104
  }, 300);
3105
3105
  }, m = () => {
3106
3106
  g();
3107
- const A = va(u);
3107
+ const A = va(c);
3108
3108
  s(A, { replace: !0 }), b();
3109
3109
  }, g = () => {
3110
3110
  s((A) => {
@@ -3115,12 +3115,12 @@ const va = (e) => {
3115
3115
  });
3116
3116
  }, x = () => {
3117
3117
  g(), b(), setTimeout(() => {
3118
- c([]);
3118
+ u([]);
3119
3119
  }, 300);
3120
3120
  };
3121
3121
  return p.useEffect(() => {
3122
3122
  const A = Pa(y, o);
3123
- c(A);
3123
+ u(A);
3124
3124
  }, [y, o, l]), /* @__PURE__ */ w(
3125
3125
  Ht.Provider,
3126
3126
  {
@@ -3128,8 +3128,8 @@ const va = (e) => {
3128
3128
  Model: r,
3129
3129
  anchorEl: l,
3130
3130
  setAnchorEl: d,
3131
- columnsFilter: u,
3132
- setColumnsFilter: c,
3131
+ columnsFilter: c,
3132
+ setColumnsFilter: u,
3133
3133
  searchParams: o,
3134
3134
  setSearchParams: s,
3135
3135
  handleApplyFilters: m,
@@ -3149,7 +3149,7 @@ const va = (e) => {
3149
3149
  color: "secondary",
3150
3150
  variant: "dot",
3151
3151
  invisible: !a,
3152
- children: /* @__PURE__ */ i(kn, {})
3152
+ children: /* @__PURE__ */ i(Tn, {})
3153
3153
  }
3154
3154
  )
3155
3155
  }
@@ -3185,8 +3185,8 @@ const va = (e) => {
3185
3185
  }
3186
3186
  )
3187
3187
  ] }),
3188
- /* @__PURE__ */ i(kt, { dividers: !0, children: /* @__PURE__ */ i(pn, { dialog: !0 }) }),
3189
- /* @__PURE__ */ w(Tt, { children: [
3188
+ /* @__PURE__ */ i(Tt, { dividers: !0, children: /* @__PURE__ */ i(pn, { dialog: !0 }) }),
3189
+ /* @__PURE__ */ w(kt, { children: [
3190
3190
  /* @__PURE__ */ i(
3191
3191
  M,
3192
3192
  {
@@ -3200,7 +3200,7 @@ const va = (e) => {
3200
3200
  {
3201
3201
  variant: "contained",
3202
3202
  onClick: m,
3203
- disabled: t.checkIfCanApplyFilters(u),
3203
+ disabled: t.checkIfCanApplyFilters(c),
3204
3204
  children: e("Apply")
3205
3205
  }
3206
3206
  )
@@ -3226,13 +3226,13 @@ function Wt() {
3226
3226
  items: t
3227
3227
  } = p.useContext(zt), n = mn(e), r = () => {
3228
3228
  e.splice(0, e.count());
3229
- }, o = (u) => {
3230
- const c = e.search(u);
3231
- if (c !== !1) {
3232
- e.pull(c);
3229
+ }, o = (c) => {
3230
+ const u = e.search(c);
3231
+ if (u !== !1) {
3232
+ e.pull(u);
3233
3233
  return;
3234
3234
  }
3235
- e.push(u);
3235
+ e.push(c);
3236
3236
  }, s = () => {
3237
3237
  if (t) {
3238
3238
  if (e.count() === t.count()) {
@@ -3241,7 +3241,7 @@ function Wt() {
3241
3241
  }
3242
3242
  e.splice(0, e.count(), ...t);
3243
3243
  }
3244
- }, a = (u) => n.contains(u), l = t ? n.count() > 0 && n.count() < t.count() : !1, d = t && t.count() ? n.count() === t.count() : !1;
3244
+ }, a = (c) => n.contains(c), l = t ? n.count() > 0 && n.count() < t.count() : !1, d = t && t.count() ? n.count() === t.count() : !1;
3245
3245
  return {
3246
3246
  selected: n,
3247
3247
  indeterminate: l,
@@ -3256,8 +3256,8 @@ function ae() {
3256
3256
  return p.useContext(zt);
3257
3257
  }
3258
3258
  function La(e) {
3259
- const [t, n] = p.useState(""), { selected: r } = Wt(), { t: o } = L(), s = qt(), { massActions: a } = ae(), l = (u) => {
3260
- n(u.target.value);
3259
+ const [t, n] = p.useState(""), { selected: r } = Wt(), { t: o } = L(), s = qt(), { massActions: a } = ae(), l = (c) => {
3260
+ n(c.target.value);
3261
3261
  };
3262
3262
  if (p.useEffect(() => {
3263
3263
  r.isEmpty() && n("");
@@ -3289,13 +3289,13 @@ function La(e) {
3289
3289
  disabled: r.isEmpty(),
3290
3290
  children: [
3291
3291
  /* @__PURE__ */ i(se, { value: "", children: /* @__PURE__ */ i("em", { children: o("None") }) }),
3292
- a.map((u) => /* @__PURE__ */ i(
3292
+ a.map((c) => /* @__PURE__ */ i(
3293
3293
  se,
3294
3294
  {
3295
- value: u.key,
3296
- children: u.label
3295
+ value: c.key,
3296
+ children: c.label
3297
3297
  },
3298
- u.key
3298
+ c.key
3299
3299
  ))
3300
3300
  ]
3301
3301
  }
@@ -3309,8 +3309,8 @@ function La(e) {
3309
3309
  size: "small",
3310
3310
  disabled: r.isEmpty() || !t,
3311
3311
  onClick: () => {
3312
- var u;
3313
- (u = a.find((c) => c.key === t)) == null || u.callback({
3312
+ var c;
3313
+ (c = a.find((u) => u.key === t)) == null || c.callback({
3314
3314
  selected: r,
3315
3315
  ...s
3316
3316
  });
@@ -3332,7 +3332,7 @@ const Ba = () => {
3332
3332
  edge: "start",
3333
3333
  onClick: e,
3334
3334
  sx: { mr: { md: 2 } },
3335
- children: /* @__PURE__ */ i(Tn, {})
3335
+ children: /* @__PURE__ */ i(kn, {})
3336
3336
  }
3337
3337
  );
3338
3338
  }, Ve = p.forwardRef(({ to: e, children: t, ...n }, r) => /* @__PURE__ */ i(
@@ -3353,12 +3353,12 @@ const Ia = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */
3353
3353
  "Last &raquo;": /* @__PURE__ */ i(Dn, {}),
3354
3354
  "&laquo; First": /* @__PURE__ */ i(On, {})
3355
3355
  }[e] || e }) : /* @__PURE__ */ i(B, { children: e }), Ma = ({ variant: e = "default", ...t }) => {
3356
- const n = e === "default", [r, o] = K(), [s, a] = p.useState(r.get("page") || "1"), {
3356
+ const n = e === "default", [r, o] = G(), [s, a] = p.useState(r.get("page") || "1"), {
3357
3357
  links: l,
3358
3358
  meta: {
3359
3359
  current_page: d = 1,
3360
- links: u = [],
3361
- last_page: c = 1
3360
+ links: c = [],
3361
+ last_page: u = 1
3362
3362
  } = {}
3363
3363
  } = Se(), {
3364
3364
  first: h,
@@ -3393,15 +3393,15 @@ const Ia = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */
3393
3393
  }
3394
3394
  },
3395
3395
  value: s,
3396
- error: Number(s) > c,
3397
- helperText: Number(s) > c ? `Max ${c}` : void 0,
3396
+ error: Number(s) > u,
3397
+ helperText: Number(s) > u ? `Max ${u}` : void 0,
3398
3398
  onChange: (x) => {
3399
3399
  !Number.isNaN(Number(x.target.value)) && Number(x.target.value) > 0 && a(x.target.value), x.target.value === "" && a("");
3400
3400
  },
3401
3401
  onBlur: (x) => {
3402
3402
  o((A) => (A.set("page", x.target.value || "1"), A), { replace: !0 });
3403
3403
  },
3404
- disabled: c === 1,
3404
+ disabled: u === 1,
3405
3405
  "aria-label": "Page number"
3406
3406
  }
3407
3407
  )
@@ -3410,7 +3410,7 @@ const Ia = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */
3410
3410
  )
3411
3411
  },
3412
3412
  { url: S, label: "Next &raquo;", active: !1 },
3413
- { url: d < c ? b : null, label: "Last &raquo;", active: !1 }
3413
+ { url: d < u ? b : null, label: "Last &raquo;", active: !1 }
3414
3414
  ];
3415
3415
  return p.useEffect(() => {
3416
3416
  d && a(String(d));
@@ -3422,7 +3422,7 @@ const Ia = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */
3422
3422
  justifyContent: "center",
3423
3423
  alignItems: "center",
3424
3424
  ...t,
3425
- children: (n ? u : g).map((x, A) => x.element || /* @__PURE__ */ i(
3425
+ children: (n ? c : g).map((x, A) => x.element || /* @__PURE__ */ i(
3426
3426
  M,
3427
3427
  {
3428
3428
  variant: x.active ? "contained" : "text",
@@ -3461,13 +3461,13 @@ const Ia = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */
3461
3461
  meta: {
3462
3462
  per_page: t = 15
3463
3463
  } = {}
3464
- } = Se(), [, n] = K(), r = (s) => {
3464
+ } = Se(), [, n] = G(), r = (s) => {
3465
3465
  n((a) => {
3466
3466
  const l = new URLSearchParams(a);
3467
3467
  return l.set("per_page", s.target.value.toString()), l;
3468
3468
  });
3469
3469
  }, o = xt(
3470
- T("cms"),
3470
+ k("cms"),
3471
3471
  "perPageOptions",
3472
3472
  [15, 30, 75, 150]
3473
3473
  );
@@ -3539,19 +3539,19 @@ const qa = Z(Ae)(({ theme: e }) => ({
3539
3539
  return e ? r.set("q", e) : r.delete("q"), r;
3540
3540
  });
3541
3541
  }, 500), Ha = () => {
3542
- const [e, t] = K(), n = e.get("q") || "", [r, o] = p.useState(n), [s, a] = p.useState(!1), l = p.useRef(null), { t: d } = L();
3542
+ const [e, t] = G(), n = e.get("q") || "", [r, o] = p.useState(n), [s, a] = p.useState(!1), l = p.useRef(null), { t: d } = L();
3543
3543
  p.useEffect(() => {
3544
3544
  o(n);
3545
3545
  }, [n]);
3546
- const u = (y) => {
3546
+ const c = (y) => {
3547
3547
  o(y.target.value), _a(y.target.value, t);
3548
- }, c = v();
3548
+ }, u = v();
3549
3549
  Ua(["Control", "/"], () => {
3550
3550
  l.current.focus();
3551
3551
  });
3552
- const h = c ? 300 : "calc(100vw - 58px)";
3552
+ const h = u ? 300 : "calc(100vw - 58px)";
3553
3553
  return /* @__PURE__ */ w(B, { children: [
3554
- !c && !s && /* @__PURE__ */ i(q, { color: "inherit", onClick: () => a(!0), children: /* @__PURE__ */ i(
3554
+ !u && !s && /* @__PURE__ */ i(q, { color: "inherit", onClick: () => a(!0), children: /* @__PURE__ */ i(
3555
3555
  Ot,
3556
3556
  {
3557
3557
  variant: "dot",
@@ -3568,16 +3568,16 @@ const qa = Z(Ae)(({ theme: e }) => ({
3568
3568
  yn,
3569
3569
  {
3570
3570
  orientation: "horizontal",
3571
- in: c || s,
3571
+ in: u || s,
3572
3572
  addEndListener: () => {
3573
3573
  var y;
3574
- !c && s && ((y = l.current) == null || y.focus());
3574
+ !u && s && ((y = l.current) == null || y.focus());
3575
3575
  },
3576
3576
  unmountOnExit: !1,
3577
3577
  children: /* @__PURE__ */ i(
3578
3578
  qa,
3579
3579
  {
3580
- placeholder: c ? `(Ctrl + /) ${d("Search...")}` : `${d("Search...")}`,
3580
+ placeholder: u ? `(Ctrl + /) ${d("Search...")}` : `${d("Search...")}`,
3581
3581
  value: r,
3582
3582
  InputProps: {
3583
3583
  endAdornment: /* @__PURE__ */ i(ut, {})
@@ -3585,7 +3585,7 @@ const qa = Z(Ae)(({ theme: e }) => ({
3585
3585
  inputProps: {
3586
3586
  ref: l
3587
3587
  },
3588
- onChange: u,
3588
+ onChange: c,
3589
3589
  onBlur: () => a(!1),
3590
3590
  sx: { width: h },
3591
3591
  size: "small"
@@ -3603,27 +3603,27 @@ const qa = Z(Ae)(({ theme: e }) => ({
3603
3603
  children: e
3604
3604
  }
3605
3605
  ), Wa = () => {
3606
- const { t: e } = L(), [t, n] = K(), {
3606
+ const { t: e } = L(), [t, n] = G(), {
3607
3607
  columns: r,
3608
3608
  Model: o
3609
- } = ae(), s = t.get("order_by") || "", [a = "", l = ""] = s.split(":"), [d, u] = p.useState(a), [c, h] = p.useState(l), [y, S] = p.useState(!1), b = () => {
3609
+ } = ae(), s = t.get("order_by") || "", [a = "", l = ""] = s.split(":"), [d, c] = p.useState(a), [u, h] = p.useState(l), [y, S] = p.useState(!1), b = () => {
3610
3610
  S(!0);
3611
3611
  }, m = () => {
3612
- S(!1), u(a), h(l);
3612
+ S(!1), c(a), h(l);
3613
3613
  }, g = () => {
3614
- if (!d || !c) {
3614
+ if (!d || !u) {
3615
3615
  S(!1);
3616
3616
  return;
3617
3617
  }
3618
3618
  n((A) => {
3619
3619
  const E = new URLSearchParams(A);
3620
- return E.set("order_by", `${d}:${c}`), E;
3620
+ return E.set("order_by", `${d}:${u}`), E;
3621
3621
  }), S(!1);
3622
3622
  }, x = () => {
3623
3623
  n((A) => {
3624
3624
  const E = new URLSearchParams(A);
3625
3625
  return E.delete("order_by"), E;
3626
- }), S(!1), u(""), h("");
3626
+ }), S(!1), c(""), h("");
3627
3627
  };
3628
3628
  return /* @__PURE__ */ w(B, { children: [
3629
3629
  /* @__PURE__ */ i(q, { onClick: b, children: /* @__PURE__ */ i(
@@ -3647,13 +3647,13 @@ const qa = Z(Ae)(({ theme: e }) => ({
3647
3647
  }
3648
3648
  )
3649
3649
  ] }),
3650
- /* @__PURE__ */ w(kt, { dividers: !0, children: [
3650
+ /* @__PURE__ */ w(Tt, { dividers: !0, children: [
3651
3651
  /* @__PURE__ */ w(
3652
3652
  $t,
3653
3653
  {
3654
3654
  value: d,
3655
3655
  onChange: (A) => {
3656
- u(A.target.value), c || h("asc");
3656
+ c(A.target.value), u || h("asc");
3657
3657
  },
3658
3658
  children: [
3659
3659
  /* @__PURE__ */ i($, { variant: "caption", children: e("Column") }),
@@ -3675,7 +3675,7 @@ const qa = Z(Ae)(({ theme: e }) => ({
3675
3675
  /* @__PURE__ */ w(
3676
3676
  $t,
3677
3677
  {
3678
- value: c,
3678
+ value: u,
3679
3679
  onChange: (A) => h(A.target.value),
3680
3680
  children: [
3681
3681
  /* @__PURE__ */ i(
@@ -3704,26 +3704,26 @@ const qa = Z(Ae)(({ theme: e }) => ({
3704
3704
  }
3705
3705
  )
3706
3706
  ] }),
3707
- /* @__PURE__ */ w(Tt, { children: [
3707
+ /* @__PURE__ */ w(kt, { children: [
3708
3708
  /* @__PURE__ */ i(M, { onClick: x, sx: { mr: "auto" }, children: e("Clear") }),
3709
3709
  /* @__PURE__ */ i(M, { onClick: g, variant: "contained", children: e("Apply") })
3710
3710
  ] })
3711
3711
  ] })
3712
3712
  ] });
3713
3713
  }, Va = ({ items: e, loading: t, children: n, error: r }) => {
3714
- const o = te(), s = p.useMemo(() => V([]), [o, e]), [a] = K(), l = a.get("tab") ?? "all", d = p.useMemo(() => [
3714
+ const o = te(), s = p.useMemo(() => V([]), [o, e]), [a] = G(), l = a.get("tab") ?? "all", d = p.useMemo(() => [
3715
3715
  {
3716
3716
  key: o.getSchema().labeledBy,
3717
- label: k.human(o.getSchema().labeledBy)
3717
+ label: T.human(o.getSchema().labeledBy)
3718
3718
  }
3719
- ], [o]), u = v(), c = p.useMemo(() => T("cms").getMassActions(o, l), [o, l]), h = xt(
3720
- T("cms"),
3721
- `model${k.studly(o.getSchemaName())}Columns`,
3719
+ ], [o]), c = v(), u = p.useMemo(() => k("cms").getMassActions(o, l), [o, l]), h = xt(
3720
+ k("cms"),
3721
+ `model${T.studly(o.getSchemaName())}Columns`,
3722
3722
  d
3723
- ), S = (u ? h.length : 1) + (c.length > 0 ? 2 : 1), b = {
3723
+ ), S = (c ? h.length : 1) + (u.length > 0 ? 2 : 1), b = {
3724
3724
  columns: h,
3725
3725
  columnCount: S,
3726
- massActions: c,
3726
+ massActions: u,
3727
3727
  items: e,
3728
3728
  loading: t,
3729
3729
  selected: s,
@@ -3750,13 +3750,13 @@ const qa = Z(Ae)(({ theme: e }) => ({
3750
3750
  massActions: n,
3751
3751
  columns: r,
3752
3752
  items: o
3753
- } = ae(), s = v(), [a, l] = K(), {
3753
+ } = ae(), s = v(), [a, l] = G(), {
3754
3754
  indeterminate: d,
3755
- allSelected: u,
3756
- handleSelectToggleAll: c
3755
+ allSelected: c,
3756
+ handleSelectToggleAll: u
3757
3757
  } = Wt(), {
3758
3758
  ["ModelIndex.Table.ShrinkedCell"]: h
3759
- } = T("cms").getComponents(), y = a.get("order_by") || "", [S, b] = y.split(":"), m = (g) => () => {
3759
+ } = k("cms").getComponents(), y = a.get("order_by") || "", [S, b] = y.split(":"), m = (g) => () => {
3760
3760
  l(S === g ? (x) => {
3761
3761
  const A = new URLSearchParams(x);
3762
3762
  return b ? b === "desc" ? (A.delete("order_by"), A) : (A.set("order_by", `${g}:desc`), A) : (A.set("order_by", `${g}:asc`), A);
@@ -3772,8 +3772,8 @@ const qa = Z(Ae)(({ theme: e }) => ({
3772
3772
  Rt,
3773
3773
  {
3774
3774
  indeterminate: d,
3775
- checked: u,
3776
- onChange: c,
3775
+ checked: c,
3776
+ onChange: u,
3777
3777
  disabled: o && o.count() === 0
3778
3778
  }
3779
3779
  ) }),
@@ -3803,29 +3803,30 @@ const qa = Z(Ae)(({ theme: e }) => ({
3803
3803
  }, Ya = () => {
3804
3804
  const {
3805
3805
  massActions: e,
3806
- columns: t
3807
- } = ae(), n = v(), {
3808
- ["ModelIndex.Table.ShrinkedCell"]: r
3809
- } = T("cms").getComponents(), [o] = K(), s = parseInt(o.get("per_page") || "15");
3806
+ columns: t,
3807
+ items: n
3808
+ } = ae(), r = v(), {
3809
+ ["ModelIndex.Table.ShrinkedCell"]: o
3810
+ } = k("cms").getComponents(), s = (n == null ? void 0 : n.count()) || 15;
3810
3811
  return /* @__PURE__ */ i(B, { children: Array.from({ length: s }).map((a, l) => /* @__PURE__ */ w(fe, { children: [
3811
- e.length > 0 && /* @__PURE__ */ i(r, { children: /* @__PURE__ */ i(Rt, {}) }),
3812
- n && t.map(({ key: d, label: u, sortable: c, ...h }, y) => /* @__PURE__ */ i(ee, { ...h, children: /* @__PURE__ */ i(
3812
+ e.length > 0 && /* @__PURE__ */ i(o, { children: /* @__PURE__ */ i(Rt, {}) }),
3813
+ r && t.map(({ key: d, label: c, sortable: u, ...h }, y) => /* @__PURE__ */ i(ee, { ...h, children: /* @__PURE__ */ i(
3813
3814
  Kt,
3814
3815
  {
3815
3816
  variant: "text",
3816
3817
  height: 24
3817
3818
  }
3818
3819
  ) }, y)),
3819
- !n && /* @__PURE__ */ i(ee, { sx: { px: 0 }, children: Array.from({ length: t.length }).map((d, u) => /* @__PURE__ */ i(
3820
+ !r && /* @__PURE__ */ i(ee, { sx: { px: 0 }, children: Array.from({ length: t.length }).map((d, c) => /* @__PURE__ */ i(
3820
3821
  Kt,
3821
3822
  {
3822
3823
  variant: "text",
3823
3824
  width: "100%",
3824
3825
  height: 24
3825
3826
  },
3826
- u
3827
+ c
3827
3828
  )) }),
3828
- /* @__PURE__ */ i(r, { children: /* @__PURE__ */ i(q, { children: /* @__PURE__ */ i(Pt, {}) }) })
3829
+ /* @__PURE__ */ i(o, { children: /* @__PURE__ */ i(q, { children: /* @__PURE__ */ i(Pt, {}) }) })
3829
3830
  ] }, l)) });
3830
3831
  }, Ja = ({ children: e, ...t }) => {
3831
3832
  const n = te(), { t: r } = L(), {
@@ -3834,18 +3835,14 @@ const qa = Z(Ae)(({ theme: e }) => ({
3834
3835
  columnCount: a
3835
3836
  } = ae(), {
3836
3837
  ["ModelIndex.StaticActions"]: l
3837
- } = T("cms").getComponents(), d = p.isValidElement(e) ? e : (o || V([])).map(e);
3838
- return /* @__PURE__ */ w(Yr, { ...t, children: [
3839
- s && /* @__PURE__ */ i(Ya, {}),
3840
- d,
3841
- o && !o.count() && /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ w(ee, { colSpan: a, sx: { textAlign: "center", py: 10 }, children: [
3842
- /* @__PURE__ */ i($, { children: r("No :model found", {
3843
- model: n.plural().toLocaleLowerCase()
3844
- }) }),
3845
- /* @__PURE__ */ i("br", {}),
3846
- /* @__PURE__ */ i(l, {})
3847
- ] }) })
3848
- ] });
3838
+ } = k("cms").getComponents(), d = p.isValidElement(e) ? e : (o || V([])).map(e);
3839
+ return /* @__PURE__ */ i(Yr, { ...t, children: s || !(o != null && o.every((c) => c.getType() === n.getSchemaName())) ? /* @__PURE__ */ i(Ya, {}) : o && o.count() ? d : /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ w(ee, { colSpan: a, sx: { textAlign: "center", py: 10 }, children: [
3840
+ /* @__PURE__ */ i($, { children: r("No :model found", {
3841
+ model: n.plural().toLocaleLowerCase()
3842
+ }) }),
3843
+ /* @__PURE__ */ i("br", {}),
3844
+ /* @__PURE__ */ i(l, {})
3845
+ ] }) }) });
3849
3846
  };
3850
3847
  class Ga {
3851
3848
  getFacadeAccessor() {
@@ -3889,13 +3886,13 @@ const I = Ft(Ga, St), de = Z($)(() => ({
3889
3886
  ] }), Qa = ({ item: e, ...t }) => {
3890
3887
  const n = v(), r = At(), o = te(), { massActions: s, columns: a } = ae(), l = p.useMemo(() => a.map((y) => ({
3891
3888
  ...y,
3892
- content: I[`model${k.studly(e.getType())}Get${k.studly(y.key)}Content`](G.get(e, y.key), e)
3889
+ content: I[`model${T.studly(e.getType())}Get${T.studly(y.key)}Content`](J.get(e, y.key), e)
3893
3890
  //
3894
3891
  })), [a, e]), {
3895
3892
  ["ModelIndex.Table.ShrinkedCell"]: d,
3896
- ["ModelIndex.InstanceActions"]: u
3893
+ ["ModelIndex.InstanceActions"]: c
3897
3894
  } = I.getComponents(), {
3898
- isSelected: c,
3895
+ isSelected: u,
3899
3896
  handleSelectToggle: h
3900
3897
  } = Wt();
3901
3898
  return /* @__PURE__ */ w(
@@ -3903,13 +3900,13 @@ const I = Ft(Ga, St), de = Z($)(() => ({
3903
3900
  {
3904
3901
  ...t,
3905
3902
  sx: { cursor: e.deletedAt ? "default" : "pointer" },
3906
- selected: c(e),
3903
+ selected: u(e),
3907
3904
  hover: !e.deletedAt,
3908
3905
  children: [
3909
3906
  s.length > 0 && /* @__PURE__ */ i(d, { children: /* @__PURE__ */ i(
3910
3907
  Rt,
3911
3908
  {
3912
- checked: c(e),
3909
+ checked: u(e),
3913
3910
  onChange: () => h(e)
3914
3911
  }
3915
3912
  ) }),
@@ -3918,7 +3915,7 @@ const I = Ft(Ga, St), de = Z($)(() => ({
3918
3915
  {
3919
3916
  ...g,
3920
3917
  onClick: () => {
3921
- e.deletedAt || r(`/${k.kebab(o.plural())}/${e.getKey()}`);
3918
+ e.deletedAt || r(`/${T.kebab(o.plural())}/${e.getKey()}`);
3922
3919
  },
3923
3920
  children: /* @__PURE__ */ i(
3924
3921
  Za,
@@ -3935,12 +3932,12 @@ const I = Ft(Ga, St), de = Z($)(() => ({
3935
3932
  {
3936
3933
  sx: { maxWidth: 0, px: 0 },
3937
3934
  onClick: () => {
3938
- e.deletedAt || r(`/${k.kebab(o.plural())}/${e.getKey()}`);
3935
+ e.deletedAt || r(`/${T.kebab(o.plural())}/${e.getKey()}`);
3939
3936
  },
3940
3937
  children: l.map(({ key: y, ...S }) => /* @__PURE__ */ i(Xa, { ...S }, y))
3941
3938
  }
3942
3939
  ),
3943
- /* @__PURE__ */ i(d, { children: /* @__PURE__ */ i(u, { item: e }) })
3940
+ /* @__PURE__ */ i(d, { children: /* @__PURE__ */ i(c, { item: e }) })
3944
3941
  ]
3945
3942
  }
3946
3943
  );
@@ -3951,7 +3948,7 @@ const I = Ft(Ga, St), de = Z($)(() => ({
3951
3948
  ["ModelIndex.Pagination"]: s,
3952
3949
  ["ModelIndex.PaginationDetails"]: a,
3953
3950
  ["ModelIndex.PerPageSwitch"]: l
3954
- } = T("cms").getComponents();
3951
+ } = k("cms").getComponents();
3955
3952
  return /* @__PURE__ */ w(Jr, { ...t, children: [
3956
3953
  /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i(ee, { colSpan: n, children: /* @__PURE__ */ w(
3957
3954
  N,
@@ -3996,7 +3993,7 @@ const I = Ft(Ga, St), de = Z($)(() => ({
3996
3993
  ["ModelIndex.Sort"]: r,
3997
3994
  ["ModelIndex.Pagination"]: o
3998
3995
  // ['ModelIndex.PaginationDetails']: PaginationDetails,
3999
- } = T("cms").getComponents(), s = v(), a = z("breakpoint", "md");
3996
+ } = k("cms").getComponents(), s = v(), a = z("breakpoint", "md");
4000
3997
  return /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i(ee, { colSpan: e, sx: { p: 1 }, children: /* @__PURE__ */ w(
4001
3998
  N,
4002
3999
  {
@@ -4038,14 +4035,14 @@ const I = Ft(Ga, St), de = Z($)(() => ({
4038
4035
  ) }) });
4039
4036
  };
4040
4037
  function ni() {
4041
- const e = te(), { t } = L(), [n, r] = K(), o = n.get("tab") || "all", s = (d, u) => {
4038
+ const e = te(), { t } = L(), [n, r] = G(), o = n.get("tab") || "all", s = (d, c) => {
4042
4039
  r(() => {
4043
- const c = new URLSearchParams();
4044
- return u !== "all" && c.set("tab", u), c;
4040
+ const u = new URLSearchParams();
4041
+ return c !== "all" && u.set("tab", c), u;
4045
4042
  });
4046
4043
  }, a = p.useMemo(() => e.getSchema().softDeletes ? [{ label: t("Trashed"), value: "trashed" }] : [], [e, t]), l = xt(
4047
- T("cms"),
4048
- `model${k.studly(e.getSchemaName())}Tabs`,
4044
+ k("cms"),
4045
+ `model${T.studly(e.getSchemaName())}Tabs`,
4049
4046
  a
4050
4047
  );
4051
4048
  return l.length === 0 ? null : /* @__PURE__ */ i(H, { sx: { maxWidth: { xs: 320, sm: 480 }, bgcolor: "background.paper" }, children: /* @__PURE__ */ w(
@@ -4126,7 +4123,7 @@ const hr = ({
4126
4123
  onClick: n,
4127
4124
  ...r
4128
4125
  }) => {
4129
- const [o, s] = p.useState(null), [a, l] = p.useState(null), [d, u] = p.useState({}), c = z("drawer.width", 280), h = T("cms").getComponent("RecursiveMenu");
4126
+ const [o, s] = p.useState(null), [a, l] = p.useState(null), [d, c] = p.useState({}), u = z("drawer.width", 280), h = k("cms").getComponent("RecursiveMenu");
4130
4127
  return /* @__PURE__ */ w(Xr, { ...r, children: [
4131
4128
  t.map((y) => {
4132
4129
  const {
@@ -4158,7 +4155,7 @@ const hr = ({
4158
4155
  l(() => (s(P.currentTarget), x));
4159
4156
  return;
4160
4157
  }
4161
- u({
4158
+ c({
4162
4159
  ...d,
4163
4160
  [g]: !d[g]
4164
4161
  });
@@ -4232,7 +4229,7 @@ const hr = ({
4232
4229
  s(null), l(null);
4233
4230
  },
4234
4231
  open: !!o,
4235
- slotProps: { paper: { sx: { minWidth: c } } }
4232
+ slotProps: { paper: { sx: { minWidth: u } } }
4236
4233
  }
4237
4234
  )
4238
4235
  ] });
@@ -4247,14 +4244,14 @@ const hr = ({
4247
4244
  /* @__PURE__ */ i(An, { ...r, children: t.map((l) => {
4248
4245
  const {
4249
4246
  text: d,
4250
- icon: u,
4251
- element: c = null,
4247
+ icon: c,
4248
+ element: u = null,
4252
4249
  key: h,
4253
4250
  children: y,
4254
4251
  onClick: S,
4255
4252
  to: b
4256
4253
  } = l;
4257
- return c || /* @__PURE__ */ w(
4254
+ return u || /* @__PURE__ */ w(
4258
4255
  se,
4259
4256
  {
4260
4257
  onClick: (m) => {
@@ -4273,7 +4270,7 @@ const hr = ({
4273
4270
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4274
4271
  } : {},
4275
4272
  children: [
4276
- u && /* @__PURE__ */ i(
4273
+ c && /* @__PURE__ */ i(
4277
4274
  wn,
4278
4275
  {
4279
4276
  sx: {
@@ -4282,7 +4279,7 @@ const hr = ({
4282
4279
  justifyContent: "center",
4283
4280
  color: "inherit"
4284
4281
  },
4285
- children: u
4282
+ children: c
4286
4283
  }
4287
4284
  ),
4288
4285
  /* @__PURE__ */ i(Sn, { sx: { opacity: e ? 0 : 1 }, children: d }),
@@ -4293,11 +4290,11 @@ const hr = ({
4293
4290
  );
4294
4291
  }) }),
4295
4292
  t.map((l) => {
4296
- const { key: d, children: u } = l;
4297
- return u ? /* @__PURE__ */ i(
4293
+ const { key: d, children: c } = l;
4294
+ return c ? /* @__PURE__ */ i(
4298
4295
  pr,
4299
4296
  {
4300
- items: u,
4297
+ items: c,
4301
4298
  onClick: n,
4302
4299
  collapsed: e,
4303
4300
  sx: { pl: e ? 0 : 2, pb: 0 },
@@ -4318,17 +4315,17 @@ const hr = ({
4318
4315
  title: e.getSchema().softDeletes ? s("Confirm send to trash") : s("Confirm delete permanently"),
4319
4316
  message: s(`Are you sure you want to ${a} :count :model?`, {
4320
4317
  count: t.count(),
4321
- model: k.lcfirst(t.count() === 1 ? e.singular() : e.plural())
4318
+ model: T.lcfirst(t.count() === 1 ? e.singular() : e.plural())
4322
4319
  }),
4323
4320
  type: "confirm"
4324
4321
  }))
4325
4322
  try {
4326
4323
  await e.delete(t.pluck(e.getSchema().primaryKey).all()), n(s(`Successfully ${l} :count :model`, {
4327
4324
  count: t.count(),
4328
- model: k.lcfirst(t.count() === 1 ? e.singular() : e.plural())
4325
+ model: T.lcfirst(t.count() === 1 ? e.singular() : e.plural())
4329
4326
  })), o();
4330
- } catch (u) {
4331
- ce(n)(u);
4327
+ } catch (c) {
4328
+ ce(n)(c);
4332
4329
  }
4333
4330
  },
4334
4331
  restore: (e) => async ({ selected: t, notify: n, dialog: r, refresh: o, t: s }) => {
@@ -4336,14 +4333,14 @@ const hr = ({
4336
4333
  title: s("Confirm restore"),
4337
4334
  message: s("Are you sure you want to restore :count :model?", {
4338
4335
  count: t.count(),
4339
- model: k.lcfirst(t.count() === 1 ? e.singular() : e.plural())
4336
+ model: T.lcfirst(t.count() === 1 ? e.singular() : e.plural())
4340
4337
  }),
4341
4338
  type: "confirm"
4342
4339
  }))
4343
4340
  try {
4344
4341
  await e.restore(t.pluck(e.getSchema().primaryKey).all()), n(s("Successfully restored :count :model", {
4345
4342
  count: t.count(),
4346
- model: k.lcfirst(t.count() === 1 ? e.singular() : e.plural())
4343
+ model: T.lcfirst(t.count() === 1 ? e.singular() : e.plural())
4347
4344
  })), o();
4348
4345
  } catch (l) {
4349
4346
  ce(n)(l);
@@ -4354,14 +4351,14 @@ const hr = ({
4354
4351
  title: s("Confirm permanent deletion"),
4355
4352
  message: s("Are you sure you want to delete permanently :count :model?", {
4356
4353
  count: t.count(),
4357
- model: k.lcfirst(t.count() === 1 ? e.singular() : e.plural())
4354
+ model: T.lcfirst(t.count() === 1 ? e.singular() : e.plural())
4358
4355
  }),
4359
4356
  type: "confirm"
4360
4357
  }))
4361
4358
  try {
4362
4359
  await e.forceDelete(t.pluck(e.getSchema().primaryKey).all()), n(s("Successfully deleted :count :model", {
4363
4360
  count: t.count(),
4364
- model: k.lcfirst(t.count() === 1 ? e.singular() : e.plural())
4361
+ model: T.lcfirst(t.count() === 1 ? e.singular() : e.plural())
4365
4362
  })), o();
4366
4363
  } catch (l) {
4367
4364
  ce(n)(l);
@@ -4373,7 +4370,7 @@ const hr = ({
4373
4370
  if (await r({
4374
4371
  title: e.getSchema().softDeletes ? s("Confirm send to trash") : s("Confirm permanent deletion"),
4375
4372
  message: s(`Are you sure you want to ${a}?`, {
4376
- model: k.lcfirst(e.singular()),
4373
+ model: T.lcfirst(e.singular()),
4377
4374
  label: t.getLabel()
4378
4375
  }),
4379
4376
  type: "confirm"
@@ -4383,15 +4380,15 @@ const hr = ({
4383
4380
  model: e.singular(),
4384
4381
  label: t.getLabel()
4385
4382
  })), o();
4386
- } catch (u) {
4387
- ce(n)(u);
4383
+ } catch (c) {
4384
+ ce(n)(c);
4388
4385
  }
4389
4386
  },
4390
4387
  restore: (e) => async ({ item: t, notify: n, dialog: r, refresh: o, t: s }) => {
4391
4388
  if (await r({
4392
4389
  title: s("Confirm restore"),
4393
4390
  message: s("Are you sure you want to restore :model “:label”?", {
4394
- model: k.lcfirst(e.singular()),
4391
+ model: T.lcfirst(e.singular()),
4395
4392
  label: t.getLabel()
4396
4393
  }),
4397
4394
  type: "confirm"
@@ -4409,7 +4406,7 @@ const hr = ({
4409
4406
  if (await r({
4410
4407
  title: s("Confirm permanent deletion"),
4411
4408
  message: s("Are you sure you want to delete :model “:label” permanently?", {
4412
- model: k.lcfirst(e.singular()),
4409
+ model: T.lcfirst(e.singular()),
4413
4410
  label: t.getLabel()
4414
4411
  }),
4415
4412
  type: "confirm"
@@ -4425,12 +4422,12 @@ const hr = ({
4425
4422
  }
4426
4423
  }, oi = {
4427
4424
  create: (e) => ({ navigate: t }) => {
4428
- t(`/${k.kebab(e.plural())}/create`);
4425
+ t(`/${T.kebab(e.plural())}/create`);
4429
4426
  }
4430
4427
  }, si = ({ item: e }) => {
4431
- const t = qt(), [n] = K(), r = n.get("tab") ?? "all", o = p.useMemo(() => T("cms").getInstanceActions(e.constructor, r), [e, r]), [s, a] = p.useState(null), l = !!s, d = (c) => {
4432
- a(c.currentTarget);
4433
- }, u = () => {
4428
+ const t = qt(), [n] = G(), r = n.get("tab") ?? "all", o = p.useMemo(() => k("cms").getInstanceActions(e.constructor, r), [e, r]), [s, a] = p.useState(null), l = !!s, d = (u) => {
4429
+ a(u.currentTarget);
4430
+ }, c = () => {
4434
4431
  a(null);
4435
4432
  };
4436
4433
  return /* @__PURE__ */ w(B, { children: [
@@ -4449,26 +4446,26 @@ const hr = ({
4449
4446
  id: "model-item-actions",
4450
4447
  anchorEl: s,
4451
4448
  open: l,
4452
- onClose: u,
4449
+ onClose: c,
4453
4450
  MenuListProps: {
4454
4451
  "aria-labelledby": "model-item-action"
4455
4452
  },
4456
- children: o.map((c) => /* @__PURE__ */ w(
4453
+ children: o.map((u) => /* @__PURE__ */ w(
4457
4454
  se,
4458
4455
  {
4459
4456
  onClick: () => {
4460
- c.callback({
4457
+ u.callback({
4461
4458
  item: e,
4462
4459
  ...t
4463
- }), u();
4460
+ }), c();
4464
4461
  },
4465
4462
  sx: { px: 1, gap: 0.75 },
4466
4463
  children: [
4467
- c.icon,
4468
- c.label
4464
+ u.icon,
4465
+ u.label
4469
4466
  ]
4470
4467
  },
4471
- c.label
4468
+ u.label
4472
4469
  ))
4473
4470
  }
4474
4471
  )
@@ -4493,28 +4490,28 @@ class ai {
4493
4490
  return this.wireModelFormProps({}, t);
4494
4491
  }
4495
4492
  getMassActions(t, n) {
4496
- return this[`mass${k.studly(t.getSchemaName())}Actions`](
4493
+ return this[`mass${T.studly(t.getSchemaName())}Actions`](
4497
4494
  this.massActions([], t, n),
4498
4495
  t,
4499
4496
  n
4500
4497
  );
4501
4498
  }
4502
4499
  getInstanceActions(t, n) {
4503
- return this[`instance${k.studly(t.getSchemaName())}Actions`](
4500
+ return this[`instance${T.studly(t.getSchemaName())}Actions`](
4504
4501
  this.instanceActions([], t, n),
4505
4502
  t,
4506
4503
  n
4507
4504
  );
4508
4505
  }
4509
4506
  getStaticActions(t, n) {
4510
- return this[`static${k.studly(t.getSchemaName())}Actions`](
4507
+ return this[`static${T.studly(t.getSchemaName())}Actions`](
4511
4508
  this.staticActions([], t, n),
4512
4509
  t,
4513
4510
  n
4514
4511
  );
4515
4512
  }
4516
4513
  }
4517
- const ii = In(ai), be = (e) => !(typeof e > "u" || e === null || G.isEmpty(e));
4514
+ const ii = In(ai), be = (e) => !(typeof e > "u" || e === null || J.isEmpty(e));
4518
4515
  class li {
4519
4516
  getInputType(t) {
4520
4517
  switch (t) {
@@ -4569,7 +4566,7 @@ class li {
4569
4566
  r = "<=";
4570
4567
  break;
4571
4568
  default:
4572
- r = k.human(r);
4569
+ r = T.human(r);
4573
4570
  break;
4574
4571
  }
4575
4572
  return {
@@ -4583,9 +4580,9 @@ class li {
4583
4580
  return [
4584
4581
  ...n.filter((o) => !o.hidden && !o.appended).map((o) => {
4585
4582
  let s = o.phpType ?? "string";
4586
- return o.cast !== null && !G.isEmpty(o.cast) && (s = o.cast), {
4583
+ return o.cast !== null && !J.isEmpty(o.cast) && (s = o.cast), {
4587
4584
  key: o.name,
4588
- label: k.human(o.name),
4585
+ label: T.human(o.name),
4589
4586
  type: s,
4590
4587
  nullable: o.nullable,
4591
4588
  is_relation: !1
@@ -4596,7 +4593,7 @@ class li {
4596
4593
  ...o,
4597
4594
  {
4598
4595
  key: s,
4599
- label: k.human(s),
4596
+ label: T.human(s),
4600
4597
  type: "autocomplete",
4601
4598
  nullable: !1,
4602
4599
  is_relation: !0
@@ -4609,7 +4606,7 @@ class li {
4609
4606
  if (!be(r.key) || !be(r.operator))
4610
4607
  return !0;
4611
4608
  if (["boolean"].includes(this.getInputType(r.type))) {
4612
- if (typeof r.value > "u" || G.isNull(r.value))
4609
+ if (typeof r.value > "u" || J.isNull(r.value))
4613
4610
  return !0;
4614
4611
  } else if (!be(r.value))
4615
4612
  return !0;
@@ -4635,7 +4632,7 @@ class ui {
4635
4632
  );
4636
4633
  }
4637
4634
  forModel(t, n) {
4638
- Oe.reducer(`model${k.studly(t)}`, (r) => {
4635
+ Oe.reducer(`model${T.studly(t)}`, (r) => {
4639
4636
  const o = this;
4640
4637
  return class extends r {
4641
4638
  static icon() {
@@ -4665,7 +4662,7 @@ class di {
4665
4662
  return "icon";
4666
4663
  }
4667
4664
  }
4668
- const ke = Ft(di, St), fi = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAABbWlDQ1BpY2MAACiRdZG9S0JRGMZ/aqWU0VBDRIOBRYORFERj2eAiIWaQ1aI3PwI/LvcqIa1BS4PQELX0NfQf1Bq0FgRBEUQ0Nve1hNzeo4ISdS7nvj+ec56Xc54D9lBWy5ltfsjli0YkGPAsxZY9zldcdADjDMU1U58Nh0P8O77usal6N6Z6/b/vz9G1ljQ1sLmEpzTdKArPCIc2irriHeE+LRNfEz4S9hlyQOFrpSfq/KI4XecPxUY0Mgd21dOTbuFEC2sZIyc8KuzNZUta4zzqJu5kfnFB6oDMQUwiBAngIUGJdbIUGZOal8z+9vlrvnkK4tHkr1PGEEe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+zkKvlCfb3RskqT33CQIDnX8/cG6rieiQmya8Ah9XiLi+mU92HTlYuM0nCQfDMyQvDBWa5gtOCg3AFOvk0P1VKWhcrFMiDA4H/prJoe3GE+tt7iE0JW3cgWN9Ind6K4J6MUpRNt7XSdt1gGh4McyqGsOsnK/ZtwwNDd4hneztfa2+nzwUFprgNckOGerKykV+/3SF/AiEp6YzQBv74+Qm90dFDf5CStSUtTzYEiKMSR/cz27fTirvs0043qQZMd0ig+19NLL1y+LBTBN8QMVy78lf/31DiHw9yev/ceOrZjh8klzQ1X+eDVW7fY59oE0MueanJzWgGMYoBDO8GV8n8NhzVVgJ/2D9AER+2RsjLxgd3NwEpCVioWFJpPba00J4XF0SofRLRmss+5s7PopR9+jJXrrOYS+1sa132NNbsFfLJMpWBZfp5Y+92uLhq+fVuohyrYydBII8mEA4cK0OPaIADDEb4pYDhEKk4FXJEd4O/bZJtqi6Ga4msoEBDFqII9Lley2cR6KkBcPsKwrYA7yxc9cfd3SYdUbXG+0ykCAkfWHZeLSYfDggBc8X2IG6hs/vJ6nVPJAxti/rgqZLFFw0gj1/DxrhhvbZQL0/iu1fz7GhQ8H69QKue8mo3iQvv/YOegoJNby2rKpLE2mGKXifyHg9uz3Lq4BTUeSEY31vZzOwYmbOFfRuevM6ot++oAAAAASUVORK5CYII=";
4669
4666
  function pi() {
4670
4667
  const e = Me("(prefers-color-scheme: dark)"), t = dr();
4671
4668
  return /* @__PURE__ */ i(
@@ -4706,7 +4703,7 @@ const Ie = class Ie extends Mn {
4706
4703
  // );
4707
4704
  // }
4708
4705
  registerIcons() {
4709
- ke.registerIcon({
4706
+ Te.registerIcon({
4710
4707
  Add: so,
4711
4708
  AddCircleOutline: En,
4712
4709
  ArrowDownward: vn,
@@ -4719,16 +4716,16 @@ const Ie = class Ie extends Mn {
4719
4716
  DashboardOutlined: io,
4720
4717
  ExpandLess: Fn,
4721
4718
  ExpandMore: Ln,
4722
- FilterList: kn,
4719
+ FilterList: Tn,
4723
4720
  FirstPage: On,
4724
4721
  HighlightOffOutlined: ct,
4725
4722
  LastPage: Dn,
4726
- Menu: Tn,
4723
+ Menu: kn,
4727
4724
  MoreVert: Pt,
4728
4725
  PeopleOutlined: lo,
4729
4726
  Search: ut,
4730
4727
  SwapVert: Rn
4731
- }), ke.forModel("user", "PeopleOutlined");
4728
+ }), Te.forModel("user", "PeopleOutlined");
4732
4729
  }
4733
4730
  bootRoutes() {
4734
4731
  I.reducer("cmsRoutes", So, 0), yr.reducer("domRouterOptions", (t) => ({
@@ -4740,7 +4737,7 @@ const Ie = class Ie extends Mn {
4740
4737
  I.reducer("componentMap", () => ({
4741
4738
  Layout: Eo,
4742
4739
  Dashboard: Ao,
4743
- ModelIndex: To,
4740
+ ModelIndex: ko,
4744
4741
  ModelItem: aa,
4745
4742
  Error: xo,
4746
4743
  DesktopPageTitle: Sa,
@@ -4778,12 +4775,12 @@ const Ie = class Ie extends Mn {
4778
4775
  key: "dashboard",
4779
4776
  text: "Dashboard",
4780
4777
  to: "/",
4781
- icon: ke.render("DashboardOutlined")
4778
+ icon: Te.render("DashboardOutlined")
4782
4779
  },
4783
4780
  ...Object.entries(n).sort(([r], [o]) => r.localeCompare(o)).map(([r, o]) => ({
4784
4781
  key: r,
4785
4782
  text: o.plural(),
4786
- to: "/" + k.kebab(o.plural()),
4783
+ to: "/" + T.kebab(o.plural()),
4787
4784
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4788
4785
  icon: o.icon()
4789
4786
  }))
@@ -4860,7 +4857,7 @@ const Ie = class Ie extends Mn {
4860
4857
  key: "create",
4861
4858
  label: `Create ${n.singular()}`,
4862
4859
  callback: oi.create(n),
4863
- icon: ke.render("Add")
4860
+ icon: Te.render("Add")
4864
4861
  }
4865
4862
  ], 0);
4866
4863
  }
@@ -4877,7 +4874,7 @@ class mi extends Mn {
4877
4874
  this.translateModelColumns(), this.translateMenuEntries(), this.translateInstanceActions(), this.translateMassActions(), this.translateFormLabels(), this.translateStaticActions();
4878
4875
  }
4879
4876
  initI18Next() {
4880
- J.use(oo).init({
4877
+ Y.use(oo).init({
4881
4878
  lng: re.get("app.locale", "en"),
4882
4879
  fallbackLng: re.get("app.fallback_locale", "en"),
4883
4880
  resources: {
@@ -4903,10 +4900,10 @@ class mi extends Mn {
4903
4900
  "model",
4904
4901
  (t) => class extends t {
4905
4902
  static singular() {
4906
- return J.t(t.singular());
4903
+ return Y.t(t.singular());
4907
4904
  }
4908
4905
  static plural() {
4909
- return J.t(t.plural());
4906
+ return Y.t(t.plural());
4910
4907
  }
4911
4908
  },
4912
4909
  0
@@ -4915,10 +4912,10 @@ class mi extends Mn {
4915
4912
  translateModelColumns() {
4916
4913
  for (const t of Object.keys(Oe.make()))
4917
4914
  I.reducer(
4918
- `model${k.studly(t)}Columns`,
4915
+ `model${T.studly(t)}Columns`,
4919
4916
  (n) => n.map((r) => ({
4920
4917
  ...r,
4921
- label: J.t(r.label)
4918
+ label: Y.t(r.label)
4922
4919
  })),
4923
4920
  99
4924
4921
  );
@@ -4928,7 +4925,7 @@ class mi extends Mn {
4928
4925
  "menuItems",
4929
4926
  (t) => {
4930
4927
  const n = t.find((r) => r.key === "dashboard");
4931
- return n && (n.text = J.t(n.text)), t;
4928
+ return n && (n.text = Y.t(n.text)), t;
4932
4929
  },
4933
4930
  5
4934
4931
  );
@@ -4938,7 +4935,7 @@ class mi extends Mn {
4938
4935
  "massActions",
4939
4936
  (t) => t.map((n) => ({
4940
4937
  ...n,
4941
- label: J.t(n.label)
4938
+ label: Y.t(n.label)
4942
4939
  })),
4943
4940
  99
4944
4941
  );
@@ -4948,7 +4945,7 @@ class mi extends Mn {
4948
4945
  "instanceActions",
4949
4946
  (t) => t.map((n) => ({
4950
4947
  ...n,
4951
- label: J.t(n.label)
4948
+ label: Y.t(n.label)
4952
4949
  })),
4953
4950
  99
4954
4951
  );
@@ -4958,7 +4955,7 @@ class mi extends Mn {
4958
4955
  "staticActions",
4959
4956
  (t, n) => {
4960
4957
  const r = t.find(({ key: o }) => o === "create");
4961
- return r && (r.label = J.t("Create :model", {
4958
+ return r && (r.label = Y.t("Create :model", {
4962
4959
  model: n.singular()
4963
4960
  })), t;
4964
4961
  }
@@ -4968,8 +4965,8 @@ class mi extends Mn {
4968
4965
  Er.reducer(
4969
4966
  "getDefaultInputProps",
4970
4967
  (t) => (Array.isArray(t) ? t.map((n) => {
4971
- n != null && n.label && (n.label = J.t(n.label));
4972
- }) : t != null && t.label && (t.label = J.t(t.label)), t),
4968
+ n != null && n.label && (n.label = Y.t(n.label));
4969
+ }) : t != null && t.label && (t.label = Y.t(t.label)), t),
4973
4970
  99
4974
4971
  );
4975
4972
  }
@@ -5003,7 +5000,7 @@ const gi = {
5003
5000
  return /* @__PURE__ */ w(uo, { theme: s, children: [
5004
5001
  /* @__PURE__ */ i(no, {}),
5005
5002
  /* @__PURE__ */ i(
5006
- kr,
5003
+ Tr,
5007
5004
  {
5008
5005
  routes: bi,
5009
5006
  providers: a,
@@ -5023,7 +5020,7 @@ export {
5023
5020
  wt as CmsServiceProvider,
5024
5021
  go as DialogProvider,
5025
5022
  Gi as Filter,
5026
- ke as Icon,
5023
+ Te as Icon,
5027
5024
  po as LayoutProvider,
5028
5025
  Ve as Link,
5029
5026
  Ji as LuminixCms,
@@ -5043,7 +5040,7 @@ export {
5043
5040
  _t as useMenu,
5044
5041
  Ut as useNotify,
5045
5042
  ur as usePageTitle,
5046
- ko as useSearch,
5043
+ To as useSearch,
5047
5044
  Wt as useSelection,
5048
5045
  Bt as useSetPageTitle,
5049
5046
  ae as useTable