@ozdao/prometheus-framework 0.2.38 → 0.2.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (278) hide show
  1. package/dist/auth.server.js +1 -2
  2. package/dist/auth.server.mjs +1 -2
  3. package/dist/files.server.js +1 -2
  4. package/dist/files.server.mjs +1 -2
  5. package/dist/globals.server.js +1 -1
  6. package/dist/globals.server.mjs +1 -1
  7. package/dist/mailing-10560277.mjs +78 -0
  8. package/dist/mailing-902d13d5.js +77 -0
  9. package/dist/main.css +1 -1
  10. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  11. package/dist/prometheus-framework/src/components/Button/Button.vue.js +225 -2
  12. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -225
  14. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
  16. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +2 -61
  18. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +13 -9
  20. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
  21. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +4 -0
  22. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +26 -22
  24. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +29 -30
  26. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Field/Field.vue.js +76 -2
  28. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -76
  30. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
  32. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  33. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -70
  34. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
  36. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  37. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -95
  38. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -0
  39. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +69 -0
  40. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +44 -2
  42. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  43. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +2 -44
  44. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  46. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +10 -7
  48. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +18 -15
  50. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
  52. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +16 -13
  54. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
  56. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +23 -20
  58. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.js +1 -1
  60. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/auth/store/auth.js +8 -8
  62. package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/community/community.client.js +18 -20
  64. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +88 -62
  66. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +97 -68
  68. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +35 -34
  70. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +18 -18
  72. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +2 -2
  73. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +5 -5
  75. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +4 -4
  77. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +65 -19
  79. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +9 -9
  81. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +8 -7
  83. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +6 -6
  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 +65 -2
  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 +2 -65
  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 +64 -70
  91. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
  92. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  94. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  96. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +5 -5
  98. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +6 -5
  100. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  102. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
  104. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +43 -42
  106. package/dist/prometheus-framework/src/modules/icons/entities/IconFeatured.vue.cjs +1 -0
  107. package/dist/prometheus-framework/src/modules/icons/entities/IconFeatured.vue.js +30 -0
  108. package/dist/prometheus-framework/src/modules/icons/entities/IconFollowing.vue.cjs +1 -0
  109. package/dist/prometheus-framework/src/modules/icons/entities/IconFollowing.vue.js +47 -0
  110. package/dist/prometheus-framework/src/modules/icons/entities/IconPopular.vue.cjs +1 -0
  111. package/dist/prometheus-framework/src/modules/icons/entities/IconPopular.vue.js +28 -0
  112. package/dist/prometheus-framework/src/modules/icons/entities/IconRecent.vue.cjs +1 -0
  113. package/dist/prometheus-framework/src/modules/icons/entities/IconRecent.vue.js +45 -0
  114. package/dist/prometheus-framework/src/modules/icons/navigation/IconArrow.vue.cjs +1 -0
  115. package/dist/prometheus-framework/src/modules/icons/navigation/IconArrow.vue.js +32 -0
  116. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.js +3 -3
  118. package/dist/prometheus-framework/src/modules/icons/navigation/IconEdit.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/icons/navigation/IconEdit.vue.js +25 -14
  120. package/dist/prometheus-framework/src/modules/icons/navigation/IconEllipsis.vue.cjs +1 -0
  121. package/dist/prometheus-framework/src/modules/icons/navigation/IconEllipsis.vue.js +44 -0
  122. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +90 -67
  124. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  126. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
  128. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  130. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +2 -2
  132. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +45 -42
  134. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
  136. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +6 -6
  140. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  142. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +5 -5
  144. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  146. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +60 -55
  148. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  150. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  154. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +1 -1
  156. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +18 -17
  158. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +20 -21
  160. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +7 -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 +2 -2
  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 +1 -1
  165. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  167. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  169. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +6 -6
  171. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
  173. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  175. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +37 -34
  179. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +23 -23
  181. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  183. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +8 -8
  184. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +6 -6
  186. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  188. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  190. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  192. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +31 -30
  194. package/dist/prometheus-framework.cjs.js +20 -20
  195. package/dist/prometheus-framework.es.js +1003 -999
  196. package/dist/style.css +1 -1
  197. package/package.json +1 -1
  198. package/src/components/Button/Button.vue +2 -3
  199. package/src/components/Chips/Chips.vue +9 -3
  200. package/src/components/Dropdown/Dropdown.vue +9 -3
  201. package/src/components/Feed/Feed.vue +7 -11
  202. package/src/components/Feed/Masonry.vue +177 -0
  203. package/src/components/FieldBig/FieldBig.vue +3 -3
  204. package/src/components/LocationSelection/LocationSelection.vue +1 -1
  205. package/src/components/Navigation/Navigation.vue +2 -0
  206. package/src/components/Shader/Shader.vue +161 -116
  207. package/src/components/Slider/Slider.vue +92 -0
  208. package/src/modules/applications/applications.client.js +2 -0
  209. package/src/modules/applications/components/sections/SubscribeNewsletter.vue +114 -0
  210. package/src/modules/applications/controllers/applications.controller.js +125 -136
  211. package/src/modules/applications/models/application.model.js +22 -7
  212. package/src/modules/applications/routes/applications.routes.js +29 -13
  213. package/src/modules/auth/components/pages/EnterCode.vue +4 -1
  214. package/src/modules/auth/components/pages/EnterPassword.vue +4 -1
  215. package/src/modules/auth/components/pages/ResetPassword.vue +4 -1
  216. package/src/modules/auth/components/pages/SignUp.vue +4 -1
  217. package/src/modules/auth/controllers/auth.controller.js +2 -3
  218. package/src/modules/auth/localization/SignUp.json +1 -1
  219. package/src/modules/auth/store/auth.js +3 -5
  220. package/src/modules/chats/components/blocks/ChatMessage.vue +3 -2
  221. package/src/modules/chats/components/pages/ChatPage.vue +6 -6
  222. package/src/modules/chats/components/sections/ChatWindow.vue +57 -12
  223. package/src/modules/chats/store/chat.store.js +6 -1
  224. package/src/modules/community/community.client.js +0 -2
  225. package/src/modules/community/components/blocks/CardBlogpost.vue +71 -33
  226. package/src/modules/community/components/layouts/Community.vue +63 -24
  227. package/src/modules/community/components/pages/Blog.vue +37 -0
  228. package/src/modules/community/components/pages/BlogPost.vue +5 -6
  229. package/src/modules/community/components/pages/Community.vue +1 -0
  230. package/src/modules/community/components/sections/Feed.vue +1 -1
  231. package/src/modules/community/components/sections/HotPosts.vue +64 -24
  232. package/src/modules/community/components/sections/JoinUs.vue +4 -5
  233. package/src/modules/community/store/blogposts.js +1 -0
  234. package/src/modules/constructor/components/elements/Embed.vue +7 -6
  235. package/src/modules/constructor/components/elements/Image.vue +2 -2
  236. package/src/modules/constructor/components/elements/Textarea.vue +1 -1
  237. package/src/modules/constructor/components/sections/Constructor.vue +2 -18
  238. package/src/modules/files/middlewares/server/middlewareBusboy.js +1 -1
  239. package/src/modules/files/routes/files.routes.js +9 -1
  240. package/src/modules/globals/components/blocks/CardHeader.vue +6 -3
  241. package/src/modules/globals/utils/mailing.js +12 -0
  242. package/src/modules/icons/entities/IconEarn.vue +20 -0
  243. package/src/modules/icons/entities/IconFeatured.vue +14 -0
  244. package/src/modules/icons/entities/IconFollowing.vue +17 -0
  245. package/src/modules/icons/entities/IconPopular.vue +14 -0
  246. package/src/modules/icons/entities/IconRecent.vue +17 -0
  247. package/src/modules/icons/navigation/IconAdd.vue +1 -3
  248. package/src/modules/icons/navigation/IconArrow.vue +21 -0
  249. package/src/modules/icons/navigation/IconCheckmark.vue +16 -0
  250. package/src/modules/icons/navigation/IconChevronRight.vue +2 -2
  251. package/src/modules/icons/navigation/IconEdit.vue +16 -2
  252. package/src/modules/icons/navigation/IconEllipsis.vue +16 -0
  253. package/src/modules/icons/placeholders/PlaceholderChat.vue +9 -0
  254. package/src/modules/landing/components/sections/MobileApp.vue +38 -21
  255. package/src/modules/landing/components/sections/SectionEarn.vue +104 -0
  256. package/src/modules/landing/components/sections/SectionFeatures.vue +80 -0
  257. package/src/modules/landing/components/sections/{Guide.vue → SectionGuide.vue} +1 -1
  258. package/src/modules/landing/components/sections/SectionHeroToken.vue +138 -0
  259. package/src/modules/landing/components/sections/SectionRoadmap.vue +108 -0
  260. package/src/modules/marketplace/components/layouts/Marketplace.vue +2 -2
  261. package/src/modules/orders/components/blocks/StatusHistory.vue +7 -1
  262. package/src/modules/orders/components/pages/Order.vue +3 -4
  263. package/src/modules/organizations/components/blocks/CardOrganization.vue +6 -6
  264. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  265. package/src/modules/organizations/components/sections/DetailsTab.vue +42 -43
  266. package/src/modules/organizations/components/sections/Publics.vue +3 -4
  267. package/src/modules/products/components/sections/HeroRecommendation.vue +9 -170
  268. package/src/modules/products/components/sections/MenuSection.vue +4 -4
  269. package/src/modules/products/components/sections/PopularProducts.vue +3 -3
  270. package/src/modules/spots/components/layouts/Spots.vue +2 -2
  271. package/src/modules/wallet/components/pages/Wallet.vue +1 -1
  272. package/src/styles/base/all.scss +4 -0
  273. package/src/styles/base/backgrounds.scss +2 -2
  274. package/src/styles/base/shadow_transitions_hover_refactor.scss +11 -1
  275. package/src/styles/typography.scss +19 -12
  276. package/src/modules/community/components/sections/SubscribeNewsletter.vue +0 -67
  277. package/src/modules/constructor/components/elements/Youtube.vue +0 -52
  278. package/src/modules/landing/components/sections/HeroGovernance.vue +0 -156
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../../../../components/Tab/Tab.vue2.cjs"),f=require("../../../../components/Field/Field.vue2.cjs"),v=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),_=require("../../../../components/Button/Button.vue2.cjs"),u=require("vue-router"),b=require("vue-i18n"),w=require("../../localization/ResetPassword.json.cjs"),s=require("../../store/auth.cjs");require("../../store/twofa.cjs");const n=require("../../../middlewares/client/inputs.validation.cjs");require("./ResetPassword.vue2.cjs");const V={class:"t-left pd-medium"},g={class:"mn-b-small"},y={class:"mn-b-small t-transp"},N={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},q={class:"pos-relative"},E={key:0,class:"mn-b-semi radius-small o-hidden"},k={class:"mn-b-small t-transp"},C={key:0,class:"mn-b-semi radius-small o-hidden"},P={class:"mn-b-small t-transp"},S={__name:"ResetPassword",setup(I){const{t}=b.useI18n(w.default),i=e.ref(null),d=e.ref(null);u.useRoute();const c=u.useRouter(),a=e.ref("phone");async function m(){try{a.value==="phone"&&await n.validateInputs(i,n.validatePhone,s.state.user.phone,"Некорректный телефон"),a.value==="email"&&await n.validateInputs(d,n.validateEmail,s.state.user.email,"Некорректный email")}catch{throw new Error}try{await s.actions.resetPassword(s.state.user,a.value,"reset-password")}catch(r){throw console.log(r),new Error}}function p(){c.push({name:"Enter Code",query:{type:a.value,method:"reset-password"}})}return(r,o)=>(e.openBlock(),e.createElementBlock("section",V,[e.createElementVNode("h3",g,e.toDisplayString(e.unref(t)("forgotPasswordTitle")),1),e.createElementVNode("p",y,e.toDisplayString(e.unref(t)("instructions")),1),e.createElementVNode("div",N,[e.createVNode(h.default,{selected:a.value,"onUpdate:selected":o[0]||(o[0]=l=>a.value=l),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",q,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="phone"?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("p",k,e.toDisplayString(e.unref(t)("smsInfo")),1),e.createVNode(v.default,{modelValue:s.state.user.phone,"onUpdate:modelValue":o[1]||(o[1]=l=>s.state.user.phone=l),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:i.value,mode:"national",inputOptions:{placeholder:e.unref(t)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["modelValue","validation","inputOptions"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="email"?(e.openBlock(),e.createElementBlock("div",C,[e.createElementVNode("p",P,e.toDisplayString(e.unref(t)("emailInfo")),1),e.createVNode(f.default,{field:s.state.user.email,"onUpdate:field":o[2]||(o[2]=l=>s.state.user.email=l),placeholder:e.unref(t)("emailPlaceholder"),validation:d.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])])):e.createCommentVNode("",!0)]),_:1})]),e.createVNode(_.default,{submit:m,callback:p,class:"mn-b-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1})]))}};exports.default=S;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../../../../components/Tab/Tab.vue.cjs"),f=require("../../../../components/Field/Field.vue.cjs"),v=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),_=require("../../../../components/Button/Button.vue.cjs"),u=require("vue-router"),b=require("vue-i18n"),w=require("../../localization/ResetPassword.json.cjs"),s=require("../../store/auth.cjs");require("../../store/twofa.cjs");const n=require("../../../middlewares/client/inputs.validation.cjs");require("./ResetPassword.vue2.cjs");const V={class:"t-left pd-medium"},g={class:"mn-b-small"},y={class:"mn-b-small t-transp"},N={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},q={class:"pos-relative"},E={key:0,class:"mn-b-semi radius-small o-hidden"},S={class:"mn-b-small t-transp"},k={key:0,class:"mn-b-semi radius-small o-hidden"},C={class:"mn-b-small t-transp"},P={__name:"ResetPassword",setup(I){const{t}=b.useI18n({useScope:"global",...w.default}),i=e.ref(null),d=e.ref(null);u.useRoute();const c=u.useRouter(),a=e.ref("phone");async function m(){try{a.value==="phone"&&await n.validateInputs(i,n.validatePhone,s.state.user.phone,"Некорректный телефон"),a.value==="email"&&await n.validateInputs(d,n.validateEmail,s.state.user.email,"Некорректный email")}catch{throw new Error}try{await s.actions.resetPassword(s.state.user,a.value,"reset-password")}catch(r){throw console.log(r),new Error}}function p(){c.push({name:"Enter Code",query:{type:a.value,method:"reset-password"}})}return(r,o)=>(e.openBlock(),e.createElementBlock("section",V,[e.createElementVNode("h3",g,e.toDisplayString(e.unref(t)("forgotPasswordTitle")),1),e.createElementVNode("p",y,e.toDisplayString(e.unref(t)("instructions")),1),e.createElementVNode("div",N,[e.createVNode(h.default,{selected:a.value,"onUpdate:selected":o[0]||(o[0]=l=>a.value=l),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",q,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="phone"?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("p",S,e.toDisplayString(e.unref(t)("smsInfo")),1),e.createVNode(v.default,{modelValue:s.state.user.phone,"onUpdate:modelValue":o[1]||(o[1]=l=>s.state.user.phone=l),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:i.value,mode:"national",inputOptions:{placeholder:e.unref(t)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["modelValue","validation","inputOptions"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="email"?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("p",C,e.toDisplayString(e.unref(t)("emailInfo")),1),e.createVNode(f.default,{field:s.state.user.email,"onUpdate:field":o[2]||(o[2]=l=>s.state.user.email=l),placeholder:e.unref(t)("emailPlaceholder"),validation:d.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])])):e.createCommentVNode("",!0)]),_:1})]),e.createVNode(_.default,{submit:m,callback:p,class:"mn-b-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1})]))}};exports.default=P;
@@ -1,16 +1,16 @@
1
1
  import { ref as m, openBlock as u, createElementBlock as p, createElementVNode as l, toDisplayString as r, unref as t, createVNode as i, Transition as _, withCtx as c, createCommentVNode as v, createTextVNode as V } from "vue";
2
- import P from "../../../../components/Tab/Tab.vue2.js";
3
- import C from "../../../../components/Field/Field.vue2.js";
2
+ import P from "../../../../components/Tab/Tab.vue.js";
3
+ import C from "../../../../components/Field/Field.vue.js";
4
4
  import E from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import I from "../../../../components/Button/Button.vue2.js";
5
+ import I from "../../../../components/Button/Button.vue.js";
6
6
  import { useRoute as k, useRouter as x } from "vue-router";
7
7
  import { useI18n as N } from "vue-i18n";
8
- import T from "../../localization/ResetPassword.json.js";
9
- import { state as s, actions as D } from "../../store/auth.js";
8
+ import S from "../../localization/ResetPassword.json.js";
9
+ import { state as s, actions as T } from "../../store/auth.js";
10
10
  import "../../store/twofa.js";
11
- import { validateInputs as b, validatePhone as F, validateEmail as O } from "../../../middlewares/client/inputs.validation.js";
11
+ import { validateInputs as b, validatePhone as D, validateEmail as F } from "../../../middlewares/client/inputs.validation.js";
12
12
  import "./ResetPassword.vue2.js";
13
- const R = { class: "t-left pd-medium" }, S = { class: "mn-b-small" }, U = { class: "mn-b-small t-transp" }, B = { class: "mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, $ = { class: "pos-relative" }, q = {
13
+ const O = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, U = { class: "mn-b-small t-transp" }, B = { class: "mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, $ = { class: "pos-relative" }, q = {
14
14
  key: 0,
15
15
  class: "mn-b-semi radius-small o-hidden"
16
16
  }, A = { class: "mn-b-small t-transp" }, L = {
@@ -19,19 +19,22 @@ const R = { class: "t-left pd-medium" }, S = { class: "mn-b-small" }, U = { clas
19
19
  }, j = { class: "mn-b-small t-transp" }, oe = {
20
20
  __name: "ResetPassword",
21
21
  setup(z) {
22
- const { t: e } = N(T), h = m(null), f = m(null);
22
+ const { t: e } = N({
23
+ useScope: "global",
24
+ ...S
25
+ }), h = m(null), f = m(null);
23
26
  k();
24
27
  const w = x(), o = m("phone");
25
28
  async function g() {
26
29
  try {
27
30
  o.value === "phone" && await b(
28
31
  h,
29
- F,
32
+ D,
30
33
  s.user.phone,
31
34
  "Некорректный телефон"
32
35
  ), o.value === "email" && await b(
33
36
  f,
34
- O,
37
+ F,
35
38
  s.user.email,
36
39
  "Некорректный email"
37
40
  );
@@ -39,7 +42,7 @@ const R = { class: "t-left pd-medium" }, S = { class: "mn-b-small" }, U = { clas
39
42
  throw new Error();
40
43
  }
41
44
  try {
42
- await D.resetPassword(s.user, o.value, "reset-password");
45
+ await T.resetPassword(s.user, o.value, "reset-password");
43
46
  } catch (d) {
44
47
  throw console.log(d), new Error();
45
48
  }
@@ -47,8 +50,8 @@ const R = { class: "t-left pd-medium" }, S = { class: "mn-b-small" }, U = { clas
47
50
  function y() {
48
51
  w.push({ name: "Enter Code", query: { type: o.value, method: "reset-password" } });
49
52
  }
50
- return (d, a) => (u(), p("section", R, [
51
- l("h3", S, r(t(e)("forgotPasswordTitle")), 1),
53
+ return (d, a) => (u(), p("section", O, [
54
+ l("h3", R, r(t(e)("forgotPasswordTitle")), 1),
52
55
  l("p", U, r(t(e)("instructions")), 1),
53
56
  l("div", B, [
54
57
  i(P, {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Tab/Tab.vue2.cjs"),m=require("../../../../components/Field/Field.vue2.cjs"),w=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../components/Button/Button.vue2.cjs"),h=require("vue-router"),N=require("vue-i18n"),y=require("../../localization/SignIn.json.cjs"),a=require("../../store/auth.cjs"),i=require("../../../middlewares/client/inputs.validation.cjs");require("./SignIn.vue2.cjs");const S={class:""},q=["src"],E={class:"mn-b-medium"},x=e.createElementVNode("br",null,null,-1),C={class:"t-semi"},D={class:"mn-b-big"},P={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},T={class:"pos-relative"},U={class:"mn-b-thin radius-small"},I={class:"mn-b-thin radius-small o-hidden"},k={class:"w-100 mn-b-big"},j={__name:"SignIn",setup(O){const d=e.ref(null),f=e.ref(null),u=e.ref(null),c=h.useRoute(),p=h.useRouter(),{t:l}=N.useI18n({useScope:"global",...y.default}),n=e.ref("phone"),v=o=>new Promise((s,r)=>{const t=document.createElement("script");t.type="text/javascript",t.src=o,t.onload=s,t.onerror=r,document.head.appendChild(t)});e.onMounted(async()=>{await v("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js")});async function _(){try{n.value==="phone"&&await i.validateInputs(d,i.validatePhone,a.state.user.phone,"Некорректный телефон"),n.value==="email"&&await i.validateInputs(u,i.validateEmail,a.state.user.email,"Некорректный email")}catch{throw new Error}const o={...a.state.user};o.phone=a.state.user.phone.number,await a.actions.login(o,n.value)}function b(){c.query.returnUrl?p.push({path:c.query.returnUrl,query:{afterAuth:"true"}}):p.push({name:"User Profile",params:{_id:a.state.user._id},query:{afterAuth:"true"}})}return(o,s)=>{const r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",S,[e.createElementVNode("img",{src:"/logo/logo.svg",class:"i-extra radius-small mn-b-small"},null,8,q),e.createElementVNode("h3",E,[e.createTextVNode(e.toDisplayString(e.unref(l)("title"))+" ",1),x,e.createElementVNode("span",C,e.toDisplayString(e.unref(l)("subtitle")),1)]),e.createElementVNode("p",D,[e.createVNode(r,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signup")),1)]),_:1})]),e.createElementVNode("div",P,[e.createVNode(g.default,{selected:n.value,"onUpdate:selected":s[0]||(s[0]=t=>n.value=t),tabs:[{name:e.unref(l)("phone"),value:"phone"},{name:e.unref(l)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",T,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",U,[e.createVNode(w.default,{modelValue:a.state.user.phone,"onUpdate:modelValue":s[1]||(s[1]=t=>a.state.user.phone=t),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:d.value,mode:"national",inputOptions:{placeholder:e.unref(l)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,n.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",I,[e.createVNode(m.default,{field:a.state.user.email,"onUpdate:field":s[2]||(s[2]=t=>a.state.user.email=t),placeholder:e.unref(l)("emailPlaceholder"),validation:u.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,n.value==="email"]])]),_:1})]),e.createVNode(m.default,{field:a.state.user.password,"onUpdate:field":s[3]||(s[3]=t=>a.state.user.password=t),type:"password",validation:f.value,placeholder:e.unref(l)("passwordPlaceholder"),class:"bg-grey pd-medium radius-small mn-b-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",k,[e.createVNode(r,{to:"/auth/reset-password",class:"underline d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("forgotPassword")),1)]),_:1})]),e.createVNode(V.default,{submit:_,callback:b,class:"w-100 bg-main mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signin")),1)]),_:1})])}}};exports.default=j;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Tab/Tab.vue.cjs"),m=require("../../../../components/Field/Field.vue.cjs"),w=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../components/Button/Button.vue.cjs"),h=require("vue-router"),N=require("vue-i18n"),y=require("../../localization/SignIn.json.cjs"),a=require("../../store/auth.cjs"),i=require("../../../middlewares/client/inputs.validation.cjs");require("./SignIn.vue2.cjs");const S={class:""},q=["src"],E={class:"mn-b-medium"},x=e.createElementVNode("br",null,null,-1),C={class:"t-semi"},D={class:"mn-b-big"},P={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},T={class:"pos-relative"},U={class:"mn-b-thin radius-small"},I={class:"mn-b-thin radius-small o-hidden"},k={class:"w-100 mn-b-big"},j={__name:"SignIn",setup(O){const d=e.ref(null),f=e.ref(null),u=e.ref(null),c=h.useRoute(),p=h.useRouter(),{t:l}=N.useI18n({useScope:"global",...y.default}),n=e.ref("phone"),v=o=>new Promise((s,r)=>{const t=document.createElement("script");t.type="text/javascript",t.src=o,t.onload=s,t.onerror=r,document.head.appendChild(t)});e.onMounted(async()=>{await v("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js")});async function _(){try{n.value==="phone"&&await i.validateInputs(d,i.validatePhone,a.state.user.phone,"Некорректный телефон"),n.value==="email"&&await i.validateInputs(u,i.validateEmail,a.state.user.email,"Некорректный email")}catch{throw new Error}const o={...a.state.user};o.phone=a.state.user.phone.number,await a.actions.login(o,n.value)}function b(){c.query.returnUrl?p.push({path:c.query.returnUrl,query:{afterAuth:"true"}}):p.push({name:"User Profile",params:{_id:a.state.user._id},query:{afterAuth:"true"}})}return(o,s)=>{const r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",S,[e.createElementVNode("img",{src:"/logo/logo.svg",class:"i-extra radius-small mn-b-small"},null,8,q),e.createElementVNode("h3",E,[e.createTextVNode(e.toDisplayString(e.unref(l)("title"))+" ",1),x,e.createElementVNode("span",C,e.toDisplayString(e.unref(l)("subtitle")),1)]),e.createElementVNode("p",D,[e.createVNode(r,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signup")),1)]),_:1})]),e.createElementVNode("div",P,[e.createVNode(g.default,{selected:n.value,"onUpdate:selected":s[0]||(s[0]=t=>n.value=t),tabs:[{name:e.unref(l)("phone"),value:"phone"},{name:e.unref(l)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",T,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",U,[e.createVNode(w.default,{modelValue:a.state.user.phone,"onUpdate:modelValue":s[1]||(s[1]=t=>a.state.user.phone=t),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:d.value,mode:"national",inputOptions:{placeholder:e.unref(l)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,n.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",I,[e.createVNode(m.default,{field:a.state.user.email,"onUpdate:field":s[2]||(s[2]=t=>a.state.user.email=t),placeholder:e.unref(l)("emailPlaceholder"),validation:u.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,n.value==="email"]])]),_:1})]),e.createVNode(m.default,{field:a.state.user.password,"onUpdate:field":s[3]||(s[3]=t=>a.state.user.password=t),type:"password",validation:f.value,placeholder:e.unref(l)("passwordPlaceholder"),class:"bg-grey pd-medium radius-small mn-b-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",k,[e.createVNode(r,{to:"/auth/reset-password",class:"underline d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("forgotPassword")),1)]),_:1})]),e.createVNode(V.default,{submit:_,callback:b,class:"w-100 bg-main mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signin")),1)]),_:1})])}}};exports.default=j;
@@ -1,8 +1,8 @@
1
1
  import { ref as p, onMounted as k, resolveComponent as C, openBlock as E, createElementBlock as I, createElementVNode as a, createTextVNode as c, toDisplayString as d, unref as o, createVNode as i, withCtx as u, Transition as b, withDirectives as g, vShow as w } from "vue";
2
- import q from "../../../../components/Tab/Tab.vue2.js";
3
- import y from "../../../../components/Field/Field.vue2.js";
2
+ import q from "../../../../components/Tab/Tab.vue.js";
3
+ import y from "../../../../components/Field/Field.vue.js";
4
4
  import D from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import j from "../../../../components/Button/Button.vue2.js";
5
+ import j from "../../../../components/Button/Button.vue.js";
6
6
  import { useRoute as A, useRouter as F } from "vue-router";
7
7
  import { useI18n as N } from "vue-i18n";
8
8
  import O from "../../localization/SignIn.json.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Tab/Tab.vue2.cjs"),f=require("../../../../components/Field/Field.vue2.cjs"),_=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs"),d=require("vue-router"),w=require("vue-i18n"),V=require("../../localization/SignUp.json.cjs"),n=require("../../store/auth.cjs"),g=require("../../store/twofa.cjs"),s=require("../../../middlewares/client/inputs.validation.cjs");require("./SignUp.vue2.cjs");const N={class:"t-left pd-medium"},E={class:"mn-b-small"},S={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},q={class:"pos-relative"},y={class:"mn-b-semi radius-small"},C={class:"mn-b-small t-transp"},D={class:"mn-b-semi radius-small o-hidden"},x={class:"mn-b-small t-transp"},T={class:"w-100"},k={__name:"SignUp",setup(I){const{t}=w.useI18n(V.default),i=e.ref(null),r=e.ref(null);d.useRoute();const c=d.useRouter(),a=e.ref("phone");async function m(){try{a.value==="phone"&&await s.validateInputs(i,s.validatePhone,n.state.user.phone,"Некорректный телефон"),a.value==="email"&&await s.validateInputs(r,s.validateEmail,n.state.user.email,"Некорректный email")}catch{throw new Error}try{await g.sendCode(n.state.user,"signup",a.value)}catch{throw new Error}}function p(){c.push({name:"Enter Code"})}return(u,l)=>{const h=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",N,[e.createElementVNode("h3",E,e.toDisplayString(e.unref(t)("title")),1),e.createElementVNode("div",S,[e.createVNode(v.default,{selected:a.value,"onUpdate:selected":l[0]||(l[0]=o=>a.value=o),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",q,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",y,[e.createElementVNode("p",C,e.toDisplayString(e.unref(t)("smsNotice")),1),e.createVNode(_.default,{modelValue:n.state.user.phone,"onUpdate:modelValue":l[1]||(l[1]=o=>n.state.user.phone=o),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:i.value,mode:"national",inputOptions:{placeholder:e.unref(t)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,a.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",D,[e.createElementVNode("p",x,e.toDisplayString(e.unref(t)("emailNotice")),1),e.createVNode(f.default,{field:n.state.user.email,"onUpdate:field":l[2]||(l[2]=o=>n.state.user.email=o),placeholder:e.unref(t)("emailPlaceholder"),validation:r.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,a.value==="email"]])]),_:1})]),e.createVNode(b.default,{submit:m,callback:p,class:"w-100 bg-main mn-b-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1}),e.createElementVNode("div",T,[e.createVNode(h,{to:"/auth/signin",class:"underline mn-b-medium d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("haveAccount")),1)]),_:1})])])}}};exports.default=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Tab/Tab.vue.cjs"),f=require("../../../../components/Field/Field.vue.cjs"),_=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),b=require("../../../../components/Button/Button.vue.cjs"),d=require("vue-router"),g=require("vue-i18n"),w=require("../../localization/SignUp.json.cjs"),l=require("../../store/auth.cjs"),V=require("../../store/twofa.cjs"),s=require("../../../middlewares/client/inputs.validation.cjs");require("./SignUp.vue2.cjs");const N={class:"t-left pd-medium"},S={class:"mn-b-small"},E={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},q={class:"pos-relative"},y={class:"mn-b-semi radius-small"},C={class:"mn-b-small t-transp"},D={class:"mn-b-semi radius-small o-hidden"},x={class:"mn-b-small t-transp"},T={class:"w-100"},k={__name:"SignUp",setup(I){const{t}=g.useI18n({useScope:"global",...w.default}),i=e.ref(null),r=e.ref(null);d.useRoute();const c=d.useRouter(),a=e.ref("phone");async function m(){try{a.value==="phone"&&await s.validateInputs(i,s.validatePhone,l.state.user.phone,"Некорректный телефон"),a.value==="email"&&await s.validateInputs(r,s.validateEmail,l.state.user.email,"Некорректный email")}catch{throw new Error}try{await V.sendCode(l.state.user,"signup",a.value)}catch{throw new Error}}function p(){c.push({name:"Enter Code"})}return(u,n)=>{const h=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",N,[e.createElementVNode("h3",S,e.toDisplayString(e.unref(t)("title")),1),e.createElementVNode("div",E,[e.createVNode(v.default,{selected:a.value,"onUpdate:selected":n[0]||(n[0]=o=>a.value=o),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",q,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",y,[e.createElementVNode("p",C,e.toDisplayString(e.unref(t)("smsNotice")),1),e.createVNode(_.default,{modelValue:l.state.user.phone,"onUpdate:modelValue":n[1]||(n[1]=o=>l.state.user.phone=o),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:i.value,mode:"national",inputOptions:{placeholder:e.unref(t)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,a.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",D,[e.createElementVNode("p",x,e.toDisplayString(e.unref(t)("emailNotice")),1),e.createVNode(f.default,{field:l.state.user.email,"onUpdate:field":n[2]||(n[2]=o=>l.state.user.email=o),placeholder:e.unref(t)("emailPlaceholder"),validation:r.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,a.value==="email"]])]),_:1})]),e.createVNode(b.default,{submit:m,callback:p,class:"w-100 bg-main mn-b-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1}),e.createElementVNode("div",T,[e.createVNode(h,{to:"/auth/signin",class:"underline mn-b-medium d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("haveAccount")),1)]),_:1})])])}}};exports.default=k;
@@ -1,19 +1,22 @@
1
1
  import { ref as d, resolveComponent as C, openBlock as k, createElementBlock as E, createElementVNode as o, toDisplayString as r, unref as t, createVNode as a, Transition as h, withCtx as m, withDirectives as f, vShow as _, createTextVNode as v } from "vue";
2
- import x from "../../../../components/Tab/Tab.vue2.js";
3
- import N from "../../../../components/Field/Field.vue2.js";
4
- import S from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import D from "../../../../components/Button/Button.vue2.js";
2
+ import S from "../../../../components/Tab/Tab.vue.js";
3
+ import x from "../../../../components/Field/Field.vue.js";
4
+ import N from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
+ import D from "../../../../components/Button/Button.vue.js";
6
6
  import { useRoute as I, useRouter as P } from "vue-router";
7
7
  import { useI18n as U } from "vue-i18n";
8
8
  import F from "../../localization/SignUp.json.js";
9
- import { state as i } from "../../store/auth.js";
9
+ import { state as s } from "../../store/auth.js";
10
10
  import { sendCode as O } from "../../store/twofa.js";
11
11
  import { validateInputs as b, validatePhone as T, validateEmail as A } from "../../../middlewares/client/inputs.validation.js";
12
12
  import "./SignUp.vue2.js";
13
- const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { class: "mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, L = { class: "pos-relative" }, j = { class: "mn-b-semi radius-small" }, q = { class: "mn-b-small t-transp" }, z = { class: "mn-b-semi radius-small o-hidden" }, G = { class: "mn-b-small t-transp" }, H = { class: "w-100" }, ie = {
13
+ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { class: "mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, L = { class: "pos-relative" }, j = { class: "mn-b-semi radius-small" }, q = { class: "mn-b-small t-transp" }, z = { class: "mn-b-semi radius-small o-hidden" }, G = { class: "mn-b-small t-transp" }, H = { class: "w-100" }, se = {
14
14
  __name: "SignUp",
15
15
  setup(J) {
16
- const { t: e } = U(F), u = d(null), c = d(null);
16
+ const { t: e } = U({
17
+ useScope: "global",
18
+ ...F
19
+ }), u = d(null), c = d(null);
17
20
  I();
18
21
  const w = P(), l = d("phone");
19
22
  async function g() {
@@ -21,19 +24,19 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { clas
21
24
  l.value === "phone" && await b(
22
25
  u,
23
26
  T,
24
- i.user.phone,
27
+ s.user.phone,
25
28
  "Некорректный телефон"
26
29
  ), l.value === "email" && await b(
27
30
  c,
28
31
  A,
29
- i.user.email,
32
+ s.user.email,
30
33
  "Некорректный email"
31
34
  );
32
35
  } catch {
33
36
  throw new Error();
34
37
  }
35
38
  try {
36
- await O(i.user, "signup", l.value);
39
+ await O(s.user, "signup", l.value);
37
40
  } catch {
38
41
  throw new Error();
39
42
  }
@@ -41,14 +44,14 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { clas
41
44
  function V() {
42
45
  w.push({ name: "Enter Code" });
43
46
  }
44
- return (p, s) => {
47
+ return (p, i) => {
45
48
  const y = C("router-link");
46
49
  return k(), E("section", B, [
47
50
  o("h3", R, r(t(e)("title")), 1),
48
51
  o("div", $, [
49
- a(x, {
52
+ a(S, {
50
53
  selected: l.value,
51
- "onUpdate:selected": s[0] || (s[0] = (n) => l.value = n),
54
+ "onUpdate:selected": i[0] || (i[0] = (n) => l.value = n),
52
55
  tabs: [
53
56
  { name: t(e)("phone"), value: "phone" },
54
57
  { name: t(e)("email"), value: "email" }
@@ -60,9 +63,9 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { clas
60
63
  default: m(() => [
61
64
  f(o("div", j, [
62
65
  o("p", q, r(t(e)("smsNotice")), 1),
63
- a(S, {
64
- modelValue: i.user.phone,
65
- "onUpdate:modelValue": s[1] || (s[1] = (n) => i.user.phone = n),
66
+ a(N, {
67
+ modelValue: s.user.phone,
68
+ "onUpdate:modelValue": i[1] || (i[1] = (n) => s.user.phone = n),
66
69
  dropdownOptions: {
67
70
  showDialCodeInSelection: !0,
68
71
  showFlags: !0,
@@ -83,9 +86,9 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { clas
83
86
  default: m(() => [
84
87
  f(o("div", z, [
85
88
  o("p", G, r(t(e)("emailNotice")), 1),
86
- a(N, {
87
- field: i.user.email,
88
- "onUpdate:field": s[2] || (s[2] = (n) => i.user.email = n),
89
+ a(x, {
90
+ field: s.user.email,
91
+ "onUpdate:field": i[2] || (i[2] = (n) => s.user.email = n),
89
92
  placeholder: t(e)("emailPlaceholder"),
90
93
  validation: c.value,
91
94
  class: "bg-grey pd-medium radius-small"
@@ -123,5 +126,5 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { clas
123
126
  }
124
127
  };
125
128
  export {
126
- ie as default
129
+ se as default
127
130
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"en-default":{title:"Sign Up to Weeder",description:"Choose a convenient way to register via phone or email:",phone:"Phone",email:"Email",phonePlaceholder:"Enter your phone",emailPlaceholder:"Enter your email",emailNotice:"We will send you an email with a confirmation code that you will need to enter in the next step.",smsNotice:"We will send you an SMS with a confirmation code that you will need to enter in the next step.",sendCode:"Send Code",haveAccount:"Already have an account?"},"ru-default":{title:"Новая учетная запись",description:"Выберите удобный способ регистрации через телефон или email:",phone:"Телефон",email:"Email",phonePlaceholder:"Введите ваш телефон",emailPlaceholder:"Введите ваш email",emailNotice:"Мы отправим вам электронное письмо с кодом подтверждения, который вы должны будете ввести в следующем шаге.",smsNotice:"Мы вышлем вам SMS с кодом подтверждения, который вы должны будете ввести в следующем шаге.",sendCode:"Отправить код",haveAccount:"У вас уже есть аккаунт?"}},t={messages:e};exports.default=t;exports.messages=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"en-default":{title:"Sign Up",description:"Choose a convenient way to register via phone or email:",phone:"Phone",email:"Email",phonePlaceholder:"Enter your phone",emailPlaceholder:"Enter your email",emailNotice:"We will send you an email with a confirmation code that you will need to enter in the next step.",smsNotice:"We will send you an SMS with a confirmation code that you will need to enter in the next step.",sendCode:"Send Code",haveAccount:"Already have an account?"},"ru-default":{title:"Новая учетная запись",description:"Выберите удобный способ регистрации через телефон или email:",phone:"Телефон",email:"Email",phonePlaceholder:"Введите ваш телефон",emailPlaceholder:"Введите ваш email",emailNotice:"Мы отправим вам электронное письмо с кодом подтверждения, который вы должны будете ввести в следующем шаге.",smsNotice:"Мы вышлем вам SMS с кодом подтверждения, который вы должны будете ввести в следующем шаге.",sendCode:"Отправить код",haveAccount:"У вас уже есть аккаунт?"}},t={messages:e};exports.default=t;exports.messages=e;
@@ -1,6 +1,6 @@
1
1
  const e = {
2
2
  "en-default": {
3
- title: "Sign Up to Weeder",
3
+ title: "Sign Up",
4
4
  description: "Choose a convenient way to register via phone or email:",
5
5
  phone: "Phone",
6
6
  email: "Email",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../../node_modules/axios/lib/axios.cjs"),d=require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs"),l=require("../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),w=require("vue"),n=require("../../globals/store/globals.cjs"),O=require("./twofa.cjs"),i=f.default.create({baseURL:process.env.API_URL,withCredentials:!0}),o=w.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1}});async function g(){const e=await P("user");if(console.log("user cookie is "+e),e){const{_id:t,email:s,phone:c,roles:a,accessToken:r}=e;Object.assign(o.user,{_id:t,email:s,phone:c}),Object.assign(o.access,{token:r,roles:a,status:!!r}),i.interceptors.request.use(u=>(r&&(u.headers["x-access-token"]=r),u),u=>Promise.reject(u))}}g();const k={async login(e,t){try{const s=await i.post("/api/auth/signin",{...e,type:t});return p("user",s.data),Object.assign(o.user,{...s.data}),Object.assign(o.access,{token:s.data.accessToken,status:!0,roles:s.data.roles}),s.data}catch(s){return Object.assign(o.access,{token:null,status:!1,roles:null}),n.setError(s),Promise.reject(s)}},async signup(e,t,s){const{password:c,passwordRepeat:a}=o.user;if(c!==a){const r={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw n.setError(r),new Error(r.response.status)}try{e.phone=e.phone.number;const r=await i.post("/api/auth/signup",{...e,type:t,inviteCode:s});return r.data.accessToken&&p("user",r.data),Object.assign(o.user,{...r.data}),Object.assign(o.access,{token:r.data.accessToken,status:!0,roles:r.data.roles}),r.data}catch(r){throw n.setError(r),console.log("Sign up falied"),r}},logout(){m("user"),Object.assign(o.user,{email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(o.access,{token:null,status:!1})},async resetPassword(e,t){try{const s=await i.post("/api/auth/reset-password",{email:e.email,phone:e.phone.number,type:t});return Object.assign(O.state.code,{...s.data,isSended:!0}),s.data}catch(s){return n.setError(s),Promise.reject(s)}},async updatePassword(e,t){const{password:s,passwordRepeat:c}=o.user;if(s!==c){const a={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw n.setError(a),new Error(a.response.status)}try{const a=await i.post("/api/auth/update-password",{email:e.email,phone:e.phone.number,password:e.password,passwordRepeat:e.passwordRepeat,type:t});return a.data.accessToken&&p("user",a.data),Object.assign(o.user,{...a.data}),Object.assign(o.access,{token:a.data.accessToken,status:!0}),a.data}catch(a){return n.setError(a),Promise.reject(a)}}},h={development:{secure:!1,expires:1},production:{expires:1,domain:process.env.API_URL,sameSite:"none",secure:!0}};async function P(e){if(process.env.MOBILE_APP){const{value:t}=await l.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.NODE_ENV){process.env.MOBILE_APP?l.Preferences.set({key:e,value:JSON.stringify(t)}):d.default.set(e,JSON.stringify(t),h[s])}function m(e,t=process.env.NODE_ENV){if(process.env.MOBILE_APP)l.Preferences.remove({key:e});else{const s=t==="production"?{domain:process.env.API_URL}:{};d.default.remove(e,s)}}w.watch(o,(e,t)=>{});exports.actions=k;exports.state=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../../node_modules/axios/lib/axios.cjs"),d=require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs"),l=require("../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),w=require("vue"),n=require("../../globals/store/globals.cjs"),O=require("./twofa.cjs"),i=f.default.create({baseURL:process.env.API_URL,withCredentials:!0}),o=w.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1}});async function g(){const e=await P("user");if(e){const{_id:t,email:s,phone:c,roles:a,accessToken:r}=e;Object.assign(o.user,{_id:t,email:s,phone:c}),Object.assign(o.access,{token:r,roles:a,status:!!r}),i.interceptors.request.use(u=>(r&&(u.headers["x-access-token"]=r),u),u=>Promise.reject(u))}}g();const h={async login(e,t){try{const s=await i.post("/api/auth/signin",{...e,type:t});return p("user",s.data),Object.assign(o.user,{...s.data}),Object.assign(o.access,{token:s.data.accessToken,status:!0,roles:s.data.roles}),s.data}catch(s){return Object.assign(o.access,{token:null,status:!1,roles:null}),n.setError(s),Promise.reject(s)}},async signup(e,t,s){const{password:c,passwordRepeat:a}=o.user;if(c!==a){const r={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw n.setError(r),new Error(r.response.status)}try{e.phone=e.phone.number;const r=await i.post("/api/auth/signup",{...e,type:t,inviteCode:s});return r.data.accessToken&&p("user",r.data),Object.assign(o.user,{...r.data}),Object.assign(o.access,{token:r.data.accessToken,status:!0,roles:r.data.roles}),r.data}catch(r){throw n.setError(r),console.log("Sign up falied"),r}},logout(){m("user"),Object.assign(o.user,{email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(o.access,{token:null,status:!1})},async resetPassword(e,t){try{const s=await i.post("/api/auth/reset-password",{email:e.email,phone:e.phone.number,type:t});return Object.assign(O.state.code,{...s.data,isSended:!0}),s.data}catch(s){return n.setError(s),Promise.reject(s)}},async updatePassword(e,t){const{password:s,passwordRepeat:c}=o.user;if(s!==c){const a={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw n.setError(a),new Error(a.response.status)}try{const a=await i.post("/api/auth/update-password",{email:e.email,phone:e.phone.number,password:e.password,passwordRepeat:e.passwordRepeat,type:t});return a.data.accessToken&&p("user",a.data),Object.assign(o.user,{...a.data}),Object.assign(o.access,{token:a.data.accessToken,status:!0}),a.data}catch(a){return n.setError(a),Promise.reject(a)}}},k={development:{secure:!1,expires:7},production:{expires:7,path:"/",domain:process.env.API_URL,sameSite:"none",secure:!0}};async function P(e){if(process.env.MOBILE_APP){const{value:t}=await l.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?l.Preferences.set({key:e,value:JSON.stringify(t)}):d.default.set(e,JSON.stringify(t),k[s])}function m(e,t=process.env.NODE_ENV){if(process.env.MOBILE_APP)l.Preferences.remove({key:e});else{const s=t==="production"?{domain:process.env.API_URL}:{};d.default.remove(e,s)}}w.watch(o,(e,t)=>{});exports.actions=h;exports.state=o;
@@ -19,14 +19,14 @@ const i = m.create({ baseURL: process.env.API_URL, withCredentials: !0 }), o = w
19
19
  status: !1
20
20
  }
21
21
  });
22
- async function g() {
22
+ async function h() {
23
23
  const e = await k("user");
24
- if (console.log("user cookie is " + e), e) {
24
+ if (e) {
25
25
  const { _id: t, email: s, phone: c, roles: a, accessToken: r } = e;
26
26
  Object.assign(o.user, { _id: t, email: s, phone: c }), Object.assign(o.access, { token: r, roles: a, status: !!r }), i.interceptors.request.use((p) => (r && (p.headers["x-access-token"] = r), p), (p) => Promise.reject(p));
27
27
  }
28
28
  }
29
- g();
29
+ h();
30
30
  const R = {
31
31
  async login(e, t) {
32
32
  try {
@@ -131,9 +131,9 @@ const R = {
131
131
  return n(a), Promise.reject(a);
132
132
  }
133
133
  }
134
- }, h = {
135
- development: { secure: !1, expires: 1 },
136
- production: { expires: 1, domain: process.env.API_URL, sameSite: "none", secure: !0 }
134
+ }, g = {
135
+ development: { secure: !1, expires: 7 },
136
+ production: { expires: 7, path: "/", domain: process.env.API_URL, sameSite: "none", secure: !0 }
137
137
  };
138
138
  async function k(e) {
139
139
  if (process.env.MOBILE_APP) {
@@ -144,11 +144,11 @@ async function k(e) {
144
144
  return t ? JSON.parse(t) : null;
145
145
  }
146
146
  }
147
- function u(e, t, s = process.env.NODE_ENV) {
147
+ function u(e, t, s = process.env.DOMAIN_URL) {
148
148
  process.env.MOBILE_APP ? l.set({
149
149
  key: e,
150
150
  value: JSON.stringify(t)
151
- }) : d.set(e, JSON.stringify(t), h[s]);
151
+ }) : d.set(e, JSON.stringify(t), g[s]);
152
152
  }
153
153
  function P(e, t = process.env.NODE_ENV) {
154
154
  if (process.env.MOBILE_APP)
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/layouts/Community.vue.cjs"),t=require("./components/pages/CreateBlogPost.vue.cjs"),o=require("./components/pages/BlogPost.vue.cjs"),r=require("./components/pages/Blog.vue.cjs"),s=require("./components/blocks/FooterBlogpost.vue.cjs"),u=require("./components/blocks/Activity.vue.cjs"),l=require("./components/blocks/CardBlogpost.vue.cjs"),i=require("./components/sections/Feed.vue.cjs"),n=require("./components/sections/SubscribeNewsletter.vue.cjs"),c=require("./components/sections/JoinUs.vue.cjs"),a=require("./components/sections/Comments.vue.cjs"),d=require("./components/sections/HotPosts.vue.cjs"),g=require("./store/blogposts.cjs"),q=require("./store/reactions.cjs"),f=require("./router/blogposts.cjs");exports.Community=e.default;exports.CreateBlogPost=t.default;exports.BlogPost=o.default;exports.Blog=r.default;exports.FooterBlogpost=s.default;exports.Activity=u.default;exports.CardBlogpost=l.default;exports.Feed=i.default;exports.SubscribeNewsletter=n.default;exports.JoinUs=c.default;exports.Comments=a.default;exports.HotPosts=d.default;exports.blogpostsStore=g;exports.reactionsStore=q;exports.blogpostsRoutes=f.default;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components/layouts/Community.vue.cjs"),e=require("./components/pages/CreateBlogPost.vue.cjs"),o=require("./components/pages/BlogPost.vue.cjs"),s=require("./components/pages/Blog.vue.cjs"),r=require("./components/blocks/FooterBlogpost.vue.cjs"),u=require("./components/blocks/Activity.vue.cjs"),l=require("./components/blocks/CardBlogpost.vue.cjs"),i=require("./components/sections/Feed.vue.cjs"),n=require("./components/sections/JoinUs.vue.cjs"),a=require("./components/sections/Comments.vue.cjs"),c=require("./components/sections/HotPosts.vue.cjs"),d=require("./store/blogposts.cjs"),g=require("./store/reactions.cjs"),q=require("./router/blogposts.cjs");exports.Community=t.default;exports.CreateBlogPost=e.default;exports.BlogPost=o.default;exports.Blog=s.default;exports.FooterBlogpost=r.default;exports.Activity=u.default;exports.CardBlogpost=l.default;exports.Feed=i.default;exports.JoinUs=n.default;exports.Comments=a.default;exports.HotPosts=c.default;exports.blogpostsStore=d;exports.reactionsStore=g;exports.blogpostsRoutes=q.default;
@@ -1,32 +1,30 @@
1
1
  import { default as s } from "./components/layouts/Community.vue.js";
2
2
  import { default as f } from "./components/pages/CreateBlogPost.vue.js";
3
- import { default as p } from "./components/pages/BlogPost.vue.js";
4
- import { default as u } from "./components/pages/Blog.vue.js";
3
+ import { default as l } from "./components/pages/BlogPost.vue.js";
4
+ import { default as d } from "./components/pages/Blog.vue.js";
5
5
  import { default as x } from "./components/blocks/FooterBlogpost.vue.js";
6
- import { default as g } from "./components/blocks/Activity.vue.js";
7
- import { default as n } from "./components/blocks/CardBlogpost.vue.js";
8
- import { default as c } from "./components/sections/Feed.vue.js";
9
- import { default as P } from "./components/sections/SubscribeNewsletter.vue.js";
10
- import { default as y } from "./components/sections/JoinUs.vue.js";
11
- import { default as v } from "./components/sections/Comments.vue.js";
12
- import { default as A } from "./components/sections/HotPosts.vue.js";
6
+ import { default as i } from "./components/blocks/Activity.vue.js";
7
+ import { default as B } from "./components/blocks/CardBlogpost.vue.js";
8
+ import { default as b } from "./components/sections/Feed.vue.js";
9
+ import { default as P } from "./components/sections/JoinUs.vue.js";
10
+ import { default as F } from "./components/sections/Comments.vue.js";
11
+ import { default as v } from "./components/sections/HotPosts.vue.js";
13
12
  import * as o from "./store/blogposts.js";
14
13
  import * as t from "./store/reactions.js";
15
- import { default as J } from "./router/blogposts.js";
14
+ import { default as H } from "./router/blogposts.js";
16
15
  export {
17
- g as Activity,
18
- u as Blog,
19
- p as BlogPost,
20
- n as CardBlogpost,
21
- v as Comments,
16
+ i as Activity,
17
+ d as Blog,
18
+ l as BlogPost,
19
+ B as CardBlogpost,
20
+ F as Comments,
22
21
  s as Community,
23
22
  f as CreateBlogPost,
24
- c as Feed,
23
+ b as Feed,
25
24
  x as FooterBlogpost,
26
- A as HotPosts,
27
- y as JoinUs,
28
- P as SubscribeNewsletter,
29
- J as blogpostsRoutes,
25
+ v as HotPosts,
26
+ P as JoinUs,
27
+ H as blogpostsRoutes,
30
28
  o as blogpostsStore,
31
29
  t as reactionsStore
32
30
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("../../../globals/components/blocks/CardHeader.vue.cjs"),g=require("./FooterBlogpost.vue.cjs"),p=require("../../../../components/Chips/Chips.vue.cjs"),b=require("../../../icons/navigation/IconEdit.vue.cjs"),y=require("vue-router"),h={class:"pos-relative bg-grey radius-big"},k=["src"],f={key:2,class:"flex-center flex"},v={controls:"",class:"mn-b-medium object-fit-cover w-100 h-20r"},B=["src"],V={class:"pd-t-zero pd-medium"},E={key:0,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},N={key:0,class:"pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"},C={key:1,class:"mn-b-small t-transp p-big"},w={key:2,class:"mn-b-small h2"},x={__name:"CardBlogpost",props:["blogpost","user","type"],setup(t){const i=y.useRouter(),n=t,l=e.computed(()=>n.blogpost.content.find(o=>o.type==="ImageUpload")),r=e.computed(()=>n.blogpost.content.find(o=>o.type==="Video")),a=e.computed(()=>n.blogpost.content.find(o=>o.type==="Textarea"));return(o,s)=>{var c,u;return e.openBlock(),e.createElementBlock("article",h,[t.user&&t.user===t.blogpost.creator.target._id?(e.openBlock(),e.createBlock(b.default,{key:0,onClick:s[0]||(s[0]=e.withModifiers(d=>o.$router.push({name:"Edit BlogPost",params:{url:t.blogpost.url}}),["stop"])),class:"z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),e.createVNode(m.default,{class:e.normalizeClass({"mn-b-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),entity:t.blogpost,entityType:"blogpost",user:t.user,owner:t.blogpost.owner,creator:t.blogpost.creator,date:t.blogpost.createdAt},null,8,["class","entity","user","owner","creator","date"]),l.value&&l.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:1,src:(o.FILE_SERVER_URL||"")+l.value.content,alt:"Blog post image",class:"mn-b-medium object-fit-cover w-100 h-20r"},null,8,k)):e.createCommentVNode("",!0),!((c=l.value)!=null&&c.content)&&r.value&&r.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("video",v,[e.createElementVNode("source",{src:r.value.content,type:"video/mp4"},null,8,B),e.createTextVNode(" Your browser does not support the video tag. ")])])):e.createCommentVNode("",!0),e.createElementVNode("section",V,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("h3",{onClick:s[1]||(s[1]=d=>e.unref(i).push({name:"BlogPost",params:{url:t.blogpost.url}})),class:""},e.toDisplayString(t.blogpost.name),1),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",N,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),a.value&&a.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("p",C,e.toDisplayString(a.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"?(e.openBlock(),e.createElementBlock("h3",w,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default"),t.type!=="short"&&((u=t.blogpost.tags)==null?void 0:u.length)>0?(e.openBlock(),e.createBlock(p.default,{key:3,chips:t.blogpost.tags},null,8,["chips"])):e.createCommentVNode("",!0)]),e.createVNode(g.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])])}}};exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("../../../globals/components/blocks/CardHeader.vue.cjs"),g=require("./FooterBlogpost.vue.cjs"),p=require("../../../../components/Text/Text.vue.cjs"),b=require("../../../../components/Chips/Chips.vue.cjs"),h=require("../../../icons/navigation/IconEdit.vue.cjs"),y=require("vue-router"),f={class:"pos-relative bg-grey radius-big flex-column flex"},k=["src"],v={key:2,class:"flex-center flex"},B={controls:"",class:"mn-b-medium object-fit-cover w-100 h-min-10r h-max-20r"},x=["src"],V={class:"pd-t-zero pd-medium"},N={key:0,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},C={key:0,class:"pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"},E={key:1,class:"mn-b-small t-transp p-big"},w={key:2,class:"mn-b-small h2"},S={__name:"CardBlogpost",props:{blogpost:{type:Object},user:{type:String},type:{type:String},hideDescription:{type:Boolean,default:!1}},setup(t){const i=y.useRouter(),s=t,l=e.computed(()=>s.blogpost.content.find(o=>o.type==="ImageUpload")),n=e.computed(()=>s.blogpost.content.find(o=>o.type==="Video")),r=e.computed(()=>s.blogpost.content.find(o=>o.type==="Textarea"));return(o,c)=>{var a,u;const d=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("article",f,[t.user&&t.user===t.blogpost.creator.target._id?(e.openBlock(),e.createBlock(d,{key:0,to:{name:"Edit BlogPost",params:{url:t.blogpost.url}},class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"},{default:e.withCtx(()=>[e.createVNode(h.default,{class:"i-regular",classes:"fill-white"})]),_:1},8,["to"])):e.createCommentVNode("",!0),e.createVNode(m.default,{class:e.normalizeClass({"mn-b-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),entity:t.blogpost,entityType:"blogpost",user:t.user,owner:t.blogpost.owner,creator:t.blogpost.creator,date:t.blogpost.createdAt},null,8,["class","entity","user","owner","creator","date"]),l.value&&l.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:1,src:(o.FILE_SERVER_URL||"")+l.value.content,alt:"Blog post image",class:"mn-b-medium object-fit-cover w-100 h-min-10r h-100"},null,8,k)):e.createCommentVNode("",!0),!((a=l.value)!=null&&a.content)&&n.value&&n.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("video",B,[e.createElementVNode("source",{src:n.value.content,type:"video/mp4"},null,8,x),e.createTextVNode(" Your browser does not support the video tag. ")])])):e.createCommentVNode("",!0),e.createElementVNode("section",V,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(p.default,{text:t.blogpost.name||"",maxLen:80,class:"h3 d-block",onClick:c[0]||(c[0]=P=>e.unref(i).push({name:"BlogPost",params:{url:t.blogpost.url}}))},null,8,["text"]),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",C,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r.value&&r.value.content&&t.type!=="blogpostPage"&&!t.hideDescription?(e.openBlock(),e.createElementBlock("p",E,e.toDisplayString(r.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"?(e.openBlock(),e.createElementBlock("h3",w,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default"),t.type!=="short"&&((u=t.blogpost.tags)==null?void 0:u.length)>0?(e.openBlock(),e.createBlock(b.default,{key:3,chips:t.blogpost.tags},null,8,["chips"])):e.createCommentVNode("",!0)]),e.createVNode(g.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])])}}};exports.default=S;