@ozdao/prometheus-framework 0.1.30 → 0.1.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (202) hide show
  1. package/dist/BackofficeGallery-02c9721b.mjs +304 -0
  2. package/dist/BackofficeGallery-1d117a40.js +1 -0
  3. package/dist/BackofficeReports-cb4b180d.mjs +44 -0
  4. package/dist/BackofficeReports-d021871f.js +1 -0
  5. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-505c3ca5.js +1 -0
  6. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-b1873cb7.mjs +1945 -0
  7. package/dist/Button-2ca405bd.js +1 -0
  8. package/dist/Button-c59d387c.mjs +283 -0
  9. package/dist/Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  10. package/dist/Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  11. package/dist/ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-0ea8fbf8.js +1 -0
  12. package/dist/ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-4ed993c7.mjs +1 -0
  13. package/dist/CardOrganization-18c1e3fa.mjs +297 -0
  14. package/dist/CardOrganization-26714a5e.mjs +297 -0
  15. package/dist/CardOrganization-7d679e75.js +1 -0
  16. package/dist/CardOrganization-88c6d479.js +1 -0
  17. package/dist/Chips-0e5bdd54.js +1 -0
  18. package/dist/Chips-2ada5eda.mjs +200 -0
  19. package/dist/Chips-5e32c8cb.mjs +200 -0
  20. package/dist/Chips-8d0a1d2c.js +1 -0
  21. package/dist/Dashboard-239fb7a6.mjs +52 -0
  22. package/dist/Dashboard-94267906.js +1 -0
  23. package/dist/EULA-8265b0cf.mjs +4218 -0
  24. package/dist/EULA-cbb27503.js +1 -0
  25. package/dist/Feed-275a14d8.mjs +371 -0
  26. package/dist/Feed-505b3fa8.mjs +383 -0
  27. package/dist/Feed-66095e66.js +1 -0
  28. package/dist/Feed-76fc4475.mjs +383 -0
  29. package/dist/Feed-d0da2943.js +1 -0
  30. package/dist/Feed-e55bc6fa.js +1 -0
  31. package/dist/Feed-ee36f80b.js +1 -0
  32. package/dist/Feed-ef6c6ca3.mjs +371 -0
  33. package/dist/IconEdit-1b7b5874.js +1 -0
  34. package/dist/IconEdit-680dc269.mjs +339 -0
  35. package/dist/IconEdit-c98d3d06.mjs +339 -0
  36. package/dist/IconEdit-e4d0cc6e.js +1 -0
  37. package/dist/Image-052a3cc2.mjs +480 -0
  38. package/dist/Image-2d2e606a.js +9 -0
  39. package/dist/Image-95c0fb07.mjs +480 -0
  40. package/dist/Image-c90ee624.js +9 -0
  41. package/dist/MenuItem-0b249b94.mjs +93 -0
  42. package/dist/MenuItem-8b70d2cf.js +1 -0
  43. package/dist/Product-4b58701f.js +7 -0
  44. package/dist/Product-6aa1c9ee.mjs +844 -0
  45. package/dist/Product-6ca8d04d.js +7 -0
  46. package/dist/Product-a6251018.mjs +844 -0
  47. package/dist/ProductEdit-2e309add.js +1 -0
  48. package/dist/ProductEdit-3ff2af92.js +1 -0
  49. package/dist/ProductEdit-6abcc97b.mjs +306 -0
  50. package/dist/ProductEdit-f901314c.mjs +306 -0
  51. package/dist/ProfileBlogposts-57931834.mjs +70 -0
  52. package/dist/ProfileBlogposts-62d5e809.mjs +70 -0
  53. package/dist/ProfileBlogposts-af88ce98.js +1 -0
  54. package/dist/ProfileBlogposts-c31917ec.js +1 -0
  55. package/dist/ProfileEvents-588eadf9.js +1 -0
  56. package/dist/ProfileEvents-89471c05.js +1 -0
  57. package/dist/ProfileEvents-e070d9d4.mjs +62 -0
  58. package/dist/ProfileEvents-ed7f9603.mjs +62 -0
  59. package/dist/ProfileOrganizations-7911deec.mjs +219 -0
  60. package/dist/ProfileOrganizations-ae258581.js +1 -0
  61. package/dist/ProfileOrganizations-bee6a3ae.js +1 -0
  62. package/dist/ProfileOrganizations-db313b5e.mjs +219 -0
  63. package/dist/Publics-24f055eb.js +1 -0
  64. package/dist/Publics-50c0ff6c.js +1 -0
  65. package/dist/Publics-b1cbfd97.mjs +45 -0
  66. package/dist/Publics-f34131bf.mjs +45 -0
  67. package/dist/Select-11ddabf5.mjs +79 -0
  68. package/dist/Select-3ca5ab39.js +1 -0
  69. package/dist/Socials-3fe01af1.mjs +275 -0
  70. package/dist/Socials-9b2d27a6.js +1 -0
  71. package/dist/Socials-b19d0cb1.js +1 -0
  72. package/dist/Socials-becde7dc.mjs +275 -0
  73. package/dist/addMembersQuantity-ea216f92.mjs +85 -0
  74. package/dist/addMembersQuantity-f922d82b.js +84 -0
  75. package/dist/auth-98fe3efb.mjs +612 -0
  76. package/dist/auth-acbe3ae1.js +7 -0
  77. package/dist/auth.client.cjs +7 -8
  78. package/dist/auth.client.js +378 -379
  79. package/dist/auth.validation-495e9d6d.js +1 -0
  80. package/dist/auth.validation-e265b496.mjs +23 -0
  81. package/dist/backoffice.client.cjs +1 -1
  82. package/dist/backoffice.client.js +55 -28
  83. package/dist/click-outside-0b0727d1.js +2 -0
  84. package/dist/click-outside-6101836c.mjs +19 -0
  85. package/dist/community.client.cjs +1 -1
  86. package/dist/community.client.js +121 -121
  87. package/dist/community.server.js +35 -5
  88. package/dist/community.server.mjs +35 -5
  89. package/dist/components/Button/Button.vue.d.ts +3 -0
  90. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  91. package/dist/components/CardHeader/CardHeader.vue.d.ts +3 -0
  92. package/dist/components/Dropdown/Dropdown.vue.d.ts +3 -0
  93. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  94. package/dist/components/Field/Field.vue.d.ts +1 -1
  95. package/dist/components/FieldPhone/FieldPhone(script-setup).vue.d.ts +3 -3
  96. package/dist/components/Popup/Popup.vue.d.ts +2 -1
  97. package/dist/components/Popup/Popup.vue.d.ts.map +1 -1
  98. package/dist/components/Select/Select.vue.d.ts +1 -1
  99. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  100. package/dist/components/Upload/Upload.vue.d.ts +1 -1
  101. package/dist/events.client.cjs +2 -2
  102. package/dist/events.client.js +219 -217
  103. package/dist/events.server.js +1 -0
  104. package/dist/events.server.mjs +1 -0
  105. package/dist/legal.client.cjs +1 -1
  106. package/dist/legal.client.js +2565 -2545
  107. package/dist/main.css +1 -1
  108. package/dist/main.d.ts +1 -1
  109. package/dist/modules/backoffice/components/pages/Dashboard.vue.d.ts +6 -0
  110. package/dist/modules/icons/navigation/IconCross.vue.d.ts +4 -0
  111. package/dist/modules/legal/components/pages/legal/EULA.vue.d.ts +2 -0
  112. package/dist/modules/organizations/components/elements/ButtonFollow.vue.d.ts +1 -1
  113. package/dist/modules/organizations/components/elements/ButtonToggleMembership.vue.d.ts +12 -0
  114. package/dist/modules/organizations/components/sections/DetailsTab.vue.d.ts +2 -58
  115. package/dist/modules/organizations/components/sections/Feed.vue.d.ts +1 -1
  116. package/dist/modules/reports/components/pages/BackofficeReports.vue.d.ts +2 -0
  117. package/dist/modules/reports/components/sections/FormReport.vue.d.ts +75 -0
  118. package/dist/modules/reports/store/reports.d.ts +41 -0
  119. package/dist/organizations-a241b21d.js +1 -0
  120. package/dist/organizations-ea9de495.mjs +122 -0
  121. package/dist/organizations.client-292e8444.js +3 -0
  122. package/dist/organizations.client-6a69b54a.js +3 -0
  123. package/dist/organizations.client-6fc91683.mjs +3072 -0
  124. package/dist/organizations.client-c288ff44.mjs +3072 -0
  125. package/dist/organizations.client.cjs +1 -1
  126. package/dist/organizations.client.js +51 -49
  127. package/dist/organizations.server.js +20 -28
  128. package/dist/organizations.server.mjs +20 -28
  129. package/dist/prometheus-framework.cjs.js +19 -19
  130. package/dist/prometheus-framework.es.js +1635 -1608
  131. package/dist/reports-270f69df.js +1 -0
  132. package/dist/reports-79cd9459.mjs +91 -0
  133. package/dist/reports.client.cjs +1 -0
  134. package/dist/reports.client.js +8 -0
  135. package/dist/reports.server.js +159 -0
  136. package/dist/reports.server.mjs +160 -0
  137. package/dist/states.validation-02ba0aee.js +1 -0
  138. package/dist/states.validation-e5f4fa3a.mjs +13 -0
  139. package/dist/style.css +1 -1
  140. package/dist/users.client.cjs +1 -1
  141. package/dist/users.client.js +286 -242
  142. package/dist/users.server.js +6 -18
  143. package/dist/users.server.mjs +6 -18
  144. package/package.json +9 -1
  145. package/src/components/Button/Button.vue +66 -60
  146. package/src/components/CardHeader/CardHeader.vue +51 -50
  147. package/src/components/Dropdown/Dropdown.vue +28 -12
  148. package/src/components/FieldPhone/click-outside.js +0 -48
  149. package/src/components/Popup/Popup.vue +74 -23
  150. package/src/components/Select/Select.vue +10 -6
  151. package/src/main.ts +1 -1
  152. package/src/modules/auth/components/pages/EnterPassword.vue +6 -0
  153. package/src/modules/auth/store/auth.js +1 -1
  154. package/src/modules/backoffice/components/layouts/Backoffice.vue +3 -3
  155. package/src/modules/backoffice/components/pages/Dashboard.vue +62 -0
  156. package/src/modules/backoffice/router/backoffice.js +26 -0
  157. package/src/modules/community/components/blocks/CardBlogpost.vue +3 -0
  158. package/src/modules/community/components/layouts/Community.vue +4 -4
  159. package/src/modules/community/components/pages/CreateBlogPost.vue +27 -28
  160. package/src/modules/community/components/sections/Comments.vue +4 -2
  161. package/src/modules/community/components/sections/Feed.vue +1 -1
  162. package/src/modules/community/controllers/blog.controller.js +22 -3
  163. package/src/modules/community/controllers/comments.controller.js +23 -5
  164. package/src/modules/events/components/blocks/CardEvent.vue +4 -0
  165. package/src/modules/events/components/pages/EditEvent.vue +27 -28
  166. package/src/modules/events/components/sections/Feed.vue +1 -1
  167. package/src/modules/events/controllers/events.controller.js +3 -0
  168. package/src/modules/gallery/components/sections/BackofficeGallery.vue +7 -23
  169. package/src/modules/icons/navigation/IconCross.vue +22 -0
  170. package/src/modules/legal/components/pages/Legal.vue +3 -0
  171. package/src/modules/legal/components/pages/legal/EULA.vue +2148 -0
  172. package/src/modules/legal/router/legal.js +11 -4
  173. package/src/modules/middlewares/client/auth.validation.js +14 -0
  174. package/src/modules/mobile/components/Menu/Menu.vue +1 -1
  175. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  176. package/src/modules/organizations/components/elements/ButtonFollow.vue +9 -7
  177. package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +101 -0
  178. package/src/modules/organizations/components/pages/Organization.vue +1 -34
  179. package/src/modules/organizations/components/sections/DetailsTab.vue +86 -8
  180. package/src/modules/organizations/controllers/memberships.controller.js +10 -7
  181. package/src/modules/organizations/controllers/organizations.controller.js +9 -20
  182. package/src/modules/organizations/controllers/utils/addMembersQuantity.js +21 -0
  183. package/src/modules/organizations/controllers/utils/addUserStatusFields.js +65 -0
  184. package/src/modules/organizations/controllers/utils/excludeBlockedMembers.js +18 -0
  185. package/src/modules/organizations/models/membership.model.js +5 -5
  186. package/src/modules/organizations/store/memberships.js +6 -6
  187. package/src/modules/organizations/store/organizations.js +0 -1
  188. package/src/modules/products/products.server.js +5 -0
  189. package/src/modules/reports/components/pages/BackofficeReports.vue +67 -0
  190. package/src/modules/reports/components/sections/FormReport.vue +116 -0
  191. package/src/modules/reports/controllers/reports.controller.js +67 -0
  192. package/src/modules/reports/models/report.model.js +58 -0
  193. package/src/modules/reports/reports.client.js +17 -0
  194. package/src/modules/reports/reports.server.js +13 -0
  195. package/src/modules/reports/routes/reports.routes.js +43 -0
  196. package/src/modules/reports/store/reports.js +118 -0
  197. package/src/modules/users/components/pages/Profile.vue +57 -10
  198. package/src/modules/users/controllers/users.controller.js +6 -19
  199. package/src/styles/base/all.scss +2 -0
  200. package/src/styles/layout.scss +39 -63
  201. package/src/styles/theme.scss +0 -1
  202. package/src/styles/components/popup.scss +0 -55
@@ -0,0 +1,70 @@
1
+ import { ref as f, watch as g, openBlock as t, createElementBlock as p, createElementVNode as d, unref as u, createCommentVNode as o, createBlock as i } from "vue";
2
+ import { useRoute as v, useRouter as y } from "vue-router";
3
+ import { _ as b } from "./Tab-a243605d.mjs";
4
+ import { _ as m } from "./Feed-76fc4475.mjs";
5
+ import { s } from "./auth-98fe3efb.mjs";
6
+ import "./inputs.validation-14e8e01f.mjs";
7
+ import "./globals-96ba60e4.mjs";
8
+ import "vue-i18n";
9
+ import "./EmptyState-34d85f10.mjs";
10
+ import "./_plugin-vue_export-helper-dad06003.mjs";
11
+ import "./Chips-2ada5eda.mjs";
12
+ import "./IconEdit-c98d3d06.mjs";
13
+ import "./Button-c59d387c.mjs";
14
+ import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
15
+ import "./Select-11ddabf5.mjs";
16
+ import "./reports-79cd9459.mjs";
17
+ import "./index-a661083c.mjs";
18
+ import "./click-outside-6101836c.mjs";
19
+ const h = { class: "pd-thin" }, k = { class: "mn-medium flex-v-center flex-nowrap flex" }, w = /* @__PURE__ */ d("h2", { class: "mn-r-medium" }, "Posts", -1), H = {
20
+ __name: "ProfileBlogposts",
21
+ setup(q) {
22
+ const e = v(), c = y();
23
+ let _ = e.query.tab ? e.query.tab : "posts";
24
+ const r = f(_);
25
+ return e.query.tab = r.value, g(r, (l) => {
26
+ c.replace({ query: { ...e.query, tab: l } });
27
+ }), (l, a) => (t(), p("div", h, [
28
+ d("header", k, [
29
+ w,
30
+ s.user._id === u(e).params._id ? (t(), p("button", {
31
+ key: 0,
32
+ onClick: a[0] || (a[0] = (n) => l.$router.push({
33
+ name: "Create BlogPost"
34
+ })),
35
+ class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
36
+ }, " + ")) : o("", !0)
37
+ ]),
38
+ s.user._id === u(e).params._id ? (t(), i(b, {
39
+ key: 0,
40
+ selected: r.value,
41
+ "onUpdate:selected": a[1] || (a[1] = (n) => r.value = n),
42
+ tabs: [
43
+ { name: "My posts", value: "posts" },
44
+ { name: "Drafts", value: "drafts" },
45
+ { name: "Following", value: "following" }
46
+ ],
47
+ class: "mn-small o-hidden h5 radius-big bg-grey"
48
+ }, null, 8, ["selected"])) : o("", !0),
49
+ r.value === "posts" ? (t(), i(m, {
50
+ key: 1,
51
+ user: s.user._id,
52
+ creator: u(e).params._id
53
+ }, null, 8, ["user", "creator"])) : o("", !0),
54
+ r.value === "drafts" ? (t(), i(m, {
55
+ key: 2,
56
+ user: s.user._id,
57
+ creator: u(e).params._id,
58
+ status: "draft"
59
+ }, null, 8, ["user", "creator"])) : o("", !0),
60
+ r.value === "following" ? (t(), i(m, {
61
+ key: 3,
62
+ user: s.user._id,
63
+ category: "following"
64
+ }, null, 8, ["user"])) : o("", !0)
65
+ ]));
66
+ }
67
+ };
68
+ export {
69
+ H as default
70
+ };
@@ -0,0 +1,70 @@
1
+ import { ref as f, watch as g, openBlock as t, createElementBlock as p, createElementVNode as d, unref as u, createCommentVNode as o, createBlock as i } from "vue";
2
+ import { useRoute as v, useRouter as y } from "vue-router";
3
+ import { _ as b } from "./Tab-a243605d.mjs";
4
+ import { _ as m } from "./Feed-505b3fa8.mjs";
5
+ import { s } from "./auth-98fe3efb.mjs";
6
+ import "./inputs.validation-14e8e01f.mjs";
7
+ import "./globals-96ba60e4.mjs";
8
+ import "vue-i18n";
9
+ import "./EmptyState-34d85f10.mjs";
10
+ import "./_plugin-vue_export-helper-dad06003.mjs";
11
+ import "./Chips-5e32c8cb.mjs";
12
+ import "./IconEdit-680dc269.mjs";
13
+ import "./Button-c59d387c.mjs";
14
+ import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
15
+ import "./Select-11ddabf5.mjs";
16
+ import "./reports-79cd9459.mjs";
17
+ import "./index-a661083c.mjs";
18
+ import "./click-outside-6101836c.mjs";
19
+ const h = { class: "pd-thin" }, k = { class: "mn-medium flex-v-center flex-nowrap flex" }, w = /* @__PURE__ */ d("h2", { class: "mn-r-medium" }, "Posts", -1), H = {
20
+ __name: "ProfileBlogposts",
21
+ setup(q) {
22
+ const e = v(), c = y();
23
+ let _ = e.query.tab ? e.query.tab : "posts";
24
+ const r = f(_);
25
+ return e.query.tab = r.value, g(r, (l) => {
26
+ c.replace({ query: { ...e.query, tab: l } });
27
+ }), (l, a) => (t(), p("div", h, [
28
+ d("header", k, [
29
+ w,
30
+ s.user._id === u(e).params._id ? (t(), p("button", {
31
+ key: 0,
32
+ onClick: a[0] || (a[0] = (n) => l.$router.push({
33
+ name: "Create BlogPost"
34
+ })),
35
+ class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
36
+ }, " + ")) : o("", !0)
37
+ ]),
38
+ s.user._id === u(e).params._id ? (t(), i(b, {
39
+ key: 0,
40
+ selected: r.value,
41
+ "onUpdate:selected": a[1] || (a[1] = (n) => r.value = n),
42
+ tabs: [
43
+ { name: "My posts", value: "posts" },
44
+ { name: "Drafts", value: "drafts" },
45
+ { name: "Following", value: "following" }
46
+ ],
47
+ class: "mn-small o-hidden h5 radius-big bg-grey"
48
+ }, null, 8, ["selected"])) : o("", !0),
49
+ r.value === "posts" ? (t(), i(m, {
50
+ key: 1,
51
+ user: s.user._id,
52
+ creator: u(e).params._id
53
+ }, null, 8, ["user", "creator"])) : o("", !0),
54
+ r.value === "drafts" ? (t(), i(m, {
55
+ key: 2,
56
+ user: s.user._id,
57
+ creator: u(e).params._id,
58
+ status: "draft"
59
+ }, null, 8, ["user", "creator"])) : o("", !0),
60
+ r.value === "following" ? (t(), i(m, {
61
+ key: 3,
62
+ user: s.user._id,
63
+ category: "following"
64
+ }, null, 8, ["user"])) : o("", !0)
65
+ ]));
66
+ }
67
+ };
68
+ export {
69
+ H as default
70
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("vue-router"),d=require("./Tab-6f0a4909.js"),a=require("./Feed-e55bc6fa.js"),o=require("./auth-acbe3ae1.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Chips-8d0a1d2c.js");require("./IconEdit-e4d0cc6e.js");require("./Button-2ca405bd.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");const m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},_=e.createElementVNode("h2",{class:"mn-r-medium"},"Posts",-1),f={__name:"ProfileBlogposts",setup(q){const r=l.useRoute(),c=l.useRouter();let i=r.query.tab?r.query.tab:"posts";const t=e.ref(i);return r.query.tab=t.value,e.watch(t,u=>{c.replace({query:{...r.query,tab:u}})}),(u,s)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[_,o.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s[0]||(s[0]=n=>u.$router.push({name:"Create BlogPost"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),o.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createBlock(d._sfc_main,{key:0,selected:t.value,"onUpdate:selected":s[1]||(s[1]=n=>t.value=n),tabs:[{name:"My posts",value:"posts"},{name:"Drafts",value:"drafts"},{name:"Following",value:"following"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"])):e.createCommentVNode("",!0),t.value==="posts"?(e.openBlock(),e.createBlock(a._sfc_main,{key:1,user:o.state.user._id,creator:e.unref(r).params._id},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="drafts"?(e.openBlock(),e.createBlock(a._sfc_main,{key:2,user:o.state.user._id,creator:e.unref(r).params._id,status:"draft"},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="following"?(e.openBlock(),e.createBlock(a._sfc_main,{key:3,user:o.state.user._id,category:"following"},null,8,["user"])):e.createCommentVNode("",!0)]))}};exports.default=f;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("vue-router"),d=require("./Tab-6f0a4909.js"),a=require("./Feed-d0da2943.js"),o=require("./auth-acbe3ae1.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Chips-0e5bdd54.js");require("./IconEdit-1b7b5874.js");require("./Button-2ca405bd.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");const m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},_=e.createElementVNode("h2",{class:"mn-r-medium"},"Posts",-1),f={__name:"ProfileBlogposts",setup(q){const r=l.useRoute(),c=l.useRouter();let i=r.query.tab?r.query.tab:"posts";const t=e.ref(i);return r.query.tab=t.value,e.watch(t,u=>{c.replace({query:{...r.query,tab:u}})}),(u,s)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[_,o.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s[0]||(s[0]=n=>u.$router.push({name:"Create BlogPost"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),o.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createBlock(d._sfc_main,{key:0,selected:t.value,"onUpdate:selected":s[1]||(s[1]=n=>t.value=n),tabs:[{name:"My posts",value:"posts"},{name:"Drafts",value:"drafts"},{name:"Following",value:"following"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"])):e.createCommentVNode("",!0),t.value==="posts"?(e.openBlock(),e.createBlock(a._sfc_main,{key:1,user:o.state.user._id,creator:e.unref(r).params._id},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="drafts"?(e.openBlock(),e.createBlock(a._sfc_main,{key:2,user:o.state.user._id,creator:e.unref(r).params._id,status:"draft"},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="following"?(e.openBlock(),e.createBlock(a._sfc_main,{key:3,user:o.state.user._id,category:"following"},null,8,["user"])):e.createCommentVNode("",!0)]))}};exports.default=f;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("vue-router"),d=require("./Tab-6f0a4909.js"),c=require("./Feed-66095e66.js"),u=require("./auth-acbe3ae1.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./Chips-8d0a1d2c.js");require("./IconEdit-e4d0cc6e.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Button-2ca405bd.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");const m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},q=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),_={__name:"ProfileEvents",setup(v){const r=i.useRoute(),n=i.useRouter();let l=r.query.tab?r.query.tab:"owner";const t=e.ref(l);return r.query.tab=t.value,e.watch(t,s=>{n.replace({query:{...r.query,tab:s}})}),(s,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[q,u.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=o=>e.unref(n).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(c._sfc_main,{key:0,user:u.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(c._sfc_main,{key:1,user:u.state.user._id,participant:e.unref(r).params._id,sortOrder:"desc"},null,8,["user","participant"])):e.createCommentVNode("",!0)]))}};exports.default=_;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("vue-router"),d=require("./Tab-6f0a4909.js"),c=require("./Feed-ee36f80b.js"),u=require("./auth-acbe3ae1.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./Chips-0e5bdd54.js");require("./IconEdit-1b7b5874.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Button-2ca405bd.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");const m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},q=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),_={__name:"ProfileEvents",setup(v){const r=i.useRoute(),n=i.useRouter();let l=r.query.tab?r.query.tab:"owner";const t=e.ref(l);return r.query.tab=t.value,e.watch(t,s=>{n.replace({query:{...r.query,tab:s}})}),(s,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[q,u.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=o=>e.unref(n).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(c._sfc_main,{key:0,user:u.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(c._sfc_main,{key:1,user:u.state.user._id,participant:e.unref(r).params._id,sortOrder:"desc"},null,8,["user","participant"])):e.createCommentVNode("",!0)]))}};exports.default=_;
@@ -0,0 +1,62 @@
1
+ import { ref as f, watch as v, openBlock as a, createElementBlock as p, createElementVNode as d, unref as o, createCommentVNode as s, createVNode as b, createBlock as c } from "vue";
2
+ import { useRoute as y, useRouter as h } from "vue-router";
3
+ import { _ as k } from "./Tab-a243605d.mjs";
4
+ import { _ as l } from "./Feed-275a14d8.mjs";
5
+ import { s as i } from "./auth-98fe3efb.mjs";
6
+ import "./inputs.validation-14e8e01f.mjs";
7
+ import "./globals-96ba60e4.mjs";
8
+ import "vue-i18n";
9
+ import "./EmptyState-34d85f10.mjs";
10
+ import "./Chips-5e32c8cb.mjs";
11
+ import "./IconEdit-680dc269.mjs";
12
+ import "./_plugin-vue_export-helper-dad06003.mjs";
13
+ import "./Button-c59d387c.mjs";
14
+ import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
15
+ import "./Select-11ddabf5.mjs";
16
+ import "./reports-79cd9459.mjs";
17
+ import "./index-a661083c.mjs";
18
+ import "./click-outside-6101836c.mjs";
19
+ 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), I = {
20
+ __name: "ProfileEvents",
21
+ setup(x) {
22
+ const e = y(), n = h();
23
+ let _ = e.query.tab ? e.query.tab : "owner";
24
+ const r = f(_);
25
+ return e.query.tab = r.value, v(r, (m) => {
26
+ n.replace({ query: { ...e.query, tab: m } });
27
+ }), (m, t) => (a(), p("div", g, [
28
+ d("header", w, [
29
+ q,
30
+ i.user._id === o(e).params._id ? (a(), p("button", {
31
+ key: 0,
32
+ onClick: t[0] || (t[0] = (u) => o(n).push({ name: "Create Event" })),
33
+ class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
34
+ }, " + ")) : s("", !0)
35
+ ]),
36
+ b(k, {
37
+ selected: r.value,
38
+ "onUpdate:selected": t[1] || (t[1] = (u) => r.value = u),
39
+ tabs: [
40
+ { name: "My", value: "owner" },
41
+ { name: "Participant", value: "participant" }
42
+ ],
43
+ class: "mn-small o-hidden h5 radius-big bg-grey"
44
+ }, null, 8, ["selected"]),
45
+ r.value === "owner" ? (a(), c(l, {
46
+ key: 0,
47
+ user: i.user._id,
48
+ creator: o(e).params._id,
49
+ sortOrder: "asc"
50
+ }, null, 8, ["user", "creator"])) : s("", !0),
51
+ r.value === "participant" ? (a(), c(l, {
52
+ key: 1,
53
+ user: i.user._id,
54
+ participant: o(e).params._id,
55
+ sortOrder: "desc"
56
+ }, null, 8, ["user", "participant"])) : s("", !0)
57
+ ]));
58
+ }
59
+ };
60
+ export {
61
+ I as default
62
+ };
@@ -0,0 +1,62 @@
1
+ import { ref as f, watch as v, openBlock as a, createElementBlock as p, createElementVNode as d, unref as o, createCommentVNode as s, createVNode as b, createBlock as c } from "vue";
2
+ import { useRoute as y, useRouter as h } from "vue-router";
3
+ import { _ as k } from "./Tab-a243605d.mjs";
4
+ import { _ as l } from "./Feed-ef6c6ca3.mjs";
5
+ import { s as i } from "./auth-98fe3efb.mjs";
6
+ import "./inputs.validation-14e8e01f.mjs";
7
+ import "./globals-96ba60e4.mjs";
8
+ import "vue-i18n";
9
+ import "./EmptyState-34d85f10.mjs";
10
+ import "./Chips-2ada5eda.mjs";
11
+ import "./IconEdit-c98d3d06.mjs";
12
+ import "./_plugin-vue_export-helper-dad06003.mjs";
13
+ import "./Button-c59d387c.mjs";
14
+ import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
15
+ import "./Select-11ddabf5.mjs";
16
+ import "./reports-79cd9459.mjs";
17
+ import "./index-a661083c.mjs";
18
+ import "./click-outside-6101836c.mjs";
19
+ 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), I = {
20
+ __name: "ProfileEvents",
21
+ setup(x) {
22
+ const e = y(), n = h();
23
+ let _ = e.query.tab ? e.query.tab : "owner";
24
+ const r = f(_);
25
+ return e.query.tab = r.value, v(r, (m) => {
26
+ n.replace({ query: { ...e.query, tab: m } });
27
+ }), (m, t) => (a(), p("div", g, [
28
+ d("header", w, [
29
+ q,
30
+ i.user._id === o(e).params._id ? (a(), p("button", {
31
+ key: 0,
32
+ onClick: t[0] || (t[0] = (u) => o(n).push({ name: "Create Event" })),
33
+ class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
34
+ }, " + ")) : s("", !0)
35
+ ]),
36
+ b(k, {
37
+ selected: r.value,
38
+ "onUpdate:selected": t[1] || (t[1] = (u) => r.value = u),
39
+ tabs: [
40
+ { name: "My", value: "owner" },
41
+ { name: "Participant", value: "participant" }
42
+ ],
43
+ class: "mn-small o-hidden h5 radius-big bg-grey"
44
+ }, null, 8, ["selected"]),
45
+ r.value === "owner" ? (a(), c(l, {
46
+ key: 0,
47
+ user: i.user._id,
48
+ creator: o(e).params._id,
49
+ sortOrder: "asc"
50
+ }, null, 8, ["user", "creator"])) : s("", !0),
51
+ r.value === "participant" ? (a(), c(l, {
52
+ key: 1,
53
+ user: i.user._id,
54
+ participant: o(e).params._id,
55
+ sortOrder: "desc"
56
+ }, null, 8, ["user", "participant"])) : s("", !0)
57
+ ]));
58
+ }
59
+ };
60
+ export {
61
+ I as default
62
+ };
@@ -0,0 +1,219 @@
1
+ import { openBlock as r, createElementBlock as l, 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 p, 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-18c1e3fa.mjs";
6
+ import { _ as B } from "./_plugin-vue_export-helper-dad06003.mjs";
7
+ import { a as x } from "./organizations-ea9de495.mjs";
8
+ import { s as _ } from "./auth-98fe3efb.mjs";
9
+ import "./inputs.validation-14e8e01f.mjs";
10
+ import "./globals-96ba60e4.mjs";
11
+ import "vue-i18n";
12
+ import "./Button-c59d387c.mjs";
13
+ import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
14
+ import "./IconEdit-c98d3d06.mjs";
15
+ import "./Select-11ddabf5.mjs";
16
+ import "./reports-79cd9459.mjs";
17
+ import "./index-a661083c.mjs";
18
+ import "./click-outside-6101836c.mjs";
19
+ import "./ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-4ed993c7.mjs";
20
+ const E = {}, G = {
21
+ width: "100%",
22
+ height: "20rem",
23
+ xmlns: "http://www.w3.org/2000/svg"
24
+ }, 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 = [
25
+ P
26
+ ];
27
+ function T(f, e) {
28
+ return r(), l("svg", G, R);
29
+ }
30
+ const U = /* @__PURE__ */ B(E, [["render", T]]), j = { class: "feed" }, z = {
31
+ __name: "Feed",
32
+ props: {
33
+ category: {
34
+ type: String,
35
+ default: null
36
+ },
37
+ selectedDate: {
38
+ type: String,
39
+ default: null
40
+ },
41
+ organization: {
42
+ type: String,
43
+ default: null
44
+ },
45
+ owner: {
46
+ type: String,
47
+ default: null
48
+ },
49
+ user: {
50
+ type: [String, Number],
51
+ default: null
52
+ },
53
+ member: {
54
+ type: [String, Number],
55
+ default: null
56
+ },
57
+ subscriber: {
58
+ type: [String, Number],
59
+ default: null
60
+ },
61
+ sortOrder: {
62
+ type: String,
63
+ default: "desc"
64
+ },
65
+ participant: {
66
+ type: String,
67
+ default: null
68
+ },
69
+ period: {
70
+ type: String,
71
+ default: null
72
+ },
73
+ status: {
74
+ type: String,
75
+ default: null
76
+ }
77
+ },
78
+ setup(f) {
79
+ const e = f, a = c([]), s = c(!1), t = c(!0), n = c(0), i = c(20), b = async () => {
80
+ if (s.value) {
81
+ n.value += i.value;
82
+ const o = await x.read({
83
+ skip: n.value,
84
+ limit: i.value,
85
+ category: e.category,
86
+ sortOrder: e.sortOrder,
87
+ member: e.member,
88
+ subscriber: e.subscriber,
89
+ onlyuser: e.onlyuser,
90
+ user: e.user,
91
+ date: e.selectedDate,
92
+ owner: e.owner,
93
+ organization: e.organization,
94
+ period: e.period,
95
+ status: e.status
96
+ });
97
+ o.length === 0 ? s.value = !1 : s.value = !0, a.value = [...a.value, ...o];
98
+ }
99
+ };
100
+ return C(async () => {
101
+ t.value = !0, console.log(e.selectedDate);
102
+ const o = await x.read({
103
+ skip: n.value,
104
+ limit: i.value,
105
+ category: e.category,
106
+ member: e.member,
107
+ subscriber: e.subscriber,
108
+ onlyuser: e.onlyuser,
109
+ sortOrder: e.sortOrder,
110
+ user: e.user,
111
+ owner: e.owner,
112
+ date: e.selectedDate,
113
+ organization: e.organization,
114
+ period: e.period,
115
+ status: e.status
116
+ });
117
+ o.length === 0 ? s.value = !1 : s.value = !0, a.value = o, t.value = !1;
118
+ }), (o, J) => (r(), l("section", j, [
119
+ d(v, {
120
+ tag: "ul",
121
+ name: "fade",
122
+ class: "o-hidden bg-grey radius-big"
123
+ }, {
124
+ default: g(() => [
125
+ t.value ? (r(!0), l(k, { key: 0 }, w(i.value, (m) => (r(), p(U, { key: m }))), 128)) : u("", !0)
126
+ ]),
127
+ _: 1
128
+ }),
129
+ d(h, { name: "fade" }, {
130
+ default: g(() => [
131
+ !t.value && a.value.length < 1 ? (r(), p(L, {
132
+ key: 0,
133
+ title: "No Organizations Found",
134
+ description: "Currently, there are no organizations available. Please check back later.",
135
+ class: "pd-medium mn-thin bg-grey radius-big"
136
+ })) : u("", !0)
137
+ ]),
138
+ _: 1
139
+ }),
140
+ d(v, {
141
+ tag: "ul",
142
+ name: "fade",
143
+ class: "container"
144
+ }, {
145
+ default: g(() => [
146
+ !t.value && a.value.length > 0 ? (r(!0), l(k, { key: 0 }, w(a.value, (m, S) => (r(), p(V, {
147
+ onClick: (K) => o.$router.push({ name: "Organization", params: { _id: m._id } }),
148
+ key: m._id,
149
+ organization: m,
150
+ user: f.user,
151
+ type: "normal",
152
+ class: N(["w-100 radius-big mn-medium", {
153
+ "br-b br-solid br-black-transp-10": S !== a.value.length - 1
154
+ }])
155
+ }, null, 8, ["onClick", "organization", "user", "class"]))), 128)) : u("", !0),
156
+ s.value && a.value.length > 0 ? (r(), l("button", {
157
+ key: 1,
158
+ onClick: b,
159
+ class: "w-100 bg-main button"
160
+ }, "Load more")) : u("", !0)
161
+ ]),
162
+ _: 1
163
+ })
164
+ ]));
165
+ }
166
+ }, A = { class: "pd-thin" }, H = { class: "mn-medium flex-v-center flex-nowrap flex" }, I = /* @__PURE__ */ O("h2", { class: "mn-r-medium" }, "Groups", -1), pe = {
167
+ __name: "ProfileOrganizations",
168
+ setup(f) {
169
+ const e = M(), a = D();
170
+ let s = e.query.tab ? e.query.tab : "member";
171
+ const t = c(s);
172
+ return e.query.tab = t.value, q(t, (n) => {
173
+ a.replace({ query: { ...e.query, tab: n } });
174
+ }), (n, i) => (r(), l("div", A, [
175
+ O("header", H, [
176
+ I,
177
+ _.user._id === y(e).params._id ? (r(), l("button", {
178
+ key: 0,
179
+ onClick: i[0] || (i[0] = (b) => n.$router.push({
180
+ name: "Create Organization"
181
+ })),
182
+ class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
183
+ }, " + ")) : u("", !0)
184
+ ]),
185
+ d(F, {
186
+ selected: t.value,
187
+ "onUpdate:selected": i[1] || (i[1] = (b) => t.value = b),
188
+ tabs: [
189
+ { name: "Member", value: "member" },
190
+ { name: "Follower", value: "follower" }
191
+ ],
192
+ class: "mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"
193
+ }, null, 8, ["selected"]),
194
+ d(h, { name: "slide-fade" }, {
195
+ default: g(() => [
196
+ t.value === "member" ? (r(), p(z, {
197
+ key: 0,
198
+ user: _.user._id,
199
+ owner: y(e).params._id
200
+ }, null, 8, ["user", "owner"])) : u("", !0)
201
+ ]),
202
+ _: 1
203
+ }),
204
+ d(h, { name: "slide-fade" }, {
205
+ default: g(() => [
206
+ t.value === "follower" ? (r(), p(z, {
207
+ key: 0,
208
+ user: _.user._id,
209
+ subscriber: y(e).params._id
210
+ }, null, 8, ["user", "subscriber"])) : u("", !0)
211
+ ]),
212
+ _: 1
213
+ })
214
+ ]));
215
+ }
216
+ };
217
+ export {
218
+ pe as default
219
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("vue-router"),f=require("./Tab-6f0a4909.js"),y=require("./EmptyState-7658d7d6.js"),h=require("./CardOrganization-7d679e75.js"),k=require("./_plugin-vue_export-helper-f246444f.js"),g=require("./organizations-a241b21d.js"),d=require("./auth-acbe3ae1.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./Button-2ca405bd.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./IconEdit-e4d0cc6e.js");require("./Select-3ca5ab39.js");require("./reports-270f69df.js");require("./index-b41aac19.js");require("./click-outside-0b0727d1.js");require("./ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-0ea8fbf8.js");const _={},v={width:"100%",height:"20rem",xmlns:"http://www.w3.org/2000/svg"},w=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),q=[w];function x(u,t){return e.openBlock(),e.createElementBlock("svg",v,q)}const B=k._export_sfc(_,[["render",x]]),C={class:"feed"},p={__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),i=e.ref(0),n=e.ref(20),c=async()=>{if(o.value){i.value+=n.value;const l=await g.actions.read({skip:i.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});l.length===0?o.value=!1:o.value=!0,a.value=[...a.value,...l]}};return e.onMounted(async()=>{r.value=!0,console.log(t.selectedDate);const l=await g.actions.read({skip:i.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});l.length===0?o.value=!1:o.value=!0,a.value=l,r.value=!1}),(l,O)=>(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(B,{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,b)=>(e.openBlock(),e.createBlock(h._sfc_main,{onClick:E=>l.$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":b!==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"},V=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,i=>{a.replace({query:{...t.query,tab:i}})}),(i,n)=>(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("header",z,[V,d.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[0]||(n[0]=c=>i.$router.push({name:"Create Organization"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(f._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(p,{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(p,{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 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("vue-router"),f=require("./Tab-6f0a4909.js"),y=require("./EmptyState-7658d7d6.js"),h=require("./CardOrganization-88c6d479.js"),k=require("./_plugin-vue_export-helper-f246444f.js"),g=require("./organizations-a241b21d.js"),d=require("./auth-acbe3ae1.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./Button-2ca405bd.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./IconEdit-1b7b5874.js");require("./Select-3ca5ab39.js");require("./reports-270f69df.js");require("./index-b41aac19.js");require("./click-outside-0b0727d1.js");require("./ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-0ea8fbf8.js");const _={},v={width:"100%",height:"20rem",xmlns:"http://www.w3.org/2000/svg"},w=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),q=[w];function x(u,t){return e.openBlock(),e.createElementBlock("svg",v,q)}const B=k._export_sfc(_,[["render",x]]),C={class:"feed"},p={__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),i=e.ref(0),n=e.ref(20),c=async()=>{if(o.value){i.value+=n.value;const l=await g.actions.read({skip:i.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});l.length===0?o.value=!1:o.value=!0,a.value=[...a.value,...l]}};return e.onMounted(async()=>{r.value=!0,console.log(t.selectedDate);const l=await g.actions.read({skip:i.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});l.length===0?o.value=!1:o.value=!0,a.value=l,r.value=!1}),(l,O)=>(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(B,{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,b)=>(e.openBlock(),e.createBlock(h._sfc_main,{onClick:E=>l.$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":b!==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"},V=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,i=>{a.replace({query:{...t.query,tab:i}})}),(i,n)=>(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("header",z,[V,d.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[0]||(n[0]=c=>i.$router.push({name:"Create Organization"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(f._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(p,{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(p,{key:0,user:d.state.user._id,subscriber:e.unref(t).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=S;