@ozdao/martyrs 0.2.506 → 0.2.507

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 (574) hide show
  1. package/dist/auth.server.cjs +1 -1
  2. package/dist/auth.server.js +1 -1
  3. package/dist/builder.cjs +52 -60
  4. package/dist/builder.js +52 -60
  5. package/dist/chats.server.cjs +1 -1
  6. package/dist/chats.server.js +1 -1
  7. package/dist/events.server.cjs +1 -1
  8. package/dist/events.server.js +1 -1
  9. package/dist/{mailing-q7sR8gCV.cjs → mailing-Bs9ThyVZ.cjs} +1 -24
  10. package/dist/{mailing-C11EYWm-.js → mailing-DzlhsxCC.js} +1 -24
  11. package/dist/main-AWSb_d2P.cjs +11 -0
  12. package/dist/{main-DC__VS5b.js → main-Dq-UfO4G.js} +2562 -2477
  13. package/dist/martyrs/src/components/Button/{Button.vue.cjs → Button.vue2.cjs} +2 -2
  14. package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +1 -0
  15. package/dist/martyrs/src/components/Button/{Button.vue.js → Button.vue2.js} +2 -2
  16. package/dist/martyrs/src/components/Button/{Button.vue.cjs.map → Button.vue2.js.map} +1 -1
  17. package/dist/martyrs/src/components/Checkbox/Checkbox.vue.cjs +3 -3
  18. package/dist/martyrs/src/components/Checkbox/Checkbox.vue.cjs.map +1 -1
  19. package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js +3 -3
  20. package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js.map +1 -1
  21. package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs +0 -93
  22. package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs.map +1 -1
  23. package/dist/martyrs/src/components/EditImages/EditImages.vue.js +1 -94
  24. package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -1
  25. package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs +93 -0
  26. package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs.map +1 -1
  27. package/dist/martyrs/src/components/EditImages/EditImages.vue2.js +94 -1
  28. package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +1 -1
  29. package/dist/martyrs/src/components/Feed/Feed.vue.cjs +14 -45
  30. package/dist/martyrs/src/components/Feed/Feed.vue.cjs.map +1 -1
  31. package/dist/martyrs/src/components/Feed/Feed.vue.js +21 -52
  32. package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
  33. package/dist/martyrs/src/components/Field/Field.vue.cjs +14 -6
  34. package/dist/martyrs/src/components/Field/Field.vue.cjs.map +1 -1
  35. package/dist/martyrs/src/components/Field/Field.vue.js +14 -6
  36. package/dist/martyrs/src/components/Field/Field.vue.js.map +1 -1
  37. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs +58 -11
  38. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs.map +1 -1
  39. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +60 -13
  40. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js.map +1 -1
  41. package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.cjs +2 -2
  42. package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.cjs.map +1 -1
  43. package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.js +2 -2
  44. package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.js.map +1 -1
  45. package/dist/martyrs/src/components/Spoiler/{Spoiler.vue.cjs → Spoiler.vue2.cjs} +2 -2
  46. package/dist/martyrs/src/components/Spoiler/Spoiler.vue2.cjs.map +1 -0
  47. package/dist/martyrs/src/components/Spoiler/{Spoiler.vue.js → Spoiler.vue2.js} +2 -2
  48. package/dist/martyrs/src/components/Spoiler/{Spoiler.vue.cjs.map → Spoiler.vue2.js.map} +1 -1
  49. package/dist/martyrs/src/components/Tab/{Tab.vue.cjs → Tab.vue2.cjs} +2 -2
  50. package/dist/martyrs/src/components/Tab/Tab.vue2.cjs.map +1 -0
  51. package/dist/martyrs/src/components/Tab/{Tab.vue.js → Tab.vue2.js} +2 -2
  52. package/dist/martyrs/src/components/Tab/{Tab.vue.cjs.map → Tab.vue2.js.map} +1 -1
  53. package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +2 -2
  54. package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +2 -2
  55. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +2 -2
  56. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +2 -2
  57. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +2 -2
  58. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -1
  59. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +2 -2
  60. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
  61. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +1 -1
  62. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +1 -1
  63. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +42 -10
  64. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs.map +1 -1
  65. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +44 -12
  66. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -1
  67. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs +12 -16
  68. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs.map +1 -1
  69. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +22 -26
  70. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js.map +1 -1
  71. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs +13 -17
  72. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs.map +1 -1
  73. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +34 -38
  74. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js.map +1 -1
  75. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.cjs +13 -9
  76. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.cjs.map +1 -1
  77. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js +13 -9
  78. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js.map +1 -1
  79. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +2 -2
  80. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +2 -2
  81. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +2 -2
  82. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +2 -2
  83. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +2 -2
  84. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +2 -2
  85. package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.cjs +1 -1
  86. package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +1 -1
  87. package/dist/martyrs/src/modules/auth/views/router/users.cjs +0 -4
  88. package/dist/martyrs/src/modules/auth/views/router/users.cjs.map +1 -1
  89. package/dist/martyrs/src/modules/auth/views/router/users.js +0 -4
  90. package/dist/martyrs/src/modules/auth/views/router/users.js.map +1 -1
  91. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  92. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +1 -1
  93. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  94. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  95. package/dist/martyrs/src/modules/community/components/pages/Posts.vue.cjs +431 -0
  96. package/dist/martyrs/src/modules/community/components/pages/Posts.vue.cjs.map +1 -0
  97. package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js +431 -0
  98. package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js.map +1 -0
  99. package/dist/martyrs/src/modules/community/router/blogposts.cjs +17 -0
  100. package/dist/martyrs/src/modules/community/router/blogposts.cjs.map +1 -1
  101. package/dist/martyrs/src/modules/community/router/blogposts.js +17 -0
  102. package/dist/martyrs/src/modules/community/router/blogposts.js.map +1 -1
  103. package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  104. package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  105. package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  106. package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  107. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
  108. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  109. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  110. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  111. package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +1 -3
  112. package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
  113. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +1 -3
  114. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
  115. package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
  116. package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
  117. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +2 -2
  118. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  119. package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.cjs +4 -6
  120. package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.cjs.map +1 -1
  121. package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.js +4 -6
  122. package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.js.map +1 -1
  123. package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +1 -1
  124. package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.js +1 -1
  125. package/dist/martyrs/src/modules/globals/views/components/blocks/Card.vue.cjs +5 -2
  126. package/dist/martyrs/src/modules/globals/views/components/blocks/Card.vue.cjs.map +1 -1
  127. package/dist/martyrs/src/modules/globals/views/components/blocks/Card.vue.js +6 -3
  128. package/dist/martyrs/src/modules/globals/views/components/blocks/Card.vue.js.map +1 -1
  129. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
  130. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
  131. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.cjs +1 -1
  132. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.js +1 -1
  133. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs +1 -1
  134. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +1 -1
  135. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -3
  136. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
  137. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +2 -3
  138. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
  139. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
  140. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +1 -1
  141. package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.cjs +1 -1
  142. package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.js +1 -1
  143. package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
  144. package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
  145. package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.cjs +324 -0
  146. package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.cjs.map +1 -0
  147. package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.js +324 -0
  148. package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.js.map +1 -0
  149. package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
  150. package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
  151. package/dist/martyrs/src/modules/icons/entities/IconLock.vue.cjs +32 -0
  152. package/dist/martyrs/src/modules/icons/entities/IconLock.vue.cjs.map +1 -0
  153. package/dist/martyrs/src/modules/icons/entities/IconLock.vue.js +32 -0
  154. package/dist/martyrs/src/modules/icons/entities/IconLock.vue.js.map +1 -0
  155. package/dist/martyrs/src/modules/icons/icons.client.cjs +2 -0
  156. package/dist/martyrs/src/modules/icons/icons.client.cjs.map +1 -1
  157. package/dist/martyrs/src/modules/icons/icons.client.js +116 -114
  158. package/dist/martyrs/src/modules/icons/icons.client.js.map +1 -1
  159. package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs +5 -3
  160. package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs.map +1 -1
  161. package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js +117 -115
  162. package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js.map +1 -1
  163. package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.cjs +1 -1
  164. package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +1 -1
  165. package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.cjs +1 -1
  166. package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js +1 -1
  167. package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +11 -36
  168. package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs.map +1 -1
  169. package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +11 -36
  170. package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js.map +1 -1
  171. package/dist/martyrs/src/modules/landing/landing.client.cjs +3 -0
  172. package/dist/martyrs/src/modules/landing/landing.client.cjs.map +1 -1
  173. package/dist/martyrs/src/modules/landing/landing.client.js +3 -0
  174. package/dist/martyrs/src/modules/landing/landing.client.js.map +1 -1
  175. package/dist/martyrs/src/modules/landing/locales/en.cjs +12 -0
  176. package/dist/martyrs/src/modules/landing/locales/en.cjs.map +1 -0
  177. package/dist/martyrs/src/modules/landing/locales/en.js +12 -0
  178. package/dist/martyrs/src/modules/landing/locales/en.js.map +1 -0
  179. package/dist/martyrs/src/modules/landing/locales/index.cjs +10 -0
  180. package/dist/martyrs/src/modules/landing/locales/index.cjs.map +1 -0
  181. package/dist/martyrs/src/modules/landing/locales/index.js +10 -0
  182. package/dist/martyrs/src/modules/landing/locales/index.js.map +1 -0
  183. package/dist/martyrs/src/modules/landing/locales/ru.cjs +12 -0
  184. package/dist/martyrs/src/modules/landing/locales/ru.cjs.map +1 -0
  185. package/dist/martyrs/src/modules/landing/locales/ru.js +12 -0
  186. package/dist/martyrs/src/modules/landing/locales/ru.js.map +1 -0
  187. package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.cjs +1 -1
  188. package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +1 -1
  189. package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.cjs +1 -1
  190. package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js +1 -1
  191. package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.cjs +1 -1
  192. package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js +1 -1
  193. package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.cjs +1 -1
  194. package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js +1 -1
  195. package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.cjs +1 -1
  196. package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +1 -1
  197. package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.cjs +1 -1
  198. package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +1 -1
  199. package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.cjs +1 -1
  200. package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +1 -1
  201. package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.cjs +1 -1
  202. package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.js +1 -1
  203. package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.cjs +1 -1
  204. package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +1 -1
  205. package/dist/martyrs/src/modules/music/components/pages/Album.vue.cjs +2 -2
  206. package/dist/martyrs/src/modules/music/components/pages/Album.vue.cjs.map +1 -1
  207. package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +2 -2
  208. package/dist/martyrs/src/modules/music/components/pages/Album.vue.js.map +1 -1
  209. package/dist/martyrs/src/modules/music/components/pages/Artist.vue.cjs +1 -1
  210. package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +1 -1
  211. package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.cjs +1 -1
  212. package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.js +1 -1
  213. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.cjs +2 -2
  214. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.cjs.map +1 -1
  215. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +2 -2
  216. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js.map +1 -1
  217. package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.cjs +1 -1
  218. package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +1 -1
  219. package/dist/martyrs/src/modules/music/components/pages/Track.vue.cjs +2 -2
  220. package/dist/martyrs/src/modules/music/components/pages/Track.vue.cjs.map +1 -1
  221. package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +2 -2
  222. package/dist/martyrs/src/modules/music/components/pages/Track.vue.js.map +1 -1
  223. package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.cjs +1 -1
  224. package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.js +1 -1
  225. package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.cjs +1 -1
  226. package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js +1 -1
  227. package/dist/martyrs/src/modules/music/router/music.cjs +2 -4
  228. package/dist/martyrs/src/modules/music/router/music.cjs.map +1 -1
  229. package/dist/martyrs/src/modules/music/router/music.js +2 -4
  230. package/dist/martyrs/src/modules/music/router/music.js.map +1 -1
  231. package/dist/martyrs/src/modules/notifications/components/pages/Notifications.vue.cjs +1 -1
  232. package/dist/martyrs/src/modules/notifications/components/pages/Notifications.vue.js +1 -1
  233. package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.cjs +86 -0
  234. package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.cjs.map +1 -0
  235. package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js +86 -0
  236. package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js.map +1 -0
  237. package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.cjs +103 -0
  238. package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.cjs.map +1 -0
  239. package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js +103 -0
  240. package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js.map +1 -0
  241. package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.cjs +194 -0
  242. package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.cjs.map +1 -0
  243. package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js +194 -0
  244. package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js.map +1 -0
  245. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.cjs +138 -0
  246. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.cjs.map +1 -0
  247. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +138 -0
  248. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js.map +1 -0
  249. package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.cjs +189 -0
  250. package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.cjs.map +1 -0
  251. package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +189 -0
  252. package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js.map +1 -0
  253. package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.cjs +173 -0
  254. package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.cjs.map +1 -0
  255. package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +173 -0
  256. package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js.map +1 -0
  257. package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.cjs +233 -0
  258. package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.cjs.map +1 -0
  259. package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js +233 -0
  260. package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js.map +1 -0
  261. package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.cjs +234 -0
  262. package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.cjs.map +1 -0
  263. package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js +234 -0
  264. package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js.map +1 -0
  265. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  266. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  267. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs +10 -9
  268. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs.map +1 -1
  269. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +10 -9
  270. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
  271. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +9 -83
  272. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs.map +1 -1
  273. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +10 -84
  274. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
  275. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  276. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +1 -1
  277. package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.cjs +119 -0
  278. package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.cjs.map +1 -0
  279. package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +119 -0
  280. package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js.map +1 -0
  281. package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.cjs +139 -0
  282. package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.cjs.map +1 -0
  283. package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +139 -0
  284. package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js.map +1 -0
  285. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -3
  286. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs.map +1 -1
  287. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +1 -3
  288. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js.map +1 -1
  289. package/dist/martyrs/src/modules/orders/locales/en.cjs +38 -0
  290. package/dist/martyrs/src/modules/orders/locales/en.cjs.map +1 -0
  291. package/dist/martyrs/src/modules/orders/locales/en.js +38 -0
  292. package/dist/martyrs/src/modules/orders/locales/en.js.map +1 -0
  293. package/dist/martyrs/src/modules/orders/locales/index.cjs +10 -0
  294. package/dist/martyrs/src/modules/orders/locales/index.cjs.map +1 -0
  295. package/dist/martyrs/src/modules/orders/locales/index.js +10 -0
  296. package/dist/martyrs/src/modules/orders/locales/index.js.map +1 -0
  297. package/dist/martyrs/src/modules/orders/locales/ru.cjs +38 -0
  298. package/dist/martyrs/src/modules/orders/locales/ru.cjs.map +1 -0
  299. package/dist/martyrs/src/modules/orders/locales/ru.js +38 -0
  300. package/dist/martyrs/src/modules/orders/locales/ru.js.map +1 -0
  301. package/dist/martyrs/src/modules/orders/orders.client.cjs +78 -3
  302. package/dist/martyrs/src/modules/orders/orders.client.cjs.map +1 -1
  303. package/dist/martyrs/src/modules/orders/orders.client.js +80 -5
  304. package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
  305. package/dist/martyrs/src/modules/orders/router/applications.router.cjs +17 -0
  306. package/dist/martyrs/src/modules/orders/router/applications.router.cjs.map +1 -0
  307. package/dist/martyrs/src/modules/orders/router/applications.router.js +17 -0
  308. package/dist/martyrs/src/modules/orders/router/applications.router.js.map +1 -0
  309. package/dist/martyrs/src/modules/orders/router/customers.router.cjs +18 -0
  310. package/dist/martyrs/src/modules/orders/router/customers.router.cjs.map +1 -0
  311. package/dist/martyrs/src/modules/orders/router/customers.router.js +18 -0
  312. package/dist/martyrs/src/modules/orders/router/customers.router.js.map +1 -0
  313. package/dist/martyrs/src/modules/orders/store/applications.cjs +4 -42
  314. package/dist/martyrs/src/modules/orders/store/applications.cjs.map +1 -1
  315. package/dist/martyrs/src/modules/orders/store/applications.js +3 -41
  316. package/dist/martyrs/src/modules/orders/store/applications.js.map +1 -1
  317. package/dist/martyrs/src/modules/orders/store/models/application.cjs +20 -0
  318. package/dist/martyrs/src/modules/orders/store/models/application.cjs.map +1 -0
  319. package/dist/martyrs/src/modules/orders/store/models/application.js +20 -0
  320. package/dist/martyrs/src/modules/orders/store/models/application.js.map +1 -0
  321. package/dist/martyrs/src/modules/orders/store/models/customer.cjs +13 -1
  322. package/dist/martyrs/src/modules/orders/store/models/customer.cjs.map +1 -1
  323. package/dist/martyrs/src/modules/orders/store/models/customer.js +13 -1
  324. package/dist/martyrs/src/modules/orders/store/models/customer.js.map +1 -1
  325. package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  326. package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
  327. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  328. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  329. package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  330. package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js +1 -1
  331. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
  332. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  333. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  334. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +1 -1
  335. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +16 -192
  336. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
  337. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +17 -193
  338. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
  339. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
  340. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  341. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  342. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  343. package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +2 -11
  344. package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs.map +1 -1
  345. package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js +6 -15
  346. package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js.map +1 -1
  347. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  348. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  349. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  350. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  351. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +2 -2
  352. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  353. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs +85 -89
  354. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs.map +1 -1
  355. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js +92 -96
  356. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
  357. package/dist/martyrs/src/modules/organizations/router/organizations.cjs +4 -0
  358. package/dist/martyrs/src/modules/organizations/router/organizations.cjs.map +1 -1
  359. package/dist/martyrs/src/modules/organizations/router/organizations.js +4 -0
  360. package/dist/martyrs/src/modules/organizations/router/organizations.js.map +1 -1
  361. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
  362. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
  363. package/dist/martyrs/src/modules/pages/views/components/pages/Page.vue.cjs +3 -6
  364. package/dist/martyrs/src/modules/pages/views/components/pages/Page.vue.cjs.map +1 -1
  365. package/dist/martyrs/src/modules/pages/views/components/pages/Page.vue.js +3 -6
  366. package/dist/martyrs/src/modules/pages/views/components/pages/Page.vue.js.map +1 -1
  367. package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
  368. package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
  369. package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  370. package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  371. package/dist/martyrs/src/modules/products/components/blocks/CardCategory.vue.cjs +1 -1
  372. package/dist/martyrs/src/modules/products/components/blocks/CardCategory.vue.cjs.map +1 -1
  373. package/dist/martyrs/src/modules/products/components/blocks/CardCategory.vue.js +1 -1
  374. package/dist/martyrs/src/modules/products/components/blocks/CardCategory.vue.js.map +1 -1
  375. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.cjs +2 -2
  376. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.cjs.map +1 -1
  377. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js +2 -2
  378. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js.map +1 -1
  379. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +22 -19
  380. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs.map +1 -1
  381. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +22 -19
  382. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js.map +1 -1
  383. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +28 -19
  384. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs.map +1 -1
  385. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +28 -19
  386. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js.map +1 -1
  387. package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +2 -2
  388. package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +2 -2
  389. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +3 -3
  390. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  391. package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +360 -105
  392. package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
  393. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +378 -123
  394. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
  395. package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.cjs +1 -1
  396. package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +1 -1
  397. package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.cjs +1 -1
  398. package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +1 -1
  399. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +2 -2
  400. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +2 -2
  401. package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  402. package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  403. package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.cjs +1 -1
  404. package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +1 -1
  405. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs +33 -3
  406. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs.map +1 -1
  407. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +34 -4
  408. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js.map +1 -1
  409. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +2 -2
  410. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +2 -2
  411. package/dist/martyrs/src/modules/products/router/products.router.cjs +15 -0
  412. package/dist/martyrs/src/modules/products/router/products.router.cjs.map +1 -1
  413. package/dist/martyrs/src/modules/products/router/products.router.js +15 -0
  414. package/dist/martyrs/src/modules/products/router/products.router.js.map +1 -1
  415. package/dist/martyrs/src/modules/products/store/categories.cjs +25 -7
  416. package/dist/martyrs/src/modules/products/store/categories.cjs.map +1 -1
  417. package/dist/martyrs/src/modules/products/store/categories.js +25 -7
  418. package/dist/martyrs/src/modules/products/store/categories.js.map +1 -1
  419. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.cjs +2 -2
  420. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +2 -2
  421. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.cjs +1 -1
  422. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +1 -1
  423. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  424. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  425. package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  426. package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  427. package/dist/martyrs/src/modules/spots/components/pages/Map.vue.cjs +1 -1
  428. package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +1 -1
  429. package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.cjs +1 -1
  430. package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js +1 -1
  431. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +2 -2
  432. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
  433. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.cjs +345 -0
  434. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.cjs.map +1 -0
  435. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js +345 -0
  436. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js.map +1 -0
  437. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +1 -1
  438. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +1 -1
  439. package/dist/martyrs/src/modules/spots/router/spots.cjs +17 -0
  440. package/dist/martyrs/src/modules/spots/router/spots.cjs.map +1 -1
  441. package/dist/martyrs/src/modules/spots/router/spots.js +17 -0
  442. package/dist/martyrs/src/modules/spots/router/spots.js.map +1 -1
  443. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  444. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
  445. package/dist/martyrs.cjs.js +1 -1
  446. package/dist/martyrs.css +1 -1
  447. package/dist/martyrs.es.js +1 -1
  448. package/dist/notifications.server.cjs +1 -1
  449. package/dist/notifications.server.js +1 -1
  450. package/dist/orders.server.cjs +459 -201
  451. package/dist/orders.server.js +459 -201
  452. package/dist/organizations.server.cjs +1 -1
  453. package/dist/organizations.server.js +1 -1
  454. package/dist/products.server.cjs +428 -255
  455. package/dist/products.server.js +428 -255
  456. package/dist/style.css +115 -139
  457. package/dist/{tickets.controller-DQQcjyui.js → tickets.controller-C56OvH6v.js} +1 -1
  458. package/dist/{tickets.controller-D0V0gJCA.cjs → tickets.controller-DdnndM6c.cjs} +1 -1
  459. package/dist/wallet.server.cjs +1 -1
  460. package/dist/wallet.server.js +1 -1
  461. package/dist/{web-B1bEJ1W9.js → web-BXajFCU2.js} +1 -1
  462. package/dist/{web-D5i9k2Vv.cjs → web-DaBwwCQ5.cjs} +1 -1
  463. package/package.json +1 -1
  464. package/src/builder/modes/ssr.dev.js +10 -10
  465. package/src/builder/rspack/rspack.config.ssr.client.js +50 -50
  466. package/src/components/Checkbox/Checkbox.vue +3 -4
  467. package/src/components/Feed/Feed.old.vue +522 -0
  468. package/src/components/Feed/Feed.vue +4 -4
  469. package/src/components/Field/Field.vue +7 -1
  470. package/src/components/FieldBig/FieldBig.vue +62 -8
  471. package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
  472. package/src/modules/STYLES.MD +198 -0
  473. package/src/modules/auth/views/components/pages/Profile.vue +1 -1
  474. package/src/modules/auth/views/components/pages/ProfileEdit.vue +42 -8
  475. package/src/modules/auth/views/components/pages/ProfileEditAccount.vue +9 -11
  476. package/src/modules/auth/views/components/pages/ProfileEditProfile.vue +9 -11
  477. package/src/modules/auth/views/components/pages/ProfileEditSidebar.vue +7 -4
  478. package/src/modules/auth/views/router/users.js +0 -4
  479. package/src/modules/community/components/pages/Posts.vue +444 -0
  480. package/src/modules/community/router/blogposts.js +15 -0
  481. package/src/modules/globals/views/classes/globals.websocket.js +7 -8
  482. package/src/modules/globals/views/components/blocks/Card.vue +2 -1
  483. package/src/modules/globals/views/components/layouts/Client.vue +1 -2
  484. package/src/modules/globals/views/components/partials/FooterAlt.vue +161 -188
  485. package/src/modules/globals/views/components/sections/Filters.vue +261 -121
  486. package/src/modules/globals/views/components/sections/filters/FilterCheckbox.vue +78 -0
  487. package/src/modules/globals/views/components/sections/filters/FilterDateRange.vue +177 -0
  488. package/src/modules/globals/views/components/sections/filters/FilterRange.vue +51 -50
  489. package/src/modules/icons/entities/IconLock.vue +14 -0
  490. package/src/modules/icons/icons.client.js +2 -1
  491. package/src/modules/icons/pages/IconsPage.vue +4 -2
  492. package/src/modules/landing/components/sections/SubscribeNewsletter.vue +11 -61
  493. package/src/modules/landing/landing.client.js +6 -0
  494. package/src/modules/landing/locales/en.js +9 -0
  495. package/src/modules/landing/locales/index.js +7 -0
  496. package/src/modules/landing/locales/ru.js +9 -0
  497. package/src/modules/music/components/pages/Album.vue +1 -1
  498. package/src/modules/music/components/pages/Playlist.vue +1 -1
  499. package/src/modules/music/components/pages/Track.vue +1 -1
  500. package/src/modules/orders/components/blocks/CardApplication.vue +74 -0
  501. package/src/modules/orders/components/blocks/CardCustomer.vue +90 -0
  502. package/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue +199 -0
  503. package/src/modules/orders/components/forms/FormApplicationDetails.vue +117 -0
  504. package/src/modules/orders/components/forms/FormCustomerDetails.vue +165 -0
  505. package/src/modules/orders/components/forms/FormSelectCustomer.vue +172 -0
  506. package/src/modules/orders/components/pages/Applications.vue +240 -0
  507. package/src/modules/orders/components/pages/Customers.vue +239 -0
  508. package/src/modules/orders/components/pages/OrderCreate.vue +2 -2
  509. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +4 -75
  510. package/src/modules/orders/components/sections/ApplicationDetails.vue +91 -0
  511. package/src/modules/orders/components/sections/CustomerDetails.vue +107 -0
  512. package/src/modules/orders/locales/en.js +35 -0
  513. package/src/modules/orders/locales/index.js +7 -0
  514. package/src/modules/orders/locales/ru.js +35 -0
  515. package/src/modules/orders/middlewares/applications.verifier.js +189 -0
  516. package/src/modules/orders/middlewares/customers.verifier.js +251 -0
  517. package/src/modules/orders/models/application.model.js +21 -0
  518. package/src/modules/orders/models/customer.model.js +26 -0
  519. package/src/modules/orders/orders.client.js +86 -1
  520. package/src/modules/orders/orders.server.js +3 -1
  521. package/src/modules/orders/router/applications.router.js +15 -0
  522. package/src/modules/orders/router/customers.router.js +17 -0
  523. package/src/modules/orders/routes/applications.routes.js +124 -12
  524. package/src/modules/orders/routes/customers.routes.js +43 -0
  525. package/src/modules/orders/store/applications.js +3 -159
  526. package/src/modules/orders/store/models/application.js +18 -0
  527. package/src/modules/orders/store/models/customer.js +12 -0
  528. package/src/modules/organizations/components/pages/Organization.new.vue +593 -0
  529. package/src/modules/organizations/components/pages/Organization.vue +10 -201
  530. package/src/modules/organizations/components/sections/DetailsTabSection.vue +2 -2
  531. package/src/modules/organizations/configs/navigation.organization.config.js +69 -85
  532. package/src/modules/organizations/router/organizations.js +5 -0
  533. package/src/modules/pages/views/components/pages/Page.vue +1 -1
  534. package/src/modules/products/TASKS.MD +157 -0
  535. package/src/modules/products/components/blocks/CardCategory.vue +1 -1
  536. package/src/modules/products/components/blocks/ProductImages.vue +1 -1
  537. package/src/modules/products/components/pages/Categories.vue +27 -22
  538. package/src/modules/products/components/pages/CategoryEdit.vue +24 -13
  539. package/src/modules/products/components/pages/Products.vue +414 -173
  540. package/src/modules/products/components/sections/ProductsRecommended.vue +46 -2
  541. package/src/modules/products/controllers/categories.controller.js +321 -282
  542. package/src/modules/products/controllers/configs/products.lookup.config.js +9 -0
  543. package/src/modules/products/controllers/products.controller.js +2 -1
  544. package/src/modules/products/controllers/queries/products.queries.js +183 -11
  545. package/src/modules/products/middlewares/categories.verifier.js +58 -15
  546. package/src/modules/products/migrations/categories-to-materialized-path.js +433 -0
  547. package/src/modules/products/migrations/path-to-url.js +27 -0
  548. package/src/modules/products/models/category.model.js +8 -23
  549. package/src/modules/products/router/products.router.js +12 -0
  550. package/src/modules/products/store/categories.js +26 -7
  551. package/src/modules/rents/TASK.MD +161 -0
  552. package/src/modules/spots/components/pages/Spots.vue +342 -0
  553. package/src/modules/spots/router/spots.js +15 -0
  554. package/src/styles/base/all.scss +2 -3
  555. package/src/styles/layout.scss +16 -0
  556. package/dist/main-w3rPUBVh.cjs +0 -11
  557. package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.cjs +0 -96
  558. package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.cjs.map +0 -1
  559. package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.js +0 -96
  560. package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.js.map +0 -1
  561. package/dist/martyrs/src/components/Button/Button.vue.js.map +0 -1
  562. package/dist/martyrs/src/components/Spoiler/Spoiler.vue.js.map +0 -1
  563. package/dist/martyrs/src/components/Tab/Tab.vue.js.map +0 -1
  564. package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +0 -155
  565. package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs.map +0 -1
  566. package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js +0 -155
  567. package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js.map +0 -1
  568. package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +0 -81
  569. package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs.map +0 -1
  570. package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.js +0 -81
  571. package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.js.map +0 -1
  572. package/src/modules/orders/components/sections/FormAddCustomer.vue +0 -152
  573. package/src/modules/orders/components/sections/FormCustomerDetails.vue +0 -67
  574. package/src/modules/orders/controllers/applications.controller.js +0 -122
@@ -0,0 +1,172 @@
1
+ <template>
2
+ <Block
3
+ title="Customer"
4
+ class="pos-relative mn-b-thin"
5
+ :actions="[{
6
+ label: '+',
7
+ function: () => openCreatePopup()
8
+ }]"
9
+ >
10
+ <Card
11
+ v-if="customer?._id"
12
+ :photo="customer.profile?.photo"
13
+ :title="customer.profile?.name || customer.phone || customer.email || 'Unnamed Customer'"
14
+ :subtitle="customer.email || customer.phone"
15
+ :action="{
16
+ label: { is: IconCross },
17
+ method: clearCustomer
18
+ }"
19
+ class="bg-white h-2r pd-thin radius-medium w-100 flex flex-v-center gap-thin"
20
+ />
21
+
22
+ <div v-else>
23
+ <BlockSearch
24
+ @search="(event) => { searchUser = event }"
25
+ placeholder="Enter name, phone or email"
26
+ class="bg-white mn-b-thin"
27
+ />
28
+
29
+ <Feed
30
+ :states="{
31
+ empty: {
32
+ title: 'No Customer Found',
33
+ description: 'Currently, there are no such customer.'
34
+ }
35
+ }"
36
+ :store="customers"
37
+ :options="{
38
+ search: searchUser,
39
+ owner: route.params._id
40
+ }"
41
+ :showLoadMore="false"
42
+ v-slot="{ items }"
43
+ class="h-max-20r o-scroll"
44
+ >
45
+ <div
46
+ v-for="customerItem in items"
47
+ :key="customerItem._id"
48
+ @click="selectCustomer(customerItem)"
49
+ class="bg-white pd-thin radius-medium w-100 mn-b-thin cursor-pointer"
50
+ >
51
+ <CardCustomer
52
+ :customer="customerItem"
53
+ :formatDate="formatDate"
54
+ />
55
+ </div>
56
+ </Feed>
57
+ </div>
58
+ </Block>
59
+
60
+
61
+ <!-- Create Customer Popup -->
62
+ <Popup
63
+ :isPopupOpen="showCreatePopup"
64
+ @close-popup="closeCreatePopup"
65
+ title="Create Customer"
66
+ align="center right"
67
+ class="bg-white h-min-100 w-max-50r pd-medium"
68
+ >
69
+ <FormCustomerDetails
70
+ v-model:customer="newCustomer"
71
+ @save="saveNewCustomer"
72
+ @cancel="closeCreatePopup"
73
+ :create-mode="true"
74
+ />
75
+ </Popup>
76
+ </template>
77
+
78
+ <script setup>
79
+ import { ref, computed } from "vue"
80
+ import { useRoute } from 'vue-router'
81
+
82
+ import Block from '@martyrs/src/components/Block/Block.vue'
83
+ import Button from '@martyrs/src/components/Button/Button.vue'
84
+ import Popup from '@martyrs/src/components/Popup/Popup.vue'
85
+ import Feed from '@martyrs/src/components/Feed/Feed.vue'
86
+
87
+ import BlockSearch from '@martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue'
88
+ import Card from '@martyrs/src/modules/globals/views/components/blocks/Card.vue'
89
+ import IconCross from '@martyrs/src/modules/icons/navigation/IconCross.vue'
90
+ import CardCustomer from '@martyrs/src/modules/orders/components/blocks/CardCustomer.vue'
91
+ import FormCustomerDetails from '@martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue'
92
+
93
+ import * as auth from '@martyrs/src/modules/auth/views/store/auth.js';
94
+ import customers from '@martyrs/src/modules/orders/store/customers.store';
95
+ import customerInitState from "@martyrs/src/modules/orders/store/models/customer.js"
96
+ import { useGlobalMixins } from '@martyrs/src/modules/globals/views/mixins/mixins.js';
97
+
98
+ const { formatDate } = useGlobalMixins();
99
+
100
+ // Props & Model
101
+ const customer = defineModel('customer', {
102
+ type: Object,
103
+ default: null
104
+ });
105
+
106
+ // Router
107
+ const route = useRoute()
108
+
109
+ // Reactive data
110
+ const searchUser = ref(null)
111
+ const showCreatePopup = ref(false)
112
+ const newCustomer = ref({ ...customerInitState })
113
+
114
+ // Methods
115
+ function selectCustomer(selectedCustomer) {
116
+ customer.value = selectedCustomer
117
+ }
118
+
119
+ function clearCustomer() {
120
+ customer.value = null
121
+ }
122
+
123
+ function openCreatePopup() {
124
+ newCustomer.value = { ...customerInitState }
125
+ if (route.params._id) {
126
+ newCustomer.value.owner = {
127
+ type: 'Organization',
128
+ target: route.params._id
129
+ };
130
+ }
131
+ newCustomer.value.creator = {
132
+ type: 'User',
133
+ target: auth.state.user._id
134
+ };
135
+ showCreatePopup.value = true
136
+ }
137
+
138
+ function closeCreatePopup() {
139
+ showCreatePopup.value = false
140
+ newCustomer.value = { ...customerInitState }
141
+ }
142
+
143
+ async function saveNewCustomer() {
144
+ try {
145
+ // Remove empty fields
146
+ const cleanData = { ...newCustomer.value };
147
+ if (!cleanData.email) delete cleanData.email;
148
+ if (!cleanData.phone) delete cleanData.phone;
149
+ if (!cleanData.notes) delete cleanData.notes;
150
+ if (!cleanData.referral?.code) {
151
+ if (cleanData.referral) delete cleanData.referral.code;
152
+ }
153
+
154
+ // Ensure ownership structure
155
+ cleanData.owner = {
156
+ type: 'Organization',
157
+ target: route.params._id
158
+ };
159
+
160
+ cleanData.creator = {
161
+ type: 'User',
162
+ target: auth.state.user._id
163
+ };
164
+
165
+ const created = await customers.create(cleanData);
166
+ customer.value = created;
167
+ closeCreatePopup();
168
+ } catch (error) {
169
+ console.error('Error creating customer:', error);
170
+ }
171
+ }
172
+ </script>
@@ -0,0 +1,240 @@
1
+ <template>
2
+ <div class="mobile:pd-thin pd-medium">
3
+ <SectionPageTitle
4
+ v-if="!MOBILE_APP"
5
+ title="Applications"
6
+ :actions="[
7
+ { method: () => openCreatePopup(), label: 'Create Application' }
8
+ ]"
9
+ class="mn-b-small"
10
+ />
11
+
12
+ <Block
13
+ v-if="route.meta.context !== 'user'"
14
+ title="Statistics"
15
+ class="mn-b-small"
16
+ >
17
+ <div class="gap-micro flex-nowrap flex">
18
+ <div class="w-100 bg-white radius-small pd-small">
19
+ <p class="mn-b-thin">Total</p>
20
+ <h3>{{totalApplications}}</h3>
21
+ </div>
22
+ <div class="w-100 bg-white radius-small pd-small">
23
+ <p class="mn-b-thin">In Progress</p>
24
+ <h3>{{inProgressApplications}}</h3>
25
+ </div>
26
+ <div class="w-100 bg-white radius-small pd-small">
27
+ <p class="mn-b-thin">New This Month</p>
28
+ <h3>{{newApplicationsThisMonth}}</h3>
29
+ </div>
30
+ </div>
31
+ </Block>
32
+ <Feed
33
+ v-model:items="currentApplications"
34
+ :search="true"
35
+ :states="{
36
+ empty: {
37
+ title: 'No Applications Found',
38
+ description: 'Currently, there are no applications.'
39
+ }
40
+ }"
41
+ :store="applications"
42
+ :options="{
43
+ limit: 15,
44
+ ...(route.meta.context === 'organization' && { owner: route.params._id }),
45
+ ...(statusFilter !== 'all' && { status: statusFilter })
46
+ }"
47
+ v-slot="{
48
+ items
49
+ }"
50
+ class="gap-thin cols-3 mobile:cols-1"
51
+ >
52
+ <div
53
+ v-for="application in items"
54
+ :key="application._id"
55
+ @click="openViewPopup(application)"
56
+ class="cursor-pointer"
57
+ >
58
+ <CardApplication
59
+ :application="application"
60
+ :formatDate="formatDate"
61
+ />
62
+ </div>
63
+ </Feed>
64
+
65
+ <!-- View Application Popup -->
66
+ <Popup
67
+ :isPopupOpen="showViewPopup"
68
+ @close-popup="closeViewPopup"
69
+ title="Application Details"
70
+ align="center right"
71
+ class="bg-white h-min-100 w-max-50r pd-medium"
72
+ >
73
+ <ApplicationDetails
74
+ v-if="selectedApplication"
75
+ :application="selectedApplication"
76
+ @edit="enableEdit"
77
+ @delete="deleteApplication"
78
+ />
79
+ </Popup>
80
+
81
+ <!-- Create/Edit Application Popup -->
82
+ <Popup
83
+ :isPopupOpen="showFormPopup"
84
+ @close-popup="closeFormPopup"
85
+ :title="isCreateMode ? 'Create Application' : 'Edit Application'"
86
+ align="center right"
87
+ class="bg-white h-min-100 w-max-50r pd-medium"
88
+ >
89
+ <FormApplicationDetails
90
+ v-model:application="formApplication"
91
+ @save="saveApplication"
92
+ @cancel="closeFormPopup"
93
+ :create-mode="isCreateMode"
94
+ />
95
+ </Popup>
96
+ </div>
97
+ </template>
98
+
99
+ <script setup>
100
+ import { computed, onMounted, ref } from 'vue';
101
+ import { useRoute, useRouter } from 'vue-router';
102
+
103
+ import Block from '@martyrs/src/components/Block/Block.vue';
104
+ import Popup from '@martyrs/src/components/Popup/Popup.vue';
105
+ import applications from '@martyrs/src/modules/orders/store/applications.js';
106
+ import SectionPageTitle from '@martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue'
107
+ import Feed from '@martyrs/src/components/Feed/Feed.vue'
108
+ import CardApplication from '@martyrs/src/modules/orders/components/blocks/CardApplication.vue'
109
+ import FormApplicationDetails from '@martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue'
110
+ import ApplicationDetails from '@martyrs/src/modules/orders/components/sections/ApplicationDetails.vue'
111
+ import applicationInitState from '@martyrs/src/modules/orders/store/models/application.js';
112
+ import * as auth from '@martyrs/src/modules/auth/views/store/auth.js';
113
+
114
+ const route = useRoute();
115
+ const router = useRouter();
116
+
117
+ const statusFilter = ref('all')
118
+
119
+ // Popup states
120
+ const showViewPopup = ref(false)
121
+ const showFormPopup = ref(false)
122
+ const selectedApplication = ref(null)
123
+ const formApplication = ref({ ...applicationInitState })
124
+ const isCreateMode = ref(false)
125
+ const currentApplications = ref([])
126
+
127
+ const totalApplications = computed(() => {
128
+ return applications.state.items?.length || 0
129
+ });
130
+
131
+ const inProgressApplications = computed(() => {
132
+ return applications.state.items?.filter(application => application.status === 'in_progress').length || 0
133
+ });
134
+
135
+ const newApplicationsThisMonth = computed(() => {
136
+ if (!applications.state.items) return 0;
137
+ const now = new Date();
138
+ const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1);
139
+ return applications.state.items.filter(application =>
140
+ new Date(application.createdAt) >= startOfMonth
141
+ ).length
142
+ });
143
+
144
+ // Popup methods
145
+ const openCreatePopup = () => {
146
+ formApplication.value = { ...applicationInitState };
147
+ // Ownership будет установлен в saveApplication
148
+ isCreateMode.value = true;
149
+ showFormPopup.value = true;
150
+ };
151
+
152
+ const openViewPopup = (application) => {
153
+ selectedApplication.value = application;
154
+ showViewPopup.value = true;
155
+ };
156
+
157
+ const closeViewPopup = () => {
158
+ showViewPopup.value = false;
159
+ selectedApplication.value = null;
160
+ };
161
+
162
+ const closeFormPopup = () => {
163
+ showFormPopup.value = false;
164
+ formApplication.value = { ...applicationInitState };
165
+ isCreateMode.value = false;
166
+ };
167
+
168
+ const enableEdit = () => {
169
+ formApplication.value = { ...selectedApplication.value };
170
+ isCreateMode.value = false;
171
+ showViewPopup.value = false;
172
+ showFormPopup.value = true;
173
+ };
174
+
175
+ const saveApplication = async () => {
176
+ try {
177
+ // Remove empty fields but preserve required ownership structure
178
+ const cleanData = { ...formApplication.value };
179
+ if (!cleanData.contacts?.email) delete cleanData.contacts?.email;
180
+ if (!cleanData.contacts?.phone) delete cleanData.contacts?.phone;
181
+ if (!cleanData.contacts?.name) delete cleanData.contacts?.name;
182
+ if (!cleanData.text) delete cleanData.text;
183
+ if (!cleanData.chat) delete cleanData.chat;
184
+
185
+ // Remove _id to let MongoDB auto-generate it (Mongoose bug when _id is null)
186
+ if (isCreateMode.value) {
187
+ delete cleanData._id;
188
+ }
189
+
190
+ // Set owner based on context
191
+ if (route.meta.context === 'organization') {
192
+ // В контексте организации - owner это организация
193
+ cleanData.owner = {
194
+ type: 'Organization',
195
+ target: route.params._id || cleanData.owner?.target
196
+ };
197
+ } else {
198
+ // В контексте бекофиса - owner это Platform
199
+ cleanData.owner = {
200
+ type: 'platform',
201
+ target: '000000000000000000000000' // заглушка для отдела платформы
202
+ };
203
+ }
204
+
205
+ // Set creator (who created the application)
206
+ cleanData.creator = {
207
+ type: 'User',
208
+ target: auth.state.user._id || cleanData.creator?.target
209
+ };
210
+
211
+ if (isCreateMode.value) {
212
+ const response = await applications.create(cleanData);
213
+ applications.addItem(response, currentApplications.value);
214
+ } else {
215
+ const response = await applications.update(cleanData);
216
+ applications.updateItem(response, currentApplications.value);
217
+ selectedApplication.value = { ...response };
218
+ }
219
+ closeFormPopup();
220
+ } catch (error) {
221
+ console.error('Error saving application:', error);
222
+ }
223
+ };
224
+
225
+ const deleteApplication = async () => {
226
+ if (confirm('Are you sure you want to delete this application?')) {
227
+ try {
228
+ await applications.delete({ _id: selectedApplication.value._id });
229
+ applications.removeItem(selectedApplication.value, currentApplications.value);
230
+ closeViewPopup();
231
+ } catch (error) {
232
+ console.error('Error deleting application:', error);
233
+ }
234
+ }
235
+ };
236
+
237
+ onMounted(async () => {
238
+
239
+ });
240
+ </script>
@@ -0,0 +1,239 @@
1
+ <template>
2
+ <div class="mobile:pd-thin pd-medium">
3
+ <SectionPageTitle
4
+ v-if="!MOBILE_APP"
5
+ title="Customers"
6
+ :actions="[
7
+ { method: () => openCreatePopup(), label: 'Create Customer' }
8
+ ]"
9
+ class="mn-b-small"
10
+ />
11
+
12
+ <Block
13
+ v-if="route.meta.context !== 'user'"
14
+ title="Statistics"
15
+ class="mn-b-small"
16
+ >
17
+ <div class="gap-micro flex-nowrap flex">
18
+ <div class="w-100 bg-white radius-small pd-small">
19
+ <p class="mn-b-thin">Total</p>
20
+ <h3>{{totalCustomers}}</h3>
21
+ </div>
22
+ <div class="w-100 bg-white radius-small pd-small">
23
+ <p class="mn-b-thin">Active</p>
24
+ <h3>{{activeCustomers}}</h3>
25
+ </div>
26
+ <div class="w-100 bg-white radius-small pd-small">
27
+ <p class="mn-b-thin">New This Month</p>
28
+ <h3>{{newCustomersThisMonth}}</h3>
29
+ </div>
30
+ </div>
31
+ </Block>
32
+
33
+ <Feed
34
+ v-model="currentCustomers"
35
+ :search="true"
36
+ :states="{
37
+ empty: {
38
+ title: 'No Customers Found',
39
+ description: 'Currently, there are no customers.'
40
+ }
41
+ }"
42
+ :store="customers"
43
+ :options="{
44
+ limit: 15,
45
+ ...(route.meta.context === 'organization' && { owner: route.params._id }),
46
+ ...(statusFilter !== 'all' && { status: statusFilter })
47
+ }"
48
+ v-slot="{
49
+ items
50
+ }"
51
+ class="gap-thin cols-3 mobile:cols-1"
52
+ >
53
+ <div
54
+ v-for="customer in items"
55
+ :key="customer._id"
56
+ @click="openViewPopup(customer)"
57
+ class="cursor-pointer"
58
+ >
59
+ <CardCustomer
60
+ :customer="customer"
61
+ :formatDate="formatDate"
62
+ />
63
+ </div>
64
+ </Feed>
65
+
66
+ <!-- View Customer Popup -->
67
+ <Popup
68
+ :isPopupOpen="showViewPopup"
69
+ @close-popup="closeViewPopup"
70
+ title="Customer Details"
71
+ align="center right"
72
+ class="bg-white h-min-100 w-max-50r pd-medium"
73
+ >
74
+ <CustomerDetails
75
+ v-if="selectedCustomer"
76
+ :customer="selectedCustomer"
77
+ @edit="enableEdit"
78
+ @delete="deleteCustomer"
79
+ />
80
+ </Popup>
81
+
82
+ <!-- Create/Edit Customer Popup -->
83
+ <Popup
84
+ :isPopupOpen="showFormPopup"
85
+ @close-popup="closeFormPopup"
86
+ :title="isCreateMode ? 'Create Customer' : 'Edit Customer'"
87
+ align="center right"
88
+ class="bg-white h-min-100 w-max-50r pd-medium"
89
+ >
90
+ <FormCustomerDetails
91
+ v-model:customer="formCustomer"
92
+ @save="saveCustomer"
93
+ @cancel="closeFormPopup"
94
+ :create-mode="isCreateMode"
95
+ />
96
+ </Popup>
97
+ </div>
98
+ </template>
99
+
100
+ <script setup>
101
+ import { computed, onMounted, ref } from 'vue';
102
+ import { useRoute, useRouter } from 'vue-router';
103
+
104
+ import Block from '@martyrs/src/components/Block/Block.vue';
105
+ import Popup from '@martyrs/src/components/Popup/Popup.vue';
106
+ import customers from '@martyrs/src/modules/orders/store/customers.store.js';
107
+ import SectionPageTitle from '@martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue'
108
+ import Feed from '@martyrs/src/components/Feed/Feed.vue'
109
+ import CardCustomer from '@martyrs/src/modules/orders/components/blocks/CardCustomer.vue'
110
+ import FormCustomerDetails from '@martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue'
111
+ import CustomerDetails from '@martyrs/src/modules/orders/components/sections/CustomerDetails.vue'
112
+ import customerInitState from '@martyrs/src/modules/orders/store/models/customer.js';
113
+ import * as auth from '@martyrs/src/modules/auth/views/store/auth.js';
114
+
115
+ const route = useRoute();
116
+ const router = useRouter();
117
+
118
+ const statusFilter = ref('all')
119
+
120
+ // Popup states
121
+ const showViewPopup = ref(false)
122
+ const showFormPopup = ref(false)
123
+ const selectedCustomer = ref(null)
124
+ const formCustomer = ref({ ...customerInitState })
125
+ const isCreateMode = ref(false)
126
+ const currentCustomers = ref([])
127
+
128
+ const totalCustomers = computed(() => {
129
+ return customers.state.items?.length || 0
130
+ });
131
+
132
+ const activeCustomers = computed(() => {
133
+ return customers.state.items?.filter(customer => customer.status === 'active').length || 0
134
+ });
135
+
136
+ const newCustomersThisMonth = computed(() => {
137
+ if (!customers.state.items) return 0;
138
+ const now = new Date();
139
+ const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1);
140
+ return customers.state.items.filter(customer =>
141
+ new Date(customer.createdAt) >= startOfMonth
142
+ ).length
143
+ });
144
+
145
+ // Popup methods
146
+ const openCreatePopup = () => {
147
+ formCustomer.value = { ...customerInitState };
148
+ // Set owner and creator
149
+ if (route.params._id) {
150
+ formCustomer.value.owner = {
151
+ type: 'Organization',
152
+ target: route.params._id
153
+ };
154
+ }
155
+ formCustomer.value.creator = {
156
+ type: 'User',
157
+ target: auth.state.user._id
158
+ };
159
+ isCreateMode.value = true;
160
+ showFormPopup.value = true;
161
+ };
162
+
163
+ const openViewPopup = (customer) => {
164
+ selectedCustomer.value = customer;
165
+ showViewPopup.value = true;
166
+ };
167
+
168
+ const closeViewPopup = () => {
169
+ showViewPopup.value = false;
170
+ selectedCustomer.value = null;
171
+ };
172
+
173
+ const closeFormPopup = () => {
174
+ showFormPopup.value = false;
175
+ formCustomer.value = { ...customerInitState };
176
+ isCreateMode.value = false;
177
+ };
178
+
179
+ const enableEdit = () => {
180
+ formCustomer.value = { ...selectedCustomer.value };
181
+ isCreateMode.value = false;
182
+ showViewPopup.value = false;
183
+ showFormPopup.value = true;
184
+ };
185
+
186
+ const saveCustomer = async () => {
187
+ try {
188
+ // Remove empty fields but preserve required ownership structure
189
+ const cleanData = { ...formCustomer.value };
190
+ if (!cleanData.email) delete cleanData.email;
191
+ if (!cleanData.phone) delete cleanData.phone;
192
+ if (!cleanData.notes) delete cleanData.notes;
193
+ if (!cleanData.referral?.code) {
194
+ if (cleanData.referral) delete cleanData.referral.code;
195
+ }
196
+
197
+ // Always ensure owner and creator have proper structure
198
+ cleanData.owner = {
199
+ type: 'Organization',
200
+ target: route.params._id || cleanData.owner?.target
201
+ };
202
+
203
+ cleanData.creator = {
204
+ type: 'User',
205
+ target: auth.state.user._id || cleanData.creator?.target
206
+ };
207
+
208
+ console.log('Sending customer data:', cleanData);
209
+
210
+ if (isCreateMode.value) {
211
+ const created = await customers.create(cleanData);
212
+ customers.addItem(created, currentCustomers.value);
213
+ } else {
214
+ const updated = await customers.update(cleanData);
215
+ customers.updateItem(updated, currentCustomers.value);
216
+ selectedCustomer.value = { ...updated };
217
+ }
218
+ closeFormPopup();
219
+ } catch (error) {
220
+ console.error('Error saving customer:', error);
221
+ }
222
+ };
223
+
224
+ const deleteCustomer = async () => {
225
+ if (confirm('Are you sure you want to delete this customer?')) {
226
+ try {
227
+ await customers.delete({ _id: selectedCustomer.value._id });
228
+ customers.removeItem(selectedCustomer.value, currentCustomers.value);
229
+ closeViewPopup();
230
+ } catch (error) {
231
+ console.error('Error deleting customer:', error);
232
+ }
233
+ }
234
+ };
235
+
236
+ onMounted(async () => {
237
+
238
+ });
239
+ </script>
@@ -30,7 +30,7 @@
30
30
  class="rows-1 gap-thin"
31
31
  >
32
32
  <FormCustomerDetails
33
- :customer="orders.state.current.customer"
33
+ v-model:customer="orders.state.current.customer"
34
34
  />
35
35
  <FormPayment
36
36
  v-if="orders.state.current.status !== true && shopcart.state.positions.length > 0"
@@ -138,7 +138,7 @@ import EmptyState from '@martyrs/src/modules/orders/components/sections/EmptySta
138
138
 
139
139
  import PriceTotal from '@martyrs/src/modules/orders/components/elements/PriceTotal.vue';
140
140
 
141
- import FormCustomerDetails from '@martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue'
141
+ import FormCustomerDetails from '@martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue'
142
142
  import FormDelivery from '@martyrs/src/modules/orders/components/sections/FormDelivery.vue'
143
143
  import FormPayment from '@martyrs/src/modules/orders/components/sections/FormPayment.vue'
144
144
  ///////////////////////////////////////////////////////////////////////////////////////////////////