@ozdao/prometheus-framework 0.1.98 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (311) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  3. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +2 -49
  4. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  5. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +49 -2
  6. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  7. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +5 -5
  8. package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.cjs +1 -1
  9. package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.js +1 -1
  10. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  11. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -2
  12. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +10 -10
  14. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
  16. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
  18. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +12 -12
  20. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +15 -15
  22. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +8 -8
  24. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +14 -14
  26. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +14 -14
  28. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +9 -9
  30. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.js +4 -4
  32. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  34. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +8 -8
  36. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  38. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +10 -10
  40. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +6 -6
  42. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +9 -9
  44. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +8 -8
  46. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +3 -3
  48. package/dist/prometheus-framework/src/modules/community/components/sections/SubscribeNewsletter.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/community/components/sections/SubscribeNewsletter.vue.js +3 -3
  50. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +2 -2
  52. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +4 -4
  54. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +1 -1
  56. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +2 -2
  58. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +5 -5
  60. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +20 -11
  62. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  64. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -4
  65. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -62
  66. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
  67. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +62 -2
  68. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +13 -13
  70. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +11 -11
  72. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  74. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +20 -20
  76. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +6 -6
  78. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  80. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +7 -7
  82. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +4 -4
  84. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +10 -10
  86. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +13 -13
  88. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  90. package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.js +4 -4
  92. package/dist/prometheus-framework/src/modules/icons/navigation/IconLike.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/icons/navigation/IconLike.vue.js +7 -7
  94. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +3 -3
  96. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +6 -6
  98. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.js +2 -2
  100. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +1 -1
  102. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +8 -8
  104. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +3 -3
  106. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +1 -1
  108. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +8 -8
  110. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +4 -4
  112. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.js +1 -1
  114. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.js +1 -1
  116. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +7 -7
  118. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +6 -6
  120. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  122. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +14 -14
  124. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +7 -7
  126. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +6 -6
  128. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +15 -15
  130. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +8 -8
  132. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +5 -5
  134. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +5 -5
  136. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +7 -7
  138. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  140. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +2 -2
  141. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +4 -4
  143. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +5 -5
  145. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +2 -2
  147. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +5 -5
  149. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +8 -8
  151. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +5 -5
  153. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +8 -8
  155. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +6 -6
  157. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +18 -18
  159. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +5 -5
  161. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +9 -9
  163. package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.js +1 -1
  165. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +8 -8
  167. package/dist/prometheus-framework.cjs.js +1 -1
  168. package/dist/prometheus-framework.es.js +2 -2
  169. package/dist/style.css +1 -1
  170. package/package.json +1 -1
  171. package/src/components/EditImages/EditImages.vue +3 -3
  172. package/src/components/EmptyState/EmptyState.vue +2 -2
  173. package/src/components/Field/Field.svlt +1 -1
  174. package/src/components/Field/Field.vue +1 -1
  175. package/src/components/FieldTags/BlockTags.vue +4 -4
  176. package/src/components/Footer/Footer.vue +8 -8
  177. package/src/components/LocationSelection/LocationSelection.vue +4 -4
  178. package/src/components/Search/Search.vue +3 -3
  179. package/src/configurator/components/layouts/layoutConfigurator.vue +2 -2
  180. package/src/configurator/components/pages/Styles.vue +3 -3
  181. package/src/modules/auth/components/pages/EnterCode.vue +4 -4
  182. package/src/modules/auth/components/pages/EnterPassword.vue +9 -9
  183. package/src/modules/auth/components/pages/Invite.vue +6 -6
  184. package/src/modules/auth/components/pages/ResetPassword.vue +10 -10
  185. package/src/modules/auth/components/pages/SignIn.vue +11 -11
  186. package/src/modules/auth/components/pages/SignUp.vue +11 -11
  187. package/src/modules/auth/components/sections/SliderFeatures.vue +2 -2
  188. package/src/modules/backoffice/components/admin/Categories.vue +2 -2
  189. package/src/modules/backoffice/components/admin/CategoryEdit.vue +2 -2
  190. package/src/modules/backoffice/components/admin/Dashboard.vue +1 -1
  191. package/src/modules/backoffice/components/admin/FastOrders.vue +3 -3
  192. package/src/modules/backoffice/components/admin/PageEdit.vue +3 -3
  193. package/src/modules/backoffice/components/admin/Pages.vue +1 -1
  194. package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
  195. package/src/modules/backoffice/components/admin/User.vue +6 -6
  196. package/src/modules/backoffice/components/admin/Users.vue +4 -4
  197. package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
  198. package/src/modules/backoffice/components/pages/Dashboard.vue +1 -1
  199. package/src/modules/community/components/blocks/CardBlogpost.vue +5 -5
  200. package/src/modules/community/components/layouts/Community.vue +2 -2
  201. package/src/modules/community/components/pages/BlogPost.vue +4 -4
  202. package/src/modules/community/components/pages/Community.vue +2 -2
  203. package/src/modules/community/components/pages/CreateBlogPost.vue +5 -5
  204. package/src/modules/community/components/sections/Comments.vue +5 -5
  205. package/src/modules/community/components/sections/Feed.vue +2 -2
  206. package/src/modules/community/components/sections/JoinUs.vue +2 -2
  207. package/src/modules/community/components/sections/SubscribeNewsletter.vue +3 -3
  208. package/src/modules/constructor/components/elements/Audio.vue +2 -2
  209. package/src/modules/constructor/components/elements/Bullets.vue +1 -1
  210. package/src/modules/constructor/components/elements/Caption.vue +1 -1
  211. package/src/modules/constructor/components/elements/Embed.vue +2 -2
  212. package/src/modules/constructor/components/elements/H2.vue +1 -1
  213. package/src/modules/constructor/components/elements/Image.vue +19 -5
  214. package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
  215. package/src/modules/constructor/components/elements/Textarea.vue +1 -1
  216. package/src/modules/constructor/components/sections/Constructor.vue +4 -4
  217. package/src/modules/events/components/blocks/CardEvent.vue +5 -5
  218. package/src/modules/events/components/layouts/layoutEvents.vue +1 -1
  219. package/src/modules/events/components/pages/EditEvent.vue +12 -12
  220. package/src/modules/events/components/pages/Event.vue +4 -4
  221. package/src/modules/events/components/pages/Events.vue +1 -1
  222. package/src/modules/events/components/sections/Feed.vue +2 -2
  223. package/src/modules/events/components/sections/List.vue +1 -1
  224. package/src/modules/gallery/components/sections/BackofficeGallery.vue +10 -10
  225. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +6 -6
  226. package/src/modules/globals/components/sections/Feed.vue +1 -1
  227. package/src/modules/icons/navigation/IconLike.vue +2 -1
  228. package/src/modules/landing/components/sections/MobileApp.vue +7 -7
  229. package/src/modules/legal/components/pages/Legal.vue +5 -5
  230. package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
  231. package/src/modules/mobile/components/Menu/MenuItem.vue +2 -2
  232. package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
  233. package/src/modules/orders/components/blocks/Positions.vue +8 -8
  234. package/src/modules/orders/components/pages/EditOrder.vue +19 -19
  235. package/src/modules/orders/components/pages/Favorites.vue +2 -2
  236. package/src/modules/orders/components/pages/Order.vue +5 -5
  237. package/src/modules/orders/components/pages/Orders.vue +5 -5
  238. package/src/modules/orders/components/pages/ViewOrder.vue +7 -7
  239. package/src/modules/orders/components/partials/ShopCart.vue +3 -3
  240. package/src/modules/orders/components/sections/Form.vue +12 -12
  241. package/src/modules/orders/components/sections/Succes.vue +4 -4
  242. package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
  243. package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -3
  244. package/src/modules/organizations/components/blocks/Contacts.vue +1 -1
  245. package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +2 -2
  246. package/src/modules/organizations/components/blocks/EditArray.vue +2 -2
  247. package/src/modules/organizations/components/blocks/EmptyState.vue +3 -3
  248. package/src/modules/organizations/components/blocks/Rating.vue +1 -1
  249. package/src/modules/organizations/components/pages/Department.vue +6 -6
  250. package/src/modules/organizations/components/pages/DepartmentEdit.vue +16 -16
  251. package/src/modules/organizations/components/pages/Members.vue +2 -2
  252. package/src/modules/organizations/components/pages/Organization.vue +5 -5
  253. package/src/modules/organizations/components/pages/OrganizationEdit.vue +16 -16
  254. package/src/modules/organizations/components/pages/Organizations.vue +2 -2
  255. package/src/modules/organizations/components/sections/DetailsTab.vue +11 -11
  256. package/src/modules/organizations/components/sections/Documents.vue +4 -4
  257. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  258. package/src/modules/organizations/components/sections/FeedDepartments.vue +2 -2
  259. package/src/modules/organizations/components/sections/MembersAdd.vue +5 -5
  260. package/src/modules/organizations/components/sections/MembersList.vue +2 -2
  261. package/src/modules/organizations/components/sections/Unit.vue +12 -12
  262. package/src/modules/payments/components/pages/Payments.vue +3 -3
  263. package/src/modules/products/components/blocks/CardLeftover.vue +4 -4
  264. package/src/modules/products/components/blocks/CardProduct.vue +3 -3
  265. package/src/modules/products/components/blocks/EditCategories.vue +4 -4
  266. package/src/modules/products/components/blocks/EditFilters.vue +4 -4
  267. package/src/modules/products/components/blocks/LeftoverPositions.vue +1 -1
  268. package/src/modules/products/components/pages/LeftoverAdd.vue +7 -7
  269. package/src/modules/products/components/pages/Leftovers.vue +5 -5
  270. package/src/modules/products/components/pages/OrganizationDetails.vue +4 -4
  271. package/src/modules/products/components/pages/OrganizationDocuments.vue +5 -5
  272. package/src/modules/products/components/pages/OrganizationPeople.vue +5 -5
  273. package/src/modules/products/components/pages/ProductEdit.vue +5 -5
  274. package/src/modules/products/components/pages/ProductRecommmendation.vue +1 -1
  275. package/src/modules/products/components/pages/ProductsBackoffice.vue +2 -2
  276. package/src/modules/products/components/sections/EditModifications.vue +8 -8
  277. package/src/modules/products/components/sections/EditParameters.vue +4 -4
  278. package/src/modules/products/components/sections/EditProductImages.vue +2 -2
  279. package/src/modules/products/components/sections/EditProductInfo.vue +5 -5
  280. package/src/modules/products/components/sections/FilterProducts.vue +9 -9
  281. package/src/modules/products/components/sections/HeroRecommendation.vue +5 -5
  282. package/src/modules/products/components/sections/PopularProducts.vue +1 -1
  283. package/src/modules/products/components/sections/ProductInformationSection.vue +27 -27
  284. package/src/modules/products/components/sections/SectionProduct.vue +6 -6
  285. package/src/modules/products/components/sections/SortProducts.vue +1 -1
  286. package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
  287. package/src/modules/reports/components/sections/FormReport.vue +4 -4
  288. package/src/modules/spots/components/blocks/CardSpot.vue +4 -4
  289. package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
  290. package/src/modules/spots/components/layouts/Spots.vue +3 -3
  291. package/src/modules/spots/components/pages/Spot.vue +4 -4
  292. package/src/modules/spots/components/pages/SpotEdit.vue +16 -16
  293. package/src/modules/spots/components/sections/Feed.vue +2 -2
  294. package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
  295. package/src/modules/spots/components/sections/Places.vue +1 -1
  296. package/src/modules/users/components/pages/Profile.vue +13 -13
  297. package/src/modules/users/components/pages/ProfileBlogposts.vue +2 -2
  298. package/src/modules/users/components/pages/ProfileComments.vue +1 -1
  299. package/src/modules/users/components/pages/ProfileEdit.vue +21 -21
  300. package/src/modules/users/components/pages/ProfileEvents.vue +2 -2
  301. package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
  302. package/src/modules/users/components/pages/ProfileOrganizations.vue +2 -2
  303. package/src/modules/users/components/sections/ProfileCompletion.vue +1 -1
  304. package/src/modules/wallet/components/pages/Wallet.vue +17 -17
  305. package/src/styles/base/all.scss +83 -324
  306. package/src/styles/base/border-radius.scss +47 -0
  307. package/src/styles/base/height.scss +60 -0
  308. package/src/styles/base/scrolling.scss +8 -8
  309. package/src/styles/base/width.scss +2 -0
  310. package/src/styles/config.scss +153 -51
  311. package/src/styles/responsive.scss +2 -2
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs"),f=require("../../../../components/Button/Button.vue2.cjs"),d=require("vue-router"),t=require("../../store/auth.cjs"),u=require("../../store/invites.cjs"),c=require("../../../middlewares/client/inputs.validation.cjs");require("./Invite.vue2.cjs");const h={class:"t-left pd-medium"},v=e.createElementVNode("h3",{class:"mn-small"},"Вы были пригилашены в организацию",-1),y=e.createElementVNode("p",{class:"mn-semi t-transp"},"Пожалуйста, укажите пароль, на этом регистрация будет закочена.",-1),b={class:"mn-semi radius-small o-hidden"},q={key:0},k={key:1},B={__name:"Invite",async setup(E){let r,n;const i=e.ref(null),s=d.useRoute(),p=d.useRouter();[r,n]=e.withAsyncContext(()=>u.actions.readOne(s.query.inviteCode)),await r,n();async function m(){try{await c.validateInputs(i,c.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}await t.actions.signup(t.state.user,s.query.type,s.query.inviteCode)}function _(){p.push({name:"Dashboard"})}return(w,a)=>(e.openBlock(),e.createElementBlock("section",h,[v,y,e.createElementVNode("div",b,[e.createVNode(l.default,{field:t.state.user.password,"onUpdate:field":a[0]||(a[0]=o=>t.state.user.password=o),type:"password",validation:i.value,label:"Пароль",placeholder:"******",class:"bg-white radius-small mn-small"},null,8,["field","validation"]),e.createVNode(l.default,{field:t.state.user.passwordRepeat,"onUpdate:field":a[1]||(a[1]=o=>t.state.user.passwordRepeat=o),type:"password",label:"Повторите пароль",placeholder:"******",class:"bg-white radius-small mn-semi"},null,8,["field"])]),e.createVNode(f.default,{disabled:u.state.invite===null,submit:m,callback:_,class:"mn-big"},{default:e.withCtx(()=>[e.unref(s).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("span",q,"Поменять пароль")):(e.openBlock(),e.createElementBlock("span",k,"Зарегистрироваться"))]),_:1},8,["disabled"])]))}};exports.default=B;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs"),w=require("../../../../components/Button/Button.vue2.cjs"),d=require("vue-router"),t=require("../../store/auth.cjs"),u=require("../../store/invites.cjs"),c=require("../../../middlewares/client/inputs.validation.cjs");require("./Invite.vue2.cjs");const f={class:"t-left pd-medium"},h=e.createElementVNode("h3",{class:"mn-b-small"},"Вы были пригилашены в организацию",-1),v=e.createElementVNode("p",{class:"mn-b-semi t-transp"},"Пожалуйста, укажите пароль, на этом регистрация будет закочена.",-1),y={class:"mn-b-semi radius-small o-hidden"},q={key:0},k={key:1},B={__name:"Invite",async setup(E){let r,n;const i=e.ref(null),s=d.useRoute(),p=d.useRouter();[r,n]=e.withAsyncContext(()=>u.actions.readOne(s.query.inviteCode)),await r,n();async function m(){try{await c.validateInputs(i,c.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}await t.actions.signup(t.state.user,s.query.type,s.query.inviteCode)}function _(){p.push({name:"Dashboard"})}return(b,a)=>(e.openBlock(),e.createElementBlock("section",f,[h,v,e.createElementVNode("div",y,[e.createVNode(l.default,{field:t.state.user.password,"onUpdate:field":a[0]||(a[0]=o=>t.state.user.password=o),type:"password",validation:i.value,label:"Пароль",placeholder:"******",class:"bg-white radius-small mn-b-small"},null,8,["field","validation"]),e.createVNode(l.default,{field:t.state.user.passwordRepeat,"onUpdate:field":a[1]||(a[1]=o=>t.state.user.passwordRepeat=o),type:"password",label:"Повторите пароль",placeholder:"******",class:"bg-white radius-small mn-b-semi"},null,8,["field"])]),e.createVNode(w.default,{disabled:u.state.invite===null,submit:m,callback:_,class:"mn-b-big"},{default:e.withCtx(()=>[e.unref(s).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("span",q,"Поменять пароль")):(e.openBlock(),e.createElementBlock("span",k,"Зарегистрироваться"))]),_:1},8,["disabled"])]))}};exports.default=B;
@@ -1,4 +1,4 @@
1
- import { ref as w, withAsyncContext as h, openBlock as o, createElementBlock as r, createElementVNode as n, createVNode as i, withCtx as y, unref as b } from "vue";
1
+ import { ref as w, withAsyncContext as b, openBlock as o, createElementBlock as r, createElementVNode as n, createVNode as i, withCtx as h, unref as y } from "vue";
2
2
  import "../../../../components/Tab/Tab.vue.js";
3
3
  import p from "../../../../components/Field/Field.vue2.js";
4
4
  import v from "../../../../components/Button/Button.vue2.js";
@@ -7,12 +7,12 @@ import { state as e, actions as q } from "../../store/auth.js";
7
7
  import { actions as x, state as C } from "../../store/invites.js";
8
8
  import { validateInputs as R, validatePassword as E } from "../../../middlewares/client/inputs.validation.js";
9
9
  import "./Invite.vue2.js";
10
- const V = { class: "t-left pd-medium" }, $ = /* @__PURE__ */ n("h3", { class: "mn-small" }, "Вы были пригилашены в организацию", -1), B = /* @__PURE__ */ n("p", { class: "mn-semi t-transp" }, "Пожалуйста, укажите пароль, на этом регистрация будет закочена.", -1), I = { class: "mn-semi radius-small o-hidden" }, N = { key: 0 }, U = { key: 1 }, H = {
10
+ const V = { class: "t-left pd-medium" }, $ = /* @__PURE__ */ n("h3", { class: "mn-b-small" }, "Вы были пригилашены в организацию", -1), B = /* @__PURE__ */ n("p", { class: "mn-b-semi t-transp" }, "Пожалуйста, укажите пароль, на этом регистрация будет закочена.", -1), I = { class: "mn-b-semi radius-small o-hidden" }, N = { key: 0 }, U = { key: 1 }, H = {
11
11
  __name: "Invite",
12
12
  async setup(A) {
13
13
  let l, d;
14
14
  const m = w(null), s = k(), u = g();
15
- [l, d] = h(() => x.readOne(s.query.inviteCode)), await l, d();
15
+ [l, d] = b(() => x.readOne(s.query.inviteCode)), await l, d();
16
16
  async function c() {
17
17
  try {
18
18
  await R(
@@ -40,7 +40,7 @@ const V = { class: "t-left pd-medium" }, $ = /* @__PURE__ */ n("h3", { class: "m
40
40
  validation: m.value,
41
41
  label: "Пароль",
42
42
  placeholder: "******",
43
- class: "bg-white radius-small mn-small"
43
+ class: "bg-white radius-small mn-b-small"
44
44
  }, null, 8, ["field", "validation"]),
45
45
  i(p, {
46
46
  field: e.user.passwordRepeat,
@@ -48,17 +48,17 @@ const V = { class: "t-left pd-medium" }, $ = /* @__PURE__ */ n("h3", { class: "m
48
48
  type: "password",
49
49
  label: "Повторите пароль",
50
50
  placeholder: "******",
51
- class: "bg-white radius-small mn-semi"
51
+ class: "bg-white radius-small mn-b-semi"
52
52
  }, null, 8, ["field"])
53
53
  ]),
54
54
  i(v, {
55
55
  disabled: C.invite === null,
56
56
  submit: c,
57
57
  callback: _,
58
- class: "mn-big"
58
+ class: "mn-b-big"
59
59
  }, {
60
- default: y(() => [
61
- b(s).query.method === "reset-password" ? (o(), r("span", N, "Поменять пароль")) : (o(), r("span", U, "Зарегистрироваться"))
60
+ default: h(() => [
61
+ y(s).query.method === "reset-password" ? (o(), r("span", N, "Поменять пароль")) : (o(), r("span", U, "Зарегистрироваться"))
62
62
  ]),
63
63
  _: 1
64
64
  }, 8, ["disabled"])
@@ -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"),w=require("vue-i18n"),V=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 g={class:"t-left pd-medium"},y={class:"mn-small"},N={class:"mn-small t-transp"},b={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},q={class:"pos-relative"},E={key:0,class:"mn-semi radius-small o-hidden"},k={class:"mn-small t-transp"},C={key:0,class:"mn-semi radius-small o-hidden"},P={class:"mn-small t-transp"},S={__name:"ResetPassword",setup(I){const{t}=w.useI18n(V.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",g,[e.createElementVNode("h3",y,e.toDisplayString(e.unref(t)("forgotPasswordTitle")),1),e.createElementVNode("p",N,e.toDisplayString(e.unref(t)("instructions")),1),e.createElementVNode("div",b,[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-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-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.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;
@@ -8,28 +8,28 @@ import { useI18n as N } from "vue-i18n";
8
8
  import T from "../../localization/ResetPassword.json.js";
9
9
  import { state as s, actions as D } from "../../store/auth.js";
10
10
  import "../../store/twofa.js";
11
- import { validateInputs as w, validatePhone as F, validateEmail as O } from "../../../middlewares/client/inputs.validation.js";
11
+ import { validateInputs as b, validatePhone as F, validateEmail as O } from "../../../middlewares/client/inputs.validation.js";
12
12
  import "./ResetPassword.vue2.js";
13
- const R = { class: "t-left pd-medium" }, S = { class: "mn-small" }, U = { class: "mn-small t-transp" }, B = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, $ = { class: "pos-relative" }, q = {
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 = {
14
14
  key: 0,
15
- class: "mn-semi radius-small o-hidden"
16
- }, A = { class: "mn-small t-transp" }, L = {
15
+ class: "mn-b-semi radius-small o-hidden"
16
+ }, A = { class: "mn-b-small t-transp" }, L = {
17
17
  key: 0,
18
- class: "mn-semi radius-small o-hidden"
19
- }, j = { class: "mn-small t-transp" }, oe = {
18
+ class: "mn-b-semi radius-small o-hidden"
19
+ }, j = { class: "mn-b-small t-transp" }, oe = {
20
20
  __name: "ResetPassword",
21
21
  setup(z) {
22
22
  const { t: e } = N(T), h = m(null), f = m(null);
23
23
  k();
24
- const g = x(), o = m("phone");
25
- async function b() {
24
+ const w = x(), o = m("phone");
25
+ async function g() {
26
26
  try {
27
- o.value === "phone" && await w(
27
+ o.value === "phone" && await b(
28
28
  h,
29
29
  F,
30
30
  s.user.phone,
31
31
  "Некорректный телефон"
32
- ), o.value === "email" && await w(
32
+ ), o.value === "email" && await b(
33
33
  f,
34
34
  O,
35
35
  s.user.email,
@@ -45,7 +45,7 @@ const R = { class: "t-left pd-medium" }, S = { class: "mn-small" }, U = { class:
45
45
  }
46
46
  }
47
47
  function y() {
48
- g.push({ name: "Enter Code", query: { type: o.value, method: "reset-password" } });
48
+ w.push({ name: "Enter Code", query: { type: o.value, method: "reset-password" } });
49
49
  }
50
50
  return (d, a) => (u(), p("section", R, [
51
51
  l("h3", S, r(t(e)("forgotPasswordTitle")), 1),
@@ -76,7 +76,7 @@ const R = { class: "t-left pd-medium" }, S = { class: "mn-small" }, U = { class:
76
76
  validation: h.value,
77
77
  mode: "national",
78
78
  inputOptions: { placeholder: t(e)("phonePlaceholder") },
79
- class: "bg-grey pd-small radius-small mn-thin"
79
+ class: "bg-grey pd-small radius-small mn-b-thin"
80
80
  }, null, 8, ["modelValue", "validation", "inputOptions"])
81
81
  ])) : v("", !0)
82
82
  ]),
@@ -99,9 +99,9 @@ const R = { class: "t-left pd-medium" }, S = { class: "mn-small" }, U = { class:
99
99
  })
100
100
  ]),
101
101
  i(I, {
102
- submit: b,
102
+ submit: g,
103
103
  callback: y,
104
- class: "mn-big"
104
+ class: "mn-b-big"
105
105
  }, {
106
106
  default: c(() => [
107
107
  V(r(t(e)("sendCode")), 1)
@@ -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"),c=require("../../../../components/Field/Field.vue2.cjs"),V=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),w=require("../../../../components/Button/Button.vue2.cjs"),p=require("vue-router"),N=require("vue-i18n"),b=require("../../localization/SignIn.json.cjs"),a=require("../../store/auth.cjs"),r=require("../../../middlewares/client/inputs.validation.cjs");require("./SignIn.vue2.cjs");const y={class:""},S=["src"],E={class:"mn-medium"},q=e.createElementVNode("br",null,null,-1),x={class:"t-semi"},C={class:"mn-big"},D={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},P={class:"pos-relative"},T={class:"mn-thin radius-small"},I={class:"mn-thin radius-small o-hidden"},U={class:"w-100 mn-big"},k={__name:"SignIn",setup(j){const d=e.ref(null),m=e.ref(null),u=e.ref(null);p.useRoute();const h=p.useRouter(),{t:l}=N.useI18n(b.default),n=e.ref("phone"),f=o=>new Promise((s,i)=>{const t=document.createElement("script");t.type="text/javascript",t.src=o,t.onload=s,t.onerror=i,document.head.appendChild(t)});e.onMounted(async()=>{await f("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js")});async function v(){try{n.value==="phone"&&await r.validateInputs(d,r.validatePhone,a.state.user.phone,"Некорректный телефон"),n.value==="email"&&await r.validateInputs(u,r.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 _(){h.push({name:"User Profile",params:{_id:a.state.user._id},query:{afterAuth:"true"}})}return(o,s)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("img",{src:"/logo/logo_square.svg",class:"i-extra radius-small mn-small"},null,8,S),e.createElementVNode("h3",E,[e.createTextVNode(e.toDisplayString(e.unref(l)("title"))+" ",1),q,e.createElementVNode("span",x,e.toDisplayString(e.unref(l)("subtitle")),1)]),e.createElementVNode("p",C,[e.createVNode(i,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signup")),1)]),_:1})]),e.createElementVNode("div",D,[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",P,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",T,[e.createVNode(V.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-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(c.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(c.default,{field:a.state.user.password,"onUpdate:field":s[3]||(s[3]=t=>a.state.user.password=t),type:"password",validation:m.value,placeholder:e.unref(l)("passwordPlaceholder"),class:"bg-grey pd-medium radius-small mn-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",U,[e.createVNode(i,{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(w.default,{submit:v,callback:_,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signin")),1)]),_:1})])}}};exports.default=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("../../../../components/Tab/Tab.vue2.cjs"),c=require("../../../../components/Field/Field.vue2.cjs"),g=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../components/Button/Button.vue2.cjs"),p=require("vue-router"),w=require("vue-i18n"),N=require("../../localization/SignIn.json.cjs"),a=require("../../store/auth.cjs"),r=require("../../../middlewares/client/inputs.validation.cjs");require("./SignIn.vue2.cjs");const y={class:""},S=["src"],E={class:"mn-b-medium"},q=e.createElementVNode("br",null,null,-1),x={class:"t-semi"},C={class:"mn-b-big"},D={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},P={class:"pos-relative"},T={class:"mn-b-thin radius-small"},I={class:"mn-b-thin radius-small o-hidden"},U={class:"w-100 mn-b-big"},k={__name:"SignIn",setup(j){const d=e.ref(null),m=e.ref(null),u=e.ref(null);p.useRoute();const h=p.useRouter(),{t:l}=w.useI18n(N.default),n=e.ref("phone"),f=o=>new Promise((s,i)=>{const t=document.createElement("script");t.type="text/javascript",t.src=o,t.onload=s,t.onerror=i,document.head.appendChild(t)});e.onMounted(async()=>{await f("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js")});async function v(){try{n.value==="phone"&&await r.validateInputs(d,r.validatePhone,a.state.user.phone,"Некорректный телефон"),n.value==="email"&&await r.validateInputs(u,r.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 _(){h.push({name:"User Profile",params:{_id:a.state.user._id},query:{afterAuth:"true"}})}return(o,s)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("img",{src:"/logo/logo_square.svg",class:"i-extra radius-small mn-b-small"},null,8,S),e.createElementVNode("h3",E,[e.createTextVNode(e.toDisplayString(e.unref(l)("title"))+" ",1),q,e.createElementVNode("span",x,e.toDisplayString(e.unref(l)("subtitle")),1)]),e.createElementVNode("p",C,[e.createVNode(i,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signup")),1)]),_:1})]),e.createElementVNode("div",D,[e.createVNode(b.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",P,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",T,[e.createVNode(g.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(c.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(c.default,{field:a.state.user.password,"onUpdate:field":s[3]||(s[3]=t=>a.state.user.password=t),type:"password",validation:m.value,placeholder:e.unref(l)("passwordPlaceholder"),class:"bg-grey pd-medium radius-small mn-b-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",U,[e.createVNode(i,{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:v,callback:_,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signin")),1)]),_:1})])}}};exports.default=k;
@@ -1,15 +1,15 @@
1
- import { ref as p, onMounted as U, resolveComponent as k, openBlock as C, createElementBlock as E, createElementVNode as l, createTextVNode as c, toDisplayString as d, unref as o, createVNode as i, withCtx as u, Transition as f, withDirectives as v, vShow as g } from "vue";
1
+ import { ref as p, onMounted as U, resolveComponent as k, openBlock as C, createElementBlock as E, createElementVNode as l, createTextVNode as c, toDisplayString as d, unref as o, createVNode as i, withCtx as u, Transition as f, withDirectives as v, vShow as b } from "vue";
2
2
  import I from "../../../../components/Tab/Tab.vue2.js";
3
- import w from "../../../../components/Field/Field.vue2.js";
3
+ import g from "../../../../components/Field/Field.vue2.js";
4
4
  import D from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
5
  import j from "../../../../components/Button/Button.vue2.js";
6
6
  import { useRoute as F, useRouter as N } from "vue-router";
7
7
  import { useI18n as O } from "vue-i18n";
8
8
  import T from "../../localization/SignIn.json.js";
9
9
  import { state as s, actions as q } from "../../store/auth.js";
10
- import { validateInputs as b, validatePhone as A, validateEmail as B } from "../../../middlewares/client/inputs.validation.js";
10
+ import { validateInputs as w, validatePhone as A, validateEmail as B } from "../../../middlewares/client/inputs.validation.js";
11
11
  import "./SignIn.vue2.js";
12
- const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE__ */ l("br", null, null, -1), z = { class: "t-semi" }, G = { class: "mn-big" }, H = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, J = { class: "pos-relative" }, K = { class: "mn-thin radius-small" }, Q = { class: "mn-thin radius-small o-hidden" }, W = { class: "w-100 mn-big" }, de = {
12
+ const R = { class: "" }, $ = ["src"], L = { class: "mn-b-medium" }, M = /* @__PURE__ */ l("br", null, null, -1), z = { class: "t-semi" }, G = { class: "mn-b-big" }, H = { class: "mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, J = { class: "pos-relative" }, K = { class: "mn-b-thin radius-small" }, Q = { class: "mn-b-thin radius-small o-hidden" }, W = { class: "w-100 mn-b-big" }, de = {
13
13
  __name: "SignIn",
14
14
  setup(X) {
15
15
  const h = p(null), y = p(null), _ = p(null);
@@ -23,12 +23,12 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
23
23
  });
24
24
  async function P() {
25
25
  try {
26
- n.value === "phone" && await b(
26
+ n.value === "phone" && await w(
27
27
  h,
28
28
  A,
29
29
  s.user.phone,
30
30
  "Некорректный телефон"
31
- ), n.value === "email" && await b(
31
+ ), n.value === "email" && await w(
32
32
  _,
33
33
  B,
34
34
  s.user.email,
@@ -54,7 +54,7 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
54
54
  return C(), E("section", R, [
55
55
  l("img", {
56
56
  src: "/logo/logo_square.svg",
57
- class: "i-extra radius-small mn-small"
57
+ class: "i-extra radius-small mn-b-small"
58
58
  }, null, 8, $),
59
59
  l("h3", L, [
60
60
  c(d(o(a)("title")) + " ", 1),
@@ -97,10 +97,10 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
97
97
  validation: h.value,
98
98
  mode: "national",
99
99
  inputOptions: { placeholder: o(a)("phonePlaceholder") },
100
- class: "bg-grey pd-small radius-small mn-thin"
100
+ class: "bg-grey pd-small radius-small mn-b-thin"
101
101
  }, null, 8, ["modelValue", "validation", "inputOptions"])
102
102
  ], 512), [
103
- [g, n.value === "phone"]
103
+ [b, n.value === "phone"]
104
104
  ])
105
105
  ]),
106
106
  _: 1
@@ -108,7 +108,7 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
108
108
  i(f, { name: "slide-fade" }, {
109
109
  default: u(() => [
110
110
  v(l("div", Q, [
111
- i(w, {
111
+ i(g, {
112
112
  field: s.user.email,
113
113
  "onUpdate:field": t[2] || (t[2] = (e) => s.user.email = e),
114
114
  placeholder: o(a)("emailPlaceholder"),
@@ -116,19 +116,19 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
116
116
  class: "bg-grey pd-medium radius-small"
117
117
  }, null, 8, ["field", "placeholder", "validation"])
118
118
  ], 512), [
119
- [g, n.value === "email"]
119
+ [b, n.value === "email"]
120
120
  ])
121
121
  ]),
122
122
  _: 1
123
123
  })
124
124
  ]),
125
- i(w, {
125
+ i(g, {
126
126
  field: s.user.password,
127
127
  "onUpdate:field": t[3] || (t[3] = (e) => s.user.password = e),
128
128
  type: "password",
129
129
  validation: y.value,
130
130
  placeholder: o(a)("passwordPlaceholder"),
131
- class: "bg-grey pd-medium radius-small mn-semi"
131
+ class: "bg-grey pd-medium radius-small mn-b-semi"
132
132
  }, null, 8, ["field", "validation", "placeholder"]),
133
133
  l("div", W, [
134
134
  i(m, {
@@ -144,7 +144,7 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
144
144
  i(j, {
145
145
  submit: P,
146
146
  callback: S,
147
- class: "mn-thin"
147
+ class: "mn-b-thin"
148
148
  }, {
149
149
  default: u(() => [
150
150
  c(d(o(a)("signin")), 1)
@@ -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"),V=require("../../../../components/Button/Button.vue2.cjs"),u=require("vue-router"),g=require("vue-i18n"),w=require("../../localization/SignUp.json.cjs"),n=require("../../store/auth.cjs"),N=require("../../store/twofa.cjs"),s=require("../../../middlewares/client/inputs.validation.cjs");require("./SignUp.vue2.cjs");const b={class:"t-left pd-medium"},E={class:"mn-small"},S={class:"mn-small t-transp"},y={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},q={class:"pos-relative"},C={class:"mn-semi radius-small"},D={class:"mn-small t-transp"},x={class:"mn-semi radius-small o-hidden"},T={class:"mn-small t-transp"},k={class:"w-100"},I={__name:"SignUp",setup(P){const{t}=g.useI18n(w.default),i=e.ref(null),r=e.ref(null);u.useRoute();const c=u.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 N.sendCode(n.state.user,"signup",a.value)}catch{throw new Error}}function p(){c.push({name:"Enter Code"})}return(d,l)=>{const h=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",b,[e.createElementVNode("h3",E,e.toDisplayString(e.unref(t)("title")),1),e.createElementVNode("p",S,e.toDisplayString(e.unref(t)("description")),1),e.createElementVNode("div",y,[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",C,[e.createElementVNode("p",D,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-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",x,[e.createElementVNode("p",T,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(V.default,{submit:m,callback:p,class:"mn-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1}),e.createElementVNode("div",k,[e.createVNode(h,{to:"/auth/signin",class:"underline mn-medium d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("haveAccount")),1)]),_:1})])])}}};exports.default=I;
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"),u=require("vue-router"),V=require("vue-i18n"),g=require("../../localization/SignUp.json.cjs"),n=require("../../store/auth.cjs"),w=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 t-transp"},y={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},q={class:"pos-relative"},C={class:"mn-b-semi radius-small"},D={class:"mn-b-small t-transp"},x={class:"mn-b-semi radius-small o-hidden"},T={class:"mn-b-small t-transp"},k={class:"w-100"},I={__name:"SignUp",setup(P){const{t}=V.useI18n(g.default),i=e.ref(null),r=e.ref(null);u.useRoute();const c=u.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 w.sendCode(n.state.user,"signup",a.value)}catch{throw new Error}}function p(){c.push({name:"Enter Code"})}return(d,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("p",S,e.toDisplayString(e.unref(t)("description")),1),e.createElementVNode("div",y,[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",C,[e.createElementVNode("p",D,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",x,[e.createElementVNode("p",T,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:"mn-b-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1}),e.createElementVNode("div",k,[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=I;
@@ -8,22 +8,22 @@ import { useI18n as U } from "vue-i18n";
8
8
  import F from "../../localization/SignUp.json.js";
9
9
  import { state as s } from "../../store/auth.js";
10
10
  import { sendCode as O } from "../../store/twofa.js";
11
- import { validateInputs as w, validatePhone as T, validateEmail as A } from "../../../middlewares/client/inputs.validation.js";
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-small" }, $ = { class: "mn-small t-transp" }, L = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, j = { class: "pos-relative" }, q = { class: "mn-semi radius-small" }, z = { class: "mn-small t-transp" }, G = { class: "mn-semi radius-small o-hidden" }, H = { class: "mn-small t-transp" }, J = { class: "w-100" }, ie = {
13
+ const B = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, $ = { class: "mn-b-small t-transp" }, L = { class: "mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, j = { class: "pos-relative" }, q = { class: "mn-b-semi radius-small" }, z = { class: "mn-b-small t-transp" }, G = { class: "mn-b-semi radius-small o-hidden" }, H = { class: "mn-b-small t-transp" }, J = { class: "w-100" }, ie = {
14
14
  __name: "SignUp",
15
15
  setup(K) {
16
16
  const { t: e } = U(F), u = d(null), c = d(null);
17
17
  I();
18
- const b = P(), l = d("phone");
18
+ const w = P(), l = d("phone");
19
19
  async function g() {
20
20
  try {
21
- l.value === "phone" && await w(
21
+ l.value === "phone" && await b(
22
22
  u,
23
23
  T,
24
24
  s.user.phone,
25
25
  "Некорректный телефон"
26
- ), l.value === "email" && await w(
26
+ ), l.value === "email" && await b(
27
27
  c,
28
28
  A,
29
29
  s.user.email,
@@ -39,7 +39,7 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-small" }, $ = { class:
39
39
  }
40
40
  }
41
41
  function V() {
42
- b.push({ name: "Enter Code" });
42
+ w.push({ name: "Enter Code" });
43
43
  }
44
44
  return (p, i) => {
45
45
  const y = C("router-link");
@@ -72,7 +72,7 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-small" }, $ = { class:
72
72
  validation: u.value,
73
73
  mode: "national",
74
74
  inputOptions: { placeholder: t(e)("phonePlaceholder") },
75
- class: "bg-grey pd-small radius-small mn-thin"
75
+ class: "bg-grey pd-small radius-small mn-b-thin"
76
76
  }, null, 8, ["modelValue", "validation", "inputOptions"])
77
77
  ], 512), [
78
78
  [f, l.value === "phone"]
@@ -101,7 +101,7 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-small" }, $ = { class:
101
101
  a(D, {
102
102
  submit: g,
103
103
  callback: V,
104
- class: "mn-big"
104
+ class: "mn-b-big"
105
105
  }, {
106
106
  default: m(() => [
107
107
  v(n(t(e)("sendCode")), 1)
@@ -111,7 +111,7 @@ const B = { class: "t-left pd-medium" }, R = { class: "mn-small" }, $ = { class:
111
111
  o("div", J, [
112
112
  a(y, {
113
113
  to: "/auth/signin",
114
- class: "underline mn-medium d-block t-blue"
114
+ class: "underline mn-b-medium d-block t-blue"
115
115
  }, {
116
116
  default: m(() => [
117
117
  v(n(t(e)("haveAccount")), 1)
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../../../node_modules/vue3-carousel/dist/carousel.css.cjs");const l=require("vue-i18n"),s=require("../../../../../../node_modules/vue3-carousel/dist/carousel.es.cjs");require("./SliderFeatures.vue2.cjs");const u={class:"parent-div"},c={class:"mn-small"},d={class:"mn-big mn-r-small mn-l-small"},p={__name:"SliderFeatures",setup(m){const t=e.ref(null),n={messages:{en:{features:[{title:"What's the Weeder Token, Dude?",description:"WDT is like, the backbone of our rad community. It's cash, it's power, it's an investment. Groovy, right?"},{title:"Light Up and Level Up",description:"Order up, light up, and earn Weeder tokens. More tokes, more cash in your pocket, man."},{title:"Hang Ten with Our Community",description:"Find the dopest strains and start floating on cloud 9 with us!"},{title:"Shop 'Til You Drop... Into Your Couch",description:"Score primo bud and gear with just a few clicks. Delivered right to your pad!"}]},ru:{features:[{title:"Что такое токен Weeder, Бро?",description:"WDT - это как основа нашего крутого сообщества. Это деньги, это власть, это инвестиции. Круто, а?"},{title:"Зажигай и Развивайся",description:"Закажи шмали, курни и зарабатывай токены Weeder. Чем больше курнешь, тем больше кэша у тебя в кармане, чувак."},{title:"Веселись с Нашим Сообществом",description:"Найди самые крутые сорта и начни шмалить на девятом облаке вместе с нами."},{title:"Покупайте, Когда Накурились",description:"Закажи премиумную бошку и крутые аксессуары за пару кликов, чувак. Прямо к твоей двери!"}]}}},{tm:i,rt:g}=l.useI18n(n),a=e.ref(!1);return e.onMounted(()=>{setTimeout(()=>{t.value.restartCarousel(),a.value=!0},"500")}),(h,f)=>(e.openBlock(),e.createBlock(e.unref(s.Carousel),{ref_key:"ImagesSlider",ref:t,"items-to-show":1,wrapAround:!0,transition:330,autoplay:3e3,pauseAutoplayOnHover:!0,class:"bg-grey w-100"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i)("features"),(r,o)=>(e.openBlock(),e.createBlock(e.unref(s.Slide),{key:o,class:"w-100 flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("div",u,[e.createElementVNode("div",{class:"background-div",style:e.normalizeStyle(`background-image: url(/assets/images/features/${o}.png); background-size: auto 100%; background-repeat: no-repeat; background-position: center center;`)},null,4),e.createElementVNode("h4",c,e.toDisplayString(r.title),1),e.createElementVNode("p",d,e.toDisplayString(r.description),1)])]),_:2},1024))),128))]),_:1},512))}};exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../../../node_modules/vue3-carousel/dist/carousel.css.cjs");const l=require("vue-i18n"),s=require("../../../../../../node_modules/vue3-carousel/dist/carousel.es.cjs");require("./SliderFeatures.vue2.cjs");const u={class:"parent-div"},c={class:"mn-b-small"},d={class:"mn-b-big mn-r-small mn-l-small"},p={__name:"SliderFeatures",setup(m){const t=e.ref(null),n={messages:{en:{features:[{title:"What's the Weeder Token, Dude?",description:"WDT is like, the backbone of our rad community. It's cash, it's power, it's an investment. Groovy, right?"},{title:"Light Up and Level Up",description:"Order up, light up, and earn Weeder tokens. More tokes, more cash in your pocket, man."},{title:"Hang Ten with Our Community",description:"Find the dopest strains and start floating on cloud 9 with us!"},{title:"Shop 'Til You Drop... Into Your Couch",description:"Score primo bud and gear with just a few clicks. Delivered right to your pad!"}]},ru:{features:[{title:"Что такое токен Weeder, Бро?",description:"WDT - это как основа нашего крутого сообщества. Это деньги, это власть, это инвестиции. Круто, а?"},{title:"Зажигай и Развивайся",description:"Закажи шмали, курни и зарабатывай токены Weeder. Чем больше курнешь, тем больше кэша у тебя в кармане, чувак."},{title:"Веселись с Нашим Сообществом",description:"Найди самые крутые сорта и начни шмалить на девятом облаке вместе с нами."},{title:"Покупайте, Когда Накурились",description:"Закажи премиумную бошку и крутые аксессуары за пару кликов, чувак. Прямо к твоей двери!"}]}}},{tm:i,rt:g}=l.useI18n(n),a=e.ref(!1);return e.onMounted(()=>{setTimeout(()=>{t.value.restartCarousel(),a.value=!0},"500")}),(h,f)=>(e.openBlock(),e.createBlock(e.unref(s.Carousel),{ref_key:"ImagesSlider",ref:t,"items-to-show":1,wrapAround:!0,transition:330,autoplay:3e3,pauseAutoplayOnHover:!0,class:"bg-grey w-100"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i)("features"),(r,o)=>(e.openBlock(),e.createBlock(e.unref(s.Slide),{key:o,class:"w-100 flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("div",u,[e.createElementVNode("div",{class:"background-div",style:e.normalizeStyle(`background-image: url(/assets/images/features/${o}.png); background-size: auto 100%; background-repeat: no-repeat; background-position: center center;`)},null,4),e.createElementVNode("h4",c,e.toDisplayString(r.title),1),e.createElementVNode("p",d,e.toDisplayString(r.description),1)])]),_:2},1024))),128))]),_:1},512))}};exports.default=p;
@@ -1,9 +1,9 @@
1
1
  import { ref as n, onMounted as m, openBlock as t, createBlock as a, unref as r, withCtx as l, createElementBlock as g, Fragment as h, renderList as f, createElementVNode as e, normalizeStyle as k, toDisplayString as u } from "vue";
2
2
  import "../../../../../../node_modules/vue3-carousel/dist/carousel.css.js";
3
3
  import { useI18n as _ } from "vue-i18n";
4
- import { Carousel as y, Slide as v } from "../../../../../../node_modules/vue3-carousel/dist/carousel.es.js";
4
+ import { Carousel as y, Slide as b } from "../../../../../../node_modules/vue3-carousel/dist/carousel.es.js";
5
5
  import "./SliderFeatures.vue2.js";
6
- const b = { class: "parent-div" }, w = { class: "mn-small" }, S = { class: "mn-big mn-r-small mn-l-small" }, O = {
6
+ const v = { class: "parent-div" }, w = { class: "mn-b-small" }, S = { class: "mn-b-big mn-r-small mn-l-small" }, O = {
7
7
  __name: "SliderFeatures",
8
8
  setup(W) {
9
9
  const o = n(null), c = {
@@ -65,12 +65,12 @@ const b = { class: "parent-div" }, w = { class: "mn-small" }, S = { class: "mn-b
65
65
  class: "bg-grey w-100"
66
66
  }, {
67
67
  default: l(() => [
68
- (t(!0), g(h, null, f(r(d)("features"), (s, i) => (t(), a(r(v), {
68
+ (t(!0), g(h, null, f(r(d)("features"), (s, i) => (t(), a(r(b), {
69
69
  key: i,
70
70
  class: "w-100 flex-v-center flex"
71
71
  }, {
72
72
  default: l(() => [
73
- e("div", b, [
73
+ e("div", v, [
74
74
  e("div", {
75
75
  class: "background-div",
76
76
  style: k(`background-image: url(/assets/images/features/${i}.png); background-size: auto 100%; background-repeat: no-repeat; background-position: center center;`)
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../mobile/components/Menu/Menu.vue2.cjs"),n=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),o=require("vue-router"),i={class:""},l=e.createElementVNode("h1",{class:"mn-small"},"Your Backoffice",-1),d=e.createElementVNode("span",null," Organizations ",-1),f=e.createElementVNode("span",null," Events ",-1),c=e.createElementVNode("span",null," Community ",-1),p=e.createElementVNode("span",null," Products ",-1),m=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),k=e.createElementVNode("span",null," Payments ",-1),C=e.createElementVNode("span",null," Gallery ",-1),N=e.createElementVNode("span",null," Reports ",-1),V={__name:"Dashboard",props:{favorites:Array},setup(v){const r=o.useRoute(),s=o.useRouter();return(h,t)=>(e.openBlock(),e.createElementBlock("div",i,[l,e.createVNode(u.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[0]||(t[0]=a=>e.unref(s).push({name:"Backoffice Organizations",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(n.default,{onClick:t[1]||(t[1]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[f]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=a=>e.unref(s).push({name:"Backoffice Community",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=a=>e.unref(s).push({name:"Backoffice Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[p]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=a=>e.unref(s).push({name:"Backoffice Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=a=>e.unref(s).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[_]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=a=>e.unref(s).push({name:"Backoffice Payments",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=a=>e.unref(s).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[C]),_:1}),e.createVNode(n.default,{onClick:t[8]||(t[8]=a=>e.unref(s).push({name:"Backoffice Reports",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1})]),_:1})]))}};exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../mobile/components/Menu/Menu.vue2.cjs"),n=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),o=require("vue-router"),i={class:""},l=e.createElementVNode("h1",{class:"mn-b-small"},"Your Backoffice",-1),d=e.createElementVNode("span",null," Organizations ",-1),f=e.createElementVNode("span",null," Events ",-1),c=e.createElementVNode("span",null," Community ",-1),p=e.createElementVNode("span",null," Products ",-1),m=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),k=e.createElementVNode("span",null," Payments ",-1),C=e.createElementVNode("span",null," Gallery ",-1),N=e.createElementVNode("span",null," Reports ",-1),V={__name:"Dashboard",props:{favorites:Array},setup(v){const r=o.useRoute(),s=o.useRouter();return(h,t)=>(e.openBlock(),e.createElementBlock("div",i,[l,e.createVNode(u.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[0]||(t[0]=a=>e.unref(s).push({name:"Backoffice Organizations",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(n.default,{onClick:t[1]||(t[1]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[f]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=a=>e.unref(s).push({name:"Backoffice Community",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=a=>e.unref(s).push({name:"Backoffice Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[p]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=a=>e.unref(s).push({name:"Backoffice Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=a=>e.unref(s).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[_]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=a=>e.unref(s).push({name:"Backoffice Payments",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=a=>e.unref(s).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[C]),_:1}),e.createVNode(n.default,{onClick:t[8]||(t[8]=a=>e.unref(s).push({name:"Backoffice Reports",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1})]),_:1})]))}};exports.default=V;
@@ -2,7 +2,7 @@ import { openBlock as p, createElementBlock as u, createVNode as e, withCtx as a
2
2
  import m from "../../../mobile/components/Menu/Menu.vue2.js";
3
3
  import i from "../../../mobile/components/Menu/MenuItem.vue.js";
4
4
  import { useRoute as d, useRouter as _ } from "vue-router";
5
- const f = { class: "" }, c = /* @__PURE__ */ n("h1", { class: "mn-small" }, "Your Backoffice", -1), k = /* @__PURE__ */ n("span", null, " Organizations ", -1), v = /* @__PURE__ */ n("span", null, " Events ", -1), B = /* @__PURE__ */ n("span", null, " Community ", -1), C = /* @__PURE__ */ n("span", null, " Products ", -1), $ = /* @__PURE__ */ n("span", null, " Leftovers ", -1), y = /* @__PURE__ */ n("span", null, " Orders ", -1), h = /* @__PURE__ */ n("span", null, " Payments ", -1), g = /* @__PURE__ */ n("span", null, " Gallery ", -1), E = /* @__PURE__ */ n("span", null, " Reports ", -1), G = {
5
+ const f = { class: "" }, c = /* @__PURE__ */ n("h1", { class: "mn-b-small" }, "Your Backoffice", -1), k = /* @__PURE__ */ n("span", null, " Organizations ", -1), v = /* @__PURE__ */ n("span", null, " Events ", -1), B = /* @__PURE__ */ n("span", null, " Community ", -1), C = /* @__PURE__ */ n("span", null, " Products ", -1), $ = /* @__PURE__ */ n("span", null, " Leftovers ", -1), y = /* @__PURE__ */ n("span", null, " Orders ", -1), h = /* @__PURE__ */ n("span", null, " Payments ", -1), g = /* @__PURE__ */ n("span", null, " Gallery ", -1), E = /* @__PURE__ */ n("span", null, " Reports ", -1), G = {
6
6
  __name: "Dashboard",
7
7
  props: {
8
8
  favorites: Array
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../globals/components/blocks/CardHeader.vue.cjs"),i=require("./FooterBlogpost.vue.cjs"),d=require("../../../../components/Chips/Chips.vue.cjs"),m=require("../../../icons/navigation/IconEdit.vue.cjs"),g=require("vue-router"),p={class:"pos-relative bg-grey radius-big"},b=["src"],y={class:"pd-t-zero pd-medium"},k={key:0,class:"cursor-pointer mn-thin flex-nowrap flex w-100"},h={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"},f={key:1,class:"mn-small t-transp p-big"},B={key:2,class:"mn-small h2"},v={__name:"CardBlogpost",props:["blogpost","user","type"],setup(t){const a=g.useRouter(),n=t,s=e.computed(()=>n.blogpost.content.find(o=>o.type==="ImageUpload")),r=e.computed(()=>n.blogpost.content.find(o=>o.type==="Textarea"));return(o,l)=>(e.openBlock(),e.createElementBlock("article",p,[t.user&&t.user===t.blogpost.creator.target._id?(e.openBlock(),e.createBlock(m.default,{key:0,onClick:l[0]||(l[0]=e.withModifiers(c=>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(u.default,{class:e.normalizeClass({"mn-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"]),s.value&&s.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:1,src:(o.FILE_SERVER_URL||"")+s.value.content,alt:"Blog post image",class:"mn-medium object-fit-cover w-100 h-20r"},null,8,b)):e.createCommentVNode("",!0),e.createElementVNode("section",y,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("h3",{onClick:l[1]||(l[1]=c=>e.unref(a).push({name:"BlogPost",params:{url:t.blogpost.url}})),class:""},e.toDisplayString(t.blogpost.name),1),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",h,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r.value&&r.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("p",f,e.toDisplayString(r.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"?(e.openBlock(),e.createElementBlock("h3",B,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default"),t.type!=="short"&&t.blogpost.tags.length>0?(e.openBlock(),e.createBlock(d.default,{key:3,chips:t.blogpost.tags},null,8,["chips"])):e.createCommentVNode("",!0)]),e.createVNode(i.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])]))}};exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../globals/components/blocks/CardHeader.vue.cjs"),i=require("./FooterBlogpost.vue.cjs"),d=require("../../../../components/Chips/Chips.vue.cjs"),m=require("../../../icons/navigation/IconEdit.vue.cjs"),g=require("vue-router"),p={class:"pos-relative bg-grey radius-big"},b=["src"],y={class:"pd-t-zero pd-medium"},k={key:0,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},h={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"},f={key:1,class:"mn-b-small t-transp p-big"},B={key:2,class:"mn-b-small h2"},v={__name:"CardBlogpost",props:["blogpost","user","type"],setup(t){const a=g.useRouter(),n=t,s=e.computed(()=>n.blogpost.content.find(o=>o.type==="ImageUpload")),r=e.computed(()=>n.blogpost.content.find(o=>o.type==="Textarea"));return(o,l)=>(e.openBlock(),e.createElementBlock("article",p,[t.user&&t.user===t.blogpost.creator.target._id?(e.openBlock(),e.createBlock(m.default,{key:0,onClick:l[0]||(l[0]=e.withModifiers(c=>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(u.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"]),s.value&&s.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:1,src:(o.FILE_SERVER_URL||"")+s.value.content,alt:"Blog post image",class:"mn-b-medium object-fit-cover w-100 h-20r"},null,8,b)):e.createCommentVNode("",!0),e.createElementVNode("section",y,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("h3",{onClick:l[1]||(l[1]=c=>e.unref(a).push({name:"BlogPost",params:{url:t.blogpost.url}})),class:""},e.toDisplayString(t.blogpost.name),1),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",h,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r.value&&r.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("p",f,e.toDisplayString(r.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"?(e.openBlock(),e.createElementBlock("h3",B,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default"),t.type!=="short"&&t.blogpost.tags.length>0?(e.openBlock(),e.createBlock(d.default,{key:3,chips:t.blogpost.tags},null,8,["chips"])):e.createCommentVNode("",!0)]),e.createVNode(i.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])]))}};exports.default=v;
@@ -6,25 +6,25 @@ import B from "../../../icons/navigation/IconEdit.vue.js";
6
6
  import { useRouter as E } from "vue-router";
7
7
  const $ = { class: "pos-relative bg-grey radius-big" }, P = ["src"], C = { class: "pd-t-zero pd-medium" }, z = {
8
8
  key: 0,
9
- class: "cursor-pointer mn-thin flex-nowrap flex w-100"
9
+ class: "cursor-pointer mn-b-thin flex-nowrap flex w-100"
10
10
  }, I = {
11
11
  key: 0,
12
12
  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"
13
13
  }, R = {
14
14
  key: 1,
15
- class: "mn-small t-transp p-big"
15
+ class: "mn-b-small t-transp p-big"
16
16
  }, V = {
17
17
  key: 2,
18
- class: "mn-small h2"
18
+ class: "mn-b-small h2"
19
19
  }, A = {
20
20
  __name: "CardBlogpost",
21
21
  props: ["blogpost", "user", "type"],
22
22
  setup(t) {
23
- const p = E(), c = t, n = u(() => c.blogpost.content.find((o) => o.type === "ImageUpload")), i = u(() => c.blogpost.content.find((o) => o.type === "Textarea"));
23
+ const b = E(), c = t, n = u(() => c.blogpost.content.find((o) => o.type === "ImageUpload")), i = u(() => c.blogpost.content.find((o) => o.type === "Textarea"));
24
24
  return (o, r) => (e(), l("article", $, [
25
25
  t.user && t.user === t.blogpost.creator.target._id ? (e(), m(B, {
26
26
  key: 0,
27
- onClick: r[0] || (r[0] = f((b) => o.$router.push({
27
+ onClick: r[0] || (r[0] = f((p) => o.$router.push({
28
28
  name: "Edit BlogPost",
29
29
  params: {
30
30
  url: t.blogpost.url
@@ -34,7 +34,7 @@ const $ = { class: "pos-relative bg-grey radius-big" }, P = ["src"], C = { class
34
34
  })) : s("", !0),
35
35
  g(v, {
36
36
  class: y({
37
- "mn-small pd-medium": t.type !== "short",
37
+ "mn-b-small pd-medium": t.type !== "short",
38
38
  "flex-child-order-last flex-child mn-l-small": t.type === "short"
39
39
  }),
40
40
  entity: t.blogpost,
@@ -48,12 +48,12 @@ const $ = { class: "pos-relative bg-grey radius-big" }, P = ["src"], C = { class
48
48
  key: 1,
49
49
  src: (o.FILE_SERVER_URL || "") + n.value.content,
50
50
  alt: "Blog post image",
51
- class: "mn-medium object-fit-cover w-100 h-20r"
51
+ class: "mn-b-medium object-fit-cover w-100 h-20r"
52
52
  }, null, 8, P)) : s("", !0),
53
53
  d("section", C, [
54
54
  t.type !== "blogpostPage" ? (e(), l("div", z, [
55
55
  d("h3", {
56
- onClick: r[1] || (r[1] = (b) => h(p).push({
56
+ onClick: r[1] || (r[1] = (p) => h(b).push({
57
57
  name: "BlogPost",
58
58
  params: {
59
59
  url: t.blogpost.url
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),u=require("../../../../components/Select/Select.vue2.cjs"),a=require("../../store/blogposts.cjs"),c=require("../../../auth/store/auth.cjs"),m={class:"min-h-100vh pd-thin"},d={class:"mn-thin flex-v-center t-left flex-nowrap flex"},p={class:"flex-v-center flex-nowrap flex t-left"},f=e.createElementVNode("span",{class:""},"Topics for ",-1),g={class:"w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex"},h={class:""},w={__name:"Community",setup(k){const l=n.useRoute(),r=n.useRouter();return(y,t)=>{const s=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",d,[e.createElementVNode("h2",p,[f,e.createVNode(u.default,{options:["today","week","month","year"],select:a.state.filter.period,"onUpdate:select":t[0]||(t[0]=o=>a.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",g,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="featured"},"t-medium pd-thin radius-small"]),onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="popular"},"t-medium pd-thin radius-small"]),onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="new"},"t-medium pd-thin radius-small"]),onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),c.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="following"},"t-medium pd-thin radius-small"]),onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",h,[e.createVNode(s,null,{default:e.withCtx(({Component:o,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:i.query}))]),_:2},1024)]),_:1})])])}}};exports.default=w;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),u=require("../../../../components/Select/Select.vue2.cjs"),a=require("../../store/blogposts.cjs"),c=require("../../../auth/store/auth.cjs"),m={class:"min-h-100vh pd-thin"},d={class:"mn-b-thin flex-v-center t-left flex-nowrap flex"},p={class:"flex-v-center flex-nowrap flex t-left"},f=e.createElementVNode("span",{class:""},"Topics for ",-1),g={class:"w-100 bg-grey pd-small radius-big mn-b-semi gap-thin flex-nowrap flex"},h={class:""},w={__name:"Community",setup(k){const l=n.useRoute(),r=n.useRouter();return(y,t)=>{const s=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",d,[e.createElementVNode("h2",p,[f,e.createVNode(u.default,{options:["today","week","month","year"],select:a.state.filter.period,"onUpdate:select":t[0]||(t[0]=o=>a.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",g,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="featured"},"t-medium pd-thin radius-small"]),onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="popular"},"t-medium pd-thin radius-small"]),onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="new"},"t-medium pd-thin radius-small"]),onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),c.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="following"},"t-medium pd-thin radius-small"]),onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",h,[e.createVNode(s,null,{default:e.withCtx(({Component:o,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:i.query}))]),_:2},1024)]),_:1})])])}}};exports.default=w;
@@ -3,7 +3,7 @@ import { useRoute as _, useRouter as k } from "vue-router";
3
3
  import b from "../../../../components/Select/Select.vue2.js";
4
4
  import { state as c } from "../../store/blogposts.js";
5
5
  import { state as v } from "../../../auth/store/auth.js";
6
- const x = { class: "min-h-100vh pd-thin" }, C = { class: "mn-thin flex-v-center t-left flex-nowrap flex" }, B = { class: "flex-v-center flex-nowrap flex t-left" }, $ = /* @__PURE__ */ o("span", { class: "" }, "Topics for ", -1), N = { class: "w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex" }, V = { class: "" }, D = {
6
+ const x = { class: "min-h-100vh pd-thin" }, C = { class: "mn-b-thin flex-v-center t-left flex-nowrap flex" }, B = { class: "flex-v-center flex-nowrap flex t-left" }, $ = /* @__PURE__ */ o("span", { class: "" }, "Topics for ", -1), N = { class: "w-100 bg-grey pd-small radius-big mn-b-semi gap-thin flex-nowrap flex" }, V = { class: "" }, D = {
7
7
  __name: "Community",
8
8
  setup(E) {
9
9
  const s = _(), a = k();
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const p=require("../../../../components/EmptyState/EmptyState.vue.cjs"),d=require("../blocks/CardBlogpost.vue.cjs"),m=require("../../../icons/skeletons/SkeletonBlogpost.vue.cjs"),g=require("../../../organizations/components/sections/Publics.vue.cjs"),f=require("../sections/Comments.vue.cjs"),v=require("../../../constructor/components/elements/Image.vue.cjs"),y=require("../../store/blogposts.cjs"),a=require("../../../auth/store/auth.cjs"),B=require("vue-router"),C={class:"pd-thin"},k={__name:"BlogPost",setup(_){const u=B.useRoute(),r=e.ref(null),o=e.ref(!0);e.onMounted(async()=>{o.value=!0;const t=await y.read({user:a.state.user._id,url:u.params.url});r.value=t[0],o.value=!1});const c={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:v.default};function i(t){return t.type==="Textarea"?{innerHTML:t.content,class:"p-medium"}:t.type==="H2"?{innerHTML:t.content,class:"h3"}:t.type==="Caption"?{innerHTML:t.content}:t.type==="ImageUpload"?{src:t.content}:{}}return(t,s)=>(e.openBlock(),e.createElementBlock("section",C,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,n=>e.createVNode(m.default,{key:n})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!o.value&&!r.value?(e.openBlock(),e.createBlock(p.default,{key:0,title:"No Blogpost Found",description:"Currently, there are no blogposts available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!o.value&&r.value?(e.openBlock(),e.createBlock(d.default,{key:0,onClick:s[0]||(s[0]=n=>t.$router.push({name:"Blogpost",params:{url:r.value.url}})),blogpost:r.value,user:a.state.user._id,type:"blogpostPage",class:e.normalizeClass(["mn-medium",{"br-b br-solid br-black-transp-10":t.index!==r.value.length-1}])},{default:e.withCtx(()=>[e.createElementVNode("section",null,[r.value&&r.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value.content,(n,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[n.type]),e.mergeProps({key:l,index:l,component:n,prop:n,class:n.class,content:"content"},i(n),{class:"mn-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["blogpost","user","class"])):e.createCommentVNode("",!0),e.createVNode(g.default,{class:"mn-small"}),!o.value&&r.value?(e.openBlock(),e.createBlock(f.default,{key:1,type:"blogpost",target:r.value._id,owner:a.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const p=require("../../../../components/EmptyState/EmptyState.vue.cjs"),d=require("../blocks/CardBlogpost.vue.cjs"),m=require("../../../icons/skeletons/SkeletonBlogpost.vue.cjs"),g=require("../../../organizations/components/sections/Publics.vue.cjs"),f=require("../sections/Comments.vue.cjs"),v=require("../../../constructor/components/elements/Image.vue.cjs"),y=require("../../store/blogposts.cjs"),a=require("../../../auth/store/auth.cjs"),B=require("vue-router"),C={class:"pd-thin"},k={__name:"BlogPost",setup(_){const u=B.useRoute(),r=e.ref(null),o=e.ref(!0);e.onMounted(async()=>{o.value=!0;const t=await y.read({user:a.state.user._id,url:u.params.url});r.value=t[0],o.value=!1});const c={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:v.default};function i(t){return t.type==="Textarea"?{innerHTML:t.content,class:"p-medium"}:t.type==="H2"?{innerHTML:t.content,class:"h3"}:t.type==="Caption"?{innerHTML:t.content}:t.type==="ImageUpload"?{src:t.content}:{}}return(t,s)=>(e.openBlock(),e.createElementBlock("section",C,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,n=>e.createVNode(m.default,{key:n})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!o.value&&!r.value?(e.openBlock(),e.createBlock(p.default,{key:0,title:"No Blogpost Found",description:"Currently, there are no blogposts available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!o.value&&r.value?(e.openBlock(),e.createBlock(d.default,{key:0,onClick:s[0]||(s[0]=n=>t.$router.push({name:"Blogpost",params:{url:r.value.url}})),blogpost:r.value,user:a.state.user._id,type:"blogpostPage",class:e.normalizeClass(["mn-b-medium",{"br-b br-solid br-black-transp-10":t.index!==r.value.length-1}])},{default:e.withCtx(()=>[e.createElementVNode("section",null,[r.value&&r.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value.content,(n,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[n.type]),e.mergeProps({key:l,index:l,component:n,prop:n,class:n.class,content:"content"},i(n),{class:"mn-b-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["blogpost","user","class"])):e.createCommentVNode("",!0),e.createVNode(g.default,{class:"mn-b-small"}),!o.value&&r.value?(e.openBlock(),e.createBlock(f.default,{key:1,type:"blogpost",target:r.value._id,owner:a.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=k;