@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.
@@ -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-DrsfGcKN.js";
3
- import { C as A, _ as ze, B as We, p as W, g as He } from "./index-1pX0MPM8.js";
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-1pX0MPM8.js";
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-DrsfGcKN.js";
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-1pX0MPM8.js";
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 xe, defineComponent as Z, defineAsyncComponent as J, watch as ie, createBlock as I, createCommentVNode as N, unref as u, openBlock as w, resolveDynamicComponent as Se, mergeProps as Ae, computed as b, reactive as j, onMounted as $e, createElementBlock as C, Fragment as ue, createVNode as f, createElementVNode as $, withCtx as D, toDisplayString as F, createTextVNode as q, Teleport as le, Transition as Oe, withDirectives as ze, vShow as Me } from "vue";
2
- import Le from "axios";
3
- import { PInputFileUploader as Re, PInput as O, IconFilledEditMd as z, PButton as se, PImageCropper as Ge, PToast as _e, PTeleportContainer as me, PToastContainer as Je } from "@profeat/ui-kit";
4
- function je(m, r = 2) {
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 n = 1024, s = ["B", "KB", "MB", "GB", "TB", "PB", "EB"], g = Math.floor(Math.log(m) / Math.log(n));
8
- return `${Number.parseFloat((m / n ** g).toFixed(r))} ${s[g]}`;
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 qe = {
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 Ye(m) {
19
- return m.map((r) => {
20
- var n;
21
- return qe[r] || ((n = r.split("/")[1]) == null ? void 0 : n.toUpperCase());
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 va = {
24
+ const Ea = {
25
25
  OLD: "old",
26
26
  NEW: "new",
27
27
  COMPLETED: "completed"
28
- }, ga = {
28
+ }, Na = {
29
29
  VERIFY_EMAIL: "verify-email"
30
30
  };
31
31
  let W = null;
32
- function We(m, r) {
33
- W = Le.create({
34
- baseURL: r,
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, r, n) {
49
- return de().post(m, r, n);
48
+ async function K(m, n, r) {
49
+ return de().post(m, n, r);
50
50
  }
51
- async function ha(m, r) {
52
- return de().get(m, r);
51
+ async function Xe(m, n) {
52
+ return de().get(m, n);
53
53
  }
54
- async function Ke(m) {
55
- const r = await K("/users/profile/me", m);
56
- if (console.log("---res: ", r), r.status !== 200 && r.status !== 201 || !r.data)
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 r.data;
58
+ return n.data;
59
59
  }
60
- const M = h(null), Y = xe(null);
60
+ const L = h(null), Y = Oe(null);
61
61
  function H() {
62
62
  return {
63
- currentDialog: M,
63
+ currentDialog: L,
64
64
  dialogPayload: Y,
65
- openDialog: (s, g) => {
66
- M.value = s, Y.value = g ?? null;
65
+ openDialog: (l, v) => {
66
+ L.value = l, Y.value = v ?? null;
67
67
  },
68
68
  closeDialog: () => {
69
- M.value = null, Y.value = null;
69
+ L.value = null, Y.value = null;
70
70
  },
71
- isDialogOpen: (s) => M.value === s
71
+ isDialogOpen: (l) => L.value === l
72
72
  };
73
73
  }
74
- const Ze = {
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
- }, He = /* @__PURE__ */ Z({
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: r }) {
215
- const n = r, s = h(!0), { currentDialog: g, dialogPayload: v, closeDialog: B } = H(), l = {
216
- email: J(() => import("./ProfileEmailDialog-DY4_Fue4.js")),
217
- phone: J(() => import("./ProfilePhoneDialog-D2jMqKZo.js")),
218
- password: J(() => import("./ProfilePasswordDialog-BYI8OfLa.js"))
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
- n("update-email-field", y);
220
+ r("update-email-field", y);
221
221
  }, p = ({ phone: y }) => {
222
- n("update-phone-field", y);
222
+ r("update-phone-field", y);
223
223
  };
224
- return ie(g, (y) => {
225
- s.value = !!y;
226
- }), (y, i) => u(g) ? (w(), I(Se(l[u(g)]), Ae({
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: s.value,
229
- "onUpdate:modelValue": i[0] || (i[0] = (c) => s.value = 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(v), {
233
- onClose: u(B),
234
- onCleanInputErrors: i[1] || (i[1] = (c) => n("clean-input-errors")),
235
- onOnUpdateJwt: i[2] || (i[2] = (c, E, o) => n("on-update-jwt", 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) => n("on-password-error", c, E)),
239
- onOnToast: i[4] || (i[4] = (c) => n("on-toast", c))
240
- }), null, 16, ["modelValue", "language", "provider", "onClose"])) : N("", !0);
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
- }), Qe = { class: "base-container" }, Xe = { class: "avatar-wrapper" }, ea = { key: 0 }, aa = { key: 1 }, ta = {
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
- }, oa = {
245
+ }, ia = {
246
246
  key: 1,
247
247
  class: "input-wrapper"
248
- }, na = {
248
+ }, ua = {
249
249
  key: 2,
250
250
  class: "input-wrapper"
251
- }, ra = {
251
+ }, ma = {
252
252
  key: 3,
253
253
  class: "input-wrapper"
254
- }, la = { class: "buttons-container" }, sa = {
254
+ }, da = { class: "buttons-container" }, pa = {
255
255
  key: 0,
256
256
  class: "centered-overlay"
257
- }, ia = { class: "toastWrapper" }, ua = /* @__PURE__ */ Z({
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: r }) {
270
- const n = m, s = r, g = b(() => n.language ?? "ru"), v = (e) => Ze[g.value][e] || e, { openDialog: B } = H(), l = j({ firstName: "", lastName: "" }), d = h({ firstName: "", lastName: "" }), p = j({ firstName: !1, lastName: !1, email: !1, phone: !1 }), y = h(""), i = h(""), c = h(""), E = h(!1), o = j({
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
- }), V = h(!1), x = h(!1), S = h(!1), L = h(!0), R = h(!0), Q = h(void 0), X = h(""), pe = b(() => ae(l.firstName, p.firstName)), ce = b(() => ae(l.lastName, p.lastName)), fe = b(() => p.email && !i.value.trim() ? "Введите e-mail" : ""), ve = b(() => p.phone && !c.value.trim() ? "Введите номер телефона" : ""), U = (e) => n.fields.some((t) => t.key === e), ee = (e) => e && e.trim() ? "edit" : "bind", G = () => setTimeout(() => {
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), ge = b(() => !!(i.value && i.value.trim() !== "")), he = b(() => o.imageContent ? v("Загрузить другое фото") : v("Загрузить фото")), ae = (e, t) => {
282
- if (!t) return "";
283
- const a = e.trim();
284
- return a ? a.length < 2 ? "Поле должно содержать минимум 2 символа" : "" : "Введите значение";
285
- }, we = (e) => B("email", { mode: e ? "edit" : "bind", initialEmail: e }), ye = () => {
286
- G(), p.email = !1, R.value = !1, s("open-email-dialog", i.value, ee(i.value)), we(i.value);
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, L.value = !1, s("open-phone-dialog", c.value, ee(c.value));
289
- }, Ne = async (e, t, a) => {
290
- e === "email" && a && (i.value = a), e === "phone" && a && (c.value = a), s("on-update-jwt");
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, t) => {
296
- S.value = !0, s("on-password-error", e, t);
296
+ }, be = (e, a) => {
297
+ A.value = !0, l("on-password-error", e, a);
297
298
  }, ke = () => {
298
- L.value = !1, R.value = !1;
299
- }, _ = (e) => {
300
- S.value = !0, Q.value = e.color ?? "", X.value = e.text ?? "";
301
- }, A = (e) => {
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 t = l[e];
304
- t.length > 40 && (l[e] = t.slice(0, 40), console.debug(`[Input Limit] Поле '${e}' достигло 40 символов. Ввод обрезан.`));
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 a;
308
+ var t;
308
309
  if (!e) {
309
310
  o.imageContent = "", o.imageBinary = null, o.value = null;
310
311
  return;
311
312
  }
312
- if ((((a = e.fileBinary) == null ? void 0 : a.size) ?? 0) > o.uploadLimit) {
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
- V.value = !1, o.value = e, o.imageBinary = e.fileBinary ?? null, o.imageContent = e.fileContent ?? "", E.value = !0;
317
+ I.value = !1, o.value = e, o.imageBinary = e.fileBinary ?? null, o.imageContent = e.fileContent ?? "", E.value = !0;
317
318
  }, te = () => {
318
- V.value = !0, o.value = null, o.imageBinary = null, o.imageContent = "", E.value = !1;
319
- }, oe = async (e, t, a = "image/png") => {
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 T = await (await fetch(e)).blob();
322
- return new File([T], t, { type: a });
323
- }, Be = () => {
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
- }, Ue = async (e) => {
326
+ }, Be = async (e) => {
326
327
  if (E.value = !1, o.imageContent = e, !o.imageBinary) return;
327
- const t = await oe(e, o.imageBinary.name, o.imageBinary.type || "image/png");
328
- if (t)
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 a = new FormData();
332
- a.append("file", t), await K(`/users/profile/avatar/${y.value}`, a, { headers: { "Content-Type": void 0 } });
333
- } catch (a) {
334
- console.error(a);
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
- V.value = !1, o.loading = !1;
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
- }, ne = h(!1), re = async (e) => {
345
- var a, k;
346
- const t = (a = l[e]) == null ? void 0 : a.trim();
347
- if (t)
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
- ne.value = !0;
350
- const P = (k = (await K("/users/profile/update-name", { [e]: t })).data) == null ? void 0 : k.data;
351
- P != null && P.user && (l.firstName = P.user.firstName ?? l.firstName, l.lastName = P.user.lastName ?? l.lastName, d.value = {
352
- firstName: l.firstName,
353
- lastName: l.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 (T) {
356
- throw T;
356
+ } catch (C) {
357
+ throw C;
357
358
  } finally {
358
- ne.value = !1;
359
+ re.value = !1;
359
360
  }
360
361
  }, Fe = async () => {
361
362
  var e;
362
- if (!n.accessToken) throw new Error("Access token не передан в props");
363
+ if (!r.accessToken)
364
+ throw console.error("Access token не передан в props"), new Error("Access token is required");
363
365
  try {
364
- const a = (e = (await Ke({
365
- accessToken: n.accessToken,
366
- refreshToken: n.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 (!a) throw new Error("user data отсутствует в response");
370
- y.value = a.userId ?? "", l.firstName = a.privateFirstName ?? "", l.lastName = a.privateLastName ?? "", i.value = a.email ?? "", c.value = a.phoneNumber ?? "", o.imageContent = a.avatar ?? "", d.value = { firstName: a.privateFirstName ?? "", lastName: a.privateLastName ?? "" };
371
- } catch {
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
- () => [l.firstName, l.lastName],
376
- ([e, t]) => {
377
- const a = e.trim(), k = t.trim(), T = a !== d.value.firstName.trim() || k !== d.value.lastName.trim(), P = a.length >= 2 && k.length >= 2;
378
- x.value = T && P;
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 Ie = async () => {
383
- if (x.value)
413
+ const Ve = async () => {
414
+ if (V.value)
384
415
  try {
385
- await Promise.all([re("firstName"), re("lastName")]), x.value = !1, s("on-update-jwt"), _({ color: "success", text: "Изменения сохранены" });
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: v("Не удалось сохранить изменения. Попробуйте позже")
420
+ text: g("Не удалось сохранить изменения. Попробуйте позже")
390
421
  });
391
422
  }
392
- }, Ve = () => {
393
- G(), s("open-password-dialog");
423
+ }, Ae = () => {
424
+ G(), l("open-password-dialog");
394
425
  };
395
- return $e(async () => {
396
- if (!n.accessToken) throw new Error("Access token не передан в props");
397
- if (!n.requestUrl) throw new Error("auth-backend url не передан в props");
398
- We(n.accessToken, n.requestUrl), await Fe();
399
- }), (e, t) => (w(), C(ue, null, [
400
- f(He, {
401
- language: g.value,
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", Qe, [
411
- $("div", Xe, [
412
- U("avatar") ? (w(), I(u(Re), {
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
- t[0] || (t[0] = (a) => o.value = a),
417
- t[1] || (t[1] = (a) => Te(a))
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: v("Загрузить фото"),
454
+ label: g("Загрузить фото"),
424
455
  "upload-limit": o.uploadLimit,
425
456
  "onChange:error": te
426
457
  }, {
427
458
  afterLoadLabel: D(() => [
428
- q(F(he.value), 1)
459
+ j(F(he.value), 1)
429
460
  ]),
430
461
  subtext: D(() => [
431
- V.value ? (w(), C("span", ea, F("Размер фото слишком большой. Загрузите JPEG, PNG до 10 MB"))) : (w(), C("span", aa, F(`${v("Формат")} ${u(Ye)(o.accept).join(", ")} ${v("до")} ${u(je)(o.uploadLimit)}`), 1))
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"])) : N("", !0)
465
+ }, 8, ["modelValue", "src", "accept", "loading", "label", "upload-limit"])) : P("", !0)
435
466
  ]),
436
- U("firstName") ? (w(), C("div", ta, [
467
+ B("firstName") ? (w(), b("div", la, [
437
468
  f(u(O), {
438
- modelValue: l.firstName,
439
- "onUpdate:modelValue": t[2] || (t[2] = (a) => l.firstName = a),
469
+ modelValue: s.firstName,
470
+ "onUpdate:modelValue": a[2] || (a[2] = (t) => s.firstName = t),
440
471
  size: "large",
441
- label: v("Имя"),
472
+ label: g("Имя"),
442
473
  error: pe.value,
443
- onBlur: t[3] || (t[3] = (a) => p.firstName = !0),
444
- onInput: t[4] || (t[4] = (a) => A("firstName"))
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
- ])) : N("", !0),
448
- U("lastName") ? (w(), C("div", oa, [
478
+ ])) : P("", !0),
479
+ B("lastName") ? (w(), b("div", ia, [
449
480
  f(u(O), {
450
- modelValue: l.lastName,
451
- "onUpdate:modelValue": t[5] || (t[5] = (a) => l.lastName = a),
481
+ modelValue: s.lastName,
482
+ "onUpdate:modelValue": a[5] || (a[5] = (t) => s.lastName = t),
452
483
  size: "large",
453
- label: v("Фамилия"),
484
+ label: g("Фамилия"),
454
485
  error: ce.value,
455
- onBlur: t[6] || (t[6] = (a) => p.lastName = !0),
456
- onInput: t[7] || (t[7] = (a) => A("lastName"))
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
- ])) : N("", !0),
460
- U("email") ? (w(), C("div", na, [
490
+ ])) : P("", !0),
491
+ B("email") ? (w(), b("div", ua, [
461
492
  f(u(O), {
462
493
  modelValue: i.value,
463
- "onUpdate:modelValue": t[8] || (t[8] = (a) => i.value = a),
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: t[9] || (t[9] = (a) => p.email = !0),
472
- onInput: t[10] || (t[10] = (a) => A("email")),
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
- ])) : N("", !0),
477
- U("phone") ? (w(), C("div", ra, [
507
+ ])) : P("", !0),
508
+ B("phone") ? (w(), b("div", ma, [
478
509
  f(u(O), {
479
510
  modelValue: c.value,
480
- "onUpdate:modelValue": t[11] || (t[11] = (a) => c.value = a),
511
+ "onUpdate:modelValue": a[11] || (a[11] = (t) => c.value = t),
481
512
  size: "large",
482
513
  "text-size": "medium",
483
- label: v("Номер телефона"),
514
+ label: g("Номер телефона"),
484
515
  type: "tel",
485
516
  readonly: "",
486
517
  style: { cursor: "pointer" },
487
- error: ve.value && L.value,
488
- onBlur: t[12] || (t[12] = (a) => p.phone = !0),
489
- onInput: t[13] || (t[13] = (a) => A("phone")),
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
- ])) : N("", !0),
494
- $("div", la, [
495
- ge.value ? (w(), I(u(se), {
524
+ ])) : P("", !0),
525
+ $("div", da, [
526
+ ve.value ? (w(), S(u(le), {
496
527
  key: 0,
497
528
  color: "secondary",
498
- onClick: Ve
529
+ onClick: Ae
499
530
  }, {
500
531
  default: D(() => [
501
- q(F(v("Сменить пароль")), 1)
532
+ j(F(g("Сменить пароль")), 1)
502
533
  ]),
503
534
  _: 1
504
- })) : N("", !0),
505
- f(u(se), {
506
- disabled: !x.value,
507
- onClick: Ie
535
+ })) : P("", !0),
536
+ f(u(le), {
537
+ disabled: !V.value,
538
+ onClick: Ve
508
539
  }, {
509
540
  default: D(() => [
510
- q(F(v("Сохранить")), 1)
541
+ j(F(g("Сохранить")), 1)
511
542
  ]),
512
543
  _: 1
513
544
  }, 8, ["disabled"])
514
545
  ])
515
546
  ]),
516
- E.value ? (w(), I(le, {
547
+ E.value ? (w(), S(se, {
517
548
  key: 0,
518
549
  to: "body"
519
550
  }, [
520
- E.value ? (w(), C("div", sa, [
521
- f(u(Ge), {
551
+ E.value ? (w(), b("div", pa, [
552
+ f(u(je), {
522
553
  "circle-mode": !0,
523
554
  "model-value": o.imageContent,
524
- onClose: Be,
525
- onSave: t[14] || (t[14] = (a) => Ue(a)),
526
- "onUpdate:modelValue": t[15] || (t[15] = (a) => De(a))
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
- ])) : N("", !0)
529
- ])) : N("", !0),
530
- (w(), I(le, { to: "#toast-root" }, [
531
- $("div", ia, [
532
- f(Oe, { name: "list" }, {
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
- ze(f(u(_e), {
565
+ Ge(f(u(Ye), {
535
566
  class: "toast",
536
567
  color: Q.value,
537
568
  text: X.value,
538
- onClose: t[16] || (t[16] = (a) => S.value = !1)
569
+ onClose: a[16] || (a[16] = (t) => A.value = !1)
539
570
  }, null, 8, ["color", "text"]), [
540
- [Me, S.value]
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
- }), ma = (m, r) => {
551
- const n = m.__vccOpts || m;
552
- for (const [s, g] of r)
553
- n[s] = g;
554
- return n;
555
- }, da = /* @__PURE__ */ ma(ua, [["__scopeId", "data-v-acf50836"]]), wa = /* @__PURE__ */ Z({
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: r }) {
568
- const n = r, { openDialog: s } = H(), g = (d, p) => {
569
- s("email", { initialEmail: d, mode: p });
570
- }, v = (d, p) => {
571
- s("phone", { initialPhone: d, mode: p });
572
- }, B = () => {
573
- s("password");
574
- }, l = (d, p, y) => {
575
- n("on-update-jwt", d, p, y);
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(), C(ue, null, [
578
- f(u(Je)),
579
- f(da, {
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
- onOpenEmailDialog: g,
588
- onOpenPhoneDialog: v,
589
- onOpenPasswordDialog: B,
590
- onOnUpdateJwt: l
591
- }, null, 8, ["throttler-prefix", "provider", "request-url", "language", "fields", "access-token", "refresh-token"]),
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
- ga as B,
598
- va as C,
599
- ma as _,
600
- wa as a,
601
- ha as g,
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
- Ze as t
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-acf50836] .p-avatar__overlay{opacity:0!important;transition:opacity .2s ease}.avatar-wrapper[data-v-acf50836]:hover .p-avatar__overlay{opacity:1!important}.avatar-wrapper[data-v-acf50836] .wide-img .overlay{opacity:0!important;transition:opacity .2s ease}.avatar-wrapper[data-v-acf50836]: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-1pX0MPM8.js";
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-1pX0MPM8.js";
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")}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yourgoods/ui-smart",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",