@ozdao/prometheus-framework 0.1.38 → 0.1.40
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/ButtonToggleMembership-738720bd.js +1 -0
- package/dist/ButtonToggleMembership-e337e704.mjs +90 -0
- package/dist/CardBlogpost-ae3b4d23.js +1 -0
- package/dist/CardBlogpost-c7adb0a7.mjs +246 -0
- package/dist/CardBlogpost-d6f49156.mjs +246 -0
- package/dist/CardBlogpost-f308ff64.js +1 -0
- package/dist/CardOrganization-22beb83d.js +1 -0
- package/dist/CardOrganization-ae384e54.mjs +234 -0
- package/dist/Chips-3a07f374.js +1 -0
- package/dist/Chips-a8681edd.mjs +213 -0
- package/dist/Chips-edf2b573.js +1 -0
- package/dist/Chips-f06ec38f.mjs +213 -0
- package/dist/Community-04b25965.mjs +130 -0
- package/dist/Community-2f6fee0f.js +1 -0
- package/dist/Community-72dbb933.js +1 -0
- package/dist/Community-b4d10da6.mjs +130 -0
- package/dist/Dashboard-73b50724.js +1 -0
- package/dist/Dashboard-bc81b5f6.mjs +151 -0
- package/dist/Dropdown-ef2df9a9.mjs +169 -0
- package/dist/Dropdown-f2564c92.js +1 -0
- package/dist/Events-0c6e3ef4.mjs +134 -0
- package/dist/Events-41d71b0e.js +1 -0
- package/dist/Events-4742f070.js +1 -0
- package/dist/Events-af7170ed.mjs +134 -0
- package/dist/Feed-04fe1f7a.mjs +361 -0
- package/dist/Feed-09b0790d.js +1 -0
- package/dist/Feed-12b12380.js +1 -0
- package/dist/Feed-23758089.mjs +124 -0
- package/dist/Feed-36e83be3.mjs +156 -0
- package/dist/Feed-5653cf8b.js +1 -0
- package/dist/Feed-585d5821.mjs +124 -0
- package/dist/Feed-5a359bb7.js +1 -0
- package/dist/Feed-6ca0541a.js +1 -0
- package/dist/Feed-807d265b.mjs +156 -0
- package/dist/Feed-90f74d6c.mjs +361 -0
- package/dist/Feed-a47977d3.js +1 -0
- package/dist/Image-268e2a1b.js +9 -0
- package/dist/Image-39955d9d.mjs +480 -0
- package/dist/Image-5423e8ce.mjs +480 -0
- package/dist/Image-c2d190d8.js +9 -0
- package/dist/LeftoverAdd-21311275.js +1 -0
- package/dist/LeftoverAdd-ccf4595f.mjs +228 -0
- package/dist/Members-7251dd52.mjs +109 -0
- package/dist/Members-9b013515.js +1 -0
- package/dist/Members-d35ab7e8.js +1 -0
- package/dist/Members-d64149f3.mjs +109 -0
- package/dist/Menu-93d34d9f.js +1 -0
- package/dist/Menu-eaf6b44c.mjs +13 -0
- package/dist/MenuItem-4a5881bd.mjs +85 -0
- package/dist/MenuItem-f35cad93.js +1 -0
- package/dist/Organizations-0fd5bc8b.mjs +72 -0
- package/dist/Organizations-a964d4b6.mjs +72 -0
- package/dist/Organizations-d360c360.js +1 -0
- package/dist/Organizations-ed6d36d6.js +1 -0
- package/dist/Popup-0d8e1392.mjs +96 -0
- package/dist/Popup-eb11fa82.js +1 -0
- package/dist/Product-299070ad.mjs +652 -0
- package/dist/Product-aacb05f3.js +7 -0
- package/dist/Product-e43dd2f1.js +7 -0
- package/dist/Product-e4e583f0.mjs +652 -0
- package/dist/ProductEdit-70bed802.mjs +296 -0
- package/dist/ProductEdit-e5a2e0f6.js +1 -0
- package/dist/ProductsBackoffice-3c182d6a.mjs +86 -0
- package/dist/ProductsBackoffice-b684913d.js +1 -0
- package/dist/ProfileBlogposts-6bf526fb.js +1 -0
- package/dist/ProfileBlogposts-8f6191d6.js +1 -0
- package/dist/ProfileBlogposts-aa839fcb.mjs +77 -0
- package/dist/ProfileBlogposts-d4b17535.mjs +77 -0
- package/dist/ProfileEvents-3eeb4320.mjs +68 -0
- package/dist/ProfileEvents-6b3fb52e.mjs +68 -0
- package/dist/ProfileEvents-893285bb.js +1 -0
- package/dist/ProfileEvents-90e09978.js +1 -0
- package/dist/ProfileOrganizations-738f444a.js +1 -0
- package/dist/ProfileOrganizations-c4fb03a1.mjs +72 -0
- package/dist/ProfileOrganizations-e838925f.js +1 -0
- package/dist/ProfileOrganizations-edf657ca.mjs +72 -0
- package/dist/Publics-a31d7fe7.js +1 -0
- package/dist/Publics-a8f31413.mjs +45 -0
- package/dist/Wallet-2043b611.mjs +24682 -0
- package/dist/Wallet-8fa7386a.js +55 -0
- package/dist/auth-076a83d0.mjs +625 -0
- package/dist/auth-df5a20c6.js +7 -0
- package/dist/auth.client.cjs +1 -1
- package/dist/auth.client.js +4 -4
- package/dist/auth.validation-80b133df.js +1 -0
- package/dist/auth.validation-fd9ae66f.mjs +24 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +12 -12
- package/dist/categories-4327a81c.js +1 -0
- package/dist/categories-52a561a4.mjs +122 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +205 -198
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +17 -20
- package/dist/landing.client.cjs +1 -1
- package/dist/landing.client.js +64 -40
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +5 -6
- package/dist/main.css +1 -1
- package/dist/modules/gallery/components/pages/Gallery.vue.d.ts +2 -0
- package/dist/modules/gallery/components/sections/GalleryWithCategories.vue.d.ts +2 -0
- package/dist/modules/globals/components/sections/Title.vue.d.ts +6 -0
- package/dist/organizations-966e1cd2.mjs +122 -0
- package/dist/organizations-d12c42b6.js +1 -0
- package/dist/organizations.client-63b476ff.mjs +2996 -0
- package/dist/organizations.client-696eacbb.js +3 -0
- package/dist/organizations.client-8f263e28.js +3 -0
- package/dist/organizations.client-9ffc023f.mjs +2996 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +49 -54
- package/dist/products-7e4253eb.js +1 -0
- package/dist/products-aabe5c02.mjs +108 -0
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +2 -2
- package/dist/states.validation-4594b33c.mjs +13 -0
- package/dist/states.validation-69003e66.js +1 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +286 -202
- package/package.json +1 -5
- package/src/components/LocationMarker/LocationMarker.vue +1 -1
- package/src/components/LocationSelection/LocationSelection.vue +1 -1
- package/src/components/Navigation/Navigation.vue +12 -1
- package/src/modules/auth/store/auth.js +7 -4
- package/src/modules/files/middlewares/server/md.js +1 -0
- package/src/modules/gallery/components/pages/Gallery.vue +21 -0
- package/src/modules/gallery/components/sections/GalleryWithCategories.vue +408 -0
- package/src/modules/gallery/gallery.client.js +11 -14
- package/src/modules/gallery/router/gallery.router.js +10 -0
- package/src/modules/globals/components/sections/Title.vue +22 -0
- package/src/modules/marketplace/router/marketplace.js +4 -3
- package/src/modules/organizations/components/sections/Feed.vue +2 -2
- package/src/modules/products/components/pages/ProductRecommmendation.vue +5 -3
- package/src/modules/products/components/sections/SectionProduct.vue +17 -5
- package/src/modules/products/controllers/products.controller.js +83 -0
- package/src/modules/products/routes/products.routes.js +5 -5
- package/src/modules/spots/components/layouts/Spots.vue +16 -11
- package/src/modules/spots/components/pages/Map.vue +9 -7
- package/src/modules/users/components/pages/Profile.vue +15 -5
- package/src/modules/users/router/users.js +10 -0
- package/src/modules/wallet/components/pages/Wallet.vue +104 -23
@@ -0,0 +1,228 @@
|
|
1
|
+
import { openBlock as c, createElementBlock as m, createElementVNode as o, createCommentVNode as k, Fragment as x, renderList as L, toDisplayString as P, createVNode as a, ref as _, computed as w, withCtx as U, unref as h, onMounted as V, createTextVNode as N } from "vue";
|
2
|
+
import "./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs";
|
3
|
+
import { S } from "./Select-11ddabf5.mjs";
|
4
|
+
import { S as A } from "./SelectMulti-58704d69.mjs";
|
5
|
+
import { useRouter as $, useRoute as C } from "vue-router";
|
6
|
+
import { F as v } from "./Field-e5ad88d3.mjs";
|
7
|
+
import { a as d, s as u } from "./leftovers-be37c7a5.mjs";
|
8
|
+
import { s as q, a as B } from "./products-aabe5c02.mjs";
|
9
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
10
|
+
import "./index-a661083c.mjs";
|
11
|
+
import "./globals-96ba60e4.mjs";
|
12
|
+
import "vue-i18n";
|
13
|
+
import "./auth-076a83d0.mjs";
|
14
|
+
const D = { class: "flex-column flex-wrap block" }, F = {
|
15
|
+
key: 0,
|
16
|
+
class: "w-100"
|
17
|
+
}, I = { class: "mn-r-regular w-100" }, Q = ["onClick"], R = {
|
18
|
+
__name: "LeftoverPositions",
|
19
|
+
props: {
|
20
|
+
order: Object
|
21
|
+
},
|
22
|
+
setup(p) {
|
23
|
+
const l = p;
|
24
|
+
$(), C();
|
25
|
+
function n(s) {
|
26
|
+
d.deleteItemFromLeftover(l.order.positions[s]);
|
27
|
+
}
|
28
|
+
return (s, f) => (c(), m("div", null, [
|
29
|
+
o("ul", D, [
|
30
|
+
p.order.positions.length === 0 ? (c(), m("span", F, " No positions added yet ")) : k("", !0),
|
31
|
+
(c(!0), m(x, null, L(p.order.positions, (r, y) => (c(), m("li", {
|
32
|
+
key: r._id,
|
33
|
+
class: "w-100 flex-center flex-nowrap flex"
|
34
|
+
}, [
|
35
|
+
o("span", I, P(r.name), 1),
|
36
|
+
a(v, {
|
37
|
+
field: r.price,
|
38
|
+
"onUpdate:field": (i) => r.price = i,
|
39
|
+
type: "number",
|
40
|
+
label: "Price",
|
41
|
+
symbol: s.returnCurrency(),
|
42
|
+
class: "bg-grey pd-medium radius-small"
|
43
|
+
}, null, 8, ["field", "onUpdate:field", "symbol"]),
|
44
|
+
a(v, {
|
45
|
+
field: r.quantity,
|
46
|
+
"onUpdate:field": (i) => r.quantity = i,
|
47
|
+
type: "number",
|
48
|
+
label: "Quantity",
|
49
|
+
class: "bg-grey pd-medium radius-small",
|
50
|
+
symbol: r.type
|
51
|
+
}, null, 8, ["field", "onUpdate:field", "symbol"]),
|
52
|
+
o("a", {
|
53
|
+
class: "button",
|
54
|
+
onClick: (i) => n(y)
|
55
|
+
}, " Delete ", 8, Q)
|
56
|
+
]))), 128))
|
57
|
+
])
|
58
|
+
]));
|
59
|
+
}
|
60
|
+
}, T = ["disabled"], j = {
|
61
|
+
__name: "CardPosition",
|
62
|
+
props: {
|
63
|
+
product: Object,
|
64
|
+
products: Array,
|
65
|
+
quantity: Number,
|
66
|
+
type: String,
|
67
|
+
price: Number
|
68
|
+
},
|
69
|
+
emits: [
|
70
|
+
"add",
|
71
|
+
"remove"
|
72
|
+
],
|
73
|
+
setup(p, { emit: l }) {
|
74
|
+
const n = _(null), s = _(null), f = _("pcs"), r = _(null), y = w(
|
75
|
+
() => n.value && s.value > 0 && r.value > 0
|
76
|
+
);
|
77
|
+
function i() {
|
78
|
+
l("add", {
|
79
|
+
product: n.value,
|
80
|
+
price: r.value,
|
81
|
+
quantity: s.value,
|
82
|
+
type: f.value
|
83
|
+
});
|
84
|
+
}
|
85
|
+
return (b, e) => (c(), m(x, null, [
|
86
|
+
a(A, {
|
87
|
+
modelValue: n.value,
|
88
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => n.value = t),
|
89
|
+
options: p.products,
|
90
|
+
label: "name",
|
91
|
+
multiple: !1,
|
92
|
+
taggable: !1,
|
93
|
+
placeholder: "Select a product",
|
94
|
+
class: "bg-grey pd-medium radius-small"
|
95
|
+
}, null, 8, ["modelValue", "options"]),
|
96
|
+
a(v, {
|
97
|
+
field: r.value,
|
98
|
+
"onUpdate:field": e[1] || (e[1] = (t) => r.value = t),
|
99
|
+
type: "number",
|
100
|
+
label: "Price",
|
101
|
+
symbol: b.returnCurrency(),
|
102
|
+
class: "bg-grey pd-medium radius-small"
|
103
|
+
}, null, 8, ["field", "symbol"]),
|
104
|
+
a(v, {
|
105
|
+
field: s.value,
|
106
|
+
"onUpdate:field": e[3] || (e[3] = (t) => s.value = t),
|
107
|
+
type: "number",
|
108
|
+
label: "Quantity",
|
109
|
+
class: "bg-grey pd-medium radius-small"
|
110
|
+
}, {
|
111
|
+
default: U(() => [
|
112
|
+
a(S, {
|
113
|
+
select: f.value,
|
114
|
+
"onUpdate:select": e[2] || (e[2] = (t) => f.value = t),
|
115
|
+
options: [
|
116
|
+
"pcs",
|
117
|
+
"g",
|
118
|
+
"ml"
|
119
|
+
],
|
120
|
+
class: "bg-white pd-thin radius-thin"
|
121
|
+
}, null, 8, ["select"])
|
122
|
+
]),
|
123
|
+
_: 1
|
124
|
+
}, 8, ["field"]),
|
125
|
+
o("button", {
|
126
|
+
disabled: !h(y),
|
127
|
+
onClick: i,
|
128
|
+
class: "bg-main button"
|
129
|
+
}, " Add ", 8, T)
|
130
|
+
], 64));
|
131
|
+
}
|
132
|
+
};
|
133
|
+
const O = /* @__PURE__ */ o("header", { class: "mn-medium flex-v-center flex-nowrap flex" }, [
|
134
|
+
/* @__PURE__ */ o("h2", { class: "mn-r-medium" }, "Inventory")
|
135
|
+
], -1), E = /* @__PURE__ */ o("h5", { class: "mn-small" }, "Select Type", -1), M = /* @__PURE__ */ o("h5", { class: "mn-small" }, "Add Position", -1), z = { class: "mn-semi gap-thin flex-nowrap flex" }, G = { class: "gap-thin flex-v-center flex-nojustify flex" }, H = { class: "mn-r-auto" }, ae = {
|
136
|
+
__name: "LeftoverAdd",
|
137
|
+
setup(p) {
|
138
|
+
const l = C(), n = $(), s = _(q.all), f = w(() => u.current.positions.reduce((e, t) => e + t.price * (t.quantity || 1), 0));
|
139
|
+
V(async () => {
|
140
|
+
if (l.params._id)
|
141
|
+
try {
|
142
|
+
await d.fetch(l.params._id);
|
143
|
+
} catch {
|
144
|
+
console.error("error");
|
145
|
+
}
|
146
|
+
else
|
147
|
+
u.current = { type: "", order: "", positions: [] };
|
148
|
+
try {
|
149
|
+
const e = await B.read({
|
150
|
+
organization: "65141c476cf9860013b49f6d"
|
151
|
+
});
|
152
|
+
s.value = e;
|
153
|
+
} catch {
|
154
|
+
console.error("error");
|
155
|
+
}
|
156
|
+
});
|
157
|
+
function r() {
|
158
|
+
l.params._id ? d.fetch(l.params._id) : u.current = { type: "", order: "", positions: [] };
|
159
|
+
}
|
160
|
+
function y(e) {
|
161
|
+
d.addProductToLeftover(e);
|
162
|
+
}
|
163
|
+
function i() {
|
164
|
+
l.params._id ? d.update(u.current).then(
|
165
|
+
() => n.push({ name: "Backoffice Leftovers" }),
|
166
|
+
(e) => console.error("error")
|
167
|
+
) : d.create(u.current).then(
|
168
|
+
() => n.push({ name: "Backoffice Leftovers" }),
|
169
|
+
(e) => console.error("error")
|
170
|
+
);
|
171
|
+
}
|
172
|
+
function b() {
|
173
|
+
d.delete(l.params._id).then(
|
174
|
+
() => n.push({ name: "Backoffice Leftovers" }),
|
175
|
+
(e) => console.error("error")
|
176
|
+
);
|
177
|
+
}
|
178
|
+
return (e, t) => (c(), m(x, null, [
|
179
|
+
O,
|
180
|
+
E,
|
181
|
+
a(S, {
|
182
|
+
select: u.current.type,
|
183
|
+
"onUpdate:select": t[0] || (t[0] = (g) => u.current.type = g),
|
184
|
+
options: [
|
185
|
+
"stock-in",
|
186
|
+
"stock-out",
|
187
|
+
"write-off"
|
188
|
+
],
|
189
|
+
placeholder: "Select type",
|
190
|
+
class: "mn-semi bg-grey pd-medium radius-small"
|
191
|
+
}, null, 8, ["select"]),
|
192
|
+
M,
|
193
|
+
o("div", z, [
|
194
|
+
a(j, {
|
195
|
+
onAdd: y,
|
196
|
+
products: s.value
|
197
|
+
}, null, 8, ["products"])
|
198
|
+
]),
|
199
|
+
o("h5", { class: "mn-small" }, [
|
200
|
+
N(" Invetory Sheet "),
|
201
|
+
o("a", {
|
202
|
+
class: "mn-l-thin t-main",
|
203
|
+
onClick: r
|
204
|
+
}, " Reset ")
|
205
|
+
]),
|
206
|
+
a(R, {
|
207
|
+
order: u.current,
|
208
|
+
products: s.value,
|
209
|
+
class: "mn-semi"
|
210
|
+
}, null, 8, ["order", "products"]),
|
211
|
+
o("section", G, [
|
212
|
+
o("h3", H, " In total: " + P(e.formatPrice(h(f))), 1),
|
213
|
+
o("a", {
|
214
|
+
onClick: t[1] || (t[1] = (g) => i()),
|
215
|
+
class: "bg-main button"
|
216
|
+
}, " Save "),
|
217
|
+
h(l).params._id ? (c(), m("a", {
|
218
|
+
key: 0,
|
219
|
+
onClick: t[2] || (t[2] = (g) => b()),
|
220
|
+
class: "t-white bg-red button"
|
221
|
+
}, " Delete ")) : k("", !0)
|
222
|
+
])
|
223
|
+
], 64));
|
224
|
+
}
|
225
|
+
};
|
226
|
+
export {
|
227
|
+
ae as default
|
228
|
+
};
|
@@ -0,0 +1,109 @@
|
|
1
|
+
import { ref as l, onMounted as _, resolveComponent as v, openBlock as f, createBlock as b, Transition as h, withCtx as n, createElementVNode as i, createVNode as r, unref as g } from "vue";
|
2
|
+
import { useRoute as w } from "vue-router";
|
3
|
+
import { a as m, _ as $, b as I, s as z } from "./organizations.client-9ffc023f.mjs";
|
4
|
+
import { _ as y } from "./MenuItem-4a5881bd.mjs";
|
5
|
+
import { s as E } from "./auth-076a83d0.mjs";
|
6
|
+
import { a as s } from "./memberships-12210953.mjs";
|
7
|
+
import { a as M, o as k } from "./organizations-966e1cd2.mjs";
|
8
|
+
import "vue-i18n";
|
9
|
+
import "./globals-96ba60e4.mjs";
|
10
|
+
import "./Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
11
|
+
import "./Tab-054b61f7.mjs";
|
12
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
13
|
+
import "./Feed-04fe1f7a.mjs";
|
14
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
15
|
+
import "./EmptyState-e404b05d.mjs";
|
16
|
+
import "./Chips-f06ec38f.mjs";
|
17
|
+
import "./Dropdown-ef2df9a9.mjs";
|
18
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
19
|
+
import "./Popup-0d8e1392.mjs";
|
20
|
+
import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
21
|
+
import "./Button-9e1a9284.mjs";
|
22
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
23
|
+
import "./Select-11ddabf5.mjs";
|
24
|
+
import "./reports-79cd9459.mjs";
|
25
|
+
import "./index-a661083c.mjs";
|
26
|
+
import "./click-outside-6101836c.mjs";
|
27
|
+
import "./IconEdit-9edfd74d.mjs";
|
28
|
+
import "./SkeletonEvent-8690422d.mjs";
|
29
|
+
import "./Feed-23758089.mjs";
|
30
|
+
import "./Loader-cd422786.mjs";
|
31
|
+
import "./CardBlogpost-c7adb0a7.mjs";
|
32
|
+
import "./CardOrganization-ae384e54.mjs";
|
33
|
+
import "./ButtonToggleMembership-e337e704.mjs";
|
34
|
+
import "./Socials-8193477c.mjs";
|
35
|
+
import "./Checkbox-5dbe7b23.mjs";
|
36
|
+
import "./categories-52a561a4.mjs";
|
37
|
+
import "./Feed-d114330c.mjs";
|
38
|
+
import "./CardProduct-fca53299.mjs";
|
39
|
+
import "./vuex.esm-bundler-57d8b6ba.mjs";
|
40
|
+
import "./products-aabe5c02.mjs";
|
41
|
+
import "./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs";
|
42
|
+
import "./inputs.validation-db65277a.mjs";
|
43
|
+
import "./BlockTags-ee310572.mjs";
|
44
|
+
import "./Field-e5ad88d3.mjs";
|
45
|
+
import "./SelectMulti-58704d69.mjs";
|
46
|
+
import "./UploadImage-3c627d89.mjs";
|
47
|
+
import "./Organizations-a964d4b6.mjs";
|
48
|
+
import "./Feed-36e83be3.mjs";
|
49
|
+
import "./Publics-a8f31413.mjs";
|
50
|
+
import "./auth.validation-fd9ae66f.mjs";
|
51
|
+
const C = /* @__PURE__ */ i("section", { class: "mn-medium radius-medium pd-semi bg-white" }, [
|
52
|
+
/* @__PURE__ */ i("h2", { class: "mn-regular" }, "Участники"),
|
53
|
+
/* @__PURE__ */ i("p", { class: "t-transp p-big" }, "Добавляйте новых участников организации и настраивайте права доступа.")
|
54
|
+
], -1), R = /* @__PURE__ */ i("span", null, "Departments", -1), Ct = {
|
55
|
+
__name: "Members",
|
56
|
+
setup(B) {
|
57
|
+
const e = w(), o = l(null);
|
58
|
+
_(async () => {
|
59
|
+
o.value = (await M.read({ _id: e.params._id, user: E.user._id }))[0], await s.read(e.params._id), await m.read(o.value._id);
|
60
|
+
});
|
61
|
+
async function p(t) {
|
62
|
+
await m.create(o.value._id, t);
|
63
|
+
}
|
64
|
+
async function c(t) {
|
65
|
+
await s.delete(t._id);
|
66
|
+
}
|
67
|
+
async function d(t) {
|
68
|
+
await m.delete(t._id);
|
69
|
+
}
|
70
|
+
return (t, a) => {
|
71
|
+
const u = v("IconEvents");
|
72
|
+
return f(), b(h, { name: "slide-fade" }, {
|
73
|
+
default: n(() => [
|
74
|
+
i("div", null, [
|
75
|
+
C,
|
76
|
+
r(y, {
|
77
|
+
onClick: a[0] || (a[0] = (D) => t.router.push({ name: "User Events", params: { _id: g(e).params._id } })),
|
78
|
+
class: "cursor-pointer"
|
79
|
+
}, {
|
80
|
+
default: n(() => [
|
81
|
+
r(u, {
|
82
|
+
class: "i-semi",
|
83
|
+
icon: !0
|
84
|
+
}),
|
85
|
+
R
|
86
|
+
]),
|
87
|
+
_: 1
|
88
|
+
}),
|
89
|
+
r($, {
|
90
|
+
organization: o.value,
|
91
|
+
onSendInvite: p
|
92
|
+
}, null, 8, ["organization"]),
|
93
|
+
r(I, {
|
94
|
+
organization: k,
|
95
|
+
memberships: t.memberships,
|
96
|
+
invites: z.invites,
|
97
|
+
onRemoveInvite: d,
|
98
|
+
onRemoveMember: c
|
99
|
+
}, null, 8, ["memberships", "invites"])
|
100
|
+
])
|
101
|
+
]),
|
102
|
+
_: 1
|
103
|
+
});
|
104
|
+
};
|
105
|
+
}
|
106
|
+
};
|
107
|
+
export {
|
108
|
+
Ct as default
|
109
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("vue-router"),i=require("./organizations.client-696eacbb.js"),l=require("./MenuItem-f35cad93.js"),_=require("./auth-06d35b82.js"),u=require("./memberships-393765d8.js"),s=require("./organizations-4d18a2e2.js");require("vue-i18n");require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Tab-2c1e4224.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Feed-a47977d3.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-d65bab5b.js");require("./Chips-3a07f374.js");require("./Dropdown-f2564c92.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Popup-eb11fa82.js");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Select-3ca5ab39.js");require("./reports-270f69df.js");require("./index-b41aac19.js");require("./click-outside-0b0727d1.js");require("./IconEdit-c0469b45.js");require("./SkeletonEvent-eb284de8.js");require("./Feed-09b0790d.js");require("./Loader-21f016da.js");require("./CardBlogpost-ae3b4d23.js");require("./CardOrganization-d93c9bdb.js");require("./ButtonToggleMembership-15f149cb.js");require("./Socials-43293869.js");require("./Checkbox-76f09248.js");require("./categories-82b28618.js");require("./Feed-98b47c6f.js");require("./CardProduct-92affca1.js");require("./vuex.esm-bundler-685cf29f.js");require("./products-7960bbd4.js");require("./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js");require("./inputs.validation-d7cef32b.js");require("./BlockTags-8cddaef7.js");require("./Field-e2a43424.js");require("./SelectMulti-c25765cf.js");require("./UploadImage-0f488170.js");require("./Organizations-d360c360.js");require("./Feed-12b12380.js");require("./Publics-0762210a.js");require("./auth.validation-0ce9e326.js");const p=e.createElementVNode("section",{class:"mn-medium radius-medium pd-semi bg-white"},[e.createElementVNode("h2",{class:"mn-regular"},"Участники"),e.createElementVNode("p",{class:"t-transp p-big"},"Добавляйте новых участников организации и настраивайте права доступа.")],-1),v=e.createElementVNode("span",null,"Departments",-1),f={__name:"Members",setup(g){const n=d.useRoute(),t=e.ref(null);e.onMounted(async()=>{t.value=(await s.actions.read({_id:n.params._id,user:_.state.user._id}))[0],await u.actions.read(n.params._id),await i.actions.read(t.value._id)});async function o(r){await i.actions.create(t.value._id,r)}async function c(r){await u.actions.delete(r._id)}async function q(r){await i.actions.delete(r._id)}return(r,a)=>{const m=e.resolveComponent("IconEvents");return e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[p,e.createVNode(l._sfc_main,{onClick:a[0]||(a[0]=h=>r.router.push({name:"User Events",params:{_id:e.unref(n).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(m,{class:"i-semi",icon:!0}),v]),_:1}),e.createVNode(i._sfc_main,{organization:t.value,onSendInvite:o},null,8,["organization"]),e.createVNode(i._sfc_main$1,{organization:s.organization,memberships:r.memberships,invites:i.state.invites,onRemoveInvite:q,onRemoveMember:c},null,8,["memberships","invites"])])]),_:1})}}};exports.default=f;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("vue-router"),i=require("./organizations.client-8f263e28.js"),l=require("./MenuItem-f35cad93.js"),_=require("./auth-df5a20c6.js"),u=require("./memberships-393765d8.js"),s=require("./organizations-d12c42b6.js");require("vue-i18n");require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Tab-2c1e4224.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Feed-6ca0541a.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-d65bab5b.js");require("./Chips-edf2b573.js");require("./Dropdown-f2564c92.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Popup-eb11fa82.js");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Select-3ca5ab39.js");require("./reports-270f69df.js");require("./index-b41aac19.js");require("./click-outside-0b0727d1.js");require("./IconEdit-c0469b45.js");require("./SkeletonEvent-eb284de8.js");require("./Feed-5a359bb7.js");require("./Loader-21f016da.js");require("./CardBlogpost-f308ff64.js");require("./CardOrganization-22beb83d.js");require("./ButtonToggleMembership-738720bd.js");require("./Socials-43293869.js");require("./Checkbox-76f09248.js");require("./categories-4327a81c.js");require("./Feed-98b47c6f.js");require("./CardProduct-92affca1.js");require("./vuex.esm-bundler-685cf29f.js");require("./products-7e4253eb.js");require("./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js");require("./inputs.validation-d7cef32b.js");require("./BlockTags-8cddaef7.js");require("./Field-e2a43424.js");require("./SelectMulti-c25765cf.js");require("./UploadImage-0f488170.js");require("./Organizations-ed6d36d6.js");require("./Feed-5653cf8b.js");require("./Publics-a31d7fe7.js");require("./auth.validation-80b133df.js");const p=e.createElementVNode("section",{class:"mn-medium radius-medium pd-semi bg-white"},[e.createElementVNode("h2",{class:"mn-regular"},"Участники"),e.createElementVNode("p",{class:"t-transp p-big"},"Добавляйте новых участников организации и настраивайте права доступа.")],-1),v=e.createElementVNode("span",null,"Departments",-1),f={__name:"Members",setup(g){const n=d.useRoute(),t=e.ref(null);e.onMounted(async()=>{t.value=(await s.actions.read({_id:n.params._id,user:_.state.user._id}))[0],await u.actions.read(n.params._id),await i.actions.read(t.value._id)});async function o(r){await i.actions.create(t.value._id,r)}async function c(r){await u.actions.delete(r._id)}async function q(r){await i.actions.delete(r._id)}return(r,a)=>{const m=e.resolveComponent("IconEvents");return e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[p,e.createVNode(l._sfc_main,{onClick:a[0]||(a[0]=h=>r.router.push({name:"User Events",params:{_id:e.unref(n).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(m,{class:"i-semi",icon:!0}),v]),_:1}),e.createVNode(i._sfc_main,{organization:t.value,onSendInvite:o},null,8,["organization"]),e.createVNode(i._sfc_main$1,{organization:s.organization,memberships:r.memberships,invites:i.state.invites,onRemoveInvite:q,onRemoveMember:c},null,8,["memberships","invites"])])]),_:1})}}};exports.default=f;
|
@@ -0,0 +1,109 @@
|
|
1
|
+
import { ref as l, onMounted as _, resolveComponent as v, openBlock as f, createBlock as b, Transition as h, withCtx as n, createElementVNode as i, createVNode as r, unref as g } from "vue";
|
2
|
+
import { useRoute as w } from "vue-router";
|
3
|
+
import { a as m, _ as $, b as I, s as z } from "./organizations.client-63b476ff.mjs";
|
4
|
+
import { _ as y } from "./MenuItem-4a5881bd.mjs";
|
5
|
+
import { s as E } from "./auth-ec618cb3.mjs";
|
6
|
+
import { a as s } from "./memberships-12210953.mjs";
|
7
|
+
import { a as M, o as k } from "./organizations-6ed907e3.mjs";
|
8
|
+
import "vue-i18n";
|
9
|
+
import "./globals-96ba60e4.mjs";
|
10
|
+
import "./Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
11
|
+
import "./Tab-054b61f7.mjs";
|
12
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
13
|
+
import "./Feed-90f74d6c.mjs";
|
14
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
15
|
+
import "./EmptyState-e404b05d.mjs";
|
16
|
+
import "./Chips-a8681edd.mjs";
|
17
|
+
import "./Dropdown-ef2df9a9.mjs";
|
18
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
19
|
+
import "./Popup-0d8e1392.mjs";
|
20
|
+
import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
21
|
+
import "./Button-9e1a9284.mjs";
|
22
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
23
|
+
import "./Select-11ddabf5.mjs";
|
24
|
+
import "./reports-79cd9459.mjs";
|
25
|
+
import "./index-a661083c.mjs";
|
26
|
+
import "./click-outside-6101836c.mjs";
|
27
|
+
import "./IconEdit-9edfd74d.mjs";
|
28
|
+
import "./SkeletonEvent-8690422d.mjs";
|
29
|
+
import "./Feed-585d5821.mjs";
|
30
|
+
import "./Loader-cd422786.mjs";
|
31
|
+
import "./CardBlogpost-d6f49156.mjs";
|
32
|
+
import "./CardOrganization-e920be73.mjs";
|
33
|
+
import "./ButtonToggleMembership-3bb9139e.mjs";
|
34
|
+
import "./Socials-8193477c.mjs";
|
35
|
+
import "./Checkbox-5dbe7b23.mjs";
|
36
|
+
import "./categories-df3240a7.mjs";
|
37
|
+
import "./Feed-d114330c.mjs";
|
38
|
+
import "./CardProduct-fca53299.mjs";
|
39
|
+
import "./vuex.esm-bundler-57d8b6ba.mjs";
|
40
|
+
import "./products-bf5783aa.mjs";
|
41
|
+
import "./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs";
|
42
|
+
import "./inputs.validation-db65277a.mjs";
|
43
|
+
import "./BlockTags-ee310572.mjs";
|
44
|
+
import "./Field-e5ad88d3.mjs";
|
45
|
+
import "./SelectMulti-58704d69.mjs";
|
46
|
+
import "./UploadImage-3c627d89.mjs";
|
47
|
+
import "./Organizations-0fd5bc8b.mjs";
|
48
|
+
import "./Feed-807d265b.mjs";
|
49
|
+
import "./Publics-660e851c.mjs";
|
50
|
+
import "./auth.validation-ba3606bf.mjs";
|
51
|
+
const C = /* @__PURE__ */ i("section", { class: "mn-medium radius-medium pd-semi bg-white" }, [
|
52
|
+
/* @__PURE__ */ i("h2", { class: "mn-regular" }, "Участники"),
|
53
|
+
/* @__PURE__ */ i("p", { class: "t-transp p-big" }, "Добавляйте новых участников организации и настраивайте права доступа.")
|
54
|
+
], -1), R = /* @__PURE__ */ i("span", null, "Departments", -1), Ct = {
|
55
|
+
__name: "Members",
|
56
|
+
setup(B) {
|
57
|
+
const e = w(), o = l(null);
|
58
|
+
_(async () => {
|
59
|
+
o.value = (await M.read({ _id: e.params._id, user: E.user._id }))[0], await s.read(e.params._id), await m.read(o.value._id);
|
60
|
+
});
|
61
|
+
async function p(t) {
|
62
|
+
await m.create(o.value._id, t);
|
63
|
+
}
|
64
|
+
async function c(t) {
|
65
|
+
await s.delete(t._id);
|
66
|
+
}
|
67
|
+
async function d(t) {
|
68
|
+
await m.delete(t._id);
|
69
|
+
}
|
70
|
+
return (t, a) => {
|
71
|
+
const u = v("IconEvents");
|
72
|
+
return f(), b(h, { name: "slide-fade" }, {
|
73
|
+
default: n(() => [
|
74
|
+
i("div", null, [
|
75
|
+
C,
|
76
|
+
r(y, {
|
77
|
+
onClick: a[0] || (a[0] = (D) => t.router.push({ name: "User Events", params: { _id: g(e).params._id } })),
|
78
|
+
class: "cursor-pointer"
|
79
|
+
}, {
|
80
|
+
default: n(() => [
|
81
|
+
r(u, {
|
82
|
+
class: "i-semi",
|
83
|
+
icon: !0
|
84
|
+
}),
|
85
|
+
R
|
86
|
+
]),
|
87
|
+
_: 1
|
88
|
+
}),
|
89
|
+
r($, {
|
90
|
+
organization: o.value,
|
91
|
+
onSendInvite: p
|
92
|
+
}, null, 8, ["organization"]),
|
93
|
+
r(I, {
|
94
|
+
organization: k,
|
95
|
+
memberships: t.memberships,
|
96
|
+
invites: z.invites,
|
97
|
+
onRemoveInvite: d,
|
98
|
+
onRemoveMember: c
|
99
|
+
}, null, 8, ["memberships", "invites"])
|
100
|
+
])
|
101
|
+
]),
|
102
|
+
_: 1
|
103
|
+
});
|
104
|
+
};
|
105
|
+
}
|
106
|
+
};
|
107
|
+
export {
|
108
|
+
Ct as default
|
109
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue");require("./MenuItem-f35cad93.js");const r={class:"mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium"},n={__name:"Menu",setup(s){return(t,i)=>(e.openBlock(),e.createElementBlock("section",r,[e.renderSlot(t.$slots,"default")]))}};exports._sfc_main=n;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { openBlock as t, createElementBlock as o, renderSlot as n } from "vue";
|
2
|
+
import "./MenuItem-4a5881bd.mjs";
|
3
|
+
const r = { class: "mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium" }, p = {
|
4
|
+
__name: "Menu",
|
5
|
+
setup(s) {
|
6
|
+
return (e, i) => (t(), o("section", r, [
|
7
|
+
n(e.$slots, "default")
|
8
|
+
]));
|
9
|
+
}
|
10
|
+
};
|
11
|
+
export {
|
12
|
+
p as _
|
13
|
+
};
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import { openBlock as o, createElementBlock as c, createElementVNode as a, defineComponent as m, h as t } from "vue";
|
2
|
+
import { _ as h } from "./_plugin-vue_export-helper-dad06003.mjs";
|
3
|
+
const p = {
|
4
|
+
props: {
|
5
|
+
theme: {
|
6
|
+
type: String,
|
7
|
+
default: "black"
|
8
|
+
}
|
9
|
+
}
|
10
|
+
}, f = {
|
11
|
+
width: "80",
|
12
|
+
height: "80",
|
13
|
+
viewBox: "0 0 80 80",
|
14
|
+
fill: "none",
|
15
|
+
xmlns: "http://www.w3.org/2000/svg"
|
16
|
+
}, u = ["fill"];
|
17
|
+
function _(r, l, i, n, s, e) {
|
18
|
+
return o(), c("svg", f, [
|
19
|
+
a("path", {
|
20
|
+
fill: i.theme,
|
21
|
+
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"
|
22
|
+
}, null, 8, u)
|
23
|
+
]);
|
24
|
+
}
|
25
|
+
const d = /* @__PURE__ */ h(p, [["render", _]]), b = m({
|
26
|
+
props: {
|
27
|
+
theme: {
|
28
|
+
type: String,
|
29
|
+
default: "black"
|
30
|
+
// Значение по умолчанию
|
31
|
+
}
|
32
|
+
},
|
33
|
+
setup(r, { slots: l }) {
|
34
|
+
return () => {
|
35
|
+
const i = l.default ? l.default() : [], n = [], s = [];
|
36
|
+
return i.forEach((e) => {
|
37
|
+
e.toString(), e.props && e.props.icon ? n.push(e) : s.push(e);
|
38
|
+
}), t(
|
39
|
+
"div",
|
40
|
+
{
|
41
|
+
class: [
|
42
|
+
"w-100",
|
43
|
+
"t-left",
|
44
|
+
"flex-nowrap",
|
45
|
+
"flex-v-center",
|
46
|
+
"flex",
|
47
|
+
// here we need add logic
|
48
|
+
{ "br-b br-black-transp-10 br-solid": !0 }
|
49
|
+
]
|
50
|
+
},
|
51
|
+
[
|
52
|
+
// Conditionally include the div for iconSlot
|
53
|
+
...n.length ? [
|
54
|
+
t(
|
55
|
+
"div",
|
56
|
+
{
|
57
|
+
class: ["mn-thin", "mn-t-thin", "flex-center", "flex", "mn-r-small", "flex-child", "flex-child-shrink-0", "i-big", "bg-main", "radius-thin"]
|
58
|
+
},
|
59
|
+
n
|
60
|
+
)
|
61
|
+
] : [],
|
62
|
+
t(
|
63
|
+
"div",
|
64
|
+
{
|
65
|
+
class: ["w-100", "mn-thin", "mn-t-thin", "mn-r-small", "i-big", "flex-v-center", "flex"]
|
66
|
+
},
|
67
|
+
[
|
68
|
+
t(
|
69
|
+
"span",
|
70
|
+
{
|
71
|
+
class: ["p-big", "t-medium", "mn-r-auto"]
|
72
|
+
},
|
73
|
+
s
|
74
|
+
)
|
75
|
+
]
|
76
|
+
),
|
77
|
+
t(d, { class: "i-medium mn-r-medium", type: "chevron", theme: r.theme })
|
78
|
+
]
|
79
|
+
);
|
80
|
+
};
|
81
|
+
}
|
82
|
+
});
|
83
|
+
export {
|
84
|
+
b as _
|
85
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),c=require("./_plugin-vue_export-helper-f246444f.js");const o={props:{theme:{type:String,default:"black"}}},h={width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a=["fill"];function m(r,l,i,n,s,t){return e.openBlock(),e.createElementBlock("svg",h,[e.createElementVNode("path",{fill:i.theme,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"},null,8,a)])}const p=c._export_sfc(o,[["render",m]]),u=e.defineComponent({props:{theme:{type:String,default:"black"}},setup(r,{slots:l}){return()=>{const i=l.default?l.default():[],n=[],s=[];return i.forEach(t=>{t.toString(),t.props&&t.props.icon?n.push(t):s.push(t)}),e.h("div",{class:["w-100","t-left","flex-nowrap","flex-v-center","flex",{"br-b br-black-transp-10 br-solid":!0}]},[...n.length?[e.h("div",{class:["mn-thin","mn-t-thin","flex-center","flex","mn-r-small","flex-child","flex-child-shrink-0","i-big","bg-main","radius-thin"]},n)]:[],e.h("div",{class:["w-100","mn-thin","mn-t-thin","mn-r-small","i-big","flex-v-center","flex"]},[e.h("span",{class:["p-big","t-medium","mn-r-auto"]},s)]),e.h(p,{class:"i-medium mn-r-medium",type:"chevron",theme:r.theme})])}}});exports._sfc_main=u;
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import { ref as h, watch as w, openBlock as o, createElementBlock as l, createElementVNode as b, unref as s, createCommentVNode as i, createVNode as m, Transition as d, withCtx as p, createBlock as c } from "vue";
|
2
|
+
import { useRoute as y, useRouter as g } from "vue-router";
|
3
|
+
import { _ as k } from "./Tab-054b61f7.mjs";
|
4
|
+
import { _ } from "./Feed-807d265b.mjs";
|
5
|
+
import { s as u } from "./auth-ec618cb3.mjs";
|
6
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
7
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
8
|
+
import "./EmptyState-e404b05d.mjs";
|
9
|
+
import "./CardOrganization-e920be73.mjs";
|
10
|
+
import "./ButtonToggleMembership-3bb9139e.mjs";
|
11
|
+
import "./Button-9e1a9284.mjs";
|
12
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
13
|
+
import "./memberships-12210953.mjs";
|
14
|
+
import "./index-a661083c.mjs";
|
15
|
+
import "./globals-96ba60e4.mjs";
|
16
|
+
import "vue-i18n";
|
17
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
18
|
+
import "./organizations-6ed907e3.mjs";
|
19
|
+
const q = { class: "pd-thin" }, x = { class: "mn-medium flex-v-center flex-nowrap flex" }, C = /* @__PURE__ */ b("h2", { class: "mn-r-medium" }, "Groups", -1), K = {
|
20
|
+
__name: "Organizations",
|
21
|
+
setup($) {
|
22
|
+
const e = y(), f = g();
|
23
|
+
let v = e.query.tab ? e.query.tab : "member";
|
24
|
+
const r = h(v);
|
25
|
+
return e.query.tab = r.value, w(r, (a) => {
|
26
|
+
f.replace({ query: { ...e.query, tab: a } });
|
27
|
+
}), (a, t) => (o(), l("div", q, [
|
28
|
+
b("header", x, [
|
29
|
+
C,
|
30
|
+
u.user._id === s(e).params._id ? (o(), l("button", {
|
31
|
+
key: 0,
|
32
|
+
onClick: t[0] || (t[0] = (n) => a.$router.push({
|
33
|
+
name: "Create Organization"
|
34
|
+
})),
|
35
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
36
|
+
}, " + ")) : i("", !0)
|
37
|
+
]),
|
38
|
+
m(k, {
|
39
|
+
selected: r.value,
|
40
|
+
"onUpdate:selected": t[1] || (t[1] = (n) => r.value = n),
|
41
|
+
tabs: [
|
42
|
+
{ name: "Member", value: "member" },
|
43
|
+
{ name: "Follower", value: "follower" }
|
44
|
+
],
|
45
|
+
class: "mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"
|
46
|
+
}, null, 8, ["selected"]),
|
47
|
+
m(d, { name: "slide-fade" }, {
|
48
|
+
default: p(() => [
|
49
|
+
r.value === "member" ? (o(), c(_, {
|
50
|
+
key: 0,
|
51
|
+
user: u.user._id,
|
52
|
+
owner: s(e).params._id
|
53
|
+
}, null, 8, ["user", "owner"])) : i("", !0)
|
54
|
+
]),
|
55
|
+
_: 1
|
56
|
+
}),
|
57
|
+
m(d, { name: "slide-fade" }, {
|
58
|
+
default: p(() => [
|
59
|
+
r.value === "follower" ? (o(), c(_, {
|
60
|
+
key: 0,
|
61
|
+
user: u.user._id,
|
62
|
+
subscriber: s(e).params._id
|
63
|
+
}, null, 8, ["user", "subscriber"])) : i("", !0)
|
64
|
+
]),
|
65
|
+
_: 1
|
66
|
+
})
|
67
|
+
]));
|
68
|
+
}
|
69
|
+
};
|
70
|
+
export {
|
71
|
+
K as default
|
72
|
+
};
|