@ozdao/martyrs 0.2.519 → 0.2.520

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/dist/chats.server.cjs +198 -1
  2. package/dist/chats.server.js +198 -1
  3. package/dist/{main-Wr1_4rwl.cjs → main-BM3GslOO.cjs} +6 -6
  4. package/dist/{main-DgGUrhjT.js → main-Qcn7YlTx.js} +1832 -1828
  5. package/dist/martyrs/src/components/Address/{Address.vue2.cjs → Address.vue.cjs} +2 -2
  6. package/dist/martyrs/src/components/Address/{Address.vue2.js.map → Address.vue.cjs.map} +1 -1
  7. package/dist/martyrs/src/components/Address/{Address.vue2.js → Address.vue.js} +2 -2
  8. package/dist/martyrs/src/components/Address/Address.vue.js.map +1 -0
  9. package/dist/martyrs/src/components/Feed/Feed.vue.cjs +0 -1
  10. package/dist/martyrs/src/components/Feed/Feed.vue.cjs.map +1 -1
  11. package/dist/martyrs/src/components/Feed/Feed.vue.js +0 -1
  12. package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
  13. package/dist/martyrs/src/components/LocationMarker/{LocationMarker.vue2.cjs → LocationMarker.vue.cjs} +2 -2
  14. package/dist/martyrs/src/components/LocationMarker/{LocationMarker.vue2.js.map → LocationMarker.vue.cjs.map} +1 -1
  15. package/dist/martyrs/src/components/LocationMarker/{LocationMarker.vue2.js → LocationMarker.vue.js} +2 -2
  16. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue.js.map +1 -0
  17. package/dist/martyrs/src/components/Select/{Select.vue2.cjs → Select.vue.cjs} +2 -2
  18. package/dist/martyrs/src/components/Select/{Select.vue2.js.map → Select.vue.cjs.map} +1 -1
  19. package/dist/martyrs/src/components/Select/{Select.vue2.js → Select.vue.js} +2 -2
  20. package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -0
  21. package/dist/martyrs/src/modules/auth/views/components/blocks/CardUser.vue.cjs +2 -2
  22. package/dist/martyrs/src/modules/auth/views/components/blocks/CardUser.vue.js +2 -2
  23. package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -1
  24. package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs.map +1 -1
  25. package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +1 -1
  26. package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js.map +1 -1
  27. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +2 -2
  28. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs.map +1 -1
  29. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +4 -4
  30. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js.map +1 -1
  31. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +40 -50
  32. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -1
  33. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +59 -69
  34. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
  35. package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs +11 -13
  36. package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs.map +1 -1
  37. package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js +11 -13
  38. package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js.map +1 -1
  39. package/dist/martyrs/src/modules/auth/views/store/auth.cjs +9 -0
  40. package/dist/martyrs/src/modules/auth/views/store/auth.cjs.map +1 -1
  41. package/dist/martyrs/src/modules/auth/views/store/auth.js +9 -0
  42. package/dist/martyrs/src/modules/auth/views/store/auth.js.map +1 -1
  43. package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.cjs +27 -11
  44. package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.cjs.map +1 -1
  45. package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js +28 -12
  46. package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js.map +1 -1
  47. package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.cjs +62 -0
  48. package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.cjs.map +1 -1
  49. package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.js +63 -1
  50. package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.js.map +1 -1
  51. package/dist/martyrs/src/modules/chats/store/chat.store.cjs +60 -1
  52. package/dist/martyrs/src/modules/chats/store/chat.store.cjs.map +1 -1
  53. package/dist/martyrs/src/modules/chats/store/chat.store.js +60 -1
  54. package/dist/martyrs/src/modules/chats/store/chat.store.js.map +1 -1
  55. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs +3 -3
  56. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs.map +1 -1
  57. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +3 -3
  58. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js.map +1 -1
  59. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  60. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +1 -1
  61. package/dist/martyrs/src/modules/community/components/pages/Posts.vue.cjs +50 -368
  62. package/dist/martyrs/src/modules/community/components/pages/Posts.vue.cjs.map +1 -1
  63. package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js +53 -371
  64. package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js.map +1 -1
  65. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  66. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs.map +1 -1
  67. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  68. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js.map +1 -1
  69. package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +0 -1
  70. package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
  71. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +0 -1
  72. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
  73. package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs +2 -2
  74. package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs.map +1 -1
  75. package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +2 -2
  76. package/dist/martyrs/src/modules/events/components/pages/Events.vue.js.map +1 -1
  77. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  78. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  79. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
  80. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
  81. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
  82. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +1 -1
  83. package/dist/martyrs/src/modules/globals/views/components/partials/LocationSelection.vue.cjs +2 -2
  84. package/dist/martyrs/src/modules/globals/views/components/partials/LocationSelection.vue.js +2 -2
  85. package/dist/martyrs/src/modules/globals/views/components/sections/Walkthrough.vue.cjs +1 -1
  86. package/dist/martyrs/src/modules/globals/views/mixins/mixins.cjs +7 -0
  87. package/dist/martyrs/src/modules/globals/views/mixins/mixins.cjs.map +1 -1
  88. package/dist/martyrs/src/modules/globals/views/mixins/mixins.js +7 -0
  89. package/dist/martyrs/src/modules/globals/views/mixins/mixins.js.map +1 -1
  90. package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs +1 -1
  91. package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.cjs +1 -1
  92. package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +1 -1
  93. package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.cjs +1 -1
  94. package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +1 -1
  95. package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.cjs +1 -1
  96. package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +1 -1
  97. package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs +180 -19
  98. package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs.map +1 -1
  99. package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js +181 -20
  100. package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js.map +1 -1
  101. package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.cjs +1 -1
  102. package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +1 -1
  103. package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.cjs +1 -1
  104. package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +1 -1
  105. package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.cjs +1 -1
  106. package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +1 -1
  107. package/dist/martyrs/src/modules/music/router/music.cjs +0 -1
  108. package/dist/martyrs/src/modules/music/router/music.cjs.map +1 -1
  109. package/dist/martyrs/src/modules/music/router/music.js +0 -1
  110. package/dist/martyrs/src/modules/music/router/music.js.map +1 -1
  111. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.cjs +2 -2
  112. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.cjs.map +1 -1
  113. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js +2 -2
  114. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js.map +1 -1
  115. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.cjs +1 -1
  116. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +1 -1
  117. package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.cjs +1 -1
  118. package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +1 -1
  119. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  120. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  121. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +2 -3
  122. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs.map +1 -1
  123. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -3
  124. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js.map +1 -1
  125. package/dist/martyrs/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  126. package/dist/martyrs/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  127. package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +2 -24
  128. package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.cjs.map +1 -1
  129. package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js +5 -27
  130. package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js.map +1 -1
  131. package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.cjs +4 -1
  132. package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.cjs.map +1 -1
  133. package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.js +4 -1
  134. package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.js.map +1 -1
  135. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +3 -3
  136. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs.map +1 -1
  137. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +3 -3
  138. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js.map +1 -1
  139. package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.cjs +195 -0
  140. package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.cjs.map +1 -0
  141. package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js +195 -0
  142. package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js.map +1 -0
  143. package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.cjs +402 -0
  144. package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.cjs.map +1 -0
  145. package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js +402 -0
  146. package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js.map +1 -0
  147. package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.cjs +86 -0
  148. package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.cjs.map +1 -0
  149. package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js +86 -0
  150. package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js.map +1 -0
  151. package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.cjs +10 -10
  152. package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.cjs.map +1 -1
  153. package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js +11 -11
  154. package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
  155. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +279 -191
  156. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs.map +1 -1
  157. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +285 -197
  158. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
  159. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +5 -5
  160. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
  161. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +5 -5
  162. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
  163. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
  164. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs.map +1 -1
  165. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  166. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js.map +1 -1
  167. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  168. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs.map +1 -1
  169. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  170. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js.map +1 -1
  171. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  172. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  173. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
  174. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs.map +1 -1
  175. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  176. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js.map +1 -1
  177. package/dist/martyrs/src/modules/organizations/components/sections/Publics.vue.cjs +4 -4
  178. package/dist/martyrs/src/modules/organizations/components/sections/Publics.vue.cjs.map +1 -1
  179. package/dist/martyrs/src/modules/organizations/components/sections/Publics.vue.js +4 -4
  180. package/dist/martyrs/src/modules/organizations/components/sections/Publics.vue.js.map +1 -1
  181. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs +42 -41
  182. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs.map +1 -1
  183. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js +53 -52
  184. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
  185. package/dist/martyrs/src/modules/organizations/organizations.client.cjs +23 -16
  186. package/dist/martyrs/src/modules/organizations/organizations.client.cjs.map +1 -1
  187. package/dist/martyrs/src/modules/organizations/organizations.client.js +35 -28
  188. package/dist/martyrs/src/modules/organizations/organizations.client.js.map +1 -1
  189. package/dist/martyrs/src/modules/organizations/router/departments.router.cjs +0 -18
  190. package/dist/martyrs/src/modules/organizations/router/departments.router.cjs.map +1 -1
  191. package/dist/martyrs/src/modules/organizations/router/departments.router.js +0 -18
  192. package/dist/martyrs/src/modules/organizations/router/departments.router.js.map +1 -1
  193. package/dist/martyrs/src/modules/organizations/store/departments.store.cjs +6 -0
  194. package/dist/martyrs/src/modules/organizations/store/departments.store.cjs.map +1 -0
  195. package/dist/martyrs/src/modules/organizations/store/departments.store.js +6 -0
  196. package/dist/martyrs/src/modules/organizations/store/departments.store.js.map +1 -0
  197. package/dist/martyrs/src/modules/organizations/store/invites.store.cjs +6 -0
  198. package/dist/martyrs/src/modules/organizations/store/invites.store.cjs.map +1 -0
  199. package/dist/martyrs/src/modules/organizations/store/invites.store.js +6 -0
  200. package/dist/martyrs/src/modules/organizations/store/invites.store.js.map +1 -0
  201. package/dist/martyrs/src/modules/organizations/store/memberships.store.cjs +20 -0
  202. package/dist/martyrs/src/modules/organizations/store/memberships.store.cjs.map +1 -0
  203. package/dist/martyrs/src/modules/organizations/store/memberships.store.js +20 -0
  204. package/dist/martyrs/src/modules/organizations/store/memberships.store.js.map +1 -0
  205. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -3
  206. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs.map +1 -1
  207. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +2 -3
  208. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js.map +1 -1
  209. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  210. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  211. package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +1 -1
  212. package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
  213. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +1 -1
  214. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
  215. package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.cjs +1 -1
  216. package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +1 -1
  217. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +1 -1
  218. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +1 -1
  219. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  220. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  221. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs +2 -2
  222. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs.map +1 -1
  223. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +2 -2
  224. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js.map +1 -1
  225. package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  226. package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  227. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
  228. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
  229. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.cjs +60 -272
  230. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.cjs.map +1 -1
  231. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js +62 -274
  232. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js.map +1 -1
  233. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +1 -1
  234. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +1 -1
  235. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  236. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
  237. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +2 -2
  238. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
  239. package/dist/martyrs.cjs.js +1 -1
  240. package/dist/martyrs.css +1 -1
  241. package/dist/martyrs.es.js +1 -1
  242. package/dist/notifications.server.cjs +0 -24
  243. package/dist/notifications.server.js +0 -24
  244. package/dist/orders.server.cjs +1 -4
  245. package/dist/orders.server.js +1 -4
  246. package/dist/organizations.server.cjs +115 -39
  247. package/dist/organizations.server.js +115 -39
  248. package/dist/style.css +9 -9
  249. package/dist/{web-42I-Howt.cjs → web-B0cfxzgu.cjs} +1 -1
  250. package/dist/{web-ByhZ_fIu.js → web-DVR8m2fm.js} +1 -1
  251. package/package.json +1 -1
  252. package/src/components/Feed/Feed.old.vue +0 -1
  253. package/src/components/Feed/Feed.vue +0 -30
  254. package/src/modules/auth/FIXES.md +2 -26
  255. package/src/modules/auth/views/components/blocks/CardUser.vue +2 -2
  256. package/src/modules/auth/views/components/layouts/Auth.vue +1 -1
  257. package/src/modules/auth/views/components/pages/Invite.vue +2 -2
  258. package/src/modules/auth/views/components/pages/Profile.vue +33 -48
  259. package/src/modules/auth/views/components/sections/SliderFeatures.vue +5 -7
  260. package/src/modules/auth/views/store/auth.js +15 -0
  261. package/src/modules/chats/CLAUDE.md +137 -0
  262. package/src/modules/chats/components/blocks/ChatMessage.vue +12 -0
  263. package/src/modules/chats/components/sections/ChatWindow.vue +84 -2
  264. package/src/modules/chats/controllers/chats.controller.js +187 -0
  265. package/src/modules/chats/models/chat.model.js +21 -0
  266. package/src/modules/chats/routes/chats.routes.js +46 -0
  267. package/src/modules/chats/store/chat.store.js +67 -0
  268. package/src/modules/community/components/layouts/Community.vue +2 -2
  269. package/src/modules/community/components/pages/Posts.vue +3 -328
  270. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  271. package/src/modules/events/components/pages/Events.vue +2 -2
  272. package/src/modules/globals/views/mixins/mixins.js +7 -0
  273. package/src/modules/marketplace/views/components/layouts/Marketplace.vue +160 -8
  274. package/src/modules/notifications/controllers/notifications.controller.js +0 -6
  275. package/src/modules/notifications/services/notification.service.js +1 -17
  276. package/src/modules/notifications/services/web-push.service.js +0 -2
  277. package/src/modules/orders/components/blocks/CardOrderBackoffice.vue +2 -2
  278. package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
  279. package/src/modules/orders/controllers/orders.controller.js +2 -4
  280. package/src/modules/organizations/CLAUDE.md +259 -0
  281. package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -22
  282. package/src/modules/organizations/components/blocks/Socials.vue +1 -1
  283. package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +3 -3
  284. package/src/modules/organizations/components/forms/AddExistingMembersForm.vue +191 -0
  285. package/src/modules/organizations/components/forms/DepartmentForm.vue +390 -0
  286. package/src/modules/organizations/components/forms/InviteForm.vue +81 -0
  287. package/src/modules/organizations/components/pages/Department.vue +10 -10
  288. package/src/modules/organizations/components/pages/DepartmentEdit.vue +8 -8
  289. package/src/modules/organizations/components/pages/Members.vue +265 -171
  290. package/src/modules/organizations/components/pages/Organization.new.vue +172 -183
  291. package/src/modules/organizations/components/pages/Organization.vue +6 -6
  292. package/src/modules/organizations/components/pages/OrganizationEdit.vue +1 -1
  293. package/src/modules/organizations/components/pages/Organizations.vue +1 -1
  294. package/src/modules/organizations/components/sections/Organizations.vue +2 -2
  295. package/src/modules/organizations/components/sections/Publics.vue +4 -4
  296. package/src/modules/organizations/configs/navigation.organization.config.js +40 -39
  297. package/src/modules/organizations/controllers/departments.controller.js +53 -34
  298. package/src/modules/organizations/controllers/invites.controller.js +44 -5
  299. package/src/modules/organizations/controllers/memberships.controller.js +43 -4
  300. package/src/modules/organizations/organizations.client.js +24 -15
  301. package/src/modules/organizations/router/departments.router.js +0 -18
  302. package/src/modules/organizations/routes/departments.routes.js +6 -8
  303. package/src/modules/organizations/routes/invites.routes.js +6 -4
  304. package/src/modules/organizations/routes/memberships.routes.js +6 -5
  305. package/src/modules/organizations/store/departments.store.js +5 -0
  306. package/src/modules/organizations/store/invites.store.js +5 -0
  307. package/src/modules/organizations/store/memberships.store.js +23 -0
  308. package/src/modules/products/components/pages/Products.vue +0 -1
  309. package/src/modules/spots/components/blocks/CardSpot.vue +1 -1
  310. package/src/modules/spots/components/pages/Spots.vue +3 -203
  311. package/src/styles/base/all.scss +0 -15
  312. package/src/styles/typography.scss +20 -5
  313. package/dist/martyrs/src/components/Address/Address.vue2.cjs.map +0 -1
  314. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.cjs.map +0 -1
  315. package/dist/martyrs/src/components/Select/Select.vue2.cjs.map +0 -1
  316. package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +0 -76
  317. package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs.map +0 -1
  318. package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.js +0 -76
  319. package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.js.map +0 -1
  320. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +0 -280
  321. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +0 -1
  322. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +0 -280
  323. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +0 -1
  324. package/dist/martyrs/src/modules/organizations/store/departments.cjs +0 -121
  325. package/dist/martyrs/src/modules/organizations/store/departments.cjs.map +0 -1
  326. package/dist/martyrs/src/modules/organizations/store/departments.js +0 -121
  327. package/dist/martyrs/src/modules/organizations/store/departments.js.map +0 -1
  328. package/dist/martyrs/src/modules/organizations/store/invites.cjs +0 -64
  329. package/dist/martyrs/src/modules/organizations/store/invites.cjs.map +0 -1
  330. package/dist/martyrs/src/modules/organizations/store/invites.js +0 -64
  331. package/dist/martyrs/src/modules/organizations/store/invites.js.map +0 -1
  332. package/dist/martyrs/src/modules/organizations/store/memberships.cjs +0 -87
  333. package/dist/martyrs/src/modules/organizations/store/memberships.cjs.map +0 -1
  334. package/dist/martyrs/src/modules/organizations/store/memberships.js +0 -87
  335. package/dist/martyrs/src/modules/organizations/store/memberships.js.map +0 -1
  336. package/src/CLAUDE.MD +0 -15
  337. package/src/modules/globals/controllers/classes/globals.websocket.ws.js +0 -102
  338. package/src/modules/globals/views/components/blocks/BlockFilter.vue +0 -60
  339. package/src/modules/organizations/store/departments.js +0 -137
  340. package/src/modules/organizations/store/invites.js +0 -76
  341. package/src/modules/organizations/store/memberships.js +0 -110
@@ -5,6 +5,7 @@ const state = reactive({
5
5
  messages: [],
6
6
  currentChatId: null,
7
7
  username: null,
8
+ userId: null,
8
9
  });
9
10
 
10
11
  const methods = {
@@ -15,6 +16,7 @@ const methods = {
15
16
  async connectWebSocket(userId) {
16
17
  try {
17
18
  console.log('[Chat] Connecting to WebSocket with userId:', userId);
19
+ state.userId = userId; // Сохраняем userId
18
20
  await globalWebSocket.connect(userId);
19
21
  await globalWebSocket.subscribeModule('chat'); // 👈 Подписка на модуль чата
20
22
 
@@ -31,6 +33,35 @@ const methods = {
31
33
  },
32
34
  { module: 'chat' }
33
35
  );
36
+
37
+ // Обработчик подтверждения прочтения
38
+ globalWebSocket.addEventListener(
39
+ 'readReceipt',
40
+ data => {
41
+ console.log('[CHAT STORE] Received readReceipt:', data);
42
+
43
+ // Обновляем статус прочтения для сообщений
44
+ if (data.messageIds && data.userId) {
45
+ data.messageIds.forEach(messageId => {
46
+ const message = state.messages.find(m => m._id === messageId);
47
+ if (message) {
48
+ if (!message.readBy) {
49
+ message.readBy = [];
50
+ }
51
+ // Добавляем запись о прочтении если её еще нет
52
+ if (!message.readBy.some(r => r.userId === data.userId)) {
53
+ message.readBy.push({
54
+ userId: data.userId,
55
+ readAt: data.readAt || new Date()
56
+ });
57
+ console.log('[CHAT STORE] Updated message read status:', messageId);
58
+ }
59
+ }
60
+ });
61
+ }
62
+ },
63
+ { module: 'chat' }
64
+ );
34
65
  } catch (error) {
35
66
  console.error('[Chat] WebSocket connection failed:', error);
36
67
  throw error;
@@ -76,6 +107,42 @@ const methods = {
76
107
  module: 'chat',
77
108
  type: 'message',
78
109
  chatId: state.currentChatId,
110
+ chatType: 'order', // TODO: динамически определять тип чата
111
+ userId: state.userId, // Добавляем userId отправителя
112
+ });
113
+ },
114
+
115
+ /**
116
+ * Отметить сообщения как прочитанные
117
+ * @param {Array<String>} messageIds
118
+ */
119
+ async markMessagesAsRead(messageIds) {
120
+ console.log('[CHAT STORE] markMessagesAsRead called with:', messageIds);
121
+ console.log('[CHAT STORE] Current userId:', state.userId);
122
+
123
+ // Обновляем локальное состояние сразу для текущего пользователя
124
+ messageIds.forEach(messageId => {
125
+ const message = state.messages.find(m => m._id === messageId);
126
+ if (message) {
127
+ if (!message.readBy) {
128
+ message.readBy = [];
129
+ }
130
+ // Добавляем запись о прочтении если её еще нет
131
+ if (!message.readBy.some(r => r.userId === state.userId)) {
132
+ message.readBy.push({
133
+ userId: state.userId,
134
+ readAt: new Date()
135
+ });
136
+ console.log('[CHAT STORE] Locally updated message read status:', messageId);
137
+ }
138
+ }
139
+ });
140
+
141
+ await globalWebSocket.send({
142
+ type: 'markAsRead',
143
+ module: 'chat',
144
+ messageIds: messageIds,
145
+ chatId: state.currentChatId,
79
146
  });
80
147
  },
81
148
 
@@ -211,7 +211,7 @@ fetchComments();
211
211
  import * as blog from '@martyrs/src/modules/community/store/blogposts.js';
212
212
  import * as auth from '@martyrs/src/modules/auth/views/store/auth.js'
213
213
  import * as organizations from '@martyrs/src/modules/organizations/store/organizations.js'
214
- import * as memberships from '@martyrs/src/modules/organizations/store/memberships.js'
214
+ import membershipsStore from '@martyrs/src/modules/organizations/store/memberships.store.js'
215
215
 
216
216
  // State
217
217
  const route = useRoute();
@@ -222,7 +222,7 @@ if (route.params.category === 'new') blog.state.sort.param = 'createdAt';
222
222
 
223
223
 
224
224
  const handleMembershipUpdate = ({ membership, status, target }, statusName, statusNumber) => {
225
- memberships.mutations.handleMembershipUpdate(organizations.state.current, membership, status, target, statusName, statusNumber)
225
+ membershipsStore.handleMembershipUpdate(organizations.state.current, membership, status, target, statusName, statusNumber)
226
226
  };
227
227
 
228
228
  </script>
@@ -15,154 +15,7 @@
15
15
  </button>
16
16
  </header>
17
17
 
18
- <div class="cols-2-1_3 br-1px br-solid br-light z-index-3 pos-relative">
19
-
20
- <div class="o-y-scroll br-r br-solid br-light pd-medium z-index-2 desktop-only h-100 pos-relative">
21
- <div class="w-100 o-y-scroll h-100">
22
- <!-- Categories -->
23
- <div class="mn-b-medium">
24
- <h4 class="mn-b-small">Categories</h4>
25
- <div class="gap-micro">
26
- <div
27
- v-for="category in postCategories"
28
- :key="category.value"
29
- @click="selectCategory(category.value)"
30
- :class="{ 'bg-light': selectedCategory === category.value }"
31
- class="pd-small radius-small cursor-pointer hover-bg-light transition-all"
32
- >
33
- {{ category.label }}
34
- </div>
35
- </div>
36
- </div>
37
-
38
- <!-- Tags Filter -->
39
- <Spoiler
40
- class="o-hidden mn-b-medium"
41
- :status="true"
42
- >
43
- <template #header="{ isOpen }">
44
- <div class="cursor-pointer w-100 flex-v-center flex-nowrap flex">
45
- <h4 class="w-100">Tags</h4>
46
- <div class="h-2r w-2r flex-child-auto aspect-1x1 flex-center flex bg-light radius-extra">
47
- <IconChevronBottom :class="{ 'rotate-180 mn-t-micro-negative': isOpen }" fill="rgb(var(--black))" class="i-regular"/>
48
- </div>
49
- </div>
50
- </template>
51
-
52
- <template #content>
53
- <div class="mn-t-small">
54
- <Field
55
- v-model="searchTag"
56
- placeholder="Search tags..."
57
- type="text"
58
- class="w-100 bg-light pd-small radius-small mn-b-small"
59
- />
60
- <Checkbox
61
- v-for="tag in filteredTags"
62
- :key="tag"
63
- v-model:checkbox="selectedTags"
64
- :label="tag"
65
- :value="tag"
66
- mode="checkbox"
67
- class="mn-b-micro"
68
- />
69
- </div>
70
- </template>
71
- </Spoiler>
72
-
73
- <!-- Date Range Filter -->
74
- <Spoiler
75
- class="o-hidden mn-b-medium"
76
- :status="true"
77
- >
78
- <template #header="{ isOpen }">
79
- <div class="cursor-pointer w-100 flex-v-center flex-nowrap flex">
80
- <h4 class="w-100">Date Range</h4>
81
- <div class="h-2r w-2r flex-child-auto aspect-1x1 flex-center flex bg-light radius-extra">
82
- <IconChevronBottom :class="{ 'rotate-180 mn-t-micro-negative': isOpen }" fill="rgb(var(--black))" class="i-regular"/>
83
- </div>
84
- </div>
85
- </template>
86
-
87
- <template #content>
88
- <div class="mn-t-small">
89
- <div
90
- v-for="option in dateRangeOptions"
91
- :key="option.value"
92
- @click="selectDateRange(option.value)"
93
- :class="{ 'bg-light': selectedDateRange === option.value }"
94
- class="pd-small radius-small cursor-pointer hover-bg-light transition-all mn-b-micro"
95
- >
96
- {{ option.label }}
97
- </div>
98
-
99
- <div
100
- @click="() => { tempSelectedDates = selectedDates; showDatePickerPopup = true; }"
101
- :class="{ 'bg-light': selectedDateRange === 'custom' }"
102
- class="pd-small radius-small cursor-pointer hover-bg-light transition-all mn-b-micro"
103
- >
104
- {{ selectedDates ? `${formatDate(selectedDates.start, { dayMonth: true, language: 'en' })} - ${formatDate(selectedDates.end, { dayMonth: true, language: 'en' })}` : 'Select custom dates'}}
105
- </div>
106
- </div>
107
- </template>
108
- </Spoiler>
109
-
110
- <!-- Author Filter -->
111
- <Spoiler
112
- class="o-hidden mn-b-medium"
113
- :status="true"
114
- >
115
- <template #header="{ isOpen }">
116
- <div class="cursor-pointer w-100 flex-v-center flex-nowrap flex">
117
- <h4 class="w-100">Author</h4>
118
- <div class="h-2r w-2r flex-child-auto aspect-1x1 flex-center flex bg-light radius-extra">
119
- <IconChevronBottom :class="{ 'rotate-180 mn-t-micro-negative': isOpen }" fill="rgb(var(--black))" class="i-regular"/>
120
- </div>
121
- </div>
122
- </template>
123
-
124
- <template #content>
125
- <div class="mn-t-small">
126
- <Checkbox
127
- label="My Posts Only"
128
- v-model:checkbox="showMyPostsOnly"
129
- mode="checkbox"
130
- class="mn-b-micro"
131
- />
132
- </div>
133
- </template>
134
- </Spoiler>
135
-
136
- <!-- Clear Filters Button -->
137
- <button
138
- @click="clearFilters"
139
- class="bg-main w-100 button mn-t-medium"
140
- >
141
- Clear Filters
142
- </button>
143
- </div>
144
- </div>
145
-
146
- <div class="w-100 rows-1 pd-thin pos-relative o-hidden">
147
- <Filters
148
- v-model:filters="availableFilters"
149
- v-model:selected="selectedFilters"
150
- />
151
-
152
- <div class="mn-b-thin w-100 o-y-scroll scroll-hide scroll-snap-type-x-mandatory scroll-pd-regular">
153
- <div class="gap-thin flex-nowrap flex">
154
- <div
155
- v-for="category in postCategories"
156
- :key="category.value"
157
- @click="selectCategory(category.value)"
158
- :class="{ 'bg-main t-white': selectedCategory === category.value }"
159
- class="flex-child-default bg-light flex t-nowrap pd-medium radius-medium cursor-pointer hover-bg-light transition-all"
160
- >
161
- {{ category.label }}
162
- </div>
163
- </div>
164
- </div>
165
-
18
+ <div class="w-100 rows-1 pd-thin pos-relative o-hidden">
166
19
  <Feed
167
20
  :search="true"
168
21
  v-model:filter="blog.state.filter"
@@ -183,17 +36,12 @@
183
36
  status: 'published',
184
37
  user: auth.state.user._id,
185
38
  owner: route.params._id || null,
186
- category: selectedCategory !== 'all' ? selectedCategory : null,
187
- tags: selectedTags.length > 0 ? selectedTags : null,
188
- author: showMyPostsOnly ? auth.state.user._id : null,
189
- dateStart: selectedDates?.start,
190
- dateEnd: selectedDates?.end,
191
39
  search: route.query.search
192
40
  }"
193
41
  v-slot="{
194
42
  items
195
43
  }"
196
- class="cols-3 pos-relative w-100 rows-1 gap-thin"
44
+ class="cols-1 pos-relative w-100 rows-1 gap-thin"
197
45
  >
198
46
  <CardBlogpost
199
47
  v-for="item in items"
@@ -211,49 +59,7 @@
211
59
  />
212
60
  </Feed>
213
61
 
214
- <button
215
- v-if="hasAccess(route.params._id, 'posts', 'create', auth.state.accesses, auth.state.access.roles)"
216
- @click="$router.push({
217
- name: route.params?._id ? 'Organization_PostAdd' : 'CreateBlogPost'
218
- })"
219
- class="mn-t-medium bg-main button w-100"
220
- >
221
- Create New Post
222
- </button>
223
- </div>
224
62
  </div>
225
-
226
- <!-- Date Picker Popup -->
227
- <Popup
228
- :isPopupOpen="showDatePickerPopup"
229
- @close-popup="showDatePickerPopup = false"
230
- class="pd-medium bg-white radius-medium"
231
- style="min-width: 350px;"
232
- >
233
- <h3 class="mn-b-medium">Select Date Range</h3>
234
-
235
- <Calendar
236
- v-model:date="tempSelectedDates"
237
- :allowRange="true"
238
- :disablePastDates="false"
239
- class="mn-b-medium"
240
- />
241
-
242
- <div class="flex gap-small">
243
- <button
244
- @click="applyDateFilter"
245
- class="bg-main button flex-child-full"
246
- >
247
- Apply
248
- </button>
249
- <button
250
- @click="showDatePickerPopup = false"
251
- class="bg-light button flex-child-full"
252
- >
253
- Cancel
254
- </button>
255
- </div>
256
- </Popup>
257
63
  </div>
258
64
  </template>
259
65
 
@@ -264,17 +70,10 @@
264
70
 
265
71
  // Import components
266
72
  import Feed from '@martyrs/src/components/Feed/Feed.vue'
267
- import Filters from '@martyrs/src/modules/globals/views/components/sections/Filters.vue'
268
- import Spoiler from "@martyrs/src/components/Spoiler/Spoiler.vue"
269
- import Field from "@martyrs/src/components/Field/Field.vue"
270
- import Checkbox from "@martyrs/src/components/Checkbox/Checkbox.vue"
271
- import Calendar from "@martyrs/src/components/Calendar/Calendar.vue"
272
- import Popup from "@martyrs/src/components/Popup/Popup.vue"
273
73
 
274
74
  import CardBlogpost from '@martyrs/src/modules/community/components/blocks/CardBlogpost.vue'
275
75
 
276
76
  import IconPlus from '@martyrs/src/modules/icons/navigation/IconPlus.vue'
277
- import IconChevronBottom from '@martyrs/src/modules/icons/navigation/IconChevronBottom.vue'
278
77
 
279
78
  // Accessing router and store
280
79
  import * as auth from '@martyrs/src/modules/auth/views/store/auth.js';
@@ -285,7 +84,7 @@
285
84
 
286
85
  const route = useRoute()
287
86
  const router = useRouter()
288
- const { hasAccess, formatDate } = useGlobalMixins()
87
+ const { hasAccess } = useGlobalMixins()
289
88
 
290
89
  // Props
291
90
  const props = defineProps({
@@ -295,130 +94,6 @@
295
94
  }
296
95
  })
297
96
 
298
- // Categories
299
- const postCategories = ref([
300
- { label: 'All Posts', value: 'all' },
301
- { label: 'News', value: 'news' },
302
- { label: 'Updates', value: 'updates' },
303
- { label: 'Events', value: 'events' },
304
- { label: 'Announcements', value: 'announcements' },
305
- { label: 'Stories', value: 'stories' }
306
- ]);
307
- const selectedCategory = ref('all');
308
-
309
- // Tags
310
- const searchTag = ref('');
311
- const selectedTags = ref([]);
312
- const availableTags = ref(['featured', 'important', 'trending', 'community', 'official']);
313
- const filteredTags = computed(() => {
314
- if (!searchTag.value) return availableTags.value;
315
- return availableTags.value.filter(tag =>
316
- tag.toLowerCase().includes(searchTag.value.toLowerCase())
317
- );
318
- });
319
-
320
- // Date Range
321
- const dateRangeOptions = ref([
322
- { label: 'All Time', value: 'all' },
323
- { label: 'Today', value: 'today' },
324
- { label: 'This Week', value: 'week' },
325
- { label: 'This Month', value: 'month' },
326
- { label: 'This Year', value: 'year' }
327
- ]);
328
- const selectedDateRange = ref('all');
329
- const showDatePickerPopup = ref(false);
330
- const selectedDates = ref(null);
331
- const tempSelectedDates = ref(null);
332
-
333
- // Author
334
- const showMyPostsOnly = ref(false);
335
-
336
- const availableFilters = ref([
337
- {
338
- title: 'Category',
339
- value: 'category',
340
- type: 'radio',
341
- options: postCategories.value
342
- },
343
- {
344
- title: 'Status',
345
- value: 'status',
346
- type: 'radio',
347
- options: [
348
- { label: 'Published', value: 'published' },
349
- { label: 'Draft', value: 'draft' },
350
- { label: 'Archived', value: 'archived' }
351
- ]
352
- }
353
- ])
354
-
355
- const selectedFilters = ref({
356
- category: 'all',
357
- status: 'published'
358
- })
359
-
360
- const selectCategory = (category) => {
361
- selectedCategory.value = category;
362
- selectedFilters.value.category = category;
363
- };
364
-
365
- const selectDateRange = (range) => {
366
- selectedDateRange.value = range;
367
- const today = new Date();
368
-
369
- switch(range) {
370
- case 'all':
371
- selectedDates.value = null;
372
- break;
373
- case 'today':
374
- selectedDates.value = {
375
- start: today,
376
- end: today
377
- };
378
- break;
379
- case 'week':
380
- const weekStart = new Date(today);
381
- weekStart.setDate(today.getDate() - today.getDay());
382
- selectedDates.value = {
383
- start: weekStart,
384
- end: today
385
- };
386
- break;
387
- case 'month':
388
- const monthStart = new Date(today.getFullYear(), today.getMonth(), 1);
389
- selectedDates.value = {
390
- start: monthStart,
391
- end: today
392
- };
393
- break;
394
- case 'year':
395
- const yearStart = new Date(today.getFullYear(), 0, 1);
396
- selectedDates.value = {
397
- start: yearStart,
398
- end: today
399
- };
400
- break;
401
- }
402
- };
403
-
404
- const applyDateFilter = () => {
405
- selectedDates.value = tempSelectedDates.value;
406
- selectedDateRange.value = 'custom';
407
- showDatePickerPopup.value = false;
408
- };
409
-
410
- const clearFilters = () => {
411
- selectedCategory.value = 'all';
412
- selectedTags.value = [];
413
- selectedDateRange.value = 'all';
414
- selectedDates.value = null;
415
- showMyPostsOnly.value = false;
416
- searchTag.value = '';
417
- selectedFilters.value = {
418
- category: 'all',
419
- status: 'published'
420
- };
421
- };
422
97
 
423
98
  globals.state.navigation_bar.actions = [{
424
99
  component: IconPlus,
@@ -108,7 +108,7 @@
108
108
  {{ticket.client_refactor?.email || 'No email'}}
109
109
  </p>
110
110
 
111
- <span class="pd-r-thin pd-l-thin pd-b-nano pd-t-nano bg-second radius-extra t-white t-medium d-block w-max uppercase">
111
+ <span class="pd-thin ]bg-second radius-extra t-white t-medium d-block w-max uppercase">
112
112
  {{ticket.status}}
113
113
  </span>
114
114
  </div>
@@ -160,13 +160,13 @@
160
160
  // Import state
161
161
  import * as auth from '@martyrs/src/modules/auth/views/store/auth.js'
162
162
  import * as organizations from '@martyrs/src/modules/organizations/store/organizations.js'
163
- import * as memberships from '@martyrs/src/modules/organizations/store/memberships.js'
163
+ import membershipsStore from '@martyrs/src/modules/organizations/store/memberships.store.js'
164
164
 
165
165
 
166
166
  import * as events from '@martyrs/src/modules/events/store/events.js';
167
167
 
168
168
  const handleMembershipUpdate = ({ membership, status, target }, statusName, statusNumber) => {
169
- memberships.mutations.handleMembershipUpdate(organizations.state.current, membership, status, target, statusName, statusNumber)
169
+ membershipsStore.handleMembershipUpdate(organizations.state.current, membership, status, target, statusName, statusNumber)
170
170
  };
171
171
  // State
172
172
  const route = useRoute();
@@ -1,7 +1,13 @@
1
1
  import * as globals from '@martyrs/src/modules/globals/views/store/globals.js';
2
+ import { inject } from 'vue';
2
3
 
3
4
  // useGlobalMixins.js
4
5
  export function useGlobalMixins() {
6
+ const isModuleInstalled = (moduleName) => {
7
+ const store = inject('store');
8
+ if (!store || !store.modules) return false;
9
+ return store.modules.includes(moduleName);
10
+ };
5
11
  const isAdmin = roles => {
6
12
  if (roles) {
7
13
  const isAdmin = roles.includes('ROLE_ADMIN') ? roles.includes('ROLE_ADMIN') : false;
@@ -287,6 +293,7 @@ export function useGlobalMixins() {
287
293
  const isXXLDesktop = () => isMediaMin('--xxl-desktop-min');
288
294
 
289
295
  return {
296
+ isModuleInstalled,
290
297
  isAdmin,
291
298
  hasAccess,
292
299
  returnCurrency,