@ozdao/prometheus-framework 0.1.53 → 0.1.54

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/dist/components/Upload/Upload.vue.d.ts.map +1 -1
  2. package/dist/main.css +1 -1
  3. package/dist/modules/constructor/components/elements/Audio.vue.d.ts +9 -0
  4. package/dist/modules/constructor/components/elements/Embed.vue.d.ts +9 -0
  5. package/dist/modules/constructor/components/elements/H2.vue.d.ts +1 -1
  6. package/dist/modules/constructor/components/elements/Textarea.vue.d.ts +1 -1
  7. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  8. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +36 -27
  9. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  11. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -0
  12. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +46 -0
  13. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -0
  14. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +48 -0
  15. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +69 -60
  17. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  18. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  19. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
  21. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
  23. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  25. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +15 -15
  27. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +81 -99
  29. package/dist/prometheus-framework.cjs.js +19 -19
  30. package/dist/prometheus-framework.es.js +530 -522
  31. package/dist/style.css +1 -1
  32. package/package.json +1 -1
  33. package/src/components/Button/Button.vue +1 -1
  34. package/src/components/Upload/Upload.vue +28 -8
  35. package/src/modules/constructor/components/elements/Audio.vue +82 -0
  36. package/src/modules/constructor/components/elements/Embed.vue +85 -0
  37. package/src/modules/constructor/components/sections/Constructor.vue +54 -7
  38. package/src/modules/globals/mixins/mixins.js +52 -0
  39. package/src/modules/globals/router/routerGuards.js +28 -0
  40. package/src/modules/marketplace/components/layouts/Marketplace.vue +0 -1
  41. package/src/modules/organizations/components/pages/Organization.vue +2 -2
  42. package/src/modules/users/components/pages/Profile.vue +5 -3
  43. package/src/styles/theme.scss +0 -1
  44. package/src/styles/components/button.scss +0 -253
@@ -1,10 +1,10 @@
1
- import { ref as b, onMounted as h, watch as z, openBlock as a, createElementBlock as g, createVNode as r, createElementVNode as d, unref as i, Transition as n, withCtx as m, createBlock as l, createCommentVNode as o } from "vue";
1
+ import { ref as b, onMounted as h, watch as z, openBlock as a, createElementBlock as g, createVNode as r, createElementVNode as d, unref as s, Transition as n, withCtx as m, createBlock as l, createCommentVNode as o } from "vue";
2
2
  import { useRouter as $, useRoute as k } from "vue-router";
3
3
  import "vue-i18n";
4
4
  import "../../../globals/localization/vue-i18n.js";
5
5
  import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
6
6
  import w from "../../../../components/Tab/Tab.vue2.js";
7
- import "../../../mobile/components/Menu/Menu.vue.js";
7
+ import "../../../mobile/components/Menu/Menu.vue2.js";
8
8
  import "../../../mobile/components/Menu/MenuItem.vue.js";
9
9
  import q from "../../../events/components/sections/Feed.vue.js";
10
10
  import C from "../../../community/components/sections/Feed.vue.js";
@@ -31,9 +31,9 @@ const M = {
31
31
  class: "pd-thin for-transition w-100"
32
32
  }, R = /* @__PURE__ */ d("p", null, "34 members", -1), D = [
33
33
  R
34
- ], P = { class: "pos-relative" }, S = { key: 0 }, ce = {
34
+ ], T = { class: "pos-relative" }, U = { key: 0 }, ce = {
35
35
  __name: "Organization",
36
- setup(T) {
36
+ setup(j) {
37
37
  const c = $(), e = k();
38
38
  let y = e.query.tab ? e.query.tab : "events";
39
39
  const _ = b(null);
@@ -43,39 +43,39 @@ const M = {
43
43
  const t = b(y);
44
44
  return e.query.tab = t.value, z(t, (f) => {
45
45
  c.replace({ query: { ...e.query, tab: f } });
46
- }), (f, s) => _.value ? (a(), g("div", M, [
46
+ }), (f, i) => _.value ? (a(), g("div", M, [
47
47
  r(x, {
48
48
  organization: p.current,
49
49
  user: u.user,
50
50
  class: "mn-semi"
51
51
  }, null, 8, ["organization", "user"]),
52
52
  d("section", {
53
- onClick: s[0] || (s[0] = (v) => i(c).push({
53
+ onClick: i[0] || (i[0] = (v) => s(c).push({
54
54
  name: "Organization Members",
55
55
  params: {
56
- _id: i(e).params._id
56
+ _id: s(e).params._id
57
57
  }
58
58
  })),
59
59
  class: "mn-semi bg-grey radius-big pd-medium"
60
60
  }, D),
61
61
  r(w, {
62
62
  selected: t.value,
63
- "onUpdate:selected": s[1] || (s[1] = (v) => t.value = v),
63
+ "onUpdate:selected": i[1] || (i[1] = (v) => t.value = v),
64
64
  tabs: [
65
65
  { name: "Community", value: "community" },
66
- { name: "Products", value: "products" },
67
- { name: "Events", value: "events" },
68
- { name: "Spots", value: "spots" }
66
+ // { name: 'Products', value: 'products' },
67
+ { name: "Events", value: "events" }
68
+ // { name: 'Spots', value: 'spots' }
69
69
  ],
70
70
  class: "mn-small o-hidden h5 radius-big bg-grey"
71
71
  }, null, 8, ["selected"]),
72
- d("div", P, [
72
+ d("div", T, [
73
73
  r(n, { name: "slide-fade" }, {
74
74
  default: m(() => [
75
75
  t.value === "community" ? (a(), l(C, {
76
76
  key: 0,
77
77
  user: u.user._id,
78
- owner: i(e).params._id
78
+ owner: s(e).params._id
79
79
  }, null, 8, ["user", "owner"])) : o("", !0)
80
80
  ]),
81
81
  _: 1
@@ -85,7 +85,7 @@ const M = {
85
85
  t.value === "events" ? (a(), l(q, {
86
86
  key: 0,
87
87
  user: u.user._id,
88
- owner: i(e).params._id,
88
+ owner: s(e).params._id,
89
89
  sortOrder: "asc"
90
90
  }, null, 8, ["user", "owner"])) : o("", !0)
91
91
  ]),
@@ -102,7 +102,7 @@ const M = {
102
102
  }),
103
103
  r(n, { name: "slide-fade" }, {
104
104
  default: m(() => [
105
- t.value === "spots" ? (a(), g("div", S, [
105
+ t.value === "spots" ? (a(), g("div", U, [
106
106
  r(O, {
107
107
  organization: p.current,
108
108
  memberships: N.memberships
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const h=require("../../../../components/Dropdown/Dropdown.vue.cjs"),u=require("../../../mobile/components/Menu/Menu.vue2.cjs"),l=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),b=require("../../../reports/components/sections/FormReport.vue.cjs"),N=require("../../../organizations/components/blocks/Socials.vue.cjs"),V=require("../sections/ProfileCompletion.vue.cjs"),w=require("../../../icons/entities/IconEvents.vue.cjs"),f=require("../../../icons/entities/IconGroups.vue.cjs"),B=require("../../../icons/entities/IconCommunity.vue.cjs"),C=require("../../../icons/navigation/IconEdit.vue.cjs"),E=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),_=require("vue-router"),a=require("../../../auth/store/auth.cjs"),t=require("../../store/users.cjs"),y=require("../../../organizations/store/memberships.cjs");require("./Profile.vue2.cjs");const x={key:0,class:"for-transition w-100"},v={key:0,class:"flex-center flex pd-medium radius-big bg-grey uppercase t-semi w-100 h-100"},q={key:1,_id:"dash",class:"pd-b-extra pd-thin w-100"},S={class:"flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey"},U={class:"bg-black pd-thin radius-small"},M=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),R=["src"],$={class:"mn-thin"},D={class:"mn-thin t-main t-semi"},O={class:"mn-small p-medium"},I={class:"mn-medium flex-center flex-nowrap flex"},L={class:"t-semi mn-small"},P={key:5,class:"mn-t-small mn-thin"},F=e.createElementVNode("span",null," Backoffice ",-1),j=e.createElementVNode("span",null,"Events",-1),A=e.createElementVNode("span",null,"Groups",-1),T=e.createElementVNode("span",null,"Posts",-1),z=e.createElementVNode("span",null,"Wallet",-1),G=e.createElementVNode("span",null," Settings ",-1),W=e.createElementVNode("span",null," About ",-1),H=e.createElementVNode("span",{class:"t-red"}," Logout ",-1),J={__name:"Profile",setup(K){const o=_.useRoute(),n=_.useRouter(),c=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:o.params._id,user:a.state.user._id}),c.value=!0});const m=({membership:i,status:r,target:s},d,g)=>{y.mutations.handleMembershipUpdate(t.state.current,i,r,s,d,g)};function k(){a.actions.logout(),n.push({name:"Sign In"})}return(i,r)=>c.value?(e.openBlock(),e.createElementBlock("div",x,[t.state.current.status==="removed"?(e.openBlock(),e.createElementBlock("div",v," Sorry, user has been removed. ")):(e.openBlock(),e.createElementBlock("div",q,[e.unref(o).params._id===a.state.user._id&&c.value?(e.openBlock(),e.createBlock(V.default,{key:0,user:a.state.user._id,target:t.state.current,cta:!0},null,8,["user","target"])):e.createCommentVNode("",!0),e.createElementVNode("section",S,[e.unref(o).params._id&&e.unref(o).params._id!==a.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",U,[e.createVNode(b.default,{user:a.state.user._id,type:"user",target:t.state.current._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[M]),_:1},8,["user","target"]),a.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:a.state.user._id,type:"user",role:"blocked",target:t.state.current._id,status:t.state.current.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:r[0]||(r[0]=s=>m(s,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0),e.unref(o).params._id===a.state.user._id?(e.openBlock(),e.createBlock(C.default,{key:1,onClick:r[1]||(r[1]=s=>i.$router.push({name:"User Edit Profile",params:{_id:a.state.user._id}})),class:"pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.state.current.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.state.current.profile.photo,class:"radius-extra bg-white mn-small object-fit-cover i-extra"},null,8,R)):(e.openBlock(),e.createBlock(E.default,{key:3,class:"radius-medium mn-small i-extra"})),e.createElementVNode("h3",$,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Not specified"),1),e.createElementVNode("p",D," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1),e.createElementVNode("p",O,e.toDisplayString(t.state.current.profile.description?t.state.current.profile.description:"Not specified"),1),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.roles,(s,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":d!==t.state.current.roles.length-1}])},e.toDisplayString(s.icon)+" "+e.toDisplayString(s.name),3))),256))]),e.createElementVNode("p",L," 👨‍👨‍👧‍👧 "+e.toDisplayString(t.state.current.numberOfSubscribers)+" followers ",1),a.state.user._id&&e.unref(o).params._id&&e.unref(o).params._id!==a.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:4,user:a.state.user._id,type:"user",role:"subscriber",target:t.state.current._id,status:t.state.current.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:r[2]||(r[2]=s=>m(s,"isSubscriber","numberOfSubscribers")),class:"w-min mn-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.state.current.socials).some(s=>s)?(e.openBlock(),e.createElementBlock("h4",P," Find Me in Socials ")):e.createCommentVNode("",!0),e.createVNode(N.default,{telegram:t.state.current.socials.telegram,facebook:t.state.current.socials.facebook,instagram:t.state.current.socials.instagram,twitter:t.state.current.socials.twitter,class:"mn-r-auto mn-l-auto"},null,8,["telegram","facebook","instagram","twitter"])]),a.state.access.roles&&a.state.user._id===e.unref(o).params._id&&(a.state.access.roles.includes("ROLE_MODERATOR")||a.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createBlock(u.default,{key:1,class:"mn-regular bg-black t-white"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[3]||(r[3]=s=>e.unref(n).push({name:"Backoffice",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer",theme:"white"},{default:e.withCtx(()=>[F]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(u.default,{class:"mn-regular bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[4]||(r[4]=s=>e.unref(n).push({name:"User Events",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",icon:!0}),j]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=s=>e.unref(n).push({name:"User Organizations",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),A]),_:1}),e.createVNode(l.default,{onClick:r[6]||(r[6]=s=>e.unref(n).push({name:"User Blogposts",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(B.default,{class:"i-semi",icon:!0}),T]),_:1})]),_:1}),e.createVNode(u.default,{class:"mn-regular bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[7]||(r[7]=s=>e.unref(n).push({name:"User Wallet",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),z]),_:1})]),_:1}),a.state.user._id===e.unref(o).params._id?(e.openBlock(),e.createBlock(u.default,{key:2,class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[8]||(r[8]=s=>e.unref(n).push({name:"User Edit Profile",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[G]),_:1}),e.createVNode(l.default,{onClick:r[9]||(r[9]=s=>e.unref(n).push({name:"Legal",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[W]),_:1}),e.createVNode(l.default,{class:"cursor-pointer",onClick:r[10]||(r[10]=s=>k())},{default:e.withCtx(()=>[H]),_:1})]),_:1})):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}};exports.default=J;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const h=require("../../../../components/Dropdown/Dropdown.vue.cjs"),d=require("../../../mobile/components/Menu/Menu.vue.cjs"),l=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),g=require("../../../reports/components/sections/FormReport.vue.cjs"),b=require("../../../organizations/components/blocks/Socials.vue.cjs"),N=require("../sections/ProfileCompletion.vue.cjs"),V=require("../../../icons/entities/IconEvents.vue.cjs"),B=require("../../../icons/entities/IconGroups.vue.cjs"),w=require("../../../icons/entities/IconCommunity.vue.cjs"),E=require("../../../icons/navigation/IconEdit.vue.cjs"),C=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),f=require("vue-router"),a=require("../../../auth/store/auth.cjs"),t=require("../../store/users.cjs"),y=require("../../../organizations/store/memberships.cjs");require("./Profile.vue2.cjs");const v={key:0,class:"for-transition w-100"},x={key:0,class:"flex-center flex pd-medium radius-big bg-grey uppercase t-semi w-100 h-100"},q={key:1,_id:"dash",class:"pd-b-extra pd-thin w-100"},S={class:"flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey"},M={class:"bg-black pd-thin radius-small"},R=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),U=["src"],$={class:"mn-thin"},D={class:"mn-thin t-main t-semi"},O={class:"mn-small p-medium"},I={class:"mn-medium flex-center flex-nowrap flex"},L={class:"t-semi mn-small"},P={key:5,class:"mn-t-small mn-thin"},F=e.createElementVNode("span",null," Backoffice ",-1),j=e.createElementVNode("span",null,"Events",-1),A=e.createElementVNode("span",null,"Groups",-1),T=e.createElementVNode("span",null,"Posts",-1),z=e.createElementVNode("span",null," Settings ",-1),G=e.createElementVNode("span",null," About ",-1),H=e.createElementVNode("span",{class:"t-red"}," Logout ",-1),J={__name:"Profile",setup(K){const o=f.useRoute(),n=f.useRouter(),u=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:o.params._id,user:a.state.user._id}),u.value=!0});const m=({membership:i,status:r,target:s},c,k)=>{y.mutations.handleMembershipUpdate(t.state.current,i,r,s,c,k)};function _(){a.actions.logout(),n.push({name:"Sign In"})}return(i,r)=>u.value?(e.openBlock(),e.createElementBlock("div",v,[t.state.current.status==="removed"?(e.openBlock(),e.createElementBlock("div",x," Sorry, user has been removed. ")):(e.openBlock(),e.createElementBlock("div",q,[e.unref(o).params._id===a.state.user._id&&u.value?(e.openBlock(),e.createBlock(N.default,{key:0,user:a.state.user._id,target:t.state.current,cta:!0},null,8,["user","target"])):e.createCommentVNode("",!0),e.createElementVNode("section",S,[e.unref(o).params._id&&e.unref(o).params._id!==a.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",M,[e.createVNode(g.default,{user:a.state.user._id,type:"user",target:t.state.current._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[R]),_:1},8,["user","target"]),a.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:a.state.user._id,type:"user",role:"blocked",target:t.state.current._id,status:t.state.current.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:r[0]||(r[0]=s=>m(s,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0),e.unref(o).params._id===a.state.user._id?(e.openBlock(),e.createBlock(E.default,{key:1,onClick:r[1]||(r[1]=s=>i.$router.push({name:"User Edit Profile",params:{_id:a.state.user._id}})),class:"pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.state.current.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.state.current.profile.photo,class:"radius-extra bg-white mn-small object-fit-cover i-extra"},null,8,U)):(e.openBlock(),e.createBlock(C.default,{key:3,class:"radius-medium mn-small i-extra"})),e.createElementVNode("h3",$,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Not specified"),1),e.createElementVNode("p",D," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1),e.createElementVNode("p",O,e.toDisplayString(t.state.current.profile.description?t.state.current.profile.description:"Not specified"),1),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.roles,(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":c!==t.state.current.roles.length-1}])},e.toDisplayString(s.icon)+" "+e.toDisplayString(s.name),3))),256))]),e.createElementVNode("p",L," 👨‍👨‍👧‍👧 "+e.toDisplayString(t.state.current.numberOfSubscribers)+" followers ",1),a.state.user._id&&e.unref(o).params._id&&e.unref(o).params._id!==a.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:4,user:a.state.user._id,type:"user",role:"subscriber",target:t.state.current._id,status:t.state.current.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:r[2]||(r[2]=s=>m(s,"isSubscriber","numberOfSubscribers")),class:"w-min mn-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.state.current.socials).some(s=>s)?(e.openBlock(),e.createElementBlock("h4",P," Find Me in Socials ")):e.createCommentVNode("",!0),e.createVNode(b.default,{telegram:t.state.current.socials.telegram,facebook:t.state.current.socials.facebook,instagram:t.state.current.socials.instagram,twitter:t.state.current.socials.twitter,class:"mn-r-auto mn-l-auto"},null,8,["telegram","facebook","instagram","twitter"])]),a.state.access.roles&&a.state.user._id===e.unref(o).params._id&&(a.state.access.roles.includes("ROLE_MODERATOR")||a.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createBlock(d.default,{key:1,class:"mn-regular bg-black t-white"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[3]||(r[3]=s=>e.unref(n).push({name:"Backoffice",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer",theme:"white"},{default:e.withCtx(()=>[F]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(d.default,{class:"mn-regular bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[4]||(r[4]=s=>e.unref(n).push({name:"User Events",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(V.default,{class:"i-semi",icon:!0}),j]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=s=>e.unref(n).push({name:"User Organizations",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(B.default,{class:"i-semi",icon:!0}),A]),_:1}),e.createVNode(l.default,{onClick:r[6]||(r[6]=s=>e.unref(n).push({name:"User Blogposts",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",icon:!0}),T]),_:1})]),_:1}),a.state.user._id===e.unref(o).params._id?(e.openBlock(),e.createBlock(d.default,{key:2,class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[7]||(r[7]=s=>e.unref(n).push({name:"User Edit Profile",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[z]),_:1}),e.createVNode(l.default,{onClick:r[8]||(r[8]=s=>e.unref(n).push({name:"Legal",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[G]),_:1}),e.createVNode(l.default,{class:"cursor-pointer",onClick:r[9]||(r[9]=s=>_())},{default:e.withCtx(()=>[H]),_:1})]),_:1})):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}};exports.default=J;
@@ -1,96 +1,96 @@
1
- import { ref as E, onMounted as U, openBlock as l, createElementBlock as _, unref as r, createBlock as d, createCommentVNode as m, createElementVNode as n, withCtx as u, createVNode as a, toDisplayString as f, Fragment as C, renderList as R, normalizeClass as S } from "vue";
1
+ import { ref as $, onMounted as E, openBlock as a, createElementBlock as p, unref as r, createBlock as c, createCommentVNode as m, createElementVNode as n, withCtx as u, createVNode as l, toDisplayString as f, Fragment as U, renderList as C, normalizeClass as R } from "vue";
2
2
  import "../../../../components/Field/Field.vue.js";
3
3
  import "../../../../components/Button/Button.vue.js";
4
- import B from "../../../../components/Dropdown/Dropdown.vue.js";
5
- import b from "../../../mobile/components/Menu/Menu.vue2.js";
6
- import p from "../../../mobile/components/Menu/MenuItem.vue.js";
4
+ import S from "../../../../components/Dropdown/Dropdown.vue.js";
5
+ import k from "../../../mobile/components/Menu/Menu.vue.js";
6
+ import _ from "../../../mobile/components/Menu/MenuItem.vue.js";
7
7
  import w from "../../../organizations/components/elements/ButtonToggleMembership.vue.js";
8
- import M from "../../../reports/components/sections/FormReport.vue.js";
9
- import O from "../../../organizations/components/blocks/Socials.vue.js";
10
- import I from "../sections/ProfileCompletion.vue.js";
11
- import L from "../../../icons/entities/IconEvents.vue.js";
12
- import y from "../../../icons/entities/IconGroups.vue.js";
8
+ import B from "../../../reports/components/sections/FormReport.vue.js";
9
+ import M from "../../../organizations/components/blocks/Socials.vue.js";
10
+ import O from "../sections/ProfileCompletion.vue.js";
11
+ import I from "../../../icons/entities/IconEvents.vue.js";
12
+ import L from "../../../icons/entities/IconGroups.vue.js";
13
13
  import N from "../../../icons/entities/IconCommunity.vue.js";
14
14
  import P from "../../../icons/navigation/IconEdit.vue.js";
15
15
  import D from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
16
16
  import { useRoute as F, useRouter as V } from "vue-router";
17
17
  import { state as i, actions as A } from "../../../auth/store/auth.js";
18
- import { actions as j, state as s } from "../../store/users.js";
18
+ import { actions as j, state as e } from "../../store/users.js";
19
19
  import { mutations as z } from "../../../organizations/store/memberships.js";
20
20
  import "./Profile.vue2.js";
21
21
  const G = {
22
22
  key: 0,
23
23
  class: "for-transition w-100"
24
- }, W = {
24
+ }, T = {
25
25
  key: 0,
26
26
  class: "flex-center flex pd-medium radius-big bg-grey uppercase t-semi w-100 h-100"
27
- }, T = {
27
+ }, q = {
28
28
  key: 1,
29
29
  _id: "dash",
30
30
  class: "pd-b-extra pd-thin w-100"
31
- }, q = { class: "flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey" }, H = { class: "bg-black pd-thin radius-small" }, J = /* @__PURE__ */ n("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), K = ["src"], Q = { class: "mn-thin" }, X = { class: "mn-thin t-main t-semi" }, Y = { class: "mn-small p-medium" }, Z = { class: "mn-medium flex-center flex-nowrap flex" }, ee = { class: "t-semi mn-small" }, se = {
31
+ }, H = { class: "flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey" }, J = { class: "bg-black pd-thin radius-small" }, K = /* @__PURE__ */ n("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), Q = ["src"], W = { class: "mn-thin" }, X = { class: "mn-thin t-main t-semi" }, Y = { class: "mn-small p-medium" }, Z = { class: "mn-medium flex-center flex-nowrap flex" }, ee = { class: "t-semi mn-small" }, se = {
32
32
  key: 5,
33
33
  class: "mn-t-small mn-thin"
34
- }, re = /* @__PURE__ */ n("span", null, " Backoffice ", -1), te = /* @__PURE__ */ n("span", null, "Events", -1), ie = /* @__PURE__ */ n("span", null, "Groups", -1), oe = /* @__PURE__ */ n("span", null, "Posts", -1), ae = /* @__PURE__ */ n("span", null, "Wallet", -1), ne = /* @__PURE__ */ n("span", null, " Settings ", -1), le = /* @__PURE__ */ n("span", null, " About ", -1), ue = /* @__PURE__ */ n("span", { class: "t-red" }, " Logout ", -1), Me = {
34
+ }, re = /* @__PURE__ */ n("span", null, " Backoffice ", -1), te = /* @__PURE__ */ n("span", null, "Events", -1), ie = /* @__PURE__ */ n("span", null, "Groups", -1), oe = /* @__PURE__ */ n("span", null, "Posts", -1), ae = /* @__PURE__ */ n("span", null, " Settings ", -1), ne = /* @__PURE__ */ n("span", null, " About ", -1), le = /* @__PURE__ */ n("span", { class: "t-red" }, " Logout ", -1), Be = {
35
35
  __name: "Profile",
36
- setup(me) {
37
- const o = F(), c = V(), h = E(!1);
38
- U(async () => {
39
- await j.read({ _id: o.params._id, user: i.user._id }), h.value = !0;
36
+ setup(ue) {
37
+ const o = F(), d = V(), g = $(!1);
38
+ E(async () => {
39
+ await j.read({ _id: o.params._id, user: i.user._id }), g.value = !0;
40
40
  });
41
- const v = ({ membership: g, status: e, target: t }, k, $) => {
42
- z.handleMembershipUpdate(s.current, g, e, t, k, $);
41
+ const v = ({ membership: b, status: s, target: t }, h, x) => {
42
+ z.handleMembershipUpdate(e.current, b, s, t, h, x);
43
43
  };
44
- function x() {
45
- A.logout(), c.push({ name: "Sign In" });
44
+ function y() {
45
+ A.logout(), d.push({ name: "Sign In" });
46
46
  }
47
- return (g, e) => h.value ? (l(), _("div", G, [
48
- s.current.status === "removed" ? (l(), _("div", W, " Sorry, user has been removed. ")) : (l(), _("div", T, [
49
- r(o).params._id === i.user._id && h.value ? (l(), d(I, {
47
+ return (b, s) => g.value ? (a(), p("div", G, [
48
+ e.current.status === "removed" ? (a(), p("div", T, " Sorry, user has been removed. ")) : (a(), p("div", q, [
49
+ r(o).params._id === i.user._id && g.value ? (a(), c(O, {
50
50
  key: 0,
51
51
  user: i.user._id,
52
- target: s.current,
52
+ target: e.current,
53
53
  cta: !0
54
54
  }, null, 8, ["user", "target"])) : m("", !0),
55
- n("section", q, [
56
- r(o).params._id && r(o).params._id !== i.user._id ? (l(), d(B, {
55
+ n("section", H, [
56
+ r(o).params._id && r(o).params._id !== i.user._id ? (a(), c(S, {
57
57
  key: 0,
58
58
  label: "...",
59
59
  align: "right",
60
60
  class: "cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"
61
61
  }, {
62
62
  default: u(() => [
63
- n("section", H, [
64
- a(M, {
63
+ n("section", J, [
64
+ l(B, {
65
65
  user: i.user._id,
66
66
  type: "user",
67
- target: s.current._id,
67
+ target: e.current._id,
68
68
  text: "Report",
69
69
  class: "w-100"
70
70
  }, {
71
71
  default: u(() => [
72
- J
72
+ K
73
73
  ]),
74
74
  _: 1
75
75
  }, 8, ["user", "target"]),
76
- i.user._id ? (l(), d(w, {
76
+ i.user._id ? (a(), c(w, {
77
77
  key: 0,
78
78
  user: i.user._id,
79
79
  type: "user",
80
80
  role: "blocked",
81
- target: s.current._id,
82
- status: s.current.isBlocked,
81
+ target: e.current._id,
82
+ status: e.current.isBlocked,
83
83
  text: { create: "Block", remove: "Unblock" },
84
- onUpdateMembership: e[0] || (e[0] = (t) => v(t, "isBlocked")),
84
+ onUpdateMembership: s[0] || (s[0] = (t) => v(t, "isBlocked")),
85
85
  class: "t-white mn-t-thin bg-red"
86
86
  }, null, 8, ["user", "target", "status"])) : m("", !0)
87
87
  ])
88
88
  ]),
89
89
  _: 1
90
90
  }, 8, ["label"])) : m("", !0),
91
- r(o).params._id === i.user._id ? (l(), d(P, {
91
+ r(o).params._id === i.user._id ? (a(), c(P, {
92
92
  key: 1,
93
- onClick: e[1] || (e[1] = (t) => g.$router.push({
93
+ onClick: s[1] || (s[1] = (t) => b.$router.push({
94
94
  name: "User Edit Profile",
95
95
  params: {
96
96
  _id: i.user._id
@@ -98,50 +98,50 @@ const G = {
98
98
  })),
99
99
  class: "pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
100
100
  })) : m("", !0),
101
- s.current.profile.photo.length > 0 ? (l(), _("img", {
101
+ e.current.profile.photo.length > 0 ? (a(), p("img", {
102
102
  key: 2,
103
- src: (g.FILE_SERVER_URL || "") + s.current.profile.photo,
103
+ src: (b.FILE_SERVER_URL || "") + e.current.profile.photo,
104
104
  class: "radius-extra bg-white mn-small object-fit-cover i-extra"
105
- }, null, 8, K)) : (l(), d(D, {
105
+ }, null, 8, Q)) : (a(), c(D, {
106
106
  key: 3,
107
107
  class: "radius-medium mn-small i-extra"
108
108
  })),
109
- n("h3", Q, f(s.current.profile.name ? s.current.profile.name : "Not specified"), 1),
110
- n("p", X, " @" + f(s.current.username ? s.current.username : "Not specified"), 1),
111
- n("p", Y, f(s.current.profile.description ? s.current.profile.description : "Not specified"), 1),
109
+ n("h3", W, f(e.current.profile.name ? e.current.profile.name : "Not specified"), 1),
110
+ n("p", X, " @" + f(e.current.username ? e.current.username : "Not specified"), 1),
111
+ n("p", Y, f(e.current.profile.description ? e.current.profile.description : "Not specified"), 1),
112
112
  n("div", Z, [
113
- (l(!0), _(C, null, R(s.current.roles, (t, k) => (l(), _("div", {
114
- class: S(["pd-thin radius-small t-semi bg-white", { "mn-r-thin": k !== s.current.roles.length - 1 }])
113
+ (a(!0), p(U, null, C(e.current.roles, (t, h) => (a(), p("div", {
114
+ class: R(["pd-thin radius-small t-semi bg-white", { "mn-r-thin": h !== e.current.roles.length - 1 }])
115
115
  }, f(t.icon) + " " + f(t.name), 3))), 256))
116
116
  ]),
117
- n("p", ee, " 👨‍👨‍👧‍👧 " + f(s.current.numberOfSubscribers) + " followers ", 1),
118
- i.user._id && r(o).params._id && r(o).params._id !== i.user._id ? (l(), d(w, {
117
+ n("p", ee, " 👨‍👨‍👧‍👧 " + f(e.current.numberOfSubscribers) + " followers ", 1),
118
+ i.user._id && r(o).params._id && r(o).params._id !== i.user._id ? (a(), c(w, {
119
119
  key: 4,
120
120
  user: i.user._id,
121
121
  type: "user",
122
122
  role: "subscriber",
123
- target: s.current._id,
124
- status: s.current.isSubscriber,
123
+ target: e.current._id,
124
+ status: e.current.isSubscriber,
125
125
  text: { create: "Follow", remove: "Unfollow" },
126
- onUpdateMembership: e[2] || (e[2] = (t) => v(t, "isSubscriber", "numberOfSubscribers")),
126
+ onUpdateMembership: s[2] || (s[2] = (t) => v(t, "isSubscriber", "numberOfSubscribers")),
127
127
  class: "w-min mn-medium mn-r-auto mn-l-auto"
128
128
  }, null, 8, ["user", "target", "status"])) : m("", !0),
129
- Object.values(s.current.socials).some((t) => t) ? (l(), _("h4", se, " Find Me in Socials ")) : m("", !0),
130
- a(O, {
131
- telegram: s.current.socials.telegram,
132
- facebook: s.current.socials.facebook,
133
- instagram: s.current.socials.instagram,
134
- twitter: s.current.socials.twitter,
129
+ Object.values(e.current.socials).some((t) => t) ? (a(), p("h4", se, " Find Me in Socials ")) : m("", !0),
130
+ l(M, {
131
+ telegram: e.current.socials.telegram,
132
+ facebook: e.current.socials.facebook,
133
+ instagram: e.current.socials.instagram,
134
+ twitter: e.current.socials.twitter,
135
135
  class: "mn-r-auto mn-l-auto"
136
136
  }, null, 8, ["telegram", "facebook", "instagram", "twitter"])
137
137
  ]),
138
- i.access.roles && i.user._id === r(o).params._id && (i.access.roles.includes("ROLE_MODERATOR") || i.access.roles.includes("ROLE_ADMIN")) ? (l(), d(b, {
138
+ i.access.roles && i.user._id === r(o).params._id && (i.access.roles.includes("ROLE_MODERATOR") || i.access.roles.includes("ROLE_ADMIN")) ? (a(), c(k, {
139
139
  key: 1,
140
140
  class: "mn-regular bg-black t-white"
141
141
  }, {
142
142
  default: u(() => [
143
- a(p, {
144
- onClick: e[3] || (e[3] = (t) => r(c).push({
143
+ l(_, {
144
+ onClick: s[3] || (s[3] = (t) => r(d).push({
145
145
  name: "Backoffice",
146
146
  params: {
147
147
  _id: r(o).params._id
@@ -158,14 +158,14 @@ const G = {
158
158
  ]),
159
159
  _: 1
160
160
  })) : m("", !0),
161
- a(b, { class: "mn-regular bg-grey" }, {
161
+ l(k, { class: "mn-regular bg-grey" }, {
162
162
  default: u(() => [
163
- a(p, {
164
- onClick: e[4] || (e[4] = (t) => r(c).push({ name: "User Events", params: { _id: r(o).params._id } })),
163
+ l(_, {
164
+ onClick: s[4] || (s[4] = (t) => r(d).push({ name: "User Events", params: { _id: r(o).params._id } })),
165
165
  class: "cursor-pointer"
166
166
  }, {
167
167
  default: u(() => [
168
- a(L, {
168
+ l(I, {
169
169
  class: "i-semi",
170
170
  icon: !0
171
171
  }),
@@ -173,12 +173,12 @@ const G = {
173
173
  ]),
174
174
  _: 1
175
175
  }),
176
- a(p, {
177
- onClick: e[5] || (e[5] = (t) => r(c).push({ name: "User Organizations", params: { _id: r(o).params._id } })),
176
+ l(_, {
177
+ onClick: s[5] || (s[5] = (t) => r(d).push({ name: "User Organizations", params: { _id: r(o).params._id } })),
178
178
  class: "cursor-pointer"
179
179
  }, {
180
180
  default: u(() => [
181
- a(y, {
181
+ l(L, {
182
182
  class: "i-semi",
183
183
  icon: !0
184
184
  }),
@@ -186,12 +186,12 @@ const G = {
186
186
  ]),
187
187
  _: 1
188
188
  }),
189
- a(p, {
190
- onClick: e[6] || (e[6] = (t) => r(c).push({ name: "User Blogposts", params: { _id: r(o).params._id } })),
189
+ l(_, {
190
+ onClick: s[6] || (s[6] = (t) => r(d).push({ name: "User Blogposts", params: { _id: r(o).params._id } })),
191
191
  class: "cursor-pointer"
192
192
  }, {
193
193
  default: u(() => [
194
- a(N, {
194
+ l(N, {
195
195
  class: "i-semi",
196
196
  icon: !0
197
197
  }),
@@ -202,31 +202,13 @@ const G = {
202
202
  ]),
203
203
  _: 1
204
204
  }),
205
- a(b, { class: "mn-regular bg-grey" }, {
206
- default: u(() => [
207
- a(p, {
208
- onClick: e[7] || (e[7] = (t) => r(c).push({ name: "User Wallet", params: { _id: r(o).params._id } })),
209
- class: "cursor-pointer"
210
- }, {
211
- default: u(() => [
212
- a(y, {
213
- class: "i-semi",
214
- icon: !0
215
- }),
216
- ae
217
- ]),
218
- _: 1
219
- })
220
- ]),
221
- _: 1
222
- }),
223
- i.user._id === r(o).params._id ? (l(), d(b, {
205
+ i.user._id === r(o).params._id ? (a(), c(k, {
224
206
  key: 2,
225
207
  class: "bg-grey"
226
208
  }, {
227
209
  default: u(() => [
228
- a(p, {
229
- onClick: e[8] || (e[8] = (t) => r(c).push({
210
+ l(_, {
211
+ onClick: s[7] || (s[7] = (t) => r(d).push({
230
212
  name: "User Edit Profile",
231
213
  params: {
232
214
  _id: r(o).params._id
@@ -235,12 +217,12 @@ const G = {
235
217
  class: "cursor-pointer"
236
218
  }, {
237
219
  default: u(() => [
238
- ne
220
+ ae
239
221
  ]),
240
222
  _: 1
241
223
  }),
242
- a(p, {
243
- onClick: e[9] || (e[9] = (t) => r(c).push({
224
+ l(_, {
225
+ onClick: s[8] || (s[8] = (t) => r(d).push({
244
226
  name: "Legal",
245
227
  params: {
246
228
  _id: r(o).params._id
@@ -249,16 +231,16 @@ const G = {
249
231
  class: "cursor-pointer"
250
232
  }, {
251
233
  default: u(() => [
252
- le
234
+ ne
253
235
  ]),
254
236
  _: 1
255
237
  }),
256
- a(p, {
238
+ l(_, {
257
239
  class: "cursor-pointer",
258
- onClick: e[10] || (e[10] = (t) => x())
240
+ onClick: s[9] || (s[9] = (t) => y())
259
241
  }, {
260
242
  default: u(() => [
261
- ue
243
+ le
262
244
  ]),
263
245
  _: 1
264
246
  })
@@ -270,5 +252,5 @@ const G = {
270
252
  }
271
253
  };
272
254
  export {
273
- Me as default
255
+ Be as default
274
256
  };