@yourgoods/ui-smart 0.51.1 → 0.51.3

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-qLNKIH0n.js";
3
- import { C as F, _ as He, B as qe, p as W, g as je } from "./index-DR9kwm5X.js";
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";
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-DR9kwm5X.js";
2
+ import { C as I, p as D, g as Ve } from "./index-BBWJGgsC.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 S, openBlock as v, createElementVNode as G, defineComponent as he, reactive as ve, watch as _, ref as D, toRefs as Ce, computed as I, createCommentVNode as B, createVNode as b, toDisplayString as q, createBlock as J, createTextVNode as X, unref as r, isRef as le, withCtx as Y, onMounted as We, Fragment as je } from "vue";
2
- import { _ as we, c as Ne, a as He, u as Ge, P as De, b as Je } from "./useRateLimitToast-qLNKIH0n.js";
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";
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 H, t as Oe, p as te, g as Ae } from "./index-DR9kwm5X.js";
4
+ import { C as j, t as De, p as te, g as Ae } from "./index-BBWJGgsC.js";
5
5
  const _e = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
7
  width: "12",
@@ -10,7 +10,7 @@ const _e = {
10
10
  };
11
11
  function et(U, V) {
12
12
  return v(), S("svg", _e, V[0] || (V[0] = [
13
- G("path", {
13
+ H("path", {
14
14
  fill: "#1C7EF1",
15
15
  "fill-rule": "evenodd",
16
16
  d: "M1 0a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V1a1 1 0 0 0-1-1zm1.5 2a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5zM6 13a1 1 0 1 0 0 2 1 1 0 0 0 0-2",
@@ -59,23 +59,23 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
59
59
  const f = (h) => {
60
60
  c.touched[h] = !0;
61
61
  };
62
- let p = D("");
62
+ let p = O("");
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
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 }));
67
- }, Z = () => u("on-send-code-again", { phone: c.phoneModel }), K = () => {
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), O = I(() => E.isNotMatchCode ? "Неверный код" : P.value.code ? x.value.trim() ? E.codeError ?? null : "Введите код" : "");
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 : "Введите код" : "");
70
70
  return (h, y) => (v(), S("div", tt, [
71
- G("div", ot, [
72
- G("div", nt, q(h.hintText), 1),
73
- G("div", at, [
71
+ H("div", ot, [
72
+ H("div", nt, G(h.hintText), 1),
73
+ H("div", at, [
74
74
  h.isTg ? (v(), J(r(Pe), { key: 0 })) : (v(), J(r(de), {
75
75
  key: 1,
76
76
  style: { "margin-left": "5px" }
77
77
  })),
78
- X(" " + q(h.isTg ? "Telegram" : "СМС"), 1)
78
+ Z(" " + G(h.isTg ? "Telegram" : "СМС"), 1)
79
79
  ])
80
80
  ]),
81
81
  h.showPhone ? (v(), S("div", lt, [
@@ -104,7 +104,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
104
104
  "text-size": "medium",
105
105
  label: "Код",
106
106
  type: "text",
107
- error: O.value,
107
+ error: D.value,
108
108
  onInput: z,
109
109
  onBlur: y[5] || (y[5] = (i) => f("code"))
110
110
  }, null, 8, ["modelValue", "error"])
@@ -113,16 +113,16 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
113
113
  loading: h.loading,
114
114
  "rate-limit-text": h.rateLimitText,
115
115
  "is-final-limit": h.isFinalLimit,
116
- "on-send-again": Z,
116
+ "on-send-again": Y,
117
117
  product: h.product
118
118
  }, {
119
- extra: Y(() => [
119
+ extra: X(() => [
120
120
  h.isTg ? (v(), S("span", {
121
121
  key: 0,
122
122
  class: "dialogDefaultContainerSendCodeBySmsText",
123
123
  onClick: K
124
124
  }, [
125
- X(q(h.sendCodeBySmsText) + " ", 1),
125
+ Z(G(h.sendCodeBySmsText) + " ", 1),
126
126
  b(r(de), { style: { "margin-left": "5px" } })
127
127
  ])) : B("", !0)
128
128
  ]),
@@ -170,7 +170,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
170
170
  },
171
171
  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"],
172
172
  setup(U, { emit: V }) {
173
- const E = U, u = V, c = D(!1), f = D(""), p = ve({
173
+ const E = U, u = V, c = O(!1), f = O(""), p = ve({
174
174
  touched: { phone: !1, code: !1 },
175
175
  phoneModel: "",
176
176
  codeModel: ""
@@ -184,8 +184,8 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
184
184
  () => p.codeModel,
185
185
  (t) => u("update:code", t)
186
186
  );
187
- const z = (t) => p.touched[t] = !0, Z = (t) => p.touched[t] = !1, K = () => {
188
- f.value = "", Z("phone");
187
+ const z = (t) => p.touched[t] = !0, Y = (t) => p.touched[t] = !1, K = () => {
188
+ f.value = "", Y("phone");
189
189
  }, e = I(() => {
190
190
  const l = p.phoneModel.trim().replace(/[()\-\s]/g, "");
191
191
  return /^\+?\d{10,15}$/.test(l);
@@ -206,8 +206,8 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
206
206
  console.error("Неизвестная ошибка при проверке доступности телефона:", l), f.value = "Это не похоже на номер телефона";
207
207
  }
208
208
  };
209
- let C = D("");
210
- const O = (t) => {
209
+ let C = O("");
210
+ const D = (t) => {
211
211
  const l = t.target;
212
212
  let s = ((l == null ? void 0 : l.value) ?? "").replace(/\D/g, "");
213
213
  s.length < 4 && u("on-clear-code-error"), s.length > 4 && (s = s.slice(0, 4)), L.value = s, l && l.value !== s && (l.value = s), s.length === 4 && s !== C.value && (C.value = s, u("on-match-code", { phone: i.value, code: s }));
@@ -224,14 +224,14 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
224
224
  return E.phoneError || "";
225
225
  }), Q = I(() => E.isNotMatchCode ? "Неверный код" : ie.value.code ? L.value.trim() ? E.codeError ?? null : "Введите код" : "");
226
226
  return (t, l) => (v(), S("div", it, [
227
- G("div", rt, [
228
- G("div", ut, q(c.value ? "Чтобы продолжить, введите код подтверждения из" : t.hintText), 1),
227
+ H("div", rt, [
228
+ H("div", ut, G(c.value ? "Чтобы продолжить, введите код подтверждения из" : t.hintText), 1),
229
229
  c.value ? (v(), S("div", ct, [
230
230
  t.isTg ? (v(), J(r(Pe), { key: 0 })) : (v(), J(r(de), {
231
231
  key: 1,
232
232
  style: { "margin-left": "5px" }
233
233
  })),
234
- X(" " + q(t.isTg ? "Telegram" : "СМС"), 1)
234
+ Z(" " + G(t.isTg ? "Telegram" : "СМС"), 1)
235
235
  ])) : B("", !0)
236
236
  ]),
237
237
  t.showPhone ? (v(), S("div", pt, [
@@ -257,8 +257,8 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
257
257
  disabled: x.value,
258
258
  onClick: P
259
259
  }, {
260
- default: Y(() => l[5] || (l[5] = [
261
- X(" Отправить код ")
260
+ default: X(() => l[5] || (l[5] = [
261
+ Z(" Отправить код ")
262
262
  ])),
263
263
  _: 1,
264
264
  __: [5]
@@ -273,7 +273,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
273
273
  label: "Код",
274
274
  type: "text",
275
275
  error: Q.value,
276
- onInput: O,
276
+ onInput: D,
277
277
  onBlur: l[4] || (l[4] = (s) => z("code"))
278
278
  }, null, 8, ["modelValue", "error"])
279
279
  ])) : B("", !0),
@@ -285,13 +285,13 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
285
285
  "on-send-again": h,
286
286
  product: t.product
287
287
  }, {
288
- extra: Y(() => [
288
+ extra: X(() => [
289
289
  t.isTg ? (v(), S("span", {
290
290
  key: 0,
291
291
  class: "dialogDefaultContainerSendCodeBySmsText",
292
292
  onClick: y
293
293
  }, [
294
- X(q(t.sendCodeBySmsText) + " ", 1),
294
+ Z(G(t.sendCodeBySmsText) + " ", 1),
295
295
  b(r(de), { style: { "margin-left": "5px" } })
296
296
  ])) : B("", !0)
297
297
  ]),
@@ -328,11 +328,11 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
328
328
  loading: { type: Boolean },
329
329
  isTg: { type: Boolean },
330
330
  product: {},
331
- onDisableAddPhone: { type: Boolean, default: !1 }
331
+ disableAddPhone: { type: Boolean, default: !1 }
332
332
  },
333
333
  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"],
334
334
  setup(U, { emit: V }) {
335
- const E = U, u = V, c = D(!1), f = D(""), p = ve({
335
+ const E = U, u = V, c = O(!1), f = O(""), p = ve({
336
336
  touched: { phone: !1, code: !1 },
337
337
  phoneModel: "",
338
338
  codeModel: ""
@@ -346,8 +346,8 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
346
346
  () => p.codeModel,
347
347
  (t) => u("update:code", t)
348
348
  );
349
- const z = (t) => p.touched[t] = !0, Z = (t) => p.touched[t] = !1, K = () => {
350
- f.value = "", Z("phone");
349
+ const z = (t) => p.touched[t] = !0, Y = (t) => p.touched[t] = !1, K = () => {
350
+ f.value = "", Y("phone");
351
351
  }, e = I(() => {
352
352
  const l = p.phoneModel.trim().replace(/[()\-\s]/g, "");
353
353
  return /^\+?\d{10,15}$/.test(l);
@@ -369,7 +369,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
369
369
  }
370
370
  };
371
371
  let C = "";
372
- const O = (t) => {
372
+ const D = (t) => {
373
373
  const l = t.target;
374
374
  let s = l.value.replace(/\D/g, "");
375
375
  s.length < 4 && u("on-clear-code-error"), s.length > 4 && (s = s.slice(0, 4), l.value = s), p.codeModel = s, s.length === 4 && s !== C && (C = s, u("on-match-code", { phone: p.phoneModel, code: s }));
@@ -386,14 +386,14 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
386
386
  return E.phoneError || "";
387
387
  }), Q = I(() => E.isNotMatchCode ? "Неверный код" : p.touched.code ? L.value.trim() ? E.codeError ?? null : "Введите код" : "");
388
388
  return (t, l) => (v(), S("div", yt, [
389
- G("div", gt, [
390
- G("div", Ct, q(c.value ? "Чтобы продолжить, введите код подтверждения из" : t.hintText), 1),
389
+ H("div", gt, [
390
+ H("div", Ct, G(c.value ? "Чтобы продолжить, введите код подтверждения из" : t.hintText), 1),
391
391
  c.value ? (v(), S("div", wt, [
392
392
  t.isTg ? (v(), J(r(Pe), { key: 0 })) : (v(), J(r(de), {
393
393
  key: 1,
394
394
  style: { "margin-left": "5px" }
395
395
  })),
396
- X(" " + q(t.isTg ? "Telegram" : "СМС"), 1)
396
+ Z(" " + G(t.isTg ? "Telegram" : "СМС"), 1)
397
397
  ])) : B("", !0)
398
398
  ]),
399
399
  t.showPhone ? (v(), S("div", Pt, [
@@ -405,11 +405,10 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
405
405
  label: "Телефон",
406
406
  type: "tel",
407
407
  error: A.value,
408
- disabled: !!t.onDisableAddPhone,
408
+ disabled: t.disableAddPhone && !c.value,
409
409
  onBlur: l[1] || (l[1] = (s) => z("phone")),
410
410
  onInput: K
411
411
  }, null, 8, ["modelValue", "error", "disabled"]),
412
- X(" " + q("fuck off: " + t.onDisableAddPhone) + " ", 1),
413
412
  b(r(Re), {
414
413
  class: "icon-locked",
415
414
  onClick: l[2] || (l[2] = (s) => t.$emit("edit", "phone"))
@@ -421,8 +420,8 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
421
420
  disabled: x.value,
422
421
  onClick: P
423
422
  }, {
424
- default: Y(() => l[5] || (l[5] = [
425
- X(" Отправить код ")
423
+ default: X(() => l[5] || (l[5] = [
424
+ Z(" Отправить код ")
426
425
  ])),
427
426
  _: 1,
428
427
  __: [5]
@@ -437,7 +436,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
437
436
  label: "Код",
438
437
  type: "text",
439
438
  error: Q.value,
440
- onInput: O,
439
+ onInput: D,
441
440
  onBlur: l[4] || (l[4] = (s) => z("code"))
442
441
  }, null, 8, ["modelValue", "error"])
443
442
  ])) : B("", !0),
@@ -449,13 +448,13 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
449
448
  "on-send-again": h,
450
449
  product: t.product
451
450
  }, {
452
- extra: Y(() => [
451
+ extra: X(() => [
453
452
  t.isTg ? (v(), S("span", {
454
453
  key: 0,
455
454
  class: "dialogDefaultContainerSendCodeBySmsText",
456
455
  onClick: y
457
456
  }, [
458
- X(q(t.sendCodeBySmsText) + " ", 1),
457
+ Z(G(t.sendCodeBySmsText) + " ", 1),
459
458
  b(r(de), { style: { "margin-left": "5px" } })
460
459
  ])) : B("", !0)
461
460
  ]),
@@ -479,23 +478,23 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
479
478
  initialPhone: { default: "" },
480
479
  language: {},
481
480
  provider: {},
482
- onDisableAddPhone: { type: Boolean, default: !1 },
481
+ disableAddPhone: { type: Boolean },
483
482
  mode: { default: void 0 }
484
483
  },
485
484
  emits: ["update:modelValue", "submit-phone", "edit", "close", "clean-input-errors", "on-update-jwt", "update-phone-field", "on-toast"],
486
485
  setup(U, { expose: V, emit: E }) {
487
- const u = U, c = E, f = D(u.modelValue);
486
+ const u = U, c = E, f = O(u.modelValue);
488
487
  _(
489
488
  () => u.modelValue,
490
489
  (n) => f.value = n
491
490
  ), _(f, (n) => c("update:modelValue", n));
492
- const p = I(() => u.language ?? "ru"), z = (n) => Oe[p.value] && Oe[p.value][n] || (u.title ?? n), Z = I(() => u.title ?? z("Смена номера телефона")), K = I(() => u.hintText ?? z("Чтобы продолжить, введите новый номер")), e = ve({
491
+ const p = I(() => u.language ?? "ru"), z = (n) => De[p.value] && De[p.value][n] || (u.title ?? n), Y = I(() => u.title ?? z("Смена номера телефона")), K = I(() => u.hintText ?? z("Чтобы продолжить, введите новый номер")), e = ve({
493
492
  oldPhone: u.initialPhone ?? "",
494
493
  newPhone: "",
495
494
  code: "",
496
495
  addPhone: "",
497
496
  addCode: ""
498
- }), x = D(H.OLD), P = D(null), C = D(!1), O = D(!1), h = D("tg"), y = I(() => h.value === "tg"), i = D(!1), { startTimer: L, remainingSeconds: ie, isAvailableForSendAgain: A, totalRateAttempts: Q, currentRateAttempt: t } = He(), { showRateLimitToast: l } = Je(c), { isEditFlow: s, getFlow: me } = Ge(D(u.mode)), re = I(() => A.value ? "Повторить" : `${ie.value}`), oe = D(ae), ue = I(() => oe.value === 0), Fe = (n) => new Promise((a) => setTimeout(a, n));
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));
499
498
  async function fe(n = "email") {
500
499
  var o;
501
500
  return (o = (await Ae("/users/profile/session/get-edit-session", { params: { field: n } })).data) == null ? void 0 : o.data;
@@ -506,7 +505,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
506
505
  field: n,
507
506
  oldValue: F(u.initialPhone)
508
507
  })).data) == null ? void 0 : $.data;
509
- return P.value = (o == null ? void 0 : o.sessionId) ?? null, x.value = (o == null ? void 0 : o.step) ?? H.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, 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;
510
509
  }
511
510
  async function Ue() {
512
511
  try {
@@ -540,7 +539,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
540
539
  }
541
540
  }
542
541
  const ye = async ({ phone: n }) => (i.value = !0, await ee({ value: n, isOnlySms: !0 })), ee = async ({ value: n, isOnlySms: a, offLoading: o } = {}) => {
543
- var $, T, N, R, W, j, w;
542
+ var $, T, N, R, q, W, w;
544
543
  C.value = !0;
545
544
  try {
546
545
  const g = n ?? e.oldPhone, m = await te(
@@ -560,14 +559,14 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
560
559
  }
561
560
  ), d = (T = ($ = m == null ? void 0 : m.data) == null ? void 0 : $.data) == null ? void 0 : T.deliveryType;
562
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)) {
563
- const M = (W = (R = m.data) == null ? void 0 : R.tooManyRequests) == null ? void 0 : W.type;
562
+ const M = (q = (R = m.data) == null ? void 0 : R.tooManyRequests) == null ? void 0 : q.type;
564
563
  h.value = M;
565
564
  const k = m.data.tooManyRequests;
566
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;
567
566
  }
568
567
  return m;
569
568
  } catch (g) {
570
- if ((g == null ? void 0 : g.status) === 403 && ((w = (j = g == null ? void 0 : g.response) == null ? void 0 : j.data) != null && w.tooManyRequests)) {
569
+ if ((g == null ? void 0 : g.status) === 403 && ((w = (W = g == null ? void 0 : g.response) == null ? void 0 : W.data) != null && w.tooManyRequests)) {
571
570
  const m = g.response.data.tooManyRequests.type;
572
571
  h.value = m;
573
572
  const d = g.response.data.tooManyRequests;
@@ -578,41 +577,41 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
578
577
  await Se(n ?? e.oldPhone), C.value = !1, o && (C.value = !1);
579
578
  }
580
579
  }, Me = async (n, a) => {
581
- var o, $, T, N, R, W, j, w, g, m, d;
580
+ var o, $, T, N, R, q, W, w, g, m, d;
582
581
  C.value = !0;
583
582
  try {
584
583
  const M = await fe("phone");
585
584
  P.value = M.sessionId, x.value = M.step, e.oldPhone = M.oldValue ?? e.oldPhone, e.newPhone = M.newValue ?? e.newPhone;
586
585
  const k = await te("/users/profile/change/phone/match-code", {
587
- phone: a === H.NEW ? F(e.newPhone) : F(e.oldPhone),
586
+ phone: a === j.NEW ? F(e.newPhone) : F(e.oldPhone),
588
587
  sessionId: P.value,
589
588
  code: n,
590
589
  step: a
591
- }), 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) ?? ((W = k.data) == null ? void 0 : W.rateLimit) ?? null;
592
- if (!(((j = k.data) == null ? void 0 : j.data.success) ?? ((w = k.data) == null ? void 0 : w.success))) {
593
- l(pe), O.value = !0;
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))) {
592
+ l(pe), D.value = !0;
594
593
  return;
595
594
  }
596
595
  if (!ne) return k;
597
- if (x.value = ne, ne === H.NEW) {
596
+ if (x.value = ne, ne === j.NEW) {
598
597
  const Ie = await fe("phone");
599
598
  e.oldPhone = Ie.oldValue ?? e.oldPhone, e.newPhone = Ie.newValue ?? e.newPhone, e.code = "";
600
599
  }
601
- return ne === H.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")), k;
602
601
  } catch (M) {
603
602
  const k = (m = (g = M == null ? void 0 : M.response) == null ? void 0 : g.data) == null ? void 0 : m.rateLimit;
604
603
  if (((d = M == null ? void 0 : M.response) == null ? void 0 : d.status) === 429 && k) {
605
- l(k), O.value = !0;
604
+ l(k), D.value = !0;
606
605
  return;
607
606
  }
608
607
  throw M;
609
608
  } finally {
610
609
  C.value = !1;
611
610
  }
612
- }, be = ({ code: n }) => Me(n, H.OLD);
611
+ }, be = ({ code: n }) => Me(n, j.OLD);
613
612
  function ke(n) {
614
613
  }
615
- const xe = ({ code: n }) => Me(n, H.NEW);
614
+ const xe = ({ code: n }) => Me(n, j.NEW);
616
615
  function Ve(n) {
617
616
  }
618
617
  const ce = () => {
@@ -656,7 +655,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
656
655
  isOnlySms: o = !1,
657
656
  offLoading: $ = !0
658
657
  } = {}) => {
659
- var T, N, R, W, j;
658
+ var T, N, R, q, W;
660
659
  C.value = !0;
661
660
  try {
662
661
  if (!P.value)
@@ -683,7 +682,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
683
682
  }
684
683
  return g;
685
684
  } catch (w) {
686
- if (console.error("sendContactCode catch error: ", w), (w == null ? void 0 : w.status) === 403 && ((j = (W = w == null ? void 0 : w.response) == null ? void 0 : W.data) != null && j.tooManyRequests)) {
685
+ if (console.error("sendContactCode catch error: ", w), (w == null ? void 0 : w.status) === 403 && ((W = (q = w == null ? void 0 : w.response) == null ? void 0 : q.data) != null && W.tooManyRequests)) {
687
686
  const g = w.response.data.tooManyRequests.type;
688
687
  h.value = g;
689
688
  const m = w.response.data.tooManyRequests;
@@ -695,7 +694,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
695
694
  w && w.restTimeSec > 0 ? (L(w.restTimeSec), A.value = !1) : A.value = !0, $ && (C.value = !1);
696
695
  }
697
696
  }, Ee = async ({ code: n }) => {
698
- var a, o, $, T, N, R, W, j, w, g, m;
697
+ var a, o, $, T, N, R, q, W, w, g, m;
699
698
  C.value = !0;
700
699
  try {
701
700
  if (!P.value) {
@@ -707,15 +706,15 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
707
706
  sessionId: P.value,
708
707
  code: n
709
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;
710
- if (!(((W = d.data) == null ? void 0 : W.data.success) ?? ((j = d.data) == null ? void 0 : j.success))) {
711
- l(k), O.value = !0;
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;
712
711
  return;
713
712
  }
714
- return M && M === H.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;
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;
715
714
  } catch (d) {
716
715
  const M = (g = (w = d == null ? void 0 : d.response) == null ? void 0 : w.data) == null ? void 0 : g.rateLimit;
717
716
  if (((m = d == null ? void 0 : d.response) == null ? void 0 : m.status) === 429 && M) {
718
- l(M), O.value = !0;
717
+ l(M), D.value = !0;
719
718
  return;
720
719
  }
721
720
  throw d;
@@ -739,7 +738,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
739
738
  loading: C,
740
739
  rateLimitText: re,
741
740
  isAvailable: ue,
742
- title: Z,
741
+ title: Y,
743
742
  hintText: K,
744
743
  handleClose: ce,
745
744
  sendContactCode: ee,
@@ -762,18 +761,18 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
762
761
  "close-on-click-outside": !0,
763
762
  "onClick:outside": ce
764
763
  }, {
765
- header: Y(() => [
766
- G("div", kt, [
764
+ header: X(() => [
765
+ H("div", kt, [
767
766
  b(r(Xe), {
768
767
  "slot-left": !1,
769
768
  size: "small",
770
769
  borded: !0,
771
770
  "no-padding": !1
772
771
  }, {
773
- title: Y(() => [
774
- G("span", xt, q(r(s) ? Z.value : "Добавление номера телефона"), 1)
772
+ title: X(() => [
773
+ H("span", xt, G(r(s) ? Y.value : "Добавление номера телефона"), 1)
775
774
  ]),
776
- "right-button": Y(() => [
775
+ "right-button": X(() => [
777
776
  b(r(Ye), {
778
777
  class: "cross",
779
778
  onClick: ce
@@ -783,10 +782,10 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
783
782
  })
784
783
  ])
785
784
  ]),
786
- default: Y(() => [
785
+ default: X(() => [
787
786
  r(s) ? (v(), S("div", Vt, [
788
- C.value ? (v(), J(De, { key: 0 })) : B("", !0),
789
- x.value === r(H).OLD ? (v(), J(dt, {
787
+ C.value ? (v(), J(Oe, { key: 0 })) : B("", !0),
788
+ x.value === r(j).OLD ? (v(), J(dt, {
790
789
  key: 1,
791
790
  phone: e.oldPhone,
792
791
  "onUpdate:phone": a[0] || (a[0] = (o) => e.oldPhone = o),
@@ -794,7 +793,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
794
793
  "onUpdate:code": a[1] || (a[1] = (o) => e.code = o),
795
794
  "rate-limit-text": re.value,
796
795
  "is-final-limit": ue.value,
797
- "is-not-match-code": O.value,
796
+ "is-not-match-code": D.value,
798
797
  loading: C.value,
799
798
  "is-tg": y.value,
800
799
  product: n.provider,
@@ -803,7 +802,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
803
802
  onOnSendOnlySms: ye,
804
803
  onOnMatchCode: be,
805
804
  onOnMatchCodeError: ke
806
- }, null, 8, ["phone", "code", "rate-limit-text", "is-final-limit", "is-not-match-code", "loading", "is-tg", "product"])) : x.value === r(H).NEW ? (v(), J(ft, {
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, {
807
806
  key: 2,
808
807
  phone: e.newPhone,
809
808
  "onUpdate:phone": a[4] || (a[4] = (o) => e.newPhone = o),
@@ -814,7 +813,7 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
814
813
  "hint-text": K.value,
815
814
  "rate-limit-text": re.value,
816
815
  "is-final-limit": ue.value,
817
- "is-not-match-code": O.value,
816
+ "is-not-match-code": D.value,
818
817
  loading: C.value,
819
818
  "is-tg": y.value,
820
819
  product: n.provider,
@@ -823,12 +822,12 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
823
822
  onOnSendOnlySms: ye,
824
823
  onOnMatchCode: xe,
825
824
  onOnMatchCodeError: Ve,
826
- onOnClearCodeError: a[9] || (a[9] = (o) => O.value = !1)
827
- }, null, 8, ["phone", "oldPhone", "code", "hint-text", "rate-limit-text", "is-final-limit", "is-not-match-code", "loading", "is-tg", "product"])) : x.value === r(H).COMPLETED ? (v(), S("div", $t, [
828
- G("p", null, q(z("Телефон успешно изменен")), 1)
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, [
827
+ H("p", null, G(z("Телефон успешно изменен")), 1)
829
828
  ])) : B("", !0)
830
829
  ])) : (v(), S("div", Bt, [
831
- C.value ? (v(), J(De, { key: 0 })) : B("", !0),
830
+ C.value ? (v(), J(Oe, { key: 0 })) : B("", !0),
832
831
  b(bt, {
833
832
  phone: e.addPhone,
834
833
  "onUpdate:phone": a[10] || (a[10] = (o) => e.addPhone = o),
@@ -839,17 +838,17 @@ const de = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }
839
838
  "hint-text": r(s) ? K.value : "Чтобы продолжить, введите новый номер",
840
839
  "rate-limit-text": re.value,
841
840
  "is-final-limit": ue.value,
842
- "is-not-match-code": O.value,
841
+ "is-not-match-code": D.value,
843
842
  loading: C.value,
844
843
  "is-tg": y.value,
845
- "on-disable-add-phone": n.onDisableAddPhone,
844
+ "disable-add-phone": n.disableAddPhone,
846
845
  product: n.provider,
847
846
  onOnSendCode: a[13] || (a[13] = (o) => ge({ value: e.addPhone, field: "phone" })),
848
847
  onOnSendCodeAgain: a[14] || (a[14] = (o) => ge({ value: e.addPhone, field: "phone", isOnlySms: !y.value && i.value })),
849
848
  onOnSendOnlySms: ye,
850
849
  onOnMatchCode: Ee,
851
850
  onOnMatchCodeError: Le
852
- }, null, 8, ["phone", "oldPhone", "code", "hint-text", "rate-limit-text", "is-final-limit", "is-not-match-code", "loading", "is-tg", "on-disable-add-phone", "product"])
851
+ }, null, 8, ["phone", "oldPhone", "code", "hint-text", "rate-limit-text", "is-final-limit", "is-not-match-code", "loading", "is-tg", "disable-add-phone", "product"])
853
852
  ]))
854
853
  ]),
855
854
  _: 1
@@ -14,7 +14,7 @@ declare const _default: import('vue').DefineComponent<{
14
14
  type?: string;
15
15
  }>;
16
16
  awsStorageUrl: string;
17
- onDisableAddPhone: boolean;
17
+ disableAddPhone: boolean;
18
18
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
19
  "on-update-jwt": (flow?: "email" | "phone" | "password" | undefined, mode?: ModeType | undefined, newValue?: string | undefined) => any;
20
20
  "on-password-error": (field: "email" | "phone" | "password", message: string) => any;
@@ -36,7 +36,7 @@ declare const _default: import('vue').DefineComponent<{
36
36
  type?: string;
37
37
  }>;
38
38
  awsStorageUrl: string;
39
- onDisableAddPhone: boolean;
39
+ disableAddPhone: boolean;
40
40
  }> & Readonly<{
41
41
  "onOn-update-jwt"?: ((flow?: "email" | "phone" | "password" | undefined, mode?: ModeType | undefined, newValue?: string | undefined) => any) | undefined;
42
42
  "onOn-password-error"?: ((field: "email" | "phone" | "password", message: string) => any) | undefined;
@@ -3,7 +3,7 @@ import { EmitToastType, LangFormatType, ProviderType } from '../types';
3
3
  declare const _default: import('vue').DefineComponent<{
4
4
  language: LangFormatType;
5
5
  provider: ProviderType;
6
- onDisableAddPhone: boolean;
6
+ disableAddPhone: boolean;
7
7
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
8
  "on-toast": (value: EmitToastType) => any;
9
9
  "clean-input-errors": () => any;
@@ -14,7 +14,7 @@ declare const _default: import('vue').DefineComponent<{
14
14
  }, string, import('vue').PublicProps, Readonly<{
15
15
  language: LangFormatType;
16
16
  provider: ProviderType;
17
- onDisableAddPhone: boolean;
17
+ disableAddPhone: boolean;
18
18
  }> & Readonly<{
19
19
  "onOn-toast"?: ((value: EmitToastType) => any) | undefined;
20
20
  "onClean-input-errors"?: (() => any) | undefined;
@@ -13,7 +13,7 @@ interface Props {
13
13
  loading: boolean;
14
14
  isTg: boolean;
15
15
  product: Provider;
16
- onDisableAddPhone: boolean;
16
+ disableAddPhone: boolean;
17
17
  }
18
18
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
19
  edit: (field: "phone") => any;
@@ -70,6 +70,6 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
70
70
  phoneError: string;
71
71
  showPhone: boolean;
72
72
  sendCodeBySmsText: string;
73
- onDisableAddPhone: boolean;
73
+ disableAddPhone: boolean;
74
74
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
75
75
  export default _default;
@@ -8,7 +8,7 @@ interface Props {
8
8
  initialPhone?: string;
9
9
  language: LangFormatType;
10
10
  provider: ProviderType;
11
- onDisableAddPhone: boolean;
11
+ disableAddPhone: boolean;
12
12
  mode?: ModeType;
13
13
  }
14
14
  declare function handleOldCodeError(payload: {
@@ -87,7 +87,6 @@ declare const _default: import('vue').DefineComponent<Props, {
87
87
  title: string;
88
88
  hintText: string;
89
89
  mode: ModeType;
90
- onDisableAddPhone: boolean;
91
90
  initialPhone: string;
92
91
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
93
92
  export default _default;
@@ -14,7 +14,7 @@ declare const _default: import('vue').DefineComponent<{
14
14
  type?: string;
15
15
  }>;
16
16
  awsStorageUrl: string;
17
- onDisableAddPhone: boolean;
17
+ disableAddPhone: boolean;
18
18
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
19
  "on-update-jwt": (flow?: "email" | "phone" | "password" | undefined, mode?: ModeType | undefined, newValue?: string | undefined) => any;
20
20
  "update-tokens": (accessToken: string, refreshToken: string) => any;
@@ -32,7 +32,7 @@ declare const _default: import('vue').DefineComponent<{
32
32
  type?: string;
33
33
  }>;
34
34
  awsStorageUrl: string;
35
- onDisableAddPhone: boolean;
35
+ disableAddPhone: boolean;
36
36
  }> & Readonly<{
37
37
  "onOn-update-jwt"?: ((flow?: "email" | "phone" | "password" | undefined, mode?: ModeType | undefined, newValue?: string | undefined) => any) | undefined;
38
38
  "onUpdate-tokens"?: ((accessToken: string, refreshToken: string) => any) | undefined;
@@ -1,4 +1,4 @@
1
- import { ref as w, shallowRef as Le, defineComponent as H, defineAsyncComponent as J, watch as ze, createBlock as I, createCommentVNode as C, unref as m, openBlock as y, resolveDynamicComponent as Me, mergeProps as Re, computed as T, reactive as q, onMounted as Ge, createElementBlock as k, Fragment as me, createVNode as g, createElementVNode as Y, withCtx as A, toDisplayString as F, createTextVNode as _, Teleport as ue, Transition as je, withDirectives as Je, vShow as qe } from "vue";
1
+ import { ref as w, shallowRef as Le, defineComponent as H, defineAsyncComponent as J, watch as ze, createBlock as I, createCommentVNode as C, unref as m, openBlock as y, resolveDynamicComponent as Me, mergeProps as Re, computed as T, reactive as q, onMounted as Ge, createElementBlock as k, Fragment as me, createVNode as g, createElementVNode as Y, withCtx as F, toDisplayString as D, createTextVNode as _, Teleport as ue, Transition as je, withDirectives as Je, vShow as qe } from "vue";
2
2
  import Ye from "axios";
3
3
  import { PInputFileUploader as _e, PInput as L, IconFilledEditMd as z, PButton as de, PImageCropper as We, PToast as Ke, PTeleportContainer as pe, PToastContainer as Ze } from "@profeat/ui-kit";
4
4
  function He(l, r = 2) {
@@ -21,7 +21,7 @@ function Xe(l) {
21
21
  return Qe[r] || ((n = r.split("/")[1]) == null ? void 0 : n.toUpperCase());
22
22
  });
23
23
  }
24
- const ba = {
24
+ const Na = {
25
25
  OLD: "old",
26
26
  NEW: "new",
27
27
  COMPLETED: "completed"
@@ -212,14 +212,14 @@ const na = {
212
212
  props: {
213
213
  language: {},
214
214
  provider: {},
215
- onDisableAddPhone: { type: Boolean }
215
+ disableAddPhone: { type: Boolean }
216
216
  },
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-BFVZACzO.js")),
221
- phone: J(() => import("./ProfilePhoneDialog-BozJVfL9.js")),
222
- password: J(() => import("./ProfilePasswordDialog-BSB6ZLoY.js"))
220
+ email: J(() => import("./ProfileEmailDialog-DYa19E4G.js")),
221
+ phone: J(() => import("./ProfilePhoneDialog-B8e-6I7N.js")),
222
+ password: J(() => import("./ProfilePasswordDialog-BeMoSpD_.js"))
223
223
  }, s = ({ email: h }) => {
224
224
  n("update-email-field", h);
225
225
  }, p = ({ phone: h }) => {
@@ -233,16 +233,16 @@ const na = {
233
233
  "onUpdate:modelValue": d[0] || (d[0] = (f) => u.value = f),
234
234
  language: h.language,
235
235
  provider: h.provider,
236
- "on-disable-add-phone": h.onDisableAddPhone
236
+ "disable-add-phone": h.disableAddPhone
237
237
  }, m(c), {
238
238
  onClose: m(U),
239
239
  onCleanInputErrors: d[1] || (d[1] = (f) => n("clean-input-errors")),
240
- onOnUpdateJwt: d[2] || (d[2] = (f, b, o) => n("on-update-jwt", f, b, o)),
240
+ onOnUpdateJwt: d[2] || (d[2] = (f, N, o) => n("on-update-jwt", f, N, o)),
241
241
  onSubmitEmail: s,
242
242
  onSubmitPhone: p,
243
- onOnPasswordError: d[3] || (d[3] = (f, b) => n("on-password-error", f, b)),
243
+ onOnPasswordError: d[3] || (d[3] = (f, N) => n("on-password-error", f, N)),
244
244
  onOnToast: d[4] || (d[4] = (f) => n("on-toast", f))
245
- }), null, 16, ["modelValue", "language", "provider", "on-disable-add-phone", "onClose"])) : C("", !0);
245
+ }), null, 16, ["modelValue", "language", "provider", "disable-add-phone", "onClose"])) : C("", !0);
246
246
  }
247
247
  }), sa = { class: "base-container" }, la = {
248
248
  key: 0,
@@ -273,11 +273,11 @@ const na = {
273
273
  refreshToken: {},
274
274
  fields: {},
275
275
  awsStorageUrl: {},
276
- onDisableAddPhone: { type: Boolean }
276
+ disableAddPhone: { type: Boolean }
277
277
  },
278
278
  emits: ["open-email-dialog", "open-phone-dialog", "open-password-dialog", "on-update-jwt", "on-password-error", "update-tokens"],
279
279
  setup(l, { emit: r }) {
280
- const n = l, u = r, v = T(() => n.language ?? "ru"), c = (e) => na[v.value][e] || e, { openDialog: U } = X(), i = q({ firstName: "", lastName: "" }), s = w({ firstName: "", lastName: "" }), p = q({ firstName: !1, lastName: !1, email: !1, phone: !1 }), h = w(""), d = w(""), f = w(""), b = w(!1), o = q({
280
+ const n = l, u = r, v = T(() => n.language ?? "ru"), c = (e) => na[v.value][e] || e, { openDialog: U } = X(), i = q({ firstName: "", lastName: "" }), s = w({ firstName: "", lastName: "" }), p = q({ firstName: !1, lastName: !1, email: !1, phone: !1 }), h = w(""), d = w(""), f = w(""), N = w(!1), o = q({
281
281
  value: null,
282
282
  loading: !1,
283
283
  accept: ["image/png", "image/jpeg"],
@@ -285,7 +285,7 @@ const na = {
285
285
  // 10 MB
286
286
  imageBinary: null,
287
287
  imageContent: ""
288
- }), B = w(""), S = w(!1), R = w(!0), G = w(!0), ee = w(void 0), ae = w(""), ce = T(() => oe(i.firstName, p.firstName)), fe = T(() => oe(i.lastName, p.lastName)), ge = T(() => p.email && !d.value.trim() ? "Введите e-mail" : ""), ve = T(() => p.phone && !f.value.trim() ? "Введите номер телефона" : ""), D = (e) => n.fields.some((a) => a.key === e), te = (e) => e && e.trim() ? "edit" : "bind", j = () => setTimeout(() => {
288
+ }), B = w(""), S = w(!1), R = w(!0), G = w(!0), ee = w(void 0), ae = w(""), ce = T(() => oe(i.firstName, p.firstName)), fe = T(() => oe(i.lastName, p.lastName)), ge = T(() => p.email && !d.value.trim() ? "Введите e-mail" : ""), ve = T(() => p.phone && !f.value.trim() ? "Введите номер телефона" : ""), A = (e) => n.fields.some((a) => a.key === e), te = (e) => e && e.trim() ? "edit" : "bind", j = () => setTimeout(() => {
289
289
  var e;
290
290
  return (e = document.activeElement) == null ? void 0 : e.blur();
291
291
  }, 0), he = T(() => !!(d.value && d.value.trim() !== "")), we = T(() => o.imageContent ? c("Загрузить другое фото") : c("Загрузить фото")), oe = (e, a) => {
@@ -294,9 +294,9 @@ const na = {
294
294
  return t ? t.length < 2 ? "Поле должно содержать минимум 2 символа" : "" : "Введите значение";
295
295
  }, ye = (e) => U("email", { mode: e ? "edit" : "bind", initialEmail: e }), Ee = () => {
296
296
  j(), p.email = !1, G.value = !1, u("open-email-dialog", d.value, te(d.value)), ye(d.value);
297
- }, Ne = () => {
297
+ }, be = () => {
298
298
  j(), p.phone = !1, R.value = !1, u("open-phone-dialog", f.value, te(f.value));
299
- }, be = async (e, a, t) => {
299
+ }, Ne = async (e, a, t) => {
300
300
  e === "email" && t && (d.value = t), e === "phone" && t && (f.value = t), u("on-update-jwt");
301
301
  }, Pe = (e) => {
302
302
  f.value = e;
@@ -319,14 +319,14 @@ const na = {
319
319
  ne();
320
320
  return;
321
321
  }
322
- const a = (($ = e.fileBinary) == null ? void 0 : $.type) ?? "", t = ((O = e.fileBinary) == null ? void 0 : O.size) ?? 0, P = !["image/png", "image/jpeg"].includes(a), N = t > o.uploadLimit;
323
- if (P || N) {
322
+ const a = (($ = e.fileBinary) == null ? void 0 : $.type) ?? "", t = ((O = e.fileBinary) == null ? void 0 : O.size) ?? 0, P = !["image/png", "image/jpeg"].includes(a), b = t > o.uploadLimit;
323
+ if (P || b) {
324
324
  B.value = "Файл не подходит. Пожалуйста, загрузите PNG или JPEG размером до 10 МБ", ne();
325
325
  return;
326
326
  }
327
- o.value = e, o.imageBinary = e.fileBinary ?? null, o.imageContent = e.fileContent ?? "", b.value = !0;
327
+ o.value = e, o.imageBinary = e.fileBinary ?? null, o.imageContent = e.fileContent ?? "", N.value = !0;
328
328
  }, ne = () => {
329
- o.value = null, o.imageBinary = null, o.imageContent = "", b.value = !1;
329
+ o.value = null, o.imageBinary = null, o.imageContent = "", N.value = !1;
330
330
  }, Be = async () => {
331
331
  try {
332
332
  const a = (await ta("/users/profile/delete/avatar")).data;
@@ -334,16 +334,16 @@ const na = {
334
334
  } catch (e) {
335
335
  return console.error("Ошибка при удалении аватара:", e), !1;
336
336
  }
337
- }, De = () => {
338
- B.value = "Файл не подходит. Пожалуйста, загрузите PNG или JPEG размером до 10 МБ", o.value = null, o.imageBinary = null, o.imageContent = "", b.value = !1;
337
+ }, Ae = () => {
338
+ B.value = "Файл не подходит. Пожалуйста, загрузите PNG или JPEG размером до 10 МБ", o.value = null, o.imageBinary = null, o.imageContent = "", N.value = !1;
339
339
  }, re = async (e, a, t = "image/png") => {
340
340
  if (!e) return null;
341
341
  const P = await (await fetch(e)).blob();
342
342
  return new File([P], a, { type: t });
343
- }, Ae = () => {
344
- o.value = null, o.imageBinary = null, o.imageContent = "", b.value = !1;
345
- }, Fe = async (e) => {
346
- b.value = !1;
343
+ }, Fe = () => {
344
+ o.value = null, o.imageBinary = null, o.imageContent = "", N.value = !1;
345
+ }, De = async (e) => {
346
+ N.value = !1;
347
347
  const a = o.imageContent;
348
348
  if (o.imageContent = e, !o.imageBinary) return;
349
349
  const t = await re(
@@ -379,8 +379,8 @@ const na = {
379
379
  if (a)
380
380
  try {
381
381
  se.value = !0;
382
- const N = (E = (await Z("/users/profile/update-name", { [e]: a })).data) == null ? void 0 : E.data;
383
- N != null && N.user && (i.firstName = N.user.firstName ?? i.firstName, i.lastName = N.user.lastName ?? i.lastName, s.value = {
382
+ const b = (E = (await Z("/users/profile/update-name", { [e]: a })).data) == null ? void 0 : E.data;
383
+ b != null && b.user && (i.firstName = b.user.firstName ?? i.firstName, i.lastName = b.user.lastName ?? i.lastName, s.value = {
384
384
  firstName: i.firstName,
385
385
  lastName: i.lastName
386
386
  });
@@ -404,13 +404,13 @@ const na = {
404
404
  const {
405
405
  userId: E,
406
406
  privateFirstName: P,
407
- privateLastName: N,
407
+ privateLastName: b,
408
408
  email: $,
409
409
  phoneNumber: O
410
410
  } = t;
411
- h.value = E ?? "", i.firstName = P ?? "", i.lastName = N ?? "", d.value = $ ?? "", f.value = O ?? "", o.imageContent = await Ve(), s.value = {
411
+ h.value = E ?? "", i.firstName = P ?? "", i.lastName = b ?? "", d.value = $ ?? "", f.value = O ?? "", o.imageContent = await Ve(), s.value = {
412
412
  firstName: P ?? "",
413
- lastName: N ?? ""
413
+ lastName: b ?? ""
414
414
  };
415
415
  } catch (a) {
416
416
  console.error("Критическая ошибка при загрузке профиля:", a);
@@ -436,8 +436,8 @@ const na = {
436
436
  const ie = T(() => {
437
437
  if (!s.value.firstName && !s.value.lastName)
438
438
  return !1;
439
- const e = i.firstName.trim(), a = i.lastName.trim(), t = s.value.firstName.trim(), E = s.value.lastName.trim(), P = e !== t || a !== E, N = e.length >= 2 && a.length >= 2;
440
- return P && N;
439
+ const e = i.firstName.trim(), a = i.lastName.trim(), t = s.value.firstName.trim(), E = s.value.lastName.trim(), P = e !== t || a !== E, b = e.length >= 2 && a.length >= 2;
440
+ return P && b;
441
441
  }), $e = async () => {
442
442
  if (ie.value)
443
443
  try {
@@ -459,16 +459,16 @@ const na = {
459
459
  g(ra, {
460
460
  language: v.value,
461
461
  provider: e.provider,
462
- "on-disable-add-phone": e.onDisableAddPhone,
462
+ "disable-add-phone": e.disableAddPhone,
463
463
  onCleanInputErrors: Te,
464
- onOnUpdateJwt: be,
464
+ onOnUpdateJwt: Ne,
465
465
  onUpdatePhoneField: Pe,
466
466
  onUpdateEmailField: Ce,
467
467
  onOnPasswordError: ke,
468
468
  onOnToast: V
469
- }, null, 8, ["language", "provider", "on-disable-add-phone"]),
469
+ }, null, 8, ["language", "provider", "disable-add-phone"]),
470
470
  Y("div", sa, [
471
- D("avatar") ? (y(), I(m(_e), {
471
+ A("avatar") ? (y(), I(m(_e), {
472
472
  key: 0,
473
473
  modelValue: o.value,
474
474
  "onUpdate:modelValue": [
@@ -483,17 +483,17 @@ const na = {
483
483
  "upload-limit": o.uploadLimit,
484
484
  accept: "image/jpeg, image/png",
485
485
  onDelete: Be,
486
- "onChange:error": De
486
+ "onChange:error": Ae
487
487
  }, {
488
- afterLoadLabel: A(() => [
489
- _(F(we.value), 1)
488
+ afterLoadLabel: F(() => [
489
+ _(D(we.value), 1)
490
490
  ]),
491
- subtext: A(() => [
492
- B.value ? (y(), k("span", la, F(B.value), 1)) : (y(), k("span", ia, F(`${c("Формат")} ${m(Xe)(o.accept).join(", ")} ${c("до")} ${m(He)(o.uploadLimit)}`), 1))
491
+ subtext: F(() => [
492
+ B.value ? (y(), k("span", la, D(B.value), 1)) : (y(), k("span", ia, D(`${c("Формат")} ${m(Xe)(o.accept).join(", ")} ${c("до")} ${m(He)(o.uploadLimit)}`), 1))
493
493
  ]),
494
494
  _: 1
495
495
  }, 8, ["modelValue", "src", "loading", "label", "upload-limit"])) : C("", !0),
496
- D("firstName") ? (y(), k("div", ua, [
496
+ A("firstName") ? (y(), k("div", ua, [
497
497
  g(m(L), {
498
498
  modelValue: i.firstName,
499
499
  "onUpdate:modelValue": a[2] || (a[2] = (t) => i.firstName = t),
@@ -505,7 +505,7 @@ const na = {
505
505
  }, null, 8, ["modelValue", "label", "error"]),
506
506
  g(m(z), { class: "icon-locked" })
507
507
  ])) : C("", !0),
508
- D("lastName") ? (y(), k("div", da, [
508
+ A("lastName") ? (y(), k("div", da, [
509
509
  g(m(L), {
510
510
  modelValue: i.lastName,
511
511
  "onUpdate:modelValue": a[5] || (a[5] = (t) => i.lastName = t),
@@ -517,7 +517,7 @@ const na = {
517
517
  }, null, 8, ["modelValue", "label", "error"]),
518
518
  g(m(z), { class: "icon-locked" })
519
519
  ])) : C("", !0),
520
- D("email") ? (y(), k("div", ma, [
520
+ A("email") ? (y(), k("div", ma, [
521
521
  g(m(L), {
522
522
  modelValue: d.value,
523
523
  "onUpdate:modelValue": a[8] || (a[8] = (t) => d.value = t),
@@ -534,7 +534,7 @@ const na = {
534
534
  }, null, 8, ["modelValue", "error"]),
535
535
  g(m(z), { class: "icon-locked" })
536
536
  ])) : C("", !0),
537
- D("phone") ? (y(), k("div", pa, [
537
+ A("phone") ? (y(), k("div", pa, [
538
538
  g(m(L), {
539
539
  modelValue: f.value,
540
540
  "onUpdate:modelValue": a[11] || (a[11] = (t) => f.value = t),
@@ -547,7 +547,7 @@ const na = {
547
547
  error: ve.value && R.value,
548
548
  onBlur: a[12] || (a[12] = (t) => p.phone = !0),
549
549
  onInput: a[13] || (a[13] = (t) => x("phone")),
550
- onClick: Ne
550
+ onClick: be
551
551
  }, null, 8, ["modelValue", "label", "error"]),
552
552
  g(m(z), { class: "icon-locked" })
553
553
  ])) : C("", !0),
@@ -557,8 +557,8 @@ const na = {
557
557
  color: "secondary",
558
558
  onClick: Oe
559
559
  }, {
560
- default: A(() => [
561
- _(F(c("Сменить пароль")), 1)
560
+ default: F(() => [
561
+ _(D(c("Сменить пароль")), 1)
562
562
  ]),
563
563
  _: 1
564
564
  })) : C("", !0),
@@ -566,23 +566,23 @@ const na = {
566
566
  disabled: !ie.value,
567
567
  onClick: $e
568
568
  }, {
569
- default: A(() => [
570
- _(F(c("Сохранить")), 1)
569
+ default: F(() => [
570
+ _(D(c("Сохранить")), 1)
571
571
  ]),
572
572
  _: 1
573
573
  }, 8, ["disabled"])
574
574
  ])
575
575
  ]),
576
- b.value ? (y(), I(ue, {
576
+ N.value ? (y(), I(ue, {
577
577
  key: 0,
578
578
  to: "body"
579
579
  }, [
580
- b.value ? (y(), k("div", fa, [
580
+ N.value ? (y(), k("div", fa, [
581
581
  g(m(We), {
582
582
  "circle-mode": !0,
583
583
  "model-value": o.imageContent,
584
- onClose: Ae,
585
- onSave: a[14] || (a[14] = (t) => Fe(t)),
584
+ onClose: Fe,
585
+ onSave: a[14] || (a[14] = (t) => De(t)),
586
586
  "onUpdate:modelValue": a[15] || (a[15] = (t) => Ie(t))
587
587
  }, null, 8, ["model-value"])
588
588
  ])) : C("", !0)
@@ -590,7 +590,7 @@ const na = {
590
590
  (y(), I(ue, { to: "#toast-root" }, [
591
591
  Y("div", ga, [
592
592
  g(je, { name: "list" }, {
593
- default: A(() => [
593
+ default: F(() => [
594
594
  Je(g(m(Ke), {
595
595
  class: "toast",
596
596
  color: ee.value,
@@ -612,7 +612,7 @@ const na = {
612
612
  for (const [u, v] of r)
613
613
  n[u] = v;
614
614
  return n;
615
- }, wa = /* @__PURE__ */ ha(va, [["__scopeId", "data-v-05cc0841"]]), Ca = /* @__PURE__ */ H({
615
+ }, wa = /* @__PURE__ */ ha(va, [["__scopeId", "data-v-74ba6f97"]]), Ca = /* @__PURE__ */ H({
616
616
  __name: "index",
617
617
  props: {
618
618
  throttlerPrefix: {},
@@ -623,7 +623,7 @@ const na = {
623
623
  language: {},
624
624
  fields: {},
625
625
  awsStorageUrl: {},
626
- onDisableAddPhone: { type: Boolean }
626
+ disableAddPhone: { type: Boolean }
627
627
  },
628
628
  emits: ["on-update-jwt", "update-tokens"],
629
629
  setup(l, { emit: r }) {
@@ -647,19 +647,19 @@ const na = {
647
647
  "access-token": s.accessToken,
648
648
  "refresh-token": s.refreshToken,
649
649
  "aws-storage-url": s.awsStorageUrl,
650
- "on-disable-add-phone": s.onDisableAddPhone,
650
+ "disable-add-phone": s.disableAddPhone,
651
651
  onOpenEmailDialog: v,
652
652
  onOpenPhoneDialog: c,
653
653
  onOpenPasswordDialog: U,
654
654
  onOnUpdateJwt: i
655
- }, null, 8, ["throttler-prefix", "provider", "request-url", "language", "fields", "access-token", "refresh-token", "aws-storage-url", "on-disable-add-phone"]),
655
+ }, null, 8, ["throttler-prefix", "provider", "request-url", "language", "fields", "access-token", "refresh-token", "aws-storage-url", "disable-add-phone"]),
656
656
  g(m(pe))
657
657
  ], 64));
658
658
  }
659
659
  });
660
660
  export {
661
661
  Pa as B,
662
- ba as C,
662
+ Na as C,
663
663
  ha as _,
664
664
  Ca as a,
665
665
  aa as g,
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".avatar-input[data-v-05cc0841] .p-input-file .overlay{visibility:hidden}.avatar-input[data-v-05cc0841] .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-DR9kwm5X.js";
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";
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-DR9kwm5X.js";
3
+ import { _ as b, g as C, p as R } from "./index-BBWJGgsC.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.1",
3
+ "version": "0.51.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",