@ozdao/prometheus-framework 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.client.cjs +7 -7
- package/dist/auth.client.js +149 -150
- package/package.json +1 -1
- package/src/modules/auth/components/pages/SignIn.vue +7 -12
package/dist/auth.client.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
import { ref as w, onMounted as pt, openBlock as v, createBlock as me, unref as c, withCtx as O, createElementBlock as b, Fragment as he, renderList as mt, createElementVNode as u, normalizeStyle as X, toDisplayString as h, resolveComponent as we, createVNode as g, Transition as
|
2
|
-
import { v as
|
3
|
-
import { c as gt, s as p, d as le, a as zt, F as
|
1
|
+
import { ref as w, onMounted as pt, openBlock as v, createBlock as me, unref as c, withCtx as O, createElementBlock as b, Fragment as he, renderList as mt, createElementVNode as u, normalizeStyle as X, toDisplayString as h, resolveComponent as we, createVNode as g, Transition as x, resolveDynamicComponent as Ft, reactive as ht, withDirectives as T, vModelText as te, watch as Dt, withAsyncContext as Rt, defineComponent as Mt, resolveDirective as xt, normalizeClass as W, withKeys as se, createCommentVNode as z, vShow as Y, vModelDynamic as Lt, renderSlot as kt, createTextVNode as j, inject as De } from "vue";
|
2
|
+
import { v as L, b as yt, c as Pe, d as Oe } from "./inputs.validation-14e8e01f.mjs";
|
3
|
+
import { c as gt, s as p, d as le, a as zt, F as k, _ as ee, b as Z } from "./auth-cfeacd61.mjs";
|
4
4
|
import { e as Mi, t as xi } from "./auth-cfeacd61.mjs";
|
5
5
|
import { C as jt, S as Bt } from "./carousel.es-44c501bc.mjs";
|
6
6
|
import { useI18n as K } from "vue-i18n";
|
7
|
-
import { useRoute as
|
8
|
-
import { s as
|
9
|
-
import { _ as
|
7
|
+
import { useRoute as B, useRouter as U } from "vue-router";
|
8
|
+
import { s as M } from "./globals-96ba60e4.mjs";
|
9
|
+
import { _ as Ie } from "./Tab-a243605d.mjs";
|
10
10
|
import { _ as Ut } from "./_plugin-vue_export-helper-dad06003.mjs";
|
11
11
|
import { r as q, a as $e, c as Re } from "./auth.validation-3fd4cc7c.mjs";
|
12
12
|
const Gt = { class: "parent-div" }, Vt = { class: "mn-small" }, Ht = { class: "mn-big mn-r-small mn-l-small" }, Ti = {
|
@@ -205,7 +205,7 @@ var F = /* @__PURE__ */ function(e) {
|
|
205
205
|
return Xt(this, t), r = n.call(this, d), Object.setPrototypeOf(vt(r), t.prototype), r.name = r.constructor.name, r;
|
206
206
|
}
|
207
207
|
return qt(t);
|
208
|
-
}(/* @__PURE__ */ ge(Error)),
|
208
|
+
}(/* @__PURE__ */ ge(Error)), Se = 2, en = 17, tn = 3, A = "0-90-9٠-٩۰-۹", nn = "-‐-―−ー-", dn = "//", rn = "..", on = " ", an = "()()[]\\[\\]", sn = "~⁓∼~", de = "".concat(nn).concat(dn).concat(rn).concat(on).concat(an).concat(sn), Ne = "++";
|
209
209
|
function xe(e, n) {
|
210
210
|
e = e.split("-"), n = n.split("-");
|
211
211
|
for (var t = e[0].split("."), d = n[0].split("."), r = 0; r < 3; r++) {
|
@@ -242,7 +242,7 @@ function Le(e, n) {
|
|
242
242
|
function ae(e, n, t) {
|
243
243
|
return n && Le(e.prototype, n), t && Le(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
244
244
|
}
|
245
|
-
var ln = "1.2.0", $n = "1.7.35", ke = " ext. ", un = /^\d+$/,
|
245
|
+
var ln = "1.2.0", $n = "1.7.35", ke = " ext. ", un = /^\d+$/, S = /* @__PURE__ */ function() {
|
246
246
|
function e(n) {
|
247
247
|
oe(this, e), mn(n), this.metadata = n, _t.call(this, n);
|
248
248
|
}
|
@@ -664,7 +664,7 @@ var ue = function(n) {
|
|
664
664
|
return re(n);
|
665
665
|
};
|
666
666
|
function Ee(e, n) {
|
667
|
-
if (n = new
|
667
|
+
if (n = new S(n), n.hasCountry(e))
|
668
668
|
return n.country(e).countryCallingCode();
|
669
669
|
throw new Error("Unknown country: ".concat(e));
|
670
670
|
}
|
@@ -679,23 +679,23 @@ var gn = ";ext=", V = function(n) {
|
|
679
679
|
return "([".concat(A, "]{1,").concat(n, "})");
|
680
680
|
};
|
681
681
|
function Ct(e) {
|
682
|
-
var n = "20", t = "15", d = "9", r = "6", i = "[ \\t,]*", o = "[:\\..]?[ \\t,-]*", a = "#?", l = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", s = "(?:[xx##~~]|int|int)", y = "[- ]+",
|
683
|
-
return $ + "|" + f + "|" + P + "|" +
|
682
|
+
var n = "20", t = "15", d = "9", r = "6", i = "[ \\t,]*", o = "[:\\..]?[ \\t,-]*", a = "#?", l = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", s = "(?:[xx##~~]|int|int)", y = "[- ]+", _ = "[ \\t]*", m = "(?:,{2}|;)", $ = gn + V(n), f = i + l + o + V(n) + a, P = i + s + o + V(d) + a, C = y + V(r) + "#", N = _ + m + o + V(t) + a, G = _ + "(?:,)+" + o + V(d) + a;
|
683
|
+
return $ + "|" + f + "|" + P + "|" + C + "|" + N + "|" + G;
|
684
684
|
}
|
685
|
-
var vn = "[" + A + "]{" +
|
685
|
+
var vn = "[" + A + "]{" + Se + "}", bn = "[" + Ne + "]{0,1}(?:[" + de + "]*[" + A + "]){3,}[" + de + A + "]*", _n = new RegExp("^[" + Ne + "]{0,1}(?:[" + de + "]*[" + A + "]){1,2}$", "i"), Cn = bn + // Phone number extensions
|
686
686
|
"(?:" + Ct() + ")?", wn = new RegExp(
|
687
687
|
// Either a short two-digit-only phone number
|
688
688
|
"^" + vn + "$|^" + Cn + "$",
|
689
689
|
"i"
|
690
690
|
);
|
691
691
|
function Pn(e) {
|
692
|
-
return e.length >=
|
692
|
+
return e.length >= Se && wn.test(e);
|
693
693
|
}
|
694
694
|
function On(e) {
|
695
695
|
return _n.test(e);
|
696
696
|
}
|
697
697
|
var Be = new RegExp("(?:" + Ct() + ")$", "i");
|
698
|
-
function
|
698
|
+
function In(e) {
|
699
699
|
var n = e.search(Be);
|
700
700
|
if (n < 0)
|
701
701
|
return {};
|
@@ -708,7 +708,7 @@ function Sn(e) {
|
|
708
708
|
r++;
|
709
709
|
}
|
710
710
|
}
|
711
|
-
var
|
711
|
+
var Sn = {
|
712
712
|
0: "0",
|
713
713
|
1: "1",
|
714
714
|
2: "2",
|
@@ -781,7 +781,7 @@ var In = {
|
|
781
781
|
// Eastern-Arabic digit 9
|
782
782
|
};
|
783
783
|
function Nn(e) {
|
784
|
-
return
|
784
|
+
return Sn[e];
|
785
785
|
}
|
786
786
|
function En(e, n) {
|
787
787
|
var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
@@ -882,7 +882,7 @@ function wt(e, n, t) {
|
|
882
882
|
return a === o ? "IS_POSSIBLE" : a > o ? "TOO_SHORT" : r[r.length - 1] < o ? "TOO_LONG" : r.indexOf(o, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
|
883
883
|
}
|
884
884
|
function Mn(e, n, t) {
|
885
|
-
if (n === void 0 && (n = {}), t = new
|
885
|
+
if (n === void 0 && (n = {}), t = new S(t), n.v2) {
|
886
886
|
if (!e.countryCallingCode)
|
887
887
|
throw new Error("Invalid phone number object passed");
|
888
888
|
t.selectNumberingPlan(e.countryCallingCode);
|
@@ -950,7 +950,7 @@ function He(e, n) {
|
|
950
950
|
var kn = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
|
951
951
|
function Ae(e, n, t) {
|
952
952
|
if (n = n || {}, !!e.country) {
|
953
|
-
t = new
|
953
|
+
t = new S(t), t.selectNumberingPlan(e.country, e.countryCallingCode);
|
954
954
|
var d = n.v2 ? e.nationalNumber : e.phone;
|
955
955
|
if (R(d, t.nationalNumberPattern())) {
|
956
956
|
if (ce(d, "FIXED_LINE", t))
|
@@ -967,19 +967,19 @@ function ce(e, n, t) {
|
|
967
967
|
return n = t.type(n), !n || !n.pattern() || n.possibleLengths() && n.possibleLengths().indexOf(e.length) < 0 ? !1 : R(e, n.pattern());
|
968
968
|
}
|
969
969
|
function zn(e, n, t) {
|
970
|
-
if (n = n || {}, t = new
|
970
|
+
if (n = n || {}, t = new S(t), t.selectNumberingPlan(e.country, e.countryCallingCode), t.hasTypes())
|
971
971
|
return Ae(e, n, t.metadata) !== void 0;
|
972
972
|
var d = n.v2 ? e.nationalNumber : e.phone;
|
973
973
|
return R(d, t.nationalNumberPattern());
|
974
974
|
}
|
975
975
|
function jn(e, n, t) {
|
976
|
-
var d = new
|
976
|
+
var d = new S(t), r = d.getCountryCodesForCallingCode(e);
|
977
977
|
return r ? r.filter(function(i) {
|
978
978
|
return Bn(n, i, t);
|
979
979
|
}) : [];
|
980
980
|
}
|
981
981
|
function Bn(e, n, t) {
|
982
|
-
var d = new
|
982
|
+
var d = new S(t);
|
983
983
|
return d.selectNumberingPlan(n), d.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
|
984
984
|
}
|
985
985
|
function Un(e) {
|
@@ -1009,7 +1009,7 @@ function Vn(e, n, t) {
|
|
1009
1009
|
}
|
1010
1010
|
var Hn = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
1011
1011
|
function Kn(e, n, t) {
|
1012
|
-
var d = new
|
1012
|
+
var d = new S(t);
|
1013
1013
|
if (d.selectNumberingPlan(e, n), d.defaultIDDPrefix())
|
1014
1014
|
return d.defaultIDDPrefix();
|
1015
1015
|
if (Hn.test(d.IDDPrefix()))
|
@@ -1084,7 +1084,7 @@ var Xe = {
|
|
1084
1084
|
}
|
1085
1085
|
};
|
1086
1086
|
function Zn(e, n, t, d) {
|
1087
|
-
if (t ? t = qe(qe({}, Xe), t) : t = Xe, d = new
|
1087
|
+
if (t ? t = qe(qe({}, Xe), t) : t = Xe, d = new S(d), e.country && e.country !== "001") {
|
1088
1088
|
if (!d.hasCountry(e.country))
|
1089
1089
|
throw new Error("Unknown country: ".concat(e.country));
|
1090
1090
|
d.country(e.country);
|
@@ -1225,7 +1225,7 @@ var dd = /* @__PURE__ */ function() {
|
|
1225
1225
|
}, {
|
1226
1226
|
key: "isNonGeographic",
|
1227
1227
|
value: function() {
|
1228
|
-
var t = new
|
1228
|
+
var t = new S(this.getMetadata());
|
1229
1229
|
return t.isNonGeographicCallingCode(this.countryCallingCode);
|
1230
1230
|
}
|
1231
1231
|
}, {
|
@@ -1283,7 +1283,7 @@ var dd = /* @__PURE__ */ function() {
|
|
1283
1283
|
return /^[A-Z]{2}$/.test(n);
|
1284
1284
|
};
|
1285
1285
|
function id(e, n) {
|
1286
|
-
var t, d, r = new
|
1286
|
+
var t, d, r = new S(n);
|
1287
1287
|
return rd(e) ? (t = e, r.selectNumberingPlan(t), d = r.countryCallingCode()) : d = e, {
|
1288
1288
|
country: t,
|
1289
1289
|
countryCallingCode: d
|
@@ -1292,7 +1292,7 @@ function id(e, n) {
|
|
1292
1292
|
var od = new RegExp("([" + A + "])");
|
1293
1293
|
function ad(e, n, t, d) {
|
1294
1294
|
if (n) {
|
1295
|
-
var r = new
|
1295
|
+
var r = new S(d);
|
1296
1296
|
r.selectNumberingPlan(n, t);
|
1297
1297
|
var i = new RegExp(r.IDDPrefix());
|
1298
1298
|
if (e.search(i) === 0) {
|
@@ -1316,8 +1316,8 @@ function sd(e, n) {
|
|
1316
1316
|
}
|
1317
1317
|
var s;
|
1318
1318
|
if (a) {
|
1319
|
-
var y = e.indexOf(d[1]),
|
1320
|
-
|
1319
|
+
var y = e.indexOf(d[1]), _ = e.slice(0, y);
|
1320
|
+
_ === n.numberingPlan.nationalPrefix() && (s = n.numberingPlan.nationalPrefix());
|
1321
1321
|
} else
|
1322
1322
|
s = d[0];
|
1323
1323
|
return {
|
@@ -1363,7 +1363,7 @@ function $d(e, n) {
|
|
1363
1363
|
function ud(e, n, t, d) {
|
1364
1364
|
var r = n ? Ee(n, d) : t;
|
1365
1365
|
if (e.indexOf(r) === 0) {
|
1366
|
-
d = new
|
1366
|
+
d = new S(d), d.selectNumberingPlan(n, t);
|
1367
1367
|
var i = e.slice(r.length), o = ve(i, d), a = o.nationalNumber, l = ve(e, d), s = l.nationalNumber;
|
1368
1368
|
if (!R(s, d.nationalNumberPattern()) && R(a, d.nationalNumberPattern()) || Te(s, d) === "TOO_LONG")
|
1369
1369
|
return {
|
@@ -1402,7 +1402,7 @@ function cd(e, n, t, d) {
|
|
1402
1402
|
}
|
1403
1403
|
if (e[1] === "0")
|
1404
1404
|
return {};
|
1405
|
-
d = new
|
1405
|
+
d = new S(d);
|
1406
1406
|
for (var s = 2; s - 1 <= tn && s <= e.length; ) {
|
1407
1407
|
var y = e.slice(1, s);
|
1408
1408
|
if (d.hasCallingCode(y))
|
@@ -1448,7 +1448,7 @@ function Qe(e, n) {
|
|
1448
1448
|
}
|
1449
1449
|
function md(e, n) {
|
1450
1450
|
var t = n.countries, d = n.defaultCountry, r = n.metadata;
|
1451
|
-
r = new
|
1451
|
+
r = new S(r);
|
1452
1452
|
for (var i = [], o = fd(t), a; !(a = o()).done; ) {
|
1453
1453
|
var l = a.value;
|
1454
1454
|
if (r.country(l), r.leadingDigits()) {
|
@@ -1481,8 +1481,8 @@ function yd(e, n) {
|
|
1481
1481
|
metadata: r.metadata
|
1482
1482
|
});
|
1483
1483
|
}
|
1484
|
-
var Ot = "+", gd = "[\\-\\.\\(\\)]?", et = "([" + A + "]|" + gd + ")", vd = "^\\" + Ot + et + "*[" + A + "]" + et + "*$", bd = new RegExp(vd, "g"), be = A, _d = "[" + be + "]+((\\-)*[" + be + "])*", Cd = "a-zA-Z", wd = "[" + Cd + "]+((\\-)*[" + be + "])*", Pd = "^(" + _d + "\\.)*" + wd + "\\.?$", Od = new RegExp(Pd, "g"), tt = "tel:", _e = ";phone-context=",
|
1485
|
-
function
|
1484
|
+
var Ot = "+", gd = "[\\-\\.\\(\\)]?", et = "([" + A + "]|" + gd + ")", vd = "^\\" + Ot + et + "*[" + A + "]" + et + "*$", bd = new RegExp(vd, "g"), be = A, _d = "[" + be + "]+((\\-)*[" + be + "])*", Cd = "a-zA-Z", wd = "[" + Cd + "]+((\\-)*[" + be + "])*", Pd = "^(" + _d + "\\.)*" + wd + "\\.?$", Od = new RegExp(Pd, "g"), tt = "tel:", _e = ";phone-context=", Id = ";isub=";
|
1485
|
+
function Sd(e) {
|
1486
1486
|
var n = e.indexOf(_e);
|
1487
1487
|
if (n < 0)
|
1488
1488
|
return null;
|
@@ -1496,7 +1496,7 @@ function Nd(e) {
|
|
1496
1496
|
return e === null ? !0 : e.length === 0 ? !1 : bd.test(e) || Od.test(e);
|
1497
1497
|
}
|
1498
1498
|
function Ed(e, n) {
|
1499
|
-
var t = n.extractFormattedPhoneNumber, d =
|
1499
|
+
var t = n.extractFormattedPhoneNumber, d = Sd(e);
|
1500
1500
|
if (!Nd(d))
|
1501
1501
|
throw new F("NOT_A_NUMBER");
|
1502
1502
|
var r;
|
@@ -1509,13 +1509,13 @@ function Ed(e, n) {
|
|
1509
1509
|
var a = e.indexOf(_e);
|
1510
1510
|
r += e.substring(o, a);
|
1511
1511
|
}
|
1512
|
-
var l = r.indexOf(
|
1512
|
+
var l = r.indexOf(Id);
|
1513
1513
|
if (l > 0 && (r = r.substring(0, l)), r !== "")
|
1514
1514
|
return r;
|
1515
1515
|
}
|
1516
1516
|
var Td = 250, Ad = new RegExp("[" + Ne + A + "]"), Fd = new RegExp("[^" + A + "#]+$");
|
1517
1517
|
function Dd(e, n, t) {
|
1518
|
-
if (n = n || {}, t = new
|
1518
|
+
if (n = n || {}, t = new S(t), n.defaultCountry && !t.hasCountry(n.defaultCountry))
|
1519
1519
|
throw n.v2 ? new F("INVALID_COUNTRY") : new Error("Unknown country: ".concat(n.defaultCountry));
|
1520
1520
|
var d = Md(e, n.v2, n.extract), r = d.number, i = d.ext, o = d.error;
|
1521
1521
|
if (!r) {
|
@@ -1523,13 +1523,13 @@ function Dd(e, n, t) {
|
|
1523
1523
|
throw o === "TOO_SHORT" ? new F("TOO_SHORT") : new F("NOT_A_NUMBER");
|
1524
1524
|
return {};
|
1525
1525
|
}
|
1526
|
-
var a = Ld(r, n.defaultCountry, n.defaultCallingCode, t), l = a.country, s = a.nationalNumber, y = a.countryCallingCode,
|
1526
|
+
var a = Ld(r, n.defaultCountry, n.defaultCallingCode, t), l = a.country, s = a.nationalNumber, y = a.countryCallingCode, _ = a.countryCallingCodeSource, m = a.carrierCode;
|
1527
1527
|
if (!t.hasSelectedNumberingPlan()) {
|
1528
1528
|
if (n.v2)
|
1529
1529
|
throw new F("INVALID_COUNTRY");
|
1530
1530
|
return {};
|
1531
1531
|
}
|
1532
|
-
if (!s || s.length <
|
1532
|
+
if (!s || s.length < Se) {
|
1533
1533
|
if (n.v2)
|
1534
1534
|
throw new F("TOO_SHORT");
|
1535
1535
|
return {};
|
@@ -1541,7 +1541,7 @@ function Dd(e, n, t) {
|
|
1541
1541
|
}
|
1542
1542
|
if (n.v2) {
|
1543
1543
|
var $ = new dd(y, s, t.metadata);
|
1544
|
-
return l && ($.country = l), m && ($.carrierCode = m), i && ($.ext = i), $.__countryCallingCodeSource =
|
1544
|
+
return l && ($.country = l), m && ($.carrierCode = m), i && ($.ext = i), $.__countryCallingCodeSource = _, $;
|
1545
1545
|
}
|
1546
1546
|
var f = (n.extended ? t.hasSelectedNumberingPlan() : l) ? R(s, t.nationalNumberPattern()) : !1;
|
1547
1547
|
return n.extended ? {
|
@@ -1580,7 +1580,7 @@ function Md(e, n, t) {
|
|
1580
1580
|
return On(d) ? {
|
1581
1581
|
error: "TOO_SHORT"
|
1582
1582
|
} : {};
|
1583
|
-
var r =
|
1583
|
+
var r = In(d);
|
1584
1584
|
return r.ext ? r : {
|
1585
1585
|
number: d
|
1586
1586
|
};
|
@@ -1605,7 +1605,7 @@ function Ld(e, n, t, d) {
|
|
1605
1605
|
countryCallingCodeSource: i,
|
1606
1606
|
countryCallingCode: o
|
1607
1607
|
};
|
1608
|
-
var s = ve(Ge(a), d), y = s.nationalNumber,
|
1608
|
+
var s = ve(Ge(a), d), y = s.nationalNumber, _ = s.carrierCode, m = yd(o, {
|
1609
1609
|
nationalNumber: y,
|
1610
1610
|
defaultCountry: n,
|
1611
1611
|
metadata: d
|
@@ -1615,7 +1615,7 @@ function Ld(e, n, t, d) {
|
|
1615
1615
|
countryCallingCode: o,
|
1616
1616
|
countryCallingCodeSource: i,
|
1617
1617
|
nationalNumber: y,
|
1618
|
-
carrierCode:
|
1618
|
+
carrierCode: _
|
1619
1619
|
};
|
1620
1620
|
}
|
1621
1621
|
function nt(e, n) {
|
@@ -1795,12 +1795,12 @@ function pe() {
|
|
1795
1795
|
const Jd = { class: "cols-2-1_2 gap-small pd-small bg-white" }, Qd = /* @__PURE__ */ u("section", { class: "w-100 desktop-only o-hidden radius-big bg-grad-main" }, null, -1), er = {
|
1796
1796
|
__name: "Auth",
|
1797
1797
|
setup(e) {
|
1798
|
-
return w(null), w(null), w(null),
|
1798
|
+
return w(null), w(null), w(null), B(), U(), w("email"), (n, t) => {
|
1799
1799
|
const d = we("router-view");
|
1800
1800
|
return v(), b("div", Jd, [
|
1801
1801
|
g(d, { class: "pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center" }, {
|
1802
1802
|
default: O(({ Component: r, route: i }) => [
|
1803
|
-
g(
|
1803
|
+
g(x, {
|
1804
1804
|
name: "scaleIn",
|
1805
1805
|
mode: "out-in"
|
1806
1806
|
}, {
|
@@ -1865,10 +1865,10 @@ function st(e) {
|
|
1865
1865
|
}
|
1866
1866
|
});
|
1867
1867
|
}
|
1868
|
-
const tr = { class: "t-center pd-medium" }, nr = { class: "mn-medium" }, dr = { class: "mn-big t-transp" }, rr = { class: "w-100 mn-big flex-nowrap flex" }, ir = { key: 1 },
|
1868
|
+
const tr = { class: "t-center pd-medium" }, nr = { class: "mn-medium" }, dr = { class: "mn-big t-transp" }, rr = { class: "w-100 mn-big flex-nowrap flex" }, ir = { key: 1 }, It = {
|
1869
1869
|
__name: "EnterCode",
|
1870
1870
|
setup(e) {
|
1871
|
-
const n =
|
1871
|
+
const n = B(), t = U(), { t: d } = K({
|
1872
1872
|
inheritLocale: !0,
|
1873
1873
|
useScope: "local"
|
1874
1874
|
}), r = ht({
|
@@ -1882,15 +1882,15 @@ const tr = { class: "t-center pd-medium" }, nr = { class: "mn-medium" }, dr = {
|
|
1882
1882
|
o.value > 0 ? o.value -= 1 : clearInterval(m);
|
1883
1883
|
}, 1e3);
|
1884
1884
|
} catch {
|
1885
|
-
|
1885
|
+
M({ response: { data: { errorCode: "CODE_NOT_SENT" } } });
|
1886
1886
|
}
|
1887
1887
|
}
|
1888
1888
|
const l = (m, $) => {
|
1889
1889
|
navigator.clipboard.readText().then((P) => {
|
1890
1890
|
if (P && /^\d{4}$/.test(P)) {
|
1891
|
-
for (let
|
1892
|
-
r.digits[$ +
|
1893
|
-
|
1891
|
+
for (let C = 0; C < 4; C++)
|
1892
|
+
r.digits[$ + C] = P[C];
|
1893
|
+
_($ + 3);
|
1894
1894
|
}
|
1895
1895
|
});
|
1896
1896
|
}, s = (m, $) => {
|
@@ -1899,23 +1899,23 @@ const tr = { class: "t-center pd-medium" }, nr = { class: "mn-medium" }, dr = {
|
|
1899
1899
|
if (/^\d{4}$/.test(f)) {
|
1900
1900
|
for (let P = 0; P < 4; P++)
|
1901
1901
|
r.digits[$ + P] = f[P];
|
1902
|
-
|
1902
|
+
_($ + 3);
|
1903
1903
|
} else
|
1904
|
-
|
1904
|
+
M({ response: { data: { errorCode: "INPUT_ERROR" } } });
|
1905
1905
|
}, y = (m, $) => {
|
1906
1906
|
if (m.key === "Backspace" && (r.digits[$] === null || r.digits[$] === void 0 || r.digits[$] === "")) {
|
1907
1907
|
m.preventDefault();
|
1908
1908
|
const f = document.querySelectorAll("input"), P = $ > 0 ? f[$ - 1] : null;
|
1909
1909
|
P && (P.focus(), P.setSelectionRange(P.value.length, P.value.length));
|
1910
1910
|
}
|
1911
|
-
},
|
1911
|
+
}, _ = (m) => {
|
1912
1912
|
const $ = document.querySelectorAll("input"), f = $[m + 1], P = m > 0 ? $[m - 1] : null;
|
1913
|
-
if (r.digits[m] !== "" && r.digits[m] !== null && r.digits[m] !== void 0 && m < 4 && (m < 3 ? f.focus() : i.value.focus()), (r.digits[m] === null || r.digits[m] === void 0 || r.digits[m] === "") && m > 0 && P.focus(), r.digits.every((
|
1914
|
-
const
|
1915
|
-
|
1913
|
+
if (r.digits[m] !== "" && r.digits[m] !== null && r.digits[m] !== void 0 && m < 4 && (m < 3 ? f.focus() : i.value.focus()), (r.digits[m] === null || r.digits[m] === void 0 || r.digits[m] === "") && m > 0 && P.focus(), r.digits.every((C) => C !== "")) {
|
1914
|
+
const C = r.digits.join(""), N = le.code.code.toString();
|
1915
|
+
C === N ? (le.code.isValid = !0, t.push({
|
1916
1916
|
path: "/auth/enter-password",
|
1917
1917
|
query: { type: le.code.type, method: n.query.method }
|
1918
|
-
})) : (
|
1918
|
+
})) : (M({ response: { data: { errorCode: "WRONG_CODE" } } }), i.value.focus(), r.digits = ["", "", "", ""]);
|
1919
1919
|
}
|
1920
1920
|
};
|
1921
1921
|
return (m, $) => (v(), b("section", tr, [
|
@@ -1928,7 +1928,7 @@ const tr = { class: "t-center pd-medium" }, nr = { class: "mn-medium" }, dr = {
|
|
1928
1928
|
ref_key: "firstInput",
|
1929
1929
|
ref: i,
|
1930
1930
|
maxlength: "1",
|
1931
|
-
onInput: $[1] || ($[1] = (f) =>
|
1931
|
+
onInput: $[1] || ($[1] = (f) => _(0)),
|
1932
1932
|
onPaste: $[2] || ($[2] = (f) => s(f, 0)),
|
1933
1933
|
onKeydown: $[3] || ($[3] = (f) => y(f, 0)),
|
1934
1934
|
onFocus: $[4] || ($[4] = (f) => l(f, 0)),
|
@@ -1940,7 +1940,7 @@ const tr = { class: "t-center pd-medium" }, nr = { class: "mn-medium" }, dr = {
|
|
1940
1940
|
type: "number",
|
1941
1941
|
"onUpdate:modelValue": $[5] || ($[5] = (f) => r.digits[1] = f),
|
1942
1942
|
maxlength: "1",
|
1943
|
-
onInput: $[6] || ($[6] = (f) =>
|
1943
|
+
onInput: $[6] || ($[6] = (f) => _(1)),
|
1944
1944
|
onPaste: $[7] || ($[7] = (f) => s(f, 1)),
|
1945
1945
|
onKeydown: $[8] || ($[8] = (f) => y(f, 1)),
|
1946
1946
|
class: "w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"
|
@@ -1951,7 +1951,7 @@ const tr = { class: "t-center pd-medium" }, nr = { class: "mn-medium" }, dr = {
|
|
1951
1951
|
type: "number",
|
1952
1952
|
"onUpdate:modelValue": $[9] || ($[9] = (f) => r.digits[2] = f),
|
1953
1953
|
maxlength: "1",
|
1954
|
-
onInput: $[10] || ($[10] = (f) =>
|
1954
|
+
onInput: $[10] || ($[10] = (f) => _(2)),
|
1955
1955
|
onPaste: $[11] || ($[11] = (f) => s(f, 2)),
|
1956
1956
|
onKeydown: $[12] || ($[12] = (f) => y(f, 2)),
|
1957
1957
|
class: "w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"
|
@@ -1962,7 +1962,7 @@ const tr = { class: "t-center pd-medium" }, nr = { class: "mn-medium" }, dr = {
|
|
1962
1962
|
type: "number",
|
1963
1963
|
"onUpdate:modelValue": $[13] || ($[13] = (f) => r.digits[3] = f),
|
1964
1964
|
maxlength: "1",
|
1965
|
-
onInput: $[14] || ($[14] = (f) =>
|
1965
|
+
onInput: $[14] || ($[14] = (f) => _(3)),
|
1966
1966
|
onPaste: $[15] || ($[15] = (f) => s(f, 3)),
|
1967
1967
|
onKeydown: $[16] || ($[16] = (f) => y(f, 3)),
|
1968
1968
|
class: "w-100 h1 pd-small t-center bg-grey radius-small"
|
@@ -1978,50 +1978,50 @@ const tr = { class: "t-center pd-medium" }, nr = { class: "mn-medium" }, dr = {
|
|
1978
1978
|
]));
|
1979
1979
|
}
|
1980
1980
|
};
|
1981
|
-
typeof st == "function" && st(
|
1981
|
+
typeof st == "function" && st(It);
|
1982
1982
|
const or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1983
1983
|
__proto__: null,
|
1984
|
-
default:
|
1984
|
+
default: It
|
1985
1985
|
}, Symbol.toStringTag, { value: "Module" })), H = zt.create({ baseURL: process.env.API_URL, withCredentials: !0 });
|
1986
1986
|
H.defaults.withCredentials = !0;
|
1987
1987
|
const D = ht({
|
1988
1988
|
invites: [],
|
1989
1989
|
invite: null,
|
1990
1990
|
error: null
|
1991
|
-
}),
|
1991
|
+
}), St = {
|
1992
1992
|
async read(e) {
|
1993
1993
|
await H.get(`/api/invites/${e}`).then((n) => {
|
1994
1994
|
D.invites = n.data, D.error = null;
|
1995
1995
|
}).catch((n) => {
|
1996
|
-
|
1996
|
+
M(n);
|
1997
1997
|
});
|
1998
1998
|
},
|
1999
1999
|
async readOne(e) {
|
2000
2000
|
await H.get(`/api/invites/get/${e}`).then((n) => {
|
2001
2001
|
D.invite = n.data, p.user.phone = n.data.invitedPhone, p.user.email = n.data.invitedEmail;
|
2002
2002
|
}).catch((n) => {
|
2003
|
-
|
2003
|
+
M(n);
|
2004
2004
|
});
|
2005
2005
|
},
|
2006
2006
|
async create(e, n) {
|
2007
2007
|
await H.post(`/api/invites/${e}/create`, n).then(() => {
|
2008
2008
|
D.error = null;
|
2009
2009
|
}).catch((t) => {
|
2010
|
-
|
2010
|
+
M(t);
|
2011
2011
|
});
|
2012
2012
|
},
|
2013
2013
|
async update(e, n) {
|
2014
2014
|
await H.put(`/api/invites/${e}/update`, n).then(() => {
|
2015
2015
|
D.error = null;
|
2016
2016
|
}).catch((t) => {
|
2017
|
-
|
2017
|
+
M(t);
|
2018
2018
|
});
|
2019
2019
|
},
|
2020
2020
|
async delete(e) {
|
2021
2021
|
await H.delete(`/api/invites/${e}/delete`).then(() => {
|
2022
2022
|
D.error = null;
|
2023
2023
|
}).catch((n) => {
|
2024
|
-
|
2024
|
+
M(n);
|
2025
2025
|
});
|
2026
2026
|
}
|
2027
2027
|
};
|
@@ -2029,18 +2029,18 @@ Dt(D, (e, n) => {
|
|
2029
2029
|
});
|
2030
2030
|
const Ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2031
2031
|
__proto__: null,
|
2032
|
-
actions:
|
2032
|
+
actions: St,
|
2033
2033
|
state: D
|
2034
2034
|
}, Symbol.toStringTag, { value: "Module" }));
|
2035
2035
|
const ar = { class: "t-left pd-medium" }, sr = /* @__PURE__ */ u("h3", { class: "mn-small" }, "Вы были пригилашены в организацию", -1), lr = /* @__PURE__ */ u("p", { class: "mn-semi t-transp" }, "Пожалуйста, укажите пароль, на этом регистрация будет закочена.", -1), $r = { class: "mn-semi radius-small o-hidden" }, ur = { key: 0 }, cr = { key: 1 }, fr = {
|
2036
2036
|
__name: "Invite",
|
2037
2037
|
async setup(e) {
|
2038
2038
|
let n, t;
|
2039
|
-
const d = w(null), r =
|
2040
|
-
[n, t] = Rt(() =>
|
2039
|
+
const d = w(null), r = B(), i = U();
|
2040
|
+
[n, t] = Rt(() => St.readOne(r.query.inviteCode)), await n, t();
|
2041
2041
|
async function o() {
|
2042
2042
|
try {
|
2043
|
-
await
|
2043
|
+
await L(
|
2044
2044
|
d,
|
2045
2045
|
yt,
|
2046
2046
|
p.user.password,
|
@@ -2058,7 +2058,7 @@ const ar = { class: "t-left pd-medium" }, sr = /* @__PURE__ */ u("h3", { class:
|
|
2058
2058
|
sr,
|
2059
2059
|
lr,
|
2060
2060
|
u("div", $r, [
|
2061
|
-
g(
|
2061
|
+
g(k, {
|
2062
2062
|
field: p.user.password,
|
2063
2063
|
"onUpdate:field": s[0] || (s[0] = (y) => p.user.password = y),
|
2064
2064
|
type: "password",
|
@@ -2067,7 +2067,7 @@ const ar = { class: "t-left pd-medium" }, sr = /* @__PURE__ */ u("h3", { class:
|
|
2067
2067
|
placeholder: "******",
|
2068
2068
|
class: "bg-white radius-small mn-small"
|
2069
2069
|
}, null, 8, ["field", "validation"]),
|
2070
|
-
g(
|
2070
|
+
g(k, {
|
2071
2071
|
field: p.user.passwordRepeat,
|
2072
2072
|
"onUpdate:field": s[1] || (s[1] = (y) => p.user.passwordRepeat = y),
|
2073
2073
|
type: "password",
|
@@ -2173,11 +2173,11 @@ const mr = { class: "t-left pd-medium" }, hr = { class: "mn-small" }, yr = {
|
|
2173
2173
|
const n = w(null), { t } = K({
|
2174
2174
|
inheritLocale: !0,
|
2175
2175
|
useScope: "local"
|
2176
|
-
}), d =
|
2176
|
+
}), d = B(), r = U();
|
2177
2177
|
w("phone");
|
2178
2178
|
async function i() {
|
2179
2179
|
try {
|
2180
|
-
await
|
2180
|
+
await L(
|
2181
2181
|
n,
|
2182
2182
|
yt,
|
2183
2183
|
p.user.password,
|
@@ -2195,7 +2195,7 @@ const mr = { class: "t-left pd-medium" }, hr = { class: "mn-small" }, yr = {
|
|
2195
2195
|
u("h3", hr, h(c(t)("almostDone")), 1),
|
2196
2196
|
c(d).query.method === "reset-password" ? (v(), b("p", yr, h(c(t)("newPasswordPrompt")), 1)) : (v(), b("p", gr, h(c(t)("registrationPasswordPrompt")), 1)),
|
2197
2197
|
u("div", vr, [
|
2198
|
-
g(
|
2198
|
+
g(k, {
|
2199
2199
|
field: p.user.password,
|
2200
2200
|
"onUpdate:field": l[0] || (l[0] = (s) => p.user.password = s),
|
2201
2201
|
type: "password",
|
@@ -2203,7 +2203,7 @@ const mr = { class: "t-left pd-medium" }, hr = { class: "mn-small" }, yr = {
|
|
2203
2203
|
placeholder: c(t)("passwordPlaceholder"),
|
2204
2204
|
class: "bg-grey pd-small radius-small mn-thin"
|
2205
2205
|
}, null, 8, ["field", "validation", "placeholder"]),
|
2206
|
-
g(
|
2206
|
+
g(k, {
|
2207
2207
|
field: p.user.passwordRepeat,
|
2208
2208
|
"onUpdate:field": l[1] || (l[1] = (s) => p.user.passwordRepeat = s),
|
2209
2209
|
type: "password",
|
@@ -2244,7 +2244,7 @@ function Or() {
|
|
2244
2244
|
return n.substr(2, 2);
|
2245
2245
|
});
|
2246
2246
|
}
|
2247
|
-
function
|
2247
|
+
function Ir(e, n) {
|
2248
2248
|
if (e.setSelectionRange)
|
2249
2249
|
e.focus(), e.setSelectionRange(n, n);
|
2250
2250
|
else if (e.createTextRange) {
|
@@ -2252,7 +2252,7 @@ function Sr(e, n) {
|
|
2252
2252
|
t.collapse(!0), t.moveEnd("character", n), t.moveStart("character", n), t.select();
|
2253
2253
|
}
|
2254
2254
|
}
|
2255
|
-
const
|
2255
|
+
const Sr = [
|
2256
2256
|
{
|
2257
2257
|
name: "allCountries",
|
2258
2258
|
type: Array,
|
@@ -2469,7 +2469,7 @@ const Ir = [
|
|
2469
2469
|
description: "Only allow valid characters in a phone number (will also verify in <code>mounted</code>, so phone number with invalid characters will be shown as an empty string)",
|
2470
2470
|
inDemo: !1
|
2471
2471
|
}
|
2472
|
-
], Nr = [...
|
2472
|
+
], Nr = [...Sr].reduce((e, n) => {
|
2473
2473
|
if (n.name.includes(".")) {
|
2474
2474
|
const [t, d] = n.name.split(".");
|
2475
2475
|
e[t] ? Object.assign(e[t], {
|
@@ -2942,7 +2942,7 @@ const Tr = /* @__PURE__ */ Mt({
|
|
2942
2942
|
this.$emit("blur");
|
2943
2943
|
},
|
2944
2944
|
onFocus() {
|
2945
|
-
|
2945
|
+
Ir(this.$refs.input, this.phone.length), this.$emit("focus");
|
2946
2946
|
},
|
2947
2947
|
onEnter() {
|
2948
2948
|
this.$emit("enter");
|
@@ -3019,8 +3019,8 @@ function jr(e, n, t, d, r, i) {
|
|
3019
3019
|
key: 0,
|
3020
3020
|
innerHTML: e.activeCountryFlag,
|
3021
3021
|
class: "mn-r-thin"
|
3022
|
-
}, null, 8, Dr)) :
|
3023
|
-
e.dropdownOptions.showDialCodeInSelection ? (v(), b("span", Rr, " +" + h(e.activeCountry && e.activeCountry.dialCode), 1)) :
|
3022
|
+
}, null, 8, Dr)) : z("", !0),
|
3023
|
+
e.dropdownOptions.showDialCodeInSelection ? (v(), b("span", Rr, " +" + h(e.activeCountry && e.activeCountry.dialCode), 1)) : z("", !0)
|
3024
3024
|
]),
|
3025
3025
|
T(u("ul", {
|
3026
3026
|
ref: "list",
|
@@ -3037,9 +3037,9 @@ function jr(e, n, t, d, r, i) {
|
|
3037
3037
|
key: 0,
|
3038
3038
|
innerHTML: a.flag,
|
3039
3039
|
class: "mn-r-thin"
|
3040
|
-
}, null, 8, xr)) :
|
3040
|
+
}, null, 8, xr)) : z("", !0),
|
3041
3041
|
u("strong", null, h(a.name), 1),
|
3042
|
-
e.dropdownOptions.showDialCodeInList ? (v(), b("span", Lr, " +" + h(a.dialCode), 1)) :
|
3042
|
+
e.dropdownOptions.showDialCodeInList ? (v(), b("span", Lr, " +" + h(a.dialCode), 1)) : z("", !0)
|
3043
3043
|
], 42, Mr))), 128))
|
3044
3044
|
], 6), [
|
3045
3045
|
[Y, e.open]
|
@@ -3076,9 +3076,9 @@ function jr(e, n, t, d, r, i) {
|
|
3076
3076
|
]),
|
3077
3077
|
kt(e.$slots, "default", {}, void 0, !0)
|
3078
3078
|
], 6),
|
3079
|
-
g(
|
3079
|
+
g(x, { name: "fade" }, {
|
3080
3080
|
default: O(() => [
|
3081
|
-
e.validation ? (v(), b("div", zr, " * " + h(e.validation.message), 1)) :
|
3081
|
+
e.validation ? (v(), b("div", zr, " * " + h(e.validation.message), 1)) : z("", !0)
|
3082
3082
|
]),
|
3083
3083
|
_: 1
|
3084
3084
|
})
|
@@ -3182,16 +3182,16 @@ const Br = { class: "t-left pd-medium" }, Ur = { class: "mn-small" }, Gr = { cla
|
|
3182
3182
|
inheritLocale: !0,
|
3183
3183
|
useScope: "local"
|
3184
3184
|
}), t = w(null), d = w(null);
|
3185
|
-
|
3186
|
-
const r =
|
3185
|
+
B();
|
3186
|
+
const r = U(), i = w("phone");
|
3187
3187
|
async function o() {
|
3188
3188
|
try {
|
3189
|
-
i.value === "phone" && await
|
3189
|
+
i.value === "phone" && await L(
|
3190
3190
|
t,
|
3191
3191
|
Pe,
|
3192
3192
|
p.user.phone,
|
3193
3193
|
"Некорректный телефон"
|
3194
|
-
), i.value === "email" && await
|
3194
|
+
), i.value === "email" && await L(
|
3195
3195
|
d,
|
3196
3196
|
Oe,
|
3197
3197
|
p.user.email,
|
@@ -3213,7 +3213,7 @@ const Br = { class: "t-left pd-medium" }, Ur = { class: "mn-small" }, Gr = { cla
|
|
3213
3213
|
u("h3", Ur, h(c(n)("forgotPasswordTitle")), 1),
|
3214
3214
|
u("p", Gr, h(c(n)("instructions")), 1),
|
3215
3215
|
u("div", Vr, [
|
3216
|
-
g(
|
3216
|
+
g(Ie, {
|
3217
3217
|
selected: i.value,
|
3218
3218
|
"onUpdate:selected": s[0] || (s[0] = (y) => i.value = y),
|
3219
3219
|
tabs: [
|
@@ -3223,7 +3223,7 @@ const Br = { class: "t-left pd-medium" }, Ur = { class: "mn-small" }, Gr = { cla
|
|
3223
3223
|
}, null, 8, ["selected", "tabs"])
|
3224
3224
|
]),
|
3225
3225
|
u("div", null, [
|
3226
|
-
g(
|
3226
|
+
g(x, { name: "slide-fade" }, {
|
3227
3227
|
default: O(() => [
|
3228
3228
|
i.value === "phone" ? (v(), b("div", Hr, [
|
3229
3229
|
u("p", Kr, h(c(n)("smsInfo")), 1),
|
@@ -3240,22 +3240,22 @@ const Br = { class: "t-left pd-medium" }, Ur = { class: "mn-small" }, Gr = { cla
|
|
3240
3240
|
inputOptions: { placeholder: c(n)("phonePlaceholder") },
|
3241
3241
|
class: "bg-grey pd-small radius-small mn-thin"
|
3242
3242
|
}, null, 8, ["modelValue", "validation", "inputOptions"])
|
3243
|
-
])) :
|
3243
|
+
])) : z("", !0)
|
3244
3244
|
]),
|
3245
3245
|
_: 1
|
3246
3246
|
}),
|
3247
|
-
g(
|
3247
|
+
g(x, { name: "slide-fade" }, {
|
3248
3248
|
default: O(() => [
|
3249
3249
|
i.value === "email" ? (v(), b("div", Wr, [
|
3250
3250
|
u("p", qr, h(c(n)("emailInfo")), 1),
|
3251
|
-
g(
|
3251
|
+
g(k, {
|
3252
3252
|
field: p.user.email,
|
3253
3253
|
"onUpdate:field": s[2] || (s[2] = (y) => p.user.email = y),
|
3254
3254
|
placeholder: c(n)("emailPlaceholder"),
|
3255
3255
|
validation: d.value,
|
3256
3256
|
class: "bg-grey pd-medium radius-small"
|
3257
3257
|
}, null, 8, ["field", "placeholder", "validation"])
|
3258
|
-
])) :
|
3258
|
+
])) : z("", !0)
|
3259
3259
|
]),
|
3260
3260
|
_: 1
|
3261
3261
|
})
|
@@ -3266,7 +3266,7 @@ const Br = { class: "t-left pd-medium" }, Ur = { class: "mn-small" }, Gr = { cla
|
|
3266
3266
|
class: "mn-big"
|
3267
3267
|
}, {
|
3268
3268
|
default: O(() => [
|
3269
|
-
|
3269
|
+
j(h(c(n)("sendCode")), 1)
|
3270
3270
|
]),
|
3271
3271
|
_: 1
|
3272
3272
|
})
|
@@ -3377,16 +3377,16 @@ const Yr = { class: "t-left pd-medium" }, Zr = { class: "mn-small" }, Jr = { cla
|
|
3377
3377
|
inheritLocale: !0,
|
3378
3378
|
useScope: "local"
|
3379
3379
|
}), t = w(null), d = w(null);
|
3380
|
-
|
3381
|
-
const r =
|
3380
|
+
B();
|
3381
|
+
const r = U(), i = w("phone");
|
3382
3382
|
async function o() {
|
3383
3383
|
try {
|
3384
|
-
i.value === "phone" && await
|
3384
|
+
i.value === "phone" && await L(
|
3385
3385
|
t,
|
3386
3386
|
Pe,
|
3387
3387
|
p.user.phone,
|
3388
3388
|
"Некорректный телефон"
|
3389
|
-
), i.value === "email" && await
|
3389
|
+
), i.value === "email" && await L(
|
3390
3390
|
d,
|
3391
3391
|
Oe,
|
3392
3392
|
p.user.email,
|
@@ -3410,9 +3410,9 @@ const Yr = { class: "t-left pd-medium" }, Zr = { class: "mn-small" }, Jr = { cla
|
|
3410
3410
|
u("h3", Zr, h(c(n)("title")), 1),
|
3411
3411
|
u("p", Jr, h(c(n)("description")), 1),
|
3412
3412
|
u("div", Qr, [
|
3413
|
-
g(
|
3413
|
+
g(Ie, {
|
3414
3414
|
selected: i.value,
|
3415
|
-
"onUpdate:selected": s[0] || (s[0] = (
|
3415
|
+
"onUpdate:selected": s[0] || (s[0] = (_) => i.value = _),
|
3416
3416
|
tabs: [
|
3417
3417
|
{ name: c(n)("phone"), value: "phone" },
|
3418
3418
|
{ name: c(n)("email"), value: "email" }
|
@@ -3420,13 +3420,13 @@ const Yr = { class: "t-left pd-medium" }, Zr = { class: "mn-small" }, Jr = { cla
|
|
3420
3420
|
}, null, 8, ["selected", "tabs"])
|
3421
3421
|
]),
|
3422
3422
|
u("div", ei, [
|
3423
|
-
g(
|
3423
|
+
g(x, { name: "slide-fade" }, {
|
3424
3424
|
default: O(() => [
|
3425
3425
|
T(u("div", ti, [
|
3426
3426
|
u("p", ni, h(c(n)("smsNotice")), 1),
|
3427
3427
|
g(Fe, {
|
3428
3428
|
modelValue: p.user.phone,
|
3429
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
3429
|
+
"onUpdate:modelValue": s[1] || (s[1] = (_) => p.user.phone = _),
|
3430
3430
|
dropdownOptions: {
|
3431
3431
|
showDialCodeInSelection: !0,
|
3432
3432
|
showFlags: !0,
|
@@ -3443,13 +3443,13 @@ const Yr = { class: "t-left pd-medium" }, Zr = { class: "mn-small" }, Jr = { cla
|
|
3443
3443
|
]),
|
3444
3444
|
_: 1
|
3445
3445
|
}),
|
3446
|
-
g(
|
3446
|
+
g(x, { name: "slide-fade" }, {
|
3447
3447
|
default: O(() => [
|
3448
3448
|
T(u("div", di, [
|
3449
3449
|
u("p", ri, h(c(n)("emailNotice")), 1),
|
3450
|
-
g(
|
3450
|
+
g(k, {
|
3451
3451
|
field: p.user.email,
|
3452
|
-
"onUpdate:field": s[2] || (s[2] = (
|
3452
|
+
"onUpdate:field": s[2] || (s[2] = (_) => p.user.email = _),
|
3453
3453
|
placeholder: c(n)("emailPlaceholder"),
|
3454
3454
|
validation: d.value,
|
3455
3455
|
class: "bg-grey pd-medium radius-small"
|
@@ -3467,7 +3467,7 @@ const Yr = { class: "t-left pd-medium" }, Zr = { class: "mn-small" }, Jr = { cla
|
|
3467
3467
|
class: "mn-big"
|
3468
3468
|
}, {
|
3469
3469
|
default: O(() => [
|
3470
|
-
|
3470
|
+
j(h(c(n)("sendCode")), 1)
|
3471
3471
|
]),
|
3472
3472
|
_: 1
|
3473
3473
|
}),
|
@@ -3477,7 +3477,7 @@ const Yr = { class: "t-left pd-medium" }, Zr = { class: "mn-small" }, Jr = { cla
|
|
3477
3477
|
class: "underline mn-medium d-block t-blue"
|
3478
3478
|
}, {
|
3479
3479
|
default: O(() => [
|
3480
|
-
|
3480
|
+
j(h(c(n)("haveAccount")), 1)
|
3481
3481
|
]),
|
3482
3482
|
_: 1
|
3483
3483
|
})
|
@@ -3614,49 +3614,48 @@ const ai = { class: "" }, si = { class: "mn-medium" }, li = /* @__PURE__ */ u("b
|
|
3614
3614
|
inheritLocale: !0,
|
3615
3615
|
useScope: "local"
|
3616
3616
|
}), t = w(null), d = w(null), r = w(null);
|
3617
|
-
|
3618
|
-
const i =
|
3619
|
-
console.log("Apple login success:",
|
3620
|
-
}, l = (
|
3621
|
-
console.log("Apple login failure:",
|
3622
|
-
}, s = De("APPLE_CLIENTID"), y = De("
|
3617
|
+
B();
|
3618
|
+
const i = U(), o = w("phone"), a = (C) => {
|
3619
|
+
console.log("Apple login success:", C);
|
3620
|
+
}, l = (C) => {
|
3621
|
+
console.log("Apple login failure:", C);
|
3622
|
+
}, s = De("APPLE_CLIENTID"), y = De("APPLE_REDIRECT_URL"), _ = () => {
|
3623
3623
|
if (!window.AppleID) {
|
3624
3624
|
console.error('"https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js" needs to be included as a <script>');
|
3625
3625
|
return;
|
3626
3626
|
}
|
3627
|
-
let _ = "email", S = "123", M = !0;
|
3628
3627
|
window.AppleID.auth.init({
|
3629
3628
|
clientId: s,
|
3630
|
-
scope:
|
3629
|
+
scope: "name email",
|
3631
3630
|
redirectURI: y,
|
3632
|
-
state:
|
3633
|
-
usePopup:
|
3631
|
+
state: "lilylsunisabigsb",
|
3632
|
+
usePopup: !0
|
3634
3633
|
}), document.addEventListener("AppleIDSignInOnSuccess", a), document.addEventListener("AppleIDSignInOnFailure", l);
|
3635
3634
|
}, m = () => {
|
3636
3635
|
try {
|
3637
3636
|
window.AppleID.auth.signIn();
|
3638
|
-
} catch (
|
3639
|
-
console.error("Error signing in with Apple:",
|
3637
|
+
} catch (C) {
|
3638
|
+
console.error("Error signing in with Apple:", C);
|
3640
3639
|
}
|
3641
|
-
}, $ = (
|
3640
|
+
}, $ = (C) => new Promise((N, G) => {
|
3642
3641
|
const E = document.createElement("script");
|
3643
|
-
E.type = "text/javascript", E.src =
|
3642
|
+
E.type = "text/javascript", E.src = C, E.onload = N, E.onerror = G, document.head.appendChild(E);
|
3644
3643
|
});
|
3645
3644
|
pt(async () => {
|
3646
3645
|
try {
|
3647
|
-
await $("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js"),
|
3648
|
-
} catch (
|
3649
|
-
console.error("Error loading AppleID script:",
|
3646
|
+
await $("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js"), _();
|
3647
|
+
} catch (C) {
|
3648
|
+
console.error("Error loading AppleID script:", C);
|
3650
3649
|
}
|
3651
3650
|
});
|
3652
3651
|
async function f() {
|
3653
3652
|
try {
|
3654
|
-
o.value === "phone" && await
|
3653
|
+
o.value === "phone" && await L(
|
3655
3654
|
t,
|
3656
3655
|
Pe,
|
3657
3656
|
p.user.phone,
|
3658
3657
|
"Некорректный телефон"
|
3659
|
-
), o.value === "email" && await
|
3658
|
+
), o.value === "email" && await L(
|
3660
3659
|
r,
|
3661
3660
|
Oe,
|
3662
3661
|
p.user.email,
|
@@ -3670,29 +3669,29 @@ const ai = { class: "" }, si = { class: "mn-medium" }, li = /* @__PURE__ */ u("b
|
|
3670
3669
|
function P() {
|
3671
3670
|
i.push({ name: "User Profile", params: { _id: p.user._id } });
|
3672
3671
|
}
|
3673
|
-
return (
|
3674
|
-
const
|
3672
|
+
return (C, N) => {
|
3673
|
+
const G = we("router-link");
|
3675
3674
|
return v(), b("section", ai, [
|
3676
3675
|
u("h3", si, [
|
3677
|
-
|
3676
|
+
j(h(c(n)("title")) + " ", 1),
|
3678
3677
|
li,
|
3679
3678
|
u("span", $i, h(c(n)("subtitle")), 1)
|
3680
3679
|
]),
|
3681
3680
|
u("p", ui, [
|
3682
|
-
g(
|
3681
|
+
g(G, {
|
3683
3682
|
to: { name: "Sign Up" },
|
3684
3683
|
class: "underline t-second"
|
3685
3684
|
}, {
|
3686
3685
|
default: O(() => [
|
3687
|
-
|
3686
|
+
j(h(c(n)("signup")), 1)
|
3688
3687
|
]),
|
3689
3688
|
_: 1
|
3690
3689
|
})
|
3691
3690
|
]),
|
3692
3691
|
u("div", ci, [
|
3693
|
-
g(
|
3692
|
+
g(Ie, {
|
3694
3693
|
selected: o.value,
|
3695
|
-
"onUpdate:selected":
|
3694
|
+
"onUpdate:selected": N[0] || (N[0] = (E) => o.value = E),
|
3696
3695
|
tabs: [
|
3697
3696
|
{ name: c(n)("phone"), value: "phone" },
|
3698
3697
|
{ name: c(n)("email"), value: "email" }
|
@@ -3700,12 +3699,12 @@ const ai = { class: "" }, si = { class: "mn-medium" }, li = /* @__PURE__ */ u("b
|
|
3700
3699
|
}, null, 8, ["selected", "tabs"])
|
3701
3700
|
]),
|
3702
3701
|
u("div", fi, [
|
3703
|
-
g(
|
3702
|
+
g(x, { name: "slide-fade" }, {
|
3704
3703
|
default: O(() => [
|
3705
3704
|
T(u("div", pi, [
|
3706
3705
|
g(Fe, {
|
3707
3706
|
modelValue: p.user.phone,
|
3708
|
-
"onUpdate:modelValue":
|
3707
|
+
"onUpdate:modelValue": N[1] || (N[1] = (E) => p.user.phone = E),
|
3709
3708
|
dropdownOptions: {
|
3710
3709
|
showDialCodeInSelection: !0,
|
3711
3710
|
showFlags: !0,
|
@@ -3722,12 +3721,12 @@ const ai = { class: "" }, si = { class: "mn-medium" }, li = /* @__PURE__ */ u("b
|
|
3722
3721
|
]),
|
3723
3722
|
_: 1
|
3724
3723
|
}),
|
3725
|
-
g(
|
3724
|
+
g(x, { name: "slide-fade" }, {
|
3726
3725
|
default: O(() => [
|
3727
3726
|
T(u("div", mi, [
|
3728
|
-
g(
|
3727
|
+
g(k, {
|
3729
3728
|
field: p.user.email,
|
3730
|
-
"onUpdate:field":
|
3729
|
+
"onUpdate:field": N[2] || (N[2] = (E) => p.user.email = E),
|
3731
3730
|
placeholder: c(n)("emailPlaceholder"),
|
3732
3731
|
validation: r.value,
|
3733
3732
|
class: "bg-grey pd-medium radius-small"
|
@@ -3739,21 +3738,21 @@ const ai = { class: "" }, si = { class: "mn-medium" }, li = /* @__PURE__ */ u("b
|
|
3739
3738
|
_: 1
|
3740
3739
|
})
|
3741
3740
|
]),
|
3742
|
-
g(
|
3741
|
+
g(k, {
|
3743
3742
|
field: p.user.password,
|
3744
|
-
"onUpdate:field":
|
3743
|
+
"onUpdate:field": N[3] || (N[3] = (E) => p.user.password = E),
|
3745
3744
|
type: "password",
|
3746
3745
|
validation: d.value,
|
3747
3746
|
placeholder: c(n)("passwordPlaceholder"),
|
3748
3747
|
class: "bg-grey pd-medium radius-small mn-semi"
|
3749
3748
|
}, null, 8, ["field", "validation", "placeholder"]),
|
3750
3749
|
u("div", hi, [
|
3751
|
-
g(
|
3750
|
+
g(G, {
|
3752
3751
|
to: "/auth/reset-password",
|
3753
3752
|
class: "underline d-block t-blue"
|
3754
3753
|
}, {
|
3755
3754
|
default: O(() => [
|
3756
|
-
|
3755
|
+
j(h(c(n)("forgotPassword")), 1)
|
3757
3756
|
]),
|
3758
3757
|
_: 1
|
3759
3758
|
})
|
@@ -3764,7 +3763,7 @@ const ai = { class: "" }, si = { class: "mn-medium" }, li = /* @__PURE__ */ u("b
|
|
3764
3763
|
class: "mn-thin"
|
3765
3764
|
}, {
|
3766
3765
|
default: O(() => [
|
3767
|
-
|
3766
|
+
j(h(c(n)("signin")), 1)
|
3768
3767
|
]),
|
3769
3768
|
_: 1
|
3770
3769
|
}),
|
@@ -3880,7 +3879,7 @@ const vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3880
3879
|
];
|
3881
3880
|
export {
|
3882
3881
|
er as Auth,
|
3883
|
-
|
3882
|
+
It as EnterCode,
|
3884
3883
|
Nt as EnterPassword,
|
3885
3884
|
fr as Invite,
|
3886
3885
|
Et as ResetPassword,
|