@ozdao/prometheus-framework 0.1.99 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (324) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  3. package/dist/prometheus-framework/src/components/Button/Button.vue.js +224 -2
  4. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  5. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -224
  6. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  7. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +49 -2
  8. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  9. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +2 -49
  10. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  11. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +5 -5
  12. package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.js +1 -1
  14. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -2
  16. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +10 -10
  18. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -1
  20. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
  22. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
  24. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
  26. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +12 -12
  28. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +15 -15
  30. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +9 -9
  32. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +15 -15
  34. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +15 -15
  36. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +10 -10
  38. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.js +4 -4
  40. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +2 -2
  42. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +8 -8
  44. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +2 -2
  46. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +10 -10
  48. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +6 -6
  50. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +9 -9
  52. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +8 -8
  54. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +3 -3
  56. package/dist/prometheus-framework/src/modules/community/components/sections/SubscribeNewsletter.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/community/components/sections/SubscribeNewsletter.vue.js +3 -3
  58. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +2 -2
  60. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +4 -4
  62. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +1 -1
  64. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +2 -2
  66. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +5 -5
  68. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +20 -11
  70. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -1
  73. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +62 -2
  74. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -4
  75. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -62
  76. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +13 -13
  78. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +11 -11
  80. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  82. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +2 -2
  84. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +20 -20
  86. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +6 -6
  88. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
  90. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +7 -7
  92. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +4 -4
  94. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +12 -12
  96. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +15 -15
  98. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
  100. package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.js +4 -4
  102. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +3 -3
  104. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +8 -8
  106. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
  108. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
  110. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.js +2 -2
  112. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +1 -1
  114. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +8 -8
  116. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +3 -3
  118. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +1 -1
  120. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +9 -9
  122. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +4 -4
  124. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.js +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.js +1 -1
  128. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  130. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +7 -7
  132. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +7 -7
  134. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +5 -5
  136. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +15 -15
  138. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +7 -7
  140. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +6 -6
  142. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +15 -15
  144. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +8 -8
  146. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +5 -5
  148. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +7 -7
  150. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +7 -7
  152. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  154. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +2 -2
  155. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +4 -4
  157. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +5 -5
  159. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +2 -2
  161. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +6 -6
  163. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +8 -8
  165. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +5 -5
  167. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +10 -10
  169. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +6 -6
  171. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +19 -19
  173. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +5 -5
  175. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +9 -9
  177. package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.js +1 -1
  179. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +8 -8
  181. package/dist/prometheus-framework.cjs.js +1 -1
  182. package/dist/prometheus-framework.es.js +2 -2
  183. package/dist/style.css +1 -1
  184. package/package.json +1 -1
  185. package/src/components/EditImages/EditImages.vue +3 -3
  186. package/src/components/EmptyState/EmptyState.vue +2 -2
  187. package/src/components/Field/Field.svlt +1 -1
  188. package/src/components/Field/Field.vue +1 -1
  189. package/src/components/FieldTags/BlockTags.vue +4 -4
  190. package/src/components/Footer/Footer.vue +8 -8
  191. package/src/components/LocationSelection/LocationSelection.vue +4 -4
  192. package/src/components/Search/Search.vue +3 -3
  193. package/src/configurator/components/layouts/layoutConfigurator.vue +2 -2
  194. package/src/configurator/components/pages/Styles.vue +3 -3
  195. package/src/modules/auth/components/pages/EnterCode.vue +4 -4
  196. package/src/modules/auth/components/pages/EnterPassword.vue +9 -9
  197. package/src/modules/auth/components/pages/Invite.vue +6 -6
  198. package/src/modules/auth/components/pages/ResetPassword.vue +10 -10
  199. package/src/modules/auth/components/pages/SignIn.vue +11 -11
  200. package/src/modules/auth/components/pages/SignUp.vue +11 -11
  201. package/src/modules/auth/components/sections/SliderFeatures.vue +2 -2
  202. package/src/modules/backoffice/components/admin/Categories.vue +2 -2
  203. package/src/modules/backoffice/components/admin/CategoryEdit.vue +2 -2
  204. package/src/modules/backoffice/components/admin/Dashboard.vue +1 -1
  205. package/src/modules/backoffice/components/admin/FastOrders.vue +3 -3
  206. package/src/modules/backoffice/components/admin/PageEdit.vue +3 -3
  207. package/src/modules/backoffice/components/admin/Pages.vue +1 -1
  208. package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
  209. package/src/modules/backoffice/components/admin/User.vue +6 -6
  210. package/src/modules/backoffice/components/admin/Users.vue +4 -4
  211. package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
  212. package/src/modules/backoffice/components/pages/Dashboard.vue +1 -1
  213. package/src/modules/community/components/blocks/CardBlogpost.vue +5 -5
  214. package/src/modules/community/components/layouts/Community.vue +2 -2
  215. package/src/modules/community/components/pages/BlogPost.vue +4 -4
  216. package/src/modules/community/components/pages/Community.vue +2 -2
  217. package/src/modules/community/components/pages/CreateBlogPost.vue +5 -5
  218. package/src/modules/community/components/sections/Comments.vue +5 -5
  219. package/src/modules/community/components/sections/Feed.vue +2 -2
  220. package/src/modules/community/components/sections/JoinUs.vue +2 -2
  221. package/src/modules/community/components/sections/SubscribeNewsletter.vue +3 -3
  222. package/src/modules/constructor/components/elements/Audio.vue +2 -2
  223. package/src/modules/constructor/components/elements/Bullets.vue +1 -1
  224. package/src/modules/constructor/components/elements/Caption.vue +1 -1
  225. package/src/modules/constructor/components/elements/Embed.vue +2 -2
  226. package/src/modules/constructor/components/elements/H2.vue +1 -1
  227. package/src/modules/constructor/components/elements/Image.vue +19 -5
  228. package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
  229. package/src/modules/constructor/components/elements/Textarea.vue +1 -1
  230. package/src/modules/constructor/components/sections/Constructor.vue +4 -4
  231. package/src/modules/events/components/blocks/CardEvent.vue +5 -5
  232. package/src/modules/events/components/layouts/layoutEvents.vue +1 -1
  233. package/src/modules/events/components/pages/EditEvent.vue +12 -12
  234. package/src/modules/events/components/pages/Event.vue +4 -4
  235. package/src/modules/events/components/pages/Events.vue +1 -1
  236. package/src/modules/events/components/sections/Feed.vue +2 -2
  237. package/src/modules/events/components/sections/List.vue +1 -1
  238. package/src/modules/gallery/components/sections/BackofficeGallery.vue +10 -10
  239. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +6 -6
  240. package/src/modules/globals/components/sections/Feed.vue +1 -1
  241. package/src/modules/landing/components/sections/MobileApp.vue +7 -7
  242. package/src/modules/legal/components/pages/Legal.vue +5 -5
  243. package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
  244. package/src/modules/mobile/components/Menu/MenuItem.vue +2 -2
  245. package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
  246. package/src/modules/orders/components/blocks/Positions.vue +8 -8
  247. package/src/modules/orders/components/pages/EditOrder.vue +19 -19
  248. package/src/modules/orders/components/pages/Favorites.vue +2 -2
  249. package/src/modules/orders/components/pages/Order.vue +5 -5
  250. package/src/modules/orders/components/pages/Orders.vue +5 -5
  251. package/src/modules/orders/components/pages/ViewOrder.vue +7 -7
  252. package/src/modules/orders/components/partials/ShopCart.vue +3 -3
  253. package/src/modules/orders/components/sections/Form.vue +12 -12
  254. package/src/modules/orders/components/sections/Succes.vue +4 -4
  255. package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
  256. package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -3
  257. package/src/modules/organizations/components/blocks/Contacts.vue +1 -1
  258. package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +2 -2
  259. package/src/modules/organizations/components/blocks/EditArray.vue +2 -2
  260. package/src/modules/organizations/components/blocks/EmptyState.vue +3 -3
  261. package/src/modules/organizations/components/blocks/Rating.vue +1 -1
  262. package/src/modules/organizations/components/pages/Department.vue +6 -6
  263. package/src/modules/organizations/components/pages/DepartmentEdit.vue +16 -16
  264. package/src/modules/organizations/components/pages/Members.vue +2 -2
  265. package/src/modules/organizations/components/pages/Organization.vue +5 -5
  266. package/src/modules/organizations/components/pages/OrganizationEdit.vue +16 -16
  267. package/src/modules/organizations/components/pages/Organizations.vue +2 -2
  268. package/src/modules/organizations/components/sections/DetailsTab.vue +11 -11
  269. package/src/modules/organizations/components/sections/Documents.vue +4 -4
  270. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  271. package/src/modules/organizations/components/sections/FeedDepartments.vue +2 -2
  272. package/src/modules/organizations/components/sections/MembersAdd.vue +5 -5
  273. package/src/modules/organizations/components/sections/MembersList.vue +2 -2
  274. package/src/modules/organizations/components/sections/Unit.vue +12 -12
  275. package/src/modules/payments/components/pages/Payments.vue +3 -3
  276. package/src/modules/products/components/blocks/CardLeftover.vue +4 -4
  277. package/src/modules/products/components/blocks/CardProduct.vue +3 -3
  278. package/src/modules/products/components/blocks/EditCategories.vue +4 -4
  279. package/src/modules/products/components/blocks/EditFilters.vue +4 -4
  280. package/src/modules/products/components/blocks/LeftoverPositions.vue +1 -1
  281. package/src/modules/products/components/pages/LeftoverAdd.vue +7 -7
  282. package/src/modules/products/components/pages/Leftovers.vue +5 -5
  283. package/src/modules/products/components/pages/OrganizationDetails.vue +4 -4
  284. package/src/modules/products/components/pages/OrganizationDocuments.vue +5 -5
  285. package/src/modules/products/components/pages/OrganizationPeople.vue +5 -5
  286. package/src/modules/products/components/pages/ProductEdit.vue +5 -5
  287. package/src/modules/products/components/pages/ProductRecommmendation.vue +1 -1
  288. package/src/modules/products/components/pages/ProductsBackoffice.vue +2 -2
  289. package/src/modules/products/components/sections/EditModifications.vue +8 -8
  290. package/src/modules/products/components/sections/EditParameters.vue +4 -4
  291. package/src/modules/products/components/sections/EditProductImages.vue +2 -2
  292. package/src/modules/products/components/sections/EditProductInfo.vue +5 -5
  293. package/src/modules/products/components/sections/FilterProducts.vue +9 -9
  294. package/src/modules/products/components/sections/HeroRecommendation.vue +5 -5
  295. package/src/modules/products/components/sections/PopularProducts.vue +1 -1
  296. package/src/modules/products/components/sections/ProductInformationSection.vue +27 -27
  297. package/src/modules/products/components/sections/SectionProduct.vue +6 -6
  298. package/src/modules/products/components/sections/SortProducts.vue +1 -1
  299. package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
  300. package/src/modules/reports/components/sections/FormReport.vue +4 -4
  301. package/src/modules/spots/components/blocks/CardSpot.vue +4 -4
  302. package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
  303. package/src/modules/spots/components/layouts/Spots.vue +3 -3
  304. package/src/modules/spots/components/pages/Spot.vue +4 -4
  305. package/src/modules/spots/components/pages/SpotEdit.vue +16 -16
  306. package/src/modules/spots/components/sections/Feed.vue +2 -2
  307. package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
  308. package/src/modules/spots/components/sections/Places.vue +1 -1
  309. package/src/modules/users/components/pages/Profile.vue +13 -13
  310. package/src/modules/users/components/pages/ProfileBlogposts.vue +2 -2
  311. package/src/modules/users/components/pages/ProfileComments.vue +1 -1
  312. package/src/modules/users/components/pages/ProfileEdit.vue +21 -21
  313. package/src/modules/users/components/pages/ProfileEvents.vue +2 -2
  314. package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
  315. package/src/modules/users/components/pages/ProfileOrganizations.vue +2 -2
  316. package/src/modules/users/components/sections/ProfileCompletion.vue +1 -1
  317. package/src/modules/wallet/components/pages/Wallet.vue +17 -17
  318. package/src/styles/base/all.scss +83 -324
  319. package/src/styles/base/border-radius.scss +47 -0
  320. package/src/styles/base/height.scss +60 -0
  321. package/src/styles/base/scrolling.scss +8 -8
  322. package/src/styles/base/width.scss +2 -0
  323. package/src/styles/config.scss +153 -51
  324. 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("./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 e=require("vue");require("../Button/Button.vue.cjs");require("./LocationMarker.vue2.cjs");const w=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),h=r=>(e.pushScopeId("data-v-29acef04"),r=r(),e.popScopeId(),r),y={class:"pos-relative map-container"},v=h(()=>e.createElementVNode("svg",{class:"i-medium",width:"98",height:"98",viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",fill:"white"}),e.createElementVNode("path",{d:"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",fill:"white"})],-1)),L=[v],M={__name:"LocationMarker",props:{location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},apiKey:String},emits:["update:location","update:address","update:country","update:state","update:city"],setup(r,{emit:C}){const t=r,a=C,d=e.ref(null);let c,i;e.onMounted(()=>{c=new google.maps.Map(d.value,{center:t.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1}),i=new google.maps.Marker({position:t.location,map:c,draggable:!0}),i.addListener("dragend",o=>{const n={lat:o.latLng.lat(),lng:o.latLng.lng()};a("update:location",n),u(n)})}),e.watchEffect(()=>{t.location&&i&&i.setPosition(new google.maps.LatLng(t.location.lat,t.location.lng))}),e.watchEffect(()=>{if(t.location&&c){const o=new google.maps.LatLng(t.location.lat,t.location.lng);c.setCenter(o)}});function u(o){new google.maps.Geocoder().geocode({location:o},(s,p)=>{if(p==="OK")if(s[0]){a("update:address",s[0].formatted_address);let g="",f="",m="";s[0].address_components.forEach(l=>{l.types.includes("country")&&(g=l.long_name),l.types.includes("administrative_area_level_1")&&(f=l.long_name),l.types.includes("locality")&&(m=l.long_name)}),a("update:country",g),a("update:state",f),a("update:city",m)}else console.error("No results found");else console.error("Geocoder failed due to: "+p)})}async function _(){navigator.geolocation?navigator.geolocation.getCurrentPosition(o=>{const n={lat:o.coords.latitude,lng:o.coords.longitude};a("update:location",n),u(n)},()=>{console.error("Error getting location")}):console.error("Geolocation is not supported by this browser.")}return(o,n)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",{ref_key:"mapContainer",ref:d,class:"w-100 h-100"},null,512),e.createElementVNode("button",{class:"pos-absolute pos-t-regular pos-r-regular i-semi bg-second radius-extra",onClick:_},L)]))}},E=w.default(M,[["__scopeId","data-v-29acef04"]]);exports.default=E;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../Button/Button.vue2.cjs");require("./LocationMarker.vue2.cjs");const w=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),h=r=>(e.pushScopeId("data-v-29acef04"),r=r(),e.popScopeId(),r),y={class:"pos-relative map-container"},v=h(()=>e.createElementVNode("svg",{class:"i-medium",width:"98",height:"98",viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",fill:"white"}),e.createElementVNode("path",{d:"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",fill:"white"})],-1)),L=[v],M={__name:"LocationMarker",props:{location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},apiKey:String},emits:["update:location","update:address","update:country","update:state","update:city"],setup(r,{emit:C}){const t=r,a=C,d=e.ref(null);let c,i;e.onMounted(()=>{c=new google.maps.Map(d.value,{center:t.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1}),i=new google.maps.Marker({position:t.location,map:c,draggable:!0}),i.addListener("dragend",o=>{const n={lat:o.latLng.lat(),lng:o.latLng.lng()};a("update:location",n),u(n)})}),e.watchEffect(()=>{t.location&&i&&i.setPosition(new google.maps.LatLng(t.location.lat,t.location.lng))}),e.watchEffect(()=>{if(t.location&&c){const o=new google.maps.LatLng(t.location.lat,t.location.lng);c.setCenter(o)}});function u(o){new google.maps.Geocoder().geocode({location:o},(s,p)=>{if(p==="OK")if(s[0]){a("update:address",s[0].formatted_address);let g="",f="",m="";s[0].address_components.forEach(l=>{l.types.includes("country")&&(g=l.long_name),l.types.includes("administrative_area_level_1")&&(f=l.long_name),l.types.includes("locality")&&(m=l.long_name)}),a("update:country",g),a("update:state",f),a("update:city",m)}else console.error("No results found");else console.error("Geocoder failed due to: "+p)})}async function _(){navigator.geolocation?navigator.geolocation.getCurrentPosition(o=>{const n={lat:o.coords.latitude,lng:o.coords.longitude};a("update:location",n),u(n)},()=>{console.error("Error getting location")}):console.error("Geolocation is not supported by this browser.")}return(o,n)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",{ref_key:"mapContainer",ref:d,class:"w-100 h-100"},null,512),e.createElementVNode("button",{class:"pos-absolute pos-t-regular pos-r-regular i-semi bg-second radius-extra",onClick:_},L)]))}},E=w.default(M,[["__scopeId","data-v-29acef04"]]);exports.default=E;
@@ -1,5 +1,5 @@
1
1
  import { ref as h, onMounted as y, watchEffect as C, openBlock as v, createElementBlock as L, createElementVNode as s, pushScopeId as M, popScopeId as k } from "vue";
2
- import "../Button/Button.vue.js";
2
+ import "../Button/Button.vue2.js";
3
3
  import "./LocationMarker.vue2.js";
4
4
  import b from "../../../../_virtual/_plugin-vue_export-helper.js";
5
5
  const x = (l) => (M("data-v-29acef04"), l = l(), k(), l), E = { class: "pos-relative map-container" }, S = /* @__PURE__ */ x(() => /* @__PURE__ */ s("svg", {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Select.vue2.cjs");const p=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),k=["onClick"],v={key:0,class:"t-transp mn-r-small"},f={class:"w-100"},h=["onClick"],g={key:0,class:"w-100"},B={key:0,class:"mn-t-thin invalid-feedback"},_={__name:"Select",props:{label:String,select:[String,Object],placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(l,{emit:u}){const c=u,o=l,n=e.ref(o.select),a=e.ref(!1);e.watch(()=>o.select,t=>{n.value=t});const d=e.computed(()=>o.select?o.options.filter(t=>t!==o.select):o.options),r=()=>{a.value=!a.value,c(a.value?"focus":"blur")},m=t=>{n.value=t,r(),c("update:select",n.value)};return(t,C)=>{var i;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:e.withModifiers(r,["stop"]),class:e.normalizeClass([t.$attrs.class,"cursor-pointer flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",f,[e.createElementVNode("span",null,e.toDisplayString(((i=n.value)==null?void 0:i.name)||n.value||l.placeholder),1)]),e.createVNode(e.Transition,{mode:"out-in",name:"TransitionTranslateY"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass([t.$attrs.class,"pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,s=>(e.openBlock(),e.createElementBlock("li",{onClick:e.withModifiers(E=>m(s),["stop"])},[s?(e.openBlock(),e.createElementBlock("span",g,e.toDisplayString(s.name||s),1)):e.createCommentVNode("",!0)],8,h))),256))],2)):e.createCommentVNode("",!0)]),_:1})],10,k),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[l.validation?(e.openBlock(),e.createElementBlock("div",B," * "+e.toDisplayString(l.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},y=p.default(_,[["__scopeId","data-v-dfe03dc2"]]);exports.default=y;
@@ -1,4 +1,80 @@
1
- const e = "";
1
+ import { ref as f, watch as S, computed as x, openBlock as t, createElementBlock as l, Fragment as v, createElementVNode as i, withModifiers as h, normalizeClass as _, toDisplayString as r, createCommentVNode as u, createVNode as k, Transition as b, withCtx as g, renderList as B } from "vue";
2
+ import "./Select.vue2.js";
3
+ import M from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const N = ["onClick"], O = {
5
+ key: 0,
6
+ class: "t-transp mn-r-small"
7
+ }, T = { class: "w-100" }, V = ["onClick"], $ = {
8
+ key: 0,
9
+ class: "w-100"
10
+ }, z = {
11
+ key: 0,
12
+ class: "mn-t-thin invalid-feedback"
13
+ }, E = {
14
+ __name: "Select",
15
+ props: {
16
+ label: String,
17
+ select: [String, Object],
18
+ placeholder: { type: String, default: "Please select an item" },
19
+ options: { type: Array, default: () => [] },
20
+ validation: Boolean
21
+ },
22
+ emits: ["update:select", "focus", "blur"],
23
+ setup(s, { emit: w }) {
24
+ const d = w, a = s, n = f(a.select), o = f(!1);
25
+ S(() => a.select, (e) => {
26
+ n.value = e;
27
+ });
28
+ const y = x(() => a.select ? a.options.filter((e) => e !== a.select) : a.options), m = () => {
29
+ o.value = !o.value, d(o.value ? "focus" : "blur");
30
+ }, C = (e) => {
31
+ n.value = e, m(), d("update:select", n.value);
32
+ };
33
+ return (e, L) => {
34
+ var p;
35
+ return t(), l(v, null, [
36
+ i("div", {
37
+ onClick: h(m, ["stop"]),
38
+ class: _([e.$attrs.class, "cursor-pointer flex-nowrap flex"])
39
+ }, [
40
+ s.label ? (t(), l("div", O, [
41
+ i("span", null, r(s.label), 1)
42
+ ])) : u("", !0),
43
+ i("li", T, [
44
+ i("span", null, r(((p = n.value) == null ? void 0 : p.name) || n.value || s.placeholder), 1)
45
+ ]),
46
+ k(b, {
47
+ mode: "out-in",
48
+ name: "TransitionTranslateY"
49
+ }, {
50
+ default: g(() => [
51
+ o.value ? (t(), l("ul", {
52
+ key: 0,
53
+ class: _([e.$attrs.class, "pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])
54
+ }, [
55
+ (t(!0), l(v, null, B(y.value, (c) => (t(), l("li", {
56
+ onClick: h((j) => C(c), ["stop"])
57
+ }, [
58
+ c ? (t(), l("span", $, r(c.name || c), 1)) : u("", !0)
59
+ ], 8, V))), 256))
60
+ ], 2)) : u("", !0)
61
+ ]),
62
+ _: 1
63
+ })
64
+ ], 10, N),
65
+ k(b, {
66
+ mode: "out-in",
67
+ name: "fade"
68
+ }, {
69
+ default: g(() => [
70
+ s.validation ? (t(), l("div", z, " * " + r(s.validation.message), 1)) : u("", !0)
71
+ ]),
72
+ _: 1
73
+ })
74
+ ], 64);
75
+ };
76
+ }
77
+ }, I = /* @__PURE__ */ M(E, [["__scopeId", "data-v-dfe03dc2"]]);
2
78
  export {
3
- e as default
79
+ I as default
4
80
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Select.vue.cjs");const p=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),k=["onClick"],v={key:0,class:"t-transp mn-r-small"},f={class:"w-100"},h=["onClick"],g={key:0,class:"w-100"},B={key:0,class:"mn-t-thin invalid-feedback"},_={__name:"Select",props:{label:String,select:[String,Object],placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(l,{emit:u}){const c=u,o=l,n=e.ref(o.select),a=e.ref(!1);e.watch(()=>o.select,t=>{n.value=t});const d=e.computed(()=>o.select?o.options.filter(t=>t!==o.select):o.options),r=()=>{a.value=!a.value,c(a.value?"focus":"blur")},m=t=>{n.value=t,r(),c("update:select",n.value)};return(t,C)=>{var i;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:e.withModifiers(r,["stop"]),class:e.normalizeClass([t.$attrs.class,"cursor-pointer flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",f,[e.createElementVNode("span",null,e.toDisplayString(((i=n.value)==null?void 0:i.name)||n.value||l.placeholder),1)]),e.createVNode(e.Transition,{mode:"out-in",name:"TransitionTranslateY"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass([t.$attrs.class,"pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,s=>(e.openBlock(),e.createElementBlock("li",{onClick:e.withModifiers(E=>m(s),["stop"])},[s?(e.openBlock(),e.createElementBlock("span",g,e.toDisplayString(s.name||s),1)):e.createCommentVNode("",!0)],8,h))),256))],2)):e.createCommentVNode("",!0)]),_:1})],10,k),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[l.validation?(e.openBlock(),e.createElementBlock("div",B," * "+e.toDisplayString(l.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},y=p.default(_,[["__scopeId","data-v-dfe03dc2"]]);exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1,80 +1,4 @@
1
- import { ref as f, watch as S, computed as x, openBlock as t, createElementBlock as l, Fragment as v, createElementVNode as i, withModifiers as h, normalizeClass as _, toDisplayString as r, createCommentVNode as u, createVNode as k, Transition as b, withCtx as g, renderList as B } from "vue";
2
- import "./Select.vue.js";
3
- import M from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const N = ["onClick"], O = {
5
- key: 0,
6
- class: "t-transp mn-r-small"
7
- }, T = { class: "w-100" }, V = ["onClick"], $ = {
8
- key: 0,
9
- class: "w-100"
10
- }, z = {
11
- key: 0,
12
- class: "mn-t-thin invalid-feedback"
13
- }, E = {
14
- __name: "Select",
15
- props: {
16
- label: String,
17
- select: [String, Object],
18
- placeholder: { type: String, default: "Please select an item" },
19
- options: { type: Array, default: () => [] },
20
- validation: Boolean
21
- },
22
- emits: ["update:select", "focus", "blur"],
23
- setup(s, { emit: w }) {
24
- const d = w, a = s, n = f(a.select), o = f(!1);
25
- S(() => a.select, (e) => {
26
- n.value = e;
27
- });
28
- const y = x(() => a.select ? a.options.filter((e) => e !== a.select) : a.options), m = () => {
29
- o.value = !o.value, d(o.value ? "focus" : "blur");
30
- }, C = (e) => {
31
- n.value = e, m(), d("update:select", n.value);
32
- };
33
- return (e, L) => {
34
- var p;
35
- return t(), l(v, null, [
36
- i("div", {
37
- onClick: h(m, ["stop"]),
38
- class: _([e.$attrs.class, "cursor-pointer flex-nowrap flex"])
39
- }, [
40
- s.label ? (t(), l("div", O, [
41
- i("span", null, r(s.label), 1)
42
- ])) : u("", !0),
43
- i("li", T, [
44
- i("span", null, r(((p = n.value) == null ? void 0 : p.name) || n.value || s.placeholder), 1)
45
- ]),
46
- k(b, {
47
- mode: "out-in",
48
- name: "TransitionTranslateY"
49
- }, {
50
- default: g(() => [
51
- o.value ? (t(), l("ul", {
52
- key: 0,
53
- class: _([e.$attrs.class, "pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])
54
- }, [
55
- (t(!0), l(v, null, B(y.value, (c) => (t(), l("li", {
56
- onClick: h((j) => C(c), ["stop"])
57
- }, [
58
- c ? (t(), l("span", $, r(c.name || c), 1)) : u("", !0)
59
- ], 8, V))), 256))
60
- ], 2)) : u("", !0)
61
- ]),
62
- _: 1
63
- })
64
- ], 10, N),
65
- k(b, {
66
- mode: "out-in",
67
- name: "fade"
68
- }, {
69
- default: g(() => [
70
- s.validation ? (t(), l("div", z, " * " + r(s.validation.message), 1)) : u("", !0)
71
- ]),
72
- _: 1
73
- })
74
- ], 64);
75
- };
76
- }
77
- }, I = /* @__PURE__ */ M(E, [["__scopeId", "data-v-dfe03dc2"]]);
1
+ const e = "";
78
2
  export {
79
- I as default
3
+ e as default
80
4
  };
@@ -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");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../../../node_modules/vue3-carousel/dist/carousel.css.cjs");require("vue-i18n");require("../../../../../../node_modules/vue3-carousel/dist/carousel.es.cjs");require("../sections/SliderFeatures.vue2.cjs");const r=require("vue-router");require("../../store/auth.cjs");require("../../../middlewares/client/inputs.validation.cjs");const u={class:"cols-2-1_2 gap-small pd-small bg-white"},n=e.createElementVNode("section",{class:"w-100 desktop-only o-hidden radius-big bg-grad-main"},null,-1),s={__name:"Auth",setup(a){return e.ref(null),e.ref(null),e.ref(null),r.useRoute(),r.useRouter(),e.ref("email"),(o,c)=>{const t=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",u,[e.createVNode(t,{class:"pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center"},{default:e.withCtx(({Component:i,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{ref:"page",key:l.path,localPosition:o.localPosition},null,8,["localPosition"]))]),_:2},1024)]),_:1}),n])}}};exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");require("../../../../../../node_modules/vue3-carousel/dist/carousel.css.cjs");require("vue-i18n");require("../../../../../../node_modules/vue3-carousel/dist/carousel.es.cjs");require("../sections/SliderFeatures.vue2.cjs");const r=require("vue-router");require("../../store/auth.cjs");require("../../../middlewares/client/inputs.validation.cjs");const u={class:"cols-2-1_2 gap-small pd-small bg-white"},n=e.createElementVNode("section",{class:"w-100 desktop-only o-hidden radius-big bg-grad-main"},null,-1),s={__name:"Auth",setup(a){return e.ref(null),e.ref(null),e.ref(null),r.useRoute(),r.useRouter(),e.ref("email"),(o,c)=>{const t=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",u,[e.createVNode(t,{class:"pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center"},{default:e.withCtx(({Component:i,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{ref:"page",key:l.path,localPosition:o.localPosition},null,8,["localPosition"]))]),_:2},1024)]),_:1}),n])}}};exports.default=s;
@@ -1,7 +1,7 @@
1
1
  import { ref as e, resolveComponent as a, openBlock as o, createElementBlock as m, createVNode as t, withCtx as r, Transition as c, createBlock as p, resolveDynamicComponent as u, createElementVNode as d } from "vue";
2
2
  import "../../../../components/Tab/Tab.vue.js";
3
3
  import "../../../../components/Field/Field.vue.js";
4
- import "../../../../components/Button/Button.vue.js";
4
+ import "../../../../components/Button/Button.vue2.js";
5
5
  import "../../../../../../node_modules/vue3-carousel/dist/carousel.css.js";
6
6
  import "vue-i18n";
7
7
  import "../../../../../../node_modules/vue3-carousel/dist/carousel.es.js";
@@ -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.vue.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.vue.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.vue.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,18 +1,18 @@
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
- import v from "../../../../components/Button/Button.vue2.js";
4
+ import v from "../../../../components/Button/Button.vue.js";
5
5
  import { useRoute as k, useRouter as g } from "vue-router";
6
6
  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.vue.cjs"),u=require("vue-router"),b=require("vue-i18n"),w=require("../../localization/ResetPassword.json.cjs"),s=require("../../store/auth.cjs");require("../../store/twofa.cjs");const n=require("../../../middlewares/client/inputs.validation.cjs");require("./ResetPassword.vue2.cjs");const V={class:"t-left pd-medium"},g={class:"mn-b-small"},y={class:"mn-b-small t-transp"},N={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},q={class:"pos-relative"},E={key:0,class:"mn-b-semi radius-small o-hidden"},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;