@ozdao/prometheus-framework 0.2.187 → 0.2.188

Sign up to get free protection for your applications and to get access to all the features.
Files changed (306) hide show
  1. package/dist/auth.server.js +35 -23
  2. package/dist/auth.server.mjs +35 -23
  3. package/dist/events.server.js +1 -1
  4. package/dist/events.server.mjs +1 -1
  5. package/dist/globals.server.js +1 -1
  6. package/dist/globals.server.mjs +1 -1
  7. package/dist/mailing-BQKyTI-q.js +77 -0
  8. package/dist/mailing-C3VD4l0h.mjs +78 -0
  9. package/dist/main-BVZtf9OG.js +92 -0
  10. package/dist/main-CbTw08vO.mjs +13584 -0
  11. package/dist/orders.server.js +162 -12
  12. package/dist/orders.server.mjs +162 -12
  13. package/dist/organizations.server.js +1 -1
  14. package/dist/organizations.server.mjs +1 -1
  15. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -1
  16. package/dist/prometheus-framework/src/modules/auth/auth.client.js +41 -22
  17. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -0
  18. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +41 -0
  19. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -0
  20. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +124 -0
  21. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -0
  22. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +94 -0
  23. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -0
  24. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +82 -0
  25. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -0
  26. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +118 -0
  27. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -0
  28. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +168 -0
  29. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -0
  30. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +129 -0
  31. package/dist/prometheus-framework/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs +1 -0
  32. package/dist/prometheus-framework/src/modules/auth/views/components/sections/SliderFeatures.vue.js +88 -0
  33. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterCode.json.cjs +1 -0
  34. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterCode.json.js +20 -0
  35. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterPassword.json.cjs +1 -0
  36. package/dist/prometheus-framework/src/modules/auth/views/localization/EnterPassword.json.js +26 -0
  37. package/dist/prometheus-framework/src/modules/auth/views/localization/ResetPassword.json.cjs +1 -0
  38. package/dist/prometheus-framework/src/modules/auth/views/localization/ResetPassword.json.js +30 -0
  39. package/dist/prometheus-framework/src/modules/auth/views/localization/SignIn.json.cjs +1 -0
  40. package/dist/prometheus-framework/src/modules/auth/views/localization/SignIn.json.js +38 -0
  41. package/dist/prometheus-framework/src/modules/auth/views/localization/SignUp.json.cjs +1 -0
  42. package/dist/prometheus-framework/src/modules/auth/views/localization/SignUp.json.js +32 -0
  43. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs +1 -0
  44. package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js +30 -0
  45. package/dist/prometheus-framework/src/modules/auth/views/router/auth.cjs +1 -0
  46. package/dist/prometheus-framework/src/modules/auth/views/router/auth.js +119 -0
  47. package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs +1 -0
  48. package/dist/prometheus-framework/src/modules/auth/views/store/auth.js +176 -0
  49. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs +1 -0
  50. package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js +31 -0
  51. package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.cjs +1 -0
  52. package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.js +45 -0
  53. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +1 -1
  55. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +2 -2
  57. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +2 -2
  59. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +1 -1
  61. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  63. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +3 -4
  65. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +10 -10
  69. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  71. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +2 -2
  75. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  77. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +12 -13
  83. package/dist/prometheus-framework/src/modules/events/components/sections/FeaturedEvents.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/events/components/sections/FeaturedEvents.vue.js +1 -1
  85. package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/events/router/events.js +1 -1
  87. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  89. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  91. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/globals/globals.client.js +5 -5
  93. package/dist/prometheus-framework/src/modules/globals/localization/get-browser-locale.cjs +1 -0
  94. package/dist/prometheus-framework/src/modules/globals/localization/get-browser-locale.js +7 -0
  95. package/dist/prometheus-framework/src/modules/globals/router/scrollBehavior.cjs +1 -0
  96. package/dist/prometheus-framework/src/modules/globals/router/scrollBehavior.js +18 -0
  97. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/globals/store/globals.js +38 -76
  99. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +5 -5
  101. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  103. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  105. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  113. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -3
  115. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  117. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -5
  119. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +2 -2
  121. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -4
  123. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  125. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -3
  127. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +1 -1
  131. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.js +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/router/departments.router.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/organizations/router/departments.router.js +1 -1
  135. package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/organizations/router/members.router.js +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  141. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.js +1 -1
  143. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.js +1 -1
  145. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  147. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  149. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
  151. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -3
  153. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +2 -3
  155. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
  157. package/dist/prometheus-framework/src/modules/products/router/categories.router.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/products/router/categories.router.js +1 -1
  159. package/dist/prometheus-framework/src/modules/products/router/leftovers.router.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/products/router/leftovers.router.js +1 -1
  161. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/products/router/products.router.js +1 -1
  163. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +2 -3
  165. package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/spots/router/spots.js +1 -1
  167. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  169. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  171. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -4
  173. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  175. package/dist/prometheus-framework/src/modules/users/router/users.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/users/router/users.js +3 -4
  177. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
  179. package/dist/prometheus-framework/src/modules/wallet/views/router/payments.router.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/wallet/views/router/payments.router.js +1 -1
  181. package/dist/prometheus-framework.cjs.js +1 -1
  182. package/dist/prometheus-framework.es.js +1 -1
  183. package/dist/style.css +1 -1
  184. package/dist/tickets.controller-BWVUA-GR.js +401 -0
  185. package/dist/tickets.controller-ChVmHHnj.mjs +402 -0
  186. package/dist/wallet.server.js +1 -1
  187. package/dist/wallet.server.mjs +1 -1
  188. package/dist/web-CK9TrlwB.js +1 -0
  189. package/dist/web-aOWHNbX1.mjs +54 -0
  190. package/package.json +1 -1
  191. package/src/components/Breadcrumbs/Breadcrumbs.vue +0 -1
  192. package/src/components/Sidebar/Sidebar.vue +1 -1
  193. package/src/modules/auth/auth.client.js +53 -28
  194. package/src/modules/auth/auth.server.js +32 -14
  195. package/src/modules/auth/{routes → controllers/routes}/auth.routes.js +3 -3
  196. package/src/modules/auth/{routes → controllers/routes}/twofa.routes.js +2 -2
  197. package/src/modules/auth/controllers/{auth.controller.js → services/auth.service.js} +2 -3
  198. package/src/modules/auth/models/role.model.js +9 -8
  199. package/src/modules/auth/{components → views/components}/layouts/Auth.vue +3 -3
  200. package/src/modules/auth/{components → views/components}/pages/EnterCode.vue +3 -3
  201. package/src/modules/auth/{components → views/components}/pages/EnterPassword.vue +3 -3
  202. package/src/modules/auth/{components → views/components}/pages/Invite.vue +2 -2
  203. package/src/modules/auth/{components → views/components}/pages/ResetPassword.vue +4 -4
  204. package/src/modules/auth/{components → views/components}/pages/SignIn.vue +3 -3
  205. package/src/modules/auth/{components → views/components}/pages/SignUp.vue +4 -4
  206. package/src/modules/{middlewares/client → auth/views/middlewares}/auth.validation.js +20 -1
  207. package/src/modules/auth/views/router/auth.js +102 -0
  208. package/src/modules/{middlewares/client → auth/views/validations}/inputs.validation.js +3 -6
  209. package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
  210. package/src/modules/backoffice/components/pages/Dashboard.vue +1 -1
  211. package/src/modules/backoffice/components/partials/Sidebar.vue +1 -1
  212. package/src/modules/backoffice/router/backoffice.js +1 -1
  213. package/src/modules/chats/routes/chats.routes.js +1 -1
  214. package/src/modules/community/components/layouts/Community.vue +1 -1
  215. package/src/modules/community/components/pages/Blog.vue +1 -1
  216. package/src/modules/community/components/pages/BlogPost.vue +1 -1
  217. package/src/modules/community/components/pages/Community.vue +1 -1
  218. package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
  219. package/src/modules/community/components/sections/HotPosts.vue +1 -1
  220. package/src/modules/community/routes/blog.routes.js +1 -1
  221. package/src/modules/events/components/elements/ButtonJoin.vue +1 -1
  222. package/src/modules/events/components/pages/EditEvent.vue +1 -1
  223. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  224. package/src/modules/events/components/pages/Event.vue +1 -1
  225. package/src/modules/events/components/pages/Events.vue +1 -1
  226. package/src/modules/events/components/sections/FeaturedEvents.vue +1 -1
  227. package/src/modules/events/router/events.js +1 -1
  228. package/src/modules/events/routes/events.routes.js +1 -1
  229. package/src/modules/files/routes/files.routes.js +1 -1
  230. package/src/modules/gallery/components/sections/BackofficeGallery.vue +1 -1
  231. package/src/modules/gallery/routes/gallery.routes.js +2 -2
  232. package/src/modules/globals/globals.client.js +4 -3
  233. package/src/modules/globals/router/scrollBehavior.js +30 -0
  234. package/src/modules/globals/store/globals.js +3 -3
  235. package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
  236. package/src/modules/legal/components/pages/Legal.vue +1 -1
  237. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  238. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +1 -1
  239. package/src/modules/orders/components/pages/Orders.vue +1 -1
  240. package/src/modules/orders/components/sections/FormAddCustomer.vue +1 -1
  241. package/src/modules/orders/models/order.model.js +0 -1
  242. package/src/modules/orders/orders.server.js +3 -1
  243. package/src/modules/orders/routes/applications.routes.js +2 -1
  244. package/src/modules/orders/routes/orders.routes.js +1 -1
  245. package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +1 -1
  246. package/src/modules/organizations/components/pages/Members.vue +1 -1
  247. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  248. package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +1 -1
  249. package/src/modules/organizations/components/pages/OrganizationCreate.vue +1 -1
  250. package/src/modules/organizations/components/pages/OrganizationDetails.vue +2 -2
  251. package/src/modules/organizations/components/pages/OrganizationEdit.vue +1 -1
  252. package/src/modules/organizations/components/pages/Organizations.vue +1 -1
  253. package/src/modules/organizations/components/sections/MembersAdd.vue +1 -1
  254. package/src/modules/organizations/components/sections/Organizations.vue +1 -1
  255. package/src/modules/organizations/components/sections/Publics.vue +1 -1
  256. package/src/modules/organizations/router/backoffice.router.js +1 -1
  257. package/src/modules/organizations/router/departments.router.js +1 -1
  258. package/src/modules/organizations/router/members.router.js +1 -1
  259. package/src/modules/organizations/router/organizations.js +1 -1
  260. package/src/modules/organizations/routes/invites.routes.js +1 -1
  261. package/src/modules/organizations/store/invites.js +1 -1
  262. package/src/modules/pages/views/components/pages/Page.vue +1 -1
  263. package/src/modules/pages/views/components/pages/Pages.vue +1 -1
  264. package/src/modules/pages/views/components/partials/SidebarPages.vue +1 -1
  265. package/src/modules/products/components/pages/EditLeftover.vue +1 -1
  266. package/src/modules/products/components/pages/Product.vue +1 -1
  267. package/src/modules/products/components/pages/Products.vue +1 -1
  268. package/src/modules/products/router/categories.router.js +1 -1
  269. package/src/modules/products/router/leftovers.router.js +1 -1
  270. package/src/modules/products/router/products.router.js +1 -1
  271. package/src/modules/spots/router/spots.js +1 -1
  272. package/src/modules/users/components/pages/Profile.vue +1 -1
  273. package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
  274. package/src/modules/users/components/pages/ProfileEdit.vue +2 -2
  275. package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
  276. package/src/modules/users/router/users.js +1 -2
  277. package/src/modules/wallet/controllers/routes/payments.routes.js +1 -1
  278. package/src/modules/wallet/controllers/routes/rewards.routes.js +1 -1
  279. package/src/modules/wallet/views/router/payments.router.js +1 -2
  280. package/src/modules/auth/router/auth.js +0 -111
  281. package/src/modules/globals/localization/methods/get-app-locales.js +0 -13
  282. package/src/modules/globals/localization/vue-i18n.js +0 -38
  283. package/src/modules/globals/localization/vue-i18n.singleton.js +0 -11
  284. package/src/modules/middlewares/client/states.validation.js +0 -23
  285. package/src/modules/middlewares/middlewares.client.js +0 -11
  286. package/src/modules/middlewares/middlewares.server.js +0 -18
  287. package/src/modules/orders/routes/backcalls.routes.js +0 -36
  288. package/src/modules/orders/routes/fastorders.routes.js +0 -32
  289. /package/src/modules/auth/{middlewares → controllers/middlewares}/authJwt.js +0 -0
  290. /package/src/modules/auth/{middlewares → controllers/middlewares}/authSecret.js +0 -0
  291. /package/src/modules/auth/{middlewares → controllers/middlewares}/index.js +0 -0
  292. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyAccesses.js +0 -0
  293. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyInvites.js +0 -0
  294. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifySignUp.js +0 -0
  295. /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyUser.js +0 -0
  296. /package/src/modules/auth/controllers/{twofa.controller.js → services/twofa.service.js} +0 -0
  297. /package/src/modules/auth/{utils/server → controllers/utils}/verifyAppleIdToken.js +0 -0
  298. /package/src/modules/auth/{components → views/components}/sections/SliderFeatures.vue +0 -0
  299. /package/src/modules/auth/{localization → views/localization}/EnterCode.json +0 -0
  300. /package/src/modules/auth/{localization → views/localization}/EnterPassword.json +0 -0
  301. /package/src/modules/auth/{localization → views/localization}/ResetPassword.json +0 -0
  302. /package/src/modules/auth/{localization → views/localization}/SignIn.json +0 -0
  303. /package/src/modules/auth/{localization → views/localization}/SignUp.json +0 -0
  304. /package/src/modules/auth/{store → views/store}/auth.js +0 -0
  305. /package/src/modules/auth/{store → views/store}/twofa.js +0 -0
  306. /package/src/modules/globals/localization/{methods/get-browser-locale.js → get-browser-locale.js} +0 -0
@@ -4,9 +4,10 @@ const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
4
4
  const profile_schema = require("./profile.schema-CkOhhf37.js");
5
5
  const credentials_schema = require("./credentials.schema-B-KD_ozQ.js");
6
6
  const queryProcessor = require("./queryProcessor-iewDZq_f.js");
7
- const mailing = require("./mailing-BX0q8DIs.js");
7
+ const mailing = require("./mailing-BQKyTI-q.js");
8
8
  const index = require("./index-oS9yx2Kv.js");
9
- const require$$0 = require("node-cache");
9
+ const require$$0 = require("axios");
10
+ const require$$0$1 = require("node-cache");
10
11
  const applyOwnershipSchema$1 = ownership_schema.ownership_schema;
11
12
  var order_model = (db) => {
12
13
  const OrderSchema = new db.mongoose.Schema({
@@ -201,7 +202,7 @@ var application_model = (db) => {
201
202
  return Application;
202
203
  };
203
204
  const queryProcessorGlobals = queryProcessor.queryProcessor;
204
- const { sendChatMessageTelegram } = mailing.mailing;
205
+ const { sendChatMessageTelegram: sendChatMessageTelegram$1 } = mailing.mailing;
205
206
  function formatPositions(positions) {
206
207
  return positions.map((pos) => `🔹 ${pos.name} - Price: $${pos.price}, Quantity: ${pos.quantity}`).join("\n");
207
208
  }
@@ -253,12 +254,12 @@ async function findOrCreateCustomer(Customer, customerInfo, orderOwner, orderCre
253
254
  async function sendOrderMessage(orderData) {
254
255
  try {
255
256
  const formattedMessage = formatOrderMessage(orderData);
256
- await sendChatMessageTelegram(process.env.TELEGRAM_BOT_USERS.split(","), formattedMessage);
257
+ await sendChatMessageTelegram$1(process.env.TELEGRAM_BOT_USERS.split(","), formattedMessage);
257
258
  } catch (err) {
258
259
  console.error(err);
259
260
  }
260
261
  }
261
- const controllerFactory$1 = (db) => {
262
+ const controllerFactory$2 = (db) => {
262
263
  const Order = db.order;
263
264
  const Customer = db.customer;
264
265
  const Leftover = db.leftover;
@@ -408,12 +409,12 @@ const controllerFactory$1 = (db) => {
408
409
  deleteOrder
409
410
  };
410
411
  };
411
- var orders_controller = controllerFactory$1;
412
- const controllerFactory = orders_controller;
413
- const middlewareFactoryAuth = index.middlewares;
412
+ var orders_controller = controllerFactory$2;
413
+ const controllerFactory$1 = orders_controller;
414
+ const middlewareFactoryAuth$1 = index.middlewares;
414
415
  var orders_routes = function(app, db, origins, publicPath) {
415
- const controller = controllerFactory(db);
416
- middlewareFactoryAuth(db);
416
+ const controller = controllerFactory$1(db);
417
+ middlewareFactoryAuth$1(db);
417
418
  app.post(
418
419
  "/api/orders/create",
419
420
  // [
@@ -440,7 +441,154 @@ var orders_routes = function(app, db, origins, publicPath) {
440
441
  controller.deleteOrder
441
442
  );
442
443
  };
443
- const NodeCache = require$$0;
444
+ const axios = require$$0;
445
+ const { sendChatMessageTelegram } = mailing.mailing;
446
+ const middlewareFactory = (db) => {
447
+ const Application = db.application;
448
+ const read = async (req, res) => {
449
+ try {
450
+ const applications = await Application.find({});
451
+ if (!applications) {
452
+ return res.status(404).send({ message: "Applications not found." });
453
+ }
454
+ res.status(200).send(applications);
455
+ } catch (err) {
456
+ res.status(500).send({ message: err });
457
+ }
458
+ };
459
+ const create = async (req, res) => {
460
+ try {
461
+ const application = await Application.create(req.body);
462
+ if (!application) {
463
+ return res.status(404).send({ message: "Something wrong when creating application." });
464
+ }
465
+ try {
466
+ const messageSent = await sendChatMessageTelegram(process.env.TELEGRAM_BOT_USERS.split(","), `New application from ${req.body}`);
467
+ } catch (err) {
468
+ console.log(err);
469
+ }
470
+ res.status(200).send(application);
471
+ } catch (err) {
472
+ res.status(500).send({ message: err });
473
+ }
474
+ };
475
+ const update = async (req, res) => {
476
+ try {
477
+ const application = await Application.findOneAndUpdate({ _id: req.params._id }, req.body, { new: true });
478
+ if (!application) {
479
+ return res.status(404).send({ message: "Application not found." });
480
+ }
481
+ res.status(200).send(application);
482
+ } catch (err) {
483
+ res.status(500).send({ message: err });
484
+ }
485
+ };
486
+ const deleteMethod = async (req, res) => {
487
+ try {
488
+ const application = await Application.findOneAndDelete({ _id: req.params._id });
489
+ if (!application) {
490
+ return res.status(404).send({ message: "Something wrong when deleting application." });
491
+ }
492
+ res.status(200).send(application);
493
+ } catch (err) {
494
+ res.status(500).send({ message: err });
495
+ }
496
+ };
497
+ const get = async (req, res) => {
498
+ try {
499
+ const application = await Application.findOne({ url: req.params.url });
500
+ if (!application) {
501
+ return res.status(404).send({ message: "Application not found." });
502
+ }
503
+ res.status(200).send(application);
504
+ } catch (err) {
505
+ res.status(500).send({ message: err });
506
+ }
507
+ };
508
+ const handleTelegramWebhook = async (req, res) => {
509
+ const update2 = req.body;
510
+ if (update2.callback_query) {
511
+ const callbackQuery = update2.callback_query;
512
+ const callbackData = callbackQuery.data;
513
+ const [action, applicationId] = callbackData.split("_");
514
+ try {
515
+ let updatedApplication = null;
516
+ switch (action) {
517
+ case "confirm":
518
+ updatedApplication = await Application.findOneAndUpdate(
519
+ { _id: applicationId },
520
+ { status: "confirmed" },
521
+ { new: true }
522
+ );
523
+ break;
524
+ case "lost":
525
+ updatedApplication = await Application.findOneAndUpdate(
526
+ { _id: applicationId },
527
+ { status: "lost" },
528
+ { new: true }
529
+ );
530
+ break;
531
+ case "delete":
532
+ updatedApplication = await Application.findOneAndDelete({ _id: applicationId });
533
+ break;
534
+ }
535
+ if (!updatedApplication) {
536
+ console.log("Application not found or not updated.");
537
+ } else {
538
+ console.log("Application updated:", updatedApplication);
539
+ }
540
+ } catch (err) {
541
+ console.log("Error updating application:", err);
542
+ }
543
+ const queryId = callbackQuery.id;
544
+ const telegramToken = "6206215053:AAHYCYzpFZF9jDZC-TC03NSff8oo2ExqsSU";
545
+ axios.post(`https://api.telegram.org/bot${telegramToken}/answerCallbackQuery`, {
546
+ callback_query_id: queryId
547
+ });
548
+ }
549
+ res.sendStatus(200);
550
+ };
551
+ return {
552
+ read,
553
+ create,
554
+ update,
555
+ delete: deleteMethod,
556
+ handleTelegramWebhook,
557
+ get
558
+ };
559
+ };
560
+ var applications_controller = middlewareFactory;
561
+ const controllerFactory = applications_controller;
562
+ const middlewareFactoryAuth = index.middlewares;
563
+ var applications_routes = function(app, db, origins) {
564
+ const controller = controllerFactory(db);
565
+ middlewareFactoryAuth(db);
566
+ app.post(
567
+ "/applications",
568
+ controller.create
569
+ );
570
+ app.get(
571
+ "/applications",
572
+ controller.read
573
+ );
574
+ app.post(
575
+ "/applications/:_id",
576
+ controller.update
577
+ );
578
+ app.delete(
579
+ "/applications/:_id",
580
+ controller.delete
581
+ );
582
+ app.get(
583
+ "/applications/:_id",
584
+ controller.get
585
+ );
586
+ app.post(
587
+ "/applications/telegram-webhook",
588
+ controller.handleTelegramWebhook
589
+ );
590
+ };
591
+ const NodeCache = require$$0$1;
444
592
  const stdTTL = 60 * 5;
445
593
  let Cache$1 = class Cache {
446
594
  constructor(ttlSeconds = stdTTL) {
@@ -597,6 +745,7 @@ const ModelCustomer = customer_model;
597
745
  const ModelTestimonial = testimonial_model;
598
746
  const ModelApplication = application_model;
599
747
  const RoutesOrder = orders_routes;
748
+ const RoutesApplications = applications_routes;
600
749
  const FactoryOrder = orders_controller;
601
750
  const CRUD2 = globals_crud;
602
751
  function initializeOrders(app, db, origins, publicPath) {
@@ -606,8 +755,9 @@ function initializeOrders(app, db, origins, publicPath) {
606
755
  db.application = ModelApplication(db);
607
756
  if (app) {
608
757
  RoutesOrder(app, db);
758
+ RoutesApplications(app, db);
759
+ new CRUD2("/api/customers", app, db, db.customer);
609
760
  }
610
- new CRUD2("/api/customers", app, db, db.customer);
611
761
  }
612
762
  var orders_server = {
613
763
  initialize: initializeOrders,
@@ -3,9 +3,10 @@ import { o as ownership_schema } from "./ownership.schema-oyx6eNkZ.mjs";
3
3
  import { p as profile_schema } from "./profile.schema-24ZpZQJe.mjs";
4
4
  import { c as credentials_schema } from "./credentials.schema-C9dmNy7o.mjs";
5
5
  import { q as queryProcessor } from "./queryProcessor-DQSFR9YA.mjs";
6
- import { m as mailing } from "./mailing-Cdp8NXhP.mjs";
6
+ import { m as mailing } from "./mailing-C3VD4l0h.mjs";
7
7
  import { m as middlewares } from "./index-DahVPg_G.mjs";
8
- import require$$0 from "node-cache";
8
+ import require$$0 from "axios";
9
+ import require$$0$1 from "node-cache";
9
10
  const applyOwnershipSchema$1 = ownership_schema;
10
11
  var order_model = (db) => {
11
12
  const OrderSchema = new db.mongoose.Schema({
@@ -200,7 +201,7 @@ var application_model = (db) => {
200
201
  return Application;
201
202
  };
202
203
  const queryProcessorGlobals = queryProcessor;
203
- const { sendChatMessageTelegram } = mailing;
204
+ const { sendChatMessageTelegram: sendChatMessageTelegram$1 } = mailing;
204
205
  function formatPositions(positions) {
205
206
  return positions.map((pos) => `🔹 ${pos.name} - Price: $${pos.price}, Quantity: ${pos.quantity}`).join("\n");
206
207
  }
@@ -252,12 +253,12 @@ async function findOrCreateCustomer(Customer, customerInfo, orderOwner, orderCre
252
253
  async function sendOrderMessage(orderData) {
253
254
  try {
254
255
  const formattedMessage = formatOrderMessage(orderData);
255
- await sendChatMessageTelegram(process.env.TELEGRAM_BOT_USERS.split(","), formattedMessage);
256
+ await sendChatMessageTelegram$1(process.env.TELEGRAM_BOT_USERS.split(","), formattedMessage);
256
257
  } catch (err) {
257
258
  console.error(err);
258
259
  }
259
260
  }
260
- const controllerFactory$1 = (db) => {
261
+ const controllerFactory$2 = (db) => {
261
262
  const Order = db.order;
262
263
  const Customer = db.customer;
263
264
  const Leftover = db.leftover;
@@ -407,12 +408,12 @@ const controllerFactory$1 = (db) => {
407
408
  deleteOrder
408
409
  };
409
410
  };
410
- var orders_controller = controllerFactory$1;
411
- const controllerFactory = orders_controller;
412
- const middlewareFactoryAuth = middlewares;
411
+ var orders_controller = controllerFactory$2;
412
+ const controllerFactory$1 = orders_controller;
413
+ const middlewareFactoryAuth$1 = middlewares;
413
414
  var orders_routes = function(app, db, origins, publicPath) {
414
- const controller = controllerFactory(db);
415
- middlewareFactoryAuth(db);
415
+ const controller = controllerFactory$1(db);
416
+ middlewareFactoryAuth$1(db);
416
417
  app.post(
417
418
  "/api/orders/create",
418
419
  // [
@@ -439,7 +440,154 @@ var orders_routes = function(app, db, origins, publicPath) {
439
440
  controller.deleteOrder
440
441
  );
441
442
  };
442
- const NodeCache = require$$0;
443
+ const axios = require$$0;
444
+ const { sendChatMessageTelegram } = mailing;
445
+ const middlewareFactory = (db) => {
446
+ const Application = db.application;
447
+ const read = async (req, res) => {
448
+ try {
449
+ const applications = await Application.find({});
450
+ if (!applications) {
451
+ return res.status(404).send({ message: "Applications not found." });
452
+ }
453
+ res.status(200).send(applications);
454
+ } catch (err) {
455
+ res.status(500).send({ message: err });
456
+ }
457
+ };
458
+ const create = async (req, res) => {
459
+ try {
460
+ const application = await Application.create(req.body);
461
+ if (!application) {
462
+ return res.status(404).send({ message: "Something wrong when creating application." });
463
+ }
464
+ try {
465
+ const messageSent = await sendChatMessageTelegram(process.env.TELEGRAM_BOT_USERS.split(","), `New application from ${req.body}`);
466
+ } catch (err) {
467
+ console.log(err);
468
+ }
469
+ res.status(200).send(application);
470
+ } catch (err) {
471
+ res.status(500).send({ message: err });
472
+ }
473
+ };
474
+ const update = async (req, res) => {
475
+ try {
476
+ const application = await Application.findOneAndUpdate({ _id: req.params._id }, req.body, { new: true });
477
+ if (!application) {
478
+ return res.status(404).send({ message: "Application not found." });
479
+ }
480
+ res.status(200).send(application);
481
+ } catch (err) {
482
+ res.status(500).send({ message: err });
483
+ }
484
+ };
485
+ const deleteMethod = async (req, res) => {
486
+ try {
487
+ const application = await Application.findOneAndDelete({ _id: req.params._id });
488
+ if (!application) {
489
+ return res.status(404).send({ message: "Something wrong when deleting application." });
490
+ }
491
+ res.status(200).send(application);
492
+ } catch (err) {
493
+ res.status(500).send({ message: err });
494
+ }
495
+ };
496
+ const get = async (req, res) => {
497
+ try {
498
+ const application = await Application.findOne({ url: req.params.url });
499
+ if (!application) {
500
+ return res.status(404).send({ message: "Application not found." });
501
+ }
502
+ res.status(200).send(application);
503
+ } catch (err) {
504
+ res.status(500).send({ message: err });
505
+ }
506
+ };
507
+ const handleTelegramWebhook = async (req, res) => {
508
+ const update2 = req.body;
509
+ if (update2.callback_query) {
510
+ const callbackQuery = update2.callback_query;
511
+ const callbackData = callbackQuery.data;
512
+ const [action, applicationId] = callbackData.split("_");
513
+ try {
514
+ let updatedApplication = null;
515
+ switch (action) {
516
+ case "confirm":
517
+ updatedApplication = await Application.findOneAndUpdate(
518
+ { _id: applicationId },
519
+ { status: "confirmed" },
520
+ { new: true }
521
+ );
522
+ break;
523
+ case "lost":
524
+ updatedApplication = await Application.findOneAndUpdate(
525
+ { _id: applicationId },
526
+ { status: "lost" },
527
+ { new: true }
528
+ );
529
+ break;
530
+ case "delete":
531
+ updatedApplication = await Application.findOneAndDelete({ _id: applicationId });
532
+ break;
533
+ }
534
+ if (!updatedApplication) {
535
+ console.log("Application not found or not updated.");
536
+ } else {
537
+ console.log("Application updated:", updatedApplication);
538
+ }
539
+ } catch (err) {
540
+ console.log("Error updating application:", err);
541
+ }
542
+ const queryId = callbackQuery.id;
543
+ const telegramToken = "6206215053:AAHYCYzpFZF9jDZC-TC03NSff8oo2ExqsSU";
544
+ axios.post(`https://api.telegram.org/bot${telegramToken}/answerCallbackQuery`, {
545
+ callback_query_id: queryId
546
+ });
547
+ }
548
+ res.sendStatus(200);
549
+ };
550
+ return {
551
+ read,
552
+ create,
553
+ update,
554
+ delete: deleteMethod,
555
+ handleTelegramWebhook,
556
+ get
557
+ };
558
+ };
559
+ var applications_controller = middlewareFactory;
560
+ const controllerFactory = applications_controller;
561
+ const middlewareFactoryAuth = middlewares;
562
+ var applications_routes = function(app, db, origins) {
563
+ const controller = controllerFactory(db);
564
+ middlewareFactoryAuth(db);
565
+ app.post(
566
+ "/applications",
567
+ controller.create
568
+ );
569
+ app.get(
570
+ "/applications",
571
+ controller.read
572
+ );
573
+ app.post(
574
+ "/applications/:_id",
575
+ controller.update
576
+ );
577
+ app.delete(
578
+ "/applications/:_id",
579
+ controller.delete
580
+ );
581
+ app.get(
582
+ "/applications/:_id",
583
+ controller.get
584
+ );
585
+ app.post(
586
+ "/applications/telegram-webhook",
587
+ controller.handleTelegramWebhook
588
+ );
589
+ };
590
+ const NodeCache = require$$0$1;
443
591
  const stdTTL = 60 * 5;
444
592
  let Cache$1 = class Cache {
445
593
  constructor(ttlSeconds = stdTTL) {
@@ -596,6 +744,7 @@ const ModelCustomer = customer_model;
596
744
  const ModelTestimonial = testimonial_model;
597
745
  const ModelApplication = application_model;
598
746
  const RoutesOrder = orders_routes;
747
+ const RoutesApplications = applications_routes;
599
748
  const FactoryOrder = orders_controller;
600
749
  const CRUD2 = globals_crud;
601
750
  function initializeOrders(app, db, origins, publicPath) {
@@ -605,8 +754,9 @@ function initializeOrders(app, db, origins, publicPath) {
605
754
  db.application = ModelApplication(db);
606
755
  if (app) {
607
756
  RoutesOrder(app, db);
757
+ RoutesApplications(app, db);
758
+ new CRUD2("/api/customers", app, db, db.customer);
608
759
  }
609
- new CRUD2("/api/customers", app, db, db.customer);
610
760
  }
611
761
  var orders_server = {
612
762
  initialize: initializeOrders,
@@ -8,7 +8,7 @@ const require$$0 = require("mongoose");
8
8
  const require$$5 = require("@googlemaps/google-maps-services-js");
9
9
  const addMembersQuantity$1 = require("./addMembersQuantity-B8UgqlUM.js");
10
10
  const queryProcessor = require("./queryProcessor-iewDZq_f.js");
11
- const mailing = require("./mailing-BX0q8DIs.js");
11
+ const mailing = require("./mailing-BQKyTI-q.js");
12
12
  const index = require("./index-oS9yx2Kv.js");
13
13
  const engagement_schema = require("./engagement.schema-D-9md46B.js");
14
14
  const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
@@ -7,7 +7,7 @@ import require$$0 from "mongoose";
7
7
  import require$$5 from "@googlemaps/google-maps-services-js";
8
8
  import { a as addUserStatusFields_1, b as addMembersQuantity_1 } from "./addMembersQuantity-BXp_LeQd.mjs";
9
9
  import { q as queryProcessor } from "./queryProcessor-DQSFR9YA.mjs";
10
- import { m as mailing } from "./mailing-Cdp8NXhP.mjs";
10
+ import { m as mailing } from "./mailing-C3VD4l0h.mjs";
11
11
  import { m as middlewares } from "./index-DahVPg_G.mjs";
12
12
  import { e as engagement_schema } from "./engagement.schema-CCdSLKd4.mjs";
13
13
  import { o as ownership_schema } from "./ownership.schema-oyx6eNkZ.mjs";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/layouts/Auth.vue.cjs"),t=require("./components/pages/EnterCode.vue.cjs"),r=require("./components/pages/Invite.vue.cjs"),u=require("./components/pages/EnterPassword.vue.cjs"),o=require("./components/pages/ResetPassword.vue.cjs"),s=require("./components/pages/SignUp.vue.cjs"),n=require("./components/pages/SignIn.vue.cjs"),a=require("./components/sections/SliderFeatures.vue.cjs"),i=require("./store/auth.cjs"),d=require("./store/twofa.cjs"),l=require("./router/auth.cjs");exports.Auth=e.default;exports.EnterCode=t.default;exports.Invite=r.default;exports.EnterPassword=u.default;exports.ResetPassword=o.default;exports.SignUp=s.default;exports.SignIn=n.default;exports.SliderFeatures=a.default;exports.authStore=i;exports.twofaStore=d;exports.authRoutes=l.default;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./views/store/auth.cjs"),r=require("./views/store/twofa.cjs"),u=require("./views/router/auth.cjs"),s=require("./views/components/layouts/Auth.vue.cjs"),a=require("./views/components/pages/EnterCode.vue.cjs"),d=require("./views/components/pages/Invite.vue.cjs"),l=require("./views/components/pages/EnterPassword.vue.cjs"),c=require("./views/components/pages/ResetPassword.vue.cjs"),f=require("./views/components/pages/SignUp.vue.cjs"),q=require("./views/components/pages/SignIn.vue.cjs"),S=require("./views/components/sections/SliderFeatures.vue.cjs");function h(g,e,o,i={}){const n=i.route||"Home";o.addRoute(n,u.default),e.addStore("auth",t),e.addStore("twofa",r)}const w={initialize:h,views:{store:{storeAuth:t,storeTwofa:r},router:{routerAuth:u.default},components:{Auth:s.default,EnterCode:a.default,Invite:d.default,EnterPassword:l.default,ResetPassword:c.default,SignUp:f.default,SignIn:q.default,SliderFeatures:S.default}}};exports.default=w;
@@ -1,24 +1,43 @@
1
- import { default as a } from "./components/layouts/Auth.vue.js";
2
- import { default as s } from "./components/pages/EnterCode.vue.js";
3
- import { default as p } from "./components/pages/Invite.vue.js";
4
- import { default as m } from "./components/pages/EnterPassword.vue.js";
5
- import { default as l } from "./components/pages/ResetPassword.vue.js";
6
- import { default as n } from "./components/pages/SignUp.vue.js";
7
- import { default as h } from "./components/pages/SignIn.vue.js";
8
- import { default as g } from "./components/sections/SliderFeatures.vue.js";
9
- import * as t from "./store/auth.js";
10
- import * as e from "./store/twofa.js";
11
- import { default as I } from "./router/auth.js";
1
+ import * as t from "./views/store/auth.js";
2
+ import * as r from "./views/store/twofa.js";
3
+ import i from "./views/router/auth.js";
4
+ import f from "./views/components/layouts/Auth.vue.js";
5
+ import s from "./views/components/pages/EnterCode.vue.js";
6
+ import n from "./views/components/pages/Invite.vue.js";
7
+ import u from "./views/components/pages/EnterPassword.vue.js";
8
+ import p from "./views/components/pages/ResetPassword.vue.js";
9
+ import _ from "./views/components/pages/SignUp.vue.js";
10
+ import c from "./views/components/pages/SignIn.vue.js";
11
+ import d from "./views/components/sections/SliderFeatures.vue.js";
12
+ function h($, o, m, a = {}) {
13
+ const e = a.route || "Home";
14
+ m.addRoute(e, i), o.addStore("auth", t), o.addStore("twofa", r);
15
+ }
16
+ const P = {
17
+ initialize: h,
18
+ views: {
19
+ store: {
20
+ storeAuth: t,
21
+ storeTwofa: r
22
+ },
23
+ router: {
24
+ routerAuth: i
25
+ },
26
+ components: {
27
+ // Layout
28
+ Auth: f,
29
+ // Pages
30
+ EnterCode: s,
31
+ Invite: n,
32
+ EnterPassword: u,
33
+ ResetPassword: p,
34
+ SignUp: _,
35
+ SignIn: c,
36
+ // Sections
37
+ SliderFeatures: d
38
+ }
39
+ }
40
+ };
12
41
  export {
13
- a as Auth,
14
- s as EnterCode,
15
- m as EnterPassword,
16
- p as Invite,
17
- l as ResetPassword,
18
- h as SignIn,
19
- n as SignUp,
20
- g as SliderFeatures,
21
- I as authRoutes,
22
- t as authStore,
23
- e as twofaStore
42
+ P as default
24
43
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */;/* empty css */require("vue-i18n");;/* empty css */const r=require("vue-router");require("../../store/auth.cjs");const n={class:"cols-2-1_2 gap-small pd-small bg-white"},u=e.createElementVNode("section",{class:"w-100 desktop-only o-hidden radius-big bg-grad-main"},null,-1),s={__name:"Auth",setup(a){return e.ref(null),e.ref(null),e.ref(null),r.useRoute(),r.useRouter(),e.ref("email"),(o,c)=>{const t=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",n,[e.createVNode(t,{class:"pd-medium br-solid br-1px br-grey-transp-25 radius-big w-m-66r t-center"},{default:e.withCtx(({Component:l,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{ref:"page",key:i.path,localPosition:o.localPosition},null,8,["localPosition"]))]),_:2},1024)]),_:1}),u])}}};exports.default=s;
@@ -0,0 +1,41 @@
1
+ import { ref as e, resolveComponent as a, openBlock as o, createElementBlock as m, createVNode as t, withCtx as r, Transition as c, createBlock as p, resolveDynamicComponent as u, createElementVNode as d } from "vue";
2
+ /* empty css */
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ import "vue-i18n";
7
+ /* empty css */
8
+ import { useRoute as _, useRouter as f } from "vue-router";
9
+ import "../../store/auth.js";
10
+ const g = { class: "cols-2-1_2 gap-small pd-small bg-white" }, h = /* @__PURE__ */ d("section", { class: "w-100 desktop-only o-hidden radius-big bg-grad-main" }, null, -1), R = {
11
+ __name: "Auth",
12
+ setup(b) {
13
+ return e(null), e(null), e(null), _(), f(), e("email"), (l, w) => {
14
+ const i = a("router-view");
15
+ return o(), m("div", g, [
16
+ t(i, { class: "pd-medium br-solid br-1px br-grey-transp-25 radius-big w-m-66r t-center" }, {
17
+ default: r(({ Component: n, route: s }) => [
18
+ t(c, {
19
+ name: "scaleIn",
20
+ mode: "out-in"
21
+ }, {
22
+ default: r(() => [
23
+ (o(), p(u(n), {
24
+ ref: "page",
25
+ key: s.path,
26
+ localPosition: l.localPosition
27
+ }, null, 8, ["localPosition"]))
28
+ ]),
29
+ _: 2
30
+ }, 1024)
31
+ ]),
32
+ _: 1
33
+ }),
34
+ h
35
+ ]);
36
+ };
37
+ }
38
+ };
39
+ export {
40
+ R as default
41
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");;/* empty css */const f=require("vue-router"),w=require("vue-i18n"),E=require("../../store/auth.cjs"),p=require("../../store/twofa.cjs"),c=require("../../../../globals/store/globals.cjs"),S=require("../../localization/EnterCode.json.cjs"),q={class:"t-center pd-medium"},D={class:"mn-b-medium"},I={class:"mn-b-big t-transp"},k={class:"w-100 mn-b-big flex-nowrap flex"},C={key:1},N={__name:"EnterCode",setup(V){const g=f.useRoute(),v=f.useRouter(),{t:d}=w.useI18n({useScope:"global",...S.default}),o=n.reactive({digits:["","","",""],error:null});n.watch(()=>o.digits[0],s=>{if(s&&String(s).length>1){let e=String(s).split("");console.log(e);let t=[...o.digits];e.forEach((l,r)=>{console.log(r),console.log(t[r]),console.log(l),t[r]=l}),o.digits=t,u(3)}});const m=n.ref(null),i=n.ref(0);async function y(){try{await p.sendCode(E.state.user,g.query.method,g.query.type),i.value=30;const s=setInterval(()=>{i.value>0?i.value-=1:clearInterval(s)},1e3)}catch{c.setError({response:{data:{errorCode:"CODE_NOT_SENT"}}})}}const a=(s,e)=>{if(s.key==="Backspace"&&(o.digits[e]===null||o.digits[e]===void 0||o.digits[e]==="")){s.preventDefault();const t=document.querySelectorAll("input"),l=e>0?t[e-1]:null;l&&(l.focus(),l.setSelectionRange(l.value.length,l.value.length))}},u=s=>{const e=document.querySelectorAll("input"),t=e[s+1],l=s>0?e[s-1]:null;if(o.digits[s]!==""&&o.digits[s]!==null&&o.digits[s]!==void 0&&s<4&&(s<3?t.focus():m.value.focus()),(o.digits[s]===null||o.digits[s]===void 0||o.digits[s]==="")&&s>0&&l.focus(),o.digits.every(r=>r!=="")){const r=o.digits.join(""),b=p.state.code.code.toString();r===b?(p.state.code.isValid=!0,v.push({path:"/auth/enter-password",query:{type:p.state.code.type,method:g.query.method}})):(c.setError({response:{data:{errorCode:"WRONG_CODE"}}}),m.value.focus(),o.digits=["","","",""])}};return(s,e)=>(n.openBlock(),n.createElementBlock("section",q,[n.createElementVNode("h3",D,n.toDisplayString(n.unref(d)("verifyNumberTitle")),1),n.createElementVNode("p",I,n.toDisplayString(n.unref(d)("instructions")),1),n.createElementVNode("div",k,[n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[0]||(e[0]=t=>o.digits[0]=t),ref_key:"firstInput",ref:m,maxlength:"1",onInput:e[1]||(e[1]=t=>u(0)),onPaste:e[2]||(e[2]=t=>s.onPaste(t,0)),onKeydown:e[3]||(e[3]=t=>a(t,0)),class:"w-100 h1 pd-small t-center bg-light radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[0]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[4]||(e[4]=t=>o.digits[1]=t),maxlength:"1",onInput:e[5]||(e[5]=t=>u(1)),onPaste:e[6]||(e[6]=t=>s.onPaste(t,1)),onKeydown:e[7]||(e[7]=t=>a(t,1)),class:"w-100 h1 pd-small t-center bg-light radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[1]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[8]||(e[8]=t=>o.digits[2]=t),maxlength:"1",onInput:e[9]||(e[9]=t=>u(2)),onPaste:e[10]||(e[10]=t=>s.onPaste(t,2)),onKeydown:e[11]||(e[11]=t=>a(t,2)),class:"w-100 h1 pd-small t-center bg-light radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[2]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[12]||(e[12]=t=>o.digits[3]=t),maxlength:"1",onInput:e[13]||(e[13]=t=>u(3)),onPaste:e[14]||(e[14]=t=>s.onPaste(t,3)),onKeydown:e[15]||(e[15]=t=>a(t,3)),class:"w-100 h1 pd-small t-center bg-light radius-small"},null,544),[[n.vModelText,o.digits[3]]])]),i.value<1?(n.openBlock(),n.createElementBlock("a",{key:0,onClick:y,class:"t-blue"},n.toDisplayString(n.unref(d)("resendCode")),1)):(n.openBlock(),n.createElementBlock("span",C,n.toDisplayString(i.value)+" "+n.toDisplayString(n.unref(d)("secondsResend")),1))]))}};exports.default=N;