@ozdao/prometheus-framework 0.1.24 → 0.1.27
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-0e0132f5.mjs +306 -0
- package/dist/BackofficeGallery-a52a27b6.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-19e23006.mjs +1945 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-f3d37f29.js +1 -0
- package/dist/Button-d8e72ac0.mjs +296 -0
- package/dist/Button-ee08e6bf.js +1 -0
- package/dist/ButtonFollow-00d85977.mjs +133 -0
- package/dist/ButtonFollow-7c0180b3.js +1 -0
- package/dist/CardOrganization-3f4a13d3.mjs +230 -0
- package/dist/CardOrganization-bf366e4e.js +1 -0
- package/dist/Feed-0b1dad65.js +1 -0
- package/dist/Feed-8110366a.mjs +439 -0
- package/dist/Feed-82ad8e29.mjs +368 -0
- package/dist/Feed-c8b1c72d.js +1 -0
- package/dist/Image-2269667e.js +9 -0
- package/dist/Image-7dcfe90d.mjs +477 -0
- package/dist/MenuItem-1216a99f.js +1 -0
- package/dist/MenuItem-97c50b97.mjs +93 -0
- package/dist/Popup-0420381f.js +1 -0
- package/dist/Popup-47b37484.mjs +76 -0
- package/dist/Product-977a8a7f.js +7 -0
- package/dist/Product-bbe7171a.mjs +842 -0
- package/dist/ProductEdit-e4cad9d1.js +1 -0
- package/dist/ProductEdit-f7a9af17.mjs +303 -0
- package/dist/ProfileBlogposts-5379335e.js +1 -0
- package/dist/ProfileBlogposts-5deee0c5.mjs +65 -0
- package/dist/ProfileComments-3cf3e265.mjs +44 -0
- package/dist/ProfileComments-8c9146ef.js +1 -0
- package/dist/ProfileEvents-7502ed90.mjs +57 -0
- package/dist/ProfileEvents-ea023c17.js +1 -0
- package/dist/ProfileLikes-23b6f2f9.js +1 -0
- package/dist/ProfileLikes-5b52e4ae.mjs +44 -0
- package/dist/ProfileOrganizations-769325c7.js +1 -0
- package/dist/ProfileOrganizations-c5151835.mjs +214 -0
- package/dist/Publics-4438ca51.js +1 -0
- package/dist/Publics-538180a8.mjs +45 -0
- package/dist/UploadImage-33f6a9f4.js +1 -0
- package/dist/UploadImage-f7b0335f.mjs +83 -0
- package/dist/UploadImageMultiple-297b3897.js +1 -0
- package/dist/UploadImageMultiple-7b132ba0.mjs +58 -0
- package/dist/auth-2f9b2dfc.js +7 -0
- package/dist/auth-b047fdc0.mjs +612 -0
- package/dist/auth.client.cjs +8 -8
- package/dist/auth.client.js +24 -23
- package/dist/auth.validation-02e0629b.mjs +20 -0
- package/dist/auth.validation-6a59443b.js +1 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +1 -1
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +69 -68
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +21 -20
- package/dist/index-0ab9d59c.mjs +934 -0
- package/dist/index-7ecbf72a.js +2 -0
- package/dist/legal.client.cjs +1 -0
- package/dist/legal.client.js +8460 -0
- package/dist/modules/landing/components/pages/Legal.vue.d.ts +2 -0
- package/dist/modules/landing/components/pages/legal/Cookies.vue.d.ts +2 -0
- package/dist/modules/landing/components/pages/legal/Privacy.vue.d.ts +2 -0
- package/dist/modules/landing/components/pages/legal/Terms.vue.d.ts +2 -0
- package/dist/modules/legal/components/pages/Legal.vue.d.ts +2 -0
- package/dist/modules/legal/components/pages/legal/Cookies.vue.d.ts +2 -0
- package/dist/modules/legal/components/pages/legal/Privacy.vue.d.ts +2 -0
- package/dist/modules/legal/components/pages/legal/Terms.vue.d.ts +2 -0
- package/dist/organizations-aed4245d.mjs +122 -0
- package/dist/organizations-bb8f676d.js +1 -0
- package/dist/organizations.client-5548024c.js +3 -0
- package/dist/organizations.client-976762d2.mjs +3021 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +45 -44
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +254 -324
- package/package.json +5 -1
- package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
- package/src/modules/constructor/components/sections/Constructor.vue +3 -3
- package/src/modules/landing/landing.client.js +1 -2
- package/src/modules/legal/components/pages/Legal.vue +43 -0
- package/src/modules/legal/components/pages/legal/Cookies.vue +370 -0
- package/src/modules/legal/components/pages/legal/Privacy.vue +4284 -0
- package/src/modules/legal/components/pages/legal/Terms.vue +1283 -0
- package/src/modules/legal/legal.client.js +18 -0
- package/src/modules/legal/router/legal.js +22 -0
- package/src/modules/users/components/pages/Profile.vue +13 -0
package/dist/users.client.js
CHANGED
@@ -1,196 +1,112 @@
|
|
1
|
-
import {
|
2
|
-
import { a as
|
3
|
-
import { _ as
|
4
|
-
import { B as
|
5
|
-
import { _ as
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import {
|
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";
|
2
|
+
import { a as j } from "./index-0ab9d59c.mjs";
|
3
|
+
import { _ as x, a as $ } from "./MenuItem-97c50b97.mjs";
|
4
|
+
import { B as D, m as G } from "./ButtonFollow-00d85977.mjs";
|
5
|
+
import { _ as Y } from "./Socials-8193477c.mjs";
|
6
|
+
import { _ as E } from "./_plugin-vue_export-helper-dad06003.mjs";
|
7
|
+
import { I as q, P as J } from "./IconEdit-eacf3856.mjs";
|
8
|
+
import { useRoute as N, useRouter as S } from "vue-router";
|
9
|
+
import { s as c, a as O } from "./auth-b047fdc0.mjs";
|
9
10
|
import "./inputs.validation-14e8e01f.mjs";
|
10
|
-
import { _ as
|
11
|
-
import "./
|
11
|
+
import { F as g, _ as Z } from "./Button-d8e72ac0.mjs";
|
12
|
+
import { _ as K } from "./UploadImage-f7b0335f.mjs";
|
13
|
+
import "./auth.validation-02e0629b.mjs";
|
12
14
|
import "./globals-96ba60e4.mjs";
|
13
15
|
import "vue-i18n";
|
14
|
-
const
|
15
|
-
__name: "Menu",
|
16
|
-
setup(s) {
|
17
|
-
return (e, m) => (d(), _("section", ee, [
|
18
|
-
R(e.$slots, "default")
|
19
|
-
]));
|
20
|
-
}
|
21
|
-
}, te = {
|
22
|
-
props: {
|
23
|
-
theme: {
|
24
|
-
type: String,
|
25
|
-
default: "black"
|
26
|
-
}
|
27
|
-
}
|
28
|
-
}, se = {
|
29
|
-
width: "80",
|
30
|
-
height: "80",
|
31
|
-
viewBox: "0 0 80 80",
|
32
|
-
fill: "none",
|
33
|
-
xmlns: "http://www.w3.org/2000/svg"
|
34
|
-
}, re = ["fill"];
|
35
|
-
function ie(s, e, m, f, g, t) {
|
36
|
-
return d(), _("svg", se, [
|
37
|
-
n("path", {
|
38
|
-
fill: m.theme,
|
39
|
-
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"
|
40
|
-
}, null, 8, re)
|
41
|
-
]);
|
42
|
-
}
|
43
|
-
const ne = /* @__PURE__ */ H(te, [["render", ie]]), k = B({
|
44
|
-
props: {
|
45
|
-
theme: {
|
46
|
-
type: String,
|
47
|
-
default: "black"
|
48
|
-
// Значение по умолчанию
|
49
|
-
}
|
50
|
-
},
|
51
|
-
setup(s, { slots: e }) {
|
52
|
-
return () => {
|
53
|
-
const m = e.default ? e.default() : [], f = [], g = [];
|
54
|
-
return m.forEach((t) => {
|
55
|
-
t.toString(), t.props && t.props.icon ? f.push(t) : g.push(t);
|
56
|
-
}), x(
|
57
|
-
"div",
|
58
|
-
{
|
59
|
-
class: [
|
60
|
-
"w-100",
|
61
|
-
"t-left",
|
62
|
-
"flex-nowrap",
|
63
|
-
"flex-v-center",
|
64
|
-
"flex",
|
65
|
-
// here we need add logic
|
66
|
-
{ "br-b br-black-transp-10 br-solid": !0 }
|
67
|
-
]
|
68
|
-
},
|
69
|
-
[
|
70
|
-
// Conditionally include the div for iconSlot
|
71
|
-
...f.length ? [
|
72
|
-
x(
|
73
|
-
"div",
|
74
|
-
{
|
75
|
-
class: ["mn-thin", "mn-t-thin", "flex-center", "flex", "mn-r-small", "flex-child", "flex-child-shrink-0", "i-big", "bg-main", "radius-thin"]
|
76
|
-
},
|
77
|
-
f
|
78
|
-
)
|
79
|
-
] : [],
|
80
|
-
x(
|
81
|
-
"div",
|
82
|
-
{
|
83
|
-
class: ["w-100", "mn-thin", "mn-t-thin", "mn-r-small", "i-big", "flex-v-center", "flex"]
|
84
|
-
},
|
85
|
-
[
|
86
|
-
x(
|
87
|
-
"span",
|
88
|
-
{
|
89
|
-
class: ["p-big", "t-medium", "mn-r-auto"]
|
90
|
-
},
|
91
|
-
g
|
92
|
-
)
|
93
|
-
]
|
94
|
-
),
|
95
|
-
x(ne, { class: "i-medium mn-r-medium", type: "chevron", theme: s.theme })
|
96
|
-
]
|
97
|
-
);
|
98
|
-
};
|
99
|
-
}
|
100
|
-
}), ae = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, O = {
|
16
|
+
const Q = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, I = {
|
101
17
|
__name: "ProfileCompletion",
|
102
18
|
props: {
|
103
19
|
user: Object,
|
104
20
|
target: Object,
|
105
21
|
cta: Boolean
|
106
22
|
},
|
107
|
-
setup(
|
108
|
-
const { user: e, cta:
|
109
|
-
let
|
110
|
-
function
|
111
|
-
for (let a in
|
112
|
-
|
23
|
+
setup(r) {
|
24
|
+
const { user: e, cta: p, target: w } = r, y = U(0), o = (h) => {
|
25
|
+
let n = 0, d = 0;
|
26
|
+
function f(s) {
|
27
|
+
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++));
|
113
29
|
}
|
114
|
-
return h
|
30
|
+
return f(h), n === 0 ? 0 : Math.round(d / n * 100);
|
115
31
|
};
|
116
|
-
return
|
117
|
-
const
|
118
|
-
return
|
119
|
-
|
120
|
-
|
32
|
+
return w && (y.value = o(w)), (h, n) => {
|
33
|
+
const d = L("router-link");
|
34
|
+
return m(), C("section", Q, [
|
35
|
+
i("h3", null, " Profile completed at " + k(y.value) + "% ", 1),
|
36
|
+
r.cta ? (m(), v(d, {
|
121
37
|
key: 0,
|
122
38
|
to: {
|
123
39
|
name: "User Edit Profile",
|
124
|
-
params: { _id:
|
40
|
+
params: { _id: r.user }
|
125
41
|
},
|
126
42
|
class: "mn-t-regular t-black bg-white w-100 button"
|
127
43
|
}, {
|
128
|
-
default:
|
129
|
-
|
44
|
+
default: _(() => [
|
45
|
+
H(" Fill Profile ")
|
130
46
|
]),
|
131
47
|
_: 1
|
132
|
-
}, 8, ["to"])) :
|
48
|
+
}, 8, ["to"])) : b("", !0)
|
133
49
|
]);
|
134
50
|
};
|
135
51
|
}
|
136
|
-
},
|
52
|
+
}, W = {}, X = {
|
137
53
|
width: "80",
|
138
54
|
height: "80",
|
139
55
|
viewBox: "0 0 80 80",
|
140
56
|
fill: "none",
|
141
57
|
xmlns: "http://www.w3.org/2000/svg"
|
142
|
-
},
|
58
|
+
}, ee = /* @__PURE__ */ i("path", {
|
143
59
|
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",
|
144
60
|
fill: "white"
|
145
|
-
}, null, -1),
|
146
|
-
|
61
|
+
}, null, -1), te = [
|
62
|
+
ee
|
147
63
|
];
|
148
|
-
function
|
149
|
-
return
|
64
|
+
function se(r, e) {
|
65
|
+
return m(), C("svg", X, te);
|
150
66
|
}
|
151
|
-
const
|
67
|
+
const re = /* @__PURE__ */ E(W, [["render", se]]), ie = {}, ae = {
|
152
68
|
width: "80",
|
153
69
|
height: "80",
|
154
70
|
viewBox: "0 0 80 80",
|
155
71
|
fill: "none",
|
156
72
|
xmlns: "http://www.w3.org/2000/svg"
|
157
|
-
},
|
73
|
+
}, oe = /* @__PURE__ */ i("path", {
|
158
74
|
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",
|
159
75
|
fill: "white"
|
160
|
-
}, null, -1),
|
161
|
-
|
76
|
+
}, null, -1), ne = [
|
77
|
+
oe
|
162
78
|
];
|
163
|
-
function
|
164
|
-
return
|
79
|
+
function le(r, e) {
|
80
|
+
return m(), C("svg", ae, ne);
|
165
81
|
}
|
166
|
-
const
|
82
|
+
const de = /* @__PURE__ */ E(ie, [["render", le]]), ue = {}, me = {
|
167
83
|
width: "56",
|
168
84
|
height: "56",
|
169
85
|
viewBox: "0 0 56 56",
|
170
86
|
fill: "none",
|
171
87
|
xmlns: "http://www.w3.org/2000/svg"
|
172
|
-
},
|
88
|
+
}, ce = /* @__PURE__ */ i("path", {
|
173
89
|
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",
|
174
90
|
fill: "white"
|
175
|
-
}, null, -1),
|
91
|
+
}, null, -1), pe = /* @__PURE__ */ i("path", {
|
176
92
|
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",
|
177
93
|
fill: "white"
|
178
|
-
}, null, -1),
|
94
|
+
}, null, -1), _e = /* @__PURE__ */ i("path", {
|
179
95
|
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",
|
180
96
|
fill: "white"
|
181
|
-
}, null, -1),
|
97
|
+
}, null, -1), fe = /* @__PURE__ */ i("path", {
|
182
98
|
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",
|
183
99
|
fill: "white"
|
184
|
-
}, null, -1),
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
100
|
+
}, null, -1), Ce = [
|
101
|
+
ce,
|
102
|
+
pe,
|
103
|
+
_e,
|
104
|
+
fe
|
189
105
|
];
|
190
|
-
function
|
191
|
-
return
|
106
|
+
function he(r, e) {
|
107
|
+
return m(), C("svg", me, Ce);
|
192
108
|
}
|
193
|
-
const
|
109
|
+
const ge = /* @__PURE__ */ E(ue, [["render", he]]), V = j.create({ baseURL: process.env.API_URL, withCredentials: !0 }), t = R({
|
194
110
|
all: [],
|
195
111
|
current: {
|
196
112
|
_id: "",
|
@@ -213,46 +129,46 @@ const Me = /* @__PURE__ */ H(ve, [["render", Pe]]), V = Y.create({ baseURL: proc
|
|
213
129
|
roles: []
|
214
130
|
}
|
215
131
|
}), M = {
|
216
|
-
async create(
|
132
|
+
async create(r) {
|
217
133
|
try {
|
218
|
-
const e = await V.post("/api/users",
|
134
|
+
const e = await V.post("/api/users", r);
|
219
135
|
return P.set(e.data, "current"), Promise.resolve(e.data);
|
220
136
|
} catch (e) {
|
221
137
|
return console.error(e), Promise.reject(e);
|
222
138
|
}
|
223
139
|
},
|
224
|
-
async read(
|
225
|
-
|
140
|
+
async read(r = {}) {
|
141
|
+
r.params = {}, r._id && (r.params._id = r._id), r.user && (r.params.user = r.user);
|
226
142
|
try {
|
227
|
-
const e = await V.get("/api/users", { params:
|
228
|
-
return
|
143
|
+
const e = await V.get("/api/users", { params: r.params });
|
144
|
+
return r._id ? P.set(e.data[0], "current") : P.set(e.data, "all"), Promise.resolve(e.data);
|
229
145
|
} catch (e) {
|
230
146
|
return console.error(e), Promise.reject(e);
|
231
147
|
}
|
232
148
|
},
|
233
|
-
async update(
|
149
|
+
async update(r) {
|
234
150
|
try {
|
235
|
-
const e = await V.put(`/api/users/${
|
151
|
+
const e = await V.put(`/api/users/${r._id}`, r);
|
236
152
|
return P.set(e.data, "current"), Promise.resolve(e.data);
|
237
153
|
} catch (e) {
|
238
154
|
return console.error(e), Promise.reject(e);
|
239
155
|
}
|
240
156
|
},
|
241
|
-
async delete(
|
157
|
+
async delete(r) {
|
242
158
|
try {
|
243
|
-
await V.delete(`/api/users/${
|
244
|
-
const e =
|
245
|
-
e !== -1 &&
|
159
|
+
await V.delete(`/api/users/${r._id}`);
|
160
|
+
const e = t.all.findIndex((p) => p._id === r._id);
|
161
|
+
e !== -1 && t.all.splice(e, 1);
|
246
162
|
} catch (e) {
|
247
163
|
console.error(e);
|
248
164
|
}
|
249
165
|
}
|
250
166
|
}, P = {
|
251
|
-
set(
|
252
|
-
|
167
|
+
set(r, e) {
|
168
|
+
t[e] = r;
|
253
169
|
},
|
254
170
|
clean() {
|
255
|
-
|
171
|
+
t.current = {
|
256
172
|
phone: "",
|
257
173
|
name: "",
|
258
174
|
surname: "",
|
@@ -263,333 +179,347 @@ const Me = /* @__PURE__ */ H(ve, [["render", Pe]]), V = Y.create({ baseURL: proc
|
|
263
179
|
orders: []
|
264
180
|
};
|
265
181
|
}
|
266
|
-
},
|
182
|
+
}, mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
267
183
|
__proto__: null,
|
268
184
|
actions: M,
|
269
185
|
mutations: P,
|
270
|
-
state:
|
186
|
+
state: t
|
271
187
|
}, Symbol.toStringTag, { value: "Module" }));
|
272
|
-
const
|
188
|
+
const ve = { class: "for-transition w-100" }, be = {
|
273
189
|
key: 0,
|
274
190
|
class: "flex-center flex pd-medium radius-big bg-grey uppercase t-semi w-100 h-100"
|
275
|
-
},
|
191
|
+
}, we = {
|
276
192
|
key: 1,
|
277
193
|
_id: "dash",
|
278
194
|
class: "pd-b-extra pd-thin w-100"
|
279
|
-
},
|
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 = {
|
280
196
|
key: 4,
|
281
197
|
class: "mn-t-small mn-thin"
|
282
|
-
},
|
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 = {
|
283
199
|
__name: "Profile",
|
284
|
-
setup(
|
285
|
-
const e =
|
286
|
-
|
287
|
-
await M.read({ _id: e.params._id, user:
|
200
|
+
setup(r) {
|
201
|
+
const e = N(), p = S(), w = U(!1);
|
202
|
+
B(async () => {
|
203
|
+
await M.read({ _id: e.params._id, user: c.user._id }), w.value = !0;
|
288
204
|
});
|
289
|
-
const
|
290
|
-
|
205
|
+
const y = ({ membership: h, isMember: n, targetId: d }) => {
|
206
|
+
G.handleMembershipUpdate(t.current, h, n, d);
|
291
207
|
};
|
292
|
-
function
|
293
|
-
|
208
|
+
function o() {
|
209
|
+
O.logout(), p.push({ name: "Sign In" });
|
294
210
|
}
|
295
|
-
return (
|
296
|
-
|
297
|
-
|
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, [
|
213
|
+
u(e).params._id === c.user._id && w.value ? (m(), v(I, {
|
298
214
|
key: 0,
|
299
|
-
user:
|
300
|
-
target:
|
215
|
+
user: c.user._id,
|
216
|
+
target: t.current,
|
301
217
|
cta: !0
|
302
|
-
}, null, 8, ["user", "target"])) :
|
303
|
-
|
304
|
-
|
218
|
+
}, null, 8, ["user", "target"])) : b("", !0),
|
219
|
+
i("section", ye, [
|
220
|
+
u(e).params._id === c.user._id ? (m(), v(q, {
|
305
221
|
key: 0,
|
306
|
-
onClick:
|
222
|
+
onClick: n[0] || (n[0] = (d) => h.$router.push({
|
307
223
|
name: "User Edit Profile",
|
308
224
|
params: {
|
309
|
-
_id:
|
225
|
+
_id: c.user._id
|
310
226
|
}
|
311
227
|
})),
|
312
228
|
class: "pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
|
313
|
-
})) :
|
314
|
-
|
229
|
+
})) : b("", !0),
|
230
|
+
t.current.profile.photo.length > 0 ? (m(), C("img", {
|
315
231
|
key: 1,
|
316
|
-
src: (
|
232
|
+
src: (h.FILE_SERVER_URL || "") + t.current.profile.photo,
|
317
233
|
class: "radius-extra bg-white mn-small object-fit-cover i-extra"
|
318
|
-
}, null, 8,
|
234
|
+
}, null, 8, $e)) : (m(), v(J, {
|
319
235
|
key: 2,
|
320
236
|
class: "radius-medium mn-small i-extra"
|
321
237
|
})),
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
(
|
327
|
-
class:
|
328
|
-
},
|
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, [
|
242
|
+
(m(!0), C(z, null, A(t.current.roles, (d, f) => (m(), C("div", {
|
243
|
+
class: F(["pd-thin radius-small t-semi bg-white", { "mn-r-thin": f !== t.current.roles.length - 1 }])
|
244
|
+
}, k(d.icon) + " " + k(d.name), 3))), 256))
|
329
245
|
]),
|
330
|
-
|
331
|
-
|
246
|
+
i("p", Ue, " 👨👨👧👧 " + k(t.current.numberOfMemberships) + " followers ", 1),
|
247
|
+
c.user._id && u(e).params._id && u(e).params._id !== c.user._id ? (m(), v(D, {
|
332
248
|
key: 3,
|
333
249
|
type: "user",
|
334
|
-
isMember:
|
335
|
-
targetId:
|
336
|
-
userId:
|
250
|
+
isMember: t.current.isMember,
|
251
|
+
targetId: t.current._id,
|
252
|
+
userId: c.user._id,
|
337
253
|
class: "w-min mn-medium mn-r-auto mn-l-auto",
|
338
|
-
onUpdateMembership:
|
339
|
-
}, null, 8, ["isMember", "targetId", "userId"])) :
|
340
|
-
Object.values(
|
341
|
-
l(
|
342
|
-
telegram:
|
343
|
-
facebook:
|
344
|
-
instagram:
|
345
|
-
twitter:
|
254
|
+
onUpdateMembership: y
|
255
|
+
}, 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, {
|
258
|
+
telegram: t.current.socials.telegram,
|
259
|
+
facebook: t.current.socials.facebook,
|
260
|
+
instagram: t.current.socials.instagram,
|
261
|
+
twitter: t.current.socials.twitter,
|
346
262
|
class: "mn-r-auto mn-l-auto"
|
347
263
|
}, null, 8, ["telegram", "facebook", "instagram", "twitter"])
|
348
264
|
]),
|
349
|
-
|
265
|
+
c.user._id === u(e).params._id && (c.access.roles.includes("ROLE_MODERATOR") || c.access.roles.includes("ROLE_ADMIN")) ? (m(), v(x, {
|
350
266
|
key: 1,
|
351
267
|
class: "bg-black t-white"
|
352
268
|
}, {
|
353
|
-
default:
|
354
|
-
l(
|
355
|
-
onClick:
|
269
|
+
default: _(() => [
|
270
|
+
l($, {
|
271
|
+
onClick: n[1] || (n[1] = (d) => u(p).push({
|
356
272
|
name: "Backoffice",
|
357
273
|
params: {
|
358
|
-
_id:
|
274
|
+
_id: u(e).params._id
|
359
275
|
}
|
360
276
|
})),
|
361
277
|
class: "cursor-pointer",
|
362
278
|
theme: "white"
|
363
279
|
}, {
|
364
|
-
default:
|
365
|
-
|
280
|
+
default: _(() => [
|
281
|
+
He
|
366
282
|
]),
|
367
283
|
_: 1
|
368
284
|
})
|
369
285
|
]),
|
370
286
|
_: 1
|
371
|
-
})) :
|
372
|
-
l(
|
373
|
-
default:
|
374
|
-
l(
|
375
|
-
onClick:
|
287
|
+
})) : b("", !0),
|
288
|
+
l(x, { class: "bg-grey" }, {
|
289
|
+
default: _(() => [
|
290
|
+
l($, {
|
291
|
+
onClick: n[2] || (n[2] = (d) => u(p).push({ name: "User Events", params: { _id: u(e).params._id } })),
|
376
292
|
class: "cursor-pointer"
|
377
293
|
}, {
|
378
|
-
default:
|
379
|
-
l(
|
294
|
+
default: _(() => [
|
295
|
+
l(re, {
|
380
296
|
class: "i-semi",
|
381
297
|
icon: !0
|
382
298
|
}),
|
383
|
-
|
299
|
+
Ee
|
384
300
|
]),
|
385
301
|
_: 1
|
386
302
|
}),
|
387
|
-
l(
|
388
|
-
onClick:
|
303
|
+
l($, {
|
304
|
+
onClick: n[3] || (n[3] = (d) => u(p).push({ name: "User Organizations", params: { _id: u(e).params._id } })),
|
389
305
|
class: "cursor-pointer"
|
390
306
|
}, {
|
391
|
-
default:
|
392
|
-
l(
|
307
|
+
default: _(() => [
|
308
|
+
l(de, {
|
393
309
|
class: "i-semi",
|
394
310
|
icon: !0
|
395
311
|
}),
|
396
|
-
|
312
|
+
Ze
|
397
313
|
]),
|
398
314
|
_: 1
|
399
315
|
}),
|
400
|
-
l(
|
401
|
-
onClick:
|
316
|
+
l($, {
|
317
|
+
onClick: n[4] || (n[4] = (d) => u(p).push({ name: "User Blogposts", params: { _id: u(e).params._id } })),
|
402
318
|
class: "cursor-pointer"
|
403
319
|
}, {
|
404
|
-
default:
|
405
|
-
l(
|
320
|
+
default: _(() => [
|
321
|
+
l(ge, {
|
406
322
|
class: "i-semi",
|
407
323
|
icon: !0
|
408
324
|
}),
|
409
|
-
|
325
|
+
Ne
|
410
326
|
]),
|
411
327
|
_: 1
|
412
328
|
})
|
413
329
|
]),
|
414
330
|
_: 1
|
415
331
|
}),
|
416
|
-
|
332
|
+
c.user._id === u(e).params._id ? (m(), v(x, {
|
417
333
|
key: 2,
|
418
334
|
class: "bg-grey"
|
419
335
|
}, {
|
420
|
-
default:
|
421
|
-
l(
|
422
|
-
onClick:
|
336
|
+
default: _(() => [
|
337
|
+
l($, {
|
338
|
+
onClick: n[5] || (n[5] = (d) => u(p).push({
|
423
339
|
name: "User Edit Profile",
|
424
340
|
params: {
|
425
|
-
_id:
|
341
|
+
_id: u(e).params._id
|
342
|
+
}
|
343
|
+
})),
|
344
|
+
class: "cursor-pointer"
|
345
|
+
}, {
|
346
|
+
default: _(() => [
|
347
|
+
Se
|
348
|
+
]),
|
349
|
+
_: 1
|
350
|
+
}),
|
351
|
+
l($, {
|
352
|
+
onClick: n[6] || (n[6] = (d) => u(p).push({
|
353
|
+
name: "Legal",
|
354
|
+
params: {
|
355
|
+
_id: u(e).params._id
|
426
356
|
}
|
427
357
|
})),
|
428
358
|
class: "cursor-pointer"
|
429
359
|
}, {
|
430
|
-
default:
|
431
|
-
|
360
|
+
default: _(() => [
|
361
|
+
Oe
|
432
362
|
]),
|
433
363
|
_: 1
|
434
364
|
}),
|
435
|
-
l(
|
365
|
+
l($, {
|
436
366
|
class: "cursor-pointer",
|
437
|
-
onClick:
|
367
|
+
onClick: n[7] || (n[7] = (d) => o())
|
438
368
|
}, {
|
439
|
-
default:
|
440
|
-
|
369
|
+
default: _(() => [
|
370
|
+
Ie
|
441
371
|
]),
|
442
372
|
_: 1
|
443
373
|
})
|
444
374
|
]),
|
445
375
|
_: 1
|
446
|
-
})) :
|
376
|
+
})) : b("", !0)
|
447
377
|
]))
|
448
378
|
]));
|
449
379
|
}
|
450
|
-
},
|
380
|
+
}, Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
451
381
|
__proto__: null,
|
452
|
-
default:
|
382
|
+
default: Le
|
453
383
|
}, Symbol.toStringTag, { value: "Module" }));
|
454
|
-
const
|
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 = {
|
455
385
|
__name: "ProfileEdit",
|
456
|
-
async setup(
|
457
|
-
let e,
|
386
|
+
async setup(r) {
|
387
|
+
let e, p;
|
458
388
|
U(null);
|
459
|
-
const
|
460
|
-
[e,
|
461
|
-
const
|
462
|
-
async function
|
463
|
-
await M.update(
|
389
|
+
const w = N(), y = S();
|
390
|
+
[e, p] = T(() => M.read({ _id: c.user._id })), await e, p();
|
391
|
+
const o = U(t.current);
|
392
|
+
async function h() {
|
393
|
+
await M.update(t.current);
|
464
394
|
}
|
465
|
-
async function
|
466
|
-
window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.") && (
|
395
|
+
async function n() {
|
396
|
+
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());
|
467
397
|
}
|
468
|
-
function
|
469
|
-
|
398
|
+
function d() {
|
399
|
+
y.replace({ name: "User Profile", params: { _id: t.current._id } });
|
470
400
|
}
|
471
|
-
return (
|
472
|
-
|
401
|
+
return (f, s) => (m(), C("div", Be, [
|
402
|
+
u(w).params._id === c.user._id ? (m(), v(I, {
|
473
403
|
key: 0,
|
474
|
-
user:
|
475
|
-
target:
|
404
|
+
user: c.user._id,
|
405
|
+
target: o.value,
|
476
406
|
cta: !1
|
477
|
-
}, null, 8, ["user", "target"])) :
|
478
|
-
|
479
|
-
l(
|
480
|
-
field:
|
481
|
-
"onUpdate:field":
|
407
|
+
}, null, 8, ["user", "target"])) : b("", !0),
|
408
|
+
ze,
|
409
|
+
l(g, {
|
410
|
+
field: o.value.username,
|
411
|
+
"onUpdate:field": s[0] || (s[0] = (a) => o.value.username = a),
|
482
412
|
label: "@",
|
483
413
|
placeholder: "Not specified",
|
484
414
|
class: "mn-thin w-100 bg-grey pd-medium radius-small",
|
485
415
|
disabled: "true",
|
486
|
-
validation:
|
416
|
+
validation: f.organizationName
|
487
417
|
}, null, 8, ["field", "validation"]),
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
l(
|
492
|
-
photo:
|
493
|
-
"onUpdate:photo":
|
494
|
-
uploadPath: "users/" +
|
418
|
+
Ae,
|
419
|
+
Fe,
|
420
|
+
i("div", Te, [
|
421
|
+
l(K, {
|
422
|
+
photo: o.value.profile.photo,
|
423
|
+
"onUpdate:photo": s[1] || (s[1] = (a) => o.value.profile.photo = a),
|
424
|
+
uploadPath: "users/" + o.value._id + "/avatars",
|
495
425
|
class: "h-4r w-4r aspect-1x1 o-hidden bg-white mn-thin radius-extra"
|
496
426
|
}, null, 8, ["photo", "uploadPath"]),
|
497
|
-
|
427
|
+
je
|
498
428
|
]),
|
499
|
-
l(
|
500
|
-
field:
|
501
|
-
"onUpdate:field":
|
429
|
+
l(g, {
|
430
|
+
field: o.value.profile.name,
|
431
|
+
"onUpdate:field": s[2] || (s[2] = (a) => o.value.profile.name = a),
|
502
432
|
label: "Name",
|
503
433
|
placeholder: "Not specified",
|
504
434
|
class: "mn-thin bg-grey pd-medium radius-small",
|
505
|
-
validation:
|
435
|
+
validation: f.organizationName
|
506
436
|
}, null, 8, ["field", "validation"]),
|
507
|
-
l(
|
508
|
-
field:
|
509
|
-
"onUpdate:field":
|
437
|
+
l(g, {
|
438
|
+
field: o.value.profile.description,
|
439
|
+
"onUpdate:field": s[3] || (s[3] = (a) => o.value.profile.description = a),
|
510
440
|
label: "Description",
|
511
441
|
placeholder: "Not specified",
|
512
442
|
class: "mn-semi bg-grey pd-medium radius-small",
|
513
443
|
disabled: "true",
|
514
|
-
validation:
|
444
|
+
validation: f.organizationName
|
515
445
|
}, null, 8, ["field", "validation"]),
|
516
|
-
|
517
|
-
|
518
|
-
l(
|
519
|
-
field:
|
520
|
-
"onUpdate:field":
|
446
|
+
De,
|
447
|
+
Ge,
|
448
|
+
l(g, {
|
449
|
+
field: o.value.socials.instagram,
|
450
|
+
"onUpdate:field": s[4] || (s[4] = (a) => o.value.socials.instagram = a),
|
521
451
|
label: "Instagram",
|
522
452
|
placeholder: "",
|
523
453
|
class: "mn-thin bg-grey pd-medium radius-small"
|
524
454
|
}, null, 8, ["field"]),
|
525
|
-
l(
|
526
|
-
field:
|
527
|
-
"onUpdate:field":
|
455
|
+
l(g, {
|
456
|
+
field: o.value.socials.twitter,
|
457
|
+
"onUpdate:field": s[5] || (s[5] = (a) => o.value.socials.twitter = a),
|
528
458
|
label: "Twitter",
|
529
459
|
placeholder: "",
|
530
460
|
class: "mn-thin bg-grey pd-medium radius-small"
|
531
461
|
}, null, 8, ["field"]),
|
532
|
-
l(
|
533
|
-
field:
|
534
|
-
"onUpdate:field":
|
462
|
+
l(g, {
|
463
|
+
field: o.value.socials.facebook,
|
464
|
+
"onUpdate:field": s[6] || (s[6] = (a) => o.value.socials.facebook = a),
|
535
465
|
label: "Facebook",
|
536
466
|
placeholder: "",
|
537
467
|
class: "mn-thin bg-grey pd-medium radius-small"
|
538
468
|
}, null, 8, ["field"]),
|
539
|
-
l(
|
540
|
-
field:
|
541
|
-
"onUpdate:field":
|
469
|
+
l(g, {
|
470
|
+
field: o.value.socials.telegram,
|
471
|
+
"onUpdate:field": s[7] || (s[7] = (a) => o.value.socials.telegram = a),
|
542
472
|
label: "Telegram",
|
543
473
|
placeholder: "",
|
544
474
|
class: "mn-semi bg-grey pd-medium radius-small"
|
545
475
|
}, null, 8, ["field"]),
|
546
|
-
|
547
|
-
l(
|
548
|
-
field:
|
549
|
-
"onUpdate:field":
|
476
|
+
Ye,
|
477
|
+
l(g, {
|
478
|
+
field: o.value.phone,
|
479
|
+
"onUpdate:field": s[8] || (s[8] = (a) => o.value.phone = a),
|
550
480
|
label: "Phone",
|
551
481
|
placeholder: "Not specified",
|
552
482
|
class: "mn-thin bg-grey pd-medium mn-thin radius-small",
|
553
483
|
disabled: "true",
|
554
|
-
validation:
|
484
|
+
validation: f.organizationName
|
555
485
|
}, null, 8, ["field", "validation"]),
|
556
|
-
l(
|
557
|
-
field:
|
558
|
-
"onUpdate:field":
|
486
|
+
l(g, {
|
487
|
+
field: o.value.email,
|
488
|
+
"onUpdate:field": s[9] || (s[9] = (a) => o.value.email = a),
|
559
489
|
label: "Email",
|
560
490
|
placeholder: "Not specified",
|
561
491
|
class: "mn-semi bg-grey pd-medium radius-small",
|
562
492
|
disabled: !0,
|
563
|
-
validation:
|
493
|
+
validation: f.organizationName
|
564
494
|
}, null, 8, ["field", "validation"]),
|
565
495
|
l(Z, {
|
566
|
-
submit:
|
567
|
-
callback:
|
496
|
+
submit: h,
|
497
|
+
callback: d,
|
568
498
|
class: "mn-thin"
|
569
499
|
}, {
|
570
|
-
default:
|
571
|
-
|
500
|
+
default: _(() => [
|
501
|
+
H("Save")
|
572
502
|
]),
|
573
503
|
_: 1
|
574
504
|
}),
|
575
505
|
l(Z, {
|
576
|
-
submit:
|
577
|
-
callback:
|
578
|
-
|
506
|
+
submit: n,
|
507
|
+
callback: f.a = () => {
|
508
|
+
u(y).push({ name: "Sign In" });
|
579
509
|
},
|
580
510
|
class: "mn-thin bg-red t-white"
|
581
511
|
}, {
|
582
|
-
default:
|
583
|
-
|
512
|
+
default: _(() => [
|
513
|
+
H("Delete Account")
|
584
514
|
]),
|
585
515
|
_: 1
|
586
516
|
}, 8, ["callback"])
|
587
517
|
]));
|
588
518
|
}
|
589
|
-
},
|
519
|
+
}, Je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
590
520
|
__proto__: null,
|
591
|
-
default:
|
592
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
521
|
+
default: qe
|
522
|
+
}, Symbol.toStringTag, { value: "Module" })), ct = [{
|
593
523
|
path: "profile/:_id",
|
594
524
|
name: "User Profile",
|
595
525
|
meta: {
|
@@ -598,7 +528,7 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
598
528
|
ru: "Профиль"
|
599
529
|
}
|
600
530
|
},
|
601
|
-
component: () => Promise.resolve().then(() =>
|
531
|
+
component: () => Promise.resolve().then(() => Re)
|
602
532
|
}, {
|
603
533
|
path: "profile/:_id/blogposts",
|
604
534
|
name: "User Blogposts",
|
@@ -610,7 +540,7 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
610
540
|
},
|
611
541
|
component: () => import(
|
612
542
|
/* webpackChunkName: "profile" */
|
613
|
-
"./ProfileBlogposts-
|
543
|
+
"./ProfileBlogposts-5deee0c5.mjs"
|
614
544
|
)
|
615
545
|
}, {
|
616
546
|
path: "profile/:_id/comments",
|
@@ -623,7 +553,7 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
623
553
|
},
|
624
554
|
component: () => import(
|
625
555
|
/* webpackChunkName: "profile" */
|
626
|
-
"./ProfileComments-
|
556
|
+
"./ProfileComments-3cf3e265.mjs"
|
627
557
|
)
|
628
558
|
}, {
|
629
559
|
path: "profile/:_id/edit",
|
@@ -634,7 +564,7 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
634
564
|
ru: "Редактировать Профиль"
|
635
565
|
}
|
636
566
|
},
|
637
|
-
component: () => Promise.resolve().then(() =>
|
567
|
+
component: () => Promise.resolve().then(() => Je)
|
638
568
|
}, {
|
639
569
|
path: "profile/:_id/events",
|
640
570
|
name: "User Events",
|
@@ -646,7 +576,7 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
646
576
|
},
|
647
577
|
component: () => import(
|
648
578
|
/* webpackChunkName: "profile" */
|
649
|
-
"./ProfileEvents-
|
579
|
+
"./ProfileEvents-7502ed90.mjs"
|
650
580
|
)
|
651
581
|
}, {
|
652
582
|
path: "profile/:_id/likes",
|
@@ -659,7 +589,7 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
659
589
|
},
|
660
590
|
component: () => import(
|
661
591
|
/* webpackChunkName: "profile" */
|
662
|
-
"./ProfileLikes-
|
592
|
+
"./ProfileLikes-5b52e4ae.mjs"
|
663
593
|
)
|
664
594
|
}, {
|
665
595
|
path: "profile/:_id/organizations",
|
@@ -672,12 +602,12 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
672
602
|
},
|
673
603
|
component: () => import(
|
674
604
|
/* webpackChunkName: "profile" */
|
675
|
-
"./ProfileOrganizations-
|
605
|
+
"./ProfileOrganizations-c5151835.mjs"
|
676
606
|
)
|
677
607
|
}];
|
678
608
|
export {
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
609
|
+
Le as Profile,
|
610
|
+
qe as ProfileEdit,
|
611
|
+
ct as usersRoutes,
|
612
|
+
mt as usersStore
|
683
613
|
};
|