@ozdao/prometheus-framework 0.2.89 → 0.2.91

Sign up to get free protection for your applications and to get access to all the features.
Files changed (182) hide show
  1. package/dist/auth.server.js +1 -0
  2. package/dist/auth.server.mjs +1 -0
  3. package/dist/main-BQisDfLk.js +92 -0
  4. package/dist/main-BV1Yv9Hy.js +92 -0
  5. package/dist/main-DTlUA63C.mjs +13617 -0
  6. package/dist/main-DmNP-t33.mjs +13625 -0
  7. package/dist/main.css +1 -1
  8. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
  9. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +748 -750
  10. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs +1 -1
  11. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +40 -39
  12. package/dist/node_modules/web3/lib/esm/index.cjs +1 -1
  13. package/dist/node_modules/web3/lib/esm/index.js +42 -41
  14. package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
  15. package/dist/node_modules/web3/lib/esm/version.js +1 -1
  16. package/dist/node_modules/web3-eth/lib/esm/schemas.cjs +1 -1
  17. package/dist/node_modules/web3-eth/lib/esm/schemas.js +113 -88
  18. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +3 -1
  19. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +242 -217
  20. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
  21. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +43 -37
  22. package/dist/node_modules/web3-eth-ens/lib/esm/config.cjs +1 -1
  23. package/dist/node_modules/web3-eth-ens/lib/esm/config.js +3 -1
  24. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  25. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +34 -13
  26. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
  27. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +48 -36
  28. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +1 -1
  29. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +2 -2
  30. package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
  31. package/dist/node_modules/web3-utils/lib/esm/converters.js +52 -50
  32. package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +1 -1
  33. package/dist/node_modules/web3-utils/lib/esm/uint8array.js +13 -13
  34. package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
  35. package/dist/node_modules/web3-validator/lib/esm/utils.js +76 -87
  36. package/dist/node_modules/web3-validator/lib/esm/validator.cjs +1 -1
  37. package/dist/node_modules/web3-validator/lib/esm/validator.js +49 -47
  38. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -1
  39. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +168 -158
  40. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/components/Button/Button.vue.js +94 -1
  42. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  43. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +1 -102
  44. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -1
  46. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  47. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +1 -84
  48. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  50. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +17 -16
  52. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +73 -1
  54. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  55. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -73
  56. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +9 -8
  58. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  60. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
  62. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
  64. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +28 -29
  66. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +65 -65
  68. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +38 -39
  70. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/auth/store/auth.js +35 -37
  72. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +3 -3
  74. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  76. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +11 -10
  78. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  80. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  82. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  84. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +2 -2
  86. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  88. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  90. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +3 -3
  92. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  94. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
  96. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  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 +4 -3
  100. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +6 -5
  102. package/dist/prometheus-framework/src/modules/middlewares/client/inputs.validation.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/middlewares/client/inputs.validation.js +10 -13
  104. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +13 -1
  106. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
  108. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +3 -3
  110. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
  112. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  114. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  116. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  118. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  120. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  122. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  124. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  128. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +6 -5
  130. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  132. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +6 -5
  134. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  136. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  138. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  142. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  144. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  146. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  148. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +20 -25
  150. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  152. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  154. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +8 -7
  156. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  160. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +6 -5
  162. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
  164. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +5 -4
  166. package/dist/prometheus-framework.cjs.js +1 -1
  167. package/dist/prometheus-framework.es.js +1 -1
  168. package/dist/style.css +1 -1
  169. package/dist/web-Bk_OtXgv.js +1 -0
  170. package/dist/web-CXzcKdk4.mjs +54 -0
  171. package/dist/web-D9Cfcy5k.js +1 -0
  172. package/dist/web-VFuzUsNl.mjs +54 -0
  173. package/package.json +1 -1
  174. package/src/components/Button/Button.vue +5 -8
  175. package/src/components/FieldPhone/FieldPhone.vue +4 -0
  176. package/src/modules/auth/components/pages/ResetPassword.vue +1 -1
  177. package/src/modules/auth/components/pages/SignIn.vue +3 -3
  178. package/src/modules/auth/components/pages/SignUp.vue +1 -1
  179. package/src/modules/auth/controllers/auth.controller.js +1 -0
  180. package/src/modules/auth/store/auth.js +3 -5
  181. package/src/modules/auth/store/twofa.js +1 -1
  182. package/src/modules/middlewares/client/inputs.validation.js +0 -13
@@ -1,73 +1 @@
1
- import { watch as v, openBlock as s, createBlock as l, Transition as a, withCtx as i, Teleport as y, createElementBlock as P, createVNode as p, createElementVNode as n, mergeProps as k, toDisplayString as g, renderSlot as C, normalizeClass as T, createCommentVNode as u } from "vue";
2
- import { useRoute as b, useRouter as x } from "vue-router";
3
- import { useI18n as O } from "vue-i18n";
4
- import $ from "../../modules/icons/navigation/IconCross.vue.js";
5
- import "./Popup.vue.js";
6
- const z = {
7
- key: "popup-content",
8
- class: "pd-small popup-wrapper"
9
- }, B = { class: "mn-b-small" }, I = {
10
- __name: "Popup",
11
- props: {
12
- isPopupOpen: {
13
- type: Boolean,
14
- default: !1
15
- },
16
- style: String,
17
- title: String
18
- },
19
- emits: ["close-popup"],
20
- setup(e, { emit: c }) {
21
- const m = e, d = c;
22
- function r() {
23
- d("close-popup");
24
- }
25
- return v(() => m.isPopupOpen, (t) => {
26
- t ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
27
- }), b(), x(), O({
28
- messages: {
29
- en: {},
30
- ru: {}
31
- }
32
- }), (t, o) => (s(), l(a, {
33
- name: "TransitionTranslateY",
34
- appear: ""
35
- }, {
36
- default: i(() => [
37
- e.isPopupOpen ? (s(), l(y, {
38
- key: 0,
39
- to: "body"
40
- }, [
41
- e.isPopupOpen ? (s(), P("div", z, [
42
- p(a, {
43
- name: "TransitionTranslateY",
44
- mode: "out-in"
45
- }, {
46
- default: i(() => [
47
- n("section", k({ class: "pos-relative z-index-4" }, t.$attrs, {
48
- class: t.$attrs.class
49
- }), [
50
- n("h4", B, g(e.title), 1),
51
- p($, {
52
- onClick: o[0] || (o[0] = (f) => r()),
53
- class: "cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"
54
- }),
55
- C(t.$slots, "default")
56
- ], 16)
57
- ]),
58
- _: 3
59
- }),
60
- n("div", {
61
- onClick: o[1] || (o[1] = (f) => r()),
62
- class: T([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
63
- }, null, 2)
64
- ])) : u("", !0)
65
- ])) : u("", !0)
66
- ]),
67
- _: 3
68
- }));
69
- }
70
- };
71
- export {
72
- I as default
73
- };
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");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("vue-i18n");require("../sections/SliderFeatures.vue2.cjs");const r=require("vue-router");require("../../store/auth.cjs");require("../../../middlewares/client/inputs.validation.cjs");const n={class:"cols-2-1_2 gap-small pd-small bg-white"},u=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",n,[e.createVNode(t,{class:"pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center"},{default:e.withCtx(({Component:l,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{ref:"page",key:i.path,localPosition:o.localPosition},null,8,["localPosition"]))]),_:2},1024)]),_:1}),u])}}};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.vue2.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");require("vue-i18n");require("../sections/SliderFeatures.vue2.cjs");const r=require("vue-router");require("../../store/auth.cjs");require("../../../middlewares/client/inputs.validation.cjs");const n={class:"cols-2-1_2 gap-small pd-small bg-white"},u=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",n,[e.createVNode(t,{class:"pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center"},{default:e.withCtx(({Component:l,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{ref:"page",key:i.path,localPosition:o.localPosition},null,8,["localPosition"]))]),_:2},1024)]),_:1}),u])}}};exports.default=s;
@@ -1,19 +1,20 @@
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
- import "../../../../components/Field/Field.vue.js";
4
- import "../../../../components/Button/Button.vue.js";
3
+ import "../../../../components/Field/Field.vue2.js";
4
+ import "../../../../components/Loader/Loader.vue.js";
5
+ import "../../../../components/Button/Button.vue2.js";
5
6
  import "vue-i18n";
6
7
  import "../sections/SliderFeatures.vue2.js";
7
8
  import { useRoute as _, useRouter as f } from "vue-router";
8
9
  import "../../store/auth.js";
9
10
  import "../../../middlewares/client/inputs.validation.js";
10
- const g = { class: "cols-2-1_2 gap-small pd-small bg-white" }, h = /* @__PURE__ */ d("section", { class: "w-100 desktop-only o-hidden radius-big bg-grad-main" }, null, -1), R = {
11
+ const g = { class: "cols-2-1_2 gap-small pd-small bg-white" }, h = /* @__PURE__ */ d("section", { class: "w-100 desktop-only o-hidden radius-big bg-grad-main" }, null, -1), V = {
11
12
  __name: "Auth",
12
13
  setup(b) {
13
- return e(null), e(null), e(null), _(), f(), e("email"), (l, w) => {
14
- const i = a("router-view");
14
+ return e(null), e(null), e(null), _(), f(), e("email"), (i, w) => {
15
+ const l = a("router-view");
15
16
  return o(), m("div", g, [
16
- t(i, { class: "pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center" }, {
17
+ t(l, { class: "pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center" }, {
17
18
  default: r(({ Component: n, route: s }) => [
18
19
  t(c, {
19
20
  name: "scaleIn",
@@ -23,7 +24,7 @@ const g = { class: "cols-2-1_2 gap-small pd-small bg-white" }, h = /* @__PURE__
23
24
  (o(), p(u(n), {
24
25
  ref: "page",
25
26
  key: s.path,
26
- localPosition: l.localPosition
27
+ localPosition: i.localPosition
27
28
  }, null, 8, ["localPosition"]))
28
29
  ]),
29
30
  _: 2
@@ -37,5 +38,5 @@ const g = { class: "cols-2-1_2 gap-small pd-small bg-white" }, h = /* @__PURE__
37
38
  }
38
39
  };
39
40
  export {
40
- R as default
41
+ V as default
41
42
  };
@@ -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"),w=require("vue-i18n"),E=require("../../store/auth.cjs"),p=require("../../store/twofa.cjs"),y=require("../../../globals/store/globals.cjs"),S=require("../../localization/EnterCode.json.cjs"),q={class:"t-center pd-medium"},D={class:"mn-b-medium"},I={class:"mn-b-big t-transp"},k={class:"w-100 mn-b-big flex-nowrap flex"},C={key:1},N={__name:"EnterCode",setup(V){const g=f.useRoute(),c=f.useRouter(),{t:d}=w.useI18n({useScope:"global",...S.default}),o=n.reactive({digits:["","","",""],error:null});n.watch(()=>o.digits[0],s=>{if(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 m=n.ref(null),i=n.ref(0);async function v(){try{await p.sendCode(E.state.user,g.query.method,g.query.type),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():m.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(""),b=p.state.code.code.toString();r===b?(p.state.code.isValid=!0,c.push({path:"/auth/enter-password",query:{type:p.state.code.type,method:g.query.method}})):(y.setError({response:{data:{errorCode:"WRONG_CODE"}}}),m.value.focus(),o.digits=["","","",""])}};return(s,e)=>(n.openBlock(),n.createElementBlock("section",q,[n.createElementVNode("h3",D,n.toDisplayString(n.unref(d)("verifyNumberTitle")),1),n.createElementVNode("p",I,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:m,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:v,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.vue2.cjs");const f=require("vue-router"),w=require("vue-i18n"),E=require("../../store/auth.cjs"),p=require("../../store/twofa.cjs"),y=require("../../../globals/store/globals.cjs"),S=require("../../localization/EnterCode.json.cjs"),q={class:"t-center pd-medium"},D={class:"mn-b-medium"},I={class:"mn-b-big t-transp"},k={class:"w-100 mn-b-big flex-nowrap flex"},C={key:1},N={__name:"EnterCode",setup(V){const g=f.useRoute(),c=f.useRouter(),{t:d}=w.useI18n({useScope:"global",...S.default}),o=n.reactive({digits:["","","",""],error:null});n.watch(()=>o.digits[0],s=>{if(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 m=n.ref(null),i=n.ref(0);async function v(){try{await p.sendCode(E.state.user,g.query.method,g.query.type),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():m.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(""),b=p.state.code.code.toString();r===b?(p.state.code.isValid=!0,c.push({path:"/auth/enter-password",query:{type:p.state.code.type,method:g.query.method}})):(y.setError({response:{data:{errorCode:"WRONG_CODE"}}}),m.value.focus(),o.digits=["","","",""])}};return(s,e)=>(n.openBlock(),n.createElementBlock("section",q,[n.createElementVNode("h3",D,n.toDisplayString(n.unref(d)("verifyNumberTitle")),1),n.createElementVNode("p",I,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:m,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:v,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,5 +1,5 @@
1
1
  import { reactive as P, watch as D, ref as c, openBlock as b, createElementBlock as w, createElementVNode as r, toDisplayString as d, unref as m, withDirectives as g, vModelText as f } from "vue";
2
- import "../../../../components/Field/Field.vue.js";
2
+ import "../../../../components/Field/Field.vue2.js";
3
3
  import { useRoute as q, useRouter as $ } from "vue-router";
4
4
  import { useI18n as K } from "vue-i18n";
5
5
  import { state as N } from "../../store/auth.js";
@@ -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"),i=require("vue-router"),h=require("vue-i18n"),t=require("../../store/auth.cjs"),d=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"},b={key:1,class:"mn-b-semi t-transp"},k={class:"mn-b-semi radius-small o-hidden"},q={key:2,class:"p-medium t-semi mn-b-semi"},B=e.createElementVNode("a",{class:"t-second",href:"/legal/eula",target:"_blank",rel:"noopener noreferrer"},"End User License Agreement (EULA)",-1),E={key:0},P={key:1},v={__name:"EnterPassword",setup(S){const n=e.ref(null),{t:s}=h.useI18n({useScope:"global",...w.default}),r=i.useRoute(),u=i.useRouter();e.ref("phone");async function c(){try{await d.validateInputs(n,d.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",b,e.toDisplayString(e.unref(s)("registrationPasswordPrompt")),1)),e.createElementVNode("div",k,[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",q,[e.createTextVNode(" By registering, you agree to our "),B])):e.createCommentVNode("",!0),e.createVNode(f.default,{submit:c,callback:p,class:"w-100 bg-main 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
+ "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.vue.cjs"),f=require("../../../../components/Button/Button.vue.cjs"),i=require("vue-router"),h=require("vue-i18n"),t=require("../../store/auth.cjs"),d=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"},b={key:1,class:"mn-b-semi t-transp"},k={class:"mn-b-semi radius-small o-hidden"},q={key:2,class:"p-medium t-semi mn-b-semi"},B=e.createElementVNode("a",{class:"t-second",href:"/legal/eula",target:"_blank",rel:"noopener noreferrer"},"End User License Agreement (EULA)",-1),E={key:0},P={key:1},v={__name:"EnterPassword",setup(S){const n=e.ref(null),{t:s}=h.useI18n({useScope:"global",...w.default}),r=i.useRoute(),u=i.useRouter();e.ref("phone");async function c(){try{await d.validateInputs(n,d.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",b,e.toDisplayString(e.unref(s)("registrationPasswordPrompt")),1)),e.createElementVNode("div",k,[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",q,[e.createTextVNode(" By registering, you agree to our "),B])):e.createCommentVNode("",!0),e.createVNode(f.default,{submit:c,callback:p,class:"w-100 bg-main 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,7 +1,7 @@
1
1
  import { ref as u, openBlock as o, createElementBlock as a, createElementVNode as p, 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
- import c from "../../../../components/Field/Field.vue2.js";
4
- import k from "../../../../components/Button/Button.vue2.js";
3
+ import c from "../../../../components/Field/Field.vue.js";
4
+ import k from "../../../../components/Button/Button.vue.js";
5
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 f } from "../../store/auth.js";
@@ -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 d=require("../../../../components/Field/Field.vue2.cjs"),w=require("../../../../components/Button/Button.vue2.cjs"),u=require("vue-router"),t=require("../../store/auth.cjs"),f=require("../../../organizations/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-b-small"},"You have been invited to the organization",-1),b=e.createElementVNode("p",{class:"mn-b-semi t-transp"},"Please provide a password to complete the registration.",-1),y={class:"mn-b-semi radius-small o-hidden"},q=e.createElementVNode("span",null,"Join",-1),g={__name:"Invite",async setup(V){let i,n;const l=e.ref(null),a=u.useRoute(),p=u.useRouter();[i,n]=e.withAsyncContext(()=>f.actions.readOne(a.query.inviteCode)),await i,n();async function m(){try{await c.validateInputs(l,c.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}try{await t.actions.signup(t.state.user,a.query.type,a.query.inviteCode)}catch(r){console.log(r)}}function _(){p.push({name:"User Profile",params:{_id:t.state.user._id},query:{afterAuth:"true"}})}return(r,s)=>(e.openBlock(),e.createElementBlock("section",h,[v,b,e.createElementVNode("div",y,[e.createVNode(d.default,{field:t.state.user.password,"onUpdate:field":s[0]||(s[0]=o=>t.state.user.password=o),type:"password",validation:l.value,label:"Password",placeholder:"******",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field","validation"]),e.createVNode(d.default,{field:t.state.user.passwordRepeat,"onUpdate:field":s[1]||(s[1]=o=>t.state.user.passwordRepeat=o),type:"password",label:"Repeat Password",placeholder:"******",class:"bg-grey pd-medium radius-small"},null,8,["field"])]),e.createVNode(w.default,{submit:m,callback:_,class:"w-100 bg-main mn-b-big"},{default:e.withCtx(()=>[q]),_:1})]))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const d=require("../../../../components/Field/Field.vue.cjs"),w=require("../../../../components/Button/Button.vue.cjs"),u=require("vue-router"),t=require("../../store/auth.cjs"),f=require("../../../organizations/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-b-small"},"You have been invited to the organization",-1),b=e.createElementVNode("p",{class:"mn-b-semi t-transp"},"Please provide a password to complete the registration.",-1),y={class:"mn-b-semi radius-small o-hidden"},q=e.createElementVNode("span",null,"Join",-1),g={__name:"Invite",async setup(V){let i,n;const l=e.ref(null),a=u.useRoute(),p=u.useRouter();[i,n]=e.withAsyncContext(()=>f.actions.readOne(a.query.inviteCode)),await i,n();async function m(){try{await c.validateInputs(l,c.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}try{await t.actions.signup(t.state.user,a.query.type,a.query.inviteCode)}catch(r){console.log(r)}}function _(){p.push({name:"User Profile",params:{_id:t.state.user._id},query:{afterAuth:"true"}})}return(r,s)=>(e.openBlock(),e.createElementBlock("section",h,[v,b,e.createElementVNode("div",y,[e.createVNode(d.default,{field:t.state.user.password,"onUpdate:field":s[0]||(s[0]=o=>t.state.user.password=o),type:"password",validation:l.value,label:"Password",placeholder:"******",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field","validation"]),e.createVNode(d.default,{field:t.state.user.passwordRepeat,"onUpdate:field":s[1]||(s[1]=o=>t.state.user.passwordRepeat=o),type:"password",label:"Repeat Password",placeholder:"******",class:"bg-grey pd-medium radius-small"},null,8,["field"])]),e.createVNode(w.default,{submit:m,callback:_,class:"w-100 bg-main mn-b-big"},{default:e.withCtx(()=>[q]),_:1})]))}};exports.default=g;
@@ -1,7 +1,7 @@
1
1
  import { ref as f, withAsyncContext as _, openBlock as w, createElementBlock as h, createElementVNode as s, createVNode as i, withCtx as b } from "vue";
2
2
  import "../../../../components/Tab/Tab.vue.js";
3
- import p from "../../../../components/Field/Field.vue2.js";
4
- import y from "../../../../components/Button/Button.vue2.js";
3
+ import p from "../../../../components/Field/Field.vue.js";
4
+ import y from "../../../../components/Button/Button.vue.js";
5
5
  import { useRoute as v, useRouter as g } from "vue-router";
6
6
  import { state as e, actions as P } from "../../store/auth.js";
7
7
  import { actions as R } from "../../../organizations/store/invites.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../../../../components/Tab/Tab.vue2.cjs"),f=require("../../../../components/Field/Field.vue2.cjs"),v=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),_=require("../../../../components/Button/Button.vue2.cjs"),u=require("vue-router"),b=require("vue-i18n"),w=require("../../localization/ResetPassword.json.cjs"),s=require("../../store/auth.cjs");require("../../store/twofa.cjs");const n=require("../../../middlewares/client/inputs.validation.cjs");require("./ResetPassword.vue2.cjs");const V={class:"t-left pd-medium"},g={class:"mn-b-small"},y={class:"mn-b-small t-transp"},N={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},q={class:"pos-relative"},E={key:0,class:"mn-b-semi radius-small o-hidden"},S={class:"mn-b-small t-transp"},k={key:0,class:"mn-b-semi radius-small o-hidden"},C={class:"mn-b-small t-transp"},P={__name:"ResetPassword",setup(I){const{t}=b.useI18n({useScope:"global",...w.default}),i=e.ref(null),d=e.ref(null);u.useRoute();const c=u.useRouter(),a=e.ref("phone");async function m(){try{a.value==="phone"&&await n.validateInputs(i,n.validatePhone,s.state.user.phone,"Некорректный телефон"),a.value==="email"&&await n.validateInputs(d,n.validateEmail,s.state.user.email,"Некорректный email")}catch{throw new Error}try{await s.actions.resetPassword(s.state.user,a.value,"reset-password")}catch(r){throw console.log(r),new Error}}function p(){c.push({name:"Enter Code",query:{type:a.value,method:"reset-password"}})}return(r,o)=>(e.openBlock(),e.createElementBlock("section",V,[e.createElementVNode("h3",g,e.toDisplayString(e.unref(t)("forgotPasswordTitle")),1),e.createElementVNode("p",y,e.toDisplayString(e.unref(t)("instructions")),1),e.createElementVNode("div",N,[e.createVNode(h.default,{selected:a.value,"onUpdate:selected":o[0]||(o[0]=l=>a.value=l),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",q,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="phone"?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("p",S,e.toDisplayString(e.unref(t)("smsInfo")),1),e.createVNode(v.default,{modelValue:s.state.user.phone,"onUpdate:modelValue":o[1]||(o[1]=l=>s.state.user.phone=l),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:i.value,mode:"national",inputOptions:{placeholder:e.unref(t)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["modelValue","validation","inputOptions"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="email"?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("p",C,e.toDisplayString(e.unref(t)("emailInfo")),1),e.createVNode(f.default,{field:s.state.user.email,"onUpdate:field":o[2]||(o[2]=l=>s.state.user.email=l),placeholder:e.unref(t)("emailPlaceholder"),validation:d.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])])):e.createCommentVNode("",!0)]),_:1})]),e.createVNode(_.default,{submit:m,callback:p,class:"mn-b-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1})]))}};exports.default=P;
1
+ "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.vue.cjs"),v=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),_=require("../../../../components/Button/Button.vue.cjs"),u=require("vue-router"),b=require("vue-i18n"),g=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 w={class:"t-left pd-medium"},V={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"},C={class:"mn-b-small t-transp"},S={key:0,class:"mn-b-semi radius-small o-hidden"},k={class:"mn-b-small t-transp"},P={__name:"ResetPassword",setup(I){const{t}=b.useI18n({useScope:"global",...g.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",w,[e.createElementVNode("h3",V,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",C,e.toDisplayString(e.unref(t)("smsInfo")),1),e.createVNode(v.default,{onChange: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,["validation","inputOptions"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="email"?(e.openBlock(),e.createElementBlock("div",S,[e.createElementVNode("p",k,e.toDisplayString(e.unref(t)("emailInfo")),1),e.createVNode(f.default,{field:s.state.user.email,"onUpdate:field":o[2]||(o[2]=l=>s.state.user.email=l),placeholder:e.unref(t)("emailPlaceholder"),validation:d.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])])):e.createCommentVNode("",!0)]),_:1})]),e.createVNode(_.default,{submit:m,callback:p,class:"mn-b-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1})]))}};exports.default=P;
@@ -1,16 +1,16 @@
1
- import { ref as m, openBlock as u, createElementBlock as p, createElementVNode as l, toDisplayString as r, unref as t, createVNode as i, Transition as _, withCtx as c, createCommentVNode as v, createTextVNode as V } from "vue";
1
+ import { ref as m, openBlock as u, createElementBlock as p, createElementVNode as a, toDisplayString as r, unref as t, createVNode as l, Transition as _, withCtx as c, createCommentVNode as v, createTextVNode as C } from "vue";
2
2
  import P from "../../../../components/Tab/Tab.vue2.js";
3
- import C from "../../../../components/Field/Field.vue2.js";
4
- import E from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import I from "../../../../components/Button/Button.vue2.js";
3
+ import E from "../../../../components/Field/Field.vue.js";
4
+ import I from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
+ import V from "../../../../components/Button/Button.vue.js";
6
6
  import { useRoute as k, useRouter as x } from "vue-router";
7
7
  import { useI18n as N } from "vue-i18n";
8
8
  import S from "../../localization/ResetPassword.json.js";
9
- import { state as s, actions as T } from "../../store/auth.js";
9
+ import { state as i, actions as T } from "../../store/auth.js";
10
10
  import "../../store/twofa.js";
11
11
  import { validateInputs as b, validatePhone as D, validateEmail as F } from "../../../middlewares/client/inputs.validation.js";
12
12
  import "./ResetPassword.vue2.js";
13
- const O = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, U = { class: "mn-b-small t-transp" }, B = { class: "mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, $ = { class: "pos-relative" }, q = {
13
+ const O = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, B = { class: "mn-b-small t-transp" }, U = { class: "mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, $ = { class: "pos-relative" }, q = {
14
14
  key: 0,
15
15
  class: "mn-b-semi radius-small o-hidden"
16
16
  }, A = { class: "mn-b-small t-transp" }, L = {
@@ -30,19 +30,19 @@ const O = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, U = { clas
30
30
  o.value === "phone" && await b(
31
31
  h,
32
32
  D,
33
- s.user.phone,
33
+ i.user.phone,
34
34
  "Некорректный телефон"
35
35
  ), o.value === "email" && await b(
36
36
  f,
37
37
  F,
38
- s.user.email,
38
+ i.user.email,
39
39
  "Некорректный email"
40
40
  );
41
41
  } catch {
42
42
  throw new Error();
43
43
  }
44
44
  try {
45
- await T.resetPassword(s.user, o.value, "reset-password");
45
+ await T.resetPassword(i.user, o.value, "reset-password");
46
46
  } catch (d) {
47
47
  throw console.log(d), new Error();
48
48
  }
@@ -50,27 +50,26 @@ const O = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, U = { clas
50
50
  function y() {
51
51
  w.push({ name: "Enter Code", query: { type: o.value, method: "reset-password" } });
52
52
  }
53
- return (d, a) => (u(), p("section", O, [
54
- l("h3", R, r(t(e)("forgotPasswordTitle")), 1),
55
- l("p", U, r(t(e)("instructions")), 1),
56
- l("div", B, [
57
- i(P, {
53
+ return (d, s) => (u(), p("section", O, [
54
+ a("h3", R, r(t(e)("forgotPasswordTitle")), 1),
55
+ a("p", B, r(t(e)("instructions")), 1),
56
+ a("div", U, [
57
+ l(P, {
58
58
  selected: o.value,
59
- "onUpdate:selected": a[0] || (a[0] = (n) => o.value = n),
59
+ "onUpdate:selected": s[0] || (s[0] = (n) => o.value = n),
60
60
  tabs: [
61
61
  { name: t(e)("phone"), value: "phone" },
62
62
  { name: t(e)("email"), value: "email" }
63
63
  ]
64
64
  }, null, 8, ["selected", "tabs"])
65
65
  ]),
66
- l("div", $, [
67
- i(_, { name: "slide-fade" }, {
66
+ a("div", $, [
67
+ l(_, { name: "slide-fade" }, {
68
68
  default: c(() => [
69
69
  o.value === "phone" ? (u(), p("div", q, [
70
- l("p", A, r(t(e)("smsInfo")), 1),
71
- i(E, {
72
- modelValue: s.user.phone,
73
- "onUpdate:modelValue": a[1] || (a[1] = (n) => s.user.phone = n),
70
+ a("p", A, r(t(e)("smsInfo")), 1),
71
+ l(I, {
72
+ onChange: s[1] || (s[1] = (n) => i.user.phone = n),
74
73
  dropdownOptions: {
75
74
  showDialCodeInSelection: !0,
76
75
  showFlags: !0,
@@ -80,18 +79,18 @@ const O = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, U = { clas
80
79
  mode: "national",
81
80
  inputOptions: { placeholder: t(e)("phonePlaceholder") },
82
81
  class: "bg-grey pd-small radius-small mn-b-thin"
83
- }, null, 8, ["modelValue", "validation", "inputOptions"])
82
+ }, null, 8, ["validation", "inputOptions"])
84
83
  ])) : v("", !0)
85
84
  ]),
86
85
  _: 1
87
86
  }),
88
- i(_, { name: "slide-fade" }, {
87
+ l(_, { name: "slide-fade" }, {
89
88
  default: c(() => [
90
89
  o.value === "email" ? (u(), p("div", L, [
91
- l("p", j, r(t(e)("emailInfo")), 1),
92
- i(C, {
93
- field: s.user.email,
94
- "onUpdate:field": a[2] || (a[2] = (n) => s.user.email = n),
90
+ a("p", j, r(t(e)("emailInfo")), 1),
91
+ l(E, {
92
+ field: i.user.email,
93
+ "onUpdate:field": s[2] || (s[2] = (n) => i.user.email = n),
95
94
  placeholder: t(e)("emailPlaceholder"),
96
95
  validation: f.value,
97
96
  class: "bg-grey pd-medium radius-small"
@@ -101,13 +100,13 @@ const O = { class: "t-left pd-medium" }, R = { class: "mn-b-small" }, U = { clas
101
100
  _: 1
102
101
  })
103
102
  ]),
104
- i(I, {
103
+ l(V, {
105
104
  submit: g,
106
105
  callback: y,
107
106
  class: "mn-b-big"
108
107
  }, {
109
108
  default: c(() => [
110
- V(r(t(e)("sendCode")), 1)
109
+ C(r(t(e)("sendCode")), 1)
111
110
  ]),
112
111
  _: 1
113
112
  })
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Tab/Tab.vue2.cjs"),m=require("../../../../components/Field/Field.vue2.cjs"),w=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../components/Button/Button.vue2.cjs"),h=require("vue-router"),N=require("vue-i18n"),y=require("../../localization/SignIn.json.cjs"),a=require("../../store/auth.cjs"),i=require("../../../middlewares/client/inputs.validation.cjs");require("./SignIn.vue2.cjs");const S={class:""},q=e.createElementVNode("img",{src:"/logo/logo.svg",class:"i-extra radius-small mn-b-small"},null,-1),E={class:"mn-b-medium"},x=e.createElementVNode("br",null,null,-1),C={class:"t-semi"},D={class:"mn-b-big"},P={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},T={class:"pos-relative"},U={class:"mn-b-thin radius-small"},I={class:"mn-b-thin radius-small o-hidden"},k={class:"w-100 mn-b-big"},j={__name:"SignIn",setup(O){const d=e.ref(null),f=e.ref(null),u=e.ref(null),c=h.useRoute(),p=h.useRouter(),{t:l}=N.useI18n({useScope:"global",...y.default}),n=e.ref("phone"),v=o=>new Promise((s,r)=>{const t=document.createElement("script");t.type="text/javascript",t.src=o,t.onload=s,t.onerror=r,document.head.appendChild(t)});e.onMounted(async()=>{await v("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js")});async function _(){try{n.value==="phone"&&await i.validateInputs(d,i.validatePhone,a.state.user.phone,"Некорректный телефон"),n.value==="email"&&await i.validateInputs(u,i.validateEmail,a.state.user.email,"Некорректный email")}catch{throw new Error}const o={...a.state.user};o.phone=a.state.user.phone.number,await a.actions.login(o,n.value)}function b(){c.query.returnUrl?p.push({path:c.query.returnUrl,query:{afterAuth:"true"}}):p.push({name:"User Profile",params:{_id:a.state.user._id},query:{afterAuth:"true"}})}return(o,s)=>{const r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",S,[q,e.createElementVNode("h3",E,[e.createTextVNode(e.toDisplayString(e.unref(l)("title"))+" ",1),x,e.createElementVNode("span",C,e.toDisplayString(e.unref(l)("subtitle")),1)]),e.createElementVNode("p",D,[e.createVNode(r,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signup")),1)]),_:1})]),e.createElementVNode("div",P,[e.createVNode(g.default,{selected:n.value,"onUpdate:selected":s[0]||(s[0]=t=>n.value=t),tabs:[{name:e.unref(l)("phone"),value:"phone"},{name:e.unref(l)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",T,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",U,[e.createVNode(w.default,{modelValue:a.state.user.phone,"onUpdate:modelValue":s[1]||(s[1]=t=>a.state.user.phone=t),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:d.value,mode:"national",inputOptions:{placeholder:e.unref(l)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,n.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",I,[e.createVNode(m.default,{field:a.state.user.email,"onUpdate:field":s[2]||(s[2]=t=>a.state.user.email=t),placeholder:e.unref(l)("emailPlaceholder"),validation:u.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,n.value==="email"]])]),_:1})]),e.createVNode(m.default,{field:a.state.user.password,"onUpdate:field":s[3]||(s[3]=t=>a.state.user.password=t),type:"password",validation:f.value,placeholder:e.unref(l)("passwordPlaceholder"),class:"bg-grey pd-medium radius-small mn-b-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",k,[e.createVNode(r,{to:"/auth/reset-password",class:"underline d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("forgotPassword")),1)]),_:1})]),e.createVNode(V.default,{submit:_,callback:b,class:"w-100 bg-main mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signin")),1)]),_:1})])}}};exports.default=j;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("../../../../components/Tab/Tab.vue2.cjs"),m=require("../../../../components/Field/Field.vue.cjs"),w=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../components/Button/Button.vue.cjs"),h=require("vue-router"),N=require("vue-i18n"),y=require("../../localization/SignIn.json.cjs"),l=require("../../store/auth.cjs"),r=require("../../../middlewares/client/inputs.validation.cjs");require("./SignIn.vue2.cjs");const S={class:""},q=e.createElementVNode("img",{src:"/logo/logo.svg",class:"i-extra radius-small mn-b-small"},null,-1),E={class:"mn-b-medium"},x=e.createElementVNode("br",null,null,-1),C={class:"t-semi"},D={class:"mn-b-big"},P={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},T={class:"pos-relative"},I={class:"mn-b-thin radius-small"},U={class:"mn-b-thin radius-small o-hidden"},k={class:"w-100 mn-b-big"},O={__name:"SignIn",setup(j){const d=e.ref(null),f=e.ref(null),u=e.ref(null),c=h.useRoute(),p=h.useRouter(),{t:s}=N.useI18n({useScope:"global",...y.default}),n=e.ref("phone"),v=o=>new Promise((a,i)=>{const t=document.createElement("script");t.type="text/javascript",t.src=o,t.onload=a,t.onerror=i,document.head.appendChild(t)});e.onMounted(async()=>{await v("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js")});async function _(){try{n.value==="phone"&&await r.validateInputs(d,r.validatePhone,l.state.user.phone,"Некорректный телефон"),n.value==="email"&&await r.validateInputs(u,r.validateEmail,l.state.user.email,"Некорректный email")}catch{throw new Error}const o={...l.state.user};await l.actions.login(o,n.value)}function g(){c.query.returnUrl?p.push({path:c.query.returnUrl,query:{afterAuth:"true"}}):p.push({name:"User Profile",params:{_id:l.state.user._id},query:{afterAuth:"true"}})}return(o,a)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",S,[q,e.createElementVNode("h3",E,[e.createTextVNode(e.toDisplayString(e.unref(s)("title"))+" ",1),x,e.createElementVNode("span",C,e.toDisplayString(e.unref(s)("subtitle")),1)]),e.createElementVNode("p",D,[e.createVNode(i,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("signup")),1)]),_:1})]),e.createElementVNode("div",P,[e.createVNode(b.default,{selected:n.value,"onUpdate:selected":a[0]||(a[0]=t=>n.value=t),tabs:[{name:e.unref(s)("phone"),value:"phone"},{name:e.unref(s)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",T,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",I,[e.createVNode(w.default,{onChange:a[1]||(a[1]=t=>l.state.user.phone=t),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validCharactersOnly:!0,validation:d.value,mode:"national",inputOptions:{placeholder:e.unref(s)("phonePlaceholder"),type:"tel"},class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["validation","inputOptions"])],512),[[e.vShow,n.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",U,[e.createVNode(m.default,{field:l.state.user.email,"onUpdate:field":a[2]||(a[2]=t=>l.state.user.email=t),placeholder:e.unref(s)("emailPlaceholder"),validation:u.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,n.value==="email"]])]),_:1})]),e.createVNode(m.default,{field:l.state.user.password,"onUpdate:field":a[3]||(a[3]=t=>l.state.user.password=t),type:"password",validation:f.value,placeholder:e.unref(s)("passwordPlaceholder"),class:"bg-grey pd-medium radius-small mn-b-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",k,[e.createVNode(i,{to:"/auth/reset-password",class:"underline d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("forgotPassword")),1)]),_:1})]),e.createVNode(V.default,{submit:_,callback:g,class:"w-100 bg-main mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("signin")),1)]),_:1})])}}};exports.default=O;
@@ -1,50 +1,50 @@
1
- import { ref as p, onMounted as k, resolveComponent as C, openBlock as E, createElementBlock as I, createElementVNode as a, createTextVNode as c, toDisplayString as d, unref as s, createVNode as i, withCtx as u, Transition as b, withDirectives as g, vShow as w } from "vue";
1
+ import { ref as m, onMounted as k, resolveComponent as E, openBlock as V, createElementBlock as I, createElementVNode as l, createTextVNode as c, toDisplayString as r, unref as s, createVNode as o, withCtx as d, Transition as b, withDirectives as g, vShow as w } from "vue";
2
2
  import q from "../../../../components/Tab/Tab.vue2.js";
3
- import y from "../../../../components/Field/Field.vue2.js";
3
+ import y from "../../../../components/Field/Field.vue.js";
4
4
  import D from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import j from "../../../../components/Button/Button.vue2.js";
6
- import { useRoute as A, useRouter as F } from "vue-router";
7
- import { useI18n as N } from "vue-i18n";
8
- import O from "../../localization/SignIn.json.js";
9
- import { state as l, actions as T } from "../../store/auth.js";
5
+ import O from "../../../../components/Button/Button.vue.js";
6
+ import { useRoute as j, useRouter as A } from "vue-router";
7
+ import { useI18n as F } from "vue-i18n";
8
+ import N from "../../localization/SignIn.json.js";
9
+ import { state as i, actions as T } from "../../store/auth.js";
10
10
  import { validateInputs as S, validatePhone as B, validateEmail as R } from "../../../middlewares/client/inputs.validation.js";
11
11
  import "./SignIn.vue2.js";
12
- const $ = { class: "" }, L = /* @__PURE__ */ a("img", {
12
+ const $ = { class: "" }, L = /* @__PURE__ */ l("img", {
13
13
  src: "/logo/logo.svg",
14
14
  class: "i-extra radius-small mn-b-small"
15
- }, null, -1), M = { class: "mn-b-medium" }, z = /* @__PURE__ */ a("br", null, null, -1), G = { class: "t-semi" }, H = { class: "mn-b-big" }, J = { class: "mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, K = { class: "pos-relative" }, Q = { class: "mn-b-thin radius-small" }, W = { class: "mn-b-thin radius-small o-hidden" }, X = { class: "w-100 mn-b-big" }, ue = {
15
+ }, null, -1), M = { class: "mn-b-medium" }, z = /* @__PURE__ */ l("br", null, null, -1), G = { class: "t-semi" }, H = { class: "mn-b-big" }, J = { class: "mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, K = { class: "pos-relative" }, Q = { class: "mn-b-thin radius-small" }, W = { class: "mn-b-thin radius-small o-hidden" }, X = { class: "w-100 mn-b-big" }, ue = {
16
16
  __name: "SignIn",
17
17
  setup(Y) {
18
- const h = p(null), U = p(null), f = p(null), _ = A(), v = F(), { t: o } = N({
18
+ const h = m(null), x = m(null), f = m(null), _ = j(), v = A(), { t: a } = F({
19
19
  useScope: "global",
20
- ...O
21
- }), n = p("phone"), V = (r) => new Promise((t, m) => {
20
+ ...N
21
+ }), n = m("phone"), C = (u) => new Promise((t, p) => {
22
22
  const e = document.createElement("script");
23
- e.type = "text/javascript", e.src = r, e.onload = t, e.onerror = m, document.head.appendChild(e);
23
+ e.type = "text/javascript", e.src = u, e.onload = t, e.onerror = p, document.head.appendChild(e);
24
24
  });
25
25
  k(async () => {
26
- await V("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js");
26
+ await C("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js");
27
27
  });
28
- async function x() {
28
+ async function P() {
29
29
  try {
30
30
  n.value === "phone" && await S(
31
31
  h,
32
32
  B,
33
- l.user.phone,
33
+ i.user.phone,
34
34
  "Некорректный телефон"
35
35
  ), n.value === "email" && await S(
36
36
  f,
37
37
  R,
38
- l.user.email,
38
+ i.user.email,
39
39
  "Некорректный email"
40
40
  );
41
41
  } catch {
42
42
  throw new Error();
43
43
  }
44
- const r = { ...l.user };
45
- r.phone = l.user.phone.number, await T.login(r, n.value);
44
+ const u = { ...i.user };
45
+ await T.login(u, n.value);
46
46
  }
47
- function P() {
47
+ function U() {
48
48
  _.query.returnUrl ? v.push({
49
49
  path: _.query.returnUrl,
50
50
  query: {
@@ -53,73 +53,73 @@ const $ = { class: "" }, L = /* @__PURE__ */ a("img", {
53
53
  }) : v.push({
54
54
  name: "User Profile",
55
55
  params: {
56
- _id: l.user._id
56
+ _id: i.user._id
57
57
  },
58
58
  query: {
59
59
  afterAuth: "true"
60
60
  }
61
61
  });
62
62
  }
63
- return (r, t) => {
64
- const m = C("router-link");
65
- return E(), I("section", $, [
63
+ return (u, t) => {
64
+ const p = E("router-link");
65
+ return V(), I("section", $, [
66
66
  L,
67
- a("h3", M, [
68
- c(d(s(o)("title")) + " ", 1),
67
+ l("h3", M, [
68
+ c(r(s(a)("title")) + " ", 1),
69
69
  z,
70
- a("span", G, d(s(o)("subtitle")), 1)
70
+ l("span", G, r(s(a)("subtitle")), 1)
71
71
  ]),
72
- a("p", H, [
73
- i(m, {
72
+ l("p", H, [
73
+ o(p, {
74
74
  to: { name: "Sign Up" },
75
75
  class: "underline t-second"
76
76
  }, {
77
- default: u(() => [
78
- c(d(s(o)("signup")), 1)
77
+ default: d(() => [
78
+ c(r(s(a)("signup")), 1)
79
79
  ]),
80
80
  _: 1
81
81
  })
82
82
  ]),
83
- a("div", J, [
84
- i(q, {
83
+ l("div", J, [
84
+ o(q, {
85
85
  selected: n.value,
86
86
  "onUpdate:selected": t[0] || (t[0] = (e) => n.value = e),
87
87
  tabs: [
88
- { name: s(o)("phone"), value: "phone" },
89
- { name: s(o)("email"), value: "email" }
88
+ { name: s(a)("phone"), value: "phone" },
89
+ { name: s(a)("email"), value: "email" }
90
90
  ]
91
91
  }, null, 8, ["selected", "tabs"])
92
92
  ]),
93
- a("div", K, [
94
- i(b, { name: "slide-fade" }, {
95
- default: u(() => [
96
- g(a("div", Q, [
97
- i(D, {
98
- modelValue: l.user.phone,
99
- "onUpdate:modelValue": t[1] || (t[1] = (e) => l.user.phone = e),
93
+ l("div", K, [
94
+ o(b, { name: "slide-fade" }, {
95
+ default: d(() => [
96
+ g(l("div", Q, [
97
+ o(D, {
98
+ onChange: t[1] || (t[1] = (e) => i.user.phone = e),
100
99
  dropdownOptions: {
101
100
  showDialCodeInSelection: !0,
102
101
  showFlags: !0,
103
102
  showDialCodeInList: !0
104
103
  },
104
+ validCharactersOnly: !0,
105
105
  validation: h.value,
106
106
  mode: "national",
107
- inputOptions: { placeholder: s(o)("phonePlaceholder") },
107
+ inputOptions: { placeholder: s(a)("phonePlaceholder"), type: "tel" },
108
108
  class: "bg-grey pd-small radius-small mn-b-thin"
109
- }, null, 8, ["modelValue", "validation", "inputOptions"])
109
+ }, null, 8, ["validation", "inputOptions"])
110
110
  ], 512), [
111
111
  [w, n.value === "phone"]
112
112
  ])
113
113
  ]),
114
114
  _: 1
115
115
  }),
116
- i(b, { name: "slide-fade" }, {
117
- default: u(() => [
118
- g(a("div", W, [
119
- i(y, {
120
- field: l.user.email,
121
- "onUpdate:field": t[2] || (t[2] = (e) => l.user.email = e),
122
- placeholder: s(o)("emailPlaceholder"),
116
+ o(b, { name: "slide-fade" }, {
117
+ default: d(() => [
118
+ g(l("div", W, [
119
+ o(y, {
120
+ field: i.user.email,
121
+ "onUpdate:field": t[2] || (t[2] = (e) => i.user.email = e),
122
+ placeholder: s(a)("emailPlaceholder"),
123
123
  validation: f.value,
124
124
  class: "bg-grey pd-medium radius-small"
125
125
  }, null, 8, ["field", "placeholder", "validation"])
@@ -130,32 +130,32 @@ const $ = { class: "" }, L = /* @__PURE__ */ a("img", {
130
130
  _: 1
131
131
  })
132
132
  ]),
133
- i(y, {
134
- field: l.user.password,
135
- "onUpdate:field": t[3] || (t[3] = (e) => l.user.password = e),
133
+ o(y, {
134
+ field: i.user.password,
135
+ "onUpdate:field": t[3] || (t[3] = (e) => i.user.password = e),
136
136
  type: "password",
137
- validation: U.value,
138
- placeholder: s(o)("passwordPlaceholder"),
137
+ validation: x.value,
138
+ placeholder: s(a)("passwordPlaceholder"),
139
139
  class: "bg-grey pd-medium radius-small mn-b-semi"
140
140
  }, null, 8, ["field", "validation", "placeholder"]),
141
- a("div", X, [
142
- i(m, {
141
+ l("div", X, [
142
+ o(p, {
143
143
  to: "/auth/reset-password",
144
144
  class: "underline d-block t-blue"
145
145
  }, {
146
- default: u(() => [
147
- c(d(s(o)("forgotPassword")), 1)
146
+ default: d(() => [
147
+ c(r(s(a)("forgotPassword")), 1)
148
148
  ]),
149
149
  _: 1
150
150
  })
151
151
  ]),
152
- i(j, {
153
- submit: x,
154
- callback: P,
152
+ o(O, {
153
+ submit: P,
154
+ callback: U,
155
155
  class: "w-100 bg-main mn-b-thin"
156
156
  }, {
157
- default: u(() => [
158
- c(d(s(o)("signin")), 1)
157
+ default: d(() => [
158
+ c(r(s(a)("signin")), 1)
159
159
  ]),
160
160
  _: 1
161
161
  })