@yourgoods/ui-smart 0.41.0 → 0.43.0

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