@yourgoods/ui-smart 0.5.0 → 0.6.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-DZfdsLfO.js → ProfileEmailDialog-B7wtbY4r.js} +2 -2
- package/dist/{ProfilePasswordDialog-DLXWVm3l.js → ProfilePasswordDialog-BcDkIa-r.js} +1 -1
- package/dist/{ProfilePhoneDialog-CarYpXMn.js → ProfilePhoneDialog-DVKCw5iI.js} +59 -59
- package/dist/{index-D0TK0qAd.js → index-CTkYBTqN.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{useRateLimitToast-CpNES7IA.js → useRateLimitToast-BtIAIA5I.js} +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as M, reactive as J, watch as j, computed as V, toRefs as se, createElementBlock as k, openBlock as y, createElementVNode as S, createCommentVNode as P, toDisplayString as K, createVNode as b, unref as c, isRef as Q, withCtx as q, createTextVNode as te, Fragment as Oe, createBlock as R, resolveDynamicComponent as Ce, onMounted as Ue } from "vue";
|
|
2
|
-
import { T as de, c as Ve, _ as Ae, u as Fe, a as Re, P as ye, b as ze } from "./useRateLimitToast-
|
|
3
|
-
import { C as D, B as We, p as F, g as He } from "./index-
|
|
2
|
+
import { T as de, c as Ve, _ as Ae, u as Fe, a as Re, P as ye, b as ze } from "./useRateLimitToast-BtIAIA5I.js";
|
|
3
|
+
import { C as D, B as We, p as F, g as He } from "./index-CTkYBTqN.js";
|
|
4
4
|
import { PInput as _, IconMailMd as re, PButton as le, IconEyeMd as ge, IconEyeClosedMd as he, PDialog as qe, PTopBar as je, IconCrossMd as _e } from "@profeat/ui-kit";
|
|
5
5
|
const Ge = { class: "dialogDefaultContainerInsideContent" }, Ye = { class: "dialogDefaultContainerTextHint" }, Je = {
|
|
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-CTkYBTqN.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 T, openBlock as p, createElementVNode as z, defineComponent as re, reactive as ue, watch as X, ref as O, toRefs as me, computed as A, createCommentVNode as $, createVNode as S, toDisplayString as q, createBlock as j, createTextVNode as Q, unref as r, isRef as
|
|
2
|
-
import { T as fe, c as Oe, a as We, u as je, P as Ee, b as He } from "./useRateLimitToast-
|
|
3
|
-
import { IconTelegramSm as ge, PInput as
|
|
4
|
-
import { C as U, t as Be, p as Z, g as Ie } from "./index-
|
|
1
|
+
import { createElementBlock as T, openBlock as p, createElementVNode as z, defineComponent as re, reactive as ue, watch as X, ref as O, toRefs as me, computed as A, createCommentVNode as $, createVNode as S, toDisplayString as q, createBlock as j, createTextVNode as Q, unref as r, isRef as te, withCtx as J, 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-BtIAIA5I.js";
|
|
3
|
+
import { IconTelegramSm as ge, PInput as oe, 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 U, t as Be, p as Z, g as Ie } from "./index-CTkYBTqN.js";
|
|
5
5
|
const Ye = {
|
|
6
6
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7
7
|
width: "12",
|
|
@@ -18,7 +18,7 @@ function Ze(N, b) {
|
|
|
18
18
|
}, null, -1)
|
|
19
19
|
]));
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const ne = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }, et = { style: { display: "flex", width: "100%", gap: "4px", "align-items": "center", "justify-content": "center", "text-align": "center" } }, tt = { class: "dialogDefaultContainerTextHint" }, ot = { class: "chip" }, nt = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "input-wrapper"
|
|
24
24
|
}, at = {
|
|
@@ -71,7 +71,7 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
71
71
|
z("div", et, [
|
|
72
72
|
z("div", tt, q(i.hintText), 1),
|
|
73
73
|
z("div", ot, [
|
|
74
|
-
i.isTg ? (p(), j(r(ge), { key: 0 })) : (p(), j(r(
|
|
74
|
+
i.isTg ? (p(), j(r(ge), { key: 0 })) : (p(), j(r(ne), {
|
|
75
75
|
key: 1,
|
|
76
76
|
style: { "margin-left": "5px" }
|
|
77
77
|
})),
|
|
@@ -79,9 +79,9 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
79
79
|
])
|
|
80
80
|
]),
|
|
81
81
|
i.showPhone ? (p(), T("div", nt, [
|
|
82
|
-
S(r(
|
|
82
|
+
S(r(oe), {
|
|
83
83
|
modelValue: r(e),
|
|
84
|
-
"onUpdate:modelValue": h[0] || (h[0] = (v) =>
|
|
84
|
+
"onUpdate:modelValue": h[0] || (h[0] = (v) => te(e) ? e.value = v : null),
|
|
85
85
|
size: "large",
|
|
86
86
|
"text-size": "medium",
|
|
87
87
|
label: "Телефон",
|
|
@@ -97,9 +97,9 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
97
97
|
})
|
|
98
98
|
])) : $("", !0),
|
|
99
99
|
i.showCode ? (p(), T("div", at, [
|
|
100
|
-
S(r(
|
|
100
|
+
S(r(oe), {
|
|
101
101
|
modelValue: r(M),
|
|
102
|
-
"onUpdate:modelValue": h[4] || (h[4] = (v) =>
|
|
102
|
+
"onUpdate:modelValue": h[4] || (h[4] = (v) => te(M) ? M.value = v : null),
|
|
103
103
|
size: "large",
|
|
104
104
|
"text-size": "medium",
|
|
105
105
|
label: "Код",
|
|
@@ -122,14 +122,23 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
122
122
|
onClick: H
|
|
123
123
|
}, [
|
|
124
124
|
Q(q(i.sendCodeBySmsText) + " ", 1),
|
|
125
|
-
S(r(
|
|
125
|
+
S(r(ne), { style: { "margin-left": "5px" } })
|
|
126
126
|
])) : $("", !0)
|
|
127
127
|
]),
|
|
128
128
|
_: 1
|
|
129
129
|
}, 8, ["loading", "rate-limit-text", "is-final-limit"])
|
|
130
130
|
]));
|
|
131
131
|
}
|
|
132
|
-
}),
|
|
132
|
+
}), ee = (N) => {
|
|
133
|
+
const b = N.replace(/\D/g, "");
|
|
134
|
+
if (b.length >= 10 && b.length <= 15) {
|
|
135
|
+
if (b.startsWith("8"))
|
|
136
|
+
return `+7${b.slice(1)}`;
|
|
137
|
+
if (b.startsWith("7"))
|
|
138
|
+
return `+${b}`;
|
|
139
|
+
}
|
|
140
|
+
return N.trim().startsWith("+") ? N.trim() : `+${b}`;
|
|
141
|
+
}, st = { class: "dialogDefaultContainerInsideContent" }, it = { style: { display: "flex", width: "100%", gap: "4px", "align-items": "center", "justify-content": "center", "text-align": "center" } }, dt = { class: "dialogDefaultContainerTextHint" }, rt = {
|
|
133
142
|
key: 0,
|
|
134
143
|
class: "chip"
|
|
135
144
|
}, ut = {
|
|
@@ -184,7 +193,7 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
184
193
|
}
|
|
185
194
|
const {
|
|
186
195
|
data: { data: n, success: o, message: s }
|
|
187
|
-
} = await Oe(void 0, f.phoneModel);
|
|
196
|
+
} = await Oe(void 0, ee(f.phoneModel));
|
|
188
197
|
if (!o && typeof s == "string" && s.includes("Телефон должен быть в формате")) {
|
|
189
198
|
g.value = "Это не похоже на номер телефона";
|
|
190
199
|
return;
|
|
@@ -210,7 +219,7 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
210
219
|
z("div", it, [
|
|
211
220
|
z("div", dt, q(c.value ? "Чтобы продолжить, введите код подтверждения из" : n.hintText), 1),
|
|
212
221
|
c.value ? (p(), T("div", rt, [
|
|
213
|
-
n.isTg ? (p(), j(r(ge), { key: 0 })) : (p(), j(r(
|
|
222
|
+
n.isTg ? (p(), j(r(ge), { key: 0 })) : (p(), j(r(ne), {
|
|
214
223
|
key: 1,
|
|
215
224
|
style: { "margin-left": "5px" }
|
|
216
225
|
})),
|
|
@@ -218,9 +227,9 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
218
227
|
])) : $("", !0)
|
|
219
228
|
]),
|
|
220
229
|
n.showPhone ? (p(), T("div", ut, [
|
|
221
|
-
S(r(
|
|
230
|
+
S(r(oe), {
|
|
222
231
|
modelValue: r(x),
|
|
223
|
-
"onUpdate:modelValue": o[0] || (o[0] = (s) =>
|
|
232
|
+
"onUpdate:modelValue": o[0] || (o[0] = (s) => te(x) ? x.value = s : null),
|
|
224
233
|
size: "large",
|
|
225
234
|
"text-size": "medium",
|
|
226
235
|
label: "Телефон",
|
|
@@ -248,9 +257,9 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
248
257
|
}, 8, ["disabled"])
|
|
249
258
|
])),
|
|
250
259
|
c.value ? (p(), T("div", pt, [
|
|
251
|
-
S(r(
|
|
260
|
+
S(r(oe), {
|
|
252
261
|
modelValue: r(i),
|
|
253
|
-
"onUpdate:modelValue": o[4] || (o[4] = (s) =>
|
|
262
|
+
"onUpdate:modelValue": o[4] || (o[4] = (s) => te(i) ? i.value = s : null),
|
|
254
263
|
size: "large",
|
|
255
264
|
"text-size": "medium",
|
|
256
265
|
label: "Код",
|
|
@@ -274,7 +283,7 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
274
283
|
onClick: y
|
|
275
284
|
}, [
|
|
276
285
|
Q(q(n.sendCodeBySmsText) + " ", 1),
|
|
277
|
-
S(r(
|
|
286
|
+
S(r(ne), { style: { "margin-left": "5px" } })
|
|
278
287
|
])) : $("", !0)
|
|
279
288
|
]),
|
|
280
289
|
_: 1
|
|
@@ -334,7 +343,7 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
334
343
|
}
|
|
335
344
|
const {
|
|
336
345
|
data: { data: n, success: o, message: s }
|
|
337
|
-
} = await Oe(void 0, f.phoneModel);
|
|
346
|
+
} = await Oe(void 0, ee(f.phoneModel));
|
|
338
347
|
if (!o && typeof s == "string" && s.includes("Телефон должен быть в формате")) {
|
|
339
348
|
g.value = "Это не похоже на номер телефона";
|
|
340
349
|
return;
|
|
@@ -360,7 +369,7 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
360
369
|
z("div", ft, [
|
|
361
370
|
z("div", gt, q(c.value ? "Чтобы продолжить, введите код подтверждения из" : n.hintText), 1),
|
|
362
371
|
z("div", yt, [
|
|
363
|
-
n.isTg ? (p(), j(r(ge), { key: 0 })) : (p(), j(r(
|
|
372
|
+
n.isTg ? (p(), j(r(ge), { key: 0 })) : (p(), j(r(ne), {
|
|
364
373
|
key: 1,
|
|
365
374
|
style: { "margin-left": "5px" }
|
|
366
375
|
})),
|
|
@@ -368,9 +377,9 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
368
377
|
])
|
|
369
378
|
]),
|
|
370
379
|
n.showPhone ? (p(), T("div", Ct, [
|
|
371
|
-
S(r(
|
|
380
|
+
S(r(oe), {
|
|
372
381
|
modelValue: r(x),
|
|
373
|
-
"onUpdate:modelValue": o[0] || (o[0] = (s) =>
|
|
382
|
+
"onUpdate:modelValue": o[0] || (o[0] = (s) => te(x) ? x.value = s : null),
|
|
374
383
|
size: "large",
|
|
375
384
|
"text-size": "medium",
|
|
376
385
|
label: "Телефон",
|
|
@@ -398,9 +407,9 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
398
407
|
}, 8, ["disabled"])
|
|
399
408
|
])),
|
|
400
409
|
c.value ? (p(), T("div", Pt, [
|
|
401
|
-
S(r(
|
|
410
|
+
S(r(oe), {
|
|
402
411
|
modelValue: r(i),
|
|
403
|
-
"onUpdate:modelValue": o[4] || (o[4] = (s) =>
|
|
412
|
+
"onUpdate:modelValue": o[4] || (o[4] = (s) => te(i) ? i.value = s : null),
|
|
404
413
|
size: "large",
|
|
405
414
|
"text-size": "medium",
|
|
406
415
|
label: "Код",
|
|
@@ -424,7 +433,7 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
424
433
|
onClick: y
|
|
425
434
|
}, [
|
|
426
435
|
Q(q(n.sendCodeBySmsText) + " ", 1),
|
|
427
|
-
S(r(
|
|
436
|
+
S(r(ne), { style: { "margin-left": "5px" } })
|
|
428
437
|
])) : $("", !0)
|
|
429
438
|
]),
|
|
430
439
|
_: 1
|
|
@@ -432,22 +441,13 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
432
441
|
])) : $("", !0)
|
|
433
442
|
]));
|
|
434
443
|
}
|
|
435
|
-
}),
|
|
436
|
-
const b = N.replace(/\D/g, "");
|
|
437
|
-
if (b.length >= 10 && b.length <= 15) {
|
|
438
|
-
if (b.startsWith("8"))
|
|
439
|
-
return `+7${b.slice(1)}`;
|
|
440
|
-
if (b.startsWith("7"))
|
|
441
|
-
return `+${b}`;
|
|
442
|
-
}
|
|
443
|
-
return N.trim().startsWith("+") ? N.trim() : `+${b}`;
|
|
444
|
-
}, Mt = { class: "text-center w-full" }, xt = { class: "dialogTitle" }, bt = {
|
|
444
|
+
}), Mt = { class: "text-center w-full" }, xt = { class: "dialogTitle" }, bt = {
|
|
445
445
|
key: 0,
|
|
446
446
|
class: "dialogDefaultContainer"
|
|
447
447
|
}, Vt = { key: 3 }, kt = {
|
|
448
448
|
key: 1,
|
|
449
449
|
class: "dialogDefaultContainer"
|
|
450
|
-
},
|
|
450
|
+
}, le = 3, Ot = /* @__PURE__ */ re({
|
|
451
451
|
__name: "ProfilePhoneDialog",
|
|
452
452
|
props: {
|
|
453
453
|
modelValue: { type: Boolean },
|
|
@@ -471,7 +471,7 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
471
471
|
code: "",
|
|
472
472
|
addPhone: "",
|
|
473
473
|
addCode: ""
|
|
474
|
-
}), M = O(U.OLD), C = O(null), y = O(!1), x = O(!1), i = O("tg"), h = A(() => i.value === "tg"), v = O(!1), { startTimer: G, remainingSeconds: n, isAvailableForSendAgain: o, totalRateAttempts: s, currentRateAttempt: _ } = We(), { showRateLimitToast: K } = He(c), { isEditFlow: ce, getFlow: Ae } = je(O(u.mode)),
|
|
474
|
+
}), M = O(U.OLD), C = O(null), y = O(!1), x = O(!1), i = O("tg"), h = A(() => i.value === "tg"), v = O(!1), { startTimer: G, remainingSeconds: n, isAvailableForSendAgain: o, totalRateAttempts: s, currentRateAttempt: _ } = We(), { showRateLimitToast: K } = He(c), { isEditFlow: ce, getFlow: Ae } = je(O(u.mode)), se = A(() => o.value ? "Повторить" : `${n.value}`), ae = O(le), ie = A(() => ae.value === 0), Ne = (l) => new Promise((a) => setTimeout(a, l));
|
|
475
475
|
async function pe(l = "email") {
|
|
476
476
|
var t;
|
|
477
477
|
return (t = (await Ie("/users/profile/session/get-edit-session", { params: { field: l } })).data) == null ? void 0 : t.data;
|
|
@@ -510,7 +510,7 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
510
510
|
);
|
|
511
511
|
await Ne(1e3);
|
|
512
512
|
const w = (t = V.data) == null ? void 0 : t.data;
|
|
513
|
-
return w ? (w.restTimeSec > 0 ? (G(w.restTimeSec), o.value = !1, s.value = w.attempts.total, _.value = w.attempts.total - w.attempts.available,
|
|
513
|
+
return w ? (w.restTimeSec > 0 ? (G(w.restTimeSec), o.value = !1, s.value = w.attempts.total, _.value = w.attempts.total - w.attempts.available, ae.value = w.attempts.available ?? le) : o.value = !0, w) : null;
|
|
514
514
|
} catch {
|
|
515
515
|
return null;
|
|
516
516
|
}
|
|
@@ -523,9 +523,9 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
523
523
|
"/users/profile/phone/contact/send-code",
|
|
524
524
|
{
|
|
525
525
|
sessionId: C.value,
|
|
526
|
-
phone:
|
|
527
|
-
value:
|
|
528
|
-
oldValue:
|
|
526
|
+
phone: ee(m),
|
|
527
|
+
value: ee(m),
|
|
528
|
+
oldValue: ee(e.oldPhone),
|
|
529
529
|
provider: u.provider,
|
|
530
530
|
isOnlySms: a ?? !1
|
|
531
531
|
},
|
|
@@ -542,14 +542,14 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
542
542
|
const I = (F = (D = d.data) == null ? void 0 : D.tooManyRequests) == null ? void 0 : F.type;
|
|
543
543
|
i.value = I;
|
|
544
544
|
const R = d.data.tooManyRequests;
|
|
545
|
-
return R.restTimeSec > 0 ? (G(R.restTimeSec), s.value = R.attempts.total, _.value = R.attempts.total - R.attempts.available,
|
|
545
|
+
return R.restTimeSec > 0 ? (G(R.restTimeSec), s.value = R.attempts.total, _.value = R.attempts.total - R.attempts.available, ae.value = R.attempts.available ?? le) : o.value = !0, d;
|
|
546
546
|
}
|
|
547
547
|
return console.debug("sendContactCode after обработка 403 tooManyRequests", d), await Ce(m), d;
|
|
548
548
|
} catch (m) {
|
|
549
549
|
const d = (E = m == null ? void 0 : m.data) == null ? void 0 : E.tooManyRequests;
|
|
550
550
|
if ((m == null ? void 0 : m.status) === 403 && d) {
|
|
551
551
|
const { restTimeSec: P, attempts: I } = d;
|
|
552
|
-
return P > 0 ? (G(P), s.value = I.total, _.value = I.total - I.available,
|
|
552
|
+
return P > 0 ? (G(P), s.value = I.total, _.value = I.total - I.available, ae.value = I.available ?? le) : o.value = !0, m;
|
|
553
553
|
}
|
|
554
554
|
throw m;
|
|
555
555
|
} finally {
|
|
@@ -586,7 +586,7 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
586
586
|
const Se = ({ code: l }) => we(l, U.NEW);
|
|
587
587
|
function Me(l) {
|
|
588
588
|
}
|
|
589
|
-
const
|
|
589
|
+
const de = () => {
|
|
590
590
|
c("close"), g.value = !1;
|
|
591
591
|
};
|
|
592
592
|
async function xe(l = "phone") {
|
|
@@ -636,7 +636,7 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
636
636
|
`/users/profile/bind/contact/send-code/${a}`,
|
|
637
637
|
{
|
|
638
638
|
sessionId: C.value,
|
|
639
|
-
phone:
|
|
639
|
+
phone: ee(F),
|
|
640
640
|
provider: u.provider,
|
|
641
641
|
isOnlySms: t ?? !1
|
|
642
642
|
},
|
|
@@ -650,7 +650,7 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
650
650
|
const d = (D = E.data) == null ? void 0 : D.tooManyRequests;
|
|
651
651
|
if (E.status === 403 && d) {
|
|
652
652
|
const I = d == null ? void 0 : d.type;
|
|
653
|
-
return i.value = I, d.restTimeSec > 0 ? (G(d.restTimeSec), s.value = d.attempts.total, _.value = d.attempts.total - d.attempts.available,
|
|
653
|
+
return i.value = I, d.restTimeSec > 0 ? (G(d.restTimeSec), s.value = d.attempts.total, _.value = d.attempts.total - d.attempts.available, ae.value = d.attempts.available ?? le) : o.value = !0, E;
|
|
654
654
|
}
|
|
655
655
|
const P = await Ce(F);
|
|
656
656
|
return P && P.restTimeSec > 0 ? (G(P.restTimeSec), o.value = !1) : o.value = !0, E;
|
|
@@ -693,11 +693,11 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
693
693
|
form: e,
|
|
694
694
|
currentStep: M,
|
|
695
695
|
loading: y,
|
|
696
|
-
rateLimitText:
|
|
697
|
-
isAvailable:
|
|
696
|
+
rateLimitText: se,
|
|
697
|
+
isAvailable: ie,
|
|
698
698
|
title: W,
|
|
699
699
|
hintText: H,
|
|
700
|
-
handleClose:
|
|
700
|
+
handleClose: de,
|
|
701
701
|
sendContactCode: Y,
|
|
702
702
|
sendBindContactCode: ve,
|
|
703
703
|
handleOldCodeSuccess: Pe,
|
|
@@ -711,12 +711,12 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
711
711
|
modelValue: g.value,
|
|
712
712
|
"onUpdate:modelValue": [
|
|
713
713
|
a[15] || (a[15] = (t) => g.value = t),
|
|
714
|
-
|
|
714
|
+
de
|
|
715
715
|
],
|
|
716
716
|
width: "small",
|
|
717
717
|
"auto-height": !0,
|
|
718
718
|
"close-on-click-outside": !0,
|
|
719
|
-
"onClick:outside":
|
|
719
|
+
"onClick:outside": de
|
|
720
720
|
}, {
|
|
721
721
|
header: J(() => [
|
|
722
722
|
z("div", Mt, [
|
|
@@ -732,7 +732,7 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
732
732
|
"right-button": J(() => [
|
|
733
733
|
S(r(Qe), {
|
|
734
734
|
class: "cross",
|
|
735
|
-
onClick:
|
|
735
|
+
onClick: de
|
|
736
736
|
})
|
|
737
737
|
]),
|
|
738
738
|
_: 1
|
|
@@ -748,8 +748,8 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
748
748
|
"onUpdate:phone": a[0] || (a[0] = (t) => e.oldPhone = t),
|
|
749
749
|
code: e.code,
|
|
750
750
|
"onUpdate:code": a[1] || (a[1] = (t) => e.code = t),
|
|
751
|
-
"rate-limit-text":
|
|
752
|
-
"is-final-limit":
|
|
751
|
+
"rate-limit-text": se.value,
|
|
752
|
+
"is-final-limit": ie.value,
|
|
753
753
|
"is-not-match-code": x.value,
|
|
754
754
|
loading: y.value,
|
|
755
755
|
"is-tg": h.value,
|
|
@@ -767,8 +767,8 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
767
767
|
code: e.code,
|
|
768
768
|
"onUpdate:code": a[6] || (a[6] = (t) => e.code = t),
|
|
769
769
|
"hint-text": H.value,
|
|
770
|
-
"rate-limit-text":
|
|
771
|
-
"is-final-limit":
|
|
770
|
+
"rate-limit-text": se.value,
|
|
771
|
+
"is-final-limit": ie.value,
|
|
772
772
|
"is-not-match-code": x.value,
|
|
773
773
|
loading: y.value,
|
|
774
774
|
"is-tg": h.value,
|
|
@@ -791,8 +791,8 @@ const oe = { render: Ze }, _e = { class: "dialogDefaultContainerInsideContent" }
|
|
|
791
791
|
code: e.addCode,
|
|
792
792
|
"onUpdate:code": a[12] || (a[12] = (t) => e.addCode = t),
|
|
793
793
|
"hint-text": r(ce) ? H.value : "Чтобы продолжить, введите новый номер",
|
|
794
|
-
"rate-limit-text":
|
|
795
|
-
"is-final-limit":
|
|
794
|
+
"rate-limit-text": se.value,
|
|
795
|
+
"is-final-limit": ie.value,
|
|
796
796
|
"is-not-match-code": x.value,
|
|
797
797
|
loading: y.value,
|
|
798
798
|
"is-tg": h.value,
|
|
@@ -213,9 +213,9 @@ const Ke = {
|
|
|
213
213
|
emits: ["clean-input-errors", "on-update-jwt", "update-phone-field", "update-email-field", "on-password-error", "on-toast"],
|
|
214
214
|
setup(d, { emit: r }) {
|
|
215
215
|
const n = r, u = v(!0), { currentDialog: w, dialogPayload: c, closeDialog: B } = W(), l = {
|
|
216
|
-
email: L(() => import("./ProfileEmailDialog-
|
|
217
|
-
phone: L(() => import("./ProfilePhoneDialog-
|
|
218
|
-
password: L(() => import("./ProfilePasswordDialog-
|
|
216
|
+
email: L(() => import("./ProfileEmailDialog-B7wtbY4r.js")),
|
|
217
|
+
phone: L(() => import("./ProfilePhoneDialog-DVKCw5iI.js")),
|
|
218
|
+
password: L(() => import("./ProfilePasswordDialog-BcDkIa-r.js"))
|
|
219
219
|
}, m = ({ 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 e=document.createElement("style");e.appendChild(document.createTextNode(".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 { _ as r } from "./index-
|
|
2
|
+
import { _ as r } from "./index-CTkYBTqN.js";
|
|
3
3
|
export {
|
|
4
4
|
r as PEditUserContact
|
|
5
5
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as r, defineComponent as L, createElementBlock as f, openBlock as v, normalizeClass as l, createVNode as E, unref as F, computed as T, renderSlot as m, 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 { g as R, p as h } from "./index-
|
|
3
|
+
import { g as R, p as h } from "./index-CTkYBTqN.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")}`;
|