@ozdao/prometheus-framework 0.1.7 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-561d6db3.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-9e474158.mjs +1945 -0
- package/dist/ButtonFollow-38d9a720.mjs +131 -0
- package/dist/ButtonFollow-9a33ab06.js +1 -0
- package/dist/CardOrganization-3049931d.mjs +230 -0
- package/dist/CardOrganization-8b376cbb.js +1 -0
- package/dist/Chips-03ff0c34.mjs +108 -0
- package/dist/Chips-4d8ac62e.js +1 -0
- package/dist/Feed-1d0d9853.js +1 -0
- package/dist/Feed-79839e67.mjs +368 -0
- package/dist/Feed-af94027c.js +1 -0
- package/dist/Feed-b616f102.mjs +439 -0
- package/dist/Image-75f5becb.js +9 -0
- package/dist/Image-be69af9c.mjs +477 -0
- package/dist/Popup-d7dbc670.mjs +76 -0
- package/dist/Popup-ee4bd834.js +1 -0
- package/dist/Product-8bee8d1c.mjs +838 -0
- package/dist/Product-a39f3ca3.js +7 -0
- package/dist/ProductEdit-052b0aef.mjs +350 -0
- package/dist/ProductEdit-a322f1ba.js +1 -0
- package/dist/ProfileBlogposts-08f784c3.mjs +64 -0
- package/dist/ProfileBlogposts-d6bba033.js +1 -0
- package/dist/ProfileComments-96f6cde8.mjs +44 -0
- package/dist/ProfileComments-dd923865.js +1 -0
- package/dist/ProfileEvents-1e0c1291.js +1 -0
- package/dist/ProfileEvents-26a72fe2.mjs +56 -0
- package/dist/ProfileLikes-b1060d1e.js +1 -0
- package/dist/ProfileLikes-c8dab14d.mjs +44 -0
- package/dist/ProfileOrganizations-3a879480.mjs +212 -0
- package/dist/ProfileOrganizations-78fef72e.js +1 -0
- package/dist/Publics-8bb9a680.js +1 -0
- package/dist/Publics-ffc08ad7.mjs +123 -0
- package/dist/UploadImage-6344f789.js +1 -0
- package/dist/UploadImage-f04e4bc0.mjs +83 -0
- package/dist/auth-60c81f40.mjs +1836 -0
- package/dist/auth-e8f6d979.js +8 -0
- package/dist/auth.client.cjs +4 -4
- package/dist/auth.client.js +247 -236
- package/dist/auth.server.js +72 -11
- package/dist/auth.server.mjs +72 -11
- package/dist/auth.validation-1d5f2990.mjs +20 -0
- package/dist/auth.validation-2dfb450f.js +1 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +11 -11
- package/dist/events.client.cjs +1 -1
- package/dist/events.client.js +9 -9
- package/dist/organizations-4157d81d.js +1 -0
- package/dist/organizations-52438d24.mjs +121 -0
- package/dist/organizations.client-16ee6b43.js +3 -0
- package/dist/organizations.client-cdbaf6aa.mjs +3017 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +11 -11
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +258 -239
- package/dist/users.server.js +7 -0
- package/dist/users.server.mjs +7 -0
- package/package.json +2 -1
- package/src/components/CardHeader/CardHeader.vue +2 -1
- package/src/modules/auth/components/pages/SignIn.vue +48 -39
- package/src/modules/auth/controllers/auth.controller.js +42 -11
- package/src/modules/auth/store/auth.js +3 -10
- package/src/modules/auth/utils/server/verifyAppleIdToken.js +57 -0
- package/src/modules/users/components/pages/Profile.vue +20 -6
- package/src/modules/users/components/pages/ProfileEdit.vue +15 -5
- package/src/modules/users/models/user.model.js +9 -1
- package/src/modules/users/store/users.js +2 -1
package/dist/auth.client.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import { ref as P, onMounted as ct, openBlock as v, createBlock as fe, unref as
|
2
|
-
import { v as
|
3
|
-
import { c as ht, s as p, d as ae, a as
|
4
|
-
import { e as
|
5
|
-
import { C as
|
6
|
-
import { useI18n as
|
7
|
-
import { useRoute as
|
8
|
-
import { s as
|
1
|
+
import { ref as P, onMounted as ct, openBlock as v, createBlock as fe, unref as c, withCtx as O, createElementBlock as b, Fragment as pe, renderList as ft, createElementVNode as f, normalizeStyle as q, toDisplayString as h, resolveComponent as _e, createVNode as g, Transition as M, resolveDynamicComponent as At, reactive as pt, withDirectives as N, vModelText as J, watch as Ft, withAsyncContext as Dt, defineComponent as Rt, resolveDirective as Mt, normalizeClass as K, withKeys as oe, createCommentVNode as L, vShow as X, vModelDynamic as xt, renderSlot as zt, createTextVNode as D, inject as Ae } from "vue";
|
2
|
+
import { v as x, b as mt, c as Ce, d as we } from "./inputs.validation-14e8e01f.mjs";
|
3
|
+
import { c as ht, s as p, d as ae, a as Lt, F as z, _ as G, b as V } from "./auth-60c81f40.mjs";
|
4
|
+
import { e as Fi, t as Di } from "./auth-60c81f40.mjs";
|
5
|
+
import { C as kt, S as jt } from "./carousel.es-44c501bc.mjs";
|
6
|
+
import { useI18n as H } from "vue-i18n";
|
7
|
+
import { useRoute as k, useRouter as j } from "vue-router";
|
8
|
+
import { s as R } from "./globals-96ba60e4.mjs";
|
9
9
|
import { _ as Pe } from "./Tab-a243605d.mjs";
|
10
10
|
import { _ as Bt } from "./_plugin-vue_export-helper-dad06003.mjs";
|
11
|
-
import { r as
|
12
|
-
const Ut = { class: "parent-div" }, Gt = { class: "mn-small" }, Vt = { class: "mn-big mn-r-small mn-l-small" },
|
11
|
+
import { r as W, a as se, c as Fe } from "./auth.validation-1d5f2990.mjs";
|
12
|
+
const Ut = { class: "parent-div" }, Gt = { class: "mn-small" }, Vt = { class: "mn-big mn-r-small mn-l-small" }, Ii = {
|
13
13
|
__name: "SliderFeatures",
|
14
14
|
setup(e) {
|
15
15
|
const n = P(null), t = {
|
@@ -55,12 +55,12 @@ const Ut = { class: "parent-div" }, Gt = { class: "mn-small" }, Vt = { class: "m
|
|
55
55
|
]
|
56
56
|
}
|
57
57
|
}
|
58
|
-
}, { tm: d, rt: r } =
|
58
|
+
}, { tm: d, rt: r } = H(t), i = P(!1);
|
59
59
|
return ct(() => {
|
60
60
|
setTimeout(() => {
|
61
61
|
n.value.restartCarousel(), i.value = !0;
|
62
62
|
}, "500");
|
63
|
-
}), (o, a) => (v(), fe(
|
63
|
+
}), (o, a) => (v(), fe(c(kt), {
|
64
64
|
ref_key: "ImagesSlider",
|
65
65
|
ref: n,
|
66
66
|
"items-to-show": 1,
|
@@ -71,18 +71,18 @@ const Ut = { class: "parent-div" }, Gt = { class: "mn-small" }, Vt = { class: "m
|
|
71
71
|
class: "bg-grey w-100"
|
72
72
|
}, {
|
73
73
|
default: O(() => [
|
74
|
-
(v(!0), b(pe, null, ft(
|
74
|
+
(v(!0), b(pe, null, ft(c(d)("features"), ($, s) => (v(), fe(c(jt), {
|
75
75
|
key: s,
|
76
76
|
class: "w-100 flex-v-center flex"
|
77
77
|
}, {
|
78
78
|
default: O(() => [
|
79
|
-
|
80
|
-
|
79
|
+
f("div", Ut, [
|
80
|
+
f("div", {
|
81
81
|
class: "background-div",
|
82
|
-
style:
|
82
|
+
style: q(`background-image: url(/assets/images/features/${s}.png); background-size: auto 100%; background-repeat: no-repeat; background-position: center center;`)
|
83
83
|
}, null, 4),
|
84
|
-
|
85
|
-
|
84
|
+
f("h4", Gt, h($.title), 1),
|
85
|
+
f("p", Vt, h($.description), 1)
|
86
86
|
])
|
87
87
|
]),
|
88
88
|
_: 2
|
@@ -120,14 +120,14 @@ function qt(e, n) {
|
|
120
120
|
function Xt(e, n) {
|
121
121
|
if (typeof n != "function" && n !== null)
|
122
122
|
throw new TypeError("Super expression must either be null or a function");
|
123
|
-
e.prototype = Object.create(n && n.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), n &&
|
123
|
+
e.prototype = Object.create(n && n.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), n && Y(e, n);
|
124
124
|
}
|
125
125
|
function Yt(e) {
|
126
126
|
var n = gt();
|
127
127
|
return function() {
|
128
|
-
var d =
|
128
|
+
var d = Z(e), r;
|
129
129
|
if (n) {
|
130
|
-
var i =
|
130
|
+
var i = Z(this).constructor;
|
131
131
|
r = Reflect.construct(d, arguments, i);
|
132
132
|
} else
|
133
133
|
r = d.apply(this, arguments);
|
@@ -159,9 +159,9 @@ function he(e) {
|
|
159
159
|
n.set(d, r);
|
160
160
|
}
|
161
161
|
function r() {
|
162
|
-
return Q(d, arguments,
|
162
|
+
return Q(d, arguments, Z(this).constructor);
|
163
163
|
}
|
164
|
-
return r.prototype = Object.create(d.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }),
|
164
|
+
return r.prototype = Object.create(d.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), Y(r, d);
|
165
165
|
}, he(e);
|
166
166
|
}
|
167
167
|
function Q(e, n, t) {
|
@@ -169,7 +169,7 @@ function Q(e, n, t) {
|
|
169
169
|
var a = [null];
|
170
170
|
a.push.apply(a, i);
|
171
171
|
var $ = Function.bind.apply(r, a), s = new $();
|
172
|
-
return o &&
|
172
|
+
return o && Y(s, o.prototype), s;
|
173
173
|
}, Q.apply(null, arguments);
|
174
174
|
}
|
175
175
|
function gt() {
|
@@ -187,15 +187,15 @@ function gt() {
|
|
187
187
|
function Jt(e) {
|
188
188
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
189
189
|
}
|
190
|
-
function
|
191
|
-
return
|
190
|
+
function Y(e, n) {
|
191
|
+
return Y = Object.setPrototypeOf || function(d, r) {
|
192
192
|
return d.__proto__ = r, d;
|
193
|
-
},
|
193
|
+
}, Y(e, n);
|
194
194
|
}
|
195
|
-
function
|
196
|
-
return
|
195
|
+
function Z(e) {
|
196
|
+
return Z = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
197
197
|
return t.__proto__ || Object.getPrototypeOf(t);
|
198
|
-
},
|
198
|
+
}, Z(e);
|
199
199
|
}
|
200
200
|
var T = /* @__PURE__ */ function(e) {
|
201
201
|
Xt(t, e);
|
@@ -300,11 +300,11 @@ var sn = "1.2.0", ln = "1.7.35", xe = " ext. ", $n = /^\d+$/, I = /* @__PURE__ *
|
|
300
300
|
if (t && $n.test(t) && (d = t, t = null), t && t !== "001") {
|
301
301
|
if (!this.hasCountry(t))
|
302
302
|
throw new Error("Unknown country: ".concat(t));
|
303
|
-
this.numberingPlan = new
|
303
|
+
this.numberingPlan = new ze(this.getCountryMetadata(t), this);
|
304
304
|
} else if (d) {
|
305
305
|
if (!this.hasCallingCode(d))
|
306
306
|
throw new Error("Unknown calling code: ".concat(d));
|
307
|
-
this.numberingPlan = new
|
307
|
+
this.numberingPlan = new ze(this.getNumberingPlanMetadata(d), this);
|
308
308
|
} else
|
309
309
|
this.numberingPlan = void 0;
|
310
310
|
return this;
|
@@ -428,7 +428,7 @@ var sn = "1.2.0", ln = "1.7.35", xe = " ext. ", $n = /^\d+$/, I = /* @__PURE__ *
|
|
428
428
|
return this.numberingPlan !== void 0;
|
429
429
|
}
|
430
430
|
}]), e;
|
431
|
-
}(),
|
431
|
+
}(), ze = /* @__PURE__ */ function() {
|
432
432
|
function e(n, t) {
|
433
433
|
de(this, e), this.globalMetadataObject = t, this.metadata = n, vt.call(this, t.metadata);
|
434
434
|
}
|
@@ -555,8 +555,8 @@ var sn = "1.2.0", ln = "1.7.35", xe = " ext. ", $n = /^\d+$/, I = /* @__PURE__ *
|
|
555
555
|
}, {
|
556
556
|
key: "type",
|
557
557
|
value: function(t) {
|
558
|
-
if (this.hasTypes() &&
|
559
|
-
return new fn(
|
558
|
+
if (this.hasTypes() && Le(this.types(), t))
|
559
|
+
return new fn(Le(this.types(), t), this);
|
560
560
|
}
|
561
561
|
}, {
|
562
562
|
key: "ext",
|
@@ -628,7 +628,7 @@ var sn = "1.2.0", ln = "1.7.35", xe = " ext. ", $n = /^\d+$/, I = /* @__PURE__ *
|
|
628
628
|
}
|
629
629
|
}]), e;
|
630
630
|
}();
|
631
|
-
function
|
631
|
+
function Le(e, n) {
|
632
632
|
switch (n) {
|
633
633
|
case "FIXED_LINE":
|
634
634
|
return e[0];
|
@@ -694,12 +694,12 @@ function wn(e) {
|
|
694
694
|
function Pn(e) {
|
695
695
|
return bn.test(e);
|
696
696
|
}
|
697
|
-
var
|
697
|
+
var ke = new RegExp("(?:" + bt() + ")$", "i");
|
698
698
|
function On(e) {
|
699
|
-
var n = e.search(
|
699
|
+
var n = e.search(ke);
|
700
700
|
if (n < 0)
|
701
701
|
return {};
|
702
|
-
for (var t = e.slice(0, n), d = e.match(
|
702
|
+
for (var t = e.slice(0, n), d = e.match(ke), r = 1; r < d.length; ) {
|
703
703
|
if (d[r])
|
704
704
|
return {
|
705
705
|
number: t,
|
@@ -947,7 +947,7 @@ function Ge(e, n) {
|
|
947
947
|
d[t] = e[t];
|
948
948
|
return d;
|
949
949
|
}
|
950
|
-
var
|
950
|
+
var zn = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
|
951
951
|
function Ee(e, n, t) {
|
952
952
|
if (n = n || {}, !!e.country) {
|
953
953
|
t = new I(t), t.selectNumberingPlan(e.country, e.countryCallingCode);
|
@@ -955,7 +955,7 @@ function Ee(e, n, t) {
|
|
955
955
|
if (F(d, t.nationalNumberPattern())) {
|
956
956
|
if ($e(d, "FIXED_LINE", t))
|
957
957
|
return t.type("MOBILE") && t.type("MOBILE").pattern() === "" || !t.type("MOBILE") || $e(d, "MOBILE", t) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
958
|
-
for (var r = Mn(
|
958
|
+
for (var r = Mn(zn), i; !(i = r()).done; ) {
|
959
959
|
var o = i.value;
|
960
960
|
if ($e(d, o, t))
|
961
961
|
return o;
|
@@ -966,13 +966,13 @@ function Ee(e, n, t) {
|
|
966
966
|
function $e(e, n, t) {
|
967
967
|
return n = t.type(n), !n || !n.pattern() || n.possibleLengths() && n.possibleLengths().indexOf(e.length) < 0 ? !1 : F(e, n.pattern());
|
968
968
|
}
|
969
|
-
function
|
969
|
+
function Ln(e, n, t) {
|
970
970
|
if (n = n || {}, t = new I(t), t.selectNumberingPlan(e.country, e.countryCallingCode), t.hasTypes())
|
971
971
|
return Ee(e, n, t.metadata) !== void 0;
|
972
972
|
var d = n.v2 ? e.nationalNumber : e.phone;
|
973
973
|
return F(d, t.nationalNumberPattern());
|
974
974
|
}
|
975
|
-
function
|
975
|
+
function kn(e, n, t) {
|
976
976
|
var d = new I(t), r = d.getCountryCodesForCallingCode(e);
|
977
977
|
return r ? r.filter(function(i) {
|
978
978
|
return jn(n, i, t);
|
@@ -1206,7 +1206,7 @@ var nd = /* @__PURE__ */ function() {
|
|
1206
1206
|
}, {
|
1207
1207
|
key: "getPossibleCountries",
|
1208
1208
|
value: function() {
|
1209
|
-
return this.country ? [this.country] :
|
1209
|
+
return this.country ? [this.country] : kn(this.countryCallingCode, this.nationalNumber, this.getMetadata());
|
1210
1210
|
}
|
1211
1211
|
}, {
|
1212
1212
|
key: "isPossible",
|
@@ -1218,7 +1218,7 @@ var nd = /* @__PURE__ */ function() {
|
|
1218
1218
|
}, {
|
1219
1219
|
key: "isValid",
|
1220
1220
|
value: function() {
|
1221
|
-
return
|
1221
|
+
return Ln(this, {
|
1222
1222
|
v2: !0
|
1223
1223
|
}, this.getMetadata());
|
1224
1224
|
}
|
@@ -1632,17 +1632,17 @@ function tt(e) {
|
|
1632
1632
|
for (var n = 1; n < arguments.length; n++) {
|
1633
1633
|
var t = arguments[n] != null ? arguments[n] : {};
|
1634
1634
|
n % 2 ? et(Object(t), !0).forEach(function(d) {
|
1635
|
-
|
1635
|
+
zd(e, d, t[d]);
|
1636
1636
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : et(Object(t)).forEach(function(d) {
|
1637
1637
|
Object.defineProperty(e, d, Object.getOwnPropertyDescriptor(t, d));
|
1638
1638
|
});
|
1639
1639
|
}
|
1640
1640
|
return e;
|
1641
1641
|
}
|
1642
|
-
function
|
1642
|
+
function zd(e, n, t) {
|
1643
1643
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
1644
1644
|
}
|
1645
|
-
function
|
1645
|
+
function Ld(e, n, t) {
|
1646
1646
|
return Fd(e, tt(tt({}, n), {}, {
|
1647
1647
|
v2: !0
|
1648
1648
|
}), t);
|
@@ -1665,7 +1665,7 @@ function nt(e, n) {
|
|
1665
1665
|
}
|
1666
1666
|
return t;
|
1667
1667
|
}
|
1668
|
-
function
|
1668
|
+
function kd(e) {
|
1669
1669
|
for (var n = 1; n < arguments.length; n++) {
|
1670
1670
|
var t = arguments[n] != null ? arguments[n] : {};
|
1671
1671
|
n % 2 ? nt(Object(t), !0).forEach(function(d) {
|
@@ -1734,7 +1734,7 @@ function Kd(e) {
|
|
1734
1734
|
else
|
1735
1735
|
throw new TypeError("A text for parsing must be a string.");
|
1736
1736
|
if (!r || typeof r == "string")
|
1737
|
-
o ? ($ = i, s = o) : ($ = void 0, s = i), r && ($ =
|
1737
|
+
o ? ($ = i, s = o) : ($ = void 0, s = i), r && ($ = kd({
|
1738
1738
|
defaultCountry: r
|
1739
1739
|
}, $));
|
1740
1740
|
else if (Wd(r))
|
@@ -1779,7 +1779,7 @@ function Xd(e, n, t) {
|
|
1779
1779
|
defaultCountry: void 0
|
1780
1780
|
}));
|
1781
1781
|
try {
|
1782
|
-
return
|
1782
|
+
return Ld(e, n, t);
|
1783
1783
|
} catch (d) {
|
1784
1784
|
if (!(d instanceof T))
|
1785
1785
|
throw d;
|
@@ -1792,15 +1792,15 @@ function Yd() {
|
|
1792
1792
|
function ce() {
|
1793
1793
|
return Kt(Yd, arguments);
|
1794
1794
|
}
|
1795
|
-
const Zd = { class: "cols-2-1_2 gap-small pd-small bg-white" }, Jd = /* @__PURE__ */
|
1795
|
+
const Zd = { class: "cols-2-1_2 gap-small pd-small bg-white" }, Jd = /* @__PURE__ */ f("section", { class: "w-100 desktop-only o-hidden radius-big bg-grad-main" }, null, -1), Qd = {
|
1796
1796
|
__name: "Auth",
|
1797
1797
|
setup(e) {
|
1798
|
-
return P(null), P(null), P(null),
|
1798
|
+
return P(null), P(null), P(null), k(), j(), P("email"), (n, t) => {
|
1799
1799
|
const d = _e("router-view");
|
1800
1800
|
return v(), b("div", Zd, [
|
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(M, {
|
1804
1804
|
name: "scaleIn",
|
1805
1805
|
mode: "out-in"
|
1806
1806
|
}, {
|
@@ -1868,7 +1868,7 @@ function ot(e) {
|
|
1868
1868
|
const er = { class: "t-center pd-medium" }, tr = { class: "mn-medium" }, nr = { class: "mn-big t-transp" }, dr = { class: "w-100 mn-big flex-nowrap flex" }, rr = { key: 1 }, Pt = {
|
1869
1869
|
__name: "EnterCode",
|
1870
1870
|
setup(e) {
|
1871
|
-
const n =
|
1871
|
+
const n = k(), t = j(), { t: d } = H({
|
1872
1872
|
inheritLocale: !0,
|
1873
1873
|
useScope: "local"
|
1874
1874
|
}), r = pt({
|
@@ -1882,7 +1882,7 @@ const er = { class: "t-center pd-medium" }, tr = { class: "mn-medium" }, nr = {
|
|
1882
1882
|
o.value > 0 ? o.value -= 1 : clearInterval(m);
|
1883
1883
|
}, 1e3);
|
1884
1884
|
} catch {
|
1885
|
-
|
1885
|
+
R({ response: { data: { errorCode: "CODE_NOT_SENT" } } });
|
1886
1886
|
}
|
1887
1887
|
}
|
1888
1888
|
const $ = (m, l) => {
|
@@ -1901,7 +1901,7 @@ const er = { class: "t-center pd-medium" }, tr = { class: "mn-medium" }, nr = {
|
|
1901
1901
|
r.digits[l + w] = u[w];
|
1902
1902
|
C(l + 3);
|
1903
1903
|
} else
|
1904
|
-
|
1904
|
+
R({ response: { data: { errorCode: "INPUT_ERROR" } } });
|
1905
1905
|
}, y = (m, l) => {
|
1906
1906
|
if (m.key === "Backspace" && (r.digits[l] === null || r.digits[l] === void 0 || r.digits[l] === "")) {
|
1907
1907
|
m.preventDefault();
|
@@ -1915,14 +1915,14 @@ const er = { class: "t-center pd-medium" }, tr = { class: "mn-medium" }, nr = {
|
|
1915
1915
|
_ === ie ? (ae.code.isValid = !0, t.push({
|
1916
1916
|
path: "/auth/enter-password",
|
1917
1917
|
query: { type: ae.code.type, method: n.query.method }
|
1918
|
-
})) : (
|
1918
|
+
})) : (R({ response: { data: { errorCode: "WRONG_CODE" } } }), i.value.focus(), r.digits = ["", "", "", ""]);
|
1919
1919
|
}
|
1920
1920
|
};
|
1921
1921
|
return (m, l) => (v(), b("section", er, [
|
1922
|
-
|
1923
|
-
|
1924
|
-
|
1925
|
-
N(
|
1922
|
+
f("h3", tr, h(c(d)("verifyNumberTitle")), 1),
|
1923
|
+
f("p", nr, h(c(d)("instructions")), 1),
|
1924
|
+
f("div", dr, [
|
1925
|
+
N(f("input", {
|
1926
1926
|
type: "number",
|
1927
1927
|
"onUpdate:modelValue": l[0] || (l[0] = (u) => r.digits[0] = u),
|
1928
1928
|
ref_key: "firstInput",
|
@@ -1936,7 +1936,7 @@ const er = { class: "t-center pd-medium" }, tr = { class: "mn-medium" }, nr = {
|
|
1936
1936
|
}, null, 544), [
|
1937
1937
|
[J, r.digits[0]]
|
1938
1938
|
]),
|
1939
|
-
N(
|
1939
|
+
N(f("input", {
|
1940
1940
|
type: "number",
|
1941
1941
|
"onUpdate:modelValue": l[5] || (l[5] = (u) => r.digits[1] = u),
|
1942
1942
|
maxlength: "1",
|
@@ -1947,7 +1947,7 @@ const er = { class: "t-center pd-medium" }, tr = { class: "mn-medium" }, nr = {
|
|
1947
1947
|
}, null, 544), [
|
1948
1948
|
[J, r.digits[1]]
|
1949
1949
|
]),
|
1950
|
-
N(
|
1950
|
+
N(f("input", {
|
1951
1951
|
type: "number",
|
1952
1952
|
"onUpdate:modelValue": l[9] || (l[9] = (u) => r.digits[2] = u),
|
1953
1953
|
maxlength: "1",
|
@@ -1958,7 +1958,7 @@ const er = { class: "t-center pd-medium" }, tr = { class: "mn-medium" }, nr = {
|
|
1958
1958
|
}, null, 544), [
|
1959
1959
|
[J, r.digits[2]]
|
1960
1960
|
]),
|
1961
|
-
N(
|
1961
|
+
N(f("input", {
|
1962
1962
|
type: "number",
|
1963
1963
|
"onUpdate:modelValue": l[13] || (l[13] = (u) => r.digits[3] = u),
|
1964
1964
|
maxlength: "1",
|
@@ -1974,7 +1974,7 @@ const er = { class: "t-center pd-medium" }, tr = { class: "mn-medium" }, nr = {
|
|
1974
1974
|
key: 0,
|
1975
1975
|
onClick: a,
|
1976
1976
|
class: "t-blue"
|
1977
|
-
}, h(
|
1977
|
+
}, h(c(d)("resendCode")), 1)) : (v(), b("span", rr, h(o.value) + " " + h(c(d)("secondsResend")), 1))
|
1978
1978
|
]));
|
1979
1979
|
}
|
1980
1980
|
};
|
@@ -1982,7 +1982,7 @@ typeof ot == "function" && ot(Pt);
|
|
1982
1982
|
const ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1983
1983
|
__proto__: null,
|
1984
1984
|
default: Pt
|
1985
|
-
}, Symbol.toStringTag, { value: "Module" })), U =
|
1985
|
+
}, Symbol.toStringTag, { value: "Module" })), U = Lt.create({ baseURL: process.env.API_URL, withCredentials: !0 });
|
1986
1986
|
U.defaults.withCredentials = !0;
|
1987
1987
|
const A = pt({
|
1988
1988
|
invites: [],
|
@@ -1993,54 +1993,54 @@ const A = pt({
|
|
1993
1993
|
await U.get(`/api/invites/${e}`).then((n) => {
|
1994
1994
|
A.invites = n.data, A.error = null;
|
1995
1995
|
}).catch((n) => {
|
1996
|
-
|
1996
|
+
R(n);
|
1997
1997
|
});
|
1998
1998
|
},
|
1999
1999
|
async readOne(e) {
|
2000
2000
|
await U.get(`/api/invites/get/${e}`).then((n) => {
|
2001
2001
|
A.invite = n.data, p.user.phone = n.data.invitedPhone, p.user.email = n.data.invitedEmail;
|
2002
2002
|
}).catch((n) => {
|
2003
|
-
|
2003
|
+
R(n);
|
2004
2004
|
});
|
2005
2005
|
},
|
2006
2006
|
async create(e, n) {
|
2007
2007
|
await U.post(`/api/invites/${e}/create`, n).then(() => {
|
2008
2008
|
A.error = null;
|
2009
2009
|
}).catch((t) => {
|
2010
|
-
|
2010
|
+
R(t);
|
2011
2011
|
});
|
2012
2012
|
},
|
2013
2013
|
async update(e, n) {
|
2014
2014
|
await U.put(`/api/invites/${e}/update`, n).then(() => {
|
2015
2015
|
A.error = null;
|
2016
2016
|
}).catch((t) => {
|
2017
|
-
|
2017
|
+
R(t);
|
2018
2018
|
});
|
2019
2019
|
},
|
2020
2020
|
async delete(e) {
|
2021
2021
|
await U.delete(`/api/invites/${e}/delete`).then(() => {
|
2022
2022
|
A.error = null;
|
2023
2023
|
}).catch((n) => {
|
2024
|
-
|
2024
|
+
R(n);
|
2025
2025
|
});
|
2026
2026
|
}
|
2027
2027
|
};
|
2028
2028
|
Ft(A, (e, n) => {
|
2029
2029
|
});
|
2030
|
-
const
|
2030
|
+
const Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2031
2031
|
__proto__: null,
|
2032
2032
|
actions: Ot,
|
2033
2033
|
state: A
|
2034
2034
|
}, Symbol.toStringTag, { value: "Module" }));
|
2035
|
-
const or = { class: "t-left pd-medium" }, ar = /* @__PURE__ */
|
2035
|
+
const or = { class: "t-left pd-medium" }, ar = /* @__PURE__ */ f("h3", { class: "mn-small" }, "Вы были пригилашены в организацию", -1), sr = /* @__PURE__ */ f("p", { class: "mn-semi t-transp" }, "Пожалуйста, укажите пароль, на этом регистрация будет закочена.", -1), lr = { class: "mn-semi radius-small o-hidden" }, $r = { key: 0 }, ur = { key: 1 }, cr = {
|
2036
2036
|
__name: "Invite",
|
2037
2037
|
async setup(e) {
|
2038
2038
|
let n, t;
|
2039
|
-
const d = P(null), r =
|
2039
|
+
const d = P(null), r = k(), i = j();
|
2040
2040
|
[n, t] = Dt(() => Ot.readOne(r.query.inviteCode)), await n, t();
|
2041
2041
|
async function o() {
|
2042
2042
|
try {
|
2043
|
-
await
|
2043
|
+
await x(
|
2044
2044
|
d,
|
2045
2045
|
mt,
|
2046
2046
|
p.user.password,
|
@@ -2049,7 +2049,7 @@ const or = { class: "t-left pd-medium" }, ar = /* @__PURE__ */ c("h3", { class:
|
|
2049
2049
|
} catch {
|
2050
2050
|
throw new Error();
|
2051
2051
|
}
|
2052
|
-
await
|
2052
|
+
await V.signup(p.user, r.query.type, r.query.inviteCode);
|
2053
2053
|
}
|
2054
2054
|
function a() {
|
2055
2055
|
i.push({ name: "Dashboard" });
|
@@ -2057,8 +2057,8 @@ const or = { class: "t-left pd-medium" }, ar = /* @__PURE__ */ c("h3", { class:
|
|
2057
2057
|
return ($, s) => (v(), b("section", or, [
|
2058
2058
|
ar,
|
2059
2059
|
sr,
|
2060
|
-
|
2061
|
-
g(
|
2060
|
+
f("div", lr, [
|
2061
|
+
g(z, {
|
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 or = { class: "t-left pd-medium" }, ar = /* @__PURE__ */ c("h3", { class:
|
|
2067
2067
|
placeholder: "******",
|
2068
2068
|
class: "bg-white radius-small mn-small"
|
2069
2069
|
}, null, 8, ["field", "validation"]),
|
2070
|
-
g(
|
2070
|
+
g(z, {
|
2071
2071
|
field: p.user.passwordRepeat,
|
2072
2072
|
"onUpdate:field": s[1] || (s[1] = (y) => p.user.passwordRepeat = y),
|
2073
2073
|
type: "password",
|
@@ -2076,14 +2076,14 @@ const or = { class: "t-left pd-medium" }, ar = /* @__PURE__ */ c("h3", { class:
|
|
2076
2076
|
class: "bg-white radius-small mn-semi"
|
2077
2077
|
}, null, 8, ["field"])
|
2078
2078
|
]),
|
2079
|
-
g(
|
2079
|
+
g(G, {
|
2080
2080
|
disabled: A.invite === null,
|
2081
2081
|
submit: o,
|
2082
2082
|
callback: a,
|
2083
2083
|
class: "mn-big"
|
2084
2084
|
}, {
|
2085
2085
|
default: O(() => [
|
2086
|
-
|
2086
|
+
c(r).query.method === "reset-password" ? (v(), b("span", $r, "Поменять пароль")) : (v(), b("span", ur, "Зарегистрироваться"))
|
2087
2087
|
]),
|
2088
2088
|
_: 1
|
2089
2089
|
}, 8, ["disabled"])
|
@@ -2170,14 +2170,14 @@ const pr = { class: "t-left pd-medium" }, mr = { class: "mn-small" }, hr = {
|
|
2170
2170
|
}, gr = { class: "mn-semi radius-small o-hidden" }, vr = { key: 0 }, br = { key: 1 }, St = {
|
2171
2171
|
__name: "EnterPassword",
|
2172
2172
|
setup(e) {
|
2173
|
-
const n = P(null), { t } =
|
2173
|
+
const n = P(null), { t } = H({
|
2174
2174
|
inheritLocale: !0,
|
2175
2175
|
useScope: "local"
|
2176
|
-
}), d =
|
2176
|
+
}), d = k(), r = j();
|
2177
2177
|
P("phone");
|
2178
2178
|
async function i() {
|
2179
2179
|
try {
|
2180
|
-
await
|
2180
|
+
await x(
|
2181
2181
|
n,
|
2182
2182
|
mt,
|
2183
2183
|
p.user.password,
|
@@ -2186,38 +2186,38 @@ const pr = { class: "t-left pd-medium" }, mr = { class: "mn-small" }, hr = {
|
|
2186
2186
|
} catch {
|
2187
2187
|
throw new Error();
|
2188
2188
|
}
|
2189
|
-
d.query.method === "reset-password" && await
|
2189
|
+
d.query.method === "reset-password" && await V.updatePassword(p.user, d.query.type), d.query.method !== "reset-password" && await V.signup(p.user, d.query.type);
|
2190
2190
|
}
|
2191
2191
|
function o() {
|
2192
2192
|
r.push({ name: "User Profile", params: { _id: p.user._id } });
|
2193
2193
|
}
|
2194
2194
|
return (a, $) => (v(), b("section", pr, [
|
2195
|
-
|
2196
|
-
|
2197
|
-
|
2198
|
-
g(
|
2195
|
+
f("h3", mr, h(c(t)("almostDone")), 1),
|
2196
|
+
c(d).query.method === "reset-password" ? (v(), b("p", hr, h(c(t)("newPasswordPrompt")), 1)) : (v(), b("p", yr, h(c(t)("registrationPasswordPrompt")), 1)),
|
2197
|
+
f("div", gr, [
|
2198
|
+
g(z, {
|
2199
2199
|
field: p.user.password,
|
2200
2200
|
"onUpdate:field": $[0] || ($[0] = (s) => p.user.password = s),
|
2201
2201
|
type: "password",
|
2202
2202
|
validation: n.value,
|
2203
|
-
placeholder:
|
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(z, {
|
2207
2207
|
field: p.user.passwordRepeat,
|
2208
2208
|
"onUpdate:field": $[1] || ($[1] = (s) => p.user.passwordRepeat = s),
|
2209
2209
|
type: "password",
|
2210
|
-
placeholder:
|
2210
|
+
placeholder: c(t)("repeatPasswordPlaceholder"),
|
2211
2211
|
class: "bg-grey pd-small radius-small mn-thin"
|
2212
2212
|
}, null, 8, ["field", "placeholder"])
|
2213
2213
|
]),
|
2214
|
-
g(
|
2214
|
+
g(G, {
|
2215
2215
|
submit: i,
|
2216
2216
|
callback: o,
|
2217
2217
|
class: "mn-big"
|
2218
2218
|
}, {
|
2219
2219
|
default: O(() => [
|
2220
|
-
|
2220
|
+
c(d).query.method === "reset-password" ? (v(), b("span", vr, h(c(t)("changePasswordBtn")), 1)) : (v(), b("span", br, h(c(t)("registerBtn")), 1))
|
2221
2221
|
]),
|
2222
2222
|
_: 1
|
2223
2223
|
})
|
@@ -2992,43 +2992,43 @@ const Er = /* @__PURE__ */ Rt({
|
|
2992
2992
|
}), Tr = ["tabindex"], Ar = { class: "flex-nowrap flex flex-v-center p-medium vti__selection" }, Fr = ["innerHTML"], Dr = {
|
2993
2993
|
key: 1,
|
2994
2994
|
class: "vti__country-code"
|
2995
|
-
}, Rr = ["onClick", "onMousemove"], Mr = ["innerHTML"], xr = { key: 1 },
|
2995
|
+
}, Rr = ["onClick", "onMousemove"], Mr = ["innerHTML"], xr = { key: 1 }, zr = ["type", "autocomplete", "autofocus", "disabled", "id", "maxlength", "name", "placeholder", "readonly", "required", "tabindex"], Lr = {
|
2996
2996
|
key: 0,
|
2997
2997
|
class: "mn-t-thin mn-b-thin invalid-feedback"
|
2998
2998
|
};
|
2999
|
-
function
|
2999
|
+
function kr(e, n, t, d, r, i) {
|
3000
3000
|
const o = Mt("click-outside");
|
3001
3001
|
return v(), b(pe, null, [
|
3002
|
-
|
3003
|
-
class:
|
3004
|
-
style:
|
3002
|
+
f("div", {
|
3003
|
+
class: K(["vue3-reactive-tel-input", { "bg-fourth-nano": e.validation }, e.$attrs.class, e.rootClass, { disabled: e.disabled }, e.classes]),
|
3004
|
+
style: q([e.rootStyle, e.styles]),
|
3005
3005
|
ref: "rootElement"
|
3006
3006
|
}, [
|
3007
3007
|
N((v(), b("div", {
|
3008
|
-
class:
|
3008
|
+
class: K([["vti__dropdown", { open: e.open }], "br-solid br-black-transp br-1px radius-medium"]),
|
3009
3009
|
tabindex: e.dropdownOptions.tabindex,
|
3010
3010
|
onKeydown: [
|
3011
3011
|
n[0] || (n[0] = (...a) => e.keyboardNav && e.keyboardNav(...a)),
|
3012
3012
|
n[2] || (n[2] = oe((...a) => e.reset && e.reset(...a), ["esc"]))
|
3013
3013
|
],
|
3014
3014
|
onClick: n[1] || (n[1] = (...a) => e.toggleDropdown && e.toggleDropdown(...a)),
|
3015
|
-
style:
|
3015
|
+
style: q([e.dropdownStyle])
|
3016
3016
|
}, [
|
3017
|
-
|
3017
|
+
f("span", Ar, [
|
3018
3018
|
e.dropdownOptions.showFlags ? (v(), b("span", {
|
3019
3019
|
key: 0,
|
3020
3020
|
innerHTML: e.activeCountryFlag,
|
3021
3021
|
class: "mn-r-thin"
|
3022
|
-
}, null, 8, Fr)) :
|
3023
|
-
e.dropdownOptions.showDialCodeInSelection ? (v(), b("span", Dr, " +" + h(e.activeCountry && e.activeCountry.dialCode), 1)) :
|
3022
|
+
}, null, 8, Fr)) : L("", !0),
|
3023
|
+
e.dropdownOptions.showDialCodeInSelection ? (v(), b("span", Dr, " +" + h(e.activeCountry && e.activeCountry.dialCode), 1)) : L("", !0)
|
3024
3024
|
]),
|
3025
|
-
N(
|
3025
|
+
N(f("ul", {
|
3026
3026
|
ref: "list",
|
3027
|
-
class:
|
3028
|
-
style:
|
3027
|
+
class: K(["bs-black radius-small vti__dropdown-list", e.dropdownOpenDirection]),
|
3028
|
+
style: q([e.listStyle])
|
3029
3029
|
}, [
|
3030
3030
|
(v(!0), b(pe, null, ft(e.sortedCountries, (a, $) => (v(), b("li", {
|
3031
|
-
class:
|
3031
|
+
class: K(["flex-nowrap flex w-max", ["vti__dropdown-item", e.getItemClass($, a.iso2)]]),
|
3032
3032
|
key: a.iso2 + (a.preferred ? "-preferred" : ""),
|
3033
3033
|
onClick: (s) => e.choose(a),
|
3034
3034
|
onMousemove: (s) => e.selectedIndex = $
|
@@ -3037,25 +3037,25 @@ function Lr(e, n, t, d, r, i) {
|
|
3037
3037
|
key: 0,
|
3038
3038
|
innerHTML: a.flag,
|
3039
3039
|
class: "mn-r-thin"
|
3040
|
-
}, null, 8, Mr)) :
|
3041
|
-
|
3042
|
-
e.dropdownOptions.showDialCodeInList ? (v(), b("span", xr, " +" + h(a.dialCode), 1)) :
|
3040
|
+
}, null, 8, Mr)) : L("", !0),
|
3041
|
+
f("strong", null, h(a.name), 1),
|
3042
|
+
e.dropdownOptions.showDialCodeInList ? (v(), b("span", xr, " +" + h(a.dialCode), 1)) : L("", !0)
|
3043
3043
|
], 42, Rr))), 128))
|
3044
3044
|
], 6), [
|
3045
|
-
[
|
3045
|
+
[X, e.open]
|
3046
3046
|
])
|
3047
3047
|
], 46, Tr)), [
|
3048
3048
|
[o, e.clickedOutside]
|
3049
3049
|
]),
|
3050
|
-
N(
|
3050
|
+
N(f("input", {
|
3051
3051
|
"onUpdate:modelValue": n[3] || (n[3] = (a) => e.phone = a),
|
3052
3052
|
pattern: "[0-9]*",
|
3053
3053
|
ref: "input",
|
3054
3054
|
type: e.inputOptions.type,
|
3055
3055
|
autocomplete: e.inputOptions.autocomplete,
|
3056
3056
|
autofocus: e.inputOptions.autofocus,
|
3057
|
-
class:
|
3058
|
-
style:
|
3057
|
+
class: K(["vti__input", e.inputOptions.styleClasses, e.inputClass, e.Iclasses]),
|
3058
|
+
style: q([e.inputStyle, e.Istyles]),
|
3059
3059
|
disabled: e.disabled,
|
3060
3060
|
id: e.inputId !== "" ? e.inputId : e.inputOptions.id,
|
3061
3061
|
maxlength: e.inputOptions.maxlength,
|
@@ -3071,20 +3071,20 @@ function Lr(e, n, t, d, r, i) {
|
|
3071
3071
|
n[7] || (n[7] = oe((...a) => e.onEnter && e.onEnter(...a), ["enter"])),
|
3072
3072
|
n[8] || (n[8] = oe((...a) => e.onSpace && e.onSpace(...a), ["space"]))
|
3073
3073
|
]
|
3074
|
-
}, null, 46,
|
3074
|
+
}, null, 46, zr), [
|
3075
3075
|
[xt, e.phone]
|
3076
3076
|
]),
|
3077
|
-
|
3077
|
+
zt(e.$slots, "default", {}, void 0, !0)
|
3078
3078
|
], 6),
|
3079
|
-
g(
|
3079
|
+
g(M, { name: "fade" }, {
|
3080
3080
|
default: O(() => [
|
3081
|
-
e.validation ? (v(), b("div",
|
3081
|
+
e.validation ? (v(), b("div", Lr, " * " + h(e.validation.message), 1)) : L("", !0)
|
3082
3082
|
]),
|
3083
3083
|
_: 1
|
3084
3084
|
})
|
3085
3085
|
], 64);
|
3086
3086
|
}
|
3087
|
-
const Te = /* @__PURE__ */ Bt(Er, [["render",
|
3087
|
+
const Te = /* @__PURE__ */ Bt(Er, [["render", kr], ["__scopeId", "data-v-50353ca7"]]);
|
3088
3088
|
function lt(e) {
|
3089
3089
|
const n = e;
|
3090
3090
|
n.__i18n = n.__i18n || [], n.__i18n.push({
|
@@ -3178,20 +3178,20 @@ const jr = { class: "t-left pd-medium" }, Br = { class: "mn-small" }, Ur = { cla
|
|
3178
3178
|
}, Wr = { class: "mn-small t-transp" }, It = {
|
3179
3179
|
__name: "ResetPassword",
|
3180
3180
|
setup(e) {
|
3181
|
-
const { t: n } =
|
3181
|
+
const { t: n } = H({
|
3182
3182
|
inheritLocale: !0,
|
3183
3183
|
useScope: "local"
|
3184
3184
|
}), t = P(null), d = P(null);
|
3185
|
-
|
3185
|
+
k();
|
3186
3186
|
const r = j(), i = P("phone");
|
3187
3187
|
async function o() {
|
3188
3188
|
try {
|
3189
|
-
i.value === "phone" && await
|
3189
|
+
i.value === "phone" && await x(
|
3190
3190
|
t,
|
3191
3191
|
Ce,
|
3192
3192
|
p.user.phone,
|
3193
3193
|
"Некорректный телефон"
|
3194
|
-
), i.value === "email" && await
|
3194
|
+
), i.value === "email" && await x(
|
3195
3195
|
d,
|
3196
3196
|
we,
|
3197
3197
|
p.user.email,
|
@@ -3201,7 +3201,7 @@ const jr = { class: "t-left pd-medium" }, Br = { class: "mn-small" }, Ur = { cla
|
|
3201
3201
|
throw new Error();
|
3202
3202
|
}
|
3203
3203
|
try {
|
3204
|
-
await
|
3204
|
+
await V.resetPassword(p.user, i.value, "reset-password");
|
3205
3205
|
} catch ($) {
|
3206
3206
|
throw console.log($), new Error();
|
3207
3207
|
}
|
@@ -3210,23 +3210,23 @@ const jr = { class: "t-left pd-medium" }, Br = { class: "mn-small" }, Ur = { cla
|
|
3210
3210
|
r.push({ name: "Enter Code", query: { type: i.value, method: "reset-password" } });
|
3211
3211
|
}
|
3212
3212
|
return ($, s) => (v(), b("section", jr, [
|
3213
|
-
|
3214
|
-
|
3215
|
-
|
3213
|
+
f("h3", Br, h(c(n)("forgotPasswordTitle")), 1),
|
3214
|
+
f("p", Ur, h(c(n)("instructions")), 1),
|
3215
|
+
f("div", Gr, [
|
3216
3216
|
g(Pe, {
|
3217
3217
|
selected: i.value,
|
3218
3218
|
"onUpdate:selected": s[0] || (s[0] = (y) => i.value = y),
|
3219
3219
|
tabs: [
|
3220
|
-
{ name:
|
3221
|
-
{ name:
|
3220
|
+
{ name: c(n)("phone"), value: "phone" },
|
3221
|
+
{ name: c(n)("email"), value: "email" }
|
3222
3222
|
]
|
3223
3223
|
}, null, 8, ["selected", "tabs"])
|
3224
3224
|
]),
|
3225
|
-
|
3226
|
-
g(
|
3225
|
+
f("div", null, [
|
3226
|
+
g(M, { name: "slide-fade" }, {
|
3227
3227
|
default: O(() => [
|
3228
3228
|
i.value === "phone" ? (v(), b("div", Vr, [
|
3229
|
-
|
3229
|
+
f("p", Hr, h(c(n)("smsInfo")), 1),
|
3230
3230
|
g(Te, {
|
3231
3231
|
modelValue: p.user.phone,
|
3232
3232
|
"onUpdate:modelValue": s[1] || (s[1] = (y) => p.user.phone = y),
|
@@ -3237,36 +3237,36 @@ const jr = { class: "t-left pd-medium" }, Br = { class: "mn-small" }, Ur = { cla
|
|
3237
3237
|
},
|
3238
3238
|
validation: t.value,
|
3239
3239
|
mode: "national",
|
3240
|
-
inputOptions: { placeholder:
|
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
|
+
])) : L("", !0)
|
3244
3244
|
]),
|
3245
3245
|
_: 1
|
3246
3246
|
}),
|
3247
|
-
g(
|
3247
|
+
g(M, { name: "slide-fade" }, {
|
3248
3248
|
default: O(() => [
|
3249
3249
|
i.value === "email" ? (v(), b("div", Kr, [
|
3250
|
-
|
3251
|
-
g(
|
3250
|
+
f("p", Wr, h(c(n)("emailInfo")), 1),
|
3251
|
+
g(z, {
|
3252
3252
|
field: p.user.email,
|
3253
3253
|
"onUpdate:field": s[2] || (s[2] = (y) => p.user.email = y),
|
3254
|
-
placeholder:
|
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
|
+
])) : L("", !0)
|
3259
3259
|
]),
|
3260
3260
|
_: 1
|
3261
3261
|
})
|
3262
3262
|
]),
|
3263
|
-
g(
|
3263
|
+
g(G, {
|
3264
3264
|
submit: o,
|
3265
3265
|
callback: a,
|
3266
3266
|
class: "mn-big"
|
3267
3267
|
}, {
|
3268
3268
|
default: O(() => [
|
3269
|
-
|
3269
|
+
D(h(c(n)("sendCode")), 1)
|
3270
3270
|
]),
|
3271
3271
|
_: 1
|
3272
3272
|
})
|
@@ -3373,20 +3373,20 @@ function $t(e) {
|
|
3373
3373
|
const Xr = { class: "t-left pd-medium" }, Yr = { class: "mn-small" }, Zr = { class: "mn-small t-transp" }, Jr = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, Qr = { class: "" }, ei = { class: "mn-semi radius-small" }, ti = { class: "mn-small t-transp" }, ni = { class: "mn-semi radius-small o-hidden" }, di = { class: "mn-small t-transp" }, ri = { class: "w-100" }, Nt = {
|
3374
3374
|
__name: "SignUp",
|
3375
3375
|
setup(e) {
|
3376
|
-
const { t: n } =
|
3376
|
+
const { t: n } = H({
|
3377
3377
|
inheritLocale: !0,
|
3378
3378
|
useScope: "local"
|
3379
3379
|
}), t = P(null), d = P(null);
|
3380
|
-
|
3380
|
+
k();
|
3381
3381
|
const r = j(), i = P("phone");
|
3382
3382
|
async function o() {
|
3383
3383
|
try {
|
3384
|
-
i.value === "phone" && await
|
3384
|
+
i.value === "phone" && await x(
|
3385
3385
|
t,
|
3386
3386
|
Ce,
|
3387
3387
|
p.user.phone,
|
3388
3388
|
"Некорректный телефон"
|
3389
|
-
), i.value === "email" && await
|
3389
|
+
), i.value === "email" && await x(
|
3390
3390
|
d,
|
3391
3391
|
we,
|
3392
3392
|
p.user.email,
|
@@ -3407,23 +3407,23 @@ const Xr = { class: "t-left pd-medium" }, Yr = { class: "mn-small" }, Zr = { cla
|
|
3407
3407
|
return ($, s) => {
|
3408
3408
|
const y = _e("router-link");
|
3409
3409
|
return v(), b("section", Xr, [
|
3410
|
-
|
3411
|
-
|
3412
|
-
|
3410
|
+
f("h3", Yr, h(c(n)("title")), 1),
|
3411
|
+
f("p", Zr, h(c(n)("description")), 1),
|
3412
|
+
f("div", Jr, [
|
3413
3413
|
g(Pe, {
|
3414
3414
|
selected: i.value,
|
3415
3415
|
"onUpdate:selected": s[0] || (s[0] = (C) => i.value = C),
|
3416
3416
|
tabs: [
|
3417
|
-
{ name:
|
3418
|
-
{ name:
|
3417
|
+
{ name: c(n)("phone"), value: "phone" },
|
3418
|
+
{ name: c(n)("email"), value: "email" }
|
3419
3419
|
]
|
3420
3420
|
}, null, 8, ["selected", "tabs"])
|
3421
3421
|
]),
|
3422
|
-
|
3423
|
-
g(
|
3422
|
+
f("div", Qr, [
|
3423
|
+
g(M, { name: "slide-fade" }, {
|
3424
3424
|
default: O(() => [
|
3425
|
-
N(
|
3426
|
-
|
3425
|
+
N(f("div", ei, [
|
3426
|
+
f("p", ti, h(c(n)("smsNotice")), 1),
|
3427
3427
|
g(Te, {
|
3428
3428
|
modelValue: p.user.phone,
|
3429
3429
|
"onUpdate:modelValue": s[1] || (s[1] = (C) => p.user.phone = C),
|
@@ -3434,50 +3434,50 @@ const Xr = { class: "t-left pd-medium" }, Yr = { class: "mn-small" }, Zr = { cla
|
|
3434
3434
|
},
|
3435
3435
|
validation: t.value,
|
3436
3436
|
mode: "national",
|
3437
|
-
inputOptions: { placeholder:
|
3437
|
+
inputOptions: { placeholder: c(n)("phonePlaceholder") },
|
3438
3438
|
class: "bg-grey pd-small radius-small mn-thin"
|
3439
3439
|
}, null, 8, ["modelValue", "validation", "inputOptions"])
|
3440
3440
|
], 512), [
|
3441
|
-
[
|
3441
|
+
[X, i.value === "phone"]
|
3442
3442
|
])
|
3443
3443
|
]),
|
3444
3444
|
_: 1
|
3445
3445
|
}),
|
3446
|
-
g(
|
3446
|
+
g(M, { name: "slide-fade" }, {
|
3447
3447
|
default: O(() => [
|
3448
|
-
N(
|
3449
|
-
|
3450
|
-
g(
|
3448
|
+
N(f("div", ni, [
|
3449
|
+
f("p", di, h(c(n)("emailNotice")), 1),
|
3450
|
+
g(z, {
|
3451
3451
|
field: p.user.email,
|
3452
3452
|
"onUpdate:field": s[2] || (s[2] = (C) => p.user.email = C),
|
3453
|
-
placeholder:
|
3453
|
+
placeholder: c(n)("emailPlaceholder"),
|
3454
3454
|
validation: d.value,
|
3455
3455
|
class: "bg-grey pd-medium radius-small"
|
3456
3456
|
}, null, 8, ["field", "placeholder", "validation"])
|
3457
3457
|
], 512), [
|
3458
|
-
[
|
3458
|
+
[X, i.value === "email"]
|
3459
3459
|
])
|
3460
3460
|
]),
|
3461
3461
|
_: 1
|
3462
3462
|
})
|
3463
3463
|
]),
|
3464
|
-
g(
|
3464
|
+
g(G, {
|
3465
3465
|
submit: o,
|
3466
3466
|
callback: a,
|
3467
3467
|
class: "mn-big"
|
3468
3468
|
}, {
|
3469
3469
|
default: O(() => [
|
3470
|
-
|
3470
|
+
D(h(c(n)("sendCode")), 1)
|
3471
3471
|
]),
|
3472
3472
|
_: 1
|
3473
3473
|
}),
|
3474
|
-
|
3474
|
+
f("div", ri, [
|
3475
3475
|
g(y, {
|
3476
3476
|
to: "/auth/signin",
|
3477
3477
|
class: "underline mn-medium d-block t-blue"
|
3478
3478
|
}, {
|
3479
3479
|
default: O(() => [
|
3480
|
-
|
3480
|
+
D(h(c(n)("haveAccount")), 1)
|
3481
3481
|
]),
|
3482
3482
|
_: 1
|
3483
3483
|
})
|
@@ -3541,13 +3541,13 @@ function ut(e) {
|
|
3541
3541
|
const { normalize: d } = t;
|
3542
3542
|
return d(["Sign In"]);
|
3543
3543
|
},
|
3544
|
-
|
3544
|
+
signin_apple: (t) => {
|
3545
3545
|
const { normalize: d } = t;
|
3546
|
-
return d(["
|
3546
|
+
return d(["Sign In with Apple"]);
|
3547
3547
|
},
|
3548
|
-
|
3548
|
+
soon: (t) => {
|
3549
3549
|
const { normalize: d } = t;
|
3550
|
-
return d(["
|
3550
|
+
return d(["SOON"]);
|
3551
3551
|
}
|
3552
3552
|
},
|
3553
3553
|
ru: {
|
@@ -3595,46 +3595,41 @@ function ut(e) {
|
|
3595
3595
|
const { normalize: d } = t;
|
3596
3596
|
return d(["Войти"]);
|
3597
3597
|
},
|
3598
|
-
|
3598
|
+
signin_apple: (t) => {
|
3599
3599
|
const { normalize: d } = t;
|
3600
|
-
return d(["
|
3600
|
+
return d(["Войти через Apple"]);
|
3601
3601
|
},
|
3602
|
-
|
3602
|
+
soon: (t) => {
|
3603
3603
|
const { normalize: d } = t;
|
3604
|
-
return d(["
|
3604
|
+
return d(["СКОРО"]);
|
3605
3605
|
}
|
3606
3606
|
}
|
3607
3607
|
}
|
3608
3608
|
});
|
3609
3609
|
}
|
3610
|
-
const oi = { class: "" }, ai = { class: "mn-medium" }, si = /* @__PURE__ */
|
3610
|
+
const oi = { class: "" }, ai = { class: "mn-medium" }, si = /* @__PURE__ */ f("br", null, null, -1), li = { class: "t-semi" }, $i = { class: "mn-big" }, ui = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, ci = { class: "" }, fi = { class: "mn-thin radius-small" }, pi = { class: "mn-thin radius-small o-hidden" }, mi = { class: "w-100 mn-big" }, Et = {
|
3611
3611
|
__name: "SignIn",
|
3612
3612
|
setup(e) {
|
3613
|
-
const { t: n } =
|
3613
|
+
const { t: n } = H({
|
3614
3614
|
inheritLocale: !0,
|
3615
3615
|
useScope: "local"
|
3616
3616
|
}), t = P(null), d = P(null), r = P(null);
|
3617
|
-
|
3618
|
-
const i = j(), o = P("phone"), a = Ae("APPLE_CLIENTID"), $ = Ae("APPLE_REDIRECT_URL"), s =
|
3619
|
-
clientId: a,
|
3620
|
-
scope: "email name",
|
3621
|
-
redirectURI: $,
|
3622
|
-
usePopup: !0
|
3623
|
-
}), window.AppleID.auth.signIn().then((l) => (l && console.log(l), l)).catch((l) => (console.error(l), null))), y = (l) => new Promise((u, w) => {
|
3617
|
+
k();
|
3618
|
+
const i = j(), o = P("phone"), a = Ae("APPLE_CLIENTID"), $ = Ae("APPLE_REDIRECT_URL"), s = (l) => new Promise((u, w) => {
|
3624
3619
|
const _ = document.createElement("script");
|
3625
3620
|
_.type = "text/javascript", _.src = l, _.onload = u, _.onerror = w, document.head.appendChild(_);
|
3626
3621
|
});
|
3627
3622
|
ct(async () => {
|
3628
|
-
await
|
3623
|
+
await s("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js");
|
3629
3624
|
});
|
3630
|
-
async function
|
3625
|
+
async function y() {
|
3631
3626
|
try {
|
3632
|
-
o.value === "phone" && await
|
3627
|
+
o.value === "phone" && await x(
|
3633
3628
|
t,
|
3634
3629
|
Ce,
|
3635
3630
|
p.user.phone,
|
3636
3631
|
"Некорректный телефон"
|
3637
|
-
), o.value === "email" && await
|
3632
|
+
), o.value === "email" && await x(
|
3638
3633
|
r,
|
3639
3634
|
we,
|
3640
3635
|
p.user.email,
|
@@ -3643,7 +3638,21 @@ const oi = { class: "" }, ai = { class: "mn-medium" }, si = /* @__PURE__ */ c("b
|
|
3643
3638
|
} catch {
|
3644
3639
|
throw new Error();
|
3645
3640
|
}
|
3646
|
-
await
|
3641
|
+
await V.login(p.user, o.value);
|
3642
|
+
}
|
3643
|
+
async function C() {
|
3644
|
+
try {
|
3645
|
+
window.AppleID.auth.init({
|
3646
|
+
clientId: a,
|
3647
|
+
scope: "email name",
|
3648
|
+
redirectURI: $,
|
3649
|
+
usePopup: !0
|
3650
|
+
});
|
3651
|
+
let l = await window.AppleID.auth.signIn();
|
3652
|
+
l && (console.log(l), await V.login(l, "apple"));
|
3653
|
+
} catch (l) {
|
3654
|
+
throw console.error(l), new Error("Error during Apple authentication");
|
3655
|
+
}
|
3647
3656
|
}
|
3648
3657
|
function m() {
|
3649
3658
|
i.push({ name: "User Profile", params: { _id: p.user._id } });
|
@@ -3651,36 +3660,36 @@ const oi = { class: "" }, ai = { class: "mn-medium" }, si = /* @__PURE__ */ c("b
|
|
3651
3660
|
return (l, u) => {
|
3652
3661
|
const w = _e("router-link");
|
3653
3662
|
return v(), b("section", oi, [
|
3654
|
-
|
3655
|
-
|
3663
|
+
f("h3", ai, [
|
3664
|
+
D(h(c(n)("title")) + " ", 1),
|
3656
3665
|
si,
|
3657
|
-
|
3666
|
+
f("span", li, h(c(n)("subtitle")), 1)
|
3658
3667
|
]),
|
3659
|
-
|
3668
|
+
f("p", $i, [
|
3660
3669
|
g(w, {
|
3661
3670
|
to: { name: "Sign Up" },
|
3662
3671
|
class: "underline t-second"
|
3663
3672
|
}, {
|
3664
3673
|
default: O(() => [
|
3665
|
-
|
3674
|
+
D(h(c(n)("signup")), 1)
|
3666
3675
|
]),
|
3667
3676
|
_: 1
|
3668
3677
|
})
|
3669
3678
|
]),
|
3670
|
-
|
3679
|
+
f("div", ui, [
|
3671
3680
|
g(Pe, {
|
3672
3681
|
selected: o.value,
|
3673
3682
|
"onUpdate:selected": u[0] || (u[0] = (_) => o.value = _),
|
3674
3683
|
tabs: [
|
3675
|
-
{ name:
|
3676
|
-
{ name:
|
3684
|
+
{ name: c(n)("phone"), value: "phone" },
|
3685
|
+
{ name: c(n)("email"), value: "email" }
|
3677
3686
|
]
|
3678
3687
|
}, null, 8, ["selected", "tabs"])
|
3679
3688
|
]),
|
3680
|
-
|
3681
|
-
g(
|
3689
|
+
f("div", ci, [
|
3690
|
+
g(M, { name: "slide-fade" }, {
|
3682
3691
|
default: O(() => [
|
3683
|
-
N(
|
3692
|
+
N(f("div", fi, [
|
3684
3693
|
g(Te, {
|
3685
3694
|
modelValue: p.user.phone,
|
3686
3695
|
"onUpdate:modelValue": u[1] || (u[1] = (_) => p.user.phone = _),
|
@@ -3691,78 +3700,80 @@ const oi = { class: "" }, ai = { class: "mn-medium" }, si = /* @__PURE__ */ c("b
|
|
3691
3700
|
},
|
3692
3701
|
validation: t.value,
|
3693
3702
|
mode: "national",
|
3694
|
-
inputOptions: { placeholder:
|
3703
|
+
inputOptions: { placeholder: c(n)("phonePlaceholder") },
|
3695
3704
|
class: "bg-grey pd-small radius-small mn-thin"
|
3696
3705
|
}, null, 8, ["modelValue", "validation", "inputOptions"])
|
3697
3706
|
], 512), [
|
3698
|
-
[
|
3707
|
+
[X, o.value === "phone"]
|
3699
3708
|
])
|
3700
3709
|
]),
|
3701
3710
|
_: 1
|
3702
3711
|
}),
|
3703
|
-
g(
|
3712
|
+
g(M, { name: "slide-fade" }, {
|
3704
3713
|
default: O(() => [
|
3705
|
-
N(
|
3706
|
-
g(
|
3714
|
+
N(f("div", pi, [
|
3715
|
+
g(z, {
|
3707
3716
|
field: p.user.email,
|
3708
3717
|
"onUpdate:field": u[2] || (u[2] = (_) => p.user.email = _),
|
3709
|
-
placeholder:
|
3718
|
+
placeholder: c(n)("emailPlaceholder"),
|
3710
3719
|
validation: r.value,
|
3711
3720
|
class: "bg-grey pd-medium radius-small"
|
3712
3721
|
}, null, 8, ["field", "placeholder", "validation"])
|
3713
3722
|
], 512), [
|
3714
|
-
[
|
3723
|
+
[X, o.value === "email"]
|
3715
3724
|
])
|
3716
3725
|
]),
|
3717
3726
|
_: 1
|
3718
3727
|
})
|
3719
3728
|
]),
|
3720
|
-
g(
|
3729
|
+
g(z, {
|
3721
3730
|
field: p.user.password,
|
3722
3731
|
"onUpdate:field": u[3] || (u[3] = (_) => p.user.password = _),
|
3723
3732
|
type: "password",
|
3724
3733
|
validation: d.value,
|
3725
|
-
placeholder:
|
3734
|
+
placeholder: c(n)("passwordPlaceholder"),
|
3726
3735
|
class: "bg-grey pd-medium radius-small mn-semi"
|
3727
3736
|
}, null, 8, ["field", "validation", "placeholder"]),
|
3728
|
-
|
3737
|
+
f("div", mi, [
|
3729
3738
|
g(w, {
|
3730
3739
|
to: "/auth/reset-password",
|
3731
3740
|
class: "underline d-block t-blue"
|
3732
3741
|
}, {
|
3733
3742
|
default: O(() => [
|
3734
|
-
|
3743
|
+
D(h(c(n)("forgotPassword")), 1)
|
3735
3744
|
]),
|
3736
3745
|
_: 1
|
3737
3746
|
})
|
3738
3747
|
]),
|
3739
|
-
g(
|
3740
|
-
submit:
|
3748
|
+
g(G, {
|
3749
|
+
submit: y,
|
3741
3750
|
callback: m,
|
3742
3751
|
class: "mn-thin"
|
3743
3752
|
}, {
|
3744
3753
|
default: O(() => [
|
3745
|
-
|
3754
|
+
D(h(c(n)("signin")), 1)
|
3746
3755
|
]),
|
3747
3756
|
_: 1
|
3748
3757
|
}),
|
3749
|
-
|
3750
|
-
|
3751
|
-
|
3752
|
-
|
3753
|
-
|
3754
|
-
|
3755
|
-
|
3756
|
-
|
3758
|
+
g(G, {
|
3759
|
+
submit: C,
|
3760
|
+
callback: m,
|
3761
|
+
class: "mn-thin bg-black t-white"
|
3762
|
+
}, {
|
3763
|
+
default: O(() => [
|
3764
|
+
D(h(c(n)("signin_apple")), 1)
|
3765
|
+
]),
|
3766
|
+
_: 1
|
3767
|
+
})
|
3757
3768
|
]);
|
3758
3769
|
};
|
3759
3770
|
}
|
3760
3771
|
};
|
3761
3772
|
typeof ut == "function" && ut(Et);
|
3762
|
-
const
|
3773
|
+
const hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
3763
3774
|
__proto__: null,
|
3764
3775
|
default: Et
|
3765
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
3776
|
+
}, Symbol.toStringTag, { value: "Module" })), Ei = [
|
3766
3777
|
{
|
3767
3778
|
path: "auth",
|
3768
3779
|
name: "Authentication",
|
@@ -3777,7 +3788,7 @@ const gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3777
3788
|
path: "signin",
|
3778
3789
|
name: "Sign In",
|
3779
3790
|
beforeEnter: [
|
3780
|
-
|
3791
|
+
W,
|
3781
3792
|
se
|
3782
3793
|
],
|
3783
3794
|
meta: {
|
@@ -3786,12 +3797,12 @@ const gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3786
3797
|
ru: "Вход"
|
3787
3798
|
}
|
3788
3799
|
},
|
3789
|
-
component: () => Promise.resolve().then(() =>
|
3800
|
+
component: () => Promise.resolve().then(() => hi)
|
3790
3801
|
}, {
|
3791
3802
|
path: "reset-password",
|
3792
3803
|
name: "Reset Password",
|
3793
3804
|
beforeEnter: [
|
3794
|
-
|
3805
|
+
W,
|
3795
3806
|
se
|
3796
3807
|
],
|
3797
3808
|
meta: {
|
@@ -3805,7 +3816,7 @@ const gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3805
3816
|
path: "signup",
|
3806
3817
|
name: "Sign Up",
|
3807
3818
|
beforeEnter: [
|
3808
|
-
|
3819
|
+
W,
|
3809
3820
|
se
|
3810
3821
|
],
|
3811
3822
|
meta: {
|
@@ -3819,7 +3830,7 @@ const gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3819
3830
|
path: "enter-code",
|
3820
3831
|
name: "Enter Code",
|
3821
3832
|
beforeEnter: [
|
3822
|
-
|
3833
|
+
W,
|
3823
3834
|
Fe
|
3824
3835
|
],
|
3825
3836
|
meta: {
|
@@ -3833,7 +3844,7 @@ const gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3833
3844
|
path: "enter-password",
|
3834
3845
|
name: "Enter Password",
|
3835
3846
|
beforeEnter: [
|
3836
|
-
|
3847
|
+
W,
|
3837
3848
|
Fe
|
3838
3849
|
],
|
3839
3850
|
meta: {
|
@@ -3864,9 +3875,9 @@ export {
|
|
3864
3875
|
It as ResetPassword,
|
3865
3876
|
Et as SignIn,
|
3866
3877
|
Nt as SignUp,
|
3867
|
-
|
3868
|
-
|
3869
|
-
|
3870
|
-
|
3871
|
-
|
3878
|
+
Ii as SliderFeatures,
|
3879
|
+
Ei as authRoutes,
|
3880
|
+
Fi as authStore,
|
3881
|
+
Ni as invitesStore,
|
3882
|
+
Di as twofaStore
|
3872
3883
|
};
|