@ozdao/prometheus-framework 0.2.81 → 0.2.83

Sign up to get free protection for your applications and to get access to all the features.
Files changed (388) hide show
  1. package/dist/auth.server.js +1 -1
  2. package/dist/auth.server.mjs +1 -1
  3. package/dist/community.server.js +3 -3
  4. package/dist/community.server.mjs +3 -3
  5. package/dist/credentials.schema-B-KD_ozQ.js +9 -0
  6. package/dist/credentials.schema-C9dmNy7o.mjs +10 -0
  7. package/dist/credentials.schema-CDZCKfEI.mjs +106 -0
  8. package/dist/credentials.schema-CfhPcsuI.js +105 -0
  9. package/dist/events.server.js +4 -15
  10. package/dist/events.server.mjs +3 -14
  11. package/dist/files.server.js +1 -1
  12. package/dist/files.server.mjs +1 -1
  13. package/dist/gallery.server.js +1 -1
  14. package/dist/gallery.server.mjs +1 -1
  15. package/dist/index-B6a1mPgp.mjs +217 -0
  16. package/dist/index-BCCiEK_u.js +216 -0
  17. package/dist/main-8N2Jmsuk.js +91 -0
  18. package/dist/main-CkeuHuCY.mjs +13619 -0
  19. package/dist/main.css +1 -1
  20. package/dist/metadata.schema-Cu_mPkjE.js +77 -0
  21. package/dist/metadata.schema-cbFgazeK.mjs +78 -0
  22. package/dist/middlewares.server.js +1 -1
  23. package/dist/middlewares.server.mjs +1 -1
  24. package/dist/node_modules/@googlemaps/js-api-loader/dist/index.cjs +1 -0
  25. package/dist/node_modules/@googlemaps/js-api-loader/dist/index.js +238 -0
  26. package/dist/orders.server.js +592 -0
  27. package/dist/orders.server.mjs +593 -0
  28. package/dist/organizations.server.js +295 -131
  29. package/dist/organizations.server.mjs +295 -131
  30. package/dist/products.server.js +2 -2
  31. package/dist/products.server.mjs +2 -2
  32. package/dist/profile.schema-24ZpZQJe.mjs +25 -0
  33. package/dist/profile.schema-CkOhhf37.js +24 -0
  34. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  35. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +33 -24
  36. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/components/Block/Block.vue.js +23 -20
  38. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -225
  40. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  41. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +102 -1
  42. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +71 -60
  44. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -84
  46. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  47. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +84 -1
  48. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  50. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +325 -340
  52. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +2 -2
  54. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  55. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +53 -44
  56. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  57. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +41 -40
  58. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  59. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +37 -31
  60. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +18 -19
  62. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -36
  64. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  65. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +36 -1
  66. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
  68. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  69. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
  70. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  72. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  74. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
  76. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +30 -30
  78. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  80. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
  82. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
  84. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/auth/store/auth.js +26 -26
  86. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +78 -103
  88. package/dist/prometheus-framework/src/modules/chats/components/blocks/ChatMessage.vue.cjs +1 -0
  89. package/dist/prometheus-framework/src/modules/chats/components/blocks/ChatMessage.vue.js +28 -0
  90. package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue.cjs +1 -0
  91. package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue.js +26 -0
  92. package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue2.cjs +1 -0
  93. package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue2.js +1 -0
  94. package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue.cjs +1 -0
  95. package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue.js +77 -0
  96. package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue2.cjs +1 -0
  97. package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue2.js +1 -0
  98. package/dist/prometheus-framework/src/modules/chats/store/chat.store.cjs +1 -0
  99. package/dist/prometheus-framework/src/modules/chats/store/chat.store.js +40 -0
  100. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
  102. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  104. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +15 -15
  106. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  108. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  109. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
  110. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  111. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
  112. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  114. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +4 -4
  116. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  118. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  120. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  122. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  124. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +29 -27
  126. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  128. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
  130. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  132. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
  134. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.js +33 -26
  136. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +6 -3
  138. package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -0
  139. package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +70 -0
  140. package/dist/prometheus-framework/src/modules/icons/entities/IconGallery.vue.cjs +1 -0
  141. package/dist/prometheus-framework/src/modules/icons/entities/IconGallery.vue.js +28 -0
  142. package/dist/prometheus-framework/src/modules/icons/entities/IconLeftovers.vue.cjs +1 -0
  143. package/dist/prometheus-framework/src/modules/icons/entities/IconLeftovers.vue.js +30 -0
  144. package/dist/prometheus-framework/src/modules/icons/entities/IconOrders.vue.cjs +1 -0
  145. package/dist/prometheus-framework/src/modules/icons/entities/IconOrders.vue.js +35 -0
  146. package/dist/prometheus-framework/src/modules/icons/entities/IconProducts.vue.cjs +1 -0
  147. package/dist/prometheus-framework/src/modules/icons/entities/IconProducts.vue.js +28 -0
  148. package/dist/prometheus-framework/src/modules/icons/navigation/IconCheckmark.vue.cjs +1 -0
  149. package/dist/prometheus-framework/src/modules/icons/navigation/IconCheckmark.vue.js +29 -0
  150. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderChat.vue.cjs +1 -0
  151. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderChat.vue.js +30 -0
  152. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +63 -86
  154. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  156. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +121 -1
  158. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue2.cjs +1 -0
  159. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue2.js +1 -0
  160. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +3 -0
  161. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +92 -0
  162. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -0
  163. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +202 -0
  164. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue2.cjs +1 -0
  165. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue2.js +1 -0
  166. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -0
  167. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +127 -0
  168. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue2.cjs +1 -0
  169. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue2.js +1 -0
  170. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +174 -114
  172. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +41 -41
  174. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +1 -0
  175. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +89 -0
  176. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue2.cjs +1 -0
  177. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue2.js +1 -0
  178. package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.cjs +1 -0
  179. package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.js +24 -0
  180. package/dist/prometheus-framework/src/modules/orders/components/sections/EmptyState.vue.cjs +1 -0
  181. package/dist/prometheus-framework/src/modules/orders/components/sections/EmptyState.vue.js +13 -0
  182. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -0
  183. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +141 -0
  184. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +1 -1
  186. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -0
  187. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +77 -0
  188. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +46 -35
  190. package/dist/prometheus-framework/src/modules/orders/components/sections/Succes.vue.cjs +1 -0
  191. package/dist/prometheus-framework/src/modules/orders/components/sections/Succes.vue.js +25 -0
  192. package/dist/prometheus-framework/src/modules/orders/orders.client.cjs +1 -0
  193. package/dist/prometheus-framework/src/modules/orders/orders.client.js +56 -0
  194. package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -0
  195. package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +58 -0
  196. package/dist/prometheus-framework/src/modules/orders/store/customers.store.cjs +1 -0
  197. package/dist/prometheus-framework/src/modules/orders/store/customers.store.js +5 -0
  198. package/dist/prometheus-framework/src/modules/orders/store/models/customer.cjs +1 -0
  199. package/dist/prometheus-framework/src/modules/orders/store/models/customer.js +30 -0
  200. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  201. package/dist/prometheus-framework/src/modules/orders/store/orders.js +24 -25
  202. package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
  203. package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +5 -1
  204. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  205. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +16 -16
  206. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  207. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  208. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  209. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +38 -49
  210. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  211. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  212. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  213. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +6 -6
  214. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  215. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +161 -138
  216. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  217. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +198 -78
  218. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  219. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +82 -125
  220. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  221. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  222. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  223. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  224. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  225. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  226. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  227. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +59 -70
  228. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  229. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  230. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
  231. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +34 -36
  232. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  233. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +38 -18
  234. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  235. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +34 -35
  236. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  237. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  238. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  239. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +41 -21
  240. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  241. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  242. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  243. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  244. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  245. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  246. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  247. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  248. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  249. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  250. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  251. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  252. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  253. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  254. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  255. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +3 -3
  256. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  257. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  258. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  259. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  260. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  261. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  262. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  263. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +24 -26
  264. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -0
  265. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +78 -0
  266. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  267. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  268. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  269. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  270. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  271. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  272. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  273. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  274. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  275. package/dist/prometheus-framework/src/modules/users/store/users.js +13 -14
  276. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  277. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
  278. package/dist/prometheus-framework.cjs.js +1 -1
  279. package/dist/prometheus-framework.es.js +1 -1
  280. package/dist/queryProcessor-BJdKh0Ow.mjs +162 -0
  281. package/dist/queryProcessor-DRMo_GWK.js +161 -0
  282. package/dist/reports.server.js +1 -1
  283. package/dist/reports.server.mjs +1 -1
  284. package/dist/style.css +1 -1
  285. package/dist/users.server.js +58 -47
  286. package/dist/users.server.mjs +58 -47
  287. package/dist/wallet.server.js +2 -2
  288. package/dist/wallet.server.mjs +2 -2
  289. package/dist/web-CtVocufd.js +1 -0
  290. package/dist/web-DNq1tHCE.mjs +54 -0
  291. package/package.json +1 -1
  292. package/src/components/Address/Address.vue +13 -2
  293. package/src/components/Block/Block.vue +3 -2
  294. package/src/components/Button/Button.vue +9 -12
  295. package/src/components/Feed/Feed.vue +28 -6
  296. package/src/components/FieldPhone/FieldPhone.vue +592 -558
  297. package/src/components/LocationMarker/LocationMarker.vue +26 -22
  298. package/src/components/Popup/Popup.vue +22 -23
  299. package/src/components/Select/Select.vue +43 -32
  300. package/src/components/Slider/Slider.vue +3 -4
  301. package/src/modules/auth/components/pages/Invite.vue +7 -7
  302. package/src/modules/auth/store/auth.js +1 -1
  303. package/src/modules/backoffice/components/pages/Dashboard.vue +44 -29
  304. package/src/modules/chats/components/blocks/ChatMessage.vue +1 -1
  305. package/src/modules/community/components/sections/HotPosts.vue +1 -1
  306. package/src/modules/events/components/blocks/CardEvent.vue +4 -3
  307. package/src/modules/events/components/pages/Events.vue +23 -6
  308. package/src/modules/globals/components/sections/SectionPageTitle.vue +19 -7
  309. package/src/modules/globals/controllers/utils/queryProcessor.js +21 -7
  310. package/src/modules/globals/localization/vue-i18n.js +3 -0
  311. package/src/modules/globals/models/credentials.schema.js +7 -0
  312. package/src/modules/globals/models/metadata.schema.js +17 -0
  313. package/src/modules/globals/models/profile.schema.js +23 -0
  314. package/src/modules/globals/models/socials.schema.js +22 -0
  315. package/src/modules/globals/router/routerGuards.js +1 -0
  316. package/src/modules/globals/services/globals.cashe.js +26 -0
  317. package/src/modules/globals/services/globals.crud.js +115 -0
  318. package/src/modules/globals/services/globals.logger.js +41 -0
  319. package/src/modules/globals/services/globals.store.js +114 -0
  320. package/src/modules/icons/entities/IconGallery.vue +14 -0
  321. package/src/modules/icons/entities/IconLeftovers.vue +14 -0
  322. package/src/modules/icons/entities/IconOrders.vue +15 -0
  323. package/src/modules/icons/entities/IconProducts.vue +14 -0
  324. package/src/modules/landing/components/sections/HeroSection.vue +1 -1
  325. package/src/modules/landing/components/sections/MobileApp.vue +4 -4
  326. package/src/modules/landing/router/landing.js +1 -1
  327. package/src/modules/marketplace/components/sections/Filters.vue +3 -3
  328. package/src/modules/middlewares/server/accessors/AccessController.js +33 -0
  329. package/src/modules/middlewares/server/accessors/ReadDepartments.js +101 -0
  330. package/src/modules/middlewares/server/verifyAccesses.js +33 -0
  331. package/src/modules/middlewares/server/verifyInvites.js +4 -4
  332. package/src/modules/orders/components/pages/OrderCreate.vue +2 -2
  333. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +105 -68
  334. package/src/modules/orders/components/pages/Orders.vue +2 -2
  335. package/src/modules/orders/components/sections/FormAddCustomer.vue +152 -0
  336. package/src/modules/orders/components/sections/FormCustomerDetails.vue +67 -0
  337. package/src/modules/orders/components/sections/FormDelivery.vue +17 -3
  338. package/src/modules/orders/controllers/applications.controller.js +2 -0
  339. package/src/modules/orders/controllers/orders.controller.js +77 -52
  340. package/src/modules/orders/models/application.model.js +25 -25
  341. package/src/modules/orders/models/customer.model.js +54 -18
  342. package/src/modules/orders/models/order.model.js +1 -1
  343. package/src/modules/orders/models/testimonial.model.js +22 -23
  344. package/src/modules/orders/orders.client.js +51 -51
  345. package/src/modules/orders/orders.server.js +36 -12
  346. package/src/modules/orders/router/orders.router.js +36 -41
  347. package/src/modules/orders/routes/orders.routes.js +3 -21
  348. package/src/modules/orders/store/customers.store.js +5 -0
  349. package/src/modules/orders/store/models/customer.js +29 -0
  350. package/src/modules/orders/store/orders.js +14 -20
  351. package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
  352. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  353. package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +1 -12
  354. package/src/modules/organizations/components/pages/Department.vue +1 -1
  355. package/src/modules/organizations/components/pages/DepartmentEdit.vue +72 -48
  356. package/src/modules/organizations/components/pages/Members.vue +178 -64
  357. package/src/modules/organizations/components/pages/Organization.vue +1 -41
  358. package/src/modules/organizations/components/sections/MembersAdd.vue +44 -52
  359. package/src/modules/organizations/controllers/departments.controller.js +2 -4
  360. package/src/modules/organizations/controllers/invites.controller.js +24 -23
  361. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  362. package/src/modules/organizations/models/department.model.js +52 -2
  363. package/src/modules/organizations/models/invite.model.js +29 -32
  364. package/src/modules/organizations/models/membership.model.js +2 -0
  365. package/src/modules/organizations/models/organization.model.js +2 -1
  366. package/src/modules/organizations/organizations.client.js +0 -2
  367. package/src/modules/organizations/routes/departments.routes.js +18 -7
  368. package/src/modules/organizations/routes/invites.routes.js +2 -2
  369. package/src/modules/organizations/store/departments.js +22 -1
  370. package/src/modules/organizations/store/invites.js +74 -90
  371. package/src/modules/products/components/blocks/CardProduct.vue +24 -0
  372. package/src/modules/products/components/pages/Products.vue +1 -1
  373. package/src/modules/reports/components/sections/FormReport.vue +40 -40
  374. package/src/modules/spots/components/pages/Spot.vue +1 -1
  375. package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
  376. package/src/modules/users/components/blocks/CardUser.vue +85 -0
  377. package/src/modules/users/controllers/users.controller.js +36 -13
  378. package/src/modules/users/middlewares/visitor.logger.js +66 -0
  379. package/src/modules/users/models/request.model.js +18 -0
  380. package/src/modules/users/models/user.model.js +26 -55
  381. package/src/modules/users/models/visitor.model.js +14 -0
  382. package/src/modules/users/store/users.js +2 -11
  383. package/src/modules/wallet/controllers/routes/payments.routes.js +2 -0
  384. package/src/components/FieldPhone/FieldPhone(script-setup).vue +0 -1646
  385. package/src/components/FieldPhone/FieldPhone2.vue +0 -671
  386. package/src/modules/orders/components/sections/FormClientDetails.vue +0 -61
  387. package/src/modules/organizations/components/blocks/User.vue +0 -69
  388. /package/src/modules/backoffice/components/admin/{User.vue → UserEdit.vue} +0 -0
@@ -1,93 +1,213 @@
1
- import { ref as p, onMounted as $, computed as k, openBlock as a, createBlock as _, Transition as x, withCtx as C, createElementVNode as t, createVNode as f, createElementBlock as r, Fragment as b, renderList as v, createCommentVNode as l, toDisplayString as d } from "vue";
2
- import { useRoute as M, useRouter as I } from "vue-router";
3
- import "../../../../components/Loader/Loader.vue.js";
4
- import "vue-i18n";
5
- import "../../../../components/Field/Field.vue2.js";
6
- import S from "../../../../components/Tab/Tab.vue.js";
7
- import "../../../../components/Tooltip/Tooltip.vue.js";
8
- import z from "../sections/MembersAdd.vue.js";
1
+ import { ref as _, onMounted as N, computed as P, openBlock as r, createElementBlock as o, createVNode as i, withCtx as l, createBlock as d, unref as u, Fragment as b, renderList as h, createCommentVNode as v, createElementVNode as A } from "vue";
2
+ import { useRoute as O, useRouter as D } from "vue-router";
3
+ import g from "../../../../components/Feed/Feed.vue.js";
4
+ import "../../../../components/Tab/Tab.vue.js";
5
+ import F from "../../../../components/Block/Block.vue.js";
6
+ import B from "../../../../components/Popup/Popup.vue2.js";
7
+ import S from "../../../globals/components/sections/SectionPageTitle.vue.js";
8
+ import V from "../sections/MembersAdd.vue.js";
9
9
  import "../../../mobile/components/Menu/Menu.vue.js";
10
10
  import "../../../mobile/components/Menu/MenuItem.vue.js";
11
- import B from "../blocks/User.vue.js";
12
- import { state as E } from "../../../auth/store/auth.js";
13
- import { actions as c, state as h } from "../../store/invites.js";
14
- import { actions as N, state as V } from "../../store/memberships.js";
15
- import { actions as D } from "../../store/organizations.js";
16
- import { state as R } from "../../store/departments.js";
17
- const U = { class: "pd-thin" }, A = /* @__PURE__ */ t("section", { class: "mn-b-medium radius-medium pd-semi bg-grey" }, [
18
- /* @__PURE__ */ t("h2", { class: "mn-b-regular" }, "Members"),
19
- /* @__PURE__ */ t("p", { class: "t-transp p-big" }, "Add new memberships to the group and configure access rights.")
20
- ], -1), F = { class: "mn-b-big radius-medium bg-white" }, L = {
11
+ import w from "../../../users/components/blocks/CardUser.vue.js";
12
+ import E from "../blocks/CardDepartment.vue.js";
13
+ import { state as y } from "../../../auth/store/auth.js";
14
+ import { actions as $, state as R } from "../../store/invites.js";
15
+ import { actions as k, state as U } from "../../store/memberships.js";
16
+ import { actions as L, state as j } from "../../store/organizations.js";
17
+ import { state as q, actions as G } from "../../store/departments.js";
18
+ const H = { class: "pd-thin" }, J = { class: "mn-b-big radius-medium bg-white" }, K = {
21
19
  key: 0,
22
20
  class: "cols-1 gap-thin"
23
- }, P = { key: 1 }, T = { class: "br-grey br-1px br-solid radius-small mn-b-thin flex-nowrap flex-v-center flex pd-medium" }, j = { class: "w-100 mn-r-small" }, q = { class: "t-transp" }, G = { class: "mn-l-medium flex-v-center flex" }, H = ["onClick"], le = {
21
+ }, Q = { key: 1 }, fe = {
24
22
  __name: "Members",
25
- setup(J) {
26
- const u = M();
27
- I();
28
- const o = p(null), m = p("members");
29
- $(async () => {
30
- o.value = (await D.read({ _id: u.params._id, user: E.user._id }))[0], await N.read({ target: u.params._id }), await c.read(o.value._id);
31
- }), k(() => {
32
- const s = R.departments, i = s.flatMap(
33
- (e) => e.subdepartments.map((n) => n._id)
23
+ setup(T) {
24
+ const n = O();
25
+ D();
26
+ const c = _(null), m = _("members"), f = _(!1);
27
+ function C() {
28
+ f.value = !0;
29
+ }
30
+ function M() {
31
+ f.value = !1;
32
+ }
33
+ N(async () => {
34
+ c.value = (await L.read({ _id: n.params._id, user: y.user._id }))[0];
35
+ }), P(() => {
36
+ const a = q.departments, s = a.flatMap(
37
+ (t) => t.subdepartments.map((e) => e._id)
34
38
  );
35
- return s.filter(
36
- (e) => !i.includes(e._id)
39
+ return a.filter(
40
+ (t) => !s.includes(t._id)
37
41
  );
38
42
  });
39
- async function g(s) {
40
- await c.create(o.value._id, s);
43
+ async function x(a) {
44
+ await $.create({
45
+ owner: {
46
+ type: "Organization",
47
+ target: c.value._id
48
+ },
49
+ creator: {
50
+ type: "User",
51
+ target: y.user._id
52
+ },
53
+ invites: a
54
+ });
55
+ }
56
+ async function z(a, s) {
57
+ confirm("Confirm remove of member") == !0 && (U.memberships.splice(a, 1), await k.delete(s._id));
41
58
  }
42
- async function w(s, i) {
43
- h.invites.splice(s, 1), await c.delete(i._id);
59
+ async function I(a, s) {
60
+ confirm("Confirm remove of member") == !0 && (R.invites.splice(a, 1), await $.delete(s._id));
44
61
  }
45
- return (s, i) => (a(), _(x, { name: "slide-fade" }, {
46
- default: C(() => [
47
- t("div", U, [
48
- A,
49
- f(z, {
50
- organization: o.value,
51
- onSendInvite: g
52
- }, null, 8, ["organization"]),
53
- f(S, {
54
- selected: m.value,
55
- "onUpdate:selected": i[0] || (i[0] = (e) => m.value = e),
56
- class: "mn-b-medium bg-grey radius-small",
57
- tabs: [
58
- { name: "Members", value: "members" },
59
- { name: "Invites", value: "invites" }
60
- ]
61
- }, null, 8, ["selected"]),
62
- t("section", F, [
63
- m.value === "members" ? (a(), r("div", L, [
64
- (a(!0), r(b, null, v(V.memberships, (e, n) => (a(), _(B, {
65
- key: n,
62
+ return (a, s) => (r(), o("div", H, [
63
+ i(S, {
64
+ title: "Members",
65
+ "onUpdate:tabs_current": s[0] || (s[0] = (t) => m.value = t),
66
+ tabs_current: m.value,
67
+ tabs: [
68
+ { name: `Members (${j.current.numberOfMembers})`, value: "members" },
69
+ { name: "Departments", value: "departments" },
70
+ { name: "Invites", value: "invites" }
71
+ ],
72
+ actions: [
73
+ { method: C, label: "Invite members" }
74
+ ],
75
+ class: "mn-b-small bg-grey bg-grey radius-big"
76
+ }, null, 8, ["tabs_current", "tabs", "actions"]),
77
+ i(B, {
78
+ title: "Add members",
79
+ onClosePopup: M,
80
+ isPopupOpen: f.value,
81
+ class: "bg-white w-min-30r w-max-30r radius-big pd-medium"
82
+ }, {
83
+ default: l(() => [
84
+ i(V, {
85
+ text: "Please enter your email or phone number to send an invitation link:",
86
+ organization: c.value,
87
+ onSendInvite: x
88
+ }, null, 8, ["organization"])
89
+ ]),
90
+ _: 1
91
+ }, 8, ["isPopupOpen"]),
92
+ m.value === "departments" ? (r(), d(F, {
93
+ key: 0,
94
+ class: "mn-b-semi"
95
+ }, {
96
+ default: l(() => [
97
+ i(g, {
98
+ states: {
99
+ empty: {
100
+ title: "No Departments Found",
101
+ description: "Currently, there are no departments available.",
102
+ action: "Add department",
103
+ callback: () => a.$router.push(`/organizations/${u(n).params._id}/departments/create`)
104
+ }
105
+ },
106
+ store: {
107
+ read: (t) => G.read(t),
108
+ state: null
109
+ },
110
+ options: {
111
+ organization: u(n).params._id,
112
+ user: y.user._id,
113
+ hidden: !1
114
+ }
115
+ }, {
116
+ default: l(({
117
+ items: t
118
+ }) => [
119
+ (r(!0), o(b, null, h(t, (e, p) => (r(), d(E, {
120
+ key: p,
121
+ department: e,
122
+ organization: u(n).params._id,
123
+ class: "radius-big bg-white pos-relative mn-b-thin"
124
+ }, null, 8, ["department", "organization"]))), 128))
125
+ ]),
126
+ _: 1
127
+ }, 8, ["states", "store", "options"])
128
+ ]),
129
+ _: 1
130
+ })) : v("", !0),
131
+ A("section", J, [
132
+ m.value === "members" ? (r(), o("div", K, [
133
+ i(g, {
134
+ search: !0,
135
+ states: {
136
+ empty: {
137
+ title: "No Members Found",
138
+ description: "Currently, there are no members."
139
+ }
140
+ },
141
+ store: {
142
+ read: (t) => k.read(t)
143
+ },
144
+ options: {
145
+ target: u(n).params._id
146
+ },
147
+ class: "gap-thin cols-1"
148
+ }, {
149
+ default: l(({
150
+ items: t
151
+ }) => [
152
+ (r(!0), o(b, null, h(t, (e, p) => (r(), d(w, {
153
+ key: p,
66
154
  user: e,
67
- onClick: (y) => s.$router.push(`/app/profile/${e._id}`),
68
- class: "bg-grey radius-small flex-nowrap flex pd-medium"
69
- }, null, 8, ["user", "onClick"]))), 128))
70
- ])) : l("", !0),
71
- m.value === "invites" ? (a(), r("div", P, [
72
- l("", !0),
73
- (a(!0), r(b, null, v(h.invites, (e, n) => (a(), r("div", T, [
74
- t("span", j, d(e.invitedEmail) + " " + d(e.invitedPhone), 1),
75
- t("span", q, d(e.status), 1),
76
- t("div", G, [
77
- t("button", {
78
- onClick: (y) => w(n, e),
79
- class: "button-small button"
80
- }, "×", 8, H)
81
- ])
82
- ]))), 256))
83
- ])) : l("", !0)
84
- ])
85
- ])
86
- ]),
87
- _: 1
88
- }));
155
+ _id: e.user._id,
156
+ photo: e.user.profile.photo,
157
+ phone: e.user.phone,
158
+ email: e.user.email,
159
+ name: e.user.profile.name || "No name",
160
+ role: e.label || e.role,
161
+ onClick: (W) => a.$router.push(`/profile/${e.user._id}`),
162
+ action: e.role !== "owner" ? {
163
+ label: "x",
164
+ method: () => z(p, e)
165
+ } : null,
166
+ class: "w-100 bg-grey radius-big flex-nowrap flex pd-medium"
167
+ }, null, 8, ["user", "_id", "photo", "phone", "email", "name", "role", "onClick", "action"]))), 128))
168
+ ]),
169
+ _: 1
170
+ }, 8, ["states", "store", "options"])
171
+ ])) : v("", !0),
172
+ m.value === "invites" ? (r(), o("div", Q, [
173
+ i(g, {
174
+ search: !0,
175
+ states: {
176
+ empty: {
177
+ title: "No Invites Found",
178
+ description: "Currently, there are no members."
179
+ }
180
+ },
181
+ store: {
182
+ read: (t) => $.read(t)
183
+ },
184
+ options: {
185
+ owner: u(n).params._id
186
+ },
187
+ class: "gap-thin cols-1"
188
+ }, {
189
+ default: l(({
190
+ items: t
191
+ }) => [
192
+ (r(!0), o(b, null, h(t, (e) => (r(), d(w, {
193
+ key: a.index,
194
+ user: { type: "invite" },
195
+ name: e.email || e.phone,
196
+ role: e.status,
197
+ action: {
198
+ label: "x",
199
+ method: () => I(a.index, e)
200
+ },
201
+ class: "w-100 bg-grey radius-big flex-nowrap flex pd-medium"
202
+ }, null, 8, ["name", "role", "action"]))), 128))
203
+ ]),
204
+ _: 1
205
+ }, 8, ["states", "store", "options"])
206
+ ])) : v("", !0)
207
+ ])
208
+ ]));
89
209
  }
90
210
  };
91
211
  export {
92
- le as default
212
+ fe as default
93
213
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const k=require("../../../../components/Tab/Tab.vue.cjs"),p=require("../../../../components/Block/Block.vue.cjs"),f=require("../../../../components/Feed/Feed.vue.cjs");require("../../../mobile/components/Menu/Menu.vue.cjs");require("../../../mobile/components/Menu/MenuItem.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/User.vue2.cjs");const h=require("../blocks/CardDepartment.vue.cjs"),v=require("../../../events/components/sections/Feed.vue.cjs"),g=require("../../../community/components/sections/Feed.vue.cjs"),q=require("../../../spots/components/blocks/CardSpot.vue.cjs"),w=require("../sections/DetailsTab.vue.cjs"),C=require("../../../products/components/pages/Products.vue.cjs"),s=require("../../../auth/store/auth.cjs"),o=require("../../store/organizations.cjs"),y=require("../../store/memberships.cjs"),B=require("../../store/departments.cjs"),N=require("../../../spots/store/spots.cjs");require("./Organization.vue2.cjs");const V={key:0,class:"pd-thin for-transition w-100"},x={class:"pos-relative"},z={key:0},T={__name:"Organization",setup($){const _=m.useRouter(),t=m.useRoute();let b=t.query.tab?t.query.tab:"products";const c=e.ref(null);e.onMounted(async()=>{c.value=await o.actions.read({_id:t.params._id,user:s.state.user._id}),await y.actions.read(t.params._id)});const r=e.ref(b);return t.query.tab=r.value,e.watch(r,i=>{_.replace({query:null})}),(i,n)=>{const u=e.resolveComponent("router-link");return c.value?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(w.default,{organization:o.state.current,user:s.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(p.default,{title:`${o.state.current.numberOfMembers} members`,actions:[{label:">",function:()=>i.$router.push(`/organizations/${e.unref(t).params._id}/departments/create`)}],class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(f.default,{states:{empty:{title:"No Departments Found",description:"Currently, there are no departments available."}},store:{read:a=>B.actions.read(a),state:null},options:{organization:e.unref(t).params._id,user:s.state.user._id,hidden:!1}},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(l,d)=>(e.openBlock(),e.createBlock(h.default,{key:d,department:l,organization:e.unref(t).params._id,class:"radius-big bg-white pos-relative mn-b-thin"},null,8,["department","organization"]))),128))]),_:1},8,["states","store","options"])]),_:1},8,["title","actions"]),e.createVNode(k.default,{selected:r.value,"onUpdate:selected":n[0]||(n[0]=a=>r.value=a),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("div",x,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="community"?(e.openBlock(),e.createBlock(g.default,{key:0,user:s.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="events"?(e.openBlock(),e.createBlock(v.default,{key:0,user:s.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner","sortParam"])):e.createCommentVNode("",!0)]),_:1}),r.value==="products"&&s.state.user._id===o.state.current.owner?(e.openBlock(),e.createBlock(p.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(u,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(u,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(u,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="products"?(e.openBlock(),e.createBlock(C.default,{key:0,organization:o.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="spots"?(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(f.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:a=>N.actions.read(e.unref(t).params._id),state:o.state},options:{user:s.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(l,d)=>(e.openBlock(),e.createBlock(q.default,{key:d,spot:l,organization:o.state.current,class:"radius-big bg-grey mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["states","store","options"]),s.state.user._id===o.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=a=>i.$router.push(`/spots/${o.state.current._id}/spots/create`)),class:"mn-b-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=T;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const f=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Block/Block.vue.cjs"),b=require("../../../../components/Feed/Feed.vue.cjs");require("../../../mobile/components/Menu/Menu.vue.cjs");require("../../../mobile/components/Menu/MenuItem.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");const v=require("../../../events/components/sections/Feed.vue.cjs"),h=require("../../../community/components/sections/Feed.vue.cjs"),q=require("../../../spots/components/blocks/CardSpot.vue.cjs"),g=require("../sections/DetailsTab.vue.cjs"),w=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/store/auth.cjs"),a=require("../../store/organizations.cjs"),y=require("../../store/memberships.cjs");require("../../store/departments.cjs");const C=require("../../../spots/store/spots.cjs");require("./Organization.vue2.cjs");const N={key:0,class:"pd-thin for-transition w-100"},V={class:"pos-relative"},B={key:0},x={__name:"Organization",setup(z){const c=d.useRouter(),t=d.useRoute();let m=t.query.tab?t.query.tab:"products";const i=e.ref(null);e.onMounted(async()=>{i.value=await a.actions.read({_id:t.params._id,user:o.state.user._id}),await y.actions.read(t.params._id)});const r=e.ref(m);return t.query.tab=r.value,e.watch(r,l=>{c.replace({query:null})}),(l,n)=>{const u=e.resolveComponent("router-link");return i.value?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(g.default,{organization:a.state.current,user:o.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(f.default,{selected:r.value,"onUpdate:selected":n[0]||(n[0]=s=>r.value=s),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("div",V,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="community"?(e.openBlock(),e.createBlock(h.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="events"?(e.openBlock(),e.createBlock(v.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner","sortParam"])):e.createCommentVNode("",!0)]),_:1}),r.value==="products"&&o.state.user._id===a.state.current.owner?(e.openBlock(),e.createBlock(k.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(u,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(u,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(u,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="products"?(e.openBlock(),e.createBlock(w.default,{key:0,organization:a.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="spots"?(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(b.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:s=>C.actions.read(e.unref(t).params._id),state:a.state},options:{user:o.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,(p,_)=>(e.openBlock(),e.createBlock(q.default,{key:_,spot:p,organization:a.state.current,class:"radius-big bg-grey mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["states","store","options"]),o.state.user._id===a.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=s=>l.$router.push(`/spots/${a.state.current._id}/spots/create`)),class:"mn-b-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=x;
@@ -1,97 +1,54 @@
1
- import { ref as h, onMounted as N, watch as B, resolveComponent as O, openBlock as r, createElementBlock as d, createVNode as t, unref as n, withCtx as a, Fragment as k, renderList as w, createBlock as l, createElementVNode as V, Transition as c, createCommentVNode as m, createTextVNode as g } from "vue";
2
- import { useRouter as q, useRoute as M } from "vue-router";
1
+ import { ref as g, onMounted as $, watch as z, resolveComponent as x, openBlock as a, createElementBlock as p, createVNode as t, createElementVNode as C, Transition as c, withCtx as o, createBlock as d, unref as u, createCommentVNode as s, createTextVNode as f, Fragment as B, renderList as N } from "vue";
2
+ import { useRouter as V, useRoute as q } from "vue-router";
3
3
  import "vue-i18n";
4
4
  import "../../../globals/localization/vue-i18n.js";
5
5
  import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
6
- import P from "../../../../components/Tab/Tab.vue.js";
7
- import $ from "../../../../components/Block/Block.vue.js";
8
- import z from "../../../../components/Feed/Feed.vue.js";
6
+ import O from "../../../../components/Tab/Tab.vue2.js";
7
+ import P from "../../../../components/Block/Block.vue.js";
8
+ import A from "../../../../components/Feed/Feed.vue.js";
9
9
  import "../../../mobile/components/Menu/Menu.vue.js";
10
10
  import "../../../mobile/components/Menu/MenuItem.vue.js";
11
11
  import "../blocks/DepartmentSub.vue2.js";
12
- import "../blocks/User.vue2.js";
13
- import A from "../blocks/CardDepartment.vue.js";
14
- import D from "../../../events/components/sections/Feed.vue.js";
15
- import E from "../../../community/components/sections/Feed.vue.js";
16
- import F from "../../../spots/components/blocks/CardSpot.vue.js";
17
- import S from "../sections/DetailsTab.vue.js";
12
+ import E from "../../../events/components/sections/Feed.vue.js";
13
+ import M from "../../../community/components/sections/Feed.vue.js";
14
+ import S from "../../../spots/components/blocks/CardSpot.vue.js";
15
+ import F from "../sections/DetailsTab.vue.js";
18
16
  import L from "../../../products/components/pages/Products.vue.js";
19
- import { state as i } from "../../../auth/store/auth.js";
20
- import { actions as R, state as u } from "../../store/organizations.js";
17
+ import { state as n } from "../../../auth/store/auth.js";
18
+ import { actions as R, state as i } from "../../store/organizations.js";
21
19
  import { actions as T } from "../../store/memberships.js";
22
- import { actions as G } from "../../store/departments.js";
23
- import { actions as I } from "../../../spots/store/spots.js";
20
+ import "../../store/departments.js";
21
+ import { actions as D } from "../../../spots/store/spots.js";
24
22
  import "./Organization.vue2.js";
25
- const U = {
23
+ const G = {
26
24
  key: 0,
27
25
  class: "pd-thin for-transition w-100"
28
- }, j = { class: "pos-relative" }, H = { key: 0 }, ge = {
26
+ }, I = { class: "pos-relative" }, U = { key: 0 }, _e = {
29
27
  __name: "Organization",
30
- setup(J) {
31
- const C = q(), e = M();
32
- let x = e.query.tab ? e.query.tab : "products";
33
- const y = h(null);
34
- N(async () => {
35
- y.value = await R.read({
28
+ setup(j) {
29
+ const y = V(), e = q();
30
+ let k = e.query.tab ? e.query.tab : "products";
31
+ const v = g(null);
32
+ $(async () => {
33
+ v.value = await R.read({
36
34
  _id: e.params._id,
37
- user: i.user._id
35
+ user: n.user._id
38
36
  }), await T.read(e.params._id);
39
37
  });
40
- const o = h(x);
41
- return e.query.tab = o.value, B(o, (_) => {
42
- C.replace({ query: null });
43
- }), (_, p) => {
44
- const f = O("router-link");
45
- return y.value ? (r(), d("div", U, [
46
- t(S, {
47
- organization: u.current,
48
- user: i.user,
38
+ const r = g(k);
39
+ return e.query.tab = r.value, z(r, (b) => {
40
+ y.replace({ query: null });
41
+ }), (b, l) => {
42
+ const _ = x("router-link");
43
+ return v.value ? (a(), p("div", G, [
44
+ t(F, {
45
+ organization: i.current,
46
+ user: n.user,
49
47
  class: "mn-b-semi"
50
48
  }, null, 8, ["organization", "user"]),
51
- t($, {
52
- title: `${u.current.numberOfMembers} members`,
53
- actions: [{
54
- label: ">",
55
- function: () => _.$router.push(`/organizations/${n(e).params._id}/departments/create`)
56
- }],
57
- class: "mn-b-semi"
58
- }, {
59
- default: a(() => [
60
- t(z, {
61
- states: {
62
- empty: {
63
- title: "No Departments Found",
64
- description: "Currently, there are no departments available."
65
- }
66
- },
67
- store: {
68
- read: (s) => G.read(s),
69
- state: null
70
- },
71
- options: {
72
- organization: n(e).params._id,
73
- user: i.user._id,
74
- hidden: !1
75
- }
76
- }, {
77
- default: a(({
78
- items: s
79
- }) => [
80
- (r(!0), d(k, null, w(s, (b, v) => (r(), l(A, {
81
- key: v,
82
- department: b,
83
- organization: n(e).params._id,
84
- class: "radius-big bg-white pos-relative mn-b-thin"
85
- }, null, 8, ["department", "organization"]))), 128))
86
- ]),
87
- _: 1
88
- }, 8, ["states", "store", "options"])
89
- ]),
90
- _: 1
91
- }, 8, ["title", "actions"]),
92
- t(P, {
93
- selected: o.value,
94
- "onUpdate:selected": p[0] || (p[0] = (s) => o.value = s),
49
+ t(O, {
50
+ selected: r.value,
51
+ "onUpdate:selected": l[0] || (l[0] = (m) => r.value = m),
95
52
  tabs: [
96
53
  { name: "Community", value: "community" },
97
54
  { name: "Menu", value: "products" },
@@ -100,92 +57,92 @@ const U = {
100
57
  ],
101
58
  class: "mn-b-small o-hidden h5 radius-big bg-grey"
102
59
  }, null, 8, ["selected"]),
103
- V("div", j, [
60
+ C("div", I, [
104
61
  t(c, { name: "slide-fade" }, {
105
- default: a(() => [
106
- o.value === "community" ? (r(), l(E, {
62
+ default: o(() => [
63
+ r.value === "community" ? (a(), d(M, {
107
64
  key: 0,
108
- user: i.user._id,
109
- owner: n(e).params._id
110
- }, null, 8, ["user", "owner"])) : m("", !0)
65
+ user: n.user._id,
66
+ owner: u(e).params._id
67
+ }, null, 8, ["user", "owner"])) : s("", !0)
111
68
  ]),
112
69
  _: 1
113
70
  }),
114
71
  t(c, { name: "slide-fade" }, {
115
- default: a(() => [
116
- o.value === "events" ? (r(), l(D, {
72
+ default: o(() => [
73
+ r.value === "events" ? (a(), d(E, {
117
74
  key: 0,
118
- user: i.user._id,
119
- owner: n(e).params._id,
75
+ user: n.user._id,
76
+ owner: u(e).params._id,
120
77
  sortOrder: "desc",
121
78
  sortParam: "date.start"
122
- }, null, 8, ["user", "owner", "sortParam"])) : m("", !0)
79
+ }, null, 8, ["user", "owner", "sortParam"])) : s("", !0)
123
80
  ]),
124
81
  _: 1
125
82
  }),
126
- o.value === "products" && i.user._id === u.current.owner ? (r(), l($, {
83
+ r.value === "products" && n.user._id === i.current.owner ? (a(), d(P, {
127
84
  key: 0,
128
85
  class: "flex-nowrap gap-thin mn-b-small flex"
129
86
  }, {
130
- default: a(() => [
131
- t(f, {
87
+ default: o(() => [
88
+ t(_, {
132
89
  class: "bg-black t-white uppercase t-semi pd-thin radius-extra",
133
90
  to: {
134
91
  name: "ProductAdd",
135
92
  params: {
136
- _id: n(e).params._id
93
+ _id: u(e).params._id
137
94
  }
138
95
  }
139
96
  }, {
140
- default: a(() => [
141
- g(" Add Product ")
97
+ default: o(() => [
98
+ f(" Add Product ")
142
99
  ]),
143
100
  _: 1
144
101
  }, 8, ["to"]),
145
- t(f, {
102
+ t(_, {
146
103
  class: "uppercase t-semi pd-thin radius-extra",
147
104
  to: {
148
105
  name: "Leftovers",
149
106
  params: {
150
- _id: n(e).params._id
107
+ _id: u(e).params._id
151
108
  }
152
109
  }
153
110
  }, {
154
- default: a(() => [
155
- g(" Change Invetory ")
111
+ default: o(() => [
112
+ f(" Change Invetory ")
156
113
  ]),
157
114
  _: 1
158
115
  }, 8, ["to"]),
159
- t(f, {
116
+ t(_, {
160
117
  class: "d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",
161
118
  to: {
162
119
  name: "Backoffice",
163
120
  params: {
164
- _id: n(e).params._id
121
+ _id: u(e).params._id
165
122
  }
166
123
  }
167
124
  }, {
168
- default: a(() => [
169
- g(" Go to Backoffice ")
125
+ default: o(() => [
126
+ f(" Go to Backoffice ")
170
127
  ]),
171
128
  _: 1
172
129
  }, 8, ["to"])
173
130
  ]),
174
131
  _: 1
175
- })) : m("", !0),
132
+ })) : s("", !0),
176
133
  t(c, { name: "slide-fade" }, {
177
- default: a(() => [
178
- o.value === "products" ? (r(), l(L, {
134
+ default: o(() => [
135
+ r.value === "products" ? (a(), d(L, {
179
136
  key: 0,
180
- organization: u.current
181
- }, null, 8, ["organization"])) : m("", !0)
137
+ organization: i.current
138
+ }, null, 8, ["organization"])) : s("", !0)
182
139
  ]),
183
140
  _: 1
184
141
  }),
185
142
  t(c, { name: "slide-fade" }, {
186
- default: a(() => [
187
- o.value === "spots" ? (r(), d("div", H, [
188
- t(z, {
143
+ default: o(() => [
144
+ r.value === "spots" ? (a(), p("div", U, [
145
+ t(A, {
189
146
  states: {
190
147
  empty: {
191
148
  title: "No Spots Found",
@@ -193,42 +150,42 @@ const U = {
193
150
  }
194
151
  },
195
152
  store: {
196
- read: (s) => I.read(n(e).params._id),
197
- state: u
153
+ read: (m) => D.read(u(e).params._id),
154
+ state: i
198
155
  },
199
156
  options: {
200
- user: i.user._id,
157
+ user: n.user._id,
201
158
  sort: "numberOfMemberships",
202
159
  contain: ["blogposts"],
203
160
  limit: 10
204
161
  }
205
162
  }, {
206
- default: a(({
207
- items: s
163
+ default: o(({
164
+ items: m
208
165
  }) => [
209
- (r(!0), d(k, null, w(s, (b, v) => (r(), l(F, {
210
- key: v,
211
- spot: b,
212
- organization: u.current,
166
+ (a(!0), p(B, null, N(m, (h, w) => (a(), d(S, {
167
+ key: w,
168
+ spot: h,
169
+ organization: i.current,
213
170
  class: "radius-big bg-grey mn-b-thin"
214
171
  }, null, 8, ["spot", "organization"]))), 128))
215
172
  ]),
216
173
  _: 1
217
174
  }, 8, ["states", "store", "options"]),
218
- i.user._id === u.current.owner ? (r(), d("button", {
175
+ n.user._id === i.current.owner ? (a(), p("button", {
219
176
  key: 0,
220
- onClick: p[1] || (p[1] = (s) => _.$router.push(`/spots/${u.current._id}/spots/create`)),
177
+ onClick: l[1] || (l[1] = (m) => b.$router.push(`/spots/${i.current._id}/spots/create`)),
221
178
  class: "mn-b-thin button w-100"
222
- }, " Add spot ")) : m("", !0)
223
- ])) : m("", !0)
179
+ }, " Add spot ")) : s("", !0)
180
+ ])) : s("", !0)
224
181
  ]),
225
182
  _: 1
226
183
  })
227
184
  ])
228
- ])) : m("", !0);
185
+ ])) : s("", !0);
229
186
  };
230
187
  }
231
188
  };
232
189
  export {
233
- ge as default
190
+ _e as default
234
191
  };