@ozdao/prometheus-framework 0.1.99 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (292) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  3. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +5 -5
  4. package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.cjs +1 -1
  5. package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.js +1 -1
  6. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  7. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -2
  8. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
  9. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +10 -10
  10. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  11. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +12 -12
  12. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  13. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +15 -15
  14. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +8 -8
  16. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +14 -14
  18. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +14 -14
  20. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +9 -9
  22. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.js +4 -4
  24. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  26. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +8 -8
  28. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  30. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +10 -10
  32. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +4 -4
  34. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +9 -9
  36. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +8 -8
  38. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +3 -3
  40. package/dist/prometheus-framework/src/modules/community/components/sections/SubscribeNewsletter.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/community/components/sections/SubscribeNewsletter.vue.js +3 -3
  42. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +2 -2
  44. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +4 -4
  46. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +1 -1
  48. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +2 -2
  50. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +5 -5
  52. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +20 -11
  54. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  56. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +3 -3
  58. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +12 -12
  60. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +11 -11
  62. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  64. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +18 -18
  66. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +6 -6
  68. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +7 -7
  70. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +4 -4
  72. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +10 -10
  74. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +13 -13
  76. package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.js +4 -4
  78. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +3 -3
  80. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +6 -6
  82. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.js +2 -2
  84. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +1 -1
  86. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +8 -8
  88. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +3 -3
  90. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +1 -1
  92. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +8 -8
  94. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +4 -4
  96. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.js +1 -1
  98. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.js +1 -1
  100. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +7 -7
  102. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +5 -5
  104. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  106. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +13 -13
  108. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +7 -7
  110. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +5 -5
  112. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +14 -14
  114. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +8 -8
  116. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +5 -5
  118. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +5 -5
  120. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +7 -7
  122. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +2 -2
  123. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +4 -4
  125. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +5 -5
  127. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +2 -2
  129. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +4 -4
  131. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +8 -8
  133. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +5 -5
  135. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +7 -7
  137. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  138. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +6 -6
  139. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +18 -18
  141. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +5 -5
  143. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +9 -9
  145. package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.js +1 -1
  147. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +8 -8
  149. package/dist/prometheus-framework.cjs.js +1 -1
  150. package/dist/prometheus-framework.es.js +2 -2
  151. package/dist/style.css +1 -1
  152. package/package.json +1 -1
  153. package/src/components/EditImages/EditImages.vue +3 -3
  154. package/src/components/EmptyState/EmptyState.vue +2 -2
  155. package/src/components/Field/Field.svlt +1 -1
  156. package/src/components/Field/Field.vue +1 -1
  157. package/src/components/FieldTags/BlockTags.vue +4 -4
  158. package/src/components/Footer/Footer.vue +8 -8
  159. package/src/components/LocationSelection/LocationSelection.vue +4 -4
  160. package/src/components/Search/Search.vue +3 -3
  161. package/src/configurator/components/layouts/layoutConfigurator.vue +2 -2
  162. package/src/configurator/components/pages/Styles.vue +3 -3
  163. package/src/modules/auth/components/pages/EnterCode.vue +4 -4
  164. package/src/modules/auth/components/pages/EnterPassword.vue +9 -9
  165. package/src/modules/auth/components/pages/Invite.vue +6 -6
  166. package/src/modules/auth/components/pages/ResetPassword.vue +10 -10
  167. package/src/modules/auth/components/pages/SignIn.vue +11 -11
  168. package/src/modules/auth/components/pages/SignUp.vue +11 -11
  169. package/src/modules/auth/components/sections/SliderFeatures.vue +2 -2
  170. package/src/modules/backoffice/components/admin/Categories.vue +2 -2
  171. package/src/modules/backoffice/components/admin/CategoryEdit.vue +2 -2
  172. package/src/modules/backoffice/components/admin/Dashboard.vue +1 -1
  173. package/src/modules/backoffice/components/admin/FastOrders.vue +3 -3
  174. package/src/modules/backoffice/components/admin/PageEdit.vue +3 -3
  175. package/src/modules/backoffice/components/admin/Pages.vue +1 -1
  176. package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
  177. package/src/modules/backoffice/components/admin/User.vue +6 -6
  178. package/src/modules/backoffice/components/admin/Users.vue +4 -4
  179. package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
  180. package/src/modules/backoffice/components/pages/Dashboard.vue +1 -1
  181. package/src/modules/community/components/blocks/CardBlogpost.vue +5 -5
  182. package/src/modules/community/components/layouts/Community.vue +2 -2
  183. package/src/modules/community/components/pages/BlogPost.vue +4 -4
  184. package/src/modules/community/components/pages/Community.vue +2 -2
  185. package/src/modules/community/components/pages/CreateBlogPost.vue +5 -5
  186. package/src/modules/community/components/sections/Comments.vue +5 -5
  187. package/src/modules/community/components/sections/Feed.vue +2 -2
  188. package/src/modules/community/components/sections/JoinUs.vue +2 -2
  189. package/src/modules/community/components/sections/SubscribeNewsletter.vue +3 -3
  190. package/src/modules/constructor/components/elements/Audio.vue +2 -2
  191. package/src/modules/constructor/components/elements/Bullets.vue +1 -1
  192. package/src/modules/constructor/components/elements/Caption.vue +1 -1
  193. package/src/modules/constructor/components/elements/Embed.vue +2 -2
  194. package/src/modules/constructor/components/elements/H2.vue +1 -1
  195. package/src/modules/constructor/components/elements/Image.vue +19 -5
  196. package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
  197. package/src/modules/constructor/components/elements/Textarea.vue +1 -1
  198. package/src/modules/constructor/components/sections/Constructor.vue +4 -4
  199. package/src/modules/events/components/blocks/CardEvent.vue +5 -5
  200. package/src/modules/events/components/layouts/layoutEvents.vue +1 -1
  201. package/src/modules/events/components/pages/EditEvent.vue +12 -12
  202. package/src/modules/events/components/pages/Event.vue +4 -4
  203. package/src/modules/events/components/pages/Events.vue +1 -1
  204. package/src/modules/events/components/sections/Feed.vue +2 -2
  205. package/src/modules/events/components/sections/List.vue +1 -1
  206. package/src/modules/gallery/components/sections/BackofficeGallery.vue +10 -10
  207. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +6 -6
  208. package/src/modules/globals/components/sections/Feed.vue +1 -1
  209. package/src/modules/landing/components/sections/MobileApp.vue +7 -7
  210. package/src/modules/legal/components/pages/Legal.vue +5 -5
  211. package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
  212. package/src/modules/mobile/components/Menu/MenuItem.vue +2 -2
  213. package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
  214. package/src/modules/orders/components/blocks/Positions.vue +8 -8
  215. package/src/modules/orders/components/pages/EditOrder.vue +19 -19
  216. package/src/modules/orders/components/pages/Favorites.vue +2 -2
  217. package/src/modules/orders/components/pages/Order.vue +5 -5
  218. package/src/modules/orders/components/pages/Orders.vue +5 -5
  219. package/src/modules/orders/components/pages/ViewOrder.vue +7 -7
  220. package/src/modules/orders/components/partials/ShopCart.vue +3 -3
  221. package/src/modules/orders/components/sections/Form.vue +12 -12
  222. package/src/modules/orders/components/sections/Succes.vue +4 -4
  223. package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
  224. package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -3
  225. package/src/modules/organizations/components/blocks/Contacts.vue +1 -1
  226. package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +2 -2
  227. package/src/modules/organizations/components/blocks/EditArray.vue +2 -2
  228. package/src/modules/organizations/components/blocks/EmptyState.vue +3 -3
  229. package/src/modules/organizations/components/blocks/Rating.vue +1 -1
  230. package/src/modules/organizations/components/pages/Department.vue +6 -6
  231. package/src/modules/organizations/components/pages/DepartmentEdit.vue +16 -16
  232. package/src/modules/organizations/components/pages/Members.vue +2 -2
  233. package/src/modules/organizations/components/pages/Organization.vue +5 -5
  234. package/src/modules/organizations/components/pages/OrganizationEdit.vue +16 -16
  235. package/src/modules/organizations/components/pages/Organizations.vue +2 -2
  236. package/src/modules/organizations/components/sections/DetailsTab.vue +11 -11
  237. package/src/modules/organizations/components/sections/Documents.vue +4 -4
  238. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  239. package/src/modules/organizations/components/sections/FeedDepartments.vue +2 -2
  240. package/src/modules/organizations/components/sections/MembersAdd.vue +5 -5
  241. package/src/modules/organizations/components/sections/MembersList.vue +2 -2
  242. package/src/modules/organizations/components/sections/Unit.vue +12 -12
  243. package/src/modules/payments/components/pages/Payments.vue +3 -3
  244. package/src/modules/products/components/blocks/CardLeftover.vue +4 -4
  245. package/src/modules/products/components/blocks/CardProduct.vue +3 -3
  246. package/src/modules/products/components/blocks/EditCategories.vue +4 -4
  247. package/src/modules/products/components/blocks/EditFilters.vue +4 -4
  248. package/src/modules/products/components/blocks/LeftoverPositions.vue +1 -1
  249. package/src/modules/products/components/pages/LeftoverAdd.vue +7 -7
  250. package/src/modules/products/components/pages/Leftovers.vue +5 -5
  251. package/src/modules/products/components/pages/OrganizationDetails.vue +4 -4
  252. package/src/modules/products/components/pages/OrganizationDocuments.vue +5 -5
  253. package/src/modules/products/components/pages/OrganizationPeople.vue +5 -5
  254. package/src/modules/products/components/pages/ProductEdit.vue +5 -5
  255. package/src/modules/products/components/pages/ProductRecommmendation.vue +1 -1
  256. package/src/modules/products/components/pages/ProductsBackoffice.vue +2 -2
  257. package/src/modules/products/components/sections/EditModifications.vue +8 -8
  258. package/src/modules/products/components/sections/EditParameters.vue +4 -4
  259. package/src/modules/products/components/sections/EditProductImages.vue +2 -2
  260. package/src/modules/products/components/sections/EditProductInfo.vue +5 -5
  261. package/src/modules/products/components/sections/FilterProducts.vue +9 -9
  262. package/src/modules/products/components/sections/HeroRecommendation.vue +5 -5
  263. package/src/modules/products/components/sections/PopularProducts.vue +1 -1
  264. package/src/modules/products/components/sections/ProductInformationSection.vue +27 -27
  265. package/src/modules/products/components/sections/SectionProduct.vue +6 -6
  266. package/src/modules/products/components/sections/SortProducts.vue +1 -1
  267. package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
  268. package/src/modules/reports/components/sections/FormReport.vue +4 -4
  269. package/src/modules/spots/components/blocks/CardSpot.vue +4 -4
  270. package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
  271. package/src/modules/spots/components/layouts/Spots.vue +3 -3
  272. package/src/modules/spots/components/pages/Spot.vue +4 -4
  273. package/src/modules/spots/components/pages/SpotEdit.vue +16 -16
  274. package/src/modules/spots/components/sections/Feed.vue +2 -2
  275. package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
  276. package/src/modules/spots/components/sections/Places.vue +1 -1
  277. package/src/modules/users/components/pages/Profile.vue +13 -13
  278. package/src/modules/users/components/pages/ProfileBlogposts.vue +2 -2
  279. package/src/modules/users/components/pages/ProfileComments.vue +1 -1
  280. package/src/modules/users/components/pages/ProfileEdit.vue +21 -21
  281. package/src/modules/users/components/pages/ProfileEvents.vue +2 -2
  282. package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
  283. package/src/modules/users/components/pages/ProfileOrganizations.vue +2 -2
  284. package/src/modules/users/components/sections/ProfileCompletion.vue +1 -1
  285. package/src/modules/wallet/components/pages/Wallet.vue +17 -17
  286. package/src/styles/base/all.scss +83 -324
  287. package/src/styles/base/border-radius.scss +47 -0
  288. package/src/styles/base/height.scss +60 -0
  289. package/src/styles/base/scrolling.scss +8 -8
  290. package/src/styles/base/width.scss +2 -0
  291. package/src/styles/config.scss +153 -51
  292. 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"),p=require("../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs"),g=require("../UploadImageMultiple/UploadImageMultiple.vue.cjs");require("./EditImages.vue2.cjs");const v={class:"pos-relative"},_=["src"],f=["onClick"],h={__name:"EditImages",props:{images:Array},emits:["update"],setup(n,{emit:u}){const o=n,c=u,t=e.ref([...o.images]);e.watchEffect(()=>{t.value=[...o.images]});const l=()=>{c("update:images",t.value)},i=a=>{t.value=[...t.value,...a],l()},d=a=>{t.value.splice(a,1),l()};return(a,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(g.default,{"onUpdate:images":i,uploadPath:"photos",class:"mn-semi pd-small w-100 button bg-black t-white"}),e.createVNode(e.unref(p.VueDraggableNext),{class:"gap-small flex dragArea list-group w-full",modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),onChange:l},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(s,m)=>(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("img",{class:"i-extra radius-small o-hidden mn-thin",src:(a.FILE_SERVER_URL||"")+s},null,8,_),e.createElementVNode("a",{onClick:E=>d(m),class:"pos-absolute t-center radius-extra i-medium bg-red pos-t-0 pos-r-0"},"X",8,f)]))),256))]),_:1},8,["modelValue"])]))}};exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs"),g=require("../UploadImageMultiple/UploadImageMultiple.vue.cjs");require("./EditImages.vue2.cjs");const v={class:"pos-relative"},_=["src"],b=["onClick"],f={__name:"EditImages",props:{images:Array},emits:["update"],setup(n,{emit:u}){const o=n,c=u,t=e.ref([...o.images]);e.watchEffect(()=>{t.value=[...o.images]});const l=()=>{c("update:images",t.value)},i=a=>{t.value=[...t.value,...a],l()},d=a=>{t.value.splice(a,1),l()};return(a,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(g.default,{"onUpdate:images":i,uploadPath:"photos",class:"mn-b-semi pd-small w-100 button bg-black t-white"}),e.createVNode(e.unref(p.VueDraggableNext),{class:"gap-small flex dragArea list-group w-full",modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),onChange:l},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(s,m)=>(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("img",{class:"i-extra radius-small o-hidden mn-b-thin",src:(a.FILE_SERVER_URL||"")+s},null,8,_),e.createElementVNode("a",{onClick:h=>d(m),class:"pos-absolute t-center radius-extra i-medium bg-red pos-t-0 pos-r-0"},"X",8,b)]))),256))]),_:1},8,["modelValue"])]))}};exports.default=f;
@@ -1,4 +1,4 @@
1
- import { ref as f, watchEffect as v, openBlock as l, createElementBlock as o, createVNode as i, unref as h, withCtx as E, Fragment as V, renderList as b, createElementVNode as m } from "vue";
1
+ import { ref as f, watchEffect as v, openBlock as l, createElementBlock as o, createVNode as i, unref as h, withCtx as b, Fragment as E, renderList as V, createElementVNode as m } from "vue";
2
2
  import { VueDraggableNext as x } from "../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js";
3
3
  import k from "../UploadImageMultiple/UploadImageMultiple.vue.js";
4
4
  import "./EditImages.vue2.js";
@@ -24,7 +24,7 @@ const w = { class: "pos-relative" }, C = ["src"], I = ["onClick"], B = {
24
24
  i(k, {
25
25
  "onUpdate:images": p,
26
26
  uploadPath: "photos",
27
- class: "mn-semi pd-small w-100 button bg-black t-white"
27
+ class: "mn-b-semi pd-small w-100 button bg-black t-white"
28
28
  }),
29
29
  i(h(x), {
30
30
  class: "gap-small flex dragArea list-group w-full",
@@ -32,10 +32,10 @@ const w = { class: "pos-relative" }, C = ["src"], I = ["onClick"], B = {
32
32
  "onUpdate:modelValue": n[0] || (n[0] = (s) => e.value = s),
33
33
  onChange: a
34
34
  }, {
35
- default: E(() => [
36
- (l(!0), o(V, null, b(e.value, (s, _) => (l(), o("div", w, [
35
+ default: b(() => [
36
+ (l(!0), o(E, null, V(e.value, (s, _) => (l(), o("div", w, [
37
37
  m("img", {
38
- class: "i-extra radius-small o-hidden mn-thin",
38
+ class: "i-extra radius-small o-hidden mn-b-thin",
39
39
  src: (t.FILE_SERVER_URL || "") + s
40
40
  }, null, 8, C),
41
41
  m("a", {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),c={class:"mn-regular"},a={class:"mn-small t-transp p-medium"},i={__name:"EmptyState",props:{title:{type:String,default:"У вас еще нет организации"},description:{type:String,default:"Для использования сервиса, вам необходимо добавить вашу организацию."},action:{type:String},callback:{type:Function,default:()=>{}}},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("section",null,[t.createElementVNode("h3",c,t.toDisplayString(e.title),1),t.createElementVNode("p",a,t.toDisplayString(e.description),1),e.action?(t.openBlock(),t.createElementBlock("button",{key:0,onClick:n[0]||(n[0]=(...l)=>e.callback&&e.callback(...l)),class:"t-white bg-second w-100 button"},t.toDisplayString(e.action),1)):t.createCommentVNode("",!0)]))}};exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),c={class:"mn-b-regular"},a={class:"mn-b-small t-transp p-medium"},i={__name:"EmptyState",props:{title:{type:String,default:"У вас еще нет организации"},description:{type:String,default:"Для использования сервиса, вам необходимо добавить вашу организацию."},action:{type:String},callback:{type:Function,default:()=>{}}},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("section",null,[t.createElementVNode("h3",c,t.toDisplayString(e.title),1),t.createElementVNode("p",a,t.toDisplayString(e.description),1),e.action?(t.openBlock(),t.createElementBlock("button",{key:0,onClick:n[0]||(n[0]=(...l)=>e.callback&&e.callback(...l)),class:"t-white bg-second w-100 button"},t.toDisplayString(e.action),1)):t.createCommentVNode("",!0)]))}};exports.default=i;
@@ -1,5 +1,5 @@
1
1
  import { openBlock as a, createElementBlock as c, createElementVNode as l, toDisplayString as e, createCommentVNode as o } from "vue";
2
- const s = { class: "mn-regular" }, r = { class: "mn-small t-transp p-medium" }, d = {
2
+ const s = { class: "mn-b-regular" }, r = { class: "mn-b-small t-transp p-medium" }, d = {
3
3
  __name: "EmptyState",
4
4
  props: {
5
5
  title: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Field.vue.cjs");const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),r={key:0,class:"t-transp mn-r-small"},c={class:"w-100"},m=["type","value","placeholder","tabindex"],f=["value","placeholder","tabindex"],b={key:1,class:"t-transp mn-l-small"},v={key:0,class:"mn-t-thin mn-thin mn-b-thin invalid-feedback"},k={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,validation:!1,disabled:!1,tabindex:-1},emits:["update:field","focus","blur"],setup(t,{emit:i}){const a=i,s=t,o=e.ref(s.field);return(d,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[d.$attrs.class,{"bg-fourth-nano":t.validation}],"flex-center flex-nowrap flex"])},[t.label?(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("span",null,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[t.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:l[0]||(l[0]=n=>o.value=a("update:field",n.target.value)),onFocus:l[1]||(l[1]=n=>a("focus",n)),onBlur:l[2]||(l[2]=n=>a("blur",n)),type:t.type,class:"w-100",value:t.field,placeholder:t.placeholder,tabindex:t.tabindex},null,40,m)):(e.openBlock(),e.createElementBlock("textarea",{key:1,onInput:l[3]||(l[3]=n=>o.value=a("update:field",n.target.value)),onFocus:l[4]||(l[4]=n=>a("focus",n)),onBlur:l[5]||(l[5]=n=>a("blur",n)),class:"w-100",value:t.field,placeholder:t.placeholder,tabindex:t.tabindex},null,40,f))]),e.renderSlot(d.$slots,"default",{},void 0,!0),t.symbol?(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("span",null,e.toDisplayString(t.symbol),1)])):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},y=u.default(k,[["__scopeId","data-v-839e7ced"]]);exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Field.vue.cjs");const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),r={key:0,class:"t-transp mn-r-small"},c={class:"w-100"},m=["type","value","placeholder","tabindex"],f=["value","placeholder","tabindex"],b={key:1,class:"t-transp mn-l-small"},v={key:0,class:"mn-t-thin mn-b-thin mn-b-thin invalid-feedback"},k={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,validation:!1,disabled:!1,tabindex:-1},emits:["update:field","focus","blur"],setup(t,{emit:i}){const a=i,s=t,o=e.ref(s.field);return(d,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[d.$attrs.class,{"bg-fourth-nano":t.validation}],"flex-center flex-nowrap flex"])},[t.label?(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("span",null,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[t.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:l[0]||(l[0]=n=>o.value=a("update:field",n.target.value)),onFocus:l[1]||(l[1]=n=>a("focus",n)),onBlur:l[2]||(l[2]=n=>a("blur",n)),type:t.type,class:"w-100",value:t.field,placeholder:t.placeholder,tabindex:t.tabindex},null,40,m)):(e.openBlock(),e.createElementBlock("textarea",{key:1,onInput:l[3]||(l[3]=n=>o.value=a("update:field",n.target.value)),onFocus:l[4]||(l[4]=n=>a("focus",n)),onBlur:l[5]||(l[5]=n=>a("blur",n)),class:"w-100",value:t.field,placeholder:t.placeholder,tabindex:t.tabindex},null,40,f))]),e.renderSlot(d.$slots,"default",{},void 0,!0),t.symbol?(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("span",null,e.toDisplayString(t.symbol),1)])):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},y=u.default(k,[["__scopeId","data-v-5e69d3c2"]]);exports.default=y;
@@ -9,7 +9,7 @@ const p = {
9
9
  class: "t-transp mn-l-small"
10
10
  }, C = {
11
11
  key: 0,
12
- class: "mn-t-thin mn-thin mn-b-thin invalid-feedback"
12
+ class: "mn-t-thin mn-b-thin mn-b-thin invalid-feedback"
13
13
  }, E = {
14
14
  __name: "Field",
15
15
  props: {
@@ -72,7 +72,7 @@ const p = {
72
72
  })
73
73
  ], 64));
74
74
  }
75
- }, $ = /* @__PURE__ */ k(E, [["__scopeId", "data-v-839e7ced"]]);
75
+ }, $ = /* @__PURE__ */ k(E, [["__scopeId", "data-v-5e69d3c2"]]);
76
76
  export {
77
77
  $ as default
78
78
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("./FieldTags.vue.cjs");require("./BlockTags.vue2.cjs");const f=e.createElementVNode("h5",{class:"mn-thin"},"Tags (maximum 20):",-1),x={class:"mn-medium"},_=e.createElementVNode("p",{class:"p-small mn-thin"},"Suggested:",-1),k=["onClick"],B={key:1},y={__name:"BlockTags",props:["tags"],emits:["tags-changed"],setup(d,{emit:m}){const r=m,u=d,o=e.ref(""),s=e.ref([]),c=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);u.tags&&(s.value=u.tags.map(t=>({text:t})));const i=e.computed(()=>c.value.filter(t=>t.text.toLowerCase().includes(o.value.toLowerCase()))),n=e.computed(()=>c.value.filter(t=>!s.value.some(a=>a.text===t.text)));function g(t){s.value.push(t),r("tags-changed",s.value.map(a=>a.text))}function p(t){s.value=t,r("tags-changed",s.value.map(a=>a.text))}return(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[f,e.createVNode(h.default,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l),tags:s.value,"autocomplete-items":i.value,"add-on-key":[13,":",";",","],"save-on-key":[13,":",";",","],separators:[";",","],"max-tags":20,maxlength:20,placeholder:"Please add tags","add-from-paste":!0,"allow-edit-tags":!0,onTagsChanged:p,class:"mn-thin bg-grey radius-medium pd-small"},null,8,["modelValue","tags","autocomplete-items"]),e.createElementVNode("p",x,[_,n.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value,(l,v)=>(e.openBlock(),e.createElementBlock("span",{onClick:T=>g(l),class:e.normalizeClass(["cursor-pointer ti-tag-toDefactor",{"mn-r-micro":v!==n.value.length-1}])},e.toDisplayString(l.text),11,k))),256)):(e.openBlock(),e.createElementBlock("span",B,"You added all suggested tags"))])]))}};exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("./FieldTags.vue.cjs");require("./BlockTags.vue2.cjs");const f=e.createElementVNode("h5",{class:"mn-b-thin"},"Tags (maximum 20):",-1),x={class:"mn-b-medium"},_=e.createElementVNode("p",{class:"p-small mn-b-thin"},"Suggested:",-1),k=["onClick"],B={key:1},y={__name:"BlockTags",props:["tags"],emits:["tags-changed"],setup(d,{emit:m}){const r=m,u=d,o=e.ref(""),s=e.ref([]),c=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);u.tags&&(s.value=u.tags.map(t=>({text:t})));const i=e.computed(()=>c.value.filter(t=>t.text.toLowerCase().includes(o.value.toLowerCase()))),n=e.computed(()=>c.value.filter(t=>!s.value.some(a=>a.text===t.text)));function g(t){s.value.push(t),r("tags-changed",s.value.map(a=>a.text))}function p(t){s.value=t,r("tags-changed",s.value.map(a=>a.text))}return(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[f,e.createVNode(h.default,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l),tags:s.value,"autocomplete-items":i.value,"add-on-key":[13,":",";",","],"save-on-key":[13,":",";",","],separators:[";",","],"max-tags":20,maxlength:20,placeholder:"Please add tags","add-from-paste":!0,"allow-edit-tags":!0,onTagsChanged:p,class:"mn-b-thin bg-grey radius-medium pd-small"},null,8,["modelValue","tags","autocomplete-items"]),e.createElementVNode("p",x,[_,n.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value,(l,v)=>(e.openBlock(),e.createElementBlock("span",{onClick:T=>g(l),class:e.normalizeClass(["cursor-pointer ti-tag-toDefactor",{"mn-r-micro":v!==n.value.length-1}])},e.toDisplayString(l.text),11,k))),256)):(e.openBlock(),e.createElementBlock("span",B,"You added all suggested tags"))])]))}};exports.default=y;
@@ -1,7 +1,7 @@
1
- import { ref as u, computed as g, openBlock as o, createElementBlock as l, createVNode as k, createElementVNode as d, Fragment as y, renderList as C, normalizeClass as T, toDisplayString as V } from "vue";
2
- import w from "./FieldTags.vue.js";
1
+ import { ref as u, computed as g, openBlock as o, createElementBlock as l, createVNode as k, createElementVNode as d, Fragment as y, renderList as C, normalizeClass as T, toDisplayString as b } from "vue";
2
+ import V from "./FieldTags.vue.js";
3
3
  import "./BlockTags.vue2.js";
4
- const B = /* @__PURE__ */ d("h5", { class: "mn-thin" }, "Tags (maximum 20):", -1), I = { class: "mn-medium" }, L = /* @__PURE__ */ d("p", { class: "p-small mn-thin" }, "Suggested:", -1), S = ["onClick"], D = { key: 1 }, z = {
4
+ const w = /* @__PURE__ */ d("h5", { class: "mn-b-thin" }, "Tags (maximum 20):", -1), B = { class: "mn-b-medium" }, I = /* @__PURE__ */ d("p", { class: "p-small mn-b-thin" }, "Suggested:", -1), L = ["onClick"], S = { key: 1 }, z = {
5
5
  __name: "BlockTags",
6
6
  props: ["tags"],
7
7
  emits: ["tags-changed"],
@@ -22,8 +22,8 @@ const B = /* @__PURE__ */ d("h5", { class: "mn-thin" }, "Tags (maximum 20):", -1
22
22
  a.value = e, m("tags-changed", a.value.map((t) => t.text));
23
23
  }
24
24
  return (e, t) => (o(), l("div", null, [
25
- B,
26
- k(w, {
25
+ w,
26
+ k(V, {
27
27
  modelValue: n.value,
28
28
  "onUpdate:modelValue": t[0] || (t[0] = (s) => n.value = s),
29
29
  tags: a.value,
@@ -37,14 +37,14 @@ const B = /* @__PURE__ */ d("h5", { class: "mn-thin" }, "Tags (maximum 20):", -1
37
37
  "add-from-paste": !0,
38
38
  "allow-edit-tags": !0,
39
39
  onTagsChanged: f,
40
- class: "mn-thin bg-grey radius-medium pd-small"
40
+ class: "mn-b-thin bg-grey radius-medium pd-small"
41
41
  }, null, 8, ["modelValue", "tags", "autocomplete-items"]),
42
- d("p", I, [
43
- L,
42
+ d("p", B, [
43
+ I,
44
44
  r.value.length > 0 ? (o(!0), l(y, { key: 0 }, C(r.value, (s, _) => (o(), l("span", {
45
- onClick: (E) => x(s),
45
+ onClick: (D) => x(s),
46
46
  class: T(["cursor-pointer ti-tag-toDefactor", { "mn-r-micro": _ !== r.value.length - 1 }])
47
- }, V(s.text), 11, S))), 256)) : (o(), l("span", D, "You added all suggested tags"))
47
+ }, b(s.text), 11, L))), 256)) : (o(), l("span", S, "You added all suggested tags"))
48
48
  ])
49
49
  ]));
50
50
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("../../../../components/Field/Field.vue.cjs");const f=require("vue-router"),S=require("vue-i18n"),c=require("../../store/auth.cjs"),g=require("../../store/twofa.cjs"),y=require("../../../globals/store/globals.cjs"),b=require("../../localization/EnterCode.json.cjs"),D={class:"t-center pd-medium"},I={class:"mn-medium"},q={class:"mn-big t-transp"},k={class:"w-100 mn-big flex-nowrap flex"},C={key:1},N={__name:"EnterCode",setup(P){const m=f.useRoute(),v=f.useRouter(),{t:d}=S.useI18n(b.default),o=n.reactive({digits:["","","",""],error:null});n.watch(()=>o.digits[0],s=>{if(console.log(String(s)),console.log(String(s).length),s&&String(s).length>1){let e=String(s).split("");console.log(e);let t=[...o.digits];e.forEach((l,r)=>{console.log(r),console.log(t[r]),console.log(l),t[r]=l}),o.digits=t,u(3)}});const p=n.ref(null),i=n.ref(0);async function E(){try{await g.sendCode(c.state.user,m.query.type,c.state.user.phone?"phone":"email"),i.value=30;const s=setInterval(()=>{i.value>0?i.value-=1:clearInterval(s)},1e3)}catch{y.setError({response:{data:{errorCode:"CODE_NOT_SENT"}}})}}const a=(s,e)=>{if(s.key==="Backspace"&&(o.digits[e]===null||o.digits[e]===void 0||o.digits[e]==="")){s.preventDefault();const t=document.querySelectorAll("input"),l=e>0?t[e-1]:null;l&&(l.focus(),l.setSelectionRange(l.value.length,l.value.length))}},u=s=>{const e=document.querySelectorAll("input"),t=e[s+1],l=s>0?e[s-1]:null;if(o.digits[s]!==""&&o.digits[s]!==null&&o.digits[s]!==void 0&&s<4&&(s<3?t.focus():p.value.focus()),(o.digits[s]===null||o.digits[s]===void 0||o.digits[s]==="")&&s>0&&l.focus(),o.digits.every(r=>r!=="")){const r=o.digits.join(""),w=g.state.code.code.toString();r===w?(g.state.code.isValid=!0,v.push({path:"/auth/enter-password",query:{type:g.state.code.type,method:m.query.method}})):(y.setError({response:{data:{errorCode:"WRONG_CODE"}}}),p.value.focus(),o.digits=["","","",""])}};return(s,e)=>(n.openBlock(),n.createElementBlock("section",D,[n.createElementVNode("h3",I,n.toDisplayString(n.unref(d)("verifyNumberTitle")),1),n.createElementVNode("p",q,n.toDisplayString(n.unref(d)("instructions")),1),n.createElementVNode("div",k,[n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[0]||(e[0]=t=>o.digits[0]=t),ref_key:"firstInput",ref:p,maxlength:"1",onInput:e[1]||(e[1]=t=>u(0)),onPaste:e[2]||(e[2]=t=>s.onPaste(t,0)),onKeydown:e[3]||(e[3]=t=>a(t,0)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[0]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[4]||(e[4]=t=>o.digits[1]=t),maxlength:"1",onInput:e[5]||(e[5]=t=>u(1)),onPaste:e[6]||(e[6]=t=>s.onPaste(t,1)),onKeydown:e[7]||(e[7]=t=>a(t,1)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[1]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[8]||(e[8]=t=>o.digits[2]=t),maxlength:"1",onInput:e[9]||(e[9]=t=>u(2)),onPaste:e[10]||(e[10]=t=>s.onPaste(t,2)),onKeydown:e[11]||(e[11]=t=>a(t,2)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[2]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[12]||(e[12]=t=>o.digits[3]=t),maxlength:"1",onInput:e[13]||(e[13]=t=>u(3)),onPaste:e[14]||(e[14]=t=>s.onPaste(t,3)),onKeydown:e[15]||(e[15]=t=>a(t,3)),class:"w-100 h1 pd-small t-center bg-grey radius-small"},null,544),[[n.vModelText,o.digits[3]]])]),i.value<1?(n.openBlock(),n.createElementBlock("a",{key:0,onClick:E,class:"t-blue"},n.toDisplayString(n.unref(d)("resendCode")),1)):(n.openBlock(),n.createElementBlock("span",C,n.toDisplayString(i.value)+" "+n.toDisplayString(n.unref(d)("secondsResend")),1))]))}};exports.default=N;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("../../../../components/Field/Field.vue.cjs");const f=require("vue-router"),w=require("vue-i18n"),c=require("../../store/auth.cjs"),g=require("../../store/twofa.cjs"),y=require("../../../globals/store/globals.cjs"),S=require("../../localization/EnterCode.json.cjs"),D={class:"t-center pd-medium"},I={class:"mn-b-medium"},q={class:"mn-b-big t-transp"},k={class:"w-100 mn-b-big flex-nowrap flex"},C={key:1},N={__name:"EnterCode",setup(P){const m=f.useRoute(),v=f.useRouter(),{t:d}=w.useI18n(S.default),o=n.reactive({digits:["","","",""],error:null});n.watch(()=>o.digits[0],s=>{if(console.log(String(s)),console.log(String(s).length),s&&String(s).length>1){let e=String(s).split("");console.log(e);let t=[...o.digits];e.forEach((l,r)=>{console.log(r),console.log(t[r]),console.log(l),t[r]=l}),o.digits=t,u(3)}});const p=n.ref(null),i=n.ref(0);async function b(){try{await g.sendCode(c.state.user,m.query.type,c.state.user.phone?"phone":"email"),i.value=30;const s=setInterval(()=>{i.value>0?i.value-=1:clearInterval(s)},1e3)}catch{y.setError({response:{data:{errorCode:"CODE_NOT_SENT"}}})}}const a=(s,e)=>{if(s.key==="Backspace"&&(o.digits[e]===null||o.digits[e]===void 0||o.digits[e]==="")){s.preventDefault();const t=document.querySelectorAll("input"),l=e>0?t[e-1]:null;l&&(l.focus(),l.setSelectionRange(l.value.length,l.value.length))}},u=s=>{const e=document.querySelectorAll("input"),t=e[s+1],l=s>0?e[s-1]:null;if(o.digits[s]!==""&&o.digits[s]!==null&&o.digits[s]!==void 0&&s<4&&(s<3?t.focus():p.value.focus()),(o.digits[s]===null||o.digits[s]===void 0||o.digits[s]==="")&&s>0&&l.focus(),o.digits.every(r=>r!=="")){const r=o.digits.join(""),E=g.state.code.code.toString();r===E?(g.state.code.isValid=!0,v.push({path:"/auth/enter-password",query:{type:g.state.code.type,method:m.query.method}})):(y.setError({response:{data:{errorCode:"WRONG_CODE"}}}),p.value.focus(),o.digits=["","","",""])}};return(s,e)=>(n.openBlock(),n.createElementBlock("section",D,[n.createElementVNode("h3",I,n.toDisplayString(n.unref(d)("verifyNumberTitle")),1),n.createElementVNode("p",q,n.toDisplayString(n.unref(d)("instructions")),1),n.createElementVNode("div",k,[n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[0]||(e[0]=t=>o.digits[0]=t),ref_key:"firstInput",ref:p,maxlength:"1",onInput:e[1]||(e[1]=t=>u(0)),onPaste:e[2]||(e[2]=t=>s.onPaste(t,0)),onKeydown:e[3]||(e[3]=t=>a(t,0)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[0]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[4]||(e[4]=t=>o.digits[1]=t),maxlength:"1",onInput:e[5]||(e[5]=t=>u(1)),onPaste:e[6]||(e[6]=t=>s.onPaste(t,1)),onKeydown:e[7]||(e[7]=t=>a(t,1)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[1]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[8]||(e[8]=t=>o.digits[2]=t),maxlength:"1",onInput:e[9]||(e[9]=t=>u(2)),onPaste:e[10]||(e[10]=t=>s.onPaste(t,2)),onKeydown:e[11]||(e[11]=t=>a(t,2)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[2]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[12]||(e[12]=t=>o.digits[3]=t),maxlength:"1",onInput:e[13]||(e[13]=t=>u(3)),onPaste:e[14]||(e[14]=t=>s.onPaste(t,3)),onKeydown:e[15]||(e[15]=t=>a(t,3)),class:"w-100 h1 pd-small t-center bg-grey radius-small"},null,544),[[n.vModelText,o.digits[3]]])]),i.value<1?(n.openBlock(),n.createElementBlock("a",{key:0,onClick:b,class:"t-blue"},n.toDisplayString(n.unref(d)("resendCode")),1)):(n.openBlock(),n.createElementBlock("span",C,n.toDisplayString(i.value)+" "+n.toDisplayString(n.unref(d)("secondsResend")),1))]))}};exports.default=N;
@@ -1,15 +1,15 @@
1
- import { reactive as D, watch as $, ref as b, openBlock as v, createElementBlock as c, createElementVNode as r, toDisplayString as d, unref as m, withDirectives as g, vModelText as f } from "vue";
1
+ import { reactive as D, watch as $, ref as I, openBlock as v, createElementBlock as b, createElementVNode as r, toDisplayString as d, unref as m, withDirectives as g, vModelText as f } from "vue";
2
2
  import "../../../../components/Field/Field.vue.js";
3
3
  import { useRoute as q, useRouter as K } from "vue-router";
4
4
  import { useI18n as N } from "vue-i18n";
5
5
  import { state as C } from "../../store/auth.js";
6
- import { state as w, sendCode as R } from "../../store/twofa.js";
6
+ import { state as c, sendCode as R } from "../../store/twofa.js";
7
7
  import { setError as S } from "../../../globals/store/globals.js";
8
8
  import T from "../../localization/EnterCode.json.js";
9
- const A = { class: "t-center pd-medium" }, O = { class: "mn-medium" }, U = { class: "mn-big t-transp" }, B = { class: "w-100 mn-big flex-nowrap flex" }, V = { key: 1 }, Q = {
9
+ const A = { class: "t-center pd-medium" }, O = { class: "mn-b-medium" }, U = { class: "mn-b-big t-transp" }, B = { class: "w-100 mn-b-big flex-nowrap flex" }, V = { key: 1 }, Q = {
10
10
  __name: "EnterCode",
11
11
  setup(j) {
12
- const I = q(), k = K(), { t: p } = N(T), n = D({
12
+ const w = q(), k = K(), { t: p } = N(T), n = D({
13
13
  digits: ["", "", "", ""],
14
14
  error: null
15
15
  });
@@ -26,10 +26,10 @@ const A = { class: "t-center pd-medium" }, O = { class: "mn-medium" }, U = { cla
26
26
  }
27
27
  }
28
28
  );
29
- const y = b(null), i = b(0);
29
+ const y = I(null), i = I(0);
30
30
  async function E() {
31
31
  try {
32
- await R(C.user, I.query.type, C.user.phone ? "phone" : "email"), i.value = 30;
32
+ await R(C.user, w.query.type, C.user.phone ? "phone" : "email"), i.value = 30;
33
33
  const s = setInterval(() => {
34
34
  i.value > 0 ? i.value -= 1 : clearInterval(s);
35
35
  }, 1e3);
@@ -46,14 +46,14 @@ const A = { class: "t-center pd-medium" }, O = { class: "mn-medium" }, U = { cla
46
46
  }, u = (s) => {
47
47
  const t = document.querySelectorAll("input"), e = t[s + 1], o = s > 0 ? t[s - 1] : null;
48
48
  if (n.digits[s] !== "" && n.digits[s] !== null && n.digits[s] !== void 0 && s < 4 && (s < 3 ? e.focus() : y.value.focus()), (n.digits[s] === null || n.digits[s] === void 0 || n.digits[s] === "") && s > 0 && o.focus(), n.digits.every((l) => l !== "")) {
49
- const l = n.digits.join(""), P = w.code.code.toString();
50
- l === P ? (w.code.isValid = !0, k.push({
49
+ const l = n.digits.join(""), P = c.code.code.toString();
50
+ l === P ? (c.code.isValid = !0, k.push({
51
51
  path: "/auth/enter-password",
52
- query: { type: w.code.type, method: I.query.method }
52
+ query: { type: c.code.type, method: w.query.method }
53
53
  })) : (S({ response: { data: { errorCode: "WRONG_CODE" } } }), y.value.focus(), n.digits = ["", "", "", ""]);
54
54
  }
55
55
  };
56
- return (s, t) => (v(), c("section", A, [
56
+ return (s, t) => (v(), b("section", A, [
57
57
  r("h3", O, d(m(p)("verifyNumberTitle")), 1),
58
58
  r("p", U, d(m(p)("instructions")), 1),
59
59
  r("div", B, [
@@ -104,11 +104,11 @@ const A = { class: "t-center pd-medium" }, O = { class: "mn-medium" }, U = { cla
104
104
  [f, n.digits[3]]
105
105
  ])
106
106
  ]),
107
- i.value < 1 ? (v(), c("a", {
107
+ i.value < 1 ? (v(), b("a", {
108
108
  key: 0,
109
109
  onClick: E,
110
110
  class: "t-blue"
111
- }, d(m(p)("resendCode")), 1)) : (v(), c("span", V, d(i.value) + " " + d(m(p)("secondsResend")), 1))
111
+ }, d(m(p)("resendCode")), 1)) : (v(), b("span", V, d(i.value) + " " + d(m(p)("secondsResend")), 1))
112
112
  ]));
113
113
  }
114
114
  };
@@ -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"),h=require("vue-i18n"),t=require("../../store/auth.cjs"),i=require("../../../middlewares/client/inputs.validation.cjs"),w=require("../../localization/EnterPassword.json.cjs");require("./EnterPassword.vue2.cjs");const y={class:"t-left pd-medium"},_={class:"mn-small"},g={key:0,class:"mn-semi t-transp"},k={key:1,class:"mn-semi t-transp"},q={class:"mn-semi radius-small o-hidden"},B={key:2,class:"p-medium t-semi mn-semi"},E=e.createElementVNode("a",{class:"t-second",href:"https://thecommunephuket.com/legal/eula",target:"_blank",rel:"noopener noreferrer"},"End User License Agreement (EULA)",-1),P={key:0},v={key:1},b={__name:"EnterPassword",setup(V){const n=e.ref(null),{t:s}=h.useI18n(w.default),r=d.useRoute(),u=d.useRouter();e.ref("phone");async function c(){try{await i.validateInputs(n,i.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}r.query.method==="reset-password"&&await t.actions.updatePassword(t.state.user,r.query.type),r.query.method!=="reset-password"&&await t.actions.signup(t.state.user,r.query.type)}function p(){u.push({name:"User Profile",params:{_id:t.state.user._id},query:{afterAuth:"true"}})}return(m,o)=>(e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",_,e.toDisplayString(e.unref(s)("almostDone")),1),e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("p",g,e.toDisplayString(e.unref(s)("newPasswordPrompt")),1)):(e.openBlock(),e.createElementBlock("p",k,e.toDisplayString(e.unref(s)("registrationPasswordPrompt")),1)),e.createElementVNode("div",q,[e.createVNode(l.default,{field:t.state.user.password,"onUpdate:field":o[0]||(o[0]=a=>t.state.user.password=a),type:"password",validation:n.value,placeholder:e.unref(s)("passwordPlaceholder"),class:"bg-grey pd-small radius-small mn-thin"},null,8,["field","validation","placeholder"]),e.createVNode(l.default,{field:t.state.user.passwordRepeat,"onUpdate:field":o[1]||(o[1]=a=>t.state.user.passwordRepeat=a),type:"password",placeholder:e.unref(s)("repeatPasswordPlaceholder"),class:"bg-grey pd-small radius-small mn-thin"},null,8,["field","placeholder"])]),e.unref(r).query.method!=="reset-password"?(e.openBlock(),e.createElementBlock("div",B,[e.createTextVNode(" By registering, you agree to our "),E])):e.createCommentVNode("",!0),e.createVNode(f.default,{submit:c,callback:p,class:"mn-big"},{default:e.withCtx(()=>[e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("span",P,e.toDisplayString(e.unref(s)("changePasswordBtn")),1)):(e.openBlock(),e.createElementBlock("span",v,e.toDisplayString(e.unref(s)("registerBtn")),1))]),_:1})]))}};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"),f=require("../../../../components/Button/Button.vue2.cjs"),d=require("vue-router"),h=require("vue-i18n"),t=require("../../store/auth.cjs"),i=require("../../../middlewares/client/inputs.validation.cjs"),w=require("../../localization/EnterPassword.json.cjs");require("./EnterPassword.vue2.cjs");const y={class:"t-left pd-medium"},_={class:"mn-b-small"},g={key:0,class:"mn-b-semi t-transp"},k={key:1,class:"mn-b-semi t-transp"},q={class:"mn-b-semi radius-small o-hidden"},b={key:2,class:"p-medium t-semi mn-b-semi"},B=e.createElementVNode("a",{class:"t-second",href:"https://thecommunephuket.com/legal/eula",target:"_blank",rel:"noopener noreferrer"},"End User License Agreement (EULA)",-1),E={key:0},P={key:1},v={__name:"EnterPassword",setup(V){const n=e.ref(null),{t:s}=h.useI18n(w.default),r=d.useRoute(),u=d.useRouter();e.ref("phone");async function c(){try{await i.validateInputs(n,i.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}r.query.method==="reset-password"&&await t.actions.updatePassword(t.state.user,r.query.type),r.query.method!=="reset-password"&&await t.actions.signup(t.state.user,r.query.type)}function p(){u.push({name:"User Profile",params:{_id:t.state.user._id},query:{afterAuth:"true"}})}return(m,o)=>(e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",_,e.toDisplayString(e.unref(s)("almostDone")),1),e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("p",g,e.toDisplayString(e.unref(s)("newPasswordPrompt")),1)):(e.openBlock(),e.createElementBlock("p",k,e.toDisplayString(e.unref(s)("registrationPasswordPrompt")),1)),e.createElementVNode("div",q,[e.createVNode(l.default,{field:t.state.user.password,"onUpdate:field":o[0]||(o[0]=a=>t.state.user.password=a),type:"password",validation:n.value,placeholder:e.unref(s)("passwordPlaceholder"),class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["field","validation","placeholder"]),e.createVNode(l.default,{field:t.state.user.passwordRepeat,"onUpdate:field":o[1]||(o[1]=a=>t.state.user.passwordRepeat=a),type:"password",placeholder:e.unref(s)("repeatPasswordPlaceholder"),class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["field","placeholder"])]),e.unref(r).query.method!=="reset-password"?(e.openBlock(),e.createElementBlock("div",b,[e.createTextVNode(" By registering, you agree to our "),B])):e.createCommentVNode("",!0),e.createVNode(f.default,{submit:c,callback:p,class:"mn-b-big"},{default:e.withCtx(()=>[e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(e.unref(s)("changePasswordBtn")),1)):(e.openBlock(),e.createElementBlock("span",P,e.toDisplayString(e.unref(s)("registerBtn")),1))]),_:1})]))}};exports.default=v;
@@ -1,22 +1,22 @@
1
- import { ref as u, openBlock as o, createElementBlock as a, createElementVNode as m, toDisplayString as d, unref as e, createVNode as l, createTextVNode as g, createCommentVNode as P, withCtx as k } from "vue";
1
+ import { ref as u, openBlock as o, createElementBlock as a, createElementVNode as m, toDisplayString as d, unref as e, createVNode as l, createTextVNode as g, createCommentVNode as b, withCtx as P } from "vue";
2
2
  import "../../../../components/Tab/Tab.vue.js";
3
3
  import c from "../../../../components/Field/Field.vue2.js";
4
- import q from "../../../../components/Button/Button.vue2.js";
5
- import { useRoute as b, useRouter as v } from "vue-router";
4
+ import k from "../../../../components/Button/Button.vue2.js";
5
+ import { useRoute as q, useRouter as v } from "vue-router";
6
6
  import { useI18n as E } from "vue-i18n";
7
7
  import { state as s, actions as h } from "../../store/auth.js";
8
8
  import { validateInputs as x, validatePassword as B } from "../../../middlewares/client/inputs.validation.js";
9
9
  import U from "../../localization/EnterPassword.json.js";
10
10
  import "./EnterPassword.vue2.js";
11
- const V = { class: "t-left pd-medium" }, N = { class: "mn-small" }, R = {
11
+ const V = { class: "t-left pd-medium" }, N = { class: "mn-b-small" }, R = {
12
12
  key: 0,
13
- class: "mn-semi t-transp"
13
+ class: "mn-b-semi t-transp"
14
14
  }, A = {
15
15
  key: 1,
16
- class: "mn-semi t-transp"
17
- }, C = { class: "mn-semi radius-small o-hidden" }, D = {
16
+ class: "mn-b-semi t-transp"
17
+ }, C = { class: "mn-b-semi radius-small o-hidden" }, D = {
18
18
  key: 2,
19
- class: "p-medium t-semi mn-semi"
19
+ class: "p-medium t-semi mn-b-semi"
20
20
  }, I = /* @__PURE__ */ m("a", {
21
21
  class: "t-second",
22
22
  href: "https://thecommunephuket.com/legal/eula",
@@ -25,7 +25,7 @@ const V = { class: "t-left pd-medium" }, N = { class: "mn-small" }, R = {
25
25
  }, "End User License Agreement (EULA)", -1), L = { key: 0 }, S = { key: 1 }, Q = {
26
26
  __name: "EnterPassword",
27
27
  setup(T) {
28
- const p = u(null), { t } = E(U), r = b(), f = v();
28
+ const p = u(null), { t } = E(U), r = q(), f = v();
29
29
  u("phone");
30
30
  async function w() {
31
31
  try {
@@ -59,26 +59,26 @@ const V = { class: "t-left pd-medium" }, N = { class: "mn-small" }, R = {
59
59
  type: "password",
60
60
  validation: p.value,
61
61
  placeholder: e(t)("passwordPlaceholder"),
62
- class: "bg-grey pd-small radius-small mn-thin"
62
+ class: "bg-grey pd-small radius-small mn-b-thin"
63
63
  }, null, 8, ["field", "validation", "placeholder"]),
64
64
  l(c, {
65
65
  field: s.user.passwordRepeat,
66
66
  "onUpdate:field": n[1] || (n[1] = (i) => s.user.passwordRepeat = i),
67
67
  type: "password",
68
68
  placeholder: e(t)("repeatPasswordPlaceholder"),
69
- class: "bg-grey pd-small radius-small mn-thin"
69
+ class: "bg-grey pd-small radius-small mn-b-thin"
70
70
  }, null, 8, ["field", "placeholder"])
71
71
  ]),
72
72
  e(r).query.method !== "reset-password" ? (o(), a("div", D, [
73
73
  g(" By registering, you agree to our "),
74
74
  I
75
- ])) : P("", !0),
76
- l(q, {
75
+ ])) : b("", !0),
76
+ l(k, {
77
77
  submit: w,
78
78
  callback: _,
79
- class: "mn-big"
79
+ class: "mn-b-big"
80
80
  }, {
81
- default: k(() => [
81
+ default: P(() => [
82
82
  e(r).query.method === "reset-password" ? (o(), a("span", L, d(e(t)("changePasswordBtn")), 1)) : (o(), a("span", S, d(e(t)("registerBtn")), 1))
83
83
  ]),
84
84
  _: 1
@@ -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;