@dashadmin/dash-admin 1.0.0 → 1.3.16

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.
@@ -1,8 +1,8 @@
1
- import { jsx as a, jsxs as b } from "react/jsx-runtime";
2
- import { Box as S, Alert as C, Button as x, TextField as v } from "@mui/material";
3
- import { useState as m, useEffect as j } from "react";
4
- import { useNavigate as R, useSearchParams as E } from "react-router-dom";
5
- import { b as L, F } from "./index-U84xs0Dc.js";
1
+ import { jsx as e, jsxs as g } from "react/jsx-runtime";
2
+ import { Box as P, Alert as b, Button as C, TextField as x } from "@mui/material";
3
+ import { useState as m, useEffect as S } from "react";
4
+ import { useNavigate as j, useSearchParams as R } from "react-router-dom";
5
+ import { b as E, F as L } from "./index-gfebuoyf.js";
6
6
  import "react-redux";
7
7
  import "react-admin";
8
8
  import "@dashadmin/dash-admin-state";
@@ -22,21 +22,21 @@ import "react-custom-scrollbars-2";
22
22
  import "@dashadmin/dash-utils";
23
23
  import "@mui/x-date-pickers";
24
24
  import "@mui/x-date-pickers/AdapterDayjs";
25
- const I = (l) => {
26
- let s = {};
27
- for (const e of l) {
28
- const [d, o] = e;
29
- s = { ...s, [d]: o };
25
+ const F = (l) => {
26
+ let r = {};
27
+ for (const a of l) {
28
+ const [d, s] = a;
29
+ r = { ...r, [d]: s };
30
30
  }
31
- return Object.keys(s).length > 0 ? s : null;
32
- }, re = ({}) => {
33
- const l = R();
34
- let [s] = E();
35
- const e = I(s.entries()), d = e != null && e.email ? decodeURIComponent(e.email).replace(/[)\]\s]+$/, "") : "", [o, w] = m(""), [h, N] = m(""), [c, f] = m(!1), [u, i] = m(""), [y, k] = m(!1), { axios: P } = L();
36
- return j(() => {
37
- (!(e != null && e.token) || !(e != null && e.email)) && l("/login");
38
- }, []), /* @__PURE__ */ a(F, { children: y ? /* @__PURE__ */ b(
39
- S,
31
+ return Object.keys(r).length > 0 ? r : null;
32
+ }, te = ({}) => {
33
+ const l = j();
34
+ let [r] = R();
35
+ const a = F(r.entries()), d = a?.email ? decodeURIComponent(a.email).replace(/[)\]\s]+$/, "") : "", [s, y] = m(""), [u, v] = m(""), [c, h] = m(!1), [f, o] = m(""), [w, N] = m(!1), { axios: k } = E();
36
+ return S(() => {
37
+ (!a?.token || !a?.email) && l("/login");
38
+ }, []), /* @__PURE__ */ e(L, { children: w ? /* @__PURE__ */ g(
39
+ P,
40
40
  {
41
41
  sx: {
42
42
  display: "flex",
@@ -53,10 +53,10 @@ const I = (l) => {
53
53
  mx: "auto"
54
54
  },
55
55
  children: [
56
- /* @__PURE__ */ a("h1", { className: "dash-app-login-form-title", style: { margin: 0 }, children: "Contraseña cambiada" }),
57
- /* @__PURE__ */ a(C, { severity: "success", sx: { mt: 2, mb: 2 }, children: "Tu contraseña ha sido cambiada correctamente." }),
58
- /* @__PURE__ */ a(
59
- x,
56
+ /* @__PURE__ */ e("h1", { className: "dash-app-login-form-title", style: { margin: 0 }, children: "Contraseña cambiada" }),
57
+ /* @__PURE__ */ e(b, { severity: "success", sx: { mt: 2, mb: 2 }, children: "Tu contraseña ha sido cambiada correctamente." }),
58
+ /* @__PURE__ */ e(
59
+ C,
60
60
  {
61
61
  variant: "contained",
62
62
  color: "primary",
@@ -67,74 +67,73 @@ const I = (l) => {
67
67
  )
68
68
  ]
69
69
  }
70
- ) : /* @__PURE__ */ b(
70
+ ) : /* @__PURE__ */ g(
71
71
  "form",
72
72
  {
73
- onSubmit: async (n) => {
74
- var g;
75
- if (n.preventDefault(), o === h) {
76
- i(""), f(!0);
73
+ onSubmit: async (i) => {
74
+ if (i.preventDefault(), s === u) {
75
+ o(""), h(!0);
77
76
  try {
78
- const { data: t } = await P.post("password/reset", {
79
- password: o,
80
- password_confirmation: h,
81
- token: e == null ? void 0 : e.token,
77
+ const { data: n } = await k.post("password/reset", {
78
+ password: s,
79
+ password_confirmation: u,
80
+ token: a?.token,
82
81
  email: d
83
82
  });
84
- k(!0);
85
- } catch (t) {
83
+ N(!0);
84
+ } catch (n) {
86
85
  let p = "Error al cambiar contraseña";
87
- if ((g = t == null ? void 0 : t.response) != null && g.data) {
88
- const r = t.response.data;
89
- r.errors && r.errors.email && r.errors.email.length > 0 ? p = r.errors.email[0] : r.message && (p = r.message);
90
- } else t != null && t.message && (p = t.message);
91
- i(p);
86
+ if (n?.response?.data) {
87
+ const t = n.response.data;
88
+ t.errors && t.errors.email && t.errors.email.length > 0 ? p = t.errors.email[0] : t.message && (p = t.message);
89
+ } else n?.message && (p = n.message);
90
+ o(p);
92
91
  } finally {
93
- f(!1);
92
+ h(!1);
94
93
  }
95
94
  } else
96
- i("Las contraseñas no coinciden");
95
+ o("Las contraseñas no coinciden");
97
96
  },
98
97
  className: "dash-app-login-form",
99
98
  autoComplete: "on",
100
99
  method: "post",
101
100
  children: [
102
- /* @__PURE__ */ a("h1", { className: "dash-app-login-form-title", children: "Cambiar Contraseña" }),
103
- u && /* @__PURE__ */ a(C, { severity: "error", sx: { mb: 2 }, children: u }),
104
- /* @__PURE__ */ a("div", { className: "dash-app-form-item", children: /* @__PURE__ */ a(
105
- v,
101
+ /* @__PURE__ */ e("h1", { className: "dash-app-login-form-title", children: "Cambiar Contraseña" }),
102
+ f && /* @__PURE__ */ e(b, { severity: "error", sx: { mb: 2 }, children: f }),
103
+ /* @__PURE__ */ e("div", { className: "dash-app-form-item", children: /* @__PURE__ */ e(
104
+ x,
106
105
  {
107
106
  fullWidth: !0,
108
107
  label: "Contraseña",
109
108
  placeholder: "Contraseña",
110
109
  required: !0,
111
110
  type: "password",
112
- value: o,
113
- onChange: (n) => {
114
- i(""), w(n.target.value);
111
+ value: s,
112
+ onChange: (i) => {
113
+ o(""), y(i.target.value);
115
114
  },
116
115
  className: "dash-app-form-item-input",
117
116
  disabled: c
118
117
  }
119
118
  ) }),
120
- /* @__PURE__ */ a("div", { className: "dash-app-form-item", children: /* @__PURE__ */ a(
121
- v,
119
+ /* @__PURE__ */ e("div", { className: "dash-app-form-item", children: /* @__PURE__ */ e(
120
+ x,
122
121
  {
123
122
  fullWidth: !0,
124
123
  label: "Repetir Contraseña",
125
124
  placeholder: "Repetir Contraseña",
126
125
  required: !0,
127
126
  type: "password",
128
- value: h,
129
- onChange: (n) => {
130
- i(""), N(n.target.value);
127
+ value: u,
128
+ onChange: (i) => {
129
+ o(""), v(i.target.value);
131
130
  },
132
131
  className: "dash-app-form-item-input",
133
132
  disabled: c
134
133
  }
135
134
  ) }),
136
- /* @__PURE__ */ a("div", { className: "dash-app-form-item mt-1", children: /* @__PURE__ */ a(
137
- x,
135
+ /* @__PURE__ */ e("div", { className: "dash-app-form-item mt-1", children: /* @__PURE__ */ e(
136
+ C,
138
137
  {
139
138
  type: "submit",
140
139
  variant: "contained",
@@ -149,5 +148,5 @@ const I = (l) => {
149
148
  ) });
150
149
  };
151
150
  export {
152
- re as default
151
+ te as default
153
152
  };
@@ -4,7 +4,7 @@ import { useNotify as y } from "react-admin";
4
4
  import { Link as b } from "react-router-dom";
5
5
  import { InputLabel as l, Input as d, Button as x } from "@mui/material";
6
6
  import { useSelector as v } from "react-redux";
7
- import { a as C, C as S } from "./index-U84xs0Dc.js";
7
+ import { a as C, C as S } from "./index-gfebuoyf.js";
8
8
  import { dashStorage as w } from "@dashadmin/dash-utils";
9
9
  const q = () => {
10
10
  const [a, m] = o(""), [n, c] = o(""), [r, s] = o(!1), { login: p } = C, i = y();
@@ -1,23 +1,23 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import { useState as x, useEffect as $ } from "react";
3
- import { IconButton as O, Grid as i, CardContent as h, Typography as j, CardHeader as w, Button as I } from "@mui/material";
4
- import { useNotify as k, useRefresh as q, Form as H, TextInput as c, Loading as M } from "react-admin";
5
- import { useDispatch as B } from "react-redux";
6
- import { DASH_REDUX_ACTIONS as V } from "@dashadmin/dash-admin-state";
7
- import { u as X, b as J, U as K } from "./index-U84xs0Dc.js";
8
- import { Upload as Q } from "@mui/icons-material";
9
- const Y = (y) => {
10
- const { classNamePrefix: n = "default", currentUrl: p = "single-image-uploader", onChange: d } = y, [u, t] = x(null);
11
- return /* @__PURE__ */ o("div", { className: `single-image-uploader ${n}-img`, children: [
12
- u || p ? /* @__PURE__ */ e("img", { src: u || p, alt: "" }) : /* @__PURE__ */ e("div", { className: `${n}-icon` }),
13
- /* @__PURE__ */ o(
14
- O,
1
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
+ import { useState as x, useEffect as P } from "react";
3
+ import { IconButton as W, Grid as r, CardContent as h, Typography as N, CardHeader as w, Button as U } from "@mui/material";
4
+ import { useNotify as R, useRefresh as T, Form as D, TextInput as c, Loading as G } from "react-admin";
5
+ import { useDispatch as $ } from "react-redux";
6
+ import { DASH_REDUX_ACTIONS as O } from "@dashadmin/dash-admin-state";
7
+ import { u as k, b as q, U as H } from "./index-gfebuoyf.js";
8
+ import { Upload as M } from "@mui/icons-material";
9
+ const B = (y) => {
10
+ const { classNamePrefix: i = "default", currentUrl: p = "single-image-uploader", onChange: n } = y, [u, o] = x(null);
11
+ return /* @__PURE__ */ s("div", { className: `single-image-uploader ${i}-img`, children: [
12
+ u || p ? /* @__PURE__ */ e("img", { src: u || p, alt: "" }) : /* @__PURE__ */ e("div", { className: `${i}-icon` }),
13
+ /* @__PURE__ */ s(
14
+ W,
15
15
  {
16
16
  "aria-label": "upload image",
17
17
  component: "label",
18
- className: `${n}-edit`,
18
+ className: `${i}-edit`,
19
19
  children: [
20
- /* @__PURE__ */ e(Q, { style: { opacity: "0.6" } }),
20
+ /* @__PURE__ */ e(M, { style: { opacity: "0.6" } }),
21
21
  /* @__PURE__ */ e(
22
22
  "input",
23
23
  {
@@ -25,7 +25,7 @@ const Y = (y) => {
25
25
  accept: "image/*",
26
26
  type: "file",
27
27
  onChange: (m) => {
28
- t(URL.createObjectURL(m.target.files[0])), d && d(m.target.files[0]);
28
+ o(URL.createObjectURL(m.target.files[0])), n && n(m.target.files[0]);
29
29
  }
30
30
  }
31
31
  )
@@ -33,77 +33,76 @@ const Y = (y) => {
33
33
  }
34
34
  )
35
35
  ] });
36
- }, oe = (y) => {
37
- const [n, p] = x("auth/update/info"), [d, u] = x(!1), { user: t, fetchAuth: m } = X(), [b, S] = x({ rawFile: null, urlFile: "" }), g = k(), { axios: C } = J(), v = q(), P = B();
38
- $(() => {
39
- P(
40
- V.updatePage({
36
+ }, ae = (y) => {
37
+ const [i, p] = x("auth/update/info"), [n, u] = x(!1), { user: o, fetchAuth: m } = k(), [b, A] = x({ rawFile: null, urlFile: "" }), g = R(), { axios: C } = q(), E = T(), F = $();
38
+ P(() => {
39
+ F(
40
+ O.updatePage({
41
41
  title: "Perfil",
42
42
  //icon:
43
43
  subTitle: "Configuración de perfil"
44
44
  })
45
45
  );
46
46
  }, []);
47
- const W = (a) => {
48
- const s = {};
49
- return n === "auth/update/password" && ((a.password || a.password_confirmation) && !a.current_password && (s.current_password = "El campo es requerido"), a.current_password && (!a.password || !a.password_confirmation) && (s.password = "El campo es requerido", s.password_confirmation = "El campo es requerido"), a.password_confirmation !== a.password && (s.password = "Las contraseñas no coinciden", s.password_confirmation = "Las contraseñas no coinciden")), s;
50
- }, R = async (a) => {
51
- var _, z, N, U, A, E;
47
+ const L = (a) => {
48
+ const t = {};
49
+ return i === "auth/update/password" && ((a.password || a.password_confirmation) && !a.current_password && (t.current_password = "El campo es requerido"), a.current_password && (!a.password || !a.password_confirmation) && (t.password = "El campo es requerido", t.password_confirmation = "El campo es requerido"), a.password_confirmation !== a.password && (t.password = "Las contraseñas no coinciden", t.password_confirmation = "Las contraseñas no coinciden")), t;
50
+ }, j = async (a) => {
52
51
  u(!0);
53
- const s = new FormData(), G = {
52
+ const t = new FormData(), v = {
54
53
  current_password: a.current_password,
55
54
  password: a.password,
56
55
  password_confirmation: a.password_confirmation
57
56
  };
58
- a.name && s.append("name", a.name), a.lastname && s.append("lastname", a.lastname), a.email && s.append("email", a.email), b.rawFile && s.append("avatar", b.rawFile), s.append("_method", "put");
57
+ a.name && t.append("name", a.name), a.lastname && t.append("lastname", a.lastname), a.email && t.append("email", a.email), b.rawFile && t.append("avatar", b.rawFile), t.append("_method", "put");
59
58
  try {
60
- n === "auth/update/info" ? await C.post(n, s, {
59
+ i === "auth/update/info" ? await C.post(i, t, {
61
60
  headers: { "Content-Type": "multipart/form-data" }
62
- }) : await C.put(n, G);
61
+ }) : await C.put(i, v);
63
62
  try {
64
63
  await m(), console.log("Auth context refreshed after profile update");
65
- } catch (r) {
66
- console.error("Faileds to refresh auth context:", r);
64
+ } catch (d) {
65
+ console.error("Faileds to refresh auth context:", d);
67
66
  }
68
- g("Usuario actualizado correctamente", { type: "success" }), v();
69
- } catch (r) {
70
- let F = ((z = (_ = r == null ? void 0 : r.response) == null ? void 0 : _.data) == null ? void 0 : z.message) || ((N = r == null ? void 0 : r.body) == null ? void 0 : N.message) || "", l = ((A = (U = r == null ? void 0 : r.response) == null ? void 0 : U.data) == null ? void 0 : A.errors) || ((E = r == null ? void 0 : r.body) == null ? void 0 : E.errors) || r;
71
- if (F ? g(`Error al actualizar el usuario, ${F}`, { type: "error" }) : g("Error al actualizar el usuario", { type: "error" }), l && typeof l == "object") {
72
- const L = {};
67
+ g("Usuario actualizado correctamente", { type: "success" }), E();
68
+ } catch (d) {
69
+ let _ = d?.response?.data?.message || d?.body?.message || "", l = d?.response?.data?.errors || d?.body?.errors || d;
70
+ if (_ ? g(`Error al actualizar el usuario, ${_}`, { type: "error" }) : g("Error al actualizar el usuario", { type: "error" }), l && typeof l == "object") {
71
+ const z = {};
73
72
  return Object.keys(l).forEach((f) => {
74
- L[f] = Array.isArray(l[f]) ? l[f].join(" , ") : l[f];
75
- }), L;
73
+ z[f] = Array.isArray(l[f]) ? l[f].join(" , ") : l[f];
74
+ }), z;
76
75
  }
77
76
  } finally {
78
77
  u(!1);
79
78
  }
80
- }, T = () => {
79
+ }, I = () => {
81
80
  p("auth/update/info");
82
- }, D = () => {
81
+ }, S = () => {
83
82
  p("auth/update/password");
84
83
  };
85
- return /* @__PURE__ */ e("div", { className: "dash-profile", children: t ? /* @__PURE__ */ e(
86
- H,
84
+ return /* @__PURE__ */ e("div", { className: "dash-profile", children: o ? /* @__PURE__ */ e(
85
+ D,
87
86
  {
88
- onSubmit: R,
89
- validate: W,
90
- defaultValues: { name: t == null ? void 0 : t.name, email: t == null ? void 0 : t.email, lastname: t == null ? void 0 : t.lastname },
87
+ onSubmit: j,
88
+ validate: L,
89
+ defaultValues: { name: o?.name, email: o?.email, lastname: o?.lastname },
91
90
  className: "dash-form",
92
- children: /* @__PURE__ */ e("div", { className: "dash-card-content dash-module dash-card-profile", children: /* @__PURE__ */ o(
93
- i,
91
+ children: /* @__PURE__ */ e("div", { className: "dash-card-content dash-module dash-card-profile", children: /* @__PURE__ */ s(
92
+ r,
94
93
  {
95
94
  container: !0,
96
95
  spacing: { xs: 2, md: 3 },
97
96
  sx: { minHeight: "400px" },
98
97
  children: [
99
98
  /* @__PURE__ */ e(
100
- i,
99
+ r,
101
100
  {
102
101
  size: { xs: 12, md: 4 },
103
102
  display: "flex",
104
103
  justifyContent: "center",
105
104
  alignItems: "center",
106
- children: /* @__PURE__ */ o(
105
+ children: /* @__PURE__ */ s(
107
106
  h,
108
107
  {
109
108
  sx: {
@@ -116,11 +115,11 @@ const Y = (y) => {
116
115
  },
117
116
  children: [
118
117
  /* @__PURE__ */ e(
119
- Y,
118
+ B,
120
119
  {
121
- currentUrl: t == null ? void 0 : t.image_path,
120
+ currentUrl: o?.image_path,
122
121
  onChange: (a) => {
123
- S({
122
+ A({
124
123
  rawFile: a,
125
124
  urlFile: URL.createObjectURL(a)
126
125
  });
@@ -129,16 +128,16 @@ const Y = (y) => {
129
128
  }
130
129
  ),
131
130
  /* @__PURE__ */ e(
132
- j,
131
+ N,
133
132
  {
134
133
  className: "dash-profile-name",
135
134
  variant: "h2",
136
135
  sx: { mt: 2, textAlign: "center" },
137
- children: `${(t == null ? void 0 : t.name) || ""}`
136
+ children: `${o?.name || ""}`
138
137
  }
139
138
  ),
140
139
  /* @__PURE__ */ e(
141
- j,
140
+ N,
142
141
  {
143
142
  variant: "body2",
144
143
  sx: {
@@ -155,7 +154,7 @@ const Y = (y) => {
155
154
  )
156
155
  }
157
156
  ),
158
- /* @__PURE__ */ o(i, { size: { xs: 12, md: 4 }, children: [
157
+ /* @__PURE__ */ s(r, { size: { xs: 12, md: 4 }, children: [
159
158
  /* @__PURE__ */ e(
160
159
  w,
161
160
  {
@@ -163,8 +162,8 @@ const Y = (y) => {
163
162
  title: "Info"
164
163
  }
165
164
  ),
166
- /* @__PURE__ */ e(h, { sx: { padding: "25px" }, children: /* @__PURE__ */ o(i, { container: !0, spacing: 2, children: [
167
- /* @__PURE__ */ e(i, { size: 12, children: /* @__PURE__ */ e(
165
+ /* @__PURE__ */ e(h, { sx: { padding: "25px" }, children: /* @__PURE__ */ s(r, { container: !0, spacing: 2, children: [
166
+ /* @__PURE__ */ e(r, { size: 12, children: /* @__PURE__ */ e(
168
167
  c,
169
168
  {
170
169
  source: "name",
@@ -173,7 +172,7 @@ const Y = (y) => {
173
172
  fullWidth: !0
174
173
  }
175
174
  ) }),
176
- /* @__PURE__ */ e(i, { size: 12, children: /* @__PURE__ */ e(
175
+ /* @__PURE__ */ e(r, { size: 12, children: /* @__PURE__ */ e(
177
176
  c,
178
177
  {
179
178
  source: "lastname",
@@ -182,7 +181,7 @@ const Y = (y) => {
182
181
  fullWidth: !0
183
182
  }
184
183
  ) }),
185
- /* @__PURE__ */ e(i, { size: 12, children: /* @__PURE__ */ e(
184
+ /* @__PURE__ */ e(r, { size: 12, children: /* @__PURE__ */ e(
186
185
  c,
187
186
  {
188
187
  source: "email",
@@ -191,11 +190,11 @@ const Y = (y) => {
191
190
  fullWidth: !0
192
191
  }
193
192
  ) }),
194
- /* @__PURE__ */ e(i, { size: 12, sx: { mt: 2 }, children: /* @__PURE__ */ e(
195
- I,
193
+ /* @__PURE__ */ e(r, { size: 12, sx: { mt: 2 }, children: /* @__PURE__ */ e(
194
+ U,
196
195
  {
197
- onClick: T,
198
- disabled: d,
196
+ onClick: I,
197
+ disabled: n,
199
198
  variant: "contained",
200
199
  type: "submit",
201
200
  fullWidth: !0,
@@ -207,12 +206,12 @@ const Y = (y) => {
207
206
  color: "white"
208
207
  }
209
208
  },
210
- children: d && n === "auth/update/info" ? "Guardando..." : "Guardar"
209
+ children: n && i === "auth/update/info" ? "Guardando..." : "Guardar"
211
210
  }
212
211
  ) })
213
212
  ] }) })
214
213
  ] }),
215
- /* @__PURE__ */ o(i, { size: { xs: 12, md: 4 }, children: [
214
+ /* @__PURE__ */ s(r, { size: { xs: 12, md: 4 }, children: [
216
215
  /* @__PURE__ */ e(
217
216
  w,
218
217
  {
@@ -220,8 +219,8 @@ const Y = (y) => {
220
219
  title: "Contraseñas"
221
220
  }
222
221
  ),
223
- /* @__PURE__ */ e(h, { sx: { padding: "25px" }, children: /* @__PURE__ */ o(i, { container: !0, spacing: 2, children: [
224
- /* @__PURE__ */ e(i, { size: 12, children: /* @__PURE__ */ e(
222
+ /* @__PURE__ */ e(h, { sx: { padding: "25px" }, children: /* @__PURE__ */ s(r, { container: !0, spacing: 2, children: [
223
+ /* @__PURE__ */ e(r, { size: 12, children: /* @__PURE__ */ e(
225
224
  c,
226
225
  {
227
226
  type: "password",
@@ -231,7 +230,7 @@ const Y = (y) => {
231
230
  fullWidth: !0
232
231
  }
233
232
  ) }),
234
- /* @__PURE__ */ e(i, { size: 12, children: /* @__PURE__ */ e(
233
+ /* @__PURE__ */ e(r, { size: 12, children: /* @__PURE__ */ e(
235
234
  c,
236
235
  {
237
236
  type: "password",
@@ -241,7 +240,7 @@ const Y = (y) => {
241
240
  fullWidth: !0
242
241
  }
243
242
  ) }),
244
- /* @__PURE__ */ e(i, { size: 12, children: /* @__PURE__ */ e(
243
+ /* @__PURE__ */ e(r, { size: 12, children: /* @__PURE__ */ e(
245
244
  c,
246
245
  {
247
246
  label: "Repita nueva contraseña",
@@ -251,11 +250,11 @@ const Y = (y) => {
251
250
  fullWidth: !0
252
251
  }
253
252
  ) }),
254
- /* @__PURE__ */ e(i, { size: 12, sx: { mt: 2 }, children: /* @__PURE__ */ e(
255
- I,
253
+ /* @__PURE__ */ e(r, { size: 12, sx: { mt: 2 }, children: /* @__PURE__ */ e(
254
+ U,
256
255
  {
257
- onClick: D,
258
- disabled: d,
256
+ onClick: S,
257
+ disabled: n,
259
258
  variant: "contained",
260
259
  type: "submit",
261
260
  fullWidth: !0,
@@ -267,12 +266,12 @@ const Y = (y) => {
267
266
  color: "white"
268
267
  }
269
268
  },
270
- children: d && n === "auth/update/password" ? "Guardando Contraseñas..." : "Guardar Contraseñas"
269
+ children: n && i === "auth/update/password" ? "Guardando Contraseñas..." : "Guardar Contraseñas"
271
270
  }
272
271
  ) })
273
272
  ] }) })
274
273
  ] }),
275
- /* @__PURE__ */ o(i, { size: {
274
+ /* @__PURE__ */ s(r, { size: {
276
275
  xs: 12
277
276
  }, children: [
278
277
  /* @__PURE__ */ e(
@@ -282,14 +281,14 @@ const Y = (y) => {
282
281
  title: "Preferencias"
283
282
  }
284
283
  ),
285
- /* @__PURE__ */ e(h, { sx: { padding: "25px" }, children: /* @__PURE__ */ e(K, {}) })
284
+ /* @__PURE__ */ e(h, { sx: { padding: "25px" }, children: /* @__PURE__ */ e(H, {}) })
286
285
  ] })
287
286
  ]
288
287
  }
289
288
  ) })
290
289
  }
291
- ) : /* @__PURE__ */ e(M, {}) });
290
+ ) : /* @__PURE__ */ e(G, {}) });
292
291
  };
293
292
  export {
294
- oe as default
293
+ ae as default
295
294
  };