@ozdao/prometheus-framework 0.2.90 → 0.2.92
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +1 -0
- package/dist/auth.server.mjs +1 -0
- package/dist/events.server.js +5 -3
- package/dist/events.server.mjs +5 -3
- package/dist/main-BQisDfLk.js +92 -0
- package/dist/main-DTlUA63C.mjs +13617 -0
- package/dist/main.css +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +24 -32
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +17 -16
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +1 -103
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +103 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +1 -36
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +36 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +1 -45
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +45 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +7 -6
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +28 -29
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +64 -64
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +37 -38
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +35 -37
- package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +10 -9
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +14 -48
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +85 -25
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +69 -57
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionFeatures.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionFeatures.vue.js +74 -0
- package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/landing.client.js +4 -2
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -2
- package/dist/prometheus-framework/src/modules/middlewares/client/inputs.validation.cjs +1 -1
- package/dist/prometheus-framework/src/modules/middlewares/client/inputs.validation.js +10 -13
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.js +6 -8
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -3
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +36 -25
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +7 -6
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +5 -4
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/web-CXzcKdk4.mjs +54 -0
- package/dist/web-D9Cfcy5k.js +1 -0
- package/package.json +1 -1
- package/src/components/Button/Button.vue +5 -8
- package/src/components/FieldPhone/FieldPhone.vue +4 -0
- package/src/modules/auth/components/pages/ResetPassword.vue +1 -1
- package/src/modules/auth/components/pages/SignIn.vue +3 -3
- package/src/modules/auth/components/pages/SignUp.vue +1 -1
- package/src/modules/auth/controllers/auth.controller.js +1 -0
- package/src/modules/auth/store/auth.js +3 -5
- package/src/modules/auth/store/twofa.js +1 -1
- package/src/modules/events/components/layouts/layoutEvents.vue +2 -59
- package/src/modules/events/components/pages/Events.vue +106 -23
- package/src/modules/events/controllers/events.controller.js +6 -3
- package/src/modules/globals/components/blocks/CardHeader.vue +29 -4
- package/src/modules/landing/landing.client.js +3 -1
- package/src/modules/middlewares/client/inputs.validation.js +0 -13
- package/src/modules/orders/components/sections/SubscribeNewsletter.vue +2 -2
- package/src/modules/orders/router/orders.backoffice.router.js +2 -4
- package/src/modules/products/components/blocks/CardProduct.vue +31 -20
- package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
@@ -1,45 +1 @@
|
|
1
|
-
|
2
|
-
import "./Tooltip.vue2.js";
|
3
|
-
import x from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const m = {
|
5
|
-
__name: "Tooltip",
|
6
|
-
props: {
|
7
|
-
text: {
|
8
|
-
type: String,
|
9
|
-
required: !0
|
10
|
-
}
|
11
|
-
},
|
12
|
-
setup(n) {
|
13
|
-
const o = r(!1), e = p({
|
14
|
-
position: "absolute",
|
15
|
-
width: "max-content",
|
16
|
-
zIndex: 1e3,
|
17
|
-
background: "#333",
|
18
|
-
color: "#fff",
|
19
|
-
padding: "5px 10px",
|
20
|
-
borderRadius: "3px",
|
21
|
-
fontSize: "14px",
|
22
|
-
display: "none"
|
23
|
-
});
|
24
|
-
function i(t) {
|
25
|
-
o.value = !0, e.left = `${t.clientX / 100 + 10}px`, e.top = `${t.clientY / 100 + 10}px`, e.display = "block";
|
26
|
-
}
|
27
|
-
function l() {
|
28
|
-
o.value = !1, e.display = "none";
|
29
|
-
}
|
30
|
-
return (t, _) => (s(), a("div", {
|
31
|
-
class: "cursor-pointer tooltip-container",
|
32
|
-
onMouseover: i,
|
33
|
-
onMouseleave: l
|
34
|
-
}, [
|
35
|
-
c(t.$slots, "default", {}, void 0, !0),
|
36
|
-
d("div", {
|
37
|
-
class: "tooltip-content",
|
38
|
-
style: u(e)
|
39
|
-
}, f(n.text), 5)
|
40
|
-
], 32));
|
41
|
-
}
|
42
|
-
}, b = /* @__PURE__ */ x(m, [["__scopeId", "data-v-f89d5a93"]]);
|
43
|
-
export {
|
44
|
-
b as default
|
45
|
-
};
|
1
|
+
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Tooltip.vue.cjs");const s=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),a={__name:"Tooltip",props:{text:{type:String,required:!0}},setup(n){const l=e.ref(!1),t=e.reactive({position:"absolute",width:"max-content",zIndex:1e3,background:"#333",color:"#fff",padding:"5px 10px",borderRadius:"3px",fontSize:"14px",display:"none"});function i(o){l.value=!0,t.left=`${o.clientX/100+10}px`,t.top=`${o.clientY/100+10}px`,t.display="block"}function r(){l.value=!1,t.display="none"}return(o,p)=>(e.openBlock(),e.createElementBlock("div",{class:"cursor-pointer tooltip-container",onMouseover:i,onMouseleave:r},[e.renderSlot(o.$slots,"default",{},void 0,!0),e.createElementVNode("div",{class:"tooltip-content",style:e.normalizeStyle(t)},e.toDisplayString(n.text),5)],32))}},u=s.default(a,[["__scopeId","data-v-f89d5a93"]]);exports.default=u;
|
@@ -1 +1,45 @@
|
|
1
|
-
|
1
|
+
import { ref as r, reactive as p, openBlock as s, createElementBlock as a, renderSlot as c, createElementVNode as d, normalizeStyle as u, toDisplayString as f } from "vue";
|
2
|
+
import "./Tooltip.vue.js";
|
3
|
+
import x from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
+
const m = {
|
5
|
+
__name: "Tooltip",
|
6
|
+
props: {
|
7
|
+
text: {
|
8
|
+
type: String,
|
9
|
+
required: !0
|
10
|
+
}
|
11
|
+
},
|
12
|
+
setup(n) {
|
13
|
+
const o = r(!1), e = p({
|
14
|
+
position: "absolute",
|
15
|
+
width: "max-content",
|
16
|
+
zIndex: 1e3,
|
17
|
+
background: "#333",
|
18
|
+
color: "#fff",
|
19
|
+
padding: "5px 10px",
|
20
|
+
borderRadius: "3px",
|
21
|
+
fontSize: "14px",
|
22
|
+
display: "none"
|
23
|
+
});
|
24
|
+
function i(t) {
|
25
|
+
o.value = !0, e.left = `${t.clientX / 100 + 10}px`, e.top = `${t.clientY / 100 + 10}px`, e.display = "block";
|
26
|
+
}
|
27
|
+
function l() {
|
28
|
+
o.value = !1, e.display = "none";
|
29
|
+
}
|
30
|
+
return (t, _) => (s(), a("div", {
|
31
|
+
class: "cursor-pointer tooltip-container",
|
32
|
+
onMouseover: i,
|
33
|
+
onMouseleave: l
|
34
|
+
}, [
|
35
|
+
c(t.$slots, "default", {}, void 0, !0),
|
36
|
+
d("div", {
|
37
|
+
class: "tooltip-content",
|
38
|
+
style: u(e)
|
39
|
+
}, f(n.text), 5)
|
40
|
+
], 32));
|
41
|
+
}
|
42
|
+
}, b = /* @__PURE__ */ x(m, [["__scopeId", "data-v-f89d5a93"]]);
|
43
|
+
export {
|
44
|
+
b as default
|
45
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("vue-i18n");require("../sections/SliderFeatures.vue2.cjs");const r=require("vue-router");require("../../store/auth.cjs");require("../../../middlewares/client/inputs.validation.cjs");const n={class:"cols-2-1_2 gap-small pd-small bg-white"},u=e.createElementVNode("section",{class:"w-100 desktop-only o-hidden radius-big bg-grad-main"},null,-1),s={__name:"Auth",setup(a){return e.ref(null),e.ref(null),e.ref(null),r.useRoute(),r.useRouter(),e.ref("email"),(o,c)=>{const t=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",n,[e.createVNode(t,{class:"pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center"},{default:e.withCtx(({Component:l,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{ref:"page",key:i.path,localPosition:o.localPosition},null,8,["localPosition"]))]),_:2},1024)]),_:1}),u])}}};exports.default=s;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("vue-i18n");require("../sections/SliderFeatures.vue2.cjs");const r=require("vue-router");require("../../store/auth.cjs");require("../../../middlewares/client/inputs.validation.cjs");const n={class:"cols-2-1_2 gap-small pd-small bg-white"},u=e.createElementVNode("section",{class:"w-100 desktop-only o-hidden radius-big bg-grad-main"},null,-1),s={__name:"Auth",setup(a){return e.ref(null),e.ref(null),e.ref(null),r.useRoute(),r.useRouter(),e.ref("email"),(o,c)=>{const t=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",n,[e.createVNode(t,{class:"pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center"},{default:e.withCtx(({Component:l,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{ref:"page",key:i.path,localPosition:o.localPosition},null,8,["localPosition"]))]),_:2},1024)]),_:1}),u])}}};exports.default=s;
|
@@ -1,19 +1,20 @@
|
|
1
1
|
import { ref as e, resolveComponent as a, openBlock as o, createElementBlock as m, createVNode as t, withCtx as r, Transition as c, createBlock as p, resolveDynamicComponent as u, createElementVNode as d } from "vue";
|
2
2
|
import "../../../../components/Tab/Tab.vue.js";
|
3
3
|
import "../../../../components/Field/Field.vue.js";
|
4
|
+
import "../../../../components/Loader/Loader.vue.js";
|
4
5
|
import "../../../../components/Button/Button.vue.js";
|
5
6
|
import "vue-i18n";
|
6
7
|
import "../sections/SliderFeatures.vue2.js";
|
7
8
|
import { useRoute as _, useRouter as f } from "vue-router";
|
8
9
|
import "../../store/auth.js";
|
9
10
|
import "../../../middlewares/client/inputs.validation.js";
|
10
|
-
const g = { class: "cols-2-1_2 gap-small pd-small bg-white" }, h = /* @__PURE__ */ d("section", { class: "w-100 desktop-only o-hidden radius-big bg-grad-main" }, null, -1),
|
11
|
+
const g = { class: "cols-2-1_2 gap-small pd-small bg-white" }, h = /* @__PURE__ */ d("section", { class: "w-100 desktop-only o-hidden radius-big bg-grad-main" }, null, -1), V = {
|
11
12
|
__name: "Auth",
|
12
13
|
setup(b) {
|
13
|
-
return e(null), e(null), e(null), _(), f(), e("email"), (
|
14
|
-
const
|
14
|
+
return e(null), e(null), e(null), _(), f(), e("email"), (i, w) => {
|
15
|
+
const l = a("router-view");
|
15
16
|
return o(), m("div", g, [
|
16
|
-
t(
|
17
|
+
t(l, { class: "pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center" }, {
|
17
18
|
default: r(({ Component: n, route: s }) => [
|
18
19
|
t(c, {
|
19
20
|
name: "scaleIn",
|
@@ -23,7 +24,7 @@ const g = { class: "cols-2-1_2 gap-small pd-small bg-white" }, h = /* @__PURE__
|
|
23
24
|
(o(), p(u(n), {
|
24
25
|
ref: "page",
|
25
26
|
key: s.path,
|
26
|
-
localPosition:
|
27
|
+
localPosition: i.localPosition
|
27
28
|
}, null, 8, ["localPosition"]))
|
28
29
|
]),
|
29
30
|
_: 2
|
@@ -37,5 +38,5 @@ const g = { class: "cols-2-1_2 gap-small pd-small bg-white" }, h = /* @__PURE__
|
|
37
38
|
}
|
38
39
|
};
|
39
40
|
export {
|
40
|
-
|
41
|
+
V as default
|
41
42
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../../../../components/Tab/Tab.vue2.cjs"),f=require("../../../../components/Field/Field.vue2.cjs"),v=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),_=require("../../../../components/Button/Button.vue2.cjs"),u=require("vue-router"),b=require("vue-i18n"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../../../../components/Tab/Tab.vue2.cjs"),f=require("../../../../components/Field/Field.vue2.cjs"),v=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),_=require("../../../../components/Button/Button.vue2.cjs"),u=require("vue-router"),b=require("vue-i18n"),g=require("../../localization/ResetPassword.json.cjs"),s=require("../../store/auth.cjs");require("../../store/twofa.cjs");const n=require("../../../middlewares/client/inputs.validation.cjs");require("./ResetPassword.vue2.cjs");const w={class:"t-left pd-medium"},V={class:"mn-b-small"},y={class:"mn-b-small t-transp"},N={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},q={class:"pos-relative"},E={key:0,class:"mn-b-semi radius-small o-hidden"},C={class:"mn-b-small t-transp"},S={key:0,class:"mn-b-semi radius-small o-hidden"},k={class:"mn-b-small t-transp"},P={__name:"ResetPassword",setup(I){const{t}=b.useI18n({useScope:"global",...g.default}),i=e.ref(null),d=e.ref(null);u.useRoute();const c=u.useRouter(),a=e.ref("phone");async function m(){try{a.value==="phone"&&await n.validateInputs(i,n.validatePhone,s.state.user.phone,"Некорректный телефон"),a.value==="email"&&await n.validateInputs(d,n.validateEmail,s.state.user.email,"Некорректный email")}catch{throw new Error}try{await s.actions.resetPassword(s.state.user,a.value,"reset-password")}catch(r){throw console.log(r),new Error}}function p(){c.push({name:"Enter Code",query:{type:a.value,method:"reset-password"}})}return(r,o)=>(e.openBlock(),e.createElementBlock("section",w,[e.createElementVNode("h3",V,e.toDisplayString(e.unref(t)("forgotPasswordTitle")),1),e.createElementVNode("p",y,e.toDisplayString(e.unref(t)("instructions")),1),e.createElementVNode("div",N,[e.createVNode(h.default,{selected:a.value,"onUpdate:selected":o[0]||(o[0]=l=>a.value=l),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(()=>[a.value==="phone"?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("p",C,e.toDisplayString(e.unref(t)("smsInfo")),1),e.createVNode(v.default,{onChange:o[1]||(o[1]=l=>s.state.user.phone=l),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-b-thin"},null,8,["validation","inputOptions"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="email"?(e.openBlock(),e.createElementBlock("div",S,[e.createElementVNode("p",k,e.toDisplayString(e.unref(t)("emailInfo")),1),e.createVNode(f.default,{field:s.state.user.email,"onUpdate:field":o[2]||(o[2]=l=>s.state.user.email=l),placeholder:e.unref(t)("emailPlaceholder"),validation:d.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])])):e.createCommentVNode("",!0)]),_:1})]),e.createVNode(_.default,{submit:m,callback:p,class:"mn-b-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1})]))}};exports.default=P;
|
@@ -1,16 +1,16 @@
|
|
1
|
-
import { ref as m, openBlock as u, createElementBlock as p, createElementVNode as
|
1
|
+
import { ref as m, openBlock as u, createElementBlock as p, createElementVNode as a, toDisplayString as r, unref as t, createVNode as l, Transition as _, withCtx as c, createCommentVNode as v, createTextVNode as C } from "vue";
|
2
2
|
import P from "../../../../components/Tab/Tab.vue2.js";
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
3
|
+
import E from "../../../../components/Field/Field.vue2.js";
|
4
|
+
import I from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
|
+
import V from "../../../../components/Button/Button.vue2.js";
|
6
6
|
import { useRoute as k, useRouter as x } from "vue-router";
|
7
7
|
import { useI18n as N } from "vue-i18n";
|
8
8
|
import S from "../../localization/ResetPassword.json.js";
|
9
|
-
import { state as
|
9
|
+
import { state as i, actions as T } from "../../store/auth.js";
|
10
10
|
import "../../store/twofa.js";
|
11
11
|
import { validateInputs as b, validatePhone as D, validateEmail as F } from "../../../middlewares/client/inputs.validation.js";
|
12
12
|
import "./ResetPassword.vue2.js";
|
13
|
-
const O = { class: "t-left pd-medium" }, R = { class: "mn-b-small" },
|
13
|
+
const O = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, B = { class: "mn-b-small t-transp" }, U = { class: "mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, $ = { class: "pos-relative" }, q = {
|
14
14
|
key: 0,
|
15
15
|
class: "mn-b-semi radius-small o-hidden"
|
16
16
|
}, A = { class: "mn-b-small t-transp" }, L = {
|
@@ -30,19 +30,19 @@ const O = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, U = { clas
|
|
30
30
|
o.value === "phone" && await b(
|
31
31
|
h,
|
32
32
|
D,
|
33
|
-
|
33
|
+
i.user.phone,
|
34
34
|
"Некорректный телефон"
|
35
35
|
), o.value === "email" && await b(
|
36
36
|
f,
|
37
37
|
F,
|
38
|
-
|
38
|
+
i.user.email,
|
39
39
|
"Некорректный email"
|
40
40
|
);
|
41
41
|
} catch {
|
42
42
|
throw new Error();
|
43
43
|
}
|
44
44
|
try {
|
45
|
-
await T.resetPassword(
|
45
|
+
await T.resetPassword(i.user, o.value, "reset-password");
|
46
46
|
} catch (d) {
|
47
47
|
throw console.log(d), new Error();
|
48
48
|
}
|
@@ -50,27 +50,26 @@ const O = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, U = { clas
|
|
50
50
|
function y() {
|
51
51
|
w.push({ name: "Enter Code", query: { type: o.value, method: "reset-password" } });
|
52
52
|
}
|
53
|
-
return (d,
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
53
|
+
return (d, s) => (u(), p("section", O, [
|
54
|
+
a("h3", R, r(t(e)("forgotPasswordTitle")), 1),
|
55
|
+
a("p", B, r(t(e)("instructions")), 1),
|
56
|
+
a("div", U, [
|
57
|
+
l(P, {
|
58
58
|
selected: o.value,
|
59
|
-
"onUpdate:selected":
|
59
|
+
"onUpdate:selected": s[0] || (s[0] = (n) => o.value = n),
|
60
60
|
tabs: [
|
61
61
|
{ name: t(e)("phone"), value: "phone" },
|
62
62
|
{ name: t(e)("email"), value: "email" }
|
63
63
|
]
|
64
64
|
}, null, 8, ["selected", "tabs"])
|
65
65
|
]),
|
66
|
-
|
67
|
-
|
66
|
+
a("div", $, [
|
67
|
+
l(_, { name: "slide-fade" }, {
|
68
68
|
default: c(() => [
|
69
69
|
o.value === "phone" ? (u(), p("div", q, [
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
"onUpdate:modelValue": a[1] || (a[1] = (n) => s.user.phone = n),
|
70
|
+
a("p", A, r(t(e)("smsInfo")), 1),
|
71
|
+
l(I, {
|
72
|
+
onChange: s[1] || (s[1] = (n) => i.user.phone = n),
|
74
73
|
dropdownOptions: {
|
75
74
|
showDialCodeInSelection: !0,
|
76
75
|
showFlags: !0,
|
@@ -80,18 +79,18 @@ const O = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, U = { clas
|
|
80
79
|
mode: "national",
|
81
80
|
inputOptions: { placeholder: t(e)("phonePlaceholder") },
|
82
81
|
class: "bg-grey pd-small radius-small mn-b-thin"
|
83
|
-
}, null, 8, ["
|
82
|
+
}, null, 8, ["validation", "inputOptions"])
|
84
83
|
])) : v("", !0)
|
85
84
|
]),
|
86
85
|
_: 1
|
87
86
|
}),
|
88
|
-
|
87
|
+
l(_, { name: "slide-fade" }, {
|
89
88
|
default: c(() => [
|
90
89
|
o.value === "email" ? (u(), p("div", L, [
|
91
|
-
|
92
|
-
|
93
|
-
field:
|
94
|
-
"onUpdate:field":
|
90
|
+
a("p", j, r(t(e)("emailInfo")), 1),
|
91
|
+
l(E, {
|
92
|
+
field: i.user.email,
|
93
|
+
"onUpdate:field": s[2] || (s[2] = (n) => i.user.email = n),
|
95
94
|
placeholder: t(e)("emailPlaceholder"),
|
96
95
|
validation: f.value,
|
97
96
|
class: "bg-grey pd-medium radius-small"
|
@@ -101,13 +100,13 @@ const O = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, U = { clas
|
|
101
100
|
_: 1
|
102
101
|
})
|
103
102
|
]),
|
104
|
-
|
103
|
+
l(V, {
|
105
104
|
submit: g,
|
106
105
|
callback: y,
|
107
106
|
class: "mn-b-big"
|
108
107
|
}, {
|
109
108
|
default: c(() => [
|
110
|
-
|
109
|
+
C(r(t(e)("sendCode")), 1)
|
111
110
|
]),
|
112
111
|
_: 1
|
113
112
|
})
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("../../../../components/Tab/Tab.vue2.cjs"),m=require("../../../../components/Field/Field.vue2.cjs"),w=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../components/Button/Button.vue2.cjs"),h=require("vue-router"),N=require("vue-i18n"),y=require("../../localization/SignIn.json.cjs"),l=require("../../store/auth.cjs"),r=require("../../../middlewares/client/inputs.validation.cjs");require("./SignIn.vue2.cjs");const S={class:""},q=e.createElementVNode("img",{src:"/logo/logo.svg",class:"i-extra radius-small mn-b-small"},null,-1),E={class:"mn-b-medium"},x=e.createElementVNode("br",null,null,-1),C={class:"t-semi"},D={class:"mn-b-big"},P={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},T={class:"pos-relative"},I={class:"mn-b-thin radius-small"},U={class:"mn-b-thin radius-small o-hidden"},k={class:"w-100 mn-b-big"},O={__name:"SignIn",setup(j){const d=e.ref(null),f=e.ref(null),u=e.ref(null),c=h.useRoute(),p=h.useRouter(),{t:s}=N.useI18n({useScope:"global",...y.default}),n=e.ref("phone"),v=o=>new Promise((a,i)=>{const t=document.createElement("script");t.type="text/javascript",t.src=o,t.onload=a,t.onerror=i,document.head.appendChild(t)});e.onMounted(async()=>{await v("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js")});async function _(){try{n.value==="phone"&&await r.validateInputs(d,r.validatePhone,l.state.user.phone,"Некорректный телефон"),n.value==="email"&&await r.validateInputs(u,r.validateEmail,l.state.user.email,"Некорректный email")}catch{throw new Error}const o={...l.state.user};await l.actions.login(o,n.value)}function g(){c.query.returnUrl?p.push({path:c.query.returnUrl,query:{afterAuth:"true"}}):p.push({name:"User Profile",params:{_id:l.state.user._id},query:{afterAuth:"true"}})}return(o,a)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",S,[q,e.createElementVNode("h3",E,[e.createTextVNode(e.toDisplayString(e.unref(s)("title"))+" ",1),x,e.createElementVNode("span",C,e.toDisplayString(e.unref(s)("subtitle")),1)]),e.createElementVNode("p",D,[e.createVNode(i,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("signup")),1)]),_:1})]),e.createElementVNode("div",P,[e.createVNode(b.default,{selected:n.value,"onUpdate:selected":a[0]||(a[0]=t=>n.value=t),tabs:[{name:e.unref(s)("phone"),value:"phone"},{name:e.unref(s)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",T,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",I,[e.createVNode(w.default,{onChange:a[1]||(a[1]=t=>l.state.user.phone=t),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validCharactersOnly:!0,validation:d.value,mode:"national",inputOptions:{placeholder:e.unref(s)("phonePlaceholder"),type:"tel"},class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["validation","inputOptions"])],512),[[e.vShow,n.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",U,[e.createVNode(m.default,{field:l.state.user.email,"onUpdate:field":a[2]||(a[2]=t=>l.state.user.email=t),placeholder:e.unref(s)("emailPlaceholder"),validation:u.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,n.value==="email"]])]),_:1})]),e.createVNode(m.default,{field:l.state.user.password,"onUpdate:field":a[3]||(a[3]=t=>l.state.user.password=t),type:"password",validation:f.value,placeholder:e.unref(s)("passwordPlaceholder"),class:"bg-grey pd-medium radius-small mn-b-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",k,[e.createVNode(i,{to:"/auth/reset-password",class:"underline d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("forgotPassword")),1)]),_:1})]),e.createVNode(V.default,{submit:_,callback:g,class:"w-100 bg-main mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("signin")),1)]),_:1})])}}};exports.default=O;
|
@@ -1,50 +1,50 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as m, onMounted as k, resolveComponent as E, openBlock as V, createElementBlock as I, createElementVNode as l, createTextVNode as c, toDisplayString as r, unref as s, createVNode as o, withCtx as d, Transition as b, withDirectives as g, vShow as w } from "vue";
|
2
2
|
import q from "../../../../components/Tab/Tab.vue2.js";
|
3
3
|
import y from "../../../../components/Field/Field.vue2.js";
|
4
4
|
import D from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
|
-
import
|
6
|
-
import { useRoute as
|
7
|
-
import { useI18n as
|
8
|
-
import
|
9
|
-
import { state as
|
5
|
+
import O from "../../../../components/Button/Button.vue2.js";
|
6
|
+
import { useRoute as j, useRouter as A } from "vue-router";
|
7
|
+
import { useI18n as F } from "vue-i18n";
|
8
|
+
import N from "../../localization/SignIn.json.js";
|
9
|
+
import { state as i, actions as T } from "../../store/auth.js";
|
10
10
|
import { validateInputs as S, validatePhone as B, validateEmail as R } from "../../../middlewares/client/inputs.validation.js";
|
11
11
|
import "./SignIn.vue2.js";
|
12
|
-
const $ = { class: "" }, L = /* @__PURE__ */
|
12
|
+
const $ = { class: "" }, L = /* @__PURE__ */ l("img", {
|
13
13
|
src: "/logo/logo.svg",
|
14
14
|
class: "i-extra radius-small mn-b-small"
|
15
|
-
}, null, -1), M = { class: "mn-b-medium" }, z = /* @__PURE__ */
|
15
|
+
}, null, -1), M = { class: "mn-b-medium" }, z = /* @__PURE__ */ l("br", null, null, -1), G = { class: "t-semi" }, H = { class: "mn-b-big" }, J = { class: "mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, K = { class: "pos-relative" }, Q = { class: "mn-b-thin radius-small" }, W = { class: "mn-b-thin radius-small o-hidden" }, X = { class: "w-100 mn-b-big" }, ue = {
|
16
16
|
__name: "SignIn",
|
17
17
|
setup(Y) {
|
18
|
-
const h =
|
18
|
+
const h = m(null), x = m(null), f = m(null), _ = j(), v = A(), { t: a } = F({
|
19
19
|
useScope: "global",
|
20
|
-
...
|
21
|
-
}), n =
|
20
|
+
...N
|
21
|
+
}), n = m("phone"), C = (u) => new Promise((t, p) => {
|
22
22
|
const e = document.createElement("script");
|
23
|
-
e.type = "text/javascript", e.src =
|
23
|
+
e.type = "text/javascript", e.src = u, e.onload = t, e.onerror = p, document.head.appendChild(e);
|
24
24
|
});
|
25
25
|
k(async () => {
|
26
|
-
await
|
26
|
+
await C("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js");
|
27
27
|
});
|
28
|
-
async function
|
28
|
+
async function P() {
|
29
29
|
try {
|
30
30
|
n.value === "phone" && await S(
|
31
31
|
h,
|
32
32
|
B,
|
33
|
-
|
33
|
+
i.user.phone,
|
34
34
|
"Некорректный телефон"
|
35
35
|
), n.value === "email" && await S(
|
36
36
|
f,
|
37
37
|
R,
|
38
|
-
|
38
|
+
i.user.email,
|
39
39
|
"Некорректный email"
|
40
40
|
);
|
41
41
|
} catch {
|
42
42
|
throw new Error();
|
43
43
|
}
|
44
|
-
const
|
45
|
-
|
44
|
+
const u = { ...i.user };
|
45
|
+
await T.login(u, n.value);
|
46
46
|
}
|
47
|
-
function
|
47
|
+
function U() {
|
48
48
|
_.query.returnUrl ? v.push({
|
49
49
|
path: _.query.returnUrl,
|
50
50
|
query: {
|
@@ -53,73 +53,73 @@ const $ = { class: "" }, L = /* @__PURE__ */ a("img", {
|
|
53
53
|
}) : v.push({
|
54
54
|
name: "User Profile",
|
55
55
|
params: {
|
56
|
-
_id:
|
56
|
+
_id: i.user._id
|
57
57
|
},
|
58
58
|
query: {
|
59
59
|
afterAuth: "true"
|
60
60
|
}
|
61
61
|
});
|
62
62
|
}
|
63
|
-
return (
|
64
|
-
const
|
65
|
-
return
|
63
|
+
return (u, t) => {
|
64
|
+
const p = E("router-link");
|
65
|
+
return V(), I("section", $, [
|
66
66
|
L,
|
67
|
-
|
68
|
-
c(
|
67
|
+
l("h3", M, [
|
68
|
+
c(r(s(a)("title")) + " ", 1),
|
69
69
|
z,
|
70
|
-
|
70
|
+
l("span", G, r(s(a)("subtitle")), 1)
|
71
71
|
]),
|
72
|
-
|
73
|
-
|
72
|
+
l("p", H, [
|
73
|
+
o(p, {
|
74
74
|
to: { name: "Sign Up" },
|
75
75
|
class: "underline t-second"
|
76
76
|
}, {
|
77
|
-
default:
|
78
|
-
c(
|
77
|
+
default: d(() => [
|
78
|
+
c(r(s(a)("signup")), 1)
|
79
79
|
]),
|
80
80
|
_: 1
|
81
81
|
})
|
82
82
|
]),
|
83
|
-
|
84
|
-
|
83
|
+
l("div", J, [
|
84
|
+
o(q, {
|
85
85
|
selected: n.value,
|
86
86
|
"onUpdate:selected": t[0] || (t[0] = (e) => n.value = e),
|
87
87
|
tabs: [
|
88
|
-
{ name: s(
|
89
|
-
{ name: s(
|
88
|
+
{ name: s(a)("phone"), value: "phone" },
|
89
|
+
{ name: s(a)("email"), value: "email" }
|
90
90
|
]
|
91
91
|
}, null, 8, ["selected", "tabs"])
|
92
92
|
]),
|
93
|
-
|
94
|
-
|
95
|
-
default:
|
96
|
-
g(
|
97
|
-
|
98
|
-
|
99
|
-
"onUpdate:modelValue": t[1] || (t[1] = (e) => l.user.phone = e),
|
93
|
+
l("div", K, [
|
94
|
+
o(b, { name: "slide-fade" }, {
|
95
|
+
default: d(() => [
|
96
|
+
g(l("div", Q, [
|
97
|
+
o(D, {
|
98
|
+
onChange: t[1] || (t[1] = (e) => i.user.phone = e),
|
100
99
|
dropdownOptions: {
|
101
100
|
showDialCodeInSelection: !0,
|
102
101
|
showFlags: !0,
|
103
102
|
showDialCodeInList: !0
|
104
103
|
},
|
104
|
+
validCharactersOnly: !0,
|
105
105
|
validation: h.value,
|
106
106
|
mode: "national",
|
107
|
-
inputOptions: { placeholder: s(
|
107
|
+
inputOptions: { placeholder: s(a)("phonePlaceholder"), type: "tel" },
|
108
108
|
class: "bg-grey pd-small radius-small mn-b-thin"
|
109
|
-
}, null, 8, ["
|
109
|
+
}, null, 8, ["validation", "inputOptions"])
|
110
110
|
], 512), [
|
111
111
|
[w, n.value === "phone"]
|
112
112
|
])
|
113
113
|
]),
|
114
114
|
_: 1
|
115
115
|
}),
|
116
|
-
|
117
|
-
default:
|
118
|
-
g(
|
119
|
-
|
120
|
-
field:
|
121
|
-
"onUpdate:field": t[2] || (t[2] = (e) =>
|
122
|
-
placeholder: s(
|
116
|
+
o(b, { name: "slide-fade" }, {
|
117
|
+
default: d(() => [
|
118
|
+
g(l("div", W, [
|
119
|
+
o(y, {
|
120
|
+
field: i.user.email,
|
121
|
+
"onUpdate:field": t[2] || (t[2] = (e) => i.user.email = e),
|
122
|
+
placeholder: s(a)("emailPlaceholder"),
|
123
123
|
validation: f.value,
|
124
124
|
class: "bg-grey pd-medium radius-small"
|
125
125
|
}, null, 8, ["field", "placeholder", "validation"])
|
@@ -130,32 +130,32 @@ const $ = { class: "" }, L = /* @__PURE__ */ a("img", {
|
|
130
130
|
_: 1
|
131
131
|
})
|
132
132
|
]),
|
133
|
-
|
134
|
-
field:
|
135
|
-
"onUpdate:field": t[3] || (t[3] = (e) =>
|
133
|
+
o(y, {
|
134
|
+
field: i.user.password,
|
135
|
+
"onUpdate:field": t[3] || (t[3] = (e) => i.user.password = e),
|
136
136
|
type: "password",
|
137
|
-
validation:
|
138
|
-
placeholder: s(
|
137
|
+
validation: x.value,
|
138
|
+
placeholder: s(a)("passwordPlaceholder"),
|
139
139
|
class: "bg-grey pd-medium radius-small mn-b-semi"
|
140
140
|
}, null, 8, ["field", "validation", "placeholder"]),
|
141
|
-
|
142
|
-
|
141
|
+
l("div", X, [
|
142
|
+
o(p, {
|
143
143
|
to: "/auth/reset-password",
|
144
144
|
class: "underline d-block t-blue"
|
145
145
|
}, {
|
146
|
-
default:
|
147
|
-
c(
|
146
|
+
default: d(() => [
|
147
|
+
c(r(s(a)("forgotPassword")), 1)
|
148
148
|
]),
|
149
149
|
_: 1
|
150
150
|
})
|
151
151
|
]),
|
152
|
-
|
153
|
-
submit:
|
154
|
-
callback:
|
152
|
+
o(O, {
|
153
|
+
submit: P,
|
154
|
+
callback: U,
|
155
155
|
class: "w-100 bg-main mn-b-thin"
|
156
156
|
}, {
|
157
|
-
default:
|
158
|
-
c(
|
157
|
+
default: d(() => [
|
158
|
+
c(r(s(a)("signin")), 1)
|
159
159
|
]),
|
160
160
|
_: 1
|
161
161
|
})
|
@@ -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"),b=require("../../../../components/Button/Button.vue2.cjs"),d=require("vue-router"),g=require("vue-i18n"),w=require("../../localization/SignUp.json.cjs"),
|
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"),b=require("../../../../components/Button/Button.vue2.cjs"),d=require("vue-router"),g=require("vue-i18n"),w=require("../../localization/SignUp.json.cjs"),o=require("../../store/auth.cjs"),N=require("../../store/twofa.cjs"),s=require("../../../middlewares/client/inputs.validation.cjs");require("./SignUp.vue2.cjs");const V={class:"t-left pd-medium"},S={class:"mn-b-small"},E={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},q={class:"pos-relative"},y={class:"mn-b-semi radius-small"},C={class:"mn-b-small t-transp"},D={class:"mn-b-semi radius-small o-hidden"},x={class:"mn-b-small t-transp"},T={class:"w-100"},k={__name:"SignUp",setup(I){const{t}=g.useI18n({useScope:"global",...w.default}),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,o.state.user.phone,"Некорректный телефон"),a.value==="email"&&await s.validateInputs(r,s.validateEmail,o.state.user.email,"Некорректный email")}catch{throw new Error}try{await N.sendCode(o.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",V,[e.createElementVNode("h3",S,e.toDisplayString(e.unref(t)("title")),1),e.createElementVNode("div",E,[e.createVNode(v.default,{selected:a.value,"onUpdate:selected":n[0]||(n[0]=l=>a.value=l),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",y,[e.createElementVNode("p",C,e.toDisplayString(e.unref(t)("smsNotice")),1),e.createVNode(_.default,{onChange:n[1]||(n[1]=l=>o.state.user.phone=l),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-b-thin"},null,8,["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:o.state.user.email,"onUpdate:field":n[2]||(n[2]=l=>o.state.user.email=l),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(b.default,{submit:m,callback:p,class:"w-100 bg-main mn-b-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-b-medium d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("haveAccount")),1)]),_:1})])])}}};exports.default=k;
|