@ozdao/martyrs 0.2.604 → 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 (833) 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.vue2.js → EditImages.vue.js} +6 -6
  46. package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -0
  47. package/dist/martyrs/src/components/EmptyState/EmptyState.vue.js +1 -1
  48. package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
  49. package/dist/martyrs/src/components/Field/Field.vue.js +4 -4
  50. package/dist/martyrs/src/components/Field/Field.vue.js.map +1 -1
  51. package/dist/martyrs/src/components/FieldDate/FieldDate.vue.js +3 -3
  52. package/dist/martyrs/src/components/FieldDate/FieldDate.vue.js.map +1 -1
  53. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js +27 -21
  54. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js.map +1 -1
  55. package/dist/martyrs/src/components/Map/Map.vue.js +20 -16
  56. package/dist/martyrs/src/components/Map/Map.vue.js.map +1 -1
  57. package/dist/martyrs/src/components/Popup/Popup.vue.js +3 -4
  58. package/dist/martyrs/src/components/Popup/Popup.vue.js.map +1 -1
  59. package/dist/martyrs/src/components/Radio/Radio.vue.js +12 -10
  60. package/dist/martyrs/src/components/Radio/Radio.vue.js.map +1 -1
  61. package/dist/martyrs/src/components/Select/Select.vue.js +2 -2
  62. package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -1
  63. package/dist/martyrs/src/components/Status/Snack.vue.js +1 -1
  64. package/dist/martyrs/src/components/Status/Snack.vue.js.map +1 -1
  65. package/dist/martyrs/src/components/Status/Status.vue.js +1 -1
  66. package/dist/martyrs/src/components/Status/Status.vue.js.map +1 -1
  67. package/dist/martyrs/src/components/Table/Table.vue.js +21 -4
  68. package/dist/martyrs/src/components/Table/Table.vue.js.map +1 -1
  69. package/dist/martyrs/src/components/Tooltip/{Tooltip.vue2.js → Tooltip.vue.js} +2 -2
  70. package/dist/martyrs/src/components/Tooltip/Tooltip.vue.js.map +1 -0
  71. package/dist/martyrs/src/components/Tree/Tree.vue.js +1 -1
  72. package/dist/martyrs/src/components/Upload/Upload.vue2.js +2 -2
  73. package/dist/martyrs/src/components/Upload/Upload.vue2.js.map +1 -1
  74. package/dist/martyrs/src/components/UploadImage/UploadImage.vue.js +2 -2
  75. package/dist/martyrs/src/components/UploadImage/UploadImage.vue.js.map +1 -1
  76. package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  77. package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js.map +1 -1
  78. package/dist/martyrs/src/modules/auth/auth.client.js +14 -2
  79. package/dist/martyrs/src/modules/auth/auth.client.js.map +1 -1
  80. package/dist/martyrs/src/modules/auth/views/components/blocks/OtpDialog.vue.js +4 -4
  81. package/dist/martyrs/src/modules/auth/views/components/blocks/OtpDialog.vue.js.map +1 -1
  82. package/dist/martyrs/src/modules/auth/views/components/blocks/PopupAuth.vue.js +1 -1
  83. package/dist/martyrs/src/modules/auth/views/components/blocks/PopupAuth.vue.js.map +1 -1
  84. package/dist/martyrs/src/modules/auth/views/components/blocks/SidebarUserCard.vue.js +96 -0
  85. package/dist/martyrs/src/modules/auth/views/components/blocks/SidebarUserCard.vue.js.map +1 -0
  86. package/dist/martyrs/src/modules/auth/views/components/pages/BackofficeUsers.vue.js +337 -0
  87. package/dist/martyrs/src/modules/auth/views/components/pages/BackofficeUsers.vue.js.map +1 -0
  88. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
  89. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js.map +1 -1
  90. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +1 -1
  91. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
  92. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +32 -18
  93. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -1
  94. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +76 -40
  95. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js.map +1 -1
  96. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js +6 -5
  97. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js.map +1 -1
  98. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +4 -4
  99. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js.map +1 -1
  100. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +3 -1
  101. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
  102. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +3 -3
  103. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js.map +1 -1
  104. package/dist/martyrs/src/modules/auth/views/components/pages/UserDashboard.vue.js +28 -16
  105. package/dist/martyrs/src/modules/auth/views/components/pages/UserDashboard.vue.js.map +1 -1
  106. package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.js +1 -1
  107. package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.js.map +1 -1
  108. package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js +1 -1
  109. package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js.map +1 -1
  110. package/dist/martyrs/src/modules/auth/views/middlewares/auth.validation.js +6 -2
  111. package/dist/martyrs/src/modules/auth/views/middlewares/auth.validation.js.map +1 -1
  112. package/dist/martyrs/src/modules/auth/views/router/users.backoffice.router.js +53 -0
  113. package/dist/martyrs/src/modules/auth/views/router/users.backoffice.router.js.map +1 -0
  114. package/dist/martyrs/src/modules/auth/views/store/auth.js +2 -2
  115. package/dist/martyrs/src/modules/auth/views/store/auth.js.map +1 -1
  116. package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js +179 -253
  117. package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js.map +1 -1
  118. package/dist/martyrs/src/modules/backoffice/configs/navigation.backoffice.config.js +105 -44
  119. package/dist/martyrs/src/modules/backoffice/configs/navigation.backoffice.config.js.map +1 -1
  120. package/dist/martyrs/src/modules/backoffice/router/backoffice.router.js +11 -5
  121. package/dist/martyrs/src/modules/backoffice/router/backoffice.router.js.map +1 -1
  122. package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js +1 -1
  123. package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js.map +1 -1
  124. package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.js.map +1 -1
  125. package/dist/martyrs/src/modules/community/community.client.js +4 -4
  126. package/dist/martyrs/src/modules/community/community.client.js.map +1 -1
  127. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  128. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js.map +1 -1
  129. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +4 -4
  130. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js.map +1 -1
  131. package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js +2 -2
  132. package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js.map +1 -1
  133. package/dist/martyrs/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  134. package/dist/martyrs/src/modules/constructor/components/elements/ImageUpload.vue.js.map +1 -1
  135. package/dist/martyrs/src/modules/core/core.client.js +18 -16
  136. package/dist/martyrs/src/modules/core/core.client.js.map +1 -1
  137. package/dist/martyrs/src/modules/core/views/classes/core.app.js +25 -6
  138. package/dist/martyrs/src/modules/core/views/classes/core.app.js.map +1 -1
  139. package/dist/martyrs/src/modules/core/views/classes/module.manager.js +4 -2
  140. package/dist/martyrs/src/modules/core/views/classes/module.manager.js.map +1 -1
  141. package/dist/martyrs/src/modules/core/views/components/blocks/AlertDialog.vue.js +1 -1
  142. package/dist/martyrs/src/modules/core/views/components/blocks/AlertDialog.vue.js.map +1 -1
  143. package/dist/martyrs/src/modules/core/views/components/blocks/BlockSearch.vue.js +1 -1
  144. package/dist/martyrs/src/modules/core/views/components/blocks/BlockSearch.vue.js.map +1 -1
  145. package/dist/martyrs/src/modules/core/views/components/blocks/BlockSlider.vue.js +132 -0
  146. package/dist/martyrs/src/modules/core/views/components/blocks/BlockSlider.vue.js.map +1 -0
  147. package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js +3 -3
  148. package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js.map +1 -1
  149. package/dist/martyrs/src/modules/core/views/components/blocks/CardStat.vue.js +6 -28
  150. package/dist/martyrs/src/modules/core/views/components/blocks/CardStat.vue.js.map +1 -1
  151. package/dist/martyrs/src/modules/{auth → core}/views/components/blocks/CardUser.vue.js +29 -11
  152. package/dist/martyrs/src/modules/{auth → core}/views/components/blocks/CardUser.vue.js.map +1 -1
  153. package/dist/martyrs/src/modules/core/views/components/blocks/HelpCard.vue.js +2 -2
  154. package/dist/martyrs/src/modules/core/views/components/blocks/HelpCard.vue.js.map +1 -1
  155. package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js +41 -26
  156. package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js.map +1 -1
  157. package/dist/martyrs/src/modules/core/views/components/elements/OnlineIndicator.vue.js +1 -1
  158. package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js +2 -1
  159. package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js.map +1 -1
  160. package/dist/martyrs/src/modules/core/views/components/pages/404.vue.js +2 -2
  161. package/dist/martyrs/src/modules/core/views/components/pages/404.vue.js.map +1 -1
  162. package/dist/martyrs/src/modules/core/views/components/partials/BottomNavigationBar.vue.js +5 -5
  163. package/dist/martyrs/src/modules/core/views/components/partials/BottomNavigationBar.vue.js.map +1 -1
  164. package/dist/martyrs/src/modules/core/views/components/partials/CitySelection.vue.js +2 -2
  165. package/dist/martyrs/src/modules/core/views/components/partials/CitySelection.vue.js.map +1 -1
  166. package/dist/martyrs/src/modules/core/views/components/partials/Footer.vue.js +2 -2
  167. package/dist/martyrs/src/modules/core/views/components/partials/Footer.vue.js.map +1 -1
  168. package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js +4 -4
  169. package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js.map +1 -1
  170. package/dist/martyrs/src/modules/core/views/components/partials/LocationSelection.vue.js +1 -1
  171. package/dist/martyrs/src/modules/core/views/components/partials/LocationSelection.vue.js.map +1 -1
  172. package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js +2 -2
  173. package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js.map +1 -1
  174. package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue2.js +3 -3
  175. package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue2.js.map +1 -1
  176. package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js +2 -2
  177. package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js.map +1 -1
  178. package/dist/martyrs/src/modules/core/views/components/sections/Walkthrough.vue.js +6 -6
  179. package/dist/martyrs/src/modules/core/views/components/sections/Walkthrough.vue.js.map +1 -1
  180. package/dist/martyrs/src/modules/core/views/mixins/mixins.js +14 -1
  181. package/dist/martyrs/src/modules/core/views/mixins/mixins.js.map +1 -1
  182. package/dist/martyrs/src/modules/core/views/plugins/date-picker.plugin.js +8 -5
  183. package/dist/martyrs/src/modules/core/views/plugins/date-picker.plugin.js.map +1 -1
  184. package/dist/martyrs/src/modules/core/views/store/core.store.js +4 -0
  185. package/dist/martyrs/src/modules/core/views/store/core.store.js.map +1 -1
  186. package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js +3 -0
  187. package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js.map +1 -1
  188. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  189. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +9 -9
  190. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js.map +1 -1
  191. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +1 -1
  192. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
  193. package/dist/martyrs/src/modules/events/components/sections/EditTickets.vue.js +1 -1
  194. package/dist/martyrs/src/modules/events/components/sections/EditTickets.vue.js.map +1 -1
  195. package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js +1 -1
  196. package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js.map +1 -1
  197. package/dist/martyrs/src/modules/events/events.client.js +4 -4
  198. package/dist/martyrs/src/modules/events/events.client.js.map +1 -1
  199. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  200. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js.map +1 -1
  201. package/dist/martyrs/src/modules/gallery/router/gallery.router.js +3 -3
  202. package/dist/martyrs/src/modules/gallery/router/gallery.router.js.map +1 -1
  203. package/dist/martyrs/src/modules/governance/views/components/blocks/CardInitiativeItem.vue.js +3 -3
  204. package/dist/martyrs/src/modules/governance/views/components/blocks/CardInitiativeItem.vue.js.map +1 -1
  205. package/dist/martyrs/src/modules/governance/views/components/blocks/CardSprintItem.vue.js +4 -4
  206. package/dist/martyrs/src/modules/governance/views/components/blocks/CardSprintItem.vue.js.map +1 -1
  207. package/dist/martyrs/src/modules/governance/views/components/blocks/CardTaskItem.vue.js +2 -2
  208. package/dist/martyrs/src/modules/governance/views/components/blocks/CardTaskItem.vue.js.map +1 -1
  209. package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js +3 -3
  210. package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js.map +1 -1
  211. package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js +3 -3
  212. package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js.map +1 -1
  213. package/dist/martyrs/src/modules/governance/views/components/partials/TaskStatusBadge.vue.js +1 -1
  214. package/dist/martyrs/src/modules/governance/views/components/partials/TaskStatusBadge.vue.js.map +1 -1
  215. package/dist/martyrs/src/modules/governance/views/components/sections/FormSprintDetails.vue.js +1 -1
  216. package/dist/martyrs/src/modules/governance/views/components/sections/FormSprintDetails.vue.js.map +1 -1
  217. package/dist/martyrs/src/modules/governance/views/components/sections/FormTaskDetails.vue.js +1 -1
  218. package/dist/martyrs/src/modules/governance/views/components/sections/FormTaskDetails.vue.js.map +1 -1
  219. package/dist/martyrs/src/modules/governance/views/router/governance.router.js +3 -3
  220. package/dist/martyrs/src/modules/governance/views/router/governance.router.js.map +1 -1
  221. package/dist/martyrs/src/modules/icons/components/IconSearchPopup.vue.js +2 -2
  222. package/dist/martyrs/src/modules/icons/components/IconSearchPopup.vue.js.map +1 -1
  223. package/dist/martyrs/src/modules/icons/entities/IconApplications.vue.js +32 -0
  224. package/dist/martyrs/src/modules/icons/entities/IconApplications.vue.js.map +1 -0
  225. package/dist/martyrs/src/modules/icons/entities/IconCustomers.vue.js +32 -0
  226. package/dist/martyrs/src/modules/icons/entities/IconCustomers.vue.js.map +1 -0
  227. package/dist/martyrs/src/modules/icons/entities/IconUsers.vue.js +32 -0
  228. package/dist/martyrs/src/modules/icons/entities/IconUsers.vue.js.map +1 -0
  229. package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +2 -2
  230. package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js.map +1 -1
  231. package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js +2 -2
  232. package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js.map +1 -1
  233. package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js +1 -1
  234. package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js.map +1 -1
  235. package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +3 -3
  236. package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js.map +1 -1
  237. package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js +290 -173
  238. package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js.map +1 -1
  239. package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +1 -1
  240. package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js.map +1 -1
  241. package/dist/martyrs/src/modules/inventory/inventory.client.js +4 -4
  242. package/dist/martyrs/src/modules/inventory/inventory.client.js.map +1 -1
  243. package/dist/martyrs/src/modules/inventory/router/inventory.router.js +15 -0
  244. package/dist/martyrs/src/modules/inventory/router/inventory.router.js.map +1 -1
  245. package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.js +4 -4
  246. package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.js.map +1 -1
  247. package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.js +1 -1
  248. package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.js.map +1 -1
  249. package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.js +3 -3
  250. package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.js.map +1 -1
  251. package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js +2 -2
  252. package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js.map +1 -1
  253. package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.js +1 -1
  254. package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.js.map +1 -1
  255. package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js +2 -2
  256. package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js.map +1 -1
  257. package/dist/martyrs/src/modules/landing/components/sections/SectionOverview.vue.js +1 -1
  258. package/dist/martyrs/src/modules/landing/components/sections/SectionOverview.vue.js.map +1 -1
  259. package/dist/martyrs/src/modules/landing/components/sections/SectionRoadmap.vue.js +2 -2
  260. package/dist/martyrs/src/modules/landing/components/sections/SectionRoadmap.vue.js.map +1 -1
  261. package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +1 -1
  262. package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js.map +1 -1
  263. package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +3 -3
  264. package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js.map +1 -1
  265. package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +2 -2
  266. package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js.map +1 -1
  267. package/dist/martyrs/src/modules/music/components/cards/ArtistCard.vue.js +2 -2
  268. package/dist/martyrs/src/modules/music/components/cards/ArtistCard.vue.js.map +1 -1
  269. package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js +2 -2
  270. package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js.map +1 -1
  271. package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js +2 -2
  272. package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js.map +1 -1
  273. package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js +6 -6
  274. package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js.map +1 -1
  275. package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +2 -2
  276. package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js.map +1 -1
  277. package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +1 -1
  278. package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js.map +1 -1
  279. package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +5 -5
  280. package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js.map +1 -1
  281. package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +3 -3
  282. package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js.map +1 -1
  283. package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +8 -8
  284. package/dist/martyrs/src/modules/music/components/pages/Album.vue.js.map +1 -1
  285. package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +5 -5
  286. package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js.map +1 -1
  287. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +11 -11
  288. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js.map +1 -1
  289. package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +3 -3
  290. package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js.map +1 -1
  291. package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +11 -11
  292. package/dist/martyrs/src/modules/music/components/pages/Track.vue.js.map +1 -1
  293. package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js +4 -4
  294. package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js.map +1 -1
  295. package/dist/martyrs/src/modules/music/components/player/TrackProgress.vue.js +2 -2
  296. package/dist/martyrs/src/modules/music/components/player/TrackProgress.vue.js.map +1 -1
  297. package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js +162 -68
  298. package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js.map +1 -1
  299. package/dist/martyrs/src/modules/notifications/notifications.client.js +181 -17
  300. package/dist/martyrs/src/modules/notifications/notifications.client.js.map +1 -1
  301. package/dist/martyrs/src/modules/notifications/router/notifications.backoffice.router.js +21 -0
  302. package/dist/martyrs/src/modules/notifications/router/notifications.backoffice.router.js.map +1 -0
  303. package/dist/martyrs/src/modules/notifications/router/notifications.router.js +13 -42
  304. package/dist/martyrs/src/modules/notifications/router/notifications.router.js.map +1 -1
  305. package/dist/martyrs/src/modules/notifications/store/notifications.store.js +66 -1
  306. package/dist/martyrs/src/modules/notifications/store/notifications.store.js.map +1 -1
  307. package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js +9 -7
  308. package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js.map +1 -1
  309. package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js +11 -9
  310. package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js.map +1 -1
  311. package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.js +9 -9
  312. package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.js.map +1 -1
  313. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js +66 -19
  314. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js.map +1 -1
  315. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js +29 -27
  316. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js.map +1 -1
  317. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js +7 -12
  318. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js.map +1 -1
  319. package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js +1 -1
  320. package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js.map +1 -1
  321. package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.js +4 -4
  322. package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.js.map +1 -1
  323. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +1 -1
  324. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js.map +1 -1
  325. package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +46 -25
  326. package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js.map +1 -1
  327. package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js +2 -2
  328. package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js.map +1 -1
  329. package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js +54 -38
  330. package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js.map +1 -1
  331. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +454 -139
  332. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js.map +1 -1
  333. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +2 -1
  334. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
  335. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +141 -68
  336. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
  337. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +38 -32
  338. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js.map +1 -1
  339. package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.js +1 -1
  340. package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.js.map +1 -1
  341. package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +4 -4
  342. package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js.map +1 -1
  343. package/dist/martyrs/src/modules/orders/components/sections/AskToLogin.vue.js +1 -1
  344. package/dist/martyrs/src/modules/orders/components/sections/AskToLogin.vue.js.map +1 -1
  345. package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +167 -95
  346. package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js.map +1 -1
  347. package/dist/martyrs/src/modules/orders/orders.client.js +22 -20
  348. package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
  349. package/dist/martyrs/src/modules/orders/store/orders.js +3 -5
  350. package/dist/martyrs/src/modules/orders/store/orders.js.map +1 -1
  351. package/dist/martyrs/src/modules/orders/store/shopcart.js +5 -5
  352. package/dist/martyrs/src/modules/orders/store/shopcart.js.map +1 -1
  353. package/dist/martyrs/src/modules/orders/utils/rent-price.js +60 -0
  354. package/dist/martyrs/src/modules/orders/utils/rent-price.js.map +1 -0
  355. package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js +2 -2
  356. package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +45 -55
  357. package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
  358. package/dist/martyrs/src/modules/organizations/components/blocks/EmptyState.vue.js +1 -1
  359. package/dist/martyrs/src/modules/organizations/components/blocks/Rating.vue.js +1 -1
  360. package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.js +2 -2
  361. package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.js.map +1 -1
  362. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  363. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js.map +1 -1
  364. package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js +3 -3
  365. package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js.map +1 -1
  366. package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js +1 -1
  367. package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js.map +1 -1
  368. package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js +1 -1
  369. package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js.map +1 -1
  370. package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js +2 -2
  371. package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
  372. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +8 -8
  373. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
  374. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +216 -83
  375. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
  376. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +35 -25
  377. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js.map +1 -1
  378. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +3 -2
  379. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js.map +1 -1
  380. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  381. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js.map +1 -1
  382. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  383. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js.map +1 -1
  384. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js +20 -18
  385. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
  386. package/dist/martyrs/src/modules/organizations/organizations.client.js +39 -33
  387. package/dist/martyrs/src/modules/organizations/organizations.client.js.map +1 -1
  388. package/dist/martyrs/src/modules/organizations/router/organizations.backoffice.router.js +81 -0
  389. package/dist/martyrs/src/modules/organizations/router/organizations.backoffice.router.js.map +1 -1
  390. package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
  391. package/dist/martyrs/src/modules/pages/views/components/pages/Pages.vue.js +1 -1
  392. package/dist/martyrs/src/modules/pages/views/components/pages/Pages.vue.js.map +1 -1
  393. package/dist/martyrs/src/modules/pages/views/router/pages.router.js +2 -2
  394. package/dist/martyrs/src/modules/pages/views/router/pages.router.js.map +1 -1
  395. package/dist/martyrs/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  396. package/dist/martyrs/src/modules/products/components/blocks/CardPosition.vue.js.map +1 -1
  397. package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js +2 -2
  398. package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
  399. package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js +3 -3
  400. package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js.map +1 -1
  401. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js +2 -2
  402. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js.map +1 -1
  403. package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js +3 -3
  404. package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js.map +1 -1
  405. package/dist/martyrs/src/modules/products/components/elements/Price.vue.js +2 -2
  406. package/dist/martyrs/src/modules/products/components/elements/Price.vue.js.map +1 -1
  407. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +9 -25
  408. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js.map +1 -1
  409. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +34 -17
  410. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js.map +1 -1
  411. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +96 -96
  412. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
  413. package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +1 -1
  414. package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js.map +1 -1
  415. package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +2 -2
  416. package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js.map +1 -1
  417. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +22 -9
  418. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js.map +1 -1
  419. package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  420. package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
  421. package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +1 -1
  422. package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js.map +1 -1
  423. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +3 -3
  424. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js.map +1 -1
  425. package/dist/martyrs/src/modules/products/router/categories.router.js +2 -2
  426. package/dist/martyrs/src/modules/products/router/categories.router.js.map +1 -1
  427. package/dist/martyrs/src/modules/products/router/products.router.js +17 -3
  428. package/dist/martyrs/src/modules/products/router/products.router.js.map +1 -1
  429. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttBar.vue.js +11 -10
  430. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttBar.vue.js.map +1 -1
  431. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttChart.vue.js +197 -81
  432. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttChart.vue.js.map +1 -1
  433. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttHeaderCell.vue.js +2 -2
  434. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttHeaderCell.vue.js.map +1 -1
  435. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +2 -2
  436. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js.map +1 -1
  437. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +685 -80
  438. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js.map +1 -1
  439. package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +68 -18
  440. package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js.map +1 -1
  441. package/dist/martyrs/src/modules/rents/views/router/rents.router.js +3 -3
  442. package/dist/martyrs/src/modules/rents/views/router/rents.router.js.map +1 -1
  443. package/dist/martyrs/src/modules/rents/views/store/rents.store.js +1 -1
  444. package/dist/martyrs/src/modules/rents/views/store/rents.store.js.map +1 -1
  445. package/dist/martyrs/src/modules/reports/components/pages/BackofficeReports.vue.js +3 -3
  446. package/dist/martyrs/src/modules/reports/components/pages/BackofficeReports.vue.js.map +1 -1
  447. package/dist/martyrs/src/modules/reports/router/reports.router.js +1 -1
  448. package/dist/martyrs/src/modules/reports/router/reports.router.js.map +1 -1
  449. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +5 -5
  450. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js.map +1 -1
  451. package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +1 -1
  452. package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js +3 -3
  453. package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js.map +1 -1
  454. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +9 -7
  455. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js.map +1 -1
  456. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js +29 -37
  457. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js.map +1 -1
  458. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +8 -8
  459. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js.map +1 -1
  460. package/dist/martyrs/src/modules/spots/router/spots.router.js +3 -3
  461. package/dist/martyrs/src/modules/spots/router/spots.router.js.map +1 -1
  462. package/dist/martyrs/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +3 -3
  463. package/dist/martyrs/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js.map +1 -1
  464. package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.js +1 -1
  465. package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.js.map +1 -1
  466. package/dist/martyrs/src/modules/wallet/views/router/wallet.router.js +1 -1
  467. package/dist/martyrs/src/modules/wallet/views/router/wallet.router.js.map +1 -1
  468. package/dist/martyrs.es10.js +59 -57
  469. package/dist/martyrs.es106.js +2 -2
  470. package/dist/martyrs.es11.js +31 -30
  471. package/dist/martyrs.es113.js +22 -166
  472. package/dist/martyrs.es114.js +4 -457
  473. package/dist/martyrs.es115.js +8 -40
  474. package/dist/martyrs.es116.js +166 -9
  475. package/dist/martyrs.es117.js +451 -43
  476. package/dist/martyrs.es118.js +38 -10
  477. package/dist/martyrs.es119.js +9 -44
  478. package/dist/martyrs.es12.js +8 -9
  479. package/dist/martyrs.es120.js +49 -4
  480. package/dist/martyrs.es121.js +10 -127
  481. package/dist/martyrs.es122.js +42 -98
  482. package/dist/martyrs.es123.js +4 -86
  483. package/dist/martyrs.es124.js +120 -29
  484. package/dist/martyrs.es125.js +99 -10
  485. package/dist/martyrs.es126.js +71 -24
  486. package/dist/martyrs.es127.js +37 -8
  487. package/dist/martyrs.es128.js +11 -22
  488. package/dist/martyrs.es129.js +39 -4
  489. package/dist/martyrs.es13.js +22 -19
  490. package/dist/martyrs.es130.js +9 -8
  491. package/dist/martyrs.es131.js +7 -7
  492. package/dist/martyrs.es132.js +2 -2
  493. package/dist/martyrs.es133.js +1 -1
  494. package/dist/martyrs.es135.js +1 -1
  495. package/dist/martyrs.es137.js +1 -1
  496. package/dist/martyrs.es138.js +7 -8
  497. package/dist/martyrs.es139.js +8 -7
  498. package/dist/martyrs.es14.js +2 -2
  499. package/dist/martyrs.es140.js +2 -2
  500. package/dist/martyrs.es144.js +10 -29
  501. package/dist/martyrs.es145.js +29 -10
  502. package/dist/martyrs.es146.js +2 -2
  503. package/dist/martyrs.es147.js +2 -2
  504. package/dist/martyrs.es149.js +1 -1
  505. package/dist/martyrs.es2.js +31 -30
  506. package/dist/martyrs.es22.js +16 -16
  507. package/dist/martyrs.es23.js +8 -8
  508. package/dist/martyrs.es24.js +9 -9
  509. package/dist/martyrs.es26.js +9 -11
  510. package/dist/martyrs.es27.js +9 -9
  511. package/dist/martyrs.es28.js +1 -1
  512. package/dist/martyrs.es29.js +5 -5
  513. package/dist/martyrs.es3.js +1 -1
  514. package/dist/martyrs.es38.js +1 -1
  515. package/dist/martyrs.es4.js +12 -12
  516. package/dist/martyrs.es41.js +34 -224
  517. package/dist/martyrs.es5.js +251 -238
  518. package/dist/martyrs.es61.js +33 -26
  519. package/dist/martyrs.es74.js +7 -7
  520. package/dist/martyrs.es76.js +12 -12
  521. package/dist/martyrs.es8.js +31 -31
  522. package/dist/music.server.js +3 -3
  523. package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@2.0.2/node_modules/@googlemaps/js-api-loader/dist/index.js +90 -0
  524. package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@2.0.2/node_modules/@googlemaps/js-api-loader/dist/index.js.map +1 -0
  525. package/dist/notifications.server.js +255 -23
  526. package/dist/orders.server.js +674 -136
  527. package/dist/organizations.server.js +11 -6
  528. package/dist/products.server.js +68 -7
  529. package/dist/{queryProcessor-C_5Iipam.js → queryProcessor-B2FCngFP.js} +3 -2
  530. package/dist/rents.server.js +183 -7
  531. package/dist/{socials.schema-DxnnaBgO.js → socials.schema-C3RjkqJv.js} +4 -0
  532. package/dist/spots.server.js +1 -1
  533. package/dist/style.css +292 -204
  534. package/dist/{tickets.controller-DdF85W-i.js → tickets.controller-Dpzf4kQx.js} +1 -1
  535. package/dist/wallet.server.js +2 -2
  536. package/package.json +5 -3
  537. package/src/builder/modes/ssr.rspack.dev.js +2 -0
  538. package/src/builder/rspack/rspack.config.ssr.client.js +58 -1
  539. package/src/builder/ssr/asset-resolver.js +1 -1
  540. package/src/builder/templates/page.js +2 -0
  541. package/src/components/Address/Address.vue +16 -16
  542. package/src/components/Button/Button.vue +0 -1
  543. package/src/components/ButtonSegmented/ButtonSegmented.vue +1 -1
  544. package/src/components/Calendar/Calendar.vue +141 -118
  545. package/src/components/Chart/Chart.vue +216 -0
  546. package/src/components/Checkbox/Checkbox.vue +1 -1
  547. package/src/components/Chips/Chips.vue +4 -5
  548. package/src/components/Countdown/Countdown.vue +5 -5
  549. package/src/components/DatePicker/DatePicker.vue +2 -2
  550. package/src/components/EditImages/EditImages.vue +3 -3
  551. package/src/components/EmptyState/EmptyState.vue +1 -1
  552. package/src/components/Feed/Feed.vue +5 -0
  553. package/src/components/Field/Field.vue +3 -3
  554. package/src/components/FieldDate/FieldDate.vue +2 -2
  555. package/src/components/LocationMarker/LocationMarker.vue +28 -21
  556. package/src/components/Map/Map.vue +20 -15
  557. package/src/components/Popup/Popup.vue +3 -3
  558. package/src/components/Radio/Radio.vue +2 -2
  559. package/src/components/Select/Select.vue +1 -1
  560. package/src/components/Status/Snack.vue +1 -1
  561. package/src/components/Status/Status.vue +1 -1
  562. package/src/components/Table/Table.vue +16 -1
  563. package/src/components/Upload/Upload.vue +1 -1
  564. package/src/components/UploadImage/UploadImage.vue +1 -1
  565. package/src/components/UploadImageMultiple/UploadImageMultiple.vue +1 -1
  566. package/src/jit/rules.js +4 -0
  567. package/src/modules/TASKS.MD +16 -3
  568. package/src/modules/auth/auth.client.js +18 -3
  569. package/src/modules/auth/controllers/routes/users.routes.js +18 -0
  570. package/src/modules/auth/controllers/services/auth.service.js +3 -3
  571. package/src/modules/auth/controllers/services/users.service.js +34 -5
  572. package/src/modules/auth/views/components/blocks/OtpDialog.vue +4 -4
  573. package/src/modules/auth/views/components/blocks/PopupAuth.vue +1 -1
  574. package/src/modules/auth/views/components/blocks/SidebarUserCard.vue +95 -0
  575. package/src/modules/auth/views/components/pages/BackofficeUsers.vue +337 -0
  576. package/src/modules/auth/views/components/pages/Invite.vue +1 -1
  577. package/src/modules/auth/views/components/pages/Profile.vue +1 -1
  578. package/src/modules/auth/views/components/pages/ProfileEdit.vue +23 -14
  579. package/src/modules/auth/views/components/pages/ProfileEditAccount.vue +45 -26
  580. package/src/modules/auth/views/components/pages/ProfileEditSidebar.vue +8 -7
  581. package/src/modules/auth/views/components/pages/ResetPassword.vue +4 -4
  582. package/src/modules/auth/views/components/pages/SignUp.vue +3 -3
  583. package/src/modules/auth/views/components/pages/UserDashboard.vue +8 -5
  584. package/src/modules/auth/views/components/sections/FeaturedUsers.vue +1 -1
  585. package/src/modules/auth/views/components/sections/SliderFeatures.vue +1 -1
  586. package/src/modules/auth/views/middlewares/auth.validation.js +7 -2
  587. package/src/modules/auth/views/router/users.backoffice.router.js +39 -0
  588. package/src/modules/auth/views/store/auth.js +2 -2
  589. package/src/modules/backoffice/components/admin/Backcalls.vue +2 -2
  590. package/src/modules/backoffice/components/admin/Dashboard.sublime-workspace +1 -1
  591. package/src/modules/backoffice/components/admin/FastOrders.vue +3 -3
  592. package/src/modules/backoffice/components/admin/UserEdit.vue +1 -1
  593. package/src/modules/backoffice/components/pages/Dashboard.vue +102 -139
  594. package/src/modules/backoffice/configs/navigation.backoffice.config.js +91 -29
  595. package/src/modules/backoffice/router/backoffice.router.js +7 -1
  596. package/src/modules/chats/components/blocks/ChatMessage.vue +1 -1
  597. package/src/modules/chats/components/sections/ChatWindow.vue +1 -1
  598. package/src/modules/community/community.client.js +4 -4
  599. package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
  600. package/src/modules/community/components/layouts/Community.vue +4 -4
  601. package/src/modules/community/components/sections/Comment.vue +1 -1
  602. package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
  603. package/src/modules/core/TASK.MD +2 -2
  604. package/src/modules/core/controllers/classes/abac/abac.core.js +1 -0
  605. package/src/modules/core/controllers/classes/core.websocket.js +0 -2
  606. package/src/modules/core/controllers/classes/crud/crud.core.js +6 -0
  607. package/src/modules/core/controllers/classes/crud/crud.service.js +6 -0
  608. package/src/modules/core/controllers/utils/mailing.js +35 -26
  609. package/src/modules/core/controllers/utils/queryProcessor.js +4 -2
  610. package/src/modules/core/core.client.js +1 -0
  611. package/src/modules/core/models/schemas/embedding.schema.js +8 -0
  612. package/src/modules/core/models/schemas/socials.schema.js +4 -0
  613. package/src/modules/core/sw.js +448 -0
  614. package/src/modules/core/views/classes/core.app.js +37 -13
  615. package/src/modules/core/views/classes/module.manager.js +3 -1
  616. package/src/modules/core/views/components/blocks/AlertDialog.vue +1 -1
  617. package/src/modules/core/views/components/blocks/BlockSearch.vue +1 -1
  618. package/src/modules/core/views/components/blocks/BlockSlider.vue +96 -0
  619. package/src/modules/core/views/components/blocks/CardHeader.vue +2 -2
  620. package/src/modules/core/views/components/blocks/CardStat.vue +4 -18
  621. package/src/modules/{auth → core}/views/components/blocks/CardUser.vue +45 -20
  622. package/src/modules/core/views/components/blocks/HelpCard.vue +1 -1
  623. package/src/modules/core/views/components/blocks/PopupAuth.vue +1 -1
  624. package/src/modules/core/views/components/blocks/PopupDateSelector.vue +41 -24
  625. package/src/modules/core/views/components/layouts/Client.vue +1 -1
  626. package/src/modules/core/views/components/pages/404.vue +5 -5
  627. package/src/modules/core/views/components/partials/BottomNavigationBar.vue +5 -5
  628. package/src/modules/core/views/components/partials/CitySelection.vue +2 -2
  629. package/src/modules/core/views/components/partials/Footer.centered.vue +2 -2
  630. package/src/modules/core/views/components/partials/Footer.vue +2 -2
  631. package/src/modules/core/views/components/partials/Header.vue +3 -3
  632. package/src/modules/core/views/components/partials/LocationSelection.vue +1 -1
  633. package/src/modules/core/views/components/partials/Navigation.vue +1 -1
  634. package/src/modules/core/views/components/sections/Filters.vue +2 -2
  635. package/src/modules/core/views/components/sections/SectionPageTitle.vue +2 -2
  636. package/src/modules/core/views/components/sections/Walkthrough.vue +6 -6
  637. package/src/modules/core/views/mixins/mixins.js +17 -0
  638. package/src/modules/core/views/plugins/date-picker.plugin.js +8 -5
  639. package/src/modules/core/views/store/core.store.js +5 -0
  640. package/src/modules/core/views/utils/vue-app-renderer.js +5 -0
  641. package/src/modules/events/components/pages/EditEventTickets.vue +9 -9
  642. package/src/modules/events/components/pages/Event.vue +2 -2
  643. package/src/modules/events/components/sections/EditTickets.vue +1 -1
  644. package/src/modules/events/components/sections/SelectDate.vue +1 -1
  645. package/src/modules/events/events.client.js +4 -4
  646. package/src/modules/gallery/components/sections/BackofficeGallery.vue +1 -1
  647. package/src/modules/gallery/router/gallery.router.js +3 -3
  648. package/src/modules/governance/middlewares/sprints.verifier.js +3 -3
  649. package/src/modules/governance/middlewares/tasks.verifier.js +3 -3
  650. package/src/modules/governance/models/sprint.model.js +1 -1
  651. package/src/modules/governance/models/task.model.js +1 -1
  652. package/src/modules/governance/reactcode/src/components/TaskStatusBadge.tsx +1 -1
  653. package/src/modules/governance/views/components/blocks/CardInitiativeItem.vue +3 -3
  654. package/src/modules/governance/views/components/blocks/CardSprintItem.vue +4 -4
  655. package/src/modules/governance/views/components/blocks/CardTaskItem.vue +2 -2
  656. package/src/modules/governance/views/components/blocks/CardVotingItem.vue +3 -3
  657. package/src/modules/governance/views/components/pages/Initiatives.vue +3 -3
  658. package/src/modules/governance/views/components/partials/TaskStatusBadge.vue +1 -1
  659. package/src/modules/governance/views/components/sections/FormSprintDetails.vue +1 -1
  660. package/src/modules/governance/views/components/sections/FormTaskDetails.vue +1 -1
  661. package/src/modules/governance/views/router/governance.router.js +3 -3
  662. package/src/modules/icons/components/IconSearchPopup.vue +1 -1
  663. package/src/modules/icons/entities/IconApplications.vue +14 -0
  664. package/src/modules/icons/entities/IconCustomers.vue +14 -0
  665. package/src/modules/icons/entities/IconUsers.vue +14 -0
  666. package/src/modules/inventory/components/forms/AdjustmentForm.vue +2 -2
  667. package/src/modules/inventory/components/forms/ColumnSettingsMenu.vue +2 -2
  668. package/src/modules/inventory/components/forms/HistoryView.vue +1 -1
  669. package/src/modules/inventory/components/forms/StockAlertsForm.vue +3 -3
  670. package/src/modules/inventory/components/pages/Inventory.vue +278 -159
  671. package/src/modules/inventory/components/pages/InventoryEdit.vue +2 -2
  672. package/src/modules/inventory/inventory.client.js +4 -4
  673. package/src/modules/inventory/models/stock.audit.model.js +1 -1
  674. package/src/modules/inventory/router/inventory.router.js +12 -0
  675. package/src/modules/landing/components/sections/SectionEarn.vue +3 -3
  676. package/src/modules/landing/components/sections/SectionFeature.vue +1 -1
  677. package/src/modules/landing/components/sections/SectionFeatures.vue +1 -1
  678. package/src/modules/landing/components/sections/SectionFeaturesImages.vue +2 -2
  679. package/src/modules/landing/components/sections/SectionGuide.vue +2 -2
  680. package/src/modules/landing/components/sections/SectionHeroToken.vue +1 -1
  681. package/src/modules/landing/components/sections/SectionHeroVideo.vue +1 -1
  682. package/src/modules/landing/components/sections/SectionMobileApp.vue +2 -2
  683. package/src/modules/landing/components/sections/SectionOverview.vue +1 -1
  684. package/src/modules/landing/components/sections/SectionRoadmap.vue +1 -1
  685. package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
  686. package/src/modules/marketplace/views/components/sections/SectionMenu.vue +2 -2
  687. package/src/modules/music/components/SidebarMusic.vue +1 -1
  688. package/src/modules/music/components/cards/AlbumCard.vue +1 -1
  689. package/src/modules/music/components/cards/ArtistCard.vue +1 -1
  690. package/src/modules/music/components/cards/ArtistCardSmall.vue +1 -1
  691. package/src/modules/music/components/cards/PlaylistCard.vue +1 -1
  692. package/src/modules/music/components/cards/TrackListCard.vue +6 -6
  693. package/src/modules/music/components/forms/AlbumForm.vue +2 -2
  694. package/src/modules/music/components/forms/ArtistForm.vue +1 -1
  695. package/src/modules/music/components/forms/PlaylistForm.vue +5 -5
  696. package/src/modules/music/components/forms/TrackForm.vue +3 -3
  697. package/src/modules/music/components/pages/Album.vue +8 -8
  698. package/src/modules/music/components/pages/Artist.vue +5 -5
  699. package/src/modules/music/components/pages/Playlist.vue +11 -11
  700. package/src/modules/music/components/pages/SearchResults.vue +2 -2
  701. package/src/modules/music/components/pages/Track.vue +11 -11
  702. package/src/modules/music/components/player/FullscreenPlayer.vue +3 -3
  703. package/src/modules/music/components/player/TrackProgress.vue +1 -1
  704. package/src/modules/notifications/components/sections/NotificationPreferences.vue +182 -52
  705. package/src/modules/notifications/controllers/notifications.controller.js +242 -17
  706. package/src/modules/notifications/models/notification-preference.model.js +4 -0
  707. package/src/modules/notifications/notifications.client.js +213 -20
  708. package/src/modules/notifications/router/notifications.backoffice.router.js +16 -0
  709. package/src/modules/notifications/router/notifications.router.js +13 -45
  710. package/src/modules/notifications/routes/notifications.routes.js +9 -0
  711. package/src/modules/notifications/services/notification.service.js +33 -9
  712. package/src/modules/notifications/services/telegram.service.js +2 -2
  713. package/src/modules/notifications/services/web-push.service.js +6 -2
  714. package/src/modules/notifications/store/notifications.store.js +69 -0
  715. package/src/modules/orders/components/blocks/CardApplication.vue +9 -6
  716. package/src/modules/orders/components/blocks/CardCustomer.vue +10 -7
  717. package/src/modules/orders/components/blocks/CardOrder.vue +8 -8
  718. package/src/modules/orders/components/blocks/CardOrderBackoffice.vue +58 -12
  719. package/src/modules/orders/components/blocks/CardOrderItem.vue +31 -28
  720. package/src/modules/orders/components/blocks/CardOrderUser.vue +7 -12
  721. package/src/modules/orders/components/blocks/CardOrderVar1.vue +3 -3
  722. package/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue +1 -1
  723. package/src/modules/orders/components/elements/PriceTotal.vue +4 -4
  724. package/src/modules/orders/components/forms/FormApplicationDetails.vue +1 -1
  725. package/src/modules/orders/components/forms/FormSelectCustomer.vue +48 -25
  726. package/src/modules/orders/components/pages/Applications.vue +2 -2
  727. package/src/modules/orders/components/pages/Customers.vue +35 -23
  728. package/src/modules/orders/components/pages/OrderBackoffice.vue +780 -393
  729. package/src/modules/orders/components/pages/OrderCreate.vue +5 -4
  730. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +112 -42
  731. package/src/modules/orders/components/pages/Orders.vue +20 -19
  732. package/src/modules/orders/components/pages/Orders_refact.vue +3 -3
  733. package/src/modules/orders/components/partials/ShopCart.vue +1 -1
  734. package/src/modules/orders/components/sections/ApplicationDetails.vue +2 -2
  735. package/src/modules/orders/components/sections/AskToLogin.vue +1 -1
  736. package/src/modules/orders/components/sections/CustomerDetails.vue +130 -64
  737. package/src/modules/orders/controllers/orders.controller.js +463 -134
  738. package/src/modules/orders/middlewares/applications.verifier.js +3 -3
  739. package/src/modules/orders/middlewares/customers.verifier.js +4 -0
  740. package/src/modules/orders/middlewares/orders.verifier.js +187 -0
  741. package/src/modules/orders/models/customer.model.js +2 -0
  742. package/src/modules/orders/models/order.model.js +20 -2
  743. package/src/modules/orders/orders.client.js +21 -19
  744. package/src/modules/orders/routes/applications.routes.js +13 -3
  745. package/src/modules/orders/routes/customers.routes.js +2 -0
  746. package/src/modules/orders/routes/orders.routes.js +46 -4
  747. package/src/modules/orders/store/orders.js +4 -7
  748. package/src/modules/orders/store/shopcart.js +6 -7
  749. package/src/modules/orders/utils/rent-price.js +90 -0
  750. package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
  751. package/src/modules/organizations/components/blocks/CardOrganization.vue +30 -33
  752. package/src/modules/organizations/components/blocks/EmptyState.vue +1 -1
  753. package/src/modules/organizations/components/blocks/Rating.vue +1 -1
  754. package/src/modules/organizations/components/blocks/Socials.vue +2 -2
  755. package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +1 -1
  756. package/src/modules/organizations/components/forms/AddExistingMembersForm.vue +3 -3
  757. package/src/modules/organizations/components/forms/DepartmentForm.vue +1 -1
  758. package/src/modules/organizations/components/forms/InviteForm.vue +1 -1
  759. package/src/modules/organizations/components/pages/Department.vue +2 -2
  760. package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
  761. package/src/modules/organizations/components/pages/Members.vue +8 -8
  762. package/src/modules/organizations/components/pages/Organization.vue +232 -124
  763. package/src/modules/organizations/components/pages/OrganizationCreate.vue +3 -3
  764. package/src/modules/organizations/components/pages/OrganizationDocuments.vue +1 -1
  765. package/src/modules/organizations/components/pages/OrganizationEdit.vue +15 -6
  766. package/src/modules/organizations/components/pages/Organizations.vue +3 -2
  767. package/src/modules/organizations/components/sections/Documents.vue +1 -1
  768. package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
  769. package/src/modules/organizations/configs/navigation.organization.config.js +34 -26
  770. package/src/modules/organizations/controllers/organizations.controller.js +8 -3
  771. package/src/modules/organizations/models/organization.model.js +1 -0
  772. package/src/modules/organizations/organizations.client.js +39 -33
  773. package/src/modules/organizations/router/organizations.backoffice.router.js +67 -0
  774. package/src/modules/pages/views/components/pages/Pages.vue +1 -1
  775. package/src/modules/pages/views/router/pages.router.js +2 -2
  776. package/src/modules/products/components/blocks/CardPosition.vue +2 -2
  777. package/src/modules/products/components/blocks/CardProduct.vue +2 -2
  778. package/src/modules/products/components/blocks/ProductDiscounts.vue +1 -1
  779. package/src/modules/products/components/blocks/ProductImages.vue +1 -1
  780. package/src/modules/products/components/blocks/ProductVariants.vue +3 -3
  781. package/src/modules/products/components/elements/Price.vue +2 -2
  782. package/src/modules/products/components/forms/ColumnSettingsMenu.vue +2 -2
  783. package/src/modules/products/components/forms/ReorderSettingsForm.vue +3 -3
  784. package/src/modules/products/components/forms/StockAuditForm.vue +2 -2
  785. package/src/modules/products/components/forms/StockHistoryView.vue +1 -1
  786. package/src/modules/products/components/pages/Categories.vue +9 -20
  787. package/src/modules/products/components/pages/ProductEdit.vue +19 -3
  788. package/src/modules/products/components/pages/Products.vue +20 -19
  789. package/src/modules/products/components/sections/EditAttributes.vue +1 -1
  790. package/src/modules/products/components/sections/EditCategories.vue +1 -1
  791. package/src/modules/products/components/sections/EditDiscounts.vue +2 -2
  792. package/src/modules/products/components/sections/EditVariants.vue +14 -2
  793. package/src/modules/products/components/sections/FilterProducts.vue +1 -1
  794. package/src/modules/products/components/sections/ProductConfigurator.vue +1 -1
  795. package/src/modules/products/components/sections/SectionProduct.vue +3 -3
  796. package/src/modules/products/controllers/products.controller.js +50 -5
  797. package/src/modules/products/experiments/product-recommendation/components/HeroRecommendation.vue +2 -2
  798. package/src/modules/products/models/product.model.js +7 -0
  799. package/src/modules/products/models/variant.model.js +4 -0
  800. package/src/modules/products/router/categories.router.js +2 -2
  801. package/src/modules/products/router/products.router.js +14 -3
  802. package/src/modules/rents/controllers/routes/rents.routes.js +11 -0
  803. package/src/modules/rents/controllers/services/rents.services.js +193 -2
  804. package/src/modules/rents/models/rent.model.js +9 -0
  805. package/src/modules/rents/views/components/pages/Gant/GanttBar.vue +28 -11
  806. package/src/modules/rents/views/components/pages/Gant/GanttChart.vue +200 -40
  807. package/src/modules/rents/views/components/pages/Gant/GanttHeaderCell.vue +2 -2
  808. package/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue +2 -2
  809. package/src/modules/rents/views/components/pages/Rents.vue +641 -142
  810. package/src/modules/rents/views/components/pages/RentsEdit.vue +44 -4
  811. package/src/modules/rents/views/router/rents.router.js +3 -3
  812. package/src/modules/rents/views/store/rents.store.js +1 -1
  813. package/src/modules/reports/components/pages/BackofficeReports.vue +3 -3
  814. package/src/modules/reports/router/reports.router.js +1 -1
  815. package/src/modules/spots/components/blocks/CardSpot.vue +6 -6
  816. package/src/modules/spots/components/pages/Spot.vue +2 -2
  817. package/src/modules/spots/components/pages/SpotEdit.vue +8 -6
  818. package/src/modules/spots/components/pages/Spots.vue +18 -24
  819. package/src/modules/spots/components/sections/WorktimeEdit.vue +7 -7
  820. package/src/modules/spots/router/spots.router.js +3 -3
  821. package/src/modules/wallet/views/components/blocks/CashDeposit.vue +1 -1
  822. package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +3 -3
  823. package/src/modules/wallet/views/components/pages/Payments.vue +1 -1
  824. package/src/modules/wallet/views/components/pages/Wallet.vue +4 -4
  825. package/src/modules/wallet/views/router/wallet.router.js +1 -1
  826. package/src/styles/layout.scss +1 -1
  827. package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +0 -1
  828. package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.js.map +0 -1
  829. package/dist/martyrs/src/modules/icons/entities/IconCash.vue.js +0 -70
  830. package/dist/martyrs/src/modules/icons/entities/IconCash.vue.js.map +0 -1
  831. package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@1.16.8/node_modules/@googlemaps/js-api-loader/dist/index.js +0 -336
  832. package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@1.16.8/node_modules/@googlemaps/js-api-loader/dist/index.js.map +0 -1
  833. 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
@@ -1,56 +1,71 @@
1
1
  <template>
2
2
  <div class="pd-medium mobile:pd-thin bg-white">
3
- <header class="mn-b-medium flex-v-center flex-nowrap flex">
4
- <h2 class="mn-r-medium">Rents</h2>
5
- <button
6
- @click="$router.push({ name: 'Organization_Create Rent', params: {_id: route.params._id}})"
7
- class="radius-extra i-big hover:scale-[1.05] cursor-pointer t-white bg-second"
8
- >
9
- +
10
- </button>
11
- <div class="mn-l-auto flex-v-center">
12
- <button
13
- @click="toggleView"
14
- class="pd-small radius-small bg-light mn-r-small"
15
- >
16
- {{ isCalendarView ? 'List View' : 'Calendar View' }}
17
- </button>
18
- </div>
19
- </header>
3
+ <SectionPageTitle
4
+ v-if="!MOBILE_APP"
5
+ title="Rents"
6
+ :actions="[
7
+ { method: () => $router.push({ name: routePrefix + 'Create Rent' }), label: '+ Add Rent' }
8
+ ]"
9
+ class="mn-b-medium"
10
+ />
20
11
 
21
12
  <Feed
13
+ v-model:items="currentProducts"
22
14
  :search="true"
23
15
  :keepSlotVisible="true"
24
16
  :states="{
25
17
  empty: {
26
- title: 'No Rents Found',
27
- description: 'Currently, there are no rents available.'
18
+ title: 'No Tables Found',
19
+ description: 'No products available.'
28
20
  }
29
21
  }"
30
- :store="{ read: (options) => rents.actions.read(options) }"
22
+ :store="{ read: (options) => products.actions.read(options) }"
31
23
  :options="{
32
24
  owner: route.params._id,
25
+ listing: 'rent',
26
+ lookup: ['rents', 'variants'],
33
27
  startDate: dateRange.start.toISOString(),
34
- endDate: dateRange.end.toISOString()
28
+ endDate: dateRange.end.toISOString(),
29
+ limit: 50
35
30
  }"
36
- v-slot="{ items }"
37
- >
31
+ v-slot="{ items: productItems }"
32
+ >
38
33
  <GanttChart
39
34
  v-model:view="view"
40
35
  v-model:date="date"
41
36
  v-model:dateRange="dateRange"
42
- :items="items"
37
+ :items="flattenProductRents(productItems)"
38
+ :external-groups="ganttGroups(productItems)"
43
39
  :loading="loading"
44
40
  :title-key="'productDetails.name'"
45
41
  :start-key="'startDate'"
46
42
  :end-key="'endDate'"
47
43
  :status-key="'status'"
48
44
  :id-key="'_id'"
49
- :group-by="'productDetails.name'"
45
+ :group-by="'productDetails.productId'"
50
46
  @load-more="handleLoadMore"
51
47
  @item-click="handleItemClick"
48
+ @cell-click="handleCellClick"
52
49
  @today="handleToday"
53
- />
50
+ >
51
+ <template #product-col="{ group }">
52
+ <div
53
+ v-if="group.data?.isProductRow && group.data?.hasVariants"
54
+ class="flex flex-v-center gap-micro cursor-pointer h-100 w-100 o-hidden"
55
+ @click="toggleProduct(group.data.productId)"
56
+ >
57
+ <span class="fw-bold truncate">{{ group.title }}</span>
58
+ <IconChevronBottom fill="rgba(var(--dark))" class="i-small mn-l-auto ease-out flex-shrink-0" :class="{ 'rotate-180deg': expandedProducts.has(group.data.productId) }" />
59
+ </div>
60
+ <div
61
+ v-else-if="group.data?.isVariantRow"
62
+ class="flex flex-v-center gap-micro h-100 pd-l-medium o-hidden"
63
+ >
64
+ <span class="t-small opacity-50 truncate">{{ group.data.variantName || 'Default' }}</span>
65
+ </div>
66
+ <div v-else class="fw-medium truncate">{{ group.title }}</div>
67
+ </template>
68
+ </GanttChart>
54
69
 
55
70
  <!-- <CardRent
56
71
  v-else
@@ -60,100 +75,508 @@
60
75
  class="bg-light pd-small mn-b-thin radius-small"
61
76
  /> -->
62
77
  </Feed>
78
+
79
+ <Popup
80
+ :isPopupOpen="!!selectedRent"
81
+ @close-popup="closeRentPopup"
82
+ :align="isPhone() ? 'bottom center' : 'center center'"
83
+ title="Rent Details"
84
+ class="bg-white radius-medium pd-small w-clamp-25r-25r-100 mobile:radius-zero mobile:radius-tr-medium mobile:radius-tl-medium"
85
+ >
86
+ <div v-if="selectedRent" class="w-100">
87
+ <p class="mn-b-small opacity-50">
88
+ Booking information and customer details.
89
+ </p>
90
+
91
+ <!-- Product & Status -->
92
+ <div class="mn-b-small">
93
+ <div class="flex-nowrap flex gap-thin">
94
+ <div class="w-100 bg-light radius-small pd-small">
95
+ <p class="mn-b-micro opacity-50 t-small">Product</p>
96
+ <p class="fw-medium">{{ selectedRent.productDetails?.name }}</p>
97
+ </div>
98
+ <div class="w-100 bg-light radius-small pd-small">
99
+ <p class="mn-b-micro opacity-50 t-small">Status</p>
100
+ <span class="pd-micro pd-l-thin pd-r-thin radius-extra t-micro t-white" :class="rentStatusClass">{{ selectedRent.status }}</span>
101
+ </div>
102
+ </div>
103
+ </div>
104
+
105
+ <!-- Quick Actions -->
106
+ <div v-if="selectedRent.status !== 'completed' && selectedRent.status !== 'canceled'" class="mn-b-small">
107
+ <p class="mn-b-thin fw-medium">Actions</p>
108
+ <div class="flex-nowrap flex gap-thin">
109
+ <template v-if="selectedRent.status === 'pending'">
110
+ <Button
111
+ :submit="() => confirmRent()"
112
+ class="pd-small radius-small flex-center flex w-100 cursor-pointer bg-second t-white t-small"
113
+ >
114
+ Confirm
115
+ </Button>
116
+ <Button
117
+ :submit="() => cancelRent()"
118
+ class="pd-small radius-small flex-center flex w-100 cursor-pointer bg-red t-white t-small"
119
+ >
120
+ Cancel
121
+ </Button>
122
+ </template>
123
+ <template v-if="selectedRent.status === 'confirmed' || selectedRent.status === 'active'">
124
+ <Button
125
+ :submit="() => closeRent()"
126
+ class="pd-small radius-small flex-center flex w-100 cursor-pointer bg-main t-black t-small"
127
+ >
128
+ Close
129
+ </Button>
130
+ <Button
131
+ :submit="() => closeRentNow()"
132
+ class="pd-small radius-small flex-center flex w-100 cursor-pointer bg-green t-white t-small"
133
+ >
134
+ Close Now
135
+ </Button>
136
+ </template>
137
+ </div>
138
+ </div>
139
+
140
+ <!-- Dates -->
141
+ <div class="mn-b-small">
142
+ <p class="mn-b-thin fw-medium">Period</p>
143
+ <div class="flex-nowrap flex gap-thin">
144
+ <div class="w-100 bg-light radius-small pd-small">
145
+ <p class="mn-b-micro opacity-50 t-small">From</p>
146
+ <p>{{ formatDate(selectedRent.startDate) }}</p>
147
+ </div>
148
+ <div class="w-100 bg-light radius-small pd-small">
149
+ <p class="mn-b-micro opacity-50 t-small">To</p>
150
+ <p>{{ formatDate(selectedRent.endDate) }}</p>
151
+ </div>
152
+ </div>
153
+ </div>
154
+
155
+ <!-- Payment -->
156
+ <div class="mn-b-small">
157
+ <p class="mn-b-thin fw-medium">Payment</p>
158
+ <div v-if="selectedRentOrder?.payment" class="flex-nowrap flex gap-thin">
159
+ <div class="w-100 bg-light radius-small pd-small">
160
+ <p class="mn-b-micro opacity-50 t-small">Method</p>
161
+ <p>{{ selectedRentOrder.payment.type || '—' }}</p>
162
+ </div>
163
+ <div class="w-100 bg-light radius-small pd-small">
164
+ <p class="mn-b-micro opacity-50 t-small">Status</p>
165
+ <div class="flex-v-center flex gap-micro">
166
+ <p class="fw-medium" :class="selectedRentOrder.payment?.status === 'paid' ? 't-green' : 't-red'">{{ selectedRentOrder.payment?.status || 'unpaid' }}</p>
167
+ <div
168
+ @click="togglePaymentStatus"
169
+ class="cursor-pointer radius-extra mn-l-auto"
170
+ :class="selectedRentOrder.payment?.status === 'paid' ? 'bg-green' : 'bg-light'"
171
+ style="width: 36px; height: 20px; position: relative; transition: background 0.2s; flex-shrink: 0;"
172
+ >
173
+ <div
174
+ class="bg-white radius-extra"
175
+ style="width: 16px; height: 16px; position: absolute; top: 2px; transition: left 0.2s;"
176
+ :style="{ left: selectedRentOrder.payment?.status === 'paid' ? '18px' : '2px' }"
177
+ ></div>
178
+ </div>
179
+ </div>
180
+ </div>
181
+ </div>
182
+ <div v-else class="bg-light radius-small pd-small opacity-50 t-small">
183
+ No order linked
184
+ </div>
185
+ </div>
186
+
187
+ <!-- Order -->
188
+ <div v-if="selectedRent.order" class="mn-b-small">
189
+ <p class="mn-b-thin fw-medium">Order</p>
190
+ <router-link
191
+ :to="orderLink"
192
+ class="flex-v-center flex gap-thin bg-light radius-small pd-small cursor-pointer hover:opacity-70"
193
+ >
194
+ <div class="flex-column flex w-100">
195
+ <p class="t-small opacity-50 mn-b-micro">Order ID</p>
196
+ <p class="fw-medium t-small">{{ selectedRent.order }}</p>
197
+ </div>
198
+ <span class="t-small opacity-50">→</span>
199
+ </router-link>
200
+ </div>
201
+
202
+ <!-- Customer -->
203
+ <div class="mn-b-small">
204
+ <p class="mn-b-thin fw-medium">Customer</p>
205
+ <router-link
206
+ v-if="selectedRentCustomer"
207
+ :to="customerLink"
208
+ class="bg-light radius-small pd-small cursor-pointer hover:opacity-70 flex-v-center flex"
209
+ >
210
+ <div class="w-100">
211
+ <p v-if="selectedRentCustomer.profile?.name" class="fw-medium mn-b-micro">{{ selectedRentCustomer.profile.name }}</p>
212
+ <p v-if="selectedRentCustomer.phone" class="t-small opacity-70 mn-b-micro">{{ selectedRentCustomer.phone }}</p>
213
+ <p v-if="selectedRentCustomer.email" class="t-small opacity-70">{{ selectedRentCustomer.email }}</p>
214
+ </div>
215
+ <span class="t-small opacity-50">→</span>
216
+ </router-link>
217
+ <div v-else class="bg-light radius-small pd-small opacity-50">
218
+ No customer linked
219
+ </div>
220
+ </div>
221
+
222
+ <!-- Comment -->
223
+ <div v-if="selectedRent.comment" class="mn-b-small">
224
+ <p class="mn-b-thin fw-medium">Comment</p>
225
+ <div class="bg-light radius-small pd-small t-small">{{ selectedRent.comment }}</div>
226
+ </div>
227
+
228
+ <!-- Close popup button -->
229
+ <div class="flex-nowrap flex gap-small">
230
+ <Button
231
+ :submit="() => closeRentPopup()"
232
+ :showLoader="false"
233
+ :showSucces="false"
234
+ class="pd-small radius-small flex-center flex w-100 cursor-pointer bg-main t-black"
235
+ >
236
+ Close
237
+ </Button>
238
+ </div>
239
+ </div>
240
+ </Popup>
241
+
242
+ <!-- Create Rent Popup -->
243
+ <Popup
244
+ :isPopupOpen="showCreatePopup"
245
+ @close-popup="closeCreatePopup"
246
+ :align="isPhone() ? 'bottom center' : 'center right'"
247
+ title="Create Rent"
248
+ class="bg-white pd-small w-clamp-25r-25r-100 desktop:h-100 desktop:radius-zero mobile:radius-zero mobile:radius-tr-medium mobile:radius-tl-medium"
249
+ >
250
+ <div class="flex flex-column gap-thin">
251
+ <!-- <Block title="Product" class=""> -->
252
+ <CardOrderItem
253
+ :editable="true"
254
+ :productId="createRentData.productId"
255
+ :variantId="createRentData.variantId"
256
+ :images="createRentData.productImages"
257
+ :name="createRentData.productName"
258
+ :price="createRentData.productPrice"
259
+ :listing="'rent'"
260
+ :dates="createRentDates"
261
+ :rentPeriod="createRentData.rentPeriod"
262
+ @updateRentDates="onRentDatesUpdate"
263
+ class="pd-thin radius-small bg-white"
264
+ />
265
+ <!-- </Block> -->
266
+
267
+ <FormSelectCustomer
268
+ v-model:customer="createRentData.customer"
269
+ :orgId="getOwnerIdFromProduct(createRentData.productOwner)"
270
+ />
271
+
272
+ <Block title="Comment" class="">
273
+ <Field v-model="createRentData.comment" type="textarea" class="bg-white radius-small pd-small" />
274
+ </Block>
275
+
276
+ <Button
277
+ :submit="() => submitCreateRent()"
278
+ class="bg-second t-white pd-small radius-small w-100 mn-t-thin"
279
+ >
280
+ Create Rent
281
+ </Button>
282
+ </div>
283
+ </Popup>
63
284
  </div>
64
285
  </template>
65
286
 
66
287
  <script setup>
67
288
  import dayjs from 'dayjs'
68
289
 
69
- import Tab from '@martyrs/src/components/Tab/Tab.vue';
70
290
  import Feed from '@martyrs/src/components/Feed/Feed.vue';
71
-
72
- import CardRent from '@martyrs/src/modules/rents/views/components/blocks/CardRent.vue';
73
-
291
+ import Field from '@martyrs/src/components/Field/Field.vue';
292
+ import Popup from '@martyrs/src/components/Popup/Popup.vue';
293
+ import Button from '@martyrs/src/components/Button/Button.vue';
294
+ import Block from '@martyrs/src/components/Block/Block.vue';
295
+ import CardOrderItem from '@martyrs/src/modules/orders/components/blocks/CardOrderItem.vue';
296
+ import SectionPageTitle from '@martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue';
74
297
  import GanttChart from '@martyrs/src/modules/rents/views/components/pages/Gant/GanttChart.vue';
298
+ import IconChevronBottom from '@martyrs/src/modules/icons/navigation/IconChevronBottom.vue';
299
+ import FormSelectCustomer from '@martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue';
300
+ import * as auth from '@martyrs/src/modules/auth/views/store/auth.js';
75
301
 
76
- import { computed, onMounted, ref, watch } from 'vue';
302
+ import { computed, reactive, ref } from 'vue';
77
303
  import { useRoute, useRouter } from 'vue-router';
304
+ import { useGlobalMixins } from '@martyrs/src/modules/core/views/mixins/mixins.js';
78
305
 
79
306
  import * as rents from '@martyrs/src/modules/rents/views/store/rents.store';
307
+ import * as products from '@martyrs/src/modules/products/store/products.js';
308
+ import * as orders from '@martyrs/src/modules/orders/store/orders.js';
309
+ import { useStore } from '@martyrs/src/modules/core/views/store/core.store.js';
310
+ const { core } = useStore();
80
311
 
81
312
  const route = useRoute();
82
313
  const router = useRouter();
314
+ const { isPhone } = useGlobalMixins();
83
315
 
84
- const isCalendarView = ref(true);
85
-
316
+ const currentProducts = ref([])
86
317
 
87
- // Set initial date range - current month plus 15 days before and 45 days after
88
- const view = ref('days')
318
+ // --- Gantt view state ---
319
+ const view = ref('hours')
89
320
  const date = ref(new Date())
90
321
  const loading = ref(false)
91
322
 
92
323
  const dateRange = computed(() => {
93
324
  const d = dayjs(date.value)
94
-
95
325
  switch (view.value) {
96
326
  case 'hours':
97
- // Show only the current day in hours view
98
- return {
99
- start: d.startOf('day').toDate(),
100
- end: d.endOf('day').toDate()
101
- }
102
-
327
+ return { start: d.startOf('day').toDate(), end: d.endOf('day').toDate() }
103
328
  case 'days':
104
- return {
105
- start: d.startOf('month').toDate(),
106
- end: d.endOf('month').toDate()
107
- }
108
-
329
+ return { start: d.startOf('month').toDate(), end: d.endOf('month').toDate() }
109
330
  case 'weeks':
110
- return {
111
- start: d.subtract(1, 'month').startOf('week').toDate(),
112
- end: d.add(2, 'months').endOf('week').toDate()
113
- }
114
-
331
+ return { start: d.subtract(1, 'month').startOf('week').toDate(), end: d.add(2, 'months').endOf('week').toDate() }
115
332
  default:
116
- return {
117
- start: d.startOf('month').toDate(),
118
- end: d.endOf('month').toDate()
119
- }
333
+ return { start: d.startOf('month').toDate(), end: d.endOf('month').toDate() }
334
+ }
335
+ })
336
+
337
+ const routePrefix = computed(() => {
338
+ const ctx = route.meta.context
339
+ if (ctx === 'backoffice') return 'Backoffice'
340
+ if (ctx === 'organization') return 'Organization_'
341
+ return ''
342
+ })
343
+
344
+ // --- Извлечь owner ID строкой ---
345
+ const getOwnerIdFromProduct = (owner) => {
346
+ if (!owner) return route.params._id
347
+ if (typeof owner === 'string') return owner
348
+ if (typeof owner?.target === 'string') return owner.target
349
+ if (owner?.target?._id) return owner.target._id
350
+ return route.params._id
351
+ }
352
+
353
+ // --- Expand/collapse ---
354
+ const expandedProducts = ref(new Set())
355
+ const toggleProduct = (productId) => {
356
+ const s = new Set(expandedProducts.value)
357
+ s.has(productId) ? s.delete(productId) : s.add(productId)
358
+ expandedProducts.value = s
359
+ }
360
+
361
+ // --- Groups ---
362
+ const expandedInitialized = ref(false)
363
+ const ganttGroups = (productItems) => {
364
+ if (!expandedInitialized.value && productItems.length > 0) {
365
+ productItems.forEach(p => {
366
+ if (p.variants?.length) expandedProducts.value.add(p._id)
367
+ })
368
+ expandedProducts.value = new Set(expandedProducts.value)
369
+ expandedInitialized.value = true
120
370
  }
371
+
372
+ const groups = []
373
+ productItems.forEach(product => {
374
+ const hasVariants = product.variants?.length > 0
375
+ groups.push({
376
+ key: product._id,
377
+ title: product.name || 'Unknown',
378
+ data: { productId: product._id, isProductRow: true, hasVariants, productImages: product.images || [], productPrice: product.price || 0, productOwner: product.owner, productRentPeriod: product.rentPeriod || 'day' }
379
+ })
380
+ if (hasVariants && expandedProducts.value.has(product._id)) {
381
+ product.variants.forEach(variant => {
382
+ groups.push({
383
+ key: `${product._id}_${variant._id}`,
384
+ title: variant.name || 'Default',
385
+ data: {
386
+ productId: product._id,
387
+ productName: product.name || 'Unknown',
388
+ variantId: variant._id,
389
+ variantName: variant.name,
390
+ isVariantRow: true,
391
+ productImages: variant.images?.length ? variant.images : (product.images || []),
392
+ productPrice: variant.price || product.price || 0,
393
+ productOwner: product.owner,
394
+ productRentPeriod: product.rentPeriod || 'day'
395
+ }
396
+ })
397
+ })
398
+ }
399
+ })
400
+ return groups
401
+ }
402
+
403
+ // --- Flatten rents ---
404
+ const flattenProductRents = (productItems) => {
405
+ const result = []
406
+ productItems.forEach(product => {
407
+ const name = product.name || 'Unknown'
408
+ const hasVariants = product.variants?.length > 0
409
+
410
+ if (product.rents?.length > 0) {
411
+ product.rents.forEach(rent => {
412
+ const groupKey = hasVariants && rent.variant ? `${product._id}_${rent.variant}` : product._id
413
+ result.push({ ...rent, productDetails: { name, productId: groupKey } })
414
+ })
415
+ }
416
+
417
+ if (!product.rents?.some(r => !r.variant)) {
418
+ result.push({ _id: `placeholder-${product._id}`, productDetails: { name, productId: product._id }, startDate: null, endDate: null, status: null })
419
+ }
420
+
421
+ if (hasVariants && expandedProducts.value.has(product._id)) {
422
+ product.variants.forEach(variant => {
423
+ const varKey = `${product._id}_${variant._id}`
424
+ if (!product.rents?.some(r => r.variant === variant._id)) {
425
+ result.push({ _id: `placeholder-${varKey}`, productDetails: { name: variant.name || 'Default', productId: varKey }, startDate: null, endDate: null, status: null })
426
+ }
427
+ })
428
+ }
429
+ })
430
+ return result
431
+ }
432
+
433
+ // --- Create rent popup ---
434
+ const showCreatePopup = ref(false)
435
+ const createRentData = reactive({
436
+ productId: null,
437
+ productName: '',
438
+ productImages: [],
439
+ productPrice: 0,
440
+ productOwner: null,
441
+ variantId: null,
442
+ variantName: '',
443
+ comment: '',
444
+ customer: null,
445
+ rentPeriod: 'day'
121
446
  })
447
+ const createRentDates = ref({ start: null, end: null })
448
+
449
+ const closeCreatePopup = () => {
450
+ showCreatePopup.value = false
451
+ createRentData.productId = null
452
+ createRentData.productName = ''
453
+ createRentData.productImages = []
454
+ createRentData.productPrice = 0
455
+ createRentData.productOwner = null
456
+ createRentData.variantId = null
457
+ createRentData.variantName = ''
458
+ createRentData.comment = ''
459
+ createRentData.customer = null
460
+ createRentData.rentPeriod = 'day'
461
+ createRentDates.value = { start: null, end: null }
462
+ }
463
+
464
+ const handleCellClick = ({ group, cell }) => {
465
+ if (!group?.data) return
466
+ const d = cell?.date ? dayjs(cell.date) : dayjs()
467
+
468
+ createRentData.productId = group.data.productId
469
+ createRentData.productName = group.data.isVariantRow ? group.data.productName : group.title
470
+ createRentData.productImages = group.data.productImages || []
471
+ createRentData.productPrice = group.data.productPrice || 0
472
+ createRentData.productOwner = group.data.productOwner
473
+ createRentData.variantId = group.data.variantId || null
474
+ createRentData.variantName = group.data.variantName || ''
475
+ createRentData.comment = ''
476
+ createRentData.customer = null
477
+ createRentData.rentPeriod = group.data.productRentPeriod || 'day'
478
+
479
+ const start = d.toDate()
480
+ const end = d.add(4, 'hour').toDate()
481
+ createRentDates.value = { start, end }
482
+
483
+ showCreatePopup.value = true
484
+ }
485
+
486
+ const onRentDatesUpdate = (productId, variantId, dates) => {
487
+ createRentDates.value = dates
488
+ }
122
489
 
123
- // Handle load more
490
+ const submitCreateRent = async () => {
491
+ const { start, end } = createRentDates.value
492
+ if (!start || !end) throw new Error('No dates selected')
493
+
494
+ const ownerId = getOwnerIdFromProduct(createRentData.productOwner)
495
+ const startDate = new Date(start).toISOString()
496
+ const endDate = new Date(end).toISOString()
497
+
498
+ // 1. Создаём рент
499
+ console.log('[submitCreateRent] customer:', JSON.stringify(createRentData.customer))
500
+ console.log('[submitCreateRent] customer._id:', createRentData.customer?._id)
501
+ const rentResult = await rents.actions.create({
502
+ product: createRentData.productId,
503
+ variant: createRentData.variantId || undefined,
504
+ startDate,
505
+ endDate,
506
+ status: 'pending',
507
+ comment: createRentData.comment || undefined,
508
+ owner: { type: 'Organization', target: ownerId },
509
+ creator: { type: 'User', target: auth.state.user?._id }
510
+ })
511
+
512
+ console.log('[submitCreateRent] rentResult:', JSON.stringify(rentResult))
513
+
514
+ // 2. Создаём ордер, передаём existingRents чтобы бэк не дублировал
515
+ const customerPayload = createRentData.customer?._id
516
+ ? { type: 'Customer', target: createRentData.customer._id }
517
+ : createRentData.customer?.phone
518
+ ? { type: 'Customer', target: null, phone: createRentData.customer.phone, email: createRentData.customer.email, profile: { name: createRentData.customer.profile?.name } }
519
+ : undefined
520
+ console.log('[submitCreateRent] customerPayload for order:', JSON.stringify(customerPayload))
521
+ const orderResult = await orders.actions.create({
522
+ customer: createRentData.customer?._id
523
+ ? { type: 'Customer', target: createRentData.customer._id }
524
+ : createRentData.customer?.phone
525
+ ? { type: 'Customer', target: null, phone: createRentData.customer.phone, email: createRentData.customer.email, profile: { name: createRentData.customer.profile?.name } }
526
+ : undefined,
527
+ owner: { type: 'Organization', target: ownerId },
528
+ status: 'pending',
529
+ creator: { type: 'User', target: auth.state.user?._id },
530
+ comment: createRentData.comment || undefined,
531
+ existingRents: rentResult?._id ? [rentResult._id] : [],
532
+ positions: [{
533
+ _id: createRentData.productId,
534
+ variant: createRentData.variantId || undefined,
535
+ name: createRentData.productName,
536
+ price: createRentData.productPrice,
537
+ quantity: 1,
538
+ listing: 'rent',
539
+ rentPeriod: createRentData.rentPeriod || 'flat',
540
+ date: { start: startDate, end: endDate }
541
+ }]
542
+ })
543
+
544
+ console.log('[submitCreateRent] orderResult:', JSON.stringify(orderResult))
545
+ console.log('[submitCreateRent] orderResult.customer:', JSON.stringify(orderResult?.customer))
546
+ if (!orderResult?._id) throw new Error('Order creation failed')
547
+
548
+ // 3. Привязываем рент к ордеру
549
+ if (rentResult?._id) {
550
+ await rents.actions.update({ _id: rentResult._id, order: orderResult._id })
551
+ rentResult.order = orderResult._id
552
+ }
553
+
554
+ // 4. Добавляем рент в Gantt реактивно (customer для отображения в баре)
555
+ if (createRentData.customer) {
556
+ rentResult.customer = {
557
+ profile: createRentData.customer.profile,
558
+ phone: createRentData.customer.phone,
559
+ email: createRentData.customer.email
560
+ }
561
+ }
562
+ const product = currentProducts.value.find(p => p._id === createRentData.productId)
563
+ if (product) {
564
+ if (!product.rents) product.rents = []
565
+ core.actions.add(product.rents, rentResult)
566
+ }
567
+
568
+ closeCreatePopup()
569
+ }
570
+
571
+ // --- Navigation ---
124
572
  const handleLoadMore = async (direction) => {
125
- console.log('Loading more:', direction)
126
-
127
573
  loading.value = true
128
-
129
574
  try {
130
- // Only update date if it's navigation (not refresh)
131
575
  if (direction !== 'refresh') {
132
576
  const d = dayjs(date.value)
133
- let newDate
134
-
135
- switch (view.value) {
136
- case 'hours':
137
- newDate = direction === 'forward'
138
- ? d.add(1, 'day').toDate()
139
- : d.subtract(1, 'day').toDate()
140
- break
141
- case 'days':
142
- newDate = direction === 'forward'
143
- ? d.add(1, 'month').toDate()
144
- : d.subtract(1, 'month').toDate()
145
- break
146
- case 'weeks':
147
- newDate = direction === 'forward'
148
- ? d.add(1, 'month').toDate()
149
- : d.subtract(1, 'month').toDate()
150
- break
151
- }
152
-
153
- date.value = newDate
577
+ const unit = view.value === 'hours' ? 'day' : 'month'
578
+ date.value = direction === 'forward' ? d.add(1, unit).toDate() : d.subtract(1, unit).toDate()
154
579
  }
155
-
156
- // Load data for the current date range
157
580
  await rents.actions.read({
158
581
  owner: route.params._id,
159
582
  startDate: dateRange.value.start.toISOString(),
@@ -166,69 +589,145 @@ const handleLoadMore = async (direction) => {
166
589
  }
167
590
  }
168
591
 
169
- // Handle item click
170
- const handleItemClick = (item) => {
171
- console.log('Item clicked:', item)
172
- }
173
-
174
- // Handle today
175
- const handleToday = () => {
176
- const now = new Date()
177
- date.value = now
178
-
179
- // For hours view, ensure we're showing the current hour
180
- if (view.value === 'hours') {
181
- // Update date to current time to trigger proper centering
182
- date.value = new Date()
592
+ const handleToday = () => { date.value = new Date() }
593
+
594
+ // --- Rent details popup ---
595
+ const selectedRent = ref(null)
596
+ const selectedRentOrder = ref(null)
597
+ const selectedRentCustomer = ref(null)
598
+
599
+ const orderLink = computed(() => {
600
+ if (!selectedRent.value?.order) return ''
601
+ const ctx = route.meta.context
602
+ const id = selectedRent.value.order
603
+ if (ctx === 'backoffice') return `/backoffice/orders/${id}`
604
+ if (ctx === 'organization') return `/organizations/${route.params._id}/orders/${id}`
605
+ return `/orders/${id}`
606
+ })
607
+
608
+ const customerLink = computed(() => {
609
+ if (!selectedRentCustomer.value?._id) return ''
610
+ const ctx = route.meta.context
611
+ const id = selectedRentCustomer.value._id
612
+ if (ctx === 'backoffice') return `/backoffice/customers?customerId=${id}`
613
+ if (ctx === 'organization') return `/organizations/${route.params._id}/customers?customerId=${id}`
614
+ return `/customers?customerId=${id}`
615
+ })
616
+
617
+ const rentStatusClass = computed(() => {
618
+ const map = { pending: 'bg-yellow', confirmed: 'bg-second', active: 'bg-green', completed: 'bg-grey', canceled: 'bg-red' }
619
+ return map[selectedRent.value?.status] || 'bg-second'
620
+ })
621
+
622
+ const formatDate = (d) => d ? dayjs(d).format('HH:mm, DD MMM YYYY') : '—'
623
+
624
+ const loadOrderData = async (orderId) => {
625
+ if (!orderId) return
626
+ try {
627
+ console.log('[loadOrderData] loading order:', orderId)
628
+ const result = await orders.actions.read({ _id: orderId })
629
+ console.log('[loadOrderData] result:', JSON.stringify(result?.[0]?.customer))
630
+ if (result?.length > 0) {
631
+ selectedRentOrder.value = result[0]
632
+ console.log('[loadOrderData] customer.target:', result[0].customer?.target)
633
+ console.log('[loadOrderData] customer.target type:', typeof result[0].customer?.target)
634
+ if (result[0].customer?.target) selectedRentCustomer.value = result[0].customer.target
635
+ console.log('[loadOrderData] selectedRentCustomer:', JSON.stringify(selectedRentCustomer.value))
636
+ }
637
+ } catch (err) {
638
+ console.error('[loadOrderData] Error:', err)
183
639
  }
184
640
  }
185
641
 
186
- const today = new Date();
187
- const calendarStartDate = ref(new Date(today));
188
- calendarStartDate.value.setDate(today.getDate() - 30);
189
-
190
- const calendarEndDate = ref(new Date(today));
191
- calendarEndDate.value.setDate(today.getDate() + 30);
192
-
193
- // Toggle between calendar and list view
194
- const toggleView = () => {
195
- isCalendarView.value = !isCalendarView.value;
196
- };
197
-
198
- // Navigate to rent details page
199
- const viewRentDetails = (rent) => {
200
- router.push({ name: 'Rent Details', params: { _id: rent._id } });
201
- };
202
-
203
- // Load more data when scrolling the Gantt chart
204
- const loadMoreData = async ({ direction, date }) => {
205
- // alert(direction)
206
- console.log('scroll direction is', direction)
207
- console.log('current date is', date)
208
- // Update the visible range
209
- if (direction === 'forward') {
210
- calendarEndDate.value = date;
211
- } else {
212
- calendarStartDate.value = date;
642
+ const handleItemClick = (item) => {
643
+ if (item._id?.startsWith('placeholder-')) return
644
+ console.log('[handleItemClick] item:', item._id, 'order:', item.order)
645
+ selectedRent.value = item
646
+ selectedRentOrder.value = null
647
+ selectedRentCustomer.value = null
648
+ if (item.order) loadOrderData(item.order)
649
+ }
650
+
651
+ const closeRentPopup = () => {
652
+ selectedRent.value = null
653
+ selectedRentOrder.value = null
654
+ selectedRentCustomer.value = null
655
+ }
656
+
657
+ // --- Обновить статус ренты в product.rents (оригинал, не копия) ---
658
+ const updateRentInProducts = (rentId, updates) => {
659
+ for (const product of currentProducts.value) {
660
+ if (!product.rents) continue
661
+ const rent = product.rents.find(r => r._id === rentId)
662
+ if (rent) {
663
+ Object.assign(rent, updates)
664
+ break
665
+ }
213
666
  }
214
- // Here you can add logic to fetch more rents if they fall within the new date range
667
+ }
668
+
669
+ // --- Quick actions ---
670
+ const confirmRent = async () => {
215
671
  try {
216
- // You might need to adjust this depending on your API and data structure
217
- const startDateParam = new Date(calendarStartDate.value);
218
- startDateParam.setDate(startDateParam.getDate() - 30); // Fetch a bit more to cover edge cases
219
-
220
- const endDateParam = new Date(calendarEndDate.value);
221
- endDateParam.setDate(endDateParam.getDate() + 30);
222
-
223
- await rents.actions.read({
224
- owner: route.params._id,
225
- startDate: startDateParam.toISOString(),
226
- endDate: endDateParam.toISOString()
227
- });
228
- } catch (error) {
229
- console.error('Error loading additional rent data:', error);
230
- }
231
- };
672
+ await rents.actions.update({ _id: selectedRent.value._id, status: 'active' })
673
+ selectedRent.value.status = 'active'
674
+ updateRentInProducts(selectedRent.value._id, { status: 'active' })
675
+ if (selectedRentOrder.value) {
676
+ await orders.actions.update({ _id: selectedRentOrder.value._id, status: 'in_progress' })
677
+ selectedRentOrder.value.status = 'in_progress'
678
+ }
679
+ } catch (err) { console.error('Error confirming rent:', err) }
680
+ }
681
+
682
+ const cancelRent = async () => {
683
+ try {
684
+ await rents.actions.update({ _id: selectedRent.value._id, status: 'canceled' })
685
+ selectedRent.value.status = 'canceled'
686
+ updateRentInProducts(selectedRent.value._id, { status: 'canceled' })
687
+ if (selectedRentOrder.value) {
688
+ await orders.actions.update({ _id: selectedRentOrder.value._id, status: 'canceled' })
689
+ selectedRentOrder.value.status = 'canceled'
690
+ }
691
+ closeRentPopup()
692
+ } catch (err) { console.error('Error canceling rent:', err) }
693
+ }
694
+
695
+ const closeRent = async () => {
696
+ try {
697
+ await rents.actions.update({ _id: selectedRent.value._id, status: 'completed' })
698
+ selectedRent.value.status = 'completed'
699
+ updateRentInProducts(selectedRent.value._id, { status: 'completed' })
700
+ if (selectedRentOrder.value) {
701
+ await orders.actions.update({ _id: selectedRentOrder.value._id, status: 'finished' })
702
+ selectedRentOrder.value.status = 'finished'
703
+ }
704
+ closeRentPopup()
705
+ } catch (err) { console.error('Error closing rent:', err) }
706
+ }
707
+
708
+ const closeRentNow = async () => {
709
+ const now = new Date().toISOString()
710
+ try {
711
+ await rents.actions.update({ _id: selectedRent.value._id, status: 'completed', endDate: now })
712
+ selectedRent.value.status = 'completed'
713
+ selectedRent.value.endDate = now
714
+ updateRentInProducts(selectedRent.value._id, { status: 'completed', endDate: now })
715
+ if (selectedRentOrder.value) {
716
+ await orders.actions.update({ _id: selectedRentOrder.value._id, status: 'finished' })
717
+ selectedRentOrder.value.status = 'finished'
718
+ }
719
+ closeRentPopup()
720
+ } catch (err) { console.error('Error closing rent:', err) }
721
+ }
722
+
723
+ const togglePaymentStatus = async () => {
724
+ if (!selectedRentOrder.value) return
725
+ const newStatus = selectedRentOrder.value.payment?.status === 'paid' ? 'unpaid' : 'paid'
726
+ try {
727
+ await orders.actions.update({ _id: selectedRentOrder.value._id, payment: { ...selectedRentOrder.value.payment, status: newStatus } })
728
+ selectedRentOrder.value.payment = { ...selectedRentOrder.value.payment, status: newStatus }
729
+ } catch (err) { console.error('Error toggling payment:', err) }
730
+ }
232
731
  </script>
233
732
 
234
733
  <style lang="scss">