@ozdao/prometheus-framework 0.1.39 → 0.1.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. package/dist/ButtonToggleMembership-738720bd.js +1 -0
  2. package/dist/ButtonToggleMembership-e337e704.mjs +90 -0
  3. package/dist/CardBlogpost-c7adb0a7.mjs +246 -0
  4. package/dist/CardBlogpost-f308ff64.js +1 -0
  5. package/dist/CardOrganization-22beb83d.js +1 -0
  6. package/dist/CardOrganization-ae384e54.mjs +234 -0
  7. package/dist/Chips-edf2b573.js +1 -0
  8. package/dist/Chips-f06ec38f.mjs +213 -0
  9. package/dist/Community-04b25965.mjs +130 -0
  10. package/dist/Community-2f6fee0f.js +1 -0
  11. package/dist/Events-41d71b0e.js +1 -0
  12. package/dist/Events-af7170ed.mjs +134 -0
  13. package/dist/Feed-04fe1f7a.mjs +361 -0
  14. package/dist/Feed-23758089.mjs +124 -0
  15. package/dist/Feed-36e83be3.mjs +156 -0
  16. package/dist/Feed-5653cf8b.js +1 -0
  17. package/dist/Feed-5a359bb7.js +1 -0
  18. package/dist/Feed-6ca0541a.js +1 -0
  19. package/dist/Image-39955d9d.mjs +480 -0
  20. package/dist/Image-c2d190d8.js +9 -0
  21. package/dist/LeftoverAdd-21311275.js +1 -0
  22. package/dist/LeftoverAdd-ccf4595f.mjs +228 -0
  23. package/dist/Members-7251dd52.mjs +109 -0
  24. package/dist/Members-d35ab7e8.js +1 -0
  25. package/dist/Organizations-a964d4b6.mjs +72 -0
  26. package/dist/Organizations-ed6d36d6.js +1 -0
  27. package/dist/Product-299070ad.mjs +652 -0
  28. package/dist/Product-aacb05f3.js +7 -0
  29. package/dist/ProductEdit-70bed802.mjs +296 -0
  30. package/dist/ProductEdit-e5a2e0f6.js +1 -0
  31. package/dist/ProductsBackoffice-3c182d6a.mjs +86 -0
  32. package/dist/ProductsBackoffice-b684913d.js +1 -0
  33. package/dist/ProfileBlogposts-6bf526fb.js +1 -0
  34. package/dist/ProfileBlogposts-d4b17535.mjs +77 -0
  35. package/dist/ProfileEvents-3eeb4320.mjs +68 -0
  36. package/dist/ProfileEvents-90e09978.js +1 -0
  37. package/dist/ProfileOrganizations-e838925f.js +1 -0
  38. package/dist/ProfileOrganizations-edf657ca.mjs +72 -0
  39. package/dist/Publics-a31d7fe7.js +1 -0
  40. package/dist/Publics-a8f31413.mjs +45 -0
  41. package/dist/Wallet-2043b611.mjs +24682 -0
  42. package/dist/Wallet-8fa7386a.js +55 -0
  43. package/dist/auth-076a83d0.mjs +625 -0
  44. package/dist/auth-df5a20c6.js +7 -0
  45. package/dist/auth.client.cjs +1 -1
  46. package/dist/auth.client.js +4 -4
  47. package/dist/auth.validation-80b133df.js +1 -0
  48. package/dist/auth.validation-fd9ae66f.mjs +24 -0
  49. package/dist/backoffice.client.cjs +1 -1
  50. package/dist/backoffice.client.js +11 -11
  51. package/dist/categories-4327a81c.js +1 -0
  52. package/dist/categories-52a561a4.mjs +122 -0
  53. package/dist/community.client.cjs +1 -1
  54. package/dist/community.client.js +10 -10
  55. package/dist/events.client.cjs +2 -2
  56. package/dist/events.client.js +9 -9
  57. package/dist/legal.client.cjs +1 -1
  58. package/dist/legal.client.js +1 -1
  59. package/dist/main.css +1 -1
  60. package/dist/modules/gallery/components/pages/Gallery.vue.d.ts +2 -0
  61. package/dist/modules/gallery/components/sections/GalleryWithCategories.vue.d.ts +2 -0
  62. package/dist/modules/globals/components/sections/Title.vue.d.ts +6 -0
  63. package/dist/organizations-966e1cd2.mjs +122 -0
  64. package/dist/organizations-d12c42b6.js +1 -0
  65. package/dist/organizations.client-8f263e28.js +3 -0
  66. package/dist/organizations.client-9ffc023f.mjs +2996 -0
  67. package/dist/organizations.client.cjs +1 -1
  68. package/dist/organizations.client.js +15 -15
  69. package/dist/products-7e4253eb.js +1 -0
  70. package/dist/products-aabe5c02.mjs +108 -0
  71. package/dist/prometheus-framework.cjs.js +1 -1
  72. package/dist/prometheus-framework.es.js +2 -2
  73. package/dist/states.validation-4594b33c.mjs +13 -0
  74. package/dist/states.validation-69003e66.js +1 -0
  75. package/dist/style.css +1 -1
  76. package/dist/users.client.cjs +1 -1
  77. package/dist/users.client.js +198 -166
  78. package/package.json +1 -1
  79. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  80. package/src/components/LocationSelection/LocationSelection.vue +1 -1
  81. package/src/components/Navigation/Navigation.vue +12 -1
  82. package/src/modules/auth/store/auth.js +7 -4
  83. package/src/modules/files/middlewares/server/md.js +1 -0
  84. package/src/modules/gallery/components/pages/Gallery.vue +21 -0
  85. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +408 -0
  86. package/src/modules/gallery/gallery.client.js +11 -14
  87. package/src/modules/gallery/router/gallery.router.js +10 -0
  88. package/src/modules/globals/components/sections/Title.vue +22 -0
  89. package/src/modules/marketplace/router/marketplace.js +4 -3
  90. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  91. package/src/modules/products/components/pages/ProductRecommmendation.vue +5 -3
  92. package/src/modules/products/components/sections/SectionProduct.vue +17 -5
  93. package/src/modules/products/controllers/products.controller.js +83 -0
  94. package/src/modules/products/routes/products.routes.js +5 -5
  95. package/src/modules/spots/components/layouts/Spots.vue +16 -11
  96. package/src/modules/spots/components/pages/Map.vue +9 -7
  97. package/src/modules/users/components/pages/Profile.vue +15 -5
  98. package/src/modules/users/router/users.js +10 -0
  99. 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-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,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-36e83be3.mjs";
5
+ import { s as u } from "./auth-076a83d0.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-ae384e54.mjs";
10
+ import "./ButtonToggleMembership-e337e704.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-966e1cd2.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
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("vue-router"),d=require("./Tab-2c1e4224.js"),i=require("./Feed-5653cf8b.js"),o=require("./auth-df5a20c6.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-d65bab5b.js");require("./CardOrganization-22beb83d.js");require("./ButtonToggleMembership-738720bd.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./memberships-393765d8.js");require("./index-b41aac19.js");require("./globals-928eb13c.js");require("vue-i18n");require("./_plugin-vue_export-helper-f246444f.js");require("./organizations-d12c42b6.js");const m={class:"pd-thin"},q={class:"mn-medium flex-v-center flex-nowrap flex"},b=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),_={__name:"Organizations",setup(f){const r=s.useRoute(),l=s.useRouter();let c=r.query.tab?r.query.tab:"member";const t=e.ref(c);return r.query.tab=t.value,e.watch(t,a=>{l.replace({query:{...r.query,tab:a}})}),(a,u)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",q,[b,o.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u[0]||(u[0]=n=>a.$router.push({name:"Create Organization"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(d._sfc_main,{selected:t.value,"onUpdate:selected":u[1]||(u[1]=n=>t.value=n),tabs:[{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="member"?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,user:o.state.user._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="follower"?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,user:o.state.user._id,subscriber:e.unref(r).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=_;