@ozdao/martyrs 0.2.603 → 0.2.605

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 (911) hide show
  1. package/README.md +2 -2
  2. package/dist/_virtual/dayjs.min.js +1 -1
  3. package/dist/_virtual/weekOfYear.js +1 -1
  4. package/dist/{abac-Blt8bUTL.js → abac-kz5xI99l.js} +1 -0
  5. package/dist/auth.server.js +52 -12
  6. package/dist/builder.js +67 -2
  7. package/dist/chats.server.js +2 -2
  8. package/dist/community.server.js +3 -3
  9. package/dist/core.server.js +2 -2
  10. package/dist/{core.websocket-Cl76z2wT.js → core.websocket-B2FA8gGl.js} +0 -2
  11. package/dist/{crud-BT5FIvQC.js → crud-Cwn0frBP.js} +8 -2
  12. package/dist/events.server.js +4 -4
  13. package/dist/files.server.js +1 -1
  14. package/dist/gallery.server.js +2 -2
  15. package/dist/governance.server.js +10 -10
  16. package/dist/{index-kvBwwb0w.js → index-CPACC651.js} +1 -1
  17. package/dist/inventory.server.js +4 -4
  18. package/dist/{mailing-DT7nbNjZ.js → mailing-BBCidXGr.js} +38 -2
  19. package/dist/marketplace.server.js +2 -2
  20. package/dist/martyrs/dist/martyrs.es3.js +1 -1
  21. package/dist/martyrs/dist/martyrs.es3.js.map +1 -1
  22. package/dist/{node_modules/.pnpm/dayjs@1.11.13 → martyrs/node_modules/.pnpm/dayjs@1.11.19}/node_modules/dayjs/dayjs.min.js +1 -1
  23. package/dist/{node_modules/.pnpm/dayjs@1.11.13 → martyrs/node_modules/.pnpm/dayjs@1.11.19}/node_modules/dayjs/dayjs.min.js.map +1 -1
  24. package/dist/{node_modules/.pnpm/dayjs@1.11.13 → martyrs/node_modules/.pnpm/dayjs@1.11.19}/node_modules/dayjs/plugin/weekOfYear.js +1 -1
  25. package/dist/{node_modules/.pnpm/dayjs@1.11.13 → martyrs/node_modules/.pnpm/dayjs@1.11.19}/node_modules/dayjs/plugin/weekOfYear.js.map +1 -1
  26. package/dist/{node_modules/.pnpm/vue-draggable-next@2.2.1_sortablejs@1.15.6_vue@3.5.13_typescript@5.8.3_ → martyrs/node_modules/.pnpm/vue-draggable-next@2.3.0_sortablejs@1.15.7_vue@3.5.13}/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js +305 -268
  27. package/dist/martyrs/node_modules/.pnpm/vue-draggable-next@2.3.0_sortablejs@1.15.7_vue@3.5.13/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js.map +1 -0
  28. package/dist/martyrs/src/components/Address/Address.vue2.js +13 -13
  29. package/dist/martyrs/src/components/Address/Address.vue2.js.map +1 -1
  30. package/dist/martyrs/src/components/Block/Block.vue.js +1 -1
  31. package/dist/martyrs/src/components/Button/Button.vue2.js +1 -1
  32. package/dist/martyrs/src/components/Button/Button.vue2.js.map +1 -1
  33. package/dist/martyrs/src/components/Calendar/Calendar.vue2.js +150 -143
  34. package/dist/martyrs/src/components/Calendar/Calendar.vue2.js.map +1 -1
  35. package/dist/martyrs/src/components/Chart/Chart.vue.js +296 -0
  36. package/dist/martyrs/src/components/Chart/Chart.vue.js.map +1 -0
  37. package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js +1 -1
  38. package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js.map +1 -1
  39. package/dist/martyrs/src/components/Chips/Chips.vue.js +5 -6
  40. package/dist/martyrs/src/components/Chips/Chips.vue.js.map +1 -1
  41. package/dist/martyrs/src/components/Countdown/Countdown.vue.js +5 -5
  42. package/dist/martyrs/src/components/Countdown/Countdown.vue.js.map +1 -1
  43. package/dist/martyrs/src/components/DatePicker/DatePicker.vue.js +2 -2
  44. package/dist/martyrs/src/components/DatePicker/DatePicker.vue.js.map +1 -1
  45. package/dist/martyrs/src/components/EditImages/EditImages.vue.js +4 -4
  46. package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -1
  47. package/dist/martyrs/src/components/EmptyState/EmptyState.vue.js +1 -1
  48. package/dist/martyrs/src/components/Feed/Carousel.vue.js +1 -1
  49. package/dist/martyrs/src/components/Feed/Feed.vue.js +2 -2
  50. package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
  51. package/dist/martyrs/src/components/Field/Field.vue.js +4 -4
  52. package/dist/martyrs/src/components/Field/Field.vue.js.map +1 -1
  53. package/dist/martyrs/src/components/FieldDate/FieldDate.vue.js +3 -3
  54. package/dist/martyrs/src/components/FieldDate/FieldDate.vue.js.map +1 -1
  55. package/dist/martyrs/src/components/Loader/{Loader.vue2.js → Loader.vue.js} +2 -2
  56. package/dist/martyrs/src/components/Loader/Loader.vue.js.map +1 -0
  57. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js +27 -21
  58. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js.map +1 -1
  59. package/dist/martyrs/src/components/Map/Map.vue.js +20 -16
  60. package/dist/martyrs/src/components/Map/Map.vue.js.map +1 -1
  61. package/dist/martyrs/src/components/Media/Media.vue.js +1 -1
  62. package/dist/martyrs/src/components/Popup/Popup.vue.js +3 -4
  63. package/dist/martyrs/src/components/Popup/Popup.vue.js.map +1 -1
  64. package/dist/martyrs/src/components/Radio/Radio.vue.js +12 -10
  65. package/dist/martyrs/src/components/Radio/Radio.vue.js.map +1 -1
  66. package/dist/martyrs/src/components/Select/Select.vue.js +2 -2
  67. package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -1
  68. package/dist/martyrs/src/components/Status/Snack.vue.js +1 -1
  69. package/dist/martyrs/src/components/Status/Snack.vue.js.map +1 -1
  70. package/dist/martyrs/src/components/Status/Status.vue.js +1 -1
  71. package/dist/martyrs/src/components/Status/Status.vue.js.map +1 -1
  72. package/dist/martyrs/src/components/Tab/{Tab.vue.js → Tab.vue2.js} +2 -2
  73. package/dist/martyrs/src/components/Tab/Tab.vue2.js.map +1 -0
  74. package/dist/martyrs/src/components/Table/Table.vue.js +21 -4
  75. package/dist/martyrs/src/components/Table/Table.vue.js.map +1 -1
  76. package/dist/martyrs/src/components/Tooltip/{Tooltip.vue2.js → Tooltip.vue.js} +2 -2
  77. package/dist/martyrs/src/components/Tooltip/Tooltip.vue.js.map +1 -0
  78. package/dist/martyrs/src/components/Tree/Tree.vue.js +1 -1
  79. package/dist/martyrs/src/components/Upload/Upload.vue2.js +2 -2
  80. package/dist/martyrs/src/components/Upload/Upload.vue2.js.map +1 -1
  81. package/dist/martyrs/src/components/UploadImage/UploadImage.vue.js +3 -3
  82. package/dist/martyrs/src/components/UploadImage/UploadImage.vue.js.map +1 -1
  83. package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +2 -2
  84. package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js.map +1 -1
  85. package/dist/martyrs/src/modules/auth/auth.client.js +14 -2
  86. package/dist/martyrs/src/modules/auth/auth.client.js.map +1 -1
  87. package/dist/martyrs/src/modules/auth/views/components/blocks/OtpDialog.vue.js +4 -4
  88. package/dist/martyrs/src/modules/auth/views/components/blocks/OtpDialog.vue.js.map +1 -1
  89. package/dist/martyrs/src/modules/auth/views/components/blocks/PopupAuth.vue.js +1 -1
  90. package/dist/martyrs/src/modules/auth/views/components/blocks/PopupAuth.vue.js.map +1 -1
  91. package/dist/martyrs/src/modules/auth/views/components/blocks/SidebarUserCard.vue.js +96 -0
  92. package/dist/martyrs/src/modules/auth/views/components/blocks/SidebarUserCard.vue.js.map +1 -0
  93. package/dist/martyrs/src/modules/auth/views/components/pages/BackofficeUsers.vue.js +337 -0
  94. package/dist/martyrs/src/modules/auth/views/components/pages/BackofficeUsers.vue.js.map +1 -0
  95. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +2 -2
  96. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js.map +1 -1
  97. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +1 -1
  98. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
  99. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +33 -19
  100. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -1
  101. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +76 -40
  102. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js.map +1 -1
  103. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js +6 -5
  104. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js.map +1 -1
  105. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +5 -5
  106. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js.map +1 -1
  107. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +6 -4
  108. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
  109. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +4 -4
  110. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js.map +1 -1
  111. package/dist/martyrs/src/modules/auth/views/components/pages/UserDashboard.vue.js +28 -16
  112. package/dist/martyrs/src/modules/auth/views/components/pages/UserDashboard.vue.js.map +1 -1
  113. package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.js +1 -1
  114. package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.js.map +1 -1
  115. package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js +1 -1
  116. package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js.map +1 -1
  117. package/dist/martyrs/src/modules/auth/views/middlewares/auth.validation.js +6 -2
  118. package/dist/martyrs/src/modules/auth/views/middlewares/auth.validation.js.map +1 -1
  119. package/dist/martyrs/src/modules/auth/views/router/users.backoffice.router.js +53 -0
  120. package/dist/martyrs/src/modules/auth/views/router/users.backoffice.router.js.map +1 -0
  121. package/dist/martyrs/src/modules/auth/views/store/auth.js +3 -3
  122. package/dist/martyrs/src/modules/auth/views/store/auth.js.map +1 -1
  123. package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js +179 -253
  124. package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js.map +1 -1
  125. package/dist/martyrs/src/modules/backoffice/configs/navigation.backoffice.config.js +105 -44
  126. package/dist/martyrs/src/modules/backoffice/configs/navigation.backoffice.config.js.map +1 -1
  127. package/dist/martyrs/src/modules/backoffice/router/backoffice.router.js +11 -5
  128. package/dist/martyrs/src/modules/backoffice/router/backoffice.router.js.map +1 -1
  129. package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js +1 -1
  130. package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js.map +1 -1
  131. package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.js.map +1 -1
  132. package/dist/martyrs/src/modules/community/community.client.js +4 -4
  133. package/dist/martyrs/src/modules/community/community.client.js.map +1 -1
  134. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  135. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js.map +1 -1
  136. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +4 -4
  137. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js.map +1 -1
  138. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +1 -1
  139. package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js +2 -2
  140. package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js.map +1 -1
  141. package/dist/martyrs/src/modules/community/components/sections/Comments.vue.js +1 -1
  142. package/dist/martyrs/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  143. package/dist/martyrs/src/modules/constructor/components/elements/ImageUpload.vue.js.map +1 -1
  144. package/dist/martyrs/src/modules/core/core.client.js +18 -16
  145. package/dist/martyrs/src/modules/core/core.client.js.map +1 -1
  146. package/dist/martyrs/src/modules/core/views/classes/core.app.js +25 -6
  147. package/dist/martyrs/src/modules/core/views/classes/core.app.js.map +1 -1
  148. package/dist/martyrs/src/modules/core/views/classes/module.manager.js +4 -2
  149. package/dist/martyrs/src/modules/core/views/classes/module.manager.js.map +1 -1
  150. package/dist/martyrs/src/modules/core/views/components/blocks/AlertDialog.vue.js +1 -1
  151. package/dist/martyrs/src/modules/core/views/components/blocks/AlertDialog.vue.js.map +1 -1
  152. package/dist/martyrs/src/modules/core/views/components/blocks/BlockSearch.vue.js +1 -1
  153. package/dist/martyrs/src/modules/core/views/components/blocks/BlockSearch.vue.js.map +1 -1
  154. package/dist/martyrs/src/modules/core/views/components/blocks/BlockSlider.vue.js +132 -0
  155. package/dist/martyrs/src/modules/core/views/components/blocks/BlockSlider.vue.js.map +1 -0
  156. package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js +3 -3
  157. package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js.map +1 -1
  158. package/dist/martyrs/src/modules/core/views/components/blocks/CardStat.vue.js +6 -28
  159. package/dist/martyrs/src/modules/core/views/components/blocks/CardStat.vue.js.map +1 -1
  160. package/dist/martyrs/src/modules/{auth → core}/views/components/blocks/CardUser.vue.js +29 -11
  161. package/dist/martyrs/src/modules/{auth → core}/views/components/blocks/CardUser.vue.js.map +1 -1
  162. package/dist/martyrs/src/modules/core/views/components/blocks/HelpCard.vue.js +2 -2
  163. package/dist/martyrs/src/modules/core/views/components/blocks/HelpCard.vue.js.map +1 -1
  164. package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js +42 -27
  165. package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js.map +1 -1
  166. package/dist/martyrs/src/modules/core/views/components/elements/OnlineIndicator.vue.js +1 -1
  167. package/dist/martyrs/src/modules/core/views/components/layouts/App.vue.js +1 -1
  168. package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js +4 -3
  169. package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js.map +1 -1
  170. package/dist/martyrs/src/modules/core/views/components/pages/404.vue.js +2 -2
  171. package/dist/martyrs/src/modules/core/views/components/pages/404.vue.js.map +1 -1
  172. package/dist/martyrs/src/modules/core/views/components/partials/BottomNavigationBar.vue.js +5 -5
  173. package/dist/martyrs/src/modules/core/views/components/partials/BottomNavigationBar.vue.js.map +1 -1
  174. package/dist/martyrs/src/modules/core/views/components/partials/CitySelection.vue.js +2 -2
  175. package/dist/martyrs/src/modules/core/views/components/partials/CitySelection.vue.js.map +1 -1
  176. package/dist/martyrs/src/modules/core/views/components/partials/Footer.vue.js +2 -2
  177. package/dist/martyrs/src/modules/core/views/components/partials/Footer.vue.js.map +1 -1
  178. package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js +4 -4
  179. package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js.map +1 -1
  180. package/dist/martyrs/src/modules/core/views/components/partials/LocationSelection.vue.js +1 -1
  181. package/dist/martyrs/src/modules/core/views/components/partials/LocationSelection.vue.js.map +1 -1
  182. package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js +2 -2
  183. package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js.map +1 -1
  184. package/dist/martyrs/src/modules/core/views/components/sections/{Filters.vue.js → Filters.vue2.js} +5 -5
  185. package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue2.js.map +1 -0
  186. package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js +3 -3
  187. package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js.map +1 -1
  188. package/dist/martyrs/src/modules/core/views/components/sections/Walkthrough.vue.js +7 -7
  189. package/dist/martyrs/src/modules/core/views/components/sections/Walkthrough.vue.js.map +1 -1
  190. package/dist/martyrs/src/modules/core/views/mixins/mixins.js +14 -1
  191. package/dist/martyrs/src/modules/core/views/mixins/mixins.js.map +1 -1
  192. package/dist/martyrs/src/modules/core/views/plugins/date-picker.plugin.js +8 -5
  193. package/dist/martyrs/src/modules/core/views/plugins/date-picker.plugin.js.map +1 -1
  194. package/dist/martyrs/src/modules/core/views/store/core.store.js +5 -1
  195. package/dist/martyrs/src/modules/core/views/store/core.store.js.map +1 -1
  196. package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js +3 -0
  197. package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js.map +1 -1
  198. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  199. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +9 -9
  200. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js.map +1 -1
  201. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +3 -3
  202. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
  203. package/dist/martyrs/src/modules/events/components/sections/EditTickets.vue.js +1 -1
  204. package/dist/martyrs/src/modules/events/components/sections/EditTickets.vue.js.map +1 -1
  205. package/dist/martyrs/src/modules/events/components/sections/Feed.vue.js +1 -1
  206. package/dist/martyrs/src/modules/events/components/sections/List.vue.js +1 -1
  207. package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js +1 -1
  208. package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js.map +1 -1
  209. package/dist/martyrs/src/modules/events/events.client.js +4 -4
  210. package/dist/martyrs/src/modules/events/events.client.js.map +1 -1
  211. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  212. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js.map +1 -1
  213. package/dist/martyrs/src/modules/gallery/router/gallery.router.js +3 -3
  214. package/dist/martyrs/src/modules/gallery/router/gallery.router.js.map +1 -1
  215. package/dist/martyrs/src/modules/governance/views/components/blocks/CardInitiativeItem.vue.js +5 -5
  216. package/dist/martyrs/src/modules/governance/views/components/blocks/CardInitiativeItem.vue.js.map +1 -1
  217. package/dist/martyrs/src/modules/governance/views/components/blocks/CardSprintItem.vue.js +6 -6
  218. package/dist/martyrs/src/modules/governance/views/components/blocks/CardSprintItem.vue.js.map +1 -1
  219. package/dist/martyrs/src/modules/governance/views/components/blocks/CardTaskItem.vue.js +4 -4
  220. package/dist/martyrs/src/modules/governance/views/components/blocks/CardTaskItem.vue.js.map +1 -1
  221. package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js +5 -5
  222. package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js.map +1 -1
  223. package/dist/martyrs/src/modules/governance/views/components/pages/Initiative.vue.js +2 -2
  224. package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeCreate.vue.js +2 -2
  225. package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeSprints.vue.js +2 -2
  226. package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js +5 -5
  227. package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js.map +1 -1
  228. package/dist/martyrs/src/modules/governance/views/components/pages/Sprint.vue.js +2 -2
  229. package/dist/martyrs/src/modules/governance/views/components/pages/SprintCreate.vue.js +2 -2
  230. package/dist/martyrs/src/modules/governance/views/components/pages/Task.vue.js +2 -2
  231. package/dist/martyrs/src/modules/governance/views/components/pages/TaskCreate.vue.js +2 -2
  232. package/dist/martyrs/src/modules/governance/views/components/pages/Tasks.vue.js +2 -2
  233. package/dist/martyrs/src/modules/governance/views/components/pages/Voting.vue.js +2 -2
  234. package/dist/martyrs/src/modules/governance/views/components/pages/VotingCreate.vue.js +2 -2
  235. package/dist/martyrs/src/modules/governance/views/components/partials/LinkedEntityCard.vue.js +2 -2
  236. package/dist/martyrs/src/modules/governance/views/components/partials/TaskStatusBadge.vue.js +1 -1
  237. package/dist/martyrs/src/modules/governance/views/components/partials/TaskStatusBadge.vue.js.map +1 -1
  238. package/dist/martyrs/src/modules/governance/views/components/partials/VotingResults.vue.js +2 -2
  239. package/dist/martyrs/src/modules/governance/views/components/sections/FormSprintDetails.vue.js +1 -1
  240. package/dist/martyrs/src/modules/governance/views/components/sections/FormSprintDetails.vue.js.map +1 -1
  241. package/dist/martyrs/src/modules/governance/views/components/sections/FormTaskDetails.vue.js +1 -1
  242. package/dist/martyrs/src/modules/governance/views/components/sections/FormTaskDetails.vue.js.map +1 -1
  243. package/dist/martyrs/src/modules/governance/views/router/governance.router.js +3 -3
  244. package/dist/martyrs/src/modules/governance/views/router/governance.router.js.map +1 -1
  245. package/dist/martyrs/src/modules/icons/components/IconSearchPopup.vue.js +2 -2
  246. package/dist/martyrs/src/modules/icons/components/IconSearchPopup.vue.js.map +1 -1
  247. package/dist/martyrs/src/modules/icons/entities/IconApplications.vue.js +32 -0
  248. package/dist/martyrs/src/modules/icons/entities/IconApplications.vue.js.map +1 -0
  249. package/dist/martyrs/src/modules/icons/entities/IconCustomers.vue.js +32 -0
  250. package/dist/martyrs/src/modules/icons/entities/IconCustomers.vue.js.map +1 -0
  251. package/dist/martyrs/src/modules/icons/entities/IconUsers.vue.js +32 -0
  252. package/dist/martyrs/src/modules/icons/entities/IconUsers.vue.js.map +1 -0
  253. package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +2 -2
  254. package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js.map +1 -1
  255. package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js +2 -2
  256. package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js.map +1 -1
  257. package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js +1 -1
  258. package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js.map +1 -1
  259. package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +3 -3
  260. package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js.map +1 -1
  261. package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js +290 -173
  262. package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js.map +1 -1
  263. package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +1 -1
  264. package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js.map +1 -1
  265. package/dist/martyrs/src/modules/inventory/inventory.client.js +4 -4
  266. package/dist/martyrs/src/modules/inventory/inventory.client.js.map +1 -1
  267. package/dist/martyrs/src/modules/inventory/router/inventory.router.js +15 -0
  268. package/dist/martyrs/src/modules/inventory/router/inventory.router.js.map +1 -1
  269. package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.js +4 -4
  270. package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.js.map +1 -1
  271. package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.js +1 -1
  272. package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.js.map +1 -1
  273. package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.js +3 -3
  274. package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.js.map +1 -1
  275. package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js +2 -2
  276. package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js.map +1 -1
  277. package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.js +1 -1
  278. package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.js.map +1 -1
  279. package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js +2 -2
  280. package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js.map +1 -1
  281. package/dist/martyrs/src/modules/landing/components/sections/SectionOverview.vue.js +1 -1
  282. package/dist/martyrs/src/modules/landing/components/sections/SectionOverview.vue.js.map +1 -1
  283. package/dist/martyrs/src/modules/landing/components/sections/SectionRoadmap.vue.js +2 -2
  284. package/dist/martyrs/src/modules/landing/components/sections/SectionRoadmap.vue.js.map +1 -1
  285. package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +1 -1
  286. package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js.map +1 -1
  287. package/dist/martyrs/src/modules/marketplace/views/components/pages/Marketplace.vue.js +1 -1
  288. package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +4 -4
  289. package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js.map +1 -1
  290. package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +2 -2
  291. package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js.map +1 -1
  292. package/dist/martyrs/src/modules/music/components/cards/ArtistCard.vue.js +2 -2
  293. package/dist/martyrs/src/modules/music/components/cards/ArtistCard.vue.js.map +1 -1
  294. package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js +2 -2
  295. package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js.map +1 -1
  296. package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js +2 -2
  297. package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js.map +1 -1
  298. package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js +6 -6
  299. package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js.map +1 -1
  300. package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +2 -2
  301. package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js.map +1 -1
  302. package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +2 -2
  303. package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js.map +1 -1
  304. package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +5 -5
  305. package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js.map +1 -1
  306. package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +3 -3
  307. package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js.map +1 -1
  308. package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +9 -9
  309. package/dist/martyrs/src/modules/music/components/pages/Album.vue.js.map +1 -1
  310. package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +6 -6
  311. package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js.map +1 -1
  312. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +12 -12
  313. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js.map +1 -1
  314. package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +4 -4
  315. package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js.map +1 -1
  316. package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +12 -12
  317. package/dist/martyrs/src/modules/music/components/pages/Track.vue.js.map +1 -1
  318. package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js +4 -4
  319. package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js.map +1 -1
  320. package/dist/martyrs/src/modules/music/components/player/TrackProgress.vue.js +2 -2
  321. package/dist/martyrs/src/modules/music/components/player/TrackProgress.vue.js.map +1 -1
  322. package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js +163 -69
  323. package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js.map +1 -1
  324. package/dist/martyrs/src/modules/notifications/notifications.client.js +183 -19
  325. package/dist/martyrs/src/modules/notifications/notifications.client.js.map +1 -1
  326. package/dist/martyrs/src/modules/notifications/router/notifications.backoffice.router.js +21 -0
  327. package/dist/martyrs/src/modules/notifications/router/notifications.backoffice.router.js.map +1 -0
  328. package/dist/martyrs/src/modules/notifications/router/notifications.router.js +13 -42
  329. package/dist/martyrs/src/modules/notifications/router/notifications.router.js.map +1 -1
  330. package/dist/martyrs/src/modules/notifications/store/notifications.store.js +67 -2
  331. package/dist/martyrs/src/modules/notifications/store/notifications.store.js.map +1 -1
  332. package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js +9 -7
  333. package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js.map +1 -1
  334. package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js +11 -9
  335. package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js.map +1 -1
  336. package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.js +9 -9
  337. package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.js.map +1 -1
  338. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js +66 -19
  339. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js.map +1 -1
  340. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js +29 -27
  341. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js.map +1 -1
  342. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js +7 -12
  343. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js.map +1 -1
  344. package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js +1 -1
  345. package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js.map +1 -1
  346. package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.js +4 -4
  347. package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.js.map +1 -1
  348. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +1 -1
  349. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js.map +1 -1
  350. package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +46 -25
  351. package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js.map +1 -1
  352. package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js +2 -2
  353. package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js.map +1 -1
  354. package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js +54 -38
  355. package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js.map +1 -1
  356. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +454 -139
  357. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js.map +1 -1
  358. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +2 -1
  359. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
  360. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +141 -68
  361. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
  362. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +38 -32
  363. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js.map +1 -1
  364. package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.js +1 -1
  365. package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.js.map +1 -1
  366. package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +4 -4
  367. package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js.map +1 -1
  368. package/dist/martyrs/src/modules/orders/components/sections/AskToLogin.vue.js +1 -1
  369. package/dist/martyrs/src/modules/orders/components/sections/AskToLogin.vue.js.map +1 -1
  370. package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +167 -95
  371. package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js.map +1 -1
  372. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
  373. package/dist/martyrs/src/modules/orders/orders.client.js +22 -20
  374. package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
  375. package/dist/martyrs/src/modules/orders/store/orders.js +3 -5
  376. package/dist/martyrs/src/modules/orders/store/orders.js.map +1 -1
  377. package/dist/martyrs/src/modules/orders/store/shopcart.js +6 -6
  378. package/dist/martyrs/src/modules/orders/store/shopcart.js.map +1 -1
  379. package/dist/martyrs/src/modules/orders/utils/rent-price.js +60 -0
  380. package/dist/martyrs/src/modules/orders/utils/rent-price.js.map +1 -0
  381. package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js +2 -2
  382. package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +45 -55
  383. package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
  384. package/dist/martyrs/src/modules/organizations/components/blocks/EmptyState.vue.js +1 -1
  385. package/dist/martyrs/src/modules/organizations/components/blocks/Rating.vue.js +1 -1
  386. package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.js +2 -2
  387. package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.js.map +1 -1
  388. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  389. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js.map +1 -1
  390. package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js +3 -3
  391. package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js.map +1 -1
  392. package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js +1 -1
  393. package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js.map +1 -1
  394. package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js +1 -1
  395. package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js.map +1 -1
  396. package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js +2 -2
  397. package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
  398. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +8 -8
  399. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
  400. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +216 -83
  401. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
  402. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +38 -28
  403. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js.map +1 -1
  404. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +3 -2
  405. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js.map +1 -1
  406. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  407. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js.map +1 -1
  408. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  409. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js.map +1 -1
  410. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  411. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js +20 -18
  412. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
  413. package/dist/martyrs/src/modules/organizations/organizations.client.js +39 -33
  414. package/dist/martyrs/src/modules/organizations/organizations.client.js.map +1 -1
  415. package/dist/martyrs/src/modules/organizations/router/organizations.backoffice.router.js +81 -0
  416. package/dist/martyrs/src/modules/organizations/router/organizations.backoffice.router.js.map +1 -1
  417. package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
  418. package/dist/martyrs/src/modules/pages/views/components/pages/Pages.vue.js +1 -1
  419. package/dist/martyrs/src/modules/pages/views/components/pages/Pages.vue.js.map +1 -1
  420. package/dist/martyrs/src/modules/pages/views/router/pages.router.js +2 -2
  421. package/dist/martyrs/src/modules/pages/views/router/pages.router.js.map +1 -1
  422. package/dist/martyrs/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  423. package/dist/martyrs/src/modules/products/components/blocks/CardPosition.vue.js.map +1 -1
  424. package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js +2 -2
  425. package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
  426. package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js +3 -3
  427. package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js.map +1 -1
  428. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js +2 -2
  429. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js.map +1 -1
  430. package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js +3 -3
  431. package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js.map +1 -1
  432. package/dist/martyrs/src/modules/products/components/elements/Image360.vue.js +1 -1
  433. package/dist/martyrs/src/modules/products/components/elements/Price.vue.js +2 -2
  434. package/dist/martyrs/src/modules/products/components/elements/Price.vue.js.map +1 -1
  435. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +9 -25
  436. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js.map +1 -1
  437. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  438. package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +1 -1
  439. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +34 -17
  440. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js.map +1 -1
  441. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +98 -98
  442. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
  443. package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +1 -1
  444. package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js.map +1 -1
  445. package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +2 -2
  446. package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js.map +1 -1
  447. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +22 -9
  448. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js.map +1 -1
  449. package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  450. package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
  451. package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +1 -1
  452. package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js.map +1 -1
  453. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +4 -4
  454. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js.map +1 -1
  455. package/dist/martyrs/src/modules/products/router/categories.router.js +2 -2
  456. package/dist/martyrs/src/modules/products/router/categories.router.js.map +1 -1
  457. package/dist/martyrs/src/modules/products/router/products.router.js +17 -3
  458. package/dist/martyrs/src/modules/products/router/products.router.js.map +1 -1
  459. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttBar.vue.js +11 -10
  460. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttBar.vue.js.map +1 -1
  461. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttChart.vue.js +197 -81
  462. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttChart.vue.js.map +1 -1
  463. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttHeaderCell.vue.js +2 -2
  464. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttHeaderCell.vue.js.map +1 -1
  465. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +3 -3
  466. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js.map +1 -1
  467. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +685 -80
  468. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js.map +1 -1
  469. package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +68 -18
  470. package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js.map +1 -1
  471. package/dist/martyrs/src/modules/rents/views/router/rents.router.js +3 -3
  472. package/dist/martyrs/src/modules/rents/views/router/rents.router.js.map +1 -1
  473. package/dist/martyrs/src/modules/rents/views/store/rents.store.js +1 -1
  474. package/dist/martyrs/src/modules/rents/views/store/rents.store.js.map +1 -1
  475. package/dist/martyrs/src/modules/reports/components/pages/BackofficeReports.vue.js +3 -3
  476. package/dist/martyrs/src/modules/reports/components/pages/BackofficeReports.vue.js.map +1 -1
  477. package/dist/martyrs/src/modules/reports/router/reports.router.js +1 -1
  478. package/dist/martyrs/src/modules/reports/router/reports.router.js.map +1 -1
  479. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +5 -5
  480. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js.map +1 -1
  481. package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +1 -1
  482. package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js +3 -3
  483. package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js.map +1 -1
  484. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +10 -8
  485. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js.map +1 -1
  486. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js +29 -37
  487. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js.map +1 -1
  488. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +8 -8
  489. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js.map +1 -1
  490. package/dist/martyrs/src/modules/spots/router/spots.router.js +3 -3
  491. package/dist/martyrs/src/modules/spots/router/spots.router.js.map +1 -1
  492. package/dist/martyrs/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +3 -3
  493. package/dist/martyrs/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js.map +1 -1
  494. package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.js +1 -1
  495. package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.js.map +1 -1
  496. package/dist/martyrs/src/modules/wallet/views/router/wallet.router.js +1 -1
  497. package/dist/martyrs/src/modules/wallet/views/router/wallet.router.js.map +1 -1
  498. package/dist/martyrs.es10.js +59 -57
  499. package/dist/martyrs.es101.js +39 -0
  500. package/dist/martyrs.es102.js +24 -32
  501. package/dist/martyrs.es104.js +27 -0
  502. package/dist/martyrs.es105.js +6 -25
  503. package/dist/martyrs.es106.js +6 -5
  504. package/dist/martyrs.es107.js +76 -6
  505. package/dist/martyrs.es108.js +5 -77
  506. package/dist/martyrs.es109.js +119 -5
  507. package/dist/martyrs.es11.js +31 -30
  508. package/dist/martyrs.es112.js +2 -119
  509. package/dist/martyrs.es113.js +25 -0
  510. package/dist/martyrs.es114.js +7 -0
  511. package/dist/martyrs.es115.js +8 -2
  512. package/dist/martyrs.es116.js +166 -22
  513. package/dist/martyrs.es117.js +457 -4
  514. package/dist/martyrs.es118.js +40 -8
  515. package/dist/martyrs.es119.js +9 -166
  516. package/dist/martyrs.es12.js +8 -9
  517. package/dist/martyrs.es120.js +43 -451
  518. package/dist/martyrs.es121.js +10 -38
  519. package/dist/martyrs.es122.js +44 -9
  520. package/dist/martyrs.es123.js +4 -49
  521. package/dist/martyrs.es124.js +127 -10
  522. package/dist/martyrs.es125.js +98 -42
  523. package/dist/martyrs.es126.js +86 -4
  524. package/dist/martyrs.es127.js +29 -120
  525. package/dist/martyrs.es128.js +10 -99
  526. package/dist/martyrs.es129.js +24 -71
  527. package/dist/martyrs.es13.js +22 -19
  528. package/dist/martyrs.es130.js +8 -37
  529. package/dist/martyrs.es131.js +115 -10
  530. package/dist/martyrs.es132.js +16 -38
  531. package/dist/martyrs.es133.js +15 -8
  532. package/dist/martyrs.es135.js +28 -112
  533. package/dist/martyrs.es136.js +9 -17
  534. package/dist/martyrs.es137.js +19 -14
  535. package/dist/martyrs.es138.js +8 -32
  536. package/dist/martyrs.es139.js +9 -9
  537. package/dist/martyrs.es14.js +2 -2
  538. package/dist/martyrs.es140.js +43 -19
  539. package/dist/martyrs.es141.js +480 -9
  540. package/dist/martyrs.es142.js +5 -8
  541. package/dist/martyrs.es143.js +2 -45
  542. package/dist/martyrs.es144.js +11 -480
  543. package/dist/martyrs.es145.js +30 -5
  544. package/dist/martyrs.es146.js +17 -2
  545. package/dist/martyrs.es147.js +19 -11
  546. package/dist/martyrs.es148.js +27 -29
  547. package/dist/martyrs.es149.js +20 -16
  548. package/dist/martyrs.es2.js +31 -30
  549. package/dist/martyrs.es22.js +16 -16
  550. package/dist/martyrs.es23.js +8 -8
  551. package/dist/martyrs.es24.js +9 -9
  552. package/dist/martyrs.es26.js +9 -11
  553. package/dist/martyrs.es27.js +9 -9
  554. package/dist/martyrs.es28.js +1 -1
  555. package/dist/martyrs.es29.js +5 -5
  556. package/dist/martyrs.es3.js +1 -1
  557. package/dist/martyrs.es38.js +1 -1
  558. package/dist/martyrs.es4.js +12 -12
  559. package/dist/martyrs.es41.js +34 -224
  560. package/dist/martyrs.es5.js +251 -238
  561. package/dist/martyrs.es54.js +2 -2
  562. package/dist/martyrs.es61.js +33 -26
  563. package/dist/martyrs.es71.js +2 -2
  564. package/dist/martyrs.es74.js +8 -8
  565. package/dist/martyrs.es75.js +1 -1
  566. package/dist/martyrs.es76.js +18 -18
  567. package/dist/martyrs.es77.js +1 -1
  568. package/dist/martyrs.es78.js +1 -1
  569. package/dist/martyrs.es8.js +31 -31
  570. package/dist/martyrs.es91.js +1 -1
  571. package/dist/martyrs.es92.js +33 -5
  572. package/dist/martyrs.es94.js +41 -0
  573. package/dist/martyrs.es95.js +46 -28
  574. package/dist/martyrs.es96.js +116 -52
  575. package/dist/martyrs.es97.js +33 -113
  576. package/dist/martyrs.es98.js +76 -33
  577. package/dist/martyrs.es99.js +24 -77
  578. package/dist/music.server.js +3 -3
  579. package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js +1 -1
  580. package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js +1 -1
  581. package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@2.0.2/node_modules/@googlemaps/js-api-loader/dist/index.js +90 -0
  582. package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@2.0.2/node_modules/@googlemaps/js-api-loader/dist/index.js.map +1 -0
  583. package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.js +1 -1
  584. package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.js +1 -1
  585. package/dist/notifications.server.js +255 -23
  586. package/dist/orders.server.js +674 -136
  587. package/dist/organizations.server.js +11 -6
  588. package/dist/products.server.js +68 -7
  589. package/dist/{queryProcessor-C_5Iipam.js → queryProcessor-B2FCngFP.js} +3 -2
  590. package/dist/rents.server.js +183 -7
  591. package/dist/{socials.schema-DxnnaBgO.js → socials.schema-C3RjkqJv.js} +4 -0
  592. package/dist/spots.server.js +1 -1
  593. package/dist/style.css +292 -204
  594. package/dist/{tickets.controller-DdF85W-i.js → tickets.controller-Dpzf4kQx.js} +1 -1
  595. package/dist/wallet.server.js +2 -2
  596. package/package.json +5 -3
  597. package/src/builder/modes/ssr.rspack.dev.js +2 -0
  598. package/src/builder/rspack/rspack.config.ssr.client.js +58 -1
  599. package/src/builder/ssr/asset-resolver.js +1 -1
  600. package/src/builder/templates/page.js +2 -0
  601. package/src/components/Address/Address.vue +16 -16
  602. package/src/components/Button/Button.vue +0 -1
  603. package/src/components/ButtonSegmented/ButtonSegmented.vue +1 -1
  604. package/src/components/Calendar/Calendar.vue +141 -118
  605. package/src/components/Chart/Chart.vue +216 -0
  606. package/src/components/Checkbox/Checkbox.vue +1 -1
  607. package/src/components/Chips/Chips.vue +4 -5
  608. package/src/components/Countdown/Countdown.vue +5 -5
  609. package/src/components/DatePicker/DatePicker.vue +2 -2
  610. package/src/components/EditImages/EditImages.vue +3 -3
  611. package/src/components/EmptyState/EmptyState.vue +1 -1
  612. package/src/components/Feed/Feed.vue +5 -0
  613. package/src/components/Field/Field.vue +3 -3
  614. package/src/components/FieldDate/FieldDate.vue +2 -2
  615. package/src/components/LocationMarker/LocationMarker.vue +28 -21
  616. package/src/components/Map/Map.vue +20 -15
  617. package/src/components/Popup/Popup.vue +3 -3
  618. package/src/components/Radio/Radio.vue +2 -2
  619. package/src/components/Select/Select.vue +1 -1
  620. package/src/components/Status/Snack.vue +1 -1
  621. package/src/components/Status/Status.vue +1 -1
  622. package/src/components/Table/Table.vue +16 -1
  623. package/src/components/Upload/Upload.vue +1 -1
  624. package/src/components/UploadImage/UploadImage.vue +1 -1
  625. package/src/components/UploadImageMultiple/UploadImageMultiple.vue +1 -1
  626. package/src/jit/rules.js +4 -0
  627. package/src/modules/TASKS.MD +16 -3
  628. package/src/modules/auth/auth.client.js +18 -3
  629. package/src/modules/auth/controllers/routes/users.routes.js +18 -0
  630. package/src/modules/auth/controllers/services/auth.service.js +3 -3
  631. package/src/modules/auth/controllers/services/users.service.js +34 -5
  632. package/src/modules/auth/views/components/blocks/OtpDialog.vue +4 -4
  633. package/src/modules/auth/views/components/blocks/PopupAuth.vue +1 -1
  634. package/src/modules/auth/views/components/blocks/SidebarUserCard.vue +95 -0
  635. package/src/modules/auth/views/components/pages/BackofficeUsers.vue +337 -0
  636. package/src/modules/auth/views/components/pages/Invite.vue +1 -1
  637. package/src/modules/auth/views/components/pages/Profile.vue +1 -1
  638. package/src/modules/auth/views/components/pages/ProfileEdit.vue +23 -14
  639. package/src/modules/auth/views/components/pages/ProfileEditAccount.vue +45 -26
  640. package/src/modules/auth/views/components/pages/ProfileEditSidebar.vue +8 -7
  641. package/src/modules/auth/views/components/pages/ResetPassword.vue +4 -4
  642. package/src/modules/auth/views/components/pages/SignUp.vue +3 -3
  643. package/src/modules/auth/views/components/pages/UserDashboard.vue +8 -5
  644. package/src/modules/auth/views/components/sections/FeaturedUsers.vue +1 -1
  645. package/src/modules/auth/views/components/sections/SliderFeatures.vue +1 -1
  646. package/src/modules/auth/views/middlewares/auth.validation.js +7 -2
  647. package/src/modules/auth/views/router/users.backoffice.router.js +39 -0
  648. package/src/modules/auth/views/store/auth.js +2 -2
  649. package/src/modules/backoffice/components/admin/Backcalls.vue +2 -2
  650. package/src/modules/backoffice/components/admin/Dashboard.sublime-workspace +1 -1
  651. package/src/modules/backoffice/components/admin/FastOrders.vue +3 -3
  652. package/src/modules/backoffice/components/admin/UserEdit.vue +1 -1
  653. package/src/modules/backoffice/components/pages/Dashboard.vue +102 -139
  654. package/src/modules/backoffice/configs/navigation.backoffice.config.js +91 -29
  655. package/src/modules/backoffice/router/backoffice.router.js +7 -1
  656. package/src/modules/chats/components/blocks/ChatMessage.vue +1 -1
  657. package/src/modules/chats/components/sections/ChatWindow.vue +1 -1
  658. package/src/modules/community/community.client.js +4 -4
  659. package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
  660. package/src/modules/community/components/layouts/Community.vue +4 -4
  661. package/src/modules/community/components/sections/Comment.vue +1 -1
  662. package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
  663. package/src/modules/core/TASK.MD +2 -2
  664. package/src/modules/core/controllers/classes/abac/abac.core.js +1 -0
  665. package/src/modules/core/controllers/classes/core.websocket.js +0 -2
  666. package/src/modules/core/controllers/classes/crud/crud.core.js +6 -0
  667. package/src/modules/core/controllers/classes/crud/crud.service.js +6 -0
  668. package/src/modules/core/controllers/utils/mailing.js +35 -26
  669. package/src/modules/core/controllers/utils/queryProcessor.js +4 -2
  670. package/src/modules/core/core.client.js +1 -0
  671. package/src/modules/core/models/schemas/embedding.schema.js +8 -0
  672. package/src/modules/core/models/schemas/socials.schema.js +4 -0
  673. package/src/modules/core/sw.js +448 -0
  674. package/src/modules/core/views/classes/core.app.js +37 -13
  675. package/src/modules/core/views/classes/module.manager.js +3 -1
  676. package/src/modules/core/views/components/blocks/AlertDialog.vue +1 -1
  677. package/src/modules/core/views/components/blocks/BlockSearch.vue +1 -1
  678. package/src/modules/core/views/components/blocks/BlockSlider.vue +96 -0
  679. package/src/modules/core/views/components/blocks/CardHeader.vue +2 -2
  680. package/src/modules/core/views/components/blocks/CardStat.vue +4 -18
  681. package/src/modules/{auth → core}/views/components/blocks/CardUser.vue +45 -20
  682. package/src/modules/core/views/components/blocks/HelpCard.vue +1 -1
  683. package/src/modules/core/views/components/blocks/PopupAuth.vue +1 -1
  684. package/src/modules/core/views/components/blocks/PopupDateSelector.vue +41 -24
  685. package/src/modules/core/views/components/layouts/Client.vue +1 -1
  686. package/src/modules/core/views/components/pages/404.vue +5 -5
  687. package/src/modules/core/views/components/partials/BottomNavigationBar.vue +5 -5
  688. package/src/modules/core/views/components/partials/CitySelection.vue +2 -2
  689. package/src/modules/core/views/components/partials/Footer.centered.vue +2 -2
  690. package/src/modules/core/views/components/partials/Footer.vue +2 -2
  691. package/src/modules/core/views/components/partials/Header.vue +3 -3
  692. package/src/modules/core/views/components/partials/LocationSelection.vue +1 -1
  693. package/src/modules/core/views/components/partials/Navigation.vue +1 -1
  694. package/src/modules/core/views/components/sections/Filters.vue +2 -2
  695. package/src/modules/core/views/components/sections/SectionPageTitle.vue +2 -2
  696. package/src/modules/core/views/components/sections/Walkthrough.vue +6 -6
  697. package/src/modules/core/views/mixins/mixins.js +17 -0
  698. package/src/modules/core/views/plugins/date-picker.plugin.js +8 -5
  699. package/src/modules/core/views/store/core.store.js +5 -0
  700. package/src/modules/core/views/utils/vue-app-renderer.js +5 -0
  701. package/src/modules/events/components/pages/EditEventTickets.vue +9 -9
  702. package/src/modules/events/components/pages/Event.vue +2 -2
  703. package/src/modules/events/components/sections/EditTickets.vue +1 -1
  704. package/src/modules/events/components/sections/SelectDate.vue +1 -1
  705. package/src/modules/events/events.client.js +4 -4
  706. package/src/modules/gallery/components/sections/BackofficeGallery.vue +1 -1
  707. package/src/modules/gallery/router/gallery.router.js +3 -3
  708. package/src/modules/governance/middlewares/sprints.verifier.js +3 -3
  709. package/src/modules/governance/middlewares/tasks.verifier.js +3 -3
  710. package/src/modules/governance/models/sprint.model.js +1 -1
  711. package/src/modules/governance/models/task.model.js +1 -1
  712. package/src/modules/governance/reactcode/src/components/TaskStatusBadge.tsx +1 -1
  713. package/src/modules/governance/views/components/blocks/CardInitiativeItem.vue +3 -3
  714. package/src/modules/governance/views/components/blocks/CardSprintItem.vue +4 -4
  715. package/src/modules/governance/views/components/blocks/CardTaskItem.vue +2 -2
  716. package/src/modules/governance/views/components/blocks/CardVotingItem.vue +3 -3
  717. package/src/modules/governance/views/components/pages/Initiatives.vue +3 -3
  718. package/src/modules/governance/views/components/partials/TaskStatusBadge.vue +1 -1
  719. package/src/modules/governance/views/components/sections/FormSprintDetails.vue +1 -1
  720. package/src/modules/governance/views/components/sections/FormTaskDetails.vue +1 -1
  721. package/src/modules/governance/views/router/governance.router.js +3 -3
  722. package/src/modules/icons/components/IconSearchPopup.vue +1 -1
  723. package/src/modules/icons/entities/IconApplications.vue +14 -0
  724. package/src/modules/icons/entities/IconCustomers.vue +14 -0
  725. package/src/modules/icons/entities/IconUsers.vue +14 -0
  726. package/src/modules/inventory/components/forms/AdjustmentForm.vue +2 -2
  727. package/src/modules/inventory/components/forms/ColumnSettingsMenu.vue +2 -2
  728. package/src/modules/inventory/components/forms/HistoryView.vue +1 -1
  729. package/src/modules/inventory/components/forms/StockAlertsForm.vue +3 -3
  730. package/src/modules/inventory/components/pages/Inventory.vue +278 -159
  731. package/src/modules/inventory/components/pages/InventoryEdit.vue +2 -2
  732. package/src/modules/inventory/inventory.client.js +4 -4
  733. package/src/modules/inventory/models/stock.audit.model.js +1 -1
  734. package/src/modules/inventory/router/inventory.router.js +12 -0
  735. package/src/modules/landing/components/sections/SectionEarn.vue +3 -3
  736. package/src/modules/landing/components/sections/SectionFeature.vue +1 -1
  737. package/src/modules/landing/components/sections/SectionFeatures.vue +1 -1
  738. package/src/modules/landing/components/sections/SectionFeaturesImages.vue +2 -2
  739. package/src/modules/landing/components/sections/SectionGuide.vue +2 -2
  740. package/src/modules/landing/components/sections/SectionHeroToken.vue +1 -1
  741. package/src/modules/landing/components/sections/SectionHeroVideo.vue +1 -1
  742. package/src/modules/landing/components/sections/SectionMobileApp.vue +2 -2
  743. package/src/modules/landing/components/sections/SectionOverview.vue +1 -1
  744. package/src/modules/landing/components/sections/SectionRoadmap.vue +1 -1
  745. package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
  746. package/src/modules/marketplace/views/components/sections/SectionMenu.vue +2 -2
  747. package/src/modules/music/components/SidebarMusic.vue +1 -1
  748. package/src/modules/music/components/cards/AlbumCard.vue +1 -1
  749. package/src/modules/music/components/cards/ArtistCard.vue +1 -1
  750. package/src/modules/music/components/cards/ArtistCardSmall.vue +1 -1
  751. package/src/modules/music/components/cards/PlaylistCard.vue +1 -1
  752. package/src/modules/music/components/cards/TrackListCard.vue +6 -6
  753. package/src/modules/music/components/forms/AlbumForm.vue +2 -2
  754. package/src/modules/music/components/forms/ArtistForm.vue +1 -1
  755. package/src/modules/music/components/forms/PlaylistForm.vue +5 -5
  756. package/src/modules/music/components/forms/TrackForm.vue +3 -3
  757. package/src/modules/music/components/pages/Album.vue +8 -8
  758. package/src/modules/music/components/pages/Artist.vue +5 -5
  759. package/src/modules/music/components/pages/Playlist.vue +11 -11
  760. package/src/modules/music/components/pages/SearchResults.vue +2 -2
  761. package/src/modules/music/components/pages/Track.vue +11 -11
  762. package/src/modules/music/components/player/FullscreenPlayer.vue +3 -3
  763. package/src/modules/music/components/player/TrackProgress.vue +1 -1
  764. package/src/modules/notifications/components/sections/NotificationPreferences.vue +182 -52
  765. package/src/modules/notifications/controllers/notifications.controller.js +242 -17
  766. package/src/modules/notifications/models/notification-preference.model.js +4 -0
  767. package/src/modules/notifications/notifications.client.js +213 -20
  768. package/src/modules/notifications/router/notifications.backoffice.router.js +16 -0
  769. package/src/modules/notifications/router/notifications.router.js +13 -45
  770. package/src/modules/notifications/routes/notifications.routes.js +9 -0
  771. package/src/modules/notifications/services/notification.service.js +33 -9
  772. package/src/modules/notifications/services/telegram.service.js +2 -2
  773. package/src/modules/notifications/services/web-push.service.js +6 -2
  774. package/src/modules/notifications/store/notifications.store.js +69 -0
  775. package/src/modules/orders/components/blocks/CardApplication.vue +9 -6
  776. package/src/modules/orders/components/blocks/CardCustomer.vue +10 -7
  777. package/src/modules/orders/components/blocks/CardOrder.vue +8 -8
  778. package/src/modules/orders/components/blocks/CardOrderBackoffice.vue +58 -12
  779. package/src/modules/orders/components/blocks/CardOrderItem.vue +31 -28
  780. package/src/modules/orders/components/blocks/CardOrderUser.vue +7 -12
  781. package/src/modules/orders/components/blocks/CardOrderVar1.vue +3 -3
  782. package/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue +1 -1
  783. package/src/modules/orders/components/elements/PriceTotal.vue +4 -4
  784. package/src/modules/orders/components/forms/FormApplicationDetails.vue +1 -1
  785. package/src/modules/orders/components/forms/FormSelectCustomer.vue +48 -25
  786. package/src/modules/orders/components/pages/Applications.vue +2 -2
  787. package/src/modules/orders/components/pages/Customers.vue +35 -23
  788. package/src/modules/orders/components/pages/OrderBackoffice.vue +780 -393
  789. package/src/modules/orders/components/pages/OrderCreate.vue +5 -4
  790. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +112 -42
  791. package/src/modules/orders/components/pages/Orders.vue +20 -19
  792. package/src/modules/orders/components/pages/Orders_refact.vue +3 -3
  793. package/src/modules/orders/components/partials/ShopCart.vue +1 -1
  794. package/src/modules/orders/components/sections/ApplicationDetails.vue +2 -2
  795. package/src/modules/orders/components/sections/AskToLogin.vue +1 -1
  796. package/src/modules/orders/components/sections/CustomerDetails.vue +130 -64
  797. package/src/modules/orders/controllers/orders.controller.js +463 -134
  798. package/src/modules/orders/middlewares/applications.verifier.js +3 -3
  799. package/src/modules/orders/middlewares/customers.verifier.js +4 -0
  800. package/src/modules/orders/middlewares/orders.verifier.js +187 -0
  801. package/src/modules/orders/models/customer.model.js +2 -0
  802. package/src/modules/orders/models/order.model.js +20 -2
  803. package/src/modules/orders/orders.client.js +21 -19
  804. package/src/modules/orders/routes/applications.routes.js +13 -3
  805. package/src/modules/orders/routes/customers.routes.js +2 -0
  806. package/src/modules/orders/routes/orders.routes.js +46 -4
  807. package/src/modules/orders/store/orders.js +4 -7
  808. package/src/modules/orders/store/shopcart.js +6 -7
  809. package/src/modules/orders/utils/rent-price.js +90 -0
  810. package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
  811. package/src/modules/organizations/components/blocks/CardOrganization.vue +30 -33
  812. package/src/modules/organizations/components/blocks/EmptyState.vue +1 -1
  813. package/src/modules/organizations/components/blocks/Rating.vue +1 -1
  814. package/src/modules/organizations/components/blocks/Socials.vue +2 -2
  815. package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +1 -1
  816. package/src/modules/organizations/components/forms/AddExistingMembersForm.vue +3 -3
  817. package/src/modules/organizations/components/forms/DepartmentForm.vue +1 -1
  818. package/src/modules/organizations/components/forms/InviteForm.vue +1 -1
  819. package/src/modules/organizations/components/pages/Department.vue +2 -2
  820. package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
  821. package/src/modules/organizations/components/pages/Members.vue +8 -8
  822. package/src/modules/organizations/components/pages/Organization.vue +232 -124
  823. package/src/modules/organizations/components/pages/OrganizationCreate.vue +3 -3
  824. package/src/modules/organizations/components/pages/OrganizationDocuments.vue +1 -1
  825. package/src/modules/organizations/components/pages/OrganizationEdit.vue +15 -6
  826. package/src/modules/organizations/components/pages/Organizations.vue +3 -2
  827. package/src/modules/organizations/components/sections/Documents.vue +1 -1
  828. package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
  829. package/src/modules/organizations/configs/navigation.organization.config.js +34 -26
  830. package/src/modules/organizations/controllers/organizations.controller.js +8 -3
  831. package/src/modules/organizations/models/organization.model.js +1 -0
  832. package/src/modules/organizations/organizations.client.js +39 -33
  833. package/src/modules/organizations/router/organizations.backoffice.router.js +67 -0
  834. package/src/modules/pages/views/components/pages/Pages.vue +1 -1
  835. package/src/modules/pages/views/router/pages.router.js +2 -2
  836. package/src/modules/products/components/blocks/CardPosition.vue +2 -2
  837. package/src/modules/products/components/blocks/CardProduct.vue +2 -2
  838. package/src/modules/products/components/blocks/ProductDiscounts.vue +1 -1
  839. package/src/modules/products/components/blocks/ProductImages.vue +1 -1
  840. package/src/modules/products/components/blocks/ProductVariants.vue +3 -3
  841. package/src/modules/products/components/elements/Price.vue +2 -2
  842. package/src/modules/products/components/forms/ColumnSettingsMenu.vue +2 -2
  843. package/src/modules/products/components/forms/ReorderSettingsForm.vue +3 -3
  844. package/src/modules/products/components/forms/StockAuditForm.vue +2 -2
  845. package/src/modules/products/components/forms/StockHistoryView.vue +1 -1
  846. package/src/modules/products/components/pages/Categories.vue +9 -20
  847. package/src/modules/products/components/pages/ProductEdit.vue +19 -3
  848. package/src/modules/products/components/pages/Products.vue +20 -19
  849. package/src/modules/products/components/sections/EditAttributes.vue +1 -1
  850. package/src/modules/products/components/sections/EditCategories.vue +1 -1
  851. package/src/modules/products/components/sections/EditDiscounts.vue +2 -2
  852. package/src/modules/products/components/sections/EditVariants.vue +14 -2
  853. package/src/modules/products/components/sections/FilterProducts.vue +1 -1
  854. package/src/modules/products/components/sections/ProductConfigurator.vue +1 -1
  855. package/src/modules/products/components/sections/SectionProduct.vue +3 -3
  856. package/src/modules/products/controllers/products.controller.js +50 -5
  857. package/src/modules/products/experiments/product-recommendation/components/HeroRecommendation.vue +2 -2
  858. package/src/modules/products/models/product.model.js +7 -0
  859. package/src/modules/products/models/variant.model.js +4 -0
  860. package/src/modules/products/router/categories.router.js +2 -2
  861. package/src/modules/products/router/products.router.js +14 -3
  862. package/src/modules/rents/controllers/routes/rents.routes.js +11 -0
  863. package/src/modules/rents/controllers/services/rents.services.js +193 -2
  864. package/src/modules/rents/models/rent.model.js +9 -0
  865. package/src/modules/rents/views/components/pages/Gant/GanttBar.vue +28 -11
  866. package/src/modules/rents/views/components/pages/Gant/GanttChart.vue +200 -40
  867. package/src/modules/rents/views/components/pages/Gant/GanttHeaderCell.vue +2 -2
  868. package/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue +2 -2
  869. package/src/modules/rents/views/components/pages/Rents.vue +641 -142
  870. package/src/modules/rents/views/components/pages/RentsEdit.vue +44 -4
  871. package/src/modules/rents/views/router/rents.router.js +3 -3
  872. package/src/modules/rents/views/store/rents.store.js +1 -1
  873. package/src/modules/reports/components/pages/BackofficeReports.vue +3 -3
  874. package/src/modules/reports/router/reports.router.js +1 -1
  875. package/src/modules/spots/components/blocks/CardSpot.vue +6 -6
  876. package/src/modules/spots/components/pages/Spot.vue +2 -2
  877. package/src/modules/spots/components/pages/SpotEdit.vue +8 -6
  878. package/src/modules/spots/components/pages/Spots.vue +18 -24
  879. package/src/modules/spots/components/sections/WorktimeEdit.vue +7 -7
  880. package/src/modules/spots/router/spots.router.js +3 -3
  881. package/src/modules/wallet/views/components/blocks/CashDeposit.vue +1 -1
  882. package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +3 -3
  883. package/src/modules/wallet/views/components/pages/Payments.vue +1 -1
  884. package/src/modules/wallet/views/components/pages/Wallet.vue +4 -4
  885. package/src/modules/wallet/views/router/wallet.router.js +1 -1
  886. package/src/styles/layout.scss +1 -1
  887. package/dist/martyrs/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js +0 -487
  888. package/dist/martyrs/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js.map +0 -1
  889. package/dist/martyrs/node_modules/.pnpm/@capacitor_preferences@7.0.2_@capacitor_core@7.4.4/node_modules/@capacitor/preferences/dist/esm/index.js +0 -8
  890. package/dist/martyrs/node_modules/.pnpm/@capacitor_preferences@7.0.2_@capacitor_core@7.4.4/node_modules/@capacitor/preferences/dist/esm/index.js.map +0 -1
  891. package/dist/martyrs/node_modules/.pnpm/@capacitor_preferences@7.0.2_@capacitor_core@7.4.4/node_modules/@capacitor/preferences/dist/esm/web.js +0 -73
  892. package/dist/martyrs/node_modules/.pnpm/@capacitor_preferences@7.0.2_@capacitor_core@7.4.4/node_modules/@capacitor/preferences/dist/esm/web.js.map +0 -1
  893. package/dist/martyrs/src/components/Loader/Loader.vue2.js.map +0 -1
  894. package/dist/martyrs/src/components/Tab/Tab.vue.js.map +0 -1
  895. package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.js.map +0 -1
  896. package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue.js.map +0 -1
  897. package/dist/martyrs/src/modules/icons/entities/IconCash.vue.js +0 -70
  898. package/dist/martyrs/src/modules/icons/entities/IconCash.vue.js.map +0 -1
  899. package/dist/martyrs.es100.js +0 -33
  900. package/dist/martyrs.es103.js +0 -31
  901. package/dist/martyrs.es110.js +0 -54
  902. package/dist/martyrs.es111.js +0 -327
  903. package/dist/martyrs.es150.js +0 -22
  904. package/dist/martyrs.es151.js +0 -31
  905. package/dist/martyrs.es152.js +0 -23
  906. package/dist/martyrs.es93.js +0 -35
  907. package/dist/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js +0 -487
  908. package/dist/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js.map +0 -1
  909. package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@1.16.8/node_modules/@googlemaps/js-api-loader/dist/index.js +0 -336
  910. package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@1.16.8/node_modules/@googlemaps/js-api-loader/dist/index.js.map +0 -1
  911. package/dist/node_modules/.pnpm/vue-draggable-next@2.2.1_sortablejs@1.15.6_vue@3.5.13_typescript@5.8.3_/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js.map +0 -1
@@ -37,7 +37,7 @@ export default (function (db) {
37
37
  default: 'created',
38
38
  validator: Validator.schema()
39
39
  .string()
40
- .oneOf(['created', 'in_progress', 'completed', 'cancelled'])
40
+ .oneOf(['created', 'in_progress', 'completed', 'canceled'])
41
41
  },
42
42
  owner: {
43
43
  rule: 'optional',
@@ -87,7 +87,7 @@ export default (function (db) {
87
87
  rule: 'optional',
88
88
  validator: Validator.schema()
89
89
  .string()
90
- .oneOf(['created', 'in_progress', 'completed', 'cancelled'])
90
+ .oneOf(['created', 'in_progress', 'completed', 'canceled'])
91
91
  }
92
92
  });
93
93
 
@@ -107,7 +107,7 @@ export default (function (db) {
107
107
  rule: 'optional',
108
108
  validator: Validator.schema()
109
109
  .string()
110
- .oneOf(['created', 'in_progress', 'completed', 'cancelled'])
110
+ .oneOf(['created', 'in_progress', 'completed', 'canceled'])
111
111
  },
112
112
  type: {
113
113
  rule: 'optional',
@@ -168,6 +168,10 @@ export default (function (db) {
168
168
  .string()
169
169
  .pattern(/^[0-9a-fA-F]{24}$/)
170
170
  },
171
+ search: {
172
+ rule: 'optional',
173
+ validator: Validator.schema().string().max(255)
174
+ },
171
175
  owner: {
172
176
  rule: 'optional',
173
177
  validator: Validator.schema().string()
@@ -0,0 +1,187 @@
1
+ import Validator from '@martyrs/src/modules/core/controllers/classes/core.validator.js';
2
+ import Verifier from '@martyrs/src/modules/core/controllers/classes/core.verifier.js';
3
+
4
+ export default (function (db) {
5
+
6
+ // Верификатор для создания заказа
7
+ const createVerifier = new Verifier({
8
+ positions: {
9
+ rule: 'required',
10
+ validator: Validator.schema()
11
+ .array()
12
+ .min(1, 'At least one position is required')
13
+ },
14
+ owner: {
15
+ rule: 'required',
16
+ validator: Validator.schema().object({
17
+ type: Validator.schema().string().oneOf(['user', 'organization', 'User', 'Organization']).required(),
18
+ target: Validator.schema().string().pattern(/^[0-9a-fA-F]{24}$/).required()
19
+ })
20
+ },
21
+ customer: {
22
+ rule: 'optional',
23
+ },
24
+ delivery: {
25
+ rule: 'optional',
26
+ },
27
+ payment: {
28
+ rule: 'optional',
29
+ },
30
+ comment: {
31
+ rule: 'optional',
32
+ validator: Validator.schema()
33
+ .string()
34
+ .max(2000, 'Comment must not exceed 2000 characters')
35
+ }
36
+ });
37
+
38
+ // Верификатор для чтения заказов
39
+ const readVerifier = new Verifier({
40
+ _id: {
41
+ rule: 'optional',
42
+ validator: Validator.schema()
43
+ .string()
44
+ .pattern(/^[0-9a-fA-F]{24}$/)
45
+ },
46
+ owner: {
47
+ rule: 'optional',
48
+ validator: Validator.schema().string()
49
+ },
50
+ status: {
51
+ rule: 'optional',
52
+ validator: Validator.schema()
53
+ .string()
54
+ .oneOf(['created', 'confirmed', 'processing', 'ready', 'delivering', 'completed', 'canceled', 'closed'])
55
+ },
56
+ skip: {
57
+ rule: 'optional',
58
+ default: 0,
59
+ validator: Validator.schema()
60
+ .integer()
61
+ .min(0)
62
+ },
63
+ limit: {
64
+ rule: 'optional',
65
+ default: 20,
66
+ validator: Validator.schema()
67
+ .integer()
68
+ .min(1)
69
+ .max(100)
70
+ },
71
+ sortParam: {
72
+ rule: 'optional',
73
+ validator: Validator.schema()
74
+ .string()
75
+ .oneOf(['createdAt', 'updatedAt', 'totalPrice', 'status'])
76
+ },
77
+ sortOrder: {
78
+ rule: 'optional',
79
+ default: 'desc',
80
+ validator: Validator.schema()
81
+ .string()
82
+ .oneOf(['asc', 'desc'])
83
+ },
84
+ dateStart: {
85
+ rule: 'optional',
86
+ validator: Validator.schema().string()
87
+ },
88
+ dateEnd: {
89
+ rule: 'optional',
90
+ validator: Validator.schema().string()
91
+ },
92
+ search: {
93
+ rule: 'optional',
94
+ validator: Validator.schema()
95
+ .string()
96
+ .max(255)
97
+ }
98
+ });
99
+
100
+ // Верификатор для обновления заказа
101
+ const updateVerifier = new Verifier({
102
+ _id: {
103
+ rule: 'required',
104
+ validator: Validator.schema()
105
+ .string()
106
+ .required('Order ID is required')
107
+ .pattern(/^[0-9a-fA-F]{24}$/, 'Invalid ID format')
108
+ },
109
+ status: {
110
+ rule: 'optional',
111
+ validator: Validator.schema()
112
+ .string()
113
+ .oneOf(['created', 'confirmed', 'processing', 'ready', 'delivering', 'completed', 'canceled', 'closed'])
114
+ },
115
+ positions: {
116
+ rule: 'optional',
117
+ validator: Validator.schema().array()
118
+ },
119
+ payment: {
120
+ rule: 'optional',
121
+ },
122
+ comment: {
123
+ rule: 'optional',
124
+ validator: Validator.schema()
125
+ .string()
126
+ .max(2000, 'Comment must not exceed 2000 characters')
127
+ }
128
+ });
129
+
130
+ // Верификатор для удаления заказа
131
+ const deleteVerifier = new Verifier({
132
+ _id: {
133
+ rule: 'required',
134
+ validator: Validator.schema()
135
+ .string()
136
+ .required('Order ID is required')
137
+ .pattern(/^[0-9a-fA-F]{24}$/)
138
+ }
139
+ });
140
+
141
+ return {
142
+ verifyCreate(req, res, next) {
143
+ const verification = createVerifier.verify(req.body);
144
+ if (!verification.isValid) {
145
+ return res.status(400).json({
146
+ errors: verification.verificationErrors,
147
+ message: 'Invalid request data',
148
+ });
149
+ }
150
+ req.verifiedBody = verification.verifiedData;
151
+ next();
152
+ },
153
+ verifyRead(req, res, next) {
154
+ const verification = readVerifier.verify(req.query);
155
+ if (!verification.isValid) {
156
+ return res.status(400).json({
157
+ errors: verification.verificationErrors,
158
+ message: 'Invalid query parameters',
159
+ });
160
+ }
161
+ req.verifiedQuery = verification.verifiedData;
162
+ next();
163
+ },
164
+ verifyUpdate(req, res, next) {
165
+ const verification = updateVerifier.verify(req.body);
166
+ if (!verification.isValid) {
167
+ return res.status(400).json({
168
+ errors: verification.verificationErrors,
169
+ message: 'Invalid request data',
170
+ });
171
+ }
172
+ req.verifiedBody = verification.verifiedData;
173
+ next();
174
+ },
175
+ verifyDelete(req, res, next) {
176
+ const verification = deleteVerifier.verify(req.body);
177
+ if (!verification.isValid) {
178
+ return res.status(400).json({
179
+ errors: verification.verificationErrors,
180
+ message: 'Invalid request data',
181
+ });
182
+ }
183
+ req.verifiedBody = verification.verifiedData;
184
+ next();
185
+ }
186
+ };
187
+ });
@@ -1,6 +1,7 @@
1
1
  import applyCredentialsSchema from '@martyrs/src/modules/core/models/schemas/credentials.schema.js';
2
2
  import applyOwnershipSchema from '@martyrs/src/modules/core/models/schemas/ownership.schema.js';
3
3
  import applyProfileSchema from '@martyrs/src/modules/core/models/schemas/profile.schema.js';
4
+ import applySocialsSchema from '@martyrs/src/modules/core/models/schemas/socials.schema.js';
4
5
  export default db => {
5
6
  const CustomerSchema = new db.mongoose.Schema(
6
7
  {
@@ -72,6 +73,7 @@ export default db => {
72
73
  applyCredentialsSchema(CustomerSchema, db);
73
74
  applyProfileSchema(CustomerSchema, db);
74
75
  applyOwnershipSchema(CustomerSchema, db);
76
+ applySocialsSchema(CustomerSchema, db);
75
77
 
76
78
 
77
79
  CustomerSchema.index(
@@ -13,8 +13,26 @@ export default db => {
13
13
  required: true,
14
14
  },
15
15
  },
16
- positions: {
17
- type: Array,
16
+ positions: [{
17
+ _id: { type: db.mongoose.Schema.Types.ObjectId, ref: 'Product' },
18
+ variant: { type: db.mongoose.Schema.Types.ObjectId, ref: 'Variant', default: null },
19
+ name: { type: String },
20
+ images: { type: Array },
21
+ listing: { type: String, enum: ['sale', 'rent'] },
22
+ rentPeriod: { type: String, enum: ['hour', '4hours', 'flat', 'day', 'week', 'month'], default: 'day' },
23
+ price: { type: Number },
24
+ cost: { type: Number, default: 0 },
25
+ quantity: { type: Number, default: 1 },
26
+ unit: { type: String },
27
+ date: {
28
+ start: { type: Date },
29
+ end: { type: Date },
30
+ },
31
+ totalPrice: { type: Number, default: 0 },
32
+ }],
33
+ totalPrice: {
34
+ type: Number,
35
+ default: 0,
18
36
  },
19
37
  referralCode: {
20
38
  type: String,
@@ -46,21 +46,23 @@ function initializeOrders(app, store, router, options = {}) {
46
46
 
47
47
  if (typeof window !== 'undefined') storeShopcart.actions.setShopcart()
48
48
 
49
- addRoutes(router, {
50
- parentName: route,
51
- basePath: 'orders',
52
- routes: routerOrders,
53
- routeNamePrefix: '',
54
- filterConfig: {
55
- include: ['CreateOrder', 'Order'], // Только создание заказа на корневом уровне
56
- },
57
- meta: {
58
- context: 'root',
59
- },
60
- });
49
+ if (!options.contexts || options.contexts.includes('client')) {
50
+ addRoutes(router, {
51
+ parentName: route,
52
+ basePath: 'orders',
53
+ routes: routerOrders,
54
+ routeNamePrefix: '',
55
+ filterConfig: {
56
+ include: ['CreateOrder', 'Order'], // Только создание заказа на корневом уровне
57
+ },
58
+ meta: {
59
+ context: 'root',
60
+ },
61
+ });
62
+ }
61
63
 
62
64
  // Backoffice routes
63
- if (!options.withBackoffice) {
65
+ if (!options.contexts || options.contexts.includes('backoffice')) {
64
66
  addRoutes(router, {
65
67
  parentName: routeBackoffice,
66
68
  basePath: 'orders', // Промежуточный маршрут /backoffice/orders
@@ -76,7 +78,7 @@ function initializeOrders(app, store, router, options = {}) {
76
78
  }
77
79
 
78
80
  // User routes
79
- if (!options.withUserRoutes) {
81
+ if (!options.contexts || options.contexts.includes('user')) {
80
82
  addRoutes(router, {
81
83
  parentName: routeUsers,
82
84
  basePath: 'orders', // Промежуточный маршрут /user/orders
@@ -92,7 +94,7 @@ function initializeOrders(app, store, router, options = {}) {
92
94
  }
93
95
 
94
96
  // Organization routes
95
- if (!options.withOrganizationRoutes) {
97
+ if (!options.contexts || options.contexts.includes('organization')) {
96
98
  addRoutes(router, {
97
99
  parentName: routeOrganizations,
98
100
  basePath: 'orders', // Промежуточный маршрут /organization/orders
@@ -108,7 +110,7 @@ function initializeOrders(app, store, router, options = {}) {
108
110
  }
109
111
 
110
112
  // Customer routes for backoffice
111
- if (!options.withBackoffice) {
113
+ if (!options.contexts || options.contexts.includes('backoffice')) {
112
114
  addRoutes(router, {
113
115
  parentName: routeBackoffice,
114
116
  basePath: 'customers',
@@ -124,7 +126,7 @@ function initializeOrders(app, store, router, options = {}) {
124
126
  }
125
127
 
126
128
  // Customer routes for organizations
127
- if (!options.withOrganizationRoutes) {
129
+ if (!options.contexts || options.contexts.includes('organization')) {
128
130
  addRoutes(router, {
129
131
  parentName: routeOrganizations,
130
132
  basePath: 'customers',
@@ -140,7 +142,7 @@ function initializeOrders(app, store, router, options = {}) {
140
142
  }
141
143
 
142
144
  // Application routes for backoffice
143
- if (!options.withBackoffice) {
145
+ if (!options.contexts || options.contexts.includes('backoffice')) {
144
146
  addRoutes(router, {
145
147
  parentName: routeBackoffice,
146
148
  basePath: 'applications',
@@ -156,7 +158,7 @@ function initializeOrders(app, store, router, options = {}) {
156
158
  }
157
159
 
158
160
  // Application routes for organizations
159
- if (!options.withOrganizationRoutes) {
161
+ if (!options.contexts || options.contexts.includes('organization')) {
160
162
  addRoutes(router, {
161
163
  parentName: routeOrganizations,
162
164
  basePath: 'applications',
@@ -23,7 +23,18 @@ export default function setupApplicationsRoutes(app, db) {
23
23
  { $project: { userId: '$_id' }}
24
24
  ];
25
25
  const result = await db.department.aggregate(pipeline);
26
- return result.map(item => item.userId);
26
+ let userIds = result.map(item => item.userId);
27
+
28
+ // Фоллбэк: если нет участников в отделах — отправляем owner организации
29
+ if (userIds.length === 0) {
30
+ const org = await db.organization.findById(organizationId, { owner: 1 }).lean();
31
+ if (org?.owner) {
32
+ userIds = [org.owner];
33
+ console.log('Applications: fallback to org owner:', org.owner);
34
+ }
35
+ }
36
+
37
+ return userIds;
27
38
  };
28
39
 
29
40
  const sendApplicationNotifications = async (application, userIds) => {
@@ -167,8 +178,7 @@ export default function setupApplicationsRoutes(app, db) {
167
178
 
168
179
  const saved = await applicationsCRUD.service.create(applicationData);
169
180
 
170
- // Push notifications
171
- notifyApplicationCreated(saved).catch(console.error);
181
+ // Push notifications handled by afterCreate hook
172
182
 
173
183
  res.status(201).json(saved);
174
184
  } catch (error) {
@@ -27,6 +27,8 @@ export default function setupCustomersRoutes(app, db) {
27
27
 
28
28
  abac: abac,
29
29
 
30
+ searchFields: ['profile.name', 'phone', 'email'],
31
+
30
32
  cache: {
31
33
  enabled: true,
32
34
  ttl: 300,
@@ -1,24 +1,35 @@
1
1
  import middlewareFactoryAuth from '@martyrs/src/modules/auth/controllers/middlewares/index.js';
2
2
  import controllerFactory from '../controllers/orders.controller.js';
3
+ import verifierFactory from '../middlewares/orders.verifier.js';
3
4
  import ABAC from '@martyrs/src/modules/core/controllers/classes/abac/abac.js';
4
5
  const { getInstance } = ABAC;
5
6
  export default (function (app, db, origins, publicPath) {
6
7
  const controller = controllerFactory(db);
7
8
  const middleware = middlewareFactoryAuth(db);
8
9
  const abac = getInstance(db);
10
+ const verifier = verifierFactory(db);
9
11
  app.post(
10
12
  '/api/orders/create',
11
13
  [
12
- middleware.authJwt.verifyToken(true)
14
+ middleware.authJwt.verifyToken(true),
15
+ verifier.verifyCreate
13
16
  ],
14
17
  controller.create
15
18
  );
16
19
  app.get('/api/orders/read',
17
20
  [
18
- middleware.authJwt.verifyToken(true)
21
+ middleware.authJwt.verifyToken(),
22
+ abac.middleware('orders', 'read'),
23
+ verifier.verifyRead
19
24
  ],
20
25
  controller.read
21
26
  );
27
+ app.get('/api/orders/my',
28
+ [
29
+ middleware.authJwt.verifyToken(true)
30
+ ],
31
+ controller.readMy
32
+ );
22
33
  app.get('/api/orders/stats',
23
34
  middleware.authJwt.verifyToken(),
24
35
  abac.middleware('orders', 'read'),
@@ -27,15 +38,46 @@ export default (function (app, db, origins, publicPath) {
27
38
  app.post(
28
39
  '/api/orders/update',
29
40
  [
30
- middleware.authJwt.verifyToken()
41
+ middleware.authJwt.verifyToken(),
42
+ abac.middleware('orders', 'confirm'),
43
+ verifier.verifyUpdate
31
44
  ],
32
45
  controller.update
33
46
  );
34
47
  app.post(
35
48
  '/api/orders/delete',
36
49
  [
37
- middleware.authJwt.verifyToken()
50
+ middleware.authJwt.verifyToken(),
51
+ abac.middleware('orders', 'delete'),
52
+ verifier.verifyDelete
38
53
  ],
39
54
  controller.deleteOrder
40
55
  );
56
+
57
+ // Internal endpoint for Telegram callback actions (confirm/cancel via bot buttons)
58
+ app.post(
59
+ '/api/orders/telegram-action',
60
+ [
61
+ middleware.authJwt.verifyToken(), // X-Service-Key bypass
62
+ ],
63
+ async (req, res) => {
64
+ try {
65
+ const { action, orderId } = req.body;
66
+ if (!action || !orderId) {
67
+ return res.status(400).json({ message: 'action and orderId are required' });
68
+ }
69
+ if (!['confirm', 'cancel'].includes(action)) {
70
+ return res.status(400).json({ message: 'action must be confirm or cancel' });
71
+ }
72
+ const result = await controller.handleTelegramAction(action, orderId);
73
+ if (!result.success) {
74
+ return res.status(400).json(result);
75
+ }
76
+ return res.status(200).json(result);
77
+ } catch (err) {
78
+ console.error('[Telegram Action] Error:', err);
79
+ return res.status(500).json({ message: 'Internal error' });
80
+ }
81
+ }
82
+ );
41
83
  });
@@ -6,6 +6,8 @@ import $axios from '@martyrs/src/modules/core/views/utils/axios-instance.js';
6
6
  import { setError } from '@martyrs/src/modules/core/views/store/core.store.js';
7
7
  // Init State
8
8
  import orderInitState from '@martyrs/src/modules/orders/store/models/order.js';
9
+ // Rent price utils
10
+ import { calcRentTotalPrice } from '@martyrs/src/modules/orders/utils/rent-price.js';
9
11
 
10
12
  const state = reactive({
11
13
  all: [],
@@ -160,14 +162,9 @@ const getters = {
160
162
  getTotal(positions) {
161
163
  return Number(
162
164
  positions.reduce((total, product) => {
163
- // Проверяем тип листинга
164
- if (product.listing === 'rent') {
165
- const start = new Date(product.date.start);
166
- const end = new Date(product.date.end);
167
- const diffTime = Math.abs(end - start);
168
- return total + product.price * (Math.ceil(diffTime / (1000 * 60 * 60 * 24)) + 1);
165
+ if (product.listing === 'rent' && product.date?.start && product.date?.end) {
166
+ return total + calcRentTotalPrice(product.price, product.quantity, product.date.start, product.date.end, product.rentPeriod || 'day');
169
167
  } else {
170
- // Для обычных товаров умножаем на количество
171
168
  return total + product.price * (product.quantity || 1);
172
169
  }
173
170
  }, 0)
@@ -7,6 +7,8 @@ import { computed, reactive, watch } from 'vue';
7
7
  import { setError, setSnack } from '@martyrs/src/modules/core/views/store/core.store.js';
8
8
  // Capacitor Preferences
9
9
  import { Preferences } from '@capacitor/preferences';
10
+ // Rent price utils
11
+ import { calcRentTotalPrice } from '@martyrs/src/modules/orders/utils/rent-price.js';
10
12
 
11
13
  /////////////////////////////
12
14
  // State
@@ -146,7 +148,9 @@ const actions = {
146
148
  images: variant.images?.length > 0 ? variant.images : product.images,
147
149
  name: product.name,
148
150
  listing: product.listing,
151
+ rentPeriod: product.rentPeriod || 'day',
149
152
  price: variant.price || product.price,
153
+ cost: variant.cost || 0,
150
154
  quantity: quantity,
151
155
  unit: variant.unit || product.unit,
152
156
  date: date,
@@ -240,14 +244,9 @@ const getters = {
240
244
  cartTotalPrice: computed(() => {
241
245
  return Number(
242
246
  state.positions.reduce((total, product) => {
243
- // Проверяем тип листинга
244
- if (product.listing === 'rent') {
245
- const start = new Date(product.date.start);
246
- const end = new Date(product.date.end);
247
- const diffTime = Math.abs(end - start);
248
- return total + product.price * (Math.ceil(diffTime / (1000 * 60 * 60 * 24)) + 1);
247
+ if (product.listing === 'rent' && product.date?.start && product.date?.end) {
248
+ return total + calcRentTotalPrice(product.price, product.quantity, product.date.start, product.date.end, product.rentPeriod || 'day');
249
249
  } else {
250
- // Для обычных товаров умножаем на количество
251
250
  return total + product.price * (product.quantity || 1);
252
251
  }
253
252
  }, 0)
@@ -0,0 +1,90 @@
1
+ /**
2
+ * Calculate rental duration periods count based on rentPeriod type
3
+ * @param {Date|string} start
4
+ * @param {Date|string} end
5
+ * @param {string} rentPeriod - 'hour' | '4hours' | 'flat' | 'day' | 'week' | 'month'
6
+ * @returns {number} number of periods (minimum 1)
7
+ */
8
+ export function calcRentPeriods(start, end, rentPeriod = 'day') {
9
+ const s = new Date(start)
10
+ const e = new Date(end)
11
+ const diffMs = Math.abs(e - s)
12
+ const diffHours = diffMs / (1000 * 60 * 60)
13
+ const diffDays = diffMs / (1000 * 60 * 60 * 24)
14
+
15
+ switch (rentPeriod) {
16
+ case 'hour':
17
+ return Math.max(1, Math.ceil(diffHours))
18
+ case '4hours':
19
+ return Math.max(1, Math.ceil(diffHours / 4))
20
+ case 'flat':
21
+ return 1
22
+ case 'day':
23
+ return Math.max(1, Math.ceil(diffDays) + 1)
24
+ case 'week':
25
+ return Math.max(1, Math.ceil(diffDays / 7))
26
+ case 'month':
27
+ return Math.max(1, Math.ceil(diffDays / 30))
28
+ default:
29
+ return Math.max(1, Math.ceil(diffDays) + 1)
30
+ }
31
+ }
32
+
33
+ /**
34
+ * Calculate total rental price
35
+ * @param {number} pricePerPeriod
36
+ * @param {number} quantity
37
+ * @param {Date|string} start
38
+ * @param {Date|string} end
39
+ * @param {string} rentPeriod
40
+ * @returns {number}
41
+ */
42
+ export function calcRentTotalPrice(pricePerPeriod, quantity, start, end, rentPeriod = 'day') {
43
+ const periods = calcRentPeriods(start, end, rentPeriod)
44
+ return pricePerPeriod * (quantity || 1) * periods
45
+ }
46
+
47
+ /**
48
+ * Format rent duration for display
49
+ * @param {Date|string} start
50
+ * @param {Date|string} end
51
+ * @param {string} rentPeriod
52
+ * @returns {string}
53
+ */
54
+ /**
55
+ * Format rent date range label for display
56
+ * @param {Date|string} start
57
+ * @param {Date|string} end
58
+ * @param {string} rentPeriod
59
+ * @param {Function} formatDate - formatDate from useGlobalMixins
60
+ * @returns {string} e.g. "11 Mar – 14 Mar" or "11 Mar, 10:00 – 14:00"
61
+ */
62
+ export function formatRentDateLabel(start, end, rentPeriod = 'day', formatDate) {
63
+ if (!start || !end) return ''
64
+ const isShortPeriod = ['hour', '4hours', 'flat'].includes(rentPeriod)
65
+ if (isShortPeriod) {
66
+ const s = new Date(start)
67
+ const e = new Date(end)
68
+ const dateStr = formatDate(s, { dayMonth: true })
69
+ const startTime = `${String(s.getHours()).padStart(2, '0')}:${String(s.getMinutes()).padStart(2, '0')}`
70
+ const endTime = `${String(e.getHours()).padStart(2, '0')}:${String(e.getMinutes()).padStart(2, '0')}`
71
+ return `${dateStr}, ${startTime} – ${endTime}`
72
+ }
73
+ return `${formatDate(start, { dayMonth: true })} – ${formatDate(end, { dayMonth: true })}`
74
+ }
75
+
76
+ export function formatRentDuration(start, end, rentPeriod = 'day') {
77
+ const periods = calcRentPeriods(start, end, rentPeriod)
78
+
79
+ const labels = {
80
+ hour: { one: 'hour', many: 'hours' },
81
+ '4hours': { one: '4 hours', many: '4 hours' },
82
+ 'flat': { one: 'flat', many: 'flat' },
83
+ day: { one: 'day', many: 'days' },
84
+ week: { one: 'week', many: 'weeks' },
85
+ month: { one: 'month', many: 'months' },
86
+ }
87
+
88
+ const label = labels[rentPeriod] || labels.day
89
+ return `${periods} ${periods === 1 ? label.one : label.many}`
90
+ }
@@ -32,7 +32,7 @@ import IconEdit from '@martyrs/src/modules/icons/navigation/IconEdit.vue'
32
32
 
33
33
  import Spoiler from '@martyrs/src/components/Spoiler/Spoiler.vue';
34
34
  import { DepartmentSub } from '@martyrs/src/modules/organizations/organizations.client.js';
35
- import User from '@martyrs/src/modules/auth/views/components/blocks/CardUser.vue';
35
+ import User from '@martyrs/src/modules/core/views/components/blocks/CardUser.vue';
36
36
 
37
37
  const props = defineProps({
38
38
  department: Object,