@ozdao/prometheus-framework 0.2.128 → 0.2.129

Sign up to get free protection for your applications and to get access to all the features.
Files changed (396) hide show
  1. package/LICENSE +1 -1
  2. package/dist/auth.server.js +12 -14
  3. package/dist/auth.server.mjs +12 -14
  4. package/dist/community.server.js +1 -1
  5. package/dist/community.server.mjs +1 -1
  6. package/dist/events.server.js +1 -1
  7. package/dist/events.server.mjs +1 -1
  8. package/dist/files.server.js +1 -1
  9. package/dist/files.server.mjs +1 -1
  10. package/dist/gallery.server.js +6 -2
  11. package/dist/gallery.server.mjs +6 -2
  12. package/dist/{index-BCCiEK_u.js → index-BshfsiQG.js} +8 -4
  13. package/dist/{index-B6a1mPgp.mjs → index-DKtnWDNC.mjs} +8 -4
  14. package/dist/{main-CmL_j3wv.mjs → main-DvdaURTh.mjs} +3261 -3154
  15. package/dist/main-hLtpe4Hr.js +92 -0
  16. package/dist/main.css +1 -1
  17. package/dist/middlewares.server.js +1 -1
  18. package/dist/middlewares.server.mjs +1 -1
  19. package/dist/node_modules/zod/lib/index.cjs +1 -1
  20. package/dist/node_modules/zod/lib/index.js +1162 -1033
  21. package/dist/orders.server.js +1 -1
  22. package/dist/orders.server.mjs +1 -1
  23. package/dist/organizations.server.js +1 -1
  24. package/dist/organizations.server.mjs +1 -1
  25. package/dist/products.server.js +1 -1
  26. package/dist/products.server.mjs +1 -1
  27. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -1
  29. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  30. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +1 -89
  31. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
  33. package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.cjs +1 -0
  34. package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.js +73 -0
  35. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  36. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +23 -22
  37. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +1 -27
  39. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
  40. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +27 -1
  41. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +1 -58
  43. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  44. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +58 -1
  45. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +144 -112
  47. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +5 -5
  49. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -1
  51. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  52. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -127
  53. package/dist/prometheus-framework/src/components/Menu/MenuItem.vue.cjs +1 -0
  54. package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/MenuItem.vue.js +1 -1
  55. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -0
  56. package/dist/prometheus-framework/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue.js +6 -6
  57. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +77 -1
  59. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  60. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -77
  61. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -1
  63. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  64. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -103
  65. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
  67. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  68. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
  69. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/auth/store/auth.js +7 -6
  71. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +114 -77
  73. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +7 -22
  75. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +62 -70
  77. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +2 -2
  79. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  83. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +17 -16
  85. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  86. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +66 -0
  87. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  88. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
  89. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  91. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  95. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  97. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +5 -5
  101. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +9 -9
  103. package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.cjs +1 -0
  104. package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.js +18 -0
  105. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -0
  106. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +46 -0
  107. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +20 -16
  109. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +2 -2
  111. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +10 -10
  113. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  115. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +27 -4
  117. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +14 -12
  119. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +111 -93
  123. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  125. package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.js +13 -14
  127. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  129. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  131. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +20 -22
  133. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  135. package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +5 -4
  137. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
  141. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +4 -4
  143. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  145. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -0
  146. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +154 -0
  147. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  149. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  151. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
  157. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.cjs +1 -0
  158. package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.js +27 -0
  159. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +9 -7
  161. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  163. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +26 -27
  165. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  167. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  169. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +22 -23
  171. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  173. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +30 -29
  175. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +72 -51
  179. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +5 -5
  181. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +51 -53
  183. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +22 -22
  185. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  187. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  189. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +62 -48
  191. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +43 -44
  193. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +5 -5
  195. package/dist/prometheus-framework.cjs.js +1 -1
  196. package/dist/prometheus-framework.es.js +24 -25
  197. package/dist/reports.server.js +1 -1
  198. package/dist/reports.server.mjs +1 -1
  199. package/dist/style.css +1 -1
  200. package/dist/wallet.server.js +1 -1
  201. package/dist/wallet.server.mjs +1 -1
  202. package/dist/{web-Bk_OtXgv.js → web-CVIepGUM.js} +1 -1
  203. package/dist/{web-BHzpMOmk.mjs → web-Dt2JR41o.mjs} +1 -1
  204. package/package.json +3 -2
  205. package/src/{modules/mobile/components → components}/BottomSheet/BottomSheet.vue +24 -21
  206. package/src/components/Button/Button.vue +20 -3
  207. package/src/components/Feed/Feed.vue +28 -3
  208. package/src/components/FieldBig/FieldBig.vue +2 -2
  209. package/src/components/Sidebar/Sidebar.vue +13 -5
  210. package/src/components/index.js +0 -1
  211. package/src/main.js +0 -4
  212. package/src/modules/auth/controllers/auth.controller.js +14 -16
  213. package/src/modules/auth/router/auth.js +1 -4
  214. package/src/modules/auth/store/auth.js +28 -24
  215. package/src/modules/backoffice/components/pages/Dashboard.vue +29 -56
  216. package/src/modules/backoffice/router/backoffice.js +4 -15
  217. package/src/modules/community/components/blocks/CardBlogpost.vue +28 -26
  218. package/src/modules/community/components/layouts/Community.vue +1 -1
  219. package/src/modules/events/components/pages/EditEvent.vue +1 -1
  220. package/src/modules/gallery/components/pages/Gallery.vue +1 -2
  221. package/src/modules/gallery/components/sections/BackofficeGallery.vue +2 -1
  222. package/src/modules/gallery/router/gallery.backoffice.router.js +14 -0
  223. package/src/modules/globals/components/blocks/BlockFilter.vue +44 -0
  224. package/src/modules/globals/components/blocks/CardHeader.vue +5 -3
  225. package/src/modules/globals/components/layouts/Client.vue +99 -43
  226. package/src/modules/globals/components/pages/401.vue +5 -0
  227. package/src/modules/globals/components/pages/404.vue +5 -0
  228. package/src/modules/globals/components/partials/Footer.vue +17 -5
  229. package/src/modules/globals/components/partials/Header.vue +37 -18
  230. package/src/modules/globals/components/partials/Navigation.vue +7 -2
  231. package/src/modules/landing/components/sections/MobileApp.vue +2 -2
  232. package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
  233. package/src/modules/landing/router/landing.js +2 -12
  234. package/src/modules/legal/components/pages/Legal.vue +2 -2
  235. package/src/modules/marketplace/components/layouts/Marketplace.vue +30 -13
  236. package/src/modules/marketplace/components/pages/Catalog.vue +2 -1
  237. package/src/modules/marketplace/router/marketplace.js +12 -10
  238. package/src/modules/marketplace/store/marketplace.js +25 -1
  239. package/src/modules/middlewares/client/auth.validation.js +5 -2
  240. package/src/modules/middlewares/server/authJwt.js +12 -6
  241. package/src/modules/middlewares/server/verifyAccesses.js +7 -3
  242. package/src/modules/orders/components/pages/OrderCreate.vue +34 -22
  243. package/src/modules/orders/components/sections/AskToLogin.vue +8 -7
  244. package/src/modules/orders/components/sections/FormDelivery.vue +6 -6
  245. package/src/modules/orders/router/orders.router.js +6 -3
  246. package/src/modules/organizations/components/pages/Members.vue +2 -2
  247. package/src/modules/organizations/components/pages/Organization.vue +2 -2
  248. package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +204 -0
  249. package/src/modules/organizations/router/backoffice.router.js +25 -0
  250. package/src/modules/organizations/router/organizations.js +3 -1
  251. package/src/modules/pages/router/pages.router.js +15 -0
  252. package/src/modules/products/components/blocks/ImagesThumbnails.vue +11 -12
  253. package/src/modules/products/components/pages/Product.vue +7 -3
  254. package/src/modules/products/components/pages/ProductRecommmendation.vue +6 -5
  255. package/src/modules/products/components/sections/FilterProducts.vue +6 -6
  256. package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
  257. package/src/modules/products/components/sections/PopularProducts.vue +1 -3
  258. package/src/modules/products/components/sections/SectionProduct.vue +8 -8
  259. package/src/modules/spots/components/layouts/Spots.vue +33 -31
  260. package/src/modules/spots/components/pages/Map.vue +380 -353
  261. package/src/modules/spots/router/spots.js +3 -1
  262. package/src/modules/users/components/pages/Profile.vue +4 -4
  263. package/src/modules/users/components/pages/ProfileEdit.vue +4 -3
  264. package/src/modules/wallet/controllers/routes/payments.routes.js +0 -1
  265. package/src/styles/base/all.scss +4 -0
  266. package/src/styles/config.scss +2 -1
  267. package/src/styles/layout.scss +0 -1
  268. package/dist/credentials.schema-CDZCKfEI.mjs +0 -106
  269. package/dist/credentials.schema-CfhPcsuI.js +0 -105
  270. package/dist/index-CGIn4v5E.mjs +0 -217
  271. package/dist/index-CL9l0HRS.js +0 -216
  272. package/dist/main-8APITHuW.mjs +0 -14201
  273. package/dist/main-8N2Jmsuk.js +0 -91
  274. package/dist/main-BJvlNekm.mjs +0 -13631
  275. package/dist/main-BQisDfLk.js +0 -92
  276. package/dist/main-BV1Yv9Hy.js +0 -92
  277. package/dist/main-Ba3zK8PO.js +0 -92
  278. package/dist/main-Btlny-89.mjs +0 -14207
  279. package/dist/main-Bw0PvTs-.mjs +0 -13616
  280. package/dist/main-ByCtZbHD.mjs +0 -13752
  281. package/dist/main-CF35oB7q.js +0 -92
  282. package/dist/main-CX2ISR43.mjs +0 -13629
  283. package/dist/main-CXObXjv-.js +0 -92
  284. package/dist/main-CkeuHuCY.mjs +0 -13619
  285. package/dist/main-CnfcBov2.mjs +0 -13740
  286. package/dist/main-D0va05OD.js +0 -92
  287. package/dist/main-D50VqYhy.js +0 -91
  288. package/dist/main-D8gNZLSa.js +0 -92
  289. package/dist/main-DL3vRQCi.js +0 -92
  290. package/dist/main-DPsHxX0l.mjs +0 -13633
  291. package/dist/main-DTlUA63C.mjs +0 -13617
  292. package/dist/main-DfD5hLQo.mjs +0 -13633
  293. package/dist/main-Dh6Zfei9.js +0 -92
  294. package/dist/main-DmNP-t33.mjs +0 -13625
  295. package/dist/main-Ds3Z5x5d.mjs +0 -14206
  296. package/dist/main-DwyUYWFX.js +0 -92
  297. package/dist/main-VcxO-jAt.js +0 -92
  298. package/dist/main-cffh4bbv.js +0 -92
  299. package/dist/main-o_2eO2tP.mjs +0 -14208
  300. package/dist/main-pGo7JpSP.js +0 -92
  301. package/dist/metadata.schema-BLGSCSmy.mjs +0 -55
  302. package/dist/metadata.schema-Cu_mPkjE.js +0 -77
  303. package/dist/metadata.schema-DWR97jhW.js +0 -54
  304. package/dist/metadata.schema-cbFgazeK.mjs +0 -78
  305. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +0 -1
  306. package/dist/node_modules/@noble/hashes/esm/sha512.js +0 -126
  307. package/dist/node_modules/vue-meta/dist/vue-meta.esm-browser.min.cjs +0 -7
  308. package/dist/node_modules/vue-meta/dist/vue-meta.esm-browser.min.js +0 -38
  309. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/mergeArrays.cjs +0 -2
  310. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js +0 -43
  311. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +0 -1
  312. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +0 -1
  313. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +0 -1
  314. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +0 -373
  315. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +0 -1
  316. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +0 -1
  317. package/dist/prometheus-framework/src/components/FieldPhone/utils.cjs +0 -1
  318. package/dist/prometheus-framework/src/components/FieldPhone/utils.js +0 -259
  319. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.cjs +0 -1
  320. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.js +0 -62
  321. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +0 -1
  322. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +0 -1
  323. package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue.cjs +0 -1
  324. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +0 -1
  325. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +0 -1
  326. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +0 -1
  327. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +0 -110
  328. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +0 -1
  329. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +0 -1
  330. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.cjs +0 -1
  331. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.js +0 -27
  332. package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.cjs +0 -1
  333. package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.js +0 -29
  334. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +0 -1
  335. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +0 -1
  336. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +0 -65
  337. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +0 -1
  338. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +0 -87
  339. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +0 -1
  340. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +0 -1
  341. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.cjs +0 -1
  342. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.js +0 -51
  343. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +0 -1
  344. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +0 -1
  345. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +0 -1
  346. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +0 -53
  347. package/dist/queryProcessor-BJdKh0Ow.mjs +0 -162
  348. package/dist/queryProcessor-BJoJAetd.mjs +0 -162
  349. package/dist/queryProcessor-BUDoM96e.js +0 -148
  350. package/dist/queryProcessor-Cl6sU582.mjs +0 -149
  351. package/dist/queryProcessor-DRMo_GWK.js +0 -161
  352. package/dist/queryProcessor-DWf9tsis.js +0 -161
  353. package/dist/web-B2xhKZNK.js +0 -1
  354. package/dist/web-B8tq3Fda.mjs +0 -54
  355. package/dist/web-BDaOF322.js +0 -1
  356. package/dist/web-BEJCRWop.mjs +0 -54
  357. package/dist/web-BNKN7kk3.mjs +0 -54
  358. package/dist/web-BX5um81l.js +0 -1
  359. package/dist/web-ByJkgGrt.js +0 -1
  360. package/dist/web-C0sFgeYh.mjs +0 -54
  361. package/dist/web-CQQEUA9l.js +0 -1
  362. package/dist/web-CQiHBOEN.mjs +0 -54
  363. package/dist/web-CXzcKdk4.mjs +0 -54
  364. package/dist/web-CciQvENI.js +0 -1
  365. package/dist/web-CkrMHYIU.js +0 -1
  366. package/dist/web-CtVocufd.js +0 -1
  367. package/dist/web-CvRd3N_J.mjs +0 -54
  368. package/dist/web-D0ugI6ra.js +0 -1
  369. package/dist/web-D2Em-p-C.mjs +0 -54
  370. package/dist/web-D9Cfcy5k.js +0 -1
  371. package/dist/web-DEysqj0n.js +0 -1
  372. package/dist/web-DNq1tHCE.mjs +0 -54
  373. package/dist/web-DTzbVshr.mjs +0 -54
  374. package/dist/web-Douq6xn6.js +0 -1
  375. package/dist/web-DtWmpLE-.mjs +0 -54
  376. package/dist/web-TGdVOTnw.js +0 -1
  377. package/dist/web-VFuzUsNl.mjs +0 -54
  378. package/dist/web-_W9a_nWD.mjs +0 -54
  379. package/dist/web-kg3KgbAF.js +0 -1
  380. package/dist/web-nVxTNRH4.mjs +0 -54
  381. package/src/components/Magnifier/Magnifier.vue +0 -89
  382. /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue.cjs +0 -0
  383. /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue.js +0 -0
  384. /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue2.cjs +0 -0
  385. /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue2.js +0 -0
  386. /package/dist/prometheus-framework/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue2.cjs +0 -0
  387. /package/dist/prometheus-framework/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue2.js +0 -0
  388. /package/src/{modules/mobile/components → components}/Menu/Menu.vue +0 -0
  389. /package/src/{modules/mobile/components → components}/Menu/MenuItem.vue +0 -0
  390. /package/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue +0 -0
  391. /package/src/modules/{mobile/components/BottomNavigation → globals/components/partials}/BottomNavigation.vue +0 -0
  392. /package/src/modules/{mobile/components/NavigationBar → globals/components/partials}/NavigationBar.vue +0 -0
  393. /package/src/modules/{mobile/components/Walkthrough → globals/components/sections}/Walkthrough.vue +0 -0
  394. /package/src/modules/{landing → pages}/components/pages/Page.vue +0 -0
  395. /package/src/modules/{backoffice/components/admin → pages/components/pages}/PageEdit.vue +0 -0
  396. /package/src/modules/{backoffice/components/admin → pages/components/pages}/Pages.vue +0 -0
@@ -1,103 +1 @@
1
- import { ref as y, computed as M, watch as N, openBlock as s, createElementBlock as n, Fragment as b, withDirectives as k, withModifiers as w, normalizeClass as S, createElementVNode as u, toDisplayString as d, createCommentVNode as m, createVNode as _, Transition as g, withCtx as x, renderList as T, vShow as $, unref as z } from "vue";
2
- import D from "../FieldPhone/click-outside.js";
3
- import "./Select.vue.js";
4
- import E from "../../../../_virtual/_plugin-vue_export-helper.js";
5
- const L = {
6
- key: 0,
7
- class: "t-transp mn-r-small"
8
- }, A = { class: "w-100" }, F = ["onClick"], I = {
9
- key: 0,
10
- class: "w-100"
11
- }, P = {
12
- key: 0,
13
- class: "mn-t-thin invalid-feedback"
14
- }, Y = {
15
- __name: "Select",
16
- props: {
17
- label: String,
18
- placeholder: { type: String, default: "Please select an item" },
19
- select: [String, Object],
20
- property: String,
21
- options: { type: Array, default: () => [] },
22
- validation: Boolean
23
- },
24
- emits: [
25
- "update:select",
26
- "focus",
27
- "blur"
28
- ],
29
- setup(o, { emit: C }) {
30
- let O = D;
31
- const p = C, e = o, c = y(!1), l = y(
32
- e.property ? v(e.select, e.property, e.options) : e.select
33
- ), B = M(() => e.select ? e.options.filter((t) => t !== e.select) : e.options);
34
- N(() => e.select, (t) => {
35
- l.value = e.property ? v(e.select, e.property, e.options) : e.select;
36
- });
37
- const f = () => {
38
- c.value = !c.value, p(c.value ? "focus" : "blur");
39
- };
40
- function V() {
41
- c.value = !1;
42
- }
43
- const j = (t) => {
44
- l.value = t, f(), e.property ? p("update:select", l.value[e.property]) : p("update:select", l.value);
45
- };
46
- function v(t, h, i) {
47
- for (const a of i)
48
- if (a[h] === t || a === t)
49
- return a;
50
- return null;
51
- }
52
- return (t, h) => {
53
- var i, a;
54
- return s(), n(b, null, [
55
- k((s(), n("div", {
56
- onClick: w(f, ["stop"]),
57
- class: S([t.$attrs.class, "cursor-pointer flex-v-center flex-nowrap flex pos-relative"])
58
- }, [
59
- o.label ? (s(), n("div", L, [
60
- u("span", null, d(o.label), 1)
61
- ])) : m("", !0),
62
- u("li", A, [
63
- u("span", null, d((i = l.value) != null && i.name ? (a = l.value) == null ? void 0 : a.name : l.value || o.placeholder), 1)
64
- ]),
65
- _(g, {
66
- mode: "out-in",
67
- name: "TransitionTranslateY"
68
- }, {
69
- default: x(() => [
70
- k(u("ul", {
71
- class: S([t.$attrs.class, "bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"]),
72
- style: { "min-width": "max-content" }
73
- }, [
74
- (s(!0), n(b, null, T(B.value, (r) => (s(), n("li", {
75
- onClick: w((q) => j(r), ["stop"])
76
- }, [
77
- r ? (s(), n("span", I, d(r.name || r), 1)) : m("", !0)
78
- ], 8, F))), 256))
79
- ], 2), [
80
- [$, c.value]
81
- ])
82
- ]),
83
- _: 1
84
- })
85
- ], 2)), [
86
- [z(O), V]
87
- ]),
88
- _(g, {
89
- mode: "out-in",
90
- name: "fade"
91
- }, {
92
- default: x(() => [
93
- o.validation ? (s(), n("div", P, " * " + d(o.validation.message), 1)) : m("", !0)
94
- ]),
95
- _: 1
96
- })
97
- ], 64);
98
- };
99
- }
100
- }, Q = /* @__PURE__ */ E(Y, [["__scopeId", "data-v-bf25c24d"]]);
101
- export {
102
- Q as default
103
- };
1
+
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Tooltip.vue2.cjs");const s=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),a={__name:"Tooltip",props:{text:{type:String,required:!0}},setup(n){const l=e.ref(!1),t=e.reactive({position:"absolute",width:"max-content",zIndex:1e3,background:"#333",color:"#fff",padding:"5px 10px",borderRadius:"3px",fontSize:"14px",display:"none"});function i(o){l.value=!0,t.left=`${o.clientX/100+10}px`,t.top=`${o.clientY/100+10}px`,t.display="block"}function r(){l.value=!1,t.display="none"}return(o,p)=>(e.openBlock(),e.createElementBlock("div",{class:"cursor-pointer tooltip-container",onMouseover:i,onMouseleave:r},[e.renderSlot(o.$slots,"default",{},void 0,!0),e.createElementVNode("div",{class:"tooltip-content",style:e.normalizeStyle(t)},e.toDisplayString(n.text),5)],32))}},u=s.default(a,[["__scopeId","data-v-f89d5a93"]]);exports.default=u;
@@ -1 +1,45 @@
1
-
1
+ import { ref as r, reactive as p, openBlock as s, createElementBlock as a, renderSlot as c, createElementVNode as d, normalizeStyle as u, toDisplayString as f } from "vue";
2
+ import "./Tooltip.vue2.js";
3
+ import x from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = {
5
+ __name: "Tooltip",
6
+ props: {
7
+ text: {
8
+ type: String,
9
+ required: !0
10
+ }
11
+ },
12
+ setup(n) {
13
+ const o = r(!1), e = p({
14
+ position: "absolute",
15
+ width: "max-content",
16
+ zIndex: 1e3,
17
+ background: "#333",
18
+ color: "#fff",
19
+ padding: "5px 10px",
20
+ borderRadius: "3px",
21
+ fontSize: "14px",
22
+ display: "none"
23
+ });
24
+ function i(t) {
25
+ o.value = !0, e.left = `${t.clientX / 100 + 10}px`, e.top = `${t.clientY / 100 + 10}px`, e.display = "block";
26
+ }
27
+ function l() {
28
+ o.value = !1, e.display = "none";
29
+ }
30
+ return (t, _) => (s(), a("div", {
31
+ class: "cursor-pointer tooltip-container",
32
+ onMouseover: i,
33
+ onMouseleave: l
34
+ }, [
35
+ c(t.$slots, "default", {}, void 0, !0),
36
+ d("div", {
37
+ class: "tooltip-content",
38
+ style: u(e)
39
+ }, f(n.text), 5)
40
+ ], 32));
41
+ }
42
+ }, b = /* @__PURE__ */ x(m, [["__scopeId", "data-v-f89d5a93"]]);
43
+ export {
44
+ b as default
45
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Tooltip.vue.cjs");const s=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),a={__name:"Tooltip",props:{text:{type:String,required:!0}},setup(n){const l=e.ref(!1),t=e.reactive({position:"absolute",width:"max-content",zIndex:1e3,background:"#333",color:"#fff",padding:"5px 10px",borderRadius:"3px",fontSize:"14px",display:"none"});function i(o){l.value=!0,t.left=`${o.clientX/100+10}px`,t.top=`${o.clientY/100+10}px`,t.display="block"}function r(){l.value=!1,t.display="none"}return(o,p)=>(e.openBlock(),e.createElementBlock("div",{class:"cursor-pointer tooltip-container",onMouseover:i,onMouseleave:r},[e.renderSlot(o.$slots,"default",{},void 0,!0),e.createElementVNode("div",{class:"tooltip-content",style:e.normalizeStyle(t)},e.toDisplayString(n.text),5)],32))}},u=s.default(a,[["__scopeId","data-v-f89d5a93"]]);exports.default=u;
1
+ "use strict";
@@ -1,45 +1 @@
1
- import { ref as r, reactive as p, openBlock as s, createElementBlock as a, renderSlot as c, createElementVNode as d, normalizeStyle as u, toDisplayString as f } from "vue";
2
- import "./Tooltip.vue.js";
3
- import x from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = {
5
- __name: "Tooltip",
6
- props: {
7
- text: {
8
- type: String,
9
- required: !0
10
- }
11
- },
12
- setup(n) {
13
- const o = r(!1), e = p({
14
- position: "absolute",
15
- width: "max-content",
16
- zIndex: 1e3,
17
- background: "#333",
18
- color: "#fff",
19
- padding: "5px 10px",
20
- borderRadius: "3px",
21
- fontSize: "14px",
22
- display: "none"
23
- });
24
- function i(t) {
25
- o.value = !0, e.left = `${t.clientX / 100 + 10}px`, e.top = `${t.clientY / 100 + 10}px`, e.display = "block";
26
- }
27
- function l() {
28
- o.value = !1, e.display = "none";
29
- }
30
- return (t, _) => (s(), a("div", {
31
- class: "cursor-pointer tooltip-container",
32
- onMouseover: i,
33
- onMouseleave: l
34
- }, [
35
- c(t.$slots, "default", {}, void 0, !0),
36
- d("div", {
37
- class: "tooltip-content",
38
- style: u(e)
39
- }, f(n.text), 5)
40
- ], 32));
41
- }
42
- }, b = /* @__PURE__ */ x(m, [["__scopeId", "data-v-f89d5a93"]]);
43
- export {
44
- b as default
45
- };
1
+
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../node_modules/axios/lib/axios.cjs"),l=require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs"),w=require("../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),f=require("vue"),c=require("../../globals/store/globals.cjs"),h=require("./twofa.cjs"),u=d.default.create({baseURL:process.env.API_URL,withCredentials:!0}),a=f.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1},accesses:[]});async function k(){try{const e=await m("user");if(e){const{_id:t,email:s,phone:n,roles:o,accessToken:r}=e;d.default.interceptors.request.use(i=>(i.headers["x-access-token"]=r,i),i=>Promise.reject(i));const O=(await d.default.get("/api/auth/check-accesses")).data;Object.assign(a.user,{_id:t,email:s,phone:n}),Object.assign(a.access,{token:r,roles:o,status:!!r}),a.accesses=O}}catch(e){console.error("Error initializing app:",e),g("user"),a.accesses=[]}}k();const P={async login(e,t){try{const s=await u.post("/api/auth/signin",{...e,type:t});return p("user",s.data),Object.assign(a.user,{...s.data}),Object.assign(a.access,{token:s.data.accessToken,status:!0,roles:s.data.roles}),s.data}catch(s){return Object.assign(a.access,{token:null,status:!1,roles:null}),c.setError(s),Promise.reject(s)}},async signup(e,t,s){const{password:n,passwordRepeat:o}=a.user;if(console.log(n),console.log(o),n!==o){const r={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw c.setError(r),new Error(r.response.status)}try{const r=await u.post("/api/auth/signup",{...e,type:t,inviteCode:s});return console.log(r),r.data.accessToken&&p("user",r.data),Object.assign(a.user,{...r.data}),Object.assign(a.access,{token:r.data.accessToken,status:!0,roles:r.data.roles}),r.data}catch(r){throw c.setError(r),console.log("Sign up falied"),r}},logout(){g("user"),Object.assign(a.user,{email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(a.access,{token:null,status:!1})},async resetPassword(e,t){try{const s=await u.post("/api/auth/reset-password",{email:e.email,phone:e.phone,type:t});return Object.assign(h.state.code,{...s.data,isSended:!0}),s.data}catch(s){return c.setError(s),Promise.reject(s)}},async updatePassword(e,t){const{password:s,passwordRepeat:n}=a.user;if(s!==n){const o={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw c.setError(o),new Error(o.response.status)}try{const o=await u.post("/api/auth/update-password",{email:e.email,phone:e.phone,password:e.password,passwordRepeat:e.passwordRepeat,type:t});return o.data.accessToken&&p("user",o.data),Object.assign(a.user,{...o.data}),Object.assign(a.access,{token:o.data.accessToken,status:!0}),o.data}catch(o){return c.setError(o),Promise.reject(o)}}},j={development:{secure:!1,expires:7,sameSite:"Lax"},production:{expires:7,path:"/",domain:process.env.API_URL,sameSite:"none",secure:!0}};async function m(e){if(process.env.MOBILE_APP){const{value:t}=await w.Preferences.get({key:e});return t?JSON.parse(t):null}else{const t=l.default.get(e);return t?JSON.parse(t):null}}function p(e,t,s=process.env.DOMAIN_URL){process.env.MOBILE_APP?w.Preferences.set({key:e,value:JSON.stringify(t)}):l.default.set(e,JSON.stringify(t),j[s])}function g(e,t=process.env.NODE_ENV){if(process.env.MOBILE_APP)w.Preferences.remove({key:e});else{const s=t==="production"?{domain:process.env.API_URL}:{};l.default.remove(e,s)}}f.watch(a,(e,t)=>{});exports.actions=P;exports.state=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../../../node_modules/axios/lib/axios.cjs"),d=require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs"),g=require("../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),w=require("vue"),c=require("../../globals/store/globals.cjs"),k=require("./twofa.cjs"),u=l.default.create({baseURL:process.env.API_URL,withCredentials:!0}),a=w.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1},accesses:[]});async function f(){try{const e=await m("user");if(e){const{_id:t,email:s,phone:n,roles:o,accessToken:r}=e;l.default.interceptors.request.use(i=>(i.headers["x-access-token"]=r,i),i=>Promise.reject(i));const h=(await l.default.get("/api/auth/check-accesses")).data;Object.assign(a.user,{_id:t,email:s,phone:n}),Object.assign(a.access,{token:r,roles:o,status:!!r}),a.accesses=h}}catch(e){console.error("Error initializing app:",e),O("user"),a.accesses=[]}}f();const P={async login(e,t){try{const s=await u.post("/api/auth/signin",{...e,type:t});return p("user",s.data),Object.assign(a.user,{...s.data}),Object.assign(a.access,{token:s.data.accessToken,status:!0,roles:s.data.roles}),s.data}catch(s){return Object.assign(a.access,{token:null,status:!1,roles:null}),console.log(s),c.setError(s),Promise.reject(s)}},async signup(e,t,s){const{password:n,passwordRepeat:o}=a.user;if(console.log(n),console.log(o),n!==o){const r={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw c.setError(r),new Error(r.response.status)}try{const r=await u.post("/api/auth/signup",{...e,type:t,inviteCode:s});return console.log(r),r.data.accessToken&&p("user",r.data),Object.assign(a.user,{...r.data}),Object.assign(a.access,{token:r.data.accessToken,status:!0,roles:r.data.roles}),r.data}catch(r){throw c.setError(r),console.log("Sign up falied"),r}},logout(){O("user"),Object.assign(a.user,{email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(a.access,{token:null,status:!1})},async resetPassword(e,t){try{const s=await u.post("/api/auth/reset-password",{email:e.email,phone:e.phone,type:t});return Object.assign(k.state.code,{...s.data,isSended:!0}),s.data}catch(s){return c.setError(s),Promise.reject(s)}},async updatePassword(e,t){const{password:s,passwordRepeat:n}=a.user;if(s!==n){const o={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw c.setError(o),new Error(o.response.status)}try{const o=await u.post("/api/auth/update-password",{email:e.email,phone:e.phone,password:e.password,passwordRepeat:e.passwordRepeat,type:t});return o.data.accessToken&&p("user",o.data),Object.assign(a.user,{...o.data}),Object.assign(a.access,{token:o.data.accessToken,status:!0}),o.data}catch(o){return c.setError(o),Promise.reject(o)}}},j={development:{secure:!1,expires:7,sameSite:"Lax"},production:{expires:7,path:"/",domain:process.env.API_URL,sameSite:"none",secure:!0}};async function m(e){if(process.env.MOBILE_APP){const{value:t}=await g.Preferences.get({key:e});return t?JSON.parse(t):null}else{const t=d.default.get(e);return t?JSON.parse(t):null}}function p(e,t,s=process.env.DOMAIN_URL){process.env.MOBILE_APP?g.Preferences.set({key:e,value:JSON.stringify(t)}):d.default.set(e,JSON.stringify(t),j[s])}function O(e,t=process.env.NODE_ENV){if(process.env.MOBILE_APP)g.Preferences.remove({key:e});else{const s=t==="production"?{domain:process.env.API_URL}:{};d.default.remove(e,s)}}w.watch(a,(e,t)=>{});exports.actions=P;exports.initialize=f;exports.state=a;
@@ -26,11 +26,11 @@ async function k() {
26
26
  if (e) {
27
27
  const { _id: t, email: s, phone: n, roles: r, accessToken: a } = e;
28
28
  d.interceptors.request.use((i) => (i.headers["x-access-token"] = a, i), (i) => Promise.reject(i));
29
- const g = (await d.get("/api/auth/check-accesses")).data;
30
- Object.assign(o.user, { _id: t, email: s, phone: n }), Object.assign(o.access, { token: a, roles: r, status: !!a }), o.accesses = g;
29
+ const m = (await d.get("/api/auth/check-accesses")).data;
30
+ Object.assign(o.user, { _id: t, email: s, phone: n }), Object.assign(o.access, { token: a, roles: r, status: !!a }), o.accesses = m;
31
31
  }
32
32
  } catch (e) {
33
- console.error("Error initializing app:", e), m("user"), o.accesses = [];
33
+ console.error("Error initializing app:", e), g("user"), o.accesses = [];
34
34
  }
35
35
  }
36
36
  k();
@@ -53,7 +53,7 @@ const C = {
53
53
  token: null,
54
54
  status: !1,
55
55
  roles: null
56
- }), c(s), Promise.reject(s);
56
+ }), console.log(s), c(s), Promise.reject(s);
57
57
  }
58
58
  },
59
59
  async signup(e, t, s) {
@@ -84,7 +84,7 @@ const C = {
84
84
  }
85
85
  },
86
86
  logout() {
87
- m("user"), Object.assign(o.user, {
87
+ g("user"), Object.assign(o.user, {
88
88
  email: "",
89
89
  phone: "",
90
90
  password: "",
@@ -156,7 +156,7 @@ function u(e, t, s = process.env.DOMAIN_URL) {
156
156
  value: JSON.stringify(t)
157
157
  }) : l.set(e, JSON.stringify(t), P[s]);
158
158
  }
159
- function m(e, t = process.env.NODE_ENV) {
159
+ function g(e, t = process.env.NODE_ENV) {
160
160
  if (process.env.MOBILE_APP)
161
161
  w.remove({ key: e });
162
162
  else {
@@ -168,5 +168,6 @@ O(o, (e, t) => {
168
168
  });
169
169
  export {
170
170
  C as actions,
171
+ k as initialize,
171
172
  o as state
172
173
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../../mobile/components/Menu/Menu.vue.cjs"),o=require("../../../mobile/components/Menu/MenuItem.vue.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const i=require("../../../icons/entities/IconProducts.vue.cjs"),d=require("../../../icons/entities/IconEvents.vue.cjs"),m=require("../../../icons/entities/IconGroups.vue.cjs"),f=require("../../../icons/entities/IconGallery.vue.cjs"),p=require("../../../icons/entities/IconOrders.vue.cjs"),_=require("../../../icons/entities/IconLeftovers.vue.cjs"),u=require("vue-router"),n=require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const k={class:""},h=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice",-1),v=e.createElementVNode("span",null," Members ",-1),N=e.createElementVNode("span",null," Products ",-1),V=e.createElementVNode("span",null," Leftovers ",-1),C=e.createElementVNode("span",null," Orders ",-1),B=e.createElementVNode("span",null," Gallery ",-1),b=e.createElementVNode("span",null," Events ",-1),g={__name:"Dashboard",props:{favorites:Array},setup(q){const r=u.useRoute(),t=u.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),(a,s)=>(e.openBlock(),e.createElementBlock("div",k,[h,e.createVNode(l.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[a.hasAccess(e.unref(r).params._id,"members","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:0,onClick:s[0]||(s[0]=c=>e.unref(t).push({name:"Organization Members",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(m.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),v]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"products","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:1,onClick:s[1]||(s[1]=c=>e.unref(t).push({name:"Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(i.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),N]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"leftovers","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:2,onClick:s[2]||(s[2]=c=>e.unref(t).push({name:"Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(_.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),V]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"orders","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:3,onClick:s[3]||(s[3]=c=>e.unref(t).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(p.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),C]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"gallery","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:4,onClick:s[4]||(s[4]=c=>e.unref(t).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),B]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"events","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:5,onClick:s[5]||(s[5]=c=>e.unref(t).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),b]),_:1})):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../components/Menu/Menu.vue.cjs"),s=require("../../../../components/Menu/MenuItem.vue.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const a=require("../../../icons/entities/IconProducts.vue.cjs"),u=require("../../../icons/entities/IconEvents.vue.cjs"),i=require("../../../icons/entities/IconGroups.vue.cjs"),c=require("../../../icons/entities/IconGallery.vue.cjs"),d=require("../../../icons/entities/IconOrders.vue.cjs"),f=require("../../../icons/entities/IconLeftovers.vue.cjs"),l=require("vue-router");require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m={class:""},p=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice2",-1),N=e.createElementVNode("span",null," Members ",-1),V=e.createElementVNode("span",null," Community ",-1),v=e.createElementVNode("span",null," Products ",-1),h=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),C=e.createElementVNode("span",null," Gallery ",-1),k=e.createElementVNode("span",null," Events ",-1),g=e.createElementVNode("span",null," Payments ",-1),w=e.createElementVNode("span",null," Organizations ",-1),b=e.createElementVNode("span",null," Pages ",-1),E=e.createElementVNode("span",null," Reports ",-1),x={__name:"Dashboard",props:{favorites:Array},setup(q){l.useRoute();const r=l.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),($,t)=>(e.openBlock(),e.createElementBlock("div",m,[p,e.createVNode(n.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(s.default,{onClick:t[0]||(t[0]=o=>e.unref(r).push({name:"Organization Members"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(i.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),N]),_:1}),e.createVNode(s.default,{onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Backoffice Community"})),class:"cursor-pointer"},{default:e.withCtx(()=>[V]),_:1}),e.createVNode(s.default,{onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Products"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(a.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),v]),_:1}),e.createVNode(s.default,{onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Leftovers"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),h]),_:1}),e.createVNode(s.default,{onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Backoffice Orders"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),_]),_:1}),e.createVNode(s.default,{onClick:t[5]||(t[5]=o=>e.unref(r).push({name:"Backoffice Gallery"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(c.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),C]),_:1}),e.createVNode(s.default,{onClick:t[6]||(t[6]=o=>e.unref(r).push({name:"Backoffice Events"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(u.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),k]),_:1}),e.createVNode(s.default,{onClick:t[7]||(t[7]=o=>e.unref(r).push({name:"Payments"})),class:"cursor-pointer"},{default:e.withCtx(()=>[g]),_:1})]),_:1}),e.createVNode(n.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(s.default,{onClick:t[8]||(t[8]=o=>e.unref(r).push({name:"Backoffice Organizations"})),class:"cursor-pointer"},{default:e.withCtx(()=>[w]),_:1}),e.createVNode(s.default,{onClick:t[9]||(t[9]=o=>e.unref(r).push({name:"Backoffice Pages"})),class:"cursor-pointer"},{default:e.withCtx(()=>[b]),_:1}),e.createVNode(s.default,{onClick:t[10]||(t[10]=o=>e.unref(r).push({name:"Backoffice Reports"})),class:"cursor-pointer"},{default:e.withCtx(()=>[E]),_:1})]),_:1})]))}};exports.default=x;
@@ -1,100 +1,96 @@
1
- import { ref as f, onMounted as _, openBlock as a, createElementBlock as h, createVNode as i, withCtx as o, unref as s, createBlock as l, createCommentVNode as c, createElementVNode as t } from "vue";
2
- import v from "../../../mobile/components/Menu/Menu.vue.js";
3
- import p from "../../../mobile/components/Menu/MenuItem.vue.js";
1
+ import { ref as a, onMounted as m, openBlock as f, createElementBlock as c, createVNode as e, withCtx as o, unref as i, createElementVNode as t } from "vue";
2
+ import u from "../../../../components/Menu/Menu.vue.js";
3
+ import r from "../../../../components/Menu/MenuItem.vue.js";
4
4
  import "../../../../components/SelectMulti/SelectMulti.vue2.js";
5
- import k from "../../../icons/entities/IconProducts.vue.js";
6
- import b from "../../../icons/entities/IconEvents.vue.js";
7
- import $ from "../../../icons/entities/IconGroups.vue.js";
8
- import g from "../../../icons/entities/IconGallery.vue.js";
9
- import y from "../../../icons/entities/IconOrders.vue.js";
10
- import C from "../../../icons/entities/IconLeftovers.vue.js";
11
- import { useRoute as w, useRouter as A } from "vue-router";
12
- import { state as u } from "../../../auth/store/auth.js";
5
+ import p from "../../../icons/entities/IconProducts.vue.js";
6
+ import d from "../../../icons/entities/IconEvents.vue.js";
7
+ import _ from "../../../icons/entities/IconGroups.vue.js";
8
+ import v from "../../../icons/entities/IconGallery.vue.js";
9
+ import k from "../../../icons/entities/IconOrders.vue.js";
10
+ import $ from "../../../icons/entities/IconLeftovers.vue.js";
11
+ import { useRoute as g, useRouter as h } from "vue-router";
12
+ import "../../../auth/store/auth.js";
13
13
  import "../../../organizations/store/organizations.js";
14
- const B = { class: "" }, E = /* @__PURE__ */ t("h1", { class: "pd-medium radius-medium bg-light mn-b-small" }, "Welcome to Backoffice", -1), G = /* @__PURE__ */ t("span", null, " Members ", -1), M = /* @__PURE__ */ t("span", null, " Products ", -1), N = /* @__PURE__ */ t("span", null, " Leftovers ", -1), O = /* @__PURE__ */ t("span", null, " Orders ", -1), V = /* @__PURE__ */ t("span", null, " Gallery ", -1), L = /* @__PURE__ */ t("span", null, " Events ", -1), T = {
14
+ const b = { class: "" }, C = /* @__PURE__ */ t("h1", { class: "pd-medium radius-medium bg-light mn-b-small" }, "Welcome to Backoffice2", -1), B = /* @__PURE__ */ t("span", null, " Members ", -1), y = /* @__PURE__ */ t("span", null, " Community ", -1), w = /* @__PURE__ */ t("span", null, " Products ", -1), P = /* @__PURE__ */ t("span", null, " Leftovers ", -1), O = /* @__PURE__ */ t("span", null, " Orders ", -1), E = /* @__PURE__ */ t("span", null, " Gallery ", -1), R = /* @__PURE__ */ t("span", null, " Events ", -1), x = /* @__PURE__ */ t("span", null, " Payments ", -1), z = /* @__PURE__ */ t("span", null, " Organizations ", -1), G = /* @__PURE__ */ t("span", null, " Pages ", -1), M = /* @__PURE__ */ t("span", null, " Reports ", -1), T = {
15
15
  __name: "Dashboard",
16
16
  props: {
17
17
  favorites: Array
18
18
  },
19
- setup(P) {
20
- const e = w(), n = A();
21
- return f(null), f([]), _(async () => {
22
- }), (m, r) => (a(), h("div", B, [
23
- E,
24
- i(v, { class: "bg-light mn-b-semi" }, {
19
+ setup(L) {
20
+ g();
21
+ const n = h();
22
+ return a(null), a([]), m(async () => {
23
+ }), (N, s) => (f(), c("div", b, [
24
+ C,
25
+ e(u, { class: "bg-light mn-b-semi" }, {
25
26
  default: o(() => [
26
- m.hasAccess(s(e).params._id, "members", "read", u.accesses) ? (a(), l(p, {
27
- key: 0,
28
- onClick: r[0] || (r[0] = (d) => s(n).push({
29
- name: "Organization Members",
30
- params: {
31
- _id: s(e).params._id
32
- }
27
+ e(r, {
28
+ onClick: s[0] || (s[0] = (l) => i(n).push({
29
+ name: "Organization Members"
33
30
  })),
34
31
  class: "cursor-pointer"
35
32
  }, {
36
33
  default: o(() => [
37
- i($, {
34
+ e(_, {
38
35
  class: "i-semi",
39
36
  icon: !0,
40
37
  fill: "rgb(var(--white))"
41
38
  }),
42
- G
39
+ B
40
+ ]),
41
+ _: 1
42
+ }),
43
+ e(r, {
44
+ onClick: s[1] || (s[1] = (l) => i(n).push({
45
+ name: "Backoffice Community"
46
+ })),
47
+ class: "cursor-pointer"
48
+ }, {
49
+ default: o(() => [
50
+ y
43
51
  ]),
44
52
  _: 1
45
- })) : c("", !0),
46
- m.hasAccess(s(e).params._id, "products", "read", u.accesses) ? (a(), l(p, {
47
- key: 1,
48
- onClick: r[1] || (r[1] = (d) => s(n).push({
49
- name: "Products",
50
- params: {
51
- _id: s(e).params._id
52
- }
53
+ }),
54
+ e(r, {
55
+ onClick: s[2] || (s[2] = (l) => i(n).push({
56
+ name: "Products"
53
57
  })),
54
58
  class: "cursor-pointer"
55
59
  }, {
56
60
  default: o(() => [
57
- i(k, {
61
+ e(p, {
58
62
  class: "i-semi",
59
63
  icon: !0,
60
64
  fill: "rgb(var(--white))"
61
65
  }),
62
- M
66
+ w
63
67
  ]),
64
68
  _: 1
65
- })) : c("", !0),
66
- m.hasAccess(s(e).params._id, "leftovers", "read", u.accesses) ? (a(), l(p, {
67
- key: 2,
68
- onClick: r[2] || (r[2] = (d) => s(n).push({
69
- name: "Leftovers",
70
- params: {
71
- _id: s(e).params._id
72
- }
69
+ }),
70
+ e(r, {
71
+ onClick: s[3] || (s[3] = (l) => i(n).push({
72
+ name: "Leftovers"
73
73
  })),
74
74
  class: "cursor-pointer"
75
75
  }, {
76
76
  default: o(() => [
77
- i(C, {
77
+ e($, {
78
78
  class: "i-semi",
79
79
  icon: !0,
80
80
  fill: "rgb(var(--white))"
81
81
  }),
82
- N
82
+ P
83
83
  ]),
84
84
  _: 1
85
- })) : c("", !0),
86
- m.hasAccess(s(e).params._id, "orders", "read", u.accesses) ? (a(), l(p, {
87
- key: 3,
88
- onClick: r[3] || (r[3] = (d) => s(n).push({
89
- name: "Backoffice Orders",
90
- params: {
91
- _id: s(e).params._id
92
- }
85
+ }),
86
+ e(r, {
87
+ onClick: s[4] || (s[4] = (l) => i(n).push({
88
+ name: "Backoffice Orders"
93
89
  })),
94
90
  class: "cursor-pointer"
95
91
  }, {
96
92
  default: o(() => [
97
- i(y, {
93
+ e(k, {
98
94
  class: "i-semi",
99
95
  icon: !0,
100
96
  fill: "rgb(var(--white))"
@@ -102,47 +98,88 @@ const B = { class: "" }, E = /* @__PURE__ */ t("h1", { class: "pd-medium radius-
102
98
  O
103
99
  ]),
104
100
  _: 1
105
- })) : c("", !0),
106
- m.hasAccess(s(e).params._id, "gallery", "read", u.accesses) ? (a(), l(p, {
107
- key: 4,
108
- onClick: r[4] || (r[4] = (d) => s(n).push({
109
- name: "Backoffice Gallery",
110
- params: {
111
- _id: s(e).params._id
112
- }
101
+ }),
102
+ e(r, {
103
+ onClick: s[5] || (s[5] = (l) => i(n).push({
104
+ name: "Backoffice Gallery"
113
105
  })),
114
106
  class: "cursor-pointer"
115
107
  }, {
116
108
  default: o(() => [
117
- i(g, {
109
+ e(v, {
118
110
  class: "i-semi",
119
111
  icon: !0,
120
112
  fill: "rgb(var(--white))"
121
113
  }),
122
- V
114
+ E
123
115
  ]),
124
116
  _: 1
125
- })) : c("", !0),
126
- m.hasAccess(s(e).params._id, "events", "read", u.accesses) ? (a(), l(p, {
127
- key: 5,
128
- onClick: r[5] || (r[5] = (d) => s(n).push({
129
- name: "Backoffice Events",
130
- params: {
131
- _id: s(e).params._id
132
- }
117
+ }),
118
+ e(r, {
119
+ onClick: s[6] || (s[6] = (l) => i(n).push({
120
+ name: "Backoffice Events"
133
121
  })),
134
122
  class: "cursor-pointer"
135
123
  }, {
136
124
  default: o(() => [
137
- i(b, {
125
+ e(d, {
138
126
  class: "i-semi",
139
127
  icon: !0,
140
128
  fill: "rgb(var(--white))"
141
129
  }),
142
- L
130
+ R
131
+ ]),
132
+ _: 1
133
+ }),
134
+ e(r, {
135
+ onClick: s[7] || (s[7] = (l) => i(n).push({
136
+ name: "Payments"
137
+ })),
138
+ class: "cursor-pointer"
139
+ }, {
140
+ default: o(() => [
141
+ x
142
+ ]),
143
+ _: 1
144
+ })
145
+ ]),
146
+ _: 1
147
+ }),
148
+ e(u, { class: "bg-light" }, {
149
+ default: o(() => [
150
+ e(r, {
151
+ onClick: s[8] || (s[8] = (l) => i(n).push({
152
+ name: "Backoffice Organizations"
153
+ })),
154
+ class: "cursor-pointer"
155
+ }, {
156
+ default: o(() => [
157
+ z
158
+ ]),
159
+ _: 1
160
+ }),
161
+ e(r, {
162
+ onClick: s[9] || (s[9] = (l) => i(n).push({
163
+ name: "Backoffice Pages"
164
+ })),
165
+ class: "cursor-pointer"
166
+ }, {
167
+ default: o(() => [
168
+ G
169
+ ]),
170
+ _: 1
171
+ }),
172
+ e(r, {
173
+ onClick: s[10] || (s[10] = (l) => i(n).push({
174
+ name: "Backoffice Reports"
175
+ })),
176
+ class: "cursor-pointer"
177
+ }, {
178
+ default: o(() => [
179
+ M
143
180
  ]),
144
181
  _: 1
145
- })) : c("", !0)
182
+ })
146
183
  ]),
147
184
  _: 1
148
185
  })
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("vue");require("../components/layouts/Backoffice.vue.cjs");const e=require("../../globals/components/layouts/Empty.vue.cjs");require("../../auth/store/auth.cjs");const t=[{path:"backoffice",component:e.default,children:[{path:"",name:"Backoffice",meta:{title:{en:"Backoffice",ru:"Управление"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/Dashboard.vue.cjs"))},{path:"gallery",name:"Backoffice Gallery",meta:{title:{en:"Backoffice Gallery",ru:"Управление Галерей"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../gallery/components/sections/BackofficeGallery.vue.cjs"))},{path:"reports",name:"Backoffice Reports",meta:{title:{en:"Backoffice Reports",ru:"Управление Жалобами"}},component:()=>Promise.resolve().then(()=>require("../../reports/components/pages/BackofficeReports.vue.cjs"))},{path:"organizations",name:"Backoffice Organizations",meta:{title:{en:"Backoffice Organizations",ru:"Управление Организациями"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../organizations/components/pages/Organizations.vue.cjs"))},{path:"events",name:"Backoffice Events",meta:{title:{en:"Backoffice Events",ru:"Управление Событиями"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../events/components/pages/Events.vue.cjs"))},{path:"community",name:"Backoffice Community",meta:{title:{en:"Backoffice Community",ru:"Управление Сообществом"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../community/components/pages/Community.vue.cjs"))}]}];exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("vue");require("../components/layouts/Backoffice.vue.cjs");const e=require("../../globals/components/layouts/Empty.vue.cjs"),t=require("../../middlewares/client/auth.validation.cjs"),o=[{path:"backoffice",component:e.default,beforeEnter:[t.requiresAdmin],children:[{path:"",name:"Backoffice Admin",meta:{title:{en:"Backoffice",ru:"Управление"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/Dashboard.vue.cjs"))},{path:"reports",name:"Backoffice Reports",meta:{title:{en:"Backoffice Reports",ru:"Управление Жалобами"}},component:()=>Promise.resolve().then(()=>require("../../reports/components/pages/BackofficeReports.vue.cjs"))},{path:"organizations",name:"Backoffice Organizations",meta:{title:{en:"Backoffice Organizations",ru:"Управление Организациями"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../organizations/components/pages/Organizations.vue.cjs"))},{path:"events",name:"Backoffice Events",meta:{title:{en:"Backoffice Events",ru:"Управление Событиями"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../events/components/pages/Events.vue.cjs"))},{path:"community",name:"Backoffice Community",meta:{title:{en:"Backoffice Community",ru:"Управление Сообществом"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../community/components/pages/Community.vue.cjs"))}]}];exports.default=o;
@@ -1,17 +1,17 @@
1
1
  import "vue";
2
2
  import "../components/layouts/Backoffice.vue.js";
3
3
  import t from "../../globals/components/layouts/Empty.vue.js";
4
- import "../../auth/store/auth.js";
5
- const n = [{
4
+ import { requiresAdmin as e } from "../../middlewares/client/auth.validation.js";
5
+ const m = [{
6
6
  path: "backoffice",
7
7
  component: t,
8
- // beforeEnter: [
9
- // validationAuth.requiresAdmin,
10
- // ],
8
+ beforeEnter: [
9
+ e
10
+ ],
11
11
  children: [
12
12
  {
13
13
  path: "",
14
- name: "Backoffice",
14
+ name: "Backoffice Admin",
15
15
  meta: {
16
16
  title: {
17
17
  en: "Backoffice",
@@ -24,21 +24,6 @@ const n = [{
24
24
  "../components/pages/Dashboard.vue.js"
25
25
  )
26
26
  },
27
- {
28
- path: "gallery",
29
- name: "Backoffice Gallery",
30
- meta: {
31
- title: {
32
- en: "Backoffice Gallery",
33
- ru: "Управление Галерей"
34
- },
35
- authorize: []
36
- },
37
- component: () => import(
38
- /* webpackChunkName: 'BackofficeGallery' */
39
- "../../gallery/components/sections/BackofficeGallery.vue.js"
40
- )
41
- },
42
27
  {
43
28
  path: "reports",
44
29
  name: "Backoffice Reports",
@@ -101,5 +86,5 @@ const n = [{
101
86
  ]
102
87
  }];
103
88
  export {
104
- n as default
89
+ m as default
105
90
  };