@dashadmin/dash-admin 1.0.0 → 1.3.17
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/{ChangePassword-CTfQfSBO.js → dist/ChangePassword-DmWAQAX_.js} +55 -56
- package/{Login-BtJDpF6O.js → dist/Login-t41HMhVT.js} +1 -1
- package/{Profile-DUF5jGpL.js → dist/Profile-By-gdPUd.js} +80 -81
- package/{RecoverPassword-CQd17LpL.js → dist/RecoverPassword-DzPdbkg2.js} +26 -27
- package/{VerifyAccount-DEKnDV6A.js → dist/VerifyAccount-Bofaxe5w.js} +1 -1
- package/{index-U84xs0Dc.js → dist/index-gfebuoyf.js} +7820 -7974
- package/{index.js → dist/index.js} +1 -1
- package/package.json +50 -23
- package/src/index.tsx +110 -0
- package/index.d.ts +0 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Box as
|
|
3
|
-
import { useState as m, useEffect as
|
|
4
|
-
import { useNavigate as
|
|
5
|
-
import { b as
|
|
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
|
|
26
|
-
let
|
|
27
|
-
for (const
|
|
28
|
-
const [d,
|
|
29
|
-
|
|
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(
|
|
32
|
-
},
|
|
33
|
-
const l =
|
|
34
|
-
let [
|
|
35
|
-
const
|
|
36
|
-
return
|
|
37
|
-
(!
|
|
38
|
-
}, []), /* @__PURE__ */
|
|
39
|
-
|
|
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__ */
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
|
|
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__ */
|
|
70
|
+
) : /* @__PURE__ */ g(
|
|
71
71
|
"form",
|
|
72
72
|
{
|
|
73
|
-
onSubmit: async (
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
i(""), f(!0);
|
|
73
|
+
onSubmit: async (i) => {
|
|
74
|
+
if (i.preventDefault(), s === u) {
|
|
75
|
+
o(""), h(!0);
|
|
77
76
|
try {
|
|
78
|
-
const { data:
|
|
79
|
-
password:
|
|
80
|
-
password_confirmation:
|
|
81
|
-
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
|
-
|
|
85
|
-
} catch (
|
|
83
|
+
N(!0);
|
|
84
|
+
} catch (n) {
|
|
86
85
|
let p = "Error al cambiar contraseña";
|
|
87
|
-
if (
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
} else
|
|
91
|
-
|
|
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
|
-
|
|
92
|
+
h(!1);
|
|
94
93
|
}
|
|
95
94
|
} else
|
|
96
|
-
|
|
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__ */
|
|
103
|
-
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
-
|
|
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:
|
|
113
|
-
onChange: (
|
|
114
|
-
|
|
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__ */
|
|
121
|
-
|
|
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:
|
|
129
|
-
onChange: (
|
|
130
|
-
|
|
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__ */
|
|
137
|
-
|
|
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
|
-
|
|
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-
|
|
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
|
|
2
|
-
import { useState as x, useEffect as
|
|
3
|
-
import { IconButton as
|
|
4
|
-
import { useNotify as
|
|
5
|
-
import { useDispatch as
|
|
6
|
-
import { DASH_REDUX_ACTIONS as
|
|
7
|
-
import { u as
|
|
8
|
-
import { Upload as
|
|
9
|
-
const
|
|
10
|
-
const { classNamePrefix:
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
u || p ? /* @__PURE__ */ e("img", { src: u || p, alt: "" }) : /* @__PURE__ */ e("div", { className: `${
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
|
|
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: `${
|
|
18
|
+
className: `${i}-edit`,
|
|
19
19
|
children: [
|
|
20
|
-
/* @__PURE__ */ e(
|
|
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
|
-
|
|
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
|
-
},
|
|
37
|
-
const [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
|
48
|
-
const
|
|
49
|
-
return
|
|
50
|
-
},
|
|
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
|
|
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 &&
|
|
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
|
-
|
|
59
|
+
i === "auth/update/info" ? await C.post(i, t, {
|
|
61
60
|
headers: { "Content-Type": "multipart/form-data" }
|
|
62
|
-
}) : await C.put(
|
|
61
|
+
}) : await C.put(i, v);
|
|
63
62
|
try {
|
|
64
63
|
await m(), console.log("Auth context refreshed after profile update");
|
|
65
|
-
} catch (
|
|
66
|
-
console.error("Faileds to refresh auth context:",
|
|
64
|
+
} catch (d) {
|
|
65
|
+
console.error("Faileds to refresh auth context:", d);
|
|
67
66
|
}
|
|
68
|
-
g("Usuario actualizado correctamente", { type: "success" }),
|
|
69
|
-
} catch (
|
|
70
|
-
let
|
|
71
|
-
if (
|
|
72
|
-
const
|
|
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
|
-
|
|
75
|
-
}),
|
|
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
|
-
},
|
|
79
|
+
}, I = () => {
|
|
81
80
|
p("auth/update/info");
|
|
82
|
-
},
|
|
81
|
+
}, S = () => {
|
|
83
82
|
p("auth/update/password");
|
|
84
83
|
};
|
|
85
|
-
return /* @__PURE__ */ e("div", { className: "dash-profile", children:
|
|
86
|
-
|
|
84
|
+
return /* @__PURE__ */ e("div", { className: "dash-profile", children: o ? /* @__PURE__ */ e(
|
|
85
|
+
D,
|
|
87
86
|
{
|
|
88
|
-
onSubmit:
|
|
89
|
-
validate:
|
|
90
|
-
defaultValues: { name:
|
|
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__ */
|
|
93
|
-
|
|
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
|
-
|
|
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__ */
|
|
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
|
-
|
|
118
|
+
B,
|
|
120
119
|
{
|
|
121
|
-
currentUrl:
|
|
120
|
+
currentUrl: o?.image_path,
|
|
122
121
|
onChange: (a) => {
|
|
123
|
-
|
|
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
|
-
|
|
131
|
+
N,
|
|
133
132
|
{
|
|
134
133
|
className: "dash-profile-name",
|
|
135
134
|
variant: "h2",
|
|
136
135
|
sx: { mt: 2, textAlign: "center" },
|
|
137
|
-
children: `${
|
|
136
|
+
children: `${o?.name || ""}`
|
|
138
137
|
}
|
|
139
138
|
),
|
|
140
139
|
/* @__PURE__ */ e(
|
|
141
|
-
|
|
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__ */
|
|
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__ */
|
|
167
|
-
/* @__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(
|
|
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(
|
|
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(
|
|
195
|
-
|
|
193
|
+
/* @__PURE__ */ e(r, { size: 12, sx: { mt: 2 }, children: /* @__PURE__ */ e(
|
|
194
|
+
U,
|
|
196
195
|
{
|
|
197
|
-
onClick:
|
|
198
|
-
disabled:
|
|
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:
|
|
209
|
+
children: n && i === "auth/update/info" ? "Guardando..." : "Guardar"
|
|
211
210
|
}
|
|
212
211
|
) })
|
|
213
212
|
] }) })
|
|
214
213
|
] }),
|
|
215
|
-
/* @__PURE__ */
|
|
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__ */
|
|
224
|
-
/* @__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(
|
|
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(
|
|
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(
|
|
255
|
-
|
|
253
|
+
/* @__PURE__ */ e(r, { size: 12, sx: { mt: 2 }, children: /* @__PURE__ */ e(
|
|
254
|
+
U,
|
|
256
255
|
{
|
|
257
|
-
onClick:
|
|
258
|
-
disabled:
|
|
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:
|
|
269
|
+
children: n && i === "auth/update/password" ? "Guardando Contraseñas..." : "Guardar Contraseñas"
|
|
271
270
|
}
|
|
272
271
|
) })
|
|
273
272
|
] }) })
|
|
274
273
|
] }),
|
|
275
|
-
/* @__PURE__ */
|
|
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(
|
|
284
|
+
/* @__PURE__ */ e(h, { sx: { padding: "25px" }, children: /* @__PURE__ */ e(H, {}) })
|
|
286
285
|
] })
|
|
287
286
|
]
|
|
288
287
|
}
|
|
289
288
|
) })
|
|
290
289
|
}
|
|
291
|
-
) : /* @__PURE__ */ e(
|
|
290
|
+
) : /* @__PURE__ */ e(G, {}) });
|
|
292
291
|
};
|
|
293
292
|
export {
|
|
294
|
-
|
|
293
|
+
ae as default
|
|
295
294
|
};
|