@yourgoods/ui-smart 0.46.8 → 0.47.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,7 +1,7 @@
1
- import { defineComponent as ie, ref as x, reactive as Z, watch as Y, computed as V, toRefs as ce, createElementBlock as I, openBlock as w, createElementVNode as B, createCommentVNode as D, toDisplayString as ee, createVNode as $, unref as u, isRef as te, withCtx as G, createTextVNode as ne, Fragment as Ae, createBlock as _, resolveDynamicComponent as he, onMounted as Fe } from "vue";
2
- import { T as ve, c as $e, u as Re, a as ze, P as Te, b as We } from "./useRateLimitToast-gpF7vjbF.js";
3
- import { C as R, _ as He, B as _e, p as H, g as qe } from "./index-DgXqm9qe.js";
4
- import { PInput as J, IconMailMd as pe, PButton as se, IconEyeMd as Me, IconEyeClosedMd as be, PDialog as je, PTopBar as Ge, IconCrossMd as Ye } from "@profeat/ui-kit";
1
+ import { defineComponent as ie, ref as x, reactive as Z, watch as Y, computed as b, toRefs as ce, createElementBlock as I, openBlock as w, createElementVNode as B, createCommentVNode as D, toDisplayString as ee, createVNode as $, unref as u, isRef as te, withCtx as G, createTextVNode as ne, Fragment as Ae, createBlock as _, resolveDynamicComponent as he, onMounted as Fe } from "vue";
2
+ import { T as ve, c as $e, u as Re, a as ze, P as Te, b as We } from "./useRateLimitToast-DocdeOsw.js";
3
+ import { C as R, _ as He, B as _e, p as H, g as qe } from "./index-xXK11ev0.js";
4
+ import { PInput as J, IconMailMd as pe, PButton as se, IconEyeMd as Me, IconEyeClosedMd as Ve, PDialog as je, PTopBar as Ge, IconCrossMd as Ye } from "@profeat/ui-kit";
5
5
  const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dialogDefaultContainerTextHint" }, Qe = {
6
6
  key: 0,
7
7
  class: "input-wrapper"
@@ -45,7 +45,7 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
45
45
  n.touched[p] = !0;
46
46
  }, d = (p) => n.touched[p] = !1, r = () => {
47
47
  e.value = "", d("email");
48
- }, T = V(() => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n.emailModel.trim())), O = V(() => !T.value || !!e.value), L = async () => {
48
+ }, T = b(() => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n.emailModel.trim())), O = b(() => !T.value || !!e.value), L = async () => {
49
49
  var p;
50
50
  try {
51
51
  if (h("email"), !T.value) {
@@ -70,17 +70,17 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
70
70
  const C = (p) => {
71
71
  const a = p.target;
72
72
  let i = a.value.replace(/\D/g, "");
73
- i.length <= 4 && s("on-clear-code-error"), i.length > 4 && (i = i.slice(0, 4)), a.value = i, n.codeModel = i, i.length === 4 && i !== U && (U = i, s("on-match-code", { email: n.emailModel, code: i }));
73
+ i.length < 4 && s("on-clear-code-error"), i.length > 4 && (i = i.slice(0, 4)), a.value = i, n.codeModel = i, i.length === 4 && i !== U && (U = i, s("on-match-code", { email: n.emailModel, code: i }));
74
74
  }, c = () => {
75
75
  s("on-send-code-again", { email: n.emailModel });
76
- }, b = V(() => {
76
+ }, M = b(() => {
77
77
  if (e.value) return e.value;
78
78
  if (n.touched.email) {
79
79
  if (!n.emailModel.trim()) return "Введите e-mail";
80
80
  if (!T.value) return "Это не похоже на e-mail";
81
81
  }
82
82
  return v.emailError || "";
83
- }), M = V(() => v.isNotMatchCode ? "Неверный код" : n.touched.code ? A.value.trim() ? v.codeError ?? null : "Введите код" : ""), { emailModel: P, codeModel: A } = ce(n);
83
+ }), V = b(() => v.isNotMatchCode ? "Неверный код" : n.touched.code ? A.value.trim() ? v.codeError ?? null : "Введите код" : ""), { emailModel: P, codeModel: A } = ce(n);
84
84
  return (p, a) => {
85
85
  const i = ve;
86
86
  return w(), I("div", Je, [
@@ -88,18 +88,18 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
88
88
  p.showEmail ? (w(), I("div", Qe, [
89
89
  $(u(J), {
90
90
  modelValue: u(P),
91
- "onUpdate:modelValue": a[0] || (a[0] = (y) => te(P) ? P.value = y : null),
91
+ "onUpdate:modelValue": a[0] || (a[0] = (g) => te(P) ? P.value = g : null),
92
92
  size: "large",
93
93
  "text-size": "medium",
94
94
  label: "Почта",
95
95
  type: "email",
96
- error: b.value,
97
- onBlur: a[1] || (a[1] = (y) => h("email")),
96
+ error: M.value,
97
+ onBlur: a[1] || (a[1] = (g) => h("email")),
98
98
  onInput: r
99
99
  }, null, 8, ["modelValue", "error"]),
100
100
  $(u(pe), {
101
101
  class: "icon-locked",
102
- onClick: a[2] || (a[2] = (y) => p.$emit("edit", "email"))
102
+ onClick: a[2] || (a[2] = (g) => p.$emit("edit", "email"))
103
103
  })
104
104
  ])) : D("", !0),
105
105
  m.value ? D("", !0) : (w(), I("div", Xe, [
@@ -118,14 +118,14 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
118
118
  m.value ? (w(), I("div", Ze, [
119
119
  $(u(J), {
120
120
  modelValue: u(A),
121
- "onUpdate:modelValue": a[3] || (a[3] = (y) => te(A) ? A.value = y : null),
121
+ "onUpdate:modelValue": a[3] || (a[3] = (g) => te(A) ? A.value = g : null),
122
122
  size: "large",
123
123
  "text-size": "medium",
124
124
  label: "Код",
125
125
  type: "text",
126
- error: M.value,
126
+ error: V.value,
127
127
  onInput: C,
128
- onBlur: a[4] || (a[4] = (y) => h("code"))
128
+ onBlur: a[4] || (a[4] = (g) => h("code"))
129
129
  }, null, 8, ["modelValue", "error"])
130
130
  ])) : D("", !0),
131
131
  !p.loading && m.value ? (w(), I("div", et, [
@@ -142,7 +142,7 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
142
142
  }), at = { class: "dialogDefaultContainer" }, lt = { class: "dialogDefaultContainerInsideContent" }, ot = { class: "input-wrapper" }, it = { class: "input-wrapper" }, nt = { style: { width: "100%", display: "flex" } }, st = {
143
143
  key: 0,
144
144
  class: "dialogDefaultContainer"
145
- }, dt = { class: "dialogDefaultContainerInsideContent" }, rt = { style: { "margin-top": "12px" } }, Ve = 8, ut = /* @__PURE__ */ ie({
145
+ }, dt = { class: "dialogDefaultContainerInsideContent" }, rt = { style: { "margin-top": "12px" } }, be = 8, ut = /* @__PURE__ */ ie({
146
146
  __name: "AddNewPasswordContent",
147
147
  props: {
148
148
  modelValue: { type: Boolean },
@@ -155,11 +155,11 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
155
155
  const v = W, s = x(!1), m = x(""), e = x(""), n = Z({
156
156
  newPassword: !1,
157
157
  newPasswordConfirm: !1
158
- }), h = x(R.NEW), d = x(!1), r = x(!1), T = V(() => d.value ? "text" : "password"), O = V(() => r.value ? "text" : "password"), L = () => {
158
+ }), h = x(R.NEW), d = x(!1), r = x(!1), T = b(() => d.value ? "text" : "password"), O = b(() => r.value ? "text" : "password"), L = () => {
159
159
  d.value = !d.value;
160
160
  }, U = () => {
161
161
  r.value = !r.value;
162
- }, C = V(() => n.newPassword ? m.value.trim() ? m.value.trim().length < Ve ? `Пароль слишком короткий. Введите хотя бы ${Ve} символов` : "" : "Введите пароль" : ""), c = V(() => n.newPasswordConfirm ? e.value.trim() ? e.value !== m.value ? "Пароли не совпадают" : "" : "Повторите пароль" : ""), b = V(() => !!(C.value || c.value)), M = V(() => s.value || !m.value.trim() || !e.value.trim() ? !0 : b.value), P = () => {
162
+ }, C = b(() => n.newPassword ? m.value.trim() ? m.value.trim().length < be ? `Пароль слишком короткий. Введите хотя бы ${be} символов` : "" : "Введите пароль" : ""), c = b(() => n.newPasswordConfirm ? e.value.trim() ? e.value !== m.value ? "Пароли не совпадают" : "" : "Повторите пароль" : ""), M = b(() => !!(C.value || c.value)), V = b(() => s.value || !m.value.trim() || !e.value.trim() ? !0 : M.value), P = () => {
163
163
  v("update:modelValue", !1), v("close");
164
164
  }, A = async () => {
165
165
  v("update-user", m.value);
@@ -180,7 +180,7 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
180
180
  onBlur: a[1] || (a[1] = () => n.newPassword = !0),
181
181
  onInput: a[2] || (a[2] = () => n.newPassword = !0)
182
182
  }, null, 8, ["modelValue", "type", "error"]),
183
- (w(), _(he(d.value ? u(Me) : u(be)), {
183
+ (w(), _(he(d.value ? u(Me) : u(Ve)), {
184
184
  class: "icon-locked",
185
185
  onClick: L
186
186
  }))
@@ -197,7 +197,7 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
197
197
  onBlur: a[4] || (a[4] = () => n.newPasswordConfirm = !0),
198
198
  onInput: a[5] || (a[5] = () => n.newPasswordConfirm = !0)
199
199
  }, null, 8, ["modelValue", "type", "error"]),
200
- (w(), _(he(r.value ? u(Me) : u(be)), {
200
+ (w(), _(he(r.value ? u(Me) : u(Ve)), {
201
201
  class: "icon-locked",
202
202
  onClick: U
203
203
  }))
@@ -205,7 +205,7 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
205
205
  B("div", nt, [
206
206
  $(u(se), {
207
207
  style: { width: "100%" },
208
- disabled: M.value,
208
+ disabled: V.value,
209
209
  onClick: A
210
210
  }, {
211
211
  default: G(() => a[6] || (a[6] = [
@@ -277,49 +277,48 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
277
277
  const e = (C) => {
278
278
  m.touched[C] = !0;
279
279
  }, n = x(""), h = (C) => {
280
- s("on-clear-code-error");
281
280
  const c = C.target;
282
- let b = ((c == null ? void 0 : c.value) ?? "").replace(/\D/g, "");
283
- b.length > 4 && (b = b.slice(0, 4)), T.value = b, c && c.value !== b && (c.value = b), b.length === 4 && b !== n.value && (n.value = b, s("on-match-code", { email: r.value, code: b }));
281
+ let M = ((c == null ? void 0 : c.value) ?? "").replace(/\D/g, "");
282
+ M.length < 4 && s("on-clear-code-error"), M.length > 4 && (M = M.slice(0, 4)), T.value = M, c && c.value !== M && (c.value = M), M.length === 4 && M !== n.value && (n.value = M, s("on-match-code", { email: r.value, code: M }));
284
283
  }, d = () => {
285
284
  s("on-send-code-again", { email: r.value });
286
- }, { emailModel: r, codeModel: T, touched: O } = ce(m), L = V(() => O.value.email && !r.value.trim() ? "Введите e-mail" : v.emailError), U = V(() => v.isNotMatchCode ? "Неверный код" : O.value.code ? T.value.trim() ? v.codeError ?? null : "Введите код" : "");
285
+ }, { emailModel: r, codeModel: T, touched: O } = ce(m), L = b(() => O.value.email && !r.value.trim() ? "Введите e-mail" : v.emailError), U = b(() => v.isNotMatchCode ? "Неверный код" : O.value.code ? T.value.trim() ? v.codeError ?? null : "Введите код" : "");
287
286
  return (C, c) => {
288
- const b = ve;
287
+ const M = ve;
289
288
  return w(), I("div", mt, [
290
289
  B("div", ct, ee(C.hintText), 1),
291
290
  C.showEmail ? (w(), I("div", vt, [
292
291
  $(u(J), {
293
292
  modelValue: u(r),
294
- "onUpdate:modelValue": c[0] || (c[0] = (M) => te(r) ? r.value = M : null),
293
+ "onUpdate:modelValue": c[0] || (c[0] = (V) => te(r) ? r.value = V : null),
295
294
  size: "large",
296
295
  "text-size": "medium",
297
296
  label: "Почта",
298
297
  type: "email",
299
298
  error: L.value,
300
299
  disabled: !0,
301
- onBlur: c[1] || (c[1] = (M) => e("email")),
302
- onInput: c[2] || (c[2] = (M) => e("email"))
300
+ onBlur: c[1] || (c[1] = (V) => e("email")),
301
+ onInput: c[2] || (c[2] = (V) => e("email"))
303
302
  }, null, 8, ["modelValue", "error"]),
304
303
  $(u(pe), {
305
304
  class: "icon-locked",
306
- onClick: c[3] || (c[3] = (M) => C.$emit("edit", "email"))
305
+ onClick: c[3] || (c[3] = (V) => C.$emit("edit", "email"))
307
306
  })
308
307
  ])) : D("", !0),
309
308
  C.showCode ? (w(), I("div", pt, [
310
309
  $(u(J), {
311
310
  modelValue: u(T),
312
- "onUpdate:modelValue": c[4] || (c[4] = (M) => te(T) ? T.value = M : null),
311
+ "onUpdate:modelValue": c[4] || (c[4] = (V) => te(T) ? T.value = V : null),
313
312
  size: "large",
314
313
  "text-size": "medium",
315
314
  label: "Код",
316
315
  type: "text",
317
316
  error: U.value,
318
317
  onInput: h,
319
- onBlur: c[5] || (c[5] = (M) => e("code"))
318
+ onBlur: c[5] || (c[5] = (V) => e("code"))
320
319
  }, null, 8, ["modelValue", "error"])
321
320
  ])) : D("", !0),
322
- $(b, {
321
+ $(M, {
323
322
  loading: C.loading,
324
323
  "rate-limit-text": C.rateLimitText,
325
324
  "is-final-limit": C.isFinalLimit,
@@ -328,10 +327,10 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
328
327
  ]);
329
328
  };
330
329
  }
331
- }), Et = /* @__PURE__ */ He(ft, [["__scopeId", "data-v-5e561fbe"]]), wt = { class: "dialogDefaultContainerInsideContent" }, Ct = { class: "dialogDefaultContainerTextHint" }, yt = {
330
+ }), Et = /* @__PURE__ */ He(ft, [["__scopeId", "data-v-fa4de20f"]]), wt = { class: "dialogDefaultContainerInsideContent" }, Ct = { class: "dialogDefaultContainerTextHint" }, gt = {
332
331
  key: 0,
333
332
  class: "input-wrapper"
334
- }, gt = {
333
+ }, yt = {
335
334
  key: 1,
336
335
  class: "input-wrapper"
337
336
  }, ht = {
@@ -369,15 +368,15 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
369
368
  );
370
369
  const h = (a) => n.touched[a] = !0, d = (a) => n.touched[a] = !1, r = () => {
371
370
  e.value = "", d("email");
372
- }, T = V(() => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n.emailModel.trim())), O = V(() => !T.value || !!e.value), L = async () => {
371
+ }, T = b(() => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n.emailModel.trim())), O = b(() => !T.value || !!e.value), L = async () => {
373
372
  var a;
374
373
  try {
375
374
  if (h("email"), !T.value) {
376
375
  e.value = "Это не похоже на e-mail";
377
376
  return;
378
377
  }
379
- const i = await $e(n.emailModel), { data: y } = i.data;
380
- if (!(((a = y.data[0]) == null ? void 0 : a.available) ?? !1)) {
378
+ const i = await $e(n.emailModel), { data: g } = i.data;
379
+ if (!(((a = g.data[0]) == null ? void 0 : a.available) ?? !1)) {
381
380
  e.value = "Такой email уже используется";
382
381
  return;
383
382
  }
@@ -388,28 +387,27 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
388
387
  };
389
388
  let U = "";
390
389
  const C = (a) => {
391
- s("on-clear-code-error");
392
390
  const i = a.target;
393
- let y = i.value.replace(/\D/g, "");
394
- y.length > 4 && (y = y.slice(0, 4), i.value = y), n.codeModel = y, y.length === 4 && y !== U && (U = y, s("on-match-code", { email: n.emailModel, code: y }));
391
+ let g = i.value.replace(/\D/g, "");
392
+ g.length < 4 && s("on-clear-code-error"), g.length > 4 && (g = g.slice(0, 4), i.value = g), n.codeModel = g, g.length === 4 && g !== U && (U = g, s("on-match-code", { email: n.emailModel, code: g }));
395
393
  }, c = () => {
396
394
  s("on-send-code-again", { email: n.emailModel });
397
- }, { emailModel: b, codeModel: M, touched: P } = ce(n), A = V(() => {
395
+ }, { emailModel: M, codeModel: V, touched: P } = ce(n), A = b(() => {
398
396
  if (e.value) return e.value;
399
397
  if (n.touched.email) {
400
398
  if (!n.emailModel.trim()) return "Введите e-mail";
401
399
  if (!T.value) return "Это не похоже на e-mail";
402
400
  }
403
401
  return v.emailError || "";
404
- }), p = V(() => v.isNotMatchCode ? "Неверный код" : P.value.code ? M.value.trim() ? v.codeError ?? null : "Введите код" : "");
402
+ }), p = b(() => v.isNotMatchCode ? "Неверный код" : P.value.code ? V.value.trim() ? v.codeError ?? null : "Введите код" : "");
405
403
  return (a, i) => {
406
- const y = ve;
404
+ const g = ve;
407
405
  return w(), I("div", wt, [
408
406
  B("div", Ct, ee(m.value ? "Введите код подтверждения" : a.hintText), 1),
409
- a.showEmail ? (w(), I("div", yt, [
407
+ a.showEmail ? (w(), I("div", gt, [
410
408
  $(u(J), {
411
- modelValue: u(b),
412
- "onUpdate:modelValue": i[0] || (i[0] = (z) => te(b) ? b.value = z : null),
409
+ modelValue: u(M),
410
+ "onUpdate:modelValue": i[0] || (i[0] = (z) => te(M) ? M.value = z : null),
413
411
  size: "large",
414
412
  "text-size": "medium",
415
413
  label: "Почта",
@@ -423,7 +421,7 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
423
421
  onClick: i[2] || (i[2] = (z) => a.$emit("edit", "email"))
424
422
  })
425
423
  ])) : D("", !0),
426
- m.value ? D("", !0) : (w(), I("div", gt, [
424
+ m.value ? D("", !0) : (w(), I("div", yt, [
427
425
  $(u(se), {
428
426
  style: { width: "100%" },
429
427
  disabled: O.value,
@@ -438,8 +436,8 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
438
436
  ])),
439
437
  m.value ? (w(), I("div", ht, [
440
438
  $(u(J), {
441
- modelValue: u(M),
442
- "onUpdate:modelValue": i[3] || (i[3] = (z) => te(M) ? M.value = z : null),
439
+ modelValue: u(V),
440
+ "onUpdate:modelValue": i[3] || (i[3] = (z) => te(V) ? V.value = z : null),
443
441
  size: "large",
444
442
  "text-size": "medium",
445
443
  label: "Код",
@@ -450,7 +448,7 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
450
448
  }, null, 8, ["modelValue", "error"])
451
449
  ])) : D("", !0),
452
450
  m.value ? (w(), I("div", Tt, [
453
- $(y, {
451
+ $(g, {
454
452
  loading: a.loading,
455
453
  "rate-limit-text": a.rateLimitText,
456
454
  "is-final-limit": a.isFinalLimit,
@@ -460,7 +458,7 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
460
458
  ]);
461
459
  };
462
460
  }
463
- }), bt = { class: "text-center w-full" }, Vt = { class: "dialogTitle" }, xt = {
461
+ }), Vt = { class: "text-center w-full" }, bt = { class: "dialogTitle" }, xt = {
464
462
  key: 0,
465
463
  class: "dialogDefaultContainer"
466
464
  }, $t = {
@@ -485,7 +483,7 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
485
483
  code: "",
486
484
  addEmail: "",
487
485
  addCode: ""
488
- }), n = Z({ email: !1, code: !1 }), h = x(R.OLD), d = x(null), r = x(!1), T = x(!1), O = x(!1), L = x(_e.VERIFY_EMAIL), U = V(() => L.value === "password-flow"), C = V(() => p.value ? v.title : U.value ? "Добавление пароля" : "Добавление почты"), { startTimer: c, remainingSeconds: b, isAvailableForSendAgain: M, totalRateAttempts: P, currentRateAttempt: A } = ze(), { isEditFlow: p, getFlow: a } = Re(x(v.mode ?? "edit")), { showRateLimitToast: i } = We(s), y = V(() => n.email && !e.oldEmail.trim() ? "Введите e-mail" : ""), z = V(() => n.code && !e.code.trim() ? "Введите код" : ""), de = V(() => M.value ? "Повторить" : `${b.value}`), j = x(xe), ke = V(() => j.value === 0), Ie = (l) => new Promise((t) => setTimeout(t, l));
486
+ }), n = Z({ email: !1, code: !1 }), h = x(R.OLD), d = x(null), r = x(!1), T = x(!1), O = x(!1), L = x(_e.VERIFY_EMAIL), U = b(() => L.value === "password-flow"), C = b(() => p.value ? v.title : U.value ? "Добавление пароля" : "Добавление почты"), { startTimer: c, remainingSeconds: M, isAvailableForSendAgain: V, totalRateAttempts: P, currentRateAttempt: A } = ze(), { isEditFlow: p, getFlow: a } = Re(x(v.mode ?? "edit")), { showRateLimitToast: i } = We(s), g = b(() => n.email && !e.oldEmail.trim() ? "Введите e-mail" : ""), z = b(() => n.code && !e.code.trim() ? "Введите код" : ""), de = b(() => V.value ? "Повторить" : `${M.value}`), j = x(xe), ke = b(() => j.value === 0), Ie = (l) => new Promise((t) => setTimeout(t, l));
489
487
  Y(
490
488
  () => v.modelValue,
491
489
  (l) => m.value = l
@@ -497,7 +495,7 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
497
495
  var o;
498
496
  try {
499
497
  const E = (o = (await H("/users/profile/check-throttler", { method: "email", email: l, isInvite: t })).data) == null ? void 0 : o.data;
500
- return E ? (await Ie(1e3), E.restTimeSec > 0 ? (c(E.restTimeSec), M.value = !1, P.value = E.attempts.total ?? P.value, A.value = (E.attempts.total ?? 0) - (E.attempts.available ?? 0), j.value = E.attempts.available ?? j.value) : M.value = !0, E) : null;
498
+ return E ? (await Ie(1e3), E.restTimeSec > 0 ? (c(E.restTimeSec), V.value = !1, P.value = E.attempts.total ?? P.value, A.value = (E.attempts.total ?? 0) - (E.attempts.available ?? 0), j.value = E.attempts.available ?? j.value) : V.value = !0, E) : null;
501
499
  } catch {
502
500
  return null;
503
501
  }
@@ -539,7 +537,7 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
539
537
  );
540
538
  if (E.status === 403 && ((o = E.data) != null && o.tooManyRequests)) {
541
539
  const S = E.data.tooManyRequests;
542
- return S.restTimeSec > 0 ? (c(S.restTimeSec), P.value = S.attempts.total ?? P.value, A.value = (S.attempts.total ?? 0) - (S.attempts.available ?? 0), j.value = S.attempts.available ?? j.value) : M.value = !0, E;
540
+ return S.restTimeSec > 0 ? (c(S.restTimeSec), P.value = S.attempts.total ?? P.value, A.value = (S.attempts.total ?? 0) - (S.attempts.available ?? 0), j.value = S.attempts.available ?? j.value) : V.value = !0, E;
543
541
  }
544
542
  return E;
545
543
  } catch (f) {
@@ -553,8 +551,8 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
553
551
  if (!e.oldEmail && t === R.OLD) throw new Error("oldEmail пустой — модель потерялась");
554
552
  try {
555
553
  r.value = !0;
556
- const g = await ue();
557
- if (d.value = (g == null ? void 0 : g.sessionId) ?? d.value, h.value = (g == null ? void 0 : g.step) ?? h.value, e.oldEmail = (g == null ? void 0 : g.oldValue) ?? e.oldEmail, e.newEmail = (g == null ? void 0 : g.newValue) ?? e.newEmail, !d.value) throw new Error("Нет sessionId для match");
554
+ const y = await ue();
555
+ if (d.value = (y == null ? void 0 : y.sessionId) ?? d.value, h.value = (y == null ? void 0 : y.step) ?? h.value, e.oldEmail = (y == null ? void 0 : y.oldValue) ?? e.oldEmail, e.newEmail = (y == null ? void 0 : y.newValue) ?? e.newEmail, !d.value) throw new Error("Нет sessionId для match");
558
556
  const F = await H("/users/profile/change/email/match-code", {
559
557
  email: t === R.NEW ? e.newEmail : e.oldEmail,
560
558
  sessionId: d.value,
@@ -573,13 +571,13 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
573
571
  h.value === R.COMPLETED && (e.code = "", s("submit-email", { email: e.addEmail, code: l }), s("on-toast", { color: "success", text: "E-mail изменён" }), s("on-update-jwt", "email", "edit", e.newEmail), d.value = null, s("close"));
574
572
  }
575
573
  return F;
576
- } catch (g) {
577
- const F = (k = (oe = g == null ? void 0 : g.response) == null ? void 0 : oe.data) == null ? void 0 : k.rateLimit, Q = (K = g == null ? void 0 : g.response) == null ? void 0 : K.data.statusCode;
578
- if (console.error("rate-limit debug error: ", g), Q === 429 && F) {
574
+ } catch (y) {
575
+ const F = (k = (oe = y == null ? void 0 : y.response) == null ? void 0 : oe.data) == null ? void 0 : k.rateLimit, Q = (K = y == null ? void 0 : y.response) == null ? void 0 : K.data.statusCode;
576
+ if (console.error("rate-limit debug error: ", y), Q === 429 && F) {
579
577
  console.debug("rate-limit debug status and exists rateLimit: ", F), i(F), T.value = !0;
580
578
  return;
581
579
  }
582
- throw g;
580
+ throw y;
583
581
  } finally {
584
582
  r.value = !1;
585
583
  }
@@ -599,12 +597,12 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
599
597
  async function Le({ code: l }) {
600
598
  await Ce(l, R.OLD);
601
599
  }
602
- function ye(l) {
600
+ function ge(l) {
603
601
  }
604
602
  async function Pe({ code: l }) {
605
603
  await Ce(l, R.NEW);
606
604
  }
607
- const ge = async ({
605
+ const ye = async ({
608
606
  value: l,
609
607
  field: t = "email",
610
608
  offLoading: o = !0
@@ -618,13 +616,13 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
618
616
  provider: v.provider
619
617
  }), N = (f = S.data) == null ? void 0 : f.tooManyRequests;
620
618
  if (S.status === 403 && N) {
621
- N.restTimeSec > 0 ? (c(N.restTimeSec), P.value = N.attempts.total ?? P.value, A.value = (N.attempts.total ?? 0) - (N.attempts.available ?? 0), j.value = N.attempts.available ?? xe) : M.value = !0;
619
+ N.restTimeSec > 0 ? (c(N.restTimeSec), P.value = N.attempts.total ?? P.value, A.value = (N.attempts.total ?? 0) - (N.attempts.available ?? 0), j.value = N.attempts.available ?? xe) : V.value = !0;
622
620
  return;
623
621
  }
624
622
  return S;
625
623
  } finally {
626
624
  const E = await Ee(l ?? e.addEmail);
627
- E && E.restTimeSec > 0 ? c(E.restTimeSec) : M.value = !0, o && (r.value = !1);
625
+ E && E.restTimeSec > 0 ? c(E.restTimeSec) : V.value = !0, o && (r.value = !1);
628
626
  }
629
627
  }, De = async () => {
630
628
  var l, t, o, f, E, S, N, le, oe;
@@ -639,9 +637,9 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
639
637
  code: e.addCode
640
638
  }), K = ((l = k.data) == null ? void 0 : l.nextStep) ?? ((o = (t = k.data) == null ? void 0 : t.data) == null ? void 0 : o.nextStep);
641
639
  L.value = K ?? L.value;
642
- const g = ((E = (f = k.data) == null ? void 0 : f.data) == null ? void 0 : E.rateLimit) ?? ((S = k.data) == null ? void 0 : S.rateLimit) ?? null;
640
+ const y = ((E = (f = k.data) == null ? void 0 : f.data) == null ? void 0 : E.rateLimit) ?? ((S = k.data) == null ? void 0 : S.rateLimit) ?? null;
643
641
  if (!(k.data.data.success ?? k.data.success)) {
644
- i(g), O.value = !0;
642
+ i(y), O.value = !0;
645
643
  return;
646
644
  }
647
645
  } catch (k) {
@@ -693,7 +691,7 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
693
691
  "onClick:outside": re
694
692
  }, {
695
693
  header: G(() => [
696
- B("div", bt, [
694
+ B("div", Vt, [
697
695
  $(u(Ge), {
698
696
  "slot-left": !1,
699
697
  size: "small",
@@ -701,7 +699,7 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
701
699
  "no-padding": !1
702
700
  }, {
703
701
  title: G(() => [
704
- B("span", Vt, ee(C.value), 1)
702
+ B("span", bt, ee(C.value), 1)
705
703
  ]),
706
704
  "right-button": G(() => [
707
705
  $(u(Ye), {
@@ -724,7 +722,7 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
724
722
  code: e.code,
725
723
  "onUpdate:code": t[1] || (t[1] = (o) => e.code = o),
726
724
  "hint-text": l.hintText,
727
- "email-error": y.value,
725
+ "email-error": g.value,
728
726
  "code-error": z.value,
729
727
  "rate-limit-text": de.value,
730
728
  "is-final-limit": j.value === 0,
@@ -732,7 +730,7 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
732
730
  loading: r.value,
733
731
  onEdit: fe,
734
732
  onOnMatchCode: Le,
735
- onOnMatchCodeError: ye,
733
+ onOnMatchCodeError: ge,
736
734
  onSendCode: t[2] || (t[2] = (o) => ae({ value: e.oldEmail })),
737
735
  onOnSendCodeAgain: t[3] || (t[3] = (o) => ae({ value: e.oldEmail })),
738
736
  onOnClearCodeError: t[4] || (t[4] = (o) => T.value = !1)
@@ -745,7 +743,7 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
745
743
  code: e.code,
746
744
  "onUpdate:code": t[7] || (t[7] = (o) => e.code = o),
747
745
  "hint-text": "Введите новый адрес вашей почты",
748
- "email-error": y.value,
746
+ "email-error": g.value,
749
747
  "code-error": z.value,
750
748
  "rate-limit-text": de.value,
751
749
  "is-final-limit": j.value === 0,
@@ -753,7 +751,7 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
753
751
  loading: r.value,
754
752
  onEdit: fe,
755
753
  onOnMatchCode: Pe,
756
- onOnMatchCodeError: ye,
754
+ onOnMatchCodeError: ge,
757
755
  onOnSendCode: t[8] || (t[8] = (o) => ae({ value: e.newEmail })),
758
756
  onOnSendCodeAgain: t[9] || (t[9] = (o) => ae({ value: e.newEmail })),
759
757
  onOnClearCodeError: t[10] || (t[10] = (o) => T.value = !1)
@@ -780,8 +778,8 @@ const Je = { class: "dialogDefaultContainerInsideContent" }, Ke = { class: "dial
780
778
  "is-final-limit": ke.value,
781
779
  "is-not-match-code": O.value,
782
780
  loading: r.value,
783
- onOnSendCode: t[14] || (t[14] = (o) => ge({ value: e.addEmail, field: "email" })),
784
- onOnSendCodeAgain: t[15] || (t[15] = (o) => ge({ value: e.addEmail, field: "email" })),
781
+ onOnSendCode: t[14] || (t[14] = (o) => ye({ value: e.addEmail, field: "email" })),
782
+ onOnSendCodeAgain: t[15] || (t[15] = (o) => ye({ value: e.addEmail, field: "email" })),
785
783
  onOnMatchCode: De,
786
784
  onOnMatchCodeError: Ne,
787
785
  onOnClearCodeError: t[16] || (t[16] = (o) => O.value = !1)
@@ -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-DgXqm9qe.js";
2
+ import { C as I, p as D, g as Ve } from "./index-xXK11ev0.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
- import { createElementBlock as P, openBlock as p, createElementVNode as q, defineComponent as he, reactive as ve, watch as Z, ref as L, toRefs as Ce, computed as E, createCommentVNode as $, createVNode as T, toDisplayString as H, createBlock as G, createTextVNode as Y, unref as d, isRef as ne, withCtx as Q, onMounted as je, Fragment as qe } from "vue";
2
- import { T as we, c as Ne, a as He, u as Ge, P as Oe, b as Je } from "./useRateLimitToast-gpF7vjbF.js";
1
+ import { createElementBlock as P, openBlock as p, createElementVNode as q, defineComponent as he, reactive as ve, watch as Z, ref as L, toRefs as Ce, computed as E, createCommentVNode as $, createVNode as T, toDisplayString as H, createBlock as G, createTextVNode as Y, unref as i, isRef as ne, withCtx as Q, onMounted as je, Fragment as qe } from "vue";
2
+ import { T as we, c as Ne, a as He, u as Ge, P as Oe, b as Je } from "./useRateLimitToast-DocdeOsw.js";
3
3
  import { IconTelegramSm as Pe, PInput as ae, IconPhoneMd as Ke, IconMailMd as ze, PButton as Fe, 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-DgXqm9qe.js";
4
+ import { C as j, t as De, p as te, g as Ae } from "./index-xXK11ev0.js";
5
5
  const _e = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
7
  width: "12",
@@ -43,35 +43,34 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
43
43
  },
44
44
  emits: ["update:phone", "update:code", "edit", "on-match-code", "on-match-code-error", "on-send-code-again", "on-send-only-sms", "on-clear-code-error"],
45
45
  setup(R, { emit: x }) {
46
- const B = R, i = x, u = ve({
46
+ const B = R, r = x, u = ve({
47
47
  touched: { phone: !1, code: !1 },
48
48
  phoneModel: B.phone,
49
49
  codeModel: B.code
50
50
  });
51
51
  Z(
52
52
  () => u.phoneModel,
53
- (v) => i("update:phone", v)
53
+ (v) => r("update:phone", v)
54
54
  ), Z(
55
55
  () => u.codeModel,
56
- (v) => i("update:code", v)
56
+ (v) => r("update:code", v)
57
57
  );
58
58
  const h = (v) => {
59
59
  u.touched[v] = !0;
60
60
  };
61
61
  let c = L("");
62
62
  const F = (v) => {
63
- i("on-clear-code-error");
64
63
  const m = v.target;
65
- let r = ((m == null ? void 0 : m.value) ?? "").replace(/\D/g, "");
66
- r.length > 4 && (r = r.slice(0, 4)), M.value = r, m && m.value !== r && (m.value = r), r.length === 4 && r !== c.value && (c.value = r, i("on-match-code", { phone: e.value, code: r }));
67
- }, X = () => i("on-send-code-again", { phone: u.phoneModel }), J = () => {
68
- console.debug("onSendCodeViaSms"), i("on-send-only-sms", { phone: u.phoneModel });
64
+ let d = ((m == null ? void 0 : m.value) ?? "").replace(/\D/g, "");
65
+ d.length < 4 && r("on-clear-code-error"), d.length > 4 && (d = d.slice(0, 4)), M.value = d, m && m.value !== d && (m.value = d), d.length === 4 && d !== c.value && (c.value = d, r("on-match-code", { phone: e.value, code: d }));
66
+ }, X = () => r("on-send-code-again", { phone: u.phoneModel }), J = () => {
67
+ console.debug("onSendCodeViaSms"), r("on-send-only-sms", { phone: u.phoneModel });
69
68
  }, { phoneModel: e, codeModel: M, touched: C } = Ce(u), f = E(() => C.value.phone && !e.value.trim() ? "Введите телефон" : B.phoneError), O = E(() => B.isNotMatchCode ? "Неверный код" : C.value.code ? M.value.trim() ? B.codeError ?? null : "Введите код" : "");
70
69
  return (v, m) => (p(), P("div", tt, [
71
70
  q("div", ot, [
72
71
  q("div", nt, H(v.hintText), 1),
73
72
  q("div", at, [
74
- v.isTg ? (p(), G(d(Pe), { key: 0 })) : (p(), G(d(le), {
73
+ v.isTg ? (p(), G(i(Pe), { key: 0 })) : (p(), G(i(le), {
75
74
  key: 1,
76
75
  style: { "margin-left": "5px" }
77
76
  })),
@@ -79,34 +78,34 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
79
78
  ])
80
79
  ]),
81
80
  v.showPhone ? (p(), P("div", lt, [
82
- T(d(ae), {
83
- modelValue: d(e),
84
- "onUpdate:modelValue": m[0] || (m[0] = (r) => ne(e) ? e.value = r : null),
81
+ T(i(ae), {
82
+ modelValue: i(e),
83
+ "onUpdate:modelValue": m[0] || (m[0] = (d) => ne(e) ? e.value = d : null),
85
84
  size: "large",
86
85
  "text-size": "medium",
87
86
  label: "Телефон",
88
87
  type: "tel",
89
88
  error: f.value,
90
89
  disabled: !0,
91
- onBlur: m[1] || (m[1] = (r) => h("phone")),
92
- onInput: m[2] || (m[2] = (r) => h("phone"))
90
+ onBlur: m[1] || (m[1] = (d) => h("phone")),
91
+ onInput: m[2] || (m[2] = (d) => h("phone"))
93
92
  }, null, 8, ["modelValue", "error"]),
94
- T(d(Ke), {
93
+ T(i(Ke), {
95
94
  class: "icon-locked",
96
- onClick: m[3] || (m[3] = (r) => v.$emit("edit", "phone"))
95
+ onClick: m[3] || (m[3] = (d) => v.$emit("edit", "phone"))
97
96
  })
98
97
  ])) : $("", !0),
99
98
  v.showCode ? (p(), P("div", st, [
100
- T(d(ae), {
101
- modelValue: d(M),
102
- "onUpdate:modelValue": m[4] || (m[4] = (r) => ne(M) ? M.value = r : null),
99
+ T(i(ae), {
100
+ modelValue: i(M),
101
+ "onUpdate:modelValue": m[4] || (m[4] = (d) => ne(M) ? M.value = d : null),
103
102
  size: "large",
104
103
  "text-size": "medium",
105
104
  label: "Код",
106
105
  type: "text",
107
106
  error: O.value,
108
107
  onInput: F,
109
- onBlur: m[5] || (m[5] = (r) => h("code"))
108
+ onBlur: m[5] || (m[5] = (d) => h("code"))
110
109
  }, null, 8, ["modelValue", "error"])
111
110
  ])) : $("", !0),
112
111
  T(we, {
@@ -122,7 +121,7 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
122
121
  onClick: J
123
122
  }, [
124
123
  Y(H(v.sendCodeBySmsText) + " ", 1),
125
- T(d(le), { style: { "margin-left": "5px" } })
124
+ T(i(le), { style: { "margin-left": "5px" } })
126
125
  ])) : $("", !0)
127
126
  ]),
128
127
  _: 1
@@ -168,7 +167,7 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
168
167
  },
169
168
  emits: ["update:phone", "update:code", "edit", "on-match-code", "on-match-code-error", "on-send-code", "on-send-code-again", "on-send-only-sms", "on-clear-code-error"],
170
169
  setup(R, { emit: x }) {
171
- const B = R, i = x, u = L(!1), h = L(""), c = ve({
170
+ const B = R, r = x, u = L(!1), h = L(""), c = ve({
172
171
  touched: { phone: !1, code: !1 },
173
172
  phoneModel: "",
174
173
  codeModel: ""
@@ -176,11 +175,11 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
176
175
  Z(
177
176
  () => c.phoneModel,
178
177
  (o) => {
179
- i("update:phone", o), h.value = "";
178
+ r("update:phone", o), h.value = "";
180
179
  }
181
180
  ), Z(
182
181
  () => c.codeModel,
183
- (o) => i("update:code", o)
182
+ (o) => r("update:code", o)
184
183
  );
185
184
  const F = (o) => c.touched[o] = !0, X = (o) => c.touched[o] = !1, J = () => {
186
185
  h.value = "", X("phone");
@@ -202,22 +201,21 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
202
201
  h.value = "Такой номер уже используется";
203
202
  return;
204
203
  }
205
- h.value = "", i("on-send-code", { phone: c.phoneModel, prevPhone: B.oldPhone, offLoading: !0 }), u.value = !0;
204
+ h.value = "", r("on-send-code", { phone: c.phoneModel, prevPhone: B.oldPhone, offLoading: !0 }), u.value = !0;
206
205
  } catch (n) {
207
206
  console.error("Неизвестная ошибка при проверке доступности телефона:", n), h.value = "Это не похоже на номер телефона";
208
207
  }
209
208
  };
210
209
  let f = L("");
211
210
  const O = (o) => {
212
- i("on-clear-code-error");
213
211
  const n = o.target;
214
212
  let s = ((n == null ? void 0 : n.value) ?? "").replace(/\D/g, "");
215
- s.length > 4 && (s = s.slice(0, 4)), I.value = s, n && n.value !== s && (n.value = s), s.length === 4 && s !== f.value && (f.value = s, i("on-match-code", { phone: r.value, code: s }));
213
+ s.length < 4 && r("on-clear-code-error"), s.length > 4 && (s = s.slice(0, 4)), I.value = s, n && n.value !== s && (n.value = s), s.length === 4 && s !== f.value && (f.value = s, r("on-match-code", { phone: d.value, code: s }));
216
214
  }, v = () => {
217
- i("on-send-code-again", { phone: c.phoneModel });
215
+ r("on-send-code-again", { phone: c.phoneModel });
218
216
  }, m = () => {
219
- console.debug("onSendCodeViaSms"), i("on-send-only-sms", { phone: c.phoneModel });
220
- }, { phoneModel: r, codeModel: I, touched: se } = Ce(c), W = E(() => {
217
+ console.debug("onSendCodeViaSms"), r("on-send-only-sms", { phone: c.phoneModel });
218
+ }, { phoneModel: d, codeModel: I, touched: se } = Ce(c), W = E(() => {
221
219
  if (h.value) return h.value;
222
220
  if (c.touched.phone) {
223
221
  if (!c.phoneModel.trim()) return "Введите номер телефона";
@@ -229,7 +227,7 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
229
227
  q("div", rt, [
230
228
  q("div", ut, H(u.value ? "Чтобы продолжить, введите код подтверждения из" : o.hintText), 1),
231
229
  u.value ? (p(), P("div", ct, [
232
- o.isTg ? (p(), G(d(Pe), { key: 0 })) : (p(), G(d(le), {
230
+ o.isTg ? (p(), G(i(Pe), { key: 0 })) : (p(), G(i(le), {
233
231
  key: 1,
234
232
  style: { "margin-left": "5px" }
235
233
  })),
@@ -237,9 +235,9 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
237
235
  ])) : $("", !0)
238
236
  ]),
239
237
  o.showPhone ? (p(), P("div", pt, [
240
- T(d(ae), {
241
- modelValue: d(r),
242
- "onUpdate:modelValue": n[0] || (n[0] = (s) => ne(r) ? r.value = s : null),
238
+ T(i(ae), {
239
+ modelValue: i(d),
240
+ "onUpdate:modelValue": n[0] || (n[0] = (s) => ne(d) ? d.value = s : null),
243
241
  size: "large",
244
242
  "text-size": "medium",
245
243
  label: "Телефон",
@@ -248,13 +246,13 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
248
246
  onBlur: n[1] || (n[1] = (s) => F("phone")),
249
247
  onInput: J
250
248
  }, null, 8, ["modelValue", "error"]),
251
- T(d(ze), {
249
+ T(i(ze), {
252
250
  class: "icon-locked",
253
251
  onClick: n[2] || (n[2] = (s) => o.$emit("edit", "phone"))
254
252
  })
255
253
  ])) : $("", !0),
256
254
  u.value ? $("", !0) : (p(), P("div", ht, [
257
- T(d(Fe), {
255
+ T(i(Fe), {
258
256
  style: { width: "100%" },
259
257
  disabled: M.value,
260
258
  onClick: C
@@ -267,8 +265,8 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
267
265
  }, 8, ["disabled"])
268
266
  ])),
269
267
  u.value ? (p(), P("div", vt, [
270
- T(d(ae), {
271
- modelValue: d(I),
268
+ T(i(ae), {
269
+ modelValue: i(I),
272
270
  "onUpdate:modelValue": n[3] || (n[3] = (s) => ne(I) ? I.value = s : null),
273
271
  size: "large",
274
272
  "text-size": "medium",
@@ -293,7 +291,7 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
293
291
  onClick: m
294
292
  }, [
295
293
  Y(H(o.sendCodeBySmsText) + " ", 1),
296
- T(d(le), { style: { "margin-left": "5px" } })
294
+ T(i(le), { style: { "margin-left": "5px" } })
297
295
  ])) : $("", !0)
298
296
  ]),
299
297
  _: 1
@@ -331,7 +329,7 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
331
329
  },
332
330
  emits: ["update:phone", "update:code", "edit", "on-match-code", "on-match-code-error", "on-send-code", "on-send-code-again", "on-send-only-sms", "on-clear-code-error"],
333
331
  setup(R, { emit: x }) {
334
- const B = R, i = x, u = L(!1), h = L(""), c = ve({
332
+ const B = R, r = x, u = L(!1), h = L(""), c = ve({
335
333
  touched: { phone: !1, code: !1 },
336
334
  phoneModel: "",
337
335
  codeModel: ""
@@ -339,11 +337,11 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
339
337
  Z(
340
338
  () => c.phoneModel,
341
339
  (o) => {
342
- i("update:phone", o), h.value = "";
340
+ r("update:phone", o), h.value = "";
343
341
  }
344
342
  ), Z(
345
343
  () => c.codeModel,
346
- (o) => i("update:code", o)
344
+ (o) => r("update:code", o)
347
345
  );
348
346
  const F = (o) => c.touched[o] = !0, X = (o) => c.touched[o] = !1, J = () => {
349
347
  h.value = "", X("phone");
@@ -362,22 +360,21 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
362
360
  h.value = "Такой номер уже используется";
363
361
  return;
364
362
  }
365
- h.value = "", i("on-send-code", { phone: c.phoneModel, prevPhone: B.oldPhone, offLoading: !0 }), u.value = !0;
363
+ h.value = "", r("on-send-code", { phone: c.phoneModel, prevPhone: B.oldPhone, offLoading: !0 }), u.value = !0;
366
364
  } catch (n) {
367
365
  console.error("Неизвестная ошибка при проверке доступности телефона:", n), h.value = "Это не похоже на номер телефона";
368
366
  }
369
367
  };
370
368
  let f = "";
371
369
  const O = (o) => {
372
- i("on-clear-code-error");
373
370
  const n = o.target;
374
371
  let s = n.value.replace(/\D/g, "");
375
- s.length > 4 && (s = s.slice(0, 4), n.value = s), c.codeModel = s, s.length === 4 && s !== f && (f = s, i("on-match-code", { phone: c.phoneModel, code: s }));
372
+ s.length < 4 && r("on-clear-code-error"), s.length > 4 && (s = s.slice(0, 4), n.value = s), c.codeModel = s, s.length === 4 && s !== f && (f = s, r("on-match-code", { phone: c.phoneModel, code: s }));
376
373
  }, v = () => {
377
- i("on-send-code-again", { phone: c.phoneModel });
374
+ r("on-send-code-again", { phone: c.phoneModel });
378
375
  }, m = () => {
379
- console.debug("onSendCodeViaSms"), i("on-send-only-sms", { phone: c.phoneModel });
380
- }, { phoneModel: r, codeModel: I, touched: se } = Ce(c), W = E(() => {
376
+ console.debug("onSendCodeViaSms"), r("on-send-only-sms", { phone: c.phoneModel });
377
+ }, { phoneModel: d, codeModel: I, touched: se } = Ce(c), W = E(() => {
381
378
  if (h.value) return h.value;
382
379
  if (c.touched.phone) {
383
380
  if (!c.phoneModel.trim()) return "Введите номер телефона";
@@ -389,7 +386,7 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
389
386
  q("div", yt, [
390
387
  q("div", Ct, H(u.value ? "Чтобы продолжить, введите код подтверждения из" : o.hintText), 1),
391
388
  u.value ? (p(), P("div", wt, [
392
- o.isTg ? (p(), G(d(Pe), { key: 0 })) : (p(), G(d(le), {
389
+ o.isTg ? (p(), G(i(Pe), { key: 0 })) : (p(), G(i(le), {
393
390
  key: 1,
394
391
  style: { "margin-left": "5px" }
395
392
  })),
@@ -397,9 +394,9 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
397
394
  ])) : $("", !0)
398
395
  ]),
399
396
  o.showPhone ? (p(), P("div", Pt, [
400
- T(d(ae), {
401
- modelValue: d(r),
402
- "onUpdate:modelValue": n[0] || (n[0] = (s) => ne(r) ? r.value = s : null),
397
+ T(i(ae), {
398
+ modelValue: i(d),
399
+ "onUpdate:modelValue": n[0] || (n[0] = (s) => ne(d) ? d.value = s : null),
403
400
  size: "large",
404
401
  "text-size": "medium",
405
402
  label: "Телефон",
@@ -408,13 +405,13 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
408
405
  onBlur: n[1] || (n[1] = (s) => F("phone")),
409
406
  onInput: J
410
407
  }, null, 8, ["modelValue", "error"]),
411
- T(d(ze), {
408
+ T(i(ze), {
412
409
  class: "icon-locked",
413
410
  onClick: n[2] || (n[2] = (s) => o.$emit("edit", "phone"))
414
411
  })
415
412
  ])) : $("", !0),
416
413
  u.value ? $("", !0) : (p(), P("div", Tt, [
417
- T(d(Fe), {
414
+ T(i(Fe), {
418
415
  style: { width: "100%" },
419
416
  disabled: M.value,
420
417
  onClick: C
@@ -427,8 +424,8 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
427
424
  }, 8, ["disabled"])
428
425
  ])),
429
426
  u.value ? (p(), P("div", St, [
430
- T(d(ae), {
431
- modelValue: d(I),
427
+ T(i(ae), {
428
+ modelValue: i(I),
432
429
  "onUpdate:modelValue": n[3] || (n[3] = (s) => ne(I) ? I.value = s : null),
433
430
  size: "large",
434
431
  "text-size": "medium",
@@ -453,7 +450,7 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
453
450
  onClick: m
454
451
  }, [
455
452
  Y(H(o.sendCodeBySmsText) + " ", 1),
456
- T(d(le), { style: { "margin-left": "5px" } })
453
+ T(i(le), { style: { "margin-left": "5px" } })
457
454
  ])) : $("", !0)
458
455
  ]),
459
456
  _: 1
@@ -480,18 +477,18 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
480
477
  },
481
478
  emits: ["update:modelValue", "submit-phone", "edit", "close", "clean-input-errors", "on-update-jwt", "update-phone-field", "on-toast"],
482
479
  setup(R, { expose: x, emit: B }) {
483
- const i = R, u = B, h = L(i.modelValue);
480
+ const r = R, u = B, h = L(r.modelValue);
484
481
  Z(
485
- () => i.modelValue,
482
+ () => r.modelValue,
486
483
  (a) => h.value = a
487
484
  ), Z(h, (a) => u("update:modelValue", a));
488
- const c = E(() => i.language ?? "ru"), F = (a) => De[c.value] && De[c.value][a] || (i.title ?? a), X = E(() => i.title ?? F("Смена номера телефона")), J = E(() => i.hintText ?? F("Чтобы продолжить, введите новый номер")), e = ve({
489
- oldPhone: i.initialPhone ?? "",
485
+ const c = E(() => r.language ?? "ru"), F = (a) => De[c.value] && De[c.value][a] || (r.title ?? a), X = E(() => r.title ?? F("Смена номера телефона")), J = E(() => r.hintText ?? F("Чтобы продолжить, введите новый номер")), e = ve({
486
+ oldPhone: r.initialPhone ?? "",
490
487
  newPhone: "",
491
488
  code: "",
492
489
  addPhone: "",
493
490
  addCode: ""
494
- }), M = L(j.OLD), C = L(null), f = L(!1), O = L(!1), v = L("tg"), m = E(() => v.value === "tg"), r = L(!1), { startTimer: I, remainingSeconds: se, isAvailableForSendAgain: W, totalRateAttempts: _, currentRateAttempt: o } = He(), { showRateLimitToast: n } = Je(u), { isEditFlow: s, getFlow: me } = Ge(L(i.mode)), de = E(() => W.value ? "Повторить" : `${se.value}`), ie = L(pe), re = E(() => ie.value === 0), Ue = (a) => new Promise((l) => setTimeout(l, a));
491
+ }), M = L(j.OLD), C = L(null), f = L(!1), O = L(!1), v = L("tg"), m = E(() => v.value === "tg"), d = L(!1), { startTimer: I, remainingSeconds: se, isAvailableForSendAgain: W, totalRateAttempts: _, currentRateAttempt: o } = He(), { showRateLimitToast: n } = Je(u), { isEditFlow: s, getFlow: me } = Ge(L(r.mode)), de = E(() => W.value ? "Повторить" : `${se.value}`), ie = L(pe), re = E(() => ie.value === 0), Ue = (a) => new Promise((l) => setTimeout(l, a));
495
492
  async function fe(a = "email") {
496
493
  var t;
497
494
  return (t = (await Ae("/users/profile/session/get-edit-session", { params: { field: a } })).data) == null ? void 0 : t.data;
@@ -500,7 +497,7 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
500
497
  var b;
501
498
  const t = (b = (await te("/users/profile/session/create-if-not-exists", {
502
499
  field: a,
503
- oldValue: U(i.initialPhone)
500
+ oldValue: U(r.initialPhone)
504
501
  })).data) == null ? void 0 : b.data;
505
502
  return C.value = (t == null ? void 0 : t.sessionId) ?? null, M.value = (t == null ? void 0 : t.step) ?? j.OLD, e.oldPhone = (t == null ? void 0 : t.oldValue) ?? "", e.newPhone = (t == null ? void 0 : t.newValue) ?? "", t;
506
503
  }
@@ -524,7 +521,7 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
524
521
  },
525
522
  {
526
523
  headers: {
527
- "x-only-sms": r.value ?? !1
524
+ "x-only-sms": d.value ?? !1
528
525
  }
529
526
  }
530
527
  );
@@ -535,7 +532,7 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
535
532
  return null;
536
533
  }
537
534
  }
538
- const ge = async ({ phone: a }) => (r.value = !0, await ee({ value: a, isOnlySms: !0 })), ee = async ({ value: a, isOnlySms: l, offLoading: t } = {}) => {
535
+ const ge = async ({ phone: a }) => (d.value = !0, await ee({ value: a, isOnlySms: !0 })), ee = async ({ value: a, isOnlySms: l, offLoading: t } = {}) => {
539
536
  var b, w, D, A, N;
540
537
  f.value = !0;
541
538
  try {
@@ -546,7 +543,7 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
546
543
  phone: U(k),
547
544
  value: U(k),
548
545
  oldValue: U(e.oldPhone),
549
- provider: i.provider,
546
+ provider: r.provider,
550
547
  isOnlySms: l ?? !1
551
548
  },
552
549
  {
@@ -557,7 +554,7 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
557
554
  );
558
555
  console.debug("response sendContactCode: ", g);
559
556
  const S = (w = (b = g == null ? void 0 : g.data) == null ? void 0 : b.data) == null ? void 0 : w.deliveryType;
560
- if ((S === "tg" || S === "sms") && (v.value = S, S === "tg" && (r.value = !1)), console.debug("sendContactCode before обработка 403 tooManyRequests", g), (g == null ? void 0 : g.status) === 403 && ((D = g.data) != null && D.tooManyRequests)) {
557
+ if ((S === "tg" || S === "sms") && (v.value = S, S === "tg" && (d.value = !1)), console.debug("sendContactCode before обработка 403 tooManyRequests", g), (g == null ? void 0 : g.status) === 403 && ((D = g.data) != null && D.tooManyRequests)) {
561
558
  console.debug("sendContactCode IN обработка 403 tooManyRequests", g);
562
559
  const K = (N = (A = g.data) == null ? void 0 : A.tooManyRequests) == null ? void 0 : N.type;
563
560
  v.value = K;
@@ -659,7 +656,7 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
659
656
  {
660
657
  sessionId: C.value,
661
658
  phone: U(N),
662
- provider: i.provider,
659
+ provider: r.provider,
663
660
  isOnlySms: t ?? !1
664
661
  },
665
662
  {
@@ -668,7 +665,7 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
668
665
  }
669
666
  }
670
667
  ), g = (D = (w = k == null ? void 0 : k.data) == null ? void 0 : w.data) == null ? void 0 : D.deliveryType;
671
- (g === "tg" || g === "sms") && (v.value = g, g === "tg" && (r.value = !1));
668
+ (g === "tg" || g === "sms") && (v.value = g, g === "tg" && (d.value = !1));
672
669
  const S = (A = k.data) == null ? void 0 : A.tooManyRequests;
673
670
  if (k.status === 403 && S) {
674
671
  const K = S == null ? void 0 : S.type;
@@ -712,7 +709,7 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
712
709
  return je(async () => {
713
710
  f.value = !0;
714
711
  const a = await me("phone");
715
- if (i.mode === "bind" && a === "bind") {
712
+ if (r.mode === "bind" && a === "bind") {
716
713
  await We(), f.value = !1;
717
714
  return;
718
715
  }
@@ -736,7 +733,7 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
736
733
  matchBindCode: Ee,
737
734
  matchBindCodeError: Ie
738
735
  }), (a, l) => (p(), P(qe, null, [
739
- T(d(Qe), {
736
+ T(i(Qe), {
740
737
  modelValue: h.value,
741
738
  "onUpdate:modelValue": [
742
739
  l[15] || (l[15] = (t) => h.value = t),
@@ -749,17 +746,17 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
749
746
  }, {
750
747
  header: Q(() => [
751
748
  q("div", bt, [
752
- T(d(Xe), {
749
+ T(i(Xe), {
753
750
  "slot-left": !1,
754
751
  size: "small",
755
752
  borded: !0,
756
753
  "no-padding": !1
757
754
  }, {
758
755
  title: Q(() => [
759
- q("span", kt, H(d(s) ? X.value : "Добавление номера телефона"), 1)
756
+ q("span", kt, H(i(s) ? X.value : "Добавление номера телефона"), 1)
760
757
  ]),
761
758
  "right-button": Q(() => [
762
- T(d(Ye), {
759
+ T(i(Ye), {
763
760
  class: "cross",
764
761
  onClick: ue
765
762
  })
@@ -769,9 +766,9 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
769
766
  ])
770
767
  ]),
771
768
  default: Q(() => [
772
- d(s) ? (p(), P("div", Vt, [
769
+ i(s) ? (p(), P("div", Vt, [
773
770
  f.value ? (p(), G(Oe, { key: 0 })) : $("", !0),
774
- M.value === d(j).OLD ? (p(), G(dt, {
771
+ M.value === i(j).OLD ? (p(), G(dt, {
775
772
  key: 1,
776
773
  phone: e.oldPhone,
777
774
  "onUpdate:phone": l[0] || (l[0] = (t) => e.oldPhone = t),
@@ -783,11 +780,11 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
783
780
  loading: f.value,
784
781
  "is-tg": m.value,
785
782
  onOnSendCode: l[2] || (l[2] = (t) => ee({ value: e.oldPhone })),
786
- onOnSendCodeAgain: l[3] || (l[3] = (t) => ee({ value: e.oldPhone, isOnlySms: !m.value && r.value })),
783
+ onOnSendCodeAgain: l[3] || (l[3] = (t) => ee({ value: e.oldPhone, isOnlySms: !m.value && d.value })),
787
784
  onOnSendOnlySms: ge,
788
785
  onOnMatchCode: xe,
789
786
  onOnMatchCodeError: be
790
- }, null, 8, ["phone", "code", "rate-limit-text", "is-final-limit", "is-not-match-code", "loading", "is-tg"])) : M.value === d(j).NEW ? (p(), G(ft, {
787
+ }, null, 8, ["phone", "code", "rate-limit-text", "is-final-limit", "is-not-match-code", "loading", "is-tg"])) : M.value === i(j).NEW ? (p(), G(ft, {
791
788
  key: 2,
792
789
  phone: e.newPhone,
793
790
  "onUpdate:phone": l[4] || (l[4] = (t) => e.newPhone = t),
@@ -802,12 +799,12 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
802
799
  loading: f.value,
803
800
  "is-tg": m.value,
804
801
  onOnSendCode: l[7] || (l[7] = (t) => ee({ value: e.newPhone })),
805
- onOnSendCodeAgain: l[8] || (l[8] = (t) => ee({ value: e.newPhone, isOnlySms: !m.value && r.value })),
802
+ onOnSendCodeAgain: l[8] || (l[8] = (t) => ee({ value: e.newPhone, isOnlySms: !m.value && d.value })),
806
803
  onOnSendOnlySms: ge,
807
804
  onOnMatchCode: ke,
808
805
  onOnMatchCodeError: Ve,
809
806
  onOnClearCodeError: l[9] || (l[9] = (t) => O.value = !1)
810
- }, null, 8, ["phone", "oldPhone", "code", "hint-text", "rate-limit-text", "is-final-limit", "is-not-match-code", "loading", "is-tg"])) : M.value === d(j).COMPLETED ? (p(), P("div", $t, [
807
+ }, null, 8, ["phone", "oldPhone", "code", "hint-text", "rate-limit-text", "is-final-limit", "is-not-match-code", "loading", "is-tg"])) : M.value === i(j).COMPLETED ? (p(), P("div", $t, [
811
808
  q("p", null, H(F("Телефон успешно изменен")), 1)
812
809
  ])) : $("", !0)
813
810
  ])) : (p(), P("div", Bt, [
@@ -819,14 +816,14 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
819
816
  "onUpdate:oldPhone": l[11] || (l[11] = (t) => e.oldPhone = t),
820
817
  code: e.addCode,
821
818
  "onUpdate:code": l[12] || (l[12] = (t) => e.addCode = t),
822
- "hint-text": d(s) ? J.value : "Чтобы продолжить, введите новый номер",
819
+ "hint-text": i(s) ? J.value : "Чтобы продолжить, введите новый номер",
823
820
  "rate-limit-text": de.value,
824
821
  "is-final-limit": re.value,
825
822
  "is-not-match-code": O.value,
826
823
  loading: f.value,
827
824
  "is-tg": m.value,
828
825
  onOnSendCode: l[13] || (l[13] = (t) => ye({ value: e.addPhone, field: "phone" })),
829
- onOnSendCodeAgain: l[14] || (l[14] = (t) => ye({ value: e.addPhone, field: "phone", isOnlySms: !m.value && r.value })),
826
+ onOnSendCodeAgain: l[14] || (l[14] = (t) => ye({ value: e.addPhone, field: "phone", isOnlySms: !m.value && d.value })),
830
827
  onOnSendOnlySms: ge,
831
828
  onOnMatchCode: Ee,
832
829
  onOnMatchCodeError: Ie
@@ -835,7 +832,7 @@ const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
835
832
  ]),
836
833
  _: 1
837
834
  }, 8, ["modelValue"]),
838
- T(d(Ze))
835
+ T(i(Ze))
839
836
  ], 64));
840
837
  }
841
838
  });
@@ -216,9 +216,9 @@ const ra = {
216
216
  emits: ["clean-input-errors", "on-update-jwt", "update-phone-field", "update-email-field", "on-password-error", "on-toast"],
217
217
  setup(s, { emit: n }) {
218
218
  const r = n, u = h(!0), { currentDialog: v, dialogPayload: p, closeDialog: U } = X(), l = {
219
- email: q(() => import("./ProfileEmailDialog-D7OoILE6.js")),
220
- phone: q(() => import("./ProfilePhoneDialog-Cm_s-YCX.js")),
221
- password: q(() => import("./ProfilePasswordDialog-Hibce_6h.js"))
219
+ email: q(() => import("./ProfileEmailDialog-D7meJIOd.js")),
220
+ phone: q(() => import("./ProfilePhoneDialog-DUxLeNPV.js")),
221
+ password: q(() => import("./ProfilePasswordDialog-DmvyrGhz.js"))
222
222
  }, i = ({ email: y }) => {
223
223
  r("update-email-field", y);
224
224
  }, c = ({ phone: y }) => {
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-965c8738] .p-input-file .overlay{visibility:hidden}.avatar-input[data-v-965c8738] .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-DgXqm9qe.js";
2
+ import { a as o } from "./index-xXK11ev0.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-DgXqm9qe.js";
3
+ import { _ as g, g as R, p as h } from "./index-xXK11ev0.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.46.8",
3
+ "version": "0.47.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",