@yourgoods/ui-smart 0.35.0 → 0.36.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-CH8-QLGT.js";
3
- import { C as A, _ as ze, B as We, p as W, g as He } from "./index-DSUzLuO8.js";
2
+ import { T as ue, c as Ve, u as Ae, a as Fe, P as ye, b as Re } from "./useRateLimitToast-Brvc4aDT.js";
3
+ import { C as A, _ as ze, B as We, p as W, g as He } from "./index-D4v1HYhf.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-DSUzLuO8.js";
2
+ import { C as I, p as D, g as Ve } from "./index-D4v1HYhf.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-CH8-QLGT.js";
2
+ import { T as ge, c as Le, a as We, u as je, P as Ee, b as He } from "./useRateLimitToast-Brvc4aDT.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-DSUzLuO8.js";
4
+ import { C as j, t as Ie, p as ee, g as Oe } from "./index-D4v1HYhf.js";
5
5
  const Ye = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
7
  width: "12",
@@ -1,11 +1,11 @@
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";
1
+ import { ref as h, shallowRef as Oe, defineComponent as Z, defineAsyncComponent as q, 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 J, onMounted as Me, createElementBlock as b, Fragment as ue, createVNode as f, createElementVNode as j, withCtx as D, toDisplayString as F, createTextVNode as _, Teleport as le, Transition as Re, withDirectives as Ge, vShow as qe } from "vue";
2
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";
3
+ import { PInputFileUploader as je, PInput as $, IconFilledEditMd as O, PButton as se, PImageCropper as _e, PToast as Ye, PTeleportContainer as me, PToastContainer as We } from "@profeat/ui-kit";
4
4
  function Ke(m, n = 2) {
5
5
  if (m === 0)
6
6
  return "0 B";
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]}`;
7
+ const r = 1024, s = ["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))} ${s[v]}`;
9
9
  }
10
10
  const Ze = {
11
11
  "image/jpeg": "JPEG",
@@ -21,11 +21,11 @@ function He(m) {
21
21
  return Ze[n] || ((r = n.split("/")[1]) == null ? void 0 : r.toUpperCase());
22
22
  });
23
23
  }
24
- const Ea = {
24
+ const ya = {
25
25
  OLD: "old",
26
26
  NEW: "new",
27
27
  COMPLETED: "completed"
28
- }, Na = {
28
+ }, Ea = {
29
29
  VERIFY_EMAIL: "verify-email"
30
30
  };
31
31
  let W = null;
@@ -57,18 +57,18 @@ async function ea(m) {
57
57
  throw new Error("Ошибка при получении профиля пользователя");
58
58
  return n.data;
59
59
  }
60
- const L = h(null), Y = Oe(null);
60
+ const z = h(null), Y = Oe(null);
61
61
  function H() {
62
62
  return {
63
- currentDialog: L,
63
+ currentDialog: z,
64
64
  dialogPayload: Y,
65
- openDialog: (l, v) => {
66
- L.value = l, Y.value = v ?? null;
65
+ openDialog: (s, v) => {
66
+ z.value = s, Y.value = v ?? null;
67
67
  },
68
68
  closeDialog: () => {
69
- L.value = null, Y.value = null;
69
+ z.value = null, Y.value = null;
70
70
  },
71
- isDialogOpen: (l) => L.value === l
71
+ isDialogOpen: (s) => z.value === s
72
72
  };
73
73
  }
74
74
  const aa = {
@@ -212,21 +212,21 @@ const aa = {
212
212
  },
213
213
  emits: ["clean-input-errors", "on-update-jwt", "update-phone-field", "update-email-field", "on-password-error", "on-toast"],
214
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-D2y7qY90.js")),
217
- phone: J(() => import("./ProfilePhoneDialog-Ch-qWb9F.js")),
218
- password: J(() => import("./ProfilePasswordDialog-B8CwDh0b.js"))
215
+ const r = n, s = h(!0), { currentDialog: v, dialogPayload: g, closeDialog: U } = H(), l = {
216
+ email: q(() => import("./ProfileEmailDialog-Boq0HJWN.js")),
217
+ phone: q(() => import("./ProfilePhoneDialog-B-blSlFk.js")),
218
+ password: q(() => import("./ProfilePasswordDialog-wYSrqxOl.js"))
219
219
  }, d = ({ email: y }) => {
220
220
  r("update-email-field", y);
221
221
  }, p = ({ phone: y }) => {
222
222
  r("update-phone-field", y);
223
223
  };
224
224
  return ie(v, (y) => {
225
- l.value = !!y;
226
- }), (y, i) => u(v) ? (w(), S(ze(s[u(v)]), Le({
225
+ s.value = !!y;
226
+ }), (y, i) => u(v) ? (w(), S(ze(l[u(v)]), Le({
227
227
  key: 0,
228
- modelValue: l.value,
229
- "onUpdate:modelValue": i[0] || (i[0] = (c) => l.value = c),
228
+ modelValue: s.value,
229
+ "onUpdate:modelValue": i[0] || (i[0] = (c) => s.value = c),
230
230
  language: y.language,
231
231
  provider: y.provider
232
232
  }, u(g), {
@@ -239,22 +239,22 @@ const aa = {
239
239
  onOnToast: i[4] || (i[4] = (c) => r("on-toast", c))
240
240
  }), null, 16, ["modelValue", "language", "provider", "onClose"])) : P("", !0);
241
241
  }
242
- }), oa = { class: "base-container" }, ra = { class: "avatar-wrapper" }, na = { key: 0 }, sa = { key: 1 }, la = {
243
- key: 0,
244
- class: "input-wrapper"
245
- }, ia = {
242
+ }), oa = { class: "base-container" }, ra = { key: 0 }, na = { key: 1 }, la = {
246
243
  key: 1,
247
244
  class: "input-wrapper"
248
- }, ua = {
245
+ }, sa = {
249
246
  key: 2,
250
247
  class: "input-wrapper"
251
- }, ma = {
248
+ }, ia = {
252
249
  key: 3,
253
250
  class: "input-wrapper"
254
- }, da = { class: "buttons-container" }, pa = {
251
+ }, ua = {
252
+ key: 4,
253
+ class: "input-wrapper"
254
+ }, ma = { class: "buttons-container" }, da = {
255
255
  key: 0,
256
256
  class: "centered-overlay"
257
- }, ca = { class: "toastWrapper" }, fa = /* @__PURE__ */ Z({
257
+ }, pa = { class: "toastWrapper" }, ca = /* @__PURE__ */ Z({
258
258
  __name: "PEditUserContact",
259
259
  props: {
260
260
  language: {},
@@ -268,7 +268,7 @@ const aa = {
268
268
  },
269
269
  emits: ["open-email-dialog", "open-phone-dialog", "open-password-dialog", "on-update-jwt", "on-password-error", "update-tokens"],
270
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
+ const r = m, s = n, v = T(() => r.language ?? "ru"), g = (e) => aa[v.value][e] || e, { openDialog: U } = 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({
272
272
  value: null,
273
273
  loading: !1,
274
274
  accept: ["image/png", "image/jpeg"],
@@ -276,7 +276,7 @@ const aa = {
276
276
  // 10mb вроде
277
277
  imageBinary: null,
278
278
  imageContent: ""
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
+ }), I = h(!1), V = h(!1), A = h(!1), L = h(!0), M = h(!0), Q = h(void 0), X = h(""), pe = T(() => ae(l.firstName, p.firstName)), ce = T(() => ae(l.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", R = () => setTimeout(() => {
280
280
  var e;
281
281
  return (e = document.activeElement) == null ? void 0 : e.blur();
282
282
  }, 0), ve = T(() => !!(i.value && i.value.trim() !== "")), he = T(() => o.imageContent ? g("Загрузить другое фото") : g("Загрузить фото")), ae = (e, a) => {
@@ -284,25 +284,25 @@ const aa = {
284
284
  const t = e.trim();
285
285
  return t ? t.length < 2 ? "Поле должно содержать минимум 2 символа" : "" : "Введите значение";
286
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
+ R(), p.email = !1, M.value = !1, s("open-email-dialog", i.value, ee(i.value)), we(i.value);
288
288
  }, Ee = () => {
289
- G(), p.phone = !1, M.value = !1, l("open-phone-dialog", c.value, ee(c.value));
289
+ R(), p.phone = !1, L.value = !1, s("open-phone-dialog", c.value, ee(c.value));
290
290
  }, Ne = async (e, a, t) => {
291
- e === "email" && t && (i.value = t), e === "phone" && t && (c.value = t), l("on-update-jwt");
291
+ e === "email" && t && (i.value = t), e === "phone" && t && (c.value = t), s("on-update-jwt");
292
292
  }, Ce = (e) => {
293
293
  c.value = e;
294
294
  }, Pe = (e) => {
295
295
  console.debug("emitUpdateEmailField, цепочка такая: profileEmailDialog -> DialogManager -> PEditUserContact", e), i.value = e;
296
296
  }, be = (e, a) => {
297
- A.value = !0, l("on-password-error", e, a);
297
+ A.value = !0, s("on-password-error", e, a);
298
298
  }, ke = () => {
299
- M.value = !1, R.value = !1;
300
- }, q = (e) => {
299
+ L.value = !1, M.value = !1;
300
+ }, G = (e) => {
301
301
  A.value = !0, Q.value = e.color ?? "", X.value = e.text ?? "";
302
302
  }, x = (e) => {
303
303
  if (p[e] = !0, e === "firstName" || e === "lastName") {
304
- const a = s[e];
305
- a.length > 40 && (s[e] = a.slice(0, 40), console.debug(`[Input Limit] Поле '${e}' достигло 40 символов. Ввод обрезан.`));
304
+ const a = l[e];
305
+ a.length > 40 && (l[e] = a.slice(0, 40), console.debug(`[Input Limit] Поле '${e}' достигло 40 символов. Ввод обрезан.`));
306
306
  }
307
307
  }, Te = (e) => {
308
308
  var t;
@@ -344,14 +344,14 @@ const aa = {
344
344
  ));
345
345
  }, re = h(!1), ne = async (e) => {
346
346
  var t, k;
347
- const a = (t = s[e]) == null ? void 0 : t.trim();
347
+ const a = (t = l[e]) == null ? void 0 : t.trim();
348
348
  if (a)
349
349
  try {
350
350
  re.value = !0;
351
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
352
+ N != null && N.user && (l.firstName = N.user.firstName ?? l.firstName, l.lastName = N.user.lastName ?? l.lastName, d.value = {
353
+ firstName: l.firstName,
354
+ lastName: l.lastName
355
355
  });
356
356
  } catch (C) {
357
357
  throw C;
@@ -377,7 +377,7 @@ const aa = {
377
377
  email: xe,
378
378
  phoneNumber: $e
379
379
  } = t;
380
- y.value = k ?? "", s.firstName = C ?? "", s.lastName = N ?? "", i.value = xe ?? "", c.value = $e ?? "", o.imageContent = await Se(), d.value = {
380
+ y.value = k ?? "", l.firstName = C ?? "", l.lastName = N ?? "", i.value = xe ?? "", c.value = $e ?? "", o.imageContent = await Se(), d.value = {
381
381
  firstName: C ?? "",
382
382
  lastName: N ?? ""
383
383
  };
@@ -403,7 +403,7 @@ const aa = {
403
403
  }
404
404
  }
405
405
  ie(
406
- () => [s.firstName, s.lastName],
406
+ () => [l.firstName, l.lastName],
407
407
  ([e, a]) => {
408
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
409
  V.value = C && N;
@@ -413,15 +413,15 @@ const aa = {
413
413
  const Ve = async () => {
414
414
  if (V.value)
415
415
  try {
416
- await Promise.all([ne("firstName"), ne("lastName")]), V.value = !1, l("on-update-jwt"), q({ color: "success", text: "Изменения сохранены" });
416
+ await Promise.all([ne("firstName"), ne("lastName")]), V.value = !1, s("on-update-jwt"), G({ color: "success", text: "Изменения сохранены" });
417
417
  } catch (e) {
418
- console.error(e), q({
418
+ console.error(e), G({
419
419
  color: "error",
420
420
  text: g("Не удалось сохранить изменения. Попробуйте позже")
421
421
  });
422
422
  }
423
423
  }, Ae = () => {
424
- G(), l("open-password-dialog");
424
+ R(), s("open-password-dialog");
425
425
  };
426
426
  return Me(async () => {
427
427
  if (!r.accessToken) throw new Error("Access token не передан в props");
@@ -436,60 +436,59 @@ const aa = {
436
436
  onUpdatePhoneField: Ce,
437
437
  onUpdateEmailField: Pe,
438
438
  onOnPasswordError: be,
439
- onOnToast: q
439
+ onOnToast: G
440
440
  }, null, 8, ["language", "provider"]),
441
- $("div", oa, [
442
- $("div", ra, [
443
- B("avatar") ? (w(), S(u(_e), {
444
- key: 0,
445
- modelValue: o.value,
446
- "onUpdate:modelValue": [
447
- a[0] || (a[0] = (t) => o.value = t),
448
- a[1] || (a[1] = (t) => Te(t))
449
- ],
450
- type: "img",
451
- src: o.imageContent,
452
- accept: o.accept,
453
- loading: o.loading,
454
- label: g("Загрузить фото"),
455
- "upload-limit": o.uploadLimit,
456
- "onChange:error": te
457
- }, {
458
- afterLoadLabel: D(() => [
459
- j(F(he.value), 1)
460
- ]),
461
- subtext: D(() => [
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))
463
- ]),
464
- _: 1
465
- }, 8, ["modelValue", "src", "accept", "loading", "label", "upload-limit"])) : P("", !0)
466
- ]),
441
+ j("div", oa, [
442
+ B("avatar") ? (w(), S(u(je), {
443
+ key: 0,
444
+ modelValue: o.value,
445
+ "onUpdate:modelValue": [
446
+ a[0] || (a[0] = (t) => o.value = t),
447
+ a[1] || (a[1] = (t) => Te(t))
448
+ ],
449
+ type: "img",
450
+ class: "avatar-input",
451
+ src: o.imageContent,
452
+ accept: o.accept,
453
+ loading: o.loading,
454
+ label: g("Загрузить фото"),
455
+ "upload-limit": o.uploadLimit,
456
+ "onChange:error": te
457
+ }, {
458
+ afterLoadLabel: D(() => [
459
+ _(F(he.value), 1)
460
+ ]),
461
+ subtext: D(() => [
462
+ I.value ? (w(), b("span", ra, F("Размер фото слишком большой. Загрузите JPEG, PNG до 10 MB"))) : (w(), b("span", na, F(`${g("Формат")} ${u(He)(o.accept).join(", ")} ${g("до")} ${u(Ke)(o.uploadLimit)}`), 1))
463
+ ]),
464
+ _: 1
465
+ }, 8, ["modelValue", "src", "accept", "loading", "label", "upload-limit"])) : P("", !0),
467
466
  B("firstName") ? (w(), b("div", la, [
468
- f(u(O), {
469
- modelValue: s.firstName,
470
- "onUpdate:modelValue": a[2] || (a[2] = (t) => s.firstName = t),
467
+ f(u($), {
468
+ modelValue: l.firstName,
469
+ "onUpdate:modelValue": a[2] || (a[2] = (t) => l.firstName = t),
471
470
  size: "large",
472
471
  label: g("Имя"),
473
472
  error: pe.value,
474
473
  onBlur: a[3] || (a[3] = (t) => p.firstName = !0),
475
474
  onInput: a[4] || (a[4] = (t) => x("firstName"))
476
475
  }, null, 8, ["modelValue", "label", "error"]),
477
- f(u(z), { class: "icon-locked" })
476
+ f(u(O), { class: "icon-locked" })
478
477
  ])) : P("", !0),
479
- B("lastName") ? (w(), b("div", ia, [
480
- f(u(O), {
481
- modelValue: s.lastName,
482
- "onUpdate:modelValue": a[5] || (a[5] = (t) => s.lastName = t),
478
+ B("lastName") ? (w(), b("div", sa, [
479
+ f(u($), {
480
+ modelValue: l.lastName,
481
+ "onUpdate:modelValue": a[5] || (a[5] = (t) => l.lastName = t),
483
482
  size: "large",
484
483
  label: g("Фамилия"),
485
484
  error: ce.value,
486
485
  onBlur: a[6] || (a[6] = (t) => p.lastName = !0),
487
486
  onInput: a[7] || (a[7] = (t) => x("lastName"))
488
487
  }, null, 8, ["modelValue", "label", "error"]),
489
- f(u(z), { class: "icon-locked" })
488
+ f(u(O), { class: "icon-locked" })
490
489
  ])) : P("", !0),
491
- B("email") ? (w(), b("div", ua, [
492
- f(u(O), {
490
+ B("email") ? (w(), b("div", ia, [
491
+ f(u($), {
493
492
  modelValue: i.value,
494
493
  "onUpdate:modelValue": a[8] || (a[8] = (t) => i.value = t),
495
494
  size: "large",
@@ -498,15 +497,15 @@ const aa = {
498
497
  type: "email",
499
498
  readonly: "",
500
499
  style: { cursor: "pointer" },
501
- error: fe.value && R.value,
500
+ error: fe.value && M.value,
502
501
  onBlur: a[9] || (a[9] = (t) => p.email = !0),
503
502
  onInput: a[10] || (a[10] = (t) => x("email")),
504
503
  onClick: ye
505
504
  }, null, 8, ["modelValue", "error"]),
506
- f(u(z), { class: "icon-locked" })
505
+ f(u(O), { class: "icon-locked" })
507
506
  ])) : P("", !0),
508
- B("phone") ? (w(), b("div", ma, [
509
- f(u(O), {
507
+ B("phone") ? (w(), b("div", ua, [
508
+ f(u($), {
510
509
  modelValue: c.value,
511
510
  "onUpdate:modelValue": a[11] || (a[11] = (t) => c.value = t),
512
511
  size: "large",
@@ -515,41 +514,41 @@ const aa = {
515
514
  type: "tel",
516
515
  readonly: "",
517
516
  style: { cursor: "pointer" },
518
- error: ge.value && M.value,
517
+ error: ge.value && L.value,
519
518
  onBlur: a[12] || (a[12] = (t) => p.phone = !0),
520
519
  onInput: a[13] || (a[13] = (t) => x("phone")),
521
520
  onClick: Ee
522
521
  }, null, 8, ["modelValue", "label", "error"]),
523
- f(u(z), { class: "icon-locked" })
522
+ f(u(O), { class: "icon-locked" })
524
523
  ])) : P("", !0),
525
- $("div", da, [
526
- ve.value ? (w(), S(u(le), {
524
+ j("div", ma, [
525
+ ve.value ? (w(), S(u(se), {
527
526
  key: 0,
528
527
  color: "secondary",
529
528
  onClick: Ae
530
529
  }, {
531
530
  default: D(() => [
532
- j(F(g("Сменить пароль")), 1)
531
+ _(F(g("Сменить пароль")), 1)
533
532
  ]),
534
533
  _: 1
535
534
  })) : P("", !0),
536
- f(u(le), {
535
+ f(u(se), {
537
536
  disabled: !V.value,
538
537
  onClick: Ve
539
538
  }, {
540
539
  default: D(() => [
541
- j(F(g("Сохранить")), 1)
540
+ _(F(g("Сохранить")), 1)
542
541
  ]),
543
542
  _: 1
544
543
  }, 8, ["disabled"])
545
544
  ])
546
545
  ]),
547
- E.value ? (w(), S(se, {
546
+ E.value ? (w(), S(le, {
548
547
  key: 0,
549
548
  to: "body"
550
549
  }, [
551
- E.value ? (w(), b("div", pa, [
552
- f(u(je), {
550
+ E.value ? (w(), b("div", da, [
551
+ f(u(_e), {
553
552
  "circle-mode": !0,
554
553
  "model-value": o.imageContent,
555
554
  onClose: Ue,
@@ -558,8 +557,8 @@ const aa = {
558
557
  }, null, 8, ["model-value"])
559
558
  ])) : P("", !0)
560
559
  ])) : P("", !0),
561
- (w(), S(se, { to: "#toast-root" }, [
562
- $("div", ca, [
560
+ (w(), S(le, { to: "#toast-root" }, [
561
+ j("div", pa, [
563
562
  f(Re, { name: "list" }, {
564
563
  default: D(() => [
565
564
  Ge(f(u(Ye), {
@@ -578,12 +577,12 @@ const aa = {
578
577
  f(u(me))
579
578
  ], 64));
580
579
  }
581
- }), ga = (m, n) => {
580
+ }), fa = (m, n) => {
582
581
  const r = m.__vccOpts || m;
583
- for (const [l, v] of n)
584
- r[l] = v;
582
+ for (const [s, v] of n)
583
+ r[s] = v;
585
584
  return r;
586
- }, va = /* @__PURE__ */ ga(fa, [["__scopeId", "data-v-29599d6b"]]), Ca = /* @__PURE__ */ Z({
585
+ }, ga = /* @__PURE__ */ fa(ca, [["__scopeId", "data-v-42e366ae"]]), Na = /* @__PURE__ */ Z({
587
586
  __name: "index",
588
587
  props: {
589
588
  throttlerPrefix: {},
@@ -597,18 +596,18 @@ const aa = {
597
596
  },
598
597
  emits: ["on-update-jwt", "update-tokens"],
599
598
  setup(m, { emit: n }) {
600
- const r = n, { openDialog: l } = H(), v = (d, p) => {
601
- l("email", { initialEmail: d, mode: p });
599
+ const r = n, { openDialog: s } = H(), v = (d, p) => {
600
+ s("email", { initialEmail: d, mode: p });
602
601
  }, g = (d, p) => {
603
- l("phone", { initialPhone: d, mode: p });
602
+ s("phone", { initialPhone: d, mode: p });
604
603
  }, U = () => {
605
- l("password");
606
- }, s = (d, p, y) => {
604
+ s("password");
605
+ }, l = (d, p, y) => {
607
606
  r("on-update-jwt", d, p, y);
608
607
  };
609
608
  return (d, p) => (w(), b(ue, null, [
610
609
  f(u(We)),
611
- f(va, {
610
+ f(ga, {
612
611
  "throttler-prefix": d.throttlerPrefix,
613
612
  provider: d.provider,
614
613
  "request-url": d.requestUrl,
@@ -620,17 +619,17 @@ const aa = {
620
619
  onOpenEmailDialog: v,
621
620
  onOpenPhoneDialog: g,
622
621
  onOpenPasswordDialog: U,
623
- onOnUpdateJwt: s
622
+ onOnUpdateJwt: l
624
623
  }, null, 8, ["throttler-prefix", "provider", "request-url", "language", "fields", "access-token", "refresh-token", "aws-storage-url"]),
625
624
  f(u(me))
626
625
  ], 64));
627
626
  }
628
627
  });
629
628
  export {
630
- Na as B,
631
- Ea as C,
632
- ga as _,
633
- Ca as a,
629
+ Ea as B,
630
+ ya as C,
631
+ fa as _,
632
+ Na as a,
634
633
  Xe as g,
635
634
  K as p,
636
635
  aa as t
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-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-DSUzLuO8.js";
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".avatar-input[data-v-42e366ae] .p-input-file .overlay{visibility:hidden}.avatar-input[data-v-42e366ae] .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-D4v1HYhf.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-DSUzLuO8.js";
3
+ import { _ as g, g as R, p as h } from "./index-D4v1HYhf.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.35.0",
3
+ "version": "0.36.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -32,7 +32,7 @@
32
32
  "@vue/tsconfig": "^0.5.1",
33
33
  "axios": "^1.13.2",
34
34
  "rollup-plugin-pure": "0.2.1",
35
- "sass-embedded": "^1.93.3",
35
+ "sass": "^1.70.0",
36
36
  "typescript": "^5.5.4",
37
37
  "unplugin-icons": "0.20.1",
38
38
  "unplugin-vue-components": "0.27.4",