@ozdao/martyrs 0.2.475 → 0.2.476

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 (524) hide show
  1. package/dist/{Media-sGk7Bp9b.mjs → Media-CecrG6g6.mjs} +1 -1
  2. package/dist/{Media-_vz04tII.js → Media-DmnrxIEI.js} +1 -1
  3. package/dist/_virtual/alignment-pattern.cjs +5 -0
  4. package/dist/_virtual/alignment-pattern.cjs.map +1 -0
  5. package/dist/_virtual/alignment-pattern.js +5 -0
  6. package/dist/_virtual/alignment-pattern.js.map +1 -0
  7. package/dist/_virtual/browser.cjs +8 -0
  8. package/dist/_virtual/browser.cjs.map +1 -0
  9. package/dist/_virtual/browser.js +8 -0
  10. package/dist/_virtual/browser.js.map +1 -0
  11. package/dist/_virtual/browser2.cjs +5 -0
  12. package/dist/_virtual/browser2.cjs.map +1 -0
  13. package/dist/_virtual/browser2.js +5 -0
  14. package/dist/_virtual/browser2.js.map +1 -0
  15. package/dist/_virtual/canvas.cjs +5 -0
  16. package/dist/_virtual/canvas.cjs.map +1 -0
  17. package/dist/_virtual/canvas.js +5 -0
  18. package/dist/_virtual/canvas.js.map +1 -0
  19. package/dist/_virtual/dijkstra.cjs +5 -0
  20. package/dist/_virtual/dijkstra.cjs.map +1 -0
  21. package/dist/_virtual/dijkstra.js +5 -0
  22. package/dist/_virtual/dijkstra.js.map +1 -0
  23. package/dist/_virtual/error-correction-code.cjs +5 -0
  24. package/dist/_virtual/error-correction-code.cjs.map +1 -0
  25. package/dist/_virtual/error-correction-code.js +5 -0
  26. package/dist/_virtual/error-correction-code.js.map +1 -0
  27. package/dist/_virtual/error-correction-level.cjs +5 -0
  28. package/dist/_virtual/error-correction-level.cjs.map +1 -0
  29. package/dist/_virtual/error-correction-level.js +5 -0
  30. package/dist/_virtual/error-correction-level.js.map +1 -0
  31. package/dist/_virtual/finder-pattern.cjs +5 -0
  32. package/dist/_virtual/finder-pattern.cjs.map +1 -0
  33. package/dist/_virtual/finder-pattern.js +5 -0
  34. package/dist/_virtual/finder-pattern.js.map +1 -0
  35. package/dist/_virtual/format-info.cjs +5 -0
  36. package/dist/_virtual/format-info.cjs.map +1 -0
  37. package/dist/_virtual/format-info.js +5 -0
  38. package/dist/_virtual/format-info.js.map +1 -0
  39. package/dist/_virtual/galois-field.cjs +5 -0
  40. package/dist/_virtual/galois-field.cjs.map +1 -0
  41. package/dist/_virtual/galois-field.js +5 -0
  42. package/dist/_virtual/galois-field.js.map +1 -0
  43. package/dist/_virtual/mask-pattern.cjs +5 -0
  44. package/dist/_virtual/mask-pattern.cjs.map +1 -0
  45. package/dist/_virtual/mask-pattern.js +5 -0
  46. package/dist/_virtual/mask-pattern.js.map +1 -0
  47. package/dist/_virtual/mode.cjs +5 -0
  48. package/dist/_virtual/mode.cjs.map +1 -0
  49. package/dist/_virtual/mode.js +5 -0
  50. package/dist/_virtual/mode.js.map +1 -0
  51. package/dist/_virtual/polynomial.cjs +5 -0
  52. package/dist/_virtual/polynomial.cjs.map +1 -0
  53. package/dist/_virtual/polynomial.js +5 -0
  54. package/dist/_virtual/polynomial.js.map +1 -0
  55. package/dist/_virtual/qrcode.cjs +5 -0
  56. package/dist/_virtual/qrcode.cjs.map +1 -0
  57. package/dist/_virtual/qrcode.js +5 -0
  58. package/dist/_virtual/qrcode.js.map +1 -0
  59. package/dist/_virtual/regex.cjs +5 -0
  60. package/dist/_virtual/regex.cjs.map +1 -0
  61. package/dist/_virtual/regex.js +5 -0
  62. package/dist/_virtual/regex.js.map +1 -0
  63. package/dist/_virtual/segments.cjs +5 -0
  64. package/dist/_virtual/segments.cjs.map +1 -0
  65. package/dist/_virtual/segments.js +5 -0
  66. package/dist/_virtual/segments.js.map +1 -0
  67. package/dist/_virtual/svg-tag.cjs +5 -0
  68. package/dist/_virtual/svg-tag.cjs.map +1 -0
  69. package/dist/_virtual/svg-tag.js +5 -0
  70. package/dist/_virtual/svg-tag.js.map +1 -0
  71. package/dist/_virtual/utils.cjs +5 -0
  72. package/dist/_virtual/utils.cjs.map +1 -0
  73. package/dist/_virtual/utils.js +5 -0
  74. package/dist/_virtual/utils.js.map +1 -0
  75. package/dist/_virtual/utils2.cjs +5 -0
  76. package/dist/_virtual/utils2.cjs.map +1 -0
  77. package/dist/_virtual/utils2.js +5 -0
  78. package/dist/_virtual/utils2.js.map +1 -0
  79. package/dist/_virtual/version-check.cjs +5 -0
  80. package/dist/_virtual/version-check.cjs.map +1 -0
  81. package/dist/_virtual/version-check.js +5 -0
  82. package/dist/_virtual/version-check.js.map +1 -0
  83. package/dist/_virtual/version.cjs +5 -0
  84. package/dist/_virtual/version.cjs.map +1 -0
  85. package/dist/_virtual/version.js +5 -0
  86. package/dist/_virtual/version.js.map +1 -0
  87. package/dist/globals.server.js +263 -55
  88. package/dist/globals.server.mjs +263 -55
  89. package/dist/{main-CqMtW7Hq.mjs → main-DmznvhMM.mjs} +267 -266
  90. package/dist/main-DxWqDgs1.js +11 -0
  91. package/dist/martyrs/node_modules/.pnpm/bignumber.js@9.2.1/node_modules/bignumber.js/bignumber.cjs +1336 -0
  92. package/dist/martyrs/node_modules/.pnpm/bignumber.js@9.2.1/node_modules/bignumber.js/bignumber.cjs.map +1 -0
  93. package/dist/martyrs/node_modules/.pnpm/bignumber.js@9.2.1/node_modules/bignumber.js/bignumber.js +1336 -0
  94. package/dist/martyrs/node_modules/.pnpm/bignumber.js@9.2.1/node_modules/bignumber.js/bignumber.js.map +1 -0
  95. package/dist/martyrs/src/components/Block/Block.vue.cjs +1 -1
  96. package/dist/martyrs/src/components/Block/Block.vue.js +1 -1
  97. package/dist/martyrs/src/components/Button/{Button.vue2.cjs → Button.vue.cjs} +7 -5
  98. package/dist/martyrs/src/components/Button/{Button.vue2.js.map → Button.vue.cjs.map} +1 -1
  99. package/dist/martyrs/src/components/Button/{Button.vue2.js → Button.vue.js} +8 -6
  100. package/dist/martyrs/src/components/Button/Button.vue.js.map +1 -0
  101. package/dist/martyrs/src/components/Chips/{Chips.vue.cjs → Chips.vue2.cjs} +2 -2
  102. package/dist/martyrs/src/components/Chips/Chips.vue2.cjs.map +1 -0
  103. package/dist/martyrs/src/components/Chips/{Chips.vue.js → Chips.vue2.js} +2 -2
  104. package/dist/martyrs/src/components/Chips/Chips.vue2.js.map +1 -0
  105. package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs +93 -0
  106. package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs.map +1 -1
  107. package/dist/martyrs/src/components/EditImages/EditImages.vue.js +94 -1
  108. package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -1
  109. package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs +0 -93
  110. package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs.map +1 -1
  111. package/dist/martyrs/src/components/EditImages/EditImages.vue2.js +1 -94
  112. package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +1 -1
  113. package/dist/martyrs/src/components/EmptyState/EmptyState.vue.cjs +3 -3
  114. package/dist/martyrs/src/components/EmptyState/EmptyState.vue.js +3 -3
  115. package/dist/martyrs/src/components/Feed/Feed.vue.cjs +1 -1
  116. package/dist/martyrs/src/components/Feed/Feed.vue.js +1 -1
  117. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs +3 -2
  118. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs.map +1 -1
  119. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +3 -2
  120. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js.map +1 -1
  121. package/dist/martyrs/src/components/Loader/{Loader.vue.cjs → Loader.vue2.cjs} +2 -2
  122. package/dist/martyrs/src/components/Loader/Loader.vue2.cjs.map +1 -0
  123. package/dist/martyrs/src/components/Loader/{Loader.vue.js → Loader.vue2.js} +2 -2
  124. package/dist/martyrs/src/components/Loader/{Loader.vue.cjs.map → Loader.vue2.js.map} +1 -1
  125. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  126. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
  127. package/dist/martyrs/src/components/Menu/{Menu.vue.cjs → Menu.vue2.cjs} +2 -2
  128. package/dist/martyrs/src/components/Menu/Menu.vue2.cjs.map +1 -0
  129. package/dist/martyrs/src/components/Menu/{Menu.vue.js → Menu.vue2.js} +2 -2
  130. package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +1 -0
  131. package/dist/martyrs/src/components/Select/Select.vue.cjs +10 -12
  132. package/dist/martyrs/src/components/Select/Select.vue.cjs.map +1 -1
  133. package/dist/martyrs/src/components/Select/Select.vue.js +10 -12
  134. package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -1
  135. package/dist/martyrs/src/components/Slider/Slider.native.vue.cjs +1 -1
  136. package/dist/martyrs/src/components/Slider/Slider.native.vue.js +1 -1
  137. package/dist/martyrs/src/components/Tab/{Tab.vue2.cjs → Tab.vue.cjs} +2 -2
  138. package/dist/martyrs/src/components/Tab/{Tab.vue2.js.map → Tab.vue.cjs.map} +1 -1
  139. package/dist/martyrs/src/components/Tab/{Tab.vue2.js → Tab.vue.js} +2 -2
  140. package/dist/martyrs/src/components/Tab/Tab.vue.js.map +1 -0
  141. package/dist/martyrs/src/components/Tooltip/{Tooltip.vue.cjs → Tooltip.vue2.cjs} +2 -2
  142. package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.cjs.map +1 -0
  143. package/dist/martyrs/src/components/Tooltip/{Tooltip.vue.js → Tooltip.vue2.js} +2 -2
  144. package/dist/martyrs/src/components/Tooltip/{Tooltip.vue.cjs.map → Tooltip.vue2.js.map} +1 -1
  145. package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  146. package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  147. package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
  148. package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
  149. package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +2 -2
  150. package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +2 -2
  151. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +2 -2
  152. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +2 -2
  153. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +2 -2
  154. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +2 -2
  155. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +1 -1
  156. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +1 -1
  157. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +2 -2
  158. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +2 -2
  159. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +2 -2
  160. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +2 -2
  161. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +2 -2
  162. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +2 -2
  163. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +2 -2
  164. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +2 -2
  165. package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.cjs +1 -1
  166. package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +1 -1
  167. package/dist/martyrs/src/modules/auth/views/router/users.cjs +14 -0
  168. package/dist/martyrs/src/modules/auth/views/router/users.cjs.map +1 -1
  169. package/dist/martyrs/src/modules/auth/views/router/users.js +14 -0
  170. package/dist/martyrs/src/modules/auth/views/router/users.js.map +1 -1
  171. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.cjs +5 -5
  172. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.cjs.map +1 -1
  173. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +5 -5
  174. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js.map +1 -1
  175. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs +5 -5
  176. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs.map +1 -1
  177. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +5 -5
  178. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js.map +1 -1
  179. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +3 -3
  180. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +3 -3
  181. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +3 -3
  182. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs.map +1 -1
  183. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  184. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js.map +1 -1
  185. package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  186. package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  187. package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  188. package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  189. package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  190. package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  191. package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  192. package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  193. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +4 -4
  194. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs.map +1 -1
  195. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +4 -4
  196. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js.map +1 -1
  197. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  198. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  199. package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +2 -2
  200. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +2 -2
  201. package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
  202. package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
  203. package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.cjs +1 -1
  204. package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.js +1 -1
  205. package/dist/martyrs/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  206. package/dist/martyrs/src/modules/events/components/sections/Feed.vue.js +1 -1
  207. package/dist/martyrs/src/modules/events/components/sections/List.vue.cjs +1 -1
  208. package/dist/martyrs/src/modules/events/components/sections/List.vue.js +1 -1
  209. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
  210. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  211. package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.cjs +90 -2
  212. package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.cjs.map +1 -1
  213. package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.js +90 -2
  214. package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.js.map +1 -1
  215. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +4 -4
  216. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs.map +1 -1
  217. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +4 -4
  218. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js.map +1 -1
  219. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs +2 -2
  220. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +2 -2
  221. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -2
  222. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +2 -2
  223. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +2 -2
  224. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs.map +1 -1
  225. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +2 -2
  226. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js.map +1 -1
  227. package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.cjs +2 -2
  228. package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.cjs.map +1 -1
  229. package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.js +2 -2
  230. package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.js.map +1 -1
  231. package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
  232. package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
  233. package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
  234. package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
  235. package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.cjs +13 -16
  236. package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.cjs.map +1 -1
  237. package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.js +13 -16
  238. package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.js.map +1 -1
  239. package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.cjs +32 -35
  240. package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.cjs.map +1 -1
  241. package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js +32 -35
  242. package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js.map +1 -1
  243. package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs +2 -2
  244. package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs.map +1 -1
  245. package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js +2 -2
  246. package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js.map +1 -1
  247. package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.cjs +1 -1
  248. package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +1 -1
  249. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs +5 -3
  250. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs.map +1 -1
  251. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js +5 -3
  252. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js.map +1 -1
  253. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.cjs +1 -1
  254. package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js +1 -1
  255. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +2 -2
  256. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +2 -2
  257. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs +2 -2
  258. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs.map +1 -1
  259. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +2 -2
  260. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
  261. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
  262. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  263. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  264. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +1 -1
  265. package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  266. package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  267. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  268. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  269. package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  270. package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  271. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  272. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  273. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +3 -3
  274. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  275. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +3 -3
  276. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +3 -3
  277. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +2 -2
  278. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  279. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  280. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  281. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
  282. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  283. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  284. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  285. package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +1 -1
  286. package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js +1 -1
  287. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
  288. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  289. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  290. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  291. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +2 -2
  292. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  293. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
  294. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
  295. package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.cjs +2 -2
  296. package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +2 -2
  297. package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  298. package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  299. package/dist/martyrs/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  300. package/dist/martyrs/src/modules/products/components/blocks/Images360.vue.js +1 -1
  301. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  302. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +1 -1
  303. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
  304. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  305. package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  306. package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  307. package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +2 -2
  308. package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +2 -2
  309. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +3 -3
  310. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  311. package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  312. package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
  313. package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +1 -1
  314. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +1 -1
  315. package/dist/martyrs/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  316. package/dist/martyrs/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  317. package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  318. package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
  319. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +2 -2
  320. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +2 -2
  321. package/dist/martyrs/src/modules/rents/views/components/pages/GanttChart.vue.cjs +1 -1
  322. package/dist/martyrs/src/modules/rents/views/components/pages/GanttChart.vue.js +1 -1
  323. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.cjs +1 -1
  324. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +1 -1
  325. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  326. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  327. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  328. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  329. package/dist/martyrs/src/modules/spots/components/pages/Map.vue.cjs +1 -1
  330. package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +1 -1
  331. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +2 -3
  332. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs.map +1 -1
  333. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +2 -3
  334. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js.map +1 -1
  335. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +1 -1
  336. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +1 -1
  337. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.cjs +43 -0
  338. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.cjs.map +1 -0
  339. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.js +43 -0
  340. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.js.map +1 -0
  341. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +47 -0
  342. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs.map +1 -0
  343. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +47 -0
  344. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.js.map +1 -0
  345. package/dist/martyrs/src/modules/wallet/views/components/blocks/CashDeposit.vue.cjs +29 -0
  346. package/dist/martyrs/src/modules/wallet/views/components/blocks/CashDeposit.vue.cjs.map +1 -0
  347. package/dist/martyrs/src/modules/wallet/views/components/blocks/CashDeposit.vue.js +29 -0
  348. package/dist/martyrs/src/modules/wallet/views/components/blocks/CashDeposit.vue.js.map +1 -0
  349. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +89 -0
  350. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs.map +1 -0
  351. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +89 -0
  352. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js.map +1 -0
  353. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.cjs +135 -0
  354. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.cjs.map +1 -0
  355. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.js +135 -0
  356. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.js.map +1 -0
  357. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +242 -0
  358. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs.map +1 -0
  359. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +242 -0
  360. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js.map +1 -0
  361. package/dist/martyrs/src/modules/wallet/views/localization/wallet.json.cjs +9 -0
  362. package/dist/martyrs/src/modules/wallet/views/localization/wallet.json.cjs.map +1 -0
  363. package/dist/martyrs/src/modules/wallet/views/localization/wallet.json.js +9 -0
  364. package/dist/martyrs/src/modules/wallet/views/localization/wallet.json.js.map +1 -0
  365. package/dist/martyrs/src/modules/wallet/views/store/wallet.store.cjs +135 -0
  366. package/dist/martyrs/src/modules/wallet/views/store/wallet.store.cjs.map +1 -0
  367. package/dist/martyrs/src/modules/wallet/views/store/wallet.store.js +135 -0
  368. package/dist/martyrs/src/modules/wallet/views/store/wallet.store.js.map +1 -0
  369. package/dist/martyrs.cjs.js +1 -1
  370. package/dist/martyrs.css +1 -1
  371. package/dist/martyrs.es.js +1 -1
  372. package/dist/node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.cjs +106 -0
  373. package/dist/node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.cjs.map +1 -0
  374. package/dist/node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js +106 -0
  375. package/dist/node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js.map +1 -0
  376. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.cjs +79 -0
  377. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.cjs.map +1 -0
  378. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js +79 -0
  379. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js.map +1 -0
  380. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.cjs +14 -0
  381. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.cjs.map +1 -0
  382. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js +14 -0
  383. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js.map +1 -0
  384. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.cjs +43 -0
  385. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.cjs.map +1 -0
  386. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js +43 -0
  387. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js.map +1 -0
  388. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.cjs +85 -0
  389. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.cjs.map +1 -0
  390. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js +85 -0
  391. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js.map +1 -0
  392. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.cjs +40 -0
  393. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.cjs.map +1 -0
  394. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js +40 -0
  395. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js.map +1 -0
  396. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.cjs +34 -0
  397. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.cjs.map +1 -0
  398. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js +34 -0
  399. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js.map +1 -0
  400. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.cjs +36 -0
  401. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.cjs.map +1 -0
  402. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js +36 -0
  403. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js.map +1 -0
  404. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.cjs +367 -0
  405. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.cjs.map +1 -0
  406. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js +367 -0
  407. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js.map +1 -0
  408. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.cjs +52 -0
  409. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.cjs.map +1 -0
  410. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js +52 -0
  411. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js.map +1 -0
  412. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.cjs +25 -0
  413. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.cjs.map +1 -0
  414. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js +25 -0
  415. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js.map +1 -0
  416. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.cjs +24 -0
  417. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.cjs.map +1 -0
  418. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js +24 -0
  419. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js.map +1 -0
  420. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.cjs +38 -0
  421. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.cjs.map +1 -0
  422. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js +38 -0
  423. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js.map +1 -0
  424. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.cjs +46 -0
  425. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.cjs.map +1 -0
  426. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js +46 -0
  427. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js.map +1 -0
  428. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.cjs +149 -0
  429. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.cjs.map +1 -0
  430. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js +149 -0
  431. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js.map +1 -0
  432. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.cjs +90 -0
  433. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.cjs.map +1 -0
  434. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js +90 -0
  435. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js.map +1 -0
  436. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.cjs +41 -0
  437. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.cjs.map +1 -0
  438. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js +41 -0
  439. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js.map +1 -0
  440. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.cjs +44 -0
  441. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.cjs.map +1 -0
  442. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js +44 -0
  443. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js.map +1 -0
  444. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.cjs +279 -0
  445. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.cjs.map +1 -0
  446. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js +279 -0
  447. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js.map +1 -0
  448. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.cjs +38 -0
  449. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.cjs.map +1 -0
  450. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js +38 -0
  451. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js.map +1 -0
  452. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.cjs +33 -0
  453. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.cjs.map +1 -0
  454. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js +33 -0
  455. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js.map +1 -0
  456. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.cjs +201 -0
  457. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.cjs.map +1 -0
  458. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js +201 -0
  459. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js.map +1 -0
  460. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.cjs +84 -0
  461. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.cjs.map +1 -0
  462. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +84 -0
  463. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js.map +1 -0
  464. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.cjs +14 -0
  465. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.cjs.map +1 -0
  466. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js +14 -0
  467. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js.map +1 -0
  468. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.cjs +107 -0
  469. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.cjs.map +1 -0
  470. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js +107 -0
  471. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js.map +1 -0
  472. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.cjs +61 -0
  473. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.cjs.map +1 -0
  474. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js +61 -0
  475. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js.map +1 -0
  476. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.cjs +64 -0
  477. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.cjs.map +1 -0
  478. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js +64 -0
  479. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js.map +1 -0
  480. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.cjs +87 -0
  481. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.cjs.map +1 -0
  482. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +87 -0
  483. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js.map +1 -0
  484. package/dist/style.css +26 -21
  485. package/package.json +1 -1
  486. package/src/components/Button/Button.vue +1 -1
  487. package/src/components/EmptyState/EmptyState.vue +3 -3
  488. package/src/components/FieldBig/FieldBig.vue +2 -2
  489. package/src/components/Select/Select.vue +4 -7
  490. package/src/modules/auth/views/router/users.js +11 -11
  491. package/src/modules/community/components/blocks/CardBlogpost.vue +4 -4
  492. package/src/modules/community/components/layouts/Community.vue +5 -4
  493. package/src/modules/community/components/pages/CreateBlogPost.vue +2 -2
  494. package/src/modules/events/components/pages/EditEvent.vue +1 -1
  495. package/src/modules/globals/controllers/classes/globals.websocket.js +336 -71
  496. package/src/modules/globals/controllers/classes/globals.websocket.ws.js +124 -0
  497. package/src/modules/globals/views/classes/globals.websocket.js +121 -5
  498. package/src/modules/globals/views/classes/globals.websocket.ws.js +212 -0
  499. package/src/modules/globals/views/components/blocks/CardHeader.vue +2 -2
  500. package/src/modules/globals/views/components/partials/Header.vue +1 -1
  501. package/src/modules/globals/views/components/partials/Navigation.vue +1 -1
  502. package/src/modules/icons/entities/IconFile.vue +14 -0
  503. package/src/modules/icons/navigation/IconAttach.vue +14 -0
  504. package/src/modules/icons/navigation/IconDoubleCheck.vue +31 -0
  505. package/src/modules/icons/navigation/IconSend.vue +17 -0
  506. package/src/modules/landing/components/sections/SectionFeatures.vue +1 -1
  507. package/src/modules/landing/components/sections/SectionMobileApp.vue +4 -6
  508. package/src/modules/marketplace/views/components/layouts/Marketplace.vue +1 -3
  509. package/src/modules/notifications/components/elements/NotificationBadge.vue +4 -4
  510. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  511. package/src/modules/organizations/components/sections/Unit.vue +3 -3
  512. package/src/modules/spots/components/pages/SpotEdit.vue +0 -1
  513. package/src/modules/wallet/views/components/pages/Wallet.vue +10 -7
  514. package/src/styles/reset.scss +1 -1
  515. package/src/styles/typography.scss +16 -2
  516. package/dist/main-CsGkbSyK.js +0 -11
  517. package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +0 -1
  518. package/dist/martyrs/src/components/Chips/Chips.vue.cjs.map +0 -1
  519. package/dist/martyrs/src/components/Chips/Chips.vue.js.map +0 -1
  520. package/dist/martyrs/src/components/Loader/Loader.vue.js.map +0 -1
  521. package/dist/martyrs/src/components/Menu/Menu.vue.cjs.map +0 -1
  522. package/dist/martyrs/src/components/Menu/Menu.vue.js.map +0 -1
  523. package/dist/martyrs/src/components/Tab/Tab.vue2.cjs.map +0 -1
  524. package/dist/martyrs/src/components/Tooltip/Tooltip.vue.js.map +0 -1
@@ -3,7 +3,7 @@
3
3
  <section class="w-100 h-100 o-hidden flex-nowrap flex gap-thin mobile:pd-zero pd-thin pos-relative">
4
4
 
5
5
  <div style="flex: 1 1 auto" class="w-100 o-y-scroll h-100 pos-relative">
6
- <header v-if="!route.params.url && route.name !== 'Create BlogPost'" class="bg-light pd-medium radius-medium mobile:radius-zero o-x-scroll scroll-hide o-y-visible t-black pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex">
6
+ <header v-if="!route.params.url && route.name !== 'Create BlogPost'" class="bg-light pd-medium radius-medium mobile:radius-zero scroll-hide o-y-visible t-black pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex">
7
7
  <h2 class="pos-relative t-nowrap flex-v-center flex-nowrap flex">
8
8
  <span class="mn-r-thin">Posts for </span>
9
9
 
@@ -20,6 +20,7 @@
20
20
  radius-medium
21
21
  h2
22
22
  t-center
23
+ flex-column flex gap-medium
23
24
  "
24
25
  />
25
26
  </h2>
@@ -81,7 +82,7 @@
81
82
  </router-view>
82
83
  </div>
83
84
 
84
- <div style="flex: 1 1 auto" class="desktop-only o-y-scroll h-100 w-40 h-100 pos-relative ">
85
+ <div style="flex: 1 1 auto" class="desktop-only scroll-hide o-y-scroll h-100 w-40 h-100 pos-relative ">
85
86
  <div class="radius-medium bg-light mn-b-thin pd-small">
86
87
  <div class="gap-thin flex-nowrap flex">
87
88
  <p class="t-medium mn-b-small">Latest Comments</p>
@@ -103,8 +104,8 @@
103
104
  </div>
104
105
 
105
106
  <div class="radius-medium bg-light pd-small">
106
- <div class="gap-thin flex-nowrap flex">
107
- <p class="t-medium mn-b-small">Popular Communities</p>
107
+ <div class="gap-thin flex-nowrap flex mn-b-small">
108
+ <p class="text-box-trim-end t-medium">Popular Communities</p>
108
109
 
109
110
  <router-link
110
111
  v-if="auth.state.user._id"
@@ -51,14 +51,14 @@
51
51
  class="mn-b-small"
52
52
  />
53
53
 
54
- <h5 class="mn-b-thin">Add source:</h5>
54
+ <h5 class="mn-b-small">Add source:</h5>
55
55
  <Field
56
56
  v-model:field="post.source"
57
57
  placeholder="Add full link to the source"
58
58
  class="mn-b-medium bg-light radius-medium pd-small"
59
59
  />
60
60
 
61
- <h5 class="mn-b-thin">Add to public</h5>
61
+ <h5 class="mn-b-small">Add to public</h5>
62
62
  <Card
63
63
  v-if="selectedOrganization"
64
64
  :photo="selectedOrganization.profile?.photo"
@@ -98,7 +98,7 @@
98
98
  class="mn-b-small"
99
99
  />
100
100
 
101
- <h5 class="mn-b-thin">Add to public</h5>
101
+ <h5 class="mn-b-small">Add to public</h5>
102
102
  <Card
103
103
  v-if="selectedOrganization"
104
104
  :photo="selectedOrganization.profile?.photo"
@@ -1,68 +1,165 @@
1
- const { WebSocketServer } = require('ws');
1
+ const uWS = require('uWebSockets.js');
2
2
  const jwt = require('jsonwebtoken');
3
+ const cookie = require('cookie');
3
4
 
4
5
  class WebSocketManager {
5
- constructor(server) {
6
- this.wss = new WebSocketServer({
7
- server,
8
- verifyClient: this.verifyClient.bind(this)
9
- });
10
-
6
+ constructor() {
7
+ // Создаем uWebSockets.js приложение внутри класса
8
+ this.app = uWS.App();
11
9
  this.modules = new Map();
12
10
  this.userConnections = new Map();
13
-
14
- this.wss.on('connection', (ws, req) => {
15
- ws.userId = req.userId || null;
16
- ws.subscriptions = new Set();
17
-
18
- if (ws.userId) {
19
- this._trackUserConnection(ws.userId, ws);
20
- }
21
-
22
- ws.on('message', async (rawMessage) => {
11
+
12
+ // Добавляем контейнер для RPC методов
13
+ this.rpcMethods = new Map();
14
+
15
+ // Настраиваем WebSocket обработчик
16
+ this.app.ws('/api/ws', {
17
+ maxPayloadLength: 16 * 1024 * 1024,
18
+ idleTimeout: 120,
19
+ compression: uWS.SHARED_COMPRESSOR,
20
+ maxBackpressure: 1024 * 1024,
21
+
22
+ // Обработчик аутентификации и апгрейда соединения
23
+ upgrade: (res, req, context) => {
24
+ let userId = null;
25
+
26
+ // Получаем cookies и все необходимые заголовки из HTTP-запроса
27
+ const headers = {};
28
+ req.forEach((key, value) => {
29
+ headers[key.toLowerCase()] = value;
30
+ });
31
+
32
+ // Собираем заголовки для WebSocket-протокола один раз
33
+ const secWebSocketKey = headers['sec-websocket-key'] || '';
34
+ const secWebSocketProtocol = headers['sec-websocket-protocol'] || '';
35
+ const secWebSocketExtensions = headers['sec-websocket-extensions'] || '';
36
+
23
37
  try {
24
- const msg = JSON.parse(rawMessage);
25
-
26
- // обработка подписки на модуль
27
- if (msg.type === 'subscribe' && msg.module && this.modules.has(msg.module)) {
28
- ws.subscriptions.add(msg.module);
29
- return;
30
- }
31
-
32
- // нормальная маршрутизация
33
- const moduleName = msg.module;
34
- if (moduleName && this.modules.has(moduleName)) {
35
- const handler = this.modules.get(moduleName);
36
- await handler(ws, msg);
38
+ if (headers.cookie) {
39
+ const cookies = cookie.parse(headers.cookie);
40
+ if (cookies.user) {
41
+ const token = JSON.parse(decodeURIComponent(cookies.user));
42
+ const decoded = jwt.verify(token.accessToken, process.env.SECRET_KEY);
43
+ userId = decoded._id;
44
+ }
37
45
  }
38
46
  } catch (err) {
39
- console.error('Invalid message or handler error:', err);
47
+ console.error('Invalid token:', err);
40
48
  }
41
- });
42
-
43
- ws.on('close', () => {
44
- if (ws.userId && this.userConnections.has(ws.userId)) {
45
- this.userConnections.get(ws.userId).delete(ws);
46
- if (this.userConnections.get(ws.userId).size === 0) {
47
- this.userConnections.delete(ws.userId);
49
+
50
+ // Если авторизация требуется, но userId не найден - отклоняем соединение
51
+ if (process.env.REQUIRE_AUTH === 'true' && !userId) {
52
+ res.writeStatus('401 Unauthorized').end('Authentication required');
53
+ return;
54
+ }
55
+
56
+ const userData = { userId };
57
+
58
+ res.upgrade(
59
+ userData,
60
+ secWebSocketKey,
61
+ secWebSocketProtocol,
62
+ secWebSocketExtensions,
63
+ context
64
+ );
65
+ },
66
+
67
+ // Обработчик открытия соединения
68
+ open: (ws) => {
69
+ // Инициализация свойств клиента
70
+ ws.userId = ws.getUserData().userId;
71
+ ws.subscriptions = new Set();
72
+
73
+ // Отслеживаем соединение, если есть userId
74
+ if (ws.userId) {
75
+ this._trackUserConnection(ws.userId, ws);
76
+ }
77
+ },
78
+
79
+ // Обработчик входящих сообщений
80
+ message: async (ws, message, isBinary) => {
81
+ if (!isBinary) {
82
+ try {
83
+ // Более эффективная обработка ArrayBuffer
84
+ const msgStr = new TextDecoder().decode(message);
85
+ const msg = JSON.parse(msgStr);
86
+
87
+ // Обработка подписки и отписки на модуль
88
+ if (msg.type === 'subscribe' && msg.module && this.modules.has(msg.module)) {
89
+ ws.subscriptions.add(msg.module);
90
+ return;
91
+ } else if (msg.type === 'unsubscribe' && msg.module) {
92
+ ws.subscriptions.delete(msg.module);
93
+ return;
94
+ }
95
+
96
+ // Обработка RPC вызова
97
+ if (msg.type === 'rpc') {
98
+ await this._handleRpcCall(ws, msg);
99
+ return;
100
+ }
101
+
102
+ // Маршрутизация сообщения к соответствующему обработчику модуля
103
+ const moduleName = msg.module;
104
+ if (moduleName && this.modules.has(moduleName)) {
105
+ const handler = this.modules.get(moduleName);
106
+ Promise.resolve(handler(ws, msg)).catch(err => {
107
+ console.error(`Error in handler for module ${moduleName}:`, err);
108
+ });
109
+ }
110
+ } catch (err) {
111
+ console.error('Invalid message or handler error:', err);
112
+
113
+ // Отправляем ошибку обратно клиенту
114
+ if (err instanceof Error) {
115
+ try {
116
+ ws.send(JSON.stringify({
117
+ type: 'error',
118
+ error: {
119
+ message: err.message,
120
+ code: err.code || 'INTERNAL_ERROR'
121
+ }
122
+ }), false);
123
+ } catch (sendErr) {
124
+ console.error('Error sending error response:', sendErr);
125
+ }
126
+ }
48
127
  }
49
128
  }
50
- });
129
+ },
130
+
131
+ // Обработчик закрытия соединения
132
+ close: (ws, code, message) => {
133
+ const userId = ws.userId;
134
+ if (userId && this.userConnections.has(userId)) {
135
+ this.userConnections.get(userId).delete(ws);
136
+ if (this.userConnections.get(userId).size === 0) {
137
+ this.userConnections.delete(userId);
138
+ }
139
+ }
140
+
141
+ // Очищаем подписки для предотвращения утечки памяти
142
+ if (ws.subscriptions && typeof ws.subscriptions.clear === 'function') {
143
+ ws.subscriptions.clear();
144
+ }
145
+ }
51
146
  });
147
+
148
+ // Запускаем сервер на порту, если порт указан
149
+ this.listenSocket = null;
52
150
  }
53
-
54
- verifyClient(info, done) {
55
- try {
56
- const userCookie = info.req.headers.cookie?.split('; ').find(c => c.startsWith('user='));
57
- if (!userCookie) return done(true);
58
-
59
- const token = JSON.parse(decodeURIComponent(userCookie.replace('user=', '')));
60
- const decoded = jwt.verify(token.accessToken, process.env.SECRET_KEY);
61
- info.req.userId = decoded._id;
62
- } catch (err) {
63
- console.error('Invalid token:', err);
64
- }
65
- done(true);
151
+
152
+ // Метод для запуска сервера
153
+ listen(port, callback) {
154
+ this.app.listen(port, (listenSocket) => {
155
+ if (listenSocket) {
156
+ this.listenSocket = listenSocket;
157
+ if (callback) callback(null, this.app);
158
+ } else {
159
+ if (callback) callback(new Error('Failed to listen'), null);
160
+ }
161
+ });
162
+ return this;
66
163
  }
67
164
 
68
165
  _trackUserConnection(userId, ws) {
@@ -76,49 +173,217 @@ class WebSocketManager {
76
173
  this.modules.set(moduleName, handler);
77
174
  }
78
175
 
176
+ // Добавляем методы для регистрации RPC
177
+ registerRpcMethod(moduleName, methodName, handler, options = {}) {
178
+ const fullMethodName = `${moduleName}.${methodName}`;
179
+
180
+ if (!this.rpcMethods.has(moduleName)) {
181
+ this.rpcMethods.set(moduleName, new Map());
182
+ }
183
+
184
+ this.rpcMethods.get(moduleName).set(methodName, {
185
+ handler,
186
+ options: {
187
+ requireAuth: options.requireAuth !== false, // По умолчанию true
188
+ validateParams: options.validateParams || null,
189
+ rateLimit: options.rateLimit || null,
190
+ ...options
191
+ }
192
+ });
193
+
194
+ console.log(`RPC method registered: ${fullMethodName}`);
195
+ return this;
196
+ }
197
+
198
+ // Метод для регистрации группы RPC методов из модуля
199
+ registerRpcMethods(moduleName, methodsMap) {
200
+ for (const [methodName, config] of Object.entries(methodsMap)) {
201
+ const handler = typeof config === 'function' ? config : config.handler;
202
+ const options = typeof config === 'function' ? {} : (config.options || {});
203
+
204
+ this.registerRpcMethod(moduleName, methodName, handler, options);
205
+ }
206
+ return this;
207
+ }
208
+
209
+ // Обработчик RPC вызовов
210
+ async _handleRpcCall(ws, message) {
211
+ const { module, method, params, id } = message;
212
+
213
+ // Проверяем, что такой метод зарегистрирован
214
+ if (!this.rpcMethods.has(module) || !this.rpcMethods.get(module).has(method)) {
215
+ this._sendRpcResponse(ws, id, null, {
216
+ code: -32601,
217
+ message: `Method ${module}.${method} not found`
218
+ });
219
+ return;
220
+ }
221
+
222
+ const { handler, options } = this.rpcMethods.get(module).get(method);
223
+
224
+ // Проверка авторизации
225
+ if (options.requireAuth && !ws.userId) {
226
+ this._sendRpcResponse(ws, id, null, {
227
+ code: -32000,
228
+ message: 'Authentication required'
229
+ });
230
+ return;
231
+ }
232
+
233
+ // Валидация параметров
234
+ if (options.validateParams && !options.validateParams(params)) {
235
+ this._sendRpcResponse(ws, id, null, {
236
+ code: -32602,
237
+ message: 'Invalid params'
238
+ });
239
+ return;
240
+ }
241
+
242
+ // Выполняем метод
243
+ try {
244
+ // Создаем контекст для выполнения метода
245
+ const context = {
246
+ userId: ws.userId,
247
+ ws,
248
+ sendResponse: (result) => this._sendRpcResponse(ws, id, result),
249
+ sendError: (error) => this._sendRpcResponse(ws, id, null, error)
250
+ };
251
+
252
+ const result = await handler.call(context, params, context);
253
+
254
+ // Отправляем ответ, если он не был отправлен внутри обработчика
255
+ if (!context.responseSent) {
256
+ this._sendRpcResponse(ws, id, result);
257
+ }
258
+ } catch (error) {
259
+ console.error(`Error executing RPC method ${module}.${method}:`, error);
260
+ this._sendRpcResponse(ws, id, null, {
261
+ code: -32603,
262
+ message: error.message || 'Internal error'
263
+ });
264
+ }
265
+ }
266
+
267
+ // Отправка ответа на RPC запрос
268
+ _sendRpcResponse(ws, id, result, error = null) {
269
+ // Предотвращаем повторную отправку ответа
270
+ if (ws.context?.responseSent) return;
271
+ if (ws.context) ws.context.responseSent = true;
272
+
273
+ // Формируем и отправляем ответ
274
+ const response = {
275
+ type: 'rpc_response',
276
+ id
277
+ };
278
+
279
+ if (error) {
280
+ response.error = {
281
+ code: error.code || -32603,
282
+ message: error.message || 'Internal error',
283
+ data: error.data
284
+ };
285
+ } else {
286
+ response.result = result;
287
+ }
288
+
289
+ try {
290
+ ws.send(JSON.stringify(response), false);
291
+ } catch (err) {
292
+ console.error('Error sending RPC response:', err);
293
+ }
294
+ }
295
+
79
296
  sendToUserInModule(moduleName, userId, data) {
80
297
  const userIdStr = userId.toString();
81
-
82
298
  const sockets = this.userConnections.get(userIdStr);
83
-
299
+
84
300
  if (!sockets) {
85
301
  console.log(`No sockets found for user ${userIdStr}`);
86
302
  return false;
87
303
  }
88
-
304
+
89
305
  let sent = false;
306
+ const message = JSON.stringify(data);
307
+
90
308
  for (const ws of sockets) {
91
-
92
- if (ws.readyState === 1 && ws.subscriptions.has(moduleName)) {
93
- ws.send(JSON.stringify(data));
94
- sent = true;
309
+ if (ws.subscriptions.has(moduleName)) {
310
+ try {
311
+ const ok = ws.send(message, false); // false = not binary
312
+ if (!ok) {
313
+ console.warn('WebSocket backpressure exceeded for user:', userIdStr);
314
+ // Можно здесь добавить логику для обработки перегрузки соединения
315
+ } else {
316
+ sent = true;
317
+ }
318
+ } catch (err) {
319
+ console.warn('Failed to send message to user:', userIdStr, err);
320
+ // Возможно, сокет уже закрыт, но не удален из списка
321
+ }
95
322
  }
96
323
  }
324
+
97
325
  return sent;
98
326
  }
99
327
 
100
328
  broadcastToModule(moduleName, data) {
101
- for (const ws of this.wss.clients) {
102
- if (ws.readyState === 1 && ws.subscriptions.has(moduleName)) {
103
- ws.send(JSON.stringify(data));
329
+ const message = JSON.stringify(data);
330
+ let failedSends = 0;
331
+
332
+ // Итерируем через наши отслеживаемые соединения
333
+ for (const sockets of this.userConnections.values()) {
334
+ for (const ws of sockets) {
335
+ if (ws.subscriptions.has(moduleName)) {
336
+ try {
337
+ const ok = ws.send(message, false);
338
+ if (!ok) {
339
+ failedSends++;
340
+ }
341
+ } catch (err) {
342
+ failedSends++;
343
+ console.warn('Failed to broadcast message:', err);
344
+ }
345
+ }
104
346
  }
105
347
  }
348
+
349
+ if (failedSends > 0) {
350
+ console.warn(`Failed to send broadcast to ${failedSends} connections due to backpressure or closed sockets`);
351
+ }
352
+
353
+ return true;
106
354
  }
107
355
 
108
356
  broadcastToModuleWithFilter(moduleName, filterFn, data) {
109
- const sockets = this.userConnections
110
-
111
- for (const ws of this.wss.clients) {
112
- if (ws.readyState !== 1) continue;
113
- if (!ws.subscriptions.has(moduleName)) continue;
114
- if (!filterFn(ws)) continue;
115
- ws.send(JSON.stringify(data));
357
+ const message = JSON.stringify(data);
358
+ let failedSends = 0;
359
+
360
+ for (const sockets of this.userConnections.values()) {
361
+ for (const ws of sockets) {
362
+ if (!ws.subscriptions.has(moduleName)) continue;
363
+ if (!filterFn(ws)) continue;
364
+
365
+ try {
366
+ const ok = ws.send(message, false);
367
+ if (!ok) {
368
+ failedSends++;
369
+ }
370
+ } catch (err) {
371
+ failedSends++;
372
+ console.warn('Failed to send filtered broadcast:', err);
373
+ }
374
+ }
375
+ }
376
+
377
+ if (failedSends > 0) {
378
+ console.warn(`Failed to send filtered broadcast to ${failedSends} connections due to backpressure or closed sockets`);
116
379
  }
380
+
381
+ return true;
117
382
  }
118
383
 
119
384
  getServer() {
120
- return this.wss;
385
+ return this.app;
121
386
  }
122
387
  }
123
388
 
124
- module.exports = WebSocketManager;
389
+ module.exports = WebSocketManager;
@@ -0,0 +1,124 @@
1
+ const { WebSocketServer } = require('ws');
2
+ const jwt = require('jsonwebtoken');
3
+
4
+ class WebSocketManager {
5
+ constructor(server) {
6
+ this.wss = new WebSocketServer({
7
+ server,
8
+ verifyClient: this.verifyClient.bind(this)
9
+ });
10
+
11
+ this.modules = new Map();
12
+ this.userConnections = new Map();
13
+
14
+ this.wss.on('connection', (ws, req) => {
15
+ ws.userId = req.userId || null;
16
+ ws.subscriptions = new Set();
17
+
18
+ if (ws.userId) {
19
+ this._trackUserConnection(ws.userId, ws);
20
+ }
21
+
22
+ ws.on('message', async (rawMessage) => {
23
+ try {
24
+ const msg = JSON.parse(rawMessage);
25
+
26
+ // обработка подписки на модуль
27
+ if (msg.type === 'subscribe' && msg.module && this.modules.has(msg.module)) {
28
+ ws.subscriptions.add(msg.module);
29
+ return;
30
+ }
31
+
32
+ // нормальная маршрутизация
33
+ const moduleName = msg.module;
34
+ if (moduleName && this.modules.has(moduleName)) {
35
+ const handler = this.modules.get(moduleName);
36
+ await handler(ws, msg);
37
+ }
38
+ } catch (err) {
39
+ console.error('Invalid message or handler error:', err);
40
+ }
41
+ });
42
+
43
+ ws.on('close', () => {
44
+ if (ws.userId && this.userConnections.has(ws.userId)) {
45
+ this.userConnections.get(ws.userId).delete(ws);
46
+ if (this.userConnections.get(ws.userId).size === 0) {
47
+ this.userConnections.delete(ws.userId);
48
+ }
49
+ }
50
+ });
51
+ });
52
+ }
53
+
54
+ verifyClient(info, done) {
55
+ try {
56
+ const userCookie = info.req.headers.cookie?.split('; ').find(c => c.startsWith('user='));
57
+ if (!userCookie) return done(true);
58
+
59
+ const token = JSON.parse(decodeURIComponent(userCookie.replace('user=', '')));
60
+ const decoded = jwt.verify(token.accessToken, process.env.SECRET_KEY);
61
+ info.req.userId = decoded._id;
62
+ } catch (err) {
63
+ console.error('Invalid token:', err);
64
+ }
65
+ done(true);
66
+ }
67
+
68
+ _trackUserConnection(userId, ws) {
69
+ if (!this.userConnections.has(userId)) {
70
+ this.userConnections.set(userId, new Set());
71
+ }
72
+ this.userConnections.get(userId).add(ws);
73
+ }
74
+
75
+ registerModule(moduleName, handler) {
76
+ this.modules.set(moduleName, handler);
77
+ }
78
+
79
+ sendToUserInModule(moduleName, userId, data) {
80
+ const userIdStr = userId.toString();
81
+
82
+ const sockets = this.userConnections.get(userIdStr);
83
+
84
+ if (!sockets) {
85
+ console.log(`No sockets found for user ${userIdStr}`);
86
+ return false;
87
+ }
88
+
89
+ let sent = false;
90
+ for (const ws of sockets) {
91
+
92
+ if (ws.readyState === 1 && ws.subscriptions.has(moduleName)) {
93
+ ws.send(JSON.stringify(data));
94
+ sent = true;
95
+ }
96
+ }
97
+ return sent;
98
+ }
99
+
100
+ broadcastToModule(moduleName, data) {
101
+ for (const ws of this.wss.clients) {
102
+ if (ws.readyState === 1 && ws.subscriptions.has(moduleName)) {
103
+ ws.send(JSON.stringify(data));
104
+ }
105
+ }
106
+ }
107
+
108
+ broadcastToModuleWithFilter(moduleName, filterFn, data) {
109
+ const sockets = this.userConnections
110
+
111
+ for (const ws of this.wss.clients) {
112
+ if (ws.readyState !== 1) continue;
113
+ if (!ws.subscriptions.has(moduleName)) continue;
114
+ if (!filterFn(ws)) continue;
115
+ ws.send(JSON.stringify(data));
116
+ }
117
+ }
118
+
119
+ getServer() {
120
+ return this.wss;
121
+ }
122
+ }
123
+
124
+ module.exports = WebSocketManager;