@ozdao/prometheus-framework 0.0.87 → 0.0.89

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-300fcb55.js +1 -0
  2. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-afba007a.mjs +1944 -0
  3. package/dist/ButtonFollow-001c4a65.mjs +130 -0
  4. package/dist/ButtonFollow-48043cc7.js +1 -0
  5. package/dist/CardHeader-0677d446.js +1 -0
  6. package/dist/CardHeader-e361dada.mjs +96 -0
  7. package/dist/CardOrganization-51309400.js +1 -0
  8. package/dist/CardOrganization-bacc2ef6.mjs +202 -0
  9. package/dist/Feed-4b28adc5.mjs +423 -0
  10. package/dist/Feed-51e4e232.js +1 -0
  11. package/dist/Feed-5d8d5c21.js +1 -0
  12. package/dist/Feed-76b2997e.mjs +367 -0
  13. package/dist/Feed-dc8b66bf.mjs +367 -0
  14. package/dist/Feed-eeb63363.js +1 -0
  15. package/dist/IconEdit-3028a3b7.js +1 -0
  16. package/dist/IconEdit-8df23653.mjs +205 -0
  17. package/dist/Image-30f04604.js +9 -0
  18. package/dist/Image-6c7584f5.mjs +477 -0
  19. package/dist/Image-6ec294f3.mjs +477 -0
  20. package/dist/Image-9a870c88.js +9 -0
  21. package/dist/PlaceholderUserpic-10fd9026.js +1 -0
  22. package/dist/PlaceholderUserpic-eb9820ce.mjs +28 -0
  23. package/dist/Popup-7c331e1c.js +1 -0
  24. package/dist/Popup-bdf043ba.mjs +76 -0
  25. package/dist/Product-1724d88d.mjs +837 -0
  26. package/dist/Product-a94d8b65.js +7 -0
  27. package/dist/Product-b233e2a3.js +7 -0
  28. package/dist/Product-eb00f35e.mjs +837 -0
  29. package/dist/ProductEdit-57484f1e.mjs +349 -0
  30. package/dist/ProductEdit-61413d02.mjs +349 -0
  31. package/dist/ProductEdit-ef301baa.js +1 -0
  32. package/dist/ProductEdit-fca68ff9.js +1 -0
  33. package/dist/ProfileBlogposts-6704a38c.js +1 -0
  34. package/dist/ProfileBlogposts-775b1cfa.mjs +63 -0
  35. package/dist/ProfileComments-175e42da.js +1 -0
  36. package/dist/ProfileComments-fd7d66bf.mjs +43 -0
  37. package/dist/ProfileEvents-1cfe6858.mjs +55 -0
  38. package/dist/ProfileEvents-4f2a5f00.js +1 -0
  39. package/dist/ProfileEvents-7a51a9e6.mjs +55 -0
  40. package/dist/ProfileEvents-d8e16509.js +1 -0
  41. package/dist/ProfileLikes-20a8a3c9.mjs +43 -0
  42. package/dist/ProfileLikes-b3b1350a.js +1 -0
  43. package/dist/ProfileOrganizations-4b866823.mjs +211 -0
  44. package/dist/ProfileOrganizations-6d3a43e4.js +1 -0
  45. package/dist/Publics-0e44c61e.mjs +122 -0
  46. package/dist/Publics-4e1c14fc.js +1 -0
  47. package/dist/Tab-a243605d.mjs +46 -0
  48. package/dist/UploadImage-6e312c46.mjs +83 -0
  49. package/dist/UploadImage-9e7e7468.js +1 -0
  50. package/dist/auth-2bc18d1e.js +8 -0
  51. package/dist/auth-fefd15a3.mjs +1503 -0
  52. package/dist/auth.client.cjs +1 -1
  53. package/dist/auth.client.js +5 -5
  54. package/dist/auth.validation-4a617c0b.mjs +20 -0
  55. package/dist/auth.validation-78a90fed.js +1 -0
  56. package/dist/community.client.cjs +1 -1
  57. package/dist/community.client.js +206 -222
  58. package/dist/components/Field/Field.vue.d.ts.map +1 -1
  59. package/dist/components/FieldPhone/FieldPhone(script-setup).vue.d.ts +3 -3
  60. package/dist/components/FieldPhone/FieldPhone.vue.d.ts +1 -1
  61. package/dist/events.client.cjs +1 -1
  62. package/dist/events.client.js +332 -312
  63. package/dist/events.server.js +77 -0
  64. package/dist/events.server.mjs +77 -0
  65. package/dist/inputs.validation-14e8e01f.mjs +93 -0
  66. package/dist/main.css +1 -1
  67. package/dist/organizations-1581c013.mjs +121 -0
  68. package/dist/organizations-c455dad7.js +1 -0
  69. package/dist/organizations.client-040ec107.js +3 -0
  70. package/dist/organizations.client-686845be.mjs +3179 -0
  71. package/dist/organizations.client-7937e180.mjs +3037 -0
  72. package/dist/organizations.client-99bfc474.js +3 -0
  73. package/dist/organizations.client.cjs +1 -1
  74. package/dist/organizations.client.js +39 -39
  75. package/dist/organizations.server.js +7 -3
  76. package/dist/organizations.server.mjs +7 -3
  77. package/dist/prometheus-framework.cjs.js +1 -1
  78. package/dist/prometheus-framework.es.js +3 -2
  79. package/dist/style.css +1 -1
  80. package/dist/users.client.cjs +1 -1
  81. package/dist/users.client.js +265 -256
  82. package/dist/users.server.js +2 -2
  83. package/dist/users.server.mjs +2 -2
  84. package/package.json +1 -1
  85. package/src/components/Field/Field.vue +2 -1
  86. package/src/modules/community/components/pages/CreateBlogPost.vue +2 -1
  87. package/src/modules/events/components/blocks/CardEvent.vue +1 -1
  88. package/src/modules/events/components/pages/EditEvent.vue +9 -3
  89. package/src/modules/events/components/pages/Event.vue +43 -4
  90. package/src/modules/events/middlewares/server/index.js +10 -0
  91. package/src/modules/events/middlewares/server/verifyEvent.js +60 -0
  92. package/src/modules/events/routes/events.routes.js +14 -1
  93. package/src/modules/organizations/components/blocks/Socials.vue +16 -3
  94. package/src/modules/organizations/components/pages/OrganizationEdit.vue +39 -15
  95. package/src/modules/organizations/components/sections/DetailsTab.vue +13 -9
  96. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  97. package/src/modules/organizations/models/organization.model.js +6 -2
  98. package/src/modules/organizations/store/organizations.js +2 -2
  99. package/src/modules/users/components/pages/Profile.vue +26 -11
  100. package/src/modules/users/components/pages/ProfileEdit.vue +28 -10
  101. package/src/modules/users/models/user.model.js +2 -2
  102. package/src/modules/users/store/users.js +1 -2
@@ -1,43 +1,43 @@
1
- import { openBlock as m, createElementBlock as C, renderSlot as z, createElementVNode as s, defineComponent as I, h as x, ref as V, resolveComponent as B, toDisplayString as $, createBlock as y, withCtx as p, createTextVNode as L, createCommentVNode as P, reactive as O, onMounted as R, unref as u, Fragment as j, renderList as A, normalizeClass as F, createVNode as d, withAsyncContext as T } from "vue";
2
- import { _ as H, a as G, s as _, c as D, F as b, b as Y } from "./auth-35ef1791.mjs";
3
- import { B as q, m as J } from "./ButtonFollow-728aab73.mjs";
4
- import { I as K } from "./IconEdit-e9fd4c6c.mjs";
5
- import { P as Q } from "./PlaceholderUserpic-995da0fc.mjs";
6
- import { useRoute as N, useRouter as E } from "vue-router";
7
- import "./inputs.validation-6960f71b.mjs";
8
- import { _ as W } from "./UploadImage-ff8f9a0c.mjs";
9
- import "./auth.validation-29113f37.mjs";
1
+ import { openBlock as u, createElementBlock as _, renderSlot as I, createElementVNode as i, defineComponent as z, h as P, ref as V, resolveComponent as B, toDisplayString as $, createBlock as w, withCtx as g, createTextVNode as S, createCommentVNode as y, reactive as O, onMounted as F, unref as c, Fragment as R, renderList as T, normalizeClass as j, createVNode as o, withAsyncContext as A } from "vue";
2
+ import { _ as H, a as G, s as p, c as D, F as h, b as Y } from "./auth-fefd15a3.mjs";
3
+ import { B as q, m as J } from "./ButtonFollow-001c4a65.mjs";
4
+ import { I as K, _ as Q } from "./IconEdit-8df23653.mjs";
5
+ import { P as W } from "./PlaceholderUserpic-eb9820ce.mjs";
6
+ import { useRoute as E, useRouter as L } from "vue-router";
7
+ import "./inputs.validation-14e8e01f.mjs";
8
+ import { _ as X } from "./UploadImage-6e312c46.mjs";
9
+ import "./auth.validation-4a617c0b.mjs";
10
10
  import "./globals-96ba60e4.mjs";
11
11
  import "vue-i18n";
12
- const X = { class: "mobile-menu-section mn-semi pd-r-zero pd-t-thin pd-b-thin pd-medium bg-grey radius-medium" }, Z = {
12
+ 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
13
  __name: "Menu",
14
- setup(t) {
15
- return (e, c) => (m(), C("section", X, [
16
- z(e.$slots, "default")
14
+ setup(s) {
15
+ return (e, m) => (u(), _("section", ee, [
16
+ I(e.$slots, "default")
17
17
  ]));
18
18
  }
19
- }, ee = {}, te = {
19
+ }, te = {}, se = {
20
20
  width: "80",
21
21
  height: "80",
22
22
  viewBox: "0 0 80 80",
23
23
  fill: "none",
24
24
  xmlns: "http://www.w3.org/2000/svg"
25
- }, se = /* @__PURE__ */ s("path", {
25
+ }, re = /* @__PURE__ */ i("path", {
26
26
  fill: "black",
27
27
  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"
28
- }, null, -1), re = [
29
- se
28
+ }, null, -1), ie = [
29
+ re
30
30
  ];
31
- function ie(t, e) {
32
- return m(), C("svg", te, re);
31
+ function ne(s, e) {
32
+ return u(), _("svg", se, ie);
33
33
  }
34
- const ne = /* @__PURE__ */ H(ee, [["render", ie]]), w = I({
35
- setup(t, { slots: e }) {
34
+ const ae = /* @__PURE__ */ H(te, [["render", ne]]), x = z({
35
+ setup(s, { slots: e }) {
36
36
  return () => {
37
- const c = e.default ? e.default() : [], f = [], h = [];
38
- return c.forEach((r) => {
39
- r.toString(), r.props && r.props.icon ? f.push(r) : h.push(r);
40
- }), x(
37
+ const m = e.default ? e.default() : [], f = [], C = [];
38
+ return m.forEach((t) => {
39
+ t.toString(), t.props && t.props.icon ? f.push(t) : C.push(t);
40
+ }), P(
41
41
  "div",
42
42
  {
43
43
  class: [
@@ -53,7 +53,7 @@ const ne = /* @__PURE__ */ H(ee, [["render", ie]]), w = I({
53
53
  [
54
54
  // Conditionally include the div for iconSlot
55
55
  ...f.length ? [
56
- x(
56
+ P(
57
57
  "div",
58
58
  {
59
59
  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,121 +61,121 @@ const ne = /* @__PURE__ */ H(ee, [["render", ie]]), w = I({
61
61
  f
62
62
  )
63
63
  ] : [],
64
- x(
64
+ P(
65
65
  "div",
66
66
  {
67
67
  class: ["w-100", "mn-thin", "mn-t-thin", "mn-r-small", "i-big", "flex-v-center", "flex"]
68
68
  },
69
69
  [
70
- x(
70
+ P(
71
71
  "span",
72
72
  {
73
73
  class: ["p-big", "t-medium", "mn-r-auto"]
74
74
  },
75
- h
75
+ C
76
76
  )
77
77
  ]
78
78
  ),
79
- x(ne, { class: "i-medium mn-r-medium", type: "chevron" })
79
+ P(ae, { class: "i-medium mn-r-medium", type: "chevron" })
80
80
  // Inserting IconChevronRight directly
81
81
  ]
82
82
  );
83
83
  };
84
84
  }
85
- }), oe = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, S = {
85
+ }), le = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, N = {
86
86
  __name: "ProfileCompletion",
87
87
  props: {
88
88
  user: Object,
89
89
  target: Object,
90
90
  cta: Boolean
91
91
  },
92
- setup(t) {
93
- const { user: e, cta: c, target: f } = t, h = V(0), r = (g) => {
94
- let i = 0, n = 0;
95
- function a(o) {
96
- for (let v in o)
97
- o.hasOwnProperty(v) && (o[v] && typeof o[v] == "object" && !Array.isArray(o[v]) ? a(o[v]) : (i++, o[v] != null && o[v] !== "" && n++));
92
+ setup(s) {
93
+ const { user: e, cta: m, target: f } = s, C = V(0), t = (v) => {
94
+ let d = 0, l = 0;
95
+ function n(r) {
96
+ for (let b in r)
97
+ r.hasOwnProperty(b) && (r[b] && typeof r[b] == "object" && !Array.isArray(r[b]) ? n(r[b]) : (d++, r[b] != null && r[b] !== "" && l++));
98
98
  }
99
- return a(g), i === 0 ? 0 : Math.round(n / i * 100);
99
+ return n(v), d === 0 ? 0 : Math.round(l / d * 100);
100
100
  };
101
- return f && (h.value = r(f)), (g, i) => {
102
- const n = B("router-link");
103
- return m(), C("section", oe, [
104
- s("h3", null, " Profile completed at " + $(h.value) + "% ", 1),
105
- t.cta ? (m(), y(n, {
101
+ return f && (C.value = t(f)), (v, d) => {
102
+ const l = B("router-link");
103
+ return u(), _("section", le, [
104
+ i("h3", null, " Profile completed at " + $(C.value) + "% ", 1),
105
+ s.cta ? (u(), w(l, {
106
106
  key: 0,
107
107
  to: {
108
108
  name: "User Edit Profile",
109
- params: { _id: t.user }
109
+ params: { _id: s.user }
110
110
  },
111
111
  class: "mn-t-regular t-black bg-white w-100 button"
112
112
  }, {
113
- default: p(() => [
114
- L(" Fill Profile ")
113
+ default: g(() => [
114
+ S(" Fill Profile ")
115
115
  ]),
116
116
  _: 1
117
- }, 8, ["to"])) : P("", !0)
117
+ }, 8, ["to"])) : y("", !0)
118
118
  ]);
119
119
  };
120
120
  }
121
- }, ae = {}, le = {
121
+ }, oe = {}, de = {
122
122
  width: "80",
123
123
  height: "80",
124
124
  viewBox: "0 0 80 80",
125
125
  fill: "none",
126
126
  xmlns: "http://www.w3.org/2000/svg"
127
- }, de = /* @__PURE__ */ s("path", {
127
+ }, ue = /* @__PURE__ */ i("path", {
128
128
  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",
129
129
  fill: "white"
130
- }, null, -1), ue = [
131
- de
130
+ }, null, -1), me = [
131
+ ue
132
132
  ];
133
- function me(t, e) {
134
- return m(), C("svg", le, ue);
133
+ function ce(s, e) {
134
+ return u(), _("svg", de, me);
135
135
  }
136
- const ce = /* @__PURE__ */ H(ae, [["render", me]]), pe = {}, _e = {
136
+ const pe = /* @__PURE__ */ H(oe, [["render", ce]]), _e = {}, fe = {
137
137
  width: "80",
138
138
  height: "80",
139
139
  viewBox: "0 0 80 80",
140
140
  fill: "none",
141
141
  xmlns: "http://www.w3.org/2000/svg"
142
- }, fe = /* @__PURE__ */ s("path", {
142
+ }, he = /* @__PURE__ */ i("path", {
143
143
  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",
144
144
  fill: "white"
145
145
  }, null, -1), Ce = [
146
- fe
146
+ he
147
147
  ];
148
- function he(t, e) {
149
- return m(), C("svg", _e, Ce);
148
+ function ge(s, e) {
149
+ return u(), _("svg", fe, Ce);
150
150
  }
151
- const ge = /* @__PURE__ */ H(pe, [["render", he]]), ve = {}, be = {
151
+ const ve = /* @__PURE__ */ H(_e, [["render", ge]]), be = {}, we = {
152
152
  width: "56",
153
153
  height: "56",
154
154
  viewBox: "0 0 56 56",
155
155
  fill: "none",
156
156
  xmlns: "http://www.w3.org/2000/svg"
157
- }, we = /* @__PURE__ */ s("path", {
157
+ }, ye = /* @__PURE__ */ i("path", {
158
158
  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",
159
159
  fill: "white"
160
- }, null, -1), ye = /* @__PURE__ */ s("path", {
160
+ }, null, -1), $e = /* @__PURE__ */ i("path", {
161
161
  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",
162
162
  fill: "white"
163
- }, null, -1), $e = /* @__PURE__ */ s("path", {
163
+ }, null, -1), Pe = /* @__PURE__ */ i("path", {
164
164
  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",
165
165
  fill: "white"
166
- }, null, -1), Pe = /* @__PURE__ */ s("path", {
166
+ }, null, -1), xe = /* @__PURE__ */ i("path", {
167
167
  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",
168
168
  fill: "white"
169
- }, null, -1), xe = [
170
- we,
169
+ }, null, -1), ke = [
171
170
  ye,
172
171
  $e,
173
- Pe
172
+ Pe,
173
+ xe
174
174
  ];
175
- function Me(t, e) {
176
- return m(), C("svg", be, xe);
175
+ function Me(s, e) {
176
+ return u(), _("svg", we, ke);
177
177
  }
178
- const ke = /* @__PURE__ */ H(ve, [["render", Me]]), k = G.create({ baseURL: process.env.API_URL, withCredentials: !0 }), l = O({
178
+ const Ve = /* @__PURE__ */ H(be, [["render", Me]]), M = G.create({ baseURL: process.env.API_URL, withCredentials: !0 }), a = O({
179
179
  all: [],
180
180
  current: {
181
181
  _id: "",
@@ -190,54 +190,54 @@ const ke = /* @__PURE__ */ H(ve, [["render", Me]]), k = G.create({ baseURL: proc
190
190
  },
191
191
  socials: {
192
192
  facebook: "",
193
- line: "",
193
+ twitter: "",
194
194
  instagram: "",
195
195
  telegram: ""
196
196
  },
197
197
  roles: []
198
198
  }
199
199
  }), U = {
200
- async create(t) {
200
+ async create(s) {
201
201
  try {
202
- const e = await k.post("/api/users", t);
203
- return M.set(e.data, "current"), Promise.resolve(e.data);
202
+ const e = await M.post("/api/users", s);
203
+ return k.set(e.data, "current"), Promise.resolve(e.data);
204
204
  } catch (e) {
205
205
  return console.error(e), Promise.reject(e);
206
206
  }
207
207
  },
208
- async read(t = {}) {
209
- t.params = {}, t._id && (t.params._id = t._id), t.user && (t.params.user = t.user);
208
+ async read(s = {}) {
209
+ s.params = {}, s._id && (s.params._id = s._id), s.user && (s.params.user = s.user);
210
210
  try {
211
- const e = await k.get("/api/users", { params: t.params });
212
- return t._id ? M.set(e.data[0], "current") : M.set(e.data, "all"), Promise.resolve(e.data);
211
+ const e = await M.get("/api/users", { params: s.params });
212
+ return s._id ? k.set(e.data[0], "current") : k.set(e.data, "all"), Promise.resolve(e.data);
213
213
  } catch (e) {
214
214
  return console.error(e), Promise.reject(e);
215
215
  }
216
216
  },
217
- async update(t) {
218
- console.log(t);
217
+ async update(s) {
218
+ console.log(s);
219
219
  try {
220
- const e = await k.put(`/api/users/${t._id}`, t);
221
- return M.set(e.data, "current"), Promise.resolve(e.data);
220
+ const e = await M.put(`/api/users/${s._id}`, s);
221
+ return k.set(e.data, "current"), Promise.resolve(e.data);
222
222
  } catch (e) {
223
223
  return console.error(e), Promise.reject(e);
224
224
  }
225
225
  },
226
- async delete(t) {
226
+ async delete(s) {
227
227
  try {
228
- await k.delete(`/api/users/${t._id}`);
229
- const e = l.all.findIndex((c) => c._id === t._id);
230
- e !== -1 && l.all.splice(e, 1);
228
+ await M.delete(`/api/users/${s._id}`);
229
+ const e = a.all.findIndex((m) => m._id === s._id);
230
+ e !== -1 && a.all.splice(e, 1);
231
231
  } catch (e) {
232
232
  console.error(e);
233
233
  }
234
234
  }
235
- }, M = {
236
- set(t, e) {
237
- l[e] = t;
235
+ }, k = {
236
+ set(s, e) {
237
+ a[e] = s;
238
238
  },
239
239
  clean() {
240
- l.current = {
240
+ a.current = {
241
241
  phone: "",
242
242
  name: "",
243
243
  surname: "",
@@ -248,289 +248,298 @@ const ke = /* @__PURE__ */ H(ve, [["render", Me]]), k = G.create({ baseURL: proc
248
248
  orders: []
249
249
  };
250
250
  }
251
- }, pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
251
+ }, ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
252
252
  __proto__: null,
253
253
  actions: U,
254
- mutations: M,
255
- state: l
254
+ mutations: k,
255
+ state: a
256
256
  }, Symbol.toStringTag, { value: "Module" }));
257
- const Ve = { class: "for-transition w-100" }, Ue = {
257
+ const Ue = { class: "for-transition w-100" }, He = {
258
258
  _id: "dash",
259
259
  class: "pd-thin w-100"
260
- }, He = { class: "t-center w-100 mn-semi radius-medium pd-medium bg-grey" }, Ze = ["src"], Le = { class: "" }, Ne = { class: "mn-small t-main t-semi" }, Ee = { class: "mn-medium flex-center flex-nowrap flex" }, Se = { class: "t-semi mn-small" }, ze = /* @__PURE__ */ s("span", null, "Events", -1), Ie = /* @__PURE__ */ s("span", null, "Groups", -1), Be = /* @__PURE__ */ s("span", null, "Posts", -1), Oe = /* @__PURE__ */ s("span", null, "Comments", -1), Re = /* @__PURE__ */ s("span", null, "Likes", -1), je = /* @__PURE__ */ s("span", null, " Settings ", -1), Ae = /* @__PURE__ */ s("span", { class: "t-red" }, " Logout ", -1), Fe = {
260
+ }, Ze = { class: "flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey" }, Se = ["src"], Ee = { class: "" }, Le = { class: "mn-small t-main t-semi" }, Ne = { class: "mn-medium flex-center flex-nowrap flex" }, Ie = { class: "t-semi mn-small" }, ze = {
261
+ key: 4,
262
+ class: "mn-t-small mn-thin"
263
+ }, Be = /* @__PURE__ */ i("span", null, "Events", -1), Oe = /* @__PURE__ */ i("span", null, "Groups", -1), Fe = /* @__PURE__ */ i("span", null, "Posts", -1), Re = /* @__PURE__ */ i("span", null, " Settings ", -1), Te = /* @__PURE__ */ i("span", { class: "t-red" }, " Logout ", -1), je = {
261
264
  __name: "Profile",
262
- setup(t) {
263
- const e = N(), c = E(), f = V(!1);
264
- R(async () => {
265
- await U.read({ _id: e.params._id, user: _.user._id }), f.value = !0;
265
+ setup(s) {
266
+ const e = E(), m = L(), f = V(!1);
267
+ F(async () => {
268
+ await U.read({ _id: e.params._id, user: p.user._id }), f.value = !0;
266
269
  });
267
- const h = ({ membership: g, isMember: i, targetId: n }) => {
268
- J.handleMembershipUpdate(l.current, g, i, n);
270
+ const C = ({ membership: v, isMember: d, targetId: l }) => {
271
+ J.handleMembershipUpdate(a.current, v, d, l);
269
272
  };
270
- function r() {
271
- D.logout(), c.push({ name: "Sign In" });
273
+ function t() {
274
+ D.logout(), m.push({ name: "Sign In" });
272
275
  }
273
- return (g, i) => (m(), C("div", Ve, [
274
- s("div", Ue, [
275
- u(e).params._id === _.user._id && f.value ? (m(), y(S, {
276
+ return (v, d) => (u(), _("div", Ue, [
277
+ i("div", He, [
278
+ c(e).params._id === p.user._id && f.value ? (u(), w(N, {
276
279
  key: 0,
277
- user: _.user._id,
278
- target: l.current,
280
+ user: p.user._id,
281
+ target: a.current,
279
282
  cta: !0
280
- }, null, 8, ["user", "target"])) : P("", !0),
281
- s("section", He, [
282
- u(e).params._id === _.user._id ? (m(), y(K, {
283
+ }, null, 8, ["user", "target"])) : y("", !0),
284
+ i("section", Ze, [
285
+ c(e).params._id === p.user._id ? (u(), w(K, {
283
286
  key: 0,
284
- onClick: i[0] || (i[0] = (n) => g.$router.push({
287
+ onClick: d[0] || (d[0] = (l) => v.$router.push({
285
288
  name: "User Edit Profile",
286
289
  params: {
287
- _id: _.user._id
290
+ _id: p.user._id
288
291
  }
289
292
  })),
290
293
  class: "pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
291
- })) : P("", !0),
292
- l.current.profile.photo.length > 0 ? (m(), C("img", {
294
+ })) : y("", !0),
295
+ a.current.profile.photo.length > 0 ? (u(), _("img", {
293
296
  key: 1,
294
- src: l.current.profile.photo,
297
+ src: a.current.profile.photo,
295
298
  class: "radius-medium mn-small i-extra"
296
- }, null, 8, Ze)) : (m(), y(Q, {
299
+ }, null, 8, Se)) : (u(), w(W, {
297
300
  key: 2,
298
301
  class: "radius-medium mn-small i-extra"
299
302
  })),
300
- s("h3", Le, $(l.current.profile.name ? l.current.profile.name : "Не указан"), 1),
301
- s("p", Ne, " @" + $(l.current.username ? l.current.username : "Не указан"), 1),
302
- s("div", Ee, [
303
- (m(!0), C(j, null, A(l.current.roles, (n, a) => (m(), C("div", {
304
- class: F(["pd-thin radius-small t-semi bg-white", { "mn-r-thin": a !== l.current.roles.length - 1 }])
305
- }, $(n.icon) + " " + $(n.name), 3))), 256))
303
+ i("h3", Ee, $(a.current.profile.name ? a.current.profile.name : "Не указан"), 1),
304
+ i("p", Le, " @" + $(a.current.username ? a.current.username : "Не указан"), 1),
305
+ i("div", Ne, [
306
+ (u(!0), _(R, null, T(a.current.roles, (l, n) => (u(), _("div", {
307
+ class: j(["pd-thin radius-small t-semi bg-white", { "mn-r-thin": n !== a.current.roles.length - 1 }])
308
+ }, $(l.icon) + " " + $(l.name), 3))), 256))
306
309
  ]),
307
- s("p", Se, " 👨‍👨‍👧‍👧 " + $(l.current.numberOfMemberships) + " followers ", 1),
308
- _.user._id && u(e).params._id && u(e).params._id !== _.user._id ? (m(), y(q, {
310
+ i("p", Ie, " 👨‍👨‍👧‍👧 " + $(a.current.numberOfMemberships) + " followers ", 1),
311
+ p.user._id && c(e).params._id && c(e).params._id !== p.user._id ? (u(), w(q, {
309
312
  key: 3,
310
313
  type: "user",
311
- isMember: l.current.isMember,
312
- targetId: l.current._id,
313
- userId: _.user._id,
314
+ isMember: a.current.isMember,
315
+ targetId: a.current._id,
316
+ userId: p.user._id,
314
317
  class: "w-min mn-auto",
315
- onUpdateMembership: h
316
- }, null, 8, ["isMember", "targetId", "userId"])) : P("", !0)
318
+ onUpdateMembership: C
319
+ }, null, 8, ["isMember", "targetId", "userId"])) : y("", !0),
320
+ Object.values(a.current.socials).some((l) => l) ? (u(), _("h4", ze, " Find Me in Socials ")) : y("", !0),
321
+ o(Q, {
322
+ telegram: a.current.socials.telegram,
323
+ facebook: a.current.socials.facebook,
324
+ instagram: a.current.socials.instagram,
325
+ twitter: a.current.socials.twitter,
326
+ class: "mn-r-auto mn-l-auto"
327
+ }, null, 8, ["telegram", "facebook", "instagram", "twitter"])
317
328
  ]),
318
- d(Z, null, {
319
- default: p(() => [
320
- d(w, {
321
- onClick: i[1] || (i[1] = (n) => u(c).push({ name: "User Events", params: { _id: u(e).params._id } })),
329
+ o(Z, null, {
330
+ default: g(() => [
331
+ o(x, {
332
+ onClick: d[1] || (d[1] = (l) => c(m).push({ name: "User Events", params: { _id: c(e).params._id } })),
322
333
  class: "cursor-pointer"
323
334
  }, {
324
- default: p(() => [
325
- d(ce, {
335
+ default: g(() => [
336
+ o(pe, {
326
337
  class: "i-semi",
327
338
  icon: !0
328
339
  }),
329
- ze
340
+ Be
330
341
  ]),
331
342
  _: 1
332
343
  }),
333
- d(w, {
334
- onClick: i[2] || (i[2] = (n) => u(c).push({ name: "User Organizations", params: { _id: u(e).params._id } })),
344
+ o(x, {
345
+ onClick: d[2] || (d[2] = (l) => c(m).push({ name: "User Organizations", params: { _id: c(e).params._id } })),
335
346
  class: "cursor-pointer"
336
347
  }, {
337
- default: p(() => [
338
- d(ge, {
348
+ default: g(() => [
349
+ o(ve, {
339
350
  class: "i-semi",
340
351
  icon: !0
341
352
  }),
342
- Ie
353
+ Oe
343
354
  ]),
344
355
  _: 1
345
356
  }),
346
- d(w, {
347
- onClick: i[3] || (i[3] = (n) => u(c).push({ name: "User Blogposts", params: { _id: u(e).params._id } })),
357
+ o(x, {
358
+ onClick: d[3] || (d[3] = (l) => c(m).push({ name: "User Blogposts", params: { _id: c(e).params._id } })),
348
359
  class: "cursor-pointer"
349
360
  }, {
350
- default: p(() => [
351
- d(ke, {
361
+ default: g(() => [
362
+ o(Ve, {
352
363
  class: "i-semi",
353
364
  icon: !0
354
365
  }),
355
- Be
356
- ]),
357
- _: 1
358
- })
359
- ]),
360
- _: 1
361
- }),
362
- d(Z, null, {
363
- default: p(() => [
364
- d(w, {
365
- onClick: i[4] || (i[4] = (n) => u(c).push({ name: "User Comments", params: { _id: u(e).params._id } })),
366
- class: "cursor-pointer"
367
- }, {
368
- default: p(() => [
369
- Oe
370
- ]),
371
- _: 1
372
- }),
373
- d(w, {
374
- onClick: i[5] || (i[5] = (n) => u(c).push({ name: "User Likes", params: { _id: u(e).params._id } })),
375
- class: "cursor-pointer"
376
- }, {
377
- default: p(() => [
378
- Re
366
+ Fe
379
367
  ]),
380
368
  _: 1
381
369
  })
382
370
  ]),
383
371
  _: 1
384
372
  }),
385
- _.user._id === u(e).params._id ? (m(), y(Z, { key: 1 }, {
386
- default: p(() => [
387
- d(w, {
388
- onClick: i[6] || (i[6] = (n) => u(c).push({
373
+ p.user._id === c(e).params._id ? (u(), w(Z, { key: 1 }, {
374
+ default: g(() => [
375
+ o(x, {
376
+ onClick: d[4] || (d[4] = (l) => c(m).push({
389
377
  name: "User Edit Profile",
390
378
  params: {
391
- _id: u(e).params._id
379
+ _id: c(e).params._id
392
380
  }
393
381
  })),
394
382
  class: "cursor-pointer"
395
383
  }, {
396
- default: p(() => [
397
- je
384
+ default: g(() => [
385
+ Re
398
386
  ]),
399
387
  _: 1
400
388
  }),
401
- d(w, {
389
+ o(x, {
402
390
  class: "cursor-pointer",
403
- onClick: i[7] || (i[7] = (n) => r())
391
+ onClick: d[5] || (d[5] = (l) => t())
404
392
  }, {
405
- default: p(() => [
406
- Ae
393
+ default: g(() => [
394
+ Te
407
395
  ]),
408
396
  _: 1
409
397
  })
410
398
  ]),
411
399
  _: 1
412
- })) : P("", !0)
400
+ })) : y("", !0)
413
401
  ])
414
402
  ]));
415
403
  }
416
- }, Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
404
+ }, Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
417
405
  __proto__: null,
418
- default: Fe
406
+ default: je
419
407
  }, Symbol.toStringTag, { value: "Module" }));
420
- const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ s("h3", { class: "mn-small" }, "Username", -1), Ye = /* @__PURE__ */ s("p", { class: "mn-semi" }, "Your username will be used for URL of profile like thecommunephuket/users/username", -1), qe = /* @__PURE__ */ s("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__ */ s("h4", null, "Upload userpic", -1), Qe = /* @__PURE__ */ s("p", { class: "mn-thin" }, "Select your birthday if you want to receive your birthday gift.", -1), We = /* @__PURE__ */ s("h3", { class: "mn-small" }, "Account", -1), Xe = /* @__PURE__ */ s("p", { class: "mn-thin" }, "If you want to change your account details please contact the administratior: admin@thecommunephuket.com", -1), et = {
408
+ 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("p", { class: "mn-thin" }, "Select your birthday if you want to receive your birthday gift.", -1), We = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Socials", -1), Xe = /* @__PURE__ */ i("p", { class: "mn-thin" }, "Please provide only the username for social media profiles, without full links.", -1), et = /* @__PURE__ */ i("h3", { class: "mn-small" }, "Account", -1), tt = /* @__PURE__ */ i("p", { class: "mn-thin" }, "If you want to change your account details please contact the administratior: admin@thecommunephuket.com", -1), st = {
421
409
  __name: "ProfileEdit",
422
- async setup(t) {
423
- let e, c;
410
+ async setup(s) {
411
+ let e, m;
424
412
  V(null);
425
- const f = N(), h = E();
426
- [e, c] = T(() => U.read({ _id: _.user._id })), await e, c();
427
- const r = V(l.current);
428
- async function g() {
429
- await U.update(l.current);
413
+ const f = E(), C = L();
414
+ [e, m] = A(() => U.read({ _id: p.user._id })), await e, m();
415
+ const t = V(a.current);
416
+ async function v() {
417
+ await U.update(a.current);
430
418
  }
431
- function i() {
432
- h.replace({ name: "User Profile", params: { _id: l.current._id } });
419
+ function d() {
420
+ C.replace({ name: "User Profile", params: { _id: a.current._id } });
433
421
  }
434
- return (n, a) => (m(), C("div", Ge, [
435
- u(f).params._id === _.user._id ? (m(), y(S, {
422
+ return (l, n) => (u(), _("div", Ge, [
423
+ c(f).params._id === p.user._id ? (u(), w(N, {
436
424
  key: 0,
437
- user: _.user._id,
438
- target: r.value,
425
+ user: p.user._id,
426
+ target: t.value,
439
427
  cta: !1
440
- }, null, 8, ["user", "target"])) : P("", !0),
428
+ }, null, 8, ["user", "target"])) : y("", !0),
441
429
  De,
442
- d(b, {
443
- field: r.value.username,
444
- "onUpdate:field": a[0] || (a[0] = (o) => r.value.username = o),
430
+ o(h, {
431
+ field: t.value.username,
432
+ "onUpdate:field": n[0] || (n[0] = (r) => t.value.username = r),
445
433
  label: "Username",
446
434
  placeholder: "Not specified",
447
435
  class: "mn-thin w-100 bg-grey pd-medium radius-small",
448
436
  disabled: "true",
449
- validation: n.organizationName
437
+ validation: l.organizationName
450
438
  }, null, 8, ["field", "validation"]),
451
439
  Ye,
452
440
  qe,
453
- s("div", Je, [
454
- d(W, {
455
- photo: r.value.profile.photo,
456
- "onUpdate:photo": a[1] || (a[1] = (o) => r.value.profile.photo = o),
457
- uploadPath: "users/" + r.value._id + "/avatars",
441
+ i("div", Je, [
442
+ o(X, {
443
+ photo: t.value.profile.photo,
444
+ "onUpdate:photo": n[1] || (n[1] = (r) => t.value.profile.photo = r),
445
+ uploadPath: "users/" + t.value._id + "/avatars",
458
446
  class: "h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"
459
447
  }, null, 8, ["photo", "uploadPath"]),
460
448
  Ke
461
449
  ]),
462
- d(b, {
463
- field: r.value.profile.name,
464
- "onUpdate:field": a[2] || (a[2] = (o) => r.value.profile.name = o),
450
+ o(h, {
451
+ field: t.value.profile.name,
452
+ "onUpdate:field": n[2] || (n[2] = (r) => t.value.profile.name = r),
465
453
  label: "Name",
466
454
  placeholder: "Not specified",
467
455
  class: "mn-thin bg-grey pd-medium radius-small",
468
- validation: n.organizationName
456
+ validation: l.organizationName
469
457
  }, null, 8, ["field", "validation"]),
470
- d(b, {
471
- field: r.value.profile.description,
472
- "onUpdate:field": a[3] || (a[3] = (o) => r.value.profile.description = o),
458
+ o(h, {
459
+ field: t.value.profile.description,
460
+ "onUpdate:field": n[3] || (n[3] = (r) => t.value.profile.description = r),
473
461
  label: "Description",
474
462
  placeholder: "Not specified",
475
463
  class: "mn-thin bg-grey pd-medium radius-small",
476
464
  disabled: "true",
477
- validation: n.organizationName
465
+ validation: l.organizationName
478
466
  }, null, 8, ["field", "validation"]),
479
467
  Qe,
480
- d(b, {
481
- field: r.value.birthday,
482
- "onUpdate:field": a[4] || (a[4] = (o) => r.value.birthday = o),
468
+ o(h, {
469
+ field: t.value.birthday,
470
+ "onUpdate:field": n[4] || (n[4] = (r) => t.value.birthday = r),
483
471
  label: "Birthday",
484
472
  type: "date",
485
473
  placeholder: "Not specified",
486
474
  class: "mn-semi bg-grey pd-medium radius-small",
487
- validation: n.organizationName
475
+ validation: l.organizationName
488
476
  }, null, 8, ["field", "validation"]),
489
477
  We,
490
478
  Xe,
491
- d(b, {
492
- field: r.value.phone,
493
- "onUpdate:field": a[5] || (a[5] = (o) => r.value.phone = o),
479
+ o(h, {
480
+ field: t.value.socials.instagram,
481
+ "onUpdate:field": n[5] || (n[5] = (r) => t.value.socials.instagram = r),
482
+ label: "Instagram",
483
+ placeholder: "",
484
+ class: "mn-thin bg-grey pd-medium radius-small"
485
+ }, null, 8, ["field"]),
486
+ o(h, {
487
+ field: t.value.socials.twitter,
488
+ "onUpdate:field": n[6] || (n[6] = (r) => t.value.socials.twitter = r),
489
+ label: "Twitter",
490
+ placeholder: "",
491
+ class: "mn-thin bg-grey pd-medium radius-small"
492
+ }, null, 8, ["field"]),
493
+ o(h, {
494
+ field: t.value.socials.facebook,
495
+ "onUpdate:field": n[7] || (n[7] = (r) => t.value.socials.facebook = r),
496
+ label: "Facebook",
497
+ placeholder: "",
498
+ class: "mn-thin bg-grey pd-medium radius-small"
499
+ }, null, 8, ["field"]),
500
+ o(h, {
501
+ field: t.value.socials.telegram,
502
+ "onUpdate:field": n[8] || (n[8] = (r) => t.value.socials.telegram = r),
503
+ label: "Telegram",
504
+ placeholder: "",
505
+ class: "mn-semi bg-grey pd-medium radius-small"
506
+ }, null, 8, ["field"]),
507
+ et,
508
+ tt,
509
+ o(h, {
510
+ field: t.value.phone,
511
+ "onUpdate:field": n[9] || (n[9] = (r) => t.value.phone = r),
494
512
  label: "Phone",
495
513
  placeholder: "Not specified",
496
514
  class: "mn-thin bg-grey pd-medium mn-thin radius-small",
497
515
  disabled: "true",
498
- validation: n.organizationName
516
+ validation: l.organizationName
499
517
  }, null, 8, ["field", "validation"]),
500
- d(b, {
501
- field: r.value.email,
502
- "onUpdate:field": a[6] || (a[6] = (o) => r.value.email = o),
518
+ o(h, {
519
+ field: t.value.email,
520
+ "onUpdate:field": n[10] || (n[10] = (r) => t.value.email = r),
503
521
  label: "Email",
504
522
  placeholder: "Not specified",
505
523
  class: "mn-thin bg-grey pd-medium radius-small",
506
- disabled: "true",
507
- validation: n.organizationName
508
- }, null, 8, ["field", "validation"]),
509
- d(b, {
510
- field: r.value.password,
511
- "onUpdate:field": a[7] || (a[7] = (o) => r.value.password = o),
512
- label: "Password",
513
- placeholder: "Not specified",
514
- class: "mn-semi bg-grey pd-medium radius-small",
515
- disabled: "true",
516
- validation: n.organizationName
524
+ disabled: !0,
525
+ validation: l.organizationName
517
526
  }, null, 8, ["field", "validation"]),
518
- d(Y, {
519
- submit: g,
520
- callback: i,
527
+ o(Y, {
528
+ submit: v,
529
+ callback: d,
521
530
  class: "mn-thin"
522
531
  }, {
523
- default: p(() => [
524
- L("Сохранить")
532
+ default: g(() => [
533
+ S("Сохранить")
525
534
  ]),
526
535
  _: 1
527
536
  })
528
537
  ]));
529
538
  }
530
- }, tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
539
+ }, rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
531
540
  __proto__: null,
532
- default: et
533
- }, Symbol.toStringTag, { value: "Module" })), _t = [{
541
+ default: st
542
+ }, Symbol.toStringTag, { value: "Module" })), ht = [{
534
543
  path: "profile/:_id",
535
544
  name: "User Profile",
536
545
  meta: {
@@ -539,7 +548,7 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ s("
539
548
  ru: "Профиль"
540
549
  }
541
550
  },
542
- component: () => Promise.resolve().then(() => Te)
551
+ component: () => Promise.resolve().then(() => Ae)
543
552
  }, {
544
553
  path: "profile/:_id/blogposts",
545
554
  name: "User Blogposts",
@@ -551,7 +560,7 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ s("
551
560
  },
552
561
  component: () => import(
553
562
  /* webpackChunkName: "profile" */
554
- "./ProfileBlogposts-fb014bc6.mjs"
563
+ "./ProfileBlogposts-775b1cfa.mjs"
555
564
  )
556
565
  }, {
557
566
  path: "profile/:_id/comments",
@@ -564,7 +573,7 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ s("
564
573
  },
565
574
  component: () => import(
566
575
  /* webpackChunkName: "profile" */
567
- "./ProfileComments-58094a50.mjs"
576
+ "./ProfileComments-fd7d66bf.mjs"
568
577
  )
569
578
  }, {
570
579
  path: "profile/:_id/edit",
@@ -575,7 +584,7 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ s("
575
584
  ru: "Редактировать Профиль"
576
585
  }
577
586
  },
578
- component: () => Promise.resolve().then(() => tt)
587
+ component: () => Promise.resolve().then(() => rt)
579
588
  }, {
580
589
  path: "profile/:_id/events",
581
590
  name: "User Events",
@@ -584,7 +593,7 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ s("
584
593
  },
585
594
  component: () => import(
586
595
  /* webpackChunkName: "profile" */
587
- "./ProfileEvents-5d206e3d.mjs"
596
+ "./ProfileEvents-7a51a9e6.mjs"
588
597
  )
589
598
  }, {
590
599
  path: "profile/:_id/likes",
@@ -597,7 +606,7 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ s("
597
606
  },
598
607
  component: () => import(
599
608
  /* webpackChunkName: "profile" */
600
- "./ProfileLikes-b5ac7f48.mjs"
609
+ "./ProfileLikes-20a8a3c9.mjs"
601
610
  )
602
611
  }, {
603
612
  path: "profile/:_id/organizations",
@@ -610,12 +619,12 @@ const Ge = { class: "pd-medium for-transition w-100" }, De = /* @__PURE__ */ s("
610
619
  },
611
620
  component: () => import(
612
621
  /* webpackChunkName: "profile" */
613
- "./ProfileOrganizations-32ab1e30.mjs"
622
+ "./ProfileOrganizations-4b866823.mjs"
614
623
  )
615
624
  }];
616
625
  export {
617
- Fe as Profile,
618
- et as ProfileEdit,
619
- _t as usersRoutes,
620
- pt as usersStore
626
+ je as Profile,
627
+ st as ProfileEdit,
628
+ ht as usersRoutes,
629
+ ft as usersStore
621
630
  };