@ozdao/martyrs 0.2.585 → 0.2.587

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 (391) hide show
  1. package/dist/auth.server.js +175 -97
  2. package/dist/{authJwt-J1csaMWA.js → authJwt-DKbMMjw0.js} +33 -0
  3. package/dist/chats.server.js +3 -3
  4. package/dist/community.server.js +2 -2
  5. package/dist/core.server.js +201 -13
  6. package/dist/{core.websocket-C2FxNmZ1.js → core.websocket-Cl76z2wT.js} +41 -5
  7. package/dist/{crud-q1ye5IhV.js → crud-DpOXTZep.js} +1 -1
  8. package/dist/events.server.js +3 -3
  9. package/dist/files.server.js +2 -2
  10. package/dist/gallery.server.js +2 -2
  11. package/dist/index-kvBwwb0w.js +427 -0
  12. package/dist/inventory.server.js +3 -3
  13. package/dist/{mailing-DuEFRsa3.js → mailing-DT7nbNjZ.js} +16 -3
  14. package/dist/{main-xL-jtBkT.js → main-BIf-WirR.js} +863 -865
  15. package/dist/marketplace.server.js +2 -2
  16. package/dist/martyrs/dist/{main-xL-jtBkT.js → main-BIf-WirR.js} +192 -38
  17. package/dist/martyrs/dist/main-BIf-WirR.js.map +1 -0
  18. package/dist/martyrs/dist/{web-BA6h6Z8P.js → web-O7lXcjg0.js} +2 -2
  19. package/dist/martyrs/dist/{web-BA6h6Z8P.js.map → web-O7lXcjg0.js.map} +1 -1
  20. package/dist/martyrs/src/components/Button/{Button.vue2.js → Button.vue.js} +8 -7
  21. package/dist/martyrs/src/components/Button/Button.vue.js.map +1 -0
  22. package/dist/martyrs/src/components/Feed/Carousel.vue.js +1 -1
  23. package/dist/martyrs/src/components/Feed/Feed.vue.js +1 -1
  24. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +1 -1
  25. package/dist/martyrs/src/components/Loader/{Loader.vue.js → Loader.vue2.js} +3 -3
  26. package/dist/martyrs/src/components/Loader/Loader.vue2.js.map +1 -0
  27. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue.js +1 -1
  28. package/dist/martyrs/src/components/Media/Media.vue.js +1 -1
  29. package/dist/martyrs/src/components/Menu/{Menu.vue.js → Menu.vue2.js} +2 -2
  30. package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +1 -0
  31. package/dist/martyrs/src/components/Select/{Select.vue.js → Select.vue2.js} +2 -2
  32. package/dist/martyrs/src/components/Select/Select.vue2.js.map +1 -0
  33. package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.js +17 -22
  34. package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.js.map +1 -1
  35. package/dist/martyrs/src/components/UploadImage/UploadImage.vue.js +1 -1
  36. package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  37. package/dist/martyrs/src/modules/auth/auth.client.js +18 -24
  38. package/dist/martyrs/src/modules/auth/auth.client.js.map +1 -1
  39. package/dist/martyrs/src/modules/auth/views/components/blocks/OtpDialog.vue.js +178 -0
  40. package/dist/martyrs/src/modules/auth/views/components/blocks/OtpDialog.vue.js.map +1 -0
  41. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
  42. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +53 -45
  43. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
  44. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +1 -1
  45. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +198 -14
  46. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js.map +1 -1
  47. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +1 -1
  48. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +70 -29
  49. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js.map +1 -1
  50. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +2 -2
  51. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
  52. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +86 -30
  53. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js.map +1 -1
  54. package/dist/martyrs/src/modules/auth/views/plugins/otp.plugin.js +100 -0
  55. package/dist/martyrs/src/modules/auth/views/plugins/otp.plugin.js.map +1 -0
  56. package/dist/martyrs/src/modules/auth/views/router/auth.router.js +2 -31
  57. package/dist/martyrs/src/modules/auth/views/router/auth.router.js.map +1 -1
  58. package/dist/martyrs/src/modules/auth/views/router/users.router.js +0 -14
  59. package/dist/martyrs/src/modules/auth/views/router/users.router.js.map +1 -1
  60. package/dist/martyrs/src/modules/auth/views/store/auth.js +1 -56
  61. package/dist/martyrs/src/modules/auth/views/store/auth.js.map +1 -1
  62. package/dist/martyrs/src/modules/auth/views/store/users.js +5 -1
  63. package/dist/martyrs/src/modules/auth/views/store/users.js.map +1 -1
  64. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +1 -1
  65. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +2 -2
  66. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  67. package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js +0 -1
  68. package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js.map +1 -1
  69. package/dist/martyrs/src/modules/core/views/components/blocks/PopupAuth.vue.js +1 -1
  70. package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js +2 -2
  71. package/dist/martyrs/src/modules/core/views/components/elements/OnlineIndicator.vue.js +74 -0
  72. package/dist/martyrs/src/modules/core/views/components/elements/OnlineIndicator.vue.js.map +1 -0
  73. package/dist/martyrs/src/modules/core/views/components/layouts/App.vue.js.map +1 -1
  74. package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js +64 -48
  75. package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js.map +1 -1
  76. package/dist/martyrs/src/modules/core/views/components/pages/404.vue.js +10 -33
  77. package/dist/martyrs/src/modules/core/views/components/pages/404.vue.js.map +1 -1
  78. package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js +2 -2
  79. package/dist/martyrs/src/modules/core/views/components/partials/NavigationBar.vue.js +1 -1
  80. package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  81. package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  82. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  83. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  84. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +1 -1
  85. package/dist/martyrs/src/modules/events/components/sections/EditTickets.vue.js +1 -1
  86. package/dist/martyrs/src/modules/events/components/sections/Feed.vue.js +1 -1
  87. package/dist/martyrs/src/modules/events/components/sections/List.vue.js +1 -1
  88. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  89. package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +2 -2
  90. package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js +1 -1
  91. package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js +1 -1
  92. package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +2 -2
  93. package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +2 -2
  94. package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +1 -1
  95. package/dist/martyrs/src/modules/music/components/blocks/ActionButtons.vue.js +1 -1
  96. package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +1 -1
  97. package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js +1 -1
  98. package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js +1 -1
  99. package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js +1 -1
  100. package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +2 -2
  101. package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +3 -3
  102. package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +1 -1
  103. package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.js +1 -1
  104. package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +2 -2
  105. package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +2 -2
  106. package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +2 -2
  107. package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.js +1 -1
  108. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +2 -2
  109. package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +2 -2
  110. package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +2 -2
  111. package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.js +0 -1
  112. package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.js.map +1 -1
  113. package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js +1 -1
  114. package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js +1 -1
  115. package/dist/martyrs/src/modules/music/components/player/PlayerControls.vue.js +1 -1
  116. package/dist/martyrs/src/modules/music/components/player/VolumeControl.vue.js +1 -1
  117. package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js +2 -2
  118. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +2 -2
  119. package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +2 -2
  120. package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +1 -2
  121. package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js.map +1 -1
  122. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +2 -2
  123. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  124. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  125. package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +1 -1
  126. package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +1 -1
  127. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  128. package/dist/martyrs/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  129. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  130. package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js +1 -1
  131. package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js +1 -1
  132. package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js +1 -1
  133. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  134. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  135. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  136. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +1 -2
  137. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js.map +1 -1
  138. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  139. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +1 -2
  140. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js.map +1 -1
  141. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +0 -1
  142. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js.map +1 -1
  143. package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
  144. package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  145. package/dist/martyrs/src/modules/products/components/elements/Image360.vue.js +1 -1
  146. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +0 -1
  147. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js.map +1 -1
  148. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
  149. package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +0 -1
  150. package/dist/martyrs/src/modules/products/components/pages/Product.vue.js.map +1 -1
  151. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  152. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +1 -1
  153. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
  154. package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +1 -1
  155. package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +2 -2
  156. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +2 -2
  157. package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +1 -1
  158. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +1 -1
  159. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  160. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +1 -1
  161. package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +1 -1
  162. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  163. package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  164. package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +1 -1
  165. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
  166. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +2 -2
  167. package/dist/martyrs.css +1 -1
  168. package/dist/martyrs.es.js +1 -1
  169. package/dist/music.server.js +1 -1
  170. package/dist/notifications.server.js +2 -2
  171. package/dist/orders.server.js +8 -7
  172. package/dist/organizations.server.js +3 -3
  173. package/dist/pages.server.js +1 -1
  174. package/dist/products.server.js +3 -3
  175. package/dist/profile.schema-C31Lynn3.js +21 -0
  176. package/dist/rents.server.js +2 -2
  177. package/dist/reports.server.js +1 -1
  178. package/dist/sessions.service-COcwjd0f.js +86 -0
  179. package/dist/spots.server.js +1 -1
  180. package/dist/style.css +180 -110
  181. package/dist/{tickets.controller-B7r0mK-5.js → tickets.controller-DdF85W-i.js} +1 -1
  182. package/dist/visitors.service-B1dhhuSo.js +83 -0
  183. package/dist/wallet.server.js +3 -3
  184. package/dist/{web-BA6h6Z8P.js → web-O7lXcjg0.js} +1 -1
  185. package/package.json +3 -1
  186. package/src/components/Button/Button.vue +61 -15
  187. package/src/components/Loader/Loader.vue +1 -1
  188. package/src/components/Tooltip/Tooltip.vue +31 -23
  189. package/src/modules/TASKS.MD +30 -1
  190. package/src/modules/auth/CLAUDE.md +381 -0
  191. package/src/modules/auth/FIXES.md +0 -38
  192. package/src/modules/auth/auth.client.js +4 -6
  193. package/src/modules/auth/auth.server.js +19 -16
  194. package/src/modules/auth/controllers/middlewares/authJwt.js +59 -17
  195. package/src/modules/auth/controllers/middlewares/index.js +4 -1
  196. package/src/modules/auth/controllers/middlewares/otp.middleware.js +166 -0
  197. package/src/modules/auth/controllers/middlewares/verifySignUp.js +0 -1
  198. package/src/modules/auth/controllers/middlewares/verifyUser.js +58 -11
  199. package/src/modules/auth/controllers/routes/auth.routes.js +48 -6
  200. package/src/modules/auth/controllers/routes/users.routes.js +29 -8
  201. package/src/modules/auth/controllers/services/auth.service.js +62 -12
  202. package/src/modules/auth/controllers/services/otp.service.js +109 -0
  203. package/src/modules/auth/controllers/services/users.service.js +46 -6
  204. package/src/modules/auth/models/otp.model.js +20 -0
  205. package/src/modules/auth/views/components/blocks/OtpDialog.vue +168 -0
  206. package/src/modules/auth/views/components/pages/Profile.vue +18 -13
  207. package/src/modules/auth/views/components/pages/ProfileEditAccount.vue +199 -45
  208. package/src/modules/auth/views/components/pages/ResetPassword.vue +170 -132
  209. package/src/modules/auth/views/components/pages/SignIn.vue +2 -1
  210. package/src/modules/auth/views/components/pages/SignUp.vue +203 -147
  211. package/src/modules/auth/views/plugins/otp.plugin.js +104 -0
  212. package/src/modules/auth/views/router/auth.router.js +1 -24
  213. package/src/modules/auth/views/router/users.router.js +1 -12
  214. package/src/modules/auth/views/store/auth.js +0 -68
  215. package/src/modules/auth/views/store/users.js +6 -2
  216. package/src/modules/chats/chats.server.js +1 -1
  217. package/src/modules/community/community.server.js +1 -1
  218. package/src/modules/core/controllers/classes/core.websocket.js +57 -6
  219. package/src/modules/core/controllers/middlewares/visitor.logger.js +49 -0
  220. package/src/modules/core/controllers/services/requests.service.js +53 -0
  221. package/src/modules/core/controllers/services/sessions.service.js +98 -0
  222. package/src/modules/core/controllers/services/visitors.service.js +102 -0
  223. package/src/modules/core/controllers/utils/mailing.js +16 -3
  224. package/src/modules/core/core.server.js +31 -16
  225. package/src/modules/core/models/log.model.js +24 -0
  226. package/src/modules/core/models/request.model.js +30 -0
  227. package/src/modules/core/models/session.model.js +43 -0
  228. package/src/modules/core/models/visitor.model.js +28 -0
  229. package/src/modules/core/views/components/elements/OnlineIndicator.vue +115 -0
  230. package/src/modules/core/views/components/layouts/App.vue +2 -2
  231. package/src/modules/core/views/components/layouts/Client.vue +443 -477
  232. package/src/modules/core/views/components/pages/404.vue +2 -3
  233. package/src/modules/events/events.server.js +1 -1
  234. package/src/modules/files/files.server.js +1 -1
  235. package/src/modules/gallery/gallery.server.js +1 -1
  236. package/src/modules/governance/governance.server.js +1 -1
  237. package/src/modules/icons/icons.server.js +1 -1
  238. package/src/modules/inventory/inventory.server.js +1 -1
  239. package/src/modules/marketplace/marketplace.server.js +1 -1
  240. package/src/modules/notifications/notifications.server.js +1 -1
  241. package/src/modules/orders/controllers/orders.controller.js +3 -3
  242. package/src/modules/orders/orders.server.js +1 -1
  243. package/src/modules/organizations/organizations.server.js +1 -1
  244. package/src/modules/pages/pages.server.js +1 -1
  245. package/src/modules/products/components/pages/Products.vue +1 -1
  246. package/src/modules/products/products.server.js +1 -1
  247. package/src/modules/rents/rents.server.js +1 -1
  248. package/src/modules/reports/reports.server.js +1 -1
  249. package/src/modules/spots/spots.server.js +1 -1
  250. package/src/modules/wallet/wallet.server.js +1 -1
  251. package/dist/_virtual/alignment-pattern.js +0 -5
  252. package/dist/_virtual/alignment-pattern.js.map +0 -1
  253. package/dist/_virtual/browser.js +0 -8
  254. package/dist/_virtual/browser.js.map +0 -1
  255. package/dist/_virtual/browser2.js +0 -5
  256. package/dist/_virtual/browser2.js.map +0 -1
  257. package/dist/_virtual/canvas.js +0 -5
  258. package/dist/_virtual/canvas.js.map +0 -1
  259. package/dist/_virtual/dijkstra.js +0 -5
  260. package/dist/_virtual/dijkstra.js.map +0 -1
  261. package/dist/_virtual/error-correction-code.js +0 -5
  262. package/dist/_virtual/error-correction-code.js.map +0 -1
  263. package/dist/_virtual/error-correction-level.js +0 -5
  264. package/dist/_virtual/error-correction-level.js.map +0 -1
  265. package/dist/_virtual/finder-pattern.js +0 -5
  266. package/dist/_virtual/finder-pattern.js.map +0 -1
  267. package/dist/_virtual/format-info.js +0 -5
  268. package/dist/_virtual/format-info.js.map +0 -1
  269. package/dist/_virtual/galois-field.js +0 -5
  270. package/dist/_virtual/galois-field.js.map +0 -1
  271. package/dist/_virtual/mask-pattern.js +0 -5
  272. package/dist/_virtual/mask-pattern.js.map +0 -1
  273. package/dist/_virtual/mode.js +0 -5
  274. package/dist/_virtual/mode.js.map +0 -1
  275. package/dist/_virtual/polynomial.js +0 -5
  276. package/dist/_virtual/polynomial.js.map +0 -1
  277. package/dist/_virtual/qrcode.js +0 -5
  278. package/dist/_virtual/qrcode.js.map +0 -1
  279. package/dist/_virtual/regex.js +0 -5
  280. package/dist/_virtual/regex.js.map +0 -1
  281. package/dist/_virtual/segments.js +0 -5
  282. package/dist/_virtual/segments.js.map +0 -1
  283. package/dist/_virtual/svg-tag.js +0 -5
  284. package/dist/_virtual/svg-tag.js.map +0 -1
  285. package/dist/_virtual/utils.js +0 -5
  286. package/dist/_virtual/utils.js.map +0 -1
  287. package/dist/_virtual/utils2.js +0 -5
  288. package/dist/_virtual/utils2.js.map +0 -1
  289. package/dist/_virtual/version-check.js +0 -5
  290. package/dist/_virtual/version-check.js.map +0 -1
  291. package/dist/_virtual/version.js +0 -5
  292. package/dist/_virtual/version.js.map +0 -1
  293. package/dist/index-_Edcmck_.js +0 -170
  294. package/dist/martyrs/dist/main-xL-jtBkT.js.map +0 -1
  295. package/dist/martyrs/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.js +0 -1336
  296. package/dist/martyrs/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.js.map +0 -1
  297. package/dist/martyrs/src/components/Button/Button.vue2.js.map +0 -1
  298. package/dist/martyrs/src/components/Loader/Loader.vue.js.map +0 -1
  299. package/dist/martyrs/src/components/Menu/Menu.vue.js.map +0 -1
  300. package/dist/martyrs/src/components/Select/Select.vue.js.map +0 -1
  301. package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.js +0 -166
  302. package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.js.map +0 -1
  303. package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +0 -118
  304. package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js.map +0 -1
  305. package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +0 -360
  306. package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js.map +0 -1
  307. package/dist/martyrs/src/modules/auth/views/store/twofa.js +0 -40
  308. package/dist/martyrs/src/modules/auth/views/store/twofa.js.map +0 -1
  309. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.js +0 -43
  310. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.js.map +0 -1
  311. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +0 -47
  312. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.js.map +0 -1
  313. package/dist/martyrs/src/modules/wallet/views/components/blocks/CashDeposit.vue.js +0 -29
  314. package/dist/martyrs/src/modules/wallet/views/components/blocks/CashDeposit.vue.js.map +0 -1
  315. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +0 -89
  316. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js.map +0 -1
  317. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.js +0 -136
  318. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.js.map +0 -1
  319. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +0 -238
  320. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js.map +0 -1
  321. package/dist/martyrs/src/modules/wallet/views/localization/wallet.json.js +0 -9
  322. package/dist/martyrs/src/modules/wallet/views/localization/wallet.json.js.map +0 -1
  323. package/dist/martyrs/src/modules/wallet/views/store/wallet.store.js +0 -134
  324. package/dist/martyrs/src/modules/wallet/views/store/wallet.store.js.map +0 -1
  325. package/dist/node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js +0 -106
  326. package/dist/node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js.map +0 -1
  327. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js +0 -79
  328. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js.map +0 -1
  329. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js +0 -14
  330. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js.map +0 -1
  331. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js +0 -43
  332. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js.map +0 -1
  333. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js +0 -85
  334. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js.map +0 -1
  335. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js +0 -40
  336. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js.map +0 -1
  337. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js +0 -34
  338. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js.map +0 -1
  339. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js +0 -36
  340. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js.map +0 -1
  341. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js +0 -367
  342. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js.map +0 -1
  343. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js +0 -52
  344. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js.map +0 -1
  345. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js +0 -25
  346. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js.map +0 -1
  347. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js +0 -24
  348. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js.map +0 -1
  349. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js +0 -38
  350. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js.map +0 -1
  351. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js +0 -46
  352. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js.map +0 -1
  353. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js +0 -149
  354. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js.map +0 -1
  355. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js +0 -90
  356. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js.map +0 -1
  357. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js +0 -41
  358. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js.map +0 -1
  359. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js +0 -44
  360. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js.map +0 -1
  361. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js +0 -279
  362. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js.map +0 -1
  363. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js +0 -38
  364. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js.map +0 -1
  365. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js +0 -33
  366. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js.map +0 -1
  367. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js +0 -201
  368. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js.map +0 -1
  369. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +0 -84
  370. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js.map +0 -1
  371. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js +0 -14
  372. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js.map +0 -1
  373. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js +0 -107
  374. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js.map +0 -1
  375. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js +0 -61
  376. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js.map +0 -1
  377. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js +0 -64
  378. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js.map +0 -1
  379. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +0 -87
  380. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js.map +0 -1
  381. package/dist/profile.schema-CjLOfG7b.js +0 -92
  382. package/src/modules/auth/controllers/middlewares/visitor.logger.js +0 -75
  383. package/src/modules/auth/controllers/routes/twofa.routes.js +0 -8
  384. package/src/modules/auth/controllers/services/twofa.service.js +0 -30
  385. package/src/modules/auth/models/request.model.js +0 -14
  386. package/src/modules/auth/models/visitor.model.js +0 -11
  387. package/src/modules/auth/views/components/pages/EnterCode.vue +0 -204
  388. package/src/modules/auth/views/components/pages/EnterPassword.vue +0 -123
  389. package/src/modules/auth/views/components/sections/ProfileEditCredentials.vue +0 -329
  390. package/src/modules/auth/views/store/twofa.js +0 -70
  391. package/src/modules/auth//320/220/320/240/320/245/320/230/320/242/320/225/320/232/320/242/320/243/320/240/320/220.md +0 -445
@@ -14,7 +14,6 @@ const goBack = () => window.history.length > 1 ? router.back() : router.push('/'
14
14
  <div class="bg-light w-100 h-100 flex flex-h-center flex-column radius-big pd-medium">
15
15
 
16
16
  <div class="flex flex-v-center gap-thin pd-thin radius-big bg-main w-fit mn-b-medium">
17
- <span class="i-medium radius-big bg-grey"></span>
18
17
  <span class="p-small">Error 404</span>
19
18
  </div>
20
19
 
@@ -35,7 +34,7 @@ const goBack = () => window.history.length > 1 ? router.back() : router.push('/'
35
34
  </button>
36
35
  </div>
37
36
 
38
- <div class="pd-t-medium w-max-25r">
37
+ <!-- <div class="pd-t-medium w-max-25r">
39
38
  <span class="p-micro t-transp t-upper t-500 ls-wide d-block mn-b-small">Search Documentation</span>
40
39
  <div class="field-wrapper bg-white flex flex-v-center radius-small pd-small gap-small">
41
40
  <IconSearch class="i-small t-transp" />
@@ -45,7 +44,7 @@ const goBack = () => window.history.length > 1 ? router.back() : router.push('/'
45
44
  <a href="#" class="flex flex-v-center gap-micro p-small t-transp"><IconInfo class="i-small" /> Help Center</a>
46
45
  <a href="#" class="p-small t-transp">API Status</a>
47
46
  </div>
48
- </div>
47
+ </div> -->
49
48
 
50
49
  </div>
51
50
  </div>
@@ -4,7 +4,7 @@ import createEventModel from './models/event.model.js';
4
4
  import createTicketModel from './models/ticket.model.js';
5
5
  import eventsRoutes from './routes/events.routes.js';
6
6
  import ticketsRoutes from './routes/tickets.routes.js';
7
- function initializeEvent(app, db, origins, publicPath, options = {}) {
7
+ function initializeEvent({ app, db, origins, publicPath, options = {} }) {
8
8
  console.log('initializeEvent publicPath:', publicPath);
9
9
  // Получаем дополнительные поля для моделей из options
10
10
  const { eventFields = {}, ticketFields = {} } = options;
@@ -1,6 +1,6 @@
1
1
  import filesController from './controllers/files.controller.js';
2
2
  import filesRoutes from './routes/files.routes.js';
3
- function initializeFiles(app, db, origins, publicPath) {
3
+ function initializeFiles({ app, db, origins, publicPath }) {
4
4
  // Настраиваем маршруты, если объект приложения передан
5
5
  if (app) {
6
6
  filesRoutes(app, db, origins, publicPath);
@@ -1,7 +1,7 @@
1
1
  import GalleryController from './controllers/gallery.controller.js';
2
2
  import PhotoModel from './models/photo.model.js';
3
3
  import galleryRoutes from './routes/gallery.routes.js';
4
- function initializeGallery(app, db, origins, publicPath) {
4
+ function initializeGallery({ app, db, origins, publicPath }) {
5
5
  // Настраиваем модели в объекте базы данных
6
6
  db.photo = PhotoModel(db);
7
7
  // Настраиваем маршруты, если объект приложения передан
@@ -8,7 +8,7 @@ import ModelMilestone from './models/milestone.model.js';
8
8
  import ModelTask from './models/task.model.js';
9
9
  import ModelVote from './models/vote.model.js';
10
10
  import ModelVoting from './models/voting.model.js';
11
- function initializeGovernance(app, db, origins, publicPath) {
11
+ function initializeGovernance({ app, db, origins, publicPath }) {
12
12
  // Setup models in the database object
13
13
  db.initiative = ModelInitiative(db);
14
14
  db.milestone = ModelMilestone(db);
@@ -271,7 +271,7 @@ export async function saveIconToDisk(iconId, category, iconName, mode = 'add', c
271
271
  }
272
272
 
273
273
  // Module initialization
274
- function initializeIcons(app, db, origins, publicPath, options = {}) {
274
+ function initializeIcons({ app, db, origins, publicPath, options = {} }) {
275
275
  console.log('initializeIcons publicPath:', publicPath);
276
276
 
277
277
  // Setup routes if app object is provided
@@ -7,7 +7,7 @@ import inventoryRoutes from './routes/inventory.routes.js';
7
7
  import inventoryPolicies from './policies/inventory.policies.js';
8
8
  import availabilityServiceFactory from './services/availability.service.js';
9
9
 
10
- function initializeInventory(app, db, origins, publicPath) {
10
+ function initializeInventory({ app, db, origins, publicPath }) {
11
11
  // Регистрация моделей
12
12
  db.stockAdjustment = StockAdjustmentModel(db);
13
13
  db.stockAvailability = StockAvailabilityModel(db);
@@ -1,6 +1,6 @@
1
1
  import marketplaceRoutes from './routes/marketplace.routes.js';
2
2
 
3
- function initializeMarketplace(app, db, origins, publicPath) {
3
+ function initializeMarketplace({ app, db, origins, publicPath }) {
4
4
  // Marketplace использует существующие модели (Spot, StockAvailability, Variant, Product, Organization)
5
5
  // Модели уже зарегистрированы в spots, inventory, products, organizations модулях
6
6
 
@@ -6,7 +6,7 @@ import UserDeviceModel from './models/user-device.model.js';
6
6
  import notificationsRoutes from './routes/notifications.routes.js';
7
7
  import NotificationService from './services/notification.service.js';
8
8
 
9
- function initializeNotifications(app, db, wss, origins, publicPath) {
9
+ function initializeNotifications({ app, db, wss, origins, publicPath }) {
10
10
  // Set up models in the database object
11
11
  db.notification = NotificationModel(db);
12
12
  db.userDevice = UserDeviceModel(db);
@@ -27,13 +27,12 @@ async function sendOrderMessage(orderData) {
27
27
  console.error(err);
28
28
  }
29
29
  }
30
- import visitorLoggerFactory from '@martyrs/src/modules/auth/controllers/middlewares/visitor.logger.js';
30
+ import { getVisitorsService } from '@martyrs/src/modules/core/controllers/services/visitors.service.js';
31
31
 
32
32
  const controllerFactory = db => {
33
33
  const Order = db.order;
34
34
  const Customer = db.customer;
35
35
  const Department = db.department;
36
- const { findOrCreateVisitor } = visitorLoggerFactory(db);
37
36
 
38
37
  // Оптимизированная функция получения пользователей с доступом orders.confirm
39
38
  const getUsersWithOrdersConfirmAccess = async (organizationId) => {
@@ -163,7 +162,8 @@ const controllerFactory = db => {
163
162
  }
164
163
  if (!customer) {
165
164
  // Create visitor for anonymous customer
166
- const visitor = await findOrCreateVisitor(req);
165
+ const visitorsService = getVisitorsService();
166
+ const visitor = await visitorsService.findOrCreateVisitor(req);
167
167
 
168
168
  // Handle the case when creator.target is null
169
169
  let creatorType = customerInfo.creator?.type || orderCreator.type;
@@ -6,7 +6,7 @@ import ModelTestimonial from './models/testimonial.model.js';
6
6
  import RoutesApplications from './routes/applications.routes.js';
7
7
  import RoutesOrder from './routes/orders.routes.js';
8
8
  import RoutesCustomers from './routes/customers.routes.js';
9
- function initializeOrders(app, db, origins, publicPath) {
9
+ function initializeOrders({ app, db, origins, publicPath }) {
10
10
  // Setup models in the database object
11
11
  db.order = ModelOrder(db);
12
12
  db.customer = ModelCustomer(db);
@@ -20,7 +20,7 @@ import initOrganizationPolicies from './policies/organizations.policies.js';
20
20
 
21
21
  const { getInstance } = coreabac;
22
22
 
23
- function initializeOrganization(app, db, origins, publicPath) {
23
+ function initializeOrganization({ app, db, origins, publicPath }) {
24
24
  // Настраиваем модели в объекте базы данных
25
25
  db.department = DepartmentModel(db);
26
26
  db.organization = OrganizationModel(db);
@@ -1,7 +1,7 @@
1
1
  import FactoryPage from './controllers/factories/pages.factory.js';
2
2
  import RoutesPage from './controllers/routes/pages.routes.js';
3
3
  import ModelPage from './models/page.model.js';
4
- function initializePages(app, db, origins, publicPath) {
4
+ function initializePages({ app, db, origins, publicPath }) {
5
5
  // Setup models in the database object
6
6
  db.page = ModelPage(db);
7
7
  // Setup routes if the app object is provided
@@ -141,7 +141,7 @@
141
141
  </div>
142
142
  </div>
143
143
 
144
- <div class="w-100 rows-1 pd-thin pos-relative o-hidden">
144
+ <div class="w-100 flex flex-column pd-thin pos-relative o-hidden">
145
145
 
146
146
  <slot></slot>
147
147
 
@@ -6,7 +6,7 @@ import VariantModel from './models/variant.model.js';
6
6
  import categoriesRoutes from './routes/categories.routes.js';
7
7
  import productsRoutes from './routes/products.routes.js';
8
8
  import variantsRoutes from './routes/variants.routes.js';
9
- function initializeProduct(app, db, origins, publicPath) {
9
+ function initializeProduct({ app, db, origins, publicPath }) {
10
10
  // Настраиваем модели в объекте базы данных
11
11
  db.product = ProductModel(db);
12
12
  db.variant = VariantModel(db);
@@ -1,7 +1,7 @@
1
1
  import RentRoutes from './controllers/routes/rents.routes.js';
2
2
  import RentServices from './controllers/services/rents.services.js';
3
3
  import RentModel from './models/rent.model.js';
4
- function initializeRenting(app, db, origins, publicPath, options = {}) {
4
+ function initializeRenting({ app, db, origins, publicPath, options = {} }) {
5
5
  // Получаем дополнительные поля для модели из options
6
6
  const { rentFields = {} } = options;
7
7
  // Инициализируем модель с дополнительными полями
@@ -1,7 +1,7 @@
1
1
  import ReportsController from './controllers/reports.controller.js';
2
2
  import ReportModel from './models/report.model.js';
3
3
  import reportsRoutes from './routes/reports.routes.js';
4
- function initializeReports(app, db, origins, publicPath) {
4
+ function initializeReports({ app, db, origins, publicPath }) {
5
5
  // Настраиваем модели в объекте базы данных
6
6
  db.report = ReportModel(db);
7
7
  // Настраиваем маршруты, если объект приложения передан
@@ -1,7 +1,7 @@
1
1
  import FactorySpot from './controllers/spots.controller.js';
2
2
  import ModelSpot from './models/spot.model.js';
3
3
  import RoutesSpot from './routes/spots.routes.js';
4
- function initializeSpots(app, db, origins, publicPath) {
4
+ function initializeSpots({ app, db, origins, publicPath }) {
5
5
  // Setup models in the database object
6
6
  db.spot = ModelSpot(db);
7
7
  // Setup routes if the app object is provided
@@ -5,7 +5,7 @@ import ModelPayment from './models/payment.model.js';
5
5
  // import ModelReward from './models/reward.model.js';
6
6
  // import ModelWallet from './models/wallet.model.js';
7
7
  // Initialization function for setting up the module within the application
8
- function initializePayments(app, db, wss, origins, publicPath) {
8
+ function initializePayments({ app, db, wss, origins, publicPath }) {
9
9
  // Setup models in the database object
10
10
  // db.wallet = ModelWallet(db);
11
11
  db.payment = ModelPayment(db);
@@ -1,5 +0,0 @@
1
- var alignmentPattern = {};
2
- export {
3
- alignmentPattern as __exports
4
- };
5
- //# sourceMappingURL=alignment-pattern.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alignment-pattern.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,8 +0,0 @@
1
- import { getDefaultExportFromCjs } from "./_commonjsHelpers.js";
2
- import { __require as requireBrowser } from "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js";
3
- var browserExports = requireBrowser();
4
- const QRCode = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
5
- export {
6
- QRCode as default
7
- };
8
- //# sourceMappingURL=browser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browser.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,5 +0,0 @@
1
- var browser = {};
2
- export {
3
- browser as __exports
4
- };
5
- //# sourceMappingURL=browser2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browser2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var canvas = {};
2
- export {
3
- canvas as __exports
4
- };
5
- //# sourceMappingURL=canvas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"canvas.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var dijkstra = { exports: {} };
2
- export {
3
- dijkstra as __module
4
- };
5
- //# sourceMappingURL=dijkstra.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dijkstra.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var errorCorrectionCode = {};
2
- export {
3
- errorCorrectionCode as __exports
4
- };
5
- //# sourceMappingURL=error-correction-code.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"error-correction-code.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var errorCorrectionLevel = {};
2
- export {
3
- errorCorrectionLevel as __exports
4
- };
5
- //# sourceMappingURL=error-correction-level.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"error-correction-level.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var finderPattern = {};
2
- export {
3
- finderPattern as __exports
4
- };
5
- //# sourceMappingURL=finder-pattern.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"finder-pattern.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var formatInfo = {};
2
- export {
3
- formatInfo as __exports
4
- };
5
- //# sourceMappingURL=format-info.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"format-info.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var galoisField = {};
2
- export {
3
- galoisField as __exports
4
- };
5
- //# sourceMappingURL=galois-field.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"galois-field.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var maskPattern = {};
2
- export {
3
- maskPattern as __exports
4
- };
5
- //# sourceMappingURL=mask-pattern.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mask-pattern.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var mode = {};
2
- export {
3
- mode as __exports
4
- };
5
- //# sourceMappingURL=mode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mode.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var polynomial = {};
2
- export {
3
- polynomial as __exports
4
- };
5
- //# sourceMappingURL=polynomial.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"polynomial.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var qrcode = {};
2
- export {
3
- qrcode as __exports
4
- };
5
- //# sourceMappingURL=qrcode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"qrcode.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var regex = {};
2
- export {
3
- regex as __exports
4
- };
5
- //# sourceMappingURL=regex.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"regex.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var segments = {};
2
- export {
3
- segments as __exports
4
- };
5
- //# sourceMappingURL=segments.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"segments.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var svgTag = {};
2
- export {
3
- svgTag as __exports
4
- };
5
- //# sourceMappingURL=svg-tag.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-tag.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var utils = {};
2
- export {
3
- utils as __exports
4
- };
5
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var utils = {};
2
- export {
3
- utils as __exports
4
- };
5
- //# sourceMappingURL=utils2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var versionCheck = {};
2
- export {
3
- versionCheck as __exports
4
- };
5
- //# sourceMappingURL=version-check.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"version-check.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- var version = {};
2
- export {
3
- version as __exports
4
- };
5
- //# sourceMappingURL=version.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"version.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,170 +0,0 @@
1
- import { m as middlewareFactory$4 } from "./authJwt-J1csaMWA.js";
2
- import crypto from "crypto";
3
- import * as mongodb from "mongodb";
4
- const middlewareFactory$3 = () => {
5
- const verifySecret = (method, endpoint, secret) => async (req, res, next) => {
6
- const requestSignature = req.headers.signature;
7
- const signature = crypto.createHmac("sha256", secret).update(method + endpoint).digest("hex");
8
- if (signature === requestSignature) {
9
- return next();
10
- }
11
- res.status(403).send("Forbidden");
12
- };
13
- return { verifySecret };
14
- };
15
- const middlewareFactory$2 = (db) => {
16
- const User = db.user;
17
- db.role;
18
- const checkDuplicateUsernameOrEmail = async (req, res, next) => {
19
- const { type, email, phone } = req.body;
20
- console.log(req.body);
21
- let query;
22
- if (type === "phone" && phone) {
23
- query = { phone };
24
- }
25
- if (type === "email" && email) {
26
- query = { email };
27
- }
28
- try {
29
- const user = await User.findOne(query).exec();
30
- if (user) {
31
- console.log(`USER_ALREADY_REGISTERED`);
32
- res.status(400).send({ errorCode: "USER_ALREADY_REGISTERED" });
33
- return;
34
- }
35
- next();
36
- } catch (err) {
37
- console.log(err);
38
- res.status(500).send({ message: err.message });
39
- }
40
- };
41
- const checkRolesExisted = (req, res, next) => {
42
- next();
43
- };
44
- return {
45
- checkDuplicateUsernameOrEmail,
46
- checkRolesExisted
47
- };
48
- };
49
- const middlewareFactory$1 = (db) => {
50
- const User = db.user;
51
- db.role;
52
- const checkDuplicateUsername = async (req, res, next) => {
53
- const { username } = req.body;
54
- if (!username) {
55
- return next();
56
- }
57
- try {
58
- const user = await User.findOne({
59
- username,
60
- _id: { $ne: req.body._id }
61
- // Исключаем текущего пользователя из поиска
62
- });
63
- if (user) {
64
- console.log(`USERNAME_ALREADY_USED`);
65
- res.status(400).send({ errorCode: "USERNAME_ALREADY_USED" });
66
- return;
67
- }
68
- next();
69
- } catch (err) {
70
- console.log(err);
71
- res.status(500).send({ message: err.message });
72
- }
73
- };
74
- const checkUserExist = async (req, res, next) => {
75
- const { type, email, phone } = req.body;
76
- let query;
77
- if (type === "phone" && phone) {
78
- query = { phone };
79
- }
80
- if (type === "email" && email) {
81
- query = { email };
82
- }
83
- try {
84
- const user = await User.findOne(query).exec();
85
- if (!user) {
86
- console.log(query);
87
- res.status(400).send({ errorCode: "USER_NOT_REGISTERED_YET" });
88
- return;
89
- }
90
- next();
91
- } catch (err) {
92
- res.status(500).send({ message: err.message });
93
- }
94
- };
95
- return {
96
- checkDuplicateUsername,
97
- checkUserExist
98
- };
99
- };
100
- const { ObjectId } = mongodb;
101
- const middlewareFactory = (db) => {
102
- const User = db.user;
103
- const Invite = db.invite;
104
- const Membership = db.membership;
105
- const checkInviteExist = async (req, res, next) => {
106
- for (let invite of req.body.invites) {
107
- let query;
108
- if (invite.contact.includes("@")) {
109
- query = { invitedEmail: invite.contact };
110
- } else {
111
- query = { invitedPhone: invite.contact };
112
- }
113
- query["owner.target"] = req.body.owner.target;
114
- const userInvite = await Invite.findOne(query).exec();
115
- if (userInvite) {
116
- console.log(userInvite);
117
- res.status(400).send({ message: "Инвайт c таким email или телефоном уже создан!" });
118
- return;
119
- }
120
- }
121
- next();
122
- };
123
- const checkUsersExist = async (req, res, next) => {
124
- for (let invite of req.body.invites) {
125
- let query;
126
- if (invite.contact.includes("@")) {
127
- query = { email: invite.contact };
128
- } else {
129
- query = { phone: invite.contact };
130
- }
131
- const user = await User.findOne(query).exec();
132
- console.log(req.params);
133
- if (user) {
134
- const membership = await Membership.findOne({
135
- user: new ObjectId(user._id),
136
- "owner.target": req.body.owner.target
137
- }).exec();
138
- if (membership) {
139
- console.log(membership);
140
- res.status(400).send({
141
- message: "Пользователь с таким email или телефоном уже добавлен в организацию!"
142
- });
143
- return;
144
- }
145
- }
146
- }
147
- next();
148
- };
149
- return {
150
- checkInviteExist,
151
- checkUsersExist
152
- };
153
- };
154
- const middlewareIndexFactory = (db) => {
155
- const authJwt = middlewareFactory$4(db);
156
- const authSecret = middlewareFactory$3();
157
- const verifySignUp = middlewareFactory$2(db);
158
- const verifyUser = middlewareFactory$1(db);
159
- const verifyInvites = middlewareFactory(db);
160
- return {
161
- authJwt,
162
- authSecret,
163
- verifySignUp,
164
- verifyUser,
165
- verifyInvites
166
- };
167
- };
168
- export {
169
- middlewareIndexFactory as m
170
- };