@yourgoods/ui-smart 0.46.5 → 0.46.7
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-anbTLDAX.js → ProfileEmailDialog-DlGErflr.js} +95 -95
- package/dist/{ProfilePasswordDialog-CeKV-Qzk.js → ProfilePasswordDialog-DLrepGiM.js} +1 -1
- package/dist/{ProfilePhoneDialog-Cu_Ug6x9.js → ProfilePhoneDialog-C8_OQsEV.js} +152 -149
- package/dist/{index-BKwB1EH3.js → index-BSr7kEC4.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{useRateLimitToast--LDSCeNe.js → useRateLimitToast-D6JDxDzB.js} +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { createElementBlock as P, openBlock as p, createElementVNode as
|
|
2
|
-
import { T as we, c as Ne, a as
|
|
3
|
-
import { IconTelegramSm as Pe, PInput as ae, IconPhoneMd as
|
|
4
|
-
import { C as
|
|
5
|
-
const
|
|
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 d, 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-D6JDxDzB.js";
|
|
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-BSr7kEC4.js";
|
|
5
|
+
const _e = {
|
|
6
6
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7
7
|
width: "12",
|
|
8
8
|
height: "16",
|
|
9
9
|
fill: "none"
|
|
10
10
|
};
|
|
11
|
-
function
|
|
12
|
-
return p(), P("svg",
|
|
13
|
-
|
|
11
|
+
function et(R, x) {
|
|
12
|
+
return p(), P("svg", _e, x[0] || (x[0] = [
|
|
13
|
+
q("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",
|
|
@@ -18,13 +18,13 @@ function tt(R, x) {
|
|
|
18
18
|
}, null, -1)
|
|
19
19
|
]));
|
|
20
20
|
}
|
|
21
|
-
const le = { render:
|
|
21
|
+
const le = { render: et }, tt = { class: "dialogDefaultContainerInsideContent" }, ot = { style: { display: "flex", width: "100%", gap: "4px", "align-items": "center", "justify-content": "center", "text-align": "center" } }, nt = { class: "dialogDefaultContainerTextHint" }, at = { class: "chip" }, lt = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "input-wrapper"
|
|
24
|
-
},
|
|
24
|
+
}, st = {
|
|
25
25
|
key: 1,
|
|
26
26
|
class: "input-wrapper"
|
|
27
|
-
},
|
|
27
|
+
}, dt = /* @__PURE__ */ he({
|
|
28
28
|
__name: "OldPhoneContent",
|
|
29
29
|
props: {
|
|
30
30
|
phone: {},
|
|
@@ -43,34 +43,34 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
43
43
|
},
|
|
44
44
|
emits: ["update:phone", "update:code", "edit", "on-match-code", "on-match-code-error", "on-send-code-again", "on-send-only-sms", "on-clear-code-error"],
|
|
45
45
|
setup(R, { emit: x }) {
|
|
46
|
-
const
|
|
46
|
+
const B = R, i = x, u = ve({
|
|
47
47
|
touched: { phone: !1, code: !1 },
|
|
48
|
-
phoneModel:
|
|
49
|
-
codeModel:
|
|
48
|
+
phoneModel: B.phone,
|
|
49
|
+
codeModel: B.code
|
|
50
50
|
});
|
|
51
51
|
Z(
|
|
52
|
-
() =>
|
|
52
|
+
() => u.phoneModel,
|
|
53
53
|
(v) => i("update:phone", v)
|
|
54
54
|
), Z(
|
|
55
|
-
() =>
|
|
55
|
+
() => u.codeModel,
|
|
56
56
|
(v) => i("update:code", v)
|
|
57
57
|
);
|
|
58
58
|
const h = (v) => {
|
|
59
|
-
|
|
59
|
+
u.touched[v] = !0;
|
|
60
60
|
};
|
|
61
|
-
let
|
|
61
|
+
let c = L("");
|
|
62
62
|
const F = (v) => {
|
|
63
63
|
i("on-clear-code-error");
|
|
64
64
|
const m = v.target;
|
|
65
65
|
let r = ((m == null ? void 0 : m.value) ?? "").replace(/\D/g, "");
|
|
66
|
-
r.length > 4 && (r = r.slice(0, 4)), M.value = r, m && m.value !== r && (m.value = r), r.length === 4 && r !==
|
|
67
|
-
}, X = () => i("on-send-code-again", { phone:
|
|
68
|
-
console.debug("onSendCodeViaSms"), i("on-send-only-sms", { phone:
|
|
69
|
-
}, { phoneModel: e, codeModel: M, touched: C } = Ce(
|
|
70
|
-
return (v, m) => (p(), P("div",
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
r.length > 4 && (r = r.slice(0, 4)), M.value = r, m && m.value !== r && (m.value = r), r.length === 4 && r !== c.value && (c.value = r, i("on-match-code", { phone: e.value, code: r }));
|
|
67
|
+
}, X = () => i("on-send-code-again", { phone: u.phoneModel }), J = () => {
|
|
68
|
+
console.debug("onSendCodeViaSms"), i("on-send-only-sms", { phone: u.phoneModel });
|
|
69
|
+
}, { phoneModel: e, codeModel: M, touched: C } = Ce(u), f = E(() => C.value.phone && !e.value.trim() ? "Введите телефон" : B.phoneError), O = E(() => B.isNotMatchCode ? "Неверный код" : C.value.code ? M.value.trim() ? B.codeError ?? null : "Введите код" : "");
|
|
70
|
+
return (v, m) => (p(), P("div", tt, [
|
|
71
|
+
q("div", ot, [
|
|
72
|
+
q("div", nt, H(v.hintText), 1),
|
|
73
|
+
q("div", at, [
|
|
74
74
|
v.isTg ? (p(), G(d(Pe), { key: 0 })) : (p(), G(d(le), {
|
|
75
75
|
key: 1,
|
|
76
76
|
style: { "margin-left": "5px" }
|
|
@@ -78,7 +78,7 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
78
78
|
Y(" " + H(v.isTg ? "Telegram" : "СМС"), 1)
|
|
79
79
|
])
|
|
80
80
|
]),
|
|
81
|
-
v.showPhone ? (p(), P("div",
|
|
81
|
+
v.showPhone ? (p(), P("div", lt, [
|
|
82
82
|
T(d(ae), {
|
|
83
83
|
modelValue: d(e),
|
|
84
84
|
"onUpdate:modelValue": m[0] || (m[0] = (r) => ne(e) ? e.value = r : null),
|
|
@@ -91,12 +91,12 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
91
91
|
onBlur: m[1] || (m[1] = (r) => h("phone")),
|
|
92
92
|
onInput: m[2] || (m[2] = (r) => h("phone"))
|
|
93
93
|
}, null, 8, ["modelValue", "error"]),
|
|
94
|
-
T(d(
|
|
94
|
+
T(d(Ke), {
|
|
95
95
|
class: "icon-locked",
|
|
96
96
|
onClick: m[3] || (m[3] = (r) => v.$emit("edit", "phone"))
|
|
97
97
|
})
|
|
98
|
-
])) :
|
|
99
|
-
v.showCode ? (p(), P("div",
|
|
98
|
+
])) : $("", !0),
|
|
99
|
+
v.showCode ? (p(), P("div", st, [
|
|
100
100
|
T(d(ae), {
|
|
101
101
|
modelValue: d(M),
|
|
102
102
|
"onUpdate:modelValue": m[4] || (m[4] = (r) => ne(M) ? M.value = r : null),
|
|
@@ -108,7 +108,7 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
108
108
|
onInput: F,
|
|
109
109
|
onBlur: m[5] || (m[5] = (r) => h("code"))
|
|
110
110
|
}, null, 8, ["modelValue", "error"])
|
|
111
|
-
])) :
|
|
111
|
+
])) : $("", !0),
|
|
112
112
|
T(we, {
|
|
113
113
|
loading: v.loading,
|
|
114
114
|
"rate-limit-text": v.rateLimitText,
|
|
@@ -123,7 +123,7 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
123
123
|
}, [
|
|
124
124
|
Y(H(v.sendCodeBySmsText) + " ", 1),
|
|
125
125
|
T(d(le), { style: { "margin-left": "5px" } })
|
|
126
|
-
])) :
|
|
126
|
+
])) : $("", !0)
|
|
127
127
|
]),
|
|
128
128
|
_: 1
|
|
129
129
|
}, 8, ["loading", "rate-limit-text", "is-final-limit"])
|
|
@@ -138,19 +138,19 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
138
138
|
return `+${x}`;
|
|
139
139
|
}
|
|
140
140
|
return R.trim().startsWith("+") ? R.trim() : `+${x}`;
|
|
141
|
-
},
|
|
141
|
+
}, it = { class: "dialogDefaultContainerInsideContent" }, rt = { style: { display: "flex", width: "100%", gap: "4px", "align-items": "center", "justify-content": "center", "text-align": "center" } }, ut = { class: "dialogDefaultContainerTextHint" }, ct = {
|
|
142
142
|
key: 0,
|
|
143
143
|
class: "chip"
|
|
144
|
-
},
|
|
144
|
+
}, pt = {
|
|
145
145
|
key: 0,
|
|
146
146
|
class: "input-wrapper"
|
|
147
|
-
},
|
|
147
|
+
}, ht = {
|
|
148
148
|
key: 1,
|
|
149
149
|
class: "input-wrapper"
|
|
150
|
-
},
|
|
150
|
+
}, vt = {
|
|
151
151
|
key: 2,
|
|
152
152
|
class: "input-wrapper"
|
|
153
|
-
},
|
|
153
|
+
}, mt = { key: 3 }, ft = /* @__PURE__ */ he({
|
|
154
154
|
__name: "NewPhoneContent",
|
|
155
155
|
props: {
|
|
156
156
|
phone: {},
|
|
@@ -168,24 +168,24 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
168
168
|
},
|
|
169
169
|
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"],
|
|
170
170
|
setup(R, { emit: x }) {
|
|
171
|
-
const
|
|
171
|
+
const B = R, i = x, u = L(!1), h = L(""), c = ve({
|
|
172
172
|
touched: { phone: !1, code: !1 },
|
|
173
173
|
phoneModel: "",
|
|
174
174
|
codeModel: ""
|
|
175
175
|
});
|
|
176
176
|
Z(
|
|
177
|
-
() =>
|
|
177
|
+
() => c.phoneModel,
|
|
178
178
|
(o) => {
|
|
179
179
|
i("update:phone", o), h.value = "";
|
|
180
180
|
}
|
|
181
181
|
), Z(
|
|
182
|
-
() =>
|
|
182
|
+
() => c.codeModel,
|
|
183
183
|
(o) => i("update:code", o)
|
|
184
184
|
);
|
|
185
|
-
const F = (o) =>
|
|
185
|
+
const F = (o) => c.touched[o] = !0, X = (o) => c.touched[o] = !1, J = () => {
|
|
186
186
|
h.value = "", X("phone");
|
|
187
187
|
}, e = E(() => {
|
|
188
|
-
const n =
|
|
188
|
+
const n = c.phoneModel.trim().replace(/[()\-\s]/g, "");
|
|
189
189
|
return /^\+?\d{10,15}$/.test(n);
|
|
190
190
|
}), M = E(() => !e.value || !!h.value), C = async () => {
|
|
191
191
|
var o;
|
|
@@ -194,7 +194,7 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
194
194
|
h.value = "Это не похоже на номер телефона";
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
|
-
const n = await Ne(void 0, U(
|
|
197
|
+
const n = await Ne(void 0, U(c.phoneModel)), { data: s } = n.data;
|
|
198
198
|
if (console.debug("result for checkAvailability: ", {
|
|
199
199
|
res: n,
|
|
200
200
|
data: s
|
|
@@ -202,7 +202,7 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
202
202
|
h.value = "Такой номер уже используется";
|
|
203
203
|
return;
|
|
204
204
|
}
|
|
205
|
-
h.value = "", i("on-send-code", { phone:
|
|
205
|
+
h.value = "", i("on-send-code", { phone: c.phoneModel, prevPhone: B.oldPhone, offLoading: !0 }), u.value = !0;
|
|
206
206
|
} catch (n) {
|
|
207
207
|
console.error("Неизвестная ошибка при проверке доступности телефона:", n), h.value = "Это не похоже на номер телефона";
|
|
208
208
|
}
|
|
@@ -214,29 +214,29 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
214
214
|
let s = ((n == null ? void 0 : n.value) ?? "").replace(/\D/g, "");
|
|
215
215
|
s.length > 4 && (s = s.slice(0, 4)), I.value = s, n && n.value !== s && (n.value = s), s.length === 4 && s !== f.value && (f.value = s, i("on-match-code", { phone: r.value, code: s }));
|
|
216
216
|
}, v = () => {
|
|
217
|
-
i("on-send-code-again", { phone:
|
|
217
|
+
i("on-send-code-again", { phone: c.phoneModel });
|
|
218
218
|
}, m = () => {
|
|
219
|
-
console.debug("onSendCodeViaSms"), i("on-send-only-sms", { phone:
|
|
220
|
-
}, { phoneModel: r, codeModel: I, touched: se } = Ce(
|
|
219
|
+
console.debug("onSendCodeViaSms"), i("on-send-only-sms", { phone: c.phoneModel });
|
|
220
|
+
}, { phoneModel: r, codeModel: I, touched: se } = Ce(c), W = E(() => {
|
|
221
221
|
if (h.value) return h.value;
|
|
222
|
-
if (
|
|
223
|
-
if (!
|
|
222
|
+
if (c.touched.phone) {
|
|
223
|
+
if (!c.phoneModel.trim()) return "Введите номер телефона";
|
|
224
224
|
if (!e.value) return "Это не похоже на номер телефона";
|
|
225
225
|
}
|
|
226
|
-
return
|
|
227
|
-
}), _ = E(() =>
|
|
228
|
-
return (o, n) => (p(), P("div",
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
226
|
+
return B.phoneError || "";
|
|
227
|
+
}), _ = E(() => B.isNotMatchCode ? "Неверный код" : se.value.code ? I.value.trim() ? B.codeError ?? null : "Введите код" : "");
|
|
228
|
+
return (o, n) => (p(), P("div", it, [
|
|
229
|
+
q("div", rt, [
|
|
230
|
+
q("div", ut, H(u.value ? "Чтобы продолжить, введите код подтверждения из" : o.hintText), 1),
|
|
231
|
+
u.value ? (p(), P("div", ct, [
|
|
232
232
|
o.isTg ? (p(), G(d(Pe), { key: 0 })) : (p(), G(d(le), {
|
|
233
233
|
key: 1,
|
|
234
234
|
style: { "margin-left": "5px" }
|
|
235
235
|
})),
|
|
236
236
|
Y(" " + H(o.isTg ? "Telegram" : "СМС"), 1)
|
|
237
|
-
])) :
|
|
237
|
+
])) : $("", !0)
|
|
238
238
|
]),
|
|
239
|
-
o.showPhone ? (p(), P("div",
|
|
239
|
+
o.showPhone ? (p(), P("div", pt, [
|
|
240
240
|
T(d(ae), {
|
|
241
241
|
modelValue: d(r),
|
|
242
242
|
"onUpdate:modelValue": n[0] || (n[0] = (s) => ne(r) ? r.value = s : null),
|
|
@@ -244,7 +244,7 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
244
244
|
"text-size": "medium",
|
|
245
245
|
label: "Телефон",
|
|
246
246
|
type: "tel",
|
|
247
|
-
error:
|
|
247
|
+
error: W.value,
|
|
248
248
|
onBlur: n[1] || (n[1] = (s) => F("phone")),
|
|
249
249
|
onInput: J
|
|
250
250
|
}, null, 8, ["modelValue", "error"]),
|
|
@@ -252,8 +252,8 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
252
252
|
class: "icon-locked",
|
|
253
253
|
onClick: n[2] || (n[2] = (s) => o.$emit("edit", "phone"))
|
|
254
254
|
})
|
|
255
|
-
])) :
|
|
256
|
-
|
|
255
|
+
])) : $("", !0),
|
|
256
|
+
u.value ? $("", !0) : (p(), P("div", ht, [
|
|
257
257
|
T(d(Fe), {
|
|
258
258
|
style: { width: "100%" },
|
|
259
259
|
disabled: M.value,
|
|
@@ -266,7 +266,7 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
266
266
|
__: [5]
|
|
267
267
|
}, 8, ["disabled"])
|
|
268
268
|
])),
|
|
269
|
-
|
|
269
|
+
u.value ? (p(), P("div", vt, [
|
|
270
270
|
T(d(ae), {
|
|
271
271
|
modelValue: d(I),
|
|
272
272
|
"onUpdate:modelValue": n[3] || (n[3] = (s) => ne(I) ? I.value = s : null),
|
|
@@ -278,8 +278,8 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
278
278
|
onInput: O,
|
|
279
279
|
onBlur: n[4] || (n[4] = (s) => F("code"))
|
|
280
280
|
}, null, 8, ["modelValue", "error"])
|
|
281
|
-
])) :
|
|
282
|
-
!o.loading &&
|
|
281
|
+
])) : $("", !0),
|
|
282
|
+
!o.loading && u.value ? (p(), P("div", mt, [
|
|
283
283
|
T(we, {
|
|
284
284
|
loading: o.loading,
|
|
285
285
|
"rate-limit-text": o.rateLimitText,
|
|
@@ -294,23 +294,26 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
294
294
|
}, [
|
|
295
295
|
Y(H(o.sendCodeBySmsText) + " ", 1),
|
|
296
296
|
T(d(le), { style: { "margin-left": "5px" } })
|
|
297
|
-
])) :
|
|
297
|
+
])) : $("", !0)
|
|
298
298
|
]),
|
|
299
299
|
_: 1
|
|
300
300
|
}, 8, ["loading", "rate-limit-text", "is-final-limit"])
|
|
301
|
-
])) :
|
|
301
|
+
])) : $("", !0)
|
|
302
302
|
]));
|
|
303
303
|
}
|
|
304
|
-
}),
|
|
304
|
+
}), gt = { class: "dialogDefaultContainerInsideContent" }, yt = { style: { display: "flex", width: "100%", gap: "4px", "align-items": "center", "justify-content": "center", "text-align": "center" } }, Ct = { class: "dialogDefaultContainerTextHint" }, wt = {
|
|
305
|
+
key: 0,
|
|
306
|
+
class: "chip"
|
|
307
|
+
}, Pt = {
|
|
305
308
|
key: 0,
|
|
306
309
|
class: "input-wrapper"
|
|
307
|
-
},
|
|
310
|
+
}, Tt = {
|
|
308
311
|
key: 1,
|
|
309
312
|
class: "input-wrapper"
|
|
310
|
-
},
|
|
313
|
+
}, St = {
|
|
311
314
|
key: 2,
|
|
312
315
|
class: "input-wrapper"
|
|
313
|
-
},
|
|
316
|
+
}, Mt = { key: 3 }, xt = /* @__PURE__ */ he({
|
|
314
317
|
__name: "AddNewPhoneContent",
|
|
315
318
|
props: {
|
|
316
319
|
phone: {},
|
|
@@ -328,24 +331,24 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
328
331
|
},
|
|
329
332
|
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"],
|
|
330
333
|
setup(R, { emit: x }) {
|
|
331
|
-
const
|
|
334
|
+
const B = R, i = x, u = L(!1), h = L(""), c = ve({
|
|
332
335
|
touched: { phone: !1, code: !1 },
|
|
333
336
|
phoneModel: "",
|
|
334
337
|
codeModel: ""
|
|
335
338
|
});
|
|
336
339
|
Z(
|
|
337
|
-
() =>
|
|
340
|
+
() => c.phoneModel,
|
|
338
341
|
(o) => {
|
|
339
342
|
i("update:phone", o), h.value = "";
|
|
340
343
|
}
|
|
341
344
|
), Z(
|
|
342
|
-
() =>
|
|
345
|
+
() => c.codeModel,
|
|
343
346
|
(o) => i("update:code", o)
|
|
344
347
|
);
|
|
345
|
-
const F = (o) =>
|
|
348
|
+
const F = (o) => c.touched[o] = !0, X = (o) => c.touched[o] = !1, J = () => {
|
|
346
349
|
h.value = "", X("phone");
|
|
347
350
|
}, e = E(() => {
|
|
348
|
-
const n =
|
|
351
|
+
const n = c.phoneModel.trim().replace(/[()\-\s]/g, "");
|
|
349
352
|
return /^\+?\d{10,15}$/.test(n);
|
|
350
353
|
}), M = E(() => !e.value || !!h.value), C = async () => {
|
|
351
354
|
var o;
|
|
@@ -354,12 +357,12 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
354
357
|
h.value = "Это не похоже на номер телефона";
|
|
355
358
|
return;
|
|
356
359
|
}
|
|
357
|
-
const n = await Ne(void 0, U(
|
|
360
|
+
const n = await Ne(void 0, U(c.phoneModel)), { data: s } = n.data;
|
|
358
361
|
if (!(((o = s.data[0]) == null ? void 0 : o.available) ?? !1)) {
|
|
359
362
|
h.value = "Такой номер уже используется";
|
|
360
363
|
return;
|
|
361
364
|
}
|
|
362
|
-
h.value = "", i("on-send-code", { phone:
|
|
365
|
+
h.value = "", i("on-send-code", { phone: c.phoneModel, prevPhone: B.oldPhone, offLoading: !0 }), u.value = !0;
|
|
363
366
|
} catch (n) {
|
|
364
367
|
console.error("Неизвестная ошибка при проверке доступности телефона:", n), h.value = "Это не похоже на номер телефона";
|
|
365
368
|
}
|
|
@@ -369,31 +372,31 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
369
372
|
i("on-clear-code-error");
|
|
370
373
|
const n = o.target;
|
|
371
374
|
let s = n.value.replace(/\D/g, "");
|
|
372
|
-
s.length > 4 && (s = s.slice(0, 4), n.value = s),
|
|
375
|
+
s.length > 4 && (s = s.slice(0, 4), n.value = s), c.codeModel = s, s.length === 4 && s !== f && (f = s, i("on-match-code", { phone: c.phoneModel, code: s }));
|
|
373
376
|
}, v = () => {
|
|
374
|
-
i("on-send-code-again", { phone:
|
|
377
|
+
i("on-send-code-again", { phone: c.phoneModel });
|
|
375
378
|
}, m = () => {
|
|
376
|
-
console.debug("onSendCodeViaSms"), i("on-send-only-sms", { phone:
|
|
377
|
-
}, { phoneModel: r, codeModel: I, touched: se } = Ce(
|
|
379
|
+
console.debug("onSendCodeViaSms"), i("on-send-only-sms", { phone: c.phoneModel });
|
|
380
|
+
}, { phoneModel: r, codeModel: I, touched: se } = Ce(c), W = E(() => {
|
|
378
381
|
if (h.value) return h.value;
|
|
379
|
-
if (
|
|
380
|
-
if (!
|
|
382
|
+
if (c.touched.phone) {
|
|
383
|
+
if (!c.phoneModel.trim()) return "Введите номер телефона";
|
|
381
384
|
if (!e.value) return "Это не похоже на номер телефона";
|
|
382
385
|
}
|
|
383
|
-
return
|
|
384
|
-
}), _ = E(() =>
|
|
385
|
-
return (o, n) => (p(), P("div",
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
386
|
+
return B.phoneError || "";
|
|
387
|
+
}), _ = E(() => B.isNotMatchCode ? "Неверный код" : c.touched.code ? I.value.trim() ? B.codeError ?? null : "Введите код" : "");
|
|
388
|
+
return (o, n) => (p(), P("div", gt, [
|
|
389
|
+
q("div", yt, [
|
|
390
|
+
q("div", Ct, H(u.value ? "Чтобы продолжить, введите код подтверждения из" : o.hintText), 1),
|
|
391
|
+
u.value ? (p(), P("div", wt, [
|
|
389
392
|
o.isTg ? (p(), G(d(Pe), { key: 0 })) : (p(), G(d(le), {
|
|
390
393
|
key: 1,
|
|
391
394
|
style: { "margin-left": "5px" }
|
|
392
395
|
})),
|
|
393
396
|
Y(" " + H(o.isTg ? "Telegram" : "СМС"), 1)
|
|
394
|
-
])
|
|
397
|
+
])) : $("", !0)
|
|
395
398
|
]),
|
|
396
|
-
o.showPhone ? (p(), P("div",
|
|
399
|
+
o.showPhone ? (p(), P("div", Pt, [
|
|
397
400
|
T(d(ae), {
|
|
398
401
|
modelValue: d(r),
|
|
399
402
|
"onUpdate:modelValue": n[0] || (n[0] = (s) => ne(r) ? r.value = s : null),
|
|
@@ -401,7 +404,7 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
401
404
|
"text-size": "medium",
|
|
402
405
|
label: "Телефон",
|
|
403
406
|
type: "tel",
|
|
404
|
-
error:
|
|
407
|
+
error: W.value,
|
|
405
408
|
onBlur: n[1] || (n[1] = (s) => F("phone")),
|
|
406
409
|
onInput: J
|
|
407
410
|
}, null, 8, ["modelValue", "error"]),
|
|
@@ -409,8 +412,8 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
409
412
|
class: "icon-locked",
|
|
410
413
|
onClick: n[2] || (n[2] = (s) => o.$emit("edit", "phone"))
|
|
411
414
|
})
|
|
412
|
-
])) :
|
|
413
|
-
|
|
415
|
+
])) : $("", !0),
|
|
416
|
+
u.value ? $("", !0) : (p(), P("div", Tt, [
|
|
414
417
|
T(d(Fe), {
|
|
415
418
|
style: { width: "100%" },
|
|
416
419
|
disabled: M.value,
|
|
@@ -423,7 +426,7 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
423
426
|
__: [5]
|
|
424
427
|
}, 8, ["disabled"])
|
|
425
428
|
])),
|
|
426
|
-
|
|
429
|
+
u.value ? (p(), P("div", St, [
|
|
427
430
|
T(d(ae), {
|
|
428
431
|
modelValue: d(I),
|
|
429
432
|
"onUpdate:modelValue": n[3] || (n[3] = (s) => ne(I) ? I.value = s : null),
|
|
@@ -435,8 +438,8 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
435
438
|
onInput: O,
|
|
436
439
|
onBlur: n[4] || (n[4] = (s) => F("code"))
|
|
437
440
|
}, null, 8, ["modelValue", "error"])
|
|
438
|
-
])) :
|
|
439
|
-
|
|
441
|
+
])) : $("", !0),
|
|
442
|
+
u.value ? (p(), P("div", Mt, [
|
|
440
443
|
T(we, {
|
|
441
444
|
loading: o.loading,
|
|
442
445
|
"rate-limit-text": o.rateLimitText,
|
|
@@ -451,17 +454,17 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
451
454
|
}, [
|
|
452
455
|
Y(H(o.sendCodeBySmsText) + " ", 1),
|
|
453
456
|
T(d(le), { style: { "margin-left": "5px" } })
|
|
454
|
-
])) :
|
|
457
|
+
])) : $("", !0)
|
|
455
458
|
]),
|
|
456
459
|
_: 1
|
|
457
460
|
}, 8, ["loading", "rate-limit-text", "is-final-limit"])
|
|
458
|
-
])) :
|
|
461
|
+
])) : $("", !0)
|
|
459
462
|
]));
|
|
460
463
|
}
|
|
461
|
-
}),
|
|
464
|
+
}), bt = { class: "text-center w-full" }, kt = { class: "dialogTitle" }, Vt = {
|
|
462
465
|
key: 0,
|
|
463
466
|
class: "dialogDefaultContainer"
|
|
464
|
-
},
|
|
467
|
+
}, $t = { key: 3 }, Bt = {
|
|
465
468
|
key: 1,
|
|
466
469
|
class: "dialogDefaultContainer"
|
|
467
470
|
}, pe = 3, At = /* @__PURE__ */ he({
|
|
@@ -476,30 +479,30 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
476
479
|
mode: { default: void 0 }
|
|
477
480
|
},
|
|
478
481
|
emits: ["update:modelValue", "submit-phone", "edit", "close", "clean-input-errors", "on-update-jwt", "update-phone-field", "on-toast"],
|
|
479
|
-
setup(R, { expose: x, emit:
|
|
480
|
-
const i = R,
|
|
482
|
+
setup(R, { expose: x, emit: B }) {
|
|
483
|
+
const i = R, u = B, h = L(i.modelValue);
|
|
481
484
|
Z(
|
|
482
485
|
() => i.modelValue,
|
|
483
486
|
(a) => h.value = a
|
|
484
|
-
), Z(h, (a) =>
|
|
485
|
-
const
|
|
487
|
+
), Z(h, (a) => u("update:modelValue", a));
|
|
488
|
+
const c = E(() => i.language ?? "ru"), F = (a) => De[c.value] && De[c.value][a] || (i.title ?? a), X = E(() => i.title ?? F("Смена номера телефона")), J = E(() => i.hintText ?? F("Чтобы продолжить, введите новый номер")), e = ve({
|
|
486
489
|
oldPhone: i.initialPhone ?? "",
|
|
487
490
|
newPhone: "",
|
|
488
491
|
code: "",
|
|
489
492
|
addPhone: "",
|
|
490
493
|
addCode: ""
|
|
491
|
-
}), M = L(
|
|
494
|
+
}), M = L(j.OLD), C = L(null), f = L(!1), O = L(!1), v = L("tg"), m = E(() => v.value === "tg"), r = L(!1), { startTimer: I, remainingSeconds: se, isAvailableForSendAgain: W, totalRateAttempts: _, currentRateAttempt: o } = He(), { showRateLimitToast: n } = Je(u), { isEditFlow: s, getFlow: me } = Ge(L(i.mode)), de = E(() => W.value ? "Повторить" : `${se.value}`), ie = L(pe), re = E(() => ie.value === 0), Ue = (a) => new Promise((l) => setTimeout(l, a));
|
|
492
495
|
async function fe(a = "email") {
|
|
493
496
|
var t;
|
|
494
497
|
return (t = (await Ae("/users/profile/session/get-edit-session", { params: { field: a } })).data) == null ? void 0 : t.data;
|
|
495
498
|
}
|
|
496
499
|
async function Te(a = "phone") {
|
|
497
500
|
var b;
|
|
498
|
-
const t = (b = (await
|
|
501
|
+
const t = (b = (await te("/users/profile/session/create-if-not-exists", {
|
|
499
502
|
field: a,
|
|
500
503
|
oldValue: U(i.initialPhone)
|
|
501
504
|
})).data) == null ? void 0 : b.data;
|
|
502
|
-
C.value = (t == null ? void 0 : t.sessionId) ?? null, M.value = (t == null ? void 0 : t.step) ??
|
|
505
|
+
C.value = (t == null ? void 0 : t.sessionId) ?? null, M.value = (t == null ? void 0 : t.step) ?? j.OLD, e.oldPhone = (t == null ? void 0 : t.oldValue) ?? "", e.newPhone = (t == null ? void 0 : t.newValue) ?? "";
|
|
503
506
|
}
|
|
504
507
|
async function Re() {
|
|
505
508
|
try {
|
|
@@ -512,7 +515,7 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
512
515
|
async function Se(a, l = !1) {
|
|
513
516
|
var t;
|
|
514
517
|
try {
|
|
515
|
-
const b = await
|
|
518
|
+
const b = await te(
|
|
516
519
|
"/users/profile/check-throttler",
|
|
517
520
|
{
|
|
518
521
|
method: "sms",
|
|
@@ -527,7 +530,7 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
527
530
|
);
|
|
528
531
|
await Ue(1e3);
|
|
529
532
|
const w = (t = b.data) == null ? void 0 : t.data;
|
|
530
|
-
return w ? (w.restTimeSec > 0 ? (I(w.restTimeSec),
|
|
533
|
+
return w ? (w.restTimeSec > 0 ? (I(w.restTimeSec), W.value = !1, _.value = w.attempts.total, o.value = w.attempts.total - w.attempts.available, ie.value = w.attempts.available ?? pe) : W.value = !0, w) : null;
|
|
531
534
|
} catch {
|
|
532
535
|
return null;
|
|
533
536
|
}
|
|
@@ -536,7 +539,7 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
536
539
|
var b, w, D, A, N;
|
|
537
540
|
f.value = !0;
|
|
538
541
|
try {
|
|
539
|
-
const k = a ?? e.oldPhone, g = await
|
|
542
|
+
const k = a ?? e.oldPhone, g = await te(
|
|
540
543
|
"/users/profile/phone/contact/send-code",
|
|
541
544
|
{
|
|
542
545
|
sessionId: C.value,
|
|
@@ -559,7 +562,7 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
559
562
|
const K = (N = (A = g.data) == null ? void 0 : A.tooManyRequests) == null ? void 0 : N.type;
|
|
560
563
|
v.value = K;
|
|
561
564
|
const y = g.data.tooManyRequests;
|
|
562
|
-
return y.restTimeSec > 0 ? (I(y.restTimeSec), _.value = y.attempts.total, o.value = y.attempts.total - y.attempts.available, ie.value = y.attempts.available ?? pe) :
|
|
565
|
+
return y.restTimeSec > 0 ? (I(y.restTimeSec), _.value = y.attempts.total, o.value = y.attempts.total - y.attempts.available, ie.value = y.attempts.available ?? pe) : W.value = !0, g;
|
|
563
566
|
}
|
|
564
567
|
return console.debug("sendContactCode after обработка 403 tooManyRequests", g), g;
|
|
565
568
|
} catch (k) {
|
|
@@ -573,22 +576,22 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
573
576
|
try {
|
|
574
577
|
const V = await fe("phone");
|
|
575
578
|
C.value = V.sessionId, M.value = V.step, e.oldPhone = V.oldValue ?? e.oldPhone, e.newPhone = V.newValue ?? e.newPhone;
|
|
576
|
-
const z = await
|
|
577
|
-
phone: l ===
|
|
579
|
+
const z = await te("/users/profile/change/phone/match-code", {
|
|
580
|
+
phone: l === j.NEW ? U(e.newPhone) : U(e.oldPhone),
|
|
578
581
|
sessionId: C.value,
|
|
579
582
|
code: a,
|
|
580
583
|
step: l
|
|
581
|
-
}),
|
|
582
|
-
if (
|
|
583
|
-
O.value = !0;
|
|
584
|
+
}), oe = ((t = z.data) == null ? void 0 : t.nextStep) ?? ((w = (b = z.data) == null ? void 0 : b.data) == null ? void 0 : w.nextStep), ce = ((A = (D = z.data) == null ? void 0 : D.data) == null ? void 0 : A.rateLimit) ?? ((N = z.data) == null ? void 0 : N.rateLimit) ?? null;
|
|
585
|
+
if (!(((k = z.data) == null ? void 0 : k.data.success) ?? ((g = z.data) == null ? void 0 : g.success))) {
|
|
586
|
+
n(ce), O.value = !0;
|
|
584
587
|
return;
|
|
585
588
|
}
|
|
586
|
-
if (!
|
|
587
|
-
if (M.value =
|
|
589
|
+
if (!oe) return z;
|
|
590
|
+
if (M.value = oe, oe === j.NEW) {
|
|
588
591
|
const Le = await fe("phone");
|
|
589
592
|
e.oldPhone = Le.oldValue ?? e.oldPhone, e.newPhone = Le.newValue ?? e.newPhone, e.code = "";
|
|
590
593
|
}
|
|
591
|
-
return
|
|
594
|
+
return oe === j.COMPLETED && (e.code = "", u("update-phone-field", e.addPhone), u("submit-phone", { phone: e.oldPhone, code: a }), u("on-toast", { color: "success", text: "Номер телефона изменён" }), u("on-update-jwt", "phone", "edit", e.newPhone), C.value = null, u("close")), z;
|
|
592
595
|
} catch (V) {
|
|
593
596
|
const z = (K = (S = V == null ? void 0 : V.response) == null ? void 0 : S.data) == null ? void 0 : K.rateLimit;
|
|
594
597
|
if (((y = V == null ? void 0 : V.response) == null ? void 0 : y.status) === 429 && z) {
|
|
@@ -599,14 +602,14 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
599
602
|
} finally {
|
|
600
603
|
f.value = !1;
|
|
601
604
|
}
|
|
602
|
-
}, xe = ({ code: a }) => Me(a,
|
|
605
|
+
}, xe = ({ code: a }) => Me(a, j.OLD);
|
|
603
606
|
function be(a) {
|
|
604
607
|
}
|
|
605
|
-
const ke = ({ code: a }) => Me(a,
|
|
608
|
+
const ke = ({ code: a }) => Me(a, j.NEW);
|
|
606
609
|
function Ve(a) {
|
|
607
610
|
}
|
|
608
611
|
const ue = () => {
|
|
609
|
-
|
|
612
|
+
u("close"), h.value = !1;
|
|
610
613
|
};
|
|
611
614
|
async function $e(a = "phone") {
|
|
612
615
|
var t;
|
|
@@ -621,7 +624,7 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
621
624
|
f.value = !0;
|
|
622
625
|
try {
|
|
623
626
|
if (!C.value) {
|
|
624
|
-
const A = await
|
|
627
|
+
const A = await te("/users/profile/session/bind/create", {
|
|
625
628
|
field: l,
|
|
626
629
|
newValue: U(a || e.addPhone)
|
|
627
630
|
});
|
|
@@ -651,7 +654,7 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
651
654
|
try {
|
|
652
655
|
if (!C.value)
|
|
653
656
|
throw new Error("bind-сессия не найдена. создайте её через createBindSession.");
|
|
654
|
-
const N = a ?? e.addPhone, k = await
|
|
657
|
+
const N = a ?? e.addPhone, k = await te(
|
|
655
658
|
`/users/profile/bind/contact/send-code/${l}`,
|
|
656
659
|
{
|
|
657
660
|
sessionId: C.value,
|
|
@@ -669,12 +672,12 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
669
672
|
const S = (A = k.data) == null ? void 0 : A.tooManyRequests;
|
|
670
673
|
if (k.status === 403 && S) {
|
|
671
674
|
const K = S == null ? void 0 : S.type;
|
|
672
|
-
return v.value = K, S.restTimeSec > 0 ? (I(S.restTimeSec), _.value = S.attempts.total, o.value = S.attempts.total - S.attempts.available, ie.value = S.attempts.available ?? pe) :
|
|
675
|
+
return v.value = K, S.restTimeSec > 0 ? (I(S.restTimeSec), _.value = S.attempts.total, o.value = S.attempts.total - S.attempts.available, ie.value = S.attempts.available ?? pe) : W.value = !0, k;
|
|
673
676
|
}
|
|
674
677
|
return k;
|
|
675
678
|
} finally {
|
|
676
679
|
const N = await Se(a ?? e.addPhone);
|
|
677
|
-
N && N.restTimeSec > 0 ? (I(N.restTimeSec),
|
|
680
|
+
N && N.restTimeSec > 0 ? (I(N.restTimeSec), W.value = !1) : W.value = !0, b && (f.value = !1);
|
|
678
681
|
}
|
|
679
682
|
}, Ee = async ({ code: a }) => {
|
|
680
683
|
var l, t, b, w, D, A, N, k, g, S, K;
|
|
@@ -684,16 +687,16 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
684
687
|
const ce = await $e("phone");
|
|
685
688
|
C.value = ce.sessionId, e.addPhone = ce.newValue ?? e.addPhone;
|
|
686
689
|
}
|
|
687
|
-
const y = await
|
|
690
|
+
const y = await te("/users/profile/bind/phone/match-code", {
|
|
688
691
|
phone: U(e.addPhone),
|
|
689
692
|
sessionId: C.value,
|
|
690
693
|
code: a
|
|
691
|
-
}), V = ((l = y.data) == null ? void 0 : l.nextStep) ?? ((b = (t = y.data) == null ? void 0 : t.data) == null ? void 0 : b.nextStep), z = ((D = (w = y.data) == null ? void 0 : w.data) == null ? void 0 : D.rateLimit) ?? ((A = y.data) == null ? void 0 : A.rateLimit) ?? null
|
|
692
|
-
if (
|
|
693
|
-
O.value = !0;
|
|
694
|
+
}), V = ((l = y.data) == null ? void 0 : l.nextStep) ?? ((b = (t = y.data) == null ? void 0 : t.data) == null ? void 0 : b.nextStep), z = ((D = (w = y.data) == null ? void 0 : w.data) == null ? void 0 : D.rateLimit) ?? ((A = y.data) == null ? void 0 : A.rateLimit) ?? null;
|
|
695
|
+
if (!(((N = y.data) == null ? void 0 : N.data.success) ?? ((k = y.data) == null ? void 0 : k.success))) {
|
|
696
|
+
n(z), O.value = !0;
|
|
694
697
|
return;
|
|
695
698
|
}
|
|
696
|
-
return V && V ===
|
|
699
|
+
return V && V === j.COMPLETED && (e.code = "", u("update-phone-field", e.addPhone), u("submit-phone", { phone: e.addPhone, code: a }), u("on-update-jwt", "phone", "bind", e.addPhone), u("on-toast", { color: "success", text: "Номер телефона успешно привязан к аккаунту" }), C.value = null, u("close")), y;
|
|
697
700
|
} catch (y) {
|
|
698
701
|
const V = (S = (g = y == null ? void 0 : y.response) == null ? void 0 : g.data) == null ? void 0 : S.rateLimit;
|
|
699
702
|
if (((K = y == null ? void 0 : y.response) == null ? void 0 : K.status) === 429 && V) {
|
|
@@ -706,7 +709,7 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
706
709
|
}
|
|
707
710
|
}, Ie = async () => {
|
|
708
711
|
};
|
|
709
|
-
return
|
|
712
|
+
return je(async () => {
|
|
710
713
|
f.value = !0;
|
|
711
714
|
const a = await me("phone");
|
|
712
715
|
if (i.mode === "bind" && a === "bind") {
|
|
@@ -732,8 +735,8 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
732
735
|
handleNewCodeError: Ve,
|
|
733
736
|
matchBindCode: Ee,
|
|
734
737
|
matchBindCodeError: Ie
|
|
735
|
-
}), (a, l) => (p(), P(
|
|
736
|
-
T(d(
|
|
738
|
+
}), (a, l) => (p(), P(qe, null, [
|
|
739
|
+
T(d(Qe), {
|
|
737
740
|
modelValue: h.value,
|
|
738
741
|
"onUpdate:modelValue": [
|
|
739
742
|
l[15] || (l[15] = (t) => h.value = t),
|
|
@@ -745,18 +748,18 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
745
748
|
"onClick:outside": ue
|
|
746
749
|
}, {
|
|
747
750
|
header: Q(() => [
|
|
748
|
-
|
|
749
|
-
T(d(
|
|
751
|
+
q("div", bt, [
|
|
752
|
+
T(d(Xe), {
|
|
750
753
|
"slot-left": !1,
|
|
751
754
|
size: "small",
|
|
752
755
|
borded: !0,
|
|
753
756
|
"no-padding": !1
|
|
754
757
|
}, {
|
|
755
758
|
title: Q(() => [
|
|
756
|
-
|
|
759
|
+
q("span", kt, H(d(s) ? X.value : "Добавление номера телефона"), 1)
|
|
757
760
|
]),
|
|
758
761
|
"right-button": Q(() => [
|
|
759
|
-
T(d(
|
|
762
|
+
T(d(Ye), {
|
|
760
763
|
class: "cross",
|
|
761
764
|
onClick: ue
|
|
762
765
|
})
|
|
@@ -766,9 +769,9 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
766
769
|
])
|
|
767
770
|
]),
|
|
768
771
|
default: Q(() => [
|
|
769
|
-
d(s) ? (p(), P("div",
|
|
770
|
-
f.value ? (p(), G(Oe, { key: 0 })) :
|
|
771
|
-
M.value === d(
|
|
772
|
+
d(s) ? (p(), P("div", Vt, [
|
|
773
|
+
f.value ? (p(), G(Oe, { key: 0 })) : $("", !0),
|
|
774
|
+
M.value === d(j).OLD ? (p(), G(dt, {
|
|
772
775
|
key: 1,
|
|
773
776
|
phone: e.oldPhone,
|
|
774
777
|
"onUpdate:phone": l[0] || (l[0] = (t) => e.oldPhone = t),
|
|
@@ -784,7 +787,7 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
784
787
|
onOnSendOnlySms: ge,
|
|
785
788
|
onOnMatchCode: xe,
|
|
786
789
|
onOnMatchCodeError: be
|
|
787
|
-
}, null, 8, ["phone", "code", "rate-limit-text", "is-final-limit", "is-not-match-code", "loading", "is-tg"])) : M.value === d(
|
|
790
|
+
}, null, 8, ["phone", "code", "rate-limit-text", "is-final-limit", "is-not-match-code", "loading", "is-tg"])) : M.value === d(j).NEW ? (p(), G(ft, {
|
|
788
791
|
key: 2,
|
|
789
792
|
phone: e.newPhone,
|
|
790
793
|
"onUpdate:phone": l[4] || (l[4] = (t) => e.newPhone = t),
|
|
@@ -804,12 +807,12 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
804
807
|
onOnMatchCode: ke,
|
|
805
808
|
onOnMatchCodeError: Ve,
|
|
806
809
|
onOnClearCodeError: l[9] || (l[9] = (t) => O.value = !1)
|
|
807
|
-
}, null, 8, ["phone", "oldPhone", "code", "hint-text", "rate-limit-text", "is-final-limit", "is-not-match-code", "loading", "is-tg"])) : M.value === d(
|
|
808
|
-
|
|
809
|
-
])) :
|
|
810
|
-
])) : (p(), P("div",
|
|
811
|
-
f.value ? (p(), G(Oe, { key: 0 })) :
|
|
812
|
-
T(
|
|
810
|
+
}, null, 8, ["phone", "oldPhone", "code", "hint-text", "rate-limit-text", "is-final-limit", "is-not-match-code", "loading", "is-tg"])) : M.value === d(j).COMPLETED ? (p(), P("div", $t, [
|
|
811
|
+
q("p", null, H(F("Телефон успешно изменен")), 1)
|
|
812
|
+
])) : $("", !0)
|
|
813
|
+
])) : (p(), P("div", Bt, [
|
|
814
|
+
f.value ? (p(), G(Oe, { key: 0 })) : $("", !0),
|
|
815
|
+
T(xt, {
|
|
813
816
|
phone: e.addPhone,
|
|
814
817
|
"onUpdate:phone": l[10] || (l[10] = (t) => e.addPhone = t),
|
|
815
818
|
oldPhone: e.oldPhone,
|
|
@@ -832,7 +835,7 @@ const le = { render: tt }, ot = { class: "dialogDefaultContainerInsideContent" }
|
|
|
832
835
|
]),
|
|
833
836
|
_: 1
|
|
834
837
|
}, 8, ["modelValue"]),
|
|
835
|
-
T(d(
|
|
838
|
+
T(d(Ze))
|
|
836
839
|
], 64));
|
|
837
840
|
}
|
|
838
841
|
});
|