@yourgoods/ui-smart 0.51.3 → 0.51.5

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 oe, ref as T, reactive as Z, watch as Y, computed as b, toRefs as ce, createElementBlock as I, openBlock as y, createElementVNode as x, createCommentVNode as D, toDisplayString as _, createVNode as $, unref as u, isRef as ee, withCtx as G, createTextVNode as ie, Fragment as Ae, createBlock as H, resolveDynamicComponent as he, onMounted as Fe } from "vue";
2
- import { _ as ve, c as ke, u as Re, a as ze, P as Me, b as We } from "./useRateLimitToast-BGNH4h6E.js";
3
- import { C as F, _ as He, B as qe, p as W, g as je } from "./index-BBWJGgsC.js";
2
+ import { _ as ve, c as ke, u as Re, a as ze, P as Me, b as We } from "./useRateLimitToast-Br_5gD9g.js";
3
+ import { C as F, _ as He, B as qe, p as W, g as je } from "./index-n84mlDg4.js";
4
4
  import { PInput as J, IconMailMd as pe, PButton as ne, IconEyeMd as Ve, IconEyeClosedMd as be, PDialog as Ge, PTopBar as Ye, IconCrossMd as Je } from "@profeat/ui-kit";
5
5
  const Ke = { class: "dialogDefaultContainerInsideContent" }, Qe = { class: "dialogDefaultContainerTextHint" }, Xe = {
6
6
  key: 0,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as ye, ref as a, reactive as _, computed as u, watch as Z, onMounted as Ce, createElementBlock as S, openBlock as g, Fragment as ge, createVNode as n, unref as o, withCtx as m, createCommentVNode as ee, createElementVNode as r, toDisplayString as V, createBlock as B, resolveDynamicComponent as $, createTextVNode as z } from "vue";
2
- import { C as I, p as D, g as Ve } from "./index-BBWJGgsC.js";
2
+ import { C as I, p as D, g as Ve } from "./index-n84mlDg4.js";
3
3
  import { PDialog as be, PInput as M, IconEyeMd as O, IconEyeClosedMd as U, PButton as F, PTopBar as Te, IconCrossMd as Ie, PTeleportContainer as xe } from "@profeat/ui-kit";
4
4
  function ke(b) {
5
5
  return { showPasswordRateLimitToast: (P) => {
@@ -1,7 +1,7 @@
1
1
  import { createElementBlock as S, openBlock as v, createElementVNode as H, defineComponent as he, reactive as ve, watch as _, ref as O, toRefs as Ce, computed as I, createCommentVNode as B, createVNode as b, toDisplayString as G, createBlock as J, createTextVNode as Z, unref as r, isRef as le, withCtx as X, onMounted as We, Fragment as je } from "vue";
2
- import { _ as we, c as Ne, a as He, u as Ge, P as Oe, b as Je } from "./useRateLimitToast-BGNH4h6E.js";
2
+ import { _ as we, c as Ne, a as He, u as Ge, P as Oe, b as Je } from "./useRateLimitToast-Br_5gD9g.js";
3
3
  import { IconTelegramSm as Pe, PInput as se, IconPhoneMd as Re, IconMailMd as Ke, PButton as ze, PDialog as Qe, PTopBar as Xe, IconCrossMd as Ye, PTeleportContainer as Ze } from "@profeat/ui-kit";
4
- import { C as j, t as De, p as te, g as Ae } from "./index-BBWJGgsC.js";
4
+ import { C as j, t as De, p as te, g as Ae } from "./index-n84mlDg4.js";
5
5
  const _e = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
7
  width: "12",
@@ -63,10 +63,10 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
63
63
  const z = (h) => {
64
64
  const y = h.target;
65
65
  let i = ((y == null ? void 0 : y.value) ?? "").replace(/\D/g, "");
66
- i.length < 4 && u("on-clear-code-error"), i.length > 4 && (i = i.slice(0, 4)), x.value = i, y && y.value !== i && (y.value = i), i.length === 4 && i !== p.value && (p.value = i, u("on-match-code", { phone: e.value, code: i }));
66
+ i.length < 4 && u("on-clear-code-error"), i.length > 4 && (i = i.slice(0, 4)), k.value = i, y && y.value !== i && (y.value = i), i.length === 4 && i !== p.value && (p.value = i, u("on-match-code", { phone: e.value, code: i }));
67
67
  }, Y = () => u("on-send-code-again", { phone: c.phoneModel }), K = () => {
68
68
  u("on-send-only-sms", { phone: c.phoneModel });
69
- }, { phoneModel: e, codeModel: x, touched: P } = Ce(c), C = I(() => P.value.phone && !e.value.trim() ? "Введите телефон" : E.phoneError), D = I(() => E.isNotMatchCode ? "Неверный код" : P.value.code ? x.value.trim() ? E.codeError ?? null : "Введите код" : "");
69
+ }, { phoneModel: e, codeModel: k, touched: P } = Ce(c), C = I(() => P.value.phone && !e.value.trim() ? "Введите телефон" : E.phoneError), D = I(() => E.isNotMatchCode ? "Неверный код" : P.value.code ? k.value.trim() ? E.codeError ?? null : "Введите код" : "");
70
70
  return (h, y) => (v(), S("div", tt, [
71
71
  H("div", ot, [
72
72
  H("div", nt, G(h.hintText), 1),
@@ -98,8 +98,8 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
98
98
  ])) : B("", !0),
99
99
  h.showCode ? (v(), S("div", st, [
100
100
  b(r(se), {
101
- modelValue: r(x),
102
- "onUpdate:modelValue": y[4] || (y[4] = (i) => le(x) ? x.value = i : null),
101
+ modelValue: r(k),
102
+ "onUpdate:modelValue": y[4] || (y[4] = (i) => le(k) ? k.value = i : null),
103
103
  size: "large",
104
104
  "text-size": "medium",
105
105
  label: "Код",
@@ -189,7 +189,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
189
189
  }, e = I(() => {
190
190
  const l = p.phoneModel.trim().replace(/[()\-\s]/g, "");
191
191
  return /^\+?\d{10,15}$/.test(l);
192
- }), x = I(() => !e.value || !!f.value), P = async () => {
192
+ }), k = I(() => !e.value || !!f.value), P = async () => {
193
193
  var t;
194
194
  try {
195
195
  if (z("phone"), !e.value) {
@@ -254,7 +254,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
254
254
  c.value ? B("", !0) : (v(), S("div", ht, [
255
255
  b(r(ze), {
256
256
  style: { width: "100%" },
257
- disabled: x.value,
257
+ disabled: k.value,
258
258
  onClick: P
259
259
  }, {
260
260
  default: X(() => l[5] || (l[5] = [
@@ -351,7 +351,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
351
351
  }, e = I(() => {
352
352
  const l = p.phoneModel.trim().replace(/[()\-\s]/g, "");
353
353
  return /^\+?\d{10,15}$/.test(l);
354
- }), x = I(() => !e.value || !!f.value), P = async () => {
354
+ }), k = I(() => !e.value || !!f.value), P = async () => {
355
355
  var t;
356
356
  try {
357
357
  if (z("phone"), !e.value) {
@@ -405,7 +405,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
405
405
  label: "Телефон",
406
406
  type: "tel",
407
407
  error: A.value,
408
- disabled: t.disableAddPhone && !c.value,
408
+ disabled: c.value,
409
409
  onBlur: l[1] || (l[1] = (s) => z("phone")),
410
410
  onInput: K
411
411
  }, null, 8, ["modelValue", "error", "disabled"]),
@@ -417,7 +417,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
417
417
  c.value ? B("", !0) : (v(), S("div", Tt, [
418
418
  b(r(ze), {
419
419
  style: { width: "100%" },
420
- disabled: x.value,
420
+ disabled: k.value,
421
421
  onClick: P
422
422
  }, {
423
423
  default: X(() => l[5] || (l[5] = [
@@ -463,7 +463,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
463
463
  ])) : B("", !0)
464
464
  ]));
465
465
  }
466
- }), kt = { class: "text-center w-full" }, xt = { class: "dialogTitle" }, Vt = {
466
+ }), xt = { class: "text-center w-full" }, kt = { class: "dialogTitle" }, Vt = {
467
467
  key: 0,
468
468
  class: "dialogDefaultContainer"
469
469
  }, $t = { key: 3 }, Bt = {
@@ -494,7 +494,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
494
494
  code: "",
495
495
  addPhone: "",
496
496
  addCode: ""
497
- }), x = O(j.OLD), P = O(null), C = O(!1), D = O(!1), h = O("tg"), y = I(() => h.value === "tg"), i = O(!1), { startTimer: L, remainingSeconds: ie, isAvailableForSendAgain: A, totalRateAttempts: Q, currentRateAttempt: t } = He(), { showRateLimitToast: l } = Je(c), { isEditFlow: s, getFlow: me } = Ge(O(u.mode)), re = I(() => A.value ? "Повторить" : `${ie.value}`), oe = O(ae), ue = I(() => oe.value === 0), Fe = (n) => new Promise((a) => setTimeout(a, n));
497
+ }), k = O(j.OLD), P = O(null), C = O(!1), D = O(!1), h = O("tg"), y = I(() => h.value === "tg"), i = O(!1), { startTimer: L, remainingSeconds: ie, isAvailableForSendAgain: A, totalRateAttempts: Q, currentRateAttempt: t } = He(), { showRateLimitToast: l } = Je(c), { isEditFlow: s, getFlow: me } = Ge(O(u.mode)), re = I(() => A.value ? "Повторить" : `${ie.value}`), oe = O(ae), ue = I(() => oe.value === 0), Fe = (n) => new Promise((a) => setTimeout(a, n));
498
498
  async function fe(n = "email") {
499
499
  var o;
500
500
  return (o = (await Ae("/users/profile/session/get-edit-session", { params: { field: n } })).data) == null ? void 0 : o.data;
@@ -505,12 +505,12 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
505
505
  field: n,
506
506
  oldValue: F(u.initialPhone)
507
507
  })).data) == null ? void 0 : $.data;
508
- return P.value = (o == null ? void 0 : o.sessionId) ?? null, x.value = (o == null ? void 0 : o.step) ?? j.OLD, e.oldPhone = (o == null ? void 0 : o.oldValue) ?? "", e.newPhone = (o == null ? void 0 : o.newValue) ?? "", o;
508
+ return P.value = (o == null ? void 0 : o.sessionId) ?? null, k.value = (o == null ? void 0 : o.step) ?? j.OLD, e.oldPhone = (o == null ? void 0 : o.oldValue) ?? "", e.newPhone = (o == null ? void 0 : o.newValue) ?? "", o;
509
509
  }
510
510
  async function Ue() {
511
511
  try {
512
512
  const n = await fe("phone");
513
- return P.value = n.sessionId, x.value = n.step, e.oldPhone = n.oldValue ?? "", n.sessionId ? n : await Te("phone");
513
+ return P.value = n.sessionId, k.value = n.step, e.oldPhone = n.oldValue ?? "", n.sessionId ? n : await Te("phone");
514
514
  } catch {
515
515
  return await Te("phone");
516
516
  }
@@ -561,8 +561,8 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
561
561
  if ((d === "tg" || d === "sms") && (h.value = d, d === "tg" && (i.value = !1)), (m == null ? void 0 : m.status) === 403 && ((N = m.data) != null && N.tooManyRequests)) {
562
562
  const M = (q = (R = m.data) == null ? void 0 : R.tooManyRequests) == null ? void 0 : q.type;
563
563
  h.value = M;
564
- const k = m.data.tooManyRequests;
565
- return k.restTimeSec > 0 ? (L(k.restTimeSec), Q.value = k.attempts.total, t.value = k.attempts.total - k.attempts.available, oe.value = k.attempts.available ?? ae) : A.value = !0, m;
564
+ const x = m.data.tooManyRequests;
565
+ return x.restTimeSec > 0 ? (L(x.restTimeSec), Q.value = x.attempts.total, t.value = x.attempts.total - x.attempts.available, oe.value = x.attempts.available ?? ae) : A.value = !0, m;
566
566
  }
567
567
  return m;
568
568
  } catch (g) {
@@ -581,27 +581,27 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
581
581
  C.value = !0;
582
582
  try {
583
583
  const M = await fe("phone");
584
- P.value = M.sessionId, x.value = M.step, e.oldPhone = M.oldValue ?? e.oldPhone, e.newPhone = M.newValue ?? e.newPhone;
585
- const k = await te("/users/profile/change/phone/match-code", {
584
+ P.value = M.sessionId, k.value = M.step, e.oldPhone = M.oldValue ?? e.oldPhone, e.newPhone = M.newValue ?? e.newPhone;
585
+ const x = await te("/users/profile/change/phone/match-code", {
586
586
  phone: a === j.NEW ? F(e.newPhone) : F(e.oldPhone),
587
587
  sessionId: P.value,
588
588
  code: n,
589
589
  step: a
590
- }), ne = ((o = k.data) == null ? void 0 : o.nextStep) ?? ((T = ($ = k.data) == null ? void 0 : $.data) == null ? void 0 : T.nextStep), pe = ((R = (N = k.data) == null ? void 0 : N.data) == null ? void 0 : R.rateLimit) ?? ((q = k.data) == null ? void 0 : q.rateLimit) ?? null;
591
- if (!(((W = k.data) == null ? void 0 : W.data.success) ?? ((w = k.data) == null ? void 0 : w.success))) {
590
+ }), ne = ((o = x.data) == null ? void 0 : o.nextStep) ?? ((T = ($ = x.data) == null ? void 0 : $.data) == null ? void 0 : T.nextStep), pe = ((R = (N = x.data) == null ? void 0 : N.data) == null ? void 0 : R.rateLimit) ?? ((q = x.data) == null ? void 0 : q.rateLimit) ?? null;
591
+ if (!(((W = x.data) == null ? void 0 : W.data.success) ?? ((w = x.data) == null ? void 0 : w.success))) {
592
592
  l(pe), D.value = !0;
593
593
  return;
594
594
  }
595
- if (!ne) return k;
596
- if (x.value = ne, ne === j.NEW) {
595
+ if (!ne) return x;
596
+ if (k.value = ne, ne === j.NEW) {
597
597
  const Ie = await fe("phone");
598
598
  e.oldPhone = Ie.oldValue ?? e.oldPhone, e.newPhone = Ie.newValue ?? e.newPhone, e.code = "";
599
599
  }
600
- return ne === j.COMPLETED && (e.code = "", c("update-phone-field", e.addPhone), c("submit-phone", { phone: e.oldPhone, code: n }), c("on-toast", { color: "success", text: "Номер телефона изменён" }), c("on-update-jwt", "phone", "edit", e.newPhone), P.value = null, c("close")), k;
600
+ return ne === j.COMPLETED && (e.code = "", c("update-phone-field", e.addPhone), c("submit-phone", { phone: e.oldPhone, code: n }), c("on-toast", { color: "success", text: "Номер телефона изменён" }), c("on-update-jwt", "phone", "edit", e.newPhone), P.value = null, c("close")), x;
601
601
  } catch (M) {
602
- const k = (m = (g = M == null ? void 0 : M.response) == null ? void 0 : g.data) == null ? void 0 : m.rateLimit;
603
- if (((d = M == null ? void 0 : M.response) == null ? void 0 : d.status) === 429 && k) {
604
- l(k), D.value = !0;
602
+ const x = (m = (g = M == null ? void 0 : M.response) == null ? void 0 : g.data) == null ? void 0 : m.rateLimit;
603
+ if (((d = M == null ? void 0 : M.response) == null ? void 0 : d.status) === 429 && x) {
604
+ l(x), D.value = !0;
605
605
  return;
606
606
  }
607
607
  throw M;
@@ -609,9 +609,9 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
609
609
  C.value = !1;
610
610
  }
611
611
  }, be = ({ code: n }) => Me(n, j.OLD);
612
- function ke(n) {
612
+ function xe(n) {
613
613
  }
614
- const xe = ({ code: n }) => Me(n, j.NEW);
614
+ const ke = ({ code: n }) => Me(n, j.NEW);
615
615
  function Ve(n) {
616
616
  }
617
617
  const ce = () => {
@@ -644,7 +644,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
644
644
  async function qe() {
645
645
  try {
646
646
  const n = await $e("phone");
647
- P.value = n.sessionId, x.value = n.step, e.addPhone = n.newValue ?? "", n.sessionId || await Be({ field: "phone", value: e.addPhone });
647
+ P.value = n.sessionId, k.value = n.step, e.addPhone = n.newValue ?? "", n.sessionId || await Be({ field: "phone", value: e.addPhone });
648
648
  } catch {
649
649
  await Be({ field: "phone", value: e.addPhone });
650
650
  }
@@ -705,9 +705,9 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
705
705
  phone: F(e.addPhone),
706
706
  sessionId: P.value,
707
707
  code: n
708
- }), M = ((a = d.data) == null ? void 0 : a.nextStep) ?? (($ = (o = d.data) == null ? void 0 : o.data) == null ? void 0 : $.nextStep), k = ((N = (T = d.data) == null ? void 0 : T.data) == null ? void 0 : N.rateLimit) ?? ((R = d.data) == null ? void 0 : R.rateLimit) ?? null;
708
+ }), M = ((a = d.data) == null ? void 0 : a.nextStep) ?? (($ = (o = d.data) == null ? void 0 : o.data) == null ? void 0 : $.nextStep), x = ((N = (T = d.data) == null ? void 0 : T.data) == null ? void 0 : N.rateLimit) ?? ((R = d.data) == null ? void 0 : R.rateLimit) ?? null;
709
709
  if (!(((q = d.data) == null ? void 0 : q.data.success) ?? ((W = d.data) == null ? void 0 : W.success))) {
710
- l(k), D.value = !0;
710
+ l(x), D.value = !0;
711
711
  return;
712
712
  }
713
713
  return M && M === j.COMPLETED && (e.code = "", c("update-phone-field", e.addPhone), c("submit-phone", { phone: e.addPhone, code: n }), c("on-update-jwt", "phone", "bind", e.addPhone), c("on-toast", { color: "success", text: "Номер телефона успешно привязан к аккаунту" }), P.value = null, c("close")), d;
@@ -734,7 +734,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
734
734
  }), V({
735
735
  localVisible: f,
736
736
  form: e,
737
- currentStep: x,
737
+ currentStep: k,
738
738
  loading: C,
739
739
  rateLimitText: re,
740
740
  isAvailable: ue,
@@ -744,8 +744,8 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
744
744
  sendContactCode: ee,
745
745
  sendBindContactCode: ge,
746
746
  handleOldCodeSuccess: be,
747
- handleOldCodeError: ke,
748
- handleNewCodeSuccess: xe,
747
+ handleOldCodeError: xe,
748
+ handleNewCodeSuccess: ke,
749
749
  handleNewCodeError: Ve,
750
750
  matchBindCode: Ee,
751
751
  matchBindCodeError: Le
@@ -762,7 +762,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
762
762
  "onClick:outside": ce
763
763
  }, {
764
764
  header: X(() => [
765
- H("div", kt, [
765
+ H("div", xt, [
766
766
  b(r(Xe), {
767
767
  "slot-left": !1,
768
768
  size: "small",
@@ -770,7 +770,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
770
770
  "no-padding": !1
771
771
  }, {
772
772
  title: X(() => [
773
- H("span", xt, G(r(s) ? Y.value : "Добавление номера телефона"), 1)
773
+ H("span", kt, G(r(s) ? Y.value : "Добавление номера телефона"), 1)
774
774
  ]),
775
775
  "right-button": X(() => [
776
776
  b(r(Ye), {
@@ -785,7 +785,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
785
785
  default: X(() => [
786
786
  r(s) ? (v(), S("div", Vt, [
787
787
  C.value ? (v(), J(Oe, { key: 0 })) : B("", !0),
788
- x.value === r(j).OLD ? (v(), J(dt, {
788
+ k.value === r(j).OLD ? (v(), J(dt, {
789
789
  key: 1,
790
790
  phone: e.oldPhone,
791
791
  "onUpdate:phone": a[0] || (a[0] = (o) => e.oldPhone = o),
@@ -801,8 +801,8 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
801
801
  onOnSendCodeAgain: a[3] || (a[3] = (o) => ee({ value: e.oldPhone, isOnlySms: !y.value && i.value })),
802
802
  onOnSendOnlySms: ye,
803
803
  onOnMatchCode: be,
804
- onOnMatchCodeError: ke
805
- }, null, 8, ["phone", "code", "rate-limit-text", "is-final-limit", "is-not-match-code", "loading", "is-tg", "product"])) : x.value === r(j).NEW ? (v(), J(ft, {
804
+ onOnMatchCodeError: xe
805
+ }, null, 8, ["phone", "code", "rate-limit-text", "is-final-limit", "is-not-match-code", "loading", "is-tg", "product"])) : k.value === r(j).NEW ? (v(), J(ft, {
806
806
  key: 2,
807
807
  phone: e.newPhone,
808
808
  "onUpdate:phone": a[4] || (a[4] = (o) => e.newPhone = o),
@@ -820,10 +820,10 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
820
820
  onOnSendCode: a[7] || (a[7] = (o) => ee({ value: e.newPhone })),
821
821
  onOnSendCodeAgain: a[8] || (a[8] = (o) => ee({ value: e.newPhone, isOnlySms: !y.value && i.value })),
822
822
  onOnSendOnlySms: ye,
823
- onOnMatchCode: xe,
823
+ onOnMatchCode: ke,
824
824
  onOnMatchCodeError: Ve,
825
825
  onOnClearCodeError: a[9] || (a[9] = (o) => D.value = !1)
826
- }, null, 8, ["phone", "oldPhone", "code", "hint-text", "rate-limit-text", "is-final-limit", "is-not-match-code", "loading", "is-tg", "product"])) : x.value === r(j).COMPLETED ? (v(), S("div", $t, [
826
+ }, null, 8, ["phone", "oldPhone", "code", "hint-text", "rate-limit-text", "is-final-limit", "is-not-match-code", "loading", "is-tg", "product"])) : k.value === r(j).COMPLETED ? (v(), S("div", $t, [
827
827
  H("p", null, G(z("Телефон успешно изменен")), 1)
828
828
  ])) : B("", !0)
829
829
  ])) : (v(), S("div", Bt, [
@@ -217,9 +217,9 @@ const na = {
217
217
  emits: ["clean-input-errors", "on-update-jwt", "update-phone-field", "update-email-field", "on-password-error", "on-toast"],
218
218
  setup(l, { emit: r }) {
219
219
  const n = r, u = w(!0), { currentDialog: v, dialogPayload: c, closeDialog: U } = X(), i = {
220
- email: J(() => import("./ProfileEmailDialog-DYa19E4G.js")),
221
- phone: J(() => import("./ProfilePhoneDialog-B8e-6I7N.js")),
222
- password: J(() => import("./ProfilePasswordDialog-BeMoSpD_.js"))
220
+ email: J(() => import("./ProfileEmailDialog-DPwMSxCS.js")),
221
+ phone: J(() => import("./ProfilePhoneDialog-BxvyGPcB.js")),
222
+ password: J(() => import("./ProfilePasswordDialog-CabmT32e.js"))
223
223
  }, s = ({ email: h }) => {
224
224
  n("update-email-field", h);
225
225
  }, p = ({ phone: h }) => {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".avatar-input[data-v-74ba6f97] .p-input-file .overlay{visibility:hidden}.avatar-input[data-v-74ba6f97] .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-BBWJGgsC.js";
2
+ import { a as o } from "./index-n84mlDg4.js";
3
3
  export {
4
4
  o as PEditUserContact
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import { ref as n, defineComponent as L, createElementBlock as p, openBlock as v, normalizeClass as c, createVNode as w, unref as _, computed as T, renderSlot as d, createCommentVNode as h, createElementVNode as i, toDisplayString as y, createTextVNode as f } from "vue";
2
2
  import { PLoader as $ } from "@profeat/ui-kit";
3
- import { _ as b, g as C, p as R } from "./index-BBWJGgsC.js";
3
+ import { _ as b, g as C, p as R } from "./index-n84mlDg4.js";
4
4
  function g(s) {
5
5
  const e = Math.floor(s / 60), a = s % 60;
6
6
  return `${String(e).padStart(2, "0")}:${String(a).padStart(2, "0")}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yourgoods/ui-smart",
3
- "version": "0.51.3",
3
+ "version": "0.51.5",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",