@ozdao/prometheus-framework 0.2.92 → 0.2.93
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/events.server.js +14 -6
- package/dist/events.server.mjs +14 -6
- package/dist/main-CX2ISR43.mjs +13629 -0
- package/dist/main-cffh4bbv.js +92 -0
- package/dist/main.css +1 -1
- package/dist/orders.server.js +32 -18
- package/dist/orders.server.mjs +32 -18
- package/dist/organizations.server.js +2 -1
- package/dist/organizations.server.mjs +2 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +46 -48
- 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.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +94 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +1 -94
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +1 -84
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +25 -20
- package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.js +36 -26
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -103
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/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 +3 -3
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +66 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.js +11 -11
- 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/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +46 -46
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +39 -65
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +31 -31
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +242 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +62 -62
- 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 +30 -30
- 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 +99 -70
- 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 +3 -3
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +10 -10
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +33 -34
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +42 -42
- 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 +27 -25
- 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 +11 -11
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +46 -43
- 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 +162 -168
- 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 +27 -26
- 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 +7 -7
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.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 +2 -2
- 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 +13 -13
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +16 -17
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +22 -20
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +59 -38
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +23 -22
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +17 -14
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- 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-CQQEUA9l.js +1 -0
- package/dist/web-D2Em-p-C.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +23 -34
- package/src/components/LocationMarker/LocationMarker.vue +6 -1
- package/src/components/LocationSelection/LocationSelection.vue +4 -0
- package/src/components/Map/Map.vue +29 -15
- package/src/modules/constructor/components/elements/VideoPlayer.vue +2 -2
- package/src/modules/events/controllers/events.controller.js +4 -4
- package/src/modules/globals/components/blocks/CardHeader.vue +2 -2
- package/src/modules/integrations/stripe/controllers/services/stripe.service.js +17 -6
- package/src/modules/landing/components/pages/Farming.vue +226 -0
- package/src/modules/landing/components/pages/Governance.vue +3 -5
- package/src/modules/landing/components/pages/Home.vue +0 -3
- package/src/modules/landing/components/pages/Hotel.vue +1 -3
- package/src/modules/landing/components/pages/Page.vue +0 -3
- package/src/modules/landing/components/sections/Examples.vue +4 -56
- package/src/modules/landing/components/sections/SectionFeature.vue +41 -0
- package/src/modules/landing/components/sections/SectionFeaturesImages.vue +122 -0
- package/src/modules/landing/components/sections/SectionFocus.vue +59 -0
- package/src/modules/landing/components/sections/SectionHeroVideo.vue +164 -0
- package/src/modules/landing/router/landing.js +11 -0
- package/src/modules/marketplace/components/sections/Filters.vue +26 -23
- package/src/modules/orders/components/blocks/CardOrderItem.vue +8 -0
- package/src/modules/orders/components/blocks/StatusHistory.vue +25 -53
- package/src/modules/orders/components/pages/Order.vue +2 -6
- package/src/modules/orders/components/pages/OrderBackoffice.vue +393 -0
- package/src/modules/orders/components/pages/OrderCreate.vue +5 -4
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +2 -3
- package/src/modules/orders/components/pages/Orders.vue +60 -11
- package/src/modules/orders/components/sections/FormDelivery.vue +2 -2
- package/src/modules/orders/controllers/orders.controller.js +29 -18
- package/src/modules/orders/models/order.model.js +8 -2
- package/src/modules/orders/router/orders.backoffice.router.js +1 -1
- package/src/modules/orders/router/orders.router.js +2 -2
- package/src/modules/orders/store/orders.js +3 -7
- package/src/modules/orders/store/shopcart.js +1 -1
- package/src/modules/organizations/components/blocks/CardDepartment.vue +2 -0
- package/src/modules/organizations/components/pages/Department.vue +5 -1
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +65 -27
- package/src/modules/organizations/components/pages/Members.vue +2 -1
- package/src/modules/organizations/components/pages/Organization.vue +1 -1
- package/src/modules/organizations/controllers/memberships.controller.js +3 -1
- package/src/modules/organizations/store/memberships.js +1 -1
- package/src/modules/products/components/blocks/CardProduct.vue +2 -3
- package/src/modules/products/components/pages/ProductEdit.vue +10 -13
- package/src/modules/products/components/pages/Products.vue +2 -0
- package/src/modules/products/store/products.js +25 -2
- package/src/modules/spots/components/blocks/CardSpot.vue +2 -2
- package/src/modules/users/components/blocks/CardUser.vue +1 -0
- package/src/modules/landing/components/sections/AboutSection.vue +0 -69
@@ -1,34 +1,34 @@
|
|
1
|
-
import { openBlock as t, createElementBlock as i, createElementVNode as
|
2
|
-
import { useRouter as
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
1
|
+
import { openBlock as t, createElementBlock as i, createElementVNode as m, withModifiers as w, createCommentVNode as r, createBlock as f, toDisplayString as h, withCtx as k, createTextVNode as F, Fragment as M, renderList as L, normalizeStyle as P } from "vue";
|
2
|
+
import { useRouter as T } from "vue-router";
|
3
|
+
import U from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
|
4
|
+
import V from "../../../reports/components/sections/FormReport.vue.js";
|
5
|
+
import I from "../../../../components/Tooltip/Tooltip.vue.js";
|
6
|
+
import S from "../../../../components/Dropdown/Dropdown.vue.js";
|
7
7
|
import "../../../../components/Loader/Loader.vue.js";
|
8
|
-
import "../../../../components/Button/Button.
|
8
|
+
import "../../../../components/Button/Button.vue2.js";
|
9
9
|
import "../../../auth/store/auth.js";
|
10
10
|
import "../../../organizations/store/memberships.js";
|
11
|
-
import
|
12
|
-
const
|
11
|
+
import A from "../../../icons/navigation/IconEllipsis.vue.js";
|
12
|
+
const B = {
|
13
13
|
key: 0,
|
14
14
|
class: "pd-b-zero"
|
15
|
-
},
|
15
|
+
}, N = { class: "w-100 flex-v-center flex-nojustify flex" }, O = { class: "w-100 flex-nowrap flex-v-center flex" }, j = ["src"], H = {
|
16
16
|
key: 2,
|
17
17
|
class: "t-semi"
|
18
|
-
},
|
18
|
+
}, J = {
|
19
19
|
key: 1,
|
20
20
|
class: "pos-relative"
|
21
|
-
},
|
21
|
+
}, q = { key: 2 }, G = { class: "d-block mn-l-auto flex-nowrap flex flex-v-center" }, K = {
|
22
22
|
key: 0,
|
23
23
|
class: "w-4r pos-relative i-thin"
|
24
|
-
},
|
24
|
+
}, Q = {
|
25
25
|
style: {
|
26
26
|
position: "absolute",
|
27
27
|
top: "0px",
|
28
28
|
right: "0px"
|
29
29
|
},
|
30
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"
|
31
|
-
},
|
31
|
+
}, W = ["src"], X = { class: "bg-black pd-thin radius-small" }, Y = /* @__PURE__ */ m("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), ue = {
|
32
32
|
__name: "CardHeader",
|
33
33
|
props: [
|
34
34
|
"user",
|
@@ -43,16 +43,16 @@ const S = {
|
|
43
43
|
"type"
|
44
44
|
],
|
45
45
|
setup(e) {
|
46
|
-
|
47
|
-
function
|
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),
|
49
|
-
return
|
46
|
+
T();
|
47
|
+
function D(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), u = Math.floor(l / 24), d = Math.floor(u / 7);
|
49
|
+
return d > 0 ? `${d} week${d > 1 ? "s" : ""} ago` : u > 0 ? `${u} day${u > 1 ? "s" : ""} ago` : l > 0 ? `${l} hour${l > 1 ? "s" : ""} ago` : a > 0 ? `${a} minute${a > 1 ? "s" : ""} ago` : "Just now";
|
50
50
|
}
|
51
51
|
return (s, o) => {
|
52
|
-
var g, y, b, a, l,
|
53
|
-
return e.owner ? (t(), i("header",
|
54
|
-
|
55
|
-
|
52
|
+
var g, y, b, a, l, u, d, x, $, v, p, z, E, R, C;
|
53
|
+
return e.owner ? (t(), i("header", B, [
|
54
|
+
m("div", N, [
|
55
|
+
m("div", O, [
|
56
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", {
|
57
57
|
key: 0,
|
58
58
|
src: (s.FILE_SERVER_URL || "") + e.owner.target.profile.photo,
|
@@ -63,8 +63,8 @@ const S = {
|
|
63
63
|
_id: e.owner.target._id
|
64
64
|
}
|
65
65
|
}), ["stop"]))
|
66
|
-
}, null, 8,
|
67
|
-
!((l = (a = e.owner.target) == null ? void 0 : a.profile) != null && l.photo) && e.type !== "short" ? (t(), f(
|
66
|
+
}, null, 8, j)) : r("", !0),
|
67
|
+
!((l = (a = e.owner.target) == null ? void 0 : a.profile) != null && l.photo) && e.type !== "short" ? (t(), f(U, {
|
68
68
|
key: 1,
|
69
69
|
class: "radius-medium mn-r-thin i-thin",
|
70
70
|
onClick: o[1] || (o[1] = w((c) => s.$router.push({
|
@@ -74,16 +74,16 @@ const S = {
|
|
74
74
|
}
|
75
75
|
}), ["stop"]))
|
76
76
|
})) : r("", !0),
|
77
|
-
e.type !== "short" ? (t(), i("span",
|
78
|
-
|
77
|
+
e.type !== "short" ? (t(), i("span", H, [
|
78
|
+
m("span", {
|
79
79
|
onClick: o[2] || (o[2] = w((c) => s.$router.push({
|
80
80
|
name: e.owner.type === "user" ? "User Profile" : "Organization",
|
81
81
|
params: {
|
82
82
|
_id: e.owner.target._id
|
83
83
|
}
|
84
84
|
}), ["stop"]))
|
85
|
-
}, h((
|
86
|
-
!e.creator.hidden && ((
|
85
|
+
}, h(((d = (u = e.owner.target) == null ? void 0 : u.profile) == null ? void 0 : d.name) || ((x = e.creator.target) == null ? void 0 : x.username) || "Anonymous"), 1),
|
86
|
+
!e.creator.hidden && ((v = ($ = e.owner.target) == null ? void 0 : $.profile) == null ? void 0 : v.name) !== ((z = (p = e.creator.target) == null ? void 0 : p.profile) == null ? void 0 : z.name) ? (t(), i("span", {
|
87
87
|
key: 0,
|
88
88
|
onClick: o[3] || (o[3] = w((c) => {
|
89
89
|
var n;
|
@@ -94,37 +94,37 @@ const S = {
|
|
94
94
|
}
|
95
95
|
});
|
96
96
|
}, ["stop"]))
|
97
|
-
}, " · by " + h((
|
98
|
-
e.date ? (t(), i("span",
|
99
|
-
e.date ? (t(), f(
|
97
|
+
}, " · by " + h(((R = (E = e.creator.target) == null ? void 0 : E.profile) == null ? void 0 : R.name) || ((C = e.creator.target) == null ? void 0 : C.username) || "Anonymous"), 1)) : r("", !0),
|
98
|
+
e.date ? (t(), i("span", J, [
|
99
|
+
e.date ? (t(), f(I, {
|
100
100
|
key: 0,
|
101
101
|
text: s.formatDate(e.date)
|
102
102
|
}, {
|
103
103
|
default: k(() => [
|
104
|
-
|
104
|
+
F(" · " + h(D(e.date)), 1)
|
105
105
|
]),
|
106
106
|
_: 1
|
107
107
|
}, 8, ["text"])) : r("", !0)
|
108
108
|
])) : r("", !0),
|
109
|
-
e.dateFormatted ? (t(), i("span",
|
109
|
+
e.dateFormatted ? (t(), i("span", q, " · " + h(e.dateFormatted), 1)) : r("", !0)
|
110
110
|
])) : r("", !0),
|
111
|
-
|
112
|
-
e.members ? (t(), i("div",
|
113
|
-
|
114
|
-
(t(!0), i(
|
111
|
+
m("div", G, [
|
112
|
+
e.members ? (t(), i("div", K, [
|
113
|
+
m("span", Q, h(e.members), 1),
|
114
|
+
(t(!0), i(M, null, L(e.membersPhotos.slice(0, 2), (c, n) => (t(), i(M, null, [
|
115
115
|
c ? (t(), i("img", {
|
116
116
|
key: n,
|
117
117
|
src: (s.FILE_SERVER_URL || "") + c,
|
118
|
-
style:
|
118
|
+
style: P({
|
119
119
|
position: "absolute",
|
120
120
|
top: "0px",
|
121
121
|
right: n * 20 + 20 + "%",
|
122
122
|
zIndex: 1 - n
|
123
123
|
}),
|
124
124
|
class: "br-solid br-2px br-white i-thin bg-grey radius-big"
|
125
|
-
}, null, 12,
|
125
|
+
}, null, 12, W)) : (t(), f(U, {
|
126
126
|
key: 1,
|
127
|
-
style:
|
127
|
+
style: P({
|
128
128
|
position: "absolute",
|
129
129
|
top: "0px",
|
130
130
|
right: n * 20 + 20 + "%",
|
@@ -135,15 +135,15 @@ const S = {
|
|
135
135
|
], 64))), 256))
|
136
136
|
])) : r("", !0)
|
137
137
|
]),
|
138
|
-
e.type !== "short" && e.user && e.user != e.creator.target._id ? (t(), f(
|
138
|
+
e.type !== "short" && e.user && e.user != e.creator.target._id ? (t(), f(S, {
|
139
139
|
key: 3,
|
140
|
-
label: { component:
|
140
|
+
label: { component: A, class: "t-transp i-regular" },
|
141
141
|
align: "right",
|
142
142
|
class: "cursor-pointer z-index-2"
|
143
143
|
}, {
|
144
144
|
default: k(() => [
|
145
|
-
|
146
|
-
e.user !== e.creator.target._id ? (t(), f(
|
145
|
+
m("section", X, [
|
146
|
+
e.user !== e.creator.target._id ? (t(), f(V, {
|
147
147
|
key: 0,
|
148
148
|
user: e.user,
|
149
149
|
type: e.entityType,
|
@@ -152,7 +152,7 @@ const S = {
|
|
152
152
|
class: "w-100"
|
153
153
|
}, {
|
154
154
|
default: k(() => [
|
155
|
-
|
155
|
+
Y
|
156
156
|
]),
|
157
157
|
_: 1
|
158
158
|
}, 8, ["user", "type", "target"])) : r("", !0)
|
@@ -167,5 +167,5 @@ const S = {
|
|
167
167
|
}
|
168
168
|
};
|
169
169
|
export {
|
170
|
-
|
170
|
+
ue as default
|
171
171
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.
|
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/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue2.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,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
|
-
import "../../../../components/Field/Field.
|
2
|
+
import "../../../../components/Field/Field.vue2.js";
|
3
3
|
import "../../../../components/Loader/Loader.vue.js";
|
4
|
-
import "../../../../components/Button/Button.
|
4
|
+
import "../../../../components/Button/Button.vue2.js";
|
5
5
|
import p from "../../../mobile/components/Menu/Menu.vue.js";
|
6
6
|
import n from "../../../mobile/components/Menu/MenuItem.vue.js";
|
7
7
|
import { useRoute as d, useRouter as h } from "vue-router";
|
package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs
CHANGED
@@ -1,3 +1,3 @@
|
|
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("../../../icons/navigation/IconCheckmark.vue.cjs"),p={class:"bg-grey radius-medium w-100"},y=e.createElementVNode("h3",{class:"pd-medium"},"Tracking History",-1),k={class:"flex-center flex i-big radius-extra br-solid br-2px br-black-transp-10 mn-r-small"},_={class:"h4 w-8r"},b={key:0,class:"h5 w-8r"},f={class:"h5 w-8r"},h=["disabled","onClick"],g={__name:"StatusHistory",props:{statusHistory:{type:Array},statusCurrent:{type:String},edit:{type:Boolean},statuses:{type:Array}},setup(o){const n=o,i=n.statuses.map(s=>{const r=n.statusHistory.find(t=>t.status===s);return{status:s,timestamp:r?r.timestamp:"N/A",inHistory:!!r,_id:r?r._id:null}}),c=e.ref(n.statusCurrent),l=e.ref(n.statusHistory),u=s=>l.value.some(r=>r.status===s),d=s=>{const t=n.statuses.findIndex(a=>a===c.value)+1;return n.statuses[t]&&n.statuses[t]===s};return e.ref("192.168.1.197"),e.ref(9100),e.ref(`This is some text to print
|
2
2
|
|
3
|
-
`),(r
|
3
|
+
`),(s,r)=>(e.openBlock(),e.createElementBlock("div",p,[y,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),t=>(e.openBlock(),e.createElementBlock("div",{key:t,class:"w-100 br-t br-solid br-black-transp-10 pd-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("div",k,[u(t.status)?(e.openBlock(),e.createBlock(m.default,{key:0,class:"i-medium"})):e.createCommentVNode("",!0)]),e.createElementVNode("div",null,[e.createElementVNode("p",_,e.toDisplayString(t.status),1),t.timestamp?(e.openBlock(),e.createElementBlock("p",b,e.toDisplayString(s.formatDate(t.timestamp)),1)):e.createCommentVNode("",!0)]),e.createElementVNode("p",f,e.toDisplayString(t._id),1),o.edit?(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!d(t),onClick:a=>s.setStatus(t),class:"mn-l-auto bg-main button radius-big"},"Set status",8,h)):e.createCommentVNode("",!0)]))),128))]))}};exports.default=g;
|
@@ -1,6 +1,9 @@
|
|
1
|
-
import { ref as
|
2
|
-
import
|
3
|
-
const
|
1
|
+
import { ref as i, openBlock as n, createElementBlock as a, Fragment as f, renderList as h, unref as x, createElementVNode as o, createBlock as k, createCommentVNode as u, toDisplayString as c } from "vue";
|
2
|
+
import g from "../../../icons/navigation/IconCheckmark.vue.js";
|
3
|
+
const H = { class: "bg-grey radius-medium w-100" }, v = /* @__PURE__ */ o("h3", { class: "pd-medium" }, "Tracking History", -1), S = { class: "flex-center flex i-big radius-extra br-solid br-2px br-black-transp-10 mn-r-small" }, w = { class: "h4 w-8r" }, C = {
|
4
|
+
key: 0,
|
5
|
+
class: "h5 w-8r"
|
6
|
+
}, I = { class: "h5 w-8r" }, B = ["disabled", "onClick"], D = {
|
4
7
|
__name: "StatusHistory",
|
5
8
|
props: {
|
6
9
|
statusHistory: {
|
@@ -11,82 +14,53 @@ const w = { class: "bg-grey radius-medium w-100" }, _ = /* @__PURE__ */ c("h3",
|
|
11
14
|
},
|
12
15
|
edit: {
|
13
16
|
type: Boolean
|
17
|
+
},
|
18
|
+
statuses: {
|
19
|
+
type: Array
|
14
20
|
}
|
15
21
|
},
|
16
|
-
setup(
|
17
|
-
const
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
description: "Your order has been confirmed. We are now processing your items and preparing them for shipment."
|
29
|
-
},
|
30
|
-
{
|
31
|
-
value: "confirmed",
|
32
|
-
name: "Confirmed",
|
33
|
-
nextstatus: "Order is confirmed. Packing order...",
|
34
|
-
description: "Your order has been confirmed. We are now processing your items and preparing them for shipment."
|
35
|
-
},
|
36
|
-
{
|
37
|
-
value: "packing",
|
38
|
-
name: "Packing",
|
39
|
-
nextstatus: "Packing order...",
|
40
|
-
description: "Your order is now awaiting shipment. Once shipped, you will receive a notification with tracking information."
|
41
|
-
},
|
42
|
-
{
|
43
|
-
value: "packed",
|
44
|
-
name: "Packed",
|
45
|
-
nextstatus: "Delivering order...",
|
46
|
-
description: "Your order is now awaiting shipment. Once shipped, you will receive a notification with tracking information."
|
47
|
-
},
|
48
|
-
{
|
49
|
-
value: "in delivery",
|
50
|
-
name: "Delivering",
|
51
|
-
description: "Your order is currently in transit. Our delivery team is working hard to get your items to you as soon as possible."
|
52
|
-
},
|
53
|
-
{
|
54
|
-
value: "delivered",
|
55
|
-
name: "Delivered",
|
56
|
-
description: "Congratulations! Your order has been successfully delivered. If you have any concerns or feedback, feel free to contact us."
|
57
|
-
}
|
58
|
-
]), a = t(l.statusCurrent), p = t(l.statusHistory), v = (r) => p.value.some((i) => i.status === r), f = (r) => {
|
59
|
-
const i = s.value.findIndex((d) => d.value === a.value);
|
60
|
-
console.log(status.status === a.value), console.log(a.value), console.log(status);
|
61
|
-
const e = i + 1;
|
62
|
-
return s.value[e] && s.value[e].value === r;
|
63
|
-
}, g = async (r) => {
|
22
|
+
setup(l) {
|
23
|
+
const r = l, m = r.statuses.map((s) => {
|
24
|
+
const e = r.statusHistory.find((t) => t.status === s);
|
25
|
+
return {
|
26
|
+
status: s,
|
27
|
+
timestamp: e ? e.timestamp : "N/A",
|
28
|
+
inHistory: !!e,
|
29
|
+
_id: e ? e._id : null
|
30
|
+
};
|
31
|
+
}), p = i(r.statusCurrent), y = i(r.statusHistory), _ = (s) => y.value.some((e) => e.status === s), b = (s) => {
|
32
|
+
const t = r.statuses.findIndex((d) => d === p.value) + 1;
|
33
|
+
return r.statuses[t] && r.statuses[t] === s;
|
64
34
|
};
|
65
|
-
return
|
35
|
+
return i("192.168.1.197"), i(9100), i(`This is some text to print
|
66
36
|
|
67
|
-
`), (
|
68
|
-
|
69
|
-
(n(!0),
|
70
|
-
key:
|
37
|
+
`), (s, e) => (n(), a("div", H, [
|
38
|
+
v,
|
39
|
+
(n(!0), a(f, null, h(x(m), (t) => (n(), a("div", {
|
40
|
+
key: t,
|
71
41
|
class: "w-100 br-t br-solid br-black-transp-10 pd-medium flex-v-center flex-nowrap flex"
|
72
42
|
}, [
|
73
|
-
|
74
|
-
|
43
|
+
o("div", S, [
|
44
|
+
_(t.status) ? (n(), k(g, {
|
75
45
|
key: 0,
|
76
46
|
class: "i-medium"
|
77
|
-
})) :
|
47
|
+
})) : u("", !0)
|
48
|
+
]),
|
49
|
+
o("div", null, [
|
50
|
+
o("p", w, c(t.status), 1),
|
51
|
+
t.timestamp ? (n(), a("p", C, c(s.formatDate(t.timestamp)), 1)) : u("", !0)
|
78
52
|
]),
|
79
|
-
|
80
|
-
|
53
|
+
o("p", I, c(t._id), 1),
|
54
|
+
l.edit ? (n(), a("button", {
|
81
55
|
key: 0,
|
82
|
-
disabled: !
|
83
|
-
onClick: (d) =>
|
56
|
+
disabled: !b(t),
|
57
|
+
onClick: (d) => s.setStatus(t),
|
84
58
|
class: "mn-l-auto bg-main button radius-big"
|
85
|
-
}, "Set status", 8,
|
59
|
+
}, "Set status", 8, B)) : u("", !0)
|
86
60
|
]))), 128))
|
87
61
|
]));
|
88
62
|
}
|
89
63
|
};
|
90
64
|
export {
|
91
|
-
|
65
|
+
D as default
|
92
66
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),D=require("vue-router"),C=require("../blocks/CardOrderItem.vue.cjs"),B=require("../../../organizations/components/blocks/CardOrganization.vue.cjs"),q=require("../../../chats/components/pages/ChatPage.vue.cjs"),z=require("../blocks/StatusHistory.vue.cjs"),I=require("../../../globals/store/globals.cjs"),m=require("../../store/orders.cjs"),M=require("../../../products/store/products.cjs"),T=require("../../../organizations/store/organizations.cjs");require("./Order.vue2.cjs");const P=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),n=c=>(e.pushScopeId("data-v-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),D=require("vue-router"),C=require("../blocks/CardOrderItem.vue.cjs"),B=require("../../../organizations/components/blocks/CardOrganization.vue.cjs"),q=require("../../../chats/components/pages/ChatPage.vue.cjs"),z=require("../blocks/StatusHistory.vue.cjs"),I=require("../../../globals/store/globals.cjs"),m=require("../../store/orders.cjs"),M=require("../../../products/store/products.cjs"),T=require("../../../organizations/store/organizations.cjs");require("./Order.vue2.cjs");const P=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),n=c=>(e.pushScopeId("data-v-150d7ff5"),c=c(),e.popScopeId(),c),R={key:0,class:"pd-thin"},F={key:0,class:"mn-b-thin pos-relative w-100 bg-main radius-big pd-big"},H={class:"mn-b-small"},A=n(()=>e.createElementVNode("p",{class:"mn-b-medium w-m-40r p-medium"},"Your order has been successfully created. Our manager will contact you within five minutes to confirm your order.",-1)),U={class:"radius-extra mn-b-medium flex-nowrap flex h-1r pos-relativew-40r"},W={class:"pos-absolute pos-t-medium pos-r-medium t-medium p-medium"},Y={class:"p-small t-transp"},j={key:1,class:"gap-thin cols-2"},L={class:"w-100"},G={class:"mn-b-thin bg-grey w-100 o-hidden radius-medium"},J={class:"pd-small flex-nowrap flex"},K={class:"mn-r-auto"},Q=n(()=>e.createElementVNode("span",{class:"d-block t-medium p-medium"},"Your order is",-1)),X={class:"t-lh-075 h2 d-block mn-b-small"},Z=n(()=>e.createElementVNode("p",{class:"pd-t-nano pd-b-nano pd-r-thin pd-l-thin radius-extra bg-black t-white w-max"},"as on 29 aug 2021, Friday",-1)),$={class:"pd-small cols-2 br-t br-black-transp-10 br-solid"},ee=n(()=>e.createElementVNode("p",{class:"w-100 t-medium p-medium"}," Phone ",-1)),te={class:"w-100 t-right"},ae={key:0,class:"pd-small cols-2 br-t br-black-transp-10 br-solid"},re={class:"w-100 t-medium p-medium"},se={class:"w-100 t-right"},le={class:"pd-small cols-2 br-t br-black-transp-10 br-solid"},ne=n(()=>e.createElementVNode("p",{class:"t-medium p-medium"}," Address ",-1)),oe={class:"w-100 t-right"},ie={class:"pd-small cols-2 br-t br-black-transp-10 br-solid"},de=n(()=>e.createElementVNode("p",{class:"mn-b-small t-medium p-medium"}," Delivery ",-1)),ce={class:"w-100 t-right mn-b-small"},ue={key:2,class:"t-transp"},me={class:"bg-grey radius-big pd-medium mn-r-bold pd-r-big br-right-dark w-100"},pe=n(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Order Summary",-1)),ve={class:"flex gap-thin flex-column mn-b-semi"},be={class:"mn-b-medium radius-small br-solid br-1px br-black-transp-10 w-100"},_e={class:"pd-small br-solid br-b br-black-transp-10 flex"},he=n(()=>e.createElementVNode("p",{class:"mn-r-auto t-transp"},"In total",-1)),ge={class:"pd-small br-solid br-b br-black-transp-10 flex"},ye=n(()=>e.createElementVNode("p",{class:"mn-r-auto t-transp"},"Delivery",-1)),Ne={class:"pd-small flex-bottom flex"},fe=n(()=>e.createElementVNode("p",{class:"mn-r-auto t-transp"},"In total to pay",-1)),Ve={class:"p-big t-semi"},Ee=n(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Chat With Us",-1)),we={__name:"Order",setup(c){D.useRouter();const u=D.useRoute(),t=e.ref(null),p=e.ref(null),s=e.ref(null);e.onMounted(async()=>{var a,l,r;t.value=await m.actions.read({_id:u.params.order}),t.value=t.value[0],p.value=await M.actions.read({organization:(a=t.value)==null?void 0:a.owner.target._id}),s.value=await T.actions.read({_id:(l=t.value)==null?void 0:l.owner.target._id,location:(r=I.state.position)==null?void 0:r.location})});let v=e.computed(()=>{var a;return Number((a=t.value)==null?void 0:a.positions.reduce((l,r)=>l+r.price*r.quantity,0))});e.computed(()=>{var a;return Number((a=t.value)==null?void 0:a.positions.reduce((l,r)=>l+r.quantity,0))});let S=e.computed(()=>{var a;return(a=t.value)==null?void 0:a.positions.map(({_id:l,quantity:r})=>{const o=p.value.find(i=>i._id===l);return{name:o.name,images:o.images,price:o.price,_id:o._id,quantity:r}})});function O(a,l){if(!a)return null;const r=10*60*1e3,o=Math.ceil((20+3*a)/5)*5*60*1e3,i=new Date(l).getTime(),d=new Date(i+r+o);return console.log(l),console.log(d),d}return(a,l)=>{var r,o,i,d,b,_,h,g,y,N,f,V,E,w,k;return t.value&&s.value?(e.openBlock(),e.createElementBlock("div",R,[t.value?(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("h2",H,"Order is "+e.toDisplayString(t.value.status),1),A,e.createElementVNode("div",U,[e.createElementVNode("div",{class:e.normalizeClass(["bg-grey br-anim br-glow radius-extra mn-r-thin h-100 w-20",{"br-anim br-glow br-glow-anim":["created","confirmed","packing","in delivery","delivered"].indexOf(t.value.status)===0}])},null,2),e.createElementVNode("div",{class:e.normalizeClass(["bg-grey br-anim br-glow radius-extra mn-r-thin h-100 w-20",{"br-anim br-glow br-glow-anim":["created","confirmed","packing","in delivery","delivered"].indexOf(t.value.status)===0},{"t-transp":["created","confirmed","packing","in delivery","delivered"].indexOf(t.value.status)===-1},{blink:t.value.status==="created"}])},null,2),e.createElementVNode("div",{class:e.normalizeClass([{"br-anim br-glow br-glow-anim":["confirmed","packing","in delivery","delivered"].indexOf(t.value.status)===0},{"t-transp":["confirmed","packing","in delivery","delivered"].indexOf(t.value.status)===-1},{blink:t.value.status==="confirmed"},"bg-grey radius-extra mn-r-thin h-100 w-40"])},null,2),e.createElementVNode("div",{class:e.normalizeClass(["bg-grey radius-extra mn-r-thin h-100 w-40",{"br-anim br-glow br-glow-anim":["packing","in delivery","delivered"].indexOf(t.value.status)===0},{"t-transp":["packing","in delivery","delivered"].indexOf(t.value.status)===-1},{blink:t.value.status==="packing"}])},null,2),e.createElementVNode("div",{class:e.normalizeClass(["bg-grey radius-extra h-100 w-20",{"br-anim br-glow br-glow-anim":["in delivery","delivered"].indexOf(t.value.status)===0},{"t-transp":["in delivery","delivered"].indexOf(t.value.status)===-1},{blink:t.value.status==="in delivery"}])},null,2)]),e.createElementVNode("p",null,"Estimated Arrival "+e.toDisplayString(a.formatDate(O((r=s.value[0])==null?void 0:r.distance,t.value.createdAt))),1),e.createElementVNode("h3",null,e.toDisplayString((o=s.value[0])!=null&&o.distance?Math.ceil((10+3*((i=s.value[0])==null?void 0:i.distance))/5)*5+"-"+Math.ceil((20+3*((d=s.value[0])==null?void 0:d.distance))/5)*5+" MIN":"Unavailable"),1),e.createElementVNode("p",W,[e.createTextVNode(" Order No: "),e.createElementVNode("span",Y,"#"+e.toDisplayString(t.value._id),1)])])):e.createCommentVNode("",!0),t.value?(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("div",L,[s.value[0]?(e.openBlock(),e.createBlock(B.default,{key:0,organization:s.value[0],showRating:!0,showFollowers:!1,showProducts:!1,class:"bg-grey mn-b-thin w-100 o-hidden radius-big pd-small"},null,8,["organization"])):e.createCommentVNode("",!0),e.createElementVNode("div",G,[e.createElementVNode("div",J,[e.createElementVNode("div",K,[Q,e.createElementVNode("span",X,e.toDisplayString(t.value.status),1),Z])]),e.createElementVNode("div",$,[ee,e.createElementVNode("p",te,e.toDisplayString((b=t.value.user)==null?void 0:b.number),1)]),(_=t.value.user)!=null&&_.messenger.type?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("p",re,e.toDisplayString((h=t.value.user)==null?void 0:h.messenger.type),1),e.createElementVNode("p",se,e.toDisplayString((g=t.value.user)==null?void 0:g.messenger.value),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",le,[ne,e.createElementVNode("p",oe,e.toDisplayString((y=t.value.delivery)==null?void 0:y.address.slice(0,64)),1)]),e.createElementVNode("div",ie,[de,e.createElementVNode("p",ce,e.toDisplayString((N=t.value.delivery)==null?void 0:N.type),1)])]),m.state.current.status_history?(e.openBlock(),e.createBlock(z.default,{key:1,statusHistory:m.state.current.status_history,statusCurrent:m.state.current.status,edit:e.unref(u).name==="Order Edit"},null,8,["statusHistory","statusCurrent","edit"])):e.createCommentVNode("",!0),a.payment&&a.payment.Status==="CONFIRMED"?(e.openBlock(),e.createElementBlock("span",ue,"Paid")):e.createCommentVNode("",!0)]),e.createElementVNode("div",me,[pe,e.createElementVNode("ul",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(S),(x,xe)=>(e.openBlock(),e.createBlock(C.default,{key:x._id,editable:!1,product:x},null,8,["product"]))),128))]),e.createElementVNode("div",be,[e.createElementVNode("div",_e,[he,e.createElementVNode("p",null,e.toDisplayString(e.unref(v))+" "+e.toDisplayString(a.returnCurrency()),1)]),e.createElementVNode("div",ge,[ye,e.createElementVNode("p",null,e.toDisplayString(a.returnCurrency())+" "+e.toDisplayString(Math.trunc(100+20*((f=s.value[0])==null?void 0:f.distance)-7,5*(((V=s.value[0])==null?void 0:V.distance)/10))),1)]),e.createElementVNode("div",Ne,[fe,e.createElementVNode("p",Ve,e.toDisplayString(a.returnCurrency())+" "+e.toDisplayString(Math.trunc(100+20*((E=s.value[0])==null?void 0:E.distance)-7,5*(((w=s.value[0])==null?void 0:w.distance)/10))+e.unref(v)),1)])]),Ee,e.createVNode(q.default,{username:e.unref(u).name==="Order Status"?((k=t.value.user)==null?void 0:k.name)||"User":"Weeder Support",chatID:e.unref(u).params.order,class:"radius-semi bg-white o-hidden"},null,8,["username","chatID"])])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}},ke=P.default(we,[["__scopeId","data-v-150d7ff5"]]);exports.default=ke;
|
@@ -1,57 +1,57 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as g, onMounted as V, computed as f, openBlock as d, createElementBlock as m, createElementVNode as e, toDisplayString as a, normalizeClass as v, createTextVNode as A, createCommentVNode as u, createBlock as y, unref as p, Fragment as B, renderList as U, createVNode as q, pushScopeId as H, popScopeId as W } from "vue";
|
2
2
|
import { useRouter as Y, useRoute as L } from "vue-router";
|
3
3
|
import j from "../blocks/CardOrderItem.vue.js";
|
4
4
|
import G from "../../../organizations/components/blocks/CardOrganization.vue.js";
|
5
5
|
import J from "../../../chats/components/pages/ChatPage.vue.js";
|
6
6
|
import K from "../blocks/StatusHistory.vue.js";
|
7
7
|
import { state as Q } from "../../../globals/store/globals.js";
|
8
|
-
import { actions as X, state as
|
8
|
+
import { actions as X, state as w } from "../../store/orders.js";
|
9
9
|
import { actions as Z } from "../../../products/store/products.js";
|
10
10
|
import { actions as ee } from "../../../organizations/store/organizations.js";
|
11
11
|
import "./Order.vue2.js";
|
12
12
|
import se from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
13
|
-
const
|
13
|
+
const l = (b) => (H("data-v-150d7ff5"), b = b(), W(), b), te = {
|
14
14
|
key: 0,
|
15
15
|
class: "pd-thin"
|
16
16
|
}, ae = {
|
17
17
|
key: 0,
|
18
18
|
class: "mn-b-thin pos-relative w-100 bg-main radius-big pd-big"
|
19
|
-
}, re = { class: "mn-b-small" }, ie = /* @__PURE__ */
|
19
|
+
}, re = { class: "mn-b-small" }, ie = /* @__PURE__ */ l(() => /* @__PURE__ */ e("p", { class: "mn-b-medium w-m-40r p-medium" }, "Your order has been successfully created. Our manager will contact you within five minutes to confirm your order.", -1)), ne = { class: "radius-extra mn-b-medium flex-nowrap flex h-1r pos-relativew-40r" }, le = { class: "pos-absolute pos-t-medium pos-r-medium t-medium p-medium" }, oe = { class: "p-small t-transp" }, de = {
|
20
20
|
key: 1,
|
21
21
|
class: "gap-thin cols-2"
|
22
|
-
}, ue = { class: "w-100" }, ce = { class: "mn-b-thin bg-grey w-100 o-hidden radius-medium" }, me = { class: "pd-small flex-nowrap flex" }, pe = { class: "mn-r-auto" }, _e = /* @__PURE__ */
|
22
|
+
}, ue = { class: "w-100" }, ce = { class: "mn-b-thin bg-grey w-100 o-hidden radius-medium" }, me = { class: "pd-small flex-nowrap flex" }, pe = { class: "mn-r-auto" }, _e = /* @__PURE__ */ l(() => /* @__PURE__ */ e("span", { class: "d-block t-medium p-medium" }, "Your order is", -1)), ve = { class: "t-lh-075 h2 d-block mn-b-small" }, be = /* @__PURE__ */ l(() => /* @__PURE__ */ e("p", { class: "pd-t-nano pd-b-nano pd-r-thin pd-l-thin radius-extra bg-black t-white w-max" }, "as on 29 aug 2021, Friday", -1)), he = { class: "pd-small cols-2 br-t br-black-transp-10 br-solid" }, ge = /* @__PURE__ */ l(() => /* @__PURE__ */ e("p", { class: "w-100 t-medium p-medium" }, " Phone ", -1)), fe = { class: "w-100 t-right" }, ye = {
|
23
23
|
key: 0,
|
24
24
|
class: "pd-small cols-2 br-t br-black-transp-10 br-solid"
|
25
|
-
}, we = { class: "w-100 t-medium p-medium" }, ke = { class: "w-100 t-right" }, xe = { class: "pd-small cols-2 br-t br-black-transp-10 br-solid" }, Oe = /* @__PURE__ */
|
25
|
+
}, we = { class: "w-100 t-medium p-medium" }, ke = { class: "w-100 t-right" }, xe = { class: "pd-small cols-2 br-t br-black-transp-10 br-solid" }, Oe = /* @__PURE__ */ l(() => /* @__PURE__ */ e("p", { class: "t-medium p-medium" }, " Address ", -1)), De = { class: "w-100 t-right" }, Ie = { class: "pd-small cols-2 br-t br-black-transp-10 br-solid" }, Ce = /* @__PURE__ */ l(() => /* @__PURE__ */ e("p", { class: "mn-b-small t-medium p-medium" }, " Delivery ", -1)), Ne = { class: "w-100 t-right mn-b-small" }, Me = {
|
26
26
|
key: 2,
|
27
27
|
class: "t-transp"
|
28
|
-
}, Se = { class: "bg-grey radius-big pd-medium mn-r-bold pd-r-big br-right-dark w-100" }, Te = /* @__PURE__ */
|
28
|
+
}, Se = { class: "bg-grey radius-big pd-medium mn-r-bold pd-r-big br-right-dark w-100" }, Te = /* @__PURE__ */ l(() => /* @__PURE__ */ e("h3", { class: "mn-b-small" }, "Order Summary", -1)), $e = { class: "flex gap-thin flex-column mn-b-semi" }, ze = { class: "mn-b-medium radius-small br-solid br-1px br-black-transp-10 w-100" }, Pe = { class: "pd-small br-solid br-b br-black-transp-10 flex" }, Ee = /* @__PURE__ */ l(() => /* @__PURE__ */ e("p", { class: "mn-r-auto t-transp" }, "In total", -1)), Fe = { class: "pd-small br-solid br-b br-black-transp-10 flex" }, Re = /* @__PURE__ */ l(() => /* @__PURE__ */ e("p", { class: "mn-r-auto t-transp" }, "Delivery", -1)), Ve = { class: "pd-small flex-bottom flex" }, Ae = /* @__PURE__ */ l(() => /* @__PURE__ */ e("p", { class: "mn-r-auto t-transp" }, "In total to pay", -1)), Be = { class: "p-big t-semi" }, Ue = /* @__PURE__ */ l(() => /* @__PURE__ */ e("h3", { class: "mn-b-small" }, "Chat With Us", -1)), qe = {
|
29
29
|
__name: "Order",
|
30
30
|
setup(b) {
|
31
31
|
Y();
|
32
|
-
const h = L(), s =
|
32
|
+
const h = L(), s = g(null), k = g(null), i = g(null);
|
33
33
|
V(async () => {
|
34
|
-
var t,
|
35
|
-
s.value = await X.read({ _id: h.params.order }), s.value = s.value[0],
|
34
|
+
var t, n, r;
|
35
|
+
s.value = await X.read({ _id: h.params.order }), s.value = s.value[0], k.value = await Z.read({
|
36
36
|
organization: (t = s.value) == null ? void 0 : t.owner.target._id
|
37
37
|
}), i.value = await ee.read({
|
38
|
-
_id: (
|
38
|
+
_id: (n = s.value) == null ? void 0 : n.owner.target._id,
|
39
39
|
location: (r = Q.position) == null ? void 0 : r.location
|
40
40
|
});
|
41
41
|
});
|
42
|
-
let x =
|
42
|
+
let x = f(() => {
|
43
43
|
var t;
|
44
|
-
return Number((t = s.value) == null ? void 0 : t.positions.reduce((
|
44
|
+
return Number((t = s.value) == null ? void 0 : t.positions.reduce((n, r) => n + r.price * r.quantity, 0));
|
45
45
|
});
|
46
|
-
|
46
|
+
f(() => {
|
47
47
|
var t;
|
48
|
-
return Number((t = s.value) == null ? void 0 : t.positions.reduce((
|
48
|
+
return Number((t = s.value) == null ? void 0 : t.positions.reduce((n, r) => n + r.quantity, 0));
|
49
49
|
});
|
50
|
-
let F =
|
50
|
+
let F = f(() => {
|
51
51
|
var t;
|
52
|
-
return (t = s.value) == null ? void 0 : t.positions.map(({ _id:
|
53
|
-
const o =
|
54
|
-
return
|
52
|
+
return (t = s.value) == null ? void 0 : t.positions.map(({ _id: n, quantity: r }) => {
|
53
|
+
const o = k.value.find((c) => c._id === n);
|
54
|
+
return {
|
55
55
|
name: o.name,
|
56
56
|
images: o.images,
|
57
57
|
price: o.price,
|
@@ -60,19 +60,19 @@ const n = (b) => (H("data-v-622bfaf9"), b = b(), W(), b), te = {
|
|
60
60
|
};
|
61
61
|
});
|
62
62
|
});
|
63
|
-
function R(t,
|
63
|
+
function R(t, n) {
|
64
64
|
if (!t)
|
65
65
|
return null;
|
66
|
-
const r = 10 * 60 * 1e3, o = Math.ceil((20 + 3 * t) / 5) * 5 * 60 * 1e3, c = new Date(
|
67
|
-
return console.log(
|
66
|
+
const r = 10 * 60 * 1e3, o = Math.ceil((20 + 3 * t) / 5) * 5 * 60 * 1e3, c = new Date(n).getTime(), _ = new Date(c + r + o);
|
67
|
+
return console.log(n), console.log(_), _;
|
68
68
|
}
|
69
|
-
return (t,
|
69
|
+
return (t, n) => {
|
70
70
|
var r, o, c, _, O, D, I, C, N, M, S, T, $, z, P;
|
71
71
|
return s.value && i.value ? (d(), m("div", te, [
|
72
72
|
s.value ? (d(), m("div", ae, [
|
73
73
|
e("h2", re, "Order is " + a(s.value.status), 1),
|
74
74
|
ie,
|
75
|
-
e("div",
|
75
|
+
e("div", ne, [
|
76
76
|
e("div", {
|
77
77
|
class: v([
|
78
78
|
"bg-grey br-anim br-glow radius-extra mn-r-thin h-100 w-20",
|
@@ -114,14 +114,14 @@ const n = (b) => (H("data-v-622bfaf9"), b = b(), W(), b), te = {
|
|
114
114
|
]),
|
115
115
|
e("p", null, "Estimated Arrival " + a(t.formatDate(R((r = i.value[0]) == null ? void 0 : r.distance, s.value.createdAt))), 1),
|
116
116
|
e("h3", null, a((o = i.value[0]) != null && o.distance ? Math.ceil((10 + 3 * ((c = i.value[0]) == null ? void 0 : c.distance)) / 5) * 5 + "-" + Math.ceil((20 + 3 * ((_ = i.value[0]) == null ? void 0 : _.distance)) / 5) * 5 + " MIN" : "Unavailable"), 1),
|
117
|
-
e("p",
|
117
|
+
e("p", le, [
|
118
118
|
A(" Order No: "),
|
119
119
|
e("span", oe, "#" + a(s.value._id), 1)
|
120
120
|
])
|
121
121
|
])) : u("", !0),
|
122
122
|
s.value ? (d(), m("div", de, [
|
123
123
|
e("div", ue, [
|
124
|
-
i.value[0] ? (d(),
|
124
|
+
i.value[0] ? (d(), y(G, {
|
125
125
|
key: 0,
|
126
126
|
organization: i.value[0],
|
127
127
|
showRating: !0,
|
@@ -154,10 +154,10 @@ const n = (b) => (H("data-v-622bfaf9"), b = b(), W(), b), te = {
|
|
154
154
|
e("p", Ne, a((M = s.value.delivery) == null ? void 0 : M.type), 1)
|
155
155
|
])
|
156
156
|
]),
|
157
|
-
|
157
|
+
w.current.status_history ? (d(), y(K, {
|
158
158
|
key: 1,
|
159
|
-
statusHistory:
|
160
|
-
statusCurrent:
|
159
|
+
statusHistory: w.current.status_history,
|
160
|
+
statusCurrent: w.current.status,
|
161
161
|
edit: p(h).name === "Order Edit"
|
162
162
|
}, null, 8, ["statusHistory", "statusCurrent", "edit"])) : u("", !0),
|
163
163
|
t.payment && t.payment.Status === "CONFIRMED" ? (d(), m("span", Me, "Paid")) : u("", !0)
|
@@ -165,7 +165,7 @@ const n = (b) => (H("data-v-622bfaf9"), b = b(), W(), b), te = {
|
|
165
165
|
e("div", Se, [
|
166
166
|
Te,
|
167
167
|
e("ul", $e, [
|
168
|
-
(d(!0), m(B, null, U(p(F), (E, He) => (d(),
|
168
|
+
(d(!0), m(B, null, U(p(F), (E, He) => (d(), y(j, {
|
169
169
|
key: E._id,
|
170
170
|
editable: !1,
|
171
171
|
product: E
|
@@ -196,7 +196,7 @@ const n = (b) => (H("data-v-622bfaf9"), b = b(), W(), b), te = {
|
|
196
196
|
])) : u("", !0);
|
197
197
|
};
|
198
198
|
}
|
199
|
-
}, ts = /* @__PURE__ */ se(qe, [["__scopeId", "data-v-
|
199
|
+
}, ts = /* @__PURE__ */ se(qe, [["__scopeId", "data-v-150d7ff5"]]);
|
200
200
|
export {
|
201
201
|
ts as default
|
202
202
|
};
|