@ozdao/prometheus-framework 0.1.80 → 0.1.82

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  2. package/dist/prometheus-framework/src/components/Button/Button.vue.js +224 -2
  3. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  4. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -224
  5. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  6. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +2 -49
  7. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  8. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +49 -2
  9. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/Field/Field.vue.js +76 -2
  11. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  12. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -76
  13. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  14. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  15. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -1
  17. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  18. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +44 -2
  19. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  20. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +2 -44
  21. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  23. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +16 -18
  25. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +27 -29
  27. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
  29. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +31 -33
  31. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +29 -29
  33. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +32 -34
  35. package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.cjs +1 -0
  36. package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.js +20 -0
  37. package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.cjs +1 -0
  38. package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.js +26 -0
  39. package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.cjs +1 -0
  40. package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.js +30 -0
  41. package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.js +1 -1
  43. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.cjs +1 -0
  44. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.js +32 -0
  45. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/auth/store/auth.js +71 -62
  47. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  49. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  51. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  53. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  55. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  57. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  59. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
  61. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
  63. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  65. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  69. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  71. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +3 -3
  73. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  75. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  77. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  81. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -1
  83. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  85. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +1 -1
  87. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
  89. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  91. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
  95. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  97. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  99. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  101. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +1 -1
  103. package/dist/style.css +1 -1
  104. package/package.json +1 -1
  105. package/src/modules/auth/components/pages/EnterCode.vue +4 -4
  106. package/src/modules/auth/components/pages/EnterPassword.vue +3 -4
  107. package/src/modules/auth/components/pages/ResetPassword.vue +4 -5
  108. package/src/modules/auth/components/pages/SignIn.vue +3 -3
  109. package/src/modules/auth/components/pages/SignUp.vue +4 -5
  110. package/src/modules/auth/localization/EnterCode.json +13 -11
  111. package/src/modules/auth/localization/EnterPassword.json +19 -17
  112. package/src/modules/auth/localization/ResetPassword.json +23 -21
  113. package/src/modules/auth/localization/SignIn.json +1 -1
  114. package/src/modules/auth/localization/SignUp.json +25 -23
  115. package/src/modules/auth/store/auth.js +11 -7
@@ -1,4 +1,78 @@
1
- const e = "";
1
+ import { ref as f, openBlock as a, createElementBlock as d, Fragment as m, createElementVNode as o, normalizeClass as b, toDisplayString as s, createCommentVNode as i, renderSlot as c, createVNode as v, Transition as x, withCtx as y } from "vue";
2
+ import "./Field.vue2.js";
3
+ import h from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const k = {
5
+ key: 0,
6
+ class: "t-transp mn-r-small"
7
+ }, p = { class: "w-100" }, g = ["type", "value", "placeholder", "tabindex"], w = ["value", "placeholder", "tabindex"], F = {
8
+ key: 1,
9
+ class: "t-transp mn-l-small"
10
+ }, B = {
11
+ key: 0,
12
+ class: "mn-t-thin mn-thin mn-b-thin invalid-feedback"
13
+ }, C = {
14
+ __name: "Field",
15
+ props: {
16
+ label: null,
17
+ symbol: null,
18
+ type: "text",
19
+ placeholder: "Enter something here",
20
+ field: null,
21
+ validation: !1,
22
+ disabled: !1,
23
+ tabindex: -1
24
+ },
25
+ emits: ["update:field", "focus", "blur"],
26
+ setup(e, { emit: n }) {
27
+ const u = f(e.field);
28
+ return (r, l) => (a(), d(m, null, [
29
+ o("div", {
30
+ class: b([[
31
+ r.$attrs.class,
32
+ {
33
+ "bg-fourth-nano": e.validation
34
+ }
35
+ ], "flex-center flex-nowrap flex"])
36
+ }, [
37
+ e.label ? (a(), d("div", k, [
38
+ o("span", null, s(e.label), 1)
39
+ ])) : i("", !0),
40
+ o("div", p, [
41
+ e.type !== "textarea" ? (a(), d("input", {
42
+ key: 0,
43
+ onInput: l[0] || (l[0] = (t) => u.value = n("update:field", t.target.value)),
44
+ onFocus: l[1] || (l[1] = (t) => n("focus", t)),
45
+ onBlur: l[2] || (l[2] = (t) => n("blur", t)),
46
+ type: e.type,
47
+ class: "w-100",
48
+ value: e.field,
49
+ placeholder: e.placeholder,
50
+ tabindex: e.tabindex
51
+ }, null, 40, g)) : (a(), d("textarea", {
52
+ key: 1,
53
+ onInput: l[3] || (l[3] = (t) => u.value = n("update:field", t.target.value)),
54
+ onFocus: l[4] || (l[4] = (t) => n("focus", t)),
55
+ onBlur: l[5] || (l[5] = (t) => n("blur", t)),
56
+ class: "w-100",
57
+ value: e.field,
58
+ placeholder: e.placeholder,
59
+ tabindex: e.tabindex
60
+ }, null, 40, w))
61
+ ]),
62
+ c(r.$slots, "default", {}, void 0, !0),
63
+ e.symbol ? (a(), d("div", F, [
64
+ o("span", null, s(e.symbol), 1)
65
+ ])) : i("", !0)
66
+ ], 2),
67
+ v(x, { name: "fade" }, {
68
+ default: y(() => [
69
+ e.validation ? (a(), d("div", B, " * " + s(e.validation.message), 1)) : i("", !0)
70
+ ]),
71
+ _: 1
72
+ })
73
+ ], 64));
74
+ }
75
+ }, S = /* @__PURE__ */ h(C, [["__scopeId", "data-v-839e7ced"]]);
2
76
  export {
3
- e as default
77
+ S as default
4
78
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Field.vue.cjs");const s=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),u={key:0,class:"t-transp mn-r-small"},r={class:"w-100"},c=["type","value","placeholder","tabindex"],m=["value","placeholder","tabindex"],f={key:1,class:"t-transp mn-l-small"},b={key:0,class:"mn-t-thin mn-thin mn-b-thin invalid-feedback"},v={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,validation:!1,disabled:!1,tabindex:-1},emits:["update:field","focus","blur"],setup(l,{emit:a}){const i=l,o=e.ref(i.field);return(d,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[d.$attrs.class,{"bg-fourth-nano":l.validation}],"flex-center flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",r,[l.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:t[0]||(t[0]=n=>o.value=a("update:field",n.target.value)),onFocus:t[1]||(t[1]=n=>a("focus",n)),onBlur:t[2]||(t[2]=n=>a("blur",n)),type:l.type,class:"w-100",value:l.field,placeholder:l.placeholder,tabindex:l.tabindex},null,40,c)):(e.openBlock(),e.createElementBlock("textarea",{key:1,onInput:t[3]||(t[3]=n=>o.value=a("update:field",n.target.value)),onFocus:t[4]||(t[4]=n=>a("focus",n)),onBlur:t[5]||(t[5]=n=>a("blur",n)),class:"w-100",value:l.field,placeholder:l.placeholder,tabindex:l.tabindex},null,40,m))]),e.renderSlot(d.$slots,"default",{},void 0,!0),l.symbol?(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("span",null,e.toDisplayString(l.symbol),1)])):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.validation?(e.openBlock(),e.createElementBlock("div",b," * "+e.toDisplayString(l.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},k=s.default(v,[["__scopeId","data-v-839e7ced"]]);exports.default=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1,78 +1,4 @@
1
- import { ref as f, openBlock as a, createElementBlock as d, Fragment as m, createElementVNode as o, normalizeClass as b, toDisplayString as s, createCommentVNode as i, renderSlot as c, createVNode as v, Transition as x, withCtx as y } from "vue";
2
- import "./Field.vue.js";
3
- import h from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const k = {
5
- key: 0,
6
- class: "t-transp mn-r-small"
7
- }, p = { class: "w-100" }, g = ["type", "value", "placeholder", "tabindex"], w = ["value", "placeholder", "tabindex"], F = {
8
- key: 1,
9
- class: "t-transp mn-l-small"
10
- }, B = {
11
- key: 0,
12
- class: "mn-t-thin mn-thin mn-b-thin invalid-feedback"
13
- }, C = {
14
- __name: "Field",
15
- props: {
16
- label: null,
17
- symbol: null,
18
- type: "text",
19
- placeholder: "Enter something here",
20
- field: null,
21
- validation: !1,
22
- disabled: !1,
23
- tabindex: -1
24
- },
25
- emits: ["update:field", "focus", "blur"],
26
- setup(e, { emit: n }) {
27
- const u = f(e.field);
28
- return (r, l) => (a(), d(m, null, [
29
- o("div", {
30
- class: b([[
31
- r.$attrs.class,
32
- {
33
- "bg-fourth-nano": e.validation
34
- }
35
- ], "flex-center flex-nowrap flex"])
36
- }, [
37
- e.label ? (a(), d("div", k, [
38
- o("span", null, s(e.label), 1)
39
- ])) : i("", !0),
40
- o("div", p, [
41
- e.type !== "textarea" ? (a(), d("input", {
42
- key: 0,
43
- onInput: l[0] || (l[0] = (t) => u.value = n("update:field", t.target.value)),
44
- onFocus: l[1] || (l[1] = (t) => n("focus", t)),
45
- onBlur: l[2] || (l[2] = (t) => n("blur", t)),
46
- type: e.type,
47
- class: "w-100",
48
- value: e.field,
49
- placeholder: e.placeholder,
50
- tabindex: e.tabindex
51
- }, null, 40, g)) : (a(), d("textarea", {
52
- key: 1,
53
- onInput: l[3] || (l[3] = (t) => u.value = n("update:field", t.target.value)),
54
- onFocus: l[4] || (l[4] = (t) => n("focus", t)),
55
- onBlur: l[5] || (l[5] = (t) => n("blur", t)),
56
- class: "w-100",
57
- value: e.field,
58
- placeholder: e.placeholder,
59
- tabindex: e.tabindex
60
- }, null, 40, w))
61
- ]),
62
- c(r.$slots, "default", {}, void 0, !0),
63
- e.symbol ? (a(), d("div", F, [
64
- o("span", null, s(e.symbol), 1)
65
- ])) : i("", !0)
66
- ], 2),
67
- v(x, { name: "fade" }, {
68
- default: y(() => [
69
- e.validation ? (a(), d("div", B, " * " + s(e.validation.message), 1)) : i("", !0)
70
- ]),
71
- _: 1
72
- })
73
- ], 64));
74
- }
75
- }, S = /* @__PURE__ */ h(C, [["__scopeId", "data-v-839e7ced"]]);
1
+ const e = "";
76
2
  export {
77
- S as default
3
+ e as default
78
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("../Field/Field.vue2.cjs"),k=require("vue-i18n"),B={class:"pd-thin radius-extra flex-nowrap flex"},S=["innerHTML"],_={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["First placeholder","Second placeholder","Third placeholder"],ru:["Первый плейсхолдер","Второй плейсхолдер","Третий плейсхолдер"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(c,{emit:v}){const t=c,{t:w,locale:p}=k.useI18n();let r=e.ref(0),n=e.ref(t.input),s=e.ref(t.placeholder),i=e.ref(t.enableTyping),d=e.ref(null),f=e.ref(""),o=e.ref(!0),h=null;function b(){v("action")}function T(a){v("update:input",a),f.value=a}function g(){r.value=(r.value+1)%t.placeholderTexts[p.value].length}function I(){i.value=!1,clearInterval(d.value),s.value=t.placeholder,f.value||(n.value="")}function m(){!f.value&&t.enableTyping&&(i.value=!0,s.value="",y())}function y(){let a=t.placeholderTexts[p.value][r.value],l=0,u=!1;h=setInterval(()=>{o.value=!o.value},200),d.value=setInterval(()=>{i.value&&(u?(n.value=n.value.slice(0,-1),n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l--):(n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l++),l>a.length&&t.loopTyping&&setTimeout(()=>{u=!0,n.value=a.substring(0,l)},333),l===0&&u&&(u=!1,g(),a=t.placeholderTexts[p.value][r.value]))},t.typingSpeed)}return e.onMounted(()=>{t.enableTyping&&y()}),e.watchEffect(()=>{i.value||(clearInterval(d.value),clearInterval(h))}),(a,l)=>(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(x.default,{field:e.unref(n),"onUpdate:field":[l[0]||(l[0]=u=>e.isRef(n)?n.value=u:n=u),T],placeholder:e.unref(s),onInput:g,onFocus:I,onBlur:m,class:"w-100 pd-small p-big"},null,8,["field","placeholder"]),c.action?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:b,class:"w-min hover_bg-white hover-t-black t-black bg-main button",innerHTML:c.action},null,8,S)):e.createCommentVNode("",!0)]))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("../Field/Field.vue.cjs"),k=require("vue-i18n"),B={class:"pd-thin radius-extra flex-nowrap flex"},S=["innerHTML"],_={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["First placeholder","Second placeholder","Third placeholder"],ru:["Первый плейсхолдер","Второй плейсхолдер","Третий плейсхолдер"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(c,{emit:v}){const t=c,{t:w,locale:p}=k.useI18n();let r=e.ref(0),n=e.ref(t.input),s=e.ref(t.placeholder),i=e.ref(t.enableTyping),d=e.ref(null),f=e.ref(""),o=e.ref(!0),h=null;function b(){v("action")}function T(a){v("update:input",a),f.value=a}function g(){r.value=(r.value+1)%t.placeholderTexts[p.value].length}function I(){i.value=!1,clearInterval(d.value),s.value=t.placeholder,f.value||(n.value="")}function m(){!f.value&&t.enableTyping&&(i.value=!0,s.value="",y())}function y(){let a=t.placeholderTexts[p.value][r.value],l=0,u=!1;h=setInterval(()=>{o.value=!o.value},200),d.value=setInterval(()=>{i.value&&(u?(n.value=n.value.slice(0,-1),n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l--):(n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l++),l>a.length&&t.loopTyping&&setTimeout(()=>{u=!0,n.value=a.substring(0,l)},333),l===0&&u&&(u=!1,g(),a=t.placeholderTexts[p.value][r.value]))},t.typingSpeed)}return e.onMounted(()=>{t.enableTyping&&y()}),e.watchEffect(()=>{i.value||(clearInterval(d.value),clearInterval(h))}),(a,l)=>(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(x.default,{field:e.unref(n),"onUpdate:field":[l[0]||(l[0]=u=>e.isRef(n)?n.value=u:n=u),T],placeholder:e.unref(s),onInput:g,onFocus:I,onBlur:m,class:"w-100 pd-small p-big"},null,8,["field","placeholder"]),c.action?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:b,class:"w-min hover_bg-white hover-t-black t-black bg-main button",innerHTML:c.action},null,8,S)):e.createCommentVNode("",!0)]))}};exports.default=_;
@@ -1,5 +1,5 @@
1
1
  import { ref as u, onMounted as w, watchEffect as F, openBlock as b, createElementBlock as m, createVNode as S, unref as T, isRef as _, createCommentVNode as M } from "vue";
2
- import N from "../Field/Field.vue2.js";
2
+ import N from "../Field/Field.vue.js";
3
3
  import { useI18n as V } from "vue-i18n";
4
4
  const A = { class: "pd-thin radius-extra flex-nowrap flex" }, C = ["innerHTML"], O = {
5
5
  __name: "FieldBig",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../Button/Button.vue.cjs");require("./LocationMarker.vue2.cjs");const _=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),w=r=>(e.pushScopeId("data-v-29acef04"),r=r(),e.popScopeId(),r),h={class:"pos-relative map-container"},y=w(()=>e.createElementVNode("svg",{class:"i-medium",width:"98",height:"98",viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",fill:"white"}),e.createElementVNode("path",{d:"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",fill:"white"})],-1)),v=[y],L={__name:"LocationMarker",props:{location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},apiKey:String},emits:["update:location","update:address","update:country","update:state","update:city"],setup(r,{emit:a}){const t=r,d=e.ref(null);let c,s;e.onMounted(()=>{c=new google.maps.Map(d.value,{center:t.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1}),s=new google.maps.Marker({position:t.location,map:c,draggable:!0}),s.addListener("dragend",o=>{const n={lat:o.latLng.lat(),lng:o.latLng.lng()};a("update:location",n),u(n)})}),e.watchEffect(()=>{t.location&&s&&s.setPosition(new google.maps.LatLng(t.location.lat,t.location.lng))}),e.watchEffect(()=>{if(t.location&&c){const o=new google.maps.LatLng(t.location.lat,t.location.lng);c.setCenter(o)}});function u(o){new google.maps.Geocoder().geocode({location:o},(i,p)=>{if(p==="OK")if(i[0]){a("update:address",i[0].formatted_address);let g="",f="",C="";i[0].address_components.forEach(l=>{l.types.includes("country")&&(g=l.long_name),l.types.includes("administrative_area_level_1")&&(f=l.long_name),l.types.includes("locality")&&(C=l.long_name)}),a("update:country",g),a("update:state",f),a("update:city",C)}else console.error("No results found");else console.error("Geocoder failed due to: "+p)})}async function m(){navigator.geolocation?navigator.geolocation.getCurrentPosition(o=>{const n={lat:o.coords.latitude,lng:o.coords.longitude};a("update:location",n),u(n)},()=>{console.error("Error getting location")}):console.error("Geolocation is not supported by this browser.")}return(o,n)=>(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",{ref_key:"mapContainer",ref:d,class:"w-100 h-100"},null,512),e.createElementVNode("button",{class:"pos-absolute pos-t-regular pos-r-regular i-semi bg-second radius-extra",onClick:m},v)]))}},M=_.default(L,[["__scopeId","data-v-29acef04"]]);exports.default=M;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../Button/Button.vue2.cjs");require("./LocationMarker.vue2.cjs");const _=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),w=r=>(e.pushScopeId("data-v-29acef04"),r=r(),e.popScopeId(),r),h={class:"pos-relative map-container"},y=w(()=>e.createElementVNode("svg",{class:"i-medium",width:"98",height:"98",viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",fill:"white"}),e.createElementVNode("path",{d:"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",fill:"white"})],-1)),v=[y],L={__name:"LocationMarker",props:{location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},apiKey:String},emits:["update:location","update:address","update:country","update:state","update:city"],setup(r,{emit:a}){const t=r,d=e.ref(null);let c,s;e.onMounted(()=>{c=new google.maps.Map(d.value,{center:t.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1}),s=new google.maps.Marker({position:t.location,map:c,draggable:!0}),s.addListener("dragend",o=>{const n={lat:o.latLng.lat(),lng:o.latLng.lng()};a("update:location",n),u(n)})}),e.watchEffect(()=>{t.location&&s&&s.setPosition(new google.maps.LatLng(t.location.lat,t.location.lng))}),e.watchEffect(()=>{if(t.location&&c){const o=new google.maps.LatLng(t.location.lat,t.location.lng);c.setCenter(o)}});function u(o){new google.maps.Geocoder().geocode({location:o},(i,p)=>{if(p==="OK")if(i[0]){a("update:address",i[0].formatted_address);let g="",f="",C="";i[0].address_components.forEach(l=>{l.types.includes("country")&&(g=l.long_name),l.types.includes("administrative_area_level_1")&&(f=l.long_name),l.types.includes("locality")&&(C=l.long_name)}),a("update:country",g),a("update:state",f),a("update:city",C)}else console.error("No results found");else console.error("Geocoder failed due to: "+p)})}async function m(){navigator.geolocation?navigator.geolocation.getCurrentPosition(o=>{const n={lat:o.coords.latitude,lng:o.coords.longitude};a("update:location",n),u(n)},()=>{console.error("Error getting location")}):console.error("Geolocation is not supported by this browser.")}return(o,n)=>(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",{ref_key:"mapContainer",ref:d,class:"w-100 h-100"},null,512),e.createElementVNode("button",{class:"pos-absolute pos-t-regular pos-r-regular i-semi bg-second radius-extra",onClick:m},v)]))}},M=_.default(L,[["__scopeId","data-v-29acef04"]]);exports.default=M;
@@ -1,5 +1,5 @@
1
1
  import { ref as w, onMounted as h, watchEffect as m, openBlock as y, createElementBlock as v, createElementVNode as s, pushScopeId as L, popScopeId as M } from "vue";
2
- import "../Button/Button.vue.js";
2
+ import "../Button/Button.vue2.js";
3
3
  import "./LocationMarker.vue2.js";
4
4
  import k from "../../../../_virtual/_plugin-vue_export-helper.js";
5
5
  const b = (l) => (L("data-v-29acef04"), l = l(), M(), l), x = { class: "pos-relative map-container" }, E = /* @__PURE__ */ b(() => /* @__PURE__ */ s("svg", {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Tab.vue2.cjs");const b={class:""},m={class:"flex-nowrap flex-v-center flex"},v=["onClick"],p={__name:"Tab",props:{tabs:Array,selected:String,callback:Function},emits:["update:selected"],setup(s,{emit:o}){const l=s,n=e.ref(0);if(l.selected){const t=l.tabs.findIndex(c=>c.value===l.selected);t!==-1&&(n.value=t)}function i(t,c){n.value=t,o("update:selected",c.value),l.callback&&l.callback()}function u(t){return`${100/l.tabs.length*t}%`}function d(){return`${100/l.tabs.length}%`}const f=e.computed(()=>({left:u(n.value),width:d()}));return(t,c)=>(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("div",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tabs,(r,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,onClick:k=>i(a,r),class:e.normalizeClass([{"t-transp":a!==n.value},"z-index-1 t-center pd-small w-100"])},[e.createElementVNode("label",null,e.toDisplayString(r.name),1)],10,v))),128)),e.createElementVNode("div",{style:e.normalizeStyle(e.unref(f)),class:"radius-extra bg-main t-white tab-selector"},null,4)])]))}};exports.default=p;
@@ -1,4 +1,46 @@
1
- const e = "";
1
+ import { ref as p, computed as v, openBlock as c, createElementBlock as s, createElementVNode as r, Fragment as h, renderList as _, normalizeClass as g, toDisplayString as k, normalizeStyle as x, unref as y } from "vue";
2
+ import "./Tab.vue2.js";
3
+ const S = { class: "" }, T = { class: "flex-nowrap flex-v-center flex" }, w = ["onClick"], W = {
4
+ __name: "Tab",
5
+ props: {
6
+ tabs: Array,
7
+ selected: String,
8
+ callback: Function
9
+ },
10
+ emits: ["update:selected"],
11
+ setup(o, { emit: d }) {
12
+ const t = o, a = p(0);
13
+ if (t.selected) {
14
+ const e = t.tabs.findIndex((l) => l.value === t.selected);
15
+ e !== -1 && (a.value = e);
16
+ }
17
+ function u(e, l) {
18
+ a.value = e, d("update:selected", l.value), t.callback && t.callback();
19
+ }
20
+ function f(e) {
21
+ return `${100 / t.tabs.length * e}%`;
22
+ }
23
+ function b() {
24
+ return `${100 / t.tabs.length}%`;
25
+ }
26
+ const m = v(() => ({ left: f(a.value), width: b() }));
27
+ return (e, l) => (c(), s("div", S, [
28
+ r("div", T, [
29
+ (c(!0), s(h, null, _(o.tabs, (i, n) => (c(), s("div", {
30
+ key: n,
31
+ onClick: (z) => u(n, i),
32
+ class: g([{ "t-transp": n !== a.value }, "z-index-1 t-center pd-small w-100"])
33
+ }, [
34
+ r("label", null, k(i.name), 1)
35
+ ], 10, w))), 128)),
36
+ r("div", {
37
+ style: x(y(m)),
38
+ class: "radius-extra bg-main t-white tab-selector"
39
+ }, null, 4)
40
+ ])
41
+ ]));
42
+ }
43
+ };
2
44
  export {
3
- e as default
45
+ W as default
4
46
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Tab.vue.cjs");const b={class:""},m={class:"flex-nowrap flex-v-center flex"},v=["onClick"],p={__name:"Tab",props:{tabs:Array,selected:String,callback:Function},emits:["update:selected"],setup(s,{emit:o}){const l=s,n=e.ref(0);if(l.selected){const t=l.tabs.findIndex(c=>c.value===l.selected);t!==-1&&(n.value=t)}function i(t,c){n.value=t,o("update:selected",c.value),l.callback&&l.callback()}function u(t){return`${100/l.tabs.length*t}%`}function d(){return`${100/l.tabs.length}%`}const f=e.computed(()=>({left:u(n.value),width:d()}));return(t,c)=>(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("div",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tabs,(r,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,onClick:k=>i(a,r),class:e.normalizeClass([{"t-transp":a!==n.value},"z-index-1 t-center pd-small w-100"])},[e.createElementVNode("label",null,e.toDisplayString(r.name),1)],10,v))),128)),e.createElementVNode("div",{style:e.normalizeStyle(e.unref(f)),class:"radius-extra bg-main t-white tab-selector"},null,4)])]))}};exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1,46 +1,4 @@
1
- import { ref as p, computed as v, openBlock as c, createElementBlock as s, createElementVNode as r, Fragment as h, renderList as _, normalizeClass as g, toDisplayString as k, normalizeStyle as x, unref as y } from "vue";
2
- import "./Tab.vue.js";
3
- const S = { class: "" }, T = { class: "flex-nowrap flex-v-center flex" }, w = ["onClick"], W = {
4
- __name: "Tab",
5
- props: {
6
- tabs: Array,
7
- selected: String,
8
- callback: Function
9
- },
10
- emits: ["update:selected"],
11
- setup(o, { emit: d }) {
12
- const t = o, a = p(0);
13
- if (t.selected) {
14
- const e = t.tabs.findIndex((l) => l.value === t.selected);
15
- e !== -1 && (a.value = e);
16
- }
17
- function u(e, l) {
18
- a.value = e, d("update:selected", l.value), t.callback && t.callback();
19
- }
20
- function f(e) {
21
- return `${100 / t.tabs.length * e}%`;
22
- }
23
- function b() {
24
- return `${100 / t.tabs.length}%`;
25
- }
26
- const m = v(() => ({ left: f(a.value), width: b() }));
27
- return (e, l) => (c(), s("div", S, [
28
- r("div", T, [
29
- (c(!0), s(h, null, _(o.tabs, (i, n) => (c(), s("div", {
30
- key: n,
31
- onClick: (z) => u(n, i),
32
- class: g([{ "t-transp": n !== a.value }, "z-index-1 t-center pd-small w-100"])
33
- }, [
34
- r("label", null, k(i.name), 1)
35
- ], 10, w))), 128)),
36
- r("div", {
37
- style: x(y(m)),
38
- class: "radius-extra bg-main t-white tab-selector"
39
- }, null, 4)
40
- ])
41
- ]));
42
- }
43
- };
1
+ const e = "";
44
2
  export {
45
- W as default
3
+ e as default
46
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../../../node_modules/vue3-carousel/dist/carousel.css.cjs");require("vue-i18n");require("../../../../../../node_modules/vue3-carousel/dist/carousel.es.cjs");require("../sections/SliderFeatures.vue2.cjs");const r=require("vue-router");require("../../store/auth.cjs");require("../../../middlewares/client/inputs.validation.cjs");const u={class:"cols-2-1_2 gap-small pd-small bg-white"},n=e.createElementVNode("section",{class:"w-100 desktop-only o-hidden radius-big bg-grad-main"},null,-1),s={__name:"Auth",setup(a){return e.ref(null),e.ref(null),e.ref(null),r.useRoute(),r.useRouter(),e.ref("email"),(o,c)=>{const t=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",u,[e.createVNode(t,{class:"pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center"},{default:e.withCtx(({Component:i,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{ref:"page",key:l.path,localPosition:o.localPosition},null,8,["localPosition"]))]),_:2},1024)]),_:1}),n])}}};exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue2.cjs");require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Button/Button.vue2.cjs");require("../../../../../../node_modules/vue3-carousel/dist/carousel.css.cjs");require("vue-i18n");require("../../../../../../node_modules/vue3-carousel/dist/carousel.es.cjs");require("../sections/SliderFeatures.vue2.cjs");const r=require("vue-router");require("../../store/auth.cjs");require("../../../middlewares/client/inputs.validation.cjs");const u={class:"cols-2-1_2 gap-small pd-small bg-white"},n=e.createElementVNode("section",{class:"w-100 desktop-only o-hidden radius-big bg-grad-main"},null,-1),s={__name:"Auth",setup(a){return e.ref(null),e.ref(null),e.ref(null),r.useRoute(),r.useRouter(),e.ref("email"),(o,c)=>{const t=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",u,[e.createVNode(t,{class:"pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center"},{default:e.withCtx(({Component:i,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{ref:"page",key:l.path,localPosition:o.localPosition},null,8,["localPosition"]))]),_:2},1024)]),_:1}),n])}}};exports.default=s;
@@ -1,7 +1,7 @@
1
1
  import { ref as e, resolveComponent as a, openBlock as o, createElementBlock as m, createVNode as t, withCtx as r, Transition as c, createBlock as p, resolveDynamicComponent as u, createElementVNode as d } from "vue";
2
- import "../../../../components/Tab/Tab.vue.js";
3
- import "../../../../components/Field/Field.vue.js";
4
- import "../../../../components/Button/Button.vue.js";
2
+ import "../../../../components/Tab/Tab.vue2.js";
3
+ import "../../../../components/Field/Field.vue2.js";
4
+ import "../../../../components/Button/Button.vue2.js";
5
5
  import "../../../../../../node_modules/vue3-carousel/dist/carousel.css.js";
6
6
  import "vue-i18n";
7
7
  import "../../../../../../node_modules/vue3-carousel/dist/carousel.es.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("../../../../components/Field/Field.vue.cjs");const 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
+ "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"),S=require("vue-i18n"),c=require("../../store/auth.cjs"),g=require("../../store/twofa.cjs"),y=require("../../../globals/store/globals.cjs"),b=require("../../localization/EnterCode.json.cjs"),D={class:"t-center pd-medium"},I={class:"mn-medium"},q={class:"mn-big t-transp"},k={class:"w-100 mn-big flex-nowrap flex"},C={key:1},N={__name:"EnterCode",setup(P){const m=f.useRoute(),v=f.useRouter(),{t:d}=S.useI18n(b.default),o=n.reactive({digits:["","","",""],error:null});n.watch(()=>o.digits[0],s=>{if(console.log(String(s)),console.log(String(s).length),s&&String(s).length>1){let e=String(s).split("");console.log(e);let t=[...o.digits];e.forEach((l,r)=>{console.log(r),console.log(t[r]),console.log(l),t[r]=l}),o.digits=t,u(3)}});const p=n.ref(null),i=n.ref(0);async function E(){try{await g.sendCode(c.state.user,m.query.type,c.state.user.phone?"phone":"email"),i.value=30;const s=setInterval(()=>{i.value>0?i.value-=1:clearInterval(s)},1e3)}catch{y.setError({response:{data:{errorCode:"CODE_NOT_SENT"}}})}}const a=(s,e)=>{if(s.key==="Backspace"&&(o.digits[e]===null||o.digits[e]===void 0||o.digits[e]==="")){s.preventDefault();const t=document.querySelectorAll("input"),l=e>0?t[e-1]:null;l&&(l.focus(),l.setSelectionRange(l.value.length,l.value.length))}},u=s=>{const e=document.querySelectorAll("input"),t=e[s+1],l=s>0?e[s-1]:null;if(o.digits[s]!==""&&o.digits[s]!==null&&o.digits[s]!==void 0&&s<4&&(s<3?t.focus():p.value.focus()),(o.digits[s]===null||o.digits[s]===void 0||o.digits[s]==="")&&s>0&&l.focus(),o.digits.every(r=>r!=="")){const r=o.digits.join(""),w=g.state.code.code.toString();r===w?(g.state.code.isValid=!0,v.push({path:"/auth/enter-password",query:{type:g.state.code.type,method:m.query.method}})):(y.setError({response:{data:{errorCode:"WRONG_CODE"}}}),p.value.focus(),o.digits=["","","",""])}};return(s,e)=>(n.openBlock(),n.createElementBlock("section",D,[n.createElementVNode("h3",I,n.toDisplayString(n.unref(d)("verifyNumberTitle")),1),n.createElementVNode("p",q,n.toDisplayString(n.unref(d)("instructions")),1),n.createElementVNode("div",k,[n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[0]||(e[0]=t=>o.digits[0]=t),ref_key:"firstInput",ref:p,maxlength:"1",onInput:e[1]||(e[1]=t=>u(0)),onPaste:e[2]||(e[2]=t=>s.onPaste(t,0)),onKeydown:e[3]||(e[3]=t=>a(t,0)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[0]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[4]||(e[4]=t=>o.digits[1]=t),maxlength:"1",onInput:e[5]||(e[5]=t=>u(1)),onPaste:e[6]||(e[6]=t=>s.onPaste(t,1)),onKeydown:e[7]||(e[7]=t=>a(t,1)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[1]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[8]||(e[8]=t=>o.digits[2]=t),maxlength:"1",onInput:e[9]||(e[9]=t=>u(2)),onPaste:e[10]||(e[10]=t=>s.onPaste(t,2)),onKeydown:e[11]||(e[11]=t=>a(t,2)),class:"w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"},null,544),[[n.vModelText,o.digits[2]]]),n.withDirectives(n.createElementVNode("input",{type:"number","onUpdate:modelValue":e[12]||(e[12]=t=>o.digits[3]=t),maxlength:"1",onInput:e[13]||(e[13]=t=>u(3)),onPaste:e[14]||(e[14]=t=>s.onPaste(t,3)),onKeydown:e[15]||(e[15]=t=>a(t,3)),class:"w-100 h1 pd-small t-center bg-grey radius-small"},null,544),[[n.vModelText,o.digits[3]]])]),i.value<1?(n.openBlock(),n.createElementBlock("a",{key:0,onClick:E,class:"t-blue"},n.toDisplayString(n.unref(d)("resendCode")),1)):(n.openBlock(),n.createElementBlock("span",C,n.toDisplayString(i.value)+" "+n.toDisplayString(n.unref(d)("secondsResend")),1))]))}};exports.default=N;
@@ -1,17 +1,15 @@
1
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
- import "../../../../components/Field/Field.vue.js";
2
+ import "../../../../components/Field/Field.vue2.js";
3
3
  import { useRoute as q, useRouter as K } from "vue-router";
4
4
  import { useI18n as N } from "vue-i18n";
5
- import { state as S } from "../../store/auth.js";
5
+ import { state as C } from "../../store/auth.js";
6
6
  import { state as w, sendCode as R } from "../../store/twofa.js";
7
- import { setError as C } from "../../../globals/store/globals.js";
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 = {
7
+ import { setError as S } from "../../../globals/store/globals.js";
8
+ import T from "../../localization/EnterCode.json.js";
9
+ const A = { class: "t-center pd-medium" }, O = { class: "mn-medium" }, U = { class: "mn-big t-transp" }, B = { class: "w-100 mn-big flex-nowrap flex" }, V = { key: 1 }, Q = {
9
10
  __name: "EnterCode",
10
- setup(V) {
11
- const I = q(), k = K(), { t: p } = N({
12
- inheritLocale: !0,
13
- useScope: "local"
14
- }), n = D({
11
+ setup(j) {
12
+ const I = q(), k = K(), { t: p } = N(T), n = D({
15
13
  digits: ["", "", "", ""],
16
14
  error: null
17
15
  });
@@ -31,12 +29,12 @@ const T = { class: "t-center pd-medium" }, A = { class: "mn-medium" }, O = { cla
31
29
  const y = b(null), i = b(0);
32
30
  async function E() {
33
31
  try {
34
- await R(S.user, I.query.type, S.user.phone ? "phone" : "email"), i.value = 30;
32
+ await R(C.user, I.query.type, C.user.phone ? "phone" : "email"), i.value = 30;
35
33
  const s = setInterval(() => {
36
34
  i.value > 0 ? i.value -= 1 : clearInterval(s);
37
35
  }, 1e3);
38
36
  } catch {
39
- C({ response: { data: { errorCode: "CODE_NOT_SENT" } } });
37
+ S({ response: { data: { errorCode: "CODE_NOT_SENT" } } });
40
38
  }
41
39
  }
42
40
  const a = (s, t) => {
@@ -52,13 +50,13 @@ const T = { class: "t-center pd-medium" }, A = { class: "mn-medium" }, O = { cla
52
50
  l === P ? (w.code.isValid = !0, k.push({
53
51
  path: "/auth/enter-password",
54
52
  query: { type: w.code.type, method: I.query.method }
55
- })) : (C({ response: { data: { errorCode: "WRONG_CODE" } } }), y.value.focus(), n.digits = ["", "", "", ""]);
53
+ })) : (S({ response: { data: { errorCode: "WRONG_CODE" } } }), y.value.focus(), n.digits = ["", "", "", ""]);
56
54
  }
57
55
  };
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, [
56
+ return (s, t) => (v(), c("section", A, [
57
+ r("h3", O, d(m(p)("verifyNumberTitle")), 1),
58
+ r("p", U, d(m(p)("instructions")), 1),
59
+ r("div", B, [
62
60
  g(r("input", {
63
61
  type: "number",
64
62
  "onUpdate:modelValue": t[0] || (t[0] = (e) => n.digits[0] = e),
@@ -110,10 +108,10 @@ const T = { class: "t-center pd-medium" }, A = { class: "mn-medium" }, O = { cla
110
108
  key: 0,
111
109
  onClick: E,
112
110
  class: "t-blue"
113
- }, d(m(p)("resendCode")), 1)) : (v(), c("span", B, d(i.value) + " " + d(m(p)("secondsResend")), 1))
111
+ }, d(m(p)("resendCode")), 1)) : (v(), c("span", V, d(i.value) + " " + d(m(p)("secondsResend")), 1))
114
112
  ]));
115
113
  }
116
114
  };
117
115
  export {
118
- H as default
116
+ Q as default
119
117
  };
@@ -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");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;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue2.cjs");const l=require("../../../../components/Field/Field.vue.cjs"),f=require("../../../../components/Button/Button.vue.cjs"),d=require("vue-router"),h=require("vue-i18n"),t=require("../../store/auth.cjs"),i=require("../../../middlewares/client/inputs.validation.cjs"),w=require("../../localization/EnterPassword.json.cjs");require("./EnterPassword.vue2.cjs");const y={class:"t-left pd-medium"},_={class:"mn-small"},g={key:0,class:"mn-semi t-transp"},k={key:1,class:"mn-semi t-transp"},q={class:"mn-semi radius-small o-hidden"},B={key:2,class:"p-medium t-semi mn-semi"},E=e.createElementVNode("a",{class:"t-second",href:"https://thecommunephuket.com/legal/eula",target:"_blank",rel:"noopener noreferrer"},"End User License Agreement (EULA)",-1),P={key:0},v={key:1},b={__name:"EnterPassword",setup(V){const n=e.ref(null),{t:s}=h.useI18n(w.default),r=d.useRoute(),u=d.useRouter();e.ref("phone");async function c(){try{await i.validateInputs(n,i.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}r.query.method==="reset-password"&&await t.actions.updatePassword(t.state.user,r.query.type),r.query.method!=="reset-password"&&await t.actions.signup(t.state.user,r.query.type)}function p(){u.push({name:"User Profile",params:{_id:t.state.user._id},query:{afterAuth:"true"}})}return(m,o)=>(e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",_,e.toDisplayString(e.unref(s)("almostDone")),1),e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("p",g,e.toDisplayString(e.unref(s)("newPasswordPrompt")),1)):(e.openBlock(),e.createElementBlock("p",k,e.toDisplayString(e.unref(s)("registrationPasswordPrompt")),1)),e.createElementVNode("div",q,[e.createVNode(l.default,{field:t.state.user.password,"onUpdate:field":o[0]||(o[0]=a=>t.state.user.password=a),type:"password",validation:n.value,placeholder:e.unref(s)("passwordPlaceholder"),class:"bg-grey pd-small radius-small mn-thin"},null,8,["field","validation","placeholder"]),e.createVNode(l.default,{field:t.state.user.passwordRepeat,"onUpdate:field":o[1]||(o[1]=a=>t.state.user.passwordRepeat=a),type:"password",placeholder:e.unref(s)("repeatPasswordPlaceholder"),class:"bg-grey pd-small radius-small mn-thin"},null,8,["field","placeholder"])]),e.unref(r).query.method!=="reset-password"?(e.openBlock(),e.createElementBlock("div",B,[e.createTextVNode(" By registering, you agree to our "),E])):e.createCommentVNode("",!0),e.createVNode(f.default,{submit:c,callback:p,class:"mn-big"},{default:e.withCtx(()=>[e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("span",P,e.toDisplayString(e.unref(s)("changePasswordBtn")),1)):(e.openBlock(),e.createElementBlock("span",v,e.toDisplayString(e.unref(s)("registerBtn")),1))]),_:1})]))}};exports.default=b;
@@ -1,39 +1,37 @@
1
- import { ref as u, openBlock as o, createElementBlock as a, createElementVNode as p, toDisplayString as n, unref as e, createVNode as l, createTextVNode as g, createCommentVNode as P, withCtx as k } from "vue";
2
- import "../../../../components/Tab/Tab.vue.js";
3
- import c from "../../../../components/Field/Field.vue2.js";
4
- import q from "../../../../components/Button/Button.vue2.js";
1
+ import { ref as u, openBlock as o, createElementBlock as a, createElementVNode as m, toDisplayString as d, unref as e, createVNode as l, createTextVNode as g, createCommentVNode as P, withCtx as k } from "vue";
2
+ import "../../../../components/Tab/Tab.vue2.js";
3
+ import c from "../../../../components/Field/Field.vue.js";
4
+ import q from "../../../../components/Button/Button.vue.js";
5
5
  import { useRoute as b, useRouter as v } from "vue-router";
6
6
  import { useI18n as E } from "vue-i18n";
7
7
  import { state as s, actions as h } from "../../store/auth.js";
8
- import { validateInputs as B, validatePassword as U } from "../../../middlewares/client/inputs.validation.js";
8
+ import { validateInputs as x, validatePassword as B } from "../../../middlewares/client/inputs.validation.js";
9
+ import U from "../../localization/EnterPassword.json.js";
9
10
  import "./EnterPassword.vue2.js";
10
- const V = { class: "t-left pd-medium" }, x = { class: "mn-small" }, N = {
11
+ const V = { class: "t-left pd-medium" }, N = { class: "mn-small" }, R = {
11
12
  key: 0,
12
13
  class: "mn-semi t-transp"
13
- }, R = {
14
+ }, A = {
14
15
  key: 1,
15
16
  class: "mn-semi t-transp"
16
- }, A = { class: "mn-semi radius-small o-hidden" }, L = {
17
+ }, C = { class: "mn-semi radius-small o-hidden" }, D = {
17
18
  key: 2,
18
19
  class: "p-medium t-semi mn-semi"
19
- }, S = /* @__PURE__ */ p("a", {
20
+ }, I = /* @__PURE__ */ m("a", {
20
21
  class: "t-second",
21
22
  href: "https://thecommunephuket.com/legal/eula",
22
23
  target: "_blank",
23
24
  rel: "noopener noreferrer"
24
- }, "End User License Agreement (EULA)", -1), C = { key: 0 }, D = { key: 1 }, M = {
25
+ }, "End User License Agreement (EULA)", -1), L = { key: 0 }, S = { key: 1 }, Q = {
25
26
  __name: "EnterPassword",
26
- setup(I) {
27
- const m = u(null), { t } = E({
28
- inheritLocale: !0,
29
- useScope: "local"
30
- }), r = b(), f = v();
27
+ setup(T) {
28
+ const p = u(null), { t } = E(U), r = b(), f = v();
31
29
  u("phone");
32
30
  async function w() {
33
31
  try {
34
- await B(
35
- m,
36
- U,
32
+ await x(
33
+ p,
34
+ B,
37
35
  s.user.password,
38
36
  "Некорректный пароль"
39
37
  );
@@ -51,29 +49,29 @@ const V = { class: "t-left pd-medium" }, x = { class: "mn-small" }, N = {
51
49
  query: { afterAuth: "true" }
52
50
  });
53
51
  }
54
- return (y, d) => (o(), a("section", V, [
55
- p("h3", x, n(e(t)("almostDone")), 1),
56
- e(r).query.method === "reset-password" ? (o(), a("p", N, n(e(t)("newPasswordPrompt")), 1)) : (o(), a("p", R, n(e(t)("registrationPasswordPrompt")), 1)),
57
- p("div", A, [
52
+ return (y, n) => (o(), a("section", V, [
53
+ m("h3", N, d(e(t)("almostDone")), 1),
54
+ e(r).query.method === "reset-password" ? (o(), a("p", R, d(e(t)("newPasswordPrompt")), 1)) : (o(), a("p", A, d(e(t)("registrationPasswordPrompt")), 1)),
55
+ m("div", C, [
58
56
  l(c, {
59
57
  field: s.user.password,
60
- "onUpdate:field": d[0] || (d[0] = (i) => s.user.password = i),
58
+ "onUpdate:field": n[0] || (n[0] = (i) => s.user.password = i),
61
59
  type: "password",
62
- validation: m.value,
60
+ validation: p.value,
63
61
  placeholder: e(t)("passwordPlaceholder"),
64
62
  class: "bg-grey pd-small radius-small mn-thin"
65
63
  }, null, 8, ["field", "validation", "placeholder"]),
66
64
  l(c, {
67
65
  field: s.user.passwordRepeat,
68
- "onUpdate:field": d[1] || (d[1] = (i) => s.user.passwordRepeat = i),
66
+ "onUpdate:field": n[1] || (n[1] = (i) => s.user.passwordRepeat = i),
69
67
  type: "password",
70
68
  placeholder: e(t)("repeatPasswordPlaceholder"),
71
69
  class: "bg-grey pd-small radius-small mn-thin"
72
70
  }, null, 8, ["field", "placeholder"])
73
71
  ]),
74
- e(r).query.method !== "reset-password" ? (o(), a("div", L, [
72
+ e(r).query.method !== "reset-password" ? (o(), a("div", D, [
75
73
  g(" By registering, you agree to our "),
76
- S
74
+ I
77
75
  ])) : P("", !0),
78
76
  l(q, {
79
77
  submit: w,
@@ -81,7 +79,7 @@ const V = { class: "t-left pd-medium" }, x = { class: "mn-small" }, N = {
81
79
  class: "mn-big"
82
80
  }, {
83
81
  default: k(() => [
84
- e(r).query.method === "reset-password" ? (o(), a("span", C, n(e(t)("changePasswordBtn")), 1)) : (o(), a("span", D, n(e(t)("registerBtn")), 1))
82
+ e(r).query.method === "reset-password" ? (o(), a("span", L, d(e(t)("changePasswordBtn")), 1)) : (o(), a("span", S, d(e(t)("registerBtn")), 1))
85
83
  ]),
86
84
  _: 1
87
85
  })
@@ -89,5 +87,5 @@ const V = { class: "t-left pd-medium" }, x = { class: "mn-small" }, N = {
89
87
  }
90
88
  };
91
89
  export {
92
- M as default
90
+ Q as default
93
91
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs"),f=require("../../../../components/Button/Button.vue2.cjs"),d=require("vue-router"),t=require("../../store/auth.cjs"),u=require("../../store/invites.cjs"),c=require("../../../middlewares/client/inputs.validation.cjs");require("./Invite.vue2.cjs");const h={class:"t-left pd-medium"},v=e.createElementVNode("h3",{class:"mn-small"},"Вы были пригилашены в организацию",-1),y=e.createElementVNode("p",{class:"mn-semi t-transp"},"Пожалуйста, укажите пароль, на этом регистрация будет закочена.",-1),b={class:"mn-semi radius-small o-hidden"},q={key:0},k={key:1},B={__name:"Invite",async setup(E){let r,n;const i=e.ref(null),s=d.useRoute(),p=d.useRouter();[r,n]=e.withAsyncContext(()=>u.actions.readOne(s.query.inviteCode)),await r,n();async function m(){try{await c.validateInputs(i,c.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}await t.actions.signup(t.state.user,s.query.type,s.query.inviteCode)}function _(){p.push({name:"Dashboard"})}return(w,a)=>(e.openBlock(),e.createElementBlock("section",h,[v,y,e.createElementVNode("div",b,[e.createVNode(l.default,{field:t.state.user.password,"onUpdate:field":a[0]||(a[0]=o=>t.state.user.password=o),type:"password",validation:i.value,label:"Пароль",placeholder:"******",class:"bg-white radius-small mn-small"},null,8,["field","validation"]),e.createVNode(l.default,{field:t.state.user.passwordRepeat,"onUpdate:field":a[1]||(a[1]=o=>t.state.user.passwordRepeat=o),type:"password",label:"Повторите пароль",placeholder:"******",class:"bg-white radius-small mn-semi"},null,8,["field"])]),e.createVNode(f.default,{disabled:u.state.invite===null,submit:m,callback:_,class:"mn-big"},{default:e.withCtx(()=>[e.unref(s).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("span",q,"Поменять пароль")):(e.openBlock(),e.createElementBlock("span",k,"Зарегистрироваться"))]),_:1},8,["disabled"])]))}};exports.default=B;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue2.cjs");const l=require("../../../../components/Field/Field.vue.cjs"),f=require("../../../../components/Button/Button.vue.cjs"),d=require("vue-router"),t=require("../../store/auth.cjs"),u=require("../../store/invites.cjs"),c=require("../../../middlewares/client/inputs.validation.cjs");require("./Invite.vue2.cjs");const h={class:"t-left pd-medium"},v=e.createElementVNode("h3",{class:"mn-small"},"Вы были пригилашены в организацию",-1),y=e.createElementVNode("p",{class:"mn-semi t-transp"},"Пожалуйста, укажите пароль, на этом регистрация будет закочена.",-1),b={class:"mn-semi radius-small o-hidden"},q={key:0},k={key:1},B={__name:"Invite",async setup(E){let r,n;const i=e.ref(null),s=d.useRoute(),p=d.useRouter();[r,n]=e.withAsyncContext(()=>u.actions.readOne(s.query.inviteCode)),await r,n();async function m(){try{await c.validateInputs(i,c.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}await t.actions.signup(t.state.user,s.query.type,s.query.inviteCode)}function _(){p.push({name:"Dashboard"})}return(w,a)=>(e.openBlock(),e.createElementBlock("section",h,[v,y,e.createElementVNode("div",b,[e.createVNode(l.default,{field:t.state.user.password,"onUpdate:field":a[0]||(a[0]=o=>t.state.user.password=o),type:"password",validation:i.value,label:"Пароль",placeholder:"******",class:"bg-white radius-small mn-small"},null,8,["field","validation"]),e.createVNode(l.default,{field:t.state.user.passwordRepeat,"onUpdate:field":a[1]||(a[1]=o=>t.state.user.passwordRepeat=o),type:"password",label:"Повторите пароль",placeholder:"******",class:"bg-white radius-small mn-semi"},null,8,["field"])]),e.createVNode(f.default,{disabled:u.state.invite===null,submit:m,callback:_,class:"mn-big"},{default:e.withCtx(()=>[e.unref(s).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("span",q,"Поменять пароль")):(e.openBlock(),e.createElementBlock("span",k,"Зарегистрироваться"))]),_:1},8,["disabled"])]))}};exports.default=B;
@@ -1,7 +1,7 @@
1
1
  import { ref as w, withAsyncContext as h, openBlock as o, createElementBlock as r, createElementVNode as n, createVNode as i, withCtx as y, unref as b } from "vue";
2
- import "../../../../components/Tab/Tab.vue.js";
3
- import p from "../../../../components/Field/Field.vue2.js";
4
- import v from "../../../../components/Button/Button.vue2.js";
2
+ import "../../../../components/Tab/Tab.vue2.js";
3
+ import p from "../../../../components/Field/Field.vue.js";
4
+ import v from "../../../../components/Button/Button.vue.js";
5
5
  import { useRoute as k, useRouter as g } from "vue-router";
6
6
  import { state as e, actions as q } from "../../store/auth.js";
7
7
  import { actions as x, state as C } from "../../store/invites.js";