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