@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,173 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ const vueRouter = require("vue-router");
5
+ const Block = require("../../../../components/Block/Block.vue.cjs");
6
+ ;/* empty css */
7
+ const IconCross = require("../../../icons/navigation/IconCross.vue.cjs");
8
+ ;/* empty css */
9
+ const Popup = require("../../../../components/Popup/Popup.vue.cjs");
10
+ const Feed = require("../../../../components/Feed/Feed.vue.cjs");
11
+ const BlockSearch = require("../../../globals/views/components/blocks/BlockSearch.vue.cjs");
12
+ const Card = require("../../../globals/views/components/blocks/Card.vue.cjs");
13
+ const CardCustomer = require("../blocks/CardCustomer.vue.cjs");
14
+ const FormCustomerDetails = require("./FormCustomerDetails.vue.cjs");
15
+ const auth = require("../../../auth/views/store/auth.cjs");
16
+ const customers_store = require("../../store/customers.store.cjs");
17
+ const customer = require("../../store/models/customer.cjs");
18
+ const mixins = require("../../../globals/views/mixins/mixins.cjs");
19
+ const _hoisted_1 = { key: 1 };
20
+ const _hoisted_2 = ["onClick"];
21
+ const _sfc_main = {
22
+ __name: "FormSelectCustomer",
23
+ props: {
24
+ "customer": {
25
+ type: Object,
26
+ default: null
27
+ },
28
+ "customerModifiers": {}
29
+ },
30
+ emits: ["update:customer"],
31
+ setup(__props) {
32
+ const { formatDate } = mixins.useGlobalMixins();
33
+ const customer$1 = vue.useModel(__props, "customer");
34
+ const route = vueRouter.useRoute();
35
+ const searchUser = vue.ref(null);
36
+ const showCreatePopup = vue.ref(false);
37
+ const newCustomer = vue.ref({ ...customer.default });
38
+ function selectCustomer(selectedCustomer) {
39
+ customer$1.value = selectedCustomer;
40
+ }
41
+ function clearCustomer() {
42
+ customer$1.value = null;
43
+ }
44
+ function openCreatePopup() {
45
+ newCustomer.value = { ...customer.default };
46
+ if (route.params._id) {
47
+ newCustomer.value.owner = {
48
+ type: "Organization",
49
+ target: route.params._id
50
+ };
51
+ }
52
+ newCustomer.value.creator = {
53
+ type: "User",
54
+ target: auth.state.user._id
55
+ };
56
+ showCreatePopup.value = true;
57
+ }
58
+ function closeCreatePopup() {
59
+ showCreatePopup.value = false;
60
+ newCustomer.value = { ...customer.default };
61
+ }
62
+ async function saveNewCustomer() {
63
+ try {
64
+ const cleanData = { ...newCustomer.value };
65
+ if (!cleanData.email) delete cleanData.email;
66
+ if (!cleanData.phone) delete cleanData.phone;
67
+ if (!cleanData.notes) delete cleanData.notes;
68
+ if (!cleanData.referral?.code) {
69
+ if (cleanData.referral) delete cleanData.referral.code;
70
+ }
71
+ cleanData.owner = {
72
+ type: "Organization",
73
+ target: route.params._id
74
+ };
75
+ cleanData.creator = {
76
+ type: "User",
77
+ target: auth.state.user._id
78
+ };
79
+ const created = await customers_store.default.create(cleanData);
80
+ customer$1.value = created;
81
+ closeCreatePopup();
82
+ } catch (error) {
83
+ console.error("Error creating customer:", error);
84
+ }
85
+ }
86
+ return (_ctx, _cache) => {
87
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
88
+ vue.createVNode(Block.default, {
89
+ title: "Customer",
90
+ class: "pos-relative mn-b-thin",
91
+ actions: [{
92
+ label: "+",
93
+ function: () => openCreatePopup()
94
+ }]
95
+ }, {
96
+ default: vue.withCtx(() => [
97
+ customer$1.value?._id ? (vue.openBlock(), vue.createBlock(Card.default, {
98
+ key: 0,
99
+ photo: customer$1.value.profile?.photo,
100
+ title: customer$1.value.profile?.name || customer$1.value.phone || customer$1.value.email || "Unnamed Customer",
101
+ subtitle: customer$1.value.email || customer$1.value.phone,
102
+ action: {
103
+ label: { is: IconCross.default },
104
+ method: clearCustomer
105
+ },
106
+ class: "bg-white h-2r pd-thin radius-medium w-100 flex flex-v-center gap-thin"
107
+ }, null, 8, ["photo", "title", "subtitle", "action"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
108
+ vue.createVNode(BlockSearch.default, {
109
+ onSearch: _cache[0] || (_cache[0] = (event) => {
110
+ searchUser.value = event;
111
+ }),
112
+ placeholder: "Enter name, phone or email",
113
+ class: "bg-white mn-b-thin"
114
+ }),
115
+ vue.createVNode(Feed.default, {
116
+ states: {
117
+ empty: {
118
+ title: "No Customer Found",
119
+ description: "Currently, there are no such customer."
120
+ }
121
+ },
122
+ store: vue.unref(customers_store.default),
123
+ options: {
124
+ search: searchUser.value,
125
+ owner: vue.unref(route).params._id
126
+ },
127
+ showLoadMore: false,
128
+ class: "h-max-20r o-scroll"
129
+ }, {
130
+ default: vue.withCtx(({ items }) => [
131
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items, (customerItem) => {
132
+ return vue.openBlock(), vue.createElementBlock("div", {
133
+ key: customerItem._id,
134
+ onClick: ($event) => selectCustomer(customerItem),
135
+ class: "bg-white pd-thin radius-medium w-100 mn-b-thin cursor-pointer"
136
+ }, [
137
+ vue.createVNode(CardCustomer.default, {
138
+ customer: customerItem,
139
+ formatDate: vue.unref(formatDate)
140
+ }, null, 8, ["customer", "formatDate"])
141
+ ], 8, _hoisted_2);
142
+ }), 128))
143
+ ]),
144
+ _: 1
145
+ }, 8, ["store", "options"])
146
+ ]))
147
+ ]),
148
+ _: 1
149
+ }, 8, ["actions"]),
150
+ vue.createVNode(Popup.default, {
151
+ isPopupOpen: showCreatePopup.value,
152
+ onClosePopup: closeCreatePopup,
153
+ title: "Create Customer",
154
+ align: "center right",
155
+ class: "bg-white h-min-100 w-max-50r pd-medium"
156
+ }, {
157
+ default: vue.withCtx(() => [
158
+ vue.createVNode(FormCustomerDetails.default, {
159
+ customer: newCustomer.value,
160
+ "onUpdate:customer": _cache[1] || (_cache[1] = ($event) => newCustomer.value = $event),
161
+ onSave: saveNewCustomer,
162
+ onCancel: closeCreatePopup,
163
+ "create-mode": true
164
+ }, null, 8, ["customer"])
165
+ ]),
166
+ _: 1
167
+ }, 8, ["isPopupOpen"])
168
+ ], 64);
169
+ };
170
+ }
171
+ };
172
+ exports.default = _sfc_main;
173
+ //# sourceMappingURL=FormSelectCustomer.vue.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormSelectCustomer.vue.cjs","sources":["../../../../../../../src/modules/orders/components/forms/FormSelectCustomer.vue"],"sourcesContent":["<template>\n <Block \n title=\"Customer\"\n class=\"pos-relative mn-b-thin\"\n :actions=\"[{\n label: '+',\n function: () => openCreatePopup()\n }]\"\n >\n <Card\n v-if=\"customer?._id\"\n :photo=\"customer.profile?.photo\"\n :title=\"customer.profile?.name || customer.phone || customer.email || 'Unnamed Customer'\"\n :subtitle=\"customer.email || customer.phone\"\n :action=\"{\n label: { is: IconCross },\n method: clearCustomer\n }\"\n class=\"bg-white h-2r pd-thin radius-medium w-100 flex flex-v-center gap-thin\"\n />\n \n <div v-else>\n <BlockSearch \n @search=\"(event) => { searchUser = event }\"\n placeholder=\"Enter name, phone or email\"\n class=\"bg-white mn-b-thin\"\n />\n\n <Feed\n :states=\"{\n empty: {\n title: 'No Customer Found',\n description: 'Currently, there are no such customer.'\n }\n }\"\n :store=\"customers\"\n :options=\"{\n search: searchUser,\n owner: route.params._id\n }\"\n :showLoadMore=\"false\"\n v-slot=\"{ items }\"\n class=\"h-max-20r o-scroll\"\n >\n <div\n v-for=\"customerItem in items\" \n :key=\"customerItem._id\"\n @click=\"selectCustomer(customerItem)\"\n class=\"bg-white pd-thin radius-medium w-100 mn-b-thin cursor-pointer\"\n >\n <CardCustomer \n :customer=\"customerItem\"\n :formatDate=\"formatDate\"\n />\n </div>\n </Feed>\n </div>\n </Block>\n\n\n <!-- Create Customer Popup -->\n <Popup \n :isPopupOpen=\"showCreatePopup\"\n @close-popup=\"closeCreatePopup\"\n title=\"Create Customer\"\n align=\"center right\"\n class=\"bg-white h-min-100 w-max-50r pd-medium\"\n >\n <FormCustomerDetails \n v-model:customer=\"newCustomer\"\n @save=\"saveNewCustomer\"\n @cancel=\"closeCreatePopup\"\n :create-mode=\"true\"\n />\n </Popup>\n</template>\n\n<script setup>\nimport { ref, computed } from \"vue\"\nimport { useRoute } from 'vue-router'\n\nimport Block from '@martyrs/src/components/Block/Block.vue'\nimport Button from '@martyrs/src/components/Button/Button.vue'\nimport Popup from '@martyrs/src/components/Popup/Popup.vue'\nimport Feed from '@martyrs/src/components/Feed/Feed.vue'\n\nimport BlockSearch from '@martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue'\nimport Card from '@martyrs/src/modules/globals/views/components/blocks/Card.vue'\nimport IconCross from '@martyrs/src/modules/icons/navigation/IconCross.vue'\nimport CardCustomer from '@martyrs/src/modules/orders/components/blocks/CardCustomer.vue'\nimport FormCustomerDetails from '@martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue'\n\nimport * as auth from '@martyrs/src/modules/auth/views/store/auth.js';\nimport customers from '@martyrs/src/modules/orders/store/customers.store';\nimport customerInitState from \"@martyrs/src/modules/orders/store/models/customer.js\"\nimport { useGlobalMixins } from '@martyrs/src/modules/globals/views/mixins/mixins.js';\n\nconst { formatDate } = useGlobalMixins();\n\n// Props & Model\nconst customer = defineModel('customer', {\n type: Object,\n default: null\n});\n\n// Router\nconst route = useRoute()\n\n// Reactive data\nconst searchUser = ref(null)\nconst showCreatePopup = ref(false)\nconst newCustomer = ref({ ...customerInitState })\n\n// Methods\nfunction selectCustomer(selectedCustomer) {\n customer.value = selectedCustomer\n}\n\nfunction clearCustomer() {\n customer.value = null\n}\n\nfunction openCreatePopup() {\n newCustomer.value = { ...customerInitState }\n if (route.params._id) {\n newCustomer.value.owner = {\n type: 'Organization',\n target: route.params._id\n };\n }\n newCustomer.value.creator = {\n type: 'User',\n target: auth.state.user._id\n };\n showCreatePopup.value = true\n}\n\nfunction closeCreatePopup() {\n showCreatePopup.value = false\n newCustomer.value = { ...customerInitState }\n}\n\nasync function saveNewCustomer() {\n try {\n // Remove empty fields\n const cleanData = { ...newCustomer.value };\n if (!cleanData.email) delete cleanData.email;\n if (!cleanData.phone) delete cleanData.phone;\n if (!cleanData.notes) delete cleanData.notes;\n if (!cleanData.referral?.code) {\n if (cleanData.referral) delete cleanData.referral.code;\n }\n \n // Ensure ownership structure\n cleanData.owner = {\n type: 'Organization',\n target: route.params._id\n };\n \n cleanData.creator = {\n type: 'User',\n target: auth.state.user._id\n };\n\n const created = await customers.create(cleanData);\n customer.value = created;\n closeCreatePopup();\n } catch (error) {\n console.error('Error creating customer:', error);\n }\n}\n</script>"],"names":["useGlobalMixins","customer","_useModel","useRoute","ref","customerInitState","auth.state","customers"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiGA,UAAM,EAAE,WAAU,IAAKA,uBAAe;AAGtC,UAAMC,aAAWC,IAAAA,SAAW,SAAC,UAG5B;AAGD,UAAM,QAAQC,UAAAA,SAAQ;AAGtB,UAAM,aAAaC,IAAAA,IAAI,IAAI;AAC3B,UAAM,kBAAkBA,IAAAA,IAAI,KAAK;AACjC,UAAM,cAAcA,IAAAA,IAAI,EAAE,GAAGC,iBAAiB,CAAE;AAGhD,aAAS,eAAe,kBAAkB;AACxCJ,iBAAS,QAAQ;AAAA,IACnB;AAEA,aAAS,gBAAgB;AACvBA,iBAAS,QAAQ;AAAA,IACnB;AAEA,aAAS,kBAAkB;AACzB,kBAAY,QAAQ,EAAE,GAAGI,SAAAA,QAAiB;AAC1C,UAAI,MAAM,OAAO,KAAK;AACpB,oBAAY,MAAM,QAAQ;AAAA,UACxB,MAAM;AAAA,UACN,QAAQ,MAAM,OAAO;AAAA,QAC3B;AAAA,MACE;AACA,kBAAY,MAAM,UAAU;AAAA,QAC1B,MAAM;AAAA,QACN,QAAQC,KAAAA,MAAW,KAAK;AAAA,MAC5B;AACE,sBAAgB,QAAQ;AAAA,IAC1B;AAEA,aAAS,mBAAmB;AAC1B,sBAAgB,QAAQ;AACxB,kBAAY,QAAQ,EAAE,GAAGD,SAAAA,QAAiB;AAAA,IAC5C;AAEA,mBAAe,kBAAkB;AAC/B,UAAI;AAEF,cAAM,YAAY,EAAE,GAAG,YAAY,MAAK;AACxC,YAAI,CAAC,UAAU,MAAO,QAAO,UAAU;AACvC,YAAI,CAAC,UAAU,MAAO,QAAO,UAAU;AACvC,YAAI,CAAC,UAAU,MAAO,QAAO,UAAU;AACvC,YAAI,CAAC,UAAU,UAAU,MAAM;AAC7B,cAAI,UAAU,SAAU,QAAO,UAAU,SAAS;AAAA,QACpD;AAGA,kBAAU,QAAQ;AAAA,UAChB,MAAM;AAAA,UACN,QAAQ,MAAM,OAAO;AAAA,QAC3B;AAEI,kBAAU,UAAU;AAAA,UAClB,MAAM;AAAA,UACN,QAAQC,KAAAA,MAAW,KAAK;AAAA,QAC9B;AAEI,cAAM,UAAU,MAAMC,wBAAU,OAAO,SAAS;AAChDN,mBAAS,QAAQ;AACjB,yBAAgB;AAAA,MAClB,SAAS,OAAO;AACd,gBAAQ,MAAM,4BAA4B,KAAK;AAAA,MACjD;AAAA,IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,173 @@
1
+ import { useModel, ref, createElementBlock, openBlock, Fragment, createVNode, withCtx, createBlock, unref, renderList } from "vue";
2
+ import { useRoute } from "vue-router";
3
+ import _sfc_main$1 from "../../../../components/Block/Block.vue.js";
4
+ /* empty css */
5
+ import _sfc_main$3 from "../../../icons/navigation/IconCross.vue.js";
6
+ /* empty css */
7
+ import _sfc_main$6 from "../../../../components/Popup/Popup.vue.js";
8
+ import _sfc_main$5 from "../../../../components/Feed/Feed.vue.js";
9
+ import _sfc_main$4 from "../../../globals/views/components/blocks/BlockSearch.vue.js";
10
+ import _sfc_main$2 from "../../../globals/views/components/blocks/Card.vue.js";
11
+ import CardCustomer from "../blocks/CardCustomer.vue.js";
12
+ import _sfc_main$7 from "./FormCustomerDetails.vue.js";
13
+ import { state } from "../../../auth/views/store/auth.js";
14
+ import customers from "../../store/customers.store.js";
15
+ import customerInitState from "../../store/models/customer.js";
16
+ import { useGlobalMixins } from "../../../globals/views/mixins/mixins.js";
17
+ const _hoisted_1 = { key: 1 };
18
+ const _hoisted_2 = ["onClick"];
19
+ const _sfc_main = {
20
+ __name: "FormSelectCustomer",
21
+ props: {
22
+ "customer": {
23
+ type: Object,
24
+ default: null
25
+ },
26
+ "customerModifiers": {}
27
+ },
28
+ emits: ["update:customer"],
29
+ setup(__props) {
30
+ const { formatDate } = useGlobalMixins();
31
+ const customer = useModel(__props, "customer");
32
+ const route = useRoute();
33
+ const searchUser = ref(null);
34
+ const showCreatePopup = ref(false);
35
+ const newCustomer = ref({ ...customerInitState });
36
+ function selectCustomer(selectedCustomer) {
37
+ customer.value = selectedCustomer;
38
+ }
39
+ function clearCustomer() {
40
+ customer.value = null;
41
+ }
42
+ function openCreatePopup() {
43
+ newCustomer.value = { ...customerInitState };
44
+ if (route.params._id) {
45
+ newCustomer.value.owner = {
46
+ type: "Organization",
47
+ target: route.params._id
48
+ };
49
+ }
50
+ newCustomer.value.creator = {
51
+ type: "User",
52
+ target: state.user._id
53
+ };
54
+ showCreatePopup.value = true;
55
+ }
56
+ function closeCreatePopup() {
57
+ showCreatePopup.value = false;
58
+ newCustomer.value = { ...customerInitState };
59
+ }
60
+ async function saveNewCustomer() {
61
+ try {
62
+ const cleanData = { ...newCustomer.value };
63
+ if (!cleanData.email) delete cleanData.email;
64
+ if (!cleanData.phone) delete cleanData.phone;
65
+ if (!cleanData.notes) delete cleanData.notes;
66
+ if (!cleanData.referral?.code) {
67
+ if (cleanData.referral) delete cleanData.referral.code;
68
+ }
69
+ cleanData.owner = {
70
+ type: "Organization",
71
+ target: route.params._id
72
+ };
73
+ cleanData.creator = {
74
+ type: "User",
75
+ target: state.user._id
76
+ };
77
+ const created = await customers.create(cleanData);
78
+ customer.value = created;
79
+ closeCreatePopup();
80
+ } catch (error) {
81
+ console.error("Error creating customer:", error);
82
+ }
83
+ }
84
+ return (_ctx, _cache) => {
85
+ return openBlock(), createElementBlock(Fragment, null, [
86
+ createVNode(_sfc_main$1, {
87
+ title: "Customer",
88
+ class: "pos-relative mn-b-thin",
89
+ actions: [{
90
+ label: "+",
91
+ function: () => openCreatePopup()
92
+ }]
93
+ }, {
94
+ default: withCtx(() => [
95
+ customer.value?._id ? (openBlock(), createBlock(_sfc_main$2, {
96
+ key: 0,
97
+ photo: customer.value.profile?.photo,
98
+ title: customer.value.profile?.name || customer.value.phone || customer.value.email || "Unnamed Customer",
99
+ subtitle: customer.value.email || customer.value.phone,
100
+ action: {
101
+ label: { is: _sfc_main$3 },
102
+ method: clearCustomer
103
+ },
104
+ class: "bg-white h-2r pd-thin radius-medium w-100 flex flex-v-center gap-thin"
105
+ }, null, 8, ["photo", "title", "subtitle", "action"])) : (openBlock(), createElementBlock("div", _hoisted_1, [
106
+ createVNode(_sfc_main$4, {
107
+ onSearch: _cache[0] || (_cache[0] = (event) => {
108
+ searchUser.value = event;
109
+ }),
110
+ placeholder: "Enter name, phone or email",
111
+ class: "bg-white mn-b-thin"
112
+ }),
113
+ createVNode(_sfc_main$5, {
114
+ states: {
115
+ empty: {
116
+ title: "No Customer Found",
117
+ description: "Currently, there are no such customer."
118
+ }
119
+ },
120
+ store: unref(customers),
121
+ options: {
122
+ search: searchUser.value,
123
+ owner: unref(route).params._id
124
+ },
125
+ showLoadMore: false,
126
+ class: "h-max-20r o-scroll"
127
+ }, {
128
+ default: withCtx(({ items }) => [
129
+ (openBlock(true), createElementBlock(Fragment, null, renderList(items, (customerItem) => {
130
+ return openBlock(), createElementBlock("div", {
131
+ key: customerItem._id,
132
+ onClick: ($event) => selectCustomer(customerItem),
133
+ class: "bg-white pd-thin radius-medium w-100 mn-b-thin cursor-pointer"
134
+ }, [
135
+ createVNode(CardCustomer, {
136
+ customer: customerItem,
137
+ formatDate: unref(formatDate)
138
+ }, null, 8, ["customer", "formatDate"])
139
+ ], 8, _hoisted_2);
140
+ }), 128))
141
+ ]),
142
+ _: 1
143
+ }, 8, ["store", "options"])
144
+ ]))
145
+ ]),
146
+ _: 1
147
+ }, 8, ["actions"]),
148
+ createVNode(_sfc_main$6, {
149
+ isPopupOpen: showCreatePopup.value,
150
+ onClosePopup: closeCreatePopup,
151
+ title: "Create Customer",
152
+ align: "center right",
153
+ class: "bg-white h-min-100 w-max-50r pd-medium"
154
+ }, {
155
+ default: withCtx(() => [
156
+ createVNode(_sfc_main$7, {
157
+ customer: newCustomer.value,
158
+ "onUpdate:customer": _cache[1] || (_cache[1] = ($event) => newCustomer.value = $event),
159
+ onSave: saveNewCustomer,
160
+ onCancel: closeCreatePopup,
161
+ "create-mode": true
162
+ }, null, 8, ["customer"])
163
+ ]),
164
+ _: 1
165
+ }, 8, ["isPopupOpen"])
166
+ ], 64);
167
+ };
168
+ }
169
+ };
170
+ export {
171
+ _sfc_main as default
172
+ };
173
+ //# sourceMappingURL=FormSelectCustomer.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormSelectCustomer.vue.js","sources":["../../../../../../../src/modules/orders/components/forms/FormSelectCustomer.vue"],"sourcesContent":["<template>\n <Block \n title=\"Customer\"\n class=\"pos-relative mn-b-thin\"\n :actions=\"[{\n label: '+',\n function: () => openCreatePopup()\n }]\"\n >\n <Card\n v-if=\"customer?._id\"\n :photo=\"customer.profile?.photo\"\n :title=\"customer.profile?.name || customer.phone || customer.email || 'Unnamed Customer'\"\n :subtitle=\"customer.email || customer.phone\"\n :action=\"{\n label: { is: IconCross },\n method: clearCustomer\n }\"\n class=\"bg-white h-2r pd-thin radius-medium w-100 flex flex-v-center gap-thin\"\n />\n \n <div v-else>\n <BlockSearch \n @search=\"(event) => { searchUser = event }\"\n placeholder=\"Enter name, phone or email\"\n class=\"bg-white mn-b-thin\"\n />\n\n <Feed\n :states=\"{\n empty: {\n title: 'No Customer Found',\n description: 'Currently, there are no such customer.'\n }\n }\"\n :store=\"customers\"\n :options=\"{\n search: searchUser,\n owner: route.params._id\n }\"\n :showLoadMore=\"false\"\n v-slot=\"{ items }\"\n class=\"h-max-20r o-scroll\"\n >\n <div\n v-for=\"customerItem in items\" \n :key=\"customerItem._id\"\n @click=\"selectCustomer(customerItem)\"\n class=\"bg-white pd-thin radius-medium w-100 mn-b-thin cursor-pointer\"\n >\n <CardCustomer \n :customer=\"customerItem\"\n :formatDate=\"formatDate\"\n />\n </div>\n </Feed>\n </div>\n </Block>\n\n\n <!-- Create Customer Popup -->\n <Popup \n :isPopupOpen=\"showCreatePopup\"\n @close-popup=\"closeCreatePopup\"\n title=\"Create Customer\"\n align=\"center right\"\n class=\"bg-white h-min-100 w-max-50r pd-medium\"\n >\n <FormCustomerDetails \n v-model:customer=\"newCustomer\"\n @save=\"saveNewCustomer\"\n @cancel=\"closeCreatePopup\"\n :create-mode=\"true\"\n />\n </Popup>\n</template>\n\n<script setup>\nimport { ref, computed } from \"vue\"\nimport { useRoute } from 'vue-router'\n\nimport Block from '@martyrs/src/components/Block/Block.vue'\nimport Button from '@martyrs/src/components/Button/Button.vue'\nimport Popup from '@martyrs/src/components/Popup/Popup.vue'\nimport Feed from '@martyrs/src/components/Feed/Feed.vue'\n\nimport BlockSearch from '@martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue'\nimport Card from '@martyrs/src/modules/globals/views/components/blocks/Card.vue'\nimport IconCross from '@martyrs/src/modules/icons/navigation/IconCross.vue'\nimport CardCustomer from '@martyrs/src/modules/orders/components/blocks/CardCustomer.vue'\nimport FormCustomerDetails from '@martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue'\n\nimport * as auth from '@martyrs/src/modules/auth/views/store/auth.js';\nimport customers from '@martyrs/src/modules/orders/store/customers.store';\nimport customerInitState from \"@martyrs/src/modules/orders/store/models/customer.js\"\nimport { useGlobalMixins } from '@martyrs/src/modules/globals/views/mixins/mixins.js';\n\nconst { formatDate } = useGlobalMixins();\n\n// Props & Model\nconst customer = defineModel('customer', {\n type: Object,\n default: null\n});\n\n// Router\nconst route = useRoute()\n\n// Reactive data\nconst searchUser = ref(null)\nconst showCreatePopup = ref(false)\nconst newCustomer = ref({ ...customerInitState })\n\n// Methods\nfunction selectCustomer(selectedCustomer) {\n customer.value = selectedCustomer\n}\n\nfunction clearCustomer() {\n customer.value = null\n}\n\nfunction openCreatePopup() {\n newCustomer.value = { ...customerInitState }\n if (route.params._id) {\n newCustomer.value.owner = {\n type: 'Organization',\n target: route.params._id\n };\n }\n newCustomer.value.creator = {\n type: 'User',\n target: auth.state.user._id\n };\n showCreatePopup.value = true\n}\n\nfunction closeCreatePopup() {\n showCreatePopup.value = false\n newCustomer.value = { ...customerInitState }\n}\n\nasync function saveNewCustomer() {\n try {\n // Remove empty fields\n const cleanData = { ...newCustomer.value };\n if (!cleanData.email) delete cleanData.email;\n if (!cleanData.phone) delete cleanData.phone;\n if (!cleanData.notes) delete cleanData.notes;\n if (!cleanData.referral?.code) {\n if (cleanData.referral) delete cleanData.referral.code;\n }\n \n // Ensure ownership structure\n cleanData.owner = {\n type: 'Organization',\n target: route.params._id\n };\n \n cleanData.creator = {\n type: 'User',\n target: auth.state.user._id\n };\n\n const created = await customers.create(cleanData);\n customer.value = created;\n closeCreatePopup();\n } catch (error) {\n console.error('Error creating customer:', error);\n }\n}\n</script>"],"names":["_useModel","auth.state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiGA,UAAM,EAAE,WAAU,IAAK,gBAAe;AAGtC,UAAM,WAAWA,SAAW,SAAC,UAG5B;AAGD,UAAM,QAAQ,SAAQ;AAGtB,UAAM,aAAa,IAAI,IAAI;AAC3B,UAAM,kBAAkB,IAAI,KAAK;AACjC,UAAM,cAAc,IAAI,EAAE,GAAG,kBAAiB,CAAE;AAGhD,aAAS,eAAe,kBAAkB;AACxC,eAAS,QAAQ;AAAA,IACnB;AAEA,aAAS,gBAAgB;AACvB,eAAS,QAAQ;AAAA,IACnB;AAEA,aAAS,kBAAkB;AACzB,kBAAY,QAAQ,EAAE,GAAG,kBAAiB;AAC1C,UAAI,MAAM,OAAO,KAAK;AACpB,oBAAY,MAAM,QAAQ;AAAA,UACxB,MAAM;AAAA,UACN,QAAQ,MAAM,OAAO;AAAA,QAC3B;AAAA,MACE;AACA,kBAAY,MAAM,UAAU;AAAA,QAC1B,MAAM;AAAA,QACN,QAAQC,MAAW,KAAK;AAAA,MAC5B;AACE,sBAAgB,QAAQ;AAAA,IAC1B;AAEA,aAAS,mBAAmB;AAC1B,sBAAgB,QAAQ;AACxB,kBAAY,QAAQ,EAAE,GAAG,kBAAiB;AAAA,IAC5C;AAEA,mBAAe,kBAAkB;AAC/B,UAAI;AAEF,cAAM,YAAY,EAAE,GAAG,YAAY,MAAK;AACxC,YAAI,CAAC,UAAU,MAAO,QAAO,UAAU;AACvC,YAAI,CAAC,UAAU,MAAO,QAAO,UAAU;AACvC,YAAI,CAAC,UAAU,MAAO,QAAO,UAAU;AACvC,YAAI,CAAC,UAAU,UAAU,MAAM;AAC7B,cAAI,UAAU,SAAU,QAAO,UAAU,SAAS;AAAA,QACpD;AAGA,kBAAU,QAAQ;AAAA,UAChB,MAAM;AAAA,UACN,QAAQ,MAAM,OAAO;AAAA,QAC3B;AAEI,kBAAU,UAAU;AAAA,UAClB,MAAM;AAAA,UACN,QAAQA,MAAW,KAAK;AAAA,QAC9B;AAEI,cAAM,UAAU,MAAM,UAAU,OAAO,SAAS;AAChD,iBAAS,QAAQ;AACjB,yBAAgB;AAAA,MAClB,SAAS,OAAO;AACd,gBAAQ,MAAM,4BAA4B,KAAK;AAAA,MACjD;AAAA,IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,233 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ const vueRouter = require("vue-router");
5
+ const Block = require("../../../../components/Block/Block.vue.cjs");
6
+ const Popup = require("../../../../components/Popup/Popup.vue.cjs");
7
+ const applications = require("../../store/applications.cjs");
8
+ const SectionPageTitle = require("../../../globals/views/components/sections/SectionPageTitle.vue.cjs");
9
+ const Feed = require("../../../../components/Feed/Feed.vue.cjs");
10
+ const CardApplication = require("../blocks/CardApplication.vue.cjs");
11
+ const FormApplicationDetails = require("../forms/FormApplicationDetails.vue.cjs");
12
+ const ApplicationDetails = require("../sections/ApplicationDetails.vue.cjs");
13
+ const application = require("../../store/models/application.cjs");
14
+ const auth = require("../../../auth/views/store/auth.cjs");
15
+ const _hoisted_1 = { class: "mobile:pd-thin pd-medium" };
16
+ const _hoisted_2 = { class: "gap-micro flex-nowrap flex" };
17
+ const _hoisted_3 = { class: "w-100 bg-white radius-small pd-small" };
18
+ const _hoisted_4 = { class: "w-100 bg-white radius-small pd-small" };
19
+ const _hoisted_5 = { class: "w-100 bg-white radius-small pd-small" };
20
+ const _hoisted_6 = ["onClick"];
21
+ const _sfc_main = {
22
+ __name: "Applications",
23
+ setup(__props) {
24
+ const route = vueRouter.useRoute();
25
+ vueRouter.useRouter();
26
+ const statusFilter = vue.ref("all");
27
+ const showViewPopup = vue.ref(false);
28
+ const showFormPopup = vue.ref(false);
29
+ const selectedApplication = vue.ref(null);
30
+ const formApplication = vue.ref({ ...application.default });
31
+ const isCreateMode = vue.ref(false);
32
+ const currentApplications = vue.ref([]);
33
+ const totalApplications = vue.computed(() => {
34
+ return applications.default.state.items?.length || 0;
35
+ });
36
+ const inProgressApplications = vue.computed(() => {
37
+ return applications.default.state.items?.filter((application2) => application2.status === "in_progress").length || 0;
38
+ });
39
+ const newApplicationsThisMonth = vue.computed(() => {
40
+ if (!applications.default.state.items) return 0;
41
+ const now = /* @__PURE__ */ new Date();
42
+ const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1);
43
+ return applications.default.state.items.filter(
44
+ (application2) => new Date(application2.createdAt) >= startOfMonth
45
+ ).length;
46
+ });
47
+ const openCreatePopup = () => {
48
+ formApplication.value = { ...application.default };
49
+ isCreateMode.value = true;
50
+ showFormPopup.value = true;
51
+ };
52
+ const openViewPopup = (application2) => {
53
+ selectedApplication.value = application2;
54
+ showViewPopup.value = true;
55
+ };
56
+ const closeViewPopup = () => {
57
+ showViewPopup.value = false;
58
+ selectedApplication.value = null;
59
+ };
60
+ const closeFormPopup = () => {
61
+ showFormPopup.value = false;
62
+ formApplication.value = { ...application.default };
63
+ isCreateMode.value = false;
64
+ };
65
+ const enableEdit = () => {
66
+ formApplication.value = { ...selectedApplication.value };
67
+ isCreateMode.value = false;
68
+ showViewPopup.value = false;
69
+ showFormPopup.value = true;
70
+ };
71
+ const saveApplication = async () => {
72
+ try {
73
+ const cleanData = { ...formApplication.value };
74
+ if (!cleanData.contacts?.email) delete cleanData.contacts?.email;
75
+ if (!cleanData.contacts?.phone) delete cleanData.contacts?.phone;
76
+ if (!cleanData.contacts?.name) delete cleanData.contacts?.name;
77
+ if (!cleanData.text) delete cleanData.text;
78
+ if (!cleanData.chat) delete cleanData.chat;
79
+ if (isCreateMode.value) {
80
+ delete cleanData._id;
81
+ }
82
+ if (route.meta.context === "organization") {
83
+ cleanData.owner = {
84
+ type: "Organization",
85
+ target: route.params._id || cleanData.owner?.target
86
+ };
87
+ } else {
88
+ cleanData.owner = {
89
+ type: "platform",
90
+ target: "000000000000000000000000"
91
+ // заглушка для отдела платформы
92
+ };
93
+ }
94
+ cleanData.creator = {
95
+ type: "User",
96
+ target: auth.state.user._id || cleanData.creator?.target
97
+ };
98
+ if (isCreateMode.value) {
99
+ const response = await applications.default.create(cleanData);
100
+ applications.default.addItem(response, currentApplications.value);
101
+ } else {
102
+ const response = await applications.default.update(cleanData);
103
+ applications.default.updateItem(response, currentApplications.value);
104
+ selectedApplication.value = { ...response };
105
+ }
106
+ closeFormPopup();
107
+ } catch (error) {
108
+ console.error("Error saving application:", error);
109
+ }
110
+ };
111
+ const deleteApplication = async () => {
112
+ if (confirm("Are you sure you want to delete this application?")) {
113
+ try {
114
+ await applications.default.delete({ _id: selectedApplication.value._id });
115
+ applications.default.removeItem(selectedApplication.value, currentApplications.value);
116
+ closeViewPopup();
117
+ } catch (error) {
118
+ console.error("Error deleting application:", error);
119
+ }
120
+ }
121
+ };
122
+ vue.onMounted(async () => {
123
+ });
124
+ return (_ctx, _cache) => {
125
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
126
+ !_ctx.MOBILE_APP ? (vue.openBlock(), vue.createBlock(SectionPageTitle.default, {
127
+ key: 0,
128
+ title: "Applications",
129
+ actions: [
130
+ { method: () => openCreatePopup(), label: "Create Application" }
131
+ ],
132
+ class: "mn-b-small"
133
+ }, null, 8, ["actions"])) : vue.createCommentVNode("", true),
134
+ vue.unref(route).meta.context !== "user" ? (vue.openBlock(), vue.createBlock(Block.default, {
135
+ key: 1,
136
+ title: "Statistics",
137
+ class: "mn-b-small"
138
+ }, {
139
+ default: vue.withCtx(() => [
140
+ vue.createElementVNode("div", _hoisted_2, [
141
+ vue.createElementVNode("div", _hoisted_3, [
142
+ _cache[2] || (_cache[2] = vue.createElementVNode("p", { class: "mn-b-thin" }, "Total", -1)),
143
+ vue.createElementVNode("h3", null, vue.toDisplayString(totalApplications.value), 1)
144
+ ]),
145
+ vue.createElementVNode("div", _hoisted_4, [
146
+ _cache[3] || (_cache[3] = vue.createElementVNode("p", { class: "mn-b-thin" }, "In Progress", -1)),
147
+ vue.createElementVNode("h3", null, vue.toDisplayString(inProgressApplications.value), 1)
148
+ ]),
149
+ vue.createElementVNode("div", _hoisted_5, [
150
+ _cache[4] || (_cache[4] = vue.createElementVNode("p", { class: "mn-b-thin" }, "New This Month", -1)),
151
+ vue.createElementVNode("h3", null, vue.toDisplayString(newApplicationsThisMonth.value), 1)
152
+ ])
153
+ ])
154
+ ]),
155
+ _: 1
156
+ })) : vue.createCommentVNode("", true),
157
+ vue.createVNode(Feed.default, {
158
+ items: currentApplications.value,
159
+ "onUpdate:items": _cache[0] || (_cache[0] = ($event) => currentApplications.value = $event),
160
+ search: true,
161
+ states: {
162
+ empty: {
163
+ title: "No Applications Found",
164
+ description: "Currently, there are no applications."
165
+ }
166
+ },
167
+ store: vue.unref(applications.default),
168
+ options: {
169
+ limit: 15,
170
+ ...vue.unref(route).meta.context === "organization" && { owner: vue.unref(route).params._id },
171
+ ...statusFilter.value !== "all" && { status: statusFilter.value }
172
+ },
173
+ class: "gap-thin cols-3 mobile:cols-1"
174
+ }, {
175
+ default: vue.withCtx(({
176
+ items
177
+ }) => [
178
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items, (application2) => {
179
+ return vue.openBlock(), vue.createElementBlock("div", {
180
+ key: application2._id,
181
+ onClick: ($event) => openViewPopup(application2),
182
+ class: "cursor-pointer"
183
+ }, [
184
+ vue.createVNode(CardApplication.default, {
185
+ application: application2,
186
+ formatDate: _ctx.formatDate
187
+ }, null, 8, ["application", "formatDate"])
188
+ ], 8, _hoisted_6);
189
+ }), 128))
190
+ ]),
191
+ _: 1
192
+ }, 8, ["items", "store", "options"]),
193
+ vue.createVNode(Popup.default, {
194
+ isPopupOpen: showViewPopup.value,
195
+ onClosePopup: closeViewPopup,
196
+ title: "Application Details",
197
+ align: "center right",
198
+ class: "bg-white h-min-100 w-max-50r pd-medium"
199
+ }, {
200
+ default: vue.withCtx(() => [
201
+ selectedApplication.value ? (vue.openBlock(), vue.createBlock(ApplicationDetails.default, {
202
+ key: 0,
203
+ application: selectedApplication.value,
204
+ onEdit: enableEdit,
205
+ onDelete: deleteApplication
206
+ }, null, 8, ["application"])) : vue.createCommentVNode("", true)
207
+ ]),
208
+ _: 1
209
+ }, 8, ["isPopupOpen"]),
210
+ vue.createVNode(Popup.default, {
211
+ isPopupOpen: showFormPopup.value,
212
+ onClosePopup: closeFormPopup,
213
+ title: isCreateMode.value ? "Create Application" : "Edit Application",
214
+ align: "center right",
215
+ class: "bg-white h-min-100 w-max-50r pd-medium"
216
+ }, {
217
+ default: vue.withCtx(() => [
218
+ vue.createVNode(FormApplicationDetails.default, {
219
+ application: formApplication.value,
220
+ "onUpdate:application": _cache[1] || (_cache[1] = ($event) => formApplication.value = $event),
221
+ onSave: saveApplication,
222
+ onCancel: closeFormPopup,
223
+ "create-mode": isCreateMode.value
224
+ }, null, 8, ["application", "create-mode"])
225
+ ]),
226
+ _: 1
227
+ }, 8, ["isPopupOpen", "title"])
228
+ ]);
229
+ };
230
+ }
231
+ };
232
+ exports.default = _sfc_main;
233
+ //# sourceMappingURL=Applications.vue.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Applications.vue.cjs","sources":["../../../../../../../src/modules/orders/components/pages/Applications.vue"],"sourcesContent":["<template>\n <div class=\"mobile:pd-thin pd-medium\"> \n <SectionPageTitle\n v-if=\"!MOBILE_APP\"\n title=\"Applications\"\n :actions=\"[\n { method: () => openCreatePopup(), label: 'Create Application' }\n ]\"\n class=\"mn-b-small\"\n />\n\n <Block\n v-if=\"route.meta.context !== 'user'\"\n title=\"Statistics\"\n class=\"mn-b-small\"\n >\n <div class=\"gap-micro flex-nowrap flex\">\n <div class=\"w-100 bg-white radius-small pd-small\">\n <p class=\"mn-b-thin\">Total</p>\n <h3>{{totalApplications}}</h3>\n </div>\n <div class=\"w-100 bg-white radius-small pd-small\">\n <p class=\"mn-b-thin\">In Progress</p>\n <h3>{{inProgressApplications}}</h3>\n </div>\n <div class=\"w-100 bg-white radius-small pd-small\">\n <p class=\"mn-b-thin\">New This Month</p>\n <h3>{{newApplicationsThisMonth}}</h3>\n </div>\n </div>\n </Block>\n <Feed\n v-model:items=\"currentApplications\"\n :search=\"true\"\n :states=\"{\n empty: {\n title: 'No Applications Found',\n description: 'Currently, there are no applications.'\n }\n }\"\n :store=\"applications\"\n :options=\"{\n limit: 15,\n ...(route.meta.context === 'organization' && { owner: route.params._id }),\n ...(statusFilter !== 'all' && { status: statusFilter })\n }\"\n v-slot=\"{ \n items \n }\"\n class=\"gap-thin cols-3 mobile:cols-1\"\n >\n <div \n v-for=\"application in items\" \n :key=\"application._id\"\n @click=\"openViewPopup(application)\"\n class=\"cursor-pointer\"\n >\n <CardApplication \n :application=\"application\"\n :formatDate=\"formatDate\"\n />\n </div>\n </Feed>\n\n <!-- View Application Popup -->\n <Popup \n :isPopupOpen=\"showViewPopup\"\n @close-popup=\"closeViewPopup\"\n title=\"Application Details\"\n align=\"center right\"\n class=\"bg-white h-min-100 w-max-50r pd-medium\"\n >\n <ApplicationDetails\n v-if=\"selectedApplication\"\n :application=\"selectedApplication\"\n @edit=\"enableEdit\"\n @delete=\"deleteApplication\"\n />\n </Popup>\n\n <!-- Create/Edit Application Popup -->\n <Popup \n :isPopupOpen=\"showFormPopup\"\n @close-popup=\"closeFormPopup\"\n :title=\"isCreateMode ? 'Create Application' : 'Edit Application'\"\n align=\"center right\"\n class=\"bg-white h-min-100 w-max-50r pd-medium\"\n >\n <FormApplicationDetails \n v-model:application=\"formApplication\"\n @save=\"saveApplication\"\n @cancel=\"closeFormPopup\"\n :create-mode=\"isCreateMode\"\n />\n </Popup>\n </div>\n</template>\n\n<script setup>\n import { computed, onMounted, ref } from 'vue';\n import { useRoute, useRouter } from 'vue-router';\n\n import Block from '@martyrs/src/components/Block/Block.vue';\n import Popup from '@martyrs/src/components/Popup/Popup.vue';\n import applications from '@martyrs/src/modules/orders/store/applications.js';\n import SectionPageTitle from '@martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue'\n import Feed from '@martyrs/src/components/Feed/Feed.vue'\n import CardApplication from '@martyrs/src/modules/orders/components/blocks/CardApplication.vue'\n import FormApplicationDetails from '@martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue'\n import ApplicationDetails from '@martyrs/src/modules/orders/components/sections/ApplicationDetails.vue'\n import applicationInitState from '@martyrs/src/modules/orders/store/models/application.js';\n import * as auth from '@martyrs/src/modules/auth/views/store/auth.js';\n\n const route = useRoute();\n const router = useRouter();\n\n const statusFilter = ref('all')\n\n // Popup states\n const showViewPopup = ref(false)\n const showFormPopup = ref(false)\n const selectedApplication = ref(null)\n const formApplication = ref({ ...applicationInitState })\n const isCreateMode = ref(false)\n const currentApplications = ref([])\n\n const totalApplications = computed(() => {\n return applications.state.items?.length || 0\n });\n\n const inProgressApplications = computed(() => {\n return applications.state.items?.filter(application => application.status === 'in_progress').length || 0\n });\n\n const newApplicationsThisMonth = computed(() => {\n if (!applications.state.items) return 0;\n const now = new Date();\n const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1);\n return applications.state.items.filter(application => \n new Date(application.createdAt) >= startOfMonth\n ).length\n });\n\n // Popup methods\n const openCreatePopup = () => {\n formApplication.value = { ...applicationInitState };\n // Ownership будет установлен в saveApplication\n isCreateMode.value = true;\n showFormPopup.value = true;\n };\n\n const openViewPopup = (application) => {\n selectedApplication.value = application;\n showViewPopup.value = true;\n };\n\n const closeViewPopup = () => {\n showViewPopup.value = false;\n selectedApplication.value = null;\n };\n\n const closeFormPopup = () => {\n showFormPopup.value = false;\n formApplication.value = { ...applicationInitState };\n isCreateMode.value = false;\n };\n\n const enableEdit = () => {\n formApplication.value = { ...selectedApplication.value };\n isCreateMode.value = false;\n showViewPopup.value = false;\n showFormPopup.value = true;\n };\n\n const saveApplication = async () => {\n try {\n // Remove empty fields but preserve required ownership structure\n const cleanData = { ...formApplication.value };\n if (!cleanData.contacts?.email) delete cleanData.contacts?.email;\n if (!cleanData.contacts?.phone) delete cleanData.contacts?.phone;\n if (!cleanData.contacts?.name) delete cleanData.contacts?.name;\n if (!cleanData.text) delete cleanData.text;\n if (!cleanData.chat) delete cleanData.chat;\n \n // Remove _id to let MongoDB auto-generate it (Mongoose bug when _id is null)\n if (isCreateMode.value) {\n delete cleanData._id;\n }\n \n // Set owner based on context\n if (route.meta.context === 'organization') {\n // В контексте организации - owner это организация\n cleanData.owner = {\n type: 'Organization',\n target: route.params._id || cleanData.owner?.target\n };\n } else {\n // В контексте бекофиса - owner это Platform\n cleanData.owner = {\n type: 'platform',\n target: '000000000000000000000000' // заглушка для отдела платформы\n };\n }\n \n // Set creator (who created the application)\n cleanData.creator = {\n type: 'User',\n target: auth.state.user._id || cleanData.creator?.target\n };\n \n if (isCreateMode.value) {\n const response = await applications.create(cleanData);\n applications.addItem(response, currentApplications.value);\n } else {\n const response = await applications.update(cleanData);\n applications.updateItem(response, currentApplications.value);\n selectedApplication.value = { ...response };\n }\n closeFormPopup();\n } catch (error) {\n console.error('Error saving application:', error);\n }\n };\n\n const deleteApplication = async () => {\n if (confirm('Are you sure you want to delete this application?')) {\n try {\n await applications.delete({ _id: selectedApplication.value._id });\n applications.removeItem(selectedApplication.value, currentApplications.value);\n closeViewPopup();\n } catch (error) {\n console.error('Error deleting application:', error);\n }\n }\n };\n\n onMounted(async () => {\n \n });\n</script>"],"names":["useRoute","useRouter","ref","applicationInitState","computed","applications","application","auth.state","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAiHE,UAAM,QAAQA,UAAAA,SAAQ;AACPC,cAAAA,UAAS;AAExB,UAAM,eAAeC,IAAAA,IAAI,KAAK;AAG9B,UAAM,gBAAgBA,IAAAA,IAAI,KAAK;AAC/B,UAAM,gBAAgBA,IAAAA,IAAI,KAAK;AAC/B,UAAM,sBAAsBA,IAAAA,IAAI,IAAI;AACpC,UAAM,kBAAkBA,IAAAA,IAAI,EAAE,GAAGC,oBAAoB,CAAE;AACvD,UAAM,eAAeD,IAAAA,IAAI,KAAK;AAC9B,UAAM,sBAAsBA,IAAAA,IAAI,CAAA,CAAE;AAElC,UAAM,oBAAoBE,IAAAA,SAAS,MAAM;AACvC,aAAOC,qBAAa,MAAM,OAAO,UAAU;AAAA,IAC7C,CAAC;AAED,UAAM,yBAAyBD,IAAAA,SAAS,MAAM;AAC5C,aAAOC,aAAAA,QAAa,MAAM,OAAO,OAAO,CAAAC,iBAAeA,aAAY,WAAW,aAAa,EAAE,UAAU;AAAA,IACzG,CAAC;AAED,UAAM,2BAA2BF,IAAAA,SAAS,MAAM;AAC9C,UAAI,CAACC,aAAAA,QAAa,MAAM,MAAO,QAAO;AACtC,YAAM,MAAM,oBAAI,KAAI;AACpB,YAAM,eAAe,IAAI,KAAK,IAAI,YAAW,GAAI,IAAI,SAAQ,GAAI,CAAC;AAClE,aAAOA,qBAAa,MAAM,MAAM;AAAA,QAAO,CAAAC,iBACrC,IAAI,KAAKA,aAAY,SAAS,KAAK;AAAA,MACzC,EAAM;AAAA,IACJ,CAAC;AAGD,UAAM,kBAAkB,MAAM;AAC5B,sBAAgB,QAAQ,EAAE,GAAGH,oBAAoB;AAEjD,mBAAa,QAAQ;AACrB,oBAAc,QAAQ;AAAA,IACxB;AAEA,UAAM,gBAAgB,CAACG,iBAAgB;AACrC,0BAAoB,QAAQA;AAC5B,oBAAc,QAAQ;AAAA,IACxB;AAEA,UAAM,iBAAiB,MAAM;AAC3B,oBAAc,QAAQ;AACtB,0BAAoB,QAAQ;AAAA,IAC9B;AAEA,UAAM,iBAAiB,MAAM;AAC3B,oBAAc,QAAQ;AACtB,sBAAgB,QAAQ,EAAE,GAAGH,oBAAoB;AACjD,mBAAa,QAAQ;AAAA,IACvB;AAEA,UAAM,aAAa,MAAM;AACvB,sBAAgB,QAAQ,EAAE,GAAG,oBAAoB,MAAK;AACtD,mBAAa,QAAQ;AACrB,oBAAc,QAAQ;AACtB,oBAAc,QAAQ;AAAA,IACxB;AAEA,UAAM,kBAAkB,YAAY;AAClC,UAAI;AAEF,cAAM,YAAY,EAAE,GAAG,gBAAgB,MAAK;AAC5C,YAAI,CAAC,UAAU,UAAU,MAAO,QAAO,UAAU,UAAU;AAC3D,YAAI,CAAC,UAAU,UAAU,MAAO,QAAO,UAAU,UAAU;AAC3D,YAAI,CAAC,UAAU,UAAU,KAAM,QAAO,UAAU,UAAU;AAC1D,YAAI,CAAC,UAAU,KAAM,QAAO,UAAU;AACtC,YAAI,CAAC,UAAU,KAAM,QAAO,UAAU;AAGtC,YAAI,aAAa,OAAO;AACtB,iBAAO,UAAU;AAAA,QACnB;AAGA,YAAI,MAAM,KAAK,YAAY,gBAAgB;AAEzC,oBAAU,QAAQ;AAAA,YAChB,MAAM;AAAA,YACN,QAAQ,MAAM,OAAO,OAAO,UAAU,OAAO;AAAA,UACvD;AAAA,QACM,OAAO;AAEL,oBAAU,QAAQ;AAAA,YAChB,MAAM;AAAA,YACN,QAAQ;AAAA;AAAA,UAClB;AAAA,QACM;AAGA,kBAAU,UAAU;AAAA,UAClB,MAAM;AAAA,UACN,QAAQI,KAAAA,MAAW,KAAK,OAAO,UAAU,SAAS;AAAA,QAC1D;AAEM,YAAI,aAAa,OAAO;AACtB,gBAAM,WAAW,MAAMF,qBAAa,OAAO,SAAS;AACpDA,uBAAAA,QAAa,QAAQ,UAAU,oBAAoB,KAAK;AAAA,QAC1D,OAAO;AACL,gBAAM,WAAW,MAAMA,qBAAa,OAAO,SAAS;AACpDA,uBAAAA,QAAa,WAAW,UAAU,oBAAoB,KAAK;AAC3D,8BAAoB,QAAQ,EAAE,GAAG,SAAQ;AAAA,QAC3C;AACA,uBAAc;AAAA,MAChB,SAAS,OAAO;AACd,gBAAQ,MAAM,6BAA6B,KAAK;AAAA,MAClD;AAAA,IACF;AAEA,UAAM,oBAAoB,YAAY;AACpC,UAAI,QAAQ,mDAAmD,GAAG;AAChE,YAAI;AACF,gBAAMA,aAAAA,QAAa,OAAO,EAAE,KAAK,oBAAoB,MAAM,KAAK;AAChEA,uBAAAA,QAAa,WAAW,oBAAoB,OAAO,oBAAoB,KAAK;AAC5E,yBAAc;AAAA,QAChB,SAAS,OAAO;AACd,kBAAQ,MAAM,+BAA+B,KAAK;AAAA,QACpD;AAAA,MACF;AAAA,IACF;AAEAG,QAAAA,UAAU,YAAY;AAAA,IAEtB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}