@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.
Files changed (231) hide show
  1. package/dist/events.server.js +14 -6
  2. package/dist/events.server.mjs +14 -6
  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/Block/Block.vue.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
  14. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Button/Button.vue.js +94 -1
  16. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +1 -94
  18. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -1
  20. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  21. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +1 -84
  22. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  24. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  25. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +25 -20
  26. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Map/Map.vue.js +36 -26
  28. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -1
  30. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  31. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -103
  32. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
  34. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  35. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
  36. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
  38. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  40. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
  42. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
  44. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
  46. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +2 -2
  48. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
  50. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  52. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
  54. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  56. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  58. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  60. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  61. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +66 -0
  62. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  63. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
  64. package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.js +11 -11
  66. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  68. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  70. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  74. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  76. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  78. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
  80. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  82. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +46 -46
  84. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  86. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +2 -2
  87. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +39 -65
  88. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +31 -31
  90. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -0
  91. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +242 -0
  92. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue2.cjs +1 -0
  93. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue2.js +1 -0
  94. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +62 -62
  96. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +30 -30
  98. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +99 -70
  100. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +3 -3
  102. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +2 -2
  104. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +10 -10
  106. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  108. package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.js +1 -1
  110. package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +2 -2
  112. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/orders/store/orders.js +33 -34
  114. package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +42 -42
  116. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +27 -25
  118. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +11 -11
  120. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  122. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +46 -43
  124. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +162 -168
  126. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +27 -26
  128. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +7 -7
  130. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  132. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  134. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  136. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  138. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
  140. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  142. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +13 -13
  144. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  146. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  148. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  150. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
  152. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  154. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +16 -17
  156. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +22 -20
  158. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  160. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  162. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  164. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/products/store/products.js +59 -38
  166. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  168. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +23 -22
  170. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +17 -14
  172. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  174. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
  176. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
  178. package/dist/prometheus-framework.cjs.js +1 -1
  179. package/dist/prometheus-framework.es.js +1 -1
  180. package/dist/style.css +1 -1
  181. package/dist/web-CQQEUA9l.js +1 -0
  182. package/dist/web-D2Em-p-C.mjs +54 -0
  183. package/package.json +1 -1
  184. package/src/components/Address/Address.vue +23 -34
  185. package/src/components/LocationMarker/LocationMarker.vue +6 -1
  186. package/src/components/LocationSelection/LocationSelection.vue +4 -0
  187. package/src/components/Map/Map.vue +29 -15
  188. package/src/modules/constructor/components/elements/VideoPlayer.vue +2 -2
  189. package/src/modules/events/controllers/events.controller.js +4 -4
  190. package/src/modules/globals/components/blocks/CardHeader.vue +2 -2
  191. package/src/modules/integrations/stripe/controllers/services/stripe.service.js +17 -6
  192. package/src/modules/landing/components/pages/Farming.vue +226 -0
  193. package/src/modules/landing/components/pages/Governance.vue +3 -5
  194. package/src/modules/landing/components/pages/Home.vue +0 -3
  195. package/src/modules/landing/components/pages/Hotel.vue +1 -3
  196. package/src/modules/landing/components/pages/Page.vue +0 -3
  197. package/src/modules/landing/components/sections/Examples.vue +4 -56
  198. package/src/modules/landing/components/sections/SectionFeature.vue +41 -0
  199. package/src/modules/landing/components/sections/SectionFeaturesImages.vue +122 -0
  200. package/src/modules/landing/components/sections/SectionFocus.vue +59 -0
  201. package/src/modules/landing/components/sections/SectionHeroVideo.vue +164 -0
  202. package/src/modules/landing/router/landing.js +11 -0
  203. package/src/modules/marketplace/components/sections/Filters.vue +26 -23
  204. package/src/modules/orders/components/blocks/CardOrderItem.vue +8 -0
  205. package/src/modules/orders/components/blocks/StatusHistory.vue +25 -53
  206. package/src/modules/orders/components/pages/Order.vue +2 -6
  207. package/src/modules/orders/components/pages/OrderBackoffice.vue +393 -0
  208. package/src/modules/orders/components/pages/OrderCreate.vue +5 -4
  209. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +2 -3
  210. package/src/modules/orders/components/pages/Orders.vue +60 -11
  211. package/src/modules/orders/components/sections/FormDelivery.vue +2 -2
  212. package/src/modules/orders/controllers/orders.controller.js +29 -18
  213. package/src/modules/orders/models/order.model.js +8 -2
  214. package/src/modules/orders/router/orders.backoffice.router.js +1 -1
  215. package/src/modules/orders/router/orders.router.js +2 -2
  216. package/src/modules/orders/store/orders.js +3 -7
  217. package/src/modules/orders/store/shopcart.js +1 -1
  218. package/src/modules/organizations/components/blocks/CardDepartment.vue +2 -0
  219. package/src/modules/organizations/components/pages/Department.vue +5 -1
  220. package/src/modules/organizations/components/pages/DepartmentEdit.vue +65 -27
  221. package/src/modules/organizations/components/pages/Members.vue +2 -1
  222. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  223. package/src/modules/organizations/controllers/memberships.controller.js +3 -1
  224. package/src/modules/organizations/store/memberships.js +1 -1
  225. package/src/modules/products/components/blocks/CardProduct.vue +2 -3
  226. package/src/modules/products/components/pages/ProductEdit.vue +10 -13
  227. package/src/modules/products/components/pages/Products.vue +2 -0
  228. package/src/modules/products/store/products.js +25 -2
  229. package/src/modules/spots/components/blocks/CardSpot.vue +2 -2
  230. package/src/modules/users/components/blocks/CardUser.vue +1 -0
  231. package/src/modules/landing/components/sections/AboutSection.vue +0 -69
@@ -1,34 +1,34 @@
1
- import { openBlock as t, createElementBlock as i, createElementVNode as u, withModifiers as w, createCommentVNode as r, createBlock as f, toDisplayString as h, withCtx as k, createTextVNode as U, Fragment as R, renderList as D, normalizeStyle as C } from "vue";
2
- import { useRouter as F } from "vue-router";
3
- import M from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
4
- import L from "../../../reports/components/sections/FormReport.vue.js";
5
- import T from "../../../../components/Tooltip/Tooltip.vue2.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
- import "../../../../components/Button/Button.vue.js";
8
+ import "../../../../components/Button/Button.vue2.js";
9
9
  import "../../../auth/store/auth.js";
10
10
  import "../../../organizations/store/memberships.js";
11
- import I from "../../../icons/navigation/IconEllipsis.vue.js";
12
- const S = {
11
+ import A from "../../../icons/navigation/IconEllipsis.vue.js";
12
+ const B = {
13
13
  key: 0,
14
14
  class: "pd-b-zero"
15
- }, B = { class: "w-100 flex-v-center flex-nojustify flex" }, N = { class: "w-100 flex-nowrap flex-v-center flex" }, O = ["src"], j = {
15
+ }, 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
23
  class: "w-4r pos-relative i-thin"
24
- }, G = {
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__ */ u("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,16 +43,16 @@ const S = {
43
43
  "type"
44
44
  ],
45
45
  setup(e) {
46
- F();
47
- function P(s) {
48
- const o = /* @__PURE__ */ new Date(), g = new Date(s), y = Math.abs(o - g), b = Math.floor(y / 1e3), a = Math.floor(b / 60), l = Math.floor(a / 60), d = Math.floor(l / 24), m = Math.floor(d / 7);
49
- return m > 0 ? `${m} week${m > 1 ? "s" : ""} ago` : d > 0 ? `${d} day${d > 1 ? "s" : ""} ago` : l > 0 ? `${l} hour${l > 1 ? "s" : ""} ago` : a > 0 ? `${a} minute${a > 1 ? "s" : ""} ago` : "Just now";
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, d, m, x, $, p, v, z, E;
53
- return e.owner ? (t(), i("header", S, [
54
- u("div", B, [
55
- u("div", N, [
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, O)) : r("", !0),
67
- !((l = (a = e.owner.target) == null ? void 0 : a.profile) != null && l.photo) && e.type !== "short" ? (t(), f(M, {
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", j, [
78
- u("span", {
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((m = (d = e.owner.target) == null ? void 0 : d.profile) == null ? void 0 : m.name), 1),
86
- !e.creator.hidden && (($ = (x = e.owner.target) == null ? void 0 : x.profile) == null ? void 0 : $.name) !== ((v = (p = e.creator.target) == null ? void 0 : p.profile) == null ? void 0 : v.name) ? (t(), i("span", {
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((E = (z = e.creator.target) == null ? void 0 : z.profile) == null ? void 0 : E.name), 1)) : r("", !0),
98
- e.date ? (t(), i("span", A, [
99
- e.date ? (t(), f(T, {
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
- U(" · " + h(P(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(), i("span", H, " · " + h(e.dateFormatted), 1)) : r("", !0)
109
+ e.dateFormatted ? (t(), i("span", q, " · " + h(e.dateFormatted), 1)) : r("", !0)
110
110
  ])) : r("", !0),
111
- u("div", J, [
112
- e.members ? (t(), i("div", q, [
113
- u("span", G, h(e.members), 1),
114
- (t(!0), i(R, null, D(e.membersPhotos.slice(0, 2), (c, n) => (t(), i(R, null, [
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: C({
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, K)) : (t(), f(M, {
125
+ }, null, 12, W)) : (t(), f(U, {
126
126
  key: 1,
127
- style: C({
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(V, {
138
+ e.type !== "short" && e.user && e.user != e.creator.target._id ? (t(), f(S, {
139
139
  key: 3,
140
- label: { component: I, class: "t-transp i-regular" },
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
- u("section", Q, [
146
- e.user !== e.creator.target._id ? (t(), f(L, {
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
- W
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
- ae as default
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.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const a=require("../../../mobile/components/Menu/Menu.vue.cjs"),r=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-grey radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
1
+ "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.vue.js";
2
+ import "../../../../components/Field/Field.vue2.js";
3
3
  import "../../../../components/Loader/Loader.vue.js";
4
- import "../../../../components/Button/Button.vue.js";
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";
@@ -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;
@@ -1,57 +1,57 @@
1
- import { ref as f, onMounted as V, computed as y, openBlock as d, createElementBlock as m, createElementVNode as e, toDisplayString as a, normalizeClass as v, createTextVNode as A, createCommentVNode as u, createBlock as w, unref as p, Fragment as B, renderList as U, createVNode as q, pushScopeId as H, popScopeId as W } from "vue";
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 k } from "../../store/orders.js";
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 n = (b) => (H("data-v-622bfaf9"), b = b(), W(), b), te = {
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__ */ n(() => /* @__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)), le = { class: "radius-extra mn-b-medium flex-nowrap flex h-1r pos-relativew-40r" }, ne = { class: "pos-absolute pos-t-medium pos-r-medium t-medium p-medium" }, oe = { class: "p-small t-transp" }, de = {
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__ */ n(() => /* @__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__ */ n(() => /* @__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__ */ n(() => /* @__PURE__ */ e("p", { class: "w-100 t-medium p-medium" }, " Phone ", -1)), fe = { class: "w-100 t-right" }, ye = {
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__ */ n(() => /* @__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__ */ n(() => /* @__PURE__ */ e("p", { class: "mn-b-small t-medium p-medium" }, " Delivery ", -1)), Ne = { class: "w-100 t-right mn-b-small" }, Me = {
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__ */ n(() => /* @__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__ */ n(() => /* @__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__ */ n(() => /* @__PURE__ */ e("p", { class: "mn-r-auto t-transp" }, "Delivery", -1)), Ve = { class: "pd-small flex-bottom flex" }, Ae = /* @__PURE__ */ n(() => /* @__PURE__ */ e("p", { class: "mn-r-auto t-transp" }, "In total to pay", -1)), Be = { class: "p-big t-semi" }, Ue = /* @__PURE__ */ n(() => /* @__PURE__ */ e("h3", { class: "mn-b-small" }, "Chat With Us", -1)), qe = {
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 = f(null), g = f(null), i = f(null);
32
+ const h = L(), s = g(null), k = g(null), i = g(null);
33
33
  V(async () => {
34
- var t, l, r;
35
- s.value = await X.read({ _id: h.params.order }), s.value = s.value[0], g.value = await Z.read({
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: (l = s.value) == null ? void 0 : l.owner.target._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 = y(() => {
42
+ let x = f(() => {
43
43
  var t;
44
- return Number((t = s.value) == null ? void 0 : t.positions.reduce((l, r) => l + r.price * r.quantity, 0));
44
+ return Number((t = s.value) == null ? void 0 : t.positions.reduce((n, r) => n + r.price * r.quantity, 0));
45
45
  });
46
- y(() => {
46
+ f(() => {
47
47
  var t;
48
- return Number((t = s.value) == null ? void 0 : t.positions.reduce((l, r) => l + r.quantity, 0));
48
+ return Number((t = s.value) == null ? void 0 : t.positions.reduce((n, r) => n + r.quantity, 0));
49
49
  });
50
- let F = y(() => {
50
+ let F = f(() => {
51
51
  var t;
52
- return (t = s.value) == null ? void 0 : t.positions.map(({ _id: l, quantity: r }) => {
53
- const o = g.value.find((c) => c._id === l);
54
- return console.log(o), console.log(g), {
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, l) {
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(l).getTime(), _ = new Date(c + r + o);
67
- return console.log(l), 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, l) => {
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", le, [
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", ne, [
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(), w(G, {
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
- k.current.status_history ? (d(), w(K, {
157
+ w.current.status_history ? (d(), y(K, {
158
158
  key: 1,
159
- statusHistory: k.current.status_history,
160
- statusCurrent: k.current.status,
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(), w(j, {
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-622bfaf9"]]);
199
+ }, ts = /* @__PURE__ */ se(qe, [["__scopeId", "data-v-150d7ff5"]]);
200
200
  export {
201
201
  ts as default
202
202
  };