@ozdao/prometheus-framework 0.1.72 → 0.1.74

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. package/dist/node_modules/vue-select/dist/vue-select.es.cjs +1 -1
  2. package/dist/node_modules/vue3-carousel/dist/carousel.es.cjs +1 -1
  3. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  4. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  5. package/dist/prometheus-framework/src/components/Button/Button.vue.js +224 -2
  6. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  7. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -224
  8. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  9. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
  11. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  12. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  14. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -1
  17. package/dist/prometheus-framework/src/components/Map/Map.vue2.cjs +1 -1
  18. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
  20. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  21. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
  22. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +44 -2
  25. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  26. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +2 -44
  27. package/dist/prometheus-framework/src/components/Text/Text.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/auth/auth.client.js +24 -27
  30. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
  32. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
  35. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
  37. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
  39. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +2 -2
  41. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
  43. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +2 -5
  46. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  49. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +133 -177
  51. package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/community/community.client.js +30 -33
  53. package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  56. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  58. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -1
  65. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +61 -2
  66. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -4
  67. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -61
  68. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  70. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  75. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  77. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  79. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/events/events.client.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/events/events.client.js +18 -21
  82. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  86. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
  88. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +4 -7
  90. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  92. package/dist/prometheus-framework/src/modules/globals/components/layouts/Empty.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/globals/globals.client.js +6 -9
  97. package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/icons/icons.client.js +46 -49
  101. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/icons/navigation/IconCross.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/icons/navigation/IconEdit.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/icons/socials/dribbble.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/icons/socials/facebook.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/icons/socials/facebook.vue.js +3 -3
  109. package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/icons/socials/line.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/icons/socials/linkedin.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/icons/socials/linkedin.vue.js +1 -1
  113. package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.js +3 -3
  116. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.js +3 -3
  118. package/dist/prometheus-framework/src/modules/icons/socials/vk.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/landing/landing.client.js +2 -5
  122. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  124. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/legal/legal.client.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/legal/legal.client.js +10 -14
  130. package/dist/prometheus-framework/src/modules/middlewares/middlewares.client.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/middlewares/middlewares.client.js +1 -8
  132. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
  134. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
  136. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +9 -9
  146. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Unit.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  152. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -4
  154. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  156. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  161. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -1
  163. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  165. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +1 -1
  167. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +11 -11
  169. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +58 -61
  172. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +6 -9
  174. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  178. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.js +78 -2
  180. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +2 -78
  182. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  184. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  186. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  189. package/dist/prometheus-framework/src/modules/reports/reports.client.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/reports/reports.client.js +1 -7
  191. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +1 -1
  195. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  197. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  199. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
  201. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  203. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +1 -1
  205. package/dist/prometheus-framework/src/modules/users/users.client.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/users/users.client.js +8 -11
  207. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  208. package/dist/style.css +1 -1
  209. package/package.json +1 -1
  210. package/src/modules/auth/auth.client.js +1 -1
  211. package/src/modules/backoffice/backoffice.client.js +1 -1
  212. package/src/modules/backoffice/router/backoffice.js +130 -128
  213. package/src/modules/community/community.client.js +1 -1
  214. package/src/modules/events/events.client.js +1 -1
  215. package/src/modules/gallery/gallery.client.js +1 -1
  216. package/src/modules/globals/globals.client.js +1 -1
  217. package/src/modules/icons/icons.client.js +1 -1
  218. package/src/modules/landing/landing.client.js +1 -1
  219. package/src/modules/legal/legal.client.js +1 -1
  220. package/src/modules/middlewares/middlewares.client.js +1 -1
  221. package/src/modules/organizations/organizations.client.js +1 -1
  222. package/src/modules/organizations/router/organizations.js +6 -6
  223. package/src/modules/reports/reports.client.js +1 -1
  224. package/src/modules/users/users.client.js +1 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Tab/Tab.vue2.cjs"),_=require("../../../../components/Field/Field.vue2.cjs"),w=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../components/Button/Button.vue2.cjs"),d=require("vue-router"),g=require("vue-i18n"),l=require("../../store/auth.cjs");require("../../store/twofa.cjs");const n=require("../../../middlewares/client/inputs.validation.cjs");require("./ResetPassword.vue2.cjs");const c=require("./ResetPassword.vue3.cjs"),y={class:"t-left pd-medium"},N={class:"mn-small"},b={class:"mn-small t-transp"},q={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},E={key:0,class:"mn-semi radius-small o-hidden"},S={class:"mn-small t-transp"},k={key:0,class:"mn-semi radius-small o-hidden"},C={class:"mn-small t-transp"},m={__name:"ResetPassword",setup(P){const{t}=g.useI18n({inheritLocale:!0,useScope:"local"}),i=e.ref(null),u=e.ref(null);d.useRoute();const p=d.useRouter(),a=e.ref("phone");async function f(){try{a.value==="phone"&&await n.validateInputs(i,n.validatePhone,l.state.user.phone,"Некорректный телефон"),a.value==="email"&&await n.validateInputs(u,n.validateEmail,l.state.user.email,"Некорректный email")}catch{throw new Error}try{await l.actions.resetPassword(l.state.user,a.value,"reset-password")}catch(r){throw console.log(r),new Error}}function h(){p.push({name:"Enter Code",query:{type:a.value,method:"reset-password"}})}return(r,o)=>(e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",N,e.toDisplayString(e.unref(t)("forgotPasswordTitle")),1),e.createElementVNode("p",b,e.toDisplayString(e.unref(t)("instructions")),1),e.createElementVNode("div",q,[e.createVNode(v.default,{selected:a.value,"onUpdate:selected":o[0]||(o[0]=s=>a.value=s),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",null,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="phone"?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("p",S,e.toDisplayString(e.unref(t)("smsInfo")),1),e.createVNode(w.default,{modelValue:l.state.user.phone,"onUpdate:modelValue":o[1]||(o[1]=s=>l.state.user.phone=s),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",k,[e.createElementVNode("p",C,e.toDisplayString(e.unref(t)("emailInfo")),1),e.createVNode(_.default,{field:l.state.user.email,"onUpdate:field":o[2]||(o[2]=s=>l.state.user.email=s),placeholder:e.unref(t)("emailPlaceholder"),validation:u.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])])):e.createCommentVNode("",!0)]),_:1})]),e.createVNode(V.default,{submit:f,callback:h,class:"mn-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1})]))}};typeof c.default=="function"&&c.default(m);exports.default=m;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Tab/Tab.vue.cjs"),_=require("../../../../components/Field/Field.vue2.cjs"),w=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../components/Button/Button.vue.cjs"),d=require("vue-router"),g=require("vue-i18n"),l=require("../../store/auth.cjs");require("../../store/twofa.cjs");const n=require("../../../middlewares/client/inputs.validation.cjs");require("./ResetPassword.vue2.cjs");const c=require("./ResetPassword.vue3.cjs"),y={class:"t-left pd-medium"},N={class:"mn-small"},b={class:"mn-small t-transp"},q={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},E={key:0,class:"mn-semi radius-small o-hidden"},S={class:"mn-small t-transp"},k={key:0,class:"mn-semi radius-small o-hidden"},C={class:"mn-small t-transp"},m={__name:"ResetPassword",setup(P){const{t}=g.useI18n({inheritLocale:!0,useScope:"local"}),i=e.ref(null),u=e.ref(null);d.useRoute();const p=d.useRouter(),a=e.ref("phone");async function f(){try{a.value==="phone"&&await n.validateInputs(i,n.validatePhone,l.state.user.phone,"Некорректный телефон"),a.value==="email"&&await n.validateInputs(u,n.validateEmail,l.state.user.email,"Некорректный email")}catch{throw new Error}try{await l.actions.resetPassword(l.state.user,a.value,"reset-password")}catch(r){throw console.log(r),new Error}}function h(){p.push({name:"Enter Code",query:{type:a.value,method:"reset-password"}})}return(r,o)=>(e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",N,e.toDisplayString(e.unref(t)("forgotPasswordTitle")),1),e.createElementVNode("p",b,e.toDisplayString(e.unref(t)("instructions")),1),e.createElementVNode("div",q,[e.createVNode(v.default,{selected:a.value,"onUpdate:selected":o[0]||(o[0]=s=>a.value=s),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",null,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="phone"?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("p",S,e.toDisplayString(e.unref(t)("smsInfo")),1),e.createVNode(w.default,{modelValue:l.state.user.phone,"onUpdate:modelValue":o[1]||(o[1]=s=>l.state.user.phone=s),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",k,[e.createElementVNode("p",C,e.toDisplayString(e.unref(t)("emailInfo")),1),e.createVNode(_.default,{field:l.state.user.email,"onUpdate:field":o[2]||(o[2]=s=>l.state.user.email=s),placeholder:e.unref(t)("emailPlaceholder"),validation:u.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])])):e.createCommentVNode("",!0)]),_:1})]),e.createVNode(V.default,{submit:f,callback:h,class:"mn-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1})]))}};typeof c.default=="function"&&c.default(m);exports.default=m;
@@ -1,8 +1,8 @@
1
1
  import { ref as m, openBlock as u, createElementBlock as p, createElementVNode as s, toDisplayString as r, unref as o, createVNode as i, Transition as _, withCtx as c, createCommentVNode as v, createTextVNode as P } from "vue";
2
- import k from "../../../../components/Tab/Tab.vue2.js";
2
+ import k from "../../../../components/Tab/Tab.vue.js";
3
3
  import C from "../../../../components/Field/Field.vue2.js";
4
4
  import E from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import I from "../../../../components/Button/Button.vue2.js";
5
+ import I from "../../../../components/Button/Button.vue.js";
6
6
  import { useRoute as x, useRouter as N } from "vue-router";
7
7
  import { useI18n as S } from "vue-i18n";
8
8
  import { state as a, actions as T } from "../../store/auth.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Tab/Tab.vue2.cjs"),c=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs"),p=require("vue-router"),E=require("vue-i18n"),a=require("../../store/auth.cjs"),i=require("../../../middlewares/client/inputs.validation.cjs");require("./SignIn.vue2.cjs");const m=require("./SignIn.vue3.cjs"),y={class:""},S={class:"mn-medium"},q=e.createElementVNode("br",null,null,-1),x={class:"t-semi"},P={class:"mn-big"},C={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},D={class:""},I={class:"mn-thin radius-small"},T={class:"mn-thin radius-small o-hidden"},U={class:"w-100 mn-big"},h={__name:"SignIn",setup(j){const{t:n}=E.useI18n({inheritLocale:!0,useScope:"local"}),d=e.ref(null),f=e.ref(null),u=e.ref(null);p.useRoute();const _=p.useRouter(),l=e.ref("phone");e.inject("APPLE_CLIENTID"),e.inject("APPLE_REDIRECT_URL");const v=r=>new Promise((s,o)=>{const t=document.createElement("script");t.type="text/javascript",t.src=r,t.onload=s,t.onerror=o,document.head.appendChild(t)});e.onMounted(async()=>{await v("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js")});async function w(){try{l.value==="phone"&&await i.validateInputs(d,i.validatePhone,a.state.user.phone,"Некорректный телефон"),l.value==="email"&&await i.validateInputs(u,i.validateEmail,a.state.user.email,"Некорректный email")}catch{throw new Error}a.state.user.phone=a.state.user.phone.number,await a.actions.login(a.state.user,l.value)}function V(){_.push({name:"User Profile",params:{_id:a.state.user._id},query:{afterAuth:"true"}})}return(r,s)=>{const o=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",S,[e.createTextVNode(e.toDisplayString(e.unref(n)("title"))+" ",1),q,e.createElementVNode("span",x,e.toDisplayString(e.unref(n)("subtitle")),1)]),e.createElementVNode("p",P,[e.createVNode(o,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("signup")),1)]),_:1})]),e.createElementVNode("div",C,[e.createVNode(g.default,{selected:l.value,"onUpdate:selected":s[0]||(s[0]=t=>l.value=t),tabs:[{name:e.unref(n)("phone"),value:"phone"},{name:e.unref(n)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",D,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",I,[e.createVNode(N.default,{modelValue:a.state.user.phone,"onUpdate:modelValue":s[1]||(s[1]=t=>a.state.user.phone=t),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:d.value,mode:"national",inputOptions:{placeholder:e.unref(n)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,l.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",T,[e.createVNode(c.default,{field:a.state.user.email,"onUpdate:field":s[2]||(s[2]=t=>a.state.user.email=t),placeholder:e.unref(n)("emailPlaceholder"),validation:u.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,l.value==="email"]])]),_:1})]),e.createVNode(c.default,{field:a.state.user.password,"onUpdate:field":s[3]||(s[3]=t=>a.state.user.password=t),type:"password",validation:f.value,placeholder:e.unref(n)("passwordPlaceholder"),class:"bg-grey pd-medium radius-small mn-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",U,[e.createVNode(o,{to:"/auth/reset-password",class:"underline d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("forgotPassword")),1)]),_:1})]),e.createVNode(b.default,{submit:w,callback:V,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("signin")),1)]),_:1})])}}};typeof m.default=="function"&&m.default(h);exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Tab/Tab.vue.cjs"),c=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),b=require("../../../../components/Button/Button.vue.cjs"),p=require("vue-router"),E=require("vue-i18n"),a=require("../../store/auth.cjs"),i=require("../../../middlewares/client/inputs.validation.cjs");require("./SignIn.vue2.cjs");const m=require("./SignIn.vue3.cjs"),y={class:""},S={class:"mn-medium"},x=e.createElementVNode("br",null,null,-1),P={class:"t-semi"},q={class:"mn-big"},C={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},D={class:""},I={class:"mn-thin radius-small"},T={class:"mn-thin radius-small o-hidden"},U={class:"w-100 mn-big"},h={__name:"SignIn",setup(j){const{t:n}=E.useI18n({inheritLocale:!0,useScope:"local"}),d=e.ref(null),f=e.ref(null),u=e.ref(null);p.useRoute();const _=p.useRouter(),l=e.ref("phone");e.inject("APPLE_CLIENTID"),e.inject("APPLE_REDIRECT_URL");const v=r=>new Promise((s,o)=>{const t=document.createElement("script");t.type="text/javascript",t.src=r,t.onload=s,t.onerror=o,document.head.appendChild(t)});e.onMounted(async()=>{await v("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js")});async function w(){try{l.value==="phone"&&await i.validateInputs(d,i.validatePhone,a.state.user.phone,"Некорректный телефон"),l.value==="email"&&await i.validateInputs(u,i.validateEmail,a.state.user.email,"Некорректный email")}catch{throw new Error}a.state.user.phone=a.state.user.phone.number,await a.actions.login(a.state.user,l.value)}function V(){_.push({name:"User Profile",params:{_id:a.state.user._id},query:{afterAuth:"true"}})}return(r,s)=>{const o=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",S,[e.createTextVNode(e.toDisplayString(e.unref(n)("title"))+" ",1),x,e.createElementVNode("span",P,e.toDisplayString(e.unref(n)("subtitle")),1)]),e.createElementVNode("p",q,[e.createVNode(o,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("signup")),1)]),_:1})]),e.createElementVNode("div",C,[e.createVNode(g.default,{selected:l.value,"onUpdate:selected":s[0]||(s[0]=t=>l.value=t),tabs:[{name:e.unref(n)("phone"),value:"phone"},{name:e.unref(n)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",D,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",I,[e.createVNode(N.default,{modelValue:a.state.user.phone,"onUpdate:modelValue":s[1]||(s[1]=t=>a.state.user.phone=t),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:d.value,mode:"national",inputOptions:{placeholder:e.unref(n)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,l.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",T,[e.createVNode(c.default,{field:a.state.user.email,"onUpdate:field":s[2]||(s[2]=t=>a.state.user.email=t),placeholder:e.unref(n)("emailPlaceholder"),validation:u.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,l.value==="email"]])]),_:1})]),e.createVNode(c.default,{field:a.state.user.password,"onUpdate:field":s[3]||(s[3]=t=>a.state.user.password=t),type:"password",validation:f.value,placeholder:e.unref(n)("passwordPlaceholder"),class:"bg-grey pd-medium radius-small mn-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",U,[e.createVNode(o,{to:"/auth/reset-password",class:"underline d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("forgotPassword")),1)]),_:1})]),e.createVNode(b.default,{submit:w,callback:V,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("signin")),1)]),_:1})])}}};typeof m.default=="function"&&m.default(h);exports.default=h;
@@ -1,8 +1,8 @@
1
1
  import { ref as p, inject as _, onMounted as k, resolveComponent as C, openBlock as x, createElementBlock as D, createElementVNode as i, createTextVNode as m, toDisplayString as r, unref as l, createVNode as s, withCtx as d, Transition as v, withDirectives as w, vShow as b } from "vue";
2
- import L from "../../../../components/Tab/Tab.vue2.js";
2
+ import L from "../../../../components/Tab/Tab.vue.js";
3
3
  import g from "../../../../components/Field/Field.vue2.js";
4
4
  import R from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import T from "../../../../components/Button/Button.vue2.js";
5
+ import T from "../../../../components/Button/Button.vue.js";
6
6
  import { useRoute as j, useRouter as A } from "vue-router";
7
7
  import { useI18n as N } from "vue-i18n";
8
8
  import { state as t, actions as F } from "../../store/auth.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Tab/Tab.vue2.cjs"),V=require("../../../../components/Field/Field.vue2.cjs"),g=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),w=require("../../../../components/Button/Button.vue2.cjs"),d=require("vue-router"),N=require("vue-i18n"),n=require("../../store/auth.cjs"),b=require("../../store/twofa.cjs"),s=require("../../../middlewares/client/inputs.validation.cjs");require("./SignUp.vue2.cjs");const c=require("./SignUp.vue3.cjs"),y={class:"t-left pd-medium"},S={class:"mn-small"},E={class:"mn-small t-transp"},q={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},C={class:""},D={class:"mn-semi radius-small"},x={class:"mn-small t-transp"},T={class:"mn-semi radius-small o-hidden"},k={class:"mn-small t-transp"},I={class:"w-100"},m={__name:"SignUp",setup(P){const{t}=N.useI18n({inheritLocale:!0,useScope:"local"}),i=e.ref(null),r=e.ref(null);d.useRoute();const p=d.useRouter(),a=e.ref("phone");async function h(){try{a.value==="phone"&&await s.validateInputs(i,s.validatePhone,n.state.user.phone,"Некорректный телефон"),a.value==="email"&&await s.validateInputs(r,s.validateEmail,n.state.user.email,"Некорректный email")}catch{throw new Error}try{await b.sendCode(n.state.user,"signup",a.value)}catch{throw new Error}}function f(){p.push({name:"Enter Code"})}return(u,l)=>{const _=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",S,e.toDisplayString(e.unref(t)("title")),1),e.createElementVNode("p",E,e.toDisplayString(e.unref(t)("description")),1),e.createElementVNode("div",q,[e.createVNode(v.default,{selected:a.value,"onUpdate:selected":l[0]||(l[0]=o=>a.value=o),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",C,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",D,[e.createElementVNode("p",x,e.toDisplayString(e.unref(t)("smsNotice")),1),e.createVNode(g.default,{modelValue:n.state.user.phone,"onUpdate:modelValue":l[1]||(l[1]=o=>n.state.user.phone=o),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:i.value,mode:"national",inputOptions:{placeholder:e.unref(t)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,a.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",T,[e.createElementVNode("p",k,e.toDisplayString(e.unref(t)("emailNotice")),1),e.createVNode(V.default,{field:n.state.user.email,"onUpdate:field":l[2]||(l[2]=o=>n.state.user.email=o),placeholder:e.unref(t)("emailPlaceholder"),validation:r.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,a.value==="email"]])]),_:1})]),e.createVNode(w.default,{submit:h,callback:f,class:"mn-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1}),e.createElementVNode("div",I,[e.createVNode(_,{to:"/auth/signin",class:"underline mn-medium d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("haveAccount")),1)]),_:1})])])}}};typeof c.default=="function"&&c.default(m);exports.default=m;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Tab/Tab.vue.cjs"),V=require("../../../../components/Field/Field.vue2.cjs"),g=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),w=require("../../../../components/Button/Button.vue.cjs"),d=require("vue-router"),N=require("vue-i18n"),n=require("../../store/auth.cjs"),b=require("../../store/twofa.cjs"),s=require("../../../middlewares/client/inputs.validation.cjs");require("./SignUp.vue2.cjs");const c=require("./SignUp.vue3.cjs"),y={class:"t-left pd-medium"},S={class:"mn-small"},E={class:"mn-small t-transp"},q={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},C={class:""},D={class:"mn-semi radius-small"},x={class:"mn-small t-transp"},T={class:"mn-semi radius-small o-hidden"},k={class:"mn-small t-transp"},I={class:"w-100"},m={__name:"SignUp",setup(P){const{t}=N.useI18n({inheritLocale:!0,useScope:"local"}),i=e.ref(null),r=e.ref(null);d.useRoute();const p=d.useRouter(),a=e.ref("phone");async function h(){try{a.value==="phone"&&await s.validateInputs(i,s.validatePhone,n.state.user.phone,"Некорректный телефон"),a.value==="email"&&await s.validateInputs(r,s.validateEmail,n.state.user.email,"Некорректный email")}catch{throw new Error}try{await b.sendCode(n.state.user,"signup",a.value)}catch{throw new Error}}function f(){p.push({name:"Enter Code"})}return(u,l)=>{const _=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",S,e.toDisplayString(e.unref(t)("title")),1),e.createElementVNode("p",E,e.toDisplayString(e.unref(t)("description")),1),e.createElementVNode("div",q,[e.createVNode(v.default,{selected:a.value,"onUpdate:selected":l[0]||(l[0]=o=>a.value=o),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",C,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",D,[e.createElementVNode("p",x,e.toDisplayString(e.unref(t)("smsNotice")),1),e.createVNode(g.default,{modelValue:n.state.user.phone,"onUpdate:modelValue":l[1]||(l[1]=o=>n.state.user.phone=o),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:i.value,mode:"national",inputOptions:{placeholder:e.unref(t)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,a.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",T,[e.createElementVNode("p",k,e.toDisplayString(e.unref(t)("emailNotice")),1),e.createVNode(V.default,{field:n.state.user.email,"onUpdate:field":l[2]||(l[2]=o=>n.state.user.email=o),placeholder:e.unref(t)("emailPlaceholder"),validation:r.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,a.value==="email"]])]),_:1})]),e.createVNode(w.default,{submit:h,callback:f,class:"mn-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1}),e.createElementVNode("div",I,[e.createVNode(_,{to:"/auth/signin",class:"underline mn-medium d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("haveAccount")),1)]),_:1})])])}}};typeof c.default=="function"&&c.default(m);exports.default=m;
@@ -1,8 +1,8 @@
1
1
  import { ref as d, resolveComponent as C, openBlock as E, createElementBlock as S, createElementVNode as o, toDisplayString as n, unref as t, createVNode as a, Transition as h, withCtx as m, withDirectives as f, vShow as _, createTextVNode as v } from "vue";
2
- import N from "../../../../components/Tab/Tab.vue2.js";
2
+ import N from "../../../../components/Tab/Tab.vue.js";
3
3
  import x from "../../../../components/Field/Field.vue2.js";
4
4
  import D from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import I from "../../../../components/Button/Button.vue2.js";
5
+ import I from "../../../../components/Button/Button.vue.js";
6
6
  import { useRoute as P, useRouter as U } from "vue-router";
7
7
  import { useI18n as F } from "vue-i18n";
8
8
  import { state as s } from "../../store/auth.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/src/js.cookie.cjs");const s=require("vue"),i=require("../../globals/store/globals.cjs"),d=n.default.create({baseURL:process.env.API_URL,withCredentials:!0}),t=s.reactive({code:{value:"",type:"",method:"",isSended:!1,isValid:!1}});async function c(o,a,r){return await d.post("/api/twofa/sendcode",{phone:o.phone.number,email:o.email,method:a,type:r}).then(e=>(t.code=e.data,t.code.isSended=!0,Promise.resolve(e.data)),e=>(console.log(e),i.setError(e),Promise.reject(e)))}s.watch(t,(o,a)=>{});exports.sendCode=c;exports.state=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/src/js.cookie.cjs");const s=require("vue"),d=require("../../globals/store/globals.cjs"),i=r.default.create({baseURL:process.env.API_URL,withCredentials:!0}),t=s.reactive({code:{value:"",type:"",method:"",isSended:!1,isValid:!1}});async function c(o,a,n){return await i.post("/api/twofa/sendcode",{phone:o.phone.number,email:o.email,method:a,type:n}).then(e=>(t.code=e.data,t.code.isSended=!0,Promise.resolve(e.data)),e=>(console.log(e),d.setError(e),Promise.reject(e)))}s.watch(t,(o,a)=>{});exports.sendCode=c;exports.state=t;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./router/backoffice.cjs"),t={backofficeRoutes:e.default};exports.default=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./router/backoffice.cjs");exports.backofficeRoutes=e.default;
@@ -1,7 +1,4 @@
1
- import o from "./router/backoffice.js";
2
- const e = {
3
- backofficeRoutes: o
4
- };
1
+ import { default as o } from "./router/backoffice.js";
5
2
  export {
6
- e as default
3
+ o as backofficeRoutes
7
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Backoffice.vue2.cjs");const n=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),r={},i={id:"account",class:"cols-1 gap-medium pd-medium"},a={class:"w-100"};function l(s,d){const t=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("section",i,[e.createElementVNode("div",a,[e.createVNode(t,null,{default:e.withCtx(({Component:o,route:c})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:c.path}))]),_:2},1024)]),_:1})])])}const u=n.default(r,[["render",l]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Backoffice.vue2.cjs");const n=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),r={},a={id:"account",class:"cols-1 gap-medium pd-medium"},i={class:"w-100"};function l(s,d){const t=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("section",a,[e.createElementVNode("div",i,[e.createVNode(t,null,{default:e.withCtx(({Component:o,route:c})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:c.path}))]),_:2},1024)]),_:1})])])}const u=n.default(r,[["render",l]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../mobile/components/Menu/Menu.vue.cjs"),n=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),o=require("vue-router"),i={class:""},l=e.createElementVNode("h1",{class:"mn-small"},"Your Backoffice",-1),d=e.createElementVNode("span",null," Organizations ",-1),f=e.createElementVNode("span",null," Events ",-1),c=e.createElementVNode("span",null," Community ",-1),p=e.createElementVNode("span",null," Products ",-1),m=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),k=e.createElementVNode("span",null," Payments ",-1),C=e.createElementVNode("span",null," Gallery ",-1),N=e.createElementVNode("span",null," Reports ",-1),V={__name:"Dashboard",props:{favorites:Array},setup(v){const r=o.useRoute(),s=o.useRouter();return(h,t)=>(e.openBlock(),e.createElementBlock("div",i,[l,e.createVNode(u.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[0]||(t[0]=a=>e.unref(s).push({name:"Backoffice Organizations",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(n.default,{onClick:t[1]||(t[1]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[f]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=a=>e.unref(s).push({name:"Backoffice Community",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=a=>e.unref(s).push({name:"Backoffice Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[p]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=a=>e.unref(s).push({name:"Backoffice Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=a=>e.unref(s).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[_]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=a=>e.unref(s).push({name:"Backoffice Payments",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=a=>e.unref(s).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[C]),_:1}),e.createVNode(n.default,{onClick:t[8]||(t[8]=a=>e.unref(s).push({name:"Backoffice Reports",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1})]),_:1})]))}};exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../mobile/components/Menu/Menu.vue2.cjs"),n=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),o=require("vue-router"),i={class:""},l=e.createElementVNode("h1",{class:"mn-small"},"Your Backoffice",-1),d=e.createElementVNode("span",null," Organizations ",-1),f=e.createElementVNode("span",null," Events ",-1),c=e.createElementVNode("span",null," Community ",-1),p=e.createElementVNode("span",null," Products ",-1),m=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),k=e.createElementVNode("span",null," Payments ",-1),C=e.createElementVNode("span",null," Gallery ",-1),N=e.createElementVNode("span",null," Reports ",-1),V={__name:"Dashboard",props:{favorites:Array},setup(v){const r=o.useRoute(),s=o.useRouter();return(h,t)=>(e.openBlock(),e.createElementBlock("div",i,[l,e.createVNode(u.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[0]||(t[0]=a=>e.unref(s).push({name:"Backoffice Organizations",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(n.default,{onClick:t[1]||(t[1]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[f]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=a=>e.unref(s).push({name:"Backoffice Community",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=a=>e.unref(s).push({name:"Backoffice Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[p]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=a=>e.unref(s).push({name:"Backoffice Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=a=>e.unref(s).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[_]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=a=>e.unref(s).push({name:"Backoffice Payments",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=a=>e.unref(s).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[C]),_:1}),e.createVNode(n.default,{onClick:t[8]||(t[8]=a=>e.unref(s).push({name:"Backoffice Reports",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1})]),_:1})]))}};exports.default=V;
@@ -1,5 +1,5 @@
1
1
  import { openBlock as p, createElementBlock as u, createVNode as e, withCtx as a, unref as o, createElementVNode as n } from "vue";
2
- import m from "../../../mobile/components/Menu/Menu.vue.js";
2
+ import m from "../../../mobile/components/Menu/Menu.vue2.js";
3
3
  import i from "../../../mobile/components/Menu/MenuItem.vue.js";
4
4
  import { useRoute as d, useRouter as _ } from "vue-router";
5
5
  const f = { class: "" }, c = /* @__PURE__ */ n("h1", { class: "mn-small" }, "Your Backoffice", -1), k = /* @__PURE__ */ n("span", null, " Organizations ", -1), v = /* @__PURE__ */ n("span", null, " Events ", -1), B = /* @__PURE__ */ n("span", null, " Community ", -1), C = /* @__PURE__ */ n("span", null, " Products ", -1), $ = /* @__PURE__ */ n("span", null, " Leftovers ", -1), y = /* @__PURE__ */ n("span", null, " Orders ", -1), h = /* @__PURE__ */ n("span", null, " Payments ", -1), g = /* @__PURE__ */ n("span", null, " Gallery ", -1), E = /* @__PURE__ */ n("span", null, " Reports ", -1), G = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../components/layouts/Backoffice.vue.cjs"),e=require("../../middlewares/client/auth.validation.cjs"),r=[{path:"backoffice",component:t.default,beforeEnter:[e.requiresAdmin],children:[{path:"",name:"Backoffice",meta:{title:{en:"Backoffice",ru:"Управление"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/Dashboard.vue.cjs"))},{path:"gallery",name:"Backoffice Gallery",meta:{title:{en:"Backoffice Gallery",ru:"Управление Галерей"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../gallery/components/sections/BackofficeGallery.vue.cjs"))},{path:"reports",name:"Backoffice Reports",meta:{title:{en:"Backoffice Reports",ru:"Управление Жалобами"}},component:()=>Promise.resolve().then(()=>require("../../reports/components/pages/BackofficeReports.vue.cjs"))},{path:"organizations",name:"Backoffice Organizations",meta:{title:{en:"Backoffice Organizations",ru:"Управление Организациями"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../organizations/components/pages/Organizations.vue.cjs"))},{path:"events",name:"Backoffice Events",meta:{title:{en:"Backoffice Events",ru:"Управление Событиями"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../events/components/pages/Events.vue.cjs"))},{path:"community",name:"Backoffice Community",meta:{title:{en:"Backoffice Community",ru:"Управление Сообществом"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../community/components/pages/Community.vue.cjs"))},{path:"products",name:"Backoffice Products",meta:{title:{en:"Backoffice Products",ru:"Управление Продуктами"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../products/components/pages/ProductsBackoffice.vue.cjs"))},{path:"products/add",name:"AddProduct",component:()=>Promise.resolve().then(()=>require("../../products/components/pages/ProductEdit.vue.cjs"))},{path:"products/:product",name:"Product Backofffice",meta:{title:{en:"Product",ru:"Продукт"}},component:()=>Promise.resolve().then(()=>require("../../products/components/pages/Product.vue.cjs"))},{path:"products/:product/edit",name:"ProductEdit",beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../../products/components/pages/ProductEdit.vue.cjs"))},{path:"leftovers",name:"Backoffice Leftovers",meta:{title:{en:"Backoffice Leftovers",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../products/components/pages/Leftovers.vue.cjs"))},{path:"leftovers/add",name:"LeftoverAdd",meta:{title:{en:"Backoffice Leftovers",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../products/components/pages/LeftoverAdd.vue.cjs"))},{path:"leftovers/:_id",name:"LeftoverEdit",meta:{title:{en:"Backoffice Leftovers",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../products/components/pages/LeftoverAdd.vue.cjs"))},{path:"orders",name:"Backoffice Orders",meta:{title:{en:"Backoffice Orders",ru:"Управление Заказами"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../orders/components/pages/Orders.vue.cjs"))},{path:"orders/add",name:"AdminOrder",component:()=>Promise.resolve().then(()=>require("../../orders/components/pages/EditOrder.vue.cjs"))},{path:"orders/:_id",name:"AdminOrderEdit",component:()=>Promise.resolve().then(()=>require("../../orders/components/pages/EditOrder.vue.cjs"))},{path:"payments",name:"Backoffice Payments",meta:{title:{en:"Backoffice Payments",ru:"Управление Платежами"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../payments/components/pages/Payments.vue.cjs"))}]}];exports.default=r;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../components/layouts/Backoffice.vue.cjs"),t=require("../../middlewares/client/auth.validation.cjs"),o=[{path:"backoffice",component:e.default,beforeEnter:[t.requiresAdmin],children:[{path:"",name:"Backoffice",meta:{title:{en:"Backoffice",ru:"Управление"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/Dashboard.vue.cjs"))},{path:"gallery",name:"Backoffice Gallery",meta:{title:{en:"Backoffice Gallery",ru:"Управление Галерей"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../gallery/components/sections/BackofficeGallery.vue.cjs"))},{path:"reports",name:"Backoffice Reports",meta:{title:{en:"Backoffice Reports",ru:"Управление Жалобами"}},component:()=>Promise.resolve().then(()=>require("../../reports/components/pages/BackofficeReports.vue.cjs"))}]}];exports.default=o;
@@ -1,10 +1,10 @@
1
1
  import e from "../components/layouts/Backoffice.vue.js";
2
- import { requiresAdmin as t, requiresAuth as o } from "../../middlewares/client/auth.validation.js";
3
- const i = [{
2
+ import { requiresAdmin as o } from "../../middlewares/client/auth.validation.js";
3
+ const r = [{
4
4
  path: "backoffice",
5
5
  component: e,
6
6
  beforeEnter: [
7
- t
7
+ o
8
8
  ],
9
9
  children: [
10
10
  {
@@ -50,182 +50,138 @@ const i = [{
50
50
  /* webpackChunkName: 'BackofficeGallery' */
51
51
  "../../reports/components/pages/BackofficeReports.vue.js"
52
52
  )
53
- },
54
- {
55
- path: "organizations",
56
- name: "Backoffice Organizations",
57
- meta: {
58
- title: {
59
- en: "Backoffice Organizations",
60
- ru: "Управление Организациями"
61
- },
62
- authorize: []
63
- },
64
- component: () => import(
65
- /* webpackChunkName: 'BackofficeOrganizations' */
66
- "../../organizations/components/pages/Organizations.vue.js"
67
- )
68
- },
69
- {
70
- path: "events",
71
- name: "Backoffice Events",
72
- meta: {
73
- title: {
74
- en: "Backoffice Events",
75
- ru: "Управление Событиями"
76
- },
77
- authorize: []
78
- },
79
- component: () => import(
80
- /* webpackChunkName: 'BackofficeEvents' */
81
- "../../events/components/pages/Events.vue.js"
82
- )
83
- },
84
- {
85
- path: "community",
86
- name: "Backoffice Community",
87
- meta: {
88
- title: {
89
- en: "Backoffice Community",
90
- ru: "Управление Сообществом"
91
- },
92
- authorize: []
93
- },
94
- component: () => import(
95
- /* webpackChunkName: 'BackofficeCommunity' */
96
- "../../community/components/pages/Community.vue.js"
97
- )
98
- },
99
- {
100
- path: "products",
101
- name: "Backoffice Products",
102
- meta: {
103
- title: {
104
- en: "Backoffice Products",
105
- ru: "Управление Продуктами"
106
- },
107
- authorize: []
108
- },
109
- component: () => import(
110
- /* webpackChunkName: 'BackofficeProducts' */
111
- "../../products/components/pages/ProductsBackoffice.vue.js"
112
- )
113
- },
114
- {
115
- path: "products/add",
116
- name: "AddProduct",
117
- component: () => import("../../products/components/pages/ProductEdit.vue.js")
118
- },
119
- {
120
- path: "products/:product",
121
- name: "Product Backofffice",
122
- meta: {
123
- title: {
124
- en: "Product",
125
- ru: "Продукт"
126
- }
127
- },
128
- component: () => import("../../products/components/pages/Product.vue.js")
129
- },
130
- {
131
- path: "products/:product/edit",
132
- name: "ProductEdit",
133
- beforeEnter: [o],
134
- component: () => import("../../products/components/pages/ProductEdit.vue.js")
135
- },
136
- {
137
- path: "leftovers",
138
- name: "Backoffice Leftovers",
139
- meta: {
140
- title: {
141
- en: "Backoffice Leftovers",
142
- ru: "Управление Остатками"
143
- },
144
- authorize: []
145
- },
146
- component: () => import(
147
- /* webpackChunkName: 'BackofficeLeftovers' */
148
- "../../products/components/pages/Leftovers.vue.js"
149
- )
150
- },
151
- {
152
- path: "leftovers/add",
153
- name: "LeftoverAdd",
154
- meta: {
155
- title: {
156
- en: "Backoffice Leftovers",
157
- ru: "Управление Остатками"
158
- },
159
- authorize: []
160
- },
161
- component: () => import(
162
- /* webpackChunkName: 'LeftoverEdit' */
163
- "../../products/components/pages/LeftoverAdd.vue.js"
164
- )
165
- },
166
- {
167
- path: "leftovers/:_id",
168
- name: "LeftoverEdit",
169
- meta: {
170
- title: {
171
- en: "Backoffice Leftovers",
172
- ru: "Управление Остатками"
173
- },
174
- authorize: []
175
- },
176
- component: () => import(
177
- /* webpackChunkName: 'LeftoverEdit' */
178
- "../../products/components/pages/LeftoverAdd.vue.js"
179
- )
180
- },
181
- {
182
- path: "orders",
183
- name: "Backoffice Orders",
184
- meta: {
185
- title: {
186
- en: "Backoffice Orders",
187
- ru: "Управление Заказами"
188
- },
189
- authorize: []
190
- },
191
- component: () => import(
192
- /* webpackChunkName: 'BackofficeOrders' */
193
- "../../orders/components/pages/Orders.vue.js"
194
- )
195
- },
196
- {
197
- path: "orders/add",
198
- name: "AdminOrder",
199
- component: () => import(
200
- /* webpackChunkName: 'AdminOrders' */
201
- "../../orders/components/pages/EditOrder.vue.js"
202
- )
203
- },
204
- {
205
- path: "orders/:_id",
206
- name: "AdminOrderEdit",
207
- component: () => import(
208
- /* webpackChunkName: 'AdminOrders' */
209
- "../../orders/components/pages/EditOrder.vue.js"
210
- )
211
- },
212
- {
213
- path: "payments",
214
- name: "Backoffice Payments",
215
- meta: {
216
- title: {
217
- en: "Backoffice Payments",
218
- ru: "Управление Платежами"
219
- },
220
- authorize: []
221
- },
222
- component: () => import(
223
- /* webpackChunkName: 'BackofficePayments' */
224
- "../../payments/components/pages/Payments.vue.js"
225
- )
226
53
  }
54
+ // {
55
+ // path: 'organizations',
56
+ // name: 'Backoffice Organizations',
57
+ // meta: {
58
+ // title: {
59
+ // en: 'Backoffice Organizations',
60
+ // ru: 'Управление Организациями'
61
+ // },
62
+ // authorize: []
63
+ // },
64
+ // component: () => import(/* webpackChunkName: 'BackofficeOrganizations' */ '@pf/src/modules/organizations/components/pages/Organizations.vue'),
65
+ // },{
66
+ // path: 'events',
67
+ // name: 'Backoffice Events',
68
+ // meta: {
69
+ // title: {
70
+ // en: 'Backoffice Events',
71
+ // ru: 'Управление Событиями'
72
+ // },
73
+ // authorize: []
74
+ // },
75
+ // component: () => import(/* webpackChunkName: 'BackofficeEvents' */ '@pf/src/modules/events/components/pages/Events.vue'),
76
+ // },{
77
+ // path: 'community',
78
+ // name: 'Backoffice Community',
79
+ // meta: {
80
+ // title: {
81
+ // en: 'Backoffice Community',
82
+ // ru: 'Управление Сообществом'
83
+ // },
84
+ // authorize: []
85
+ // },
86
+ // component: () => import(/* webpackChunkName: 'BackofficeCommunity' */ '@pf/src/modules/community/components/pages/Community.vue'),
87
+ // },{
88
+ // path: 'products',
89
+ // name: 'Backoffice Products',
90
+ // meta: {
91
+ // title: {
92
+ // en: 'Backoffice Products',
93
+ // ru: 'Управление Продуктами'
94
+ // },
95
+ // authorize: []
96
+ // },
97
+ // component: () => import(/* webpackChunkName: 'BackofficeProducts' */ '@pf/src/modules/products/components/pages/ProductsBackoffice.vue'),
98
+ // },{
99
+ // path: 'products/add',
100
+ // name: 'AddProduct',
101
+ // component: () => import('@pf/src/modules/products/components/pages/ProductEdit.vue')
102
+ // },{
103
+ // path: 'products/:product',
104
+ // name: 'Product Backofffice',
105
+ // meta: {
106
+ // title: {
107
+ // en: 'Product',
108
+ // ru: 'Продукт'
109
+ // }
110
+ // },
111
+ // component: () => import('@pf/src/modules/products/components/pages/Product.vue')
112
+ // }, {
113
+ // path: 'products/:product/edit',
114
+ // name: 'ProductEdit',
115
+ // beforeEnter: [validationAuth.requiresAuth],
116
+ // component: () => import('@pf/src/modules/products/components/pages/ProductEdit.vue')
117
+ // },{
118
+ // path: 'leftovers',
119
+ // name: 'Backoffice Leftovers',
120
+ // meta: {
121
+ // title: {
122
+ // en: 'Backoffice Leftovers',
123
+ // ru: 'Управление Остатками'
124
+ // },
125
+ // authorize: []
126
+ // },
127
+ // component: () => import(/* webpackChunkName: 'BackofficeLeftovers' */ '@pf/src/modules/products/components/pages/Leftovers.vue'),
128
+ // },{
129
+ // path: 'leftovers/add',
130
+ // name: 'LeftoverAdd',
131
+ // meta: {
132
+ // title: {
133
+ // en: 'Backoffice Leftovers',
134
+ // ru: 'Управление Остатками'
135
+ // },
136
+ // authorize: []
137
+ // },
138
+ // component: () => import(/* webpackChunkName: 'LeftoverEdit' */ '@pf/src/modules/products/components/pages/LeftoverAdd.vue')
139
+ // },
140
+ // {
141
+ // path: 'leftovers/:_id',
142
+ // name: 'LeftoverEdit',
143
+ // meta: {
144
+ // title: {
145
+ // en: 'Backoffice Leftovers',
146
+ // ru: 'Управление Остатками'
147
+ // },
148
+ // authorize: []
149
+ // },
150
+ // component: () => import(/* webpackChunkName: 'LeftoverEdit' */ '@pf/src/modules/products/components/pages/LeftoverAdd.vue')
151
+ // },
152
+ // {
153
+ // path: 'orders',
154
+ // name: 'Backoffice Orders',
155
+ // meta: {
156
+ // title: {
157
+ // en: 'Backoffice Orders',
158
+ // ru: 'Управление Заказами'
159
+ // },
160
+ // authorize: []
161
+ // },
162
+ // component: () => import(/* webpackChunkName: 'BackofficeOrders' */ '@pf/src/modules/orders/components/pages/Orders.vue'),
163
+ // },{
164
+ // path: 'orders/add',
165
+ // name: 'AdminOrder',
166
+ // component: () => import(/* webpackChunkName: 'AdminOrders' */ '@pf/src/modules/orders/components/pages/EditOrder.vue')
167
+ // },{
168
+ // path: 'orders/:_id',
169
+ // name: 'AdminOrderEdit',
170
+ // component: () => import(/* webpackChunkName: 'AdminOrders' */ '@pf/src/modules/orders/components/pages/EditOrder.vue')
171
+ // },{
172
+ // path: 'payments',
173
+ // name: 'Backoffice Payments',
174
+ // meta: {
175
+ // title: {
176
+ // en: 'Backoffice Payments',
177
+ // ru: 'Управление Платежами'
178
+ // },
179
+ // authorize: []
180
+ // },
181
+ // component: () => import(/* webpackChunkName: 'BackofficePayments' */ '@pf/src/modules/payments/components/pages/Payments.vue'),
182
+ // }
227
183
  ]
228
184
  }];
229
185
  export {
230
- i as default
186
+ r as default
231
187
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./components/layouts/Community.vue.cjs"),t=require("./components/pages/CreateBlogPost.vue.cjs"),o=require("./components/pages/BlogPost.vue.cjs"),s=require("./components/pages/Blog.vue.cjs"),r=require("./components/blocks/FooterBlogpost.vue.cjs"),u=require("./components/blocks/Activity.vue.cjs"),l=require("./components/blocks/CardBlogpost.vue.cjs"),i=require("./components/sections/Feed.vue.cjs"),n=require("./components/sections/SubscribeNewsletter.vue.cjs"),c=require("./components/sections/JoinUs.vue.cjs"),a=require("./components/sections/Comments.vue.cjs"),d=require("./components/sections/HotPosts.vue.cjs"),g=require("./store/blogposts.cjs"),f=require("./store/reactions.cjs"),q=require("./router/blogposts.cjs"),m={Community:e.default,CreateBlogPost:t.default,BlogPost:o.default,Blog:s.default,FooterBlogpost:r.default,Activity:u.default,CardBlogpost:l.default,Feed:i.default,SubscribeNewsletter:n.default,JoinUs:c.default,Comments:a.default,HotPosts:d.default,blogpostsStore:g,reactionsStore:f,blogpostsRoutes:q.default};exports.default=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/layouts/Community.vue.cjs"),t=require("./components/pages/CreateBlogPost.vue.cjs"),o=require("./components/pages/BlogPost.vue.cjs"),r=require("./components/pages/Blog.vue.cjs"),s=require("./components/blocks/FooterBlogpost.vue.cjs"),u=require("./components/blocks/Activity.vue.cjs"),l=require("./components/blocks/CardBlogpost.vue.cjs"),i=require("./components/sections/Feed.vue.cjs"),n=require("./components/sections/SubscribeNewsletter.vue.cjs"),c=require("./components/sections/JoinUs.vue.cjs"),a=require("./components/sections/Comments.vue.cjs"),d=require("./components/sections/HotPosts.vue.cjs"),g=require("./store/blogposts.cjs"),q=require("./store/reactions.cjs"),f=require("./router/blogposts.cjs");exports.Community=e.default;exports.CreateBlogPost=t.default;exports.BlogPost=o.default;exports.Blog=r.default;exports.FooterBlogpost=s.default;exports.Activity=u.default;exports.CardBlogpost=l.default;exports.Feed=i.default;exports.SubscribeNewsletter=n.default;exports.JoinUs=c.default;exports.Comments=a.default;exports.HotPosts=d.default;exports.blogpostsStore=g;exports.reactionsStore=q;exports.blogpostsRoutes=f.default;
@@ -1,35 +1,32 @@
1
- import o from "./components/layouts/Community.vue.js";
2
- import m from "./components/pages/CreateBlogPost.vue.js";
3
- import t from "./components/pages/BlogPost.vue.js";
4
- import r from "./components/pages/Blog.vue.js";
5
- import i from "./components/blocks/FooterBlogpost.vue.js";
6
- import s from "./components/blocks/Activity.vue.js";
7
- import f from "./components/blocks/CardBlogpost.vue.js";
8
- import _ from "./components/sections/Feed.vue.js";
9
- import p from "./components/sections/SubscribeNewsletter.vue.js";
10
- import a from "./components/sections/JoinUs.vue.js";
11
- import n from "./components/sections/Comments.vue.js";
12
- import c from "./components/sections/HotPosts.vue.js";
13
- import * as e from "./store/blogposts.js";
14
- import * as l from "./store/reactions.js";
15
- import $ from "./router/blogposts.js";
16
- const A = {
17
- Community: o,
18
- CreateBlogPost: m,
19
- BlogPost: t,
20
- Blog: r,
21
- FooterBlogpost: i,
22
- Activity: s,
23
- CardBlogpost: f,
24
- Feed: _,
25
- SubscribeNewsletter: p,
26
- JoinUs: a,
27
- Comments: n,
28
- HotPosts: c,
29
- blogpostsStore: e,
30
- reactionsStore: l,
31
- blogpostsRoutes: $
32
- };
1
+ import { default as s } from "./components/layouts/Community.vue.js";
2
+ import { default as f } from "./components/pages/CreateBlogPost.vue.js";
3
+ import { default as p } from "./components/pages/BlogPost.vue.js";
4
+ import { default as u } from "./components/pages/Blog.vue.js";
5
+ import { default as x } from "./components/blocks/FooterBlogpost.vue.js";
6
+ import { default as g } from "./components/blocks/Activity.vue.js";
7
+ import { default as n } from "./components/blocks/CardBlogpost.vue.js";
8
+ import { default as c } from "./components/sections/Feed.vue.js";
9
+ import { default as P } from "./components/sections/SubscribeNewsletter.vue.js";
10
+ import { default as y } from "./components/sections/JoinUs.vue.js";
11
+ import { default as v } from "./components/sections/Comments.vue.js";
12
+ import { default as A } from "./components/sections/HotPosts.vue.js";
13
+ import * as o from "./store/blogposts.js";
14
+ import * as t from "./store/reactions.js";
15
+ import { default as J } from "./router/blogposts.js";
33
16
  export {
34
- A as default
17
+ g as Activity,
18
+ u as Blog,
19
+ p as BlogPost,
20
+ n as CardBlogpost,
21
+ v as Comments,
22
+ s as Community,
23
+ f as CreateBlogPost,
24
+ c as Feed,
25
+ x as FooterBlogpost,
26
+ A as HotPosts,
27
+ y as JoinUs,
28
+ P as SubscribeNewsletter,
29
+ J as blogpostsRoutes,
30
+ o as blogpostsStore,
31
+ t as reactionsStore
35
32
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("vue-router");const i=require("../../store/reactions.cjs"),p={class:"t-semi br-top-dark flex-nowrap flex-nojustify flex"},m=e.createElementVNode("span",{class:"mn-r-small mn-l-small d-block"},"·",-1),g={class:"cursor-pointer"},f=e.createElementVNode("span",{class:"mn-r-small mn-l-small d-block"},"·",-1),v={__name:"FooterBlogpost",props:["blogpost","owner","user"],setup(l){const o=l,r=e.ref(o.blogpost.numberOfReactions),a=e.ref(o.blogpost.isReacted),s=e.ref(o.blogpost.reactionId);async function u(c){if(!o.user){alert("Please login to add a reaction");return}try{const t={target:o.blogpost._id,type:"blogpost",user:o.user,class:"like"},n=await i.actions.create(t);n.reaction.class==="like"&&(r.value+=1,a.value=!0,s.value=n.reaction._id)}catch(t){console.error(t),alert("Error adding reaction. Please try again later.")}}async function d(c){if(!o.user){alert("Please login to add a reaction");return}try{const t={_id:s.value};await i.actions.delete(t),r.value-=1,a.value=!1,s.value=null}catch{alert("Error adding reaction. Please try again later.")}}return(c,t)=>(e.openBlock(),e.createElementBlock("footer",p,[e.createTextVNode(" 👁️ "+e.toDisplayString(l.blogpost.views)+" ",1),m,e.createElementVNode("div",g,[a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"cursor-pointer",onClick:t[0]||(t[0]=n=>u())}," 👍 "+e.toDisplayString(r.value),1)),a.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cursor-pointer",onClick:t[1]||(t[1]=n=>d())}," 👍 "+e.toDisplayString(r.value),1)):e.createCommentVNode("",!0)]),f,e.createTextVNode(" 💬 "+e.toDisplayString(l.blogpost.numberOfComments),1)]))}};exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("vue-router");const i=require("../../store/reactions.cjs"),p={class:"t-semi br-top-dark flex-nowrap flex-nojustify flex"},m=e.createElementVNode("span",{class:"mn-r-small mn-l-small d-block"},"·",-1),g={class:"cursor-pointer"},v=e.createElementVNode("span",{class:"mn-r-small mn-l-small d-block"},"·",-1),f={__name:"FooterBlogpost",props:["blogpost","owner","user"],setup(l){const o=l,r=e.ref(o.blogpost.numberOfReactions),a=e.ref(o.blogpost.isReacted),s=e.ref(o.blogpost.reactionId);async function u(c){if(!o.user){alert("Please login to add a reaction");return}try{const t={target:o.blogpost._id,type:"blogpost",user:o.user,class:"like"},n=await i.actions.create(t);n.reaction.class==="like"&&(r.value+=1,a.value=!0,s.value=n.reaction._id)}catch(t){console.error(t),alert("Error adding reaction. Please try again later.")}}async function d(c){if(!o.user){alert("Please login to add a reaction");return}try{const t={_id:s.value};await i.actions.delete(t),r.value-=1,a.value=!1,s.value=null}catch{alert("Error adding reaction. Please try again later.")}}return(c,t)=>(e.openBlock(),e.createElementBlock("footer",p,[e.createTextVNode(" 👁️ "+e.toDisplayString(l.blogpost.views)+" ",1),m,e.createElementVNode("div",g,[a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"cursor-pointer",onClick:t[0]||(t[0]=n=>u())}," 👍 "+e.toDisplayString(r.value),1)),a.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cursor-pointer",onClick:t[1]||(t[1]=n=>d())}," 👍 "+e.toDisplayString(r.value),1)):e.createCommentVNode("",!0)]),v,e.createTextVNode(" 💬 "+e.toDisplayString(l.blogpost.numberOfComments),1)]))}};exports.default=f;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),u=require("../../../../components/Select/Select.vue2.cjs"),a=require("../../store/blogposts.cjs"),c=require("../../../auth/store/auth.cjs"),m={class:"min-h-100vh pd-thin"},d={class:"mn-thin flex-v-center t-left flex-nowrap flex"},p={class:"flex-v-center flex-nowrap flex t-left"},f=e.createElementVNode("span",{class:""},"Topics for ",-1),g={class:"w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex"},h={class:""},w={__name:"Community",setup(k){const l=n.useRoute(),r=n.useRouter();return(y,t)=>{const s=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",d,[e.createElementVNode("h2",p,[f,e.createVNode(u.default,{options:["today","week","month","year"],select:a.state.filter.period,"onUpdate:select":t[0]||(t[0]=o=>a.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",g,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="featured"},"t-medium pd-thin radius-small"]),onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="popular"},"t-medium pd-thin radius-small"]),onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="new"},"t-medium pd-thin radius-small"]),onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),c.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="following"},"t-medium pd-thin radius-small"]),onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",h,[e.createVNode(s,null,{default:e.withCtx(({Component:o,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:i.query}))]),_:2},1024)]),_:1})])])}}};exports.default=w;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),u=require("../../../../components/Select/Select.vue.cjs"),a=require("../../store/blogposts.cjs"),c=require("../../../auth/store/auth.cjs"),m={class:"min-h-100vh pd-thin"},d={class:"mn-thin flex-v-center t-left flex-nowrap flex"},p={class:"flex-v-center flex-nowrap flex t-left"},f=e.createElementVNode("span",{class:""},"Topics for ",-1),g={class:"w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex"},h={class:""},w={__name:"Community",setup(k){const l=n.useRoute(),r=n.useRouter();return(y,t)=>{const s=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",d,[e.createElementVNode("h2",p,[f,e.createVNode(u.default,{options:["today","week","month","year"],select:a.state.filter.period,"onUpdate:select":t[0]||(t[0]=o=>a.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",g,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="featured"},"t-medium pd-thin radius-small"]),onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="popular"},"t-medium pd-thin radius-small"]),onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="new"},"t-medium pd-thin radius-small"]),onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),c.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="following"},"t-medium pd-thin radius-small"]),onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",h,[e.createVNode(s,null,{default:e.withCtx(({Component:o,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:i.query}))]),_:2},1024)]),_:1})])])}}};exports.default=w;