@ozdao/prometheus-framework 0.2.58 → 0.2.60
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/community.server.js +1 -1
- package/dist/community.server.mjs +1 -1
- package/dist/events.server.js +23 -3
- package/dist/events.server.mjs +23 -3
- package/dist/metadata.schema-CjpDDEnW.mjs +210 -0
- package/dist/metadata.schema-doiYQfuO.js +209 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +1 -373
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +51 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue2.js +1 -51
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +36 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +1 -36
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- 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/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +1 -1
- 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/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/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/Event.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +44 -44
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.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 +31 -31
- 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 +1 -1
- 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/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +166 -123
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +56 -45
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +19 -24
- 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/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/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/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
- 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 +15 -15
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.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 +8 -8
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
- 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/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.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 +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/modules/events/components/elements/ButtonCheck.vue +106 -0
- package/src/modules/events/components/pages/Event.vue +10 -1
- package/src/modules/events/controllers/tickets.controller.js +31 -2
- package/src/modules/events/models/ticket.model.js +8 -0
- package/src/modules/globals/components/blocks/CardHeader.vue +1 -1
- package/src/modules/globals/models/ownership.schema.js +1 -1
- package/src/modules/orders/components/pages/EditOrder.vue +84 -29
- package/src/modules/orders/components/pages/Order.vue +10 -9
- package/src/modules/orders/components/pages/Orders.vue +30 -21
- package/src/modules/orders/controllers/orders.controller.js +1 -1
- package/src/modules/orders/models/order.model.js +10 -1
- package/src/modules/orders/store/orders.js +1 -6
- package/src/modules/products/components/blocks/CardPosition.vue +1 -1
- package/src/modules/products/components/pages/EditLeftover.vue +2 -2
@@ -1,54 +1,54 @@
|
|
1
|
-
import { ref as
|
2
|
-
import "../../../../components/Loader/Loader.
|
3
|
-
import
|
1
|
+
import { ref as v, onMounted as b, openBlock as a, createElementBlock as c, createVNode as u, TransitionGroup as g, withCtx as p, Fragment as f, renderList as k, createCommentVNode as n, Transition as x, createBlock as s, normalizeStyle as L, createElementVNode as m, normalizeClass as w, resolveDynamicComponent as C, mergeProps as B } from "vue";
|
2
|
+
import "../../../../components/Loader/Loader.vue2.js";
|
3
|
+
import E from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
4
|
import $ from "../sections/HeroEvent.vue.js";
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
5
|
+
import I from "../sections/SectionMainGuest.vue.js";
|
6
|
+
import S from "../sections/SectionSpecialGuests.vue.js";
|
7
|
+
import H from "../sections/SectionLineup.vue.js";
|
8
|
+
import U from "../sections/SectionPreviousEvents.vue.js";
|
9
9
|
import M from "../blocks/CardEvent.vue.js";
|
10
|
-
import
|
11
|
-
import
|
12
|
-
import
|
13
|
-
import
|
14
|
-
import { read as
|
15
|
-
import { mutations as
|
10
|
+
import N from "../../../icons/skeletons/SkeletonEvent.vue.js";
|
11
|
+
import P from "../elements/ButtonJoin.vue.js";
|
12
|
+
import V from "../../../community/components/sections/Comments.vue.js";
|
13
|
+
import z from "../../../constructor/components/elements/Image.vue.js";
|
14
|
+
import { read as F } from "../../store/events.js";
|
15
|
+
import { mutations as q } from "../../store/tickets.js";
|
16
16
|
import { state as o } from "../../../auth/store/auth.js";
|
17
|
-
import { useRoute as
|
18
|
-
const
|
17
|
+
import { useRoute as A } from "vue-router";
|
18
|
+
const G = { class: "pd-thin" }, J = /* @__PURE__ */ m("h2", { class: "mn-b-big w-100 t-center" }, "Event Details", -1), re = {
|
19
19
|
__name: "Event",
|
20
|
-
setup(
|
21
|
-
const D =
|
22
|
-
|
23
|
-
},
|
20
|
+
setup(K) {
|
21
|
+
const D = A(), _ = v(null), y = ({ ticket: t, hasTicket: r, targetId: i }) => {
|
22
|
+
q.handleTicketUpdate(e.value, t, r, i), console.log("HANDLE TICKET UPDATE", t, e.value), _.value = t.qrcode;
|
23
|
+
}, T = {
|
24
24
|
Textarea: "p",
|
25
25
|
H2: "h2",
|
26
26
|
Bullets: "p",
|
27
27
|
Caption: "p",
|
28
|
-
ImageUpload:
|
28
|
+
ImageUpload: z
|
29
29
|
};
|
30
|
-
function
|
30
|
+
function h(t) {
|
31
31
|
return t.type === "Textarea" ? { innerHTML: t.content, class: "p-medium" } : t.type === "H2" ? { innerHTML: t.content, class: "h3" } : t.type === "Caption" ? { innerHTML: t.content } : t.type === "ImageUpload" ? { src: t.content } : {};
|
32
32
|
}
|
33
|
-
const e =
|
34
|
-
return
|
33
|
+
const e = v(null), l = v(!0);
|
34
|
+
return b(async () => {
|
35
35
|
l.value = !0;
|
36
|
-
const t = await
|
36
|
+
const t = await F({ user: o.user._id, url: D.params.url });
|
37
37
|
e.value = t[0], l.value = !1;
|
38
|
-
}), (t, r) => (a(), c("section",
|
38
|
+
}), (t, r) => (a(), c("section", G, [
|
39
39
|
u(g, {
|
40
40
|
tag: "ul",
|
41
41
|
name: "fade",
|
42
42
|
class: "o-hidden bg-grey radius-big"
|
43
43
|
}, {
|
44
44
|
default: p(() => [
|
45
|
-
l.value ? (a(), c(f, { key: 0 }, k(3, (i) => u(
|
45
|
+
l.value ? (a(), c(f, { key: 0 }, k(3, (i) => u(N, { key: i })), 64)) : n("", !0)
|
46
46
|
]),
|
47
47
|
_: 1
|
48
48
|
}),
|
49
|
-
u(
|
49
|
+
u(x, { name: "fade" }, {
|
50
50
|
default: p(() => [
|
51
|
-
!l.value && !e.value ? (a(), s(
|
51
|
+
!l.value && !e.value ? (a(), s(E, {
|
52
52
|
key: 0,
|
53
53
|
title: "No Event Found",
|
54
54
|
description: "Currently, there are no events available. Please check back later.",
|
@@ -82,7 +82,7 @@ const J = { class: "pd-thin" }, R = /* @__PURE__ */ v("h2", { class: "mn-b-big w
|
|
82
82
|
},
|
83
83
|
class: "mn-b-thin"
|
84
84
|
}, null, 8, ["content", "options"])) : n("", !0),
|
85
|
-
!l.value && e.value && e.value.special ? (a(), s(
|
85
|
+
!l.value && e.value && e.value.special ? (a(), s(I, {
|
86
86
|
key: 1,
|
87
87
|
content: {
|
88
88
|
title: e.value.specialData.guestTitle,
|
@@ -102,34 +102,34 @@ const J = { class: "pd-thin" }, R = /* @__PURE__ */ v("h2", { class: "mn-b-big w
|
|
102
102
|
}, null, 8, ["content"])) : n("", !0),
|
103
103
|
!l.value && e.value && e.value.special ? (a(), c("section", {
|
104
104
|
key: 2,
|
105
|
-
style:
|
105
|
+
style: L(`
|
106
106
|
background-size: 100%; background-repeat: no-repeat;
|
107
107
|
background-image: url(${e.value.specialData.lineupBackground});
|
108
108
|
`),
|
109
109
|
class: "mn-b-thin t-white gap-big w-100 h-max o-hidden radius-big pd-big pos-relative bg-black"
|
110
110
|
}, [
|
111
|
-
|
112
|
-
|
111
|
+
J,
|
112
|
+
m("div", {
|
113
113
|
class: w(["gap-big mn-b-thin", {
|
114
114
|
"cols-2": e.value.specialData.guests.length > 0,
|
115
115
|
"cols-1": e.value.specialData.guests.length > 1
|
116
116
|
}])
|
117
117
|
}, [
|
118
|
-
e.value.specialData.guests.length > 0 ? (a(), s(
|
118
|
+
e.value.specialData.guests.length > 0 ? (a(), s(S, {
|
119
119
|
key: 0,
|
120
120
|
content: {
|
121
121
|
title: "Special Guests",
|
122
122
|
guests: e.value.specialData.guests
|
123
123
|
}
|
124
124
|
}, null, 8, ["content"])) : n("", !0),
|
125
|
-
u(
|
125
|
+
u(H, {
|
126
126
|
content: {
|
127
127
|
title: "Lineup",
|
128
128
|
lineup: e.value.specialData.lineup
|
129
129
|
}
|
130
130
|
}, null, 8, ["content"])
|
131
131
|
], 2),
|
132
|
-
u(
|
132
|
+
u(U, {
|
133
133
|
content: {
|
134
134
|
ticket: e.value.specialData.ticketImage,
|
135
135
|
ticketTextButton: e.value.specialData.ticketTextButton,
|
@@ -156,29 +156,29 @@ const J = { class: "pd-thin" }, R = /* @__PURE__ */ v("h2", { class: "mn-b-big w
|
|
156
156
|
class: "mn-b-medium bg-grey radius-big"
|
157
157
|
}, {
|
158
158
|
default: p(() => [
|
159
|
-
o.user._id ? (a(), s(
|
159
|
+
o.user._id ? (a(), s(P, {
|
160
160
|
key: 0,
|
161
161
|
type: "event",
|
162
162
|
hasTicket: e.value.hasTicket,
|
163
163
|
targetId: e.value._id,
|
164
164
|
userId: o.user._id,
|
165
165
|
class: "mn-b-small w-100 pd-medium mn-auto",
|
166
|
-
onUpdateTicket:
|
166
|
+
onUpdateTicket: y
|
167
167
|
}, null, 8, ["hasTicket", "targetId", "userId"])) : n("", !0),
|
168
|
-
|
169
|
-
e.value && e.value.content ? (a(!0), c(f, { key: 0 }, k(e.value.content, (i,
|
170
|
-
key:
|
171
|
-
index:
|
168
|
+
m("section", null, [
|
169
|
+
e.value && e.value.content ? (a(!0), c(f, { key: 0 }, k(e.value.content, (i, d) => (a(), s(C(T[i.type]), B({
|
170
|
+
key: d,
|
171
|
+
index: d,
|
172
172
|
component: i,
|
173
173
|
prop: i,
|
174
174
|
class: i.class,
|
175
175
|
content: "content"
|
176
|
-
},
|
176
|
+
}, h(i), { class: "mn-b-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : n("", !0)
|
177
177
|
])
|
178
178
|
]),
|
179
179
|
_: 1
|
180
180
|
}, 8, ["event", "owner", "user"])) : n("", !0),
|
181
|
-
!l.value && e.value && !e.value.special ? (a(), s(
|
181
|
+
!l.value && e.value && !e.value.special ? (a(), s(V, {
|
182
182
|
key: 4,
|
183
183
|
type: "event",
|
184
184
|
target: e.value._id,
|
@@ -191,5 +191,5 @@ const J = { class: "pd-thin" }, R = /* @__PURE__ */ v("h2", { class: "mn-b-big w
|
|
191
191
|
}
|
192
192
|
};
|
193
193
|
export {
|
194
|
-
|
194
|
+
re as default
|
195
195
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const t=require("../sections/Feed.vue.cjs");require("../../../../components/Loader/Loader.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const t=require("../sections/Feed.vue.cjs");require("../../../../components/Loader/Loader.vue2.cjs");require("../../../../components/Chips/Chips.vue2.cjs");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Select/Select.vue2.cjs");require("../../../reports/store/reports.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");const i=require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");require("../../../community/store/reactions.cjs");const o=require("../../store/events.cjs");require("../sections/List.vue2.cjs");const s={__name:"Events",setup(c){const r=u.useRoute();return u.useRouter(),(n,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(t.default,{category:e.unref(r).params.category,user:i.state.user._id,period:e.unref(r).query.period,selectedDate:o.state.filter.date},null,8,["category","user","period","selectedDate"])]))}};exports.default=s;
|
@@ -4,7 +4,7 @@ import "vue-i18n";
|
|
4
4
|
import "../../../globals/localization/vue-i18n.js";
|
5
5
|
import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
|
6
6
|
import s from "../sections/Feed.vue.js";
|
7
|
-
import "../../../../components/Loader/Loader.
|
7
|
+
import "../../../../components/Loader/Loader.vue2.js";
|
8
8
|
import "../../../../components/Chips/Chips.vue2.js";
|
9
9
|
import "../../../../components/Popup/Popup.vue2.js";
|
10
10
|
import "../../../../components/Button/Button.vue2.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue2.cjs");const p=require("../../../../components/EmptyState/EmptyState.vue.cjs"),g=require("../blocks/CardEvent.vue.cjs"),m=require("../../../icons/skeletons/SkeletonEvent.vue.cjs"),c=require("../../store/events.cjs"),v={class:"feed"},f={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},creator:{type:String,default:null},user:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},sortParam:{type:String,default:"date.start"},participant:{type:String,default:null},period:{type:String,default:null},phase:{type:String,default:null}},setup(i){const t=i,a=e.ref([]),n=e.ref(!1),l=e.ref(!0),s=e.ref(0),u=e.ref(20),d=async()=>{if(n.value){s.value+=u.value;const r=await c.read({skip:s.value,limit:u.value,category:t.category,sortOrder:t.sortOrder,sortParam:t.sortParam,participant:t.participant,creator:t.creator,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.length===0?n.value=!1:n.value=!0,a.value=[...a.value,...r]}};return e.onMounted(async()=>{l.value=!0,console.log(t.selectedDate);const r=await c.read({skip:s.value,limit:u.value,category:t.category,participant:t.participant,sortOrder:t.sortOrder,sortParam:t.sortParam,user:t.user,owner:t.owner,creator:t.creator,date:t.selectedDate,organization:t.organization,period:t.period,phase:t.phase});r.length===0?n.value=!1:n.value=!0,a.value=r,l.value=!1}),(r,y)=>(e.openBlock(),e.createElementBlock("section",v,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[l.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,o=>(e.openBlock(),e.createBlock(m.default,{key:o}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!l.value&&a.value.length<1?(e.openBlock(),e.createBlock(p.default,{key:0,title:"No Events Found",description:"Currently, there are no events available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"container"},{default:e.withCtx(()=>[!l.value&&a.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,(o,k)=>(e.openBlock(),e.createBlock(g.default,{onClick:h=>r.$router.push({name:"Event",params:{url:o.url}}),key:o._id,event:o,user:i.user,type:"normal",class:"bg-grey radius-big mn-b-medium"},null,8,["onClick","event","user"]))),128)):e.createCommentVNode("",!0),n.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=f;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as i, onMounted as _, openBlock as r, createElementBlock as u, createVNode as p, TransitionGroup as f, withCtx as m, Fragment as y, renderList as h, createBlock as g, createCommentVNode as c, Transition as S } from "vue";
|
2
|
-
import "../../../../components/Loader/Loader.
|
2
|
+
import "../../../../components/Loader/Loader.vue2.js";
|
3
3
|
import w from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
4
|
import C from "../blocks/CardEvent.vue.js";
|
5
5
|
import E from "../../../icons/skeletons/SkeletonEvent.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue2.cjs");const c=require("../../../../components/EmptyState/EmptyState.vue.cjs"),d=require("../blocks/CardEvent.vue.cjs"),p=require("../../../icons/skeletons/SkeletonEventShort.vue.cjs"),m=require("../../store/events.cjs");require("./List.vue2.cjs");const g={class:"today-events"},k={__name:"List",props:{category:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},period:{type:String,default:null},phase:{type:String,default:null}},setup(l){const t=l,r=e.ref([]),n=e.ref(!0),s=e.ref(0),u=e.ref(5);return e.onMounted(async()=>{const o=await m.read({skip:s.value,limit:u.value,sortOrder:"desc",category:t.category,user:t.user,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.value=o,n.value=!1}),(o,v)=>(e.openBlock(),e.createElementBlock("section",g,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[n.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,a=>(e.openBlock(),e.createBlock(p.default,{key:a}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!n.value&&r.value.length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"No Events Today",description:"Today, are no events available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!n.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(a,i)=>(e.openBlock(),e.createBlock(d.default,{onClick:f=>o.$router.push({name:"Event",params:{url:a.url}}),key:a._id,event:a,owner:l.user,type:"short",class:e.normalizeClass(["pd-medium",{"br-b br-solid br-black-transp-10":i!==r.value.length-1}])},null,8,["onClick","event","owner","class"]))),128)):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=k;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as o, onMounted as h, openBlock as t, createElementBlock as i, createVNode as s, TransitionGroup as g, withCtx as u, Fragment as f, renderList as y, createBlock as c, createCommentVNode as d, Transition as b, normalizeClass as _ } from "vue";
|
2
|
-
import "../../../../components/Loader/Loader.
|
2
|
+
import "../../../../components/Loader/Loader.vue2.js";
|
3
3
|
import S from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
4
|
import w from "../blocks/CardEvent.vue.js";
|
5
5
|
import C from "../../../icons/skeletons/SkeletonEventShort.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router"),h=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),f=require("../../../reports/components/sections/FormReport.vue.cjs"),g=require("../../../../components/Dropdown/Dropdown.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");const k=require("../../../icons/navigation/IconEllipsis.vue.cjs"),y={key:0,class:"pd-b-zero"},w={class:"w-100 flex-v-center flex-nojustify flex"},b={class:"w-100 flex-nowrap flex-v-center flex"},B=["src"],E={key:2,class:"t-semi"},p={key:1},V={key:2},C={class:"d-block mn-l-auto flex-nowrap flex flex-v-center"},N={key:0,class:"w-4r i-thin"},v={style:{position:"absolute",top:"0px",right:"0px"},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"},x=["src"],$={class:"bg-black pd-thin radius-small"},M=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),R={__name:"CardHeader",props:["user","entity","entityType","date","dateFormatted","owner","creator","members","membersPhotos","type"],setup(t){m.useRouter();function u(
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router"),h=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),f=require("../../../reports/components/sections/FormReport.vue.cjs"),g=require("../../../../components/Dropdown/Dropdown.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");const k=require("../../../icons/navigation/IconEllipsis.vue.cjs"),y={key:0,class:"pd-b-zero"},w={class:"w-100 flex-v-center flex-nojustify flex"},b={class:"w-100 flex-nowrap flex-v-center flex"},B=["src"],E={key:2,class:"t-semi"},p={key:1},V={key:2},C={class:"d-block mn-l-auto flex-nowrap flex flex-v-center"},N={key:0,class:"w-4r i-thin"},v={style:{position:"absolute",top:"0px",right:"0px"},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"},x=["src"],$={class:"bg-black pd-thin radius-small"},M=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),R={__name:"CardHeader",props:["user","entity","entityType","date","dateFormatted","owner","creator","members","membersPhotos","type"],setup(t){m.useRouter();function u(n){const r=new Date,i=new Date(n),s=Math.abs(r-i),l=Math.floor(s/1e3),o=Math.floor(l/60),a=Math.floor(o/60),c=Math.floor(a/24),d=Math.floor(c/7);return d>0?`${d} week${d>1?"s":""} ago`:c>0?`${c} day${c>1?"s":""} ago`:a>0?`${a} hour${a>1?"s":""} ago`:o>0?`${o} minute${o>1?"s":""} ago`:"Just now"}return(n,r)=>{var i,s,l;return t.owner?(e.openBlock(),e.createElementBlock("header",y,[e.createElementVNode("div",w,[e.createElementVNode("div",b,[((i=t.owner.target.profile.photo)==null?void 0:i.length)>0&&t.type!=="short"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(n.FILE_SERVER_URL||"")+t.owner.target.profile.photo,class:"radius-medium object-fit-cover mn-r-thin i-thin",onClick:r[0]||(r[0]=e.withModifiers(o=>n.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},null,8,B)):e.createCommentVNode("",!0),!t.owner.target.profile.photo&&t.type!=="short"?(e.openBlock(),e.createBlock(h.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:r[1]||(r[1]=e.withModifiers(o=>n.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))})):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("span",E,[e.createElementVNode("span",{onClick:r[2]||(r[2]=e.withModifiers(o=>n.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},e.toDisplayString(t.owner.target.profile.name),1),!t.creator.hidden&&t.owner.target.profile.name!==((s=t.creator.target.profile)==null?void 0:s.name)?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[3]||(r[3]=e.withModifiers(o=>n.$router.push({name:"User Profile",params:{_id:t.creator.target._id}}),["stop"]))}," · by "+e.toDisplayString((l=t.creator.target.profile)==null?void 0:l.name),1)):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",p," · "+e.toDisplayString(u(t.date)),1)):e.createCommentVNode("",!0),t.dateFormatted?(e.openBlock(),e.createElementBlock("span",V," · "+e.toDisplayString(t.dateFormatted),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",C,[t.members?(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("span",v,e.toDisplayString(t.members),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.membersPhotos.slice(0,2),(o,a)=>(e.openBlock(),e.createElementBlock("img",{key:a,src:(n.FILE_SERVER_URL||"")+o,style:e.normalizeStyle({position:"absolute",top:"0px",right:a*20+20+"%",zIndex:1-a}),class:"br-solid br-2px br-white i-thin bg-grey radius-big"},null,12,x))),128))])):e.createCommentVNode("",!0)]),t.type!=="short"&&t.user&&t.user!=t.creator.target._id?(e.openBlock(),e.createBlock(g.default,{key:3,label:{component:k.default,class:"t-transp i-regular"},align:"right",class:"cursor-pointer z-index-2"},{default:e.withCtx(()=>[e.createElementVNode("section",$,[t.user!==t.creator.target._id?(e.openBlock(),e.createBlock(f.default,{key:0,user:t.user,type:t.entityType,target:t.entity._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[M]),_:1},8,["user","type","target"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)}}};exports.default=R;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { openBlock as t, createElementBlock as
|
1
|
+
import { openBlock as t, createElementBlock as i, createElementVNode as l, withModifiers as h, createCommentVNode as n, createBlock as y, toDisplayString as d, Fragment as k, renderList as $, normalizeStyle as x, withCtx as b } from "vue";
|
2
2
|
import { useRouter as v } from "vue-router";
|
3
3
|
import p from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
|
4
4
|
import E from "../../../reports/components/sections/FormReport.vue.js";
|
@@ -39,72 +39,72 @@ const C = {
|
|
39
39
|
],
|
40
40
|
setup(e) {
|
41
41
|
v();
|
42
|
-
function w(
|
43
|
-
const r = /* @__PURE__ */ new Date(), m = new Date(
|
44
|
-
return g > 0 ? `${g} week${g > 1 ? "s" : ""} ago` : f > 0 ? `${f} day${f > 1 ? "s" : ""} ago` :
|
42
|
+
function w(s) {
|
43
|
+
const r = /* @__PURE__ */ new Date(), m = new Date(s), u = Math.abs(r - m), c = Math.floor(u / 1e3), o = Math.floor(c / 60), a = Math.floor(o / 60), f = Math.floor(a / 24), g = Math.floor(f / 7);
|
44
|
+
return g > 0 ? `${g} week${g > 1 ? "s" : ""} ago` : f > 0 ? `${f} day${f > 1 ? "s" : ""} ago` : a > 0 ? `${a} hour${a > 1 ? "s" : ""} ago` : o > 0 ? `${o} minute${o > 1 ? "s" : ""} ago` : "Just now";
|
45
45
|
}
|
46
|
-
return (
|
47
|
-
var m, u;
|
48
|
-
return e.owner ? (t(),
|
46
|
+
return (s, r) => {
|
47
|
+
var m, u, c;
|
48
|
+
return e.owner ? (t(), i("header", C, [
|
49
49
|
l("div", M, [
|
50
50
|
l("div", P, [
|
51
|
-
e.owner.target.profile.photo.length > 0 && e.type !== "short" ? (t(),
|
51
|
+
((m = e.owner.target.profile.photo) == null ? void 0 : m.length) > 0 && e.type !== "short" ? (t(), i("img", {
|
52
52
|
key: 0,
|
53
|
-
src: (
|
53
|
+
src: (s.FILE_SERVER_URL || "") + e.owner.target.profile.photo,
|
54
54
|
class: "radius-medium object-fit-cover mn-r-thin i-thin",
|
55
|
-
onClick: r[0] || (r[0] = h((
|
55
|
+
onClick: r[0] || (r[0] = h((o) => s.$router.push({
|
56
56
|
name: e.owner.type === "user" ? "User Profile" : "Organization",
|
57
57
|
params: {
|
58
58
|
_id: e.owner.target._id
|
59
59
|
}
|
60
60
|
}), ["stop"]))
|
61
|
-
}, null, 8, U)) :
|
61
|
+
}, null, 8, U)) : n("", !0),
|
62
62
|
!e.owner.target.profile.photo && e.type !== "short" ? (t(), y(p, {
|
63
63
|
key: 1,
|
64
64
|
class: "radius-medium mn-r-thin i-thin",
|
65
|
-
onClick: r[1] || (r[1] = h((
|
65
|
+
onClick: r[1] || (r[1] = h((o) => s.$router.push({
|
66
66
|
name: e.owner.type === "user" ? "User Profile" : "Organization",
|
67
67
|
params: {
|
68
68
|
_id: e.owner.target._id
|
69
69
|
}
|
70
70
|
}), ["stop"]))
|
71
|
-
})) :
|
72
|
-
e.type !== "short" ? (t(),
|
71
|
+
})) : n("", !0),
|
72
|
+
e.type !== "short" ? (t(), i("span", F, [
|
73
73
|
l("span", {
|
74
|
-
onClick: r[2] || (r[2] = h((
|
74
|
+
onClick: r[2] || (r[2] = h((o) => s.$router.push({
|
75
75
|
name: e.owner.type === "user" ? "User Profile" : "Organization",
|
76
76
|
params: {
|
77
77
|
_id: e.owner.target._id
|
78
78
|
}
|
79
79
|
}), ["stop"]))
|
80
80
|
}, d(e.owner.target.profile.name), 1),
|
81
|
-
!e.creator.hidden && e.owner.target.profile.name !== ((
|
81
|
+
!e.creator.hidden && e.owner.target.profile.name !== ((u = e.creator.target.profile) == null ? void 0 : u.name) ? (t(), i("span", {
|
82
82
|
key: 0,
|
83
|
-
onClick: r[3] || (r[3] = h((
|
83
|
+
onClick: r[3] || (r[3] = h((o) => s.$router.push({
|
84
84
|
name: "User Profile",
|
85
85
|
params: {
|
86
86
|
_id: e.creator.target._id
|
87
87
|
}
|
88
88
|
}), ["stop"]))
|
89
|
-
}, " · by " + d((
|
90
|
-
e.date ? (t(),
|
91
|
-
e.dateFormatted ? (t(),
|
92
|
-
])) :
|
89
|
+
}, " · by " + d((c = e.creator.target.profile) == null ? void 0 : c.name), 1)) : n("", !0),
|
90
|
+
e.date ? (t(), i("span", D, " · " + d(w(e.date)), 1)) : n("", !0),
|
91
|
+
e.dateFormatted ? (t(), i("span", L, " · " + d(e.dateFormatted), 1)) : n("", !0)
|
92
|
+
])) : n("", !0),
|
93
93
|
l("div", S, [
|
94
|
-
e.members ? (t(),
|
94
|
+
e.members ? (t(), i("div", V, [
|
95
95
|
l("span", B, d(e.members), 1),
|
96
|
-
(t(!0),
|
97
|
-
key:
|
98
|
-
src: (
|
96
|
+
(t(!0), i(k, null, $(e.membersPhotos.slice(0, 2), (o, a) => (t(), i("img", {
|
97
|
+
key: a,
|
98
|
+
src: (s.FILE_SERVER_URL || "") + o,
|
99
99
|
style: x({
|
100
100
|
position: "absolute",
|
101
101
|
top: "0px",
|
102
|
-
right:
|
103
|
-
zIndex: 1 -
|
102
|
+
right: a * 20 + 20 + "%",
|
103
|
+
zIndex: 1 - a
|
104
104
|
}),
|
105
105
|
class: "br-solid br-2px br-white i-thin bg-grey radius-big"
|
106
106
|
}, null, 12, I))), 128))
|
107
|
-
])) :
|
107
|
+
])) : n("", !0)
|
108
108
|
]),
|
109
109
|
e.type !== "short" && e.user && e.user != e.creator.target._id ? (t(), y(R, {
|
110
110
|
key: 3,
|
@@ -126,14 +126,14 @@ const C = {
|
|
126
126
|
T
|
127
127
|
]),
|
128
128
|
_: 1
|
129
|
-
}, 8, ["user", "type", "target"])) :
|
129
|
+
}, 8, ["user", "type", "target"])) : n("", !0)
|
130
130
|
])
|
131
131
|
]),
|
132
132
|
_: 1
|
133
|
-
}, 8, ["label"])) :
|
133
|
+
}, 8, ["label"])) : n("", !0)
|
134
134
|
])
|
135
135
|
])
|
136
|
-
])) :
|
136
|
+
])) : n("", !0);
|
137
137
|
};
|
138
138
|
}
|
139
139
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Button/Button.vue2.cjs");const a=require("../../../mobile/components/Menu/Menu.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Button/Button.vue2.cjs");const a=require("../../../mobile/components/Menu/Menu.vue2.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,7 +1,7 @@
|
|
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.vue2.js";
|
3
3
|
import "../../../../components/Button/Button.vue2.js";
|
4
|
-
import p from "../../../mobile/components/Menu/Menu.
|
4
|
+
import p from "../../../mobile/components/Menu/Menu.vue2.js";
|
5
5
|
import n from "../../../mobile/components/Menu/MenuItem.vue.js";
|
6
6
|
import { useRoute as d, useRouter as h } from "vue-router";
|
7
7
|
import "../../../auth/store/auth.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1,13 +1 @@
|
|
1
|
-
|
2
|
-
import "./Menu.vue2.js";
|
3
|
-
const r = { class: "mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium" }, d = {
|
4
|
-
__name: "Menu",
|
5
|
-
setup(s) {
|
6
|
-
return (e, i) => (t(), o("section", r, [
|
7
|
-
n(e.$slots, "default")
|
8
|
-
]));
|
9
|
-
}
|
10
|
-
};
|
11
|
-
export {
|
12
|
-
d as default
|
13
|
-
};
|
1
|
+
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Menu.vue.cjs");const r={class:"mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium"},o={__name:"Menu",setup(u){return(t,n)=>(e.openBlock(),e.createElementBlock("section",r,[e.renderSlot(t.$slots,"default")]))}};exports.default=o;
|
@@ -1 +1,13 @@
|
|
1
|
-
|
1
|
+
import { openBlock as t, createElementBlock as o, renderSlot as n } from "vue";
|
2
|
+
import "./Menu.vue.js";
|
3
|
+
const r = { class: "mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium" }, d = {
|
4
|
+
__name: "Menu",
|
5
|
+
setup(s) {
|
6
|
+
return (e, i) => (t(), o("section", r, [
|
7
|
+
n(e.$slots, "default")
|
8
|
+
]));
|
9
|
+
}
|
10
|
+
};
|
11
|
+
export {
|
12
|
+
d as default
|
13
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router"),N=require("../../../../components/Feed/Feed.vue.cjs"),p=require("../../../../components/Field/Field.vue.cjs"),q=require("../../../../components/Button/Button.vue.cjs"),w=require("../../../../components/Popup/Popup.vue.cjs"),o=require("../../../../components/Block/Block.vue.cjs"),f=require("../blocks/CardOrderItem.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");require("../../../../components/FieldPhone/all-countries.cjs");require("../../../../components/FieldPhone/FieldPhone2.vue.cjs");const C=require("../../../auth/store/auth.cjs"),a=require("../../../globals/store/globals.cjs"),t=require("../../store/orders.cjs"),V=require("../../../products/store/products.cjs");require("./EditOrder.vue2.cjs");const x={class:"flex-v-center flex-nowrap flex"},y=e.createElementVNode("h2",{class:"mn-r-auto"},"Create Order",-1),B=e.createElementVNode("h3",{class:"mn-b-small"},"Add to order",-1),v={class:"bg-grey mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big"},E={key:0,class:"w-100"},P={class:"h3 flex"},O=e.createElementVNode("span",{class:"mn-r-auto t-transp"},"In total",-1),F={__name:"EditOrder",setup(R){const i=m.useRoute(),h=m.useRouter();let b=e.computed(()=>Number(t.state.current.positions.reduce((c,n)=>c+n.price*n.quantity,0)));const l=e.ref(!1);function _(){l.value=!0}function u(){l.value=!1}e.ref(null);function g(){t.state.current.creator={type:"user",target:C.state.user._id},t.state.current.owner={type:"organization",target:i.params._id},t.actions.create(t.state.current)}function k(){h.push({name:"Backoffice Orders",params:{_id:i.params._id}})}return e.onMounted(async()=>{}),(c,n)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(o.default,{class:"mn-b-thin"},{default:e.withCtx(()=>[e.createElementVNode("header",x,[y,e.createVNode(q.default,{submit:g,callback:k,class:"pd-small radius-big bg-main t-black uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Add Order ")]),_:1})])]),_:1}),e.createVNode(w.default,{title:"Добавить участника",onClosePopup:u,isPopupOpen:l.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[B,e.createElementVNode("div",v,[e.createVNode(N.default,{search:!0,states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:r=>V.actions.read(r),state:null},options:{organization:e.unref(i).params._id},class:""},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(s,S)=>(e.openBlock(),e.createBlock(f.default,{key:s._id,editable:!1,product:s,onClick:()=>{let d={...s};d.quantity=1,a.actions.add(t.state.current.positions,d),u()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["states","store","options"])])]),_:1},8,["isPopupOpen"]),e.createVNode(o.default,{title:"Positions",actions:[{label:"+",function:()=>_()}],class:"mn-b-semi"},{default:e.withCtx(()=>[t.state.current.positions.length===0?(e.openBlock(),e.createElementBlock("span",E," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.positions,(r,s)=>(e.openBlock(),e.createBlock(f.default,{key:r._id,editable:!0,product:r,onIncrease:()=>{a.actions.increment(t.state.current.positions,r)},onDecrease:()=>{a.actions.decrement(t.state.current.positions,r)},onRemove:()=>{a.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.createVNode(o.default,{title:"Client",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(p.default,{field:t.state.current.client.name,"onUpdate:field":n[0]||(n[0]=r=>t.state.current.client.name=r),label:"Client",placeholder:"Enter client name",class:"bg-white pd-medium radius-small mn-b-thin"},null,8,["field"]),e.createVNode(p.default,{field:t.state.current.comment,"onUpdate:field":n[1]||(n[1]=r=>t.state.current.comment=r),label:"Comment",placeholder:"Enter comment",class:"bg-white pd-medium radius-small mn-b-thin"},null,8,["field"])]),_:1}),e.createVNode(o.default,{class:"mn-b-semi"},{default:e.withCtx(()=>[e.createElementVNode("div",P,[O,e.createElementVNode("span",null,e.toDisplayString(e.unref(b))+" "+e.toDisplayString(c.returnCurrency()),1)])]),_:1})]))}};exports.default=F;
|