@ozdao/prometheus-framework 0.1.6 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-561d6db3.js +1 -0
  2. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-9e474158.mjs +1945 -0
  3. package/dist/ButtonFollow-38d9a720.mjs +131 -0
  4. package/dist/ButtonFollow-9a33ab06.js +1 -0
  5. package/dist/CardOrganization-3049931d.mjs +230 -0
  6. package/dist/CardOrganization-8b376cbb.js +1 -0
  7. package/dist/Chips-03ff0c34.mjs +108 -0
  8. package/dist/Chips-4d8ac62e.js +1 -0
  9. package/dist/Feed-1d0d9853.js +1 -0
  10. package/dist/Feed-79839e67.mjs +368 -0
  11. package/dist/Feed-af94027c.js +1 -0
  12. package/dist/Feed-b616f102.mjs +439 -0
  13. package/dist/Image-75f5becb.js +9 -0
  14. package/dist/Image-be69af9c.mjs +477 -0
  15. package/dist/Popup-d7dbc670.mjs +76 -0
  16. package/dist/Popup-ee4bd834.js +1 -0
  17. package/dist/Product-8bee8d1c.mjs +838 -0
  18. package/dist/Product-a39f3ca3.js +7 -0
  19. package/dist/ProductEdit-052b0aef.mjs +350 -0
  20. package/dist/ProductEdit-a322f1ba.js +1 -0
  21. package/dist/ProfileBlogposts-08f784c3.mjs +64 -0
  22. package/dist/ProfileBlogposts-d6bba033.js +1 -0
  23. package/dist/ProfileComments-96f6cde8.mjs +44 -0
  24. package/dist/ProfileComments-dd923865.js +1 -0
  25. package/dist/ProfileEvents-1e0c1291.js +1 -0
  26. package/dist/ProfileEvents-26a72fe2.mjs +56 -0
  27. package/dist/ProfileLikes-b1060d1e.js +1 -0
  28. package/dist/ProfileLikes-c8dab14d.mjs +44 -0
  29. package/dist/ProfileOrganizations-3a879480.mjs +212 -0
  30. package/dist/ProfileOrganizations-78fef72e.js +1 -0
  31. package/dist/Publics-8bb9a680.js +1 -0
  32. package/dist/Publics-ffc08ad7.mjs +123 -0
  33. package/dist/UploadImage-6344f789.js +1 -0
  34. package/dist/UploadImage-f04e4bc0.mjs +83 -0
  35. package/dist/auth-60c81f40.mjs +1836 -0
  36. package/dist/auth-e8f6d979.js +8 -0
  37. package/dist/auth.client.cjs +4 -4
  38. package/dist/auth.client.js +247 -236
  39. package/dist/auth.server.js +72 -11
  40. package/dist/auth.server.mjs +72 -11
  41. package/dist/auth.validation-1d5f2990.mjs +20 -0
  42. package/dist/auth.validation-2dfb450f.js +1 -0
  43. package/dist/community.client.cjs +1 -1
  44. package/dist/community.client.js +11 -11
  45. package/dist/events.client.cjs +1 -1
  46. package/dist/events.client.js +9 -9
  47. package/dist/organizations-4157d81d.js +1 -0
  48. package/dist/organizations-52438d24.mjs +121 -0
  49. package/dist/organizations.client-16ee6b43.js +3 -0
  50. package/dist/organizations.client-cdbaf6aa.mjs +3017 -0
  51. package/dist/organizations.client.cjs +1 -1
  52. package/dist/organizations.client.js +11 -11
  53. package/dist/users.client.cjs +1 -1
  54. package/dist/users.client.js +258 -239
  55. package/dist/users.server.js +7 -0
  56. package/dist/users.server.mjs +7 -0
  57. package/package.json +1 -1
  58. package/src/components/CardHeader/CardHeader.vue +2 -1
  59. package/src/modules/auth/components/pages/SignIn.vue +48 -44
  60. package/src/modules/auth/controllers/auth.controller.js +42 -11
  61. package/src/modules/auth/store/auth.js +3 -10
  62. package/src/modules/auth/utils/server/verifyAppleIdToken.js +57 -0
  63. package/src/modules/users/components/pages/Profile.vue +20 -6
  64. package/src/modules/users/components/pages/ProfileEdit.vue +15 -5
  65. package/src/modules/users/models/user.model.js +9 -1
  66. package/src/modules/users/store/users.js +2 -1
@@ -1,20 +1,20 @@
1
- import { openBlock as u, createElementBlock as _, renderSlot as N, createElementVNode as i, defineComponent as z, h as x, ref as V, resolveComponent as O, toDisplayString as $, createBlock as w, withCtx as v, createTextVNode as E, createCommentVNode as y, reactive as B, onMounted as R, unref as c, Fragment as F, renderList as j, normalizeClass as T, createVNode as d, withAsyncContext as A } from "vue";
2
- import { a as G, s as p, b as D, F as g, _ as Y } from "./auth-cfeacd61.mjs";
1
+ import { openBlock as d, createElementBlock as p, renderSlot as O, createElementVNode as o, defineComponent as B, h as x, ref as U, resolveComponent as R, toDisplayString as w, createBlock as y, withCtx as g, createTextVNode as Z, createCommentVNode as $, reactive as F, onMounted as j, unref as m, Fragment as A, renderList as T, normalizeClass as D, createVNode as a, withAsyncContext as G } from "vue";
2
+ import { a as Y, s as f, b as L, F as b, _ as S } from "./auth-60c81f40.mjs";
3
3
  import { _ as H } from "./_plugin-vue_export-helper-dad06003.mjs";
4
- import { B as q, m as J } from "./ButtonFollow-6765c266.mjs";
4
+ import { B as q, m as J } from "./ButtonFollow-38d9a720.mjs";
5
5
  import { _ as K } from "./Socials-8193477c.mjs";
6
6
  import { I as Q, P as W } from "./IconEdit-eacf3856.mjs";
7
- import { useRoute as L, useRouter as S } from "vue-router";
7
+ import { useRoute as N, useRouter as I } from "vue-router";
8
8
  import "./inputs.validation-14e8e01f.mjs";
9
- import { _ as X } from "./UploadImage-15e24d71.mjs";
10
- import "./auth.validation-3fd4cc7c.mjs";
9
+ import { _ as X } from "./UploadImage-f04e4bc0.mjs";
10
+ import "./auth.validation-1d5f2990.mjs";
11
11
  import "./globals-96ba60e4.mjs";
12
12
  import "vue-i18n";
13
- const ee = { class: "mobile-menu-section mn-semi pd-r-zero pd-t-thin pd-b-thin pd-medium bg-grey radius-medium" }, Z = {
13
+ const ee = { class: "mobile-menu-section mn-semi pd-r-zero pd-t-thin pd-b-thin pd-medium bg-grey radius-medium" }, E = {
14
14
  __name: "Menu",
15
- setup(t) {
16
- return (e, m) => (u(), _("section", ee, [
17
- N(e.$slots, "default")
15
+ setup(s) {
16
+ return (e, c) => (d(), p("section", ee, [
17
+ O(e.$slots, "default")
18
18
  ]));
19
19
  }
20
20
  }, te = {}, se = {
@@ -23,21 +23,21 @@ const ee = { class: "mobile-menu-section mn-semi pd-r-zero pd-t-thin pd-b-thin p
23
23
  viewBox: "0 0 80 80",
24
24
  fill: "none",
25
25
  xmlns: "http://www.w3.org/2000/svg"
26
- }, re = /* @__PURE__ */ i("path", {
26
+ }, re = /* @__PURE__ */ o("path", {
27
27
  fill: "black",
28
28
  d: "M16.25 9.375L20 5.9375C21.5625 4.53125 23.9062 4.6875 25.3125 6.25L54.2188 37.8125C55.3125 39.0625 55.3125 40.9375 54.2188 42.1875L25.3125 73.75C23.9062 75.3125 21.5625 75.4688 20 74.0625L16.25 70.625C14.6875 69.375 14.5312 66.875 15.9375 65.4688L39.375 40L15.9375 14.5312C14.5312 13.125 14.6875 10.625 16.25 9.375Z"
29
29
  }, null, -1), ie = [
30
30
  re
31
31
  ];
32
- function ne(t, e) {
33
- return u(), _("svg", se, ie);
32
+ function ne(s, e) {
33
+ return d(), p("svg", se, ie);
34
34
  }
35
- const ae = /* @__PURE__ */ H(te, [["render", ne]]), P = z({
36
- setup(t, { slots: e }) {
35
+ const oe = /* @__PURE__ */ H(te, [["render", ne]]), k = B({
36
+ setup(s, { slots: e }) {
37
37
  return () => {
38
- const m = e.default ? e.default() : [], f = [], h = [];
39
- return m.forEach((s) => {
40
- s.toString(), s.props && s.props.icon ? f.push(s) : h.push(s);
38
+ const c = e.default ? e.default() : [], h = [], C = [];
39
+ return c.forEach((t) => {
40
+ t.toString(), t.props && t.props.icon ? h.push(t) : C.push(t);
41
41
  }), x(
42
42
  "div",
43
43
  {
@@ -53,13 +53,13 @@ const ae = /* @__PURE__ */ H(te, [["render", ne]]), P = z({
53
53
  },
54
54
  [
55
55
  // Conditionally include the div for iconSlot
56
- ...f.length ? [
56
+ ...h.length ? [
57
57
  x(
58
58
  "div",
59
59
  {
60
60
  class: ["mn-thin", "mn-t-thin", "flex-center", "flex", "mn-r-small", "flex-child", "flex-child-shrink-0", "i-big", "bg-main", "radius-thin"]
61
61
  },
62
- f
62
+ h
63
63
  )
64
64
  ] : [],
65
65
  x(
@@ -73,81 +73,81 @@ const ae = /* @__PURE__ */ H(te, [["render", ne]]), P = z({
73
73
  {
74
74
  class: ["p-big", "t-medium", "mn-r-auto"]
75
75
  },
76
- h
76
+ C
77
77
  )
78
78
  ]
79
79
  ),
80
- x(ae, { class: "i-medium mn-r-medium", type: "chevron" })
80
+ x(oe, { class: "i-medium mn-r-medium", type: "chevron" })
81
81
  // Inserting IconChevronRight directly
82
82
  ]
83
83
  );
84
84
  };
85
85
  }
86
- }), le = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, I = {
86
+ }), ae = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, z = {
87
87
  __name: "ProfileCompletion",
88
88
  props: {
89
89
  user: Object,
90
90
  target: Object,
91
91
  cta: Boolean
92
92
  },
93
- setup(t) {
94
- const { user: e, cta: m, target: f } = t, h = V(0), s = (C) => {
95
- let o = 0, l = 0;
96
- function a(r) {
97
- for (let b in r)
98
- r.hasOwnProperty(b) && (r[b] && typeof r[b] == "object" && !Array.isArray(r[b]) ? a(r[b]) : (o++, r[b] != null && r[b] !== "" && l++));
93
+ setup(s) {
94
+ const { user: e, cta: c, target: h } = s, C = U(0), t = (v) => {
95
+ let l = 0, u = 0;
96
+ function _(i) {
97
+ for (let n in i)
98
+ i.hasOwnProperty(n) && (i[n] && typeof i[n] == "object" && !Array.isArray(i[n]) ? _(i[n]) : (l++, i[n] != null && i[n] !== "" && u++));
99
99
  }
100
- return a(C), o === 0 ? 0 : Math.round(l / o * 100);
100
+ return _(v), l === 0 ? 0 : Math.round(u / l * 100);
101
101
  };
102
- return f && (h.value = s(f)), (C, o) => {
103
- const l = O("router-link");
104
- return u(), _("section", le, [
105
- i("h3", null, " Profile completed at " + $(h.value) + "% ", 1),
106
- t.cta ? (u(), w(l, {
102
+ return h && (C.value = t(h)), (v, l) => {
103
+ const u = R("router-link");
104
+ return d(), p("section", ae, [
105
+ o("h3", null, " Profile completed at " + w(C.value) + "% ", 1),
106
+ s.cta ? (d(), y(u, {
107
107
  key: 0,
108
108
  to: {
109
109
  name: "User Edit Profile",
110
- params: { _id: t.user }
110
+ params: { _id: s.user }
111
111
  },
112
112
  class: "mn-t-regular t-black bg-white w-100 button"
113
113
  }, {
114
- default: v(() => [
115
- E(" Fill Profile ")
114
+ default: g(() => [
115
+ Z(" Fill Profile ")
116
116
  ]),
117
117
  _: 1
118
- }, 8, ["to"])) : y("", !0)
118
+ }, 8, ["to"])) : $("", !0)
119
119
  ]);
120
120
  };
121
121
  }
122
- }, oe = {}, de = {
122
+ }, le = {}, de = {
123
123
  width: "80",
124
124
  height: "80",
125
125
  viewBox: "0 0 80 80",
126
126
  fill: "none",
127
127
  xmlns: "http://www.w3.org/2000/svg"
128
- }, ue = /* @__PURE__ */ i("path", {
128
+ }, ue = /* @__PURE__ */ o("path", {
129
129
  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",
130
130
  fill: "white"
131
131
  }, null, -1), me = [
132
132
  ue
133
133
  ];
134
- function ce(t, e) {
135
- return u(), _("svg", de, me);
134
+ function ce(s, e) {
135
+ return d(), p("svg", de, me);
136
136
  }
137
- const pe = /* @__PURE__ */ H(oe, [["render", ce]]), _e = {}, fe = {
137
+ const pe = /* @__PURE__ */ H(le, [["render", ce]]), _e = {}, fe = {
138
138
  width: "80",
139
139
  height: "80",
140
140
  viewBox: "0 0 80 80",
141
141
  fill: "none",
142
142
  xmlns: "http://www.w3.org/2000/svg"
143
- }, he = /* @__PURE__ */ i("path", {
143
+ }, he = /* @__PURE__ */ o("path", {
144
144
  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",
145
145
  fill: "white"
146
146
  }, null, -1), Ce = [
147
147
  he
148
148
  ];
149
- function ge(t, e) {
150
- return u(), _("svg", fe, Ce);
149
+ function ge(s, e) {
150
+ return d(), p("svg", fe, Ce);
151
151
  }
152
152
  const ve = /* @__PURE__ */ H(_e, [["render", ge]]), be = {}, we = {
153
153
  width: "56",
@@ -155,34 +155,35 @@ const ve = /* @__PURE__ */ H(_e, [["render", ge]]), be = {}, we = {
155
155
  viewBox: "0 0 56 56",
156
156
  fill: "none",
157
157
  xmlns: "http://www.w3.org/2000/svg"
158
- }, ye = /* @__PURE__ */ i("path", {
158
+ }, ye = /* @__PURE__ */ o("path", {
159
159
  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",
160
160
  fill: "white"
161
- }, null, -1), $e = /* @__PURE__ */ i("path", {
161
+ }, null, -1), $e = /* @__PURE__ */ o("path", {
162
162
  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",
163
163
  fill: "white"
164
- }, null, -1), xe = /* @__PURE__ */ i("path", {
164
+ }, null, -1), xe = /* @__PURE__ */ o("path", {
165
165
  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",
166
166
  fill: "white"
167
- }, null, -1), Pe = /* @__PURE__ */ i("path", {
167
+ }, null, -1), ke = /* @__PURE__ */ o("path", {
168
168
  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",
169
169
  fill: "white"
170
- }, null, -1), ke = [
170
+ }, null, -1), Pe = [
171
171
  ye,
172
172
  $e,
173
173
  xe,
174
- Pe
174
+ ke
175
175
  ];
176
- function Me(t, e) {
177
- return u(), _("svg", we, ke);
176
+ function Me(s, e) {
177
+ return d(), p("svg", we, Pe);
178
178
  }
179
- const Ve = /* @__PURE__ */ H(be, [["render", Me]]), M = G.create({ baseURL: process.env.API_URL, withCredentials: !0 }), n = B({
179
+ const Ve = /* @__PURE__ */ H(be, [["render", Me]]), V = Y.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = F({
180
180
  all: [],
181
181
  current: {
182
182
  _id: "",
183
183
  username: "",
184
184
  email: "",
185
185
  phone: "",
186
+ status: "",
186
187
  profile: {
187
188
  name: "",
188
189
  photo: "",
@@ -197,48 +198,47 @@ const Ve = /* @__PURE__ */ H(be, [["render", Me]]), M = G.create({ baseURL: proc
197
198
  },
198
199
  roles: []
199
200
  }
200
- }), U = {
201
- async create(t) {
201
+ }), M = {
202
+ async create(s) {
202
203
  try {
203
- const e = await M.post("/api/users", t);
204
- return k.set(e.data, "current"), Promise.resolve(e.data);
204
+ const e = await V.post("/api/users", s);
205
+ return P.set(e.data, "current"), Promise.resolve(e.data);
205
206
  } catch (e) {
206
207
  return console.error(e), Promise.reject(e);
207
208
  }
208
209
  },
209
- async read(t = {}) {
210
- t.params = {}, t._id && (t.params._id = t._id), t.user && (t.params.user = t.user);
210
+ async read(s = {}) {
211
+ s.params = {}, s._id && (s.params._id = s._id), s.user && (s.params.user = s.user);
211
212
  try {
212
- const e = await M.get("/api/users", { params: t.params });
213
- return t._id ? k.set(e.data[0], "current") : k.set(e.data, "all"), Promise.resolve(e.data);
213
+ const e = await V.get("/api/users", { params: s.params });
214
+ return s._id ? P.set(e.data[0], "current") : P.set(e.data, "all"), Promise.resolve(e.data);
214
215
  } catch (e) {
215
216
  return console.error(e), Promise.reject(e);
216
217
  }
217
218
  },
218
- async update(t) {
219
- console.log(t);
219
+ async update(s) {
220
220
  try {
221
- const e = await M.put(`/api/users/${t._id}`, t);
222
- return k.set(e.data, "current"), Promise.resolve(e.data);
221
+ const e = await V.put(`/api/users/${s._id}`, s);
222
+ return P.set(e.data, "current"), Promise.resolve(e.data);
223
223
  } catch (e) {
224
224
  return console.error(e), Promise.reject(e);
225
225
  }
226
226
  },
227
- async delete(t) {
227
+ async delete(s) {
228
228
  try {
229
- await M.delete(`/api/users/${t._id}`);
230
- const e = n.all.findIndex((m) => m._id === t._id);
231
- e !== -1 && n.all.splice(e, 1);
229
+ await V.delete(`/api/users/${s._id}`);
230
+ const e = r.all.findIndex((c) => c._id === s._id);
231
+ e !== -1 && r.all.splice(e, 1);
232
232
  } catch (e) {
233
233
  console.error(e);
234
234
  }
235
235
  }
236
- }, k = {
237
- set(t, e) {
238
- n[e] = t;
236
+ }, P = {
237
+ set(s, e) {
238
+ r[e] = s;
239
239
  },
240
240
  clean() {
241
- n.current = {
241
+ r.current = {
242
242
  phone: "",
243
243
  name: "",
244
244
  surname: "",
@@ -249,288 +249,307 @@ const Ve = /* @__PURE__ */ H(be, [["render", Me]]), M = G.create({ baseURL: proc
249
249
  orders: []
250
250
  };
251
251
  }
252
- }, ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
252
+ }, ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
253
253
  __proto__: null,
254
- actions: U,
255
- mutations: k,
256
- state: n
254
+ actions: M,
255
+ mutations: P,
256
+ state: r
257
257
  }, Symbol.toStringTag, { value: "Module" }));
258
258
  const Ue = { class: "for-transition w-100" }, He = {
259
+ key: 0,
260
+ class: "flex-center flex pd-medium radius-big bg-grey uppercase t-semi w-100 h-100"
261
+ }, Ze = {
262
+ key: 1,
259
263
  _id: "dash",
260
264
  class: "pd-b-extra pd-thin w-100"
261
- }, Ze = { class: "flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey" }, Ee = ["src"], Le = { class: "mn-thin" }, Se = { class: "mn-small t-main t-semi" }, Ie = { class: "mn-medium flex-center flex-nowrap flex" }, Ne = { class: "t-semi mn-small" }, ze = {
265
+ }, Se = { class: "flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey" }, Ee = ["src"], Le = { class: "mn-thin" }, Ne = { class: "mn-thin t-main t-semi" }, Ie = { class: "mn-small p-medium" }, ze = { class: "mn-medium flex-center flex-nowrap flex" }, Oe = { class: "t-semi mn-small" }, Be = {
262
266
  key: 4,
263
267
  class: "mn-t-small mn-thin"
264
- }, Oe = /* @__PURE__ */ i("span", null, "Events", -1), Be = /* @__PURE__ */ i("span", null, "Groups", -1), Re = /* @__PURE__ */ i("span", null, "Posts", -1), Fe = /* @__PURE__ */ i("span", null, " Settings ", -1), je = /* @__PURE__ */ i("span", { class: "t-red" }, " Logout ", -1), Te = {
268
+ }, Re = /* @__PURE__ */ o("span", null, "Events", -1), Fe = /* @__PURE__ */ o("span", null, "Groups", -1), je = /* @__PURE__ */ o("span", null, "Posts", -1), Ae = /* @__PURE__ */ o("span", null, " Settings ", -1), Te = /* @__PURE__ */ o("span", { class: "t-red" }, " Logout ", -1), De = {
265
269
  __name: "Profile",
266
- setup(t) {
267
- const e = L(), m = S(), f = V(!1);
268
- R(async () => {
269
- await U.read({ _id: e.params._id, user: p.user._id }), f.value = !0;
270
+ setup(s) {
271
+ const e = N(), c = I(), h = U(!1);
272
+ j(async () => {
273
+ await M.read({ _id: e.params._id, user: f.user._id }), h.value = !0;
270
274
  });
271
- const h = ({ membership: C, isMember: o, targetId: l }) => {
272
- J.handleMembershipUpdate(n.current, C, o, l);
275
+ const C = ({ membership: v, isMember: l, targetId: u }) => {
276
+ J.handleMembershipUpdate(r.current, v, l, u);
273
277
  };
274
- function s() {
275
- D.logout(), m.push({ name: "Sign In" });
278
+ function t() {
279
+ L.logout(), c.push({ name: "Sign In" });
276
280
  }
277
- return (C, o) => (u(), _("div", Ue, [
278
- i("div", He, [
279
- c(e).params._id === p.user._id && f.value ? (u(), w(I, {
281
+ return (v, l) => (d(), p("div", Ue, [
282
+ r.current.status === "removed" ? (d(), p("div", He, " Sorry, user has been removed. ")) : (d(), p("div", Ze, [
283
+ m(e).params._id === f.user._id && h.value ? (d(), y(z, {
280
284
  key: 0,
281
- user: p.user._id,
282
- target: n.current,
285
+ user: f.user._id,
286
+ target: r.current,
283
287
  cta: !0
284
- }, null, 8, ["user", "target"])) : y("", !0),
285
- i("section", Ze, [
286
- c(e).params._id === p.user._id ? (u(), w(Q, {
288
+ }, null, 8, ["user", "target"])) : $("", !0),
289
+ o("section", Se, [
290
+ m(e).params._id === f.user._id ? (d(), y(Q, {
287
291
  key: 0,
288
- onClick: o[0] || (o[0] = (l) => C.$router.push({
292
+ onClick: l[0] || (l[0] = (u) => v.$router.push({
289
293
  name: "User Edit Profile",
290
294
  params: {
291
- _id: p.user._id
295
+ _id: f.user._id
292
296
  }
293
297
  })),
294
298
  class: "pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
295
- })) : y("", !0),
296
- n.current.profile.photo.length > 0 ? (u(), _("img", {
299
+ })) : $("", !0),
300
+ r.current.profile.photo.length > 0 ? (d(), p("img", {
297
301
  key: 1,
298
- src: (C.FILE_SERVER_URL || "") + n.current.profile.photo,
302
+ src: (v.FILE_SERVER_URL || "") + r.current.profile.photo,
299
303
  class: "radius-extra bg-white mn-small object-fit-cover i-extra"
300
- }, null, 8, Ee)) : (u(), w(W, {
304
+ }, null, 8, Ee)) : (d(), y(W, {
301
305
  key: 2,
302
306
  class: "radius-medium mn-small i-extra"
303
307
  })),
304
- i("h3", Le, $(n.current.profile.name ? n.current.profile.name : "Не указан"), 1),
305
- i("p", Se, " @" + $(n.current.username ? n.current.username : "Не указан"), 1),
306
- i("div", Ie, [
307
- (u(!0), _(F, null, j(n.current.roles, (l, a) => (u(), _("div", {
308
- class: T(["pd-thin radius-small t-semi bg-white", { "mn-r-thin": a !== n.current.roles.length - 1 }])
309
- }, $(l.icon) + " " + $(l.name), 3))), 256))
308
+ o("h3", Le, w(r.current.profile.name ? r.current.profile.name : "Not specified"), 1),
309
+ o("p", Ne, " @" + w(r.current.username ? r.current.username : "Not specified"), 1),
310
+ o("p", Ie, w(r.current.profile.description ? r.current.profile.description : "Not specified"), 1),
311
+ o("div", ze, [
312
+ (d(!0), p(A, null, T(r.current.roles, (u, _) => (d(), p("div", {
313
+ class: D(["pd-thin radius-small t-semi bg-white", { "mn-r-thin": _ !== r.current.roles.length - 1 }])
314
+ }, w(u.icon) + " " + w(u.name), 3))), 256))
310
315
  ]),
311
- i("p", Ne, " 👨‍👨‍👧‍👧 " + $(n.current.numberOfMemberships) + " followers ", 1),
312
- p.user._id && c(e).params._id && c(e).params._id !== p.user._id ? (u(), w(q, {
316
+ o("p", Oe, " 👨‍👨‍👧‍👧 " + w(r.current.numberOfMemberships) + " followers ", 1),
317
+ f.user._id && m(e).params._id && m(e).params._id !== f.user._id ? (d(), y(q, {
313
318
  key: 3,
314
319
  type: "user",
315
- isMember: n.current.isMember,
316
- targetId: n.current._id,
317
- userId: p.user._id,
318
- class: "w-min mn-auto",
319
- onUpdateMembership: h
320
- }, null, 8, ["isMember", "targetId", "userId"])) : y("", !0),
321
- Object.values(n.current.socials).some((l) => l) ? (u(), _("h4", ze, " Find Me in Socials ")) : y("", !0),
322
- d(K, {
323
- telegram: n.current.socials.telegram,
324
- facebook: n.current.socials.facebook,
325
- instagram: n.current.socials.instagram,
326
- twitter: n.current.socials.twitter,
320
+ isMember: r.current.isMember,
321
+ targetId: r.current._id,
322
+ userId: f.user._id,
323
+ class: "w-min mn-medium mn-r-auto mn-l-auto",
324
+ onUpdateMembership: C
325
+ }, null, 8, ["isMember", "targetId", "userId"])) : $("", !0),
326
+ Object.values(r.current.socials).some((u) => u) ? (d(), p("h4", Be, " Find Me in Socials ")) : $("", !0),
327
+ a(K, {
328
+ telegram: r.current.socials.telegram,
329
+ facebook: r.current.socials.facebook,
330
+ instagram: r.current.socials.instagram,
331
+ twitter: r.current.socials.twitter,
327
332
  class: "mn-r-auto mn-l-auto"
328
333
  }, null, 8, ["telegram", "facebook", "instagram", "twitter"])
329
334
  ]),
330
- d(Z, null, {
331
- default: v(() => [
332
- d(P, {
333
- onClick: o[1] || (o[1] = (l) => c(m).push({ name: "User Events", params: { _id: c(e).params._id } })),
335
+ a(E, null, {
336
+ default: g(() => [
337
+ a(k, {
338
+ onClick: l[1] || (l[1] = (u) => m(c).push({ name: "User Events", params: { _id: m(e).params._id } })),
334
339
  class: "cursor-pointer"
335
340
  }, {
336
- default: v(() => [
337
- d(pe, {
341
+ default: g(() => [
342
+ a(pe, {
338
343
  class: "i-semi",
339
344
  icon: !0
340
345
  }),
341
- Oe
346
+ Re
342
347
  ]),
343
348
  _: 1
344
349
  }),
345
- d(P, {
346
- onClick: o[2] || (o[2] = (l) => c(m).push({ name: "User Organizations", params: { _id: c(e).params._id } })),
350
+ a(k, {
351
+ onClick: l[2] || (l[2] = (u) => m(c).push({ name: "User Organizations", params: { _id: m(e).params._id } })),
347
352
  class: "cursor-pointer"
348
353
  }, {
349
- default: v(() => [
350
- d(ve, {
354
+ default: g(() => [
355
+ a(ve, {
351
356
  class: "i-semi",
352
357
  icon: !0
353
358
  }),
354
- Be
359
+ Fe
355
360
  ]),
356
361
  _: 1
357
362
  }),
358
- d(P, {
359
- onClick: o[3] || (o[3] = (l) => c(m).push({ name: "User Blogposts", params: { _id: c(e).params._id } })),
363
+ a(k, {
364
+ onClick: l[3] || (l[3] = (u) => m(c).push({ name: "User Blogposts", params: { _id: m(e).params._id } })),
360
365
  class: "cursor-pointer"
361
366
  }, {
362
- default: v(() => [
363
- d(Ve, {
367
+ default: g(() => [
368
+ a(Ve, {
364
369
  class: "i-semi",
365
370
  icon: !0
366
371
  }),
367
- Re
372
+ je
368
373
  ]),
369
374
  _: 1
370
375
  })
371
376
  ]),
372
377
  _: 1
373
378
  }),
374
- p.user._id === c(e).params._id ? (u(), w(Z, { key: 1 }, {
375
- default: v(() => [
376
- d(P, {
377
- onClick: o[4] || (o[4] = (l) => c(m).push({
379
+ f.user._id === m(e).params._id ? (d(), y(E, { key: 1 }, {
380
+ default: g(() => [
381
+ a(k, {
382
+ onClick: l[4] || (l[4] = (u) => m(c).push({
378
383
  name: "User Edit Profile",
379
384
  params: {
380
- _id: c(e).params._id
385
+ _id: m(e).params._id
381
386
  }
382
387
  })),
383
388
  class: "cursor-pointer"
384
389
  }, {
385
- default: v(() => [
386
- Fe
390
+ default: g(() => [
391
+ Ae
387
392
  ]),
388
393
  _: 1
389
394
  }),
390
- d(P, {
395
+ a(k, {
391
396
  class: "cursor-pointer",
392
- onClick: o[5] || (o[5] = (l) => s())
397
+ onClick: l[5] || (l[5] = (u) => t())
393
398
  }, {
394
- default: v(() => [
395
- je
399
+ default: g(() => [
400
+ Te
396
401
  ]),
397
402
  _: 1
398
403
  })
399
404
  ]),
400
405
  _: 1
401
- })) : y("", !0)
402
- ])
406
+ })) : $("", !0)
407
+ ]))
403
408
  ]));
404
409
  }
405
- }, Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
410
+ }, Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
406
411
  __proto__: null,
407
- default: Te
412
+ default: De
408
413
  }, Symbol.toStringTag, { value: "Module" }));
409
- const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Username", -1), Ye = /* @__PURE__ */ i("p", { class: "mn-semi" }, "Your username will be used for URL of profile like thecommunephuket/users/username", -1), qe = /* @__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" }, Ke = /* @__PURE__ */ i("h4", null, "Upload userpic", -1), Qe = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Socials", -1), We = /* @__PURE__ */ i("p", { class: "mn-thin" }, "Please provide only the username for social media profiles, without full links.", -1), Xe = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Account", -1), et = /* @__PURE__ */ i("p", { class: "mn-thin" }, "If you want to change your account details please contact the administratior: admin@thecommunephuket.com", -1), tt = {
414
+ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ o("h3", { class: "mn-small" }, "Username", -1), Je = /* @__PURE__ */ o("p", { class: "mn-semi" }, "Your username will be used for URL of profile like thecommunephuket/users/username", -1), Ke = /* @__PURE__ */ o("h3", { class: "mn-small" }, "Profile", -1), Qe = { class: "mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, We = /* @__PURE__ */ o("h4", null, "Upload userpic", -1), Xe = /* @__PURE__ */ o("h3", { class: "mn-small" }, "Socials", -1), et = /* @__PURE__ */ o("p", { class: "mn-thin" }, "Please provide only the username for social media profiles, without full links.", -1), tt = /* @__PURE__ */ o("h3", { class: "mn-small" }, "Account", -1), st = {
410
415
  __name: "ProfileEdit",
411
- async setup(t) {
412
- let e, m;
413
- V(null);
414
- const f = L(), h = S();
415
- [e, m] = A(() => U.read({ _id: p.user._id })), await e, m();
416
- const s = V(n.current);
417
- async function C() {
418
- await U.update(n.current);
416
+ async setup(s) {
417
+ let e, c;
418
+ U(null);
419
+ const h = N(), C = I();
420
+ [e, c] = G(() => M.read({ _id: f.user._id })), await e, c();
421
+ const t = U(r.current);
422
+ async function v() {
423
+ await M.update(r.current);
424
+ }
425
+ async function l() {
426
+ window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.") && (r.current.status = "removed", await M.update(r.current), L.logout());
419
427
  }
420
- function o() {
421
- h.replace({ name: "User Profile", params: { _id: n.current._id } });
428
+ function u() {
429
+ C.replace({ name: "User Profile", params: { _id: r.current._id } });
422
430
  }
423
- return (l, a) => (u(), _("div", Ge, [
424
- c(f).params._id === p.user._id ? (u(), w(I, {
431
+ return (_, i) => (d(), p("div", Ye, [
432
+ m(h).params._id === f.user._id ? (d(), y(z, {
425
433
  key: 0,
426
- user: p.user._id,
427
- target: s.value,
434
+ user: f.user._id,
435
+ target: t.value,
428
436
  cta: !1
429
- }, null, 8, ["user", "target"])) : y("", !0),
430
- De,
431
- d(g, {
432
- field: s.value.username,
433
- "onUpdate:field": a[0] || (a[0] = (r) => s.value.username = r),
434
- label: "Username",
437
+ }, null, 8, ["user", "target"])) : $("", !0),
438
+ qe,
439
+ a(b, {
440
+ field: t.value.username,
441
+ "onUpdate:field": i[0] || (i[0] = (n) => t.value.username = n),
442
+ label: "@",
435
443
  placeholder: "Not specified",
436
444
  class: "mn-thin w-100 bg-grey pd-medium radius-small",
437
445
  disabled: "true",
438
- validation: l.organizationName
446
+ validation: _.organizationName
439
447
  }, null, 8, ["field", "validation"]),
440
- Ye,
441
- qe,
442
- i("div", Je, [
443
- d(X, {
444
- photo: s.value.profile.photo,
445
- "onUpdate:photo": a[1] || (a[1] = (r) => s.value.profile.photo = r),
446
- uploadPath: "users/" + s.value._id + "/avatars",
448
+ Je,
449
+ Ke,
450
+ o("div", Qe, [
451
+ a(X, {
452
+ photo: t.value.profile.photo,
453
+ "onUpdate:photo": i[1] || (i[1] = (n) => t.value.profile.photo = n),
454
+ uploadPath: "users/" + t.value._id + "/avatars",
447
455
  class: "h-4r w-4r aspect-1x1 o-hidden bg-white mn-thin radius-extra"
448
456
  }, null, 8, ["photo", "uploadPath"]),
449
- Ke
457
+ We
450
458
  ]),
451
- d(g, {
452
- field: s.value.profile.name,
453
- "onUpdate:field": a[2] || (a[2] = (r) => s.value.profile.name = r),
459
+ a(b, {
460
+ field: t.value.profile.name,
461
+ "onUpdate:field": i[2] || (i[2] = (n) => t.value.profile.name = n),
454
462
  label: "Name",
455
463
  placeholder: "Not specified",
456
464
  class: "mn-thin bg-grey pd-medium radius-small",
457
- validation: l.organizationName
465
+ validation: _.organizationName
458
466
  }, null, 8, ["field", "validation"]),
459
- d(g, {
460
- field: s.value.profile.description,
461
- "onUpdate:field": a[3] || (a[3] = (r) => s.value.profile.description = r),
467
+ a(b, {
468
+ field: t.value.profile.description,
469
+ "onUpdate:field": i[3] || (i[3] = (n) => t.value.profile.description = n),
462
470
  label: "Description",
463
471
  placeholder: "Not specified",
464
472
  class: "mn-semi bg-grey pd-medium radius-small",
465
473
  disabled: "true",
466
- validation: l.organizationName
474
+ validation: _.organizationName
467
475
  }, null, 8, ["field", "validation"]),
468
- Qe,
469
- We,
470
- d(g, {
471
- field: s.value.socials.instagram,
472
- "onUpdate:field": a[4] || (a[4] = (r) => s.value.socials.instagram = r),
476
+ Xe,
477
+ et,
478
+ a(b, {
479
+ field: t.value.socials.instagram,
480
+ "onUpdate:field": i[4] || (i[4] = (n) => t.value.socials.instagram = n),
473
481
  label: "Instagram",
474
482
  placeholder: "",
475
483
  class: "mn-thin bg-grey pd-medium radius-small"
476
484
  }, null, 8, ["field"]),
477
- d(g, {
478
- field: s.value.socials.twitter,
479
- "onUpdate:field": a[5] || (a[5] = (r) => s.value.socials.twitter = r),
485
+ a(b, {
486
+ field: t.value.socials.twitter,
487
+ "onUpdate:field": i[5] || (i[5] = (n) => t.value.socials.twitter = n),
480
488
  label: "Twitter",
481
489
  placeholder: "",
482
490
  class: "mn-thin bg-grey pd-medium radius-small"
483
491
  }, null, 8, ["field"]),
484
- d(g, {
485
- field: s.value.socials.facebook,
486
- "onUpdate:field": a[6] || (a[6] = (r) => s.value.socials.facebook = r),
492
+ a(b, {
493
+ field: t.value.socials.facebook,
494
+ "onUpdate:field": i[6] || (i[6] = (n) => t.value.socials.facebook = n),
487
495
  label: "Facebook",
488
496
  placeholder: "",
489
497
  class: "mn-thin bg-grey pd-medium radius-small"
490
498
  }, null, 8, ["field"]),
491
- d(g, {
492
- field: s.value.socials.telegram,
493
- "onUpdate:field": a[7] || (a[7] = (r) => s.value.socials.telegram = r),
499
+ a(b, {
500
+ field: t.value.socials.telegram,
501
+ "onUpdate:field": i[7] || (i[7] = (n) => t.value.socials.telegram = n),
494
502
  label: "Telegram",
495
503
  placeholder: "",
496
504
  class: "mn-semi bg-grey pd-medium radius-small"
497
505
  }, null, 8, ["field"]),
498
- Xe,
499
- et,
500
- d(g, {
501
- field: s.value.phone,
502
- "onUpdate:field": a[8] || (a[8] = (r) => s.value.phone = r),
506
+ tt,
507
+ a(b, {
508
+ field: t.value.phone,
509
+ "onUpdate:field": i[8] || (i[8] = (n) => t.value.phone = n),
503
510
  label: "Phone",
504
511
  placeholder: "Not specified",
505
512
  class: "mn-thin bg-grey pd-medium mn-thin radius-small",
506
513
  disabled: "true",
507
- validation: l.organizationName
514
+ validation: _.organizationName
508
515
  }, null, 8, ["field", "validation"]),
509
- d(g, {
510
- field: s.value.email,
511
- "onUpdate:field": a[9] || (a[9] = (r) => s.value.email = r),
516
+ a(b, {
517
+ field: t.value.email,
518
+ "onUpdate:field": i[9] || (i[9] = (n) => t.value.email = n),
512
519
  label: "Email",
513
520
  placeholder: "Not specified",
514
- class: "mn-thin bg-grey pd-medium radius-small",
521
+ class: "mn-semi bg-grey pd-medium radius-small",
515
522
  disabled: !0,
516
- validation: l.organizationName
523
+ validation: _.organizationName
517
524
  }, null, 8, ["field", "validation"]),
518
- d(Y, {
519
- submit: C,
520
- callback: o,
525
+ a(S, {
526
+ submit: v,
527
+ callback: u,
521
528
  class: "mn-thin"
522
529
  }, {
523
- default: v(() => [
524
- E("Сохранить")
530
+ default: g(() => [
531
+ Z("Save")
532
+ ]),
533
+ _: 1
534
+ }),
535
+ a(S, {
536
+ submit: l,
537
+ callback: _.a = () => {
538
+ m(C).push({ name: "Sign In" });
539
+ },
540
+ class: "mn-thin bg-red t-white"
541
+ }, {
542
+ default: g(() => [
543
+ Z("Delete Account")
525
544
  ]),
526
545
  _: 1
527
- })
546
+ }, 8, ["callback"])
528
547
  ]));
529
548
  }
530
- }, st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
549
+ }, rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
531
550
  __proto__: null,
532
- default: tt
533
- }, Symbol.toStringTag, { value: "Module" })), ht = [{
551
+ default: st
552
+ }, Symbol.toStringTag, { value: "Module" })), Ct = [{
534
553
  path: "profile/:_id",
535
554
  name: "User Profile",
536
555
  meta: {
@@ -539,7 +558,7 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ i("
539
558
  ru: "Профиль"
540
559
  }
541
560
  },
542
- component: () => Promise.resolve().then(() => Ae)
561
+ component: () => Promise.resolve().then(() => Ge)
543
562
  }, {
544
563
  path: "profile/:_id/blogposts",
545
564
  name: "User Blogposts",
@@ -551,7 +570,7 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ i("
551
570
  },
552
571
  component: () => import(
553
572
  /* webpackChunkName: "profile" */
554
- "./ProfileBlogposts-5c6ab74a.mjs"
573
+ "./ProfileBlogposts-08f784c3.mjs"
555
574
  )
556
575
  }, {
557
576
  path: "profile/:_id/comments",
@@ -564,7 +583,7 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ i("
564
583
  },
565
584
  component: () => import(
566
585
  /* webpackChunkName: "profile" */
567
- "./ProfileComments-d6779ee2.mjs"
586
+ "./ProfileComments-96f6cde8.mjs"
568
587
  )
569
588
  }, {
570
589
  path: "profile/:_id/edit",
@@ -575,7 +594,7 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ i("
575
594
  ru: "Редактировать Профиль"
576
595
  }
577
596
  },
578
- component: () => Promise.resolve().then(() => st)
597
+ component: () => Promise.resolve().then(() => rt)
579
598
  }, {
580
599
  path: "profile/:_id/events",
581
600
  name: "User Events",
@@ -587,7 +606,7 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ i("
587
606
  },
588
607
  component: () => import(
589
608
  /* webpackChunkName: "profile" */
590
- "./ProfileEvents-1ca72873.mjs"
609
+ "./ProfileEvents-26a72fe2.mjs"
591
610
  )
592
611
  }, {
593
612
  path: "profile/:_id/likes",
@@ -600,7 +619,7 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ i("
600
619
  },
601
620
  component: () => import(
602
621
  /* webpackChunkName: "profile" */
603
- "./ProfileLikes-05911934.mjs"
622
+ "./ProfileLikes-c8dab14d.mjs"
604
623
  )
605
624
  }, {
606
625
  path: "profile/:_id/organizations",
@@ -613,12 +632,12 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ i("
613
632
  },
614
633
  component: () => import(
615
634
  /* webpackChunkName: "profile" */
616
- "./ProfileOrganizations-cef668b5.mjs"
635
+ "./ProfileOrganizations-3a879480.mjs"
617
636
  )
618
637
  }];
619
638
  export {
620
- Te as Profile,
621
- tt as ProfileEdit,
622
- ht as usersRoutes,
623
- ft as usersStore
639
+ De as Profile,
640
+ st as ProfileEdit,
641
+ Ct as usersRoutes,
642
+ ht as usersStore
624
643
  };