@ozdao/prometheus-framework 0.1.95 → 0.1.96
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +1 -1
- package/dist/auth.server.mjs +1 -1
- package/dist/community.server.js +1 -2
- package/dist/community.server.mjs +1 -2
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/middlewares.server.js +1 -1
- package/dist/middlewares.server.mjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -224
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +224 -2
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +49 -2
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +2 -49
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +76 -2
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -72
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- 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 +3 -3
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- 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 +2 -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 -3
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
- 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/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +3 -3
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.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 -3
- 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 +2 -2
- 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 -4
- 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 +2 -2
- 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 +4 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
- package/dist/reports.server.js +1 -1
- package/dist/reports.server.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/modules/community/controllers/blog.controller.js +0 -2
- package/src/modules/middlewares/server/authJwt.js +9 -15
@@ -1,4 +1,51 @@
|
|
1
|
-
|
1
|
+
import { ref as a, withDirectives as i, openBlock as d, createElementBlock as s, withModifiers as u, createTextVNode as c, toDisplayString as f, createVNode as p, Transition as m, withCtx as v, createElementVNode as g, normalizeStyle as w, renderSlot as k, vShow as S, unref as h } from "vue";
|
2
|
+
import y from "../FieldPhone/click-outside.js";
|
3
|
+
import "./Dropdown.vue2.js";
|
4
|
+
import O from "../../../../_virtual/_plugin-vue_export-helper.js";
|
5
|
+
const b = {
|
6
|
+
__name: "Dropdown",
|
7
|
+
props: {
|
8
|
+
label: {
|
9
|
+
type: String,
|
10
|
+
default: "Open"
|
11
|
+
},
|
12
|
+
align: {
|
13
|
+
type: String,
|
14
|
+
default: "left"
|
15
|
+
}
|
16
|
+
},
|
17
|
+
setup(t) {
|
18
|
+
let l = y;
|
19
|
+
const e = a(!1);
|
20
|
+
function n() {
|
21
|
+
e.value = !1;
|
22
|
+
}
|
23
|
+
return (r, o) => i((d(), s("div", {
|
24
|
+
class: "dropdown pos-relative",
|
25
|
+
onClick: o[0] || (o[0] = u((x) => e.value = !e.value, ["stop"]))
|
26
|
+
}, [
|
27
|
+
c(f(t.label) + " ", 1),
|
28
|
+
p(m, {
|
29
|
+
name: "TransitionTranslateY",
|
30
|
+
mode: "out-in"
|
31
|
+
}, {
|
32
|
+
default: v(() => [
|
33
|
+
i(g("div", {
|
34
|
+
style: w({ left: t.align === "left" ? "0" : "auto", right: t.align === "right" ? "0" : "auto" }),
|
35
|
+
class: "dropdown-content w-15r radius-big"
|
36
|
+
}, [
|
37
|
+
k(r.$slots, "default", {}, void 0, !0)
|
38
|
+
], 4), [
|
39
|
+
[S, e.value]
|
40
|
+
])
|
41
|
+
]),
|
42
|
+
_: 3
|
43
|
+
})
|
44
|
+
])), [
|
45
|
+
[h(l), n]
|
46
|
+
]);
|
47
|
+
}
|
48
|
+
}, N = /* @__PURE__ */ O(b, [["__scopeId", "data-v-2f59adb5"]]);
|
2
49
|
export {
|
3
|
-
|
50
|
+
N as default
|
4
51
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
|
@@ -1,51 +1,4 @@
|
|
1
|
-
|
2
|
-
import y from "../FieldPhone/click-outside.js";
|
3
|
-
import "./Dropdown.vue.js";
|
4
|
-
import O from "../../../../_virtual/_plugin-vue_export-helper.js";
|
5
|
-
const b = {
|
6
|
-
__name: "Dropdown",
|
7
|
-
props: {
|
8
|
-
label: {
|
9
|
-
type: String,
|
10
|
-
default: "Open"
|
11
|
-
},
|
12
|
-
align: {
|
13
|
-
type: String,
|
14
|
-
default: "left"
|
15
|
-
}
|
16
|
-
},
|
17
|
-
setup(t) {
|
18
|
-
let l = y;
|
19
|
-
const e = a(!1);
|
20
|
-
function n() {
|
21
|
-
e.value = !1;
|
22
|
-
}
|
23
|
-
return (r, o) => i((d(), s("div", {
|
24
|
-
class: "dropdown pos-relative",
|
25
|
-
onClick: o[0] || (o[0] = u((x) => e.value = !e.value, ["stop"]))
|
26
|
-
}, [
|
27
|
-
c(f(t.label) + " ", 1),
|
28
|
-
p(m, {
|
29
|
-
name: "TransitionTranslateY",
|
30
|
-
mode: "out-in"
|
31
|
-
}, {
|
32
|
-
default: v(() => [
|
33
|
-
i(g("div", {
|
34
|
-
style: w({ left: t.align === "left" ? "0" : "auto", right: t.align === "right" ? "0" : "auto" }),
|
35
|
-
class: "dropdown-content w-15r radius-big"
|
36
|
-
}, [
|
37
|
-
k(r.$slots, "default", {}, void 0, !0)
|
38
|
-
], 4), [
|
39
|
-
[S, e.value]
|
40
|
-
])
|
41
|
-
]),
|
42
|
-
_: 3
|
43
|
-
})
|
44
|
-
])), [
|
45
|
-
[h(l), n]
|
46
|
-
]);
|
47
|
-
}
|
48
|
-
}, N = /* @__PURE__ */ O(b, [["__scopeId", "data-v-2f59adb5"]]);
|
1
|
+
const _ = "";
|
49
2
|
export {
|
50
|
-
|
3
|
+
_ as default
|
51
4
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
|
@@ -1,78 +1,4 @@
|
|
1
|
-
|
2
|
-
import "./Field.vue2.js";
|
3
|
-
import k from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const p = {
|
5
|
-
key: 0,
|
6
|
-
class: "t-transp mn-r-small"
|
7
|
-
}, g = { class: "w-100" }, w = ["type", "value", "placeholder", "tabindex"], F = ["value", "placeholder", "tabindex"], B = {
|
8
|
-
key: 1,
|
9
|
-
class: "t-transp mn-l-small"
|
10
|
-
}, C = {
|
11
|
-
key: 0,
|
12
|
-
class: "mn-t-thin mn-thin mn-b-thin invalid-feedback"
|
13
|
-
}, E = {
|
14
|
-
__name: "Field",
|
15
|
-
props: {
|
16
|
-
label: null,
|
17
|
-
symbol: null,
|
18
|
-
type: "text",
|
19
|
-
placeholder: "Enter something here",
|
20
|
-
field: null,
|
21
|
-
validation: !1,
|
22
|
-
disabled: !1,
|
23
|
-
tabindex: -1
|
24
|
-
},
|
25
|
-
emits: ["update:field", "focus", "blur"],
|
26
|
-
setup(e, { emit: m }) {
|
27
|
-
const n = m, u = f(e.field);
|
28
|
-
return (r, t) => (a(), d(b, null, [
|
29
|
-
i("div", {
|
30
|
-
class: c([[
|
31
|
-
r.$attrs.class,
|
32
|
-
{
|
33
|
-
"bg-fourth-nano": e.validation
|
34
|
-
}
|
35
|
-
], "flex-center flex-nowrap flex"])
|
36
|
-
}, [
|
37
|
-
e.label ? (a(), d("div", p, [
|
38
|
-
i("span", null, o(e.label), 1)
|
39
|
-
])) : s("", !0),
|
40
|
-
i("div", g, [
|
41
|
-
e.type !== "textarea" ? (a(), d("input", {
|
42
|
-
key: 0,
|
43
|
-
onInput: t[0] || (t[0] = (l) => u.value = n("update:field", l.target.value)),
|
44
|
-
onFocus: t[1] || (t[1] = (l) => n("focus", l)),
|
45
|
-
onBlur: t[2] || (t[2] = (l) => n("blur", l)),
|
46
|
-
type: e.type,
|
47
|
-
class: "w-100",
|
48
|
-
value: e.field,
|
49
|
-
placeholder: e.placeholder,
|
50
|
-
tabindex: e.tabindex
|
51
|
-
}, null, 40, w)) : (a(), d("textarea", {
|
52
|
-
key: 1,
|
53
|
-
onInput: t[3] || (t[3] = (l) => u.value = n("update:field", l.target.value)),
|
54
|
-
onFocus: t[4] || (t[4] = (l) => n("focus", l)),
|
55
|
-
onBlur: t[5] || (t[5] = (l) => n("blur", l)),
|
56
|
-
class: "w-100",
|
57
|
-
value: e.field,
|
58
|
-
placeholder: e.placeholder,
|
59
|
-
tabindex: e.tabindex
|
60
|
-
}, null, 40, F))
|
61
|
-
]),
|
62
|
-
v(r.$slots, "default", {}, void 0, !0),
|
63
|
-
e.symbol ? (a(), d("div", B, [
|
64
|
-
i("span", null, o(e.symbol), 1)
|
65
|
-
])) : s("", !0)
|
66
|
-
], 2),
|
67
|
-
x(y, { name: "fade" }, {
|
68
|
-
default: h(() => [
|
69
|
-
e.validation ? (a(), d("div", C, " * " + o(e.validation.message), 1)) : s("", !0)
|
70
|
-
]),
|
71
|
-
_: 1
|
72
|
-
})
|
73
|
-
], 64));
|
74
|
-
}
|
75
|
-
}, $ = /* @__PURE__ */ k(E, [["__scopeId", "data-v-839e7ced"]]);
|
1
|
+
const e = "";
|
76
2
|
export {
|
77
|
-
|
3
|
+
e as default
|
78
4
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Field.vue.cjs");const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),r={key:0,class:"t-transp mn-r-small"},c={class:"w-100"},m=["type","value","placeholder","tabindex"],f=["value","placeholder","tabindex"],b={key:1,class:"t-transp mn-l-small"},v={key:0,class:"mn-t-thin mn-thin mn-b-thin invalid-feedback"},k={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,validation:!1,disabled:!1,tabindex:-1},emits:["update:field","focus","blur"],setup(t,{emit:i}){const a=i,s=t,o=e.ref(s.field);return(d,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[d.$attrs.class,{"bg-fourth-nano":t.validation}],"flex-center flex-nowrap flex"])},[t.label?(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("span",null,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[t.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:l[0]||(l[0]=n=>o.value=a("update:field",n.target.value)),onFocus:l[1]||(l[1]=n=>a("focus",n)),onBlur:l[2]||(l[2]=n=>a("blur",n)),type:t.type,class:"w-100",value:t.field,placeholder:t.placeholder,tabindex:t.tabindex},null,40,m)):(e.openBlock(),e.createElementBlock("textarea",{key:1,onInput:l[3]||(l[3]=n=>o.value=a("update:field",n.target.value)),onFocus:l[4]||(l[4]=n=>a("focus",n)),onBlur:l[5]||(l[5]=n=>a("blur",n)),class:"w-100",value:t.field,placeholder:t.placeholder,tabindex:t.tabindex},null,40,f))]),e.renderSlot(d.$slots,"default",{},void 0,!0),t.symbol?(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("span",null,e.toDisplayString(t.symbol),1)])):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},y=u.default(k,[["__scopeId","data-v-839e7ced"]]);exports.default=y;
|
@@ -1,4 +1,78 @@
|
|
1
|
-
|
1
|
+
import { ref as f, openBlock as a, createElementBlock as d, Fragment as b, createElementVNode as i, normalizeClass as c, toDisplayString as o, createCommentVNode as s, renderSlot as v, createVNode as x, Transition as y, withCtx as h } from "vue";
|
2
|
+
import "./Field.vue.js";
|
3
|
+
import k from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
+
const p = {
|
5
|
+
key: 0,
|
6
|
+
class: "t-transp mn-r-small"
|
7
|
+
}, g = { class: "w-100" }, w = ["type", "value", "placeholder", "tabindex"], F = ["value", "placeholder", "tabindex"], B = {
|
8
|
+
key: 1,
|
9
|
+
class: "t-transp mn-l-small"
|
10
|
+
}, C = {
|
11
|
+
key: 0,
|
12
|
+
class: "mn-t-thin mn-thin mn-b-thin invalid-feedback"
|
13
|
+
}, E = {
|
14
|
+
__name: "Field",
|
15
|
+
props: {
|
16
|
+
label: null,
|
17
|
+
symbol: null,
|
18
|
+
type: "text",
|
19
|
+
placeholder: "Enter something here",
|
20
|
+
field: null,
|
21
|
+
validation: !1,
|
22
|
+
disabled: !1,
|
23
|
+
tabindex: -1
|
24
|
+
},
|
25
|
+
emits: ["update:field", "focus", "blur"],
|
26
|
+
setup(e, { emit: m }) {
|
27
|
+
const n = m, u = f(e.field);
|
28
|
+
return (r, t) => (a(), d(b, null, [
|
29
|
+
i("div", {
|
30
|
+
class: c([[
|
31
|
+
r.$attrs.class,
|
32
|
+
{
|
33
|
+
"bg-fourth-nano": e.validation
|
34
|
+
}
|
35
|
+
], "flex-center flex-nowrap flex"])
|
36
|
+
}, [
|
37
|
+
e.label ? (a(), d("div", p, [
|
38
|
+
i("span", null, o(e.label), 1)
|
39
|
+
])) : s("", !0),
|
40
|
+
i("div", g, [
|
41
|
+
e.type !== "textarea" ? (a(), d("input", {
|
42
|
+
key: 0,
|
43
|
+
onInput: t[0] || (t[0] = (l) => u.value = n("update:field", l.target.value)),
|
44
|
+
onFocus: t[1] || (t[1] = (l) => n("focus", l)),
|
45
|
+
onBlur: t[2] || (t[2] = (l) => n("blur", l)),
|
46
|
+
type: e.type,
|
47
|
+
class: "w-100",
|
48
|
+
value: e.field,
|
49
|
+
placeholder: e.placeholder,
|
50
|
+
tabindex: e.tabindex
|
51
|
+
}, null, 40, w)) : (a(), d("textarea", {
|
52
|
+
key: 1,
|
53
|
+
onInput: t[3] || (t[3] = (l) => u.value = n("update:field", l.target.value)),
|
54
|
+
onFocus: t[4] || (t[4] = (l) => n("focus", l)),
|
55
|
+
onBlur: t[5] || (t[5] = (l) => n("blur", l)),
|
56
|
+
class: "w-100",
|
57
|
+
value: e.field,
|
58
|
+
placeholder: e.placeholder,
|
59
|
+
tabindex: e.tabindex
|
60
|
+
}, null, 40, F))
|
61
|
+
]),
|
62
|
+
v(r.$slots, "default", {}, void 0, !0),
|
63
|
+
e.symbol ? (a(), d("div", B, [
|
64
|
+
i("span", null, o(e.symbol), 1)
|
65
|
+
])) : s("", !0)
|
66
|
+
], 2),
|
67
|
+
x(y, { name: "fade" }, {
|
68
|
+
default: h(() => [
|
69
|
+
e.validation ? (a(), d("div", C, " * " + o(e.validation.message), 1)) : s("", !0)
|
70
|
+
]),
|
71
|
+
_: 1
|
72
|
+
})
|
73
|
+
], 64));
|
74
|
+
}
|
75
|
+
}, $ = /* @__PURE__ */ k(E, [["__scopeId", "data-v-839e7ced"]]);
|
2
76
|
export {
|
3
|
-
|
77
|
+
$ as default
|
4
78
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../Field/Field.vue2.cjs"),B=require("vue-i18n"),S={class:"pd-thin radius-extra flex-nowrap flex"},_=["innerHTML"],w={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["First placeholder","Second placeholder","Third placeholder"],ru:["Первый плейсхолдер","Второй плейсхолдер","Третий плейсхолдер"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(c,{emit:b}){const t=c,{t:F,locale:p}=B.useI18n();let i=e.ref(0),n=e.ref(t.input),s=e.ref(t.placeholder),r=e.ref(t.enableTyping),d=e.ref(null),f=e.ref(""),o=e.ref(!0),v=null;const h=b;function T(){h("action")}function m(a){h("update:input",a),f.value=a}function g(){i.value=(i.value+1)%t.placeholderTexts[p.value].length}function I(){r.value=!1,clearInterval(d.value),s.value=t.placeholder,f.value||(n.value="")}function x(){!f.value&&t.enableTyping&&(r.value=!0,s.value="",y())}function y(){let a=t.placeholderTexts[p.value][i.value],l=0,u=!1;v=setInterval(()=>{o.value=!o.value},200),d.value=setInterval(()=>{r.value&&(u?(n.value=n.value.slice(0,-1),n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l--):(n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l++),l>a.length&&t.loopTyping&&setTimeout(()=>{u=!0,n.value=a.substring(0,l)},333),l===0&&u&&(u=!1,g(),a=t.placeholderTexts[p.value][i.value]))},t.typingSpeed)}return e.onMounted(()=>{t.enableTyping&&y()}),e.watchEffect(()=>{r.value||(clearInterval(d.value),clearInterval(v))}),(a,l)=>(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(k.default,{field:e.unref(n),"onUpdate:field":[l[0]||(l[0]=u=>e.isRef(n)?n.value=u:n=u),m],placeholder:e.unref(s),onInput:g,onFocus:I,onBlur:x,class:"w-100 pd-small p-big"},null,8,["field","placeholder"]),c.action?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:T,class:"w-min hover_bg-white hover-t-black t-black bg-main button",innerHTML:c.action},null,8,_)):e.createCommentVNode("",!0)]))}};exports.default=w;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as u, onMounted as F, watchEffect as S, openBlock as y, createElementBlock as b, createVNode as _, unref as T, isRef as M, createCommentVNode as N } from "vue";
|
2
|
-
import V from "../Field/Field.
|
2
|
+
import V from "../Field/Field.vue2.js";
|
3
3
|
import { useI18n as A } from "vue-i18n";
|
4
4
|
const C = { class: "pd-thin radius-extra flex-nowrap flex" }, E = ["innerHTML"], P = {
|
5
5
|
__name: "FieldBig",
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../Button/Button.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../Button/Button.vue.cjs");require("./LocationMarker.vue2.cjs");const w=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),h=r=>(e.pushScopeId("data-v-29acef04"),r=r(),e.popScopeId(),r),y={class:"pos-relative map-container"},v=h(()=>e.createElementVNode("svg",{class:"i-medium",width:"98",height:"98",viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",fill:"white"}),e.createElementVNode("path",{d:"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",fill:"white"})],-1)),L=[v],M={__name:"LocationMarker",props:{location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},apiKey:String},emits:["update:location","update:address","update:country","update:state","update:city"],setup(r,{emit:C}){const t=r,a=C,d=e.ref(null);let c,i;e.onMounted(()=>{c=new google.maps.Map(d.value,{center:t.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1}),i=new google.maps.Marker({position:t.location,map:c,draggable:!0}),i.addListener("dragend",o=>{const n={lat:o.latLng.lat(),lng:o.latLng.lng()};a("update:location",n),u(n)})}),e.watchEffect(()=>{t.location&&i&&i.setPosition(new google.maps.LatLng(t.location.lat,t.location.lng))}),e.watchEffect(()=>{if(t.location&&c){const o=new google.maps.LatLng(t.location.lat,t.location.lng);c.setCenter(o)}});function u(o){new google.maps.Geocoder().geocode({location:o},(s,p)=>{if(p==="OK")if(s[0]){a("update:address",s[0].formatted_address);let g="",f="",m="";s[0].address_components.forEach(l=>{l.types.includes("country")&&(g=l.long_name),l.types.includes("administrative_area_level_1")&&(f=l.long_name),l.types.includes("locality")&&(m=l.long_name)}),a("update:country",g),a("update:state",f),a("update:city",m)}else console.error("No results found");else console.error("Geocoder failed due to: "+p)})}async function _(){navigator.geolocation?navigator.geolocation.getCurrentPosition(o=>{const n={lat:o.coords.latitude,lng:o.coords.longitude};a("update:location",n),u(n)},()=>{console.error("Error getting location")}):console.error("Geolocation is not supported by this browser.")}return(o,n)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",{ref_key:"mapContainer",ref:d,class:"w-100 h-100"},null,512),e.createElementVNode("button",{class:"pos-absolute pos-t-regular pos-r-regular i-semi bg-second radius-extra",onClick:_},L)]))}},E=w.default(M,[["__scopeId","data-v-29acef04"]]);exports.default=E;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as h, onMounted as y, watchEffect as C, openBlock as v, createElementBlock as L, createElementVNode as s, pushScopeId as M, popScopeId as k } from "vue";
|
2
|
-
import "../Button/Button.
|
2
|
+
import "../Button/Button.vue.js";
|
3
3
|
import "./LocationMarker.vue2.js";
|
4
4
|
import b from "../../../../_virtual/_plugin-vue_export-helper.js";
|
5
5
|
const x = (l) => (M("data-v-29acef04"), l = l(), k(), l), E = { class: "pos-relative map-container" }, S = /* @__PURE__ */ x(() => /* @__PURE__ */ s("svg", {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
|
@@ -1,74 +1,4 @@
|
|
1
|
-
|
2
|
-
import { useRoute as C, useRouter as O } from "vue-router";
|
3
|
-
import { useI18n as T } from "vue-i18n";
|
4
|
-
import g from "../../modules/icons/navigation/IconCross.vue.js";
|
5
|
-
import "./Popup.vue2.js";
|
6
|
-
const z = {
|
7
|
-
key: "popup-content",
|
8
|
-
class: "pd-small popup-wrapper"
|
9
|
-
}, I = {
|
10
|
-
__name: "Popup",
|
11
|
-
props: {
|
12
|
-
isPopupOpen: {
|
13
|
-
type: Boolean,
|
14
|
-
default: !1
|
15
|
-
},
|
16
|
-
style: String
|
17
|
-
},
|
18
|
-
emits: ["close-popup"],
|
19
|
-
setup(e, { emit: c }) {
|
20
|
-
const m = e, d = c;
|
21
|
-
function r() {
|
22
|
-
d("close-popup");
|
23
|
-
}
|
24
|
-
return v(() => m.isPopupOpen, (o) => {
|
25
|
-
o ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
26
|
-
}), C(), O(), T({
|
27
|
-
messages: {
|
28
|
-
en: {},
|
29
|
-
ru: {}
|
30
|
-
}
|
31
|
-
}), (o, t) => e.isPopupOpen ? (s(), y(P, {
|
32
|
-
key: 0,
|
33
|
-
to: "body"
|
34
|
-
}, [
|
35
|
-
n(l, {
|
36
|
-
name: "TransitionTranslateY",
|
37
|
-
appear: ""
|
38
|
-
}, {
|
39
|
-
default: a(() => [
|
40
|
-
e.isPopupOpen ? (s(), i("div", z, [
|
41
|
-
n(l, {
|
42
|
-
name: "TransitionTranslateY",
|
43
|
-
mode: "out-in"
|
44
|
-
}, {
|
45
|
-
default: a(() => [
|
46
|
-
e.isPopupOpen ? (s(), i("section", k({
|
47
|
-
key: 0,
|
48
|
-
class: "pos-relative z-index-4"
|
49
|
-
}, o.$attrs), [
|
50
|
-
u("button", {
|
51
|
-
onClick: t[0] || (t[0] = (f) => r()),
|
52
|
-
class: "pd-regular hover-scale-1 z-index-5 button-close-popup button"
|
53
|
-
}, [
|
54
|
-
n(g)
|
55
|
-
]),
|
56
|
-
b(o.$slots, "default")
|
57
|
-
], 16)) : p("", !0)
|
58
|
-
]),
|
59
|
-
_: 3
|
60
|
-
}),
|
61
|
-
u("div", {
|
62
|
-
onClick: t[1] || (t[1] = (f) => r()),
|
63
|
-
class: x([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
64
|
-
}, null, 2)
|
65
|
-
])) : p("", !0)
|
66
|
-
]),
|
67
|
-
_: 3
|
68
|
-
})
|
69
|
-
])) : p("", !0);
|
70
|
-
}
|
71
|
-
};
|
1
|
+
const e = "";
|
72
2
|
export {
|
73
|
-
|
3
|
+
e as default
|
74
4
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),c=require("vue-i18n"),d=require("../../modules/icons/navigation/IconCross.vue.cjs");require("./Popup.vue.cjs");const m={key:"popup-content",class:"pd-small popup-wrapper"},v={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String},emits:["close-popup"],setup(t,{emit:l}){const u=t,a=l;function s(){a("close-popup")}e.watch(()=>u.isPopupOpen,o=>{o?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),r.useRoute(),r.useRouter();const p={messages:{en:{},ru:{}}};return c.useI18n(p),(o,n)=>t.isPopupOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createVNode(e.Transition,{name:"TransitionTranslateY",appear:""},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createElementBlock("section",e.mergeProps({key:0,class:"pos-relative z-index-4"},o.$attrs),[e.createElementVNode("button",{onClick:n[0]||(n[0]=i=>s()),class:"pd-regular hover-scale-1 z-index-5 button-close-popup button"},[e.createVNode(d.default)]),e.renderSlot(o.$slots,"default")],16)):e.createCommentVNode("",!0)]),_:3}),e.createElementVNode("div",{onClick:n[1]||(n[1]=i=>s()),class:e.normalizeClass([{active:t.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)])):e.createCommentVNode("",!0)]),_:3})])):e.createCommentVNode("",!0)}};exports.default=v;
|
@@ -1,4 +1,74 @@
|
|
1
|
-
|
1
|
+
import { watch as v, openBlock as s, createBlock as y, Teleport as P, createVNode as n, Transition as l, withCtx as a, createElementBlock as i, mergeProps as k, createElementVNode as u, renderSlot as b, createCommentVNode as p, normalizeClass as x } from "vue";
|
2
|
+
import { useRoute as C, useRouter as O } from "vue-router";
|
3
|
+
import { useI18n as T } from "vue-i18n";
|
4
|
+
import g from "../../modules/icons/navigation/IconCross.vue.js";
|
5
|
+
import "./Popup.vue.js";
|
6
|
+
const z = {
|
7
|
+
key: "popup-content",
|
8
|
+
class: "pd-small popup-wrapper"
|
9
|
+
}, I = {
|
10
|
+
__name: "Popup",
|
11
|
+
props: {
|
12
|
+
isPopupOpen: {
|
13
|
+
type: Boolean,
|
14
|
+
default: !1
|
15
|
+
},
|
16
|
+
style: String
|
17
|
+
},
|
18
|
+
emits: ["close-popup"],
|
19
|
+
setup(e, { emit: c }) {
|
20
|
+
const m = e, d = c;
|
21
|
+
function r() {
|
22
|
+
d("close-popup");
|
23
|
+
}
|
24
|
+
return v(() => m.isPopupOpen, (o) => {
|
25
|
+
o ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
26
|
+
}), C(), O(), T({
|
27
|
+
messages: {
|
28
|
+
en: {},
|
29
|
+
ru: {}
|
30
|
+
}
|
31
|
+
}), (o, t) => e.isPopupOpen ? (s(), y(P, {
|
32
|
+
key: 0,
|
33
|
+
to: "body"
|
34
|
+
}, [
|
35
|
+
n(l, {
|
36
|
+
name: "TransitionTranslateY",
|
37
|
+
appear: ""
|
38
|
+
}, {
|
39
|
+
default: a(() => [
|
40
|
+
e.isPopupOpen ? (s(), i("div", z, [
|
41
|
+
n(l, {
|
42
|
+
name: "TransitionTranslateY",
|
43
|
+
mode: "out-in"
|
44
|
+
}, {
|
45
|
+
default: a(() => [
|
46
|
+
e.isPopupOpen ? (s(), i("section", k({
|
47
|
+
key: 0,
|
48
|
+
class: "pos-relative z-index-4"
|
49
|
+
}, o.$attrs), [
|
50
|
+
u("button", {
|
51
|
+
onClick: t[0] || (t[0] = (f) => r()),
|
52
|
+
class: "pd-regular hover-scale-1 z-index-5 button-close-popup button"
|
53
|
+
}, [
|
54
|
+
n(g)
|
55
|
+
]),
|
56
|
+
b(o.$slots, "default")
|
57
|
+
], 16)) : p("", !0)
|
58
|
+
]),
|
59
|
+
_: 3
|
60
|
+
}),
|
61
|
+
u("div", {
|
62
|
+
onClick: t[1] || (t[1] = (f) => r()),
|
63
|
+
class: x([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
64
|
+
}, null, 2)
|
65
|
+
])) : p("", !0)
|
66
|
+
]),
|
67
|
+
_: 3
|
68
|
+
})
|
69
|
+
])) : p("", !0);
|
70
|
+
}
|
71
|
+
};
|
2
72
|
export {
|
3
|
-
|
73
|
+
I as default
|
4
74
|
};
|
@@ -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.
|
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("../../../../../../node_modules/vue3-carousel/dist/carousel.css.cjs");require("vue-i18n");require("../../../../../../node_modules/vue3-carousel/dist/carousel.es.cjs");require("../sections/SliderFeatures.vue2.cjs");const r=require("vue-router");require("../../store/auth.cjs");require("../../../middlewares/client/inputs.validation.cjs");const u={class:"cols-2-1_2 gap-small pd-small bg-white"},n=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",u,[e.createVNode(t,{class:"pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center"},{default:e.withCtx(({Component:i,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{ref:"page",key:l.path,localPosition:o.localPosition},null,8,["localPosition"]))]),_:2},1024)]),_:1}),n])}}};exports.default=s;
|
@@ -1,7 +1,7 @@
|
|
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
|
-
import "../../../../components/Field/Field.
|
4
|
-
import "../../../../components/Button/Button.
|
3
|
+
import "../../../../components/Field/Field.vue.js";
|
4
|
+
import "../../../../components/Button/Button.vue.js";
|
5
5
|
import "../../../../../../node_modules/vue3-carousel/dist/carousel.css.js";
|
6
6
|
import "vue-i18n";
|
7
7
|
import "../../../../../../node_modules/vue3-carousel/dist/carousel.es.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("../../../../components/Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("../../../../components/Field/Field.vue.cjs");const f=require("vue-router"),S=require("vue-i18n"),c=require("../../store/auth.cjs"),g=require("../../store/twofa.cjs"),y=require("../../../globals/store/globals.cjs"),b=require("../../localization/EnterCode.json.cjs"),D={class:"t-center pd-medium"},I={class:"mn-medium"},q={class:"mn-big t-transp"},k={class:"w-100 mn-big flex-nowrap flex"},C={key:1},N={__name:"EnterCode",setup(P){const m=f.useRoute(),v=f.useRouter(),{t:d}=S.useI18n(b.default),o=n.reactive({digits:["","","",""],error:null});n.watch(()=>o.digits[0],s=>{if(console.log(String(s)),console.log(String(s).length),s&&String(s).length>1){let e=String(s).split("");console.log(e);let t=[...o.digits];e.forEach((l,r)=>{console.log(r),console.log(t[r]),console.log(l),t[r]=l}),o.digits=t,u(3)}});const p=n.ref(null),i=n.ref(0);async function E(){try{await g.sendCode(c.state.user,m.query.type,c.state.user.phone?"phone":"email"),i.value=30;const s=setInterval(()=>{i.value>0?i.value-=1:clearInterval(s)},1e3)}catch{y.setError({response:{data:{errorCode:"CODE_NOT_SENT"}}})}}const a=(s,e)=>{if(s.key==="Backspace"&&(o.digits[e]===null||o.digits[e]===void 0||o.digits[e]==="")){s.preventDefault();const t=document.querySelectorAll("input"),l=e>0?t[e-1]:null;l&&(l.focus(),l.setSelectionRange(l.value.length,l.value.length))}},u=s=>{const e=document.querySelectorAll("input"),t=e[s+1],l=s>0?e[s-1]:null;if(o.digits[s]!==""&&o.digits[s]!==null&&o.digits[s]!==void 0&&s<4&&(s<3?t.focus():p.value.focus()),(o.digits[s]===null||o.digits[s]===void 0||o.digits[s]==="")&&s>0&&l.focus(),o.digits.every(r=>r!=="")){const r=o.digits.join(""),w=g.state.code.code.toString();r===w?(g.state.code.isValid=!0,v.push({path:"/auth/enter-password",query:{type:g.state.code.type,method:m.query.method}})):(y.setError({response:{data:{errorCode:"WRONG_CODE"}}}),p.value.focus(),o.digits=["","","",""])}};return(s,e)=>(n.openBlock(),n.createElementBlock("section",D,[n.createElementVNode("h3",I,n.toDisplayString(n.unref(d)("verifyNumberTitle")),1),n.createElementVNode("p",q,n.toDisplayString(n.unref(d)("instructions")),1),n.createElementVNode("div",k,[n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[0]||(e[0]=t=>o.digits[0]=t),ref_key:"firstInput",ref:p,maxlength:"1",onInput:e[1]||(e[1]=t=>u(0)),onPaste:e[2]||(e[2]=t=>s.onPaste(t,0)),onKeydown:e[3]||(e[3]=t=>a(t,0)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[0]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[4]||(e[4]=t=>o.digits[1]=t),maxlength:"1",onInput:e[5]||(e[5]=t=>u(1)),onPaste:e[6]||(e[6]=t=>s.onPaste(t,1)),onKeydown:e[7]||(e[7]=t=>a(t,1)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[1]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[8]||(e[8]=t=>o.digits[2]=t),maxlength:"1",onInput:e[9]||(e[9]=t=>u(2)),onPaste:e[10]||(e[10]=t=>s.onPaste(t,2)),onKeydown:e[11]||(e[11]=t=>a(t,2)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[2]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[12]||(e[12]=t=>o.digits[3]=t),maxlength:"1",onInput:e[13]||(e[13]=t=>u(3)),onPaste:e[14]||(e[14]=t=>s.onPaste(t,3)),onKeydown:e[15]||(e[15]=t=>a(t,3)),class:"w-100 h1 pd-small t-center bg-grey radius-small"},null,544),[[n.vModelText,o.digits[3]]])]),i.value<1?(n.openBlock(),n.createElementBlock("a",{key:0,onClick:E,class:"t-blue"},n.toDisplayString(n.unref(d)("resendCode")),1)):(n.openBlock(),n.createElementBlock("span",C,n.toDisplayString(i.value)+" "+n.toDisplayString(n.unref(d)("secondsResend")),1))]))}};exports.default=N;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { reactive as D, watch as $, ref as b, openBlock as v, createElementBlock as c, createElementVNode as r, toDisplayString as d, unref as m, withDirectives as g, vModelText as f } from "vue";
|
2
|
-
import "../../../../components/Field/Field.
|
2
|
+
import "../../../../components/Field/Field.vue.js";
|
3
3
|
import { useRoute as q, useRouter as K } from "vue-router";
|
4
4
|
import { useI18n as N } from "vue-i18n";
|
5
5
|
import { state as C } from "../../store/auth.js";
|
@@ -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");const l=require("../../../../components/Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs"),f=require("../../../../components/Button/Button.vue2.cjs"),d=require("vue-router"),h=require("vue-i18n"),t=require("../../store/auth.cjs"),i=require("../../../middlewares/client/inputs.validation.cjs"),w=require("../../localization/EnterPassword.json.cjs");require("./EnterPassword.vue2.cjs");const y={class:"t-left pd-medium"},_={class:"mn-small"},g={key:0,class:"mn-semi t-transp"},k={key:1,class:"mn-semi t-transp"},q={class:"mn-semi radius-small o-hidden"},B={key:2,class:"p-medium t-semi mn-semi"},E=e.createElementVNode("a",{class:"t-second",href:"https://thecommunephuket.com/legal/eula",target:"_blank",rel:"noopener noreferrer"},"End User License Agreement (EULA)",-1),P={key:0},v={key:1},b={__name:"EnterPassword",setup(V){const n=e.ref(null),{t:s}=h.useI18n(w.default),r=d.useRoute(),u=d.useRouter();e.ref("phone");async function c(){try{await i.validateInputs(n,i.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}r.query.method==="reset-password"&&await t.actions.updatePassword(t.state.user,r.query.type),r.query.method!=="reset-password"&&await t.actions.signup(t.state.user,r.query.type)}function p(){u.push({name:"User Profile",params:{_id:t.state.user._id},query:{afterAuth:"true"}})}return(m,o)=>(e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",_,e.toDisplayString(e.unref(s)("almostDone")),1),e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("p",g,e.toDisplayString(e.unref(s)("newPasswordPrompt")),1)):(e.openBlock(),e.createElementBlock("p",k,e.toDisplayString(e.unref(s)("registrationPasswordPrompt")),1)),e.createElementVNode("div",q,[e.createVNode(l.default,{field:t.state.user.password,"onUpdate:field":o[0]||(o[0]=a=>t.state.user.password=a),type:"password",validation:n.value,placeholder:e.unref(s)("passwordPlaceholder"),class:"bg-grey pd-small radius-small mn-thin"},null,8,["field","validation","placeholder"]),e.createVNode(l.default,{field:t.state.user.passwordRepeat,"onUpdate:field":o[1]||(o[1]=a=>t.state.user.passwordRepeat=a),type:"password",placeholder:e.unref(s)("repeatPasswordPlaceholder"),class:"bg-grey pd-small radius-small mn-thin"},null,8,["field","placeholder"])]),e.unref(r).query.method!=="reset-password"?(e.openBlock(),e.createElementBlock("div",B,[e.createTextVNode(" By registering, you agree to our "),E])):e.createCommentVNode("",!0),e.createVNode(f.default,{submit:c,callback:p,class:"mn-big"},{default:e.withCtx(()=>[e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("span",P,e.toDisplayString(e.unref(s)("changePasswordBtn")),1)):(e.openBlock(),e.createElementBlock("span",v,e.toDisplayString(e.unref(s)("registerBtn")),1))]),_:1})]))}};exports.default=b;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref as u, openBlock as o, createElementBlock as a, createElementVNode as m, toDisplayString as d, unref as e, createVNode as l, createTextVNode as g, createCommentVNode as P, withCtx as k } from "vue";
|
2
2
|
import "../../../../components/Tab/Tab.vue.js";
|
3
|
-
import c from "../../../../components/Field/Field.
|
4
|
-
import q from "../../../../components/Button/Button.
|
3
|
+
import c from "../../../../components/Field/Field.vue2.js";
|
4
|
+
import q from "../../../../components/Button/Button.vue2.js";
|
5
5
|
import { useRoute as b, useRouter as v } from "vue-router";
|
6
6
|
import { useI18n as E } from "vue-i18n";
|
7
7
|
import { state as s, actions as h } from "../../store/auth.js";
|
@@ -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");const l=require("../../../../components/Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs"),f=require("../../../../components/Button/Button.vue2.cjs"),d=require("vue-router"),t=require("../../store/auth.cjs"),u=require("../../store/invites.cjs"),c=require("../../../middlewares/client/inputs.validation.cjs");require("./Invite.vue2.cjs");const h={class:"t-left pd-medium"},v=e.createElementVNode("h3",{class:"mn-small"},"Вы были пригилашены в организацию",-1),y=e.createElementVNode("p",{class:"mn-semi t-transp"},"Пожалуйста, укажите пароль, на этом регистрация будет закочена.",-1),b={class:"mn-semi radius-small o-hidden"},q={key:0},k={key:1},B={__name:"Invite",async setup(E){let r,n;const i=e.ref(null),s=d.useRoute(),p=d.useRouter();[r,n]=e.withAsyncContext(()=>u.actions.readOne(s.query.inviteCode)),await r,n();async function m(){try{await c.validateInputs(i,c.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}await t.actions.signup(t.state.user,s.query.type,s.query.inviteCode)}function _(){p.push({name:"Dashboard"})}return(w,a)=>(e.openBlock(),e.createElementBlock("section",h,[v,y,e.createElementVNode("div",b,[e.createVNode(l.default,{field:t.state.user.password,"onUpdate:field":a[0]||(a[0]=o=>t.state.user.password=o),type:"password",validation:i.value,label:"Пароль",placeholder:"******",class:"bg-white radius-small mn-small"},null,8,["field","validation"]),e.createVNode(l.default,{field:t.state.user.passwordRepeat,"onUpdate:field":a[1]||(a[1]=o=>t.state.user.passwordRepeat=o),type:"password",label:"Повторите пароль",placeholder:"******",class:"bg-white radius-small mn-semi"},null,8,["field"])]),e.createVNode(f.default,{disabled:u.state.invite===null,submit:m,callback:_,class:"mn-big"},{default:e.withCtx(()=>[e.unref(s).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("span",q,"Поменять пароль")):(e.openBlock(),e.createElementBlock("span",k,"Зарегистрироваться"))]),_:1},8,["disabled"])]))}};exports.default=B;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref as w, withAsyncContext as h, openBlock as o, createElementBlock as r, createElementVNode as n, createVNode as i, withCtx as y, unref as b } from "vue";
|
2
2
|
import "../../../../components/Tab/Tab.vue.js";
|
3
|
-
import p from "../../../../components/Field/Field.
|
4
|
-
import v from "../../../../components/Button/Button.
|
3
|
+
import p from "../../../../components/Field/Field.vue2.js";
|
4
|
+
import v from "../../../../components/Button/Button.vue2.js";
|
5
5
|
import { useRoute as k, useRouter as g } from "vue-router";
|
6
6
|
import { state as e, actions as q } from "../../store/auth.js";
|
7
7
|
import { actions as x, state as C } from "../../store/invites.js";
|