@ozdao/prometheus-framework 0.0.85 → 0.0.87

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-15e71ec4.js +1 -0
  2. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-628f013e.mjs +138 -0
  3. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs +1944 -0
  4. package/dist/ButtonFollow-728aab73.mjs +130 -0
  5. package/dist/CardHeader-ce5a1a75.mjs +96 -0
  6. package/dist/CardOrganization-58b54995.js +1 -0
  7. package/dist/CardOrganization-91e79698.mjs +320 -0
  8. package/dist/CardOrganization-ee5c34ab.js +1 -0
  9. package/dist/CardOrganization-f70bd169.mjs +202 -0
  10. package/dist/Comments-63f154a6.js +9 -0
  11. package/dist/Comments-c092550f.mjs +76 -0
  12. package/dist/Comments-c5afa4d6.mjs +459 -0
  13. package/dist/EditProductImages-61ff4321.mjs +236 -0
  14. package/dist/Feed-8fd41524.js +1 -0
  15. package/dist/Feed-926cf4f3.mjs +355 -0
  16. package/dist/Feed-a31c43c2.mjs +423 -0
  17. package/dist/Feed-ecf37814.mjs +367 -0
  18. package/dist/IconEdit-736c89be.js +1 -0
  19. package/dist/IconEdit-e9fd4c6c.mjs +21 -0
  20. package/dist/PlaceholderUserpic-995da0fc.mjs +28 -0
  21. package/dist/Popup-0c791801.mjs +76 -0
  22. package/dist/Popup-105ef2c3.js +1 -0
  23. package/dist/Popup-82fb2c8a.mjs +76 -0
  24. package/dist/Product-2f3d592f.mjs +837 -0
  25. package/dist/Product-2fbf9d99.js +7 -0
  26. package/dist/Product-6c37ef35.js +7 -0
  27. package/dist/Product-7087b358.mjs +837 -0
  28. package/dist/ProductEdit-20709821.mjs +349 -0
  29. package/dist/ProductEdit-a81d13b9.js +1 -0
  30. package/dist/ProductEdit-c5067942.mjs +113 -0
  31. package/dist/ProfileBlogposts-79d5c858.mjs +63 -0
  32. package/dist/ProfileBlogposts-eca9916c.js +1 -0
  33. package/dist/ProfileBlogposts-fb014bc6.mjs +63 -0
  34. package/dist/ProfileComments-48f3d4bc.mjs +43 -0
  35. package/dist/ProfileComments-58094a50.mjs +43 -0
  36. package/dist/ProfileComments-b919f021.js +1 -0
  37. package/dist/ProfileEvents-05485e20.js +1 -0
  38. package/dist/ProfileEvents-20695376.mjs +55 -0
  39. package/dist/ProfileEvents-5d206e3d.mjs +55 -0
  40. package/dist/ProfileLikes-2f3a4488.js +1 -0
  41. package/dist/ProfileLikes-503712ec.mjs +43 -0
  42. package/dist/ProfileLikes-b5ac7f48.mjs +43 -0
  43. package/dist/ProfileOrganizations-0b76e38f.js +1 -0
  44. package/dist/ProfileOrganizations-32ab1e30.mjs +211 -0
  45. package/dist/ProfileOrganizations-3f305f4e.mjs +210 -0
  46. package/dist/ProfileOrganizations-50fce34e.js +1 -0
  47. package/dist/Publics-3f277c17.js +1 -0
  48. package/dist/Publics-49dbeafc.js +1 -0
  49. package/dist/Publics-9ebffff1.mjs +122 -0
  50. package/dist/Publics-b0fad2b0.mjs +1926 -0
  51. package/dist/Tab-58cd105f.mjs +46 -0
  52. package/dist/Tab-6f0a4909.js +1 -0
  53. package/dist/UploadImage-441e8526.js +1 -0
  54. package/dist/UploadImage-d1dbc280.mjs +99 -0
  55. package/dist/UploadImage-ff8f9a0c.mjs +83 -0
  56. package/dist/auth-35ef1791.mjs +1502 -0
  57. package/dist/auth.client.cjs +2 -2
  58. package/dist/auth.client.js +61 -41
  59. package/dist/auth.validation-29113f37.mjs +20 -0
  60. package/dist/categories-d669f3af.mjs +225 -0
  61. package/dist/community.client.cjs +1 -9
  62. package/dist/community.client.js +369 -741
  63. package/dist/community.server.js +16 -4
  64. package/dist/community.server.mjs +16 -4
  65. package/dist/events.client.cjs +1 -1
  66. package/dist/events.client.js +433 -331
  67. package/dist/events.server.js +19 -2
  68. package/dist/events.server.mjs +19 -2
  69. package/dist/inputs.validation-24ae76b9.js +1 -0
  70. package/dist/modules/constructor/components/elements/Bullets.vue.d.ts +15 -0
  71. package/dist/modules/constructor/components/elements/Caption.vue.d.ts +15 -0
  72. package/dist/modules/constructor/components/elements/H2.vue.d.ts +16 -0
  73. package/dist/modules/constructor/components/elements/Image.vue.d.ts +8 -0
  74. package/dist/modules/constructor/components/elements/ImageUpload.vue.d.ts +9 -0
  75. package/dist/modules/constructor/components/elements/Textarea.vue.d.ts +12 -0
  76. package/dist/modules/constructor/components/sections/Constructor.vue.d.ts +7 -0
  77. package/dist/modules/events/components/sections/Feed.vue.d.ts +1 -0
  78. package/dist/modules/icons/entities/IconCommunity.vue.d.ts +2 -0
  79. package/dist/organizations-1b4c84ee.mjs +121 -0
  80. package/dist/organizations-af43bda4.js +1 -0
  81. package/dist/organizations.client-253c8068.mjs +3179 -0
  82. package/dist/organizations.client-c60d7659.js +3 -0
  83. package/dist/organizations.client.cjs +1 -3
  84. package/dist/organizations.client.js +50 -3026
  85. package/dist/organizations.server.js +1 -1
  86. package/dist/organizations.server.mjs +1 -1
  87. package/dist/style.css +1 -1
  88. package/dist/users.client.cjs +1 -1
  89. package/dist/users.client.js +245 -208
  90. package/package.json +1 -1
  91. package/src/modules/auth/router/auth.js +28 -7
  92. package/src/modules/community/community.client.js +1 -12
  93. package/src/modules/community/components/pages/BlogPost.vue +1 -1
  94. package/src/modules/community/components/pages/CreateBlogPost.vue +8 -151
  95. package/src/modules/community/middlewares/server/verifyBlogpost.js +24 -11
  96. package/src/modules/{community → constructor}/components/elements/Textarea.vue +3 -11
  97. package/src/modules/constructor/components/sections/Constructor.vue +167 -0
  98. package/src/modules/events/components/blocks/CardEvent.vue +14 -6
  99. package/src/modules/events/components/pages/EditEvent.vue +228 -133
  100. package/src/modules/events/components/sections/Feed.vue +7 -1
  101. package/src/modules/events/controllers/events.controller.js +9 -0
  102. package/src/modules/events/controllers/tickets.controller.js +2 -1
  103. package/src/modules/events/models/event.model.js +10 -0
  104. package/src/modules/events/store/events.js +15 -19
  105. package/src/modules/icons/entities/IconCommunity.vue +8 -0
  106. package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -5
  107. package/src/modules/organizations/components/sections/Publics.vue +3 -3
  108. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  109. package/src/modules/organizations/organizations.client.js +0 -2
  110. package/src/modules/users/components/pages/Profile.vue +15 -4
  111. package/src/modules/users/components/pages/ProfileEvents.vue +3 -3
  112. package/src/modules/organizations/components/blocks/CardOrganizationSocial.vue +0 -46
  113. /package/src/modules/{community → constructor}/components/elements/Bullets.vue +0 -0
  114. /package/src/modules/{community → constructor}/components/elements/Caption.vue +0 -0
  115. /package/src/modules/{community → constructor}/components/elements/H2.vue +0 -0
  116. /package/src/modules/{community → constructor}/components/elements/Image.vue +0 -0
  117. /package/src/modules/{community → constructor}/components/elements/ImageUpload.vue +0 -0
@@ -0,0 +1,43 @@
1
+ import { ref as l, watch as p, openBlock as s, createElementBlock as c, createVNode as d, createBlock as _, unref as a, createCommentVNode as f, createElementVNode as m } from "vue";
2
+ import { useRoute as b, useRouter as h } from "vue-router";
3
+ import { _ as v } from "./Tab-58cd105f.mjs";
4
+ import { _ as y } from "./Feed-a31c43c2.mjs";
5
+ import "./inputs.validation-6960f71b.mjs";
6
+ import "./globals-96ba60e4.mjs";
7
+ import "vue-i18n";
8
+ import "./EmptyState-34d85f10.mjs";
9
+ import "./auth-35ef1791.mjs";
10
+ import "./CardHeader-ce5a1a75.mjs";
11
+ import "./PlaceholderUserpic-995da0fc.mjs";
12
+ const g = { class: "pd-thin" }, q = /* @__PURE__ */ m("header", { class: "mn-medium flex-v-center flex-nowrap flex" }, [
13
+ /* @__PURE__ */ m("h2", { class: "mn-r-medium" }, "Comments")
14
+ ], -1), M = {
15
+ __name: "ProfileComments",
16
+ setup(w) {
17
+ const e = b(), n = h();
18
+ let u = e.query.tab ? e.query.tab : "posts";
19
+ const t = l(u);
20
+ return e.query.tab = t.value, p(t, (r) => {
21
+ n.push({ query: { ...e.query, tab: r } });
22
+ }), (r, o) => (s(), c("div", g, [
23
+ q,
24
+ d(v, {
25
+ selected: t.value,
26
+ "onUpdate:selected": o[0] || (o[0] = (i) => t.value = i),
27
+ tabs: [
28
+ { name: "My posts", value: "posts" },
29
+ { name: "Following", value: "hubs" }
30
+ ],
31
+ class: "mn-r-medium o-hidden h5 radius-big bg-grey"
32
+ }, null, 8, ["selected"]),
33
+ t.value === "posts" ? (s(), _(y, {
34
+ key: 0,
35
+ user: a(e).params._id,
36
+ owner: a(e).params._id
37
+ }, null, 8, ["user", "owner"])) : f("", !0)
38
+ ]));
39
+ }
40
+ };
41
+ export {
42
+ M as default
43
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("vue-router"),c=require("./Tab-6f0a4909.js"),i=require("./Feed-55c5907a.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./auth-5aa8e90c.js");require("./CardHeader-925a972b.js");require("./PlaceholderUserpic-d64d6dd5.js");const m={class:"pd-thin"},d=e.createElementVNode("header",{class:"mn-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Comments")],-1),p={__name:"ProfileComments",setup(q){const r=o.useRoute(),n=o.useRouter();let a=r.query.tab?r.query.tab:"posts";const t=e.ref(a);return r.query.tab=t.value,e.watch(t,u=>{n.push({query:{...r.query,tab:u}})}),(u,s)=>(e.openBlock(),e.createElementBlock("div",m,[d,e.createVNode(c._sfc_main,{selected:t.value,"onUpdate:selected":s[0]||(s[0]=l=>t.value=l),tabs:[{name:"My posts",value:"posts"},{name:"Following",value:"hubs"}],class:"mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),t.value==="posts"?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,user:e.unref(r).params._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]))}};exports.default=p;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("vue-router"),d=require("./Tab-6f0a4909.js"),i=require("./Feed-8fd41524.js"),n=require("./auth-5aa8e90c.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./CardHeader-925a972b.js");require("./PlaceholderUserpic-d64d6dd5.js");const m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},_=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),v={__name:"ProfileEvents",setup(q){const r=c.useRoute(),s=c.useRouter();let l=r.query.tab?r.query.tab:"owner";const t=e.ref(l);return r.query.tab=t.value,e.watch(t,u=>{s.push({query:{...r.query,tab:u}})}),(u,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[_,n.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=o=>e.unref(s).push({name:"Create Event"})),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":a[1]||(a[1]=o=>t.value=o),tabs:[{name:"My",value:"owner"},{name:"Participant",value:"participant"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),t.value==="owner"?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,user:n.state.user._id,creator:e.unref(r).params._id,sortOrder:"asc"},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="participant"?(e.openBlock(),e.createBlock(i._sfc_main,{key:1,user:n.state.user._id,participant:e.unref(r).params._id,sortOrder:"desc"},null,8,["user","participant"])):e.createCommentVNode("",!0)]))}};exports.default=v;
@@ -0,0 +1,55 @@
1
+ import { ref as f, watch as v, openBlock as a, createElementBlock as l, createElementVNode as d, unref as s, createCommentVNode as o, createVNode as b, createBlock as p } from "vue";
2
+ import { useRoute as h, useRouter as w } from "vue-router";
3
+ import { _ as y } from "./Tab-054b61f7.mjs";
4
+ import { _ as c } from "./Feed-926cf4f3.mjs";
5
+ import { s as n } from "./auth-35ef1791.mjs";
6
+ import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
7
+ import "./EmptyState-34d85f10.mjs";
8
+ import "./CardHeader-ce5a1a75.mjs";
9
+ import "./PlaceholderUserpic-995da0fc.mjs";
10
+ import "./globals-96ba60e4.mjs";
11
+ import "vue-i18n";
12
+ const g = { class: "pd-thin" }, k = { class: "mn-medium flex-v-center flex-nowrap flex" }, q = /* @__PURE__ */ d("h2", { class: "mn-r-medium" }, " Events ", -1), j = {
13
+ __name: "ProfileEvents",
14
+ setup(x) {
15
+ const e = h(), i = w();
16
+ let _ = e.query.tab ? e.query.tab : "owner";
17
+ const r = f(_);
18
+ return e.query.tab = r.value, v(r, (u) => {
19
+ i.push({ query: { ...e.query, tab: u } });
20
+ }), (u, t) => (a(), l("div", g, [
21
+ d("header", k, [
22
+ q,
23
+ n.user._id === s(e).params._id ? (a(), l("button", {
24
+ key: 0,
25
+ onClick: t[0] || (t[0] = (m) => s(i).push({ name: "Create BlogPost" })),
26
+ class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
27
+ }, " + ")) : o("", !0)
28
+ ]),
29
+ b(y, {
30
+ selected: r.value,
31
+ "onUpdate:selected": t[1] || (t[1] = (m) => r.value = m),
32
+ tabs: [
33
+ { name: "Owner", value: "owner" },
34
+ { name: "Participant", value: "participant" }
35
+ ],
36
+ class: "mn-small o-hidden h5 radius-big bg-grey"
37
+ }, null, 8, ["selected"]),
38
+ r.value === "owner" ? (a(), p(c, {
39
+ key: 0,
40
+ user: n.user._id,
41
+ owner: s(e).params._id,
42
+ sortOrder: "asc"
43
+ }, null, 8, ["user", "owner"])) : o("", !0),
44
+ r.value === "participant" ? (a(), p(c, {
45
+ key: 1,
46
+ user: n.user._id,
47
+ participant: s(e).params._id,
48
+ sortOrder: "desc"
49
+ }, null, 8, ["user", "participant"])) : o("", !0)
50
+ ]));
51
+ }
52
+ };
53
+ export {
54
+ j as default
55
+ };
@@ -0,0 +1,55 @@
1
+ import { ref as f, watch as v, openBlock as a, createElementBlock as c, createElementVNode as d, unref as s, createCommentVNode as o, createVNode as b, createBlock as l } from "vue";
2
+ import { useRoute as h, useRouter as y } from "vue-router";
3
+ import { _ as k } from "./Tab-58cd105f.mjs";
4
+ import { _ as p } from "./Feed-ecf37814.mjs";
5
+ import { s as n } from "./auth-35ef1791.mjs";
6
+ import "./inputs.validation-6960f71b.mjs";
7
+ import "./globals-96ba60e4.mjs";
8
+ import "vue-i18n";
9
+ import "./EmptyState-34d85f10.mjs";
10
+ import "./CardHeader-ce5a1a75.mjs";
11
+ import "./PlaceholderUserpic-995da0fc.mjs";
12
+ const g = { class: "pd-thin" }, w = { class: "mn-medium flex-v-center flex-nowrap flex" }, q = /* @__PURE__ */ d("h2", { class: "mn-r-medium" }, " Events ", -1), U = {
13
+ __name: "ProfileEvents",
14
+ setup(x) {
15
+ const e = h(), i = y();
16
+ let _ = e.query.tab ? e.query.tab : "owner";
17
+ const t = f(_);
18
+ return e.query.tab = t.value, v(t, (u) => {
19
+ i.push({ query: { ...e.query, tab: u } });
20
+ }), (u, r) => (a(), c("div", g, [
21
+ d("header", w, [
22
+ q,
23
+ n.user._id === s(e).params._id ? (a(), c("button", {
24
+ key: 0,
25
+ onClick: r[0] || (r[0] = (m) => s(i).push({ name: "Create Event" })),
26
+ class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
27
+ }, " + ")) : o("", !0)
28
+ ]),
29
+ b(k, {
30
+ selected: t.value,
31
+ "onUpdate:selected": r[1] || (r[1] = (m) => t.value = m),
32
+ tabs: [
33
+ { name: "My", value: "owner" },
34
+ { name: "Participant", value: "participant" }
35
+ ],
36
+ class: "mn-small o-hidden h5 radius-big bg-grey"
37
+ }, null, 8, ["selected"]),
38
+ t.value === "owner" ? (a(), l(p, {
39
+ key: 0,
40
+ user: n.user._id,
41
+ creator: s(e).params._id,
42
+ sortOrder: "asc"
43
+ }, null, 8, ["user", "creator"])) : o("", !0),
44
+ t.value === "participant" ? (a(), l(p, {
45
+ key: 1,
46
+ user: n.user._id,
47
+ participant: s(e).params._id,
48
+ sortOrder: "desc"
49
+ }, null, 8, ["user", "participant"])) : o("", !0)
50
+ ]));
51
+ }
52
+ };
53
+ export {
54
+ U as default
55
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("vue-router"),l=require("./Tab-6f0a4909.js"),c=require("./Feed-55c5907a.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./auth-5aa8e90c.js");require("./CardHeader-925a972b.js");require("./PlaceholderUserpic-d64d6dd5.js");const d={class:"pd-thin"},m=e.createElementVNode("header",{class:"mn-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Likes")],-1),p={__name:"ProfileLikes",setup(q){const r=o.useRoute(),a=o.useRouter();let n=r.query.tab?r.query.tab:"posts";const t=e.ref(n);return r.query.tab=t.value,e.watch(t,u=>{a.push({query:{...r.query,tab:u}})}),(u,s)=>(e.openBlock(),e.createElementBlock("div",d,[m,e.createVNode(l._sfc_main,{selected:t.value,"onUpdate:selected":s[0]||(s[0]=i=>t.value=i),tabs:[{name:"My posts",value:"posts"},{name:"Following",value:"hubs"}],class:"mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),t.value==="posts"?(e.openBlock(),e.createBlock(c._sfc_main,{key:0,user:e.unref(r).params._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]))}};exports.default=p;
@@ -0,0 +1,43 @@
1
+ import { ref as l, watch as p, openBlock as s, createElementBlock as c, createVNode as d, createBlock as _, unref as a, createCommentVNode as f, createElementVNode as m } from "vue";
2
+ import { useRoute as b, useRouter as h } from "vue-router";
3
+ import { _ as v } from "./Tab-054b61f7.mjs";
4
+ import { _ as y } from "./Feed-a31c43c2.mjs";
5
+ import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
6
+ import "./EmptyState-34d85f10.mjs";
7
+ import "./auth-35ef1791.mjs";
8
+ import "./globals-96ba60e4.mjs";
9
+ import "vue-i18n";
10
+ import "./CardHeader-ce5a1a75.mjs";
11
+ import "./PlaceholderUserpic-995da0fc.mjs";
12
+ const k = { class: "pd-thin" }, g = /* @__PURE__ */ m("header", { class: "mn-medium flex-v-center flex-nowrap flex" }, [
13
+ /* @__PURE__ */ m("h2", { class: "mn-r-medium" }, "Likes")
14
+ ], -1), F = {
15
+ __name: "ProfileLikes",
16
+ setup(q) {
17
+ const e = b(), n = h();
18
+ let u = e.query.tab ? e.query.tab : "posts";
19
+ const t = l(u);
20
+ return e.query.tab = t.value, p(t, (r) => {
21
+ n.push({ query: { ...e.query, tab: r } });
22
+ }), (r, o) => (s(), c("div", k, [
23
+ g,
24
+ d(v, {
25
+ selected: t.value,
26
+ "onUpdate:selected": o[0] || (o[0] = (i) => t.value = i),
27
+ tabs: [
28
+ { name: "My posts", value: "posts" },
29
+ { name: "Following", value: "hubs" }
30
+ ],
31
+ class: "mn-r-medium o-hidden h5 radius-big bg-grey"
32
+ }, null, 8, ["selected"]),
33
+ t.value === "posts" ? (s(), _(y, {
34
+ key: 0,
35
+ user: a(e).params._id,
36
+ owner: a(e).params._id
37
+ }, null, 8, ["user", "owner"])) : f("", !0)
38
+ ]));
39
+ }
40
+ };
41
+ export {
42
+ F as default
43
+ };
@@ -0,0 +1,43 @@
1
+ import { ref as l, watch as p, openBlock as s, createElementBlock as c, createVNode as d, createBlock as _, unref as a, createCommentVNode as f, createElementVNode as m } from "vue";
2
+ import { useRoute as b, useRouter as h } from "vue-router";
3
+ import { _ as v } from "./Tab-58cd105f.mjs";
4
+ import { _ as y } from "./Feed-a31c43c2.mjs";
5
+ import "./inputs.validation-6960f71b.mjs";
6
+ import "./globals-96ba60e4.mjs";
7
+ import "vue-i18n";
8
+ import "./EmptyState-34d85f10.mjs";
9
+ import "./auth-35ef1791.mjs";
10
+ import "./CardHeader-ce5a1a75.mjs";
11
+ import "./PlaceholderUserpic-995da0fc.mjs";
12
+ const k = { class: "pd-thin" }, g = /* @__PURE__ */ m("header", { class: "mn-medium flex-v-center flex-nowrap flex" }, [
13
+ /* @__PURE__ */ m("h2", { class: "mn-r-medium" }, "Likes")
14
+ ], -1), F = {
15
+ __name: "ProfileLikes",
16
+ setup(q) {
17
+ const e = b(), n = h();
18
+ let u = e.query.tab ? e.query.tab : "posts";
19
+ const t = l(u);
20
+ return e.query.tab = t.value, p(t, (r) => {
21
+ n.push({ query: { ...e.query, tab: r } });
22
+ }), (r, o) => (s(), c("div", k, [
23
+ g,
24
+ d(v, {
25
+ selected: t.value,
26
+ "onUpdate:selected": o[0] || (o[0] = (i) => t.value = i),
27
+ tabs: [
28
+ { name: "My posts", value: "posts" },
29
+ { name: "Following", value: "hubs" }
30
+ ],
31
+ class: "mn-r-medium o-hidden h5 radius-big bg-grey"
32
+ }, null, 8, ["selected"]),
33
+ t.value === "posts" ? (s(), _(y, {
34
+ key: 0,
35
+ user: a(e).params._id,
36
+ owner: a(e).params._id
37
+ }, null, 8, ["user", "owner"])) : f("", !0)
38
+ ]));
39
+ }
40
+ };
41
+ export {
42
+ F as default
43
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("vue-router"),p=require("./Tab-6f0a4909.js"),y=require("./EmptyState-7658d7d6.js"),h=require("./CardOrganization-ee5c34ab.js"),d=require("./auth-5aa8e90c.js"),g=require("./organizations-af43bda4.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./ButtonFollow-2ce169ca.js");const k={},v={width:"100%",height:"20rem",xmlns:"http://www.w3.org/2000/svg"},_=e.createStaticVNode('<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),w=[_];function B(u,t){return e.openBlock(),e.createElementBlock("svg",v,w)}const x=d._export_sfc(k,[["render",B]]),C={class:"feed"},b={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},member:{type:[String,Number],default:null},subscriber:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},participant:{type:String,default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(u){const t=u,a=e.ref([]),o=e.ref(!1),r=e.ref(!0),l=e.ref(0),n=e.ref(20),c=async()=>{if(o.value){l.value+=n.value;const i=await g.actions.read({skip:l.value,limit:n.value,category:t.category,sortOrder:t.sortOrder,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,status:t.status});i.length===0?o.value=!1:o.value=!0,a.value=[...a.value,...i]}};return e.onMounted(async()=>{r.value=!0,console.log(t.selectedDate);const i=await g.actions.read({skip:l.value,limit:n.value,category:t.category,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,sortOrder:t.sortOrder,user:t.user,owner:t.owner,date:t.selectedDate,organization:t.organization,period:t.period,status:t.status});i.length===0?o.value=!1:o.value=!0,a.value=i,r.value=!1}),(i,V)=>(e.openBlock(),e.createElementBlock("section",C,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[r.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value,s=>(e.openBlock(),e.createBlock(x,{key:s}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!r.value&&a.value.length<1?(e.openBlock(),e.createBlock(y._sfc_main,{key:0,title:"No Organizations Found",description:"Currently, there are no organizations available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!r.value&&a.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,(s,f)=>(e.openBlock(),e.createBlock(h._sfc_main,{onClick:O=>i.$router.push({name:"Organization",params:{_id:s._id}}),key:s._id,organization:s,user:u.user,type:"normal",class:e.normalizeClass(["w-100 radius-big mn-medium",{"br-b br-solid br-black-transp-10":f!==a.value.length-1}])},null,8,["onClick","organization","user","class"]))),128)):e.createCommentVNode("",!0),o.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:c,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}},N={class:"pd-thin"},z={class:"mn-medium flex-v-center flex-nowrap flex"},q=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),S={__name:"ProfileOrganizations",setup(u){const t=m.useRoute(),a=m.useRouter();let o=t.query.tab?t.query.tab:"member";const r=e.ref(o);return t.query.tab=r.value,e.watch(r,l=>{a.push({query:{...t.query,tab:l}})}),(l,n)=>(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("header",z,[q,d.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[0]||(n[0]=c=>l.$router.push({name:"Create Organization"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(p._sfc_main,{selected:r.value,"onUpdate:selected":n[1]||(n[1]=c=>r.value=c),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(()=>[r.value==="member"?(e.openBlock(),e.createBlock(b,{key:0,user:d.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="follower"?(e.openBlock(),e.createBlock(b,{key:0,user:d.state.user._id,subscriber:e.unref(t).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=S;
@@ -0,0 +1,211 @@
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-58cd105f.mjs";
4
+ import { _ as L } from "./EmptyState-34d85f10.mjs";
5
+ import { _ as V } from "./CardOrganization-f70bd169.mjs";
6
+ import { _ as B, s as _ } from "./auth-35ef1791.mjs";
7
+ import { a as x } from "./organizations-1b4c84ee.mjs";
8
+ import "./inputs.validation-6960f71b.mjs";
9
+ import "./globals-96ba60e4.mjs";
10
+ import "vue-i18n";
11
+ import "./ButtonFollow-728aab73.mjs";
12
+ const E = {}, G = {
13
+ width: "100%",
14
+ height: "20rem",
15
+ xmlns: "http://www.w3.org/2000/svg"
16
+ }, 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 = [
17
+ P
18
+ ];
19
+ function T(b, e) {
20
+ return r(), o("svg", G, R);
21
+ }
22
+ const U = /* @__PURE__ */ B(E, [["render", T]]), j = { class: "feed" }, z = {
23
+ __name: "Feed",
24
+ props: {
25
+ category: {
26
+ type: String,
27
+ default: null
28
+ },
29
+ selectedDate: {
30
+ type: String,
31
+ default: null
32
+ },
33
+ organization: {
34
+ type: String,
35
+ default: null
36
+ },
37
+ owner: {
38
+ type: String,
39
+ default: null
40
+ },
41
+ user: {
42
+ type: [String, Number],
43
+ default: null
44
+ },
45
+ member: {
46
+ type: [String, Number],
47
+ default: null
48
+ },
49
+ subscriber: {
50
+ type: [String, Number],
51
+ default: null
52
+ },
53
+ sortOrder: {
54
+ type: String,
55
+ default: "desc"
56
+ },
57
+ participant: {
58
+ type: String,
59
+ default: null
60
+ },
61
+ period: {
62
+ type: String,
63
+ default: null
64
+ },
65
+ status: {
66
+ type: String,
67
+ default: null
68
+ }
69
+ },
70
+ setup(b) {
71
+ const e = b, a = c([]), n = c(!1), t = c(!0), i = c(0), s = c(20), p = async () => {
72
+ if (n.value) {
73
+ i.value += s.value;
74
+ const l = await x.read({
75
+ skip: i.value,
76
+ limit: s.value,
77
+ category: e.category,
78
+ sortOrder: e.sortOrder,
79
+ member: e.member,
80
+ subscriber: e.subscriber,
81
+ onlyuser: e.onlyuser,
82
+ user: e.user,
83
+ date: e.selectedDate,
84
+ owner: e.owner,
85
+ organization: e.organization,
86
+ period: e.period,
87
+ status: e.status
88
+ });
89
+ l.length === 0 ? n.value = !1 : n.value = !0, a.value = [...a.value, ...l];
90
+ }
91
+ };
92
+ return C(async () => {
93
+ t.value = !0, console.log(e.selectedDate);
94
+ const l = await x.read({
95
+ skip: i.value,
96
+ limit: s.value,
97
+ category: e.category,
98
+ member: e.member,
99
+ subscriber: e.subscriber,
100
+ onlyuser: e.onlyuser,
101
+ sortOrder: e.sortOrder,
102
+ user: e.user,
103
+ owner: e.owner,
104
+ date: e.selectedDate,
105
+ organization: e.organization,
106
+ period: e.period,
107
+ status: e.status
108
+ });
109
+ l.length === 0 ? n.value = !1 : n.value = !0, a.value = l, t.value = !1;
110
+ }), (l, J) => (r(), o("section", j, [
111
+ d(v, {
112
+ tag: "ul",
113
+ name: "fade",
114
+ class: "o-hidden bg-grey radius-big"
115
+ }, {
116
+ default: g(() => [
117
+ t.value ? (r(!0), o(k, { key: 0 }, w(s.value, (m) => (r(), f(U, { key: m }))), 128)) : u("", !0)
118
+ ]),
119
+ _: 1
120
+ }),
121
+ d(h, { name: "fade" }, {
122
+ default: g(() => [
123
+ !t.value && a.value.length < 1 ? (r(), f(L, {
124
+ key: 0,
125
+ title: "No Organizations Found",
126
+ description: "Currently, there are no organizations available. Please check back later.",
127
+ class: "pd-medium mn-thin bg-grey radius-big"
128
+ })) : u("", !0)
129
+ ]),
130
+ _: 1
131
+ }),
132
+ d(v, {
133
+ tag: "ul",
134
+ name: "fade",
135
+ class: "container"
136
+ }, {
137
+ default: g(() => [
138
+ !t.value && a.value.length > 0 ? (r(!0), o(k, { key: 0 }, w(a.value, (m, S) => (r(), f(V, {
139
+ onClick: (K) => l.$router.push({ name: "Organization", params: { _id: m._id } }),
140
+ key: m._id,
141
+ organization: m,
142
+ user: b.user,
143
+ type: "normal",
144
+ class: N(["w-100 radius-big mn-medium", {
145
+ "br-b br-solid br-black-transp-10": S !== a.value.length - 1
146
+ }])
147
+ }, null, 8, ["onClick", "organization", "user", "class"]))), 128)) : u("", !0),
148
+ n.value && a.value.length > 0 ? (r(), o("button", {
149
+ key: 1,
150
+ onClick: p,
151
+ class: "w-100 bg-main button"
152
+ }, "Load more")) : u("", !0)
153
+ ]),
154
+ _: 1
155
+ })
156
+ ]));
157
+ }
158
+ }, A = { class: "pd-thin" }, H = { class: "mn-medium flex-v-center flex-nowrap flex" }, I = /* @__PURE__ */ O("h2", { class: "mn-r-medium" }, "Groups", -1), ie = {
159
+ __name: "ProfileOrganizations",
160
+ setup(b) {
161
+ const e = M(), a = D();
162
+ let n = e.query.tab ? e.query.tab : "member";
163
+ const t = c(n);
164
+ return e.query.tab = t.value, q(t, (i) => {
165
+ a.push({ query: { ...e.query, tab: i } });
166
+ }), (i, s) => (r(), o("div", A, [
167
+ O("header", H, [
168
+ I,
169
+ _.user._id === y(e).params._id ? (r(), o("button", {
170
+ key: 0,
171
+ onClick: s[0] || (s[0] = (p) => i.$router.push({
172
+ name: "Create Organization"
173
+ })),
174
+ class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
175
+ }, " + ")) : u("", !0)
176
+ ]),
177
+ d(F, {
178
+ selected: t.value,
179
+ "onUpdate:selected": s[1] || (s[1] = (p) => t.value = p),
180
+ tabs: [
181
+ { name: "Member", value: "member" },
182
+ { name: "Follower", value: "follower" }
183
+ ],
184
+ class: "mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"
185
+ }, null, 8, ["selected"]),
186
+ d(h, { name: "slide-fade" }, {
187
+ default: g(() => [
188
+ t.value === "member" ? (r(), f(z, {
189
+ key: 0,
190
+ user: _.user._id,
191
+ owner: y(e).params._id
192
+ }, null, 8, ["user", "owner"])) : u("", !0)
193
+ ]),
194
+ _: 1
195
+ }),
196
+ d(h, { name: "slide-fade" }, {
197
+ default: g(() => [
198
+ t.value === "follower" ? (r(), f(z, {
199
+ key: 0,
200
+ user: _.user._id,
201
+ subscriber: y(e).params._id
202
+ }, null, 8, ["user", "subscriber"])) : u("", !0)
203
+ ]),
204
+ _: 1
205
+ })
206
+ ]));
207
+ }
208
+ };
209
+ export {
210
+ ie as default
211
+ };