@ozdao/prometheus-framework 0.1.26 → 0.1.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. package/dist/Chips-493042f7.js +1 -0
  2. package/dist/Chips-9cf6c0da.mjs +286 -0
  3. package/dist/Feed-27f62b1c.mjs +368 -0
  4. package/dist/Feed-7c8c901a.mjs +380 -0
  5. package/dist/Feed-aee74095.js +1 -0
  6. package/dist/Feed-bfd7d1d9.js +1 -0
  7. package/dist/Image-1f7252c0.mjs +477 -0
  8. package/dist/Image-448f9228.js +9 -0
  9. package/dist/Product-3c9c8197.js +7 -0
  10. package/dist/Product-748ec8b7.mjs +842 -0
  11. package/dist/Product-852f952c.js +7 -0
  12. package/dist/Product-bbdc8460.mjs +841 -0
  13. package/dist/ProductEdit-17f4e395.mjs +304 -0
  14. package/dist/ProductEdit-4af06681.js +1 -0
  15. package/dist/ProductEdit-4f9b6d56.js +1 -0
  16. package/dist/ProductEdit-a1050ab6.mjs +303 -0
  17. package/dist/ProfileBlogposts-03d04b92.mjs +66 -0
  18. package/dist/ProfileBlogposts-f9312adf.js +1 -0
  19. package/dist/ProfileComments-6d863cd3.mjs +45 -0
  20. package/dist/ProfileComments-e6970923.js +1 -0
  21. package/dist/ProfileEvents-917169c6.mjs +58 -0
  22. package/dist/ProfileEvents-996bce18.js +1 -0
  23. package/dist/ProfileLikes-0402d1fb.js +1 -0
  24. package/dist/ProfileLikes-92196922.mjs +45 -0
  25. package/dist/auth.client.cjs +8 -8
  26. package/dist/auth.client.js +581 -602
  27. package/dist/auth.validation-2cdd2231.mjs +17 -0
  28. package/dist/auth.validation-30bb0efd.js +1 -0
  29. package/dist/community.client.cjs +1 -1
  30. package/dist/community.client.js +65 -65
  31. package/dist/components/CardFooter/CardFooter.vue.d.ts +1 -1
  32. package/dist/components/CardHeader/CardHeader.vue.d.ts +1 -1
  33. package/dist/events.client.cjs +2 -2
  34. package/dist/events.client.js +6 -6
  35. package/dist/legal.client.cjs +1 -1
  36. package/dist/legal.client.js +2668 -2605
  37. package/dist/modules/community/components/blocks/FooterBlogpost.vue.d.ts +1 -1
  38. package/dist/modules/community/components/sections/Feed.vue.d.ts +1 -1
  39. package/dist/modules/events/components/blocks/CardEvent.vue.d.ts +3 -3
  40. package/dist/modules/events/components/sections/Feed.vue.d.ts +1 -1
  41. package/dist/modules/events/components/sections/List.vue.d.ts +1 -1
  42. package/dist/modules/organizations/components/sections/Feed.vue.d.ts +1 -1
  43. package/dist/modules/organizations/components/sections/Organizations.vue.d.ts +1 -1
  44. package/dist/organizations.client-13fc2cbe.js +3 -0
  45. package/dist/organizations.client-39196bef.mjs +3041 -0
  46. package/dist/organizations.client-85a2ae66.js +3 -0
  47. package/dist/organizations.client-91e84d4f.mjs +3022 -0
  48. package/dist/organizations.client.cjs +1 -1
  49. package/dist/organizations.client.js +43 -42
  50. package/dist/states.validation-766a62a6.mjs +13 -0
  51. package/dist/states.validation-92231934.js +1 -0
  52. package/dist/style.css +1 -1
  53. package/dist/users.client.cjs +1 -1
  54. package/dist/users.client.js +199 -194
  55. package/package.json +1 -1
  56. package/src/components/CardFooter/CardFooter.vue +27 -30
  57. package/src/components/CardHeader/CardHeader.vue +56 -3
  58. package/src/modules/auth/components/pages/SignIn.vue +2 -2
  59. package/src/modules/community/components/layouts/Community.vue +5 -5
  60. package/src/modules/events/components/blocks/CardEvent.vue +3 -2
  61. package/src/modules/events/components/pages/EditEvent.vue +1 -1
  62. package/src/modules/events/router/events.js +1 -0
  63. package/src/modules/legal/components/pages/Legal.vue +33 -17
  64. package/src/modules/legal/legal.client.js +2 -0
  65. package/src/modules/legal/router/legal.js +51 -21
  66. package/src/modules/organizations/router/organizations.js +19 -0
  67. package/src/modules/users/router/users.js +36 -31
@@ -1,19 +1,20 @@
1
- import { ref as U, resolveComponent as L, openBlock as m, createElementBlock as C, createElementVNode as i, toDisplayString as k, createBlock as v, withCtx as _, createTextVNode as H, createCommentVNode as b, reactive as R, onMounted as B, unref as u, Fragment as z, renderList as A, normalizeClass as F, createVNode as l, withAsyncContext as T } from "vue";
1
+ import { ref as x, resolveComponent as L, openBlock as m, createElementBlock as C, createElementVNode as i, toDisplayString as k, createBlock as v, withCtx as _, createTextVNode as H, createCommentVNode as b, reactive as R, onMounted as B, unref as u, Fragment as z, renderList as A, normalizeClass as F, createVNode as n, withAsyncContext as T } from "vue";
2
2
  import { a as j } from "./index-0ab9d59c.mjs";
3
- import { _ as x, a as $ } from "./MenuItem-97c50b97.mjs";
3
+ import { _ as U, a as $ } from "./MenuItem-97c50b97.mjs";
4
4
  import { B as D, m as G } from "./ButtonFollow-00d85977.mjs";
5
- import { _ as Y } from "./Socials-8193477c.mjs";
5
+ import { _ as q } from "./Socials-8193477c.mjs";
6
6
  import { _ as E } from "./_plugin-vue_export-helper-dad06003.mjs";
7
- import { I as q, P as J } from "./IconEdit-eacf3856.mjs";
7
+ import { I as Y, P as J } from "./IconEdit-eacf3856.mjs";
8
8
  import { useRoute as N, useRouter as S } from "vue-router";
9
9
  import { s as c, a as O } from "./auth-b047fdc0.mjs";
10
10
  import "./inputs.validation-14e8e01f.mjs";
11
11
  import { F as g, _ as Z } from "./Button-d8e72ac0.mjs";
12
12
  import { _ as K } from "./UploadImage-f7b0335f.mjs";
13
- import "./auth.validation-02e0629b.mjs";
13
+ import "./states.validation-766a62a6.mjs";
14
+ import { r as Q } from "./auth.validation-2cdd2231.mjs";
14
15
  import "./globals-96ba60e4.mjs";
15
16
  import "vue-i18n";
16
- const Q = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, I = {
17
+ const W = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, I = {
17
18
  __name: "ProfileCompletion",
18
19
  props: {
19
20
  user: Object,
@@ -21,17 +22,17 @@ const Q = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, I
21
22
  cta: Boolean
22
23
  },
23
24
  setup(r) {
24
- const { user: e, cta: p, target: w } = r, y = U(0), o = (h) => {
25
- let n = 0, d = 0;
25
+ const { user: e, cta: p, target: w } = r, y = x(0), o = (h) => {
26
+ let l = 0, d = 0;
26
27
  function f(s) {
27
28
  for (let a in s)
28
- s.hasOwnProperty(a) && (s[a] && typeof s[a] == "object" && !Array.isArray(s[a]) ? f(s[a]) : (n++, s[a] != null && s[a] !== "" && d++));
29
+ s.hasOwnProperty(a) && (s[a] && typeof s[a] == "object" && !Array.isArray(s[a]) ? f(s[a]) : (l++, s[a] != null && s[a] !== "" && d++));
29
30
  }
30
- return f(h), n === 0 ? 0 : Math.round(d / n * 100);
31
+ return f(h), l === 0 ? 0 : Math.round(d / l * 100);
31
32
  };
32
- return w && (y.value = o(w)), (h, n) => {
33
+ return w && (y.value = o(w)), (h, l) => {
33
34
  const d = L("router-link");
34
- return m(), C("section", Q, [
35
+ return m(), C("section", W, [
35
36
  i("h3", null, " Profile completed at " + k(y.value) + "% ", 1),
36
37
  r.cta ? (m(), v(d, {
37
38
  key: 0,
@@ -49,64 +50,64 @@ const Q = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, I
49
50
  ]);
50
51
  };
51
52
  }
52
- }, W = {}, X = {
53
+ }, X = {}, ee = {
53
54
  width: "80",
54
55
  height: "80",
55
56
  viewBox: "0 0 80 80",
56
57
  fill: "none",
57
58
  xmlns: "http://www.w3.org/2000/svg"
58
- }, ee = /* @__PURE__ */ i("path", {
59
+ }, te = /* @__PURE__ */ i("path", {
59
60
  d: "M12 66V32H68V66C68 69.25 65.25 72 62 72H18C14.75 72 12 69.25 12 66ZM52 42V46C52 47.125 52.875 48 54 48H58C59.125 48 60 47.125 60 46V42C60 40.875 59.125 40 58 40H54C52.875 40 52 40.875 52 42ZM52 58V62C52 63.125 52.875 64 54 64H58C59.125 64 60 63.125 60 62V58C60 56.875 59.125 56 58 56H54C52.875 56 52 56.875 52 58ZM36 42V46C36 47.125 36.875 48 38 48H42C43.125 48 44 47.125 44 46V42C44 40.875 43.125 40 42 40H38C36.875 40 36 40.875 36 42ZM36 58V62C36 63.125 36.875 64 38 64H42C43.125 64 44 63.125 44 62V58C44 56.875 43.125 56 42 56H38C36.875 56 36 56.875 36 58ZM20 42V46C20 47.125 20.875 48 22 48H26C27.125 48 28 47.125 28 46V42C28 40.875 27.125 40 26 40H22C20.875 40 20 40.875 20 42ZM20 58V62C20 63.125 20.875 64 22 64H26C27.125 64 28 63.125 28 62V58C28 56.875 27.125 56 26 56H22C20.875 56 20 56.875 20 58ZM62 16C65.25 16 68 18.75 68 22V28H12V22C12 18.75 14.75 16 18 16H24V10C24 8.875 24.875 8 26 8H30C31.125 8 32 8.875 32 10V16H48V10C48 8.875 48.875 8 50 8H54C55.125 8 56 8.875 56 10V16H62Z",
60
61
  fill: "white"
61
- }, null, -1), te = [
62
- ee
62
+ }, null, -1), se = [
63
+ te
63
64
  ];
64
- function se(r, e) {
65
- return m(), C("svg", X, te);
65
+ function re(r, e) {
66
+ return m(), C("svg", ee, se);
66
67
  }
67
- const re = /* @__PURE__ */ E(W, [["render", se]]), ie = {}, ae = {
68
+ const ie = /* @__PURE__ */ E(X, [["render", re]]), ae = {}, oe = {
68
69
  width: "80",
69
70
  height: "80",
70
71
  viewBox: "0 0 80 80",
71
72
  fill: "none",
72
73
  xmlns: "http://www.w3.org/2000/svg"
73
- }, oe = /* @__PURE__ */ i("path", {
74
+ }, le = /* @__PURE__ */ i("path", {
74
75
  d: "M9 19C9 17.1435 9.7375 15.363 11.0503 14.0503C12.363 12.7375 14.1435 12 16 12C17.8565 12 19.637 12.7375 20.9497 14.0503C22.2625 15.363 23 17.1435 23 19C23 20.8565 22.2625 22.637 20.9497 23.9497C19.637 25.2625 17.8565 26 16 26C14.1435 26 12.363 25.2625 11.0503 23.9497C9.7375 22.637 9 20.8565 9 19ZM8 38.7125C6.75 40.1125 6 41.975 6 44C6 46.025 6.75 47.8875 8 49.2875V38.7125ZM26.05 32.55C22.3375 35.8375 20 40.65 20 46C20 50.2875 21.5 54.225 24 57.3125V60C24 62.2125 22.2125 64 20 64H12C9.7875 64 8 62.2125 8 60V56.65C3.275 54.4 0 49.5875 0 44C0 36.2625 6.2625 30 14 30H18C21 30 23.775 30.9375 26.05 32.5375V32.55ZM56 60V57.3125C58.5 54.225 60 50.2875 60 46C60 40.65 57.6625 35.8375 53.95 32.5375C56.225 30.9375 59 30 62 30H66C73.7375 30 80 36.2625 80 44C80 49.5875 76.725 54.4 72 56.65V60C72 62.2125 70.2125 64 68 64H60C57.7875 64 56 62.2125 56 60ZM57 19C57 17.1435 57.7375 15.363 59.0503 14.0503C60.363 12.7375 62.1435 12 64 12C65.8565 12 67.637 12.7375 68.9497 14.0503C70.2625 15.363 71 17.1435 71 19C71 20.8565 70.2625 22.637 68.9497 23.9497C67.637 25.2625 65.8565 26 64 26C62.1435 26 60.363 25.2625 59.0503 23.9497C57.7375 22.637 57 20.8565 57 19ZM72 38.7125V49.3C73.25 47.8875 74 46.0375 74 44.0125C74 41.9875 73.25 40.125 72 38.725V38.7125ZM40 12C42.1217 12 44.1566 12.8429 45.6569 14.3431C47.1571 15.8434 48 17.8783 48 20C48 22.1217 47.1571 24.1566 45.6569 25.6569C44.1566 27.1571 42.1217 28 40 28C37.8783 28 35.8434 27.1571 34.3431 25.6569C32.8429 24.1566 32 22.1217 32 20C32 17.8783 32.8429 15.8434 34.3431 14.3431C35.8434 12.8429 37.8783 12 40 12ZM30 46C30 48.025 30.75 49.875 32 51.2875V40.7125C30.75 42.125 30 43.975 30 46ZM48 40.7125V51.3C49.25 49.8875 50 48.0375 50 46.0125C50 43.9875 49.25 42.125 48 40.725V40.7125ZM56 46C56 51.5875 52.725 56.4 48 58.65V64C48 66.2125 46.2125 68 44 68H36C33.7875 68 32 66.2125 32 64V58.65C27.275 56.4 24 51.5875 24 46C24 38.2625 30.2625 32 38 32H42C49.7375 32 56 38.2625 56 46Z",
75
76
  fill: "white"
76
77
  }, null, -1), ne = [
77
- oe
78
+ le
78
79
  ];
79
- function le(r, e) {
80
- return m(), C("svg", ae, ne);
80
+ function de(r, e) {
81
+ return m(), C("svg", oe, ne);
81
82
  }
82
- const de = /* @__PURE__ */ E(ie, [["render", le]]), ue = {}, me = {
83
+ const ue = /* @__PURE__ */ E(ae, [["render", de]]), me = {}, ce = {
83
84
  width: "56",
84
85
  height: "56",
85
86
  viewBox: "0 0 56 56",
86
87
  fill: "none",
87
88
  xmlns: "http://www.w3.org/2000/svg"
88
- }, ce = /* @__PURE__ */ i("path", {
89
+ }, pe = /* @__PURE__ */ i("path", {
89
90
  d: "M28.2899 50C24.4282 50.007 20.6332 48.9927 17.2899 47.06L12.5299 49.17C11.6317 49.567 10.6307 49.6695 9.67068 49.4627C8.71061 49.2558 7.84068 48.7503 7.1856 48.0186C6.53051 47.2869 6.12391 46.3666 6.02409 45.3896C5.92426 44.4126 6.13634 43.4291 6.62991 42.58L8.96991 38.58C6.65145 34.3531 5.78562 29.4816 6.50556 24.7147C7.22549 19.9478 9.49132 15.5493 12.9546 12.1956C16.418 8.84187 20.887 6.71863 25.6747 6.15233C30.4623 5.58604 35.3034 6.60805 39.4536 9.06121C43.6037 11.5144 46.8332 15.2629 48.6454 19.7303C50.4576 24.1977 50.7522 29.1367 49.4839 33.7879C48.2155 38.4391 45.4545 42.5448 41.6254 45.4739C37.7962 48.403 33.1109 49.9932 28.2899 50ZM17.4799 42.81C17.8631 42.811 18.238 42.9221 18.5599 43.13C22.2995 45.5441 26.7982 46.4939 31.1945 45.7975C35.5908 45.1011 39.5757 42.8075 42.3861 39.3558C45.1966 35.9041 46.6349 31.537 46.4258 27.0908C46.2167 22.6446 44.3748 18.4318 41.2529 15.2591C38.1309 12.0864 33.9483 10.1769 29.5061 9.89616C25.0638 9.61544 20.6741 10.9833 17.1776 13.7377C13.6811 16.4921 11.3235 20.4396 10.5563 24.8241C9.78918 29.2086 10.6664 33.722 13.0199 37.5C13.2068 37.8111 13.3055 38.1671 13.3055 38.53C13.3055 38.8929 13.2068 39.2489 13.0199 39.56L10.0899 44.56C10.0202 44.6791 9.99023 44.8174 10.0043 44.9547C10.0184 45.0919 10.0759 45.2212 10.1683 45.3237C10.2608 45.4262 10.3834 45.4966 10.5186 45.5247C10.6537 45.5528 10.7943 45.5371 10.9199 45.48L16.6699 43C16.9236 42.8806 17.1996 42.8159 17.4799 42.81Z",
90
91
  fill: "white"
91
- }, null, -1), pe = /* @__PURE__ */ i("path", {
92
+ }, null, -1), _e = /* @__PURE__ */ i("path", {
92
93
  d: "M28.2898 30C27.7594 30 27.2507 29.7893 26.8756 29.4142C26.5005 29.0391 26.2898 28.5304 26.2898 28C26.2898 27.4696 26.5005 26.9609 26.8756 26.5858C27.2507 26.2107 27.7594 26 28.2898 26C28.8202 26 29.3289 26.2107 29.704 26.5858C30.0791 26.9609 30.2898 27.4696 30.2898 28C30.2898 28.5304 30.0791 29.0391 29.704 29.4142C29.3289 29.7893 28.8202 30 28.2898 30Z",
93
94
  fill: "white"
94
- }, null, -1), _e = /* @__PURE__ */ i("path", {
95
+ }, null, -1), fe = /* @__PURE__ */ i("path", {
95
96
  d: "M20.2898 30C19.7594 30 19.2507 29.7893 18.8756 29.4142C18.5005 29.0391 18.2898 28.5304 18.2898 28C18.2898 27.4696 18.5005 26.9609 18.8756 26.5858C19.2507 26.2107 19.7594 26 20.2898 26C20.8202 26 21.3289 26.2107 21.704 26.5858C22.0791 26.9609 22.2898 27.4696 22.2898 28C22.2898 28.5304 22.0791 29.0391 21.704 29.4142C21.3289 29.7893 20.8202 30 20.2898 30Z",
96
97
  fill: "white"
97
- }, null, -1), fe = /* @__PURE__ */ i("path", {
98
+ }, null, -1), Ce = /* @__PURE__ */ i("path", {
98
99
  d: "M36.2898 30C35.7594 30 35.2507 29.7893 34.8756 29.4142C34.5005 29.0391 34.2898 28.5304 34.2898 28C34.2898 27.4696 34.5005 26.9609 34.8756 26.5858C35.2507 26.2107 35.7594 26 36.2898 26C36.8202 26 37.3289 26.2107 37.704 26.5858C38.0791 26.9609 38.2898 27.4696 38.2898 28C38.2898 28.5304 38.0791 29.0391 37.704 29.4142C37.3289 29.7893 36.8202 30 36.2898 30Z",
99
100
  fill: "white"
100
- }, null, -1), Ce = [
101
- ce,
101
+ }, null, -1), he = [
102
102
  pe,
103
103
  _e,
104
- fe
104
+ fe,
105
+ Ce
105
106
  ];
106
- function he(r, e) {
107
- return m(), C("svg", me, Ce);
107
+ function ge(r, e) {
108
+ return m(), C("svg", ce, he);
108
109
  }
109
- const ge = /* @__PURE__ */ E(ue, [["render", he]]), V = j.create({ baseURL: process.env.API_URL, withCredentials: !0 }), t = R({
110
+ const ve = /* @__PURE__ */ E(me, [["render", ge]]), V = j.create({ baseURL: process.env.API_URL, withCredentials: !0 }), t = R({
110
111
  all: [],
111
112
  current: {
112
113
  _id: "",
@@ -179,47 +180,47 @@ const ge = /* @__PURE__ */ E(ue, [["render", he]]), V = j.create({ baseURL: proc
179
180
  orders: []
180
181
  };
181
182
  }
182
- }, mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
183
+ }, pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
183
184
  __proto__: null,
184
185
  actions: M,
185
186
  mutations: P,
186
187
  state: t
187
188
  }, Symbol.toStringTag, { value: "Module" }));
188
- const ve = { class: "for-transition w-100" }, be = {
189
+ const be = { class: "for-transition w-100" }, we = {
189
190
  key: 0,
190
191
  class: "flex-center flex pd-medium radius-big bg-grey uppercase t-semi w-100 h-100"
191
- }, we = {
192
+ }, ye = {
192
193
  key: 1,
193
194
  _id: "dash",
194
195
  class: "pd-b-extra pd-thin w-100"
195
- }, ye = { class: "flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey" }, $e = ["src"], ke = { class: "mn-thin" }, Pe = { class: "mn-thin t-main t-semi" }, Me = { class: "mn-small p-medium" }, Ve = { class: "mn-medium flex-center flex-nowrap flex" }, Ue = { class: "t-semi mn-small" }, xe = {
196
+ }, $e = { class: "flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey" }, ke = ["src"], Pe = { class: "mn-thin" }, Me = { class: "mn-thin t-main t-semi" }, Ve = { class: "mn-small p-medium" }, xe = { class: "mn-medium flex-center flex-nowrap flex" }, Ue = { class: "t-semi mn-small" }, He = {
196
197
  key: 4,
197
198
  class: "mn-t-small mn-thin"
198
- }, He = /* @__PURE__ */ i("span", null, " Backoffice ", -1), Ee = /* @__PURE__ */ i("span", null, "Events", -1), Ze = /* @__PURE__ */ i("span", null, "Groups", -1), Ne = /* @__PURE__ */ i("span", null, "Posts", -1), Se = /* @__PURE__ */ i("span", null, " Settings ", -1), Oe = /* @__PURE__ */ i("span", null, " About ", -1), Ie = /* @__PURE__ */ i("span", { class: "t-red" }, " Logout ", -1), Le = {
199
+ }, Ee = /* @__PURE__ */ i("span", null, " Backoffice ", -1), Ze = /* @__PURE__ */ i("span", null, "Events", -1), Ne = /* @__PURE__ */ i("span", null, "Groups", -1), Se = /* @__PURE__ */ i("span", null, "Posts", -1), Oe = /* @__PURE__ */ i("span", null, " Settings ", -1), Ie = /* @__PURE__ */ i("span", null, " About ", -1), Le = /* @__PURE__ */ i("span", { class: "t-red" }, " Logout ", -1), Re = {
199
200
  __name: "Profile",
200
201
  setup(r) {
201
- const e = N(), p = S(), w = U(!1);
202
+ const e = N(), p = S(), w = x(!1);
202
203
  B(async () => {
203
204
  await M.read({ _id: e.params._id, user: c.user._id }), w.value = !0;
204
205
  });
205
- const y = ({ membership: h, isMember: n, targetId: d }) => {
206
- G.handleMembershipUpdate(t.current, h, n, d);
206
+ const y = ({ membership: h, isMember: l, targetId: d }) => {
207
+ G.handleMembershipUpdate(t.current, h, l, d);
207
208
  };
208
209
  function o() {
209
210
  O.logout(), p.push({ name: "Sign In" });
210
211
  }
211
- return (h, n) => (m(), C("div", ve, [
212
- t.current.status === "removed" ? (m(), C("div", be, " Sorry, user has been removed. ")) : (m(), C("div", we, [
212
+ return (h, l) => (m(), C("div", be, [
213
+ t.current.status === "removed" ? (m(), C("div", we, " Sorry, user has been removed. ")) : (m(), C("div", ye, [
213
214
  u(e).params._id === c.user._id && w.value ? (m(), v(I, {
214
215
  key: 0,
215
216
  user: c.user._id,
216
217
  target: t.current,
217
218
  cta: !0
218
219
  }, null, 8, ["user", "target"])) : b("", !0),
219
- i("section", ye, [
220
- u(e).params._id === c.user._id ? (m(), v(q, {
220
+ i("section", $e, [
221
+ u(e).params._id === c.user._id ? (m(), v(Y, {
221
222
  key: 0,
222
- onClick: n[0] || (n[0] = (d) => h.$router.push({
223
+ onClick: l[0] || (l[0] = (d) => h.$router.push({
223
224
  name: "User Edit Profile",
224
225
  params: {
225
226
  _id: c.user._id
@@ -231,14 +232,14 @@ const ve = { class: "for-transition w-100" }, be = {
231
232
  key: 1,
232
233
  src: (h.FILE_SERVER_URL || "") + t.current.profile.photo,
233
234
  class: "radius-extra bg-white mn-small object-fit-cover i-extra"
234
- }, null, 8, $e)) : (m(), v(J, {
235
+ }, null, 8, ke)) : (m(), v(J, {
235
236
  key: 2,
236
237
  class: "radius-medium mn-small i-extra"
237
238
  })),
238
- i("h3", ke, k(t.current.profile.name ? t.current.profile.name : "Not specified"), 1),
239
- i("p", Pe, " @" + k(t.current.username ? t.current.username : "Not specified"), 1),
240
- i("p", Me, k(t.current.profile.description ? t.current.profile.description : "Not specified"), 1),
241
- i("div", Ve, [
239
+ i("h3", Pe, k(t.current.profile.name ? t.current.profile.name : "Not specified"), 1),
240
+ i("p", Me, " @" + k(t.current.username ? t.current.username : "Not specified"), 1),
241
+ i("p", Ve, k(t.current.profile.description ? t.current.profile.description : "Not specified"), 1),
242
+ i("div", xe, [
242
243
  (m(!0), C(z, null, A(t.current.roles, (d, f) => (m(), C("div", {
243
244
  class: F(["pd-thin radius-small t-semi bg-white", { "mn-r-thin": f !== t.current.roles.length - 1 }])
244
245
  }, k(d.icon) + " " + k(d.name), 3))), 256))
@@ -253,8 +254,8 @@ const ve = { class: "for-transition w-100" }, be = {
253
254
  class: "w-min mn-medium mn-r-auto mn-l-auto",
254
255
  onUpdateMembership: y
255
256
  }, null, 8, ["isMember", "targetId", "userId"])) : b("", !0),
256
- Object.values(t.current.socials).some((d) => d) ? (m(), C("h4", xe, " Find Me in Socials ")) : b("", !0),
257
- l(Y, {
257
+ Object.values(t.current.socials).some((d) => d) ? (m(), C("h4", He, " Find Me in Socials ")) : b("", !0),
258
+ n(q, {
258
259
  telegram: t.current.socials.telegram,
259
260
  facebook: t.current.socials.facebook,
260
261
  instagram: t.current.socials.instagram,
@@ -262,13 +263,13 @@ const ve = { class: "for-transition w-100" }, be = {
262
263
  class: "mn-r-auto mn-l-auto"
263
264
  }, null, 8, ["telegram", "facebook", "instagram", "twitter"])
264
265
  ]),
265
- c.user._id === u(e).params._id && (c.access.roles.includes("ROLE_MODERATOR") || c.access.roles.includes("ROLE_ADMIN")) ? (m(), v(x, {
266
+ c.user._id === u(e).params._id && (c.access.roles.includes("ROLE_MODERATOR") || c.access.roles.includes("ROLE_ADMIN")) ? (m(), v(U, {
266
267
  key: 1,
267
268
  class: "bg-black t-white"
268
269
  }, {
269
270
  default: _(() => [
270
- l($, {
271
- onClick: n[1] || (n[1] = (d) => u(p).push({
271
+ n($, {
272
+ onClick: l[1] || (l[1] = (d) => u(p).push({
272
273
  name: "Backoffice",
273
274
  params: {
274
275
  _id: u(e).params._id
@@ -278,64 +279,64 @@ const ve = { class: "for-transition w-100" }, be = {
278
279
  theme: "white"
279
280
  }, {
280
281
  default: _(() => [
281
- He
282
+ Ee
282
283
  ]),
283
284
  _: 1
284
285
  })
285
286
  ]),
286
287
  _: 1
287
288
  })) : b("", !0),
288
- l(x, { class: "bg-grey" }, {
289
+ n(U, { class: "bg-grey" }, {
289
290
  default: _(() => [
290
- l($, {
291
- onClick: n[2] || (n[2] = (d) => u(p).push({ name: "User Events", params: { _id: u(e).params._id } })),
291
+ n($, {
292
+ onClick: l[2] || (l[2] = (d) => u(p).push({ name: "User Events", params: { _id: u(e).params._id } })),
292
293
  class: "cursor-pointer"
293
294
  }, {
294
295
  default: _(() => [
295
- l(re, {
296
+ n(ie, {
296
297
  class: "i-semi",
297
298
  icon: !0
298
299
  }),
299
- Ee
300
+ Ze
300
301
  ]),
301
302
  _: 1
302
303
  }),
303
- l($, {
304
- onClick: n[3] || (n[3] = (d) => u(p).push({ name: "User Organizations", params: { _id: u(e).params._id } })),
304
+ n($, {
305
+ onClick: l[3] || (l[3] = (d) => u(p).push({ name: "User Organizations", params: { _id: u(e).params._id } })),
305
306
  class: "cursor-pointer"
306
307
  }, {
307
308
  default: _(() => [
308
- l(de, {
309
+ n(ue, {
309
310
  class: "i-semi",
310
311
  icon: !0
311
312
  }),
312
- Ze
313
+ Ne
313
314
  ]),
314
315
  _: 1
315
316
  }),
316
- l($, {
317
- onClick: n[4] || (n[4] = (d) => u(p).push({ name: "User Blogposts", params: { _id: u(e).params._id } })),
317
+ n($, {
318
+ onClick: l[4] || (l[4] = (d) => u(p).push({ name: "User Blogposts", params: { _id: u(e).params._id } })),
318
319
  class: "cursor-pointer"
319
320
  }, {
320
321
  default: _(() => [
321
- l(ge, {
322
+ n(ve, {
322
323
  class: "i-semi",
323
324
  icon: !0
324
325
  }),
325
- Ne
326
+ Se
326
327
  ]),
327
328
  _: 1
328
329
  })
329
330
  ]),
330
331
  _: 1
331
332
  }),
332
- c.user._id === u(e).params._id ? (m(), v(x, {
333
+ c.user._id === u(e).params._id ? (m(), v(U, {
333
334
  key: 2,
334
335
  class: "bg-grey"
335
336
  }, {
336
337
  default: _(() => [
337
- l($, {
338
- onClick: n[5] || (n[5] = (d) => u(p).push({
338
+ n($, {
339
+ onClick: l[5] || (l[5] = (d) => u(p).push({
339
340
  name: "User Edit Profile",
340
341
  params: {
341
342
  _id: u(e).params._id
@@ -344,12 +345,12 @@ const ve = { class: "for-transition w-100" }, be = {
344
345
  class: "cursor-pointer"
345
346
  }, {
346
347
  default: _(() => [
347
- Se
348
+ Oe
348
349
  ]),
349
350
  _: 1
350
351
  }),
351
- l($, {
352
- onClick: n[6] || (n[6] = (d) => u(p).push({
352
+ n($, {
353
+ onClick: l[6] || (l[6] = (d) => u(p).push({
353
354
  name: "Legal",
354
355
  params: {
355
356
  _id: u(e).params._id
@@ -358,16 +359,16 @@ const ve = { class: "for-transition w-100" }, be = {
358
359
  class: "cursor-pointer"
359
360
  }, {
360
361
  default: _(() => [
361
- Oe
362
+ Ie
362
363
  ]),
363
364
  _: 1
364
365
  }),
365
- l($, {
366
+ n($, {
366
367
  class: "cursor-pointer",
367
- onClick: n[7] || (n[7] = (d) => o())
368
+ onClick: l[7] || (l[7] = (d) => o())
368
369
  }, {
369
370
  default: _(() => [
370
- Ie
371
+ Le
371
372
  ]),
372
373
  _: 1
373
374
  })
@@ -377,36 +378,36 @@ const ve = { class: "for-transition w-100" }, be = {
377
378
  ]))
378
379
  ]));
379
380
  }
380
- }, Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
381
+ }, Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
381
382
  __proto__: null,
382
- default: Le
383
+ default: Re
383
384
  }, Symbol.toStringTag, { value: "Module" }));
384
- const Be = { class: "pd-medium for-transition w-100" }, ze = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Username", -1), Ae = /* @__PURE__ */ i("p", { class: "mn-semi" }, "Your username will be used for URL of profile like thecommunephuket/users/username", -1), Fe = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Profile", -1), Te = { class: "mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, je = /* @__PURE__ */ i("h4", null, "Upload userpic", -1), De = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Socials", -1), Ge = /* @__PURE__ */ i("p", { class: "mn-thin" }, "Please provide only the username for social media profiles, without full links.", -1), Ye = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Account", -1), qe = {
385
+ const ze = { class: "pd-medium for-transition w-100" }, Ae = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Username", -1), Fe = /* @__PURE__ */ i("p", { class: "mn-semi" }, "Your username will be used for URL of profile like thecommunephuket/users/username", -1), Te = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Profile", -1), je = { class: "mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, De = /* @__PURE__ */ i("h4", null, "Upload userpic", -1), Ge = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Socials", -1), qe = /* @__PURE__ */ i("p", { class: "mn-thin" }, "Please provide only the username for social media profiles, without full links.", -1), Ye = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Account", -1), Je = {
385
386
  __name: "ProfileEdit",
386
387
  async setup(r) {
387
388
  let e, p;
388
- U(null);
389
+ x(null);
389
390
  const w = N(), y = S();
390
391
  [e, p] = T(() => M.read({ _id: c.user._id })), await e, p();
391
- const o = U(t.current);
392
+ const o = x(t.current);
392
393
  async function h() {
393
394
  await M.update(t.current);
394
395
  }
395
- async function n() {
396
+ async function l() {
396
397
  window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.") && (t.current.status = "removed", await M.update(t.current), O.logout());
397
398
  }
398
399
  function d() {
399
400
  y.replace({ name: "User Profile", params: { _id: t.current._id } });
400
401
  }
401
- return (f, s) => (m(), C("div", Be, [
402
+ return (f, s) => (m(), C("div", ze, [
402
403
  u(w).params._id === c.user._id ? (m(), v(I, {
403
404
  key: 0,
404
405
  user: c.user._id,
405
406
  target: o.value,
406
407
  cta: !1
407
408
  }, null, 8, ["user", "target"])) : b("", !0),
408
- ze,
409
- l(g, {
409
+ Ae,
410
+ n(g, {
410
411
  field: o.value.username,
411
412
  "onUpdate:field": s[0] || (s[0] = (a) => o.value.username = a),
412
413
  label: "@",
@@ -415,18 +416,18 @@ const Be = { class: "pd-medium for-transition w-100" }, ze = /* @__PURE__ */ i("
415
416
  disabled: "true",
416
417
  validation: f.organizationName
417
418
  }, null, 8, ["field", "validation"]),
418
- Ae,
419
419
  Fe,
420
- i("div", Te, [
421
- l(K, {
420
+ Te,
421
+ i("div", je, [
422
+ n(K, {
422
423
  photo: o.value.profile.photo,
423
424
  "onUpdate:photo": s[1] || (s[1] = (a) => o.value.profile.photo = a),
424
425
  uploadPath: "users/" + o.value._id + "/avatars",
425
426
  class: "h-4r w-4r aspect-1x1 o-hidden bg-white mn-thin radius-extra"
426
427
  }, null, 8, ["photo", "uploadPath"]),
427
- je
428
+ De
428
429
  ]),
429
- l(g, {
430
+ n(g, {
430
431
  field: o.value.profile.name,
431
432
  "onUpdate:field": s[2] || (s[2] = (a) => o.value.profile.name = a),
432
433
  label: "Name",
@@ -434,7 +435,7 @@ const Be = { class: "pd-medium for-transition w-100" }, ze = /* @__PURE__ */ i("
434
435
  class: "mn-thin bg-grey pd-medium radius-small",
435
436
  validation: f.organizationName
436
437
  }, null, 8, ["field", "validation"]),
437
- l(g, {
438
+ n(g, {
438
439
  field: o.value.profile.description,
439
440
  "onUpdate:field": s[3] || (s[3] = (a) => o.value.profile.description = a),
440
441
  label: "Description",
@@ -443,30 +444,30 @@ const Be = { class: "pd-medium for-transition w-100" }, ze = /* @__PURE__ */ i("
443
444
  disabled: "true",
444
445
  validation: f.organizationName
445
446
  }, null, 8, ["field", "validation"]),
446
- De,
447
447
  Ge,
448
- l(g, {
448
+ qe,
449
+ n(g, {
449
450
  field: o.value.socials.instagram,
450
451
  "onUpdate:field": s[4] || (s[4] = (a) => o.value.socials.instagram = a),
451
452
  label: "Instagram",
452
453
  placeholder: "",
453
454
  class: "mn-thin bg-grey pd-medium radius-small"
454
455
  }, null, 8, ["field"]),
455
- l(g, {
456
+ n(g, {
456
457
  field: o.value.socials.twitter,
457
458
  "onUpdate:field": s[5] || (s[5] = (a) => o.value.socials.twitter = a),
458
459
  label: "Twitter",
459
460
  placeholder: "",
460
461
  class: "mn-thin bg-grey pd-medium radius-small"
461
462
  }, null, 8, ["field"]),
462
- l(g, {
463
+ n(g, {
463
464
  field: o.value.socials.facebook,
464
465
  "onUpdate:field": s[6] || (s[6] = (a) => o.value.socials.facebook = a),
465
466
  label: "Facebook",
466
467
  placeholder: "",
467
468
  class: "mn-thin bg-grey pd-medium radius-small"
468
469
  }, null, 8, ["field"]),
469
- l(g, {
470
+ n(g, {
470
471
  field: o.value.socials.telegram,
471
472
  "onUpdate:field": s[7] || (s[7] = (a) => o.value.socials.telegram = a),
472
473
  label: "Telegram",
@@ -474,7 +475,7 @@ const Be = { class: "pd-medium for-transition w-100" }, ze = /* @__PURE__ */ i("
474
475
  class: "mn-semi bg-grey pd-medium radius-small"
475
476
  }, null, 8, ["field"]),
476
477
  Ye,
477
- l(g, {
478
+ n(g, {
478
479
  field: o.value.phone,
479
480
  "onUpdate:field": s[8] || (s[8] = (a) => o.value.phone = a),
480
481
  label: "Phone",
@@ -483,7 +484,7 @@ const Be = { class: "pd-medium for-transition w-100" }, ze = /* @__PURE__ */ i("
483
484
  disabled: "true",
484
485
  validation: f.organizationName
485
486
  }, null, 8, ["field", "validation"]),
486
- l(g, {
487
+ n(g, {
487
488
  field: o.value.email,
488
489
  "onUpdate:field": s[9] || (s[9] = (a) => o.value.email = a),
489
490
  label: "Email",
@@ -492,7 +493,7 @@ const Be = { class: "pd-medium for-transition w-100" }, ze = /* @__PURE__ */ i("
492
493
  disabled: !0,
493
494
  validation: f.organizationName
494
495
  }, null, 8, ["field", "validation"]),
495
- l(Z, {
496
+ n(Z, {
496
497
  submit: h,
497
498
  callback: d,
498
499
  class: "mn-thin"
@@ -502,8 +503,8 @@ const Be = { class: "pd-medium for-transition w-100" }, ze = /* @__PURE__ */ i("
502
503
  ]),
503
504
  _: 1
504
505
  }),
505
- l(Z, {
506
- submit: n,
506
+ n(Z, {
507
+ submit: l,
507
508
  callback: f.a = () => {
508
509
  u(y).push({ name: "Sign In" });
509
510
  },
@@ -516,98 +517,102 @@ const Be = { class: "pd-medium for-transition w-100" }, ze = /* @__PURE__ */ i("
516
517
  }, 8, ["callback"])
517
518
  ]));
518
519
  }
519
- }, Je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
520
+ }, Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
520
521
  __proto__: null,
521
- default: qe
522
- }, Symbol.toStringTag, { value: "Module" })), ct = [{
523
- path: "profile/:_id",
524
- name: "User Profile",
525
- meta: {
526
- title: {
527
- en: "Profile",
528
- ru: "Профиль"
529
- }
530
- },
531
- component: () => Promise.resolve().then(() => Re)
532
- }, {
533
- path: "profile/:_id/blogposts",
534
- name: "User Blogposts",
535
- meta: {
536
- title: {
537
- en: "Posts",
538
- ru: "Посты"
539
- }
540
- },
541
- component: () => import(
542
- /* webpackChunkName: "profile" */
543
- "./ProfileBlogposts-5deee0c5.mjs"
544
- )
545
- }, {
546
- path: "profile/:_id/comments",
547
- name: "User Comments",
548
- meta: {
549
- title: {
550
- en: "Comments",
551
- ru: "Комментарии"
552
- }
553
- },
554
- component: () => import(
555
- /* webpackChunkName: "profile" */
556
- "./ProfileComments-3cf3e265.mjs"
557
- )
558
- }, {
559
- path: "profile/:_id/edit",
560
- name: "User Edit Profile",
561
- meta: {
562
- title: {
563
- en: "Edit Profile",
564
- ru: "Редактировать Профиль"
565
- }
522
+ default: Je
523
+ }, Symbol.toStringTag, { value: "Module" })), _t = [
524
+ {
525
+ path: "profile/:_id",
526
+ name: "User Profile",
527
+ meta: {
528
+ title: {
529
+ en: "Profile",
530
+ ru: "Профиль"
531
+ }
532
+ },
533
+ component: () => Promise.resolve().then(() => Be)
566
534
  },
567
- component: () => Promise.resolve().then(() => Je)
568
- }, {
569
- path: "profile/:_id/events",
570
- name: "User Events",
571
- meta: {
572
- title: {
573
- en: "Events",
574
- ru: "События"
575
- }
535
+ {
536
+ path: "profile/:_id/edit",
537
+ name: "User Edit Profile",
538
+ beforeEnter: [
539
+ Q
540
+ ],
541
+ meta: {
542
+ title: {
543
+ en: "Edit Profile",
544
+ ru: "Редактировать Профиль"
545
+ }
546
+ },
547
+ component: () => Promise.resolve().then(() => Ke)
576
548
  },
577
- component: () => import(
578
- /* webpackChunkName: "profile" */
579
- "./ProfileEvents-7502ed90.mjs"
580
- )
581
- }, {
582
- path: "profile/:_id/likes",
583
- name: "User Likes",
584
- meta: {
585
- title: {
586
- en: "Likes",
587
- ru: "Лайки"
588
- }
549
+ {
550
+ path: "profile/:_id/blogposts",
551
+ name: "User Blogposts",
552
+ meta: {
553
+ title: {
554
+ en: "Posts",
555
+ ru: "Посты"
556
+ }
557
+ },
558
+ component: () => import(
559
+ /* webpackChunkName: "profile" */
560
+ "./ProfileBlogposts-03d04b92.mjs"
561
+ )
589
562
  },
590
- component: () => import(
591
- /* webpackChunkName: "profile" */
592
- "./ProfileLikes-5b52e4ae.mjs"
593
- )
594
- }, {
595
- path: "profile/:_id/organizations",
596
- name: "User Organizations",
597
- meta: {
598
- title: {
599
- en: "Groups",
600
- ru: "Группы"
601
- }
563
+ {
564
+ path: "profile/:_id/events",
565
+ name: "User Events",
566
+ meta: {
567
+ title: {
568
+ en: "Events",
569
+ ru: "События"
570
+ }
571
+ },
572
+ component: () => import(
573
+ /* webpackChunkName: "profile" */
574
+ "./ProfileEvents-917169c6.mjs"
575
+ )
602
576
  },
603
- component: () => import(
604
- /* webpackChunkName: "profile" */
605
- "./ProfileOrganizations-c5151835.mjs"
606
- )
607
- }];
577
+ {
578
+ path: "profile/:_id/organizations",
579
+ name: "User Organizations",
580
+ meta: {
581
+ title: {
582
+ en: "Groups",
583
+ ru: "Группы"
584
+ }
585
+ },
586
+ component: () => import(
587
+ /* webpackChunkName: "profile" */
588
+ "./ProfileOrganizations-c5151835.mjs"
589
+ )
590
+ }
591
+ // ,{
592
+ // path: 'profile/:_id/likes',
593
+ // name: 'User Likes',
594
+ // meta: {
595
+ // title: {
596
+ // en: 'Likes',
597
+ // ru: 'Лайки'
598
+ // }
599
+ // },
600
+ // component: () => import(/* webpackChunkName: "profile" */ '../components/pages/ProfileLikes.vue'),
601
+ // },{
602
+ // path: 'profile/:_id/comments',
603
+ // name: 'User Comments',
604
+ // meta: {
605
+ // title: {
606
+ // en: 'Comments',
607
+ // ru: 'Комментарии'
608
+ // }
609
+ // },
610
+ // component: () => import(/* webpackChunkName: "profile" */ '../components/pages/ProfileComments.vue'),
611
+ // },
612
+ ];
608
613
  export {
609
- Le as Profile,
610
- qe as ProfileEdit,
611
- ct as usersRoutes,
612
- mt as usersStore
614
+ Re as Profile,
615
+ Je as ProfileEdit,
616
+ _t as usersRoutes,
617
+ pt as usersStore
613
618
  };