@yourgoods/ui-smart 0.29.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ProfileEmailDialog-C8sbKDBt.js → ProfileEmailDialog-eu5X-GFo.js} +14 -16
- package/dist/{ProfilePasswordDialog-BU5kLsA4.js → ProfilePasswordDialog-C4IbTcxc.js} +1 -1
- package/dist/{ProfilePhoneDialog-C6twsXvY.js → ProfilePhoneDialog-W_8Fz3wA.js} +14 -16
- package/dist/{index-CbfiAEJa.js → index-Cw7l0kGP.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{useRateLimitToast-XGNRZRhf.js → useRateLimitToast-BgatZ5Cx.js} +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as te, ref as b, reactive as Q, watch as Y, computed as M, toRefs as de, createElementBlock as x, openBlock as w, createElementVNode as S, createCommentVNode as D, toDisplayString as X, createVNode as k, unref as u, isRef as Z, withCtx as G, createTextVNode as ae, Fragment as Oe, createBlock as H, resolveDynamicComponent as Ce, onMounted as Ue } from "vue";
|
|
2
|
-
import { T as ue, c as Ve, u as Ae, a as Fe, P as ye, b as Re } from "./useRateLimitToast-
|
|
3
|
-
import { C as A, _ as ze, B as We, p as W, g as He } from "./index-
|
|
2
|
+
import { T as ue, c as Ve, u as Ae, a as Fe, P as ye, b as Re } from "./useRateLimitToast-BgatZ5Cx.js";
|
|
3
|
+
import { C as A, _ as ze, B as We, p as W, g as He } from "./index-Cw7l0kGP.js";
|
|
4
4
|
import { PInput as J, IconMailMd as me, PButton as oe, IconEyeMd as ge, IconEyeClosedMd as he, PDialog as _e, PTopBar as qe, IconCrossMd as je } from "@profeat/ui-kit";
|
|
5
5
|
const Ge = { class: "dialogDefaultContainerInsideContent" }, Ye = { class: "dialogDefaultContainerTextHint" }, Je = {
|
|
6
6
|
key: 0,
|
|
@@ -52,23 +52,22 @@ const Ge = { class: "dialogDefaultContainerInsideContent" }, Ye = { class: "dial
|
|
|
52
52
|
e.value = "Это не похоже на e-mail";
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
55
|
-
const l = await Ve(n.emailModel);
|
|
56
|
-
if (checkEmailFormatError(l)) {
|
|
57
|
-
e.value = "это не похоже на e-mail";
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
const { data: i } = l.data;
|
|
55
|
+
const l = await Ve(n.emailModel), { data: i } = l.data;
|
|
61
56
|
if (!(((p = i == null ? void 0 : i[0]) == null ? void 0 : p.available) ?? !1)) {
|
|
62
57
|
e.value = "Такой email уже используется";
|
|
63
58
|
return;
|
|
64
59
|
}
|
|
60
|
+
if (checkEmailFormatError(l)) {
|
|
61
|
+
e.value = "Это не похоже на e-mail";
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
65
64
|
e.value = "", s("on-send-code", {
|
|
66
65
|
email: n.emailModel,
|
|
67
66
|
prevEmail: v.oldEmail,
|
|
68
67
|
offLoading: !0
|
|
69
68
|
}), m.value = !0;
|
|
70
69
|
} catch (l) {
|
|
71
|
-
console.error("Неизвестная ошибка при проверке доступности email:", l), e.value = "
|
|
70
|
+
console.error("Неизвестная ошибка при проверке доступности email:", l), e.value = "Это не похоже на e-mail";
|
|
72
71
|
}
|
|
73
72
|
};
|
|
74
73
|
let O = "";
|
|
@@ -382,19 +381,18 @@ const Ge = { class: "dialogDefaultContainerInsideContent" }, Ye = { class: "dial
|
|
|
382
381
|
e.value = "Это не похоже на e-mail";
|
|
383
382
|
return;
|
|
384
383
|
}
|
|
385
|
-
const i = await Ve(n.emailModel);
|
|
386
|
-
if (checkEmailFormatError(i)) {
|
|
387
|
-
e.value = "это не похоже на e-mail";
|
|
388
|
-
return;
|
|
389
|
-
}
|
|
390
|
-
const { data: E } = i.data;
|
|
384
|
+
const i = await Ve(n.emailModel), { data: E } = i.data;
|
|
391
385
|
if (!(((l = E == null ? void 0 : E[0]) == null ? void 0 : l.available) ?? !1)) {
|
|
392
386
|
e.value = "Такой email уже используется";
|
|
393
387
|
return;
|
|
394
388
|
}
|
|
389
|
+
if (checkEmailFormatError(i)) {
|
|
390
|
+
e.value = "Это не похоже на e-mail";
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
395
393
|
e.value = "", s("on-send-code", { email: n.emailModel, prevEmail: v.oldEmail, offLoading: !0 }), m.value = !0;
|
|
396
394
|
} catch (i) {
|
|
397
|
-
console.error("Неизвестная ошибка при проверке доступности email:", i), e.value = "
|
|
395
|
+
console.error("Неизвестная ошибка при проверке доступности email:", i), e.value = "Это не похоже на e-mail";
|
|
398
396
|
}
|
|
399
397
|
};
|
|
400
398
|
let O = "";
|
|
@@ -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-Cw7l0kGP.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 T, openBlock as h, createElementVNode as z, defineComponent as re, reactive as ue, watch as X, ref as O, toRefs as me, computed as E, createCommentVNode as V, createVNode as S, toDisplayString as W, createBlock as H, createTextVNode as Q, unref as u, isRef as _, withCtx as K, onMounted as Ue, Fragment as qe } from "vue";
|
|
2
|
-
import { T as fe, c as Oe, a as We, u as je, P as Ee, b as He } from "./useRateLimitToast-
|
|
2
|
+
import { T as fe, c as Oe, a as We, u as je, P as Ee, b as He } from "./useRateLimitToast-BgatZ5Cx.js";
|
|
3
3
|
import { IconTelegramSm as ge, PInput as ee, IconPhoneMd as Ge, IconMailMd as Le, PButton as De, PDialog as Je, PTopBar as Ke, IconCrossMd as Qe, PTeleportContainer as Xe } from "@profeat/ui-kit";
|
|
4
|
-
import { C as q, t as Be, p as Z, g as Ie } from "./index-
|
|
4
|
+
import { C as q, t as Be, p as Z, g as Ie } from "./index-Cw7l0kGP.js";
|
|
5
5
|
const Ye = {
|
|
6
6
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7
7
|
width: "12",
|
|
@@ -192,12 +192,7 @@ const te = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
192
192
|
m.value = "Это не похоже на номер телефона";
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
|
-
const t = await Oe(void 0, A(g.phoneModel));
|
|
196
|
-
if (checkPhoneFormatError(t)) {
|
|
197
|
-
m.value = "это не похоже на номер телефона";
|
|
198
|
-
return;
|
|
199
|
-
}
|
|
200
|
-
const { data: l } = t.data;
|
|
195
|
+
const t = await Oe(void 0, A(g.phoneModel)), { data: l } = t.data;
|
|
201
196
|
if (console.debug("result for checkAvailability: ", {
|
|
202
197
|
res: t,
|
|
203
198
|
data: l
|
|
@@ -205,9 +200,13 @@ const te = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
205
200
|
m.value = "Такой номер уже используется";
|
|
206
201
|
return;
|
|
207
202
|
}
|
|
203
|
+
if (checkPhoneFormatError(t)) {
|
|
204
|
+
m.value = "Это не похоже на номер телефона";
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
208
207
|
m.value = "", c("on-send-code", { phone: g.phoneModel, prevPhone: k.oldPhone, offLoading: !0 }), p.value = !0;
|
|
209
208
|
} catch (t) {
|
|
210
|
-
console.error("Неизвестная ошибка при проверке доступности телефона:", t), m.value = "
|
|
209
|
+
console.error("Неизвестная ошибка при проверке доступности телефона:", t), m.value = "Это не похоже на номер телефона";
|
|
211
210
|
}
|
|
212
211
|
};
|
|
213
212
|
let M = O("");
|
|
@@ -348,19 +347,18 @@ const te = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
348
347
|
m.value = "Это не похоже на номер телефона";
|
|
349
348
|
return;
|
|
350
349
|
}
|
|
351
|
-
const t = await Oe(void 0, A(g.phoneModel));
|
|
352
|
-
if (checkPhoneFormatError(t)) {
|
|
353
|
-
m.value = "это не похоже на номер телефона";
|
|
354
|
-
return;
|
|
355
|
-
}
|
|
356
|
-
const { data: l } = t.data;
|
|
350
|
+
const t = await Oe(void 0, A(g.phoneModel)), { data: l } = t.data;
|
|
357
351
|
if (!(((n = l == null ? void 0 : l[0]) == null ? void 0 : n.available) ?? !1)) {
|
|
358
352
|
m.value = "Такой номер уже используется";
|
|
359
353
|
return;
|
|
360
354
|
}
|
|
355
|
+
if (checkPhoneFormatError(t)) {
|
|
356
|
+
m.value = "Это не похоже на номер телефона";
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
361
359
|
m.value = "", c("on-send-code", { phone: g.phoneModel, prevPhone: k.oldPhone, offLoading: !0 }), p.value = !0;
|
|
362
360
|
} catch (t) {
|
|
363
|
-
console.error("Неизвестная ошибка при проверке доступности телефона:", t), m.value = "
|
|
361
|
+
console.error("Неизвестная ошибка при проверке доступности телефона:", t), m.value = "Это не похоже на номер телефона";
|
|
364
362
|
}
|
|
365
363
|
};
|
|
366
364
|
let M = "";
|
|
@@ -213,9 +213,9 @@ const Ze = {
|
|
|
213
213
|
emits: ["clean-input-errors", "on-update-jwt", "update-phone-field", "update-email-field", "on-password-error", "on-toast"],
|
|
214
214
|
setup(m, { emit: r }) {
|
|
215
215
|
const n = r, s = h(!0), { currentDialog: g, dialogPayload: v, closeDialog: U } = H(), l = {
|
|
216
|
-
email: J(() => import("./ProfileEmailDialog-
|
|
217
|
-
phone: J(() => import("./ProfilePhoneDialog-
|
|
218
|
-
password: J(() => import("./ProfilePasswordDialog-
|
|
216
|
+
email: J(() => import("./ProfileEmailDialog-eu5X-GFo.js")),
|
|
217
|
+
phone: J(() => import("./ProfilePhoneDialog-W_8Fz3wA.js")),
|
|
218
|
+
password: J(() => import("./ProfilePasswordDialog-C4IbTcxc.js"))
|
|
219
219
|
}, d = ({ email: y }) => {
|
|
220
220
|
n("update-email-field", y);
|
|
221
221
|
}, p = ({ phone: y }) => {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".avatar-wrapper[data-v-c43c8b01] .p-avatar__overlay{opacity:0!important;transition:opacity .2s ease}.avatar-wrapper[data-v-c43c8b01]:hover .p-avatar__overlay{opacity:1!important}.avatar-wrapper[data-v-c43c8b01] .wide-img .overlay{opacity:0!important;transition:opacity .2s ease}.avatar-wrapper[data-v-c43c8b01]:hover .wide-img .overlay{opacity:1!important}.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(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import { a as o } from "./index-
|
|
2
|
+
import { a as o } from "./index-Cw7l0kGP.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-
|
|
3
|
+
import { _ as g, g as R, p as h } from "./index-Cw7l0kGP.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")}`;
|