@yourgoods/ui-smart 0.47.0 → 0.47.1

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 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";
2
+ import { T as ve, c as $e, u as Re, a as ze, P as Te, b as We } from "./useRateLimitToast-CcrT2O8l.js";
3
+ import { C as R, _ as He, B as _e, p as H, g as qe } from "./index-dEoNAWMA.js";
4
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,
@@ -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-xXK11ev0.js";
2
+ import { C as I, p as D, g as Ve } from "./index-dEoNAWMA.js";
3
3
  import { PDialog as be, PInput as M, IconEyeMd as O, IconEyeClosedMd as U, PButton as F, PTopBar as Te, IconCrossMd as Ie, PTeleportContainer as xe } from "@profeat/ui-kit";
4
4
  function ke(b) {
5
5
  return { showPasswordRateLimitToast: (P) => {
@@ -1,7 +1,7 @@
1
1
  import { createElementBlock as 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";
2
+ import { T as we, c as Ne, a as He, u as Ge, P as Oe, b as Je } from "./useRateLimitToast-CcrT2O8l.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-xXK11ev0.js";
4
+ import { C as j, t as De, p as te, g as Ae } from "./index-dEoNAWMA.js";
5
5
  const _e = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
7
  width: "12",
@@ -1,6 +1,6 @@
1
- import { ref as h, shallowRef as Oe, defineComponent as H, defineAsyncComponent as q, watch as ze, createBlock as I, createCommentVNode as b, unref as d, openBlock as w, resolveDynamicComponent as Me, mergeProps as Re, computed as T, reactive as J, onMounted as Ge, createElementBlock as k, Fragment as de, createVNode as g, createElementVNode as _, withCtx as F, toDisplayString as D, createTextVNode as Y, Teleport as ue, Transition as je, withDirectives as qe, vShow as Je } from "vue";
1
+ import { ref as h, shallowRef as Oe, defineComponent as H, defineAsyncComponent as J, watch as ze, createBlock as S, createCommentVNode as b, unref as d, openBlock as w, resolveDynamicComponent as Me, mergeProps as Re, computed as T, reactive as q, onMounted as Ge, createElementBlock as k, Fragment as de, createVNode as f, createElementVNode as _, withCtx as D, toDisplayString as I, createTextVNode as Y, Teleport as ue, Transition as je, withDirectives as Je, vShow as qe } from "vue";
2
2
  import _e from "axios";
3
- import { PInputFileUploader as Ye, PInput as O, IconFilledEditMd as z, PButton as me, PImageCropper as We, PToast as Ke, PTeleportContainer as ce, PToastContainer as Ze } from "@profeat/ui-kit";
3
+ import { PInputFileUploader as Ye, PInput as O, IconFilledEditMd as z, PButton as me, PImageCropper as We, PToast as Ke, PTeleportContainer as pe, PToastContainer as Ze } from "@profeat/ui-kit";
4
4
  function He(s, n = 2) {
5
5
  if (s === 0)
6
6
  return "0 B";
@@ -215,31 +215,31 @@ const ra = {
215
215
  },
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
- const r = n, u = h(!0), { currentDialog: v, dialogPayload: p, closeDialog: U } = X(), l = {
219
- email: q(() => import("./ProfileEmailDialog-D7meJIOd.js")),
220
- phone: q(() => import("./ProfilePhoneDialog-DUxLeNPV.js")),
221
- password: q(() => import("./ProfilePasswordDialog-DmvyrGhz.js"))
218
+ const r = n, u = h(!0), { currentDialog: v, dialogPayload: c, closeDialog: U } = X(), l = {
219
+ email: J(() => import("./ProfileEmailDialog-MzhcuunW.js")),
220
+ phone: J(() => import("./ProfilePhoneDialog-CfQWR0hT.js")),
221
+ password: J(() => import("./ProfilePasswordDialog-DThU1gK-.js"))
222
222
  }, i = ({ email: y }) => {
223
223
  r("update-email-field", y);
224
- }, c = ({ phone: y }) => {
224
+ }, p = ({ phone: y }) => {
225
225
  r("update-phone-field", y);
226
226
  };
227
227
  return ze(v, (y) => {
228
228
  u.value = !!y;
229
- }), (y, m) => d(v) ? (w(), I(Me(l[d(v)]), Re({
229
+ }), (y, m) => d(v) ? (w(), S(Me(l[d(v)]), Re({
230
230
  key: 0,
231
231
  modelValue: u.value,
232
- "onUpdate:modelValue": m[0] || (m[0] = (f) => u.value = f),
232
+ "onUpdate:modelValue": m[0] || (m[0] = (g) => u.value = g),
233
233
  language: y.language,
234
234
  provider: y.provider
235
- }, d(p), {
235
+ }, d(c), {
236
236
  onClose: d(U),
237
- onCleanInputErrors: m[1] || (m[1] = (f) => r("clean-input-errors")),
238
- onOnUpdateJwt: m[2] || (m[2] = (f, C, o) => r("on-update-jwt", f, C, o)),
237
+ onCleanInputErrors: m[1] || (m[1] = (g) => r("clean-input-errors")),
238
+ onOnUpdateJwt: m[2] || (m[2] = (g, C, o) => r("on-update-jwt", g, C, o)),
239
239
  onSubmitEmail: i,
240
- onSubmitPhone: c,
241
- onOnPasswordError: m[3] || (m[3] = (f, C) => r("on-password-error", f, C)),
242
- onOnToast: m[4] || (m[4] = (f) => r("on-toast", f))
240
+ onSubmitPhone: p,
241
+ onOnPasswordError: m[3] || (m[3] = (g, C) => r("on-password-error", g, C)),
242
+ onOnToast: m[4] || (m[4] = (g) => r("on-toast", g))
243
243
  }), null, 16, ["modelValue", "language", "provider", "onClose"])) : b("", !0);
244
244
  }
245
245
  }), sa = { class: "base-container" }, la = {
@@ -254,13 +254,13 @@ const ra = {
254
254
  }, da = {
255
255
  key: 3,
256
256
  class: "input-wrapper"
257
- }, ca = {
257
+ }, pa = {
258
258
  key: 4,
259
259
  class: "input-wrapper"
260
- }, pa = { class: "buttons-container" }, fa = {
260
+ }, ca = { class: "buttons-container" }, ga = {
261
261
  key: 0,
262
262
  class: "centered-overlay"
263
- }, ga = { class: "toastWrapper" }, va = /* @__PURE__ */ H({
263
+ }, fa = { class: "toastWrapper" }, va = /* @__PURE__ */ H({
264
264
  __name: "PEditUserContact",
265
265
  props: {
266
266
  language: {},
@@ -274,7 +274,7 @@ const ra = {
274
274
  },
275
275
  emits: ["open-email-dialog", "open-phone-dialog", "open-password-dialog", "on-update-jwt", "on-password-error", "update-tokens"],
276
276
  setup(s, { emit: n }) {
277
- const r = s, u = n, v = T(() => r.language ?? "ru"), p = (e) => ra[v.value][e] || e, { openDialog: U } = X(), l = J({ firstName: "", lastName: "" }), i = h({ firstName: "", lastName: "" }), c = J({ firstName: !1, lastName: !1, email: !1, phone: !1 }), y = h(""), m = h(""), f = h(""), C = h(!1), o = J({
277
+ const r = s, u = n, v = T(() => r.language ?? "ru"), c = (e) => ra[v.value][e] || e, { openDialog: U } = X(), l = q({ firstName: "", lastName: "" }), i = h({ firstName: "", lastName: "" }), p = q({ firstName: !1, lastName: !1, email: !1, phone: !1 }), y = h(""), m = h(""), g = h(""), C = h(!1), o = q({
278
278
  value: null,
279
279
  loading: !1,
280
280
  accept: ["image/png", "image/jpeg"],
@@ -282,21 +282,21 @@ const ra = {
282
282
  // 10 MB
283
283
  imageBinary: null,
284
284
  imageContent: ""
285
- }), S = h(""), A = h(!1), R = h(!0), G = h(!0), ee = h(void 0), ae = h(""), pe = T(() => oe(l.firstName, c.firstName)), fe = T(() => oe(l.lastName, c.lastName)), ge = T(() => c.email && !m.value.trim() ? "Введите e-mail" : ""), ve = T(() => c.phone && !f.value.trim() ? "Введите номер телефона" : ""), B = (e) => r.fields.some((a) => a.key === e), te = (e) => e && e.trim() ? "edit" : "bind", j = () => setTimeout(() => {
285
+ }), B = h(""), A = h(!1), R = h(!0), G = h(!0), ee = h(void 0), ae = h(""), ce = T(() => oe(l.firstName, p.firstName)), ge = T(() => oe(l.lastName, p.lastName)), fe = T(() => p.email && !m.value.trim() ? "Введите e-mail" : ""), ve = T(() => p.phone && !g.value.trim() ? "Введите номер телефона" : ""), F = (e) => r.fields.some((a) => a.key === e), te = (e) => e && e.trim() ? "edit" : "bind", j = () => setTimeout(() => {
286
286
  var e;
287
287
  return (e = document.activeElement) == null ? void 0 : e.blur();
288
- }, 0), he = T(() => !!(m.value && m.value.trim() !== "")), we = T(() => o.imageContent ? p("Загрузить другое фото") : p("Загрузить фото")), oe = (e, a) => {
288
+ }, 0), he = T(() => !!(m.value && m.value.trim() !== "")), we = T(() => o.imageContent ? c("Загрузить другое фото") : c("Загрузить фото")), oe = (e, a) => {
289
289
  if (!a) return "";
290
290
  const t = e.trim();
291
291
  return t ? t.length < 2 ? "Поле должно содержать минимум 2 символа" : "" : "Введите значение";
292
292
  }, ye = (e) => U("email", { mode: e ? "edit" : "bind", initialEmail: e }), Ee = () => {
293
- j(), c.email = !1, G.value = !1, u("open-email-dialog", m.value, te(m.value)), ye(m.value);
293
+ j(), p.email = !1, G.value = !1, u("open-email-dialog", m.value, te(m.value)), ye(m.value);
294
294
  }, Ne = () => {
295
- j(), c.phone = !1, R.value = !1, u("open-phone-dialog", f.value, te(f.value));
295
+ j(), p.phone = !1, R.value = !1, u("open-phone-dialog", g.value, te(g.value));
296
296
  }, Ce = async (e, a, t) => {
297
- e === "email" && t && (m.value = t), e === "phone" && t && (f.value = t), u("on-update-jwt");
297
+ e === "email" && t && (m.value = t), e === "phone" && t && (g.value = t), u("on-update-jwt");
298
298
  }, Pe = (e) => {
299
- f.value = e;
299
+ g.value = e;
300
300
  }, be = (e) => {
301
301
  console.debug("emitUpdateEmailField, цепочка такая: profileEmailDialog -> DialogManager -> PEditUserContact", e), m.value = e;
302
302
  }, ke = (e, a) => {
@@ -306,19 +306,19 @@ const ra = {
306
306
  }, V = (e) => {
307
307
  A.value = !0, ee.value = e.color ?? "", ae.value = e.text ?? "";
308
308
  }, x = (e) => {
309
- if (c[e] = !0, e === "firstName" || e === "lastName") {
309
+ if (p[e] = !0, e === "firstName" || e === "lastName") {
310
310
  const a = l[e];
311
311
  a.length > 40 && (l[e] = a.slice(0, 40), console.debug(`[Input Limit] Поле '${e}' достигло 40 символов. Ввод обрезан.`));
312
312
  }
313
313
  }, Ue = (e) => {
314
314
  var $, L;
315
- if (S.value = "", !e) {
315
+ if (B.value = "", !e) {
316
316
  re();
317
317
  return;
318
318
  }
319
319
  const a = (($ = e.fileBinary) == null ? void 0 : $.type) ?? "", t = ((L = e.fileBinary) == null ? void 0 : L.size) ?? 0, P = !["image/png", "image/jpeg"].includes(a), N = t > o.uploadLimit;
320
320
  if (P || N) {
321
- S.value = "Файл не подходит. Пожалуйста, загрузите PNG или JPEG размером до 10 МБ", re();
321
+ B.value = "Файл не подходит. Пожалуйста, загрузите PNG или JPEG размером до 10 МБ", re();
322
322
  return;
323
323
  }
324
324
  o.value = e, o.imageBinary = e.fileBinary ?? null, o.imageContent = e.fileContent ?? "", C.value = !0;
@@ -332,7 +332,7 @@ const ra = {
332
332
  return console.error("Ошибка при удалении аватара:", e), !1;
333
333
  }
334
334
  }, Fe = () => {
335
- o.value = null, o.imageBinary = null, o.imageContent = "", C.value = !1;
335
+ B.value = "Файл не подходит. Пожалуйста, загрузите PNG или JPEG размером до 10 МБ", o.value = null, o.imageBinary = null, o.imageContent = "", C.value = !1;
336
336
  }, ne = async (e, a, t = "image/png") => {
337
337
  if (!e) return null;
338
338
  const P = await (await fetch(e)).blob();
@@ -359,7 +359,7 @@ const ra = {
359
359
  } catch (E) {
360
360
  console.error(E), V({
361
361
  color: "error",
362
- text: p("Не удалось сохранить изменения. Попробуйте позже")
362
+ text: c("Не удалось сохранить изменения. Попробуйте позже")
363
363
  }), o.imageContent = a;
364
364
  } finally {
365
365
  o.loading = !1;
@@ -405,7 +405,7 @@ const ra = {
405
405
  email: $,
406
406
  phoneNumber: L
407
407
  } = t;
408
- y.value = E ?? "", l.firstName = P ?? "", l.lastName = N ?? "", m.value = $ ?? "", f.value = L ?? "", o.imageContent = await Ve(), i.value = {
408
+ y.value = E ?? "", l.firstName = P ?? "", l.lastName = N ?? "", m.value = $ ?? "", g.value = L ?? "", o.imageContent = await Ve(), i.value = {
409
409
  firstName: P ?? "",
410
410
  lastName: N ?? ""
411
411
  };
@@ -442,7 +442,7 @@ const ra = {
442
442
  } catch (e) {
443
443
  console.error(e), V({
444
444
  color: "error",
445
- text: p("Не удалось сохранить изменения. Попробуйте позже")
445
+ text: c("Не удалось сохранить изменения. Попробуйте позже")
446
446
  });
447
447
  }
448
448
  }, Le = () => {
@@ -453,7 +453,7 @@ const ra = {
453
453
  if (!r.requestUrl) throw new Error("auth-backend url не передан в props");
454
454
  ea(r.accessToken, r.requestUrl), await Ae();
455
455
  }), (e, a) => (w(), k(de, null, [
456
- g(na, {
456
+ f(na, {
457
457
  language: v.value,
458
458
  provider: e.provider,
459
459
  onCleanInputErrors: Te,
@@ -464,7 +464,7 @@ const ra = {
464
464
  onOnToast: V
465
465
  }, null, 8, ["language", "provider"]),
466
466
  _("div", sa, [
467
- B("avatar") ? (w(), I(d(Ye), {
467
+ F("avatar") ? (w(), S(d(Ye), {
468
468
  key: 0,
469
469
  modelValue: o.value,
470
470
  "onUpdate:modelValue": [
@@ -474,47 +474,47 @@ const ra = {
474
474
  type: "img",
475
475
  class: "avatar-input",
476
476
  src: o.imageContent,
477
- accept: o.accept,
478
477
  loading: o.loading,
479
- label: p("Загрузить фото"),
478
+ label: c("Загрузить фото"),
480
479
  "upload-limit": o.uploadLimit,
480
+ accept: "image/jpeg, image/png",
481
481
  onDelete: Be,
482
482
  "onChange:error": Fe
483
483
  }, {
484
- afterLoadLabel: F(() => [
485
- Y(D(we.value), 1)
484
+ afterLoadLabel: D(() => [
485
+ Y(I(we.value), 1)
486
486
  ]),
487
- subtext: F(() => [
488
- S.value ? (w(), k("span", la, D(S.value), 1)) : (w(), k("span", ia, D(`${p("Формат")} ${d(Xe)(o.accept).join(", ")} ${p("до")} ${d(He)(o.uploadLimit)}`), 1))
487
+ subtext: D(() => [
488
+ B.value ? (w(), k("span", la, I(B.value), 1)) : (w(), k("span", ia, I(`${c("Формат")} ${d(Xe)(o.accept).join(", ")} ${c("до")} ${d(He)(o.uploadLimit)}`), 1))
489
489
  ]),
490
490
  _: 1
491
- }, 8, ["modelValue", "src", "accept", "loading", "label", "upload-limit"])) : b("", !0),
492
- B("firstName") ? (w(), k("div", ua, [
493
- g(d(O), {
491
+ }, 8, ["modelValue", "src", "loading", "label", "upload-limit"])) : b("", !0),
492
+ F("firstName") ? (w(), k("div", ua, [
493
+ f(d(O), {
494
494
  modelValue: l.firstName,
495
495
  "onUpdate:modelValue": a[2] || (a[2] = (t) => l.firstName = t),
496
496
  size: "large",
497
- label: p("Имя"),
498
- error: pe.value,
499
- onBlur: a[3] || (a[3] = (t) => c.firstName = !0),
497
+ label: c("Имя"),
498
+ error: ce.value,
499
+ onBlur: a[3] || (a[3] = (t) => p.firstName = !0),
500
500
  onInput: a[4] || (a[4] = (t) => x("firstName"))
501
501
  }, null, 8, ["modelValue", "label", "error"]),
502
- g(d(z), { class: "icon-locked" })
502
+ f(d(z), { class: "icon-locked" })
503
503
  ])) : b("", !0),
504
- B("lastName") ? (w(), k("div", ma, [
505
- g(d(O), {
504
+ F("lastName") ? (w(), k("div", ma, [
505
+ f(d(O), {
506
506
  modelValue: l.lastName,
507
507
  "onUpdate:modelValue": a[5] || (a[5] = (t) => l.lastName = t),
508
508
  size: "large",
509
- label: p("Фамилия"),
510
- error: fe.value,
511
- onBlur: a[6] || (a[6] = (t) => c.lastName = !0),
509
+ label: c("Фамилия"),
510
+ error: ge.value,
511
+ onBlur: a[6] || (a[6] = (t) => p.lastName = !0),
512
512
  onInput: a[7] || (a[7] = (t) => x("lastName"))
513
513
  }, null, 8, ["modelValue", "label", "error"]),
514
- g(d(z), { class: "icon-locked" })
514
+ f(d(z), { class: "icon-locked" })
515
515
  ])) : b("", !0),
516
- B("email") ? (w(), k("div", da, [
517
- g(d(O), {
516
+ F("email") ? (w(), k("div", da, [
517
+ f(d(O), {
518
518
  modelValue: m.value,
519
519
  "onUpdate:modelValue": a[8] || (a[8] = (t) => m.value = t),
520
520
  size: "large",
@@ -523,58 +523,58 @@ const ra = {
523
523
  type: "email",
524
524
  readonly: "",
525
525
  style: { cursor: "pointer" },
526
- error: ge.value && G.value,
527
- onBlur: a[9] || (a[9] = (t) => c.email = !0),
526
+ error: fe.value && G.value,
527
+ onBlur: a[9] || (a[9] = (t) => p.email = !0),
528
528
  onInput: a[10] || (a[10] = (t) => x("email")),
529
529
  onClick: Ee
530
530
  }, null, 8, ["modelValue", "error"]),
531
- g(d(z), { class: "icon-locked" })
531
+ f(d(z), { class: "icon-locked" })
532
532
  ])) : b("", !0),
533
- B("phone") ? (w(), k("div", ca, [
534
- g(d(O), {
535
- modelValue: f.value,
536
- "onUpdate:modelValue": a[11] || (a[11] = (t) => f.value = t),
533
+ F("phone") ? (w(), k("div", pa, [
534
+ f(d(O), {
535
+ modelValue: g.value,
536
+ "onUpdate:modelValue": a[11] || (a[11] = (t) => g.value = t),
537
537
  size: "large",
538
538
  "text-size": "medium",
539
- label: p("Номер телефона"),
539
+ label: c("Номер телефона"),
540
540
  type: "tel",
541
541
  readonly: "",
542
542
  style: { cursor: "pointer" },
543
543
  error: ve.value && R.value,
544
- onBlur: a[12] || (a[12] = (t) => c.phone = !0),
544
+ onBlur: a[12] || (a[12] = (t) => p.phone = !0),
545
545
  onInput: a[13] || (a[13] = (t) => x("phone")),
546
546
  onClick: Ne
547
547
  }, null, 8, ["modelValue", "label", "error"]),
548
- g(d(z), { class: "icon-locked" })
548
+ f(d(z), { class: "icon-locked" })
549
549
  ])) : b("", !0),
550
- _("div", pa, [
551
- he.value ? (w(), I(d(me), {
550
+ _("div", ca, [
551
+ he.value ? (w(), S(d(me), {
552
552
  key: 0,
553
553
  color: "secondary",
554
554
  onClick: Le
555
555
  }, {
556
- default: F(() => [
557
- Y(D(p("Сменить пароль")), 1)
556
+ default: D(() => [
557
+ Y(I(c("Сменить пароль")), 1)
558
558
  ]),
559
559
  _: 1
560
560
  })) : b("", !0),
561
- g(d(me), {
561
+ f(d(me), {
562
562
  disabled: !ie.value,
563
563
  onClick: $e
564
564
  }, {
565
- default: F(() => [
566
- Y(D(p("Сохранить")), 1)
565
+ default: D(() => [
566
+ Y(I(c("Сохранить")), 1)
567
567
  ]),
568
568
  _: 1
569
569
  }, 8, ["disabled"])
570
570
  ])
571
571
  ]),
572
- C.value ? (w(), I(ue, {
572
+ C.value ? (w(), S(ue, {
573
573
  key: 0,
574
574
  to: "body"
575
575
  }, [
576
- C.value ? (w(), k("div", fa, [
577
- g(d(We), {
576
+ C.value ? (w(), k("div", ga, [
577
+ f(d(We), {
578
578
  "circle-mode": !0,
579
579
  "model-value": o.imageContent,
580
580
  onClose: De,
@@ -583,24 +583,24 @@ const ra = {
583
583
  }, null, 8, ["model-value"])
584
584
  ])) : b("", !0)
585
585
  ])) : b("", !0),
586
- (w(), I(ue, { to: "#toast-root" }, [
587
- _("div", ga, [
588
- g(je, { name: "list" }, {
589
- default: F(() => [
590
- qe(g(d(Ke), {
586
+ (w(), S(ue, { to: "#toast-root" }, [
587
+ _("div", fa, [
588
+ f(je, { name: "list" }, {
589
+ default: D(() => [
590
+ Je(f(d(Ke), {
591
591
  class: "toast",
592
592
  color: ee.value,
593
593
  text: ae.value,
594
594
  onClose: a[16] || (a[16] = (t) => A.value = !1)
595
595
  }, null, 8, ["color", "text"]), [
596
- [Je, A.value]
596
+ [qe, A.value]
597
597
  ])
598
598
  ]),
599
599
  _: 1
600
600
  })
601
601
  ])
602
602
  ])),
603
- g(d(ce))
603
+ f(d(pe))
604
604
  ], 64));
605
605
  }
606
606
  }), ha = (s, n) => {
@@ -608,7 +608,7 @@ const ra = {
608
608
  for (const [u, v] of n)
609
609
  r[u] = v;
610
610
  return r;
611
- }, wa = /* @__PURE__ */ ha(va, [["__scopeId", "data-v-965c8738"]]), ba = /* @__PURE__ */ H({
611
+ }, wa = /* @__PURE__ */ ha(va, [["__scopeId", "data-v-7d90f646"]]), ba = /* @__PURE__ */ H({
612
612
  __name: "index",
613
613
  props: {
614
614
  throttlerPrefix: {},
@@ -622,18 +622,18 @@ const ra = {
622
622
  },
623
623
  emits: ["on-update-jwt", "update-tokens"],
624
624
  setup(s, { emit: n }) {
625
- const r = n, { openDialog: u } = X(), v = (i, c) => {
626
- u("email", { initialEmail: i, mode: c });
627
- }, p = (i, c) => {
628
- u("phone", { initialPhone: i, mode: c });
625
+ const r = n, { openDialog: u } = X(), v = (i, p) => {
626
+ u("email", { initialEmail: i, mode: p });
627
+ }, c = (i, p) => {
628
+ u("phone", { initialPhone: i, mode: p });
629
629
  }, U = () => {
630
630
  u("password");
631
- }, l = (i, c, y) => {
632
- r("on-update-jwt", i, c, y);
631
+ }, l = (i, p, y) => {
632
+ r("on-update-jwt", i, p, y);
633
633
  };
634
- return (i, c) => (w(), k(de, null, [
635
- g(d(Ze)),
636
- g(wa, {
634
+ return (i, p) => (w(), k(de, null, [
635
+ f(d(Ze)),
636
+ f(wa, {
637
637
  "throttler-prefix": i.throttlerPrefix,
638
638
  provider: i.provider,
639
639
  "request-url": i.requestUrl,
@@ -643,11 +643,11 @@ const ra = {
643
643
  "refresh-token": i.refreshToken,
644
644
  "aws-storage-url": i.awsStorageUrl,
645
645
  onOpenEmailDialog: v,
646
- onOpenPhoneDialog: p,
646
+ onOpenPhoneDialog: c,
647
647
  onOpenPasswordDialog: U,
648
648
  onOnUpdateJwt: l
649
649
  }, null, 8, ["throttler-prefix", "provider", "request-url", "language", "fields", "access-token", "refresh-token", "aws-storage-url"]),
650
- g(d(ce))
650
+ f(d(pe))
651
651
  ], 64));
652
652
  }
653
653
  });
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-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-xXK11ev0.js";
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".avatar-input[data-v-7d90f646] .p-input-file .overlay{visibility:hidden}.avatar-input[data-v-7d90f646] .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-dEoNAWMA.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-xXK11ev0.js";
3
+ import { _ as g, g as R, p as h } from "./index-dEoNAWMA.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.47.0",
3
+ "version": "0.47.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",