@ozdao/prometheus-framework 0.1.38 → 0.1.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. package/dist/ButtonToggleMembership-738720bd.js +1 -0
  2. package/dist/ButtonToggleMembership-e337e704.mjs +90 -0
  3. package/dist/CardBlogpost-ae3b4d23.js +1 -0
  4. package/dist/CardBlogpost-c7adb0a7.mjs +246 -0
  5. package/dist/CardBlogpost-d6f49156.mjs +246 -0
  6. package/dist/CardBlogpost-f308ff64.js +1 -0
  7. package/dist/CardOrganization-22beb83d.js +1 -0
  8. package/dist/CardOrganization-ae384e54.mjs +234 -0
  9. package/dist/Chips-3a07f374.js +1 -0
  10. package/dist/Chips-a8681edd.mjs +213 -0
  11. package/dist/Chips-edf2b573.js +1 -0
  12. package/dist/Chips-f06ec38f.mjs +213 -0
  13. package/dist/Community-04b25965.mjs +130 -0
  14. package/dist/Community-2f6fee0f.js +1 -0
  15. package/dist/Community-72dbb933.js +1 -0
  16. package/dist/Community-b4d10da6.mjs +130 -0
  17. package/dist/Dashboard-73b50724.js +1 -0
  18. package/dist/Dashboard-bc81b5f6.mjs +151 -0
  19. package/dist/Dropdown-ef2df9a9.mjs +169 -0
  20. package/dist/Dropdown-f2564c92.js +1 -0
  21. package/dist/Events-0c6e3ef4.mjs +134 -0
  22. package/dist/Events-41d71b0e.js +1 -0
  23. package/dist/Events-4742f070.js +1 -0
  24. package/dist/Events-af7170ed.mjs +134 -0
  25. package/dist/Feed-04fe1f7a.mjs +361 -0
  26. package/dist/Feed-09b0790d.js +1 -0
  27. package/dist/Feed-12b12380.js +1 -0
  28. package/dist/Feed-23758089.mjs +124 -0
  29. package/dist/Feed-36e83be3.mjs +156 -0
  30. package/dist/Feed-5653cf8b.js +1 -0
  31. package/dist/Feed-585d5821.mjs +124 -0
  32. package/dist/Feed-5a359bb7.js +1 -0
  33. package/dist/Feed-6ca0541a.js +1 -0
  34. package/dist/Feed-807d265b.mjs +156 -0
  35. package/dist/Feed-90f74d6c.mjs +361 -0
  36. package/dist/Feed-a47977d3.js +1 -0
  37. package/dist/Image-268e2a1b.js +9 -0
  38. package/dist/Image-39955d9d.mjs +480 -0
  39. package/dist/Image-5423e8ce.mjs +480 -0
  40. package/dist/Image-c2d190d8.js +9 -0
  41. package/dist/LeftoverAdd-21311275.js +1 -0
  42. package/dist/LeftoverAdd-ccf4595f.mjs +228 -0
  43. package/dist/Members-7251dd52.mjs +109 -0
  44. package/dist/Members-9b013515.js +1 -0
  45. package/dist/Members-d35ab7e8.js +1 -0
  46. package/dist/Members-d64149f3.mjs +109 -0
  47. package/dist/Menu-93d34d9f.js +1 -0
  48. package/dist/Menu-eaf6b44c.mjs +13 -0
  49. package/dist/MenuItem-4a5881bd.mjs +85 -0
  50. package/dist/MenuItem-f35cad93.js +1 -0
  51. package/dist/Organizations-0fd5bc8b.mjs +72 -0
  52. package/dist/Organizations-a964d4b6.mjs +72 -0
  53. package/dist/Organizations-d360c360.js +1 -0
  54. package/dist/Organizations-ed6d36d6.js +1 -0
  55. package/dist/Popup-0d8e1392.mjs +96 -0
  56. package/dist/Popup-eb11fa82.js +1 -0
  57. package/dist/Product-299070ad.mjs +652 -0
  58. package/dist/Product-aacb05f3.js +7 -0
  59. package/dist/Product-e43dd2f1.js +7 -0
  60. package/dist/Product-e4e583f0.mjs +652 -0
  61. package/dist/ProductEdit-70bed802.mjs +296 -0
  62. package/dist/ProductEdit-e5a2e0f6.js +1 -0
  63. package/dist/ProductsBackoffice-3c182d6a.mjs +86 -0
  64. package/dist/ProductsBackoffice-b684913d.js +1 -0
  65. package/dist/ProfileBlogposts-6bf526fb.js +1 -0
  66. package/dist/ProfileBlogposts-8f6191d6.js +1 -0
  67. package/dist/ProfileBlogposts-aa839fcb.mjs +77 -0
  68. package/dist/ProfileBlogposts-d4b17535.mjs +77 -0
  69. package/dist/ProfileEvents-3eeb4320.mjs +68 -0
  70. package/dist/ProfileEvents-6b3fb52e.mjs +68 -0
  71. package/dist/ProfileEvents-893285bb.js +1 -0
  72. package/dist/ProfileEvents-90e09978.js +1 -0
  73. package/dist/ProfileOrganizations-738f444a.js +1 -0
  74. package/dist/ProfileOrganizations-c4fb03a1.mjs +72 -0
  75. package/dist/ProfileOrganizations-e838925f.js +1 -0
  76. package/dist/ProfileOrganizations-edf657ca.mjs +72 -0
  77. package/dist/Publics-a31d7fe7.js +1 -0
  78. package/dist/Publics-a8f31413.mjs +45 -0
  79. package/dist/Wallet-2043b611.mjs +24682 -0
  80. package/dist/Wallet-8fa7386a.js +55 -0
  81. package/dist/auth-076a83d0.mjs +625 -0
  82. package/dist/auth-df5a20c6.js +7 -0
  83. package/dist/auth.client.cjs +1 -1
  84. package/dist/auth.client.js +4 -4
  85. package/dist/auth.validation-80b133df.js +1 -0
  86. package/dist/auth.validation-fd9ae66f.mjs +24 -0
  87. package/dist/backoffice.client.cjs +1 -1
  88. package/dist/backoffice.client.js +12 -12
  89. package/dist/categories-4327a81c.js +1 -0
  90. package/dist/categories-52a561a4.mjs +122 -0
  91. package/dist/community.client.cjs +1 -1
  92. package/dist/community.client.js +205 -198
  93. package/dist/events.client.cjs +2 -2
  94. package/dist/events.client.js +17 -20
  95. package/dist/landing.client.cjs +1 -1
  96. package/dist/landing.client.js +64 -40
  97. package/dist/legal.client.cjs +1 -1
  98. package/dist/legal.client.js +5 -6
  99. package/dist/main.css +1 -1
  100. package/dist/modules/gallery/components/pages/Gallery.vue.d.ts +2 -0
  101. package/dist/modules/gallery/components/sections/GalleryWithCategories.vue.d.ts +2 -0
  102. package/dist/modules/globals/components/sections/Title.vue.d.ts +6 -0
  103. package/dist/organizations-966e1cd2.mjs +122 -0
  104. package/dist/organizations-d12c42b6.js +1 -0
  105. package/dist/organizations.client-63b476ff.mjs +2996 -0
  106. package/dist/organizations.client-696eacbb.js +3 -0
  107. package/dist/organizations.client-8f263e28.js +3 -0
  108. package/dist/organizations.client-9ffc023f.mjs +2996 -0
  109. package/dist/organizations.client.cjs +1 -1
  110. package/dist/organizations.client.js +49 -54
  111. package/dist/products-7e4253eb.js +1 -0
  112. package/dist/products-aabe5c02.mjs +108 -0
  113. package/dist/prometheus-framework.cjs.js +1 -1
  114. package/dist/prometheus-framework.es.js +2 -2
  115. package/dist/states.validation-4594b33c.mjs +13 -0
  116. package/dist/states.validation-69003e66.js +1 -0
  117. package/dist/style.css +1 -1
  118. package/dist/users.client.cjs +1 -1
  119. package/dist/users.client.js +286 -202
  120. package/package.json +1 -5
  121. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  122. package/src/components/LocationSelection/LocationSelection.vue +1 -1
  123. package/src/components/Navigation/Navigation.vue +12 -1
  124. package/src/modules/auth/store/auth.js +7 -4
  125. package/src/modules/files/middlewares/server/md.js +1 -0
  126. package/src/modules/gallery/components/pages/Gallery.vue +21 -0
  127. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +408 -0
  128. package/src/modules/gallery/gallery.client.js +11 -14
  129. package/src/modules/gallery/router/gallery.router.js +10 -0
  130. package/src/modules/globals/components/sections/Title.vue +22 -0
  131. package/src/modules/marketplace/router/marketplace.js +4 -3
  132. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  133. package/src/modules/products/components/pages/ProductRecommmendation.vue +5 -3
  134. package/src/modules/products/components/sections/SectionProduct.vue +17 -5
  135. package/src/modules/products/controllers/products.controller.js +83 -0
  136. package/src/modules/products/routes/products.routes.js +5 -5
  137. package/src/modules/spots/components/layouts/Spots.vue +16 -11
  138. package/src/modules/spots/components/pages/Map.vue +9 -7
  139. package/src/modules/users/components/pages/Profile.vue +15 -5
  140. package/src/modules/users/router/users.js +10 -0
  141. package/src/modules/wallet/components/pages/Wallet.vue +104 -23
@@ -0,0 +1,68 @@
1
+ import { ref as f, watch as v, openBlock as o, createElementBlock as u, createElementVNode as d, unref as a, createCommentVNode as i, 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-054b61f7.mjs";
4
+ import { _ as l } from "./Feed-90f74d6c.mjs";
5
+ import { s } from "./auth-ec618cb3.mjs";
6
+ import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
7
+ import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
8
+ import "./EmptyState-e404b05d.mjs";
9
+ import "./Chips-a8681edd.mjs";
10
+ import "./Dropdown-ef2df9a9.mjs";
11
+ import "./_plugin-vue_export-helper-dad06003.mjs";
12
+ import "./Popup-0d8e1392.mjs";
13
+ import "vue-i18n";
14
+ import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
15
+ import "./Button-9e1a9284.mjs";
16
+ import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
17
+ import "./Select-11ddabf5.mjs";
18
+ import "./reports-79cd9459.mjs";
19
+ import "./globals-96ba60e4.mjs";
20
+ import "./index-a661083c.mjs";
21
+ import "./click-outside-6101836c.mjs";
22
+ import "./memberships-12210953.mjs";
23
+ import "./IconEdit-9edfd74d.mjs";
24
+ import "./SkeletonEvent-8690422d.mjs";
25
+ 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), T = {
26
+ __name: "ProfileEvents",
27
+ setup(x) {
28
+ const e = y(), m = h();
29
+ let _ = e.query.tab ? e.query.tab : "owner";
30
+ const r = f(_);
31
+ return e.query.tab = r.value, v(r, (n) => {
32
+ m.replace({ query: { ...e.query, tab: n } });
33
+ }), (n, t) => (o(), u("div", g, [
34
+ d("header", w, [
35
+ q,
36
+ s.user._id === a(e).params._id ? (o(), u("button", {
37
+ key: 0,
38
+ onClick: t[0] || (t[0] = (p) => a(m).push({ name: "Create Event" })),
39
+ class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
40
+ }, " + ")) : i("", !0)
41
+ ]),
42
+ b(k, {
43
+ selected: r.value,
44
+ "onUpdate:selected": t[1] || (t[1] = (p) => r.value = p),
45
+ tabs: [
46
+ { name: "My", value: "owner" },
47
+ { name: "Participant", value: "participant" }
48
+ ],
49
+ class: "mn-small o-hidden h5 radius-big bg-grey"
50
+ }, null, 8, ["selected"]),
51
+ r.value === "owner" ? (o(), c(l, {
52
+ key: 0,
53
+ user: s.user._id,
54
+ creator: a(e).params._id,
55
+ sortOrder: "asc"
56
+ }, null, 8, ["user", "creator"])) : i("", !0),
57
+ r.value === "participant" ? (o(), c(l, {
58
+ key: 1,
59
+ user: s.user._id,
60
+ participant: a(e).params._id,
61
+ sortOrder: "desc"
62
+ }, null, 8, ["user", "participant"])) : i("", !0)
63
+ ]));
64
+ }
65
+ };
66
+ export {
67
+ T as default
68
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("vue-router"),d=require("./Tab-2c1e4224.js"),c=require("./Feed-a47977d3.js"),a=require("./auth-06d35b82.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-d65bab5b.js");require("./Chips-3a07f374.js");require("./Dropdown-f2564c92.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Popup-eb11fa82.js");require("vue-i18n");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Select-3ca5ab39.js");require("./reports-270f69df.js");require("./globals-928eb13c.js");require("./index-b41aac19.js");require("./click-outside-0b0727d1.js");require("./memberships-393765d8.js");require("./IconEdit-c0469b45.js");require("./SkeletonEvent-eb284de8.js");const m={class:"pd-thin"},q={class:"mn-medium flex-v-center flex-nowrap flex"},p=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),_={__name:"ProfileEvents",setup(v){const r=o.useRoute(),n=o.useRouter();let l=r.query.tab?r.query.tab:"owner";const t=e.ref(l);return r.query.tab=t.value,e.watch(t,i=>{n.replace({query:{...r.query,tab:i}})}),(i,u)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",q,[p,a.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u[0]||(u[0]=s=>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":u[1]||(u[1]=s=>t.value=s),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:a.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:a.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"),o=require("vue-router"),d=require("./Tab-2c1e4224.js"),c=require("./Feed-6ca0541a.js"),a=require("./auth-df5a20c6.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-d65bab5b.js");require("./Chips-edf2b573.js");require("./Dropdown-f2564c92.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Popup-eb11fa82.js");require("vue-i18n");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Select-3ca5ab39.js");require("./reports-270f69df.js");require("./globals-928eb13c.js");require("./index-b41aac19.js");require("./click-outside-0b0727d1.js");require("./memberships-393765d8.js");require("./IconEdit-c0469b45.js");require("./SkeletonEvent-eb284de8.js");const m={class:"pd-thin"},q={class:"mn-medium flex-v-center flex-nowrap flex"},p=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),_={__name:"ProfileEvents",setup(v){const r=o.useRoute(),n=o.useRouter();let l=r.query.tab?r.query.tab:"owner";const t=e.ref(l);return r.query.tab=t.value,e.watch(t,i=>{n.replace({query:{...r.query,tab:i}})}),(i,u)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",q,[p,a.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u[0]||(u[0]=s=>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":u[1]||(u[1]=s=>t.value=s),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:a.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:a.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"),s=require("vue-router"),d=require("./Tab-2c1e4224.js"),i=require("./Feed-12b12380.js"),o=require("./auth-06d35b82.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-d65bab5b.js");require("./CardOrganization-d93c9bdb.js");require("./ButtonToggleMembership-15f149cb.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./memberships-393765d8.js");require("./index-b41aac19.js");require("./globals-928eb13c.js");require("vue-i18n");require("./_plugin-vue_export-helper-f246444f.js");require("./organizations-4d18a2e2.js");const m={class:"pd-thin"},q={class:"mn-medium flex-v-center flex-nowrap flex"},b=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),_={__name:"ProfileOrganizations",setup(f){const r=s.useRoute(),l=s.useRouter();let c=r.query.tab?r.query.tab:"member";const t=e.ref(c);return r.query.tab=t.value,e.watch(t,a=>{l.replace({query:{...r.query,tab:a}})}),(a,u)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",q,[b,o.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u[0]||(u[0]=n=>a.$router.push({name:"Create Organization"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(d._sfc_main,{selected:t.value,"onUpdate:selected":u[1]||(u[1]=n=>t.value=n),tabs:[{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="member"?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,user:o.state.user._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="follower"?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,user:o.state.user._id,subscriber:e.unref(r).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=_;
@@ -0,0 +1,72 @@
1
+ import { ref as h, watch as w, openBlock as o, createElementBlock as l, createElementVNode as f, unref as s, createCommentVNode as i, createVNode as m, Transition as d, withCtx as p, createBlock as c } from "vue";
2
+ import { useRoute as y, useRouter as g } from "vue-router";
3
+ import { _ as k } from "./Tab-054b61f7.mjs";
4
+ import { _ } from "./Feed-807d265b.mjs";
5
+ import { s as u } from "./auth-ec618cb3.mjs";
6
+ import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
7
+ import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
8
+ import "./EmptyState-e404b05d.mjs";
9
+ import "./CardOrganization-e920be73.mjs";
10
+ import "./ButtonToggleMembership-3bb9139e.mjs";
11
+ import "./Button-9e1a9284.mjs";
12
+ import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
13
+ import "./memberships-12210953.mjs";
14
+ import "./index-a661083c.mjs";
15
+ import "./globals-96ba60e4.mjs";
16
+ import "vue-i18n";
17
+ import "./_plugin-vue_export-helper-dad06003.mjs";
18
+ import "./organizations-6ed907e3.mjs";
19
+ const q = { class: "pd-thin" }, x = { class: "mn-medium flex-v-center flex-nowrap flex" }, C = /* @__PURE__ */ f("h2", { class: "mn-r-medium" }, "Groups", -1), J = {
20
+ __name: "ProfileOrganizations",
21
+ setup($) {
22
+ const e = y(), b = g();
23
+ let v = e.query.tab ? e.query.tab : "member";
24
+ const r = h(v);
25
+ return e.query.tab = r.value, w(r, (a) => {
26
+ b.replace({ query: { ...e.query, tab: a } });
27
+ }), (a, t) => (o(), l("div", q, [
28
+ f("header", x, [
29
+ C,
30
+ u.user._id === s(e).params._id ? (o(), l("button", {
31
+ key: 0,
32
+ onClick: t[0] || (t[0] = (n) => a.$router.push({
33
+ name: "Create Organization"
34
+ })),
35
+ class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
36
+ }, " + ")) : i("", !0)
37
+ ]),
38
+ m(k, {
39
+ selected: r.value,
40
+ "onUpdate:selected": t[1] || (t[1] = (n) => r.value = n),
41
+ tabs: [
42
+ { name: "Member", value: "member" },
43
+ { name: "Follower", value: "follower" }
44
+ ],
45
+ class: "mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"
46
+ }, null, 8, ["selected"]),
47
+ m(d, { name: "slide-fade" }, {
48
+ default: p(() => [
49
+ r.value === "member" ? (o(), c(_, {
50
+ key: 0,
51
+ user: u.user._id,
52
+ owner: s(e).params._id
53
+ }, null, 8, ["user", "owner"])) : i("", !0)
54
+ ]),
55
+ _: 1
56
+ }),
57
+ m(d, { name: "slide-fade" }, {
58
+ default: p(() => [
59
+ r.value === "follower" ? (o(), c(_, {
60
+ key: 0,
61
+ user: u.user._id,
62
+ subscriber: s(e).params._id
63
+ }, null, 8, ["user", "subscriber"])) : i("", !0)
64
+ ]),
65
+ _: 1
66
+ })
67
+ ]));
68
+ }
69
+ };
70
+ export {
71
+ J as default
72
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("vue-router"),d=require("./Tab-2c1e4224.js"),i=require("./Feed-5653cf8b.js"),o=require("./auth-df5a20c6.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-d65bab5b.js");require("./CardOrganization-22beb83d.js");require("./ButtonToggleMembership-738720bd.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./memberships-393765d8.js");require("./index-b41aac19.js");require("./globals-928eb13c.js");require("vue-i18n");require("./_plugin-vue_export-helper-f246444f.js");require("./organizations-d12c42b6.js");const m={class:"pd-thin"},q={class:"mn-medium flex-v-center flex-nowrap flex"},b=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),_={__name:"ProfileOrganizations",setup(f){const r=s.useRoute(),l=s.useRouter();let c=r.query.tab?r.query.tab:"member";const t=e.ref(c);return r.query.tab=t.value,e.watch(t,a=>{l.replace({query:{...r.query,tab:a}})}),(a,u)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",q,[b,o.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u[0]||(u[0]=n=>a.$router.push({name:"Create Organization"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(d._sfc_main,{selected:t.value,"onUpdate:selected":u[1]||(u[1]=n=>t.value=n),tabs:[{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="member"?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,user:o.state.user._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="follower"?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,user:o.state.user._id,subscriber:e.unref(r).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=_;
@@ -0,0 +1,72 @@
1
+ import { ref as h, watch as w, openBlock as o, createElementBlock as l, createElementVNode as f, unref as s, createCommentVNode as i, createVNode as m, Transition as d, withCtx as p, createBlock as c } from "vue";
2
+ import { useRoute as y, useRouter as g } from "vue-router";
3
+ import { _ as k } from "./Tab-054b61f7.mjs";
4
+ import { _ } from "./Feed-36e83be3.mjs";
5
+ import { s as u } from "./auth-076a83d0.mjs";
6
+ import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
7
+ import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
8
+ import "./EmptyState-e404b05d.mjs";
9
+ import "./CardOrganization-ae384e54.mjs";
10
+ import "./ButtonToggleMembership-e337e704.mjs";
11
+ import "./Button-9e1a9284.mjs";
12
+ import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
13
+ import "./memberships-12210953.mjs";
14
+ import "./index-a661083c.mjs";
15
+ import "./globals-96ba60e4.mjs";
16
+ import "vue-i18n";
17
+ import "./_plugin-vue_export-helper-dad06003.mjs";
18
+ import "./organizations-966e1cd2.mjs";
19
+ const q = { class: "pd-thin" }, x = { class: "mn-medium flex-v-center flex-nowrap flex" }, C = /* @__PURE__ */ f("h2", { class: "mn-r-medium" }, "Groups", -1), J = {
20
+ __name: "ProfileOrganizations",
21
+ setup($) {
22
+ const e = y(), b = g();
23
+ let v = e.query.tab ? e.query.tab : "member";
24
+ const r = h(v);
25
+ return e.query.tab = r.value, w(r, (a) => {
26
+ b.replace({ query: { ...e.query, tab: a } });
27
+ }), (a, t) => (o(), l("div", q, [
28
+ f("header", x, [
29
+ C,
30
+ u.user._id === s(e).params._id ? (o(), l("button", {
31
+ key: 0,
32
+ onClick: t[0] || (t[0] = (n) => a.$router.push({
33
+ name: "Create Organization"
34
+ })),
35
+ class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
36
+ }, " + ")) : i("", !0)
37
+ ]),
38
+ m(k, {
39
+ selected: r.value,
40
+ "onUpdate:selected": t[1] || (t[1] = (n) => r.value = n),
41
+ tabs: [
42
+ { name: "Member", value: "member" },
43
+ { name: "Follower", value: "follower" }
44
+ ],
45
+ class: "mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"
46
+ }, null, 8, ["selected"]),
47
+ m(d, { name: "slide-fade" }, {
48
+ default: p(() => [
49
+ r.value === "member" ? (o(), c(_, {
50
+ key: 0,
51
+ user: u.user._id,
52
+ owner: s(e).params._id
53
+ }, null, 8, ["user", "owner"])) : i("", !0)
54
+ ]),
55
+ _: 1
56
+ }),
57
+ m(d, { name: "slide-fade" }, {
58
+ default: p(() => [
59
+ r.value === "follower" ? (o(), c(_, {
60
+ key: 0,
61
+ user: u.user._id,
62
+ subscriber: s(e).params._id
63
+ }, null, 8, ["user", "subscriber"])) : i("", !0)
64
+ ]),
65
+ _: 1
66
+ })
67
+ ]));
68
+ }
69
+ };
70
+ export {
71
+ J as default
72
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),l=require("./CardOrganization-22beb83d.js"),u=require("./EmptyState-d65bab5b.js"),o=require("./auth-df5a20c6.js"),d=require("./organizations-d12c42b6.js"),m=require("./memberships-393765d8.js");const _={class:"w-100 o-scroll"},p={key:1,class:"w-max gap-thin flex-nowrap flex"},f={__name:"Publics",setup(h){let t=e.ref(null);e.onMounted(async()=>{t.value=await d.actions.read({user:o.state.user._id,sort:"numberOfMemberships",limit:10,types:["public"]})});const a=({membership:r,status:s,target:n},i,c)=>{m.mutations.handleMembershipUpdate(organizations.state.current,r,s,n,i,c)};return(r,s)=>(e.openBlock(),e.createElementBlock("div",_,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(u._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",p,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(n,i)=>(e.openBlock(),e.createBlock(l._sfc_main,{key:n._id,organization:n,user:o.state.user,onUpdateMembership:a,class:"flex-child-1 flex-child w-25r"},null,8,["organization","user"]))),128)):e.createCommentVNode("",!0)]))]))}};exports._sfc_main=f;
@@ -0,0 +1,45 @@
1
+ import { ref as d, onMounted as _, openBlock as t, createElementBlock as n, unref as s, createBlock as l, Fragment as p, renderList as f, createCommentVNode as h } from "vue";
2
+ import { _ as y } from "./CardOrganization-ae384e54.mjs";
3
+ import { _ as b } from "./EmptyState-e404b05d.mjs";
4
+ import { s as c } from "./auth-076a83d0.mjs";
5
+ import { a as g } from "./organizations-966e1cd2.mjs";
6
+ import { m as x } from "./memberships-12210953.mjs";
7
+ const k = { class: "w-100 o-scroll" }, w = {
8
+ key: 1,
9
+ class: "w-max gap-thin flex-nowrap flex"
10
+ }, $ = {
11
+ __name: "Publics",
12
+ setup(v) {
13
+ let e = d(null);
14
+ _(async () => {
15
+ e.value = await g.read({
16
+ user: c.user._id,
17
+ sort: "numberOfMemberships",
18
+ limit: 10,
19
+ types: ["public"]
20
+ });
21
+ });
22
+ const m = ({ membership: o, status: i, target: r }, a, u) => {
23
+ x.handleMembershipUpdate(organizations.state.current, o, i, r, a, u);
24
+ };
25
+ return (o, i) => (t(), n("div", k, [
26
+ !s(e) || s(e).length < 1 ? (t(), l(b, {
27
+ key: 0,
28
+ title: "Unfortunately, we couldn't find any recommendations for you",
29
+ description: "Explore and find a community or organization that suits your interests.",
30
+ class: "radius-big bg-grey pd-medium"
31
+ })) : (t(), n("div", w, [
32
+ s(e) ? (t(!0), n(p, { key: 0 }, f(s(e), (r, a) => (t(), l(y, {
33
+ key: r._id,
34
+ organization: r,
35
+ user: c.user,
36
+ onUpdateMembership: m,
37
+ class: "flex-child-1 flex-child w-25r"
38
+ }, null, 8, ["organization", "user"]))), 128)) : h("", !0)
39
+ ]))
40
+ ]));
41
+ }
42
+ };
43
+ export {
44
+ $ as _
45
+ };