@yourgoods/ui-smart 0.20.0 → 0.22.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,11 +1,11 @@
1
- import { ref as h, shallowRef as xe, defineComponent as W, defineAsyncComponent as G, watch as se, createBlock as I, createCommentVNode as N, unref as u, openBlock as w, resolveDynamicComponent as Ae, mergeProps as $e, computed as b, reactive as _, onMounted as Se, createElementBlock as P, Fragment as ie, createVNode as f, createElementVNode as $, withCtx as D, toDisplayString as F, createTextVNode as J, Teleport as re, Transition as Oe, withDirectives as Me, vShow as Le } from "vue";
1
+ import { ref as h, shallowRef as xe, defineComponent as Z, defineAsyncComponent as J, watch as se, createBlock as I, createCommentVNode as N, unref as u, openBlock as w, resolveDynamicComponent as Ae, mergeProps as $e, computed as b, reactive as j, onMounted as Se, createElementBlock as P, Fragment as ie, createVNode as f, createElementVNode as $, withCtx as D, toDisplayString as F, createTextVNode as q, Teleport as re, Transition as Oe, withDirectives as Me, vShow as Le } from "vue";
2
2
  import ze from "axios";
3
3
  import { PInputFileUploader as Re, PInput as S, IconFilledEditMd as O, PButton as le, PImageCropper as Ge, PToast as _e, PTeleportContainer as ue, PToastContainer as Je } from "@profeat/ui-kit";
4
4
  function je(m, r = 2) {
5
5
  if (m === 0)
6
6
  return "0 B";
7
- const n = 1024, s = ["B", "KB", "MB", "GB", "TB", "PB", "EB"], v = Math.floor(Math.log(m) / Math.log(n));
8
- return `${Number.parseFloat((m / n ** v).toFixed(r))} ${s[v]}`;
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]}`;
9
9
  }
10
10
  const qe = {
11
11
  "image/jpeg": "JPEG",
@@ -21,16 +21,16 @@ function Ye(m) {
21
21
  return qe[r] || ((n = r.split("/")[1]) == null ? void 0 : n.toUpperCase());
22
22
  });
23
23
  }
24
- const ga = {
24
+ const va = {
25
25
  OLD: "old",
26
26
  NEW: "new",
27
27
  COMPLETED: "completed"
28
- }, va = {
28
+ }, ga = {
29
29
  VERIFY_EMAIL: "verify-email"
30
30
  };
31
- let q = null;
31
+ let W = null;
32
32
  function We(m, r) {
33
- q = ze.create({
33
+ W = ze.create({
34
34
  baseURL: r,
35
35
  headers: {
36
36
  Authorization: `Bearer ${m}`,
@@ -41,32 +41,32 @@ function We(m, r) {
41
41
  });
42
42
  }
43
43
  function me() {
44
- if (!q)
44
+ if (!W)
45
45
  throw new Error("Axios instance not initialized. Call initAxios(token, baseUrl) first.");
46
- return q;
46
+ return W;
47
47
  }
48
- async function Y(m, r, n) {
48
+ async function K(m, r, n) {
49
49
  return me().post(m, r, n);
50
50
  }
51
51
  async function ha(m, r) {
52
52
  return me().get(m, r);
53
53
  }
54
54
  async function Ke(m) {
55
- const r = await Y("/users/profile/me", m);
55
+ const r = await K("/users/profile/me", m);
56
56
  if (console.log("---res: ", r), r.status !== 200 && r.status !== 201 || !r.data)
57
57
  throw new Error("Ошибка при получении профиля пользователя");
58
58
  return r.data;
59
59
  }
60
- const M = h(null), j = xe(null);
61
- function K() {
60
+ const M = h(null), Y = xe(null);
61
+ function H() {
62
62
  return {
63
63
  currentDialog: M,
64
- dialogPayload: j,
65
- openDialog: (s, v) => {
66
- M.value = s, j.value = v ?? null;
64
+ dialogPayload: Y,
65
+ openDialog: (s, g) => {
66
+ M.value = s, Y.value = g ?? null;
67
67
  },
68
68
  closeDialog: () => {
69
- M.value = null, j.value = null;
69
+ M.value = null, Y.value = null;
70
70
  },
71
71
  isDialogOpen: (s) => M.value === s
72
72
  };
@@ -204,7 +204,7 @@ const Ze = {
204
204
  "Введите новый номер телефона": "Enter a new phone number",
205
205
  "Телефон успешно изменен": "Phone number successfully changed"
206
206
  }
207
- }, He = /* @__PURE__ */ W({
207
+ }, He = /* @__PURE__ */ Z({
208
208
  __name: "DialogManager",
209
209
  props: {
210
210
  language: {},
@@ -212,24 +212,24 @@ const Ze = {
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: r }) {
215
- const n = r, s = h(!0), { currentDialog: v, dialogPayload: g, closeDialog: U } = K(), l = {
216
- email: G(() => import("./ProfileEmailDialog-BRhT6nYd.js")),
217
- phone: G(() => import("./ProfilePhoneDialog-f-M1JdM_.js")),
218
- password: G(() => import("./ProfilePasswordDialog-1E-HIVXQ.js"))
215
+ const n = r, s = h(!0), { currentDialog: g, dialogPayload: v, closeDialog: U } = H(), l = {
216
+ email: J(() => import("./ProfileEmailDialog-AcPtImzL.js")),
217
+ phone: J(() => import("./ProfilePhoneDialog-BMasSboX.js")),
218
+ password: J(() => import("./ProfilePasswordDialog-CkWFh3ZH.js"))
219
219
  }, d = ({ email: y }) => {
220
220
  n("update-email-field", y);
221
221
  }, p = ({ phone: y }) => {
222
222
  n("update-phone-field", y);
223
223
  };
224
- return se(v, (y) => {
224
+ return se(g, (y) => {
225
225
  s.value = !!y;
226
- }), (y, i) => u(v) ? (w(), I(Ae(l[u(v)]), $e({
226
+ }), (y, i) => u(g) ? (w(), I(Ae(l[u(g)]), $e({
227
227
  key: 0,
228
228
  modelValue: s.value,
229
229
  "onUpdate:modelValue": i[0] || (i[0] = (c) => s.value = c),
230
230
  language: y.language,
231
231
  provider: y.provider
232
- }, u(g), {
232
+ }, u(v), {
233
233
  onClose: u(U),
234
234
  onCleanInputErrors: i[1] || (i[1] = (c) => n("clean-input-errors")),
235
235
  onOnUpdateJwt: i[2] || (i[2] = (c, E, o) => n("on-update-jwt", c, E, o)),
@@ -254,7 +254,7 @@ const Ze = {
254
254
  }, la = { class: "buttons-container" }, sa = {
255
255
  key: 0,
256
256
  class: "centered-overlay"
257
- }, ia = { class: "toastWrapper" }, ua = /* @__PURE__ */ W({
257
+ }, ia = { class: "toastWrapper" }, ua = /* @__PURE__ */ Z({
258
258
  __name: "PEditUserContact",
259
259
  props: {
260
260
  language: {},
@@ -267,7 +267,7 @@ const Ze = {
267
267
  },
268
268
  emits: ["open-email-dialog", "open-phone-dialog", "open-password-dialog", "on-update-jwt", "on-password-error", "update-tokens"],
269
269
  setup(m, { emit: r }) {
270
- const n = m, s = r, v = b(() => n.language ?? "ru"), g = (e) => Ze[v.value][e] || e, { openDialog: U } = K(), l = _({ 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 = _({
270
+ const n = m, s = r, g = b(() => n.language ?? "ru"), v = (e) => Ze[g.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({
271
271
  value: null,
272
272
  loading: !1,
273
273
  accept: ["image/png", "image/jpeg"],
@@ -275,17 +275,17 @@ const Ze = {
275
275
  // 10mb вроде
276
276
  imageBinary: null,
277
277
  imageContent: ""
278
- }), L = h(!1), V = h(!1), x = h(!1), Z = h(!0), H = h(!0), Q = h(void 0), X = h(""), de = b(() => ae(l.firstName, p.firstName)), pe = b(() => ae(l.lastName, p.lastName)), ce = b(() => p.email && !i.value.trim() ? "Введите e-mail" : ""), fe = b(() => p.phone && !c.value.trim() ? "Введите номер телефона" : ""), B = (e) => n.fields.some((a) => a.key === e), ee = (e) => e && e.trim() ? "edit" : "bind", z = () => setTimeout(() => {
278
+ }), L = h(!1), V = h(!1), x = h(!1), z = h(!0), R = h(!0), Q = h(void 0), X = h(""), de = b(() => ae(l.firstName, p.firstName)), pe = b(() => ae(l.lastName, p.lastName)), ce = b(() => p.email && !i.value.trim() ? "Введите e-mail" : ""), fe = b(() => p.phone && !c.value.trim() ? "Введите номер телефона" : ""), B = (e) => n.fields.some((a) => a.key === e), ee = (e) => e && e.trim() ? "edit" : "bind", G = () => setTimeout(() => {
279
279
  var e;
280
280
  return (e = document.activeElement) == null ? void 0 : e.blur();
281
- }, 0), ge = b(() => !!(i.value && i.value.trim() !== "")), ve = b(() => o.imageContent ? g("Загрузить другое фото") : g("Загрузить фото")), ae = (e, a) => {
281
+ }, 0), ve = b(() => !!(i.value && i.value.trim() !== "")), ge = b(() => o.imageContent ? v("Загрузить другое фото") : v("Загрузить фото")), ae = (e, a) => {
282
282
  if (!a) return "";
283
283
  const t = e.trim();
284
284
  return t ? t.length < 2 ? "Поле должно содержать минимум 2 символа" : "" : "Введите значение";
285
285
  }, he = (e) => U("email", { mode: e ? "edit" : "bind", initialEmail: e }), we = () => {
286
- z(), s("open-email-dialog", i.value, ee(i.value)), he(i.value);
286
+ G(), p.email = !1, R.value = !1, s("open-email-dialog", i.value, ee(i.value)), he(i.value);
287
287
  }, ye = () => {
288
- z(), s("open-phone-dialog", c.value, ee(c.value));
288
+ G(), p.phone = !1, z.value = !1, s("open-phone-dialog", c.value, ee(c.value));
289
289
  }, Ee = async (e, a, t) => {
290
290
  e === "email" && t && (i.value = t), e === "phone" && t && (c.value = t), s("on-update-jwt");
291
291
  }, Ne = (e) => {
@@ -295,8 +295,8 @@ const Ze = {
295
295
  }, Ce = (e, a) => {
296
296
  x.value = !0, s("on-password-error", e, a);
297
297
  }, be = () => {
298
- Z.value = !1, H.value = !1;
299
- }, R = (e) => {
298
+ z.value = !1, R.value = !1;
299
+ }, _ = (e) => {
300
300
  x.value = !0, Q.value = e.color ?? "", X.value = e.text ?? "";
301
301
  }, A = (e) => {
302
302
  if (p[e] = !0, e === "firstName" || e === "lastName") {
@@ -324,7 +324,7 @@ const Ze = {
324
324
  try {
325
325
  o.loading = !0;
326
326
  const t = new FormData();
327
- t.append("file", a), await Y(`/users/profile/avatar/${y.value}`, t, { headers: { "Content-Type": void 0 } });
327
+ t.append("file", a), await K(`/users/profile/avatar/${y.value}`, t, { headers: { "Content-Type": void 0 } });
328
328
  } catch (t) {
329
329
  console.error(t);
330
330
  } finally {
@@ -342,7 +342,7 @@ const Ze = {
342
342
  if (a)
343
343
  try {
344
344
  oe.value = !0;
345
- const C = (k = (await Y("/users/profile/update-name", { [e]: a })).data) == null ? void 0 : k.data;
345
+ const C = (k = (await K("/users/profile/update-name", { [e]: a })).data) == null ? void 0 : k.data;
346
346
  C != null && C.user && (l.firstName = C.user.firstName ?? l.firstName, l.lastName = C.user.lastName ?? l.lastName, d.value = {
347
347
  firstName: l.firstName,
348
348
  lastName: l.lastName
@@ -377,15 +377,15 @@ const Ze = {
377
377
  const Ie = async () => {
378
378
  if (V.value)
379
379
  try {
380
- await Promise.all([ne("firstName"), ne("lastName")]), V.value = !1, s("on-update-jwt"), R({ color: "success", text: "Изменения сохранены" });
380
+ await Promise.all([ne("firstName"), ne("lastName")]), V.value = !1, s("on-update-jwt"), _({ color: "success", text: "Изменения сохранены" });
381
381
  } catch (e) {
382
- console.error(e), R({
382
+ console.error(e), _({
383
383
  color: "error",
384
- text: g("Не удалось сохранить изменения. Попробуйте позже")
384
+ text: v("Не удалось сохранить изменения. Попробуйте позже")
385
385
  });
386
386
  }
387
387
  }, Ve = () => {
388
- z(), s("open-password-dialog");
388
+ G(), s("open-password-dialog");
389
389
  };
390
390
  return Se(async () => {
391
391
  if (!n.accessToken) throw new Error("Access token не передан в props");
@@ -393,14 +393,14 @@ const Ze = {
393
393
  We(n.accessToken, n.requestUrl), await Fe();
394
394
  }), (e, a) => (w(), P(ie, null, [
395
395
  f(He, {
396
- language: v.value,
396
+ language: g.value,
397
397
  provider: e.provider,
398
398
  onCleanInputErrors: be,
399
399
  onOnUpdateJwt: Ee,
400
400
  onUpdatePhoneField: Ne,
401
401
  onUpdateEmailField: Pe,
402
402
  onOnPasswordError: Ce,
403
- onOnToast: R
403
+ onOnToast: _
404
404
  }, null, 8, ["language", "provider"]),
405
405
  $("div", Qe, [
406
406
  $("div", Xe, [
@@ -415,15 +415,15 @@ const Ze = {
415
415
  src: o.imageContent,
416
416
  accept: o.accept,
417
417
  loading: o.loading,
418
- label: g("Загрузить фото"),
418
+ label: v("Загрузить фото"),
419
419
  "upload-limit": o.uploadLimit,
420
420
  "onChange:error": Te
421
421
  }, {
422
422
  afterLoadLabel: D(() => [
423
- J(F(ve.value), 1)
423
+ q(F(ge.value), 1)
424
424
  ]),
425
425
  subtext: D(() => [
426
- L.value ? (w(), P("span", ea, F("Размер фото слишком большой. Загрузите JPEG, PNG до 10 MB"))) : (w(), P("span", aa, F(`${g("Формат")} ${u(Ye)(o.accept).join(", ")} ${g("до")} ${u(je)(o.uploadLimit)}`), 1))
426
+ L.value ? (w(), P("span", ea, F("Размер фото слишком большой. Загрузите JPEG, PNG до 10 MB"))) : (w(), P("span", aa, F(`${v("Формат")} ${u(Ye)(o.accept).join(", ")} ${v("до")} ${u(je)(o.uploadLimit)}`), 1))
427
427
  ]),
428
428
  _: 1
429
429
  }, 8, ["modelValue", "src", "accept", "loading", "label", "upload-limit"])) : N("", !0)
@@ -433,7 +433,7 @@ const Ze = {
433
433
  modelValue: l.firstName,
434
434
  "onUpdate:modelValue": a[2] || (a[2] = (t) => l.firstName = t),
435
435
  size: "large",
436
- label: g("Имя"),
436
+ label: v("Имя"),
437
437
  error: de.value,
438
438
  onBlur: a[3] || (a[3] = (t) => p.firstName = !0),
439
439
  onInput: a[4] || (a[4] = (t) => A("firstName"))
@@ -445,7 +445,7 @@ const Ze = {
445
445
  modelValue: l.lastName,
446
446
  "onUpdate:modelValue": a[5] || (a[5] = (t) => l.lastName = t),
447
447
  size: "large",
448
- label: g("Фамилия"),
448
+ label: v("Фамилия"),
449
449
  error: pe.value,
450
450
  onBlur: a[6] || (a[6] = (t) => p.lastName = !0),
451
451
  onInput: a[7] || (a[7] = (t) => A("lastName"))
@@ -462,7 +462,7 @@ const Ze = {
462
462
  type: "email",
463
463
  readonly: "",
464
464
  style: { cursor: "pointer" },
465
- error: ce.value && H.value,
465
+ error: ce.value && R.value,
466
466
  onBlur: a[9] || (a[9] = (t) => p.email = !0),
467
467
  onInput: a[10] || (a[10] = (t) => A("email")),
468
468
  onClick: we
@@ -475,11 +475,11 @@ const Ze = {
475
475
  "onUpdate:modelValue": a[11] || (a[11] = (t) => c.value = t),
476
476
  size: "large",
477
477
  "text-size": "medium",
478
- label: g("Номер телефона"),
478
+ label: v("Номер телефона"),
479
479
  type: "tel",
480
480
  readonly: "",
481
481
  style: { cursor: "pointer" },
482
- error: fe.value && Z.value,
482
+ error: fe.value && z.value,
483
483
  onBlur: a[12] || (a[12] = (t) => p.phone = !0),
484
484
  onInput: a[13] || (a[13] = (t) => A("phone")),
485
485
  onClick: ye
@@ -487,13 +487,13 @@ const Ze = {
487
487
  f(u(O), { class: "icon-locked" })
488
488
  ])) : N("", !0),
489
489
  $("div", la, [
490
- ge.value ? (w(), I(u(le), {
490
+ ve.value ? (w(), I(u(le), {
491
491
  key: 0,
492
492
  color: "secondary",
493
493
  onClick: Ve
494
494
  }, {
495
495
  default: D(() => [
496
- J(F(g("Сменить пароль")), 1)
496
+ q(F(v("Сменить пароль")), 1)
497
497
  ]),
498
498
  _: 1
499
499
  })) : N("", !0),
@@ -502,7 +502,7 @@ const Ze = {
502
502
  onClick: Ie
503
503
  }, {
504
504
  default: D(() => [
505
- J(F(g("Сохранить")), 1)
505
+ q(F(v("Сохранить")), 1)
506
506
  ]),
507
507
  _: 1
508
508
  }, 8, ["disabled"])
@@ -544,10 +544,10 @@ const Ze = {
544
544
  }
545
545
  }), ma = (m, r) => {
546
546
  const n = m.__vccOpts || m;
547
- for (const [s, v] of r)
548
- n[s] = v;
547
+ for (const [s, g] of r)
548
+ n[s] = g;
549
549
  return n;
550
- }, da = /* @__PURE__ */ ma(ua, [["__scopeId", "data-v-0fcb1c3e"]]), wa = /* @__PURE__ */ W({
550
+ }, da = /* @__PURE__ */ ma(ua, [["__scopeId", "data-v-c43c8b01"]]), wa = /* @__PURE__ */ Z({
551
551
  __name: "index",
552
552
  props: {
553
553
  throttlerPrefix: {},
@@ -560,9 +560,9 @@ const Ze = {
560
560
  },
561
561
  emits: ["on-update-jwt", "update-tokens"],
562
562
  setup(m, { emit: r }) {
563
- const n = r, { openDialog: s } = K(), v = (d, p) => {
563
+ const n = r, { openDialog: s } = H(), g = (d, p) => {
564
564
  s("email", { initialEmail: d, mode: p });
565
- }, g = (d, p) => {
565
+ }, v = (d, p) => {
566
566
  s("phone", { initialPhone: d, mode: p });
567
567
  }, U = () => {
568
568
  s("password");
@@ -579,8 +579,8 @@ const Ze = {
579
579
  fields: d.fields,
580
580
  "access-token": d.accessToken,
581
581
  "refresh-token": d.refreshToken,
582
- onOpenEmailDialog: v,
583
- onOpenPhoneDialog: g,
582
+ onOpenEmailDialog: g,
583
+ onOpenPhoneDialog: v,
584
584
  onOpenPasswordDialog: U,
585
585
  onOnUpdateJwt: l
586
586
  }, null, 8, ["throttler-prefix", "provider", "request-url", "language", "fields", "access-token", "refresh-token"]),
@@ -589,11 +589,11 @@ const Ze = {
589
589
  }
590
590
  });
591
591
  export {
592
- va as B,
593
- ga as C,
592
+ ga as B,
593
+ va as C,
594
594
  ma as _,
595
595
  wa as a,
596
596
  ha as g,
597
- Y as p,
597
+ K as p,
598
598
  Ze as t
599
599
  };
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-wrapper[data-v-0fcb1c3e] .p-avatar__overlay{opacity:0!important;transition:opacity .2s ease}.avatar-wrapper[data-v-0fcb1c3e]:hover .p-avatar__overlay{opacity:1!important}.avatar-wrapper[data-v-0fcb1c3e] .wide-img .overlay{opacity:0!important;transition:opacity .2s ease}.avatar-wrapper[data-v-0fcb1c3e]: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(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import { a as o } from "./index-Rt4lWoBK.js";
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".avatar-wrapper[data-v-c43c8b01] .p-avatar__overlay{opacity:0!important;transition:opacity .2s ease}.avatar-wrapper[data-v-c43c8b01]:hover .p-avatar__overlay{opacity:1!important}.avatar-wrapper[data-v-c43c8b01] .wide-img .overlay{opacity:0!important;transition:opacity .2s ease}.avatar-wrapper[data-v-c43c8b01]: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-BrTdCrUe.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 m, 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-Rt4lWoBK.js";
3
+ import { _ as g, g as R, p as h } from "./index-BrTdCrUe.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")}`;
@@ -0,0 +1 @@
1
+ export declare const hasPhoneError: (lowerCaseError: string) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yourgoods/ui-smart",
3
- "version": "0.20.0",
3
+ "version": "0.22.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",