@yourgoods/ui-smart 0.51.5 → 0.51.6
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-DPwMSxCS.js → ProfileEmailDialog-BzqSGu9T.js} +2 -2
- package/dist/{ProfilePasswordDialog-CabmT32e.js → ProfilePasswordDialog-CgOw023B.js} +1 -1
- package/dist/{ProfilePhoneDialog-BxvyGPcB.js → ProfilePhoneDialog-DnQ9YIj0.js} +2 -2
- package/dist/{index-n84mlDg4.js → index-dOnVTlJF.js} +80 -79
- package/dist/index.js +2 -2
- package/dist/modules/index.d.ts +1 -1
- package/dist/{useRateLimitToast-Br_5gD9g.js → useRateLimitToast-DlqIYV_M.js} +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as oe, ref as T, reactive as Z, watch as Y, computed as b, toRefs as ce, createElementBlock as I, openBlock as y, createElementVNode as x, createCommentVNode as D, toDisplayString as _, createVNode as $, unref as u, isRef as ee, withCtx as G, createTextVNode as ie, Fragment as Ae, createBlock as H, resolveDynamicComponent as he, onMounted as Fe } from "vue";
|
|
2
|
-
import { _ as ve, c as ke, u as Re, a as ze, P as Me, b as We } from "./useRateLimitToast-
|
|
3
|
-
import { C as F, _ as He, B as qe, p as W, g as je } from "./index-
|
|
2
|
+
import { _ as ve, c as ke, u as Re, a as ze, P as Me, b as We } from "./useRateLimitToast-DlqIYV_M.js";
|
|
3
|
+
import { C as F, _ as He, B as qe, p as W, g as je } from "./index-dOnVTlJF.js";
|
|
4
4
|
import { PInput as J, IconMailMd as pe, PButton as ne, IconEyeMd as Ve, IconEyeClosedMd as be, PDialog as Ge, PTopBar as Ye, IconCrossMd as Je } from "@profeat/ui-kit";
|
|
5
5
|
const Ke = { class: "dialogDefaultContainerInsideContent" }, Qe = { class: "dialogDefaultContainerTextHint" }, Xe = {
|
|
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-dOnVTlJF.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 S, openBlock as v, createElementVNode as H, defineComponent as he, reactive as ve, watch as _, ref as O, toRefs as Ce, computed as I, createCommentVNode as B, createVNode as b, toDisplayString as G, createBlock as J, createTextVNode as Z, unref as r, isRef as le, withCtx as X, onMounted as We, Fragment as je } from "vue";
|
|
2
|
-
import { _ as we, c as Ne, a as He, u as Ge, P as Oe, b as Je } from "./useRateLimitToast-
|
|
2
|
+
import { _ as we, c as Ne, a as He, u as Ge, P as Oe, b as Je } from "./useRateLimitToast-DlqIYV_M.js";
|
|
3
3
|
import { IconTelegramSm as Pe, PInput as se, IconPhoneMd as Re, IconMailMd as Ke, PButton as ze, PDialog as Qe, PTopBar as Xe, IconCrossMd as Ye, PTeleportContainer as Ze } from "@profeat/ui-kit";
|
|
4
|
-
import { C as j, t as De, p as te, g as Ae } from "./index-
|
|
4
|
+
import { C as j, t as De, p as te, g as Ae } from "./index-dOnVTlJF.js";
|
|
5
5
|
const _e = {
|
|
6
6
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7
7
|
width: "12",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref as w, shallowRef as Le, defineComponent as H, defineAsyncComponent as J, watch as ze, createBlock as I, createCommentVNode as C, unref as m, openBlock as y, resolveDynamicComponent as Me, mergeProps as Re, computed as T, reactive as q, onMounted as Ge, createElementBlock as k, Fragment as me, createVNode as g, createElementVNode as Y, withCtx as F, toDisplayString as D, createTextVNode as _, Teleport as ue, Transition as je, withDirectives as Je, vShow as qe } from "vue";
|
|
2
2
|
import Ye from "axios";
|
|
3
3
|
import { PInputFileUploader as _e, PInput as L, IconFilledEditMd as z, PButton as de, PImageCropper as We, PToast as Ke, PTeleportContainer as pe, PToastContainer as Ze } from "@profeat/ui-kit";
|
|
4
|
-
function He(
|
|
5
|
-
if (
|
|
4
|
+
function He(i, r = 2) {
|
|
5
|
+
if (i === 0)
|
|
6
6
|
return "0 B";
|
|
7
|
-
const n = 1024,
|
|
8
|
-
return `${Number.parseFloat((
|
|
7
|
+
const n = 1024, s = ["B", "KB", "MB", "GB", "TB", "PB", "EB"], v = Math.floor(Math.log(i) / Math.log(n));
|
|
8
|
+
return `${Number.parseFloat((i / n ** v).toFixed(r))} ${s[v]}`;
|
|
9
9
|
}
|
|
10
10
|
const Qe = {
|
|
11
11
|
"image/jpeg": "JPEG",
|
|
@@ -15,8 +15,8 @@ const Qe = {
|
|
|
15
15
|
"application/zip": "ZIP Archive"
|
|
16
16
|
// ...
|
|
17
17
|
};
|
|
18
|
-
function Xe(
|
|
19
|
-
return
|
|
18
|
+
function Xe(i) {
|
|
19
|
+
return i.map((r) => {
|
|
20
20
|
var n;
|
|
21
21
|
return Qe[r] || ((n = r.split("/")[1]) == null ? void 0 : n.toUpperCase());
|
|
22
22
|
});
|
|
@@ -29,15 +29,16 @@ const Na = {
|
|
|
29
29
|
VERIFY_EMAIL: "verify-email"
|
|
30
30
|
};
|
|
31
31
|
let K = null;
|
|
32
|
-
function ea(
|
|
32
|
+
function ea(i, r, n) {
|
|
33
33
|
K = Ye.create({
|
|
34
34
|
baseURL: r,
|
|
35
35
|
headers: {
|
|
36
|
-
Authorization: `Bearer ${
|
|
36
|
+
Authorization: `Bearer ${i}`,
|
|
37
|
+
"x-throttler-prefix": n ?? "throttler_profile_edit"
|
|
38
|
+
// здесь можно словить баг, который может быть сложно отследить, если будет передаваться пустой прелфикс
|
|
37
39
|
// 'Content-Type': 'application/json',
|
|
38
|
-
"x-throttler-prefix": "throttler_profile_edit"
|
|
39
40
|
},
|
|
40
|
-
validateStatus: (
|
|
41
|
+
validateStatus: (s) => s >= 200 && s < 300
|
|
41
42
|
});
|
|
42
43
|
}
|
|
43
44
|
function Q() {
|
|
@@ -45,17 +46,17 @@ function Q() {
|
|
|
45
46
|
throw new Error("Axios instance not initialized. Call initAxios(token, baseUrl) first.");
|
|
46
47
|
return K;
|
|
47
48
|
}
|
|
48
|
-
async function Z(
|
|
49
|
-
return Q().post(
|
|
49
|
+
async function Z(i, r, n) {
|
|
50
|
+
return Q().post(i, r, n);
|
|
50
51
|
}
|
|
51
|
-
async function aa(
|
|
52
|
-
return Q().get(
|
|
52
|
+
async function aa(i, r) {
|
|
53
|
+
return Q().get(i, r);
|
|
53
54
|
}
|
|
54
|
-
async function ta(
|
|
55
|
-
return Q().delete(
|
|
55
|
+
async function ta(i, r) {
|
|
56
|
+
return Q().delete(i, r);
|
|
56
57
|
}
|
|
57
|
-
async function oa(
|
|
58
|
-
const r = await Z("/users/profile/me",
|
|
58
|
+
async function oa(i) {
|
|
59
|
+
const r = await Z("/users/profile/me", i);
|
|
59
60
|
if (r.status !== 200 && r.status !== 201 || !r.data)
|
|
60
61
|
throw new Error("Ошибка при получении профиля пользователя");
|
|
61
62
|
return r.data;
|
|
@@ -65,13 +66,13 @@ function X() {
|
|
|
65
66
|
return {
|
|
66
67
|
currentDialog: M,
|
|
67
68
|
dialogPayload: W,
|
|
68
|
-
openDialog: (
|
|
69
|
-
M.value =
|
|
69
|
+
openDialog: (s, v) => {
|
|
70
|
+
M.value = s, W.value = v ?? null;
|
|
70
71
|
},
|
|
71
72
|
closeDialog: () => {
|
|
72
73
|
M.value = null, W.value = null;
|
|
73
74
|
},
|
|
74
|
-
isDialogOpen: (
|
|
75
|
+
isDialogOpen: (s) => M.value === s
|
|
75
76
|
};
|
|
76
77
|
}
|
|
77
78
|
const na = {
|
|
@@ -215,22 +216,22 @@ const na = {
|
|
|
215
216
|
disableAddPhone: { type: Boolean }
|
|
216
217
|
},
|
|
217
218
|
emits: ["clean-input-errors", "on-update-jwt", "update-phone-field", "update-email-field", "on-password-error", "on-toast"],
|
|
218
|
-
setup(
|
|
219
|
-
const n = r,
|
|
220
|
-
email: J(() => import("./ProfileEmailDialog-
|
|
221
|
-
phone: J(() => import("./ProfilePhoneDialog-
|
|
222
|
-
password: J(() => import("./ProfilePasswordDialog-
|
|
223
|
-
},
|
|
219
|
+
setup(i, { emit: r }) {
|
|
220
|
+
const n = r, s = w(!0), { currentDialog: v, dialogPayload: c, closeDialog: U } = X(), u = {
|
|
221
|
+
email: J(() => import("./ProfileEmailDialog-BzqSGu9T.js")),
|
|
222
|
+
phone: J(() => import("./ProfilePhoneDialog-DnQ9YIj0.js")),
|
|
223
|
+
password: J(() => import("./ProfilePasswordDialog-CgOw023B.js"))
|
|
224
|
+
}, l = ({ email: h }) => {
|
|
224
225
|
n("update-email-field", h);
|
|
225
226
|
}, p = ({ phone: h }) => {
|
|
226
227
|
n("update-phone-field", h);
|
|
227
228
|
};
|
|
228
229
|
return ze(v, (h) => {
|
|
229
|
-
|
|
230
|
-
}), (h, d) => m(v) ? (y(), I(Me(
|
|
230
|
+
s.value = !!h;
|
|
231
|
+
}), (h, d) => m(v) ? (y(), I(Me(u[m(v)]), Re({
|
|
231
232
|
key: 0,
|
|
232
|
-
modelValue:
|
|
233
|
-
"onUpdate:modelValue": d[0] || (d[0] = (f) =>
|
|
233
|
+
modelValue: s.value,
|
|
234
|
+
"onUpdate:modelValue": d[0] || (d[0] = (f) => s.value = f),
|
|
234
235
|
language: h.language,
|
|
235
236
|
provider: h.provider,
|
|
236
237
|
"disable-add-phone": h.disableAddPhone
|
|
@@ -238,7 +239,7 @@ const na = {
|
|
|
238
239
|
onClose: m(U),
|
|
239
240
|
onCleanInputErrors: d[1] || (d[1] = (f) => n("clean-input-errors")),
|
|
240
241
|
onOnUpdateJwt: d[2] || (d[2] = (f, N, o) => n("on-update-jwt", f, N, o)),
|
|
241
|
-
onSubmitEmail:
|
|
242
|
+
onSubmitEmail: l,
|
|
242
243
|
onSubmitPhone: p,
|
|
243
244
|
onOnPasswordError: d[3] || (d[3] = (f, N) => n("on-password-error", f, N)),
|
|
244
245
|
onOnToast: d[4] || (d[4] = (f) => n("on-toast", f))
|
|
@@ -276,8 +277,8 @@ const na = {
|
|
|
276
277
|
disableAddPhone: { type: Boolean }
|
|
277
278
|
},
|
|
278
279
|
emits: ["open-email-dialog", "open-phone-dialog", "open-password-dialog", "on-update-jwt", "on-password-error", "update-tokens"],
|
|
279
|
-
setup(
|
|
280
|
-
const n =
|
|
280
|
+
setup(i, { emit: r }) {
|
|
281
|
+
const n = i, s = r, v = T(() => n.language ?? "ru"), c = (e) => na[v.value][e] || e, { openDialog: U } = X(), u = q({ firstName: "", lastName: "" }), l = w({ firstName: "", lastName: "" }), p = q({ firstName: !1, lastName: !1, email: !1, phone: !1 }), h = w(""), d = w(""), f = w(""), N = w(!1), o = q({
|
|
281
282
|
value: null,
|
|
282
283
|
loading: !1,
|
|
283
284
|
accept: ["image/png", "image/jpeg"],
|
|
@@ -285,7 +286,7 @@ const na = {
|
|
|
285
286
|
// 10 MB
|
|
286
287
|
imageBinary: null,
|
|
287
288
|
imageContent: ""
|
|
288
|
-
}), B = w(""), S = w(!1), R = w(!0), G = w(!0), ee = w(void 0), ae = w(""), ce = T(() => oe(
|
|
289
|
+
}), B = w(""), S = w(!1), R = w(!0), G = w(!0), ee = w(void 0), ae = w(""), ce = T(() => oe(u.firstName, p.firstName)), fe = T(() => oe(u.lastName, p.lastName)), ge = T(() => p.email && !d.value.trim() ? "Введите e-mail" : ""), ve = T(() => p.phone && !f.value.trim() ? "Введите номер телефона" : ""), A = (e) => n.fields.some((a) => a.key === e), te = (e) => e && e.trim() ? "edit" : "bind", j = () => setTimeout(() => {
|
|
289
290
|
var e;
|
|
290
291
|
return (e = document.activeElement) == null ? void 0 : e.blur();
|
|
291
292
|
}, 0), he = T(() => !!(d.value && d.value.trim() !== "")), we = T(() => o.imageContent ? c("Загрузить другое фото") : c("Загрузить фото")), oe = (e, a) => {
|
|
@@ -293,25 +294,25 @@ const na = {
|
|
|
293
294
|
const t = e.trim();
|
|
294
295
|
return t ? t.length < 2 ? "Поле должно содержать минимум 2 символа" : "" : "Введите значение";
|
|
295
296
|
}, ye = (e) => U("email", { mode: e ? "edit" : "bind", initialEmail: e }), Ee = () => {
|
|
296
|
-
j(), p.email = !1, G.value = !1,
|
|
297
|
+
j(), p.email = !1, G.value = !1, s("open-email-dialog", d.value, te(d.value)), ye(d.value);
|
|
297
298
|
}, be = () => {
|
|
298
|
-
j(), p.phone = !1, R.value = !1,
|
|
299
|
+
j(), p.phone = !1, R.value = !1, s("open-phone-dialog", f.value, te(f.value));
|
|
299
300
|
}, Ne = async (e, a, t) => {
|
|
300
|
-
e === "email" && t && (d.value = t), e === "phone" && t && (f.value = t),
|
|
301
|
+
e === "email" && t && (d.value = t), e === "phone" && t && (f.value = t), s("on-update-jwt");
|
|
301
302
|
}, Pe = (e) => {
|
|
302
303
|
f.value = e;
|
|
303
304
|
}, Ce = (e) => {
|
|
304
305
|
d.value = e;
|
|
305
306
|
}, ke = (e, a) => {
|
|
306
|
-
S.value = !0,
|
|
307
|
+
S.value = !0, s("on-password-error", e, a);
|
|
307
308
|
}, Te = () => {
|
|
308
309
|
R.value = !1, G.value = !1;
|
|
309
310
|
}, V = (e) => {
|
|
310
311
|
S.value = !0, ee.value = e.color ?? "", ae.value = e.text ?? "";
|
|
311
312
|
}, x = (e) => {
|
|
312
313
|
if (p[e] = !0, e === "firstName" || e === "lastName") {
|
|
313
|
-
const a =
|
|
314
|
-
a.length > 40 && (
|
|
314
|
+
const a = u[e];
|
|
315
|
+
a.length > 40 && (u[e] = a.slice(0, 40));
|
|
315
316
|
}
|
|
316
317
|
}, Ue = (e) => {
|
|
317
318
|
var $, O;
|
|
@@ -375,14 +376,14 @@ const na = {
|
|
|
375
376
|
));
|
|
376
377
|
}, se = w(!1), le = async (e) => {
|
|
377
378
|
var t, E;
|
|
378
|
-
const a = (t =
|
|
379
|
+
const a = (t = u[e]) == null ? void 0 : t.trim();
|
|
379
380
|
if (a)
|
|
380
381
|
try {
|
|
381
382
|
se.value = !0;
|
|
382
383
|
const b = (E = (await Z("/users/profile/update-name", { [e]: a })).data) == null ? void 0 : E.data;
|
|
383
|
-
b != null && b.user && (
|
|
384
|
-
firstName:
|
|
385
|
-
lastName:
|
|
384
|
+
b != null && b.user && (u.firstName = b.user.firstName ?? u.firstName, u.lastName = b.user.lastName ?? u.lastName, l.value = {
|
|
385
|
+
firstName: u.firstName,
|
|
386
|
+
lastName: u.lastName
|
|
386
387
|
});
|
|
387
388
|
} catch (P) {
|
|
388
389
|
throw P;
|
|
@@ -408,7 +409,7 @@ const na = {
|
|
|
408
409
|
email: $,
|
|
409
410
|
phoneNumber: O
|
|
410
411
|
} = t;
|
|
411
|
-
h.value = E ?? "",
|
|
412
|
+
h.value = E ?? "", u.firstName = P ?? "", u.lastName = b ?? "", d.value = $ ?? "", f.value = O ?? "", o.imageContent = await Ve(), l.value = {
|
|
412
413
|
firstName: P ?? "",
|
|
413
414
|
lastName: b ?? ""
|
|
414
415
|
};
|
|
@@ -434,14 +435,14 @@ const na = {
|
|
|
434
435
|
}
|
|
435
436
|
}
|
|
436
437
|
const ie = T(() => {
|
|
437
|
-
if (!
|
|
438
|
+
if (!l.value.firstName && !l.value.lastName)
|
|
438
439
|
return !1;
|
|
439
|
-
const e =
|
|
440
|
+
const e = u.firstName.trim(), a = u.lastName.trim(), t = l.value.firstName.trim(), E = l.value.lastName.trim(), P = e !== t || a !== E, b = e.length >= 2 && a.length >= 2;
|
|
440
441
|
return P && b;
|
|
441
442
|
}), $e = async () => {
|
|
442
443
|
if (ie.value)
|
|
443
444
|
try {
|
|
444
|
-
await Promise.all([le("firstName"), le("lastName")]),
|
|
445
|
+
await Promise.all([le("firstName"), le("lastName")]), s("on-update-jwt"), V({ color: "success", text: "Изменения сохранены" });
|
|
445
446
|
} catch (e) {
|
|
446
447
|
console.error(e), V({
|
|
447
448
|
color: "error",
|
|
@@ -449,12 +450,12 @@ const na = {
|
|
|
449
450
|
});
|
|
450
451
|
}
|
|
451
452
|
}, Oe = () => {
|
|
452
|
-
j(),
|
|
453
|
+
j(), s("open-password-dialog");
|
|
453
454
|
};
|
|
454
455
|
return Ge(async () => {
|
|
455
456
|
if (!n.accessToken) throw new Error("Access token не передан в props");
|
|
456
457
|
if (!n.requestUrl) throw new Error("auth-backend url не передан в props");
|
|
457
|
-
ea(n.accessToken, n.requestUrl), await Se();
|
|
458
|
+
ea(n.accessToken, n.requestUrl, n.throttlerPrefix), await Se();
|
|
458
459
|
}), (e, a) => (y(), k(me, null, [
|
|
459
460
|
g(ra, {
|
|
460
461
|
language: v.value,
|
|
@@ -495,8 +496,8 @@ const na = {
|
|
|
495
496
|
}, 8, ["modelValue", "src", "loading", "label", "upload-limit"])) : C("", !0),
|
|
496
497
|
A("firstName") ? (y(), k("div", ua, [
|
|
497
498
|
g(m(L), {
|
|
498
|
-
modelValue:
|
|
499
|
-
"onUpdate:modelValue": a[2] || (a[2] = (t) =>
|
|
499
|
+
modelValue: u.firstName,
|
|
500
|
+
"onUpdate:modelValue": a[2] || (a[2] = (t) => u.firstName = t),
|
|
500
501
|
size: "large",
|
|
501
502
|
label: c("Имя"),
|
|
502
503
|
error: ce.value,
|
|
@@ -507,8 +508,8 @@ const na = {
|
|
|
507
508
|
])) : C("", !0),
|
|
508
509
|
A("lastName") ? (y(), k("div", da, [
|
|
509
510
|
g(m(L), {
|
|
510
|
-
modelValue:
|
|
511
|
-
"onUpdate:modelValue": a[5] || (a[5] = (t) =>
|
|
511
|
+
modelValue: u.lastName,
|
|
512
|
+
"onUpdate:modelValue": a[5] || (a[5] = (t) => u.lastName = t),
|
|
512
513
|
size: "large",
|
|
513
514
|
label: c("Фамилия"),
|
|
514
515
|
error: fe.value,
|
|
@@ -607,12 +608,12 @@ const na = {
|
|
|
607
608
|
g(m(pe))
|
|
608
609
|
], 64));
|
|
609
610
|
}
|
|
610
|
-
}), ha = (
|
|
611
|
-
const n =
|
|
612
|
-
for (const [
|
|
613
|
-
n[
|
|
611
|
+
}), ha = (i, r) => {
|
|
612
|
+
const n = i.__vccOpts || i;
|
|
613
|
+
for (const [s, v] of r)
|
|
614
|
+
n[s] = v;
|
|
614
615
|
return n;
|
|
615
|
-
}, wa = /* @__PURE__ */ ha(va, [["__scopeId", "data-v-
|
|
616
|
+
}, wa = /* @__PURE__ */ ha(va, [["__scopeId", "data-v-a56fcdbb"]]), Ca = /* @__PURE__ */ H({
|
|
616
617
|
__name: "index",
|
|
617
618
|
props: {
|
|
618
619
|
throttlerPrefix: {},
|
|
@@ -626,32 +627,32 @@ const na = {
|
|
|
626
627
|
disableAddPhone: { type: Boolean }
|
|
627
628
|
},
|
|
628
629
|
emits: ["on-update-jwt", "update-tokens"],
|
|
629
|
-
setup(
|
|
630
|
-
const n = r, { openDialog:
|
|
631
|
-
|
|
632
|
-
}, c = (
|
|
633
|
-
|
|
630
|
+
setup(i, { emit: r }) {
|
|
631
|
+
const n = r, { openDialog: s } = X(), v = (l, p) => {
|
|
632
|
+
s("email", { initialEmail: l, mode: p });
|
|
633
|
+
}, c = (l, p) => {
|
|
634
|
+
s("phone", { initialPhone: l, mode: p });
|
|
634
635
|
}, U = () => {
|
|
635
|
-
|
|
636
|
-
},
|
|
637
|
-
n("on-update-jwt",
|
|
636
|
+
s("password");
|
|
637
|
+
}, u = (l, p, h) => {
|
|
638
|
+
n("on-update-jwt", l, p, h);
|
|
638
639
|
};
|
|
639
|
-
return (
|
|
640
|
+
return (l, p) => (y(), k(me, null, [
|
|
640
641
|
g(m(Ze)),
|
|
641
642
|
g(wa, {
|
|
642
|
-
"throttler-prefix":
|
|
643
|
-
provider:
|
|
644
|
-
"request-url":
|
|
645
|
-
language:
|
|
646
|
-
fields:
|
|
647
|
-
"access-token":
|
|
648
|
-
"refresh-token":
|
|
649
|
-
"aws-storage-url":
|
|
650
|
-
"disable-add-phone":
|
|
643
|
+
"throttler-prefix": l.throttlerPrefix,
|
|
644
|
+
provider: l.provider,
|
|
645
|
+
"request-url": l.requestUrl,
|
|
646
|
+
language: l.language,
|
|
647
|
+
fields: l.fields,
|
|
648
|
+
"access-token": l.accessToken,
|
|
649
|
+
"refresh-token": l.refreshToken,
|
|
650
|
+
"aws-storage-url": l.awsStorageUrl,
|
|
651
|
+
"disable-add-phone": l.disableAddPhone,
|
|
651
652
|
onOpenEmailDialog: v,
|
|
652
653
|
onOpenPhoneDialog: c,
|
|
653
654
|
onOpenPasswordDialog: U,
|
|
654
|
-
onOnUpdateJwt:
|
|
655
|
+
onOnUpdateJwt: u
|
|
655
656
|
}, null, 8, ["throttler-prefix", "provider", "request-url", "language", "fields", "access-token", "refresh-token", "aws-storage-url", "disable-add-phone"]),
|
|
656
657
|
g(m(pe))
|
|
657
658
|
], 64));
|
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-a56fcdbb] .p-input-file .overlay{visibility:hidden}.avatar-input[data-v-a56fcdbb] .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-dOnVTlJF.js";
|
|
3
3
|
export {
|
|
4
4
|
o as PEditUserContact
|
|
5
5
|
};
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
-
export declare function initAxios(token: string, baseUrl: string): void;
|
|
2
|
+
export declare function initAxios(token: string, baseUrl: string, throttlerPrefix?: string): void;
|
|
3
3
|
/** axios-инстанс */
|
|
4
4
|
export declare function getAxios(): AxiosInstance;
|
|
5
5
|
export declare function post<T = any>(url: string, data?: any, config?: AxiosRequestConfig): Promise<import('axios').AxiosResponse<T, any, {}>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as n, defineComponent as L, createElementBlock as p, openBlock as v, normalizeClass as c, createVNode as w, unref as _, computed as T, renderSlot as d, createCommentVNode as h, createElementVNode as i, toDisplayString as y, createTextVNode as f } from "vue";
|
|
2
2
|
import { PLoader as $ } from "@profeat/ui-kit";
|
|
3
|
-
import { _ as b, g as C, p as R } from "./index-
|
|
3
|
+
import { _ as b, g as C, p as R } from "./index-dOnVTlJF.js";
|
|
4
4
|
function g(s) {
|
|
5
5
|
const e = Math.floor(s / 60), a = s % 60;
|
|
6
6
|
return `${String(e).padStart(2, "0")}:${String(a).padStart(2, "0")}`;
|