@applica-software-guru/react-admin 1.5.330 → 1.5.332

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.
@@ -36278,7 +36278,8 @@ const Rde = {}, kde = Fc(Pde, { slot: "root" })(({ theme: e }) => ({
36278
36278
  }
36279
36279
  }));
36280
36280
  function ige(e) {
36281
- return /* @__PURE__ */ v(kde, { ...e, pagination: /* @__PURE__ */ v(uI, {}) });
36281
+ const t = { ...e, pagination: e.pagination ?? /* @__PURE__ */ v(uI, {}) };
36282
+ return /* @__PURE__ */ v(kde, { ...t });
36282
36283
  }
36283
36284
  function Mde() {
36284
36285
  const e = S3(), t = Pf(), n = So(), r = E3(n), { selectedIds: o, data: i } = Pm(), s = vn(), l = o.map((h) => i.find((p) => p.id === h)), [u, { isLoading: d }] = I3(
@@ -41321,12 +41322,9 @@ function Vpe(e) {
41321
41322
  });
41322
41323
  }
41323
41324
  function yge(e) {
41324
- const { defaultLocale: t, path: n } = e, r = [{ locale: t, name: t }], o = new Headers({ Accept: "application/json", "Content-Type": "application/json" });
41325
- function i() {
41326
- return fetch(`${n}/languages.json`, { headers: o, method: "get" }).then((l) => l.json()).catch(() => Promise.resolve(r));
41327
- }
41328
- function s() {
41329
- return fetch(`${n}/messages.json`, { headers: o, method: "get" }).then((l) => l.json()).then((l) => l.reduce(
41325
+ const { locales: t, defaultLocale: n, path: r } = e, o = new Headers({ Accept: "application/json", "Content-Type": "application/json" });
41326
+ function i(s) {
41327
+ return fetch(`${r}/${s.locale}.json`, { headers: o, method: "get" }).then((l) => l.json()).then((l) => l.reduce(
41330
41328
  (u, d) => ({
41331
41329
  ...u,
41332
41330
  [d.lang]: {
@@ -41337,12 +41335,20 @@ function yge(e) {
41337
41335
  {}
41338
41336
  ));
41339
41337
  }
41340
- return Promise.all([i(), s()]).then((l) => {
41341
- const [u, d] = l;
41342
- function f(h) {
41343
- return re.get(d, h, {});
41338
+ return Promise.all(t.map(i)).then(
41339
+ (s) => re.reduce(
41340
+ s,
41341
+ (l, u) => ({
41342
+ ...l,
41343
+ ...u
41344
+ }),
41345
+ {}
41346
+ )
41347
+ ).then((s) => {
41348
+ function l(u) {
41349
+ return re.get(s, u, {});
41344
41350
  }
41345
- return P3(f, t, u, {
41351
+ return P3(l, n, t, {
41346
41352
  allowMissing: !0
41347
41353
  });
41348
41354
  });
Binary file