@applica-software-guru/react-admin 1.5.342 → 1.5.343

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.
@@ -30865,24 +30865,28 @@ function ile({ setLoading: e }) {
30865
30865
  }
30866
30866
  return /* @__PURE__ */ y(Ae, { sx: { colorScheme: n ? "light" : "dark", width: "100%" }, ref: u, children: /* @__PURE__ */ y(ole, { theme: "outline", width: a, onSuccess: d, onError: f }) });
30867
30867
  }
30868
- function $ge({ label: e = "ra.auth.sign_in", ...t }) {
30869
- const n = mn(), [r, o] = Re(!1), i = z_(), a = me(
30870
- (l) => {
30871
- l.stopPropagation(), l.preventDefault(), o(!0), i.impersonate(n == null ? void 0 : n.id).then(() => {
30872
- o(!1), document.location.href = "/";
30868
+ function $ge({
30869
+ label: e = "ra.auth.sign_in",
30870
+ redirect: t = "/",
30871
+ ...n
30872
+ }) {
30873
+ const r = mn(), [o, i] = Re(!1), a = z_(), l = me(
30874
+ (u) => {
30875
+ u.stopPropagation(), u.preventDefault(), i(!0), a.impersonate(r == null ? void 0 : r.id).then(() => {
30876
+ i(!1), document.location.href = t;
30873
30877
  });
30874
30878
  },
30875
- [i, n == null ? void 0 : n.id]
30879
+ [a, r == null ? void 0 : r.id, t]
30876
30880
  );
30877
30881
  return /* @__PURE__ */ y(
30878
30882
  zs,
30879
30883
  {
30880
- disabled: r || i.impersonate === void 0,
30884
+ disabled: o || a.impersonate === void 0,
30881
30885
  color: "primary",
30882
30886
  variant: "text",
30883
30887
  label: e,
30884
- onClick: a,
30885
- ...t,
30888
+ onClick: l,
30889
+ ...n,
30886
30890
  children: /* @__PURE__ */ y(JM, {})
30887
30891
  }
30888
30892
  );
Binary file