@ozdao/martyrs 0.2.506 → 0.2.508

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 (555) hide show
  1. package/dist/_virtual/index.cjs +4 -4
  2. package/dist/_virtual/index.js +4 -4
  3. package/dist/_virtual/index2.cjs +4 -4
  4. package/dist/_virtual/index2.js +4 -4
  5. package/dist/auth.server.cjs +1 -1
  6. package/dist/auth.server.js +1 -1
  7. package/dist/builder.cjs +52 -60
  8. package/dist/builder.js +52 -60
  9. package/dist/chats.server.cjs +1 -1
  10. package/dist/chats.server.js +1 -1
  11. package/dist/events.server.cjs +1 -1
  12. package/dist/events.server.js +1 -1
  13. package/dist/{mailing-q7sR8gCV.cjs → mailing-Bs9ThyVZ.cjs} +1 -24
  14. package/dist/{mailing-C11EYWm-.js → mailing-DzlhsxCC.js} +1 -24
  15. package/dist/main-AWSb_d2P.cjs +11 -0
  16. package/dist/{main-DC__VS5b.js → main-Dq-UfO4G.js} +2562 -2477
  17. package/dist/martyrs/src/components/Button/Button.vue.cjs +1 -1
  18. package/dist/martyrs/src/components/Button/Button.vue.js +1 -1
  19. package/dist/martyrs/src/components/Checkbox/Checkbox.vue.cjs +3 -3
  20. package/dist/martyrs/src/components/Checkbox/Checkbox.vue.cjs.map +1 -1
  21. package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js +3 -3
  22. package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js.map +1 -1
  23. package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs +0 -93
  24. package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs.map +1 -1
  25. package/dist/martyrs/src/components/EditImages/EditImages.vue.js +1 -94
  26. package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -1
  27. package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs +93 -0
  28. package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs.map +1 -1
  29. package/dist/martyrs/src/components/EditImages/EditImages.vue2.js +94 -1
  30. package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +1 -1
  31. package/dist/martyrs/src/components/Feed/Carousel.vue.cjs +1 -1
  32. package/dist/martyrs/src/components/Feed/Carousel.vue.js +1 -1
  33. package/dist/martyrs/src/components/Feed/Feed.vue.cjs +15 -46
  34. package/dist/martyrs/src/components/Feed/Feed.vue.cjs.map +1 -1
  35. package/dist/martyrs/src/components/Feed/Feed.vue.js +22 -53
  36. package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
  37. package/dist/martyrs/src/components/Field/Field.vue.cjs +14 -6
  38. package/dist/martyrs/src/components/Field/Field.vue.cjs.map +1 -1
  39. package/dist/martyrs/src/components/Field/Field.vue.js +14 -6
  40. package/dist/martyrs/src/components/Field/Field.vue.js.map +1 -1
  41. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs +58 -11
  42. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs.map +1 -1
  43. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +60 -13
  44. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js.map +1 -1
  45. package/dist/martyrs/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  46. package/dist/martyrs/src/components/FieldTags/FieldTags.vue.js +1 -1
  47. package/dist/martyrs/src/components/Loader/{Loader.vue.cjs → Loader.vue2.cjs} +2 -2
  48. package/dist/martyrs/src/components/Loader/Loader.vue2.cjs.map +1 -0
  49. package/dist/martyrs/src/components/Loader/{Loader.vue.js → Loader.vue2.js} +2 -2
  50. package/dist/martyrs/src/components/Loader/{Loader.vue.cjs.map → Loader.vue2.js.map} +1 -1
  51. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  52. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
  53. package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.cjs +2 -2
  54. package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.cjs.map +1 -1
  55. package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.js +2 -2
  56. package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.js.map +1 -1
  57. package/dist/martyrs/src/components/Spoiler/{Spoiler.vue.cjs → Spoiler.vue2.cjs} +2 -2
  58. package/dist/martyrs/src/components/Spoiler/Spoiler.vue2.cjs.map +1 -0
  59. package/dist/martyrs/src/components/Spoiler/{Spoiler.vue.js → Spoiler.vue2.js} +2 -2
  60. package/dist/martyrs/src/components/Spoiler/{Spoiler.vue.cjs.map → Spoiler.vue2.js.map} +1 -1
  61. package/dist/martyrs/src/components/Tab/{Tab.vue.cjs → Tab.vue2.cjs} +2 -2
  62. package/dist/martyrs/src/components/Tab/Tab.vue2.cjs.map +1 -0
  63. package/dist/martyrs/src/components/Tab/{Tab.vue.js → Tab.vue2.js} +2 -2
  64. package/dist/martyrs/src/components/Tab/{Tab.vue.cjs.map → Tab.vue2.js.map} +1 -1
  65. package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  66. package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  67. package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
  68. package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
  69. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
  70. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
  71. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +2 -2
  72. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -1
  73. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +2 -2
  74. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
  75. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +1 -1
  76. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +1 -1
  77. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +42 -10
  78. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs.map +1 -1
  79. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +44 -12
  80. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -1
  81. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs +11 -15
  82. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs.map +1 -1
  83. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +21 -25
  84. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js.map +1 -1
  85. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs +12 -16
  86. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs.map +1 -1
  87. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +33 -37
  88. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js.map +1 -1
  89. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.cjs +13 -9
  90. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.cjs.map +1 -1
  91. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js +13 -9
  92. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js.map +1 -1
  93. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
  94. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
  95. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
  96. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
  97. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
  98. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
  99. package/dist/martyrs/src/modules/auth/views/router/users.cjs +0 -4
  100. package/dist/martyrs/src/modules/auth/views/router/users.cjs.map +1 -1
  101. package/dist/martyrs/src/modules/auth/views/router/users.js +0 -4
  102. package/dist/martyrs/src/modules/auth/views/router/users.js.map +1 -1
  103. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  104. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +1 -1
  105. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  106. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  107. package/dist/martyrs/src/modules/community/components/pages/Posts.vue.cjs +431 -0
  108. package/dist/martyrs/src/modules/community/components/pages/Posts.vue.cjs.map +1 -0
  109. package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js +431 -0
  110. package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js.map +1 -0
  111. package/dist/martyrs/src/modules/community/router/blogposts.cjs +17 -0
  112. package/dist/martyrs/src/modules/community/router/blogposts.cjs.map +1 -1
  113. package/dist/martyrs/src/modules/community/router/blogposts.js +17 -0
  114. package/dist/martyrs/src/modules/community/router/blogposts.js.map +1 -1
  115. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
  116. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  117. package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +2 -4
  118. package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
  119. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +2 -4
  120. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
  121. package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
  122. package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
  123. package/dist/martyrs/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  124. package/dist/martyrs/src/modules/events/components/sections/Feed.vue.js +1 -1
  125. package/dist/martyrs/src/modules/events/components/sections/List.vue.cjs +1 -1
  126. package/dist/martyrs/src/modules/events/components/sections/List.vue.js +1 -1
  127. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  128. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  129. package/dist/martyrs/src/modules/globals/globals.client.cjs +3 -0
  130. package/dist/martyrs/src/modules/globals/globals.client.cjs.map +1 -1
  131. package/dist/martyrs/src/modules/globals/globals.client.js +3 -0
  132. package/dist/martyrs/src/modules/globals/globals.client.js.map +1 -1
  133. package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.cjs +1 -1
  134. package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.js +1 -1
  135. package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.cjs +4 -6
  136. package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.cjs.map +1 -1
  137. package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.js +4 -6
  138. package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.js.map +1 -1
  139. package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +1 -1
  140. package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.js +1 -1
  141. package/dist/martyrs/src/modules/globals/views/components/blocks/Card.vue.cjs +5 -2
  142. package/dist/martyrs/src/modules/globals/views/components/blocks/Card.vue.cjs.map +1 -1
  143. package/dist/martyrs/src/modules/globals/views/components/blocks/Card.vue.js +6 -3
  144. package/dist/martyrs/src/modules/globals/views/components/blocks/Card.vue.js.map +1 -1
  145. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
  146. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
  147. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs +1 -1
  148. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +1 -1
  149. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -3
  150. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
  151. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +2 -3
  152. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
  153. package/dist/martyrs/src/modules/globals/views/components/partials/Footer.vue.cjs +321 -0
  154. package/dist/martyrs/src/modules/globals/views/components/partials/Footer.vue.cjs.map +1 -0
  155. package/dist/martyrs/src/modules/globals/views/components/partials/Footer.vue.js +321 -0
  156. package/dist/martyrs/src/modules/globals/views/components/partials/Footer.vue.js.map +1 -0
  157. package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.cjs +1 -1
  158. package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.js +1 -1
  159. package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.cjs +324 -0
  160. package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.cjs.map +1 -0
  161. package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.js +324 -0
  162. package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.js.map +1 -0
  163. package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
  164. package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
  165. package/dist/martyrs/src/modules/icons/entities/IconLock.vue.cjs +32 -0
  166. package/dist/martyrs/src/modules/icons/entities/IconLock.vue.cjs.map +1 -0
  167. package/dist/martyrs/src/modules/icons/entities/IconLock.vue.js +32 -0
  168. package/dist/martyrs/src/modules/icons/entities/IconLock.vue.js.map +1 -0
  169. package/dist/martyrs/src/modules/icons/icons.client.cjs +2 -0
  170. package/dist/martyrs/src/modules/icons/icons.client.cjs.map +1 -1
  171. package/dist/martyrs/src/modules/icons/icons.client.js +116 -114
  172. package/dist/martyrs/src/modules/icons/icons.client.js.map +1 -1
  173. package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs +5 -3
  174. package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs.map +1 -1
  175. package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js +117 -115
  176. package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js.map +1 -1
  177. package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.cjs +1 -1
  178. package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js +1 -1
  179. package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +11 -36
  180. package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs.map +1 -1
  181. package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +11 -36
  182. package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js.map +1 -1
  183. package/dist/martyrs/src/modules/landing/landing.client.cjs +3 -0
  184. package/dist/martyrs/src/modules/landing/landing.client.cjs.map +1 -1
  185. package/dist/martyrs/src/modules/landing/landing.client.js +3 -0
  186. package/dist/martyrs/src/modules/landing/landing.client.js.map +1 -1
  187. package/dist/martyrs/src/modules/landing/locales/en.cjs +12 -0
  188. package/dist/martyrs/src/modules/landing/locales/en.cjs.map +1 -0
  189. package/dist/martyrs/src/modules/landing/locales/en.js +12 -0
  190. package/dist/martyrs/src/modules/landing/locales/en.js.map +1 -0
  191. package/dist/martyrs/src/modules/landing/locales/index.cjs +10 -0
  192. package/dist/martyrs/src/modules/landing/locales/index.cjs.map +1 -0
  193. package/dist/martyrs/src/modules/landing/locales/index.js +10 -0
  194. package/dist/martyrs/src/modules/landing/locales/index.js.map +1 -0
  195. package/dist/martyrs/src/modules/landing/locales/ru.cjs +12 -0
  196. package/dist/martyrs/src/modules/landing/locales/ru.cjs.map +1 -0
  197. package/dist/martyrs/src/modules/landing/locales/ru.js +12 -0
  198. package/dist/martyrs/src/modules/landing/locales/ru.js.map +1 -0
  199. package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.cjs +1 -1
  200. package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +1 -1
  201. package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.cjs +1 -1
  202. package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +1 -1
  203. package/dist/martyrs/src/modules/music/components/pages/Album.vue.cjs +2 -2
  204. package/dist/martyrs/src/modules/music/components/pages/Album.vue.cjs.map +1 -1
  205. package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +2 -2
  206. package/dist/martyrs/src/modules/music/components/pages/Album.vue.js.map +1 -1
  207. package/dist/martyrs/src/modules/music/components/pages/Artist.vue.cjs +1 -1
  208. package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +1 -1
  209. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.cjs +2 -2
  210. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.cjs.map +1 -1
  211. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +2 -2
  212. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js.map +1 -1
  213. package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.cjs +1 -1
  214. package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +1 -1
  215. package/dist/martyrs/src/modules/music/components/pages/Track.vue.cjs +2 -2
  216. package/dist/martyrs/src/modules/music/components/pages/Track.vue.cjs.map +1 -1
  217. package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +2 -2
  218. package/dist/martyrs/src/modules/music/components/pages/Track.vue.js.map +1 -1
  219. package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.cjs +1 -1
  220. package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.js +1 -1
  221. package/dist/martyrs/src/modules/music/router/music.cjs +2 -4
  222. package/dist/martyrs/src/modules/music/router/music.cjs.map +1 -1
  223. package/dist/martyrs/src/modules/music/router/music.js +2 -4
  224. package/dist/martyrs/src/modules/music/router/music.js.map +1 -1
  225. package/dist/martyrs/src/modules/notifications/components/pages/Notifications.vue.cjs +1 -1
  226. package/dist/martyrs/src/modules/notifications/components/pages/Notifications.vue.js +1 -1
  227. package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.cjs +86 -0
  228. package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.cjs.map +1 -0
  229. package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js +86 -0
  230. package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js.map +1 -0
  231. package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.cjs +103 -0
  232. package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.cjs.map +1 -0
  233. package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js +103 -0
  234. package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js.map +1 -0
  235. package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.cjs +194 -0
  236. package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.cjs.map +1 -0
  237. package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js +194 -0
  238. package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js.map +1 -0
  239. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.cjs +138 -0
  240. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.cjs.map +1 -0
  241. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +138 -0
  242. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js.map +1 -0
  243. package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.cjs +189 -0
  244. package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.cjs.map +1 -0
  245. package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +189 -0
  246. package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js.map +1 -0
  247. package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.cjs +173 -0
  248. package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.cjs.map +1 -0
  249. package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +173 -0
  250. package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js.map +1 -0
  251. package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.cjs +233 -0
  252. package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.cjs.map +1 -0
  253. package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js +233 -0
  254. package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js.map +1 -0
  255. package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.cjs +234 -0
  256. package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.cjs.map +1 -0
  257. package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js +234 -0
  258. package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js.map +1 -0
  259. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs +9 -8
  260. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs.map +1 -1
  261. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +9 -8
  262. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
  263. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +8 -82
  264. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs.map +1 -1
  265. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +9 -83
  266. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
  267. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  268. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +1 -1
  269. package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.cjs +119 -0
  270. package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.cjs.map +1 -0
  271. package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +119 -0
  272. package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js.map +1 -0
  273. package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.cjs +139 -0
  274. package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.cjs.map +1 -0
  275. package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +139 -0
  276. package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js.map +1 -0
  277. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +2 -4
  278. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs.map +1 -1
  279. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -4
  280. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js.map +1 -1
  281. package/dist/martyrs/src/modules/orders/locales/en.cjs +38 -0
  282. package/dist/martyrs/src/modules/orders/locales/en.cjs.map +1 -0
  283. package/dist/martyrs/src/modules/orders/locales/en.js +38 -0
  284. package/dist/martyrs/src/modules/orders/locales/en.js.map +1 -0
  285. package/dist/martyrs/src/modules/orders/locales/index.cjs +10 -0
  286. package/dist/martyrs/src/modules/orders/locales/index.cjs.map +1 -0
  287. package/dist/martyrs/src/modules/orders/locales/index.js +10 -0
  288. package/dist/martyrs/src/modules/orders/locales/index.js.map +1 -0
  289. package/dist/martyrs/src/modules/orders/locales/ru.cjs +38 -0
  290. package/dist/martyrs/src/modules/orders/locales/ru.cjs.map +1 -0
  291. package/dist/martyrs/src/modules/orders/locales/ru.js +38 -0
  292. package/dist/martyrs/src/modules/orders/locales/ru.js.map +1 -0
  293. package/dist/martyrs/src/modules/orders/orders.client.cjs +78 -3
  294. package/dist/martyrs/src/modules/orders/orders.client.cjs.map +1 -1
  295. package/dist/martyrs/src/modules/orders/orders.client.js +80 -5
  296. package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
  297. package/dist/martyrs/src/modules/orders/router/applications.router.cjs +17 -0
  298. package/dist/martyrs/src/modules/orders/router/applications.router.cjs.map +1 -0
  299. package/dist/martyrs/src/modules/orders/router/applications.router.js +17 -0
  300. package/dist/martyrs/src/modules/orders/router/applications.router.js.map +1 -0
  301. package/dist/martyrs/src/modules/orders/router/customers.router.cjs +18 -0
  302. package/dist/martyrs/src/modules/orders/router/customers.router.cjs.map +1 -0
  303. package/dist/martyrs/src/modules/orders/router/customers.router.js +18 -0
  304. package/dist/martyrs/src/modules/orders/router/customers.router.js.map +1 -0
  305. package/dist/martyrs/src/modules/orders/store/applications.cjs +4 -42
  306. package/dist/martyrs/src/modules/orders/store/applications.cjs.map +1 -1
  307. package/dist/martyrs/src/modules/orders/store/applications.js +3 -41
  308. package/dist/martyrs/src/modules/orders/store/applications.js.map +1 -1
  309. package/dist/martyrs/src/modules/orders/store/models/application.cjs +20 -0
  310. package/dist/martyrs/src/modules/orders/store/models/application.cjs.map +1 -0
  311. package/dist/martyrs/src/modules/orders/store/models/application.js +20 -0
  312. package/dist/martyrs/src/modules/orders/store/models/application.js.map +1 -0
  313. package/dist/martyrs/src/modules/orders/store/models/customer.cjs +13 -1
  314. package/dist/martyrs/src/modules/orders/store/models/customer.cjs.map +1 -1
  315. package/dist/martyrs/src/modules/orders/store/models/customer.js +13 -1
  316. package/dist/martyrs/src/modules/orders/store/models/customer.js.map +1 -1
  317. package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  318. package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
  319. package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  320. package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js +1 -1
  321. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
  322. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  323. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  324. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +1 -1
  325. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +126 -192
  326. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
  327. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +128 -194
  328. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
  329. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  330. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  331. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  332. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  333. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  334. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  335. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +2 -2
  336. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  337. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs +85 -89
  338. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs.map +1 -1
  339. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js +92 -96
  340. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
  341. package/dist/martyrs/src/modules/organizations/organizations.client.cjs +0 -3
  342. package/dist/martyrs/src/modules/organizations/organizations.client.cjs.map +1 -1
  343. package/dist/martyrs/src/modules/organizations/organizations.client.js +36 -39
  344. package/dist/martyrs/src/modules/organizations/organizations.client.js.map +1 -1
  345. package/dist/martyrs/src/modules/organizations/router/organizations.cjs +4 -0
  346. package/dist/martyrs/src/modules/organizations/router/organizations.cjs.map +1 -1
  347. package/dist/martyrs/src/modules/organizations/router/organizations.js +4 -0
  348. package/dist/martyrs/src/modules/organizations/router/organizations.js.map +1 -1
  349. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
  350. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
  351. package/dist/martyrs/src/modules/pages/views/components/pages/Page.vue.cjs +3 -6
  352. package/dist/martyrs/src/modules/pages/views/components/pages/Page.vue.cjs.map +1 -1
  353. package/dist/martyrs/src/modules/pages/views/components/pages/Page.vue.js +3 -6
  354. package/dist/martyrs/src/modules/pages/views/components/pages/Page.vue.js.map +1 -1
  355. package/dist/martyrs/src/modules/products/components/blocks/CardCategory.vue.cjs +1 -1
  356. package/dist/martyrs/src/modules/products/components/blocks/CardCategory.vue.cjs.map +1 -1
  357. package/dist/martyrs/src/modules/products/components/blocks/CardCategory.vue.js +1 -1
  358. package/dist/martyrs/src/modules/products/components/blocks/CardCategory.vue.js.map +1 -1
  359. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.cjs +2 -2
  360. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.cjs.map +1 -1
  361. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js +2 -2
  362. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js.map +1 -1
  363. package/dist/martyrs/src/modules/products/components/elements/Image360.vue.cjs +1 -1
  364. package/dist/martyrs/src/modules/products/components/elements/Image360.vue.js +1 -1
  365. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +22 -19
  366. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs.map +1 -1
  367. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +22 -19
  368. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js.map +1 -1
  369. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +28 -19
  370. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs.map +1 -1
  371. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +28 -19
  372. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js.map +1 -1
  373. package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +2 -2
  374. package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +2 -2
  375. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
  376. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  377. package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  378. package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
  379. package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +361 -105
  380. package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
  381. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +379 -123
  382. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
  383. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +1 -1
  384. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +1 -1
  385. package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  386. package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  387. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs +32 -2
  388. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs.map +1 -1
  389. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +33 -3
  390. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js.map +1 -1
  391. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  392. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  393. package/dist/martyrs/src/modules/products/router/products.router.cjs +15 -0
  394. package/dist/martyrs/src/modules/products/router/products.router.cjs.map +1 -1
  395. package/dist/martyrs/src/modules/products/router/products.router.js +15 -0
  396. package/dist/martyrs/src/modules/products/router/products.router.js.map +1 -1
  397. package/dist/martyrs/src/modules/products/store/categories.cjs +25 -7
  398. package/dist/martyrs/src/modules/products/store/categories.cjs.map +1 -1
  399. package/dist/martyrs/src/modules/products/store/categories.js +25 -7
  400. package/dist/martyrs/src/modules/products/store/categories.js.map +1 -1
  401. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.cjs +1 -1
  402. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +1 -1
  403. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.cjs +1 -1
  404. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +1 -1
  405. package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  406. package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  407. package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.cjs +1 -1
  408. package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js +1 -1
  409. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
  410. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
  411. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.cjs +345 -0
  412. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.cjs.map +1 -0
  413. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js +345 -0
  414. package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js.map +1 -0
  415. package/dist/martyrs/src/modules/spots/router/spots.cjs +17 -0
  416. package/dist/martyrs/src/modules/spots/router/spots.cjs.map +1 -1
  417. package/dist/martyrs/src/modules/spots/router/spots.js +17 -0
  418. package/dist/martyrs/src/modules/spots/router/spots.js.map +1 -1
  419. package/dist/martyrs.cjs.js +1 -1
  420. package/dist/martyrs.css +1 -1
  421. package/dist/martyrs.es.js +1 -1
  422. package/dist/notifications.server.cjs +1 -1
  423. package/dist/notifications.server.js +1 -1
  424. package/dist/orders.server.cjs +459 -201
  425. package/dist/orders.server.js +459 -201
  426. package/dist/organizations.server.cjs +1 -1
  427. package/dist/organizations.server.js +1 -1
  428. package/dist/products.server.cjs +428 -255
  429. package/dist/products.server.js +428 -255
  430. package/dist/style.css +129 -140
  431. package/dist/{tickets.controller-DQQcjyui.js → tickets.controller-C56OvH6v.js} +1 -1
  432. package/dist/{tickets.controller-D0V0gJCA.cjs → tickets.controller-DdnndM6c.cjs} +1 -1
  433. package/dist/wallet.server.cjs +1 -1
  434. package/dist/wallet.server.js +1 -1
  435. package/dist/{web-B1bEJ1W9.js → web-BXajFCU2.js} +1 -1
  436. package/dist/{web-D5i9k2Vv.cjs → web-DaBwwCQ5.cjs} +1 -1
  437. package/package.json +1 -1
  438. package/src/builder/modes/ssr.dev.js +10 -10
  439. package/src/builder/rspack/rspack.config.ssr.client.js +50 -50
  440. package/src/components/Checkbox/Checkbox.vue +3 -4
  441. package/src/components/Feed/Feed.old.vue +522 -0
  442. package/src/components/Feed/Feed.vue +4 -4
  443. package/src/components/Field/Field.vue +7 -1
  444. package/src/components/FieldBig/FieldBig.vue +62 -8
  445. package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
  446. package/src/modules/STYLES.MD +198 -0
  447. package/src/modules/auth/views/components/pages/Profile.vue +1 -1
  448. package/src/modules/auth/views/components/pages/ProfileEdit.vue +42 -8
  449. package/src/modules/auth/views/components/pages/ProfileEditAccount.vue +9 -11
  450. package/src/modules/auth/views/components/pages/ProfileEditProfile.vue +9 -11
  451. package/src/modules/auth/views/components/pages/ProfileEditSidebar.vue +7 -4
  452. package/src/modules/auth/views/router/users.js +0 -4
  453. package/src/modules/community/components/pages/Posts.vue +444 -0
  454. package/src/modules/community/router/blogposts.js +15 -0
  455. package/src/modules/globals/globals.client.js +3 -0
  456. package/src/modules/globals/views/classes/globals.websocket.js +7 -8
  457. package/src/modules/globals/views/components/blocks/Card.vue +2 -1
  458. package/src/modules/globals/views/components/layouts/Client.vue +1 -2
  459. package/src/modules/globals/views/components/partials/Footer.vue +318 -164
  460. package/src/modules/globals/views/components/sections/Filters.vue +261 -121
  461. package/src/modules/globals/views/components/sections/filters/FilterCheckbox.vue +78 -0
  462. package/src/modules/globals/views/components/sections/filters/FilterDateRange.vue +177 -0
  463. package/src/modules/globals/views/components/sections/filters/FilterRange.vue +51 -50
  464. package/src/modules/icons/entities/IconLock.vue +14 -0
  465. package/src/modules/icons/icons.client.js +2 -1
  466. package/src/modules/icons/pages/IconsPage.vue +4 -2
  467. package/src/modules/landing/components/sections/SubscribeNewsletter.vue +11 -61
  468. package/src/modules/landing/landing.client.js +6 -0
  469. package/src/modules/landing/locales/en.js +9 -0
  470. package/src/modules/landing/locales/index.js +7 -0
  471. package/src/modules/landing/locales/ru.js +9 -0
  472. package/src/modules/music/components/pages/Album.vue +1 -1
  473. package/src/modules/music/components/pages/Playlist.vue +1 -1
  474. package/src/modules/music/components/pages/Track.vue +1 -1
  475. package/src/modules/orders/components/blocks/CardApplication.vue +74 -0
  476. package/src/modules/orders/components/blocks/CardCustomer.vue +90 -0
  477. package/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue +199 -0
  478. package/src/modules/orders/components/forms/FormApplicationDetails.vue +117 -0
  479. package/src/modules/orders/components/forms/FormCustomerDetails.vue +165 -0
  480. package/src/modules/orders/components/forms/FormSelectCustomer.vue +172 -0
  481. package/src/modules/orders/components/pages/Applications.vue +240 -0
  482. package/src/modules/orders/components/pages/Customers.vue +239 -0
  483. package/src/modules/orders/components/pages/OrderCreate.vue +2 -2
  484. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +4 -75
  485. package/src/modules/orders/components/sections/ApplicationDetails.vue +91 -0
  486. package/src/modules/orders/components/sections/CustomerDetails.vue +107 -0
  487. package/src/modules/orders/locales/en.js +35 -0
  488. package/src/modules/orders/locales/index.js +7 -0
  489. package/src/modules/orders/locales/ru.js +35 -0
  490. package/src/modules/orders/middlewares/applications.verifier.js +189 -0
  491. package/src/modules/orders/middlewares/customers.verifier.js +251 -0
  492. package/src/modules/orders/models/application.model.js +21 -0
  493. package/src/modules/orders/models/customer.model.js +26 -0
  494. package/src/modules/orders/orders.client.js +86 -1
  495. package/src/modules/orders/orders.server.js +3 -1
  496. package/src/modules/orders/router/applications.router.js +15 -0
  497. package/src/modules/orders/router/customers.router.js +17 -0
  498. package/src/modules/orders/routes/applications.routes.js +124 -12
  499. package/src/modules/orders/routes/customers.routes.js +43 -0
  500. package/src/modules/orders/store/applications.js +3 -159
  501. package/src/modules/orders/store/models/application.js +18 -0
  502. package/src/modules/orders/store/models/customer.js +12 -0
  503. package/src/modules/organizations/components/pages/Organization.new.vue +593 -0
  504. package/src/modules/organizations/components/pages/Organization.vue +155 -206
  505. package/src/modules/organizations/configs/navigation.organization.config.js +69 -85
  506. package/src/modules/organizations/organizations.client.js +0 -3
  507. package/src/modules/organizations/router/organizations.js +5 -0
  508. package/src/modules/pages/views/components/pages/Page.vue +1 -1
  509. package/src/modules/products/TASKS.MD +157 -0
  510. package/src/modules/products/components/blocks/CardCategory.vue +1 -1
  511. package/src/modules/products/components/blocks/ProductImages.vue +1 -1
  512. package/src/modules/products/components/pages/Categories.vue +27 -22
  513. package/src/modules/products/components/pages/CategoryEdit.vue +24 -13
  514. package/src/modules/products/components/pages/Products.vue +418 -173
  515. package/src/modules/products/components/sections/ProductsRecommended.vue +46 -2
  516. package/src/modules/products/controllers/categories.controller.js +321 -282
  517. package/src/modules/products/controllers/configs/products.lookup.config.js +9 -0
  518. package/src/modules/products/controllers/products.controller.js +2 -1
  519. package/src/modules/products/controllers/queries/products.queries.js +183 -11
  520. package/src/modules/products/middlewares/categories.verifier.js +58 -15
  521. package/src/modules/products/migrations/categories-to-materialized-path.js +433 -0
  522. package/src/modules/products/migrations/path-to-url.js +27 -0
  523. package/src/modules/products/models/category.model.js +8 -23
  524. package/src/modules/products/router/products.router.js +12 -0
  525. package/src/modules/products/store/categories.js +26 -7
  526. package/src/modules/rents/TASK.MD +161 -0
  527. package/src/modules/spots/components/pages/Spots.vue +342 -0
  528. package/src/modules/spots/router/spots.js +15 -0
  529. package/src/styles/base/all.scss +2 -3
  530. package/src/styles/layout.scss +16 -0
  531. package/dist/main-w3rPUBVh.cjs +0 -11
  532. package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.cjs +0 -96
  533. package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.cjs.map +0 -1
  534. package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.js +0 -96
  535. package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.js.map +0 -1
  536. package/dist/martyrs/src/components/Loader/Loader.vue.js.map +0 -1
  537. package/dist/martyrs/src/components/Spoiler/Spoiler.vue.js.map +0 -1
  538. package/dist/martyrs/src/components/Tab/Tab.vue.js.map +0 -1
  539. package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +0 -155
  540. package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs.map +0 -1
  541. package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js +0 -155
  542. package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js.map +0 -1
  543. package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +0 -81
  544. package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs.map +0 -1
  545. package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.js +0 -81
  546. package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.js.map +0 -1
  547. package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +0 -146
  548. package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs.map +0 -1
  549. package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js +0 -146
  550. package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js.map +0 -1
  551. package/src/modules/globals/views/components/partials/FooterAlt.vue +0 -363
  552. package/src/modules/orders/components/sections/FormAddCustomer.vue +0 -152
  553. package/src/modules/orders/components/sections/FormCustomerDetails.vue +0 -67
  554. package/src/modules/orders/controllers/applications.controller.js +0 -122
  555. package/src/modules/organizations/components/sections/DetailsTabSection.vue +0 -190
@@ -0,0 +1,433 @@
1
+ /**
2
+ * Миграция категорий на Materialized Path Pattern
3
+ *
4
+ * Этот скрипт переводит существующие категории с adjacency list на materialized path:
5
+ * - Добавляет поля: slug, url, path, level
6
+ * - Переносит старое поле url в новую структуру
7
+ * - Пересчитывает структуру дерева
8
+ * - Обновляет индексы
9
+ */
10
+
11
+ import mongoose from 'mongoose';
12
+
13
+ // Подключение к базе данных
14
+ const DB_ADDRESS = process.env.DB_ADDRESS || 'mongodb://localhost:27017/martyrs';
15
+
16
+ console.log('🔗 Подключаемся к базе данных:', DB_ADDRESS);
17
+
18
+ try {
19
+ await mongoose.connect(DB_ADDRESS);
20
+ console.log('✅ Подключение к MongoDB установлено');
21
+ } catch (error) {
22
+ console.error('❌ Ошибка подключения к базе данных:', error);
23
+ process.exit(1);
24
+ }
25
+
26
+ // Функция для генерации slug из имени
27
+ const generateSlug = (name, existingSlugs = []) => {
28
+ let baseSlug = name
29
+ .toLowerCase()
30
+ .replace(/[^a-z0-9\s-]/g, '')
31
+ .replace(/\s+/g, '-')
32
+ .replace(/-+/g, '-')
33
+ .trim('-');
34
+
35
+ let slug = baseSlug;
36
+ let counter = 1;
37
+
38
+ while (existingSlugs.includes(slug)) {
39
+ slug = `${baseSlug}-${counter}`;
40
+ counter++;
41
+ }
42
+
43
+ return slug;
44
+ };
45
+
46
+ // Функция для построения url
47
+ const buildUrl = (parentPath, slug) => {
48
+ return parentPath ? `${parentPath}/${slug}` : `/${slug}`;
49
+ };
50
+
51
+ // Основная функция миграции
52
+ const migrateCategoriesToMaterializedPath = async (db, testMode = false) => {
53
+ console.log('🚀 Начинаем миграцию категорий на Materialized Path Pattern...');
54
+
55
+ if (testMode) {
56
+ console.log('⚠️ ТЕСТОВЫЙ РЕЖИМ - данные НЕ будут изменены');
57
+ }
58
+
59
+ const Category = db.collection('categories');
60
+
61
+ try {
62
+ // Шаг 1: Удаляем проблемные индексы сначала
63
+ console.log('🗑️ Шаг 1: Удаляем старые индексы...');
64
+
65
+ if (!testMode) {
66
+ try {
67
+ await Category.dropIndex({ url: 1 });
68
+ console.log(' ✅ Удален индекс url_1');
69
+ } catch (error) {
70
+ console.log(' ℹ️ Индекс url_1 не найден (это нормально)');
71
+ }
72
+ } else {
73
+ console.log(' [ТЕСТ] Удалили бы индекс url_1');
74
+ }
75
+
76
+ // Шаг 2: Добавляем новые поля во все документы
77
+ console.log('📝 Шаг 2: Добавляем новые поля...');
78
+
79
+ if (!testMode) {
80
+ await Category.updateMany(
81
+ {},
82
+ {
83
+ $set: {
84
+ slug: '',
85
+ url: '',
86
+ path: [],
87
+ level: 0
88
+ }
89
+ }
90
+ );
91
+ } else {
92
+ console.log(' [ТЕСТ] Обновили бы поля у всех категорий');
93
+ }
94
+
95
+ // Шаг 3: Получаем все категории и строим карту
96
+ console.log('📊 Шаг 3: Загружаем все категории...');
97
+
98
+ const allCategories = await Category.find({}).toArray();
99
+ const categoryMap = new Map();
100
+
101
+ // Создаем карту категорий для быстрого доступа
102
+ allCategories.forEach(cat => {
103
+ categoryMap.set(cat._id.toString(), cat);
104
+ });
105
+
106
+ // Шаг 3: Функция для рекурсивного обновления категории и её потомков
107
+ const updateCategoryPath = async (categoryId, parentPath = '', level = 0, ancestors = []) => {
108
+ const category = categoryMap.get(categoryId.toString());
109
+ if (!category) return;
110
+
111
+ console.log(` Обрабатываем: ${category.name} (level: ${level})`);
112
+
113
+ // Получаем существующие slug на том же уровне (в рамках того же parent)
114
+ const siblings = allCategories.filter(cat =>
115
+ cat.parent?.toString() === category.parent?.toString()
116
+ );
117
+ const existingSlugs = siblings
118
+ .filter(cat => cat._id.toString() !== categoryId.toString())
119
+ .map(cat => cat.slug || generateSlug(cat.name));
120
+
121
+ // Генерируем slug если его нет или если он из старого поля url
122
+ let slug = category.slug;
123
+ if (!slug || slug === category.url) {
124
+ slug = generateSlug(category.name, existingSlugs);
125
+ }
126
+
127
+ // Строим url
128
+ const url = buildUrl(parentPath, slug);
129
+
130
+ // Обновляем категорию
131
+ if (!testMode) {
132
+ const updateResult = await Category.updateOne(
133
+ { _id: category._id },
134
+ {
135
+ $set: {
136
+ slug: slug,
137
+ url: url,
138
+ path: ancestors,
139
+ level: level
140
+ },
141
+ $unset: {
142
+ url: "" // Удаляем старое поле url
143
+ }
144
+ }
145
+ );
146
+
147
+ if (updateResult.modifiedCount === 0) {
148
+ console.warn(` ⚠️ Не удалось обновить категорию: ${category.name}`);
149
+ }
150
+ } else {
151
+ console.log(` [ТЕСТ] Обновили бы ${category.name}: slug="${slug}", url="${url}", level=${level}`);
152
+ }
153
+
154
+ // Обновляем карту
155
+ categoryMap.set(categoryId.toString(), {
156
+ ...category,
157
+ slug,
158
+ url,
159
+ path: ancestors,
160
+ level
161
+ });
162
+
163
+ // Рекурсивно обновляем дочерние категории
164
+ const children = allCategories.filter(cat =>
165
+ cat.parent?.toString() === categoryId.toString()
166
+ );
167
+
168
+ for (const child of children) {
169
+ await updateCategoryPath(
170
+ child._id,
171
+ url,
172
+ level + 1,
173
+ [...ancestors, category._id]
174
+ );
175
+ }
176
+ };
177
+
178
+ // Шаг 4: Начинаем с корневых категорий
179
+ console.log('🌳 Шаг 4: Обрабатываем дерево категорий...');
180
+
181
+ const rootCategories = allCategories.filter(cat => !cat.parent);
182
+ console.log(` Найдено ${rootCategories.length} корневых категорий`);
183
+
184
+ for (const rootCategory of rootCategories) {
185
+ await updateCategoryPath(rootCategory._id);
186
+ }
187
+
188
+ // Шаг 5: Проверяем и исправляем возможные проблемы
189
+ console.log('🔍 Шаг 5: Проверяем результаты миграции...');
190
+
191
+ // Проверяем, что у всех категорий есть новые поля
192
+ const categoriesWithoutSlug = await Category.countDocuments({
193
+ $or: [
194
+ { slug: { $exists: false } },
195
+ { slug: '' }
196
+ ]
197
+ });
198
+
199
+ const categoriesWithoutFullPath = await Category.countDocuments({
200
+ $or: [
201
+ { url: { $exists: false } },
202
+ { url: '' }
203
+ ]
204
+ });
205
+
206
+ if (categoriesWithoutSlug > 0) {
207
+ console.warn(` ⚠️ ${categoriesWithoutSlug} категорий без slug`);
208
+ }
209
+
210
+ if (categoriesWithoutFullPath > 0) {
211
+ console.warn(` ⚠️ ${categoriesWithoutFullPath} категорий без url`);
212
+ }
213
+
214
+ // Проверяем дубликаты url
215
+ const duplicateFullPaths = await Category.aggregate([
216
+ { $group: { _id: '$url', count: { $sum: 1 } } },
217
+ { $match: { count: { $gt: 1 } } }
218
+ ]).toArray();
219
+
220
+ if (duplicateFullPaths.length > 0) {
221
+ console.warn(` ⚠️ Найдено ${duplicateFullPaths.length} дубликатов url:`);
222
+ duplicateFullPaths.forEach(dup => {
223
+ console.warn(` - ${dup._id} (${dup.count} раз)`);
224
+ });
225
+ }
226
+
227
+ // Шаг 6: Создаем новые индексы
228
+ console.log('📚 Шаг 6: Создаем новые индексы...');
229
+
230
+ if (!testMode) {
231
+ try {
232
+ // Удаляем существующие индексы которые могут конфликтовать
233
+ const existingIndexesToDrop = ['url_1', 'path_1', 'parent_1_slug_1'];
234
+
235
+ for (const indexName of existingIndexesToDrop) {
236
+ try {
237
+ await Category.dropIndex(indexName);
238
+ console.log(` ✅ Удален существующий индекс: ${indexName}`);
239
+ } catch (error) {
240
+ // Индекс не существует - это нормально
241
+ }
242
+ }
243
+
244
+ // Создаем новые индексы
245
+ await Category.createIndex({ parent: 1, slug: 1 }, { unique: true });
246
+ console.log(' ✅ Создан индекс: parent_1_slug_1 (unique)');
247
+
248
+ await Category.createIndex({ path: 1 });
249
+ console.log(' ✅ Создан индекс: path_1');
250
+
251
+ await Category.createIndex({ url: 1 }, { unique: true });
252
+ console.log(' ✅ Создан индекс: url_1 (unique)');
253
+
254
+ await Category.createIndex({ level: 1, status: 1, order: 1 });
255
+ console.log(' ✅ Создан индекс: level_1_status_1_order_1');
256
+
257
+ await Category.createIndex({ 'owner.type': 1, 'owner.target': 1, status: 1, level: 1 });
258
+ console.log(' ✅ Создан индекс: owner.type_1_owner.target_1_status_1_level_1');
259
+
260
+ console.log(' ✅ Все новые индексы созданы');
261
+ } catch (error) {
262
+ console.warn(` ⚠️ Ошибка при создании индексов: ${error.message}`);
263
+ }
264
+ } else {
265
+ console.log(' [ТЕСТ] Удалили бы существующие конфликтующие индексы и создали новые');
266
+ }
267
+
268
+ // Шаг 7: Финальная статистика
269
+ console.log('📈 Шаг 7: Финальная статистика...');
270
+
271
+ const totalCategories = await Category.countDocuments();
272
+ const categoriesByLevel = await Category.aggregate([
273
+ { $group: { _id: '$level', count: { $sum: 1 } } },
274
+ { $sort: { _id: 1 } }
275
+ ]).toArray();
276
+
277
+ console.log(` Всего категорий: ${totalCategories}`);
278
+ console.log(' Распределение по уровням:');
279
+ categoriesByLevel.forEach(level => {
280
+ console.log(` Уровень ${level._id}: ${level.count} категорий`);
281
+ });
282
+
283
+ if (testMode) {
284
+ console.log('✅ Тестирование завершено успешно! База данных НЕ изменена.');
285
+ } else {
286
+ console.log('✅ Миграция завершена успешно!');
287
+ }
288
+
289
+ return {
290
+ success: true,
291
+ totalCategories,
292
+ categoriesByLevel,
293
+ issues: {
294
+ categoriesWithoutSlug,
295
+ categoriesWithoutFullPath,
296
+ duplicateFullPaths: duplicateFullPaths.length
297
+ }
298
+ };
299
+
300
+ } catch (error) {
301
+ console.error('❌ Ошибка во время миграции:', error);
302
+ throw error;
303
+ }
304
+ };
305
+
306
+ // Функция отката миграции
307
+ const rollbackMigration = async (db) => {
308
+ console.log('🔄 Начинаем откат миграции...');
309
+
310
+ const Category = db.collection('categories');
311
+
312
+ try {
313
+ // Оставляем только новую структуру с url
314
+ const categories = await Category.find({}).toArray();
315
+
316
+ for (const category of categories) {
317
+ if (category.url) {
318
+ await Category.updateOne(
319
+ { _id: category._id },
320
+ {
321
+ $unset: {
322
+ slug: "",
323
+ path: "",
324
+ level: ""
325
+ }
326
+ }
327
+ );
328
+ }
329
+ }
330
+
331
+ // Восстанавливаем старые индексы
332
+ await Category.createIndex({ url: 1 }, { unique: true });
333
+
334
+ // Удаляем новые индексы
335
+ await Category.dropIndex({ parent: 1, slug: 1 }).catch(() => {});
336
+ await Category.dropIndex({ path: 1 }).catch(() => {});
337
+ await Category.dropIndex({ url: 1 }).catch(() => {});
338
+ await Category.dropIndex({ level: 1, status: 1, order: 1 }).catch(() => {});
339
+ await Category.dropIndex({ 'owner.type': 1, 'owner.target': 1, status: 1, level: 1 }).catch(() => {});
340
+
341
+ console.log('✅ Откат миграции завершен');
342
+
343
+ } catch (error) {
344
+ console.error('❌ Ошибка при откате:', error);
345
+ throw error;
346
+ }
347
+ };
348
+
349
+ // CLI интерфейс
350
+ const runMigration = async () => {
351
+ const args = process.argv.slice(2);
352
+ const command = args[0];
353
+ const testMode = args.includes('--test');
354
+
355
+ try {
356
+ const db = mongoose.connection.db;
357
+
358
+ if (command === 'rollback') {
359
+ if (testMode) {
360
+ console.log('❌ Тестовый режим не поддерживается для отката');
361
+ process.exit(1);
362
+ }
363
+ await rollbackMigration(db);
364
+ } else {
365
+ const result = await migrateCategoriesToMaterializedPath(db, testMode);
366
+
367
+ if (!testMode && (result.issues.categoriesWithoutSlug > 0 ||
368
+ result.issues.categoriesWithoutFullPath > 0 ||
369
+ result.issues.duplicateFullPaths > 0)) {
370
+ console.log('\n⚠️ Обнаружены проблемы. Рекомендуется проверить данные вручную.');
371
+ process.exit(1);
372
+ }
373
+ }
374
+
375
+ } catch (error) {
376
+ console.error('💥 Критическая ошибка:', error);
377
+ process.exit(1);
378
+ } finally {
379
+ await mongoose.disconnect();
380
+ console.log('🔌 Отключено от MongoDB');
381
+ }
382
+ };
383
+
384
+ // Экспорт для использования в других скриптах
385
+ export { migrateCategoriesToMaterializedPath, rollbackMigration };
386
+
387
+ // Запуск из командной строки
388
+ if (process.argv[1] === new URL(import.meta.url).pathname) {
389
+ runMigration();
390
+ }
391
+
392
+ /*
393
+ Использование:
394
+
395
+ 1. Тестовый режим (показывает что будет сделано, НЕ меняет базу):
396
+ DB_ADDRESS="mongodb://localhost:27017/martyrs" node categories-to-materialized-path.js --test
397
+
398
+ 2. Обычная миграция:
399
+ DB_ADDRESS="mongodb://localhost:27017/martyrs" node categories-to-materialized-path.js
400
+
401
+ 3. Откат миграции:
402
+ DB_ADDRESS="mongodb://localhost:27017/martyrs" node categories-to-materialized-path.js rollback
403
+
404
+ 4. Перед запуском убедитесь что:
405
+ - Есть резервная копия базы данных
406
+ - Настроена переменная окружения MONGO_URL
407
+ - Установлены зависимости: npm install mongoose
408
+
409
+ 4. После миграции проверьте:
410
+ - Что все категории имеют правильные slug и url
411
+ - Что нет дубликатов url
412
+ - Что структура дерева сохранилась
413
+ - Что фронтенд работает корректно
414
+
415
+ Пример вывода:
416
+ 🚀 Начинаем миграцию категорий на Materialized Path Pattern...
417
+ 📝 Шаг 1: Добавляем новые поля...
418
+ 📊 Шаг 2: Загружаем все категории...
419
+ 🌳 Шаг 3: Обрабатываем дерево категорий...
420
+ Найдено 5 корневых категорий
421
+ Обрабатываем: Electronics (level: 0)
422
+ Обрабатываем: Phones (level: 1)
423
+ Обрабатываем: Smartphones (level: 2)
424
+ ...
425
+ 📈 Шаг 6: Финальная статистика...
426
+ Всего категорий: 150
427
+ Распределение по уровням:
428
+ Уровень 0: 5 категорий
429
+ Уровень 1: 25 категорий
430
+ Уровень 2: 80 категорий
431
+ Уровень 3: 40 категорий
432
+ ✅ Миграция завершена успешно!
433
+ */
@@ -0,0 +1,27 @@
1
+ // renameFullPathToUrl.mjs
2
+ import { MongoClient } from 'mongodb';
3
+
4
+ const uri = process.env.DB_ADDRESS; // экспортируйте DB_ADDRESS перед запуском
5
+ if (!uri) {
6
+ console.error('DB_ADDRESS env var is required');
7
+ process.exit(1);
8
+ }
9
+
10
+ const client = new MongoClient(uri, { useUnifiedTopology: true });
11
+
12
+ try {
13
+ await client.connect();
14
+ const db = client.db(); // название БД берётся из URI
15
+ const categories = db.collection('categories');
16
+
17
+ const result = await categories.updateMany(
18
+ { fullPath: { $exists: true } }, // обновляем только если поле есть
19
+ { $rename: { fullPath: 'url' } } // переименовываем fullPath → url
20
+ );
21
+
22
+ console.log(`updated ${result.modifiedCount} / ${result.matchedCount} documents`);
23
+ } catch (err) {
24
+ console.error('update failed:', err);
25
+ } finally {
26
+ await client.close();
27
+ }
@@ -10,8 +10,10 @@ export default db => {
10
10
  description: { type: String, trim: true },
11
11
  photo: { type: String },
12
12
  order: { type: Number, required: true },
13
+ slug: { type: String, required: true, trim: true },
13
14
  url: { type: String, required: true, trim: true, unique: true },
14
15
  parent: { type: db.mongoose.Schema.Types.ObjectId, ref: 'Category' },
16
+ level: { type: Number, required: true, default: 0 },
15
17
  localization: { type: Array },
16
18
  filters: { type: Array },
17
19
  },
@@ -25,33 +27,16 @@ export default db => {
25
27
  metadata(CategorySchema, db);
26
28
  engagement(CategorySchema, db);
27
29
 
28
-
29
30
  // Текстовый индекс для поиска
30
- CategorySchema.index({ name: 1 });
31
31
  CategorySchema.index({ name: 'text', description: 'text' });
32
-
33
- // Основные составные индексы (покрывают префиксные запросы)
34
- CategorySchema.index({ 'owner.type': 1, 'owner.target': 1, status: 1, parent: 1 });
35
- CategorySchema.index({ 'owner.type': 1, 'owner.target': 1, order: 1 });
32
+ // Основные индексы для фильтрации
33
+
34
+ CategorySchema.index({ url: 1, 'owner.target': 1, status: 1, level: 1 });
35
+ CategorySchema.index({ 'owner.type': 1, 'owner.target': 1, status: 1, level: 1 });
36
36
  CategorySchema.index({ parent: 1, status: 1, order: 1 });
37
- CategorySchema.index({ parent: 1, status: 1, 'owner.type': 1 });
38
- CategorySchema.index({ parent: 1, name: 1 });
39
- CategorySchema.index({ parent: 1, createdAt: -1 });
40
- CategorySchema.index({ parent: 1, updatedAt: -1 });
41
-
42
- // Индексы для сортировки без parent
37
+ CategorySchema.index({ level: 1, status: 1, order: 1 });
38
+ // url уже имеет unique индекс, дополнительный не нужен
43
39
  CategorySchema.index({ status: 1, order: 1 });
44
- CategorySchema.index({ status: 1, name: 1 });
45
- CategorySchema.index({ status: 1, createdAt: -1 });
46
- CategorySchema.index({ status: 1, updatedAt: -1 });
47
-
48
- // Специальный индекс для graphLookup
49
- CategorySchema.index({ _id: 1, parent: 1 });
50
-
51
- // Отдельные индексы для полей без префиксов в составных
52
- CategorySchema.index({ order: 1 });
53
- CategorySchema.index({ createdAt: -1 });
54
- CategorySchema.index({ updatedAt: -1 });
55
40
 
56
41
  const Category = db.mongoose.model('Category', CategorySchema, 'categories');
57
42
  return Category;
@@ -18,6 +18,18 @@ export function createProductRoutes(prefix = '', options = {}) {
18
18
  },
19
19
  component: () => import(/* webpackChunkName: 'Products' */ '@martyrs/src/modules/products/components/pages/Products.vue'),
20
20
  },
21
+ {
22
+ path: 'categories/:categoryPath(.*)',
23
+ name: nameWithPrefix('ProductsCategory'),
24
+ meta: {
25
+ title: {
26
+ en: 'Products',
27
+ ru: 'Товары',
28
+ },
29
+ authorize: options.productsAuthorize || [],
30
+ },
31
+ component: () => import(/* webpackChunkName: 'Products' */ '@martyrs/src/modules/products/components/pages/Products.vue'),
32
+ },
21
33
  {
22
34
  path: 'add',
23
35
  name: nameWithPrefix('ProductAdd'),
@@ -14,16 +14,18 @@ const state = reactive({
14
14
  },
15
15
  current: {
16
16
  order: 1,
17
- photo: null,
17
+ photo: '',
18
18
  name: '',
19
+ slug: '',
19
20
  url: '',
21
+ level: 0,
20
22
  status: 'draft',
21
23
  creator: null,
22
24
  owner: null,
23
25
  parent: null,
24
26
  children: [],
25
27
  filters: [],
26
- localization: [],
28
+ translations: [],
27
29
  },
28
30
  });
29
31
 
@@ -33,7 +35,7 @@ const actions = {
33
35
  try {
34
36
  const response = await $axios.get('/api/categories', { params: options });
35
37
 
36
- if (options.url) {
38
+ if (options._id) {
37
39
  state.current = { ...response.data[0] };
38
40
  return Promise.resolve(response.data[0]);
39
41
  } else {
@@ -80,10 +82,22 @@ const actions = {
80
82
  }
81
83
  },
82
84
 
83
- async delete(url) {
85
+ async delete(id) {
84
86
  try {
85
- await $axios.post('/api/categories/delete', { url });
86
- state.all = state.all.filter(c => c.url !== url);
87
+ await $axios.post('/api/categories/delete', { _id: id });
88
+ // Рекурсивная функция для удаления категории и её детей из дерева
89
+ function removeFromTree(items) {
90
+ return items.filter(item => {
91
+ if (item._id === id) {
92
+ return false;
93
+ }
94
+ if (item.children && item.children.length > 0) {
95
+ item.children = removeFromTree(item.children);
96
+ }
97
+ return true;
98
+ });
99
+ }
100
+ state.all = removeFromTree(state.all);
87
101
  return Promise.resolve();
88
102
  } catch (error) {
89
103
  setError(error);
@@ -94,13 +108,18 @@ const actions = {
94
108
  clean() {
95
109
  state.current = {
96
110
  order: 1,
111
+ photo: '',
97
112
  name: '',
113
+ slug: '',
98
114
  url: '',
115
+ level: 0,
99
116
  status: 'draft',
117
+ creator: null,
118
+ owner: null,
100
119
  parent: null,
101
120
  children: [],
102
121
  filters: [],
103
- localization: [],
122
+ translations: [],
104
123
  };
105
124
  },
106
125
  };