@ozdao/prometheus-framework 0.1.79 → 0.1.81

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  2. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +15 -17
  3. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  4. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +24 -26
  5. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  6. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +28 -30
  7. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  8. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +78 -79
  9. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +30 -32
  11. package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.cjs +1 -0
  12. package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.js +20 -0
  13. package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.cjs +1 -0
  14. package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.js +26 -0
  15. package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.cjs +1 -0
  16. package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.js +30 -0
  17. package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.cjs +1 -1
  18. package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.js +1 -1
  19. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.cjs +1 -0
  20. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.js +32 -0
  21. package/dist/prometheus-framework/src/modules/auth/router/auth.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/auth/router/auth.js +114 -111
  23. package/dist/style.css +1 -1
  24. package/package.json +1 -1
  25. package/src/modules/auth/components/pages/EnterCode.vue +4 -4
  26. package/src/modules/auth/components/pages/EnterPassword.vue +3 -4
  27. package/src/modules/auth/components/pages/ResetPassword.vue +4 -5
  28. package/src/modules/auth/components/pages/SignIn.vue +12 -10
  29. package/src/modules/auth/components/pages/SignUp.vue +4 -5
  30. package/src/modules/auth/localization/EnterCode.json +13 -11
  31. package/src/modules/auth/localization/EnterPassword.json +19 -17
  32. package/src/modules/auth/localization/ResetPassword.json +23 -21
  33. package/src/modules/auth/localization/SignIn.json +1 -1
  34. package/src/modules/auth/localization/SignUp.json +25 -23
  35. package/src/modules/auth/router/auth.js +95 -86
  36. package/src/modules/middlewares/client/inputs.validation.js +1 -0
@@ -1,95 +1,94 @@
1
- import { ref as m, inject as f, onMounted as S, resolveComponent as U, openBlock as C, createElementBlock as k, createElementVNode as l, createTextVNode as p, toDisplayString as r, unref as o, createVNode as i, withCtx as d, Transition as v, withDirectives as g, vShow as w } from "vue";
2
- import D from "../../../../components/Tab/Tab.vue2.js";
3
- import b from "../../../../components/Field/Field.vue2.js";
4
- import L from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import R from "../../../../components/Button/Button.vue2.js";
6
- import { useRoute as T, useRouter as j } from "vue-router";
7
- import { useI18n as A } from "vue-i18n";
8
- import N from "../../localization/SignIn.json.js";
9
- import { state as t, actions as F } from "../../store/auth.js";
10
- import { validateInputs as P, validatePhone as O, validateEmail as q } from "../../../middlewares/client/inputs.validation.js";
1
+ import { ref as p, onMounted as U, resolveComponent as k, openBlock as C, createElementBlock as E, createElementVNode as l, createTextVNode as c, toDisplayString as d, unref as o, createVNode as i, withCtx as u, Transition as f, withDirectives as v, vShow as g } from "vue";
2
+ import I from "../../../../components/Tab/Tab.vue2.js";
3
+ import w from "../../../../components/Field/Field.vue2.js";
4
+ import D from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
+ import j from "../../../../components/Button/Button.vue2.js";
6
+ import { useRoute as F, useRouter as N } from "vue-router";
7
+ import { useI18n as O } from "vue-i18n";
8
+ import T from "../../localization/SignIn.json.js";
9
+ import { state as s, actions as q } from "../../store/auth.js";
10
+ import { validateInputs as b, validatePhone as A, validateEmail as B } from "../../../middlewares/client/inputs.validation.js";
11
11
  import "./SignIn.vue2.js";
12
- const B = { class: "" }, $ = ["src"], M = { class: "mn-medium" }, z = /* @__PURE__ */ l("br", null, null, -1), G = { class: "t-semi" }, H = { class: "mn-big" }, J = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, K = { class: "" }, Q = { class: "mn-thin radius-small" }, W = { class: "mn-thin radius-small o-hidden" }, X = { class: "w-100 mn-big" }, ue = {
12
+ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE__ */ l("br", null, null, -1), z = { class: "t-semi" }, G = { class: "mn-big" }, H = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, J = { class: "pos-relative" }, K = { class: "mn-thin radius-small" }, Q = { class: "mn-thin radius-small o-hidden" }, W = { class: "w-100 mn-big" }, de = {
13
13
  __name: "SignIn",
14
- setup(Y) {
15
- const h = m(null), y = m(null), _ = m(null);
16
- T();
17
- const E = j(), { t: s } = A(N), n = m("phone");
18
- f("APPLE_CLIENTID"), f("APPLE_REDIRECT_URL");
19
- const V = (c) => new Promise((a, u) => {
14
+ setup(X) {
15
+ const h = p(null), y = p(null), _ = p(null);
16
+ F();
17
+ const V = N(), { t: a } = O(T), n = p("phone"), x = (r) => new Promise((t, m) => {
20
18
  const e = document.createElement("script");
21
- e.type = "text/javascript", e.src = c, e.onload = a, e.onerror = u, document.head.appendChild(e);
19
+ e.type = "text/javascript", e.src = r, e.onload = t, e.onerror = m, document.head.appendChild(e);
22
20
  });
23
- S(async () => {
24
- await V("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js");
21
+ U(async () => {
22
+ await x("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js");
25
23
  });
26
- async function x() {
24
+ async function P() {
27
25
  try {
28
- n.value === "phone" && await P(
26
+ n.value === "phone" && await b(
29
27
  h,
30
- O,
31
- t.user.phone,
28
+ A,
29
+ s.user.phone,
32
30
  "Некорректный телефон"
33
- ), n.value === "email" && await P(
31
+ ), n.value === "email" && await b(
34
32
  _,
35
- q,
36
- t.user.email,
33
+ B,
34
+ s.user.email,
37
35
  "Некорректный email"
38
36
  );
39
37
  } catch {
40
38
  throw new Error();
41
39
  }
42
- t.user.phone = t.user.phone.number, await F.login(t.user, n.value);
40
+ const r = { ...s.user };
41
+ r.phone = s.user.phone.number, await q.login(r, n.value);
43
42
  }
44
- function I() {
45
- E.push({
43
+ function S() {
44
+ V.push({
46
45
  name: "User Profile",
47
46
  params: {
48
- _id: t.user._id
47
+ _id: s.user._id
49
48
  },
50
49
  query: { afterAuth: "true" }
51
50
  });
52
51
  }
53
- return (c, a) => {
54
- const u = U("router-link");
55
- return C(), k("section", B, [
52
+ return (r, t) => {
53
+ const m = k("router-link");
54
+ return C(), E("section", R, [
56
55
  l("img", {
57
56
  src: "/logo/logo_square.svg",
58
- class: "i-extra mn-small"
57
+ class: "i-extra radius-small mn-small"
59
58
  }, null, 8, $),
60
- l("h3", M, [
61
- p(r(o(s)("title")) + " ", 1),
62
- z,
63
- l("span", G, r(o(s)("subtitle")), 1)
59
+ l("h3", L, [
60
+ c(d(o(a)("title")) + " ", 1),
61
+ M,
62
+ l("span", z, d(o(a)("subtitle")), 1)
64
63
  ]),
65
- l("p", H, [
66
- i(u, {
64
+ l("p", G, [
65
+ i(m, {
67
66
  to: { name: "Sign Up" },
68
67
  class: "underline t-second"
69
68
  }, {
70
- default: d(() => [
71
- p(r(o(s)("signup")), 1)
69
+ default: u(() => [
70
+ c(d(o(a)("signup")), 1)
72
71
  ]),
73
72
  _: 1
74
73
  })
75
74
  ]),
76
- l("div", J, [
77
- i(D, {
75
+ l("div", H, [
76
+ i(I, {
78
77
  selected: n.value,
79
- "onUpdate:selected": a[0] || (a[0] = (e) => n.value = e),
78
+ "onUpdate:selected": t[0] || (t[0] = (e) => n.value = e),
80
79
  tabs: [
81
- { name: o(s)("phone"), value: "phone" },
82
- { name: o(s)("email"), value: "email" }
80
+ { name: o(a)("phone"), value: "phone" },
81
+ { name: o(a)("email"), value: "email" }
83
82
  ]
84
83
  }, null, 8, ["selected", "tabs"])
85
84
  ]),
86
- l("div", K, [
87
- i(v, { name: "slide-fade" }, {
88
- default: d(() => [
89
- g(l("div", Q, [
90
- i(L, {
91
- modelValue: t.user.phone,
92
- "onUpdate:modelValue": a[1] || (a[1] = (e) => t.user.phone = e),
85
+ l("div", J, [
86
+ i(f, { name: "slide-fade" }, {
87
+ default: u(() => [
88
+ v(l("div", K, [
89
+ i(D, {
90
+ modelValue: s.user.phone,
91
+ "onUpdate:modelValue": t[1] || (t[1] = (e) => s.user.phone = e),
93
92
  dropdownOptions: {
94
93
  showDialCodeInSelection: !0,
95
94
  showFlags: !0,
@@ -97,58 +96,58 @@ const B = { class: "" }, $ = ["src"], M = { class: "mn-medium" }, z = /* @__PURE
97
96
  },
98
97
  validation: h.value,
99
98
  mode: "national",
100
- inputOptions: { placeholder: o(s)("phonePlaceholder") },
99
+ inputOptions: { placeholder: o(a)("phonePlaceholder") },
101
100
  class: "bg-grey pd-small radius-small mn-thin"
102
101
  }, null, 8, ["modelValue", "validation", "inputOptions"])
103
102
  ], 512), [
104
- [w, n.value === "phone"]
103
+ [g, n.value === "phone"]
105
104
  ])
106
105
  ]),
107
106
  _: 1
108
107
  }),
109
- i(v, { name: "slide-fade" }, {
110
- default: d(() => [
111
- g(l("div", W, [
112
- i(b, {
113
- field: t.user.email,
114
- "onUpdate:field": a[2] || (a[2] = (e) => t.user.email = e),
115
- placeholder: o(s)("emailPlaceholder"),
108
+ i(f, { name: "slide-fade" }, {
109
+ default: u(() => [
110
+ v(l("div", Q, [
111
+ i(w, {
112
+ field: s.user.email,
113
+ "onUpdate:field": t[2] || (t[2] = (e) => s.user.email = e),
114
+ placeholder: o(a)("emailPlaceholder"),
116
115
  validation: _.value,
117
116
  class: "bg-grey pd-medium radius-small"
118
117
  }, null, 8, ["field", "placeholder", "validation"])
119
118
  ], 512), [
120
- [w, n.value === "email"]
119
+ [g, n.value === "email"]
121
120
  ])
122
121
  ]),
123
122
  _: 1
124
123
  })
125
124
  ]),
126
- i(b, {
127
- field: t.user.password,
128
- "onUpdate:field": a[3] || (a[3] = (e) => t.user.password = e),
125
+ i(w, {
126
+ field: s.user.password,
127
+ "onUpdate:field": t[3] || (t[3] = (e) => s.user.password = e),
129
128
  type: "password",
130
129
  validation: y.value,
131
- placeholder: o(s)("passwordPlaceholder"),
130
+ placeholder: o(a)("passwordPlaceholder"),
132
131
  class: "bg-grey pd-medium radius-small mn-semi"
133
132
  }, null, 8, ["field", "validation", "placeholder"]),
134
- l("div", X, [
135
- i(u, {
133
+ l("div", W, [
134
+ i(m, {
136
135
  to: "/auth/reset-password",
137
136
  class: "underline d-block t-blue"
138
137
  }, {
139
- default: d(() => [
140
- p(r(o(s)("forgotPassword")), 1)
138
+ default: u(() => [
139
+ c(d(o(a)("forgotPassword")), 1)
141
140
  ]),
142
141
  _: 1
143
142
  })
144
143
  ]),
145
- i(R, {
146
- submit: x,
147
- callback: I,
144
+ i(j, {
145
+ submit: P,
146
+ callback: S,
148
147
  class: "mn-thin"
149
148
  }, {
150
- default: d(() => [
151
- p(r(o(s)("signin")), 1)
149
+ default: u(() => [
150
+ c(d(o(a)("signin")), 1)
152
151
  ]),
153
152
  _: 1
154
153
  })
@@ -157,5 +156,5 @@ const B = { class: "" }, $ = ["src"], M = { class: "mn-medium" }, z = /* @__PURE
157
156
  }
158
157
  };
159
158
  export {
160
- ue as default
159
+ de as default
161
160
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Tab/Tab.vue2.cjs"),f=require("../../../../components/Field/Field.vue2.cjs"),_=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../components/Button/Button.vue2.cjs"),d=require("vue-router"),w=require("vue-i18n"),l=require("../../store/auth.cjs"),g=require("../../store/twofa.cjs"),s=require("../../../middlewares/client/inputs.validation.cjs");require("./SignUp.vue2.cjs");const N={class:"t-left pd-medium"},b={class:"mn-small"},E={class:"mn-small t-transp"},S={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},y={class:""},q={class:"mn-semi radius-small"},C={class:"mn-small t-transp"},D={class:"mn-semi radius-small o-hidden"},x={class:"mn-small t-transp"},T={class:"w-100"},k={__name:"SignUp",setup(I){const{t}=w.useI18n({inheritLocale:!0,useScope:"local"}),i=e.ref(null),r=e.ref(null);d.useRoute();const c=d.useRouter(),a=e.ref("phone");async function m(){try{a.value==="phone"&&await s.validateInputs(i,s.validatePhone,l.state.user.phone,"Некорректный телефон"),a.value==="email"&&await s.validateInputs(r,s.validateEmail,l.state.user.email,"Некорректный email")}catch{throw new Error}try{await g.sendCode(l.state.user,"signup",a.value)}catch{throw new Error}}function p(){c.push({name:"Enter Code"})}return(u,n)=>{const h=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",N,[e.createElementVNode("h3",b,e.toDisplayString(e.unref(t)("title")),1),e.createElementVNode("p",E,e.toDisplayString(e.unref(t)("description")),1),e.createElementVNode("div",S,[e.createVNode(v.default,{selected:a.value,"onUpdate:selected":n[0]||(n[0]=o=>a.value=o),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",y,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",q,[e.createElementVNode("p",C,e.toDisplayString(e.unref(t)("smsNotice")),1),e.createVNode(_.default,{modelValue:l.state.user.phone,"onUpdate:modelValue":n[1]||(n[1]=o=>l.state.user.phone=o),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:i.value,mode:"national",inputOptions:{placeholder:e.unref(t)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,a.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",D,[e.createElementVNode("p",x,e.toDisplayString(e.unref(t)("emailNotice")),1),e.createVNode(f.default,{field:l.state.user.email,"onUpdate:field":n[2]||(n[2]=o=>l.state.user.email=o),placeholder:e.unref(t)("emailPlaceholder"),validation:r.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,a.value==="email"]])]),_:1})]),e.createVNode(V.default,{submit:m,callback:p,class:"mn-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1}),e.createElementVNode("div",T,[e.createVNode(h,{to:"/auth/signin",class:"underline mn-medium d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("haveAccount")),1)]),_:1})])])}}};exports.default=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Tab/Tab.vue2.cjs"),f=require("../../../../components/Field/Field.vue2.cjs"),_=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../components/Button/Button.vue2.cjs"),u=require("vue-router"),g=require("vue-i18n"),w=require("../../localization/SignUp.json.cjs"),n=require("../../store/auth.cjs"),N=require("../../store/twofa.cjs"),s=require("../../../middlewares/client/inputs.validation.cjs");require("./SignUp.vue2.cjs");const b={class:"t-left pd-medium"},E={class:"mn-small"},S={class:"mn-small t-transp"},y={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},q={class:"pos-relative"},C={class:"mn-semi radius-small"},D={class:"mn-small t-transp"},x={class:"mn-semi radius-small o-hidden"},T={class:"mn-small t-transp"},k={class:"w-100"},I={__name:"SignUp",setup(P){const{t}=g.useI18n(w.default),i=e.ref(null),r=e.ref(null);u.useRoute();const c=u.useRouter(),a=e.ref("phone");async function m(){try{a.value==="phone"&&await s.validateInputs(i,s.validatePhone,n.state.user.phone,"Некорректный телефон"),a.value==="email"&&await s.validateInputs(r,s.validateEmail,n.state.user.email,"Некорректный email")}catch{throw new Error}try{await N.sendCode(n.state.user,"signup",a.value)}catch{throw new Error}}function p(){c.push({name:"Enter Code"})}return(d,l)=>{const h=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",b,[e.createElementVNode("h3",E,e.toDisplayString(e.unref(t)("title")),1),e.createElementVNode("p",S,e.toDisplayString(e.unref(t)("description")),1),e.createElementVNode("div",y,[e.createVNode(v.default,{selected:a.value,"onUpdate:selected":l[0]||(l[0]=o=>a.value=o),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",q,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",C,[e.createElementVNode("p",D,e.toDisplayString(e.unref(t)("smsNotice")),1),e.createVNode(_.default,{modelValue:n.state.user.phone,"onUpdate:modelValue":l[1]||(l[1]=o=>n.state.user.phone=o),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:i.value,mode:"national",inputOptions:{placeholder:e.unref(t)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,a.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",x,[e.createElementVNode("p",T,e.toDisplayString(e.unref(t)("emailNotice")),1),e.createVNode(f.default,{field:n.state.user.email,"onUpdate:field":l[2]||(l[2]=o=>n.state.user.email=o),placeholder:e.unref(t)("emailPlaceholder"),validation:r.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,a.value==="email"]])]),_:1})]),e.createVNode(V.default,{submit:m,callback:p,class:"mn-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1}),e.createElementVNode("div",k,[e.createVNode(h,{to:"/auth/signin",class:"underline mn-medium d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("haveAccount")),1)]),_:1})])])}}};exports.default=I;
@@ -1,33 +1,31 @@
1
- import { ref as m, resolveComponent as C, openBlock as k, createElementBlock as E, createElementVNode as o, toDisplayString as n, unref as t, createVNode as a, Transition as h, withCtx as d, withDirectives as _, vShow as f, createTextVNode as v } from "vue";
2
- import S from "../../../../components/Tab/Tab.vue2.js";
1
+ import { ref as d, resolveComponent as C, openBlock as k, createElementBlock as E, createElementVNode as o, toDisplayString as n, unref as t, createVNode as a, Transition as h, withCtx as m, withDirectives as _, vShow as f, createTextVNode as v } from "vue";
2
+ import x from "../../../../components/Tab/Tab.vue2.js";
3
3
  import N from "../../../../components/Field/Field.vue2.js";
4
- import x from "../../../../components/FieldPhone/FieldPhone.vue.js";
4
+ import S from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
5
  import D from "../../../../components/Button/Button.vue2.js";
6
6
  import { useRoute as I, useRouter as P } from "vue-router";
7
7
  import { useI18n as U } from "vue-i18n";
8
+ import F from "../../localization/SignUp.json.js";
8
9
  import { state as s } from "../../store/auth.js";
9
- import { sendCode as F } from "../../store/twofa.js";
10
- import { validateInputs as w, validatePhone as O, validateEmail as T } from "../../../middlewares/client/inputs.validation.js";
10
+ import { sendCode as O } from "../../store/twofa.js";
11
+ import { validateInputs as w, validatePhone as T, validateEmail as A } from "../../../middlewares/client/inputs.validation.js";
11
12
  import "./SignUp.vue2.js";
12
- const A = { class: "t-left pd-medium" }, B = { class: "mn-small" }, L = { class: "mn-small t-transp" }, R = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, $ = { class: "" }, j = { class: "mn-semi radius-small" }, q = { class: "mn-small t-transp" }, z = { class: "mn-semi radius-small o-hidden" }, G = { class: "mn-small t-transp" }, H = { class: "w-100" }, ae = {
13
+ const B = { class: "t-left pd-medium" }, R = { class: "mn-small" }, $ = { class: "mn-small t-transp" }, L = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, j = { class: "pos-relative" }, q = { class: "mn-semi radius-small" }, z = { class: "mn-small t-transp" }, G = { class: "mn-semi radius-small o-hidden" }, H = { class: "mn-small t-transp" }, J = { class: "w-100" }, ie = {
13
14
  __name: "SignUp",
14
- setup(J) {
15
- const { t: e } = U({
16
- inheritLocale: !0,
17
- useScope: "local"
18
- }), u = m(null), c = m(null);
15
+ setup(K) {
16
+ const { t: e } = U(F), u = d(null), c = d(null);
19
17
  I();
20
- const b = P(), l = m("phone");
18
+ const b = P(), l = d("phone");
21
19
  async function g() {
22
20
  try {
23
21
  l.value === "phone" && await w(
24
22
  u,
25
- O,
23
+ T,
26
24
  s.user.phone,
27
25
  "Некорректный телефон"
28
26
  ), l.value === "email" && await w(
29
27
  c,
30
- T,
28
+ A,
31
29
  s.user.email,
32
30
  "Некорректный email"
33
31
  );
@@ -35,7 +33,7 @@ const A = { class: "t-left pd-medium" }, B = { class: "mn-small" }, L = { class:
35
33
  throw new Error();
36
34
  }
37
35
  try {
38
- await F(s.user, "signup", l.value);
36
+ await O(s.user, "signup", l.value);
39
37
  } catch {
40
38
  throw new Error();
41
39
  }
@@ -45,11 +43,11 @@ const A = { class: "t-left pd-medium" }, B = { class: "mn-small" }, L = { class:
45
43
  }
46
44
  return (p, i) => {
47
45
  const y = C("router-link");
48
- return k(), E("section", A, [
49
- o("h3", B, n(t(e)("title")), 1),
50
- o("p", L, n(t(e)("description")), 1),
51
- o("div", R, [
52
- a(S, {
46
+ return k(), E("section", B, [
47
+ o("h3", R, n(t(e)("title")), 1),
48
+ o("p", $, n(t(e)("description")), 1),
49
+ o("div", L, [
50
+ a(x, {
53
51
  selected: l.value,
54
52
  "onUpdate:selected": i[0] || (i[0] = (r) => l.value = r),
55
53
  tabs: [
@@ -58,12 +56,12 @@ const A = { class: "t-left pd-medium" }, B = { class: "mn-small" }, L = { class:
58
56
  ]
59
57
  }, null, 8, ["selected", "tabs"])
60
58
  ]),
61
- o("div", $, [
59
+ o("div", j, [
62
60
  a(h, { name: "slide-fade" }, {
63
- default: d(() => [
64
- _(o("div", j, [
65
- o("p", q, n(t(e)("smsNotice")), 1),
66
- a(x, {
61
+ default: m(() => [
62
+ _(o("div", q, [
63
+ o("p", z, n(t(e)("smsNotice")), 1),
64
+ a(S, {
67
65
  modelValue: s.user.phone,
68
66
  "onUpdate:modelValue": i[1] || (i[1] = (r) => s.user.phone = r),
69
67
  dropdownOptions: {
@@ -83,9 +81,9 @@ const A = { class: "t-left pd-medium" }, B = { class: "mn-small" }, L = { class:
83
81
  _: 1
84
82
  }),
85
83
  a(h, { name: "slide-fade" }, {
86
- default: d(() => [
87
- _(o("div", z, [
88
- o("p", G, n(t(e)("emailNotice")), 1),
84
+ default: m(() => [
85
+ _(o("div", G, [
86
+ o("p", H, n(t(e)("emailNotice")), 1),
89
87
  a(N, {
90
88
  field: s.user.email,
91
89
  "onUpdate:field": i[2] || (i[2] = (r) => s.user.email = r),
@@ -105,17 +103,17 @@ const A = { class: "t-left pd-medium" }, B = { class: "mn-small" }, L = { class:
105
103
  callback: V,
106
104
  class: "mn-big"
107
105
  }, {
108
- default: d(() => [
106
+ default: m(() => [
109
107
  v(n(t(e)("sendCode")), 1)
110
108
  ]),
111
109
  _: 1
112
110
  }),
113
- o("div", H, [
111
+ o("div", J, [
114
112
  a(y, {
115
113
  to: "/auth/signin",
116
114
  class: "underline mn-medium d-block t-blue"
117
115
  }, {
118
- default: d(() => [
116
+ default: m(() => [
119
117
  v(n(t(e)("haveAccount")), 1)
120
118
  ]),
121
119
  _: 1
@@ -126,5 +124,5 @@ const A = { class: "t-left pd-medium" }, B = { class: "mn-small" }, L = { class:
126
124
  }
127
125
  };
128
126
  export {
129
- ae as default
127
+ ie as default
130
128
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={en:{verifyNumberTitle:"Verify Number",instructions:"We have sent a registration code to your phone number. Please enter it in the field below:",resendCode:"Send the code again",secondsResend:"seconds to the possibility of sending the code again."},ru:{verifyNumberTitle:"Подтвердите номер",instructions:"Мы отправили код регистрации на ваш номер телефона. Введите его в поле ниже:",resendCode:"Отправить код еще раз",secondsResend:"секунд до возможности отправить код еще раз."}},s={messages:e};exports.default=s;exports.messages=e;
@@ -0,0 +1,20 @@
1
+ const e = {
2
+ en: {
3
+ verifyNumberTitle: "Verify Number",
4
+ instructions: "We have sent a registration code to your phone number. Please enter it in the field below:",
5
+ resendCode: "Send the code again",
6
+ secondsResend: "seconds to the possibility of sending the code again."
7
+ },
8
+ ru: {
9
+ verifyNumberTitle: "Подтвердите номер",
10
+ instructions: "Мы отправили код регистрации на ваш номер телефона. Введите его в поле ниже:",
11
+ resendCode: "Отправить код еще раз",
12
+ secondsResend: "секунд до возможности отправить код еще раз."
13
+ }
14
+ }, s = {
15
+ messages: e
16
+ };
17
+ export {
18
+ s as default,
19
+ e as messages
20
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={en:{almostDone:"Almost there!",newPasswordPrompt:"Please, set a new password.",registrationPasswordPrompt:"Please, set your password to complete the registration.",passwordPlaceholder:"Password",repeatPasswordPlaceholder:"Repeat Password",changePasswordBtn:"Change Password",registerBtn:"Register"},ru:{almostDone:"Почти все!",newPasswordPrompt:"Пожалуйста, укажите новый пароль.",registrationPasswordPrompt:"Пожалуйста, укажите пароль, на этом регистрация будет закончена.",passwordPlaceholder:"Пароль",repeatPasswordPlaceholder:"Повторите пароль",changePasswordBtn:"Поменять пароль",registerBtn:"Зарегистрироваться"}},s={messages:e};exports.default=s;exports.messages=e;
@@ -0,0 +1,26 @@
1
+ const s = {
2
+ en: {
3
+ almostDone: "Almost there!",
4
+ newPasswordPrompt: "Please, set a new password.",
5
+ registrationPasswordPrompt: "Please, set your password to complete the registration.",
6
+ passwordPlaceholder: "Password",
7
+ repeatPasswordPlaceholder: "Repeat Password",
8
+ changePasswordBtn: "Change Password",
9
+ registerBtn: "Register"
10
+ },
11
+ ru: {
12
+ almostDone: "Почти все!",
13
+ newPasswordPrompt: "Пожалуйста, укажите новый пароль.",
14
+ registrationPasswordPrompt: "Пожалуйста, укажите пароль, на этом регистрация будет закончена.",
15
+ passwordPlaceholder: "Пароль",
16
+ repeatPasswordPlaceholder: "Повторите пароль",
17
+ changePasswordBtn: "Поменять пароль",
18
+ registerBtn: "Зарегистрироваться"
19
+ }
20
+ }, e = {
21
+ messages: s
22
+ };
23
+ export {
24
+ e as default,
25
+ s as messages
26
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={en:{forgotPasswordTitle:"Forgot Password?",instructions:"To reset your password, specify the phone or email used during registration.",smsInfo:"We will send you an SMS with a confirmation code to reset your password, which you will need to enter in the next step.",emailInfo:"We will send you an email with a confirmation code to reset your password, which you will need to enter in the next step.",phone:"Phone",email:"Email",phonePlaceholder:"Enter your phone",emailPlaceholder:"Enter your email",sendCode:"Send code"},ru:{forgotPasswordTitle:"Забыли пароль?",instructions:"Чтобы сбросить пароль, укажите телефон или email, использованные при регистрации.",smsInfo:"Мы вышлем вам SMS с кодом подтверждения для сброса пароля, который вы должны будете ввести в следующем шаге.",emailInfo:"Мы отправим вам электронное письмо с кодом подтверждения для сброса пароля, который вы должны будете ввести в следующем шаге.",phone:"Телефон",email:"Email",phonePlaceholder:"Введите ваш телефон",emailPlaceholder:"Введите ваш email",sendCode:"Отправить код"}},o={messages:e};exports.default=o;exports.messages=e;
@@ -0,0 +1,30 @@
1
+ const e = {
2
+ en: {
3
+ forgotPasswordTitle: "Forgot Password?",
4
+ instructions: "To reset your password, specify the phone or email used during registration.",
5
+ smsInfo: "We will send you an SMS with a confirmation code to reset your password, which you will need to enter in the next step.",
6
+ emailInfo: "We will send you an email with a confirmation code to reset your password, which you will need to enter in the next step.",
7
+ phone: "Phone",
8
+ email: "Email",
9
+ phonePlaceholder: "Enter your phone",
10
+ emailPlaceholder: "Enter your email",
11
+ sendCode: "Send code"
12
+ },
13
+ ru: {
14
+ forgotPasswordTitle: "Забыли пароль?",
15
+ instructions: "Чтобы сбросить пароль, укажите телефон или email, использованные при регистрации.",
16
+ smsInfo: "Мы вышлем вам SMS с кодом подтверждения для сброса пароля, который вы должны будете ввести в следующем шаге.",
17
+ emailInfo: "Мы отправим вам электронное письмо с кодом подтверждения для сброса пароля, который вы должны будете ввести в следующем шаге.",
18
+ phone: "Телефон",
19
+ email: "Email",
20
+ phonePlaceholder: "Введите ваш телефон",
21
+ emailPlaceholder: "Введите ваш email",
22
+ sendCode: "Отправить код"
23
+ }
24
+ }, o = {
25
+ messages: e
26
+ };
27
+ export {
28
+ o as default,
29
+ e as messages
30
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={en:{title:"Welcome to Weeder",subtitle:"Sign In to Continue",signup:"Don't have an account?",phone:"Phone",email:"Email",phonePlaceholder:"Enter your phone",emailPlaceholder:"Enter your email",haveAccount:"Don't have an account? Sign Up",passwordPlaceholder:"Enter your password",forgotPassword:"Forgot Password?",signin:"Sign In",signin_apple:"Sign In with Apple",soon:"SOON"},ru:{title:"Приветствуем вас,",subtitle:"Войдите для продолжения",signup:"Нет аккаунта?",phone:"Телефон",email:"Email",phonePlaceholder:"Введите ваш телефон",emailPlaceholder:"Введите ваш email",haveAccount:"Нет аккаунта? Зарегистрироваться",passwordPlaceholder:"Введите ваш пароль",forgotPassword:"Забыли пароль?",signin:"Войти",signin_apple:"Войти через Apple",soon:"СКОРО"}},o={messages:e};exports.default=o;exports.messages=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={en:{title:"Welcome to The Commune",subtitle:"Sign In to Continue",signup:"Don't have an account?",phone:"Phone",email:"Email",phonePlaceholder:"Enter your phone",emailPlaceholder:"Enter your email",haveAccount:"Don't have an account? Sign Up",passwordPlaceholder:"Enter your password",forgotPassword:"Forgot Password?",signin:"Sign In",signin_apple:"Sign In with Apple",soon:"SOON"},ru:{title:"Приветствуем вас,",subtitle:"Войдите для продолжения",signup:"Нет аккаунта?",phone:"Телефон",email:"Email",phonePlaceholder:"Введите ваш телефон",emailPlaceholder:"Введите ваш email",haveAccount:"Нет аккаунта? Зарегистрироваться",passwordPlaceholder:"Введите ваш пароль",forgotPassword:"Забыли пароль?",signin:"Войти",signin_apple:"Войти через Apple",soon:"СКОРО"}},o={messages:e};exports.default=o;exports.messages=e;
@@ -1,6 +1,6 @@
1
1
  const e = {
2
2
  en: {
3
- title: "Welcome to Weeder",
3
+ title: "Welcome to The Commune",
4
4
  subtitle: "Sign In to Continue",
5
5
  signup: "Don't have an account?",
6
6
  phone: "Phone",
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={en:{title:"Sign Up to The Commune",description:"Choose a convenient way to register via phone or email:",phone:"Phone",email:"Email",phonePlaceholder:"Enter your phone",emailPlaceholder:"Enter your email",emailNotice:"We will send you an email with a confirmation code that you will need to enter in the next step.",smsNotice:"We will send you an SMS with a confirmation code that you will need to enter in the next step.",sendCode:"Send Code",haveAccount:"Already have an account?"},ru:{title:"Новая учетная запись",description:"Выберите удобный способ регистрации через телефон или email:",phone:"Телефон",email:"Email",phonePlaceholder:"Введите ваш телефон",emailPlaceholder:"Введите ваш email",emailNotice:"Мы отправим вам электронное письмо с кодом подтверждения, который вы должны будете ввести в следующем шаге.",smsNotice:"Мы вышлем вам SMS с кодом подтверждения, который вы должны будете ввести в следующем шаге.",sendCode:"Отправить код",haveAccount:"У вас уже есть аккаунт?"}},o={messages:e};exports.default=o;exports.messages=e;
@@ -0,0 +1,32 @@
1
+ const e = {
2
+ en: {
3
+ title: "Sign Up to The Commune",
4
+ description: "Choose a convenient way to register via phone or email:",
5
+ phone: "Phone",
6
+ email: "Email",
7
+ phonePlaceholder: "Enter your phone",
8
+ emailPlaceholder: "Enter your email",
9
+ emailNotice: "We will send you an email with a confirmation code that you will need to enter in the next step.",
10
+ smsNotice: "We will send you an SMS with a confirmation code that you will need to enter in the next step.",
11
+ sendCode: "Send Code",
12
+ haveAccount: "Already have an account?"
13
+ },
14
+ ru: {
15
+ title: "Новая учетная запись",
16
+ description: "Выберите удобный способ регистрации через телефон или email:",
17
+ phone: "Телефон",
18
+ email: "Email",
19
+ phonePlaceholder: "Введите ваш телефон",
20
+ emailPlaceholder: "Введите ваш email",
21
+ emailNotice: "Мы отправим вам электронное письмо с кодом подтверждения, который вы должны будете ввести в следующем шаге.",
22
+ smsNotice: "Мы вышлем вам SMS с кодом подтверждения, который вы должны будете ввести в следующем шаге.",
23
+ sendCode: "Отправить код",
24
+ haveAccount: "У вас уже есть аккаунт?"
25
+ }
26
+ }, o = {
27
+ messages: e
28
+ };
29
+ export {
30
+ o as default,
31
+ e as messages
32
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../components/layouts/Auth.vue.cjs"),e=require("../../middlewares/client/states.validation.cjs"),t=require("../../middlewares/client/auth.validation.cjs"),n=[{path:"auth",name:"Authentication",meta:{title:{en:"Sign In",ru:"Вход"}},component:r.default,children:[{path:"signin",name:"Sign In",beforeEnter:[t.requiresNoAuth,e.resetUser],meta:{title:{en:"Sign In",ru:"Вход"}},component:()=>Promise.resolve().then(()=>require("../components/pages/SignIn.vue.cjs"))},{path:"reset-password",name:"Reset Password",beforeEnter:[t.requiresNoAuth,e.resetUser],meta:{title:{en:"Reset Password",ru:"Сбросить Пароль"}},component:()=>Promise.resolve().then(()=>require("../components/pages/ResetPassword.vue.cjs"))},{path:"signup",name:"Sign Up",beforeEnter:[t.requiresNoAuth,e.resetUser],meta:{title:{en:"Sign Up",ru:"Регистрация"}},component:()=>Promise.resolve().then(()=>require("../components/pages/SignUp.vue.cjs"))},{path:"enter-code",name:"Enter Code",beforeEnter:[t.requiresNoAuth,e.checkUser],meta:{title:{en:"Enter Code",ru:"Введите Код"}},component:()=>Promise.resolve().then(()=>require("../components/pages/EnterCode.vue.cjs"))},{path:"enter-password",name:"Enter Password",beforeEnter:[t.requiresNoAuth,e.checkUser],meta:{title:{en:"Enter Password",ru:"Введите Пароль"}},component:()=>Promise.resolve().then(()=>require("../components/pages/EnterPassword.vue.cjs"))},{path:"invite",name:"Invite",meta:{title:{en:"Invite",ru:"Приглашение"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Invite.vue.cjs"))}]}];exports.default=n;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../components/layouts/Auth.vue.cjs"),e=require("../../middlewares/client/states.validation.cjs"),t=require("../../middlewares/client/auth.validation.cjs");function o(r){return[{path:"auth",name:"Authentication",meta:{title:{en:"Аутентификация",ru:"Authentication"},options:r},component:n.default,children:[{path:"signin",name:"Sign In",beforeEnter:[t.requiresNoAuth,e.resetUser],meta:{title:{en:"Sign In",ru:"Вход"}},component:()=>Promise.resolve().then(()=>require("../components/pages/SignIn.vue.cjs"))},{path:"reset-password",name:"Reset Password",beforeEnter:[t.requiresNoAuth,e.resetUser],meta:{title:{en:"Reset Password",ru:"Сбросить Пароль"}},component:()=>Promise.resolve().then(()=>require("../components/pages/ResetPassword.vue.cjs"))},{path:"signup",name:"Sign Up",beforeEnter:[t.requiresNoAuth,e.resetUser],meta:{title:{en:"Sign Up",ru:"Регистрация"}},component:()=>Promise.resolve().then(()=>require("../components/pages/SignUp.vue.cjs"))},{path:"enter-code",name:"Enter Code",beforeEnter:[t.requiresNoAuth,e.checkUser],meta:{title:{en:"Enter Code",ru:"Введите Код"}},component:()=>Promise.resolve().then(()=>require("../components/pages/EnterCode.vue.cjs"))},{path:"enter-password",name:"Enter Password",beforeEnter:[t.requiresNoAuth,e.checkUser],meta:{title:{en:"Enter Password",ru:"Введите Пароль"}},component:()=>Promise.resolve().then(()=>require("../components/pages/EnterPassword.vue.cjs"))},{path:"invite",name:"Invite",meta:{title:{en:"Invite",ru:"Приглашение"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Invite.vue.cjs"))}]}]}exports.default=o;