@ozdao/prometheus-framework 0.2.90 → 0.2.92
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +1 -0
- package/dist/auth.server.mjs +1 -0
- package/dist/events.server.js +5 -3
- package/dist/events.server.mjs +5 -3
- package/dist/main-BQisDfLk.js +92 -0
- package/dist/main-DTlUA63C.mjs +13617 -0
- package/dist/main.css +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +24 -32
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +17 -16
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +1 -103
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +103 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +1 -36
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +36 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +1 -45
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +45 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +7 -6
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +28 -29
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +64 -64
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +37 -38
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +35 -37
- package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +10 -9
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +14 -48
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +85 -25
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +69 -57
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionFeatures.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionFeatures.vue.js +74 -0
- package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/landing.client.js +4 -2
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -2
- package/dist/prometheus-framework/src/modules/middlewares/client/inputs.validation.cjs +1 -1
- package/dist/prometheus-framework/src/modules/middlewares/client/inputs.validation.js +10 -13
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.js +6 -8
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -3
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +36 -25
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +7 -6
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +5 -4
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/web-CXzcKdk4.mjs +54 -0
- package/dist/web-D9Cfcy5k.js +1 -0
- package/package.json +1 -1
- package/src/components/Button/Button.vue +5 -8
- package/src/components/FieldPhone/FieldPhone.vue +4 -0
- package/src/modules/auth/components/pages/ResetPassword.vue +1 -1
- package/src/modules/auth/components/pages/SignIn.vue +3 -3
- package/src/modules/auth/components/pages/SignUp.vue +1 -1
- package/src/modules/auth/controllers/auth.controller.js +1 -0
- package/src/modules/auth/store/auth.js +3 -5
- package/src/modules/auth/store/twofa.js +1 -1
- package/src/modules/events/components/layouts/layoutEvents.vue +2 -59
- package/src/modules/events/components/pages/Events.vue +106 -23
- package/src/modules/events/controllers/events.controller.js +6 -3
- package/src/modules/globals/components/blocks/CardHeader.vue +29 -4
- package/src/modules/landing/landing.client.js +3 -1
- package/src/modules/middlewares/client/inputs.validation.js +0 -13
- package/src/modules/orders/components/sections/SubscribeNewsletter.vue +2 -2
- package/src/modules/orders/router/orders.backoffice.router.js +2 -4
- package/src/modules/products/components/blocks/CardProduct.vue +31 -20
- package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
@@ -1,17 +1,18 @@
|
|
1
|
-
import { openBlock as t, createElementBlock as
|
2
|
-
import { useRouter as
|
3
|
-
import
|
1
|
+
import { openBlock as t, createElementBlock as i, createElementVNode as u, withModifiers as w, createCommentVNode as r, createBlock as f, toDisplayString as h, withCtx as k, createTextVNode as U, Fragment as R, renderList as D, normalizeStyle as C } from "vue";
|
2
|
+
import { useRouter as F } from "vue-router";
|
3
|
+
import M from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
|
4
4
|
import L from "../../../reports/components/sections/FormReport.vue.js";
|
5
|
-
import T from "../../../../components/Tooltip/Tooltip.
|
5
|
+
import T from "../../../../components/Tooltip/Tooltip.vue2.js";
|
6
6
|
import V from "../../../../components/Dropdown/Dropdown.vue.js";
|
7
|
+
import "../../../../components/Loader/Loader.vue.js";
|
7
8
|
import "../../../../components/Button/Button.vue.js";
|
8
9
|
import "../../../auth/store/auth.js";
|
9
10
|
import "../../../organizations/store/memberships.js";
|
10
|
-
import
|
11
|
-
const
|
11
|
+
import I from "../../../icons/navigation/IconEllipsis.vue.js";
|
12
|
+
const S = {
|
12
13
|
key: 0,
|
13
14
|
class: "pd-b-zero"
|
14
|
-
},
|
15
|
+
}, B = { class: "w-100 flex-v-center flex-nojustify flex" }, N = { class: "w-100 flex-nowrap flex-v-center flex" }, O = ["src"], j = {
|
15
16
|
key: 2,
|
16
17
|
class: "t-semi"
|
17
18
|
}, A = {
|
@@ -19,7 +20,7 @@ const B = {
|
|
19
20
|
class: "pos-relative"
|
20
21
|
}, H = { key: 2 }, J = { class: "d-block mn-l-auto flex-nowrap flex flex-v-center" }, q = {
|
21
22
|
key: 0,
|
22
|
-
class: "w-4r i-thin"
|
23
|
+
class: "w-4r pos-relative i-thin"
|
23
24
|
}, G = {
|
24
25
|
style: {
|
25
26
|
position: "absolute",
|
@@ -27,7 +28,7 @@ const B = {
|
|
27
28
|
right: "0px"
|
28
29
|
},
|
29
30
|
class: "br-solid br-2px br-white z-index-1 radius-big i-thin bg-second flex flex-center t-white p-small t-semi"
|
30
|
-
}, K = ["src"], Q = { class: "bg-black pd-thin radius-small" }, W = /* @__PURE__ */
|
31
|
+
}, K = ["src"], Q = { class: "bg-black pd-thin radius-small" }, W = /* @__PURE__ */ u("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), ae = {
|
31
32
|
__name: "CardHeader",
|
32
33
|
props: [
|
33
34
|
"user",
|
@@ -42,96 +43,107 @@ const B = {
|
|
42
43
|
"type"
|
43
44
|
],
|
44
45
|
setup(e) {
|
45
|
-
|
46
|
-
function
|
47
|
-
const o = /* @__PURE__ */ new Date(),
|
48
|
-
return m > 0 ? `${m} week${m > 1 ? "s" : ""} ago` :
|
46
|
+
F();
|
47
|
+
function P(s) {
|
48
|
+
const o = /* @__PURE__ */ new Date(), g = new Date(s), y = Math.abs(o - g), b = Math.floor(y / 1e3), a = Math.floor(b / 60), l = Math.floor(a / 60), d = Math.floor(l / 24), m = Math.floor(d / 7);
|
49
|
+
return m > 0 ? `${m} week${m > 1 ? "s" : ""} ago` : d > 0 ? `${d} day${d > 1 ? "s" : ""} ago` : l > 0 ? `${l} hour${l > 1 ? "s" : ""} ago` : a > 0 ? `${a} minute${a > 1 ? "s" : ""} ago` : "Just now";
|
49
50
|
}
|
50
|
-
return (
|
51
|
-
var
|
52
|
-
return e.owner ? (t(),
|
53
|
-
|
54
|
-
|
55
|
-
((
|
51
|
+
return (s, o) => {
|
52
|
+
var g, y, b, a, l, d, m, x, $, p, v, z, E;
|
53
|
+
return e.owner ? (t(), i("header", S, [
|
54
|
+
u("div", B, [
|
55
|
+
u("div", N, [
|
56
|
+
((b = (y = (g = e.owner.target) == null ? void 0 : g.profile) == null ? void 0 : y.photo) == null ? void 0 : b.length) > 0 && e.type !== "short" ? (t(), i("img", {
|
56
57
|
key: 0,
|
57
|
-
src: (
|
58
|
+
src: (s.FILE_SERVER_URL || "") + e.owner.target.profile.photo,
|
58
59
|
class: "radius-medium object-fit-cover mn-r-thin i-thin",
|
59
|
-
onClick: o[0] || (o[0] =
|
60
|
+
onClick: o[0] || (o[0] = w((c) => s.$router.push({
|
60
61
|
name: e.owner.type === "user" ? "User Profile" : "Organization",
|
61
62
|
params: {
|
62
63
|
_id: e.owner.target._id
|
63
64
|
}
|
64
65
|
}), ["stop"]))
|
65
66
|
}, null, 8, O)) : r("", !0),
|
66
|
-
!((
|
67
|
+
!((l = (a = e.owner.target) == null ? void 0 : a.profile) != null && l.photo) && e.type !== "short" ? (t(), f(M, {
|
67
68
|
key: 1,
|
68
69
|
class: "radius-medium mn-r-thin i-thin",
|
69
|
-
onClick: o[1] || (o[1] =
|
70
|
+
onClick: o[1] || (o[1] = w((c) => s.$router.push({
|
70
71
|
name: e.owner.type === "user" ? "User Profile" : "Organization",
|
71
72
|
params: {
|
72
73
|
_id: e.owner.target._id
|
73
74
|
}
|
74
75
|
}), ["stop"]))
|
75
76
|
})) : r("", !0),
|
76
|
-
e.type !== "short" ? (t(),
|
77
|
-
|
78
|
-
onClick: o[2] || (o[2] =
|
77
|
+
e.type !== "short" ? (t(), i("span", j, [
|
78
|
+
u("span", {
|
79
|
+
onClick: o[2] || (o[2] = w((c) => s.$router.push({
|
79
80
|
name: e.owner.type === "user" ? "User Profile" : "Organization",
|
80
81
|
params: {
|
81
82
|
_id: e.owner.target._id
|
82
83
|
}
|
83
84
|
}), ["stop"]))
|
84
|
-
},
|
85
|
-
!e.creator.hidden && (($ = (x = e.owner.target) == null ? void 0 : x.profile) == null ? void 0 : $.name) !== ((
|
85
|
+
}, h((m = (d = e.owner.target) == null ? void 0 : d.profile) == null ? void 0 : m.name), 1),
|
86
|
+
!e.creator.hidden && (($ = (x = e.owner.target) == null ? void 0 : x.profile) == null ? void 0 : $.name) !== ((v = (p = e.creator.target) == null ? void 0 : p.profile) == null ? void 0 : v.name) ? (t(), i("span", {
|
86
87
|
key: 0,
|
87
|
-
onClick: o[3] || (o[3] =
|
88
|
-
var
|
89
|
-
return
|
88
|
+
onClick: o[3] || (o[3] = w((c) => {
|
89
|
+
var n;
|
90
|
+
return s.$router.push({
|
90
91
|
name: "User Profile",
|
91
92
|
params: {
|
92
|
-
_id: (
|
93
|
+
_id: (n = e.creator.target) == null ? void 0 : n._id
|
93
94
|
}
|
94
95
|
});
|
95
96
|
}, ["stop"]))
|
96
|
-
}, " · by " +
|
97
|
-
e.date ? (t(),
|
98
|
-
e.date ? (t(),
|
97
|
+
}, " · by " + h((E = (z = e.creator.target) == null ? void 0 : z.profile) == null ? void 0 : E.name), 1)) : r("", !0),
|
98
|
+
e.date ? (t(), i("span", A, [
|
99
|
+
e.date ? (t(), f(T, {
|
99
100
|
key: 0,
|
100
|
-
text:
|
101
|
+
text: s.formatDate(e.date)
|
101
102
|
}, {
|
102
103
|
default: k(() => [
|
103
|
-
|
104
|
+
U(" · " + h(P(e.date)), 1)
|
104
105
|
]),
|
105
106
|
_: 1
|
106
107
|
}, 8, ["text"])) : r("", !0)
|
107
108
|
])) : r("", !0),
|
108
|
-
e.dateFormatted ? (t(),
|
109
|
+
e.dateFormatted ? (t(), i("span", H, " · " + h(e.dateFormatted), 1)) : r("", !0)
|
109
110
|
])) : r("", !0),
|
110
|
-
|
111
|
-
e.members ? (t(),
|
112
|
-
|
113
|
-
(t(!0),
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
111
|
+
u("div", J, [
|
112
|
+
e.members ? (t(), i("div", q, [
|
113
|
+
u("span", G, h(e.members), 1),
|
114
|
+
(t(!0), i(R, null, D(e.membersPhotos.slice(0, 2), (c, n) => (t(), i(R, null, [
|
115
|
+
c ? (t(), i("img", {
|
116
|
+
key: n,
|
117
|
+
src: (s.FILE_SERVER_URL || "") + c,
|
118
|
+
style: C({
|
119
|
+
position: "absolute",
|
120
|
+
top: "0px",
|
121
|
+
right: n * 20 + 20 + "%",
|
122
|
+
zIndex: 1 - n
|
123
|
+
}),
|
124
|
+
class: "br-solid br-2px br-white i-thin bg-grey radius-big"
|
125
|
+
}, null, 12, K)) : (t(), f(M, {
|
126
|
+
key: 1,
|
127
|
+
style: C({
|
128
|
+
position: "absolute",
|
129
|
+
top: "0px",
|
130
|
+
right: n * 20 + 20 + "%",
|
131
|
+
zIndex: 1 - n
|
132
|
+
}),
|
133
|
+
class: "br-solid br-2px br-white i-thin bg-grey radius-big"
|
134
|
+
}, null, 8, ["style"]))
|
135
|
+
], 64))), 256))
|
124
136
|
])) : r("", !0)
|
125
137
|
]),
|
126
|
-
e.type !== "short" && e.user && e.user != e.creator.target._id ? (t(),
|
138
|
+
e.type !== "short" && e.user && e.user != e.creator.target._id ? (t(), f(V, {
|
127
139
|
key: 3,
|
128
|
-
label: { component:
|
140
|
+
label: { component: I, class: "t-transp i-regular" },
|
129
141
|
align: "right",
|
130
142
|
class: "cursor-pointer z-index-2"
|
131
143
|
}, {
|
132
144
|
default: k(() => [
|
133
|
-
|
134
|
-
e.user !== e.creator.target._id ? (t(),
|
145
|
+
u("section", Q, [
|
146
|
+
e.user !== e.creator.target._id ? (t(), f(L, {
|
135
147
|
key: 0,
|
136
148
|
user: e.user,
|
137
149
|
type: e.entityType,
|
@@ -155,5 +167,5 @@ const B = {
|
|
155
167
|
}
|
156
168
|
};
|
157
169
|
export {
|
158
|
-
|
170
|
+
ae as default
|
159
171
|
};
|
package/dist/prometheus-framework/src/modules/landing/components/sections/SectionFeatures.vue.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-i18n"),a={id:"howtobuy",class:"pd-thin"},c={class:"t-center bg-black t-white radius-big pd-big pd-t-big pd-b-big"},l=["innerHTML"],d={class:"cols-3 gap-thin"},u={class:"mn-r-auto mn-l-auto h2 i-extra radius-extra bg-main flex-center flex mn-b-medium"},m={class:"mn-b-medium"},p={class:"t-transp"},h={__name:"SectionFeatures",props:{title:String,textData:{type:Object,default:()=>({messages:{en:{title:'Transform Your View on Smoking with <b class="t-main">Next Industrial Revolution</b>',features:[{icon:"1",title:"United in Growth",description:"Weeder thrives on community participation. As an open-source platform, it invites everyone to contribute and shape the evolution of cannabis culture globally."},{icon:"2",title:"Trust in Crypto",description:"Weeder utilizes the power of blockchain technology and smart contracts, building a trust-rich, transparent environment that ensures secure and smooth transactions."},{icon:"3",title:"Boosted by AI",description:"With AI at the core, Weeder enhances understanding of cannabis, creating personalized tools to enrich the user experience and business goals."}]},ru:{title:"Наши Преимущества",features:[{icon:"📦",headline:"Доставка за 1 час",description:"Мы понимаем, как важно для клиентов получить товар в самый краткий срок. Получите свой заказ в течении часа после подтверждения!"},{icon:"💬",headline:"Поддержка 24/7",description:"Если у вас есть какие-либо вопросы, наша служба поддержки клиентов работает круглосуточно и без выходных. Вы можете связаться с нами в любое время в Telegram!"},{icon:"😊",headline:"Гарантия качества",description:"Непревзойденные цены и самые доступные качественные товары. Больше не тратьте деньги на дорогие некачественные продукты!"}]}}})}},setup(n){const i=n,{t:o,tm:s}=r.useI18n(i.textData);return(b,g)=>(e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("section",c,[e.createElementVNode("h2",{class:"w-max-50r mn-l-auto mn-r-auto mn-b-small",innerHTML:e.unref(o)("title")},null,8,l),e.createElementVNode("div",d,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s)("features"),t=>(e.openBlock(),e.createElementBlock("div",{key:t.title,class:"pd-medium radius-big"},[e.createElementVNode("p",u,e.toDisplayString(t.icon),1),e.createElementVNode("h3",m,e.toDisplayString(t.title),1),e.createElementVNode("p",p,e.toDisplayString(t.description),1)]))),128))])])]))}};exports.default=h;
|
package/dist/prometheus-framework/src/modules/landing/components/sections/SectionFeatures.vue.js
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
import { openBlock as n, createElementBlock as i, createElementVNode as t, unref as o, Fragment as d, renderList as u, toDisplayString as s } from "vue";
|
2
|
+
import { useI18n as m } from "vue-i18n";
|
3
|
+
const p = {
|
4
|
+
id: "howtobuy",
|
5
|
+
class: "pd-thin"
|
6
|
+
}, h = { class: "t-center bg-black t-white radius-big pd-big pd-t-big pd-b-big" }, b = ["innerHTML"], g = { class: "cols-3 gap-thin" }, _ = { class: "mn-r-auto mn-l-auto h2 i-extra radius-extra bg-main flex-center flex mn-b-medium" }, f = { class: "mn-b-medium" }, x = { class: "t-transp" }, T = {
|
7
|
+
__name: "SectionFeatures",
|
8
|
+
props: {
|
9
|
+
title: String,
|
10
|
+
textData: {
|
11
|
+
type: Object,
|
12
|
+
default: () => ({
|
13
|
+
messages: {
|
14
|
+
en: {
|
15
|
+
title: 'Transform Your View on Smoking with <b class="t-main">Next Industrial Revolution</b>',
|
16
|
+
features: [{
|
17
|
+
icon: "1",
|
18
|
+
title: "United in Growth",
|
19
|
+
description: "Weeder thrives on community participation. As an open-source platform, it invites everyone to contribute and shape the evolution of cannabis culture globally."
|
20
|
+
}, {
|
21
|
+
icon: "2",
|
22
|
+
title: "Trust in Crypto",
|
23
|
+
description: "Weeder utilizes the power of blockchain technology and smart contracts, building a trust-rich, transparent environment that ensures secure and smooth transactions."
|
24
|
+
}, {
|
25
|
+
icon: "3",
|
26
|
+
title: "Boosted by AI",
|
27
|
+
description: "With AI at the core, Weeder enhances understanding of cannabis, creating personalized tools to enrich the user experience and business goals."
|
28
|
+
}]
|
29
|
+
},
|
30
|
+
ru: {
|
31
|
+
title: "Наши Преимущества",
|
32
|
+
features: [{
|
33
|
+
icon: "📦",
|
34
|
+
headline: "Доставка за 1 час",
|
35
|
+
description: "Мы понимаем, как важно для клиентов получить товар в самый краткий срок. Получите свой заказ в течении часа после подтверждения!"
|
36
|
+
}, {
|
37
|
+
icon: "💬",
|
38
|
+
headline: "Поддержка 24/7",
|
39
|
+
description: "Если у вас есть какие-либо вопросы, наша служба поддержки клиентов работает круглосуточно и без выходных. Вы можете связаться с нами в любое время в Telegram!"
|
40
|
+
}, {
|
41
|
+
icon: "😊",
|
42
|
+
headline: "Гарантия качества",
|
43
|
+
description: "Непревзойденные цены и самые доступные качественные товары. Больше не тратьте деньги на дорогие некачественные продукты!"
|
44
|
+
}]
|
45
|
+
}
|
46
|
+
}
|
47
|
+
})
|
48
|
+
}
|
49
|
+
},
|
50
|
+
setup(r) {
|
51
|
+
const a = r, { t: c, tm: l } = m(a.textData);
|
52
|
+
return (y, v) => (n(), i("div", p, [
|
53
|
+
t("section", h, [
|
54
|
+
t("h2", {
|
55
|
+
class: "w-max-50r mn-l-auto mn-r-auto mn-b-small",
|
56
|
+
innerHTML: o(c)("title")
|
57
|
+
}, null, 8, b),
|
58
|
+
t("div", g, [
|
59
|
+
(n(!0), i(d, null, u(o(l)("features"), (e) => (n(), i("div", {
|
60
|
+
key: e.title,
|
61
|
+
class: "pd-medium radius-big"
|
62
|
+
}, [
|
63
|
+
t("p", _, s(e.icon), 1),
|
64
|
+
t("h3", f, s(e.title), 1),
|
65
|
+
t("p", x, s(e.description), 1)
|
66
|
+
]))), 128))
|
67
|
+
])
|
68
|
+
])
|
69
|
+
]));
|
70
|
+
}
|
71
|
+
};
|
72
|
+
export {
|
73
|
+
T as default
|
74
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/sections/MobileApp.vue.cjs");exports.MobileApp=e.default;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/sections/MobileApp.vue.cjs"),t=require("./components/sections/SectionFeatures.vue.cjs");exports.MobileApp=e.default;exports.SectionFeatures=t.default;
|
@@ -1,4 +1,6 @@
|
|
1
|
-
import { default as
|
1
|
+
import { default as t } from "./components/sections/MobileApp.vue.js";
|
2
|
+
import { default as r } from "./components/sections/SectionFeatures.vue.js";
|
2
3
|
export {
|
3
|
-
|
4
|
+
t as MobileApp,
|
5
|
+
r as SectionFeatures
|
4
6
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const a=require("../../../mobile/components/Menu/Menu.vue.cjs"),r=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-grey radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const a=require("../../../mobile/components/Menu/Menu.vue.cjs"),r=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-grey radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
|
@@ -1,12 +1,13 @@
|
|
1
1
|
import { ref as l, openBlock as m, createElementBlock as u, createVNode as t, withCtx as o, unref as r, createStaticVNode as c, createElementVNode as a } from "vue";
|
2
2
|
import "../../../../components/Field/Field.vue.js";
|
3
|
+
import "../../../../components/Loader/Loader.vue.js";
|
3
4
|
import "../../../../components/Button/Button.vue.js";
|
4
5
|
import p from "../../../mobile/components/Menu/Menu.vue.js";
|
5
6
|
import n from "../../../mobile/components/Menu/MenuItem.vue.js";
|
6
7
|
import { useRoute as d, useRouter as h } from "vue-router";
|
7
8
|
import "../../../auth/store/auth.js";
|
8
9
|
import "./Legal.vue2.js";
|
9
|
-
const f = { class: "for-transition w-100 pd-medium" }, _ = /* @__PURE__ */ c('<div class="bg-grey radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>', 1), b = /* @__PURE__ */ a("span", null, "Terms of Use", -1), k = /* @__PURE__ */ a("span", null, "Privacy Policy", -1), y = /* @__PURE__ */ a("span", null, "Cookie Policy", -1), v = /* @__PURE__ */ a("span", null, "EULA", -1),
|
10
|
+
const f = { class: "for-transition w-100 pd-medium" }, _ = /* @__PURE__ */ c('<div class="bg-grey radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>', 1), b = /* @__PURE__ */ a("span", null, "Terms of Use", -1), k = /* @__PURE__ */ a("span", null, "Privacy Policy", -1), y = /* @__PURE__ */ a("span", null, "Cookie Policy", -1), v = /* @__PURE__ */ a("span", null, "EULA", -1), R = {
|
10
11
|
__name: "Legal",
|
11
12
|
setup(g) {
|
12
13
|
d();
|
@@ -58,5 +59,5 @@ const f = { class: "for-transition w-100 pd-medium" }, _ = /* @__PURE__ */ c('<d
|
|
58
59
|
}
|
59
60
|
};
|
60
61
|
export {
|
61
|
-
|
62
|
+
R as default
|
62
63
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../globals/localization/vue-i18n.cjs"),n={ru:{validation:{length:"Содержимое должно быть не менее 1 символа.",maxLength:"Содержимое не должно превышать {maxLength} символов.",phone:"Неверный формат номера",email:"Неверный формат email",password:{minLength:"Пароль должен быть больше 8 символов",lowercase:"Должен быть символ в нижнем регистре",uppercase:"Должен быть символ в верхнем регистре",number:"Должна быть 1 цифра",specialChar:"Должен быть 1 специальный символ"}}},en:{validation:{length:"Content must be at least 1 character long.",maxLength:"Content should not exceed {maxLength} characters.",phone:"Invalid number format",email:"Invalid email format",password:{minLength:"Password must be longer than 8 characters",lowercase:"Must contain a lowercase character",uppercase:"Must contain an uppercase character",number:"Must contain at least 1 digit",specialChar:"Must contain at least 1 special character"}}}};a.default.global.mergeLocaleMessage("ru",n.ru);a.default.global.mergeLocaleMessage("en",n.en);function
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../globals/localization/vue-i18n.cjs"),n={ru:{validation:{length:"Содержимое должно быть не менее 1 символа.",maxLength:"Содержимое не должно превышать {maxLength} символов.",phone:"Неверный формат номера",email:"Неверный формат email",password:{minLength:"Пароль должен быть больше 8 символов",lowercase:"Должен быть символ в нижнем регистре",uppercase:"Должен быть символ в верхнем регистре",number:"Должна быть 1 цифра",specialChar:"Должен быть 1 специальный символ"}}},en:{validation:{length:"Content must be at least 1 character long.",maxLength:"Content should not exceed {maxLength} characters.",phone:"Invalid number format",email:"Invalid email format",password:{minLength:"Password must be longer than 8 characters",lowercase:"Must contain a lowercase character",uppercase:"Must contain an uppercase character",number:"Must contain at least 1 digit",specialChar:"Must contain at least 1 special character"}}}};a.default.global.mergeLocaleMessage("ru",n.ru);a.default.global.mergeLocaleMessage("en",n.en);function o(e){return{status:!0,message:null}}function u(e){return/^[\w-\.]+@([\w-]+\.)+[\w-]{2,12}$/.test(e)?{status:!0,message:null}:{status:!1,message:a.default.global.t("validation.email")}}function i(e){return e.length<8?{status:!1,message:a.default.global.t("validation.password.minLength")}:{status:!0,message:null}}async function c(e,t,l,r){if(l){const s=t(l);if(!s.status)throw e.value=s,setTimeout(()=>{e.value=null},3e3),new Error(r)}else throw e.value={status:!1,message:a.default.global.t("validation.length")},setTimeout(()=>{e.value=null},3e3),new Error(a.default.global.t("validation.length"))}exports.validateEmail=u;exports.validateInputs=c;exports.validatePassword=i;exports.validatePhone=o;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import a from "../../globals/localization/vue-i18n.js";
|
2
|
-
const
|
2
|
+
const l = {
|
3
3
|
ru: {
|
4
4
|
validation: {
|
5
5
|
length: "Содержимое должно быть не менее 1 символа.",
|
@@ -31,15 +31,12 @@ const n = {
|
|
31
31
|
}
|
32
32
|
}
|
33
33
|
};
|
34
|
-
a.global.mergeLocaleMessage("ru",
|
35
|
-
a.global.mergeLocaleMessage("en",
|
34
|
+
a.global.mergeLocaleMessage("ru", l.ru);
|
35
|
+
a.global.mergeLocaleMessage("en", l.en);
|
36
36
|
function i(e) {
|
37
|
-
return
|
37
|
+
return {
|
38
38
|
status: !0,
|
39
39
|
message: null
|
40
|
-
} : {
|
41
|
-
status: !1,
|
42
|
-
message: a.global.t("validation.phone")
|
43
40
|
};
|
44
41
|
}
|
45
42
|
function u(e) {
|
@@ -60,13 +57,13 @@ function c(e) {
|
|
60
57
|
message: null
|
61
58
|
};
|
62
59
|
}
|
63
|
-
async function
|
60
|
+
async function m(e, t, s, r) {
|
64
61
|
if (s) {
|
65
|
-
const
|
66
|
-
if (!
|
67
|
-
throw e.value =
|
62
|
+
const n = t(s);
|
63
|
+
if (!n.status)
|
64
|
+
throw e.value = n, setTimeout(() => {
|
68
65
|
e.value = null;
|
69
|
-
}, 3e3), new Error(
|
66
|
+
}, 3e3), new Error(r);
|
70
67
|
} else
|
71
68
|
throw e.value = {
|
72
69
|
status: !1,
|
@@ -77,7 +74,7 @@ async function g(e, t, s, o) {
|
|
77
74
|
}
|
78
75
|
export {
|
79
76
|
u as validateEmail,
|
80
|
-
|
77
|
+
m as validateInputs,
|
81
78
|
c as validatePassword,
|
82
79
|
i as validatePhone
|
83
80
|
};
|
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("vue-router");require("../../../../components/Field/Field.vue.cjs");const q=require("../../../../components/Button/Button.vue2.cjs"),x=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Popup/Popup.vue.cjs"),u=require("../../../../components/Block/Block.vue.cjs"),b=require("../../../../components/Feed/Feed.vue.cjs"),_=require("../blocks/CardOrderItem.vue.cjs");require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("vue-router");require("../../../../components/Field/Field.vue.cjs");const q=require("../../../../components/Button/Button.vue2.cjs"),x=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Popup/Popup.vue.cjs"),u=require("../../../../components/Block/Block.vue.cjs"),b=require("../../../../components/Feed/Feed.vue.cjs"),_=require("../blocks/CardOrderItem.vue.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const C=require("../../../users/components/blocks/CardUser.vue.cjs"),V=require("../sections/FormAddCustomer.vue.cjs"),O=require("../sections/FormDelivery.vue.cjs"),E=require("../sections/FormPayment.vue.cjs"),l=require("../../../globals/store/globals.cjs"),F=require("../../../auth/store/auth.cjs"),t=require("../../store/orders.cjs"),S=require("../../../products/store/products.cjs"),D=require("../../store/customers.store.cjs");require("./OrderCreateBackoffice.vue2.cjs");const R={class:"h-100 flex flex-column pd-thin"},T={class:"flex-v-center flex-nowrap flex"},A=e.createElementVNode("h2",{class:"mn-r-auto"},"Create Order",-1),I=e.createElementVNode("h3",{class:"mn-b-small"},"Add to order",-1),z={class:"h-100 bg-grey mn-b-thin o-scroll pd-medium radius-big"},L={key:0,class:"w-100"},M={class:"h3 flex"},U=e.createElementVNode("span",{class:"mn-r-auto t-transp"},"In total",-1),j={__name:"OrderCreateBackoffice",setup(G){const a=h.useRoute(),y=h.useRouter();let g=e.computed(()=>Number(t.state.current.positions.reduce((d,n)=>d+n.price*n.quantity,0)));const s=e.ref("positions"),c=e.ref(!1);function v(){c.value=!0}function m(){c.value=!1}const i=e.ref(!1);function B(){i.value=!0}function p(){i.value=!1}e.ref(null);function w(){t.state.current.creator={type:"user",target:F.state.user._id},t.state.current.owner={type:"organization",target:a.params._id},t.state.current.customer={type:"Customer",target:t.state.current.customer._id||null},t.actions.create(t.state.current)}function N(){y.push({name:"Backoffice Orders",params:{_id:a.params._id}})}return e.onMounted(async()=>{}),(d,n)=>(e.openBlock(),e.createElementBlock("div",R,[e.createVNode(u.default,{class:"mn-b-thin"},{default:e.withCtx(()=>[e.createElementVNode("header",T,[A,e.createVNode(q.default,{submit:w,callback:N,class:"pd-small radius-big bg-main t-black uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Add Order ")]),_:1})])]),_:1}),e.createVNode(x.default,{selected:s.value,"onUpdate:selected":n[0]||(n[0]=r=>s.value=r),tabs:[{name:"Positions",value:"positions"},{name:"Customer",value:"customer"},{name:"Delivery",value:"delivery"},{name:"Payment",value:"payment"}],class:"t-medium radius-medium bg-grey mn-b-small"},null,8,["selected"]),e.createVNode(k.default,{onClosePopup:m,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[I,e.createElementVNode("div",z,[e.createVNode(b.default,{search:{placeholder:"Search products...",class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:r=>S.actions.read(r),state:null},options:{organization:e.unref(a).params._id},class:""},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(o,P)=>(e.openBlock(),e.createBlock(_.default,{key:o._id,editable:!1,product:o,onClick:()=>{let f={...o};f.quantity=1,l.actions.add(t.state.current.positions,f),m()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"]),s.value==="positions"?(e.openBlock(),e.createBlock(u.default,{key:0,title:"Positions",actions:[{label:"+",function:()=>v()}],class:"mn-b-small"},{default:e.withCtx(()=>[t.state.current.positions.length===0?(e.openBlock(),e.createElementBlock("span",L," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.positions,(r,o)=>(e.openBlock(),e.createBlock(_.default,{key:r._id,editable:!0,product:r,onIncrease:()=>{l.actions.increment(t.state.current.positions,r)},onDecrease:()=>{l.actions.decrement(t.state.current.positions,r)},onRemove:()=>{l.actions.delete(t.state.current.positions,r)},class:"mn-b-thin pd-thin radius-medium bg-white"},null,8,["product","onIncrease","onDecrease","onRemove"]))),128))]),_:1},8,["actions"])):e.createCommentVNode("",!0),s.value==="customer"?(e.openBlock(),e.createBlock(u.default,{key:1,title:"Customer",class:"mn-b-semi",actions:[{label:"+",function:()=>B()}]},{default:e.withCtx(()=>[t.state.current.customer._id?(e.openBlock(),e.createBlock(C.default,{key:0,user:t.state.current.customer,photo:t.state.current.customer.profile.photo,name:t.state.current.customer.profile.name||t.state.current.customer.phone||t.state.current.customer.email,onClick:n[1]||(n[1]=()=>{t.mutations.resetCustomer(t.state.current.customer)}),class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name"])):(e.openBlock(),e.createBlock(b.default,{key:1,search:{placeholder:"Search customer...",class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:r=>e.unref(D.default).read(r),state:null},options:{owner:e.unref(a).params._id},class:"bg-grey h-max-20r o-scroll"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(o,P)=>(e.openBlock(),e.createBlock(C.default,{key:o._id,user:o,photo:o.profile.photo,name:o.profile.name||o.phone||o.email,onClick:()=>{t.state.current.customer=o},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"]))),128))]),_:1},8,["store","options"]))]),_:1},8,["actions"])):e.createCommentVNode("",!0),s.value==="delivery"?(e.openBlock(),e.createBlock(O.default,{key:2,order:t.state.current},null,8,["order"])):e.createCommentVNode("",!0),s.value==="payment"?(e.openBlock(),e.createBlock(E.default,{key:3,order:t.state.current},null,8,["order"])):e.createCommentVNode("",!0),e.createVNode(k.default,{title:"Add customer",onClosePopup:p,isPopupOpen:i.value,class:e.normalizeClass("bg-white w-min-30r w-max-30r radius-big pd-medium")},{default:e.withCtx(()=>[e.createVNode(V.default,{onCallbackCustomer:p})]),_:1},8,["isPopupOpen"]),e.createVNode(u.default,{class:"mn-b-semi"},{default:e.withCtx(()=>[e.createElementVNode("div",M,[U,e.createElementVNode("span",null,e.toDisplayString(e.unref(g))+" "+e.toDisplayString(d.returnCurrency()),1)])]),_:1})]))}};exports.default=j;
|
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js
CHANGED
@@ -7,7 +7,7 @@ import $ from "../../../../components/Popup/Popup.vue.js";
|
|
7
7
|
import _ from "../../../../components/Block/Block.vue.js";
|
8
8
|
import O from "../../../../components/Feed/Feed.vue.js";
|
9
9
|
import N from "../blocks/CardOrderItem.vue.js";
|
10
|
-
import "../../../../components/Select/Select.
|
10
|
+
import "../../../../components/Select/Select.vue.js";
|
11
11
|
import "../../../../components/SelectMulti/SelectMulti.vue2.js";
|
12
12
|
import B from "../../../users/components/blocks/CardUser.vue.js";
|
13
13
|
import G from "../sections/FormAddCustomer.vue.js";
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("vue-router"),k=require("../../../../components/Block/Block.vue.cjs");require("../../../../components/Field/Field.vue.cjs");const b=require("../../../../components/FieldPhone/click-outside.cjs");require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("vue-router"),k=require("../../../../components/Block/Block.vue.cjs");require("../../../../components/Field/Field.vue.cjs");const b=require("../../../../components/FieldPhone/click-outside.cjs");require("../../../../components/Select/Select.vue.cjs");const g=require("../../../../components/Feed/Feed.vue.cjs"),v=require("../../../../components/Button/Button.vue2.cjs"),C=require("../../../globals/components/blocks/BlockSearch.vue.cjs"),n=require("../../../users/components/blocks/CardUser.vue.cjs"),q=require("./FormCustomerDetails.vue.cjs"),_=require("../../../users/store/users.cjs"),w=require("../../../auth/store/auth.cjs"),y=require("../../../globals/store/globals.cjs"),B=require("../../store/customers.store.cjs"),x=require("../../store/models/customer.cjs"),E={key:2,class:"mn-t-thin pos-absolute w-100 pos-t-100 pos-l-0 z-index-3 bg-grey pd-small radius-small"},N={__name:"FormAddCustomer",props:{order:Object},emits:["callbackCustomer"],setup(V,{emit:i}){let c=b.default;const d=i,m=h.useRoute();let r=e.ref(x.default),u=e.ref(null),l=e.ref(!1);async function f(){let a={identity:{type:r.value.user?"User":"Visitor",target:r.value.user?r.value.user._id:null},owner:{type:"Organization",target:m.params._id},creator:{type:"User",target:w.state.user._id},phone:r.value.phone,email:r.value.email,profile:r.value.profile,socials:r.value.socials};try{let o=await B.default.create(a);r.value=o}catch(o){console.log(o)}}function p(){d("callbackCustomer",r.value)}return(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(k.default,{class:"pos-relative mn-b-thin"},{default:e.withCtx(()=>[e.unref(r).user?(e.openBlock(),e.createBlock(n.default,{key:1,user:e.unref(r).user,photo:e.unref(r).user.profile.photo,name:e.unref(r).user.profile.name||e.unref(r).user.phone||e.unref(r).user.email,onClick:o[1]||(o[1]=()=>{e.unref(r).user=null}),class:"bg-white pd-thin radius-medium w-100"},null,8,["user","photo","name"])):e.withDirectives((e.openBlock(),e.createBlock(C.default,{key:0,onSearch:o[0]||(o[0]=s=>{e.isRef(u)?u.value=s:u=s,e.isRef(l)?l.value=!0:l=!0}),placeholder:"Enter name, phone or email",class:"bg-white"},null,512)),[[e.unref(c),()=>{e.isRef(l)?l.value=!1:l=!1}]]),e.unref(u)&&e.unref(l)&&!e.unref(r).user?(e.openBlock(),e.createElementBlock("div",E,[e.createVNode(g.default,{states:{empty:{title:"No User Found",description:"Currently, there are no such user."}},store:{read:s=>_.actions.read(s),state:null},options:{search:e.unref(u)},showLoadMore:!1,class:"h-max-20r o-scroll"},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,(t,F)=>(e.openBlock(),e.createBlock(n.default,{key:t._id,user:t,photo:t.profile.photo,name:t.profile.name||t.phone||t.email,onClick:()=>{e.unref(r).user=t,e.unref(r).profile=t.profile,e.unref(r).phone=t.phone,e.unref(r).email=t.email,e.unref(r).socials=t.socials},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(q.default,{customer:e.unref(r),class:"mn-b-thin bg-grey"},null,8,["customer"]),e.createVNode(v.default,{submit:f,callback:p,onError:e.unref(y.setError),class:"w-100 pd-small radius-big bg-main t-black uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Add Customer ")]),_:1},8,["onError"])],64))}};exports.default=N;
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js
CHANGED
@@ -3,7 +3,7 @@ import { useRoute as U } from "vue-router";
|
|
3
3
|
import N from "../../../../components/Block/Block.vue.js";
|
4
4
|
import "../../../../components/Field/Field.vue.js";
|
5
5
|
import O from "../../../../components/FieldPhone/click-outside.js";
|
6
|
-
import "../../../../components/Select/Select.
|
6
|
+
import "../../../../components/Select/Select.vue.js";
|
7
7
|
import V from "../../../../components/Feed/Feed.vue.js";
|
8
8
|
import B from "../../../../components/Button/Button.vue2.js";
|
9
9
|
import F from "../../../globals/components/blocks/BlockSearch.vue.js";
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Field/Field.vue2.cjs"),o=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),u=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Field/Field.vue2.cjs"),o=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),u=require("../../../../components/Select/Select.vue2.cjs"),i={class:"gap-thin flex-justify-between flex-nowrap flex"},d={__name:"FormCustomerDetails",props:{customer:Object,title:{type:String,default:"Personal Data"}},setup(a){let s=e.ref("instagram");return(m,l)=>(e.openBlock(),e.createBlock(r.default,{title:a.title,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createVNode(n.default,{field:a.customer.profile.name,"onUpdate:field":l[0]||(l[0]=t=>a.customer.profile.name=t),label:"Name",placeholder:"Enter name",class:"bg-white pd-small radius-small mn-b-thin"},null,8,["field"]),e.createVNode(o.default,{modelValue:a.customer.phone,"onUpdate:modelValue":l[1]||(l[1]=t=>a.customer.phone=t),onCountry:l[2]||(l[2]=t=>{a.customer.number=t}),inputOptions:{placeholder:"Enter phone number",type:"tel"},defaultCountry:"TH",validCharactersOnly:!0,dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},mode:"national",class:"w-100 bg-white pd-small mn-b-thin radius-small"},null,8,["modelValue"]),e.createElementVNode("div",i,[e.createVNode(u.default,{select:e.unref(s),options:[{name:"Instagram",value:"instagram"},{name:"Telegram",value:"telegram"},{name:"WhatsApp",value:"whatsapp"}],"onUpdate:select":l[3]||(l[3]=t=>e.isRef(s)?s.value=t:s=t),placeholder:"Messenger",size:"small",class:"bg-white pd-small radius-small"},null,8,["select"]),e.createVNode(n.default,{field:a.customer.socials[e.unref(s)],"onUpdate:field":l[4]||(l[4]=t=>a.customer.socials[e.unref(s)]=t),label:"@",placeholder:"Enter username",class:"bg-white pd-small radius-small w-100"},null,8,["field"])])]),_:1},8,["title"]))}};exports.default=d;
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js
CHANGED
@@ -2,7 +2,7 @@ import { ref as r, openBlock as m, createBlock as i, withCtx as u, createVNode a
|
|
2
2
|
import p from "../../../../components/Block/Block.vue.js";
|
3
3
|
import o from "../../../../components/Field/Field.vue2.js";
|
4
4
|
import c from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
|
-
import h from "../../../../components/Select/Select.
|
5
|
+
import h from "../../../../components/Select/Select.vue2.js";
|
6
6
|
const g = { class: "gap-thin flex-justify-between flex-nowrap flex" }, V = {
|
7
7
|
__name: "FormCustomerDetails",
|
8
8
|
props: {
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Select/Select.vue2.cjs"),o={class:"mn-b-small flex-nowrap flex"},s={__name:"FormPayment",props:{order:Object},setup(t){return(c,l)=>(e.openBlock(),e.createBlock(r.default,{title:"Payment"},{default:e.withCtx(()=>[e.createElementVNode("div",o,[e.createVNode(n.default,{select:t.order.payment.type,"onUpdate:select":l[0]||(l[0]=a=>t.order.payment.type=a),property:"value",options:[{name:"Cash On Delivery",value:"cash"},{name:"Bank Transfer",value:"bank"},{name:"Crypto",value:"crypto"}],placeholder:"Select type of payment",size:"small",class:"bg-white pd-medium radius-small w-100"},null,8,["select"])])]),_:1}))}};exports.default=s;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { openBlock as r, createBlock as l, withCtx as o, createElementVNode as n, createVNode as m } from "vue";
|
2
2
|
import s from "../../../../components/Block/Block.vue.js";
|
3
|
-
import p from "../../../../components/Select/Select.
|
3
|
+
import p from "../../../../components/Select/Select.vue2.js";
|
4
4
|
const c = { class: "mn-b-small flex-nowrap flex" }, f = {
|
5
5
|
__name: "FormPayment",
|
6
6
|
props: {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("vue")
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../globals/components/layouts/Empty.vue.cjs"),r=[{path:"orders",meta:{title:{en:"Backoffice Orders",ru:"Управление Заказами"}},component:e.default,children:[{path:"",name:"Backoffice Orders",meta:{title:{en:"Backoffice Orders",ru:"Управление Заказами"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Orders.vue.cjs"))},{path:"add",name:"AdminOrderAdd",component:()=>Promise.resolve().then(()=>require("../components/pages/OrderCreateBackoffice.vue.cjs"))},{path:":order",name:"AdminOrderEdit",component:()=>Promise.resolve().then(()=>require("../components/pages/OrderCreateBackoffice.vue.cjs"))}]}];exports.default=r;
|
@@ -1,15 +1,14 @@
|
|
1
|
-
import "vue";
|
2
|
-
const
|
1
|
+
import e from "../../globals/components/layouts/Empty.vue.js";
|
2
|
+
const t = [
|
3
3
|
{
|
4
4
|
path: "orders",
|
5
|
-
name: "Backoffice Orders",
|
6
5
|
meta: {
|
7
6
|
title: {
|
8
7
|
en: "Backoffice Orders",
|
9
8
|
ru: "Управление Заказами"
|
10
|
-
}
|
11
|
-
authorize: []
|
9
|
+
}
|
12
10
|
},
|
11
|
+
component: e,
|
13
12
|
children: [{
|
14
13
|
path: "",
|
15
14
|
name: "Backoffice Orders",
|
@@ -17,8 +16,7 @@ const r = [
|
|
17
16
|
title: {
|
18
17
|
en: "Backoffice Orders",
|
19
18
|
ru: "Управление Заказами"
|
20
|
-
}
|
21
|
-
authorize: []
|
19
|
+
}
|
22
20
|
},
|
23
21
|
component: () => import(
|
24
22
|
/* webpackChunkName: 'BackofficeOrders' */
|
@@ -42,5 +40,5 @@ const r = [
|
|
42
40
|
}
|
43
41
|
];
|
44
42
|
export {
|
45
|
-
|
43
|
+
t as default
|
46
44
|
};
|
package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../../icons/navigation/IconEdit.vue.cjs");require("../../../../components/Spoiler/Spoiler.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../../icons/navigation/IconEdit.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("./DepartmentSub.vue2.cjs");const d=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),u=require("../../../users/components/blocks/CardUser.vue.cjs");require("./CardDepartment.vue2.cjs");const c={class:"radius-semi o-hidden cols-2-1_3"},m={class:"pd-medium w-100"},p=["innerHTML"],k={key:0},_={__name:"CardDepartment",props:{department:Object,organization:Object},setup(t){const n=t;return(o,a)=>{const s=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("div",m,[e.createVNode(s,{to:{name:"Department Edit",params:{_id:n.organization,department:t.department._id}},class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"},{default:e.withCtx(()=>[e.createVNode(l.default,{class:"i-regular",classes:"fill-white"})]),_:1},8,["to"]),e.createElementVNode("h3",{onClick:a[0]||(a[0]=r=>o.$router.push(`/organizations/${n.organization}/departments/${t.department._id}`)),class:"mn-b-small w-100",innerHTML:t.department.profile.name},null,8,p),e.createElementVNode("ul",null,[t.department.members.length<1?(e.openBlock(),e.createElementBlock("li",k,"No members in department")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.department.members,(r,i)=>(e.openBlock(),e.createBlock(u.default,{class:"br-b br-solid br-grey",key:i,user:r.user,position:r.position,onClick:g=>o.$router.push(`/app/profile/${r.user._id}`)},null,8,["user","position","onClick"]))),128))])])])}}},b=d.default(_,[["__scopeId","data-v-5cb387b9"]]);exports.default=b;
|