@yourgoods/ui-smart 0.41.0 → 0.43.0
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/{ProfileEmailDialog-B5qG1a49.js → ProfileEmailDialog-CCVSMKv7.js} +2 -2
- package/dist/{ProfilePasswordDialog-CrTrG_OZ.js → ProfilePasswordDialog-BxZKRHS6.js} +1 -1
- package/dist/{ProfilePhoneDialog-Cw739x1Q.js → ProfilePhoneDialog-CZKg3xV1.js} +2 -2
- package/dist/{index-DLfEv7A5.js → index-BSQq7qYA.js} +287 -264
- package/dist/index.js +2 -2
- package/dist/{useRateLimitToast-Ci3c9oSV.js → useRateLimitToast-Jc4ZoHx3.js} +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as te, ref as b, reactive as Q, watch as Y, computed as M, toRefs as re, createElementBlock as k, openBlock as E, createElementVNode as S, createCommentVNode as D, toDisplayString as X, createVNode as $, unref as u, isRef as Z, withCtx as G, createTextVNode as le, Fragment as Oe, createBlock as H, resolveDynamicComponent as Ce, onMounted as Ue } from "vue";
|
|
2
|
-
import { T as ue, c as Ve, u as Ae, a as Fe, P as ye, b as Re } from "./useRateLimitToast-
|
|
3
|
-
import { C as A, _ as ze, B as We, p as W, g as He } from "./index-
|
|
2
|
+
import { T as ue, c as Ve, u as Ae, a as Fe, P as ye, b as Re } from "./useRateLimitToast-Jc4ZoHx3.js";
|
|
3
|
+
import { C as A, _ as ze, B as We, p as W, g as He } from "./index-BSQq7qYA.js";
|
|
4
4
|
import { PInput as J, IconMailMd as me, PButton as oe, IconEyeMd as ge, IconEyeClosedMd as he, PDialog as _e, PTopBar as qe, IconCrossMd as je } from "@profeat/ui-kit";
|
|
5
5
|
const Ge = { class: "dialogDefaultContainerInsideContent" }, Ye = { class: "dialogDefaultContainerTextHint" }, Je = {
|
|
6
6
|
key: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as ye, ref as a, reactive as _, computed as u, watch as Z, onMounted as Ce, createElementBlock as S, openBlock as g, Fragment as ge, createVNode as n, unref as o, withCtx as m, createCommentVNode as ee, createElementVNode as r, toDisplayString as V, createBlock as B, resolveDynamicComponent as $, createTextVNode as z } from "vue";
|
|
2
|
-
import { C as I, p as D, g as Ve } from "./index-
|
|
2
|
+
import { C as I, p as D, g as Ve } from "./index-BSQq7qYA.js";
|
|
3
3
|
import { PDialog as be, PInput as M, IconEyeMd as O, IconEyeClosedMd as U, PButton as F, PTopBar as Te, IconCrossMd as Ie, PTeleportContainer as xe } from "@profeat/ui-kit";
|
|
4
4
|
function ke(b) {
|
|
5
5
|
return { showPasswordRateLimitToast: (P) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createElementBlock as T, openBlock as h, createElementVNode as U, defineComponent as ue, reactive as ce, watch as Z, ref as O, toRefs as fe, computed as E, createCommentVNode as V, createVNode as S, toDisplayString as H, createBlock as G, createTextVNode as Y, unref as i, isRef as te, withCtx as K, onMounted as Ue, Fragment as qe } from "vue";
|
|
2
|
-
import { T as ge, c as Le, a as We, u as je, P as Ee, b as He } from "./useRateLimitToast-
|
|
2
|
+
import { T as ge, c as Le, a as We, u as je, P as Ee, b as He } from "./useRateLimitToast-Jc4ZoHx3.js";
|
|
3
3
|
import { IconTelegramSm as ye, PInput as oe, IconPhoneMd as Ge, IconMailMd as De, PButton as Ae, PDialog as Je, PTopBar as Ke, IconCrossMd as Qe, PTeleportContainer as Xe } from "@profeat/ui-kit";
|
|
4
|
-
import { C as j, t as Ie, p as ee, g as Oe } from "./index-
|
|
4
|
+
import { C as j, t as Ie, p as ee, g as Oe } from "./index-BSQq7qYA.js";
|
|
5
5
|
const Ye = {
|
|
6
6
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7
7
|
width: "12",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
3
|
-
import { PInputFileUploader as
|
|
4
|
-
function
|
|
5
|
-
if (
|
|
1
|
+
import { ref as v, shallowRef as Me, defineComponent as H, defineAsyncComponent as j, watch as me, createBlock as I, createCommentVNode as b, unref as m, openBlock as w, resolveDynamicComponent as Re, mergeProps as Ge, computed as T, reactive as q, onMounted as Je, createElementBlock as k, Fragment as de, createVNode as g, createElementVNode as _, withCtx as F, toDisplayString as U, createTextVNode as Y, Teleport as ie, Transition as je, withDirectives as qe, vShow as _e } from "vue";
|
|
2
|
+
import Ye from "axios";
|
|
3
|
+
import { PInputFileUploader as We, PInput as z, IconFilledEditMd as L, PButton as ue, PImageCropper as Ke, PToast as Ze, PTeleportContainer as ce, PToastContainer as He } from "@profeat/ui-kit";
|
|
4
|
+
function Qe(l, n = 2) {
|
|
5
|
+
if (l === 0)
|
|
6
6
|
return "0 B";
|
|
7
|
-
const r = 1024, i = ["B", "KB", "MB", "GB", "TB", "PB", "EB"],
|
|
8
|
-
return `${Number.parseFloat((
|
|
7
|
+
const r = 1024, i = ["B", "KB", "MB", "GB", "TB", "PB", "EB"], h = Math.floor(Math.log(l) / Math.log(r));
|
|
8
|
+
return `${Number.parseFloat((l / r ** h).toFixed(n))} ${i[h]}`;
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const Xe = {
|
|
11
11
|
"image/jpeg": "JPEG",
|
|
12
12
|
"image/png": "PNG",
|
|
13
13
|
"application/pdf": "PDF",
|
|
@@ -15,66 +15,66 @@ const He = {
|
|
|
15
15
|
"application/zip": "ZIP Archive"
|
|
16
16
|
// ...
|
|
17
17
|
};
|
|
18
|
-
function
|
|
19
|
-
return
|
|
18
|
+
function ea(l) {
|
|
19
|
+
return l.map((n) => {
|
|
20
20
|
var r;
|
|
21
|
-
return
|
|
21
|
+
return Xe[n] || ((r = n.split("/")[1]) == null ? void 0 : r.toUpperCase());
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
const
|
|
24
|
+
const ba = {
|
|
25
25
|
OLD: "old",
|
|
26
26
|
NEW: "new",
|
|
27
27
|
COMPLETED: "completed"
|
|
28
|
-
},
|
|
28
|
+
}, ka = {
|
|
29
29
|
VERIFY_EMAIL: "verify-email"
|
|
30
30
|
};
|
|
31
|
-
let
|
|
32
|
-
function
|
|
33
|
-
|
|
31
|
+
let K = null;
|
|
32
|
+
function aa(l, n) {
|
|
33
|
+
K = Ye.create({
|
|
34
34
|
baseURL: n,
|
|
35
35
|
headers: {
|
|
36
|
-
Authorization: `Bearer ${
|
|
36
|
+
Authorization: `Bearer ${l}`,
|
|
37
37
|
// 'Content-Type': 'application/json',
|
|
38
38
|
"x-throttler-prefix": "throttler_profile_edit"
|
|
39
39
|
},
|
|
40
40
|
validateStatus: () => !0
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
if (!
|
|
43
|
+
function Q() {
|
|
44
|
+
if (!K)
|
|
45
45
|
throw new Error("Axios instance not initialized. Call initAxios(token, baseUrl) first.");
|
|
46
|
-
return
|
|
46
|
+
return K;
|
|
47
47
|
}
|
|
48
|
-
async function
|
|
49
|
-
return
|
|
48
|
+
async function Z(l, n, r) {
|
|
49
|
+
return Q().post(l, n, r);
|
|
50
50
|
}
|
|
51
|
-
async function
|
|
52
|
-
return
|
|
51
|
+
async function ta(l, n) {
|
|
52
|
+
return Q().get(l, n);
|
|
53
53
|
}
|
|
54
|
-
async function
|
|
55
|
-
return
|
|
54
|
+
async function oa(l, n) {
|
|
55
|
+
return Q().delete(l, n);
|
|
56
56
|
}
|
|
57
|
-
async function
|
|
58
|
-
const n = await
|
|
57
|
+
async function ra(l) {
|
|
58
|
+
const n = await Z("/users/profile/me", l);
|
|
59
59
|
if (console.log("---res: ", n), n.status !== 200 && n.status !== 201 || !n.data)
|
|
60
60
|
throw new Error("Ошибка при получении профиля пользователя");
|
|
61
61
|
return n.data;
|
|
62
62
|
}
|
|
63
|
-
const
|
|
64
|
-
function
|
|
63
|
+
const M = v(null), W = Me(null);
|
|
64
|
+
function X() {
|
|
65
65
|
return {
|
|
66
|
-
currentDialog:
|
|
67
|
-
dialogPayload:
|
|
68
|
-
openDialog: (i,
|
|
69
|
-
|
|
66
|
+
currentDialog: M,
|
|
67
|
+
dialogPayload: W,
|
|
68
|
+
openDialog: (i, h) => {
|
|
69
|
+
M.value = i, W.value = h ?? null;
|
|
70
70
|
},
|
|
71
71
|
closeDialog: () => {
|
|
72
|
-
|
|
72
|
+
M.value = null, W.value = null;
|
|
73
73
|
},
|
|
74
|
-
isDialogOpen: (i) =>
|
|
74
|
+
isDialogOpen: (i) => M.value === i
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const na = {
|
|
78
78
|
ru: {
|
|
79
79
|
Имя: "Имя",
|
|
80
80
|
Фамилия: "Фамилия",
|
|
@@ -207,60 +207,63 @@ const oa = {
|
|
|
207
207
|
"Введите новый номер телефона": "Enter a new phone number",
|
|
208
208
|
"Телефон успешно изменен": "Phone number successfully changed"
|
|
209
209
|
}
|
|
210
|
-
},
|
|
210
|
+
}, la = /* @__PURE__ */ H({
|
|
211
211
|
__name: "DialogManager",
|
|
212
212
|
props: {
|
|
213
213
|
language: {},
|
|
214
214
|
provider: {}
|
|
215
215
|
},
|
|
216
216
|
emits: ["clean-input-errors", "on-update-jwt", "update-phone-field", "update-email-field", "on-password-error", "on-toast"],
|
|
217
|
-
setup(
|
|
218
|
-
const r = n, i =
|
|
219
|
-
email:
|
|
220
|
-
phone:
|
|
221
|
-
password:
|
|
222
|
-
}, d = ({ email:
|
|
223
|
-
r("update-email-field",
|
|
224
|
-
},
|
|
225
|
-
r("update-phone-field",
|
|
217
|
+
setup(l, { emit: n }) {
|
|
218
|
+
const r = n, i = v(!0), { currentDialog: h, dialogPayload: p, closeDialog: B } = X(), s = {
|
|
219
|
+
email: j(() => import("./ProfileEmailDialog-CCVSMKv7.js")),
|
|
220
|
+
phone: j(() => import("./ProfilePhoneDialog-CZKg3xV1.js")),
|
|
221
|
+
password: j(() => import("./ProfilePasswordDialog-BxZKRHS6.js"))
|
|
222
|
+
}, d = ({ email: E }) => {
|
|
223
|
+
r("update-email-field", E);
|
|
224
|
+
}, c = ({ phone: E }) => {
|
|
225
|
+
r("update-phone-field", E);
|
|
226
226
|
};
|
|
227
|
-
return
|
|
228
|
-
i.value = !!
|
|
229
|
-
}), (
|
|
227
|
+
return me(h, (E) => {
|
|
228
|
+
i.value = !!E;
|
|
229
|
+
}), (E, u) => m(h) ? (w(), I(Re(s[m(h)]), Ge({
|
|
230
230
|
key: 0,
|
|
231
231
|
modelValue: i.value,
|
|
232
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
233
|
-
language:
|
|
234
|
-
provider:
|
|
235
|
-
}, m(
|
|
236
|
-
onClose: m(
|
|
237
|
-
onCleanInputErrors: u[1] || (u[1] = (
|
|
238
|
-
onOnUpdateJwt: u[2] || (u[2] = (
|
|
232
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => i.value = f),
|
|
233
|
+
language: E.language,
|
|
234
|
+
provider: E.provider
|
|
235
|
+
}, m(p), {
|
|
236
|
+
onClose: m(B),
|
|
237
|
+
onCleanInputErrors: u[1] || (u[1] = (f) => r("clean-input-errors")),
|
|
238
|
+
onOnUpdateJwt: u[2] || (u[2] = (f, P, o) => r("on-update-jwt", f, P, o)),
|
|
239
239
|
onSubmitEmail: d,
|
|
240
|
-
onSubmitPhone:
|
|
241
|
-
onOnPasswordError: u[3] || (u[3] = (
|
|
242
|
-
onOnToast: u[4] || (u[4] = (
|
|
243
|
-
}), null, 16, ["modelValue", "language", "provider", "onClose"])) :
|
|
240
|
+
onSubmitPhone: c,
|
|
241
|
+
onOnPasswordError: u[3] || (u[3] = (f, P) => r("on-password-error", f, P)),
|
|
242
|
+
onOnToast: u[4] || (u[4] = (f) => r("on-toast", f))
|
|
243
|
+
}), null, 16, ["modelValue", "language", "provider", "onClose"])) : b("", !0);
|
|
244
244
|
}
|
|
245
|
-
}),
|
|
245
|
+
}), sa = { class: "base-container" }, ia = {
|
|
246
246
|
key: 0,
|
|
247
247
|
style: { color: "#E46060" }
|
|
248
|
-
},
|
|
248
|
+
}, ua = {
|
|
249
|
+
key: 1,
|
|
250
|
+
style: { color: "#E46060" }
|
|
251
|
+
}, ma = { key: 2 }, da = {
|
|
249
252
|
key: 1,
|
|
250
253
|
class: "input-wrapper"
|
|
251
|
-
},
|
|
254
|
+
}, ca = {
|
|
252
255
|
key: 2,
|
|
253
256
|
class: "input-wrapper"
|
|
254
|
-
},
|
|
257
|
+
}, pa = {
|
|
255
258
|
key: 3,
|
|
256
259
|
class: "input-wrapper"
|
|
257
|
-
},
|
|
260
|
+
}, fa = {
|
|
258
261
|
key: 4,
|
|
259
262
|
class: "input-wrapper"
|
|
260
|
-
},
|
|
263
|
+
}, ga = { class: "buttons-container" }, va = {
|
|
261
264
|
key: 0,
|
|
262
265
|
class: "centered-overlay"
|
|
263
|
-
},
|
|
266
|
+
}, ha = { class: "toastWrapper" }, wa = /* @__PURE__ */ H({
|
|
264
267
|
__name: "PEditUserContact",
|
|
265
268
|
props: {
|
|
266
269
|
language: {},
|
|
@@ -273,8 +276,8 @@ const oa = {
|
|
|
273
276
|
awsStorageUrl: {}
|
|
274
277
|
},
|
|
275
278
|
emits: ["open-email-dialog", "open-phone-dialog", "open-password-dialog", "on-update-jwt", "on-password-error", "update-tokens"],
|
|
276
|
-
setup(
|
|
277
|
-
const r =
|
|
279
|
+
setup(l, { emit: n }) {
|
|
280
|
+
const r = l, i = n, h = T(() => r.language ?? "ru"), p = (e) => na[h.value][e] || e, { openDialog: B } = X(), s = q({ firstName: "", lastName: "" }), d = v({ firstName: "", lastName: "" }), c = q({ firstName: !1, lastName: !1, email: !1, phone: !1 }), E = v(""), u = v(""), f = v(""), P = v(!1), o = q({
|
|
278
281
|
value: null,
|
|
279
282
|
loading: !1,
|
|
280
283
|
accept: ["image/png", "image/jpeg"],
|
|
@@ -282,101 +285,120 @@ const oa = {
|
|
|
282
285
|
// 10mb вроде
|
|
283
286
|
imageBinary: null,
|
|
284
287
|
imageContent: ""
|
|
285
|
-
}),
|
|
288
|
+
}), S = v(!1), A = v(!1), V = v(!1), x = v(!1), R = v(!0), G = v(!0), ee = v(void 0), ae = v(""), pe = T(() => oe(s.firstName, c.firstName)), fe = T(() => oe(s.lastName, c.lastName)), ge = T(() => c.email && !u.value.trim() ? "Введите e-mail" : ""), ve = T(() => c.phone && !f.value.trim() ? "Введите номер телефона" : ""), D = (e) => r.fields.some((a) => a.key === e), te = (e) => e && e.trim() ? "edit" : "bind", J = () => setTimeout(() => {
|
|
286
289
|
var e;
|
|
287
290
|
return (e = document.activeElement) == null ? void 0 : e.blur();
|
|
288
|
-
}, 0),
|
|
291
|
+
}, 0), he = T(() => !!(u.value && u.value.trim() !== "")), we = T(() => o.imageContent ? p("Загрузить другое фото") : p("Загрузить фото")), oe = (e, a) => {
|
|
289
292
|
if (!a) return "";
|
|
290
293
|
const t = e.trim();
|
|
291
294
|
return t ? t.length < 2 ? "Поле должно содержать минимум 2 символа" : "" : "Введите значение";
|
|
292
|
-
},
|
|
293
|
-
|
|
294
|
-
},
|
|
295
|
-
|
|
296
|
-
},
|
|
297
|
-
e === "email" && t && (u.value = t), e === "phone" && t && (
|
|
298
|
-
}, Ce = (e) => {
|
|
299
|
-
c.value = e;
|
|
295
|
+
}, ye = (e) => B("email", { mode: e ? "edit" : "bind", initialEmail: e }), Ee = () => {
|
|
296
|
+
J(), c.email = !1, G.value = !1, i("open-email-dialog", u.value, te(u.value)), ye(u.value);
|
|
297
|
+
}, Ne = () => {
|
|
298
|
+
J(), c.phone = !1, R.value = !1, i("open-phone-dialog", f.value, te(f.value));
|
|
299
|
+
}, Ce = async (e, a, t) => {
|
|
300
|
+
e === "email" && t && (u.value = t), e === "phone" && t && (f.value = t), i("on-update-jwt");
|
|
300
301
|
}, Pe = (e) => {
|
|
302
|
+
f.value = e;
|
|
303
|
+
}, be = (e) => {
|
|
301
304
|
console.debug("emitUpdateEmailField, цепочка такая: profileEmailDialog -> DialogManager -> PEditUserContact", e), u.value = e;
|
|
302
|
-
},
|
|
303
|
-
|
|
304
|
-
},
|
|
305
|
-
|
|
306
|
-
},
|
|
307
|
-
|
|
308
|
-
},
|
|
309
|
-
if (
|
|
310
|
-
const a =
|
|
311
|
-
a.length > 40 && (
|
|
305
|
+
}, ke = (e, a) => {
|
|
306
|
+
x.value = !0, i("on-password-error", e, a);
|
|
307
|
+
}, Te = () => {
|
|
308
|
+
R.value = !1, G.value = !1;
|
|
309
|
+
}, $ = (e) => {
|
|
310
|
+
x.value = !0, ee.value = e.color ?? "", ae.value = e.text ?? "";
|
|
311
|
+
}, O = (e) => {
|
|
312
|
+
if (c[e] = !0, e === "firstName" || e === "lastName") {
|
|
313
|
+
const a = s[e];
|
|
314
|
+
a.length > 40 && (s[e] = a.slice(0, 40), console.debug(`[Input Limit] Поле '${e}' достигло 40 символов. Ввод обрезан.`));
|
|
312
315
|
}
|
|
313
|
-
},
|
|
314
|
-
var
|
|
316
|
+
}, Ue = (e) => {
|
|
317
|
+
var C, N;
|
|
315
318
|
if (!e) {
|
|
316
319
|
o.imageContent = "", o.imageBinary = null, o.value = null;
|
|
317
320
|
return;
|
|
318
321
|
}
|
|
319
|
-
|
|
320
|
-
|
|
322
|
+
const a = ["image/png", "image/jpeg"], t = ((C = e.fileBinary) == null ? void 0 : C.type) ?? "";
|
|
323
|
+
if (!a.includes(t)) {
|
|
324
|
+
De(), o.value = null;
|
|
325
|
+
return;
|
|
326
|
+
}
|
|
327
|
+
if ((((N = e.fileBinary) == null ? void 0 : N.size) ?? 0) > o.uploadLimit) {
|
|
328
|
+
re(), o.value = null;
|
|
321
329
|
return;
|
|
322
330
|
}
|
|
323
|
-
|
|
324
|
-
},
|
|
331
|
+
S.value = !1, A.value = !1, o.value = e, o.imageBinary = e.fileBinary ?? null, o.imageContent = e.fileContent ?? "", P.value = !0;
|
|
332
|
+
}, Be = async () => {
|
|
325
333
|
try {
|
|
326
|
-
const a = (await
|
|
334
|
+
const a = (await oa("/users/profile/delete/avatar")).data;
|
|
327
335
|
return (a == null ? void 0 : a.success) !== !0 ? (console.warn("Сервер не подтвердил успешное удаление аватара."), console.warn("Ответ сервера:", a), !1) : !0;
|
|
328
336
|
} catch (e) {
|
|
329
337
|
return console.error("Ошибка при удалении аватара:", e), !1;
|
|
330
338
|
}
|
|
331
|
-
},
|
|
332
|
-
|
|
333
|
-
},
|
|
339
|
+
}, re = () => {
|
|
340
|
+
S.value = !0, o.value = null, o.imageBinary = null, o.imageContent = "", P.value = !1;
|
|
341
|
+
}, De = () => {
|
|
342
|
+
A.value = !0, o.value = null, o.imageBinary = null, o.imageContent = "", P.value = !1;
|
|
343
|
+
}, ne = async (e, a, t = "image/png") => {
|
|
334
344
|
if (!e) return null;
|
|
335
345
|
const C = await (await fetch(e)).blob();
|
|
336
346
|
return new File([C], a, { type: t });
|
|
337
|
-
},
|
|
338
|
-
o.value = null, o.imageBinary = null, o.imageContent = "",
|
|
339
|
-
},
|
|
340
|
-
|
|
341
|
-
const a =
|
|
342
|
-
if (
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
347
|
+
}, Fe = () => {
|
|
348
|
+
o.value = null, o.imageBinary = null, o.imageContent = "", P.value = !1;
|
|
349
|
+
}, Ie = async (e) => {
|
|
350
|
+
P.value = !1;
|
|
351
|
+
const a = o.imageContent;
|
|
352
|
+
if (o.imageContent = e, !o.imageBinary) return;
|
|
353
|
+
const t = await ne(
|
|
354
|
+
e,
|
|
355
|
+
o.imageBinary.name,
|
|
356
|
+
o.imageBinary.type || "image/png"
|
|
357
|
+
);
|
|
358
|
+
if (!t) {
|
|
359
|
+
o.imageContent = a;
|
|
360
|
+
return;
|
|
361
|
+
}
|
|
362
|
+
try {
|
|
363
|
+
o.loading = !0;
|
|
364
|
+
const y = new FormData();
|
|
365
|
+
y.append("file", t), await Z(`/users/profile/avatar/${E.value}`, y, { headers: { "Content-Type": void 0 } });
|
|
366
|
+
} catch (y) {
|
|
367
|
+
console.error(y), $({
|
|
368
|
+
color: "error",
|
|
369
|
+
text: p("Не удалось сохранить изменения. Попробуйте позже")
|
|
370
|
+
}), o.imageContent = a;
|
|
371
|
+
} finally {
|
|
372
|
+
S.value = !1, A.value = !1, o.loading = !1;
|
|
373
|
+
}
|
|
374
|
+
}, Se = async (e) => {
|
|
375
|
+
o.imageContent = e ?? "", o.imageBinary && (o.imageBinary = await ne(
|
|
354
376
|
e ?? "",
|
|
355
377
|
o.imageBinary.name,
|
|
356
378
|
o.imageBinary.type || "image/png"
|
|
357
379
|
));
|
|
358
|
-
},
|
|
359
|
-
var t,
|
|
360
|
-
const a = (t =
|
|
380
|
+
}, le = v(!1), se = async (e) => {
|
|
381
|
+
var t, y;
|
|
382
|
+
const a = (t = s[e]) == null ? void 0 : t.trim();
|
|
361
383
|
if (a)
|
|
362
384
|
try {
|
|
363
|
-
|
|
364
|
-
const N = (
|
|
365
|
-
N != null && N.user && (
|
|
366
|
-
firstName:
|
|
367
|
-
lastName:
|
|
385
|
+
le.value = !0;
|
|
386
|
+
const N = (y = (await Z("/users/profile/update-name", { [e]: a })).data) == null ? void 0 : y.data;
|
|
387
|
+
N != null && N.user && (s.firstName = N.user.firstName ?? s.firstName, s.lastName = N.user.lastName ?? s.lastName, d.value = {
|
|
388
|
+
firstName: s.firstName,
|
|
389
|
+
lastName: s.lastName
|
|
368
390
|
});
|
|
369
391
|
} catch (C) {
|
|
370
392
|
throw C;
|
|
371
393
|
} finally {
|
|
372
|
-
|
|
394
|
+
le.value = !1;
|
|
373
395
|
}
|
|
374
|
-
},
|
|
396
|
+
}, Ae = async () => {
|
|
375
397
|
var e;
|
|
376
398
|
if (!r.accessToken)
|
|
377
399
|
throw console.error("Access token не передан в props"), new Error("Access token is required");
|
|
378
400
|
try {
|
|
379
|
-
const t = (e = (await
|
|
401
|
+
const t = (e = (await ra({
|
|
380
402
|
accessToken: r.accessToken,
|
|
381
403
|
refreshToken: r.refreshToken ?? "",
|
|
382
404
|
excludeFields: []
|
|
@@ -384,29 +406,29 @@ const oa = {
|
|
|
384
406
|
if (!t)
|
|
385
407
|
throw console.error("Данные пользователя отсутствуют в ответе сервера"), new Error("User data is missing from the response");
|
|
386
408
|
const {
|
|
387
|
-
userId:
|
|
409
|
+
userId: y,
|
|
388
410
|
privateFirstName: C,
|
|
389
411
|
privateLastName: N,
|
|
390
|
-
email:
|
|
391
|
-
phoneNumber:
|
|
412
|
+
email: ze,
|
|
413
|
+
phoneNumber: Le
|
|
392
414
|
} = t;
|
|
393
|
-
|
|
415
|
+
E.value = y ?? "", s.firstName = C ?? "", s.lastName = N ?? "", u.value = ze ?? "", f.value = Le ?? "", o.imageContent = await Ve(), d.value = {
|
|
394
416
|
firstName: C ?? "",
|
|
395
417
|
lastName: N ?? ""
|
|
396
418
|
};
|
|
397
419
|
} catch (a) {
|
|
398
420
|
console.error("Критическая ошибка при загрузке профиля:", a);
|
|
399
421
|
}
|
|
400
|
-
},
|
|
422
|
+
}, Ve = async () => {
|
|
401
423
|
var e;
|
|
402
424
|
try {
|
|
403
|
-
const t = (e = (await
|
|
404
|
-
return t ?
|
|
425
|
+
const t = (e = (await ta("/users/profile/avatar")).data) == null ? void 0 : e.data;
|
|
426
|
+
return t ? xe(t) : (console.warn("Метаданные аватара отсутствуют в ответе."), "");
|
|
405
427
|
} catch (a) {
|
|
406
428
|
return console.error("Ошибка при загрузке метаданных аватара:", a), "";
|
|
407
429
|
}
|
|
408
430
|
};
|
|
409
|
-
function
|
|
431
|
+
function xe(e) {
|
|
410
432
|
if (!e)
|
|
411
433
|
return "";
|
|
412
434
|
try {
|
|
@@ -415,94 +437,95 @@ const oa = {
|
|
|
415
437
|
return console.error("Ошибка при составлении URL аватара:", a), "";
|
|
416
438
|
}
|
|
417
439
|
}
|
|
418
|
-
|
|
419
|
-
() => [
|
|
440
|
+
me(
|
|
441
|
+
() => [s.firstName, s.lastName],
|
|
420
442
|
([e, a]) => {
|
|
421
|
-
const t = e.trim(),
|
|
422
|
-
|
|
443
|
+
const t = e.trim(), y = a.trim(), C = t !== d.value.firstName.trim() || y !== d.value.lastName.trim(), N = t.length >= 2 && y.length >= 2;
|
|
444
|
+
V.value = C && N;
|
|
423
445
|
},
|
|
424
446
|
{ immediate: !0 }
|
|
425
447
|
);
|
|
426
|
-
const
|
|
427
|
-
if (
|
|
448
|
+
const $e = async () => {
|
|
449
|
+
if (V.value)
|
|
428
450
|
try {
|
|
429
|
-
await Promise.all([se("firstName"), se("lastName")]),
|
|
451
|
+
await Promise.all([se("firstName"), se("lastName")]), V.value = !1, i("on-update-jwt"), $({ color: "success", text: "Изменения сохранены" });
|
|
430
452
|
} catch (e) {
|
|
431
|
-
console.error(e),
|
|
453
|
+
console.error(e), $({
|
|
432
454
|
color: "error",
|
|
433
|
-
text:
|
|
455
|
+
text: p("Не удалось сохранить изменения. Попробуйте позже")
|
|
434
456
|
});
|
|
435
457
|
}
|
|
436
|
-
},
|
|
437
|
-
|
|
458
|
+
}, Oe = () => {
|
|
459
|
+
J(), i("open-password-dialog");
|
|
438
460
|
};
|
|
439
|
-
return
|
|
461
|
+
return Je(async () => {
|
|
440
462
|
if (!r.accessToken) throw new Error("Access token не передан в props");
|
|
441
463
|
if (!r.requestUrl) throw new Error("auth-backend url не передан в props");
|
|
442
|
-
|
|
443
|
-
}), (e, a) => (w(),
|
|
444
|
-
|
|
445
|
-
language:
|
|
464
|
+
aa(r.accessToken, r.requestUrl), await Ae();
|
|
465
|
+
}), (e, a) => (w(), k(de, null, [
|
|
466
|
+
g(la, {
|
|
467
|
+
language: h.value,
|
|
446
468
|
provider: e.provider,
|
|
447
|
-
onCleanInputErrors:
|
|
448
|
-
onOnUpdateJwt:
|
|
449
|
-
onUpdatePhoneField:
|
|
450
|
-
onUpdateEmailField:
|
|
451
|
-
onOnPasswordError:
|
|
452
|
-
onOnToast:
|
|
469
|
+
onCleanInputErrors: Te,
|
|
470
|
+
onOnUpdateJwt: Ce,
|
|
471
|
+
onUpdatePhoneField: Pe,
|
|
472
|
+
onUpdateEmailField: be,
|
|
473
|
+
onOnPasswordError: ke,
|
|
474
|
+
onOnToast: $
|
|
453
475
|
}, null, 8, ["language", "provider"]),
|
|
454
|
-
|
|
455
|
-
|
|
476
|
+
_("div", sa, [
|
|
477
|
+
D("avatar") ? (w(), I(m(We), {
|
|
456
478
|
key: 0,
|
|
457
479
|
modelValue: o.value,
|
|
458
480
|
"onUpdate:modelValue": [
|
|
459
481
|
a[0] || (a[0] = (t) => o.value = t),
|
|
460
|
-
a[1] || (a[1] = (t) =>
|
|
482
|
+
a[1] || (a[1] = (t) => Ue(t))
|
|
461
483
|
],
|
|
462
484
|
type: "img",
|
|
463
485
|
class: "avatar-input",
|
|
464
486
|
src: o.imageContent,
|
|
465
487
|
accept: o.accept,
|
|
466
488
|
loading: o.loading,
|
|
467
|
-
label:
|
|
489
|
+
label: p("Загрузить фото"),
|
|
468
490
|
"upload-limit": o.uploadLimit,
|
|
469
|
-
onDelete:
|
|
470
|
-
"onChange:error":
|
|
491
|
+
onDelete: Be,
|
|
492
|
+
"onChange:error": re
|
|
471
493
|
}, {
|
|
472
|
-
afterLoadLabel:
|
|
473
|
-
|
|
494
|
+
afterLoadLabel: F(() => [
|
|
495
|
+
Y(U(we.value), 1)
|
|
474
496
|
]),
|
|
475
|
-
subtext:
|
|
476
|
-
|
|
497
|
+
subtext: F(() => [
|
|
498
|
+
A.value ? (w(), k("span", ia, U("Недопустимый формат файла, разрешены только JPEG, PNG"))) : b("", !0),
|
|
499
|
+
S.value ? (w(), k("span", ua, U("Размер фото слишком большой. Загрузите JPEG, PNG до 10 MB"))) : (w(), k("span", ma, U(`${p("Формат")} ${m(ea)(o.accept).join(", ")} ${p("до")} ${m(Qe)(o.uploadLimit)}`), 1))
|
|
477
500
|
]),
|
|
478
501
|
_: 1
|
|
479
|
-
}, 8, ["modelValue", "src", "accept", "loading", "label", "upload-limit"])) :
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
modelValue:
|
|
483
|
-
"onUpdate:modelValue": a[2] || (a[2] = (t) =>
|
|
502
|
+
}, 8, ["modelValue", "src", "accept", "loading", "label", "upload-limit"])) : b("", !0),
|
|
503
|
+
D("firstName") ? (w(), k("div", da, [
|
|
504
|
+
g(m(z), {
|
|
505
|
+
modelValue: s.firstName,
|
|
506
|
+
"onUpdate:modelValue": a[2] || (a[2] = (t) => s.firstName = t),
|
|
484
507
|
size: "large",
|
|
485
|
-
label:
|
|
508
|
+
label: p("Имя"),
|
|
486
509
|
error: pe.value,
|
|
487
|
-
onBlur: a[3] || (a[3] = (t) =>
|
|
488
|
-
onInput: a[4] || (a[4] = (t) =>
|
|
510
|
+
onBlur: a[3] || (a[3] = (t) => c.firstName = !0),
|
|
511
|
+
onInput: a[4] || (a[4] = (t) => O("firstName"))
|
|
489
512
|
}, null, 8, ["modelValue", "label", "error"]),
|
|
490
|
-
|
|
491
|
-
])) :
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
modelValue:
|
|
495
|
-
"onUpdate:modelValue": a[5] || (a[5] = (t) =>
|
|
513
|
+
g(m(L), { class: "icon-locked" })
|
|
514
|
+
])) : b("", !0),
|
|
515
|
+
D("lastName") ? (w(), k("div", ca, [
|
|
516
|
+
g(m(z), {
|
|
517
|
+
modelValue: s.lastName,
|
|
518
|
+
"onUpdate:modelValue": a[5] || (a[5] = (t) => s.lastName = t),
|
|
496
519
|
size: "large",
|
|
497
|
-
label:
|
|
498
|
-
error:
|
|
499
|
-
onBlur: a[6] || (a[6] = (t) =>
|
|
500
|
-
onInput: a[7] || (a[7] = (t) =>
|
|
520
|
+
label: p("Фамилия"),
|
|
521
|
+
error: fe.value,
|
|
522
|
+
onBlur: a[6] || (a[6] = (t) => c.lastName = !0),
|
|
523
|
+
onInput: a[7] || (a[7] = (t) => O("lastName"))
|
|
501
524
|
}, null, 8, ["modelValue", "label", "error"]),
|
|
502
|
-
|
|
503
|
-
])) :
|
|
504
|
-
|
|
505
|
-
|
|
525
|
+
g(m(L), { class: "icon-locked" })
|
|
526
|
+
])) : b("", !0),
|
|
527
|
+
D("email") ? (w(), k("div", pa, [
|
|
528
|
+
g(m(z), {
|
|
506
529
|
modelValue: u.value,
|
|
507
530
|
"onUpdate:modelValue": a[8] || (a[8] = (t) => u.value = t),
|
|
508
531
|
size: "large",
|
|
@@ -511,92 +534,92 @@ const oa = {
|
|
|
511
534
|
type: "email",
|
|
512
535
|
readonly: "",
|
|
513
536
|
style: { cursor: "pointer" },
|
|
514
|
-
error:
|
|
515
|
-
onBlur: a[9] || (a[9] = (t) =>
|
|
516
|
-
onInput: a[10] || (a[10] = (t) =>
|
|
517
|
-
onClick:
|
|
537
|
+
error: ge.value && G.value,
|
|
538
|
+
onBlur: a[9] || (a[9] = (t) => c.email = !0),
|
|
539
|
+
onInput: a[10] || (a[10] = (t) => O("email")),
|
|
540
|
+
onClick: Ee
|
|
518
541
|
}, null, 8, ["modelValue", "error"]),
|
|
519
|
-
|
|
520
|
-
])) :
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
modelValue:
|
|
524
|
-
"onUpdate:modelValue": a[11] || (a[11] = (t) =>
|
|
542
|
+
g(m(L), { class: "icon-locked" })
|
|
543
|
+
])) : b("", !0),
|
|
544
|
+
D("phone") ? (w(), k("div", fa, [
|
|
545
|
+
g(m(z), {
|
|
546
|
+
modelValue: f.value,
|
|
547
|
+
"onUpdate:modelValue": a[11] || (a[11] = (t) => f.value = t),
|
|
525
548
|
size: "large",
|
|
526
549
|
"text-size": "medium",
|
|
527
|
-
label:
|
|
550
|
+
label: p("Номер телефона"),
|
|
528
551
|
type: "tel",
|
|
529
552
|
readonly: "",
|
|
530
553
|
style: { cursor: "pointer" },
|
|
531
|
-
error:
|
|
532
|
-
onBlur: a[12] || (a[12] = (t) =>
|
|
533
|
-
onInput: a[13] || (a[13] = (t) =>
|
|
534
|
-
onClick:
|
|
554
|
+
error: ve.value && R.value,
|
|
555
|
+
onBlur: a[12] || (a[12] = (t) => c.phone = !0),
|
|
556
|
+
onInput: a[13] || (a[13] = (t) => O("phone")),
|
|
557
|
+
onClick: Ne
|
|
535
558
|
}, null, 8, ["modelValue", "label", "error"]),
|
|
536
|
-
|
|
537
|
-
])) :
|
|
538
|
-
|
|
539
|
-
|
|
559
|
+
g(m(L), { class: "icon-locked" })
|
|
560
|
+
])) : b("", !0),
|
|
561
|
+
_("div", ga, [
|
|
562
|
+
he.value ? (w(), I(m(ue), {
|
|
540
563
|
key: 0,
|
|
541
564
|
color: "secondary",
|
|
542
|
-
onClick:
|
|
565
|
+
onClick: Oe
|
|
543
566
|
}, {
|
|
544
|
-
default:
|
|
545
|
-
|
|
567
|
+
default: F(() => [
|
|
568
|
+
Y(U(p("Сменить пароль")), 1)
|
|
546
569
|
]),
|
|
547
570
|
_: 1
|
|
548
|
-
})) :
|
|
549
|
-
|
|
550
|
-
disabled: !
|
|
551
|
-
onClick:
|
|
571
|
+
})) : b("", !0),
|
|
572
|
+
g(m(ue), {
|
|
573
|
+
disabled: !V.value,
|
|
574
|
+
onClick: $e
|
|
552
575
|
}, {
|
|
553
|
-
default:
|
|
554
|
-
|
|
576
|
+
default: F(() => [
|
|
577
|
+
Y(U(p("Сохранить")), 1)
|
|
555
578
|
]),
|
|
556
579
|
_: 1
|
|
557
580
|
}, 8, ["disabled"])
|
|
558
581
|
])
|
|
559
582
|
]),
|
|
560
|
-
|
|
583
|
+
P.value ? (w(), I(ie, {
|
|
561
584
|
key: 0,
|
|
562
585
|
to: "body"
|
|
563
586
|
}, [
|
|
564
|
-
|
|
565
|
-
|
|
587
|
+
P.value ? (w(), k("div", va, [
|
|
588
|
+
g(m(Ke), {
|
|
566
589
|
"circle-mode": !0,
|
|
567
590
|
"model-value": o.imageContent,
|
|
568
|
-
onClose:
|
|
569
|
-
onSave: a[14] || (a[14] = (t) =>
|
|
570
|
-
"onUpdate:modelValue": a[15] || (a[15] = (t) =>
|
|
591
|
+
onClose: Fe,
|
|
592
|
+
onSave: a[14] || (a[14] = (t) => Ie(t)),
|
|
593
|
+
"onUpdate:modelValue": a[15] || (a[15] = (t) => Se(t))
|
|
571
594
|
}, null, 8, ["model-value"])
|
|
572
|
-
])) :
|
|
573
|
-
])) :
|
|
574
|
-
(w(),
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
default:
|
|
578
|
-
qe(
|
|
595
|
+
])) : b("", !0)
|
|
596
|
+
])) : b("", !0),
|
|
597
|
+
(w(), I(ie, { to: "#toast-root" }, [
|
|
598
|
+
_("div", ha, [
|
|
599
|
+
g(je, { name: "list" }, {
|
|
600
|
+
default: F(() => [
|
|
601
|
+
qe(g(m(Ze), {
|
|
579
602
|
class: "toast",
|
|
580
|
-
color:
|
|
581
|
-
text:
|
|
582
|
-
onClose: a[16] || (a[16] = (t) =>
|
|
603
|
+
color: ee.value,
|
|
604
|
+
text: ae.value,
|
|
605
|
+
onClose: a[16] || (a[16] = (t) => x.value = !1)
|
|
583
606
|
}, null, 8, ["color", "text"]), [
|
|
584
|
-
[
|
|
607
|
+
[_e, x.value]
|
|
585
608
|
])
|
|
586
609
|
]),
|
|
587
610
|
_: 1
|
|
588
611
|
})
|
|
589
612
|
])
|
|
590
613
|
])),
|
|
591
|
-
|
|
614
|
+
g(m(ce))
|
|
592
615
|
], 64));
|
|
593
616
|
}
|
|
594
|
-
}),
|
|
595
|
-
const r =
|
|
596
|
-
for (const [i,
|
|
597
|
-
r[i] =
|
|
617
|
+
}), ya = (l, n) => {
|
|
618
|
+
const r = l.__vccOpts || l;
|
|
619
|
+
for (const [i, h] of n)
|
|
620
|
+
r[i] = h;
|
|
598
621
|
return r;
|
|
599
|
-
},
|
|
622
|
+
}, Ea = /* @__PURE__ */ ya(wa, [["__scopeId", "data-v-bc92c839"]]), Ta = /* @__PURE__ */ H({
|
|
600
623
|
__name: "index",
|
|
601
624
|
props: {
|
|
602
625
|
throttlerPrefix: {},
|
|
@@ -609,19 +632,19 @@ const oa = {
|
|
|
609
632
|
awsStorageUrl: {}
|
|
610
633
|
},
|
|
611
634
|
emits: ["on-update-jwt", "update-tokens"],
|
|
612
|
-
setup(
|
|
613
|
-
const r = n, { openDialog: i } =
|
|
614
|
-
i("email", { initialEmail: d, mode:
|
|
615
|
-
},
|
|
616
|
-
i("phone", { initialPhone: d, mode:
|
|
617
|
-
},
|
|
635
|
+
setup(l, { emit: n }) {
|
|
636
|
+
const r = n, { openDialog: i } = X(), h = (d, c) => {
|
|
637
|
+
i("email", { initialEmail: d, mode: c });
|
|
638
|
+
}, p = (d, c) => {
|
|
639
|
+
i("phone", { initialPhone: d, mode: c });
|
|
640
|
+
}, B = () => {
|
|
618
641
|
i("password");
|
|
619
|
-
},
|
|
620
|
-
r("on-update-jwt", d,
|
|
642
|
+
}, s = (d, c, E) => {
|
|
643
|
+
r("on-update-jwt", d, c, E);
|
|
621
644
|
};
|
|
622
|
-
return (d,
|
|
623
|
-
|
|
624
|
-
|
|
645
|
+
return (d, c) => (w(), k(de, null, [
|
|
646
|
+
g(m(He)),
|
|
647
|
+
g(Ea, {
|
|
625
648
|
"throttler-prefix": d.throttlerPrefix,
|
|
626
649
|
provider: d.provider,
|
|
627
650
|
"request-url": d.requestUrl,
|
|
@@ -630,21 +653,21 @@ const oa = {
|
|
|
630
653
|
"access-token": d.accessToken,
|
|
631
654
|
"refresh-token": d.refreshToken,
|
|
632
655
|
"aws-storage-url": d.awsStorageUrl,
|
|
633
|
-
onOpenEmailDialog:
|
|
634
|
-
onOpenPhoneDialog:
|
|
635
|
-
onOpenPasswordDialog:
|
|
636
|
-
onOnUpdateJwt:
|
|
656
|
+
onOpenEmailDialog: h,
|
|
657
|
+
onOpenPhoneDialog: p,
|
|
658
|
+
onOpenPasswordDialog: B,
|
|
659
|
+
onOnUpdateJwt: s
|
|
637
660
|
}, null, 8, ["throttler-prefix", "provider", "request-url", "language", "fields", "access-token", "refresh-token", "aws-storage-url"]),
|
|
638
|
-
|
|
661
|
+
g(m(ce))
|
|
639
662
|
], 64));
|
|
640
663
|
}
|
|
641
664
|
});
|
|
642
665
|
export {
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
666
|
+
ka as B,
|
|
667
|
+
ba as C,
|
|
668
|
+
ya as _,
|
|
669
|
+
Ta as a,
|
|
670
|
+
ta as g,
|
|
671
|
+
Z as p,
|
|
672
|
+
na as t
|
|
650
673
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".avatar-input[data-v-
|
|
2
|
-
import { a as o } from "./index-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".avatar-input[data-v-bc92c839] .p-input-file .overlay{visibility:hidden}.avatar-input[data-v-bc92c839] .p-input-file:hover .overlay{visibility:visible}.icon-locked{pointer-events:auto;position:absolute;right:1rem;top:1rem;color:#b6c7d6}.input-wrapper{position:relative;width:100%}.dialogTitle{z-index:10;width:100%;font-size:16px;font-weight:600;line-height:24px;text-align:center;color:#2b3238}.dialogDefaultContainer{display:flex;align-items:flex-start;flex-direction:column;width:100%;gap:32px;margin-top:16px;padding:10px 16px}.dialogDefaultContainerTextHint{font-weight:400;font-size:14px;line-height:20px;text-align:center;color:#1b1b1b}.dialogDefaultContainerRateLimitText{font-weight:600;font-size:14px;line-height:20px;color:#d0dbe4}.dialogDefaultContainerInsideContent{width:100%;display:flex;flex-direction:column;gap:24px}.dialogDefaultContainerRateLimitTextActive{color:#1c7ef1;cursor:pointer}.dialogDefaultContainerSendCodeBySmsText{color:#1c7ef1;cursor:pointer;font-size:14px;font-weight:600;display:flex;align-items:center;text-align:center}.chip{display:flex;align-items:center;justify-content:center;flex-direction:row;gap:4px;height:24px;font-size:12px;font-weight:600;color:#1b1b1b;padding:4px;line-height:16px;background-color:#b6d7ff4d;border-radius:4px;text-align:center;margin-left:5px}.cross{cursor:pointer;text-align:end}.finalLimitWrapper{display:flex;flex-direction:column;align-items:center;padding:12px 0;gap:12px;width:440px;min-height:94px;background:#e4606026;border-radius:8px}.finalLimitText{text-align:center;font-family:Inter,sans-serif;font-size:14px;line-height:20px;color:#5d7285}.finalLimitLink{font-family:Inter,sans-serif;font-weight:600;font-size:14px;line-height:20px;color:#1c7ef1;text-align:center;cursor:pointer;text-decoration:none}.finalLimitLink:hover{text-decoration:underline}.toastWrapper{position:fixed;bottom:1rem;right:1rem;z-index:9999}.toast{width:100%}.base-container{margin-top:1.5rem;display:flex;flex-direction:column;gap:1.25rem;width:490px;height:428px}.icon-disabled{pointer-events:none;position:absolute;right:1rem;top:1rem;color:#b6c7d6}.centered-overlay{position:absolute;left:50%;top:50%;z-index:1000;height:100%;width:100%;transform:translate(-50%,-50%)}.buttons-container{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-start}.buttons-container PButton{flex:1 1 100%}._loaderOverlay_cpu73_1[data-v-9e697525]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;background:#ffffffb3;border-radius:16px;z-index:99}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
import { a as o } from "./index-BSQq7qYA.js";
|
|
3
3
|
export {
|
|
4
4
|
o as PEditUserContact
|
|
5
5
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as l, defineComponent as L, createElementBlock as f, openBlock as v, normalizeClass as r, createVNode as E, unref as F, computed as T, renderSlot as d, createCommentVNode as $, createElementVNode as o, toDisplayString as y, createTextVNode as p } from "vue";
|
|
2
2
|
import { PLoader as w } from "@profeat/ui-kit";
|
|
3
|
-
import { _ as g, g as R, p as h } from "./index-
|
|
3
|
+
import { _ as g, g as R, p as h } from "./index-BSQq7qYA.js";
|
|
4
4
|
function C(e) {
|
|
5
5
|
const t = Math.floor(e / 60), a = e % 60;
|
|
6
6
|
return `${String(t).padStart(2, "0")}:${String(a).padStart(2, "0")}`;
|