@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,101 +1,155 @@
1
1
  <template>
2
- <div v-if="order && orderOrganization" class="pd-thin bg-white">
3
-
4
- <div v-if="order" class="mn-b-thin pos-relative w-100 bg-main radius-medium pd-medium">
5
- <div class="mn-b-small flex-nowrap flex">
6
- <p class="fw-medium p-regular">
7
- Order No: <span class="p-small t-transp">#{{order._id}}</span>
8
- </p>
9
- </div>
10
-
11
- <div class="flex-nowrap flex gap-thin pos-relative ">
12
- <div v-for="(status, index) in statuses" :key="index" class="w-20">
13
- <div
14
- class="bg-white br-anim br-glow radius-extra h-1r w-100"
15
- :class="
16
- { 'br-glow-anim': isActiveStatus(index) },
17
- { 't-transp': !isActiveStatus(index) },
18
- { 'blink': order.status === status.value && getNextStatus(order.status) }
19
- "
20
- />
21
- <div
22
- :class="{ 't-transp': !isActiveStatus(index) }"
23
- class="mn-t-thin p-small fw-medium uppercase">{{ status.value }}</div>
24
- </div>
25
- </div>
26
- </div>
27
-
28
- <Popup
29
- title="Payment Status"
30
- @close-popup="closePaymentPopup"
2
+ <div v-if="order && orderOrganization" class="pd-thin bg-white">
3
+ <div
4
+ v-if="order"
5
+ class="mn-b-thin pos-relative w-100 bg-main radius-medium pd-small"
6
+ >
7
+ <div class="mn-b-small flex-nowrap flex">
8
+ <p class="fw-medium p-regular">
9
+ Order No:
10
+ <span class="p-small opacity-50">#{{ order._id }}</span>
11
+ </p>
12
+ </div>
13
+
14
+ <div class="flex-nowrap flex gap-thin pos-relative">
15
+ <div v-for="(status, index) in statuses" :key="index" class="w-20">
16
+ <div
17
+ class="bg-white br-anim br-glow radius-extra h-1r w-100"
18
+ :class="
19
+ ({ 'br-glow-anim': isActiveStatus(index) },
20
+ { 'opacity-50': !isActiveStatus(index) },
21
+ {
22
+ blink:
23
+ order.status === status.value && getNextStatus(order.status),
24
+ })
25
+ "
26
+ />
27
+ <div
28
+ :class="{ 'opacity-50': !isActiveStatus(index) }"
29
+ class="mn-t-thin p-small fw-medium uppercase"
30
+ >
31
+ {{ status.label }}
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </div>
36
+
37
+ <Popup
38
+ title="Payment Status"
39
+ @close-popup="closePaymentPopup"
31
40
  :isPopupOpen="isOpenPaymentPopup"
32
- class="bg-light w-min-25r w-max-25r radius-medium pd-big"
41
+ :align="isPhone() || isTablet() ? 'bottom center' : 'center center'"
42
+ class="bg-light radius-medium pd-small"
43
+ :class="
44
+ isPhone() || isTablet()
45
+ ? 'w-100 radius-zero radius-tr-medium radius-tl-medium'
46
+ : 'w-min-30r w-max-30r'
47
+ "
33
48
  >
34
- <Select
49
+ <Select
35
50
  v-model:select="selectedPayments.type"
36
51
  :property="'value'"
37
52
  label="Type"
38
53
  :options="[
39
- {name: 'Cash', value: 'cash'},
40
- {name: 'Card', value: 'card'},
41
- {name: 'Bank Transfer', value: 'bank'},
54
+ { name: 'Cash', value: 'cash' },
55
+ { name: 'Card', value: 'card' },
56
+ { name: 'Bank Transfer', value: 'bank' },
42
57
  ]"
43
- placeholder="Select type of payment"
58
+ placeholder="Select type of payment"
44
59
  size="small"
45
60
  class="bg-white mn-b-thin pd-regular radius-small w-100"
46
61
  />
47
62
 
48
- <Select
63
+ <Select
49
64
  v-model:select="selectedPayments.status"
50
65
  :property="'value'"
51
66
  label="Status"
52
67
  :options="[
53
- {name: 'Unpaid', value: 'unpaid'},
54
- {name: 'Paid', value: 'paid'},
55
- {name: 'Refunded', value: 'refunded'},
68
+ { name: 'Unpaid', value: 'unpaid' },
69
+ { name: 'Paid', value: 'paid' },
70
+ { name: 'Refunded', value: 'refunded' },
56
71
  ]"
57
- placeholder="Select status of payment"
72
+ placeholder="Select status of payment"
58
73
  size="small"
59
74
  class="bg-white mn-b-small pd-regular radius-small w-100"
60
75
  />
61
76
 
77
+ <Button :submit="changePaymentStatus" class="t-white w-100 bg-second">
78
+ <span>Change Status</span>
79
+ </Button>
80
+ </Popup>
62
81
 
63
- <Button :submit="changePaymentStatus" class="t-white w-100 bg-second">
64
- <span>Change Status</span>
65
- </Button>
66
- </Popup>
67
-
68
- <Popup
69
- title="Change order status"
70
- @close-popup="closeStatusPopup"
82
+ <Popup
83
+ title="Change order status"
84
+ @close-popup="closeStatusPopup"
71
85
  :isPopupOpen="isOpeStatusPopup"
72
- class="bg-light w-min-30r w-max-30r radius-medium pd-big"
86
+ :align="isPhone() || isTablet() ? 'bottom center' : 'center center'"
87
+ class="bg-light radius-medium pd-small"
88
+ :class="
89
+ isPhone() || isTablet()
90
+ ? 'w-100 radius-zero radius-tr-medium radius-tl-medium'
91
+ : 'w-min-30r w-max-30r'
92
+ "
73
93
  >
74
-
75
- <!-- Добавить выбор примерного времени -->
76
-
77
- <ul class="flex gap-thin flex-column mn-b-thin">
78
- <CardOrderItem
79
- v-for="(product, index) in order.positions"
80
- :key="`${product._id}_${product.variant || 'no-variant'}_${index}`"
81
- :editable="!order.status_history || order.status_history.length <= 1"
82
- :productId="product._id"
83
- :variantId="product.variant"
84
- :images="product.images"
85
- :name="product.name"
86
- :quantity="product.quantity"
87
- :unit="product.unit"
88
- :dates="product.date"
89
- :listing="product.listing"
90
- :price="product.price"
91
- :increase="() => orders.mutations.incrementItemQuantity(order, product._id, product.variant)"
92
- :decrease="() => orders.mutations.decrementItemQuantity(order, product._id, product.variant)"
93
- :remove="() => orders.mutations.removeProduct(order, product._id, product.variant)"
94
- @updateRentDates="(productId, variantId, dates) => shopcart.actions.updateRentDates({ positions: order.positions, productId, variantId, dates })"
95
- class="bg-white radius-small pd-small"
96
- />
94
+ <!-- Добавить выбор примерного времени -->
95
+
96
+ <button
97
+ v-if="!order.status_history || order.status_history.length <= 1"
98
+ @click="openAddProductPopup"
99
+ class="w-100 mn-b-thin pd-small radius-small bg-white t-black fw-medium cursor-pointer hover:bg-main"
100
+ >
101
+ + Add Product
102
+ </button>
103
+
104
+ <ul class="flex gap-thin flex-column mn-b-thin">
105
+ <CardOrderItem
106
+ v-for="(product, index) in order.positions"
107
+ :key="`${product._id}_${product.variant || 'no-variant'}_${index}`"
108
+ :editable="!order.status_history || order.status_history.length <= 1"
109
+ :productId="product._id"
110
+ :variantId="product.variant"
111
+ :images="product.images"
112
+ :name="product.name"
113
+ :quantity="product.quantity"
114
+ :unit="product.unit"
115
+ :dates="product.date"
116
+ :listing="product.listing"
117
+ :rentPeriod="product.rentPeriod || 'day'"
118
+ :price="product.price"
119
+ :increase="
120
+ () =>
121
+ orders.mutations.incrementItemQuantity(
122
+ order,
123
+ product._id,
124
+ product.variant,
125
+ )
126
+ "
127
+ :decrease="
128
+ () =>
129
+ orders.mutations.decrementItemQuantity(
130
+ order,
131
+ product._id,
132
+ product.variant,
133
+ )
134
+ "
135
+ :remove="
136
+ () =>
137
+ orders.mutations.removeProduct(
138
+ order,
139
+ product._id,
140
+ product.variant,
141
+ )
142
+ "
143
+ @updateRentDates="
144
+ (productId, variantId, dates) => {
145
+ const item = order.positions.find(p => p._id === productId && p.variant === variantId);
146
+ if (item) item.date = dates;
147
+ }
148
+ "
149
+ class="bg-white radius-small pd-small"
150
+ />
97
151
  </ul>
98
-
152
+
99
153
  <PriceTotal
100
154
  :totalPrice="cartTotalPrice"
101
155
  :currency="returnCurrency()"
@@ -105,125 +159,235 @@
105
159
  :vatRate="store.core.state.options?.orders?.vatRate || 0"
106
160
  />
107
161
 
108
- <Button :submit="setNextStatus" class="t-white w-100 bg-second">
109
- <span>{{'Confirm Changing to ' + (getNextStatus(order.status)).label}}</span>
110
- </Button>
111
- </Popup>
112
-
113
-
114
-
115
- <div v-if="order" class="gap-thin cols-2 mobile:cols-1">
116
-
117
- <div class="w-100">
118
-
119
-
120
- <CardOrganization
121
- v-if="orderOrganization[0]"
122
- :organization="orderOrganization[0]"
123
- :showRating="true"
124
- :showFollowers="false"
125
- :showProducts="false"
126
- class="bg-light mn-b-thin w-100 o-hidden radius-medium pd-small "
127
- />
128
-
162
+ <Button :submit="setNextStatus" class="t-white w-100 bg-second">
163
+ <span>
164
+ {{ "Confirm Changing to " + getNextStatus(order.status).label }}
165
+ </span>
166
+ </Button>
167
+ </Popup>
168
+
169
+ <!-- Add product popup -->
170
+ <Popup
171
+ @close-popup="closeAddProductPopup"
172
+ :isPopupOpen="isAddProductPopupOpen"
173
+ :align="isPhone() || isTablet() ? 'bottom center' : 'center center'"
174
+ class="bg-white flex flex-column radius-big pd-medium pos-relative"
175
+ :class="
176
+ isPhone() || isTablet()
177
+ ? 'w-100 radius-zero radius-tr-medium radius-tl-medium h-max-80'
178
+ : 'w-min-30r w-max-30r'
179
+ "
180
+ >
181
+ <h3 class="mn-b-small">Add to order</h3>
182
+ <div class="bg-light h-max-100 mn-b-thin o-scroll pd-medium radius-big">
183
+ <Feed
184
+ :showLoadMore="false"
185
+ :search="{ placeholder: 'Search products...', class: 'bg-white mn-b-thin' }"
186
+ :states="{ empty: { title: 'No Products Found', description: 'Currently, there are no such products available.' }, skeleton: { hide: true } }"
187
+ :store="{ read: (options) => products.actions.read(options), state: null }"
188
+ :options="{ owner: order?.owner.target._id }"
189
+ v-slot="{ items }"
190
+ >
191
+ <CardOrderItem
192
+ v-for="(product, index) in items"
193
+ :key="`${product._id}_${index}`"
194
+ :editable="false"
195
+ :productId="product._id"
196
+ :images="product.images"
197
+ :name="product.name"
198
+ @click="() => selectProduct(product)"
199
+ class="bg-white pd-thin radius-medium w-100 mn-b-thin cursor-pointer"
200
+ />
201
+ </Feed>
202
+ </div>
203
+ </Popup>
204
+
205
+ <!-- Select variant popup -->
206
+ <Popup
207
+ title="Select variant"
208
+ @close-popup="closeAddVariantsPopup"
209
+ :isPopupOpen="isAddVariantsPopupOpen"
210
+ :align="isPhone() || isTablet() ? 'bottom center' : 'center center'"
211
+ class="bg-white w-100 radius-medium pd-medium"
212
+ :class="
213
+ isPhone() || isTablet()
214
+ ? 'radius-zero radius-tr-medium radius-tl-medium'
215
+ : 'w-max-30r'
216
+ "
217
+ >
218
+ <Feed
219
+ :store="variants"
220
+ :options="{ product: selectedProduct?._id }"
221
+ :states="{ empty: { title: 'No variants', description: 'Create your first variant' } }"
222
+ v-slot="{ items }"
223
+ >
224
+ <div class="gap-thin flex flex-column">
225
+ <div
226
+ v-for="(variant, index) in items"
227
+ :key="index"
228
+ @click="addVariantToOrder(variant)"
229
+ class="w-100 cursor-pointer hover:scale-[1.05] bg-light pd-small radius-small flex-v-center flex-nowrap flex gap-thin"
230
+ >
231
+ <div v-if="variant.images && variant.images.length" class="aspect-1x1 h-3r radius-small o-hidden">
232
+ <img :src="(FILE_SERVER_URL || '') + variant.images[0]" class="w-100 h-100 object-fit-cover" />
233
+ </div>
234
+ <div>
235
+ <p class="fw-medium">{{ variant.name || 'Default variant' }}</p>
236
+ <p v-if="variant.attributes && variant.attributes.length" class="t-small opacity-50">
237
+ {{ variant.attributes.map(attr => `${attr.name}: ${attr.value}`).join(', ') }}
238
+ </p>
239
+ </div>
240
+ <p class="mn-l-auto">{{ formatPrice(variant.price || variant.cost) }}</p>
241
+ </div>
242
+ </div>
243
+ </Feed>
244
+ </Popup>
245
+
246
+ <div v-if="order" class="gap-thin cols-2 tablet:cols-1 mobile:cols-1">
247
+ <div class="w-100">
248
+ <CardOrganization
249
+ v-if="orderOrganization[0]"
250
+ :organization="orderOrganization[0]"
251
+ :showRating="true"
252
+ :showFollowers="false"
253
+ :showProducts="false"
254
+ class="bg-light mn-b-thin w-100 o-hidden radius-medium pd-small"
255
+ />
129
256
 
130
- <div
131
- class="mn-b-thin bg-light w-100 o-hidden radius-medium "
132
- >
133
- <div class="pd-small flex-nowrap flex">
134
- <div class="mn-r-auto">
135
- <span class="d-block fw-medium p-regular mn-b-thin">Order is</span>
136
- <span class=" lh-[0.75] h2 d-block mn-b-small">{{order.status}}</span>
137
- <p class="pd-thin radius-extra bg-black t-white w-max">{{formatDate(order.updatedAt, {language: locale })}}</p>
138
- </div>
139
- <!-- <div class="t-right">
257
+ <div class="mn-b-thin bg-light w-100 o-hidden radius-medium">
258
+ <div class="pd-small flex-nowrap flex">
259
+ <div class="mn-r-auto">
260
+ <span class="d-block fw-medium p-regular mn-b-thin">
261
+ Order is
262
+ </span>
263
+ <span class="lh-[0.75] h2 d-block mn-b-small">
264
+ {{ statusLabel(order.status) }}
265
+ </span>
266
+ <p class="pd-thin radius-extra bg-black t-white w-max">
267
+ {{ formatDate(order.updatedAt, { language: locale }) }}
268
+ </p>
269
+ </div>
270
+ <!-- <div class="t-right">
140
271
  Cancel order<br>
141
272
  Exchange item
142
273
  <hr class="mn-b-thin mn-t-thin">
143
274
  For Delivery Queries Contact Us
144
275
 
145
276
  </div> -->
146
- </div>
147
-
148
- <div v-if="order.customer.target?.number" class="pd-small flex flex-nowrap flex-v-center br-t-1px br-black-transp-10">
149
- <p class="w-100 fw-medium p-regular">
150
- Phone
151
- </p>
152
-
153
- <p class="w-100 t-right ">
154
- {{order.customer.target?.number || 'Not specified'}}
155
- </p>
156
- </div>
157
-
158
- <div class="pd-small flex flex-nowrap flex-v-center br-t-1px br-black-transp-10">
159
- <p class="fw-medium p-regular">
160
- Address
161
- </p>
162
-
163
- <p class="w-100 t-right">
164
- {{order.delivery.address || (order.delivery.spot[0]?.profile.name + (order.delivery.spot[0]?.address ? ', ' + order.delivery.spot[0].address : '')) || 'Not specified'}}
165
- </p>
166
-
167
-
168
-
169
- </div>
170
-
171
-
172
- <div v-if="order.comment" class="pos-relative radius-thin mn-t-zero mn-thin bg-fifth-transp-10 pd-small">
173
- <p class="mn-b-thin t-transp uppercase p-small fw-medium">Comment</p>
174
- <p>{{order.comment}}</p>
175
- </div>
176
-
177
- <div class="pd-small flex flex-nowrap flex-v-center br-t-1px br-black-transp-10">
178
- <p class="fw-medium p-regular">
179
- Delivery
180
- </p>
181
-
182
- <p class="w-100 t-right ">
183
- {{order.delivery.type ? order.delivery.type : 'Not specified'}}
184
- </p>
185
- </div>
186
-
187
- <div class="pd-small flex flex-nowrap flex-v-center br-t-1px br-black-transp-10">
188
- <p class="mn-r-auto fw-medium p-regular">
189
- Payment
190
- </p>
191
-
192
-
193
- <p class="w-max t-right">
194
- {{order.payment.type ? order.payment.type : 'Not specified'}}
195
- </p>
196
-
197
- <p @click="route.meta.context !== 'user' && route.meta.context !== 'root' ? openPaymentPopup() : console.log('Context:', route.meta.context)" class="w-max pd-thin radius-small bg-second t-white mn-l-thin cursor-pointer hover:bg-black t-right">
198
- {{order.payment.status ? order.payment.status : 'Unpaid'}}
199
- </p>
200
- </div>
201
-
202
-
203
- </div>
204
-
205
- <div v-if="route.meta.context !== 'user' && route.meta.context !== 'root'" class="o-y-scroll bg-light pd-thin mn-b-thin pd-thin radius-medium flex-nowrap flex">
206
- <div class="flex-child-default mn-r-small w-max flex-v-center gap-thin flex-nowrap flex pd-thin radius-small bg-light-transp-20">
207
- <IconTime class="i-medium t-transp" fill="rgb(var(--black)" />
208
- <p class="fw-medium mn-r-auto"><span class="p-small t-transp">Estimated Reaction</span><br>{{formatDate(order.deadline, { language: locale })}}</p>
209
- </div>
210
- <button v-if="getNextStatus(order.status)" @click="openStatusPopup" class="flex-child-default mn-l-auto bg-black t-white button">
211
- Mark as {{ (getNextStatus(order.status)).label }}
212
- </button>
213
- </div>
214
-
215
- <div class="bg-light radius-medium pd-medium mn-r-bold w-100">
216
- <h3 class="mn-b-small">Chat With Us</h3>
217
-
218
- <ChatPage
219
- :username="['Order', 'UserOrder'].includes(route.name) ? (order.user?.name || 'User') : 'Support'"
220
- :user="auth.state.user._id"
221
- :chatID="route.params.order"
222
- class="radius-semi bs-black bg-light o-hidden"
223
- />
224
-
225
- </div>
226
- <!-- <StatusHistory
277
+ </div>
278
+
279
+ <div
280
+ v-if="order.customer.target?.number"
281
+ class="pd-small flex flex-nowrap flex-v-center br-t-1px br-black-transp-10"
282
+ >
283
+ <p class="w-100 fw-medium p-regular">Phone</p>
284
+
285
+ <p class="w-100 t-right">
286
+ {{
287
+ formatPhone(order.customer.target?.number) || "Not specified"
288
+ }}
289
+ </p>
290
+ </div>
291
+
292
+ <div
293
+ class="pd-small flex flex-nowrap flex-v-center br-t-1px br-black-transp-10"
294
+ >
295
+ <p class="fw-medium p-regular">Address</p>
296
+
297
+ <p class="w-100 t-right">
298
+ {{
299
+ order.delivery.address ||
300
+ order.delivery.spot[0]?.profile.name +
301
+ (order.delivery.spot[0]?.address
302
+ ? ", " + order.delivery.spot[0].address
303
+ : "") ||
304
+ "Not specified"
305
+ }}
306
+ </p>
307
+ </div>
308
+
309
+ <div
310
+ v-if="order.comment"
311
+ class="pos-relative radius-thin mn-t-zero mn-thin bg-fifth-transp-10 pd-small"
312
+ >
313
+ <p class="mn-b-thin opacity-50 uppercase p-small fw-medium">
314
+ Comment
315
+ </p>
316
+ <p>{{ order.comment }}</p>
317
+ </div>
318
+
319
+ <div
320
+ class="pd-small flex flex-nowrap flex-v-center br-t-1px br-black-transp-10"
321
+ >
322
+ <p class="fw-medium p-regular">Delivery</p>
323
+
324
+ <p class="w-100 t-right">
325
+ {{ order.delivery.type ? order.delivery.type : "Not specified" }}
326
+ </p>
327
+ </div>
328
+
329
+ <div
330
+ class="pd-small flex flex-nowrap flex-v-center br-t-1px br-black-transp-10"
331
+ >
332
+ <p class="mn-r-auto fw-medium p-regular">Payment</p>
333
+
334
+ <p class="w-max t-right">
335
+ {{ order.payment.type ? order.payment.type : "Not specified" }}
336
+ </p>
337
+
338
+ <p
339
+ @click="
340
+ route.meta.context !== 'user' && route.meta.context !== 'root'
341
+ ? openPaymentPopup()
342
+ : console.log('Context:', route.meta.context)
343
+ "
344
+ class="w-max pd-thin radius-small mn-l-thin cursor-pointer hover:bg-black t-right capitalize"
345
+ :class="paymentStatusClass(order.payment.status)"
346
+ >
347
+ {{ order.payment.status ? order.payment.status : "Unpaid" }}
348
+ </p>
349
+ </div>
350
+ </div>
351
+
352
+ <div
353
+ v-if="route.meta.context !== 'user' && route.meta.context !== 'root'"
354
+ class="o-y-scroll scroll-hide bg-light pd-thin mn-b-thin pd-thin radius-medium flex-nowrap flex"
355
+ >
356
+ <div
357
+ class="flex-child-default mn-r-small w-max flex-v-center gap-thin flex-nowrap flex pd-thin radius-small bg-light-transp-20"
358
+ >
359
+ <IconTime class="i-medium opacity-50" fill="rgb(var(--black)" />
360
+ <p class="fw-medium mn-r-auto">
361
+ <span class="p-small opacity-50">Estimated Reaction</span>
362
+ <br />
363
+ {{ formatDate(order.deadline, { language: locale }) }}
364
+ </p>
365
+ </div>
366
+
367
+ <button
368
+ v-if="getNextStatus(order.status)"
369
+ @click="openStatusPopup"
370
+ class="flex-child-default mn-l-auto bg-black t-white button radius-small"
371
+ >
372
+ Mark as {{ getNextStatus(order.status).label }}
373
+ </button>
374
+ </div>
375
+
376
+ <div class="bg-light radius-medium pd-small mn-r-bold w-100">
377
+ <h3 class="mn-b-small">Chat With Us</h3>
378
+
379
+ <ChatPage
380
+ :username="
381
+ ['Order', 'UserOrder'].includes(route.name)
382
+ ? order.user?.name || 'User'
383
+ : 'Support'
384
+ "
385
+ :user="auth.state.user._id"
386
+ :chatID="route.params.order"
387
+ class="radius-small bs-black bg-light o-hidden"
388
+ />
389
+ </div>
390
+ <!-- <StatusHistory
227
391
  v-if="orders.state.current.status_history"
228
392
  :statuses="statuses"
229
393
  :statusHistory="orders.state.current.status_history"
@@ -231,7 +395,7 @@
231
395
  :edit="route.name === 'Order Edit'"
232
396
  /> -->
233
397
 
234
- <!-- <button
398
+ <!-- <button
235
399
  @click="requestPayment(order)"
236
400
  v-if="
237
401
  order.status === 'Подтвержден'
@@ -240,272 +404,495 @@
240
404
  && payment.Status !== 'REFUNDED'
241
405
  "
242
406
  class='w-100 button'>Оплатить заказ</button> -->
243
- <span class="t-transp" v-if="payment && payment.Status === 'CONFIRMED'">Paid</span>
244
- </div>
245
-
246
- <div class="bg-light radius-medium pd-medium w-100">
247
- <h3 class="mn-b-small">Order Summary</h3>
248
-
249
- <ul class="flex gap-thin flex-column mn-b-thin">
250
- <CardOrderItem
251
- v-for="(product, index) in order.positions"
252
- :key="`${product._id}_${product.variant || 'no-variant'}_${index}`"
253
- :editable="false"
254
- :productId="product._id"
255
- :variantId="product.variant"
256
- :images="product.images"
257
- :name="product.name"
258
- :quantity="product.quantity"
259
- :unit="product.unit"
260
- :dates="product.date"
261
- :listing="product.listing"
262
- :price="product.price"
263
- class="bg-white radius-small pd-small"
264
- />
265
- </ul>
266
-
267
- <PriceTotal
268
- :totalPrice="cartTotalPrice"
269
- :deliveryRate="deliveryCost"
270
- :currency="returnCurrency()"
271
- :showFees="store.core.state.options?.orders?.showFees"
272
- :feesRate="store.core.state.options?.orders?.feesRate || 0"
273
- :showVat="store.core.state.options?.orders?.showVat"
274
- :vatRate="store.core.state.options?.orders?.vatRate || 0"
275
- :showDeliveryFee="store.core.state.options?.orders.showDeliveryFee"
276
-
277
- />
278
- </div>
279
-
280
-
281
- </div>
282
- </div>
283
-
407
+ <span
408
+ class="opacity-50"
409
+ v-if="payment && payment.Status === 'CONFIRMED'"
410
+ >
411
+ Paid
412
+ </span>
413
+ </div>
414
+
415
+ <div class="w-100">
416
+ <!-- Customer Card -->
417
+ <div class="bg-light radius-medium pd-small mn-b-thin w-100">
418
+ <h3 class="mn-b-small">Customer</h3>
419
+
420
+ <router-link
421
+ v-if="
422
+ route.meta.context !== 'user' &&
423
+ route.meta.context !== 'root' &&
424
+ order.customer?.target
425
+ "
426
+ :to="customerLink"
427
+ class="d-block w-100 pd-small bg-white radius-small"
428
+ >
429
+ <CardUser
430
+ :user="order.customer.target"
431
+ :photo="order.customer.target.photo"
432
+ :name="order.customer.target.profile?.name || 'No name'"
433
+ :phone="formatPhone(order.customer.target.number || order.customer.target.phone)"
434
+ >
435
+ <template #actions>
436
+ <a
437
+ v-if="customerContact"
438
+ :href="customerContact.url"
439
+ :target="customerContact.type !== 'phone' ? '_blank' : null"
440
+ @click.stop
441
+ class="d-inline-flex flex-shrink-0 pd-micro pd-l-thin pd-r-thin radius-extra bg-second p-small fw-medium t-white flex-v-center gap-micro"
442
+ >
443
+ <component :is="customerContact.icon" class="i-small" />
444
+ {{
445
+ customerContact.type === "phone"
446
+ ? customerContact.value
447
+ : customerContact.type
448
+ }}
449
+ </a>
450
+ </template>
451
+ </CardUser>
452
+ </router-link>
453
+ </div>
454
+
455
+ <div class="bg-light radius-medium pd-small w-100">
456
+ <h3 class="mn-b-small">Order Summary</h3>
457
+
458
+ <ul class="flex gap-thin flex-column mn-b-thin">
459
+ <CardOrderItem
460
+ v-for="(product, index) in order.positions"
461
+ :key="`${product._id}_${product.variant || 'no-variant'}_${index}`"
462
+ :editable="false"
463
+ :productId="product._id"
464
+ :variantId="product.variant"
465
+ :images="product.images"
466
+ :name="product.name"
467
+ :quantity="product.quantity"
468
+ :unit="product.unit"
469
+ :dates="product.date"
470
+ :listing="product.listing"
471
+ :rentPeriod="product.rentPeriod || 'day'"
472
+ :price="product.price"
473
+ class="bg-white radius-small pd-small"
474
+ />
475
+ </ul>
476
+
477
+ <PriceTotal
478
+ :totalPrice="cartTotalPrice"
479
+ :deliveryRate="deliveryCost"
480
+ :currency="returnCurrency()"
481
+ :showFees="store.core.state.options?.orders?.showFees"
482
+ :feesRate="store.core.state.options?.orders?.feesRate || 0"
483
+ :showVat="store.core.state.options?.orders?.showVat"
484
+ :vatRate="store.core.state.options?.orders?.vatRate || 0"
485
+ :showDeliveryFee="store.core.state.options?.orders.showDeliveryFee"
486
+ />
487
+ </div>
488
+ </div>
489
+ </div>
490
+ </div>
284
491
  </template>
285
492
 
286
-
287
493
  <script setup="props">
288
- import { computed, ref, onMounted } from 'vue'
289
- import { useRouter, useRoute } from 'vue-router'
494
+ import { computed, ref, onMounted, getCurrentInstance } from "vue";
495
+ import { useRouter, useRoute } from "vue-router";
496
+
497
+ import Button from "@martyrs/src/components/Button/Button.vue";
498
+ import Select from "@martyrs/src/components/Select/Select.vue";
499
+ import Popup from "@martyrs/src/components/Popup/Popup.vue";
500
+ import Feed from "@martyrs/src/components/Feed/Feed.vue";
501
+
502
+ import IconTime from "@martyrs/src/modules/icons/entities/IconTime.vue";
503
+ import { calcRentTotalPrice } from "@martyrs/src/modules/orders/utils/rent-price.js";
504
+
505
+ // Block
506
+ import CardOrderItem from "@martyrs/src/modules/orders/components/blocks/CardOrderItem.vue";
507
+ import CardOrganization from "@martyrs/src/modules/organizations/components/blocks/CardOrganization.vue";
508
+ import CardUser from "@martyrs/src/modules/core/views/components/blocks/CardUser.vue";
509
+ import PlaceholderUserpic from "@martyrs/src/modules/icons/placeholders/PlaceholderUserpic.vue";
510
+ import IconPhone from "@martyrs/src/modules/icons/entities/IconPhone.vue";
511
+ import IconWhatsapp from "@martyrs/src/modules/icons/socials/whatsapp.vue";
512
+ import IconTelegram from "@martyrs/src/modules/icons/socials/telegram.vue";
513
+ import IconLine from "@martyrs/src/modules/icons/socials/line.vue";
514
+ import IconInstagram from "@martyrs/src/modules/icons/socials/instagram.vue";
515
+ import IconFacebook from "@martyrs/src/modules/icons/socials/facebook.vue";
516
+
517
+ import ChatPage from "@martyrs/src/modules/chats/components/pages/ChatPage.vue";
518
+
519
+ import StatusHistory from "@martyrs/src/modules/orders/components/blocks/StatusHistory.vue";
520
+ import PriceTotal from "@martyrs/src/modules/orders/components/elements/PriceTotal.vue";
521
+ import FormPayment from "@martyrs/src/modules/orders/components/sections/FormPayment.vue";
522
+
523
+ import { useStore } from "@martyrs/src/modules/core/views/store/core.store.js";
524
+ import * as auth from "@martyrs/src/modules/auth/views/store/auth.js";
525
+ import * as orders from "@martyrs/src/modules/orders/store/orders.js";
526
+ import * as products from "@martyrs/src/modules/products/store/products.js";
527
+ import * as organizations from "@martyrs/src/modules/organizations/store/organizations.js";
528
+ import variants from "@martyrs/src/modules/products/store/variants.store.js";
529
+
530
+ import { useI18n } from "vue-i18n";
531
+ import { useGlobalMixins } from "@martyrs/src/modules/core/views/mixins/mixins.js";
532
+
533
+ const store = useStore();
534
+ const { proxy } = getCurrentInstance();
535
+
536
+ const { locale } = useI18n();
537
+ const { returnCurrency, isPhone, isTablet, formatPhone, formatDate, formatPrice } = useGlobalMixins();
538
+
539
+ const router = useRouter();
540
+ const route = useRoute();
541
+
542
+ const order = ref(null);
543
+ const productsOrganization = ref(null);
544
+ const orderOrganization = ref(null);
545
+
546
+ const statuses = store.core.state.options?.orders?.statuses || [];
547
+
548
+ if (
549
+ route.meta.context === "user" &&
550
+ auth.state.user &&
551
+ route.params._id !== auth.state.user?._id &&
552
+ !auth.state.access?.roles?.includes("ROLE_MODERATOR") &&
553
+ !auth.state.access?.roles?.includes("ROLE_ADMIN")
554
+ ) {
555
+ router.push("/401");
556
+ }
557
+
558
+ const isOpeStatusPopup = ref(false);
559
+ const selectedMember = ref(null);
290
560
 
291
- import Button from '@martyrs/src/components/Button/Button.vue'
292
- import Select from '@martyrs/src/components/Select/Select.vue'
293
- import Popup from "@martyrs/src/components/Popup/Popup.vue";
561
+ function openStatusPopup(member) {
562
+ isOpeStatusPopup.value = true;
563
+ if (typeof member === "number") selectedMember.value = member;
564
+ }
294
565
 
295
- import IconTime from '@martyrs/src/modules/icons/entities/IconTime.vue'
566
+ function closeStatusPopup() {
567
+ isOpeStatusPopup.value = false;
568
+ selectedMember.value = null;
569
+ }
296
570
 
297
- // Block
298
- import CardOrderItem from '@martyrs/src/modules/orders/components/blocks/CardOrderItem.vue'
299
- import CardOrganization from '@martyrs/src/modules/organizations/components/blocks/CardOrganization.vue'
571
+ const isOpenPaymentPopup = ref(false);
300
572
 
301
- import ChatPage from '@martyrs/src/modules/chats/components/pages/ChatPage.vue';
573
+ const selectedPayments = ref({
574
+ type: null,
575
+ status: null,
576
+ });
302
577
 
303
- import StatusHistory from '@martyrs/src/modules/orders/components/blocks/StatusHistory.vue'
304
- import PriceTotal from '@martyrs/src/modules/orders/components/elements/PriceTotal.vue';
305
- import FormPayment from '@martyrs/src/modules/orders/components/sections/FormPayment.vue'
578
+ function openPaymentPopup() {
579
+ selectedPayments.value.type = order.value.payment.type;
580
+ selectedPayments.value.status = order.value.payment.status;
306
581
 
307
- import { useStore } from '@martyrs/src/modules/core/views/store/core.store.js'
308
- import * as auth from '@martyrs/src/modules/auth/views/store/auth.js'
309
- import * as orders from '@martyrs/src/modules/orders/store/orders.js'
310
- import * as products from '@martyrs/src/modules/products/store/products.js'
311
- import * as organizations from '@martyrs/src/modules/organizations/store/organizations.js'
582
+ isOpenPaymentPopup.value = true;
583
+ }
312
584
 
313
- import { useI18n } from 'vue-i18n';
314
- import { useGlobalMixins } from '@martyrs/src/modules/core/views/mixins/mixins.js';
585
+ function closePaymentPopup() {
586
+ isOpenPaymentPopup.value = false;
587
+ }
315
588
 
316
- const store = useStore()
317
-
318
- const { locale } = useI18n();
319
- const { returnCurrency } = useGlobalMixins();
589
+ // Add product to order
590
+ const isAddProductPopupOpen = ref(false);
591
+ const isAddVariantsPopupOpen = ref(false);
592
+ const selectedProduct = ref(null);
320
593
 
321
- const router = useRouter()
322
- const route = useRoute()
594
+ function openAddProductPopup() {
595
+ isAddProductPopupOpen.value = true;
596
+ }
323
597
 
324
- const order = ref(null)
325
- const productsOrganization = ref(null)
326
- const orderOrganization = ref(null)
598
+ function closeAddProductPopup() {
599
+ isAddProductPopupOpen.value = false;
600
+ }
327
601
 
328
- const statuses = store.core.state.options?.orders?.statuses || []
329
- const statusLabels = ['Created', 'Confirmed', 'Preparing', 'In use', 'Finished'];
602
+ function closeAddVariantsPopup() {
603
+ isAddVariantsPopupOpen.value = false;
604
+ selectedProduct.value = null;
605
+ }
606
+
607
+ function selectProduct(product) {
608
+ selectedProduct.value = product;
609
+ closeAddProductPopup();
330
610
 
331
- if (route.meta.context === 'user' &&
332
- auth.state.user &&
333
- route.params._id !== auth.state.user?._id &&
334
- !auth.state.access?.roles?.includes('ROLE_MODERATOR') &&
335
- !auth.state.access?.roles?.includes('ROLE_ADMIN')) {
336
- router.push('/401');
611
+ if (product.variants && product.variants.length === 1) {
612
+ addVariantToOrder(product.variants[0]);
613
+ return;
337
614
  }
338
615
 
339
- const isOpeStatusPopup = ref(false);
340
- const selectedMember = ref(null);
616
+ isAddVariantsPopupOpen.value = true;
617
+ }
341
618
 
342
- function openStatusPopup(member) {
343
- isOpeStatusPopup.value = true;
344
- if (typeof member === "number") selectedMember.value = member;
345
- }
619
+ function formatProductName(product, variant) {
620
+ if (!variant || product.variants?.length === 1 && !(variant.attributes?.length))
621
+ return product.name;
346
622
 
347
- function closeStatusPopup() {
348
- isOpeStatusPopup.value = false;
349
- selectedMember.value = null;
350
- }
623
+ const attrs = variant.attributes?.map(a => a.value).filter(Boolean);
624
+ return attrs?.length
625
+ ? `${product.name} / ${attrs.join(' / ')}`
626
+ : `${product.name} / ${variant.name}`;
627
+ }
351
628
 
352
- const isOpenPaymentPopup = ref(false);
629
+ async function addVariantToOrder(variant) {
630
+ try {
631
+ let selectedDates = null;
632
+
633
+ if (selectedProduct.value.listing === 'rent') {
634
+ const rentPeriod = selectedProduct.value.rentPeriod || 'day'
635
+ const enableTime = ['hour', '4hours', 'flat'].includes(rentPeriod)
636
+ selectedDates = await proxy.$dateSelector(
637
+ selectedProduct.value._id,
638
+ variant._id,
639
+ 1,
640
+ variant.price || selectedProduct.value.price,
641
+ { enableTime, periodType: rentPeriod }
642
+ );
643
+
644
+ if (!selectedDates) return;
645
+ }
353
646
 
354
- const selectedPayments = ref({
355
- type: null,
356
- status: null
357
- });
647
+ const position = {
648
+ _id: selectedProduct.value._id,
649
+ images: variant.images?.length > 0 ? variant.images : selectedProduct.value.images,
650
+ name: formatProductName(selectedProduct.value, variant),
651
+ listing: selectedProduct.value.listing,
652
+ price: variant.price || selectedProduct.value.price,
653
+ quantity: 1,
654
+ unit: variant.unit || selectedProduct.value.unit,
655
+ date: selectedDates,
656
+ rentPeriod: selectedProduct.value.rentPeriod || 'day',
657
+ variant: variant._id,
658
+ org_id: order.value.owner.target._id
659
+ };
660
+
661
+ order.value.positions.push(position);
662
+ closeAddVariantsPopup();
663
+ } catch (error) {
664
+ console.error('Error adding variant to order:', error);
665
+ }
666
+ }
358
667
 
359
- function openPaymentPopup() {
360
- selectedPayments.value.type = order.value.payment.type
361
- selectedPayments.value.status = order.value.payment.status
668
+ onMounted(async () => {
669
+ order.value = await orders.actions.read({ _id: route.params.order });
670
+ order.value = order.value[0];
362
671
 
363
- isOpenPaymentPopup.value = true;
364
- }
672
+ orderOrganization.value = await organizations.actions.read({
673
+ _id: order.value?.owner.target._id,
674
+ location: store.core.state.position?.location,
675
+ lookup: ["spots"],
676
+ });
677
+ });
365
678
 
366
- function closePaymentPopup() {
367
- isOpenPaymentPopup.value = false;
368
- }
679
+ const deliveryCost = computed(() => {
680
+ const type = orders.state.current.delivery.type;
681
+ const distance = orderOrganization.value[0]?.distance || 0;
682
+ const config = store.core.state.options?.orders?.delivery_formula || {};
369
683
 
370
- onMounted(async()=>{
371
- order.value = await orders.actions.read({_id: route.params.order})
372
- order.value = order.value[0]
684
+ return orders.getters.getDeliveryPrice(type, distance, config);
685
+ });
373
686
 
374
- orderOrganization.value = await organizations.actions.read({
375
- _id: order.value?.owner.target._id,
376
- location: store.core.state.position?.location,
377
- lookup: ['spots']
378
- });
687
+ function statusLabel(value) {
688
+ const found = statuses.find(s => s.value === value)
689
+ return found ? found.label : value
690
+ }
379
691
 
380
- })
692
+ function paymentStatusClass(status) {
693
+ switch (status) {
694
+ case "paid":
695
+ return "bg-green t-white";
696
+ case "refunded":
697
+ return "bg-second t-white";
698
+ default:
699
+ return "bg-red t-white";
700
+ }
701
+ }
381
702
 
703
+ const socialUrlMap = {
704
+ whatsapp: (v) => `https://wa.me/${v.replace(/[^0-9]/g, "")}`,
705
+ telegram: (v) => `https://t.me/${v.replace("@", "")}`,
706
+ line: (v) => `https://line.me/ti/p/${v}`,
707
+ instagram: (v) => `https://instagram.com/${v.replace("@", "")}`,
708
+ facebook: (v) => `https://facebook.com/${v}`,
709
+ };
710
+
711
+ const socialIcons = {
712
+ whatsapp: IconWhatsapp,
713
+ telegram: IconTelegram,
714
+ line: IconLine,
715
+ instagram: IconInstagram,
716
+ facebook: IconFacebook,
717
+ };
718
+
719
+ function getSocialUrl(key, value) {
720
+ return socialUrlMap[key] ? socialUrlMap[key](value) : value;
721
+ }
382
722
 
383
- const deliveryCost = computed(() => {
384
- const type = orders.state.current.delivery.type
385
- const distance = orderOrganization.value[0]?.distance || 0
386
- const config = store.core.state.options?.orders?.delivery_formula || {}
387
-
388
- return orders.getters.getDeliveryPrice(type, distance, config)
389
- })
390
-
391
- let cartTotalPrice = computed(() => {
392
- return Number(order.value?.positions.reduce((total, product) => {
393
- // Проверяем тип листинга
394
- if (product.listing === 'rent') {
395
- const start = new Date(product.date.start)
396
- const end = new Date(product.date.end)
397
- const diffTime = Math.abs(end - start)
398
- return total + product.price * (Math.ceil(diffTime / (1000 * 60 * 60 * 24)) + 1);
723
+ const customerContact = computed(() => {
724
+ const customer = order.value?.customer?.target;
725
+ if (!customer) return null;
726
+ const socials = customer.socials || customer.data?.socials || {};
727
+ // Приоритет: whatsapp > telegram > line > phone
728
+ for (const key of ["whatsapp", "telegram", "line"]) {
729
+ if (socials[key])
730
+ return {
731
+ type: key,
732
+ value: socials[key],
733
+ url: getSocialUrl(key, socials[key]),
734
+ icon: socialIcons[key],
735
+ };
736
+ }
737
+ const phone = customer.phone || customer.data?.phone;
738
+ if (phone)
739
+ return {
740
+ type: "phone",
741
+ value: formatPhone(phone),
742
+ url: `tel:${phone}`,
743
+ icon: IconPhone,
744
+ };
745
+ return null;
746
+ });
747
+
748
+ const customerLink = computed(() => {
749
+ if (!order.value?.customer?.target?._id) return "";
750
+ const ctx = route.meta.context;
751
+ const customerId = order.value.customer.target._id;
752
+ if (ctx === "backoffice")
753
+ return `/backoffice/customers?customerId=${customerId}`;
754
+ if (ctx === "organization")
755
+ return `/organizations/${route.params._id}/customers?customerId=${customerId}`;
756
+ return `/customers?customerId=${customerId}`;
757
+ });
758
+
759
+ let cartTotalPrice = computed(() => {
760
+ return Number(
761
+ order.value?.positions.reduce((total, product) => {
762
+ // Если в ордере уже сохранён totalPrice позиции — используем его
763
+ if (product.totalPrice) {
764
+ return total + product.totalPrice;
765
+ }
766
+ // Fallback для старых ордеров без totalPrice
767
+ if (
768
+ product.listing === "rent" &&
769
+ product.date?.start &&
770
+ product.date?.end
771
+ ) {
772
+ return (
773
+ total +
774
+ calcRentTotalPrice(
775
+ product.price,
776
+ product.quantity,
777
+ product.date.start,
778
+ product.date.end,
779
+ product.rentPeriod || "day",
780
+ )
781
+ );
399
782
  } else {
400
- // Для обычных товаров умножаем на количество
401
783
  return total + product.price * (product.quantity || 1);
402
784
  }
403
- }, 0));
404
- })
785
+ }, 0),
786
+ );
787
+ });
405
788
 
406
-
407
- let cartTotalAmount = computed(() => {
408
- return Number(order.value?.positions.reduce((total, product) => {
789
+ let cartTotalAmount = computed(() => {
790
+ return Number(
791
+ order.value?.positions.reduce((total, product) => {
409
792
  return total + product.quantity;
410
- }, 0));
411
- })
412
-
413
- // Функция установки нового статуса
414
- async function setStatus (newStatus) {
415
- orders.state.current.status = newStatus
793
+ }, 0),
794
+ );
795
+ });
416
796
 
417
- await orders.actions.update(orders.state.current)
418
- }
797
+ // Функция установки нового статуса
798
+ async function setStatus(newStatus) {
799
+ orders.state.current.status = newStatus;
419
800
 
801
+ await orders.actions.update(orders.state.current);
802
+ }
420
803
 
421
- function getNextStatus(currentStatus) {
422
- const currentIndex = statuses.findIndex(status => status.value === currentStatus);
804
+ function getNextStatus(currentStatus) {
805
+ const currentIndex = statuses.findIndex(
806
+ (status) => status.value === currentStatus,
807
+ );
423
808
 
424
- if (currentIndex !== -1 && currentIndex + 1 < statuses.length) {
425
- return statuses[currentIndex + 1];
426
- }
427
- return null; // If next status doesn't exist
428
- }
809
+ if (currentIndex !== -1 && currentIndex + 1 < statuses.length) {
810
+ return statuses[currentIndex + 1];
811
+ }
812
+ return null; // If next status doesn't exist
813
+ }
429
814
 
430
- const isActiveStatus = (index) => {
431
- return statuses.slice(index).some(status => status.value === order.value?.status);
432
- };
815
+ const isActiveStatus = (index) => {
816
+ return statuses
817
+ .slice(index)
818
+ .some((status) => status.value === order.value?.status);
819
+ };
433
820
 
434
- async function changePaymentStatus() {
435
- if (selectedPayments.value.status && selectedPayments.value.type) {
436
- orders.state.current.payment = selectedPayments.value;
821
+ async function changePaymentStatus() {
822
+ if (selectedPayments.value.status && selectedPayments.value.type) {
823
+ orders.state.current.payment = selectedPayments.value;
437
824
 
438
- await orders.actions.update(orders.state.current)
439
- } else {
440
- console.error('Payment status is void. Must handle somehow.');
441
- }
442
-
443
- closePaymentPopup()
825
+ await orders.actions.update(orders.state.current);
826
+ } else {
827
+ console.error("Payment status is void. Must handle somehow.");
444
828
  }
445
829
 
446
- async function setNextStatus() {
447
- const nextStatus = getNextStatus(orders.state.current.status);
830
+ closePaymentPopup();
831
+ }
448
832
 
449
- if (nextStatus) {
450
- orders.state.current.status = nextStatus.value;
451
-
452
- // Обновляем позиции заказа из текущего состояния
453
- orders.state.current.positions = order.value.positions;
833
+ async function setNextStatus() {
834
+ const nextStatus = getNextStatus(orders.state.current.status);
454
835
 
455
- await orders.actions.update(orders.state.current)
456
- } else {
457
- console.error('Next status is void. Must handle somehow.');
458
- }
459
-
460
- closeStatusPopup()
461
- }
836
+ if (nextStatus) {
837
+ orders.state.current.status = nextStatus.value;
462
838
 
463
- async function cancelOrder() {
464
- alert()
839
+ // Обновляем позиции заказа из текущего состояния
840
+ orders.state.current.positions = order.value.positions;
465
841
 
466
- orders.state.current.status = 'canceled';
842
+ await orders.actions.update(orders.state.current);
843
+ } else {
844
+ console.error("Next status is void. Must handle somehow.");
845
+ }
467
846
 
468
- await orders.actions.update(orders.state.current)
847
+ closeStatusPopup();
469
848
  }
470
849
 
850
+ async function cancelOrder() {
851
+ alert();
471
852
 
472
- async function confirmOrder() {
473
- alert()
853
+ orders.state.current.status = "canceled";
474
854
 
475
- orders.state.current.status = 'confirmed';
855
+ await orders.actions.update(orders.state.current);
856
+ }
476
857
 
477
- await orders.actions.update(orders.state.current)
478
- }
858
+ async function confirmOrder() {
859
+ alert();
479
860
 
480
- function calculateDeliveryTime(distance, date) {
481
- if (!distance) {
482
- return null;
483
- }
861
+ orders.state.current.status = "confirmed";
484
862
 
485
- const basePreparationTime = 10 * 60 * 1000; // Convert to milliseconds
486
- const travelTime = Math.ceil((15 + 5 + 3 * distance) / 5) * 5 * 60 * 1000;
863
+ await orders.actions.update(orders.state.current);
864
+ }
487
865
 
488
- // Преобразование даты начала в миллисекунды и добавление времени подготовки и доставки
489
- const startTime = new Date(date).getTime();
490
- const estimatedDeliveryTime = new Date(startTime + basePreparationTime + travelTime);
866
+ function calculateDeliveryTime(distance, date) {
867
+ if (!distance) {
868
+ return null;
869
+ }
491
870
 
492
- return estimatedDeliveryTime;
493
- }
871
+ const basePreparationTime = 10 * 60 * 1000; // Convert to milliseconds
872
+ const travelTime = Math.ceil((15 + 5 + 3 * distance) / 5) * 5 * 60 * 1000;
494
873
 
874
+ // Преобразование даты начала в миллисекунды и добавление времени подготовки и доставки
875
+ const startTime = new Date(date).getTime();
876
+ const estimatedDeliveryTime = new Date(
877
+ startTime + basePreparationTime + travelTime,
878
+ );
495
879
 
880
+ return estimatedDeliveryTime;
881
+ }
496
882
  </script>
497
883
 
498
884
  <style lang="scss" scoped>
499
- .blink {
500
- animation: blink-animation 1s ease infinite;
501
- }
502
-
503
- @keyframes blink-animation {
504
- 0%, 100% {
505
- opacity: 1;
506
- }
507
- 50% {
508
- opacity: 0.8;
509
- }
510
- }
511
- </style>
885
+ .blink {
886
+ animation: blink-animation 1s ease infinite;
887
+ }
888
+
889
+ @keyframes blink-animation {
890
+ 0%,
891
+ 100% {
892
+ opacity: 1;
893
+ }
894
+ 50% {
895
+ opacity: 0.8;
896
+ }
897
+ }
898
+ </style>