@ozdao/prometheus-framework 0.1.52 → 0.1.54

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. package/dist/components/Upload/Upload.vue.d.ts.map +1 -1
  2. package/dist/main.css +1 -1
  3. package/dist/modules/constructor/components/elements/Audio.vue.d.ts +9 -0
  4. package/dist/modules/constructor/components/elements/Embed.vue.d.ts +9 -0
  5. package/dist/modules/constructor/components/elements/H2.vue.d.ts +1 -1
  6. package/dist/modules/constructor/components/elements/Textarea.vue.d.ts +1 -1
  7. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  8. package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -224
  9. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +224 -2
  11. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  12. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -1
  13. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  14. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -72
  15. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  16. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -2
  17. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  18. package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -78
  19. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  20. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +78 -2
  21. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +2 -44
  23. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  24. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +44 -2
  25. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -0
  26. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +75 -0
  27. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -0
  28. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +4 -0
  29. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
  31. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
  33. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
  35. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
  37. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +2 -2
  39. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
  41. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  43. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  45. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  47. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -0
  48. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +46 -0
  49. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -0
  50. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +48 -0
  51. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -4
  52. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -61
  53. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
  54. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +61 -2
  55. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +70 -61
  57. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  59. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  61. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  63. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +12 -10
  65. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  67. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +199 -2
  69. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  71. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  73. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
  75. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
  77. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  83. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
  85. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  87. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +18 -18
  89. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +4 -4
  91. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  95. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -1
  97. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  99. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +1 -1
  101. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
  103. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  105. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +4 -4
  113. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
  115. package/dist/prometheus-framework/src/modules/products/components/sections/EditParameters.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/products/components/sections/EditParameters.vue.js +1 -1
  117. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  119. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  121. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +1 -1
  123. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +82 -100
  125. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  127. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
  129. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  131. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +1 -1
  133. package/dist/prometheus-framework.cjs.js +19 -19
  134. package/dist/prometheus-framework.es.js +530 -522
  135. package/dist/style.css +1 -1
  136. package/package.json +1 -1
  137. package/src/components/Button/Button.vue +1 -1
  138. package/src/components/Upload/Upload.vue +28 -8
  139. package/src/modules/constructor/components/elements/Audio.vue +82 -0
  140. package/src/modules/constructor/components/elements/Embed.vue +85 -0
  141. package/src/modules/constructor/components/sections/Constructor.vue +54 -7
  142. package/src/modules/gallery/components/pages/Gallery.vue +2 -3
  143. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +6 -24
  144. package/src/modules/globals/mixins/mixins.js +52 -0
  145. package/src/modules/globals/router/routerGuards.js +28 -0
  146. package/src/modules/marketplace/components/layouts/Marketplace.vue +0 -1
  147. package/src/modules/organizations/components/pages/Organization.vue +2 -2
  148. package/src/modules/users/components/pages/Profile.vue +5 -3
  149. package/src/styles/theme.scss +0 -1
  150. package/src/styles/components/button.scss +0 -253
@@ -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("./Tab.vue2.cjs");const b={class:""},m={class:"flex-nowrap flex-v-center flex"},p=["onClick"],v={__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,p))),128)),e.createElementVNode("div",{style:e.normalizeStyle(e.unref(f)),class:"radius-extra bg-main t-white tab-selector"},null,4)])]))}};exports.default=v;
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.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
- };
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="";exports.default=e;
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"},p=["onClick"],v={__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,p))),128)),e.createElementVNode("div",{style:e.normalizeStyle(e.unref(f)),class:"radius-extra bg-main t-white tab-selector"},null,4)])]))}};exports.default=v;
@@ -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.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
+ };
2
44
  export {
3
- e as default
45
+ W as default
4
46
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../node_modules/axios/index.cjs");require("./Upload.vue2.cjs");const f=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),m={key:0,class:"t-transp mn-r-small"},p={class:"w-100"},h=["placeholder","multiple"],v={key:0,class:"mn-t-thin mn-b-thin invalid-feedback"},g={__name:"Upload",props:{label:null,type:"file",placeholder:"Upload a file",validation:!1,multiple:{type:Boolean,default:!1}},emits:["update:field","focus","blur","file-change"],setup(t,{emit:r}){const s=t,l=e.ref(null);e.ref(null);async function c(a){let o=a.target.files[0],n=new FormData;n.append("file",o);try{let d=await u.default.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/file?folderName=${encodeURIComponent(s.uploadPath)}`,n,{headers:{"Content-Type":"multipart/form-data"}});l.value=d.data.filepath,r("file-change",l.value)}catch(i){console.error(i)}}return(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[a.$attrs.class,{"bg-fourth-nano":t.validation}],"flex-center flex-nowrap flex"])},[e.createTextVNode(e.toDisplayString(l.value)+" ",1),t.label?(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("span",null,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",p,[e.createElementVNode("input",{onChange:c,type:"file",class:"w-100",placeholder:t.placeholder,multiple:t.multiple,id:"photo",name:"photo"},null,40,h)])],2),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},y=f.default(g,[["__scopeId","data-v-5dd2f570"]]);exports.default=y;
@@ -0,0 +1,75 @@
1
+ import { ref as c, openBlock as o, createElementBlock as n, Fragment as v, createElementVNode as a, normalizeClass as x, createTextVNode as g, toDisplayString as i, createCommentVNode as f, createVNode as y, Transition as b, withCtx as C } from "vue";
2
+ import w from "../../../node_modules/axios/index.js";
3
+ import "./Upload.vue2.js";
4
+ import U from "../../../../_virtual/_plugin-vue_export-helper.js";
5
+ const k = {
6
+ key: 0,
7
+ class: "t-transp mn-r-small"
8
+ }, N = { class: "w-100" }, _ = ["placeholder", "multiple"], R = {
9
+ key: 0,
10
+ class: "mn-t-thin mn-b-thin invalid-feedback"
11
+ }, V = {
12
+ __name: "Upload",
13
+ props: {
14
+ label: null,
15
+ type: "file",
16
+ placeholder: "Upload a file",
17
+ validation: !1,
18
+ multiple: {
19
+ type: Boolean,
20
+ default: !1
21
+ }
22
+ },
23
+ emits: ["update:field", "focus", "blur", "file-change"],
24
+ setup(e, { emit: m }) {
25
+ const p = e, t = c(null);
26
+ c(null);
27
+ async function u(l) {
28
+ let s = l.target.files[0], r = new FormData();
29
+ r.append("file", s);
30
+ try {
31
+ let h = await w.create({ baseURL: process.env.API_URL, withCredentials: !0 }).post(`/api/upload/file?folderName=${encodeURIComponent(p.uploadPath)}`, r, {
32
+ headers: {
33
+ "Content-Type": "multipart/form-data"
34
+ }
35
+ });
36
+ t.value = h.data.filepath, m("file-change", t.value);
37
+ } catch (d) {
38
+ console.error(d);
39
+ }
40
+ }
41
+ return (l, s) => (o(), n(v, null, [
42
+ a("div", {
43
+ class: x([[l.$attrs.class, { "bg-fourth-nano": e.validation }], "flex-center flex-nowrap flex"])
44
+ }, [
45
+ g(i(t.value) + " ", 1),
46
+ e.label ? (o(), n("div", k, [
47
+ a("span", null, i(e.label), 1)
48
+ ])) : f("", !0),
49
+ a("div", N, [
50
+ a("input", {
51
+ onChange: u,
52
+ type: "file",
53
+ class: "w-100",
54
+ placeholder: e.placeholder,
55
+ multiple: e.multiple,
56
+ id: "photo",
57
+ name: "photo"
58
+ }, null, 40, _)
59
+ ])
60
+ ], 2),
61
+ y(b, {
62
+ mode: "out-in",
63
+ name: "fade"
64
+ }, {
65
+ default: C(() => [
66
+ e.validation ? (o(), n("div", R, " * " + i(e.validation.message), 1)) : f("", !0)
67
+ ]),
68
+ _: 1
69
+ })
70
+ ], 64));
71
+ }
72
+ }, I = /* @__PURE__ */ U(V, [["__scopeId", "data-v-5dd2f570"]]);
73
+ export {
74
+ I as default
75
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -0,0 +1,4 @@
1
+ const _ = "";
2
+ export {
3
+ _ as default
4
+ };
@@ -1 +1 @@
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.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
- import "../../../../components/Tab/Tab.vue2.js";
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 e=require("vue");require("../../../../components/Tab/Tab.vue2.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"),h=require("../../../../components/Button/Button.vue2.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,7 +1,7 @@
1
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 P, createCommentVNode as k, withCtx as b } from "vue";
2
- import "../../../../components/Tab/Tab.vue2.js";
2
+ import "../../../../components/Tab/Tab.vue.js";
3
3
  import c from "../../../../components/Field/Field.vue2.js";
4
- import q from "../../../../components/Button/Button.vue.js";
4
+ import q from "../../../../components/Button/Button.vue2.js";
5
5
  import { useRoute as v, useRouter as E } from "vue-router";
6
6
  import { useI18n as B } from "vue-i18n";
7
7
  import { state as s, actions as h } from "../../store/auth.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue2.cjs");const l=require("../../../../components/Field/Field.vue2.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),q=e.createElementVNode("p",{class:"mn-semi t-transp"},"Пожалуйста, укажите пароль, на этом регистрация будет закочена.",-1),y={class:"mn-semi radius-small o-hidden"},b={key:0},k={key:1},B={__name:"Invite",async setup(E){let o,n;const i=e.ref(null),s=d.useRoute(),p=d.useRouter();[o,n]=e.withAsyncContext(()=>u.actions.readOne(s.query.inviteCode)),await o,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,q,e.createElementVNode("div",y,[e.createVNode(l.default,{field:t.state.user.password,"onUpdate:field":a[0]||(a[0]=r=>t.state.user.password=r),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]=r=>t.state.user.passwordRepeat=r),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",b,"Поменять пароль")):(e.openBlock(),e.createElementBlock("span",k,"Зарегистрироваться"))]),_:1},8,["disabled"])]))}};exports.default=B;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs"),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),q=e.createElementVNode("p",{class:"mn-semi t-transp"},"Пожалуйста, укажите пароль, на этом регистрация будет закочена.",-1),y={class:"mn-semi radius-small o-hidden"},b={key:0},k={key:1},B={__name:"Invite",async setup(E){let o,n;const i=e.ref(null),s=d.useRoute(),p=d.useRouter();[o,n]=e.withAsyncContext(()=>u.actions.readOne(s.query.inviteCode)),await o,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,q,e.createElementVNode("div",y,[e.createVNode(l.default,{field:t.state.user.password,"onUpdate:field":a[0]||(a[0]=r=>t.state.user.password=r),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]=r=>t.state.user.passwordRepeat=r),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",b,"Поменять пароль")):(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.vue2.js";
2
+ import "../../../../components/Tab/Tab.vue.js";
3
3
  import p from "../../../../components/Field/Field.vue2.js";
4
- import v from "../../../../components/Button/Button.vue.js";
4
+ import v from "../../../../components/Button/Button.vue2.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";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Tab/Tab.vue.cjs"),_=require("../../../../components/Field/Field.vue2.cjs"),w=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../components/Button/Button.vue.cjs"),d=require("vue-router"),g=require("vue-i18n"),l=require("../../store/auth.cjs");require("../../store/twofa.cjs");const n=require("../../../middlewares/client/inputs.validation.cjs");require("./ResetPassword.vue2.cjs");const c=require("./ResetPassword.vue3.cjs"),y={class:"t-left pd-medium"},N={class:"mn-small"},b={class:"mn-small t-transp"},q={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},E={key:0,class:"mn-semi radius-small o-hidden"},S={class:"mn-small t-transp"},k={key:0,class:"mn-semi radius-small o-hidden"},C={class:"mn-small t-transp"},m={__name:"ResetPassword",setup(P){const{t}=g.useI18n({inheritLocale:!0,useScope:"local"}),i=e.ref(null),u=e.ref(null);d.useRoute();const p=d.useRouter(),a=e.ref("phone");async function f(){try{a.value==="phone"&&await n.validateInputs(i,n.validatePhone,l.state.user.phone,"Некорректный телефон"),a.value==="email"&&await n.validateInputs(u,n.validateEmail,l.state.user.email,"Некорректный email")}catch{throw new Error}try{await l.actions.resetPassword(l.state.user,a.value,"reset-password")}catch(r){throw console.log(r),new Error}}function h(){p.push({name:"Enter Code",query:{type:a.value,method:"reset-password"}})}return(r,o)=>(e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",N,e.toDisplayString(e.unref(t)("forgotPasswordTitle")),1),e.createElementVNode("p",b,e.toDisplayString(e.unref(t)("instructions")),1),e.createElementVNode("div",q,[e.createVNode(v.default,{selected:a.value,"onUpdate:selected":o[0]||(o[0]=s=>a.value=s),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",null,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="phone"?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("p",S,e.toDisplayString(e.unref(t)("smsInfo")),1),e.createVNode(w.default,{modelValue:l.state.user.phone,"onUpdate:modelValue":o[1]||(o[1]=s=>l.state.user.phone=s),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:i.value,mode:"national",inputOptions:{placeholder:e.unref(t)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-thin"},null,8,["modelValue","validation","inputOptions"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="email"?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("p",C,e.toDisplayString(e.unref(t)("emailInfo")),1),e.createVNode(_.default,{field:l.state.user.email,"onUpdate:field":o[2]||(o[2]=s=>l.state.user.email=s),placeholder:e.unref(t)("emailPlaceholder"),validation:u.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])])):e.createCommentVNode("",!0)]),_:1})]),e.createVNode(V.default,{submit:f,callback:h,class:"mn-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1})]))}};typeof c.default=="function"&&c.default(m);exports.default=m;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Tab/Tab.vue2.cjs"),_=require("../../../../components/Field/Field.vue2.cjs"),w=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../components/Button/Button.vue2.cjs"),d=require("vue-router"),g=require("vue-i18n"),l=require("../../store/auth.cjs");require("../../store/twofa.cjs");const n=require("../../../middlewares/client/inputs.validation.cjs");require("./ResetPassword.vue2.cjs");const c=require("./ResetPassword.vue3.cjs"),y={class:"t-left pd-medium"},N={class:"mn-small"},b={class:"mn-small t-transp"},q={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},E={key:0,class:"mn-semi radius-small o-hidden"},S={class:"mn-small t-transp"},k={key:0,class:"mn-semi radius-small o-hidden"},C={class:"mn-small t-transp"},m={__name:"ResetPassword",setup(P){const{t}=g.useI18n({inheritLocale:!0,useScope:"local"}),i=e.ref(null),u=e.ref(null);d.useRoute();const p=d.useRouter(),a=e.ref("phone");async function f(){try{a.value==="phone"&&await n.validateInputs(i,n.validatePhone,l.state.user.phone,"Некорректный телефон"),a.value==="email"&&await n.validateInputs(u,n.validateEmail,l.state.user.email,"Некорректный email")}catch{throw new Error}try{await l.actions.resetPassword(l.state.user,a.value,"reset-password")}catch(r){throw console.log(r),new Error}}function h(){p.push({name:"Enter Code",query:{type:a.value,method:"reset-password"}})}return(r,o)=>(e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",N,e.toDisplayString(e.unref(t)("forgotPasswordTitle")),1),e.createElementVNode("p",b,e.toDisplayString(e.unref(t)("instructions")),1),e.createElementVNode("div",q,[e.createVNode(v.default,{selected:a.value,"onUpdate:selected":o[0]||(o[0]=s=>a.value=s),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",null,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="phone"?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("p",S,e.toDisplayString(e.unref(t)("smsInfo")),1),e.createVNode(w.default,{modelValue:l.state.user.phone,"onUpdate:modelValue":o[1]||(o[1]=s=>l.state.user.phone=s),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:i.value,mode:"national",inputOptions:{placeholder:e.unref(t)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-thin"},null,8,["modelValue","validation","inputOptions"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="email"?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("p",C,e.toDisplayString(e.unref(t)("emailInfo")),1),e.createVNode(_.default,{field:l.state.user.email,"onUpdate:field":o[2]||(o[2]=s=>l.state.user.email=s),placeholder:e.unref(t)("emailPlaceholder"),validation:u.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])])):e.createCommentVNode("",!0)]),_:1})]),e.createVNode(V.default,{submit:f,callback:h,class:"mn-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1})]))}};typeof c.default=="function"&&c.default(m);exports.default=m;
@@ -1,8 +1,8 @@
1
1
  import { ref as m, openBlock as u, createElementBlock as p, createElementVNode as s, toDisplayString as r, unref as o, createVNode as i, Transition as _, withCtx as c, createCommentVNode as v, createTextVNode as P } from "vue";
2
- import k from "../../../../components/Tab/Tab.vue.js";
2
+ import k from "../../../../components/Tab/Tab.vue2.js";
3
3
  import C from "../../../../components/Field/Field.vue2.js";
4
4
  import E from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import I from "../../../../components/Button/Button.vue.js";
5
+ import I from "../../../../components/Button/Button.vue2.js";
6
6
  import { useRoute as x, useRouter as N } from "vue-router";
7
7
  import { useI18n as S } from "vue-i18n";
8
8
  import { state as a, actions as T } from "../../store/auth.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Tab/Tab.vue.cjs"),c=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),b=require("../../../../components/Button/Button.vue.cjs"),p=require("vue-router"),E=require("vue-i18n"),a=require("../../store/auth.cjs"),i=require("../../../middlewares/client/inputs.validation.cjs");require("./SignIn.vue2.cjs");const m=require("./SignIn.vue3.cjs"),y={class:""},S={class:"mn-medium"},q=e.createElementVNode("br",null,null,-1),x={class:"t-semi"},P={class:"mn-big"},C={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},D={class:""},I={class:"mn-thin radius-small"},T={class:"mn-thin radius-small o-hidden"},U={class:"w-100 mn-big"},h={__name:"SignIn",setup(j){const{t:n}=E.useI18n({inheritLocale:!0,useScope:"local"}),d=e.ref(null),f=e.ref(null),u=e.ref(null);p.useRoute();const _=p.useRouter(),l=e.ref("phone");e.inject("APPLE_CLIENTID"),e.inject("APPLE_REDIRECT_URL");const v=r=>new Promise((s,o)=>{const t=document.createElement("script");t.type="text/javascript",t.src=r,t.onload=s,t.onerror=o,document.head.appendChild(t)});e.onMounted(async()=>{await v("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js")});async function w(){try{l.value==="phone"&&await i.validateInputs(d,i.validatePhone,a.state.user.phone,"Некорректный телефон"),l.value==="email"&&await i.validateInputs(u,i.validateEmail,a.state.user.email,"Некорректный email")}catch{throw new Error}a.state.user.phone=a.state.user.phone.number,await a.actions.login(a.state.user,l.value)}function V(){_.push({name:"User Profile",params:{_id:a.state.user._id},query:{afterAuth:"true"}})}return(r,s)=>{const o=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",S,[e.createTextVNode(e.toDisplayString(e.unref(n)("title"))+" ",1),q,e.createElementVNode("span",x,e.toDisplayString(e.unref(n)("subtitle")),1)]),e.createElementVNode("p",P,[e.createVNode(o,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("signup")),1)]),_:1})]),e.createElementVNode("div",C,[e.createVNode(g.default,{selected:l.value,"onUpdate:selected":s[0]||(s[0]=t=>l.value=t),tabs:[{name:e.unref(n)("phone"),value:"phone"},{name:e.unref(n)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",D,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",I,[e.createVNode(N.default,{modelValue:a.state.user.phone,"onUpdate:modelValue":s[1]||(s[1]=t=>a.state.user.phone=t),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:d.value,mode:"national",inputOptions:{placeholder:e.unref(n)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,l.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",T,[e.createVNode(c.default,{field:a.state.user.email,"onUpdate:field":s[2]||(s[2]=t=>a.state.user.email=t),placeholder:e.unref(n)("emailPlaceholder"),validation:u.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,l.value==="email"]])]),_:1})]),e.createVNode(c.default,{field:a.state.user.password,"onUpdate:field":s[3]||(s[3]=t=>a.state.user.password=t),type:"password",validation:f.value,placeholder:e.unref(n)("passwordPlaceholder"),class:"bg-grey pd-medium radius-small mn-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",U,[e.createVNode(o,{to:"/auth/reset-password",class:"underline d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("forgotPassword")),1)]),_:1})]),e.createVNode(b.default,{submit:w,callback:V,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("signin")),1)]),_:1})])}}};typeof m.default=="function"&&m.default(h);exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Tab/Tab.vue2.cjs"),c=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs"),p=require("vue-router"),E=require("vue-i18n"),a=require("../../store/auth.cjs"),i=require("../../../middlewares/client/inputs.validation.cjs");require("./SignIn.vue2.cjs");const m=require("./SignIn.vue3.cjs"),y={class:""},S={class:"mn-medium"},q=e.createElementVNode("br",null,null,-1),x={class:"t-semi"},P={class:"mn-big"},C={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},D={class:""},I={class:"mn-thin radius-small"},T={class:"mn-thin radius-small o-hidden"},U={class:"w-100 mn-big"},h={__name:"SignIn",setup(j){const{t:n}=E.useI18n({inheritLocale:!0,useScope:"local"}),d=e.ref(null),f=e.ref(null),u=e.ref(null);p.useRoute();const _=p.useRouter(),l=e.ref("phone");e.inject("APPLE_CLIENTID"),e.inject("APPLE_REDIRECT_URL");const v=r=>new Promise((s,o)=>{const t=document.createElement("script");t.type="text/javascript",t.src=r,t.onload=s,t.onerror=o,document.head.appendChild(t)});e.onMounted(async()=>{await v("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js")});async function w(){try{l.value==="phone"&&await i.validateInputs(d,i.validatePhone,a.state.user.phone,"Некорректный телефон"),l.value==="email"&&await i.validateInputs(u,i.validateEmail,a.state.user.email,"Некорректный email")}catch{throw new Error}a.state.user.phone=a.state.user.phone.number,await a.actions.login(a.state.user,l.value)}function V(){_.push({name:"User Profile",params:{_id:a.state.user._id},query:{afterAuth:"true"}})}return(r,s)=>{const o=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",S,[e.createTextVNode(e.toDisplayString(e.unref(n)("title"))+" ",1),q,e.createElementVNode("span",x,e.toDisplayString(e.unref(n)("subtitle")),1)]),e.createElementVNode("p",P,[e.createVNode(o,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("signup")),1)]),_:1})]),e.createElementVNode("div",C,[e.createVNode(g.default,{selected:l.value,"onUpdate:selected":s[0]||(s[0]=t=>l.value=t),tabs:[{name:e.unref(n)("phone"),value:"phone"},{name:e.unref(n)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",D,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",I,[e.createVNode(N.default,{modelValue:a.state.user.phone,"onUpdate:modelValue":s[1]||(s[1]=t=>a.state.user.phone=t),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:d.value,mode:"national",inputOptions:{placeholder:e.unref(n)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,l.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",T,[e.createVNode(c.default,{field:a.state.user.email,"onUpdate:field":s[2]||(s[2]=t=>a.state.user.email=t),placeholder:e.unref(n)("emailPlaceholder"),validation:u.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,l.value==="email"]])]),_:1})]),e.createVNode(c.default,{field:a.state.user.password,"onUpdate:field":s[3]||(s[3]=t=>a.state.user.password=t),type:"password",validation:f.value,placeholder:e.unref(n)("passwordPlaceholder"),class:"bg-grey pd-medium radius-small mn-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",U,[e.createVNode(o,{to:"/auth/reset-password",class:"underline d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("forgotPassword")),1)]),_:1})]),e.createVNode(b.default,{submit:w,callback:V,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("signin")),1)]),_:1})])}}};typeof m.default=="function"&&m.default(h);exports.default=h;
@@ -1,8 +1,8 @@
1
1
  import { ref as p, inject as _, onMounted as k, resolveComponent as C, openBlock as x, createElementBlock as D, createElementVNode as i, createTextVNode as m, toDisplayString as r, unref as l, createVNode as s, withCtx as d, Transition as v, withDirectives as w, vShow as b } from "vue";
2
- import L from "../../../../components/Tab/Tab.vue.js";
2
+ import L from "../../../../components/Tab/Tab.vue2.js";
3
3
  import g from "../../../../components/Field/Field.vue2.js";
4
4
  import R from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import T from "../../../../components/Button/Button.vue.js";
5
+ import T from "../../../../components/Button/Button.vue2.js";
6
6
  import { useRoute as j, useRouter as A } from "vue-router";
7
7
  import { useI18n as N } from "vue-i18n";
8
8
  import { state as t, actions as F } from "../../store/auth.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Tab/Tab.vue.cjs"),V=require("../../../../components/Field/Field.vue2.cjs"),g=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),w=require("../../../../components/Button/Button.vue.cjs"),d=require("vue-router"),N=require("vue-i18n"),n=require("../../store/auth.cjs"),b=require("../../store/twofa.cjs"),s=require("../../../middlewares/client/inputs.validation.cjs");require("./SignUp.vue2.cjs");const c=require("./SignUp.vue3.cjs"),y={class:"t-left pd-medium"},S={class:"mn-small"},E={class:"mn-small t-transp"},q={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},C={class:""},D={class:"mn-semi radius-small"},x={class:"mn-small t-transp"},T={class:"mn-semi radius-small o-hidden"},k={class:"mn-small t-transp"},I={class:"w-100"},m={__name:"SignUp",setup(P){const{t}=N.useI18n({inheritLocale:!0,useScope:"local"}),i=e.ref(null),r=e.ref(null);d.useRoute();const p=d.useRouter(),a=e.ref("phone");async function h(){try{a.value==="phone"&&await s.validateInputs(i,s.validatePhone,n.state.user.phone,"Некорректный телефон"),a.value==="email"&&await s.validateInputs(r,s.validateEmail,n.state.user.email,"Некорректный email")}catch{throw new Error}try{await b.sendCode(n.state.user,"signup",a.value)}catch{throw new Error}}function f(){p.push({name:"Enter Code"})}return(u,l)=>{const _=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",S,e.toDisplayString(e.unref(t)("title")),1),e.createElementVNode("p",E,e.toDisplayString(e.unref(t)("description")),1),e.createElementVNode("div",q,[e.createVNode(v.default,{selected:a.value,"onUpdate:selected":l[0]||(l[0]=o=>a.value=o),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",C,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",D,[e.createElementVNode("p",x,e.toDisplayString(e.unref(t)("smsNotice")),1),e.createVNode(g.default,{modelValue:n.state.user.phone,"onUpdate:modelValue":l[1]||(l[1]=o=>n.state.user.phone=o),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:i.value,mode:"national",inputOptions:{placeholder:e.unref(t)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,a.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",T,[e.createElementVNode("p",k,e.toDisplayString(e.unref(t)("emailNotice")),1),e.createVNode(V.default,{field:n.state.user.email,"onUpdate:field":l[2]||(l[2]=o=>n.state.user.email=o),placeholder:e.unref(t)("emailPlaceholder"),validation:r.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,a.value==="email"]])]),_:1})]),e.createVNode(w.default,{submit:h,callback:f,class:"mn-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1}),e.createElementVNode("div",I,[e.createVNode(_,{to:"/auth/signin",class:"underline mn-medium d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("haveAccount")),1)]),_:1})])])}}};typeof c.default=="function"&&c.default(m);exports.default=m;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Tab/Tab.vue2.cjs"),V=require("../../../../components/Field/Field.vue2.cjs"),g=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),w=require("../../../../components/Button/Button.vue2.cjs"),d=require("vue-router"),N=require("vue-i18n"),n=require("../../store/auth.cjs"),b=require("../../store/twofa.cjs"),s=require("../../../middlewares/client/inputs.validation.cjs");require("./SignUp.vue2.cjs");const c=require("./SignUp.vue3.cjs"),y={class:"t-left pd-medium"},S={class:"mn-small"},E={class:"mn-small t-transp"},q={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},C={class:""},D={class:"mn-semi radius-small"},x={class:"mn-small t-transp"},T={class:"mn-semi radius-small o-hidden"},k={class:"mn-small t-transp"},I={class:"w-100"},m={__name:"SignUp",setup(P){const{t}=N.useI18n({inheritLocale:!0,useScope:"local"}),i=e.ref(null),r=e.ref(null);d.useRoute();const p=d.useRouter(),a=e.ref("phone");async function h(){try{a.value==="phone"&&await s.validateInputs(i,s.validatePhone,n.state.user.phone,"Некорректный телефон"),a.value==="email"&&await s.validateInputs(r,s.validateEmail,n.state.user.email,"Некорректный email")}catch{throw new Error}try{await b.sendCode(n.state.user,"signup",a.value)}catch{throw new Error}}function f(){p.push({name:"Enter Code"})}return(u,l)=>{const _=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",S,e.toDisplayString(e.unref(t)("title")),1),e.createElementVNode("p",E,e.toDisplayString(e.unref(t)("description")),1),e.createElementVNode("div",q,[e.createVNode(v.default,{selected:a.value,"onUpdate:selected":l[0]||(l[0]=o=>a.value=o),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",C,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",D,[e.createElementVNode("p",x,e.toDisplayString(e.unref(t)("smsNotice")),1),e.createVNode(g.default,{modelValue:n.state.user.phone,"onUpdate:modelValue":l[1]||(l[1]=o=>n.state.user.phone=o),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:i.value,mode:"national",inputOptions:{placeholder:e.unref(t)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,a.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",T,[e.createElementVNode("p",k,e.toDisplayString(e.unref(t)("emailNotice")),1),e.createVNode(V.default,{field:n.state.user.email,"onUpdate:field":l[2]||(l[2]=o=>n.state.user.email=o),placeholder:e.unref(t)("emailPlaceholder"),validation:r.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,a.value==="email"]])]),_:1})]),e.createVNode(w.default,{submit:h,callback:f,class:"mn-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1}),e.createElementVNode("div",I,[e.createVNode(_,{to:"/auth/signin",class:"underline mn-medium d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("haveAccount")),1)]),_:1})])])}}};typeof c.default=="function"&&c.default(m);exports.default=m;
@@ -1,8 +1,8 @@
1
1
  import { ref as d, resolveComponent as C, openBlock as E, createElementBlock as S, createElementVNode as o, toDisplayString as n, unref as t, createVNode as a, Transition as h, withCtx as m, withDirectives as f, vShow as _, createTextVNode as v } from "vue";
2
- import N from "../../../../components/Tab/Tab.vue.js";
2
+ import N from "../../../../components/Tab/Tab.vue2.js";
3
3
  import x from "../../../../components/Field/Field.vue2.js";
4
4
  import D from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import I from "../../../../components/Button/Button.vue.js";
5
+ import I from "../../../../components/Button/Button.vue2.js";
6
6
  import { useRoute as P, useRouter as U } from "vue-router";
7
7
  import { useI18n as F } from "vue-i18n";
8
8
  import { state as s } from "../../store/auth.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../mobile/components/Menu/Menu.vue2.cjs"),n=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),o=require("vue-router"),i={class:""},l=e.createElementVNode("h1",{class:"mn-small"},"Your Backoffice",-1),d=e.createElementVNode("span",null," Organizations ",-1),f=e.createElementVNode("span",null," Events ",-1),c=e.createElementVNode("span",null," Community ",-1),p=e.createElementVNode("span",null," Products ",-1),m=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),k=e.createElementVNode("span",null," Payments ",-1),C=e.createElementVNode("span",null," Gallery ",-1),N=e.createElementVNode("span",null," Reports ",-1),V={__name:"Dashboard",props:{favorites:Array},setup(v){const r=o.useRoute(),s=o.useRouter();return(h,t)=>(e.openBlock(),e.createElementBlock("div",i,[l,e.createVNode(u.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[0]||(t[0]=a=>e.unref(s).push({name:"Backoffice Organizations",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(n.default,{onClick:t[1]||(t[1]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[f]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=a=>e.unref(s).push({name:"Backoffice Community",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=a=>e.unref(s).push({name:"Backoffice Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[p]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=a=>e.unref(s).push({name:"Backoffice Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=a=>e.unref(s).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[_]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=a=>e.unref(s).push({name:"Backoffice Payments",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=a=>e.unref(s).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[C]),_:1}),e.createVNode(n.default,{onClick:t[8]||(t[8]=a=>e.unref(s).push({name:"Backoffice Reports",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1})]),_:1})]))}};exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../mobile/components/Menu/Menu.vue.cjs"),n=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),o=require("vue-router"),i={class:""},l=e.createElementVNode("h1",{class:"mn-small"},"Your Backoffice",-1),d=e.createElementVNode("span",null," Organizations ",-1),f=e.createElementVNode("span",null," Events ",-1),c=e.createElementVNode("span",null," Community ",-1),p=e.createElementVNode("span",null," Products ",-1),m=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),k=e.createElementVNode("span",null," Payments ",-1),C=e.createElementVNode("span",null," Gallery ",-1),N=e.createElementVNode("span",null," Reports ",-1),V={__name:"Dashboard",props:{favorites:Array},setup(v){const r=o.useRoute(),s=o.useRouter();return(h,t)=>(e.openBlock(),e.createElementBlock("div",i,[l,e.createVNode(u.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[0]||(t[0]=a=>e.unref(s).push({name:"Backoffice Organizations",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(n.default,{onClick:t[1]||(t[1]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[f]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=a=>e.unref(s).push({name:"Backoffice Community",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=a=>e.unref(s).push({name:"Backoffice Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[p]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=a=>e.unref(s).push({name:"Backoffice Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=a=>e.unref(s).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[_]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=a=>e.unref(s).push({name:"Backoffice Payments",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=a=>e.unref(s).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[C]),_:1}),e.createVNode(n.default,{onClick:t[8]||(t[8]=a=>e.unref(s).push({name:"Backoffice Reports",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1})]),_:1})]))}};exports.default=V;
@@ -1,5 +1,5 @@
1
1
  import { openBlock as p, createElementBlock as u, createVNode as e, withCtx as a, unref as o, createElementVNode as n } from "vue";
2
- import m from "../../../mobile/components/Menu/Menu.vue2.js";
2
+ import m from "../../../mobile/components/Menu/Menu.vue.js";
3
3
  import i from "../../../mobile/components/Menu/MenuItem.vue.js";
4
4
  import { useRoute as d, useRouter as _ } from "vue-router";
5
5
  const f = { class: "" }, c = /* @__PURE__ */ n("h1", { class: "mn-small" }, "Your Backoffice", -1), k = /* @__PURE__ */ n("span", null, " Organizations ", -1), v = /* @__PURE__ */ n("span", null, " Events ", -1), B = /* @__PURE__ */ n("span", null, " Community ", -1), C = /* @__PURE__ */ n("span", null, " Products ", -1), $ = /* @__PURE__ */ n("span", null, " Leftovers ", -1), y = /* @__PURE__ */ n("span", null, " Orders ", -1), h = /* @__PURE__ */ n("span", null, " Payments ", -1), g = /* @__PURE__ */ n("span", null, " Gallery ", -1), E = /* @__PURE__ */ n("span", null, " Reports ", -1), G = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),u=require("../../../../components/Select/Select.vue.cjs"),a=require("../../store/blogposts.cjs"),c=require("../../../auth/store/auth.cjs"),m={class:"min-h-100vh pd-thin"},d={class:"mn-thin flex-v-center t-left flex-nowrap flex"},p={class:"flex-v-center flex-nowrap flex t-left"},f=e.createElementVNode("span",{class:""},"Topics for ",-1),g={class:"w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex"},h={class:""},w={__name:"Community",setup(k){const l=n.useRoute(),r=n.useRouter();return(y,t)=>{const s=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",d,[e.createElementVNode("h2",p,[f,e.createVNode(u.default,{options:["today","week","month","year"],select:a.state.filter.period,"onUpdate:select":t[0]||(t[0]=o=>a.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",g,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="featured"},"t-medium pd-thin radius-small"]),onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="popular"},"t-medium pd-thin radius-small"]),onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="new"},"t-medium pd-thin radius-small"]),onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),c.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="following"},"t-medium pd-thin radius-small"]),onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",h,[e.createVNode(s,null,{default:e.withCtx(({Component:o,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:i.query}))]),_:2},1024)]),_:1})])])}}};exports.default=w;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),u=require("../../../../components/Select/Select.vue2.cjs"),a=require("../../store/blogposts.cjs"),c=require("../../../auth/store/auth.cjs"),m={class:"min-h-100vh pd-thin"},d={class:"mn-thin flex-v-center t-left flex-nowrap flex"},p={class:"flex-v-center flex-nowrap flex t-left"},f=e.createElementVNode("span",{class:""},"Topics for ",-1),g={class:"w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex"},h={class:""},w={__name:"Community",setup(k){const l=n.useRoute(),r=n.useRouter();return(y,t)=>{const s=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",d,[e.createElementVNode("h2",p,[f,e.createVNode(u.default,{options:["today","week","month","year"],select:a.state.filter.period,"onUpdate:select":t[0]||(t[0]=o=>a.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",g,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="featured"},"t-medium pd-thin radius-small"]),onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="popular"},"t-medium pd-thin radius-small"]),onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="new"},"t-medium pd-thin radius-small"]),onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),c.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="following"},"t-medium pd-thin radius-small"]),onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",h,[e.createVNode(s,null,{default:e.withCtx(({Component:o,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:i.query}))]),_:2},1024)]),_:1})])])}}};exports.default=w;