@ozdao/prometheus-framework 0.2.122 → 0.2.123
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -94
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +94 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -84
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +84 -1
- 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/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +1 -77
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +77 -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 +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/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
- 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/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +2 -2
- 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/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +18 -17
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.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 +1 -1
- 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 +1 -13
- 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 +13 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- 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 +3 -3
- 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 +2 -2
- 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/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.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/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
- 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 +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 +3 -3
- 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 +3 -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/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- 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 +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.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 +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 +3 -3
- 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/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 +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/modules/gallery/components/pages/Gallery.vue +1 -0
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1,94 +1 @@
|
|
1
|
-
|
2
|
-
import w from "../Loader/Loader.vue2.js";
|
3
|
-
import "./Button.vue2.js";
|
4
|
-
const L = ["disabled"], S = {
|
5
|
-
key: 2,
|
6
|
-
class: "t-semi loading t-black"
|
7
|
-
}, T = {
|
8
|
-
key: 3,
|
9
|
-
class: "error"
|
10
|
-
}, x = {
|
11
|
-
key: 0,
|
12
|
-
class: "button-counter"
|
13
|
-
}, j = {
|
14
|
-
__name: "Button",
|
15
|
-
props: {
|
16
|
-
submit: {
|
17
|
-
type: Function,
|
18
|
-
default: async () => {
|
19
|
-
console.log("Button click.");
|
20
|
-
}
|
21
|
-
},
|
22
|
-
text: {
|
23
|
-
type: Object,
|
24
|
-
default: (e) => (console.log(e), e = {
|
25
|
-
...e.text,
|
26
|
-
success: "✔",
|
27
|
-
error: "✖"
|
28
|
-
})
|
29
|
-
},
|
30
|
-
counter: {
|
31
|
-
type: Object
|
32
|
-
},
|
33
|
-
callback: {
|
34
|
-
type: Function,
|
35
|
-
default: async () => {
|
36
|
-
console.log("Button callback.");
|
37
|
-
}
|
38
|
-
},
|
39
|
-
callbackDelay: {
|
40
|
-
type: Number,
|
41
|
-
default: 750
|
42
|
-
},
|
43
|
-
showSucces: {
|
44
|
-
type: Boolean,
|
45
|
-
default: !0
|
46
|
-
},
|
47
|
-
showLoader: {
|
48
|
-
type: Boolean,
|
49
|
-
default: !0
|
50
|
-
},
|
51
|
-
validation: {
|
52
|
-
type: Boolean,
|
53
|
-
default: !1
|
54
|
-
}
|
55
|
-
},
|
56
|
-
emits: ["error"],
|
57
|
-
setup(e, { emit: b }) {
|
58
|
-
const l = e, v = b, t = n(null), a = n(null), o = n(!1), u = n(!1);
|
59
|
-
async function m() {
|
60
|
-
t.value.style["pointer-events"] = "none", a.value = null, o.value = !0;
|
61
|
-
const s = () => {
|
62
|
-
t.value && (t.value.classList.replace("bg-second", "bg-main"), t.value.style.pointerEvents = "auto", o.value = !1, u.value = !1, a.value = null);
|
63
|
-
};
|
64
|
-
try {
|
65
|
-
await l.submit(), t.value.classList.replace("bg-main", "bg-second"), o.value = !1, l.showSucces ? (u.value = !0, setTimeout(s, 500)) : s(), l.callback && setTimeout(() => l.callback(), l.callbackDelay);
|
66
|
-
} catch (d) {
|
67
|
-
v("error", d), t.value.classList.replace("bg-main", "bg-fourth-nano"), a.value = l.error, setTimeout(() => {
|
68
|
-
s(), t.value.classList.replace("bg-fourth-nano", "bg-main");
|
69
|
-
}, 1330);
|
70
|
-
}
|
71
|
-
}
|
72
|
-
return (s, d) => (c(), r("button", {
|
73
|
-
onClick: y(m, ["stop"]),
|
74
|
-
disabled: e.validation,
|
75
|
-
ref_key: "button",
|
76
|
-
ref: t,
|
77
|
-
class: "button"
|
78
|
-
}, [
|
79
|
-
k(h, { name: "moveFromTopAbsolute" }, {
|
80
|
-
default: p(() => [
|
81
|
-
!o.value && !a.value && !u.value || !e.showLoader ? g(s.$slots, "default", { key: 0 }) : o.value && !a.value && e.showLoader ? (c(), B(w, {
|
82
|
-
key: 1,
|
83
|
-
class: "pos-relative pos-t-0 pos-l-0 loading"
|
84
|
-
})) : u.value && e.showSucces ? (c(), r("span", S, i(e.text.success), 1)) : a.value ? (c(), r("span", T, i(a.value), 1)) : f("", !0)
|
85
|
-
]),
|
86
|
-
_: 3
|
87
|
-
}),
|
88
|
-
e.counter ? (c(), r("p", x, i(e.counter), 1)) : f("", !0)
|
89
|
-
], 8, L));
|
90
|
-
}
|
91
|
-
};
|
92
|
-
export {
|
93
|
-
j as default
|
94
|
-
};
|
1
|
+
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../Loader/Loader.vue2.cjs");require("./Button.vue.cjs");const v=["disabled"],b={key:2,class:"t-semi loading t-black"},m={key:3,class:"error"},y={key:0,class:"button-counter"},k={__name:"Button",props:{submit:{type:Function,default:async()=>{console.log("Button click.")}},text:{type:Object,default:t=>(console.log(t),t={...t.text,success:"✔",error:"✖"})},counter:{type:Object},callback:{type:Function,default:async()=>{console.log("Button callback.")}},callbackDelay:{type:Number,default:750},showSucces:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!0},validation:{type:Boolean,default:!1}},emits:["error"],setup(t,{emit:r}){const o=t,i=r,l=e.ref(null),a=e.ref(null),s=e.ref(!1),n=e.ref(!1);async function d(){l.value.style["pointer-events"]="none",a.value=null,s.value=!0;const c=()=>{l.value&&(l.value.classList.replace("bg-second","bg-main"),l.value.style.pointerEvents="auto",s.value=!1,n.value=!1,a.value=null)};try{await o.submit(),l.value.classList.replace("bg-main","bg-second"),s.value=!1,o.showSucces?(n.value=!0,setTimeout(c,500)):c(),o.callback&&setTimeout(()=>o.callback(),o.callbackDelay)}catch(u){i("error",u),l.value.classList.replace("bg-main","bg-fourth-nano"),a.value=o.error,setTimeout(()=>{c(),l.value.classList.replace("bg-fourth-nano","bg-main")},1330)}}return(c,u)=>(e.openBlock(),e.createElementBlock("button",{onClick:e.withModifiers(d,["stop"]),disabled:t.validation,ref_key:"button",ref:l,class:"button"},[e.createVNode(e.Transition,{name:"moveFromTopAbsolute"},{default:e.withCtx(()=>[!s.value&&!a.value&&!n.value||!t.showLoader?e.renderSlot(c.$slots,"default",{key:0}):s.value&&!a.value&&t.showLoader?(e.openBlock(),e.createBlock(f.default,{key:1,class:"pos-relative pos-t-0 pos-l-0 loading"})):n.value&&t.showSucces?(e.openBlock(),e.createElementBlock("span",b,e.toDisplayString(t.text.success),1)):a.value?(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)]),_:3}),t.counter?(e.openBlock(),e.createElementBlock("p",y,e.toDisplayString(t.counter),1)):e.createCommentVNode("",!0)],8,v))}};exports.default=k;
|
@@ -1 +1,94 @@
|
|
1
|
-
|
1
|
+
import { ref as n, openBlock as c, createElementBlock as r, withModifiers as y, createVNode as k, Transition as h, withCtx as p, renderSlot as g, createBlock as B, toDisplayString as i, createCommentVNode as f } from "vue";
|
2
|
+
import w from "../Loader/Loader.vue2.js";
|
3
|
+
import "./Button.vue.js";
|
4
|
+
const L = ["disabled"], S = {
|
5
|
+
key: 2,
|
6
|
+
class: "t-semi loading t-black"
|
7
|
+
}, T = {
|
8
|
+
key: 3,
|
9
|
+
class: "error"
|
10
|
+
}, x = {
|
11
|
+
key: 0,
|
12
|
+
class: "button-counter"
|
13
|
+
}, j = {
|
14
|
+
__name: "Button",
|
15
|
+
props: {
|
16
|
+
submit: {
|
17
|
+
type: Function,
|
18
|
+
default: async () => {
|
19
|
+
console.log("Button click.");
|
20
|
+
}
|
21
|
+
},
|
22
|
+
text: {
|
23
|
+
type: Object,
|
24
|
+
default: (e) => (console.log(e), e = {
|
25
|
+
...e.text,
|
26
|
+
success: "✔",
|
27
|
+
error: "✖"
|
28
|
+
})
|
29
|
+
},
|
30
|
+
counter: {
|
31
|
+
type: Object
|
32
|
+
},
|
33
|
+
callback: {
|
34
|
+
type: Function,
|
35
|
+
default: async () => {
|
36
|
+
console.log("Button callback.");
|
37
|
+
}
|
38
|
+
},
|
39
|
+
callbackDelay: {
|
40
|
+
type: Number,
|
41
|
+
default: 750
|
42
|
+
},
|
43
|
+
showSucces: {
|
44
|
+
type: Boolean,
|
45
|
+
default: !0
|
46
|
+
},
|
47
|
+
showLoader: {
|
48
|
+
type: Boolean,
|
49
|
+
default: !0
|
50
|
+
},
|
51
|
+
validation: {
|
52
|
+
type: Boolean,
|
53
|
+
default: !1
|
54
|
+
}
|
55
|
+
},
|
56
|
+
emits: ["error"],
|
57
|
+
setup(e, { emit: b }) {
|
58
|
+
const l = e, v = b, t = n(null), a = n(null), o = n(!1), u = n(!1);
|
59
|
+
async function m() {
|
60
|
+
t.value.style["pointer-events"] = "none", a.value = null, o.value = !0;
|
61
|
+
const s = () => {
|
62
|
+
t.value && (t.value.classList.replace("bg-second", "bg-main"), t.value.style.pointerEvents = "auto", o.value = !1, u.value = !1, a.value = null);
|
63
|
+
};
|
64
|
+
try {
|
65
|
+
await l.submit(), t.value.classList.replace("bg-main", "bg-second"), o.value = !1, l.showSucces ? (u.value = !0, setTimeout(s, 500)) : s(), l.callback && setTimeout(() => l.callback(), l.callbackDelay);
|
66
|
+
} catch (d) {
|
67
|
+
v("error", d), t.value.classList.replace("bg-main", "bg-fourth-nano"), a.value = l.error, setTimeout(() => {
|
68
|
+
s(), t.value.classList.replace("bg-fourth-nano", "bg-main");
|
69
|
+
}, 1330);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
return (s, d) => (c(), r("button", {
|
73
|
+
onClick: y(m, ["stop"]),
|
74
|
+
disabled: e.validation,
|
75
|
+
ref_key: "button",
|
76
|
+
ref: t,
|
77
|
+
class: "button"
|
78
|
+
}, [
|
79
|
+
k(h, { name: "moveFromTopAbsolute" }, {
|
80
|
+
default: p(() => [
|
81
|
+
!o.value && !a.value && !u.value || !e.showLoader ? g(s.$slots, "default", { key: 0 }) : o.value && !a.value && e.showLoader ? (c(), B(w, {
|
82
|
+
key: 1,
|
83
|
+
class: "pos-relative pos-t-0 pos-l-0 loading"
|
84
|
+
})) : u.value && e.showSucces ? (c(), r("span", S, i(e.text.success), 1)) : a.value ? (c(), r("span", T, i(a.value), 1)) : f("", !0)
|
85
|
+
]),
|
86
|
+
_: 3
|
87
|
+
}),
|
88
|
+
e.counter ? (c(), r("p", x, i(e.counter), 1)) : f("", !0)
|
89
|
+
], 8, L));
|
90
|
+
}
|
91
|
+
};
|
92
|
+
export {
|
93
|
+
j as default
|
94
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1,84 +1 @@
|
|
1
|
-
|
2
|
-
import "./Field.vue2.js";
|
3
|
-
import g from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const w = {
|
5
|
-
key: 0,
|
6
|
-
class: "t-transp mn-r-small"
|
7
|
-
}, F = { class: "w-100" }, B = ["type", "value", "placeholder", "tabindex", "disabled"], p = ["value", "placeholder", "tabindex", "disabled"], C = {
|
8
|
-
key: 1,
|
9
|
-
class: "t-transp mn-l-small"
|
10
|
-
}, E = {
|
11
|
-
key: 0,
|
12
|
-
class: "mn-t-thin mn-b-thin mn-b-thin invalid-feedback"
|
13
|
-
}, I = {
|
14
|
-
__name: "Field",
|
15
|
-
props: {
|
16
|
-
label: null,
|
17
|
-
symbol: null,
|
18
|
-
type: "text",
|
19
|
-
placeholder: "Enter something here",
|
20
|
-
field: null,
|
21
|
-
value: null,
|
22
|
-
validation: !1,
|
23
|
-
disabled: null,
|
24
|
-
tabindex: -1
|
25
|
-
},
|
26
|
-
emits: ["update:field", "focus", "blur"],
|
27
|
-
setup(e, { emit: b }) {
|
28
|
-
const a = b, s = e;
|
29
|
-
s.value && a("update:field", s.value);
|
30
|
-
const r = f(s.field);
|
31
|
-
return (m, l) => (n(), d(v, null, [
|
32
|
-
i("div", {
|
33
|
-
class: c([[
|
34
|
-
m.$attrs.class,
|
35
|
-
{
|
36
|
-
"bg-fourth-nano": e.validation
|
37
|
-
}
|
38
|
-
], "flex-center flex-nowrap flex"])
|
39
|
-
}, [
|
40
|
-
e.label ? (n(), d("div", w, [
|
41
|
-
i("span", null, o(e.label), 1)
|
42
|
-
])) : u("", !0),
|
43
|
-
i("div", F, [
|
44
|
-
e.type !== "textarea" ? (n(), d("input", {
|
45
|
-
key: 0,
|
46
|
-
onInput: l[0] || (l[0] = (t) => r.value = a("update:field", t.target.value)),
|
47
|
-
onFocus: l[1] || (l[1] = (t) => a("focus", t)),
|
48
|
-
onBlur: l[2] || (l[2] = (t) => a("blur", t)),
|
49
|
-
type: e.type,
|
50
|
-
class: "w-100",
|
51
|
-
value: e.field,
|
52
|
-
placeholder: e.placeholder,
|
53
|
-
tabindex: e.tabindex,
|
54
|
-
disabled: e.disabled
|
55
|
-
}, null, 40, B)) : (n(), d("textarea", {
|
56
|
-
key: 1,
|
57
|
-
onInput: l[3] || (l[3] = (t) => r.value = a("update:field", t.target.value)),
|
58
|
-
onFocus: l[4] || (l[4] = (t) => a("focus", t)),
|
59
|
-
onBlur: l[5] || (l[5] = (t) => a("blur", t)),
|
60
|
-
class: "w-100",
|
61
|
-
style: { resize: "vertical" },
|
62
|
-
value: e.field,
|
63
|
-
placeholder: e.placeholder,
|
64
|
-
tabindex: e.tabindex,
|
65
|
-
disabled: e.disabled
|
66
|
-
}, null, 40, p))
|
67
|
-
]),
|
68
|
-
x(m.$slots, "default", {}, void 0, !0),
|
69
|
-
e.symbol ? (n(), d("div", C, [
|
70
|
-
i("span", null, o(e.symbol), 1)
|
71
|
-
])) : u("", !0)
|
72
|
-
], 2),
|
73
|
-
y(h, { name: "fade" }, {
|
74
|
-
default: k(() => [
|
75
|
-
e.validation ? (n(), d("div", E, " * " + o(e.validation.message), 1)) : u("", !0)
|
76
|
-
]),
|
77
|
-
_: 1
|
78
|
-
})
|
79
|
-
], 64));
|
80
|
-
}
|
81
|
-
}, S = /* @__PURE__ */ g(I, [["__scopeId", "data-v-47c78b3c"]]);
|
82
|
-
export {
|
83
|
-
S as default
|
84
|
-
};
|
1
|
+
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
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","disabled"],b=["value","placeholder","tabindex","disabled"],f={key:1,class:"t-transp mn-l-small"},v={key:0,class:"mn-t-thin mn-b-thin mn-b-thin invalid-feedback"},k={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,value:null,validation:!1,disabled:null,tabindex:-1},emits:["update:field","focus","blur"],setup(l,{emit:s}){const a=s,d=l;d.value&&a("update:field",d.value);const i=e.ref(d.field);return(o,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[o.$attrs.class,{"bg-fourth-nano":l.validation}],"flex-center flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[l.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:t[0]||(t[0]=n=>i.value=a("update:field",n.target.value)),onFocus:t[1]||(t[1]=n=>a("focus",n)),onBlur:t[2]||(t[2]=n=>a("blur",n)),type:l.type,class:"w-100",value:l.field,placeholder:l.placeholder,tabindex:l.tabindex,disabled:l.disabled},null,40,m)):(e.openBlock(),e.createElementBlock("textarea",{key:1,onInput:t[3]||(t[3]=n=>i.value=a("update:field",n.target.value)),onFocus:t[4]||(t[4]=n=>a("focus",n)),onBlur:t[5]||(t[5]=n=>a("blur",n)),class:"w-100",style:{resize:"vertical"},value:l.field,placeholder:l.placeholder,tabindex:l.tabindex,disabled:l.disabled},null,40,b))]),e.renderSlot(o.$slots,"default",{},void 0,!0),l.symbol?(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("span",null,e.toDisplayString(l.symbol),1)])):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(l.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},y=u.default(k,[["__scopeId","data-v-47c78b3c"]]);exports.default=y;
|
@@ -1 +1,84 @@
|
|
1
|
-
|
1
|
+
import { ref as f, openBlock as n, createElementBlock as d, Fragment as v, createElementVNode as i, normalizeClass as c, toDisplayString as o, createCommentVNode as u, renderSlot as x, createVNode as y, Transition as h, withCtx as k } from "vue";
|
2
|
+
import "./Field.vue.js";
|
3
|
+
import g from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
+
const w = {
|
5
|
+
key: 0,
|
6
|
+
class: "t-transp mn-r-small"
|
7
|
+
}, F = { class: "w-100" }, B = ["type", "value", "placeholder", "tabindex", "disabled"], p = ["value", "placeholder", "tabindex", "disabled"], C = {
|
8
|
+
key: 1,
|
9
|
+
class: "t-transp mn-l-small"
|
10
|
+
}, E = {
|
11
|
+
key: 0,
|
12
|
+
class: "mn-t-thin mn-b-thin mn-b-thin invalid-feedback"
|
13
|
+
}, I = {
|
14
|
+
__name: "Field",
|
15
|
+
props: {
|
16
|
+
label: null,
|
17
|
+
symbol: null,
|
18
|
+
type: "text",
|
19
|
+
placeholder: "Enter something here",
|
20
|
+
field: null,
|
21
|
+
value: null,
|
22
|
+
validation: !1,
|
23
|
+
disabled: null,
|
24
|
+
tabindex: -1
|
25
|
+
},
|
26
|
+
emits: ["update:field", "focus", "blur"],
|
27
|
+
setup(e, { emit: b }) {
|
28
|
+
const a = b, s = e;
|
29
|
+
s.value && a("update:field", s.value);
|
30
|
+
const r = f(s.field);
|
31
|
+
return (m, l) => (n(), d(v, null, [
|
32
|
+
i("div", {
|
33
|
+
class: c([[
|
34
|
+
m.$attrs.class,
|
35
|
+
{
|
36
|
+
"bg-fourth-nano": e.validation
|
37
|
+
}
|
38
|
+
], "flex-center flex-nowrap flex"])
|
39
|
+
}, [
|
40
|
+
e.label ? (n(), d("div", w, [
|
41
|
+
i("span", null, o(e.label), 1)
|
42
|
+
])) : u("", !0),
|
43
|
+
i("div", F, [
|
44
|
+
e.type !== "textarea" ? (n(), d("input", {
|
45
|
+
key: 0,
|
46
|
+
onInput: l[0] || (l[0] = (t) => r.value = a("update:field", t.target.value)),
|
47
|
+
onFocus: l[1] || (l[1] = (t) => a("focus", t)),
|
48
|
+
onBlur: l[2] || (l[2] = (t) => a("blur", t)),
|
49
|
+
type: e.type,
|
50
|
+
class: "w-100",
|
51
|
+
value: e.field,
|
52
|
+
placeholder: e.placeholder,
|
53
|
+
tabindex: e.tabindex,
|
54
|
+
disabled: e.disabled
|
55
|
+
}, null, 40, B)) : (n(), d("textarea", {
|
56
|
+
key: 1,
|
57
|
+
onInput: l[3] || (l[3] = (t) => r.value = a("update:field", t.target.value)),
|
58
|
+
onFocus: l[4] || (l[4] = (t) => a("focus", t)),
|
59
|
+
onBlur: l[5] || (l[5] = (t) => a("blur", t)),
|
60
|
+
class: "w-100",
|
61
|
+
style: { resize: "vertical" },
|
62
|
+
value: e.field,
|
63
|
+
placeholder: e.placeholder,
|
64
|
+
tabindex: e.tabindex,
|
65
|
+
disabled: e.disabled
|
66
|
+
}, null, 40, p))
|
67
|
+
]),
|
68
|
+
x(m.$slots, "default", {}, void 0, !0),
|
69
|
+
e.symbol ? (n(), d("div", C, [
|
70
|
+
i("span", null, o(e.symbol), 1)
|
71
|
+
])) : u("", !0)
|
72
|
+
], 2),
|
73
|
+
y(h, { name: "fade" }, {
|
74
|
+
default: k(() => [
|
75
|
+
e.validation ? (n(), d("div", E, " * " + o(e.validation.message), 1)) : u("", !0)
|
76
|
+
]),
|
77
|
+
_: 1
|
78
|
+
})
|
79
|
+
], 64));
|
80
|
+
}
|
81
|
+
}, S = /* @__PURE__ */ g(I, [["__scopeId", "data-v-47c78b3c"]]);
|
82
|
+
export {
|
83
|
+
S as default
|
84
|
+
};
|
@@ -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"},w=["innerHTML"],_={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["Lowest THC, please!","Something with banana flavors?","I'm in the mood for trippy vibes."],ru:["Я хочу самый низкий THC","Я хочу чего-нибудь бананового","Я хочу курнуть хейза"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(s,{emit:y}){const t=s,{t:F,locale:c}=B.useI18n();let r=e.ref(0),n=e.ref(t.input),p=e.ref(t.placeholder),i=e.ref(t.enableTyping),d=e.ref(null),f=e.ref(""),o=e.ref(!0),v=null;const g=y;function b(){g("action")}function T(a){g("update:input",a),f.value=a}function m(){r.value=(r.value+1)%t.placeholderTexts[c.value].length}function I(){i.value=!1,clearInterval(d.value),p.value=t.placeholder,f.value||(n.value="")}function x(){!f.value&&t.enableTyping&&(i.value=!0,p.value="",h())}function h(){let a=t.placeholderTexts[c.value][r.value],l=0,u=!1;v=setInterval(()=>{o.value=!o.value},200),d.value=setInterval(()=>{i.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,m(),a=t.placeholderTexts[c.value][r.value]))},t.typingSpeed)}return e.onMounted(()=>{t.enableTyping&&h()}),e.watchEffect(()=>{i.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),T],placeholder:e.unref(i)?" ":e.unref(p),onInput:m,onFocus:I,onBlur:x,class:"w-100 p-medium t-regular uppercase pd-small"},null,8,["field","placeholder"]),s.action?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:b,class:"t-medium radius-big uppercase cursor-pointer pd-l-semi pd-r-semi w-max hover-bg-fifth t-semi transition-linear transition-timing-1 t-black bg-main",innerHTML:s.action},null,8,w)):e.createCommentVNode("",!0)]))}};exports.default=_;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as i, onMounted as S, watchEffect as F, openBlock as T, createElementBlock as b, createVNode as C, unref as v, isRef as H, createCommentVNode as _ } from "vue";
|
2
|
-
import L from "../Field/Field.
|
2
|
+
import L from "../Field/Field.vue2.js";
|
3
3
|
import { useI18n as M } from "vue-i18n";
|
4
4
|
const N = { class: "pd-thin radius-extra flex-nowrap flex" }, V = ["innerHTML"], P = {
|
5
5
|
__name: "FieldBig",
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1,77 +1 @@
|
|
1
|
-
|
2
|
-
import { useRoute as T, useRouter as $ } from "vue-router";
|
3
|
-
import { useI18n as C } from "vue-i18n";
|
4
|
-
import O from "../../modules/icons/navigation/IconCross.vue.js";
|
5
|
-
import "./Popup.vue2.js";
|
6
|
-
const h = {
|
7
|
-
key: "popup-content",
|
8
|
-
class: "pd-small popup-wrapper"
|
9
|
-
}, w = {
|
10
|
-
key: 0,
|
11
|
-
class: "mn-b-small"
|
12
|
-
}, L = {
|
13
|
-
__name: "Popup",
|
14
|
-
props: {
|
15
|
-
isPopupOpen: {
|
16
|
-
type: Boolean,
|
17
|
-
default: !1
|
18
|
-
},
|
19
|
-
style: String,
|
20
|
-
title: String
|
21
|
-
},
|
22
|
-
emits: ["close-popup"],
|
23
|
-
setup(e, { emit: c }) {
|
24
|
-
const d = e, f = c;
|
25
|
-
function r() {
|
26
|
-
f("close-popup");
|
27
|
-
}
|
28
|
-
return y(() => d.isPopupOpen, (t) => {
|
29
|
-
t ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
30
|
-
}), T(), $(), C({
|
31
|
-
messages: {
|
32
|
-
en: {},
|
33
|
-
ru: {}
|
34
|
-
}
|
35
|
-
}), (t, o) => (s(), i(l, {
|
36
|
-
name: "TransitionTranslateY",
|
37
|
-
appear: ""
|
38
|
-
}, {
|
39
|
-
default: a(() => [
|
40
|
-
e.isPopupOpen ? (s(), i(k, {
|
41
|
-
key: 0,
|
42
|
-
to: "body"
|
43
|
-
}, [
|
44
|
-
e.isPopupOpen ? (s(), p("div", h, [
|
45
|
-
m(l, {
|
46
|
-
name: "TransitionTranslateY",
|
47
|
-
mode: "out-in"
|
48
|
-
}, {
|
49
|
-
default: a(() => [
|
50
|
-
u("section", P({ class: "pos-relative z-index-4" }, t.$attrs, {
|
51
|
-
class: t.$attrs.class
|
52
|
-
}), [
|
53
|
-
e.title ? (s(), p("h4", w, b(e.title), 1)) : n("", !0),
|
54
|
-
m(O, {
|
55
|
-
fill: "rgb(var(--white))",
|
56
|
-
onClick: o[0] || (o[0] = (v) => r()),
|
57
|
-
class: "cursor-pointer bg-second pd-micro radius-extra pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-medium z-index-5"
|
58
|
-
}),
|
59
|
-
g(t.$slots, "default")
|
60
|
-
], 16)
|
61
|
-
]),
|
62
|
-
_: 3
|
63
|
-
}),
|
64
|
-
u("div", {
|
65
|
-
onClick: o[1] || (o[1] = (v) => r()),
|
66
|
-
class: x([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
67
|
-
}, null, 2)
|
68
|
-
])) : n("", !0)
|
69
|
-
])) : n("", !0)
|
70
|
-
]),
|
71
|
-
_: 3
|
72
|
-
}));
|
73
|
-
}
|
74
|
-
};
|
75
|
-
export {
|
76
|
-
L as default
|
77
|
-
};
|
1
|
+
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),p=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={key:0,class:"mn-b-small"},k={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String,title:String},emits:["close-popup"],setup(t,{emit:l}){const i=t,a=l;function n(){a("close-popup")}e.watch(()=>i.isPopupOpen,o=>{o?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),r.useRoute(),r.useRouter();const u={messages:{en:{},ru:{}}};return p.useI18n(u),(o,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"TransitionTranslateY",appear:""},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[t.isPopupOpen?(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[e.createElementVNode("section",e.mergeProps({class:"pos-relative z-index-4"},o.$attrs,{class:o.$attrs.class}),[t.title?(e.openBlock(),e.createElementBlock("h4",v,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.createVNode(d.default,{fill:"rgb(var(--white))",onClick:s[0]||(s[0]=c=>n()),class:"cursor-pointer bg-second pd-micro radius-extra pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-medium z-index-5"}),e.renderSlot(o.$slots,"default")],16)]),_:3}),e.createElementVNode("div",{onClick:s[1]||(s[1]=c=>n()),class:e.normalizeClass([{active:t.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:3}))}};exports.default=k;
|
@@ -1 +1,77 @@
|
|
1
|
-
|
1
|
+
import { watch as y, openBlock as s, createBlock as i, Transition as l, withCtx as a, Teleport as k, createElementBlock as p, createVNode as m, createElementVNode as u, mergeProps as P, toDisplayString as b, createCommentVNode as n, renderSlot as g, normalizeClass as x } from "vue";
|
2
|
+
import { useRoute as T, useRouter as $ } from "vue-router";
|
3
|
+
import { useI18n as C } from "vue-i18n";
|
4
|
+
import O from "../../modules/icons/navigation/IconCross.vue.js";
|
5
|
+
import "./Popup.vue.js";
|
6
|
+
const h = {
|
7
|
+
key: "popup-content",
|
8
|
+
class: "pd-small popup-wrapper"
|
9
|
+
}, w = {
|
10
|
+
key: 0,
|
11
|
+
class: "mn-b-small"
|
12
|
+
}, L = {
|
13
|
+
__name: "Popup",
|
14
|
+
props: {
|
15
|
+
isPopupOpen: {
|
16
|
+
type: Boolean,
|
17
|
+
default: !1
|
18
|
+
},
|
19
|
+
style: String,
|
20
|
+
title: String
|
21
|
+
},
|
22
|
+
emits: ["close-popup"],
|
23
|
+
setup(e, { emit: c }) {
|
24
|
+
const d = e, f = c;
|
25
|
+
function r() {
|
26
|
+
f("close-popup");
|
27
|
+
}
|
28
|
+
return y(() => d.isPopupOpen, (t) => {
|
29
|
+
t ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
30
|
+
}), T(), $(), C({
|
31
|
+
messages: {
|
32
|
+
en: {},
|
33
|
+
ru: {}
|
34
|
+
}
|
35
|
+
}), (t, o) => (s(), i(l, {
|
36
|
+
name: "TransitionTranslateY",
|
37
|
+
appear: ""
|
38
|
+
}, {
|
39
|
+
default: a(() => [
|
40
|
+
e.isPopupOpen ? (s(), i(k, {
|
41
|
+
key: 0,
|
42
|
+
to: "body"
|
43
|
+
}, [
|
44
|
+
e.isPopupOpen ? (s(), p("div", h, [
|
45
|
+
m(l, {
|
46
|
+
name: "TransitionTranslateY",
|
47
|
+
mode: "out-in"
|
48
|
+
}, {
|
49
|
+
default: a(() => [
|
50
|
+
u("section", P({ class: "pos-relative z-index-4" }, t.$attrs, {
|
51
|
+
class: t.$attrs.class
|
52
|
+
}), [
|
53
|
+
e.title ? (s(), p("h4", w, b(e.title), 1)) : n("", !0),
|
54
|
+
m(O, {
|
55
|
+
fill: "rgb(var(--white))",
|
56
|
+
onClick: o[0] || (o[0] = (v) => r()),
|
57
|
+
class: "cursor-pointer bg-second pd-micro radius-extra pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-medium z-index-5"
|
58
|
+
}),
|
59
|
+
g(t.$slots, "default")
|
60
|
+
], 16)
|
61
|
+
]),
|
62
|
+
_: 3
|
63
|
+
}),
|
64
|
+
u("div", {
|
65
|
+
onClick: o[1] || (o[1] = (v) => r()),
|
66
|
+
class: x([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
67
|
+
}, null, 2)
|
68
|
+
])) : n("", !0)
|
69
|
+
])) : n("", !0)
|
70
|
+
]),
|
71
|
+
_: 3
|
72
|
+
}));
|
73
|
+
}
|
74
|
+
};
|
75
|
+
export {
|
76
|
+
L as default
|
77
|
+
};
|
@@ -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/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-transp-25 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,8 +1,8 @@
|
|
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.
|
3
|
+
import "../../../../components/Field/Field.vue.js";
|
4
4
|
import "../../../../components/Loader/Loader.vue.js";
|
5
|
-
import "../../../../components/Button/Button.
|
5
|
+
import "../../../../components/Button/Button.vue.js";
|
6
6
|
import "vue-i18n";
|
7
7
|
import "../sections/SliderFeatures.vue2.js";
|
8
8
|
import { useRoute as _, useRouter as f } from "vue-router";
|
@@ -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"),w=require("vue-i18n"),E=require("../../store/auth.cjs"),p=require("../../store/twofa.cjs"),c=require("../../../globals/store/globals.cjs"),S=require("../../localization/EnterCode.json.cjs"),q={class:"t-center pd-medium"},D={class:"mn-b-medium"},I={class:"mn-b-big t-transp"},k={class:"w-100 mn-b-big flex-nowrap flex"},C={key:1},N={__name:"EnterCode",setup(V){const g=f.useRoute(),v=f.useRouter(),{t:d}=w.useI18n({useScope:"global",...S.default}),o=n.reactive({digits:["","","",""],error:null});n.watch(()=>o.digits[0],s=>{if(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 m=n.ref(null),i=n.ref(0);async function y(){try{await p.sendCode(E.state.user,g.query.method,g.query.type),i.value=30;const s=setInterval(()=>{i.value>0?i.value-=1:clearInterval(s)},1e3)}catch{c.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():m.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(""),b=p.state.code.code.toString();r===b?(p.state.code.isValid=!0,v.push({path:"/auth/enter-password",query:{type:p.state.code.type,method:g.query.method}})):(c.setError({response:{data:{errorCode:"WRONG_CODE"}}}),m.value.focus(),o.digits=["","","",""])}};return(s,e)=>(n.openBlock(),n.createElementBlock("section",q,[n.createElementVNode("h3",D,n.toDisplayString(n.unref(d)("verifyNumberTitle")),1),n.createElementVNode("p",I,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:m,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-light 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-light 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-light 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-light radius-small"},null,544),[[n.vModelText,o.digits[3]]])]),i.value<1?(n.openBlock(),n.createElementBlock("a",{key:0,onClick:y,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 P, watch as D, ref as c, openBlock as b, createElementBlock as w, 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 $ } from "vue-router";
|
4
4
|
import { useI18n as K } from "vue-i18n";
|
5
5
|
import { state as N } from "../../store/auth.js";
|