@ozdao/prometheus-framework 0.2.91 → 0.2.93

Sign up to get free protection for your applications and to get access to all the features.
Files changed (182) hide show
  1. package/dist/events.server.js +19 -9
  2. package/dist/events.server.mjs +19 -9
  3. package/dist/main-CX2ISR43.mjs +13629 -0
  4. package/dist/main-cffh4bbv.js +92 -0
  5. package/dist/main.css +1 -1
  6. package/dist/orders.server.js +32 -18
  7. package/dist/orders.server.mjs +32 -18
  8. package/dist/organizations.server.js +2 -1
  9. package/dist/organizations.server.mjs +2 -1
  10. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  11. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +46 -48
  12. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +25 -20
  14. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Map/Map.vue.js +36 -26
  16. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -1
  18. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -103
  20. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  22. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  24. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  26. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  27. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +66 -0
  28. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  29. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
  30. package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.js +11 -11
  32. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  34. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +14 -48
  36. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  38. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +85 -25
  40. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  42. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  44. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +74 -63
  46. package/dist/prometheus-framework/src/modules/landing/components/sections/SectionFeatures.vue.cjs +1 -0
  47. package/dist/prometheus-framework/src/modules/landing/components/sections/SectionFeatures.vue.js +74 -0
  48. package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/landing/landing.client.js +4 -2
  50. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +2 -2
  51. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +39 -65
  52. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +31 -31
  54. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -0
  55. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +242 -0
  56. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue2.cjs +1 -0
  57. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue2.js +1 -0
  58. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +62 -62
  60. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +28 -28
  62. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +99 -70
  64. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  66. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  68. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +10 -10
  70. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.js +7 -9
  74. package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +2 -2
  76. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/orders/store/orders.js +33 -34
  78. package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +42 -42
  80. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +27 -25
  82. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +11 -11
  84. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +46 -43
  86. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +162 -168
  88. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +27 -26
  90. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +7 -7
  92. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  94. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  96. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  98. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
  100. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  102. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +37 -26
  104. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  106. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  108. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +14 -15
  110. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +22 -20
  112. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  114. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/products/store/products.js +59 -38
  116. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  118. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +23 -22
  120. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +17 -14
  122. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
  124. package/dist/prometheus-framework.cjs.js +1 -1
  125. package/dist/prometheus-framework.es.js +1 -1
  126. package/dist/style.css +1 -1
  127. package/dist/web-CQQEUA9l.js +1 -0
  128. package/dist/web-D2Em-p-C.mjs +54 -0
  129. package/package.json +1 -1
  130. package/src/components/Address/Address.vue +23 -34
  131. package/src/components/LocationMarker/LocationMarker.vue +6 -1
  132. package/src/components/LocationSelection/LocationSelection.vue +4 -0
  133. package/src/components/Map/Map.vue +29 -15
  134. package/src/modules/constructor/components/elements/VideoPlayer.vue +2 -2
  135. package/src/modules/events/components/layouts/layoutEvents.vue +2 -59
  136. package/src/modules/events/components/pages/Events.vue +106 -23
  137. package/src/modules/events/controllers/events.controller.js +10 -7
  138. package/src/modules/globals/components/blocks/CardHeader.vue +31 -6
  139. package/src/modules/integrations/stripe/controllers/services/stripe.service.js +17 -6
  140. package/src/modules/landing/components/pages/Farming.vue +226 -0
  141. package/src/modules/landing/components/pages/Governance.vue +3 -5
  142. package/src/modules/landing/components/pages/Home.vue +0 -3
  143. package/src/modules/landing/components/pages/Hotel.vue +1 -3
  144. package/src/modules/landing/components/pages/Page.vue +0 -3
  145. package/src/modules/landing/components/sections/Examples.vue +4 -56
  146. package/src/modules/landing/components/sections/SectionFeature.vue +41 -0
  147. package/src/modules/landing/components/sections/SectionFeaturesImages.vue +122 -0
  148. package/src/modules/landing/components/sections/SectionFocus.vue +59 -0
  149. package/src/modules/landing/components/sections/SectionHeroVideo.vue +164 -0
  150. package/src/modules/landing/landing.client.js +3 -1
  151. package/src/modules/landing/router/landing.js +11 -0
  152. package/src/modules/marketplace/components/sections/Filters.vue +26 -23
  153. package/src/modules/orders/components/blocks/CardOrderItem.vue +8 -0
  154. package/src/modules/orders/components/blocks/StatusHistory.vue +25 -53
  155. package/src/modules/orders/components/pages/Order.vue +2 -6
  156. package/src/modules/orders/components/pages/OrderBackoffice.vue +393 -0
  157. package/src/modules/orders/components/pages/OrderCreate.vue +5 -4
  158. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +2 -3
  159. package/src/modules/orders/components/pages/Orders.vue +60 -11
  160. package/src/modules/orders/components/sections/FormDelivery.vue +2 -2
  161. package/src/modules/orders/components/sections/SubscribeNewsletter.vue +2 -2
  162. package/src/modules/orders/controllers/orders.controller.js +29 -18
  163. package/src/modules/orders/models/order.model.js +8 -2
  164. package/src/modules/orders/router/orders.backoffice.router.js +3 -5
  165. package/src/modules/orders/router/orders.router.js +2 -2
  166. package/src/modules/orders/store/orders.js +3 -7
  167. package/src/modules/orders/store/shopcart.js +1 -1
  168. package/src/modules/organizations/components/blocks/CardDepartment.vue +2 -0
  169. package/src/modules/organizations/components/pages/Department.vue +5 -1
  170. package/src/modules/organizations/components/pages/DepartmentEdit.vue +65 -27
  171. package/src/modules/organizations/components/pages/Members.vue +2 -1
  172. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  173. package/src/modules/organizations/controllers/memberships.controller.js +3 -1
  174. package/src/modules/organizations/store/memberships.js +1 -1
  175. package/src/modules/products/components/blocks/CardProduct.vue +32 -22
  176. package/src/modules/products/components/pages/ProductEdit.vue +10 -13
  177. package/src/modules/products/components/pages/Products.vue +2 -0
  178. package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
  179. package/src/modules/products/store/products.js +25 -2
  180. package/src/modules/spots/components/blocks/CardSpot.vue +2 -2
  181. package/src/modules/users/components/blocks/CardUser.vue +1 -0
  182. package/src/modules/landing/components/sections/AboutSection.vue +0 -69
@@ -1,34 +1,34 @@
1
- import { openBlock as t, createElementBlock as n, createElementVNode as d, withModifiers as b, createCommentVNode as r, createBlock as w, toDisplayString as f, withCtx as k, createTextVNode as C, Fragment as M, renderList as P, normalizeStyle as U } from "vue";
2
- import { useRouter as D } from "vue-router";
3
- import F from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
4
- import L from "../../../reports/components/sections/FormReport.vue.js";
5
- import T from "../../../../components/Tooltip/Tooltip.vue.js";
6
- import V from "../../../../components/Dropdown/Dropdown.vue.js";
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
8
  import "../../../../components/Button/Button.vue2.js";
9
9
  import "../../../auth/store/auth.js";
10
10
  import "../../../organizations/store/memberships.js";
11
- import S from "../../../icons/navigation/IconEllipsis.vue.js";
11
+ import A from "../../../icons/navigation/IconEllipsis.vue.js";
12
12
  const B = {
13
13
  key: 0,
14
14
  class: "pd-b-zero"
15
- }, I = { class: "w-100 flex-v-center flex-nojustify flex" }, N = { class: "w-100 flex-nowrap flex-v-center flex" }, O = ["src"], j = {
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
- }, A = {
18
+ }, J = {
19
19
  key: 1,
20
20
  class: "pos-relative"
21
- }, H = { key: 2 }, J = { class: "d-block mn-l-auto flex-nowrap flex flex-v-center" }, q = {
21
+ }, q = { key: 2 }, G = { class: "d-block mn-l-auto flex-nowrap flex flex-v-center" }, K = {
22
22
  key: 0,
23
- class: "w-4r i-thin"
24
- }, G = {
23
+ class: "w-4r pos-relative i-thin"
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
- }, K = ["src"], Q = { class: "bg-black pd-thin radius-small" }, W = /* @__PURE__ */ d("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), ae = {
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,96 +43,107 @@ const B = {
43
43
  "type"
44
44
  ],
45
45
  setup(e) {
46
- D();
47
- function z(i) {
48
- const o = /* @__PURE__ */ new Date(), h = new Date(i), g = Math.abs(o - h), y = Math.floor(g / 1e3), s = Math.floor(y / 60), a = Math.floor(s / 60), l = Math.floor(a / 24), m = Math.floor(l / 7);
49
- return m > 0 ? `${m} week${m > 1 ? "s" : ""} ago` : l > 0 ? `${l} day${l > 1 ? "s" : ""} ago` : a > 0 ? `${a} hour${a > 1 ? "s" : ""} ago` : s > 0 ? `${s} minute${s > 1 ? "s" : ""} ago` : "Just now";
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
- return (i, o) => {
52
- var h, g, y, s, a, l, m, x, $, v, p, E, R;
53
- return e.owner ? (t(), n("header", B, [
54
- d("div", I, [
55
- d("div", N, [
56
- ((y = (g = (h = e.owner.target) == null ? void 0 : h.profile) == null ? void 0 : g.photo) == null ? void 0 : y.length) > 0 && e.type !== "short" ? (t(), n("img", {
51
+ return (s, o) => {
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
+ ((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
- src: (i.FILE_SERVER_URL || "") + e.owner.target.profile.photo,
58
+ src: (s.FILE_SERVER_URL || "") + e.owner.target.profile.photo,
59
59
  class: "radius-medium object-fit-cover mn-r-thin i-thin",
60
- onClick: o[0] || (o[0] = b((c) => i.$router.push({
60
+ onClick: o[0] || (o[0] = w((c) => s.$router.push({
61
61
  name: e.owner.type === "user" ? "User Profile" : "Organization",
62
62
  params: {
63
63
  _id: e.owner.target._id
64
64
  }
65
65
  }), ["stop"]))
66
- }, null, 8, O)) : r("", !0),
67
- !((a = (s = e.owner.target) == null ? void 0 : s.profile) != null && a.photo) && e.type !== "short" ? (t(), w(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
- onClick: o[1] || (o[1] = b((c) => i.$router.push({
70
+ onClick: o[1] || (o[1] = w((c) => s.$router.push({
71
71
  name: e.owner.type === "user" ? "User Profile" : "Organization",
72
72
  params: {
73
73
  _id: e.owner.target._id
74
74
  }
75
75
  }), ["stop"]))
76
76
  })) : r("", !0),
77
- e.type !== "short" ? (t(), n("span", j, [
78
- d("span", {
79
- onClick: o[2] || (o[2] = b((c) => i.$router.push({
77
+ e.type !== "short" ? (t(), i("span", H, [
78
+ m("span", {
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
- }, f((m = (l = e.owner.target) == null ? void 0 : l.profile) == null ? void 0 : m.name), 1),
86
- !e.creator.hidden && (($ = (x = e.owner.target) == null ? void 0 : x.profile) == null ? void 0 : $.name) !== ((p = (v = e.creator.target) == null ? void 0 : v.profile) == null ? void 0 : p.name) ? (t(), n("span", {
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
- onClick: o[3] || (o[3] = b((c) => {
89
- var u;
90
- return i.$router.push({
88
+ onClick: o[3] || (o[3] = w((c) => {
89
+ var n;
90
+ return s.$router.push({
91
91
  name: "User Profile",
92
92
  params: {
93
- _id: (u = e.creator.target) == null ? void 0 : u._id
93
+ _id: (n = e.creator.target) == null ? void 0 : n._id
94
94
  }
95
95
  });
96
96
  }, ["stop"]))
97
- }, " · by " + f((R = (E = e.creator.target) == null ? void 0 : E.profile) == null ? void 0 : R.name), 1)) : r("", !0),
98
- e.date ? (t(), n("span", A, [
99
- e.date ? (t(), w(T, {
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
- text: i.formatDate(e.date)
101
+ text: s.formatDate(e.date)
102
102
  }, {
103
103
  default: k(() => [
104
- C(" · " + f(z(e.date)), 1)
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(), n("span", H, " · " + f(e.dateFormatted), 1)) : r("", !0)
109
+ e.dateFormatted ? (t(), i("span", q, " · " + h(e.dateFormatted), 1)) : r("", !0)
110
110
  ])) : r("", !0),
111
- d("div", J, [
112
- e.members ? (t(), n("div", q, [
113
- d("span", G, f(e.members), 1),
114
- (t(!0), n(M, null, P(e.membersPhotos.slice(0, 2), (c, u) => (t(), n("img", {
115
- key: u,
116
- src: (i.FILE_SERVER_URL || "") + c,
117
- style: U({
118
- position: "absolute",
119
- top: "0px",
120
- right: u * 20 + 20 + "%",
121
- zIndex: 1 - u
122
- }),
123
- class: "br-solid br-2px br-white i-thin bg-grey radius-big"
124
- }, null, 12, K))), 128))
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
+ c ? (t(), i("img", {
116
+ key: n,
117
+ src: (s.FILE_SERVER_URL || "") + c,
118
+ style: P({
119
+ position: "absolute",
120
+ top: "0px",
121
+ right: n * 20 + 20 + "%",
122
+ zIndex: 1 - n
123
+ }),
124
+ class: "br-solid br-2px br-white i-thin bg-grey radius-big"
125
+ }, null, 12, W)) : (t(), f(U, {
126
+ key: 1,
127
+ style: P({
128
+ position: "absolute",
129
+ top: "0px",
130
+ right: n * 20 + 20 + "%",
131
+ zIndex: 1 - n
132
+ }),
133
+ class: "br-solid br-2px br-white i-thin bg-grey radius-big"
134
+ }, null, 8, ["style"]))
135
+ ], 64))), 256))
125
136
  ])) : r("", !0)
126
137
  ]),
127
- e.type !== "short" && e.user && e.user != e.creator.target._id ? (t(), w(V, {
138
+ e.type !== "short" && e.user && e.user != e.creator.target._id ? (t(), f(S, {
128
139
  key: 3,
129
- label: { component: S, class: "t-transp i-regular" },
140
+ label: { component: A, class: "t-transp i-regular" },
130
141
  align: "right",
131
142
  class: "cursor-pointer z-index-2"
132
143
  }, {
133
144
  default: k(() => [
134
- d("section", Q, [
135
- e.user !== e.creator.target._id ? (t(), w(L, {
145
+ m("section", X, [
146
+ e.user !== e.creator.target._id ? (t(), f(V, {
136
147
  key: 0,
137
148
  user: e.user,
138
149
  type: e.entityType,
@@ -141,7 +152,7 @@ const B = {
141
152
  class: "w-100"
142
153
  }, {
143
154
  default: k(() => [
144
- W
155
+ Y
145
156
  ]),
146
157
  _: 1
147
158
  }, 8, ["user", "type", "target"])) : r("", !0)
@@ -156,5 +167,5 @@ const B = {
156
167
  }
157
168
  };
158
169
  export {
159
- ae as default
170
+ ue as default
160
171
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-i18n"),a={id:"howtobuy",class:"pd-thin"},c={class:"t-center bg-black t-white radius-big pd-big pd-t-big pd-b-big"},l=["innerHTML"],d={class:"cols-3 gap-thin"},u={class:"mn-r-auto mn-l-auto h2 i-extra radius-extra bg-main flex-center flex mn-b-medium"},m={class:"mn-b-medium"},p={class:"t-transp"},h={__name:"SectionFeatures",props:{title:String,textData:{type:Object,default:()=>({messages:{en:{title:'Transform Your View on Smoking with <b class="t-main">Next Industrial Revolution</b>',features:[{icon:"1",title:"United in Growth",description:"Weeder thrives on community participation. As an open-source platform, it invites everyone to contribute and shape the evolution of cannabis culture globally."},{icon:"2",title:"Trust in Crypto",description:"Weeder utilizes the power of blockchain technology and smart contracts, building a trust-rich, transparent environment that ensures secure and smooth transactions."},{icon:"3",title:"Boosted by AI",description:"With AI at the core, Weeder enhances understanding of cannabis, creating personalized tools to enrich the user experience and business goals."}]},ru:{title:"Наши Преимущества",features:[{icon:"📦",headline:"Доставка за 1 час",description:"Мы понимаем, как важно для клиентов получить товар в самый краткий срок. Получите свой заказ в течении часа после подтверждения!"},{icon:"💬",headline:"Поддержка 24/7",description:"Если у вас есть какие-либо вопросы, наша служба поддержки клиентов работает круглосуточно и без выходных. Вы можете связаться с нами в любое время в Telegram!"},{icon:"😊",headline:"Гарантия качества",description:"Непревзойденные цены и самые доступные качественные товары. Больше не тратьте деньги на дорогие некачественные продукты!"}]}}})}},setup(n){const i=n,{t:o,tm:s}=r.useI18n(i.textData);return(b,g)=>(e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("section",c,[e.createElementVNode("h2",{class:"w-max-50r mn-l-auto mn-r-auto mn-b-small",innerHTML:e.unref(o)("title")},null,8,l),e.createElementVNode("div",d,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s)("features"),t=>(e.openBlock(),e.createElementBlock("div",{key:t.title,class:"pd-medium radius-big"},[e.createElementVNode("p",u,e.toDisplayString(t.icon),1),e.createElementVNode("h3",m,e.toDisplayString(t.title),1),e.createElementVNode("p",p,e.toDisplayString(t.description),1)]))),128))])])]))}};exports.default=h;
@@ -0,0 +1,74 @@
1
+ import { openBlock as n, createElementBlock as i, createElementVNode as t, unref as o, Fragment as d, renderList as u, toDisplayString as s } from "vue";
2
+ import { useI18n as m } from "vue-i18n";
3
+ const p = {
4
+ id: "howtobuy",
5
+ class: "pd-thin"
6
+ }, h = { class: "t-center bg-black t-white radius-big pd-big pd-t-big pd-b-big" }, b = ["innerHTML"], g = { class: "cols-3 gap-thin" }, _ = { class: "mn-r-auto mn-l-auto h2 i-extra radius-extra bg-main flex-center flex mn-b-medium" }, f = { class: "mn-b-medium" }, x = { class: "t-transp" }, T = {
7
+ __name: "SectionFeatures",
8
+ props: {
9
+ title: String,
10
+ textData: {
11
+ type: Object,
12
+ default: () => ({
13
+ messages: {
14
+ en: {
15
+ title: 'Transform Your View on Smoking with <b class="t-main">Next Industrial Revolution</b>',
16
+ features: [{
17
+ icon: "1",
18
+ title: "United in Growth",
19
+ description: "Weeder thrives on community participation. As an open-source platform, it invites everyone to contribute and shape the evolution of cannabis culture globally."
20
+ }, {
21
+ icon: "2",
22
+ title: "Trust in Crypto",
23
+ description: "Weeder utilizes the power of blockchain technology and smart contracts, building a trust-rich, transparent environment that ensures secure and smooth transactions."
24
+ }, {
25
+ icon: "3",
26
+ title: "Boosted by AI",
27
+ description: "With AI at the core, Weeder enhances understanding of cannabis, creating personalized tools to enrich the user experience and business goals."
28
+ }]
29
+ },
30
+ ru: {
31
+ title: "Наши Преимущества",
32
+ features: [{
33
+ icon: "📦",
34
+ headline: "Доставка за 1 час",
35
+ description: "Мы понимаем, как важно для клиентов получить товар в самый краткий срок. Получите свой заказ в течении часа после подтверждения!"
36
+ }, {
37
+ icon: "💬",
38
+ headline: "Поддержка 24/7",
39
+ description: "Если у вас есть какие-либо вопросы, наша служба поддержки клиентов работает круглосуточно и без выходных. Вы можете связаться с нами в любое время в Telegram!"
40
+ }, {
41
+ icon: "😊",
42
+ headline: "Гарантия качества",
43
+ description: "Непревзойденные цены и самые доступные качественные товары. Больше не тратьте деньги на дорогие некачественные продукты!"
44
+ }]
45
+ }
46
+ }
47
+ })
48
+ }
49
+ },
50
+ setup(r) {
51
+ const a = r, { t: c, tm: l } = m(a.textData);
52
+ return (y, v) => (n(), i("div", p, [
53
+ t("section", h, [
54
+ t("h2", {
55
+ class: "w-max-50r mn-l-auto mn-r-auto mn-b-small",
56
+ innerHTML: o(c)("title")
57
+ }, null, 8, b),
58
+ t("div", g, [
59
+ (n(!0), i(d, null, u(o(l)("features"), (e) => (n(), i("div", {
60
+ key: e.title,
61
+ class: "pd-medium radius-big"
62
+ }, [
63
+ t("p", _, s(e.icon), 1),
64
+ t("h3", f, s(e.title), 1),
65
+ t("p", x, s(e.description), 1)
66
+ ]))), 128))
67
+ ])
68
+ ])
69
+ ]));
70
+ }
71
+ };
72
+ export {
73
+ T as default
74
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/sections/MobileApp.vue.cjs");exports.MobileApp=e.default;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/sections/MobileApp.vue.cjs"),t=require("./components/sections/SectionFeatures.vue.cjs");exports.MobileApp=e.default;exports.SectionFeatures=t.default;
@@ -1,4 +1,6 @@
1
- import { default as p } from "./components/sections/MobileApp.vue.js";
1
+ import { default as t } from "./components/sections/MobileApp.vue.js";
2
+ import { default as r } from "./components/sections/SectionFeatures.vue.js";
2
3
  export {
3
- p as MobileApp
4
+ t as MobileApp,
5
+ r as SectionFeatures
4
6
  };
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../../../icons/navigation/IconCheckmark.vue.cjs"),v={class:"bg-grey radius-medium w-100"},f=e.createElementVNode("h3",{class:"pd-medium"},"Tracking History",-1),g={class:"flex-center flex i-big radius-extra br-solid br-2px br-black-transp-10 mn-r-small"},y={class:"h4 w-8r"},k=["disabled","onClick"],h={__name:"StatusHistory",props:{statusHistory:{type:Array},statusCurrent:{type:String},edit:{type:Boolean}},setup(i){const a=i,n=e.ref([{value:"created",name:"Received",nextstatus:"Confirming order...",description:"Your order has been successfully created. Our manager will contact you within five minutes to confirm your order."},{value:"confirming",name:"Confirming",nextstatus:"Confirming order...",description:"Your order has been confirmed. We are now processing your items and preparing them for shipment."},{value:"confirmed",name:"Confirmed",nextstatus:"Order is confirmed. Packing order...",description:"Your order has been confirmed. We are now processing your items and preparing them for shipment."},{value:"packing",name:"Packing",nextstatus:"Packing order...",description:"Your order is now awaiting shipment. Once shipped, you will receive a notification with tracking information."},{value:"packed",name:"Packed",nextstatus:"Delivering order...",description:"Your order is now awaiting shipment. Once shipped, you will receive a notification with tracking information."},{value:"in delivery",name:"Delivering",description:"Your order is currently in transit. Our delivery team is working hard to get your items to you as soon as possible."},{value:"delivered",name:"Delivered",description:"Congratulations! Your order has been successfully delivered. If you have any concerns or feedback, feel free to contact us."}]),s=e.ref(a.statusCurrent),u=e.ref(a.statusHistory),l=r=>u.value.some(o=>o.status===r),d=r=>{const o=n.value.findIndex(c=>c.value===s.value);console.log(status.status===s.value),console.log(s.value),console.log(status);const t=o+1;return n.value[t]&&n.value[t].value===r},m=async r=>{};return e.ref("192.168.1.197"),e.ref(9100),e.ref(`This is some text to print
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,o)=>(e.openBlock(),e.createElementBlock("div",v,[f,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,t=>(e.openBlock(),e.createElementBlock("div",{key:t.value,class:"w-100 br-t br-solid br-black-transp-10 pd-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("div",g,[l(t.value)?(e.openBlock(),e.createBlock(p.default,{key:0,class:"i-medium"})):e.createCommentVNode("",!0)]),e.createElementVNode("p",y,e.toDisplayString(t.name),1),i.edit?(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!d(t.value),onClick:c=>m(),class:"mn-l-auto bg-main button radius-big"},"Set status",8,k)):e.createCommentVNode("",!0)]))),128))]))}};exports.default=h;
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 t, openBlock as n, createElementBlock as o, Fragment as y, renderList as h, createElementVNode as c, createBlock as b, createCommentVNode as m, toDisplayString as k } from "vue";
2
- import x from "../../../icons/navigation/IconCheckmark.vue.js";
3
- const w = { class: "bg-grey radius-medium w-100" }, _ = /* @__PURE__ */ c("h3", { class: "pd-medium" }, "Tracking History", -1), C = { class: "flex-center flex i-big radius-extra br-solid br-2px br-black-transp-10 mn-r-small" }, S = { class: "h4 w-8r" }, Y = ["disabled", "onClick"], O = {
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(u) {
17
- const l = u, s = t([
18
- {
19
- value: "created",
20
- name: "Received",
21
- nextstatus: "Confirming order...",
22
- description: "Your order has been successfully created. Our manager will contact you within five minutes to confirm your order."
23
- },
24
- {
25
- value: "confirming",
26
- name: "Confirming",
27
- nextstatus: "Confirming order...",
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 t("192.168.1.197"), t(9100), t(`This is some text to print
35
+ return i("192.168.1.197"), i(9100), i(`This is some text to print
66
36
 
67
- `), (r, i) => (n(), o("div", w, [
68
- _,
69
- (n(!0), o(y, null, h(s.value, (e) => (n(), o("div", {
70
- key: e.value,
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
- c("div", C, [
74
- v(e.value) ? (n(), b(x, {
43
+ o("div", S, [
44
+ _(t.status) ? (n(), k(g, {
75
45
  key: 0,
76
46
  class: "i-medium"
77
- })) : m("", !0)
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
- c("p", S, k(e.name), 1),
80
- u.edit ? (n(), o("button", {
53
+ o("p", I, c(t._id), 1),
54
+ l.edit ? (n(), a("button", {
81
55
  key: 0,
82
- disabled: !f(e.value),
83
- onClick: (d) => g(),
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, Y)) : m("", !0)
59
+ }, "Set status", 8, B)) : u("", !0)
86
60
  ]))), 128))
87
61
  ]));
88
62
  }
89
63
  };
90
64
  export {
91
- O as default
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-622bfaf9"),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"},ge=n(()=>e.createElementVNode("p",{class:"mn-r-auto t-transp"},"In total",-1)),he={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 console.log(o),console.log(p),{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,_,g,h,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((g=t.value.user)==null?void 0:g.messenger.type),1),e.createElementVNode("p",se,e.toDisplayString((h=t.value.user)==null?void 0:h.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,[ge,e.createElementVNode("p",null,e.toDisplayString(e.unref(v))+" "+e.toDisplayString(a.returnCurrency()),1)]),e.createElementVNode("div",he,[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-622bfaf9"]]);exports.default=ke;
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;