@yourgoods/ui-smart 0.53.18 → 0.53.19
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.
- package/dist/{ProfileEmailDialog-BbhNKSOk.js → ProfileEmailDialog-BQLBNg6b.js} +2 -2
- package/dist/{ProfilePasswordDialog-CkYb2LOi.js → ProfilePasswordDialog-BZIN1kYX.js} +1 -1
- package/dist/{ProfilePhoneDialog-BY6M853s.js → ProfilePhoneDialog-DMNpDaUO.js} +2 -2
- package/dist/{index-9eaWDUBI.js → index-BnD6HxHD.js} +50 -50
- package/dist/index.js +2 -2
- package/dist/{useRateLimitToast-BReD9DL4.js → useRateLimitToast-CQUXF4j6.js} +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
3
|
-
import { C as F, _ as He, B as qe, p as W, g as je } from "./index-
|
|
2
|
+
import { _ as ve, c as ke, u as Re, a as ze, P as Me, b as We } from "./useRateLimitToast-CQUXF4j6.js";
|
|
3
|
+
import { C as F, _ as He, B as qe, p as W, g as je } from "./index-BnD6HxHD.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-
|
|
2
|
+
import { C as I, p as D, g as Ve } from "./index-BnD6HxHD.js";
|
|
3
3
|
import { PDialog as be, PInput as M, IconEyeMd as O, IconEyeClosedMd as U, PButton as F, PTopBar as Te, IconCrossMd as Ie, PTeleportContainer as xe } from "@profeat/ui-kit";
|
|
4
4
|
function ke(b) {
|
|
5
5
|
return { showPasswordRateLimitToast: (P) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createElementBlock as S, openBlock as v, createElementVNode as H, defineComponent as he, reactive as ve, watch as _, ref as O, toRefs as Ce, computed as I, createCommentVNode as B, createVNode as b, toDisplayString as G, createBlock as J, createTextVNode as Z, unref as r, isRef as le, withCtx as X, onMounted as We, Fragment as je } from "vue";
|
|
2
|
-
import { _ as we, c as Ne, a as He, u as Ge, P as Oe, b as Je } from "./useRateLimitToast-
|
|
2
|
+
import { _ as we, c as Ne, a as He, u as Ge, P as Oe, b as Je } from "./useRateLimitToast-CQUXF4j6.js";
|
|
3
3
|
import { IconTelegramSm as Pe, PInput as se, IconPhoneMd as Re, IconMailMd as Ke, PButton as ze, PDialog as Qe, PTopBar as Xe, IconCrossMd as Ye, PTeleportContainer as Ze } from "@profeat/ui-kit";
|
|
4
|
-
import { C as j, t as De, p as te, g as Ae } from "./index-
|
|
4
|
+
import { C as j, t as De, p as te, g as Ae } from "./index-BnD6HxHD.js";
|
|
5
5
|
const _e = {
|
|
6
6
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7
7
|
width: "12",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as h, shallowRef as _e, defineComponent as q, defineAsyncComponent as Y, watch as pe, createBlock as x, createCommentVNode as T, unref as
|
|
1
|
+
import { ref as h, shallowRef as _e, defineComponent as q, defineAsyncComponent as Y, watch as pe, createBlock as x, createCommentVNode as T, unref as f, openBlock as b, resolveDynamicComponent as Oe, mergeProps as Re, computed as V, reactive as X, onMounted as Ge, createElementBlock as D, Fragment as ce, createVNode as y, createElementVNode as K, withCtx as $, toDisplayString as z, createTextVNode as Z, Teleport as de, Transition as je, withDirectives as Je, vShow as qe } from "vue";
|
|
2
2
|
import We from "axios";
|
|
3
3
|
import { PInputFileUploader as Ye, PInput as L, IconFilledEditMd as j, PButton as me, PImageCropper as Xe, PToast as Ke, PTeleportContainer as fe, PToastContainer as Ze, IconPhoneMd as He, IconMailMd as Qe } from "@profeat/ui-kit";
|
|
4
4
|
function ea(l, i = 2) {
|
|
@@ -218,9 +218,9 @@ const sa = {
|
|
|
218
218
|
emits: ["clean-input-errors", "on-update-jwt", "update-phone-field", "update-email-field", "on-password-error", "on-toast"],
|
|
219
219
|
setup(l, { emit: i }) {
|
|
220
220
|
const t = i, o = h(!0), { currentDialog: d, dialogPayload: v, closeDialog: I } = te(), u = {
|
|
221
|
-
email: Y(() => import("./ProfileEmailDialog-
|
|
222
|
-
phone: Y(() => import("./ProfilePhoneDialog-
|
|
223
|
-
password: Y(() => import("./ProfilePasswordDialog-
|
|
221
|
+
email: Y(() => import("./ProfileEmailDialog-BQLBNg6b.js")),
|
|
222
|
+
phone: Y(() => import("./ProfilePhoneDialog-DMNpDaUO.js")),
|
|
223
|
+
password: Y(() => import("./ProfilePasswordDialog-BZIN1kYX.js"))
|
|
224
224
|
}, m = ({ email: E }) => {
|
|
225
225
|
t("update-email-field", E);
|
|
226
226
|
}, p = ({ phone: E }) => {
|
|
@@ -228,20 +228,20 @@ const sa = {
|
|
|
228
228
|
};
|
|
229
229
|
return pe(d, (E) => {
|
|
230
230
|
o.value = !!E;
|
|
231
|
-
}), (E, s) =>
|
|
231
|
+
}), (E, s) => f(d) ? (b(), x(Oe(u[f(d)]), Re({
|
|
232
232
|
key: 0,
|
|
233
233
|
modelValue: o.value,
|
|
234
234
|
"onUpdate:modelValue": s[0] || (s[0] = (g) => o.value = g),
|
|
235
235
|
language: E.language,
|
|
236
236
|
provider: E.provider,
|
|
237
237
|
"disable-add-phone": E.disableAddPhone
|
|
238
|
-
},
|
|
239
|
-
onClose:
|
|
238
|
+
}, f(v), {
|
|
239
|
+
onClose: f(I),
|
|
240
240
|
onCleanInputErrors: s[1] || (s[1] = (g) => t("clean-input-errors")),
|
|
241
|
-
onOnUpdateJwt: s[2] || (s[2] = (g,
|
|
241
|
+
onOnUpdateJwt: s[2] || (s[2] = (g, c, r) => t("on-update-jwt", g, c, r)),
|
|
242
242
|
onSubmitEmail: m,
|
|
243
243
|
onSubmitPhone: p,
|
|
244
|
-
onOnPasswordError: s[3] || (s[3] = (g,
|
|
244
|
+
onOnPasswordError: s[3] || (s[3] = (g, c) => t("on-password-error", g, c)),
|
|
245
245
|
onOnToast: s[4] || (s[4] = (g) => t("on-toast", g))
|
|
246
246
|
}), null, 16, ["modelValue", "language", "provider", "disable-add-phone", "onClose"])) : T("", !0);
|
|
247
247
|
}
|
|
@@ -278,7 +278,7 @@ const sa = {
|
|
|
278
278
|
},
|
|
279
279
|
emits: ["open-email-dialog", "open-phone-dialog", "open-password-dialog", "on-update-jwt", "on-password-error", "update-tokens"],
|
|
280
280
|
setup(l, { emit: i }) {
|
|
281
|
-
const t = l, o = i, d = V(() => t.language ?? "ru"), v = (e) => sa[d.value][e] || e, { openDialog: I } = te(), u = X({ firstName: "", lastName: "" }), m = h({ firstName: "", lastName: "" }), p = X({ firstName: !1, lastName: !1, email: !1, phone: !1 }), E = h(""), s = h(""), g = h(""),
|
|
281
|
+
const t = l, o = i, d = V(() => t.language ?? "ru"), v = (e) => sa[d.value][e] || e, { openDialog: I } = te(), u = X({ firstName: "", lastName: "" }), m = h({ firstName: "", lastName: "" }), p = X({ firstName: !1, lastName: !1, email: !1, phone: !1 }), E = h(""), s = h(""), g = h(""), c = h(!1), r = X({
|
|
282
282
|
value: null,
|
|
283
283
|
loading: !1,
|
|
284
284
|
accept: ["image/png", "image/jpeg"],
|
|
@@ -325,9 +325,9 @@ const sa = {
|
|
|
325
325
|
C.value = "Файл не подходит. Пожалуйста, загрузите PNG или JPEG размером до 10 МБ", re();
|
|
326
326
|
return;
|
|
327
327
|
}
|
|
328
|
-
r.value = e, r.imageBinary = e.fileBinary ?? null, r.imageContent = e.fileContent ?? "",
|
|
328
|
+
r.value = e, r.imageBinary = e.fileBinary ?? null, r.imageContent = e.fileContent ?? "", c.value = !0;
|
|
329
329
|
}, re = () => {
|
|
330
|
-
r.value = null, r.imageBinary = null, r.imageContent = "",
|
|
330
|
+
r.value = null, r.imageBinary = null, r.imageContent = "", c.value = !1;
|
|
331
331
|
}, Be = async () => {
|
|
332
332
|
try {
|
|
333
333
|
const a = (await ra("/users/profile/delete/avatar")).data;
|
|
@@ -336,15 +336,15 @@ const sa = {
|
|
|
336
336
|
return console.error("Ошибка при удалении аватара:", e), !1;
|
|
337
337
|
}
|
|
338
338
|
}, Ve = () => {
|
|
339
|
-
C.value = "Файл не подходит. Пожалуйста, загрузите PNG или JPEG размером до 10 МБ", r.value = null, r.imageBinary = null, r.imageContent = "",
|
|
339
|
+
C.value = "Файл не подходит. Пожалуйста, загрузите PNG или JPEG размером до 10 МБ", r.value = null, r.imageBinary = null, r.imageContent = "", c.value = !1;
|
|
340
340
|
}, le = async (e, a, n = "image/png") => {
|
|
341
341
|
if (!e) return null;
|
|
342
342
|
const k = await (await fetch(e)).blob();
|
|
343
343
|
return new File([k], a, { type: n });
|
|
344
344
|
}, Ae = () => {
|
|
345
|
-
r.value = null, r.imageBinary = null, r.imageContent = "",
|
|
345
|
+
r.value = null, r.imageBinary = null, r.imageContent = "", c.value = !1;
|
|
346
346
|
}, Fe = async (e) => {
|
|
347
|
-
|
|
347
|
+
c.value = !1;
|
|
348
348
|
const a = r.imageContent;
|
|
349
349
|
if (r.imageContent = e, !r.imageBinary) return;
|
|
350
350
|
const n = await le(
|
|
@@ -469,7 +469,7 @@ const sa = {
|
|
|
469
469
|
onOnToast: _
|
|
470
470
|
}, null, 8, ["language", "provider", "disable-add-phone"]),
|
|
471
471
|
K("div", ua, [
|
|
472
|
-
M("avatar") ? (b(), x(
|
|
472
|
+
M("avatar") ? (b(), x(f(Ye), {
|
|
473
473
|
key: 0,
|
|
474
474
|
modelValue: r.value,
|
|
475
475
|
"onUpdate:modelValue": [
|
|
@@ -490,12 +490,12 @@ const sa = {
|
|
|
490
490
|
Z(z(be.value), 1)
|
|
491
491
|
]),
|
|
492
492
|
subtext: $(() => [
|
|
493
|
-
C.value ? (b(), D("span", da, z(C.value), 1)) : (b(), D("span", ma, z(`${v("Формат")} ${
|
|
493
|
+
C.value ? (b(), D("span", da, z(C.value), 1)) : (b(), D("span", ma, z(`${v("Формат")} ${f(ta)(r.accept).join(", ")} ${v("до")} ${f(ea)(r.uploadLimit)}`), 1))
|
|
494
494
|
]),
|
|
495
495
|
_: 1
|
|
496
496
|
}, 8, ["modelValue", "src", "loading", "label", "upload-limit"])) : T("", !0),
|
|
497
497
|
M("firstName") ? (b(), D("div", pa, [
|
|
498
|
-
y(
|
|
498
|
+
y(f(L), {
|
|
499
499
|
modelValue: u.firstName,
|
|
500
500
|
"onUpdate:modelValue": a[2] || (a[2] = (n) => u.firstName = n),
|
|
501
501
|
size: "large",
|
|
@@ -504,10 +504,10 @@ const sa = {
|
|
|
504
504
|
onBlur: a[3] || (a[3] = (n) => p.firstName = !0),
|
|
505
505
|
onInput: a[4] || (a[4] = (n) => O("firstName"))
|
|
506
506
|
}, null, 8, ["modelValue", "label", "error"]),
|
|
507
|
-
y(
|
|
507
|
+
y(f(j), { class: "icon-locked" })
|
|
508
508
|
])) : T("", !0),
|
|
509
509
|
M("lastName") ? (b(), D("div", ca, [
|
|
510
|
-
y(
|
|
510
|
+
y(f(L), {
|
|
511
511
|
modelValue: u.lastName,
|
|
512
512
|
"onUpdate:modelValue": a[5] || (a[5] = (n) => u.lastName = n),
|
|
513
513
|
size: "large",
|
|
@@ -516,10 +516,10 @@ const sa = {
|
|
|
516
516
|
onBlur: a[6] || (a[6] = (n) => p.lastName = !0),
|
|
517
517
|
onInput: a[7] || (a[7] = (n) => O("lastName"))
|
|
518
518
|
}, null, 8, ["modelValue", "label", "error"]),
|
|
519
|
-
y(
|
|
519
|
+
y(f(j), { class: "icon-locked" })
|
|
520
520
|
])) : T("", !0),
|
|
521
521
|
M("email") ? (b(), D("div", fa, [
|
|
522
|
-
y(
|
|
522
|
+
y(f(L), {
|
|
523
523
|
modelValue: s.value,
|
|
524
524
|
"onUpdate:modelValue": a[8] || (a[8] = (n) => s.value = n),
|
|
525
525
|
size: "large",
|
|
@@ -533,10 +533,10 @@ const sa = {
|
|
|
533
533
|
onInput: a[10] || (a[10] = (n) => O("email")),
|
|
534
534
|
onClick: Pe
|
|
535
535
|
}, null, 8, ["modelValue", "error"]),
|
|
536
|
-
y(
|
|
536
|
+
y(f(j), { class: "icon-locked" })
|
|
537
537
|
])) : T("", !0),
|
|
538
538
|
M("phone") ? (b(), D("div", ga, [
|
|
539
|
-
y(
|
|
539
|
+
y(f(L), {
|
|
540
540
|
modelValue: g.value,
|
|
541
541
|
"onUpdate:modelValue": a[11] || (a[11] = (n) => g.value = n),
|
|
542
542
|
size: "large",
|
|
@@ -550,10 +550,10 @@ const sa = {
|
|
|
550
550
|
onInput: a[13] || (a[13] = (n) => O("phone")),
|
|
551
551
|
onClick: Ne
|
|
552
552
|
}, null, 8, ["modelValue", "label", "error"]),
|
|
553
|
-
y(
|
|
553
|
+
y(f(j), { class: "icon-locked" })
|
|
554
554
|
])) : T("", !0),
|
|
555
555
|
K("div", va, [
|
|
556
|
-
we.value ? (b(), x(
|
|
556
|
+
we.value ? (b(), x(f(me), {
|
|
557
557
|
key: 0,
|
|
558
558
|
color: "secondary",
|
|
559
559
|
onClick: Le
|
|
@@ -563,7 +563,7 @@ const sa = {
|
|
|
563
563
|
]),
|
|
564
564
|
_: 1
|
|
565
565
|
})) : T("", !0),
|
|
566
|
-
y(
|
|
566
|
+
y(f(me), {
|
|
567
567
|
disabled: !ue.value,
|
|
568
568
|
onClick: ze
|
|
569
569
|
}, {
|
|
@@ -574,12 +574,12 @@ const sa = {
|
|
|
574
574
|
}, 8, ["disabled"])
|
|
575
575
|
])
|
|
576
576
|
]),
|
|
577
|
-
|
|
577
|
+
c.value ? (b(), x(de, {
|
|
578
578
|
key: 0,
|
|
579
579
|
to: "body"
|
|
580
580
|
}, [
|
|
581
|
-
|
|
582
|
-
y(
|
|
581
|
+
c.value ? (b(), D("div", ha, [
|
|
582
|
+
y(f(Xe), {
|
|
583
583
|
"circle-mode": !0,
|
|
584
584
|
"model-value": r.imageContent,
|
|
585
585
|
onClose: Ae,
|
|
@@ -592,7 +592,7 @@ const sa = {
|
|
|
592
592
|
K("div", ya, [
|
|
593
593
|
y(je, { name: "list" }, {
|
|
594
594
|
default: $(() => [
|
|
595
|
-
Je(y(
|
|
595
|
+
Je(y(f(Ke), {
|
|
596
596
|
class: "toast",
|
|
597
597
|
color: A.value,
|
|
598
598
|
text: F.value,
|
|
@@ -605,7 +605,7 @@ const sa = {
|
|
|
605
605
|
})
|
|
606
606
|
])
|
|
607
607
|
])),
|
|
608
|
-
y(
|
|
608
|
+
y(f(fe))
|
|
609
609
|
], 64));
|
|
610
610
|
}
|
|
611
611
|
}), ge = (l, i) => {
|
|
@@ -638,7 +638,7 @@ const sa = {
|
|
|
638
638
|
t("on-update-jwt", m, p, E);
|
|
639
639
|
};
|
|
640
640
|
return (m, p) => (b(), D(ce, null, [
|
|
641
|
-
y(
|
|
641
|
+
y(f(Ze)),
|
|
642
642
|
y(ba, {
|
|
643
643
|
"throttler-prefix": m.throttlerPrefix,
|
|
644
644
|
provider: m.provider,
|
|
@@ -654,7 +654,7 @@ const sa = {
|
|
|
654
654
|
onOpenPasswordDialog: I,
|
|
655
655
|
onOnUpdateJwt: u
|
|
656
656
|
}, null, 8, ["throttler-prefix", "provider", "request-url", "language", "fields", "access-token", "refresh-token", "aws-storage-url", "disable-add-phone"]),
|
|
657
|
-
y(
|
|
657
|
+
y(f(fe))
|
|
658
658
|
], 64));
|
|
659
659
|
}
|
|
660
660
|
}), Ea = 10, Pa = 10, Na = 15;
|
|
@@ -698,11 +698,11 @@ const Va = { class: "smart-input" }, Aa = /* @__PURE__ */ q({
|
|
|
698
698
|
emits: ["update:modelValue", "validity-change", "type-change"],
|
|
699
699
|
setup(l, { emit: i }) {
|
|
700
700
|
const t = l, o = i, d = V(() => {
|
|
701
|
-
var s, g,
|
|
701
|
+
var s, g, c, r, C, U, B, w, A, F, S;
|
|
702
702
|
return {
|
|
703
703
|
mode: ((s = t.config) == null ? void 0 : s.mode) ?? "auto",
|
|
704
704
|
phone: {
|
|
705
|
-
enabled: ((
|
|
705
|
+
enabled: ((c = (g = t.config) == null ? void 0 : g.phone) == null ? void 0 : c.enabled) ?? !0,
|
|
706
706
|
minDigits: ((C = (r = t.config) == null ? void 0 : r.phone) == null ? void 0 : C.minDigits) ?? 10,
|
|
707
707
|
maxDigits: ((B = (U = t.config) == null ? void 0 : U.phone) == null ? void 0 : B.maxDigits) ?? 15,
|
|
708
708
|
autoPlus: ((A = (w = t.config) == null ? void 0 : w.phone) == null ? void 0 : A.autoPlus) ?? !0
|
|
@@ -718,23 +718,23 @@ const Va = { class: "smart-input" }, Aa = /* @__PURE__ */ q({
|
|
|
718
718
|
function E(s) {
|
|
719
719
|
var C, U, B;
|
|
720
720
|
console.debug("👾 onNativeInput: ", s.target), console.debug("👾 modelValue: ", t.modelValue, u.value);
|
|
721
|
-
const
|
|
721
|
+
const c = s.target.value, r = d.value.mode === "auto" ? Ba(c, d.value) : d.value.mode;
|
|
722
722
|
if (m.value = r, o("type-change", r), r === "email") {
|
|
723
|
-
const w = Da(
|
|
724
|
-
p.value =
|
|
723
|
+
const w = Da(c);
|
|
724
|
+
p.value = c.length === 0 || w ? "" : ((C = t.errorMessages) == null ? void 0 : C.invalidEmail) ?? "Это не похоже на email", u.value = c, I.value = c, o("update:modelValue", c), o("validity-change", w);
|
|
725
725
|
return;
|
|
726
726
|
}
|
|
727
727
|
if (r === "phone") {
|
|
728
|
+
if (u.value = c, o("update:modelValue", c), Ia(c)) {
|
|
729
|
+
p.value = ((U = t.errorMessages) == null ? void 0 : U.invalidPhoneChars) ?? "Допустимы только цифры и знак +", o("validity-change", !1);
|
|
730
|
+
return;
|
|
731
|
+
}
|
|
728
732
|
const w = Ca(
|
|
729
|
-
|
|
733
|
+
c,
|
|
730
734
|
d.value.phone.autoPlus,
|
|
731
735
|
t.locale
|
|
732
736
|
), A = ka(w);
|
|
733
|
-
if (u.value = w, o("update:modelValue", w),
|
|
734
|
-
p.value = ((U = t.errorMessages) == null ? void 0 : U.invalidPhoneChars) ?? "Допустимы только цифры и знак +", o("validity-change", !1);
|
|
735
|
-
return;
|
|
736
|
-
}
|
|
737
|
-
if (A.length > d.value.phone.maxDigits) {
|
|
737
|
+
if (u.value = w, o("update:modelValue", w), I.value = w, A.length > d.value.phone.maxDigits) {
|
|
738
738
|
const S = w.slice(
|
|
739
739
|
0,
|
|
740
740
|
w.startsWith("+") ? d.value.phone.maxDigits + 1 : d.value.phone.maxDigits
|
|
@@ -742,7 +742,7 @@ const Va = { class: "smart-input" }, Aa = /* @__PURE__ */ q({
|
|
|
742
742
|
u.value = S, I.value = S, o("update:modelValue", S);
|
|
743
743
|
return;
|
|
744
744
|
}
|
|
745
|
-
if (
|
|
745
|
+
if (A.length < Pa) {
|
|
746
746
|
p.value = "", o("validity-change", !1);
|
|
747
747
|
return;
|
|
748
748
|
}
|
|
@@ -755,7 +755,7 @@ const Va = { class: "smart-input" }, Aa = /* @__PURE__ */ q({
|
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
return (s, g) => (b(), D("div", Va, [
|
|
758
|
-
y(
|
|
758
|
+
y(f(L), {
|
|
759
759
|
ref_key: "inputRef",
|
|
760
760
|
ref: v,
|
|
761
761
|
"model-value": u.value,
|
|
@@ -766,17 +766,17 @@ const Va = { class: "smart-input" }, Aa = /* @__PURE__ */ q({
|
|
|
766
766
|
label: s.label ?? "Email или телефон",
|
|
767
767
|
onInput: E
|
|
768
768
|
}, null, 8, ["model-value", "readonly", "error", "type", "size", "label"]),
|
|
769
|
-
m.value === "phone" ? (b(), x(
|
|
769
|
+
m.value === "phone" ? (b(), x(f(He), {
|
|
770
770
|
key: 0,
|
|
771
771
|
class: "smart-input__icon"
|
|
772
772
|
})) : T("", !0),
|
|
773
|
-
m.value === "email" ? (b(), x(
|
|
773
|
+
m.value === "email" ? (b(), x(f(Qe), {
|
|
774
774
|
key: 1,
|
|
775
775
|
class: "smart-input__icon"
|
|
776
776
|
})) : T("", !0)
|
|
777
777
|
]));
|
|
778
778
|
}
|
|
779
|
-
}), La = /* @__PURE__ */ ge(Aa, [["__scopeId", "data-v-
|
|
779
|
+
}), La = /* @__PURE__ */ ge(Aa, [["__scopeId", "data-v-36257294"]]);
|
|
780
780
|
export {
|
|
781
781
|
$a as B,
|
|
782
782
|
Ma as C,
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".avatar-input[data-v-a56fcdbb] .p-input-file .overlay{visibility:hidden}.avatar-input[data-v-a56fcdbb] .p-input-file:hover .overlay{visibility:visible}.smart-input[data-v-
|
|
2
|
-
import { a as o, i as r } from "./index-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".avatar-input[data-v-a56fcdbb] .p-input-file .overlay{visibility:hidden}.avatar-input[data-v-a56fcdbb] .p-input-file:hover .overlay{visibility:visible}.smart-input[data-v-36257294]{position:relative;width:100%}.smart-input__icon[data-v-36257294]{position:absolute;top:16px;right:16px;pointer-events:none;opacity:.5}.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:100%;min-height:94px;background:#e4606026;border-radius:8px}.finalLimitText{text-align:center;max-width:100%;word-wrap:break-word;font-family:Inter,sans-serif;font-size:14px;line-height:20px;color:#5d7285}.finalLimitLink{font-family:Inter,sans-serif;font-weight:600;font-size:14px;line-height:20px;color:#1c7ef1;text-align:center;cursor:pointer;text-decoration:none}.finalLimitLink:hover{text-decoration:underline}.toastWrapper{position:fixed;bottom:1rem;right:1rem;z-index:9999}.toast{width:100%}.base-container{margin-top:1.5rem;display:flex;flex-direction:column;gap:1.25rem;width:490px;height:428px}.icon-disabled{pointer-events:none;position:absolute;right:1rem;top:1rem;color:#b6c7d6}.centered-overlay{position:absolute;left:50%;top:50%;z-index:1000;height:100%;width:100%;transform:translate(-50%,-50%)}.buttons-container{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-start}.buttons-container PButton{flex:1 1 100%}._loaderOverlay_cpu73_1[data-v-9e697525]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;background:#ffffffb3;border-radius:16px;z-index:99}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
import { a as o, i as r } from "./index-BnD6HxHD.js";
|
|
3
3
|
export {
|
|
4
4
|
o as PEditUserContact,
|
|
5
5
|
r as PEmailOrPhoneInput
|
|
@@ -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-
|
|
3
|
+
import { _ as b, g as C, p as R } from "./index-BnD6HxHD.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")}`;
|