@ozdao/prometheus-framework 0.0.93 → 0.0.95

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-6f807eb5.js +1 -0
  2. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-97217d38.mjs +1945 -0
  3. package/dist/ButtonFollow-4049a57e.js +1 -0
  4. package/dist/ButtonFollow-6765c266.mjs +131 -0
  5. package/dist/CardOrganization-82c5b4c6.js +1 -0
  6. package/dist/CardOrganization-b2098e42.js +1 -0
  7. package/dist/CardOrganization-c2e7e903.mjs +229 -0
  8. package/dist/CardOrganization-df0a4506.mjs +229 -0
  9. package/dist/Feed-13499a3a.mjs +428 -0
  10. package/dist/Feed-345d8513.mjs +355 -0
  11. package/dist/Feed-c6b67df4.js +1 -0
  12. package/dist/Feed-f0a40b33.js +1 -0
  13. package/dist/Image-b2131fa0.mjs +477 -0
  14. package/dist/Image-d01026cf.js +9 -0
  15. package/dist/Popup-0b38b537.js +1 -0
  16. package/dist/Popup-e6685f31.mjs +76 -0
  17. package/dist/Product-3c2ae338.js +7 -0
  18. package/dist/Product-6d05d027.js +7 -0
  19. package/dist/Product-b054c74c.mjs +838 -0
  20. package/dist/Product-dccb371a.mjs +838 -0
  21. package/dist/ProductEdit-3aecb5bf.js +1 -0
  22. package/dist/ProductEdit-55b6cb06.mjs +350 -0
  23. package/dist/ProductEdit-777bb9e2.mjs +350 -0
  24. package/dist/ProductEdit-d5dec3cf.js +1 -0
  25. package/dist/ProfileBlogposts-39c20b79.mjs +64 -0
  26. package/dist/ProfileBlogposts-6c715a38.js +1 -0
  27. package/dist/ProfileComments-1525663e.mjs +44 -0
  28. package/dist/ProfileComments-1cbf5c45.js +1 -0
  29. package/dist/ProfileEvents-48c70286.mjs +56 -0
  30. package/dist/ProfileEvents-a28a4ee5.js +1 -0
  31. package/dist/ProfileLikes-ca197731.mjs +44 -0
  32. package/dist/ProfileLikes-e31f28dc.js +1 -0
  33. package/dist/ProfileOrganizations-600d310d.js +1 -0
  34. package/dist/ProfileOrganizations-6f4df3da.js +1 -0
  35. package/dist/ProfileOrganizations-774c6508.mjs +212 -0
  36. package/dist/ProfileOrganizations-930ca51f.mjs +212 -0
  37. package/dist/Publics-103da60e.js +1 -0
  38. package/dist/Publics-4db36606.js +1 -0
  39. package/dist/Publics-cbb8eaaa.mjs +123 -0
  40. package/dist/Publics-f4c3ef5b.mjs +123 -0
  41. package/dist/UploadImage-739cab04.js +1 -0
  42. package/dist/UploadImage-8835be69.mjs +83 -0
  43. package/dist/auth-b61483ce.js +8 -0
  44. package/dist/auth-cfeacd61.mjs +1839 -0
  45. package/dist/auth.client.cjs +1 -1
  46. package/dist/auth.client.js +3 -3
  47. package/dist/auth.validation-2f00457e.js +1 -0
  48. package/dist/auth.validation-3fd4cc7c.mjs +20 -0
  49. package/dist/community.client.cjs +1 -1
  50. package/dist/community.client.js +10 -10
  51. package/dist/events.client.cjs +1 -1
  52. package/dist/events.client.js +8 -8
  53. package/dist/organizations-49a10611.js +1 -0
  54. package/dist/organizations-8ffdf84d.mjs +121 -0
  55. package/dist/organizations.client-0071acee.js +3 -0
  56. package/dist/organizations.client-c6fd9351.js +3 -0
  57. package/dist/organizations.client-d0cae5f4.mjs +3017 -0
  58. package/dist/organizations.client-fa3b0839.mjs +3017 -0
  59. package/dist/organizations.client.cjs +1 -1
  60. package/dist/organizations.client.js +10 -10
  61. package/dist/style.css +1 -1
  62. package/dist/users.client.cjs +1 -1
  63. package/dist/users.client.js +9 -9
  64. package/package.json +2 -1
  65. package/src/modules/auth/store/auth.js +23 -3
  66. package/src/modules/organizations/components/blocks/CardOrganization.vue +2 -0
@@ -0,0 +1,212 @@
1
+ import { openBlock as r, createElementBlock as o, createStaticVNode as $, ref as c, onMounted as C, createVNode as d, TransitionGroup as v, withCtx as g, Fragment as k, renderList as w, createBlock as f, createCommentVNode as u, Transition as h, normalizeClass as N, watch as q, createElementVNode as O, unref as y } from "vue";
2
+ import { useRoute as M, useRouter as D } from "vue-router";
3
+ import { _ as F } from "./Tab-a243605d.mjs";
4
+ import { _ as L } from "./EmptyState-34d85f10.mjs";
5
+ import { _ as V } from "./CardOrganization-c2e7e903.mjs";
6
+ import { _ as B } from "./_plugin-vue_export-helper-dad06003.mjs";
7
+ import { a as x } from "./organizations-8ffdf84d.mjs";
8
+ import { s as _ } from "./auth-cfeacd61.mjs";
9
+ import "./inputs.validation-14e8e01f.mjs";
10
+ import "./globals-96ba60e4.mjs";
11
+ import "vue-i18n";
12
+ import "./ButtonFollow-6765c266.mjs";
13
+ const E = {}, G = {
14
+ width: "100%",
15
+ height: "20rem",
16
+ xmlns: "http://www.w3.org/2000/svg"
17
+ }, P = /* @__PURE__ */ $('<rect x="0" y="0" rx="5" ry="5" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="4" ry="4" width="40%" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="45" rx="5" ry="5" width="70%" height="50" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="110" rx="3" ry="3" width="90%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="130" rx="3" ry="3" width="70%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" mask="url(#myMask)" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>', 6), R = [
18
+ P
19
+ ];
20
+ function T(b, e) {
21
+ return r(), o("svg", G, R);
22
+ }
23
+ const U = /* @__PURE__ */ B(E, [["render", T]]), j = { class: "feed" }, z = {
24
+ __name: "Feed",
25
+ props: {
26
+ category: {
27
+ type: String,
28
+ default: null
29
+ },
30
+ selectedDate: {
31
+ type: String,
32
+ default: null
33
+ },
34
+ organization: {
35
+ type: String,
36
+ default: null
37
+ },
38
+ owner: {
39
+ type: String,
40
+ default: null
41
+ },
42
+ user: {
43
+ type: [String, Number],
44
+ default: null
45
+ },
46
+ member: {
47
+ type: [String, Number],
48
+ default: null
49
+ },
50
+ subscriber: {
51
+ type: [String, Number],
52
+ default: null
53
+ },
54
+ sortOrder: {
55
+ type: String,
56
+ default: "desc"
57
+ },
58
+ participant: {
59
+ type: String,
60
+ default: null
61
+ },
62
+ period: {
63
+ type: String,
64
+ default: null
65
+ },
66
+ status: {
67
+ type: String,
68
+ default: null
69
+ }
70
+ },
71
+ setup(b) {
72
+ const e = b, a = c([]), n = c(!1), t = c(!0), i = c(0), s = c(20), p = async () => {
73
+ if (n.value) {
74
+ i.value += s.value;
75
+ const l = await x.read({
76
+ skip: i.value,
77
+ limit: s.value,
78
+ category: e.category,
79
+ sortOrder: e.sortOrder,
80
+ member: e.member,
81
+ subscriber: e.subscriber,
82
+ onlyuser: e.onlyuser,
83
+ user: e.user,
84
+ date: e.selectedDate,
85
+ owner: e.owner,
86
+ organization: e.organization,
87
+ period: e.period,
88
+ status: e.status
89
+ });
90
+ l.length === 0 ? n.value = !1 : n.value = !0, a.value = [...a.value, ...l];
91
+ }
92
+ };
93
+ return C(async () => {
94
+ t.value = !0, console.log(e.selectedDate);
95
+ const l = await x.read({
96
+ skip: i.value,
97
+ limit: s.value,
98
+ category: e.category,
99
+ member: e.member,
100
+ subscriber: e.subscriber,
101
+ onlyuser: e.onlyuser,
102
+ sortOrder: e.sortOrder,
103
+ user: e.user,
104
+ owner: e.owner,
105
+ date: e.selectedDate,
106
+ organization: e.organization,
107
+ period: e.period,
108
+ status: e.status
109
+ });
110
+ l.length === 0 ? n.value = !1 : n.value = !0, a.value = l, t.value = !1;
111
+ }), (l, J) => (r(), o("section", j, [
112
+ d(v, {
113
+ tag: "ul",
114
+ name: "fade",
115
+ class: "o-hidden bg-grey radius-big"
116
+ }, {
117
+ default: g(() => [
118
+ t.value ? (r(!0), o(k, { key: 0 }, w(s.value, (m) => (r(), f(U, { key: m }))), 128)) : u("", !0)
119
+ ]),
120
+ _: 1
121
+ }),
122
+ d(h, { name: "fade" }, {
123
+ default: g(() => [
124
+ !t.value && a.value.length < 1 ? (r(), f(L, {
125
+ key: 0,
126
+ title: "No Organizations Found",
127
+ description: "Currently, there are no organizations available. Please check back later.",
128
+ class: "pd-medium mn-thin bg-grey radius-big"
129
+ })) : u("", !0)
130
+ ]),
131
+ _: 1
132
+ }),
133
+ d(v, {
134
+ tag: "ul",
135
+ name: "fade",
136
+ class: "container"
137
+ }, {
138
+ default: g(() => [
139
+ !t.value && a.value.length > 0 ? (r(!0), o(k, { key: 0 }, w(a.value, (m, S) => (r(), f(V, {
140
+ onClick: (K) => l.$router.push({ name: "Organization", params: { _id: m._id } }),
141
+ key: m._id,
142
+ organization: m,
143
+ user: b.user,
144
+ type: "normal",
145
+ class: N(["w-100 radius-big mn-medium", {
146
+ "br-b br-solid br-black-transp-10": S !== a.value.length - 1
147
+ }])
148
+ }, null, 8, ["onClick", "organization", "user", "class"]))), 128)) : u("", !0),
149
+ n.value && a.value.length > 0 ? (r(), o("button", {
150
+ key: 1,
151
+ onClick: p,
152
+ class: "w-100 bg-main button"
153
+ }, "Load more")) : u("", !0)
154
+ ]),
155
+ _: 1
156
+ })
157
+ ]));
158
+ }
159
+ }, A = { class: "pd-thin" }, H = { class: "mn-medium flex-v-center flex-nowrap flex" }, I = /* @__PURE__ */ O("h2", { class: "mn-r-medium" }, "Groups", -1), le = {
160
+ __name: "ProfileOrganizations",
161
+ setup(b) {
162
+ const e = M(), a = D();
163
+ let n = e.query.tab ? e.query.tab : "member";
164
+ const t = c(n);
165
+ return e.query.tab = t.value, q(t, (i) => {
166
+ a.push({ query: { ...e.query, tab: i } });
167
+ }), (i, s) => (r(), o("div", A, [
168
+ O("header", H, [
169
+ I,
170
+ _.user._id === y(e).params._id ? (r(), o("button", {
171
+ key: 0,
172
+ onClick: s[0] || (s[0] = (p) => i.$router.push({
173
+ name: "Create Organization"
174
+ })),
175
+ class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
176
+ }, " + ")) : u("", !0)
177
+ ]),
178
+ d(F, {
179
+ selected: t.value,
180
+ "onUpdate:selected": s[1] || (s[1] = (p) => t.value = p),
181
+ tabs: [
182
+ { name: "Member", value: "member" },
183
+ { name: "Follower", value: "follower" }
184
+ ],
185
+ class: "mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"
186
+ }, null, 8, ["selected"]),
187
+ d(h, { name: "slide-fade" }, {
188
+ default: g(() => [
189
+ t.value === "member" ? (r(), f(z, {
190
+ key: 0,
191
+ user: _.user._id,
192
+ owner: y(e).params._id
193
+ }, null, 8, ["user", "owner"])) : u("", !0)
194
+ ]),
195
+ _: 1
196
+ }),
197
+ d(h, { name: "slide-fade" }, {
198
+ default: g(() => [
199
+ t.value === "follower" ? (r(), f(z, {
200
+ key: 0,
201
+ user: _.user._id,
202
+ subscriber: y(e).params._id
203
+ }, null, 8, ["user", "subscriber"])) : u("", !0)
204
+ ]),
205
+ _: 1
206
+ })
207
+ ]));
208
+ }
209
+ };
210
+ export {
211
+ le as default
212
+ };
@@ -0,0 +1,212 @@
1
+ import { openBlock as r, createElementBlock as o, createStaticVNode as $, ref as c, onMounted as C, createVNode as d, TransitionGroup as v, withCtx as g, Fragment as k, renderList as w, createBlock as f, createCommentVNode as u, Transition as h, normalizeClass as N, watch as q, createElementVNode as O, unref as y } from "vue";
2
+ import { useRoute as M, useRouter as D } from "vue-router";
3
+ import { _ as F } from "./Tab-a243605d.mjs";
4
+ import { _ as L } from "./EmptyState-34d85f10.mjs";
5
+ import { _ as V } from "./CardOrganization-df0a4506.mjs";
6
+ import { _ as B } from "./_plugin-vue_export-helper-dad06003.mjs";
7
+ import { a as x } from "./organizations-2adff182.mjs";
8
+ import { s as _ } from "./auth-5217f6a5.mjs";
9
+ import "./inputs.validation-14e8e01f.mjs";
10
+ import "./globals-96ba60e4.mjs";
11
+ import "vue-i18n";
12
+ import "./ButtonFollow-5e19fc49.mjs";
13
+ const E = {}, G = {
14
+ width: "100%",
15
+ height: "20rem",
16
+ xmlns: "http://www.w3.org/2000/svg"
17
+ }, P = /* @__PURE__ */ $('<rect x="0" y="0" rx="5" ry="5" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="4" ry="4" width="40%" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="45" rx="5" ry="5" width="70%" height="50" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="110" rx="3" ry="3" width="90%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="130" rx="3" ry="3" width="70%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" mask="url(#myMask)" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>', 6), R = [
18
+ P
19
+ ];
20
+ function T(b, e) {
21
+ return r(), o("svg", G, R);
22
+ }
23
+ const U = /* @__PURE__ */ B(E, [["render", T]]), j = { class: "feed" }, z = {
24
+ __name: "Feed",
25
+ props: {
26
+ category: {
27
+ type: String,
28
+ default: null
29
+ },
30
+ selectedDate: {
31
+ type: String,
32
+ default: null
33
+ },
34
+ organization: {
35
+ type: String,
36
+ default: null
37
+ },
38
+ owner: {
39
+ type: String,
40
+ default: null
41
+ },
42
+ user: {
43
+ type: [String, Number],
44
+ default: null
45
+ },
46
+ member: {
47
+ type: [String, Number],
48
+ default: null
49
+ },
50
+ subscriber: {
51
+ type: [String, Number],
52
+ default: null
53
+ },
54
+ sortOrder: {
55
+ type: String,
56
+ default: "desc"
57
+ },
58
+ participant: {
59
+ type: String,
60
+ default: null
61
+ },
62
+ period: {
63
+ type: String,
64
+ default: null
65
+ },
66
+ status: {
67
+ type: String,
68
+ default: null
69
+ }
70
+ },
71
+ setup(b) {
72
+ const e = b, a = c([]), n = c(!1), t = c(!0), i = c(0), s = c(20), p = async () => {
73
+ if (n.value) {
74
+ i.value += s.value;
75
+ const l = await x.read({
76
+ skip: i.value,
77
+ limit: s.value,
78
+ category: e.category,
79
+ sortOrder: e.sortOrder,
80
+ member: e.member,
81
+ subscriber: e.subscriber,
82
+ onlyuser: e.onlyuser,
83
+ user: e.user,
84
+ date: e.selectedDate,
85
+ owner: e.owner,
86
+ organization: e.organization,
87
+ period: e.period,
88
+ status: e.status
89
+ });
90
+ l.length === 0 ? n.value = !1 : n.value = !0, a.value = [...a.value, ...l];
91
+ }
92
+ };
93
+ return C(async () => {
94
+ t.value = !0, console.log(e.selectedDate);
95
+ const l = await x.read({
96
+ skip: i.value,
97
+ limit: s.value,
98
+ category: e.category,
99
+ member: e.member,
100
+ subscriber: e.subscriber,
101
+ onlyuser: e.onlyuser,
102
+ sortOrder: e.sortOrder,
103
+ user: e.user,
104
+ owner: e.owner,
105
+ date: e.selectedDate,
106
+ organization: e.organization,
107
+ period: e.period,
108
+ status: e.status
109
+ });
110
+ l.length === 0 ? n.value = !1 : n.value = !0, a.value = l, t.value = !1;
111
+ }), (l, J) => (r(), o("section", j, [
112
+ d(v, {
113
+ tag: "ul",
114
+ name: "fade",
115
+ class: "o-hidden bg-grey radius-big"
116
+ }, {
117
+ default: g(() => [
118
+ t.value ? (r(!0), o(k, { key: 0 }, w(s.value, (m) => (r(), f(U, { key: m }))), 128)) : u("", !0)
119
+ ]),
120
+ _: 1
121
+ }),
122
+ d(h, { name: "fade" }, {
123
+ default: g(() => [
124
+ !t.value && a.value.length < 1 ? (r(), f(L, {
125
+ key: 0,
126
+ title: "No Organizations Found",
127
+ description: "Currently, there are no organizations available. Please check back later.",
128
+ class: "pd-medium mn-thin bg-grey radius-big"
129
+ })) : u("", !0)
130
+ ]),
131
+ _: 1
132
+ }),
133
+ d(v, {
134
+ tag: "ul",
135
+ name: "fade",
136
+ class: "container"
137
+ }, {
138
+ default: g(() => [
139
+ !t.value && a.value.length > 0 ? (r(!0), o(k, { key: 0 }, w(a.value, (m, S) => (r(), f(V, {
140
+ onClick: (K) => l.$router.push({ name: "Organization", params: { _id: m._id } }),
141
+ key: m._id,
142
+ organization: m,
143
+ user: b.user,
144
+ type: "normal",
145
+ class: N(["w-100 radius-big mn-medium", {
146
+ "br-b br-solid br-black-transp-10": S !== a.value.length - 1
147
+ }])
148
+ }, null, 8, ["onClick", "organization", "user", "class"]))), 128)) : u("", !0),
149
+ n.value && a.value.length > 0 ? (r(), o("button", {
150
+ key: 1,
151
+ onClick: p,
152
+ class: "w-100 bg-main button"
153
+ }, "Load more")) : u("", !0)
154
+ ]),
155
+ _: 1
156
+ })
157
+ ]));
158
+ }
159
+ }, A = { class: "pd-thin" }, H = { class: "mn-medium flex-v-center flex-nowrap flex" }, I = /* @__PURE__ */ O("h2", { class: "mn-r-medium" }, "Groups", -1), le = {
160
+ __name: "ProfileOrganizations",
161
+ setup(b) {
162
+ const e = M(), a = D();
163
+ let n = e.query.tab ? e.query.tab : "member";
164
+ const t = c(n);
165
+ return e.query.tab = t.value, q(t, (i) => {
166
+ a.push({ query: { ...e.query, tab: i } });
167
+ }), (i, s) => (r(), o("div", A, [
168
+ O("header", H, [
169
+ I,
170
+ _.user._id === y(e).params._id ? (r(), o("button", {
171
+ key: 0,
172
+ onClick: s[0] || (s[0] = (p) => i.$router.push({
173
+ name: "Create Organization"
174
+ })),
175
+ class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
176
+ }, " + ")) : u("", !0)
177
+ ]),
178
+ d(F, {
179
+ selected: t.value,
180
+ "onUpdate:selected": s[1] || (s[1] = (p) => t.value = p),
181
+ tabs: [
182
+ { name: "Member", value: "member" },
183
+ { name: "Follower", value: "follower" }
184
+ ],
185
+ class: "mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"
186
+ }, null, 8, ["selected"]),
187
+ d(h, { name: "slide-fade" }, {
188
+ default: g(() => [
189
+ t.value === "member" ? (r(), f(z, {
190
+ key: 0,
191
+ user: _.user._id,
192
+ owner: y(e).params._id
193
+ }, null, 8, ["user", "owner"])) : u("", !0)
194
+ ]),
195
+ _: 1
196
+ }),
197
+ d(h, { name: "slide-fade" }, {
198
+ default: g(() => [
199
+ t.value === "follower" ? (r(), f(z, {
200
+ key: 0,
201
+ user: _.user._id,
202
+ subscriber: y(e).params._id
203
+ }, null, 8, ["user", "subscriber"])) : u("", !0)
204
+ ]),
205
+ _: 1
206
+ })
207
+ ]));
208
+ }
209
+ };
210
+ export {
211
+ le as default
212
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-e32a3041.js");const p=require("./_plugin-vue_export-helper-f246444f.js"),f=require("./CardOrganization-82c5b4c6.js"),k=require("./EmptyState-7658d7d6.js"),d=require("./auth-5a58f8cb.js"),_=require("./organizations-e97a0f85.js"),h=require("./ButtonFollow-959861db.js"),y={key:0,class:"t-transp mn-r-small"},B=["onClick"],g=["onClick"],v={key:0,class:"mn-t-thin invalid-feedback"},b={__name:"Select",props:{label:String,select:[String,Object],placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(a,{emit:t}){const n=a,l=e.ref(n.select),s=e.ref(!1);e.watch(()=>n.select,o=>{l.value=o});const c=e.computed(()=>n.select?n.options.filter(o=>o!==n.select):n.options),i=()=>{s.value=!s.value,t(s.value?"focus":"blur")},m=o=>{l.value=o,i(),t("update:select",l.value)};return(o,V)=>{var u;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([o.$attrs.class,"flex-nowrap flex"])},[a.label?(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("span",null,e.toDisplayString(a.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",{onClick:e.withModifiers(i,["stop"]),class:"w-100"},[e.createElementVNode("span",null,e.toDisplayString(((u=l.value)==null?void 0:u.name)||l.value||a.placeholder),1)],8,B),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass([o.$attrs.class,"pos-absolute pos-l-0 z-index-5 w-100 mn-t-big"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),r=>(e.openBlock(),e.createElementBlock("li",null,[r?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:N=>m(r),class:"w-100"},e.toDisplayString(r.name||r),9,g)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0)]),_:1})],2),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[a.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(a.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},w=p._export_sfc(b,[["__scopeId","data-v-a78dbba1"]]);const E={class:"w-100 o-scroll"},x={key:1,class:"w-max gap-thin flex-nowrap flex"},C={__name:"Publics",setup(a){let t=e.ref(null);e.onMounted(async()=>{t.value=await _.actions.read({user:d.state.user._id,sort:"numberOfMemberships",limit:10,types:["public"]})});const n=({membership:l,isMember:s,targetId:c})=>{h.mutations.handleMembershipUpdate(t.value,l,s,c)};return(l,s)=>(e.openBlock(),e.createElementBlock("div",E,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(k._sfc_main,{key:0,title:"Unfortunately, we couldn't find any recommendations for you",description:"Explore and find a community or organization that suits your interests.",class:"radius-big bg-grey pd-medium"})):(e.openBlock(),e.createElementBlock("div",x,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(c,i)=>(e.openBlock(),e.createBlock(f._sfc_main,{key:c._id,organization:c,user:d.state.user,onUpdateMembership:n,class:"flex-child-1 flex-child w-100"},null,8,["organization","user"]))),128)):e.createCommentVNode("",!0)]))]))}};exports.Select=w;exports._sfc_main=C;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-6f807eb5.js");const p=require("./_plugin-vue_export-helper-f246444f.js"),f=require("./CardOrganization-b2098e42.js"),k=require("./EmptyState-7658d7d6.js"),d=require("./auth-b61483ce.js"),_=require("./organizations-49a10611.js"),h=require("./ButtonFollow-4049a57e.js"),y={key:0,class:"t-transp mn-r-small"},B=["onClick"],g=["onClick"],v={key:0,class:"mn-t-thin invalid-feedback"},b={__name:"Select",props:{label:String,select:[String,Object],placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(a,{emit:t}){const n=a,l=e.ref(n.select),s=e.ref(!1);e.watch(()=>n.select,o=>{l.value=o});const c=e.computed(()=>n.select?n.options.filter(o=>o!==n.select):n.options),i=()=>{s.value=!s.value,t(s.value?"focus":"blur")},m=o=>{l.value=o,i(),t("update:select",l.value)};return(o,V)=>{var u;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([o.$attrs.class,"flex-nowrap flex"])},[a.label?(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("span",null,e.toDisplayString(a.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",{onClick:e.withModifiers(i,["stop"]),class:"w-100"},[e.createElementVNode("span",null,e.toDisplayString(((u=l.value)==null?void 0:u.name)||l.value||a.placeholder),1)],8,B),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass([o.$attrs.class,"pos-absolute pos-l-0 z-index-5 w-100 mn-t-big"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),r=>(e.openBlock(),e.createElementBlock("li",null,[r?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:N=>m(r),class:"w-100"},e.toDisplayString(r.name||r),9,g)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0)]),_:1})],2),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[a.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(a.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},w=p._export_sfc(b,[["__scopeId","data-v-a78dbba1"]]);const E={class:"w-100 o-scroll"},x={key:1,class:"w-max gap-thin flex-nowrap flex"},C={__name:"Publics",setup(a){let t=e.ref(null);e.onMounted(async()=>{t.value=await _.actions.read({user:d.state.user._id,sort:"numberOfMemberships",limit:10,types:["public"]})});const n=({membership:l,isMember:s,targetId:c})=>{h.mutations.handleMembershipUpdate(t.value,l,s,c)};return(l,s)=>(e.openBlock(),e.createElementBlock("div",E,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(k._sfc_main,{key:0,title:"Unfortunately, we couldn't find any recommendations for you",description:"Explore and find a community or organization that suits your interests.",class:"radius-big bg-grey pd-medium"})):(e.openBlock(),e.createElementBlock("div",x,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(c,i)=>(e.openBlock(),e.createBlock(f._sfc_main,{key:c._id,organization:c,user:d.state.user,onUpdateMembership:n,class:"flex-child-1 flex-child w-100"},null,8,["organization","user"]))),128)):e.createCommentVNode("",!0)]))]))}};exports.Select=w;exports._sfc_main=C;
@@ -0,0 +1,123 @@
1
+ import { ref as _, watch as C, computed as S, openBlock as e, createElementBlock as t, Fragment as h, createElementVNode as m, normalizeClass as b, toDisplayString as p, createCommentVNode as c, withModifiers as z, createVNode as y, Transition as g, withCtx as k, renderList as M, unref as u, onMounted as B, createBlock as w } from "vue";
2
+ import "./Breadcrumbs.vue_vue_type_style_index_0_lang-97217d38.mjs";
3
+ import { _ as O } from "./_plugin-vue_export-helper-dad06003.mjs";
4
+ import { _ as U } from "./CardOrganization-c2e7e903.mjs";
5
+ import { _ as E } from "./EmptyState-34d85f10.mjs";
6
+ import { s as x } from "./auth-cfeacd61.mjs";
7
+ import { a as N } from "./organizations-8ffdf84d.mjs";
8
+ import { m as P } from "./ButtonFollow-6765c266.mjs";
9
+ const V = {
10
+ key: 0,
11
+ class: "t-transp mn-r-small"
12
+ }, L = ["onClick"], j = ["onClick"], A = {
13
+ key: 0,
14
+ class: "mn-t-thin invalid-feedback"
15
+ }, D = {
16
+ __name: "Select",
17
+ props: {
18
+ label: String,
19
+ select: [String, Object],
20
+ placeholder: { type: String, default: "Please select an item" },
21
+ options: { type: Array, default: () => [] },
22
+ validation: Boolean
23
+ },
24
+ emits: ["update:select", "focus", "blur"],
25
+ setup(o, { emit: s }) {
26
+ const a = o, l = _(a.select), i = _(!1);
27
+ C(() => a.select, (n) => {
28
+ l.value = n;
29
+ });
30
+ const r = S(() => a.select ? a.options.filter((n) => n !== a.select) : a.options), f = () => {
31
+ i.value = !i.value, s(i.value ? "focus" : "blur");
32
+ }, $ = (n) => {
33
+ l.value = n, f(), s("update:select", l.value);
34
+ };
35
+ return (n, T) => {
36
+ var v;
37
+ return e(), t(h, null, [
38
+ m("div", {
39
+ class: b([n.$attrs.class, "flex-nowrap flex"])
40
+ }, [
41
+ o.label ? (e(), t("div", V, [
42
+ m("span", null, p(o.label), 1)
43
+ ])) : c("", !0),
44
+ m("li", {
45
+ onClick: z(f, ["stop"]),
46
+ class: "w-100"
47
+ }, [
48
+ m("span", null, p(((v = l.value) == null ? void 0 : v.name) || l.value || o.placeholder), 1)
49
+ ], 8, L),
50
+ y(g, {
51
+ mode: "out-in",
52
+ name: "fade"
53
+ }, {
54
+ default: k(() => [
55
+ i.value ? (e(), t("ul", {
56
+ key: 0,
57
+ class: b([n.$attrs.class, "pos-absolute pos-l-0 z-index-5 w-100 mn-t-big"])
58
+ }, [
59
+ (e(!0), t(h, null, M(u(r), (d) => (e(), t("li", null, [
60
+ d ? (e(), t("span", {
61
+ key: 0,
62
+ onClick: (q) => $(d),
63
+ class: "w-100"
64
+ }, p(d.name || d), 9, j)) : c("", !0)
65
+ ]))), 256))
66
+ ], 2)) : c("", !0)
67
+ ]),
68
+ _: 1
69
+ })
70
+ ], 2),
71
+ y(g, {
72
+ mode: "out-in",
73
+ name: "fade"
74
+ }, {
75
+ default: k(() => [
76
+ o.validation ? (e(), t("div", A, " * " + p(o.validation.message), 1)) : c("", !0)
77
+ ]),
78
+ _: 1
79
+ })
80
+ ], 64);
81
+ };
82
+ }
83
+ }, Y = /* @__PURE__ */ O(D, [["__scopeId", "data-v-a78dbba1"]]);
84
+ const F = { class: "w-100 o-scroll" }, I = {
85
+ key: 1,
86
+ class: "w-max gap-thin flex-nowrap flex"
87
+ }, Z = {
88
+ __name: "Publics",
89
+ setup(o) {
90
+ let s = _(null);
91
+ B(async () => {
92
+ s.value = await N.read({
93
+ user: x.user._id,
94
+ sort: "numberOfMemberships",
95
+ limit: 10,
96
+ types: ["public"]
97
+ });
98
+ });
99
+ const a = ({ membership: l, isMember: i, targetId: r }) => {
100
+ P.handleMembershipUpdate(s.value, l, i, r);
101
+ };
102
+ return (l, i) => (e(), t("div", F, [
103
+ !u(s) || u(s).length < 1 ? (e(), w(E, {
104
+ key: 0,
105
+ title: "Unfortunately, we couldn't find any recommendations for you",
106
+ description: "Explore and find a community or organization that suits your interests.",
107
+ class: "radius-big bg-grey pd-medium"
108
+ })) : (e(), t("div", I, [
109
+ u(s) ? (e(!0), t(h, { key: 0 }, M(u(s), (r, f) => (e(), w(U, {
110
+ key: r._id,
111
+ organization: r,
112
+ user: x.user,
113
+ onUpdateMembership: a,
114
+ class: "flex-child-1 flex-child w-100"
115
+ }, null, 8, ["organization", "user"]))), 128)) : c("", !0)
116
+ ]))
117
+ ]));
118
+ }
119
+ };
120
+ export {
121
+ Y as S,
122
+ Z as _
123
+ };
@@ -0,0 +1,123 @@
1
+ import { ref as _, watch as C, computed as S, openBlock as e, createElementBlock as t, Fragment as h, createElementVNode as m, normalizeClass as b, toDisplayString as p, createCommentVNode as c, withModifiers as z, createVNode as y, Transition as g, withCtx as k, renderList as M, unref as u, onMounted as B, createBlock as w } from "vue";
2
+ import "./Breadcrumbs.vue_vue_type_style_index_0_lang-d9c6e4d1.mjs";
3
+ import { _ as O } from "./_plugin-vue_export-helper-dad06003.mjs";
4
+ import { _ as U } from "./CardOrganization-df0a4506.mjs";
5
+ import { _ as E } from "./EmptyState-34d85f10.mjs";
6
+ import { s as x } from "./auth-5217f6a5.mjs";
7
+ import { a as N } from "./organizations-2adff182.mjs";
8
+ import { m as P } from "./ButtonFollow-5e19fc49.mjs";
9
+ const V = {
10
+ key: 0,
11
+ class: "t-transp mn-r-small"
12
+ }, L = ["onClick"], j = ["onClick"], A = {
13
+ key: 0,
14
+ class: "mn-t-thin invalid-feedback"
15
+ }, D = {
16
+ __name: "Select",
17
+ props: {
18
+ label: String,
19
+ select: [String, Object],
20
+ placeholder: { type: String, default: "Please select an item" },
21
+ options: { type: Array, default: () => [] },
22
+ validation: Boolean
23
+ },
24
+ emits: ["update:select", "focus", "blur"],
25
+ setup(o, { emit: s }) {
26
+ const a = o, l = _(a.select), i = _(!1);
27
+ C(() => a.select, (n) => {
28
+ l.value = n;
29
+ });
30
+ const r = S(() => a.select ? a.options.filter((n) => n !== a.select) : a.options), f = () => {
31
+ i.value = !i.value, s(i.value ? "focus" : "blur");
32
+ }, $ = (n) => {
33
+ l.value = n, f(), s("update:select", l.value);
34
+ };
35
+ return (n, T) => {
36
+ var v;
37
+ return e(), t(h, null, [
38
+ m("div", {
39
+ class: b([n.$attrs.class, "flex-nowrap flex"])
40
+ }, [
41
+ o.label ? (e(), t("div", V, [
42
+ m("span", null, p(o.label), 1)
43
+ ])) : c("", !0),
44
+ m("li", {
45
+ onClick: z(f, ["stop"]),
46
+ class: "w-100"
47
+ }, [
48
+ m("span", null, p(((v = l.value) == null ? void 0 : v.name) || l.value || o.placeholder), 1)
49
+ ], 8, L),
50
+ y(g, {
51
+ mode: "out-in",
52
+ name: "fade"
53
+ }, {
54
+ default: k(() => [
55
+ i.value ? (e(), t("ul", {
56
+ key: 0,
57
+ class: b([n.$attrs.class, "pos-absolute pos-l-0 z-index-5 w-100 mn-t-big"])
58
+ }, [
59
+ (e(!0), t(h, null, M(u(r), (d) => (e(), t("li", null, [
60
+ d ? (e(), t("span", {
61
+ key: 0,
62
+ onClick: (q) => $(d),
63
+ class: "w-100"
64
+ }, p(d.name || d), 9, j)) : c("", !0)
65
+ ]))), 256))
66
+ ], 2)) : c("", !0)
67
+ ]),
68
+ _: 1
69
+ })
70
+ ], 2),
71
+ y(g, {
72
+ mode: "out-in",
73
+ name: "fade"
74
+ }, {
75
+ default: k(() => [
76
+ o.validation ? (e(), t("div", A, " * " + p(o.validation.message), 1)) : c("", !0)
77
+ ]),
78
+ _: 1
79
+ })
80
+ ], 64);
81
+ };
82
+ }
83
+ }, Y = /* @__PURE__ */ O(D, [["__scopeId", "data-v-a78dbba1"]]);
84
+ const F = { class: "w-100 o-scroll" }, I = {
85
+ key: 1,
86
+ class: "w-max gap-thin flex-nowrap flex"
87
+ }, Z = {
88
+ __name: "Publics",
89
+ setup(o) {
90
+ let s = _(null);
91
+ B(async () => {
92
+ s.value = await N.read({
93
+ user: x.user._id,
94
+ sort: "numberOfMemberships",
95
+ limit: 10,
96
+ types: ["public"]
97
+ });
98
+ });
99
+ const a = ({ membership: l, isMember: i, targetId: r }) => {
100
+ P.handleMembershipUpdate(s.value, l, i, r);
101
+ };
102
+ return (l, i) => (e(), t("div", F, [
103
+ !u(s) || u(s).length < 1 ? (e(), w(E, {
104
+ key: 0,
105
+ title: "Unfortunately, we couldn't find any recommendations for you",
106
+ description: "Explore and find a community or organization that suits your interests.",
107
+ class: "radius-big bg-grey pd-medium"
108
+ })) : (e(), t("div", I, [
109
+ u(s) ? (e(!0), t(h, { key: 0 }, M(u(s), (r, f) => (e(), w(U, {
110
+ key: r._id,
111
+ organization: r,
112
+ user: x.user,
113
+ onUpdateMembership: a,
114
+ class: "flex-child-1 flex-child w-100"
115
+ }, null, 8, ["organization", "user"]))), 128)) : c("", !0)
116
+ ]))
117
+ ]));
118
+ }
119
+ };
120
+ export {
121
+ Y as S,
122
+ Z as _
123
+ };