@ozdao/prometheus-framework 0.1.78 → 0.1.79

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  3. package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -224
  4. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  5. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +224 -2
  6. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  7. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +33 -30
  8. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  9. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -1
  10. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  11. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -72
  12. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -2
  14. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -78
  16. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +78 -2
  18. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
  20. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +41 -43
  22. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +33 -35
  24. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +1 -1
  26. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +44 -46
  28. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +87 -84
  30. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +44 -46
  32. package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.cjs +1 -0
  33. package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.js +38 -0
  34. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/auth/store/auth.js +93 -75
  36. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  38. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  40. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +4 -3
  42. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +12 -11
  44. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +2 -2
  45. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +12 -11
  46. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +5 -4
  48. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -4
  49. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -61
  50. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
  51. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +62 -2
  52. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  54. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  56. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  58. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  60. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
  62. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  64. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
  66. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  68. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +15 -13
  70. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  74. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  76. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  78. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  80. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  82. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  84. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  86. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  88. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  90. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  92. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
  94. package/dist/prometheus-framework.cjs.js +10 -10
  95. package/dist/prometheus-framework.es.js +8 -5
  96. package/dist/style.css +1 -1
  97. package/package.json +1 -2
  98. package/src/components/Field/Field.vue +4 -1
  99. package/src/modules/auth/components/layouts/Auth.vue +45 -36
  100. package/src/modules/auth/components/pages/EnterCode.vue +0 -17
  101. package/src/modules/auth/components/pages/EnterPassword.vue +0 -23
  102. package/src/modules/auth/components/pages/ResetPassword.vue +0 -27
  103. package/src/modules/auth/components/pages/SignIn.vue +17 -47
  104. package/src/modules/auth/components/pages/SignUp.vue +0 -29
  105. package/src/modules/auth/localization/EnterCode.json +14 -0
  106. package/src/modules/auth/localization/EnterPassword.json +20 -0
  107. package/src/modules/auth/localization/ResetPassword.json +24 -0
  108. package/src/modules/auth/localization/SignIn.json +34 -0
  109. package/src/modules/auth/localization/SignUp.json +26 -0
  110. package/src/modules/auth/store/auth.js +20 -20
  111. package/src/modules/constructor/components/elements/Bullets.vue +1 -0
  112. package/src/modules/constructor/components/elements/Caption.vue +1 -0
  113. package/src/modules/constructor/components/elements/H2.vue +1 -0
  114. package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
  115. package/src/modules/constructor/components/elements/Textarea.vue +1 -0
  116. package/src/modules/globals/localization/methods/get-app-locales.js +13 -0
  117. package/src/modules/globals/localization/vue-i18n.js +20 -14
  118. package/src/modules/globals/localization/vue-i18n.singleton.js +1 -1
  119. package/src/modules/globals/localization/vue-i18n-new.js +0 -70
@@ -1,74 +1,4 @@
1
- import { watch as f, openBlock as s, createBlock as v, Teleport as y, createVNode as n, Transition as l, withCtx as a, createElementBlock as u, mergeProps as P, createElementVNode as i, renderSlot as k, createCommentVNode as p, normalizeClass as b } from "vue";
2
- import { useRoute as x, useRouter as C } from "vue-router";
3
- import { useI18n as O } from "vue-i18n";
4
- import T from "../../modules/icons/navigation/IconCross.vue.js";
5
- import "./Popup.vue2.js";
6
- const g = {
7
- key: "popup-content",
8
- class: "pd-small popup-wrapper"
9
- }, E = {
10
- __name: "Popup",
11
- props: {
12
- isPopupOpen: {
13
- type: Boolean,
14
- default: !1
15
- },
16
- style: String
17
- },
18
- emits: ["close-popup"],
19
- setup(e, { emit: c }) {
20
- const m = e;
21
- function r() {
22
- c("close-popup");
23
- }
24
- return f(() => m.isPopupOpen, (o) => {
25
- o ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
26
- }), x(), C(), O({
27
- messages: {
28
- en: {},
29
- ru: {}
30
- }
31
- }), (o, t) => e.isPopupOpen ? (s(), v(y, {
32
- key: 0,
33
- to: "body"
34
- }, [
35
- n(l, {
36
- name: "TransitionTranslateY",
37
- appear: ""
38
- }, {
39
- default: a(() => [
40
- e.isPopupOpen ? (s(), u("div", g, [
41
- n(l, {
42
- name: "TransitionTranslateY",
43
- mode: "out-in"
44
- }, {
45
- default: a(() => [
46
- e.isPopupOpen ? (s(), u("section", P({
47
- key: 0,
48
- class: "pos-relative z-index-4"
49
- }, o.$attrs), [
50
- i("button", {
51
- onClick: t[0] || (t[0] = (d) => r()),
52
- class: "pd-regular hover-scale-1 z-index-5 button-close-popup button"
53
- }, [
54
- n(T)
55
- ]),
56
- k(o.$slots, "default")
57
- ], 16)) : p("", !0)
58
- ]),
59
- _: 3
60
- }),
61
- i("div", {
62
- onClick: t[1] || (t[1] = (d) => r()),
63
- class: b([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
64
- }, null, 2)
65
- ])) : p("", !0)
66
- ]),
67
- _: 3
68
- })
69
- ])) : p("", !0);
70
- }
71
- };
1
+ const e = "";
72
2
  export {
73
- E as default
3
+ e as default
74
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),i=require("vue-i18n"),c=require("../../modules/icons/navigation/IconCross.vue.cjs");require("./Popup.vue.cjs");const d={key:"popup-content",class:"pd-small popup-wrapper"},m={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String},emits:["close-popup"],setup(t,{emit:l}){const u=t;function s(){l("close-popup")}e.watch(()=>u.isPopupOpen,o=>{o?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),r.useRoute(),r.useRouter();const a={messages:{en:{},ru:{}}};return i.useI18n(a),(o,n)=>t.isPopupOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createVNode(e.Transition,{name:"TransitionTranslateY",appear:""},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createElementBlock("div",d,[e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createElementBlock("section",e.mergeProps({key:0,class:"pos-relative z-index-4"},o.$attrs),[e.createElementVNode("button",{onClick:n[0]||(n[0]=p=>s()),class:"pd-regular hover-scale-1 z-index-5 button-close-popup button"},[e.createVNode(c.default)]),e.renderSlot(o.$slots,"default")],16)):e.createCommentVNode("",!0)]),_:3}),e.createElementVNode("div",{onClick:n[1]||(n[1]=p=>s()),class:e.normalizeClass([{active:t.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)])):e.createCommentVNode("",!0)]),_:3})])):e.createCommentVNode("",!0)}};exports.default=m;
@@ -1,4 +1,74 @@
1
- const e = "";
1
+ import { watch as f, openBlock as s, createBlock as v, Teleport as y, createVNode as n, Transition as l, withCtx as a, createElementBlock as u, mergeProps as P, createElementVNode as i, renderSlot as k, createCommentVNode as p, normalizeClass as b } from "vue";
2
+ import { useRoute as x, useRouter as C } from "vue-router";
3
+ import { useI18n as O } from "vue-i18n";
4
+ import T from "../../modules/icons/navigation/IconCross.vue.js";
5
+ import "./Popup.vue.js";
6
+ const g = {
7
+ key: "popup-content",
8
+ class: "pd-small popup-wrapper"
9
+ }, E = {
10
+ __name: "Popup",
11
+ props: {
12
+ isPopupOpen: {
13
+ type: Boolean,
14
+ default: !1
15
+ },
16
+ style: String
17
+ },
18
+ emits: ["close-popup"],
19
+ setup(e, { emit: c }) {
20
+ const m = e;
21
+ function r() {
22
+ c("close-popup");
23
+ }
24
+ return f(() => m.isPopupOpen, (o) => {
25
+ o ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
26
+ }), x(), C(), O({
27
+ messages: {
28
+ en: {},
29
+ ru: {}
30
+ }
31
+ }), (o, t) => e.isPopupOpen ? (s(), v(y, {
32
+ key: 0,
33
+ to: "body"
34
+ }, [
35
+ n(l, {
36
+ name: "TransitionTranslateY",
37
+ appear: ""
38
+ }, {
39
+ default: a(() => [
40
+ e.isPopupOpen ? (s(), u("div", g, [
41
+ n(l, {
42
+ name: "TransitionTranslateY",
43
+ mode: "out-in"
44
+ }, {
45
+ default: a(() => [
46
+ e.isPopupOpen ? (s(), u("section", P({
47
+ key: 0,
48
+ class: "pos-relative z-index-4"
49
+ }, o.$attrs), [
50
+ i("button", {
51
+ onClick: t[0] || (t[0] = (d) => r()),
52
+ class: "pd-regular hover-scale-1 z-index-5 button-close-popup button"
53
+ }, [
54
+ n(T)
55
+ ]),
56
+ k(o.$slots, "default")
57
+ ], 16)) : p("", !0)
58
+ ]),
59
+ _: 3
60
+ }),
61
+ i("div", {
62
+ onClick: t[1] || (t[1] = (d) => r()),
63
+ class: b([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
64
+ }, null, 2)
65
+ ])) : p("", !0)
66
+ ]),
67
+ _: 3
68
+ })
69
+ ])) : p("", !0);
70
+ }
71
+ };
2
72
  export {
3
- e as default
73
+ E as default
4
74
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Select.vue2.cjs");const m=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),p=["onClick"],k={key:0,class:"t-transp mn-r-small"},f={class:"w-100"},v=["onClick"],h={key:0,class:"w-100"},g={key:0,class:"mn-t-thin invalid-feedback"},B={__name:"Select",props:{label:String,select:[String,Object],placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(l,{emit:c}){const n=l,o=e.ref(n.select),a=e.ref(!1);e.watch(()=>n.select,t=>{o.value=t});const u=e.computed(()=>n.select?n.options.filter(t=>t!==n.select):n.options),r=()=>{a.value=!a.value,c(a.value?"focus":"blur")},d=t=>{o.value=t,r(),c("update:select",o.value)};return(t,y)=>{var i;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:e.withModifiers(r,["stop"]),class:e.normalizeClass([t.$attrs.class,"cursor-pointer flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",f,[e.createElementVNode("span",null,e.toDisplayString(((i=o.value)==null?void 0:i.name)||o.value||l.placeholder),1)]),e.createVNode(e.Transition,{mode:"out-in",name:"TransitionTranslateY"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass([t.$attrs.class,"pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),s=>(e.openBlock(),e.createElementBlock("li",{onClick:e.withModifiers(C=>d(s),["stop"])},[s?(e.openBlock(),e.createElementBlock("span",h,e.toDisplayString(s.name||s),1)):e.createCommentVNode("",!0)],8,v))),256))],2)):e.createCommentVNode("",!0)]),_:1})],10,p),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[l.validation?(e.openBlock(),e.createElementBlock("div",g," * "+e.toDisplayString(l.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},_=m.default(B,[["__scopeId","data-v-dfe03dc2"]]);exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1,80 +1,4 @@
1
- import { ref as f, watch as C, computed as S, openBlock as t, createElementBlock as l, Fragment as v, createElementVNode as i, withModifiers as h, normalizeClass as _, toDisplayString as r, createCommentVNode as u, createVNode as k, Transition as b, withCtx as g, renderList as x, unref as B } from "vue";
2
- import "./Select.vue2.js";
3
- import M from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const N = ["onClick"], O = {
5
- key: 0,
6
- class: "t-transp mn-r-small"
7
- }, T = { class: "w-100" }, V = ["onClick"], $ = {
8
- key: 0,
9
- class: "w-100"
10
- }, z = {
11
- key: 0,
12
- class: "mn-t-thin invalid-feedback"
13
- }, E = {
14
- __name: "Select",
15
- props: {
16
- label: String,
17
- select: [String, Object],
18
- placeholder: { type: String, default: "Please select an item" },
19
- options: { type: Array, default: () => [] },
20
- validation: Boolean
21
- },
22
- emits: ["update:select", "focus", "blur"],
23
- setup(s, { emit: d }) {
24
- const a = s, n = f(a.select), o = f(!1);
25
- C(() => a.select, (e) => {
26
- n.value = e;
27
- });
28
- const w = S(() => a.select ? a.options.filter((e) => e !== a.select) : a.options), m = () => {
29
- o.value = !o.value, d(o.value ? "focus" : "blur");
30
- }, y = (e) => {
31
- n.value = e, m(), d("update:select", n.value);
32
- };
33
- return (e, L) => {
34
- var p;
35
- return t(), l(v, null, [
36
- i("div", {
37
- onClick: h(m, ["stop"]),
38
- class: _([e.$attrs.class, "cursor-pointer flex-nowrap flex"])
39
- }, [
40
- s.label ? (t(), l("div", O, [
41
- i("span", null, r(s.label), 1)
42
- ])) : u("", !0),
43
- i("li", T, [
44
- i("span", null, r(((p = n.value) == null ? void 0 : p.name) || n.value || s.placeholder), 1)
45
- ]),
46
- k(b, {
47
- mode: "out-in",
48
- name: "TransitionTranslateY"
49
- }, {
50
- default: g(() => [
51
- o.value ? (t(), l("ul", {
52
- key: 0,
53
- class: _([e.$attrs.class, "pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])
54
- }, [
55
- (t(!0), l(v, null, x(B(w), (c) => (t(), l("li", {
56
- onClick: h((j) => y(c), ["stop"])
57
- }, [
58
- c ? (t(), l("span", $, r(c.name || c), 1)) : u("", !0)
59
- ], 8, V))), 256))
60
- ], 2)) : u("", !0)
61
- ]),
62
- _: 1
63
- })
64
- ], 10, N),
65
- k(b, {
66
- mode: "out-in",
67
- name: "fade"
68
- }, {
69
- default: g(() => [
70
- s.validation ? (t(), l("div", z, " * " + r(s.validation.message), 1)) : u("", !0)
71
- ]),
72
- _: 1
73
- })
74
- ], 64);
75
- };
76
- }
77
- }, I = /* @__PURE__ */ M(E, [["__scopeId", "data-v-dfe03dc2"]]);
1
+ const e = "";
78
2
  export {
79
- I as default
3
+ e as default
80
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Select.vue.cjs");const m=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),p=["onClick"],k={key:0,class:"t-transp mn-r-small"},f={class:"w-100"},v=["onClick"],h={key:0,class:"w-100"},g={key:0,class:"mn-t-thin invalid-feedback"},B={__name:"Select",props:{label:String,select:[String,Object],placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(l,{emit:c}){const n=l,o=e.ref(n.select),a=e.ref(!1);e.watch(()=>n.select,t=>{o.value=t});const u=e.computed(()=>n.select?n.options.filter(t=>t!==n.select):n.options),r=()=>{a.value=!a.value,c(a.value?"focus":"blur")},d=t=>{o.value=t,r(),c("update:select",o.value)};return(t,y)=>{var i;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:e.withModifiers(r,["stop"]),class:e.normalizeClass([t.$attrs.class,"cursor-pointer flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",f,[e.createElementVNode("span",null,e.toDisplayString(((i=o.value)==null?void 0:i.name)||o.value||l.placeholder),1)]),e.createVNode(e.Transition,{mode:"out-in",name:"TransitionTranslateY"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass([t.$attrs.class,"pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),s=>(e.openBlock(),e.createElementBlock("li",{onClick:e.withModifiers(C=>d(s),["stop"])},[s?(e.openBlock(),e.createElementBlock("span",h,e.toDisplayString(s.name||s),1)):e.createCommentVNode("",!0)],8,v))),256))],2)):e.createCommentVNode("",!0)]),_:1})],10,p),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[l.validation?(e.openBlock(),e.createElementBlock("div",g," * "+e.toDisplayString(l.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},_=m.default(B,[["__scopeId","data-v-dfe03dc2"]]);exports.default=_;
@@ -1,4 +1,80 @@
1
- const e = "";
1
+ import { ref as f, watch as C, computed as S, openBlock as t, createElementBlock as l, Fragment as v, createElementVNode as i, withModifiers as h, normalizeClass as _, toDisplayString as r, createCommentVNode as u, createVNode as k, Transition as b, withCtx as g, renderList as x, unref as B } from "vue";
2
+ import "./Select.vue.js";
3
+ import M from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const N = ["onClick"], O = {
5
+ key: 0,
6
+ class: "t-transp mn-r-small"
7
+ }, T = { class: "w-100" }, V = ["onClick"], $ = {
8
+ key: 0,
9
+ class: "w-100"
10
+ }, z = {
11
+ key: 0,
12
+ class: "mn-t-thin invalid-feedback"
13
+ }, E = {
14
+ __name: "Select",
15
+ props: {
16
+ label: String,
17
+ select: [String, Object],
18
+ placeholder: { type: String, default: "Please select an item" },
19
+ options: { type: Array, default: () => [] },
20
+ validation: Boolean
21
+ },
22
+ emits: ["update:select", "focus", "blur"],
23
+ setup(s, { emit: d }) {
24
+ const a = s, n = f(a.select), o = f(!1);
25
+ C(() => a.select, (e) => {
26
+ n.value = e;
27
+ });
28
+ const w = S(() => a.select ? a.options.filter((e) => e !== a.select) : a.options), m = () => {
29
+ o.value = !o.value, d(o.value ? "focus" : "blur");
30
+ }, y = (e) => {
31
+ n.value = e, m(), d("update:select", n.value);
32
+ };
33
+ return (e, L) => {
34
+ var p;
35
+ return t(), l(v, null, [
36
+ i("div", {
37
+ onClick: h(m, ["stop"]),
38
+ class: _([e.$attrs.class, "cursor-pointer flex-nowrap flex"])
39
+ }, [
40
+ s.label ? (t(), l("div", O, [
41
+ i("span", null, r(s.label), 1)
42
+ ])) : u("", !0),
43
+ i("li", T, [
44
+ i("span", null, r(((p = n.value) == null ? void 0 : p.name) || n.value || s.placeholder), 1)
45
+ ]),
46
+ k(b, {
47
+ mode: "out-in",
48
+ name: "TransitionTranslateY"
49
+ }, {
50
+ default: g(() => [
51
+ o.value ? (t(), l("ul", {
52
+ key: 0,
53
+ class: _([e.$attrs.class, "pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])
54
+ }, [
55
+ (t(!0), l(v, null, x(B(w), (c) => (t(), l("li", {
56
+ onClick: h((j) => y(c), ["stop"])
57
+ }, [
58
+ c ? (t(), l("span", $, r(c.name || c), 1)) : u("", !0)
59
+ ], 8, V))), 256))
60
+ ], 2)) : u("", !0)
61
+ ]),
62
+ _: 1
63
+ })
64
+ ], 10, N),
65
+ k(b, {
66
+ mode: "out-in",
67
+ name: "fade"
68
+ }, {
69
+ default: g(() => [
70
+ s.validation ? (t(), l("div", z, " * " + r(s.validation.message), 1)) : u("", !0)
71
+ ]),
72
+ _: 1
73
+ })
74
+ ], 64);
75
+ };
76
+ }
77
+ }, I = /* @__PURE__ */ M(E, [["__scopeId", "data-v-dfe03dc2"]]);
2
78
  export {
3
- e as default
79
+ I as default
4
80
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");require("../../../../../../node_modules/vue3-carousel/dist/carousel.css.cjs");require("vue-i18n");require("../../../../../../node_modules/vue3-carousel/dist/carousel.es.cjs");require("../sections/SliderFeatures.vue2.cjs");const r=require("vue-router");require("../../store/auth.cjs");require("../../../middlewares/client/inputs.validation.cjs");const u={class:"cols-2-1_2 gap-small pd-small bg-white"},n=e.createElementVNode("section",{class:"w-100 desktop-only o-hidden radius-big bg-grad-main"},null,-1),s={__name:"Auth",setup(a){return e.ref(null),e.ref(null),e.ref(null),r.useRoute(),r.useRouter(),e.ref("email"),(o,c)=>{const t=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",u,[e.createVNode(t,{class:"pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center"},{default:e.withCtx(({Component:i,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{ref:"page",key:l.path,localPosition:o.localPosition},null,8,["localPosition"]))]),_:2},1024)]),_:1}),n])}}};exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../../../node_modules/vue3-carousel/dist/carousel.css.cjs");require("vue-i18n");require("../../../../../../node_modules/vue3-carousel/dist/carousel.es.cjs");require("../sections/SliderFeatures.vue2.cjs");const r=require("vue-router");require("../../store/auth.cjs");require("../../../middlewares/client/inputs.validation.cjs");const u={class:"cols-2-1_2 gap-small pd-small bg-white"},n=e.createElementVNode("section",{class:"w-100 desktop-only o-hidden radius-big bg-grad-main"},null,-1),s={__name:"Auth",setup(a){return e.ref(null),e.ref(null),e.ref(null),r.useRoute(),r.useRouter(),e.ref("email"),(o,c)=>{const t=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",u,[e.createVNode(t,{class:"pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center"},{default:e.withCtx(({Component:i,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{ref:"page",key:l.path,localPosition:o.localPosition},null,8,["localPosition"]))]),_:2},1024)]),_:1}),n])}}};exports.default=s;
@@ -1,7 +1,7 @@
1
1
  import { ref as e, resolveComponent as a, openBlock as o, createElementBlock as m, createVNode as t, withCtx as r, Transition as c, createBlock as p, resolveDynamicComponent as u, createElementVNode as d } from "vue";
2
2
  import "../../../../components/Tab/Tab.vue.js";
3
3
  import "../../../../components/Field/Field.vue.js";
4
- import "../../../../components/Button/Button.vue2.js";
4
+ import "../../../../components/Button/Button.vue.js";
5
5
  import "../../../../../../node_modules/vue3-carousel/dist/carousel.css.js";
6
6
  import "vue-i18n";
7
7
  import "../../../../../../node_modules/vue3-carousel/dist/carousel.es.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("../../../../components/Field/Field.vue.cjs");const f=require("vue-router"),D=require("vue-i18n"),c=require("../../store/auth.cjs"),p=require("../../store/twofa.cjs"),y=require("../../../globals/store/globals.cjs"),v=require("./EnterCode.vue2.cjs"),I={class:"t-center pd-medium"},q={class:"mn-medium"},k={class:"mn-big t-transp"},C={class:"w-100 mn-big flex-nowrap flex"},N={key:1},E={__name:"EnterCode",setup(P){const m=f.useRoute(),w=f.useRouter(),{t:d}=D.useI18n({inheritLocale:!0,useScope:"local"}),o=n.reactive({digits:["","","",""],error:null});n.watch(()=>o.digits[0],s=>{if(console.log(String(s)),console.log(String(s).length),s&&String(s).length>1){let e=String(s).split("");console.log(e);let t=[...o.digits];e.forEach((l,r)=>{console.log(r),console.log(t[r]),console.log(l),t[r]=l}),o.digits=t,u(3)}});const g=n.ref(null),i=n.ref(0);async function S(){try{await p.sendCode(c.state.user,m.query.type,c.state.user.phone?"phone":"email"),i.value=30;const s=setInterval(()=>{i.value>0?i.value-=1:clearInterval(s)},1e3)}catch{y.setError({response:{data:{errorCode:"CODE_NOT_SENT"}}})}}const a=(s,e)=>{if(s.key==="Backspace"&&(o.digits[e]===null||o.digits[e]===void 0||o.digits[e]==="")){s.preventDefault();const t=document.querySelectorAll("input"),l=e>0?t[e-1]:null;l&&(l.focus(),l.setSelectionRange(l.value.length,l.value.length))}},u=s=>{const e=document.querySelectorAll("input"),t=e[s+1],l=s>0?e[s-1]:null;if(o.digits[s]!==""&&o.digits[s]!==null&&o.digits[s]!==void 0&&s<4&&(s<3?t.focus():g.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,w.push({path:"/auth/enter-password",query:{type:p.state.code.type,method:m.query.method}})):(y.setError({response:{data:{errorCode:"WRONG_CODE"}}}),g.value.focus(),o.digits=["","","",""])}};return(s,e)=>(n.openBlock(),n.createElementBlock("section",I,[n.createElementVNode("h3",q,n.toDisplayString(n.unref(d)("verifyNumberTitle")),1),n.createElementVNode("p",k,n.toDisplayString(n.unref(d)("instructions")),1),n.createElementVNode("div",C,[n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[0]||(e[0]=t=>o.digits[0]=t),ref_key:"firstInput",ref:g,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:S,class:"t-blue"},n.toDisplayString(n.unref(d)("resendCode")),1)):(n.openBlock(),n.createElementBlock("span",N,n.toDisplayString(i.value)+" "+n.toDisplayString(n.unref(d)("secondsResend")),1))]))}};typeof v.default=="function"&&v.default(E);exports.default=E;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("../../../../components/Field/Field.vue.cjs");const c=require("vue-router"),S=require("vue-i18n"),f=require("../../store/auth.cjs"),g=require("../../store/twofa.cjs"),y=require("../../../globals/store/globals.cjs"),b={class:"t-center pd-medium"},D={class:"mn-medium"},I={class:"mn-big t-transp"},k={class:"w-100 mn-big flex-nowrap flex"},q={key:1},N={__name:"EnterCode",setup(C){const m=c.useRoute(),v=c.useRouter(),{t:d}=S.useI18n({inheritLocale:!0,useScope:"local"}),o=n.reactive({digits:["","","",""],error:null});n.watch(()=>o.digits[0],s=>{if(console.log(String(s)),console.log(String(s).length),s&&String(s).length>1){let e=String(s).split("");console.log(e);let t=[...o.digits];e.forEach((l,r)=>{console.log(r),console.log(t[r]),console.log(l),t[r]=l}),o.digits=t,u(3)}});const p=n.ref(null),i=n.ref(0);async function w(){try{await g.sendCode(f.state.user,m.query.type,f.state.user.phone?"phone":"email"),i.value=30;const s=setInterval(()=>{i.value>0?i.value-=1:clearInterval(s)},1e3)}catch{y.setError({response:{data:{errorCode:"CODE_NOT_SENT"}}})}}const a=(s,e)=>{if(s.key==="Backspace"&&(o.digits[e]===null||o.digits[e]===void 0||o.digits[e]==="")){s.preventDefault();const t=document.querySelectorAll("input"),l=e>0?t[e-1]:null;l&&(l.focus(),l.setSelectionRange(l.value.length,l.value.length))}},u=s=>{const e=document.querySelectorAll("input"),t=e[s+1],l=s>0?e[s-1]:null;if(o.digits[s]!==""&&o.digits[s]!==null&&o.digits[s]!==void 0&&s<4&&(s<3?t.focus():p.value.focus()),(o.digits[s]===null||o.digits[s]===void 0||o.digits[s]==="")&&s>0&&l.focus(),o.digits.every(r=>r!=="")){const r=o.digits.join(""),E=g.state.code.code.toString();r===E?(g.state.code.isValid=!0,v.push({path:"/auth/enter-password",query:{type:g.state.code.type,method:m.query.method}})):(y.setError({response:{data:{errorCode:"WRONG_CODE"}}}),p.value.focus(),o.digits=["","","",""])}};return(s,e)=>(n.openBlock(),n.createElementBlock("section",b,[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:p,maxlength:"1",onInput:e[1]||(e[1]=t=>u(0)),onPaste:e[2]||(e[2]=t=>s.onPaste(t,0)),onKeydown:e[3]||(e[3]=t=>a(t,0)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[0]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[4]||(e[4]=t=>o.digits[1]=t),maxlength:"1",onInput:e[5]||(e[5]=t=>u(1)),onPaste:e[6]||(e[6]=t=>s.onPaste(t,1)),onKeydown:e[7]||(e[7]=t=>a(t,1)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[1]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[8]||(e[8]=t=>o.digits[2]=t),maxlength:"1",onInput:e[9]||(e[9]=t=>u(2)),onPaste:e[10]||(e[10]=t=>s.onPaste(t,2)),onKeydown:e[11]||(e[11]=t=>a(t,2)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[2]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[12]||(e[12]=t=>o.digits[3]=t),maxlength:"1",onInput:e[13]||(e[13]=t=>u(3)),onPaste:e[14]||(e[14]=t=>s.onPaste(t,3)),onKeydown:e[15]||(e[15]=t=>a(t,3)),class:"w-100 h1 pd-small t-center bg-grey radius-small"},null,544),[[n.vModelText,o.digits[3]]])]),i.value<1?(n.openBlock(),n.createElementBlock("a",{key:0,onClick:w,class:"t-blue"},n.toDisplayString(n.unref(d)("resendCode")),1)):(n.openBlock(),n.createElementBlock("span",q,n.toDisplayString(i.value)+" "+n.toDisplayString(n.unref(d)("secondsResend")),1))]))}};exports.default=N;
@@ -1,38 +1,37 @@
1
- import { reactive as $, watch as q, ref as I, openBlock as v, createElementBlock as c, createElementVNode as r, toDisplayString as d, unref as m, withDirectives as g, vModelText as f } from "vue";
1
+ import { reactive as D, watch as $, ref as b, openBlock as v, createElementBlock as c, createElementVNode as r, toDisplayString as d, unref as m, withDirectives as g, vModelText as f } from "vue";
2
2
  import "../../../../components/Field/Field.vue.js";
3
- import { useRoute as K, useRouter as N } from "vue-router";
4
- import { useI18n as R } from "vue-i18n";
3
+ import { useRoute as q, useRouter as K } from "vue-router";
4
+ import { useI18n as N } from "vue-i18n";
5
5
  import { state as S } from "../../store/auth.js";
6
- import { state as b, sendCode as T } from "../../store/twofa.js";
6
+ import { state as w, sendCode as R } from "../../store/twofa.js";
7
7
  import { setError as C } from "../../../globals/store/globals.js";
8
- import k from "./EnterCode.vue2.js";
9
- const A = { class: "t-center pd-medium" }, O = { class: "mn-medium" }, U = { class: "mn-big t-transp" }, B = { class: "w-100 mn-big flex-nowrap flex" }, V = { key: 1 }, j = {
8
+ const T = { class: "t-center pd-medium" }, A = { class: "mn-medium" }, O = { class: "mn-big t-transp" }, U = { class: "w-100 mn-big flex-nowrap flex" }, B = { key: 1 }, H = {
10
9
  __name: "EnterCode",
11
- setup(G) {
12
- const w = K(), E = N(), { t: p } = R({
10
+ setup(V) {
11
+ const I = q(), k = K(), { t: p } = N({
13
12
  inheritLocale: !0,
14
13
  useScope: "local"
15
- }), o = $({
14
+ }), n = D({
16
15
  digits: ["", "", "", ""],
17
16
  error: null
18
17
  });
19
- q(
20
- () => o.digits[0],
18
+ $(
19
+ () => n.digits[0],
21
20
  (s) => {
22
21
  if (console.log(String(s)), console.log(String(s).length), s && String(s).length > 1) {
23
22
  let t = String(s).split("");
24
23
  console.log(t);
25
- let e = [...o.digits];
26
- t.forEach((n, l) => {
27
- console.log(l), console.log(e[l]), console.log(n), e[l] = n;
28
- }), o.digits = e, u(3);
24
+ let e = [...n.digits];
25
+ t.forEach((o, l) => {
26
+ console.log(l), console.log(e[l]), console.log(o), e[l] = o;
27
+ }), n.digits = e, u(3);
29
28
  }
30
29
  }
31
30
  );
32
- const y = I(null), i = I(0);
33
- async function P() {
31
+ const y = b(null), i = b(0);
32
+ async function E() {
34
33
  try {
35
- await T(S.user, w.query.type, S.user.phone ? "phone" : "email"), i.value = 30;
34
+ await R(S.user, I.query.type, S.user.phone ? "phone" : "email"), i.value = 30;
36
35
  const s = setInterval(() => {
37
36
  i.value > 0 ? i.value -= 1 : clearInterval(s);
38
37
  }, 1e3);
@@ -41,28 +40,28 @@ const A = { class: "t-center pd-medium" }, O = { class: "mn-medium" }, U = { cla
41
40
  }
42
41
  }
43
42
  const a = (s, t) => {
44
- if (s.key === "Backspace" && (o.digits[t] === null || o.digits[t] === void 0 || o.digits[t] === "")) {
43
+ if (s.key === "Backspace" && (n.digits[t] === null || n.digits[t] === void 0 || n.digits[t] === "")) {
45
44
  s.preventDefault();
46
- const e = document.querySelectorAll("input"), n = t > 0 ? e[t - 1] : null;
47
- n && (n.focus(), n.setSelectionRange(n.value.length, n.value.length));
45
+ const e = document.querySelectorAll("input"), o = t > 0 ? e[t - 1] : null;
46
+ o && (o.focus(), o.setSelectionRange(o.value.length, o.value.length));
48
47
  }
49
48
  }, u = (s) => {
50
- const t = document.querySelectorAll("input"), e = t[s + 1], n = s > 0 ? t[s - 1] : null;
51
- if (o.digits[s] !== "" && o.digits[s] !== null && o.digits[s] !== void 0 && s < 4 && (s < 3 ? e.focus() : y.value.focus()), (o.digits[s] === null || o.digits[s] === void 0 || o.digits[s] === "") && s > 0 && n.focus(), o.digits.every((l) => l !== "")) {
52
- const l = o.digits.join(""), D = b.code.code.toString();
53
- l === D ? (b.code.isValid = !0, E.push({
49
+ const t = document.querySelectorAll("input"), e = t[s + 1], o = s > 0 ? t[s - 1] : null;
50
+ if (n.digits[s] !== "" && n.digits[s] !== null && n.digits[s] !== void 0 && s < 4 && (s < 3 ? e.focus() : y.value.focus()), (n.digits[s] === null || n.digits[s] === void 0 || n.digits[s] === "") && s > 0 && o.focus(), n.digits.every((l) => l !== "")) {
51
+ const l = n.digits.join(""), P = w.code.code.toString();
52
+ l === P ? (w.code.isValid = !0, k.push({
54
53
  path: "/auth/enter-password",
55
- query: { type: b.code.type, method: w.query.method }
56
- })) : (C({ response: { data: { errorCode: "WRONG_CODE" } } }), y.value.focus(), o.digits = ["", "", "", ""]);
54
+ query: { type: w.code.type, method: I.query.method }
55
+ })) : (C({ response: { data: { errorCode: "WRONG_CODE" } } }), y.value.focus(), n.digits = ["", "", "", ""]);
57
56
  }
58
57
  };
59
- return (s, t) => (v(), c("section", A, [
60
- r("h3", O, d(m(p)("verifyNumberTitle")), 1),
61
- r("p", U, d(m(p)("instructions")), 1),
62
- r("div", B, [
58
+ return (s, t) => (v(), c("section", T, [
59
+ r("h3", A, d(m(p)("verifyNumberTitle")), 1),
60
+ r("p", O, d(m(p)("instructions")), 1),
61
+ r("div", U, [
63
62
  g(r("input", {
64
63
  type: "number",
65
- "onUpdate:modelValue": t[0] || (t[0] = (e) => o.digits[0] = e),
64
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => n.digits[0] = e),
66
65
  ref_key: "firstInput",
67
66
  ref: y,
68
67
  maxlength: "1",
@@ -71,51 +70,50 @@ const A = { class: "t-center pd-medium" }, O = { class: "mn-medium" }, U = { cla
71
70
  onKeydown: t[3] || (t[3] = (e) => a(e, 0)),
72
71
  class: "w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"
73
72
  }, null, 544), [
74
- [f, o.digits[0]]
73
+ [f, n.digits[0]]
75
74
  ]),
76
75
  g(r("input", {
77
76
  type: "number",
78
- "onUpdate:modelValue": t[4] || (t[4] = (e) => o.digits[1] = e),
77
+ "onUpdate:modelValue": t[4] || (t[4] = (e) => n.digits[1] = e),
79
78
  maxlength: "1",
80
79
  onInput: t[5] || (t[5] = (e) => u(1)),
81
80
  onPaste: t[6] || (t[6] = (e) => s.onPaste(e, 1)),
82
81
  onKeydown: t[7] || (t[7] = (e) => a(e, 1)),
83
82
  class: "w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"
84
83
  }, null, 544), [
85
- [f, o.digits[1]]
84
+ [f, n.digits[1]]
86
85
  ]),
87
86
  g(r("input", {
88
87
  type: "number",
89
- "onUpdate:modelValue": t[8] || (t[8] = (e) => o.digits[2] = e),
88
+ "onUpdate:modelValue": t[8] || (t[8] = (e) => n.digits[2] = e),
90
89
  maxlength: "1",
91
90
  onInput: t[9] || (t[9] = (e) => u(2)),
92
91
  onPaste: t[10] || (t[10] = (e) => s.onPaste(e, 2)),
93
92
  onKeydown: t[11] || (t[11] = (e) => a(e, 2)),
94
93
  class: "w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"
95
94
  }, null, 544), [
96
- [f, o.digits[2]]
95
+ [f, n.digits[2]]
97
96
  ]),
98
97
  g(r("input", {
99
98
  type: "number",
100
- "onUpdate:modelValue": t[12] || (t[12] = (e) => o.digits[3] = e),
99
+ "onUpdate:modelValue": t[12] || (t[12] = (e) => n.digits[3] = e),
101
100
  maxlength: "1",
102
101
  onInput: t[13] || (t[13] = (e) => u(3)),
103
102
  onPaste: t[14] || (t[14] = (e) => s.onPaste(e, 3)),
104
103
  onKeydown: t[15] || (t[15] = (e) => a(e, 3)),
105
104
  class: "w-100 h1 pd-small t-center bg-grey radius-small"
106
105
  }, null, 544), [
107
- [f, o.digits[3]]
106
+ [f, n.digits[3]]
108
107
  ])
109
108
  ]),
110
109
  i.value < 1 ? (v(), c("a", {
111
110
  key: 0,
112
- onClick: P,
111
+ onClick: E,
113
112
  class: "t-blue"
114
- }, d(m(p)("resendCode")), 1)) : (v(), c("span", V, d(i.value) + " " + d(m(p)("secondsResend")), 1))
113
+ }, d(m(p)("resendCode")), 1)) : (v(), c("span", B, d(i.value) + " " + d(m(p)("secondsResend")), 1))
115
114
  ]));
116
115
  }
117
116
  };
118
- typeof k == "function" && k(j);
119
117
  export {
120
- j as default
118
+ H as default
121
119
  };
@@ -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"),h=require("../../../../components/Button/Button.vue.cjs"),i=require("vue-router"),y=require("vue-i18n"),t=require("../../store/auth.cjs"),u=require("../../../middlewares/client/inputs.validation.cjs");require("./EnterPassword.vue2.cjs");const d=require("./EnterPassword.vue3.cjs"),w={class:"t-left pd-medium"},g={class:"mn-small"},k={key:0,class:"mn-semi t-transp"},q={key:1,class:"mn-semi t-transp"},B={class:"mn-semi radius-small o-hidden"},v={key:2,class:"p-medium t-semi mn-semi"},E=e.createElementVNode("a",{class:"t-second",href:"https://thecommunephuket.com/legal/eula",target:"_blank",rel:"noopener noreferrer"},"End User License Agreement (EULA)",-1),P={key:0},b={key:1},c={__name:"EnterPassword",setup(S){const n=e.ref(null),{t:s}=y.useI18n({inheritLocale:!0,useScope:"local"}),r=i.useRoute(),p=i.useRouter();e.ref("phone");async function m(){try{await u.validateInputs(n,u.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 f(){p.push({name:"User Profile",params:{_id:t.state.user._id},query:{afterAuth:"true"}})}return(_,o)=>(e.openBlock(),e.createElementBlock("section",w,[e.createElementVNode("h3",g,e.toDisplayString(e.unref(s)("almostDone")),1),e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("p",k,e.toDisplayString(e.unref(s)("newPasswordPrompt")),1)):(e.openBlock(),e.createElementBlock("p",q,e.toDisplayString(e.unref(s)("registrationPasswordPrompt")),1)),e.createElementVNode("div",B,[e.createVNode(l.default,{field:t.state.user.password,"onUpdate:field":o[0]||(o[0]=a=>t.state.user.password=a),type:"password",validation:n.value,placeholder:e.unref(s)("passwordPlaceholder"),class:"bg-grey pd-small radius-small mn-thin"},null,8,["field","validation","placeholder"]),e.createVNode(l.default,{field:t.state.user.passwordRepeat,"onUpdate:field":o[1]||(o[1]=a=>t.state.user.passwordRepeat=a),type:"password",placeholder:e.unref(s)("repeatPasswordPlaceholder"),class:"bg-grey pd-small radius-small mn-thin"},null,8,["field","placeholder"])]),e.unref(r).query.method!=="reset-password"?(e.openBlock(),e.createElementBlock("div",v,[e.createTextVNode(" By registering, you agree to our "),E])):e.createCommentVNode("",!0),e.createVNode(h.default,{submit:m,callback:f,class:"mn-big"},{default:e.withCtx(()=>[e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("span",P,e.toDisplayString(e.unref(s)("changePasswordBtn")),1)):(e.openBlock(),e.createElementBlock("span",b,e.toDisplayString(e.unref(s)("registerBtn")),1))]),_:1})]))}};typeof d.default=="function"&&d.default(c);exports.default=c;
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");require("./EnterPassword.vue2.cjs");const y={class:"t-left pd-medium"},_={class:"mn-small"},w={key:0,class:"mn-semi t-transp"},g={key:1,class:"mn-semi t-transp"},k={class:"mn-semi radius-small o-hidden"},q={key:2,class:"p-medium t-semi mn-semi"},B=e.createElementVNode("a",{class:"t-second",href:"https://thecommunephuket.com/legal/eula",target:"_blank",rel:"noopener noreferrer"},"End User License Agreement (EULA)",-1),v={key:0},E={key:1},P={__name:"EnterPassword",setup(b){const n=e.ref(null),{t:s}=h.useI18n({inheritLocale:!0,useScope:"local"}),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",w,e.toDisplayString(e.unref(s)("newPasswordPrompt")),1)):(e.openBlock(),e.createElementBlock("p",g,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-thin"},null,8,["field","validation","placeholder"]),e.createVNode(l.default,{field:t.state.user.passwordRepeat,"onUpdate:field":o[1]||(o[1]=a=>t.state.user.passwordRepeat=a),type:"password",placeholder:e.unref(s)("repeatPasswordPlaceholder"),class:"bg-grey pd-small radius-small mn-thin"},null,8,["field","placeholder"])]),e.unref(r).query.method!=="reset-password"?(e.openBlock(),e.createElementBlock("div",q,[e.createTextVNode(" By registering, you agree to our "),B])):e.createCommentVNode("",!0),e.createVNode(f.default,{submit:c,callback:p,class:"mn-big"},{default:e.withCtx(()=>[e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("span",v,e.toDisplayString(e.unref(s)("changePasswordBtn")),1)):(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(e.unref(s)("registerBtn")),1))]),_:1})]))}};exports.default=P;